
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(48.856583,2.351074), 6);
	map.addControl(new GLargeMapControl());

	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(48.85832,2.294383);
	bounds.extend(point);
	var marker = createMarker(point, "Eiffel Tower", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Eiffel Tower</b><br>The Eiffel Tower (French: Tour Eiffel, is <br />an iron tower built on the Champ de Mars beside<br /> the River Seine in Paris. The tower has become<br /> a global icon of France.</p>", 1);
	gmarkers[0] = marker;
	htmls[0] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Eiffel Tower</b><br>The Eiffel Tower (French: Tour Eiffel, is <br />an iron tower built on the Champ de Mars beside<br /> the River Seine in Paris. The tower has become<br /> a global icon of France.</p>";
	map.addOverlay(marker);
	
	var icon = new GIcon(baseIcon);
	var point = new GLatLng(48.860741,2.336483);
	bounds.extend(point);
	var marker = createMarker(point, "Louvre", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Musee du Louvre</b><br>The Louvre Museum (French: Musee du Louvre)<br>The Louvre Museum (French: Musee du Louvre)<br /> in Paris, France, is the most visited and one of <br/>the oldest, largest, and most famous art<br /> galleries and museums in the world.</p>", 2);
	gmarkers[1] = marker;
	htmls[1] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Louvre</b><br>The Louvre Museum (French: Musee du Louvre)<br /> in Paris, France, is the most visited and one of<br/> the oldest, largest, and most famous art<br /> galleries and museums in the world.</p>";
	map.addOverlay(marker);
	
	var icon = new GIcon(baseIcon);
	var point = new GLatLng(48.873931,2.295198);
	bounds.extend(point);
	var marker = createMarker(point, "Arc de Triomphe", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Arc de Triomphe</b><br><br>The Arc de Triomphe is a monument in Paris that stands in the centre of the Place Charles de<br /> Gaulle. The arch honours those who fought<br /> for France, particularly during the Napoleonic <br />Wars, and today also includes the tomb of<br /> the unknown soldier.</p>", 3);
	gmarkers[2] = marker;
	htmls[2] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Arc de Triomphe</b><br>The Arc de Triomphe is a monument in Paris <br />that stands in the centre of the Place Charles de<br /> Gaulle. The arch honours those who fought<br /> for France, particularly during the Napoleonic <br />Wars, and today also includes the tomb of<br /> the unknown soldier.</p>";
	map.addOverlay(marker);
	
	var icon = new GIcon(baseIcon);
	var point = new GLatLng(49.253353,4.032809);
	bounds.extend(point);
	var marker = createMarker(point, "Notre Dame Cathedral", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Notre Dame Cathedral</b><br/>Notre Dame de Paris, often known simply as<br /> Notre Dame in English, is a Gothic cathedral on the eastern<br /> half of the Ile de la Cite in Paris, France, with its main entrance<br/> to the west. It is still used as a Roman Catholic cathedral and is<br/>the seat of the Archbishop of Paris. Notre Dame de Paris is widely<br/>considered one of the finest examples of French Gothic architecture.</p>", 4);
	gmarkers[3] = marker;
	htmls[3] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Notre Dame Cathedral</b><br/>Notre Dame de Paris, often known simply as<br /> Notre Dame in English, is a Gothic cathedral on the eastern<br /> half of the Ile de la Cite in Paris, France, with its main entrance<br/> to the west. It is still used as a Roman Catholic cathedral and is<br/>the seat of the Archbishop of Paris. Notre Dame de Paris is widely<br/>considered one of the finest examples of French Gothic architecture.</p>";
	map.addOverlay(marker);
	
	var icon = new GIcon(baseIcon);
	var point = new GLatLng(48.869803,2.30759);
	bounds.extend(point);
	var marker = createMarker(point, "Avenue Champs-Elysees", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Avenue Champs-Elysees</b>The Champs-Elysees is the most prestigious and<br /> broadest avenue in Paris. With its cinemas, cafes, and<br /> luxury specialty shops, the Champs-Elysees is one<br /> of the most famous streets in the world</p>", 5);
	gmarkers[4] = marker;
	htmls[4] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Champs-Elysees </b><br/>The Champs-Elysees is the most prestigious and<br /> broadest avenue in Paris. With its cinemas, cafes, and<br /> luxury specialty shops, the Champs-Elysees is one<br /> of the most famous streets in the world</p>";
	map.addOverlay(marker);
	
	var icon = new GIcon(baseIcon);
	var point = new GLatLng(48.849298,2.347383);
	bounds.extend(point);
	var marker = createMarker(point, "Latin Quarter", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Latin Quarter</b><br />The Latin Quarter is an area in the 5th arrondissement<br /> of Paris, France, around the Sorbonne University.<br /> The name derives from the Latin language, which was<br /> widely spoken in the Middle Ages in and around<br /> the University. It currently still houses various higher<br /> education establishments, such as the<br /> Ecole Normale Superieure, the Ecole des Mines and<br /> the Jussieu university campus.</p>", 6);
	gmarkers[5] = marker;
	htmls[5] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Latin Quarter</b><br />The Latin Quarter is an area in the 5th arrondissement<br /> of Paris, France, around the Sorbonne University.<br /> The name derives from the Latin language, which was<br /> widely spoken in the Middle Ages in and around<br /> the University. It currently still houses various higher<br /> education establishments, such as the<br /> Ecole Normale Superieure, the Ecole des Mines and<br /> the Jussieu university campus.</p>";
	map.addOverlay(marker);
	
	var icon = new GIcon(baseIcon);
	var point = new GLatLng(48.860353,2.35086);
	bounds.extend(point);
	var marker = createMarker(point, "Centre Pompidou", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Centre Pompidou</b> <br />Pompidou Centre has evolved into one of Paris' major<br /> cultural venues. Housing an important modern art <br />collection, reference library, exhibition spaces,<br /> musical research centre and industrial design base,<br /> it now welcomes nearly seven million visitors a year.</p>",7);
	gmarkers[6] = marker;
	htmls[6] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Centre Pompidou</b><br />Pompidou Centre has evolved into one of Paris' major<br /> cultural venues. Housing an important modern art <br />collection, reference library, exhibition spaces,<br /> musical research centre and industrial design base,<br /> it now welcomes nearly seven million visitors a year.</p>";
	map.addOverlay(marker);
	
	var icon = new GIcon(baseIcon);
	var point = new GLatLng(48.856019,2.345495);
	bounds.extend(point);
	var marker = createMarker(point, "Conciergerie", "<p style='font-size: smaller; padding: 0; margin: 0;'><br /><b>Conciergerie</b><br />boulevard du Palais<br/>La Sainte-Chapelle (French for The Holy Chapel)<br /> is a Gothic chapel on the Ile de la Cite in the<br /> heart of Paris, France. </p>", 8);
	gmarkers[7] = marker;
	htmls[7] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Conciergerie</b><br />La Sainte-Chapelle (French for The Holy Chapel)<br /> is a Gothic chapel on the Ile de la Cite in the<br /> heart of Paris, France. </p>";
	map.addOverlay(marker);
	

	var icon = new GIcon(baseIcon);
	var point = new GLatLng(48.855934,2.31612);
	bounds.extend(point);
	var marker = createMarker(point, "Rodin Museum", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Rodin Museum</b><br />The Musee Rodin in Paris, France, is a museum<br /> that was opened in 1919 in the Hotel Biron and <br />surrounding grounds. The Musee Rodin contains <br />most of Rodin's significant creations, including The<br /> Thinker and The Kiss. Many of his sculptures are <br />displayed in the museum's extensive garden.</p>", 9);
	gmarkers[8] = marker;
	htmls[8] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Rodin Museum</b><br />The Musee Rodin in Paris, France, is a museum<br /> that was opened in 1919 in the Hotel Biron and <br />surrounding grounds. The Musee Rodin contains <br />most of Rodin's significant creations, including The<br /> Thinker and The Kiss. Many of his sculptures are <br />displayed in the museum's extensive garden.</p>";
	map.addOverlay(marker);
	
	var icon = new GIcon(baseIcon);
	var point = new GLatLng(48.855934,2.31612);
	bounds.extend(point);
	var marker = createMarker(point, "Musee d'Orsay", "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Musee d'Orsay</b><br />Best known for its extensive collection<br /> of impressionist masterpieces by popular painters such<br /> as Monet and Renoir.</p>", 10);
	gmarkers[9] = marker;
	htmls[9] = "<p style='font-size: smaller; padding: 0; margin: 0;'><b>Musee d'Orsay</b><br />Best known for its extensive collection<br /> of impressionist masterpieces by popular painters such<br /> as Monet and Renoir.</p>";
	map.addOverlay(marker);
	
	
	map.setZoom(map.getBoundsZoomLevel(bounds));
	map.savePosition();
}

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]);
}
