var clicked=""
var gtype=".gif"
var selstate="_over"
if (typeof(loc)=="undefined" || loc==""){
	var loc=""
	if (document.body&&document.body.innerHTML){
		var tt = document.body.innerHTML.toLowerCase();
		var last = tt.indexOf("dch.js\"");
		if (last>0){
			var first = tt.lastIndexOf("\"", last);
			if (first>0 && first<last) loc = document.body.innerHTML.substr(first+1,last-first-1);
		}
	}
}

document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
tr(false);
writeButton("","http://www.dchashing.org","dch_b1",159,24,"dchashing","",0);
writeButton("","http://www.dchashing.com/dcreddress","dch_b2",159,24,"dc red dress run","",0);
writeButton("","http://www.bah3.org","dch_b3",159,24,"baltimore annapolis","",0);
writeButton("","http://www.ewh3.com","dch_b4",159,24,"everyday is wednesday","",0);
writeButton("","http://www.gfh3.org","dch_b5",159,24,"great falls","",0);
writeButton("","http://www.hasher.com","dch_b6",159,24,"harriettes & harriers (DCH4)","",0);
writeButton("","http://www.hillbillyh3.com","dch_b7",159,24,"hillbilly","",0);
/*writeButton("","http://www.dchashing.com/defunct.html","dch_b8",159,24,"maryland dirt road","",0); */
writeButton("","http://www.ofh3.com/","dch_b9",159,24,"old f.a.r.ts (frederick md)","",0);
writeButton("","http://www.oth4.net","dch_b10",159,24,"over the hump","",0);
writeButton("","http://www.dchashing.org/mvh3","dch_b11",159,24,"mount vernon","",0);
writeButton("","http://groups.yahoo.com/groups/smuttycrabhhh/","dch_b12",159,24,"SMUTTy crab","",0);
writeButton("","http://sohappyh.s459.sureserver.com/index.php","dch_b13",159,24,"so happy it's tuesday","",0);
writeButton("","http://www.whitehousehash.com","dch_b14",159,24,"whitehouse","",0);
writeButton("","http://www.dchashing.com/community/fmh3","dch_b15",159,24,"dc full moon","",0);
writeButton("","http://www.dchashing.com/dewey","dch_b16",159,24,"dewey beach","",0);
writeButton("","http://www.dchashing.com/community/beltwaybob","dch_b17",159,24,"beltway bob happy hour","",0);
writeButton("","http://www.dchashing.org/hashlinks.html","dch_b18",159,24,"links","",0);
writeButton("","http://www.dchashing.org/emailgroups.html","dch_b19",159,24,"email lists","",0);
writeButton("","http://gotothehash.net/","dch_b20",159,24,"about hashing","",0);
writeButton("","http://www.ononmagazine.com","dch_b21",159,24,"on on magazine","",0);
tr(true);
document.write("</tr></table>")
loc="";

function tr(b){if (b) document.write("<tr>");else document.write("</tr>");}

function turn_over(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_over"].src;
	}
}

function turn_off(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_off"].src;
	}
}

function reg(gname,name)
{
if (document.images)
	{
	document[name+"_off"] = new Image();
	document[name+"_off"].src = loc+gname+gtype;
	document[name+"_over"] = new Image();
	document[name+"_over"].src = loc+gname+"_over"+gtype;
	}
}

function evs(name){ return " onmouseover=\"turn_over('"+ name + "')\" onmouseout=\"turn_off('"+ name + "')\""}

function writeButton(urld, url, name, w, h, alt, target, hsp)
{
	gname = name;
	while(typeof(document[name])!="undefined") name += "x";
	reg(gname, name);
	tr(true);
	document.write("<td>");
	if (alt != "") alt = " alt=\"" + alt + "\"";
	if (target != "") target = " target=\"" + target + "\"";
	if (w > 0) w = " width=\""+w+"\""; else w = "";
	if (h > 0) h = " height=\""+h+"\""; else h = "";	
	if (url != "") url = " href=\"" + urld + url + "\"";
	
	document.write("<a " + url + evs(name) + target + ">");	
	
	if (hsp == -1) hsp =" align=\"right\"";
	else if (hsp > 0) hsp = " hspace=\""+hsp+"\"";
	else hsp = "";
	
	document.write("<img src=\""+loc+gname+gtype+"\" name=\"" + name + "\"" + w + h + alt + hsp + " border=\"0\" /></a></td>");
	tr(false);
}
