/*
 Adform.RMB.js, version 2.1.69

 Copyright Adform
 http://www.adform.com

 Date: 2015-06-18
*/
(function(a,e,c){function j(f,l){f.super_=l;o.prototype=l.prototype;f.prototype=new o;f.prototype.constructor=f}function o(){}function r(f,l){for(var k in l)l.hasOwnProperty(k)&&(f[k]=l[k]);return f}function h(f,l){return(l=l||c)&&l.getElementById&&l.getElementById(f)}function t(f,l){var k=!l?c:f.substr?h(f):f;return k?k.getElementsByTagName(l||f):[]}function u(f,l){return~(" "+f.className+" ").indexOf(" "+l+" ")}function m(f,l){u(f,l)&&(f.className=(" "+f.className+" ").replace(" "+l+" "," ").slice(1,
-1),m(f,l))}function b(f){var l=f.offsetTop,k=f.offsetLeft,b,a=n.curCSS,d="static"!=a(f,"position");l||(l=(parseFloat(a(f,"marginTop"))||0)+(d?parseFloat(a(f,"top"))||0:0));k||(k=(parseFloat(a(f,"marginLeft"))||0)+(d?parseFloat(a(f,"left"))||0:0));d&&f.getBoundingClientRect&&(b=n.offset(f,!0));!l&&b&&(l=b.top);!k&&b&&(k=b.left);return{top:l,left:k}}function d(f){var l={relativeX:f[q[0]],relativeY:f[q[1]]};if(null==f.pageX&&null!=f.clientX){var k=c.documentElement,b=c.body;l.pageX=f.clientX+(k&&k.scrollLeft||
b.scrollLeft||0);l.pageY=f.clientY+(k&&k.scrollTop||b.scrollTop||0)}else l.pageX=f.pageX,l.pageY=f.pageY;return l}function g(f,l){if(!(f=f.parentNode))return!1;var k=f.ownerDocument,b=k.body,a=n.curCSS,d;l&&(l+=1);if(e.$sf)return!0;if(n.isIE&&(8>k.documentMode||"BackCompat"==k.compatMode))return!1;for(;f&&f!=b;){if("hidden"==a(f,"overflow"))return!1;if("fixed"==a(f,"position"))break;else if(l&&(d=parseInt(a(f,"z-index"),10))&&d<l)return!1;f=f.parentNode}return!0}function p(){for(var l=0,b=[];l<A.length;l++)"complete"!=
A[l].document.readyState&&b.push(A[l]);if(!(A=b).length||3E4<(new Date).getTime()-v){J=clearInterval(J);for(l=0;l<f.length;l++)f[l]();f=[];A=[]}}function i(f,l){var k=f.x+f.width,b=f.y+f.height,a=l.x+l.width,d=l.y+l.height,J=Math.max(f.x,l.x),v=Math.max(f.y,l.y),k=Math.min(k,a)-J,b=Math.min(b,d)-v;return 0<k&&0<b?{x:J,y:v,width:k,height:b}:{x:0,y:0,width:0,height:0}}function y(f,l,k,b){var a=function(f){b&&b.apply(f,arguments)},d=t(k,"head"),d=d&&d[0];if(!d)try{throw Error("Can't find head tag.");
}catch(J){a(J)}var v=l.src||l.href,m=v.replace(/[^\da-z_-]/gi,"_"),g=k.adformId||n.gid("doc_"),s=g+"|"+m,c=Ea[s],m=n.byTag(k,f),h=0,A=m.length;k.adformId=k.adformId||g;if(c)c.loaded?a():c.callbacks.push(a);else{for(;h<A;++h)if(m[h].src==v||m[h].href==v){a();return}Ea[s]=c={doc:k,src:v,callbacks:[a]};var H=k.createElement(f),p;r(H,l);b&&(p=function(f){H.onload=H.onreadystatechange=H.onerror=null;f?Ea[s]=null:c.loaded=1;var l=c.callbacks;h=0;for(A=l.length;h<A;++h)l[h](f)},H.onload=function(){p()},
H.onreadystatechange=function(){"complete"==H.readyState&&p()},H.onerror=function(){try{throw Error("Failed to load script: "+v);}catch(f){p(f)}});setTimeout(function(){d.insertBefore(H,d.firstChild)},400)}}a.Log||(a.Log={});a.Log.pushMessage||(a.Log.pushMessage=function(){});a.Log.sendMessage||(a.Log.sendMessage=function(){});a.RMB=a.RMB||{};var x=a.RMB,n=x.lib||(x.lib={});a.lib||(a.lib=n);n.inherit=j;n.define=function(f,l,k){k&&j(f,l);k(f,f.prototype)};n.gid=function(f){var l=+new Date;return(f||
"")+(l+l*~~(Math.random()*1E4)).toString(36)};n.byId=h;n.byTag=t;n.bind=function(f,l){return function(){return l.apply(f,arguments)}};n.extend=r;n.isMouseLeave=function(f,l){if(!f||f.type!="mouseout")return true;for(var k=f.relatedTarget||f.toElement,b,a=l.length;k;){for(b=0;b<a;b++)if(l[b]==k)return false;k=k.parentNode}return true};n.singleCall=function(f){function l(){d=false;var f=b,zb=k,v=a;k=b=a=null;f&&f.apply(zb,v)}var k,b,a,d;return function(v,J){k=v;b=J;a=D.call(arguments,2);if(J&&!d)d=
setTimeout(l,f);else if(!J&&d){clearTimeout(d);d=false}}};n.onload=function(b,a){try{do{if(b[l])break;b[l]=true;if(b.document.readyState!="complete"){A.push(b);if(!J){v=(new Date).getTime();J=setInterval(p,200)}}}while(b!=b.parent&&(b=b.parent))}catch(k){}J?f.push(a):setTimeout(a,0)};n.overlap=i;n.overlapElem=function(f,l){var k=n.offset(f),b=n.offset(l);return i({x:k.left,y:k.top,width:f.offsetWidth,height:f.offsetHeight},{x:b.left,y:b.top,width:l.offsetWidth,height:l.offsetHeight})};n.hasClass=
u;n.addClass=function(f,l){if(!u(f,l))f.className=f.className+(" "+l)};n.removeClass=m;n.loadScript=function(f,l,b){y("script",{src:l,type:"text/javascript"},f,b)};n.loadCSS=function(f,l){y("link",{href:l,type:"text/css",rel:"stylesheet"},f)};n.navigator=e.navigator;n.isTMX=function(f){try{var l=f.document,b=l&&l.body;return b&&u(b,"tmx")}catch(a){}return false};n.isolate=function(f,l){var b=f.__adform_isolate;if(!b){var a=f.document,b=t(a,"head")[0],a=a.createElement("script");a.type="text/javascript";
a.text='function __adform_isolate(f){new Function("window","("+f+")(window)")(window)}';b.insertBefore(a,b.firstChild);b.removeChild(a);b=f.__adform_isolate}b?b(l):(new Function("window","("+l+")(window)"))(f)};var D=Array.prototype.slice;n.addEvent=function(f,l,b){return f[z]?f[z](l,b,false):f[X]?f[X]("on"+l,b):false};n.removeEvent=function(f,l,b){return f[G]?f[G](l,b,false):f[P]?f[P]("on"+l,b):false};var z="addEventListener",G="removeEventListener",X="attachEvent",P="detachEvent",w=/([A-Z])/g,T=
/^-?\d+(?:px)?$/i,R=/^-?\d/,a=c.defaultView;n.curCSS=a&&a.getComputedStyle?function(f,l){var b=f.ownerDocument.defaultView;if(b&&(b=b.getComputedStyle(f,null)))return b.getPropertyValue(l.replace(w,"-$1").toLowerCase())||f.style[l]}:c.documentElement.currentStyle&&function(f,l){var b,a,d,v=f.currentStyle&&f.currentStyle[l];if(!T.test(v)&&R.test(v)){b=(d=f.style).left;if(a=f.runtimeStyle&&f.runtimeStyle.left)f.runtimeStyle.left=f.currentStyle.left;d.left=l==="fontSize"?"1em":v||0;v=d.pixelLeft+"px";
d.left=b;if(a)f.runtimeStyle.left=a}return v===""?"auto":v};var N=function(){function f(){return f}var l=c.body,b=c.createElement("div"),a;a=["position:absolute;top:0;left:0;margin:0;padding:0;border:0;width:1px;height:1px;"].pop();b.innerHTML='<div style="'+a+'visibility:hidden"><div style="'+a+'border:5px solid #000"><div style="margin:0"></div></div><div style="'+a+'"><div style="'+a+'position:fixed;top:20px;"></div></div><div style="'+a+'position:relative;border:5px solid #000;overflow:hidden"><div style="margin:0"></div></div><table style="'+
a+'border:5px solid #000" cellpadding="0" cellspacing="0"><tr><td></td></tr></table></div>';l.insertBefore(b=b.firstChild,l.firstChild);a=b.childNodes;f.dnab=a[0].firstChild.offsetTop!==5;f.sfp=a[1].firstChild.offsetTop===20;f.sbfonv=a[2].firstChild.offsetTop===-5;f.dabftac=t(b,"td").offsetTop===5;l.removeChild(b);l=b=a=null;return N=f},Y=/^t(?:able|d|h)$/i;n.offsetFromWindow=function(f){var l,a,d,v;a=f&&f.ownerDocument;if(!a)return null;d=a.documentElement;if("getBoundingClientRect"in d){try{l=f.getBoundingClientRect();
v=d.getBoundingClientRect()}catch(J){}if(!l)return{top:0,left:0};if(v.left>0||v.top>0){l.top=l.top-v.top;l.left=l.left-v.left}return{top:l.top,left:l.left}}l=a.defaultView||a.parentWindow;v=a.body;if(f===a.body)return b(f);f=n.offset(f);a=l&&l.pageYOffset||d.scrollTop||v.scrollTop;d=l&&l.pageXOffset||d.scrollLeft||v.scrollLeft;f.top=f.top-a;f.left=f.left-d;return f};n.offset="getBoundingClientRect"in c.documentElement?function(f,l){var a,d=f&&f.ownerDocument;if(!d)return null;if(!l&&f===d.body)return b(f);
try{a=f.getBoundingClientRect()}catch(v){}if(!a)return{top:0,left:0};var J=d.body,d=d.documentElement;return{top:a.top+(d.scrollTop||J.scrollTop)-(d.clientTop||J.clientTop||0),left:a.left+(d.scrollLeft||J.scrollLeft)-(d.clientLeft||J.clientLeft||0)}}:function(f){var l=f&&f.ownerDocument;if(!l)return null;if(f===l.body)return b(f);var a,d=f.offsetParent,v=l.documentElement,J=l.body;a=(l=l.defaultView)?l.getComputedStyle(f,null):f.currentStyle;for(var m=f.offsetTop,g=f.offsetLeft,s=N();(f=f.parentNode)&&
f!==J&&f!==v;){if(s.sfp&&a.position==="fixed")break;a=l?l.getComputedStyle(f,null):f.currentStyle;m=m-f.scrollTop;g=g-f.scrollLeft;if(f===d){m=m+f.offsetTop;g=g+f.offsetLeft;if(s.dnab&&(!s.dabftac||!Y.test(f.nodeName))){m=m+(parseFloat(a.borderTopWidth)||0);g=g+(parseFloat(a.borderLeftWidth)||0)}d=f.offsetParent}if(s.sbfonv&&a.overflow!=="visible"){m=m+(parseFloat(a.borderTopWidth)||0);g=g+(parseFloat(a.borderLeftWidth)||0)}}if(a.position==="relative"||a.position==="static"){m=m+J.offsetTop;g=g+J.offsetLeft}if(s.sfp&&
a.position==="fixed"){m=m+Math.max(v.scrollTop,J.scrollTop);g=g+Math.max(v.scrollLeft,J.scrollLeft)}return{top:m,left:g}};n.client=function(f){var l,b,a,d,f=f.ownerDocument||f;b=f.defaultView||f.parentWindow;a=f.documentElement;d=f.body;if(b.innerWidth){f=b.innerWidth;l=b.innerHeight}else if(a){f=a.clientWidth;l=a.clientHeight;if(!f||d.clientHeight!=d.offsetHeight){f=Math.min(f||123456789,d.clientWidth||123456789);l=Math.min(l||123456789,d.clientHeight||123456789)}}else{f=d.clientWidth;l=d.clientHeight}return{left:b&&
b.pageXOffset||a&&a.scrollLeft||d&&d.scrollLeft||0,top:b&&b.pageYOffset||a&&a.scrollTop||d&&d.scrollTop||0,width:f,height:l}};n.isArray=Array.isArray||function(f){return Object.prototype.toString.call(f)=="[object Array]"};var q=[["offsetX","offsetY"],["layerX","layerY"]];n.getMousePos=function(f){for(var l;l=q.shift();)if(typeof f[l[0]]!="undefined"){q=l;break}l||(q=["x","y"]);n.getMousePos=d;return d(f)};var S=c.createElement("div");n.html=function(f,l){var b=!l&&S||l.createElement("div");b.innerHTML=
f;return b.firstChild&&b.removeChild(b.firstChild)};var a=n.navigator,O=a.vendor,a=a.userAgent,I=/Apple Computer/i.test(O),x=/Google/i.test(O),H=n.isIPad=/iPad/i.test(a),K=n.isIPhone=/iPhone/i.test(a),F=n.isIOS=H||K,E=n.isTouch="ontouchstart"in c.documentElement||"ontouchstart"in e,H=n.isOrientation="orientation"in e,K=n.isAndroid=!F&&/Android/i.test(a);n.isAndroidApp=K&&!/^(?:Opera|Mozilla)/i.test(a);var L;n.isIOSF=F&&(L=/\sos\s(\d+)_\d+/i.exec(a))&&(L=4<L[1]>>0);var B=n.isMobile=/Mobile|Mobi|Tablet|Nokia/i.test(a)||
E;L=n.isIE=/msie|Trident/i.test(a);E=n.isFF=/Firefox[\/.]+[^\s]/i.test(a);n.isMACOS=/Mac OS X/i.test(a);if(n.isWinPhone=L&&B&&/Phone/gi.test(a))if((B=/Windows Phone (OS )?(\d+[\.\d]*)/i.exec(a))&&B[2])n.winPhoneVer=parseFloat(B[2]);var B=n.isOpera=/Opera/i.test(a),C=n.isOperaMobile=/Opera\s(?!Mini)/i.test(a),W=n.isOperaMini=/Opera\sMini/i.test(a),O=n.isOperaWebKit=/OPR/i.test(a)&&/Opera Software/i.test(O),F=n.isChrome=/(Chrome|CriOS)+\/[\d\.]+\s/i.test(a)&&(F?I:x),I=n.isSafari=!/Chrome|CriOS|Skyfire/i.test(a)&&
/Safari+\/[\.\d]+$/i.test(a)&&I,x=n.isInternet=K&&!F&&H&&/Safari\/[\.\d]+$/i.test(a)&&x;n.isAfmaSDK=/afma-sdk/i.test(a);var s=L?"msie":E?"firefox":C?"operaMobile":W?"operaMini":B?"opera":O?"operaWebKit":F?"chrome":I?"safari":x?"internet":!1;n.browser=function(){return s};if(n.isIE&&("Microsoft Internet Explorer"==n.navigator.appName&&/MSIE (\d+[\.\d]*)/i.exec(a)||/rv:(\d+[\.\d]*)/i.exec(a)))n.ieVersion=parseFloat(RegExp.$1);n.testPlace=n.isIE&&8>n.ieVersion?function(){return false}:g;n.isSafari&&
(n.safariVersion=parseFloat(/Version.([\d.]+)/.exec(a)[1]));var A=[],f=[],l="__adform_onload",J,v,Ea={}})(Adform=window.Adform||{},window,document);
(function(a){function e(){var c=a.Data;if(c&&(delete a.Data,c.videoSources&&c.streamingVideo&&!(0>c.clicktags.indexOf("&detectBW=true")))){for(var j=c.videoSources,e=j[0].file.replace(/^[^:]+:\/\/[^\/]+|[^\/]+$/g,""),r={},h,t=0,u=j.length,m,b,d;t<u;t++)if(j[t]&&(m=j[t].file)&&0<=m.indexOf(e)&&(b=m.match(/([^\/]+?)(\d+)\.f[l4]v$/))){d=r[b[1]]||[];d.push(b[2]);if(!h||r[h].length<=d.length)h=b[1];r[b[1]]=d}h&&(r[h].sort(function(b,a){return b-a}),c.clicktags+="&streamBaseName="+encodeURIComponent(h)+
"&streamBitrates="+r[h].join(","))}}a.BWDetect=e;e()})(Adform=window.Adform||{},window,document);
(function(a){function e(){}a.RMB=a.RMB||{};a.RMB.EventEmitter=e;var c=Array.prototype.slice,a=e.prototype;a.emit=function(a){var e=this._events,r=!1,h=arguments;if(e&&(e=e[a]))if("function"==typeof e){switch(h.length){case 1:e.call(this);break;case 2:e.call(this,h[1]);break;case 3:e.call(this,h[1],h[2]);break;case 4:e.call(this,h[1],h[2],h[3]);break;default:e.apply(this,c.call(h,1))}r=!0}else if(e.length){for(var h=c.call(h,1),e=e.slice(),r=0,t=e.length;r<t;r++)e[r].apply(this,h);r=!0}else delete this._events[a];
return r};a.on=function(a,c){this._events||(this._events={});this.emit("newListener",a,c);var e=this._events;e[a]?"function"==typeof e[a]?e[a]=[e[a],c]:e[a].push(c):e[a]=c;return this};a.once=function(a,c){var e=c._once;e?e._times++:(e=c._once=function(){this.off(a,e);1>--e._times&&delete c._once;return c.apply(this,arguments)},e._times=1);return this.on(a,e)};a.off=function(a,c){if(!this._events||!this._events[a])return this;var e=this._events,h=e[a];if(h==c)return delete e[a],this;c&&c._once&&this.off(c._once);
if("function"==typeof h)return this;if(2>h.length&&h[0]==c)return delete e[a],this;for(var t=0,u=h.length,m=[];t<u;t++)h[t]!=c&&m.push(h[t]);m.length!=u&&(m.length?e[a]=m:delete e[a]);return this};a.clear=function(a){a?this._events&&this._events[a]&&delete this._events[a]:delete this._events;return this};a.list=function(a){this._events||(this._events={});var c=this._events;c[a]?"function"==typeof c[a]&&(c[a]=[c[a]]):c[a]=[];return c[a]}})(Adform=window.Adform||{});
(function(a,e){function c(){c.super_.call(this);this._previous={};this._attributes={};this._sets=[]}a.RMB=a.RMB||{};var j=a.RMB,o=j.lib;j.StateEmitter=c;o.inherit(c,j.EventEmitter);j=c.prototype;j.set=function(a,c){var e=this._sets,j=this._attributes;if("object"==typeof a)for(var m in a)a.hasOwnProperty(m)&&(j[m]=a[m],e.push(m));else j[a]=c,e.push(a);return this.commit()};j.get=function(a){var c=this._attributes;return a?c[a]:c};j.attr=function(a,c){return"object"==typeof a||1<arguments.length?this.set(a,
c):this.get(a)};j.previous=function(a){var c=this._previous;return a?c[a]:c};j.changes=function(a){var c=this._attributes,j=this._previous,u=this._sets;if(a)return c[a]!==j[a]?c[a]:e;for(var m={},b=0;a=u[b];b++)c[a]!==j[a]&&(m[a]=c[a]);return m};j.commit=function(){var a=this._sets;if(this._commit||!a.length)return this;this._commit=!0;for(var c=this._attributes,e=this._previous,j=!1,m=this._changes||(this._changes={}),b=0,d;d=a[b];b++)c[d]!==e[d]&&c[d]!==m[d]&&(m[d]=c[d],j=!0,this.emit("change:"+
d,c[d],e[d],d));if(j){m={};j=!1;for(d in c)c[d]!==e[d]&&(m[d]=c[d],j=!0);j&&this.emit("change",m)}this._commit=!1;a.splice(0,b);if(a.length)return this.commit();this._changes=null;for(d in c)c.hasOwnProperty(d)&&(e[d]=c[d]);return this};j.onchange=function(a,c){return c?this.on("change:"+a,c):this.on("change",a)}})(Adform=window.Adform||{});
(function(a){function e(a){h.push(this);this._doc=a;this._events={};this.dispatchHover=r.bind(this,c)}function c(){for(var a=e._hoverTarget,b=[],d=e._hoverChain,c=u+"hover-",p;a&&"undefined"!=(p=typeof a.className);)"string"==p&&0<=a.className.indexOf(c)&&b.unshift(a),a=a.parentNode;var i=Math.max(b.length,d.length),a=RegExp(c+"\\S+","g");p=[];for(i-=1;0<=i&&d[i]!=b[i];i--){if(d[i])for(var h=j(d[i].className,c,a),x=0;x<h.length;x++)h[x].call(d[i],"hoverout",d[i]);if(b[i]){h=j(b[i].className,c,a);
for(x=0;x<h.length;x++)p.push([h[x],b[i]])}}if(p.length)for(i=0;i<p.length;i++)p[i][0].call(p[i][1],"hoverin",p[i][1]);e._hoverChain=b}function j(a,b,d){a=a.match(d);d=[];if(a){a=("x|"+a.join("|")).split("|"+b).slice(1);for(b=0;b<a.length;b++)t[a[b]]&&d.push(t[a[b]])}return d}function o(a){for(var b=0;b<h.length;b++)if(h[b]._doc==a)return h[b]}a.RMB=a.RMB||{};var a=a.RMB,r=a.lib;a.DOMEvents=e;var h=[],t={},u="adform-domevents-";e.destroy=function(a){var b;if(a)(b=o(a))&&b.destroy();else for(;h.length;)h[0].destroy()};
e.on=function(a,b,d){var c=a.ownerDocument;(e.find(c)||new e(c)).on(a,b,d);return this};e.off=function(a,b,d){var c=e.find(a.ownerDocument);c&&c.off(a,b,d);return this};e.find=o;e.dispatchHover=c;e.dispatchClick=function(a,b){for(var d=u+"click-",c=[],e;a&&"undefined"!=(e=typeof a.className);)"string"==e&&0<=a.className.indexOf(d)&&c.unshift(a),a=a.parentNode;e=RegExp(d+"\\S+","g");for(var i=c.length-1;0<=i;i--)for(var h=j(c[i].className,d,e),x=0;x<h.length;x++)h[x].call(c[i],"click",c[i],b)};e._hoverChain=
[];e._hoverTarget=null;a=e.prototype;a.on=function(a,b,d){var c=d._adform_dom_key;c||(c=d._adform_dom_key=r.gid());c in t||(t[c]=d);d=u+b+"-"+c;0>a.className.indexOf(d)&&(a.className+=" "+d,this.setup(b))};a.off=function(a,b,d){if(d=d._adform_dom_key)a.className=a.className.replace(u+b+"-"+d,"")};a.destroy=function(){var a=this._events,b,d,c,p=this._doc;for(b in a)for(d in c=a[b],c)r.removeEvent(p,d,c[d]);for(a=h.length;0<a--;)if(h[a]==this){h.splice(a,1);break}a=e._hoverChain;a[0]&&a[0].ownerDocument==
p&&(e._hoverChain=[],e._hoverTarget=null);this._doc=this._events=null};a.setup=function(a){if(!this._events[a]){this._events[a]={};var b=this._doc,d=b.defaultView||b.parentWindow,c,h;"hover"==a?(b.addEventListener?(c=function(a){e._hoverTarget!=a.target&&(e._hoverTarget=a.target,e.dispatchHover())},h=function(a){e._hoverTarget!=a.relatedTarget&&(e._hoverTarget=a.relatedTarget,e.dispatchHover())}):(c=function(){d=b.defaultView||b.parentWindow;e._hoverTarget!=d.event.srcElement&&(e._hoverTarget=d.event.srcElement,
e.dispatchHover())},h=function(){d=b.defaultView||b.parentWindow;e._hoverTarget!=d.event.toElement&&(e._hoverTarget=d.event.toElement,e.dispatchHover())}),r.addEvent(b,"mouseover",this._events[a].mouseover=c),r.addEvent(b,"mouseout",this._events[a].mouseout=h),r.addEvent(b,"mousemove",this._events[a].mousemove=c),e._hoverChain=[]):"click"==a&&(c=b.addEventListener?function(a){e.dispatchClick(a.target,a)}:function(a){d=b.defaultView||b.parentWindow;a=d.event;e.dispatchClick(a.srcElement,a)},r.addEvent(b,
"mousedown",this._events[a].mousedown=c))}}})(Adform=window.Adform||{},window,document);
(function(a,e,c){function j(a,e){"string"!=typeof a&&(e=a,a="default");if(this instanceof j)this._id="adfrom-styleSheet-"+a,this._doc=e||c;else return new j(a,e)}a.RMB=a.RMB||{};a=a.RMB;a.StyleSheet=j;var o=a.lib,r,h,t,a=j.prototype;a.node=function(){var a=this._doc,c=this._id,b=o.byId(c,a);b||(b=a.createElement("style"),b.type="text/css",b.id=c,b._rules={},o.byTag(a,"head")[0].appendChild(b));if(!r&&(h=b.sheet?"sheet":"styleSheet",a=b[h]))t=a.insertRule?function(a,b,c,e){a.insertRule(b+" {"+c+"}",
e)}:function(a,b,c,e){a.addRule(b,c,e)},r=a&&a.cssRules?"cssRules":"rules";return b};a.set=function(a,c){var b=this.node(),d=b[h],e,p;try{e=b._rules,p=e[a]}catch(i){}var j=a.split(/\s*,\s*/),x,n;try{if(1<j.length)for(x=j.length-1;0<=x;--x)this.set(j[x],c);else if(p)p.style.cssText+=";"+c;else if(!d||!d[r])b.appendChild(this._doc.createTextNode(a+"{"+c+"}"));else if(c){n=d[r].length;try{t(d,a,c,n)}catch(o){setTimeout(function(){t(d,a,c,n)},0)}e&&(e[a]=d[r][n])}}catch(z){}return this};a.destroy=function(){var a=
o.byId(this._id,this._doc);a&&a.parentNode.removeChild(a);this._doc=null}})(Adform=window.Adform||{},window,document);
(function(a,e){function c(){var f=w.bind;c.super_.call(this);this.cssQueue=[];this.id=w.gid(q);this.set({showing:!1,visible:!0}).onchange("visible",G).onchange("element",G).onchange("zIndex",o).onchange(z);this._contents={};this._pos={};this.findElement=f(this,r);this.repositionPage=f(this,x);this.repositionFloated=f(this,D);this.repositionSticky=f(this,y)}function j(f){var a,b;if(a=this._hub)b=this._hubName,a.emit("element",this,b,f)}function o(f){this.style({zIndex:f})}function r(){this._findCalls||
(this._findCalls=(new Date).getTime()+c.fTimeout);var f=w.byId(this.id,this._doc),a=this.get("frame");if(f)this.handleHover=w.bind(this,h),this.handleClick=w.bind(this,t),R.on(a||f,"hover",this.handleHover),w.addEvent(f,"mousedown",this.handleClick),f.innerHTML="",this.set("element",f),this.css(""),this.style();else if(this._findCalls>(new Date).getTime())setTimeout(this.findElement,0);else throw Error("Adbox element not found");}function h(f){var a=this.hovered="hoverin"==f;this.emit("hover",a,this);
this.emit(f,a,this)}function t(f){this.emit("click",f||this._win.event)}function u(f){var a=this._doc;var b=this.get(),c=b.element;if(c)for(var b=c.className.match(RegExp(q+b.postype+"(-\\w+)?","g")),d=0;d<b.length;d++){var e=b[d];w.hasClass(c,e)&&w.removeClass(c,e)}c=f.from;a=f.type||(!c?"static":c.window==c?"fixed":c===a?"page":"floated");d=f.position||"";b=A.exec(d);d=s.exec(d);b=b?b[0]:O;d=d?d[0]:E;e=this.get();e.vpos=d;e.hpos=b;e.postype=a;e.frompos=c;this.resetPosition&&this.resetPosition();
m.apply(this,[a,e,f])}function m(f,a,c){var v=this,s=v._win,g=v._doc,A=a.element;A&&(w.addClass(A,q+f+"-"+a.vpos),w.addClass(A,q+f+"-"+a.hpos),w.addClass(A,q+f));v.positionType=f;if("static"==f)this.onchange("x",p).onchange("y",p).onchange("showing",p),this.resetPosition=function(){v.off("change:x",p).off("change:y",p).off("change:showing",p);v.resetPosition=null};else if("fixed"==f){var k=g.documentElement,h=g.body,m=!1,W=!1,j=function(){if(a.fixedBounding!==false){var f=k.clientWidth||h.clientWidth,
b=k.clientHeight||h.clientHeight,c=a.element,d=c.offsetWidth-a.x,c=c.offsetHeight-a.y;if(W!=f<d){f=(W=f<d)?0:"";v.style({left:f,marginLeft:f,marginRight:f})}if(m!=b<c){f=(m=b<c)?0:"";v.style({top:f,marginTop:f,marginBottom:f})}}};this.onchange("showing",j);w.addEvent(s,"resize",j);this.onchange(i);this.onchange("fixedBounding",function(f){if(f===false){f="";v.style({left:f,marginLeft:f,marginRight:f,top:f,marginTop:f,marginBottom:f})}else j()});Y&&(this.iOSFixed=function(){var f={},a=k.scrollLeft||
h.scrollLeft,l=k.scrollTop||h.scrollTop,b=k.clientWidth||h.clientWidth,c=k.clientHeight||h.clientHeight;if(F=="L")f.left=a+"px";if(F=="C")f.left=a+Math.round(b/2)+"px";if(F=="R")f.right=-a+"px";if(z=="T")f.top=l+"px";if(z=="M")f.top=l+Math.round(c/2)+"px";if(z=="B")f.bottom=-l+"px";v.style(f)},w.addEvent(s,"scroll",this.iOSFixed));this.resetPosition=function(){v.off("change:showing",j).off(i);j&&w.removeEvent(s,"resize",j);v.iOSFixed&&w.removeEvent(s,"scroll",v.iOSFixed);v.css("margin:0;left:auto;top:auto;");
v.resetPosition=null}}else if("sticky"==f)this.onchange(y),this.handleResize=w.bind(this,d),w.addEvent(s,"resize",this.handleResize),w.addEvent(s,"scroll",this.handleResize),w.addEvent(s,"load",this.handleResize),this.handleResize(),setTimeout(this.handleResize,50),this.resetPosition=function(){v.off(y);if(v.handleResize){w.removeEvent(s,"resize",v.handleResize);w.removeEvent(s,"scroll",v.handleResize);w.removeEvent(s,"load",v.handleResize)}};else if("page"==f){this.onchange(x);this.resizeDelay=w.singleCall(100);
this.handleResize=w.bind(this,b);w.addEvent(s,"resize",this.handleResize);w.addEvent(s,"scroll",this.handleResize);w.addEvent(s,"load",this.handleResize);this.handleResize();var K=setInterval(this.handleResize,100);setTimeout(function(){clearInterval(K)},3E3);this.resetPosition=function(){v.off(x);if(v.handleResize){w.removeEvent(s,"resize",v.handleResize);w.removeEvent(s,"scroll",v.handleResize);w.removeEvent(s,"load",v.handleResize)}clearInterval(K)}}else if("floated"==f)this.onchange(D),c.container!=
c.from?(this.resizeDelay=w.singleCall(10),this.handleResize=w.bind(this,n),w.addEvent(s,"resize",this.handleResize),this._fromInt=setInterval(this.handleResize,500),w.onload(e,this.handleResize),setTimeout(this.handleResize,50)):setTimeout(function(){D.call(v)},0),this.resetPosition=function(){v.handleResize&&w.removeEvent(s,"resize",v.handleResize);clearInterval(v._fromInt)};else if("mobile"==f){var z=a.vpos,F=a.hpos,G,r,C,o=s.innerWidth,t=s.innerHeight,u=o>=t,N=!1,f=function(){v.pos.width=v.pos.height=
0},S=function(){if(a.showing&&!N){G=A.getBoundingClientRect();o=s.innerWidth;t=s.innerHeight;if(u&&o<t||!u&&o>=t){u=o>=t;N=true;setTimeout(function(){N=false},500)}else{u=o>=t;var f=a.width,b=a.height,c=v._vp,d=v.pos||{},f=v._hp?o*parseFloat(f)/100:f,b=c?t*parseFloat(b)/100:b;r=(parseFloat(d.left)||0)-G.left;C=(parseFloat(d.top)||0)-G.top;var J,e;F==I?J=Math.round(r+(o-f)/2):F==O?J=Math.floor(r):F==H&&(J=Math.ceil(r+(o-f)));z==L?e=Math.round(C+(t-b)/2):z==E?e=Math.floor(C):z==B&&(e=Math.ceil(C+(t-
b)));v.setPosition(e,J,0,0,0,0,f,b)}}},P=setInterval(S,100);w.addEvent(s,"resize",S);w.addEvent(s,"scroll",S);v.onchange("showing",S).onchange("width",f).onchange("height",f);S();this.resetPosition=function(){w.removeEvent(s,"resize",S);w.removeEvent(s,"scroll",S);v.resetPosition=null;clearInterval(P)}}}function b(){this.repositionPage({showing:1})}function d(){this.repositionSticky({showing:1})}function g(f){var a=f.defaultView||f.parentWindow;a.self||(a=e);var b=f.documentElement||f.body;this._doc=
f;this._win=a;this.sheet=T("adbox",f);if(!a.__adform_adbox_init){var c=T("adbox-static",f);c.set("."+q+"hidden","visibility:hidden").set("."+q+"mobile","position:absolute").set("."+q+"static","position:relative").set("."+q+"static-L","margin:0 auto 0 0").set("."+q+"static-C","margin:0 auto").set("."+q+"static-R","margin:0 0 0 auto").set("."+q+"static-I","display:inline-block;*display:inline;zoom:1").set("."+q+"floated","position:absolute;display:block!important").set("."+q+"page,."+q+"fixed,."+q+
"sticky","position:fixed;display:block!important").set("."+q+"page-L,."+q+"fixed-L","left:0").set("."+q+"page-C,."+q+"fixed-C","left:50%").set("."+q+"page-R,."+q+"fixed-R","right:0").set("."+q+"page-T,."+q+"fixed-T","top:0").set("."+q+"page-M,."+q+"fixed-M","top:50%").set("."+q+"page-B,."+q+"fixed-B","bottom:0").set("."+q+"overlay","position:fixed;right:0;bottom:0;width:300%;height:300%").set("."+q+"overlay iframe","display:none;position:absolute;top:0;right:0;width:100%;height:100%").set("* html ."+
q+"page,* html ."+q+"fixed","position:absolute").set("* html ."+q+"fixed-L","left:expression(eval(__adform_adbox_fixedLeft(this)))").set("* html ."+q+"fixed-C","left:expression(eval(__adform_adbox_fixedCenter(this)))").set("* html ."+q+"fixed-R","left:expression(eval(__adform_adbox_fixedRight(this)))").set("* html ."+q+"fixed-T","top:expression(eval(__adform_adbox_fixedTop(this)))").set("* html ."+q+"fixed-M","top:expression(eval(__adform_adbox_fixedMiddle(this)))").set("* html ."+q+"fixed-B","top:expression(eval(__adform_adbox_fixedBottom(this)))").set("* html ."+
q+"overlay","position:absolute;top:expression(eval(__adform_adbox_fixedTop(this)));left:expression(eval(__adform_adbox_fixedLeft(this)));width:100%;height:100%");N&&"BackCompat"==f.compatMode&&c.set("."+q+"page","position:absolute");a.__adform_adbox_fixedLeft=function(){return b.scrollLeft};a.__adform_adbox_fixedCenter=function(){return b.scrollLeft+Math.round(b.clientWidth/2)};a.__adform_adbox_fixedRight=function(f){return b.scrollLeft+b.clientWidth-f.offsetWidth};a.__adform_adbox_fixedTop=function(){return b.scrollTop};
a.__adform_adbox_fixedMiddle=function(){return b.scrollTop+Math.round(b.clientHeight/2)};a.__adform_adbox_fixedBottom=function(f){return b.scrollTop+b.clientHeight-f.offsetHeight};a.__adform_adbox_init=0}a.__adform_adbox_init++}function p(){var f=this.get();f.showing&&this.style({left:f.x+"px",top:f.y+"px"})}function i(f){var a=this.get();if(a.showing&&(!f||"x"in f||"y"in f||"width"in f||"height"in f||"showing"in f)){var f=a.vpos,b=a.width,c=a.height,d="",e=a.y,s=a.x;a.hpos==I&&(this._hp?d+="left:"+
(50-parseFloat(b)/2)+"%;":s-=b/2);f==L&&(this._vp?d+="top:"+(50-parseFloat(c)/2)+"%;":e-=c/2);this.css(d+"margin:"+e+"px "+-s+"px "+-e+"px "+s+"px")}}function y(f){var a=this.get();if(a.showing&&(!f||"x"in f||"y"in f||"width"in f||"height"in f||"showing"in f||"stickyOffset"in f)){var b=this._win,c=this._doc,d=a.element,e=this.from(),s=w.offsetFromWindow(e),f=a.stickyOffset||0;!0===f&&(s.top=w.offset(e).top,f=s.top);var k=this._hp,g=this._vp,A=a.x,n=a.y,h=k?d.offsetWidth:a.width||0,m=g?d.offsetHeight:
a.height||0,d=s.left,W=s.top,s=e.offsetWidth,e=e.offsetHeight,p=b.innerWidth||c.body.clientWidth,j=b.innerHeight||c.body.clientHeight,z=a.vpos,i=a.hpos,b=i==S,c=i==I,q=i==H,i=i==K,x=z==F,y=z==L,G=z==B,z=z==C;k&&(h=p*parseFloat(a.width)/100,this.style({width:h+"px"}));g&&(m=j*parseFloat(a.height)/100,this.style({height:m+"px"}));a=n+W+(x?-m:y?(e-m)/2:G?e-m:z?e:0);this.setPosition(a>f?a:f,A+d+(b?-h:c?(s-h)/2:q?s-h:i?s:0),0,0)}}function x(f){var a=this.get();if(a.showing&&(!f||"x"in f||"y"in f||"width"in
f||"height"in f||"showing"in f)){var b=this._win,c=a.vpos,d=a.hpos,e=a.x,s=a.y,k=a.element,g=this._hp,f=g?k.offsetWidth:a.width,k=this._vp?k.offsetHeight:a.height,A=d==S,h=d==I,n=d==H,m=d==K,W=c==F,p=c==L,z=c==B,j=c==C;if(this._absolute||"absolute"==w.curCSS(a.element,"position"))this._absolute||(w.removeEvent(b,"resize",this.handleResize),w.removeEvent(b,"scroll",this.handleResize)),this._absolute=!0,s=Math.round(c==L?-(k/2):0)+s,a=Math.round(d==I?-(f/2):0)+e,this.setPosition(null,null,z?0:s,n?0:
a,z?-s:0,n?-a:0);else{var d=this._doc,b=d.documentElement,i=d.body;Math.max(b&&b.clientWidth||0,i&&i.clientWidth||0);var d=b&&b.clientHeight||i&&i.clientHeight,c=Math.max(b&&b.scrollWidth||0,i&&i.scrollWidth||0),q=Math.max(b&&b.scrollLeft||0,i&&i.scrollLeft||0),b=Math.max(b&&b.scrollTop||0,i&&i.scrollTop||0);g&&this.style({width:(f=Math.round(c*parseFloat(a.width)/100))+"px"});a=-q+(A?-f:h?(c-f)/2:n?c-f:m?c:0)+e;s=-b+(W?-k:p?(d-k)/2:z?d-k:j?d:0)+s;e=this._pp||(this._pp={t:0,l:0});(e.t>-k&&e.l>-f||
s>-k&&a>-f)&&this.setPosition(s,a,0,0);e.t=s;e.l=a}}}function n(){if(this.get().showing){var f=this.from();if(f){var a=w.offset(f);a.w=f.offsetWidth;a.h=f.offsetHeight;f=this._lastFromPos;if(!f||f.left!=a.left||f.top!=a.top||f.w!=a.w||f.h!=a.h)this._lastFromPos=a,D.call(this)}}}function D(a){if(!a||"x"in a||"y"in a||"width"in a||"height"in a||"showing"in a){var b=this.get();if(b.showing){var c=this.from();if(c){var d=b.vpos,a=b.hpos,s={},e=this._hp,g=this._vp;e&&(s.width=Math.round(c.offsetWidth*
parseFloat(b.width)/100)+"px");g&&(s.height=Math.round(c.offsetHeight*parseFloat(b.height)/100)+"px");(e||g)&&this.style(s);var k=b.element,s=b.x,A=b.y,e=e?k.offsetWidth:b.width,g=g?k.offsetHeight:b.height,k=w.offset(c),b=b.element.parentNode;"static"!=w.curCSS(b,"position")&&(b=w.offset(b),k.top-=b.top,k.left-=b.left);var b=c.offsetWidth,c=c.offsetHeight,h=a==I,n=a==H,m=a==K,i=d==L,W=d==B,z=d==C,b=k.left+(a==S?-e:h?b/2:n?b-e:m?b:0),k=k.top+(d==F?-g:i?c/2:W?c-g:z?c:0),d=Math.round(d==L?-(g/2):0)+
A,a=Math.round(a==I?-(e/2):0)+s;this.setPosition(k,b,d,a)}}else this.setPosition(-3E3,-3E3,0,0)}}function z(a){if(("width"in a||"height"in a)&&"mobile"!=this.positionType){var b=this.get(),a=b.width,b=b.height,c=this._hp="string"==typeof a&&0<a.indexOf("%"),d=this._vp="string"==typeof b&&0<b.indexOf("%");this.style({width:"auto"===a?a:c?a:a+"px",height:"auto"===b?b:d?b:b+"px"})}}function G(){var a=this.get(),b=a.visible,c=this,d=a.element;if(d){var e=this._visibilityTimer;e&&(e=clearTimeout(e));var s=
function(){c._visibilityTimer=!1;var a=d.className,f=~a.indexOf(" adform-adbox-hidden");f&&b?d.className=a.replace(" adform-adbox-hidden",""):!f&&!b&&(d.className=a+" adform-adbox-hidden")};d.addEventListener?N?s():e=setTimeout(s,b?10:100):s();this._visibilityTimer=e}this.set("showing",b&&!!a.element)}function X(a){this.emit("content:"+(a?"show":"hide"),this.get("element"),this);this.emit(a?"show":"hide")}a.RMB=a.RMB||{};var P=a.RMB,w=P.lib,T=P.StyleSheet,R=P.DOMEvents,N=w.isIOS,Y=N&&!w.isIOSF,q=
"adform-adbox-",S="K",O="L",I="C",H="R",K="E",F="Y",E="T",L="M",B="B",C="N",W=[S,O,I,H,K,"I"],s=RegExp([F,E,L,B,C].join("|")),A=RegExp(W.join("|"));P.AdBox=c;c.LEFT_OUT=S;c.LEFT=O;c.CENTER=I;c.RIGHT=H;c.RIGHT_OUT=K;c.TOP_OUT=F;c.TOP=E;c.MIDDLE=L;c.BOTTOM=B;c.BOTTOM_OUT=C;c.INLINE="I";c.CLASS="adform-adbox";c.PREFIX=q;c.hPosRegExp=A;c.vPosRegExp=s;c.fTimeout=1E4;w.inherit(c,P.StateEmitter);c.toCustom=function(a,b,c){var d=A.exec(c),c=s.exec(c),d=d?d[0]:O,c=c?c[0]:E,e=b.width,g=b.height,h=a.width,a=
a.height,k=d==I,n=d==H,m=d==K,i=c==L,W=c==B,z=c==C;return{x:(d==S?-e:k?(h-e)/2:n?h-e:m?h:0)+b.x,y:(c==F?-g:i?(a-g)/2:W?a-g:z?a:0)+b.y}};P=c.prototype;P.css=function(a,b){if(this.sheet){if(this.cssQueue){var c=this.cssQueue,d=0,e=c.length;for(this.cssQueue=null;d<e;d+=2)this.css(c[d],c[d+1])}this.sheet.set("#"+this.id+(b?" "+a:""),b||a)}else this.cssQueue.push(a,b);return this};P.content=function(a,b,c){if(this._contents)return!c&&"string"==typeof b&&(c=b,b=!1),c=c||"main",a&&(this._contents[c]=a,
a.bind(this),b&&(a=a.data,this.set({width:a.width,height:a.height}))),this._contents[c]};P.setPosition=function(a,b,c,d,e,s,g,k){if(this.get("element")){var a={top:a,left:b,marginTop:c,marginRight:s,marginBottom:e,marginLeft:d,width:g,height:k},b=this.pos||{},c=!1,d={},A;for(A in a)a[A]!=b[A]&&(c=!0,d[A]=a[A]+"px");c&&(this.pos=a,this.style(d))}};P.from=function(){var a=this.get("frompos");if("string"==typeof a&&(a=w.byId(a,this._doc))){if("OBJECT"==a.nodeName&&30>a.offsetHeight){var b=w.byTag(a,
"embed")[0];b&&20<b.offsetHeight&&(a=b)}this.set("frompos",a)}return!a||a.attr&&!(a=a.get("element"))?void 0:a};P.style=function(a){var b=this.get("element");b?(this._styles&&(w.extend(b.style,this._styles),this._styles=null),a&&w.extend(b.style,a)):this._styles=w.extend(this._styles||{},a);return this};P.reset=u;P.destroy=function(){var a=this.get("element"),b=this.get("frame");if(a){this.emit("content:destroy",a,this);this.clear();this._contents=null;var c=this._win,d=this._doc;R.off(b||a,"hover",
this.handleHover);w.removeEvent(a,"mousedown",this.handleClick);this.resetPosition&&this.resetPosition();var e,s;(e=this.handleResize)&&w.removeEvent(c,"resize",e);(s=this._fromInt)&&clearInterval(s);--c.__adform_adbox_init||(T("adbox-static",d).destroy(),this.sheet.destroy(),c.__adform_adbox_fixedLeft=c.__adform_adbox_fixedCenter=c.__adform_adbox_fixedRight=c.__adform_adbox_fixedTop=c.__adform_adbox_fixedMiddle=c.__adform_adbox_fixedBottom=null);this.sheet=null;this._changes={};this._previous={};
this._attributes={};a.parentNode&&a.parentNode.removeChild(a)}};P.draw=function(a,b){var c,d,e,b=b||{};if(c=this._hub)d=this._hubName,c.emit("draw",this,d,b);this.set("frame",b.frame);c=b.container;d=b.before;e=b.from;a=c&&c.ownerDocument||d&&d.ownerDocument||e&&(e.ownerDocument||e._doc||(e.defaultView||e.parentWindow||e).document)||a;g.call(this,a);u.call(this,b);c=b;d=c.from;e=c.container;var s=c.before,A=this.get(),k=A.postype,h=this._doc,k='<div id="'+this.id+'" class="adform-adbox '+(A.visible?
"":q+"hidden ")+q+k+" "+q+k+"-"+A.vpos+" "+q+k+"-"+A.hpos+'">AdBox</div>';if(!d&&!s&&!e)h.write(k);else{try{h.body||h.write("<html><body></body></html>")}catch(n){}if(h.body.insertAdjacentHTML&&w.isIE){var H="afterBegin";d?(e||(e=h.body),"end"==s&&(H="beforeEnd")):s&&(H="beforeBegin",e=s);try{e.insertAdjacentHTML(H,k)}catch(m){h.write(k)}}else d?(e||(e=h.body),s=null):s&&(e=s.parentNode),e.insertBefore(w.html(k,h),s||e.firstChild)}this.set({x:c.x||A.x||0,y:c.y||A.y||0});this.onchange("showing",X);
this.findElement();return this};P.pull=function(a,b){var c=this.get();if(a in c)b.call(this,c[a]);else this.once("change:"+a,b);return this};P.publish=function(a,b){this._hubName=a;this._hub=b;this.pull("element",j);return this}})(Adform=window.Adform||{},window,document);
(function(a){function e(a){var c=b.length,e=r&&d||h&&g;if(e)for(;c--;)e[c]&&a.hasOwnProperty(b[c])&&(m[e[c]]=a[b[c]])}function c(){o("expanded")}function j(){o("collapsed")}function o(a){u.emit(a)}if(!a.IframeApiWrapper){var r,h,t,u=new a.RMB.EventEmitter,m={},b="width,height,top,right,bottom,left,pushdown".split(","),d="width,height,offsetTop,offsetRight,offsetBottom,offsetLeft".split(","),g="width,height,t,r,b,l,push".split(","),p={over:!1,pushdown:!1},i;u.support=p;u.init=function(a){var b=a.inDapMgrIf||
a.inDapIF||a.inFIF;h=a.$sf&&a.$sf.ext;t=a.CreativeToolset&&new a.CreativeToolset;if(!h&&!t&&b)try{r=a.$WLXRmAd||a.parent.$WLXRmAd}catch(c){}u.msAPI=r;u.sfAPI=h;u.ctAPI=t;u.hasAPI=!(!r&&!h&&!t);r||t?(p.over=!0,p.pushdown=!1):h&&(a=h.supports(),p.over=!0===a["exp-ovr"]||"1"===a["exp-ovr"],p.pushdown=!0===a["exp-push"]||"1"===a["exp-push"])};u.register=function(a){e(a);r?r.init(m):h&&h.register(a.width,a.height,o)};u.update=function(a){e(a);t&&!i&&(i=setTimeout(function(){t.enableExpansion({width:a.width+
a.left+a.right,height:a.height+a.top+a.bottom,expansionMode:0,collapseCallback:j,expansionCallback:c})},100))};u.expand=function(a){if(a)u.once("expanded",a);t?t.expandWindow():r?(r.expand(),c()):h&&h.expand(m)};u.collapse=function(a){if(a)u.once("collapsed",a);t?t.collapseWindow():r?(r.collapse(),j()):h.collapse()};a.IframeApiWrapper=u}})(Adform=window.Adform||{});
(function(a,e,c){function j(a,b){for(var c in b)b.hasOwnProperty(c)&&("object"==typeof b[c]?("object"!=typeof a[c]&&(a[c]={}),j(a[c],b[c])):a[c]=b[c])}function o(a){var b=a.options,c=b.socializeURL;if(c){var c={linkBack:c,css:b.css,position:"BL"},b=b.type,f=b!=z&&a.expFlash||a.flash,d=b!=z&&a.expHtml||a.html,e=a.expImage||f==a.flash&&a.image,g=a.video;f&&(f.social=p.extend({width:(b==z?a.expFlash:f).width},c));e&&(e.social=p.extend({width:e.width},c));d&&(d.social=p.extend({width:d.ewidth},c));g&&
(g.social=p.extend({width:g.width},c),g.social.position="TL"==g.closeButtonAlign?"TLV":"TL")}}function r(a,b){switch(a.type){case y:case z:b.closeButtonAlign={BR:"TL",TR:"BL",BL:"TR",TL:"BR"}[a.expPosition]||b.closeButtonAlign;"TR"==b.closeButtonAlign&&b.adNotice&&(b.closeButtonAlign="TL");break;case x:b.closeButtonAlign="TL"==a.position?"BR":"BL";break;case n:b.closeButtonAlign=b.adNotice?"TL":"TR"}}function h(){var b=a.ADFBannerUtils;if(b&&b.getInstance)return b.getInstance()}function t(){return{title:R,
linkText:q,text:N,link:Y}}function u(a,b){return a&&~a.indexOf(B)&&a.match(C)[1]||b&&b[L]||0}function m(a){if("string"!=typeof a)return a||{};for(var c={},a=a.split("&"),d=0,f=a.length,e;d<f;d++)e=a[d].split("="),c[e.shift()]=b(e.join("="));return c}function b(a){if(!a)return a;a=decodeURIComponent(a);0<=a.indexOf("&")||!a.indexOf("http")?a=encodeURIComponent(a):0<=a.indexOf(";CREFURL=")&&(a=a.split(";CREFURL="),a=a.concat(a.pop().split(";C=")),a=a[0]+";CREFURL="+encodeURIComponent(a[1])+(a[2]?";C="+
a[2]:""));return a}a.RMB=a.RMB||{};var d=a.RMB,g=d.DataParser||(d.DataParser={}),p=d.lib,i=d.EventEmitter,y=g.EXPANDING="expanding",x=g.TEARBACK="tearback",n=g.FLOATING="floating",D=g.STANDARD="standard",z=g.SINGLE_EXPANDING="singleExpanding",G=g.INTERSTITIAL="interstitial",X=g.SLIDER="slider",P=/;obaId=([^;]+)/,w=/\.js(\?|$)/i,T=/\.swf(\?|$)/i,R="Adform.com",N="Would you like to know more about why you are seeing this ad?",Y="http://site.adform.com/privacy/adchoices/",q="Read more";g.getData=function(){var d=
a.RMBData;a.BannerList&&a.BannerList.length&&(d=a.BannerList.shift());if(d){var s=d,g=p.extend({},O),f=p.extend({},O),l=p.extend({},I),j=p.extend({},I),v=p.extend({},H),q=p.extend({},K),E=p.extend({},K),B={},k=p.extend({},F),L;try{L=e.MESSENGER||-1<location.host.toLowerCase().indexOf("rad.msn.com")}catch(C){}k.messenger=L;k.iframeManager=a.ADF_STUB;k.iab=e.inDapMgrIf||e.inDapIF||e.inFIF;var N=a.IframeApiWrapper;N.init(e);k.iframeAPI=N;var Y=!s.flashvars;k.backCompat=!Y;var R=s.clicktags=m(s.clicktags),
ba=R.backupClickUrl,Bb=[0,"MC","TC","TL","TR","BL","BR","ML","MR","BC"],la,ca,ga;for(ga in s){var Q=S[ga]||ga,M=s[ga],Fa;switch(Q){case "bsrc":!v.poster&&(v.poster=M);case "src":var ra=u(M,R);la=M.match(T)?g:M.match(w)?q:l;la.src=M;la.assetId=ra;!v.assetId&&(v.assetId=ra);break;case "besrc":v.poster=M;case "esrc":ra=u(M,R);la=M.match(T)?f:M.match(w)?E:j;la.src=M;(la.assetId=ra)&&(v.assetId=ra);break;case "width":case "height":g[Q]=l[Q]=B[Q]=q[Q]=M>>0;!v[Q]&&(v[Q]=M>>0);break;case "ewidth":case "eheight":Q=
Q.slice(1);f[Q]=j[Q]=v[Q]=E[Q]=M>>0;break;case "wmode":L&&"window"==M&&(M="opaque");case "version":case "quality":g[Q]=f[Q]=q[Q]=E[Q]=M;break;case "flashvars":ca=g[Q]=f[Q]=q[Q]=E[Q]=M;break;case "link":ba=Y?b(encodeURIComponent(M)):M;break;case "css":Fa=M.split("/assets/css/"),k.scriptsBase=a.scriptBase||Fa[0]+"/",M=k.scriptsBase+"assets/css/"+Fa[1];case "sources":k[Q]=v[Q]=M;break;case "ADFPoliteSrc":B.src=M;B.assetId=u(M,R);break;case "showType":k[Q]=0==M?1:2==M?2:0;break;case "hideType":k[Q]=1==
M?0:1;break;case "floatPosition":k[Q]=Bb[M];break;case "behavior":k[Q]={"0":"default",1:"pushdown",2:"sidekick",3:"floating",takeOver:"takeover",4:"slider"}[M];break;case "zIndex":var $a=parseInt(M,10);k[Q]=isNaN($a)?k.zIndex:$a;break;default:k[Q]=M}}var Db=k.bn=R.bn,Cb=k.userParams=k.userParams||{},ha=h(),U=ha&&ha.banners&&ha.banners[k.xId];if(U){var ab=U.compoundSeqNo;ab&&(k.seqNo=ca.seqNo=ab);!1===U.stubFileExists&&(k.forceBackup=!0);U.cookieID&&(ca.icid=U.cookieID);var bb=ha.getPropByBn&&ha.getPropByBn("animURL",
Db);bb&&(Cb.animURL=bb);var cb=ha.getRotSeed&&ha.getRotSeed().id;cb&&(ca.hash=cb);var db=U.rotseqno;db&&(ca.rotseqno=db);var eb=U.smid;eb&&(ca.smid=eb);var fb=U.timeDiff;fb&&(ca.timeDiff=fb);if(!N.ctAPI&&U.isDSPTag&&e!=e.parent)try{e.parent.document.getElementById,e.inFIF=k.iab=!0}catch(Sb){a.ADFIframe=1}var gb=U.unloadScriptVersion;gb&&(k.unloadVersion="v"+gb);if(U.sendUnloadData||U.publisherUnloadData)k.sendUnload=!0}"takeover"==k.behavior&&(k.autoShow=0.01,k.autoHide=8);L&&(k.showDelay=Math.max(k.showDelay,
0.5),k.restartAnimation=1);N.msAPI&&!k.showType&&(k.showType=1);ca.wmode=g.wmode;var hb=e.ADFDomainCDN;hb&&(ca.hvfdomain=hb);var fa=k.type;fa==y&&"slider"==k.behavior&&(fa=k.type=X);if(fa==n||fa==G)ba=R.clickTAG;if(ba){if(Y)for(var ib,Z=3;Z--&&(2>(ib=ba.indexOf("://"))||8<ib);)try{ba=decodeURIComponent(ba)}catch(Tb){Z=0}q.link=E.link=l.link=j.link=v.link=B.link=ba}fa==x&&(k.behavior=x);var ya=t(),Ga;if(a.ADFIframe)Ga=location.search;else{for(var Eb=RegExp("[?;]bn="+k.bn+"\\b"),jb=k.seqNo&&RegExp("[?;]compoundSeqNo="+
k.seqNo+"\\b|[?;]singleTag=1\\b|"),sa,Ha=p.byTag(c,"script"),Ia=Ha.length;Ia--;){var za=Ha[Ia].src;if(za&&0<za.indexOf("adfscript")&&za.match(Eb)&&(!jb||za.match(jb))){sa=Ha[Ia];break}}for(var ta=sa,kb=c.body;ta&&ta!=kb;)ta=ta.parentNode;ta==kb&&(k.$tag=sa);Ga=sa&&sa.src}var lb=Ga,Ja=lb&&lb.match(P);Ja&&Ja[1]&&(k.obaId=Ja[1],k.adNotice=1,ya.link="http://site.adform.com/privacy/adchoices/");a.ADFIframe&&(k.$tag=c.body.getElementsByTagName("*")[0]);if(U&&U.adNotice||k.adNotice)U&&U.OBAUrl&&(ya.link=
U.OBAUrl),q.adNotice=g.adNotice=l.adNotice=ya,fa!=y&&(v.adNotice=ya),k.adNotice=1;if(fa==n&&(k.restartAnimation=1,U)){U.floatFrom&&(k.position=U.floatPosition>>0,k.floatFrom=U.floatFrom);var mb=parseInt(U.showFloat,10);k.showFloat=isNaN(mb)||1<=mb?1:0}fa==z&&(f.src=g.src,E.src=q.src,"sidekick"!=k.behavior&&(k.sideKickAnim=1),!k.sideKickAnim&&(ca.useAsMask=!1));var ia=q.flashvars,nb=e.ADFDynamicDomain;ia.staticDomain=ia.domain;e.ADFDomain&&nb&&(ia.domain=encodeURIComponent(nb));var Ka={};for(ga in ia){M=
ia[ga];try{M=decodeURIComponent(M)}catch(Ub){}Ka[ga]=M}var ja=s.videoSources,La=[],ob=ja,Fb=decodeURIComponent(ia.staticDomain),Gb=decodeURIComponent(ia.hvfdomain),pb;for(pb in ob){var ma=ob[pb];ma&&ma.file&&!~ma.file.indexOf("://")&&(ma.file=("true"==ma.isStreaming+""&&Gb||Fb)+ma.file)}if(ja){var qb=ja,Ma,Na,Oa,Aa,Ba,ea,Pa,na,Qa,Ra,rb,sb,tb;Ma=[];Na=a.ENV&&a.ENV.akamaiHost;sb=/avc1\.(..)(..)(..)/;tb=/mp4a\.40\.(?:2|5)/;for(Oa=qb.length;Oa--;)if(Aa=qb[Oa])if(Ba=Aa.codecs,ea=Aa.file,Ba&&ea&&(ea.indexOf(Na)||
!~ea.indexOf("/master.m3u8")))Qa=(na=Ba.match(sb))&&na[1].toLowerCase(),Ra=na&&parseInt(na[3],16),na="42"===Qa&&30>=Ra||"4d"===Qa&&31>=Ra,rb=Ba.match(tb),na&&rb&&(Pa=ea.indexOf("/Stream/"),~Pa&&(ea=ea.substr(Pa,ea.length-1),Ma.unshift({file:Na+ea+"/master.m3u8",mime:"application/x-mpegURL",codecs:Aa.codecs})));for(var ja=Ma.concat(ja),Z=0,ub,Hb=ja.length;Z<Hb;Z++)(ub=ja[Z])&&La.push(ub);La.length&&(Ka.videoSources=v.sources=La)}q.flashvars=E.flashvars=Ka;var ua=k.AdformBgImage&&k,vb=h(),wb=vb&&vb.banners,
xb;for(xb in wb){var Sa=wb[xb];if(Sa.bn==k.bn&&Sa.AdformBgImage){ua=Sa;break}}if(ua){var Ta='url("'+ua.AdformBgImage+'")',yb={Color:"",Repeat:"",Scroll:"",HorizontalPosition:"center",VerticalPosition:"top"},Ua;for(Ua in yb)Ta+=" "+(ua["AdformBg"+Ua]||yb[Ua]);k.wallpaper={link:ua.AdformBgLink,background:Ta}}var oa=k.position,Va=k.expPosition;switch(k.type){case D:var Wa={left:"L",center:"C",right:"R"};k.position=Wa[oa]||(k.backCompat?"I":"C");break;case G:k.fixed=1;var va=(k.y?"T":"M")+(k.x?"L":"C");
k.position=va;k.x>>=0;k.y>>=0;break;case n:var Xa=k.floatFrom,Ib={1:"M",2:"T",3:"T",4:"T",5:"B",6:"B",7:"M",8:"M",9:"B"},Jb={1:"C",2:"C",3:"L",4:"R",5:"L",6:"R",7:"L",8:"R",9:"C"},Kb={1:"M",2:"Y",3:"Y",4:"Y",5:"N",6:"N",7:"M",8:"M",9:"N"},Lb={1:"C",2:"C",3:"K",4:"E",5:"K",6:"E",7:"K",8:"E",9:"C"},Mb=Xa?Kb:Ib,Nb=Xa?Lb:Jb;k.x>>=0;k.y>>=0;if(!Xa&&(0>k.x&&(k.x=0),0>k.y))k.y=0;var Ob=Mb[oa]||"M",Pb=Nb[oa]||"C",va=(k.y?"T":Ob)+(k.x?"L":Pb);k.position=va;break;case y:case z:Wa={left:"L",center:"C",right:"R"};
k.position=k.colPosition=Wa[oa]||oa;k.expPosition={custom:"TL","left-up":"BR",takeOver:"BR",left:"TR","left-down":"TR",up:"BL","right-up":"BL",down:"TL",right:"TL","right-down":"TL"}[Va]||Va;"custom"!=Va&&(k.expX=k.expY=0);break;case x:va="2"==""+oa?"TR":"TL",k.position=k.colPosition=k.expPosition=va}k.disturber=new i;var V={};V.flash=V.colFlash=g;V.expFlash=f;V.image=V.colImage=l;V.expImage=j;V.video=v;V.html=V.colHtml=q;V.expHtml=E;V.polite=B;V.options=k;V.events=new i;var $=V.options,wa={zIndex:$.zIndex-
1};$.overlayOpacity&&(wa.opacity=($.overlayOpacity>>0)/100);$.overlayColor&&(wa.background=$.overlayColor);var Ya={bn:$.bn,closeOnClick:$.overlayCloseOnClick||1,style:wa},Ca=($.iab?parent:e).ADFORM_OVERLAY||e.ADFORM_OVERLAY,aa;if($.type==n&&Ca){for(var Da=0,Qb=Ca.length;Da<Qb;Da++)if($.bn==Ca[Da].bn){aa=Ca[Da];break}if(aa&&("undefined"!=typeof aa.callFrom&&(Ya.callFrom=aa.callFrom),"undefined"!=typeof aa.closeOnClick&&(Ya.closeOnClick=aa.closeOnClick),aa.color&&(wa.background=aa.color),aa.opacity))wa.opacity=
aa.opacity}if(aa||$.overlayOpacity)V.overlay=Ya;var da={};for(Z in V)if(V[Z].src||V[Z].sources)da[Z]=V[Z];da.options=k;da.events=V.events;V.overlay&&(da.overlay=V.overlay);"window"!=g.wmode&&o(da);v.sources&&(v.loop="true"==""+R.loopVideo,v.muted="true"!=""+R.soundOn,v.autoplay="true"==""+R.autoPlay,r(k,v));var Rb="standard"==k.type&&"flash"==k.subtype;if(p.isSafari&&6.1<=p.safariVersion&&(da.image||da.html)&&Rb)delete da.flash,delete da.colFlash;return da}};g.parseFlashvars=m;g.fixFlashvarsValue=
b;g.applyHooks=function(a,b){var c=a.options,f=c.bn,d=h(),g=((c.iab?parent:e)._adform||[]).slice(0);c.iab&&g.push.apply(g,e._adform||[]);d&&d.getPropByBn&&(d=d.getPropByBn("multiPanel",f))&&g.push.apply(g,d);if(p.isArray(g)&&g.length){for(var c=b||["",f,"#"+c.seqNo,f+"#"+c.seqNo,c.xId],f={},H=c.length,n=g.length,d=0;d<H;d++)f[c[d]]={};for(var m=/(?:(\d+x|\d+#\d+|#[-_0-9a-z]+|\d+))?\.?(.*)/i,i,k,z,q,K,d=0;d<n;d++)if(i=g[d][0].match(m),k=f[i[1]||""]){z=g[d][1];if(i[2]){i=i[2].split(".");for(K=q={};1<
i.length;)q=q[i.shift()]={};q[i[0]]=z;z=K}if(i=z.on)for(var F in i){if("function"==typeof i[F])a.events.on(F,i[F])}else if(z.init)a.events.on("init",z.init);i={};for(q in z)E[q]&&(i[q]=z[q]);j(k,i)}g=f[c[0]];for(d=1;d<H;d++)j(g,f[c[d]]);for(d in E)if(d in g){i=E[d].split(".");for(K=q={};1<i.length;)q=q[i.shift()]={};q[i[0]]=g[d];j(a,K)}}q=(a.html||a.flash||a.image||a.video||{}).adNotice||t();if(g=a.options._adNotice){for(var G in g)g.hasOwnProperty(G)&&(q[G]=g[G]);delete a.options._adNotice}(!a.flash||
"window"!=a.flash.wmode)&&o(a);a.video&&r(a.options,a.video);return a};var S={ADFInitFlash:"src",ADFFlash:"src",ADFTearFlash:"esrc",tearWidth:"ewidth",tearHeight:"eheight",fVer:"version",ADFVer:"version",clicktags:"flashvars",ADFBuckup:"bsrc",bclickUrl:"link",backupClickURL:"link",ADFBuckupClickURL:"link",videoSources:"sources",bannerAlign:"position",expandsTo:"expPosition",adfxid:"xId",ADFid:"xId",expandDelay:"showDelay",expandTime:"showTime",collapseTime:"hideTime",autoShowAfter:"autoShow",showTimeout:"autoShow",
autoCloseAfter:"autoHide",closeTimeout:"autoHide",showOnRollOut:"showType",closeOnRollOut:"hideType",keepCollapsed:"keepCollapsed",politeTimeout:"loadDelay",expandedX:"expX",expandedY:"expY","":""},O={src:"",width:0,height:0,version:7,play:!0,menu:!1,loop:!0,quality:"autohigh",wmode:"opaque",bgcolor:null,allowScriptAccess:"always",allowFullScreen:!0,flashvars:{}},I={src:"",width:0,height:0,link:""},H={width:0,height:0,poster:"",css:null,closeButtonAlign:null,loop:"false",muted:"true",autoplay:"false",
link:null,assetId:0},K={src:"",width:0,height:0,flashvars:{}},F={position:"L",colPosition:"C",expPosition:"TL",x:0,y:0,expX:0,expY:0,xId:"1x",zIndex:1E5,fixed:0,restartAnimation:0,clickEvent:"",showDelay:0,showType:0,hideType:0,autoShow:0,autoHide:0,behavior:"default",frameRate:0,showTime:0,hideTime:0,loadDelay:0,type:"none",keepCollapsed:0,sideKickAnim:1,landingPageTarget:"_blank",showFloat:1},E={useClose:"expImage.useClose",overlay:"overlay",wallpaper:"options.wallpaper",x:"options.x",y:"options.y",
hidden:"options.hidden",position:"options.position",adNotice:"options._adNotice",fixedBounding:"options.fixedBounding",resizeInFIF:"options.iabResize",panel:"panel"},L="ADFassetID",B=L+"=",C=RegExp(B+"(\\d*)")})(Adform=window.Adform||{},window,document);
(function(a,e){function c(a,b,c){for(var a=a.replace(/[\r\n]+/g,b),d={},a=a.split(b),e=a.length,g,h,b=0;b<e;b++){h=a[b].split(c);g=h.shift();var i=d;h=h.join(c);i[g]=!h?null:"true"===h||"false"===h?"true"===h:1*h==h?1*h:h}return d}function j(a){var c=a.options,g=a.panel.from,n;!{standard:1,expanding:1,singleExpanding:1}[c.type]||"floating"==c.behavior?b.AdConstructor.initialize(a):("number"==typeof g?c=o(a):"string"==typeof g?(c=d.byId(a.panel.from,(a.options.iab?e.parent:e).document))?(h(a,{container:c},
!0),c=void 0):c=!0:(h(a,{before:a.options.iab?e.frameElement:a.options.$tag},!0),c=void 0),n=c);n?(i.push(a),y||(y=setTimeout(r,100))):i.length&&j(i.shift())}function o(a){var b=x[a.options.bn+"#"+a.panel.from];if(!b||!b.box)return!0;var c=a.panel,d=m(c.position,!0),e=b.settings,g=e.image||e.html||e.video||e.flash,e=(e=e.panel)&&e.space,i;if(e&&g&&"C"!=d&&(i=e.width>>0))i=0.5*(i-g.width),c.x=(c.x||0)+("L"==d?-1:1)*i;b.box.pull("element",function(){h(a,{from:b.box})})}function r(){y=0;i.length&&j(i.shift())}
function h(a,c,g){function h(b){var d=B?"stickyBox":"box";L=I[d]=(new p).publish("panel-"+d,a.events);W&&L.set("zIndex",o.zIndex=W);L.set({width:s,height:H?A:"auto",x:!B&&q.x||0,y:!B&&q.y||0,visible:!q.hidden}).set(K?{stickyOffset:q.sticky}:{}).pull("element",i).draw(O,{type:K&&"sticky",position:B?"":m(q.position,g),container:F,before:E,from:b||c.from})}function i(f){f.innerHTML="<span></span>";o.iab=!1;o.window=y;o.$tag=f.firstChild;f={item:I,settings:a,content:r};o.panel=f.exports={set:d.bind(f,
t),get:d.bind(f,u)};f.constructor=C=b.AdConstructor.initialize(a);C._panel_show=C.show;C._panel_hide=C.hide;C.show=n;C.hide=j}function n(){var a=c.from;a&&a.pull&&!a.get("visible")?setTimeout(n,100):(B&&B.set("visible",!0),L.set("visible",!0),C._panel_show())}function j(){C._panel_hide();L.set("visible",!1);B&&B.set("visible",!1)}var r=a.image||a.html||a.flash,o=a.options,q=a.panel,y=o.iab?e.parent:e,O=y.document,I=x[o.bn+"#"+o.seqNo],H=!!c.from,K="sticky"in q&&!1!==q.sticky,F=c.container,E=c.before,
L,B,C,W="z"in q?q.z:K||H?1E4:null,s=r.width,A=r.height;o.hidden?q.hidden=o.hidden:q.hidden&&(o.hidden=q.hidden);K&&!H?(F=E=null,(B=I.box=new p).publish("panel-box",a.events).set({width:s,height:A,visible:!q.hidden,x:q.x||0,y:q.y||0}).pull("element",h).draw(O,{position:m(q.position,g),before:c.before,container:c.container})):h()}function t(a,b){var c=this.item,d=c.box,c=c.stickyBox,a=D[a]||a;if("string"!==typeof a)for(b in a)t.call(this,b,a[b]);else"zIndex"==a?((c||d).set(a,b),this.constructor.setZIndex&&
this.constructor.setZIndex(b)):c&&"stickyOffset"==a?c.set(a,b):d.set(a,b);c&&c.repositionSticky()}function u(a){var b=this.item,c=b.box,a=D[a]||a;if("width"==a||"height"==a)a=this.content[a];else{if("zIndex"==a||"stickyOffset"==a)c=b.stickyBox||c;a=c.get(a)}return a}function m(a,b){var a=(a||"").toLowerCase(),c,d={r:"E",ri:"R",l:"K",li:"L"}[(c=a.match(/[rl]i?/))&&c[0]]||"C",e={t:"Y",ti:"T",b:"N",bi:"B"}[(c=a.match(/[tb]i?/))&&c[0]]||"M";return b?{E:"R",K:"L"}[d]||d:d+e}if(!a._panels){a._panels=!0;
var b=a.RMB,d=b.lib,g=b.DataParser,p=b.AdBox,i=[],y,x={},n={},D={z:"zIndex",sticky:"stickyOffset"};(_adform=e._adform||[]).push(["on.boot",function(b){var c=a.ADFUtilInstance;if(c&&c.getPropByBn){var d=b.options,e=d.bn;if(1==d.seqNo&&c.getPropByBn("singleTag",e)){c=a.ADFUtilInstance;b=b.options;d=c.getPropByBn("syncMembersCount",b.bn);for(e=1;e++<d;)c.copyBanner(b.xId,{compoundSeqNo:e,compoundImpr:0})}}}],["on.setup",function(b){var h=a.ADFUtilInstance,i=b.options,m=i.bn;if(h&&h.getPropByBn){var p=
b.panel,o=b.events,r=i.seqNo,t=1==r,y;y=n[m];if(!y)for(var q=d.byTag("script"),u=q.length,O,I;0<u--;)if(O=q[u],(I=O.getAttribute("data-panels"))&&O.src&&~O.src.indexOf("?bn="+m)){var q=c(I,";","="),u={length:0},H=I=O=void 0,K={w:"width",h:"height",pos:"position",p:"position",f:"from",s:"sticky"},F=void 0;for(F in q)if(F){O=q[F]?c(q[F],",",":"):{};I={};for(var E in O)E&&(H=K[E]||E,I[H]="hidden"==H||null===O[E]||O[E]);u["#"+F]=I;u.length++}I=u;I.length&&(y=n[m]=I);break}if(y&&(t&&!h.getPropByBn("syncMembersCount",
m)&&h.addBannerAttribute(i.xId,"syncMembersCount",y.length),y=y["#"+r]))p=b.panel=d.extend(p||{},y);p&&(i.iab&&(e.frameElement.style.display="none"),x[m+"#"+r]={settings:b},t&&(p.id=p.id||"top"),p.id&&(o.clear("setup"),h=p.id,i=b.options,m=b.panel,p={options:{iab:i.iab},events:b.events},g.applyHooks(p,["#"+h,i.bn+"#"+h]),p.panel&&(m?d.extend(m,p.panel):b.panel=p.panel),o.emit("setup",b)),b.preventInitialization=!0,j(b))}}])}})(Adform=window.Adform||{},window,document);
(function(a){function e(a,e,o){this._dur=o;this._int=e||25;this._fn=a;this._pos=0;var r=this;this.frame=function(a){r._frame(a)}}a.RMB=a.RMB||{};a.RMB.Tween=e;a=e.prototype;a.duration=function(a){this._dur=a;return this};a.forward=function(a){this.start(a)};a.backward=function(a){this.start(a,!0)};a.frame=function(a){a=!0===a?0:this._dur?(new Date-this._time)/this._dur:1;1<=a&&(a=1,this.stop());this._fn(this._back?1-a:a,this._back);this._pos=a};a._frame=a.frame;a.start=function(a,e){this.stop();"undefined"!=
typeof a?this._pos=a:a=this._pos;this._back!=e&&(a=1-a);this._back=!!e;this._time=new Date-this._dur*a;this._timer=setInterval(this.frame,this._int);this.frame(!a)};a.stop=function(){clearInterval(this._timer)}})(Adform=window.Adform||{});
(function(a){function e(b){if(!i)if(i=a.ADFEventsInstance){if(!i.getItem)return i=null;i.on("destroy",h);i.subscribe(r);r()}else b&&!p&&(p=1,m.AdConstructor.require(["engagement/EngagementTracker"],function(){}));return i}function c(a){var b=e();return b&&b.getItem(a)}function j(a){if(this instanceof j)throw Error('This function cannot be used with operator "new".');return g[a]||(g[a]=new t(a))}function o(){}function r(){for(var a in g)g[a].refresh()}function h(){for(var a in g)g[a].emit("destroy")}
function t(a){this.xId=a;this._queue=[];this._attributes={};this.set("visible",!1);this.set("loaded",!1);this.set("percent",0);this.set("clicksCount",0);this.refresh();this._changes=null;if(!e())this.once("newListener",u)}function u(){e(!0)}a.RMB=a.RMB||{};var m=a.RMB;if(!m.EngagementAPI){m.EngagementAPI=j;var b=m.lib,d=m.EventEmitter,g={},p,i,y;e()||(y=a._etCallback,a._etCallback=function(){e();(a._etCallback=y)&&y()});j.version=o;j.load=function(){e(true)};b.inherit(t,d);b=t.prototype;b.set=function(a,
b){var d=c(this.xId),e=this.get(a),g=this._changes;if(d)d.attr(a,b);else{this._attributes[a]=b;this._queue.push([a,b])}if(e!==b){if(!g)g=this._changes={};g[a]=b;this.emit("change:"+a,b,e)}return this};b.get=function(a){if(this["get_"+a])return this["get_"+a]();var b=c(this.xId);return b?b.attr(a):this._attributes[a]};b.get_visibleTime=function(){var a=c(this.xId);return a&&a.visibility.time};b.refresh=function(){var a;a=c(this.xId);var b=0,d=this._queue,e=d.length;if(a){if(e){for(this.emit("registered");b<
e;b++)a.attr(d[b][0],d[b][1]);d.length=0}this.set("visible",a.visibility.active);this.set("percent",a.data.currentVisibleArea);this.set("clicksCount",a.clicks.length);if(a=this._changes){this._changes=null;this.emit("change",a)}}return this};b.engage=function(a){var b=c(this.xId);b&&b.engage(a);return this}}})(Adform=window.Adform||{},window,document);
(function(a,e,c){function j(c){var d=this,g=d.options=c.options;d.settings=c;g.BANNER_TYPE=d.BANNER_TYPE;var i=e;g.iab?(i=parent,g.iframe=e.frameElement):g.iframeManager?(i=parent.parent,g.iframe=r(i,parent)):g.window&&(i=g.window);d.win=i;D.isolate(i,u);a.adRegister=i.Adform.adRegister;t.call(d);(d._wallpaper=g.wallpaper&&g.wallpaper.background&&!D.isTMX(i))&&d.setupWallpaper();var q=c.events;d.on=function(){q.on.apply(q,arguments);return this};d.off=function(){q.off.apply(q,arguments);return this};
d.once=function(){q.once.apply(q,arguments);return this};d.emit=function(){var a=this._events;this._events=q._events;q.emit.apply(this,arguments);this._events=a;return this};d._clearEvents=function(a){q.clear(a)};D.isolate(i,m);e.ADFReload=i.ADFReload;e.ADFcall=e.ADFCall=i.ADFCall;c=D.bind(d,h);D.addEvent(e,"unload",c);if(i!=e&&(D.isolate(i,b),D.isOpera||9>D.ieVersion))(!i.Adform||!i.Adform.trackIframe)&&D.isolate(i,o),i.Adform.trackIframe(g.iframe,c);p(["adqa/FCTest"],function(a){a.register(d)})}
function o(a){function b(){for(var a=d.length;a--;)d[a][0].parentNode||(d[a][1](),d.splice(a,1));d.length||(c=clearInterval(c))}var c,d=[];(a.Adform=a.Adform||{}).trackIframe=function(a,e){d.push([a,e]);c||(c=setInterval(b,200))}}function r(a,b){for(var c=a.document.getElementsByTagName("iframe"),d=c.length;0<d--;)try{if(c[d].contentWindow==b)return c[d]}catch(e){}}function h(){var a=this.options.xId,b=this.getUtils();D.removeEvent(e,"unload",arguments.callee);this.emit("destroy");this.destroy&&this.destroy();
z.destroy();t.call(this,!0);this._clearEvents();this._wallpaper&&(this.toggleWallpaper(),delete this._wallpaper);b&&b.wipeOutBanner&&b.wipeOutBanner(a);this.options=null}function t(b){var c=this.options,d=c.bn,e=c.xId,c=c.seqNo,c=d+(c?"#"+c:""),g=a.adRegister,i=this.win.Adform.adRegister;b?(delete g[c],delete g[d],delete g[e],delete i[c],delete i[d],delete i[e]):g[c]=g[d]=g[e]=i[c]=i[d]=i[e]=this}function u(a){a=a.Adform=a.Adform||{};a.adRegister=a.adRegister||{}}function m(a){function b(c,d){var e=
[].slice,g=a.Adform.adRegister;if(g[c]){var i=[g[c]];if(!/x|#/.test(c))for(var h in g)i[0]!=g[h]&&!h.indexOf(c)&&i.push(g[h]);g=arguments;g=2<g.length?e.call(g,2):!1;for(e=0;e<i.length;e++){h=i[e];var s="string"==typeof d?h[d]:d;"function"==typeof s&&(g?s.apply(h,g):s.call(h))}}}a.ADFReload=function(a){setTimeout(function(){b(a||"1x","reload")},0)};a.ADFcall=a.ADFCall=b}function b(a){var b=a.Adform;b.Events=b.Events||{sendEvent:function(b,c,d,e,g){a.ADFCall(b,"sendEvent",c,d,e,g)}}}function d(a){return(new y.Type[q[a.options.type]](a)).emit("init",
a)}function g(b){b||(b=P.shift());var e,i=b._boot,h=b._init,m=b.options,n=q[m.type],j=Y[n],o=y.Type[n];b._beforeScript?(!j&&!o?e=n:(e="NextTick",j=!1),b._beforeScript=!1):(i||(b._boot=!0,G.applyHooks(b),b.events.emit("boot",b)),o)?(b._init=!0,h||(b.events.emit("setup",b),b.preventInitialization||d(b))):e=n;e&&(j?p(["types/"+e],function(){g(b)}):(P.push(b),c.write('<script src="'+m.scriptsBase+"rmb/Adform."+e+".js?bv="+a.cache+'"><\/script>')))}function p(b,d){if(!a.bootLoaded){var g=c.getElementsByTagName("script")[0],
i=c.createElement("script"),h=a.shost?a.shost.split("/")[2]:"s1.adform.net";i.type="text/javascript";i.async=i.defer=!0;i.src=(a.shost||("https:"==w?"https://":"http://s1.adform.net"))+"/stoat/"+a.cache+"/"+h+"/boot.js";g.parentNode.insertBefore(i,g);a.bootLoaded=!0}(e._adfq||(e._adfq=[])).push(["require",b,d])}function i(a,b){if(this._hovered!=a){this._hovered=a;this.interacted=!0;if(a){var c=b.content().assetId;this._eventDelay(this,this.sendEvent,T,c,R)}else this._eventDelay();if(this.onEngage)this.onEngage()}}
var y=a.RMB=a.RMB||{};y.Type=y.Type||{};if(!y.AdConstructor){y.AdConstructor=j;var x=y.EngagementAPI,n=!0,D=y.lib,z=y.DOMEvents,G=y.DataParser,X=y.StyleSheet,P=[],w=c.location.protocol,T="141",R="Mouse Over on Banner",N={Expanding:[G.EXPANDING,G.TEARBACK],Slider:[G.SLIDER],SingleExpanding:[G.SINGLE_EXPANDING],Floating:[G.FLOATING],Standard:[G.STANDARD],Interstitial:[G.INTERSTITIAL]},Y={Floating:1,Interstitial:1,SingleExpanding:1,Expanding:1},q={},S,O,I;for(S in N)if((I=N[S]).push)for(O=I.length;0<
O--;)q[I[O]]=S;j.build=function(){a.BWDetect&&a.BWDetect();var b=G.getData(),c=b&&b.options;c&&(x[c.sendUnload?"load":"version"](c.unloadVersion),b._beforeScript=a._beforeScript&&!n,delete a._beforeScript,n=!1,g(b))};j.ibuild=g;j.initialize=d;j.require=p;N=j.prototype;N.BANNER_TYPE="";N.setupUtils=function(a,b){var c=this.getUtils(),d=this.options.xId;"string"==typeof a&&(a=[a]);c&&(c.addBannerAttribute(d,"relativeTargetSWFID",a[0]),c.addBannerAttribute(d,"trackElements",a),b&&c.addBannerAttribute(d,
"trackHeatMap",b))};N.setupEngagement=function(a){var b=this,c=D.singleCall(0);b._eventDelay=D.singleCall(1E3);b._hovered=!1;a.length||(a=[a]);for(var d=0;d<a.length;d++)a[d].on("hover",function(a,d){c(b,i,a,d)})};N.sendEvent=function(b,c,d,e){return a.Events&&a.Events.sendEvent?(a.Events.sendEvent(this.options.xId,b,c,d,e||"",this.BANNER_TYPE),!0):!1};N.getUtils=function(){var b=a.ADFBannerUtils;if(b&&b.getInstance)return b.getInstance()};N.setupWallpaper=function(){var a=this.options,b=a.wallpaper,
c=this.win.document,d=b.cssClass="adform-wallpaper-"+a.bn,e=b.element||"",e="html"==e?"":!e.indexOf("#")?" "+e:c.documentElement?" body":"";b.target=a.landingPageTarget;X("adform-wallpaper",c).set("."+d+e,"background: "+b.background);("undefined"==typeof b.autoShow||b.autoShow)&&this.toggleWallpaper(!0)};N.toggleWallpaper=function(a){function b(a){a=a||e.event;a=a.target||a.srcElement;return s&&a.id==s?!0:/^(html|body)$/i.test(a.nodeName)}function c(a){h.style.cursor=b(a)?"pointer":""}if(this._wallpaper){var a=
"string"==typeof a?"true"==""+a:a,d=this.options,e=this.win;try{var g=e.document,i,h=g.documentElement||g.body;if((i=e.__adform_wallpaper)&&(a||i.cssClass==d.wallpaper.cssClass))D.removeClass(h,i.cssClass),i.link&&(D.removeEvent(g,"mousemove",i._move),D.removeEvent(g,"mouseover",i._cursor),D.removeEvent(g,"click",i._click)),h.style.cursor="",e.__adform_wallpaper=null;if((i=d.wallpaper)&&a){D.addClass(h,i.cssClass);if(i.link){var s=i.element,s=s&&!s.indexOf("#")?s.slice(1):"";D.addEvent(g,"mousemove",
i._move=function(a){D.removeEvent(g,"mousemove",arguments.callee);c(a)});D.addEvent(g,"mouseover",i._cursor=c);D.addEvent(g,"click",i._click=function(a){b(a)&&e.open(i.link,i.target)})}e.__adform_wallpaper=i}}catch(m){}}};N.setupGateway=function(b,c){if(b.get("element")){if(a.Wallpaper&&a.Wallpaper.setup&&!b.get("frompos")){var d=b.get("element"),e=(e=this.getUtils())&&e.banners&&e.banners[this.options.xId];a.Wallpaper.setup({bn:this.options.bn,element:d,utils:e,width:b.get("width"),height:b.get("height"),
callback:c})}}else{var g=this;b.onchange("element",function(){b.off("change:element",arguments.callee);g.setupGateway(b,c)})}};N.adDestroy=h;N.reload=function(){this.adBox&&this.adBox.emit("content:reload")};N.setZIndex=function(a){a=parseInt(a,10);if(!isNaN(a)){var b=this.options,c=q[b.type],d="adBox,collapsed,expanded,wallpaper,container,overlay".split(","),e,g,i,h=d.length;for(this.zIndex=a;h--;)if((g=d[h])&&(e=this[g]))i=a,!("container"==g&&"floating"!=b.behavior)&&!("collapsed"==g&&"SingleExpanding"==
c)&&("expanded"==g&&"Expanding"==c&&(i+=1),"overlay"==g&&(i-=1),e.set("zIndex",i))}}}})(Adform=window.Adform||{},window,document);
(function(a,e){function c(a,b){function d(){g.emit(h)}var g=this,p=u(a.xId);c.super_.call(g);g.created=0;g.options=a;g.data=b;g.container=t.bind(g,g.container);g.show=t.bind(g,g.show);g.hide=t.bind(g,g.hide);g.clear=t.bind(g,g.clear);g.reload=t.bind(g,g.reload);var i=a.loadDelay;if(i)setTimeout(d,1E3*i);else t.onload(e,d);g.on(r,function(){p.set(r,!0)}).on("video:end",function(){p.engage("videoStop")});b.social&&g.setupExtra(g.social=new o.Socialize(a,b.social));b.adNotice&&"window"!=b.wmode&&g.setupExtra(g.adNotice=
new o.AdNotice(a,b))}a.RMB=a.RMB||{};var j=a.RMB,o=j.Content=a.Content||{};j.AdContent=c;var r="loaded",h="pageLoadComplete";a.PAGE_LOAD_COMPLETE=h;var t=j.lib,u=j.EngagementAPI;t.inherit(c,j.EventEmitter);j=c.prototype;j.container=function(a){var b=this.doc=a.ownerDocument;this.win=b.defaultView||b.parentWindow;this._element=a};j.show=function(){};j.hide=function(){};j.reload=function(){var a=this instanceof o.AdNotice;!(this instanceof o.Socialize)&&!a&&(this.destroy(),this._adbox.get("showing")&&
this.show())};j.destroy=function(){};j.element=function(a,b){var c=this._elem;!1!==b?(c||(c=t.html('<div style="position:relative;width:100%;height:100%;overflow:hidden">',b&&b.ownerDocument)),c&&(b&&b.appendChild(c),"string"==typeof a&&(c.innerHTML=a))):c&&(c.parentNode&&c.parentNode.removeChild(c),c=null);return this._elem=c};j.bind=function(a){if(!this._adbox){var b;this._adbox=a;a.once("content:hide",function(){clearTimeout(void 0)});a.once("content:destroy",function(){clearTimeout(void 0)});
a.on("change:element",this.container);a.on("content:show",this.show);a.on("content:hide",this.hide);a.on("content:destroy",this.clear);a.on("content:reload",this.reload);(b=a.get("element"))&&this.container(b);a.get("showing")&&this.show()}};j._clear=j.clear;j.clear=function(){var a=this._adbox;a&&(a.off("change:element",this.container),a.off("content:show",this.show),a.off("content:hide",this.hide),a.off("content:destroy",this.clear),a.off("content:reload",this.reload),this.destroy(),this._clear(),
this._adbox=this.doc=this.win=this._element=null)};j.style=function(a){var b=this.element();b&&t.extend(b.style,a);return this};j.setupExtra=function(a){var b=this.bind,c=this.clear;this.bind=function(c){var d=b.call(this,c);a.bind(c);return d};this.clear=function(){a.clear(this._adbox);return c.call(this)}}})(Adform=window.Adform||{},window);
(function(a,e){function c(a,d){c.super_.call(this,a,d.adNotice);var e=this.data;e.width=d.width;e.height=d.height;this.id=o.gid(t+"button-");this.base=a.scriptsBase+"assets/images/OBA/"}a.RMB=a.RMB||{};var j=a.RMB;j.Content.AdNotice=c;var o=j.lib,r=j.DOMEvents,h=j.StyleSheet,t="adform-adnotice-",u={};o.inherit(c,j.AdContent);j=c.prototype;c.supported=function(){return!0};c.READY="ready";j.show=function(){this._element&&!this.created&&this.write()};j.write=function(){var a=this;a.created=(new Date).getTime();
var c=a._element,g=a.doc,p=a.win;p.self||(p=a.win=e);var i=a.statics=h("adbox-static",g);i.adNoticeStyles||(i.adNoticeStyles=!0,i.set(".adform-adnotice","z-index:1;position:absolute!important;top:0!important;right:0!important;left:auto!important;padding:0!important;margin:0!important"));a._elem=o.html('<div class="adform-adnotice" id="'+a.id+'">',g);var j=a.options,m=j.obaId;m?p.$ADP?a.setupAdPlayer(m,c):(i=j.scriptsBase+"adplayer/js/adplayer.min.js",o.loadCSS(g,j.scriptsBase+"adplayer/css/adplayer.min.css"),
o.loadScript(g,i,function(e){e||!p.$ADP?a.setupDefault(c):a.setupAdPlayer(m,c)})):a.setupDefault(c);r.on(a._elem,"hover",function(a){j.disturber.emit("hover",a=="hoverin")})};j.destroy=function(){this.element("",!1);this.created=0};j.getOBAImage=function(a){a=a.toLowerCase().match(/^(bg|cs|da|de-at|de-ch|de|el|es|fi|fr-be|fr-ch|fr|ga|hu|it-ch|it|nl-be|nl|no|pl|ro|sk|sv|uk|en)/);a=(a&&a[0]||"en")+".png";return this.base+a};j.setupAdPlayer=function(a,c){var e=this.win,h=e.$ADP.Registry,i=this.id,j=
this.data,m=this.options;this.element("",c);if(!u[a]){var n=[{title:j.title,text:j.text,url:j.link,linkText:j.linkText,usePopup:!!(e.Adform&&e.Adform.ADFIframe||m.iframeManager||m.iab)}];e.ADFCall(m.xId,function(){this.emit("setupADP",n)});if(n){e=0;for(j=n.length;e<j;++e)h.register(a,n[e])}u[a]=!0}h.createPlayer(a,{domId:i});this.emit("ready")};j.setupDefault=function(a){var c=this.data,e=this.id,h=this.statics,i=105<=c.width&&0.1>1575/(c.width*c.height);h.set(".adform-adnotice a","display:block;width:19px;height:15px;margin:0!important;padding:0!important;position:static!important;background:url("+
this.base+"oba.png) no-repeat;").set(".adform-adnotice img","display:none;border:none;margin:0!important;padding:0!important;position:static!important");i&&h.set("#"+e+" a:hover","width:auto;position:absolute;top:0;right:0;background-position:0 -100px").set("#"+e+" a:hover img","display:block;");this.element('<a href="'+c.link+'" target="_blank">'+(i?'<img src="'+this.getOBAImage(m)+'" alt="">':"")+"</a>",a);this.emit("ready")};var m=navigator.userLanguage||navigator.language||""})(Adform=window.Adform||
{},window,document);
(function(a,e){function c(a,e){c.super_.call(this,a,e);this.id=h.gid(u+"button-");this.on(m,function(){this.sendEvent(145,"Hide Social Bar")}).on(b,function(){this.sendEvent(140,"Facebook Like Button Press")})}function j(){this.emit(b);e.open(this.data.linkBack);return!1}function o(){this.emit(m);this.destroy()}a.RMB=a.RMB||{};var r=a.RMB;r.Content.Socialize=c;var h=r.lib,t=h.addEvent,u="adform-social-",m="collapsed",b="liked";h.inherit(c,r.AdContent);r=c.prototype;c.supported=function(){return!0};
c.READY="ready";c.COLLAPSED=m;c.LIKED=b;r.show=function(){this.destroyed||(this.created&&this.style({display:""}),this._element&&!this.created&&this.write())};r.hide=function(){this.style({display:"none"})};r.write=function(){this.created=(new Date).getTime();var a=this._element,b=this.doc,c=this.data,e=this.id;this._elem=h.html('<div id="'+e+'" class="'+[u+"container",u+"container-"+c.position].join(" ")+'" style="display:none;">',b);this.element('<div class="'+u+'bg"></div><div id="'+e+'-bar" class="'+
u+'bar"></div>',a);a=h.byId(e+"-bar",b);e=this.closeButton=h.html('<div class="'+u+'close">',b);this.close=h.bind(this,o);t(e,"click",this.close);var m=this.linkButton=h.html('<div class="'+u+'link">Like us on Facebook.</div>',b);this.like=h.bind(this,j);t(m,"click",this.like);a.appendChild(m);a.appendChild(e);h.loadCSS(b,c.css);123>c.width&&this.style({width:c.width-("TLV"==c.position?30:2)+"px",overflow:"hidden"});this.emit("ready")};r.destroy=function(){this.closeButton&&h.removeEvent(this.closeButton,
"click",this.close);this.linkButton&&h.removeEvent(this.linkButton,"click",this.like);this.bar=this.linkButton=this.like=this.closeButton=this.close=null;this.element("",!1);this.created=0;this.destroyed=!0};r.sendEvent=function(b,c){if(a.Events&&a.Events.sendEvent){var e=this.options;a.Events.sendEvent(e.xId,b,0,c,"",e.BANNER_TYPE);return!0}return!1}})(Adform=window.Adform||{},window,document);
(function(a,e){function c(a,b){c.super_.call(this,a,b);r.call(this);this.cube3D=this.video=!1;this.created=0;this.keepAlive=a.keepAlive;this.restartAnim=a.restartAnimation;var f=i.gid("Adform"),d=this.flashvars=b.flashvars,b=i.extend({},b);d.adId=f;d.expandTime=a.showTime||0;d.collapseTime=a.hideTime||0;d.behavior=a.behavior;d.landingPageTarget=a.landingPageTarget;var e=[],g;for(g in d)d.hasOwnProperty(g)&&e.push(g+"="+d[g]);var h=a.userParams;if(h)for(g in h)if(h.hasOwnProperty(g)){var q=encodeURIComponent(g);
q in d||e.push(q+"="+encodeURIComponent(h[g]+""))}b.flashvars=e.join("&");b.id=this.id="ad"+f;this.data=b;this.assetId=b.assetId||0;this._inScreenLast=0;this.on(H,j)}function j(){var a=y(this.options.xId);if(!this._lastInScreen)a.on("change",i.bind(this,o));a={visible:a.get("visible"),percent:a.get("percent"),loaded:a.get("loaded")};o.call(this,a)}function o(a){var b=this,c=+new Date,d=b._inScreenTimer,e=b._lastInScreenChanges;e&&(a=i.extend(e,a));d&&(clearTimeout(d),b._inScreenTimer=0);b._lastInScreen>
c-500?(b._lastInScreenChanges=a,b._inScreenTimer=x(function(){o.call(b,a)},b._lastInScreen+500-c)):(b._lastInScreen=c,b._lastInScreenChanges=null,b.callSwfMethod(K,a))}function r(){var a=!1,b=!1,c=this,d;c.on(w,function(){var e=+new Date;b=!0;a&&((!d||500<e-d)&&c.callSwfMethod(z),d=e)});c.on(z,function(){c.off(z,arguments.callee);a=!0;b&&c.callSwfMethod(z)})}function h(a,b){function c(b,d,f,e,g){a.emit(b,{x:parseInt(d,10)+h.x,y:parseInt(f,10)+h.y,width:parseInt(e,10),height:parseInt(g,10)})}function d(b){a.emit(b);
e.IABcloseAD&&e.IABcloseAD()}for(var g=a.win,h={x:0,y:0},j=a.emit,j=[["initPoliteMode",j,w],["initVideoMode",function(){a.video=!0}],["initCube3D","cube3D",!0],["initExtender",j,F],["initInScreen",j,H],["startDrag",j,E],["endDrag",c,L],["updateBox",c,S],["expandComplete",j,O],["collapseComplete",j,I],["close",d,T],["superClose",d,N],["expand",j,R],["rollOutAd",j,Y],["videoPlayStartHandler",j,"video:start"],["videoCompleteHandler",j,"video:end"]],m=j.length;0<m--;)(function(c,d,f){function e(){var b=
C.call(arguments);typeof f!==n&&b.unshift(f);d.apply(a,b)}function g(){a[d]=f}b[c]="function"==typeof d?e:g}).apply(a,j[m]);b.initScroll=function(){var b=a.options.iab?g.parent:g;i.addEvent(b,"scroll",function(){i.removeEvent(b,"scroll",arguments.callee);a.callSwfMethod("scroll")})};b.initSingleExpanding=function(b,c){a.emit("expandSettings",h={x:-parseInt(b,10),y:-parseInt(c,10)})};b.toggleFullScreen=function(b){a.emit(q,"true"==""+b)}}function t(a){var b=a.id,c,d,e="Handlers"+a.options.xId;d=a.win;
i.isolate(d,u);c=d.Adform.swfCallbacks;d=d.Adform.VideoInterstitialHandlers;d=d[e]=c[b]=c[b]||{};h(a,d)}function u(a){function b(a,d){if(a&&(a=c["ad"+a])&&a[d])a[d]()}var c="swfCallbacks",d="VideoInterstitialHandlers",e=a.Adform=a.Adform||{};if(!e[c]||!e[d])c=e[c]=e[c]||{},d=e[d]=e[d]||{},a.ADFClose=function(a){b(a,"close")},a.ADFSuperClose=function(a){b(a,"superClose")},a.ADFExpand=function(a){b(a,"expand")}}function m(a,b){var c=['classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"','codebase="'+
location.protocol+"//fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+b.version+',0,0,0"','class="'+(a.className||"")+'"'],d=[],e=['type="'+D+'"','pluginspage="'+location.protocol+'//www.macromedia.com/go/getflashplayer"'],g;for(g in b)b.hasOwnProperty(g)&&!~"object|undefined".indexOf(typeof b[g])&&("id"==g||"width"==g||"height"==g?c.push(g+'="'+b[g]+'"'):"src"==g?d.push('<param name="movie" value="'+b[g]+'" />'):d.push('<param name="'+g+'" value="'+b[g]+'" />'),"id"==g?e.push('name="'+
b[g]+'"'):e.push(g+'="'+b[g]+'"'));return"<object "+c.join(" ")+">"+d.join("")+"<embed "+e.join(" ")+" /></object>"}function b(a){var c=a[0],d,e,g,h,j,q;if(c)if(d=c[0],e=c[1],c=c[2],g=d.id,h=d.win,q=(j=i.byId(g,d.doc))&&i.byTag(j,"embed")[0],(!j||!j[e])&&(!q||!q[e]))20>a.retry++?x(function(){b(a)},100):(a.shift(),d.emit("failed:"+e,c),b(a));else{try{if(typeof j[e]!=n)if(h[B])h[B](g,e,c);else j[e].apply(j,c);else typeof q[e]!=n&&q[e].apply(q,c)}catch(m){}a.shift();d.emit("called:"+e,c);b(a)}}function d(a,
b){var c=i.byId(a,b);c&&"OBJECT"==c.nodeName&&("msie"==i.browser()?(c.style.display="none",function(){if(4==c.readyState){var d=i.byId(a,b);if(d){try{for(var e in d)if("function"==typeof d[e])try{d[e]=null}catch(g){}}catch(h){}d.parentNode.removeChild(d)}}else x(arguments.callee,10)}()):c.parentNode.removeChild(c))}function g(a,b){var c=i.byId(a,b);return c&&i.byTag(c,"embed")[0]}a.RMB=a.RMB||{};var p=a.RMB;p.Content.FlashTag=c;var i=p.lib,y=p.EngagementAPI,x=e.setTimeout,n="undefined",D="application/x-shockwave-flash",
z="pageLoadComplete",G="loaded",X="percentLoaded",P="canceled",w="politeReady",T="hide",R="show",N="close",Y="rollOut",q="fullScreen",S="updateBox",O="expandComplete",I="collapseComplete",H="initInScreen",K="updateInScreen",F="extender",E="startDrag",L="endDrag",B="Adform_swfCallFix",C=Array.prototype.slice;i.inherit(c,p.AdContent);p=c.prototype;c.supported=function(a){return W>=(a||1)};c.observe=function(a){var b=c._timer,d=c._toObserve=c._toObserve||[];d.push(a);b||(b=setInterval(function(){for(var a=
d.length;a--;)d[a]()&&d.splice(a,1);d.length||(clearInterval(b),delete c._timer)},500),c._timer=b)};c.READY="ready";c.PERCENT=X;c.LOADED=G;c.CANCELED=P;c.POLITE_READY=w;c.HIDE=T;c.CLOSE=N;c.SHOW=R;c.ROLL_OUT=Y;c.EXPAND_SETTINGS="expandSettings";c.EXPAND_UPDATE=S;c.EXPAND_END=O;c.COLLAPSE_END=I;c.FULL_SCREEN=q;c.LOAD_COMPLETE=z;c.INSCREEN_INIT=H;c.INSCREEN_UPDATE=K;c.EXTENDER=F;c.START_DRAG=E;c.END_DRAG=L;c.setCallbacks=h;c.setupPolite=r;p.write=function(){var a=this,b=a._element,d=m(a,a.data);t(a);
a.element(d,b);a.created=new Date;a.emit("ready");x(function(){function b(){var c=i.byId(a.id,a.doc),d=c&&i.byTag(c,"embed")[0];try{return c.PercentLoaded(),c}catch(e){try{return d.PercentLoaded(),d}catch(f){}}}function d(){try{var b=e.PercentLoaded();a.emit(X,b);100==b&&(a.emit(G),f=clearInterval(f))}catch(c){a.emit(P),f=clearInterval(f)}}var e,f;(e=b())?f||(f=setInterval(d,100)):c.observe(function(){var c;if(!(c=!a.created))if(c=e=b())f||(f=setInterval(d,100)),c=!0;return c})},100)};p.destroy=function(){var a=
i.byId(this.id,this.doc);a&&(this.className=a.className);this.video&&this.callSwfMethod("pauseVideo");var a=this.id,b=this.win;(b=b&&b.Adform||e.Adform)&&b.swfCallbacks&&b.swfCallbacks[a]&&delete b.swfCallbacks[a];d(this.id,this.doc);this.element("");this.created=0};p.callSwfMethod=function(a){var c=this.win,d=this.doc,g=this._elem,h=this._sq;this.created&&(c!=e&&!d.addEventListener&&!c[B]&&(c=d.createElement("script"),c.text="function "+B+"(a,b,c){a=document.getElementById(a);return a[b].apply(a,c)}",
g.parentNode.insertBefore(c,g)),g=[this,a,C.call(arguments,1)],h?h.push(g):(h=this._sq=[g],h.timer=x(function(){h.timer=false;b(h)},i.isSafari?100:0)),h.retry=0,this.emit("call:"+a,g[2]),h.timer||b(h))};p.show=function(){this._element&&!this.created&&(this.write(),this.forceRender())};p.hide=function(){if(this._element&&this.created){var a=g(this.id,this.doc);a&&a.blur&&a.blur();this.video&&!this.restartAnim?(this.callSwfMethod("pauseVideo"),this.cube3D&&this.callSwfMethod("resetCube3D"),this.forceRender()):
this.keepAlive?this.forceRender():this.destroy()}};p.forceRender=function(){if(!e.opera){var a=g(this.id,this.doc);if(a){var b=this.data.width;x(function(){a.width=b+1},0);x(function(){a.width=b},0)}}};var W=function(){var a=navigator.plugins,b=navigator.mimeTypes,c=e.ActiveXObject,d=16,g,a=a&&a["Shockwave Flash"]&&(!b||!b["application/x-shockwave-flash"]||b["application/x-shockwave-flash"].enabledPlugin)&&a["Shockwave Flash"].description||"";if(!a&&c)for(;6<=d--;)try{g=new c("ShockwaveFlash.ShockwaveFlash."+
d);6==d&&(g.AllowScriptAccess="always",a="WIN 6.0.21.0");try{a=g.GetVariable("$version").replace(/,/g,".")}catch(h){}break}catch(i){}return parseFloat(a.replace(/^.*?(\d+[\.,].*$)/,"$1"))||0}()})(Adform=window.Adform||{},window,document);
(function(a,e,c){function j(a,b){j.super_.call(this,a,b);this.assetId=b.assetId||0;this.xId=a.xId;this.restartAnim=a.restartAnimation;var c=m.gid("Adform");b.id=this.id="ad"+c}function o(a){function b(){var a=n.currentTime,d=n.duration,e=+new Date,g=e-w,i=a-s;w=e;s=a;if(d){e=!1;if(i&&(i=g/(1E3*i)))e=2<Math.round(Math.abs(n.playbackRate/i));a/=d;t!=a?(t=a,o=5,h.emit("timeupdate",t,e)):"playing"==p&&!--o&&0.9<t&&(c({type:"ended"}),o=5)}}function c(b){if("ended"==b.type&&a.loop)g(0),n.play();else if("ended"==
b.type&&(g(0),n.pause()),b=n.paused||"ended"==b.type?!t||1===t?"stoped":"paused":"playing",b!=p)h.playbackState=p=b,h.emit("state",b)}function e(a){var b=a.total||n.duration;if(0<b)try{var c=(a.loaded||n.buffered&&n.buffered.end(0)||0)/b;c>y&&(y=c,h.emit("loadProgress",y))}catch(d){}}function g(a){try{n.currentTime=a*n.duration}catch(b){}}var h=this,i=a.document;"undefined"==typeof T&&(T=i.createElement("video"));var j=u(a.sources);h.source=j;var n=m.html("<video "+r(a)+' preload="none" style="float:left"><source src="'+
j.src+'"></video>',i);n.loop=!1;h.element=n;var p,o,t=-1,y=-1,w=0,s=0;d(n,"timeupdate",b);setInterval(function(){b()},500);i="play,pause,playing,seeking,seeked,stalled,ended,timeupdate".split(",");for(j=0;j<i.length;j++)d(n,i[j],c);c({});if(n.buffered)var x=setInterval(function(){e({});1<=y&&clearInterval(x)},500);else d(n,"progress",e);h.setProgress=g;a.autoplay&&setTimeout(function(){n.play()},0)}function r(a){for(var b=[],c=0,d,e;c<R.length;c++)d=R[c],(e=a[d])&&(!0===e?b.push(d):b.push(d+'="'+
e+'"'));return b.join(" ")}function h(a){function c(a){a=(m.getMousePos(a).pageX-r.pageX+r.relativeX)/u.offsetWidth;e(a)}function e(a){a=0>a?0:1<a?1:a;n(a);p.emit("seek",a)}function h(){g(o,"mousemove",c);g(o,"mouseup",h);g(o,"mouseout",j);p.emit("endSeek")}function j(a){for(a=a.relatedTarget;a&&a!=p;)a=a.parentNode;a!=p&&h()}function n(a){w.style.width=100*a+"%"}var p=this;b.call(p);var o=a.container,r=null,t=m.html('<div class="'+i+'seek"><div class="'+i+'seek-border"><div class="'+i+'seek-background"><div class="'+
i+'seek-loaded"></div><div class="'+i+'seek-played"></div></div></div></div>',o.ownerDocument),u=t.firstChild.firstChild,y=u.firstChild,w=y.nextSibling;w.style.width=0;p.element=t;d(t,"mousedown",function(a){p.emit("startSeek");a.preventDefault?a.preventDefault():a.returnValue=!1;r=m.getMousePos(a);e(r.relativeX/t.offsetWidth);d(o,"mousemove",c);d(o,"mouseup",h);d(o,"mouseout",j)});p.setProgress=n;p.setLoadProgress=function(a){y.style.width=100*a+"%"}}function t(a){var c=this;b.call(c);var e=a.className,
a=c.element=m.html('<div class="'+e+'"></div>',a.document);d(a,"click",function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;c.emit("buttonClick",e)})}function u(a){if(a&&a.length)for(var b=T,c=0;c<a.length;c++){var d=a[c];if(d){var e=d.file;if(e){var g=!1;if(d.mime&&d.codecs)d=d.mime+'; codecs="'+d.codecs+'"';else{g=e.match(/\.(mp4|webm|mkv|ogv|ogg|avi)/i);if(!g)continue;g=g[1].toLowerCase();d={mp4:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',avi:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',
mkv:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',webm:'video/webm; codecs="vp8, vorbis"',ogv:'video/ogg; codecs="theora, vorbis"',ogg:'video/ogg; codecs="theora, vorbis"'}[g]}if(d){var h;try{var i;if(!(i=b.canPlayType(d))){var j;if(j=g)j=G&&("mp4"==g||"m4v"==g)||z&&"m3u8"==g?"maybe":void 0;i=j}h=i}catch(n){}if("probably"==h||"maybe"==h)return{src:e,type:d}}}}}}a.RMB=a.RMB||{};e=a.RMB;e.Content.VideoTag=j;var m=e.lib,b=e.EventEmitter,d=m.addEvent,g=m.removeEvent;m.inherit(j,e.AdContent);var e=j.prototype,
p={progr0:{id:"25",name:"Video Play Start"},progr25:{id:"26",name:"Played 25% Of Video"},progr50:{id:"27",name:"Played 50% Of Video"},progr75:{id:"28",name:"Played 75% Of Video"},progr100:{id:"29",name:"Video Playback Complete"},play:{id:"30",name:"Play Button Press"},pause:{id:"31",name:"Pause Button Press"},stop:{id:"32",name:"Stop Button Press"},soundOn:{id:"33",name:"Sound ON Button Press"},soundOff:{id:"34",name:"Sound OFF Button Press"},close:{id:"23",name:"Close Button Press"}},i="adform-video-",
y=i+"state-",x=i+"sound-",n=m.isIPad,D=m.isIPhone,z=D||n,G=m.isAndroid,X=m.isWinPhone,P=D||X,w,T;j.supported=function(a){"undefined"==typeof w&&(T=c.createElement("video"),w=!!T.canPlayType);return!w?!1:!u(a)?!1:!0};j.READY="ready";j.LOADED="loaded";j.HIDE="hide";e.write=function(){function a(){C.play()}function b(a){var d=C.muted;c(!d);c(d);X=a;B.className=B.className.replace(k," "+y+a)}function c(a){z||(C.muted=a,B.className=B.className.replace(Ab," "+x+(a?"off":"on")))}function e(a,b){if(ka.length||
qa){if(!b&&a!=pa){var c=100*pa,d=100*(0.5<pa-a?1.1:a);0>=c&&0<d?(qa=qa||r.list(Za).length,r.emit(Za)):100>=c&&100<d&&(qa=qa||r.list(ba).length,r.emit(ba));for(var f=0,g=ka.length;f<g;f++)if(ka[f]>=c&&ka[f]<d){r.sendEvent(p["progr"+ka[f]]);ka.splice(f,1);break}}pa=a}}var r=this,u=r.data,w=r.options,K=r._element,F=u.document=r.doc,E=new o(u);m.loadCSS(F,u.css);var L=u.closeButtonAlign;r.element('<div class="'+i+"container "+i+"device-"+(D?"iphone":n?"ipad":G?"android":"default")+'"></div>',K);var K=
r._elem,B=K.firstChild,C=E.element;B.appendChild(C);var R,s=["width:"+u.width+"px","height:"+u.height+"px"];u.poster&&(s.push("background-image:url('"+u.poster+"')"),s.push("background-size:contain"));var A=m.html('<a class="adform-video-poster" style="'+s.join(";")+'"></a>');B.appendChild(A);var f,l,J,v;if(P){A.style.position="relative";C.style.position="absolute";C.style.top="-100000px";var s=0.25*Math.min(u.width,u.height)/90,s="scale("+s+", "+s+");",T=m.html('<div style="'+["-ms-transform:"+s,
"-webkit-transform:"+s,"-o-transform:"+s,"-moz-transform:"+s].join("")+'" class="adform-video-big-play"></div>');A.appendChild(T);d(A,"click",a);u.link&&u.poster&&(R=function(){g(A,"click",a);A.removeChild(T);A.href=u.link;A.target=w.landingPageTarget})}else f=i+"play-pause",l=i+"stop",J=i+"sound",f=new t({className:f,document:F}),l=new t({className:l,document:F}),J=new t({className:J,document:F}),v=new h({container:B}),u.link?(A.href=u.link,A.target=w.landingPageTarget):A.style.cursor="auto",R=function(){A.style.opacity=
0},B.appendChild(f.element),B.appendChild(l.element),B.appendChild(J.element),B.appendChild(v.element);if(R)E.on("state",function(a){if(a=="playing"){E.off("state",arguments.callee);R()}});L&&(s=new t({className:i+"close",document:F}),s.element.appendChild(m.html('<div><div class="adform-video-close-icon">&times;</div></div>',F)),B.className+=" "+i+"stopAlign-"+L,B.appendChild(s.element),s.on("buttonClick",function(){C.pause();r.emit(j.HIDE);r.sendEvent(p.close)}));var X=E.playbackState,xa=!1,k=RegExp("\\s*"+
y+"\\S+|$"),Ab=RegExp("\\s*"+x+"\\S+|$");c(r.data.muted);b("stoped");E.on("state",function(a){xa||b(a)});var pa=0,ka=[0,25,50,75,100],qa=!1,Za="video:start",ba="video:end";P?(E.on("timeupdate",e),d(C,"ended",function(){pa=0.9;e(0)}),G&&d(C,"click",function(){C.play()})):(d(C,"volumechange",function(){c(C.muted)}),E.on("timeupdate",function(a){if(!xa){e(a);v.setProgress(a)}}),E.on("loadProgress",v.setLoadProgress),f.on("buttonClick",function(){if(X=="playing"){C.pause();r.sendEvent(p.pause)}else{C.play();
r.sendEvent(p.play)}}),l.on("buttonClick",function(){X=="playing"&&C.pause();E.setProgress(0);r.sendEvent(p.stop)}),v.on("seek",function(a){E.setProgress(a);e(a,true)}),v.on("startSeek",function(){xa=true;C.pause()}),v.on("endSeek",function(){xa=false;X=="playing"&&C.play()}),J.on("buttonClick",function(){c(!C.muted);C.muted?r.sendEvent(p.soundOff):r.sendEvent(p.soundOn)}));r.pause=function(){C.pause()};r.play=function(){if(!C.src){C.src=E.source.src;C.load()}C.play()};K.appendChild(B);r.created=
!0;r.emit("ready");r.emit("loaded")};e.show=function(){this._element&&!this.created&&this.write()};e.hide=function(){this.created&&(this.restartAnim?this.destroy():this.pause())};e.destroy=function(){this.pause();this.element("",!1);this.created=0};e.sendEvent=function(b){b&&a.Events&&a.Events.sendEvent&&a.Events.sendEvent(this.xId,b.id,this.assetId,b.name,"")};m.inherit(o,b);var R="id,class,width,height,controls,autoplay,poster".split(",");m.inherit(h,b);m.inherit(t,b)})(Adform=window.Adform||{},
window,document);
(function(a){function e(a,j){e.super_.call(this,a,j);this.created=!1;this.data=j;this.adId=c.gid("Adform");this.data.id=this.id="ad"+this.adId;this.assetId=j.assetId||0}a.RMB=a.RMB||{};a=a.RMB;a.Content.ImageTag=e;var c=a.lib,j=c.addEvent;c.inherit(e,a.AdContent);a=e.prototype;e.supported=function(){return!0};e.READY="ready";e.LOADED="loaded";e.HIDE="hide";a.show=function(){this._element&&!this.created&&this.write()};a.hide=function(){};a.write=function(){var a=this,e=a.data,h=a._element,t=a.options,
u=e.useClose,m='<img src="'+e.src+'" border="0" id="'+e.id+'" class="'+(this.className||"")+'" width="'+e.width+'" height="'+e.height+'" alt="" style="cursor:pointer" />';e.link&&(m='<a href="'+e.link+'" target="'+t.landingPageTarget+'">'+m+"</a>");u&&(m+='<img src="'+t.scriptsBase+'assets/images/close-sprite.png" style="width:50px!important;height:50px!important;position:absolute!important;top:0!important;right:0!important;padding:0!important;margin:0!important;cursor:pointer;">');a.element(m,h);
e=c.byTag(a._elem,"img");j(e[0],"load",function(){a.emit("loaded")});u&&j(e[1],"click",function(){a.emit("hide",!0)});a.created=!0;a.emit("ready")};a.destroy=function(){if(this._elem){var a=c.byTag(this._elem,"img")[0];a.src=a.src;this.className=a.className}this.element("",!1);this.created=!1}})(Adform=window.Adform||{},window,document);
(function(a){function e(b,c){var g=this;e.super_.call(g,b,c);g.id="ad"+h.gid("Adform");u.setupPolite.call(g);g.video=!1;u.setCallbacks(g,g.external={});g.external.resize=function(a,b){c.width=a;c.height=b;var e=g.element();if(e&&(e=h.byTag(e,"iframe")[0]))e.height=e.width="100%";g._adbox&&g._adbox.set({width:a,height:b})};g.external.setLayout=function(a){g.external.resize(a.width,a.height);var b=a.type&&h.isMobile&&(h.isIOS||h.isAndroid);g._adbox&&b&&g._adbox.reset(a)};g.sharedEvents=new t;var j=
g.flashvars=c.flashvars,c=h.extend({},c);j.expandTime=b.showTime||0;j.collapseTime=b.hideTime||0;j.behavior=b.behavior;var i=b.landingPageTarget;j.landingPageTarget="_self"==i?"_parent":i;if(i=b.userParams)for(var o in i)i.hasOwnProperty(o)&&!(o in j)&&(j[o]=i[o]);c.id=g.id;g.data=c;g.assetId=c.assetId||0;g.state(m);g.once(a.PAGE_LOAD_COMPLETE,g.write);var x;g.on(u.INSCREEN_INIT,function(){var a=r(b.xId),c=u.INSCREEN_UPDATE;x||(x=!0,a.on("change",function(a){g.callSwfMethod(c,a)}));a={visible:a.get("visible"),
percent:a.get("percent"),loaded:a.get("loaded")};g.callSwfMethod(c,a)})}function c(a,c,e,m){var i=a.domain,r=h.isIE&&11>h.ieVersion&&i!=a.location.hostname,o=r?"frameElement":"this",a=a.createElement("div"),n="<!DOCTYPE html><title>ad</title><base href='"+e.src.replace(/[^\/]+$/,"")+"'>",t="eval("+o+".getAttribute('data-onload'))",m=""+n+"<script>parent."+m+"&&parent."+m+"(window)<\/script><script src='"+e.src+"' charset='UTF-8'><\/script>";a.innerHTML='<iframe width="'+e.width+'" height="'+e.height+
'" src="javascript:\'\'"'+(r?"":' onload="'+t+'"')+' allowtransparency="true" webkitallowfullscreen mozallowfullscreen allowfullscreen marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>';a=a.firstChild;a.setAttribute("data-contents",m);a.setAttribute("data-onload","("+j+")("+o+","+r+")");c.appendChild(a);r&&(a.src="javascript:void(document.write('"+(n+"<script>document.domain='"+i+"';"+t+"<\/script>").replace(/'/g,"\\'").replace(/\//g,"\\/")+"'));")}function j(a,
c){function e(){c?j.open():j.open("text/html","replace");j.write(h);i.__rendered__=!0}var h=a.getAttribute("data-contents"),i=a.contentWindow,j=i.document;i.__rendered__||(i.__rendered__=!0,c?e():setTimeout(e,0))}a.RMB=a.RMB||{};var o=a.RMB;o.Content.HTML=e;var r=o.EngagementAPI,h=o.lib,t=o.EventEmitter,u=o.Content.FlashTag,m="initial";h.inherit(e,o.AdContent);e.READY="ready";e.supported=function(){return!h.isIOS&&!h.isAfmaSDK&&(h.isAndroid||h.isMobile&&!h.isIE)?h.isSafari||h.isChrome||h.isOperaMobile||
h.isFF||h.isInternet||h.isAndroidApp||h.isOperaWebKit:!0};o=e.prototype;o.show=function(){var a=this._element;this.write();setTimeout(function(){a&&(a.style.background="")},100);this.element().style.width=this._width;this.state("visible")};o.hide=function(){var a=this._element;this.state("hidden");a&&this.created&&(this.callSwfMethod("pauseVideo"),a=this.element().style,this._width=a.width,a.width=0)};o.write=function(){var b=this,d=b._element;if(d&&!b.created){var e=b.options,j=b.data,i=b.doc,m=
b.win,o=h.gid("AdformWin");m[o]=function(c){function d(){j.close()}function i(){var d=a.ADFEventsInstance;if(d&&d.addElement){var h=j.documentElement.id=b.id;d.addElement(e.xId,[h],c);return!0}}b._contentWindow=c;var j=c.document,m=b.flashvars;c._Adform=a;c._AdformContent=b;var p=b.options.scriptsBase;c.API_URL=p+"rmb/Adform.DHTML.js?bv="+m.bv;var o='<script src="'+p+"rmb/Adform.WriteHelper.js?bv="+m.bv+'"><\/script>',t=[],u,y=function(a){j._write(a+"<script>document._finish();<\/script>")};j._write=
j.write;j.write=h.isIE&&10>h.ieVersion?function(a){var a=a+"",b;t.length?t.splice(-1,0,a):(b=a.match(/(<\!--[\s\S]*?--\>)|(<script(?:\s+[^>]*)?>[\s\S]*?<\/script>)/i))?(a=b[2],b=RegExp.leftContext+b[0],t.unshift(RegExp.rightContext),a?j._write(b+(a.match(/^<script[^>]+?src/i)?o:"<script>document._continue();<\/script>")):(j._write(b),j._continue())):y(a)}:y;j._continue=function(){var a=t.join("");t.length=0;j.write(a)};j._writeln=j.writeln;j.writeln=function(a){j.write(a+"\r\n")};j._finish=function(){clearTimeout(u);
u=setTimeout(d,10)};var x;h.addEvent(c,"load",function(){if(!x){x=!0;h.removeEvent(c,"load",arguments.callee);if(!i())r(e.xId).on("registered",i);b.emit("loaded")}})};d=b.element(" ",d);c(i,this._container||d,j,o);j=d.style;b._width=j.width;j.width=0;b.created=(new Date).getTime();b.emit("ready")}};o.destroy=function(){if(this._elem&&this.created){this.state("destroyed");var b=h.byTag(this._elem,"iframe")[0],c=b.contentWindow||this._contentWindow,e=a.ADFEventsInstance;e&&e.removeElement&&c.document&&
e.removeElement(this.options.xId,[c.document.documentElement.id],c);this.docCloseTimer=clearTimeout(this.docCloseTimer);c.cleanupAdform&&c.cleanupAdform();c._AdformContent=c._Adform=null;this.sharedEvents.clear();h.isIE&&(b.src="about:blank");this.element("",!1);this.created=0}};o.callSwfMethod=function(a){var c=this.sharedEvents;c.emit.apply(c,arguments);this.emit("call:"+a)};o.state=function(a){var c=this._state,e;a&&a!=c&&(this._state=a,(e=this.sharedEvents).emit("changed:state",a),"visible"==
a?e.emit("show"):"visible"==c&&e.emit("hide"));return this._state}})(Adform=window.Adform||{},window,document);
(function(a,e,c){function j(a){var g=this;j.super_.call(g,a);var p,i=!1,o=a.flash,x=a.video,n=a.image,D=a.polite,z=a.html,a=a.options;if(o&&r.supported(o.version))p=new r(a,o),i=!0;else if(z&&u.supported())p=new u(a,z),i=!o;else if(x&&h.supported(x.sources))p=new h(a,x);else if(n&&t.supported())p=new t(a,n),i=!o&&!z;else return;var G=g.adBox=(new m).publish("adBox",g);a.hidden&&g.hide();D&&t.supported()?(D=new t(a,D),D.style({position:"absolute",top:0,left:0,zIndex:1}),G.content(D,!0),D.on(b,function(){D.off(b,
arguments.callee);G.content(p);if(p instanceof r)p.on(r.LOADED,function(){D.clear()});else D.clear()})):G.content(p,!0);g.onEngage=function(){g.onEngage=null;G.content().emit(b)};g.setupEngagement(G);o=p.data;a.iab&&!1!==a.iabResize&&(x=e.frameElement.style,x.width=o.width+"px",x.height=o.height+"px");x=a.iframeAPI;x.hasAPI&&x.register(o);o={position:a.position};a.$tag&&(o.before=a.$tag);G.draw(c,o);g.setupUtils(G.id,i?p.id:null);g.setupGateway(G)}a.RMB=a.RMB||{};var o=a.RMB;o.Type.Standard=j;var r=
o.Content.FlashTag,h=o.Content.VideoTag,t=o.Content.ImageTag,u=o.Content.HTML,m=o.AdBox,b=a.PAGE_LOAD_COMPLETE;o.lib.inherit(j,o.AdConstructor);a=j.prototype;a.BANNER_TYPE="Standard Banner";a.destroy=function(){this.adBox&&this.adBox.destroy();this.adBox=null};a.show=function(){this._hidden&&(this._hidden=!1,this.adBox.set("visible",!0))};a.hide=function(){this._hidden||(this._hidden=!0,this.adBox.set("visible",!1),this.reload())}})(Adform=window.Adform||{},window,document);Adform.RMB.AdConstructor.build();