//tealium universal tag - utag.131 ut4.0.201812092052, Copyright 2018 Tealium.com Inc. All Rights Reserved.
try{(function(id,loader){var u={};utag.o[loader].sender[id]=u;if(utag===undefined){utag={};}if(utag.ut===undefined){utag.ut={};}if(utag.ut.loader===undefined){u.loader=function(o){var a,b,c,l;a=document;if(o.type==="iframe"){b=a.createElement("iframe");b.setAttribute("height","1");b.setAttribute("width","1");b.setAttribute("style","display:none");b.setAttribute("src",o.src);}else if(o.type==="img"){utag.DB("Attach img: "+o.src);b=new Image();b.src=o.src;return;}else{b=a.createElement("script");b.language="javascript";b.type="text/javascript";b.async=1;b.charset="utf-8";b.src=o.src;}if(o.id){b.id=o.id;}if(typeof o.cb==="function"){if(b.addEventListener){b.addEventListener("load",function(){o.cb();},false);}else{b.onreadystatechange=function(){if(this.readyState==="complete"||this.readyState==="loaded"){this.onreadystatechange=null;o.cb();}};}}l=o.loc||"head";c=a.getElementsByTagName(l)[0];if(c){utag.DB("Attach to "+l+": "+o.src);if(l==="script"){c.parentNode.insertBefore(b,c);}else{c.appendChild(b);}}};}else{u.loader=utag.ut.loader;}
u.ev={'view':1};u.initialized=false;u.map={};u.extend=[function(a,b,c,d,e,f,g){d=b['js_page.IQ_search_geo_provinceId'];if(typeof d=='undefined')return;c=[{'0-EU-ES-01':'Álava'},{'0-EU-ES-02':'Albacete'},{'0-EU-ES-03':'Alicante'},{'0-EU-ES-04':'Almería'},{'0-EU-ES-05':'Ávila'},{'0-EU-ES-06':'Badajoz'},{'0-EU-ES-07':'Balears (Illes)'},{'0-EU-ES-08':'Barcelona'},{'0-EU-ES-09':'Burgos'},{'0-EU-ES-10':'Cáceres'},{'0-EU-ES-11':'Cádiz'},{'0-EU-ES-12':'Castellón'},{'0-EU-ES-13':'Ciudad Real'},{'0-EU-ES-14':'Córdoba'},{'0-EU-ES-15':'A Coruña'},{'0-EU-ES-16':'Cuenca'},{'0-EU-ES-17':'Girona'},{'0-EU-ES-18':'Granada'},{'0-EU-ES-19':'Guadalajara'},{'0-EU-ES-20':'Guipúzcoa'},{'0-EU-ES-21':'Huelva'},{'0-EU-ES-22':'Huesca'},{'0-EU-ES-23':'Jaén'},{'0-EU-ES-24':'León'},{'0-EU-ES-25':'Lleida'},{'0-EU-ES-26':'La Rioja'},{'0-EU-ES-27':'Lugo'},{'0-EU-ES-28':'Madrid'},{'0-EU-ES-29':'Málaga'},{'0-EU-ES-30':'Murcia'},{'0-EU-ES-31':'Navarra'},{'0-EU-ES-32':'Ourense'},{'0-EU-ES-33':'Asturias'},{'0-EU-ES-34':'Palencia'},{'0-EU-ES-35':'Las Palmas'},{'0-EU-ES-36':'Pontevedra'},{'0-EU-ES-37':'Salamanca'},{'0-EU-ES-38':'Santa Cruz de Tenerife'},{'0-EU-ES-39':'Cantabria'},{'0-EU-ES-40':'Segovia'},{'0-EU-ES-41':'Sevilla'},{'0-EU-ES-42':'Soria'},{'0-EU-ES-43':'Tarragona'},{'0-EU-ES-44':'Teruel'},{'0-EU-ES-45':'Toledo'},{'0-EU-ES-46':'Valencia'},{'0-EU-ES-47':'Valladolid'},{'0-EU-ES-48':'Vizcaya'},{'0-EU-ES-49':'Zamora'},{'0-EU-ES-50':'Zaragoza'},{'0-EU-ES-51':'Ceuta'},{'0-EU-ES-52':'Melilla'},{'0-EU-ES-53':'Andorra'},{'0-EU-ES-54':'País Vasco Francés'},{'0-EU-ES-55':'Cerdanya Francesa'},{'0-EU-ES-56':'Gibraltar'}];var m=false;for(e=0;e<c.length;e++){for(f in c[e]){if(d==f){b['js_page.IQ_search_geo_provinceName']=c[e][f];m=true};};if(m)break};}];u.send=function(a,b){if(u.ev[a]||u.ev.all!==undefined){var c,d,e,f,i;u.data={};for(c=0;c<u.extend.length;c++){try{d=u.extend[c](a,b);if(d==false)return}catch(e){}};for(d in utag.loader.GV(u.map)){if(b[d]!==undefined&&b[d]!==""){e=u.map[d].split(",");for(f=0;f<e.length;f++){u.data[e[f]]=b[d];}}}
}};utag.o[loader].loader.LOAD(id);})("131","idealista.es-portal");}catch(error){utag.DB(error);}
