
			var googlemap = null;
    		var geocoder = null;
    		var googlemap_marker = new Array();
			var googlemap_activate_nr = 0;
			
			if (GBrowserIsCompatible()) {
				var icon = new GIcon();
				icon.image = "/html/images/main/ico_marker_map.png";
				icon.iconSize = new GSize(30, 30);
				icon.iconAnchor = new GPoint(15, 15);
				icon.infoWindowAnchor = new GPoint(15, 15);
			}
			
			var google_data = [
									{
										"address" : "51368 Leverkusen,  Kaiser-Wilhelm-Allee 1",
										"zoom"	:	9,
										"window_html" : "<strong>Bayer Vital GmbH</strong><br />CHEMPARK, Gebäude K56<br />Kaiser-Wilhelm-Allee<br />51368 Leverkusen"
									},
									{
										"address" : "51149 Köln, Welserstraße 5-7",
										"zoom"	:	8,
										"window_html" : "<strong>Drugofa GmbH&nbsp;&nbsp;&nbsp;&nbsp;</strong><br />Welserstr. 5-7<br />51149 Köln"
									}
									
							];
			
			function load_google() {
		      if (GBrowserIsCompatible()) {
		        googlemap = new GMap2(document.getElementById("googlemap"));
		        //googlemap.setCenter(new GLatLng(1650, -214), 13);
				
				googlemap.addControl(new GLargeMapControl());
				
				var mapTypeControl = new GMapTypeControl();
				var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10,10));
				googlemap.addControl(mapTypeControl, topRight);

        		geocoder = new GClientGeocoder();
        		
				if (google_data[googlemap_activate_nr]) {
					var address = google_data[googlemap_activate_nr].address;
					var zoom = google_data[googlemap_activate_nr].zoom;
					geocoder.getLatLng(
						  address,
							function(point) {
								if (point) {
									googlemap.setCenter(point, zoom);
								}
							}
						);

				}
				
				for (i=0;i<google_data.length;i++) {
					showAddress(google_data[i], i);
				}
		      }
		    }
			
			function showAddress(data, nr) {
				var address = data.address;
				var msg = data.window_html;
				var zoom = data.zoom;
				var active = data.active;
				
      			if (geocoder) {
        			geocoder.getLatLng(
          			address,
          			function(point) {
            				if (!point) {
              					alert(address + " not found");
            				} else {
								
              					googlemap_marker[nr] = new GMarker(point,icon);
              					googlemap.addOverlay(googlemap_marker[nr]);
              					
								if (googlemap_activate_nr == nr) {
									googlemap_marker[nr].openInfoWindowHtml(msg);
								}	
              					
              					googlemap_marker[nr].html = msg;
								GEvent.addListener(googlemap_marker[nr], 'click', function() {
									googlemap_marker[nr].openInfoWindowHtml(googlemap_marker[nr].html);
								});
            				}
          			}
        			);
      			}
    		}
			
			
			registerOnload (load_google);
			
			