	var map = null;
	var pinID = 1;
	var findcontrol = false;
	var layerid=1;
	var zoom=10;
	var lattotal=0;
	var lontotal=0;

	var maplocation1 = new Array();
	maplocation1["lat"]=29.762857;
	maplocation1["lon"]=-95.360321;
	maplocation1["title"]="Hotel Icon";
	maplocation1["desc"]="<img src=\"images/interior/icon-thumbnail.jpg\" align=\"left\" style=\"margin-right:10px;\" /> Hotel Icon<br /> 220 Main<br />Houston, Texas  77002  ";

	var maplocations=new Array(maplocation1);

	function GetMap() {
		map = new VEMap('map');
		map.SetDashboardSize(VEDashboardSize.Tiny);
		map.LoadMap(new VELatLong( ( maplocation1["lat"] ), ( maplocation1["lon"] ) ), zoom ,'r' , false);

		for ( var i = 0; i < maplocations.length; i++) {
			var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(maplocations[i]["lat"], maplocations[i]["lon"]));
			shape.SetTitle(maplocations[i]["title"]);
			shape.SetDescription(maplocations[i]["desc"]);
			pinID++;
			map.AddShape(shape);
			lattotal += maplocations[i]["lat"];
			lontotal += maplocations[i]["lon"];
		}
		latavg = lattotal/maplocations.length;
		lonavg = lontotal/maplocations.length;
		map.SetCenter( new VELatLong( ( latavg ), ( lonavg ) ), zoom );
	}

	$(function() {
		if (BrowserDetect.browser != "Safari" && BrowserDetect.browser != "Opera") {
			GetMap();
		} else {
			$('div#map').html('<img src="images/interior/map.gif" alt="" />');	
		}
	});
