function reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) {	if (isNetscape()&&isVer4()) {    		document.pgW=innerWidth; 		document.pgH=innerHeight; 		onresize=reloadPage; 	}  } else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();}function getObj(obj) {	if (isNetscape()) return getObjNav4(obj);	else return eval("document.all."+obj);}function getObjNav4(id, parent) {	var parentObj = (parent)? parent : document;	var layerObj;	for (var i = 0; i < parentObj.layers.length && !layerObj; i++) {		if (parentObj.layers[i].id == id) { layerObj = parentObj.layers[i]; break; }		else layerObj = getObjNav4(id, parentObj.layers[i]);	}	return layerObj;}function getImage(id) {	if (isNetscape() && isVer4()) {		return getImageNav4(id);	} else return eval("document.all."+id);}function getImageNav4(id, parent) {	var parentObj = (parent)? parent : document;	var imgObj = parentObj.images[id];	if (!imgObj) {		for (var i = 0; i < parentObj.layers.length && !imgObj; i++)			imgObj = getImageNav4(id, parentObj.layers[i].document);	}	return imgObj;}function getBrowser()  // get the browser program name{  if (navigator.appName == null || navigator.appName == "")    return "other";  else if (navigator.appName == "Netscape")    return "netscape";  else if (navigator.appName == "Microsoft Internet Explorer")    return "ie";  else    return "other";}function isNetscape()  // is browser Netscape?{  if (getBrowser() == "netscape")    return true;  else    return false;}function isIE()  // is browser IE?{  if (getBrowser() == "ie")    return true;  else    return false;}function getBrowserVer()  // get the browser version{  if (navigator.appVersion == null || navigator.appVersion == "")    return "n/a";  // fix for IE 5.x appVersion bug, which returns 4.x instead of 5.x  if (isIE() && navigator.userAgent.indexOf("5.") != -1)    {     var verNum = "";    var str = navigator.userAgent;    var pos = str.indexOf("IE ");  // real version num follows "IE "    for (pos=pos+3; pos<str.length; pos++)  // build verNum string      if (str.charAt(pos) == "." ||          (str.charAt(pos) <= "9" && str.charAt(pos) >= "0"))        verNum += str.charAt(pos);      else        break;    return verNum;    }  var verArray = navigator.appVersion.split(" ");  return verArray[0];}function isVer3()  // is browser version 3.x?{  if (getBrowserVer() >= 3.0 && getBrowserVer() < 4.0)    return true;  else    return false;}function isVer4()  // is browser version 4.x?{  if (getBrowserVer() >= 4.0 && getBrowserVer() < 5.0)    return true;  else    return false;}function isVer4up()  // is browser version 4.0+? (for DHTML coding){  if (getBrowserVer() >= 4.0)    return true;  else    return false;}function isVer5()  // is browser version 5.x?{  if (getBrowserVer() >= 5.0 && getBrowserVer() < 6.0)    return true;  else    return false;}function getPlatform()  // get the browser platform (OS){  if (navigator.platform == null || navigator.platform == "")    return "other";  else if (navigator.platform.indexOf("Mac") >= 0)    return "mac";  else if (navigator.platform.indexOf("Win") >= 0)    return "win";  else if (navigator.platform.indexOf("Unix") >= 0)    return "unix";  else    return "other";}function isMac()  // is browser OS Mac?{  if (getPlatform() == "mac")    return true;  else    return false;}function isWin()  // is browser OS Windows?{  if (getPlatform() == "win")    return true;  else    return false;}function isUNIX()  // is browser OS UNIX?{  if (getPlatform() == "unix")    return true;  else    return false;}function ifBVPjump(browser, version, platform, URL){  // first make sure that version = user's browser version  if (version.indexOf("x") != -1)  // version is in "#.x" format    {    if ((version.charAt(0) == "3") && (isVer3() == false))      return;  // version's incorrect, return    else if ((version.charAt(0) == "4") && (isVer4() == false))      return;  // version's incorrect, return     else if ((version.charAt(0) == "5") && (isVer5() == false))      return;  // version's incorrect, return     }  else if (version.indexOf(".") != -1) // version is in #.#[#] format    {    if (version != getBrowserVer())      return;  // version's incorrect, return to caller    }  // okay, version's correct, but what about browser/platform?  if ( ((browser == getBrowser()) || (browser == "any"))       &&        ((platform == getPlatform()) || (platform == "any")) )    top.document.location.href = URL;  // BVP all correct, jump!  else    return;  // B and/or P incorrect, return}function getLeft(obj) // get x offset for object{	if (isNetscape()) {		return obj.pageX;	} else {		var le = obj.offsetLeft;		while (obj.offsetParent) {			obj = obj.offsetParent;			le += obj.offsetLeft		}		return le;	}}function getTop(obj) // get y offset for object{	if (isNetscape()) {		return obj.pageY;	} else {		var to = obj.offsetTop;		while (obj.offsetParent) {			obj = obj.offsetParent;			to += obj.offsetTop;		}		return to;	}}function getRight(obj) // get right coordinate for object{	return getLeft(obj) + getWidth(obj);}function getBottom(obj) // get bottom coordinate for object{	return getTop(obj) + getHeight(obj);}function getHeight(obj) // get the objects height{	if (isNetscape()) return obj.clip.height;	else return obj.offsetHeight;}function getWidth(obj) // get the objects width{	if (isNetscape()) return obj.clip.width;	else return obj.offsetWidth;}function setLeft(obj, value) {	if (isNetscape()) obj.pageX = value;	else obj.style.pixelLeft = value;}function setTop(obj, value) {	if (isNetscape()) obj.pageY = value;	else obj.style.pixelTop = value;}function setWidth(obj, value) {	if (isNetscape()) obj.clip.width = value;	else obj.style.pixelWidth = value;}function setHeight(obj, value) {	if (isNetscape()) obj.clip.height = value;	else obj.style.pixelHeight = value;}function getEventX(evnt) {	if (isNetscape()) return evnt.pageX;	else return evnt.clientX;}function getEventY(evnt) {	if (isNetscape()) return evnt.pageY;	else return evnt.clientY;}function showObj(obj, show) // show or hide an object{	if (isNetscape()) {		if (show) obj.visibility = "show";		else obj.visibility = "hide";	} else {		if (show) obj.style.visibility = "visible";		else obj.style.visibility = "hidden";	}}function isObjInside(obj, insObj) // returns true if obj is inside insObj{	return (getTop(obj) >= getTop(insObj) && getBottom(obj) <= getBottom(insObj) && getLeft(obj) >= getLeft(insObj) && getRight(obj) <= getRight(insObj));			}function isInside(x, y, obj) // returns true if coord is inside insObj{	return (y >= getTop(obj) && y <= getBottom(obj) && x >= getLeft(obj) && x <= getRight(obj));			}