// window pop-up
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function popUp(URL)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=400,left = 590,top = 325');");
}

function test()
{
	MM_openBrWindow('map.php','map','width=797,height=640, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')
}
// methods called from flash
function flashFunction(type)
{
	switch(type)
	{
		case "appointment":
			Effect.Appear('scheduleApptPanel', {duration: .5, to:.98});
			break;
		case "registration":
			Effect.Appear('registrationFormPanel', {duration: .5, to:.98});
			break;
		case "map":
			MM_openBrWindow('http://www.port-lawrence.com/x_dev/Location/maps.php','ges_video_center','width=720,height=440, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')
			break;
		case "showHeaderFooter":
			Effect.Appear('headerInner', {duration: 1});
			Effect.Appear('footerInner', {duration: 1});
		break;
	}
}

function loadEnlargedImageIntoIframe(targetElement, targetIframe, urlPath)
{
	frames[targetIframe].location.href = urlPath;
	Effect.Appear(targetElement, {duration: .5, to:1});
}