/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for About Us Menu
var menu1=new Array()
menu1[0]='<div id="nav"><a href="html/aboutus.html">Mission Statement</a></div>'
menu1[1]='<div id="nav"><a href="html/history.html">Luso History</a></div>'
menu1[2]='<div id="nav"><a href="html/membership.html">Membership</a></div>'
menu1[3]='<div id="nav"><a href="html/staff.html">Staff</a></div>'
menu1[4]='<div id="nav"><a href="html/location.html">Location</a></div>'
menu1[5]='<div id="nav"><a href="html/hours.html">Hours & Holidays</a></div>'
menu1[6]='<div id="nav"><a href="html/employment.html">Employment</a></div>'

//Contents for Online Services Menu
var menu2=new Array()
menu2[0]='<div id="nav"><a href="https://global1.onlinebank.com/vtgv/vtgr.htm?tmpl=online.htm&banknr=1826" target="_blank" onClick="drawAlert1()">"LUSO Anywhere" Online Banking</a></div>'
menu2[1]='<div id="nav"><a href="html/anywhere_faq.html">"LUSO Anywhere" FAQs</a></div>'
menu2[2]='<div id="nav"><a href="https://www.member-data.com/estmts/lusofederal/register.aspx" onClick="drawAlert8()">Register for E-Statements</a></div>'
menu2[3]='<div id="nav"><a href="https://www.member-data.com/estmts/lusofederal/Login.aspx?ReturnUrl=%2festmts%2flusofederal%2fDefault.aspx" onClick="drawAlert9()">Retrieve Your E-Statements</a></div>'
menu2[4]='<div id="nav"><a href="html/email_reg.html">Register Your E-Mail</a></div>'


//Contents for Accounts Menu
var menu3=new Array()
menu3[0]='<div id="nav"><a href="html/savings_index.html">Savings</a></div>'
menu3[1]='<div id="nav"><a href="html/club_index.html">Club</a></div>'
menu3[2]='<div id="nav"><a href="html/checking_index.html">Checking</a></div>'
menu3[3]='<div id="nav"><a href="html/moneymarket.html">Money Market</a></div>'
menu3[4]='<div id="nav"><a href="html/certificates_index.html">Certificate / IRA</a></div>'


//Contents for Loans/Visa Menu
var menu4=new Array()
menu4[0]='<div id="nav"><a href="html/vehicle_index.html">Vehicle</a></div>'
menu4[1]='<div id="nav"><a href="html/personal_index.html">Personal</a></div>'
menu4[2]='<div id="nav"><a href="html/poolspa.html">Pool & Spa</a></div>'
menu4[3]='<div id="nav"><a href="html/vacation.html">Vacation</a></div>'
menu4[4]='<div id="nav"><a href="html/visa_index.html">VISA</a></div>'



//Contents for Investment Services
var menu5=new Array()
menu5[0]='<div id="nav"><a href="http://www.comfinserv.com" target="_blank" onClick="drawAlert3()">Community Financial Services</a></div>'



//Contents for 24 Hours
var menu6=new Array()
menu6[0]='<div id="nav"><a href="https://global1.onlinebank.com/vtgv/vtgr.htm?tmpl=online.htm&banknr=1826" target="_blank" onClick="drawAlert1()">"LUSO Anywhere" Online Banking</a></div>'
menu6[1]='<div id="nav"><a href="html/atm.html">ATM</a></div>'
menu6[2]='<div id="nav"><a href="html/visa_index.html">VISA</a></div>'
menu6[3]='<div id="nav"><a href="https://www.member-data.com/estmts/lusofederal/register.aspx" onClick="drawAlert8()">Register for E-Statements</a></div>'
menu6[4]='<div id="nav"><a href="https://www.member-data.com/estmts/lusofederal/Login.aspx?ReturnUrl=%2festmts%2flusofederal%2fDefault.aspx" onClick="drawAlert9()">Retrieve Your E-Statements</a></div>'
menu6[5]='<div id="nav"><a href="html/email_reg.html">Register Your E-Mail</a></div>'
menu6[6]='<div id="nav"><a href="http://www.sum-atm.com" onClick="drawAlert5()" target="_blank">SUM</a></div>'




var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 140px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

<!--  Leaving LUSO site: 
function drawAlert1 () {
alert ("You are now leaving the Luso Federal Credit Union Web Site to access 'Luso Anywhere' Online Banking.");
}

<!--  Leaving LUSO site:
function drawAlert2 () {
alert ("You are now leaving the Luso Federal Credit Union Web Site to access Googolplex.");
}
// End -->

<!--  Leaving LUSO site:
function drawAlert3 () {
alert ("You are now leaving the Luso Federal Credit Union Web Site to access the Community Financial Services page.");
}

<!--  E-mail message:
function drawAlert4 () {
alert ("For Your Protection: Please do not send any sensitive information through e-mail,  such as:  your  social security number, date of birth, account numbers, PIN munbers etc.");
}


<!--  Mass Live:
function drawAlert5 () {
alert ("You are now leaving the Luso Federal Credit Union Web Site.");
}

<!--  PlanIt:
function drawAlert6 () {
alert ("You are now leaving the Luso Federal Credit Union Web Site to access Plan It: Retire Ready ToolKit.");
}

