(function(){var inDapIF=window.inDapIF||window.inFIF||window.RMIF,wnd=function(a){return inDapIF?a.parent:a}(window),doc=function(a){return a.document}(wnd),cssLoader=function(b){var a={};return a.loadStyle=function(e,j,d){d&&(b+=d);var h=b.replace(new RegExp("vr-namespace","g"),"vr-"+j),g=e.createElement("style");if(g.id="vr-"+j,!e.getElementsByTagName("head").length){var c=e.createElement("head");e.documentElement.insertBefore(c,e.body)}if(e.getElementsByTagName("head")[0].appendChild(g),g.styleSheet){g.styleSheet.disabled||(g.styleSheet.cssText=h)}else{try{g.innerHTML=h}catch(f){g.innerText=h}}return"vr-"+j},a}(".vr-namespace-modal{position:fixed;top:0;left:0;display:none;width:100%;height:100%;overflow:hidden;margin:0;z-index:2147483647;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAEElEQVR42gEFAPr/AAAAAMwA0QDNTiUx4gAAAABJRU5ErkJggg==)}.vr-namespace-wrapper{position:relative;text-align:center;padding-bottom:56.25%}.vr-namespace-modal>.vr-namespace-wrapper{top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.vr-namespace-modal_inner{position:absolute;top:15%;left:15%;right:15%;bottom:15%;-webkit-box-shadow:0 0 25px rgba(0,0,0,.6);-moz-box-shadow:0 0 25px rgba(0,0,0,.6);box-shadow:0 0 25px rgba(0,0,0,.6)}.vr-namespace-modal_inner>iframe,.vr-namespace-modal_inner>img,.vr-namespace-modal_inner>video{width:100%}.vr-namespace-modal_inner.vr-namespace-bottombar_enable{margin-bottom:-20px}.vr-namespace-slot{position:fixed;z-index:10000;background-color:#FFF;border:1px solid #666;cursor:pointer;-webkit-box-shadow:0 0 90px #000;-moz-box-shadow:0 0 90px #000;box-shadow:0 0 90px #000;-webkit-transition:bottom .2s,left .2s,right .2s;-moz-transition:bottom .2s,left .2s,right .2s;-o-transition:bottom .2s,left .2s,right .2s;transition:bottom .2s,left .2s,right .2s}.vr-namespace-slot_toggle{position:absolute;width:22px;height:22px;z-index:10000;background-color:rgba(255,255,255,.1);-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;background-image:url(data:image/png;base64,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)}.vr-namespace-slot-footer{bottom:0;left:50%;margin-left:-364px}.vr-namespace-slot-footer-hidden{bottom:-92px}.vr-namespace-slot_toggle-footer{top:-25px;left:50%;background-position:44px 0}.vr-namespace-slot_toggle-footer:hover{background-position:44px 22px}.vr-namespace-slot-footer-hidden .vr-namespace-slot_toggle-footer{background-position:110px 0}.vr-namespace-slot-footer-hidden .vr-namespace-slot_toggle-footer:hover{background-position:110px 22px}.vr-namespace-slot_content-desktop-footer{width:728px;height:90px;display:block}.vr-namespace-slot_content-mobile-footer{width:300px;height:50px;display:none}@media screen and (max-width:750px){.vr-namespace-slot-footer{margin-left:-150px}.vr-namespace-slot-footer-hidden{bottom:-52px}.vr-namespace-slot_content-desktop-footer{display:none}.vr-namespace-slot_content-mobile-footer{display:block}}.vr-namespace-slot-left{left:0;top:50%;margin-top:-200px}.vr-namespace-slot-left-hidden{left:-242px}.vr-namespace-slot_toggle-left{right:-25px;top:50%;background-position:0 0}.vr-namespace-slot_toggle-left:hover{background-position:0 22px}.vr-namespace-slot-left-hidden .vr-namespace-slot_toggle-left{background-position:66px 0}.vr-namespace-slot-left-hidden .vr-namespace-slot_toggle-left:hover{background-position:66px 22px}.vr-namespace-slot_content-desktop-left{width:240px;height:400px;display:block}.vr-namespace-slot_content-mobile-left{width:200px;height:110px;display:none}@media only screen and (max-width:640px),only screen and (max-height:500px){.vr-namespace-slot-left{margin-top:-55px}.vr-namespace-slot-left-hidden{left:-202px}.vr-namespace-slot_content-desktop-left{display:none}.vr-namespace-slot_content-mobile-left{display:block}}.vr-namespace-slot-right{right:0;top:50%;margin-top:-200px}.vr-namespace-slot-right-hidden{right:-242px}.vr-namespace-slot_toggle-right{left:-25px;top:50%;background-position:66px 0}.vr-namespace-slot_toggle-right:hover{background-position:66px 22px}.vr-namespace-slot-right-hidden .vr-namespace-slot_toggle-right{background-position:0 0}.vr-namespace-slot-right-hidden .vr-namespace-slot_toggle-right:hover{background-position:0 22px}.vr-namespace-slot_content-desktop-right{width:240px;height:400px;display:block}.vr-namespace-slot_content-mobile-right{width:200px;height:110px;display:none}@media only screen and (max-width:640px),only screen and (max-height:500px){.vr-namespace-slot-right{margin-top:-55px}.vr-namespace-slot-right-hidden{right:-202px}.vr-namespace-slot_content-desktop-right{display:none}.vr-namespace-slot_content-mobile-right{display:block}}.vr-namespace-vip{position:fixed;display:none;height:auto;overflow:hidden;margin:0;z-index:2147483647}.vr-namespace-visible{display:block}.vr-namespace-vip_inner{position:absolute;top:0;left:0;right:0;bottom:0}.vr-namespace-vip_inner>iframe,.vr-namespace-vip_inner>img,.vr-namespace-vip_inner>video{width:100%}@media screen and (min-width:1025px)and (orientation:landscape){.vr-namespace-desktop-top{top:20px;transform:translateX(-50%)}.vr-namespace-desktop-bottom,.vr-namespace-desktop-top{left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.vr-namespace-desktop-bottom{bottom:20px;transform:translateX(-50%)}.vr-namespace-desktop-top-left{top:20px;left:1%}.vr-namespace-desktop-top-right{top:20px;right:20px}.vr-namespace-desktop-bottom-left{bottom:20px;left:20px}.vr-namespace-desktop-bottom-right{bottom:20px;right:20px}.vr-namespace-vip.vr-namespace-desktop-25{width:25%;min-width:400px}.vr-namespace-vip.vr-namespace-desktop-50{width:50%;min-width:400px}.vr-namespace-vip.vr-namespace-desktop-75{width:75%;min-width:400px}.vr-namespace-vip.vr-namespace-desktop-100{width:100%;min-width:400px}}@media screen and (max-width:1024px)and (orientation:landscape){.vr-namespace-vip_inner{position:absolute;top:5%;left:5%;right:5%;bottom:5%;margin-bottom:-20px}.vr-namespace-vip>.vr-namespace-wrapper{margin-bottom:20px}.vr-namespace-mobile-landscape-top{top:0;transform:translateX(-50%)}.vr-namespace-mobile-landscape-bottom,.vr-namespace-mobile-landscape-top{left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.vr-namespace-mobile-landscape-bottom{bottom:5px;transform:translateX(-50%)}.vr-namespace-mobile-landscape-top-left{top:0;left:0}.vr-namespace-mobile-landscape-top-right{top:0;right:0}.vr-namespace-mobile-landscape-bottom-left{bottom:5px;left:0}.vr-namespace-mobile-landscape-bottom-right{bottom:5px;right:0}.vr-namespace-vip.vr-namespace-mobile-landscape-25{width:25%}.vr-namespace-vip.vr-namespace-mobile-landscape-50{width:50%}.vr-namespace-vip.vr-namespace-mobile-landscape-75{width:75%}.vr-namespace-vip.vr-namespace-mobile-landscape-100{width:100%}}@media screen and (orientation:portrait){.vr-namespace-vip_inner{position:absolute;top:5%;left:5%;right:5%;bottom:5%;margin-bottom:-20px}.vr-namespace-vip>.vr-namespace-wrapper{margin-bottom:20px}.vr-namespace-mobile-portrait-top{top:0;transform:translateX(-50%)}.vr-namespace-mobile-portrait-bottom,.vr-namespace-mobile-portrait-top{left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.vr-namespace-mobile-portrait-bottom{bottom:5px;transform:translateX(-50%)}.vr-namespace-mobile-portrait-top-left{top:0;left:0}.vr-namespace-mobile-portrait-top-right{top:0;right:0}.vr-namespace-mobile-portrait-bottom-left{bottom:5px;left:0}.vr-namespace-mobile-portrait-bottom-right{bottom:5px;right:0}.vr-namespace-vip.vr-namespace-mobile-portrait-25{width:25%}.vr-namespace-vip.vr-namespace-mobile-portrait-50{width:50%}.vr-namespace-vip.vr-namespace-mobile-portrait-75{width:75%}.vr-namespace-vip.vr-namespace-mobile-portrait-100{width:100%}}"),utils=function(c,b){var d={};d.urlEncode=function(g){var f=[];for(var h in g){g.hasOwnProperty(h)&&f.push(h+"="+encodeURIComponent(g[h]))}return f.join("&")},d.getViewportSize=function(g){var f="inner",h=g;return"innerWidth" in g||(f="client",h=h.document.documentElement||h.document.body),{width:h[f+"Width"],height:h[f+"Height"]}},d.getScreenSize=function(f){return{width:f.screen.width,height:f.screen.height}},d.getPageSize=function(f){return{width:f.document.body.scrollWidth,height:f.document.body.scrollHeight}},d.setCookie=function(k,m,g){var l=(new Date).valueOf(),j=new Date(86400000+l);j.setHours(0,0,0,0),g=g||j;var f=Math.floor((g-l)/1000),h=k+"="+m+";path=/;max-age="+f+";expires="+g.toUTCString();return b.cookie=h,h},d.getCookie=function(g){g=c.encodeURIComponent(g),g=g.replace(/[\-\.\+\*]/g,"\\$&");var e=new RegExp("(?:(?:^|.*;)\\s*"+g+"\\s*\\=\\s*([^;]*).*$)|^.*$"),f=b.cookie.replace(e,"$1");return""!==f?c.decodeURIComponent(f):null},d.deleteCookie=function(f){b.cookie=f+"=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;"},d.parseOrigin=function(f){var g=b.createElement("a");return g.href=f,detect.detectIE()&&g.host.split(":").length>1?g.protocol.split(":")[0]+"://"+g.hostname:g.protocol.split(":")[0]+"://"+g.host},d.isNumber=function(f){return !isNaN(parseFloat(f))&&isFinite(f)},d.extend=function(){for(var g=1;g<arguments.length;g++){for(var f in arguments[g]){arguments[g].hasOwnProperty(f)&&(arguments[0][f]=arguments[g][f])}}return arguments[0]},d.filter=function(h,g){for(var k=[],f=0;f<h.length;f++){var j=h[f];g(j)&&k.push(j)}return k},d.classNamePrefix=function(h,g){for(var j=0,f=g.length;f>j;j++){g[j]=h+"-"+g[j]}return g.join(" ")},d.addEventListener=function(g,f,h){g.addEventListener?g.addEventListener(f,h,!1):g.attachEvent&&g.attachEvent("on"+f,h)},d.removeEventListener=function(g,f,h){g.removeEventListener?g.removeEventListener(f,h,!1):g.detachEvent&&g.detachEvent("on"+f,h)},d.bind=function(e,f){return function(){return e.apply(f,c.Array.prototype.slice.call(arguments))}};try{new CustomEvent("?"),d.CustomEvent=CustomEvent}catch(a){d.CustomEvent=function(g,j){function f(k,l){var e=b.createEvent(g);return null!==k?h.call(e,k,(l||(l=j)).bubbles,l.cancelable,l.detail):e.initCustomEvent=h,e}function h(k,m,e,l){this["init"+g](k,m,e,l),"detail" in this||(this.detail=l)}return f}(c.CustomEvent?"CustomEvent":"Event",{bubbles:!1,cancelable:!1,detail:null})}return d.hashCode=function(h){var g,k,f,j=0;if(0===h.length){return j}for(g=0,f=h.length;f>g;g++){k=h.charCodeAt(g),j=(j<<5)-j+k,j|=0}return j},d.pad=function(g,f){for(var h=String(g);h.length<(f||2);){h="0"+h}return h},d.throwException=function(f){setTimeout(function(){throw f},0)},d.getCustomCss=function(g){var j=g.getAttribute("data-custom-style"),f="";if(j){var h=b.getElementById(j);h?f=h.innerHTML:this.throwException("Couldn't find the custom style tag "+j)}return f},d}(wnd,doc);utils=function(b){function a(c){return this instanceof a?void (c?void 0!==c.getAttribute?this.content={width:c.getAttribute("data-width"),height:c.getAttribute("data-height"),test:c.getAttribute("data-test"),cb_url:c.getAttribute("data-cburl"),cb_msg:c.getAttribute("data-cbmsg"),cid:c.getAttribute("data-cid"),suffix_id:c.getAttribute("data-suffix-id"),autoplay:c.getAttribute("data-autoplay"),sound:c.getAttribute("data-sound"),category:c.getAttribute("data-category"),tags:c.getAttribute("data-tags")}:c instanceof a?(this.content={},this.update(c)):this.content=c:this.content={}):new a(c)}return a.prototype.get=function(d,c){return 1===arguments.length&&(c=null),void 0!==this.content[d]?this.content[d]:c},a.prototype.set=function(d,c){return this.content[d]=c,this},a.prototype.update=function(d){d instanceof a||(d=new a(d));for(var f in d.content){var c=d.content[f];c&&(this.content[f]=c)}return this},b.ConfigWrapper=a,b}(utils),utils=function(c,b,d){function a(f){return this instanceof a?void (this.elem=f):new a(f)}return a.create=function(g,i){var h=new a(b.createElement(g));if(i){for(var f in i){h.attr(f,i[f])}}return h},a.get=function(f){var g=b.querySelector(f);return null!==g&&(g=new a(g)),g},a.getById=function(f){var g=b.getElementById(f);return null!==g&&(g=new a(g)),g},a.getAll=function(g){for(var i=b.querySelectorAll(g),h=[],f=0;f<i.length;f++){h[f]=new a(i[f])}return h},a.remove=function(f){var g=b.getElementById(f);null!==g&&g.parentNode&&g.parentNode.removeChild(g)},a.removeByClass=function(g){for(var j=b.getElementsByClassName(g),f=j.length-1;f>=0;f--){var h=j[f];h.parentNode.removeChild(h)}},a.insertHTMLBefore=function(k,p,j){if(""===j){return null}var g=d.Element.create("ins",{id:p});g.elem.innerHTML=j,k.parentNode.insertBefore(g.elem,k);for(var f=g.elem.getElementsByTagName("script"),n=0;n<f.length;n++){for(var q=document.createElement("script"),h=f[n].attributes,m=0;m<h.length;m++){q[h[m].nodeName]=h[m].value}f[n].innerHTML&&(q.text=f[n].innerHTML),f[n].parentNode.replaceChild(q,f[n])}return this},a.prototype.remove=function(){this.elem.parentNode.removeChild(this.elem)},a.prototype.attr=function(g,f){return this.elem.setAttribute(g,f),this},a.prototype.appendTo=function(f){return f.appendChild(this.elem),this},a.prototype.append=function(f){return f.nextSibling?f.parentNode.insertBefore(this.elem,f.nextSibling):f.parentNode.appendChild(this.elem),this},a.prototype.prepend=function(f){return f.parentNode.insertBefore(this.elem,f),this},a.prototype.text=function(f){return void 0===f?"textContent" in b.body?this.elem.textContent:this.elem.innerText:("textContent" in b.body?this.elem.textContent=f:this.elem.innerText=f,this)},a.prototype.offset=function(){var h=this.elem.getBoundingClientRect(),k=b.body,g=b.documentElement,e=c.pageYOffset||g.scrollTop||k.scrollTop,q=c.pageXOffset||g.scrollLeft||k.scrollLeft,t=g.clientTop||k.clientTop||0,j=g.clientLeft||k.clientLeft||0,m=h.top+e-t,f=h.left+q-j;return{top:Math.round(m),left:Math.round(f)}},a.prototype.hasClass=function(f){return new RegExp(" "+f+" ").test(" "+this.elem.className+" ")},a.prototype.addClass=function(f){return this.hasClass(f)||(this.elem.className+=(this.elem.className.length?" ":"")+f),this},a.prototype.removeClass=function(f){return this.hasClass(f)&&(this.elem.className=this.elem.className.replace(f,"").replace(/\s+$/g,"")),this},a.prototype.hide=function(){return this.elem.style.display="none",this},a.prototype.show=function(){return this.elem.style.visibility="visible",this},d.Element=a,d}(wnd,doc,utils);var viewability=function(g){var d={},j=["scroll","resize","focus","blur","check","checkAndNotify"],c=["visibilitychange","mozvisibilitychange","msvisibilitychange","webkitvisibilitychange"],h=function(){for(var i=["hidden","mozHidden","webkitHidden","msHidden","oHidden"],a=0;a<i.length;a++){var k=i[a];if(k in document){return k}}return null}(),f=1,b=d.Monitor=function(l,k,m){if(!(this instanceof b)){return new b(l,k)}this.wnd=k,this.element=l,this.inIframe=k.top!==(m?k.self.parent:k.self),this.callback=null,this.stopped=!0,this.elementAncestors=[];for(var a=this.element;a;){this.elementAncestors.unshift(a),a=a.parentNode}};return b.prototype.inFocus=function(){var i=this.wnd,a=i.document[h];return void 0!==a?!a:"function"==typeof i.document.hasFocus?i.document.hasFocus():!0},b.prototype.check=function(){var C,q=this.element,w=this.elementAncestors;if("none"===q.style.display||"hidden"===q.style.visibility){return 0}for(C=0;C<w.length;C++){var k=w[C].style;if(k&&("none"===k.display||"hidden"===k.visibility)){return 0}}if(!this.inFocus()){return 0}var A=g.getViewportSize(this.wnd),D=q.getBoundingClientRect();if(D.bottom<=0||D.right<=0||D.top>=A.height||D.left>=A.width){return 0}var v=D.width*D.height;if(f>v){return 0}var z=Math.ceil(Math.max(0,D.left)),e=Math.ceil(Math.min(A.width,D.right)),y=Math.ceil(Math.max(0,D.top)),r=Math.ceil(Math.min(A.height,D.bottom)),x=(e-z)*(r-y),B=Math.floor(x/v*100);return B},b.prototype.start=function(k){function p(){e.stopped||(m(),e.checkTimer=i.setTimeout(p,1000))}if(!this.inIframe&&void 0!==k){this.stopped=!1,this.callback=k;var n,i=this.wnd,m=this.boundedHandler=g.bind(this.handler,this);for(n=0;n<j.length;n++){g.addEventListener(i,j[n],m)}for(n=0;n<c.length;n++){g.addEventListener(i.document,c[n],m)}m();var e=this;if(i.MutationObserver){var q=function(l){var a;this.elementAncestors=[];for(var o=0;o<l.length;o++){a=l[o],a.target.contains(this.element)&&this.elementAncestors.push(a.target)}this.elementAncestors.length&&m()};this.observer=new MutationObserver(g.bind(q,this)),this.observer.observe(i.document.body,{attributes:!0,subtree:!0})}else{p()}}},b.prototype.stop=function(){this.stopped=!0;var a,i=this.boundedHandler,e=this.wnd;for(a=0;a<j.length;a++){g.removeEventListener(e,j[a],i)}for(a=0;a<c.length;a++){g.removeEventListener(e.document,c[a],i)}this.observer&&this.observer.disconnect(),this.checkTimer&&e.clearInterval(this.checkTimer)},b.prototype.handler=function(){var a=this.check();this.callback(a,this.inFocus())},b.prototype.setupCommunication=function(q,m,u,l,s){var p=this;q.on("cmd::startViewability",function(){p.inIframe?m.post("inj::viewabilityNotAvailable"):(m.post("inj::viewabilityAvailable"),p.start(function(a,i){m.post("inj::viewability",{perc:a,focus:i})}))},u,l),q.on("cmd::stopViewability",function(){p.stop()},u,l);var k=function(){return{perc:p.check(),focus:p.inFocus()}};s=s||k,q.on("cmd::getViewability",function(t,v){var a="";v.timing&&(a="::"+v.timing);var o="inj::viewability"+a;m.post(o,s(k))},u,l)},d}(utils),detect=function(b){var a={};return a.detectAutoplay=function(){var c,d=[/mobile/i,/android/i,/(iphone|ipad|ipod)/i,/silk-accelerated/i];for(c=0;c<d.length;c++){if(b.navigator&&b.navigator.userAgent&&b.navigator.userAgent.match(d[c])){return !1}}return !0},a.detectMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},a.detectIE=function(){return/Netscape|Internet Explorer/i.test(navigator.appName)&&/Trident/i.test(navigator.userAgent)},a}(wnd),Pool=function(b,a){var c=function(f,d){return this instanceof c?(this.targetWindow=f,this.targetFilter=d||"*",void (this.callbacks={})):new c(f,d)};return c.prototype.remove=function(){b.removeEventListener(this.targetWindow,"message",this.boundedHandler)},c.decode=function(f){var g={};try{g=JSON.parse(a.decodeURIComponent(f))}catch(d){}return g},c.encode=function(d){return a.encodeURIComponent(JSON.stringify(d))},c.prototype.post=function(g,f,d){d=d||this.targetFilter,f=f||{},f._ns=g,this.targetWindow.postMessage(c.encode(f),d)},c.prototype.addCallback=function(e,h,d,g,f){this.callbacks[e]=this.callbacks[e]||[],this.callbacks[e].push({fn:h,expectedSrc:d,expectedOrigin:g,onlyOnce:f}),void 0===this.boundedHandler&&(this.boundedHandler=b.bind(this.handler,this),b.addEventListener(this.targetWindow,"message",this.boundedHandler))},c.prototype.on=function(h,f,k,d,j){h=h.split(" ");for(var g=0;g<h.length;g++){this.addCallback(h[g],f,k,d,j)}},c.prototype.onOnce=function(g,f,h,d){return this.on(g,f,h,d,!0)},c.prototype.handler=function(k){var g,f=[],l=c.decode(k.data),j=this.callbacks[l._ns]||[];for(g=0;g<j.length;g++){var d=j[g];(void 0===d.expectedSrc||d.expectedSrc===k.source)&&(void 0===d.expectedOrigin||d.expectedOrigin===k.origin)&&(d.fn(k,l),d.onlyOnce===!0&&f.push(d))}for(g=0;g<f.length;g++){var h=j.indexOf(f[g]);h>=0&&j.splice(h,1)}},c}(utils,wnd),FrequencyCapping=function(){var a=function(c){if(!(this instanceof a)){return new a(c)}this.config=c,this.maxValue=this.config.capping_count;var f=this.config.zid,b=this.config.f;if(f&&0!==this.maxValue){if(this.cookieName="__VR_fc_"+f+"_"+b,this.cookieValue=utils.getCookie(this.cookieName),this.cookieValue){var e=this.cookieValue.split("-");this.hits=parseInt(e[0],10),this.expireTime=new Date(parseInt(e[1],10))}else{var d=(new Date).valueOf();this.hits=0,this.expireTime=new Date(d+1000*parseInt(this.config.capping_interval,10))}}};return a.prototype.incHits=function(){if(this.cookieName){var b=this.hits+1+"-"+this.expireTime.valueOf();return utils.setCookie(this.cookieName,b,this.expireTime)}},a.prototype.reachedCapping=function(){return this.cookieName?this.maxValue>0&&this.hits>=this.maxValue:!1},a}(),viralize=function(c,b){c.__VR=c.__VR||{},c.__VR.widgets=c.__VR.widgets||[];var d="((https?:)?//)?{endpoint_host}/.*[?&]",a={};return a.findScript=function(m,u,k){var h=document.getElementsByTagName("script"),f=null,q=null,v=null,j=null;"undefined"!=typeof u&&null!==u&&(q=d+"zid="+u,q=q.replace("{endpoint_host}",m),v=new RegExp(q,"gi")),"undefined"!=typeof k&&null!==k&&(q=d+"wid="+k,q=q.replace("{endpoint_host}",m),j=new RegExp(q,"gi"));for(var n=function(i){return i.hasAttribute("data-injected")?!1:null!==i.getAttribute("data-wid")||v&&v.test(i.getAttribute("src"))||j&&j.test(i.getAttribute("src"))?!0:!1},g=h.length;g--&&(f=h[g],!n(f));){}return f},a.findIframe=function(){return window.frameElement},a.findAutoplay=function(){for(var e=0;e<c.__VR.widgets.length;e++){if(c.__VR.widgets[e].config&&("onload"===c.__VR.widgets[e].config.autoplay||"auto"===c.__VR.widgets[e].config.autoplay)){return c.__VR.widgets[e]}}return !1},a.getSrc=function(i,k,j){var h=b.createElement("a"),f=a.findScript(i,k,j);h.href=f.getAttribute("src");var g=b.location.protocol.replace(":","");return g.match(/https?/)||(g="http"),g+"://"+h.host},a.generateSuffixId=function(){return Math.random().toString(32).substr(2)},a.markAsInjected=function(f){f.hasAttribute("data-injected")||f.setAttribute("data-injected",!0)},a.register=function(e){c.__VR.widgets.push(e)},a.createPlayerIframe=function(k,v){var j="viralize-video-iframe-"+k.get("suffix_id",""),e=utils.Element.create("iframe",{id:j,scrolling:"no",frameborder:0,marginheight:0,marginwidth:0,allowfullscreen:b.fullscreenEnabled,webkitallowfullscreen:b.webkitFullscreenEnabled,mozallowfullscreen:b.mozFullScreenEnabled});e.elem.style.width="100%",e.elem.style.height="100%";for(var A={},C=["cid","sid","ecg_sid","category","tags","cb_msg","cb_url","autoplay","sound","bottom","wid","zid","width","height","f","forceview","it_url","enable_auto_fallback","enable_full_redirect","enable_full_viewability","enable_fc_ignore","force_vast_compatible","vast_selector","device","dp1","vpaid_timeout","enable_mobi_vast_preload","video_session_id","enable_controlbar"],t=0,z=C.length;z>t;t++){var g=C[t],y=k.get(g);"undefined"!=typeof y&&null!==y&&(A[g]=y)}if(b.referrer&&(A.r=b.referrer),k.get("test")&&(A.test=1),k.get("page_url")&&(A.u=k.get("page_url")),k.get("cb_vars")){var q=k.get("cb_vars");for(var w in q){q.hasOwnProperty(w)&&(A["pub_"+w]=q[w])}}k.get("enable_fif",!0)&&(A.type="json"),v+=-1===v.indexOf("?")?"/player/?":"&";var B=function(I){var u=+new Date;u=utils.pad(u.toString(16),12);for(var E="",m=0;52>m;m++){E+=Math.round(Math.random()).toString()}E=parseInt(E,2).toString(16);var f=c.top.navigator,H=I.get("publisher"),J=I.get("page_url"),D=f?f.userAgent||"":"",G=utils.hashCode(H+J+D),h=utils.pad((16777215&G).toString(16),6),F=0;return u+E+h+F},x=c.__VR.pageId=c.__VR.pageId||B(k);return A.player_session=JSON.stringify({page_id:x,screen:utils.getScreenSize(window),page:utils.getPageSize(window),viewport:utils.getViewportSize(window)}),v+=utils.urlEncode(A),k.get("enable_fif",!0)?(e.attr("src","javascript:false"),e.sourceContent="<body onload=\"var Xhr = function(){try {return new XMLHttpRequest();}catch(e){}try {return new ActiveXObject('Msxml3.XMLHTTP');}catch(e){};try {return new ActiveXObject('Msxml2.XMLHTTP.6.0');}catch(e){};try {return new ActiveXObject('Msxml2.XMLHTTP.3.0');}catch(e){};try {return new ActiveXObject('Msxml2.XMLHTTP');}catch(e){};try {return new ActiveXObject('Microsoft.XMLHTTP');}catch(e){};return null;};var xhttp = Xhr();xhttp.open('GET', '"+v+"', true);xhttp.onreadystatechange = function() {  if (xhttp.readyState == 4 && xhttp.status == 200) {  var response = JSON.parse(xhttp.responseText);  var doc = document.open();  doc.write(response.html);  doc.close();}};xhttp.send();\">"):e.attr("src",v),e},a}(wnd,doc),Outstream=function(h,k,d,g,c,b,j,m){function f(i,a){return this instanceof f?(this.slots={},this.cssNamespace="",this.src=a,this.config=new c.ConfigWrapper(i),this.script=null,this.isPreview=this.config.get("is_preview"),void (this.frequencyCappingManager=new FrequencyCapping(i))):new f(i,a)}return f.createModal=function(i){var a=c.Element.create("div",{tabindex:"-1",role:"dialog","aria-labelledby":"modal-label","aria-hidden":"true"});return a.addClass(c.classNamePrefix(i,["outstream","modal"])),a},f.createSlot=function(x,u){var y=x.position,q=c.Element.create("div");q.addClass(c.classNamePrefix(u,["slot","slot-"+y])),q.setDesktopImage=function(a){p.elem.style.backgroundImage='url("'+a+'")'},q.setMobileImage=function(a){v.elem.style.backgroundImage='url("'+a+'")'},q.hide=function(){q.addClass(c.classNamePrefix(u,["slot-"+y+"-hidden"]))},q.show=function(){q.removeClass(c.classNamePrefix(u,["slot-"+y+"-hidden"]))},q.isVisible=function(){return !q.hasClass(c.classNamePrefix(u,["slot-"+y+"-hidden"]))};var w=!1;if(x.srcDesktop){var p=c.Element.create("div");p.addClass(c.classNamePrefix(u,["slot_content-desktop","slot_content-desktop-"+y])),p.appendTo(q.elem),q.setDesktopImage(x.srcDesktop),w=!0}if(x.srcMobile){var v=c.Element.create("div");v.addClass(c.classNamePrefix(u,["slot_content-mobile","slot_content-mobile-"+y])),v.appendTo(q.elem),q.setMobileImage(x.srcMobile),w=!0}if(w){var o=c.Element.create("div");o.addClass(c.classNamePrefix(u,["slot_toggle","slot_toggle-"+y])),o.appendTo(q.elem),c.addEventListener(o.elem,"click",function(a){q.isVisible()?q.hide():q.show(),a.stopPropagation()})}return q},f.createVip=function(s,p,u){var o=c.Element.create("div",{tabindex:"-1",role:"dialog","aria-labelledby":"modal-label","aria-hidden":"true"});0===p.length&&(p=["desktop-bottom-right","mobile-landscape-bottom-right","mobile-portrait-bottom-right"]);for(var q=0;q<p.length;q++){o.addClass(c.classNamePrefix(s,["outstream","vip",p[q]]))}for(var l=0;l<u.length;l++){o.addClass(c.classNamePrefix(s,["outstream","vip",u[l]]))}return o},f.prototype.setupCommunication=function(){var e=c.parseOrigin(this.src),l=this.playerIframe.elem.contentWindow;this.config.get("enable_fif",!0)&&(e=h.location.origin),this.playerOrigin=e,this.playerWindow=l;var a=new b(h,h.location.origin);this.playerPool=new b(l,e),this.injectorPool=a,a.on("cmd::showslot",c.bind(function(n,i){this.showSlot(i)},this),l,e),a.on("cmd::removeslot",c.bind(function(n,i){this.removeSlot(i)},this),l,e),a.on("cmd::showmodal",c.bind(function(){this.showModal()},this),l,e),a.on("cmd::hidemodal",c.bind(function(){this.hideModal()},this),l,e),a.on("cmd::remove",c.bind(function(){this.removeModal()},this),l,e),a.on("cmd::fallback",c.bind(this.handleFallback,this),l,e)},f.prototype.handleFallback=function(){var i="viralize-fallback-"+this.config.get("suffix_id",""),a=c.Element.insertHTMLBefore(this.script,i,this.config.get("fallback_body"));this.wrapperElement&&this.wrapperElement.hide(),a&&this.playerPool&&this.playerPool.post("inj::fallback")},f.prototype.showSlot=function(l){var o=l.position,a=this.slots[o];a||(a=f.createSlot(l,this.cssNamespace),a.appendTo(k.body),this.slots[o]=a,c.addEventListener(a.elem,"click",c.bind(function(){this.playerPool.post("inj::slotclicked",l)},this))),this.playerPool.post("inj::slotshown",l)},f.prototype.removeSlot=function(i){var a=this.slots,l={};i&&i.position&&a[i.position]&&(a[i.position].remove(),delete a[i.position],l=i),this.playerPool.post("inj::slotremoved",l)},f.prototype.showModal=function(){this.modal.addClass(c.classNamePrefix(this.cssNamespace,["visible"])),this.frequencyCappingManager.incHits(),this.playerPool.post("inj::modalshown")},f.prototype.hideModal=function(){this.modal.removeClass(c.classNamePrefix(this.cssNamespace,["visible"])),this.playerPool.post("inj::modalhidden")},f.prototype.removeModal=function(){this.modal.remove()},f.prototype.inject=function(D){var t=null,L=null,B=null;this.config.content&&(t=this.config.content.zid,L=this.config.content.wid,B=this.config.content.endpoint_host);var K=document.currentScript||m.findScript(B,t,L);null!==K&&(this.config.update(K),m.markAsInjected(K)),this.script=K;var F=this.config,H=this.config.get("enable_fc_ignore");if(!this.isPreview&&!H&&this.frequencyCappingManager.reachedCapping()){return this.handleFallback(),null}var o=F.get("width"),J=F.get("height"),I=c.getViewportSize(h);if(o&&J&&o>I.width){return null}var l,M=c.getCustomCss(K),i=this.config.get("suffix_id")||m.generateSuffixId(),e=this.cssNamespace=g.loadStyle(k,i,M);l=-1!==F.get("fmt").indexOf("thumbstream")?f.createVip(e,this.config.get("thumb_positions"),this.config.get("thumb_sizes")):f.createModal(e),this.modal=l;var a=this.wrapperElement=c.Element.create("div");a.attr("class",c.classNamePrefix(e,["outstream","wrapper"])),a.appendTo(l.elem);var z=c.Element.create("div"),G=["outstream","modal_inner"];if(-1!==F.get("fmt").indexOf("thumbstream")&&(G.pop(),G.push("vip_inner")),F.get("enable_bottom_bar")&&G.push("bottombar_enable"),z.attr("class",c.classNamePrefix(e,G)),z.appendTo(a.elem),o&&J){var N=z.elem.style;N.width=o+"px",N.height=J+"px"}if(D||(D=m.createPlayerIframe(this.config,this.src)),D.appendTo(z.elem),this.playerIframe=D,l.appendTo(k.body),this.config.get("enable_fif",!0)){var s=D.elem.contentWindow.document;s.open().write(D.sourceContent),s.close()}this.setupCommunication();var q=new j.Monitor(D.elem,h);q.setupCommunication(this.injectorPool,this.playerPool,this.playerWindow,this.playerOrigin),m.register(this)},f}(wnd,doc,inDapIF,cssLoader,utils,Pool,viewability,viralize);;var f=new Outstream({"cb_vars": {}, "thumb_sizes": [], "ecg_sid": "01e5d952b9cfd6aaffcab8b7202cc011", "mraid_compatible": false, "wid": "175714f4-cc2f-11e5-8f6a-bc764e04e44c", "enable_disclaimer": false, "forceview": false, "vpaid_timeout": 8000, "thumb_positions": [], "dp1": 0.2, "fmt": "overlay-autoplay", "companions": [], "suffix_id": "0YTqc4mA", "enable_fif": true, "capping_interval": 86400, "endpoint_host": "ads.viralize.tv", "zid": "AAA2AuvZAuHVwj4g", "location": ["inline"], "cb_url": "", "test": false, "vast_selector": "auto", "raven": false, "cb_msg": true, "is_preview": false, "sid": "b9cfd420-d952-11e5-bedd-0242ac110002", "fallback_body": "", "vast_compatible": false, "enable_fc_ignore": false, "autoplay": "onload", "device": "D", "capping_count": 1, "cids": [], "enable_auto_fallback": true, "sound": "on", "publisher": "1965", "enable_full_redirect": false, "f": "interstitial", "cid": "0", "disclaimer": "", "enable_bottom_bar": true, "it_url": "", "page_url": "http://clubalfa.it/"}, "http://ads.viralize.tv");f.inject();})();