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("bnk.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+"bnk_top.gif\" alt=\"\" width=\"148\" height=\"2\"></td>");
tr(false);
writeButton("","http://www.luxuryshorehomes.com","bnk_b1",148,24,"B&K Home","_top",0);
writeButton("","http://www.luxuryshorehomes.com/pages/open_house_index.html","bnk_b2",148,24,"B&K Real Estate - Open House","_top",0);
writeButton("","http://www.luxuryshorehomes.com/pages/beaches_index.html","bnk_b3",148,24,"B&K Real Estate - Area Beaches","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/beachbuzz/beachbuzz_index.html","bnk_b4",148,24,"The B&K Beach Buzz Newsletter","_top",0);
writeButton("","http://www.luxuryshorehomes.com/pages/about_index.html","bnk_b5",148,24,"About B&K Real Estate","_top",0);
writeButton("","http://www.luxuryshorehomes.com/pages/ourhistory_index.html","bnk_b6",148,24,"B&K - Our History","_top",0);
writeButton("","http://www.luxuryshorehomes.com/pages/offices_index.html","bnk_b7",148,24,"5 Jersey Shore Offices","_top",0);
writeButton("","http://www.luxuryshorehomes.com/pages/agents_index.html","bnk_b8",148,24,"B&K - Professional Real Estate Agents","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/ocean_front_properties/oceanfrontprop_index.html","bnk_b9",148,24,"B&K - Oceanfront Properties","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/waterfront_properties/waterfrontprop_index.html","bnk_b10",148,24,"B&K - Waterfront Properties","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/luxury_home_properties/luxuryhomes_index.html","bnk_b11",148,24,"B&K - Luxury Homes","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/shorehome_properties/shorehomeprop_index.html","bnk_b12",148,24,"B&K - Shore Homes","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/primary_residence/primary_index.html","bnk_b13",148,24,"B&K - Primary Residences","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/summer_rentals/summerrentals_index.html","bnk_b14",148,24,"B&K - Shore Rentals","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/land/land_index.html","bnk_b15",148,24,"B&K - Lots and Land","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/bay_point_harbour/baypointharbour_index.html","bnk_b16",148,24,"B&K - Bay Point Harbour","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/condominiums/condominiumprop_index.html","bnk_b17",148,24,"B&K - Condominium Properties","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/investment_properties/investmentprop_index.html","bnk_b18",148,24,"B&K - Investment Properties","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/foreclosures/foreclosureprop_index.html","bnk_b19",148,24,"B&K - Foreclosure Properties","_top",0);
writeButton("","http://www.luxuryshorehomes.com/properties/new_construction/new_construction_index.html","bnk_b20",148,24,"B&K - New Construction","_top",0);
writeButton("","http://www.luxuryshorehomes.com/pages/links_resources_index.html","bnk_b21",148,24,"B&K - Links and Resources","_top",0);
tr(true);
document.write("<td><img src=\""+loc+"bnk_bottom.gif\" alt=\"\" width=\"148\" height=\"2\"></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);
}

