var visibilityStats=function(){var i=new Array();var b=false;var g={};var h=0;var k=this;var l={};var c={};this.findVideos=function(){e(true);var p=document.querySelectorAll("iframe");for(var n=0;n
=(-1*p*o.height)&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)+(p*o.height))}function f(n){if(typeof n.data.message!="undefined"&&n.data.message=="newVideo"){k.findVideos()}var m=typeof n.data=="string"?n.data.match(/is_visi_(\d)/):false;if(m){j(parseInt(m[1]))}}function j(m){a(m,d(m),true)}function a(p,o,m){var n=o?"visibilityStat_false":"visibilityStat_true";n=m?n+"-np":n;if(null!=i[p].contentWindow&&"undefined"!=typeof i[p].contentWindow){i[p].contentWindow.postMessage(n,"*")}}if(window.addEventListener){window.addEventListener("message",f,false)}else{window.attachEvent("onmessage",f)}this.findVideos()};visibilityStats=new visibilityStats();