navTimer = null;
upNav = 0;
o_navigator = navigator.userAgent
var isIE5 = (o_navigator.indexOf("MSIE 5") > -1) ? 1 : 0;
var isMac = (o_navigator.indexOf("Mac") > -1) ? 1 : 0;
var isIE50 = (o_navigator.indexOf("MSIE 5.0") > -1) ? 1 : 0;
var isIE52 = (o_navigator.indexOf("MSIE 5.2") > -1) ? 1 : 0;
var isNN6 = (o_navigator.indexOf("Netscape6") > -1) ? 1 : 0;
var isDOM = (document.getElementById) ? 1 : 0;

function tabNavOver(o_div){
	if(isDOM&&!isNN6&&!isIE52&&!isIE50){
		if(upNav)upNav.className = "";
		clearTimeout(navTimer);
		o_div.className="overNav";
	}
}
function tabNavOut(o_div){
	if(isDOM&&!isNN6&&!isIE52&&!isIE50){
		upNav = o_div;
		navTimer = setTimeout('upNav.className=""',1);
	}
}

//supersearch start
if (document.getElementById) {
	var myReference = document.getElementById('divID');
}

function switchsearch() {}

function hideDiv(divID_as_a_string) {
	var myReference = getRefToDiv(divID_as_a_string);
	if (!myReference) { 
		return; 
	}
	if (myReference.style) { 
		myReference.style.visibility = 'hidden'; 
	} else {
		if (myReference.visibility) { 
			myReference.visibility = 'hide'; 
		} else {
			return; 
		} 
	}
}

function showDiv(divID_as_a_string) {
  myReference = getRefToDiv(divID_as_a_string);
  if (!myReference) {
    return; //don't go any further
  }
  //now we have a reference to it
  if (myReference.style) {
    //DOM & proprietary DOM
    myReference.style.visibility = 'visible';
  } else {
    //layers syntax
    myReference.visibility = 'show';
  }
}

function getRefToDiv(divID, oDoc) {
	if (document.getElementById) { 
		return document.getElementById(divID); 
	}
	if (document.all) { 
		return document.all[divID]; 
	}
	if (!oDoc) { 
		oDoc = document; 
	}
	if (document.layers) {
		if (oDoc.layers[divID]) {
			return oDoc.layers[divID];
		} else {
			for (var x=0, y; !y && x < oDoc.layers.length; x++) {
				y = getRefToDiv(divID, oDoc.layers[x].document);
			}
			return y;
		}
	}
	return false;
}

function PicPopUp(url) {
	remote=window.open(url,'PopUpWindow','height=370,width=390,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=1,resizable=0,scrollbars=yes,status=0,titlebar=0,toolbar=0,z-lock=33');
	if (!remote.opener) remote.opener = self;
	if (window.focus) remote.focus();  
}
