if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

/*
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
*/


//if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly

var imgdir;
var sitedir;
var securedir;
var homedir;

if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}
else if(window.calc_page)
{
imgdir="../images/"
sitedir="../site/"
securedir="../site/"
homedir="../"
}
else if(window.sigonpage)
{
imgdir="https://www.accessfcu.org/images/"
sitedir="http://www.accessfcu.org/site/"
securedir="https://www.accessfcu.org/site/"
homedir="http://www.accessfcu.org/"
}
else if(window.securepage)
{
imgdir="https://www.accessfcu.org/images/"
sitedir="http://www.accessfcu.org/site/"
securedir="https://www.accessfcu.org/site/"
homedir="http://www.accessfcu.org/"
}
else
{
imgdir="../images/";
sitedir="";
securedir="";
homedir="../";
}
 var fiName = "Access Federal Credit Union";

// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW


browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName =="Microsoft Internet Explorer") && (browserVer >= 4)))
{
version = "ok";
onlineservices_on = new Image(180,30);
onlineservices_on.src = imgdir + "nav-onlineservices-on.gif";

onlineservices_off = new Image(180,30);
onlineservices_off.src = imgdir + "nav-onlineservices-off.gif";

products_on = new Image(180,30);
products_on.src = imgdir + "nav-products-on.gif";

products_off = new Image(180,30);
products_off.src = imgdir + "nav-products-off.gif";

calculators_on = new Image(180,30);
calculators_on.src = imgdir + "nav-calculators-on.gif";

calculators_off = new Image(180,30);
calculators_off.src = imgdir + "nav-calculators-off.gif";

community_on = new Image(180,30);
community_on.src = imgdir + "nav-community-on.gif";

community_off = new Image(180,30);
community_off.src = imgdir + "nav-community-off.gif";

information_on = new Image(180,30);
information_on.src = imgdir + "nav-information-on.gif";

information_off = new Image(180,30);
information_off.src = imgdir + "nav-information-off.gif";

weblinks_on = new Image(180,30);
weblinks_on.src = imgdir + "nav-weblinks-on.gif";

weblinks_off = new Image(180,30);
weblinks_off.src = imgdir + "nav-weblinks-off.gif";

contactus_on = new Image(180,30);
contactus_on.src = imgdir + "nav-contactus-on.gif";

contactus_off = new Image(180,30);
contactus_off.src = imgdir + "nav-contactus-off.gif";

kids_on = new Image(180,30);
kids_on.src = imgdir + "nav-kids-on.gif";

kids_off = new Image(180,30);
kids_off.src = imgdir + "nav-kids-off.gif";

home_on = new Image(180,30);
home_on.src = imgdir + "nav-home-on.gif";

home_off = new Image(180,30);
home_off.src = imgdir + "nav-home-off.gif";

onlinebanking_on = new Image(128,23);
onlinebanking_on.src = imgdir + "nav-onlinebanking-on.gif";
 
onlinebanking_off = new Image(128,23);
onlinebanking_off.src = imgdir + "nav-onlinebanking-off.gif";
 
demo_on = new Image(52,23);
demo_on.src = imgdir + "nav-demo-on.gif";
 
demo_off = new Image(52,23);
demo_off.src = imgdir + "nav-demo-off.gif";

}
else
version = "x";

function img_act(imgName)
{
if (version == "ok")
{
imgOn = eval(imgName + "_on.src");
document [imgName].src = imgOn;
}
}

function img_inact(imgName)
{
window.status = "";
 if (version == "ok")
{
imgOff = eval(imgName + "_off.src");
document [imgName].src = imgOff;
}
}

// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE

//style sheet sniffer
document.write('<scr'+ 'ipt src="' + securedir + '_styles.js" language="JavaScript" type="text/javascript"></scr' + 'ipt>');

function showCalc(calc)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) -240)
window.open(calc,"hello","width=550,height=480,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=1");

}


function third_party(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 200)
var pHeight = (((parseInt(screen.height) / 2)) - 150)
bWindow = window.open(page,'newWin',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=400,height=300,top=" + pHeight + ",left=" + pWidth);
}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('https://www.accessfcu.org/Forms/OnlineForm.cgi?form=' + nameofapp,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=700,height=600,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}

