var __doc__;
var __frm__;
var isFlashPresent = null;	
var isWMPPresent = null;
var isQTPresent = null;
var objSpanType; // For Video Span Type
var intPref; // For Preference
var strASFPrevPath; // For Window Media Player Preview Path
var strQTPrevPath;  // For Quick Time Preview Path
var strFLASHPrevPath;  // For Flash Preview Path
var strFlashFileName; //For Flash File Name
var strFlashStreamingIP; //For Flash Streaming IP
var strAudioPrevPath // For Audio PreviewPath
var strThumbPath; // For Thumb image Path
var gblBlnFlag;
var strVirtualFlashPath;//For virtual Flash Path
var strPrintPage; //For Checking If Page is Printfriendly
var strShowPlayer;
//Addded for Issue 9373
var blnNonLoginShowPlayer = false;
/*******************Function For Stories Related with this Asset Start********************/
function MediaDetailControl_TitleRedirectStoryRelatedWithAsset(strLink)
{		
	window.location.href=strLink;
	return false;				
}
/***************Function For Stories Related with this Asset End**********************************/
/**********Function for Opening Popups of EmailToFriend And PrintFriendly Start*********/
function MediaDetailControl_OpenPopupWin(strPopupURL)
 {
	var popUpPage = strPopupURL;
	hideErrPageDiv();
	window.open(popUpPage,'','resizable=no,width=600,height=600,scrollbars=yes,status=no,menubar=yes,toolbar=yes,location=no,screenX=100,screenY=200,top=10,left=200');
                		
}
/*********** Function for Opening Popups of EmailToFriend And PrintFriendly End ****************/	


function MediaDetailControl_isFlashInstalled()
{ 
	isFlashPresent = getCookie('PLUGIN_FLASH');
	if (isFlashPresent == '1')
	{
		isFlashPresent = true;
	}
	else
	{
		isFlashPresent = false;
	}
	return isFlashPresent;
  //isFlashPresent = DetectFlashVer(7,0,0);		
  //return isFlashPresent;	 
}

function MediaDetailControl_isWMPInstalled()
{
	isWMPPresent = getCookie('PLUGIN_WMP');
	if (isWMPPresent == '1')
	{
		isWMPPresent = true;
	}
	else
	{
		isWMPPresent = false;
	}
	return isWMPPresent;
}

function MediaDetailControl_isQTInstalled()
{
	isQTPresent = getCookie('PLUGIN_QT');
	if (isQTPresent == '1')
	{
		isQTPresent = true;
	}
	else
	{
		isQTPresent = false;
	}
	return isQTPresent;
}

function loaded()
{
	// Do Nothing
}

function MediaDetailControl_ShowPlayer(blnFlag)
{   
    
    strPrintPage = $(returnControlId('MediaDetailControl_ascx') + '_' + 'hidPrintPageLink').value;	      
	
	gblBlnFlag=blnFlag;
    if(blnFlag.toUpperCase()=='T')
    {	
		strASFPrevPath = $(returnControlId('MediaDetailControl_ascx') + '_' + 'hidAssetASFPrevPath');	
		strASFPrevPath = strASFPrevPath.value;				
		strQTPrevPath = $(returnControlId('MediaDetailControl_ascx') + '_' + 'hidAssetQTPrevPath');			
		strQTPrevPath = strQTPrevPath.value;		
		strFLASHPrevPath = $(returnControlId('MediaDetailControl_ascx') +  '_' + 'hidAssetFLASHPrevPath');
		strFLASHPrevPath =strFLASHPrevPath.value;			
	    strFlashFileName = $(returnControlId('MediaDetailControl_ascx') + '_' + 'hidFlashFileName');
	    strFlashFileName = strFlashFileName.value;			
	    strFlashStreamingIP = $(returnControlId('MediaDetailControl_ascx') + '_' + 'hidFlashStreamingIP');
	    strFlashStreamingIP = strFlashStreamingIP.value;		
	    strAudioPrevPath=  $(returnControlId('MediaDetailControl_ascx') + '_' + 'hidAudioPrevPath');		
	    strAudioPrevPath = strAudioPrevPath.value;		
	    strThumbPath= $(returnControlId('MediaDetailControl_ascx') + '_' + 'hidThumbPath');		
	    strThumbPath = strThumbPath.value;		
		strAssetType= $(returnControlId('MediaDetailControl_ascx') + '_' + 'hidAssetType');
		strAssetType = strAssetType.value;	
		strVirtualFlashPath=$(returnControlId('MediaDetailControl_ascx') + '_' + 'hidVirtualFlashPath');	
		strVirtualFlashPath = strVirtualFlashPath.value		  		
	}
	else if(blnFlag.toUpperCase()=='P')
	{		
		
		strPrintPage = 	$('MediaDetailControl1_hidPrintPageLink').value;		
		//strASFPrevPath =$('MediaDetailControl1_hidAssetASFPrevPath').value;		
		//strQTPrevPath = $('MediaDetailControl1_hidAssetQTPrevPath').value;		
		//strFLASHPrevPath = $('MediaDetailControl1_hidAssetFLASHPrevPath').value;		
		//strFlashFileName = $('MediaDetailControl1_hidFlashFileName').value;		
		//strFlashStreamingIP = $('MediaDetailControl1_hidFlashStreamingIP').value;		
		//strAudioPrevPath= $('MediaDetailControl1_hidAudioPrevPath').value;		
		strThumbPath= $('MediaDetailControl1_hidThumbPath').value;		
		strAssetType= $('MediaDetailControl1_hidAssetType').value;
		//strVirtualFlashPath = $('MediaDetailControl1_hidVirtualFlashPath').value;		
	}	
	
	MediaDetailControl_ShowFlash();	
}

