var httpRequest,_id_keyword_="0",_list_keyword_="";function check_valid_keyword(t){if(0!=_id_keyword_&&null!=t){t=t.toLowerCase();var e=_list_keyword_.split(","),n=t.split(","),r=0;for(i=0;i<e.length&&1!=r;i++)for(y=0;y<n.length;y++)if(n[y].indexOf(e[i])>-1){r=1;break}}}function met(t){try{for(var e,i=t.getElementsByTagName("meta"),n=0;n<i.length;n++)"keywords"==i[n].getAttribute("name")&&(e=i[n].getAttribute("content"));check_valid_keyword(e);for(var r=t.getElementsByTagName("meta"),a=null,c=r.length;c--;)if("viewport"==r[c].name){a=r[c];break}if(null==a){var o=d.getElementById("xvw");o&&d.head.removeChild(o),(o=d.createElement("meta")).setAttribute("id","xvw"),o.setAttribute("name","viewport"),o.setAttribute("content","width=auto, initial-scale=1, user-scalable=yes"),d.head.appendChild(o)}}catch(t){0==showIntersitial&&reloadPage("Error "+t.message)}}function bsxz(t){try{var e=t.contentDocument;met(e);for(var i=e.getElementsByTagName("a"),n=i.length;n--;)0!=i[n].href.indexOf("#")&&"_blank"!=i[n].target&&(i[n].target="_top");return 0}catch(t){0==showIntersitial&&reloadPage("Error "+t.message)}return 1}function sc(t){setInterval((function(){if("undefined"!=typeof _interticial_&&(1!=has_load&&(OffdeckSF(),has_load=1),0==_interticial_||"-1"==_interticial_))try{var e=bsxz(t);if(titleWeb=t.contentDocument.title,d.title=titleWeb,e>0)try{var i=location.hostname;d.domain=i.substring(i.lastIndexOf(".",i.lastIndexOf(".")-1)+1),bsxz(t)}catch(t){0==showIntersitial&&reloadPage("Error "+t.message)}}catch(t){0==showIntersitial&&reloadPage("Error "+t.message)}}),1)}function OffdeckSF(){findVar=setInterval((function(){typeof _interticial_!=ud&&(0==_interticial_&&injectScript(),clearInterval(findVar))}),1)}function intersitial(){1==_interticial_&&injectScript()}function si(){d.getElementById("rf").style.display=""}function ecode(t){return encodeURIComponent(t)}function injectScript(){if(typeof __JS_ADS__!=ud){var t=d.createElement("script");t.type="text/javascript",t.src="https://offdeck.telkomsel.com:1443/pubjs/"+__JS_ADS__,d.body.appendChild(t)}}function reloadPage(t){window.location=u}function customAjax(t){window.XMLHttpRequest?ht=new XMLHttpRequest:window.ActiveXObject&&(ht=new ActiveXObject("Microsoft.XMLHTTP")),ht.onreadystatechange=alertContents,ht.open("POST",t,!0),ht.send(null)}function alertContents(){ht.readyState,XMLHttpRequest.DONE}function trackingClick(){""!=tracking_url_click&&customAjax(tracking_url_click),window.open(flying_clicklink,"_blank")}var counter=0,timeout=3e3,ud="undefined",cg=d.createElement("iframe"),showIntersitial=!0,l=d.createElement("script"),has_load=0;(l=d.createElement("script")).src=s,d.documentElement.firstChild.appendChild(l),cg.setAttribute("style","height:100%;width:100%;position:absolute;margin:auto;visibility:visible;display:none"),cg.setAttribute("src","about:blank"),cg.setAttribute("frameborder","0"),cg.setAttribute("name","rf"),cg.setAttribute("id","rf"),cg.setAttribute("scrolling","auto"),cg.setAttribute("onload","if(xc==1)sc(this);"),document.body.appendChild(cg),go(w,u),ifr=d.getElementById("rf");var findAMI=setInterval((function(){if(typeof _ID_AMI_!=ud){if(""!=_ID_AMI_){if("1"==_interticial_)location.href=_URL_INTERTICIAL_AMI_+"?id="+ecode(_ID_AMI_)+"&subid="+ecode(_MSISDN_AMI_)+"&domain="+ecode(_DOMAIN_AMI_)+"&uri="+ecode(_URI_AMI_)+"&referer="+ecode(_REFERER_AMI_)+"&server="+ecode(_SERVER_AMI_)+"&topic="+ecode(_TOPIC_AMI_);else if("0"==_interticial_){var t=d.createElement("script");t.type="text/javascript",t.src=_URL_IFRAME_AMI_}}else 1==__flag_redirection__&&1==showIntersitial?intersitial():1==_interticial_&&1==showIntersitial?injectScript():si();clearInterval(findAMI)}counter>=timeout&&(new Date,showIntersitial=!1,si()),counter++}),1);
