(function(h,l){var n=!1,u;try{u=top.window.location.href?top.location:document.location}catch(a){u=document.location}var w="https:"===u.protocol?1:0,y=w?"https://ss3.zedo.com/utils/testFlash.swf":"http://c14.zedo.com/utils/testFlash.swf",k=document,C={fhs:"inview",frd:"inArticle",fso:"stayon",fsu:"shuffle",fsm:"multipleInview",frd_newplayer:"inArticle",frd_d23:"inArticle",cust_flip:"cust_flip"};h.flashDetected=!1;try{var v=new Date;v.getMonth();v.getDate();v.getHours()}catch(a){}var g=function(a,
b,c,d){this.adformat="undefined"!=typeof a?a:"";this.clientWidth=this.clientHeight=0;this.getViewport();this.isFlash=z()},z=function(){var a=0;try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),a=1}catch(b){navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]!==l&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(a=1)}return a};g.prototype.networkCheck=function(a){var b=!1;({480:"480"})[a]&&(b=!0);return b};g.prototype.getViewport=function(){this.clientWidth=
Math.max(k.documentElement.clientWidth,h.innerWidth||0);this.clientHeight=Math.max(k.documentElement.clientHeight,h.innerHeight||0)};g.prototype.filter=function(a,b,c){a=b.querySelectorAll?b.querySelectorAll(a):b.getElementsByTagName(a);b=[];for(var d=a.length;d--;)c(a[d])&&b.unshift(a[d]);return b};g.prototype.addListener=function(a,b,c){k.addEventListener?a.addEventListener(b,c,!1):k.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c};g.prototype.removeListener=function(a,b,c){k.removeEventListener?
a.removeEventListener(b,c,!1):k.detachEvent&&a.detachEvent("on"+b,c)};g.prototype.forEachElement=function(a,b){for(var c=k.getElementsByTagName(a),d=0;d<c.length;d++)b(c[d],d)};g.prototype.logNewErr=function(a){var b=this,c=0;""===h.emsg||w||(b.errorlog(a,h.emsg),h.emsg="");100>h.elogCnt?(h.elogCnt++,c=setTimeout(function(){b.logNewErr(a)},1E3)):clearTimeout(c)};g.prototype.browserdetection=function(){var a=navigator.userAgent.toLowerCase(),b=navigator.appName,c=""+parseFloat(navigator.appVersion),
d;parseInt(navigator.appVersion,10);var f=-1<a.indexOf("android")&&-1<a.indexOf("mozilla/5.0")&&-1<a.indexOf("applewebkit"),e=new RegExp(/applewebkit\/([\d.]+)/),e=null===e.exec(a)?null:parseFloat(e.exec(a)[1]);browser={chrome:/^(.*chrome).*(safari)/.test(a),safari:/^(?!.*chrome).*(safari)/.test(a),opera:/opera/.test(a),msie:/msie/.test(a)&&!/opera/.test(a),mozilla:/mozilla/.test(a)&&!/(compatible|webkit)/.test(a),ios:/iPhone|iPad|iPod/i.test(a),android:/Android/i.test(a),androidDefault:f&&null!==
e&&537>e,iphone:/iPhone/i.test(a)};-1!=(e=a.indexOf("opr/"))?(b="Opera",c=a.substring(e+4)):-1!=(e=a.indexOf("opera"))?(b="Opera",c=a.substring(e+6),-1!=(e=a.indexOf("version"))&&(c=a.substring(e+8))):-1!=(e=a.indexOf("msie"))?(b="Microsoft Internet Explorer",c=a.substring(e+5)):-1!=(e=a.indexOf("chrome"))?(b="Chrome",c=a.substring(e+7)):-1!=(e=a.indexOf("safari"))?(b="Safari",c=a.substring(e+7),-1!=(e=a.indexOf("version"))&&(c=a.substring(e+8))):-1!=(e=a.indexOf("firefox"))?(b="Firefox",c=a.substring(e+
8)):(f=a.lastIndexOf(" ")+1)<(e=a.lastIndexOf("/"))&&(b=a.substring(f,e),c=a.substring(e+1),b.toLowerCase()==b.toUpperCase()&&(b=navigator.appName));-1!=(d=c.indexOf(";"))&&(c=c.substring(0,d));-1!=(d=c.indexOf(" "))&&(c=c.substring(0,d));d=parseInt(""+c,10);isNaN(d)&&(c=""+parseFloat(navigator.appVersion),d=parseInt(navigator.appVersion,10));"Netscape"===navigator.appName&&null!==/trident\/.*rv:([0-9]{1,}[.0-9]{0,})/.exec(a)&&(browser.msie=!0,c=d=parseFloat(RegExp.$1));return{name:b,version:d,fullversion:c,
appname:navigator.appName,msie:browser.msie,firefox:browser.mozilla,chrome:browser.chrome,safari:browser.safari,opera:browser.opera,ios:browser.ios,android:browser.android,androidDefault:browser.androidDefault,iphone:browser.iphone}};g.prototype.getOffset=function(a){for(var b=0,c=0;a&&!isNaN(a.offsetLeft)&&!isNaN(a.offsetTop);)b+=a.offsetLeft-a.scrollLeft,c+=a.offsetTop-a.scrollTop,a=a.offsetParent;return{top:c,left:b}};g.prototype.appendCssTag=function(a){var b=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(b);
b.setAttribute("type","text/css");b.styleSheet?b.styleSheet.cssText=a:b.appendChild(document.createTextNode(a))};g.prototype.errorlog=function(a,b){var c=location.href,c="?Format="+escape(a)+";"+escape(b)+";pu="+escape(c)+";z="+Math.random(),d=document.createElement("img");"undefined"!==typeof a&&(d.src="http://ehif.zedo.com/log/err.gif"+c)};g.prototype.conlog=function(a){(h.console||{log:function(){}}).log(a)};g.prototype.sendalllogs=function(a){};g.prototype.jslogs=function(a){};g.prototype.cssselector=
function(){};g.prototype.addClass=function(a,b){a.classList?a.classList.add(b):a.className+=" "+b};g.prototype.removeClass=function(a,b){a.classList?a.classList.remove(b):a.className.replace(new RegExp("(^|\\b)"+b.split(" ").join("|")+"(\\b|$)","gi")," ")};g.prototype.prepareErrMsg=function(a,b,c,d){h.emsg+=d+("Error="+a+";LineNo="+b)+";";this.logNewErr(C[c])};g.prototype.chkerror=function(){var a=this,b="HIF";h.onerror=function(c,d,f){var e=/\/(.*?)\.js/g.exec(d);e&&(b=e[0].substr(e[0].lastIndexOf("/")+
1,e[0].lastIndexOf(".js")-(e[0].lastIndexOf("/")+1)));a.prepareErrMsg(c,d,f,b,"Severity=Low;");return!1}};var q=g.prototype.browserdetection();g.prototype.setCss=function(a,b,c){if("undefined"===typeof a)return!1;var d=r(this.setCss.arguments[0],"array");if("string"===typeof b)if(d)for(var f in a)a[f].style[b]="string"===typeof c?c:c+"px";else a.style[b]="string"===typeof c?c:c+"px";else if("object"===typeof b)if(d)for(e in b)for(f in a)a[f].style[e]=b[e];else for(var e in b)a.style[e]=b[e]};g.prototype.getCss=
function(a,b){if("string"!==typeof b||"undefined"===typeof a)return!1;var c="";document.defaultView&&document.defaultView.getComputedStyle?c=document.defaultView.getComputedStyle(a,"").getPropertyValue(b):a.currentStyle&&(b=b.replace(/\-(\w)/g,function(a){return a.toUpperCase()}),c=a.currentStyle[b]);return c};g.prototype.getAttribute=function(a,b){return"string"!==typeof b||"undefined"===typeof a?!1:a.getAttribute(b)};g.prototype.setAttribute=function(a,b,c){if("undefined"===typeof a)return!1;var d=
r(this.setAttribute.arguments[0],"array");if("string"===typeof b)if(d)for(var f in a)a[f].setAttribute(b,c);else a.setAttribute(b,c);else if("object"===typeof b)if(d)for(e in b)for(f in a)a[f].setAttribute(e,b[e]);else for(var e in b)a.setAttribute(e,b[e])};g.prototype.addCSSRule=function(a,b){var c=document.createElement("style");this.setAttribute(c,{type:"text/css",id:b});k.getElementsByTagName("head")[0].appendChild(c);if(c.styleSheet)c.styleSheet.cssText=a;else{var d=document.createTextNode(a);
c.appendChild(d)}};g.prototype.show=function(a){if("undefined"===typeof a)return!1;a=this.show.arguments;for(var b in a)"undefined"!==typeof a[b]&&(a[b].style.display="block")};g.prototype.hide=function(a){if("undefined"===typeof a)return!1;a=this.hide.arguments;for(var b in a)"undefined"!==typeof a[b]&&(a[b].style.display="none")};g.prototype.setHtml=function(a,b){a.innerHTML=b};var A=function(a){for(var b in a)return!1;return!0},D=function(a){if("[object Array]"===Object.prototype.toString.call(a)){for(var b=
[],c=0,d=a.length;c<d;c++)b[c]=arguments.callee(a[c]);return b}if("object"===typeof a){b={};for(c in a)b[c]=arguments.callee(a[c]);return b}return a};g.prototype.css3=function(){var a=k.documentElement,b=["moz","webkit","khtml","o","ms"],c=b.length;return{supports:function(d){var f=a.style;if("string"==typeof f[d])return!0;d=d.charAt(0).toUpperCase()+d.substr(1);for(var e=0;e<c;e++)if("string"==typeof f[b[e]+d])return!0;return!1},add:function(d,f,e){if(d in a.style)f.style[d]=e;else{d=d.charAt(0).toUpperCase()+
d.substr(1);for(var g=0;g<c;g++)if(b[g]+d in a.style){f.style[b[g]+d]=e;break}}}}}();var p={linear:function(a,b,c,d){return c*a/d+b},easeInQuint:function(a,b,c,d){return c*(a/=d)*a*a*a*a+b},easeOutQuint:function(a,b,c,d){return c*((a=a/d-1)*a*a*a*a+1)+b},easeInOutQuint:function(a,b,c,d){return 1>(a/=d/2)?c/2*a*a*a*a*a+b:c/2*((a-=2)*a*a*a*a+2)+b},easeInBack:function(a,b,c,d,f){f===l&&(f=1.70158);return c*(a/=d)*a*((f+1)*a-f)+b},easeOutBack:function(a,b,c,d,f){f===l&&(f=1.70158);return c*((a=a/d-1)*
a*((f+1)*a+f)+1)+b},easeInOutBack:function(a,b,c,d,f){f===l&&(f=1.70158);return 1>(a/=d/2)?c/2*a*a*(((f*=1.525)+1)*a-f)+b:c/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+b},easeInOutBounce:function(a,b,c,d){return a<d/2?.5*p.easeInBounce(2*a,0,c,d)+b:.5*p.easeOutBounce(2*a-d,0,c,d)+.5*c+b},easeInBounce:function(a,b,c,d){return c-p.easeOutBounce(d-a,0,c,d)+b},easeOutBounce:function(a,b,c,d){return(a/=d)<1/2.75?7.5625*c*a*a+b:a<2/2.75?c*(7.5625*(a-=1.5/2.75)*a+.75)+b:a<2.5/2.75?c*(7.5625*(a-=2.25/2.75)*a+.9375)+
b:c*(7.5625*(a-=2.625/2.75)*a+.984375)+b},swing:function(a,b,c,d){return-c*(a/=d)*(a-2)+b}},r=function(a,b){b=String(b).toLowerCase();return"null"==b&&null===a||b==typeof a||"object"==b&&a===Object(a)||"array"==b&&Array.isArray&&Array.isArray(a)||Object.prototype.toString.call(a).slice(8,-1).toLowerCase()==b};(function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!h.requestAnimationFrame;++c)h.requestAnimationFrame=h[b[c]+"RequestAnimationFrame"],h.cancelAnimationFrame=h[b[c]+"CancelAnimationFrame"]||
h[b[c]+"CancelRequestAnimationFrame"];h.requestAnimationFrame||(h.requestAnimationFrame=function(b,c){var d=+new Date,f=Math.max(0,16-(d-a)),g=h.setTimeout(function(){b(d+f)},f);a=d+f;return g});h.cancelAnimationFrame||(h.cancelAnimationFrame=function(a){clearTimeout(a)})})();var F=function(a,b,c,d,f){var e=this;this.timerIndex=0;this.currVal=[];var h=r(a,"array");if("undefined"===typeof a)return!1;if(h){this.ele=[];this.currVal={};for(var k in a)this.ele.push(a[k])}else this.ele=a;if(A(b))return!1;
this.prop=b;r(a,"array")||(this.currVal=D(this.prop));if(h){a={};for(var l in this.ele){for(m in this.prop)a[m]=parseInt(g.prototype.getCss(this.ele[l],m))?parseInt(g.prototype.getCss(this.ele[l],m)):this.ele[m]||0;this.currVal[this.ele[l]]=a;a={}}}else for(var m in this.currVal)this.currVal[m]=parseInt(g.prototype.getCss(this.ele,m))?parseInt(g.prototype.getCss(this.ele,m)):this.ele[m]||0;this.duration=c||1E3;this.delta=p[d]||p.swing;this.callback=f;this.start=function(){var a=+new Date,b=function(){var c=
new Date-a;c>e.duration&&(c=e.duration);if(h)for(f in e.ele)for(var d in e.prop)e.createTween(c,e.currVal[e.ele[f]][d],e.prop[d]-e.currVal[e.ele[f]][d],e.duration,d);else for(var f in e.prop)e.createTween(c,e.currVal[f],e.prop[f]-e.currVal[f],e.duration,f);c==e.duration?(clearTimeout(e.timerIndex),"undefined"!=typeof e.callback&&e.callback()):e.timerIndex=requestAnimationFrame(b)};b()};this.createTween=function(a,b,c,d,f){this.begin=b;this.finish=c;e.duration=d;this.time=a;a=e.delta(this.time,this.begin,
this.finish,e.duration);e.update(a,f)};this.update=function(a,b){if(!h)for(var c in this.prop)b===c&&("undefined"!==typeof this.ele.style[c]?this.ele.style[c]=a+"px":this.ele[c]=a);else for(c in this.prop)if(b===c)for(b in this.ele)"undefined"!==typeof this.ele[b].style[c]?this.ele[b].style[c]=a+"px":this.ele[b][c]=a}};g.prototype.Animation=function(){this.start=function(a,b,c,d,f){this.op1=a;this.op2=b;this.op3=c;this.op4=d;this.op5=f;"object"!==typeof c||A(c)||(this.op3=c.duration||l,this.op4=c.easing||
l,this.op5=c.complete||l);(new F(this.op1,this.op2,this.op3,this.op4,this.op5)).start()}};var B={"zzobj.js":"zedoFlashPlayer","videoplayer.js":"zedoHTML5Player","jschannel.js":"zedoHTML5PlayerChannel","wrapper.min.js":"wrapperJs"};g.prototype.add_Script=function(a,b,c){try{var d=0;"undefined"===typeof b&&(b=0);"undefined"===typeof c&&(c="");var f=a.replace(/^.*[\\\/]/,"");"undefined"!==typeof B[f]&&""!==f&&(c=B[a.replace(/^.*[\\\/]/,"")]);"undefined"!==typeof c&&""!==c&&k.getElementById(c)&&(d=1);
var e=k.createElement("script");e.type="text/javascript";e.async=!0;e.id=c;e.src=a;e.onerror=function(){this.prepareErrMsg("script not loaded","",this.adformat,"Severity=Low;")};if(b)return e.onreadystatechange=function(){"complete"!==this.readyState&&"loaded"!==this.readyState||!navigator.userAgent.match(/MSIE\s(8.0)/)||(this.onload(),this.onreadystatechange=null)},e;0==d&&k.getElementsByTagName("head")[0].appendChild(e)}catch(E){this.prepareErrMsg(E,"hif_add_Script",this.adformat,"Severity=Low;")}};
k.querySelectorAll||(x=k.createStyleSheet(),k.querySelectorAll=function(a,b,c,d,f){f=k.all;b=[];a=a.replace(/\[for\b/gi,"[htmlFor").split(",");for(c=a.length;c--;){x.addRule(a[c],"k:v");for(d=f.length;d--;)f[d].currentStyle.k&&b.push(f[d]);x.removeRule(0)}return b});var t=function(){document.getElementById("target_element")&&document.getElementById("target_element").remove()},G=function(){null!==document.getElementById("flash_check_object")&&setTimeout(function(){var a;a=-1!=navigator.appName.indexOf("Microsoft")?
h.flash_check_object:document.flash_check_object;if("undefined"!=typeof a)try{isNaN(a.PercentLoaded())||(flashDetected=1,t())}catch(b){flashDetected=0,t()}else flashDetected=0,t()},500)},H=function(){var a=document.createElement("div");a.id="target_element";a.style.position="absolute";a.style.left="-1111px";a.style.top="-1111px";document.body.insertBefore(a,document.body.firstChild);null===document.getElementById("flash_check_object")&&(a.innerHTML='<OBJECT type="application/x-shockwave-flash" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\tWIDTH="1" HEIGHT="1" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"\tID=flash_check_object><PARAM NAME="MOVIE" VALUE="'+
y+'"><PARAM NAME="PLAY" VALUE="false"><PARAM NAME="LOOP" VALUE="false"> <PARAM NAME="QUALITY" VALUE="high">\t<PARAM NAME="SCALE" VALUE="SHOWALL"><EMBED NAME="flash_check_object" SRC="'+y+'" WIDTH="1" HEIGHT="1" PLAY="false"\tLOOP="false" QUALITY="high" SCALE="SHOWALL"\tswLiveConnect="true" PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/"></EMBED></OBJECT>');setTimeout(function(){var b=a.childNodes[0];if(q.firefox||q.chrome||q.safari)"ujs_flashblock_placeholder"==b.className?n=!0:b.hasAttribute("bgactive")?
n=!0:b.hasAttribute("style")&&-1!=b.getAttribute("style").indexOf("gofhjkjmkpinhpoiabjplobcaignabnl")?n=!0:"application/x-shockwave-flash"!=b.type&&(n=!0);n?(flashDetected=0,t()):G()},500)};g.prototype.detectflashBlocking=function(){1==z()?q.msie?flashDetected=1:H():flashDetected=0};h.hif=g})(window);