/*************** Function To Show Flash Player Start ***********************/
function MediaDetailControl_ShowFlash()
{  
    CheckAccessRestriction();
    /*********** For Video[AssetType=1] **************************/
	 if (strAssetType == '1')
	  {	   
	   if(strPrintPage == 'False' )	
   	   {  
		/************ To check if Video Path is Avalaible or not***********/  
		
		if (strFLASHPrevPath == '')
		 {      
			/************ VideoPath is Not Avalaible ***********/  
			MediaDetailControl_PreviewMacORWindows();						
		 }
		else
		 /************ VideoPath is Avalaible ***********/  
		 { 
 			/************* To check if Flash is present or not **********************************************/
 			MediaDetailControl_isFlashInstalled();
 			if (isFlashPresent)			
			 { 		  
			   /******************** Flash Player is Present  **********************************************/		  			   
			    if (strShowPlayer=='false')
			   	 {
			    	if (blnNonLoginShowPlayer)
			    	{
			    				    	
			    		//9873 start  SR 9.10 10724
			    		if(parseInt(intIsStreamingAsset) == 2)  // streaming only asset
						{                     
						$('EmbedSpanAssetDetailVideo').innerHTML="<table cellpadding='0' cellspacing='0' border='0' ><tr><td><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='345' height='305' id='sa_new_overlay' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='" + strSWFPath + "StreamingPlayer.swf?ID=" + hidAssetId +"&TRT=" + hidTRT + "&overlay_img=" +strThumbPath+ "&stream="+ strFlashFileName +"&fmsip=" + strFlashStreamingIP + "&prog=" + strFLASHPrevPath + "&dcText=IMPORTANT: Note that this is only a preview. Download a streaming-quality version of this video directly to your computer.&displayOverlay=0&port=80' /><param name='quality' value='high' /><param name='bgcolor' value='#f0f0ed' /><param name='wmode' value='transparent' /><embed src='" + strSWFPath + "StreamingPlayer.swf?ID=" + hidAssetId +"&TRT=" + hidTRT + "&overlay_img=" + strThumbPath +"&stream=" + strFlashFileName + "&fmsip=" + strFlashStreamingIP + "&prog=" + strFLASHPrevPath + "&dcText=IMPORTANT: Note that this is only a preview. Download a streaming-quality version of this video directly to your computer.&displayOverlay=0&port=80' quality='high' bgcolor='#f0f0ed' width='345' height='305' wmode='transparent' name='sa_new_overlay' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></td></tr></table>";
			    		}
			    		else	    		
			    		{		    		
			    		$('EmbedSpanAssetDetailVideo').innerHTML="<table cellpadding='0' cellspacing='0' border='0' ><tr><td><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='345' height='305' id='sa_new_overlay' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='" + strSWFPath + "StreamingPlayer.swf?ID=" + hidAssetId +"&TRT=" + hidTRT + "&overlay_img=" +strThumbPath+ "&stream="+ strFlashFileName +"&fmsip=" + strFlashStreamingIP + "&prog=" + strFLASHPrevPath + "&dcText=IMPORTANT: Note that this is only a preview. Add the asset to your cart to receive a broadcast-standard or streaming quality version.&displayOverlay=0&port=80' /><param name='quality' value='high' /><param name='bgcolor' value='#f0f0ed' /><param name='wmode' value='transparent' /><embed src='" + strSWFPath + "StreamingPlayer.swf?ID=" + hidAssetId +"&TRT=" + hidTRT + "&overlay_img=" + strThumbPath +"&stream=" + strFlashFileName + "&fmsip=" + strFlashStreamingIP + "&prog=" + strFLASHPrevPath + "&dcText=IMPORTANT: Note that this is only a preview. Add clip to your cart to receive either broadcast-standard or streaming quality version of this video&displayOverlay=0&port=80' quality='high' bgcolor='#f0f0ed' width='345' height='305' wmode='transparent' name='sa_new_overlay' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></td></tr></table>";
			    		}
			    		//9873 end
			    	}
			    	else
			    	{
			    		ShowNonLoggedInPreviewPlayer();
			    	}
			   	 }
			    else
			    {
			    
			    	//9873 start  SR 9.10 10724
			    	if(parseInt(intIsStreamingAsset) == 2)  // streaming only asset
				    { 
				    $('EmbedSpanAssetDetailVideo').innerHTML="<table cellpadding='0' cellspacing='0' border='0' ><tr><td><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='345' height='305' id='sa_new_overlay' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='" + strSWFPath + "StreamingPlayer.swf?ID=" + hidAssetId +"&TRT=" + hidTRT + "&overlay_img=" +strThumbPath+ "&stream="+ strFlashFileName +"&fmsip=" + strFlashStreamingIP + "&prog=" + strFLASHPrevPath + "&dcText=IMPORTANT: Note that this is only a preview. Download a streaming-quality version of this video directly to your computer.&displayOverlay=1&port=80' /><param name='quality' value='high' /><param name='bgcolor' value='#f0f0ed' /><param name='wmode' value='transparent' /><embed src='" + strSWFPath + "StreamingPlayer.swf?ID=" + hidAssetId +"&TRT=" + hidTRT + "&overlay_img=" + strThumbPath +"&stream=" + strFlashFileName + "&fmsip=" + strFlashStreamingIP + "&prog=" + strFLASHPrevPath + "&dcText=IMPORTANT: Note that this is only a preview. Download a streaming-quality version of this video directly to your computer.&displayOverlay=1&port=80' quality='high' bgcolor='#f0f0ed' width='345' height='305' wmode='transparent' name='sa_new_overlay' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></td></tr></table>";
				    }
				    else
				    {
					$('EmbedSpanAssetDetailVideo').innerHTML="<table cellpadding='0' cellspacing='0' border='0' ><tr><td><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='345' height='305' id='sa_new_overlay' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='" + strSWFPath + "StreamingPlayer.swf?ID=" + hidAssetId +"&TRT=" + hidTRT + "&overlay_img=" +strThumbPath+ "&stream="+ strFlashFileName +"&fmsip=" + strFlashStreamingIP + "&prog=" + strFLASHPrevPath + "&dcText=IMPORTANT: Note that this is only a preview. Add the asset to your cart to receive a broadcast-standard or streaming quality version.&displayOverlay=1&port=80' /><param name='quality' value='high' /><param name='bgcolor' value='#f0f0ed' /><param name='wmode' value='transparent' /><embed src='" + strSWFPath + "StreamingPlayer.swf?ID=" + hidAssetId +"&TRT=" + hidTRT + "&overlay_img=" + strThumbPath +"&stream=" + strFlashFileName + "&fmsip=" + strFlashStreamingIP + "&prog=" + strFLASHPrevPath + "&dcText=IMPORTANT: Note that this is only a preview. Add clip to your cart to receive either broadcast-standard or streaming quality version of this video&displayOverlay=1&port=80' quality='high' bgcolor='#f0f0ed' width='345' height='305' wmode='transparent' name='sa_new_overlay' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></td></tr></table>";
					}
					//9873 end
			    }
			  
			 }
			else
			 {
			    MediaDetailControl_PreviewMacORWindows();
			 }
		 }
	 }
	 else
	  /********* Page is Print-Friendly Page ************************************/
	 {
	   if ($("EmbedSpanAssetDetailVideo")!= null )
	   {	  
	     $('EmbedSpanAssetDetailVideo').innerHTML = "<table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='220' height='170'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table cellspacing='0' cellpadding='0' border='0'><tr><td align='center'><img  src='" + strThumbPath + "'</img></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";
	   }
	 }	
	
  }
	/*********** For Audio[AssetType=2] **************************/
	/**issue 9687 **/
	
	//changed for Issue 9373
	else if (strAssetType == '2')
	{		
	   
	   if(strPrintPage == 'False' )	
		 /********************* Page is not PrintFriendly****************************************/	
		{		 
			/************ To check if Audio Path is Avalaible or not***********/  
			if (strAudioPrevPath == '')
			/***************** Audio Path is not available **************************************/
			{		
				objSpanType = 'EmbedSpanAssetDetailAudio';			
				$('EmbedSpanAssetDetailAudio').innerHTML = "<table><tr><td width='241' height='226'><img width='241' height='226' src='" + strThumbPath + "' border='0'></img></td></tr></table>";	
			}
			else
			/***************** Audio Path is available **************************************/
			{ 
 				/************* To check if Flash is present or not **********************************************/
 				
 						
 				if (strShowPlayer=='false') 
			    {
			       $('EmbedSpanAssetDetailAudio').innerHTML= "<table cellspacing='0' cellpadding='0' border='0'  width='345' height='25' class='whiteColor'><tr><td><img src='" + strjsImagePath + "nonLoggedInAudioDetails.gif' onclick='MediaDetailControl_ShowLoginLayer();' href='#'></td></tr></table>";		     
					//9873 start
					if(parseInt(intNonLoginPreviewLimit) == 0)
 					{
						$('EmbedSpanAssetDetailAudioMsg').innerHTML ="<table cellpadding=0 cellspacing=0 width='100%' height='20px' style='background-color:#000000'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenBold'>					 </td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenLinks' style ='text-decoration:none'>If you are an approved user, please login to preview this asset. If you are new to this site and would like previewing privileges, please <a href=https://" + txtServerName  + "/Registrations/PreRegistrationPage.aspx?regtype=R title='Click to register for free access'><font color='#EA0030'>register now</font></a> for free.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
					}
					else
					{
						$('EmbedSpanAssetDetailAudioMsg').innerHTML ="<table cellpadding=0 cellspacing=0 width='100%' height='20px' style='background-color:#000000'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenBold'>LOGIN OR REGISTER</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenLinks' style ='text-decoration:none'>To continue previewing assets on The Newsmarket, please login or take a moment to <a href=https://" + txtServerName  + "/Registrations/PreRegistrationPage.aspx?regtype=R title='Click to register for free access'><font color='#EA0030'>register</font></a> with us for free.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
					}
					//9873 end
			    }
			   else
			    {	//9873 start
			        MediaDetailControl_isFlashInstalled(); 		
			        MediaDetailControl_isWMPInstalled();
 					if (isFlashPresent)
 					{
	 				 	
					/******************** Flash Player is Present  **********************************************/
					$('EmbedSpanAssetDetailAudio').innerHTML = "<table cellpadding='0' cellspacing='0' border='0' width='342'><tr><td style='vertical-align: top;'><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='350' height='60' id='tnm_player' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='" + strSWFPath + "tnm_player.swf?audioFile=" + strAudioPrevPath+ "' /><param name='quality' value='high' /><param name='bgcolor' value='#f5f5f5' /><embed src='" + strSWFPath + "tnm_player.swf?audioFile=" + strAudioPrevPath + "' quality='high' bgcolor='#f5f5f5' width='350' height='60' name='tnm_player' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></td></tr></table>";  
					$('EmbedSpanAssetDetailAudioMsg').innerHTML = "<table cellpadding=0 cellspacing=0 width='100%' height='20px'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td style ='text-decoration:none'>IMPORTANT: Note that this is only a preview. Add the asset to your cart to receive it.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";

					}				
					else if (isWMPPresent)
					{				     
					$('EmbedSpanAssetDetailAudio').innerHTML= "<tabe cellpadding='0' cellspacing='0' border='0'><tr><td valign='top'><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='1' height='5'></td></tr> <tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='65'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='45' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strAudioPrevPath +"'><param name='animationatStart' value='false'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strAudioPrevPath +"' autostart='false'  loop='false' cache='false' width='320' height='45'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";				   
					$('EmbedSpanAssetDetailAudioMsg').innerHTML = "<table cellpadding=0 cellspacing=0 width='100%' height='20px'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td style ='text-decoration:none'>IMPORTANT: Note that this is only a preview. Add the asset to your cart to receive it.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
					}				  
					else
					{
					$('EmbedSpanAssetDetailAudio').innerHTML = "<table cellspacing='0' cellpadding='0' border='1' width='241' height='226'><tr><td><img width='241' height='206' src='" + strThumbPath + "'</img></td></tr></table>";
					$('EmbedSpanAssetDetailAudioMsg').innerHTML = "<table cellpadding=0 cellspacing=0 width='100%' height='20px'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td style ='text-decoration:none'>IMPORTANT: Note that this is only a preview. Add the asset to your cart to receive it.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
					}
				}				
			}
		}
		else
		/***************** Page is Print Friendly Start****************************************/
		{		  
		    
		    if ($("EmbedSpanAssetDetailAudio")!= null )
			{ 
		     if (strShowPlayer=='false')
				{ 
				$('EmbedSpanAssetDetailAudio').innerHTML = "<table cellspacing='0' cellpadding='0'	border='0' class='whiteColor' width='220' height='170'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table cellspacing='0' cellpadding='0' border='0'><tr><td align='center'><img  src='" + strThumbPath + "'</img></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>"; 
					//9873 start
					if(parseInt(intNonLoginPreviewLimit) == 0)
 					{
						$('EmbedSpanAssetDetailAudioMsg').innerHTML ="<table cellpadding=0 cellspacing=0 width='100%' height='20px' style='background-color:#000000'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenBold'>					  </td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenLinks' style ='text-decoration:none'>If you are an approved user, please login to preview this asset. If you are new to this site and would like previewing privileges, please <font color='#EA0030'>register now</font> for free.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
					}
					else
					{
						$('EmbedSpanAssetDetailAudioMsg').innerHTML ="<table cellpadding=0 cellspacing=0 width='100%' height='20px' style='background-color:#000000'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenBold'>LOGIN OR REGISTER</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenLinks' style ='text-decoration:none'>To continue previewing assets on The Newsmarket, please login or take a moment to <font color='#EA0030'>register</font> with us for free.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
					}
					//9873 end
				}
			 else
				{
				$('EmbedSpanAssetDetailAudio').innerHTML = "<table cellspacing='0' cellpadding='0'	border='0' class='whiteColor' width='220' height='170'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table cellspacing='0' cellpadding='0' border='0'><tr><td align='center'><img  src='" + strThumbPath + "'</img></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>"; 
				$('EmbedSpanAssetDetailAudioMsg').innerHTML = "<table cellpadding=0 cellspacing=0 width='100%' height='20px'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td style ='text-decoration:none'>IMPORTANT: Note that this is only a preview. Add the asset to your cart to receive it.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
				}
		    }//9873 end
		  
		}	 	
	}	
	// For Still  
	//9873 start
	else if (strAssetType == '3')
	 {
 	 
 	  if (strPrintPage == 'False' )	
 		{	    
 			if (strShowPlayer=='false')
			{ 
			 $('EmbedSpanAssetDetailStill').innerHTML = "<table cellspacing='0' cellpadding='0' border='0' width='212' height='190'><tr><td colspan='3' align='center'><table cellspacing='0' cellpadding='0' border='0' ><tr><td><a href='#' ><img  src='" + strThumbPath + "' class='grayTableBorder' onclick=MediaDetailControl_ShowLoginLayer(); width='200' height='150'></a></td></tr></table></td></tr><tr height='5'><td ><img src='" + strjsImagePath + "s.gif' height='5' ></td></tr><tr height='16'><td >&nbsp;&nbsp;<img src='" + strjsImagePath + "nonLoggedInStillDetail.gif' onclick='MediaDetailControl_ShowLoginLayer();' href='#'></td></tr ><tr height='5'><td ><img src='" + strjsImagePath + "s.gif' height='5'></img></td></tr></table>";		 
				
				//9873 start
				if(parseInt(intNonLoginPreviewLimit) == 0)
 				{
				$('EmbedSpanAssetDetailStillMsg').innerHTML ="<table cellpadding=0 cellspacing=0 width='100%' height='20px' style='background-color:#000000'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenBold'></td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenLinks' style ='text-decoration:none'>If you are an approved user, please login to preview a larger version of this image. If you are new to this site and would like previewing privileges, please <a href=https://" + txtServerName  + "/Registrations/PreRegistrationPage.aspx?regtype=R title='Click to register for free access'><font color='#EA0030'>register now</font></a> for free.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
				}
				else
				{
				$('EmbedSpanAssetDetailStillMsg').innerHTML ="<table cellpadding=0 cellspacing=0 width='100%' height='20px' style='background-color:#000000'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenBold'>LOGIN OR REGISTER</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenLinks' style ='text-decoration:none'>To continue previewing assets on The Newsmarket, please login or take a moment to <a href=https://" + txtServerName  + "/Registrations/PreRegistrationPage.aspx?regtype=R title='Click to register for free access'><font color='#EA0030'>register</font></a> with us for free.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
				}
				//9873 end
			}
			else
			{ 			 	
 			 $('EmbedSpanAssetDetailStill').innerHTML = "<table cellspacing='0' cellpadding='0' border='0' width='212' height='190'><tr><td colspan='3' align='center'><table cellspacing='0' cellpadding='0' border='0' ><tr><td><a href='#'><img  src='" + strThumbPath + "' class='grayTableBorder' onclick='PreviewStillLayer();' width='200' height='150'></a></td></tr></table></td></tr><tr height='5'><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' ></img></td></tr><tr height='16'><td><img src='" + strjsImagePath + "s.gif'width='7'></img></td><td width='25'><a href='#' ><img border='0' id='iconPreview' src='" + strjsImagePath + "icon_preview_white.gif' onclick='PreviewStillLayer();' width='17' height='16' ></a></td><td  style='width:185;'><a border='0'  href='#' onclick='PreviewStillLayer();' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>View larger Version</a></td></tr ><tr height='5'><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5'></img></td></tr></table>";		
 			 $('EmbedSpanAssetDetailStillMsg').innerHTML = "<table cellpadding=0 cellspacing=0 width='100%' height='20px'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td style ='text-decoration:none'>IMPORTANT: Note that this is only a preview. Add the asset to your cart to receive a print quality version.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
 			}		 	    
 		}
 		else
 		/***************** Page is Print Friendly Start****************************************/
 		{ 
 		  if ($("EmbedSpanAssetDetailStill")!= null )
	      {	
 			if (strShowPlayer=='false')
			{ 
	       		$('EmbedSpanAssetDetailStill').innerHTML = "<table cellspacing='0' cellpadding='0' border='0' width='210' height='160'><tr><td colspan='3' align='center'><table cellspacing='0' cellpadding='0' border='0' ><tr><td><img  src='" + strThumbPath + "' class='grayTableBorder' width='200' height='150'></td></tr></table></td></tr></td></tr></table>";		
 				
 					//9873 start
 					if(parseInt(intNonLoginPreviewLimit) == 0)
 					{
 					$('EmbedSpanAssetDetailStillMsg').innerHTML ="<table cellpadding=0 cellspacing=0 width='100%' height='20px' style='background-color:#000000'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenBold'></td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenLinks' style ='text-decoration:none'>If you are an approved user, please login to preview a larger version of this image. If you are new to this site and would like previewing privileges, please <font color='#EA0030'>register now</font> for free.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
 					}
 					else
 					{
 					$('EmbedSpanAssetDetailStillMsg').innerHTML ="<table cellpadding=0 cellspacing=0 width='100%' height='20px' style='background-color:#000000'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenBold'>LOGIN OR REGISTER</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td class='labelGreenLinks' style ='text-decoration:none'>To continue previewing assets on The Newsmarket, please login or take a moment to <font color='#EA0030'>register</font> with us for free.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
 					}
 					//9873 end
 			}
 			else
			{ 
 			   	$('EmbedSpanAssetDetailStill').innerHTML = "<table cellspacing='0' cellpadding='0' border='0' width='210' height='160'><tr><td colspan='3' align='center'><table cellspacing='0' cellpadding='0' border='0' ><tr><td><img  src='" + strThumbPath + "' class='grayTableBorder' width='200' height='150'></td></tr></table></td></tr></td></tr></table>";		
 				$('EmbedSpanAssetDetailStillMsg').innerHTML = "<table cellpadding=0 cellspacing=0 width='100%' height='20px'><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td><td style ='text-decoration:none'>IMPORTANT: Note that this is only a preview. Add the asset to your cart to receive a print quality version.</td><td><img src='" + strjsImagePath + "s.gif' height='2' width='5'></td></tr><tr><td colspan='3'><img src='" + strjsImagePath + "s.gif' height='5' width='2'></td></tr></table>";
 			}
 			
 		  }
 		}
 	  //9873 end  
	 }     
}
/**issue 9687 **/
/*************** Function To Show Flash Player End ***********************/


