PageSourceSearch

https://www.canaryhouse.es/js/funciones.js?x=20260923180655

js canaryhouse.es collected 2026-09-27 13:51:16 UTC 122,027 bytes, 2,886 lines download raw bytes

1var borrar;
2var letraFoto=obtenerLetraFoto();
3
4/*$idiomas = array(
5"1" => "castellano",
6"2" => "inglés",
7"3" => "alemán",
8"4" => "francés",
9"5" => "holandes",
10"6" => "noruego",
11"7" => "ruso",
12"8" => "portugues",
13"9" => "sueco",
14"10" => "finlandes",
15"11" => "chino",
16"12" => "catalan",
17"15" => "italiano",
18"16" => "vasco",
19"17" => "polaco",
20"19" => "danes"
21"22" => "lituano"
22"24" => "Ucraniano"
23"25" => "búlgaro"
24);
25*/
26var cookies_idiomas_plugin = {
27    "_ga": {
28        1: {
29            titulo : "_ga",
30            tipo : "Cookies analíticas",
31            descripcion : "Utilizada para distinguir a los usuarios.",
32            duracion : "2 años",
33            idlabel : "cookies_accepted_google5",
34            aceptar : ""
35        },
36        2: {
37            titulo : "_ga",
38            tipo : "Analytical cookies",
39            descripcion : "Used to distinguish users.",
40            duracion : "2 years",
41            idlabel : "cookies_accepted_google5",
42            aceptar : ""
43        },
44        3: {
45            titulo : "_ga",
46            tipo : "Analytische Cookies",
47            descripcion : "Wird zur Unterscheidung von Benutzern verwendet.",
48            duracion : "2 Jahre",
49            idlabel : "cookies_accepted_google5",
50            aceptar : ""
51        },
52        4: {
53            titulo : "_ga",
54            tipo : "Cookies analytiques",
55            descripcion : "Utilisé pour distinguer les utilisateurs.",
56            duracion : "2 ans",
57            idlabel : "cookies_accepted_google5",
58            aceptar : ""
59        },
60        5: {
61            titulo : "_ga",
62            tipo : "Analytische cookies",
63            descripcion : "Wordt gebruikt om gebruikers te onderscheiden.",
64            duracion : "2 jaar",
65            idlabel : "cookies_accepted_google5",
66            aceptar : ""
67        },
68        6: {
69            titulo : "_ga",
70            tipo : "Analytiske informasjonskapsler",
71            descripcion : "Brukes til å skille brukere.",
72            duracion : "2 år",
73            idlabel : "cookies_accepted_google5",
74            aceptar : ""
75        },
76        7: {
77            titulo : "_ga",
78            tipo : "Аналитические куки",
79            descripcion : "???????????? ??? ?????????? ?????????????.",
80            duracion : "2 ????",
81            idlabel : "cookies_accepted_google5",
82            aceptar : ""
83        },
84        8: {
85            titulo : "_ga",
86            tipo : "Cookies Analíticos",
87            descripcion : "Usado para distinguir usuários.",
88            duracion : "2 anos",
89            idlabel : "cookies_accepted_google5",
90            aceptar : ""
91        },
92        9: {
93            titulo : "_ga",
94            tipo : "Analytiska kakor",
95            descripcion : "Används för att särskilja användare.",
96            duracion : "2 år",
97            idlabel : "cookies_accepted_google5",
98            aceptar : ""
99        },
100        10: {
101            titulo : "_ga",
102            tipo : "Analyyttiset evästeet",
103            descripcion : "Käytetään käyttäjien erottamiseen.",
104            duracion : "2 vuotta",
105            idlabel : "cookies_accepted_google5",
106            aceptar : ""
107        },
108        11: {
109            titulo : "_ga",
110            tipo : "分析性Cookie",
111            descripcion : "用於指定分配給AWS Load Balancer服務的服務器。除非在技術上不可能,否則請嘗試確保響應Web會話請求的服務器始終相同。",
112            duracion : "7天",
113            idlabel : "cookies_accepted_google5",
114            aceptar : ""
115        },
116        12: {
117            titulo : "_ga",
118            tipo : "Cookies analítiques",
119            descripcion : "Utilitzada per distingir els usuaris.",
120            duracion : "2 anys",
121            idlabel : "cookies_accepted_google5",
122            aceptar : ""
123        },
124        15: {
125            titulo : "_ga",
126            tipo : "Cookie analitici",
127            descripcion : "Utilizzato per distinguere gli utenti.",
128            duracion : "2 anni",
129            idlabel : "cookies_accepted_google5",
130            aceptar : ""
131        },
132        16: {
133            titulo : "_ga",
134            tipo : "Cookie analitikoak",
135            descripcion : "Erabiltzaileak bereizteko erabiltzen da.",
136            duracion : "2 urte",
137            idlabel : "cookies_accepted_google5",
138            aceptar : ""
139        },
140        17: {
141            titulo : "_ga",
142            tipo : "Analityczne pliki cookie",
143            descripcion : "Służy do rozróżniania użytkowników.",
144            duracion : "2 lata",
145            idlabel : "cookies_accepted_google5",
146            aceptar : ""
147        },
148        18: {
149            titulo : "_ga",
150            tipo : "Cookies analíticas",
151            descripcion : "Utilizada para distinguir a los usuarios.",
152            duracion : "2 años",
153            idlabel : "cookies_accepted_google5",
154            aceptar : ""
155        },
156        19: {
157            titulo : "_ga",
158            tipo : "Analytiske cookies",
159            descripcion : "Bruges til at skelne brugere.",
160            duracion : "2 år",
161            idlabel : "cookies_accepted_google5",
162            aceptar : ""
163        },
164        22: {
165            titulo : "_ga",
166            tipo : "Analitiniai slapukai",
167            descripcion : "Naudojamas vartotojams atskirti.",
168            duracion : "2 metai",
169            idlabel : "cookies_accepted_google5",
170            aceptar : ""
171        },
172        24: {
173            titulo: "_ga",
174            tipo: "Аналітичні файли cookie",
175            descripcion: "Використовується для розпізнавання користувачів.",
176            duracion: "2 роки",
177            idlabel: "cookies_accepted_google5",
178            aceptar: ""
179        },
180        25: {
181            titulo: "_ga",
182            tipo: "Аналитични бисквитки",
183            descripcion: "Използва се за разграничаване на потребителите.",
184            duracion: "2 години",
185            idlabel: "cookies_accepted_google5",
186            aceptar: ""
187        }
188    },
189    "_gid" : {
190        1: {
191            titulo : "_gid",
192            tipo : "Cookies analíticas",
193            descripcion : "Utilizada para distinguir a los usuarios.",
194            duracion : "24 horas",
195            idlabel : "cookies_accepted_google5",
196            aceptar : ""
197        },
198        2: {
199            titulo : "_gid",
200            tipo : "Analytical cookies",
201            descripcion : "Used to distinguish users.",
202            duracion : "24 hours",
203            idlabel : "cookies_accepted_google5",
204            aceptar : ""
205        },
206        3: {
207            titulo : "_gid",
208            tipo : "Analytische Cookies",
209            descripcion : "Wird zur Unterscheidung von Benutzern verwendet.",
210            duracion : "24 Stunden",
211            idlabel : "cookies_accepted_google5",
212            aceptar : ""
213        },
214        4: {
215            titulo : "_gid",
216            tipo : "Cookies analytiques",
217            descripcion : "Utilisé pour distinguer les utilisateurs.",
218            duracion : "24 heures",
219            idlabel : "cookies_accepted_google5",
220            aceptar : ""
221        },
222        5: {
223            titulo : "_gid",
224            tipo : "Analytische cookies",
225            descripcion : "Wordt gebruikt om gebruikers te onderscheiden.",
226            duracion : "24 uur",
227            idlabel : "cookies_accepted_google5",
228            aceptar : ""
229        },
230        6: {
231            titulo : "_gid",
232            tipo : "Analytiske informasjonskapsler",
233            descripcion : "Brukes til å skille brukere.",
234            duracion : "24 timer",
235            idlabel : "cookies_accepted_google5",
236            aceptar : ""
237        },
238        7: {
239            titulo : "_gid",
240            tipo : "Аналитические куки",
241            descripcion : "Используется для различения пользователей.",
242            duracion : "24 часа",
243            idlabel : "cookies_accepted_google5",
244            aceptar : ""
245        },
246        8: {
247            titulo : "_gid",
248            tipo : "Cookies Analíticos",
249            descripcion : "Usado para distinguir usuários.",
250            duracion : "24 horas",
251            idlabel : "cookies_accepted_google5",
252            aceptar : ""
253        },
254        9: {
255            titulo : "_gid",
256            tipo : "Analytiska kakor",
257            descripcion : "Används för att särskilja användare.",
258            duracion : "24 timmar",
259            idlabel : "cookies_accepted_google5",
260            aceptar : ""
261        },
262        10: {
263            titulo : "_gid",
264            tipo : "Analyyttiset evästeet",
265            descripcion : "Käytetään käyttäjien erottamiseen.",
266            duracion : "24 tuntia",
267            idlabel : "cookies_accepted_google5",
268            aceptar : ""
269        },
270        11: {
271            titulo : "_gid",
272            tipo : "分析性Cookie",
273            descripcion : "用於區分用戶。",
274            duracion : "24小時",
275            idlabel : "cookies_accepted_google5",
276            aceptar : ""
277        },
278        12: {
279            titulo : "_gid",
280            tipo : "Cookies analítiques",
281            descripcion : "Utilitzada per distingir els usuaris.",
282            duracion : "24 hores",
283            idlabel : "cookies_accepted_google5",
284            aceptar : ""
285        },
286        15: {
287            titulo : "_gid",
288            tipo : "Cookie analitici",
289            descripcion : "Utilizzato per distinguere gli utenti.",
290            duracion : "24 ore",
291            idlabel : "cookies_accepted_google5",
292            aceptar : ""
293        },
294        16: {
295            titulo : "_gid",
296            tipo : "Cookie analitikoak",
297            descripcion : "Erabiltzaileak bereizteko erabiltzen da.",
298            duracion : "24 ordu",
299            idlabel : "cookies_accepted_google5",
300            aceptar : ""
301        },
302        17: {
303            titulo : "_gid",
304            tipo : "Analityczne pliki cookie",
305            descripcion : "Służy do rozróżniania użytkowników.",
306            duracion : "24 godziny",
307            idlabel : "cookies_accepted_google5",
308            aceptar : ""
309        },
310        18: {
311            titulo : "_gid",
312            tipo : "Cookies analíticas",
313            descripcion : "Utilizada para distinguir a los usuarios.",
314            duracion : "24 horas",
315            idlabel : "cookies_accepted_google5",
316            aceptar : ""
317        },
318        19: {
319            titulo : "_gid",
320            tipo : "Analytiske cookies",
321            descripcion : "Bruges til at skelne brugere.",
322            duracion : "24 timer",
323            idlabel : "cookies_accepted_google5",
324            aceptar : ""
325        },
326        22: {
327            titulo : "_gid",
328            tipo : "Analitiniai slapukai",
329            descripcion : "Naudojamas vartotojams atskirti.",
330            duracion : "24 valandos",
331            idlabel : "cookies_accepted_google5",
332            aceptar : ""
333        },
334        24: {
335            titulo: "_gid",
336            tipo: "Аналітичні файли cookie",
337            descripcion: "Використовується для розпізнавання користувачів.",
338            duracion: "24 години",
339            idlabel: "cookies_accepted_google5",
340            aceptar: ""
341        },
342        25: {
343            titulo: "_gid",
344            tipo: "Аналитични бисквитки",
345            descripcion: "Използва се за разграничаване на потребителите.",
346            duracion: "24 часа",
347            idlabel: "cookies_accepted_google5",
348            aceptar: ""
349        }
350
351    },
352    "_gat" : {
353        1: {
354            titulo : "_gat",
355            tipo : "Cookies analíticas",
356            descripcion : "Utilizada para limitar el porcentaje de solicitudes. Si se ha añadido Google Analytics con Google Tag Manager, esta cookie se llamará: _dc_gtm_[property-id].",
357            duracion : "1 minuto",
358            idlabel : "cookies_accepted_google5",
359            aceptar : ""
360        },
361        2: {
362            titulo : "_gat",
363            tipo : "Analytical cookies",
364            descripcion : "Used to limit the percentage of requests. If Google Analytics has been added with Google Tag Manager, this cookie will be called: _dc_gtm_ [property-id].",
365            duracion : "1 minute",
366            idlabel : "cookies_accepted_google5",
367            aceptar : ""
368        },
369        3: {
370            titulo : "_gat",
371            tipo : "Analytische Cookies",
372            descripcion : "Wird verwendet, um den Prozentsatz der Anforderungen zu begrenzen. Wenn Google Analytics mit Google Tag Manager hinzugefügt wurde, heißt dieses Cookie: _dc_gtm_ [Eigenschafts-ID].",
373            duracion : "1 Minute",
374            idlabel : "cookies_accepted_google5",
375            aceptar : ""
376        },
377        4: {
378            titulo : "_gat",
379            tipo : "Cookies analytiques",
380            descripcion : "Utilisé pour limiter le pourcentage de demandes. Si Google Analytics a été ajouté avec Google Tag Manager, ce cookie sera appelé: _dc_gtm_ [property-id].",
381            duracion : "1 minute",
382            idlabel : "cookies_accepted_google5",
383            aceptar : ""
384        },
385        5: {
386            titulo : "_gat",
387            tipo : "Analytische cookies",
388            descripcion : "Wordt gebruikt om het percentage verzoeken te beperken. Als Google Analytics is toegevoegd met Google Tag Manager, wordt deze cookie genoemd: _dc_gtm_ [property-id].",
389            duracion : "1 minuut",
390            idlabel : "cookies_accepted_google5",
391            aceptar : ""
392        },
393        6: {
394            titulo : "_gat",
395            tipo : "Analytiske informasjonskapsler",
396            descripcion : "Brukes til å begrense prosentandelen av forespørsler. Hvis Google Analytics er lagt til med Google Tag Manager, vil denne informasjonskapselen hete: _dc_gtm_ [property-id].",
397            duracion : "1 minutt",
398            idlabel : "cookies_accepted_google5",
399            aceptar : ""
400        },
401        7: {
402            titulo : "_gat",
403            tipo : "Аналитические куки",
404            descripcion : "Используется для ограничения процента запросов. Если Google Analytics был добавлен с помощью Диспетчера тегов Google, этот файл cookie будет наз
404ываться: _dc_gtm_ [property-id].",
405            duracion : "1 минута",
406            idlabel : "cookies_accepted_google5",
407            aceptar : ""
408        },
409        8: {
410            titulo : "_gat",
411            tipo : "Cookies Analíticos",
412            descripcion : "Usado para limitar a porcentagem de solicitações. Se o Google Analytics foi adicionado ao Gerenciador de tags do Google, este cookie será chamado de: _dc_gtm_ [id da propriedade].",
413            duracion : "2 años",
414            idlabel : "cookies_accepted_google5",
415            aceptar : ""
416        },
417        9: {
418            titulo : "_gat",
419            tipo : "Analytiska kakor",
420            descripcion : "Används för att begränsa andelen förfrågningar. Om Google Analytics har lagts till med Google Tag Manager kommer denna cookie att kallas: _dc_gtm_ [property-id].",
421            duracion : "1 minut",
422            idlabel : "cookies_accepted_google5",
423            aceptar : ""
424        },
425        10: {
426            titulo : "_gat",
427            tipo : "Analyyttiset evästeet",
428            descripcion : "Käytetään pyyntöjen prosenttiosuuden rajoittamiseen. Jos Google Analytics on lisätty Google Tag Managerin kanssa, tämän evästeen nimi on _dc_gtm_ [property-id].",
429            duracion : "1 minuutti",
430            idlabel : "cookies_accepted_google5",
431            aceptar : ""
432        },
433        11: {
434            titulo : "_gat",
435            tipo : "分析性Cookie",
436            descripcion : "用於限制請求的百分比。如果已將Google Analytics(分析)與Google跟踪代碼管理器一起添加,則此Cookie的名稱為:_dc_gtm_ [property-id]。",
437            duracion : "1分鐘",
438            idlabel : "cookies_accepted_google5",
439            aceptar : ""
440        },
441        12: {
442            titulo : "_gat",
443            tipo : "Cookies analítiques",
444            descripcion : "Utilitzada per limitar el percentatge de sol·licituds. Si s'ha afegit Google Analytics amb Google Tag Manager, aquesta galeta es dirà: _dc_gtm_ [property-id].",
445            duracion : "1 minut",
446            idlabel : "cookies_accepted_google5",
447            aceptar : ""
448        },
449        15: {
450            titulo : "_gat",
451            tipo : "Cookie analitici",
452            descripcion : "Utilizzato per limitare la percentuale di richieste. Se Google Analytics è stato aggiunto con Google Tag Manager, questo cookie verrà chiamato: _dc_gtm_ [property-id].",
453            duracion : "1 minuto",
454            idlabel : "cookies_accepted_google5",
455            aceptar : ""
456        },
457        16: {
458            titulo : "_gat",
459            tipo : "Cookie analitikoak",
460            descripcion : "Eskaeren ehunekoa mugatzeko erabiltzen da. Google Analytics Google Tag Manager-ekin gehitu bada, cookie honi deituko zaio: _dc_gtm_ [jabetza-id].",
461            duracion : "Minutu 1",
462            idlabel : "cookies_accepted_google5",
463            aceptar : ""
464        },
465        17: {
466            titulo : "_gat",
467            tipo : "Analityczne pliki cookie",
468            descripcion : "Służy do ograniczania odsetka żądań. Jeśli Google Analytics został dodany z Google Tag Manager, ten plik cookie będzie miał nazwę: _dc_gtm_ [property-id].",
469            duracion : "1 minuta",
470            idlabel : "cookies_accepted_google5",
471            aceptar : ""
472        },
473        18: {
474            titulo : "_gat",
475            tipo : "Cookies analíticas",
476            descripcion : "Utilizada para limitar el porcentaje de solicitudes. Si se ha añadido Google Analytics con Google Tag Manager, esta cookie se llamará: _dc_gtm_[property-id].",
477            duracion : "1 minuto",
478            idlabel : "cookies_accepted_google5",
479            aceptar : ""
480        },
481        19: {
482            titulo : "_gat",
483            tipo : "Analytiske cookies",
484            descripcion : "Bruges til at begrænse procentdelen af anmodninger. Hvis Google Analytics er blevet tilføjet med Google Tag Manager, kaldes denne cookie: _dc_gtm_[property-id].",
485            duracion : "1 minut",
486            idlabel : "cookies_accepted_google5",
487            aceptar : ""
488        },
489        22: {
490            titulo : "_gat",
491            tipo : "Analitiniai slapukai",
492            descripcion : "Naudojamas apriboti užklausų procentą. Jei „Google Analytics“ buvo pridėta prie „Google“ žymų tvarkyklės, šis slapukas bus vadinamas: _dc_gtm_[ypatybės ID].",
493            duracion : "1 minutę",
494            idlabel : "cookies_accepted_google5",
495            aceptar : ""
496        },
497        24: {
498            titulo: "_gat",
499            tipo: "Аналітичні файли cookie",
500            descripcion: "Використовується для обмеження відсотка запитів. Якщо Google Analytics додано через Google Tag Manager, цей файл cookie називатиметься: _dc_gtm_[property-id].",
501            duracion: "1 хвилина",
502            idlabel: "cookies_accepted_google5",
503            aceptar: ""
504        },
505        25: {
506            titulo: "_gat",
507            tipo: "Аналитични бисквитки",
508            descripcion: "Използва се за ограничаване на процента на заявките. Ако Google Analytics е добавен чрез Google Tag Manager, тази бисквитка ще се нарича: _dc_gtm_[property-id].",
509            duracion: "1 минута",
510            idlabel: "cookies_accepted_google5",
511            aceptar: ""
512        }
513    },
514    "AMP_TOKEN" : {
515        1: {
516            titulo : "AMP_TOKEN",
517            tipo : "Cookies analíticas",
518            descripcion : "Añade un token que se utiliza para recuperar una ID de cliente del servicio de IDs de cliente de AMP. Puede incluir también inhabilitaciones, solicitudes en curso o errores obtenidos al recuperar una ID del servicio de IDs de cliente de AMP.",
519            duracion : "De 30 segundos a 1 año",
520            idlabel : "cookies_accepted_google5",
521            aceptar : ""
522        },
523        2: {
524            titulo : "AMP_TOKEN",
525            tipo : "Analytical cookies",
526            descripcion : "Adds a token that is used to retrieve a client ID from the AMP Client IDs service. It can also include disables, requests in progress, or errors obtained when retrieving an ID from the AMP Client IDs service.",
527            duracion : "30 seconds to 1 year",
528            idlabel : "cookies_accepted_google5",
529            aceptar : ""
530        },
531        3: {
532            titulo : "AMP_TOKEN",
533            tipo : "Analytische Cookies",
534            descripcion : "Fügt ein Token hinzu, mit dem eine Client-ID vom AMP-Client-ID-Dienst abgerufen wird. Es kann auch Deaktivierungen, laufende Anforderungen oder Fehler enthalten, die beim Abrufen einer ID vom AMP Client IDs-Dienst auftreten.",
535            duracion : "30 Sekunden bis 1 Jahr",
536            idlabel : "cookies_accepted_google5",
537            aceptar : ""
538        },
539        4: {
540            titulo : "AMP_TOKEN",
541            tipo : "Cookies analytiques",
542            descripcion : "Ajoute un jeton utilisé pour récupérer un ID client à partir du service AMP Client IDs. Cela peut également inclure des dé
542sactivations, des demandes en cours ou des erreurs obtenues lors de la récupération d'un ID à partir du service AMP Client IDs.",
543            duracion : "30 secondes à 1 an",
544            idlabel : "cookies_accepted_google5",
545            aceptar : ""
546        },
547        5: {
548            titulo : "AMP_TOKEN",
549            tipo : "Analytische cookies",
550            descripcion : "Voegt een token toe dat wordt gebruikt om een ​​client-ID op te halen uit de AMP Client IDs-service. Het kan ook uitschakelingen, lopende aanvragen of fouten bevatten die zijn verkregen bij het ophalen van een ID van de AMP Client IDs-service.",
551            duracion : "30 seconden tot 1 jaar",
552            idlabel : "cookies_accepted_google5",
553            aceptar : ""
554        },
555        6: {
556            titulo : "AMP_TOKEN",
557            tipo : "Analytiske informasjonskapsler",
558            descripcion : "Legger til et token som brukes til å hente en klient-ID fra AMP-klient-ID-tjenesten. Det kan også omfatte deaktiver, pågående forespørsler eller feil innhentet når du henter en ID fra AMP Client IDs-tjenesten.",
559            duracion : "30 sekunder til 1 år",
560            idlabel : "cookies_accepted_google5",
561            aceptar : ""
562        },
563        7: {
564            titulo : "AMP_TOKEN",
565            tipo : "Аналитические куки",
566            descripcion : "Добавляет токен, который используется для получения идентификатора клиента из службы идентификаторов клиентов AMP. Он также может включать отключения, выполняемые запросы или ошибки, полученные при получении идентификатора из службы идентификаторов клиентов AMP.",
567            duracion : "От 30 секунд до 1 года",
568            idlabel : "cookies_accepted_google5",
569            aceptar : ""
570        },
571        8: {
572            titulo : "AMP_TOKEN",
573            tipo : "Cookies Analíticos",
574            descripcion : "Adiciona um token que é usado para recuperar um ID de cliente do serviço de IDs de cliente de AMP. Também pode incluir desabilitações, solicitações em andamento ou erros obtidos ao recuperar um ID do serviço de IDs de cliente AMP.",
575            duracion : "30 segundos a 1 ano",
576            idlabel : "cookies_accepted_google5",
577            aceptar : ""
578        },
579        9: {
580            titulo : "AMP_TOKEN",
581            tipo : "Analytiska kakor",
582            descripcion : "Lägger till en token som används för att hämta ett klient-ID från AMP-klient-ID-tjänsten. Det kan också innehålla inaktiverar, pågående förfrågningar eller fel som uppnåtts vid hämtning av ett ID från AMP-klient-ID-tjänsten.",
583            duracion : "30 sekunder till 1 år",
584            idlabel : "cookies_accepted_google5",
585            aceptar : ""
586        },
587        10: {
588            titulo : "AMP_TOKEN",
589            tipo : "Analyyttiset evästeet",
590            descripcion : "Lisää tunnuksen, jota käytetään asiakastunnuksen noutamiseen AMP-asiakastunnuspalvelusta. Se voi myös sisältää käytöstä poistoja, käynnissä olevia pyyntöjä tai virheitä, jotka on saatu haettaessa tunnusta AMP Client IDs -palvelusta.",
591            duracion : "30 sekuntia - 1 vuosi",
592            idlabel : "cookies_accepted_google5",
593            aceptar : ""
594        },
595        11: {
596            titulo : "AMP_TOKEN",
597            tipo : "分析性Cookie",
598            descripcion : "添加用於從AMP客戶端ID服務中檢索客戶端ID的令牌。當從AMP客戶端ID服務檢索ID時,它還可能包括禁用,正在進行的請求或獲得的錯誤。",
599            duracion : "30秒至1年",
600            idlabel : "cookies_accepted_google5",
601            aceptar : ""
602        },
603        12: {
604            titulo : "AMP_TOKEN",
605            tipo : "Cookies analítiques",
606            descripcion : "Afegeix un símbol que s'utilitza per recuperar una ID de client de el servei de IDs de client d'AMP. Pot incloure també inhabilitacions, sol·licituds en curs o errors obtinguts a l'recuperar una ID de el servei de IDs de client d'AMP.",
607            duracion : "De 30 segons a 1 any",
608            idlabel : "cookies_accepted_google5",
609            aceptar : ""
610        },
611        15: {
612            titulo : "AMP_TOKEN",
613            tipo : "Cookie analitici",
614            descripcion : "Aggiunge un token utilizzato per recuperare un ID client dal servizio ID client AMP. Può anche includere disabilitazioni, richieste in corso o errori ottenuti durante il recupero di un ID dal servizio ID client AMP.",
615            duracion : "Da 30 secondi a 1 anno",
616            idlabel : "cookies_accepted_google5",
617            aceptar : ""
618        },
619        16: {
620            titulo : "AMP_TOKEN",
621            tipo : "Cookie analitikoak",
622            descripcion : "AMP Bezero IDak zerbitzutik bezero ID bat berreskuratzeko erabiltzen den token bat gehitzen du. AMP Bezeroaren ID zerbitzutik ID bat berreskuratzean lortutako akatsak, egiten ari diren eskaerak edo akatsak ere sar ditzake.",
623            duracion : "30 segundotik 1 urtera",
624            idlabel : "cookies_accepted_google5",
625            aceptar : ""
626        },
627        17: {
628            titulo : "AMP_TOKEN",
629            tipo : "Analityczne pliki cookie",
630            descripcion : "Dodaje token używany do pobierania identyfikatora klienta z usługi identyfikatorów klientów AMP. Może również obejmować wyłączenia, żądania w toku lub błędy uzyskane podczas pobierania identyfikatora z usługi identyfikatorów klientów AMP.",
631            duracion : "30 sekund do 1 roku",
632            idlabel : "cookies_accepted_google5",
633            aceptar : ""
634        },
635        18: {
636            titulo : "AMP_TOKEN",
637            tipo : "Cookies analíticas",
638            descripcion : "Añade un token que se utiliza para recuperar una ID de cliente del servicio de IDs de cliente de AMP. Puede incluir también inhabilitaciones, solicitudes en curso o errores obtenidos al recuperar una ID del servicio de IDs de cliente de AMP.",
639            duracion : "De 30 segundos a 1 año",
640            idlabel : "cookies_accepted_google5",
641            aceptar : ""
642        },
643        19: {
644            titulo : "AMP_TOKEN",
645            tipo : "Analytiske cookies",
646            descripcion : "Tilføjer et token, der bruges til at hente et klient-id fra AMP's klient-id-tjeneste. Kan også omfatte fravalg, igangværende anmodninger eller fejl opnået under hentning af et id fra AMP Client ID-tjenesten.",
647            duracion : "ra 30 sekunder til 1 år",
648            idlabel : "cookies_accepted_google5",
649            aceptar : ""
650        },
651        22: {
652            titulo : "AMP_TOKEN",
653            tipo : "Analitiniai slapukai",
654            descripcion : "Prideda prieigos raktą, kuris naudojamas kliento ID nuskaityti iš AMP kliento ID paslaugos. Taip pat gali apimti atsisakymus, vykdomas užklausas arba klaidas, gautas gaunant ID iš AMP kliento ID paslaugos.",
655            duracion : "Nuo 30 sekundžių iki 1 metų",
656            idlabel : "cookies_accepted_google5",
657            aceptar : ""
658        },
659        24: {
660            titulo: "AMP_TOKEN",
661            tipo: "Аналітичні файли cookie",
662            descripcion: "Додає токен, який використовується для отримання ідентифікатора клієнта зі служби ідентифікаторів клієнтів AMP. Також може містити відключення, поточні запити або помилки, отримані під час отримання ідентифікатора зі служби AMP.",
663            duracion: "Від 30 секунд до 1 року",
664            idlabel: "cookies_accepted_google5",
665            aceptar: ""
666        },
667        25: {
668            titulo: "AMP_TOKEN",
669            tipo: "Аналитични бисквитки",
670            descripcion: "Добавя токен, който се използва за извличане на клиентски ID от услугата за AMP клиентски ID. Може също така да включва откази, текущи заявки или грешки при извличане на ID от услугата за AMP клиентски ID.",
671            duracion: "От 30 секунди до 1 година",
672            idlabel: "cookies_accepted_google5",
673            aceptar: ""
674        }
675    },
676    "_gac_[property-id]" : {
677        1: {
678            titulo : "_gac_[property-id]",
679            tipo : "Cookie de Marketing",
680            descripcion : "Incluye información de la campaña relativa al usuario. Si has vinculado tus cuentas de Google Analytics y Google Ads, las etiquetas de conversión en sitio web de Google Ads leerán esta cookie, a menos que la desactives. Más información",
681            duracion : "90 días",
682            idlabel : "cookies_accepted_google5",
683            aceptar : ""
684        },
685        2: {
686            titulo : "_gac_[property-id]",
687            tipo : "Marketing Cookie",
688            descripcion : "Includes campaign information related to the user. If you've linked your Google Analytics and Google Ads accounts, the Google Ads website conversion tags will read this cookie, unless you disable it. More information",
689            duracion : "90 days",
690            idlabel : "cookies_accepted_google5",
691            aceptar : ""
692        },
693        3: {
694            titulo : "_gac_[property-id]",
695            tipo : "Marketing-Cookie",
696            descripcion : "Enthält Kampagneninformationen zum Benutzer. Wenn Sie Ihre Google Analytics- und Google Ads-Konten verknüpft haben, wird dieses Cookie von den Conversion-Tags der Google Ads-Website gelesen, sofern Sie es nicht deaktivieren. Mehr Informationen",
697            duracion : "90 Tage",
698            idlabel : "cookies_accepted_google5",
699            aceptar : ""
700        },
701        4: {
702            titulo : "_gac_[property-id]",
703            tipo : "Cookie marketing",
704            descripcion : "Comprend des informations de campagne liées à l'utilisateur. Si vous avez associé vos comptes Google Analytics et Google Ads, les balises de conversion du site Web Google Ads liront ce cookie, sauf si vous le désactivez. Plus d'informations",
705            duracion : "90 jours",
706            idlabel : "cookies_accepted_google5",
707            aceptar : ""
708        },
709        5: {
710            titulo : "_gac_[property-id]",
711            tipo : "Marketingcookie",
712            descripcion : "Bevat campagne-informatie met betrekking tot de gebruiker. Als u uw Google Analytics- en Google Ads-accounts heeft gekoppeld, lezen de conversietags van de Google Ads-website deze cookie, tenzij u deze uitschakelt. Meer informatie",
713            duracion : "90 dagen",
714            idlabel : "cookies_accepted_google5",
715            aceptar : ""
716        },
717        6: {
718            titulo : "_gac_[property-id]",
719            tipo : "Markedsføringskake",
720            descripcion : "Inkluderer kampanjeinformasjon relatert til brukeren. Hvis du har koblet sammen Google Analytics- og Google Ads-kontoene dine, leser konverterings-taggene på Google Ads-nettstedet denne informasjonskapselen, med mindre du deaktiverer den. Mer informasjon\n",
721            duracion : "90 dager",
722            idlabel : "cookies_accepted_google5",
723            aceptar : ""
724        },
725        7: {
726            titulo : "_gac_[property-id]",
727            tipo : "Маркетинговые файлы cookie",
728            descripcion : "Включает информацию о кампании, относящуюся к пользователю. Если вы связали свои аккаунты Google Analytics и Google Рекламы, теги конверсии веб-сайта Google Рекламы будут читать этот файл cookie, если вы не отключите его. Дополнительная информация",
729            duracion : "90 дней",
730            idlabel : "cookies_accepted_google5",
731            aceptar : ""
732        },
733        8: {
734            titulo : "_gac_[property-id]",
735            tipo : "Cookie de marketing",
736            descripcion : "Inclui informações de campanha relacionadas ao usuário. Se você vinculou suas contas do Google Analytics e do Google Ads, as tags de conversão do site do Google Ads lerão esse cookie, a menos que você o desative. Mais informação",
737            duracion : "90 dias",
738            idlabel : "cookies_accepted_google5",
739            aceptar : ""
740        },
741        9: {
742            titulo : "_gac_[property-id]",
743            tipo : "Marknadsföringskaka",
744            descripcion : "Inkluderar kampanjinformation relaterad till användaren. Om du har länkat dina Google Analytics- och Google Ads-konton läser k
744onverteringstaggarna för Google Ads-webbplatsen denna cookie, såvida du inte inaktiverar den. Mer information",
745            duracion : "90 dagar",
746            idlabel : "cookies_accepted_google5",
747            aceptar : ""
748        },
749        10: {
750            titulo : "_gac_[property-id]",
751            tipo : "Markkinointieväste",
752            descripcion : "Sisältää käyttäjään liittyvät kampanjatiedot. Jos olet linkittänyt Google Analytics- ja Google Ads-tilisi, Google Ads -verkkotunnistetunnisteet lukevat tämän evästeen, ellet poista sitä käytöstä. Lisää tietoa",
753            duracion : "90 päivää",
754            idlabel : "cookies_accepted_google5",
755            aceptar : ""
756        },
757        11: {
758            titulo : "_gac_[property-id]",
759            tipo : "營銷Cookie",
760            descripcion : "包括與用戶有關的活動信息。如果您已關聯了Google Analytics(分析)帳戶和Google Ads帳戶,則除非您禁用它,否則Google Ads網站轉換標籤將讀取該cookie。更多信息",
761            duracion : "90天",
762            idlabel : "cookies_accepted_google5",
763            aceptar : ""
764        },
765        12: {
766            titulo : "_gac_[property-id]",
767            tipo : "Cookie de Màrqueting",
768            descripcion : "lou informació de la campanya relativa a l'usuari. Si has vinculat teus comptes de Google Analytics i Google Ads, les etiquetes de conversió en lloc web de Google Ads llegiran aquesta galeta, llevat que la desactivis. més informació",
769            duracion : "90 dies",
770            idlabel : "cookies_accepted_google5",
771            aceptar : ""
772        },
773        15: {
774            titulo : "_gac_[property-id]",
775            tipo : "Cookie di marketing",
776            descripcion : "Include le informazioni sulla campagna relative all'utente. Se hai collegato i tuoi account Google Analytics e Google Ads, i tag di conversione del sito web di Google Ads leggeranno questo cookie, a meno che tu non lo disabiliti. Maggiori informazioni",
777            duracion : "90 giorni",
778            idlabel : "cookies_accepted_google5",
779            aceptar : ""
780        },
781        16: {
782            titulo : "_gac_[property-id]",
783            tipo : "Merkaturatzeko cookie-a",
784            descripcion : "Erabiltzailearekin lotutako kanpainaren informazioa biltzen du. Google Analytics eta Google Ads kontuak lotu badituzu, Google Ads webguneko bihurketa etiketek cookie hau irakurriko dute, desgaitu ezean. Informazio gehiago",
785            duracion : "90 egun",
786            idlabel : "cookies_accepted_google5",
787            aceptar : ""
788        },
789        17: {
790            titulo : "_gac_[property-id]",
791            tipo : "Marketingowy plik cookie",
792            descripcion : "Zawiera informacje o kampanii związane z użytkownikiem. Jeśli połączyłeś swoje konta Google Analytics i Google Ads, tagi konwersji witryny Google Ads odczytują ten plik cookie, chyba że go wyłączysz. Więcej informacji",
793            duracion : "90 dni",
794            idlabel : "cookies_accepted_google5",
795            aceptar : ""
796        },
797        18: {
798            titulo : "_gac_[property-id]",
799            tipo : "Cookie de Marketing",
800            descripcion : "Incluye información de la campaña relativa al usuario. Si has vinculado tus cuentas de Google Analytics y Google Ads, las etiquetas de conversión en sitio web de Google Ads leerán esta cookie, a menos que la desactives. Más información",
801            duracion : "90 días",
802            idlabel : "cookies_accepted_google5",
803            aceptar : ""
804        },
805        19: {
806            titulo : "_gac_[property-id]",
807            tipo : "Marketing cookies",
808            descripcion : "Det inkluderer kampagneoplysninger relateret til brugeren. Hvis du har linket dine Google Analytics- og Google Ads-konti, vil Google Ads-webstedets konverteringstags læse denne cookie, medmindre du deaktiverer den. Mere information",
809            duracion : "90 dage",
810            idlabel : "cookies_accepted_google5",
811            aceptar : ""
812        },
813        22: {
814            titulo : "_gac_[property-id]",
815            tipo : "Rinkodaros slapukus",
816            descripcion : "Tai apima kampanijos informaciją, susijusią su vartotoju. Jei susiejote „Google Analytics“ ir „Google Ads“ paskyras, „Google Ads“ svetainės konversijų žymos skaitys šį slapuką, nebent jį išju
816ngsite. Daugiau informacijos",
817            duracion : "90 dienų",
818            idlabel : "cookies_accepted_google5",
819            aceptar : ""
820        },
821        24: {
822            titulo: "_gac_[property-id]",
823            tipo: "Маркетингова cookie",
824            descripcion: "Містить інформацію про кампанію, що стосується користувача. Якщо ти пов'язав облікові записи Google Analytics і Google Ads, теги конверсій Google Ads на вебсайті зчитуватимуть цей файл cookie, якщо тільки його не вимкнено. Докладніше",
825            duracion: "90 днів",
826            idlabel: "cookies_accepted_google5",
827            aceptar: ""
828        },
829        25: {
830            titulo : "_gac_[property-id]",
831            tipo : "Маркетинг бисквитка",
832            descripcion : "Включва информация за кампанията, свързана с потребителя. Ако сте свързали вашите акаунти в Google Analytics и Google Ads, етикетите за конверсии в уебсайта на Google Ads ще четат тази бисквитка, освен ако не я деактивирате. Повече информация",
833            duracion : "90 дни",
834            idlabel : "cookies_accepted_google5",
835            aceptar : ""
836        }
837    },
838
839    "AWSALBCORS": {
840        1: {
841            titulo : "AWSALBCORS",
842            tipo : "Cookie de Marketing",
843            descripcion : "Registra que grupo de servidores está atendiendo al visitante. Se para optimizar la experiencia del usuario equilibrando la carga.",
844            duracion : "6 días",
845            idlabel : "cookies_accepted_google5",
846            aceptar : ""
847        },
848        2: {
849            titulo : "AWSALBCORS",
850            tipo : "Marketing Cookie",
851            descripcion : "Registers which group of servers is serving the visitor. It is to optimize the user experience by balancing the load.",
852            duracion : "6 days",
853            idlabel : "cookies_accepted_google5",
854            aceptar : ""
855        },
856        3: {
857            titulo : "AWSALBCORS",
858            tipo : "Marketing-Cookie",
859            descripcion : "Registriert, welche Servergruppe den Besucher bedient. Es dient dazu, die Benutzererfahrung durch Lastausgleich zu optimieren.",
860            duracion : "6 Tage",
861            idlabel : "cookies_accepted_google5",
862            aceptar : ""
863        },
864        4: {
865            titulo : "AWSALBCORS",
866            tipo : "Cookie marketing",
867            descripcion : "Enregistre le groupe de serveurs qui dessert le visiteur. Il s'agit d'optimiser l'expérience utilisateur en équilibrant la charge.",
868            duracion : "6 jours",
869            idlabel : "cookies_accepted_google5",
870            aceptar : ""
871        },
872        5: {
873            titulo : "AWSALBCORS",
874            tipo : "Marketingcookie",
875            descripcion : "Registreert welke groep servers de bezoeker bedient. Het is om de gebruikerservaring te optimaliseren door de belasting te balanceren.",
876            duracion : "6 dagen",
877            idlabel : "cookies_accepted_google5",
878            aceptar : ""
879        },
880        6: {
881            titulo : "AWSALBCORS",
882            tipo : "Markedsføringskake",
883            descripcion : "Registrerer hvilken gruppe servere som betjener den besøkende. Det er å optimalisere brukeropplevelsen ved å balansere belastningen.",
884            duracion : "6 dager",
885            idlabel : "cookies_accepted_google5",
886            aceptar : ""
887        },
888        7: {
889            titulo : "AWSALBCORS",
890            tipo : "Маркетинговые файлы cookie",
891            descripcion : "Регистрирует, какая группа серверов обслуживает посетителя. Он предназначен для оптимизации взаимодействия с пользователем путем балансировки нагрузки.",
892            duracion : "6 дней",
893            idlabel : "cookies_accepted_google5",
894            aceptar : ""
895        },
896        8: {
897            titulo : "AWSALBCORS",
898            tipo : "Cookie de marketing",
899            descripcion : "Registra qual grupo de servidores está atendendo ao visitante. É para otimizar a experiência do usuário equilibrando a carga.",
900            duracion : "6 dias",
901            idlabel : "cookies_accepted_google5",
902            aceptar : ""
903        },
904        9: {
905            titulo : "AWSALBCORS",
906            tipo : "Marknadsföringskaka",
907            descripcion : "Registrerar vilken grupp av servrar som betjänar besökaren. Det är att optimera användarupplevelsen genom att balansera belastningen.",
908            duracion : "6 dagar",
909            idlabel : "cookies_accepted_google5",
910            aceptar : ""
911        },
912        10: {
913            titulo : "AWSALBCORS",
914            tipo : "Markkinointieväste",
915            descripcion : "Rekisteröi, mikä palvelinryhmä palvelee kÃ
915¤vijää. Se on optimoida käyttökokemus tasapainottamalla kuormaa.",
916            duracion : "90 päivää",
917            idlabel : "cookies_accepted_google5",
918            aceptar : ""
919        },
920        11: {
921            titulo : "AWSALBCORS",
922            tipo : "營銷Cookie",
923            descripcion : "註冊為訪問者服務的服務器組。通過平衡負載來優化用戶體驗。",
924            duracion : "6天",
925            idlabel : "cookies_accepted_google5",
926            aceptar : ""
927        },
928        12: {
929            titulo : "AWSALBCORS",
930            tipo : "Cookie de Màrqueting",
931            descripcion : "Registra que grup de servidors està atenent al visitant. Es per optimitzar l'experiència de l'usuari equilibrant la càrrega.",
932            duracion : "6 dies",
933            idlabel : "cookies_accepted_google5",
934            aceptar : ""
935        },
936        15: {
937            titulo : "AWSALBCORS",
938            tipo : "Cookie di marketing",
939            descripcion : "Registra quale gruppo di server sta servendo il visitatore. È per ottimizzare l'esperienza dell'utente bilanciando il carico.",
940            duracion : "6 giorni",
941            idlabel : "cookies_accepted_google5",
942            aceptar : ""
943        },
944        16: {
945            titulo : "AWSALBCORS",
946            tipo : "Merkaturatzeko cookie-a",
947            descripcion : "Bisitariari zer zerbitzari-talde ematen dion erregistratzen du. Erabiltzaileen esperientzia optimizatzeko da, karga orekatuz.",
948            duracion : "6 egun",
949            idlabel : "cookies_accepted_google5",
950            aceptar : ""
951        },
952        17: {
953            titulo : "AWSALBCORS",
954            tipo : "Marketingowy plik cookie",
955            descripcion : "Rejestruje, która grupa serwerów obsługuje gościa. Ma to na celu optymalizację doświadczenia użytkownika poprzez równoważenie obciążenia.",
956            duracion : "6 dni",
957            idlabel : "cookies_accepted_google5",
958            aceptar : ""
959        },
960        18: {
961            titulo : "AWSALBCORS",
962            tipo : "Cookie de Marketing",
963            descripcion : "Registra que grupo de servidores está atendiendo al visitante. Se para optimizar la experiencia del usuario equilibrando la carga.",
964            duracion : "6 días",
965            idlabel : "cookies_accepted_google5",
966            aceptar : ""
967        },
968        19: {
969            titulo : "AWSALBCORS",
970            tipo : "CMarketing cookies",
971            descripcion : "Registrerer, hvilken gruppe af servere der betjener den besøgende. Det bruges til at optimere brugeroplevelsen ved belastningsbalancering.",
972            duracion : "6 dage",
973            idlabel : "cookies_accepted_google5",
974            aceptar : ""
975        },
976        22: {
977            titulo : "AWSALBCORS",
978            tipo : "Rinkodaros slapukai",
979            descripcion : "Įrašo, kuri serverių grupė aptarnauja lankytoją. Jis naudojamas siekiant optimizuoti vartotojo patirtį balansuojant apkrovą.",
980            duracion : "6 dienos",
981            idlabel : "cookies_accepted_google5",
982            aceptar : ""
983        },
984        24: {
985            titulo: "AWSALBCORS",
986            tipo: "Маркетингова cookie",
987            descripcion: "Реєструє, яка група серверів обслуговує відвідувача. Використовується для оптимізації користувацького досвіду шляхом балансування навантаження.",
988            duracion: "6 днів",
989            idlabel: "cookies_accepted_google5",
990            aceptar: ""
991        },
992        25: {
993            titulo : "AWSALBCORS",
994            tipo : "Маркетинг бисквитка",
995            descripcion : "Записва коя група сървъри обслужва посетителя. Използва се за оптимизиране на потребителското изживяване чрез балансиране на натоварването.",
996            duracion : "6 дни",
997            idlabel : "cookies_accepted_google5",
998            aceptar : ""
999        }
1000    },
1001    "JSESSIONID": {
1002        1: {
1003            titulo : "JSESSIONID",
1004            tipo : "Cookie de Marketing",
1005            descripcion : "Almacena los estados de los usuarios en todas las peticiones realizadas por la página.",
1006            duracion : "Sesión",
1007            idlabel : "cookies_accepted_google5",
1008            aceptar : ""
1009        },
1010        2: {
1011            titulo : "JSESSIONID",
1012            tipo : "Marketing Cookie",
1013            descripcion : "Stores the states of the users in all the requests made by the page.",
1014            duracion : "Session",
1015            idlabel : "cookies_accepted_google5",
1016            aceptar : ""
1017        },
1018        3: {
1019            titulo : "JSESSIONID",
1020            tipo : "Marketing-Cookie",
1021            descripcion : "Speichert den Status der Benutzer in allen von der Seite gestellten Anforderungen.",
1022            duracion : "Session",
1023            idlabel : "cookies_accepted_google5",
1024            aceptar : ""
1025        },
1026        4: {
1027            titulo : "JSESSIONID",
1028            tipo : "Cookie marketing",
1029            descripcion : "Stocke les états des utilisateurs dans toutes les requêtes effectuées par la page.",
1030            duracion : "Session",
1031            idlabel : "cookies_accepted_google5",
1032            aceptar : ""
1033        },
1034        5: {
1035            titulo : "JSESSIONID",
1036            tipo : "Marketingcookie",
1037            descripcion : "Slaat de status van de gebruikers op in alle verzoeken van de pagina.",
1038            duracion : "Sessie",
1039            idlabel : "cookies_accepted_google5",
1040            aceptar : ""
1041        },
1042        6: {
1043            titulo : "JSESSIONID",
1044            tipo : "Markedsføringskake",
1045            descripcion : "Lagrer statusen til brukerne i alle forespørsler fra siden.",
1046            duracion : "6 dager",
1047            idlabel : "cookies_accepted_google5",
1048            aceptar : ""
1049        },
1050        7: {
1051            titulo : "JSESSIONID",
1052            tipo : "Маркетинговые файлы cookie",
1053            descripcion : "Сохраняет состояния пользователей во всех запросах, сделанных страницей.",
1054            duracion : "Сессия",
1055            idlabel : "cookies_accepted_google5",
1056            aceptar : ""
1057        },
1058        8: {
1059            titulo : "JSESSIONID",
1060            tipo : "Cookie de marketing",
1061            descripcion : "Armazena os estados dos usuários em todas as solicitações feitas pela página.",
1062            duracion : "Sessão",
1063            idlabel : "cookies_accepted_google5",
1064            aceptar : ""
1065        },
1066        9: {
1067            titulo : "JSESSIONID",
1068            tipo : "Marknadsföringskaka",
1069            descripcion : "Lagrar användarnas tillstånd i alla förfrågningar från sidan.",
1070            duracion : "Session",
1071            idlabel : "cookies_accepted_google5",
1072            aceptar : ""
1073        },
1074        10: {
1075            titulo : "JSESSIONID",
1076            tipo : "Markkinointieväste",
1077            descripcion : "Tallentaa käyttäjien tilat kaikkiin sivun tekemiin pyyntöihin.",
1078            duracion : "Istunto",
1079            idlabel : "cookies_accepted_google5",
1080            aceptar : ""
1081        },
1082        11: {
1083            titulo : "JSESSIONID",
1084            tipo : "營銷Cookie",
1085            descripcion : "在頁面發出的所有請求中存儲用戶的狀態。",
1086            duracion : "屆會",
1087            idlabel : "cookies_accepted_google5",
1088            aceptar : ""
1089        },
1090        12: {
1091            titulo : "JSESSIONID",
1092            tipo : "Cookie de Màrqueting",
1093            descripcion : "Emmagatzema els estats dels usuaris en totes les peticions realitzades per la pàgina.",
1094            duracion : "Sessió",
1095            idlabel : "cookies_accepted_google5",
1096            aceptar : ""
1097        },
1098        15: {
1099            titulo : "JSESSIONID",
1100            tipo : "Cookie di marketing",
1101            descripcion : "Memorizza gli stati degli utenti in tutte le richieste effettuate dalla pagina.",
1102            duracion : "Sessione",
1103            idlabel : "cookies_accepted_google5",
1104            aceptar : ""
1105        },
1106        16: {
1107            titulo : "JSESSIONID",
1108            tipo : "Merkaturatzeko cookie-a",
1109            descripcion : "Orriak egindako eskaera guztietan erabiltzaileen egoerak gordetzen ditu.",
1110            duracion : "Saioa",
1111            idlabel : "cookies_accepted_google5",
1112            aceptar : ""
1113        },
1114        17: {
1115            titulo : "JSESSIONID",
1116            tipo : "Marketingowy plik cookie",
1117            descripcion : "Przechowuje stany użytkowników we wszystkich żądaniach wysyłanych przez stronę.",
1118            duracion : "Sesja",
1119            idlabel : "cookies_accepted_google5",
1120            aceptar : ""
1121        },
1122        18: {
1123            titulo : "JSESSIONID",
1124            tipo : "Cookie de Marketing",
1125            descripcion : "Almacena los estados de los usuarios en todas las peticiones realizadas por la página.",
1126            duracion : "Sesión",
1127            idlabel : "cookies_accepted_google5",
1128            aceptar : ""
1129        },
1130        19: {
1131            titulo : "JSESSIONID",
1132            tipo : "Marketing cookies",
1133            descripcion : "Gemmer brugernes tilstande i alle anmodninger fra siden.",
1134            duracion : "Session",
1135            idlabel : "cookies_accepted_google5",
1136            aceptar : ""
1137        },
1138        22: {
1139            titulo : "JSESSIONID",
1140            tipo : "Rinkodaros slapukai",
1141            descripcion : "Saugo vartotojų būsenas visose puslapio užklausose.",
1142            duracion : "Sesija",
1143            idlabel : "cookies_accepted_google5",
1144            aceptar : ""
1145        },
1146        24: {
1147            titulo: "JSESSIONID",
1148            tipo: "Маркетингова cookie",
1149            descripcion: "Зберігає стани користувачів під час усіх запитів, здійснених сторінкою.",
1150            duracion: "Сесія",
1151            idlabel: "cookies_accepted_google5",
1152            aceptar: ""
1153        },
1154        25: {
1155            titulo : "JSESSIONID",
1156            tipo : "Маркетинг бисквитка",
1157            descripcion : "Съхранява състоянията на потребителите при всички заявки, направени от страницата.",
1158            duracion : "Сесия",
1159            idlabel : "cookies_accepted_google5",
1160            aceptar : ""
1161        }
1162    },
1163    "_cfduid": {
1164        1: {
1165            titulo : "_cfduid",
1166            tipo : "Cookie de Marketing",
1167            descripcion : "Utilizada para rastrear la información de los vídeos de YouTube incrustados en un sitio web.",
1168            duracion : "1 mes",
1169            idlabel : "cookies_accepted_google5",
1170            aceptar : ""
1171        },
1172        2: {
1173            titulo : "_cfduid",
1174            tipo : "Marketing Cookie",
1175            descripcion : "Used to track the information of YouTube videos embedded in a website.",
1176            duracion : "1 month",
1177            idlabel : "cookies_accepted_google5",
1178            aceptar : ""
1179        },
1180        3: {
1181            titulo : "_cfduid",
1182            tipo : "Marketing-Cookie",
1183            descripcion : "Wird verwendet, um die Informationen von YouTube-Videos zu verfolgen, die in eine Website eingebettet sind.",
1184            duracion : "1 Monat",
1185            idlabel : "cookies_accepted_google5",
1186            aceptar : ""
1187        },
1188        4: {
1189            titulo : "_cfduid",
1190            tipo : "Cookie marketing",
1191            descripcion : "Utilisé pour suivre les informations des vidéos YouTube intégrées dans un site Web.",
1192            duracion : "1 mois",
1193            idlabel : "cookies_accepted_google5",
1194            aceptar : ""
1195        },
1196        5: {
1197            titulo : "_cfduid",
1198            tipo : "Marketingcookie",
1199            descripcion : "Wordt gebruikt om de informatie van YouTube-video's die in een website zijn ingesloten bij te houden.",
1200            duracion : "1 maand",
1201            idlabel : "cookies_accepted_google5",
1202            aceptar : ""
1203        },
1204        6: {
1205            titulo : "_cfduid",
1206            tipo : "Markedsføringskake",
1207            descripcion : "Brukes til å spore informasjonen om YouTube-videoer innebygd på et nettsted.",
1208            duracion : "1 måned",
1209            idlabel : "cookies_accepted_google5",
1210            aceptar : ""
1211        },
1212        7: {
1213            titulo : "_cfduid",
1214            tipo : "Маркетинговые файлы cookie",
1215            descripcion : "Используется для отслеживания информации о видеороликах YouTube, встроенных в веб-сайт.",
1216            duracion : "1 месяц",
1217            idlabel : "cookies_accepted_google5",
1218            aceptar : ""
1219        },
1220        8: {
1221            titulo : "_cfduid",
1222            tipo : "Cookie de marketing",
1223            descripcion : "Usado para rastrear as informações de vídeos do YouTube incorporados em um site.",
1224            duracion : "Sessão",
1225            idlabel : "cookies_accepted_google5",
1226            aceptar : ""
1227        },
1228        9: {
1229            titulo : "_cfduid",
1230            tipo : "Marknadsföringskaka",
1231            descripcion : "Används för att spåra informationen om YouTube-videor inbäddade på en webbplats.",
1232            duracion : "Session",
1233            idlabel : "cookies_accepted_google5",
1234            aceptar : ""
1235        },
1236        10: {
1237            titulo : "_cfduid",
1238            tipo : "Markkinointieväste",
1239            descripcion : "Käytetään verkkosivustoon upotettujen YouTube-videoiden tietojen seuraamiseen.",
1240            duracion : "1 kuukausi",
1241            idlabel : "cookies_accepted_google5",
1242            aceptar : ""
1243        },
1244        11: {
1245            titulo : "_cfduid",
1246            tipo : "營銷Cookie",
1247            descripcion : "用於跟踪網站中嵌入的YouTube視頻的信息。",
1248            duracion : "1個月",
1249            idlabel : "cookies_accepted_google5",
1250            aceptar : ""
1251        },
1252        12: {
1253            titulo : "_cfduid",
1254            tipo : "Cookie de Màrqueting",
1255            descripcion : "Utilitzada per rastrejar la informació dels vídeos de YouTube incrustats en un lloc web.",
1256            duracion : "1 mes",
1257            idlabel : "cookies_accepted_google5",
1258            aceptar : ""
1259        },
1260        15: {
1261            titulo : "_cfduid",
1262            tipo : "Cookie di marketing",
1263            descripcion : "Utilizzato per tracciare le informazioni dei video di YouTube incorporati in un sito web.",
1264            duracion : "1 mese",
1265            idlabel : "cookies_accepted_google5",
1266            aceptar : ""
1267        },
1268        16: {
1269            titulo : "_cfduid",
1270            tipo : "Merkaturatzeko cookie-a",
1271            descripcion : "Webgune batean txertatutako YouTube bideoen informazioaren jarraipena egiteko erabiltzen da.",
1272            duracion : "1 hilabete",
1273            idlabel : "cookies_accepted_google5",
1274            aceptar : ""
1275        },
1276        17: {
1277            titulo : "_cfduid",
1278            tipo : "Marketingowy plik cookie",
1279            descripcion : "Służy do śledzenia informacji o filmach YouTube osadzonych w witrynie internetowej.",
1280            duracion : "1 miesiąc",
1281            idlabel : "cookies_accepted_google5",
1282            aceptar : ""
1283        },
1284        18: {
1285            titulo : "_cfduid",
1286            tipo : "Cookie de Marketing",
1287            descripcion : "Utilizada para rastrear la información de los vídeos de YouTube incrustados en un sitio web.",
1288            duracion : "1 mes",
1289            idlabel : "cookies_accepted_google5",
1290            aceptar : ""
1291        },
1292        19: {
1293            titulo : "_cfduid",
1294            tipo : "Marketing cookies",
1295            descripcion : "Bruges til at spore oplysningerne om YouTube-videoer, der er indlejret på et websted.",
1296            duracion : "1 måned",
1297            idlabel : "cookies_accepted_google5",
1298            aceptar : ""
1299        },
1300        22: {
1301            titulo : "_cfduid",
1302            tipo : "Rinkodaros slapukai",
1303            descripcion : "Naudojamas svetainėje įterptų „YouTube“ vaizdo įrašų informacijai sekti.",
1304            duracion : "1 mėnuo",
1305            idlabel : "cookies_accepted_google5",
1306            aceptar : ""
1307        },
1308        24: {
1309            titulo: "_cfduid",
1310            tipo: "Маркетингова cookie",
1311            descripcion: "Використовується для відстеження інформації про відео YouTube, вбудовані на вебсайті.",
1312            duracion: "1 місяць",
1313            idlabel: "cookies_accepted_google5",
1314            aceptar: ""
1315        },
1316        25: {
1317            titulo : "_cfduid",
1318            tipo : "Маркетинг бисквитка",
1319            descripcion : "Използва се за проследяване на информацията за вградените видеа от YouTube в уебсайта.",
1320            duracion : "1 месец",
1321            idlabel : "cookies_accepted_google5",
1322            aceptar : ""
1323        }
1324    },
1325    "AWSALB": {
1326        1: {
1327            titulo : "AWSALB",
1328            tipo : "Cookie Técnica",
1329            descripcion : "Utilizada para especificar el servidor asignado al servicio AWS Load Balancer. A excepción de que sea técnicamente imposible, intenta que el servidor que responde a las peticiones de una sesión web sea siempre el mismo.",
1330            duracion : "7 días",
1331            idlabel : "cookies_accepted_google5",
1332            aceptar : ""
1333        },
1334        2: {
1335            titulo : "AWSALB",
1336            tipo : "Technical Cookie",
1337            descripcion : "Used to specify the server assigned to the AWS Load Balancer service. Unless it is technically impossible, try to ensure that the server that responds to requests for a 
1337web session is always the same.",
1338            duracion : "1 month",
1339            idlabel : "cookies_accepted_google5",
1340            aceptar : ""
1341        },
1342        3: {
1343            titulo : "AWSALB",
1344            tipo : "Technisches Cookie",
1345            descripcion : "Wird verwendet, um den Server anzugeben, der dem AWS Load Balancer-Dienst zugewiesen ist. Stellen Sie sicher, dass der Server, der auf Anforderungen für eine Websitzung reagiert, immer derselbe ist, es sei denn, dies ist technisch nicht unmöglich.",
1346            duracion : "7 Tage",
1347            idlabel : "cookies_accepted_google5",
1348            aceptar : ""
1349        },
1350        4: {
1351            titulo : "AWSALB",
1352            tipo : "Cookie technique",
1353            descripcion : "Utilisé pour spécifier le serveur affecté au service AWS Load Balancer. À moins que cela ne soit techniquement impossible, essayez de vous assurer que le serveur qui répond aux demandes de session Web est toujours le même.",
1354            duracion : "7 jours",
1355            idlabel : "cookies_accepted_google5",
1356            aceptar : ""
1357        },
1358        5: {
1359            titulo : "AWSALB",
1360            tipo : "Technische Cookie",
1361            descripcion : "Wordt gebruikt om de server op te geven die is toegewezen aan de AWS Load Balancer-service. Probeer ervoor te zorgen dat de server die reageert op verzoeken om een ​​websessie, altijd dezelfde is, tenzij het technisch onmogelijk is.",
1362            duracion : "7 dagen",
1363            idlabel : "cookies_accepted_google5",
1364            aceptar : ""
1365        },
1366        6: {
1367            titulo : "AWSALB",
1368            tipo : "Teknisk informasjonskapsel",
1369            descripcion : "Brukes til å spesifisere serveren som er tilordnet AWS Load Balancer-tjenesten. Med mindre det er teknisk umulig, prøv å sikre at serveren som svarer på forespørsler om en websesjon alltid er den samme.",
1370            duracion : "7 dager",
1371            idlabel : "cookies_accepted_google5",
1372            aceptar : ""
1373        },
1374        7: {
1375            titulo : "AWSALB",
1376            tipo : "Технические файлы cookie",
1377            descripcion : "Используется для указания сервера, назначенного сервису AWS Load Balancer. Если это технически невозможно, постарайтесь убедиться, что сервер, отвечающий на запросы веб-сеанса, всегда один и тот же.",
1378            duracion : "7 дней",
1379            idlabel : "cookies_accepted_google5",
1380            aceptar : ""
1381        },
1382        8: {
1383            titulo : "AWSALB",
1384            tipo : "Cookie Técnico",
1385            descripcion : "Usado para especificar o servidor atribuído ao serviço AWS Load Balancer. Exceto que é tecnicamente impossível, tente que o servidor que responde às solicitações de uma sessão web seja sempre o mesmo.",
1386            duracion : "7 dias",
1387            idlabel : "cookies_accepted_google5",
1388            aceptar : ""
1389        },
1390        9: {
1391            titulo : "AWSALB",
1392            tipo : "Teknisk cookie",
1393            descripcion : "Används för att ange servern som tilldelats AWS Load Balancer-tjänsten. Om det inte är tekniskt omöjligt, försök att se till att servern som svarar på förfrågningar om en webbsession alltid är densamma.",
1394            duracion : "7 dagar",
1395            idlabel : "cookies_accepted_google5",
1396            aceptar : ""
1397        },
1398        10: {
1399            titulo : "AWSALB",
1400            tipo : "Tekninen eväste",
1401            descripcion : "Käytetään AWS Load Balancer -palvelulle määritetyn palvelimen määrittämiseen. Ellei se ole teknisesti mahdotonta, yritä varmistaa, että web-istunnon pyyntöihin vastaava palvelin on aina sama.",
1402            duracion : "7 päivää",
1403            idlabel : "cookies_accepted_google5",
1404            aceptar : ""
1405        },
1406        11: {
1407            titulo : "AWSALB",
1408            tipo : "技術性Cookie",
1409            descripcion : "用於指定分配給AWS Load Balancer服務的服務器。除非在技術上不可能,否則請嘗試確保響應Web會話請求的服務器始終相同。",
1410            duracion : "7天",
1411            idlabel : "cookies_accepted_google5",
1412            aceptar : ""
1413        },
1414        12: {
1415            titulo : "AWSALB",
1416            tipo : "Cookie Tècnica",
1417            descripcion : "Utilitzada per especificar el servidor assignat a l'servei AWS Load Balanç. A excepció que sigui tècnicament impossible, intenta que el servidor que respon a les peticions d'una sessió web sigui sempre el mateix.",
1418            duracion : "7 dies",
1419            idlabel : "cookies_accepted_google5",
1420            aceptar : ""
1421        },
1422        15: {
1423            titulo : "AWSALB",
1424            tipo : "Cookie tecnico",
1425            descripcion : "Utilizzato per specificare il server assegnato al servizio AWS Load Balancer. A meno che non sia tecnicamente impossibile, cerca di assicurarti che il server che risponde alle richieste di una sessione web sia sempre lo stesso.",
1426            duracion : "7 giorni",
1427            idlabel : "cookies_accepted_google5",
1428            aceptar : ""
1429        },
1430        16: {
1431            titulo : "AWSALB",
1432            tipo : "Cookie teknikoa",
1433            descripcion : "AWS Load Balancer zerbitzura esleitutako zerbitzaria zehazteko erabiltzen da. Teknikoki ezinezkoa bada behintzat, saiatu web saio baterako eskaerei erantzuten dien zerbitzaria beti berdina izan dadin.",
1434            duracion : "7 egun",
1435            idlabel : "cookies_accepted_google5",
1436            aceptar : ""
1437        },
1438        17: {
1439            titulo : "AWSALB",
1440            tipo : "Techniczne pliki cookie",
1441            descripcion : "Służy do określenia serwera przypisanego do usługi AWS Load Balancer. O ile nie jest to technicznie niemożliwe, spróbuj upewnić się, że serwer odpowiadający na żądania sesji internetowej jest zawsze ten sam.",
1442            duracion : "7 dni",
1443            idlabel : "cookies_accepted_google5",
1444            aceptar : ""
1445        },
1446        18: {
1447            titulo : "AWSALB",
1448            tipo : "Cookie Técnica",
1449            descripcion : "Utilizada para especificar el servidor asignado al servicio AWS Load Balancer. A excepción de que sea técnicamente imposible, intenta que el servidor que responde a las peticiones de una sesión web sea siempre el mismo.",
1450            duracion : "7 días",
1451            idlabel : "cookies_accepted_google5",
1452            aceptar : ""
1453        },
1454        19: {
1455            titulo : "AWSALB",
1456            tipo : "Teknisk cookie",
1457            descripcion : "Bruges til at angive den server, der er tildelt AW
1457S Load Balancer-tjenesten. Medmindre det er teknisk umuligt, så prøv at sikre, at serveren, der svarer på anmodninger fra en websession, altid er den samme.",
1458            duracion : "7 dage",
1459            idlabel : "cookies_accepted_google5",
1460            aceptar : ""
1461        },
1462        22: {
1463            titulo : "AWSALB",
1464            tipo : "Techninis slapukas",
1465            descripcion : "Naudojamas serveriui, priskirtam AWS Load Balancer paslaugai, nurodyti. Nebent techniškai neįmanoma, pabandykite užtikrinti, kad serveris, atsakantis į žiniatinklio seanso užklausas, visada būtų tas pats.",
1466            duracion : "7 dienos",
1467            idlabel : "cookies_accepted_google5",
1468            aceptar : ""
1469        },
1470        24: {
1471            titulo: "AWSALB",
1472            tipo: "Технічна cookie",
1473            descripcion: "Використовується для вказівки сервера, призначеного для служби AWS Load Balancer. Якщо це технічно можливо, намагається забезпечити, щоб на запити однієї веб-сесії завжди відповідав один і той самий сервер.",
1474            duracion: "7 днів",
1475            idlabel: "cookies_accepted_google5",
1476            aceptar: ""
1477        },
1478        25: {
1479            titulo : "AWSALB",
1480            tipo : "Техническа бисквитка",
1481            descripcion : "Използва се за указване на сървъра, назначен от услугата AWS Load Balancer. Освен ако не е технически невъзможно, се стреми сървърът, който отговаря на заявките по време на уеб сесията, винаги да бъде един и същ.",
1482            duracion : "7 дни",
1483            idlabel : "cookies_accepted_google5",
1484            aceptar : ""
1485        }
1486    },
1487};
1488
1489
1490
1491
1492
1493function obtiene_texto(idioma,cookie, es_google) {
1494    let txt_propietario = es_google ? 'google.com' : 'metricool.com';
1495
1496    var fila = `
1497    <tr>
1498        <td style="height:30px; width:89px">
1499            <p><strong>` + cookies_idiomas_plugin[cookie][idioma]["titulo"] + `</strong></p>
1500        </td>
1501        <td style="height:30px; width:47px">
1502            <p>` + cookies_idiomas_plugin[cookie][idioma]["tipo"] + `</p>
1503        </td>
1504        <td style="height:30px; width:246px">
1505            <p>` + cookies_idiomas_plugin[cookie][idioma]["descripcion"] + `</p>
1506        </td>
1507        <td style="height:30px; width:132px">
1508            <p>` + cookies_idiomas_plugin[cookie][idioma]["duracion"] + `</p>
1509        </td>
1510        <td style="height:30px; width:85px">
1511            <p>` + txt_propietario + `</p>
1512        </td>
1513<!--        <td style="height:77px; width:85px"><input id="` + cookies_idiomas_plugin[cookie][idioma]["idlabel"] + `" type="checkbox" /> <span style="color: grey">` + cookies_idiomas_plugin[cookie][idioma]["aceptar"] + `</span></td>-->
1514    </tr>
1515    `;
1516
1517    return fila;
1518}
1519
1520//let cookie_metricool = ['AWSALBCORS', 'JSESSIONID', '_cfduid', 'AWSALB'];
1521let cookie_anaytics = ['_ga', '_gid', '_gat', 'AMP_TOKEN', '_gac_[property-id]'];
1522
1523//let textoMetricoolCookies = '';
1524let textoAnalyticsCookies = '';
1525
1526/*$.each(cookie_metricool, function(key, val) {
1527    textoMetricoolCookies +=  obtiene_texto(idio, val, false);
1528});*/
1529$.each(cookie_anaytics, function(key, val) {
1530    textoAnalyticsCookies +=  obtiene_texto(idio, val, true);
1531});
1532
1533
1534function eventosAlIniciar()
1535{
1536    //cmabiar fotos propiedades
1537    $('.propiedad .flechaprev, .propiedad .flechanext').on('click', function(event){
1538        event.stopPropagation();
1539        event.preventDefault();
1540        cambiaFoto(this);
1541    });
1542
1543    $('body').on('click', '.custom-select-html', function(event){
1544        var $obj = typeof event.srcElement != 'undefined' ? $(event.srcElement) : $(event.target) ;
1545
1546        //si no es el elemento padre contenedor ppasssamos
1547        if(!$obj.hasClass('custom-select-html'))
1548            return true;
1549
1550        var $primerElemento = $obj.find('> *:first');
1551        if($primerElemento.is(':visible') === true) {
1552            $obj.find('> *').hide();
1553        }else{
1554            $('.custom-select-html').find('> *').hide();
1555            $obj.find('> *').slideDown(200);
1556        }
1557    });
1558
1559    $('.enlaceAcontacto > a').on('click', function(event){
1560        event.preventDefault();
1561        //$('html, body').animate({scrollTop:$(document).height()}, 'slow');
1562        if (document.getElementById("modulo-cabecera-1") != null){
1563            $('html, body').animate({ scrollTop: $(".contacto").offset().top - 165 }, 'slow');
1564        }
1565        else {
1566            $('html, body').animate({ scrollTop: $(".contacto").offset().top - 100 }, 'slow');
1567        }
1568    });
1569
1570    //elementos a ocultar automaticamente
1571    $('body').on('click', function(event){
1572        var objClick = typeof event.srcElement != 'undefined' ? event.srcElement : event.target ;
1573        ocultarEnClickHtml(objClick);
1574        ocultarCustomsSelectsClickHtml(objClick);
1575    });
1576
1577    //svg
1578    reemplazarSvgs();
1579
1580    eventosEnScroll();
1581
1582    /* Esto se ha puesto asi para que se tenga en cuenta el antesydespues de la propiedad ya que este no carga hasta que se cambia de imagen.
1583       Lo forzamos para que se muestre si lo tiene.
1584    */
1585
1586    if((typeof(arr_antesydespues)!="undefined" && arr_antesydespues.length > 1) && (actual == 'fichapromocion.php' || actual == 'fichapropiedad.php')){
1587        cambiaFoto($("#fichapropiedad-bloquevisor a.flechanext"));
1588        cambiaFoto($("#fichapropiedad-bloquevisor a.flechaprev"));
1589    }
1590
1591}
1592
1593//esta funcion coge el archivo .svg y lo sustituye por su contenido
1594//para asi poder cambiar los colores del svg
1595function reemplazarSvgs()
1596{
1597// For each image with an SVG class, execute the following function.
1598    $("img[src*='.svg']").each(function () {
1599        // Perf tip: Cache the image as jQuery object so that we don't use the selector muliple times.
1600        var $img = jQuery(this);
1601        // Get all the attributes.
1602        var attributes = $img.prop("attributes");
1603        // Get the image's URL.
1604        var imgURL = $img.attr("src");
1605        // Fire an AJAX GET request to the URL.
1606        $.get(imgURL, function (data) {
1607            // The data you get includes the document type definition, which we don't need.
1608            // We are only interested in the <svg> tag inside that.
1609            var $svg = $(data).find('svg');
1610            // Remove any invalid XML tags as per http://validator.w3.org
1611            $svg = $svg.removeAttr('xmlns:a');
1612            // Loop through original image's attributes and apply on SVG
1613            $.each(attributes, function() {
1614                $svg.attr(this.name, this.value);
1615            });
1616            // Replace image with new SVG
1617            $img.replaceWith($svg);
1618        });
1619    });
1620
1621}
1622
1623function marcaDesmarcaCheckboxTiposZonas($obj)
1624{
1625    var $objTituloSelect = $obj.closest('[original-txt]');
1626
1627    if($objTituloSelect.length === 0) return true; //si no existe el nombre original nos lo saltamos
1628
1629    var $elLabel = $obj.closest('.grupoTipoZona').find('span');
1630    var elLabelTxt = $elLabel.html();
1631    var nombreOriginal = $objTituloSelect.attr('original-txt').trim();
1632    var nombreActual = $objTituloSelect.attr('data-txt').trim();
1633    var nuevoTxt;
1634
1635    var esChecked = $obj.is(':checked');
1636
1637    if(nombreOriginal === nombreActual && esChecked) {
1638        $objTituloSelect.attr('data-txt', elLabelTxt);
1639        return true;
1640    }
1641
1642    if(esChecked) {
1643        nuevoTxt = elLabelTxt + ', ' + nombreActual;
1644    }else{
1645        var regEx = new RegExp(elLabelTxt + ", ", 'gi');
1646        if(nombreActual.match(regEx) !== null) {
1647            nuevoTxt = nombreActual.replace(regEx, '');
1648        }else{
1649            regEx = new RegExp('(, )?' + elLabelTxt, 'gi');
1650            nuevoTxt = nombreActual.replace(regEx, '');
1651        }
1652    }
1653
1654    if(nuevoTxt == '') { //si se ha quedado vacio ponemos el nombre original
1655        nuevoTxt = nombreOriginal;
1656    }
1657
1658    $objTituloSelect.attr('data-txt', nuevoTxt);
1659
1660}
1661
1662function labelCheckboxGruposTipos($obj)
1663{
1664    $obj.closest('.grupoTipoZona').find('input[type=checkbox]').click();
1665}
1666
1667function marcaDesmarcaGruposTipos($obj)
1668{
1669    $li = $obj.closest('li');
1670    if($obj.is(':checked')) { //marcamos
1671        $li.find('ul').slideDown(400);
1672        $li.find('.marcarTipoZona:not(:checked)').each(function(key, val){
1673            var $elObj = $(val);
1674            if(!$elObj.is(':checked')) {
1675                $elObj.click();
1676            }
1677        });
1678    } else { //desamarcamos
1679        $li.find('ul').slideUp(200);
1680        $li.find('.marcarTipoZona:checked').each(function(key, val){
1681            var $elObj = $(val);
1682            if($elObj.is(':checked')) {
1683                $elObj.click();
1684            }
1685        });
1686    }
1687}
1688
1689function marcarDesmarcarTodosTipos($obj)
1690{
1691    $ul = $obj.closest('ul.cajaGrupoTiposZonas');
1692    if($obj.is(':checked')) {
1693        $ul.find('ul').slideDown(400);
1694        $ul.find('.marcarGrupoTiposZonas').prop('checked', true);
1695        $ul.find('.marcarTipoZona').each(function(key, val){
1696            var $elObj = $(val);
1697            if(!$elObj.is(':checked')) {
1698                $elObj.click();
1699            }
1700        });
1701    } else {
1702        $ul.find('ul').slideUp(200);
1703        $ul.find('.marcarGrupoTiposZonas').prop('checked',false);
1704        $ul.find('.marcarTipoZona').each(function(key, val){
1705            var $elObj = $(val);
1706            if($elObj.is(':checked')) {
1707                $elObj.click();
1708            }
1709        });
1710    }
1711}
1712
1713function eventosEnScroll()
1714{
1715
1716    cargarFotosAlVuelo();
1717    cargarIframesAlVuelo();
1718
1719    $(window).on('scroll', function(event){
1720
1721        cargarFotosAlVuelo(event);
1722        cargarIframesAlVuelo(event);
1723
1724    });
1725}
1726
1727function cargarFotosAlVuelo(event)
1728{
1729    var posicionScroll = $(window).scrollTop();
1730    var altoVentana = posicionScroll + $(window).innerHeight();
1731    var posicionParaCargarFoto = altoVentana + 150;
1732    var posicionElemento, $obj, lafoto;
1733
1734    $('.fotosAlVuelo:not(.fotoCargada):not(.nofoto)').each(function(key, val){
1735        $obj = $(this);
1736         posicionElemento = $obj.offset().top;
1737         if(posicionParaCargarFoto < posicionElemento) return true; //si no ha llegado a la aaltura del elemento continuamos con el siguiente
1738
1739         lafoto = $obj.attr('cargaFoto');
1740         if(lafoto == null || lafoto == '') return true;
1741
1742         if ($obj.attr('imgResponsive')=="true")
1743             lafoto=lafoto.replace("_*.", "_"+letraFoto+".");
1744
1745        $obj.css('background-image', 'url("' + lafoto + '")');
1746        $obj.addClass('fotoCargada');
1747
1748        // Si la foto tiene marca "Generada por IA", recalcular posicion de la marca
1749        if ($obj.hasClass('generada-ia') && typeof ajustarPosicionMarcaIA === 'function') {
1750            ajustarPosicionMarcaIA($obj);
1751        }
1752    });
1753}
1754
1755function cargarIframesAlVuelo(event)
1756{
1757    var posicionScroll = $(window).scrollTop();
1758    var altoVentana = posicionScroll + $(window).innerHeight();
1759    var posicionParaCargarFoto = altoVentana + 250;
1760    var posicionElemento, $obj, elSrc;
1761
1762    $('.srcAlVuelo:not(.srcCargado):not(.nofoto)').each(function(key, val){
1763        $obj = $(this);
1764         posicionElemento = $obj.offset().top;
1765         if(posicionParaCargarFoto < posicionElemento) return true; //si no ha llegado a la aaltura del elemento continuamos con el siguiente
1766
1767         elSrc = $obj.attr('rutaSrc');
1768         if(elSrc == null || elSrc == '') return true;
1769
1770        $obj.attr('src', elSrc);
1771        $obj.css('background-image', 'url("' + elSrc + '")');
1772        $obj.addClass('srcCargado');
1773    });
1774}
1775
1776function obtenerLetraFoto() {
1777    var ancho=window.screen.width;
1778
1779    switch (true) {
1780        case ancho<=680 :  return 's'; break;
1781        case ancho<=1280 : return 'm'; break;
1782        default : return 'l'; break;
1783    }
1784}
1785
1786function cambiaFoto(obj)
1787{
1788    var $obj = $(obj);
1789    var $objPropiedad = $obj.closest('.propiedad');
1790    var $objFoto = $objPropiedad.hasClass('fotopropiedad') ? $objPropiedad : $objPropiedad.find('.fotopropiedad');
1791    var tipoPropiedad = $objPropiedad.attr('tipo');
1792    var indicePropiedad = $objPropiedad.attr('indice');
1793    var siguiente = true;
1794    if($obj.hasClass('flechaprev')) {
1795        siguiente = false;
1796    }else if($obj.hasClass('flechanext')) {
1797        siguiente = true;
1798    }else{
1799        console.error('No tiene clase siguiente o anterior');
1800        return false;
1801    }
1802
1803
1804    if(typeof listados[tipoPropiedad] == 'undefined' || typeof listados[tipoPropiedad] != 'undefined' &&  typeof listados[tipoPropiedad][indicePropiedad] == 'undefined') {
1805        console.error('no se ha encontrado el objeto para el listado');
1806        return false;
1807    }
1808
1809    var objDatosPropiedad = listados[tipoPropiedad][indicePropiedad];
1810
1811    var fotoLetra = objDatosPropiedad.fotoletra;
1812    var numfotos = parseInt(objDatosPropiedad.numfotos);
1813
1814    if(numfotos === 0 || numfotos === 1) return false;
1815
1816    var fotoActual = $objFoto.css('background-image').match(/url\s*\(([^\)]+)\)/);
1817    if(!fotoActual || typeof fotoActual[1] == 'undefined') {
1818        console.error('No hay imagen en el style');
1819        return false;
1820    }
1821    fotoActual = fotoActual[1].replace(/"/g, '').replace(/'/g, '');
1822
1823    let esMiniatura = fotoActual.includes('s.jpg');
1824
1825    var numFotoActual = fotoActual.match(/\/[0-9]+-([0-9]+)/);
1826
1827    if(typeof numFotoActual[1] == 'undefined') {
1828        console.error('No se ha encontrado el numfoto actual');
1829        return false;
1830    }
1831
1832    numFotoActual = parseInt(numFotoActual[1]);
1833    var nuevaFoto;
1834
1835    if(siguiente) {
1836        if(numFotoActual >= numfotos)
1837            nuevaFoto = 1;
1838        else
1839            nuevaFoto = numFotoActual + 1;
1840    }else{
1841        if(numFotoActual <= 1)
1842            nuevaFoto = numfotos;
1843        else
1844            nuevaFoto = numFotoActual - 1;
1845    }
1846
1847    if (typeof(arr_antesydespues)!="undefined") {
1848     if ($(obj).closest("#fichapropiedad-bloquevisor").attr("tipo")=="fichapropiedad") {
1849         if(arr_antesydespues[nuevaFoto]!=undefined) {
1850            $(obj).siblings(".verAntesYDespues").attr('fotoActual',nuevaFoto);
1851            $(obj).siblings(".verAntesYDespues").fadeIn(80);
1852         } else {
1853            $(obj).siblings(".verAntesYDespues").attr('fotoActual',0);
1854            $(obj).siblings(".verAntesYDespues").fadeOut(50);
1855         }
1856     }
1857    }
1858
1859    var sufijo = "";
1860    switch (objDatosPropiedad.estadoficha) {
1861        case 1: case 7: case null: case 40: case 41: case 18:
1862            sufijo = "";
1863            break;
1864        default:
1865            sufijo = "?n";
1866            break;
1867
1868    }
1869
1870    let appendMiniatura = esMiniatura ? 's' : '';
1871
1872    var foto = 'https://fotos' + objDatosPropiedad.srvfotos + '.apinmo.com/' + objDatosPropiedad.numagencia + '/' + objDatosPropiedad.cod_ofer + '/' + fotoLetra + '-' + nuevaFoto + appendMiniatura + '.jpg' + sufijo;
1873    $objFoto.css('background-image', 'url("' + foto + '")');
1874
1875    // Marca de agua "Generada por IA"
1876    // fotos_generadas_ia tiene el mapa {numFoto: true} por foto.
1877    // Si no está disponible (ej: $fotos_etiquetas no cargado en esta página),
1878    // usamos fotoprincipal_generada_ia como fallback solo para la foto 1.
1879    var esGeneradaIA = false;
1880    if (objDatosPropiedad.fotos_generadas_ia && Object.keys(objDatosPropiedad.fotos_generadas_ia).length > 0) {
1881        esGeneradaIA = !!objDatosPropiedad.fotos_generadas_ia[nuevaFoto];
1882    } else if (nuevaFoto === 1 && objDatosPropiedad.fotoprincipal_generada_ia === '1') {
1883        esGeneradaIA = true;
1884    }
1885
1886    if (esGeneradaIA) {
1887        $objFoto.addClass('generada-ia');
1888        // Recalcular posicion de la marca (solo afecta en visor con contain)
1889        if (typeof ajustarPosicionMarcaIA === 'function') {
1890            ajustarPosicionMarcaIA($objFoto);
1891        }
1892    } else {
1893        $objFoto.removeClass('generada-ia');
1894    }
1895
1896}
1897
1898function validarEmail(email) {
1899    var pattern = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i;
1900    return pattern.test(email);
1901}
1902
1903$(document).ready(function(){
1904    eventosAlIniciar();
1905});
1906
1907function recargarCss() {
1908    var queryString = '?reload=' + new Date().getTime();
1909    $('link[rel="stylesheet"]').each(function () {
1910        // this.href = this.href.replace(/\?.*|$/, queryString);
1911        this.href = this.href+queryString;
1912    });
1913}
1914
1915function ocultarEnClickHtml(obj)
1916{
1917    var $obj = $(obj);
1918
1919    var $esClickHtmlObj = false;
1920
1921    if($obj.hasClass('ocultarEnClickHtml'))
1922        $esClickHtmlObj = $obj;
1923    if($obj.closest('.ocultarEnClickHtml').length > 0)
1924        $esClickHtmlObj = $obj.closest('.ocultarEnClickHtml:first');
1925    //si no se esta clickando el menu del movil lo ocultamos
1926    if($obj.closest('.header-menu').length == 0 && !$obj.hasClass('.header-menu')) {
1927        $('.header-menu').removeClass('xvisible')
1928    }
1929
1930    if($esClickHtmlObj === false) {
1931        $('.ocultarEnClickHtml').hide();
1932    }else{
1933        $('.ocultarEnClickHtml').each(function(key, val){
1934            $objEach = $(val);
1935            if($esClickHtmlObj === $objEach)
1936                return true;
1937
1938            $objEach.hide();
1939        });
1940    }
1941
1942}
1943
1944function ocultarCustomsSelectsClickHtml(obj)
1945{
1946    var $obj = $(obj);
1947    //es un IF raro pero lo que viene a hacer comprueba si el objeto al que se le ha hecho click su padre o abuelo o bis... es un .custom-select-html
1948    // luego comprueba si se ha hecho click sobre el propio custom-select-html si es el mismo que hay abierto si lo hay
1949    //si cumple una de estas condiciones devuelve false para que siga la vida tal cual
1950    if($obj.closest('.custom-select-html').length > 0 || ($obj.hasClass('custom-select-html') && $('.custom-select-html > *:visible').closest('.custom-select-html') == $obj))
1951        return false;
1952
1953    $('.custom-select-html > *:visible').slideUp(100);
1954}
1955
1956//hay que pasarle objeto en plan:
1957// {'res' : xNumelementosPorPagina}
1958function anyadirParamentroAurlYredirigir(obj, hastag)
1959{
1960
1961    if(hastag == null)
1962        hastag = '';
1963    if(hastag != '' && hastag.match('#') == null)
1964        hastag = '#' + hastag;
1965
1966
1967    //let url_explode = window.location.href.split('?');
1968
1969    //let url = window.location.href.replace(`/${idio_txt}/?`, '/?').replace(`/${idio_txt}?`, '/?');
1970
1971    let regex = new RegExp(`\/${idio_txt}\/?$`);
1972    let url = window.location.href.replace(regex, '/');
1973    var urlActual = new URL(url);
1974
1975    //var urlActual = new URL(window.location.href);
1976
1977    $.each(obj, function(key, val){
1978        var parametroActual = urlActual.searchParams.get(key);
1979
1980        if(parametroActual == null) {
1981            urlActual.searchParams.append(key, val);
1982        }else{
1983            urlActual.searchParams.set(key, val);
1984        }
1985    });
1986
1987    if(hastag != '')
1988        urlActual.hash = hastag;
1989
1990    window.location.href = urlActual.href;
1991
1992}
1993
1994
1995function anyadirFavorito(cod_ofer){
1996    var cookies_permitidas = document.cookie.split("; ").includes("cookies_accepted_vdf=1");
1997    if (cookies_permitidas) {
1998        parametros="tipo=favoritas&cod_ofer="+cod_ofer;
1999        var respuesta=lanzaajax("POST","modulos/__ajx/setCookies.php",parametros,"");
2000        var msj=document.getElementById('propiedadfavorita').value;
2001        alert(msj);
2002        document.querySelector("#fichapropiedad-titulos #boton_favoritos").setAttribute('onclick','quitarFavorito('+cod_ofer+')');
2003        document.querySelector("#fichapropiedad-titulos #boton_favoritos").className = "titulos-favoritosQuitar";
2004        document.querySelector("#fichapropiedad-titulos #boton_descartar").className = "titulos-descartadas";
2005        document.querySelector("#fichapropiedad-titulos #boton_descartar").setAttribute('onclick','anyadirDescartado('+cod_ofer+')');
2006    } else {
2007        alert('Las cookies de Favoritos están desactivadas');
2008    }
2009
2010}
2011
2012function quitarFavorito(cod_ofer){
2013
2014    var cookies_permitidas = document.cookie.split("; ").includes("cookies_accepted_vdf=1");
2015    if (cookies_permitidas) {
2016        parametros="tipo=favoritas&cod_ofer="+cod_ofer+"&eliminar=1";
2017        var respuesta=lanzaajax("POST","modulos/__ajx/setCookies.php",parametros,"");
2018        var msj=document.getElementById('propiedadeliminadafavorita').value;
2019        alert(msj);
2020        document.querySelector("#fichapropiedad-titulos #boton_favoritos").setAttribute('onclick','anyadirFavorito('+cod_ofer+')');
2021        document.querySelector("#fichapropiedad-titulos #boton_favoritos").className = "titulos-favoritos";
2022    } else {
2023        alert('Las cookies de Favoritos están desactivadas');
2024    }
2025
2026}
2027
2028function anyadirDescartado(cod_ofer){
2029    var cookies_permitidas = document.cookie.split("; ").includes("cookies_accepted_vdf=1");
2030    if (cookies_permitidas) {
2031        parametros="tipo=descartados&cod_ofer="+cod_ofer;
2032        var respuesta=lanzaajax("POST","modulos/__ajx/setCookies.php",parametros,"");
2033        var msj=document.getElementById('propiedaddescartada').value;
2034        alert(msj);
2035
2036        document.querySelector("#fichapropiedad-titulos #boton_descartar").setAttribute('onclick','quitarDescartado('+cod_ofer+')');
2037        document.querySelector("#fichapropiedad-titulos #boton_descartar").className = "titulos-descartadasQuitar";
2038        document.querySelector("#fichapropiedad-titulos #boton_favoritos").className = "titulos-favoritos";
2039        document.querySelector("#fichapropiedad-titulos #boton_favoritos").setAttribute('onclick','anyadirFavorito('+cod_ofer+')');
2040    } else {
2041        alert('Las cookies de Descartado están desactivadas');
2042    }
2043
2044}
2045
2046function quitarDescartado(cod_ofer){
2047    var cookies_permitidas = document.cookie.split("; ").includes("cookies_accepted_vdf=1");
2048    if (cookies_permitidas) {
2049        parametros="tipo=descartados&cod_ofer="+cod_ofer+"&eliminar=1";
2050        var respuesta=lanzaajax("POST","modulos/__ajx/setCookies.php",parametros,"");
2051        var msj=document.getElementById('propiedadeliminadadescartada').value;
2052        alert(msj);
2053        document.querySelector("#fichapropiedad-titulos #boton_descartar").setAttribute('onclick','anyadirDescartado('+cod_ofer+')');
2054        document.querySelector("#fichapropiedad-titulos #boton_descartar").className = "titulos-descartadas";
2055    } else {
2056        alert('Las cookies de Descartado están desactivadas');
2057    }
2058
2059
2060}
2061
2062function alerta(texto, modal)
2063{
2064    if(modal == null)
2065        modal = false;
2066
2067    var html;
2068    html = '<div class="cajaNegraAlerta">';
2069    if(modal)
2070        html +=     '<div class="cajaAlertaContenedor cajaAlertaContenedorModal">';
2071    else
2072        html +=     '<div class="cajaAlertaContenedor">';
2073    html +=         '<div class="cajaAlertaTxt">';
2074    html +=             texto;
2075    html +=         '</div>';
2076    if(!modal)
2077        html +=         '<button class="cajaAlertaAceptar" onclick="cerrarAlerta(this)">' + $('#aceptar_modal').val() + '</button>';
2078    html +=     '</div>';
2079    html += '</div>';
2080
2081    $('body').append(html);
2082}
2083
2084function cerrarAlerta(obj)
2085{
2086    $(obj).closest('.cajaNegraAlerta').remove();
2087}
2088
2089function modalNuestra(idCapa, tituloModal)
2090{
2091
2092    var html = '';
2093    var contenido = $('#' + idCapa).html();
2094
2095    if(contenido != '') {
2096        $('#' + idCapa + ' [id]').each(function(key, val){
2097           var xId = $(val).attr('id');
2098           var nuevaId = xId + '__tmp__';
2099           $(val).attr('id', nuevaId);
2100        });
2101    }
2102
2103    html += '<div class="cajaNegraAlerta" capa="' + idCapa + '">';
2104    html += '<div class="modalNuestra">';
2105    html += '<div class="cajaCabeceraModalNuestra">';
2106    html += '<h4>' + tituloModal + '</h4>';
2107    html += '<span onclick="cerrarModalNuestra(this);">x</span>';
2108    html += '</div>';
2109    html += '<div class="modalNuestraCont">';
2110    html += contenido;
2111    html += '</div>';
2112    html += '</div>';
2113    html += '</div>';
2114
2115    $('body').append(html);
2116
2117}
2118
2119
2120// En caso de aceptar todas cookies en el aviso central
2121function cookieHideAceptarMensajeCentro() {
2122    var now = new Date();
2123    var time = now.getTime();
2124    var expireTime = time + 1000*31104000;
2125    now.setTime(expireTime);
2126    var tiempo = ";expires=" + now.toGMTString() + ';path=/';
2127    //var tiempo = ";max-age=" + "99999";
2128    document.cookie="cookies_accepted=1" + tiempo;
2129    document.cookie="cookies_accepted_vdf=1" + tiempo;
2130    document.cookie="cookies_accepted_add_1=1" + tiempo;
2131    document.cookie="cookies_accepted_google=1" + tiempo;
2132    document.cookie="cookies_accepted_google_analytics=0" + tiempo;
2133
2134    var parametros="cookies_accepted=1&cookies_accepted_vdf=1&cookies_accepted_add_1=1";
2135    parametros += "&cookies_accepted_google=1";
2136    var respuesta=lanzaajax("POST","modulos/__ajx/setVariableSession.php",parametros,"");
2137}
2138
2139function cookieHideRechazarMensajeCentro() {
2140    var now = new Date();
2141    var time = now.getTime();
2142    var expireTime = time + 1000*31104000;
2143    now.setTime(expireTime);
2144    var tiempo = ";expires=" + now.toGMTString() + ';path=/';
2145    //var tiempo = ";max-age=" + "99999";
2146    document.cookie="cookies_accepted=0" + tiempo;
2147    document.cookie="cookies_accepted_vdf=0" + tiempo;
2148    document.cookie="cookies_accepted_add_1=0" + tiempo;
2149    document.cookie="cookies_accepted_google=0" + tiempo;
2150
2151    var parametros="cookies_accepted=0&cookies_accepted_vdf=0&cookies_accepted_add_1=0";
2152    parametros += "&cookies_accepted_google=0";
2153    var respuesta=lanzaajax("POST","modulos/__ajx/setVariableSession.php",parametros,"");
2154}
2155
2156function desplegarTextoCookiesAviso() {
2157    if (document.getElementById('caja_texto_cookies_entrada').style.visibility != 'hidden') {
2158        $('#caja_texto_cookies_entrada').hide();
2159        $('#caja_texto_cookies_textocompleto').show();
2160        document.getElementById('caja_texto_cookies_textocompleto').style.overflow = 'auto';
2161    }
2162
2163}
2164
2165
2166function getCookie(nombre) {
2167    let cookies = document.cookie.split(';');
2168    for (let i = 0; i < cookies.length; i++) {
2169        let c = cookies[i].trim();
2170        if (c.indexOf(nombre + "=") === 0) {
2171            return c.substring((nombre + "=").length, c.length);
2172        }
2173    }
2174    return "0";
2175}
2176
2177function comprobarCheckboxPoliticaCookies(){
2178    if(getCookie('cookies_accepted') && getCookie('cookies_accepted') != 0){
2179        document.querySelector('#cookies_accepted').checked = true;
2180    }else{
2181        document.querySelector('#cookies_accepted').checked = false;
2182    }
2183    if(getCookie('cookies_accepted_vdf') && getCookie('cookies_accepted_vdf') != 0){
2184        document.querySelector('#cookies_accepted_vdf').checked  = true;
2185    }else{
2186        document.querySelector('#cookies_accepted_vdf').checked  = false;
2187    }
2188
2189    if(getCookie('cookies_accepted_add_1') && getCookie('cookies_accepted_add_1') != 0){
2190        document.querySelector('#cookies_accepted_add_1').checked  = true;
2191    }else{
2192        document.querySelector('#cookies_accepted_add_1').checked  = false;
2193    }
2194
2195    if(getCookie('cookies_accepted_google') && getCookie('cookies_accepted_google') != 0){
2196        document.querySelector('#cookies_accepted_google').checked  = true;
2197    }else{
2198        document.querySelector('#cookies_accepted_google').checked  = false;
2199    }
2200}
2201
2202function cerrarModalNuestra(obj)
2203{
2204
2205    var $cajaNegra = $(obj).closest('.cajaNegraAlerta');
2206    var capa = $cajaNegra.attr('capa');
2207
2208    $('#' + capa + ' [id]').each(function(key, val){
2209        var xId = $(val).attr('id');
2210        var nuevaId = xId.replace('__tmp__', '');
2211        $(val).attr('id', nuevaId);
2212    });
2213
2214
2215    $cajaNegra.remove();
2216}
2217
2218function modal(nbcapa)
2219{
2220
2221    if (nbcapa=="ventanalertas") lanzaajax("POST","pantallaalertas_raul.php","","ventanalertas");
2222
2223    var activaventana=document.getElementById(nbcapa);
2224    var ventana=document.getElementById("opaca");
2225
2226    ventana.style.display="block";
2227    ventana.style.zIndex=90;
2228
2229
2230    /* if(navigator.userAgent.indexOf("MSIE 6.0")>=0 && document.getElementById("limciudad")!=null) {
2231     document.getElementById("limciudad").style.display="none";
2232     document.getElementById("liminmociudad.zonas").style.display="none";
2233     }*/
2234
2235    if (activaventana.style.display!="block")
2236    {
2237        activaventana.style.display="block";
2238        activaventana.style.zIndex=100;
2239        centrarventana(activaventana);
2240    }
2241
2242}
2243
2244//ejemplos
2245//var parametros = {'pepico':'juanico', 'menganico':'pascualico'};
2246//var opcionesJson = {'dataType' : 'json'};
2247/*
2248//en esta funcion de callback cuando se completa la peticion se trabjaa con json deuvelto, ya que el datatype que se le ha pasado es json
2249var miFuncionDeRespuesta = function(data) {
2250                                            if(!data.correcto) { //ha fallado por algun motivo la peticion y se ha devuelto en el json que correcto == false
2251                                                alert(data.error)  //imprimimos el error que viene devuelto en el json que ha sido previamente creado en el fichero de la peticion
2252                                            }
2253                                            console.log(data); //imprime el json devuelto como objeto
2254                                        }
2255
2256se puede usar cualquier funcion que se halla creado previamente por ejemplo asi:
2257
2258function miFuncionDeRespuesta (data)
2259{
2260                                            if(!data.correcto) { //ha fallado por algun motivo la peticion y se ha devuelto en el json que correcto == false
2261                                                alert(data.error)  //imprimimos el error que viene devuelto en el json que ha sido previamente creado en el fichero de la peticion
2262                                            }
2263                                            console.log(data); //imprime el json devuelto como objeto
2264
2265}
2266 */
2267
2268//lanzaajax2('index.php', parametros, miFuncionDeRespuesta, opcionesJson)
2269
2270function lanzaajax2(url, datosJson, callback, opcionesJson)
2271{
2272
2273    var opciones = {
2274                        'method'            : 'post',
2275                        'url'               : url,
2276                        'dataType'          : 'html',
2277                        'async'             : true
2278    };
2279
2280    if(typeof opcionesJson == 'object') {
2281        $.each(opcionesJson, function(key, val){
2282            opciones[key] = val;
2283        });
2284    }
2285
2286    if(typeof datosJson == 'object')
2287        opciones.data = datosJson;
2288
2289    $.ajax(opciones)
2290        .done(function(data){
2291            if(typeof callback == 'function')
2292                callback(data)
2293        })
2294        .fail(function(error){
2295            console.error('ha fallado la petición lanzaajax2');
2296            console.error(error);
2297        });
2298
2299}
2300
2301function lanzaajax(tipo,url,parametros,capa, asincrono, xSuccess){
2302    if (capa==null) capa="";
2303    if(asincrono == null) asincrono = false;
2304    if(xSuccess == null) xSuccess = false;
2305    var respuesta='';
2306
2307    $.ajax({
2308        url: url,
2309        type: tipo,
2310        data: parametros,
2311        dataType:"html",
2312        async:asincrono,
2313        errror:muestraError,
2314        success: function(html){
2315            if(xSuccess) {
2316                xSuccess(html);
2317            }
2318            if(capa!="")
2319                document.getElementById(capa).innerHTML=html;
2320            respuesta=html;
2321        }
2322    });
2323    return respuesta;
2324
2325}
2326
2327function muestraError(html){
2328    alert(html);
2329}
2330
2331
2332function cargarCiudadesEnSelectCiudades(keyprov, $objetoDestino, todaslasciudades, optionTodas, publicaInmueble)
2333{
2334
2335    var parametros = {};
2336    parametros.keyprov = keyprov;
2337
2338    if(todaslasciudades == null || !todaslasciudades) {
2339        todaslasciudades = 0;
2340    }else{
2341        todaslasciudades = 1;
2342    }
2343
2344    if(optionTodas == null || !optionTodas) {
2345        optionTodas = 0;
2346    }else{
2347        optionTodas = 1;
2348    }
2349
2350    if(publicaInmueble == null || !publicaInmueble) {
2351        publicaInmueble = 0;
2352    }else{
2353        publicaInmueble = 1;
2354    }
2355
2356    parametros.todaslasciudades = todaslasciudades;
2357    parametros.optionTodas = optionTodas;
2358    parametros.publicaInmueble = publicaInmueble;
2359
2360    $.ajax({
2361        'url'           : 'modulos/__ajx/buscador/rellenaSelectCiudades.php',
2362        'method'        : 'post',
2363        'data'          : parametros,
2364        'dataType'      : 'json'
2365    })
2366        .done(function(data){
2367            if(!data.correcto) {
2368                alert('ha fallado al cargar las ciudades');
2369                return false;
2370            }
2371
2372            $objetoDestino.html(data.html);
2373        })
2374        .fail(function(e){
2375            console.error('Ha fallado al pedir ciudades con error:');
2376            console.error(e);
2377            alert('ha fallado al cargar las ciudades')
2378        });
2379}
2380
2381function cargaLoading()
2382{
2383    var html;
2384    html = '<div class="cajaNegraLoading">';
2385    html += '<img src="img/loading_fff.gif">';
2386    html += '</div>';
2387
2388    $('body').append(html);
2389}
2390
2391function eliminarLoading()
2392{
2393    $('.cajaNegraLoading').remove();
2394}
2395
2396//deja solo introducir numeros
2397function solonumeros(e){
2398    var tecla_codigo = (document.all) ? e.keyCode : e.which;
2399    if(tecla_codigo==8)return true;
2400    var patron =/[0-9]/;
2401    if (tecla_codigo!=0) {
2402        var tecla_valor = String.fromCharCode(tecla_codigo);
2403        return patron.test(tecla_valor);
2404    }
2405}
2406// En caso de aceptar cookies
2407function cookieHide() {
2408    // var cookie1 = document.getElementById("cookies_accepted_ca").value;
2409    // var cookie2 = document.getElementById("cookies_accepted_phpsid").value;
2410    // var cookie3 = document.getElementById("cookies_accepted_vdf").value;
2411    // var cookie4 = document.getElementById("cookies_accepted_add_1").value;
2412    // var cookie5 = document.getElementById("cookies_accepted_add_2").value;
2413    // var cookie6 = document.getElementById("cookies_accepted_google1").value;
2414    // var cookie7 = document.getElementById("cookies_accepted_google2").value;
2415    // var cookie8 = document.getElementById("cookies_accepted_google3").value;
2416    // var cookie9 = document.getElementById("cookies_accepted_google3").value;
2417
2418
2419
2420    // document.querySelector('#mas-detalles-cookies').style.display === 'block' --> False oculto
2421    // document.querySelector('#mas-detalles-cookies').style.display === 'block' --> True mostrado
2422    if (document.querySelector('#mas-detalles-cookies').style.display === 'block') { // mostrado
2423
2424
2425        if (document.querySelector('#cookies_accepted_vdf') != null)
2426            var cookie3 = document.querySelector('#cookies_accepted_vdf').checked;
2427        else
2428            var cookie3 = false;
2429        if (document.querySelector('#cookies_accepted_add_1') != null)
2430            var cookie4 = document.querySelector('#cookies_accepted_add_1').checked;
2431        else
2432        /*    var cookie4 = false;
2433        if (document.querySelector('#cookies_accepted_metric') != null)
2434            var cookie5 = document.querySelector('#cookies_accepted_metric').checked;
2435        else
2436            var cookie5 = false;*/
2437        if (document.querySelector('#cookies_accepted_google') != null)
2438            var cookie6 = document.querySelector('#cookies_accepted_google').checked;
2439        else
2440            var cookie6 = false;
2441
2442
2443        var now = new Date();
2444        var time = now.getTime();
2445        var expireTime = time + 1000*31104000;
2446        now.setTime(expireTime);
2447        var tiempo = ";expires=" + now.toGMTString() + ';path=/';
2448        //var tiempo = ";max-age=" + "99999";
2449        document.getElementById("aviso-cookies").style.visibility = "hidden";
2450        document.getElementById("aviso-cookies").innerHTML = "";
2451        //document.cookie="cookies_accepted=1" . "; expires=" + date;
2452        document.cookie="cookies_accepted=1" + tiempo;
2453        //document.cookie="cookies_accepted_vdf=1" + "; max-age=31536000";
2454        //document.cookie="cookies_accepted_add_1=1" + "; max-age=31536000";
2455
2456        //var parametros="cookies_accepted=1&cookies_accepted_vdf=1&cookies_accepted_add_1=1";
2457        var parametros="cookies_accepted=1";
2458        if (cookie3) {
2459            parametros += "&cookies_accepted_vdf=1";
2460            document.cookie="cookies_accepted_vdf=1" + tiempo;
2461        } else {
2462            parametros += "&cookies_accepted_vdf=0";
2463            document.cookie="cookies_accepted_vdf=0" + tiempo;
2464        }
2465
2466        if (cookie4) {
2467            parametros += "&cookies_accepted_add_1=1";
2468            document.cookie="cookies_accepted_add_1=1" + tiempo;
2469        } else {
2470            parametros += "&cookies_accepted_add_1=0";
2471            document.cookie="cookies_accepted_add_1=0" + tiempo;
2472        }
2473
2474        /*if (cookie5) {
2475            parametros += "&cookies_accepted_metric=1";
2476            document.cookie="cookies_accepted_metric=1" + tiempo;
2477        } else {
2478            parametros += "&cookies_accepted_metric=0";
2479            document.cookie="cookies_accepted_metric=0" + tiempo;
2480        }*/
2481
2482        if (cookie6) {
2483            parametros += "&cookies_accepted_google=1";
2484            document.cookie="cookies_accepted_google=1" + tiempo;
2485        } else {
2486            parametros += "&cookies_accepted_google=0";
2487            document.cookie="cookies_accepted_google=0" + tiempo;
2488        }
2489
2490        var respuesta=lanzaajax("POST","modulos/__ajx/setVariableSession.php",parametros,"");
2491
2492
2493
2494    } else { // oculto
2495        cookieHideAceptar();
2496    }
2497
2498
2499}
2500
2501
2502
2503// En caso de aceptar cookies
2504function cookieHiveAptSelMsgCentro() {
2505    // var cookie1 = document.getElementById("cookies_accepted_ca").value;
2506    // var cookie2 = document.getElementById("cookies_accepted_phpsid").value;
2507    // var cookie3 = document.getElementById("cookies_accepted_vdf").value;
2508    // var cookie4 = document.getElementById("cookies_accepted_add_1").value;
2509    // var cookie5 = document.getElementById("cookies_accepted_add_2").value;
2510    // var cookie6 = document.getElementById("cookies_accepted_google1").value;
2511    // var cookie7 = document.getElementById("cookies_accepted_google2").value;
2512    // var cookie8 = document.getElementById("cookies_accepted_google3").value;
2513    // var cookie9 = document.getElementById("cookies_accepted_google3").value;
2514
2515
2516    if (document.querySelector('#cookies_accepted_vdf') != null)
2517        var cookie3 = document.querySelector('#cookies_accepted_vdf').checked;
2518    else
2519        var cookie3 = false;
2520    if (document.querySelector('#cookies_accepted_add_1') != null)
2521        var cookie4 = document.querySelector('#cookies_accepted_add_1').checked;
2522    else
2523        var cookie4 = false;
2524    /*if (document.querySelector('#cookies_accepted_metric') != null)
2525        var cookie5 = document.querySelector('#cookies_accepted_metric').checked;
2526    else
2527        var cookie5 = false;*/
2528    if (document.querySelector('#cookies_accepted_google') != null)
2529        var cookie6 = document.querySelector('#cookies_accepted_google').checked;
2530    else
2531        var cookie6 = false;
2532
2533
2534    var now = new Date();
2535    var time = now.getTime();
2536    var expireTime = time + 1000*31104000;
2537    now.setTime(expireTime);
2538    var tiempo = ";expires=" + now.toGMTString() + ';path=/';
2539    //var tiempo = ";max-age=" + "99999";
2540    //document.cookie="cookies_accepted=1" . "; expires=" + date;
2541    document.cookie="cookies_accepted=1" + tiempo;
2542    //document.cookie="cookies_accepted_vdf=1" + "; max-age=31536000";
2543    //document.cookie="cookies_accepted_add_1=1" + "; max-age=31536000";
2544
2545    //var parametros="cookies_accepted=1&cookies_accepted_vdf=1&cookies_accepted_add_1=1";
2546    var parametros="cookies_accepted=1";
2547    if (cookie3) {
2548        parametros += "&cookies_accepted_vdf=1";
2549        document.cookie="cookies_accepted_vdf=1" + tiempo;
2550    } else {
2551        parametros += "&cookies_accepted_vdf=0";
2552        document.cookie="cookies_accepted_vdf=0" + tiempo;
2553    }
2554
2555    if (cookie4) {
2556        parametros += "&cookies_accepted_add_1=1";
2557        document.cookie="cookies_accepted_add_1=1" + tiempo;
2558    } else {
2559        parametros += "&cookies_accepted_add_1=0";
2560        document.cookie="cookies_accepted_add_1=0" + tiempo;
2561    }
2562
2563    /*if (cookie5) {
2564        parametros += "&cookies_accepted_metric=1";
2565        document.cookie="cookies_accepted_metric=1" + tiempo;
2566    } else {
2567        parametros += "&cookies_accepted_metric=0";
2568        document.cookie="cookies_accepted_metric=0" + tiempo;
2569    }*/
2570
2571    if (cookie6) {
2572        parametros += "&cookies_accepted_google=1";
2573        document.cookie="cookies_accepted_google=1" + tiempo;
2574    } else {
2575        parametros += "&cookies_accepted_google=0";
2576        document.cookie="cookies_accepted_google=0" + tiempo;
2577    }
2578
2579    var respuesta=lanzaajax("POST","modulos/__ajx/setVariableSession.php",parametros,"");
2580
2581}
2582
2583
2584
2585// En caso de rechazar cookies
2586function cookieHideRechazar() {
2587    document.getElementById("aviso-cookies").style.visibility = "hidden";
2588    document.getElementById("aviso-cookies").innerHTML = "";
2589
2590    var now = new Date();
2591    var time = now.getTime();
2592    var expireTime = time + 1000*31104000;
2593    now.setTime(expireTime);
2594    var tiempo = ";expires=" + now.toGMTString() + ';path=/';
2595    //var tiempo = ";max-age=" + "99999";
2596    document.cookie="cookies_accepted=0" + tiempo;
2597    document.cookie="cookies_accepted_vdf=0" + tiempo;
2598    document.cookie="cookies_accepted_add_1=0" + tiempo;
2599    //document.cookie="cookies_accepted_metric=0" + tiempo;
2600    document.cookie="cookies_accepted_google=0" + tiempo;
2601
2602    var parametros="cookies_accepted=0&cookies_accepted_vdf=0&cookies_accepted_add_1=0";
2603    parametros += "&cookies_accepted_google=0";
2604    var respuesta=lanzaajax("POST","modulos/__ajx/setVariableSession.php",parametros,"");
2605}
2606
2607
2608// En caso de aceptar todas cookies
2609function cookieHideAceptar() {
2610    document.getElementById("aviso-cookies").style.visibility = "hidden";
2611    document.getElementById("aviso-cookies").innerHTML = "";
2612
2613    var now = new Date();
2614    var time = now.getTime();
2615    var expireTime = time + 1000*31104000;
2616    now.setTime(expireTime);
2617    var tiempo = ";expires=" + now.toGMTString() + ';path=/';
2618    //var tiempo = ";max-age=" + "99999";
2619    document.cookie="cookies_accepted=1" + tiempo;
2620    document.cookie="cookies_accepted_vdf=1" + tiempo;
2621    document.cookie="cookies_accepted_add_1=1" + tiempo;
2622    //document.cookie="cookies_accepted_metric=1" + tiempo;
2623    document.cookie="cookies_accepted_google=1" + tiempo;
2624
2625    var parametros="cookies_accepted=1&cookies_accepted_vdf=1&cookies_accepted_add_1=1";
2626    parametros += "&cookies_accepted_google=1";
2627    var respuesta=lanzaajax("POST","modulos/__ajx/setVariableSession.php",parametros,"");
2628}
2629
2630
2631function cookieShowMoreInfo(e,textocookies,textoboton,textobotongestionar) {
2632    e.preventDefault();
2633
2634    if (document.querySelector('#mas-detalles-cookies').style.display === 'block'){
2635        $('#mas-detalles-cookies').slideToggle();
2636        document.getElementById('aceptarCookies_boton').innerHTML = textoboton;
2637        document.getElementById('cookieShowMoreInfo').innerHTML = textobotongestionar;
2638
2639        return false;
2640    }
2641    var elem_li = '';
2642    elem_li = textoCookiesCompleto(textocookies);
2643
2644
2645    //var elem_ul = `<ul>${elem_li}</ul>`;
2646    document.querySelector('#mas-detalles-cookies').innerHTML = elem_li;
2647
2648
2649    //document.querySelector('#aviso-cookies').style.height = '95%';
2650    //document.querySelector('#aviso-cookies').style.height = 'auto';
2651
2652
2653    $('#mas-detalles-cookies').slideToggle();
2654    document.getElementById('aceptarCookies_boton').innerHTML = textoboton;
2655    document.getElementById('cookieShowMoreInfo').innerHTML = textobotongestionar;
2656
2657}
2658
2659
2660function textoCookiesCompleto(textocookies) {
2661    var elem_li = '';
2662    var elem_li = textocookies;
2663    if(tienegooglanalitics) {
2664        /*if (tienemetricool == 1) {
2665            elem_li +=
2666                `<div class="grid-container">
2667                    <div>&nbsp;</div>
2668                    <div>
2669                        <table border="0px" cellpadding="0px" cellspacing="0px" style="width:100%">
2670                            <tr>
2671                                <td style="height:13px; width:89px">
2672                                    <p><strong>Nombre</strong></p>
2673                                </td>
2674                                <td style="height:13px; width:47px">
2675                                    <p><strong>Tipo</strong></p>
2676                                </td>
2677                                <td style="height:13px; width:246px">
2678                                    <p><strong>Descripción/Finalidad</strong></p>
2679                                </td>
2680                                <td style="height:13px; width:132px">
2681                                    <p><strong>Duración</strong></p>
2682                                </td>
2683                                <td style="height:13px; width:85px">
2684                                    <p><strong>Propietario</strong></p>
2685                                </td>
2686                                <td style="height:13px; width:85px">
2687                                    <p><strong>Aceptar</strong></p>
2688                                </td>
2689                            </tr>
2690                            <tr>
2691                                <td colspan="5"></td>
2692                                <td><input id="cookies_accepted_metric" type="checkbox"></td>
2693                            </tr>`;
2694            elem_li += textoMetricoolCookies;
2695            elem_li += `</table></div></div>`;
2696        }*/
2697        if (tienegooglanalitics == 1) {
2698            elem_li +=
2699                `<div class="grid-container">
2700                    <div>&nbsp;</div>
2701                    <div>
2702                        <table border="0px" cellpadding="0px" cellspacing="0px" style="width:100%">
2703                            <tr>
2704                                <td style="height:13px; width:89px">
2705                                    <p><strong>Nombre</strong></p>
2706                                </td>
2707                                <td style="height:13px; width:47px">
2708                                    <p><strong>Tipo</strong></p>
2709                                </td>
2710                                <td style="height:13px; width:246px">
2711                                    <p><strong>Descripción/Finalidad</strong></p>
2712                                </td>
2713                                <td style="height:13px; width:132px">
2714                                    <p><strong>Duración</strong></p>
2715                                </td>
2716                                <td style="height:13px; width:85px">
2717                                    <p><strong>Propietario</strong></p>
2718                                </td>
2719                                <td style="height:13px; width:85px">
2720                                    <p><strong>Aceptar</strong></p>
2721                                </td>
2722                            </tr>
2723                            <tr>
2724                                <td colspan="5"></td>
2725                                <td><input id="cookies_accepted_google" type="checkbox"></td>
2726                            </tr>`;
2727            elem_li += textoAnalyticsCookies;
2728            elem_li += `</table></div></div>`;
2729        }
2730    }
2731    return elem_li;
2732}
2733
2734function tareaSitemapXML(){
2735
2736    return;
2737
2738    $.ajax({
2739        'url'           : 'sitemap.php',
2740        'method'        : 'post',
2741        'dataType'      : 'json'
2742    });
2743
2744}
2745
2746//parametrosObj = {};
2747//parametrosObj.parametro1 = valor1
2748//parametrosObj.parametro2 = valor2
2749/**
2750 * Toma una URL actual, agrega o modifica parámetros de consulta en esa URL según un objeto proporcionado
2751 * (parametrosObj), y realiza redirecciones en la URL según ciertas condiciones y el valor de redirigira.
2752 * Luego, devuelve la URL resultante como una cadena de texto.
2753 * @param parametrosObj
2754 * @param redirigira
2755 * @returns {string}
2756 */
2757function anyadirParametrosAurl(parametrosObj, redirigira) {
2758    const url = new URL(window.location.href);
2759    const query_string = url.search;
2760    const search_params = new URLSearchParams(query_string);
2761    const orden_valor = search_params.get("orden");
2762    let dirurl = url.pathname;
2763
2764    $.each(parametrosObj, function (key, val) {
2765        search_params.set(key, val);
2766    });
2767
2768    // Remover el idioma
2769    let regexIdio = new RegExp(`\\/${idio_txt}\\/?$`);
2770    if(regexIdio.test(dirurl)) {
2771        dirurl = dirurl.replace(regexIdio, '/');
2772    }
2773
2774    const dirUrlSanetized = dirurl.substring(1);
2775    let redirigiraSanetized = redirigira;
2776
2777    // Remover el idioma
2778    if(regexIdio.test(redirigiraSanetized)) {
2779        redirigiraSanetized = redirigira.replace(regexIdio, '/');
2780    }
2781
2782    // TODO: Estos if se llegan a llamar de alguna forma? Parece que solo sea necesario el final
2783    if (redirigira == "alquiler.php" && dirurl.includes('venta.php')) {
2784        dirurl = dirurl.replace("venta.php", "alquiler.php");
2785    } else if (redirigira == "venta.php" && dirurl.includes('alquiler.php')) {
2786        dirurl = dirurl.replace("alquiler.php", "venta.php");
2787    } else if (redirigira == "venta.php") {
2788        if (/[a-zA-Z].php/.test(dirurl)) {
2789            dirurl = dirurl.replace(/[a-zA-Z]*.php/gi, 'venta.php');
2790        } else {
2791            dirurl = dirurl + 'venta.php';
2792        }
2793    } else if (redirigira == "alquiler.php") {
2794        if (/[a-zA-Z].php/.test(dirurl)) {
2795            dirurl = dirurl.replace(/[a-zA-Z]*.php/gi, 'alquiler.php');
2796        } else {
2797            dirurl = dirurl + 'alquiler.php';
2798        }
2799    } else {
2800        if (dirUrlSanetized !== redirigiraSanetized) {
2801            if (/[a-zA-Z].php/.test(dirurl) && !/banco.php/.test(dirurl)) {
2802                dirurl = dirurl.replace(/[a-zA-Z]*.php/gi, redirigira);
2803            } else if (!redirigira.includes("frame-clientes")) {
2804                dirurl = dirurl + redirigira;
2805            }
2806        }
2807    }
2808
2809    url.pathname = dirurl;
2810    url.search = search_params.toString();
2811
2812    if(redirigira.includes("frame-clientes")){
2813        if(orden_valor > 0){
2814            var url_a_cambiar = window.location.search.toString();
2815            var nuevaurl = url_a_cambiar.replace("orden="+orden_valor,"orden="+parametrosObj.orden);
2816
2817            return url.origin + "/"+redirigira + nuevaurl;
2818        }
2819        else{
2820            search_params.set('orden', parametrosObj.orden);
2821
2822            return `${dirurl}?${search_params.toString()}`;
2823        }
2824    }
2825
2826    return url.toString();
2827}
2828
2829function modalAlVuelo(contenidoHTML) {
2830    // Crear nuevo elemento div
2831    var modalAlVuelo = document.createElement('div');
2832
2833    // Asignar clase para el estilo
2834    modalAlVuelo.className = 'modalAlVuelo';
2835    modalAlVuelo.id = 'modalAlVuelo';
2836
2837    // Crear contenido de la modalAlVuelo
2838    var contenidoModal = document.createElement('div');
2839    contenidoModal.className = 'contenido-modalAlVuelo';
2840
2841    // Añadir el contenido HTML al contenido de la modalAlVuelo
2842    contenidoModal.innerHTML = contenidoHTML;
2843
2844    // Crear botón de cierre
2845    var botonCerrar = document.createElement('span');
2846    botonCerrar.className = 'boton-cerrar';
2847    botonCerrar.innerHTML = 'X';
2848
2849    // Función para cerrar la modalAlVuelo
2850    botonCerrar.onclick = function() {
2851        // Eliminar la modalAlVuelo del DOM
2852        document.body.removeChild(modalAlVuelo);
2853    };
2854
2855    // Añadir botón de cierre al contenido de la modalAlVuelo
2856    contenidoModal.appendChild(botonCerrar);
2857
2858    // Añadir contenido de la modalAlVuelo a la modalAlVuelo
2859    modalAlVuelo.appendChild(contenidoModal);
2860
2861    // Añadir modalAlVuelo al cuerpo del documento
2862    document.body.appendChild(modalAlVuelo);
2863}
2864
2865function throttle(func, delay) {
2866    let isThrottled = false;
2867
2868    return function() {
2869        const context = this;
2870        const args = arguments;
2871
2872        if (!isThrottled) {
2873            // Call the function
2874            func.apply(context, args);
2875            // Set throttling flag
2876            isThrottled = true;
2877            // Reset throttling flag after delay
2878            setTimeout(() => {
2879                isThrottled = false;
2880            }, delay);
2881        }
2882    };
2883}
2884
2885tareaSitemapXML();
2886

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.