lastAttraction = '';

function overlay(name,state) {

	if (lastAttraction != '') {
		obj = buildObj(lastAttraction);
		obj.style.visibility = 'hidden';
	}

	obj = buildObj(name);

	if (state) {
		obj.style.visibility = 'visible';
		lastAttraction = name;
	}

}

timeoutFlag = 0;

function menu(menuName,state) {

	thisObj = buildObj(menuName);

	thisObj.style.visibility = 'visible';

}

function buildObj(objName) {
	if (document.all) {
		newObj = document.all[objName];
	} else {
		newObj = document.getElementById(objName);
	}
	return newObj;
}

function mapquestWindow(qryString) {

	widthAdj = screen.width / 2 - 200;
	heightAdj = screen.height / 2 - 200;

	paramString = 'width=400,height=400,resizable=1,screenx=' + widthAdj + ',screeny=' + heightAdj + ',top=' + heightAdj + ',left=' + widthAdj;

	urlString = 'images/customforms/MapQuest/dsp_Default.cfm?' + qryString + '&FuseAction=Map';
	mapWin = window.open(urlString,'newWin',paramString);

}