window.addEvent('domready', function(){
	
	var map = null;
	var zoomLevel = 12;
	
	function GetMap()
     {
        map = new VEMap('myMap');
		map.LoadMap(new VELatLong(47.41817160075825, 13.682184219360341), 12, VEMapStyle.Hybrid, false, VEMapMode.Mode2D, true, 1);
        map.SetMouseWheelZoomToCenter(false);

		/*Home*/
		AddPin(47.42403701969972, 13.62375497817993, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/bar.png);width:25px;height:25px;'></div>", "", "Ramsau Beach - Café");
		AddPin(47.425677477850606, 13.629612922668468, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/bar.png);width:25px;height:25px;'></div>", "", "Ramsauer Tenne");
		AddPin(47.42138024010008, 13.655823469162, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/bar.png);width:25px;height:25px;'></div>", "", "Verweilzeit");
		AddPin(47.420908393637156, 13.658591508865369, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/bar.png);width:25px;height:25px;'></div>", "", "Monti Bar");
		AddPin(47.417155248876725, 13.674513101577764, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/bar.png);width:25px;height:25px;'></div>", "", "Kulmwirt - Bar");
		AddPin(47.41771424483932, 13.65329146385192, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/bar.png);width:25px;height:25px;'></div>", "", "Waldschenke - Kupferkanne");
		AddPin(47.41817160075825, 13.682184219360341, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/home.png);width:20px;height:30px;'></div>", "", "Almfrieden");
		AddPin(47.45984689881046, 13.615332841873181, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/home.png);width:20px;height:30px;'></div>", "", "Südwandhütte");
			AddPin(47.42263605700314, 13.62420558929442, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/bar.png);width:25px;height:25px;'></div>", "", "Waldcafé - Liftstüberl");
			
		AddPin(47.410867950517286, 13.639011383056634, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/kart.png);width:25px;height:25px;'></div>", "", "Slalom Kart");
		AddPin(47.40527699703693, 13.63128662109374, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/golf.png);width:25px;height:25px;'></div>", "", "Naturgolfanlage Kobaldhof");
		AddPin(47.40472513048848, 13.646972179412849, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/reiten.png);width:25px;height:25px;'></div>", "", "Reiterhof Zechmanhof");
		AddPin(47.408791379931515, 13.685081005096428, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/reiten.png);width:25px;height:25px;'></div>", "", "Reiterhof Brandstätter");
		AddPin(47.42259250316115, 13.661209344863893, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/reiten.png);width:25px;height:25px;'></div>", "", "Reiterhof Unerzhuber");
		AddPin(47.467876284538264, 13.626265525817887, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/dachstein.png);width:25px;height:25px;'></div>", "<img src='/modules/mod_enzo_sommermaps/images/logo_dachstein.gif' width='173' height='74' />", "Dachstein-Gletscher");
		AddPin(47.420218764276655, 13.653607964515684, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/swim.png);width:25px;height:25px;'></div>", "Mit allen Sinnen genießen und Körper und Geist in den Mittelpunkt stellen. Sport, Spaß, Spiel oder einfach nur Relaxen - alles ist möglich. Wellness überall vom Badeparadies bis zur Sauna-Oase mit vielen kleinen Erlebniswelten für den perfekten Tag bei jeder Wetterlage.", "Badeparadies & Sauna-Oase Ramsau");
		AddPin(47.42013891187243, 13.652583360671988, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/vaz.png);width:25px;height:25px;'></div>", "Dachstein Convention Center", "Veranstaltungszentrum Ramsau");
		AddPin(47.42367407957422, 13.623733520507809, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/beach.png);width:25px;height:25px;'></div>", "<img src='/modules/mod_enzo_smmermaps/images/logo_beach.gif' width='190' height='102' /><p>- <b>Alpine Coaster (Sommerrodelbahn)</b><br/>- Badesee Ramsau Beach<br />- Wellnessanlage 'RamSauna'<br />- <b>Forest Park, der Waldhochseilgarten</b><br />- Das Trampolin<br />- Sliding-Soccer<br />- Die Flugschaukel<br />- Beachvolleyball<br />- Spielplatzanlage ('Piratennest', 'Riesensandhaufen')</p>", "Freizeitpark Ramsau Beach");
		AddPin(47.41743837744362, 13.65296959877015, "<div style='background-image:url(/modules/mod_enzo_sommermaps/images/indoor.png);width:25px;height:25px;'></div>", "<p>- Erlebnishalle mit Hochseilgarten mit vier verschiedenen Parcours<br />- Neue Bar<br />- Eine Bühne, welche für verschiedene Anlässe zur Verfügung steht<br />- Gastronomie in der 'Waldschenke'<br />- Nachtleben in der 'Kupferpfanne'<br />- Dart Spiel, Billard, Tischfußball, Tischtennis, Pamper Pole, Slake Line, Bunge Run, Sumo, Gladiatoren Spiel bis zum Kuh-Wettmelken</p>", "Indoorpark Ramsau");
		
		/*tour
		var Pernerweg = [new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong(), new VELatLong()];
		AddPolyline( Silberkahr, "<div style='background-image:url(/modules/mod_enzo_wandermaps/images/wandern.png);width:25px;height:25px;'></div>", "<h2>Rittis - Märchenweg</h2>", "<p></p>");*/

		

		//map.AttachEvent("onclick", GetLatLong);
     }
	/*latlong anzeige
	function GetLatLong(e)
      {
         var x = e.mapX;
         var y = e.mapY;
         pixel = new VEPixel(x, y);
         latLong1 = map.PixelToLatLong(pixel);
         $('divInfo').innerHTML = latLong1;
      }*/
	/*addpin*/
	function AddPin(late, lone, icon, infobox, headline)
	{
		var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(late, lone));
        shape.SetCustomIcon(icon);
        //map.ClearInfoBoxStyles();
        shape.SetTitle(headline);
        shape.SetDescription(infobox);
        map.AddShape(shape);
    }
	/*addline*/
	function AddPolyline(points, icon, tit, infobox)
      {
         var shape = new VEShape(VEShapeType.Polyline, points);
         //Set the line color
         var lineColor = new VEColor(203,0,16,1.0);
         shape.SetLineColor(lineColor);
         //Set the line width
         var lineWidth = 4;
         shape.SetLineWidth(lineWidth);
		//Icon
         shape.SetCustomIcon(icon);
		shape.SetTitle(tit);
		shape.SetDescription(infobox);
         //Add the shape the the map
         map.AddShape(shape);
      }
	
	
	
	
	GetMap();
});
