
	function BrowserCheck() {
		var b = navigator.appName;
		if (b=="Netscape") this.b = "ns";
		else if (b=="Microsoft Internet Explorer") this.b = "ie";
		else this.b = b;
		this.version = navigator.appVersion;
		this.WinOs = (this.version.indexOf('Win')>0);
		this.v = parseInt(this.version);
		this.ns = (this.b=="ns" && this.v>=4);
		this.ns4 = (this.b=="ns" && this.v==4);
		this.ns5 = (this.b=="ns" && this.v==5);
		this.ie = (this.b=="ie" && this.v>=4);
		this.ie4 = (this.version.indexOf('MSIE 4')>0);
		this.ie5 = (this.version.indexOf('MSIE 5')>0);
		this.ie6 = (this.version.indexOf('MSIE 6')>0);
		this.min = (this.ns||this.ie);
	}
	var browser = new BrowserCheck();

	var topPosition =0;
	
	if (!browser.WinOs && browser.ie){
		topPosition += 0;
	} else if (browser.ns){
		topPosition -= 0;
	}

	function getWindowWidth()
	{
		return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
	}

	var menus = [
		new ypSlideOutMenu("menu1", "down", null, topPosition, 270, 245),
		new ypSlideOutMenu("menu2", "down", null, topPosition, 160, 300),
	]

	function DisDiv4(whichLayer)
		{
			if(document.form1.moduleselection2.checked == true)
			{document.getElementById("moduleselection").style.display ="block";}
			else
			{document.getElementById("moduleselection").style.display ="none";}
		}
