/*window.onresize=resize;
var rs=true;
function resize(){
if (rs) self.location.href=self.location.href;
}*/

if(window.event + "" == "undefined") event = null;
//FOR COOLMENU BELOW
function showMenu(){return false};
function mout(){return false};
function dummyObject() {this.mout=mout};
oM = new dummyObject();
// FOR COOLMENU ABOVE

// CALL TO CORRECT DIRECTORY BELOW - if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly
var imgdir = "../images/";
var sitedir = "";
var securedir = "";
var homedir = "../";
if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.securityplusfcu.org/images/"
sitedir="http://www.securityplusfcu.org/site/"
securedir="http://www.securityplusfcu.org/site/"
homedir="http://www.securityplusfcu.org/"
}
else if(window.securepage)
{
imgdir="https://www.securityplusfcu.org/images/"
sitedir="http://www.securityplusfcu.org/site/"
securedir="https://www.securityplusfcu.org/site/"
homedir="http://www.securityplusfcu.org/"
}
// CALL TO CORRECT DIRECTORY ABOVE

// ROLLOVER CODE BELOW
function makeNavImage(name,width,height){
this.name_on="nav-" + name +"-on.gif";
this.name_off="nav-" + name +"-off.gif";
this.width=width;
this.height=height;
this.newimage_on = new Image(width,height);
this.newimage_on.src = imgdir + this.name_on;
this.newimage_off = new Image(width,height);
this.newimage_off.src = imgdir + this.name_off;
}

var navitems = new Array();
navitems["gobut"] = new makeNavImage("gobut",39,19);
navitems["home"] = new makeNavImage("home",27,13);
navitems["calcs"] = new makeNavImage("calcs",199,31);
navitems["aboutus"] = new makeNavImage("aboutus",44,13);
navitems["employment"] = new makeNavImage("employment",57,13);
navitems["contactus"] = new makeNavImage("contactus",52,13);
navitems["faq"] = new makeNavImage("faq",19,13);
navitems["sitemap"] = new makeNavImage("sitemap",41,13);
navitems["login"] = new makeNavImage("login",52,17);
navitems["products"] = new makeNavImage("products",199,31);
navitems["applyforloan"] = new makeNavImage("applyforloan",199,31);
navitems["services"] = new makeNavImage("services",199,31);
navitems["locations"] = new makeNavImage("locations",199,31);
navitems["membership"] = new makeNavImage("membership",199,31);
navitems["infocenter"] = new makeNavImage("infocenter",199,31);
navitems["rates"] = new makeNavImage("rates",199,31);
navitems["privacy"] = new makeNavImage("privacy",91,14);

navitems["homeratessavings"] = new makeNavImage("homeratessavings",48,18);
navitems["homeratescds"] = new makeNavImage("homeratescds",31,18);
navitems["homeratesloans"] = new makeNavImage("homeratesloans",39,18);


function img_act(imgName){
document[imgName].src = navitems[imgName].newimage_on.src;
}

function img_inact(imgName){
window.status = "";
document[imgName].src = navitems[imgName].newimage_off.src;
}
// ROLLOVER CODE ABOVE

// OTHER FUNCTIONS BELOW
function openWin(url,name,width,height,options){
var n = name;
var w = width;
var h = height;
var o = options;
n = (n==null)?"_blank":n;
w = (isNaN(w) || w==null)?700:w;
h = (isNaN(h) || h==null)?600:h;
o = (o==null)?"toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1":(o.indexOf(",")!=0)?","+o:o;

var posX = Math.ceil((parseInt(screen.width) - w) / 2);
var posY = Math.ceil((parseInt(screen.height) - h) / 2);
aWindow = window.open(url,n,"width=" + w + ",height=" + h + ",left=" + posX + ",top=" + posY + o);
}

function open_apps(nameofapp){
if(nameofapp=="guestbook")
self.location.href="https://www.securityplusfcu.org/Forms/OnlineForm.cgi?form=guestbook&onweb=true";
else
self.location.href="https://www.securityplusfcu.org/Forms/OnlineForm.cgi?form=application&onweb=true&app=" + nameofapp;
}

var numOfPhoto = 3;
var id = null;
var pn = 1;
var photoArray = null;
function showPhoto(name){
if(photo.indexOf("1")!=-1)
document.write("<img src='" + imgdir + "image-" + name + ".jpg' width='198' height='75' alt='' />");
else {
photoArray = name;
document.write("<img src='" + imgdir + "image-" + name + "1.jpg' width='198' height='75' alt='' />");
id = setInterval("rotatePhoto(pn);",5000);
}
}

