<!--
var map = null;
//var scale = 11;
//var latlon = 41.53,23.384;
var pinid = 0;
var icon = "<div style='background-color:transparent;width:16px;cursor:hand;'><img src='/portals/0/images/house_icon.png' border='0'/></div>";
//var popupTitle = "<h3>Custom Pin Title</h3>";
//var infobox = "<div>content</div>";
function GetMap()
{
	var lat = parseFloat(latlon.split(",")[0]);
	var lon = parseFloat(latlon.split(",")[1]);
	if(isNaN(lat) || isNaN(lon)){alert("Invalid Latitude or Longtitude value.\nPlease verify your entry on the Property Entry Form and try again!"); return;}
	map = new VEMap('VEMap');
	var point = new VELatLong(lat, lon);
	map.LoadMap(point, scale, mapStyle, false);
	//map.AddShape(new VEShape(VEShapeType.Pushpin, new VELatLong(41.5339,23.38)));
	//map.SetZoomLevel(scale);
}
window.onload=InitVEmap;
function AddPushpin()
{
   var shape = new VEShape(VEShapeType.Pushpin, map.GetCenter());
   //Set the icon
   shape.SetCustomIcon(icon);
   //Set the info box
   map.ClearInfoBoxStyles();
   shape.SetTitle(popupTitle);
   shape.SetDescription(infobox);
   //Add the shape the the map
   map.AddShape(shape);
   pinid++;
}
//-->
