//<![CDATA[

var to_htmls = [];
var i=0;
var html = [];
var intro_html = [];
var point = null;
var marker = null;
var map = null;

function mapsLoad() {
	if (GBrowserIsCompatible()) {

		map = new GMap2(document.getElementById("map"));

		map.setCenter(new GLatLng(49.999093,9.240241),17);//,G_HYBRID_MAP);
		map.setUIToDefault();

		point = new GLatLng(49.998327,9.24037);
		marker = new GMarker(point);
		map.addOverlay(marker);

		html = '<img src=\"img/stuff/vaeth_logo.gif\" valign=\"center\"><br/>';
		
		intro_html[i] = html + '<a href=\"javascript:showMarker();\">Route hierher berechnen<br/></a>';

		to_htmls[i] = html + '<br/><b>Geben Sie bitte Ihre Adresse ein:</b><br/>(&Ouml;ffnet neues Fenster mit Google Maps)<form action="http://maps.google.com/maps" method="get" target="_blank">' +
		'<input type="text" SIZE=60 MAXLENGTH=60 name="saddr" id="saddr" value="" /><br>' +
		'<INPUT value="Route berechnen!" TYPE="SUBMIT" class="submit_yellow">' +
		'<input type="hidden" name="daddr" value="' +
		'V&Auml;TH Automobiltechnik GmbH H&ouml;sbach' +
		'"/>';
		
		marker.openInfoWindowHtml(intro_html[i]);
		


		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(intro_html[i]);
		});
	}
}

function showMarker(){
	marker.openInfoWindowHtml(to_htmls[i]);
}


//]]>