var newH = 38;
if(document.layers){
	document.write('<style>.clS,.clSover{border: 0px;}</style>');
	newH += 1;
}

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=500; 
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="<img src='"+imgdir+"clearpix.gif' width='3' height='1' border='0' alt='' />";

//oM.level[0]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)<img src="../images/menu_arrow.gif" width="14" height="10" alt="" border="0">
oM.level[0]=new cm_makeLevel(0,0,"","",0,0,"clB",0,"bottom",0,0,0,0,0);
oM.level[0].filter="PROGID:DXImageTransform.Microsoft.Alpha(opacity=100, finishopacity=100, style=1)";
oM.level[1]=new cm_makeLevel(150,22,"item_off","item_on",0,0,"clB",0,"right",0,0,imgdir+"tri.gif",8,8);
oM.level[0].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','Checking Services',sitedir+'personal_checking.html');
	oM.makeMenu('menu1_2','menu1','Savings Services',sitedir+'personal_savings.html');
	oM.makeMenu('menu1_3','menu1','IRA and CD Investments',sitedir+'investment_ira-cd.html');
	oM.makeMenu('menu1_4','menu1','Trust Services',sitedir+'investment_trust.html');
	oM.makeMenu('menu1_5','menu1','Loan Services',sitedir+'personal_loan.html');
	oM.makeMenu('menu1_6','menu1','Investment Consultant &amp; Brokerage Service',sitedir+'investment_investment.html','',150,38);
	oM.makeMenu('menu1_7','menu1','Convenience Services',sitedir+'personal_services.html');
		oM.makeMenu('menu1_7_1','menu1_7','ATM &amp; Debit Cards',sitedir+'personal_services.html#atm');
		oM.makeMenu('menu1_7_2','menu1_7','Credit Cards',sitedir+'personal_services.html#credit');
		oM.makeMenu('menu1_7_3','menu1_7','Online Banking',sitedir+'personal_services.html#online');
		oM.makeMenu('menu1_7_4','menu1_7','Online Bill Pay',sitedir+'personal_services.html#bill_pay');
		oM.makeMenu('menu1_7_5','menu1_7','Ready Reserve',sitedir+'personal_services.html#overdraft');
		oM.makeMenu('menu1_7_6','menu1_7','Reorder Checks',sitedir+'javascript:showWarning(\'http://www.deluxe.com/\');');
		oM.makeMenu('menu1_7_7','menu1_7','Telephone Banking',sitedir+'personal_services.html#telephone');
		oM.makeMenu('menu1_7_8','menu1_7','Wire Transfers',sitedir+'personal_services.html#wire');
		oM.makeMenu('menu1_7_9','menu1_7','Visa Gift Cards',sitedir+'personal_services.html#visa_gift');

/*
<a href="javascript:void(0);" onmouseover="" onmouseout="img_inact('onlinebanking'); oM.mout();">
<img src="images/nav-onlinebanking-off.gif" width="150" height="21" alt="Online Banking" name="onlinebanking" border="0" />
</a>
name,parent,txt,lnk,targ,w,h,img1,img2,cl,cl2,align,rows,nolink,onclick,onmouseover,onmouseout
*/

oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2','Business Deposits',sitedir+'business_deposits.html');
	oM.makeMenu('menu2_2','menu2','Business Loans',sitedir+'business_loans.html');
	oM.makeMenu('menu2_3','menu2','Business Convenience Services',sitedir+'business_services.html');

oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3','IRA and CD Investments',sitedir+'investment_ira-cd.html');
	oM.makeMenu('menu3_2','menu3','Trust Services',sitedir+'investment_trust.html');
	oM.makeMenu('menu3_3','menu3','Investment Consultant &amp; Brokerage Service',sitedir+'investment_investment.html','',150,38);

oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4','FAQ',sitedir+'service_faq.html');
		oM.makeMenu('menu4_1_1','menu4_1','General Bank Questions',sitedir+'service_faq_general.html');
		oM.makeMenu('menu4_1_2','menu4_1','Online Banking<br />Questions',sitedir+'service_faq_online.html','',150,38);
		oM.makeMenu('menu4_1_3','menu4_1','Internet Security Tips',sitedir+'service_faq_security.html');
	oM.makeMenu('menu4_2','menu4','Reorder Checks','javascript:showWarning(\'http://www.deluxe.com/\');');
	oM.makeMenu('menu4_3','menu4','Hours and Locations',sitedir+'hours_locations.html');
	oM.makeMenu('menu4_4','menu4','Contact Information',sitedir+'contact_us.html');
	oM.makeMenu('menu4_5','menu4','Telephone Banking',sitedir+'personal_services.html#telephone');
	oM.makeMenu('menu4_6','menu4','Privacy Policy',sitedir+'privacy_policy.html');
	oM.makeMenu('menu4_7','menu4','Security Tips',sitedir+'security.html');

oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5','Loan Calculator',sitedir+'calc_loan.html');
	oM.makeMenu('menu5_2','menu5','Loan Comparison Calculator',sitedir+'calc_loancomp.html');
	oM.makeMenu('menu5_3','menu5','Retirement Calculator',sitedir+'calc_retirement.html');
	oM.makeMenu('menu5_4','menu5','Kids Calculator',sitedir+'calc_kids.html');
	oM.makeMenu('menu5_5','menu5','Savings Calculator',sitedir+'calc_savings.html');
	oM.makeMenu('menu5_6','menu5','Mortgage Calculator',sitedir+'calc_mortgage.html');

oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6','Ten Simple Things You can Do to Fight Fraud and Identity Theft',sitedir+'','',150,38);
	oM.makeMenu('menu6_2','menu6','Your ID\'s Been Stolen. Now What?',sitedir+'','',150,38);
	oM.makeMenu('menu6_3','menu6','What is Phishing?',sitedir+'');
	oM.makeMenu('menu6_4','menu6','Specific steps you can take to protect yourself',sitedir+'','',150,38);


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("pbanking");
var dropmenu2 = new FindPosition("bbanking");
var dropmenu3 = new FindPosition("investment");
var dropmenu4 = new FindPosition("cservice");
var dropmenu5 = new FindPosition("calculators");
var dropmenu6 = new FindPosition("security");

var xOffset = 149;
var yOffset = 0;

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos+xOffset,dropmenu1.yPos+yOffset);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos+xOffset,dropmenu2.yPos+yOffset);
		break;		
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos+xOffset,dropmenu3.yPos+yOffset);
		break;		
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos+xOffset,dropmenu4.yPos+yOffset);
		break;		
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos+xOffset,dropmenu5.yPos+yOffset);
		break;		
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos+0,dropmenu6.yPos+22);
		break;		
	}
	oM.showsub(menu);
}
//end of file
