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='' />";

var menuWidth = 140;
var menuHeight = 22;
var doubleHeight = 36;

//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=95, finishopacity=95, style=1)";
oM.level[1]=new cm_makeLevel(menuWidth,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 Accounts',sitedir+'personal_checking.html');
		oM.makeMenu('menu1_1_1','menu1_1','Catch-Free Checking',sitedir+'personal_checking.html#1');
		oM.makeMenu('menu1_1_2','menu1_1','Renasant Capital<br />Account',sitedir+'personal_checking.html#2','',menuWidth,doubleHeight);
		oM.makeMenu('menu1_1_4','menu1_1','Renasant Express Travelers Club',sitedir+'personal_checking.html#3','',menuWidth,doubleHeight);
		//oM.makeMenu('menu1_1_5','menu1_1','Renasant Interest Checking ',sitedir+'personal_checking.html#4','',menuWidth,doubleHeight);
		oM.makeMenu('menu1_1_6','menu1_1','Renasant Tower Club Account',sitedir+'personal_checking.html#5','',menuWidth,doubleHeight);
	oM.makeMenu('menu1_2','menu1','Savings Accounts',sitedir+'personal_savings.html');
		oM.makeMenu('menu1_2_1','menu1_2','Regular Savings',sitedir+'personal_savings.html#regular_savings');
		oM.makeMenu('menu1_2_2','menu1_2','Renasant Kids Savings',sitedir+'personal_savings.html#kids_savings');
		oM.makeMenu('menu1_2_3','menu1_2','Money Market Account',sitedir+'personal_savings.html#money_market');
	oM.makeMenu('menu1_3','menu1','CDs and IRAs',sitedir+'personal_cd_ira.html');
	oM.makeMenu('menu1_4','menu1','Consumer Loans',sitedir+'personal_loans_consumer.html');
	oM.makeMenu('menu1_5','menu1','Mortgage Loans',sitedir+'personal_loans_mortgage.html');
	oM.makeMenu('menu1_6','menu1','Fees',sitedir+'fees.html');
	oM.makeMenu('menu1_7','menu1','Other Services',sitedir+'personal_other_services.html');
	oM.makeMenu('menu1_8','menu1','Personal Credit Cards',sitedir+'personal_other_services.html#mc_visa');


/*
<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 Checking',sitedir+'business_checking.html');
	oM.makeMenu('menu2_2','menu2','Business Savings Accounts',sitedir+'business_savings.html','',menuWidth,doubleHeight);
	oM.makeMenu('menu2_3','menu2','Business Banking<br />Online',sitedir+'business_banking_info.html','',menuWidth,doubleHeight);
	oM.makeMenu('menu2_4','menu2','Business Loans',sitedir+'business_loans.html');
	oM.makeMenu('menu2_5','menu2','Business CDs',sitedir+'business_cd.html');
	oM.makeMenu('menu2_6','menu2','Fees',sitedir+'fees.html');
	oM.makeMenu('menu2_7','menu2','Other Services',sitedir+'business_other.html');

oM.makeMenu('menu3');
	/*oM.makeMenu('menu3_1','menu3','CD Rates',sitedir+'fees_rates.html#cd');
	oM.makeMenu('menu3_2','menu3','IRA Rates',sitedir+'fees_rates.html#ira');
	oM.makeMenu('menu3_3','menu3','Deposit Rates',sitedir+'fees_rates.html#deposit');*/
	oM.makeMenu('menu3_4','menu3','Scheduled Fees',sitedir+'fees_schedule.html');

oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4','Loan Calculator',sitedir+'calculators_loan.html');
//	oM.makeMenu('menu4_2','menu4','Loan Comparison Calculator',sitedir+'calculators_loancomp.html','',menuWidth,doubleHeight);
	oM.makeMenu('menu4_3','menu4','Savings Calculator',sitedir+'calculators_savings.html');
	oM.makeMenu('menu4_4','menu4','Retirement Calculator',sitedir+'calculators_retirement.html');
	oM.makeMenu('menu4_5','menu4','Mortgage Calculator',sitedir+'calculators_mortgage.html');

oM.makeMenu('menu5');
	//oM.makeMenu('menu5_1','menu5','Renasant Bank History',sitedir+'about.html#history');
	//oM.makeMenu('menu5_2','menu5','Renasant Bank Board of Directors',sitedir+'about.html#directors','','',doubleHeight);

oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6','Shareholder Online',sitedir+'shareholder_online.html');
	oM.makeMenu('menu6_2','menu6','Shareholder<br />Information',sitedir+'shareholder.html','',menuWidth,doubleHeight);
	oM.makeMenu('menu6_3','menu6','Shareholder Forms',sitedir+'shareholder_forms.html');
	oM.makeMenu('menu6_4','menu6','Company\'s SEC Filings','javascript:showWarning(\'http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000883476\');');
	oM.makeMenu('menu6_5','menu6','SEC Insider Filings','javascript:showWarning(\'http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000883476&owner=only\');');
	oM.makeMenu('menu6_6','menu6','NASDAQ','javascript:showWarning(\'http://www.nasdaq.com/\');');
	oM.makeMenu('menu6_7','menu6','Plan Prospectus',sitedir+'pdf/shareholder/plan_prospectus_12.22.2000.pdf');
	oM.makeMenu('menu6_8','menu6','Plan Enrollment Form',sitedir+'pdf/shareholder/plan_enrollment_form.pdf');
        
oM.makeMenu('menu8');
	oM.makeMenu('menu8_1','menu8','',sitedir+'');

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("personal");
var dropmenu2 = new FindPosition("business");
var dropmenu3 = new FindPosition("fees");
var dropmenu4 = new FindPosition("calculators");
var dropmenu5 = new FindPosition("about");
var dropmenu6 = new FindPosition("shareholder");
var dropmenu7 = new FindPosition("formsApps");
var dropmenu8 = new FindPosition("identity");

var xOffset = 156;
var yOffset = 1;

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+xOffset,dropmenu6.yPos+yOffset);
		break;		
		case "menu7":
		oM.m["menu7"].b.moveIt(dropmenu7.xPos+xOffset,dropmenu7.yPos+yOffset);
		break;		
		case "menu8":
		oM.m["menu8"].b.moveIt(dropmenu8.xPos+xOffset,dropmenu8.yPos+yOffset);
		break;					
	}
	oM.showsub(menu);
}
//end of file
