//tealium universal tag - utag.loader ut4.0.201902011630, Copyright 2019 Tealium.com Inc. All Rights Reserved.
var utag_condload=false;try{(function(){function ul(src,a,b){a=document;b=a.createElement('script');b.language='javascript';b.type='text/javascript';b.src=src;a.getElementsByTagName('head')[0].appendChild(b)};if((""+document.cookie).match("utag_env_idealista_es-portal=(\/\/tags\.tiqcdn\.com\/utag\/idealista\/[^\S;]*)")){if(RegExp.$1.indexOf("/prod/")===-1){var s=RegExp.$1;while(s.indexOf("%")!=-1){s=decodeURIComponent(s);}s=s.replace(/\.\./g,"");ul(s);utag_condload=true;__tealium_default_path='//tags.tiqcdn.com/utag/idealista/es-portal/prod/';}}})();}catch(e){};try{try{debug=document.cookie+'';is_debug=((debug.indexOf('utagdb=true')>=0)?true:false);if(is_debug===true){if(window.IQ_beamerFilter===undefined)window.IQ_beamerFilter='';if(window.IQ_beamerProductId===undefined)window.IQ_beamerProductId='';if(window.IQ_beamerSelector===undefined)window.IQ_beamerSelector='';if(window.IQ_sentry_1x1000===undefined)window.IQ_sentry_1x1000='';if(window.IQ_chapter1===undefined)window.IQ_chapter1='';if(window.IQ_chapter2===undefined)window.IQ_chapter2='';if(window.IQ_chapter3===undefined)window.IQ_chapter3='';if(window.IQ_contactFormsFeedbackOK===undefined)window.IQ_contactFormsFeedbackOK='';if(window.IQ_hotjarId===undefined)window.IQ_hotjarId='';if(window.IQ_pageName===undefined)window.IQ_pageName='';if(window.IQ_optimizelyId===undefined)window.IQ_optimizelyId='';if(window.IQ_criteoId===undefined)window.IQ_criteoId='';if(window.IQ_pxAppId===undefined)window.IQ_pxAppId='';if(window.IQ_pxRootUrl===undefined)window.IQ_pxRootUrl='';if(window.IQ_userId===undefined)window.IQ_userId='';if(window.IQ_xtn2===undefined)window.IQ_xtn2='';if(window.IQ_xtn2concatenation===undefined)window.IQ_xtn2concatenation='';if(window.IQ_xtsite===undefined)window.IQ_xtsite='';if(window.IQ_xtsiteconcatenation===undefined)window.IQ_xtsiteconcatenation='';if(window.IQ_search_geo_municipalityId===undefined)window.IQ_search_geo_municipalityId='';if(window.IQ_search_geo_provinceId===undefined)window.IQ_search_geo_provinceId='';if(window.IQ_search_geo_provinceName===undefined)window.IQ_search_geo_provinceName='';if(window.IQ_pageSectionPortal===undefined)window.IQ_pageSectionPortal='';if(window.IQ_user_agent===undefined)window.IQ_user_agent='';if(window.IQ_origin===undefined)window.IQ_origin='';if(window.IQ_category===undefined)window.IQ_category='';}else{}}catch(e){utag.DB(e)}}catch(e){};if(!utag_condload){try{try{window.teal=window.teal||{};teal.ignore_keys={};teal.replace_keys={};teal.prefix="";teal.nested_delimiter="_";teal.flattener_version=1.2;Object.keys||(Object.keys=function(){"use strict";var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=c.length;return function(e){if("object"!=typeof e&&("function"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var g,h,f=[];for(g in e)a.call(e,g)&&f.push(g);if(b)for(h=0;h<d;h++)a.call(e,c[h])&&f.push(c[h]);return f}}());teal.ignoreKey=function(key,re){var should_ignore_key=0;if(typeof teal.ignore_keys_list==='undefined'){teal.ignore_keys_list=Object.keys(teal.ignore_keys);teal.ignore_keys_list.forEach(function(name){teal.ignore_keys[name]=new RegExp("^"+name);if(key.match(teal.ignore_keys[name])){should_ignore_key=1;}});}else{teal.ignore_keys_list.forEach(function(name){if(key.match(teal.ignore_keys[name])){should_ignore_key=1;}});}
return should_ignore_key;}
teal.getKeyName=function(key,re){teal.replace_keys_regex=teal.replace_keys_regex||{};if(typeof teal.replace_keys_list==='undefined'){teal.replace_keys_list=Object.keys(teal.replace_keys);teal.replace_keys_list.forEach(function(name){teal.replace_keys_regex[name]=new RegExp("["+teal.nested_delimiter+"]"+name+"["+teal.nested_delimiter+"]","g");key=teal.keyReplace(key,name,teal.replace_keys_regex[name]);});}else{teal.replace_keys_list.forEach(function(name){key=teal.keyReplace(key,name,teal.replace_keys_regex[name]);});}
return key;}
teal.keyReplace=function(key,name,re){if(teal.replace_keys[name]===''){key=key.replace(re,teal.nested_delimiter);}else{key=key.replace(re,teal.nested_delimiter+teal.replace_keys[name]+teal.nested_delimiter);}
return key;}
teal.processDataObject=function(obj,new_obj,parent_key,create_array){if(typeof parent_key==="undefined"){parent_key="";}else{teal.nested_delimiter_regex=teal.nested_delimiter_regex||new RegExp("["+teal.nested_delimiter+"]$");if(!parent_key.match(teal.nested_delimiter_regex)){parent_key+=""+teal.nested_delimiter;}}
Object.keys(obj).forEach(function(key){var nested_key_name=parent_key+key;var new_key_name=teal.getKeyName((teal.prefix+parent_key+key).replace(/\s/g,''));var key_type=teal.typeOf(obj[key]);if(key_type!=='undefined'&&key_type!=null){if(key_type.match(/boolean|string|number|date/)&&!teal.ignoreKey(key)){if(teal.typeOf(obj[key])==='date'){obj[key]=obj[key].toISOString();}
if(create_array){if(teal.typeOf(new_obj[new_key_name])!=="array"){new_obj[new_key_name]=[];}
new_obj[new_key_name].push(""+obj[key]);}else{new_obj[new_key_name]=""+obj[key];}}else if(key_type==='object'&&!teal.ignoreKey(key)){teal.processDataObject(obj[key],new_obj,nested_key_name,create_array);}else if(key_type==='array'){teal.processDataArray(obj[key],new_obj,nested_key_name);}}});}
teal.processDataArray=function(obj,new_obj,parent_key){var objLength=obj.length;if(typeof parent_key==="undefined"){parent_key="";}else if(objLength>0&&teal.typeOf(obj[0]).match(/boolean|string|number|date/)){}else{parent_key+=""+teal.nested_delimiter;}
var new_key_name=teal.getKeyName((teal.prefix+parent_key).replace(/\s/g,''));for(var n=0;n<objLength;n++){var key_type=teal.typeOf(obj[n]);if(key_type.match(/boolean|string|number|date/)){if(key_type==='date'){obj[n]=obj[n].toISOString();}
if(teal.typeOf(new_obj[new_key_name])!=="array"){new_obj[new_key_name]=[];}
new_obj[new_key_name].push(""+obj[n]);}else if(key_type==='object'){teal.processDataObject(obj[n],new_obj,new_key_name,1);}}}
teal.typeOf=function(e){return({}).toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase();}
teal.flattenObject=function(obj,new_obj){if(typeof obj==='undefined'){return false;}
var mergeObject=false;if(obj===new_obj){mergeObject=true;new_obj={};}
if(typeof new_obj==='undefined'){new_obj={};}
if(teal.typeOf(obj)==='array'){var temp_array=JSON.parse(JSON.stringify(obj));var temp_array_length=temp_array.length;obj={};if(obj==new_obj){if(typeof a==='undefined'){var a='view';}
utag.loader.RD(new_obj,a);}
for(var i=0;i<temp_array_length;i++){teal.processDataObject(temp_array[i],new_obj);}}else{teal.processDataObject(obj,new_obj);}
if(mergeObject){Object.keys(obj).forEach(function(key){delete obj[key];});Object.keys(new_obj).forEach(function(key){obj[key]=new_obj[key];});}
return new_obj;}}catch(e){utag.DB(e)}}catch(e){}};if(!utag_condload){try{try{utag_data=teal.flattenObject(utag_data);}catch(e){utag.DB(e)}}catch(e){}};if(!utag_condload){try{try{utag_data["js_page.IQ_user_agent"]=navigator.userAgent;utag.DB("User Agent: "+utag_data["js_page.IQ_user_agent"]);}catch(e){utag.DB(e)}}catch(e){}};if(typeof utag=="undefined"&&!utag_condload){var utag={id:"idealista.es-portal",o:{},sender:{},send:{},rpt:{ts:{a:new Date()}},dbi:[],db_log:[],loader:{q:[],lc:0,f:{},p:0,ol:0,wq:[],lq:[],bq:{},bk:{},rf:0,ri:0,rp:0,rq:[],ready_q:[],sendq:{"pending":0},run_ready_q:function(){for(var i=0;i<utag.loader.ready_q.length;i++){utag.DB("READY_Q:"+i);try{utag.loader.ready_q[i]()}catch(e){utag.DB(e)};}},lh:function(a,b,c){a=""+location.hostname;b=a.split(".");c=(/\.co\.|\.com\.|\.org\.|\.edu\.|\.net\.|\.asn\./.test(a))?3:2;return b.splice(b.length-c,c).join(".");},WQ:function(a,b,c,d,g){utag.DB('WQ:'+utag.loader.wq.length);try{if(utag.udoname&&utag.udoname.indexOf(".")<0){utag.ut.merge(utag.data,window[utag.udoname],0);}
if(utag.cfg.load_rules_at_wait){utag.handler.LR(utag.data);}}catch(e){utag.DB(e)};d=0;g=[];for(a=0;a<utag.loader.wq.length;a++){b=utag.loader.wq[a];b.load=utag.loader.cfg[b.id].load;if(b.load==4){this.f[b.id]=0;utag.loader.LOAD(b.id)}else if(b.load>0){g.push(b);d++;}else{this.f[b.id]=1;}}
for(a=0;a<g.length;a++){utag.loader.AS(g[a]);}
if(d==0){utag.loader.END();}},AS:function(a,b,c,d){utag.send[a.id]=a;if(typeof a.src=='undefined'){a.src=utag.cfg.path+((typeof a.name!='undefined')?a.name:'ut'+'ag.'+a.id+'.js')}
a.src+=(a.src.indexOf('?')>0?'&':'?')+'utv='+(a.v?utag.cfg.template+a.v:utag.cfg.v);utag.rpt['l_'+a.id]=a.src;b=document;this.f[a.id]=0;if(a.load==2){utag.DB("Attach sync: "+a.src);a.uid=a.id;b.write('<script id="utag_'+a.id+'" src="'+a.src+'"></scr'+'ipt>')
if(typeof a.cb!='undefined')a.cb();}else if(a.load==1||a.load==3){if(b.createElement){c='utag_idealista.es-portal_'+a.id;if(!b.getElementById(c)){d={src:a.src,id:c,uid:a.id,loc:a.loc}
if(a.load==3){d.type="iframe"};if(typeof a.cb!='undefined')d.cb=a.cb;utag.ut.loader(d);}}}},GV:function(a,b,c){b={};for(c in a){if(a.hasOwnProperty(c)&&typeof a[c]!="function")b[c]=a[c];}
return b},OU:function(a,b,c,d,f){try{if(typeof utag.data['cp.OPTOUTMULTI']!='undefined'){c=utag.loader.cfg;a=utag.ut.decode(utag.data['cp.OPTOUTMULTI']).split('|');for(d=0;d<a.length;d++){b=a[d].split(':');if(b[1]*1!==0){if(b[0].indexOf('c')==0){for(f in utag.loader.GV(c)){if(c[f].tcat==b[0].substring(1))c[f].load=0}}else if(b[0]*1==0){utag.cfg.nocookie=true}else{for(f in utag.loader.GV(c)){if(c[f].tid==b[0])c[f].load=0}}}}}}catch(e){utag.DB(e)}},RDdom:function(o){var d=document||{},l=location||{};o["dom.referrer"]=d.referrer;o["dom.title"]=""+d.title;o["dom.domain"]=""+l.hostname;o["dom.query_string"]=(""+l.search).substring(1);o["dom.hash"]=(""+l.hash).substring(1);o["dom.url"]=""+d.URL;o["dom.pathname"]=""+l.pathname;o["dom.viewport_height"]=window.innerHeight||(d.documentElement?d.documentElement.clientHeight:960);o["dom.viewport_width"]=window.innerWidth||(d.documentElement?d.documentElement.clientWidth:960);},RDcp:function(o,b,c,d){b=utag.loader.RC();for(d in b){if(d.match(/utag_(.*)/)){for(c in utag.loader.GV(b[d])){o["cp.utag_"+RegExp.$1+"_"+c]=b[d][c];}}}
for(c in utag.loader.GV((utag.cl&&!utag.cl['_all_'])?utag.cl:b)){if(c.indexOf("utag_")<0&&typeof b[c]!="undefined")o["cp."+c]=b[c];}
},RDqp:function(o,a,b,c){a=location.search+(location.hash+'').replace("#","&");if(utag.cfg.lowerqp){a=a.toLowerCase()};if(a.length>1){b=a.substring(1).split('&');for(a=0;a<b.length;a++){c=b[a].split("=");if(c.length>1){o["qp."+c[0]]=utag.ut.decode(c[1])}}}},RDmeta:function(o,a,b,h){a=document.getElementsByTagName("meta");for(b=0;b<a.length;b++){try{h=a[b].name||a[b].getAttribute("property")||"";}catch(e){h="";utag.DB(e)};if(utag.cfg.lowermeta){h=h.toLowerCase()};if(h!=""){o["meta."+h]=a[b].content}}},RDva:function(o){var readAttr=function(o,l){var a="",b;a=localStorage.getItem(l);if(!a||a=="{}")return;b=utag.ut.flatten({va:JSON.parse(a)});utag.ut.merge(o,b,1);}
try{readAttr(o,"tealium_va");readAttr(o,"tealium_va_"+o["ut.account"]+"_"+o["ut.profile"]);}catch(e){utag.DB(e)}},RDut:function(o,a){var t={};var d=new Date();var m=(utag.ut.typeOf(d.toISOString)=="function");o["ut.domain"]=utag.cfg.domain;o["ut.version"]=utag.cfg.v;t["tealium_event"]=o["ut.event"]=a||"view";t["tealium_visitor_id"]=o["ut.visitor_id"]=o["cp.utag_main_v_id"];t["tealium_session_id"]=o["ut.session_id"]=o["cp.utag_main_ses_id"];try{t["tealium_datasource"]=utag.cfg.datasource;t["tealium_account"]=o["ut.account"]=utag.cfg.utid.split("/")[0];t["tealium_profile"]=o["ut.profile"]=utag.cfg.utid.split("/")[1];t["tealium_environment"]=o["ut.env"]=utag.cfg.path.split("/")[6];}catch(e){utag.DB(e)}
t["tealium_random"]=Math.random().toFixed(16).substring(2);t["tealium_library_name"]="ut"+"ag.js";t["tealium_library_version"]=(utag.cfg.template+"0").substring(2);t["tealium_timestamp_epoch"]=Math.floor(d.getTime()/1000);t["tealium_timestamp_utc"]=(m?d.toISOString():"");d.setHours(d.getHours()-(d.getTimezoneOffset()/60));t["tealium_timestamp_local"]=(m?d.toISOString().replace("Z",""):"");utag.ut.merge(o,t,0);},RDses:function(o,a,c){a=(new Date()).getTime();c=(a+parseInt(utag.cfg.session_timeout))+"";if(!o["cp.utag_main_ses_id"]){o["cp.utag_main_ses_id"]=a+"";o["cp.utag_main__ss"]="1";o["cp.utag_main__sn"]=(1+parseInt(o["cp.utag_main__sn"]||0))+"";}else{o["cp.utag_main__ss"]="0";}
o["cp.utag_main__pn"]=o["cp.utag_main__pn"]||"1";o["cp.utag_main__st"]=c;utag.loader.SC("utag_main",{"_sn":(o["cp.utag_main__sn"]||1),"_ss":o["cp.utag_main__ss"],"_st":c,"ses_id":(o["cp.utag_main_ses_id"]||a)+";exp-session","_pn":o["cp.utag_main__pn"]+";exp-session"});},RDpv:function(o){if(typeof utag.pagevars=="function"){utag.DB("Read page variables");utag.pagevars(o);}},RD:function(o,a){utag.DB("utag.loader.RD");utag.DB(o);utag.loader.RDcp(o);if(!utag.loader.rd_flag){utag.loader.rd_flag=1;o["cp.utag_main_v_id"]=o["cp.utag_main_v_id"]||utag.ut.vi((new Date()).getTime());o["cp.utag_main__pn"]=(1+parseInt(o["cp.utag_main__pn"]||0))+"";utag.loader.SC("utag_main",{"v_id":o["cp.utag_main_v_id"]});utag.loader.RDses(o);}
if(a&&!utag.cfg.noview)utag.loader.RDses(o);utag.loader.RDqp(o);utag.loader.RDmeta(o);utag.loader.RDdom(o);utag.loader.RDut(o,a||"view");utag.loader.RDpv(o);utag.loader.RDva(o);},RC:function(a,x,b,c,d,e,f,g,h,i,j,k,l,m,n,o,v,ck,cv,r,s,t){o={};b=(""+document.cookie!="")?(document.cookie).split("; "):[];r=/^(.*?)=(.*)$/;s=/^(.*);exp-(.*)$/;t=(new Date()).getTime();for(c=0;c<b.length;c++){if(b[c].match(r)){ck=RegExp.$1;cv=RegExp.$2;}
e=utag.ut.decode(cv);if(typeof ck!="undefined"){if(ck.indexOf("ulog")==0||ck.indexOf("utag_")==0){e=cv.split("$");g=[];j={};for(f=0;f<e.length;f++){try{g=e[f].split(":");if(g.length>2){g[1]=g.slice(1).join(":");}
v="";if((""+g[1]).indexOf("~")==0){h=g[1].substring(1).split("|");for(i=0;i<h.length;i++)h[i]=utag.ut.decode(h[i]);v=h}else v=utag.ut.decode(g[1]);j[g[0]]=v;}catch(er){utag.DB(er)};}
o[ck]={};for(f in utag.loader.GV(j)){if(j[f]instanceof Array){n=[];for(m=0;m<j[f].length;m++){if(j[f][m].match(s)){k=(RegExp.$2=="session")?(typeof j._st!="undefined"?j._st:t-1):parseInt(RegExp.$2);if(k>t)n[m]=(x==0)?j[f][m]:RegExp.$1;}}
j[f]=n.join("|");}else{j[f]=""+j[f];if(j[f].match(s)){k=(RegExp.$2=="session")?(typeof j._st!="undefined"?j._st:t-1):parseInt(RegExp.$2);j[f]=(k<t)?null:(x==0?j[f]:RegExp.$1);}}
if(j[f])o[ck][f]=j[f];}}else if(utag.cl[ck]||utag.cl['_all_']){o[ck]=e}}}
return(a)?(o[a]?o[a]:{}):o;},SC:function(a,b,c,d,e,f,g,h,i,j,k,x,v){if(!a)return 0;if(a=="utag_main"&&utag.cfg.nocookie)return 0;v="";var date=new Date();var exp=new Date();exp.setTime(date.getTime()+(365*24*60*60*1000));x=exp.toGMTString();if(c&&c=="da"){x="Thu, 31 Dec 2009 00:00:00 GMT";}else if(a.indexOf("utag_")!=0&&a.indexOf("ulog")!=0){if(typeof b!="object"){v=b}}else{d=utag.loader.RC(a,0);for(e in utag.loader.GV(b)){f=""+b[e];if(f.match(/^(.*);exp-(\d+)(\w)$/)){g=date.getTime()+parseInt(RegExp.$2)*((RegExp.$3=="h")?3600000:86400000);if(RegExp.$3=="u")g=parseInt(RegExp.$2);f=RegExp.$1+";exp-"+g;}
if(c=="i"){if(d[e]==null)d[e]=f;}else if(c=="d")delete d[e];else if(c=="a")d[e]=(d[e]!=null)?(f-0)+(d[e]-0):f;else if(c=="ap"||c=="au"){if(d[e]==null)d[e]=f;else{if(d[e].indexOf("|")>0){d[e]=d[e].split("|")}
g=(d[e]instanceof Array)?d[e]:[d[e]];g.push(f);if(c=="au"){h={};k={};for(i=0;i<g.length;i++){if(g[i].match(/^(.*);exp-(.*)$/)){j=RegExp.$1;}
if(typeof k[j]=="undefined"){k[j]=1;h[g[i]]=1;}}
g=[];for(i in utag.loader.GV(h)){g.push(i);}}
d[e]=g}}else d[e]=f;}
h=new Array();for(g in utag.loader.GV(d)){if(d[g]instanceof Array){for(c=0;c<d[g].length;c++){d[g][c]=encodeURIComponent(d[g][c])}
h.push(g+":~"+d[g].join("|"))}else h.push((g+":").replace(/[\,\$\;\?]/g,"")+encodeURIComponent(d[g]))}
if(h.length==0){h.push("");x=""}
v=(h.join("$"));}
document.cookie=a+"="+v+";path=/;domain="+utag.cfg.domain+";expires="+x;return 1},LOAD:function(a,b,c,d){if(!utag.loader.cfg){return}
if(this.ol==0){if(utag.loader.cfg[a].block&&utag.loader.cfg[a].cbf){this.f[a]=1;delete utag.loader.bq[a];}
for(b in utag.loader.GV(utag.loader.bq)){if(utag.loader.cfg[a].load==4&&utag.loader.cfg[a].wait==0){utag.loader.bk[a]=1;utag.DB("blocked: "+a);}
utag.DB("blocking: "+b);return;}
utag.loader.INIT();return;}
utag.DB('utag.loader.LOAD:'+a);if(this.f[a]==0){this.f[a]=1;if(utag.cfg.noview!=true){if(utag.loader.cfg[a].send){utag.DB("SENDING: "+a);try{if(utag.loader.sendq.pending>0&&utag.loader.sendq[a]){utag.DB("utag.loader.LOAD:sendq: "+a);while(d=utag.loader.sendq[a].shift()){utag.DB(d);utag.sender[a].send(d.event,utag.handler.C(d.data));utag.loader.sendq.pending--;}}else{utag.sender[a].send('view',utag.handler.C(utag.data));}
utag.rpt['s_'+a]=0;}catch(e){utag.DB(e);utag.rpt['s_'+a]=1;}}}
if(utag.loader.rf==0)return;for(b in utag.loader.GV(this.f)){if(this.f[b]==0||this.f[b]==2)return}
utag.loader.END();}},EV:function(a,b,c,d){if(b=="ready"){if(!utag.data){try{utag.cl={'_all_':1};utag.loader.initdata();utag.loader.RD(utag.data);}catch(e){utag.DB(e)};}
if((document.attachEvent||utag.cfg.dom_complete)?document.readyState==="complete":document.readyState!=="loading")setTimeout(c,1);else{utag.loader.ready_q.push(c);var RH;if(utag.loader.ready_q.length<=1){if(document.addEventListener){RH=function(){document.removeEventListener("DOMContentLoaded",RH,false);utag.loader.run_ready_q()};if(!utag.cfg.dom_complete)document.addEventListener("DOMContentLoaded",RH,false);window.addEventListener("load",utag.loader.run_ready_q,false);}else if(document.attachEvent){RH=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",RH);utag.loader.run_ready_q()}};document.attachEvent("onreadystatechange",RH);window.attachEvent("onload",utag.loader.run_ready_q);}}}}else{if(a.addEventListener){a.addEventListener(b,c,false)}else if(a.attachEvent){a.attachEvent(((d==1)?"":"on")+b,c)}}},END:function(b,c,d,e,v,w){if(this.ended){return};this.ended=1;utag.DB("loader.END");b=utag.data;if(utag.handler.base&&utag.handler.base!='*'){e=utag.handler.base.split(",");for(d=0;d<e.length;d++){if(typeof b[e[d]]!="undefined")utag.handler.df[e[d]]=b[e[d]]}}else if(utag.handler.base=='*'){utag.ut.merge(utag.handler.df,b,1);}
utag.rpt['r_0']="t";for(var r in utag.loader.GV(utag.cond)){utag.rpt['r_'+r]=(utag.cond[r])?"t":"f";}
utag.rpt.ts['s']=new Date();v=".tiqcdn.com";w=utag.cfg.path.indexOf(v);if(w>0&&b["cp.utag_main__ss"]==1&&!utag.cfg.no_session_count)utag.ut.loader({src:utag.cfg.path.substring(0,w)+v+"/ut"+"ag/tiqapp/ut"+"ag.v.js?a="+utag.cfg.utid+(utag.cfg.nocookie?"&nocookie=1":"&cb="+(new Date).getTime()),id:"tiqapp"})
if(utag.cfg.noview!=true)utag.handler.RE('view',b,"end");utag.handler.INIT();}},DB:function(a,b){if(utag.cfg.utagdb===false){return;}else if(typeof utag.cfg.utagdb=="undefined"){b=document.cookie+'';utag.cfg.utagdb=((b.indexOf('utagdb=true')>=0)?true:false);}
if(utag.cfg.utagdb===true){var t;if(utag.ut.typeOf(a)=="object"){t=utag.handler.C(a)}else{t=a}
utag.db_log.push(t);try{if(!utag.cfg.noconsole)console.log(t)}catch(e){}}},RP:function(a,b,c){if(typeof a!='undefined'&&typeof a.src!='undefined'&&a.src!=''){b=[];for(c in utag.loader.GV(a)){if(c!='src')b.push(c+'='+escape(a[c]))}
this.dbi.push((new Image()).src=a.src+'?utv='+utag.cfg.v+'&utid='+utag.cfg.utid+'&'+(b.join('&')))}},view:function(a,c,d){return this.track({event:'view',data:a,cfg:{cb:c,uids:d}})},link:function(a,c,d){return this.track({event:'link',data:a,cfg:{cb:c,uids:d}})},track:function(a,b,c,d){if(typeof a=="string")a={event:a,data:b,cfg:{cb:c}};for(d in utag.loader.GV(utag.o)){try{utag.o[d].handler.trigger(a.event||"view",a.data||a,a.cfg)}catch(e){utag.DB(e)};}
if(a.cfg&&a.cfg.cb)try{a.cfg.cb()}catch(e){utag.DB(e)};return true},handler:{base:"",df:{},o:{},send:{},iflag:0,INIT:function(a,b,c){utag.DB('utag.handler.INIT');if(utag.initcatch){utag.initcatch=0;return}
this.iflag=1;a=utag.loader.q.length;if(a>0){utag.DB("Loader queue");for(b=0;b<a;b++){c=utag.loader.q[b];utag.handler.trigger(c.a,c.b,c.c)}}
},test:function(){return 1},LR:function(b){utag.DB("Load Rules");for(var d in utag.loader.GV(utag.cond)){utag.cond[d]=false;}
utag.DB(b);utag.loader.loadrules(b);utag.DB(utag.cond);utag.loader.initcfg();utag.loader.OU();for(var r in utag.loader.GV(utag.cond)){utag.rpt['r_'+r]=(utag.cond[r])?"t":"f";}},RE:function(a,b,c,d,e,f,g){if(c!="alr"&&!this.cfg_extend){return 0;}
utag.DB("RE: "+c);if(c=="alr")utag.DB("All Tags EXTENSIONS");utag.DB(b);if(typeof this.extend!="undefined"){g=0;for(d=0;d<this.extend.length;d++){try{e=0;if(typeof this.cfg_extend!="undefined"){f=this.cfg_extend[d];if(typeof f.count=="undefined")f.count=0;if(f[a]==0||(f.once==1&&f.count>0)||f[c]==0){e=1}else{if(f[c]==1){g=1};f.count++}}
if(e!=1){this.extend[d](a,b);utag.rpt['ex_'+d]=0}}catch(er){utag.DB(er);utag.rpt['ex_'+d]=1;utag.ut.error({e:er.message,s:utag.cfg.path+'utag.js',l:d,t:'ge'});}}
utag.DB(b);return g;}},trigger:function(a,b,c,d,e,f){utag.DB('trigger:'+a+(c&&c.uids?":"+c.uids.join(","):""));b=b||{};utag.DB(b);if(!this.iflag){utag.DB("trigger:called before tags loaded");for(d in utag.loader.f){if(!(utag.loader.f[d]===1))utag.DB('Tag '+d+' did not LOAD')}
utag.loader.q.push({a:a,b:utag.handler.C(b),c:c});return;}
utag.ut.merge(b,this.df,0);utag.loader.RD(b,a);utag.cfg.noview=false;function sendTag(a,b,d){try{if(typeof utag.sender[d]!="undefined"){utag.DB("SENDING: "+d);utag.sender[d].send(a,utag.handler.C(b));utag.rpt['s_'+d]=0;}else if(utag.loader.cfg[d].load!=2){utag.loader.sendq[d]=utag.loader.sendq[d]||[];utag.loader.sendq[d].push({"event":a,"data":utag.handler.C(b)});utag.loader.sendq.pending++;utag.loader.AS({id:d,load:1});}}catch(e){utag.DB(e)}}
if(c&&c.uids){this.RE(a,b,"alr");for(f=0;f<c.uids.length;f++){d=c.uids[f];sendTag(a,b,d);}}else if(utag.cfg.load_rules_ajax){this.RE(a,b,"blr");this.LR(b);this.RE(a,b,"alr");for(f=0;f<utag.loader.cfgsort.length;f++){d=utag.loader.cfgsort[f];if(utag.loader.cfg[d].load&&utag.loader.cfg[d].send){sendTag(a,b,d);}}}else{this.RE(a,b,"alr");for(d in utag.loader.GV(utag.sender)){sendTag(a,b,d);}}
this.RE(a,b,"end");},C:function(a,b,c){b={};for(c in utag.loader.GV(a)){if(a[c]instanceof Array){b[c]=a[c].slice(0)}else{b[c]=a[c]}}
return b}},ut:{pad:function(a,b,c,d){a=""+((a-0).toString(16));d='';if(b>a.length){for(c=0;c<(b-a.length);c++){d+='0'}}return""+d+a},vi:function(t,a,b){if(!utag.v_id){a=this.pad(t,12);b=""+Math.random();a+=this.pad(b.substring(2,b.length),16);try{a+=this.pad((navigator.plugins.length?navigator.plugins.length:0),2);a+=this.pad(navigator.userAgent.length,3);a+=this.pad(document.URL.length,4);a+=this.pad(navigator.appVersion.length,3);a+=this.pad(screen.width+screen.height+parseInt((screen.colorDepth)?screen.colorDepth:screen.pixelDepth),5)}catch(e){utag.DB(e);a+="12345"};utag.v_id=a;}
return utag.v_id},hasOwn:function(o,a){return o!=null&&Object.prototype.hasOwnProperty.call(o,a)},isEmptyObject:function(o,a){for(a in o){if(utag.ut.hasOwn(o,a))return false}
return true},isEmpty:function(o){var t=utag.ut.typeOf(o);if(t=="number"){return isNaN(o)}else if(t=="boolean"){return false}else if(t=="string"){return o.length===0}else return utag.ut.isEmptyObject(o)},typeOf:function(e){return({}).toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase();},flatten:function(o){var a={};function r(c,p){if(Object(c)!==c||c instanceof Array){a[p]=c;}else{if(utag.ut.isEmptyObject(c)){}else{for(var d in c){r(c[d],p?p+"."+d:d);}}}}
r(o,"");return a;},merge:function(a,b,c,d){if(c){for(d in utag.loader.GV(b)){a[d]=b[d]}}else{for(d in utag.loader.GV(b)){if(typeof a[d]=="undefined")a[d]=b[d]}}},decode:function(a,b){b="";try{b=decodeURIComponent(a)}catch(e){utag.DB(e)};if(b==""){b=unescape(a)};return b},encode:function(a,b){b="";try{b=encodeURIComponent(a)}catch(e){utag.DB(e)};if(b==""){b=escape(a)};return b},error:function(a,b,c){if(typeof utag_err!="undefined"){utag_err.push(a)}},loader:function(o,a,b,c,l,m){utag.DB(o);a=document;if(o.type=="iframe"){m=a.getElementById(o.id);if(m&&m.tagName=="IFRAME"){b=m;}else{b=a.createElement("iframe");}
o.attrs=o.attrs||{};utag.ut.merge(o.attrs,{"height":"1","width":"1","style":"display:none"},0);}else if(o.type=="img"){utag.DB("Attach img: "+o.src);b=new Image();}else{b=a.createElement("script");b.language="javascript";b.type="text/javascript";b.async=1;b.charset="utf-8";}
if(o.id){b.id=o.id};for(l in utag.loader.GV(o.attrs)){b.setAttribute(l,o.attrs[l])}
b.setAttribute("src",o.src);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()}};}}
if(typeof o.error=="function"){utag.loader.EV(b,"error",o.error);}
if(o.type!="img"&&!m){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)}}}}}};utag.o['idealista.es-portal']=utag;utag.cfg={template:"ut4.43.",load_rules_ajax:true,load_rules_at_wait:false,lowerqp:false,noconsole:false,session_timeout:1800000,readywait:0,noload:0,domain:utag.loader.lh(),datasource:"##UTDATASOURCE##".replace("##"+"UTDATASOURCE##",""),path:"//tags.tiqcdn.com/utag/idealista/es-portal/prod/",utid:"idealista/es-portal/201902011630"};utag.cfg.v=utag.cfg.template+"201902011630";utag.cond={24:0,25:0,28:0,29:0,31:0,33:0};utag.pagevars=function(ud){ud=ud||utag.data;try{ud['js_page.IQ_category']=IQ_category}catch(e){utag.DB(e)};try{ud['js_page.IQ_sentry_1x1000']=IQ_sentry_1x1000}catch(e){utag.DB(e)};try{ud['js_page.IQ_chapter1']=IQ_chapter1}catch(e){utag.DB(e)};try{ud['js_page.IQ_chapter2']=IQ_chapter2}catch(e){utag.DB(e)};try{ud['js_page.IQ_chapter3']=IQ_chapter3}catch(e){utag.DB(e)};try{ud['js_page.IQ_contactFormsFeedbackOK']=IQ_contactFormsFeedbackOK}catch(e){utag.DB(e)};try{ud['js_page.IQ_hotjarId']=IQ_hotjarId}catch(e){utag.DB(e)};try{ud['js_page.IQ_pageName']=IQ_pageName}catch(e){utag.DB(e)};try{ud['js_page.IQ_pxRootUrl']=IQ_pxRootUrl}catch(e){utag.DB(e)};try{ud['js_page.IQ_userId']=IQ_userId}catch(e){utag.DB(e)};try{ud['js_page.IQ_xtn2']=IQ_xtn2}catch(e){utag.DB(e)};try{ud['js_page.IQ_xtn2concatenation']=IQ_xtn2concatenation}catch(e){utag.DB(e)};try{ud['js_page.IQ_xtsite']=IQ_xtsite}catch(e){utag.DB(e)};try{ud['js_page.IQ_xtsiteconcatenation']=IQ_xtsiteconcatenation}catch(e){utag.DB(e)};try{ud['js_page.IQ_search_geo_municipalityId']=IQ_search_geo_municipalityId}catch(e){utag.DB(e)};try{ud['js_page.IQ_search_geo_provinceId']=IQ_search_geo_provinceId}catch(e){utag.DB(e)};try{ud['js_page.IQ_optimizelyId']=IQ_optimizelyId}catch(e){utag.DB(e)};try{ud['js_page.IQ_beamerFilter']=IQ_beamerFilter}catch(e){utag.DB(e)};try{ud['js_page.IQ_beamerProductId']=IQ_beamerProductId}catch(e){utag.DB(e)};try{ud['js_page.IQ_beamerSelector']=IQ_beamerSelector}catch(e){utag.DB(e)};try{ud['js_page.IQ_pxAppId']=IQ_pxAppId}catch(e){utag.DB(e)};try{ud['js_page.IQ_search_geo_provinceName']=IQ_search_geo_provinceName}catch(e){utag.DB(e)};try{ud['js_page.IQ_pageSectionPortal']=IQ_pageSectionPortal}catch(e){utag.DB(e)};try{ud['js_page.IQ_user_agent']=IQ_user_agent}catch(e){utag.DB(e)};try{ud['js_page.IQ_origin']=IQ_origin}catch(e){utag.DB(e)};};utag.loader.initdata=function(){try{utag.data=(typeof utag_data!='undefined')?utag_data:{};utag.udoname='utag_data';}catch(e){utag.data={};utag.DB('idf:'+e);}};utag.loader.loadrules=function(_pd,_pc){var d=_pd||utag.data;var c=_pc||utag.cond;for(var l in utag.loader.GV(c)){switch(l){case'24':try{c[24]|=(d['ut.event'].toString().toLowerCase()=='view'.toLowerCase())||(d['event_type'].toString().toLowerCase()=='view'.toLowerCase())}catch(e){utag.DB(e)};break;case'25':try{c[25]|=(d['event_type'].toString().toLowerCase()=='link'.toLowerCase())||(d['ut.event'].toString().toLowerCase()=='link'.toLowerCase())}catch(e){utag.DB(e)};break;case'28':try{c[28]|=(typeof d['dom.url']!='undefined'&&d['dom.url']!=''&&d['dom.url'].toString().indexOf('/zoneExperts/')<0&&d['dom.url'].toString().indexOf('/multimediaProfile/')<0&&d['dom.url'].toString().indexOf('/news/')<0&&d['dom.url'].toString().indexOf('/menu/')<0&&d['page_section'].toString().toLowerCase()!='survey'.toLowerCase()&&d['page_subSection'].toString().toLowerCase()!='landingPage'.toLowerCase())}catch(e){utag.DB(e)};break;case'29':try{c[29]|=(d['user_status'].toString().toLowerCase()=='1'.toLowerCase()&&d['user_type'].toString().toLowerCase()=='2'.toLowerCase())}catch(e){utag.DB(e)};break;case'31':try{c[31]|=(d['page_section'].toString().toLowerCase()=='mortgages'.toLowerCase()&&d['dom.query_string'].toString().toLowerCase().indexOf('seoLandingContatFeedbackOk=true'.toLowerCase())>-1)}catch(e){utag.DB(e)};break;case'33':try{c[33]|=(typeof d['js_page.IQ_search_geo_provinceId']!='undefined'&&d['js_page.IQ_search_geo_provinceId']!='')}catch(e){utag.DB(e)};break;}}};utag.pre=function(){utag.loader.initdata();utag.pagevars();try{utag.loader.RD(utag.data)}catch(e){utag.DB(e)};utag.loader.loadrules();};utag.loader.GET=function(){utag.cl={'_all_':1};utag.pre();utag.handler.extend=[function(a,b){try{if(1){teal.flattenObject(b,b);}}catch(e){utag.DB(e)}},function(a,b,c,d,e,f,g){d=b['ut.env'];if(typeof d=='undefined')return;c=[{'prod':'8352504004'}];var m=false;for(e=0;e<c.length;e++){for(f in c[e]){g=new RegExp(f,'i');if(g.test(d)){b['js_page.IQ_optimizelyId']=c[e][f];m=true};};if(m)break};if(!m)b['js_page.IQ_optimizelyId']='8418071425';},function(a,b){try{if(typeof b['page_markup_xtPage']!='undefined'&&b['page_markup_xtPage']!=''){b['markup_xtPage']=b['page_markup_xtPage']}}catch(e){utag.DB(e)}},function(a,b){try{if(typeof b['page_operation']!='undefined'&&b['page_operation']!=''){b['search_operation']=b['page_operation']}}catch(e){utag.DB(e)}},function(a,b){try{if(typeof b['page_typology']!='undefined'&&b['page_typology']!=''){b['search_typology']=b['page_typology']}}catch(e){utag.DB(e)}},function(a,b){try{if((typeof b['news_category']!='undefined'&&b['news_category']!=''&&b['ut.profile'].toString().toLowerCase().indexOf('news'.toLowerCase())>-1)){b['js_page.IQ_category']=b['news_category']}}catch(e){utag.DB(e)}},function(a,b,c,d){try{if((b['ut.profile'].toString().toLowerCase().indexOf('news'.toLowerCase())<0&&typeof b['page_name']!='undefined'&&b['page_name']!='')){c=[b['page_subSection'],b['page_name']];b['js_page.IQ_category']=c.join(': ')}}catch(e){utag.DB(e)}},function(a,b,c,d){try{if(/4[0-9]/.test(b['response_statusCode'])||/5[0-9]/.test(b['response_statusCode'])){c=[b['ut.env'],b['response_statusCode'],b['response_loadBalancer'],b['dom.url']];b['markup_xtPage']=c.join('::')}}catch(e){utag.DB(e)}},function(a,b){try{if(1){var linea=b['markup_xtPage'];var cp1="",cp2="",cp3="",pn="";if(!linea||linea.length===0){cp1==b['page_category']&&b['page_category']!==''?b['page_category']:"";cp2==b['page_subCategory']&&b['page_subCategory']!==''?b['page_subCategory']:"";cp3==b['page_subSubCategory']&&b['page_subSubCategory']!==''?b['page_subSubCategory']:"";pn==b['page_name']&&b['page_name']!==''?b['page_name']:"";}else{if(linea.indexOf("::")==-1){pn=linea;}else{var arrayLinea=linea.split("::");var largoArray=arrayLinea.length;if(largoArray==4){cp1=arrayLinea[0];cp2=arrayLinea[1];cp3=arrayLinea[2];pn=arrayLinea[3];}else if(largoArray==3){cp1=arrayLinea[0];cp2=arrayLinea[1];cp3="";pn=arrayLinea[2];}else if(largoArray==2){cp1=arrayLinea[0];cp3=cp2="";pn=arrayLinea[1];}else if(largoArray==1){pn=arrayLinea[0];cp1=cp3=cp2="";}}}
b['js_page.IQ_chapter1']=cp1;b['js_page.IQ_chapter2']=cp2;b['js_page.IQ_chapter3']=cp3;b['js_page.IQ_pageName']=pn;}}catch(e){utag.DB(e)}},function(a,b){try{if(typeof b['search_geo_locationId']!='undefined'&&b['search_geo_locationId']!=''){var lineaLocation=b['search_geo_locationId'];var level0="",level1="",level2="",level3="",level4="",level5="",level6="",level7="",level8="";if(!lineaLocation||lineaLocation.length===0){level3==b['js_page.IQ_search_geo_provinceId']&&b['js_page.IQ_search_geo_provinceId']!==''?b['js_page.IQ_search_geo_provinceId']:"";level6==b['js_page.IQ_search_geo_municipalityId']&&b['js_page.IQ_search_geo_municipalityId']!==''?b['js_page.IQ_search_geo_municipalityId']:"";}else{if(lineaLocation.indexOf("-")==-1){level0=lineaLocation;}else{var arraylineaLocation=lineaLocation.split("-");var largoArray=arraylineaLocation.length;if(largoArray==9){level0=arraylineaLocation[0];level1=arraylineaLocation[1];level2=arraylineaLocation[2];level3=arraylineaLocation[3];level4=arraylineaLocation[4];level5=arraylineaLocation[5];level6=arraylineaLocation[6];level7=arraylineaLocation[7];level8=arraylineaLocation[8];}else if(largoArray==8){level0=arraylineaLocation[0];level1=arraylineaLocation[1];level2=arraylineaLocation[2];level3=arraylineaLocation[3];level4=arraylineaLocation[4];level5=arraylineaLocation[5];level6=arraylineaLocation[6];level7=arraylineaLocation[7];}else if(largoArray==7){level0=arraylineaLocation[0];level1=arraylineaLocation[1];level2=arraylineaLocation[2];level3=arraylineaLocation[3];level4=arraylineaLocation[4];level5=arraylineaLocation[5];level6=arraylineaLocation[6];}else if(largoArray==6){level0=arraylineaLocation[0];level1=arraylineaLocation[1];level2=arraylineaLocation[2];level3=arraylineaLocation[3];level4=arraylineaLocation[4];level5=arraylineaLocation[5];}else if(largoArray==5){level0=arraylineaLocation[0];level1=arraylineaLocation[1];level2=arraylineaLocation[2];level3=arraylineaLocation[3];level4=arraylineaLocation[4];}else if(largoArray==4){level0=arraylineaLocation[0];level1=arraylineaLocation[1];level2=arraylineaLocation[2];level3=arraylineaLocation[3];}else if(largoArray==3){level0=arraylineaLocation[0];level1=arraylineaLocation[1];level2=arraylineaLocation[2];}else if(largoArray==2){level0=arraylineaLocation[0];level1=arraylineaLocation[1];}else if(largoArray==1){level0=arraylineaLocation[0];}}}
b['js_page.IQ_search_geo_provinceId']=level0+"-"+level1+"-"+level2+"-"+level3;b['js_page.IQ_search_geo_municipalityId']=level0+"-"+level1+"-"+level2+"-"+level3+"-"+level4+"-"+level5+"-"+level6;}}catch(e){utag.DB(e)}},function(a,b){try{if(b['ut.profile'].toString().toLowerCase().indexOf('portal'.toLowerCase())>-1){b['js_page.IQ_pageSectionPortal']=b['page_subSection']}}catch(e){utag.DB(e)}},function(a,b,c,d){try{if(1){c=[b['response_isError'],b['response_statusCode'],b['ut.env']];b['js_page.IQ_xtsiteconcatenation']=c.join('-')}}catch(e){utag.DB(e)}},function(a,b,c,d){c=['js_page.IQ_xtsiteconcatenation'];for(d=0;d<c.length;d++){try{b[c[d]]=(b[c[d]]instanceof Array||b[c[d]]instanceof Object)?b[c[d]]:b[c[d]].toString().toLowerCase()}catch(e){}}},function(a,b,c,d,e,f,g){d=b['js_page.IQ_xtsiteconcatenation'];if(typeof d=='undefined')return;c=[{'-(4[0-9]+)-prod':'582065'},{'-(4[0-9]+)-(dev|qa)':'582066'},{'-(5[0-9]+)-':'592230'},{'^1-':'592230'},{'prod$':'582065'}];var m=false;for(e=0;e<c.length;e++){for(f in c[e]){g=new RegExp(f,'i');if(g.test(d)){b['js_page.IQ_xtsite']=c[e][f];m=true};};if(m)break};if(!m)b['js_page.IQ_xtsite']='582066';},function(a,b,c,d){try{if(1){c=[b['js_page.IQ_xtsite'],b['response_statusCode'],b['page_section'],b['search_typology'],b['search_operation']];b['js_page.IQ_xtn2concatenation']=c.join('-')}}catch(e){utag.DB(e)}},function(a,b,c,d){c=['js_page.IQ_xtn2concatenation'];for(d=0;d<c.length;d++){try{b[c[d]]=(b[c[d]]instanceof Array||b[c[d]]instanceof Object)?b[c[d]]:b[c[d]].toString().toLowerCase()}catch(e){}}},function(a,b,c,d,e,f,g){d=b['js_page.IQ_xtn2concatenation'];if(typeof d=='undefined')return;c=[{'-4[0-9]+-':'254'},{'^592230':'1'},{'home-':'10'},{'portal-1-1':'11'},{'portal-5-1':'11'},{'portal-2-2':'11'},{'portal-3-3':'11'},{'portal-6-1':'11'},{'portal-4-1':'11'},{'portal-12-1':'11'},{'portal-13-1':'11'},{'portal-8-1':'11'},{'portal-1-2':'12'},{'portal-2-3':'12'},{'portal-3-4':'12'},{'portal-9-2':'12'},{'portal-5-2':'12'},{'portal-6-2':'12'},{'portal-4-2':'12'},{'portal-12-2':'12'},{'portal-13-2':'12'},{'portal-8-2':'12'},{'portal-1-3':'12'},{'portal-9-3':'12'},{'portal-5-3':'12'},{'portal-6-3':'12'},{'portal-4-3':'12'},{'portal-12-3':'12'},{'portal-13-3':'12'},{'portal-8-3':'12'},{'portal-7-2':'13'},{'portal-10-1':'14'},{'portal-10-2':'15'},{'portal-10-3':'15'},{'freeSearch-':'16'},{'freeGeo-':'17'},{'microsite-':'18'},{'addListing-':'19'},{'newsInt-':'20'},{'tools-':'1'},{'news-':'2'},{'mortgages-':'3'},{'privateArea-':'21'},{'shoppingCart-':'22'},{'archive-':'4'},{'agency-':'23'}];var m=false;for(e=0;e<c.length;e++){for(f in c[e]){g=new RegExp(f,'i');if(g.test(d)){b['js_page.IQ_xtn2']=c[e][f];m=true};};if(m)break};if(!m)b['js_page.IQ_xtn2']='255';},function(a,b,c,d,e,f,g){d=b['markup_xtPage'];if(typeof d=='undefined')return;c=[{'mail_cliente_a':'253'},{'mail_cliente_v':'253'},{'mail_particular_a':'253'},{'mail_particular_v':'253'},{'mail_cliente_on':'253'},{'mail_cliente_m':'253'},{'telf_particular_a':'253'},{'telf_particular_v':'253'},{'telf_cliente_a':'253'},{'telf_cliente_v':'253'},{'favoritear_anuncio':'253'},{'recibir_aviso':'253'},{'enviar_anuncio':'253'},{'registro_usuario':'253'},{'baja_notificaciones_usuario':'253'},{'alerta_baja_precio':'253'},{'pedir_cita':'253'},{'solicitud_hipoteca':'253'},{'ce__compra_ok':'253'},{'descartar_anuncio':'253'}];var m=false;for(e=0;e<c.length;e++){for(f in c[e]){if(d==f){b['js_page.IQ_xtn2']=c[e][f];m=true};};if(m)break};},function(a,b,c,d){try{if((typeof b['user_id']!='undefined'&&b['user_id']!=''&&!/^ES00/i.test(b['user_id']))){c=['ES00',b['user_id']];b['js_page.IQ_userId']=c.join('')}}catch(e){utag.DB(e)}},function(a,b){try{if((typeof b['js_page.IQ_userId']!='undefined'&&b['js_page.IQ_userId']!=''&&!/^ES00ES00/i.test(b['js_page.IQ_userId']))){document.cookie="IQ_userIdCookie="+b['js_page.IQ_userId']+";path=/;domain="+utag.cfg.domain+";expires=Thu, 31 Dec 2099 00:00:00 GMT";b['cp.IQ_userIdCookie']=b['js_page.IQ_userId'];}}catch(e){utag.DB(e)}},function(a,b){try{if(/(\W|^)[\w.\-]{0,25}~[\w.\-]{0,25}\.[\w.\-]{0,25}(\W|$)/.test(b['markup_xtPage'])){b['js_page.IQ_pageName']='your-subscriptions-email'}}catch(e){utag.DB(e)}},function(a,b){try{if(1){try{b['js_page.IQ_sentry_1x1000']=Math.round(Math.random()*(1000-1)+1)}catch(e){}}}catch(e){utag.DB(e)}},function(a,b,c,d,e,f,g){d=b['ut.env'];if(typeof d=='undefined')return;c=[{'dev':'416662'},{'qa':'416662'},{'prod':'250321'}];var m=false;for(e=0;e<c.length;e++){for(f in c[e]){if(d==f){b['js_page.IQ_hotjarId']=c[e][f];m=true};};if(m)break};}];utag.handler.cfg_extend=[{"alr":0,"end":0,"id":"61","bwq":0,"blr":1},{"alr":0,"blr":1,"bwq":0,"id":"2","end":0},{"alr":0,"id":"96","end":0,"bwq":0,"blr":1},{"alr":0,"end":0,"id":"113","bwq":0,"blr":1},{"alr":0,"blr":1,"bwq":0,"id":"114","end":0},{"blr":1,"bwq":0,"end":0,"id":"128","alr":0},{"alr":0,"blr":1,"bwq":0,"end":0,"id":"129"},{"id":"130","end":0,"bwq":0,"blr":1,"alr":0},{"alr":0,"id":"52","end":0,"bwq":0,"blr":1},{"alr":0,"end":0,"id":"122","bwq":0,"blr":1},{"id":"126","end":0,"bwq":0,"blr":0,"alr":1},{"blr":0,"bwq":0,"id":"49","end":0,"alr":1},{"alr":1,"end":0,"id":"37","bwq":0,"blr":0},{"alr":1,"blr":0,"bwq":0,"end":0,"id":"50"},{"alr":1,"blr":0,"bwq":0,"id":"48","end":0},{"alr":1,"end":0,"id":"69","bwq":0,"blr":0},{"alr":1,"blr":0,"bwq":0,"id":"51","end":0},{"alr":1,"id":"97","end":0,"bwq":0,"blr":0},{"alr":0,"id":"66","end":0,"bwq":0,"blr":1},{"blr":0,"bwq":0,"id":"60","end":0,"alr":1},{"blr":0,"bwq":0,"end":0,"id":"98","alr":1},{"end":0,"id":"131","bwq":0,"blr":1,"alr":0},{"alr":0,"blr":1,"bwq":0,"end":0,"id":"1"}];utag.loader.initcfg=function(){utag.loader.cfg={"11":{load:1,send:1,v:201807171534,wait:1,tid:15022},"88":{load:utag.cond[24],send:1,v:201812092052,wait:1,tid:1178},"89":{load:utag.cond[25],send:1,v:201901281707,wait:1,tid:1178},"12":{load:1,send:1,v:201902011612,wait:1,tid:8009},"102":{load:utag.cond[28],send:1,v:201812092052,wait:1,tid:20010},"103":{load:utag.cond[29],send:1,v:201812092052,wait:1,tid:20010},"117":{load:utag.cond[31],send:1,v:201811071025,wait:1,tid:7132},"131":{load:utag.cond[33],send:1,v:201812092052,wait:1,tid:20010}};utag.loader.cfgsort=["11","88","89","12","102","103","117","131"];}
utag.loader.initcfg();}
if(typeof utag_cfg_ovrd!='undefined'){for(utag._i in utag.loader.GV(utag_cfg_ovrd))utag.cfg[utag._i]=utag_cfg_ovrd[utag._i]};utag.loader.PINIT=function(a,b,c){utag.DB("Pre-INIT");if(utag.cfg.noload){return;}
try{this.GET();if(utag.handler.RE('view',utag.data,"blr")){utag.handler.LR(utag.data);}}catch(e){utag.DB(e)};a=this.cfg;c=0;for(b in this.GV(a)){if(a[b].block==1||(a[b].load>0&&(typeof a[b].src!='undefined'&&a[b].src!=''))){a[b].block=1;c=1;this.bq[b]=1;}}
if(c==1){for(b in this.GV(a)){if(a[b].block){a[b].id=b;if(a[b].load==4)a[b].load=1;a[b].cb=function(){var d=this.uid;utag.loader.cfg[d].cbf=1;utag.loader.LOAD(d)};this.AS(a[b]);}}}
if(c==0)this.INIT();};utag.loader.INIT=function(a,b,c,d,e){utag.DB('utag.loader.INIT');if(this.ol==1)return-1;else this.ol=1;if(utag.cfg.noview!=true)utag.handler.RE('view',utag.data,"alr");utag.rpt.ts['i']=new Date();d=this.cfgsort;for(a=0;a<d.length;a++){e=d[a];b=this.cfg[e];b.id=e;if(b.block!=1){if(utag.loader.bk[b.id]||((utag.cfg.readywait||utag.cfg.noview)&&b.load==4)){this.f[b.id]=0;utag.loader.LOAD(b.id)}else if(b.wait==1&&utag.loader.rf==0){utag.DB('utag.loader.INIT: waiting '+b.id);this.wq.push(b)
this.f[b.id]=2;}else if(b.load>0){utag.DB('utag.loader.INIT: loading '+b.id);this.lq.push(b);this.AS(b);}}}
if(this.wq.length>0)utag.loader.EV('','ready',function(a){if(utag.loader.rf==0){utag.DB('READY:utag.loader.wq');utag.loader.rf=1;utag.loader.WQ();}});else if(this.lq.length>0)utag.loader.rf=1;else if(this.lq.length==0)utag.loader.END();return 1};utag.loader.EV('','ready',function(a){if(utag.loader.efr!=1){utag.loader.efr=1;try{try{if(utag.data['page_subSection'].toString().toLowerCase()=='listing'.toLowerCase()){$(".mortgage-ad__container").click(function(){var idBanConta=$(".mortgage-ad__container")[0].id.split("-");if(idBanConta.length>=0)var pageName=idBanConta[idBanConta.length-1];if(idBanConta.length>1)var chapter1=idBanConta[0];if(idBanConta.length>2)var chapter2=idBanConta[1];if(idBanConta.length>3)var chapter3=idBanConta[2];utag.link({"event_category":"mortgages","event_type":"link","markup_xtPage":chapter1+"::"+chapter2+"::"+chapter3+"::"+pageName,"event_click_type":"navigation","response_isError":utag.data['response_isError'],"response_statusCode":utag.data['response_statusCode'],"page_section":utag.data['page_section'],"page_operation":utag.data['page_operation'],"page_typology":utag.data['page_typology'],});});}}catch(e){utag.DB(e)}}catch(e){utag.DB(e)};try{try{if(utag.data['page_subSection'].toString().toLowerCase()=='listing'.toLowerCase()){var links=document.querySelectorAll('*[id^="listing-all-tabs"]');Array.prototype.forEach.call(links,function(element,index,array){element.addEventListener('click',utagLink);});function utagLink(element){var eventName=element.currentTarget.getAttribute("id")
var eventNameLink;switch(eventName){case("listing-all-tabs-buy"):eventNameLink="buy";break;case("listing-all-tabs-rent"):eventNameLink="rent";break;case("listing-all-tabs-share"):eventNameLink="share";break;case("listing-all-tabs-vacational"):eventNameLink="vacational";break;case("listing-all-tabs-newdevelopment"):eventNameLink="newdevelopment";break;default:eventNameLink="fail-eventNameID";}
utag.link({"response_statusCode":utag.data['response_statusCode'],"response_loadBalancer":utag.data['response_loadBalancer'],"response_webServer":utag.data['response_webServer'],"response_errorTemplate":utag.data['response_errorTemplate'],"page_section":utag.data['page_section'],"page_subSection":utag.data['page_subSection'],"page_category":utag.data['page_category'],"page_subCategory":utag.data['page_subCategory'],"page_subSubCategory":utag.data['page_subSubCategory'],"page_name":utag.data['page_name'],"page_language":utag.data['page_language'],"user_status":utag.data['user_status'],"user_type":utag.data['user_type'],"user_id":utag.data['user_id'],"user_commercialDataId":utag.data['user_commercialDataId'],"user_languageCommunication":utag.data['user_languageCommunication'],"event_type":"link","event_category":"listing","event_subCategory":utag.data['page_section'],"event_name":eventNameLink,"event_action":"tealiumIQ-link","event_click_type":"navigation","event_origin":"utag.data['js_page.IQ_pageName']"});}}}catch(e){utag.DB(e)}}catch(e){utag.DB(e)};}})
if(utag.cfg.readywait||utag.cfg.waittimer){utag.loader.EV('','ready',function(a){if(utag.loader.rf==0){utag.loader.rf=1;utag.cfg.readywait=1;utag.DB('READY:utag.cfg.readywait');setTimeout(function(){utag.loader.PINIT()},utag.cfg.waittimer||1);}})}else{utag.loader.PINIT()}}