function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return unescape(dc.substring(begin + prefix.length, end)); } function SetCookie(cookieName,cookieValue,nDays){ var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=1; expire.setTime(today.getTime() + 3600000*12*nDays); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString(); } cook = getCookie("hostmirp_728"); cook = cook + 1; //alert(cook); if((cook!=1) && (cook!=11) && (cook!=111)) { SetCookie("hostmir_728", "yes", "1"); } SetCookie("hostmirp_728", cook, "1"); if(cook == 111) { SetCookie("hostmir_728", "yes", "1"); } cookie = getCookie("hostmir_728"); //alert(cookie); if(cookie!='yes') { SetCookie("hostmir_728", "yes", "1"); cookie = getCookie("hostmir_728"); } if(cookie!='yes') { function hostmir_click_728() { SetCookie("hostmir_728", "yes", "1"); urlclick_728='http://hostmir.net/click.php?site=14&url=&type=728f'; this.window.focus(); this.window.open(urlclick_728); this.window.focus(); } document.write(''); } if(cookie=='yes') { document.write(unescape('%3Cscript%20type%3D%22text%2Fjavascript%22%3E%3C%21--%3C%21%5BCDATA%5B%0D%0A%2F%2A%20%28c%29AdOcean%202003-2009%20%2A%2F%0D%0Aif%28location.protocol.substr%280%2C4%29%3D%3D%27http%27%29document.write%28unescape%28%27%253C%27%29%2B%27script%20id%3D%22Adnet_ua.kino_port_club.port4me.net_730%2A90%22%20src%3D%22%27%2Blocation.protocol%2B%27%2F%2Fua.adocean.pl%2F_%27%2B%28new%20Date%28%29%29.getTime%28%29%2B%27%2Fad.js%3Fid%3DMhtRsub3H.s1Xww7CHv07SV98bj9fGddwucqgqx6zOj.i7%2Fx%3D%27%2Bscreen.width%2B%27%2Fy%3D%27%2Bscreen.height%2B%27%22%20type%3D%22text%2Fjavascript%22%27%2Bunescape%28%27%253E%253C%27%29%2B%27%2Fscript%27%2Bunescape%28%27%253E%27%29%29%3B%0D%0A%2F%2F%5D%5D%3E--%3E%3C%2Fscript%3E')); }