/*
* @name       dropdown.js
* @updated    13th Novemeber 2007
* 
* Description
* Roll over and hyperlink functions for top navigation menu
*/

/*
* @name       menuOver(this, "navigation id");
*
* Description
* Does an IE6 friendly roll over of men to make visable, also does a background change
*/
function menuOver(thisobj, id, image) { 
  thisobj.style.backgroundImage = 'url('+image+')';
  thisobj.style.cursor = 'pointer';
  
  if(!thisobj.setAttribute('className', id)) {
    thisobj.className = id;
  }
  
  if(document.getElementById(id)) {
    document.getElementById(id).style.display = 'block';
  }
  
  return;
}

/*
* @name       menuOut(this, "navigation id");
*
* Description
* Reseverses the effects of menuOver();
*/
function menuOut(thisobj, id, image) {
  thisobj.style.backgroundImage = 'url('+image+')';
  
  if(!thisobj.setAttribute('className', id)) {
    thisobj.className = id;
  }
  
  if(document.getElementById(id)) {
    document.getElementById(id).style.display = 'none';
  }
  
  return;
}

/*
* @name       menuLink("link address");
*
* Description
* Sets Hyperlink address for object
*/
function menuLink(url) {
  window.location=url;
}

