/* copper code Copyright 2004 SitePoint Pty. Ltd. All Rights Reserved. */ copperdone = false; copperfunction = function() { oldpoppedup = copperdone; copperdone = true; if (!oldpoppedup) { cookiearray = document.cookie.split(/;\s*/); for (entry in cookiearray) { if (cookiearray[entry] == 'CFcookie=1') return; if (cookiearray[entry] == 'CFsub=1') return; } coppernewwindow = window.open('http://copperfly.net/subscribe2.php', 'popme', 'width=330, height=440, location=no, menubar=no, status=no, toolbar=no, scrollbars=auto, resizable=yes, left=200, top=80'); if (!coppernewwindow) { copperdone = false; } else { var expire = new Date(); expire.setTime(expire.getTime() + (86400000 * 7)); document.cookie = 'CFcookie=1; expires=' + expire.toGMTString() + '; path=/'; coppernewwindow.focus(); } } } coppercookiesenabled = false; var expire = new Date(); expire.setTime(expire.getTime() + (10000)); document.cookie = 'CFtestcookie=1; expires=' + expire.toGMTString() + '; path=/'; cookiearray = document.cookie.split(/;\s*/); for (entry in cookiearray) { if (cookiearray[entry] == 'CFtestcookie=1') coppercookiesenabled = true; } if (coppercookiesenabled) { copperfunction(); if (!copperdone) { window.onclick = copperfunction; window.onmousemove = copperfunction; copperconvertlinks = function() { anch = document.getElementsByTagName('a'); for (i = 0; i < anch.length; i++) { anch[i].onclick = copperfunction; } } copperinterval = setInterval(copperconvertlinks, 250); copperoldonload = window.onload; window.onload = function () { copperfunction(); if (copperoldonload) copperoldonload(); copperconvertlinks(); clearInterval(copperinterval); } } }