// JavaScript Document
function detectOS()
{
	if(navigator.userAgent.indexOf('IRIX') != -1){
		var OpSys = "Irix"; 
	}
	else if((navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('95') != -1)){
		var OpSys = "Windows95"; 
	}
	else if(navigator.userAgent.indexOf('Win') != -1){
		var OpSys = "Windows3.1 or NT"; 
	}
	else if(navigator.userAgent.indexOf('Mac') != -1){
		var OpSys = "Macintosh"; 
	}
	else { 
		var OpSys = "other"; 
	}
	return OpSys;
}


function checkOS()
{
	var result=detectOS();	
	
	if((result=="Windows95")||(result=="Windows3.1 or NT"))	
	{
		document.getElementById('videoLayer').innerHTML='<OBJECT ID="mediaPlayer" width=320 height=240 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,1112" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"><PARAM NAME="wmode" VALUE="transparent"> <PARAM NAME="AutoStart" VALUE="True"> <PARAM NAME="FileName" VALUE="http://mobilserv.com/videos/ABC_News_on_dial4snax.wmv"> <PARAM NAME="ShowDisplay" VALUE="false"> <PARAM NAME="ShowControls" VALUE="False"> <PARAM NAME="ShowStatusBar" VALUE="False"> <PARAM NAME="Loop" VALUE="True"> <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="http://mobilserv.com/videos/ABC_News_on_dial4snax.wmv" name="mediaPlayer" width=320 height=240 autostart=0> </EMBED> </OBJECT>';	
	}
	else{
		
		document.getElementById('videoLayer').innerHTML="Video cannot be displayed in your OS";
	}
}

