﻿// Introducing mouseover/mouseout events to IE
// to mimick the CSS :hover pseudo-class.

// Original source: http://www.htmldog.com/articles/suckerfish/dropdowns/

// Changed by Stephan Hilchenbach for the use with nested divs instead of ul

// 2008-04-02

sfHover = function() {
	var sfEls = document.getElementById("nav1").getElementsByTagName("div");
	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);