 var apN=navigator.appName
var apV=navigator.appVersion
var xP=0;
var LP=0;
var gotlayers=0;
var	xI="";
var	xImg="";
var jX="";
if(apN=="Netscape" && apV.charAt(0)=="4" && apV.charAt(2)>="5")
	{
		NS4=true;
		NS6=false;
		IE=false;
		LP=Math.abs(Math.ceil((window.innerWidth-779)/2))
		document.write('<link rel=stylesheet href=style/style_ns.css type=text/css>');
	}
	else
		{
		if(apN=="Netscape" && (apV.charAt(0)=="5"||apV.charAt(0)=="6") && apV.charAt(2)>="0")
			{
			NS4=false;
			NS6=true;
			IE=false;
			if(window.innerWidth>640)
			{LP=Math.abs(Math.ceil((window.innerWidth-779)/2))}
			else{LP=31}
			document.write('<link rel=stylesheet href=style/style.css type=text/css>');
			}
			else
				{
				NS4=false;
				NS6=false;
				if(apN=="Microsoft Internet Explorer")
					{
					IE=true;
					if(screen.width>640)
					{LP=Math.abs(Math.ceil((screen.width-779)/2)-10)}
					else{LP=31}
					document.write('<link rel=stylesheet href=style/style.css type=text/css>');
					}
					else
						{
						document.location.replace("/incompatible.html");
						}
				}
		}

function popUp(menuNo,img)
{
	if(menuNo!=100)
	{
	var X="M"+menuNo;
	xP=menuNo;
	xI=img
	if(IE)
		{
		//document[xI].src="http://192.168.0.35/images/"+xI+"_dn.gif";
		document.all[X].style.visibility="visible";
		}
		else if(NS6)
			{
			var LAYR=document.getElementById(X)
			//document[xI].src="http://192.168.0.35/images/"+xI+"_dn.gif";
			LAYR.style.visibility = "visible";			
			}
			else if(NS4)
				{
				//document[xI].src="http://192.168.0.35/images/"+xI+"_dn.gif";
				document.layers[X].visibility="show";
				if(jX!="")
					{
					document.layers[jX].document.layers[jXs].bgColor="#FFE2B0"
					jX="";
					}
				}
	}
	else
		{
		if(menuNo==100&&xP!=0)
			{
			eX="M"+xP;
			if(IE)
				{
				document.all[eX].style.visibility="hidden";				
				/*
				if(xImg!=xI)
					{
					document[xI].src="http://192.168.0.35/images/"+xI+"_up.gif";
					}
				*/
				}
				else if(NS6)
					{
					var eLAYR=document.getElementById(eX)
					eLAYR.style.visibility = "hidden";
					/*
					if(xImg!=xI)
						{
						document[xI].src="http://192.168.0.35/images/"+xI+"_up.gif";
						}
					*/
					}
					else if(NS4)
						{
						document.layers[eX].visibility="hide";
						/*
						if(xImg!=xI)
						{
							document[xI].src="http://192.168.0.35/images/"+xI+"_up.gif";
						}
						*/
						}
			xP=0;
			xI="";
			}
		}
}
function PopWin(URL,Target,Width,Height,scrol)
{
if(scrol=="no"){Width=Width-16;}else{scrol="Yes"}
	NewPopUpWindow=window.open(URL,Target,"width="+Width+",height="+Height+",toolbar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars="+scrol+",status=no,copyhistory=no,maximized=no");
	NewPopUpWindow.focus();
}
function Hi(MeN,SMeN)
{
if(NS4)
	{
	if(MeN!=100)
		{
		jX="M"+MeN;
		jXs=jX+SMeN;
		document.layers[jX].document.layers[jXs].bgColor="#F9A870"
		}
		else if(MeN==100&&jX!="")
			{
			document.layers[jX].document.layers[jXs].bgColor="#FFE2B0"
			jX="";
			}
	}
}
function HighLightImage(imgs,pos)
{
	xImg=imgs;
	if(xImg!=""&&pos=="dn")
	{
	if(IE)
		{
		//document[xImg].src="http://192.168.0.35/images/"+xImg+"_dn.gif";
		}
		else if(NS6)
			{
			//document[xImg].src="http://192.168.0.35/images/"+xImg+"_dn.gif";
			}
			else if(NS4)
				{
				//document[xImg].src="http://192.168.0.35/images/"+xImg+"_dn.gif";
				}
	}
	else if(xImg!=""&&pos=="up")
			{
			if(IE)
				{
				//document[xImg].src="http://192.168.0.35/images/"+xImg+"_up.gif";
				}
				else if(NS6)
					{
					//document[xImg].src="http://192.168.0.35/images/"+xImg+"_up.gif";
					}
					else if(NS4)
						{
						//document[xImg].src="http://192.168.0.35/images/"+xImg+"_up.gif";
						}
			xImg="";
			}
}
function closeMenu()
{
	if(xP!=0)
	{
	popUp(100);
	}
}