var clicked=""
var gtype=".jpg"
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("./js/think400.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+"","think400.htm","./files/think400_b1",270,39,"DK: iSeries One Man Shop & Contractor","",0,"DK: iSeries One Man Shop & Contractor");
writeButton(loc+"","itviden.htm","./files/think400_b2",270,39,"DK: IT Knowledge","",0,"DK: IT Knowledge");
writeButton(loc+"","programmering.htm","./files/think400_b3",270,39,"DK: iSeries Programming","",0,"DK: iSeries Programming");
writeButton(loc+"","erfaring.htm","./files/think400_b4",270,39,"DK: IT Experience","",0,"DK: IT Experience");
writeButton(loc+"","adhoc.htm","./files/think400_b5",270,39,"Mostly US: Tips, Tricks and How To Do","",0,"Mostly US: Tips, Tricks and How To Do");
writeButton(loc+"","apier.htm","./files/think400_b6",270,39,"Mostly US: API Interfaces","",0,"Mostly US: API Interfaces");
writeButton(loc+"","freecode.htm","./files/think400_b7",270,39,"Links to Free Code & Source","",0,"Links to Free Code & Source");
writeButton(loc+"","links.htm","./files/think400_b8",270,39,"FAQs, Links and Tech","",0,"FAQs, Links and Tech");
writeButton(loc+"","downloads.htm","./files/think400_b9",270,39,"XML parser, Pre compiler a.o.","",0,"XML parser, Pre compiler a.o.");
writeButton(loc+"","info.htm","./files/think400_b10",270,39,"Info from Think400.dk","",0,"Info from Think400.dk");
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, title)
{
	gname = name;
	while(typeof(document[name])!="undefined") name += "x";
	reg(gname, name);
	tr(true);
	document.write("<td>");
	if (alt != "") alt = " alt=\"" + alt + "\"";
	if (title != "") title = " title=\"" + title + "\"";
	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 +title + hsp + " border=\"0\" /></a></td>");
	tr(false);
}
