var isNav = false;
if (navigator.appName == "Netscape")
   isNav = true
else
   isNav = false;


function getClientHeight() {
  if (isNav) {
    return window.innerHeight;
  }
  else {
   return document.body.clientHeight;
  }
}


function setPosition() {
	var obj = document.getElementById("MAINTABLE");
	if (getClientHeight() > 300) {
	obj.style.top = (getClientHeight() - 330) / 2;
	} else {
	obj.style.top = 1;
	}
}


function resize() {
	location.reload();
}




function targetNewWindow(imgName) {
	var modelName = 'brooke';
	var thisUrl = 'fullview.html?imgName=' + imgName + '&modelName=' + modelName;
	width = 400;
	height = 550;
	var newWin = open(thisUrl,'fullview','top=50,left=50,width=' + width + ',height=' + height + ',menubars=no,directories=no,scrollbars=auto,toolbar=no,location=no,resizable=no,dependent=no');
	newWin.focus();
}

function OpenImageExtra(imgBig, w, h) {

        ImageWindow=window.open("openfoto.html?"+imgBig,"displayWindow","toolbar=no,scrollbars=no,width="+w+",height="+h);

        ImageWindow.focus();
}
