oM=new makeCM("oM"); 
oM.resizeCheck=0; 
oM.rows=1;  
oM.onlineRoot=""
oM.offlineRoot=""
oM.pxBetween=0; 
oM.fillImg=imgdir+"clearpix.gif"; 
oM.fromTop=0; 
oM.fromLeft=0; 
oM.wait=300; 
oM.zIndex=400;
oM.useBar=0; 
oM.barWidth="0"; 
oM.barHeight="menu"; 
oM.barX=0;
oM.barY="menu"; 
oM.barClass="clB";
oM.barBorderX=0; 
oM.barBorderY=0;
db='<span class="bullet">&#149; </span>';

//oM.level[0]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
oM.level[0]=new cm_makeLevel(0,0,"bordercolor","bordercolor",0,0,"clB",0,"bottom",0,0,0,0,0);
oM.level[0].filter="progid:DXImageTransform.Microsoft.Alpha(opacity=100, finishopacity=95, style=3)";
oM.level[1]=new cm_makeLevel(175,25,"item_off","item_on",0,0,"clB",0,"right",0,0,imgdir+"tri.gif",12,12);
oM.level[1].roundBorder=1;
/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/


oM.makeMenu('menu1');
oM.makeMenu('menu1_1','menu1','Internet Banking Login Screen','javascript:openWin("https://www.fnbwakefieldmi.com/onlineserv/HB/Signon.cgi");');
oM.makeMenu('menu1_2','menu1','Online Banking Application','javascript:openWin("https://www.fnbwakefieldmi.com/onlineserv/HB/STDReg.cgi");');
oM.makeMenu('menu1_3','menu1','Demonstration','javascript:openWin("https://www.fnbwakefieldmi.com/onlineserv/HB/demo.html");');


oM.makeMenu('menu2');
oM.makeMenu('menu2_1','menu2','Checking Accounts',sitedir+'personal_banking.html#checking'); 
oM.makeMenu('menu2_2','menu2','Savings Accounts',sitedir+'personal_banking.html#savings'); 
oM.makeMenu('menu2_3','menu2','Rates',sitedir+'rates.html');
oM.makeMenu('menu2_3_1','menu2_3','Savings Rates',sitedir+'rates.html#savings');
oM.makeMenu('menu2_3_2','menu2_3','Certificate of Deposit Rates',sitedir+'rates.html#cd');
oM.makeMenu('menu2_3_3','menu2_3','Checking Account Rates',sitedir+'rates.html#checking');
oM.makeMenu('menu2_3_4','menu2_3','Loan Rates',sitedir+'rates.html#loan');


oM.makeMenu('menu3');
oM.makeMenu('menu3_1','menu3','Business Checking Accounts',sitedir+'business_banking.html#checking');
oM.makeMenu('menu3_2','menu3','Sweep Accounts',sitedir+'business_banking.html#sweep');


oM.makeMenu('menu4');
oM.makeMenu('menu4_1','menu4','Commercial Loans',sitedir+'loans.html#commercial');
oM.makeMenu('menu4_2','menu4','Consumer Loans',sitedir+'loans.html#consumer');
oM.makeMenu('menu4_3','menu4','Mortgage Loans',sitedir+'loans.html#mortgage');
oM.makeMenu('menu4_4','menu4','Home Equity Financing',sitedir+'loans.html#equity');
oM.makeMenu('menu4_5','menu4','New And Used Auto Value Guide','javascript:showWarning("http://www.nadaguides.com/home.aspx")');


