 
f = (((navigator.appName == "Microsoft Internet Explorer") &&  (parseInt(navigator.appVersion) >= 4 ))|| ((navigator.appName == "Netscape")&& (parseInt(navigator.appVersion) >= 3 ))); 



dir = "/nemoimg/";
	
function load(button) {
	var temp = new Image();
	temp.src = button;
	return (temp);
}
	
if (f) {
	for (i=1; i<=5; i++) {
	    str='m'+i+'_n =load (dir + "m'+i+'_n.gif");';
		str+='m'+i+'_s =load (dir + "m'+i+'_s.gif");';
		eval (str);
	}
	load ("/nemoimg/bgi.gif");
}


window.onresize = position;

function position(){
	
	if (b) ld=1;
	
 	if (document.all) { 
		mx = document.body.clientWidth/2; 
	} else { 
		mx = window.innerWidth/2; 
	}
 
 		
	if (navigator.appName == "Netscape") {
		document.layers["abon"].left = mx-185;
		document.layers["menuon"].left = mx-185;
		document.layers["reson"].left = mx-185;
		document.layers["nemoon"].left = mx-185;
		document.layers["newson"].left = mx-185;
		
	}
	else {
		document.all["abon"].style.pixelLeft=mx-180;
		document.all["menuon"].style.pixelLeft=mx-180;
		document.all["reson"].style.pixelLeft=mx-180;
		document.all["nemoon"].style.pixelLeft=mx-180;
		document.all["newson"].style.pixelLeft=mx-180;

	}
	
	showHide('menuoff','show');
	showHide('aboff','show');
	showHide('resoff','show');
	showHide('nemooff','show');
	showHide('newsoff','show');
}
 



// Dynamic code by A.P.

var browser = navigator.appVersion;
 
 

function showHide() {
  if (f) {
	var i, vStr, arg;
	arg = showHide.arguments;
 	for (i=0; i<(arg.length-1); i+=2) {  
		vStr   = arg[i+1];
		if (navigator.appName == 'Netscape') {
		    if (document.layers != null)
				eval("document.layers[\'"+arg[i]+"\'].visibility = '"+vStr+"'");
		}
		else
		{ //IE4
			if (vStr == 'show') vStr = 'visible'; 
			if (vStr == 'hide') vStr = 'hidden';
			if (document.all != null) eval("document.all[\'"+arg[i]+"\'].style.visibility = '"+vStr+"'");
	    }
	}
  }
}



n4 = (document.layers)? true : false;
i4 = (document.all)? true : false;
n6 = (document.getElementById && !i4)? true : false;

function showpict(cardName, winW, winH, winTitle) {
if (n4 || i4 || n6) {
posX = Math.round((screen.width - winW) / 2);
posY = Math.round((screen.height - winH) / 2);
posCode = (n4 || n6)? 'screenX='+posX+',screenY='+posY : 'left='+posX+',top='+posY;
} else { posCode = ''; }
cardWindow = window.open('','_blank','menubar=no,toolbar=no,scrollbars=no,status=no,width='+winW+',height='+winH+','+posCode);
cardWindow.document.open();
cardWindow.document.write('<html><head><title>'+winTitle+'<\/title><\/head>');
cardWindow.document.write('<body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>');
cardWindow.document.write('<img src="'+cardName+'" width="'+winW+'" height="'+winH+'" /><\/body><\/html>');
cardWindow.document.close();
cardWindow.focus();
}