/*
 * Adds hover/rollover functionality to document elements
 */


function init_hover() {
  //quick IE check
  if (!document.all || !document.getElementById) {
    return;
  }

    if(document.getElementById("intlSiteSelector") != null){
      var navContainerIntl = document.getElementById("parentNode");
      navContainerIntl.onmouseover = hoverOnIntl;
      navContainerIntl.onmouseout = hoverOffIntl;
    }
    if(document.getElementById("toolbar") != null){
      var navContainerAdd = document.getElementById("toolbar");
      navContainerAdd.onmouseover = hoverOnAdd;
      navContainerAdd.onmouseout = hoverOffAdd;
    }
}

function hoverOnIntl() {
  this.className += ' hover';
  document.getElementById('scope').style.display='none';
}

function hoverOffIntl() {
  this.className = this.className.replace('hover', '');
  document.getElementById('scope').style.display='block';
}

function hoverOnAdd() {
  this.className += ' hover';
}

function hoverOffAdd() {
  this.className = this.className.replace('but_toolbar hover', 'but_toolbar');
}

