
// get window size for layer positioning
    if (navigator.appName == 'Netscape' && document.layers != null && !is_gecko) {
        xleft = ((window.innerWidth - 760) / 2);
        ytop = (window.innerHeight - 410) / 2;
		wid = window.innerWidth;
    }
   if (document.all != null || is_gecko || is_nav7up){
        xleft = ((document.body.clientWidth - 760) / 2);
        ytop = (document.body.clientHeight - 410) / 2;
		wid = document.body.clientWidth;
    }
   if (xleft < 0) {
        xleft = 0;
    }
   if (ytop < 0) {
        ytop = 0;
    }
	
    //if (xleft > 0) xleft = (xleft - 1)
    firstx = (xleft + 300);
if (is_win && is_ie4up) firstx = (firstx + 3);
if (is_win && is_gecko) firstx = (firstx + 0);
if (is_safari) firstx = (firstx - 1);
if (is_mac && is_ie4up) firstx = (firstx - 8);

// IE fix
if (is_win && is_ie4up || is_safari) initx = (firstx + 1);
else initx = firstx;

// left nav
leftx = (firstx - 298);
if (leftx < 0) leftx = 22;
