
<!-- Image Script -->
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	    init();
	}
}


function init() {
	
	var delim = "";
	var dirtest = document.location.pathname.split('/');
	var delim = dirtest.length > 3 ? '/' : '.';
	var directory = document.location.pathname.split(delim);
	
	if (dirtest.length > 3) {
		var directory = document.location.pathname.split(delim);
		rootdir = directory[2];
	} else {
		rootdir = directory[1];
		if (rootdir) {
			rootdir = rootdir.replace(/^\//,'');
			rootdir = rootdir == "" ? 'home' : rootdir;
			rootdir = rootdir == "index" ? 'home' : rootdir;
		}
  }
	if (rootdir && document[rootdir]) { 	
		document[rootdir].src = "/members/images/nav/"+rootdir+"_down.gif";
	}
}

function sendit(addr, domain, sdom, ename) {
	var emstring = '<a href="mailto:'+addr+'@'+domain+'.'+sdom+'">'+ename+'</a>';
	return emstring;
}


