// http://www.htmldog.com/articles/suckerfish/dropdowns/

sfHover = function() {
  if (document.getElementById("main-menu")) {
    // for all LIst elements in #main-menu
  	var sfEls = document.getElementById("main-menu").getElementsByTagName("LI");
  	for (var i=0; i<sfEls.length; i++) {
      // append class "sfhover" on mouseOver
  		sfEls[i].onmouseover=function() {
  			this.className+=" sfhover";
  		}
  		sfEls[i].onmouseout=function() {
  			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
  		}
  	}
  } // getElementById available?
}
// for IE, attach onload="sfHover()" to body
if (window.attachEvent) window.attachEvent("onload", sfHover);

