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

