
function overItem(item_id) { item_id.filters.alpha.opacity=100; }
function offItem(item_id) { item_id.filters.alpha.opacity=70; }
// function overItemTip(item_id,msg) { document.getElementById("tip").innerHTML=msg; item_id.filters.alpha.opacity=100; }
// function offItemTip(item_id) { document.getElementById("tip").innerHTML="Thank you for visiting. Please choose from the sections above.<BR>Please add your comments, charts, reviews or make an enquiry using the <A href=\"comments.htm\">Feedback Loop</A>. Direct email contact addresses are below."; item_id.filters.alpha.opacity=70; }
function overItemTip(item_id,msg) { document.getElementById("tip").innerHTML=msg; }
function offItemTip(item_id) { document.getElementById("tip").innerHTML="Thank you for visiting. Please choose from the sections above.<BR>Please add your comments, charts, reviews or make an enquiry using the <A href=\"comments.htm\">Feedback Loop</A>. Direct email contact addresses are below."; }
function popUpFlyer(URL,width,height) { window.open(URL,'','width='+width+',height='+height+',location=no,toolbar=no,status=no,scrollbars=no,resizable=no'); }
function popUpTracks(URL,h) { window.open(URL,'','width=500,height='+h+',location=no,toolbar=no,status=no,scrolling=auto'); }
function popUpPhoto(URL) { window.open(URL,'','width=700,height=400,location=no,toolbar=no,status=no,scrollbars=no'); }

// CAPTCHA

function setMagicFeedback() { document.forms.comment_form.magic.value=document.forms.comment_form.name.value; }

// AJAX Mail List Add

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;
}

// Update copyright and version elements

window.onload = function() {
	if (document.getElementById("copyright_message")) document.getElementById("copyright_message").innerHTML = "&copy; 2010";	
	if (document.getElementById("version_message")) document.getElementById("version_message").innerHTML = "v4.0";	
	}