var url = self.location.href;
if (url.indexOf("#")!=-1)
	self.location.href=url.substring(url.indexOf('#'),url.length);


var newH = 36;
if(document.layers){
	document.write('<style type="text/css">.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=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="<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)
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(155,25,"item_off","item_on",0,0,"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) 
*************************************/
//join sunwest
oM.makeMenu('menu1');
	oM.makeMenu('menu1_1','menu1',db+'About SunWest',sitedir+'about.html');
	oM.makeMenu('menu1_2','menu1',db+'Eligibility',sitedir+'join_eligibility.html');
		oM.makeMenu('menu1_2_1', 'menu1_2',db+'Tell A Friend',sitedir+'tell_a_friend.html');
	oM.makeMenu('menu1_3','menu1',db+'SunWest Partners',sitedir+'join_partners.html');
	oM.makeMenu('menu1_4','menu1',db+'Employment Opportunities',sitedir+'join_employment.html');
	oM.makeMenu('menu1_5','menu1',db+'Request Information','https://www.sunwestfcu.org/Forms/OnlineForm.cgi?form=info_request&onweb=true');

//accounts
oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2',db+'Savings Rates',sitedir+'rates_deposit.html');
	oM.makeMenu('menu2_2','menu2',db+'Savings',sitedir+'accounts_savings.html');
	oM.makeMenu('menu2_3','menu2',db+'Checking',sitedir+'accounts_savings.html#checking');
	oM.makeMenu('menu2_4','menu2',db+'IRAs',sitedir+'accounts_savings.html#iras');
	oM.makeMenu('menu2_5','menu2',db+'Share Certificates',sitedir+'accounts_savings.html#cds');
	oM.makeMenu('menu2_6','menu2',db+'Money Market',sitedir+'accounts_savings.html#money');
				
//loans		
oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3',db+'Loan Rates',sitedir+'rates_loan.html');		
	oM.makeMenu('menu3_2','menu3',db+'Apply Online Now',sitedir+'loans_online.html');
		oM.makeMenu('menu3_2_1','menu3_2',db+'Consumer Loans','https://www.loans24.net/atl/clientSelect.do?clientID=7581');
		//oM.makeMenu('menu3_2_2','menu3_2',db+'First Mortgage Loans','javascript:showWarning(\'http://www.ezonlineapp.com/default.asp?siteId=58793BDD-390D-4662-91DA-0F17B8448098\');')
		oM.makeMenu('menu3_2_2','menu3_2',db+'Home Equity Loans','https://www.loans24.net/atl/clientSelect.do?clientID=7581')	
		oM.makeMenu('menu3_2_3','menu3_2',db+'Credit Cards','https://www.loans24.net/atl/clientSelect.do?clientID=7581');	
	oM.makeMenu('menu3_3','menu3',db+'Consumer Loans',sitedir+'loans_consumer.html');
			oM.makeMenu('menu3_3_1','menu3_3',db+'New/Used Auto',sitedir+'loans_consumer_auto.html');
			oM.makeMenu('menu3_3_2','menu3_3',db+'Recreational Vehicle',sitedir+'loans_consumer_auto.html#rv');
			//oM.makeMenu('menu3_3_3','menu3_3',db+'Motorcycle',sitedir+'loans_consumer_auto.html#motorcycle');
			//oM.makeMenu('menu3_3_3','menu3_3',db+'Mobile Home',sitedir+'loans_consumer_auto.html#mobilehome');
			oM.makeMenu('menu3_3_3','menu3_3',db+'Share/CD Secured',sitedir+'loans_consumer_auto.html#share');
			oM.makeMenu('menu3_3_4','menu3_3',db+'Unsecured',sitedir+'loans_consumer_auto.html#unsecured');												
	oM.makeMenu('menu3_4','menu3',db+'Home Equity',sitedir+'loans_home.html');
			//oM.makeMenu('menu3_4_1','menu3_4',db+'First Mortgages',sitedir+'loans_home.html#first');
			//oM.makeMenu('menu3_4_2','menu3_4',db+'Home Equity',sitedir+'loans_home.html#homeeq');
	oM.makeMenu('menu3_5','menu3',db+'Credit Cards',sitedir+'loans_creditcard.html');
			oM.makeMenu('menu3_5_1','menu3_5',db+'MasterCard',sitedir+'loans_creditcard.html#mastercard');
			oM.makeMenu('menu3_5_2','menu3_5',db+'MasterCard - Gold',sitedir+'loans_creditcard.html#gold');
			oM.makeMenu('menu3_5_3','menu3_5',db+'Secured MasterCard',sitedir+'loans_creditcard.html#secured');
			oM.makeMenu('menu3_5_4','menu3_5',db+'Home Equity - Platinum Visa',sitedir+'loans_creditcard.html#platinum');
	oM.makeMenu('menu3_6','menu3',db+'Loan by Phone',sitedir+'loans_phone.html');
	oM.makeMenu('menu3_7','menu3',db+'Loan Funding Choices',sitedir+'loans_funding.html');
		oM.makeMenu('menu3_7_1','menu3_7',db+'Dealer Direct',sitedir+'loans_funding_choices.html#dealer');
		//oM.makeMenu('menu3_7_2','menu3_7',db+'Power Draft',sitedir+'loans_funding_choices.html#power');				
		oM.makeMenu('menu3_7_3','menu3_7',db+'Loans-by-Mail',sitedir+'loans_funding_choices.html#mail');
	oM.makeMenu('menu3_8','menu3',db+'Loan Protection',sitedir+'loans_protection.html');
				oM.makeMenu('menu3_8_1','menu3_8',db+'GAP Protection',sitedir+'loans_protection_gap.html');
				oM.makeMenu('menu3_8_2','menu3_8',db+'Mechanical Breakdown<br />'+db+'Protection',sitedir+'loans_protection_gap.html#mechanical','','',newH);
				oM.makeMenu('menu3_8_3','menu3_8',db+'Debt Protection',sitedir+'loans_protection_gap.html#debt');
	//oM.makeMenu('menu3_9','menu3',db+'Student Loans',sitedir+'loans_student.html');				

//contact us
oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4',db+'Branch Locations',sitedir+'contact_locations.html#operations');
	oM.makeMenu('menu4_2','menu4',db+'Hours of Operation',sitedir+'contact_locations.html#hours');
	oM.makeMenu('menu4_3','menu4',db+'Phone Numbers<br />'+db+'(local and toll free)',sitedir+'contact_locations.html#phone','','',newH);
	oM.makeMenu('menu4_4','menu4',db+'Email','https://www.sunwestfcu.org/Forms/OnlineForm.cgi?form=email&onweb=true');
    oM.makeMenu('menu4_5','menu4',db+'Request Information','https://www.sunwestfcu.org/Forms/OnlineForm.cgi?form=info_request&onweb=true');
    //oM.makeMenu('menu4_6','menu4',db+'Submit your request online','https://www.sunwestfcu.org/Forms/OnlineForm.cgi?form=sunadvisor');

//other services									
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5',db+'Shared Branching - Locations',sitedir+'other_services.html');
	oM.makeMenu('menu5_2','menu5',db+'VAL (Voice Access Line)',sitedir+'other_services.html#val');
	oM.makeMenu('menu5_3','menu5',db+'ATM Location/Locator',sitedir+'other_atms.html');	
	oM.makeMenu('menu5_4','menu5',db+'ATM Cards',sitedir+'other_services.html#atms');
	oM.makeMenu('menu5_5','menu5',db+'Direct Deposit',sitedir+'other_services.html#direct');
	oM.makeMenu('menu5_6','menu5',db+'Overdraft Privilege Program',sitedir+'other_services.html#overdraft');
	//oM.makeMenu('menu5_7','menu5',db+'Vacation Discount Packets',sitedir+'other_services.html#vacation');
	oM.makeMenu('menu5_7','menu5',db+'Night Depositories',sitedir+'other_services.html#night');
	oM.makeMenu('menu5_8','menu5',db+'Notary Public Services',sitedir+'other_services.html#notary');
	oM.makeMenu('menu5_9','menu5',db+'Automatic Transfer',sitedir+'other_services.html#automatic');
	oM.makeMenu('menu5_10','menu5',db+'Insurance Options',sitedir+'other_insurance.html');
		oM.makeMenu('menu5_10_1','menu5_10',db+'AD&amp;D',sitedir+'other_insurance_add.html');
		oM.makeMenu('menu5_10_2','menu5_10',db+'Hospital Accidental Protection',sitedir+'other_insurance_HAP.html');
		//oM.makeMenu('menu5_10_1','menu5_11',db+'Renters Insurance','javascript:showWarning("http://vut.alliedsolutions.net/renters/?code=018%20");');
		//oM.makeMenu('menu5_10_2','menu5_11',db+'ID Theft Shield','javascript:showWarning("https://wsecure.prepaidlegal.com/memapp/groupjsps/sunwestfcu.jsp");');	
		//oM.makeMenu('menu5_10_4','menu5_11',db+'Term Life Insurance','javascript:showWarning(\'https://www.gtlweb.com/swfcu/\');');
	oM.makeMenu('menu5_11','menu5',db+'SunWest Fee Schedule',sitedir+'pdf/Service_Chrg_Fees.pdf');

//privacy + security			
oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6',db+'Privacy Policy',sitedir+'privsec_privacy.html');
	oM.makeMenu('menu6_2','menu6',db+'Security',sitedir+'privsec_security.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;
}

var dropmenu1 = new  FindPosition("join");
var dropmenu2 = new  FindPosition("accounts");
var dropmenu3 = new  FindPosition("loans");
var dropmenu4 = new  FindPosition("contact");
var dropmenu5 = new  FindPosition("other");
var dropmenu6 = new  FindPosition("privacy");



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

	} 
	oM.showsub(menu);
	
}

