sfHover = function() {
	var sfEls = document.getElementById("main_nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() { 
			if(this.getElementsByTagName('UL').length) this.getElementsByTagName('UL')[0].style.display='block';
		}
		sfEls[i].onmouseout=function() { 
			if(this.getElementsByTagName('UL').length) {
				uls = this.getElementsByTagName('UL');
				for(var j=0;j<uls.length;j++){uls[j].style.display='none';} 
				}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
