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=70, finishopacity=100, style=3)";
oM.level[1]=new cm_makeLevel(170,25,"item_off","item_on",0,0,"bordercolor",0,"right",0,0,imgdir+"tri.gif",9,13);
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','Nada Guides','javascript:showWarning("http://www2.nadaguides.com/autohome2.aspx?Lnk=1&amp;wSec=10&amp;wPr=0&amp;wPg=2111");');
oM.makeMenu('menu1_2','menu1','Deluxe','javascript:showWarning("http://www.deluxe-check-order.com/ReorderHome.jsp");');
oM.makeMenu('menu1_3','menu1','Federal Reserve Board','javascript:showWarning("http://www.federalreserve.gov/");');
oM.makeMenu('menu1_4','menu1','Safeco Auto Quote','javascript:showWarning("http://www.safeco.com");');
oM.makeMenu('menu1_5','menu1','Checking Basics','javascript:showWarning("https://www.consumerdebit.com/consumerinfo/us/en/index.htm");');
oM.makeMenu('menu1_6','menu1','How are my deposits insured?','javascript:showWarning("http://www.fdic.gov");');
oM.makeMenu('menu1_7','menu1','UVEST Financial Services, Inc.','javascript:showWarning("https://www.uvest.com/phoenix/inst/inst.aspx?c=207");');
oM.makeMenu('menu1_8','menu1','FINRA','javascript:showWarning("http://www.finra.org/index.htm");');
oM.makeMenu('menu1_9','menu1','SIPC','javascript:showWarning("http://www.sipc.org");');


oM.makeMenu('menu2')
oM.makeMenu('menu2_1','menu2','Privacy Policy',sitedir+'disclosure_privacy.html');
oM.makeMenu('menu2_2','menu2','Fee schedule',sitedir+'disclosure_fee.html');
oM.makeMenu('menu2_3','menu2','Funds Availability',sitedir+'disclosure_funds.html');
oM.makeMenu('menu2_4','menu2','Bill Payment Terms &amp; Conditions',sitedir+'disclosure_billpay.html');
oM.makeMenu('menu2_5','menu2','Online Statements',sitedir+'disclosure_onlinestatements.html');
oM.makeMenu('menu2_6','menu2','Patriot Act',sitedir+'disclosure_patriot.html');
oM.makeMenu('menu2_7','menu2','Contact the FDIC',sitedir+'disclosure_fdic.html');

oM.makeMenu('menu3');
oM.makeMenu('menu3_1','menu3','Deposits',sitedir+'faq_deposits.html');
oM.makeMenu('menu3_2','menu3','Internet Banking',sitedir+'faq_internetbanking.html');
oM.makeMenu('menu3_3','menu3','On-Line Bill Pay',sitedir+'faq_billpay.html');
oM.makeMenu('menu3_4','menu3','Investments',sitedir+'faq_invest.html');
oM.makeMenu('menu3_5','menu3','Lending',sitedir+'faq_lending.html');
oM.makeMenu('menu3_6','menu3','Security Tips',sitedir+'faq_securitytips.html');
oM.makeMenu('menu3_7','menu3','ATM/Debit Cards',sitedir+'faq_atm.html');

oM.makeMenu('menu4');
oM.makeMenu('menu4_1','menu4','Kids',sitedir+'calculators_kids.html');
oM.makeMenu('menu4_2','menu4','Loan',sitedir+'calculators_loan.html');
oM.makeMenu('menu4_3','menu4','Loan Comparison',sitedir+'calculators_loancompare.html');
oM.makeMenu('menu4_4','menu4','Mortgage',sitedir+'calculators_mortgage.html');
oM.makeMenu('menu4_5','menu4','Retirement',sitedir+'calculators_retirement.html');
oM.makeMenu('menu4_6','menu4','Savings',sitedir+'calculators_savings.html');

oM.makeMenu('menu5');
oM.makeMenu('menu5_1','menu5','E-Vantage Plus Checking',sitedir+'evantagechecking.html');
oM.makeMenu('menu5_2','menu5','Smart Checking/Smart Savings',sitedir+'checking_smart.html');
oM.makeMenu('menu5_3','menu5','Senior Class Checking',sitedir+'checking_senior.html');
oM.makeMenu('menu5_4','menu5','Opportunity Checking',sitedir+'checking_opportunity.html');
oM.makeMenu('menu5_5','menu5','Senior Class Trips',sitedir+'checking_senior_events.html');
oM.makeMenu('menu5_6','menu5','Check our Rates',sitedir+'rates.html');
oM.makeMenu('menu5_7','menu5','Free Online Statements',sitedir+'checking_onlinestatements.html');
oM.makeMenu('menu5_8','menu5','Fee Schedule',sitedir+'disclosure_fee.html');
oM.makeMenu('menu5_9','menu5','Reorder Checks','javascript:showWarning("http://www.deluxe-check-order.com/ReorderHome.jsp")');
//oM.makeMenu('menu5_1','menu5','Comparison Chart',sitedir+'checking_comparison.html');
//oM.makeMenu('menu5_3','menu5','Country Club Checking',sitedir+'checking_country.html');
//oM.makeMenu('menu5_4','menu5','Gold Key Checking',sitedir+'checking_gold.html');
//oM.makeMenu('menu5_7','menu5','NOW/Super NOW accounts',sitedir+'checking_now.html');
//oM.makeMenu('menu5_8','menu5','Free Checking',sitedir+'checking_free.html');

