var lastContainer;
var lastPanel;
var lastLabel;
function showDetails(place_id, panel_prefix)
{	
	if (typeof panel_prefix == "undefined")
		panel_prefix = "NFO"

	restoreLast ()

	var container = document.getElementById ("OBJ" + place_id)
	var panela = document.getElementById (panel_prefix + place_id)
	var label = document.getElementById ("LBL" + place_id)

	container.style.display = "block"
	panela.style.display = "block"
	label.className = "midInnerSelected"

	lastContainer = container
	lastPanel = panela
	lastLabel = label
}
function showPlan(place_id)
{
	showDetails (place_id, "LOC")
}
function showPhotos(place_id)
{
	showDetails (place_id, "PHT")
}
function restoreLast ()
{
	if (typeof lastContainer != "undefined" && 
		typeof lastPanel != "undefined" &&
		typeof lastLabel != "undefined")
	{
		lastContainer.style.display = "none"
		lastPanel.style.display = "none"
		lastLabel.className = "midInner"
	}
}
function openWin (what)
{
	var rnd = Math.round(Math.random () * 1000)
	var newWin = window.open ("img.html?"+what, ""+rnd+"", "menubar=0, location=0, status=0, toolbar=0, width=150, height=150, 	scrollbars=1, resizable=1")
}