//layer code
function changetext(whichcontent){
    if (document.all)
    	{
        	descriptions.innerHTML=whichcontent;
    	}
    else if (document.layers)
    	{
        
        	document.d1.document.d2.document.write(whichcontent);
        	document.d1.document.d2.document.close();
    	}
    else
        {   
           //this is the Netscape 6 fix
            over = document.getElementById(["descriptions"]);
            
            range = document.createRange();
            range.setStartBefore(over);
            domfrag = range.createContextualFragment(whichcontent);
           
            while (over.hasChildNodes()) {
            over.removeChild(over.lastChild);
            }
            over.appendChild(domfrag);
         }
                       
}

function showlayer()
{
    var index;
    var UrltoCheck = self.location.href;
	var totallength = UrltoCheck.length;
    if(UrltoCheck.indexOf('?') > -1)
	 {
        index = UrltoCheck.substring(UrltoCheck.indexOf('?')+1 , totallength);
			setTimeout("changetext(content["+index+"])",1200);
			//changetext(content[index]);
	 }
	else{
		
		setTimeout("changetext(content[0])",2000);
	}
     
}

function open_link(url){
	window.open(url);
}

function openIB(demo){
	if(!demo){
	

var pWidth = ( ((parseInt(screen.width) / 2)) - 200)
var pHeight = (((parseInt(screen.height) / 2)) - 100)
bWindow = window.open(sitedir+'popup_secure.html?location=https://www.accessfcu.org/onlineserv/HB/','newWsdin',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=400,height=200,top=" + pHeight + ",left=" + pWidth);
}
	
	//	self.location.href = "https://www.accessfcu.org/onlineserv/HB/OnlineForm.cgi?form=Signon_new" ;
//	}
	else{
		window.open("https://www.accessfcu.org/onlineserv/HB/demo.html");
	}
}

function open_pdf(pdf){
	window.open(pdf,'sample','width=600,height=600,resizable,scrollbars');
}

function open_kids(kids){
	window.open(kids,'kids','width=600,height=600,resizable,scrollbars');
}

function open_kids(kidspage)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = /*window.open('https://skynet.diginsite.com/staging/accessfcu/accessfcudocs/site/' + kidspage,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=800,height=550,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");*/
aWindow = window.open('https://www.accessfcu.org/' + kidspage,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=800,height=550,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}

function kick_loop()
{
if (!document.layers){
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="1" HEIGHT="1" id="mix" ALIGN=""><PARAM NAME=movie VALUE="'+sitedir+'mix.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#D3E3F7> <EMBED src="'+sitedir+'mix.swf" quality=high wmode=transparent bgcolor=#D3E3F7  WIDTH="1" HEIGHT="1" NAME="mix" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
}
}

function showWarning(lk, desc, target, msg){
	desc = (desc) ? desc : "Third Party Site";
	target = (target) ? target : "_blank";
	msg = (msg) ? msg : 0;
	lk = (lk.substring(0,1)=="/" && !(lk.substring(0,8)=="/mstinc/"))? contextPath + lk: lk; // for local pages

	var messages = new Array(6);
	// Standard 3rd Party Warning
	messages[0] = messages[1] = "<h2 style=\"text-align:center\">Third Party Site Disclaimer</h2>By accessing the noted link you will be leaving " + fiName + "'s website and entering a website hosted by another party. " + fiName + " has not approved this as a reliable partner site.  Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of " + fiName + "'s website.";
	// Standard Partner Warning
	messages[2] = '<h2 style="text-align:center">Partner Site Disclaimer</h2><p>By accessing the noted link you will be leaving our website and entering a partner site which is hosted by another party. Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of our website. We encourage you to read and evaluate the privacy and security policies of the site which you are entering, which may be different than those of ours.</p>';
	// Standard Affiliate Warning
	messages[3] = "<h2 style=\"text-align:center\">Affiliate Site Disclaimer</h2><p>By accessing the noted link you will be leaving " + fiName + "'s website and entering a website hosted by another party. " + fiName + " has not approved this as a reliable partner site.  Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of " + fiName + "'s website.</p>";
	// Customize if requested
	messages[4] = messages[0];
	// Standard mailto: Insecure Warning
	messages[5] = '<h2 style="text-align:center">Email Disclaimer</h2><p>This is <strong>NOT</strong> a secured e-mail transmission. Please <strong>do not send personal/financial information</strong> via this method.</p>';

	var content = new Array();
	var index = 0;
	content[index++] = messages[msg];
	content[index++] = '<div style="margin-top:1em;text-align:center"><a href="'+lk+'"'+(target?' target="'+target+'"':'')+' onclick="$(\'#ex_dis\').hide()">Continue</a>&#160;&#160;<a href="#" onclick="$(\'#ex_dis\').hide();return false;">Decline</a></div>';	
	$("#ex_dis").html(content.join("")).show();
	scrollTo(0,0);
}