oM.makeMenu('menu6');
oM.makeMenu('menu6_1','menu6','Money Market',sitedir+'savings_money.html');
oM.makeMenu('menu6_2','menu6','Premium Gold Money Market',sitedir+'savings_money_premium.html');
oM.makeMenu('menu6_3','menu6','Savings/Christmas Club Accounts',sitedir+'savings_accounts.html');
oM.makeMenu('menu6_4','menu6','Individual Retirement Accounts',sitedir+'savings_ira.html');
oM.makeMenu('menu6_5','menu6','Health Savings Accounts',sitedir+'savings_health.html');
oM.makeMenu('menu6_6','menu6','Certificates of Deposits',sitedir+'savings_cd.html');
    oM.makeMenu('menu6_6_1','menu6_6','Dream Builders CD',sitedir+'savings_cd.html#dream');
oM.makeMenu('menu6_7','menu6','Check our Rates',sitedir+'rates.html');

oM.makeMenu('menu7');
oM.makeMenu('menu7_1','menu7','Home Loans/Mortgage',sitedir+'loan_mortgage.html');
    oM.makeMenu('menu7_1_1','menu7_1','Adjustable Rate Mortgages',sitedir+'loan_mortgage.html');
    oM.makeMenu('menu7_1_2','menu7_1','Fixed Rate Mortgages',sitedir+'loan_mortgage.html#fixed');
    oM.makeMenu('menu7_1_3','menu7_1','Special Programs',sitedir+'loan_mortgage.html#special');
    oM.makeMenu('menu7_1_4','menu7_1','Construction Loans',sitedir+'loan_mortgage.html#construction');
//oM.makeMenu('menu7_2','menu7','Home Equity Loans',sitedir+'loan_equity.html');
oM.makeMenu('menu7_2','menu7','Consumer/Auto Loans',sitedir+'loan_consumer.html');
oM.makeMenu('menu7_3','menu7','Credit Cards',sitedir+'loan_credit.html');
oM.makeMenu('menu7_4','menu7','Business Loans',sitedir+'loan_business.html');
oM.makeMenu('menu7_5','menu7','Apply for a Consumer Loan','http://www.loans24.net/atl/clientSelect.do?clientID=7837');
oM.makeMenu('menu7_6','menu7','Meet our Lending Team',sitedir+'loan_meet.html');

oM.makeMenu('menu8');
oM.makeMenu('menu8_1','menu8','Online Trading with UVEST','javascript:showWarning("http://net.uvestonline.com/RIS/showClient.asp?webID=WB6B9E11496ED1&cFMT=C&cTTL=Town%20and%20Country%20Bank&cML=C&cGL=D&cNP=D&cNT=&cDP=D&cDT=&cAV=D&cIURL=&cCOMM=$24%20per%20trade&cPREVIEW=N&wn=");','',230);
oM.makeMenu('menu8_2','menu8','Savings Bonds',sitedir+'other_savings.html','',230);
oM.makeMenu('menu8_3','menu8','Investment Products',sitedir+'investment.html','',230);
oM.makeMenu('menu8_4','menu8','Meet Investment Representative Karen Davis',sitedir+'investment_meetkaren.html','',230);
oM.makeMenu('menu8_5','menu8','Meet Financial Advisor Joshua Goodridge',sitedir+'investment_meetjoshua.html','',230);
oM.makeMenu('menu8_6','menu8','Meet Investment Representative Rob Mattingly',sitedir+'investment_meetrob.html','',230);



oM.makeMenu('menu9');
oM.makeMenu('menu9_1','menu9','Business Defined',sitedir+'business_defined.html');
oM.makeMenu('menu9_2','menu9','Loans/Line of Credit',sitedir+'loan_business.html');
oM.makeMenu('menu9_3','menu9','Business Checking Accounts',sitedir+'business_checking.html');
oM.makeMenu('menu9_4','menu9','Business Money Market',sitedir+'business_money.html');
oM.makeMenu('menu9_5','menu9','Business Savings/CDs',sitedir+'business_savings.html');
oM.makeMenu('menu9_6','menu9','Merchant Credit Card Processing',sitedir+'business_merchant.html');
oM.makeMenu('menu9_7','menu9','Business Services and Fees',sitedir+'business_fees.html');
oM.makeMenu('menu9_8','menu9','Online Business Banking',sitedir+'online_bus_banking.html');
oM.makeMenu('menu9_9','menu9','Online Business Banking Demo', 'http://www.cmdemo.com');


