﻿sfhover = function() {
	var sfEls = document.getElementById("navmenu").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);

function getObject(name) {
	var object;
	if (document.all && !document.getElementById) {
		object = document.all[name];
	} else if (document.getElementById) {
		object = document.getElementById(name);
	}
	return object;
}

function openWin(url,id,height,width) {
	var x = (640 - width)/2;
	var y = (480 - height)/2;
	if (screen) {
		y = (screen.availHeight - height)/2;
		x = (screen.availWidth - width)/2;
	}
	remote = window.open(url,id,"toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+",screenX="+x+",screenY="+y+",top="+y+",left="+x)
	remote.focus();
}