
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);

// For Gallery

function galWin( url ) 
{
	var winwidth = 300;
	var winheight = 550;
	var winleft = (screen.availWidth - winwidth)/2;
	var wintop = (screen.availHeight - winheight)/2;

	var sizer = window.open(url,"",'left='+winleft+',top='+wintop+',width='+winwidth+',height='+winheight+',scrollbars=no,toolbar=no,status=no');
	sizer.location = url;
}

function myOn( myImgName, img_hover ) {
	document[myImgName].src = img_hover;
}

function myOut( myImgName, img_hover ) {
	document[myImgName].src = img_hover;
}