function initMaps(mapXmlUrl){
	var maps = [];
	var latLng = new google.maps.LatLng(51.05665, 3.72);
	var smallMap, largeMap;
	var mapOptions = {
		zoom: 11,
		center: latLng,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	}
	if($('#map').length != 0){
		$("#map").css({
		  height: 300,
		  width: 150
		});
		maps.push(new google.maps.Map(document.getElementById('map'), mapOptions));
	}
	if($('#largeMap').length != 0){
		$("#largeMap").css({
		  height: 600,
		  width: 800
		});
		mapOptions.zoom = 13;
		maps.push(new google.maps.Map(document.getElementById('largeMap'), mapOptions));
	}
	$.get(mapXmlUrl, function(xml){
		$(xml).find("place").each(function(){
			var name = $(this).attr('name');
			var street = $(this).attr('street');
			var city = $(this).attr('city');
			var zip = $(this).attr('zip');
			var phone = $(this).attr('phone');
			var site = $(this).attr('site');
			var opening_hours = $(this).attr('opening_hours');
			var expo = $(this).attr('expo');
			var expo_matinee = $(this).attr('expo_matinee');
			var geocode = {};
			if($(this).attr('geocode')){
				geocode = eval('(' + $(this).attr('geocode') + ')');
			}
			if(city || street){
				// create a new LatLng point for the marker
				if(geocode.results && geocode.results[0]){
					var point = geocode.results[0].geometry.location;
					point = new google.maps.LatLng(point.lat, point.lng);

					// create the tooltip and its text
					var infoWindow = new google.maps.InfoWindow();
					var html='<b>' + name + '</b><br />' + street + '<br />' + zip + ' ' + city + '<br/>';
					html += phone+'<br/>';
					if(site){
						html += '<a href="' + site + '">' + site + '</a>';
					}

					// add a listener to open the tooltip when a user clicks on one of the markers
					$.each(maps, function(key, map){
                        // add the marker itself
                        var marker = new google.maps.Marker({
                          position: point,
                          map: map
                        });
						google.maps.event.addListener(marker, 'click', function() {
						  infoWindow.setContent(html);
						  infoWindow.open(map, marker);
						});
					});
						
				} else {
					console.log(name);
					// console.log(status);
					// console.log(results);
				}

			}
		});
	
	});
}
