// WebStaticMapper - custom file
// You can edit this file to modify interface behaviour:
// minDocW = 300

	//Project.imgExt = ".jpg"
	Project.themes.get(0).extension = '.jpg'

	Map.tool = 999
	Map.onClickHandler = ''

	var displayWindow = null

	// .LSP verificare
	//window.name='wsm'

	Map.statusChanged	= MyMap_statusChanged
	Map.update()	


	function MyMap_statusChanged(cZoom, cTheme, cTool, cPosition)
	{
		fr_map.document.location.reload()
		fr_toolbar.document.location.reload()
		fr_doc.document.location.reload()

	}



	// selection è un punto da evidenziare sulla mappa. Viene disegnato se id <> ""
	var selection = new TPoint('', 0, 0)




	function floatWindow(szSource, szTitle, iToolbar, iScrollbars)
	{


		var w = 600	// larghezza della finestra
		var h = 500	// altezza della finestra

		var sArgs = 'toolbar=' + iToolbar + ',scrollbars=' + iScrollbars + ',resizable,titlebar,' +
				'height=' + h + ',innerHeight=' + h + ',width=' + w + ',innerWidth=' + w


		if (displayWindow && displayWindow.close && !displayWindow.closed)

		{
			displayWindow.document.location.href=szSource
			displayWindow.focus()
		}

		   else
	
 			displayWindow=window.open(szSource,szTitle,sArgs)

	}





