 

	 
		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/193c/maps2/main.js"},{id:"maps2.api",url:"http://maps.gstatic.com/intl/fr_ALL/mapfiles/193c/maps2.api/main.js"},{id:"gc",url:"http://maps.gstatic.com/intl/fr_ALL/mapfiles/193c/gc.js"},{id:"suggest",url:"http://maps.gstatic.com/intl/fr_ALL/mapfiles/193c/suggest/main.js"},{id:"pphov",url:"http://maps.gstatic.com/intl/fr_ALL/mapfiles/193c/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/193c/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:585895818,jsmodule_base_url:"http://maps.gstatic.com/intl/fr_ALL/mapfiles/193c/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"],"ABQIAAAAQglHJUdfd9mIuIXloNg-PBQlbxnTdyzV1tOUSpuKdOaLowhiChQIjI4KUQqD0991pmV--jEMRETVhQ","","",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 = "193c";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.s&amp;key=ABQIAAAAQglHJUdfd9mIuIXloNg-PBQlbxnTdyzV1tOUSpuKdOaLowhiChQIjI4KUQqD0991pmV--jEMRETVhQ&amp;hl=fr&amp;s=ANYYN7manSNIV_th6k0SFvGB4jz36is1Gg";var _mCityblockFrogLogUsage = false;var _mCityblockInfowindowLogUsage = false;var _mCityblockUseSsl = false;var _mSatelliteToken = "fzwq2rQ7VNXs47UTHLec-pAHbUkJSzXxZ8POig";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/193c/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 = [];

// -----------------------------------------------------------
// MODIF VI
// INITIALISATION tableauMarqueurs POUR TRAITEMENT DES CATEGORIES
// -----------------------------------------------------------
var tableauMarqueurs = [];
// -----------------------------------------------------------


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
// cette fonction n'est plus utilisee depuis qu'on colle l'id dans le guid du RSS
// on la garde en reserve au cas ou...
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() {
		}
	});
}

// -----------------------------------------------------------
// MODIF VI 
// AJOTU DU PARAMETRE id_point ET id_category
// -----------------------------------------------------------
function creaMarcador(point, html, icon, id_point, id_category, title, son, idmap) {
//function creaMarcador(point, html, icon, son, idmap) {
// -----------------------------------------------------------
	//creamos un obxecto GMarker e o gradamos nunha variable
	var marcador = new GMarker(point,{icon:icon,title:title});
	//var marcador = new GMarker(point, icon);
// -----------------------------------------------------------
// MODIF VI => A FAIRE
// DEFINITION DE L'ID ET DE LA CATEGORY DU MARQUEUR
// -----------------------------------------------------------
	marcador.marqueurCategorie = id_category;
//	marcador.marqueurId = id_point;
// -----------------------------------------------------------

//engadimos un evento para que ao pulsar no marcador se abra a ventana co html indicado
	var map = eval('map'+idmap);

// -----------------------------------------------------------
// MODIF VI 
// AFFICHAGE D'UNE FENETRE QUE SI NON VIDE
// -----------------------------------------------------------
	if (html) {
// -----------------------------------------------------------

GEvent.addListener(marcador, "click", function() {
		marcador.openInfoWindowHtml(html);
		//cando se abre a ventana do marcador executamos as seguintes intsruccions
		GEvent.addListener(marcador,"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");
			}
		});
	});	

// -----------------------------------------------------------
// MODIF VI 
// FIN AFFICHAGE D'UNE FENETRE QUE SI NON VIDE
// -----------------------------------------------------------
	}
// -----------------------------------------------------------


// -----------------------------------------------------------
// MODIF VI => A FAIRE
// ENREGISTREMENT DU MARQUEUR
// -----------------------------------------------------------
//	tableauMarqueurs.push(marcador);
	tableauMarqueurs[id_point] = marcador;

