// JavaScript Document
// Last updated: 22nd December 2005

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

sfHover = function() {
	var mainnav = document.getElementById("mainnav");
	if(!mainnav)
		return;

	var sfEls = mainnav.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 openpopup(theURL,winName,features){
	winpops=window.open(theURL,winName,features);
	winpops.focus();
}
