// Fix pseudo class in IE

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"), "");
    }
  }
  // set height for the footer
    var sfFooter = document.getElementById("footer");
    sfFooter.style.height = "278";
}

sfFocus = function() {
    var sfEls = document.getElementsByTagName("INPUT");
    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onfocus=function() {
          this.className+=" sffocus";
          }
        sfEls[i].onblur=function() {
          this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
        }
  }
}

var BrowserName = navigator.appName;
var BrowserVersion = navigator.appVersion;
var UserAgent = navigator.userAgent;

if (window.attachEvent) window.attachEvent("onload", sfHover);
if (window.attachEvent) window.attachEvent("onload", sfFocus);