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


function openWindow(url) {
	newwindow=window.open(url,'name');
	if (window.focus) {newwindow.focus()}
	return false;
}

function openWindowFlex(url, w, h) {
	newwindow=window.open(url,'name', 'scrollbars=no,resizable=yes,toolbar=no,width=" + w + ",height=" + h + ",left=10,top=10,screenX=10,screenY=10');
	if (window.focus) {newwindow.focus()}
	return false;
}