function MediaDetailControl_PreviewMacORWindows()
{
	objSpanType = 'EmbedSpanAssetDetailVideo';
	if (txtIsMAC == "false")
	/****************Operating System Is Windows*************************************/
	{	
		if (strBrowserName != "IE")
		{
			if(strQTPrevPath !='')
			{  
				MDC_Show_WIN_QT();					  
			}
			else if(strASFPrevPath !='')
			{
				MDC_Show_WIN_WMP();
			}
			else
			{
				MDC_Show_NotAvailableImage();
			}
		}
		else
		{
			if(strASFPrevPath !='')
			{
				MDC_Show_WIN_WMP();
			}						  
			else if(strQTPrevPath !='')
			{  
				MDC_Show_WIN_QT();					  
			}
			else
			{
				MDC_Show_NotAvailableImage();
			}
		}		
	}
	
	else
	/****************Operating System Is Mac*************************************/
	{			  
		if(strQTPrevPath !='')
		{
			MDC_Show_MAC_QT();						  
		}
		else if(strASFPrevPath !='')
		{
			MDC_Show_MAC_WMP();		
		}
		else
		{
			MDC_Show_NotAvailableImage();
		}
	}
}

function MDC_Show_MAC_QT()
{
	MediaDetailControl_isQTInstalled();
	if (isQTPresent)
	{					
		/***************Plugins of QT Player Found***************************************/
		if (strShowPlayer=='false') 
		{
			//Added for Issue 9373
			//Enable FE previews in Non-Logged In mode till threshold limit is reached.
			if (blnNonLoginShowPlayer)
			{
			    MediaDetailControl_isFlashInstalled();
				if(isFlashPresent)
				{			  
					$('EmbedSpanAssetDetailVideo').innerHTML = "<table cellspacing='0' cellpadding='0'	border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table ><tr><td><embed src='" + strQTPrevPath + "' width='320' height='278' scale='tofit' autoplay='true' controller='true' CACHE='true' type='video/quicktime'></embed></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";
				}
				else
				{
					$('EmbedSpanAssetDetailVideo').innerHTML = "<table><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0'	border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table width='' height=''><tr><td><embed src='" + strQTPrevPath + "' width='320' height='278' scale='tofit' autoplay='true' controller='true' CACHE='true' type='video/quicktime'></embed></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";
				}
			}
			else
			{
				ShowNonLoggedInPreviewPlayer();
			}
		}
		else
		{	
			MediaDetailControl_isFlashInstalled();
			if(isFlashPresent)
			{			  
				$('EmbedSpanAssetDetailVideo').innerHTML = "<table cellspacing='0' cellpadding='0'	border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table ><tr><td><embed src='" + strQTPrevPath + "' width='320' height='278' scale='tofit' autoplay='false' controller='true' CACHE='true' type='video/quicktime'></embed></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";
			}
			else
			{
				$('EmbedSpanAssetDetailVideo').innerHTML = "<table><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0'	border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table width='' height=''><tr><td><embed src='" + strQTPrevPath + "' width='320' height='278' scale='tofit' autoplay='false' controller='true' CACHE='true' type='video/quicktime'></embed></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";
			}
		}
	}
	else
	{				
		/***************Plugins of QT Player Not Found***************************************/	
		/*
		MediaDetailControl_isFlashInstalled();
		if(isFlashPresent)
		{			    		  	    			    
			$('EmbedSpanAssetDetailVideo').innerHTML =  "<table width='241' height='226' border='0'><tr><td width='100' height='140'><img id='imgPreview' width='231' height='180' src='"+ strThumbPath+"'></td></tr></table>";
		}
		else
		{			  				    
			$('EmbedSpanAssetDetailVideo').innerHTML =  "<table width='241' height='226' border='0'><tr><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td></tr><tr><td width='100' height='140'><img id='imgPreview' width='231' height='180' src='"+ strThumbPath+"'></td></tr></table>";
		}
		*/
		MDC_Show_MAC_WMP();	
	}	
}

