// IE hover fix after suckerfish, not needed in IE8 and onwards
// IMPORTANT the class name navCSSandJS appears in menu.js and general.css 

sfHover = function() {
	
  if(document.getElementById('navCSSandJS'))
    {
    var sfEls = document.getElementById('navCSSandJS').getElementsByTagName('LI');
    
	for( var i=0; i<sfEls.length; i++ ) 
	  {
      sfEls[i].onmouseover=function() {
      this.className+=(this.className.length>0? " ": "") + "sfhover"; }
      sfEls[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), ""); }
      }
	}
}



if(window.attachEvent) 
  { // win/ie
  window.attachEvent('onload', sfHover);
  } 
else 
  { // mac/ie5
  if(typeof window.onload == 'function') 
    {
    var existing = onload;
    
    window.onload = function() 
      { 
	  existing();
      sfHover();
      }
   } 
  else 
    {
    window.onload = function()
      {
      sfHover();
      }
    }
  }


