// These functions courtesy GoobNet, http://goobnet.net/
// Nathan S Brown, 2001-4
// Please use or modify these functions, but give me credit.
// Have a nice day...
function mail() {
	window.location.replace("mailto:goobnet"+String.fromCharCode(64)+"goobnet.net");
}

function mailto(name) {
	window.location.replace("mailto:"+name+String.fromCharCode(64)+"goobnet.net");
}

function writemaillink(name) {
	document.write("&lt;<A HREF=\"javascript:mailto('"+name+"')\">"+name+String.fromCharCode(64)+"goobnet.net<\/A>&gt;");
}

function opentzwindow() {
	var encurl='';
	for (var i=0; i<window.location.href.length; i++) {
		var c=window.location.href.charCodeAt(i);
		if (((c>=48)&&(c<=57))||((c>=65)&&(c<=90))||(c==95)||((c>=97)&&(c<=123))) {
			encurl+=window.location.href.charAt(i);
		} else {
			encurl+='%'+c.toString(16);
		}
	}
	window.open('http://goobnet.net/tzset.php?redir='+encurl,'tzwindow','resizable=yes,scrollbars=yes,width=420,height=480');
}

var imgarr=new Array();
function loadnodeimg(i) {
	var newimg=new Image;	newimg.src="http://goobnet.net/_images/"+i;
	imgarr[imgarr.length]=newimg;
}

if (document.images) {
	loadnodeimg("node_goobnet__.gif");	loadnodeimg("node_goobnet_h.gif");	loadnodeimg("node_goobnet_a.gif");
	loadnodeimg("node_football__.gif");	loadnodeimg("node_football_h.gif");	loadnodeimg("node_football_a.gif");
	loadnodeimg("node_porthole__.gif");	loadnodeimg("node_porthole_h.gif");	loadnodeimg("node_porthole_a.gif");
	loadnodeimg("node_interaction__.gif");	loadnodeimg("node_interaction_h.gif");	loadnodeimg("node_interaction_a.gif");
	loadnodeimg("node_space__.gif");	loadnodeimg("node_space_h.gif");	loadnodeimg("node_space_a.gif");
	loadnodeimg("node_snakeball__.gif");	loadnodeimg("node_snakeball_h.gif");	loadnodeimg("node_snakeball_a.gif");
}

function hilitenode(i,v) {
	switch (v) {
		case 0: c='_'; break;
		case 1: c='h'; break;
		case 2: c='a'; break;
	}
	if (document.images) document.images[i].src="http://goobnet.net/_images/"+i+"_"+c+".gif";
}
