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;


/*
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
*/
document.write('<meta name="keywords" content="Group Health Credit Union, Federal, Credit , Union, ghcu, A financial institution of excellence, featuring secure Internet-based services including Home Banking, Bill Payment, Bill Presentment, Quicken and Money interfaces, Stock Quotes, on-line applications, financial calculators, useful links and a wealth of financial information">');


document.write('<meta name="description" content="ATM, ATM Locations, Account Access, Account Transfer, Automobile Loans, AutoVantage, Bank, Bank Account, Banking, Bill Payment, Bill Presentment, Brokerage, Cash, CDs, Certificates of Deposit, Checks, Checking Accounts, Consumer Loans, Convenience Services, Credit, Credit Card, Credit Card Applications, Credit Union, Digital Insight, Finance, Financial Calculator, Financial Institution, Financial Wizard, Loans, Home Loans, IRA, Money, Term Investment, Online Banking, Order Checks, Personal Financial Management, Rates, Mortgage Rates, Loan Rates, Terms, Retirement, Savings Accounts, Savings, Savings and Loan, Stock Quotes, Stocks, Student Loans, Student, Term Share Certificates, Thrifts, Visa Credit Cards">');
/*
META TAGS CONTENT AND DESCRIPTION ABOVE
META TAGS CONTENT AND DESCRIPTION ABOVE
META TAGS CONTENT AND DESCRIPTION ABOVE
*/


