window.onload = function() {
  var theWidth, theHeight;
  // Window dimensions:
  if (window.innerWidth) {
  theWidth=window.innerWidth;
  }
  else if (document.documentElement && document.documentElement.clientWidth) {
  theWidth=document.documentElement.clientWidth;
  }
  else if (document.body) {
  theWidth=document.body.clientWidth;
  }
  if (window.innerHeight) {
  theHeight=window.innerHeight;
  }
  else if (document.documentElement && document.documentElement.clientHeight) {
  theHeight=document.documentElement.clientHeight;
  }
  else if (document.body) {
  theHeight=document.body.clientHeight;
  }
  document.body.style.height = theHeight + "px";
  
  menu_mouseover();
}

function menu_mouseover()
{
  var allATag = document.getElementsByTagName("a");
  for (var i = 0; i < allATag.length; i++)
  {
    if (allATag[i].className == "a_menu")
    {
      allATag[i].onmouseover = function () {
        this.parentNode.style.background = 'url(tpl/myplumtree/images/menu_bg_hover.jpg) right 2px no-repeat';
      }
      allATag[i].onmouseout = function () {
        this.parentNode.style.background = 'none';
      }
    }
  }
}