function MDC_Show_MAC_WMP()
{
	/********Check Plugins of Windows Media Player************/
 	MediaDetailControl_isWMPInstalled();
 	if (isWMPPresent)
	{					
		/*************Plugins of Windows Media Player Found**********/
		if (strShowPlayer=='false') 
		{
			if (blnNonLoginShowPlayer)
			{
				MediaDetailControl_isFlashInstalled();
				if(isFlashPresent)
				{			    		  	    			    
					$('EmbedSpanAssetDetailVideo').innerHTML = "<table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='true'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='true'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";			
				}
				else
				{			  				    
					$('EmbedSpanAssetDetailVideo').innerHTML = "<tabe><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr> <tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='true'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='true'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";			
				}
			}
			else
			{
				ShowNonLoggedInPreviewPlayer();
			}
		}
		else
		{
			MediaDetailControl_isFlashInstalled();
			if(isFlashPresent)
			{			    		  	    			    
				$('EmbedSpanAssetDetailVideo').innerHTML = "<table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='false'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='false'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";			
			}
			else
			{			  				    
				$('EmbedSpanAssetDetailVideo').innerHTML = "<tabe><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr> <tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='false'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='false'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";			
			}
		}		
	}
	else
	{
		MediaDetailControl_isFlashInstalled();
		if(isFlashPresent)
		{			    		  	    			    
			$('EmbedSpanAssetDetailVideo').innerHTML =  "<table width='241' height='226' border='0'><tr><td width='100' height='140'><img id='imgPreview' width='231' height='180' src='"+ strThumbPath+"'></td></tr></table>";
		}
		else
		{			  				    
			$('EmbedSpanAssetDetailVideo').innerHTML =  "<table width='241' height='226' border='0'><tr><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td></tr><tr><td width='100' height='140'><img id='imgPreview' width='231' height='180' src='"+ strThumbPath+"'></td></tr></table>";
		}
	}	
}

function MDC_Show_NotAvailableImage()
{
	$('EmbedSpanAssetDetailVideo').innerHTML =  "<table cellspacing='0' cellpadding='0' border='0'><tr><td colspan='2'><img src='" + strjsImagePath + "s.gif' width='3' height='3'></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='3' height='1'></td><td align='center'><img  src='" + strjsImagePath + "missingpeviewfile.gif'></td></tr></table>";
}

function MDC_Show_WIN_QT()
{
	MediaDetailControl_isQTInstalled()
	if (isQTPresent)
	{					
	/***************Plugins of QT Player Found***************************************/
		if (strShowPlayer=='false') 
		{
			if (blnNonLoginShowPlayer)
			{
				MediaDetailControl_isFlashInstalled();
				if(isFlashPresent)
				{			  
					$('EmbedSpanAssetDetailVideo').innerHTML = "<table cellspacing='0' cellpadding='0'	border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table ><tr><td><embed src='" + strQTPrevPath + "' width='320' height='278' scale='tofit' autoplay='true' controller='true' CACHE='true' type='video/quicktime'></embed></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";
				}
				else
				{
					$('EmbedSpanAssetDetailVideo').innerHTML = "<table><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0'	border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table width='' height=''><tr><td><embed src='" + strQTPrevPath + "' width='320' height='278' scale='tofit' autoplay='true' controller='true' CACHE='true' type='video/quicktime'></embed></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";
				}
			}
			else
			{
				ShowNonLoggedInPreviewPlayer();
			}
		}
		else
		{	
			MediaDetailControl_isFlashInstalled();
			if(isFlashPresent)
			{			  
				$('EmbedSpanAssetDetailVideo').innerHTML = "<table cellspacing='0' cellpadding='0'	border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table ><tr><td><embed src='" + strQTPrevPath + "' width='320' height='278' scale='tofit' autoplay='false' controller='true' CACHE='true' type='video/quicktime'></embed></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";
			}
			else
			{
				$('EmbedSpanAssetDetailVideo').innerHTML = "<table><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0'	border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table width='' height=''><tr><td><embed src='" + strQTPrevPath + "' width='320' height='278' scale='tofit' autoplay='false' controller='true' CACHE='true' type='video/quicktime'></embed></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";
			}
		}
	}
	else
	{				
		/***************Plugins of QT Player Not Found***************************************/	
		if (strBrowserName != "IE")
		{
			MDC_Show_WIN_WMP();
		}
		else
		{
			MediaDetailControl_isFlashInstalled();
			if(isFlashPresent)
			{			    		  	    			    
				$('EmbedSpanAssetDetailVideo').innerHTML =  "<table width='241' height='226' border='0'><tr><td width='100' height='140'><img id='imgPreview' width='231' height='180' src='"+ strThumbPath+"'></td></tr></table>";
			}
			else
			{			  				    
				$('EmbedSpanAssetDetailVideo').innerHTML =  "<table width='241' height='226' border='0'><tr><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td></tr><tr><td width='100' height='140'><img id='imgPreview' width='231' height='180' src='"+ strThumbPath+"'></td></tr></table>";
			}
		}	
	}
}