/*
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="https://www.ghcu.org/images/"
sitedir="http://www.ghcu.org/site/"
securedir="https://www.ghcu.org/site/"
homedir="http://www.ghcu.org/"
}
else if(window.absolutepage)
{
imgdir="http://www.ghcu.org/images/"
sitedir="http://www.ghcu.org/site/"
securedir="http://www.ghcu.org/site/"
homedir="http://www.ghcu.org/"
}
else if(window.securepage)
{
imgdir="https://www.ghcu.org/images/"
sitedir="http://www.ghcu.org/site/"
securedir="https://www.ghcu.org/site/"
homedir="http://www.ghcu.org/"
}
else
{
imgdir="../images/";
sitedir="";
securedir="";
homedir="../";
}


// 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";
borrow_on = new Image(105,20);
borrow_on.src = imgdir + "nav-borrow-on.gif";

borrow_off = new Image(105,20);
borrow_off.src = imgdir + "nav-borrow-off.gif";

vault_on = new Image(105,20);
vault_on.src = imgdir + "nav-vault-on.gif";

vault_off = new Image(105,20);
vault_off.src = imgdir + "nav-vault-off.gif";

plastic_on = new Image(105,20);
plastic_on.src = imgdir + "nav-plastic-on.gif";

plastic_off = new Image(105,20);
plastic_off.src = imgdir + "nav-plastic-off.gif";

rates_off = new Image(105,20);
rates_off.src = imgdir + "nav-rates-off.gif";

apply_on = new Image(105,20);
apply_on.src = imgdir + "nav-apply-on.gif";

apply_off = new Image(105,20);
apply_off.src = imgdir + "nav-apply-off.gif";

us_on = new Image(105,20);
us_on.src = imgdir + "nav-us-on.gif";

us_off = new Image(105,20);
us_off.src = imgdir + "nav-us-off.gif";

answers_off = new Image(105,20);
answers_off.src = imgdir + "nav-answers-off.gif";

go_on = new Image(39,27);
go_on.src = imgdir + "nav-go-on.gif";

go_off = new Image(39,27);
go_off.src = imgdir + "nav-go-off.gif";

toollogin_on = new Image(90,37);
toollogin_on.src = imgdir + "nav-toollogin-on.gif";

toollogin_off = new Image(90,37);
toollogin_off.src = imgdir + "nav-toollogin-off.gif";

toolcalc_on = new Image(26,31);
toolcalc_on.src = imgdir + "nav-toolcalc-on.gif";

toolcalc_off = new Image(26,31);
toolcalc_off.src = imgdir + "nav-toolcalc-off.gif";

toolfaq_on = new Image(26,31);
toolfaq_on.src = imgdir + "nav-toolfaq-on.gif";

toolfaq_off = new Image(26,31);
toolfaq_off.src = imgdir + "nav-toolfaq-off.gif";


toolmatrix_on = new Image(26,31);
toolmatrix_on.src = imgdir + "nav-toolmatrix-on.gif";

toolmatrix_off = new Image(26,31);
toolmatrix_off.src = imgdir + "nav-toolmatrix-off.gif";

toolpp_on = new Image(26,31);
toolpp_on.src = imgdir + "nav-toolpp-on.gif";

toolpp_off = new Image(26,31);
toolpp_off.src = imgdir + "nav-toolpp-off.gif";


toolapply_on = new Image(26,31);
toolapply_on.src = imgdir + "nav-toolapply-on.gif";

toolapply_off = new Image(26,31);
toolapply_off.src = imgdir + "nav-toolapply-off.gif";

toolrates_on = new Image(26,31);
toolrates_on.src = imgdir + "nav-toolrates-on.gif";

toolrates_off = new Image(26,31);
toolrates_off.src = imgdir + "nav-toolrates-off.gif";

toolfees_on = new Image(26,31);
toolfees_on.src = imgdir + "nav-toolfees-on.gif";

toolfees_off = new Image(26,31);
toolfees_off.src = imgdir + "nav-toolfees-off.gif";

toolcompare_on = new Image(26,31);
toolcompare_on.src = imgdir + "nav-toolcompare-on.gif";

toolcompare_off = new Image(26,31);
toolcompare_off.src = imgdir + "nav-toolcompare-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"></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 tabover(howmuch)
{
var farover = '';
farover += '<img src="../images/clearpix.gif" width="' + howmuch + '" height="1" alt="" border="0">';
document.write(farover);
}

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

function open_popup_pages(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open( nameofapp,'application_popup',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=685,height=475,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}

function open_popup_pages2(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open( nameofapp,'application_popup',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=500,height=475,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}

function open_purplepoints(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open( nameofapp,'application_popup',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=750,height=475,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}

function show_warning(URL)
{

	//page variables
	var page_bgcolor="#EFEFF7";
	var border_color="#5271AD";
	var table_bgcolor="#EFEFF7";
	var time_visible=30000; //automatically closes after this time

	//content creation
	var content=""
	content+='<html>';
	content+='<head>';
	content+='<title>3rd Party Disclaimer</title>';
	content+='</head>';
	content+='<body bgcolor="' + page_bgcolor + '" onload=javascript:setTimeout(\'self.close()\','  + time_visible + ')>';
	content+='<table bgcolor="' + border_color + '" align="center" width="300" cellspacing="2" cellpadding="0" border="0">';
	content+='	<tr>';
	content+='	    <td>';
	content+='		<table bgcolor="' + table_bgcolor +'" align="center" width="100%" cellspacing="1" cellpadding="6" border="0">';
	content+='			<tr>';
	content+='	    		<td><font face="Arial,Verdana,Helvetica" size="-1"><b>You are about to leave our website.</b><br><br>GHCU is not responsible for any information that you provide or that may be gathered at a linked site, or for the content or Privacy Policy of any such site. However, we do make every reasonable effort to ensure that these sites have privacy practices that are similar to ours. We encourage you to read the Privacy and Security Statements of each site before providing personal information to the service provider.';                            
	content+='				<br><br>';
	content+='				 <div align="center"><a href="'+URL+'">I Accept</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:self.close();">I Decline</a></div>';	
	content+='				</td>';
	content+='			</tr>';
	content+='		</table>';
	content+='		</td>';
	content+='	</tr>';
	content+='</table>';
	content+='</body>';
	content+='</html>';

	//actual centering popup code
	outsideURL=URL;
	var pWidth = ((parseInt(screen.width) - 340) / 2); 
	var pHeight = ((parseInt(screen.height) - 340) / 2);
     newwin = window.open("","newwin", "width=340,height=340,left="+pWidth+",top="+pHeight+", location=1,  toolbar=1, status=1, scrollbars=1, resizable=1, menubar=1");
 	newwin.document.open();
	newwin.document.write(content);
	newwin.document.close();
}	

function changeKeyinText(num)
{
if (num == 0)
	{
document.tools_change.src = imgdir + "clearpix.gif";	
	}
else if (num == 1)
	{
document.tools_change.src = imgdir + "nav-toolcalc-text.gif";		
	}	
else if (num == 2)
	{
document.tools_change.src = imgdir + "nav-toolfaq-text.gif";		
	}	
else if (num == 3)
	{
document.tools_change.src = imgdir + "nav-toolapply-text.gif";		
	}			
else if (num == 4)
	{
document.tools_change.src = imgdir + "nav-toolrates-text.gif";		
	}	
else if (num == 5)
	{
document.tools_change.src = imgdir + "nav-toolfees-text.gif";		
	}		
else if (num == 6)
	{
document.tools_change.src = imgdir + "nav-toolcompare-text.gif";		
	}		
else if (num == 7)
	{
document.tools_change.src = imgdir + "nav-toolmatrix-text.gif";				
	}	
	else if (num == 8)
	{
document.tools_change.src = imgdir + "nav-toolpp-text.gif";				
	}
}


function toggleEnrollmentDiv(thediv) {
	if (document.getElementById(thediv).style.display=="block") {document.getElementById(thediv).style.display="none";}
	else {document.getElementById(thediv).style.display="block";}
}

function openDHTMLnew(URL)
{
	var theCurrentHref = window.location.href;
	
	
	var theDIV = "<div id=\"thePopupDiv\" style=\"background-color: #ffffff; position: absolute; top: 250px; left: 100px; border: outset 2px #336699; padding: 10px;\">";
	theDIV += "<p><b>You are about to leave our website.</b></p><p>GHCU is not responsible for any information that you provide or that may be gathered at a linked site, or for the content or Privacy Policy of any such site. However, we do make every reasonable effort to ensure that these sites have privacy practices that are similar to ours. We encourage you to read the Privacy and Security Statements of each site before providing personal information to the service provider.</p>";
	theDIV += "<a href=\"" + URL + "\" target=\"_blank\" onclick=\"document.getElementById('thePopupDiv').style.visibility='hidden'\">Continue</a>";
	theDIV += "</div>";

}
