IS.Video = { 
	init:function(){ 
		E.addListener('GoVideo','click',function(){ IS.Video.Go(); }); 
	//	E.addListener('GoVideo','click',function(){ window.location.href="/abc-s-v-campaign";  }); 
	}, 
	RemovePlayer:function(){
			while ($('VideoPlayerHolder').childNodes[0]) {
			   $('VideoPlayerHolder').removeChild($('VideoPlayerHolder').childNodes[0]);
			}
		},
	Go:function(){ 
		
		var	aButtons = [{text:'Close',handler:function(){ 
			this.hide();
			IS.Video.RemovePlayer(); 
			}}]; 
		var oOptions = { width: "660px", 
						effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.7}, 
						fixedcenter:true,
						modal:true,
						close:false,
						visible:false,
						draggable:false
					   };
		var mySimpleDialog = new YAHOO.widget.SimpleDialog("Video", oOptions);							
		mySimpleDialog.setHeader('InStadium Video');
		mySimpleDialog.setBody('<div id="VideoPlayerHolder"></div>');
		mySimpleDialog.cfg.queueProperty("buttons", aButtons);
		mySimpleDialog.render(document.body);
		//&hd=1
		// var so = new SWFObject("http://www.youtube.com/v/EuA8YiqyFR4&hl=en&fs=1&autoplay=1", "VideoComponent", "640", "385", "9", "#000000");
		// var so = new SWFObject("http://www.youtube.com/v/P5OHQ1n1UVM&hl=en&fs=1&autoplay=1", "VideoComponent", "640", "385", "9", "#000000");
		var so = new SWFObject("http://www.youtube.com/v/pideZR-Qxl0&hl=en&fs=1&autoplay=1", "VideoComponent", "640", "385", "9", "#000000");
		so.addParam("allowFullScreen", "true");
		so.addParam("allowscriptaccess", "always");
		so.write('VideoPlayerHolder'); 
		
		mySimpleDialog.show();   
		
	}
} 
IS.Init.initThese.push('Video');