if (top.location != self.location) {
  top.location = self.location
}

var faux = null;
var PreviousUrl;
function targwin()
{
  strUrl = arguments[0];
  strTarg = arguments[1];
  if (arguments.length == 4){
	strWid = arguments[2];
	strHgt = arguments[3];    
  }
  else
  {
	strWid = "800";
	strHgt = "480";    
  }
  if(faux == null || faux.closed)
  {
    faux = window.open(strUrl,strTarg,"location,toolbar,menubar,status,resizable,scrollbars,width="+strWid+",height="+strHgt+",top=10,left=20");
	if(faux == null)
	{
		alert('We have detected that you are using popup blocking software.\nPlease disable or allow popups for this website.');
	}
  }
  else if(PreviousUrl != strUrl)
  {
    faux = window.open(strUrl,strTarg,"location,toolbar,menubar,status,resizable,scrollbars,width="+strWid+",height="+strHgt+",top=10,left=20");
    faux.focus();
  }
  else
  {
    faux.focus();
  };
  PreviousUrl = strUrl;
}

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

