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(J){if(!J.set){return}var y=document.getElementById(J.iconSpanId); if(y){return}truste.ca.addClearAdIconPM.ctr=truste.ca.addClearAdIconPM.ctr||0;truste.ca.adTypeMap[J.baseName]=1; var d=truste.ca.findCreative(J);if(!d){if(truste.ca.IEVersion){var m=document.getElementById("te-clearads-js-"+J.containerId); var A=m.parentNode;var K=(A)?A.nodeName.toLowerCase():"";if(K=="td"){var q=truste.ca.getNodePath(A);for(var z=0; z10){C.style.width="120px" }}}}var l=d;if(d.parentNode.nodeName.equalsIgnoreCase("a")){l=d.parentNode}l.parentNode.insertBefore(C,l); var E=truste.ca.isInsidePositionedParent(d);if(E){J.positionedParent=E}J.htmlMarginOffset={htmlTop:0,htmlLeft:0}; var g=truste.ca.IEVersion;if(g&&g<9&&truste.ca.isQuirksMode()){var f=d.parentNode;if(f){var F=truste.ca.getAncestors(f); if(F.length>0){var G=F.pop();do{var c=G.nodeName.toLowerCase();if(c=="table"||c=="center"){J.lastAncestor=null; break}else{if(G.offsetLeft){J.lastAncestor=G;break}}}while(G=F.pop())}}}else{if(!g&&!J.positionedParent){var h=truste.ca.calcPageMargin(d); J.htmlMarginOffset.htmlLeft=h[0];J.htmlMarginOffset.htmlTop=h[1]}}C.style.left=truste.ca.getIconLeftPosition(d,C,J)+"px"; C.style.top=truste.ca.getIconTopPosition(d,C,J)+"px";var p=truste.ca.getNodePath(truste.ca.contMap[J.baseName]); var M=[];for(var k=0;k(J.width+7)||u.offsetHeight>(J.height+7))&&truste.ca.getStyleForProperty(u,"overflow",J.docRef)!="hidden"){var s=truste.ca.getClipStyle(u,J.docRef); console.log("Node id = "+u.id+" st = "+s);if(s==="auto"){var o=(u.id&&u.id!=="")?u.id+L:u.clientWidth+"x"+u.clientHeight+"trusteunique:"+L; I=true;C.style.visibility="hidden";truste.ca.clipValues[o]=s;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;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(m){var n=m.docRef;var p=truste.ca.getInlineFixForIcon(m); var k="position:static !important; font-weight:normal; font-family:arial,sans-serif; font-size:8pt; text-decoration:none; "+p; var g="margin:0; padding:0; border:none; position:absolute; right:0px; top:0px; background:transparent !important;"; var l="display:inline !important; line-height:15px; vertical-align:top; "+p;var o="display:inline !important; font-size:8pt; font-weight:normal; text-transform:none; color:#000; margin: 0 {MarginRight} 0 0; "+p; var r=n.createElement("span");r.id=m.iconSpanId;var q=r.style;q.cssText="cursor:pointer; display:block; position:absolute; overflow:hidden; margin:0px; padding:0px; pointer-events: auto; "+p; q.opacity=m.opacity;var d=truste.ca.IEVersion;if(d&&d<9&&m.cam==1){q.filter="alpha(opacity="+m.filterOpacity+")" }q.zIndex=m.zindex;switch(m.cam){case"2":case"3":case"4":case"9":case"11":q.width="19px";q.height="15px"; break;case"6":case"7":case"15":q.width="40px";q.height="40px";break;case"10":q.width="30px";q.height="30px"; break;case"12":case"13":case"14":case"16":q.width="16px";q.height="16px";break;default:q.width="77px"; q.height="15px";if(m.cam=="5"){q.top="0";q.right="0"}if(m.cam!="0"&&m.cam!="5"){q.textAlign="center"; if(d&&d<9){q.setAttribute("background","white !important")}else{q.setProperty("background",m.backgroundColor,"important") }q.paddingLeft="0px";q.paddingRight="0px";q.lineHeight="15px"}}var c=truste.ca.getAdmarkerIcon(m);var j=n.createElement("span"); j.id=m.anchName;j.style.cssText="display:block; "+k;j.innerHTML=c.icon;r.appendChild(j);if(m.cam=="3"||m.cam=="4"){var e=n.createElement("span"); e.id=m.anchName+"-mo";e.style.cssText="display:none; "+k;var a=((m.oBaseUrl)?m.oBaseUrl:m.baseUrl);var i=''; if(c.isSwfIcon){i='' }var h=(m.plc=="tl"||m.plc=="bl")?"0px":"13px";o=o.replace("{MarginRight}",h);var f=''+i; e.innerHTML=''+f+"";if(m.plc=="tr"||m.plc=="br"){r.insertBefore(e,r.firstChild) }else{r.appendChild(e)}r.onmouseover=function(){r.style.width=truste.ca.IEVersion&&c.isSwfIcon?"90px":"77px"; j.style.display="none";e.style.display="block";truste.ca.resetIcon(m)};r.onmouseout=function(){r.style.width="19px"; j.style.display="block";e.style.display="none";truste.ca.resetIcon(m)}}else{if(m.cam=="12"||m.cam=="13"||m.cam=="14"){r.onmouseover=function(){r.style.width="120px"; n.getElementById(m.baseName+"-iconText").style.display="block";truste.ca.resetIcon(m)};r.onmouseout=function(){r.style.width="16px"; n.getElementById(m.baseName+"-iconText").style.display="none";truste.ca.resetIcon(m)}}}if(truste.ca.adTypeMap[m.baseName]!=2){r.onclick=function(){truste.ca.iconClickHandler(this) }}return r};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.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 d=document.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};