<!--  Money Mix:
function drawAlert7 () {
alert ("You are now leaving the Luso Federal Credit Union Web Site to access Money Mix: Launch Your Life.");
}

<!--  Register E-Statements:
function drawAlert8 () {
alert ("You are now leaving the Luso Federal Credit Union Web Site to Register for E-Statements.");
}

<!--  Retrieve E-Statements:
function drawAlert9 () {
alert ("You are now leaving the Luso Federal Credit Union Web Site to Retrieve your E-Statements.");
}

<!--  Retrieve E-Statements:
function drawAlert10 () {
alert ("You are now leaving the Luso Federal Credit Union Web Site to access Home & Family Finance Resource Center.");
}

<!--  Retrieve E-Statements:
function drawAlert11 () {
alert ("You are now leaving the Luso Federal Credit Union Web Site to access Anytime Adviser.");
}
// End -->




/*
	Header Information------------------------------------[Do Not Remove This Header]--
	Title: OO Dom Image Rollover
	Description: This script makes it easy to add rollover/ mousedown 
  	effects to any image on the page, including image submit buttons. Automatically 
  	preloads images as well. Script works in all DOM capable browsers- IE5+, NS6+, 
  	Opera7+.
	
	Legal: Copyright 2005 Adam Smith
	Author Email Address: ibulwark@hotmail.com
	Date Created: June 6, 2005
	Website: Codevendor.com | eBadgeman.com
	Script featured on Dynamic Drive: http://www.dynamicdrive.com
	-----------------------------------------------------------------------------------
*/

function imageholderclass(){
	this.over=new Array();
	this.down=new Array();
	this.src=new Array();
	this.store=store;
	
	function store(src, down, over){
		var AL=this.src.length;
		this.src[AL]=new Image(); this.src[AL].src=src;
		this.over[AL]=new Image(); this.over[AL].src=over;
		this.down[AL]=new Image(); this.down[AL].src=down;
	}
}

var ih = new imageholderclass();
var mouseisdown=0;

function preloader(t){
	for(i=0;i<t.length;i++){
		if(t[i].getAttribute('srcover')||t[i].getAttribute('srcdown')){
			
			storeimages(t[i]);
			var checker='';
			checker=(t[i].getAttribute('srcover'))?checker+'A':checker+'';
			checker=(t[i].getAttribute('srcdown'))?checker+'B':checker+'';
			
			switch(checker){
			case 'A' : mouseover(t[i]);mouseout(t[i]); break;
			case 'B' : mousedown(t[i]); mouseup2(t[i]); break;
			case 'AB' : mouseover(t[i]);mouseout(t[i]); mousedown(t[i]); mouseup(t[i]); break;
			default : return;			
			}
			
			if(t[i].src){t[i].setAttribute("oldsrc",t[i].src);}
		}
	}
}
function mouseup(t){
	var newmouseup;
	if(t.onmouseup){
		t.oldmouseup=t.onmouseup;
		newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("srcover");this.oldmouseup();}

	}
	else{newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("srcover");}}
	t.onmouseup=newmouseup;
}

function mouseup2(t){
	var newmouseup;
	if(t.onmouseup){
		t.oldmouseup=t.onmouseup;
		newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("oldsrc");this.oldmouseup();}
		}
	else{newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("oldsrc");}}
	t.onmouseup = newmouseup;
}

function mousedown(t){
	var newmousedown;
	if(t.onmousedown){
		t.oldmousedown=t.onmousedown;
		newmousedown=function(){if(mouseisdown==0){this.src=this.getAttribute("srcdown");this.oldmousedown();}}
	}
	else{newmousedown=function(){if(mouseisdown==0){this.src=this.getAttribute("srcdown");}}}
	t.onmousedown=newmousedown;
}

function mouseover(t){
	var newmouseover;
	if(t.onmouseover){
		t.oldmouseover=t.onmouseover;
		newmouseover=function(){this.src=this.getAttribute("srcover");this.oldmouseover();}
	}
	else{newmouseover=function(){this.src=this.getAttribute("srcover");}}
	t.onmouseover=newmouseover;
}

function mouseout(t){
	var newmouseout;
	if(t.onmouseout){
		t.oldmouseout=t.onmouseout;
		newmouseout=function(){this.src=this.getAttribute("oldsrc");this.oldmouseout();}
	}
	else{newmouseout=function(){this.src=this.getAttribute("oldsrc");}}
	t.onmouseout=newmouseout;
}

function storeimages(t){
	var s=(t.getAttribute('src'))?t.getAttribute('src'):'';
	var d=(t.getAttribute('srcdown'))?t.getAttribute('srcdown'):'';
	var o=(t.getAttribute('srcover'))?t.getAttribute('srcover'):'';
	ih.store(s,d,o);
}

function preloadimgsrc(){
	if(!document.getElementById) return;
	var it=document.getElementsByTagName('IMG');
	var it2=document.getElementsByTagName('INPUT');
	preloader(it);
	preloader(it2);
}

if(window.addEventListener){window.addEventListener("load", preloadimgsrc, false);} 
else{
	if(window.attachEvent){window.attachEvent("onload", preloadimgsrc);}
	else{if(document.getElementById){window.onload=preloadimgsrc;}}
}