

var pLetters="abcdefgh";
var pTopID=Math.round(Math.random()*(pLetters.length-0.5));
var pTopPath="img/top/";

function topLoader() {
	tID=pLetters.charAt(pTopID);
	pTopID=++pTopID % pLetters.length;
	document.images.top1.src=pTopPath+tID+"1.jpg";
	document.images.top2.src=pTopPath+tID+"2.jpg";
	setTimeout("topLoader();",10000);
}

function loadLink(tObj,tExternal){
	tURL=tObj.options[tObj.selectedIndex].value;
	if (tURL!="") {
		if (tExternal) {
			window.open(tURL,"","toolbar,location,status,menubar,resizable,scrollbars=yes");
		} else location=tURL;
  	}
}

function checkAddress() {
	tValue=document.regForm.email.value;
	if (tValue.indexOf('@')>0 && tValue.length>6) {
		document.regForm.submit();
		return true;
	} else alert("is that an email address? ;)");
	return false;
}

function checkComments() {
	if (document.contact.comments.value.length>0) document.contact.submit();
}

function tempOOO() {
	alert("temporarily out of order. please check again soon!");
}


// div handling

var divRef="null",divStyleRef="null",styleSwitch="null";

function init() {
	if (navigator.appVersion.substring(0,3)>="4.0") {
		if (navigator.appName=="Netscape" && navigator.appVersion.substring(0,1)<"5") {
			divStyleRef="layer.";
			divRef="document.layers";
			styleSwitch="";
		}
		else {
			divStyleRef="layer.style.";
			divRef="document.all";
			styleSwitch=".style";
		}
	}
}
function sD(tID) {
	eval(divRef+'["'+tID+'"]'+styleSwitch+'.visibility="visible"');
}
function hD(tID) {
	eval(divRef+'["'+tID+'"]'+styleSwitch+'.visibility="hidden"');
}

