document.write("let adsManager;let adsLoader;let adDisplayContainer;let playButton;let videoContent;let adsInitialized;let autoplayAllowed;let autoplayRequiresMuted;function autoplayChecksResolved() { const adsRequest = new google.ima.AdsRequest(); adsRequest.adTagUrl = 'https://pubads.g.doubleclick.net/gampad/ads?iu=/36656269,23069191276/gifsf_77_PbottomVideo_480_320&descr"+"iption_url=https%3A%2F%2Fgifsf.com&tfcd=0&npa=0&sz=320x50%7C320x240%7C400x300%7C426x240%7C480x360%7C640x360%7C640x480%7C854x480%7C960x720%7C1280x720%7C1440x1080%7C1920x1080&gdfp_req=1&output=vast&env=vp&unviewed_position_start=1&impl=s&correlator='; adsRequest.linearAdSlotWidth = 400; adsRequest.linearAdSlotHeight = 300; adsRequest.nonLinearAdSlotWidth = 400; adsRequest.nonLinearAdSlotHeight = 300; adsRequest.setAdWillAutoPlay(autoplayAllowed); adsRequest.setAdWillPlayMuted(autoplayRequiresMuted); adsLoader.requestAds(adsRequest);}function playAds() { try { if (!adsInitialized) { adDisplayContainer.initialize(); adsInitialized = true; } adsManager.init(400, 300, google.ima.ViewMode.NORMAL); adsManager.start(); } catch (adError) { videoContent.play(); }}function contentEndedListener() { var googleAds = document.getElementById(\"leesfreeAds\"); googleAds.style.width = \"480px\"; googleAds.style.height = \"300px\"; googleAds.style.position = \"unset\"; var tag = \"\\x3c/scr"+"ipt>\"; var passback_ifr = document.createElement('iframe'); passback_ifr.setAttribute(\"width\", \"480px\"); passback_ifr.setAttribute(\"height\", \"300px\"); passback_ifr.setAttribute(\"allowTransparency\", \"true\"); passback_ifr.setAttribute(\"marginwidth\", \"0\"); passback_ifr.setAttribute(\"marginheight\", \"0\"); passback_ifr.setAttribute(\"frameborder\", \"0\"); passback_ifr.setAttribute(\"scrolling\", \"no\"); googleAds.innerHTML = \"\"; googleAds.appendChild(passback_ifr); var doc = passback_ifr.contentWindow.document; doc.open(); doc.write(\"\\x3c/head>\"+tag+\"\\x3c/body>\\x3c/html>\"); doc.close(); videoContent.onended = null; if (adsLoader) { adsLoader.contentComplete(); }}
initDesktopAutoplayExample();")