var videoPlayer = {      
    panel:null,        
    init:function() {
      this.panel = new YAHOO.widget.Panel("videoPopup", this.videoPanelConfig);
      this.panel.setBody("<object id='videoObject' width='425' height='344'><param name='wmode' value='opaque' /><param name='movie' value='http://www.youtube.com/v/qRTMPmynvJY&hl=en_US&fs=1&'/><param name='allowFullScreen' value='true'/><param name='allowscriptaccess' value='always'/><embed src='http://www.youtube.com/v/qRTMPmynvJY&hl=en_US&fs=1&' type='application/x-shockwave-flash' wmode='opaque' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object>");
      this.panel.render(document.body);
      this.panel.hideEvent.subscribe(this.destroyMediaObject);
      YAHOO.util.Event.addListener("viewVid", "click", this.launch, videoPlayer, true);        
    },      
    videoPanelConfig: {
      width:"425px", 
      height:"368px",
    	fixedcenter: true, 
    	constraintoviewport: true, 
    	modal:true,
    	close:true, 
    	visible:false, 
    	draggable:true,
    	zindex:7,
    	effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.50}
    },       
    launch:function() {
      this.panel.show();
    },          
    destroyMediaObject:function()  {
      self.videoPlayer.panel.destroy();
      self.videoPlayer.init();
    }       
  }     
  YAHOO.util.Event.onDOMReady(videoPlayer.init,videoPlayer,true); 
