	var map = null;
	var center = new GLatLng(47.996387481689,0.20305599272251);
	var initZoom = 9;
	var id = '';
	
	//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, "mouseover", 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, "mouseover", 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,typeCat){
		if(cat != '#'){
			map.clearOverlays();
			administrative();
				
			if(typeCat == 'recherche')
			{	
				var tmpCat = "test="+cat
				var newcat = cat.substr(cat.indexOf("type=")+5,(cat.length - (cat.indexOf("type=")+5)))
				cat = newcat
				//alert(cat)
			}else{
				var tmpCat = convCatTUrl(cat,'id');
				tmpCat = tmpCat+"&type="+typeFiche;
				//alert("http://"+gUrl+"/_includes/google-maps/mnet-gMaps.asp?"+tmpCat);
			}
			map.setCenter(center, initZoom);
			//alert(tmpCat+" - "+cat)
			
			//alert(tmpCat)
			afficheResultat(tmpCat,cat,'','','');
		}
	}
	
	function showPointSej(cat,typeCat){
		if(cat != '#'){
			map.clearOverlays();
			administrative();
				
			if(typeCat == 'recherche')
			{	
				var tmpCat = "test="+cat
				var newcat = cat.substr(cat.indexOf("type=")+5,(cat.length - (cat.indexOf("type=")+5)))
				cat = newcat
				//alert(cat)
			}else{
				var tmpCat = convCatTUrl(cat,'id');
				tmpCat = tmpCat+"&type="+typeFiche;
				//alert("http://"+gUrl+"/_includes/google-maps/mnet-gMaps.asp?"+tmpCat);
			}
			map.setCenter(center, initZoom);
			//alert(tmpCat+" - "+cat)
			
			//alert(tmpCat)
			afficheResultatSej(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")); 
								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 afficheResultatSej(paramsUrl,cat,cLat,cLng,proxim){
		//alert("http://"+gUrl+"/_includes/google-maps/mnet-gMapsSej.asp?"+paramsUrl)
		GDownloadUrl("http://"+gUrl+"/_includes/google-maps/mnet-gMapsSej.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")); 
								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]});
		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
		var point = new GLatLng(47.993727,0.213997);
		map.addOverlay(createMarkerOT(point,"<span  class=\"TextGris11\">Comité départemental du Tourisme de la Sarthe</span><br/><img src='/img-sarthe-tourisme/logo-sarthe.gif'>","<span  class=\"TextGris11\">31 rue Edgar Brandt - ZA Monthéard - 72000 LE MANS <br/> Tél : 02 43 40 22 50 - Fax : 02 43 40 22 51<br/><a href=\"mailto:tourisme@sarthe.com\" class=\"TextGris11\">tourisme@sarthe.com</a><br/><a href=\"http://www.tourisme.sarthe.com\" class=\"TextGris11\">www.tourisme.sarthe.com</a></span>",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 = "/_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(48.24453884,0.5937148));
		points.push(new GLatLng(48.24272935,0.61312279));
		points.push(new GLatLng(48.24490719,0.62244954));
		points.push(new GLatLng(48.23749982,0.62947668));
		points.push(new GLatLng(48.23461207,0.6318995200000001));
		points.push(new GLatLng(48.23550306,0.63504764));
		points.push(new GLatLng(48.23560641,0.63846367));
		points.push(new GLatLng(48.25144974,0.63140628));
		points.push(new GLatLng(48.25474837,0.63189162));
		points.push(new GLatLng(48.26152335,0.64274277));
		points.push(new GLatLng(48.2633815,0.65246142));
		points.push(new GLatLng(48.25508104,0.67908286));
		points.push(new GLatLng(48.25398865,0.68389805));
		points.push(new GLatLng(48.24078121,0.6873701800000001));
		points.push(new GLatLng(48.20627359,0.72034086));
		points.push(new GLatLng(48.20276304,0.72024711));
		points.push(new GLatLng(48.20051451,0.7221337900000001));
		points.push(new GLatLng(48.19813363,0.72361812));
		points.push(new GLatLng(48.19815091,0.73210594));
		points.push(new GLatLng(48.18918323,0.73862061));
		points.push(new GLatLng(48.18391105,0.75108637));
		points.push(new GLatLng(48.18210721,0.7553096900000001));
		points.push(new GLatLng(48.18008997,0.75918949));
		points.push(new GLatLng(48.19306036,0.7931800600000001));
		points.push(new GLatLng(48.19444996,0.79764532));
		points.push(new GLatLng(48.18815295000001,0.79752047));
		points.push(new GLatLng(48.18471645,0.81123239));
		points.push(new GLatLng(48.17303285000001,0.8278526900000001));
		points.push(new GLatLng(48.16903516,0.83310324));
		points.push(new GLatLng(48.16761325,0.83654527));
		points.push(new GLatLng(48.16552397,0.8405559400000001));
		points.push(new GLatLng(48.16665119,0.8606235900000001));
		points.push(new GLatLng(48.16183906000001,0.88444431));
		points.push(new GLatLng(48.15006642,0.90935145));
		points.push(new GLatLng(48.14696222000001,0.91145016));
		points.push(new GLatLng(48.14352219,0.9095949500000001));
		points.push(new GLatLng(48.13893106,0.91663933));
		points.push(new GLatLng(48.1359431,0.91423442));
		points.push(new GLatLng(48.13307405000001,0.85036114));
		points.push(new GLatLng(48.12385206,0.8549874000000001));
		points.push(new GLatLng(48.10600337,0.8432971800000001));
		points.push(new GLatLng(48.10305375000001,0.84120563));
		points.push(new GLatLng(48.10091637000001,0.8372248500000002));
		points.push(new GLatLng(48.09767371,0.81790296));
		points.push(new GLatLng(48.09461902,0.8161384));
		points.push(new GLatLng(48.09113206,0.8302812200000002));
		points.push(new GLatLng(48.09276825,0.8450018));
		points.push(new GLatLng(48.07263261000001,0.8430091));
		points.push(new GLatLng(48.07130428,0.8383634));
		points.push(new GLatLng(48.06943438,0.7939861700000002));
		points.push(new GLatLng(48.06661894000001,0.7966986600000002));
		points.push(new GLatLng(48.03723728,0.79754405));
		points.push(new GLatLng(48.03658011,0.80711168));
		points.push(new GLatLng(48.03144459,0.81333521));
		points.push(new GLatLng(48.03261328,0.8383238000000001));
		points.push(new GLatLng(48.01900619,0.8405875));
		points.push(new GLatLng(48.00913174000001,0.8357623));
		points.push(new GLatLng(48.00039033,0.8323378100000001));
		points.push(new GLatLng(47.98724546,0.8194754400000001));
		points.push(new GLatLng(47.98173204,0.82434968));
		points.push(new GLatLng(47.97256420000001,0.82903265));
		points.push(new GLatLng(47.96893184,0.83683768));
		points.push(new GLatLng(47.95659611,0.8428256));
		points.push(new GLatLng(47.95389677,0.84556654));
		points.push(new GLatLng(47.94392155,0.8483664400000001));
		points.push(new GLatLng(47.94118272,0.84519078));
		points.push(new GLatLng(47.93427202,0.81633998));
		points.push(new GLatLng(47.92814697,0.81222036));
		points.push(new GLatLng(47.90822772,0.81053437));
		points.push(new GLatLng(47.89515597,0.81580714));
		points.push(new GLatLng(47.89182315000001,0.81682588));
		points.push(new GLatLng(47.8894826,0.8132289000000001));
		points.push(new GLatLng(47.89796114,0.7978566700000001));
		points.push(new GLatLng(47.90743665000001,0.7940635500000001));
		points.push(new GLatLng(47.91174154,0.7869914));
		points.push(new GLatLng(47.90138769000001,0.76806106));
		points.push(new GLatLng(47.89997122,0.76372911));
		points.push(new GLatLng(47.89808327000001,0.75979935));
		points.push(new GLatLng(47.88812771,0.7572747000000001));
		points.push(new GLatLng(47.86512898,0.763389));
		points.push(new GLatLng(47.85921602000001,0.7591542100000001));
		points.push(new GLatLng(47.85274293,0.77009218));
		points.push(new GLatLng(47.85064337,0.77384276));
		points.push(new GLatLng(47.84058934,0.7740329600000001));
		points.push(new GLatLng(47.83109592,0.76840883));
		points.push(new GLatLng(47.83357746,0.75898367));
		points.push(new GLatLng(47.83081505,0.7563275200000001));
		points.push(new GLatLng(47.82782919000001,0.74769394));
		points.push(new GLatLng(47.81255275000001,0.7402737));
		points.push(new GLatLng(47.80768719000001,0.73378404));
		points.push(new GLatLng(47.80545978000001,0.73011282));
		points.push(new GLatLng(47.79048551,0.71281215));
		points.push(new GLatLng(47.78720741,0.71189959));
		points.push(new GLatLng(47.7896423,0.7026811300000001));
		points.push(new GLatLng(47.78352432000001,0.69173852));
		points.push(new GLatLng(47.76966235,0.70263038));
		points.push(new GLatLng(47.76418169000001,0.69734253));
		points.push(new GLatLng(47.76433752,0.6924411200000001));
		points.push(new GLatLng(47.76876764000001,0.67498392));
		points.push(new GLatLng(47.76729787,0.67096041));
		points.push(new GLatLng(47.75511227,0.65120017));
		points.push(new GLatLng(47.75491803000001,0.65027255));
		points.push(new GLatLng(47.75305014,0.64609004));
		points.push(new GLatLng(47.75134943000001,0.6263357000000001));
		points.push(new GLatLng(47.74616307000001,0.61990086));
		points.push(new GLatLng(47.73662546,0.61794279));
		points.push(new GLatLng(47.73202880000001,0.61066462));
		points.push(new GLatLng(47.72812926000001,0.6115916));
		points.push(new GLatLng(47.72528897000002,0.60872419));
		points.push(new GLatLng(47.72302859,0.59407918));
		points.push(new GLatLng(47.71282080000001,0.58049855));
		points.push(new GLatLng(47.71236909,0.58031357));
		points.push(new GLatLng(47.70217423,0.59279207));
		points.push(new GLatLng(47.68924814,0.59589509));
		points.push(new GLatLng(47.68667819,0.6045328));
		points.push(new GLatLng(47.69165329,0.6112056700000002));
		points.push(new GLatLng(47.69421095,0.61442703));
		points.push(new GLatLng(47.68882030000001,0.6179462500000001));
		points.push(new GLatLng(47.68291297,0.61268893));
		points.push(new GLatLng(47.67004484000001,0.58894663));
		points.push(new GLatLng(47.67079315,0.5587808));
		points.push(new GLatLng(47.66617254,0.5596015));
		points.push(new GLatLng(47.66396383,0.55577344));
		points.push(new GLatLng(47.65716337,0.54522914));
		points.push(new GLatLng(47.65392747000001,0.52572529));
		points.push(new GLatLng(47.65621603,0.5167257));
		points.push(new GLatLng(47.64475413,0.49841407));
		points.push(new GLatLng(47.64507076,0.49341073));
		points.push(new GLatLng(47.64416749,0.47849183));
		points.push(new GLatLng(47.6468809,0.4754545700000001));
		points.push(new GLatLng(47.64379935,0.46117016));
		points.push(new GLatLng(47.64059224,0.45923473));
		points.push(new GLatLng(47.62145501000001,0.45139457));
		points.push(new GLatLng(47.61830931,0.4317341000000001));
		points.push(new GLatLng(47.61957347,0.4221597100000001));
		points.push(new GLatLng(47.64084437000001,0.3962458200000001));
		points.push(new GLatLng(47.64099901,0.39150229));
		points.push(new GLatLng(47.64309305,0.38278415));
		points.push(new GLatLng(47.63966945,0.3814325000000001));
		points.push(new GLatLng(47.62206379000001,0.36454105));
		points.push(new GLatLng(47.61333062,0.37322115));
		points.push(new GLatLng(47.60996851,0.3824058900000001));
		points.push(new GLatLng(47.59457995,0.3950755200000001));
		points.push(new GLatLng(47.59135972000001,0.39678916));
		points.push(new GLatLng(47.57851024000001,0.40257676));
		points.push(new GLatLng(47.57753261,0.3979053900000001));
		points.push(new GLatLng(47.56852420000001,0.37847861));
		points.push(new GLatLng(47.57051104,0.3746563));
		points.push(new GLatLng(47.57972985000001,0.33910505));
		points.push(new GLatLng(47.5831733,0.33948097));
		points.push(new GLatLng(47.59522638,0.32209689));
		points.push(new GLatLng(47.59909475,0.27540552));
		points.push(new GLatLng(47.61229169,0.25911152));
		points.push(new GLatLng(47.61202099000001,0.25454494));
		points.push(new GLatLng(47.61088965,0.23270175));
		points.push(new GLatLng(47.60839322,0.22999328));
		points.push(new GLatLng(47.61063805,0.22627186));
		points.push(new GLatLng(47.61251954000001,0.21693614));
		points.push(new GLatLng(47.60632621,0.20595426));
		points.push(new GLatLng(47.6155733,0.20189734));
		points.push(new GLatLng(47.61653654,0.18582487));
		points.push(new GLatLng(47.59900153000001,0.1839659));
		points.push(new GLatLng(47.59440388,0.17622437));
		points.push(new GLatLng(47.59241248,0.16112865));
		points.push(new GLatLng(47.58128744,0.14848498));
		points.push(new GLatLng(47.58305062000001,0.14417003));
		points.push(new GLatLng(47.59441613000001,0.13424348));
		points.push(new GLatLng(47.59599653,0.12035689));
		points.push(new GLatLng(47.60562431,0.11564451));
		points.push(new GLatLng(47.60589699,0.11061719));
		points.push(new GLatLng(47.60531329000001,0.10551933));
		points.push(new GLatLng(47.60331679,0.09575802));
		points.push(new GLatLng(47.60810954,0.07100846));
		points.push(new GLatLng(47.60447381000001,0.06223471000000001));
		points.push(new GLatLng(47.60622142,0.05224752));
		points.push(new GLatLng(47.61841749,0.03419592));
		points.push(new GLatLng(47.6237646,0.00991336));
		points.push(new GLatLng(47.62868458,0.01295899));
		points.push(new GLatLng(47.6452302,-0.00105383));
		points.push(new GLatLng(47.64768,-0.00451732));
		points.push(new GLatLng(47.63913808000001,-0.01712159));
		points.push(new GLatLng(47.63701329,-0.02028915));
		points.push(new GLatLng(47.64633905,-0.02676182));
		points.push(new GLatLng(47.64867658000001,-0.05239328));
		points.push(new GLatLng(47.65747928,-0.07451223999999999));
		points.push(new GLatLng(47.65100551,-0.09242268000000001));
		points.push(new GLatLng(47.65426182,-0.09247715000000001));
		points.push(new GLatLng(47.66059806000001,-0.09456665));
		points.push(new GLatLng(47.66178216,-0.09904311000000003));
		points.push(new GLatLng(47.65707577000001,-0.10548649));
		points.push(new GLatLng(47.64530984000001,-0.11384152));
		points.push(new GLatLng(47.63546882,-0.11410492));
		points.push(new GLatLng(47.63669866000001,-0.12786286));
		points.push(new GLatLng(47.63248114000001,-0.13450852));
		points.push(new GLatLng(47.63416240000001,-0.13880705));
		points.push(new GLatLng(47.63612706000001,-0.14752593));
		points.push(new GLatLng(47.64703075,-0.15895573));
		points.push(new GLatLng(47.64498712,-0.17366712));
		points.push(new GLatLng(47.6479122,-0.19315488));
		points.push(new GLatLng(47.65002159,-0.19670597));
		points.push(new GLatLng(47.66272898,-0.19665857));
		points.push(new GLatLng(47.66561922000001,-0.19947415));
		points.push(new GLatLng(47.68291688,-0.21583904));
		points.push(new GLatLng(47.69278309000001,-0.21768669));
		points.push(new GLatLng(47.69386984,-0.20343748));
		points.push(new GLatLng(47.70538024,-0.18435179));
		points.push(new GLatLng(47.71212241,-0.18345908));
		points.push(new GLatLng(47.71339955000001,-0.17341182));
		points.push(new GLatLng(47.71630200000001,-0.17531067));
		points.push(new GLatLng(47.71605719,-0.18455285));
		points.push(new GLatLng(47.72333015,-0.1935791));
		points.push(new GLatLng(47.7252343,-0.20237999));
		points.push(new GLatLng(47.7225974,-0.20573431));
		points.push(new GLatLng(47.70461973,-0.2367755));
		points.push(new GLatLng(47.70809278000001,-0.25666127));
		points.push(new GLatLng(47.71911517,-0.2876315700000001));
		points.push(new GLatLng(47.71769529000001,-0.29153377));
		points.push(new GLatLng(47.71732481,-0.30907888));
		points.push(new GLatLng(47.71789493,-0.31408135));
		points.push(new GLatLng(47.72092999,-0.33366369));
		points.push(new GLatLng(47.71443625,-0.35113945));
		points.push(new GLatLng(47.71611113,-0.36582485));
		points.push(new GLatLng(47.71931593,-0.36422792));
		points.push(new GLatLng(47.72859379,-0.35880527));
		points.push(new GLatLng(47.73473102,-0.36114508));
		points.push(new GLatLng(47.73985494,-0.37378643));
		points.push(new GLatLng(47.74313265,-0.37253987));
		points.push(new GLatLng(47.7456472,-0.37547038));
		points.push(new GLatLng(47.75119999000002,-0.37970448));
		points.push(new GLatLng(47.76020839,-0.37699008));
		points.push(new GLatLng(47.7605583,-0.38170591));
		points.push(new GLatLng(47.76589561,-0.37583995));
		points.push(new GLatLng(47.77909101000001,-0.378811));
		points.push(new GLatLng(47.78232793000002,-0.38008656));
		points.push(new GLatLng(47.80127632000001,-0.38521181));
		points.push(new GLatLng(47.80425546,-0.38715626));
		points.push(new GLatLng(47.80531066,-0.3882124000000001));
		points.push(new GLatLng(47.80265436,-0.41700699));
		points.push(new GLatLng(47.80705834,-0.43016698));
		points.push(new GLatLng(47.80904395,-0.43409143));
		points.push(new GLatLng(47.82984901,-0.4443357));
		points.push(new GLatLng(47.83202213,-0.44792613));
		points.push(new GLatLng(47.84075859000001,-0.4324916));
		points.push(new GLatLng(47.84932946,-0.42549396));
		points.push(new GLatLng(47.84662114,-0.41099499));
		points.push(new GLatLng(47.85485459000001,-0.41330811));
		points.push(new GLatLng(47.85762113,-0.4120347));
		points.push(new GLatLng(47.85932716000001,-0.38836253));
		points.push(new GLatLng(47.85627526,-0.37954116));
		points.push(new GLatLng(47.85759638,-0.37496938));
		points.push(new GLatLng(47.860838,-0.37367816));
		points.push(new GLatLng(47.86671346,-0.37800473));
		points.push(new GLatLng(47.87178438000001,-0.3716034400000001));
		points.push(new GLatLng(47.87509468,-0.37087828));
		points.push(new GLatLng(47.88725734,-0.37683948));
		points.push(new GLatLng(47.888513,-0.38629576));
		points.push(new GLatLng(47.88915446,-0.39119871));
		points.push(new GLatLng(47.89231670000001,-0.39257954));
		points.push(new GLatLng(47.8936838,-0.4068196200000001));
		points.push(new GLatLng(47.89534803,-0.41105267));
		points.push(new GLatLng(47.90034455000001,-0.4040610100000001));
		points.push(new GLatLng(47.91318332,-0.40951917));
		points.push(new GLatLng(47.91582238,-0.41285694));
		points.push(new GLatLng(47.91825745,-0.39766849));
		points.push(new GLatLng(47.92917722,-0.38899434));
		points.push(new GLatLng(47.93083052,-0.38485));
		points.push(new GLatLng(47.93249671,-0.3368269500000001));
		points.push(new GLatLng(47.93689858,-0.3296583));
		points.push(new GLatLng(47.93529180000001,-0.32000319));
		points.push(new GLatLng(47.93827283,-0.31393988));
		points.push(new GLatLng(47.94029482,-0.3116711600000001));
		points.push(new GLatLng(47.94340557000001,-0.29784593));
		points.push(new GLatLng(47.95453819,-0.28051968));
		points.push(new GLatLng(47.95916062,-0.28464719));
		points.push(new GLatLng(47.96129089,-0.28835669));
		points.push(new GLatLng(47.96202688,-0.29324426));
		points.push(new GLatLng(47.96665111,-0.30046716));
		points.push(new GLatLng(47.97662348,-0.29954666));
		points.push(new GLatLng(47.99434593000002,-0.31204015));
		points.push(new GLatLng(48.00105781000001,-0.31245781));
		points.push(new GLatLng(48.00564547000001,-0.30853191));
		points.push(new GLatLng(48.00558997,-0.30899706));
		points.push(new GLatLng(48.01213479,-0.33814423));
		points.push(new GLatLng(48.03236417000002,-0.33448945));
		points.push(new GLatLng(48.04405849,-0.34051671));
		points.push(new GLatLng(48.04857618,-0.33417104));
		points.push(new GLatLng(48.05036329,-0.3303713700000001));
		points.push(new GLatLng(48.04584699,-0.31648162));
		points.push(new GLatLng(48.05627782000001,-0.28281111));
		points.push(new GLatLng(48.05838109,-0.28608313));
		points.push(new GLatLng(48.06444859,-0.27425123));
		points.push(new GLatLng(48.06044841000001,-0.23543913));
		points.push(new GLatLng(48.05897233,-0.23095152));
		points.push(new GLatLng(48.06841135,-0.22679417));
		points.push(new GLatLng(48.07167667000001,-0.22600005));
		points.push(new GLatLng(48.07840148,-0.22338715));
		points.push(new GLatLng(48.0840299,-0.23625581));
		points.push(new GLatLng(48.09436403,-0.23559266));
		points.push(new GLatLng(48.10969814000001,-0.2165408));
		points.push(new GLatLng(48.11318259,-0.21633509));
		points.push(new GLatLng(48.11983278000001,-0.22373622));
		points.push(new GLatLng(48.12271032000001,-0.22297736));
		points.push(new GLatLng(48.12694581,-0.24115061));
		points.push(new GLatLng(48.13268957,-0.24343472));
		points.push(new GLatLng(48.13495583000001,-0.24960759));
		points.push(new GLatLng(48.13651825000002,-0.25382425));
		points.push(new GLatLng(48.14878541000001,-0.23890091));
		points.push(new GLatLng(48.15490314,-0.24831679));
		points.push(new GLatLng(48.15791097,-0.2502262));
		points.push(new GLatLng(48.16013989,-0.24665145));
		points.push(new GLatLng(48.17195028,-0.22250987));
		points.push(new GLatLng(48.18130101,-0.18994177));
		points.push(new GLatLng(48.18342974,-0.18591421));
		points.push(new GLatLng(48.1883136,-0.18181664));
		points.push(new GLatLng(48.19037639,-0.17871207));
		points.push(new GLatLng(48.19959888,-0.16474312));
		points.push(new GLatLng(48.203662,-0.15133105));
		points.push(new GLatLng(48.20499831,-0.14684695));
		points.push(new GLatLng(48.21382896,-0.1525397));
		points.push(new GLatLng(48.22189593000001,-0.14542379));
		points.push(new GLatLng(48.23618386,-0.15763983));
		points.push(new GLatLng(48.23879399,-0.16096895));
		points.push(new GLatLng(48.25914664,-0.16459334));
		points.push(new GLatLng(48.27319766000001,-0.15235274));
		points.push(new GLatLng(48.27624227,-0.14999069));
		points.push(new GLatLng(48.27738919,-0.15105582));
		points.push(new GLatLng(48.28367732,-0.14934595));
		points.push(new GLatLng(48.29493189,-0.13862315));
		points.push(new GLatLng(48.30841034000001,-0.14232076));
		points.push(new GLatLng(48.31388627,-0.14840569));
		points.push(new GLatLng(48.31400671,-0.15164801));
		points.push(new GLatLng(48.31406387,-0.15490083));
		points.push(new GLatLng(48.31747231,-0.1557912));
		points.push(new GLatLng(48.33450775000001,-0.1580063));
		points.push(new GLatLng(48.34302909000001,-0.15273018));
		points.push(new GLatLng(48.34412648,-0.14808657));
		points.push(new GLatLng(48.33925316,-0.12656452));
		points.push(new GLatLng(48.33830117,-0.1222293));
		points.push(new GLatLng(48.34569863,-0.13277805));
		points.push(new GLatLng(48.36271494,-0.13633308));
		points.push(new GLatLng(48.36825327,-0.11752101));
		points.push(new GLatLng(48.37423824,-0.11217167));
		points.push(new GLatLng(48.374604,-0.09231499999999999));
		points.push(new GLatLng(48.37018609,-0.07881114));
		points.push(new GLatLng(48.37783627000001,-0.06934972));
		points.push(new GLatLng(48.37749398,-0.06009878));
		points.push(new GLatLng(48.38199626,-0.05454062));
		points.push(new GLatLng(48.37512361,-0.04968889000000001));
		points.push(new GLatLng(48.37815577,-0.05142038));
		points.push(new GLatLng(48.38777633,-0.02210958));
		points.push(new GLatLng(48.39392121000001,-0.0201852));
		points.push(new GLatLng(48.39726709,-0.00125114));
		points.push(new GLatLng(48.39598219,0.00335786));
		points.push(new GLatLng(48.38963323000001,0.00523454));
		points.push(new GLatLng(48.38156905000001,0.01866416));
		points.push(new GLatLng(48.38019851,0.02307252));
		points.push(new GLatLng(48.38037853000001,0.03544456));
		points.push(new GLatLng(48.38039705,0.03966986));
		points.push(new GLatLng(48.38301637000001,0.06251063));
		points.push(new GLatLng(48.39146867,0.05447255));
		points.push(new GLatLng(48.40337583,0.06419195000000001));
		points.push(new GLatLng(48.40605382,0.06734465000000001));
		points.push(new GLatLng(48.40871945,0.0797114));
		points.push(new GLatLng(48.41011918000001,0.08377138000000002));
		points.push(new GLatLng(48.41101656000001,0.08366517));
		points.push(new GLatLng(48.41094783000001,0.09943383000000002));
		points.push(new GLatLng(48.42300696,0.10932259));
		points.push(new GLatLng(48.42611793,0.10689142));
		points.push(new GLatLng(48.43230418,0.11157541));
		points.push(new GLatLng(48.43615083000001,0.11764255));
		points.push(new GLatLng(48.43596859000001,0.1218267));
		points.push(new GLatLng(48.43417175,0.12576825));
		points.push(new GLatLng(48.43709904000001,0.14868808));
		points.push(new GLatLng(48.43793097,0.15330421));
		points.push(new GLatLng(48.44306885,0.15830737));
		points.push(new GLatLng(48.44528988,0.15487582));
		points.push(new GLatLng(48.45216464000001,0.14584137));
		points.push(new GLatLng(48.45493487,0.14391345));
		points.push(new GLatLng(48.45662308000001,0.15250965));
		points.push(new GLatLng(48.44948129000001,0.16905823));
		points.push(new GLatLng(48.45086933,0.17363786));
		points.push(new GLatLng(48.45719320000001,0.17027973));
		points.push(new GLatLng(48.46382372000002,0.17231855));
		points.push(new GLatLng(48.46280075000001,0.18677464));
		points.push(new GLatLng(48.46232728,0.19194616));
		points.push(new GLatLng(48.46373135,0.19493114));
		points.push(new GLatLng(48.47282694,0.21354738));
		points.push(new GLatLng(48.47379645,0.21795778));
		points.push(new GLatLng(48.47313412,0.22164858));
		points.push(new GLatLng(48.47285132,0.22544702));
		points.push(new GLatLng(48.47663471,0.25877196));
		points.push(new GLatLng(48.4793291,0.2616405900000001));
		points.push(new GLatLng(48.48285533,0.26271795));
		points.push(new GLatLng(48.48457244000002,0.26678927));
		points.push(new GLatLng(48.48087897,0.27878514));
		points.push(new GLatLng(48.48143826,0.28353675));
		points.push(new GLatLng(48.47980739,0.29789833));
		points.push(new GLatLng(48.47327337000001,0.30962366));
		points.push(new GLatLng(48.47318094000001,0.31472604));
		points.push(new GLatLng(48.47190016,0.3245131000000001));
		points.push(new GLatLng(48.46281034,0.33681652));
		points.push(new GLatLng(48.46096442,0.34098415));
		points.push(new GLatLng(48.45864554,0.35007753));
		points.push(new GLatLng(48.45968183,0.3528775400000001));
		points.push(new GLatLng(48.45155408000001,0.36319003));
		points.push(new GLatLng(48.44129616000001,0.36768624));
		points.push(new GLatLng(48.43772771,0.36779363));
		points.push(new GLatLng(48.43286426000001,0.3733013));
		points.push(new GLatLng(48.43031020000001,0.37600528));
		points.push(new GLatLng(48.42478327,0.38171185));
		points.push(new GLatLng(48.41490813,0.37950073));
		points.push(new GLatLng(48.41012781,0.37265406));
		points.push(new GLatLng(48.39008756,0.37570316));
		points.push(new GLatLng(48.38696301,0.37384895));
		points.push(new GLatLng(48.38539279,0.37677021));
		points.push(new GLatLng(48.38322059000001,0.37864721));
		points.push(new GLatLng(48.37278901000001,0.3808597400000001));
		points.push(new GLatLng(48.36926737000001,0.38054591));
		points.push(new GLatLng(48.35058268,0.3873426));
		points.push(new GLatLng(48.34730408,0.3874781400000001));
		points.push(new GLatLng(48.34305162,0.38062122));
		points.push(new GLatLng(48.33287107,0.38388785));
		points.push(new GLatLng(48.32128872,0.39535037));
		points.push(new GLatLng(48.31631703,0.4085464300000001));
		points.push(new GLatLng(48.32147546,0.41551717));
		points.push(new GLatLng(48.31751315000001,0.4262608900000001));
		points.push(new GLatLng(48.31484640000001,0.42763902));
		points.push(new GLatLng(48.30866929,0.4299537));
		points.push(new GLatLng(48.30603782,0.43847507));
		points.push(new GLatLng(48.30462238,0.4427862100000001));
		points.push(new GLatLng(48.30527446000001,0.46325338));
		points.push(new GLatLng(48.30004407,0.47597609));
		points.push(new GLatLng(48.30715973000001,0.49157723));
		points.push(new GLatLng(48.29364886,0.50581337));
		points.push(new GLatLng(48.28979155,0.49779475));
		points.push(new GLatLng(48.283479,0.49440485));
		points.push(new GLatLng(48.26758219,0.51255615));
		points.push(new GLatLng(48.26594394,0.52579927));
		points.push(new GLatLng(48.26549042,0.5302883900000001));
		points.push(new GLatLng(48.25977644,0.53654608));
		points.push(new GLatLng(48.25279128,0.53732443));
		points.push(new GLatLng(48.24922979,0.53732537));
		points.push(new GLatLng(48.25014761,0.5467875800000001));
		points.push(new GLatLng(48.24490747,0.57439414));
		points.push(new GLatLng(48.24440345,0.57917755));
		points.push(new GLatLng(48.24453884,0.5937148));

		map.addOverlay(new GPolyline(points));//, "#EF6329"
		//map.addOverlay(new GPolyline(points));	
		
		return true;
	}
	function convCatTUrl(cat,typeCat){
		var tmp="";
		tmp="type="+cat;
		if(typeCat == 'id') tmp = "id="+cat;
		if(cat.lastIndexOf(",")>1) tmp = "lstId="+cat;
		return tmp;
	}
	window.onload = function() {
		load();chargeID();chargeContent();
		GEvent.addListener(map, "moveend", function() {
		  /*var center = map.getCenter();
		  document.getElementById("message").innerHTML = center.toString();*/
		  getLimits();
		});

	};