// JavaScript Document



var bob = '';
importNQ = 
{
		list_marker : [],
		markerIndicatif : null,
		list_marker_tri : [],
		markerClusterer : [],
		regroupement : false,
		regroupementAvancer : false,
		stylesRegroupAvancer : [],
		styleTexteRegroup : '',
		ancreTexteRegroup : [],
		colorTexteRegroup : '',
		polyline : null,
		zoomControl : false,
		zoomMax : 0 ,
		list_marker1 : [],
		markerClusterer1 : [],
		list_marker2 : [],
		markerClusterer2 : [],
		list_marker3 : [],
		markerClusterer3 : [],
		list_marker4 : [],
		markerClusterer4 : [],
		compteurVerif : 0,
		markerSupp : null,
		offsetMarker: -0.02,
		point_trace : [],
		
//-----------------------------------------------------------------------------------------------------------------------------------------------
//-------------------------chargement photo user KML------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------

kml: function(urlKml,clear,regroupAuto)
{
		if(clear){
			gmapNQ.map.clearOverlays();
			importNQ.list_marker = [];
		}
		
		GDownloadUrl(urlKml, function (doc) {
                try {
                    
                    var xmlImg = GXml.parse(doc);
                    var cKML = xmlImg.getElementsByTagName('marker');
					var iconeSauv = '';
					 if (cKML.length > 0) {
                       
					  	var controlOrganisateur = false;
                        for (var i=0;cKML[i];i++) {
							
												var kicon = new GIcon();
												kicon.image = cKML[i].getAttribute('icon');
												
												iconeSauv = cKML[i].getAttribute('icon');
												kicon.iconSize = new GSize(cKML[i].getAttribute('width'),cKML[i].getAttribute('height'));
												kicon.shadowSize= new GSize(0,0);
												kicon.iconAnchor = new GPoint(cKML[i].getAttribute('ancreX'), cKML[i].getAttribute('ancreY'));
												kicon.infoWindowAnchor = new GPoint(parseInt(cKML[i].getAttribute('ancreXbulle')), parseInt(cKML[i].getAttribute('ancreYbulle')));
												
												var kmlMarker = importNQ.createMarker(new GLatLng(cKML[i].getAttribute('lat'), cKML[i].getAttribute('lng')), kicon, "");
												kmlMarker.desc = cKML[i].getAttribute('html');
												kmlMarker.indice = importNQ.list_marker.length;
												kmlMarker.clickAction = cKML[i].getAttribute('onclick');
												kmlMarker.oB = cKML[i].getAttribute('openBulle');
												// Evenements charge
												GEvent.addListener(kmlMarker, 'click', function() {
													
													
													if(kmlMarker.oB != '' && kmlMarker.oB=='true'){
														
														importNQ.showInfoMarker(this.indice,this.desc); 
														
													}
													
													if(this.clickAction != ''){
														try{
															
															eval(this.clickAction);	
														}
														catch(e){
															utilsNQ.debug('l\'action affecté au marker ne c\'est pas effectuée : ',e);
														}
													}
												}); 
												 
												
													importNQ.list_marker.push(kmlMarker);
													if(!importNQ.regroupement ){
														if(!importNQ.regroupementAvancer){
															
															gmapNQ.map.addOverlay(kmlMarker);
														}
													}
													
													if(!importNQ.regroupementAvancer){
														if(typeof(importNQ.list_marker_tri[cKML[i].getAttribute('icon')]) == 'undefined') {
															importNQ.list_marker_tri[cKML[i].getAttribute('icon')] = [];	
														}
														importNQ.list_marker_tri[cKML[i].getAttribute('icon')][importNQ.list_marker_tri[cKML[i].getAttribute('icon')].length] = kmlMarker;
														
													} else{
														
														for(var z = 0 ; z < importNQ.stylesRegroupAvancer.length ; z++) {
															for(var j = 0 ; j < importNQ.stylesRegroupAvancer[z].length ; j++) {
																
																if((cKML[i].getAttribute('icon').indexOf(importNQ.stylesRegroupAvancer[z][j]) != -1)){
																	
																	
																	if(typeof(importNQ.list_marker_tri[z+"_regroup"]) == 'undefined') {
																		importNQ.list_marker_tri[z+"_regroup"] = [];	
																	}
																	
																	importNQ.list_marker_tri[z+"_regroup"][importNQ.list_marker_tri[z+"_regroup"].length] = kmlMarker;	
																}
															}
														}
													}
										
							
						}
						
						
						if(urlKml.indexOf("kml_around_me_parcours.php") == -1){
							importNQ.centreCarteWithArrayMarker();
						}
						if(importNQ.regroupement || importNQ.regroupementAvancer){
							
							if(regroupAuto){
								
								importNQ.regroupIcone();
								
							}
							
						}
						
					 }
					 
					
					 	if(!regroupAuto){
							
					 			importNQ.compteurVerif++;
								
								if(importNQ.compteurVerif > 3){
									importNQ.regroupIcone();
								}
								
								
						}
						
						
						var cKML2 = xmlImg.getElementsByTagName('markerIndi');
					
					 if (cKML2.length > 0) {
                       		
                        		
								var kiconImg2 = new GIcon();
								kiconImg2.image = cKML2[i].getAttribute('icon');
								kiconImg2.iconSize = new GSize(cKML2[i].getAttribute('width'),cKML2[i].getAttribute('height'));
								kiconImg2.shadowSize= new GSize(0,0);
								kiconImg2.iconAnchor = new GPoint(cKML2[i].getAttribute('ancreX'),cKML2[i].getAttribute('ancreY'));
								kiconImg2.infoWindowAnchor = new GPoint(cKML2[i].getAttribute('ancreXbulle'),cKML2[i].getAttribute('ancreYbulle'));
							
								importNQ.markerIndicatif = new GMarker(new GLatLng(cKML2[i].getAttribute('lat'), cKML2[i].getAttribute('lng')), {icon:kiconImg2,zIndexProcess:importNQ.passeDessusImg,zIndexProcess:importNQ.passeDessus});
								importNQ.markerIndicatif.descr = cKML2[i].getAttribute('html');
							
								// Evenements charge
								GEvent.addListener(importNQ.markerIndicatif, 'click', function() {
									
									if(gmapNQ.map.getZoom()> 14 ){
										gmapNQ.map.setCenter(new GLatLng(importNQ.markerIndicatif.getLatLng().lat(),importNQ.markerIndicatif.getLatLng().lng()),gmapNQ.map.getZoom());
										
									} else {
										gmapNQ.map.setCenter(new GLatLng(importNQ.markerIndicatif.getLatLng().lat(),importNQ.markerIndicatif.getLatLng().lng()),14);
									}
									
									
								}); 
								
								gmapNQ.map.addOverlay(importNQ.markerIndicatif);
								
							
						
					 }
				}
				catch(e)
				{
					utilsNQ.debug('erreur import kml : ',e);
				}
		});
},


passeDessus : function(marker,b){
	if(marker.getIcon().image.indexOf('departParcours') != -1){
		return 0;	
	} else if(marker.getIcon().image.indexOf('arriveParcours') != -1){
		return 0;	
	}else {
		return 1;	
	}
	
},

createMarker : function (point, icon, name) 
{
	var marker = new GMarker(point, {icon:icon,zIndexProcess:importNQ.passeDessus});
	return marker;
},

showInfoMarker : function (indice,info)
{
	if(typeof(gmapNQ.map.closeExtInfoWindow) == "function"){
		gmapNQ.map.closeExtInfoWindow();
	}
	
	
	importNQ.list_marker[indice].openExtInfoWindow(gmapNQ.map,"custom_info_window_red",info,{beakOffset: 3}); 
	gmapNQ.map.setCenter(new GLatLng(importNQ.list_marker[indice].getLatLng().lat(),importNQ.list_marker[indice].getLatLng().lng()),gmapNQ.map.getZoom());
	
	/*if(gmapNQ.map.getZoom()> 14 ){
		gmapNQ.map.setCenter(new GLatLng(importNQ.list_marker[indice].getLatLng().lat(),importNQ.list_marker[indice].getLatLng().lng()),gmapNQ.map.getZoom());
		
		
	} else {
		gmapNQ.map.setCenter(new GLatLng(importNQ.list_marker[indice].getLatLng().lat(),importNQ.list_marker[indice].getLatLng().lng()),14);
	}*/
	//info.replace("##CLICKFERMETURE##", "alert('ok')");
	
	
	
									
},

centreCarteWithArrayMarker : function(){
	var temp = [];
	for(var i = 0 ; i < importNQ.list_marker.length; i++){
		temp.push(importNQ.list_marker[i].getLatLng());	
	}
	
	if(this.markerSupp != null){
		temp.push(this.markerSupp.getLatLng());	
	}
	
	var poly = new GPolyline(temp, "#7cab0f", 4,1);
	var boundMarkers = poly.getBounds();
	gmapNQ.map.setCenter(boundMarkers.getCenter(),gmapNQ.map.getBoundsZoomLevel(boundMarkers));
	
	
	if(gmapNQ.map.getZoom() >= 18){
							gmapNQ.map.setZoom(17);	
						}
	
},


centreCarteWithArrayMarkerAndLocalisation : function(){
	var temp = [];
	for(var i = 0 ; i < importNQ.list_marker.length; i++){
		temp.push(importNQ.list_marker[i].getLatLng());	
	}
	temp.push(importNQ.markerIndicatif.getLatLng());
	var poly = new GPolyline(temp, "#7cab0f", 4,1);
	var boundMarkers = poly.getBounds();
	gmapNQ.map.setCenter(boundMarkers.getCenter(),gmapNQ.map.getBoundsZoomLevel(boundMarkers));
	
	if(gmapNQ.map.getZoom() >= 18){
							gmapNQ.map.setZoom(17);	
						}
	
},

regroupIcone : function (){
	
	for (var markersRegroupe in importNQ.list_marker_tri) {
		
		if(!importNQ.regroupementAvancer){
			importNQ.regroupAction(markersRegroupe);
		} else {
			importNQ.regroupActionAvancer(markersRegroupe);
		}
	}	
},

regroupActionAvancer : function(indice){
	
	var indiceTab = indice.split('_');
		
	var styleRegroup = [{
					url: importNQ.stylesRegroupAvancer[indiceTab[0]][1].img,
					width: importNQ.stylesRegroupAvancer[indiceTab[0]][1].w,
					height: importNQ.stylesRegroupAvancer[indiceTab[0]][1].h,
					opt_anchor: importNQ.stylesRegroupAvancer[indiceTab[0]][3],
					opt_textColor: importNQ.stylesRegroupAvancer[indiceTab[0]][4] ,
					style:importNQ.stylesRegroupAvancer[indiceTab[0]][2]
				  },
				  {
					url: importNQ.stylesRegroupAvancer[indiceTab[0]][1].img,
					width: importNQ.stylesRegroupAvancer[indiceTab[0]][1].w,
					height: importNQ.stylesRegroupAvancer[indiceTab[0]][1].h,
					opt_anchor: importNQ.stylesRegroupAvancer[indiceTab[0]][3],
					opt_textColor: importNQ.stylesRegroupAvancer[indiceTab[0]][4] ,
					style:importNQ.stylesRegroupAvancer[indiceTab[0]][2]
				  },
				  {
					url: importNQ.stylesRegroupAvancer[indiceTab[0]][1].img,
					width: importNQ.stylesRegroupAvancer[indiceTab[0]][1].w,
					height: importNQ.stylesRegroupAvancer[indiceTab[0]][1].h,
					opt_anchor: importNQ.stylesRegroupAvancer[indiceTab[0]][3],
					opt_textColor: importNQ.stylesRegroupAvancer[indiceTab[0]][4] ,
					style:importNQ.stylesRegroupAvancer[indiceTab[0]][2]
				  },
				  {
					url: importNQ.stylesRegroupAvancer[indiceTab[0]][1].img,
					width: importNQ.stylesRegroupAvancer[indiceTab[0]][1].w,
					height: importNQ.stylesRegroupAvancer[indiceTab[0]][1].h,
					opt_anchor: importNQ.stylesRegroupAvancer[indiceTab[0]][3],
					opt_textColor: importNQ.stylesRegroupAvancer[indiceTab[0]][4] ,
					style:importNQ.stylesRegroupAvancer[indiceTab[0]][2]
				  },
				  {
					url: importNQ.stylesRegroupAvancer[indiceTab[0]][1].img,
					width: importNQ.stylesRegroupAvancer[indiceTab[0]][1].w,
					height: importNQ.stylesRegroupAvancer[indiceTab[0]][1].h,
					opt_anchor: importNQ.stylesRegroupAvancer[indiceTab[0]][3],
					opt_textColor: importNQ.stylesRegroupAvancer[indiceTab[0]][4] ,
					style:importNQ.stylesRegroupAvancer[indiceTab[0]][2]
				  }];
	
		
		importNQ.markerClusterer[indice] = new MarkerClusterer(gmapNQ.map, importNQ.list_marker_tri[indice], {styles: styleRegroup});	
		
},

regroupAction : function(indice){
	if(typeof(importNQ.list_marker_tri[indice][0]) != 'undefined'){
	
		var styleRegroup = [{
					url: importNQ.list_marker_tri[indice][0].getIcon().image,
					width: importNQ.list_marker_tri[indice][0].getIcon().iconSize.width,
					height: importNQ.list_marker_tri[indice][0].getIcon().iconSize.height,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup ,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: importNQ.list_marker_tri[indice][0].getIcon().image,
					width: importNQ.list_marker_tri[indice][0].getIcon().iconSize.width,
					height: importNQ.list_marker_tri[indice][0].getIcon().iconSize.height,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: importNQ.list_marker_tri[indice][0].getIcon().image,
					width: importNQ.list_marker_tri[indice][0].getIcon().iconSize.width,
					height: importNQ.list_marker_tri[indice][0].getIcon().iconSize.height,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: importNQ.list_marker_tri[indice][0].getIcon().image,
					width: importNQ.list_marker_tri[indice][0].getIcon().iconSize.width,
					height: importNQ.list_marker_tri[indice][0].getIcon().iconSize.height,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: importNQ.list_marker_tri[indice][0].getIcon().image,
					width: importNQ.list_marker_tri[indice][0].getIcon().iconSize.width,
					height: importNQ.list_marker_tri[indice][0].getIcon().iconSize.height,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup,
					style:importNQ.styleTexteRegroup
				  }];
	
		importNQ.markerClusterer[indice] = new MarkerClusterer(gmapNQ.map, importNQ.list_marker_tri[indice], {styles: styleRegroup});		
	}
},

init_regroupement : function(s,a,c){
	importNQ.regroupement = true;
	importNQ.styleTexteRegroup = s;
	importNQ.ancreTexteRegroup = a;
	importNQ.colorTexteRegroup = c;
},

init_regroupement_particulier : function(styles){
	
	importNQ.regroupementAvancer = true;
	importNQ.stylesRegroupAvancer = styles;
		
},


kmlPolyline: function(urlKml)
{	 
	GDownloadUrl(urlKml, function (doc) {
	
			try {
				var xmlTrace = GXml.parse(doc);
				var t_coord = xmlTrace.getElementsByTagName('coord');
				var t_trace = [];
				
				for(var i =0  ; i < t_coord.length ; i++)
				{
					if(t_coord[i].getAttribute('lng') != '' && t_coord[i].getAttribute('lat') != '' && typeof(t_coord[i].getAttribute('lng')) != 'undefined' && typeof(t_coord[i].getAttribute('lat')) != 'undefined'){
						t_trace.push(new GLatLng(parseFloat(t_coord[i].getAttribute('lat')),parseFloat(t_coord[i].getAttribute('lng'))));
					}
				}
				
				
				if(t_trace.length > 0){
					importNQ.polyline = new GPolyline(t_trace, "#7cab0f", 4,1);
					var boundTrace = importNQ.polyline.getBounds();
				
					gmapNQ.map.setCenter(boundTrace.getCenter(),gmapNQ.map.getBoundsZoomLevel(boundTrace));
					gmapNQ.map.addOverlay(importNQ.polyline);
					
					
				}
				
				importNQ.point_trace = t_trace;
			}
			catch(e)
			{
				utilsNQ.debug('erreur : ',e);
			}
	});	
	
},


initZoomControl: function(z){
	importNQ.zoomControl = true;
	importNQ.zoomMax = z;
},

gestionMarkerZoom : function(zoom) {
	if(importNQ.zoomControl){
		if(zoom < importNQ.zoomMax){
			importNQ.cacheImport();
		} else{
			
			importNQ.montreImport();
		}
	}
},

cacheImport : function(){
	for(var i = 0 ; i < importNQ.list_marker.length; i++){
		
		
		if(importNQ.list_marker[i].getIcon().image.indexOf('rdvOrganisation.gif') != -1 ){
			if(importNQ.list_marker[i].getIcon().image.indexOf('rdv.png') != -1){
				importNQ.list_marker[i].hide();
				
			}
		}
		
	}
	
	if(importNQ.polyline != null){
		importNQ.polyline.hide();
	}
},

montreImport : function(){
	for(var i = 0 ; i < importNQ.list_marker.length; i++){
		if(importNQ.list_marker[i].getIcon().image.indexOf('rdv.png') != -1){
			if(importNQ.list_marker[i].getIcon().image.indexOf('rdvOrganisation.gif') != -1){
				importNQ.list_marker[i].show();
			}
		}
	}
	
	if(importNQ.polyline != null){
		importNQ.polyline.show();
	}
},


cacheMarkerWithIcone : function(icone){
	for(var i = 0 ; i < importNQ.list_marker.length; i++){
		if(importNQ.list_marker[i].getIcon().image == icone){
			importNQ.list_marker[i].hide();
		}
	}
},

montreMarkerWithIcone : function(icone){
	for(var i = 0 ; i < importNQ.list_marker.length; i++){
		if(importNQ.list_marker[i].getIcon().image == icone){
			importNQ.list_marker[i].show();
		}
	}
},

toogleMarker : function(icone){
	
	
	
	if(importNQ.regroupement || importNQ.regroupementAvancer){
		for (var markersRegroupe in importNQ.list_marker_tri) {
			
			if(markersRegroupe == icone) {
				if(typeof(importNQ.markerClusterer[markersRegroupe]) != 'undefined' && importNQ.markerClusterer[markersRegroupe].getTotalMarkers() > 0){
					importNQ.markerClusterer[markersRegroupe].clearMarkers();
				} else {
					if(importNQ.regroupementAvancer){
						
						importNQ.markerClusterer[markersRegroupe].clearMarkers();
					} else{
						importNQ.regroupAction(markersRegroupe);
					}
				}
			}
		}
	} else {
		for(var i = 0 ; i < importNQ.list_marker.length; i++){
			if(importNQ.list_marker[i].getIcon().image == icone){
				var control = importNQ.list_marker[i].isHidden();
			}
		}
		
		if(control){
			importNQ.montreMarkerWithIcone(icone);	
		} else{
			importNQ.cacheMarkerWithIcone(icone);
		}
	}
	
	
	
},

 cacheRegroupement : function(ic){
	 if(typeof(importNQ.markerClusterer[ic]) != 'undefined'){
		 if(importNQ.markerClusterer[ic].getTotalMarkers() > 0){
			importNQ.markerClusterer[ic].clearMarkers();
		 }
	 }
},


 montreRegroupement : function(ic){
	 if(typeof(importNQ.markerClusterer[ic]) != 'undefined'){
		   if(importNQ.markerClusterer[ic].getTotalMarkers() == 0){
			importNQ.regroupAction(ic);
		  }
	 }
},


 cacheMembre : function(){
	 if(typeof(importNQ.markerClusterer["1_regroup"]) != 'undefined'){
		 if(importNQ.markerClusterer["1_regroup"].getTotalMarkers() > 0){
			importNQ.markerClusterer["1_regroup"].clearMarkers();
		 }
	 }
},


 montreMembre : function(){
	 if(typeof(importNQ.markerClusterer["1_regroup"]) != 'undefined'){
		   if(importNQ.markerClusterer["1_regroup"].getTotalMarkers() == 0){
			importNQ.regroupAction("1_regroup");
		  }
	 }
},

cacheParcours : function(){
	 if(typeof(importNQ.markerClusterer["2_regroup"]) != 'undefined'){
		 if(importNQ.markerClusterer["2_regroup"].getTotalMarkers() > 0){
			importNQ.markerClusterer["2_regroup"].clearMarkers();
		 }
	 }
},


 montreParcours : function(){
	 if(typeof(importNQ.markerClusterer["2_regroup"]) != 'undefined'){
		 if(importNQ.markerClusterer["2_regroup"].getTotalMarkers() == 0){	
			importNQ.regroupAction("2_regroup");
		 }
	 }
},


cacheEvent : function(){
	 if(typeof(importNQ.markerClusterer["3_regroup"]) != 'undefined'){
		 if(importNQ.markerClusterer["3_regroup"].getTotalMarkers() > 0){
			importNQ.markerClusterer["3_regroup"].clearMarkers();
		 }
	 }
},


 montreEvent : function(){
	 if(typeof(importNQ.markerClusterer["3_regroup"]) != 'undefined'){
		  if(importNQ.markerClusterer["3_regroup"].getTotalMarkers() == 0){
			importNQ.regroupAction("3_regroup");
		  }
	 }
},

cacheClub : function(){
	 if(typeof(importNQ.markerClusterer["0_regroup"]) != 'undefined'){
		  if(importNQ.markerClusterer["0_regroup"].getTotalMarkers() > 0){
				importNQ.markerClusterer["0_regroup"].clearMarkers();
		  }
	 }
},


 montreClub : function(){
	 if(typeof(importNQ.markerClusterer["0_regroup"]) != 'undefined'){
		  if(importNQ.markerClusterer["0_regroup"].getTotalMarkers() == 0){
			importNQ.regroupAction("0_regroup");
		  }
	 }
},



parcours: function(tab,clear)
{
	if(clear){
		
		if(typeof(importNQ.markerClusterer1.clearMarkers) == 'function'){
			importNQ.markerClusterer1.clearMarkers();
		}
		importNQ.list_marker = [];
		importNQ.list_marker_tri["2_regroup"]= [];
	}
	
			var kicon = new GIcon();
			kicon.image = "/sd_img/icones_gmap/icone_parcours.png";
			kicon.iconSize = new GSize(27,27);
			kicon.shadowSize= new GSize(0,0);
			kicon.iconAnchor = new GPoint(13, 22);
			kicon.infoWindowAnchor = new GPoint(95,5);
		
			bob = tab;
			for(var i = 0 ; i < tab.length; i++){
								
			
				var kmlMarker = new GMarker(new GLatLng(tab[i].lat, tab[i].lng), {icon:kicon,zIndexProcess:importNQ.passeDessus});
				
				
				var strChUserAgent = navigator.userAgent;
									 var intSplitStart = strChUserAgent.indexOf("(",0);
									 var intSplitEnd = strChUserAgent.indexOf(")",0);
									 var strChStart = strChUserAgent.substring(0,intSplitStart);
									 var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
									 var strChEnd = strChUserAgent.substring(strChEnd);
									
									  var ie = false ;
									 if(strChMid.indexOf("MSIE") != -1)
									 ie = true; 
									
									
								
				kmlMarker.desc = '<div class="infosBox2 '+((ie == true)?'':'border')+'"><div class="close"  onclick="gmapNQ.map.closeExtInfoWindow();"></div><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr> <td rowspan="2" align="center" width="70"><img src="/sd_img/img_parcours.jpg" alt="img" /></td><td style="padding: 14px 10px 4px 0;" align="left"><p class="title">'+tab[i].name+'</p></td></tr><tr><td height="30" align="right" style="padding-right: 10px;"><a href="'+tab[i].link+'"><img src="/sd_img/bulle_gmap/en_savoir_plus.png" alt="plus" /></a></td></tr></table></div>';
				
				kmlMarker.indice = importNQ.list_marker.length;
				
				// Evenements charge
				GEvent.addListener(kmlMarker, 'click', function() {
						importNQ.showInfoMarkerBis(this.indice,this.desc,importNQ.list_marker1);  
				}); 
				 
				
					
				//gmapNQ.map.addOverlay(kmlMarker);
				
					importNQ.list_marker.push(kmlMarker);
					
			importNQ.list_marker_tri["2_regroup"][importNQ.list_marker_tri["2_regroup"].length] = kmlMarker;
			
		}
	
		if(tab.length != 0)
		{
		var styleRegroup1 = [{
					url: "/sd_img/icones_gmap/icone_parcours.png",
					width: 27,
					height: 27,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup ,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: "/sd_img/icones_gmap/icone_parcours.png",
					width: 27,
					height: 27,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup ,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: "/sd_img/icones_gmap/icone_parcours.png",
					width: 27,
					height: 27,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup ,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: "/sd_img/icones_gmap/icone_parcours.png",
					width: 27,
					height: 27,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup ,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: "/sd_img/icones_gmap/icone_parcours.png",
					width: 27,
					height: 27,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup ,
					style:importNQ.styleTexteRegroup
				  }];
		
			
			//importNQ.markerClusterer1 = new MarkerClusterer(gmapNQ.map, importNQ.list_marker1, {styles: styleRegroup1});
			importNQ.centreCarteWithArrayMarkerBis();
		}
		
},


membre: function(tab, clear)
{
	if(clear){
		
		if(typeof(importNQ.markerClusterer2.clearMarkers) == 'function'){
			importNQ.markerClusterer2.clearMarkers();
		}
		importNQ.list_marker2 = [];
		importNQ.list_marker_tri["1_regroup"]= [];	
		
	}
			var kicon = new GIcon();
			kicon.image = "/sd_img/icones_gmap/icone_membre.png";
			kicon.iconSize = new GSize(27,31);
			kicon.shadowSize= new GSize(0,0);
			kicon.iconAnchor = new GPoint(13, 0);
			kicon.infoWindowAnchor = new GPoint(95,5);
		
			bob = tab;
			 var strChUserAgent = navigator.userAgent;
									 var intSplitStart = strChUserAgent.indexOf("(",0);
									 var intSplitEnd = strChUserAgent.indexOf(")",0);
									 var strChStart = strChUserAgent.substring(0,intSplitStart);
									 var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
									 var strChEnd = strChUserAgent.substring(strChEnd);
									
									  var ie = false ;
									 if(strChMid.indexOf("MSIE") != -1)
									 ie = true; 
									 
			for(var i = 0 ; i < tab.length; i++){
								
				
				var kmlMarker = new GMarker(new GLatLng(tab[i].lat, tab[i].lng), {icon:kicon,zIndexProcess:importNQ.passeDessus});
				kmlMarker.desc = '<div class="infosBox2 '+((ie == true)?'':'border')+'"><div class="close"  onclick="gmapNQ.map.closeExtInfoWindow();"></div><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr> <td rowspan="2" align="center" width="70"><img src="'+tab[i].image+'" alt="img" /></td><td style="padding: 14px 10px 4px 0;" align="left"><p class="title">'+tab[i].name+'</p></td></tr><tr><td height="30" align="right" style="padding-right: 10px;"><a href="'+tab[i].link+'"><img src="/sd_img/bulle_gmap/en_savoir_plus.png" alt="plus" /></a></td></tr></table></div>';
				
				
				kmlMarker.indice = importNQ.list_marker2.length;
				
				// Evenements charge
				GEvent.addListener(kmlMarker, 'click', function() {
					importNQ.showInfoMarkerBis(this.indice,this.desc,importNQ.list_marker2);  
				}); 
				 
				
					
				//gmapNQ.map.addOverlay(kmlMarker);
				
				importNQ.list_marker2.push(kmlMarker);
					
				importNQ.list_marker_tri["1_regroup"][importNQ.list_marker_tri["1_regroup"].length] = kmlMarker;
			
		}
		if(tab.length != 0)
		{
		var styleRegroup2 = [{
					url: "/sd_img/icones_gmap/icone_membre.png",
					width: 27,
					height: 31,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup ,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: "/sd_img/icones_gmap/icone_membre.png",
					width: 27,
					height: 31,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup ,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: "/sd_img/icones_gmap/icone_membre.png",
					width: 27,
					height: 31,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup ,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: "/sd_img/icones_gmap/icone_membre.png",
					width: 27,
					height: 31,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup ,
					style:importNQ.styleTexteRegroup
				  },
				  {
					url: "/sd_img/icones_gmap/icone_membre.png",
					width: 27,
					height: 31,
					opt_anchor: importNQ.ancreTexteRegroup,
					opt_textColor: importNQ.colorTexteRegroup ,
					style:importNQ.styleTexteRegroup
				  }];
	
		//importNQ.markerClusterer2 = new MarkerClusterer(gmapNQ.map, importNQ.list_marker2, {styles: styleRegroup2});
		importNQ.centreCarteWithArrayMarkerBis();
		}
},


club: function(tab,clear)
{
	if(clear){
		if(typeof(importNQ.markerClusterer3.clearMarkers) == 'function'){
			importNQ.markerClusterer3.clearMarkers();
		}
		importNQ.list_marker3 = [];
	
			importNQ.list_marker_tri["0_regroup"]= [];		
			
		
	}
			var kicon = new GIcon();
			kicon.image = "/sd_img/icones_gmap/icone_club.png";
			kicon.iconSize = new GSize(27,27);
			kicon.shadowSize= new GSize(0,0);
			kicon.iconAnchor = new GPoint(13, 0);
			kicon.infoWindowAnchor = new GPoint(95,5);
		
			bob = tab;
			
			 var strChUserAgent = navigator.userAgent;
									 var intSplitStart = strChUserAgent.indexOf("(",0);
									 var intSplitEnd = strChUserAgent.indexOf(")",0);
									 var strChStart = strChUserAgent.substring(0,intSplitStart);
									 var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
									 var strChEnd = strChUserAgent.substring(strChEnd);
									
									  var ie = false ;
									 if(strChMid.indexOf("MSIE") != -1)
									 ie = true; 
									 
			for(var i = 0 ; i < tab.length; i++){
								
				
				var kmlMarker = new GMarker(new GLatLng(tab[i].lat, tab[i].lng), {icon:kicon,zIndexProcess:importNQ.passeDessus});
				kmlMarker.desc = '<div class="infosBox2 '+((ie == true)?'':'border')+'"><div class="close"  onclick="gmapNQ.map.closeExtInfoWindow();"></div><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr> <td rowspan="2" align="center" width="70"><img src="'+tab[i].image+'" alt="img" /></td><td style="padding: 14px 10px 4px 0;" align="left"><p class="title">'+tab[i].name+'</p></td></tr><tr><td height="30" align="right" style="padding-right: 10px;"><a href="'+tab[i].link+'"><img src="/sd_img/bulle_gmap/en_savoir_plus.png" alt="plus" /></a></td></tr></table></div>';
				
				
				
				kmlMarker.indice = importNQ.list_marker3.length;
				
				// Evenements charge
				GEvent.addListener(kmlMarker, 'click', function() {
						importNQ.showInfoMarkerBis(this.indice,this.desc,importNQ.list_marker3);  
				}); 
				 
				
					importNQ.list_marker3.push(kmlMarker);
					importNQ.list_marker_tri["0_regroup"][importNQ.list_marker_tri["0_regroup"].length] = kmlMarker;
		}
		
		if(tab.length != 0)
		{
			var styleRegroup3 = [{
						url: "/sd_img/icones_gmap/icone_club.png",
						width: 27,
						height: 27,
						opt_anchor: importNQ.ancreTexteRegroup,
						opt_textColor: importNQ.colorTexteRegroup ,
						style:importNQ.styleTexteRegroup
					  },
					  {
						url: "/sd_img/icones_gmap/icone_club.png",
						width: 27,
						height: 27,
						opt_anchor: importNQ.ancreTexteRegroup,
						opt_textColor: importNQ.colorTexteRegroup ,
						style:importNQ.styleTexteRegroup
					  },
					  {
						url: "/sd_img/icones_gmap/icone_club.png",
						width: 27,
						height: 27,
						opt_anchor: importNQ.ancreTexteRegroup,
						opt_textColor: importNQ.colorTexteRegroup ,
						style:importNQ.styleTexteRegroup
					  },
					  {
						url: "/sd_img/icones_gmap/icone_club.png",
						width: 27,
						height: 27,
						opt_anchor: importNQ.ancreTexteRegroup,
						opt_textColor: importNQ.colorTexteRegroup ,
						style:importNQ.styleTexteRegroup
					  },
					  {
						url: "/sd_img/icones_gmap/icone_club.png",
						width: 27,
						height: 27,
						opt_anchor: importNQ.ancreTexteRegroup,
						opt_textColor: importNQ.colorTexteRegroup ,
						style:importNQ.styleTexteRegroup
					  }];
		
			
			//importNQ.markerClusterer3 = new MarkerClusterer(gmapNQ.map, importNQ.list_marker3, {styles: styleRegroup3});
			
			importNQ.centreCarteWithArrayMarkerBis();
		}
},


sortie: function(tab,clear)
{
	if(clear){
		
		if(typeof(importNQ.markerClusterer4.clearMarkers) == 'function'){
			importNQ.markerClusterer4.clearMarkers();
		}
		importNQ.list_marker4 = [];
		importNQ.list_marker_tri["3_regroup"]= [];		
		/*
			
			
		*/
	}
			var kicon = new GIcon();
			kicon.image = "/sd_img/icones_gmap/icone_sortie.png";
			kicon.iconSize = new GSize(27,27);
			kicon.shadowSize= new GSize(0,0);
			kicon.iconAnchor = new GPoint(13, 22);
			kicon.infoWindowAnchor = new GPoint(95,5);
		
			bob = tab;
			 var strChUserAgent = navigator.userAgent;
									 var intSplitStart = strChUserAgent.indexOf("(",0);
									 var intSplitEnd = strChUserAgent.indexOf(")",0);
									 var strChStart = strChUserAgent.substring(0,intSplitStart);
									 var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
									 var strChEnd = strChUserAgent.substring(strChEnd);
									
									  var ie = false ;
									 if(strChMid.indexOf("MSIE") != -1)
									 ie = true; 
									 
			for(var i = 0 ; i < tab.length; i++){
								
			
				var kmlMarker = new GMarker(new GLatLng(tab[i].lat, tab[i].lng), {icon:kicon,zIndexProcess:importNQ.passeDessus});
				
				kmlMarker.desc = '<div class="infosBox2 '+((ie == true)?'':'border')+'"><div class="close"  onclick="gmapNQ.map.closeExtInfoWindow();"></div><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr> <td rowspan="2" align="center" width="70"><img src="/sd_img/img_parcours.jpg" alt="img" /></td><td style="padding: 14px 10px 4px 0;" align="left"><p class="title">'+tab[i].name+'</p></td></tr><tr><td height="30" align="right" style="padding-right: 10px;"><a href="'+tab[i].link+'"><img src="/sd_img/bulle_gmap/en_savoir_plus.png" alt="plus" /></a></td></tr></table></div>';
				
				kmlMarker.indice = importNQ.list_marker4.length;
				
				// Evenements charge
				GEvent.addListener(kmlMarker, 'click', function() {
						importNQ.showInfoMarkerBis(this.indice,this.desc,importNQ.list_marker4);  
				}); 
				 
				
					
				//gmapNQ.map.addOverlay(kmlMarker);
				
					importNQ.list_marker4.push(kmlMarker);
					importNQ.list_marker_tri["3_regroup"][importNQ.list_marker_tri["3_regroup"].length] = kmlMarker;
			
			
		}
		if(tab.length != 0)
		{
				var styleRegroup4 = [{
							url: "/sd_img/icones_gmap/icone_parcours.png",
							width: 27,
							height: 27,
							opt_anchor: importNQ.ancreTexteRegroup,
							opt_textColor: importNQ.colorTexteRegroup ,
							style:importNQ.styleTexteRegroup
						  },
						  {
							url: "/sd_img/icones_gmap/icone_parcours.png",
							width: 27,
							height: 27,
							opt_anchor: importNQ.ancreTexteRegroup,
							opt_textColor: importNQ.colorTexteRegroup ,
							style:importNQ.styleTexteRegroup
						  },
						  {
							url: "/sd_img/icones_gmap/icone_parcours.png",
							width: 27,
							height: 27,
							opt_anchor: importNQ.ancreTexteRegroup,
							opt_textColor: importNQ.colorTexteRegroup ,
							style:importNQ.styleTexteRegroup
						  },
						  {
							url: "/sd_img/icones_gmap/icone_parcours.png",
							width: 27,
							height: 27,
							opt_anchor: importNQ.ancreTexteRegroup,
							opt_textColor: importNQ.colorTexteRegroup ,
							style:importNQ.styleTexteRegroup
						  },
						  {
							url: "/sd_img/icones_gmap/icone_parcours.png",
							width: 27,
							height: 27,
							opt_anchor: importNQ.ancreTexteRegroup,
							opt_textColor: importNQ.colorTexteRegroup ,
							style:importNQ.styleTexteRegroup
						  }];
			
				//importNQ.markerClusterer4 = new MarkerClusterer(gmapNQ.map, importNQ.list_marker4, {styles: styleRegroup4});
				
				importNQ.centreCarteWithArrayMarkerBis();
		}
},

centreCarteWithArrayMarkerBis : function(){
	var temp = [];
	for(var i = 0 ; i < importNQ.list_marker1.length; i++){
		temp.push(importNQ.list_marker1[i].getLatLng());	
	}
	for(var i = 0 ; i < importNQ.list_marker2.length; i++){
		temp.push(importNQ.list_marker2[i].getLatLng());	
	}
	for(var i = 0 ; i < importNQ.list_marker3.length; i++){
		temp.push(importNQ.list_marker3[i].getLatLng());	
	}
	for(var i = 0 ; i < importNQ.list_marker4.length; i++){
		temp.push(importNQ.list_marker4[i].getLatLng());	
	}
	var poly = new GPolyline(temp, "#7cab0f", 4,1);
	var boundMarkers = poly.getBounds();
	
	if(boundMarkers != null){
		var zoom = gmapNQ.map.getBoundsZoomLevel(boundMarkers);
			if(gmapNQ.map.getBoundsZoomLevel(boundMarkers) > 17){
				zoom = 17;
			}
		gmapNQ.map.setCenter(boundMarkers.getCenter(),zoom);
	}
},

showInfoMarkerBis : function (indice,info,tab)
{
	if(typeof(gmapNQ.map.closeExtInfoWindow) == "function"){
		gmapNQ.map.closeExtInfoWindow();
	}
	
		//info.replace("##CLICKFERMETURE##", "alert('ok')");
	tab[indice].openExtInfoWindow(gmapNQ.map,"custom_info_window_red",info,{beakOffset: 3}); 
	gmapNQ.map.setCenter(new GLatLng(tab[indice].getLatLng().lat(),tab[indice].getLatLng().lng()),gmapNQ.map.getZoom());
	
	/*if(gmapNQ.map.getZoom()> 14 ){
		gmapNQ.map.setCenter(new GLatLng(tab[indice].getLatLng().lat(),tab[indice].getLatLng().lng()),gmapNQ.map.getZoom());
		
		
	} else {
		gmapNQ.map.setCenter(new GLatLng(tab[indice].getLatLng().lat(),tab[indice].getLatLng().lng()),14);
	}*/
	


									
},

toogleIconeHide : function(type,cache){
	
	switch(type){
			case 'parcours':
					
				if(cache){
					if(typeof(importNQ.markerClusterer1.clearMarkers) == 'function'){
						importNQ.markerClusterer1.clearMarkers();
					}
				} else {
					if(typeof(importNQ.markerClusterer1.addMarkers) == 'function'){
						var temp = [];
						for(var i = 0 ; i < importNQ.list_marker1.length ; i++){
							temp.push(importNQ.list_marker1[i]);	
						}
						importNQ.markerClusterer1.addMarkers(temp);
					}
					
				}
				break;
			case 'customer':
				if(cache){
					if(typeof(importNQ.markerClusterer2.clearMarkers) == 'function'){
						importNQ.markerClusterer2.clearMarkers();
					}
				} else {
					if(typeof(importNQ.markerClusterer2.addMarkers) == 'function'){
						var temp = [];
						for(var i = 0 ; i < importNQ.list_marker2.length ; i++){
							temp.push(importNQ.list_marker2[i]);	
						}
						importNQ.markerClusterer2.addMarkers(temp);
					}
				}
				break;
			case 'club':
				if(cache){
					if(typeof(importNQ.markerClusterer3.clearMarkers) == 'function'){
						importNQ.markerClusterer3.clearMarkers();
					}
				} else {
					if(typeof(importNQ.markerClusterer3.addMarkers) == 'function'){
						var temp = [];
						for(var i = 0 ; i < importNQ.list_marker3.length ; i++){
							temp.push(importNQ.list_marker3[i]);	
						}
						importNQ.markerClusterer3.addMarkers(temp);
					}
				}
				break;
			case 'event':
				if(cache){
					if(typeof(importNQ.markerClusterer4.clearMarkers) == 'function'){
						importNQ.markerClusterer4.clearMarkers();
					}
				} else {
					if(typeof(importNQ.markerClusterer4.addMarkers) == 'function'){
						var temp = [];
						for(var i = 0 ; i < importNQ.list_marker4.length ; i++){
							temp.push(importNQ.list_marker4[i]);	
						}
						importNQ.markerClusterer4.addMarkers(temp);
					}
				}
				break;
		}
		
},


parcoursEvent: function(tab,clear)
{
	if(clear){
		
		if(typeof(importNQ.markerClusterer1.clearMarkers) == 'function'){
			importNQ.markerClusterer1.clearMarkers();
		}
		importNQ.list_marker = [];
		importNQ.list_marker_tri["2_regroup"]= [];
	}
	
			var kicon = new GIcon();
			kicon.image = "/sd_img/icones_gmap/icone_parcours.png";
			kicon.iconSize = new GSize(27,27);
			kicon.shadowSize= new GSize(0,0);
			kicon.iconAnchor = new GPoint(13, 22);
			kicon.infoWindowAnchor = new GPoint(85,-130);
		
			bob = tab;
			
			/*{id_category:id_category,lat:lat,lng:lng,id_parcours:id_parcours,name:name,level:level,distance:distance,duration:duration,t_accessibilities:t_accessibilities}*/
			//alert("longeur : "+tab.length);
			
			 var strChUserAgent = navigator.userAgent;
									 var intSplitStart = strChUserAgent.indexOf("(",0);
									 var intSplitEnd = strChUserAgent.indexOf(")",0);
									 var strChStart = strChUserAgent.substring(0,intSplitStart);
									 var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
									 var strChEnd = strChUserAgent.substring(strChEnd);
									
									  var ie = false ;
									 if(strChMid.indexOf("MSIE") != -1)
									 ie = true; 
									 
			for(var i = 0 ; i < tab.length; i++){
				
				var imgAccessibilities = "";
				for(var y in tab[i].t_accessibilities ){
					imgAccessibilities += "<img src='"+tab[i].t_accessibilities[y].image+"' alt='"+tab[i].t_accessibilities[y].name+"'/>";
					
				}
			
				var kmlMarker = new GMarker(new GLatLng(tab[i].lat, tab[i].lng), {icon:kicon,zIndexProcess:importNQ.passeDessus});
				kmlMarker.id = tab[i].id_parcours;
				
				kmlMarker.desc = '<div class="infosBox2 '+((ie == true)?'':'border')+'"><div class="close" onclick="gmapNQ.map.closeExtInfoWindow();"></div><div class="pointer"></div><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td rowspan="2" width="70" align="center"><img src="/sd_img/img_parcours.jpg" alt="img" /></td><td style="padding: 14px 10px 4px 0; line-height: 18px;" align="left"><p class="title">'+tab[i].name+'</p>Type de parcours : <i>'+tab[i].name_category+'</i><br /> Accessibilit&eacute; : '+imgAccessibilities+'<br />Difficult&eacute; : <img src="/sd_img/integre/compte/difficulte_small_white_0'+tab[i].level+'.png" alt="0'+tab[i].level+'" style="margin-bottom: -3px;" /><br />Distance : <i>'+tab[i].distance+'</i><br />Dur&eacute;e : <i>'+tab[i].duration+'</i></td></tr><tr><td height="30" align="right" style="padding-right: 10px;"><a href="#" onclick="click_parcours('+tab[i].id_parcours+');return false;"><img src="/sd_img/integre/compte/valid_parcours.png" alt="valider ce parcours" /></a></td></tr></table></div>';
				
				 
				kmlMarker.indice = importNQ.list_marker.length;
				
				// Evenements charge
				GEvent.addListener(kmlMarker, 'click', function() {
						importNQ.showInfoMarkerBis(this.indice,this.desc,importNQ.list_marker);  
				}); 
				 
				
					
				//gmapNQ.map.addOverlay(kmlMarker);
				
					importNQ.list_marker.push(kmlMarker);
					
			importNQ.list_marker_tri["2_regroup"][importNQ.list_marker_tri["2_regroup"].length] = kmlMarker;
			
		}
	
		if(tab.length != 0)
		{
			var styleRegroup1 = [{
					url: "/sd_img/icones_gmap/icone_parcours.png",
					width: 27,
					height: 27,
					opt_anchor: [-5,18],
					opt_textColor: '#FFFFFF' ,
					style:'background-color: rgb(255, 0, 0);height:10px;line-height:10px;padding-left:2px;padding-right:2px;padding-top:0px;padding-bottom:0px;'
				  },
				  {
					url: "/sd_img/icones_gmap/icone_parcours.png",
					width: 27,
					height: 27,
					opt_anchor: [-5,18],
					opt_textColor: '#FFFFFF' ,
					style:'background-color: rgb(255, 0, 0);height:10px;line-height:10px;padding-left:2px;padding-right:2px;padding-top:0px;padding-bottom:0px;'
				  },
				  {
					url: "/sd_img/icones_gmap/icone_parcours.png",
					width: 27,
					height: 27,
					opt_anchor: [-5,18],
					opt_textColor:'#FFFFFF' ,
					style:'background-color: rgb(255, 0, 0);height:10px;line-height:10px;padding-left:2px;padding-right:2px;padding-top:0px;padding-bottom:0px;'
				  },
				  {
					url: "/sd_img/icones_gmap/icone_parcours.png",
					width: 27,
					height: 27,
					opt_anchor: [-5,18],
					opt_textColor: '#FFFFFF' ,
					style:'background-color: rgb(255, 0, 0);height:10px;line-height:10px;padding-left:2px;padding-right:2px;padding-top:0px;padding-bottom:0px;'
				  },
				  {
					url: "/sd_img/icones_gmap/icone_parcours.png",
					width: 27,
					height: 27,
					opt_anchor: [-5,18],
					opt_textColor: '#FFFFFF' ,
					style:'background-color: rgb(255, 0, 0);height:10px;line-height:10px;padding-left:2px;padding-right:2px;padding-top:0px;padding-bottom:0px;'
				  }];
		
			
			importNQ.markerClusterer1 = new MarkerClusterer(gmapNQ.map, importNQ.list_marker, {styles: styleRegroup1});
			importNQ.centreCarteWithArrayMarkerBis();
		}
		
},

ouvreBulle : function (id_parcours){
	
	for(var i = 0 ; i <importNQ.list_marker.length ; i++){
		
		if(importNQ.list_marker[i].id == id_parcours){
			importNQ.showInfoMarkerBis(importNQ.list_marker[i].indice,importNQ.list_marker[i].desc,importNQ.list_marker);  
		}
	}
}


}





