var map;

function GLoad () {
	if (GBrowserIsCompatible()) {
		curLatLng = oData[curShop][0];
		curCenter = oData[curShop][1];
		curZoom = oData[curShop][2];
		curText = oData[curShop][3];
		
		map = new GMap2(document.getElementById("map"));
		map.addControl(new GLargeMapControl());
		map.setCenter(curCenter, curZoom);
		
		for (var p in oData) {
			var latLng = oData[p][0];
			var text = oData[p][3];
			var marker = new GMarker(latLng);
			marker._name = p;
			map.addOverlay(marker);
			GEvent.addListener(map, "click", function (marker) {
				marker.openInfoWindowHtml(oData[marker._name][3]);
			});
			if (p == curShop) {
				marker.openInfoWindowHtml(text);
			}
		}
		
	}
}

function printMap () {
	print();
}