var createVideoPlayer = function(option) {

	/*if (option == undefined) {
		option = Math.floor(Math.random()*2)+1;	
	}

	$('hero').empty();*/
	//if (videoURL) {
		
	//videoURL = "flash/videos/showreel.flv";
	//videoTitle = "iQ Media Showreel";
	
	var videoPlayerObject = new Swiff('/flash/videoplayer.swf', {
    	id: 'videoPlayer',
		name: 'videoPlayer',
    	width: 495,
    	height: 310,
   		params: {
        	wmode: 'transparent',
        	bgcolor: '#FFFFFF',
      		loop: 'false',
			menu: 'false',
       		quality: 'high',
   			scale: 'noscale',
			allowScriptAccess: 'always',
    		allowFullScreen: 'true',
			play: 'true'
    	},
		vars: {
       		videoURL: videoURL,
			videoTitle: videoTitle
   		}
	});

	videoPlayerObject.inject($('videoplayerbox'));
	//}

}

window.addEvent('domready', createVideoPlayer);