function overItem(id) { if (!document.layers) { eval("document.all.texture"+id+".filters.alpha.enabled=0"); eval("document.all.texture"+id+".filters.alpha.opacity="+(20+Math.round(Math.random()*40))); } }
function offItem(id) { if (!document.layers) { eval("document.all.texture"+id+".filters.alpha.enabled=-1"); } }

function randomItem()
{
offItem(window.itemId);
window.itemId=Math.round(Math.random()*7+1);
overItem(window.itemId);
timeout=setTimeout("randomItem();",3000+Math.round(Math.random()*2000));
}

window.itemId=1;
timeout=setTimeout("randomItem();",3000+Math.round(Math.random()*2000));

function mailListAdd() {
var xmlHttpReq = false;
// IE
if (window.ActiveXObject) {
	xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
// FF
else if (window.XMLHttpRequest) {
	xmlHttpReq = new XMLHttpRequest();
	xmlHttpReq.overrideMimeType('text/xml');
}
xmlHttpReq.open('POST',"/cgi-bin/maillist.cgi",true);
xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xmlHttpReq.onreadystatechange = function() {
	if (xmlHttpReq.readyState == 4) {
		if (xmlHttpReq.responseText.indexOf('0')!=-1) { alert("Thank you. Your email address has been added to the mail list."); }
		if (xmlHttpReq.responseText.indexOf('1')!=-1) { alert("Please check you have entered a valid email address."); }
		if (xmlHttpReq.responseText.indexOf('2')!=-1) { alert("Your email address is already on the mail list."); }
	}
}
xmlHttpReq.send("email="+document.forms.maillist_form.email.value+"&magic="+document.forms.maillist_form.email.value);
return false;
}