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=90, finishopacity=90, style=1)";
oM.level[1]=new cm_makeLevel(150,27,"item_off","item_on",0,0,"clB",0,"right",0,0,imgdir+"tri.gif",11,11);
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','Personal Checking<br />Accounts',sitedir+'personal_checking.html','',150,40);
		//oM.makeMenu('menu1_1_1','menu1_1','Hometown Checking Club Account',sitedir+'personal_checking.html#hometown','',150,40);
		//oM.makeMenu('menu1_1_2','menu1_1','Regular Checking',sitedir+'personal_checking.html#regular');
		//oM.makeMenu('menu1_1_4','menu1_1','Budget Account (Free Checking)',sitedir+'personal_checking.html#budget','',150,40);
		//oM.makeMenu('menu1_1_5','menu1_1','MyAccount',sitedir+'myaccount/whatis.html','_blank');
		oM.makeMenu('menu1_1_1','menu1_1','MyAccount','javascript:openWin(\'' + sitedir + 'myaccount/whatis.html\', \'_blank\', 800, 600,\'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0\'); ');
	oM.makeMenu('menu1_2','menu1','Interest Bearing Checking Accounts',sitedir+'personal_intchecking.html','',150,40);
		//oM.makeMenu('menu1_2_1','menu1_2','N.O.W. Account',sitedir+'personal_intchecking.html#now');
		oM.makeMenu('menu1_2_1','menu1_2','MyInterest','javascript:openWin(\'' + sitedir + 'myaccount/whatis.html\', \'_blank\', 800, 600,\'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0\'); ');
		oM.makeMenu('menu1_2_2','menu1_2','MyInterest Plus','javascript:openWin(\'' + sitedir + 'myaccount/whatis.html\', \'_blank\', 800, 600,\'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0\'); ');
		oM.makeMenu('menu1_2_3','menu1_2','Money Market Account',sitedir+'personal_intchecking.html#money_market');
		oM.makeMenu('menu1_2_4','menu1_2','Premier Money Market<br />Account',sitedir+'personal_intchecking.html#super_money_market','',150,40);
	oM.makeMenu('menu1_3','menu1','Rates',sitedir+'rates.html');
	oM.makeMenu('menu1_4','menu1','Trust',sitedir+'personal_trust.html');
	oM.makeMenu('menu1_5','menu1','Loans',sitedir+'personal_loans.html');
	oM.makeMenu('menu1_6','menu1','Other Services',sitedir+'personal_other.html');
	oM.makeMenu('menu1_7','menu1','Schedule of Fees',sitedir+'personal_fees.html');

