kickoff = function() {
//Start Popup Scripts
  var els = document.getElementsByTagName("a");
  for(var i = 0; i < els.length; i++) {
    if (els[i].className.indexOf("popup") !=- 1) {
      els[i].onclick=popup;
    }
	if (els[i].className.indexOf("minipopup") !=- 1) {
      els[i].onclick=minipopup;
    }
  }

//Focus on first form field
if (document.forms.length > 0) {
	document.forms[0].elements[0].focus();
	}
}

//Popup Functions
popup = function() {
    var win=window.open(this.href, "popup", "width=800, height=550, toolbar=yes,location=yes, menubar=yes, scrollbars=yes, resizable=yes");
    win.focus()
  return false; 
}
minipopup = function() {
    var win=window.open(this.href, "minipopup", "width=520, height=320, toolbar=no, location=no, menubar=no, scrollbars=yes, resizable=yes");
    win.focus()
  return false; 
}

window.onload = kickoff;


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);