NS4 = document.layers;
	if (NS4) {
	origWidth = innerWidth;
	origHeight = innerHeight;
	}
	 function reDo() {
		if (innerWidth != origWidth || innerHeight != origHeight) 
		location.reload();
	 }
	if (NS4) onresize = reDo;

	if (document.all) {n=0;ie=1;n6=0;fShow="visible";fHide="hidden";}
	if (document.layers) {n=1;ie=0;n6=0;fShow="show"; fHide="hide";}
	if (document.getElementById&&!document.all) {n=0;ie=0;n6=1;fShow="visible";fHide="hidden";}

	if (n){pre = 'document.'; post = '';}
	if (n6){pre = 'document.getElementById("'; post = '").style';}
	if (ie){pre = 'document.all.'; post = '.style';}

	function showLayer(lyr,x,y){
   		if(n){
			eval(pre + lyr + post).visibility = 'show';
			eval(pre + lyr + post).left = x;
			eval(pre + lyr + post).top = y;
		}
		else {
			eval(pre + lyr + post).visibility = 'visible';
		}
	}

	function hideLayer(lyr){
		if(n)
			eval(pre + lyr + post).visibility = 'hide';
		else
			eval(pre + lyr + post).visibility = 'hidden';
	}
	
	function nbswap(cell,clr,bgc) {
		eval(pre + 'nbdm' + cell + post).color=clr;
		if(ie) eval('nbdm' + cell).bgColor=bgc;
		else eval(pre + 'nbdm' + cell + post).background=bgc;
	}
	


