/*
* @name       menuOver(this, "navigation id");
*
* Description
* Does an IE6 friendly roll over of men to make visable, also does a background change
*/

/*
* @name       menuOver(this, "navigation id");
*
* Description
* Rolls over menu effecs
*/
function menuOver(thisobj, id, image, color) { 
  thisobj.style.cursor = 'pointer';
  
  if(image) {
    thisobj.style.backgroundImage = 'url('+image+')';
  }

  if(color=='' || color==false || color=='none') {
    thisobj.style.backgroundColor = '';
  } else if(color) {
    thisobj.style.backgroundColor = color;
  }

  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, color) {
  if(image) {
    thisobj.style.backgroundImage = 'url('+image+')';
  }

  if(color=='' || color==false || color=='none') {
    thisobj.style.backgroundColor = '';
  } else if(color) {
    thisobj.style.backgroundColor = color;
  }
  
  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;
}