function MDC_Show_WIN_WMP()
{
	/********Check Plugins of Windows Media Player************/ 			
	MediaDetailControl_isWMPInstalled();
 	if (isWMPPresent)
	{					
		/*************Plugins of Windows Media Player Found**********/
		if (strShowPlayer=='false') 
		{
			if (blnNonLoginShowPlayer)
			{
				MediaDetailControl_isFlashInstalled();
				if(isFlashPresent)
				{			    		  	    			    
					if (strBrowserName != "IE")
					{
						$('EmbedSpanAssetDetailVideo').innerHTML = "<tabe><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Please click <a title='Goto FAQ.' href='../HelpPages/TNMHelp.aspx?SN=FAQ&HID=14&CID=7#WMP'>here</a> if you have trouble viewing video.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr> <tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='true'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='true'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";			
					}
					else
					{
						$('EmbedSpanAssetDetailVideo').innerHTML = "<table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='true'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='true'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";
					}			
				}
				else
				{		  				    
					if (strBrowserName != "IE")
					{
						$('EmbedSpanAssetDetailVideo').innerHTML = "<tabe><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.<br>! Please click <a title='Goto FAQ.' href='../HelpPages/TNMHelp.aspx?SN=FAQ&HID=14&CID=7#WMP'>here</a> if you have trouble viewing video.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr> <tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='true'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='true'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";			
					}
					else
					{
						$('EmbedSpanAssetDetailVideo').innerHTML = "<tabe><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr> <tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='true'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='true'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";				
					}
				}
			}
			else
			{
				ShowNonLoggedInPreviewPlayer();
			}
		}
		else
		{
			MediaDetailControl_isFlashInstalled();
			if(isFlashPresent)
			{			    		  	    			    
				if (strBrowserName != "IE")
				{
					$('EmbedSpanAssetDetailVideo').innerHTML = "<tabe><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Please click <a title='Goto FAQ.' href='../HelpPages/TNMHelp.aspx?SN=FAQ&HID=14&CID=7#WMP'>here</a> if you have trouble viewing video.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr> <tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='false'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='false'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";			
				}
				else
				{
					$('EmbedSpanAssetDetailVideo').innerHTML = "<table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='false'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='false'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";
				}			
			}
			else
			{		  				    
				if (strBrowserName != "IE")
				{
					$('EmbedSpanAssetDetailVideo').innerHTML = "<tabe><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.<br>! Please click <a title='Goto FAQ.' href='../HelpPages/TNMHelp.aspx?SN=FAQ&HID=14&CID=7#WMP'>here</a> if you have trouble viewing video.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr> <tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='false'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='false'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";			
				}
				else
				{
					$('EmbedSpanAssetDetailVideo').innerHTML = "<tabe><tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='25'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr> <tr><td><table cellspacing='0' cellpadding='0' border='0' class='whiteColor' width='345' height='305'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='1'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif'  width='6' height='1'></td><td align='center'><table><tr><td><OBJECT id='mediaPlayer' width='320' height='284' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'><param name='fileName' value='" + strASFPrevPath +"'><param name='animationatStart' value='false'><param name='showControls' value='true'><param name='transparentatStart' value='false'><param name='ShowPositionControls' value='0'><Embed type='application/x-mplayer2' id='mediaPlayer' name='mediaPlayer' ShowPositionControls='0' autosize='1' bgcolor='green' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='true'  src='" + strASFPrevPath +"' autostart='false'  loop='false' cache='false' width='320' height='284'></Embed></OBJECT></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table></td></tr></table>";				
				}
			}
		}					
	}
	else
	{			  
		if (strBrowserName == "IE")
		{
			MDC_Show_WIN_QT();
		}
		else
		{
			MediaDetailControl_isFlashInstalled();
			if(isFlashPresent)
			{			    		  	    			    
				$('EmbedSpanAssetDetailVideo').innerHTML =  "<table width='241' height='226' border='0'><tr><td width='100' height='140'><img id='imgPreview' width='231' height='180' src='"+ strThumbPath+"'></td></tr></table>";
			}
			else
			{			  				    
				$('EmbedSpanAssetDetailVideo').innerHTML =  "<table width='241' height='226' border='0'><tr><td valign='top' style='FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #ed224c;'>! Install the latest<a href='http://www.macromedia.com/go/getflashplayer/' onmouseover=return onText('Download Flash'); target='_blank'>&nbsp;Adobe Flash Player&nbsp;</a>to enhance your experience.</td></tr><tr><td width='100' height='140'><img id='imgPreview' width='231' height='180' src='"+ strThumbPath+"'></td></tr></table>";
			}				
		}
	}
}

function PreviewStillLayer()
{
	hideErrPageDiv();
	AssetPreviewLayer_GetAllAssetIDs(hidAssetId);
	AssetPreviewLayer_GetAssetValue(hidAssetId);
	AssetPreviewLayer_expandAssetPreview();
	var VscrollY=0; 
	//VscrollY = dd.getScrollY();	
	var edivAssetPreview = dd.elements.divAssetPreview;
	edivAssetPreview.moveTo(350, VscrollY); 
}


function MediaDetailControl_ShowHoverMsg(pmsgid)
{
	
	var HoverMsg;
	HoverMsg=returnMessage(pmsgid);
	MediaDetailControl_displayQuestionTT(HoverMsg);
}

function MediaDetailControl_displayQuestionTT(strMessage)
	{
		var strTTHtml = "";

		strTTHtml += "<table cellspacing=\"0\" cellpadding=\"0\" width=\"270\" border=\"0\">"
		strTTHtml += "	<tr>"
		strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_top_left.gif\" width=\"2\" height=\"2\"></td>"
		strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_top_green.gif\" width=\"40\" height=\"2\"></td>"
		strTTHtml += "		<td class=\"toolTipRightBackground\"><img src=\"" + strjsImagePath + "tt_error_edge_top_transparent.gif\" width=\"229\" height=\"2\"></td>"
		strTTHtml += "		<td class=\"toolTipRightBackground\"><img src=\"" + strjsImagePath + "tt_error_edge_top_right.gif\" height=\"2\" width=\"2\"></td>"
		strTTHtml += "	</tr>"
		strTTHtml += "	<tr>"
		strTTHtml += "		<td style=\"background-image: url(" + strjsImagePath + "tt_error_edge_left_green.gif);\"><img src=\"" + strjsImagePath + "tt_error_edge_left_green.gif\" width=\"2\" height=\"1\"></td>"
		strTTHtml += "		<td style=\"vertical-align: top;\" class=\"toolTipLeftBackground\">"
		strTTHtml += "			<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">"
		strTTHtml += "				<tr>"
		strTTHtml += "					<td class=\"toolTipExclamationOrQuestion\" align=\"center\"><!-- EXCLAMATION MARK IMAGE -->?</td>"
		strTTHtml += "				</tr>"
		strTTHtml += "			</table>"
		strTTHtml += "		</td>"
		strTTHtml += "		<td class=\"toolTipRightBackground\">"
		strTTHtml += "			<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">"
		strTTHtml += "				<tr>"
		strTTHtml += "					<td rowspan=\"3\"><img src=\"" + strjsImagePath + "s.gif\" width=\"5\" height=\"5\"></td>"
		strTTHtml += "					<td style=\"width: 100%\"><img src=\"" + strjsImagePath + "s.gif\" width=\"5\" height=\"5\"></td>"
		strTTHtml += "					<td rowspan=\"3\"><img src=\"" + strjsImagePath + "s.gif\" width=\"5\" height=\"5\"></td>"
		strTTHtml += "				</tr>"
		strTTHtml += "				<tr>"
		strTTHtml += "					<td>"
		strTTHtml += "						<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">"
		strTTHtml += "							<tr>"
		strTTHtml += "								<td style=\"width: 100%;\">" + strMessage + "<!-- ERROR MESSAGE HERE --></td>"
		strTTHtml += "							</tr>"
		strTTHtml += "							<tr>"
		strTTHtml += "								<td>"
		strTTHtml += "									<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">"
		strTTHtml += "										<tr>"
		strTTHtml += "											<td style=\"width: 100%;\"><img src=\"" + strjsImagePath + "s.gif\" width=\"1\" height=\"20\"></td>"
		strTTHtml += "											<td style=\"vertical-align: bottom;\"><!-- LOGO MESSAGE HERE --><img src=\"" + strjsImagePath + "tt_tnm_logo.gif\"></td>"
		strTTHtml += "										</tr>"
		strTTHtml += "									</table>"
		strTTHtml += "								</td>"
		strTTHtml += "							</tr>"
		strTTHtml += "						</table>"
		strTTHtml += "					</td>"
		strTTHtml += "				</tr>"
		strTTHtml += "				<tr>"
		strTTHtml += "					<td><img src=\"" + strjsImagePath + "s.gif\" width=\"1\" height=\"5\"></td>"
		strTTHtml += "				</tr>"
		strTTHtml += "			</table>"
		strTTHtml += "		</td>"
		strTTHtml += "		<td class=\"toolTipRightBackground\" style=\"background-image: url(" + strjsImagePath + "tt_error_edge_right_transparent.gif);\"><img src=\"" + strjsImagePath + "tt_error_edge_right_transparent.gif\" width=\"2\" height=\"1\"></td>"
		strTTHtml += "	</tr>"
		strTTHtml += "	<tr>"
		strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_bottom_left.gif\" width=\"2\" height=\"2\"></td>"
		strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_bottom_green.gif\" width=\"40\" height=\"2\"></td>"
		strTTHtml += "		<td class=\"toolTipRightBackground\"><img src=\"" + strjsImagePath + "tt_error_edge_bottom_transparent.gif\" width=\"229\" height=\"2\"></td>"
		strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_bottom_right.gif\" height=\"2\" width=\"2\"></td>"
		strTTHtml += "	</tr>"
		strTTHtml += "</table>"

		return overlib(strTTHtml, FULLHTML, BACKGROUND, "" + strjsImagePath + "s.gif");
	}
	
	
function MediaDetailControl_ShowEmailHover(pmsgid)
{
	//alert("MediaDetailControl_ShowEmailHover:"+pmsgid.value);
	hideErrPageDiv();
	var HoverMsg;
	//HoverMsg=returnMessage(pmsgid);
	MediaDetailControl_displayEmail(pmsgid);
}