/*
<a href="javascript:void(0);" onmouseover="showMenu('menu1');" 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','Accounts',sitedir+'business_accounts.html');
	oM.makeMenu('menu2_2','menu2','Small Business Online<br />Banking Login',sitedir+'../index.html','',150,40);
	oM.makeMenu('menu2_3','menu2','Cash Management','https://www.mytcbt.com/onlineserv/CM/');

oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3','Online Banking',sitedir+'../index.html');
	oM.makeMenu('menu3_2','menu3','Online Bill Pay',sitedir+'online_billpay.html');
	oM.makeMenu('menu3_3','menu3','Cash Management','https://www.mytcbt.com/onlineserv/CM/');
	oM.makeMenu('menu3_4','menu3','Email Statements',sitedir+'online_email_statement.html');
	oM.makeMenu('menu3_5','menu3','Check Reorder','javascript:showWarning(\'https://checkreorderexpress.com/prodreorder/reorder_form.cfm\');');
	oM.makeMenu('menu3_6','menu3','Overdraft Election Form ','https://www.mytcbt.com/Forms/OnlineForm.cgi?form=reg_e_app&onweb=true');	
	
oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4','Banking Center Listings',sitedir+'locations.html');
	oM.makeMenu('menu4_2','menu4','History of Bank',sitedir+'about_history.html');
	oM.makeMenu('menu4_3','menu4','Letter from CEO',sitedir+'about_letter.html');
	oM.makeMenu('menu4_4','menu4','Board of Directors',sitedir+'about_board.html');
	oM.makeMenu('menu4_5','menu4','Loan Officers',sitedir+'about_officers.html');
	oM.makeMenu('menu4_6','menu4','Statement of Condition',sitedir+'about_statement.html');
	oM.makeMenu('menu4_7','menu4','Privacy Policy',sitedir+'privacy.pdf');
	oM.makeMenu('menu4_8','menu4','Contact Us',sitedir+'contact_us.html');

oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5','Banking Center Listings',sitedir+'locations.html');
	oM.makeMenu('menu5_2','menu5','Hours of Operation',sitedir+'hours.html');
	oM.makeMenu('menu5_3','menu5','ATM Locations',sitedir+'atm_locations.html');

oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6','Kids Calculator',sitedir+'calculators_kids.html');
	oM.makeMenu('menu6_2','menu6','Loan Calculator',sitedir+'calculators_loan.html');
	oM.makeMenu('menu6_3','menu6','Loan Comparison Calculator',sitedir+'calculators_loancomp.html');
	oM.makeMenu('menu6_4','menu6','Mortgage Calculator',sitedir+'calculators_mortgage.html');
	oM.makeMenu('menu6_5','menu6','Retirement Calculator',sitedir+'calculators_retirement.html');
	oM.makeMenu('menu6_6','menu6','Savings Calculator',sitedir+'calculators_savings.html');

oM.makeMenu('menu7');
	oM.makeMenu('menu7_1','menu7','Online Banking FAQ',sitedir+'faq_online.html');
	oM.makeMenu('menu7_2','menu7','Bill Payment FAQ',sitedir+'faq_billpay.html');
	oM.makeMenu('menu7_3','menu7','PFM - Online FAQ','javascript:alert(\'coming soon\');');
	oM.makeMenu('menu7_4','menu7','Security','https://www.mytcbt.com/onlineserv/HB/security_site/privacy.html');
	oM.makeMenu('menu7_5','menu7','Disclosures',sitedir+'disclosure.html');
	    oM.makeMenu('menu7_5_1','menu7_5','MyAccount Disclosure',sitedir+'pdf/MYACCTdisclosure.pdf','_blank');
	    oM.makeMenu('menu7_5_2','menu7_5','MyMoney Disclosure',sitedir+'pdf/MYMONEYMARKETdisclosure.pdf','_blank');
	    oM.makeMenu('menu7_5_3','menu7_5','Statement Savings TIS Disclosure',sitedir+'pdf/STMTSavingsDisclosure.pdf','_blank',150,40);
	    oM.makeMenu('menu7_5_4','menu7_5','N.O.W. Account TIS<br />Disclosure',sitedir+'pdf/NOWDisclosure.pdf','_blank',150,40);
	    oM.makeMenu('menu7_5_5','menu7_5','Money Market Account TIS Disclosure',sitedir+'pdf/MMKT_Premier.pdf','_blank',150,40);
	    oM.makeMenu('menu7_5_6','menu7_5','Individual Retirement Acct<br />TIS Disclosure',sitedir+'pdf/IRADisclosure.pdf','_blank',150,40);
	    oM.makeMenu('menu7_5_7','menu7_5','Checking Account TIS Disclosure',sitedir+'pdf/DDADisclosure.pdf','_blank',150,40);
	    oM.makeMenu('menu7_5_8','menu7_5','Certificate Of Deposit TIS Disclosure',sitedir+'pdf/CODDisclosure.pdf','_blank',150,40);


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("personalservices");
var dropmenu2 = new FindPosition("businessservices");
var dropmenu3 = new FindPosition("onlineservices");
var dropmenu4 = new FindPosition("aboutus");
var dropmenu5 = new FindPosition("locations");
var dropmenu6 = new FindPosition("calculators");
var dropmenu7 = new FindPosition("help");

var xOffset = 143;
var yOffset = -2;

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-15,dropmenu7.yPos+23);
		break;		
			
	}
	oM.showsub(menu);
}
//end of file
