var strClassName = "top";
function highlightItem(strElement)
{
   var listUL=document.getElementById(strElement)
   for (i=0; i<listUL.childNodes.length; i++)
   {
       if (listUL.childNodes[i].nodeName=="LI")
       {
           listLI = listUL.childNodes[i].childNodes;
           for (j=0; j<listLI.length; j++)
           {
               if(listLI[j].nodeName=="A")
               {
                   strURL = listLI[j].href.substring(0, listLI[j].href.lastIndexOf("/"));
                   if (document.location.href.indexOf(strURL) != -1 && strURL != ("http://" + window.location.hostname))
                   {
                       listUL.childNodes[i].className = strClassName;
                   }
               }
           }
       }
   }
}
