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("menu_.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.html","menu__b1",178,26,"Jimmy Engineer Home Page","",0);
writeButton(loc+"","../profile.htm","menu__b2",178,26,"Jimmy Engineer's profile","",0);
writeButton(loc+"","../gallery.htm","menu__b3",178,26,"Picture Gallery","",0);
writeButton(loc+"","../images/pg-social/30 - Mother Teresa/index.html","menu__b4",178,26,"Jimmy Engineer with Mother Teresa","",0);
writeButton(loc+"","../images/pg-social/15- Other Activities/in-usa.htm","menu__b5",178,26,"Jimmy Engineer in USA","",0);
writeButton(loc+"","../images/pg-social/15- Other Activities/in-england.htm","menu__b6",178,26,"In England","",0);
writeButton(loc+"","../images/pg-social/15- Other Activities/in-italy.htm","menu__b7",178,26,"In Italy","",0);
writeButton(loc+"","../images/pg-social/15- Other Activities/in-spain.htm","menu__b8",178,26,"In Spain","",0);
writeButton(loc+"","../images/pg-social/15- Other Activities/in-france.htm","menu__b9",178,26,"In France","",0);
writeButton(loc+"","../images/pg-social/15- Other Activities/in-holland.htm","menu__b10",178,26,"In Holland","",0);
writeButton(loc+"","../images/pg-social/15- Other Activities/in-germany.htm","menu__b11",178,26,"In Germany","",0);
writeButton(loc+"","../images/pg-social/14A - Food & Fun - Sri Lanka/index.html","menu__b12",178,26,"Jimmy Engineer in Sri Lanka","",0);
writeButton(loc+"","../images/pg-social/15- Other Activities/in-japan.htm","menu__b13",178,26,"Jimmy Engineer in Japan","",0);
writeButton(loc+"","../av.htm","menu__b14",178,26,"Audio and Video Clips","",0);
writeButton(loc+"","../awards.htm","menu__b15",178,26,"Awards","",0);
writeButton(loc+"","../chrono.htm","menu__b16",178,26,"Chronology","",0);
writeButton(loc+"","../friend.htm","menu__b17",178,26,"Tell your friend about this website","",0);
writeButton(loc+"","../gb.asp","menu__b18",178,26,"Sign the Guest Book","",0);
writeButton(loc+"","../feedback.asp","menu__b19",178,26,"Give your feedback","",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);
}
