-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebads.min.js
2 lines (2 loc) · 98.9 KB
/
webads.min.js
1
2
var FINN = FINN||{};FINN.data = FINN.data||{};FINN.data.banner = FINN.data.banner||{};if (FINN.data.banner.ext_logger == "true") {window.byburt_verticalSection = FINN.data.banner.score;(function(){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,_b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc,lc,mc,nc,oc,pc,qc,rc,sc,tc,uc,vc,wc,xc,yc,zc,Ac,Bc,Cc,Dc,Ec,Fc,Gc,Hc,Ic,Jc,Kc,Lc,Mc,Nc,Oc,Pc,Qc,Rc,Sc,Tc,Uc,Vc,Wc,Xc,Yc,Zc,$c,_c,ad,bd,cd,dd,ed,fd,gd,hd,id,jd,kd,ld,md,nd,od,pd,qd,rd,sd,td,ud,vd,wd,xd,yd,zd,Ad,Bd,Cd,Dd,Ed,Fd,Gd,Hd,Id,Jd,Kd,Ld,Md,Nd,Od,Pd,Qd,Rd,Sd,Td,Ud,Vd,Wd,Xd,Yd,Zd,$d,_d,ae,be,ce,de,ee,a=function(a){try{for(var b=1;arguments[b];b++){var c=arguments[b];a=a[c]}return typeof a!="undefined"}catch(d){return!1}},b=function(){if(!a(document,"documentElement","getBoundingClientRect"))return;if(!window.setTimeout)return;if(a(window,"location","search")&&window.location.search&&window.location.search.indexOf("fb_xd_fragment")!=-1)return;return!0};"use strict";if(!b()){if(window.byburt_developmentMode)throw"Not compatible";return}c="byburt_placementToId",d="byburt_persistentReferer",e="byburt_click",f="byburt_write",g="byburt_afterAdCloserScript",h="byburt_pushWrite",i="byburt_popWrite",j="byburt_documentWritten",k="byburt_documentWrite",l="byburt_placementName",m="byburt_permanentDocumentWrite",n="byburt_recursiveScript",o="byburt_pixel",p="richSync",q="byburt_adtags",r="byburt_adapt",s="byburt_onmessage",t="byburt_messagebuffer",u="byburt_addMessageListener",v="byburt_sizzle",w="byburt_agentLoad",x="trackRichPlacement",y="byburt_auto",z="byburt_disable",A="byburt_syncCallback",B="byburt_random",C="byburt_configCallback",D=3,E=2,F=9,G=[D,E,F].join("."),H="w"+G+"-JS",I="burt_api",J="byburt_adid_",K="byburt_before_adtag",L="byburt_after_adtag",M=10,N=36,O=9,P=22,Q="@@@BURT_CLICK@@@",R="@@@BURT_PI@@@",S="@@@BURT_SI@@@",T="@@@BURT_STR_PLUS@@@",U="byburt_visibilityHandler",V=5,W=40,X=[1,2,4,8,15,20,25,30,90],Y=1e3,Z=5,$=1,_=10,ab=[1,1,2,4,6,8,10],bb=1,cb=45e3,db=300,eb=[15,15,30,30],fb="burt",gb=["IMG","OBJECT","IFRAME","EMBED"],hb="burt_"+G+"_",ib="http://sync.richmetrics.com/",jb=1,kb=[/x.com/],lb=["av","ct","mk","pi","rk","sn","ui","wn"],mb={click:["av","mk","pi","rk","si","ui","wn"],page:lb.concat(["ar","ca","cd","co","cp","eu","ln","lr","rf","sd","sr","tz","wd","ws"]),exposure:lb.concat(["ad","an","ap","ce","cks","ep","en","lu","mt","nc","pk","pn","sg","si","ti","tn","vz","wu","nz","vn"]),ping:lb.concat(["ad","ap","pd","si","vz","wd","ws","nz"]),pageping:lb.concat(["pd","wd","ws"]),event:lb.concat(["ad","ap","cl","mp","pd","si","ty","vl","vz","wd","ws","nz"]),activity:lb.concat(["ty","vl","wd","ws"]),error:lb.concat(["ms","md","eu","si","rf"]),sync:lb.concat(["ei","fs","ss","pr"]),rfa_sync:lb.concat(["ei","fs","si","ss","pr"]),customevent:lb.concat(["ac","cc","lb","cv"]),end:lb.concat(["et"])};mb.rfa_exposure=mb.exposure.concat(["co","eu","ln","lr","pd","sa","sd","sr","tz","wd","ws"]);nb=function(a){return typeof a=="undefined"},ob=function(a){return Object.prototype.toString.call(a)},pb=function(){var a=arguments[0]||{},b=1,c=arguments.length,d=!1,e,f,g,h;typeof a=="boolean"&&(d=a,a=arguments[1]||{},b=2),typeof a!="object"&&typeof a=="function"&&(a={});for(;b<c;b++)if((e=arguments[b])!==null)for(f in e){g=a[f],h=e[f];if(a===h)continue;h!==undefined&&(a[f]=h)}return a},qb=function(){return pb.apply(null,[{}].concat(Array.prototype.slice.call(arguments)))},rb=Array.prototype.forEach,sb=Array.prototype.map,tb={},ub=function(a){return a.slice().reverse()},vb=function(a,b,c){if(!a)return;if(rb&&a.forEach===rb)a.forEach(b,c);else if(a.length===+a.length){for(var d=0,e=a.length;d<e;d++)if(d in a&&b.call(c,a[d],d,a)===tb)return}else for(var f in a)if(a.hasOwnProperty(f)&&b.call(c,a[f],f,a)===tb)return},wb=function(a,b,c){var d=[];return a?sb&&a.map===sb?a.map(b,c):(vb(a,function(a,e,f){d[d.length]=b.call(c,a,e,f)}),a.length===+a.length&&(d.length=a.length),d):d},xb=function(a){var b=ob(a),c=a.length;return Ob(a)||c===c>>>0},yb=function(a,b){for(var c=0;c<a;c++)if(b(c))break},zb=function(a,b){for(var c=0;c<a.length;c++)if(b(a[c],c))return!0;return!1},Ab=function(a,b){for(var c=0;c<a.length;c++)if(!b(a[c],c))return!1;return!0},Bb=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(c,a[c]);return a},Cb=function(a,b){var c;if(xb(a))for(var d=0;d<a.length;d++){c=b(a[d]);if(c)return c}else for(var e in a)if(a.hasOwnProperty(e)){c=b(e,a[e]);if(c)return c}},Db=function(a,b){var c=[];return vb(a,function(a){b(a)&&c.push(a)}),c},Eb=function(a,b,c){var d=typeof c=="undefined"?a[0]:c;for(var e=typeof c=="undefined"?1:0;e<a.length;e++)d=b(d,a[e]);return d},Fb=function(a){return Eb(a,function(a,b){return a+b},0)},Gb=function(a){return Eb(a,function(a,b){return Math.max(a,b)})},Hb=function(a){return Eb(a,function(a,b){return Math.min(a,b)})},Ib=function(a){var b=[];return vb(a,function(a,c){b.push((b[c-1]||0)+a)}),b},Jb=function(a,b){var c={};for(var d=0;d<a.length;d++){var e=a[d][b];typeof e!="undefined"&&(c[e]=c[e]||[],c[e].push(a[d]))}return c},Kb=function(a,b,c){if(a.length===0)return[];var d=[],e=[a[0]],f=c(a[0]);for(var g=1;g<a.length;g++){var h=c(a[g]);f+h>b&&(d.push(e),e=[],f=0),e.push(a[g]),f+=h}return d.push(e),d},Lb=function(a,b){var c={};if(xb(a))for(var d=0;d<a.length;d++){var e=b(a[d]);c[e[0]]=e[1]}else for(var f in a)if(a.hasOwnProperty(f)){var g=b(f,a[f]);c[g[0]]=g[1]}return c},Mb=function(a){var b={};return Db(a,function(a){return b[a]?!1:(b[a]=!0,!0)})},Nb=function(a){return Db(a,function(a){return a})},Ob=function(a){return ob(a)==="[object Array]"},Pb=function(a,b){for(var c=0;c<a.length;c++)if(a[c]===b)return c;return-1},Qb=function(a,b){return Pb(a,b)!==-1},Rb=function(a,b){var c=Pb(a,b);return c>-1&&a.splice(c,1),c>-1};Sb=function(){function a(a,b,c,d,e){this.doc=a,this.node=b,this.nodes=c,this.localCacheCallback=d,this.getSessionId=e,this.lastMatch=void 0,this.lastResult=void 0}return a.prototype.matchPoint=function(a,b){var c,d,f,g,h,e=this.doc.elementFromPoint(a,b);if(!e)return!1;if(this.node===e)return this.lastMatch=e,this.lastResult=!0,!0;if(this.lastMatch&&e===this.lastMatch)return this.lastResult;if(e.tagName==="EMBED"){h=e.parentNode;if(h.tagName==="OBJECT"&&h===this.node)return this.lastMatch=e,this.lastResult=!0,!0}return e.className==="byburt-cover"&&e.getAttribute("id")?(g=e.getAttribute("id").match(/byburt_cover_([A-Z0-9]{12})/),g[1]&&g[1]===this.getSessionId()?(this.lastMatch=e,this.lastResult=!0,!0):!1):(c=this.localCacheCallback(e),c.isAd===void 0&&(f=function(a){return a===e||Oc(a,e)},d=f(this.node,e),d||(d=zb(this.nodes,f)),c.isAd=d,this.lastMatch=e,this.lastResult=c.isAd),c.isAd)},a}();Tb=function(a){return a.replace(/^\s+|\s+$/g,"")},Ub=function(a){return a?a.replace(/\$/g,"#{DOLLAR}"):""},Vb=function(a,b,c){var d=c;return a=Ub(a),typeof c=="string"?d=Ub(c):typeof c=="function"&&(d=function(){return Ub(c.apply({},arguments))}),typeof b=="string"&&(b=Ub(b)),a=a.replace(b,d),a=a.replace(/\#\{DOLLAR\}/g,"$"),a},Wb=function(){},Xb=function(a){return a},Yb=function(a){return function(b){return b[a]}},Zb=function(a){return a()},$b=function(a,b,c){return function(){return a.apply(b,(c||[]).concat(Array.prototype.slice.call(arguments,0)))}},_b=function(a,b){return $b(a,b||{})},ac=function(a,b,c){if(a.byburt_developmentMode)return b();try{return b()}catch(d){return c}},bc=function(a,b){return function(){return ac(a,b)}},cc=function(a,b){var c=a();return function(){var d=a();c!==d&&b(d),c=d}},dc=function(a){return function(){var b=!1;return function(){b||(b=!0,a.apply(this,arguments))}}()},ec=function(){var a={listeners:[],buffer:[],register:function(b){a.listeners.push(b),vb(a.buffer,function(c){b.apply(a,c)})},invoke:function(){var b=arguments;a.buffer.push(b),vb(a.listeners,function(c){c.apply(a,b)})},deregister:function(b){a.listeners.splice(Pb(a.listeners,b))}};return a},fc=function(a){var b,c=!1;return function(){return c||(b=a(),c=!0),b}},gc=function(a,b,c){var d=a[b];return d?a[b]=function(){return c.apply(a,arguments),d.apply(a,arguments)}:a[b]=c,d},hc=function(a,b){vb(a,function(a){b.apply(this,a)})};ic||(ic={}),function(){var b,c,d,e,f,g;function h(a){return c.lastIndex=0,c.test(a)?'"'+a.replace(c,function(a){var b=f[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function i(a,b){var c,f,j,k,m,l=d,n=b[a];n&&typeof n=="object"&&typeof n.toJSON=="function"&&(n=n.toJSON(a)),typeof g=="function"&&(n=g.call(b,a,n));switch(typeof n){case"string":return h(n);case"number":return isFinite(n)?String(n):"null";case"boolean":case"null":return String(n);case"object":if(!n)return"null";d+=e,m=[];if(Object.prototype.toString.apply(n)==="[object Array]"){k=n.length;for(c=0;c<k;c+=1)m[c]=i(c,n)||"null";return j=m.length===0?"[]":d?"[\n"+d+m.join(",\n"+d)+"\n"+l+"]":"["+m.join(",")+"]",d=l,j}if(g&&typeof g=="object"){k=g.length;for(c=0;c<k;c+=1)typeof g[c]=="string"&&(f=g[c],j=i(f,n),j&&m.push(h(f)+(d?": ":":")+j))}else for(f in n)Object.prototype.hasOwnProperty.call(n,f)&&(j=i(f,n),j&&m.push(h(f)+(d?": ":":")+j));return j=m.length===0?"{}":d?"{\n"+d+m.join(",\n"+d)+"\n"+l+"}":"{"+m.join(",")+"}",d=l,j}}b=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};typeof ic.stringify!="function"&&(ic.stringify=function(a,b,c){var f;d="",e="";if(typeof c=="number")for(f=0;f<c;f+=1)e+=" ";else typeof c=="string"&&(e=c);g=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number")return i("",{"":a});throw new Error("JSON.stringify")}),typeof ic.parse!="function"&&(ic.parse=function(a,c){var d;function e(a,b){var d,f,g=a[b];if(g&&typeof g=="object")for(d in g)Object.prototype.hasOwnProperty.call(g,d)&&(f=e(g,d),f!==undefined?g[d]=f:delete g[d]);return c.call(a,b,g)}a=String(a),b.lastIndex=0,b.test(a)&&(a=a.replace(b,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d=window.eval("("+a+")"),typeof c=="function"?e({"":d},""):d;throw new SyntaxError("JSON.parse")})}();jc=function(){function a(a,b){this.rects=a,this.options=b!=null?b:{}}return a.prototype.getVisibilityFn=function(a,b,c){var d,e,f,g,h,i,j,k,l,m;return k=this.rects,j=this.options,l=Fb(wb(k,function(a){return a.w*a.h})),i=function(){return Math.floor((a(c).w-Fb(wb(k,Yb("w"))))/2)},d=function(){return wb(k,function(a){return{h:a.h,w:a.w}})},f=function(){return wb(k,function(a){return{x:a.x,y:a.y}})},h=function(){var d,e,f,g;return g=a(c),f=b(c),e=function(a){var b,c,d,e,h;return e=nc(a.w+i(),0,a.w),j.absoluteColumns?d=nc(a.h-f.y,0,Math.min(g.h,a.h)):d=Math.min(a.h,g.h),h=e*d,b=a.w*a.h,c=Math.round(h/b*100)},d=function(a){var b,c,d;return d=Math.min(a.w,g.w)*nc(a.h-f.y,0,a.h),b=a.w*a.h,c=Math.round(d/b*100)},[e(k[0]),d(k[1]),e(k[2])]},e=function(){var a;return a=Math.round(Math.sqrt(l)),[{w:a,h:a}]},g=function(){return[[{x:Math.max(0,i()),y:0}]]},m=function(){var a,b,c,i,j,k,l,m,n,o,p,q,r,s,t,u;return a=d(),c=f(),k=h(),b=e(),i=g(),j=Math.round(Fb(k)/3),l=function(){return a},p=function(){return c},t=function(){return k},u=function(){return!0},m=function(){return b},q=function(){return i},o=function(){return[j]},r=function(a,b){return Math.abs(a-b)>=20},s=function(){return j},n=function(){return"ht"},{partitions:{dimensions:l,positions:p,visibility:t},dimensions:m,positions:q,nodeVisibilities:o,visibilityHasChanged:u,significantVisibilityChange:r,visibility:s,name:n}},m},a}();kc=function(){function a(a,b,c,d,e){this.doc=a,this.node=b,this.nodes=c,this.localCacheCallback=d,this.getSessionId=e,this.nodeMatcher=new Sb(this.doc,this.node,this.nodes,this.localCacheCallback,this.getSessionId)}return a.prototype.shoot=function(a,b,c){var d,e,k,q,s,h=a.vw*a.vh/b,g=Math.max(P,Math.sqrt(h)),p=Math.max(Math.floor(a.vw/g),1),r=Math.max(Math.floor(a.vh/g),1),n=0,o=0,i=a.vw/p,f=a.vh/r,m=i/2+1,l=f/2+2,j=0;while(j<p){d=Math.round(a.vx+j*i),k=0;while(k<r){q=d+(1+k)*m%i,e=Math.round(a.vy+k*f),s=e+(1+j)*l%f,n++;if(this.nodeMatcher.matchPoint(q,s)){if(c)return 1;o++}k++}j++}return n>0?o/n:1},a}();lc=function(a){var b=function(){return a.navigator.appName=="Microsoft Internet Explorer"&&a.navigator.appVersion&&parseFloat(a.navigator.appVersion.split("MSIE")[1])<=8},c=function(){var b=a.navigator.userAgent;return!!(b&&b.match&&b.match(/webkit/i)&&b.match(/(iPad|iPhone|Android|Mobile)/))},d=function(){var b=a.navigator.userAgent;return b?/MSIE/.test(b)?"msie":/Firefox/.test(b)?"firefox":/Chrome/.test(b)?"chrome":/Safari/.test(b)?"safari":/Opera/.test(b)?"opera":"unknown":"unknown"};return{crazyScriptOrder:a.navigator.appName=="Microsoft Internet Explorer"||a.navigator.appName=="Opera",WebSocket:a.WebSocket||a.MozWebSocket,Image:a.Image,oldIE:b(),mobileWebkit:c(),browser:d()}},mc=function(a,b){if(a.end<a.start||b.end<b.start)throw"Intervals are malformatted";return b.end<a.start||a.end<b.start?{start:0,end:0}:{start:Math.max(b.start,a.start),end:Math.min(a.end,b.end)}},nc=function(a,b,c){return a<b?b:a>c?c:a},oc=function(a,b){var c=a.createElement("a");c.href=b;var d=c.pathname.charAt(0)==="/"?c.pathname:"/"+c.pathname;return{href:c.href,host:c.host,hostname:c.hostname,pathname:d,search:c.search,port:c.port}},pc=function(a,b,c,d){if(b&&c){var e;d?e=new RegExp("[?&]"+c+"=("+d+")"):e=new RegExp("[?&]"+c);var f=oc(a,b);return f.search.match(e)}return!1},qc=function(a){var b=document.createElement("a");return b.href=a,b.href.match(/^http/i)?b.href:rc(a)},rc=function(a){if(/^\s*http/i.test(Tb(a)))return a;var b=window.location.pathname,c=b.split("/");c.pop();var d=a.split("/"),e=d;d[0]!==""&&(e=c.concat(d));var f=[];return vb(e,function(a){a==".."?f.pop():a!==""&&f.push(a)}),f.unshift(window.location.protocol+"//"+window.location.host),f.join("/")},sc=function(a,b){var c=a.document,d=oc(c,b),e=c.getElementsByTagName("script");for(var f=0;f<e.length;f++){var g=oc(c,e[f].src);if(g.pathname===d.pathname&&g.hostname===d.hostname)return e[f]}return null},tc=function(a,b){var c=oc(a,b);return c.href.substring(0,c.href.length-c.search.length)},uc=function(a,b){var c=a.document;b=b||{};var d=function(b,d){var e=uc.parseCookies(a,c.cookie,!0);return d?e[b]:uc.decodeCookie(a,e[b])},e=function(a,f,g){g=qb(b,g)||{};var h=qb(g,{}),i=[];!f&&f!==0&&(f=""),i.push(encodeURIComponent(a)+"="+(g.raw?String(f):encodeURIComponent(String(f)))),g.expires||(g.expires=365);if(typeof g.expires=="number"){var j=b.expires||g.expires;g.expires=new Date,g.expires.setDate(g.expires.getDate()+j)}g.path||(g.path="/"),g.expires&&g.expires.toUTCString&&f&&i.push("expires="+g.expires.toUTCString()),g.path&&i.push("path="+g.path),g.domain&&i.push("domain="+g.domain),g.secure&&i.push("secure"),c.cookie=i.join("; ");var k=d(a);h.domain&&h.domain!==c.domain&&k===null&&e(a,f,qb(h,{domain:c.domain}))},f=function(){var a="burt_test",b="1";return d(a)===b?!0:(e(a,b),d(a)===b)};return{get:d,set:e,testSet:f}};uc.parseCookies=function(a,b,c){var d=b.split("; "),e={};return vb(d,function(b){var d=b.split("="),f=d[0],g=d[1];typeof g=="undefined"||g===""?e[uc.decodeCookie(a,f)]=null:e[uc.decodeCookie(a,f)]=c?g:uc.decodeCookie(a,g)}),e},uc.decodeCookie=function(a,b){try{return b===null||b===undefined?null:a.decodeURIComponent(b)}catch(c){return b}},uc.getTopCookieDomainFromDomain=function(a,b,c){return a==="msie"&&b===c&&b.match(/(\.|^)[^.]{2}\.[^\.]+$/)&&b.split(".").length===2?null:a==="msie"&&b.split(".").length<3&&b.match(/(\.|^)[^.]{2}\.[^\.]+$/)?"."+c:"."+b};vc=function(a,b,c){var d,e=function(){try{d=d||ic.parse(a.get(b))}catch(c){}d=d||{}},f=function(a){return e(),d[a]},g=function(f,g){return e(),d[f]=g,a.set(b,ic.stringify(d),c),d},h=function(){return a.get(b)};return{exists:h,get:f,set:g}};wc=function(){return(new Date).getTime()},xc=function(a,b,c,d,e){var f,g;return d=d||-1,f=typeof c=="function"?c:function(){return c},g=function(){var c=b();d--;if(!c&&d!==0)return a(g,f());if(e)return e()},a(g,f())},yc=function(a,b,c,d,e){var f,g;return d=d||-1,f=typeof c=="function"?c:function(){return c},g=function(){return d--,b(dc(function(b){if(!b&&d!==0)return a(g,f());if(e)return e()}))},a(g,f())};Ec=function(b){var c,d,e;return c=b.document,d=null,e=null,lc(b).oldIE&&a(b,"frameElement")&&b.frameElement?(d=b.frameElement.offsetWidth,e=b.frameElement.offsetHeight):(d=b.innerWidth||(c.documentElement&&c.documentElement.clientWidth!==0?c.documentElement.clientWidth:c.body.clientWidth),e=b.innerHeight||(c.documentElement&&c.documentElement.clientHeight!==0?c.documentElement.clientHeight:c.body.clientHeight)),{w:d,h:e}},Fc=function(a){var b,c,d,e,f;return b=a.document,c=a.pageXOffset||(b.documentElement?b.documentElement.scrollLeft:(e=b.body)!=null?e.scrollLeft:void 0),d=a.pageYOffset||(b.documentElement?b.documentElement.scrollTop:(f=b.body)!=null?f.d.body.scrollTop:void 0),{x:c,y:d}},zc=function(a){var d=null,e=null,b=void 0,c=void 0;vb(a,function(a){var f=a.y+a.h,g=a.x+a.w;if(d===null||d>a.x)d=a.x;if(e===null||e>a.y)e=a.y;if(!b||b<f)b=f;if(!c||c<g)return c=g}),c-=d,b-=e;if(d!==null&&e!==null&&c!==null&&b!==null)return{x:Math.round(d),y:Math.round(e),width:Math.round(c),height:Math.round(b)}},Ac=function(a){var b;return b=function(b){return Math.max(a.documentElement["client"+b],a.body["scroll"+b],a.documentElement["scroll"+b],a.body["offset"+b],a.documentElement["offset"+b])},{width:b("Width"),height:b("Height")}},Bc=function(a,b,c){var e,d=a.navigator;if(d&&d.appVersion){e=d.appVersion.match(/Version\/([\d\.]+)/);if(c.tagName==="OBJECT"&&!(b.browser==="msie"||b.browser==="safari"&&e&&e[1]<"5.1"))return Uc(c,"EMBED")||c}return c},Dc=function(b,c,d,e,f,g,h,i){var j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D;return i=i||{},m=lc(b),q=b.navigator,c.length===0&&(c=[{}]),x=!1,q&&q.appVersion&&q.userAgent&&(v=q.appVersion.match(/Version\/([\d\.]+)/),s=q.userAgent.match(/Opera\/(\d+)/),x=!(m.browser==="safari"&&v&&v[1]<"5.0"||m.browser==="opera")),l=!x||!i.enableTony||!g,n=function(a){return a.frameElement||Bc(b,m,a)},D=wb(c,function(b){var g,i,j,k,m,o,p,q,r,s,t,u,v,w=this;return!a(b,"tagName")||!b.tagName?{x:[0],y:[0],w:[0],h:[0],sx:[0],sy:[0],ww:[0],wh:[0],rx:[0],ry:[0],rxa:[0],rya:[0],vix:[0],viy:[0],vpix:0,pix:0,vz:0,visibilityChangedForNode:function(){return!1}}:(q={x:[],y:[],w:[],h:[],sx:[],sy:[],ww:[],wh:[],rx:[],ry:[],rxa:[],rya:[],vix:[],viy:[]},j=e(b),j.windows||(j.windows=ub(d(Wc(b)).getFrames(b))),o=j.windows.slice(1,j.windows.length),o.push(b),vb(o,function(c,e){var g,h,i,j,k,l,m,o,p,r,s,t,u,v,w,x,y,z;return h=f(c),u=h.window||(h.window=Vc(c)?c:Wc(c)),i=h.observer||(h.observer=d(u)),j=d(a(u,"parent","document","firstChild")?u.parent:u),k=h.positionElement||(h.positionElement=n(c)),g=(b===c?i:j).elementGeo(k),q.x.push(g.x),q.y.push(g.y),q.w.push(g.w),q.h.push(g.h),r=(b===c?i:j).scroll(),s=r.x,t=r.y,q.sx.push(s),q.sy.push(t),v=void 0,e===0&&(v=j.dimension(),q.ww.push(v.w),q.wh.push(v.h)),l=g.x-s,o=g.y-t,m=l+(q.rxa[e-1]||0),p=o+(q.rya[e-1]||0),q.rx.push(l),q.ry.push(o),q.rxa.push(m),q.rya.push(p),w={start:m,end:m+g.w},x=q.vix[e-1]||{start:0,end:v.w},y={start:p,end:p+g.h},z=q.viy[e-1]||{start:0,end:v.h},q.vix.push(mc(w,x)),q.viy.push(mc(y,z))}),m=o.length-1,v=q.w[m],k=q.h[m],q.pix=v*k,r=q.vix[m],s=q.viy[m],q.vw=r.end-r.start,q.vh=s.end-s.start,q.vpix=q.vw*q.vh,t=Ib(ub(q.rx.slice(0,q.rx.length-1))),t=wb(t,function(a){return-a}),t.push(0),t.push(q.x[m]-q.sx[m]),q.vx=Math.max.apply(Math,t),u=Ib(ub(q.ry.slice(0,q.ry.length-1))),u=wb(u,function(a){return-a}),u.push(0),u.push(q.y[m]-q.sy[m]),q.vy=Math.max.apply(Math,u),q.vpix>0&&!l&&(p=new kc(b.ownerDocument,b,c,e,h),q.tony=p.shoot(q,N),q.vpix*=q.tony),g=!1,i=function(){return g=!0},vb(j.windows,function(a){var b;return b=d(a),j=e(a),j.visibilityChangedListenerId=b.attachWindowEvent(i,j.visibilityChangedListenerId)}),q.visibilityChangedForNode=function(){var a;return p=new kc(b.ownerDocument,b,c,e,h),g?!0:(a=function(){var a;return a=void 0,function(){return a!==undefined?a:(a=p.shoot(q,O,!0),a)}}(),x?q.vz>0?0===a():q.vw*q.vh>0?0!==a():!1:!1)},q.vz=q.vpix===0?0:q.vpix/q.pix,q)}),C=Eb(wb(D,function(a){return a.vpix}),function(a,b){return a+=b,a}),y=Eb(wb(D,function(a){return a.pix}),function(a,b){return a+=b,a}),j=function(){return wb(D,function(a){return{h:a.h[a.h.length-1],w:a.w[a.w.length-1]}})},t=function(){return wb(D,function(a){return wb(a.x,function(b,c){return{x:b,y:a.y[c]}})})},z=function(){return Math.round(100*(y===0?0:C/y))},r=function(){return wb(D,function(a){return Math.round(100*a.vz)})},o=function(){return Ab(c,function(b){return a(b,"ownerDocument")})},B=function(){return o()?zb(D,function(a){return a.visibilityChangedForNode()}):!0},w=function(){return!1},p=function(){return""},k=function(){return[j()[0]]},u=function(){var a,b;return a=0,b=0,vb(t()[0],function(c){return a+=c.x,b+=c.y}),[{x:a,y:b}]},A=function(){return[z()]},{partitions:{dimensions:k,positions:u,visibility:A},dimensions:j,positions:t,hasNodeAccess:o,nodeVisibilities:r,visibilityHasChanged:B,significantVisibilityChange:w,visibility:z,name:p}},Cc=function(a,b){var c;return c=new jc(a,b),c.getVisibilityFn(Ec,Fc,window)};Gc=function(a,b,c){var d="on"+b;if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent(d,c);else{var e=a[d];a[d]=function(){typeof e=="function"&&e.apply(this,arguments),c.apply(this,arguments)}}},Hc=function(a,b,c){var d="on"+b;a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent?a.detachEvent(d,c):delete a[d]},Ic=function(a){document.addEventListener?window.addEventListener("load",a,!1):document.attachEvent&&window.attachEvent("onload",a)},Jc=function(a,b){if(b.match(/<script/i))return null;var c=a.document.createElement("div");return c.innerHTML=b,Lc(c.childNodes)},Kc=function(a){var b=[];for(var c=0;c<a.length;c++)a[c].nodeType===3&&b.push(a[c]);return b},Lc=function(a){var b=[];for(var c=0;c<a.length;c++)a[c].nodeType!=3&&a[c].nodeType!=8&&b.push(a[c]);return b},Mc=function(a,b,c){if(a.length===0)return[];a=Nb(a);var d=[];for(var e=0;e<a.length;e++){var f=a[e];for(var g=0;g<b.length;g++)if(f.tagName===b[g]){d.push(f);if(!c)return d}d=d.concat(Mc(f.childNodes,b,c));if(!c&&d.length>0)return[d[0]]}return d},Nc=function(a,b){b===undefined&&(b=0);if(a.length===0)return 0;a=Nb(a);var c=wb(a,function(a){return a.childNodes?a.childNodes.length===0?0:1+Nc(a.childNodes,b):0});return b+Math.max.apply(Math,c)},Oc=function(a,b){var c=b.parentNode;while(c){if(c===a)return!0;var d=c.parentNode;if(c===d)return!1;c=d}return!1},Pc=function(a,b){var c=[];return vb(a,function(a){for(var d=0;d<b.length;d++)a.tagName===b[d]&&c.push(a)}),c},Qc=function(a,b){var c=[];return vb(a,function(a){var d=!1;for(var e=0;e<b.length;e++)a.tagName===b[e]&&(d=!0);d||c.push(a)}),c},Rc=function(a,b,c){var d=[],e=a,f=300;do{(!b||!b(e))&&d.push(e),e=e.nextSibling;if(--f<0)throw{ms:"Stuck in 'findSiblingsAndChildrenOfType'",md:"Current: "+e.tagName+" #"+e.id+" "+e.className}}while(e&&(!c||!c(e)));return d},Sc=function(a,b){return Pc(Rc(a),b)},Tc=function(a,b){var c=[];return vb(a,function(a){c=c.concat(Mc(a,b,!0))}),c},Uc=function(a,b){for(var c=0;c<a.childNodes.length;c++)if(a.childNodes[c].tagName===b)return a.childNodes[c];return null},Vc=function(a){return a&&typeof a=="object"&&"setInterval"in a},Wc=function(b){return b.ownerDocument&&(b=b.ownerDocument),Vc(b)?b:b.nodeType===9?b.defaultView||a(b,"parentWindow")&&b.parentWindow:!1},Xc=function(b){var c=[],d=b;for(var e=0;e<300;e++){c.push(d);if(d==b.top||!a(d,"parent","document","firstChild")||!d.parent)return c;d=d.parent}throw"Stuck in 'getFrames'"},Yc=function(a){var b=Xc(a);return b?b[b.length-1]:a},Zc=function(a,b){var c;return a.currentStyle?c=a.currentStyle[b]:window.getComputedStyle&&(c=document.defaultView.getComputedStyle(a,null).getPropertyValue(b)),c},$c=function(a,b){typeof b=="string"&&(b=[b]);var c=[];for(var d=0;d<a.childNodes.length;d++){var e=a.childNodes[d];for(var f=0;f<b.length;f++)e.tagName=="PARAM"&&e.name.toLowerCase()==b[f].toLowerCase()&&c.push(e.value)}return c},_c=function(a,b){var c=300;while(a){var d=b(a);if(d)return d;a=a.parentNode;if(--c<0)throw"Stuck in 'traverseUp'"}},ad=function(a){var b=1,c=0,d=65521;for(var e=0;e<a.length;e++)b=(b+a.charCodeAt(e))%d,c=(c+b)%d;return c<<16|b},bd=function(a){var b=2636928640,c=4022730752,d=2147483648,e=624,f=2147483647,g=2567483615,h=1812433253,i=397,j=4294967296,k=65535,l=11,m=15,n=18,o=7,p=[],q=e,r={};return r.seed=function(a){q=e,p[0]=a>>>0;for(var b=1;b<e;b++)p[b]=p[b-1]^p[b-1]>>>30,p[b]=(h*((p[b]&k<<16)>>>16)<<16)+(p[b]&k)*h+b>>>0},r.random=function(){if(q>=e){for(var a=0;a<e;a++)p[a]=((p[(a+1)%e]&1)===1?g:0)^(p[a]&d|p[(a+1)%e]&f)>>>1^p[a+i-(a>=e-i?e:0)];q=0}var h=p[q];return h^=h>>>l,h^=h<<o&b,h^=h<<m&c,h^=h>>>n,q++,(h>>>0)*(1/j)},r.seed(a||(new Date).getTime()),r},cd=function(a,b,c){var d=0,e=function(){d<=0&&c(b)},f=function(){d--,e()};vb(b,function(b){var c=b.tagName;if(c==="IMG"&&!b.complete){d++;var e=dc(f);Gc(b,"load",e),xc(a.setTimeout,function(){return b.complete},200,50,e)}}),e()},dd=function(a,b,c,d){var e=0,f=function(){e<=0&&d(c)},g=function(){e--,f()},h=function(a){try{return a.PercentLoaded()!==undefined}catch(b){return!1}};vb(c,function(c){c=Bc(a,b,c);var d=c.tagName;if(d==="OBJECT"||d==="EMBED")if(!h(c)||c.PercentLoaded()<100)e++,xc(a.setTimeout,function(){return h(c)&&c.PercentLoaded()>=100},200,50,g)}),f()},ed=function(b,c,d){if(a(b.contentWindow,"frameElement")){var e=b.contentWindow.document;d=dc(d);var f=!1,g=function(){f=!0,d()};b.contentWindow.document.readyState||Gc(b.contentWindow,"load",g);var h=c(function(){if(f)return!0;if(e.readyState==="complete"&&e.URL!=="about:blank")return g(),!0});xc(window.setTimeout,h,50,100,g)}else d()},fd=function(a,b,c,d,e){e=e||{};var f={},g=e.syncUrl||ib,h=!1,i=function(d,e){var h=A+"_"+b.generateIDFromTime(),i=g+d+"?callback="+h;a[h]=function(b){f=uc.parseCookies(a,b),e()},c.get(i)},j=function(a,c,e){var g=a.provider,h=a.cookieName||a.provider,i=f[h];if(i)d.set(g,i),e(g,i,!0,!1);else{var j=d.get(g);if(j)e(g,j,!0,!1);else{var k=a.defaultId||b.generateIDFromTime();c(g,h,k,e)}}},k=function(a,b,c,e){if(h){e(a,undefined,!1,!1);return}if(d.exists()){e(a,undefined,!1,!1);return}var g="status";i(g,function(){var c=f[b];c&&d.set(a,c),e(a,c,!!c,!1)})},l=function(a,b){return j(a,k,b)},m=function(a,b,c,e){if(h){e(a,c,!1);return}var g="sync/"+b+"/"+c;i(g,function(){var g=f[b];g?(d.set(a,g),e(a,g,!0,g===c)):(h=!0,e(a,c,!1,!0))})},n=function(a,b){return j(a,m,b)},o=function(a,b){var c=a.cookieName||a.provider;return i("delete/"+c,function(){d.set(c,f[c]),b(a.provider,f[c],!f[c],!f[c])})};return{read:l,write:n,remove:o}},gd=function(){return{get:function(){},set:function(){}}},hd=function(a){var b=Yc(a),c=b.document.referrer,d=b.location.hostname;if(c&&d){var e=document.createElement("a");e.src=c;var f=d.replace(/^www\./i,""),g=new RegExp("^\\s*http(s)?://[^/]*"+f+"(:[0-9]*)?/","i");if(!g.test(c))return c}},id=function(a){return Yc(a).location.href},jd=function(a){if(a.outerHTML)return a.outerHTML;if(a.nodeType==3)return a.nodeValue;var b=document.createElement("div");return b.appendChild(a.cloneNode(!0)),b.innerHTML},kd=function(a){return Lb(a.split("?").slice(1).join("?").split("&"),function(a){var b=a.split("=");return[decodeURIComponent(b[0]),decodeURIComponent(b.slice(1).join("="))]})};ld=function(){function a(a,b,c,d){this.win=a,this.random=b,this.schema=c,this.onPing=d,this.pingState=0,this.id=0}return a.prototype.run=function(){var a,b,c,d=this;return a=function(){return d.onPing(),c()},b=function(){var a;return a=d.schema[d.pingState]*d.random()*1e3,d.pingState=nc(d.pingState+1,0,d.schema.length-1),a},c=function(){return d.id=d.win.setTimeout(a,b())},c()},a.prototype.reset=function(){return this.pingState=0,this.win.clearTimeout(this.id)},a}();md=function(a,b){if(!b||!a)return!0;var c=parseInt("00"+a.substring(0,6),36),d=parseInt("00"+a.substring(6,12),36);if(isNaN(c)||isNaN(d))throw new Error("Invalid ID-parts. Top half is "+c+" and bottom half is "+d);return(c+d)%b===0},nd=function(a,b){return"type="+a+"&"+wb(b,function(a,b){return b+"="+a}).join("&")},od=function(a,b,c,d,e,f,g,h,i){var j=a.escape;c&&d.escapeClickUrl&&(c=j(c)),c=c||"";var k={type:"click",si:e,pi:f};i.apiKey&&(k.rk=i.apiKey),g&&(k.ui=g),k.av=h,k.mk=i.mediaKey,i.siteName&&(k.wn=i.siteName);var l=function(a,b,d){b||(b="&"),d||(d="="),a||(a="?");var e=[];return vb(k,function(a,b){e.push(b+d+a)}),a+e.join(b)+b+"rd"+d+c},m;d.escapeAll?m=j(b)+l(j("?"),j("&"),j("=")):d.escapedAmps?m=b+l("?","%26"):m=b+l();if(d.escapes)for(var n=0;n<d.escapes;n++)m=j(m);return m},pd=function(a){var b=Mc(a,["SPAN"],!0);return b=Db(b,function(a){return a.className.match(/burt_cloud_key/)}),b.length==1?b[0].attributes.rel.value.split(","):[]},qd=function(a,b,c){var d="<"+a+' style="display:none" class="'+b+'"';return c&&(d+=' id="'+c+'"'),d+="></"+a+">",d},rd=function(a){var b;if(a.tagName==="OBJECT"){if(a.data)return a.data;var c=Uc(a,"EMBED");if(c)return a.data||c.src;var d=$c(a,"movie");if(d.length>0)return d[0]}else{if(a.tagName==="EMBED")return a.src;if(a.tagName==="IMG")return a.src}},sd=function(){var a=function(a){var b=a.match(/(clickTAG\d?|creativeURL\d?|linkurl)=([^&]*)/i);return b?encodeURIComponent(b[2]):null};return function(b){if(b.tagName&&b.tagName.toUpperCase()==="OBJECT"){var c=$c(b,["flashvars","movie"]);if(c.length>0)for(var d=0;d<c.length;d++){var e=a(c[d]);if(e)return e}var f=Uc(b,"EMBED");if(f){var g=a(f.src);if(g)return g}}else if(b.tagName&&b.tagName.toUpperCase()==="EMBED"){if(b.getAttribute("flashvars")){var h=a(b.getAttribute("flashvars"));if(h)return h}var i=a(b.src);if(i)return i}if(b.tagName&&(b.tagName.toUpperCase()==="IMG"||b.tagName.toUpperCase()==="DIV"))return _c(b,function(a){if(a.tagName&&a.tagName.toUpperCase()==="A")return encodeURIComponent(a.href)})}}(),td=function(a,b){var c=a.document,d=function(a){return a[b]?a:!1},e=function(a){return a.parentNode&&a.parentNode.tagName=="OBJECT"?a.parentNode:a},f=c.getElementsByTagName("embed"),g=Cb(f,d);return g?e(g):(f=c.getElementsByTagName("object"),g=Cb(f,d),g?e(g):null)},ud=function(a){return"//"+a+".log.richmetrics.com/log"},vd=function(a,b,c,d){var e,f,g,h,i=function(i,j){e||(e=ec(),f=fd(a,c,b,vc(gd(),"null")),f.write({provider:"rfa"},e.invoke),e.register(function(a,b,e,f){g=gd(),g.testSet=function(){return e},h={getUserId:function(){return b||c.generateIDFromTime()},getPageId:d.getPageId}})),e.register(function(a,b,c,d){j({cookieJar:g,sync:f,richId:h})})};return i},xd=function(a,b){return function(){return a.apply(b,arguments)}};wd=function(){function a(a){this.win=a,this.observe=xd(this.observe,this),this.checkForBreak=xd(this.checkForBreak,this),this.queue=[],this.timeout=void 0,this.interactionTimeout=100,this.interactionMaxTimeout=1e3,this.now=function(){return(new Date).getTime()},this.lastInteraction=this.now(),this.lastFlush=this.now(),this.checkForBreak()}return a.prototype.flush=function(){if(this.queue.length>0)return vb(this.queue,function(a){return a()}),this.queue=[]},a.prototype.checkForBreak=function(){var a=this;return this.clearTimeout(),this.timeout=this.win.setTimeout(function(){if(a.now()-a.lastInteraction>=a.interactionTimeout||a.now()-a.lastFlush>=a.interactionMaxTimeout)a.lastFlush=a.now(),a.flush();return a.checkForBreak()},this.interactionTimeout)},a.prototype.clearTimeout=function(){if(this.timeout)return this.win.clearTimeout(this.timeout)},a.prototype.observe=function(){return this.lastInteraction=this.now()},a.prototype.hookObserver=function(a){return a.attachWindowEvent(this.observe)},a.prototype.onBreak=function(a){return this.queue.push(a)},a}();yd=ic.stringify;zd=function(){function a(b,c,d){var e;d==null&&(d={}),d.getExternalReferrer||(d.getExternalReferrer=hd),e=new Date,e=new Date(e.setMinutes(e.getMinutes()+30)),this.externalReferrer=d.getExternalReferrer(b),this.externalReferrer||(this.externalReferrer=c.get(a.persistentReferrerIdentifier)),this.externalReferrer||(this.externalReferrer=""),this.externalReferrer&&c.set(a.persistentReferrerIdentifier,this.externalReferrer,{path:"/",expires:e})}return a.persistentReferrerIdentifier="byburt_persistentReferer",a}();Ad=function(){function a(b){this.cookieJar=b,this.persister=vc(this.cookieJar,a.cookieName,a.cookieJarOptions)}return a.prototype.set=function(a,b){return this.persister.set(a,b)},a.prototype.get=function(a){return this.persister.get(a)},a}(),Ad.cookieName="richVisit",Ad.cookieJarOptions={expires:{toUTCString:function(){return(new Date((new Date).getTime()+18e5)).toUTCString()}}};Bd=function(){function a(b,c){this.persister=b,this.idGenerator=c,this.id=this.persister.get(a.idIdentifier),this.count=this.persister.get(a.countIdentifier),this.bumped=!1;if(this.id==null||this.count==null)this.id=this.idGenerator.generateIDFromTime(),this.count=1,this.bumped=!0,this.persist()}return a.prototype.bump=function(){return this.bumped||(this.count+=1,this.bumped=!0),this.persist(),this},a.prototype.persist=function(){return this.persister.set(a.countIdentifier,this.count),this.persister.set(a.idIdentifier,this.id)},a.prototype.serializedCount=function(){var a;return a=this.count.toString(36).toUpperCase(),a.length<2&&(a="0"+a),a},a.prototype.serialize=function(){return""+this.id+this.serializedCount()},a.prototype.getId=function(){return this.serialize()},a}(),Bd.idIdentifier="id",Bd.countIdentifier="count";Cd=function(a,b,c){c=c||1900;var d=a.document;return{maxRequestLength:c,get:function(e,f,g){if(e.length>c)return;var h=!1,i=a.setTimeout(function(){h=!0,g&&g(b)},b),j=d.getElementsByTagName("script")[0],k=j.parentNode,l=d.createElement("script");l.type="text/javascript",l.src=e,l.onload=l.onerror=l.onreadystatechange=function(){a.clearTimeout(i);if(!l.readyState||/loaded|complete/.test(l.readyState))f&&!h&&f(),l.onload=l.onerror=l.onreadystatechange=null,l.parentNode&&l.parentNode.removeChild(l),l=undefined},k.insertBefore(l,j)}}},Dd=function(b,d,f,h){var i=h.document,j=!1,k=0,hostProtocol=d.CONST.protocol,l=1,m=b.env,o=function(e,o){var p,q,r,s,t,u=-1,v=e.mediaLogUrl||ud(e.apiKey),w,x=0;e.apiKey?(w=ec(),w.register(b.invoke)):w=b,e=e||{},o=o||{};var y=o.cookieJar||b.cookieJar,z=o.sync||b.sync,A=o.richId||b.richId;if(typeof e.parentAgent!="undefined"){var B=parseInt(e.parentAgent,10),C=h;for(var D=0;D<B;D++)C=h.parent;delete e.parentAgent;if(e.adId){var E=i.getElementById(e.adId);e.wrapperNode=E}C[d.global.identifier].push({version:G,invoke:e});return}var F=function(){return e.forceXframe||b.windowObserver.isCrossDomain()&&e.apiKey&&m.browser==="msie"},I=function(){return e.rfa&&b.windowObserver.isCrossDomain()&&!F()},N=function(){return r=e.sessionId=r||e.sessionId||d.idGenerator.generateIDFromTime(),r},O=function(){if(!e.rfa)return md(f.userId,e.sample);var a=e.apiKey,b=parseInt(a.substring(11,12),36),c=parseInt("00"+f.userId.substring(0,10),36);return c%Math.pow(2,b)===0},P=function(a){var c=b.nodeCache.getDataFromNode(a);return c[r]||(c[r]={sessionId:r,global:c}),c[r]},Q=function(){var a;return function(){return a=a||function(){return F()?b.xFrame.getXframeVisibilityForNodes:e.visibilityFn||Dc}(),a}}(),R=function(a){return a&&a.className&&a.className.match(K)},S=function(a){return a&&a.className&&a.className.match(L)},T=b.windowObserver.getFrames.apply(null,p&&p.length>0?[p[0]]:[]),U=wb(T,b.getObserver);vb(U,function(a){b.interactionObserver.hookObserver(a)});var Z=ec(),$=function(){var a={absolutePosition:e.placementKind=="absolute",xFrameUrl:e.xFrameUrl,enableTony:e.enableTony};return t=Q()(h,p,b.getObserver,P,b.nodeCache.getDataFromNode,b.ready.loaded,N,a),Z.invoke(t),t},ab=function(){return t||$()},bb=function(a,b){x<_&&(x++,ac(h,function(){eb("error",{ms:encodeURIComponent(a),md:encodeURIComponent(b)})}));if(h.byburt_developmentMode)throw new Error(a+" "+b)},cb=function(a,b){if(h.byburt_developmentMode)b();else try{return b()}catch(c){var d="Unknown error",e=null;return c&&c.ms&&c.md?(d=c.ms,e=c.md):c&&typeof c.toString=="function"&&(d=c.toString()),bb(a+": "+d,e),undefined}},db=function(a,b,c){return function(d){e[b]&&(d[a]=c||e[b])}};q=$b(function(a,b,c){var d={},e=this;return vb(b,function(b){c&&!h.byburt_developmentMode?ac(h,function(){e[b](d,a)}):cb("makeParams."+b,function(){e[b](d,a)})}),d},{ad:function(a){e.empty?a.ad="":e.dimensionCallback?a.ad=window[e.dimensionCallback](e,ab().dimensions()):a.ad=wb(ab().dimensions(),function(a){return Math.round(a.w)+"x"+Math.round(a.h)}).join(",")},ac:function(a,b){b&&b.action&&(a.ac=encodeURIComponent(b.action.toString()))},an:db("an","adName"),ap:function(a){if(!e.empty)if(e.positionCallback){var b=ab();a.ap=window[e.positionCallback](e,b.positions(),b.dimensions())}else a.ap=wb(ab().positions(),function(a){return ub(wb(a,function(a,b){return a.x+"x"+a.y}))}).join("|");else a.ap=""},av:function(a){var b=H;d.CONST.versionIdentifier&&(b+="-"+d.CONST.versionIdentifier),e.versionSuffix&&(b+="_"+e.versionSuffix),a.av=b},ar:function(a){var b=e.autoReload;b&&(a.ar=b?1:0)},ca:function(a,b){var c="",d=new RegExp(e.siteName+"$","i");d.test(h.location.hostname)||(c+="external-"),e.siteName&&(a.ca=c+(h.byburt_category||e.category||"unknown"))},cc:function(a,b){b&&b.category&&(a.cc=encodeURIComponent(b.category.toString()))},cd:function(a){a.cd=b.windowObserver.isCrossDomain()?1:0},ce:function(a){a.ce=e.clickEnabled?1:0},cks:function(a){var b=[];e.cloudKeys&&(b=b.concat(e.cloudKeys));if(e.cloudKeysByTag)if(e.searchNodes||e.adId){var c=e.searchNodes;if(!c){var d=h.document.getElementById(e.adId);if(d){var f=d.className&&d.className.indexOf("byburt_before_adtag")!==-1;c=f?Rc(d,R,S):[d]}}c&&c.length>0&&(b=b.concat(pd(c)))}b.length>0&&(a.cks=Mb(b).join(","))},cl:function(a){},co:function(a){a.co=f.cookieSupport?"1":"0"},cp:db("cp","canonicalPath"),ct:function(a,c){c&&typeof c.occurredTime!="undefined"?a.ct=c.occurredTime:a.ct=b.currentTime()},cv:function(a,b){b&&b.value&&(a.cv=encodeURIComponent(b.value.toString()))},ei:function(a,b){var c=b.value;typeof c!="undefined"&&c!==null&&(a.ei=c)},ep:db("ep","empty",1),en:function(a){e.adNetwork&&(a.en="AN")},eu:function(a){e.rfa&&b.windowObserver.isCrossDomain()?a.fu=encodeURIComponent(h.location.href):a.eu=encodeURIComponent(b.windowObserver.getTopFrame().location.href)},et:function(a){},fn:function(a){},fs:function(a,b){a.fs=b.fresh?1:0},fu:function(a){},lu:function(b){var c=function(a){return a.join(",").length>1400&&(a=wb(a,function(a){return tc(h.document,a)})),a.join(",")},d=!1,f=wb(p,function(b){return b.tagName==="IFRAME"&&a(b,"contentWindow","document","body","childNodes")?b.contentWindow.document.body:b}),g=Mc(f,["OBJECT","EMBED","IMG"],!0),i=wb(g,rd);i=Db(i,Xb),i=wb(i,function(a){return encodeURIComponent(qc(a))}),i=Mb(i);var j=Db(p,function(a){return a.tagName=="IFRAME"});i.length>0?b.lu=c(i):j.length>0?b.wu=c([encodeURIComponent(qc(j[0].src))]):!e.empty&&p.length>0&&(b.lu="")},lb:function(a,b){b&&b.label&&(a.lb=encodeURIComponent(b.label.toString()))},ln:function(a){h.navigator&&(a.ln=h.navigator.userLanguage||h.navigator.language)},md:function(a,b){a.md=b.md},mk:db("mk","mediaKey"),mp:function(a,c){if(!c)return;var d,e;if(c.pageX||c.pageY)d=c.pageX,e=c.pageY;else if(c.clientX||c.clientY)d=c.clientX+i.body.scrollLeft+i.documentElement.scrollLeft,e=c.clientY+i.body.scrollTop+i.documentElement.scrollTop;var f=Wc(p[0]),g=b.getObserver(f).elementGeo(p[0]);d-=g.x,e-=g.y,a.mp=d+"x"+e},ms:function(a,b){a.ms=b.ms},mt:function(a){var b;p.length>0&&Pb(["OBJECT","EMBED","IMG"],p[0].tagName)!==-1?b=p:b=Mc(p,["OBJECT","EMBED","IMG"],!0);var c=b.length>0?b:p;c=Nb(c),c=wb(c,function(a){return a.tagName}),c=Nb(c),c.length>0?a.mt=c.join(","):!e.empty&&p.length>0&&(a.mt="")},nc:function(a){var b=Mc(p,["OBJECT","EMBED","IMG"]),c=b.length>0?b:p;a.nc=c.length},nz:function(a){if(e.stopped){a.nz=0;return}if(I()||p.length===0)return;a.nz=ab().nodeVisibilities().join(",")},pd:function(a){a.pd=wb(b.observers,function(a){var b=a.getPageDimension();return b.width+"x"+b.height}).join(",")},pi:function(a){a.pi=f.pageId},pk:db("pk","placementKind"),pn:db("pn","placementName"),pr:function(a,b){a.pr=b.provider},rd:function(a){},rf:function(a){var b=f.referrer.externalReferrer;b&&(a.rf=h.encodeURIComponent(b))},lr:function(a){var c=b.windowObserver.getTopFrame().document.referrer;c&&(a.lr=encodeURIComponent(c))},rk:db("rk","apiKey"),sa:function(a){a.sa=b.windowObserver.isCrossDomain()?0:1},sd:function(a){h.screen&&!isNaN(h.screen.width)&&!isNaN(h.screen.height)&&(a.sd=h.screen.width+"x"+h.screen.height)},sg:function(a){var b=[];if(e.segments)for(var c in e.segments)e.segments.hasOwnProperty(c)&&b.push(c+":"+e.segments[c]);b.length>0&&(a.sg=b.join(","))},si:function(a){a.si=N()},sn:function(a){typeof a.sn=="undefined"&&(a.sn=l++)},sr:db("sr","sample"),ss:function(a,b){a.ss=b.success?1:0},ti:db("ti","adTagId"),ty:function(b,c){if(!c)return;a(c,"type")||(c={type:"mouseover"}),c.type==="mouseover"?b.ty="mouseEnter":c.type==="mouseout"?b.ty="mouseExit":b.ty=c.type},tn:function(a){e.tagName&&(a.tn=encodeURIComponent(e.tagName))},tz:function(a){a.tz=(new Date).getTimezoneOffset().toString()},ui:function(a){a.ui=f.userId},vi:function(a){},vl:function(a,b){if(!b)return;b.value&&(a.vl=b.value.toString())},vz:function(a){if(e.stopped){a.vz=0;return}if(I()||p.length===0)return;a.vz=ab().visibility()},vn:function(a){if(I()||p.length===0)return;a.vn=ab().name()},wd:function(a){var b=wb(U,function(a){return a.dimension()});b.length>0&&(a.wd=wb(b,function(a){return a.w+"x"+a.h}).join(","))},wn:db("wn","siteName"),ws:function(a){var b=wb(U,function(a){return a.scroll()});if(!b)return;b.length>0&&(a.ws=wb(b,function(a){return a.x+"x"+a.y}).join(","))},wu:function(a){}});var eb=function(a,c,d){var f=function(f){var g=mb[f||a];if(!g)throw"No such action "+a;var i=q(c||h.event,g,a==="error");ac(h,function(){w.invoke(a,i,e.adId)}),e.disableLogging||b.transport.enqueueMessage({kind:a,params:i,url:v,callback:d})};cb("sendMessage "+a,function(){a==="exposure"&&e.rfa?f("rfa_exposure"):a==="sync"&&e.rfa?f("rfa_sync"):f()})},fb=function(a,b,c,d){z[a](b,function(a,b,e,f){c&&c.apply(null,arguments),eb("sync",{provider:a,value:b,success:e,fresh:f},d)})},gb=function(){cb("startPagePingLogging",function(){var a,c=function(){return Math.round(V*1e3+1e3*W*b.random())},d=function(){var b=c();a&&h.clearTimeout(a),a=h.setTimeout(function(){eb("pageping")},b)};d(),b.register(d)})},hb=function(){cb("sendPing",function(){eb("ping")})},ib=function(){cb("forcePing",function(){$(),eb("ping")})},jb=function(){cb("startVisibilityProbing",function(){var a,c=new ld(h,b.random,e.pingTimes||X,ib),d=$();if(I())return;d.visibility()>0&&c.run();var f=function(a){var f=function(){if(d.visibilityHasChanged()||e.placementKind!=="absolute"&&d.visibility()>0&&b.random()<=.2){var f=$(),g=Math.ceil(f.visibility())!==Math.ceil(d.visibility());g&&(hb(),f.visibility()===0?c.reset():c.run()),d=f}e.stopped?($(),hb(),c.reset()):a()};e.flushBetweenInteractions?b.interactionObserver.onBreak(f):f()},g=function(){return Math.floor(b.random()*Y/2+Y/2)};yc(h.setTimeout,f,g)})},kb=function(){cb("startActivityLogging",function(){var a=function(a,b){b.occurredTime=a,eb("activity",b)};b.activity.onActive(a),b.activity.onPassive(a)})},lb=function(){cb("startEndLogging",function(){var a=dc(function(){b.transport.flush();var a=v+"?"+nd("end",q(null,mb.end));a+="&et=",a=a.replace(/.+?\/\//,"//");if(a.length+5>b.request.maxRequestLength)return;var c=new m.Image;c.src=hostProtocol+":"+a+"im",b.request.get(hostProtocol+":"+a+"gr")}),c=function(b){vb(["unload","beforeunload"],function(c){gc(b,"on"+c,a),Gc(b,c,a)})};vb([h,i],c),b.ready.onDomReady(function(){c(i.body)})})},nb=function(){cb("startSyncing",function(){b.syncStartedBySessionId=b.syncStartedBySessionId||{};var a=e.rfa?b.syncStartedBySessionId[N()]:b.syncStarted;a||(e.rfa?b.syncStartedBySessionId[N()]=!0:b.syncStarted=!0,b.hasStartedCookieSyncing=!0,b.ready.onDomReady(function(){fb("write",{provider:"burt",cookieName:"id"},b.burtSyncHooks.invoke)}))})},ob=function(){e.configCallback&&h[e.configCallback](e)},pb=function(){cb("startPageLogging",function(){j||(j=!0,p||(p=e.adNodes=[]),eb("page"),nb(),kb(),b.transport.flush(),gb(),lb())})},qb=function(){cb("startLogging",function(){if(e.clickCallback&&typeof e.clickCallback=="function"){var a=q(null,mb.click),b=nd("click",a),c=v+"?"+b+"&rd=";e.clickCallback(c)}ob(),eb("exposure"),nb();if(p.length!==0&&!e.empty){var d=function(a){eb("event",a)};vb(p,function(a){Gc(a,"click",d),Gc(a,"mouseover",d),Gc(a,"mouseout",d)}),jb()}e.rfa&&kb()})},rb=function(a){cb("fireCustomEvent",function(){if(typeof a=="undefined"||!a){if(!e.data)throw"Missing required attribute: data";a={category:e.data.category,action:e.data.action,label:e.data.label,value:e.data.value}}else vb(e.defaultEventData,function(b,c){a[c]||(a[c]=b)});if(!a.category)throw"Missing required event data: category";if(!a.action)throw"Missing required event data: action";eb("customevent",a,e.eventCallback)})},sb=function(){cb("startExternalSync",function(){b.ready.onDomReady(function(){fb(e.syncType,e.syncConfig,e.syncCallback)})})},tb=function(){cb("startVolatileSync",function(){b.ready.onDomReady(function(){var a={success:!0,fresh:!0,provider:e.syncConfig.provider,value:e.syncConfig.defaultId};eb("sync",a,e.syncCallback)})})},xb=function(b,c){e.adNodes=p=b,c==="empty"?e.empty=!0:c&&bb("onDomReady: Unable to determine which node is the ad:",c);var d=1,f=function(a){return function(){return cb("waitForCompletedDocument",a)}},g=function(){d--,d<=0&&qb()},h=vb(b,function(b){b.tagName==="IFRAME"&&a(b,"contentWindow","document","body","childNodes")&&(d++,ed(b,f,g))});g()},yb=function(){e.beforeCallback&&h[e.beforeCallback](e),e.empty?xb([]):e.adNodes?xb(e.adNodes):e.searchNodes?b.ready.onDomReady(function(){h.setTimeout(function(){b.adNodeFinder.find(e.searchNodes,xb)},1)}):e.wrapperNode||e.adId?b.ready.onDomReady(function(){h.setTimeout(function(){var a=e.wrapperNode||i.getElementById(e.adId);if(!a&&!e.searchNodes)bb("onDomReady: Could not find the wrapper node",e.adId),xb([]);else{var c=a.className.indexOf("byburt_before_adtag")!==-1?Rc(a,R,S):[a],d=["serving-sys.com"],f=Cb(Mc(c,["SCRIPT"],!0),function(a){return Cb(d,function(b){return a.src&&a.src.match(b)?{name:b,src:a.src}:!1})});if(f){var g=Lc(c),h=g[g.length-1];h.tagName==="EMBED"&&h.parentNode.tagName==="OBJECT"&&(h=h.parentNode),h.tagName==="OBJECT"?xb([h]):bb("Mediamind: "+f.name,f.src)}b.adNodeFinder.find(c,xb)}},1)}):bb("No ad node specification")};cb("richTracker",function(){e.onMessage&&(typeof e.onMessage=="string"&&(e.onMessage=h[e.onMessage]),w.register(e.onMessage));var a,j=N();if(!e.mediaKey||e.mediaKey.length!==12){bb("richTracker: Invalid media-key");return}var l=function(){typeof e.adId=="undefined"&&(e.adId=J+k+"_"+j,k++),e.noAroundTags=!0,e.enclosedCallback&&(e.noAroundTags=!1,e.callback=e.enclosedCallback),e.callback&&typeof e.callback=="string"&&(e.callback=h[e.callback]),e.placementName&&(h[c]=h[c]||{},h[c][e.placementName]=e.adId);var l=function(){O()&&(e.deferCallback?window[e.deferCallback](e,yb):yb())};if(e.callback&&typeof e.callback=="function"){var o=function(a){var b=a,c=e.clickEscapes-1,d=h.unescape;c<0&&(d=h.escape,c=-c);for(var f=0;f<c;f++)b=d(a);return b},p=!m.crazyScriptOrder||e.empty,q=function(a){return qd("span",K,a)};e.noAroundTags||i.write(q(e.adId));var r=function(){return qd("span",L)},s=od(h,v,"",{},N(),f.pageId,f.userId,H,e);e.callback(j,f.pageId,e.adId,a,o(e.click)||"",s);if(!e.noAroundTags){var t=b.dictionary.add(l),u="burt_api_rfa.instances['"+G+"'].agent.dictionary.get('"+t+"')();",w="if (window."+g+") { "+"document.write(window."+g+"); "+"window."+g+" = null; "+"} "+'document.write("<span style=\\"display:none;\\" class=\\"'+L+'\\"></span>"); ';i.write('<script type="text/javascript">window.'+n+" = {"+" counter: "+(m.crazyScriptOrder?M:0)+', url: "'+d.CONST.afterAdUrl+'",'+" callback: function() { "+w+u+" } "+" }; "+"</scr"+"ipt>"),i.write('<script type="text/javascript" src="'+d.CONST.afterAdUrl+'"></scr'+"ipt>")}}else l()},o=function(){if(e.placementName===undefined)return bb("Must supply placementName for RFM ads"),-1;if(e.placementKind===undefined)return bb("Must supply placementKind for RFM ads"),-1;l()},p=function(){e.rfa=!0;if(!e.apiKey||e.apiKey.length!==12)return bb("richTracker: Invalid API-key"),-1;l()},q=function(){b.page=e,O()&&pb()},r={ad:o,rfa:p,page:q,event:rb,sync:sb,volatileSync:tb},s=r[e.type];if(!s)throw"No action for invocation type: '"+e.type+"'";r[e.type]()});var zb=function(){e.stopped=!0,p=[]},Ab={ad:{visibility:ab,visibilityUpdate:Z.register}};return{exposed:{stop:zb,visibility:ab,messageObserver:w,pinger:ib},config:e}};h[e]=function(a){b.request.get(a)};var p=vd(h,b.request,b.idGenerator,b.richId),q=function(a){return a.test(i.domain)};return function(a){var c=function(a,c){var d=o(a,c);b.pushTracker(a,d)};a.noCookies||Cb(kb,q)?(a.noCookies=!0,p(a,function(b){c(a,b)})):c(a)}},Ed=function(a,b){var c=function(c,d){cd(a,c,function(){dd(a,b,c,function(){d(c)})})};return{load:c}},Fd=function(a,b,c){var d=function(a){return Db(a,function(a){return!(a.tagName==="IMG"&&a.width+a.height<3)})},e=function(a){return Db(a,function(a){return a.nodeType!==8})},f=function(a,b,c){var d=function(){c([],"empty")},e=Mc(a,["DIV"],!0);if(e.length>0)for(var f=0;f<e.length;f++)if(e[f].className=="openx_textblock")return c([e[f]]);if(b.length===1&&b[0].tagName==="IMG")return d();var g=Mc(a,["SCRIPT"]);if(g.length===1&&g[0].src&&g[0].src.match(/openx/i)&&e.length===0)return d();var h=Kc(a);if(e.length===0&&a.length-g.length===h.length&&!wb(h,function(a){return a.innerText||a.textContent||jd(a)}).join("").match(/[a-z0-9]/gi))return d();var i=function(){var a=wb(e,function(a){return a.textContent||a.innerText}).join("").replace(/\W/gi,"").length;if(a===0)return!1;var b=wb(g,function(a){return a.textContent||a.innerText}).join("").replace(/\W/gi,"").length;return a>b};if(g.length>0&&!i())return d();var j=Db(a,function(a){return a.tagName});j.length===0?c([],"No real nodes found: "+wb(a,jd).join("\n")):c(j)},g=function(a,g){a=e(a);var h=Mc(a,b,!0),i;h=Db(h,function(a){return i&&i.tagName==="OBJECT"&&a.tagName==="EMBED"&&a.parentNode===i?!1:(i=a,!0)}),c(h,function(b){var c=d(h);c.length==2&&c[0].tagName=="OBJECT"&&c[1].tagName=="EMBED"?g([c[0]]):c.length>=1?g(c):f(a,h,g)})};return{find:g}};Gd=function(){var a,b,c;return b={},a=0,c={add:function(c){return b[++a]=c,a},get:function(a){return b[a]}}};Hd=function(a,b,c,d){var e=lc(a),f=d,g=!1,h,i=0,j=0,k={},l=ec(),m=ec(),n=function(a){i=0,g||(j=0,g=!0,l.invoke(c(),a))},o=function(b){m.invoke(c(),b),g&&(g=!1,h!==undefined&&a.clearTimeout(h))},p=function(){h!==undefined&&a.clearTimeout(h),h=a.setTimeout(function(){j+=f[i]*1e3,o({type:"timeout",value:j}),i<f.length-1&&i++,p()},f[i]*1e3)},q=function(a){var b=a.type,c=k[b]===undefined;k[b]=!0;if(b=="mousemove"&&e.oldIE&&c)return;if(b=="focus"&&e.browser==="firefox"&&c)return;if(b=="resize"&&e.mobileWebkit&&c)return;g||n(a),p()},r=function(a){return e.browser==="msie"?a.document:a},s=function(b){var c=b,d=b.document,f=r(b),g=function(a,c){Gc(a,c,function(){var a={type:c,sourceFrame:b};q(a)})};g(f,"mousemove"),c===a&&g(c,"focus"),g(d,"keydown"),g(d,"mousedown"),g(c,"resize"),g(c,"mousewheel"),g(c,"DOMMouseScroll"),g(c,"touchmove"),e.mobileWebkit&&g(c,"scroll"),c===a&&Gc(c,"blur",function(){var a={type:"blur",sourceFrame:b};o(a)})};vb(b,s);var t=function(){return g},u=[];l.register(function(a,b){u.push({type:"active",time:a,event:b})}),m.register(function(a,b){u.push({type:"passive",time:a,event:b})});var v=function(){return u};return{getHistory:v,addFrame:s,isActive:t,onActive:l.register,onPassive:m.register}},Id=function(a,b){var c=a.document,d=c.documentElement,e=c.body,f={},g={},h=[],i=lc(a),j=function(){var a=1;return function(){return a++}}(),k=function(c,d,e,i,k,l){var m=[];k||(k=a);var n,o,p=b(),q=function(){var a=b();if(typeof n=="undefined"||d&&a>p+d)n=e(),p=a;return n};l||(l=function(a){n=undefined}),Gc(k,i,function(a){l(a),vb(h,function(a){var b=g[a];b(i)}),vb(m,function(a){var b=g[a];b()})}),f[c]=function(){return q()},f[c].attachEvent=function(a,b){return b||(b=j(),m.push(b)),g[b]=a,b}};f.attachEvent=function(a,b,c){return f[a].attachEvent(b,c)},f.attachWindowEvent=function(a,b){return b||(b=j(),h.push(b)),g[b]=a,b};var l=d.clientTop;l===undefined&&(l=e.clientTop),l===undefined&&(l=0);var m=d.clientLeft;m===undefined&&(m=e.clientLeft),m===undefined&&(m=0),k("scroll",null,$b(Fc,null,[a]),"scroll",a),k("dimension",500,$b(Ec,null,[a]),"resize",a);var n=!0;if(a.navigator.appVersion)if(i.browser!=="msie"){if(i.browser==="safari"){var o=a.navigator.appVersion.match(/Version\/([\d\.]+)/);o&&o[1]<"5.1"&&(n=!1)}}else n=!1;return f.elementGeo=function(a){var b=a.tagName;n&&b==="OBJECT"&&(a=Uc(a,"EMBED")||a);if(!a.getBoundingClientRect)throw new Error(a.tagName+" has no getBoundingClientRect");var c=a.getBoundingClientRect(),d=f.scroll(),e=c.top+d.y-l,g=c.left+d.x-m,h=c.width,i=c.height;return h===undefined&&(h=a.offsetWidth),i===undefined&&(i=a.offsetHeight),{x:Math.round(g),y:Math.round(e),w:Math.round(h),h:Math.round(i)}},f.getPageDimension=function(){return Ac(c)},f.getFrames=fc(function(){return Xc(a)}),f.getTopFrame=fc(function(){return Yc(a)}),f.isCrossDomain=fc(function(){return f.getTopFrame()!=a.top}),f.getWindow=function(){return a},f},Jd=function(a){var b={},c=1,d=function(){return c++},e=function(c){var e=c[a];if(e)return b[e];var f={nodeKey:e,cacheKey:a};return e=d(),c[a]=e,b[e]=f,f};return{getDataFromNode:e}},Kd=function(a,b,c){var d=function(d,e,f){var g="jsonpburt"+c.generateIDFromTime();a[g]=e;var h=oc(a.document,d),i="?";if(h.search||d.match(/\?/))i="&";b.get(d+i+"jsonp"+"="+g,f)};return d},Ld=function(a,b,c){var d=function(d){var e;return a!=d.major?e=a<d.major:b!=d.minor?e=b<d.minor:c!=d.patch?e=c<d.patch:e=!1,e};return{major:a,minor:b,patch:c,lt:d}};Ld.parse=function(a){var b=a.replace(/^[^0-9]/g,"").split(".");if(b.length!=3)throw"Invalid version string: "+a;return Ld.apply(null,wb(b,parseFloat))};Md=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&c!=="type"&&b.push(" "+c+": "+yd(a[c]));return b.join(",\n")},Nd={scriptTag:function(a){return['<script type="text/javascript">'].concat(a()).concat(["</script>"])},apiPushInvoke:function(a,b,c,d){var e=b.window||"window",f=e+"."+a.global.identifier;return[f+" = "+f+" || [];",f+".push({"," version: '"+a.fullVersion+"',"," invoke: {"," type: '"+c+"',"].concat(d()).concat([" }","});"])}},Od=function(a,b){var c=b,hostProtocol=a.protocol,d=a.window,e=d.escape,f=d.document,g=d.unescape,h=function(a){return a.childNodes?Lc(a.children||a.childNodes):[]},i=function(a,b,c){var d=function(b){var c=a.match(b);return c?{index:c.index,length:c[0].length}:{index:-1}};for(;;){var e=d(new RegExp("[\\n\\r]?<"+b+"[^>]*>","i")).index,f=d(new RegExp("[\\n\\r]?</"+b+"\\s*>[\\n\\r]?","i"));if(e===-1||f===-1||e>f.index)break;var g=a.substring(e,f.index+f.length);a=a.replace(g,""),c(g)}},j=function(a){var b="";return i(a,"script",function(b){a=a.replace(b,"")}),i(a,"noscript",function(a){b+=a}),b},k=function(a){var b=[],c=0;i(a,"script",function(d){b.push(d),a=a.replace(d,"#{byburt_script}"+c++)}),i(a,"noscript",function(b){a=a.replace(b,"")});for(var d=0;d<b.length;d++)a=Vb(a,"#{byburt_script}"+d,b[d]);return a},l=function(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=typeof d.match=="string"?a.indexOf(d.match)>0:a.match(d.match);if(e){var f=typeof d.transformer=="object"?d.transformer:[d.transformer],g=null;for(var h=0;h<f.length;h++){g=f[h].call(d,a,e);if(typeof g!="undefined"&&g!==null)return g}}}},m=function(a,b){var c=[],d,e=a,f=5;d=e.match(/<scr.{0,7}ipt[^>]*src=(["']?)([^"'> ]+)(\1|>)/i)||e.match(/<scr.{0,7}ipt[^>]*src=(["']?)(.+?)(\1|>)/i);while(d&&--f>0)c.push(d[2]),e=e.replace(d[0],""),d=e.match(/<script[^>]*src=(["']?)([^"'> ]+)(\1|>)/i);var g=[],h;for(var i=0;i<c.length;i++){var j=c[i];if(j){var k=l(j,b);k&&g.push([j,k])}}if(g.length>0){var m=a;for(var n=0;n<g.length;n++)m=Vb(m,g[n][0],g[n][1]);return m}},n=function(a,b,e,f){if(a.match(/burt_noclick/gmi))return null;var g=/^http/.test(b)?"":d.location.protocol,i=function(a,h){h=h||{},!h.noClickUrl&&f.clickUrlPrefix&&(a=f.clickUrlPrefix+(a||""));var i=e.sessionId||f.sessionIdValue,j=c.pageId;return od(d,g+b,a,h,i,j,c.userId,H,e)},j,k,n;if(/ADM_PL.*clk.*External click-tracking here/.test(a)){j=a.match(/ADM_PL.*clk\:([^}]*)/);if(j)return Vb(a,j[1],"'"+i()+"'")}var o=a;if(a.match(/_version/)){var p=/^<script[^>]+><!--_version=10;\/\/--><\/sc[^>]+><script[^>]+><!--_version=11;\/\/ --><\/sc[^>]+><script[^>]+><!--[^<]+MSIE 3[^<]+<IFRAME.*\/\/--><\/scr[^>]+>/i;o=a.replace(p,"")}var q=Jc(d,o);if(q&&(q.length==1||q.length==2&&q[1].tagName=="IMG")&&q[0].tagName=="A"){var r=h(q[0]);if(r.length==1&&r[0].tagName=="IMG"){var s=r[0];try{return Vb(a,new RegExp('href="([^"]*)"',"i"),function(a,b){if(!b.match(/^https?/i))throw"Relative url";return'href="'+i(b)+'"'})}catch(t){return null}}}var u=function(a,b){return function(c,d){var e=a.test(Ub(c));if(e)return c=Vb(c,a,function(){var a=Array.prototype.slice.call(arguments),c=function(b,c){return a[parseFloat(c)]||""},d=(b.before||"").replace(/\$(\d)/,c);return d+=i(b.urlGroup?a[b.urlGroup]:null,b.urlOptions),d+=(b.after||"").replace(/\$(\d)/,c),d}),c}},v=function(a,b){return b.before=(b.before||"")+"window.byburt_click('",b.after="');"+(b.after||""),u(a,b)},w=[{name:"emediate",match:/^http:\/\/ad([0-9]+)\.emediate\.dk\/eas([^\;]*)/,transformer:[u(/(EASClick[0-9]?=)([^\;]*)(\?|\;|$)/,{urlGroup:2,before:"$1",after:"$3"}),u(/\/eas([^\;]*)/,{before:"$1;click=",after:""})]},{name:"doubleclick",match:/^http:\/\/ad([\-a-z\.]*).doubleclick.net(\/[^\/]+)?\/adj\/([^\;]*)/,transformer:[u(/(click[0-9]?=)([^\;]*)(\?|\;|$)/,{urlGroup:2,before:"$1",after:"$3"}),u(/(adj\/.*\??)/,{before:"$1;click0=",after:""})]},{name:"adform",match:/http:\/\/track.adform.net\/adfscript\/\?bn=[0-9]+/,transformer:[u(/(\;click\=)([^;\"\'\>]*)(.*)/,{urlGroup:2,before:"$1",after:"$3"}),u(/(adfscript\/\?bn=[0-9]+)/,{before:"$1;click=",after:""})]},{name:"atdmt",match:/http\:\/\/view.atdmt.com(.+?)/,transformer:[u(/(click=)(.*)$/,{urlGroup:2,before:"$1",after:"",urlOptions:{escapedAmps:!0}}),u(/(view.atdmt.com.+?)(\?)?$/,{before:"$1?click=",after:"",urlOptions:{escapedAmps:!0}})]},{name:"mediaplex alt",match:/http\:\/\/altfarm.mediaplex.com\/ad\/js\/.*mpvc.*/g,transformer:[u(/(mpvc\=)(.+\?)/,{urlGroup:2,before:"$1"})]},{name:"mediaplex ad",match:/http\:\/\/adfarm.mediaplex.com\/ad\/js\/.*mpvc.*/g,transformer:u(/(mpvc\=)/,{before:"$1",urlOptions:{escapes:2}})},{name:"de17a",match:/http:\/\/de17a.com\//,transformer:u(/(\?url=)(.*\.click)/,{urlGroup:2,before:"$1"})},{name:"openx",match:/http:\/\/openx\.bonniertidskrifter\.se\/www\/delivery\/ajs.php.*/g,transformer:u(/(ajs.php[^'\"]*)$/,{before:"$1&ct0=",after:"",urlOptions:{escapeAll:!0}})},{name:"serving-sys",match:/bs\.serving-sys\.com\/BurstingPipe.+?ncu=/mig,transformer:[u(/(ncu=\#\{DOLLAR\}\#\{DOLLAR\})(.+?)(\#\{DOLLAR\}\#\{DOLLAR\})/,{urlGroup:2,before:"$1",after:"$3",urlOptions:{escapedAmps:!0,escapeAll:!0,escapeClickUrl:!0}}),u(/(ncu=)/,{before:"$1$$",after:"$$",urlOptions:{escapedAmps:!0,escapeAll:!0,escapeClickUrl:!0}})]},{name:"adtech",match:/\/addyn([\/|\|])\d+.\d+\1/,transformer:[u(/(rdclick=)(.+?)(:|$)/,{urlGroup:2,before:"$1",after:"$3",urlOptions:{escapeClickUrl:!0}}),u(/(.+)($)/,{before:"$1;rdclick=",after:"$2"})]},{name:"advertserve",match:/\.advertserve\./,transformer:[u(/(cturl=)(.*?)($)/,{urlGroup:2,before:"$1",after:"$3"}),u(/(advertserve.+?)($)/,{before:"$1&cturl=",after:"$2"})]},{name:"smart",match:/http\:\/\/ww251\.smartadserver\.com\/call\/pubj\/\d+\/(.)+\/\d+\/[S|M]\/\d+\/\?/,transformer:u(/(.+\?)/,{before:"$1"})}],x=l(a,[{name:"mads",match:/eu2\.madsone\.com/,transformer:[u(/(.*)(http:\/\/eu2\.madsone\.com\/click\/.*\/index.php)(.*)/,{urlGroup:2,before:"$1",after:"$3"})]},{name:"TFSMFlash",type:"other",match:"var TFSMFlash_SWFCLICKVARIABLE",transformer:u(/(var TFSMFlash_SWFCLICKVARIABLE)/,{before:'TFSMFlash_OASCLICK = "',after:'" + encodeURIComponent(TFSMFlash_OASCLICK);\n$1',urlOptions:{escapedAmps:!0}})},{name:"adtoma",type:"other",match:/<a.*onclick\s*\=\s*\"window\.Fusion\.countAdvertEvent\(\d+.*<\/a\>/,transformer:v(/(onclick=")([^\"]*")/,{before:"$1",after:"$2",urlOptions:{noClickUrl:!0}})},{name:"eyewonder",type:"other",match:/\[ewclickthru\]/gmi,transformer:u(/(\[ewclickthru\])/gmi,{after:"$1",urlOptions:{noClickUrl:!0}})},{name:"tradedoubler",match:/anet\.tradedoubler\.com\/anet.+?preurl\((.+?)\)/,transformer:u(/(preurl\()(.+?)(\))/,{urlGroup:2,before:"$1",after:"$3",urlOptions:{escapeClickUrl:!0}})},{name:"FusionGet",match:"window.Fusion.getAdvertEventUrl",transformer:function(a,b){var c=u(/(window\.Fusion\.getAdvertEventUrl.+?\?url=)/g,{before:"$1",urlOptions:{escapeAll:!0}})(a,b);if(c){var d=m(c,w);return d||c}return null}},{name:"Adtech document write",match:/document.write.+adtech/mig,transformer:[u(/(adtech.+?rdclick=)(.+?)(\"|')/mig,{before:"$1",urlGroup:2,after:"$3"}),u(/(adtech.+?\;grp='\+window.adgroupid\+'\;misc='\+new Date\(\)\.getTime\(\)\+')/mig,{before:"$1;rdclick="})]},{name:"admeta",match:/http:\/\/ai.admeta.com\/adserve\/public/,transformer:[u(/(\?url=)([^&]*)(&)/,{urlGroup:2,before:"$1",after:"$3",urlOptions:{escapes:2}}),u(/(&urlPrefix=)(.+?\?)(&[^\"]+)/,{urlGroup:2,before:"$1",after:"",urlOptions:{escapedAmps:!0,escapes:1}})]},{name:"doubleclick iframe",match:/<iframe\s+src\=(['"])http:\/\/ad([\-a-z\.]*).doubleclick.net(\/[^\/]+)?\/adi\/([^\;]*)/,transformer:[u(/(click[0-9]?=)([^\;]*)(\?|\;|\"|\'|$)/,{urlGroup:2,before:"$1",after:"$3"}),u(/(adi\/[^\'\"]*\??)([\"\'].+)/,{before:"$1;click0=",after:"$2"})]},{name:"VG flash",match:/swf ?: ?.+?flash\.vg\.no/gm,transformer:function(a,b){return Vb(a,/(flashvars ?: ?")(.+?)(")/,function(a,c,d,e){var f=u(/(clickTAG[0-9]?=)(.+?)(&|$)/gi,{before:"$1",urlGroup:2,after:"$3",urlOptions:{escapeAll:!0}}),g=f(d,b);if(g)return c+g+e})}}]);return x?x:(x=m(a,w),x)},o=function(a){return a===""?!1:a.match(/cheapoQ/)?!1:/\AdPlayTracking\d+langstner/.test(a)?!1:a.match(/biowebb/)?!1:4===(a.match(/document\.write\('<script type="text\/javascript" src="http:\/\/oas-se\.bonnierdigitalservices\.com\/3\/' \+ at_page \+ '\/\d+/g)||[]).length?!1:a.match(/div.+?class=\"at_ad\".+?at_k2a[1-4]/img)?!1:!0},p=function(a){var b,c;return a.currentStyle&&a.currentStyle.width&&a.currentStyle.height?(b=parseInt(a.currentStyle.width,10),c=parseInt(a.currentStyle.height,10)):(b=a.getAttribute("width"),c=a.getAttribute("height")),{width:b,height:c}},q=function(a,b){var c=Jc(d,a);if(c){if(c.length==1&&c[0].tagName=="A"){var e=h(c[0]);if(e.length==1&&e[0].tagName=="IMG"){var f=p(e[0]);if(f.width==1&&f.height==1)return!0}}if(c.length==1&&c[0].tagName=="DIV"&&c[0].className=="byburt_empty")return!0}return/eu2\.madsone\.(com|eu)/.test(a)&&!/\/click/.test(a)?!0:/<script.*navigator\.appversion\.indexof\(\'msie 3\'\).*iframe.*oas_url.*realmedia\/ads\/click_nx\.ads.*(<a.*empty\.gif.*<img.*width=1.*height=1.*)<\/a/i.test(a.replace(/\x0a|\x0d/g,""))||/<a.*?href=\"http:\/\/oas.*?\.gif.*?<img.*?width="*1"*.*?height="*1"*.*?/i.test(a.replace(/\x0a|\x0d/g,""))?!0:null},r=function(a,c,d){if(!c||!d)throw"Params and config required";if(typeof a=="undefined")throw"Must supply an ad tag";var e=!1,f=c.noscriptIgnore?null:j(a);a=k(a);var g,h=q(a);return h?(d.empty=!0,d.clickEnabled=!1):!c.logurl||c.noClick?d.clickEnabled=!1:(g=n(a,c.logurl,d,b),g?d.clickEnabled=!0:(d.clickEnabled=!1,e=!0,b.handleParsefail&&b.handleParsefail(a,c,d,b))),{adaptedTag:g,noscriptPart:f,config:d}};return{adapt:r}},Pd=function(a){var b=function(b,c){if(b&&!/^[A-Za-z0-9]*$/.test(b))throw new Error("Invalid seed-parameter: "+b);var d=b||"";c=c||12;while(d.length<c)d=Math.floor(Math.pow(36,5)*a()).toString(36)+d;var e=d.substring(d.length-c).toUpperCase();if(!/^[A-Z0-9]*$/.test(e))throw new Error("Invalid id generated: "+e);return e},c=function(){var a=new Date,c=Math.floor(a.getTime()/1e3).toString(36).toUpperCase(),d=b("",6),e=c+d;if(!/^[A-Z0-9]*$/.test(e))throw new Error("Invalid id generated from time: "+e);return e};return{generateID:b,generateIDFromTime:c}};Qd=function(){function a(b,c,d){this.pageId=c.generateIDFromTime(),this.userId=d.get(a.userIDIdentifier),this.userId||(this.userId=c.generateIDFromTime()),d.set(a.userIDIdentifier,this.userId),this.referrer=new zd(b,d),this.env=lc(b),this.cookieSupport=!!d.testSet()}return a.userIDIdentifier="richUserId",a}();Rd=function(a,b,c,d,e){var f=[],g=null,h,i=!1,j=function(){q=[],f=[],i=!0};e=e||{};var k=b.maxRequestLength,l=c,m=e.errorCallback||j,n=function(a){b.get(a.url,function(){o(a)})},o=function(a){a.load(),f.length>0?n(f.shift()):g=null},p=function(a){g?f.push(a):n(a)},q=[],r=function(a){a.finishedAt=wc(),a.callback&&a.callback(a)},s=function(){var a=q;q=[],vb(Jb(a,"url"),function(a,b){if(b){var c=b+"?",d=[];vb(a,function(a){d.push({msg:a.fragment,load:function(){r(a)}})});var e=Kb(d,k-c.length,function(a){return a.msg.length+1});vb(e,function(a){p({url:c+wb(a,Yb("msg")).join(";"),load:function(){vb(a,function(a){a.load()})}})})}})},t=function(b){if(i)return;b.enqueuedAt=wc();var c=k-(b.url+"?").length,e=nd(b.kind,b.params);if(e.length>c)throw new Error("Fragment was too large");b.fragment=e,q.push(b);if(q.length>=l)s(),h&&(a.clearTimeout(h),h=null);else if(!h){var f=(d.length==1?d[0]:d.shift())*1e3;h=a.setTimeout(function(){s(),h=null},f)}};return{enqueueMessage:t,disable:j,flush:s}},Sd=function(a){var b=lc(a),c=!1,d=[],e=a.document,f=function(){if(!e.body){setTimeout(f,13);return}for(var a=0;a<d.length;a++)d[a]();d=[]},g=function(){if(e.addEventListener){var b=function(){e.removeEventListener("DOMContentLoaded",b,!1),f()};e.addEventListener("DOMContentLoaded",b,!1),a.addEventListener("load",f,!1)}else if(e.attachEvent){var c=function(){e.readyState==="complete"&&(e.detachEvent("onreadystatechange",c),f())};e.attachEvent("onreadystatechange",c),a.attachEvent("onload",f);var g=!1;try{g=a.frameElement===null}catch(h){}if(e.documentElement.doScroll&&g){var i=function(){if(d.length===0)return;try{e.documentElement.doScroll("left")}catch(a){setTimeout(i,1);return}f()};i()}}},h={ready:!1};g(),h.onDomReady=function(a){e.readyState==="complete"||h.ready?a():d.push(a)},h.onDomReady(function(){h.ready=!0});var i=[];h.loaded=!1;var j=function(){h.loaded=!0;for(var a=0;a<i.length;a++)i[a]()};return b.browser=="msie"?h.onDomReady(j):Gc(a,"load",j),h.onDomLoad=function(a){h.loaded?a():i.push(a)},h},Td=function(){var a=0;return function(b,c,d){var e=function(){var e=[],f=function(a){a&&a.toString&&typeof a.toString=="function"&&(a=a.toString()),e.push(a)},g=function(a){for(var b in a)typeof a[b]!="function"&&f(a[b])},h=function(a,b){vb(b,function(b){var c=a;vb(b,function(a){try{c=c[a]}catch(b){}}),f(c)})};h(b,[["location","href"],["document","referrer"]]);var i=b.navigator;h(i,[["userAgent"],["language"],["product"],["appVersion"],["onLine"],["platform"],["vendor"],["appCodeName"],["cookieEnabled"],["geolocation"],["appName"],["productSub"],["vendorSub"]]),i.plugins&&vb(i.plugins,g),i.mimeTypes&&vb(i.mimeTypes,g),b.screen&&g(b.screen),b.history&&f(b.history.length),b.Math&&f(b.Math.random()),f(d),f(++a),f((new Date).getTimezoneOffset()),f(c),f(G);var j=wc();f(j),f(j-c);var k=e.join("|"),l=bd(ad(k));return l},f;return function(){return f||(f=e()),f.random()}}}(),Ud=function(a,b){var c=lc(a);return{CONST:{configCallbackIdentifier:C,persistentReferrerIdentifier:d,syncCookieIdentifier:p,fullVersion:G,versionString:H,PARAMS:mb},callOnceFactory:dc,CookieJar:uc,eachPair:Bb,each:vb,clamp:nc,browser:c.browser,attachEvent:Gc,detachEvent:Hc,findFlashByObjectCallback:td,paramPresent:pc,getVisibilityForHelmetFactory:Cc,getBoundingBoxForBoxes:zc}},Vd=function(a){return Gc(window,"message",function(b){var c=function(a){var b=document.createElement("a");b.href=a;var c=b.host.split(":")[0];if(!c)return!1;var d=c.split(".").slice(-2).join("."),e=["localhost","burthub.com","burthub.local","burthub.dev","burtcorp.com","richmetrics.com","byburt.com"];return Pb(e,d)!=-1};if(c(b.origin)&&b.data.slice(0,14)==="rich-inject-js"){var d=b.data.slice(15);a.get(d)}}),Gc(window,"load",function(a){window.top.postMessage&&window.top!=window&&window.top&&window.top.postMessage("rich-tracking","*")}),{}},Wd=function(a,b,c,d,e,f,g){var h=a.window,i=h.document,j=ec();j.state=b,j.env=b.env,j.startTime=(new Date).getTime(),j.currentTime=function(){return wc()-j.startTime},j.dictionary=Gd();var k=hb+a.idGenerator.generateID("",12);j.nodeCache=Jd(k),j.getObserver=function(a){var b=j.nodeCache.getDataFromNode(a);return b.observer=b.observer||Id(a,wc)},j.windowObserver=j.getObserver(h),j.frames=j.windowObserver.getFrames(),j.observers=wb(j.frames,j.getObserver),j.ready=c,j.transport=d,j.request=e,j.random=f,j.xFrame=g;var l=vc(a.defaultCookieJar,p,{expires:jb}),m=a.CONST.syncUrl;j.sync=fd(h,a.idGenerator,e,l,{syncUrl:m}),j.burtSyncHooks=ec(),j.onBurtSync=j.burtSyncHooks.register,j.jsonp=Kd(h,e,a.idGenerator),j.interactionObserver=new wd(h),j.activity=Hd(j.windowObserver.getTopFrame(),j.frames,j.currentTime,eb),j.nodeLoader=Ed(h,j.env),j.adNodeFinder=Fd(h,gb,j.nodeLoader.load);var n=Dd(j,a,b,h);return j.ads=[],j.trackers=[],j.pushTracker=function(a,b){(a.type==="ad"||a.type==="rfa")&&j.ads.push(b),j.trackers.push(b)},j.debug=function(){h.console&&h.console.log&&j.register(function(a,b){h.console.log(a,b,ic.stringify(b))})},j.getMessagesOfType=function(a,b){return Db(j.buffer,function(c){if(a===c[0])return b&&b.apply(null,c),!0})},j.getMessagesByType=function(a){var b={};return vb(j.buffer,function(a){var c=a[0];b[c]||(b[c]=[]),b[c].push(a[1])}),b},j.trackerInvoker=function(a){var b={page:!0,ad:!0,event:!0,eventListener:!0,rfa:!0,sync:!0,volatileSync:!0};b[a.type]&&n(a)},j},Xd=function(a,b){b=b||{};var c=b.protocol||"http",d=b.host,e=b.cookieDomain,f=I+(b.trackerArraySuffix?"_"+b.trackerArraySuffix:""),g=a[f],h=function(){var b=g,c=ec();return c.push=c.invoke,c.identifier=f,c.instances={},c.register(function(a){if(nb(a.version))throw"API calls must have version";if(nb(a.invoke))throw"API calls must have invoke";if(nb(a.invoke.type))throw"API calls must have invoke type"}),g=a[f]=c,b};if(!g||Ob(g)){var i=h()||[];vb(i,g.invoke)}var j=g.instances[G];if(!j){j=g.instances[G]=ec(),j.global=g,j.fullVersion=G,j.version=Ld.parse(j.fullVersion),j.versionString=H,g.register(function(a){a.version===G&&j.invoke(a.invoke,a)});var k={},l=function(a){return k[a]||(k[a]=ec()),k[a]};j.registerComponent=function(a,b,c){j[a]||(j[a]=b.call(null,j),c&&c(j[a]),l(a).invoke(j[a],j))},j.get=function(a,b){l(a).register(b)};var m=b.sourceHost||"measure.richmetrics.com",n=b.sslSourceHost||"d3q6px0y2suh5n.cloudfront.net",o=c+"://"+(d||(c==="https"?n:m));j.CONST={protocol:c,agentBaseURL:o,afterAdUrl:o+"/recursive.js",syncUrl:ib,cookieDomain:e,versionIdentifier:b.versionIdentifier},j.window=a,j.getAgentURL=function(){return j.CONST.agentBaseURL+"/agent/rich-v"+j.fullVersion+".js"}}if(!g.latest||(!g.latest.version||!g.latest.version.lt)&&j.version||g.latest.version.lt(j.version))g.latest=j;return j.register(function(a){a.type==="context"&&a.callback(j)}),j},Yd=function(a,b,c,d){var e=a.window,f=lc(e),h=e.escape,i=a.defaultCookieJar,j=a.idGenerator,k=2,l=0,m={rfm:!0,agentVersion:a.fullVersion,noAgent:!0,noscriptIgnore:!0,logurl:c.mediaLogUrl};m=qb(m,d);var o={pageId:b.pageId,userId:b.userId,defaultParams:m,handleParsefail:function(a,b,c,d){if(e.byburt_developmentMode)throw"PARSEFAIL: "+c.sessionId+" "+a}},p=function(a){return qd("span",K,a)},q=function(){return qd("span",L)},r=function(a){return a.replace(/(['"])<\/script>(['"])/g,"$1</scr$1 + $1ipt>$2")},s=function(a){return a},t=function(b,c){return Nd.scriptTag(function(){return Nd.apiPushInvoke(a,b,"ad",function(){var a=[];return a.push(Md(c)),a})}).join("\n")},u=function(a){return(a.match(/class="at_ad"/mg)||[]).length===4&&a.match(/Annonstorget/i)},v=Od(a,o),w=function(d,i,j){try{j=qb(c.getAdConfig(j.placementName),j),i=qb(m,i);if(!j.mediaKey)throw"Must supply a media key (RFM)";if(u(d)){var o=/<div class=\"at_ad\" id=\"([a-z0-9_]+)\"(.+\n)+?.+<\/div>/gm,x=Vb(d,o,function(a,b){var c=qb(j,{placementName:b,noAfterTag:!0});return w(a,i,c)});return x}j.sessionId=j.sessionId||a.idGenerator.generateIDFromTime(),j.adId=j.adId||J+ ++l+"_"+j.sessionId;if(!md(b.userId,j.sample))return d;var y=v.adapt(d,i,j),z=[];return z.push(p(j.adId)),z.push(r(y.adaptedTag||d)),!!j.noAfterTag||!!f.crazyScriptOrder&&!j.empty?z.push(""):z.push(q()),z.push(t(i,y.config)),!j.noAfterTag&&f.crazyScriptOrder&&!j.empty&&(z=z.concat(['<script type="text/javascript">window.'+n+" = { counter: "+M+', url: "'+a.CONST.afterAdUrl+'", callback: function() { if (window.'+g+") { document.write(window."+g+"); window."+g+' = null; } document.write("<span style=\\"display:none;\\" class=\\"'+L+'\\"></span>"); } };</scr'+"ipt>",'<script type="text/javascript" src="'+a.CONST.afterAdUrl+'"></scr'+"ipt>"])),s(z.join("\n"))}catch(A){if(i.raiseErrors||e.byburt_developmentMode)throw A;try{var B={av:k+"-adapt",eu:h(id()),wn:h(j.sitename),ms:h("adapt: "+(A.message?A.message:A))};return a.get("transport",function(a){a.enqueueMessage({kind:"error",params:B,url:i.logurl})}),d}catch(C){return d}}};return w},Zd=function(a,b,c){var d=a.handler.window,e=a.handler.window.document,f=qb(a.config);c=c||{};var g=function(a){return c[a]||"absolute"},h=f.mediaLogUrl,i=function(b){a.handler.global.push({version:G,invoke:b})},j={},k=function(a,b,c){c=c||{};if(!c.empty&&!a)throw"Rich must supply a node";if(j[b])throw"Rich has already started tracking a ad for the placement: "+b;j[b]=a;var d=s(b,{wrapperNode:a});c&&(typeof c=="function"&&(c=c(a)),d=pb(d,c)),i(d)},l=function(a,b){b=b||{};var c=s(a);typeof b=="function"?b(c):c=qb(c,b),i(c)},m=function(a,b){o(null,a,qb({empty:!0},b||{}))},n=function(b,c,e,f){e=e||{},f=f||{},a.onReady(function(){var a=d.document.getElementById(b);if(a)o(a,c,e);else if(typeof f.onNotFound=="function")f.onNotFound(c,e);else{if(f.onNotFound!="empty"){if(f.onNotFound=="discard")return;throw"Rich could not find dom element with id: "+b}m(c,e)}})},o=function(a,b,c){if(!c.empty&&!a.tagName)throw"First argument must be a node";if(!b)throw"Rich you need to supply a placement name";typeof b=="function"&&(b=b(a)),k(a,b,c)},p=function(){vb(arguments,function(a){n(a,a)})},q=function(){var a=0;return function(){return a+=1,"placement_"+a}}(),r=function(a,b){var c=e.write,d=e.writeln,f=[];e.write=function(a){f.push(a)},e.writeln=function(a){f.push(a+"\n")},a(),e.write=c,e.writeln=d;var g=function(a){e.write(a)};b(g,f,f.join(""))};d.jQuery&&(d.jQuery.fn[x]=function(a){d.jQuery.each(this,function(b){o(this,a)})});var s=function(a,b){var c={type:"ad",clickEnabled:!1};return a&&(c.placementName=a,c.placementKind=g(a)),pb({},f,c,b)},t=function(c,e,f){f=f||{};var g=s(c,e);return g.sessionId=b.generateIDFromTime(),g.clickUrl=od(d,f.clickUrl||a.config.mediaLogUrl,"",{},g.sessionId,a.state.pageId,a.state.userId,a.handler.versionString,a.config),g.clickEnabled=!0,g};return{captureWrite:r,trackById:n,track:o,trackPlacements:p,trackPlacement:l,placements:j,mediaLogUrl:h,getAdConfig:s,generateAdConfig:t}};$d=function(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o;if(a.byburt_disable)return;if(a.burt_api&&a.burt_api.site&&b.networkMonitoring)return;return h=lc(a),b.cookieDomain=b.cookieDomain||uc.getTopCookieDomainFromDomain(h.browser,b.siteName,a.document.domain),b.shortName=b.shortName||b.siteName.replace(/\./g,"-"),m=wc(),g={sample:1,mediaLogUrl:"//"+b.shortName+".c.richmetrics.com/log",protocol:"http",cloudKeysByTag:!0},b=qb(g,b),j={protocol:b.protocol,sourceHost:b.sourceHost,sslSourceHost:b.sslSourceHost,cookieDomain:b.cookieDomain},i=Xd(a,j),i.registerComponent("defaultCookieJar",function(){return uc(a,{domain:b.cookieDomain})}),i.registerComponent("request",function(){return Cd(a,cb)}),i.registerComponent("random",function(){return Td(a,m)}),i.registerComponent("idGenerator",function(){return Pd(i.random)}),i.registerComponent("ready",function(){return Sd(a)}),i.registerComponent("injector",function(){return Vd(i.request)}),i.registerComponent("ready",function(){return Sd(a)}),i.registerComponent("lib",function(){return Ud(a,i.request)}),i.registerComponent("transport",function(){return Rd(a,i.request,Z,ab)}),n=new Qd(a,i.idGenerator,i.defaultCookieJar),d=i.agent,i.registerComponent("agent",function(){return Wd(i,n,i.ready,i.transport,i.request,i.random,null)}),d||i.register(i.agent.trackerInvoker),l=function(a){return i.global.push({version:G,invoke:{type:"context",callback:function(b){return b.get("ready",function(b){return b.onDomReady(a)})}}})},o=function(a,c,d){return i.global.push({version:G,invoke:qb(b,{type:"sync",syncType:a,syncConfig:c,syncCallback:d})})},k=function(d){var e,f,g,h,j;if(a.burt_api.site)return;b.networkMonitoring||(a.burt_api.site=i),e={type:"page"},e=qb(b,e,c),i.global.push({version:G,invoke:e});if(b.demographics){j=b.demographics;for(g=0,h=j.length;g<h;g++)f=j[g],o("read",{provider:f})}if(d)return ac(a,function(){return d(bc)})},f=function(c,d){return a.burt_api.push({version:G,invoke:qb(b,{type:"event",data:c,eventCallback:d})})},e=function(a,b){return a.type="conversion",f(a,b)},{handler:i,conversion:e,customEvent:f,config:b,onReady:l,sync:o,initialize:k,state:n}};_d=ac(window,function(){var b,a=window.location.hostname.split(".")[0];if(a!="www")return a;b=window.location.pathname.split("/");if(b.length>=2&&b[1]==="finn")return b[2]===""?"frontpage":b[2];if(b.length>=2)return b[1]===""?"frontpage":b[1]});ae={result:"FINNCKRESZZZ",object:"FINNCKOBJZZZ",map_object:"FINNCKMOBZZZ",image_object:"FINNCKIOBZZZ",searchpage_1:"FINNCKSP1ZZZ",searchpage_adv:"FINNCKSPAZZZ",map_search:"FINNCKMSEZZZ",searchpage_2:"FINNCKSP2ZZZ",frontpage_market:"FINNCKFPMZZZ",searchpage_resultpage_3:"FINNCKSPR3ZZ",searchpage_resultpage_2:"FINNCKSPR2ZZ",searchpage_3:"FINNCKSP3ZZZ",searchpage:"FINNCKSPZZZZ",lead_to_naringmarked:"FINNCKLTNZZZ"},be=function(a){return ae[a]?ae[a]:undefined},ce=function(a){if(!a)return!1;var b=String.prototype.split.call(a+"","/");if(b.length<3)return!1;var c={Resultatside:"result",Objektside:"object",_Kart:"map_object",Bildeside:"image_object",Soekeside_1:"searchpage_1",Avansert_soekeside:"searchpage_adv",Soekeside_2:"searchpage_2",Valg_av_land:"searchpage_1"},d=b[b.length-1];return c[d]?c[d]:!1},de=function(){if(!window.byburt_verticalSection)return!1;var a=ce(window.byburt_verticalSection);if(a)return be(a)}(),ee=$d(window,{mediaKey:"FINNEBDSCTTY",category:_d,siteName:"finn.no",cloudKeys:de?[de]:undefined});ee.initialize(function(){var d,e,f,a=Zd(ee,ee.handler.idGenerator,{Right2:"relative"}),b=Yd(ee.handler,ee.state,a,{}),c={};window.byburt_setFrameElement=function(a){a.searchNodes=[c[a.placementName].contentWindow.document.body]};d="byburt_adtech_callback",e="byburt_defer";window[e]=function(a,b){Sd(c[a.placementName].contentWindow).onDomReady(b)},window[d]=function(a){var b,c,d=a.adNodes;vb(d,function(a){var e,d=sd(a);yb(6,function(){d=window.unescape(d)});e=d.match(/AdId=(\d+).+?BnId=(\d+)/);e&&b===undefined&&c===undefined&&(c=e[1],b=e[2])}),b&&c&&(a.adTagId=c+"_"+b)};f=!1;ee.handler.trackFinnAd=function(a,g){var h={placementName:a.name||"unknown",beforeCallback:"byburt_setFrameElement",configCallback:d,deferCallback:e},i=Wc(a.doc);return i.burt_api=window.burt_api,Gc(i,"unload",function(){Cb(ee.handler.agent.ads,function(b){if(b.config.placementName==a.name&&!b.config.stopped)return b.exposed.stop(),!0})}),c[a.name]=i.frameElement,a.name=="Top"&&!f&&(f=!0,ac(window,function(){var c,d,a=window.FINN.webAds._getBanner("Top").plugin("contextData").keyvalues.split(";").map(function(a){return a.split("=")}),b=Eb(a,function(a,b){return a[b[0]]=b[1],a},{});b.kvuserid&&b.kvuserid!=="0"&&ee.handler.invoke({type:"volatileSync",mediaKey:"FINNEBDSCTTY",siteName:"finn.no",mediaLogUrl:ee.config.mediaLogUrl,syncConfig:{provider:"finn",defaultId:b.kvuserid}});c=window.FINN.webAds._getBanner("Top").plugin("contextData").segments,d=c.split("+");d=Nb(d),vb(d,function(a){ee.handler.invoke({type:"volatileSync",mediaKey:"FINNEBDSCTTY",siteName:"finn.no",mediaLogUrl:ee.config.mediaLogUrl,syncConfig:{provider:"finn_segment",defaultId:a}})})})),b(g,{},h)}})})()
};(function(e,t){"use strict";e.webAds=e.webAds||{};var n,r,i=7,s={RETRIES:5,TIMEOUT:200,MINSIZE:39,ADCONTAINER:"webAd"};r=function(n){function r(e,t){this.name=e,this.options=t!==null?t:{}}return r.prototype.remove=function(){return this.$wrapper.remove(),this},r.prototype.getUrl=function(t){var n=e.webAds.iframeUrl||"/html/banner/webad.html",r=n.indexOf("?")!==-1?"&":"?",s=t&&t.indexOf("refreshWebAd")===-1?"refreshWebAd=true&":"";return n+(r+"ver="+i+"&")+s+"#banner_"+this.name},r.prototype.makeIframe=function(){var r=n.createElement("div"),i=n.createElement("div"),s=n.createElement("iframe");i.className="webad-inner";var o=["webad","webad-"+this.name];return this.options.customClasses&&o.push(this.options.customClasses),this.options.hidden&&(o.push("webad-hidden"),r.style.display="none"),this.options.sticky&&e.webAds.getBannerFlag("disableSticky")!==!0&&o.push("webad-sticky"),r.className=o.join(" ").toLowerCase(),s.src=this.options.remoteUrl||this.getUrl(),s.scrolling="no",s.setAttribute("data-automation-id",this.name),s.className="webad-iframe",s.marginWidth=0,s.marginHeight=0,s.frameBorder="0",s.allowTransparency="true",s.width=this.options.width||100,s.height=this.options.height||100,s.style.width=(this.options.width||100)+"px",s.style.height=(this.options.height||100)+"px",s.style.border="0px",i.appendChild(s),r.appendChild(i),this.$iframe=t(s),this.$wrapper=t(r).data("webad",this.name),this},r}(document),n=function(){function n(e,t){this.params=e,this.exposeObj=t!==null?t:{},this.name=this.params.name,this.url=this.params.url,this.container=this.params.container,this.adContainer=this.params.adContainer||s.ADCONTAINER,this.minSize=this.params.minSize||s.MINSIZE,this.width=0,this.height=0,this.refreshedTimes=0,this.active=!1,this.retries=s.RETRIES,this.timer=this.params.timer||s.TIMEOUT,this.resolved=!1,this.failed=!1,this.incomplete=!1,this.resized=!1,this.notValid=!1,this.ignoreOnload=!1,this.insertCalled=!1,this.responsive=!1,this.log(1,"Banner init. (new Banner({}))")}return n.prototype.log=function(e,t){t||(t=e,e=1),this.params.log&&this.params.log(this,e,t)},n.prototype.config=function(e,t){return this.log(3,e+" updated"),e=e.split("."),e[1]&&this[e[0]]?this[e[0]][e[1]]=t:this[e]=t,this},n.prototype.isResponsive=function(e){return e=e||this.$webAd.height(),this.log(2,"checking responsive height:"+e),this.responsive=e===225,this.responsive},n.prototype.onload=function(){this.log(2,"onload triggered on iframe"),this.$webAd=this.iframe.$iframe.contents().find("#"+this.adContainer);if(this.ignoreOnload===!0)return this.resolve();if(this.params.hidden||this.params.skipSizeCheck){this.log(2,"HIDDEN ignoreSizeCheck");if(this.retries===s.RETRIES&&this.hasEmptyPixel())return this.fail("pixel");this.resolve()}else this.processSize();return e.webAds.resolveOnload(this.name),this},n.prototype.isValidSize=function(e,t){return e===null||e<=this.minSize||t===null||t<=this.minSize},n.prototype.isEmptyPixel=function(){return!!t(this).attr("src").match(/.*(1x1|3x3|1x2).*/i)},n.prototype.hasEmptyPixel=function(){return this.$webAd.find("img").filter(this.isEmptyPixel).length>0},n.prototype.processSize=function(){var e=this.params.staticAvailableWidth||this.$webAd.width(),t=this.$webAd.height();return this.log(2,"Checking if valid size: "+e+"x"+t),this.isValidSize(e,t)?this.retries===s.RETRIES&&this.hasEmptyPixel()?this.fail("pixel"):this.pollForNewSize(e,t):(this.isResponsive(t),this.resizeIfNotDefault(e,t),this.resolve(),this)},n.prototype.resolve=function(){return this.log(1," resolved as "+(this.failed?"failed":"rendered")),this.params.bodyClass&&!this.failed&&t("body").addClass(this.params.bodyClass),this.params.done&&typeof this.params.done=="function"&&this.params.done(this),this.resolved||(this.resolved=!0,this.log(2,"Calling FINN.webAds.resolve()"),e.webAds.resolve(this.name)),this.refreshCalled=!1,this},n.prototype.fail=function(e,n){this.log(1,"Failed:"+e);if(e=="timeout"&&this.iframe&&this.iframe.$iframe){var r=this.iframe.$iframe.contents().find("#webAd").html().replace(/</gm,"<").replace(/>/gmi,">");this.log(2,"html: "+r)}return!n&&this.iframe&&this.iframe.$wrapper&&this.iframe.$wrapper.addClass("webad-failed"),this.params.bodyFailClass&&t("body").addClass(this.params.bodyFailClass),this.failed=!0,this.resolve()},n.prototype.pollForNewSize=function(e,t){var n,r;return this.log(2,"pollForNewSize "+this.timer+" retries: "+this.retries),this.timer+=this.timer,this.retries-=1,n=this,this.retries>0?(r=function(){n.processSize()},setTimeout(r,this.timer)):(this.width=e,this.height=t,this.fail("timeout")),this},n.prototype.isDefaultSize=function(e,t){if(this.resized)return!1;if(this.params.width>0&&this.params.width===e&&this.params.height===t)return!0},n.prototype.resizeIfNotDefault=function(e,t){return this.width=e,this.height=t,this.responsive===!1&&!this.isDefaultSize(e,t)&&this.resize(),this},n.prototype.resize=function(e,t){typeof e!="undefined"&&(this.width=e),typeof t!="undefined"&&(this.height=t);var n=this.responsive?"100%":this.width;return this.iframe.$iframe.css({height:this.height,width:n}).attr("height",this.height).attr("width",n),this.resized=!0,this.log(1,"resized to height:"+this.height+" and width:"+this.width),this},n.prototype.expose=function(){return t.extend({},this.exposeObj,{banner:this})},n.prototype.injectScript=function(e){typeof this.params.before=="function"&&this.params.before(this),this.log(3,"injectScript"),this.doc=e;var t='<script type="text/javascript" src="'+this.url+'"></scr'+"ipt>";if(this.params.trackBurt&&window.burt_api&&window.burt_api.site&&typeof burt_api.site.trackFinnAd=="function")try{var n=t;t=burt_api.site.trackFinnAd(this,t)}catch(r){t=n}return e.write(t),this},n.prototype.refresh=function(){this.incomplete&&this.fail("Cant refresh bacause of not valid config."),this.refreshCalled=!0,this.resolved=!1,this.failed&&this.iframe&&this.iframe.$wrapper&&this.iframe.$wrapper.removeClass("webad-failed"),this.failed=!1,this.retries=s.RETRIES,this.timer=this.params.timer||s.TIMEOUT;try{var t=this.iframe.getUrl(this.doc.location.href);this.doc.location.replace(t)}catch(n){this.active&&(e.webAds.remove(this.name),e.webAds.render(this.name))}return this.refreshedTimes=this.refreshedTimes+1,this},n.prototype.remove=function(){return this.active=!1,this.resolved=!1,this.iframe.remove(),this},n.prototype.isValid=function(){return this.log(2,"Not valid if "+this.params.windowWidth+" is less than "+this.params.threshold),typeof this.params.threshold!="undefined"&&this.params.windowWidth<=this.params.threshold?!1:!0},n.prototype.getClassName=function(){return"webad-"+this.name.toLowerCase()},n.prototype.insert=function(){this.insertCalled=!0,this.log(3,"Insert()");if(!this.isValid())return this.notValid=!0,this.fail("notValid"),this;if(!this.container)return this.incomplete=!0,this.failed=!0,this.log(1,"Missing container "+this.container),this.resolve(),this;if(this.active&&this.$webAd&&t("."+this.getClassName()).length>0)return this.log(1,"iframe present in page"),this;this.incomplete=!1,this.failed=!1,this.resolved=!1,this.active=!0;var e=typeof this.container=="string"?jQuery("#"+this.container):this.container;return e.size()<=0?(this.fail("Missing valid container on "+this.name,!0),this):(this.log(3,"Creating and inserting iframe/banner"),this.iframe||(this.iframe=new r(this.name,this.params)),this.iframe.makeIframe(),e.data("webads-processed","processed"),this.iframe.$wrapper.appendTo(e),this)},n.prototype.getBannerFlag=function(t){return e.webAds.getBannerFlag(t)},n.prototype.setBannerFlag=function(t,n){return e.webAds.setBannerFlag(t,n)},n.prototype.plugin=function(t,n,r,i){var s=e.webAds.getPlugin(t);return s?(s.called[this.name]=s.called[this.name]?s.called[this.name]+1:1,s.run.apply(s,[this,n,r,i])):s},n}(),e.webAds.Banner=n,e.webAds.Iframe=r}).call(this,FINN,jQuery);var FINN=FINN||{};(function(e,t){"use strict";function n(e){e.log(2,"cb fixTopPosition");if(e.responsive===!0){e.$webAd.css({display:"block",width:"100%"}),e.iframe.$wrapper.css({width:"100%"}).find(".webad-inner").css({"margin-right":"10px"}),e.iframe.$iframe.css({height:"225px",width:"100%"}),t("#banners").css({"max-width":"100%"});return}if(e.failed===!0)return;var n=e.width,r=n<=768,i=n>=800&&n<992,s=n>992;e.params.bodyFailClass&&t("body").removeClass(e.params.bodyFailClass),r||i?e.iframe.$wrapper.css("width","980px"):s&&(e.setBannerFlag("disableSticky",!0),e.iframe.$wrapper.css("margin-left","-12px"))}function r(e){e.log(2,"cb fixLeftBanner"),!e.failed&&e.width>50&&e.iframe.$wrapper.css("left",-(e.width+12)+"px")}function i(e){e.log(2,"cb fixWallpaper");if(e.failed===!0)return;var n=e.iframe.$iframe.contents().find("img");if(n.size()>0&&n.width()!==1){var r=n.attr("src");if(r!==""&&r.indexOf("empty.gif")===-1){var i={background:' transparent url("'+r+'") 50% 0% no-repeat',"background-attachment":"fixed"};t("body").css(i).addClass("has-dominant-wallpaper")}}}function s(e){e.iframe.$wrapper.append("<button class=dismiss-sticky>X</button>"),e.iframe.$wrapper.on("click",".dismiss-sticky",function(){e.iframe.$wrapper.remove()})}function o(e){if(e.params.width){var t=typeof e.container=="string"?jQuery("#"+e.container):e.container,n=e.params.windowWidth-(e.iframe.$wrapper.position().left+t.position().left);e.params.staticAvailableWidth=n-10>e.params.width?n-10:e.params.width}}FINN.webAds=FINN.webAds||{},FINN.data=FINN.data||{},FINN.webAds.extend=function(e){typeof FINN.data.defaultConfig=="undefined"?FINN.data.defaultConfig=e:t.each(e,function(e,n){FINN.data.defaultConfig[e]=t.extend(FINN.data.defaultConfig[e]||{},n)})},FINN.webAds.extend({Top:{"extends":"normal",width:992,threshold:769,height:150,bodyFailClass:"top-position-collapsed",done:n,trackBurt:!0},Top_ipad:{"extends":"normal",width:986,height:150,bodyFailClass:"top-position-collapsed",done:n,trackBurt:!0},Left1:{"extends":"normal",width:240,threshold:1050,height:500,bodyClass:"has-dominant-campaign",done:r,trackBurt:!0},Right1:{"extends":"normal",width:240,threshold:1025,trackBurt:!0},Right2:{"extends":"normal",threshold:1025,sticky:!0,width:240,height:500,before:o,trackBurt:!0},Right3:{threshold:1025,"extends":"normal",width:240,trackBurt:!0},Middle:{"extends":"normal",width:580,height:400,threshold:291,container:"banners-middle",trackBurt:!0},Middle_ipad:{"extends":"normal",width:580,height:400,threshold:291,container:"banners-middle",trackBurt:!0},Txt1:{"extends":"normal",width:320,threshold:291,container:"banners-txt1",trackBurt:!0},Wallpaper:{"extends":"normal",hidden:!0,threshold:1050,done:i},Survey:{"extends":"normal",hidden:!0,done:t.noop},Survey_ipad:{"extends":"normal",hidden:!0,done:t.noop},Inline1:{width:320,container:"banners-inline1"},Inline2:{width:320,container:"banners-inline2"},BottomLeft:{"extends":"bottomads",trackBurt:!0},BottomLeft_ipad:{"extends":"bottomads",trackBurt:!0},BottomMiddle:{"extends":"bottomads",trackBurt:!0},BottomMiddle_ipad:{"extends":"bottomads",trackBurt:!0},BottomRight:{"extends":"bottomads",trackBurt:!0},BottomRight_ipad:{"extends":"bottomads",trackBurt:!0},BottomRight2:{"extends":"bottomads",trackBurt:!0},BottomRight2_ipad:{"extends":"bottomads",trackBurt:!0},bottomads:{container:"banners-bottom"},MobileBottom:{width:320,"extends":"normal",done:s},normal:{container:"banners"},Bildekarusell:{width:500,height:320},all:{backend:"helios"}})})(FINN,jQuery);var FINN=FINN||{};(function(e,t){function i(e,t){var r=n,i=[],s=!0,o=0,u,a=0;for(var f=e.length,l=f-1;f>0;f--,l--)u=e[l],u.width>a&&(a=u.width),s&&u.height+r+n*i.length<=t?(i.push(u),r+=u.height+n):(s=!1,o+=u.height+n);var c=n;for(f=i.length,l=f-1;f>0;f--,l--)u=i[l],u.stickyPos=c+0,c+=u.height+n;return{alwaysSticky:i.length>0&&i.length===e.length,fold:o,sticky:i,maxWidth:a}}function o(e){if(s)return!0;s=!0,t.each(e,function(){this.log("activating sticky"),this.iframe.$wrapper.addClass("webad-multiple-sticky").css({position:"fixed",top:this.stickyPos+"px","z-index":"1"})}),FINN.webAds.triggerEvent("webads-stickied",[e])}function u(e){if(!s)return!0;s=!1,t.each(e,function(){this.log("de-activating sticky"),this.iframe.$wrapper.removeClass("webad-multiple-sticky").css({position:"static",top:""})})}e.webAds=e.webAds||{};var n=10,r=15,s=!1;e.webAds.sticky=function(n,s){function p(){var e=c.scrollTop();e>=h.fold?o(h.sticky):u(h.sticky)}var a=t("#"+n);if(a.size()===0)return!1;var f=a.find(".webad");if(f.size()===0)return!1;var l=f.map(function(){return e.webAds._getBanner(t(this).data("webad"))}),c=t(window),h=i(l,c.height());if(s){var d=t(s).outerWidth()+h.maxWidth/2,v=c.width()<=d;if(v)return!1}if(h.alwaysSticky)p();else if(h.sticky.length>0){var m;p(),c.bind("scroll",function(){clearInterval(m),m=setTimeout(p,r)})}}})(FINN,jQuery);var FINN=FINN||{};(function(e,t){function u(e,n){return t(document).on(e,n)}function a(e,n){return t(document).one(e,n)}function f(){FINN.webAds.queue(FINN.data.banners),FINN.webAds.collectDataPositions(),FINN.webAds.renderAll("Top,Left1,Right2")}function l(e,n){t(document).trigger(e.toLowerCase(),n)}function g(){h={},p={},d={},v={},m={}}function y(e){return h[e]}function b(e){return p[e]||null}function w(e,t){return e?p[e]=t:null}function E(){var e=0;for(var t in h)e++;return e}function S(e,t,n){v[e]=v[e]||{};var r=t.split(".");r[1]?v[e][r[1]]=n:v[e][t]=n,h[e]&&h[e].config(t,n)}function x(e){for(var t in e)h[t]?h[t].url=e[t]:j({name:t,url:e[t]})}function T(e,n,r){var i=typeof e=="function";r=i?n:r,n=i?e:n,e=i?"/heliosAds":e||"/heliosAds",t.getJSON(e,function(e){typeof r=="undefined"&&j(e.webAds),typeof n=="function"&&n(null,e)},function(e){typeof n=="function"&&n(e,null)})}function C(e){var n=r[e.name]&&r[e.name]["extends"],i=n?r[n]:null;return t.extend({windowWidth:N?N:N=t(window).width()},s(),i,r.all,r[e.name],v[e.name],e)}function k(){var t=C(this),n=new e.webAds.Banner(t,c);return h[this.name]=n}function L(e,n,r){r=r||d,typeof n=="function"&&(r[e]&&t.isArray(r[e])?r[e].push(n):r[e]=[n])}function A(e,t,n){var r=typeof t=="function";n=r?n:t,t=r?t:n;var i=h[e];if(!!i)return!n&&i.active?(i.log(1,"banner is active"),t&&typeof t=="function"&&(i.resolved?(i.log(2,"is resolved, calling callback direct"),t(null,i)):(i.log(2,"deferring callback"),L(e,t))),i):(i.insert(),L(e,t),i);var s=new Error("Banner "+e+" not queued");t&&typeof t=="function"?t(s,null):M(e,s)}function O(e){e=e||"body",t(e).find("div[data-webad-position]").each(function(){var e=t(this);e.data("webads")&&e.data("webads")!=="lazy"&&S(e.data("webad-position"),"container",e)})}function M(e,n){m[e]&&m[e].length>0&&(t.each(m[e],function(){typeof this=="function"&&(n?this(n,null):this(null,h[e]))}),m[e]=null)}function _(e){M(e),d[e]&&d[e].length>0&&(t.each(d[e],function(){typeof this=="function"&&this(null,h[e])}),d[e]=null),l("webad-resolved-"+e,h[e]),l("webad-resolved",h[e]),D()}function D(){var e=!0,n;for(var r in h){n=h[r];if(n.resolved!==!0&&n.incomplete!==!0){e=!1;break}}if(e){var i=d.all;return d.all=null,i&&i.length>0&&t.each(i,function(){typeof this=="function"&&this(null,h)}),l("all-webads-resolved",h),s().log({name:"WEBADS"},1,"All webAds processed."),!0}return!1}function P(){var e;for(var t in h)e=h[t],e.insertCalled===!1&&e.insert()}function H(e,t){function i(){var e;r.length<=0?P():(e=r.shift(),L(e,i,m),A(e))}var n=e&&typeof e=="function";t=n?e:t,e=n?"Top":e||"Top";var r=e.split(",");t&&typeof t=="function"&&L("all",t),i()}function B(e,n){t(e).find('div[data-webads="lazy"]').attr("data-webads","true").data("webads","true"),n&&typeof n=="function"&&L("all",n),R(e,!0)}function j(e){if(!t.isArray(e))return s().log({name:"WEBADS"},2,"Queued "+e.name+"."),k.call(e);s().log({name:"WEBADS"},2,"Queued "+e.length+" positions"),t.each(e,k)}function F(e,t){var n=h[e];n&&n.notValid!==!0&&n.incomplete!==!0?(n.refresh(),t&&typeof t=="function"&&L(e,t)):(n&&n.log(1,"Banner is "+(n.notValid?" out of threshold/notvalid":" incomplete")+" and cannot be refreshed"),t&&typeof t=="function"&&t())}function I(e,n){function s(e){var n=!0;return t.each(i,function(t,r){if(r==e)return n=!1}),n}function o(){if(r.length<=0)for(var e in h)s(e)&&F(e);else{var t=r.shift();i.push(t),F(t,o)}}e=e&&typeof e=="function"?"Top":e||"Top",n=e&&typeof e=="function"?e:n;var r=e.split(","),i=[];n&&typeof n=="function"&&L("all",n),o()}function q(e){return h[e]&&h[e].remove()}function R(e,n){O(e),t(e).find("div[data-webads='true']").filter(function(){return n===!0?!0:t(this).data("webads-processed")!=="processed"}).each(function(){var e=t(this);e.data("webads-processed","processed");var r=e.data("webad-position"),i=e.attr("id");r?A(r,n):i&&U(i,n)})}function U(e,t){for(var n in h)e===h[n].container&&A(n,t)}function z(e,n){var r=e.location.hash.substring(8),i=h[r].expose();t.each(i,function(e){n[e]=this})}var n=e.data=e.data||{},r=n.defaultConfig=n.defaultConfig||{},i,s=function(){return i?i:!FINN.webAds||!FINN.webAds.logger?{log:function(){}}:(i=FINN.webAds.logger("FINN WebAds"),i)};e.webAds=e.webAds||{};var o=e.webAds;o.renderContext=R,o.queue=j,o.render=A,o.renderAll=H,o.renderLazy=B,o.expose=z,o.refresh=F,o.refreshAll=I,o.updateUrls=x,o.remove=q,o.resolve=_,o.resolveOnload=M,o.collectDataPositions=O,o.config=S,o.getFromServer=T,o.cleanUp=g,o.base="/",o.getBannerFlag=b,o.setBannerFlag=w,o._length=E,o._getBanner=y,o.defaultReady=f,o.on=u,o.one=a,o.triggerEvent=l;var c={_jQuery:jQuery,inDapIf:!0,inFIF:undefined,webAds:o,helios_parameters:"",tf_recordClickToUrl:window.tf_recordClickToUrl},h={},p={},d={},v={},m={},N})(FINN,jQuery);var FINN=FINN||{};(function(e,t){"use strict";e.webAds=e.webAds||{};var n={};e.webAds.registerPlugin=function(e,t){typeof t.init=="function"&&t.init.call(t),t.called={},n[e]=t},e.webAds.getPlugin=function(e){return n[e]&&n[e].run?n[e]:null},e.webAds.registerPlugin("survey",{run:function(e,t,n){function u(e){var t=new Date,n=new Date(t.getTime()+e*24*60*60*1e3);return n=n.toGMTString(),n}function a(e,t,n){var r=u(n);document.cookie=e+"="+t+"; expires="+r+"; domain=.finn.no; path=/"}function f(e){var t=document.cookie,n=t.indexOf(e+"=");if(n==-1)return null;n=t.indexOf("=",n)+1;var r=t.indexOf(";",n);return r==-1&&(r=t.length),unescape(t.substring(n,r))}function l(){var e=100*Math.random();return e+i>100&&!o}var r=21,i=t.percent,s=t.surveyName||"qbFINN",o=f(s);if(l()){var c=o?o+1:1;a(s,c,r),e.plugin("overlayOld",t)}}}),e.webAds.registerPlugin("contextData",{run:function(e,t){if(typeof t!="function")return FINN.data.banner;t(FINN.data.banner)}}),e.webAds.registerPlugin("getAdData",{init:function(){this.dataUrl="finn/advertising/banner/api/adinbannerdemo.json"},run:function(e,n,r){function u(t){if(typeof r=="string"){var n=e.$webAd.find("embed").first().get()[0];n||(n=e.$webAd.find("object").first().get()[0]);if(n)try{n[r](t)}catch(i){console&&console.log&&console.log(i,r,t)}}else typeof r=="function"&&r(t)}try{n=t.parseJSON(n)}catch(i){return u({error:!0,message:"first plugin argument/options hash is not valid JSON"})}var s={BANNER_ORGGROUPREF:n.customer,BANNER_AREAID:n.area,T:(new Date).getTime()},o=t.getJSON(FINN.webAds.base+this.dataUrl,s);o.success(function(e){u({list:e})}),o.error(function(){u({error:!0,message:"request to server failed"})})}}),e.webAds.registerPlugin("overlayOld",{run:function(e,t,n){var r=t.width||"80%",i=t.height||"400px";FINN.user.dialog.box({content:t.url?'<iframe style="width:'+r+";height:"+i+'" src="'+t.url+'"/>':t.content})}}),e.webAds.registerPlugin("overlay",{getOrginElement:function(n,r){var i;return typeof r=="string"?r==="self"?i=n.iframe.$wrapper:e.webAds._getBanner(r)&&(i=e.webAds._getBanner(r).iframe.$wrapper):i=t(r),i},run:function(n,r,i){function l(){t(window).off("keydown."+n.name),t("html").off("click."+n.name),r.modal&&r.modal.remove(),f.remove()}var s={width:100,height:100,modal:!1,position:"top left",positionAgainst:"self",url:"http://www.finn.no/finn/"},o="overlayad"+n.name;if(t(".webad-"+o.toLowerCase()).size()>0)return typeof i=="function"&&i(),!0;r=t.extend({},s,r);var u=r.url.indexOf("?")!=-1?"&":"?",a=r.url+u+"width="+r.width+"&height="+r.height,f=new e.webAds.Iframe(o,{remoteUrl:a,width:r.width,height:r.height});return f.makeIframe(),f.$wrapper.appendTo("body"),f.$wrapper.css({position:"absolute","z-index":"101"}).position({my:"right top",of:this.getOrginElement(n,r.positionAgainst),at:"left top",collision:"none"}),r.modal&&(r.modal=t("<div></div>").css({width:t(document).width(),height:t(document).height(),position:"absolute",top:0,left:0,background:"white",opacity:"0.5","z-index":"100"}).appendTo("body")),t(window).on("keydown."+n.name,function(e){e.which===27&&l()}),t("html").on("click."+n.name,function(e){l()}),typeof i=="function"&&i(function(){l()}),!0}})})(FINN,jQuery)