function getCookie(name) { var matches = document.cookie.match(new RegExp( "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" )) return matches ? decodeURIComponent(matches[1]) : undefined } String.prototype.online_myurl_encode = function() { var url = this; var replace = /=/g; url=url.replace(replace, "|"); var replace = /\?/g; url=url.replace(replace, "("); var replace = /&/g; url=url.replace(replace, ")"); return url; }; var online_func=function() { (function (d, w) { var o_rf=document.referrer; var o_url=window.location.href; var o_aoabt=0; if(typeof window.aoabt !== 'undefined') { var o_temp=window.aoabt+''; o_temp=o_temp.split('_'); if(getCookie(o_temp[0])!=='undefined'){o_aoabt=window.aoabt;} } var a=[ //"tit="+encodeURIComponent(document.title), "dat="+Math.floor(Date.now() / 1000), "ss="+screen.width+"x"+screen.height, "ws="+window.outerWidth+"x"+window.outerHeight, "url="+o_url.online_myurl_encode(), "rf="+o_rf.online_myurl_encode(), "aoabt="+o_aoabt ]; var i = d.createElement("img"); i.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//online.akipress.org/counter/?"+a.join('&'); i.setAttribute("id","online_counter"); i.style.cssText='position: fixed;right:0;bottom:0;width:0;height:0;'; var f = function () { document.body.appendChild(i); }; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window); }; document.addEventListener("DOMContentLoaded", online_func);