function sfHoverEvents(sfEls)
{
   var len = sfEls.length;
   for ( var i=0; i<len; i++ )
   {
      sfEls[ i ].onmouseover = function() {
         this.className+=" sfhover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(" sfhover", "");
      }
   }
}
function sfHover() {
   var ULs = document.getElementsByTagName("UL");
   var len = ULs.length;
   
   for ( var i = 0; i < len; i++ )
   {
      if ( ULs[ i ].className.indexOf( "drop" ) != -1 )
      {
         sfHoverEvents( ULs[ i ].getElementsByTagName( "LI" ) );
      }
   }
}

if ( window.attachEvent )
{
   window.attachEvent( "onload", sfHover );
}
