var DAT
function Index()
{
	if (screen.height)
	{
		if (screen.width)
		{
			var i=screen.width+"x"+screen.height,f1,f2,f3,f4
			switch (i)
			{
			   case "640x480"  : f1=7 ; f3=560; break;
			   case "800x600"  : f1=8 ; f3=700; break;
			   case "1024x768" : f1=9 ; f3=800; break;
			   case "1152x864" : f1=10; f3=800; break;
			   case "1280x1024": f1=11; f3=800; break;
			   case "1280x800": f1=11; f3=800; break;
			   default : f1=10; f3=800;
			}
			f2=f1+3;if(f1<10)f1="0"+f1;if(f2<10)f2="0"+f2;f4="0"
			//if(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin && navigator.plugins && navigator.plugins["Shockwave Flash"])
			//	{f4="1"}
			//else if(document.all&&FlashMode){f4="1"}
			if(PluginDetect.isMinVersion("WindowsMediaPlayer",'9')<0){// No wmp
				document.getElementById('LOGOINTRO').style.visibility="hidden";
				document.LOGOINTRO.style.height="0"
				document.getElementById('WMPTable').style.height="100%"
				document.getElementById('WMPTable').style.lineHeight="100%"
				document.getElementById('WMPTable').style.visibility="visible"
			}
			else if(PluginDetect.isMinVersion("Flash",'8')>=0){
			//if(f4==1){
				DAT=f1+""+f2+""+f3+"";
				document.getElementById('LOGOINTRO').style.visibility="visible";
				document.LOGOINTRO.style.visibility="visible";
			}else{// No Flash
				document.LOGOINTRO.style.height="0"
				document.getElementById('LOGOINTRO').style.height="0"
				document.getElementById('FlashTable').style.height="100%"
				document.getElementById('FlashTable').style.lineHeight="100%"
				document.getElementById('FlashTable').style.visibility="visible"
			}
		}else{alert("Screen Width Detection Error...")}
	}else{alert("Screen Height Detection Error...")}
}
function Go(Lang)
{
	setCookie("INF",DAT+Lang);
	parent.location.replace("Main.htm");
}
function setCookie(name,value)
{
	document.cookie = name + "=" + escape(value) + ";path=/";// + ";secure=yes"
}
