
var flag = false;
//var offImage = 'navbar';
var newson, abouton, shopon, linkson, blogon, contacton, archiveon, navbar, bon, boff, fon, foff;
function imageLoad() {
if (document.images) {
newson = new Image(); newson.src = "IMAGES/news.gif";
abouton = new Image(); abouton.src = "IMAGES/about.gif";
shopon = new Image(); shopon.src = "IMAGES/shop.gif";
linkson = new Image(); linkson.src = "IMAGES/links.gif";
blogon = new Image(); blogon.src = "IMAGES/blog.gif";
contacton = new Image(); contacton.src = "IMAGES/contact.gif";
archiveon = new Image(); archiveon.src = "IMAGES/archive.gif";
photoson = new Image(); photoson.src = "IMAGES/photos.gif";
navbar = new Image(); navbar.src = "IMAGES/navbar.gif";
fon = new Image(); fon.src = "IMAGES/forward_arrow_on.gif";
foff = new Image(); foff.src = "IMAGES/forward_arrow.gif";
bon = new Image(); bon.src = "IMAGES/back_arrow_on.gif";
boff = new Image(); boff.src = "IMAGES/back_arrow.gif";
flag = true;
//document.getElementById("scroller").scrollLeft = 0;
}
}
function rollIn(imgName) {
if (flag == true) { document.getElementById('navbar').src = eval(imgName + "on.src"); }
}
function rollOut() {
if (flag == true) { document.getElementById('navbar').src = eval(offImage + ".src"); }
}
function arIn(arName) {
if (flag == true) { document.getElementById(arName).src = eval(arName + "on.src"); }
}
function arOut(arName) {
if (flag == true) { document.getElementById(arName).src = eval(arName + "off.src"); }
}
function swapImg(img,view) {
if (document.images) {
alert('test');
//document[img].src = 'IMAGES/' + view + '.jpg';
}
}
// VOID
function myVoid(){}

function maillist() {
	var thisE = document.getElementById('elist').value;
	if (thisE.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) {	
		getAjaxPost('eval',url+'/ajax.cgi','a=elist&e='+thisE);
	}
	return;
}

var xmlhttp = true;
var thisDiv,params;
function getAjaxPost(whichDiv,url,parameters) {
	params = parameters;
	thisDiv = (whichDiv)?whichDiv:'eval'; 
	xmlhttp = false;
	if (window.XMLHttpRequest) { //Mozilla
		xmlhttp = new XMLHttpRequest();
		if (xmlhttp.overrideMimeType) {
			xmlhttp.overrideMimeType('text/html');
		}
	} else if (window.ActiveXObject) { //IE
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}
	if (!xmlhttp) {
		alert('Cannot create XMLHTTP instance');
		return false;
	}
	xmlhttp.onreadystatechange = dispContents;
	xmlhttp.open('POST', url, true);
	xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.send(parameters);
}
function dispContents() {
	if (xmlhttp.readyState == 4) {
		eval(xmlhttp.responseText);
	}
}

