/*
 * HiddenValleyRanch.com FlowPlayer Video Parameters
 * Video: HVR Advert Videos 2009	
 * Updated: 10/20/2009
 * 
 */
$(document).ready(function(){

 $('a#video-player1').flowplayer('/swf/flowplayer.commercial-3.0.7.swf',  { 

<!-- Licences: Needed to remove Flowplayer logo from player  -->
<!--	key: '@b14425fff351970d0ef',  	hiddenvalleyranch.com Licence. Comment out when testing in Staging -->
	key: '#@b14425fff351970d0ef',  		<!--staging.hiddenvalleyranch.com Licence. Comment out when going Live -->

	clip:{ 
		autoPlay: true  
	},											

	canvas: {backgroundColor: '#000000'},
				
	plugins: {
		controls: {
			sliderGradient: 'none',
			tooltipTextColor: '#ffffff',
			timeBgColor: '#555555',
			durationColor: '#e8e8e8',
			timeColor: '#ededed',
			bufferGradient: 'none',
			progressGradient: 'medium',
			backgroundGradient: [0.6,0.3,0,0,0],
			progressColor: '#118d1e',
			buttonColor: '#118d1e',
			tooltipColor: '#5F747C',
			bufferColor: '#7bb2d5',
			backgroundColor: '#013c06',
			sliderColor: '#3fa53b',
			buttonOverColor: '#054066',
			volumeSliderColor: '#000000',
			borderRadius: '15',
			volumeSliderGradient: 'none',
			height: 24,
			fullscreen: false,
			opacity: 1.0
		}
	}		 
						 
}); 

 $('a#video-player2').flowplayer('/swf/flowplayer.commercial-3.0.7.swf',  { 

<!-- Licences: Needed to remove Flowplayer logo from player  -->
<!--	key: '@b14425fff351970d0ef',  	hiddenvalleyranch.com Licence. Comment out when testing in Staging -->
	key: '#@b14425fff351970d0ef',  		<!--staging.hiddenvalleyranch.com Licence. Comment out when going Live -->

	clip:{ 
		autoPlay: true  
	},											

	canvas: {backgroundColor: '#000000'},
				
	plugins: {
		controls: {
			sliderGradient: 'none',
			tooltipTextColor: '#ffffff',
			timeBgColor: '#555555',
			durationColor: '#e8e8e8',
			timeColor: '#ededed',
			bufferGradient: 'none',
			progressGradient: 'medium',
			backgroundGradient: [0.6,0.3,0,0,0],
			progressColor: '#118d1e',
			buttonColor: '#118d1e',
			tooltipColor: '#5F747C',
			bufferColor: '#7bb2d5',
			backgroundColor: '#013c06',
			sliderColor: '#3fa53b',
			buttonOverColor: '#054066',
			volumeSliderColor: '#000000',
			borderRadius: '15',
			volumeSliderGradient: 'none',
			height: 24,
			fullscreen: false,
			opacity: 1.0
		}
	}		 
						 
}); 

 $('a#video-player3').flowplayer('/swf/flowplayer.commercial-3.0.7.swf',  {  

<!-- Licences: Needed to remove Flowplayer logo from player  -->
<!--	key: '@b14425fff351970d0ef',  	hiddenvalleyranch.com Licence. Comment out when testing in Staging -->
	key: '#@b14425fff351970d0ef',  		<!--staging.hiddenvalleyranch.com Licence. Comment out when going Live -->

	clip:{ 
		autoPlay: true  
	},											

	canvas: {backgroundColor: '#000000'},
				
	plugins: {
		controls: {
			sliderGradient: 'none',
			tooltipTextColor: '#ffffff',
			timeBgColor: '#555555',
			durationColor: '#e8e8e8',
			timeColor: '#ededed',
			bufferGradient: 'none',
			progressGradient: 'medium',
			backgroundGradient: [0.6,0.3,0,0,0],
			progressColor: '#118d1e',
			buttonColor: '#118d1e',
			tooltipColor: '#5F747C',
			bufferColor: '#7bb2d5',
			backgroundColor: '#013c06',
			sliderColor: '#3fa53b',
			buttonOverColor: '#054066',
			volumeSliderColor: '#000000',
			borderRadius: '15',
			volumeSliderGradient: 'none',
			height: 24,
			fullscreen: false,
			opacity: 1.0
		}
	}		 
						 
}); 

 $('a#video-player4').flowplayer('/swf/flowplayer.commercial-3.0.7.swf',  { 

<!-- Licences: Needed to remove Flowplayer logo from player  -->
<!--	key: '@b14425fff351970d0ef',  	hiddenvalleyranch.com Licence. Comment out when testing in Staging -->
	key: '#@b14425fff351970d0ef',  		<!--staging.hiddenvalleyranch.com Licence. Comment out when going Live -->

	clip:{ 
		autoPlay: true  
	},											

	canvas: {backgroundColor: '#000000'},
				
	plugins: {
		controls: {
			sliderGradient: 'none',
			tooltipTextColor: '#ffffff',
			timeBgColor: '#555555',
			durationColor: '#e8e8e8',
			timeColor: '#ededed',
			bufferGradient: 'none',
			progressGradient: 'medium',
			backgroundGradient: [0.6,0.3,0,0,0],
			progressColor: '#118d1e',
			buttonColor: '#118d1e',
			tooltipColor: '#5F747C',
			bufferColor: '#7bb2d5',
			backgroundColor: '#013c06',
			sliderColor: '#3fa53b',
			buttonOverColor: '#054066',
			volumeSliderColor: '#000000',
			borderRadius: '15',
			volumeSliderGradient: 'none',
			height: 24,
			fullscreen: false,
			opacity: 1.0
		}
	}		 
						 
}); 



	$('a#ugPopup1').overlay({
		target: 'div#video1',
	
		// IE6/7 fix: in order to make video play and then stop playing inside
		// of an overlay in IE, we need to manually play & stop the flowplayer
		// using the onLoad & onClose handlers

		onLoad: function(content) {
			if (jQuery.browser.msie)
				$f('video-player1').play();
		},
		
		onClose: function(content) {
			if (jQuery.browser.msie)
				$f('video-player1').stop();
		}
	});
	
		$('a#ugPopup2').overlay({
		target: 'div#video2',
	
		// IE6/7 fix: in order to make video play and then stop playing inside
		// of an overlay in IE, we need to manually play & stop the flowplayer
		// using the onLoad & onClose handlers

		onLoad: function(content) {
			if (jQuery.browser.msie)
				$f('video-player2').play();
		},
		
		onClose: function(content) {
			if (jQuery.browser.msie)
				$f('video-player2').stop();
		}
	});
	
		$('a#ugPopup3').overlay({
		target: 'div#video3',
	
		// IE6/7 fix: in order to make video play and then stop playing inside
		// of an overlay in IE, we need to manually play & stop the flowplayer
		// using the onLoad & onClose handlers

		onLoad: function(content) {
			if (jQuery.browser.msie)
				$f('video-player3').play();
		},
		
		onClose: function(content) {
			if (jQuery.browser.msie)
				$f('video-player3').stop();
		}
	});

		$('a#ugPopup4').overlay({
		target: 'div#video4',
	
		// IE6/7 fix: in order to make video play and then stop playing inside
		// of an overlay in IE, we need to manually play & stop the flowplayer
		// using the onLoad & onClose handlers

		onLoad: function(content) {
			if (jQuery.browser.msie)
				$f('video-player4').play();
		},
		
		onClose: function(content) {
			if (jQuery.browser.msie)
				$f('video-player4').stop();
		}
	});


});