

// Is this IE?
var isie = 0;
if (navigator.appVersion.indexOf("MSIE")!=-1)
{
	isie = 1;
}

function showOverlay(id, startdate, numdays)
{
	if (inDebug) {
		alert("showOverlay");
	}
	
	if (id == undefined)
	{
		return false;
	}
	
	var styleurl = '';
	if (overlaystyle != undefined && overlaystyle.length > 0)
	{
		styleurl = '?stylesheet=' + overlaystyle;
	}

	var parkinfo = getEl('parkinfopage');
	parkinfo.src = "/cms/parkinfo_" + id + ".php" + styleurl;

	show('parkoverlay');
	
	//getEl('parkoverlay').style.zIndex  = 1;
	
	hide('flashmap');
}

function hideoverlay()
{

	if (isvisible('parkoverlay'))
	{
		hide('parkoverlay');
		show('flashmap');

		hideLastMinuteDetails();
		clearParkInfo();
		clearLastminuteInfo();

		var parkinfo = getEl('parkinfopage');
		parkinfo.src = "";
	}

}


function hide(id)
{
	//if (isie)
	//{
	//	getEl(id).style.display = 'none';
	//} else {
		getEl(id).style.visibility = 'hidden';
	//}
}


function show(id)
{
	if (inDebug) {
		alert("show");
	}
	getEl(id).style.visibility = 'visible';
	//getEl(id).style.display = 'block';

}

function isvisible(id)
{

	//if (isie)
	//{
	//	return getEl(id).style.display == 'block';
	//} else {
		return getEl(id).style.visibility == 'visible';
	//}

}
