// change the displayed image in the image gallery
function change_galleryimage(img1,img2){
	if (document.getElementById){
		document.getElementById(img1).style.display = "inline";
		document.getElementById(img2).style.display = "none";
	}
}

// function used to make drop down menu in the header to work
sfHover = function() {
	menuArray = new Array("nav2", "nav", "sidebar_menu", "sidebar_menu1", "sidebar_menu2", "sidebar_menu3");
	for (var j=0; j<menuArray.length; j++) {
		// check to see if the 'nav' object exists 
		var navobject = document.all.item(menuArray[j]);
		if (navobject != null){
			var sfEls = document.getElementById(menuArray[j]).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);