function MediaDetailControl_Emailhover(strMessage)
{
	var strTTHtml = "";

	strTTHtml += "<table cellspacing=\"0\" cellpadding=\"0\" width=\"170\" border=\"0\">"
	strTTHtml += "	<tr>"
	strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_top_left.gif\" width=\"2\" height=\"2\"></td>"
	strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_top_green.gif\" width=\"50\" height=\"2\"></td>"
	strTTHtml += "		<td class=\"toolTipRightBackground\"><img src=\"" + strjsImagePath + "tt_error_edge_top_transparent.gif\" width=\"100%\" height=\"2\"></td>"
	strTTHtml += "		<td class=\"toolTipRightBackground\"><img src=\"" + strjsImagePath + "tt_error_edge_top_right.gif\" height=\"2\" width=\"2\"></td>"
	strTTHtml += "	</tr>"
	strTTHtml += "	<tr>"
	strTTHtml += "		<td style=\"background-image: url(" + strjsImagePath + "tt_error_edge_left_green.gif);\"><img src=\"" + strjsImagePath + "tt_error_edge_left_green.gif\" width=\"2\" height=\"1\"></td>"
	strTTHtml += "		<td  class=\"toolTipLeftBackground\">"
	strTTHtml += "			<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">"
	strTTHtml += "				<tr>"
	strTTHtml += "					<td class=\"toolTipExclamationOrQuestion\" align=\"center\"><img src=\"" + strjsImagePath + "tt_green_envelope.gif\" ></td>"
	strTTHtml += "				</tr>"
	strTTHtml += "			</table>"
	strTTHtml += "		</td>"
	strTTHtml += "		<td class=\"toolTipRightBackground\">"
	strTTHtml += "			<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">"
	strTTHtml += "				<tr>"
	strTTHtml += "					<td rowspan=\"3\"><img src=\"" + strjsImagePath + "s.gif\" width=\"10\" height=\"5\"></td>"
	strTTHtml += "					<td style=\"width: 100%\"><img src=\"" + strjsImagePath + "s.gif\" width=\"10\" height=\"5\"></td>"
	strTTHtml += "					<td rowspan=\"3\"><img src=\"" + strjsImagePath + "s.gif\" width=\"10\" height=\"5\"></td>"
	strTTHtml += "				</tr>"
	strTTHtml += "				<tr>"
	strTTHtml += "					<td>"
	strTTHtml += "						<table cellspacing=\"0\" cellpadding=\"0\" width=\"150\" border=\"0\">"
	strTTHtml += "	                       <tr>"
	strTTHtml += "                         <td>Click to send e-mail to:"
	
	strTTHtml += "	                       </td>" 
	strTTHtml += "		                    </tr>"
	strTTHtml += "							<tr>"
	strTTHtml += "								<td style=\"width: 100%;\">" + strMessage + "</td>"
	strTTHtml += "							</tr>"
	strTTHtml += "						</table>"
	strTTHtml += "					</td>"
	strTTHtml += "				</tr>"
	strTTHtml += "				<tr>"
	strTTHtml += "					<td><img src=\"" + strjsImagePath + "s.gif\" width=\"1\" height=\"5\"></td>"
	strTTHtml += "				</tr>"
	strTTHtml += "			</table>"
	strTTHtml += "		</td>"
	strTTHtml += "		<td class=\"toolTipRightBackground\" style=\"background-image: url(" + strjsImagePath + "tt_error_edge_right_transparent.gif);\"><img src=\"" + strjsImagePath + "tt_error_edge_right_transparent.gif\" width=\"2\" height=\"1\"></td>"
	strTTHtml += "	</tr>"
	strTTHtml += "	<tr>"
	strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_bottom_left.gif\" width=\"2\" height=\"2\"></td>"
	strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_bottom_green.gif\" width=\"50\" height=\"2\"></td>"
	strTTHtml += "		<td class=\"toolTipRightBackground\"><img src=\"" + strjsImagePath + "tt_error_edge_bottom_transparent.gif\" width=\"100%\" height=\"2\"></td>"
	strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_bottom_right.gif\" height=\"2\" width=\"2\"></td>"
	strTTHtml += "	</tr>"
	strTTHtml += "</table>"

	return overlib(strTTHtml, FULLHTML, BACKGROUND, "" + strjsImagePath + "s.gif");
}

function MediaDetailControl_SourceURLHover(strMessage)
{
	var strTTHtml = "";

	strTTHtml += "<table cellspacing=\"0\" cellpadding=\"0\" width=\"170\" border=\"0\">"
	strTTHtml += "	<tr>"
	strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_top_left.gif\" width=\"2\" height=\"2\"></td>"
	strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_top_green.gif\" width=\"50\" height=\"2\"></td>"
	strTTHtml += "		<td class=\"toolTipRightBackground\"><img src=\"" + strjsImagePath + "tt_error_edge_top_transparent.gif\" width=\"100%\" height=\"2\"></td>"
	strTTHtml += "		<td class=\"toolTipRightBackground\"><img src=\"" + strjsImagePath + "tt_error_edge_top_right.gif\" height=\"2\" width=\"2\"></td>"
	strTTHtml += "	</tr>"
	strTTHtml += "	<tr>"
	strTTHtml += "		<td style=\"background-image: url(" + strjsImagePath + "tt_error_edge_left_green.gif);\"><img src=\"" + strjsImagePath + "tt_error_edge_left_green.gif\" width=\"2\" height=\"1\"></td>"
	strTTHtml += "		<td  bgcolor=\"#7DC242\">"
	strTTHtml += "			<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">"
	strTTHtml += "				<tr>"
	strTTHtml += "					<td class=\"toolTipExclamationOrQuestion\" align=\"center\"><img src=\"" + strjsImagePath + "tt_SourceURL.gif\" ></td>"
	strTTHtml += "				</tr>"
	strTTHtml += "			</table>"
	strTTHtml += "		</td>"
	strTTHtml += "		<td class=\"toolTipRightBackground\">"
	strTTHtml += "			<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">"
	strTTHtml += "				<tr>"
	strTTHtml += "					<td rowspan=\"3\"><img src=\"" + strjsImagePath + "s.gif\" width=\"10\" height=\"5\"></td>"
	strTTHtml += "					<td style=\"width: 100%\"><img src=\"" + strjsImagePath + "s.gif\" width=\"10\" height=\"5\"></td>"
	strTTHtml += "					<td rowspan=\"3\"><img src=\"" + strjsImagePath + "s.gif\" width=\"10\" height=\"5\"></td>"
	strTTHtml += "				</tr>"
	strTTHtml += "				<tr>"
	strTTHtml += "					<td>"
	strTTHtml += "						<table cellspacing=\"0\" cellpadding=\"0\" width=\"150\" border=\"0\">"
	strTTHtml += "	                       <tr>"
	strTTHtml += "                         <td>Click to visit:"
	
	strTTHtml += "	                       </td>" 
	strTTHtml += "		                    </tr>"
	strTTHtml += "							<tr>"
	strTTHtml += "								<td style=\"width: 100%;\">" + strMessage + "</td>"
	strTTHtml += "							</tr>"
	strTTHtml += "						</table>"
	strTTHtml += "					</td>"
	strTTHtml += "				</tr>"
	strTTHtml += "				<tr>"
	strTTHtml += "					<td><img src=\"" + strjsImagePath + "s.gif\" width=\"1\" height=\"5\"></td>"
	strTTHtml += "				</tr>"
	strTTHtml += "			</table>"
	strTTHtml += "		</td>"
	strTTHtml += "		<td class=\"toolTipRightBackground\" style=\"background-image: url(" + strjsImagePath + "tt_error_edge_right_transparent.gif);\"><img src=\"" + strjsImagePath + "tt_error_edge_right_transparent.gif\" width=\"2\" height=\"1\"></td>"
	strTTHtml += "	</tr>"
	strTTHtml += "	<tr>"
	strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_bottom_left.gif\" width=\"2\" height=\"2\"></td>"
	strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_bottom_green.gif\" width=\"50\" height=\"2\"></td>"
	strTTHtml += "		<td class=\"toolTipRightBackground\"><img src=\"" + strjsImagePath + "tt_error_edge_bottom_transparent.gif\" width=\"100%\" height=\"2\"></td>"
	strTTHtml += "		<td><img src=\"" + strjsImagePath + "tt_error_edge_bottom_right.gif\" height=\"2\" width=\"2\"></td>"
	strTTHtml += "	</tr>"
	strTTHtml += "</table>"

	return overlib(strTTHtml, FULLHTML, BACKGROUND, "" + strjsImagePath + "s.gif");
}


function MediaDetailControl_ShowLoginLayer()
{		 
	
	hideErrPageDiv();
	if(strAssetType == '1')
	{
		if(txtPrevAccessRestriction == 'true')
		{
			//Added for Issue 9373
			//Allow FE Preview functionality to Non Logged In users
			//The preview limit value is configurable (Non_Loggedin_Preview_Limit).
			if(IsNonloginPreviewEnabled())
			{
				blnNonLoginShowPlayer = true;
				MediaDetailControl_ShowFlash();	
				var intPreviewedCount = getCookie('PreviewedCount');
				if(intPreviewedCount != null)
				{
					intPreviewedCount = parseInt(intPreviewedCount) + 1;
					document.cookie="PreviewedCount="+intPreviewedCount ;
				}
				else
				{
					document.cookie="PreviewedCount=1" ;
				}
			}
			else
			{
				
				expandPassRemWithCustomMessage(returnMessage(16013),'Y');	
			}
		}
		else
		{
			expandPassRemWithCustomMessage(returnMessage(16013),'Y');	
		}
	}
	else if(strAssetType == '2')
	{
	  expandPassRemWithCustomMessage(returnMessage(16013),'Y');
	
	}
	else if(strAssetType == '3')
	{
	  expandPassRemWithCustomMessage(returnMessage(16014),'Y');	
	}	
	window.scrollTo(0,0);
	
}	
	
