setOverlayHTML(); cdInterval=null; reload = false; function likeClicked() { document.getElementById("like_overlay").style.display="block"; document.getElementById("like_iframe").src=""; } function removeLike() { document.getElementById("like_overlay").style.display="none"; } function clickListener() { window.open(""); } function openChannel() { window.open(""); } function removeOverlayHTML() { document.getElementById("ad_overlay").style.display="none"; document.getElementById("overlay_iframe").src=""; document.getElementById("ad_overlay_close").style.display="none"; clearInterval(cdInterval); setTimeout('setOverlayHTML()', 200000); setFooterHTML(); reload = true; } function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window.document[movieName]; } else { return document.getElementById(movieName); } } function setOverlayHTML() { document.getElementById("overlay_iframe").src = "http://vipracing.biz/300x250.html"; document.getElementById("countdownnum").innerHTML="30"; cdInterval=setInterval("countDown()",1000); document.getElementById("ad_overlay").style.display="block"; if (!reload) thisMovie("dplayer").letsplay(1); } function setFooterHTML() { document.getElementById("footer_iframe").src = ""; document.getElementById("ad_footer").style.display="block"; } function removeFooterHTML() { document.getElementById("ad_footer").style.display="none"; document.getElementById("footer_iframe").src = ""; } function countDown() { currentCD=parseInt(document.getElementById("countdownnum").innerHTML); if (currentCD==20) document.getElementById("ad_overlay_close").style.display="block"; if (currentCD==1) removeOverlayHTML(); else document.getElementById("countdownnum").innerHTML=(currentCD-1); } function OpenWindow(url, name, width, height, isResizeAble) { var left = Math.round((screen.width - width) / 2); var top = Math.round((screen.height - height) / 2); var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no'; styleStr += ',resizable=' + (isResizeAble ? 'yes' : 'no'); styleStr += ',width=' + width + ',height=' + height; styleStr += ',left=' + left + ',top=' + top; styleStr += ',screenX=' + left + ',screenY=' + top; window.open(url, name, styleStr); }