var mainimg="";

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
			this.style.zIndex=10; //this line added to force flyout to be above relatively positioned stuff in IE
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	mainimg=document.getElementById("gallery_image").src;
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function show(arg){
    document.getElementById("gallery_image").src="images/gallery/"+arg;
}

function restore(){
    document.getElementById("gallery_image").src=mainimg;
}

