 
/* JavaScriptCompressor 0.8 [www.devpro.it], thanks to Dean Edwards for idea [dean.edwards.name] */
function tick(){}var G_INCOMPAT=false;function GScript(src){document.write(
'<'
+
'script src="'
+src+
'"'
+
' type="text/javascript"><'
+
'/script>'
);}function GBrowserIsCompatible(){if (G_INCOMPAT) return false;return !!document.getElementById;}function GApiInit(){if (GApiInit.called) return;GApiInit.called=true;window.GAddMessages&&GAddMessages({160:
'\x3cH1\x3eErreur de serveur\x3c/H1\x3eLe serveur est temporairement indisponible et n’a pas pu traiter votre requête. \x3cp\x3eEssayez de nouveau dans quelques minutes.\x3c/p\x3e'
,1415:
','
,1416:
'.'
,1547:
'mi'
,1616:
'km'
,4100:
'm'
,4101:
'pieds'
,10018:
'Chargement en cours...'
,10021:
'Zoom avant'
,10022:
'Zoom arrière'
,10024:
'Faites glisser le curseur pour zoomer'
,10029:
'Revenir au résultat initial'
,10049:
'Plan'
,10050:
'Satellite'
,10093:
'Conditions d\x27utilisation'
,10111:
'Plan'
,10112:
'Sat.'
,10116:
'Mixte'
,10117:
'Mixte'
,10120:
'Désolé, aucune carte de cette région n\x27est disponible à cette échelle.\x3cp\x3eEssayez d’effectuer un zoom arrière.\x3c/p\x3e'
,10121:
'Désolé, aucune vue aérienne de cette région n\x27est disponible à cette échelle.\x3cp\x3eEssayez d’effectuer un zoom arrière.\x3c/p\x3e'
,10507:
'Déplacer vers la gauche'
,10508:
'Déplacer vers la droite'
,10509:
'Déplacer vers le haut'
,10510:
'Déplacer vers le bas'
,10511:
'Afficher un plan de ville'
,10512:
'Afficher les images satellite'
,10513:
'Afficher les images satellite avec le nom des rues'
,10806:
'Cliquez ici pour afficher cette zone sur Google Maps'
,10807:
'Trafic'
,10808:
'Afficher le trafic'
,10809:
'Masquer le trafic'
,12150:
'%1$s, %2$s'
,12151:
'%1$s, %2$s à %3$s'
,12152:
'%1$s, %2$s entre %3$s et %4$s'
,10985:
'Zoom avant'
,10986:
'Zoom arrière'
,11047:
'Centrer la carte ici'
,11089:
'\x3ca href\x3d\x22javascript:void(0);\x22\x3eEffectuer un zoom avant\x3c/a\x3e pour afficher le trafic de cette région'
,11259:
'Plein écran'
,11751:
'Afficher le relief sur la carte'
,11752:
'Style :'
,11757:
'Changer le style de carte'
,11758:
'Relief'
,11759:
'Rel.'
,11794:
'Afficher les noms'
,11303:
'Aide sur Street View'
,11274:
'Pour utiliser Street View, Adobe Flash Player version %1$d ou supérieure doit être installé sur votre ordinateur.'
,11382:
'Télécharger la dernière version de Flash Player.'
,11314:
'Nous sommes désolés, la fonctionnalité Street View est actuellement indisponible en raison d’une forte demande.\x3cbr\x3eVeuillez réessayer plus tard.'
,1559:
'N'
,1560:
'S'
,1561:
'O'
,1562:
'E'
,1608:
'NO'
,1591:
'NE'
,1605:
'SO'
,1606:
'SE'
,11907:
'Cette image n’est plus disponible.'
,10041:
'Aide'
,12471:
'Emplacement actuel'
,12492:
'Earth'
,12823:
'Google a désactivé l\x27API Google Maps pour cette application. Pour plus d\x27informations, consultez les conditions d\x27utilisation : %1$s.'
,12822:
'http://code.google.com/apis/maps/terms.html'
,12915:
'Améliorer la carte'
,12916:
'Google, Europa Technologies'
,13171:
'Mixte 3D'
,0:
''
});}var GLoad;(function(){var jslinker={version:
"182"
,jsbinary:[{id:
"maps2"
,url:
"http://maps.gstatic.com/intl/fr_ALL/mapfiles/274a/maps2/main.js"
},{id:
"maps2.api"
,url:
"http://maps.gstatic.com/intl/fr_ALL/mapfiles/274a/maps2.api/main.js"
},{id:
"gc"
,url:
"http://maps.gstatic.com/intl/fr_ALL/mapfiles/274a/gc.js"
},{id:
"suggest"
,url:
"http://maps.gstatic.com/intl/fr_ALL/mapfiles/274a/suggest/main.js"
},{id:
"pphov"
,url:
"http://maps.gstatic.com/intl/fr_ALL/mapfiles/274a/pphov.js"
}]};GLoad=function(callback){var callee=arguments.callee;var apiCallback=callback;GApiInit();var opts={public_api:true,export_legacy_names:true,tile_override:[{maptype:0,min_zoom:7,max_zoom:7,rect:[{lo:{lat_e7:330000000,lng_e7:1246050000},hi:{lat_e7:386200000,lng_e7:1293600000}},{lo:{lat_e7:366500000,lng_e7:1297000000},hi:{lat_e7:386200000,lng_e7:1320034790}}],uris:[
"http://mt0.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
,
"http://mt1.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
,
"http://mt2.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
,
"http://mt3.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
]},{maptype:0,min_zoom:8,max_zoom:9,rect:[{lo:{lat_e7:330000000,lng_e7:1246050000},hi:{lat_e7:386200000,lng_e7:1279600000}},{lo:{lat_e7:345000000,lng_e7:1279600000},hi:{lat_e7:386200000,lng_e7:1286700000}},{lo:{lat_e7:348900000,lng_e7:1286700000},hi:{lat_e7:386200000,lng_e7:1293600000}},{lo:{lat_e7:354690000,lng_e7:1293600000},hi:{lat_e7:386200000,lng_e7:1320034790}}],uris:[
"http://mt0.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
,
"http://mt1.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
,
"http://mt2.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
,
"http://mt3.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
]},{maptype:0,min_zoom:10,max_zoom:19,rect:[{lo:{lat_e7:329890840,lng_e7:1246055600},hi:{lat_e7:386930130,lng_e7:1284960940}},{lo:{lat_e7:344646740,lng_e7:1284960940},hi:{lat_e7:386930130,lng_e7:1288476560}},{lo:{lat_e7:350277470,lng_e7:1288476560},hi:{lat_e7:386930130,lng_e7:1310531620}},{lo:{lat_e7:370277730,lng_e7:1310531620},hi:{lat_e7:386930130,lng_e7:1320034790}}],uris:[
"http://mt0.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
,
"http://mt1.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
,
"http://mt2.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
,
"http://mt3.gmaptiles.co.kr/mt/v=kr1.12\x26hl=fr\x26src=api\x26"
]},{maptype:3,min_zoom:7,max_zoom:7,rect:[{lo:{lat_e7:330000000,lng_e7:1246050000},hi:{lat_e7:386200000,lng_e7:1293600000}},{lo:{lat_e7:366500000,lng_e7:1297000000},hi:{lat_e7:386200000,lng_e7:1320034790}}],uris:[
"http://mt0.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
,
"http://mt1.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
,
"http://mt2.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
,
"http://mt3.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
]},{maptype:3,min_zoom:8,max_zoom:9,rect:[{lo:{lat_e7:330000000,lng_e7:1246050000},hi:{lat_e7:386200000,lng_e7:1279600000}},{lo:{lat_e7:345000000,lng_e7:1279600000},hi:{lat_e7:386200000,lng_e7:1286700000}},{lo:{lat_e7:348900000,lng_e7:1286700000},hi:{lat_e7:386200000,lng_e7:1293600000}},{lo:{lat_e7:354690000,lng_e7:1293600000},hi:{lat_e7:386200000,lng_e7:1320034790}}],uris:[
"http://mt0.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
,
"http://mt1.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
,
"http://mt2.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
,
"http://mt3.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
]},{maptype:3,min_zoom:10,rect:[{lo:{lat_e7:329890840,lng_e7:1246055600},hi:{lat_e7:386930130,lng_e7:1284960940}},{lo:{lat_e7:344646740,lng_e7:1284960940},hi:{lat_e7:386930130,lng_e7:1288476560}},{lo:{lat_e7:350277470,lng_e7:1288476560},hi:{lat_e7:386930130,lng_e7:1310531620}},{lo:{lat_e7:370277730,lng_e7:1310531620},hi:{lat_e7:386930130,lng_e7:1320034790}}],uris:[
"http://mt0.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
,
"http://mt1.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
,
"http://mt2.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
,
"http://mt3.gmaptiles.co.kr/mt/v=kr1p.12\x26hl=fr\x26src=api\x26"
]}],jsmain:
"http://maps.gstatic.com/intl/fr_ALL/mapfiles/274a/maps2.api/main.js"
,bcp47_language_code:
"fr"
,obliques_urls:[
"http://khmdb0.google.com/kh?v=31\x26"
,
"http://khmdb1.google.com/kh?v=31\x26"
],token:2516350542,jsmodule_base_url:
"http://maps.gstatic.com/intl/fr_ALL/mapfiles/274a/maps2.api"
,generic_tile_urls:[
"http://mt0.google.com/vt?hl=fr\x26src=api\x26"
,
"http://mt1.google.com/vt?hl=fr\x26src=api\x26"
]};var pageArgs={};apiCallback([
"http://mt0.google.com/vt/lyrs\x3dm@132\x26hl\x3dfr\x26src\x3dapi\x26"
,
"http://mt1.google.com/vt/lyrs\x3dm@132\x26hl\x3dfr\x26src\x3dapi\x26"
],[
"http://khm0.google.com/kh/v\x3d68\x26"
,
"http://khm1.google.com/kh/v\x3d68\x26"
],[
"http://mt0.google.com/vt/lyrs\x3dh@132\x26hl\x3dfr\x26src\x3dapi\x26"
,
"http://mt1.google.com/vt/lyrs\x3dh@132\x26hl\x3dfr\x26src\x3dapi\x26"
],
"ABQIAAAAWLkMtXsEkjl12hz21FuroRS0rCkJDy5MHlT6VCyXCVu_MgMaBRSS0G3_BhVmudeY9kPVuPeaWsKmtA"
,
""
,
""
,true,
"google.maps."
,opts,[
"http://mt0.google.com/vt/lyrs\x3dt@125,r@132\x26hl\x3dfr\x26src\x3dapi\x26"
,
"http://mt1.google.com/vt/lyrs\x3dt@125,r@132\x26hl\x3dfr\x26src\x3dapi\x26"
],jslinker,pageArgs);if (!callee.called){callee.called=true;}}})();function GUnload(){if (window.GUnloadApi){GUnloadApi();}}var _mIsRtl=false;var _mF=[,,,,,20,4096,
"bounds_cippppt.txt"
,
"cities_cippppt.txt"
,
"local/add/flagStreetView"
,true,,400,,,,,,,
"/maps/c/ui/HovercardLauncher/dommanifest.js"
,,,,false,,,,,,,true,,,,,,,,
"http://maps.google.com/maps/stk/fetch"
,0,,true,,,,true,,,,
"http://maps.google.com/maps/stk/style"
,,
"107485602240773805043.00043dadc95ca3874f1fa"
,,,false,1000,,
"http://cbk0.google.com"
,false,,
"ar,iw"
,,,,,,,,,
"http://pagead2.googlesyndication.com/pagead/imgad?id\x3dCMKp3NaV5_mE1AEQEBgQMgieroCd6vHEKA"
,,,,,,false,,,,,
"SS"
,
"en,fr,ja"
,,,,,,,true,,,,,,true,,,,,
""
,
"1"
,,false,false,,true,,,,
"AU,BE,FR,NZ,US"
,,,,true,500,
"http://chart.apis.google.com/chart?cht\x3dqr\x26chs\x3d80x80\x26chld\x3d|0\x26chl\x3d"
,,,,true,,,,,false,,,false,,true,,,true,,,,,,,,10,,true,true,,,,30,
"infowindow_v1"
,
""
,false,true,22,
'http://khm.google.com/vt/lbw/lyrs\x3dm\x26hl\x3dfr\x26'
,
'http://khm.google.com/vt/lbw/lyrs\x3ds\x26hl\x3dfr\x26'
,
'http://khm.google.com/vt/lbw/lyrs\x3dy\x26hl\x3dfr\x26'
,
'http://khm.google.com/vt/lbw/lyrs\x3dp\x26hl\x3dfr\x26'
,,,false,
"US,AU,NZ,FR,DK,MX,BE,CA,DE,GB,IE,PR,PT,RU,SG,JM,HK,TW,MY,TH,AT,CZ,CN,IN,KR"
,,,
"windows-ie,windows-firefox,windows-chrome,macos-safari,macos-firefox,macos-chrome"
,true,false,20000,600,30,,,,,,false,false,,,
"maps.google.com"
,,,,,
""
,true,,,,true,
"4:http://gt%1$d.google.com/mt?v\x3dgwm.fresh\x26"
,
"4:http://gt%1$d.google.com/mt?v\x3dgwh.fresh\x26"
,true,false,,,0.25,,
"107485602240773805043.0004561b22ebdc3750300"
,,,,,false,,,true,,8,,,,,false,
"https://cbks0.google.com"
,,true,,,,,,false,,,,,,,,false,,,true,true,false,,,,true,
"http://mt0.google.com/vt/ft"
,false,,
"http://chart.apis.google.com/chart"
,,,,,,,
'0.25'
,false,,,,,false,,2,160,,,,true,false,,,,,,,45,true,,false,true,true,,,,true,false,false,,false,false,,false,,false,false,,,,,false,,,,,true,,
"DE,CH,LI,AT,BE,PL,NL,HU,GR,HR,CZ,SK,TR,BR,EE,ES,AD,SE,NO,DK,FI,IT,VA,SM,IL,CL,MX,AR,BG,PT"
,false,,
"25"
,true,25,
"Home for sale"
,,false,,true,false,,false,
"4:https://gt%1$d.google.com/mt?v\x3dgwm.fresh\x26"
,
"4:https://gt%1$d.google.com/mt?v\x3dgwh.fresh\x26"
,,,,,
""
,,,false,true,,,,false,
"1.x"
,,false,false,,,,,true,,,,,false,,true,,,24,6,2,,,0,,,,true,true,true,true,,,,false,,,false,,
"/maps/c"
,true,100,1000,100,,2,,,true,true,,false,,false,false,,5,5,,
"windows-firefox,windows-ie,windows-chrome,macos-firefox,macos-safari,macos-chrome"
,true,true,false,false,false,true,,true,false,false,false,true,false,,,false,true,false,true,false,false,true,false,false,false,false,false,
"1"
,false,
''
,true,false,18,false,,600,false,true,false,
"http://www.google.com/maps/photos"
,false ];var _mHost=
"http://maps.google.com"
;var _mUri=
"/maps"
;var _mDomain=
"google.com"
;var _mStaticPath=
"http://maps.gstatic.com/intl/fr_ALL/mapfiles/"
;var _mJavascriptVersion=G_API_VERSION=
"274a"
;var _mTermsUrl=
"http://www.google.com/intl/fr_ALL/help/terms_maps.html"
;var _mLocalSearchUrl=
"http://www.google.com/uds/solutions/localsearch/gmlocalsearch.js"
;var _mUrlLanguageParameter=
"fr"
;var _mHL=
"fr"
;var _mGL=
""
;var _mTrafficEnableApi=true;var _mTrafficTileServerUrls=[
"http://mt0.google.com/mapstt"
,
"http://mt1.google.com/mapstt"
,
"http://mt2.google.com/mapstt"
,
"http://mt3.google.com/mapstt"
];var _mCityblockLatestFlashUrl=
"http://maps.google.com/local_url?q=http://www.adobe.com/shockwave/download/download.cgi%3FP1_Prod_Version%3DShockwaveFlash&amp;dq=&amp;file=api&amp;v=2.x&amp;key=ABQIAAAAWLkMtXsEkjl12hz21FuroRS0rCkJDy5MHlT6VCyXCVu_MgMaBRSS0G3_BhVmudeY9kPVuPeaWsKmtA&amp;hl=fr&amp;s=ANYYN7manSNIV_th6k0SFvGB4jz36is1Gg"
;var _mCityblockFrogLogUsage=false;var _mCityblockInfowindowLogUsage=true;var _mCityblockUseSsl=false;var _mSatelliteToken=
"fzwq1Nk283FR6qNsKw5D7bwJ6tRGLca1htq0vA"
;var _mMapCopy=
"Données cartographiques \x26#169;2010"
;var _mSatelliteCopy=
"Imagerie \x26#169;2010"
;var _mGoogleCopy=
"\x26#169;2010 Google"
;var _mPreferMetric=false;var _mDirectionsEnableApi=true;var _mLayersTileBaseUrls=[
'http://mt0.google.com/mapslt'
,
'http://mt1.google.com/mapslt'
,
'http://mt2.google.com/mapslt'
,
'http://mt3.google.com/mapslt'
];var _mLayersFeaturesBaseUrl=
"http://mt0.google.com/mapslt/ft"
;function GLoadMapsScript(){if (!GLoadMapsScript.called&&GBrowserIsCompatible()){GLoadMapsScript.called=true;GScript(
"http://maps.gstatic.com/intl/fr_ALL/mapfiles/274a/maps2.api/main.js"
);}}(function(){if (!window.google) window.google={};if (!window.google.maps) window.google.maps={};var ns=window.google.maps;ns.BrowserIsCompatible=GBrowserIsCompatible;ns.Unload=GUnload;})();GLoadMapsScript();
//array para gadar os marcadores
var marcadores = [];
//array para gardar o html contido das xanelas de cada marcador
var contidosHTML = [];
//array para gardar as URL dos sonidos que se reproduciran en cada xanela
var URLsons = [];

