var expirationIntl = 24*60*60*1000; function popundrShow (url) { var popundrWindow = window.open(url, "_blank", "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,height=840,width=1060"); setTimeout( function() { popundrWindow.focus(); setTimeout( function() { popundrWindow.blur();}, 1);}, 10); }; function popundrSetcookie (name, value, interval) { var expires = new Date(); expires.setTime(expires.getTime() + interval); document.cookie = name + '=' + value + '; expires=' + expires.toGMTString() + '; path=/'; }; function popundrGetcookie (name) { var cookies = document.cookie.toString().split('; '); for (var i = 0; i < cookies.length; i++) { if (cookies[i].split('=')[0] == name) return cookies[i].split('=')[1]; }; return '0'; }; function popundrCheck () { var cookie = popundrGetcookie('clickunder'); if ((cookie>=0&&cookie<10)) { cookie++; switch (cookie) { case 1 : { popundrShow('http://ljctv.com/boundgangbangs/boundgangbangs.htm'); break; }; default : break; }; popundrSetcookie('clickunder',cookie,expirationIntl); }; }; function popundrInitialize() { if (document.attachEvent) document.attachEvent( "onclick", popundrCheck); else { if (document.addEventListener) document.addEventListener( "click", popundrCheck, false); }; }; popundrInitialize();