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("hp_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>");
document.write("<td><img src=\""+loc+"hp_menu_top.gif\" alt=\"\" width=\"192\" height=\"30\"></td>");
tr(false);
writeButton(loc+"","Battery-Park.htm","hp_menu_b1",192,31,"Battery Park","",0);
writeButton(loc+"","Bryant-Park.htm","hp_menu_b2",192,31,"Bryant Park","",0);
writeButton(loc+"","Chrysler-Building.htm","hp_menu_b3",192,31,"Chrysler Building","",0);
writeButton(loc+"","Daily-News-Building.htm","hp_menu_b4",192,31,"Daily News Building","",0);
writeButton(loc+"","Eisenhower.htm","hp_menu_b5",192,31,"Eisenhower Parade","",0);
writeButton(loc+"","Empire-State-Building.htm","hp_menu_b6",192,31,"Empire State Building","",0);
writeButton(loc+"","Flatiron-Building.htm","hp_menu_b7",192,31,"Flatiron Building","",0);
writeButton(loc+"","Forty-Second-Street.htm","hp_menu_b8",192,31,"Forty Second Street","",0);
writeButton(loc+"","George-Washington-Bridge.htm","hp_menu_b9",192,31,"George Washington Bridge","",0);
writeButton(loc+"","Grand-Central-Station.htm","hp_menu_b10",192,31,"Grand Central","",0);
writeButton(loc+"","Herald-Square.htm","hp_menu_b11",192,31,"Herald Square","",0);
writeButton(loc+"","Metropolitan-Life-Building.htm","hp_menu_b12",192,31,"Metropolitan Life Building","",0);
writeButton(loc+"","New-York-Public-Library.htm","hp_menu_b13",192,31,"New York Public Library","",0);
writeButton(loc+"","Old-Waldorf-Astoria-Hotel.htm","hp_menu_b14",192,31,"Old Waldorf Astoria Hotel","",0);
writeButton(loc+"","New-York-Hospital.htm","hp_menu_b15",192,31,"New York Hospital","",0);
writeButton(loc+"","Presbyterian-Hospital.htm","hp_menu_b16",192,31,"PresbyterianHospital","",0);
writeButton(loc+"","Third-Ave-El.htm","hp_menu_b17",192,31,"Third Ave El","",0);
writeButton(loc+"","Times-Square.htm","hp_menu_b18",192,31,"Times Square","",0);
writeButton(loc+"","Wall-Street.htm","hp_menu_b19",192,31,"Wall Street","",0);
writeButton(loc+"","West-Street.htm","hp_menu_b20",192,31,"West Street","",0);
writeButton(loc+"","Worlds-Fair.htm","hp_menu_b21",192,31,"Worlds Fair","",0);
tr(true);
document.write("<td><img src=\""+loc+"hp_menu_bottom.gif\" alt=\"\" width=\"192\" height=\"88\"></td>");
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);
}