oM.makeMenu('menu5');
oM.makeMenu('menu5_1','menu5','Bill Payment',sitedir+'other.html#bill');
oM.makeMenu('menu5_2','menu5','Credit Cards',sitedir+'other.html#cards');
oM.makeMenu('menu5_3','menu5','Direct Deposit',sitedir+'other.html#deposit');
oM.makeMenu('menu5_4','menu5','Online Check Order',sitedir+'other.html#online');
oM.makeMenu('menu5_5','menu5','Overdraft Protection',sitedir+'other.html#overdraft');
oM.makeMenu('menu5_6','menu5','Safe Deposit Boxes',sitedir+'other.html#safe');
oM.makeMenu('menu5_7','menu5','Gift Cards',sitedir+'other.html#gift');
oM.makeMenu('menu5_8','menu5','Traveler Checks',sitedir+'other.html#traveler');
oM.makeMenu('menu5_9','menu5','Savings Bonds',sitedir+'other.html#bonds');
oM.makeMenu('menu5_10','menu5','Notary Services',sitedir+'other.html#notary');
oM.makeMenu('menu5_11','menu5','Michigan Lottery Claim Center',sitedir+'other.html#lottery');
oM.makeMenu('menu5_12','menu5','Wire Transfers',sitedir+'other.html#wire');
oM.makeMenu('menu5_13','menu5','Investments and Insurance',sitedir+'other.html#invest');


oM.makeMenu('menu6');
oM.makeMenu('menu6_1','menu6','Directors and Officers',sitedir+'contactus_directors.html');
oM.makeMenu('menu6_2','menu6','Locations and Hours',sitedir+'contactus_locations.html');


oM.makeMenu('menu7');
oM.makeMenu('menu7_1','menu7','Privacy Policy',sitedir+'privacy.html');


oM.makeMenu('menu8');
oM.makeMenu('menu8_1','menu8','Forgot Password','javascript:openWin("https://www.fnbwakefieldmi.com/onlineserv/HB/ForgottenPW.html");');


oM.menuPlacement=new Array(0);
oM.construct();

function FindPosition(image_name){
    if(!document.images[image_name]){
        return null;
    }
    this.image_name = image_name;
    this.xPos = 500;
    this.yPos = 500;
    this.ref_image = document.images[image_name];
    this.getRealLeft = getRealLeft;
    this.getRealTop = getRealTop;
    this.getRealLeft();
    this.getRealTop();
}

function getRealLeft(move) {
   if(!move){
        move = 0;
    }
   if(document.layers){
     this.xPos = this.ref_image.x + move;    
     return this.xPos;
   }
	this.xPos = this.ref_image.offsetLeft;
	tempEl = this.ref_image.offsetParent;
  	while (tempEl != null) {
  		this.xPos += tempEl.offsetLeft;
  		tempEl = tempEl.offsetParent;
  	}
    this.xPos = this.xPos + move;
	return this.xPos;
}

function getRealTop(move) {
    if(!move){
        move = 0;
    }
    if(document.layers){
     this.yPos = this.ref_image.y + move; 
     return this.yPos
   }
	this.yPos = this.ref_image.offsetTop;
	tempEl = this.ref_image.offsetParent;
	while (tempEl != null) {
  		this.yPos += tempEl.offsetTop;
  		tempEl = tempEl.offsetParent;
  	}
    this.yPos = this.yPos + move;
	return this.yPos;
}

var dropmenu1 = new  FindPosition("ob");
var dropmenu2 = new  FindPosition("pb");
var dropmenu3 = new  FindPosition("bb");
var dropmenu4 = new  FindPosition("loans");
var dropmenu5 = new  FindPosition("other");
var dropmenu6 = new  FindPosition("contact");
var dropmenu7 = new  FindPosition("help");
var dropmenu8 = new  FindPosition("moreinfo");

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos+0,dropmenu1.yPos+23);
		break;
		case "menu2":
        oM.m["menu2"].b.moveIt(dropmenu2.xPos+0,dropmenu2.yPos+23);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos+0,dropmenu3.yPos+23);
		break;
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos+0,dropmenu4.yPos+23);
		break;   
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos+0,dropmenu5.yPos+23);
		break;   
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos+0,dropmenu6.yPos+20);
		break;   
		case "menu7":
		oM.m["menu7"].b.moveIt(dropmenu7.xPos+0,dropmenu7.yPos+20);
		break;  
		case "menu8":
		oM.m["menu8"].b.moveIt(dropmenu8.xPos+0,dropmenu8.yPos+15);
		break;   
	} 
	oM.showsub(menu);
	
}





