// This code works in Internet Explorer 4.0+, and both Navigator 4.0 and 6.0.
// All code written by Brian Smith

// the Menus
var vis = 'visible'
var hid = 'hidden'

var menu = new Array()
menu[0] = 'subaboutus'
menu[1] = 'submember'
menu[2] = 'subaccounts'
menu[3] = 'subloans'
menu[4] = 'subservices'
menu[5] = 'subsupport'
menu[6] = 'menuMask'
menu[7] = 'subbusiness'
menu[8] = 'subinsurance'


function getObj(name) {
	if (document.getElementById) {
		return document.getElementById(name).style;
	}
	else if (document.all) {
		return document.all[name].style;
	}
	else if (document.layers) {
		return document.layers[name];
	}
}

function swapMenu(n,p) {
	var arrayNum = menu[n]
	var menuObj = getObj(arrayNum)
	menuObj.visibility = p;
}

function hideAll() {
	for (i = 0; i < menu.length; i++) {
		swapMenu(i,hid)
	}
}

// A little (old) Netscape safety
if (document.layers) {origWidth = innerWidth; origHeight = innerHeight; onresize = reDo;}
function reDo() {if (innerWidth != origWidth || innerHeight != origHeight) location.reload();}

function extLink1(url) {
	//var go = confirm('this link will take you to an external site. Click OK to continue');
	var goUrl = "/exit_site.html?url=" + url;
	//if(go) {
		window.open(goUrl,'ECCU_external');
	//}
}




