var iLastIndexToShow = -1;
 
function ULOnMouseOver(me, index)
 {
  iLastIndexToShow = index;
  setTimeout(function() { PutCurrent(index); }, 300);
 }
 
var class_names = new Array();  

function PutCurrent(index)
 {
  if (iLastIndexToShow == index)
   {
    var rootULs = document.getElementById("nav").childNodes;
    
    if (class_names.length == 0)
     { 
      for (var i=0; i<rootULs.length; i++)
       {
        var rootUL = rootULs[i];
        var class_name = rootUL.title;
         
        if ((class_name == undefined) || (class_name == ''))
         {
          
          class_name = 'select';
         } 
        rootUL.title = '';           
        class_names[i] = class_name;    
       } 
     }    
    
    var iMan = 0;
    for (var i=0; i<rootULs.length; i++)
     {
      var rootUL = rootULs[i];
      
      if (rootUL.nodeName == "UL")
       {
        var rootLI = rootUL.childNodes[0];
        
        if (iMan == index) 
         {
          rootUL.className = "current";
         } 
        else
         { 
           
          rootUL.className = class_names[i];
         } 
         
        iMan++;
       }
     } 
   }
 }
 
function ULOnMouseOut( me, index )
 {
  iLastIndexToShow = -1;
 }

