/*
* @name       dropdown.js
* @updated    13th Novemeber 2007
* 
* Description
* Roll over and hyperlink functions for top navigation menu
*/


//pic1 = new Image(); 
//pic1.src =  "http://active.fnqtravel.com.au/images/bgDropdownLi.jpg";
  
//pic2 = new Image(); 
//pic2.src =  "http://active.fnqtravel.com.au/images/bgDropdownLi_h.jpg";
  
//pic3 = new Image(); 
//pic3.src =  "http://active.fnqtravel.com.au/images/bgMenuLi.jpg";
  
//pic4 = new Image(); 
//pic4.src =  "http://active.fnqtravel.com.au/images/bgMenuLi_h.jpg";


/*
* @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(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(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;
}
