truste.ca.getVersion=function(d){var a=null;var b=navigator.userAgent;var c=new RegExp(d);if(c.exec(b)){a=parseFloat(RegExp.$1); if(a>-1){return a}}return a};truste.ca.IEVersion=truste.ca.getVersion("MSIE ([0-9]{1,}[.0-9]{0,})");truste.ca.FFVersion=truste.ca.getVersion("Firefox/([0-9]{1,}[.0-9]{0,})"); truste.ca.SafariVersion=(navigator.userAgent.indexOf("Safari")!=-1)?truste.ca.getVersion("Version/([0-9]{1,}[.0-9]{0,})"):null; truste.ca.isMacOS=(navigator.appVersion.indexOf("Mac")!=-1);truste.ca.openPreferenceManager=function(a){truste.ca.openLink(a.optoutLink) };truste.ca.showIframeInterstitial=function(a){var f=a.docRef;var e=f.getElementById(a.iconSpanId);var d=f.getElementById(a.intDivName); if(!d){d=f.createElement("iframe");d.setAttribute("frameborder","0");d.setAttribute("scrolling","no"); d.style.cssText="width:"+a.interstitialWidth+"px; height: "+a.interstitialHeight+"px; position: absolute; display: none; pointer-events: auto;"; d.id=a.intDivName;truste.ca.intMap[a.baseName]=d;e.parentNode.insertBefore(d,e);setTimeout(function(){var j; try{j=d.contentDocument||d.contentWindow.document}catch(i){try{d.src='javascript:void((function(){document.open();document.domain="'+document.domain+'";document.close();})())'; j=d.contentDocument||d.contentWindow.document}catch(i){}}if(j){j.body.style.cssText="margin: 0; padding: 0;"; var h=a.baseName.replace(/\-/g,"_");d.contentWindow[h+"_bi"]=window[h+"_bi"];var g=truste.ca.intInitMap[a.baseName]; g=g.replace(/truste\.ca\.interstitial_click/g,"parent.truste.ca.interstitial_click");g=g.replace(/truste\.ca\.hideoverlay/g,"parent.truste.ca.hideoverlay"); g=g.replace(/truste\.ca\.openPreferenceManager/g,"parent.truste.ca.openPreferenceManager");var b=truste.ca.createIntElement(j,g); b.style.left=0;b.style.top=0;j.body.appendChild(b)}else{e.parentNode.removeChild(d);d=null}},100)}if(d){d.style.zIndex=parseInt(e.style.zIndex)+1; d.style.display="";var c=truste.ca.contMap[a.baseName];d.style.left=truste.ca.getIntLeftPosition(c,e,d,a)+"px"; d.style.top=truste.ca.getIntTopPosition(c,e,d,a)+"px";truste.ca.sendnotice("open=1&aid="+a.aid+"&pid="+a.pid+"&cid="+a.cid+"&w="+a.width+"&h="+a.height,a) }};truste.ca.addClearAdIconPM=function(G){if(!G.set){return}var j=document.getElementById(G.iconSpanId); if(j){return}truste.ca.addClearAdIconPM.ctr=truste.ca.addClearAdIconPM.ctr||0;truste.ca.adTypeMap[G.baseName]=1; var d=truste.ca.findCreative(G);if(!d){if(truste.ca.IEVersion){var n=document.getElementById("te-clearads-js-"+G.containerId); var w=n.parentNode;var H=(w)?w.nodeName.toLowerCase():"";if(H=="td"){var q=truste.ca.getNodePath(w);for(var v=0; v0){var D=C.pop();do{var c=D.nodeName.toLowerCase();if(c=="table"||c=="center"){G.lastAncestor=null; break}else{if(D.offsetLeft){G.lastAncestor=D;break}}}while(D=C.pop())}}}else{if(!k&&!G.positionedParent){var l=truste.ca.calcPageMargin(d); G.htmlMarginOffset.htmlLeft=l[0];G.htmlMarginOffset.htmlTop=l[1]}}z.style.left=truste.ca.getIconLeftPosition(d,z,G)+"px"; z.style.top=truste.ca.getIconTopPosition(d,z,G)+"px";var p=truste.ca.getNodePath(truste.ca.contMap[G.baseName]); var J=[];for(var m=0;mE&&s.offsetHeight>=G.height)||(s.offsetHeight>f&&s.offsetWidth>=G.width))&&truste.ca.getStyleForProperty(s,"overflow",G.docRef)!="hidden"){var r=truste.ca.getClipStyle(s,G.docRef); console.log("Node id = "+s.id+" st = "+r);if(r==="auto"){var o=(s.id&&s.id!=="")?s.id+I:s.clientWidth+"x"+s.clientHeight+"trusteunique:"+I; F=true;z.style.visibility="hidden";truste.ca.clipValues[o]=r;break}}}}setInterval(function(){for(var e=0; e0){for(var n=0; n0){var e=d.pop(); if(b.call(e)){return e}var a=e.childNodes;if(a&&a.length>0){for(var f=0;f=c&&e.offsetHeight>=a }return bResult};truste.ca.getPreviousDivElement=function(a){var b=a.previousSibling;while(b){if(b.nodeType==1&&b.tagName=="DIV"){return b }b=b.previousSibling}return null};truste.ca.getNextDivElement=function(a){var b=a.nextSibling;while(b){if(b.nodeType==1&&b.tagName=="DIV"){return b }b=b.nextSibling}return null};truste.ca.findDivWrapper=function(c){var d=document.getElementById(c.containerId); if(d){var e=truste.ca.findSizeMatch(d,c.width,c.height);if(truste.ca.IEVersion&&!e&&(d.offsetWidth!=c.width||d.offsetHeight!=c.height)){var a=truste.ca.getNextSibling(d,c); if(a){e=a}}if(e){d=e}}return d};truste.ca.showInterstitial=function(a){truste.ca.showIframeInterstitial(a); return false};truste.ca.getInlineFixForIcon=function(a){var c=truste.ca.getCrossBrowserCompatForStyle("transform","none !important"); if(a.cam=="12"||a.cam=="13"||a.cam=="14"){if(a.plc=="tr"){corner="bottom-left"}else{if(a.plc=="br"){corner="top-left" }else{if(a.plc=="bl"){corner="top-right"}else{corner="bottom-right"}}}c+="background:#acacac !important; "+truste.ca.getCrossBrowserCompatForStyle("border-"+corner+"-radius","5px") }else{c+="background:transparent !important;"}return c};truste.ca.getCrossBrowserCompatForStyle=function(b,c){var a="[STYLE]:[VALUE]; -webkit-[STYLE]:[VALUE]; -moz-[STYLE]:[VALUE]; -ms-[STYLE]:[VALUE]; -o-[STYLE]:[VALUE]; "; a=a.replace(/\[STYLE]/g,b);return a.replace(/\[VALUE]/g,c)};truste.ca.getAdmarkerIcon=function(l){var e,o,c,p="0px"; switch(l.cam){case"0":case"5":e="77px";o="15px";l.cam=="0"?c=l.icon_cam:c=iconsrc=l.icon;break;case"2":case"3":case"4":case"8":case"9":e="19px"; o="15px";l.cam=="2"?c=l.icon_cam:c=l.icon_cam_daa;break;case"6":case"7":case"15":e="40px";o="40px";c=l.icon_cam_daa; break;case"10":e="30px";o="30px";c=l.icon_cam_daa;break;case"12":case"13":e="16px";o="16px";c=l.icon_cam_daa; break;case"16":e="14px";o="14px";c=l.icon;p="1px";rightOff="1px";break;case"20":case"22":e="20px";o="19px"; c=l.icon_cam_daa;break;case"21":e="76px";o="19px";c=l.icon_cam_daa;break;default:e="12px";o="12px";c=l.icon; p="2px"}var i=null;var h=(truste.ca.IEVersion||truste.ca.FFVersion)?truste.ca.findSwf(truste.ca.contMap[l.baseName]):null; if(h){truste.ca.adTypeMap[l.baseName]=2;l.showLink="javascript:truste.ca.showpop("+l.baseName+"_bi)"; l.interstitial=l.interstitial.replace(l.hideLink,"javascript:self.close()");l.hideLink="javascript:self.close()"; var d=l.oBaseUrl+"assets/admarker.swf";var j="77";if(l.cam=="3"||l.cam=="4"||l.cam=="9"){d=l.oBaseUrl+"get?name=ad_icon.swf"; j="19"}i='' }else{var n=truste.ca.getInlineFixForIcon(l);var a="display:inline !important; vertical-align:top; "+n; var g=''; if(l.cam=="3"||l.cam=="4"||l.cam=="6"||l.cam=="7"||l.cam=="9"||l.cam=="10"||l.cam=="15"){i=''+g+"" }else{if(l.cam=="5"){i=g}else{if(l.cam=="12"||l.cam=="13"||l.cam=="14"){a+=" line-height:16px;"}else{a+=" line-height:15px;" }var f="color:#f5f5f5;";var k="display:none;";if(l.cam==1){f="#000000";k=""}var m=''+l.iconText+""; if(l.cam=="14"){g=''; i=''+m+g+""}else{i=''+m+g+"" }}}}return{icon:i,isSwfIcon:h}};truste.ca.getIconOverlayElement=function(i,o){var j=i.docRef;var l=truste.ca.getInlineFixForIcon(i); var g="position:static !important; font-weight:normal; font-family:arial,sans-serif; font-size:8pt; text-decoration:none; "+l; var d="margin:0; padding:0; border:none; position:absolute; right:0px; top:0px; background:transparent !important;"; var h="display:inline !important; line-height:15px; vertical-align:top; "+l;var k="display:inline !important; font-size:8pt; font-weight:normal; text-transform:none; color:#000; margin: 0 {MarginRight} 0 0; "+l; var n=j.createElement("iframe");n.id=i.iconSpanId;n.setAttribute("frameborder","0");n.setAttribute("scrolling","no"); var m=n.style;m.cssText="cursor:pointer; display:block; position:absolute; overflow:hidden; margin:0px; padding:0px; pointer-events: auto; "+l; m.opacity=i.opacity;var c=truste.ca.IEVersion;if(c&&c<9&&i.cam==1){m.filter="alpha(opacity="+i.filterOpacity+")" }m.zIndex=i.zindex;switch(i.cam){case"2":case"3":case"4":case"9":case"11":m.width="19px";m.height="15px"; break;case"6":case"7":case"15":m.width="40px";m.height="40px";break;case"10":m.width="30px";m.height="30px"; break;case"12":case"13":case"14":case"16":m.width="16px";m.height="16px";break;case"20":case"22":m.width="20px"; m.height="19px";break;case"21":m.width="76px";m.height="19px";break;default:m.width="77px";m.height="15px"; if(i.cam=="5"){m.top="0";m.right="0"}if(i.cam!="0"&&i.cam!="5"){m.textAlign="center";if(c&&c<9){m.setAttribute("background","white !important") }else{m.setProperty("background",i.backgroundColor,"important")}m.paddingLeft="0px";m.paddingRight="0px"; m.lineHeight="15px"}}var a=truste.ca.getAdmarkerIcon(i);var f=j.createElement("span");f.id=i.anchName; f.style.cssText="display:block; "+g;f.innerHTML=a.icon;var e=o;if(o.parentNode.nodeName.equalsIgnoreCase("a")){e=o.parentNode }e.parentNode.insertBefore(n,e);setTimeout(function(){try{j=n.contentDocument||n.contentWindow.document }catch(x){try{n.src='javascript:void((function(){document.open();document.domain="'+document.domain+'";document.close();})())'; j=n.contentDocument||n.contentWindow.document}catch(x){}}var v=j.createElement("span");v.appendChild(f); j.body.appendChild(v);j.body.style.margin=0;j.body.style.padding=0;if(i.cam=="3"||i.cam=="4"||i.cam=="22"){var r=j.createElement("span"); r.id=i.anchName+"-mo";r.style.cssText="display:none; "+g;var b=((i.oBaseUrl)?i.oBaseUrl:i.baseUrl);var p="77px"; var A="15px";if(i.cam=="22"){p="76px";A="19px"}var y=''; if(a.isSwfIcon){y='' }var w=(i.plc=="tl"||i.plc=="bl")?"0px":"13px";k=k.replace("{MarginRight}",w);var s=''+y; r.innerHTML=''+s+"";if(i.plc=="tr"||i.plc=="br"){v.insertBefore(r,n.firstChild) }else{v.appendChild(r)}n.onmouseover=function(){n.style.width=truste.ca.IEVersion&&a.isSwfIcon?"90px":"77px"; f.style.display="none";r.style.display="block";truste.ca.resetIcon(i)};n.onmouseout=function(){n.style.width="19px"; f.style.display="block";r.style.display="none";truste.ca.resetIcon(i)}}else{if(i.cam=="12"||i.cam=="13"||i.cam=="14"){n.onmouseover=function(){n.style.width="120px"; j.getElementById(i.baseName+"-iconText").style.display="block";truste.ca.resetIcon(i)};n.onmouseout=function(){n.style.width="16px"; j.getElementById(i.baseName+"-iconText").style.display="none";truste.ca.resetIcon(i)};if(i.cam=="14"){var z=j.head||j.getElementsByTagName("head")[0]; z.appendChild(i.style)}}else{if(i.cam=="1"){n.style.width="100%";var u=j.getElementById(i.baseName+"-iconText"); var q=(u.parentElement.offsetWidth+2);n.style.width=(q>i.width?i.width:q)+"px";n.style.left=truste.ca.getIconLeftPosition(truste.ca.findCreative(i),n,i)+"px" }}}if(truste.ca.adTypeMap[i.baseName]!==2){n.onclick=function(){truste.ca.iconClickHandler(this)};v.onclick=function(){truste.ca.iconClickHandler(n) }}},100);return n};truste.ca.resetIcon=function(e){var b=truste.ca.contMap[e.baseName];var d=e.docRef.getElementById(e.iconSpanId); if(!b||!d){return}var a=truste.ca.adTypeMap[e.baseName];if(a&&a==1){var c=truste.ca.IEVersion?truste.ca.findSwf(b):null; if(c){d.parentNode.removeChild(d);setTimeout(function(){var f=truste.ca.getIconOverlayElement(e,b);b.parentNode.insertBefore(f,b); truste.ca.adTypeMap[e.baseName]=2},1000)}}d.style.left=truste.ca.getIconLeftPosition(b,d,e)+"px";d.style.top=truste.ca.getIconTopPosition(b,d,e)+"px" };truste.ca.flattenNode=function(e){var a=[];var f=[];f.push(e);while(f.length>0){var d=f.pop();a.push(d); var c=d.childNodes;if(c){for(var b=0;b0){var c=e.pop();if(truste.ca.isNotValidIframe(c)||truste.ca.isNotWmodeSet(c)){return c }var b=c.childNodes;if(b){for(var a=0;a0){var d=g.pop();if(d.nodeType==1){if(truste.ca.isSizeMatch(d,b,e)){return d }}var c=d.childNodes;if(c){for(var a=0;a=a&&b<=f)&&(i>=j&&i<=g) };truste.ca.isNotWmodeSet=function(c){if(c){if(c.nodeName.equalsIgnoreCase("object")){var j=truste.ca.getStyleForProperty(c,"width"); var d=truste.ca.getStyleForProperty(c,"height");var k=true;var a=c.getAttribute("wmode");if(j&&j.equalsIgnoreCase("0px")&&d.equalsIgnoreCase("0px")){k=false }else{if(a&&a!=="window"){return false}else{if((c.childNodes&&c.childNodes.length>0)){var i=c.childNodes[0]; do{if(i&&i.nodeName.equalsIgnoreCase("param")){var b=i.getAttribute("name");var g=i.getAttribute("value"); if(b&&b.equalsIgnoreCase("wmode")){if(g&&(g.equalsIgnoreCase("transparent")||g.equalsIgnoreCase("opaque"))){k=false }}}else{if(i&&!i.nodeName.equalsIgnoreCase(("embed"))){k=false}}i=truste.ca.getNextNonTextSibling(i)}while(k&&i) }}}var e=c.parentNode;return(e&&e.nodeName.toLowerCase()==="object")?false:k}else{if(c.nodeName.equalsIgnoreCase("embed")){var f=c.getAttributeNode("wmode"); if((!f||(f&&f.value.toLowerCase()=="window"))&&truste.ca.isValidElem(c)){return true}}}}return false}; truste.ca.isNotValidIframe=function(a){if(a.nodeName.equalsIgnoreCase("iframe")&&truste.ca.isMacOS){var b=truste.ca.SafariVersion; if(b&&(b<5.1&&b>=5)){return true}}return false};truste.ca.getNonTextNode=function(a){var b=a.firstChild; while(b&&b.nodeType==3){b=b.nextSibling}return b};truste.ca.getNextNonTextSibling=function(a){var b=a.nextSibling; while(b&&b.nodeType==3){b=b.nextSibling}return b};truste.ca.showoverlay=function(a){var e=a.docRef.getElementById(a.iconSpanId); var d=a.docRef.getElementById(a.intDivName);if(!d){d=truste.ca.createIntElement(a.docRef,truste.ca.intInitMap[a.baseName]); d.style.cssText+=";display:none !important;";d.id=a.intDivName;var c=truste.ca.getElementsByClassName(d,"closeTag"); if(c&&c.length>0){c[0].onclick=function(){truste.ca.hideoverlay(a)}}truste.ca.intMap[a.baseName]=d;e.parentNode.insertBefore(truste.ca.intMap[a.baseName],e) }d.style.zIndex=parseInt(e.style.zIndex)+1;setTimeout(function(){d.style.cssText+=";display:block !important;"; var b=truste.ca.contMap[a.baseName];d.style.left=truste.ca.getIntLeftPosition(b,e,d,a)+"px";d.style.top=truste.ca.getIntTopPosition(b,e,d,a)+"px"; truste.ca.sendnotice("open=1&aid="+a.aid+"&pid="+a.pid+"&cid="+a.cid+"&w="+a.width+"&h="+a.height,a)},100) };truste.ca.getElementsByClassName=function(f,e){var g=[];var a=[];g.push(f);do{var d=g.pop();if(d.className==e){a.push(d) }var c=d.children;if(c&&c.length>0){for(var b=0;b0);return a };truste.ca.resetLocationsPM=function(d){var a=truste.ca.contMap[d.baseName];var c=d.docRef.getElementById(d.iconSpanId); if(c==null){truste.ca.addClearAdIconPM(d);c=d.docRef.getElementById(d.iconSpanId)}if(a){truste.ca.resetIcon(d); var b=d.docRef.getElementById(d.intDivName);if(b!=null){b.style.left=truste.ca.getIntLeftPosition(a,c,b,d)+"px"; b.style.top=truste.ca.getIntTopPosition(a,c,b,d)+"px"}}};truste.ca.hideoverlay=function(a){var d=null; var c=(new Date().getTime()-truste.ts.getTime())/1000;if(truste.ca&&truste.ca.intMap){d=truste.ca.intMap[a.baseName]; truste.ca.sendir("aid="+a.aid+"&pid="+a.pid+"&cid="+a.cid+"&w="+a.width+"&h="+a.height+"&seq="+truste.seq+"&el="+c+"&wgt=interstitial",a) }if(!d&&truste.ca2&&truste.ca2.intMap){d=truste.ca2.intMap[a.baseName];truste.ca2.sendir("aid="+a.aid+"&pid="+a.pid+"&cid="+a.cid+"&w="+a.width+"&h="+a.height+"&seq="+truste.seq+"&el="+c+"&wgt=interstitial",a) }d.style.cssText+=";display:none !important;"};truste.ca.pop=function(a){if(truste.ca.bindMap[a]){truste.ca.directlink(truste.ca.bindMap[a]) }};truste.ca.showpop=function(a){var d="";if(!a.popTab){d="location=0,menubar=0,toolbar=0,status=0,directories=0,width="+(a.interstitialWidth+26)+",height="+(a.interstitialHeight+96) }var e=window.open("","truste",d);if(e){window.focus&&e.focus();e.document.write("truste"+a.interstitial+""); e.document.close();if(!a.popTab){var g=a.docRef.getElementById(a.iconSpanId);var c=truste.ca.contMap[a.baseName]; var f=e.document.getElementById(a.intDivName);e.moveTo(truste.ca.getWindowLeft()+truste.ca.getIntLeftPosition(c,g,f,a)-truste.ca.getWindowScrollOffsetX(),truste.ca.getWindowTop()+truste.ca.getIntTopPosition(c,g,f,a)-truste.ca.getWindowScrollOffsetY()); e.resizeTo((a.interstitialWidth+26),(a.interstitialHeight+96))}}truste.ca.sendnotice("open=1&aid="+a.aid+"&pid="+a.pid+"&cid="+a.cid+"&w="+a.width+"&h="+a.height,a) };truste.ca.getWindowScrollOffsetY=function(){if(typeof window.scrollY!="undefined"){return window.scrollY }else{if(typeof window.pageYOffset!="undefined"){return window.pageYOffset}else{return(((t=document.documentElement)||(t=document.body.parentNode))&&typeof t.ScrollTop=="number"?t:document.body).ScrollTop }}};truste.ca.getWindowScrollOffsetX=function(){if(typeof window.scrollX!="undefined"){return window.scrollX }else{if(typeof window.pageXOffset!="undefined"){return window.pageXOffset}else{return(((t=document.documentElement)||(t=document.body.parentNode))&&typeof t.ScrollLeft=="number"?t:document.body).ScrollLeft }}};truste.ca.getWindowTop=function(){return typeof window.screenY!="undefined"?window.screenY:window.screenTop };truste.ca.getWindowLeft=function(){return typeof window.screenX!="undefined"?window.screenX:window.screenLeft };truste.ca.calcOffset=function(f,g,i){var e=0;var c=null;var j=f;do{if(c){break}var a=truste.ca.getStyleForProperty(f,"position",i.docRef); var b=truste.ca.getStyleForProperty(f,"transform",i.docRef);if((a&&!a.equalsIgnoreCase("static"))||(b&&!b.equalsIgnoreCase("none"))){if(j===f){var h=f[g]; if(h>0){e+=h}if("WebKitCSSMatrix" in window){var d=new WebKitCSSMatrix(window.getComputedStyle(f).webkitTransform); if(g=="offsetLeft"){e+=d.m41}else{if(g=="offsetTop"){e+=d.m42}}}}c=f}else{e+=f[g]}}while(f=f.offsetParent); return e};truste.ca.calcPageMargin=function(d){var b=0;var c=0;do{if(d.parentNode.nodeName.toLowerCase()=="html"){if(!d.parentNode.currentStyle){var a=document.defaultView.getComputedStyle(d.parentNode,null); if(a){b=Number(a.getPropertyValue("margin-left").replace("px",""));c=Number(a.getPropertyValue("margin-top").replace("px","")) }}else{}}}while(d=d.offsetParent);return[b,c]};truste.ca.calcTotalPadding=function(b){var a=0;do{a+=truste.ca.parsePosition(truste.ca.getStyleForProperty(b,"paddingLeft")) }while(b=b.parentNode);return a};truste.ca.getPreviousSibling=function(e,a){var f=new Array("noscript","script","p"); if(e){var d=e.previousSibling;while(d){var c;if(d.nodeType!=1){d=d.previousSibling}else{if(c=truste.ca.findSizeMatch(d,a.width,a.height)){return c }else{if((truste.ca.containsStr(f,d.nodeName)||!truste.ca.isValidElem(d))||!c){d=d.previousSibling}else{return d }}}}return d}return null};truste.ca.getNextSibling=function(e,a){var f=new Array("noscript","script","p"); if(e){var c=e.nextSibling;while(c){var d;if(c.nodeType!=1){c=c.nextSibling}else{if(d=truste.ca.findSizeMatch(c,a.width,a.height)){return d }else{if((truste.ca.containsStr(f,c.nodeName)||!truste.ca.isValidElem(c))||!d){c=c.nextSibling}else{return c }}}}return c}return null};truste.ca.isValidElem=function(e){if(!e||!e.children){return true}for(var h=0; h-1){a=a&&e[c.substring(c.indexOf(":")+1,c.length)]==f[c] }else{a=a&&truste.ca.getStyleForProperty(e,c)==f[c]}}if(a){return false}}}}return true};truste.ca.getStyleForProperty=function(b,f,d){if(b.currentStyle){return b.currentStyle[f] }else{if(window.getComputedStyle){try{d=d||document;var a;if(d.defaultView){a=d.defaultView.getComputedStyle(b) }return a?a.getPropertyValue(f):null}catch(c){return null}}else{return null}}};truste.ca.isInsidePositionedParent=function(d){var a=false; var c=null;do{d=d.parentNode;if(d&&(d.nodeName.equalsIgnoreCase("div"))){var e="";if(d.currentStyle){e=d.currentStyle.position }else{if(window.getComputedStyle){var b=document.defaultView.getComputedStyle(d,null);if(b){e=b.getPropertyValue("position") }}}if(!e.equalsIgnoreCase("static")){a=true;c=d;break}}}while(d);return c};truste.ca.containsStr=function(b,d){var c=b.length; while(c--){if(b[c].equalsIgnoreCase(d)){return true}}return false};truste.ca.sendnotice=function(c,a){truste.img.alt=""; truste.img.src=(truste.ca.tagProtocol=="https:")?(a.noticeBaseUrl.replace("http:","https:")+c):(a.noticeBaseUrl+c); truste.ts=new Date()};truste.ca.findOffsetParent=function(c){var a=null;do{if(a){break}var b=truste.ca.getStyleForProperty(c,"position"); if(b&&!b.equalsIgnoreCase("static")){a=c}}while(c=c.offsetParent);return a};truste.ca.sendir=function(a,b){truste.img.alt=""; truste.img.src=(truste.ca.tagProtocol=="https:")?(b.irBaseUrl.replace("http:","https:")+a):(b.irBaseUrl+a); truste.ts=new Date();truste.seq="0"};truste.ca.getIconLeftPosition=function(g,c,r){var a=truste.ca.calcOffset(g,"offsetLeft",r); var q=(r.htmlMarginOffset)?r.htmlMarginOffset.htmlLeft:0;switch(r.plc){case"tl":case"bl":a+=q;a+=r.ox; break;case"br":default:var s=truste.ca.parsePosition(c.style.width);a+=q;a+=r.width-r.ox-s}var e=truste.ca.IEVersion; var j=truste.ca.FFVersion;if(j&&g.nodeName.toLowerCase()==="span"&&g.parentNode.nodeName.toLowerCase()==="center"){a-=r.width/2 }if(e&&e<=9){if(truste.ca.isQuirksMode()){if(!r.positionedParent){var u=truste.ca.getStyleForProperty(r.docRef.body,"textAlign"); if(u&&u==="center"){var o=truste.ca.findFirstOverflowElement(g);if(o){a-=truste.ca.calcOffset(o,"offsetLeft",r) }}}}if(e<8){if(r.positionedParent){var k=truste.ca.getStyleForProperty(r.positionedParent,"marginLeft"); var v=truste.ca.parsePosition(k);if(v>0){a-=v}}}if(e<=7){if(r.positionedParent){var f=r.positionedParent.parentNode; if(f){var p=truste.ca.getStyleForProperty(f,"paddingLeft");a-=truste.ca.parsePosition(p)}}}if(e<7){if(r.positionedParent){var h=truste.ca.getNodePath(g); var d=0;if(h&&h.length>1){for(var l=1;l1){for(var h=1;h1){for(var l=1;l-1){a=parseInt(b.substring(0,b.indexOf("px")))}else{if(b!=""){a=parseInt(b)}else{a=0 }}}if(isNaN(a)){a=0}return a};truste.ca.getAncestors=function(b){var a=[];do{if(b.nodeName.toLowerCase()=="body"){break }a.push(b)}while(b=b.parentNode);return a};truste.ca.isQuirksMode=function(){return document.compatMode=="BackCompat" };truste.ca.bindEvent=function(c,a,b){if(c.addEventListener){c.addEventListener(a,b,false)}else{if(c.attachEvent){c.attachEvent("on"+a,b) }}};truste.ca.addEvent(window,"resize",function(){for(var a in truste.ca.bindMap){var b=truste.ca.bindMap[a]; truste.ca.resetLocationsPM(b)}});truste.ca.addEvent(window,"message",truste.ca.processPostMessage);truste.ca.useDefaultImage=function(){for(var c in truste.ca.bindMap){var a=truste.ca.bindMap[c]; var f=a.docRef;var d=f.getElementById(a.iconSpanId);d.parentNode.removeChild(d);var e=((a.oBaseUrl)?a.oBaseUrl:a.baseUrl)+"get?name="; a.icon_cam_mo=e+"admarker-full-"+a.plc+".png";truste.ca.resetLocationsPM(a)}};truste.ca.openLink=function(a){if(typeof mraid!="undefined"&&mraid&&mraid.open){mraid.open(a) }else{window.open(a)}};truste.ca.directlink=function(a){truste.ca.sendnotice("open=1&aid="+a.aid+"&pid="+a.pid+"&cid="+a.cid+"&w="+a.width+"&h="+a.height,a); truste.ca.openLink(a.optoutLink)};truste.ca.directlink2=function(c){truste.ca.sendnotice("open=1&aid="+c.aid+"&pid="+c.pid+"&cid="+c.cid+"&w="+c.width+"&h="+c.height,c); var d=c.optoutLink;var a=d.lastIndexOf("?");if(a>0){d=d.substring(0,a)}truste.ca.openLink(d)};if(typeof truste!="undefined"||truste){if(truste.ca!="undefined"||truste.ca){iever=truste.ca.IEVersion; if(iever){if(typeof JSON!=="object"){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null };String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf() }}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep; function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a]; return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"' }function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key) }if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value); case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value); case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length; for(i=0;i0){return f }return null}}},0)}}truste.ca.interstitial_click=function(c,a){truste.img.alt="";truste.img.src=((truste.ca.tagProtocol=="https:")?a.icBaseUrl.replace("http:","https:"):a.icBaseUrl)+"aid="+a.aid+"&pid="+a.pid+"&cid="+a.cid+"&w="+a.width+"&h="+a.height+"&link_id="+c+"&action=interstitial_click&widget=interstitial"; return true};