function getNodeText(node){
	return node.text || node.firstChild ? node.firstChild.nodeValue : "";
}

//GL recoller a id da URL do artigo
//ENG get id from the article'URL
//FR recuperer l'id de l'article dans l'URL
function extraerID(url){
	var posicion = url.indexOf("article");
	if (posicion != -1) {
		url = url.substring(posicion + 7);
		posicion = url.indexOf ("&");
		if (posicion != -1) {
			url = url.substring(0,posicion);
		}
	//se non e un artigo de spip que lle dean
	} else {
		url = url.substring(url.length - 4);
	}
	return url;
}

function coordenadas (articulo){
	$.ajax({
		type: "POST",
		url: "'.generer_url_public('cambiar_coordenadas').'",
		data: "id_article="+articulo+"&lat="+document.forms.formulaire_coordenadas.lat.value+"&lonx="+document.forms.formulaire_coordenadas.lonx.value,
		success: function() {
		}
	});
}

function creaMarcador(point, html, icon, son, idmap) {
	//creamos un obxecto GMarker e o gradamos nunha variable
	var marcador = new GMarker(point, icon);
	//engadimos un evento para que ao pulsar no marcador se abra a ventana co html indicado
	var map = eval('map'+idmap);
	GEvent.addListener(marcador, "click", function() {
		marcador.openInfoWindowHtml(html);
		//cando se abre a ventana do marcador executamos as seguintes intsruccions
		GEvent.addListener(map,"infowindowopen", function() {
			if(son){
				//esta parte del codigo enbebe un obxecto flah na ventana creado con flashobject.js
				var fo = new FlashObject(URLbaseGis + "/img_pack/musicplayer.swf?autoplay=true&song_url="+son, "player_x", "17", "17", "6", "#FFFFFF");
				fo.write("player");
			}
		});
	});		
	return marcador;
}

