   //<![CDATA[

    if (GBrowserIsCompatible()) {
      
      function GPoint2(x,y) { return new GLatLng(y,x); }
      
      
    
      // this variable will collect the html which will eventually be placed in the sidebar
      var sidebar_html = "";
    
      // arrays to hold copies of the markers and html used by the sidebar
      // because the function closure trick doesnt work there
      var gmarkers = [];
      var htmls = [];
      var i = 0;
	  var background = [];
		        background["pink"]  = "colour108.png";
          		background["gold"]  = "colour086.png";
          		background["white"] = "colour125.png";
      var overlay = [];
	  
//------------------------------------------------------------------ Premium ----------------------------------------------------------------------------  
          		overlay["A"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Premium/neue-post.png";
          		overlay["B"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Premium/reischlhof.png";
				overlay["C"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Premium/st-gunther.png";
				overlay["D"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Premium/aktiv-residence.png";
				overlay["E"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Premium/oedhof.png";
				overlay["F"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Premium/viktoriaquelle.png";

//------------------------------------------------------------------ Prestige ----------------------------------------------------------------------------

				overlay["a"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/taubinger-hof.png";
				overlay["b"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/hauser-hof.png";
				overlay["c"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/strickerhof.png";
				overlay["d"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/landgut-tiefleiten.png";
				overlay["e"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/waldeck.png";
				overlay["f"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/gammerhof.png";
				overlay["g"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/rathberger-hof.png";
				overlay["h"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/brandlhof.png";
				overlay["i"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/moorhof.png";
				overlay["j"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/seehof.png";
				overlay["k"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/kolbeck.png";
				overlay["l"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/neuhof.png";
				overlay["m"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Prestige/waidler-hof.png";


//------------------------------------------------------------------ Classic ----------------------------------------------------------------------------

				overlay["1"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Classic/fuerstn.png";
				overlay["2"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Classic/kraeuter-hof.png";
				overlay["3"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Classic/mitterdorf.png";
				overlay["4"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Classic/langrehr.png";
				overlay["5"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Classic/peterhof.png";
				overlay["6"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Classic/matthiasl.png";
				overlay["7"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Classic/kirchenwirt.png";
				overlay["8"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Classic/schuetzenhaus.png";
				overlay["9"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Classic/fledermausschloss.png";
				overlay["10"] = "http://www.land-vital.org/Bilder/Maps/Icons-Gastgeber/Classic/josef-seitz.png";



function createMarker(point,html,ba,ov,name) {
        	var mylabel = {"url":overlay[ov], "anchor":new GLatLng(-15,-25), "size":new GSize(67,60)};
			var Icon = new GIcon(G_DEFAULT_ICON, background[ba], mylabel)
			var marker = new GMarker(point,Icon);
			    GEvent.addListener(marker, "click", function() {
			    marker.openInfoWindowHtml(html);
	    });

        // save the info we need to use later for the sidebar
        gmarkers[i] = marker;
        htmls[i] = html;
        // add a line to the sidebar html
        sidebar_html += '<a href="javascript:myclick(' + i + ')">' + name + '</a><br>';
        i++;
        return marker;
      }


      // This function picks up the click and opens the corresponding info window
      function myclick(i) {
        gmarkers[i].openInfoWindowHtml(htmls[i]);
      }

GMap2.prototype.hoverControls = function(opt_noCloseIw){
  			var theMap = this;
  				theMap.hideControls();
  				GEvent.addListener(theMap, "mouseover", function(){theMap.showControls();
  				});
  				GEvent.addListener(theMap, "mouseout", function(){theMap.hideControls();
				});
			  	theMap.libraryCard = 19162;
				}
				GMap.prototype.hoverControls = GMap2.prototype.hoverControls;


      // create the map
	        	var map = new GMap2(document.getElementById("map"));
	      		map.addControl(new GLargeMapControl());
				map.hoverControls();
      			map.setCenter(new GLatLng(50.7000, 10.5000),6, G_HYBRID_MAP);

//------------------------------------------------------------------ Premium ----------------------------------------------------------------------------

//Hotel Neue Post  
	  var point1 = new GLatLng(49.0688, 13.0964);
      var marker1 = createMarker(point1,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Premium/neue-post.jpg"/><h3>Wohlfühlhotel Neue Post</h3><p class="haupt">Das Wohlfühlhotel Neue Post im Bayerischen Wald liegt im Ferienort Bodenmais.</p><p class="maplink"><a href="#">Details</a></p></div>','white','A',"Wohlfühlhotel Neue Post")
      map.addOverlay(marker1);
	  
//Reischlhof
	  var point2 = new GLatLng(48.6604, 13.7496);
      var marker2 = createMarker(point2,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Premium/reischlhof.jpg"/><h3>Genuss-Hotel Reischlhof</h3><p class="haupt">Das Genuss-Hotel Reischlhof im Bayerischen Wald liegt im Ferienort Wegscheid.</p><p class="maplink"><a href="#">Details</a></p></div>','white','B',"Genuss-Hotel Reischlhof")
      map.addOverlay(marker2);
	  
//St.Gunther
	  var point3 = new GLatLng(48.9516, 13.1955);
      var marker3 = createMarker(point3,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Premium/st-gunther.jpg"/><h3>Hotel St. Gunther</h3><p class="haupt">Das Hotel St. Gunhter im Bayerischen Wald liegt im Ferienort Rinchnach.</p><p class="maplink"><a href="#">Details</a></p></div>','white','C',"Hotel St.Gunther")
      map.addOverlay(marker3);	  
				 
//Aktiv-Residence
	  var point4 = new GLatLng(48.8927, 13.4256);
      var marker4 = createMarker(point4,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Premium/aktiv-residence.jpg"/><h3>Aktiv Residence</h3><p class="haupt">Die Aktiv Residence im Bayerischen Wald liegt im Ferienort St. Oswald.</p><p class="maplink"><a href="#">Details</a></p></div>','white','D',"Aktiv Residence")
      map.addOverlay(marker4);	  				 
				 
//Ödhof
	  var point5 = new GLatLng(49.0513, 13.0195);
      var marker5 = createMarker(point5,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Premium/oedhof.jpg"/><h3>Hotel Ödhof</h3><p class="haupt">Das Hotel Ödhof im Bayerischen Wald liegt im Ferienort Böbrach bei Bodenmais.</p><p class="maplink"><a href="#">Details</a></p></div>','white','E',"Hotel Ödhof")
      map.addOverlay(marker5);	  				 

//Viktoriaquelle
	  var point6 = new GLatLng(48.5130, 13.3028);
      var marker6 = createMarker(point6,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Premium/viktoriaquelle.jpg"/><h3>Kurhotel Viktoriaquelle</h3><p class="haupt">Das Kurhotel Viktoriaquelle im Bayerischen Wald liegt im Ferienort Fürstenzell.</p><p class="maplink"><a href="#">Details</a></p></div>','white','F',"Kurhotel Viktoriaquelle")
      map.addOverlay(marker6);	  				 

				 
//------------------------------------------------------------------ Prestige ----------------------------------------------------------------------------				  
//Taubinger Hof  
	  var point10 = new GLatLng(48.5879, 13.6696);
		  var marker10 = createMarker(point10,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/taubinger-hof.jpg"/><h3>Taubinger Hof</h3><p class="haupt">Der Taubinger Hof im Bayerischen Wald liegt im Ferienort Untergriesbach.</p><p class="maplink"><a href="#">Details</a></p></div>','white','a',"<span class='map-prestige'>Taubinger-Hof</span>")
      map.addOverlay(marker10);	

//Hauserhof  
	  var point11 = new GLatLng(48.6997, 13.5912);
      var marker11 = createMarker(point11,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/hauser-hof.jpg"/><h3>Hauser Hof</h3><p class="haupt">Der Hauser Hof im Bayerischen Wald liegt im Ferienort Waldkirchen.</p><p class="maplink"><a href="#">Details</a></p></div>','white','b',"Hauser-Hof")
      map.addOverlay(marker11);
	  
//Strickerhof
	  var point12 = new GLatLng(48.7811, 13.7194 );
      var marker12 = createMarker(point12,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/strickerhof.jpg"/><h3>Stricker Hof</h3><p class="haupt">Der Stricker Hof im Bayerischen Wald liegt im Ferienort Altreichenau.</p><p class="maplink"><a href="#">Details</a></p></div>','white','c',"Stricker-Hof")
      map.addOverlay(marker12);		  
	  
//Landgut Tiefleiten
	  var point13 = new GLatLng(48.6877, 13.7820);
      var marker13 = createMarker(point13,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/landgut-tiefleiten.jpg"/><h3>Landgut Tiefleiten</h3><p class="haupt">Das Landgut Tiefleiten im Bayerischen Wald liegt im Ferienort Breitenberg.</p><p class="maplink"><a href="#">Details</a></p></div>','white','d',"Landgut Tiefleiten")
      map.addOverlay(marker13);			  
	  
//Pension Waldeck
	  var point14 = new GLatLng(48.8944, 13.6426);
      var marker14 = createMarker(point14,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/waldeck.jpg"/><h3>Pension Waldeck</h3><p class="haupt">Die Pension Waldeck im Bayerischen Wald liegt im Ferienort Phillipsreut.</p><p class="maplink"><a href="#">Details</a></p></div>','white','e',"Pension Waldeck")
      map.addOverlay(marker14);	  
	  
//Gammerhof
	  var point15 = new GLatLng(48.7169, 13.5619);
      var marker15 = createMarker(point15,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/gammerhof.jpg"/><h3>Gammerhof</h3><p class="haupt">Der Gammerhof im Bayerischen Wald liegt im Ferienort Waldkirchen.</p><p class="maplink"><a href="#">Details</a></p></div>','white','f',"Gammerhof")
      map.addOverlay(marker15);		  
	  
//Rathberger Hof
	  var point16 = new GLatLng(48.6474, 13.7432);
      var marker16 = createMarker(point16,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/rathberger-hof.jpg"/><h3>Rathberger Hof</h3><p class="haupt">Der Rathberger Hof im Bayerischen Wald liegt im Ferienort Wegscheid/Kleinrathberg.</p><p class="maplink"><a href="#">Details</a></p></div>','white','g',"Rathberger Hof")
      map.addOverlay(marker16);	
	  
//Brandlhof
	  var point17 = new GLatLng(48.7183, 13.5361);
      var marker17 = createMarker(point17,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/brandlhof.jpg"/><h3>Brandlhof</h3><p class="haupt">Der Bandlhof im Bayerischen Wald liegt im Ferienort Röhrnbach/Aussenbrünst.</p><p class="maplink"><a href="#">Details</a></p></div>','white','h',"Brandlhof")
      map.addOverlay(marker17);		  
	  
//Moorhof
	  var point18 = new GLatLng(48.9070, 13.4535);
      var marker18 = createMarker(point18,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/moorhof.jpg"/><h3>Moorhof</h3><p class="haupt">Der Moorhof im Bayerischen Wald liegt im Ferienort Altschönau.</p><p class="maplink"><a href="#">Details</a></p></div>','white','i',"Moorhof")
      map.addOverlay(marker18);	
	  
//Seehof
	  var point19 = new GLatLng(48.6610, 13.6377);
      var marker19 = createMarker(point19,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/seehof.jpg"/><h3>Seehof</h3><p class="haupt">Der Seehof im Bayerischen Wald liegt im Ferienort Hauzenberg.</p><p class="maplink"><a href="#">Details</a></p></div>','white','j',"Hotel Seehof")
      map.addOverlay(marker19);	
	  
//Pension Kolbeck
	  var point20 = new GLatLng(49.1965, 12.8827);
      var marker20 = createMarker(point20,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/kolbeck.jpg"/><h3>Kneipp-Pension Kolbeck</h3><p class="haupt">Die Kneipp-Pension Kolbeck im Bayerischen Wald liegt im Ferienort Grafenwiesen.</p><p class="maplink"><a href="#">Details</a></p></div>','white','k',"Kneipp-Pension Kolbeck")
      map.addOverlay(marker20);	
	  
//Landhotel Neuhof
	  var point21 = new GLatLng(48.7688, 13.2774);
      var marker21 = createMarker(point21,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/neuhof.jpg"/><h3>Landhotel Neuhof</h3><p class="haupt">Das Landhotel Neuhof im Bayerischen Wald liegt im Ferienort Zenting.</p><p class="maplink"><a href="#">Details</a></p></div>','white','l',"Landhotel Neuhof")
      map.addOverlay(marker21);	
	  
//Waidler Hof
	  var point22 = new GLatLng(49.1993, 13.0464);
      var marker22 = createMarker(point22,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Prestige/waidler-hof.jpg"/><h3>Waidler Hof</h3><p class="haupt">Der Waidler Hof im Bayerischen Wald liegt im Ferienort Lam.</p><p class="maplink"><a href="#">Details</a></p></div>','white','m',"Waidler-Hof")
      map.addOverlay(marker22);		  

//------------------------------------------------------------------ Classic ----------------------------------------------------------------------------				


//Beim Fürstn
	  var point30 = new GLatLng(48.6793, 13.6741);
      var marker30 = createMarker(point30,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Classic/ .jpg"/><h3>Beim Fürstn</h3><p class="haupt">Das Ferienhaus Beim Fürstn im Bayerischen Wald liegt im Ferienort Hauzenberg.</p><p class="maplink"><a href="#">Details</a></p></div>','white','1',"<span class='map-classic'>Beim Fürstn</span>")
      map.addOverlay(marker30);		  

//Kräuterhof
	  var point31 = new GLatLng(48.8101, 13.4584);
      var marker31 = createMarker(point31,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Classic/ .jpg"/><h3>Der Kräuterhof</h3><p class="haupt">Der Kräuterhof im Bayerischen Wald liegt im Ferienort Ringelai.</p><p class="maplink"><a href="#">Details</a></p></div>','white','2',"Kräuter-Hof")
      map.addOverlay(marker31);
	  
//Ferienhaus Mitterdorf
	  var point32 = new GLatLng(48.8936, 13.6495);
      var marker32 = createMarker(point32,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Classic/ .jpg"/><h3>Ferienhaus Mitterdorf</h3><p class="haupt">Das Ferienhaus Mitterdorf im Bayerischen Wald liegt im Ferienort Mitterfirmiansreut.</p><p class="maplink"><a href="#">Details</a></p></div>','white','3',"Ferienhaus Mitterdorf")
      map.addOverlay(marker32);	  

//Pension Langrehr
	  var point33 = new GLatLng(52.8520, 9.4486);
      var marker33 = createMarker(point33,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Classic/ .jpg"/><h3>Pension Langrehr</h3><p class="haupt">Die Pension Langrehr in Niedersachsen liegt im Ferienort Walsrode / Südkampen.</p><p class="maplink"><a href="#">Details</a></p></div>','white','4',"Pension Langrehr")
      map.addOverlay(marker33);
	  
//Peterhof
	  var point34 = new GLatLng(48.6988, 13.7352);
      var marker34 = createMarker(point34,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Classic/ .jpg"/><h3>Der Peterhof</h3><p class="haupt">Peterhof im Bayerischen Wald liegt im Ferienort Breitenberg.</p><p class="maplink"><a href="#">Details</a></p></div>','white','5',"Der Peterhof")
      map.addOverlay(marker34);

//Zum Matthiasl
	  var point35 = new GLatLng(48.8564, 13.7378 );
      var marker35 = createMarker(point35,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Classic/ .jpg"/><h3>Zum Matthiasl</h3><p class="haupt">Das Landhotel zum Matthiasl im Bayerischen Wald liegt im Ferienort Bischofsreut.</p><p class="maplink"><a href="#">Details</a></p></div>','white','6',"Zum Matthiasl")
      map.addOverlay(marker35);	  

//Kirchenwirt
	  var point36 = new GLatLng(49.1971, 13.0498);
      var marker36 = createMarker(point36,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Classic/ .jpg"/><h3>Zum Kirchenwirt</h3><p class="haupt">Das Gasthaus zum Kirchenwirt im Bayerischen Wald liegt im Ferienort Lam.</p><p class="maplink"><a href="#">Details</a></p></div>','white','7',"Zum Kirchenwirt")
      map.addOverlay(marker36);
	  
//Altes Schützenhaus
	  var point37 = new GLatLng(51.0271, 14.6788);
      var marker37 = createMarker(point37,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Classic/ .jpg"/><h3>Altes Schützenhaus</h3><p class="haupt">Der Gasthof Altes Schützenhaus in Sachsen liegt im Ferienort Obercunnersdorf.</p><p class="maplink"><a href="#">Details</a></p></div>','white','8',"Altes Schützenhaus")
      map.addOverlay(marker37);
	  
//Fledermausschloss
	  var point38 = new GLatLng(51.3315, 14.3888 );
      var marker38 = createMarker(point38,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Classic/ .jpg"/><h3>Das Fledermaus Schloss</h3><p class="haupt">Das Fledermausschloss in Sachsen liegt im Ferienort Lohsa / OT Weißig.</p><p class="maplink"><a href="#">Details</a></p></div>','white','9',"Das Fledermaus Schloss")
      map.addOverlay(marker38);	  

//Josef Seitz
	  var point39 = new GLatLng(49.1201, 13.2013);
      var marker39 = createMarker(point39,'<div id="NP"><img src="http://www.land-vital.org/Bilder/Maps/Bilder-Gastgeber/Classic/ .jpg"/><h3>Gästehaus Seitz</h3><p class="haupt">Das Gästehaus Seitz im Bayerischen Wald liegt im Ferienort Bayerisch Eisenstein.</p><p class="maplink"><a href="#">Details</a></p></div>','white','10',"Gästehaus Seitz")
      map.addOverlay(marker39);



      // put the assembled sidebar_html contents into the sidebar div
      document.getElementById("sidebar").innerHTML = sidebar_html;
      
    }

    else {
      alert("Die Google Map Api funktioniert in Ihrem Browser nicht");
    }



    //]]>
