$(function() {
				
				/*
				INITIALISATION
				Variabilise l'objet */
				var infoIWS = new google.maps.InfoWindow();
								
				/*
				COORDONNEES GPS */
				var CenterMap = new google.maps.LatLng(46.179117, 6.148056);
				var IWSpos = new google.maps.LatLng(46.174496, 6.148056);
				var RondeauCarougePos = new google.maps.LatLng(46.179983,6.138379);
				var ArretBusPos = new google.maps.LatLng(46.176577,6.14744);
				var BrocanteurPos = new google.maps.LatLng(46.179244,6.13936);
				var OfficePos = new google.maps.LatLng(46.183641,6.152331);
				var LaRedoutePos = new google.maps.LatLng(50.69688,3.168888);
				var EsaatPos = new google.maps.LatLng(50.695758,3.167131);
				var ParkingPos = new google.maps.LatLng(50.696755,3.170838);
				
				
				/*
				CHEMIN DES ICONES */
				var pictoImpala = 'images/picto_impala_webstudio.png';
				var pictoImpalaShadow = 'images/picto_impala_webstudio_shadow.png';
				var pictoMetro = 'images/picto_bus.png';
				var pictoArret = 'images/picto_arret_bus.png';
				var pictoBrocanteur = 'images/picto_tramway.png';	
				var pictoOffice = 'images/picto_office.png';	
				var pictoLaRedoute = 'images/picto_laredoute.png';	
				var pictoEsaat = 'images/picto_esaat.png';	
				var pictoParking = 'images/picto_parking.png';
				
				/*
				CONTENU DES INFOBULLES */
				var contentIWS = '<div class="infoBulleIWS"><h4>LE GRAIN DE VIE</h4>9, chemin Sur-Rang<br/>1234 Pinchat (Gen&egrave;ve) - Suisse</div>';
				var contentRondeauCarouge = '<div class="infoBulleIWS"><h4>Rondeau de Carouge</h4>Connexion entre les bus/tram : <br/>12, 13, 14, 18, 41, 42, 44, 45</div>';
				var contentArretBus = '<div class="infoBulleIWS"><h4>Arret de Bus Jules Vuy</h4></div>';
				var contentBrocanteur = '<div class="infoBulleIWS"><h4>Brocanteur Emmaus</h4></div>';
				var contentOffice = '<div class="infoBulleIWS"><h4>Office cantonal des automobiles et de la navigation</h4>Route de Veyrier 86 - 1227 Carouge, Suisse</div>';
				var contentLaRedoute = '<div class="infoBulleIWS"><h4>La Redoute</h4>57 Rue Blanchemaille<br/>59100 Roubaix - France</div>';	
				var contentEsaat = '<div class="infoBulleIWS"><h4>E.S.AA.T.</h4>539 Avenue Nations Unies<br/>59100 Roubaix - France</div>';			
				var contentParking = '<div class="infoBulleIWS"><h4>Parking Privé</h4>Rue de Fontenoy<br/>59100 Roubaix - France<br/>(Dès que vous êtes devant, appelez-nous pour qu\'on vous ouvre !)</div>';
				
				/* OPTIONS PAR DEFAUT */
				var options = {
					// centre initial de la carte (coordonnées GPS)
					center: CenterMap,
					// niveau du zoom par défaut
					zoom: 14,					
					//Mode de rendu par défaut
					/*
					ROADMAP : mode de rendu vectoriel (routes)
					SATELLITE : mode de rendu satellite Google Earth 
					HYBRID :  mélange de rendu (satellite et routes)
					TERRAIN : mode relief */
					mapTypeId: google.maps.MapTypeId.ROADMAP,
					// affichage du sélecteur du mode de rendu
					mapTypeControl: true,
					mapTypeControlOptions: {
						//Style du sélecteur de mode de rendu
						/*
						DEFAULT : style de rendu automatique en fonction des dimensions de la carte
						DROPDOWN_MENU : menu déroulant
						HORIZONTAL_BAR : menu horizontal
						*/
					  style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
					},					
					// affichage du panneau de navigation (zoom, déplacement...)
					navigationControl: true,
					navigationControlOptions: {
						/*
						DEFAULT : mode automatique en fonction des dimensions de la carte
						SMALL : mode réduit
						ZOOM_PAN : mode complet (zoom et déplacement)
						ANDROID : mode adapté aux mobiles Android
						*/						
					  style: google.maps.NavigationControlStyle.SMALL
					}
				};			
				
				/*
				CREATION DE LA CARTE */
				var carte = new google.maps.Map(document.getElementById("carteGoogleMaps"), options);
				
				/*
				AJOUT DE MARKERS */
				var iconIWS = new google.maps.Marker({
					position: IWSpos,
					map: carte,
					icon : pictoImpala,
					shadow : pictoImpalaShadow});									
				var metroIconGrandPlace = new google.maps.Marker({
					position: RondeauCarougePos,
					map: carte,
					icon : pictoMetro});				
				var metroIconGare = new google.maps.Marker({
					position: ArretBusPos,
					map: carte,
					icon : pictoArret});
				var BrocanteurIcon = new google.maps.Marker({
					position: BrocanteurPos,
					map: carte,
					icon : pictoBrocanteur});	
				var OfficeIcon = new google.maps.Marker({
					position: OfficePos,
					map: carte,
					icon : pictoOffice});	
				var LaRedouteIcon = new google.maps.Marker({
					position: LaRedoutePos,
					map: carte,
					icon : pictoLaRedoute});
				var EsaatIcon = new google.maps.Marker({
					draggable: true,
					position: EsaatPos,
					map: carte,
					icon : pictoEsaat});	
				var ParkingIcon = new google.maps.Marker({
					position: ParkingPos,
					map: carte,
					icon : pictoParking});					
							
				/*
				EVENEMENT SUR MARKERS */
				google.maps.event.addListener(iconIWS, 'click', function() {
					infoIWS.setContent(contentIWS);
					infoIWS.open(carte, this);
					carte.panTo(IWSpos);});	
					
				google.maps.event.addListener(metroIconGrandPlace, 'click', function() {
					infoIWS.setContent(contentRondeauCarouge);
					infoIWS.open(carte, this);
					carte.panTo(RondeauCarougePos);});
					
				google.maps.event.addListener(metroIconGare, 'click', function() {
					infoIWS.setContent(contentArretBus);
					infoIWS.open(carte, this);
					carte.panTo(ArretBusPos);});
					
				google.maps.event.addListener(BrocanteurIcon, 'click', function() {
					infoIWS.setContent(contentBrocanteur);
					infoIWS.open(carte, this);
					carte.panTo(BrocanteurPos);});

				google.maps.event.addListener(OfficeIcon, 'click', function() {
					infoIWS.setContent(contentOffice);
					infoIWS.open(carte, this);
					carte.panTo(OfficePos);});
					
				google.maps.event.addListener(LaRedouteIcon, 'click', function() {
					infoIWS.setContent(contentLaRedoute);
					infoIWS.open(carte, this);
					carte.panTo(LaRedoutePos);});
					
				google.maps.event.addListener(EsaatIcon, 'click', function() {
					infoIWS.setContent(contentEsaat);
					infoIWS.open(carte, this);
					carte.panTo(EsaatPos);});
					
				google.maps.event.addListener(ParkingIcon, 'click', function() {
					infoIWS.setContent(contentParking);
					infoIWS.open(carte, this);
					carte.panTo(ParkingPos);});
	
				google.maps.event.addListener(carte, 'click', function() {
				  carte.panTo(IWSpos);infoIWS.setContent(contentIWS);infoIWS.open(carte, iconIWS);
				});		
				
				/*
				EVENEMENTS SUR LIENS HTML*/
				$('#lienIWS').click(function(){
					carte.panTo(IWSpos);
					infoIWS.setContent(contentIWS);
					infoIWS.open(carte, iconIWS);
				});
				$('#lienRondeauCarouge').click(function(){
					carte.panTo(RondeauCarougePos);
					infoIWS.setContent(contentRondeauCarouge);
					infoIWS.open(carte, metroIconGrandPlace);
				});
				$('#lienArretBus').click(function(){
					carte.panTo(ArretBusPos);
					infoIWS.setContent(contentArretBus);
					infoIWS.open(carte, metroIconGare);
				});
				$('#lienBrocanteur').click(function(){
					carte.panTo(BrocanteurPos);
					infoIWS.setContent(contentBrocanteur);
					infoIWS.open(carte, BrocanteurIcon);
				});
				$('#lienOffice').click(function(){
					carte.panTo(OfficePos);
					infoIWS.setContent(contentOffice);
					infoIWS.open(carte, OfficeIcon);
				});
				$('#lienParking').click(function(){
					carte.panTo(ParkingPos);
					infoIWS.setContent(contentParking);
					infoIWS.open(carte, ParkingIcon);
				});
	});

