/** 
This file doesn't touch the API and can be used by a page to produce a map frame page
**/
function writeMapFrame(framePageLocation, element, LID, lon, lat, width, height){
	if (!document.getElementById("iframe" + LID))
	{
		var frame = document.createElement('iframe');
		frame.id = "iframe" + LID;
		frame.src = framePageLocation + "?ListingID=" + escape(LID) + "&Lon=" + escape(lon) + "&Lat=" + escape(lat) + "&Width=" + escape(width) + "&Height=" + escape(height);
		frame.width = width+"px";
		frame.height = height+"px";
		frame.frameBorder = "0";
		document.getElementById(element).appendChild(frame);
	}
}

function showHide(show, hide, display){
	document.getElementById(show).style.display=display;
	document.getElementById(hide).style.display="none";	
}
