	var map = null;
	var center = new GLatLng(47.585877,1.330318);
	var initZoom = 9;
	var id = '';
	
	//Création de marker pour les fiches
	function createMarker(point, mess, ico) {
		var infoTabs = [
						new GInfoWindowTab("Name", 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("Name", mess),
						new GInfoWindowTab("Details", 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("details unknown");
		  } 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+"/_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('We are unable to locate the providers of your choice.');
							//alert(tmpCat.substring(5));
							if(document.getElementById('nb') != null){
								document.getElementById('nb').innerHTML = 'Number of results: ' + 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/OT etc.
		var point = new GLatLng(47.585877,1.330318);
		map.addOverlay(createMarkerOT(point,"Comité Départemental du Tourisme<br>du Loir-et-Cher<br><br><form target=\"_blank\" action=\"http://maps.google.com/maps\" method=\"get\">Calculate your itinerary from:<br/><input type=\"text\" name=\"saddr\" id=\"saddr\" class=\"TextGris11\"><input type=\"hidden\" name=\"daddr\" value=\"47.585877,1.330318\"><input type=\"submit\" value=\"calculate\" class=\"TextGris11\"></form>",
									  "Comité Départemental du Tourisme<br>du Loir-et-Cher<br>5, rue de la Voûte du Château<br>41000 BLOIS - France<br>+33 (0)2 54 57 00 41",
									  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(47.96852404000001,1.26059414));
		points.push(new GLatLng(47.96285805,1.26539644));
		points.push(new GLatLng(47.96815754000001,1.29957233));
		points.push(new GLatLng(47.95639608,1.30592226));
		points.push(new GLatLng(47.95375775000001,1.30862468));
		points.push(new GLatLng(47.95776439,1.33820383));
		points.push(new GLatLng(47.96342005000001,1.34970649));
		points.push(new GLatLng(47.95374172,1.37000993));
		points.push(new GLatLng(47.98067635,1.38625993));
		points.push(new GLatLng(47.97060011000001,1.40718626));
		points.push(new GLatLng(47.97516786000001,1.43231229));
		points.push(new GLatLng(47.97649184,1.43723189));
		points.push(new GLatLng(47.98318322,1.43950215));
		points.push(new GLatLng(48.00316824,1.43519544));
		points.push(new GLatLng(48.00851715,1.4325978));
		points.push(new GLatLng(48.01162443,1.44139028));
		points.push(new GLatLng(48.00843214,1.45565049));
		points.push(new GLatLng(47.99010218000001,1.49074921));
		points.push(new GLatLng(47.98738964000001,1.4937145));
		points.push(new GLatLng(47.98388984,1.51116991));
		points.push(new GLatLng(47.9822709,1.52011639));
		points.push(new GLatLng(47.98964367,1.55140462));
		points.push(new GLatLng(47.98787092,1.56067457));
		points.push(new GLatLng(47.98976887000001,1.56481308));
		points.push(new GLatLng(47.97312005000001,1.56444069));
		points.push(new GLatLng(47.96153391000001,1.54784631));
		points.push(new GLatLng(47.95819168,1.54699923));
		points.push(new GLatLng(47.95531094,1.5559455));
		points.push(new GLatLng(47.95312749,1.55220249));
		points.push(new GLatLng(47.94918620000001,1.53346622));
		points.push(new GLatLng(47.94464044000001,1.52622692));
		points.push(new GLatLng(47.93186272,1.52262254));
		points.push(new GLatLng(47.92911220000001,1.52542157));
		points.push(new GLatLng(47.92075151,1.55358001));
		points.push(new GLatLng(47.90617607,1.5758126));
		points.push(new GLatLng(47.90352689,1.57918115));
		points.push(new GLatLng(47.89739900000001,1.57728976));
		points.push(new GLatLng(47.89174097,1.58142284));
		points.push(new GLatLng(47.88900147,1.57905383));
		points.push(new GLatLng(47.87758737,1.58863023));
		points.push(new GLatLng(47.87184306,1.58344495));
		points.push(new GLatLng(47.86848059,1.58362654));
		points.push(new GLatLng(47.84338414,1.54898118));
		points.push(new GLatLng(47.83849271,1.53594921));
		points.push(new GLatLng(47.82860297,1.53136951));
		points.push(new GLatLng(47.82262604,1.52792286));
		points.push(new GLatLng(47.81931106,1.52717231));
		points.push(new GLatLng(47.81701284,1.5408545));
		points.push(new GLatLng(47.7990369,1.56675431));
		points.push(new GLatLng(47.79671239,1.57023193));
		points.push(new GLatLng(47.78867907,1.56725198));
		points.push(new GLatLng(47.78696049,1.57124061));
		points.push(new GLatLng(47.77220938,1.55085396));
		points.push(new GLatLng(47.76953555,1.54781181));
		points.push(new GLatLng(47.739734,1.59797701));
		points.push(new GLatLng(47.73206571,1.58731186));
		points.push(new GLatLng(47.72997092,1.58312881));
		points.push(new GLatLng(47.72643352,1.58285919));
		points.push(new GLatLng(47.73947209,1.61938109));
		points.push(new GLatLng(47.75606269,1.62759917));
		points.push(new GLatLng(47.75940063,1.62926182));
		points.push(new GLatLng(47.74920356,1.6522159));
		points.push(new GLatLng(47.74719129,1.65569579));
		points.push(new GLatLng(47.73947604,1.67312854));
		points.push(new GLatLng(47.73878349000001,1.69380519));
		points.push(new GLatLng(47.73261415000001,1.71226318));
		points.push(new GLatLng(47.72209529,1.71306692));
		points.push(new GLatLng(47.70270761,1.72565986));
		points.push(new GLatLng(47.69956318,1.72805435));
		points.push(new GLatLng(47.69765205000001,1.72379963));
		points.push(new GLatLng(47.69591971,1.71936995));
		points.push(new GLatLng(47.69279191,1.72148455));
		points.push(new GLatLng(47.68785374,1.72809551));
		points.push(new GLatLng(47.66184913,1.74004486));
		points.push(new GLatLng(47.65675638,1.74671719));
		points.push(new GLatLng(47.65286513000001,1.77647203));
		points.push(new GLatLng(47.65084306000001,1.78056525));
		points.push(new GLatLng(47.64414224,1.77869364));
		points.push(new GLatLng(47.63720567,1.78965226));
		points.push(new GLatLng(47.63612186,1.79445409));
		points.push(new GLatLng(47.64049477,1.80256752));
		points.push(new GLatLng(47.64737529,1.80448148));
		points.push(new GLatLng(47.65250668,1.81141853));
		points.push(new GLatLng(47.65936501,1.84537913));
		points.push(new GLatLng(47.68327389,1.84374573));
		points.push(new GLatLng(47.68829008,1.84953344));
		points.push(new GLatLng(47.68940698,1.85445183));
		points.push(new GLatLng(47.68860616,1.86290431));
		points.push(new GLatLng(47.67594534,1.86586735));
		points.push(new GLatLng(47.67776059000001,1.89078206));
		points.push(new GLatLng(47.67382649,1.89905821));
		points.push(new GLatLng(47.67508670000001,1.90899565));
		points.push(new GLatLng(47.67448433,1.91398103));
		points.push(new GLatLng(47.67822052000001,1.92754874));
		points.push(new GLatLng(47.67757942,1.93716904));
		points.push(new GLatLng(47.66182928,1.94206866));
		points.push(new GLatLng(47.66199295,1.95635174));
		points.push(new GLatLng(47.65891874,1.96497396));
		points.push(new GLatLng(47.66429987,1.97722533));
		points.push(new GLatLng(47.66553743000001,1.98189036));
		points.push(new GLatLng(47.66425524,1.99522652));
		points.push(new GLatLng(47.67366962000001,2.00051915));
		points.push(new GLatLng(47.67746215,2.0089118));
		points.push(new GLatLng(47.67486283,2.06464576));
		points.push(new GLatLng(47.68062234000001,2.0699302));
		points.push(new GLatLng(47.68215285,2.07454408));
		points.push(new GLatLng(47.67735849000002,2.10385297));
		points.push(new GLatLng(47.67106134,2.10774226));
		points.push(new GLatLng(47.67000055000001,2.11262037));
		points.push(new GLatLng(47.6782587,2.1279141));
		points.push(new GLatLng(47.67717882,2.13782652));
		points.push(new GLatLng(47.67074896,2.14919574));
		points.push(new GLatLng(47.67102298,2.16959468));
		points.push(new GLatLng(47.67743824,2.19881825));
		points.push(new GLatLng(47.67855019000001,2.20367766));
		points.push(new GLatLng(47.67639434,2.20608151));
		points.push(new GLatLng(47.66294078000001,2.20675114));
		points.push(new GLatLng(47.66480728000001,2.22050155));
		points.push(new GLatLng(47.64126104,2.2407022));
		points.push(new GLatLng(47.62436903,2.23976168));
		points.push(new GLatLng(47.62097771,2.23920916));
		points.push(new GLatLng(47.62067635,2.23395494));
		points.push(new GLatLng(47.60745224,2.19724625));
		points.push(new GLatLng(47.60104565,2.15629095));
		points.push(new GLatLng(47.58881045,2.13809145));
		points.push(new GLatLng(47.58294881,2.119568520000001));
		points.push(new GLatLng(47.57964238,2.12146966));
		points.push(new GLatLng(47.56993073,2.12770246));
		points.push(new GLatLng(47.55635249000001,2.12519018));
		points.push(new GLatLng(47.55069884000001,2.13137996));
		points.push(new GLatLng(47.54857015000001,2.19377296));
		points.push(new GLatLng(47.54611925,2.19756701));
		points.push(new GLatLng(47.52042272,2.21449771));
		points.push(new GLatLng(47.48790374,2.19606087));
		points.push(new GLatLng(47.48818885,2.20131377));
		points.push(new GLatLng(47.49544048000001,2.21942609));
		points.push(new GLatLng(47.49635472,2.23499234));
		points.push(new GLatLng(47.49276366,2.24308144));
		points.push(new GLatLng(47.49173295000001,2.24774007));
		points.push(new GLatLng(47.48559480000001,2.24306757));
		points.push(new GLatLng(47.46894133,2.23821535));
		points.push(new GLatLng(47.45994395000001,2.24499625));
		points.push(new GLatLng(47.45096991,2.23864655));
		points.push(new GLatLng(47.44239531,2.24669853));
		points.push(new GLatLng(47.41482237,2.24369607));
		points.push(new GLatLng(47.41298556,2.24038643));
		points.push(new GLatLng(47.40752577,2.23039252));
		points.push(new GLatLng(47.40752984,2.22518523));
		points.push(new GLatLng(47.40608714,2.20483667));
		points.push(new GLatLng(47.43570559000001,2.18824479));
		points.push(new GLatLng(47.40632197000001,2.13669234));
		points.push(new GLatLng(47.42148402,2.11499222));
		points.push(new GLatLng(47.4179232,2.11562994));
		points.push(new GLatLng(47.41080156,2.116918350000001));
		points.push(new GLatLng(47.39161413,2.10274467));
		points.push(new GLatLng(47.36680368,2.09708096));
		points.push(new GLatLng(47.36764917000001,2.10187013));
		points.push(new GLatLng(47.36953015,2.1113819));
		points.push(new GLatLng(47.36701784000002,2.11466283));
		points.push(new GLatLng(47.3454158,2.12670378));
		points.push(new GLatLng(47.33342951,2.11939416));
		points.push(new GLatLng(47.33111655,2.12852119));
		points.push(new GLatLng(47.32173695,2.13501217));
		points.push(new GLatLng(47.31636172000001,2.14799548));
		points.push(new GLatLng(47.30021164000001,2.15715042));
		points.push(new GLatLng(47.29787596000001,2.15342941));
		points.push(new GLatLng(47.29343782,2.1399174));
		points.push(new GLatLng(47.28119089000001,2.13289184));
		points.push(new GLatLng(47.28017529,2.12836175));
		points.push(new GLatLng(47.27917652,2.11426169));
		points.push(new GLatLng(47.28173504,2.11113135));
		points.push(new GLatLng(47.28571563,2.10393608));
		points.push(new GLatLng(47.28538882,2.09420768));
		points.push(new GLatLng(47.28549463,2.0889708));
		points.push(new GLatLng(47.28037966000001,2.05892343));
		points.push(new GLatLng(47.26511618,2.02452648));
		points.push(new GLatLng(47.26700261,2.02025878));
		points.push(new GLatLng(47.26841457,2.01045756));
		points.push(new GLatLng(47.26574785,1.99661123));
		points.push(new GLatLng(47.27576910000001,1.97595444));
		points.push(new GLatLng(47.27590362,1.97582136));
		points.push(new GLatLng(47.27765383,1.97143436));
		points.push(new GLatLng(47.29006659000001,1.94136394));
		points.push(new GLatLng(47.27359431000001,1.92300837));
		points.push(new GLatLng(47.26385991,1.92268729));
		points.push(new GLatLng(47.25479944,1.89550019));
		points.push(new GLatLng(47.25187718000002,1.89350291));
		points.push(new GLatLng(47.24675963,1.89610817));
		points.push(new GLatLng(47.24378759,1.90952735));
		points.push(new GLatLng(47.24075709000001,1.91224619));
		points.push(new GLatLng(47.23418468,1.91563983));
		points.push(new GLatLng(47.22088902,1.90832382));
		points.push(new GLatLng(47.21788422,1.90585245));
		points.push(new GLatLng(47.20707908,1.87534026));
		points.push(new GLatLng(47.22053553,1.85309421));
		points.push(new GLatLng(47.21930643,1.83908293));
		points.push(new GLatLng(47.22055502000001,1.83451591));
		points.push(new GLatLng(47.22999315000001,1.81461766));
		points.push(new GLatLng(47.23219204000001,1.81151897));
		points.push(new GLatLng(47.2378228,1.79582496));
		points.push(new GLatLng(47.23480761,1.79357053));
		points.push(new GLatLng(47.23139832,1.78601124));
		points.push(new GLatLng(47.23138656,1.77610626));
		points.push(new GLatLng(47.23373469,1.77246282));
		points.push(new GLatLng(47.24731442000001,1.75004617));
		points.push(new GLatLng(47.24987008,1.74668753));
		points.push(new GLatLng(47.27682129,1.71581654));
		points.push(new GLatLng(47.27395414,1.71294334));
		points.push(new GLatLng(47.26408039,1.70042504));
		points.push(new GLatLng(47.25889093,1.66569506));
		points.push(new GLatLng(47.26184592,1.65113525));
		points.push(new GLatLng(47.27148851000001,1.6494652));
		points.push(new GLatLng(47.27443591000001,1.62957443));
		points.push(new GLatLng(47.27263035,1.61979115));
		points.push(new GLatLng(47.27714314,1.61209042));
		points.push(new GLatLng(47.27542393,1.60764607));
		points.push(new GLatLng(47.27501489,1.6027214));
		points.push(new GLatLng(47.27441376,1.59313362));
		points.push(new GLatLng(47.25769782,1.59289038));
		points.push(new GLatLng(47.25788088,1.58781381));
		points.push(new GLatLng(47.26142489,1.56307814));
		points.push(new GLatLng(47.25534358000002,1.52395106));
		points.push(new GLatLng(47.25249448,1.52675575));
		points.push(new GLatLng(47.23978394,1.52700237));
		points.push(new GLatLng(47.23026113,1.53271848));
		points.push(new GLatLng(47.22359807,1.53444416));
		points.push(new GLatLng(47.21925337,1.52806433));
		points.push(new GLatLng(47.22250986000001,1.5266418));
		points.push(new GLatLng(47.23452479,1.50350441));
		points.push(new GLatLng(47.23312141,1.49483563));
		points.push(new GLatLng(47.23747651000001,1.48760795));
		points.push(new GLatLng(47.23891547,1.47301413));
		points.push(new GLatLng(47.2390307,1.4679941));
		points.push(new GLatLng(47.23898989,1.45314765));
		points.push(new GLatLng(47.22915981,1.42120426));
		points.push(new GLatLng(47.22618603,1.41830886));
		points.push(new GLatLng(47.21741688000001,1.40958761));
		points.push(new GLatLng(47.21554674000001,1.40637195));
		points.push(new GLatLng(47.20868952,1.39283913));
		points.push(new GLatLng(47.20687202000001,1.38842363));
		points.push(new GLatLng(47.19389849,1.35185671));
		points.push(new GLatLng(47.19421846,1.33677829));
		points.push(new GLatLng(47.18622236,1.32666077));
		points.push(new GLatLng(47.19120800000001,1.32376882));
		points.push(new GLatLng(47.19387363,1.32202901));
		points.push(new GLatLng(47.21696491,1.30451841));
		points.push(new GLatLng(47.22001712,1.30278253));
		points.push(new GLatLng(47.22337195000001,1.30168767));
		points.push(new GLatLng(47.24097996,1.28797848));
		points.push(new GLatLng(47.25593912,1.27499997));
		points.push(new GLatLng(47.25727671,1.26495846));
		points.push(new GLatLng(47.27573009,1.2421551));
		points.push(new GLatLng(47.27825985000001,1.24329305));
		points.push(new GLatLng(47.28366097,1.24364529));
		points.push(new GLatLng(47.28662943,1.24256654));
		points.push(new GLatLng(47.29417247,1.22333091));
		points.push(new GLatLng(47.29361222,1.21934918));
		points.push(new GLatLng(47.29238933,1.21570011));
		points.push(new GLatLng(47.28902962,1.21528003));
		points.push(new GLatLng(47.28441775000001,1.19723765));
		points.push(new GLatLng(47.28491752,1.18243258));
		points.push(new GLatLng(47.28860459000001,1.17412885));
		points.push(new GLatLng(47.28556521,1.17337523));
		points.push(new GLatLng(47.27219886,1.16206063));
		points.push(new GLatLng(47.29454306,1.13122139));
		points.push(new GLatLng(47.29840202,1.10812351));
		points.push(new GLatLng(47.30160900000001,1.10598661));
		points.push(new GLatLng(47.32853327,1.09485991));
		points.push(new GLatLng(47.33108483000001,1.10631308));
		points.push(new GLatLng(47.33439640000001,1.10724253));
		points.push(new GLatLng(47.35010468000001,1.11578959));
		points.push(new GLatLng(47.35506845,1.12241454));
		points.push(new GLatLng(47.36714826000001,1.10688532));
		points.push(new GLatLng(47.37288439,1.10740204));
		points.push(new GLatLng(47.38165632,1.1185114));
		points.push(new GLatLng(47.38365268,1.12185672));
		points.push(new GLatLng(47.39037110000001,1.12169048));
		points.push(new GLatLng(47.39847023,1.11339735));
		points.push(new GLatLng(47.4086325,1.1105271));
		points.push(new GLatLng(47.42968024,1.08501332));
		points.push(new GLatLng(47.42924237,1.1147593));
		points.push(new GLatLng(47.44568696,1.13191347));
		points.push(new GLatLng(47.44894959000001,1.13336482));
		points.push(new GLatLng(47.45009913000001,1.12885623));
		points.push(new GLatLng(47.46591729,1.11288329));
		points.push(new GLatLng(47.46511591,1.10771469));
		points.push(new GLatLng(47.46181796,1.08711029));
		points.push(new GLatLng(47.47048135,1.09373976));
		points.push(new GLatLng(47.47284619,1.09028798));
		points.push(new GLatLng(47.48820725,1.08158044));
		points.push(new GLatLng(47.49156663,1.08028016));
		points.push(new GLatLng(47.50299303000001,1.06885902));
		points.push(new GLatLng(47.51946411000001,1.06882517));
		points.push(new GLatLng(47.5315708,1.04502626));
		points.push(new GLatLng(47.53686059000001,1.04755464));
		points.push(new GLatLng(47.53987118,1.04963382));
		points.push(new GLatLng(47.55975339,1.07517256));
		points.push(new GLatLng(47.57244812,1.0769995));
		points.push(new GLatLng(47.57119214000001,1.07317442));
		points.push(new GLatLng(47.56613981,1.06359183));
		points.push(new GLatLng(47.56954182,1.0621014));
		points.push(new GLatLng(47.57648838,1.05990087));
		points.push(new GLatLng(47.60700522,1.03334908));
		points.push(new GLatLng(47.60849268,1.02890962));
		points.push(new GLatLng(47.60768228,1.01928575));
		points.push(new GLatLng(47.60278381000001,1.01253079));
		points.push(new GLatLng(47.58435882000001,1.00372249));
		points.push(new GLatLng(47.58395175,1.00039541));
		points.push(new GLatLng(47.58396681000001,0.99701786));
		points.push(new GLatLng(47.58718884000001,0.99559367));
		points.push(new GLatLng(47.59116303,0.98766098));
		points.push(new GLatLng(47.60432772,0.98490725));
		points.push(new GLatLng(47.62002400000001,0.9917842900000002));
		points.push(new GLatLng(47.62052682,0.98704823));
		points.push(new GLatLng(47.62174554,0.9727804100000002));
		points.push(new GLatLng(47.62956421,0.9652605));
		points.push(new GLatLng(47.6279657,0.9609237500000002));
		points.push(new GLatLng(47.62614628,0.9516429300000001));
		points.push(new GLatLng(47.6284218,0.9373435000000001));
		points.push(new GLatLng(47.62876937,0.93259825));
		points.push(new GLatLng(47.6327496,0.91959718));
		points.push(new GLatLng(47.63000721,0.91675597));
		points.push(new GLatLng(47.61596214000001,0.9040799600000001));
		points.push(new GLatLng(47.61292076,0.89528855));
		points.push(new GLatLng(47.60371195,0.8991563));
		points.push(new GLatLng(47.60003138,0.86458191));
		points.push(new GLatLng(47.61202383,0.8576378000000001));
		points.push(new GLatLng(47.61288979,0.85274323));
		points.push(new GLatLng(47.62307404,0.8507701300000001));
		points.push(new GLatLng(47.62668278,0.8593453800000002));
		points.push(new GLatLng(47.63316124000001,0.8622926800000001));
		points.push(new GLatLng(47.64509906000001,0.84469586));
		points.push(new GLatLng(47.67353901,0.86054472));
		points.push(new GLatLng(47.67683204,0.8620115));
		points.push(new GLatLng(47.67950023000001,0.8596062800000002));
		points.push(new GLatLng(47.68648065,0.86740515));
		points.push(new GLatLng(47.68933265,0.86530109));
		points.push(new GLatLng(47.68186846,0.84428655));
		points.push(new GLatLng(47.68012513,0.8409268600000002));
		points.push(new GLatLng(47.67692646,0.83417203));
		points.push(new GLatLng(47.67673712000001,0.829341));
		points.push(new GLatLng(47.68221147,0.8117747600000002));
		points.push(new GLatLng(47.67939191,0.8025847600000001));
		points.push(new GLatLng(47.68082486000002,0.7871710500000001));
		points.push(new GLatLng(47.69553705,0.73564115));
		points.push(new GLatLng(47.69308424000001,0.73259734));
		points.push(new GLatLng(47.68999597000001,0.71940731));
		points.push(new GLatLng(47.6818074,0.71214368));
		points.push(new GLatLng(47.68296329,0.70731248));
		points.push(new GLatLng(47.69900171,0.67477124));
		points.push(new GLatLng(47.6958939,0.67259004));
		points.push(new GLatLng(47.68417820000001,0.65425324));
		points.push(new GLatLng(47.68436626,0.64922479));
		points.push(new GLatLng(47.68929619000001,0.6455105799999999));
		points.push(new GLatLng(47.69846662,0.65194769));
		points.push(new GLatLng(47.70811674,0.63876601));
		points.push(new GLatLng(47.7080247,0.6287861));
		points.push(new GLatLng(47.69421095,0.61442703));
		points.push(new GLatLng(47.69165329,0.6112056700000002));
		points.push(new GLatLng(47.68667819,0.6045328));
		points.push(new GLatLng(47.68924814,0.59589509));
		points.push(new GLatLng(47.70217423,0.59279207));
		points.push(new GLatLng(47.71236909,0.58031357));
		points.push(new GLatLng(47.71282080000001,0.58049855));
		points.push(new GLatLng(47.72302859,0.59407918));
		points.push(new GLatLng(47.72528897000002,0.60872419));
		points.push(new GLatLng(47.72812926000001,0.6115916));
		points.push(new GLatLng(47.73202880000001,0.61066462));
		points.push(new GLatLng(47.73662546,0.61794279));
		points.push(new GLatLng(47.74616307000001,0.61990086));
		points.push(new GLatLng(47.75134943000001,0.6263357000000001));
		points.push(new GLatLng(47.75305014,0.64609004));
		points.push(new GLatLng(47.75491803000001,0.65027255));
		points.push(new GLatLng(47.75511227,0.65120017));
		points.push(new GLatLng(47.76729787,0.67096041));
		points.push(new GLatLng(47.76876764000001,0.67498392));
		points.push(new GLatLng(47.76433752,0.6924411200000001));
		points.push(new GLatLng(47.76418169000001,0.69734253));
		points.push(new GLatLng(47.76966235,0.70263038));
		points.push(new GLatLng(47.78352432000001,0.69173852));
		points.push(new GLatLng(47.7896423,0.7026811300000001));
		points.push(new GLatLng(47.78720741,0.71189959));
		points.push(new GLatLng(47.79048551,0.71281215));
		points.push(new GLatLng(47.80545978000001,0.73011282));
		points.push(new GLatLng(47.80768719000001,0.73378404));
		points.push(new GLatLng(47.81255275000001,0.7402737));
		points.push(new GLatLng(47.82782919000001,0.74769394));
		points.push(new GLatLng(47.83081505,0.7563275200000001));
		points.push(new GLatLng(47.83357746,0.75898367));
		points.push(new GLatLng(47.83109592,0.76840883));
		points.push(new GLatLng(47.84058934,0.7740329600000001));
		points.push(new GLatLng(47.85064337,0.77384276));
		points.push(new GLatLng(47.85274293,0.77009218));
		points.push(new GLatLng(47.85921602000001,0.7591542100000001));
		points.push(new GLatLng(47.86512898,0.763389));
		points.push(new GLatLng(47.88812771,0.7572747000000001));
		points.push(new GLatLng(47.89808327000001,0.75979935));
		points.push(new GLatLng(47.89997122,0.76372911));
		points.push(new GLatLng(47.90138769000001,0.76806106));
		points.push(new GLatLng(47.91174154,0.7869914));
		points.push(new GLatLng(47.90743665000001,0.7940635500000001));
		points.push(new GLatLng(47.89796114,0.7978566700000001));
		points.push(new GLatLng(47.8894826,0.8132289000000001));
		points.push(new GLatLng(47.89182315000001,0.81682588));
		points.push(new GLatLng(47.89515597,0.81580714));
		points.push(new GLatLng(47.90822772,0.81053437));
		points.push(new GLatLng(47.92814697,0.81222036));
		points.push(new GLatLng(47.93427202,0.81633998));
		points.push(new GLatLng(47.94118272,0.84519078));
		points.push(new GLatLng(47.94392155,0.8483664400000001));
		points.push(new GLatLng(47.95389677,0.84556654));
		points.push(new GLatLng(47.95659611,0.8428256));
		points.push(new GLatLng(47.96893184,0.83683768));
		points.push(new GLatLng(47.97256420000001,0.82903265));
		points.push(new GLatLng(47.98173204,0.82434968));
		points.push(new GLatLng(47.98724546,0.8194754400000001));
		points.push(new GLatLng(48.00039033,0.8323378100000001));
		points.push(new GLatLng(48.00913174000001,0.8357623));
		points.push(new GLatLng(48.01900619,0.8405875));
		points.push(new GLatLng(48.03261328,0.8383238000000001));
		points.push(new GLatLng(48.03144459,0.81333521));
		points.push(new GLatLng(48.03658011,0.80711168));
		points.push(new GLatLng(48.03723728,0.79754405));
		points.push(new GLatLng(48.06661894000001,0.7966986600000002));
		points.push(new GLatLng(48.06943438,0.7939861700000002));
		points.push(new GLatLng(48.07130428,0.8383634));
		points.push(new GLatLng(48.07263261000001,0.8430091));
		points.push(new GLatLng(48.09276825,0.8450018));
		points.push(new GLatLng(48.09113206,0.8302812200000002));
		points.push(new GLatLng(48.09461902,0.8161384));
		points.push(new GLatLng(48.09767371,0.81790296));
		points.push(new GLatLng(48.10091637000001,0.8372248500000002));
		points.push(new GLatLng(48.10305375000001,0.84120563));
		points.push(new GLatLng(48.10845754,0.8717369800000001));
		points.push(new GLatLng(48.1031755,0.8838076));
		points.push(new GLatLng(48.1022581,0.88889498));
		points.push(new GLatLng(48.10414846,0.9132812300000002));
		points.push(new GLatLng(48.11170635,0.92920556));
		points.push(new GLatLng(48.11230982,0.93906016));
		points.push(new GLatLng(48.11236874,0.94401412));
		points.push(new GLatLng(48.10090259,0.94557969));
		points.push(new GLatLng(48.09790565,0.9454038200000001));
		points.push(new GLatLng(48.10047516,0.95507012));
		points.push(new GLatLng(48.12668032,0.9952184800000002));
		points.push(new GLatLng(48.13170146,1.00891434));
		points.push(new GLatLng(48.13282389,1.02958869));
		points.push(new GLatLng(48.13104009,1.03976233));
		points.push(new GLatLng(48.12164091,1.04707257));
		points.push(new GLatLng(48.11651921000001,1.04013377));
		points.push(new GLatLng(48.09913447,0.99451097));
		points.push(new GLatLng(48.08928210000001,0.99568978));
		points.push(new GLatLng(48.08415894,1.00940223));
		points.push(new GLatLng(48.08753072,1.02934436));
		points.push(new GLatLng(48.0857469,1.03391206));
		points.push(new GLatLng(48.08560304,1.06504363));
		points.push(new GLatLng(48.07669251,1.07187364));
		points.push(new GLatLng(48.08098400000001,1.10753793));
		points.push(new GLatLng(48.08079571,1.1127497));
		points.push(new GLatLng(48.06096678,1.10687821));
		points.push(new GLatLng(48.05548327000001,1.11321722));
		points.push(new GLatLng(48.05245287,1.11575576));
		points.push(new GLatLng(48.04281294000001,1.11758855));
		points.push(new GLatLng(48.04004242000001,1.12013363));
		points.push(new GLatLng(48.03449555000001,1.12903135));
		points.push(new GLatLng(48.03397269,1.1332806));
		points.push(new GLatLng(48.03109351,1.14115001));
		points.push(new GLatLng(48.02873043000001,1.14392539));
		points.push(new GLatLng(48.02853345,1.1636002));
		points.push(new GLatLng(48.02622212,1.16710798));
		points.push(new GLatLng(48.0178587,1.1618646));
		points.push(new GLatLng(48.00992709,1.17003083));
		points.push(new GLatLng(48.00668463,1.16955311));
		points.push(new GLatLng(48.00520137000001,1.17414117));
		points.push(new GLatLng(48.00059587,1.18772494));
		points.push(new GLatLng(47.97569539,1.19999924));
		points.push(new GLatLng(47.97365894,1.19590585));
		points.push(new GLatLng(47.97196087,1.19148264));
		points.push(new GLatLng(47.96863089,1.2052017));
		points.push(new GLatLng(47.97563461000001,1.22266464));
		points.push(new GLatLng(47.97831592000001,1.24280719));
		points.push(new GLatLng(47.97857120000001,1.24799905));
		points.push(new GLatLng(47.9718384,1.2590533));
		points.push(new GLatLng(47.96852404000001,1.26059414));

		map.addOverlay(new GPolyline(points));//, "#EF6329"*/
		//map.addOverlay(new GPolyline(points));
		return true;
	}
	function convCatTUrl(cat){
		var tmp="";
		//alert(cat)
		if(cat.indexOf("idoi") >= 0)
		{
			tmp = cat;
		}else{
			tmp = "type="+cat;
		}
		return tmp;
	}
	window.onload = function() {
		load();chargeID();
		GEvent.addListener(map, "moveend", function() {
		  /*var center = map.getCenter();
		  document.getElementById("message").innerHTML = center.toString();*/
		  getLimits();
		});
	};