	var map = null;
	var center = new GLatLng(45.043678,3.885249);
	var initZoom = 9;
	var id = '';
	if(typeof(marqueblanche)=='undefined'){}else{
		if(marqueblanche==true){
			var center = new GLatLng(44.925007,3.709774);
			var initZoom = 10;
		}
		if(marqueblanche==2){
			var center = new GLatLng(45.141831,4.123265);
			var initZoom = 10;
		}
	}
	//Création de marker pour les fiches
	function createMarker(point, mess, ico) {
		var infoTabs = [
						new GInfoWindowTab("Nom", mess)
						];
		var marker = new GMarker(point, ico);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowTabsHtml(infoTabs);
		});
		return marker;
	}
	
	//Création de marker pour l'OT avec les coordonnées
	function createMarkerOT(point, mess, mess2, ico) {
		var infoTabs = [
						new GInfoWindowTab("Nom", mess),
						new GInfoWindowTab("Coordonnées", mess2)
						];
		var marker = new GMarker(point, ico);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowTabsHtml(infoTabs);
		});
		return marker;
	}
	
	function showAddress(address,mess,mess2) {
	 // alert(address);
	 if(mess == "") mess = address;
	 if(mess2 == "") mess2 = address;
	  var geocoder = new GClientGeocoder();
	  geocoder.getLatLng(
		address + " France",
		function(point) {
		  if (!point) {
			alert("Coordonnées inconnues");
		  } else {
			map.setCenter(point, 16);
			map.addOverlay(createMarker(point, mess, mess2));
		  }
		}
	  );
	}
	
	function showPoint(cat){
		//alert(cat);
		map.clearOverlays();
		administrative();
		var tmpCat = convCatTUrl(cat);
		//alert("http://"+gUrl+"/_includes/google-maps/mnet-gMaps.asp?"+tmpCat);
		map.setCenter(center, initZoom);
		afficheResultat(tmpCat,cat,'','','');
	}
	function afficheResultat(paramsUrl,cat,cLat,cLng,proxim){
		//alert("http://"+gUrl+"/images/scripts/google-maps/mnet-gMaps.php?"+paramsUrl);
		//alert(paramsUrl);
		var xhr_object = null; 
		if(window.XMLHttpRequest) // Firefox 
			xhr_object = new XMLHttpRequest(); 
		else if(window.ActiveXObject) // Internet Explorer 
			xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
		else { // XMLHttpRequest non supporté par le navigateur 
			alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
			return; 
		} 
		xhr_object.open("POST", "http://"+gUrl+"/images/scripts/google-maps/mnet-gMaps.php", true); 
		xhr_object.onreadystatechange = function() { 
			if(xhr_object.readyState == 4) {
				//var data = xhr_object.responseText;
				//alert(eval(xhr_object.responseText));
				//document.getElementById("msg").innerHTML=paramsUrl+'<br>'+xhr_object.responseText;
				parseResponse(xhr_object.responseText); 
			}
		} 
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		xhr_object.send(paramsUrl); 
		//GDownloadUrl("http://"+gUrl+"/images/scripts/google-maps/mnet-gMaps.php?"+paramsUrl,
//						function(data, responseCode) {
//							//alert(data);
//							var xml = GXml.parse(data);
//							//var contenu_html = xml.documentElement.getElementsByTagName("contenu");
//							var markers = xml.documentElement.getElementsByTagName("marker");
//							if(markers.length == 0) alert('Nous ne parvenons pas a localiser les prestataires de votre choix !');
//							/*if(document.getElementById('nb') != null){
//								document.getElementById('nb').innerHTML = 'Nombre de résultat : ' + markers.length;
//							}*/
//							//alert(markers.length);
//							for (var i = 0; i < markers.length; i++) {
//								var point = new GLatLng((markers[i].getAttribute("lat")),
//								(markers[i].getAttribute("lng")));
//
//								var icontype = markers[i].getAttribute("icontype");
//								var Ref = markers[i].getAttribute("label");
//
//								var html = decode(markers[i].getElementsByTagName("infowindow"));
//								//if(proxim != '') document.getElementById('proximite').innerHTML += html + '<hr>';
//								//alert(icontype);
//								//var html2 = decode(markers[i].getElementsByTagName("infowindow2")); 
//								map.addOverlay(createMarker(point,html,iconStyle(icontype)));//, icontype,cat,i
//							}
//							if(markers.length == 1) map.setCenter(point, 12);
//							//map.setCenter(point, 12);
//							if(cLat != '' && cLng != ''){
//								var point = new GLatLng((cLat),(cLng));
//								map.setCenter(point);
//							}
//						}
//					);
	}
	
	function parseResponse(data) {
			//alert(data);
			var xml = GXml.parse(data);
			//var contenu_html = xml.documentElement.getElementsByTagName("contenu");
			var markers = xml.documentElement.getElementsByTagName("marker");
			if(markers.length == 0) alert('Nous ne parvenons pas a localiser les prestataires de votre choix !');
			/*if(document.getElementById('nb') != null){
				document.getElementById('nb').innerHTML = 'Nombre de résultat : ' + markers.length;
			}*/
			//alert(markers.length);
			for (var i = 0; i < markers.length; i++) {
				var point = new GLatLng((markers[i].getAttribute("lat")),
				(markers[i].getAttribute("lng")));

				var icontype = markers[i].getAttribute("icontype");
				var Ref = markers[i].getAttribute("label");

				var html = decode(markers[i].getElementsByTagName("infowindow"));
				//if(proxim != '') document.getElementById('proximite').innerHTML += html + '<hr>';
				//alert(icontype);
				//var html2 = decode(markers[i].getElementsByTagName("infowindow2")); 
				map.addOverlay(createMarker(point,html,iconStyle(icontype)));//, icontype,cat,i
			}
			if(markers.length == 1) map.setCenter(point, 12);
			//map.setCenter(point, 12);
			/*if(cLat != '' && cLng != ''){
				var point = new GLatLng((cLat),(cLng));
				map.setCenter(point);
			}*/
		}
	
    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"),{mapTypes:[G_NORMAL_MAP,G_HYBRID_MAP,G_SATELLITE_MAP,G_SATELLITE_3D_MAP]});
		map.addControl(new GLargeMapControl());
		overviewmapcontrol = new GOverviewMapControl();
        map.addControl(overviewmapcontrol);
        map.addControl(new GMapTypeControl());
		
		GEvent.addListener(map, "moveend", 
			function() {
				var tmpcenter = map.getCenter();
				//document.getElementById("message").innerHTML = tmpcenter.toString();
				/*if(tmpcenter.lng()>7.65) map.setCenter(center, initZoom);
				if(tmpcenter.lng()<5.88) map.setCenter(center, initZoom);
				if(tmpcenter.lat()>49.52) map.setCenter(center, initZoom);
				if(tmpcenter.lat()<48.52) map.setCenter(center, initZoom);*/
			});
		
		map.setCenter(center, initZoom);
		
		// poisitionne le CDT/OT etc.
		var point = new GLatLng(45.047548,3.88334);
		map.addOverlay(createMarker(point,"<p>H&ocirc;tel du d&eacute;partement<br>1, Place Monseigneur de Galard - BP 332<br>43012 Le Puy-en-Velay Cedex<br>T&eacute;l. 04 71 07 41 65<br>E-mail : contact@auvergnevacances.com</p>",iconStyle('Info')));
		administrative();
      }
    }
	function iconStyle(cat){
		var tmpCat = cat;
		if(tmpCat == '') tmpCat = 'Default';
		if(!isNaN(cat)) tmpCat = 'Default';
		if(id == cat) tmpCat = 'Default';
		if(cat.lastIndexOf(",")>1) tmpCat = 'Default';
		var icon = new GIcon();
		icon.image = "/images/cartographie/gm"+tmpCat+".png";
		icon.shadow = "/images/cartographie/gm-shadow.png";
		icon.iconSize = new GSize(20, 40);
		icon.shadowSize = new GSize(40, 40);
		icon.iconAnchor = new GPoint(10, 40);
		icon.infoWindowAnchor = new GPoint(10, 1);
		icon.infoShadowAnchor = new GPoint(20, 1);
		return icon;
	}
	function decode(a) {
		var b = "";
		if (a.length > 0) {
			if (a[0]) {
				if (a[0].firstChild) {
				b = a[0].firstChild.nodeValue;
			}
		}
	}
	return b;
	}
	function administrative(){
		var points = [];
		points.push(new GLatLng(45.38890741,4.16209835));
		points.push(new GLatLng(45.39170324,4.18081101));
		points.push(new GLatLng(45.38221034,4.2008618));
		points.push(new GLatLng(45.38819487,4.22219731));
		points.push(new GLatLng(45.3897238,4.22655447));
		points.push(new GLatLng(45.38683390000001,4.23669771));
		points.push(new GLatLng(45.38500360000001,4.23954649));
		points.push(new GLatLng(45.38528162,4.24434354));
		points.push(new GLatLng(45.37169038,4.25716725));
		points.push(new GLatLng(45.37492738,4.27080053));
		points.push(new GLatLng(45.36266518000001,4.27010447));
		points.push(new GLatLng(45.35976824,4.27162318));
		points.push(new GLatLng(45.35907422,4.28975089));
		points.push(new GLatLng(45.36403714,4.2956447));
		points.push(new GLatLng(45.36284052000001,4.303810380000001));
		points.push(new GLatLng(45.37098797000001,4.30819787));
		points.push(new GLatLng(45.37001341,4.31292522));
		points.push(new GLatLng(45.36616578000001,4.3364306));
		points.push(new GLatLng(45.36431925,4.34053832));
		points.push(new GLatLng(45.34938401000001,4.35980532));
		points.push(new GLatLng(45.33711234,4.36800838));
		points.push(new GLatLng(45.33748553,4.3633763));
		points.push(new GLatLng(45.31848553,4.33165));
		points.push(new GLatLng(45.30416561,4.35230295));
		points.push(new GLatLng(45.30128378000001,4.36625006));
		points.push(new GLatLng(45.29898186,4.36916226));
		points.push(new GLatLng(45.29187264,4.36126513));
		points.push(new GLatLng(45.28536977000001,4.35960013));
		points.push(new GLatLng(45.27771245999999,4.35018229));
		points.push(new GLatLng(45.25989010000001,4.371183990000001));
		points.push(new GLatLng(45.26196351000001,4.37491701));
		points.push(new GLatLng(45.25753587,4.38717716));
		points.push(new GLatLng(45.26354283000001,4.39131105));
		points.push(new GLatLng(45.27360147,4.41565684));
		points.push(new GLatLng(45.2754085,4.41965016));
		points.push(new GLatLng(45.27470570000001,4.43407577));
		points.push(new GLatLng(45.25955118,4.44547042));
		points.push(new GLatLng(45.25626479,4.45404658));
		points.push(new GLatLng(45.25345776,4.45689535));
		points.push(new GLatLng(45.2472443,4.46794631));
		points.push(new GLatLng(45.23888393000001,4.47452781));
		points.push(new GLatLng(45.23771016,4.47894061));
		points.push(new GLatLng(45.23612259,4.48193619));
		points.push(new GLatLng(45.2231737,4.48930559));
		points.push(new GLatLng(45.21653022999999,4.48620885));
		points.push(new GLatLng(45.21592267000001,4.48132166));
		points.push(new GLatLng(45.21067988000001,4.47693081));
		points.push(new GLatLng(45.19832006,4.47855491));
		points.push(new GLatLng(45.19546479,4.48055762));
		points.push(new GLatLng(45.17989734,4.47257867));
		points.push(new GLatLng(45.17537074,4.46038045));
		points.push(new GLatLng(45.16887129,4.45814641));
		points.push(new GLatLng(45.1619626,4.44810269));
		points.push(new GLatLng(45.14557623,4.44334928));
		points.push(new GLatLng(45.14217968,4.44356268));
		points.push(new GLatLng(45.12946231,4.44842023));
		points.push(new GLatLng(45.12536153,4.45584052));
		points.push(new GLatLng(45.11889093,4.45728452));
		points.push(new GLatLng(45.11912302,4.45266697));
		points.push(new GLatLng(45.12036496000001,4.43892372));
		points.push(new GLatLng(45.11169385,4.44201468));
		points.push(new GLatLng(45.10990176000001,4.439761170000001));
		points.push(new GLatLng(45.10946122000001,4.43641386));
		points.push(new GLatLng(45.11751464,4.42784783));
		points.push(new GLatLng(45.13039641000001,4.42950153));
		points.push(new GLatLng(45.1408281,4.41115255));
		points.push(new GLatLng(45.13948366999999,4.39781597));
		points.push(new GLatLng(45.14356569,4.38095431));
		points.push(new GLatLng(45.14436728,4.37655884));
		points.push(new GLatLng(45.12808046,4.37256776));
		points.push(new GLatLng(45.11809006,4.39755868));
		points.push(new GLatLng(45.10810434,4.39984346));
		points.push(new GLatLng(45.10362884,4.38783552));
		points.push(new GLatLng(45.1010705,4.38457633));
		points.push(new GLatLng(45.10437186000002,4.37147193));
		points.push(new GLatLng(45.10042577,4.36386845));
		points.push(new GLatLng(45.09957463,4.35922681));
		points.push(new GLatLng(45.08751423999999,4.36282805));
		points.push(new GLatLng(45.08625034000001,4.35861582));
		points.push(new GLatLng(45.07728313,4.35493621));
		points.push(new GLatLng(45.07504507,4.34637319));
		points.push(new GLatLng(45.06524841000002,4.34773386));
		points.push(new GLatLng(45.05539338,4.36070777));
		points.push(new GLatLng(45.05600185,4.3702385));
		points.push(new GLatLng(45.05286739,4.37873091));
		points.push(new GLatLng(45.03938458,4.38087666));
		points.push(new GLatLng(45.03617873,4.37905979));
		points.push(new GLatLng(45.03556173000001,4.36512717));
		points.push(new GLatLng(45.03057737,4.35375383));
		points.push(new GLatLng(45.02765725,4.35154186));
		points.push(new GLatLng(45.02994294000001,4.31808739));
		points.push(new GLatLng(45.02003982,4.29968228));
		points.push(new GLatLng(45.01702442000001,4.29720384));
		points.push(new GLatLng(44.99391752,4.29214359));
		points.push(new GLatLng(44.98588443,4.30731752));
		points.push(new GLatLng(44.9809314,4.30998238));
		points.push(new GLatLng(44.9795787,4.31323067));
		points.push(new GLatLng(44.97316114,4.31435966));
		points.push(new GLatLng(44.96895031,4.29765808));
		points.push(new GLatLng(44.96680669,4.29422147));
		points.push(new GLatLng(44.96670756,4.2794155));
		points.push(new GLatLng(44.95988079,4.2565822));
		points.push(new GLatLng(44.96780686000001,4.23523215));
		points.push(new GLatLng(44.96575097000001,4.23181626));
		points.push(new GLatLng(44.962881,4.22384865));
		points.push(new GLatLng(44.94631939,4.22216116));
		points.push(new GLatLng(44.936974,4.21670258));
		points.push(new GLatLng(44.93357516,4.216575470000001));
		points.push(new GLatLng(44.93121427,4.21307614));
		points.push(new GLatLng(44.91419281000001,4.19004156));
		points.push(new GLatLng(44.91214093,4.19168281));
		points.push(new GLatLng(44.90833246,4.18431562));
		points.push(new GLatLng(44.88651436,4.17946716));
		points.push(new GLatLng(44.881949,4.16615438));
		points.push(new GLatLng(44.87397287,4.15663263));
		points.push(new GLatLng(44.8740531,4.13689672));
		points.push(new GLatLng(44.87811177,4.11794559));
		points.push(new GLatLng(44.87856657,4.1131643));
		points.push(new GLatLng(44.87033267,4.08790249));
		points.push(new GLatLng(44.86919032,4.08447608));
		points.push(new GLatLng(44.86981223,4.077562390000001));
		points.push(new GLatLng(44.86977731000001,4.07291814));
		points.push(new GLatLng(44.87276245,4.03890031));
		points.push(new GLatLng(44.8661711,4.02873085));
		points.push(new GLatLng(44.84586348,4.02004823));
		points.push(new GLatLng(44.8438631,4.02379435));
		points.push(new GLatLng(44.83462329,4.02858573));
		points.push(new GLatLng(44.8318073,4.02559268));
		points.push(new GLatLng(44.83050133,4.0162483));
		points.push(new GLatLng(44.83470826,4.00935747));
		points.push(new GLatLng(44.8237264,3.99904274));
		points.push(new GLatLng(44.83171144,3.98548677));
		points.push(new GLatLng(44.82629363,3.981395580000001));
		points.push(new GLatLng(44.81650151,3.98709878));
		points.push(new GLatLng(44.81167625,3.98188854));
		points.push(new GLatLng(44.81391498,3.97835233));
		points.push(new GLatLng(44.82018683,3.967324580000001));
		points.push(new GLatLng(44.82975705,3.96317876));
		points.push(new GLatLng(44.82839135,3.9587776));
		points.push(new GLatLng(44.82434752,3.94555166));
		points.push(new GLatLng(44.82101667,3.944469939999999));
		points.push(new GLatLng(44.79808756,3.93682416));
		points.push(new GLatLng(44.77885586,3.91802331));
		points.push(new GLatLng(44.77098374000001,3.92433138));
		points.push(new GLatLng(44.76962583,3.924923049999999));
		points.push(new GLatLng(44.7676828,3.92178669));
		points.push(new GLatLng(44.7665398,3.91365991));
		points.push(new GLatLng(44.76546405,3.90898268));
		points.push(new GLatLng(44.76280142,3.90010697));
		points.push(new GLatLng(44.75287795,3.89572699));
		points.push(new GLatLng(44.75530874,3.8725012));
		points.push(new GLatLng(44.74386949,3.862531390000001));
		points.push(new GLatLng(44.74552904,3.85831005));
		points.push(new GLatLng(44.74712836,3.839418660000001));
		points.push(new GLatLng(44.75464294,3.829911720000001));
		points.push(new GLatLng(44.75725521,3.83297359));
		points.push(new GLatLng(44.76879801,3.84280355));
		points.push(new GLatLng(44.77213037,3.84185761));
		points.push(new GLatLng(44.77527898,3.833253130000001));
		points.push(new GLatLng(44.77255971,3.81937709));
		points.push(new GLatLng(44.76981717,3.8173471));
		points.push(new GLatLng(44.76588586,3.810639070000001));
		points.push(new GLatLng(44.76758068,3.806996380000001));
		points.push(new GLatLng(44.77019741,3.80369333));
		points.push(new GLatLng(44.78649191,3.79734957));
		points.push(new GLatLng(44.80231562,3.77196087));
		points.push(new GLatLng(44.80038394,3.764140820000001));
		points.push(new GLatLng(44.80633016,3.75995822));
		points.push(new GLatLng(44.81287474,3.761691760000001));
		points.push(new GLatLng(44.81605616,3.75983908));
		points.push(new GLatLng(44.8175387,3.7557818));
		points.push(new GLatLng(44.83779665,3.74387992));
		points.push(new GLatLng(44.84011667,3.735378380000001));
		points.push(new GLatLng(44.83673719,3.73592603));
		points.push(new GLatLng(44.83192467,3.719472210000001));
		points.push(new GLatLng(44.83608476,3.70178523));
		points.push(new GLatLng(44.83180459,3.69433712));
		points.push(new GLatLng(44.82878038,3.66636471));
		points.push(new GLatLng(44.83142165,3.66365895));
		points.push(new GLatLng(44.83612914,3.65742394));
		points.push(new GLatLng(44.83775239,3.66159657));
		points.push(new GLatLng(44.84127981,3.66973305));
		points.push(new GLatLng(44.85412348,3.67364482));
		points.push(new GLatLng(44.85702211,3.67124785));
		points.push(new GLatLng(44.86097293,3.664385530000001));
		points.push(new GLatLng(44.87050551,3.660132350000001));
		points.push(new GLatLng(44.87713491,3.64429841));
		points.push(new GLatLng(44.87857219,3.64066286));
		points.push(new GLatLng(44.87730936,3.632536120000001));
		points.push(new GLatLng(44.87982351,3.62986144));
		points.push(new GLatLng(44.87481369,3.61423493));
		points.push(new GLatLng(44.87933615,3.60827778));
		points.push(new GLatLng(44.87938348,3.603369729999999));
		points.push(new GLatLng(44.87579948,3.595027050000001));
		points.push(new GLatLng(44.85871157,3.5978424));
		points.push(new GLatLng(44.83605028,3.586876150000001));
		points.push(new GLatLng(44.82939716,3.58973605));
		points.push(new GLatLng(44.82611514,3.582457579999999));
		points.push(new GLatLng(44.83418468,3.56876889));
		points.push(new GLatLng(44.82567102,3.55533456));
		points.push(new GLatLng(44.82805885,3.541102630000001));
		points.push(new GLatLng(44.82481604,3.512201310000001));
		points.push(new GLatLng(44.82423762,3.50737344));
		points.push(new GLatLng(44.81151569,3.49309441));
		points.push(new GLatLng(44.80847924,3.490996));
		points.push(new GLatLng(44.80647939,3.4869619));
		points.push(new GLatLng(44.80968219,3.478245470000001));
		points.push(new GLatLng(44.82193756,3.47001465));
		points.push(new GLatLng(44.83123592,3.4561713));
		points.push(new GLatLng(44.84132333,3.457586930000001));
		points.push(new GLatLng(44.85176593,3.445201019999999));
		points.push(new GLatLng(44.85422876,3.441797390000001));
		points.push(new GLatLng(44.87699422,3.43657827));
		points.push(new GLatLng(44.88025023,3.4357086));
		points.push(new GLatLng(44.89482897,3.42151614));
		points.push(new GLatLng(44.90503731,3.41781573));
		points.push(new GLatLng(44.90843428,3.41926123));
		points.push(new GLatLng(44.91567258,3.41303342));
		points.push(new GLatLng(44.91778535,3.41037741));
		points.push(new GLatLng(44.91996537,3.41376185));
		points.push(new GLatLng(44.94484723,3.412835750000001));
		points.push(new GLatLng(44.9480063,3.41081917));
		points.push(new GLatLng(44.95685937,3.40323576));
		points.push(new GLatLng(44.95277644000001,3.39090729));
		points.push(new GLatLng(44.95659786,3.37777795));
		points.push(new GLatLng(44.96893415,3.37167196));
		points.push(new GLatLng(44.97572519,3.37270913));
		points.push(new GLatLng(44.97417664,3.36899244));
		points.push(new GLatLng(44.97141394000001,3.36135166));
		points.push(new GLatLng(44.97219508,3.35663902));
		points.push(new GLatLng(44.97510723,3.34807425));
		points.push(new GLatLng(44.98526518,3.34589938));
		points.push(new GLatLng(44.99017147,3.36323003));
		points.push(new GLatLng(45.00219327,3.37146481));
		points.push(new GLatLng(45.00479446,3.36841907));
		points.push(new GLatLng(45.00222174,3.35479153));
		points.push(new GLatLng(45.01284327,3.34522019));
		points.push(new GLatLng(45.01008248000001,3.32705992));
		points.push(new GLatLng(45.02534833,3.33717579));
		points.push(new GLatLng(45.02691552999999,3.33296576));
		points.push(new GLatLng(45.02177257999999,3.31141371));
		points.push(new GLatLng(45.02362449,3.30745048));
		points.push(new GLatLng(45.02683381000001,3.30564162));
		points.push(new GLatLng(45.03566028,3.29822076));
		points.push(new GLatLng(45.04513472,3.303180740000001));
		points.push(new GLatLng(45.05513138,3.29981439));
		points.push(new GLatLng(45.08086088999999,3.31202849));
		points.push(new GLatLng(45.08612347,3.308957390000001));
		points.push(new GLatLng(45.08925748000001,3.29198474));
		points.push(new GLatLng(45.09361116000001,3.285733350000001));
		points.push(new GLatLng(45.0967701,3.286625449999999));
		points.push(new GLatLng(45.10275992,3.28364093));
		points.push(new GLatLng(45.10643938,3.29620354));
		points.push(new GLatLng(45.10655279,3.30076599));
		points.push(new GLatLng(45.10134633,3.30670939));
		points.push(new GLatLng(45.09603838000001,3.32409348));
		points.push(new GLatLng(45.09484689000001,3.32858112));
		points.push(new GLatLng(45.10419207,3.36145752));
		points.push(new GLatLng(45.10483805,3.35185318));
		points.push(new GLatLng(45.11142772000001,3.34948323));
		points.push(new GLatLng(45.11118589,3.33034589));
		points.push(new GLatLng(45.11814205,3.31397761));
		points.push(new GLatLng(45.11814428,3.31372353));
		points.push(new GLatLng(45.12399838000001,3.30153827));
		points.push(new GLatLng(45.12217113,3.2922941));
		points.push(new GLatLng(45.12042649,3.2880329));
		points.push(new GLatLng(45.14268609000001,3.276006929999999));
		points.push(new GLatLng(45.15161667,3.28161182));
		points.push(new GLatLng(45.15406178000001,3.267972920000001));
		points.push(new GLatLng(45.17349398000001,3.2613285));
		points.push(new GLatLng(45.18379087000001,3.2629626));
		points.push(new GLatLng(45.19226119000002,3.27097916));
		points.push(new GLatLng(45.20600725,3.27196229));
		points.push(new GLatLng(45.20946041,3.27223547));
		points.push(new GLatLng(45.21609122,3.251612660000001));
		points.push(new GLatLng(45.21559883,3.24693331));
		points.push(new GLatLng(45.2164834,3.24216193));
		points.push(new GLatLng(45.2213946,3.23559715));
		points.push(new GLatLng(45.23853698000001,3.23280575));
		points.push(new GLatLng(45.24560652,3.22277125));
		points.push(new GLatLng(45.26516396,3.22858548));
		points.push(new GLatLng(45.27194302,3.22685966));
		points.push(new GLatLng(45.27214321999999,3.22205947));
		points.push(new GLatLng(45.2812223,3.20929543));
		points.push(new GLatLng(45.27957900000001,3.18561904));
		points.push(new GLatLng(45.27632669000001,3.18504689));
		points.push(new GLatLng(45.26911611,3.164246460000001));
		points.push(new GLatLng(45.28150344,3.169031379999999));
		points.push(new GLatLng(45.28917137,3.161359210000001));
		points.push(new GLatLng(45.29541898,3.1606745));
		points.push(new GLatLng(45.29477167000001,3.15585958));
		points.push(new GLatLng(45.28784127,3.14521755));
		points.push(new GLatLng(45.28612105,3.131608500000001));
		points.push(new GLatLng(45.28487186000001,3.11240985));
		points.push(new GLatLng(45.2909865,3.10110106));
		points.push(new GLatLng(45.29017475,3.0867135));
		points.push(new GLatLng(45.29671567000001,3.085412509999999));
		points.push(new GLatLng(45.30087776,3.0978337));
		points.push(new GLatLng(45.30061017000001,3.10275054));
		points.push(new GLatLng(45.30483987,3.11035598));
		points.push(new GLatLng(45.31142159,3.113456719999999));
		points.push(new GLatLng(45.31614289,3.1006953));
		points.push(new GLatLng(45.32427411000001,3.09166346));
		points.push(new GLatLng(45.3280915,3.09916359));
		points.push(new GLatLng(45.32709345,3.11342107));
		points.push(new GLatLng(45.33048991,3.11401834));
		points.push(new GLatLng(45.3503366,3.11133647));
		points.push(new GLatLng(45.35437611,3.10350606));
		points.push(new GLatLng(45.35135123000001,3.13080577));
		points.push(new GLatLng(45.35449556,3.138967360000001));
		points.push(new GLatLng(45.35077879000001,3.14660729));
		points.push(new GLatLng(45.35113178,3.15125676));
		points.push(new GLatLng(45.35231306,3.18113118));
		points.push(new GLatLng(45.35467055000001,3.17750497));
		points.push(new GLatLng(45.36119524,3.17959343));
		points.push(new GLatLng(45.36489974,3.19286008));
		points.push(new GLatLng(45.36993165,3.19949826));
		points.push(new GLatLng(45.37023533,3.20903741));
		points.push(new GLatLng(45.36721137,3.2114786));
		points.push(new GLatLng(45.37001173000001,3.21586241));
		points.push(new GLatLng(45.36949302000001,3.21866215));
		points.push(new GLatLng(45.38218315,3.222808929999999));
		points.push(new GLatLng(45.39138322000001,3.23550753));
		points.push(new GLatLng(45.39463554,3.23617322));
		points.push(new GLatLng(45.39055222,3.24259326));
		points.push(new GLatLng(45.38980498,3.25585999));
		points.push(new GLatLng(45.39074997,3.26017864));
		points.push(new GLatLng(45.39789956,3.28306695));
		points.push(new GLatLng(45.39960702000001,3.28752749));
		points.push(new GLatLng(45.40460993000001,3.29176417));
		points.push(new GLatLng(45.41486104000001,3.2954155));
		points.push(new GLatLng(45.41838473,3.29577032));
		points.push(new GLatLng(45.42023903,3.29983944));
		points.push(new GLatLng(45.41838812000001,3.30890299));
		points.push(new GLatLng(45.40537837000001,3.32432028));
		points.push(new GLatLng(45.39874228000001,3.32595152));
		points.push(new GLatLng(45.39721050000001,3.33026472));
		points.push(new GLatLng(45.42136219,3.34085599));
		points.push(new GLatLng(45.42111336,3.35245175));
		points.push(new GLatLng(45.42270986,3.35595611));
		points.push(new GLatLng(45.4138583,3.36366198));
		points.push(new GLatLng(45.411493,3.367373520000001));
		points.push(new GLatLng(45.40116511,3.38000481));
		points.push(new GLatLng(45.40321932000001,3.389276080000001));
		points.push(new GLatLng(45.40029327,3.39804519));
		points.push(new GLatLng(45.40329794,3.40655759));
		points.push(new GLatLng(45.40000696,3.418588080000001));
		points.push(new GLatLng(45.39718308000001,3.42023137));
		points.push(new GLatLng(45.4016564,3.42743249));
		points.push(new GLatLng(45.40146574000001,3.45128553));
		points.push(new GLatLng(45.40034033000001,3.4558592));
		points.push(new GLatLng(45.40117424000001,3.460615470000001));
		points.push(new GLatLng(45.40756847,3.46355523));
		points.push(new GLatLng(45.42029118000001,3.47940052));
		points.push(new GLatLng(45.42624806000001,3.49677259));
		points.push(new GLatLng(45.42763190000002,3.501259650000001));
		points.push(new GLatLng(45.41104649,3.5068647));
		points.push(new GLatLng(45.40478649000001,3.51854676));
		points.push(new GLatLng(45.40213388,3.521796740000001));
		points.push(new GLatLng(45.39802734000001,3.548132820000001));
		points.push(new GLatLng(45.39388669,3.555831860000001));
		points.push(new GLatLng(45.39634603,3.56449324));
		points.push(new GLatLng(45.40229402,3.569312340000001));
		points.push(new GLatLng(45.38602668,3.57908828));
		points.push(new GLatLng(45.38277299000001,3.581134699999999));
		points.push(new GLatLng(45.37716896000001,3.5867408));
		points.push(new GLatLng(45.37387983,3.58808355));
		points.push(new GLatLng(45.37116523,3.58617138));
		points.push(new GLatLng(45.35708682,3.59079272));
		points.push(new GLatLng(45.35533893,3.595003880000001));
		points.push(new GLatLng(45.33817351,3.6178183));
		points.push(new GLatLng(45.33890027,3.627352060000001));
		points.push(new GLatLng(45.34844178,3.64088242));
		points.push(new GLatLng(45.35789914000001,3.64538013));
		points.push(new GLatLng(45.36297912,3.66318955));
		points.push(new GLatLng(45.37656039,3.66735728));
		points.push(new GLatLng(45.38183281,3.67262788));
		points.push(new GLatLng(45.38253162000001,3.68178756));
		points.push(new GLatLng(45.3800406,3.68474009));
		points.push(new GLatLng(45.37329359000002,3.69496703));
		points.push(new GLatLng(45.37153698000001,3.70405099));
		points.push(new GLatLng(45.36589366000001,3.699801819999999));
		points.push(new GLatLng(45.36002034000001,3.70177594));
		points.push(new GLatLng(45.36070138,3.70647658));
		points.push(new GLatLng(45.36015043,3.714682));
		points.push(new GLatLng(45.36091084,3.71867009));
		points.push(new GLatLng(45.3595086,3.72291052));
		points.push(new GLatLng(45.35943949000001,3.7320594));
		points.push(new GLatLng(45.35302519,3.74209391));
		points.push(new GLatLng(45.35389282,3.75592346));
		points.push(new GLatLng(45.35595958,3.75888603));
		points.push(new GLatLng(45.35030109000001,3.77152675));
		points.push(new GLatLng(45.35161924,3.78023814));
		points.push(new GLatLng(45.3553182,3.78778723));
		points.push(new GLatLng(45.37179995,3.78715931));
		points.push(new GLatLng(45.38141027,3.79130375));
		points.push(new GLatLng(45.38477403,3.79140612));
		points.push(new GLatLng(45.38516984000001,3.79616639));
		points.push(new GLatLng(45.3916284,3.80596385));
		points.push(new GLatLng(45.38612531,3.81795077));
		points.push(new GLatLng(45.38032015999999,3.8228119));
		points.push(new GLatLng(45.38309983,3.83630447));
		points.push(new GLatLng(45.3695797,3.836054750000001));
		points.push(new GLatLng(45.36630554,3.837319180000001));
		points.push(new GLatLng(45.36984274,3.845239970000001));
		points.push(new GLatLng(45.3596545,3.85671718));
		points.push(new GLatLng(45.35542426,3.87453157));
		points.push(new GLatLng(45.35522415,3.89342634));
		points.push(new GLatLng(45.35708591,3.89740815));
		points.push(new GLatLng(45.34186241,3.90249268));
		points.push(new GLatLng(45.33870008000001,3.90278611));
		points.push(new GLatLng(45.33618309000001,3.90517723));
		points.push(new GLatLng(45.33325247,3.90626796));
		points.push(new GLatLng(45.33511771000001,3.90990556));
		points.push(new GLatLng(45.34180455,3.91933274));
		points.push(new GLatLng(45.35437003,3.91837706));
		points.push(new GLatLng(45.36169851,3.93448825));
		points.push(new GLatLng(45.37139121,3.938739179999999));
		points.push(new GLatLng(45.37405276,3.94761218));
		points.push(new GLatLng(45.37027711,3.961021140000001));
		points.push(new GLatLng(45.37521549,3.973433480000001));
		points.push(new GLatLng(45.3757024,3.978262250000001));
		points.push(new GLatLng(45.37158111,3.985596750000001));
		points.push(new GLatLng(45.36499000000001,3.987122550000001));
		points.push(new GLatLng(45.35606864,3.9977177));
		points.push(new GLatLng(45.35599746000001,4.00248872));
		points.push(new GLatLng(45.33684802000001,4.01280873));
		points.push(new GLatLng(45.33363578,4.01459971));
		points.push(new GLatLng(45.33082278,4.014973830000001));
		points.push(new GLatLng(45.32820093,4.02057094));
		points.push(new GLatLng(45.34806216,4.02515561));
		points.push(new GLatLng(45.35296657000001,4.03755637));
		points.push(new GLatLng(45.35492119,4.04154715));
		points.push(new GLatLng(45.35181018,4.05487669));
		points.push(new GLatLng(45.33943294,4.06276081));
		points.push(new GLatLng(45.33605969000001,4.07080947));
		points.push(new GLatLng(45.34187356,4.07651489));
		points.push(new GLatLng(45.35230439,4.0781185));
		points.push(new GLatLng(45.35772676,4.0840961));
		points.push(new GLatLng(45.35957848,4.0985135));
		points.push(new GLatLng(45.35789219,4.10158688));
		points.push(new GLatLng(45.35480705,4.10780609));
		points.push(new GLatLng(45.36179501,4.10911438));
		points.push(new GLatLng(45.36837271,4.1204054));
		points.push(new GLatLng(45.36524262,4.149894));
		points.push(new GLatLng(45.36946925000001,4.15668344));
		points.push(new GLatLng(45.38154436000001,4.14788658));
		points.push(new GLatLng(45.38411073,4.14444613));
		points.push(new GLatLng(45.38762991,4.15767604));
		points.push(new GLatLng(45.38890741,4.16209835));
		map.addOverlay(new GPolyline(points));//, "#EF6329"*/
		//map.addOverlay(new GPolyline(points));
		return true;
	}
	function convCatTUrl(cat){
		var tmp="";
		//alert(cat)
		if(cat.indexOf("id_offre") >= 0 || cat.indexOf("lstOffre") >= 0){
			tmp = cat;
		}else{
			tmp = "flux="+cat;
		}
		return tmp;
	}
	window.onload = function() {
		load();chargeID();chargeCat();
		GEvent.addListener(map, "moveend", function() {
		  /*var center = map.getCenter();
		  document.getElementById("message").innerHTML = center.toString();*/
		});
	};
	
