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("biztech.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(loc+"","index.htm","biztech_b1",91,19,"Hem","",0);
writeButton(loc+"","medlem.htm","biztech_b2",91,19,"Bli medlem","",0);
writeButton(loc+"","fiskekort.htm","biztech_b3",91,19,"Fiskekort","",0);
writeButton(loc+"","fiskevatten.htm","biztech_b4",91,19,"Fiskevatten","",0);
writeButton(loc+"","fiskevard.htm","biztech_b5",91,19,"Fiskevård","",0);
writeButton(loc+"","fiskeregler.htm","biztech_b6",91,19,"Fiskeregler","",0);
writeButton(loc+"","sva/sjukdom.htm","biztech_b7",91,19,"Fisksjukdomar","",0);
writeButton(loc+"","drangsjo.htm","biztech_b8",91,19,"Drängsjön","",0);
writeButton(loc+"","mosson.htm","biztech_b9",91,19,"St. Mossön","",0);
writeButton(loc+"","roddbat.htm","biztech_b10",91,19,"Roddbåtar","",0);
writeButton(loc+"","presentation.htm","biztech_b11",91,19,"Presentation","",0);
writeButton(loc+"","allemans.htm","biztech_b12",91,19,"Allemansrätt","",0);
writeButton(loc+"","nyheter.htm","biztech_b13",91,19,"Nyheter","",0);
writeButton(loc+"","funktionar.htm","biztech_b14",91,19,"Funktionärer","",0);
writeButton(loc+"","utbildning.htm","biztech_b15",91,19,"Kurser","",0);
writeButton(loc+"","competition.htm","biztech_b16",91,19,"Tävlingar","",0);
writeButton(loc+"","tavlingar.htm","biztech_b17",91,19,"Tävlingsresultat","",0);
writeButton(loc+"","kalender.htm","biztech_b18",91,19,"Kalender","",0);
writeButton(loc+"","ungdom.htm","biztech_b19",91,19,"Ungdomar","",0);
writeButton(loc+"","tips.htm","biztech_b20",91,19,"Tips och tricks","",0);
writeButton(loc+"","recept/abborre.htm","biztech_b21",91,19,"Recept","",0);
writeButton(loc+"","adresser.htm","biztech_b22",91,19,"Länkar","",0);
writeButton(loc+"","sponsorer.htm","biztech_b23",91,19,"Sponsorer","",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);
}