// -----------------------------------------------------------

	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 id = $("guid",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 = parseInt(id.text());
// -----------------------------------------------------------
// MODIF VI => 
// SI DESCRIOPTION VIDE => HTML VIDE
// -----------------------------------------------------------
		var description=$("description",xmlItem).text();
		if (description.length == 0) {
			var html = "";
		} else {
			var html = "<div id='window_" + id +"' class='window_content'>" + description + "</div>";
		}
//		var html = "<div id='window_" + id +"' class='window_content'><div id='player'></div>" + $("description",xmlItem).text() + "</div>";
//		var html = "<div id='window_" + id +"' class='window_content'><div id='player'></div><h3><a href='" + $("guid",xmlItem).text() + "'>" + $("title",xmlItem).text() + "</a></span></h3>" + $("description",xmlItem).text() + "</div>";

// -----------------------------------------------------------
// FIN MODIF VI => 
// SI DESCRIOPTION VIDE => HTML VIDE
// -----------------------------------------------------------

		var icon = $("geo_icon",xmlItem).text();

// -----------------------------------------------------------
// MODIF VI => A FAIRE
// RECUPERA>TION DE l'ID ET DE LA CATEGORY ET DU TITLE DU XML
// -----------------------------------------------------------
		var id_category = $("id_category",xmlItem).text();
		id_category = id_category.replace(/^\s+/g,'').replace(/\s+$/g,'')

		var id_point=$("id",xmlItem).text();
		var title=$("title",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 : MarkerImgBase);
		icono_categoria.shadow = URLbase + "img_pack/shadow.png";
		icono_categoria.iconSize = new GSize(MarkerBaseWidth, MarkerBaseHeight);
		icono_categoria.shadowSize = new GSize(37, 34);	
		icono_categoria.iconAnchor = new GPoint((MarkerBaseWidth/2), MarkerBaseHeight);
		icono_categoria.infoWindowAnchor = new GPoint(5, 1);
			
		// creamos el marcador con los datos almacenados en las variables

// -----------------------------------------------------------
// MODIF VI => A FAIRE
// AJOUT DE L'ID ET LA CATEGORY ET DU TITLE A L'APPEL DE LA CREATION DE MARQUER
// -----------------------------------------------------------
		var marcador = creaMarcador(point, html, icono_categoria,id_point,id_category,title, son, idmap);
//		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);"

// -----------------------------------------------------------
// MODIF VI => A FAIRE
// SI CATEGORY, ON PASSE PAR UN ADDOVERLAY
// -----------------------------------------------------------
		if (maxZoom && !id_category) {
//		if (maxZoom) {
// -----------------------------------------------------------

			
			if(marker){
				marker.addMarker(marcador, minZoom,  maxZoom);
			}
			else{
				markerManager.addMarker(marcador, minZoom,  maxZoom);
			}
		} else if (marker){

// -----------------------------------------------------------
// MODIF VI 
// SI CATEGORY, ON PASSE PAR UN ADDOVERLAY
// -----------------------------------------------------------
			eval('map'+idmap).addOverlay(marcador);
//			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]);
}


// -----------------------------------------------------------
// MODIF VI 
// ACTIVATION ET DESASTIVATION DES CATEGORIES
// -----------------------------------------------------------
/* Fonction afficheCategorie() */
/* categorie : catégorie d'appartenance du marqueur */
/* Cette fonction permet d'afficher tous les marqueurs appartenant à la catégorie "categorie" */
function afficheCategorie(id_category) {
	/* Création d'une boucle sur tous les marqueurs contenus dans le tableau nommé "tableauMarqueurs" */
	for (Id_point in tableauMarqueurs) {
		/* Si la catégorie du marqueur "tableauMarqueurs[i]" est égale à la catégorie recherchée */
		if (tableauMarqueurs[Id_point].marqueurCategorie == id_category) {
		/* Affichage le marqueur "tableauMarqueurs[i]" sur la carte */
		tableauMarqueurs[Id_point].show();
		}
	}
	/* la balise <div> ayant pour identifiant "listeSelection"+categorie est affichée */
//	document.getElementById("listeSelection"+id_category).style.display = "";
//	show_couche(id_category,'','images/',0);
	/* La case à cocher ayant pour identifiant "case"+categorie est cochée */
	document.getElementById("case"+id_category).checked = true;
	map1.closeInfoWindow();
}


/* Fonction masqueCategorie() */
/* categorie : catégorie d'appartenance du marqueur */
/* Cette fonction permet de masquer tous les marqueurs appartenant à la catégorie "categorie" */
function masqueCategorie(id_category) {
/* Création d'une boucle sur tous les marqueurs contenus dans le tableau nommé "tableauMarqueurs" */
	for (Id_point in tableauMarqueurs) {
	/* Si la catégorie du marqueur "tableauMarqueurs[i]" est égale à la catégorie recherchée */
	if (tableauMarqueurs[Id_point].marqueurCategorie == id_category) {
		/* Masque le marqueur "tableauMarqueurs[i]" sur la carte */
		tableauMarqueurs[Id_point].hide();
		}
	}
	/* la balise <div> ayant pour identifiant "listeSelection"+categorie est masquée */
//	document.getElementById("listeSelection"+id_category).style.display = "none";
//	hide_couche(id_category,'','images/',0);
			  /* La case à cocher ayant pour identifiant "case"+categorie est décochée */
	document.getElementById("case"+id_category).checked = false;
	/* Fermeture de toutes les info-bulles situées sur la carte nommée "maCarte" */
	map1.closeInfoWindow();
}

/* Fonction masqueAll() */
function masqueAll(sauf_id_point) {
/* Création d'une boucle sur tous les marqueurs contenus dans le tableau nommé "tableauMarqueurs" */
	for (Id_point in tableauMarqueurs) {
		var id_category=tableauMarqueurs[Id_point].marqueurCategorie;
		/* Si la catégorie case cocher du marqueur "tableauMarqueurs[i]" n'estpas cochée */
		if (document.getElementById("case"+id_category).checked == false && sauf_id_point!=Id_point) {
			/* Masque le marqueur "tableauMarqueurs[i]" sur la carte */
			tableauMarqueurs[Id_point].hide();
			}
	}
	/* Fermeture de toutes les info-bulles situées sur la carte nommée "maCarte" */
}


/* Fonction clickCaseACocher() */
function clickCaseACocher(caseClick, id_category) {
	/* Si "caseClick" est cochée */
	map1.closeInfoWindow();
	if (caseClick.checked) {
		/* Appel de la fonction afficheCategorie() en lui transmettant entre parenthèses la catégorie à afficher */
		afficheCategorie(id_category);
	} else {
		/* Sinon, appel de la fonction masqueCategorie() en lui transmettant entre parenthèses la catégorie à masquer */
		masqueCategorie(id_category);
	}
	map1.closeInfoWindow();
	masqueAll();
}
 
/* Fonction clickLienListe() */
/* i : index du marqueur dans le tableau tableauMarqueurs[i] */
function clickLienListe(Id_point) {

/* Déclenche un "click" sur le marqueur "tableauMarqueurs[i]" */
	map1.closeInfoWindow();
	tableauMarqueurs[Id_point].show();
	GEvent.trigger(tableauMarqueurs[Id_point],"click");
	masqueAll(Id_point);
}
