sfHover = function() {
  var sfEls = document.getElementById("navigation").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"), "");
    }
  }
}

//DOM loader, Dean Edwards/Matthias Miller/John Resig
function init() {
  if (arguments.callee.done) return;
  arguments.callee.done = true;
  if (_timer) clearInterval(_timer);

  sfHover();   

  //try {document.execCommand('BackgroundImageCache', false, true);} catch(e) {};
};

if (document.addEventListener) {
  document.addEventListener("DOMContentLoaded", init, false);
}
// for Internet Explorer (using conditional comments)
/*@cc_on @*/
/*@if (@_win32)document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
var script = document.getElementById("__ie_onload");
script.onreadystatechange = function() {    
  if (this.readyState == "complete") {        
    init();  
  }
};
/*@end @*/
if (/WebKit/i.test(navigator.userAgent)) {  
var _timer = setInterval(function() {        
  if (/loaded|complete/.test(document.readyState)) {            
    clearInterval(_timer); init();}}, 10);
};


