var newH = 35;
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=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=90, finishopacity=90, style=3)";
oM.level[1]=new cm_makeLevel(165,25,"item_off","item_on",1,1,"bordercolor",0,"right",0,0,imgdir+"tri.gif",3,5);
oM.level[1].roundBorder=0;
/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
//Spanish
oM.makeMenu('menu1')

    
//Online Services
oM.makeMenu('menu2')
	oM.makeMenu('menu2_1','menu2','Bill Payment',sitedir+'online_billpay.html');
	oM.makeMenu('menu2_2','menu2','eStatements',sitedir+'online_estatements.html');
	oM.makeMenu('menu2_3','menu2','Financial Education','javascript:showWarning("http://www.mymoney.gov/");'); 
	oM.makeMenu('menu2_4','menu2','College Planning Service',sitedir+'college_planning.html'); 
	oM.makeMenu('menu2_5','menu2','Membership Application',sitedir+'coming_soon.html');
	oM.makeMenu('menu2_6','menu2','Verified by VISA',sitedir+'online_verified.html');  
	oM.makeMenu('menu2_7','menu2','Check Imaging',sitedir+'online_checkimage.html');
	oM.makeMenu('menu2_8','menu2','Financial Calculators',sitedir+'online_calculators.html');
    	oM.makeMenu('menu2_7_1','menu2_8','Loan Calculator',sitedir+'online_calculators_loan.html');
		oM.makeMenu('menu2_7_2','menu2_8','Loan Comparison Calculator',sitedir+'online_calculators_loancomp.html');
		oM.makeMenu('menu2_7_3','menu2_8','Mortgage Calculator',sitedir+'online_calculators_mortgage.html');
		oM.makeMenu('menu2_7_4','menu2_8','Retirement Calculator',sitedir+'online_calculators_retirement.html');
		oM.makeMenu('menu2_7_5','menu2_8','Kids Calculator',sitedir+'online_calculators_kids.html');
	oM.makeMenu('menu2_9','menu2','Credit Report',sitedir+'online_creditreport.html');
	oM.makeMenu('menu2_10','menu2','Online Check Ordering','javascript:showWarning("https://reorder.harland.net/channelbroker?redirect=true");');
	<!--oM.makeMenu('menu2_11','menu2','TurboTax Online','javascript:showWarning("http://affiliates.cutspm.com/?cuid=notredame&pid=2&ptype=tto");');-->
	oM.makeMenu('menu2_11','menu2','TurboTax Online',sitedir+'online.html#turbotax');

//Products and Services
oM.makeMenu('menu3')
oM.makeMenu('menu3_1','menu3','Deposit Services',sitedir+'products_deposit.html');  
    oM.makeMenu('menu3_1_1','menu3_1','Share Savings',sitedir+'products_deposit_sharesav.html');
	oM.makeMenu('menu3_1_2','menu3_1','Share Certificates',sitedir+'products_deposit_sharecert.html');
	oM.makeMenu('menu3_1_3','menu3_1','Money Market Account',sitedir+'products_deposit_moneymarket.html');
	oM.makeMenu('menu3_1_4','menu3_1','Members Choice Money<br />Market Account',sitedir+'products_deposit_members.html','','',40);        
	oM.makeMenu('menu3_1_5','menu3_1','IRAs',sitedir+'products_deposit_iras.html');
	oM.makeMenu('menu3_1_6','menu3_1','Savings Bonds',sitedir+'products_deposit_savingsbonds.html');
	oM.makeMenu('menu3_1_7','menu3_1','Christmas Club',sitedir+'products_deposit_christmas.html');
oM.makeMenu('menu3_2','menu3','Checking Services',sitedir+'products_checking.html'); 
	oM.makeMenu('menu3_2_1','menu3_2','Free Share Draft Checking',sitedir+'products_checking_free.html'); 
	oM.makeMenu('menu3_2_2','menu3_2','Premier Checking',sitedir+'products_checking_premier.html');
	oM.makeMenu('menu3_2_3','menu3_2','Golden Shamrock Club',sitedir+'products_checking_golden.html');
	oM.makeMenu('menu3_2_4','menu3_2','Direct Checking',sitedir+'products_direct_checking.html');
