var intervalID;
var showingListElement;
function showPAAOption(linkElement)
{
  for (i = 0; i < linkElement.childNodes.length; i++)
  {
    var item = linkElement.childNodes[i];
    if (item != null && item.tagName == "UL")
    {
       hidePAAOption();
       item.className = "";
       item.onmouseover = function()
       {
         mouseOverListItem(linkElement);
       }
       linkElement.onmouseout = function()
       {
         setTimeoutInterval(linkElement, item);
       }
    }
  }
}
function setTimeoutInterval(linkElement, listItem)
{
  linkElement.onmouseout = function () {};
  window.clearInterval(intervalID);
  showingListElement = listItem;
  intervalID = window.setInterval(hidePAAOption, 500);
}
function mouseOverListItem(linkElement)
{
  window.clearInterval(intervalID);
  linkElement.onmouseout = function () {};
}
function hidePAAOption()
{
  if (showingListElement != null)
  {
    window.clearInterval(intervalID);
    for (i = 0; i < showingListElement.parentNode.childNodes.length; i++)
    {
      var item = showingListElement.parentNode.childNodes[i];
      if (item != null && item.tagName == "UL")
      {
        item.className = "HideElement";
      }
    }
    //showingListElement.parentNode.className = "HideElement";
  }
}
