// JS Scripte

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function setHeight(){
	
	var gesamt=document.getElementById('container').offsetHeight;
	
	var menu=document.getElementById('nav_main_haupt').offsetHeight;
	
	var spalte=gesamt-menu-93-108;		
	document.getElementById('suche').style.height=spalte+'px';
	
}
function siteShow(){
	document.getElementById('container').style.display='block';
}

function goto(url){
	document.location.href=url;	
}

//<![CDATA[
function load() {
  	if (GBrowserIsCompatible()) {
		
		function createMarker(point,html) {
			
			  var marker = new GMarker(point);
			
			// Zeige Info Fenster bei Klick
			  GEvent.addListener(marker, 'click', function() {
														   
				marker.openInfoWindowHtml(html);
			  });
			
			  return marker;
		}
		
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GLargeMapControl());
		//map.addControl(new GMapTypeControl());
		
		map.setCenter(new GLatLng(49.6182857, 9.6534835), 17);
	  
		var punkt = new GLatLng(49.6182857, 9.6534835);
		map.setCenter(punkt, 15);
		
		var pos = new GLatLng(49.6182857, 9.6534835)
		map.setCenter(punkt, 15);
	
		/* Setzt eigenen Marker auf die Karte */
		var oicon = new GIcon();
		oicon.image = "http://www.hotel-stmichael.com/map/stmichael.png";
		oicon.iconSize = new GSize(100, 100);
		oicon.iconAnchor = new GPoint(47, 95);
		oicon.infoWindowAnchor = new GPoint(5, 1)
		
		var pos = new GLatLng(49.6182857, 9.6534835)
		map.addOverlay(new GMarker(pos, oicon));  
  	}
}
//]]>