oM.makeMenu('menu3_3','menu3','Loan Services',sitedir+'products_loan.html'); 
    oM.makeMenu('menu3_3_1','menu3_3','Auto Loans',sitedir+'products_loan_auto.html');
	oM.makeMenu('menu3_3_2','menu3_3','Mortgages',sitedir+'products_loan_mortgages.html');
	oM.makeMenu('menu3_3_3','menu3_3','EquiFast Home Equity Loan',sitedir+'products_loan_heloan.html');
	oM.makeMenu('menu3_3_4','menu3_3','PRIMEquity Home Equity Line-of-Credit Loan',sitedir+'products_loan_heloc.html', '', '', 40);	
	oM.makeMenu('menu3_3_5','menu3_3','Credit Cards',sitedir+'products_loan_creditcards.html');
	oM.makeMenu('menu3_3_6','menu3_3','Personal Line-of-Credit',sitedir+'products_loan_personal.html');
	oM.makeMenu('menu3_3_7','menu3_3','Shared Secured',sitedir+'products_loan_sharesecured.html');
	oM.makeMenu('menu3_3_8','menu3_3','Unsecured Personal Loan',sitedir+'products_loan_unsecuredpersonal.html');
	oM.makeMenu('menu3_3_9','menu3_3','Computer Loans',sitedir+'products_loan_computer.html'); 
	oM.makeMenu('menu3_3_10','menu3_3','Student Loans',sitedir+'products_loan_student.html');
oM.makeMenu('menu3_4','menu3','Electronic Services',sitedir+'products_electronic.html'); 
	oM.makeMenu('menu3_4_1','menu3_4','Direct Deposit',sitedir+'products_electronic_directdeposit.html');
	oM.makeMenu('menu3_4_2','menu3_4','Payroll Deduction',sitedir+'products_electronic_payroll.html');
	oM.makeMenu('menu3_4_3','menu3_4','Wire Transfer',sitedir+'products_electronic_wire.html');
oM.makeMenu('menu3_5','menu3','Payment Services',sitedir+'products_payment.html');
	oM.makeMenu('menu3_5_1','menu3_5','Escrow Account',sitedir+'products_payment_escrow.html');
	oM.makeMenu('menu3_5_2','menu3_5','Cashiers Checks',sitedir+'products_payment_official.html');
	oM.makeMenu('menu3_5_3','menu3_5','Travelers Checks',sitedir+'products_payment_travelers.html');	
oM.makeMenu('menu3_6','menu3','Support Services',sitedir+'products_support.html');
	oM.makeMenu('menu3_6_1','menu3_6','Investment Services','javascript:showWarning("http://investments.ndfcu.org/");');
	oM.makeMenu('menu3_6_2','menu3_6','Insurance Protection',sitedir+'products_support_insurance.html');
	oM.makeMenu('menu3_6_3','menu3_6','Night Deposit',sitedir+'products_support_nightdeposit.html');
	oM.makeMenu('menu3_6_4','menu3_6','Notary Public',sitedir+'products_support_notary.html');	
	oM.makeMenu('menu3_6_5','menu3_6','Safe Deposit Boxes',sitedir+'products_support_safebox.html');
	oM.makeMenu('menu3_6_6','menu3_6','Signature Guarantee',sitedir+'products_support_signature.html');
	
	
	
oM.makeMenu('menu4')

oM.makeMenu('menu5')

oM.makeMenu('menu6')
	oM.makeMenu('menu6_1','menu6','Deposit Rates',sitedir+'rates.html#deposit');  
	oM.makeMenu('menu6_2','menu6','Loan Rates',sitedir+'rates.html#loan');
	
oM.makeMenu('menu7')
	oM.makeMenu('menu7_1','menu7','What is a Credit Union?',sitedir+'ourcu_whatis.html'); 
		oM.makeMenu('menu7_1_1','menu7_1','Who Can Join?',sitedir+'ourcu_whatis_who.html');
		oM.makeMenu('menu7_1_2','menu7_1','Become a Member!',sitedir+'become_a_member.html');
		oM.makeMenu('menu7_1_3','menu7_1','Facts About the NCUA',sitedir+'ourcu_whatis_facts.html');	 
	oM.makeMenu('menu7_2','menu7','Our History',sitedir+'ourcu_history.html');
	oM.makeMenu('menu7_3','menu7','Branch Locations &amp; Hours',sitedir+'ourcu_branches.html');  
	oM.makeMenu('menu7_4','menu7','ATM Locations',sitedir+'ourcu_atms.html');
	oM.makeMenu('menu7_5','menu7','Employment Opportunities',sitedir+'empl_opp.html');
	
