function showPic(href, width, height, alt) {
	img = document.getElementById("popupImg");
	img.innerHTML = '<img src="_assets/images/' + href + '" width="' + width + '" height="' + height + '" alt="' + alt + '" />'
	
	box = document.getElementById("popupBox");
	//box.style.width = width;
	//box.style.height = height;
	box.style.visibility = (box.style.visibility == "visible") ? "hidden" : "visible";
}

function hidePic() {
	box.style.visibility = (box.style.visibility == "visible") ? "hidden" : "visible";
}

sfHover = function() {
	var sfEls = document.getElementById("navbar").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);