<!--
/*
* The following code is Copyright(c) 2002 Steve Shaw and Ryan Diess.
* All rights reserved. Steve Shaw is the programmer of the script and
* can be reached at steve@takanomi.com, web site http://takanomi.com.
* Ryan Deiss is an Austin based internet business owner, email
* ryan@sitesightings.com, web site http://www.SiteSightings.com
*/
var displayText = "Be among the first collectors to get information of new Robert Harrop figurines\n\n We'll email you, only two or three times each year, with announcements\n of new figurines or special deals for collectors.\n\n We promise, we will not pester you with unrelated emails.\n\n Just hit the OK button below to subscribe!\n\nComplete privacy: Your email address is never revealed to third parties";
var delay = "0";
var email = "subscribe@collectorsfigurines.com";
var buttonText = "Click here to get email news of new figurines";
var emailSubject = "Subscribe";
var cookie = "optinautomator";
function optin(text){
setOptinCookie();
if(confirm(text)){
document.mailer.subscribe.click();
}
}
function showButton(){
document.write("<form name=mailer id=mailer method=post action='mailto:"+email);
document.write((emailSubject!="")?"?subject="+emailSubject:"");
document.write("' ENCTYPE=\"text/plain\">");
document.write("<input type='submit' onclick='setPermanentCookie();'");
if(!document.layers){
document.write(" STYLE='cursor:hand;background:#C6D1FF' onMouseOver=\"this.style.backgroundColor = '#F0F8FF'\" onMouseOut=\"this.style.backgroundColor = '#C6D1FF'\"");
}
document.write("  value='Click here to get email news of new figurines");
document.write("' name=subscribe id=subscribe></form>");
}
function Go(){
if (getOptinCookie(cookie)==""){
setTimeout("optin(displayText);",delay * 1000);
}
}
function getOptinCookie(cookieName) {
var id = cookieName + "=";
var cookievalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(id);
if (offset != -1) {
cookievalue = "x";
}
}
return cookievalue;
}
function setOptinCookie () {
var today = new Date();
var expdate = new Date(today.getTime() + 1 * 24 * 60 * 60 * 1000);
document.cookie = cookie + "=done;expires=" + expdate.toGMTString();
}
function setPermanentCookie () {
var today = new Date();
var expdate = new Date(today.getTime() + 311040000000);
document.cookie = cookie + "=done;expires=" + expdate.toGMTString();
}
//-->