oM.makeMenu('menu8')
	oM.makeMenu('menu8_1','menu8','Become a Member!',sitedir+'become_a_member.html');  
	oM.makeMenu('menu8_2','menu8','College Planning Service',sitedir+'college_planning.html');
	oM.makeMenu('menu8_3','menu8','Important Contact Information',sitedir+'infodesk_contact.html');
	oM.makeMenu('menu8_4','menu8','Newsletters/Annual Reports',sitedir+'infodesk_newsletters.html');  
//		oM.makeMenu('menu8_3_1','menu8_3','2005 Annual Report',sitedir+'annual_report.pdf');  
	oM.makeMenu('menu8_5','menu8','Privacy Statement',sitedir+'infodesk_privacy.html');
	oM.makeMenu('menu8_6','menu8','Breaking News',sitedir+'infodesk_breakingnews.html');  
	oM.makeMenu('menu8_7','menu8','What&rsquo;s New',sitedir+'infodesk_whatsnew.html');  
	oM.makeMenu('menu8_8','menu8','Disclosures',sitedir+'Understand_your_acct.pdf');
	oM.makeMenu('menu8_9','menu8','Account Security Information',sitedir+'phishing.html');
	oM.makeMenu('menu8_10','menu8','Membership Application','https://www.ndfcu.org/Forms/OnlineForm.cgi?form=member_app');
	oM.makeMenu('menu8_11','menu8','Fee Schedule','https://www.ndfcu.org/site/NDFCUFeeSchedule08.pdf');
	oM.makeMenu('menu8_12','menu8','Business Fee Schedule','https://www.ndfcu.org/site/NDFCUBusinessFeeSchedule09.pdf');


	
oM.makeMenu('menu9')
	//oM.makeMenu('menu9_1','menu9','New User?','javascript:newUser();');  
	//oM.makeMenu('menu9_2','menu9','Security','javascript:openWin("https://www.diginsite.com/security/\");');
	oM.makeMenu('menu9_3','menu9','AOL Users','javascript:openWin("https://www.ndfcu.org/onlineserv/HB/aol.html");');
	oM.makeMenu('menu9_4','menu9','Difficulties Logging in?','javascript:openWin("https://www.ndfcu.org/onlineserv/HB/login_help.html");');

oM.makeMenu('menu10')

oM.makeMenu('menu11')
	oM.makeMenu('menu11_1','menu11','Report Fraud',sitedir+'infodesk_contact.html');
	oM.makeMenu('menu11_2','menu11','Report Lost Card',sitedir+'infodesk_contact.html');  
	oM.makeMenu('menu11_3','menu11','Report stolen card or checks',sitedir+'infodesk_contact.html');
	oM.makeMenu('menu11_4','menu11','General inquiries',sitedir+'infodesk_contact.html');
	oM.makeMenu('menu11_5','menu11','Other contact information',sitedir+'infodesk_contact.html');
	
oM.makeMenu('menu12')
	oM.makeMenu('menu12_1','menu12','Business Accounts',sitedir+'businesses.html');
	oM.makeMenu('menu12_2','menu12','Business Services','javascript:showWarning("https://www.newtekreferrals.com/alliance_templates/Public/Route.php?siteId=186&pageNum=1")');  

 
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;
}

