/****Variable returned to Hybridplayer*****/
var mn_showTitle = "";

function LoadPlayer(movie_url,title,description)
    		{
				mn_showTitle = title;
				
				var so = new SWFObject("_ui/flash/player/HybridPlayer.swf", 'mn_player', '100%', '100%', '8', '#ffffff');
    		    so.addParam('allowScriptAccess', 'always');	// (REQUIRED)
    		    so.addParam('wmode', 'transparent');
    		    so.addParam('scale', 'noscale');
    			so.addParam('align', 'l');
    			so.addParam('salign', 'tl');
    		    so.addVariable("video", movie_url);
    		    so.addVariable('movieID', 'mn_player'); 								// Makes the flash aware of its own ID	(REQUIRED)
    		    so.addVariable('playerParentID', 'mnPlayerX'); 							// ID of the div that gets the move client inside of it (REQUIRED)
    		    so.addVariable('movieParentID', 'mnPlayer');							// ID of the div that holds the flash object
    		    so.addVariable('movieFormat', 'home');
    			so.write('mnPlayer');
    			
    		    MN.Event.Observe($('mnPlayer'), 'mouseover', showControls);
    		    MN.Event.Observe($('mnPlayer'), 'mouseout', hideDelayControls);
                
    			$('video-clips-tab-content').hide();
    			$('clip-player').show();
    			$('clip-player-title').update(title);
    			$('clip-player-description').update(description);
                
                $('clip-player-close').observe('click',function(){
                   UnloadPlayer();
                });
                
               $('episodesTab').observe('click',function(){
                   UnloadPlayer();
                });
                  
    		}

    		function UnloadPlayer()
    		{
    			//$('clip-list').show();
    			$('video-clips-tab-content').show();
    			$('clip-player').hide();
    			//Player.clear($("mn_player"));
    			$("mn_player").PlayURL('', 0);
    		}

    		var hideDelayControlsAmount = 3000;
    		var hidingId = -1;
    		function showControls() {
    			clearTimeout(hidingId);
    			setTimeout('$("mn_player").setDefaultControls();', 1);
    		}

    		function hideDelayControls(){
    			clearTimeout(hidingId);
    			hidingId = setTimeout('fadeOutControls()', hideDelayControlsAmount);
    		}

    		function fadeOutControls() {
    			//setTimeout('$("mn_player").setMinimalControls();', 1);
    		}

    		function playFlash(clipUrl, streaming){
    			$("mn_player").PlayURL(clipUrl, streaming);
    		}

    		function loadSampleClip()
    		{
    			playFlash("http://foxbc.edgeboss.net/flash/foxbc/shows/dance4/dance_tab_nep_top_12_tag_600.flv",true);
    		}
			
			/****Nielsen Tracking Variables*******/
			var mn_clientId = "800251";
			var mn_videoCensusId = "vc,c05";
			function getClientId(){
				return mn_clientId;	
			}
			function getVideoCensusId(){
				return mn_videoCensusId;	
			}
			function getShowTitle() {
				return mn_showTitle;	
			}
			