	var map = null;
	var center = new GLatLng(45.744527,4.220123);
	var initZoom = 9;
	var id = '';
	
	//Création de marker pour les fiches
	function createMarker(point, mess, ico) {
		var infoTabs = [
						new GInfoWindowTab("Nom", mess)
						];
		var marker = new GMarker(point, ico);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowTabsHtml(infoTabs);
		});
		return marker;
	}
	
	//Création de marker pour l'OT avec les coordonnées
	function createMarkerOT(point, mess, mess2, ico) {
		var infoTabs = [
						new GInfoWindowTab("Nom", mess),
						new GInfoWindowTab("Coordonnées", mess2)
						];
		var marker = new GMarker(point, ico);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowTabsHtml(infoTabs);
		});
		return marker;
	}
	
	function showAddress(address,mess,mess2) {
	 // alert(address);
	 if(mess == "") mess = address;
	 if(mess2 == "") mess2 = address;
	  var geocoder = new GClientGeocoder();
	  geocoder.getLatLng(
		address + " France",
		function(point) {
		  if (!point) {
			alert("Coordonnées inconnues");
		  } else {
			map.setCenter(point, 16);
			map.addOverlay(createMarker(point, mess, mess2));
		  }
		}
	  );
	}
	function 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);
		if(cat != '')
		{
			if(showHideLoader('visible')){
				afficheResultat(tmpCat,cat,'','','');
			}
		}
	}
	function afficheResultat(paramsUrl,cat,cLat,cLng,proxim){
		//alert("http://"+gUrl+"/_includes/google-maps/mnet-gMaps.asp?"+paramsUrl)
		GDownloadUrl("http://"+gUrl+"/_includes/google-maps/mnet-gMaps.asp?"+paramsUrl,
						function(data, responseCode) {
							var xml = GXml.parse(data);
							//var contenu_html = xml.documentElement.getElementsByTagName("contenu");
							var markers = xml.documentElement.getElementsByTagName("marker");
							if(markers.length == 0) alert('Nous ne parvenons pas à localiser les prestataires de votre choix !');
							//alert(tmpCat.substring(5));
							if(document.getElementById('nb') != null){
								document.getElementById('nb').innerHTML = 'Nombre de résultat : ' + markers.length;
							}
							//alert(markers.length);
							for (var i = 0; i < markers.length; i++) {
								var point = new GLatLng((markers[i].getAttribute("lat")),
								(markers[i].getAttribute("lng")));

								var icontype = markers[i].getAttribute("icontype");
								var Ref = markers[i].getAttribute("label");

								var html = decode(markers[i].getElementsByTagName("infowindow"));
								if(proxim != '') document.getElementById('proximite').innerHTML += html + '<hr>';
								//alert(icontype);
								//var html2 = decode(markers[i].getElementsByTagName("infowindow2")); 
								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);
							}
						}
					);
		showHideLoader('hidden');
	}
    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(45.444069,4.386721);
		map.addOverlay(createMarkerOT(point,"<table><tr><td><img src='/img-cdt-loire/cartographie-loire/logo-carto.gif'></td><td>Site officiel du Comité Départemental<br> du Tourisme de la Loire</td></tr></table>","<span class=\"ArialTxt10pxGris\">22 rue Balay - 42021 Saint-Etienne - cedex 1 France<br>Tel.: + 33 (0)4 77 59 96 97<br>Courriel : <a href=\"tourisme@cg42.fr\">tourisme@cg42.fr</a> - Internet : <a href=\"http://www.loiretourisme.com\">www.loiretourisme.com</a></span>",iconStyle('info')));
		administrative();
      }
    }
	function iconStyle(cat){
		var tmpCat = cat;
		if(tmpCat == '') tmpCat = 'default';
		if(!isNaN(cat)) tmpCat = 'default';
		if(id == cat) tmpCat = 'default';
		if(cat.lastIndexOf(",")>1) tmpCat = 'default';
		var icon = new GIcon();
		icon.image = "/_includes/google-maps/img/gm"+tmpCat+".png";
		icon.shadow = "/_includes/google-maps/img/gm-shadow.png";
		icon.iconSize = new GSize(20, 40);
		icon.shadowSize = new GSize(40, 40);
		icon.iconAnchor = new GPoint(10, 40);
		icon.infoWindowAnchor = new GPoint(10, 1);
		icon.infoShadowAnchor = new GPoint(20, 1);
		return icon;
	}
	function decode(a) {
		var b = "";
		if (a.length > 0) {
			if (a[0]) {
				if (a[0].firstChild) {
				b = a[0].firstChild.nodeValue;
			}
		}
	}
	return b;
	}
	function administrative(){
		var points = [];
		points.push(new GLatLng(46.18068850000001,4.05007357));
		points.push(new GLatLng(46.18586275,4.05667539));
		points.push(new GLatLng(46.18845747,4.05997053));
		points.push(new GLatLng(46.18682432000001,4.06733033));
		points.push(new GLatLng(46.19061037,4.07864591));
		points.push(new GLatLng(46.19102954,4.08292245));
		points.push(new GLatLng(46.19710978,4.09944585));
		points.push(new GLatLng(46.19844530000001,4.10383051));
		points.push(new GLatLng(46.18069172,4.13285958));
		points.push(new GLatLng(46.17732644000001,4.13339663));
		points.push(new GLatLng(46.17731925,4.13384982));
		points.push(new GLatLng(46.17666692,4.1385957));
		points.push(new GLatLng(46.1759984,4.14332798));
		points.push(new GLatLng(46.17369139,4.17813715));
		points.push(new GLatLng(46.17663775,4.18674789));
		points.push(new GLatLng(46.17987258000001,4.18484936));
		points.push(new GLatLng(46.18676636000001,4.18373517));
		points.push(new GLatLng(46.19013051000001,4.18493877));
		points.push(new GLatLng(46.18863826000001,4.18924077));
		points.push(new GLatLng(46.19449603,4.20620879));
		points.push(new GLatLng(46.18722770000001,4.21584651));
		points.push(new GLatLng(46.18510511,4.21955821));
		points.push(new GLatLng(46.18019004000001,4.22336489));
		points.push(new GLatLng(46.17763479,4.22499966));
		points.push(new GLatLng(46.17837340000001,4.22657857));
		points.push(new GLatLng(46.17969918000001,4.23125228));
		points.push(new GLatLng(46.18689858000001,4.24092097));
		points.push(new GLatLng(46.18713756,4.2550143));
		points.push(new GLatLng(46.18454646,4.25814957));
		points.push(new GLatLng(46.17517683,4.26191362));
		points.push(new GLatLng(46.16734746,4.25341246));
		points.push(new GLatLng(46.16711283000002,4.24866345));
		points.push(new GLatLng(46.15782052,4.25319472));
		points.push(new GLatLng(46.15661324,4.2775511));
		points.push(new GLatLng(46.15681655,4.28242775));
		points.push(new GLatLng(46.16931772,4.29028261));
		points.push(new GLatLng(46.17305937,4.29821509));
		points.push(new GLatLng(46.17432757,4.30287387));
		points.push(new GLatLng(46.17293194,4.30916875));
		points.push(new GLatLng(46.1712026,4.311826660000001));
		points.push(new GLatLng(46.17131136,4.31641767));
		points.push(new GLatLng(46.18171116,4.32639567));
		points.push(new GLatLng(46.18489282,4.3266399));
		points.push(new GLatLng(46.18174114000001,4.33490933));
		points.push(new GLatLng(46.18726626,4.34664426));
		points.push(new GLatLng(46.18268065,4.35852549));
		points.push(new GLatLng(46.18543003,4.36632421));
		points.push(new GLatLng(46.18433167,4.37080555));
		points.push(new GLatLng(46.18725421000001,4.37349442));
		points.push(new GLatLng(46.19856925000001,4.363352250000001));
		points.push(new GLatLng(46.20951512,4.37477773));
		points.push(new GLatLng(46.21309373,4.38842029));
		points.push(new GLatLng(46.21979600000001,4.3880759));
		points.push(new GLatLng(46.2196271,4.40675357));
		points.push(new GLatLng(46.21007159,4.41986048));
		points.push(new GLatLng(46.20703069,4.42175368));
		points.push(new GLatLng(46.20313739,4.42296597));
		points.push(new GLatLng(46.19566904,4.3968764));
		points.push(new GLatLng(46.18922867,4.39617979));
		points.push(new GLatLng(46.18453396000001,4.40290913));
		points.push(new GLatLng(46.18224788,4.40635992));
		points.push(new GLatLng(46.18153227,4.41054382));
		points.push(new GLatLng(46.18007713,4.41431207));
		points.push(new GLatLng(46.16996391,4.43517112));
		points.push(new GLatLng(46.16788351999999,4.43858873));
		points.push(new GLatLng(46.15557406,4.43116038));
		points.push(new GLatLng(46.15139268,4.42365744));
		points.push(new GLatLng(46.13592057,4.41735592));
		points.push(new GLatLng(46.13705983,4.40824743));
		points.push(new GLatLng(46.14764536,4.38544436));
		points.push(new GLatLng(46.14966403,4.38181655));
		points.push(new GLatLng(46.14980977,4.37718613));
		points.push(new GLatLng(46.13846306000001,4.36158895));
		points.push(new GLatLng(46.13828187,4.35662371));
		points.push(new GLatLng(46.13551106,4.3327398));
		points.push(new GLatLng(46.13323409,4.32967923));
		points.push(new GLatLng(46.12998319,4.32211762));
		points.push(new GLatLng(46.11682334,4.31972433));
		points.push(new GLatLng(46.11224575,4.3128035));
		points.push(new GLatLng(46.11000312000001,4.30929343));
		points.push(new GLatLng(46.10034087,4.30599515));
		points.push(new GLatLng(46.09485681,4.31133429));
		points.push(new GLatLng(46.08502519000001,4.31000931));
		points.push(new GLatLng(46.08172433000001,4.31040625));
		points.push(new GLatLng(46.07919993,4.30498833));
		points.push(new GLatLng(46.0784618,4.30143));
		points.push(new GLatLng(46.06604738,4.30004167));
		points.push(new GLatLng(46.06345744,4.29733716));
		points.push(new GLatLng(46.05368844,4.28510796));
		points.push(new GLatLng(46.05197879,4.26622715));
		points.push(new GLatLng(46.05391648000001,4.25709203));
		points.push(new GLatLng(46.0517919,4.25342415));
		points.push(new GLatLng(46.04918572,4.251083920000001));
		points.push(new GLatLng(46.03911900000001,4.26096663));
		points.push(new GLatLng(46.03605612,4.26056176));
		points.push(new GLatLng(46.03352998,4.26982807));
		points.push(new GLatLng(46.02390357,4.27598655));
		points.push(new GLatLng(46.02177326,4.28001924));
		points.push(new GLatLng(46.01836414000001,4.28773941));
		points.push(new GLatLng(46.02077768,4.30061471));
		points.push(new GLatLng(46.02147401000001,4.3050708));
		points.push(new GLatLng(46.02159540000001,4.30585028));
		points.push(new GLatLng(46.01125768000001,4.3082556));
		points.push(new GLatLng(46.00801741,4.31033461));
		points.push(new GLatLng(46.00512611,4.31201268));
		points.push(new GLatLng(45.99436868000001,4.30393037));
		points.push(new GLatLng(45.98889085,4.30009149));
		points.push(new GLatLng(45.99566317,4.28899568));
		points.push(new GLatLng(45.99236849,4.27443133));
		points.push(new GLatLng(45.99272092,4.2696277));
		points.push(new GLatLng(45.99852038,4.26467999));
		points.push(new GLatLng(45.9955999,4.25116122));
		points.push(new GLatLng(45.99611938,4.24605311));
		points.push(new GLatLng(45.99305574,4.24733953));
		points.push(new GLatLng(45.98672601000001,4.24804964));
		points.push(new GLatLng(45.98117638000001,4.25898363));
		points.push(new GLatLng(45.97997390000001,4.27245691));
		points.push(new GLatLng(45.97779342,4.27574895));
		points.push(new GLatLng(45.97317676000001,4.28882843));
		points.push(new GLatLng(45.95832916,4.30058411));
		points.push(new GLatLng(45.95340531,4.29391772));
		points.push(new GLatLng(45.94230123,4.31239416));
		points.push(new GLatLng(45.94112348,4.32205239));
		points.push(new GLatLng(45.93183132,4.336548370000001));
		points.push(new GLatLng(45.92994284,4.34602351));
		points.push(new GLatLng(45.92160202,4.33838055));
		points.push(new GLatLng(45.91666587,4.34165609));
		points.push(new GLatLng(45.91576566,4.34621344));
		points.push(new GLatLng(45.9056424,4.32738329));
		points.push(new GLatLng(45.90388900000001,4.32321903));
		points.push(new GLatLng(45.89736524000001,4.32621817));
		points.push(new GLatLng(45.89016358,4.33693763));
		points.push(new GLatLng(45.88003386000001,4.34030536));
		points.push(new GLatLng(45.87690745,4.34247188));
		points.push(new GLatLng(45.86617112,4.36109407));
		points.push(new GLatLng(45.8646201,4.38962225));
		points.push(new GLatLng(45.86516954,4.39447494));
		points.push(new GLatLng(45.85982821,4.39614126));
		points.push(new GLatLng(45.85028334,4.39060611));
		points.push(new GLatLng(45.84597372,4.38307889));
		points.push(new GLatLng(45.83981825,4.38700865));
		points.push(new GLatLng(45.83747568,4.3906037));
		points.push(new GLatLng(45.83400273,4.38368877));
		points.push(new GLatLng(45.82531971,4.3805719));
		points.push(new GLatLng(45.82482700000001,4.37603523));
		points.push(new GLatLng(45.82027229000001,4.3824694));
		points.push(new GLatLng(45.81745019,4.38027925));
		points.push(new GLatLng(45.80301186,4.38783501));
		points.push(new GLatLng(45.80499517,4.38370241));
		points.push(new GLatLng(45.80445819000001,4.37561546));
		points.push(new GLatLng(45.78410372,4.37644169));
		points.push(new GLatLng(45.77891494000001,4.35829393));
		points.push(new GLatLng(45.77117835000001,4.34909753));
		points.push(new GLatLng(45.75421126,4.360317500000001));
		points.push(new GLatLng(45.75110829,4.3591621));
		points.push(new GLatLng(45.74944936,4.37326743));
		points.push(new GLatLng(45.75465713,4.3858023));
		points.push(new GLatLng(45.75508104,4.39067785));
		points.push(new GLatLng(45.74657346,4.401183830000001));
		points.push(new GLatLng(45.74392253000001,4.4029225));
		points.push(new GLatLng(45.73788115,4.3912441));
		points.push(new GLatLng(45.72119689,4.38477537));
		points.push(new GLatLng(45.71338077000001,4.37513224));
		points.push(new GLatLng(45.70317501,4.37271224));
		points.push(new GLatLng(45.69852571,4.36551514));
		points.push(new GLatLng(45.69291997,4.36993175));
		points.push(new GLatLng(45.69077725,4.37344826));
		points.push(new GLatLng(45.68300354,4.36589366));
		points.push(new GLatLng(45.67370974000001,4.36872226));
		points.push(new GLatLng(45.67115962,4.36591965));
		points.push(new GLatLng(45.66380284000001,4.38790365));
		points.push(new GLatLng(45.66248471000001,4.39255346));
		points.push(new GLatLng(45.655242,4.39587663));
		points.push(new GLatLng(45.65361907000001,4.39260779));
		points.push(new GLatLng(45.63919879,4.4049907));
		points.push(new GLatLng(45.63712032,4.40886281));
		points.push(new GLatLng(45.63205437,4.41027593));
		points.push(new GLatLng(45.62945389,4.41806695));
		points.push(new GLatLng(45.62966872,4.42243637));
		points.push(new GLatLng(45.62420403000001,4.43746719));
		points.push(new GLatLng(45.62305755,4.44148935));
		points.push(new GLatLng(45.60736313000001,4.45003287));
		points.push(new GLatLng(45.60100280999999,4.46084085));
		points.push(new GLatLng(45.59735220000001,4.4724948));
		points.push(new GLatLng(45.59471284,4.47450785));
		points.push(new GLatLng(45.58844373,4.46817643));
		points.push(new GLatLng(45.58575067,4.46781607));
		points.push(new GLatLng(45.58547385000001,4.50054104));
		points.push(new GLatLng(45.58362317,4.50455712));
		points.push(new GLatLng(45.5768884,4.5052166));
		points.push(new GLatLng(45.57652864,4.51442831));
		points.push(new GLatLng(45.57263956,4.52187392));
		points.push(new GLatLng(45.57977469000001,4.54261123));
		points.push(new GLatLng(45.5801601,4.54725337));
		points.push(new GLatLng(45.57915124,4.55552943));
		points.push(new GLatLng(45.58367914,4.5667613));
		points.push(new GLatLng(45.58226157000001,4.5706004));
		points.push(new GLatLng(45.57323909000002,4.58385759));
		points.push(new GLatLng(45.57072565000001,4.58711265));
		points.push(new GLatLng(45.57040783,4.60286143));
		points.push(new GLatLng(45.57392022,4.61073325));
		points.push(new GLatLng(45.57547342,4.61485981));
		points.push(new GLatLng(45.56825101,4.62569714));
		points.push(new GLatLng(45.54837435999999,4.63555634));
		points.push(new GLatLng(45.54336294,4.64246917));
		points.push(new GLatLng(45.54016911,4.64458998));
		points.push(new GLatLng(45.54208424,4.6520859));
		points.push(new GLatLng(45.54322866,4.65983172));
		points.push(new GLatLng(45.55559022000001,4.64659255));
		points.push(new GLatLng(45.56169985,4.64884695));
		points.push(new GLatLng(45.56491308,4.64927624));
		points.push(new GLatLng(45.56340856,4.65369778));
		points.push(new GLatLng(45.56377532000001,4.65858218));
		points.push(new GLatLng(45.56876131000001,4.67630788));
		points.push(new GLatLng(45.55775827,4.6881167));
		points.push(new GLatLng(45.55475911,4.6851705));
		points.push(new GLatLng(45.54587706,4.66837149));
		points.push(new GLatLng(45.54304528,4.66648437));
		points.push(new GLatLng(45.54284356000001,4.66532311));
		points.push(new GLatLng(45.53945391,4.664334900000001));
		points.push(new GLatLng(45.52987254,4.650702));
		points.push(new GLatLng(45.49939545000001,4.65429061));
		points.push(new GLatLng(45.4971139,4.650598790000001));
		points.push(new GLatLng(45.48559827,4.65775416));
		points.push(new GLatLng(45.48661313000001,4.662186840000001));
		points.push(new GLatLng(45.48235289,4.66881423));
		points.push(new GLatLng(45.47628348000001,4.67069466));
		points.push(new GLatLng(45.48065142,4.67744237));
		points.push(new GLatLng(45.47981043,4.68192299));
		points.push(new GLatLng(45.47813738,4.69981408));
		points.push(new GLatLng(45.49195054,4.71857603));
		points.push(new GLatLng(45.49440125,4.7218298));
		points.push(new GLatLng(45.48716926,4.73843378));
		points.push(new GLatLng(45.47397104,4.74236355));
		points.push(new GLatLng(45.4727277,4.73777964));
		points.push(new GLatLng(45.45818268,4.7541079));
		points.push(new GLatLng(45.45570946,4.7569284));
		points.push(new GLatLng(45.45102744,4.75493329));
		points.push(new GLatLng(45.44904092,4.75523006));
		points.push(new GLatLng(45.44705439000001,4.75552681));
		points.push(new GLatLng(45.44138859000001,4.75864164));
		points.push(new GLatLng(45.43849812,4.75994699));
		points.push(new GLatLng(45.43260199,4.75994444));
		points.push(new GLatLng(45.43007237000001,4.7566904));
		points.push(new GLatLng(45.42041991000001,4.74314156));
		points.push(new GLatLng(45.40736998000001,4.74478477));
		points.push(new GLatLng(45.40023892,4.75240837));
		points.push(new GLatLng(45.39779206,4.75484388));
		points.push(new GLatLng(45.38472583,4.7588471));
		points.push(new GLatLng(45.37480708,4.75641998));
		points.push(new GLatLng(45.37146407,4.75701456));
		points.push(new GLatLng(45.36568103,4.75599456));
		points.push(new GLatLng(45.36591460000001,4.7514479));
		points.push(new GLatLng(45.36143646,4.7253617));
		points.push(new GLatLng(45.35460876,4.723101540000001));
		points.push(new GLatLng(45.35416908000001,4.71883185));
		points.push(new GLatLng(45.3495678,4.70330461));
		points.push(new GLatLng(45.34499093,4.6980168));
		points.push(new GLatLng(45.34594478,4.679729820000001));
		points.push(new GLatLng(45.34430029,4.67528275));
		points.push(new GLatLng(45.32620136,4.63855375));
		points.push(new GLatLng(45.32373741,4.64019925));
		points.push(new GLatLng(45.31890597,4.6431749));
		points.push(new GLatLng(45.31719071,4.6403865));
		points.push(new GLatLng(45.31494996,4.63384036));
		points.push(new GLatLng(45.31020587,4.61593942));
		points.push(new GLatLng(45.30010761,4.61685068));
		points.push(new GLatLng(45.29483799,4.62279275));
		points.push(new GLatLng(45.29154349,4.6215082));
		points.push(new GLatLng(45.29202932000001,4.61189032));
		points.push(new GLatLng(45.29100948,4.60271953));
		points.push(new GLatLng(45.28949152,4.598590420000001));
		points.push(new GLatLng(45.27631659000001,4.59240669));
		points.push(new GLatLng(45.2697837,4.59365781));
		points.push(new GLatLng(45.26897458,4.59849343));
		points.push(new GLatLng(45.26542839,4.60293677));
		points.push(new GLatLng(45.26367035000001,4.60529902));
		points.push(new GLatLng(45.25343045,4.60522457));
		points.push(new GLatLng(45.24654757,4.58830532));
		points.push(new GLatLng(45.2440808,4.58479121));
		points.push(new GLatLng(45.24590183,4.5806227));
		points.push(new GLatLng(45.2474016,4.56150871));
		points.push(new GLatLng(45.24285587,4.54303517));
		points.push(new GLatLng(45.23620338,4.53317987));
		points.push(new GLatLng(45.24209984,4.51564315));
		points.push(new GLatLng(45.23328579999999,4.50940044));
		points.push(new GLatLng(45.23222392,4.48996204));
		points.push(new GLatLng(45.23612259,4.48193619));
		points.push(new GLatLng(45.23771016,4.47894061));
		points.push(new GLatLng(45.23888393000001,4.47452781));
		points.push(new GLatLng(45.2472443,4.46794631));
		points.push(new GLatLng(45.25345776,4.45689535));
		points.push(new GLatLng(45.25626479,4.45404658));
		points.push(new GLatLng(45.25955118,4.44547042));
		points.push(new GLatLng(45.27470570000001,4.43407577));
		points.push(new GLatLng(45.2754085,4.41965016));
		points.push(new GLatLng(45.27360147,4.41565684));
		points.push(new GLatLng(45.26354283000001,4.39131105));
		points.push(new GLatLng(45.25753587,4.38717716));
		points.push(new GLatLng(45.26196351000001,4.37491701));
		points.push(new GLatLng(45.25989010000001,4.371183990000001));
		points.push(new GLatLng(45.27771245999999,4.35018229));
		points.push(new GLatLng(45.28536977000001,4.35960013));
		points.push(new GLatLng(45.29187264,4.36126513));
		points.push(new GLatLng(45.29898186,4.36916226));
		points.push(new GLatLng(45.30128378000001,4.36625006));
		points.push(new GLatLng(45.30416561,4.35230295));
		points.push(new GLatLng(45.31848553,4.33165));
		points.push(new GLatLng(45.33748553,4.3633763));
		points.push(new GLatLng(45.33711234,4.36800838));
		points.push(new GLatLng(45.34938401000001,4.35980532));
		points.push(new GLatLng(45.36431925,4.34053832));
		points.push(new GLatLng(45.36616578000001,4.3364306));
		points.push(new GLatLng(45.37001341,4.31292522));
		points.push(new GLatLng(45.37098797000001,4.30819787));
		points.push(new GLatLng(45.36284052000001,4.303810380000001));
		points.push(new GLatLng(45.36403714,4.2956447));
		points.push(new GLatLng(45.35907422,4.28975089));
		points.push(new GLatLng(45.35976824,4.27162318));
		points.push(new GLatLng(45.36266518000001,4.27010447));
		points.push(new GLatLng(45.37492738,4.27080053));
		points.push(new GLatLng(45.37169038,4.25716725));
		points.push(new GLatLng(45.38528162,4.24434354));
		points.push(new GLatLng(45.38500360000001,4.23954649));
		points.push(new GLatLng(45.38683390000001,4.23669771));
		points.push(new GLatLng(45.3897238,4.22655447));
		points.push(new GLatLng(45.38819487,4.22219731));
		points.push(new GLatLng(45.38221034,4.2008618));
		points.push(new GLatLng(45.39170324,4.18081101));
		points.push(new GLatLng(45.38890741,4.16209835));
		points.push(new GLatLng(45.38762991,4.15767604));
		points.push(new GLatLng(45.38411073,4.14444613));
		points.push(new GLatLng(45.38154436000001,4.14788658));
		points.push(new GLatLng(45.36946925000001,4.15668344));
		points.push(new GLatLng(45.36524262,4.149894));
		points.push(new GLatLng(45.36837271,4.1204054));
		points.push(new GLatLng(45.36179501,4.10911438));
		points.push(new GLatLng(45.35480705,4.10780609));
		points.push(new GLatLng(45.35789219,4.10158688));
		points.push(new GLatLng(45.35957848,4.0985135));
		points.push(new GLatLng(45.35772676,4.0840961));
		points.push(new GLatLng(45.35230439,4.0781185));
		points.push(new GLatLng(45.34187356,4.07651489));
		points.push(new GLatLng(45.33605969000001,4.07080947));
		points.push(new GLatLng(45.33943294,4.06276081));
		points.push(new GLatLng(45.35181018,4.05487669));
		points.push(new GLatLng(45.35492119,4.04154715));
		points.push(new GLatLng(45.35296657000001,4.03755637));
		points.push(new GLatLng(45.34806216,4.02515561));
		points.push(new GLatLng(45.32820093,4.02057094));
		points.push(new GLatLng(45.33082278,4.014973830000001));
		points.push(new GLatLng(45.33363578,4.01459971));
		points.push(new GLatLng(45.33684802000001,4.01280873));
		points.push(new GLatLng(45.35599746000001,4.00248872));
		points.push(new GLatLng(45.35606864,3.9977177));
		points.push(new GLatLng(45.36499000000001,3.987122550000001));
		points.push(new GLatLng(45.37158111,3.985596750000001));
		points.push(new GLatLng(45.3757024,3.978262250000001));
		points.push(new GLatLng(45.37521549,3.973433480000001));
		points.push(new GLatLng(45.37027711,3.961021140000001));
		points.push(new GLatLng(45.37405276,3.94761218));
		points.push(new GLatLng(45.37139121,3.938739179999999));
		points.push(new GLatLng(45.36169851,3.93448825));
		points.push(new GLatLng(45.35437003,3.91837706));
		points.push(new GLatLng(45.34180455,3.91933274));
		points.push(new GLatLng(45.33511771000001,3.90990556));
		points.push(new GLatLng(45.33325247,3.90626796));
		points.push(new GLatLng(45.33618309000001,3.90517723));
		points.push(new GLatLng(45.33870008000001,3.90278611));
		points.push(new GLatLng(45.34186241,3.90249268));
		points.push(new GLatLng(45.35708591,3.89740815));
		points.push(new GLatLng(45.36985609,3.89215238));
		points.push(new GLatLng(45.39699405000001,3.89204607));
		points.push(new GLatLng(45.4098243,3.89853821));
		points.push(new GLatLng(45.41296181000001,3.907071140000001));
		points.push(new GLatLng(45.41934723,3.911123610000001));
		points.push(new GLatLng(45.42225033,3.9139022));
		points.push(new GLatLng(45.42133136000001,3.91843748));
		points.push(new GLatLng(45.42998827000001,3.937317000000001));
		points.push(new GLatLng(45.43417167,3.95980347));
		points.push(new GLatLng(45.43643392,3.96325674));
		points.push(new GLatLng(45.43751323000002,3.963288459999999));
		points.push(new GLatLng(45.44078577000001,3.962860590000001));
		points.push(new GLatLng(45.44345190000001,3.96013958));
		points.push(new GLatLng(45.44727059000001,3.97106634));
		points.push(new GLatLng(45.44827312,3.97511001));
		points.push(new GLatLng(45.45330003,3.96917331));
		points.push(new GLatLng(45.45941044,3.972817399999999));
		points.push(new GLatLng(45.46829088,3.96671281));
		points.push(new GLatLng(45.47155398,3.96755074));
		points.push(new GLatLng(45.47743305000001,3.971637949999999));
		points.push(new GLatLng(45.48321813,3.98333432));
		points.push(new GLatLng(45.48618061000001,3.98563563));
		points.push(new GLatLng(45.48887907,3.9833238));
		points.push(new GLatLng(45.49506790000001,3.984007109999999));
		points.push(new GLatLng(45.50013645,3.972744440000001));
		points.push(new GLatLng(45.50143786,3.96934086));
		points.push(new GLatLng(45.50322219000001,3.96483807));
		points.push(new GLatLng(45.50556365000001,3.9622325));
		points.push(new GLatLng(45.51379730000001,3.95855825));
		points.push(new GLatLng(45.54340486,3.94642989));
		points.push(new GLatLng(45.55583239,3.954477180000001));
		points.push(new GLatLng(45.56274922000001,3.94462394));
		points.push(new GLatLng(45.56900651,3.94193639));
		points.push(new GLatLng(45.57179481,3.93950628));
		points.push(new GLatLng(45.57724080000001,3.93558974));
		points.push(new GLatLng(45.57936825,3.93216599));
		points.push(new GLatLng(45.59411342,3.90948278));
		points.push(new GLatLng(45.5972457,3.908778620000001));
		points.push(new GLatLng(45.59887133,3.904503880000001));
		points.push(new GLatLng(45.60297069,3.88146888));
		points.push(new GLatLng(45.61304767000001,3.86909622));
		points.push(new GLatLng(45.6139203,3.86515856));
		points.push(new GLatLng(45.61473018,3.86119341));
		points.push(new GLatLng(45.61797909,3.860424070000001));
		points.push(new GLatLng(45.62433848,3.85867613));
		points.push(new GLatLng(45.62713856000001,3.83586135));
		points.push(new GLatLng(45.63201639,3.82364273));
		points.push(new GLatLng(45.63472559,3.82222792));
		points.push(new GLatLng(45.63740915,3.82070966));
		points.push(new GLatLng(45.64043298,3.81931585));
		points.push(new GLatLng(45.64669869,3.81772673));
		points.push(new GLatLng(45.65605658,3.80542912));
		points.push(new GLatLng(45.65874392000001,3.802985660000001));
		points.push(new GLatLng(45.67347517000001,3.794534050000001));
		points.push(new GLatLng(45.67652119,3.792097490000001));
		points.push(new GLatLng(45.69056562,3.77758907));
		points.push(new GLatLng(45.69376795,3.77696662));
		points.push(new GLatLng(45.70017978,3.775862950000001));
		points.push(new GLatLng(45.71164961,3.782380509999999));
		points.push(new GLatLng(45.71406473,3.780002119999999));
		points.push(new GLatLng(45.71952815000001,3.7770109));
		points.push(new GLatLng(45.72467071,3.78092377));
		points.push(new GLatLng(45.72511872000001,3.77616789));
		points.push(new GLatLng(45.72866881,3.76805077));
		points.push(new GLatLng(45.74661325999999,3.75583223));
		points.push(new GLatLng(45.74117686,3.74595105));
		points.push(new GLatLng(45.75348608000001,3.73082884));
		points.push(new GLatLng(45.75558475,3.72710157));
		points.push(new GLatLng(45.75789069000001,3.729012200000001));
		points.push(new GLatLng(45.76035649,3.73043726));
		points.push(new GLatLng(45.76194292000001,3.73311287));
		points.push(new GLatLng(45.76435336,3.73681238));
		points.push(new GLatLng(45.77601065000001,3.72846778));
		points.push(new GLatLng(45.78355340000001,3.7003907));
		points.push(new GLatLng(45.78864015000001,3.69339133));
		points.push(new GLatLng(45.79470299,3.69511021));
		points.push(new GLatLng(45.80129248,3.7126277));
		points.push(new GLatLng(45.83027100999999,3.72689421));
		points.push(new GLatLng(45.85007275000001,3.71912865));
		points.push(new GLatLng(45.85113241000001,3.72076488));
		points.push(new GLatLng(45.85956374000001,3.72660397));
		points.push(new GLatLng(45.86268935,3.72852609));
		points.push(new GLatLng(45.86174734,3.720272480000001));
		points.push(new GLatLng(45.8676429,3.71720089));
		points.push(new GLatLng(45.87058788,3.715523080000001));
		points.push(new GLatLng(45.87127687000001,3.73407661));
		points.push(new GLatLng(45.88438244,3.75032245));
		points.push(new GLatLng(45.88603221,3.75437083));
		points.push(new GLatLng(45.88932499,3.75298818));
		points.push(new GLatLng(45.90776032000001,3.740225929999999));
		points.push(new GLatLng(45.91415353000001,3.72899343));
		points.push(new GLatLng(45.9170745,3.7263602));
		points.push(new GLatLng(45.92275115,3.72134661));
		points.push(new GLatLng(45.93073223,3.694016700000001));
		points.push(new GLatLng(45.93095867,3.69389335));
		points.push(new GLatLng(45.94816809,3.69416443));
		points.push(new GLatLng(45.95554857,3.70450027));
		points.push(new GLatLng(45.96573133,3.70179941));
		points.push(new GLatLng(45.97413986000001,3.70961012));
		points.push(new GLatLng(45.9666941,3.742083070000001));
		points.push(new GLatLng(45.97003337,3.75064829));
		points.push(new GLatLng(45.97982028000001,3.75521038));
		points.push(new GLatLng(45.98068649,3.76002135));
		points.push(new GLatLng(45.97278891,3.781716630000001));
		points.push(new GLatLng(45.98329332,3.805150300000001));
		points.push(new GLatLng(45.98466361000001,3.80971781));
		points.push(new GLatLng(45.98815868,3.823224290000001));
		points.push(new GLatLng(45.99708246,3.82820481));
		points.push(new GLatLng(45.99944723,3.831742450000001));
		points.push(new GLatLng(45.99966784,3.83207127));
		points.push(new GLatLng(46.00021645000001,3.82733464));
		points.push(new GLatLng(46.00660501,3.82470625));
		points.push(new GLatLng(46.01910220000001,3.81587514));
		points.push(new GLatLng(46.04977906,3.80754254));
		points.push(new GLatLng(46.05306164000001,3.80561326));
		points.push(new GLatLng(46.07803905,3.81820687));
		points.push(new GLatLng(46.08456626000001,3.81658482));
		points.push(new GLatLng(46.0902456,3.82129095));
		points.push(new GLatLng(46.09301073,3.81835242));
		points.push(new GLatLng(46.11013932,3.80283828));
		points.push(new GLatLng(46.112203,3.79348746));
		points.push(new GLatLng(46.13143229,3.80126092));
		points.push(new GLatLng(46.15339828,3.79005403));
		points.push(new GLatLng(46.15659053000001,3.791626770000001));
		points.push(new GLatLng(46.16135084,3.80631061));
		points.push(new GLatLng(46.16310508000001,3.80973786));
		points.push(new GLatLng(46.16864814000001,3.803437390000001));
		points.push(new GLatLng(46.18748797,3.78979534));
		points.push(new GLatLng(46.19803992,3.78865075));
		points.push(new GLatLng(46.20769509,3.793573530000001));
		points.push(new GLatLng(46.22044738,3.78504663));
		points.push(new GLatLng(46.22719224,3.77334923));
		points.push(new GLatLng(46.24042644,3.76928843));
		points.push(new GLatLng(46.24247199,3.77332368));
		points.push(new GLatLng(46.24305742000001,3.778241490000001));
		points.push(new GLatLng(46.23991442000001,3.79880443));
		points.push(new GLatLng(46.23851437,3.802695));
		points.push(new GLatLng(46.25740175,3.80760052));
		points.push(new GLatLng(46.26181420000001,3.8456955));
		points.push(new GLatLng(46.26209134,3.85055547));
		points.push(new GLatLng(46.26367132,3.86891928));
		points.push(new GLatLng(46.27254662,3.875371550000001));
		points.push(new GLatLng(46.2747102,3.882362409999999));
		points.push(new GLatLng(46.2737926,3.88695619));
		points.push(new GLatLng(46.27591451,3.89953981));
		points.push(new GLatLng(46.27401124000001,3.90377936));
		points.push(new GLatLng(46.26380307,3.9066388));
		points.push(new GLatLng(46.260624,3.9087671));
		points.push(new GLatLng(46.24389601000001,3.90741598));
		points.push(new GLatLng(46.23714148,3.897391530000001));
		points.push(new GLatLng(46.22691090000001,3.89731931));
		points.push(new GLatLng(46.21449242000001,3.89013405));
		points.push(new GLatLng(46.2092233,3.90549916));
		points.push(new GLatLng(46.20792662,3.909452690000001));
		points.push(new GLatLng(46.2038875,3.91711257));
		points.push(new GLatLng(46.20620203000001,3.93620636));
		points.push(new GLatLng(46.20341111,3.960320400000001));
		points.push(new GLatLng(46.20286459,3.96516557));
		points.push(new GLatLng(46.19973413999999,3.9725745));
		points.push(new GLatLng(46.18967074,3.9715085));
		points.push(new GLatLng(46.18189606,3.98079926));
		points.push(new GLatLng(46.17230405,3.98507001));
		points.push(new GLatLng(46.16985983000001,3.9885323));
		points.push(new GLatLng(46.17203299,4.01817012));
		points.push(new GLatLng(46.16955233,4.0276256));
		points.push(new GLatLng(46.17197439,4.03114745));
		points.push(new GLatLng(46.17922978,4.0460247));
		points.push(new GLatLng(46.18068850000001,4.05007357));
		
		map.addOverlay(new GPolyline(points,"#0000FF"));//, "#EF6329"*/
		//map.addOverlay(new GPolyline(points));
		return true;
	}
	function convCatTUrl(cat){
		var tmp="";
		//alert(cat)
		if(cat.indexOf("idoi") >= 0)
		{
			tmp = cat;
		}else{
			tmp = "cat="+cat;
		}
		return tmp;
	}
	function showHideLoader(status){
		document.getElementById('loader').style.visibility = status;
		return true;
	}
	window.onload = function() {
		load();chargeID();
		showHideLoader('hidden');
		/*GEvent.addListener(map, "moveend", function() {
		  var center = map.getCenter();
		  document.getElementById("message").innerHTML = center.toString();
		  getLimits();
		});*/
	};