/* ----- suckerfish code ----- */

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);





function hover(obj){
     ul = obj.getElementsByTagName('ul');
     if(ul.length > 0)
     {
          style = ul[0].style;
          style.display = 'block';
     }
}
function unhover(obj){
     ul = obj.getElementsByTagName('ul');
     if(ul.length > 0){
          style = ul[0].style;
          style.display = 'none';
     }
}
function setHover(){
	        
     if(/MSIE/.test(navigator.userAgent))
     {
          li = document.getElementById('nav').getElementsByTagName('li');

          for(var i=0; i < li.length; i++)
          {
		  	   li[i].onmouseover = function(){hover(this)};
               li[i].onmouseout = function(){unhover(this)};
          }
     }
}

window.onload = function() {
	setHover();
}
