	var map = null;
	var center = new GLatLng(47.923704717745686,2.3455810546875);
	var initZoom = 9;
	var idoi = '';
	function createMarker(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){
		map.clearOverlays();
		administrative();
		var tmpCat = convCatTUrl(cat);
		//alert(tmpCat);
		GDownloadUrl("http://www.tourismeloiret.com/_includes/google-maps/mnet-gMaps.asp?OICarto=ok&"+tmpCat,
						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 !');
							for (var i = 0; i < markers.length; i++) {
								
								var point = new GLatLng(parseFloat(markers[i].getAttribute("lat")),
								parseFloat(markers[i].getAttribute("lng")));
								
								var icontype = parseInt(markers[i].getAttribute("icontype"));
								var Ref = markers[i].getAttribute("label");

								var html = decode(markers[i].getElementsByTagName("infowindow"));
								var html2 = decode(markers[i].getElementsByTagName("infowindow2")); 
								map.addOverlay(createMarker(point,html,html2,iconStyle(cat)));//, icontype,cat,i
							}
						}
					);    
	}
	
    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"),{mapTypes:[G_HYBRID_MAP,G_NORMAL_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()>3.136802859594326) map.setCenter(center, initZoom);
				if(tmpcenter.lng()<1.479931063873082) map.setCenter(center, initZoom);
				if(tmpcenter.lat()>48.5) map.setCenter(center, initZoom);
				if(tmpcenter.lat()<47.45) map.setCenter(center, initZoom);
			});
		
		map.setCenter(center, initZoom);
		
		// poisitionne le CDT
		var point = new GLatLng(47.903,1.907);
		map.addOverlay(createMarker(point,"Comité Départemental de Tourisme du Loiret<br/><img src='http://www.tourismeloiret.com/Loiret-tourisme-images/week-end-loiret-modele/loiret.gif'>","Comité Départemental<br/>de Tourisme du Loiret<br/>8, rue d'Escures<br/>45000 Orléans<br/>Tél : 02.38.78.04.04<br/>Fax : 02.38.77.04.12<br/><a href=\"mailto:info@tourismeloiret.com\" class=\"TextBleuClair10\">info@tourismeloiret.com</a><br/><a href=\"http://www.tourismeloiret.com\" class=\"TextBleuClair10\">www.tourismeloiret.com</a>",iconStyle('info')));
		
		administrative();
      }
    }
	function iconStyle(cat){
		var tmpCat = cat;
		if(tmpCat == '') tmpCat = 'default';
		if(tmpCat.substring(0,2) == '02') tmpCat = 'default';
		if(idoi == cat) tmpCat = 'default';
		//if(tmpCat != 'info' && tmpCat != 'hotel') tmpCat = 'default';
		var icon = new GIcon();
		icon.image = "http://www.tourismeloiret.com/_includes/google-maps/img/gm"+tmpCat+".png";
		icon.shadow = "http://www.tourismeloiret.com/_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.07004121,1.77153518));
		points.push(new GLatLng(48.07516237000001,1.77808199));
		points.push(new GLatLng(48.07768131,1.79749932));
		points.push(new GLatLng(48.08411357000001,1.80003699));
		points.push(new GLatLng(48.08920662,1.80273652));
		points.push(new GLatLng(48.08131154000001,1.83326628));
		points.push(new GLatLng(48.08077474000001,1.83811593));
		points.push(new GLatLng(48.08727612000001,1.84020172));
		points.push(new GLatLng(48.08501189,1.86458176));
		points.push(new GLatLng(48.09178544,1.86515182));
		points.push(new GLatLng(48.0951835,1.86489315));
		points.push(new GLatLng(48.09801035000001,1.88163442));
		points.push(new GLatLng(48.10271837000001,1.88760819));
		points.push(new GLatLng(48.10557694,1.88970507));
		points.push(new GLatLng(48.12755469,1.8994575));
		points.push(new GLatLng(48.1304001,1.90781557));
		points.push(new GLatLng(48.12913165,1.9126077));
		points.push(new GLatLng(48.14637849,1.92039591));
		points.push(new GLatLng(48.14647772000001,1.91022244));
		points.push(new GLatLng(48.16002997,1.9032191));
		points.push(new GLatLng(48.1599933,1.90792334));
		points.push(new GLatLng(48.16705625,1.91656241));
		points.push(new GLatLng(48.16948570000002,1.91953925));
		points.push(new GLatLng(48.17344185,1.92711804));
		points.push(new GLatLng(48.16936792000001,1.93474467));
		points.push(new GLatLng(48.17462265000001,1.95187185));
		points.push(new GLatLng(48.17269074000001,1.96625661));
		points.push(new GLatLng(48.17104969,1.97054294));
		points.push(new GLatLng(48.17810577,1.97002317));
		points.push(new GLatLng(48.18167428,1.96933941));
		points.push(new GLatLng(48.19386647,1.95228346));
		points.push(new GLatLng(48.20005726,1.95641972));
		points.push(new GLatLng(48.19431241,1.97083786));
		points.push(new GLatLng(48.19985967,1.97644817));
		points.push(new GLatLng(48.22259216,1.96257921));
		points.push(new GLatLng(48.23212912,1.96443704));
		points.push(new GLatLng(48.23505819,1.9665966));
		points.push(new GLatLng(48.23766176,1.96533993));
		points.push(new GLatLng(48.24547393,1.96205379));
		points.push(new GLatLng(48.25445879000001,1.96593451));
		points.push(new GLatLng(48.25929725,1.97787085));
		points.push(new GLatLng(48.26140381,1.98138444));
		points.push(new GLatLng(48.26623619,1.98571498));
		points.push(new GLatLng(48.26870622,1.98786671));
		points.push(new GLatLng(48.28658115000001,1.99407824));
		points.push(new GLatLng(48.28532071000001,2.00926928));
		points.push(new GLatLng(48.28862879,2.02898745));
		points.push(new GLatLng(48.28615662000001,2.043215));
		points.push(new GLatLng(48.29020495,2.051451310000001));
		points.push(new GLatLng(48.29546781,2.0527027));
		points.push(new GLatLng(48.29450381000002,2.08752521));
		points.push(new GLatLng(48.30471629000001,2.0998887));
		points.push(new GLatLng(48.307458,2.1087027));
		points.push(new GLatLng(48.30724283,2.11370511));
		points.push(new GLatLng(48.3003698,2.11168611));
		points.push(new GLatLng(48.29694207,2.11058379));
		points.push(new GLatLng(48.29928066,2.14114662));
		points.push(new GLatLng(48.29843177000001,2.16157946));
		points.push(new GLatLng(48.3015169,2.16237903));
		points.push(new GLatLng(48.30545343000001,2.15541045));
		points.push(new GLatLng(48.30840009,2.15386377));
		points.push(new GLatLng(48.31481779,2.15265649));
		points.push(new GLatLng(48.31302317,2.16697605));
		points.push(new GLatLng(48.31503366000001,2.17082328));
		points.push(new GLatLng(48.31292147,2.17782686));
		points.push(new GLatLng(48.31378949,2.18147705));
		points.push(new GLatLng(48.32381632000001,2.18293024));
		points.push(new GLatLng(48.34493805,2.20707736));
		points.push(new GLatLng(48.33667463,2.21467644));
		points.push(new GLatLng(48.32976732,2.23180275));
		points.push(new GLatLng(48.32996011,2.24629683));
		points.push(new GLatLng(48.31636815000001,2.23803038));
		points.push(new GLatLng(48.31542324,2.24820918));
		points.push(new GLatLng(48.3018535,2.24521494));
		points.push(new GLatLng(48.29839188,2.24513882));
		points.push(new GLatLng(48.30141107,2.25483615));
		points.push(new GLatLng(48.31266582,2.26552061));
		points.push(new GLatLng(48.31504157,2.26910288));
		points.push(new GLatLng(48.30885051,2.29668648));
		points.push(new GLatLng(48.31123338,2.30018902));
		points.push(new GLatLng(48.33011846,2.31241847));
		points.push(new GLatLng(48.33156779000001,2.31716402));
		points.push(new GLatLng(48.33063303,2.32614432));
		points.push(new GLatLng(48.33282796,2.3292991));
		points.push(new GLatLng(48.31879248,2.34034163));
		points.push(new GLatLng(48.31042946,2.35578714));
		points.push(new GLatLng(48.30867314000001,2.36993815));
		points.push(new GLatLng(48.31374376,2.39432357));
		points.push(new GLatLng(48.31866869000002,2.39853614));
		points.push(new GLatLng(48.32071642,2.40265019));
		points.push(new GLatLng(48.30220451,2.41773514));
		points.push(new GLatLng(48.29925245,2.42074773));
		points.push(new GLatLng(48.27002305,2.41957127));
		points.push(new GLatLng(48.26670402,2.42008993));
		points.push(new GLatLng(48.26387153,2.42170141));
		points.push(new GLatLng(48.25485143000001,2.43563553));
		points.push(new GLatLng(48.25320218,2.44012925));
		points.push(new GLatLng(48.25448404000001,2.44449404));
		points.push(new GLatLng(48.25042207,2.45179605));
		points.push(new GLatLng(48.25325831,2.46538694));
		points.push(new GLatLng(48.25527728,2.46908102));
		points.push(new GLatLng(48.25082669,2.47677062));
		points.push(new GLatLng(48.24139014000001,2.48059525));
		points.push(new GLatLng(48.23896705,2.48416761));
		points.push(new GLatLng(48.23870193000001,2.50173326));
		points.push(new GLatLng(48.23853289000001,2.5061758));
		points.push(new GLatLng(48.22898231000001,2.50732798));
		points.push(new GLatLng(48.22692939,2.51534158));
		points.push(new GLatLng(48.21437819,2.51410166));
		points.push(new GLatLng(48.21437319,2.51739643));
		points.push(new GLatLng(48.20137736,2.51990876));
		points.push(new GLatLng(48.19876585000001,2.52299309));
		points.push(new GLatLng(48.1939137,2.520286270000001));
		points.push(new GLatLng(48.19300405,2.51540144));
		points.push(new GLatLng(48.18092898,2.50882623));
		points.push(new GLatLng(48.16484264,2.51490279));
		points.push(new GLatLng(48.15643894,2.50631391));
		points.push(new GLatLng(48.15845023,2.50201981));
		points.push(new GLatLng(48.16451761,2.48322168));
		points.push(new GLatLng(48.15843472,2.47948212));
		points.push(new GLatLng(48.15459521,2.4718388));
		points.push(new GLatLng(48.15160827,2.4740349));
		points.push(new GLatLng(48.13820578000001,2.4610899));
		points.push(new GLatLng(48.13147027,2.44424329));
		points.push(new GLatLng(48.1254911,2.44268659));
		points.push(new GLatLng(48.12339239,2.45584408));
		points.push(new GLatLng(48.12561026,2.45893818));
		points.push(new GLatLng(48.12910537,2.47754925));
		points.push(new GLatLng(48.12590397,2.51726949));
		points.push(new GLatLng(48.12521382000001,2.52219622));
		points.push(new GLatLng(48.12841485,2.52171051));
		points.push(new GLatLng(48.13806065000001,2.53438579));
		points.push(new GLatLng(48.14051918,2.53749842));
		points.push(new GLatLng(48.14081785,2.57054913));
		points.push(new GLatLng(48.1317841,2.57787008));
		points.push(new GLatLng(48.13161298,2.59901198));
		points.push(new GLatLng(48.13833560000001,2.63444586));
		points.push(new GLatLng(48.13895172,2.63966053));
		points.push(new GLatLng(48.12343591000001,2.66156902));
		points.push(new GLatLng(48.12054065,2.66473536));
		points.push(new GLatLng(48.12066763,2.667556390000001));
		points.push(new GLatLng(48.12516813,2.67546855));
		points.push(new GLatLng(48.12482274,2.70653175));
		points.push(new GLatLng(48.13741444000001,2.72245884));
		points.push(new GLatLng(48.14487309,2.75031244));
		points.push(new GLatLng(48.14565615,2.75518382));
		points.push(new GLatLng(48.15190806,2.75423776));
		points.push(new GLatLng(48.16341996000001,2.73837495));
		points.push(new GLatLng(48.16631312,2.73639425));
		points.push(new GLatLng(48.16139394,2.75467587));
		points.push(new GLatLng(48.16572877,2.77667337));
		points.push(new GLatLng(48.16736717,2.78096153));
		points.push(new GLatLng(48.1653086,2.79023204));
		points.push(new GLatLng(48.16802625,2.79893893));
		points.push(new GLatLng(48.1640761,2.81090699));
		points.push(new GLatLng(48.16082301,2.81040728));
		points.push(new GLatLng(48.15361535000001,2.80039813));
		points.push(new GLatLng(48.14055165,2.79789305));
		points.push(new GLatLng(48.13739831,2.79944797));
		points.push(new GLatLng(48.13146896,2.8023927));
		points.push(new GLatLng(48.13043279,2.81632629));
		points.push(new GLatLng(48.1296678,2.82087282));
		points.push(new GLatLng(48.13277804000001,2.82330457));
		points.push(new GLatLng(48.13590721,2.838300010000001));
		points.push(new GLatLng(48.15291382000001,2.86442447));
		points.push(new GLatLng(48.15604133000002,2.866807640000001));
		points.push(new GLatLng(48.15647206,2.87097808));
		points.push(new GLatLng(48.15894924,2.89519467));
		points.push(new GLatLng(48.15943869000001,2.9000382));
		points.push(new GLatLng(48.16281055,2.93112235));
		points.push(new GLatLng(48.1633957,2.936305050000001));
		points.push(new GLatLng(48.16436691,2.95195893));
		points.push(new GLatLng(48.15538676,2.95993207));
		points.push(new GLatLng(48.15286655,2.96359774));
		points.push(new GLatLng(48.15058579,2.97816389));
		points.push(new GLatLng(48.15228737,2.98760475));
		points.push(new GLatLng(48.14310652000001,2.99403447));
		points.push(new GLatLng(48.14166715000001,3.0021315));
		points.push(new GLatLng(48.14486748000001,3.00387835));
		points.push(new GLatLng(48.14348417,3.01321221));
		points.push(new GLatLng(48.13778447,3.01903805));
		points.push(new GLatLng(48.13567546000001,3.02310672));
		points.push(new GLatLng(48.13070446,3.027258440000001));
		points.push(new GLatLng(48.11570867,3.01586353));
		points.push(new GLatLng(48.11563197,3.03507919));
		points.push(new GLatLng(48.09648647,3.04118839));
		points.push(new GLatLng(48.09338281,3.0428919));
		points.push(new GLatLng(48.09124349,3.05017857));
		points.push(new GLatLng(48.08825983,3.04986974));
		points.push(new GLatLng(48.07550927000001,3.04971199));
		points.push(new GLatLng(48.07233931,3.05046077));
		points.push(new GLatLng(48.0647074,3.06027045));
		points.push(new GLatLng(48.0602474,3.07892285));
		points.push(new GLatLng(48.05395169000001,3.090329350000001));
		points.push(new GLatLng(48.05398230000001,3.09534633));
		points.push(new GLatLng(48.04822207,3.09051571));
		points.push(new GLatLng(48.03957013000001,3.097606400000001));
		points.push(new GLatLng(48.03248204,3.11972084));
		points.push(new GLatLng(48.03112977,3.1242459));
		points.push(new GLatLng(48.02859992,3.12064192));
		points.push(new GLatLng(48.02246295,3.10215876));
		points.push(new GLatLng(48.01318937000001,3.10655442));
		points.push(new GLatLng(48.00937256000001,3.12082538));
		points.push(new GLatLng(47.99594309,3.12110825));
		points.push(new GLatLng(47.99085998,3.122747570000001));
		points.push(new GLatLng(47.99127429000001,3.12666576));
		points.push(new GLatLng(47.98520169,3.12298484));
		points.push(new GLatLng(47.97951692000001,3.12848564));
		points.push(new GLatLng(47.97251372,3.12811279));
		points.push(new GLatLng(47.96335803,3.11342043));
		points.push(new GLatLng(47.94694518,3.10525463));
		points.push(new GLatLng(47.94799903,3.10074672));
		points.push(new GLatLng(47.94318576,3.08866938));
		points.push(new GLatLng(47.93328463000001,3.07871911));
		points.push(new GLatLng(47.93051862000001,3.06520611));
		points.push(new GLatLng(47.92733783000001,3.06315379));
		points.push(new GLatLng(47.92444749,3.053801400000001));
		points.push(new GLatLng(47.91134121,3.04823276));
		points.push(new GLatLng(47.90784046,3.03064968));
		points.push(new GLatLng(47.90483,3.01180458));
		points.push(new GLatLng(47.89849563,3.01542823));
		points.push(new GLatLng(47.89529636,3.00721639));
		points.push(new GLatLng(47.87509937,3.01147878));
		points.push(new GLatLng(47.86735149,2.994900040000001));
		points.push(new GLatLng(47.86120133,3.01818418));
		points.push(new GLatLng(47.86102757000001,3.02328706));
		points.push(new GLatLng(47.85892879,3.02689475));
		points.push(new GLatLng(47.84387721000001,3.03381936));
		points.push(new GLatLng(47.83747365,3.03064931));
		points.push(new GLatLng(47.831844,3.01386752));
		points.push(new GLatLng(47.82504398,3.01399294));
		points.push(new GLatLng(47.81945345000001,3.019396470000001));
		points.push(new GLatLng(47.81354135,3.01546152));
		points.push(new GLatLng(47.81304801000001,3.019861370000001));
		points.push(new GLatLng(47.81308471,3.02433479));
		points.push(new GLatLng(47.80966746,3.02426374));
		points.push(new GLatLng(47.79977266,3.02756733));
		points.push(new GLatLng(47.786376,3.02378816));
		points.push(new GLatLng(47.7864773,3.018784960000001));
		points.push(new GLatLng(47.78612654000001,2.988887080000001));
		points.push(new GLatLng(47.78253091000001,2.980435930000001));
		points.push(new GLatLng(47.77995764,2.97734899));
		points.push(new GLatLng(47.77426989,2.954491780000001));
		points.push(new GLatLng(47.76580099,2.94717616));
		points.push(new GLatLng(47.76630916,2.93747036));
		points.push(new GLatLng(47.76325282,2.935581570000001));
		points.push(new GLatLng(47.76282886000001,2.93054654));
		points.push(new GLatLng(47.76939296,2.91290462));
		points.push(new GLatLng(47.76802122000001,2.90836727));
		points.push(new GLatLng(47.76492465,2.89966304));
		points.push(new GLatLng(47.76174334,2.85646445));
		points.push(new GLatLng(47.75867887,2.85388684));
		points.push(new GLatLng(47.74867552000001,2.85839013));
		points.push(new GLatLng(47.72815829,2.85253771));
		points.push(new GLatLng(47.7258019,2.84864782));
		points.push(new GLatLng(47.71967497,2.85113445));
		points.push(new GLatLng(47.71685140000001,2.84896135));
		points.push(new GLatLng(47.71094196,2.8611644));
		points.push(new GLatLng(47.71884407,2.87772804));
		points.push(new GLatLng(47.71345664,2.88349829));
		points.push(new GLatLng(47.70378699,2.87965458));
		points.push(new GLatLng(47.70207727,2.88406065));
		points.push(new GLatLng(47.70057072,2.88864176));
		points.push(new GLatLng(47.69888655000001,2.89308752));
		points.push(new GLatLng(47.68250746,2.92416252));
		points.push(new GLatLng(47.66980166000001,2.91814974));
		points.push(new GLatLng(47.65844498000001,2.9282233));
		points.push(new GLatLng(47.65905554,2.93721651));
		points.push(new GLatLng(47.65753988000001,2.941580650000001));
		points.push(new GLatLng(47.64790171,2.95114633));
		points.push(new GLatLng(47.64569078,2.95422198));
		points.push(new GLatLng(47.63837352000001,2.93968445));
		points.push(new GLatLng(47.63643008,2.93614922));
		points.push(new GLatLng(47.63016357,2.93405607));
		points.push(new GLatLng(47.62705138,2.93231805));
		points.push(new GLatLng(47.60776256,2.94362022));
		points.push(new GLatLng(47.60156270000001,2.9389215));
		points.push(new GLatLng(47.59225479000001,2.94570376));
		points.push(new GLatLng(47.58752254,2.95931721));
		points.push(new GLatLng(47.57446838,2.96485354));
		points.push(new GLatLng(47.57271412000001,2.97481487));
		points.push(new GLatLng(47.56942969000001,2.97652989));
		points.push(new GLatLng(47.56792745,2.97179239));
		points.push(new GLatLng(47.55738467,2.95864725));
		points.push(new GLatLng(47.55862454,2.9538501));
		points.push(new GLatLng(47.56597962000001,2.91429151));
		points.push(new GLatLng(47.55961678,2.90937227));
		points.push(new GLatLng(47.55746652,2.9058146));
		points.push(new GLatLng(47.55272599,2.88338936));
		points.push(new GLatLng(47.5525681,2.87849831));
		points.push(new GLatLng(47.54603996,2.86850811));
		points.push(new GLatLng(47.55104978,2.85664049));
		points.push(new GLatLng(47.54493907,2.845182690000001));
		points.push(new GLatLng(47.54154859,2.84690378));
		points.push(new GLatLng(47.52043048,2.87462624));
		points.push(new GLatLng(47.51828149,2.8705561));
		points.push(new GLatLng(47.51181941000001,2.841215780000001));
		points.push(new GLatLng(47.49807624,2.82626129));
		points.push(new GLatLng(47.49446105,2.80647944));
		points.push(new GLatLng(47.49677844000001,2.80260969));
		points.push(new GLatLng(47.49734835000001,2.79751797));
		points.push(new GLatLng(47.50023828000001,2.79459625));
		points.push(new GLatLng(47.51519491,2.78351886));
		points.push(new GLatLng(47.52495208,2.76255264));
		points.push(new GLatLng(47.52652528,2.74269851));
		points.push(new GLatLng(47.53809406,2.73181509));
		points.push(new GLatLng(47.53622093,2.72715241));
		points.push(new GLatLng(47.52337933,2.72359385));
		points.push(new GLatLng(47.51026759,2.725488760000001));
		points.push(new GLatLng(47.50442439,2.7217559));
		points.push(new GLatLng(47.49889166000001,2.72741006));
		points.push(new GLatLng(47.49575021,2.72539755));
		points.push(new GLatLng(47.48925566,2.71457321));
		points.push(new GLatLng(47.48319153,2.6863601));
		points.push(new GLatLng(47.48335731000001,2.68206201));
		points.push(new GLatLng(47.48468149,2.66938505));
		points.push(new GLatLng(47.48575469000001,2.6646014));
		points.push(new GLatLng(47.49335243,2.65628702));
		points.push(new GLatLng(47.51039874000001,2.6558714));
		points.push(new GLatLng(47.52638663,2.61201111));
		points.push(new GLatLng(47.52941472000001,2.61332823));
		points.push(new GLatLng(47.53856315,2.61673623));
		points.push(new GLatLng(47.5491547,2.60708154));
		points.push(new GLatLng(47.55099899,2.6030108));
		points.push(new GLatLng(47.55813623,2.5929877));
		points.push(new GLatLng(47.55962480000002,2.57391326));
		points.push(new GLatLng(47.56848819,2.56757339));
		points.push(new GLatLng(47.57114797,2.56432864));
		points.push(new GLatLng(47.57467409,2.5449643));
		points.push(new GLatLng(47.57236885,2.52034004));
		points.push(new GLatLng(47.56808951,2.50654214));
		points.push(new GLatLng(47.56829954,2.491353500000001));
		points.push(new GLatLng(47.57178271,2.49030164));
		points.push(new GLatLng(47.59383996,2.45640449));
		points.push(new GLatLng(47.60657588,2.44742914));
		points.push(new GLatLng(47.60977737000002,2.43807222));
		points.push(new GLatLng(47.60822526000001,2.43345414));
		points.push(new GLatLng(47.59857901,2.40033871));
		points.push(new GLatLng(47.59291567,2.39429548));
		points.push(new GLatLng(47.59059328,2.37965443));
		points.push(new GLatLng(47.58544091000001,2.37268272));
		points.push(new GLatLng(47.59105658,2.36015117));
		points.push(new GLatLng(47.6044873,2.34335745));
		points.push(new GLatLng(47.60856109,2.32348877));
		points.push(new GLatLng(47.61732749000001,2.30719109));
		points.push(new GLatLng(47.61953896,2.30306593));
		points.push(new GLatLng(47.62262083,2.29360501));
		points.push(new GLatLng(47.62905918,2.28962143));
		points.push(new GLatLng(47.62867036,2.2848186));
		points.push(new GLatLng(47.62097771,2.23920916));
		points.push(new GLatLng(47.62436903,2.23976168));
		points.push(new GLatLng(47.64126104,2.2407022));
		points.push(new GLatLng(47.66480728000001,2.22050155));
		points.push(new GLatLng(47.66294078000001,2.20675114));
		points.push(new GLatLng(47.67639434,2.20608151));
		points.push(new GLatLng(47.67855019000001,2.20367766));
		points.push(new GLatLng(47.67743824,2.19881825));
		points.push(new GLatLng(47.67102298,2.16959468));
		points.push(new GLatLng(47.67074896,2.14919574));
		points.push(new GLatLng(47.67717882,2.13782652));
		points.push(new GLatLng(47.6782587,2.1279141));
		points.push(new GLatLng(47.67000055000001,2.11262037));
		points.push(new GLatLng(47.67106134,2.10774226));
		points.push(new GLatLng(47.67735849000002,2.10385297));
		points.push(new GLatLng(47.68215285,2.07454408));
		points.push(new GLatLng(47.68062234000001,2.0699302));
		points.push(new GLatLng(47.67486283,2.06464576));
		points.push(new GLatLng(47.67746215,2.0089118));
		points.push(new GLatLng(47.67366962000001,2.00051915));
		points.push(new GLatLng(47.66425524,1.99522652));
		points.push(new GLatLng(47.66553743000001,1.98189036));
		points.push(new GLatLng(47.66429987,1.97722533));
		points.push(new GLatLng(47.65891874,1.96497396));
		points.push(new GLatLng(47.66199295,1.95635174));
		points.push(new GLatLng(47.66182928,1.94206866));
		points.push(new GLatLng(47.67757942,1.93716904));
		points.push(new GLatLng(47.67822052000001,1.92754874));
		points.push(new GLatLng(47.67448433,1.91398103));
		points.push(new GLatLng(47.67508670000001,1.90899565));
		points.push(new GLatLng(47.67382649,1.89905821));
		points.push(new GLatLng(47.67776059000001,1.89078206));
		points.push(new GLatLng(47.67594534,1.86586735));
		points.push(new GLatLng(47.68860616,1.86290431));
		points.push(new GLatLng(47.68940698,1.85445183));
		points.push(new GLatLng(47.68829008,1.84953344));
		points.push(new GLatLng(47.68327389,1.84374573));
		points.push(new GLatLng(47.65936501,1.84537913));
		points.push(new GLatLng(47.65250668,1.81141853));
		points.push(new GLatLng(47.64737529,1.80448148));
		points.push(new GLatLng(47.64049477,1.80256752));
		points.push(new GLatLng(47.63612186,1.79445409));
		points.push(new GLatLng(47.63720567,1.78965226));
		points.push(new GLatLng(47.64414224,1.77869364));
		points.push(new GLatLng(47.65084306000001,1.78056525));
		points.push(new GLatLng(47.65286513000001,1.77647203));
		points.push(new GLatLng(47.65675638,1.74671719));
		points.push(new GLatLng(47.66184913,1.74004486));
		points.push(new GLatLng(47.68785374,1.72809551));
		points.push(new GLatLng(47.69279191,1.72148455));
		points.push(new GLatLng(47.69591971,1.71936995));
		points.push(new GLatLng(47.69765205000001,1.72379963));
		points.push(new GLatLng(47.69956318,1.72805435));
		points.push(new GLatLng(47.70270761,1.72565986));
		points.push(new GLatLng(47.72209529,1.71306692));
		points.push(new GLatLng(47.73261415000001,1.71226318));
		points.push(new GLatLng(47.73878349000001,1.69380519));
		points.push(new GLatLng(47.73947604,1.67312854));
		points.push(new GLatLng(47.74719129,1.65569579));
		points.push(new GLatLng(47.74920356,1.6522159));
		points.push(new GLatLng(47.75940063,1.62926182));
		points.push(new GLatLng(47.75606269,1.62759917));
		points.push(new GLatLng(47.73947209,1.61938109));
		points.push(new GLatLng(47.72643352,1.58285919));
		points.push(new GLatLng(47.72997092,1.58312881));
		points.push(new GLatLng(47.73206571,1.58731186));
		points.push(new GLatLng(47.739734,1.59797701));
		points.push(new GLatLng(47.76953555,1.54781181));
		points.push(new GLatLng(47.77220938,1.55085396));
		points.push(new GLatLng(47.78696049,1.57124061));
		points.push(new GLatLng(47.78867907,1.56725198));
		points.push(new GLatLng(47.79671239,1.57023193));
		points.push(new GLatLng(47.7990369,1.56675431));
		points.push(new GLatLng(47.81701284,1.5408545));
		points.push(new GLatLng(47.81931106,1.52717231));
		points.push(new GLatLng(47.82262604,1.52792286));
		points.push(new GLatLng(47.82860297,1.53136951));
		points.push(new GLatLng(47.83849271,1.53594921));
		points.push(new GLatLng(47.84338414,1.54898118));
		points.push(new GLatLng(47.86848059,1.58362654));
		points.push(new GLatLng(47.87184306,1.58344495));
		points.push(new GLatLng(47.87758737,1.58863023));
		points.push(new GLatLng(47.88900147,1.57905383));
		points.push(new GLatLng(47.89174097,1.58142284));
		points.push(new GLatLng(47.89739900000001,1.57728976));
		points.push(new GLatLng(47.90352689,1.57918115));
		points.push(new GLatLng(47.90617607,1.5758126));
		points.push(new GLatLng(47.92075151,1.55358001));
		points.push(new GLatLng(47.92911220000001,1.52542157));
		points.push(new GLatLng(47.93186272,1.52262254));
		points.push(new GLatLng(47.94464044000001,1.52622692));
		points.push(new GLatLng(47.94918620000001,1.53346622));
		points.push(new GLatLng(47.95312749,1.55220249));
		points.push(new GLatLng(47.95531094,1.5559455));
		points.push(new GLatLng(47.95819168,1.54699923));
		points.push(new GLatLng(47.96153391000001,1.54784631));
		points.push(new GLatLng(47.97312005000001,1.56444069));
		points.push(new GLatLng(47.98976887000001,1.56481308));
		points.push(new GLatLng(47.98787092,1.56067457));
		points.push(new GLatLng(47.98964367,1.55140462));
		points.push(new GLatLng(47.9822709,1.52011639));
		points.push(new GLatLng(47.99896127,1.51997844));
		points.push(new GLatLng(48.01109924,1.52087594));
		points.push(new GLatLng(48.02722002000001,1.51404372));
		points.push(new GLatLng(48.03323114,1.52593664));
		points.push(new GLatLng(48.03102092,1.54078589));
		points.push(new GLatLng(48.03453284,1.54812216));
		points.push(new GLatLng(48.03872379000001,1.54018676));
		points.push(new GLatLng(48.04458588,1.54530287));
		points.push(new GLatLng(48.03655097,1.56638023));
		points.push(new GLatLng(48.03353500000001,1.58510171));
		points.push(new GLatLng(48.0305162,1.58694269));
		points.push(new GLatLng(48.03075359000001,1.59187186));
		points.push(new GLatLng(48.04275289000001,1.599279));
		points.push(new GLatLng(48.04414778,1.61386503));
		points.push(new GLatLng(48.04831166,1.62122322));
		points.push(new GLatLng(48.06078178,1.62370989));
		points.push(new GLatLng(48.06387191,1.62168252));
		points.push(new GLatLng(48.06675635999991,1.62427296));
		points.push(new GLatLng(48.07510988,1.66059112));
		points.push(new GLatLng(48.06680068,1.66842566));
		points.push(new GLatLng(48.0654125,1.67720392));
		points.push(new GLatLng(48.07509748,1.6870122));
		points.push(new GLatLng(48.07753005000001,1.6894647));
		points.push(new GLatLng(48.06967886,1.70599711));
		points.push(new GLatLng(48.06693506,1.70898158));
		points.push(new GLatLng(48.06889198,1.72878828));
		points.push(new GLatLng(48.06577456,1.7487591));
		points.push(new GLatLng(48.07178214,1.76707395));
		points.push(new GLatLng(48.07004121,1.77153518));
		map.addOverlay(new GPolyline(points));
		return true;
	}
	function convCatTUrl(cat){
		var tmp='';
		switch(cat){
			case 'hotel':
				tmp = "OIClass=HOT";
				break;
			case 'camping':
				tmp = "OIClass=HPA";
				break;
			case 'restau':
				tmp = "OIClass=RES";
				break;
			case 'chb-fleur':
				tmp = "OICLass=HLO&OICls='06.03.02.03'";
				break;
			case 'meuble':
				tmp = "OICLass=HLO";
				break;
			case 'auberge':
				tmp = "OICLass=VIL";
				break;
			case 'chateau':
				tmp = "OIClass=PCU&NAT=CHATEAU&NAT=MUSEE";
				break;
			case 'religieu':
				tmp = "OIClass=PCU&NAT=RELIGIEUX";
				break;
			case 'parcs':
				tmp = "OIClass=PCU&NAT=JARDINS";
				break;
			case 'curiosite':
				tmp = "OIClass=PCU&nat=MONUMENT&nat=MOULIN&nat=SITE&nat=TOURISME%20INDUSTRIEL&nat=SORTIES%20DIVERSES";
				break;
			default:
				tmp = "OIClass=ASC&nat="+cat;
				break;
		}
		if(idoi == cat) tmp = "idoi="+idoi;
		return tmp;
	}
	window.onload = function() {
		load();chargeID();
	};