// Javascript to enable dropdown menu in MS IE6
// This script is included in HTML pages via a conditional comment,
// since MS IE 6 does not support CSS :hover correctly.
// CM 24/07/2007
// From SuckerFish Dropdowns http://www.alistapart.com/articles/downdows/
// CM 18/03/2008
// Using browser detection instead of MSIE conditional comments in HTML
// to avoid flicker in MSIE when page first displayed

if (navigator.appVersion.indexOf("MSIE 6") >= 0) {
	sfHover = function() {
		var sfEls = document.getElementById("div_menu").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);
}
