/**
 * @author vxFusion
 */

function homeVideo()
{
	flowplayer("player", {src: "/flowplayer/flowplayer-3.1.5.swf", wmode: 'opaque'}, {
		// properties that are common to both clips in the playlist 
	    clip: { 
	        baseUrl: '/video/' 
	    },
		
		play: {
			display: 'none'
		},
	    
	    // playlist with two entries 
	    playlist: [
	     
	        // user is forced to see this entry. pause action is disabled 
	        { 
	            url: 'tagline.flv',
				autoPlay: true,
        		autoBuffering: true, 
	             
	            // make duration a little shorter for this demo 
	            duration: 9 
	        }, 
			
			{ 
	            url: '/img/intro-video.jpg',
	            scaling: 'fit'
	        },
	         
	        // this is the actual video. controlbar is shown 
	        { 
	            url: 'cfav-intro.flv',
				autoPlay: false,
        		autoBuffering: true,
				onLoad: function () { 
				  this.pause(); 
				},
				onStart: function() { 
					this.getControls().show();
				},
	            
	            // when playback finishes player is resumed back to it's original splash image state 
	            onFinish: function() { 
	                this.unload(); 
	            } 
	        },
			{ 
	            url: '/img/intro-video.jpg',  
	            scaling: 'orig' 
	        }     
	    ],
		plugins: {
		
		}
	});
}

function showcaseReel()
{
	flowplayer("player", {src: "/flowplayer/flowplayer-3.1.5.swf", wmode: 'opaque'}, {
		play: {
			display: 'none'
		},
	    playlist: [
	        { 
	            url: '/video/showreel.flv',
				autoPlay: true,
        		autoBuffering: true,
				scaling: 'fit'
	        }, 
			{ 
	            url: '/img/intro-video.jpg',
	            scaling: 'fit'
	        }    
	    ],
		plugins: {
		
		}
	});
};

function techniquesReel()
{
	flowplayer("player", {src: "/flowplayer/flowplayer-3.1.5.swf", wmode: 'opaque'}, {
		play: {
			display: 'none'
		},
	    playlist: [
	        { 
	            url: '/video/techniques.flv',
				autoPlay: true,
        		autoBuffering: true,
				scaling: 'fit'
	        }, 
			{ 
	            url: '/img/intro-video.jpg',
	            scaling: 'fit'
	        }    
	    ],
		plugins: {
		
		}
	});
};

function dvdVideo()
{
	flowplayer("player", {src: "/flowplayer/flowplayer-3.1.5.swf", wmode: 'opaque'}, {
		play: {
			display: 'none'
		},
	    playlist: [
	        { 
	            url: '/video/peel.flv',
				autoPlay: true,
        		autoBuffering: true,
				scaling: 'fit'
	        }, 
			{ 
	            url: '/img/intro-video.jpg',
	            scaling: 'fit'
	        }    
	    ],
		plugins: {
		
		}
	});
}

function photosimsVideo()
{
	flowplayer("player", {src: "/flowplayer/flowplayer-3.1.5.swf", wmode: 'opaque'}, {
		play: {
			display: 'none'
		},
	    playlist: [
	        { 
	            url: '/video/photosims.flv',
				autoPlay: true,
        		autoBuffering: true,
				scaling: 'fit'
	        }, 
			{ 
	            url: '/img/intro-video.jpg',
	            scaling: 'fit'
	        }    
	    ],
		plugins: {
		
		}
	});
}

function contactVideo()
{
	flowplayer("player", {src: "/flowplayer/flowplayer-3.1.5.swf", wmode: 'opaque'}, {
		// here is our playlist with two clips 
	    playlist: [ 
	        { 
	            url: '/video/contact.flv',  
	            autoPlay: true,
	        	autoBuffering: true,
	        	scaling: 'fit'
	        },
	        { 
	            url: '/video/tagline.flv',
				autoPlay: true,
        		autoBuffering: true,
	            duration: 9
	        }
	    ],
		play: {
			display: 'none'
		},
		plugins: { 
			controls:  { display: 'none' }
		}
	});
}

function outreachVideo()
{
	flowplayer("player", {src: "/flowplayer/flowplayer-3.1.5.swf", wmode: 'opaque'}, {
		play: {
			display: 'none'
		},
	    playlist: [
	        { 
	            url: '/video/cfav-intro.flv',
				autoPlay: true,
        		autoBuffering: true,
				scaling: 'fit'
	        }, 
			{ 
	            url: '/img/intro-video.jpg',
	            scaling: 'fit'
	        }    
	    ],
		plugins: {
		
		}
	});
}