function playVOD(asset, url, type, timeIndx) 
{
	if(Viewer==enumViewer.MacPC){
		MAC_openVBrickPlayer(url,type,false,timeIndx);
	}else{
		if(type=="WM"){
			if (Browser==enumBrowser.FireFox)
				display_cc_btn(false);
			else
				display_cc_btn(true);
			if(qtplayer.location.href.indexOf("wmplayer.aspx")==-1){
				qtplayer.location.href="wmplayer.aspx";
				window.setTimeout('openPlayerWM("'+url+'","'+streamType+'",'+timeIndx+')',500);
			}else{
				openPlayerWM(url,streamType,timeIndx);
			}
		}else{
			display_cc_btn(true);
			//alert('play '+timeIndx);
			if(qtplayer.location.href.indexOf("qtplayer.aspx")==-1){
				qtplayer.location.href="qtplayer.aspx";
				window.setTimeout('openPlayer("'+url+'", "'+timeIndx+'")',500);
			}else{
				openPlayer(url, timeIndx);
			}
		}
	}

} 

function playVODLinux(asset, url, type, timeIndx) 
{
    //if WM, check for CC state
	if (GetStreamTypeEnum(type)==enumStreamType.WM)
	{
        if (document.getElementById('ucEC_img_cc').src.indexOf("ccOn.gif") > -1)
        {
            parent.document.getElementById('lblCC').style.display='block';
            //odd/unexplained crash if you set ClosedCaption to true if it's already true, therefore only set it if it's false
            if (qtplayer.document.getElementById('oVBPlayer').ClosedCaption == false)
		        qtplayer.document.getElementById('oVBPlayer').ClosedCaption = true;  
        }
        else
        {
			parent.document.getElementById('lblCC').style.display='none';
			qtplayer.document.getElementById('oVBPlayer').ClosedCaption = false;                              
        }			
	}
    //if an mp1, mp2, or mp4 stream is selected after a WM that had CC, lblCC should not be displayed
    else
        parent.document.getElementById('lblCC').style.display='none';    


	display_cc_btn(true);
	if(qtplayer.location.href.indexOf("qtplayer.aspx")==-1){
		qtplayer.location.href="qtplayer.aspx";
		window.setTimeout('openPlayer("'+url+'", "'+timeIndx+'")',500);
	}else{
		openPlayer(url, timeIndx);
	}
} 
