/*
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);

*/
/*
 * Son of Suckerfish Dropdowns
 * By Patrick Griffiths and Dan Webb
 * http://www.htmldog.com/articles/suckerfish/dropdowns/
 */
 
var isIE6 = ((navigator.userAgent.indexOf("MSIE 6.") != -1) && (navigator.userAgent.indexOf("Opera") == -1));

sfHover = function() {
  var sfEls = document.getElementById("nav").getElementsByTagName("li");
  for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
      if(isIE6) {
        sel = document.getElementsByTagName("select");
        for (var i=0; i<sel.length; i++) {
          sel[i].style.visibility = 'hidden';
        }
      }
      this.className+=" sfhover";
    }
    sfEls[i].onmouseout=function() {
      if(isIE6) {
        sel = document.getElementsByTagName("select");
        for (var i=0; i<sel.length; i++) {
          sel[i].style.visibility = 'visible';
        }
      }
      this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
  }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);