function CheckAccessRestriction()
{
	strShowPlayer='true';
	if (txtFirstLogin == 'NONLOGIN')
	{
		//Added for FE Previews for Non-Logged in Users
		var strCLogin = 0;
		strCLogin = getCookie('TNMLogin');
		if (strCLogin != null)
		{
			strShowPlayer='true';
			return;
		}
			
		//Check If Asset Type is Audio and Preview Access Restriction is true
		if(txtPrevAccessRestriction == 'true' && strAssetType == '1')
		{
			strShowPlayer='false';	
		}
		else if(txtPrevAccessRestriction == 'true' && strAssetType == '2')
		{
			if (IsNonloginPreviewEnabled())
			{
				var intPreviewedCount = getCookie('PreviewedCount');
				if(intPreviewedCount != null)
				{
					intPreviewedCount = parseInt(intPreviewedCount) + 1;
					document.cookie="PreviewedCount="+intPreviewedCount ;
				}
				else
				{
					document.cookie="PreviewedCount=1" ;
				}
				strShowPlayer='true';
			}
			else
			{
				strShowPlayer='false';
			}
		}
		else if(txtPrevAccessRestriction == 'true' && strAssetType == '3')
		{
			if (IsNonloginPreviewEnabled())
			{
				strShowPlayer='true';
			}
			else
			{
				strShowPlayer='false';
			}
		}
	}		
}

