﻿function popWin(mypage) {
	//var winl = (screen.width - 428) / 2;
	//var wint = (screen.height - 360) / 2;
	winprops = 'height='+270+',width='+630+',titlebar=no,scrollbars=yes,location=no,resizable=no,toolbar=no';
	win = window.open(mypage, 'pop', winprops);
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}

function resize(){
	/*var windowHeight = 0;
	//window.resizeBy(0, 350);
	var y;
	windowHeight=document.getElementsByTagName("body")[0].clientHeight;
	
	if (self.innerHeight){
		y = self.innerHeight;
	}else if (document.documentElement && document.documentElement.clientHeight){
		y = document.documentElement.clientHeight;
	}else if (document.body){
		y = document.body.clientHeight;
	}

	//alert(windowHeight+" "+y);
	iHeight = windowHeight- y;
	//alert(iHeight)
	window.resizeBy(0, iHeight);*/
}

function popWin2(page) {
	win = window.open(page, 'result', "");
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}


startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}


window.onload= function(){
	startList();
}