var url = self.location.href;
if (url.indexOf("#")!=-1)
	self.location.href=url.substring(url.indexOf('#'),url.length);


if(window.homepage){
    imgdir="images/";
    sitedir="http://www.pnwfcu.org/site/";
    securedir="https://www.pnwfcu.org/site/";
    homedir="";
}

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(150,25,"item_off","item_on",1,1,"clB",0,"right",0,0,imgdir+"bullet_dhtml.gif",10,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',db+'Join Us',sitedir+'about_join.html');
	oM.makeMenu('menu1_2','menu1',db+'Contact Us',sitedir+'about_contact.html');
	oM.makeMenu('menu1_3','menu1',db+'Locations & Hours',sitedir+'about_locations.html');
	oM.makeMenu('menu1_4','menu1',db+'Job Opportunities',sitedir+'about_careers.html');
	oM.makeMenu('menu1_5','menu1',db+'Whats New',sitedir+'about_whatsnew.html');
	oM.makeMenu('menu1_6','menu1',db+'Patriot Act','javascript:openPdf(\'PatriotActDoc.pdf\');');

oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2',db+'Savings Accounts',sitedir+'personal_savings.html');
	oM.makeMenu('menu2_2','menu2',db+'Money Market Accounts',sitedir+'personal_money.html');
	oM.makeMenu('menu2_3','menu2',db+'CDs',sitedir+'personal_cds.html');
	oM.makeMenu('menu2_4','menu2',db+'IRAs',sitedir+'personal_ira.html');
	oM.makeMenu('menu2_5','menu2',db+'Checking Accounts',sitedir+'personal_checking.html');
	oM.makeMenu('menu2_6','menu2',db+'Checking Switch Kit',sitedir+'personal_switch.html');
	oM.makeMenu('menu2_7','menu2',db+'Online Account Access',sitedir+'personal_online.html');

		
oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3',db+'Savings & Checking',sitedir+'business_savings.html');		
	oM.makeMenu('menu3_2','menu3',db+'Money Market & CDs',sitedir+'business_money.html');
	oM.makeMenu('menu3_3','menu3',db+'Loans',sitedir+'business_loans.html');
	oM.makeMenu('menu3_4','menu3',db+'Merchant Processing &amp;<br />'+db+'Services',sitedir+'business_merchant.html','','',newH);
	oM.makeMenu('menu3_5','menu3',db+'Tools &amp; Resources',sitedir+'business_tools_resources.html');


oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4',db+'Consumer Loans',sitedir+'loans_consumer.html');
	oM.makeMenu('menu4_2','menu4',db+'VISA Cards',sitedir+'loans_visa.html');
	oM.makeMenu('menu4_3','menu4',db+'Student Loans',sitedir+'loans_student.html');
	//oM.makeMenu('menu4_4','menu4',db+'Lending Solutions',sitedir+'loans_lending.html');
	oM.makeMenu('menu4_4','menu4',db+'Visa Extra Awards Card',sitedir+'loans_visa_extra.html');

									
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5',db+'Life Events',sitedir+'financial_life.html');
		oM.makeMenu('menu5_1_1','menu5_1',db+'Getting Started',sitedir+'financial_getting_started.html');
		oM.makeMenu('menu5_1_2','menu5_1',db+'College Education Planning',sitedir+'financial_life_college.html');
		oM.makeMenu('menu5_1_3','menu5_1',db+'Changing Jobs',sitedir+'financial_life_jobs.html');
		oM.makeMenu('menu5_1_4','menu5_1',db+'Estate Planning',sitedir+'financial_life_estate.html');
		oM.makeMenu('menu5_1_5','menu5_1',db+'Retirement Planning',sitedir+'financial_life_retirement.html');
		oM.makeMenu('menu5_1_6','menu5_1',db+'Business Planning',sitedir+'financial_business_planning.html');
		oM.makeMenu('menu5_1_7','menu5_1',db+'Caring for Others',sitedir+'financial_life_others.html');
	oM.makeMenu('menu5_2','menu5',db+'Investment Opportunities',sitedir+'financial_investment.html');
		oM.makeMenu('menu5_2_1','menu5_2',db+'Asset Allocation',sitedir+'financial_investment_asset.html');
		oM.makeMenu('menu5_2_2','menu5_2',db+'Mutual Funds',sitedir+'financial_investment_mutual.html');
		oM.makeMenu('menu5_2_3','menu5_2',db+'Tax-Deferred Annuities',sitedir+'financial_investment_tax.html');
		oM.makeMenu('menu5_2_4','menu5_2',db+'Long-Term Care Insurance',sitedir+'financial_investment_longterm.html');
		oM.makeMenu('menu5_2_5','menu5_2',db+'Life &amp; Disability Insurance',sitedir+'financial_investment_life.html');
	oM.makeMenu('menu5_3','menu5',db+'Online Investment Services',sitedir+'financial_online.html');

oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6',db+'Your Financial Partner<br />'+db+'for Life',sitedir+'member_financial_partner.html','','',newH);
		oM.makeMenu('menu6_1_1','menu6_1',db+'Jumpstarting your Future',sitedir+'member_jumpstarting_your_future.html');
		oM.makeMenu('menu6_1_2','menu6_1',db+'Reestablishing Credit',sitedir+'member_reestablishing_credit.html');
		oM.makeMenu('menu6_1_3','menu6_1',db+'Building your Nest',sitedir+'member_building_your_nest.html');
		oM.makeMenu('menu6_1_4','menu6_1',db+'Accumulating Wealth',sitedir+'member_accumulating_wealth.html');
		oM.makeMenu('menu6_1_5','menu6_1',db+'Reaching Retirement',sitedir+'member_reaching_retirement.html');		
	//oM.makeMenu('menu6_2','menu6',db+'CU Learning Center',sitedir+'member_culearning.html');
	oM.makeMenu('menu6_2','menu6',db+'brass|MAGAZINE',sitedir+'brass.html');
	//oM.makeMenu('menu6_4','menu6',db+'The Edge Learning Center',sitedir+'member_edgelearning.html');	
	oM.makeMenu('menu6_3','menu6',db+ 'Kid&rsquo;s Learning Center',sitedir+'member_kids.html');
	oM.makeMenu('menu6_4','menu6',db+'Seminar Schedule',sitedir+'member_seminar.html');
	oM.makeMenu('menu6_5','menu6',db+'Tools &amp; Resources',sitedir+'member_tools.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("aboutus");
var dropmenu2 = new  FindPosition("personal");
var dropmenu3 = new  FindPosition("business");
var dropmenu4 = new  FindPosition("loans");
var dropmenu5 = new  FindPosition("fplan");
var dropmenu6 = new  FindPosition("membered");


function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos,dropmenu1.yPos+34);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos,dropmenu2.yPos+34);
		break;		
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos,dropmenu3.yPos+34);
		break;		
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos,dropmenu4.yPos+34);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos,dropmenu5.yPos+34);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos,dropmenu6.yPos+34);
		break;

	} 
	oM.showsub(menu);
}
