function browse_check() {
this.ver=navigator.appVersion; this.agent=navigator.userAgent; this.dom=document.getElementById?1:0;
this.opera5=(window.opera&&this.dom)?1:0; this.opera6=(this.opera5&&window.print)?1:0; this.opera7=(this.opera5&&document.readyState)?1:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1&&this.dom&&!this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1&&this.dom&&!this.opera5)?1:0;
this.ie7=(this.ver.indexOf("MSIE 7")>-1&&this.dom&&!this.opera5)?1:0; this.ie8=(this.ver.indexOf("MSIE 8")>-1&&this.dom&&!this.opera5)?1:0;
this.ie4=(document.all&&!this.dom&&!this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6||this.ie7||this.ie8; this.mac=this.agent.indexOf("Mac")>-1;
this.ns6=(this.dom&&parseInt(this.ver)>=5)?1:0; this.ns4=(document.layers&&!this.dom)?1:0;
this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5||this.opera6||this.opera7); return this; }
bw=new browse_check();

hMenu=function() {
	sHover=document.getElementById("h-menu").getElementsByTagName("td");
	for (i=0;i<sHover.length;i++) {
		if (sHover[i].className!="p"&&sHover[i].className!="active") {
			sHover[i].onmouseover=function() { this.className="on"; }
			sHover[i].onmouseout=function() { this.className=""; }
		}
	}
}
hhMenu=function() {
	ssHover=document.getElementById("pri-menu").getElementsByTagName("td");
	for (i=0;i<ssHover.length;i++) {
		if (ssHover[i].className=="active") {
			(i>=2)?ssHover[i-1].className="p-on":null;
			(i<ssHover.length-1)?ssHover[i+1].className="p-on":null;
		}
		if (ssHover[i].className!="p"&&ssHover[i].className!="p-on"&&ssHover[i].className!="active") {
			ssHover[i].onmouseover=function() {
				sTd=document.getElementById("pri-menu").getElementsByTagName("td");
				this.className="on"; num=this.cellIndex;
				if (num>=2&&sTd[num-1].className!="p-on") { sTd[num-1].className="pa"; }
				if (num<sTd.length-1&&sTd[num+1].className!="p-on") { sTd[num+1].className="pa"; }
			}
			ssHover[i].onmouseout=function() {
				sTd=document.getElementById("pri-menu").getElementsByTagName("td");
				this.className=""; num=this.cellIndex;
				if (num>=2&&sTd[num-1].className!="p-on") { sTd[num-1].className="p"; }
				if (num<sTd.length-1&&sTd[num+1].className!="p-on") { sTd[num+1].className="p"; }
			}
		}
	}
}

function OpenWin(pageUrl,nameWin,widthWin,heightWin,sbar) {
hScreen=screen.availHeight; wScreen=screen.availWidth;
if (widthWin||heightWin) { (widthWin>wScreen)?widthWin=wScreen-200:null; (heightWin>hScreen)?heightWin=hScreen-100:null; }
if (nameWin=="modal") {
	(widthWin)?null:widthWin=wScreen-200; (heightWin)?null:heightWin=hScreen-100;
	pWin="dialogWidth:"+widthWin+"px; "+"dialogHeight:"+heightWin+"px; center:1;help:0;"
	window.showModalDialog(pageUrl,"",pWin);
} else {
	(widthWin)?null:widthWin=wScreen-160; (heightWin)?null:heightWin=hScreen-200;
	xPos=(wScreen-widthWin)/2; yPos=(hScreen-heightWin)/2;
	(sbar)?null:sbar=1; (nameWin)?null:nameWin="wintxt";
	pWin="left="+xPos+",top="+yPos+",width="+widthWin+",height="+heightWin+",scrollbars="+sbar;
	window.open(pageUrl,nameWin,pWin); 
} 
}