oM.makeMenu('menu10');
oM.makeMenu('menu10_1','menu10','Personal/Business Insurance',sitedir+'insurance.html#ins_products');
oM.makeMenu('menu10_2','menu10','Location and Hours',sitedir+'insurance.html#ins_contact');
oM.makeMenu('menu10_3','menu10','Insurance Agents',sitedir+'insurance.html#ins_agents');

oM.makeMenu('menu11');
oM.makeMenu('menu11_1','menu11','Check Re-Orders ','javascript:showWarning("http://www.deluxe-check-order.com/ReorderHome.jsp");');
//oM.makeMenu('menu11_2','menu11','Purchase Deluxe Visa Gift Card','javascript:showWarning("https://www.deluxe-card.com/index.cfm?clientkey=deluxe105296&dlxlinkid=deluxe-gift-card-120060ssw");');
oM.makeMenu('menu11_3','menu11','Safe Deposit Boxes',sitedir+'other_safe.html');
oM.makeMenu('menu11_4','menu11','MasterCard Secure Code',sitedir+'other_mastercard.html');
oM.makeMenu('menu11_5','menu11','ATM/Debit Cards',sitedir+'other_atm_debit.html');

oM.makeMenu('menu12');
oM.makeMenu('menu12_1','menu12','Federal Trade Commission','javascript:showWarning("http://www.ftc.gov/");');
oM.makeMenu('menu12_2','menu12','Consumer ID Theft Resources','javascript:showWarning("http://www.consumer.gov/idtheft/");');
oM.makeMenu('menu12_3','menu12','Protecting Your Finances',sitedir+'safeguards_protect.html');
oM.makeMenu('menu12_4','menu12','Secure E-mail',sitedir+'contact_secure_email.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;
}

function HrefPosition(hrefID){
    this.xPos = document.getElementById(hrefID).offsetLeft;
    this.yPos = document.getElementById(hrefID).offsetTop;
}


var dropmenu1 = new HrefPosition("topnavlinks");

var dropmenu5 = new FindPosition("checking");
var dropmenu6 = new FindPosition("savings");
var dropmenu7 = new FindPosition("loan");
var dropmenu8 = new FindPosition("investments");
var dropmenu9 = new FindPosition("business");
var dropmenu10 = new FindPosition("insurance");
var dropmenu11 = new FindPosition("otherproducts");

function showMenu(menu){
    switch(menu){
        case "menu1":
        oM.m["menu1"].b.moveIt(dropmenu1.xPos+110, dropmenu1.yPos+23);
        break;
        case "menu2":
        oM.m["menu2"].b.moveIt(dropmenu1.xPos+130, dropmenu1.yPos+23);
        break;
        case "menu3":
        oM.m["menu3"].b.moveIt(dropmenu1.xPos+150, dropmenu1.yPos+23);
        break;
        case "menu12":
        oM.m["menu12"].b.moveIt(dropmenu1.xPos+250, dropmenu1.yPos+23);
        break;
        case "menu4":
        oM.m["menu4"].b.moveIt(dropmenu1.xPos+280, dropmenu1.yPos+23);
        break;
        /* Image Nav */
        case "menu5":
        oM.m["menu5"].b.moveIt(dropmenu5.xPos, dropmenu5.yPos+23);
        break;
        case "menu6":
        oM.m["menu6"].b.moveIt(dropmenu6.xPos, dropmenu6.yPos+23);
        break;
        case "menu7":
        oM.m["menu7"].b.moveIt(dropmenu7.xPos, dropmenu7.yPos+23);
        break;
        case "menu8":
        oM.m["menu8"].b.moveIt(dropmenu8.xPos, dropmenu8.yPos+23);
        break;
        case "menu9":
        oM.m["menu9"].b.moveIt(dropmenu9.xPos, dropmenu9.yPos+23);
        break;
        case "menu10":
        oM.m["menu10"].b.moveIt(dropmenu10.xPos, dropmenu10.yPos+23);
        break;
        case "menu11":
        oM.m["menu11"].b.moveIt(dropmenu11.xPos, dropmenu11.yPos+23);
        break;

    }
    oM.showsub(menu);

}


//Randomize backpage photo
if(!window.homepage && !window.notrandom){
    document.images["rphoto"].src = imgdir+"photo-"+Math.ceil((Math.random()* 13))+".jpg";
}
//eof
