// JavaScript Document
$(document).ready(function() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		//map.addControl(new GSmallMapControl());
		//map.addControl(new GMapTypeControl());
		map.addControl(new GLargeMapControl());
        map.setCenter(new GLatLng(43.6748,7.189275), 14);
		
		// Create our "tiny" marker icon
		/*var icon = new GIcon();
		icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
		icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		icon.iconSize = new GSize(12, 20);
		icon.shadowSize = new GSize(22, 20);
		icon.iconAnchor = new GPoint(6, 20);
		icon.infoWindowAnchor = new GPoint(5, 1);*/
		
		// Creates a marker at the given point with the given number label
		function createMarker(point, number) {
			var marker = new GMarker(point);
			if(number == 1) {			
			GEvent.addListener(marker, "click", function() {
		 		marker.openInfoWindowHtml("<div><font face='Verdana, Arial, Helvetica, sans-serif'><b>Maître Lionel Revello</b><br><font size=1>Résidence Villa Laurentine<br>246 Avenue des Pignatières – 06700 St Laurent Du Var<br>Tel: 04.93.14.42.79 – Fax 04.93.14.43.71<br>Email : <a href=\"mailto:contact@revello-avocats.com\">contact@revello-avocats.com</a></font></font></div>");  }); 
			}
			
			return marker;
		}	
		
		var point = new GLatLng(43.6748,7.189275);  
		map.addOverlay(createMarker(point,1));
		
		
      }
      });