
googleMap = true;

var map;
var baseIcon;
var gmarkers = [];
var htmls = [];
function ShowMap(){
	var bounds = new GLatLngBounds();

	map = new GMap2(document.getElementById("map"));
	map.setCenter(new GLatLng(46.214764,6.139898), 13);
	map.addControl(new GLargeMapControl());
	map.addControl(new GMapTypeControl());

	baseIcon = new GIcon();
	baseIcon.image = "../Images/Markers/marker.png";
	baseIcon.shadow = "../Images/Markers/shadow50.png";
	baseIcon.iconSize = new GSize(20, 34);
	baseIcon.shadowSize = new GSize(37, 34);
	baseIcon.iconAnchor = new GPoint(9, 34);
	baseIcon.infoWindowAnchor = new GPoint(9, 2);
	baseIcon.infoShadowAnchor = new GPoint(18, 25);

	var icon = new GIcon(baseIcon);
	var point = new GLatLng(46.201072,6.148438);
	bounds.extend(point);
	var marker = createMarker(point, "Cathedral de St Pierre", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Cathedral de St Pierre</b><br/>Built between 1160 and 1289, St Peter's Cathedral has a surprising<br>combination of Romanesque, Gothic, and neo-classical styles.<br>Under the cathedral is one of Europe's largest underground<br>archaeological sites with some good 14th-century mosaics, while<br>the top of the north tower offers fine views over the old town<br>and lake.</p>", 1);
	gmarkers[0] = marker;
	htmls[0] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Cathedral de St Pierre</b><br/>Built between 1160 and 1289, St Peter's Cathedral has a surprising<br>combination of Romanesque, Gothic, and neo-classical styles.<br>Under the cathedral is one of Europe's largest underground<br>archaeological sites with some good 14th-century mosaics, while<br>the top of the north tower offers fine views over the old town<br>and lake.</p>";
	map.addOverlay(marker);

	var icon = new GIcon(baseIcon);
	var point = new GLatLng(46.204198,6.150906);
	bounds.extend(point);
	var marker = createMarker(point, "Jardin Anglais and Horloge Fleurie", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Jardin Anglais and Horloge Fleurie</b><br>The English Garden, dating from 1854, is home to the Monument National,<br>a statue of two young women - the 'Republic of Geneva' and 'Helvetia',<br>symbolising Geneva's attachment to the Swiss Confederation. Within the<br>park there is an elegant bronze fountain and L'Horloge Fleurie (Flower<br>Clock), installed in 1955 to honour Geneva's watch-making industry.</p>", 2);
	gmarkers[1] = marker;
	htmls[1] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Jardin Anglais and Horloge Fleurie</b><br>The English Garden, dating from 1854, is home to the Monument National,<br>a statue of two young women - the 'Republic of Geneva' and 'Helvetia',<br>symbolising Geneva's attachment to the Swiss Confederation. Within the<br>park there is an elegant bronze fountain and L'Horloge Fleurie (Flower<br>Clock), installed in 1955 to honour Geneva's watch-making industry.</p>";
	map.addOverlay(marker);

	var icon = new GIcon(baseIcon);
	var point = new GLatLng(46.207324,6.15611);
	bounds.extend(point);
	var marker = createMarker(point, "Jet d'Eau", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Jet d'Eau</b><br>The famed Water Fountain dominates the Geneva harbour and all modern depictions<br>of the city. The Jet was originally the safety valve for the city's water supply and is<br>Europe's tallest fountain. This water showpiece is illuminated at night, and during<br>the day, when the sun shines, a rainbow hovers behind the powerful jet of water,<br>which spurts straight up into the sky at a speed of 200kph (125mph).</p>", 3);
	gmarkers[2] = marker;
	htmls[2] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Jet d'Eau</b><br>The famed Water Fountain dominates the Geneva harbour and all modern depictions<br>of the city. The Jet was originally the safety valve for the city's water supply and is<br>Europe's tallest fountain. This water showpiece is illuminated at night, and during<br>the day, when the sun shines, a rainbow hovers behind the powerful jet of water,<br>which spurts straight up into the sky at a speed of 200kph (125mph).</p>";
	map.addOverlay(marker);

	var icon = new GIcon(baseIcon);
	var point = new GLatLng(46.200185,6.145805);
	bounds.extend(point);
	var marker = createMarker(point, "Mur des Reformateurs", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Mur des Reformateurs</b><br>Construction of the 60ft (18m) Reformation Wall began in 1909, on the<br>400th anniversary of the birth of John Calvin. The monument is dedicated<br>to the four figures central to the Reformation movement - John Calvin<br>(1509-64), Theodore de Beze (1513-1605), John Knox (1513-72) and<br>Guillaume Farel (1549-65).</p>", 4);
	gmarkers[3] = marker;
	htmls[3] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Mur des Reformateurs</b><br>Construction of the 60ft (18m) Reformation Wall began in 1909, on the<br>400th anniversary of the birth of John Calvin. The monument is dedicated<br>to the four figures central to the Reformation movement - John Calvin<br>(1509-64), Theodore de Beze (1513-1605), John Knox (1513-72) and<br>Guillaume Farel (1549-65).</p>";
	map.addOverlay(marker);

	var icon = new GIcon(baseIcon);
	var point = new GLatLng(46.225171,6.146336);
	bounds.extend(point);
	var marker = createMarker(point, "Jardin Botanique", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Jardin Botanique</b><br>Geneva's world-renowned Botanical Gardens were created by the botanist A P<br>de Candolle, in the Parc des Bastions in 1817. Relocated to their present site<br>in 1901, the 28-hectare (69-acre) gardens have greenhouses with tropical<br>plants from six continents, a pond brimming with aquatic plants, thousands<br>of flowers, a garden of the senses, an aviary and a park of rare animals.</p>", 5);
	gmarkers[4] = marker;
	htmls[4] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Jardin Botanique</b><br>Geneva's world-renowned Botanical Gardens were created by the botanist A P<br>de Candolle, in the Parc des Bastions in 1817. Relocated to their present site<br>in 1901, the 28-hectare (69-acre) gardens have greenhouses with tropical<br>plants from six continents, a pond brimming with aquatic plants, thousands<br>of flowers, a garden of the senses, an aviary and a park of rare animals.</p>";
	map.addOverlay(marker);

	var icon = new GIcon(baseIcon);
	var point = new GLatLng(46.226611,6.140435);
	bounds.extend(point);
	var marker = createMarker(point, "Palais des Nations", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Palais des Nations</b><br>This vast building, designed in the form of a double horseshoe and set<br>in a park with century-old trees, is the largest United Nations centre after<br>New York. It was built between 1929 and 1937 to host the League of<br>Nations, the precursor to the UN. Visits are extremely popular and allow<br>entrance to certain conference rooms and an opportunity to sign the Livre<br>d'Or, the golden book of peace.</p>", 6);
	gmarkers[5] = marker;
	htmls[5] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Palais des Nations</b><br>This vast building, designed in the form of a double horseshoe and set<br>in a park with century-old trees, is the largest United Nations centre after<br>New York. It was built between 1929 and 1937 to host the League of<br>Nations, the precursor to the UN. Visits are extremely popular and allow<br>entrance to certain conference rooms and an opportunity to sign the Livre<br>d'Or, the golden book of peace.</p>";
	map.addOverlay(marker);

	var icon = new GIcon(baseIcon);
	var point = new GLatLng(46.198651,6.137474);
	bounds.extend(point);
	var marker = createMarker(point, "MAMCO (Museum of Modern and Contemporary Art)", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>MAMCO (Museum of Modern and Contemporary Art)</b><br>Situated in a former factory, this museum extends over four floors that are best<br>visited from top to bottom. One of the permanent displays is L'Appartement,<br>a faithful reproduction of a Parisian collector's flat, for which he has loaned his<br>own furniture, paintings and sculptures.</p>", 7);
	gmarkers[6] = marker;
	htmls[6] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>MAMCO (Museum of Modern and Contemporary Art)</b><br>Situated in a former factory, this museum extends over four floors that are best<br>visited from top to bottom. One of the permanent displays is L'Appartement,<br>a faithful reproduction of a Parisian collector's flat, for which he has loaned his<br>own furniture, paintings and sculptures.</p>";
	map.addOverlay(marker);

	var icon = new GIcon(baseIcon);
	var point = new GLatLng(46.226878,6.137516);
	bounds.extend(point);
	var marker = createMarker(point, "Musee International de la Croix-Rouge et du Croissant-Rouge", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Musee International de la Croix-Rouge et du Croissant-Rouge</b><br>With a powerful combination of audiovisuals, sculpture, computers and documentation,<br>this extraordinary museum tells the story of the founding of the Red Cross by Henry<br>Dunant, as well as its present humanitarian actions. It is Geneva's most impressive and<br>original museum. The Cafe Dinant also is a multimedia area.</p>", 8);
	gmarkers[7] = marker;
	htmls[7] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Musee International de la Croix-Rouge et du Croissant-Rouge</b><br>With a powerful combination of audiovisuals, sculpture, computers and documentation,<br>this extraordinary museum tells the story of the founding of the Red Cross by Henry<br>Dunant, as well as its present humanitarian actions. It is Geneva's most impressive and<br>original museum. The Cafe Dinant also is a multimedia area.</p>";
	map.addOverlay(marker);

	var icon = new GIcon(baseIcon);
	var point = new GLatLng(46.19929,6.151593);
	bounds.extend(point);
	var marker = createMarker(point, "Musee d'Art et d'Histoire", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Musee d'Art et d'Histoire</b><br>The Museum of Art and History presents a multidiscipline approach to history<br>(from prehistoric times to the present) through important collections of fine<br>art, archaeology and applied art, including arms and armour, costumes and<br>musical instruments. The most celebrated work is Konrad Witz's early<br>15th-century painting, La Peche Miraculeuse.</p>", 9);
	gmarkers[8] = marker;
	htmls[8] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Musee d'Art et d'Histoire</b><br>The Museum of Art and History presents a multidiscipline approach to history<br>(from prehistoric times to the present) through important collections of fine<br>art, archaeology and applied art, including arms and armour, costumes and<br>musical instruments. The most celebrated work is Konrad Witz's early<br>15th-century painting, La Peche Miraculeuse.</p>";
	map.addOverlay(marker);

	var icon = new GIcon(baseIcon);
	var point = new GLatLng(46.198094,6.158105);
	bounds.extend(point);
	var marker = createMarker(point, "Musee de l'Horlogerie et de l'Emaillerie", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Musee de l'Horlogerie et de l'Emaillerie</b><br>Set in an attractive Palladian townhouse, this museum traces the development<br>of Genevois clock making, which began in the 17th century and reached its<br>height in 1785. Of particular interest is the watch that was owned and made<br>by Jean-Jacques Rousseau's grandfather and an astronomic automated clock<br>made in 1711.</p>", 10);
	gmarkers[9] = marker;
	htmls[9] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Musee de l'Horlogerie et de l'Emaillerie</b><br>Set in an attractive Palladian townhouse, this museum traces the development<br>of Genevois clock making, which began in the 17th century and reached its<br>height in 1785. Of particular interest is the watch that was owned and made<br>by Jean-Jacques Rousseau's grandfather and an astronomic automated clock<br>made in 1711.</p>";
	map.addOverlay(marker);
}

function createMarker(point, title, text, index){
	var icon = new GIcon(baseIcon);
	icon.image = "../images/icons/" + index + ".png";
	var marker = new GMarker(point, icon);
	marker.title = "" + title + "";
	GEvent.addListener(marker, "click", function() {
	  marker.openInfoWindowHtml("" + text + "");
	});
	return marker;
}

function myclick(i) {
	gmarkers[i].openInfoWindowHtml(htmls[i]);
}
