// These functions courtesy GoobNet, http://goobnet.net/
// Nathan S Brown, 2001-6
// 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 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/nodes/"+i;
	imgarr[imgarr.length]=newimg;
}

if (document.images) {
	loadnodeimg("box0_goobnet__.gif");	loadnodeimg("box0_goobnet_a.gif");
	loadnodeimg("box0_football__.gif");	loadnodeimg("box0_football_a.gif");
	loadnodeimg("box0_porthole__.gif");	loadnodeimg("box0_porthole_a.gif");
	loadnodeimg("box0_interaction__.gif");	loadnodeimg("box0_interaction_a.gif");
	loadnodeimg("box0_space__.gif");	loadnodeimg("box0_space_a.gif");
	loadnodeimg("box0_snakeball__.gif");	loadnodeimg("box0_snakeball_a.gif");
}

function hilitenode(i,v) {
	switch (v) {
		case 0: c='_'; break;
		case 1:
		case 2: c='a'; break;
	}
	if (document.images) document.getElementById(i).src="http://goobnet.net/_images/nodes/"+i+"_"+c+".gif";
	if (v==2) {
		document.getElementById("node_"+i).style.width="160px";
	}
}