/* BudgetTravel.com - global nav scripts */


/* shows/hides the drop-downs when tabs are moused over */
function menuShow(a)
{
	document.getElementById(a).style.visibility='visible';
}

function menuHide(a)
{
	document.getElementById(a).style.visibility='hidden';
}


/* hides the select list on destination section front in IE */
function hideSelect()
{
	var is_ie/*@cc_on = {
  	// quirksmode : (document.compatMode=="BackCompat"),
  	version : parseFloat(navigator.appVersion.match(/MSIE (.+?);/)[1])
	}@*/;
	
	if (is_ie && (is_ie.version < 7))
	{
		// do IE specific stuff
		document.getElementById('selectDestination').style.visibility='hidden';
		document.getElementById('selectSearch').style.visibility='hidden';
	}
	else
	{
		document.getElementById('selectDestination').style.visibility='visible';
		document.getElementById('selectSearch').style.visibility='visible';
	}
}

function showSelect()
{
	var is_ie/*@cc_on = {
  	// quirksmode : (document.compatMode=="BackCompat"),
  	version : parseFloat(navigator.appVersion.match(/MSIE (.+?);/)[1])
	}@*/;
	
	if (is_ie && (is_ie.version < 7))
	{
		// do IE specific stuff
		document.getElementById('selectDestination').style.visibility='visible';
		document.getElementById('selectSearch').style.visibility='visible';
	}
	else
	{
		document.getElementById('selectDestination').style.visibility='visible';
		document.getElementById('selectSearch').style.visibility='visible';
	}
}


/* keeps tab highlighted when drop-down is moused over */
function tab3On()
{
	document.getElementById('nav_tab3').style.backgroundPosition='-145px -29px';
}

function tab3Off()
{
	document.getElementById('nav_tab3').style.backgroundPosition='-145px 0px';
}

function tab4On()
{
	document.getElementById('nav_tab4').style.backgroundPosition='-227px -29px';
}

function tab4Off()
{
	document.getElementById('nav_tab4').style.backgroundPosition='-227px 0px';
}

function tab5On()
{
	document.getElementById('nav_tab5').style.backgroundPosition='-340px -29px';
}

function tab5Off()
{
	document.getElementById('nav_tab5').style.backgroundPosition='-340px 0px';
}

function tab6On()
{
	document.getElementById('nav_tab6').style.backgroundPosition='-406px -29px';
}

function tab6Off()
{
	document.getElementById('nav_tab6').style.backgroundPosition='-406px 0px';
}

function tab7On()
{
	document.getElementById('nav_tab7').style.backgroundPosition='-496px -29px';
}

function tab7Off()
{
	document.getElementById('nav_tab7').style.backgroundPosition='-496px 0px';
}

function tab8On()
{
	document.getElementById('nav_tab8').style.backgroundPosition='-535px -29px';
}

function tab8Off()
{
	document.getElementById('nav_tab8').style.backgroundPosition='-535px 0px';
}

function tab9On()
{
	document.getElementById('nav_tab9').style.backgroundPosition='-596px -29px';
}

function tab9Off()
{
	document.getElementById('nav_tab9').style.backgroundPosition='-596px 0px';
}

/* /////////////////////////// */
/* experimental - not currently used */

function menuLinks()
{
	document.getElementById('menu3_1').innerHTML="U.S. &amp; Canada";
}
