	var map = null;
	var center = new GLatLng(44.360432,5.139979);
	var initZoom = 9;
	var id = '';
	
	//Function left
	function Left(str, n){
		if (n <= 0)
			return "";
		else if (n > String(str).length)
			return str;
		else
			return String(str).substring(0,n);
	}

	//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 showListTypeFiche(lstTypeFiche){
		//alert(lstTypeFiche);
		map.clearOverlays();
		administrative();
		map.setCenter(center, initZoom);
		
		var reg=new RegExp("[ ,;]+", "g");
		var tableau=lstTypeFiche.split(reg);
		for (var i=0; i<tableau.length; i++) 
		{
			//alert(tableau[i])
			if(tableau[i] != '')
			{
				afficheResultat('typeFiche='+tableau[i],'typeFiche='+tableau[i],'','','');
			}
		}
	}
	
	function showPoint(cat){
		//alert(cat);
		map.clearOverlays();
		administrative();
		//var tmpCat = convCatTUrl(cat);
		var tmpCat = 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+"/_includes/google-maps/mnet-gMaps.asp?"+paramsUrl)
		GDownloadUrl("http://"+gUrl+"/_includes/google-maps/mnet-gMaps.asp?"+paramsUrl,
						function(data, responseCode) {
							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 à localiser les prestataires de votre choix !');
							//alert(tmpCat.substring(5));
							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")); 
								var marker = createMarker(point,html,iconStyle(icontype))
								map.addOverlay(marker);//, icontype,cat,i
							}
							if(markers.length == 1) 
							{
								map.setCenter(point, 12);
								var infoTabs = [
									new GInfoWindowTab("Nom", html)
								];
								marker.openInfoWindowTabsHtml(infoTabs);
							}
							//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]});
		map.addControl(new GLargeMapControl());
        map.addControl(new GOverviewMapControl());
        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(44.347207,4.769536);
		map.addOverlay(createMarkerOT(point,"Site officiel du Comité d'expansion touristique<br>et économique de La Drôme Provençale","8 Bd Irène et Frédéric Joliot Curie - 26130 Saint Paul 3 Châteaux<br>Tél. 04 75 98 93 38 / Fax 04 75 04 03 31",iconStyle('info')));
		administrative();
      }
    }
	function iconStyle(cat){
		var tmpCat = cat;
		switch(Left(tmpCat,7))
		{
			case 'dec-sav' :
				tmpCat = 'savourer';
				break;
			case 'dec-sen' :
				tmpCat = 'sentir';
				break;
			case 'dec-eco' :
				tmpCat = 'ecouter';
				break;
			case 'dec-tou' :
				tmpCat = 'toucher';
				break;
			case 'dec-reg' :
				tmpCat = 'regarder';
				break;
			default:break;
		}		
		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 = "/_includes/google-maps/img/gm"+tmpCat+".png";
		icon.shadow = "/_includes/google-maps/img/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(44.49425879,5.4749167));
		//----------------------------------------------------
		points.push(new GLatLng(44.50000014,5.47084829));
		points.push(new GLatLng(44.50033576,5.46633981));
		points.push(new GLatLng(44.49815661,5.45784361));
		points.push(new GLatLng(44.48852333000001,5.45890451));
		points.push(new GLatLng(44.48614196,5.46035768));
		points.push(new GLatLng(44.48282353,5.46153113));
		points.push(new GLatLng(44.47351974,5.46682019));
		points.push(new GLatLng(44.46858702,5.46021256));
		points.push(new GLatLng(44.45205092,5.46383064));
		points.push(new GLatLng(44.44865543,5.4648343));
		points.push(new GLatLng(44.43880376,5.49549167));
		points.push(new GLatLng(44.43095117,5.49502596));
		points.push(new GLatLng(44.42821977,5.493616780000001));
		points.push(new GLatLng(44.42896844,5.48604758));
		points.push(new GLatLng(44.42288004,5.48150002));
		points.push(new GLatLng(44.42094437,5.47272701));
		points.push(new GLatLng(44.43355226,5.4385865));
		points.push(new GLatLng(44.43316685,5.43375468));
		points.push(new GLatLng(44.42477085,5.41839865));
		points.push(new GLatLng(44.42158211,5.42042172));
		points.push(new GLatLng(44.41166437,5.432848440000001));
		points.push(new GLatLng(44.39167874,5.44170183));
		points.push(new GLatLng(44.38126719000001,5.44262267));
		points.push(new GLatLng(44.37533182,5.43134165));
		points.push(new GLatLng(44.36911915,5.43495251));
		points.push(new GLatLng(44.36795239,5.43929194));
		points.push(new GLatLng(44.36774913,5.44392267));
		points.push(new GLatLng(44.36723931000001,5.46278841));
		points.push(new GLatLng(44.35451832,5.46704875));
		points.push(new GLatLng(44.35135283,5.46885592));
		points.push(new GLatLng(44.35022299,5.48158606));
		points.push(new GLatLng(44.33971908000001,5.4904289));
		points.push(new GLatLng(44.33713484,5.49294394));
		points.push(new GLatLng(44.34417526,5.50313248));
		points.push(new GLatLng(44.34952848,5.520565720000001));
		points.push(new GLatLng(44.34451611,5.52704233));
		points.push(new GLatLng(44.3428804,5.53621743));
		points.push(new GLatLng(44.33107503,5.54106322));
		points.push(new GLatLng(44.33077685,5.550313260000001));
		points.push(new GLatLng(44.33415232,5.558254730000001));
		points.push(new GLatLng(44.33285777,5.56675729));
		points.push(new GLatLng(44.33347043,5.57130641));
		points.push(new GLatLng(44.33229699,5.58297536));
		points.push(new GLatLng(44.33203586,5.58692257));
		points.push(new GLatLng(44.33217841,5.588183410000001));
		points.push(new GLatLng(44.33294568,5.62036654));
		points.push(new GLatLng(44.33521875,5.62379684));
		points.push(new GLatLng(44.33394156,5.628261670000001));
		points.push(new GLatLng(44.32785278,5.6302133));
		points.push(new GLatLng(44.31577168,5.61322447));
		points.push(new GLatLng(44.30611767,5.60831479));
		points.push(new GLatLng(44.30937861,5.61606183));
		points.push(new GLatLng(44.30114921,5.629331260000001));
		points.push(new GLatLng(44.30087956,5.633802030000001));
		points.push(new GLatLng(44.29650539000001,5.639774430000001));
		points.push(new GLatLng(44.29164106,5.6357432));
		points.push(new GLatLng(44.28938675,5.632603060000001));
		points.push(new GLatLng(44.28283605,5.6328607));
		points.push(new GLatLng(44.27039498,5.646375660000001));
		points.push(new GLatLng(44.26708869,5.64678301));
		points.push(new GLatLng(44.27422516,5.671678080000001));
		points.push(new GLatLng(44.27588810000001,5.67560955));
		points.push(new GLatLng(44.26882939000001,5.68449713));
		points.push(new GLatLng(44.26606339,5.68665143));
		points.push(new GLatLng(44.26135115,5.68005989));
		points.push(new GLatLng(44.25585870000001,5.67424984));
		points.push(new GLatLng(44.24566576,5.67264583));
		points.push(new GLatLng(44.24016456,5.673309900000001));
		points.push(new GLatLng(44.23367015,5.68202652));
		points.push(new GLatLng(44.23069144,5.68113665));
		points.push(new GLatLng(44.21342046,5.67673588));
		points.push(new GLatLng(44.19720139,5.6858976));
		points.push(new GLatLng(44.19142862,5.676036820000001));
		points.push(new GLatLng(44.18957275,5.651587250000001));
		points.push(new GLatLng(44.18623059,5.65229051));
		points.push(new GLatLng(44.17051906,5.643906030000001));
		points.push(new GLatLng(44.16744568,5.645839240000001));
		points.push(new GLatLng(44.16348712,5.68272704));
		points.push(new GLatLng(44.16062709,5.68149396));
		points.push(new GLatLng(44.14609138,5.67860981));
		points.push(new GLatLng(44.14731963,5.67405795));
		points.push(new GLatLng(44.1481857,5.64532499));
		points.push(new GLatLng(44.14923554,5.64067442));
		points.push(new GLatLng(44.15057666,5.63114237));
		points.push(new GLatLng(44.15394219000001,5.63201212));
		points.push(new GLatLng(44.16628303,5.638794870000001));
		points.push(new GLatLng(44.17408801000001,5.6297726));
		points.push(new GLatLng(44.17862254,5.616956490000001));
		points.push(new GLatLng(44.19070353,5.60932749));
		points.push(new GLatLng(44.19149716,5.60205642));
		points.push(new GLatLng(44.18900482,5.59906083));
		points.push(new GLatLng(44.18814259,5.57691146));
		points.push(new GLatLng(44.17090292,5.56437092));
		points.push(new GLatLng(44.16872291,5.56809724));
		points.push(new GLatLng(44.1551508,5.5811963));
		points.push(new GLatLng(44.14861341,5.57042299));
		points.push(new GLatLng(44.14964536,5.55133478));
		points.push(new GLatLng(44.14924109,5.55131181));
		points.push(new GLatLng(44.13326807000001,5.54214555));
		points.push(new GLatLng(44.12395487,5.51108694));
		points.push(new GLatLng(44.11775601,5.50761658));
		points.push(new GLatLng(44.11571787,5.49878417));
		points.push(new GLatLng(44.11543833,5.493834920000001));
		points.push(new GLatLng(44.11922732,5.45471243));
		points.push(new GLatLng(44.12113752,5.45115774));
		points.push(new GLatLng(44.13675373,5.44756921));
		points.push(new GLatLng(44.13794467000001,5.44303658));
		points.push(new GLatLng(44.1420655,5.43669007));
		points.push(new GLatLng(44.15225128,5.4357485));
		points.push(new GLatLng(44.15151152,5.43105881));
		points.push(new GLatLng(44.15004144,5.42291632));
		points.push(new GLatLng(44.15465066,5.4158325));
		points.push(new GLatLng(44.15233755,5.39694743));
		points.push(new GLatLng(44.15528659,5.38323382));
		points.push(new GLatLng(44.15879684,5.3831979));
		points.push(new GLatLng(44.17926960000001,5.38663911));
		points.push(new GLatLng(44.19238648,5.38128113));
		points.push(new GLatLng(44.19906425,5.3831793));
		points.push(new GLatLng(44.20118611,5.38453199));
		points.push(new GLatLng(44.20291315,5.38035962));
		points.push(new GLatLng(44.20513158,5.37666375));
		points.push(new GLatLng(44.20668054,5.37237997));
		points.push(new GLatLng(44.21342349,5.355703420000001));
		points.push(new GLatLng(44.20396688,5.3357596));
		points.push(new GLatLng(44.20919452,5.31834806));
		points.push(new GLatLng(44.20878226000001,5.30407779));
		points.push(new GLatLng(44.2053941,5.303298240000001));
		points.push(new GLatLng(44.20691995,5.29942667));
		points.push(new GLatLng(44.21464850000001,5.29181237));
		points.push(new GLatLng(44.21979919,5.28067082));
		points.push(new GLatLng(44.22099719,5.2762789));
		points.push(new GLatLng(44.23005745,5.25650247));
		points.push(new GLatLng(44.231132,5.25265354));
		points.push(new GLatLng(44.23111583,5.24853552));
		points.push(new GLatLng(44.23070204,5.24450967));
		points.push(new GLatLng(44.23082711,5.24044901));
		points.push(new GLatLng(44.2273124,5.23998057));
		points.push(new GLatLng(44.21323470000001,5.23814271));
		points.push(new GLatLng(44.21442475,5.20876807));
		points.push(new GLatLng(44.22086072,5.175614020000001));
		points.push(new GLatLng(44.22530758,5.16790451));
		points.push(new GLatLng(44.22635728,5.16350258));
		points.push(new GLatLng(44.23524453,5.14999221));
		points.push(new GLatLng(44.23831084,5.15181069));
		points.push(new GLatLng(44.24287369,5.15874683));
		points.push(new GLatLng(44.24559057,5.161548670000001));
		points.push(new GLatLng(44.24894196,5.1620793));
		points.push(new GLatLng(44.26561885,5.160522180000001));
		points.push(new GLatLng(44.26916777,5.14745126));
		points.push(new GLatLng(44.28188020000001,5.15065185));
		points.push(new GLatLng(44.29224608,5.168418730000001));
		points.push(new GLatLng(44.29873386,5.17010991));
		points.push(new GLatLng(44.30201034,5.16974944));
		points.push(new GLatLng(44.3082111,5.17283011));
		points.push(new GLatLng(44.31412712,5.16884024));
		points.push(new GLatLng(44.31485524,5.16643298));
		points.push(new GLatLng(44.31338682000001,5.16197313));
		points.push(new GLatLng(44.31014706,5.15326585));
		points.push(new GLatLng(44.300652,5.14950807));
		points.push(new GLatLng(44.28036309000001,5.10964624));
		points.push(new GLatLng(44.28393431,5.08647491));
		points.push(new GLatLng(44.28408532,5.07651234));
		points.push(new GLatLng(44.28694032000001,5.07392033));
		points.push(new GLatLng(44.30761603,5.06023919));
		points.push(new GLatLng(44.30539553,5.0565097));
		points.push(new GLatLng(44.29789473,5.029502680000001));
		points.push(new GLatLng(44.29677833,5.02477538));
		points.push(new GLatLng(44.29224199,5.01714365));
		points.push(new GLatLng(44.2910729,5.01307849));
		points.push(new GLatLng(44.28536951,5.00272678));
		points.push(new GLatLng(44.28576974,4.98959451));
		points.push(new GLatLng(44.28551901,4.9854608));
		points.push(new GLatLng(44.27942773,4.97168853));
		points.push(new GLatLng(44.2777279,4.96755174));
		points.push(new GLatLng(44.26940800000001,4.94152093));
		points.push(new GLatLng(44.26245434,4.932023440000001));
		points.push(new GLatLng(44.26210029,4.92722478));
		points.push(new GLatLng(44.25947535,4.90348164));
		points.push(new GLatLng(44.26427806,4.901283640000001));
		points.push(new GLatLng(44.26440522000001,4.89697012));
		points.push(new GLatLng(44.26177252000001,4.88025051));
		points.push(new GLatLng(44.26026929,4.87602662));
		points.push(new GLatLng(44.24598836,4.85708711));
		points.push(new GLatLng(44.24437011,4.8531728));
		points.push(new GLatLng(44.22844516,4.82533888));
		points.push(new GLatLng(44.22888819,4.82089182));
		points.push(new GLatLng(44.23242188,4.81343977));
		points.push(new GLatLng(44.24205937,4.8121353));
		points.push(new GLatLng(44.24520301,4.81311281));
		points.push(new GLatLng(44.25802827,4.81250974));
		points.push(new GLatLng(44.26920516,4.80399769));
		points.push(new GLatLng(44.27483985,4.80585918));
		points.push(new GLatLng(44.27761489,4.80447914));
		points.push(new GLatLng(44.28078966,4.80292607));
		points.push(new GLatLng(44.30390065,4.80456242));
		points.push(new GLatLng(44.30355393,4.79998586));
		points.push(new GLatLng(44.31712445,4.78095629));
		points.push(new GLatLng(44.31754217,4.77190205));
		points.push(new GLatLng(44.32509913,4.76299181));
		points.push(new GLatLng(44.3253267,4.75840217));
		points.push(new GLatLng(44.32659207,4.72166054));
		points.push(new GLatLng(44.32065361000001,4.71301358));
		points.push(new GLatLng(44.32069304,4.67988285));
		points.push(new GLatLng(44.32835019,4.65488354));
		points.push(new GLatLng(44.32980803,4.65060829));
		points.push(new GLatLng(44.33423774,4.64958548));
		points.push(new GLatLng(44.34828498,4.64682798));
		points.push(new GLatLng(44.37307539,4.64907308));
		points.push(new GLatLng(44.39546029,4.66348033));
		points.push(new GLatLng(44.39895014,4.6643648));
		points.push(new GLatLng(44.40432499,4.66333189));
		points.push(new GLatLng(44.40702984,4.66305454));
		points.push(new GLatLng(44.43301812,4.66869853));
		points.push(new GLatLng(44.43670486,4.67597096));
		points.push(new GLatLng(44.4382778,4.68025554));
		points.push(new GLatLng(44.44051355,4.689289720000001));
		points.push(new GLatLng(44.44579182,4.69528867));
		points.push(new GLatLng(44.46938844,4.70041));
		points.push(new GLatLng(44.47295776,4.70010758));
		points.push(new GLatLng(44.4800857,4.69953988));
		points.push(new GLatLng(44.49235091,4.68942135));
		points.push(new GLatLng(44.50293751,4.68787785));
		points.push(new GLatLng(44.51669928,4.69309337));
		points.push(new GLatLng(44.52456323,4.70311952));
		points.push(new GLatLng(44.52788854,4.70454238));
		points.push(new GLatLng(44.53441959,4.70792446));
		points.push(new GLatLng(44.53571347000001,4.70341407));
		points.push(new GLatLng(44.54623199,4.6924947));
		points.push(new GLatLng(44.56307756000001,4.69573063));
		points.push(new GLatLng(44.56360089,4.70445034));
		points.push(new GLatLng(44.57313397,4.70548026));
		points.push(new GLatLng(44.57631736,4.70639497));
		points.push(new GLatLng(44.58200632,4.71086506));
		points.push(new GLatLng(44.58468976,4.72861859));
		points.push(new GLatLng(44.58589305,4.73286121));
		points.push(new GLatLng(44.58667438,4.73746622));
		points.push(new GLatLng(44.58877992,4.74116864));
		points.push(new GLatLng(44.59187607,4.74112492));
		points.push(new GLatLng(44.6008957,4.74419367));
		points.push(new GLatLng(44.60239211,4.74040399));
		points.push(new GLatLng(44.61893661,4.75242547));
		points.push(new GLatLng(44.62183963,4.75421344));
		points.push(new GLatLng(44.63074331,4.758087380000001));
		points.push(new GLatLng(44.633358,4.76070786));
		points.push(new GLatLng(44.64263552000001,4.77290546));
		points.push(new GLatLng(44.65470037,4.77906438));
		points.push(new GLatLng(44.657758,4.77792422));
		points.push(new GLatLng(44.67884948,4.78157921));
		//----------------------------------------------------
		points.push(new GLatLng(44.68236712,4.78120288));
		//-----------------------------------------------------
		
		points.push(new GLatLng(44.68236712,4.78120288));
		//points.push(new GLatLng(44.682813,4.782829));
		points.push(new GLatLng(44.671217,4.84952));
		points.push(new GLatLng(44.669752,4.93269));
		points.push(new GLatLng(44.609229,4.972901));
		points.push(new GLatLng(44.616195,5.020323));
		points.push(new GLatLng(44.562741,5.066972));
		points.push(new GLatLng(44.575857,5.106497));
		points.push(new GLatLng(44.488117,5.216103));
		points.push(new GLatLng(44.609412,5.223656));
		points.push(new GLatLng(44.641178,5.29335));
		points.push(new GLatLng(44.656382,5.307255));
		points.push(new GLatLng(44.644353,5.343132));
		points.push(new GLatLng(44.620349,5.29953));
		points.push(new GLatLng(44.545035,5.390339));
		points.push(new GLatLng(44.571027,5.438747));
		points.push(new GLatLng(44.52974,5.503635));
		points.push(new GLatLng(44.49425879,5.4749167));
		
		
		map.addOverlay(new GPolyline(points));//, "#EF6329"
		
		var points = [];
		points.push(new GLatLng(44.68236712,4.78120288));
		//points.push(new GLatLng(44.682813,4.782829));
		points.push(new GLatLng(44.671217,4.84952));
		points.push(new GLatLng(44.669752,4.93269));
		points.push(new GLatLng(44.609229,4.972901));
		points.push(new GLatLng(44.616195,5.020323));
		points.push(new GLatLng(44.562741,5.066972));
		points.push(new GLatLng(44.575857,5.106497));
		points.push(new GLatLng(44.488117,5.216103));
		points.push(new GLatLng(44.609412,5.223656));
		points.push(new GLatLng(44.641178,5.29335));
		points.push(new GLatLng(44.656382,5.307255));
		points.push(new GLatLng(44.644353,5.343132));
		points.push(new GLatLng(44.620349,5.29953));
		points.push(new GLatLng(44.545035,5.390339));
		points.push(new GLatLng(44.571027,5.438747));
		points.push(new GLatLng(44.52974,5.503635));
		points.push(new GLatLng(44.49425879,5.4749167));

		//map.addOverlay(new GPolyline(points, "#EF6329"));
		
		//map.addOverlay(new GPolyline(points));
		return true;
	}
	function convCatTUrl(cat){
		var tmp="";
		if(cat.indexOf("-") > 0)
		{
			tmp = "typeFiche="+cat;
		}else{
			tmp = "idoi="+cat;
		}
		return tmp;
	}
	window.onload = function() {
		aleatoire();
		load();chargeID();
		GEvent.addListener(map, "moveend", function() {
		  /*var center = map.getCenter();
		  document.getElementById("message").innerHTML = center.toString();*/
		  getLimits();
		});
	};