

		


		
		
		
	
	
	
		
		
	


			function sIFR() {
		var fdetect = deconcept.SWFObjectUtil.getPlayerVersion();
		if (fdetect['major'] != 0) {
			$.sifr({
				path: '/images/skin/',
				save: true
			});
			$('.dosifr').sifr({ font: 'skinv1-font1', color: '#58A01F', fontSize:'24px' });
		}
	}	
	

	jQuery().ready(function() {

		$('#sortable tr:odd, .sortable tr:odd').addClass('odd');
		$('#sortable tr:even, .sortable tr:even').addClass('even');

		$('ul#slideshow').animatedinnerfade({
			speed: 1000,
			timeout: 6000,
			type: 'sequence',
			containerheight: '373px',
			containerwidth: '940px',
			animationSpeed: 5000,
			animationtype: 'fade',
			bgFrame: 'none',
			controlBox: 'none',
			displayTitle: 'none'
		});

		$("a.fancy").fancybox({
			'hideOnContentClick'	: false,
			'frameWidth'			: 1024,
			'frameHeight'			: Math.min($(window).height()-100, 700),
			'overlayShow'			: false,
			'zoomSpeedIn'			: 600,
			'zoomSpeedOut'			: 500,
			'easingIn'				: 'easeOutBack',
			'easingOut'				: 'easeInBack'
		}); 


		$('#lp_downtime,#lp_burden,#df_drum,#df_drums,#r_disposed,#r_gallon').keypress(function(event) {
			if (event.keyCode == '13') event.preventDefault();
		});
		
		$('#lp_downtime,#lp_burden,#df_drum,#df_drums,#r_disposed,#r_gallon').numeric({allow:"."}).css('text-align', 'center');
		
		$('#lp_downtime,#lp_burden').keyup(function() {
			$('#lp_cost').val( $('#lp_downtime').val() * $('#lp_burden').val()  );
			$('#lp_cost_html').html( '$ ' + $('#lp_cost').val() );
			$('#total').html( '$ ' + ($('#lp_cost').val() *1 + $('#df_cost').val() *1 + $('#r_cost').val() *1) );
		});
		
		$('#df_drum,#df_drums').keyup(function() {
			$('#df_cost').val( $('#df_drum').val() * $('#df_drums').val()  );
			$('#df_cost_html').html( '$ ' + $('#df_cost').val() );
			$('#total').html( '$ ' + ($('#lp_cost').val() *1 + $('#df_cost').val() *1 + $('#r_cost').val() *1) );
		});

		$('#r_disposed,#r_gallon').keyup(function() {
			$('#r_cost').val( $('#r_disposed').val() * $('#r_gallon').val()  );
			$('#r_cost_html').html( '$ ' + $('#r_cost').val() );
			$('#total').html( '$ ' + ($('#lp_cost').val() *1 + $('#df_cost').val() *1 + $('#r_cost').val() *1) );
		});
		
		$("img").pngfix();		
	

	});

	

	

