if (document.all)    {n=0;ie=1;ns6=0;fShow="visible";fHide="hidden";}
if (document.getElementById&&!document.all)    {n=0;ie=0;ns6=1;fShow="visible";fHide="hidden";}
if (document.layers) {n=1;ie=0;ns6=0;fShow="show";fHide="hide";}
//initialize variables
rightX = 0;
rightY = 0;
leftY = 0;
leftX = 0;
lastMenu = null;

//set Virtual Aquarium Flash dimensions for pop-up window
var vaheight = 400;
var vawidth = 650


// PopUp***************************
	
function openWin(URLtoOpen, windowName, scroll, width, height) { 
	if (n) {
		w = width-1; 
	} else {
	  	w = width; 
	}
	h = height;
	sw = screen.width;
    sh = screen.height;
	
	if (h>sh) {
		h = sh-30; 
	}
	newWindow=window.open(URLtoOpen, windowName,'toolbar=yes,directories=no,location=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars='+scroll+',width='+w+',height='+h+',"');
	//cx = (.5*sw) - (w*.5); 
	//cy = (.5*sh) - (h*.5); 
	//newWindow.top.resizeTo(width,height);
	//newWindow.top.moveTo(cx,cy);
	newWindow.focus();
}
