
// Kalendar
function OpenKalender( ziel, datum, operator ) {
	Fenster = window.open( ziel + '&datum=' + datum.value + '&operator=' + operator,'Kalenderblatt', 'width=175,height=180,top=150,left=150,scrollbars=no,resizablel' );
}

// Google Maps
function load() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.addControl(new GOverviewMapControl());
        map.setCenter(new GLatLng(48.762600156700884, 8.241114020347595), 20);
		// Creates a marker at the given point with the given number label
		function createMarker(point, number) {
		var marker = new GMarker(point);
		GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml("<b>Hotel am Markt</b><br>Marktplatz 4<br>76530 Baden-Baden");
		});
		return marker;
	}
	// Add 10 markers to the map at random locations
	var point = new GLatLng(48.762600156700884, 8.241114020347595);
  	map.addOverlay(createMarker(point, 1));
	}
}

function openPicture(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+'>'); 	
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}