function rotatePhoto(qn){
var na = photoArray;
pn = (qn==numOfPhoto)?0:qn;
photos = new Array();
photos[0] = na+"1";
photos[1] = na+"2";
photos[2] = na+"3";
document.getElementById("HeaderPhoto").innerHTML = "<img src='" + imgdir + "image-" + photos[pn] + ".jpg' width='198' height='75' alt='' />";
pn++;
}

function expressLender(){
self.location.href="https://www.myinterlend.com/CRINetWebWC/Gateway.aspx?mid=PSG&iid=00025680&tvPurposeString=LNV";
}


function IB_Warning(url){
var content = new Array();
var index = 0;
content[index++] = '<h1>Please Note</h1><br /><strong>To log in to internet banking, please to go <a href="https://www.ssabfcu.com">www.ssabfcu.com</a> until the afternoon of 03/28/06.</strong><br />';
content[index++] = '<br /><br /><br />';
content[index++] = '<div align="center"><a href="'+url+'" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Continue to Internet Banking</a>&nbsp;&nbsp;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Decline</a></div></div>';	
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.visibility = "visible";
scrollTo(0, 0);
}


function showWarning(url){
var content = new Array();
var index = 0;
content[index++] = '<h1>Third Party Site Disclaimer</h1><br />By accessing the noted link you will be leaving your financial institution\'s website and entering a website hosted by another party. Your financial institution 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 your financial institution\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may be different than those of your financial institution\'s.';
content[index++] = '<br /><br /><br />';
content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="window.open(\''+url+'\');document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Continue</a>&nbsp;&nbsp;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Decline</a></div></div>';	
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.visibility = "visible";
scrollTo(0, 0);
}

function submitAllPoint(){
var content = new Array();
var index = 0;
content[index++] = 'Third Party Site Disclaimer\n\nBy accessing the noted link you will be leaving your financial institution\'s website and entering a website hosted by another party. Your financial institution 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 your financial institution\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may be different than those of your financial institution\'s.';
content[index++] = '\n\n\n';

return confirm(content.join(""));
}

document.write('<div id="ex_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: center; position:absolute; top:125px; left:200px; border: thin solid #53755D; padding: 15px; visibility: hidden;z-index: 300; width:350px; FILTER: progid:DXImageTransform.Microsoft.dropShadow(Color=#cccccc,offX=4,offY=4,positive=true);"></div>');

function openIB(page){
if(page=="demo") self.location.href="https://www.securityplusfcu.org/onlineserv/HB/demo.html";
else if(page=="moreinfo") self.location.href="https://www.securityplusfcu.org/onlineserv/HB/";
else self.location.href="https://www.securityplusfcu.org/onlineserv/HB/";
}

function spacer(){
	var WindowHeight = 350;
	HM_IE = (document.all) ? true : false;
	if(!document.layers){
		if(document.documentElement.clientHeight!=0 && navigator.appVersion.indexOf("MSIE 6") > 0){
			WindowHeight   = (HM_IE) ? document.documentElement.clientHeight : window.innerHeight;
		}
		else{
			WindowHeight   = (HM_IE) ? document.body.clientHeight : window.innerHeight;
		}
	} else {
		WindowHeight   = window.innerHeight;
	}
	var spacerH = WindowHeight - 470;
	if(window.homespace){
		spacerH -= 30;
	}
	document.write('<img src="' + imgdir + 'clearpix.gif" width="1" height="' + spacerH + '" alt="" border="0" />');
}



/* Functions for forcing the Enter button to tab through login fields on homepage */

function checkEnter(e){ //e is event object passed from function invocation
var characterCode //literal character code will be stored in this variable

if(e.which){ //if which property of event object is supported (FF)
e = e;
characterCode = e.which //character code is contained in FF's which property
}
else{
e = event;
characterCode = e.keyCode //character code is contained in IE's keyCode property
}
if( (Number(characterCode == 13)) || (Number(characterCode == 11)) ){ //if generated character code is equal to ascii 13 or 9 (if enter or tab key)
document.Login.password.focus();
//alert(characterCode);
return false
}

else{
return true
}

}

function checkEnter2(e){ //e is event object passed from function invocation
var characterCode //literal character code will be stored in this variable

if(e.which){ //if which property of event object is supported (FF)
e = e;
characterCode = e.which //character code is contained in FF's which property
}
else{
e = event;
characterCode = e.keyCode //character code is contained in IE's keyCode property
}
if( (Number(characterCode == 13)) || (Number(characterCode == 11)) ){ //if generated character code is equal to ascii 13 or 9 (if enter or tab key)
document.getElementById('loginButton').focus();
//alert(characterCode);
return false
}

else{
return true
}

}





























// OTHER FUNCTIONS ABOVE