/* window.onresize=resize;
function resize(){
self.location.href=self.location.href;
} */

if(window.event + "" == "undefined") event = null;
function showMenu(){return false};
function mout(){return false};
function dummyObject() {this.mout=mout};
oM = new dummyObject();

// CALL TO CORRECT DIRECTORY BELOW
imgdir="https://www.summitfcu.org/images/"
sitedir="https://www.summitfcu.org/"
securedir="https://www.summitfcu.org/"
homedir="https://www.summitfcu.org/"

if(window.homepage)
{
imgdir="https://www.summitfcu.org/images/"
sitedir="https://www.summitfcu.org/"
securedir="https://www.summitfcu.org/"
homedir="https://www.summitfcu.org/"
}
else if(window.backpage)
{

imgdir="https://www.summitfcu.org/images/"
sitedir="https://www.summitfcu.org/"
securedir="https://www.summitfcu.org/"
homedir="https://www.summitfcu.org/"
}
else if(window.backpage_sub)
{

imgdir="https://www.summitfcu.org/images/"
sitedir="https://www.summitfcu.org/"
securedir="https://www.summitfcu.org/"
homedir="https://www.summitfcu.org/"
}
else if(window.backpage_sub_sub)
{

imgdir="https://www.summitfcu.org/images/"
sitedir="https://www.summitfcu.org/"
securedir="https://www.summitfcu.org/"
homedir="https://www.summitfcu.org/"
}
else if(window.absolutepage)
{
imgdir="http://www.summitfcu.com/images/"
sitedir="https://www.summitfcu.com/"
securedir="https://www.summitfcu.com/"
homedir="https://www.summitfcu.com/"
}
else if(window.securepage)
{
imgdir="https://www.summitfcu.com/images/"
sitedir="https://www.summitfcu.com/"
securedir="https://www.summitfcu.com/"
homedir="https://www.summitfcu.com/"
}
// 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 nav_heights=29;

var navitems = new Array();
navitems["productsandservices"] = new makeNavImage("productsandservices",35,19);
navitems["memberresources"] = new makeNavImage("memberresources",35,19);
navitems["applyonline"] = new makeNavImage("applyonline",35,19);
navitems["currentrates"] = new makeNavImage("currentrates",35,19);
navitems["youthprograms"] = new makeNavImage("youthprograms",35,19);
navitems["newsinformation"] = new makeNavImage("newsinformation",35,19);
navitems["aboutthesummit"] = new makeNavImage("aboutthesummit",35,19);
navitems["locationshours"] = new makeNavImage("locationshours",35,19);
navitems["contactus"] = new makeNavImage("contactus",35,19);
navitems["sitemap"] = new makeNavImage("sitemap",35,19);

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){
self.location.href = "https://www.summitfcu.org/Forms/OnlineForm.cgi?onweb=true&form=" + nameofapp;
}

function openIB(page){
if (page=="demo") self.location.href = homedir+"index.html?demo";
else self.location.href = homedir+"index.html";
//if (page=="demo") openWin("https://www.summitfcu.org/onlineserv/HB/demo.html");
//else openWin("https://www.summitfcu.org/onlineserv/HB/")
}

function showWarning(url){
var content = new Array();
var index = 0;
content[index++] = "<div style=\"float: right\"><img src=\"" + imgdir + "logo_disclaimer.gif\" alt=\"\" border=\"0\" /></div><h2 style=\"font-weight:bold; text-decoration: underline;\">The Summit's Third Party Disclaimer</h2><p><br style=\"clear: both\" />This link will connect you to another website that may be of interest to you.</p><p><strong>The Summit FCU</strong> does not own or operate the linked sites. These sites may not adhere to the same privacy policies and standards as <strong>The Summit FCU</strong>.</p><p>Please review the privacy policy at each site. <strong>The Summit FCU</strong> does not endorse products or services advertised on linked sites nor are we responsible for their content.</p><p><strong>The Summit FCU</strong> does not warrant linked sites under any circumstances.</p>";
content[index++] = "";
content[index++] = "<div align=\"center\"><a href='"+url+"' onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Continue</a>  <a href=\"javascript:void('0');\" onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Decline</a></div></div>";  
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.display = "block";
scrollTo(0, 0);
}

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: left; position:absolute; top:125px; left:300px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');

function comingSoon(link){
var content = new Array();
var index = 0;
content[index++] = "<h2>Coming Soon</h2>You have attempted to access " + link + " on Summit Federal Credit Union's web site.  This page is currently being developed.  Please check back soon for for this online feature.";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href=\"#\" onclick=\"document.getElementById('cs_dis').style.display = 'none'\">Close</a>  </div></div>";  
document.getElementById("cs_dis").innerHTML = content.join("");
document.getElementById("cs_dis").style.display = "block";
scrollTo(0, 0);
}

document.write('<div id="cs_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:300px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');

function showEmailWarning(email){

var content = new Array();
var index = 0;
content[index++] = "<h2>Email Security Warning</h2><p>E-mail messages sent over the Internet are not secure. Please do not include any account or personal information such as social security numbers in the message.</p>";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href='mailto:'+ email +' onclick=\"document.getElementById('email_dis').style.display = 'none'\">Continue</a>  <a href=\"#\" onclick=\"document.getElementById('email_dis').style.display = 'none'\">Decline</a></div></div>";  
document.getElementById("email_dis").innerHTML = content.join("");
document.getElementById("email_dis").style.display = "block";
scrollTo(0, 0);
}

document.write('<div id="email_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:300px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');


// OTHER FUNCTIONS ABOVE
