﻿// JavaScript Document
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>';

//alert(sitedir);

//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=100, style=3)";
oM.level[1]=new cm_makeLevel(200,25,"item_off","item_on",1,1,"clB",0,"right",0,0,imgdir+"tri.gif",5,10);
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','TFCU History',sitedir+'about_history.html');
oM.makeMenu('menu1_2','menu1','The Credit Union Movement',sitedir+'about_movement.html');
oM.makeMenu('menu1_3','menu1','Vision/Mission/Committment',sitedir+'about_mission.html');
oM.makeMenu('menu1_4','menu1','Board & Volunteers',sitedir+'about_board.html');
oM.makeMenu('menu1_5','menu1','President\'s Desk',sitedir+'about_desk.html');
oM.makeMenu('menu1_6','menu1','Contact Us',sitedir+'about_contact.html');
oM.makeMenu('menu1_7','menu1','Branch Locations',sitedir+'about_contact.html#branches');
oM.makeMenu('menu1_8','menu1','ATM Locations',sitedir+'about_contact.html#atm');
oM.makeMenu('menu1_9','menu1','Holiday Closings',sitedir+'about_contact.html#holidays');
oM.makeMenu('menu1_10','menu1','Employment Opportunities',sitedir+'about_employment.html');
oM.makeMenu('menu1_11','menu1','Newsletter (Passport News)',sitedir+'about_newsletter.html');

oM.makeMenu('menu2');
oM.makeMenu('menu2_1','menu2','Why Choose TFCU?',sitedir+'join_choose.html'); 
oM.makeMenu('menu2_2','menu2','Become a Member',sitedir+'../../Forms/OnlineForm.cgi?form=wc_guestbook&onweb=true'); 
oM.makeMenu('menu2_3','menu2','Field of Membership',sitedir+'join_field.html'); 
oM.makeMenu('menu2_4','menu2','Passport Rewards Program',sitedir+'join_passport.html'); 

oM.makeMenu('menu3');
oM.makeMenu('menu3_1','menu3','Share/Savings',sitedir+'accounts_savings.html'); 
oM.makeMenu('menu3_2','menu3','Sharedraft/Checking',sitedir+'accounts_checking.html'); 
oM.makeMenu('menu3_3','menu3','Insurance',sitedir+'accounts_insurance.html'); 
oM.makeMenu('menu3_4','menu3','Savings & Investments',sitedir+'../site/savings_investments.html'); 
oM.makeMenu('menu3_5','menu3','Youth Savings Program',sitedir+'accounts_youth_savings_abby.html'); 
oM.makeMenu('menu3_6','menu3','Passport Privilege',sitedir+'accounts_passport_priv.html'); 
oM.makeMenu('menu3_7','menu3','Visa Check Card',sitedir+'accounts_check_card.html'); 
oM.makeMenu('menu3_8','menu3','Fee Schedule',sitedir+'accounts_fee_schedule.html'); 
oM.makeMenu('menu3_9','menu3','N.E.T.',sitedir+'accounts_net.html'); 
oM.makeMenu('menu3_10','menu3','i-N.E.T.',sitedir+'accounts_inet.html'); 
oM.makeMenu('menu3_11','menu3','Online Applications',sitedir+'accounts_applications.html'); 
oM.makeMenu('menu3_12','menu3','Passport Rewards Program',sitedir+'accounts_passport_rewards.html'); 
oM.makeMenu('menu3_13','menu3','E-Pay',sitedir+'accounts_epay.html'); 
oM.makeMenu('menu3_14','menu3','Disclosures',sitedir+'../site/accounts_disclosures.html');
oM.makeMenu('menu3_15','menu3','What&rsquo;s New',sitedir+'../site/new.html');


oM.makeMenu('menu4');
oM.makeMenu('menu4_1','menu4','Loan Information',sitedir+'loans.html');
oM.makeMenu('menu4_2','menu4','Home & Mortgage Loans',sitedir+'accounts_Home_Mortgage.html');
oM.makeMenu('menu4_3','menu4','Loan Application',sitedir+'../../Forms/OnlineForm.cgi?form=wc_loan_app&onweb=true'); 
oM.makeMenu('menu4_4','menu4','Calculators',sitedir+'calcs.html'); 
oM.makeMenu('menu4_5','menu4','Loan Rates',sitedir+'rates_loans.html');
oM.makeMenu('menu4_6','menu4','Skip-A-Payment',sitedir+'skipapayment.html');
oM.makeMenu('menu4_7','menu4','Student Loans',sitedir+'students.html');

oM.makeMenu('menu5');
oM.makeMenu('menu5_1','menu5','Savings & Investments',sitedir+'../site/savings_investments.html'); 
oM.makeMenu('menu5_2','menu5','Loans',sitedir+'rates_loans.html'); 
oM.makeMenu('menu5_3','menu5','Rate &amp; Fee Schedule',sitedir+'../site/rates_deposits.html');

oM.makeMenu('menu6');
oM.makeMenu('menu6_1','menu6','Financial Education',sitedir+'resources_education.html'); 
oM.makeMenu('menu6_2','menu6','Account &amp; Personal Security',sitedir+'resources_security.html');
oM.makeMenu('menu6_3','menu6','Free Credit Report','javascript:showWarning(\'https://www.annualcreditreport.com/cra/index.jsp\')');
oM.makeMenu('menu6_4','menu6','Calculators',sitedir+'calcs.html');
oM.makeMenu('menu6_5','menu6','Helpful Links',sitedir+'resources_helpful_links.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 = 0;
    this.yPos = 0;
    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("about");
var dropmenu2 = new  FindPosition("join");
var dropmenu3 = new  FindPosition("accounts");
var dropmenu4 = new  FindPosition("loans");
var dropmenu5 = new  FindPosition("rates");
var dropmenu6 = new  FindPosition("resources");


function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos+0,dropmenu1.yPos+33);
		break;
		case "menu2":
        oM.m["menu2"].b.moveIt(dropmenu2.xPos-0,dropmenu2.yPos+33);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos-0,dropmenu3.yPos+33);
		break;
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos-0,dropmenu4.yPos+33);
		break;   
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos-0,dropmenu5.yPos+33);
		break;   
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos-55,dropmenu6.yPos+33);
		break;   
	} 
	oM.showsub(menu);
	
}





