	var map = null;
	var center = new GLatLng(50.5,2.4);
	var initZoom = 8;
	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.pas-de-calais.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.1871077) map.setCenter(center, initZoom);
				if(tmpcenter.lng()<1.55593882) map.setCenter(center, initZoom);
				if(tmpcenter.lat()>51.0064927) map.setCenter(center, initZoom);
				if(tmpcenter.lat()<50.02106137) map.setCenter(center, initZoom);
				
			});
		
		map.setCenter(center, initZoom);
		
		// poisitionne le CDT
		var point = new GLatLng(50.770748,1.639659);
		map.addOverlay(createMarker(point,"Comité Départemental de Tourimse du Pas de Calais<br/>","Comité Départemental de Tourimse du Pas de Calais<br/>Route de la Trésorerie<br/>62126 WIMILLE - France<br/>Tél. : +33 (0)321 10 34 60 - Fax : +33(0)321 30 04 81",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.pas-de-calais.com/_includes/google-maps/img/gm"+tmpCat+".png";
		icon.shadow = "http://www.pas-de-calais.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(50.04031299,2.75216075));
		points.push(new GLatLng(50.04290955000001,2.74885054));
		points.push(new GLatLng(50.04799438,2.74231188));
		points.push(new GLatLng(50.0501191,2.745842080000001));
		points.push(new GLatLng(50.0605886,2.7637194));
		points.push(new GLatLng(50.06341233,2.76201402));
		points.push(new GLatLng(50.06936784000001,2.76086462));
		points.push(new GLatLng(50.07181522000001,2.76437193));
		points.push(new GLatLng(50.0792122,2.77443606));
		points.push(new GLatLng(50.09109735,2.78180813));
		points.push(new GLatLng(50.09651641000001,2.78006965));
		points.push(new GLatLng(50.09942284,2.77811351));
		points.push(new GLatLng(50.10239274,2.77846039));
		points.push(new GLatLng(50.11114482,2.78086779));
		points.push(new GLatLng(50.11375857000001,2.77791889));
		points.push(new GLatLng(50.11050537,2.7638195));
		points.push(new GLatLng(50.11278955000001,2.74950332));
		points.push(new GLatLng(50.11549937000001,2.74712442));
		points.push(new GLatLng(50.12585145,2.729893890000001));
		points.push(new GLatLng(50.12635125000001,2.72516456));
		points.push(new GLatLng(50.12641621,2.70709922));
		points.push(new GLatLng(50.11017784,2.713498710000001));
		points.push(new GLatLng(50.10767616,2.70345887));
		points.push(new GLatLng(50.10255935,2.69754645));
		points.push(new GLatLng(50.09010974000001,2.71520505));
		points.push(new GLatLng(50.08762953,2.7189674));
		points.push(new GLatLng(50.08535085000001,2.71565777));
		points.push(new GLatLng(50.0809795,2.70382357));
		points.push(new GLatLng(50.08389594,2.70112434));
		points.push(new GLatLng(50.09202076,2.691555380000001));
		points.push(new GLatLng(50.09503621,2.68235317));
		points.push(new GLatLng(50.0936197,2.67204602));
		points.push(new GLatLng(50.09608705,2.669172510000001));
		points.push(new GLatLng(50.10026783000001,2.65650365));
		points.push(new GLatLng(50.09802166,2.65386464));
		points.push(new GLatLng(50.09440255000001,2.64752108));
		points.push(new GLatLng(50.09697776000001,2.644356740000001));
		points.push(new GLatLng(50.10000613,2.63574958));
		points.push(new GLatLng(50.10231166,2.63260922));
		points.push(new GLatLng(50.10509908,2.63061579));
		points.push(new GLatLng(50.10726303000001,2.63069814));
		points.push(new GLatLng(50.10931815,2.62673217));
		points.push(new GLatLng(50.11008886000001,2.61170412));
		points.push(new GLatLng(50.10653925,2.59287116));
		points.push(new GLatLng(50.10909301000001,2.59069276));
		points.push(new GLatLng(50.11331512000001,2.57563864));
		points.push(new GLatLng(50.11544762000001,2.57296854));
		points.push(new GLatLng(50.12039141000001,2.56931997));
		points.push(new GLatLng(50.12258997000001,2.56960929));
		points.push(new GLatLng(50.13213125000001,2.58297463));
		points.push(new GLatLng(50.13734873,2.58660304));
		points.push(new GLatLng(50.13803055,2.58233298));
		points.push(new GLatLng(50.13909046000001,2.57742219));
		points.push(new GLatLng(50.13594847000001,2.56834407));
		points.push(new GLatLng(50.13823526000001,2.56463972));
		points.push(new GLatLng(50.14168807,2.55130336));
		points.push(new GLatLng(50.13607786,2.54632206));
		points.push(new GLatLng(50.12380473,2.54814212));
		points.push(new GLatLng(50.12090142,2.54528203));
		points.push(new GLatLng(50.11506150000001,2.53230399));
		points.push(new GLatLng(50.14080388000001,2.51491774));
		points.push(new GLatLng(50.14073015,2.5100014));
		points.push(new GLatLng(50.13764983,2.49105395));
		points.push(new GLatLng(50.13685109,2.47595529));
		points.push(new GLatLng(50.13362800000001,2.46936932));
		points.push(new GLatLng(50.13171095000001,2.464965770000001));
		points.push(new GLatLng(50.13116354,2.45502239));
		points.push(new GLatLng(50.12853488,2.45463927));
		points.push(new GLatLng(50.12438345000002,2.44996645));
		points.push(new GLatLng(50.11974523,2.44740137));
		points.push(new GLatLng(50.11742161,2.44611201));
		points.push(new GLatLng(50.11419193,2.44420666));
		points.push(new GLatLng(50.08817298,2.42962802));
		points.push(new GLatLng(50.087656,2.42467431));
		points.push(new GLatLng(50.09136814,2.41748125));
		points.push(new GLatLng(50.10063352000001,2.41448027));
		points.push(new GLatLng(50.10119309,2.40948656));
		points.push(new GLatLng(50.10648659,2.3973658));
		points.push(new GLatLng(50.11017696,2.3948592));
		points.push(new GLatLng(50.10924209,2.37542664));
		points.push(new GLatLng(50.11917709000001,2.37976318));
		points.push(new GLatLng(50.13940652000001,2.38546425));
		points.push(new GLatLng(50.14483420000001,2.39169882));
		points.push(new GLatLng(50.15517580000002,2.38986731));
		points.push(new GLatLng(50.15640037,2.39883621));
		points.push(new GLatLng(50.16199959,2.40174922));
		points.push(new GLatLng(50.16478926000001,2.40324787));
		points.push(new GLatLng(50.16319809,2.41080481));
		points.push(new GLatLng(50.16415439,2.41450894));
		points.push(new GLatLng(50.16997162,2.41552399));
		points.push(new GLatLng(50.1730946,2.4148161));
		points.push(new GLatLng(50.17462543000001,2.42082791));
		points.push(new GLatLng(50.17960522,2.43498075));
		points.push(new GLatLng(50.17922846,2.44542066));
		points.push(new GLatLng(50.17850467000001,2.45080009));
		points.push(new GLatLng(50.18738114,2.46962186));
		points.push(new GLatLng(50.18864199000001,2.47386092));
		points.push(new GLatLng(50.19122743,2.48117951));
		points.push(new GLatLng(50.19133016000001,2.48534588));
		points.push(new GLatLng(50.19368232,2.49206496));
		points.push(new GLatLng(50.19454831000001,2.49565935));
		points.push(new GLatLng(50.19700875000001,2.49468835));
		points.push(new GLatLng(50.19953928,2.49503182));
		points.push(new GLatLng(50.20248625,2.49256601));
		points.push(new GLatLng(50.20485129,2.48889553));
		points.push(new GLatLng(50.20778168,2.48518441));
		points.push(new GLatLng(50.20811052,2.480346640000001));
		points.push(new GLatLng(50.21422211000001,2.464391420000001));
		points.push(new GLatLng(50.21954014000001,2.45957899));
		points.push(new GLatLng(50.22191228000001,2.45675764));
		points.push(new GLatLng(50.23020141,2.45203717));
		points.push(new GLatLng(50.22933465000001,2.44691322));
		points.push(new GLatLng(50.22725215,2.43682184));
		points.push(new GLatLng(50.22775856000001,2.43199621));
		points.push(new GLatLng(50.22828953000001,2.41737728));
		points.push(new GLatLng(50.23428201,2.40699073));
		points.push(new GLatLng(50.23320749,2.40256786));
		points.push(new GLatLng(50.22475060000001,2.38944886));
		points.push(new GLatLng(50.22539866000001,2.38483297));
		points.push(new GLatLng(50.22574036,2.38311257));
		points.push(new GLatLng(50.21775516000001,2.37327214));
		points.push(new GLatLng(50.21087297,2.37095962));
		points.push(new GLatLng(50.20800182000001,2.36779715));
		points.push(new GLatLng(50.20706081,2.36169796));
		points.push(new GLatLng(50.23497494,2.33662485));
		points.push(new GLatLng(50.23704807000001,2.33480576));
		points.push(new GLatLng(50.2390673,2.33284659));
		points.push(new GLatLng(50.23720934,2.3288448));
		points.push(new GLatLng(50.23440747000001,2.31474128));
		points.push(new GLatLng(50.23138326,2.3162257));
		points.push(new GLatLng(50.23281991000002,2.32078637));
		points.push(new GLatLng(50.22171013000001,2.33126741));
		points.push(new GLatLng(50.21308502,2.32710057));
		points.push(new GLatLng(50.21592091,2.3251698));
		points.push(new GLatLng(50.21913305,2.31837095));
		points.push(new GLatLng(50.21294564000001,2.30167386));
		points.push(new GLatLng(50.21369806000001,2.296904));
		points.push(new GLatLng(50.21856022,2.29066021));
		points.push(new GLatLng(50.22134126,2.28770748));
		points.push(new GLatLng(50.22763275,2.2693322));
		points.push(new GLatLng(50.21467221000001,2.25340495));
		points.push(new GLatLng(50.21316326000001,2.239715));
		points.push(new GLatLng(50.21061592,2.23078321));
		points.push(new GLatLng(50.20859353,2.22736118));
		points.push(new GLatLng(50.21735035,2.22439077));
		points.push(new GLatLng(50.21734907,2.2137604));
		points.push(new GLatLng(50.21393827000001,2.20484683));
		points.push(new GLatLng(50.21516236000001,2.19987692));
		points.push(new GLatLng(50.21239762,2.19946488));
		points.push(new GLatLng(50.20966442,2.18771078));
		points.push(new GLatLng(50.21000916,2.183444240000001));
		points.push(new GLatLng(50.20727443000001,2.17847408));
		points.push(new GLatLng(50.20787787,2.17326986));
		points.push(new GLatLng(50.19041358,2.14974255));
		points.push(new GLatLng(50.1932553,2.14694983));
		points.push(new GLatLng(50.20244642,2.14164348));
		points.push(new GLatLng(50.20488262,2.1385296));
		points.push(new GLatLng(50.21026734000001,2.12190771));
		points.push(new GLatLng(50.20284978,2.11454358));
		points.push(new GLatLng(50.20447449,2.11026995));
		points.push(new GLatLng(50.20661142,2.09662553));
		points.push(new GLatLng(50.20099798,2.08568975));
		points.push(new GLatLng(50.20420924,2.08480674));
		points.push(new GLatLng(50.21695119,2.08358201));
		points.push(new GLatLng(50.21940358,2.08035245));
		points.push(new GLatLng(50.22707849,2.06846373));
		points.push(new GLatLng(50.23296477,2.06793004));
		points.push(new GLatLng(50.23443644,2.06379309));
		points.push(new GLatLng(50.24055872,2.06448616));
		points.push(new GLatLng(50.24871861000001,2.07779428));
		points.push(new GLatLng(50.25114536,2.07527776));
		points.push(new GLatLng(50.25560884,2.06437809));
		points.push(new GLatLng(50.25536345,2.0590182));
		points.push(new GLatLng(50.25675745,2.04865173));
		points.push(new GLatLng(50.26404547,2.03774568));
		points.push(new GLatLng(50.26618175000001,2.03424674));
		points.push(new GLatLng(50.26953601,2.02621886));
		points.push(new GLatLng(50.26795509,2.0118337));
		points.push(new GLatLng(50.27037291,2.00320674));
		points.push(new GLatLng(50.27242088,2.00058865));
		points.push(new GLatLng(50.27569649,1.99411107));
		points.push(new GLatLng(50.28243730000001,1.96972352));
		points.push(new GLatLng(50.29047509,1.95984539));
		points.push(new GLatLng(50.28953786,1.95567676));
		points.push(new GLatLng(50.28618854,1.94933054));
		points.push(new GLatLng(50.28772929,1.94562081));
		points.push(new GLatLng(50.29938542,1.93415378));
		points.push(new GLatLng(50.31159988,1.95982711));
		points.push(new GLatLng(50.31803676,1.9639134));
		points.push(new GLatLng(50.32120662,1.96431037));
		points.push(new GLatLng(50.33146999,1.94617754));
		points.push(new GLatLng(50.33065598,1.94110899));
		points.push(new GLatLng(50.31257205,1.91947503));
		points.push(new GLatLng(50.31331769,1.89886657));
		points.push(new GLatLng(50.31590204000001,1.89857777));
		points.push(new GLatLng(50.31815247,1.89327429));
		points.push(new GLatLng(50.31804381000001,1.88807549));
		points.push(new GLatLng(50.32271677,1.87533451));
		points.push(new GLatLng(50.33444883,1.86911401));
		points.push(new GLatLng(50.34105028000001,1.85211403));
		points.push(new GLatLng(50.3428971,1.85167413));
		points.push(new GLatLng(50.34358459,1.84628419));
		points.push(new GLatLng(50.35027763000001,1.8218862));
		points.push(new GLatLng(50.35221973,1.81852832));
		points.push(new GLatLng(50.35959039,1.80464951));
		points.push(new GLatLng(50.35953504,1.80038583));
		points.push(new GLatLng(50.35944484,1.7919284));
		points.push(new GLatLng(50.35963737,1.78680637));
		points.push(new GLatLng(50.36159579,1.76182946));
		points.push(new GLatLng(50.35704115,1.75503523));
		points.push(new GLatLng(50.35450283,1.74032484));
		points.push(new GLatLng(50.34781188000001,1.73002649));
		points.push(new GLatLng(50.34570778000001,1.72555037));
		points.push(new GLatLng(50.34302211,1.70380577));
		points.push(new GLatLng(50.33886542,1.69481421));
		points.push(new GLatLng(50.34289150000001,1.69250373));
		points.push(new GLatLng(50.33966858000001,1.69054132));
		points.push(new GLatLng(50.3307249,1.66753842));
		points.push(new GLatLng(50.33143991,1.66225755));
		points.push(new GLatLng(50.33452014,1.66429124));
		points.push(new GLatLng(50.33978937,1.65160104));
		points.push(new GLatLng(50.34005681000001,1.64647938));
		points.push(new GLatLng(50.35213438000001,1.6415168));
		points.push(new GLatLng(50.36150108,1.63176539));
		points.push(new GLatLng(50.36422012,1.63333914));
		points.push(new GLatLng(50.37141119,1.62302404));
		points.push(new GLatLng(50.37221497,1.617751));
		points.push(new GLatLng(50.37046608,1.61332836));
		points.push(new GLatLng(50.37593617,1.60062073));
		points.push(new GLatLng(50.3786611,1.58092078));
		points.push(new GLatLng(50.38726491000001,1.57339469));
		points.push(new GLatLng(50.39035787,1.5714963));
		points.push(new GLatLng(50.39873972000002,1.55593882));
		points.push(new GLatLng(50.43991750000001,1.56888421));
		points.push(new GLatLng(50.46768987,1.57343527));
		points.push(new GLatLng(50.4711478,1.57415584));
		points.push(new GLatLng(50.48752601,1.57622844));
		points.push(new GLatLng(50.51920064,1.57812418));
		points.push(new GLatLng(50.53598614,1.58551356));
		points.push(new GLatLng(50.53673578,1.59076716));
		points.push(new GLatLng(50.5305496,1.59592648));
		points.push(new GLatLng(50.5257477,1.61064857));
		points.push(new GLatLng(50.51360869,1.63066409));
		points.push(new GLatLng(50.51130980000001,1.63484712));
		points.push(new GLatLng(50.50965404,1.63729027));
		points.push(new GLatLng(50.50877558,1.64059473));
		points.push(new GLatLng(50.50777393000001,1.65560609));
		points.push(new GLatLng(50.50632853000001,1.6601558));
		points.push(new GLatLng(50.50651655,1.66188369));
		points.push(new GLatLng(50.50733146,1.6616054));
		points.push(new GLatLng(50.5112545,1.64745451));
		points.push(new GLatLng(50.51361895,1.63560271));
		points.push(new GLatLng(50.53761751,1.61377048));
		points.push(new GLatLng(50.53964449,1.60925035));
		points.push(new GLatLng(50.56410089000001,1.58085184));
		points.push(new GLatLng(50.57741654000001,1.57687485));
		points.push(new GLatLng(50.58062996000001,1.57877037));
		points.push(new GLatLng(50.60332337000001,1.57800337));
		points.push(new GLatLng(50.60660753000001,1.57829184));
		points.push(new GLatLng(50.63632264000001,1.57614801));
		points.push(new GLatLng(50.63923522000001,1.57861453));
		points.push(new GLatLng(50.66090335000001,1.5720338));
		points.push(new GLatLng(50.66409644,1.57214013));
		points.push(new GLatLng(50.68903527,1.56248105));
		points.push(new GLatLng(50.69226492000001,1.56257214));
		points.push(new GLatLng(50.6993347,1.56141731));
		points.push(new GLatLng(50.71210296,1.57095204));
		points.push(new GLatLng(50.72220945,1.56760214));
		points.push(new GLatLng(50.72790305000001,1.58481215));
		points.push(new GLatLng(50.72477561,1.58675276));
		points.push(new GLatLng(50.72657783,1.59110757));
		points.push(new GLatLng(50.72453764,1.59938865));
		points.push(new GLatLng(50.73352556,1.59353197));
		points.push(new GLatLng(50.74664204,1.59580879));
		points.push(new GLatLng(50.74985581,1.59464557));
		points.push(new GLatLng(50.76556839000001,1.60507433));
		points.push(new GLatLng(50.80317516,1.6040686));
		points.push(new GLatLng(50.80432814,1.60918906));
		points.push(new GLatLng(50.80593120000001,1.59985284));
		points.push(new GLatLng(50.81475611,1.5953905));
		points.push(new GLatLng(50.81771631,1.5940171));
		points.push(new GLatLng(50.82864154000001,1.58991617));
		points.push(new GLatLng(50.83148679,1.58868397));
		points.push(new GLatLng(50.85515273000001,1.57852416));
		points.push(new GLatLng(50.86907827,1.581316));
		points.push(new GLatLng(50.87144373000002,1.5854324));
		points.push(new GLatLng(50.87266514000001,1.61290794));
		points.push(new GLatLng(50.87617985,1.63152276));
		points.push(new GLatLng(50.87702236000001,1.63620219));
		points.push(new GLatLng(50.89218495000001,1.66693815));
		points.push(new GLatLng(50.91248823,1.68937188));
		points.push(new GLatLng(50.91536564,1.69265204));
		points.push(new GLatLng(50.92174643,1.70244271));
		points.push(new GLatLng(50.92379015,1.70583698));
		points.push(new GLatLng(50.93627877,1.7252464));
		points.push(new GLatLng(50.94362428,1.74438631));
		points.push(new GLatLng(50.95449363,1.77961695));
		points.push(new GLatLng(50.96146776,1.8230105));
		points.push(new GLatLng(50.96239557,1.82842432));
		points.push(new GLatLng(50.96476945,1.83899179));
		points.push(new GLatLng(50.96333063,1.84694276));
		points.push(new GLatLng(50.97386462,1.86765691));
		points.push(new GLatLng(50.97272625,1.88963564));
		points.push(new GLatLng(50.98126943,1.9071274));
		points.push(new GLatLng(50.98258739,1.91235694));
		points.push(new GLatLng(50.98803847000001,1.94232477));
		points.push(new GLatLng(50.98878015,1.96781663));
		points.push(new GLatLng(50.98961004,1.97288167));
		points.push(new GLatLng(50.99376637,1.99336501));
		points.push(new GLatLng(50.99727808000001,2.04116232));
		points.push(new GLatLng(51.0044663,2.05186305));
		points.push(new GLatLng(51.00601397000001,2.06235372));
		points.push(new GLatLng(51.00649270000001,2.06767977));
		points.push(new GLatLng(51.00347932,2.08916595));
		points.push(new GLatLng(50.98992943,2.10654975));
		points.push(new GLatLng(50.98739130000001,2.11043935));
		points.push(new GLatLng(50.9841526,2.10924687));
		points.push(new GLatLng(50.97909214,2.12164006));
		points.push(new GLatLng(50.97286195,2.12266115));
		points.push(new GLatLng(50.97012268,2.12511672));
		points.push(new GLatLng(50.96737507,2.12798097));
		points.push(new GLatLng(50.96307518,2.13562311));
		points.push(new GLatLng(50.94745847000001,2.1417895));
		points.push(new GLatLng(50.94509632000001,2.14548879));
		points.push(new GLatLng(50.93255267,2.15129782));
		points.push(new GLatLng(50.9149083,2.16456883));
		points.push(new GLatLng(50.91163690000001,2.16553044));
		points.push(new GLatLng(50.90842973,2.16691716));
		points.push(new GLatLng(50.87463456,2.18874465));
		points.push(new GLatLng(50.87136351,2.19031325));
		points.push(new GLatLng(50.86791994000001,2.1900967));
		points.push(new GLatLng(50.84969614000001,2.20359322));
		points.push(new GLatLng(50.84292481,2.20261999));
		points.push(new GLatLng(50.84022047,2.20616789));
		points.push(new GLatLng(50.83704768,2.20859785));
		points.push(new GLatLng(50.82787378,2.20753134));
		points.push(new GLatLng(50.82254334,2.21264186));
		points.push(new GLatLng(50.81951994,2.21133287));
		points.push(new GLatLng(50.81357604,2.21296155));
		points.push(new GLatLng(50.81053643000001,2.21340791));
		points.push(new GLatLng(50.80986376,2.22263779));
		points.push(new GLatLng(50.80781383,2.22669029));
		points.push(new GLatLng(50.79901846,2.23982602));
		points.push(new GLatLng(50.79650073000001,2.24273308));
		points.push(new GLatLng(50.78961940000001,2.25102268));
		points.push(new GLatLng(50.7880167,2.25480142));
		points.push(new GLatLng(50.78322901,2.27365338));
		points.push(new GLatLng(50.78680556000001,2.28759788));
		points.push(new GLatLng(50.78028604,2.28825506));
		points.push(new GLatLng(50.77702177,2.28855531));
		points.push(new GLatLng(50.78503664,2.30908837));
		points.push(new GLatLng(50.78718971,2.31258152));
		points.push(new GLatLng(50.7824288,2.3190344));
		points.push(new GLatLng(50.78089655000001,2.34053604));
		points.push(new GLatLng(50.77537906,2.36029468));
		points.push(new GLatLng(50.77546762000001,2.36569769));
		points.push(new GLatLng(50.78301651,2.37428865));
		points.push(new GLatLng(50.77867361000001,2.38142855));
		points.push(new GLatLng(50.77751481000001,2.38651954));
		points.push(new GLatLng(50.77397493,2.40065953));
		points.push(new GLatLng(50.77162334000001,2.40430539));
		points.push(new GLatLng(50.76715562,2.40709941));
		points.push(new GLatLng(50.76672261,2.41145436));
		points.push(new GLatLng(50.75497023,2.38210033));
		points.push(new GLatLng(50.7515496,2.3636059));
		points.push(new GLatLng(50.74068243000001,2.34217296));
		points.push(new GLatLng(50.73065554,2.33965662));
		points.push(new GLatLng(50.7265382,2.35048003));
		points.push(new GLatLng(50.72053802000001,2.35078926));
		points.push(new GLatLng(50.71798158000001,2.35340218));
		points.push(new GLatLng(50.71110184,2.36222849));
		points.push(new GLatLng(50.70966501000001,2.36635235));
		points.push(new GLatLng(50.70948563,2.36635225));
		points.push(new GLatLng(50.69856405000002,2.38610272));
		points.push(new GLatLng(50.68705272,2.36714396));
		points.push(new GLatLng(50.68463273,2.36350002));
		points.push(new GLatLng(50.67934872,2.36814163));
		points.push(new GLatLng(50.67707862,2.37134457));
		points.push(new GLatLng(50.67191004,2.37849714));
		points.push(new GLatLng(50.67990981000001,2.40174006));
		points.push(new GLatLng(50.67091809,2.40960424));
		points.push(new GLatLng(50.66941723,2.41448547));
		points.push(new GLatLng(50.66581943,2.41610289));
		points.push(new GLatLng(50.66550193,2.42150758));
		points.push(new GLatLng(50.65677727,2.43017071));
		points.push(new GLatLng(50.65509686000001,2.44604116));
		points.push(new GLatLng(50.6534323,2.45079239));
		points.push(new GLatLng(50.64148327,2.47007496));
		points.push(new GLatLng(50.63858265,2.4731577));
		points.push(new GLatLng(50.63170806,2.49151555));
		points.push(new GLatLng(50.63194579000002,2.501924540000001));
		points.push(new GLatLng(50.63341030000001,2.50678105));
		points.push(new GLatLng(50.64256327,2.52884617));
		points.push(new GLatLng(50.64165804,2.53409016));
		points.push(new GLatLng(50.62921324000001,2.54175527));
		points.push(new GLatLng(50.62649666,2.55154492));
		points.push(new GLatLng(50.62745552000001,2.56167432));
		points.push(new GLatLng(50.62441979,2.56426943));
		points.push(new GLatLng(50.632503,2.56846667));
		points.push(new GLatLng(50.63416269,2.58230894));
		points.push(new GLatLng(50.63691118000001,2.58496142));
		points.push(new GLatLng(50.63468918000001,2.59252433));
		points.push(new GLatLng(50.6315924,2.59355216));
		points.push(new GLatLng(50.63347806,2.6134623));
		points.push(new GLatLng(50.6270851,2.61626149));
		points.push(new GLatLng(50.61793847,2.63049319));
		points.push(new GLatLng(50.62255139,2.644338970000001));
		points.push(new GLatLng(50.62531999000001,2.669823360000001));
		points.push(new GLatLng(50.63431587,2.67355027));
		points.push(new GLatLng(50.63639782000001,2.6829721));
		points.push(new GLatLng(50.63310245,2.68417634));
		points.push(new GLatLng(50.62912477,2.69808214));
		points.push(new GLatLng(50.62935122,2.71856093));
		points.push(new GLatLng(50.61383546,2.72604164));
		points.push(new GLatLng(50.60523637,2.74716101));
		points.push(new GLatLng(50.60687249,2.75148792));
		points.push(new GLatLng(50.61353186,2.75048571));
		points.push(new GLatLng(50.63145703000001,2.76029467));
		points.push(new GLatLng(50.63337065,2.76464076));
		points.push(new GLatLng(50.62916463,2.78464338));
		points.push(new GLatLng(50.63364818000001,2.79242801));
		points.push(new GLatLng(50.63593232000001,2.78841488));
		points.push(new GLatLng(50.6506657,2.75914517));
		points.push(new GLatLng(50.65139103,2.75950401));
		points.push(new GLatLng(50.66359971,2.76965526));
		points.push(new GLatLng(50.66294737,2.79658994));
		points.push(new GLatLng(50.66649021,2.80596552));
		points.push(new GLatLng(50.66935730000002,2.8091681));
		points.push(new GLatLng(50.66325024,2.81814234));
		points.push(new GLatLng(50.66126474,2.82125747));
		points.push(new GLatLng(50.66069751,2.83087473));
		points.push(new GLatLng(50.65486467,2.84258489));
		points.push(new GLatLng(50.65226051,2.84547918));
		points.push(new GLatLng(50.63378251000001,2.866786));
		points.push(new GLatLng(50.63107892000001,2.86970496));
		points.push(new GLatLng(50.62903902000001,2.86617164));
		points.push(new GLatLng(50.62724437,2.86231683));
		points.push(new GLatLng(50.62730243000001,2.85707139));
		points.push(new GLatLng(50.62764546,2.84139311));
		points.push(new GLatLng(50.62000745,2.83136135));
		points.push(new GLatLng(50.61822616,2.82838282));
		points.push(new GLatLng(50.61592625,2.82451119));
		points.push(new GLatLng(50.60754010000001,2.80801955));
		points.push(new GLatLng(50.58627696,2.79204078));
		points.push(new GLatLng(50.58304951,2.7890512));
		points.push(new GLatLng(50.58122179000001,2.79330374));
		points.push(new GLatLng(50.57884242,2.80820185));
		points.push(new GLatLng(50.56597788,2.815052890000001));
		points.push(new GLatLng(50.54929108,2.81313365));
		points.push(new GLatLng(50.55080612,2.80874079));
		points.push(new GLatLng(50.54919129,2.79444823));
		points.push(new GLatLng(50.54631267000001,2.79656202));
		points.push(new GLatLng(50.53730573,2.80130781));
		points.push(new GLatLng(50.52791307,2.79882819));
		points.push(new GLatLng(50.52689963,2.80374474));
		points.push(new GLatLng(50.52881043,2.81060275));
		points.push(new GLatLng(50.52811509000001,2.81433995));
		points.push(new GLatLng(50.52559649,2.82474452));
		points.push(new GLatLng(50.52789511000001,2.84668055));
		points.push(new GLatLng(50.52859107,2.85213445));
		points.push(new GLatLng(50.52922439,2.8570671));
		points.push(new GLatLng(50.52975961,2.8620284));
		points.push(new GLatLng(50.53464085,2.87844878));
		points.push(new GLatLng(50.53596075000001,2.88247487));
		points.push(new GLatLng(50.53764458,2.88694155));
		points.push(new GLatLng(50.53297016,2.88701694));
		points.push(new GLatLng(50.52992816,2.88917925));
		points.push(new GLatLng(50.51767231,2.881276820000001));
		points.push(new GLatLng(50.50773725,2.88205672));
		points.push(new GLatLng(50.50100115,2.901620770000001));
		points.push(new GLatLng(50.50344573000001,2.904798));
		points.push(new GLatLng(50.50142448,2.90711023));
		points.push(new GLatLng(50.49982253,2.91011632));
		points.push(new GLatLng(50.50572948,2.92273263));
		points.push(new GLatLng(50.50779136,2.92683665));
		points.push(new GLatLng(50.51040655,2.94622704));
		points.push(new GLatLng(50.51189187000001,2.95064898));
		points.push(new GLatLng(50.51276324,2.96468763));
		points.push(new GLatLng(50.49884306,2.98982011));
		points.push(new GLatLng(50.49664855000001,2.99420678));
		points.push(new GLatLng(50.49499695000001,3.00436839));
		points.push(new GLatLng(50.49274955000001,3.00831878));
		points.push(new GLatLng(50.49026054,3.01081698));
		points.push(new GLatLng(50.48404924,3.02428954));
		points.push(new GLatLng(50.47541857000001,3.02096568));
		points.push(new GLatLng(50.47282731000001,3.01741559));
		points.push(new GLatLng(50.46832049000001,3.01953344));
		points.push(new GLatLng(50.46574971,3.017136890000001));
		points.push(new GLatLng(50.45583832000001,3.008232710000001));
		points.push(new GLatLng(50.45197068000001,3.01666914));
		points.push(new GLatLng(50.44525910000002,3.0166907));
		points.push(new GLatLng(50.4419057,3.01626594));
		points.push(new GLatLng(50.44467449,3.02982065));
		points.push(new GLatLng(50.44213074,3.03853902));
		points.push(new GLatLng(50.44450009000001,3.04157908));
		points.push(new GLatLng(50.45487265,3.05396579));
		points.push(new GLatLng(50.45617239,3.05879098));
		points.push(new GLatLng(50.45694658000001,3.0629356));
		points.push(new GLatLng(50.45851455,3.06649877));
		points.push(new GLatLng(50.44683273,3.06779042));
		points.push(new GLatLng(50.44497308,3.07719182));
		points.push(new GLatLng(50.44371721000002,3.081753940000001));
		points.push(new GLatLng(50.43849219,3.07463761));
		points.push(new GLatLng(50.42530355,3.071410020000001));
		points.push(new GLatLng(50.42354177,3.06589252));
		points.push(new GLatLng(50.42561845,3.06218644));
		points.push(new GLatLng(50.423169,3.03894836));
		points.push(new GLatLng(50.41998338,3.03741656));
		points.push(new GLatLng(50.41153087000001,3.0294914));
		points.push(new GLatLng(50.40850823,3.02751067));
		points.push(new GLatLng(50.40308761,3.01492693));
		points.push(new GLatLng(50.39992642,2.99542671));
		points.push(new GLatLng(50.40168798,2.991701350000001));
		points.push(new GLatLng(50.40286879,2.98048517));
		points.push(new GLatLng(50.40023087,2.98387684));
		points.push(new GLatLng(50.39493812,2.99040622));
		points.push(new GLatLng(50.38175664000001,2.9939117));
		points.push(new GLatLng(50.37389836,3.00165258));
		points.push(new GLatLng(50.37087728,3.00276316));
		points.push(new GLatLng(50.36249321,3.00823541));
		points.push(new GLatLng(50.35947416,3.00731139));
		points.push(new GLatLng(50.35876572000001,3.01034585));
		points.push(new GLatLng(50.35939579,3.01342768));
		points.push(new GLatLng(50.34631631000001,3.03515408));
		points.push(new GLatLng(50.34400741,3.03876945));
		points.push(new GLatLng(50.34484609,3.04274975));
		points.push(new GLatLng(50.34580169,3.04666312));
		points.push(new GLatLng(50.33538813,3.058124020000001));
		points.push(new GLatLng(50.33276826000001,3.06108676));
		points.push(new GLatLng(50.32890495000001,3.06033024));
		points.push(new GLatLng(50.31710015,3.07456871));
		points.push(new GLatLng(50.31620204000002,3.07915261));
		points.push(new GLatLng(50.31376116000001,3.08210177));
		points.push(new GLatLng(50.31122277,3.08483899));
		points.push(new GLatLng(50.30910332000001,3.080659530000001));
		points.push(new GLatLng(50.30729192,3.06545677));
		points.push(new GLatLng(50.30226327000001,3.05837828));
		points.push(new GLatLng(50.29608113000001,3.0505017));
		points.push(new GLatLng(50.29383654,3.047581210000001));
		points.push(new GLatLng(50.29195557,3.05159056));
		points.push(new GLatLng(50.2897449,3.055173270000001));
		points.push(new GLatLng(50.28758016,3.05242497));
		points.push(new GLatLng(50.28227877,3.05506684));
		points.push(new GLatLng(50.28311314,3.04429399));
		points.push(new GLatLng(50.28752973000001,3.03610565));
		points.push(new GLatLng(50.28377076,3.01524012));
		points.push(new GLatLng(50.27418151,3.0160507));
		points.push(new GLatLng(50.26796535,3.01221303));
		points.push(new GLatLng(50.26613508000001,3.01536682));
		points.push(new GLatLng(50.26438494,3.01861948));
		points.push(new GLatLng(50.26717638000001,3.02977598));
		points.push(new GLatLng(50.26940065,3.03635684));
		points.push(new GLatLng(50.27716154,3.05075195));
		points.push(new GLatLng(50.27531715,3.05461753));
		points.push(new GLatLng(50.27315476,3.05759747));
		points.push(new GLatLng(50.27208007000001,3.06178303));
		points.push(new GLatLng(50.27180968,3.062129220000001));
		points.push(new GLatLng(50.27435585000001,3.07744396));
		points.push(new GLatLng(50.2693294,3.102406390000001));
		points.push(new GLatLng(50.2685524,3.1075334));
		points.push(new GLatLng(50.26636021,3.12764821));
		points.push(new GLatLng(50.26622809000001,3.13281273));
		points.push(new GLatLng(50.26524213,3.13813167));
		points.push(new GLatLng(50.26213444,3.150766720000001));
		points.push(new GLatLng(50.26019070000001,3.15410933));
		points.push(new GLatLng(50.26087729,3.14951441));
		points.push(new GLatLng(50.24621003000001,3.14713663));
		points.push(new GLatLng(50.24208878,3.16485798));
		points.push(new GLatLng(50.24093905000002,3.17424351));
		points.push(new GLatLng(50.23363149,3.18234986));
		points.push(new GLatLng(50.23491993,3.18682124));
		points.push(new GLatLng(50.22867118000001,3.1871077));
		points.push(new GLatLng(50.22621493000001,3.1840863));
		points.push(new GLatLng(50.22422853000001,3.1805974));
		points.push(new GLatLng(50.21906180000001,3.17884636));
		points.push(new GLatLng(50.21914374,3.14793293));
		points.push(new GLatLng(50.21922364000001,3.142758440000001));
		points.push(new GLatLng(50.20256928,3.13253594));
		points.push(new GLatLng(50.19948166,3.13115888));
		points.push(new GLatLng(50.19747418,3.138957510000001));
		points.push(new GLatLng(50.19647915,3.14286931));
		points.push(new GLatLng(50.188239,3.14703102));
		points.push(new GLatLng(50.18464868,3.15513854));
		points.push(new GLatLng(50.18155296,3.15634501));
		points.push(new GLatLng(50.18026603,3.15147383));
		points.push(new GLatLng(50.1669305,3.1374803));
		points.push(new GLatLng(50.16586544,3.13288002));
		points.push(new GLatLng(50.16665486000001,3.11338479));
		points.push(new GLatLng(50.16195804,3.10093283));
		points.push(new GLatLng(50.15476014000001,3.112224030000001));
		points.push(new GLatLng(50.14823195000001,3.11546241));
		points.push(new GLatLng(50.14455585,3.13019774));
		points.push(new GLatLng(50.14419821,3.135501280000001));
		points.push(new GLatLng(50.14073469000001,3.13530548));
		points.push(new GLatLng(50.13912238000002,3.13064317));
		points.push(new GLatLng(50.12450489,3.09594073));
		points.push(new GLatLng(50.12163821,3.09356612));
		points.push(new GLatLng(50.1146012,3.103721080000001));
		points.push(new GLatLng(50.11136542,3.10425827));
		points.push(new GLatLng(50.10801798,3.105561380000001));
		points.push(new GLatLng(50.10462208,3.10457466));
		points.push(new GLatLng(50.10477002,3.10958881));
		points.push(new GLatLng(50.09554702000001,3.11306069));
		points.push(new GLatLng(50.0923721,3.11403058));
		points.push(new GLatLng(50.08095611000001,3.103699450000001));
		points.push(new GLatLng(50.0821626,3.08881851));
		points.push(new GLatLng(50.07555310000002,3.0876323));
		points.push(new GLatLng(50.07102005000001,3.0948596));
		points.push(new GLatLng(50.06842371000001,3.098070320000001));
		points.push(new GLatLng(50.0668442,3.09366741));
		points.push(new GLatLng(50.06421752000001,3.08580604));
		points.push(new GLatLng(50.05533905,3.08584063));
		points.push(new GLatLng(50.05373215000001,3.09022137));
		points.push(new GLatLng(50.05089644,3.08728065));
		points.push(new GLatLng(50.04529116,3.07445607));
		points.push(new GLatLng(50.0477511,3.07159216));
		points.push(new GLatLng(50.05082799,3.05826653));
		points.push(new GLatLng(50.05237083,3.05389808));
		points.push(new GLatLng(50.05747093,3.030376200000001));
		points.push(new GLatLng(50.05676737,3.02621141));
		points.push(new GLatLng(50.05413565,3.02487891));
		points.push(new GLatLng(50.05683649000001,3.02190382));
		points.push(new GLatLng(50.05803206000001,3.01193623));
		points.push(new GLatLng(50.05459522,3.00680127));
		points.push(new GLatLng(50.05297422,3.00265288));
		points.push(new GLatLng(50.05040165,2.99382186));
		points.push(new GLatLng(50.04928884,2.98873277));
		points.push(new GLatLng(50.04135414,2.97149804));
		points.push(new GLatLng(50.04367691000001,2.968475730000001));
		points.push(new GLatLng(50.05012999,2.96176668));
		points.push(new GLatLng(50.05112048,2.95765352));
		points.push(new GLatLng(50.05302137000001,2.94937975));
		points.push(new GLatLng(50.05269691,2.94406523));
		points.push(new GLatLng(50.05046387,2.93999399));
		points.push(new GLatLng(50.04732844000001,2.93867411));
		points.push(new GLatLng(50.04522875,2.93482955));
		points.push(new GLatLng(50.04402,2.9306891));
		points.push(new GLatLng(50.04858532000001,2.92014742));
		points.push(new GLatLng(50.03552983,2.9169866));
		points.push(new GLatLng(50.03654278000001,2.89613203));
		points.push(new GLatLng(50.03119052,2.88266769));
		points.push(new GLatLng(50.02698332,2.87571059));
		points.push(new GLatLng(50.02451195,2.87854085));
		points.push(new GLatLng(50.02106137,2.87114712));
		points.push(new GLatLng(50.02357602,2.85634775));
		points.push(new GLatLng(50.02605775000001,2.85539776));
		points.push(new GLatLng(50.02914693000001,2.85303244));
		points.push(new GLatLng(50.03366014,2.85989355));
		points.push(new GLatLng(50.03493638000001,2.8699276));
		points.push(new GLatLng(50.04421739,2.87633999));
		points.push(new GLatLng(50.05991496,2.86469657));
		points.push(new GLatLng(50.06063216,2.86074386));
		points.push(new GLatLng(50.06098168,2.85667571));
		points.push(new GLatLng(50.06426575,2.85489654));
		points.push(new GLatLng(50.07798001,2.85538701));
		points.push(new GLatLng(50.07807480000001,2.85015567));
		points.push(new GLatLng(50.0720032,2.83777854));
		points.push(new GLatLng(50.06316100000001,2.83120666));
		points.push(new GLatLng(50.06562588000001,2.827674580000001));
		points.push(new GLatLng(50.05985891,2.81046751));
		points.push(new GLatLng(50.06244796,2.80717288));
		points.push(new GLatLng(50.05969456,2.80419118));
		points.push(new GLatLng(50.05125273,2.7956786));
		points.push(new GLatLng(50.05004534,2.79448265));
		points.push(new GLatLng(50.04834501,2.78089031));
		points.push(new GLatLng(50.04278909,2.77570916));
		points.push(new GLatLng(50.04031299,2.75216075));
		map.addOverlay(new GPolyline(points, "#FF0000"));
		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 'chbH':
				tmp = "OICLass=HLO&OICv=02.01.04.01.01";
				break;
			case 'meuble':
				tmp = "OICLass=HLO&OICv=02.01.04.01.02";
				break;*/
			case 'auberge':
				tmp = "OICLass=VIL";
				break;
			case 'loisirs':
				tmp = "OICLass=ASC";
				break;
			case 'patrimoine':
				tmp = "OICLass=PCU";
				break;
			case 'gastronomie':
				tmp = "OICLass=DEG";
				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 = ""
				break;
		}
		if(idoi == cat) tmp = "OIId="+idoi;
		return tmp;
	}
	window.onload = function() {
		load();chargeID();
	};
