function reDo()
{ 
	window.location.reload(); 
} 

window.onresize = reDo;

//Define global variables
var timerID = null;
var timerOn = false;
var timecount = 500;
// Change this to the time delay that you desire
var what = null;
var newbrowser = true;
var check = false; 


function init()
{ 
	loadImages();


	if (document.layers)
	{ 
		layerRef="document.layers"; 
		styleSwitch=""; 
		visibleVar="show"; 
		what ="ns4"; 
	} 
	else if(document.all)
	{ 
		layerRef="document.all"; 
		styleSwitch=".style"; 
		visibleVar="visible"; 
		what ="ie4"; 
	} 
	else if(document.getElementById)
	{ 
		layerRef="document.getElementByID"; 
		styleSwitch=".style"; 
		visibleVar="visible"; 
		what="dom1"; 
	} 
	else
	{ 
		what="none"; 
		newbrowser = false; 
	} 
	check = true; 
} 


// Toggles the layer visibility on 
function showLayer(layerName)
{ 
	if(check)
	{ 
		if (what =="none")
		{ 
			return; 
		} 
		else if (what == "dom1")
		{ 
			document.getElementById(layerName).style.visibility="visible"; 
		} 
		else
		{
			eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"'); 
		} 
	} 
	else
	{ 
		return; 
	} 
} 
 
 
// Toggles the layer visibility off 
function hideLayer(layerName)
{ 
	if(check)
	{ 
		if (what =="none")
		{ 
			return; 
		} 
		else if (what == "dom1")
		{ 
			document.getElementById(layerName).style.visibility="hidden"; 
		} 
		else
		{ 
			eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"'); 
		} 
	} 
	else
	{ 
		return; 
	} 
} 
 
function hideAll()
{ 
	hideLayer('menu_travel'); 
	hideLayer('menu_whereto'); 
	hideLayer('menu_insider'); 
	hideLayer('menu_concierge'); 
	//Put all layers used in the nav here. 
	//Copy the hideLayer() function above. 
} 
 
 
function startTime()
{ 
	if (timerOn == false)
	{ 
		timerID=setTimeout( "hideAll()" , timecount); 
		timerOn = true; 
	} 
} 
 
 
function stopTime()
{ 
	if (timerOn)
	{ 
		clearTimeout(timerID); 
		timerID = null; 
		timerOn = false; 
	} 
} 
 
 
function onLoad()
{ 
	init();
}

function loadImages()
{
	if (document.images)
	{
		button01		= new Image(); 
		button02		= new Image(); 
		button03		= new Image(); 
		button04		= new Image(); 
		button05		= new Image(); 
		button06		= new Image(); 
		button07		= new Image(); 
		button08		= new Image(); 
		button09		= new Image(); 
		button10		= new Image();
		button11		= new Image(); 
		button12		= new Image(); 
		button13		= new Image(); 
		button14		= new Image(); 
		button15		= new Image(); 
		button16		= new Image(); 
		button17		= new Image(); 
		button18		= new Image(); 
		button19		= new Image(); 
		button20		= new Image(); 
		button21		= new Image(); 
				
		button01.src	= "../buttons/over_concierge.gif";
		button02.src	= "../buttons/over_insiderguide.gif";
		button03.src	= "../buttons/over_search.gif";
		button04.src	= "../buttons/over_travelplanner.gif";
		button05.src	= "../buttons/over_wheretostay.gif";

		button06.src	= "../buttons/concierge/over_giftcert.gif";
		button07.src	= "../buttons/concierge/over_vacation.gif";
		button08.src	= "../buttons/concierge/over_advantage.gif";
		button09.src	= "../buttons/concierge/over_weddings.gif";

		button10.src	= "../buttons/insiderguide/over_whattoseedo.gif";
		button11.src	= "../buttons/insiderguide/over_wheretodine.gif";

		button12.src	= "../buttons/travelplanner/over_howtogetaround.gif";
		button13.src	= "../buttons/travelplanner/over_howtogethere.gif";
		button14.src	= "../buttons/travelplanner/over_whentovisit.gif";

		button15.src	= "../buttons/wheretostay/over_getawaypackages.gif";
		button16.src	= "../buttons/wheretostay/over_hotelsinns.gif";
		button17.src	= "../buttons/wheretostay/over_insiderpicks.gif";
		button18.src	= "../buttons/wheretostay/over_specialoffers.gif";
		button19.src	= "../buttons/wheretostay/over_vacationrentals.gif";

		button20.src	= "../buttons/over_emailreq.gif";
		button21.src	= "../buttons/over_bookonline.gif";

	}
}