var YAD=function(m,b,a){var r=this;function d(v){if(!v||typeof v!="object"){return false;}if(typeof window.getComputedStyle=="function"){return window.getComputedStyle(v,null); }if(typeof v.currentStyle=="object"){return v.currentStyle;}return false;}function h(v){return v.replace(/[\s]/g,"_").replace(/[^a-z0-9_]/gi,"");}function o(w){if(typeof window.addEventListener!="undefined"){window.addEventListener("load",w,false); }else{if(typeof document.addEventListener!="undefined"){document.addEventListener("load",w,false);}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",w); }else{if(typeof window.onload=="function"){var v=window.onload;window.onload=function(){v();w();};}else{window.onload=w;}}}}}this.id=h(m);this.playable=false; this.clickTags={};this.env={};this.layers={};this.cookie={};this.tracking={};this.isTrackingWellFormed=undefined;var n={browser:(a&&typeof a=="array")?a:new Array("win,ie,6.0","win,firefox,2.0","win,chrome,4.0","win,safari,4.0","mac,firefox,3.0","mac,safari,4.0","mac,chrome,4.0"),flashVersion:(b&&typeof b=="number")?b:8}; function q(){var B=navigator.userAgent.toLowerCase(),E=navigator.platform.toLowerCase(),K=E?/win/.test(E):/win/.test(B),x=E?/mac/.test(E):/mac/.test(B),D=!+"\v1",z=[0,0,0],J=null; if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]=="object"){J=navigator.plugins["Shockwave Flash"].description;if(J&&!(typeof navigator.mimeTypes!="undefined"&&navigator.mimeTypes["application/x-shockwave-flash"]&&!navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)){D=false; J=J.replace(/^.*\s+(\S+\s+\S+$)/,"$1");z[0]=parseInt(J.replace(/^(.*)\..*$/,"$1"),10);z[1]=parseInt(J.replace(/^.*\.(.*)\s.*$/,"$1"),10);z[2]=/[a-zA-Z]/.test(J)?parseInt(J.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0; }}else{if(typeof window.ActiveXObject!="undefined"){try{var M=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(M){J=M.GetVariable("$version");if(J){D=true; J=J.split(" ")[1].split(",");z=[parseInt(J[0],10),parseInt(J[1],10),parseInt(J[2],10)];}}}catch(I){}}}var L={version:0,name:""};var w=/msie\s(\d+(\.?\d)*)/,H=/firefox[\/\s](\d+([\.-]\d)*)/,y=/chrome\/(\d+\.?\d*).*safari\/.*$/,G=/version\/(\d+\.?\d*).*safari\/.*$/,C=/^opera.*?version\/(\d+\.?\d*).*$/; if(w.test(B)){L.name="ie";L.version=parseFloat(B.match(/msie\s(\d+(\.?\d)*)/)[1]);}else{if(H.test(B)){L.name="firefox";L.version=parseFloat(B.match(H)[1]); }else{if(y.test(B)){L.name="chrome";L.version=parseFloat(B.match(y)[1]);}else{if(G.test(B)){L.name="safari";L.version=parseFloat(B.match(G)[1]);}else{if(C.test(B)){L.name="opera"; L.version=parseFloat(B.match(C)[1]);}}}}}var F=navigator.userAgent.match(/Trident.*; rv:([0-9.]+)/);if(F&&F[1]){L.name="ie";var A=F[1].split(".");L.version=A[0]; }var N="";if(K){N="win";}else{if(x){N="mac";}}r.env={platform:N,browser:L,flashVersion:z[0]};}function g(){var v=n;if(parseInt(v.flashVersion)>parseInt(r.env.flashVersion)){return false; }var x=false;for(i=0;i=parseFloat(w[2]))?true:false;break;}}r.playable=x;return x;}q();g(); this.create=function(x,A,z,y,v){if(!y){y=0;}if(!v){v=0;}if(!z||(z!="inline"&&z!="overlay")){z="inline";}var w={name:x,type:z,base:A,width:y,height:v,css:"",asset:{path:"",wmode:"opaque",vars:{},css:"",allowFullScreen:null},swf:null,movie:null,isPlaying:false,onPlay:null,play:function(){if(w.isPlaying==true){w.close(false,false); }l(w);w.swf=this.creative.getElementsByTagName("object")[0];w.movie=(r.env.browser.name=="ie")?window[this.id+"_swf_"+w.name]:document[this.id+"_swf_"+w.name]; w.isPlaying=true;if(typeof w.onPlay=="function"){w.onPlay();}},show:function(){w.container.style.visibility="visible";},hide:function(){w.container.style.visibility="hidden"; },close:function(B,C){if(typeof C=="undefined"){C==true;}w.swf.parentNode.removeChild(w.swf);w.swf=null;w.creative.parentNode.removeChild(w.creative);w.creative=null; w.container.parentNode.removeChild(w.container);w.container=null;w.isPlaying=false;if(w.onClose){w.onClose();}if(C==true&&typeof w.onClose=="function"){w.onClose(); }if(B==true){r.track("CloseBtn___"+w.name);}},container:null,creative:null,crop:function(C,E,B,D,F){r.cropLayer.crop(w.name,C,E,B,D,F);},uncrop:function(B){r.cropLayer.uncrop(w.name,B); }};if(z=="inline"){w.backup={src:null,alt:null,href:null,width:0,height:0,css:null,parentelement:null,parentelementcss:null},w.textLinks={};w.addTextLink=function(C,B){if(r.playable!=true){return false; }w.textLinks[C]={html:B};};}if(z=="overlay"){w.posX=0;w.posY=0;w.asset.wmode="transparent";}this.layers[x]=w;};function l(w){p(w);var x=document.createElement("div"); x.appendChild(w.creative);if(w.css){x.style.cssText=w.css;}if(w.base!="body"){var v=(typeof w.base=="object")?w.base:document.getElementById(w.base);}if(w.type=="overlay"){x.style.position="absolute"; x.style.top=w.posY+"px";x.style.left=w.posX+"px";if(w.base=="body"){v=document.body;}else{if(d(v,null).position!="relative"){v.style.position="relative"; }}v.appendChild(x);}if(w.type=="inline"){var B=document.createElement("div");B.id=v.id;B.appendChild(x);v.parentNode.replaceChild(B,v);}w.container=x;if(w.textLinks){var C=document.createElement("div"); var z=0;for(var y in w.textLinks){if(w.textLinks.hasOwnProperty(y)){var A=document.createElement("span");A.innerHTML=w.textLinks[y].html;C.appendChild(A); C.innerHTML+=" - ";w.textLinks[y].ind=z;w.textLinks[y].update=function(D){C.getElementsByTagName("span")[this.ind].innerHTML=D;};z++;}}C.innerHTML=C.innerHTML.replace(/ - $/,""); w.container.appendChild(C);}}function p(v){var z="";v.asset.vars.layerName=v.name;for(var A in v.asset.vars){if(v.asset.vars.hasOwnProperty(A)){z+=escape(A)+"="+escape(v.asset.vars[A])+"&"; }z+="yadInstanceRef="+escape(r.ref)+"&";}var y={quality:"autohigh",AllowScriptAccess:"always",loop:"true",FlashVars:z.substr(0,z.length-1),wmode:v.asset.wmode}; if(v.asset.allowFullScreen&&v.asset.allowFullScreen==true){y.allowFullScreen="true";}if(r.env.browser.name=="ie"&&r.env.browser.version!=11){var w=''; w+='';for(i in y){if(y.hasOwnProperty(i)){w+='';}}}else{var x=document.createElement("object"); x.setAttribute("id",r.id+"_swf_"+v.name);x.setAttribute("type","application/x-shockwave-flash");x.setAttribute("data",v.asset.path);x.setAttribute("width",v.width); x.setAttribute("height",v.height);if(v.asset.css){x.style.cssText=v.asset.css;}for(i in y){if(y.hasOwnProperty(i)){s(x,i,y[i]);}}}v.creative=document.createElement("div"); v.creative.style.cssText="width:"+v.width+"px;height:"+v.height+"px";if((typeof x=="function")||(typeof x=="object")){v.creative.appendChild(x);}if(typeof(w)=="string"){v.creative.innerHTML=w; }}function s(x,v,y){var w=document.createElement("param");w.setAttribute("name",v);w.setAttribute("value",y);x.appendChild(w);}this.play=function(v){this.layers[v].play(); };this.close=function(x,y,z){if(typeof z=="undefined"){z==true;}var v=this.layers;if(!x){for(var w in this.layers){if(this.layers.hasOwnProperty(w)){var v=this.layers[w]; if(v.type=="overlay"&&v.isPlaying){v.close(y,z);}}}}else{this.layers[x].close(y,z);}};function f(x){var z=document.createElement("div");if(x.backup.css){z.setAttribute("style",x.backup.css); }var y=document.createElement("img");y.src=x.backup.src;if(x.backup.width&&x.backup.height){y.setAttribute("width",x.backup.width);y.setAttribute("height",x.backup.height); }else{y.setAttribute("width",x.width);y.setAttribute("height",x.height);}if(x.backup.alt){y.setAttribute("alt",x.backup.alt);}var w=document.createElement("a"); w.href=x.backup.href;w.target="_blank";w.appendChild(y);document.getElementById(x.base).innerHTML="";if(x.backup.parentelement){var v=document.createElement(x.backup.parentelement); if(x.backup.parentelementcss){v.setAttribute("style",x.backup.parentelementcss);}v.appendChild(w);z.appendChild(v);document.getElementById(x.base).appendChild(z); }else{z.appendChild(w);document.getElementById(x.base).appendChild(z);}}this.init=function(w,v){if(typeof w=="undefined"){w=true;}if(w!=false){o(k);if(typeof v=="function"){o(v); }}else{k();if(typeof v=="function"){v();}}};function k(){if(r.playable==true){r.tracking._init();var y=false;e();if(parseInt(r.cookie.data.plays)