//////////////////////////////////////////////////////

	hovercolor   = "#ffffff";       // color name/code
	bgcolor      = "#F2D7BA";       // color name/code
	background   = "";			        // picture url
	
	border_width = 1;               // IE,NS6+ only
	border_color = "#000000";       // IE,NS6+ only
	
	arrow_pic    = "pix/arrow.gif"; // url of arrow picture for submenus.  if no arrow is to be used, put ""
	                                // larger pictures will be resized to 6 pixels wide by 10 pixels tall
	layer_hide_timeout = 500;				// amount of time (in milliseconds) to wait before hiding menus after mouseout
	                                // caution: you need to give the user time to switch between menus

function CreateMenus() {
//////////////////////////////////////////////////////////////
// CREATE YOUR MENUS/SUBMENUS BELOW                         //
//////////////////////////////////////////////////////////////
/* To create a layer:
	 Menus[incrementing number] = new MenuSpecs(Left Position, Top Position, Width, List of Menu Links Seperated by Commas)
	 If a menu has a submenu, add onMouseOver="Show(SubMenu Number to Open, Current Menu, Any Menus opened before the current menu (seperated by commas)
	 EXAMPLE:
		Menus[1] =	new MenuSpecs(150,209,110,
					'<A HREF="http://www.javascripts.com" onMouseOver="Show(4,1)">Link Text</A> '+arrow,
					'<A HREF="http://www.javascripts.com" onMouseOver="Show(5,1)">Link Text</A> '+arrow,
					'<A HREF="http://www.javascripts.com" onMouseOver="Show(6,1)">Link Text</A> '+arrow
					
		);
		150 is the Left position, 209 is the Top position, 110 is the Width, and onMouseOver shows a submenu (4, 5, or 6 respectively)
*/


Menus[1] =	new MenuSpecs(272,15,150,
			'<A HREF="rates.htm" onMouseOver="Show(1)">Deposit Interest Rates</A> ',
			'<A HREF="accounts.htm" onMouseOver="Show(1)">Deposit Accounts</A> ',
			'<A HREF="loans.htm" onMouseOver="Show(1)">Loans</A> ',
			'<A HREF="commercial.htm" onMouseOver="Show(1)">Commercial Services</A> '
			//'<A HREF="investment.htm" onMouseOver="Show(1)">Investment Services</A> '
);

Menus[2] =	new MenuSpecs(402,15,130,
			'<A HREF="documents.php" onMouseOver="Show(2)">Documents &amp; News</A> ',
			'<A HREF="hours.htm" onMouseOver="Show(2)">Hours &amp; Locations</A> ',
			'<A HREF="telephone.htm" onMouseOver="Show(2)">Telephone Banking</A> ',
			'<A HREF="travel.htm" onMouseOver="Show(2)">Travel Club</A> ',
			'<A HREF="history.htm" onMouseOver="Show(2)">History</A> ',
			'<A HREF="privacy.htm" onMouseOver="Show(2)">Privacy Statement</A> '
);

//Menus[3] =	new MenuSpecs(165,15,106,
//			'<A HREF="https://www4.fmbstclair.com/pbi_pbi1961/pbi1961.asp?Rt=081914131&LogonBy=Connect3&PRMAccess=Account" onMouseOver="Show(3)">Existing User</A> ',
//			'<A HREF="online_policy.htm" onMouseOver="Show(3)">New User</A> ',
//			'<A HREF="online.htm" onMouseOver="Show(3)">Bill Pay Form</A> '
//);



Menus[3] =	new MenuSpecs(165,15,160,
			'<A HREF="#" onMouseOver="Show(4,3)">Consumer Banking Online</A> ',
			'<A HREF="#" onMouseOver="Show(5,3)">Business Banking Online</A> '
);

Menus[4] =	new MenuSpecs(325,15,106,
			'<A HREF="https://www4.fmbstclair.com/pbi_pbi1961/pbi1961.asp?Rt=081914131&LogonBy=Connect3&PRMAccess=Account" onMouseOver="Show(4,3)">Existing User</A> ',
			'<A HREF="online_policy.htm" onMouseOver="Show(4,3)">New User</A> '
//			'<A HREF="online.htm" onMouseOver="Show(4,3)">Bill Pay Form</A> '
);

Menus[5] =	new MenuSpecs(326,35,106,
			'<A HREF="https://www4.fmbstclair.com/EBC_EBC1961/EBC1961.ASP?WCI=Process&WCE=Request&RID=3000&RTN=081914131&MFA=2" onMouseOver="Show(5,3)">Existing User</A> '
);



}
////////////////////////////////////////////////////////////////
// NOTHING TO EDIT BELOW THIS LINE /////////////////////////////
////////////////////////////////////////////////////////////////