// getAnchorPosition(anchorname)
//   This function returns an object having .x and .y properties which are the coordinates
//   of the named anchor, relative to the page.
function getAnchorPosition(anchorname) {
	// This function will return an Object with x and y properties
	var useWindow=false;
	var coordinates=new Object();
	var x=0,y=0;
	// Browser capability sniffing
	var use_gebi=false, use_css=false, use_layers=false;
	if (document.getElementById) { use_gebi=true; }
	else if (document.all) { use_css=true; }
	else if (document.layers) { use_layers=true; }
	// Logic to find position
 	if (use_gebi && document.all) {
		x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);
		y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);
		}
	else if (use_gebi) {
		var o=document.getElementById(anchorname);
		x=AnchorPosition_getPageOffsetLeft(o);
		y=AnchorPosition_getPageOffsetTop(o);
		}
 	else if (use_css) {
		x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);
		y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);
		}
	else if (use_layers) {
		var found=0;
		for (var i=0; i<document.anchors.length; i++) {
			if (document.anchors[i].name==anchorname) { found=1; break; }
			}
		if (found==0) {
			coordinates.x=0; coordinates.y=0; return coordinates;
			}
		x=document.anchors[i].x;
		y=document.anchors[i].y;
		}
	else {
		coordinates.x=0; coordinates.y=0; return coordinates;
		}
	coordinates.x=x;
	coordinates.y=y;
	return coordinates;
	}
	
	// getAnchorWindowPosition(anchorname)
//   This function returns an object having .x and .y properties which are the coordinates
//   of the named anchor, relative to the window
function getAnchorWindowPosition(anchorname) {
	var coordinates=getAnchorPosition(anchorname);
	var x=0;
	var y=0;
	if (document.getElementById) {
		if (isNaN(window.screenX)) {
			x=coordinates.x-document.body.scrollLeft+window.screenLeft;
			y=coordinates.y-document.body.scrollTop+window.screenTop;
			}
		else {
			x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;
			y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;
			}
		}
	else if (document.all) {
		x=coordinates.x-document.body.scrollLeft+window.screenLeft;
		y=coordinates.y-document.body.scrollTop+window.screenTop;
		}
	else if (document.layers) {
		x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;
		y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;
		}
	coordinates.x=x;
	coordinates.y=y;
	return coordinates;
	}

// Functions for IE to get position of an object
function AnchorPosition_getPageOffsetLeft (el) {
	var ol=el.offsetLeft;
	while ((el=el.offsetParent) != null) { ol += el.offsetLeft; }
	return ol;
	}
function AnchorPosition_getWindowOffsetLeft (el) {
	return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;
	}	
function AnchorPosition_getPageOffsetTop (el) {
	var ot=el.offsetTop;
	while((el=el.offsetParent) != null) { ot += el.offsetTop; }
	return ot;
	}
function AnchorPosition_getWindowOffsetTop (el) {
	return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;
	}



	

function showMenu(menu){
 switch(menu){
  case "menu1":
  var c = getAnchorPosition('spanish');
  oM.m["menu1"].b.moveIt(c.x+168,c.y-2);
  break;
  case "menu2":
  var c = getAnchorPosition('online');
  oM.m["menu2"].b.moveIt(c.x+168,c.y-2);
  break;
  case "menu3":
  var c = getAnchorPosition('products');
  oM.m["menu3"].b.moveIt(c.x+168,c.y-2);
  break;
  case "menu4":
  oM.m["menu4"].b.moveIt(170,175);
  break;
  case "menu5":
  oM.m["menu5"].b.moveIt(170,197);
  break;
  case "menu6":
  var c = getAnchorPosition('rates');
  oM.m["menu6"].b.moveIt(c.x+168,c.y-2);
  break;
  case "menu7":
  var c = getAnchorPosition('ourcu');
  oM.m["menu7"].b.moveIt(c.x-19,c.y+22);
  break;
  case "menu8":
  var c = getAnchorPosition('infodesk');
  oM.m["menu8"].b.moveIt(c.x-5,c.y+22);
  break;
  case "menu8_3":
  var c = getAnchorPosition('newsletters');
  oM.m["menu8_3"].b.moveIt(c.x-170,c.y+22);
  break;
  case "menu9":
  var c = getAnchorPosition('moreinfo');
  oM.m["menu9"].b.moveIt(c.x,c.y+13);
  break;
  case "menu10":
  var c = getAnchorPosition('moreinfo');
  oM.m["menu10"].b.moveIt(c.x,c.y+13);
  break;
  case "menu11":
  var c = getAnchorPosition('contact');
  oM.m["menu11"].b.moveIt(c.x-19,c.y+22);
  break;
   case "menu12":
  var c = getAnchorPosition('businesses');
  oM.m["menu12"].b.moveIt(c.x+168,c.y-2);
  break;
 } 
 oM.showsub(menu);
 
} 
 
