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"), "");
		}
	}
}
function openpopup(url) { 
	hmpopwin=window.open(url,"hmpopwin","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=yes,scrollbars=1,  width=700,height=560,left=40,top=40");
	hmpopwin.focus();
}
function swap(img, image){ img.src=image; }

function preloadImages(){
	var imgs=new Array();
	for (i=0; i<preloadImages.arguments.length; i++) { 
		imgs[i]=new Image();
		imgs[i].src=preloadImages.arguments[i];
	}
}
