var timerN=null, NS4=false,NS6=false;
if(navigator.appName == "Netscape") {
	NN = true;
	navVer = parseInt(navigator.appVersion);
	if(navVer < 4) {
		NOT_SUPPORTED = true;	//not support ver3 browsers
	}
	else if( navVer == 4) {
		NS4 = true;
	}
	else {
		NS6 = true;
	}
}
function openwin1(x,y,z) {
var sWidth,sHeight,NS4;
if (NS4) {
	sWidth = window.innerWidth - 14- y; sHeight=10;
} else {
	sWidth = document.body.clientWidth  - 18 - y; sHeight=20;
	y+=20;
	z+=50;
}

	clientimg=window.open("","allegriaWindow","width=" + y + ",height=" + z + ",resizable=1,top=" + sHeight + ",left=" + sWidth);
	clientimg.window.resizeTo(y,z);
	clientimg.window.moveTo(10,0);
	clientimg.window.resizeTo(y,z);
	clientimg.document.open("text/html");
	clientimg.document.write('<body bgcolor="ffffff" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"><table width="100%" height="100%"><tr><td align="center"><IMG SRC="' + x + '"></td></tr></table></body>');
	clientimg.window.focus();
	clientimg.document.close();
}
function openwin(x,y,z) {
var sWidth,sHeight,NS4;

	clientimg1=window.open(x,"allegriaWindow1","width=" + y + ",height=" + z + ",resizable=1,top=" + sHeight + ",left=" + sWidth);
	clientimg1.window.focus();
}
function showlayer(levels) {
	if (NS6) { document.getElementById(levels).style.visibility = "visible";}
		else if (NS4) 		document.layers[levels].visibility = "show";
		else 		document.all[levels].style.visibility = "visible";
}
function hidelayer(levels) {
	if (NS6) { document.getElementById(levels).style.visibility = "hidden";}
	else if (NS4) 		document.layers[levels].visibility = "hide";
	else 		document.all[levels].style.visibility = "hidden";
}