function ShowNonLoggedInPreviewPlayer()
{
	var AssetId = '';
	var TRTValue = '';
	if($("hidAssetId") && $("hidTRT"))
	{
		AssetId = $("hidAssetId").value;
		TRTValue = $("hidTRT").value;
	}
	if(AssetId != '' && TRTValue != '')
	{
		if(IsNonloginPreviewEnabled())
		{
			//9873 start  SR 9.10 10724
			    	if(parseInt(intIsStreamingAsset) == 2)  // streaming only asset
				    { 
					$('EmbedSpanAssetDetailVideo').innerHTML= "<table cellspacing='0' cellpadding='0' border='0'  width='345' height='305' class='whiteColor'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='4'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='6' height='1'></td><td ><table cellspacing='0' cellpadding='0' border='0' align='center'><tr><td><table cellspacing='0' cellpadding='0' border='0' width='320' height='240' bgcolor='#000000'><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='100%' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='8'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td valign='top' height='150'><table cellspacing='0' cellpadding='0' border='0' height='150'><tr><td width='200' height='150' align='center' class='greenTableBorder'><img src='" + strThumbPath + "' width='200' height='150'></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td width='100%' valign='top'><table cellpadding='0' cellspacing='0' border='0'><tr><td nowrap style='VERTICAL-ALIGN: top' class='labelGreen' ><strong>ID: </strong>"+AssetId+"</td></tr><tr><td nowrap style='VERTICAL-ALIGN: top' class='labelGreen' ><strong>TRT: </strong>"+TRTValue+"</td></tr></table></td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='5'></td><td class='borderBottomGreen'><img src='" + strjsImagePath + "s.gif' width='100' height='5'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td><td valign='top'><table cellspacing='0' cellpadding='0' border='0' height='40'><tr><td><img src='" + strjsImagePath + "s.gif' height='6'></td></tr><tr><td class='labelGreenLinks' style='text-decoration:none;'>IMPORTANT: Note that this is only a preview. Download a streaming-quality version of this video directly to your computer.</td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0' border='0' height='30'><tr><td><img src='" + strjsImagePath + "s.gif' height='5'></td></tr><tr><td colspan='2'><a style='cursor:pointer' onclick='MediaDetailControl_ShowLoginLayer();'><img src='" + strjsImagePath + "nonLoginPreviewEnabled.gif'  border='0'></a></td></tr></table></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";		   
					}
					else
					{
					$('EmbedSpanAssetDetailVideo').innerHTML= "<table cellspacing='0' cellpadding='0' border='0'  width='345' height='305' class='whiteColor'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='4'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='6' height='1'></td><td ><table cellspacing='0' cellpadding='0' border='0' align='center'><tr><td><table cellspacing='0' cellpadding='0' border='0' width='320' height='240' bgcolor='#000000'><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='100%' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='8'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td valign='top' height='150'><table cellspacing='0' cellpadding='0' border='0' height='150'><tr><td width='200' height='150' align='center' class='greenTableBorder'><img src='" + strThumbPath + "' width='200' height='150'></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td width='100%' valign='top'><table cellpadding='0' cellspacing='0' border='0'><tr><td nowrap style='VERTICAL-ALIGN: top' class='labelGreen' ><strong>ID: </strong>"+AssetId+"</td></tr><tr><td nowrap style='VERTICAL-ALIGN: top' class='labelGreen' ><strong>TRT: </strong>"+TRTValue+"</td></tr></table></td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='5'></td><td class='borderBottomGreen'><img src='" + strjsImagePath + "s.gif' width='100' height='5'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td><td valign='top'><table cellspacing='0' cellpadding='0' border='0' height='40'><tr><td><img src='" + strjsImagePath + "s.gif' height='6'></td></tr><tr><td class='labelGreenLinks' style='text-decoration:none;'>IMPORTANT: Note that this is only a preview. Add the asset to your cart to receive a broadcast-standard or streaming quality version.</td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0' border='0' height='30'><tr><td><img src='" + strjsImagePath + "s.gif' height='5'></td></tr><tr><td colspan='2'><a style='cursor:pointer' onclick='MediaDetailControl_ShowLoginLayer();'><img src='" + strjsImagePath + "nonLoginPreviewEnabled.gif'  border='0'></a></td></tr></table></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";		   
					}
		}
		else
		{
			
			//9873 start
			if(parseInt(intNonLoginPreviewLimit) == 0)
 			{
				$('EmbedSpanAssetDetailVideo').innerHTML= "<table cellspacing='0' cellpadding='0' border='0'  width='345' height='305' class='whiteColor'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='4'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='6' height='1'></td><td ><table cellspacing='0' cellpadding='0' border='0' align='center'><tr><td><table cellspacing='0' cellpadding='0' border='0' width='320' height='240' bgcolor='#000000'><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='100%' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='8'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td valign='top' height='150'><table cellspacing='0' cellpadding='0' border='0' height='150'><tr><td width='200' height='150' align='center' class='greenTableBorder'><img src='" + strThumbPath + "' width='200' height='150'></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td width='100%' valign='top'><table cellpadding='0' cellspacing='0' border='0'><tr><td nowrap style='VERTICAL-ALIGN: top' class='labelGreen' ><strong>ID: </strong>"+AssetId+"</td></tr><tr><td nowrap style='VERTICAL-ALIGN: top' class='labelGreen' ><strong>TRT: </strong>"+TRTValue+"</td></tr></table></td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='5'></td><td class='borderBottomGreen'><img src='" + strjsImagePath + "s.gif' width='100' height='5'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td><td valign='top'><table cellspacing='0' cellpadding='0' border='0' height='40'><tr><td><img src='" + strjsImagePath + "s.gif' height='6'></td></tr><tr><td class='labelGreenBold'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='100%' height='5'></td></tr><tr><td class='labelGreenLinks' style='text-decoration:none;'>If you are an approved user, please login to preview this asset. If you are new to this site and would like preview privileges, please <a href=https://" + txtServerName  + "/Registrations/PreRegistrationPage.aspx?regtype=R title='Click to register for free access'><font color='#EA0030'>register now</font></a> for free.</td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0' border='0' height='30'><tr><td><img src='" + strjsImagePath + "s.gif' height='5'></td></tr><tr><td colspan='2'><a style='cursor:pointer' onclick='MediaDetailControl_ShowLoginLayer();'><img src='" + strjsImagePath + "nonLoginPreview.gif'  border='0'></a></td></tr></table></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";		   
			}
			else
			{
				$('EmbedSpanAssetDetailVideo').innerHTML= "<table cellspacing='0' cellpadding='0' border='0'  width='345' height='305' class='whiteColor'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='4'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='6' height='1'></td><td ><table cellspacing='0' cellpadding='0' border='0' align='center'><tr><td><table cellspacing='0' cellpadding='0' border='0' width='320' height='240' bgcolor='#000000'><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='100%' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='8'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td valign='top' height='150'><table cellspacing='0' cellpadding='0' border='0' height='150'><tr><td width='200' height='150' align='center' class='greenTableBorder'><img src='" + strThumbPath + "' width='200' height='150'></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td width='100%' valign='top'><table cellpadding='0' cellspacing='0' border='0'><tr><td nowrap style='VERTICAL-ALIGN: top' class='labelGreen' ><strong>ID: </strong>"+AssetId+"</td></tr><tr><td nowrap style='VERTICAL-ALIGN: top' class='labelGreen' ><strong>TRT: </strong>"+TRTValue+"</td></tr></table></td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='5'></td><td class='borderBottomGreen'><img src='" + strjsImagePath + "s.gif' width='100' height='5'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td><td valign='top'><table cellspacing='0' cellpadding='0' border='0' height='40'><tr><td><img src='" + strjsImagePath + "s.gif' height='6'></td></tr><tr><td class='labelGreenBold'>LOGIN OR REGISTER</td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='100%' height='5'></td></tr><tr><td class='labelGreenLinks' style='text-decoration:none;'>To continue previewing assets on The Newsmarket, please login or take a moment to <a href=https://" + txtServerName  + "/Registrations/PreRegistrationPage.aspx?regtype=R title='Click to register for free access'><font color='#EA0030'>register</font></a> with us for free.</td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0' border='0' height='30'><tr><td><img src='" + strjsImagePath + "s.gif' height='5'></td></tr><tr><td colspan='2'><a style='cursor:pointer' onclick='MediaDetailControl_ShowLoginLayer();'><img src='" + strjsImagePath + "nonLoginPreview.gif'  border='0'></a></td></tr></table></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";		   
			}
			//9873 end
		}
	}
	else
	{
		if(IsNonloginPreviewEnabled())
		{
		
			//9873 start  SR 9.10 10724
			    	if(parseInt(intIsStreamingAsset) == 2)  // streaming only asset
				    { 
			$('EmbedSpanAssetDetailVideo').innerHTML= "<table cellspacing='0' cellpadding='0' border='0'  width='345' height='305' class='whiteColor'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='4'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='6' height='1'></td><td ><table cellspacing='0' cellpadding='0' border='0' align='center'><tr><td><table cellspacing='0' cellpadding='0' border='0' width='320' height='240' bgcolor='#000000'><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='100%' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='8'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td valign='top' height='150'><table cellspacing='0' cellpadding='0' border='0' height='150'><tr><td width='200' height='150' align='center' class='greenTableBorder'><img src='" + strThumbPath + "' width='200' height='150'></td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='5'></td><td class='borderBottomGreen'><img src='" + strjsImagePath + "s.gif' width='100' height='5'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td><td valign='top'><table cellspacing='0' cellpadding='0' border='0' height='40'><tr><td><img src='" + strjsImagePath + "s.gif' height='6'></td></tr><tr><td class='labelGreenLinks' style='text-decoration:none;'>IMPORTANT: Note that this is only a preview. Download a streaming-quality version of this video directly to your computer.</td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0' border='0' height='30'><tr><td><img src='" + strjsImagePath + "s.gif' height='5'></td></tr><tr><td colspan='2'><a style='cursor:pointer' onclick='MediaDetailControl_ShowLoginLayer();'><img src='" + strjsImagePath + "nonLoginPreviewEnabled.gif'  border='0'></a></td></tr></table></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";		   
			}
			else
			{
			$('EmbedSpanAssetDetailVideo').innerHTML= "<table cellspacing='0' cellpadding='0' border='0'  width='345' height='305' class='whiteColor'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='4'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='6' height='1'></td><td ><table cellspacing='0' cellpadding='0' border='0' align='center'><tr><td><table cellspacing='0' cellpadding='0' border='0' width='320' height='240' bgcolor='#000000'><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='100%' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='8'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td valign='top' height='150'><table cellspacing='0' cellpadding='0' border='0' height='150'><tr><td width='200' height='150' align='center' class='greenTableBorder'><img src='" + strThumbPath + "' width='200' height='150'></td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='5'></td><td class='borderBottomGreen'><img src='" + strjsImagePath + "s.gif' width='100' height='5'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td><td valign='top'><table cellspacing='0' cellpadding='0' border='0' height='40'><tr><td><img src='" + strjsImagePath + "s.gif' height='6'></td></tr><tr><td class='labelGreenLinks' style='text-decoration:none;'>IMPORTANT: Note that this is only a preview. Add the asset to your cart to receive a broadcast-standard or streaming quality version.</td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0' border='0' height='30'><tr><td><img src='" + strjsImagePath + "s.gif' height='5'></td></tr><tr><td colspan='2'><a style='cursor:pointer' onclick='MediaDetailControl_ShowLoginLayer();'><img src='" + strjsImagePath + "nonLoginPreviewEnabled.gif'  border='0'></a></td></tr></table></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";		   
			}
		}
		else
		{
			//9873 start
			if(parseInt(intNonLoginPreviewLimit) == 0)
 			{
				$('EmbedSpanAssetDetailVideo').innerHTML= "<table cellspacing='0' cellpadding='0' border='0'  width='345' height='305' class='whiteColor'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='4'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='6' height='1'></td><td ><table cellspacing='0' cellpadding='0' border='0' align='center'><tr><td><table cellspacing='0' cellpadding='0' border='0' width='320' height='240' bgcolor='#000000'><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='100%' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='8'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td valign='top' height='150'><table cellspacing='0' cellpadding='0' border='0' height='150'><tr><td width='200' height='150' align='center' class='greenTableBorder'><img src='" + strThumbPath + "' width='200' height='150'></td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='5'></td><td class='borderBottomGreen'><img src='" + strjsImagePath + "s.gif' width='100' height='5'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td><td valign='top'><table cellspacing='0' cellpadding='0' border='0' height='40'><tr><td><img src='" + strjsImagePath + "s.gif' height='6'></td></tr><tr><td class='labelGreenBold'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='100%' height='5'></td></tr><tr><td class='labelGreenLinks' style='text-decoration:none;'>If you are an approved user, please login to preview this asset. If you are new to this site and would like preview privileges, please <a href=https://" + txtServerName  + "/Registrations/PreRegistrationPage.aspx?regtype=R title='Click to register for free access'><font color='#EA0030'>register now</font></a> for free.</td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0' border='0' height='30'><tr><td><img src='" + strjsImagePath + "s.gif' height='5'></td></tr><tr><td colspan='2'><a style='cursor:pointer' onclick='MediaDetailControl_ShowLoginLayer();'><img src='" + strjsImagePath + "nonLoginPreview.gif'  border='0'></a></td></tr></table></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";		   
			}
			else
			{
				$('EmbedSpanAssetDetailVideo').innerHTML= "<table cellspacing='0' cellpadding='0' border='0'  width='345' height='305' class='whiteColor'><tr><td><img src='" + strjsImagePath + "stillDetails_top_left.gif' width='6' height='6'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_top_edge.gif);'><img src='" + strjsImagePath + "s.gif' height='4'></td><td><img src='" + strjsImagePath + "stillDetails_top_right.gif' width='7' height='6'></td></tr><tr><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_left_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='6' height='1'></td><td ><table cellspacing='0' cellpadding='0' border='0' align='center'><tr><td><table cellspacing='0' cellpadding='0' border='0' width='320' height='240' bgcolor='#000000'><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='100%' height='8'></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='8'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td><td valign='top' height='150'><table cellspacing='0' cellpadding='0' border='0' height='150'><tr><td width='200' height='150' align='center' class='greenTableBorder'><img src='" + strThumbPath + "' width='200' height='150'></td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='10' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='10' height='5'></td><td class='borderBottomGreen'><img src='" + strjsImagePath + "s.gif' width='100' height='5'></td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td><td valign='top'><table cellspacing='0' cellpadding='0' border='0' height='40'><tr><td><img src='" + strjsImagePath + "s.gif' height='6'></td></tr><tr><td class='labelGreenBold'>LOGIN OR REGISTER</td></tr><tr><td><img src='" + strjsImagePath + "s.gif' width='100%' height='5'></td></tr><tr><td class='labelGreenLinks' style='text-decoration:none;'>To continue previewing assets on The Newsmarket, please login or take a moment to <a href=https://" + txtServerName  + "/Registrations/PreRegistrationPage.aspx?regtype=R title='Click to register for free access'><font color='#EA0030'>register</font></a> with us for free.</td></tr></table></td><td><img src='" + strjsImagePath + "s.gif' width='5' height='1'></td></tr></table></td></tr><tr><td><table cellspacing='0' cellpadding='0' border='0' height='30'><tr><td><img src='" + strjsImagePath + "s.gif' height='5'></td></tr><tr><td colspan='2'><a style='cursor:pointer' onclick='MediaDetailControl_ShowLoginLayer();'><img src='" + strjsImagePath + "nonLoginPreview.gif'  border='0'></a></td></tr></table></td></tr></table></td><td height='100%' style='background-image: url(" + strjsImagePath + "stillDetails_right_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='7' height='1'></td></tr><tr><td><img src='" + strjsImagePath + "stillDetails_bottom_left.gif' width='6' height='7'></td><td width='100%' style='background-image: url(" + strjsImagePath + "stillDetails_bottom_edge.gif);'><img src='" + strjsImagePath + "s.gif' width='1' height='7'></td><td><img src='" + strjsImagePath + "stillDetails_bottom_right.gif' width='7' height='7'></td></tr></table>";		   
			}
			//9873 end
		}
	}
}

function $(__strId__)
	{
		__doc__ = (typeof __doc__ == "object") ? __doc__ : document;
		__frm__ = (typeof __frm__ == "object") ? __frm__ : (typeof __doc__.forms[0] == "undefined") ? __frm__ : __doc__.forms[0].elements;

		if (arguments.length < 1)
			return __frm__;
		else
			return __doc__.getElementById(__strId__);
	}
