//tealium universal tag - utag.loader ut4.0.201802080956, Copyright 2018 Tealium.com Inc. All Rights Reserved.
if(typeof utag_err=='undefined')var utag_err=[];window._tealium_old_error=window._tealium_old_error||window.onerror||function(){};window.onerror=function(m,u,l){if(typeof u!=='undefined'&&u.indexOf('/utag.')>0&&utag_err.length<5)utag_err.push({e:m,s:u,l:l,t:'js'});window._tealium_old_error(m,u,l)};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_santander_bancaonlineparticulares=(\/\/tags\.tiqcdn\.com\/utag\/santander\/[^\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/santander/bancaonlineparticulares/prod/';}}})();}catch(e){};try{window.utag_data=window.utag_data||{};utag_data.do_not_track="";if(navigator.doNotTrack=="yes"||navigator.doNotTrack=="1"||navigator.msDoNotTrack=="1"){window.utag={};utag.data={};utag.handler={};utag.handler.trigger=function(){};utag.track=function(){};utag.view=function(){};utag.link=function(){};utag.cfg={};utag.data.do_not_track="yes";utag.cfg.utid="santander/bancaonlineparticulares/201802080955";}}catch(e){};if(!utag_condload){try{if((/^\/SIMSEG_SPNPHOENIX/i.test(document.location.pathname)||/^(salud|preconcedidos|preconmovfront2|seguroshogar\-front|seguroshogar|seghogar\.santander\.pre\.corp)/.test(document.location.hostname))&&(typeof jQuery!=='undefined')){(function(e,f){var b={},g=function(a){b[a]&&(f.clearInterval(b[a]),b[a]=null)};e.fn.waitUntilExists=function(a,h,j){var c=this.selector,d=e(c),k=d.not(function(){return e(this).data("waitUntilExists.found")});"remove"===a?g(c):(k.each(a).data("waitUntilExists.found",!0),h&&d.length?g(c):j||(b[c]=f.setInterval(function(){d.waitUntilExists(a,h,!0)},500)));return d}})(jQuery,window);}}catch(e){}};if(!utag_condload){try{try{if(/(PRECOM_PHOENIX)/.test(document.location.pathname)){window.utag_cfg_ovrd={noview:true};}}catch(e){utag.DB(e)}}catch(e){}};if(!utag_condload){try{try{if(/(FXPAY1_FXPAY)/.test(document.location.pathname)||(/fxpayfrontend-san-fxpay-pre\.appls\.boae\.paas\.gsnetcloud\.corp/.test(document.domain))||(/fxpay\.bancosantander\.es/.test(document.domain))||(/santanderpay\.gruposantander\.es/.test(document.domain))||(/santanderpay\.bsan\.mobi/.test(document.domain))){window.utag_cfg_ovrd={noview:true};console.log("noview true fxpay");}}catch(e){utag.DB(e)}}catch(e){}};if(!utag_condload){try{try{if(/RECDIG_DEUDA_(INT|MOV)/.test(utag.data["dom.pathname"])){window.utag_cfg_ovrd={noview:true};console.log("noview true recobros");}}catch(e){utag.DB(e)}}catch(e){}};if(!utag_condload){try{if(/^(seguroshogar\-front|seguroshogar|(seghogar|segvida)\.santander\.pre\.corp)/.test(document.location.hostname)){function kruxPageView(idPageView){window.Krux||((Krux=function(){Krux.q.push(arguments);}).q=[]);Krux('ns:bancosantander','admEvent',idPageView,{});}
function kruxEvent(idEvent,array){window.Krux||((Krux=function(){Krux.q.push(arguments);}).q=[]);Krux('ns:bancosantander','admEvent',idEvent,array);}}}catch(e){}};if(typeof utag=="undefined"&&!utag_condload){var utag={id:"santander.bancaonlineparticulares",o:{},sender:{},send:{},rpt:{ts:{a:new Date()}},dbi:[],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);}
utag.handler.RE('view',utag.data,"bwq");if(utag.cfg.load_rules_at_wait){utag.handler.LR();}}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?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_santander.bancaonlineparticulares_'+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"]=eval("document."+"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=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];}
o["_t_visitor_id"]=o["cp.utag_main_v_id"];o["_t_session_id"]=o["cp.utag_main_ses_id"];},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,a,b){a="";try{a=localStorage.getItem("tealium_va");if(!a||a=="{}")return;b=utag.ut.flatten({va:JSON.parse(a)});utag.ut.merge(o,b,1);}catch(e){utag.DB("localStorage not supported");}},RDut:function(o,a){o["ut.domain"]=utag.cfg.domain;o["ut.version"]=utag.cfg.v;o["ut.event"]=a||"view";try{o["ut.account"]=utag.cfg.utid.split("/")[0];o["ut.profile"]=utag.cfg.utid.split("/")[1];o["ut.env"]=utag.cfg.path.split("/")[6];}catch(e){utag.DB(e)}},RD:function(o,a,b,c,d){utag.DB("utag.loader.RD");utag.DB(o);if(!utag.loader.rd_flag){a=(new Date()).getTime();b=utag.loader.RC();c=a+parseInt(utag.cfg.session_timeout);d=a;if(!b.utag_main){b.utag_main={};}else if(b.utag_main.ses_id&&typeof b.utag_main._st!="undefined"&&parseInt(b.utag_main._st)<a){delete b.utag_main.ses_id;}
if(!b.utag_main.v_id){b.utag_main.v_id=utag.ut.vi(a);}
if(!b.utag_main.ses_id){b.utag_main.ses_id=d+'';b.utag_main._ss=b.utag_main._pn=1;b.utag_main._sn=1+parseInt(b.utag_main._sn||0);}else{d=b.utag_main.ses_id;b.utag_main._ss=0;b.utag_main._pn=1+parseInt(b.utag_main._pn);b.utag_main._sn=parseInt(b.utag_main._sn);}
if(isNaN(b.utag_main._sn)||b.utag_main._sn<1){b.utag_main._sn=b.utag_main._pn=1}
b.utag_main._st=c+'';utag.loader.SC("utag_main",{"v_id":b.utag_main.v_id,"_sn":b.utag_main._sn,"_ss":b.utag_main._ss,"_pn":b.utag_main._pn+";exp-session","_st":c,"ses_id":d+";exp-session"});}
utag.loader.rd_flag=1;this.RDqp(o);this.RDmeta(o);this.RDcp(o,b);this.RDdom(o);this.RDva(o);this.RDut(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();(function(a,b,c,l){if(typeof utag_err!='undefined'&&utag_err.length>0){a='//uconnect.tealiumiq.com/ulog/_error?utid='+utag.cfg.utid;l=utag_err.length>5?5:utag_err.length;for(b=0;b<l;b++){c=utag_err[b];a+='&e'+b+'='+encodeURIComponent(c.t+'::'+c.l+'::'+c.s+'::'+c.e);}
utag.dbi.push((new Image()).src=a);}})();v=".tiqcdn.com";w=utag.cfg.path.indexOf(v);if(w>0&&b["cp.utag_main__ss"]==1)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"})
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"){utag.db_log=[];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{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){return this.track({event:'link',data:a,cfg:{cb:c}})},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){for(b=0;b<a;b++){c=utag.loader.q[b];utag.handler.trigger(c.a,c.b)}}
},test:function(){return 1},LR:function(){utag.DB("Load Rules");for(var d in utag.loader.GV(utag.cond)){utag.cond[d]=false;}
utag.DB(utag.data);utag.loader.loadrules();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&&!this.cfg_extend){return 0;}
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)||(typeof c!="undefined"&&f[c]==0)){e=1}else{if(typeof c!="undefined"&&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);b=b||{};utag.DB(b);if(!this.iflag){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:b});return;}
utag.cfg.noview=false;utag.ut.merge(b,this.df,0);utag.loader.RDqp(b);utag.loader.RDcp(b);utag.loader.RDdom(b);utag.loader.RDmeta(b);utag.loader.RDva(b);utag.loader.RDut(b,a);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.cfg[d].s2s!=1){utag.loader.sendq[d]=utag.loader.sendq[d]||[];utag.loader.sendq[d].push({"event":a,"data":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);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");utag.ut.merge(utag.data,b,1);this.LR();this.RE(a,b);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);for(d in utag.loader.GV(utag.sender)){sendTag(a,b,d);}}
utag.loader.SC("utag_main",{"_st":((new Date()).getTime()+parseInt(utag.cfg.session_timeout))});},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},error:function(a,b,c){if(typeof utag_err!="undefined"){utag_err.push(a)}},loader:function(o,a,b,c,l){a=document;if(o.type=="iframe"){b=a.createElement("iframe");o.attrs=o.attrs||{"height":"1","width":"1","style":"display:none"};for(l in utag.loader.GV(o.attrs)){b.setAttribute(l,o.attrs[l])}
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";for(l in utag.loader.GV(o.attrs)){b[l]=o.attrs[l]}
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)}}}}};utag.o['santander.bancaonlineparticulares']=utag;utag.cfg={v:"ut4.37.201802080956",load_rules_ajax:true,load_rules_at_wait:false,lowerqp:false,session_timeout:1800000,readywait:0,noload:0,domain:utag.loader.lh(),path:"//tags.tiqcdn.com/utag/santander/bancaonlineparticulares/prod/",utid:"santander/bancaonlineparticulares/201802080955"};utag.cond={10:0,13:0,15:0,16:0,4:0,5:0,6:0,7:0,9:0};utag.pagevars=function(ud){ud=ud||utag.data;try{ud['js_page.gCurrentUser.id']=gCurrentUser.id}catch(e){utag.DB(e)};try{ud['js_page.gCurrentUser.username']=gCurrentUser.username}catch(e){utag.DB(e)};try{ud['js_page.gCurrentUser.userType']=gCurrentUser.userType}catch(e){utag.DB(e)};try{ud['js_page.gCurrentUser']=gCurrentUser}catch(e){utag.DB(e)};try{ud['js_page.supernetAppConfig']=supernetAppConfig}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'10':try{c[10]|=(typeof d['qp.ptns']!='undefined'&&d['dom.pathname'].toString().toLowerCase()!='/credito/alta.htm'.toLowerCase())||(/\.(dev|pre|appls\.boaw\.paas\.gsnetcloud)\.corp|formsnccpar|formsnccmov|formsmovpar|forms|localhost|preconmov|preconcedidos|seguroshogar\-front|\.bancosantander\.es|\.gruposantander\.es/.test(d['dom.domain'])&&d['dom.pathname'].toString().toLowerCase()!='/credito/alta.htm'.toLowerCase())||(/(tarjetas_credito_alta|simulador_seguros_vida)$/.test(d['page_type']))||(/.*(CONPRS_INT_ALCO|CONPR5_MOV_ALCO|CONTRA_PARAM_INT|CONTRA_PARAM_MOV|CONPR5_INT_JAVA|CONPR5_MOV_JAVA|CONPRS_INT_MIG|CONPR5_MOV_MIG).*/.test(d['dom.pathname']))||(/.*(GBANIF_PPINV_ENS|FIRORD_SPBINT_ENS).*/.test(d['dom.pathname']))||(d['dom.domain'].toString().indexOf('bajoimporte')>-1)||(d['dom.pathname'].toString().indexOf('FXPAY1_FXPAY')>-1)||(d['dom.domain'].toString().indexOf('fxpayfrontend-san-fxpay-pre\.appls\.boae\.paas\.gsnetcloud\.corp|fxpay\.bancosantander\.es|santanderpay\.gruposantander\.es|santanderpay\.bsan\.mobi')>-1)}catch(e){utag.DB(e)};break;case'13':try{c[13]|=(d['dom.domain']=='formsnccpar.santander.pre.corp'&&/^\/contratacion\//i.test(d['dom.pathname']))||(/formsncc(par\.grupo|mov\.banco)santander\.es/.test(d['dom.domain'])&&/^\/contratacion\//i.test(d['dom.pathname'])&&/.*/.test(d['cod_cliente']))||(/\/migracion123OC\/html\/upgrade\/?/.test(d['dom.pathname'])&&/.*/.test(d['ut.env']))}catch(e){utag.DB(e)};break;case'15':try{c[15]|=(/\.pre\.corp$/i.test(d['dom.domain'])&&/^(\/credito\/alta\.htm|\/contra\-tarjetas\-debito\/html\/|\/preconcedidos\-int\-part\/html\/)/.test(d['dom.pathname'])&&d['canal'].toString().toLowerCase()=='INT'.toLowerCase())||(/^preconmovfront.*/.test(d['dom.domain']))}catch(e){utag.DB(e)};break;case'16':try{c[16]|=(/^\/seguros_hogar\//.test(d['page_name']))||(d['product_subcategory'].toString().toLowerCase()=='seguros_vida'.toLowerCase()&&typeof d['page_name']!='undefined')}catch(e){utag.DB(e)};break;case'4':try{c[4]|=(typeof d['qp.ptns']!='undefined')||(/formsnccpar.*|formsnccmov.*/.test(d['dom.domain']))}catch(e){utag.DB(e)};break;case'5':try{c[5]|=(typeof d['qp.ptns']=='undefined')||(d['dom.query_string'].toString().toLowerCase().indexOf('dse_operationName=NavLoginSupernet&dse_parentContextName=&dse_processorState=initial'.toLowerCase())<0)||(d['dom.domain'].toString().toLowerCase().indexOf('formsncc'.toLowerCase())<0)}catch(e){utag.DB(e)};break;case'6':try{c[6]|=(typeof d['js_page.gCurrentUser']!='undefined')}catch(e){utag.DB(e)};break;case'7':try{c[7]|=(typeof d['js_page.supernetAppConfig']!='undefined')}catch(e){utag.DB(e)};break;case'9':try{c[9]|=(typeof d['qp.ptns']!='undefined')||(d['dom.query_string'].toString().toLowerCase().indexOf('dse_operationName=NavLoginSupernet&dse_parentContextName=&dse_processorState=initial'.toLowerCase())>-1)||(/.*(CONPR5_(INT|MOV)_JAVA|CONTRA_PARAM_(INT|MOV)).*/.test(d['dom.pathname']))}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(typeof b['qp.idm']!='undefined'){utag.loader.SC('utag_main',{'idm':b['qp.idm']+';exp-session'});b['cp.utag_main_idm']=b['qp.idm'];}}catch(e){utag.DB(e)}},function(a,b){try{if((typeof b['qp.ptns']!='undefined'&&!/^\/contratacion-auto\//.test(b['dom.pathname'])&&b['dom.pathname'].toString().toLowerCase().indexOf('CONPR5'.toLowerCase())<0)||(/formsnccpar.*|formsnccmov.*/.test(b['dom.domain'])&&!/^\/contratacion-auto\//.test(b['dom.pathname'])&&b['dom.pathname'].toString().toLowerCase().indexOf('CONPR5'.toLowerCase())<0)){b['isbut_siteid']='bany7ykm6';b['isbut_action']='pageView';try{b['setAllowLinker']=true}catch(e){}}}catch(e){utag.DB(e)}},function(a,b){try{if((/formsnccpar.*|formsnccmov.*/.test(b['dom.domain'])&&/^\/contratacion-auto\//.test(b['dom.pathname'])&&/(cuestionario|pantallaConfirmacion|seleccionCuenta|confirmacion)/.test(b['qp.ptns']))){b['isbut_siteid']='bany7yksi';b['isbut_action']='pageView';try{b['setAllowLinker']=true}catch(e){}}}catch(e){utag.DB(e)}},function(a,b){try{if((b['dom.url'].toString().indexOf('ptns=')>-1&&b['dom.url'].toString().indexOf('paso=')<0)){try{b['page_name']=document.location.pathname+"#"+document.location.search.split("?ptns=")[1].split("&")[0]}catch(e){}}}catch(e){utag.DB(e)}},function(a,b){try{if((b['dom.url'].toString().indexOf('ptns=')>-1&&b['dom.url'].toString().indexOf('paso=')>-1)){try{b['page_name']=document.location.pathname+"#"+document.location.search.split("ptns=")[1].split("&")[0]+"_"+document.location.search.split("paso=")[1].split("&")[0]}catch(e){}}}catch(e){utag.DB(e)}},function(a,b){try{if((/^\/contratacion\//i.test(b['dom.pathname'])&&/formsnccpar.*|formsnccmov.*/.test(b['dom.domain']))||/\/migracion123OC\/html\/upgrade\/?/.test(b['dom.pathname'])){b['my_em_app']='cuenta_123'}}catch(e){utag.DB(e)}},function(a,b,c,d,e,f,g){d=b['dom.domain'];if(typeof d=='undefined')return;c=[{'formsnccpar.santander.pre.corp':'eventmanager.santander.pre.corp'},{'formsnccpar.gruposantander.es':'em.gruposantander.es'},{'formsnccmov.bancosantander.es':'em.gruposantander.es'}];var m=false;for(e=0;e<c.length;e++){for(f in c[e]){if(d==f){b['my_em_dom']=c[e][f];m=true};};if(m)break};},function(a,b){try{if(/^(preconmov|preconcedidos)/.test(b['dom.domain'])){try{b['page_name']='/preconcedidos_omni/'+b.page_name.replace(/\//g,'')}catch(e){}}}catch(e){utag.DB(e)}},function(a,b){try{if((b['product_subcategory'].toString().toLowerCase()=='seguros_vida'.toLowerCase()&&typeof b['page_name']!='undefined'&&b['page_name']!='')||(b['product_subcategory'].toString().toLowerCase()=='seguros_vida'.toLowerCase()&&typeof b['page_name']=='undefined'&&b['dom.pathname'].toString().toLowerCase()=='/login'.toLowerCase())){try{b['page_name']="/seguros_vida"+(typeof b.page_name!='undefined'?('/'+b.page_name.replace(/.*##/,"")):b['dom.pathname'])}catch(e){}}}catch(e){utag.DB(e)}},function(a,b){try{if((b['product_subcategory'].toString().toLowerCase()=='salud'.toLowerCase()&&typeof b['page_name']!='undefined'&&b['page_name']!=''&&typeof b['product_subcategory']!='undefined')){try{b['page_name']="/seguros_salud"+(typeof b.page_name!='undefined'?('/'+b.page_name.replace(/.*##/,"")):b['dom.pathname'])}catch(e){}}}catch(e){utag.DB(e)}}];utag.handler.cfg_extend=[{"alr":1,"bwq":0,"id":"3","blr":0,"end":0},{"alr":1,"bwq":0,"id":"4","blr":0,"end":0},{"alr":1,"bwq":0,"id":"30","blr":0,"end":0},{"alr":1,"bwq":0,"id":"24","blr":0,"end":0},{"alr":1,"bwq":0,"id":"6","blr":0,"end":0},{"alr":1,"bwq":0,"id":"31","blr":0,"end":0},{"alr":1,"bwq":0,"id":"42","blr":0,"end":0},{"alr":1,"bwq":0,"id":"51","blr":0,"end":0},{"alr":1,"bwq":0,"id":"78","blr":0,"end":0},{"alr":1,"bwq":0,"id":"81","blr":0,"end":0}];utag.loader.initcfg=function(){utag.loader.cfg={"18":{load:utag.cond[15],send:1,v:201704191024,wait:1,tid:20067},"5":{load:utag.cond[9],send:1,v:201711241128,wait:1,tid:7110},"2":{load:utag.cond[10],send:1,v:201802080955,wait:1,tid:7110},"3":{load:utag.cond[4],send:1,v:201711241128,wait:1,tid:20010},"9":{load:(utag.cond[6]&&utag.cond[5]),send:1,v:201512221226,wait:1,tid:7110},"8":{load:utag.cond[7],send:1,v:201707241142,wait:1,tid:7110},"16":{load:utag.cond[13],send:1,v:201605241553,wait:1,tid:20010},"21":{load:utag.cond[16],send:1,v:201802080955,wait:1,tid:11019}};utag.loader.cfgsort=["18","5","2","3","9","8","16","21"];}
utag.loader.initcfg();}
if(typeof utag_cfg_ovrd!='undefined'){for(var i in utag.loader.GV(utag_cfg_ovrd))utag.cfg[i]=utag_cfg_ovrd[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();}}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;utag.handler.RE('view',utag.data);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&&b.s2s!=1){if(utag.loader.bk[b.id]||(utag.cfg.readywait&&b.load==4)){this.f[b.id]=0;utag.loader.LOAD(b.id)
}else if(b.wait==1&&utag.loader.rf==0&&!(b.load==4&&utag.cfg.noview)){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{if(typeof gCurrentUser!='undefined'){if(typeof gCurrentUser.id!='undefined'){utag.data.muro_userid=gCurrentUser.id;}
if(typeof gCurrentUser.username!='undefined'){utag.data.muro_username=gCurrentUser.username;if(utag.data.muro_username.indexOf('@')>0)
{utag.data.muro_id_cliente='F'+utag.data.muro_username.substr(0,utag.data.muro_username.indexOf('@'));}
if(utag.data.muro_username.indexOf('\\')>0)
{utag.data.muro_id_gestor=utag.data.muro_username.substr(utag.data.muro_username.indexOf('\\')+1,utag.data.muro_username.length-1);}}
if(typeof gCurrentUser.userType!='undefined'){if(gCurrentUser.userType==1)
{utag.data.muro_usertype='Cliente';}
if(gCurrentUser.userType==2)
{utag.data.muro_usertype='Gestor';}}}}catch(e){utag.DB(e)};try{if(utag_data['dom.pathname']==='/contra-tarjetas-debito/html/firma.html'){$("body").on("evOTPSMS",function(ev){document.title=document.title+'Otp Sms';utag.view({'page_name':utag_data['dom.pathname'].substring(0,utag_data['dom.pathname'].lastIndexOf('/')+1)+'#otpsms'});});}}catch(e){utag.DB(e)};try{if(utag_data['dom.pathname']==='/detalle-beneficios/html/db123INT.html'){$(".mini-icon-click").on("click",function(ev){utag.view({'page_name':utag_data['dom.pathname']+'#mini','uid':utag_data.uid,'cod_cliente':utag_data.cod_cliente,'canal':utag_data.canal,'page_title':'Detalle de Beneficios Mini'});});}}catch(e){utag.DB(e)};try{if(utag_data['dom.pathname'].toLowerCase()==='/contratacion-precon/precon'){if(utag.data["qp.paso"]==="11"&&"mpcrco"===utag.data["qp.ptns"].toLowerCase()){var bSeguro=($("h2[data-translate='CONGRATULATIONS_INSURANCE']").length>0);if(bSeguro){utag_data['seguro']=bSeguro.toString();}
utag.loader.SC("utag_main",{my_seguro:bSeguro});}else if((utag.data["qp.paso"]==="3"||utag.data["qp.paso"]==="33")&&"mpcrco"===utag.data["qp.ptns"].toLowerCase()&&utag.loader.RC("utag_main").my_seguro==="true"){utag_data['seguro']="true";}}}catch(e){utag.DB(e)};try{if(utag_data['dom.pathname']==='/credito/alta.htm'){$(window).on("hashchange",function(ev){var hash=location.hash;if(hash){utag.view({'page_name':utag_data['dom.pathname']+'#'+hash,'uid':utag_data.uid,'cod_cliente':utag_data.cod_cliente,'canal':utag_data.canal,'page_title':'Tarjetas Credito'+hash,'page_type':'tarjetas_credito_alta','product':utag_data.producto});}});}}catch(e){utag.DB(e)};try{if(/^(preconcedidos|preconmovfront2)/.test(utag.data["dom.domain"])){if(/\/simulacion/i.test(utag.data.page_name)){$("#next-button").waitUntilExists(function(){$("#next-button").on("click",function(){utag.link({'simula_id':utag.data.simula_id,'event_type':'preconcedidos_click','event_target':'importe_inicial_a_contratar','preconcedidos_importe_ini':parseInt($("#amount-input").val().replace(".",""))});});});}
$("body").on("evSimula",function(e,data){utag.link({'event_target':'simula_'+data.type,'event_type':'preconcedidos','simula_id':data.simula_id});});$("body").on("evShowView",function(event,param1){var my_page_name=param1.page_name.replace(/\//g,'');utag.view({'page_name':my_page_name,'page_title':param1.page_title,'simula_id':(param1.simula_id?param1.simula_id:utag.data.simula_id),'seguro':(($.inArray(my_page_name,["contratacion","firma","confirmacion"])>-1&&utag_data.seguro)?utag_data.seguro:"").toString()});if(my_page_name==="confirmacion"){$("#amount-back-confirm").waitUntilExists(function(){utag.link({'simula_id':(param1.simula_id?param1.simula_id:utag.data.simula_id),'event_type':'preconcedidos_click','event_target':'importe_final_a_contratar','preconcedidos_importe_final':parseInt($("#approved-int").text().replace(".","")),'preconcedidos_importe_final_devolver':parseInt($("#amount-back-confirm").text().replace(".","")),'preconcedidos_importe_sel':utag.data.preconcedidos_importe_ini});});}});}}catch(e){utag.DB(e)};try{if(/^\/SIMSEG_SPNPHOENIX/i.test(document.location.pathname)&&angular&&angular.element){angular.element('body').on("evMostrarPantalla",function(e,data){console.log("evento evMostrarPantalla"+data.paso);sendScreenView(data.paso,'Seguros Vida');});angular.element('body').on("evPopup",function(e,data){console.log("evento evPopup"+data);});function sendScreenView(my_screen,my_screen_title){var my_page_name=document.location.pathname.split('/')[1];utag.view({'page_name':"/"+my_page_name+"/"+my_screen,'page_title':my_screen_title,'product':utag_data.product,'canal':utag_data.canal,'cod_cliente':utag_data.cod_cliente,'entidad':utag_data.entidad,'estado':utag_data.estado,'id_solicitud':utag_data.id_solicitud,'page_type':'simulador_seguros_vida'},null,[2]);}
angular.element('body').trigger("evTealiumReady");console.log("tealium_ready");}}catch(e){utag.DB(e)};try{try{if(1){if(/^(seguroshogar\-front|seguroshogar|seghogar\.santander\.pre\.corp)/.test(utag.data["dom.domain"])){if(/(address|cadaster|use|offer|engagement|summary|validation)/i.test(utag.data.page_name)){$("#btn_llamame").waitUntilExists(function(){$(this).on("click",function(){utag.link({'event_type':'Hogar','event_target':'clic llamame','event_action':'Direccion - LLamame'});kruxEvent("LnfnO7dK",{product_subcategory:utag_data.product_subcategory});});});}
var address=function(){$("#btn_province").on("change",function(){utag.link({'event_type':'Hogar','event_target':'clic Provincia','event_action':'Direccion - Provincia','residence_location':$("#btn_province li.ng-scope.nya-bs-option.selected").text()});$("#select-address-city").waitUntilExists(function(){console.log("city-address");$(this).on("change",function(){if(!$(this).data("added")){$("#checkbox-terms-address").on("change",function(){if($("input:checked").length===1){utag.link({'event_type':'Hogar','event_target':'clic check Lopd','event_action':'Direccion - Lopd'});}});$("#literal_LOPD").on("click",function(){utag.link({'event_type':'Hogar','event_target':'clic link Lopd','event_action':'Direccion - Lopd'});});$(this).data("added","true");}});});kruxEvent("Lnfomv7m",{residence_location:utag.data.residence_location});});};var cadaster=function(){$("#input-meters-total").on("change",function(){function calcMetersRange(val){var metersRange;if(parseFloat(val)>=parseFloat(1)&&parseFloat(val)<parseFloat(90)){metersRange="<90";}else if(parseFloat(val)>=parseFloat(90)&&parseFloat(val)<=parseFloat(150)){metersRange="90-150";}else if(parseFloat(val)>parseFloat(150)){metersRange=">150";}
return metersRange;};utag.link({'event_type':'Hogar','event_target':'modificar m2','event_action':'Catastro - m2','house_sqr_meters':calcMetersRange($("#input-meters-total").val())});kruxEvent("LnfpZAp4",{house_sqr_meters:utag.data.house_sqr_meters});});$("#select-dwelling-type").on("change",function(){utag.data.house_type=$("#select-dwelling-type li.ng-scope.nya-bs-option.selected").text();kruxEvent("LnfpZAp4",{house_type:utag.data.house_type});});};var use=function(){$("[id*='regime']").each(function(index){var resp="";$(this).on("click",function(){if($(this).attr("id")==='regime-01'){resp='Propietario'}
else{resp='Inquilino'}
utag.link({'event_type':'Hogar','event_target':'clic Pregunta','event_action':'Uso Vivienda - Regimen - '+resp});});});$("[id*='use']").each(function(index){var resp="";$(this).on("click",function(){if($(this).attr("id")==='use-01'){resp='Principal'}
else if($(this).attr("id")==='use-02'){resp='Secundaria'}
else if($(this).attr("id")==='use-03'){resp='Cedida en alquiler'}
else if($(this).attr("id")==='use-04'){resp='Multipropiedad ...'}
if(resp!==""){utag.link({'event_type':'Hogar','event_target':'clic Pregunta','event_action':'Uso Vivienda - Uso - '+resp});}});});$("[id*='characteristic']").each(function(index){var resp="";$(this).on("click",function(){if($(this).attr("id")==='characteristic-04'){resp='Ladrillo y hormigon'}
else if($(this).attr("id")==='characteristic-05'){resp='Vigas o estructura de madera'}
else if($(this).attr("id")==='characteristic-06'){resp='Madera, adobe o prefabricadas'}
utag.link({'event_type':'Hogar','event_target':'clic Pregunta','event_action':'Uso Vivienda - Caracteristicas - '+resp,'house_construction_type':resp});kruxEvent("LnfphT08",{house_construction_type:utag.data.house_construction_type});});});$("[id*='howMuch']").each(function(index){var resp="";$(this).on("click",function(){if($(this).attr("id")==='howMuch-1'){resp='1'}
else if($(this).attr("id")==='howMuch-2'){resp='2'}
else if($(this).attr("id")==='howMuch-3'){resp='3'}
else if($(this).attr("id")==='howMuch-4'){resp='4'}
utag.link({'event_type':'Hogar','event_target':'clic Pregunta','event_action':'Uso Vivienda - Ocupacion - '+resp});});});$("#input-members-other").on("click",function(){utag.link({'event_type':'Hogar','event_target':'clic Pregunta','event_action':'Uso Vivienda - Ocupacion'});});$("[id*='hasAlarm']").each(function(index){var resp="";$(this).on("click",function(){if($(this).attr("id")==='hasAlarm-0'){resp='Si'}
else{resp='No'}
utag.link({'event_type':'Hogar','event_target':'clic Pregunta','event_action':'Uso Vivienda - Alarma - '+resp});});});$("[id*='typeAlarm']").each(function(index){var resp="";$(this).on("click",function(){if($(this).attr("id")==='typeAlarm-02'){resp='Central de seguridad'}
else{resp='Central de seguridad con verificacion'}
utag.link({'event_type':'Hogar','event_target':'clic Pregunta','event_action':'Uso Vivienda - Tipo Alarma - '+resp});});});$("[id*='heightWindow']").each(function(index){var resp="";$(this).on("click",function(){if($(this).attr("id")==='heightWindow-01'){resp='> 3m'}
else{resp='< 3m'}
utag.link({'event_type':'Hogar','event_target':'clic Pregunta','event_action':'Uso Vivienda - Altura ventanas - '+resp});});});$("[id*='bars']").each(function(index){var resp="";$(this).on("click",function(){if($(this).attr("id")==='bars-02'){resp='En todas las ventanas con altura < 3m'}
else if($(this).attr("id")==='bars-03'){resp='Solo en algunas ventanas'}
else if($(this).attr("id")==='bars-04'){resp='Sin rejas'}
utag.link({'event_type':'Hogar','event_target':'clic Pregunta','event_action':'Uso Vivienda - Rejas - '+resp});});});$("[id*='safe']").each(function(index){var resp="";$(this).on("click",function(){if($(this).attr("id")==='safe-0'){resp='Si'}
else{resp='No'}
utag.link({'event_type':'Hogar','event_target':'clic Pregunta','event_action':'Uso Vivienda - Caja fuerte - '+resp});});});};var offer=function(){$("#editar-capitales").on("click",function(){utag.link({'event_type':'Hogar','event_target':'clic Editar Capitales','event_action':'Oferta - Editar capitales'});});$("#XL").on("click",function(){utag.link({'event_type':'Hogar','event_target':'clic XL','event_action':'Oferta - XL'});});$("#XXL").on("click",function(){utag.link({'event_type':'Hogar','event_target':'clic XXL','event_action':'Oferta - XXL'});});$("#llamame").on("click",function(){utag.link({'event_type':'Hogar','event_target':'clic LLamame','event_action':'Oferta - LLamame'});});$("#checkbox-lopd").on("click",function(){utag.link({'event_type':'Hogar','event_target':'check LOPD','event_action':'Oferta - LOPD'});});};if(utag.data.page_name&&utag.data.page_name.toLowerCase()==="/seguros_hogar/address"){address();}
if(utag.data.page_name&&utag.data.page_name.toLowerCase()==="/seguros_hogar/cadaster"){cadaster();}
if(utag.data.page_name&&utag.data.page_name.toLowerCase()==="/seguros_hogar/use"){use();}
if(utag.data.page_name&&utag.data.page_name.toLowerCase()==="/seguros_hogar/offer"){offer();}}}}catch(e){utag.DB(e)}}catch(e){utag.DB(e)};try{if(/^(seguroshogar\-front|seguroshogar|seghogar\.santander\.pre\.corp)/.test(utag.data["dom.domain"])){$("body").on("evShowView",function(event,data){var kruxPageViewEvent;switch(data.page_name){case"/seguros_hogar/end":case"/seguros_hogar/confirm":kruxPageViewEvent="LnfcGwul";break;case"/seguros_hogar/validation":kruxPageViewEvent="Lnfadji_";break;case"/seguros_hogar/summary":kruxPageViewEvent="LnfaFWr3";break;case"/seguros_hogar/engagement":kruxPageViewEvent="LnfSXF2d";break;case"/seguros_hogar/rejected":kruxPageViewEvent="LnfbkuYp";break;case"/seguros_hogar/address":address();kruxPageViewEvent="LnfIpdon";break;case"/seguros_hogar/cadaster":cadaster();kruxPageViewEvent="LnfMTpy0";break;case"/seguros_hogar/offer":kruxPageViewEvent="LnfQw7Hn";offer();break;case"/seguros_hogar/use":kruxPageViewEvent="LnfPnqWx";use();break;}
utag.view({'page_name':data.page_name,'page_title':data.page_title,'id_case':utag.data.id_case},null,[2]);kruxPageView(kruxPageViewEvent);});}}catch(e){utag.DB(e)};try{try{if(1){if(/(PRECOM_PHOENIX)/.test(utag.data["dom.pathname"])){$("body").on("evShowView",function(event,data){$("#btn_configurar").click(function(){utag.link({event_type:'correspondencia_online',event_target:'configurar_correspondencia',event_action:'boton_configurar'});});utag.view({'page_name':document.location.pathname+'#'+data.page_name,'page_title':data.page_title,'canal':utag_data.canal,'uid':utag_data.uid,'cod_cliente':utag_data.cod_cliente});});$("body").on("evListadoComunicados",function(){$("td[id^='link-comunicado'").each(function(e){$(this).click(function(){var titulo=$(this).attr("data-tagisban");utag.link({event_type:'correspondencia_online',event_target:'abrir_comunicado',event_action:titulo});});});});$("body").on("evConfirma",function(){utag.link({event_type:'correspondencia_online',event_target:'configurar_correspondencia',event_action:'confirmacion_configurar'});});}}}catch(e){utag.DB(e)}}catch(e){utag.DB(e)};try{try{if(1){if(/GBANIF_PPINV_ENS|FIRORD_SPBINT_ENS/.test(utag.data["dom.pathname"])){$("[id^='check_acepta_']").each(function(){$(this).click(function(){if(this.checked){utag.link({event_type:'firma_priips',event_target:'click_'+this.id,event_action:''});}});});$("[id^='pdf_doc_priips']").each(function(){$(this).click(function(){utag.link({event_type:'firma_priips',event_target:'click_pdf',event_action:this.text});});});}}}catch(e){utag.DB(e)}}catch(e){utag.DB(e)};try{try{if(1){if(/bajoimporte/.test(utag.data["dom.domain"])){$("body").on("evShowView",function(event,data){utag.view({'page_name':data.page_name,'page_title':data.page_title,'importe':utag_data.importe,'plazo':utag_data.plazo,'errors':utag_data.errors});});}}}catch(e){utag.DB(e)}}catch(e){utag.DB(e)};try{try{if(1){if(/FXPAY1_FXPAY/.test(document.location.pathname)||/fxpayfrontend-san-fxpay-pre\.appls\.boae\.paas\.gsnetcloud\.corp/.test(document.domain)||/fxpay\.bancosantander\.es/.test(document.domain)||/santanderpay\.gruposantander\.es/.test(document.domain)||/santanderpay\.bsan\.mobi/.test(document.domain)){$("body").on("evShowView",function(event,data){utag.view({'page_name':'/FXPAY1_FXPAY/html/index_min.html#'+data.page_name,'page_title':data.page_title,'divisa':data.divisa});});}}}catch(e){utag.DB(e)}}catch(e){utag.DB(e)};try{try{if(1){if(/^(segvida\.santander\.(dev|pre)\.corp|segurosvida\.)/.test(utag.data["dom.domain"])){$("body").on("evShowView",function(event,data){if(utag.data["ut.env"]!="prod")
console.log("evShowView:"+data.page_name);if(typeof data.page_name!="undefined"){utag.view({'page_name':data.page_name,'page_title':data.page_title,'product':utag_data.product,'canal':utag_data.canal,'cod_cliente':utag_data.cod_cliente,'uid':utag_data.user_id,'id_solicitud':utag_data.id_solicitud,'page_type':utag_data.page_type,'product_category':utag_data.product_category,'product_subcategory':utag_data.product_subcategory});}});}}}catch(e){utag.DB(e)}}catch(e){utag.DB(e)};try{try{if(1){if(/RECDIG_DEUDA_(INT|MOV)/.test(utag.data["dom.pathname"])){$("body").on("evShowView",function(event,data){utag.view({'page_name':data.page_name,'page_title':data.page_title,'page_lang':utag_data.page_lang,'page_type':utag_data.page_type,'canal':utag_data.canal,'uid':utag_data.user_id,'cod_cliente':utag_data.cod_cliente,'segmento_comercial':utag_data.segmento_comercial,'segmento_estructural':utag_data.segmento_estructural,'importe_debido':utag_data.importe_debido,'importe_pagado':utag_data.importe_pagado,'perfil':utag_data.perfil,'product_category':utag_data.product_category,'product_subcategory':utag_data.product_subcategory,'tipo_operacion':utag_data.tipo_operacion});});}}}catch(e){utag.DB(e)}}catch(e){utag.DB(e)};try{try{if(1){if(/salud./.test(utag.data["dom.domain"])){var oferta=function(){$("[id*='tab-']").each(function(index){$(this).on("click",function(){var	product=$(this).text().trim();product=product.substring(0,product.indexOf("\n"));utag.link({'event_type':'Salud','event_target':'Producto elegido','event_action':product});});});};var contratacion=function(){$("#forma_de_pago_combo").waitUntilExists(function(){$("#forma_de_pago_combo ul li").on("click",function(){var payment=$(this).text().trim();payment=payment.substring(0,payment.indexOf(" "));utag.link({'event_type':'Salud','event_target':'Forma de pago','event_action':payment});});});};if(utag.data.page_name&&utag.data.page_name.toLowerCase()==="/seguros_salud/oferta"){oferta();}
if(utag.data.page_name&&utag.data.page_name.toLowerCase()==="/seguros_salud/contratacion"){contratacion();}}}}catch(e){utag.DB(e)}}catch(e){utag.DB(e)};try{try{if(1){if(/salud./.test(utag.data["dom.domain"])){$("body").on("evShowView",function(e,data){if(utag.data["ut.env"]!="prod")
console.log("evShowView:"+data.page_name);if(typeof data.page_name!="undefined"){switch((data.page_name.substring(0,1)=="/"?(data.page_name).substring(15):data.page_name)){case"oferta":oferta();break;case"contratacion":contratacion();break;}
utag.view({'page_name':data.page_name,'page_title':data.page_title,'canal':utag.data.canal,'id_solicitud':utag.data.solicitud_id,'page_type':utag.data.page_type,'product_category':utag.data.product_category,'product_subcategory':utag.data.product_subcategory,'product_name':utag.data.product_name,'product':utag.data.product,'product_paymethod':utag.data.product_paymethod,'cod_cliente':utag.data.cod_cliente,'uid':utag.data.user_id});}});}}}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()}}