function agregarMarcador (xmlItem, idmap, minZoom, maxZoom) {
	//almacenamos en distintas variables la informacion contenida nen los chilNodes de cada item-marcador do xml
	var xmlLat = $("geo_lat",xmlItem);
	var xmlLng = $("geo_long",xmlItem);
	var xmlSon = $("enclosure",xmlItem);
	var marker = eval('markerManager'+idmap);
	if ((xmlLat.length == 0) || (xmlLng.length == 0)) return;
	else {
		var lat = parseFloat(xmlLat.text());
		var lng = parseFloat(xmlLng.text());
		var id = extraerID($("link",xmlItem).text());
		var html = $("description",xmlItem).text();
		var icon = $("geo_icon",xmlItem).text();
		var son;
		if (xmlSon.length != 0) son = xmlSon.attr("url");
   	
		//creamos un Gpoint para situar nel o marcador
		var point = new GPoint(lng,lat);
		
		//creamos un icono para o marcador
		var icono_categoria = new GIcon();
		icono_categoria.image = (icon != "" ? icon : URLbase + "/img_pack/correxir.png");
		icono_categoria.shadow = URLbase + "/img_pack/shadow.png";
		icono_categoria.iconSize = new GSize(26, 34);
		icono_categoria.shadowSize = new GSize(37, 34);	
		icono_categoria.iconAnchor = new GPoint(10, 34);
		icono_categoria.infoWindowAnchor = new GPoint(5, 1);
			
		// creamos el marcador con los datos almacenados en las variables
		var marcador = creaMarcador(point, html, icono_categoria, son, idmap);
		// recollemos a informacion que sexa necesaria en distintos arrays, usando como identificador a id do artigo
		marcadores["id_"+id] = marcador;
		contidosHTML["id_"+id] = html;
		URLsons["id_"+id] = son;
		//engadimos o marcador ao markerManager antes "map.addOverlay(marker);"
		if (maxZoom) {
			if(marker){
				marker.addMarker(marcador, minZoom,  maxZoom);
			}
			else{
				markerManager.addMarker(marcador, minZoom,  maxZoom);
			}
		} else if (marker){
			eval(marker).addMarker(marcador, minZoom);
		}
	}	
}

function abrirVentana(identificador, idmap) {
	var map = eval('map'+ idmap);
	map.closeInfoWindow();
	GEvent.addListener(marcadores["id_"+identificador], "infowindowopen", function() {
		if(URLsons["id_"+identificador]){
			//esta parte del codigo enbebe un obxecto flah na ventana creado con flashobject.js
			var fo = new FlashObject( URLbaseGis + "/img_pack/musicplayer.swf?autoplay=true&song_url=" + URLsons["id_"+identificador], "player_x", "17", "17", "6", "#FFFFFF");
			fo.write("player");
		}
	});
	marcadores["id_"+identificador].openInfoWindowHtml(contidosHTML["id_"+identificador]);
}