No3   = (parseInt(navigator.appVersion) > 3) ? 1:0;
if(document.all || document.getElementById) { if(!background) { background=bgcolor; } else { background = "url("+background+")"; } }

function MenuSpecs(Left,Top,Width) { if(No3) {
	if(document.all || document.getElementById) { Top+=7; Left+=2; Width-=6; }
	this.left  = Left;
	this.top   = Top;
	this.width = Width
	this.info  = "";
	T=0;
	for(i=3; i<arguments.length; i++) {
		if(document.all || document.getElementById) { this.info += "<TR><TD WIDTH="+Width+" onMouseOver='this.bgColor=\""+hovercolor+"\"' onMouseOut='this.bgColor=\"\"'>"+arguments[i]+"</TD></TR>"; }
		else { this.info += "<LAYER onMouseOver='this.bgColor=\""+hovercolor+"\"' onMouseOut='this.bgColor=\""+bgcolor+"\"' WIDTH="+Width+" POSITION=RELATIVE TOP="+T+">&nbsp;"+arguments[i]+"</LAYER>"; }
		T+=20;
	}
} }

Menus = new Array();
arrow = arrow_pic ? "<IMG SRC='"+arrow_pic+"' WIDTH=6 HEIGHT=10 BORDER=0 ALT=''>" : "";

CreateMenus();

j = (Menus[0]) ? 0:1;

for(i=j; i<Menus.length; i++) {
	if(document.all && No3) { document.write("<SPAN onMouseOver='clearTimeout(timer)' onMouseOut='Hide("+i+")' ID='L"+i+"' STYLE='position:absolute; visibility:hidden; background:"+background+"; top:"+Menus[i].top+"; left:"+Menus[i].left+";'><TABLE STYLE='border:solid "+border_width+" "+border_color+"'>"+Menus[i].info+"</TABLE></SPAN>"); }
	else if(document.layers && No3) { document.write("<LAYER onMouseOver='clearTimeout(timer)' onMouseOut='Hide("+i+")' ID='L"+i+"' POSITION=ABSOLUTE VISIBILITY=HIDDEN BGCOLOR='"+bgcolor+"' BACKGROUND='"+background+"' TOP="+Menus[i].top+" LEFT="+Menus[i].left+">"+Menus[i].info+"</LAYER>"); }
	else if(document.getElementById) { document.write("<SPAN onMouseOver='clearTimeout(timer)' onMouseOut='Hide("+i+")' ID='L"+i+"' STYLE='position:absolute; visibility:hidden; background:"+background+"; top:"+Menus[i].top+"; left:"+Menus[i].left+";'><TABLE STYLE='border-style:solid; border-width:"+border_width+"; border-color:"+border_color+";'>"+Menus[i].info+"</TABLE></SPAN>"); }
}

layer = (document.all && No3) ? "document.all['L'+menu].style" : (document.layers && No3) ? "document.layers['L'+menu]" : (document.getElementById) ? "document.getElementById('L'+menu).style" : 0;
var timer;

function doShow(args) {
	if(timer) clearTimeout(timer); 
	for(menu=0; menu<Menus.length; menu++) { if(Menus[menu]) { eval(layer).visibility = "hidden"; } }
	if(args) for(i=0; i<args.length; i++) { menu=args[i]; eval(layer).visibility = "visible"; }
}

function doHide() { timer = setTimeout("doShow()", layer_hide_timeout); }

if(document.all) { document.all["menubar"].style.visibility = "visible"; }
else if(document.layers) { document.layers["menubar"].visibility = "visible"; }
else if(document.getElementById) {
	//NETSCAPE 6+ FIX
	document.getElementById("menubar").style.visibility = "visible";
}
