
function loupe(URL) {
	var height, x;
   if ((navigator.appName== "Netscape" && parseInt(navigator.appVersion) > 3)|| (navigator.appName.indexOf("Microsoft") != -1 && parseInt(navigator.appVersion) > 3)) {
		height = screen.height;
		if (height - 145 > 600) {
			x = height - 145;
		} else {
			x = 600;
		}
	} else {
		x = 600;
	}
   var newWin = window.open(URL,'loupe','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=670,height=' + x);
   newWin.focus();
   return false;
}

function openWindow(URL,name,features) {
  // usage: <a href="awardsandexhibitions.php" target="_new" onClick="return(openWindow('awardsandexhibitions.php','awardsandexhibitions','width=500,height=240,left=100,top=100,screenX=100,screenY=100'));">
  newWin = window.open(URL,name,features);
  newWin.focus();
  return false;
}

function toggle(divId) {
   if (document.getElementById(divId).style.display == null) document.getElementById(divId).style.display = "";
   document.getElementById(divId).style.display == "" ? document.getElementById(divId).style.display = "none" : document.getElementById(divId).style.display = "";
   return false;
}
function toggle2(divId, imageName, openGraphic, closedGraphic) {
	if (document.getElementById(divId).style.display == null) 
		document.getElementById(divId).style.display = "";
   if (document.getElementById(divId).style.display == "") { 
		document.getElementById(divId).style.display = "none";
		if (document.images) 
			document[imageName].src=closedGraphic; 
	} else { 
		document.getElementById(divId).style.display = "";
		if (document.images) 
			document[imageName].src=openGraphic; 
	}
   return false;
}
function setClass(divId, className) {
	var sfEls = document.getElementById(divId);
	sfEls.className = className;
}

var sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className += " sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
// if (window.attachEvent) window.attachEvent("onload", sfHover);

