
function stopError() {
  return true;
}

window.onerror = stopError;

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
document.write('<meta name="keywords" content="Sun East Federal Credit Union, Federal, Credit , Union, suneast, 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

// 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.absolutepage)
{
imgdir="http://www.suneast.org/images/"
sitedir="http://www.suneast.org/site/"
securedir="http://www.suneast.org/site/"
homedir="http://www.suneast.org/"
}
else if (window.securepage)
{
imgdir="http://www.suneast.org/images/"
sitedir="http://www.suneast.org/site/"
securedir="http://www.suneast.org/site/"
homedir="http://www.suneast.org/"
}
else
{
imgdir="../images/";
sitedir="../site/";
securedir="../site/";
homedir="../";
}


// ROLLOVER CODE BELOW 
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName =="Microsoft Internet Explorer") && (browserVer >= 4)))
{
version = "ok";

mbrshp_on = new Image(21,124);
mbrshp_on.src = imgdir + "nav-mbrshp-on.gif";

mbrshp_off = new Image(21,124);
mbrshp_off.src = imgdir + "nav-mbrshp-off.gif";

lndgctr_on = new Image(21,115);
lndgctr_on.src = imgdir + "nav-lndgctr-on.gif";

lndgctr_off = new Image(21,115);
lndgctr_off.src = imgdir + "nav-lndgctr-off.gif";

invstmt_on = new Image(21,97);
invstmt_on.src = imgdir + "nav-invstmt-on.gif";

invstmt_off = new Image(21,97);
invstmt_off.src = imgdir + "nav-invstmt-off.gif";

srv_on = new Image(21,73);
srv_on.src = imgdir + "nav-srv-on.gif";

srv_off = new Image(21,73);
srv_off.src = imgdir + "nav-srv-off.gif";

olbranch_on = new Image(21,109);
olbranch_on.src = imgdir + "nav-olbranch-on.gif";

olbranch_off = new Image(21,109);
olbranch_off.src = imgdir + "nav-olbranch-off.gif";

lndgctr_on = new Image(21, 115);
lndgctr_on.src = imgdir + "nav-lndgctr-on.gif";

lndgctr_off = new Image(21, 115);
lndgctr_off.src = imgdir + "nav-lndgctr-off.gif";

invstmt_on = new Image(21, 97);
invstmt_on.src = imgdir + "nav-invstmt-on.gif";

invstmt_off = new Image(21, 97);
invstmt_off.src = imgdir + "nav-invstmt-off.gif";

rates_on = new Image(21,57);
rates_on.src = imgdir + "nav-rates-on.gif";

rates_off = new Image(21,57);
rates_off.src = imgdir + "nav-rates-off.gif";

mortgagectr_on = new Image(21,125);
mortgagectr_on.src = imgdir + "nav-mortgagectr-on.gif";

mortgagectr_off = new Image(21,125);
mortgagectr_off.src = imgdir + "nav-mortgagectr-off.gif";

autoctr_on = new Image(21,96);
autoctr_on.src = imgdir + "nav-autoctr-on.gif";

autoctr_off = new Image(21,96);
autoctr_off.src = imgdir + "nav-autoctr-off.gif";

finsrv_on = new Image(21,117);
finsrv_on.src = imgdir + "nav-finsrv-on.gif";

finsrv_off = new Image(21,117);
finsrv_off.src = imgdir + "nav-finsrv-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;
}
}
function img_act2(imgName)

{
if (version == "ok")
	{
	imgOn = eval("images/" + imgName + "_on.src");
	document [imgName].src = imgOn;
	}
}

function img_inact2(imgName)

{
window.status = "";
 if (version == "ok")
{
imgOff = eval("images/" + imgName + "_off.src");
document [imgName].src = imgOff;
}
}
// 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(sitedir+calc,"hello","width=550,height=480,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=1");

}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
	aWindow = window.open('http://www.suneast.org/Forms/OnlineForm.cgi?form=' + nameofapp + '&onWeb=TRUE','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");
}

function openIB(page) {
	if (page=="demo") {
		self.location.href = homedir+"?demo";
	} else if (page=="apply") {
		alert('Coming Soon!');
	} else {
		self.location.href = homedir;
	}
}

var message="Right Click Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")
