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

var navitems = new Array();
navitems["about"] = new makeNavImage("about",93,nav_heights);
navitems["membership"] = new makeNavImage("membership",88,nav_heights);
navitems["products"] = new makeNavImage("products",73,nav_heights);
navitems["services"] = new makeNavImage("services",67,nav_heights);
navitems["rates"] = new makeNavImage("rates",52,nav_heights);
navitems["resources"] = new makeNavImage("resources",123,nav_heights);
navitems["applications"] = new makeNavImage("applications",138,nav_heights);

navitems["one"] = new makeNavImage("one",21,16);
navitems["two"] = new makeNavImage("two",21,16);
navitems["three"] = new makeNavImage("three",21,16);
navitems["four"] = new makeNavImage("four",21,16);


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 openWin_PDF(url)
{window.open(url);}

/////////////////////////////////////////////////////////////




function open_apps(nameofapp){
self.location.href = "https://www.cefcuonline.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.cefcuonline.org/onlineserv/HB/demo.html");
//else openWin("https://www.cefcuonline.org/onlineserv/HB/")
}

function inviteWarning(address)
{
    var content = new Array();
    var index = 0;

    content[index++] = "<h2>Please Note</h2><p>This is only an invitation to join Caltech Employees Federal Credit Union. You will still need to fill out a signature card.</p><p>In accordance with Section 326 of the USA Patriot Act, applicants for new accounts are requested to provide current picture identification that verifies identity including name, address and other identifying information.</p><p>In some cases, identification will be requested for current members if original documentation was not obtained with the opening of the account.  In all cases, protection of our members' identity and confidentiality is our pledge to you.</p><p>We proudly support all efforts to protect and maintain the security of our members and our country.</p>";
    content[index++] = "<br /><br />";
    content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"openWin_PDF('"+address+"');document.getElementById('ex_dis').style.display = 'none'\">Continue</a>&nbsp;&nbsp;<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);
}

function emailWarning(address)
{
    var content = new Array();
    var index = 0;

    content[index++] = "<h2>E-mail Security Warning</h2>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.";
    content[index++] = "<br /><br /><br />";
    content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"document.location.replace('"+address+"');document.getElementById('ex_dis').style.display = 'none'\">Continue</a>&nbsp;&nbsp;<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);
}

function showWarning(url){
var content = new Array();
var index = 0;
content[index++] = "<h2>Third Party Site Disclaimer</h2>Caltech Employees Federal Credit Union does not endorse or guarantee the products, information, or recommendations provided by linked sites and is not liable for any failure or products or services advertised on those sites. Each third party site may have a privacy policy different from CEFCU and the linked third-party websites may provide less security than the CEFCU website.";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"openWin('"+url+"', 'windowd', 700, 500);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);
}

function showWarning2(url){
var content = new Array();
var index = 0;
content[index++] = "<h2>Third Party Site Disclaimer</h2>Please be aware that not all mortgage products will be maintained or serviced by CEFCU.  This is a Third Party linked site which may have privacy and/or security policies different than CEFCU.  The CUSO Mortgage Privacy Statement can be found at the bottom of the CUSO homepage.";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"openWin('"+url+"', 'windowd', 800, 600);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);
}

//Unique Redbook speedbump message
function showWarningrb(url){
var content = new Array();
var index = 0;
content[index++] = "<h2>Third Party Site Disclaimer</h2>The Redbook is a service offered at the credit union. Caltech Employees Federal Credit Union does not endorse or guarantee the products, information, or recommendations provided by linked sites and is not liable for any failure or products or services advertised on those sites. Each third party site may have a privacy policy different from CEFCU and the linked third-party websites may provide less security than the CEFCU website";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"openWin('"+url+"', 'windowd', 700, 500);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);
}
//added for 200-74075

function showWarningKids(url){
var content = new Array();
var index = 0;
content[index++] = "<h2>Third Party Site Disclaimer</h2>Caltech Employees Federal Credit Union does not endorse or guarantee the products, information, or recommendations provided by linked sites and is not liable for any failure or products or services advertised on those sites. Each third party site may have a privacy policy different from CEFCU and the linked third-party websites may provide less security than the CEFCU website.";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" style=\"color:#000099\" onclick=\"openWin('"+url+"', 'windowd', 700, 500);document.getElementById('ex_dis_kids').style.display = 'none'\">Continue</a>  <a href=\"javascript:void('0');\" style=\"color:#000099\" onclick=\"document.getElementById('ex_dis_kids').style.display = 'none'\">Decline</a></div></div>";
document.getElementById("ex_dis_kids").innerHTML = content.join("");
document.getElementById("ex_dis_kids").style.display = "block";
scrollTo(0, 0);
}
document.write('<div id="ex_dis_kids" style="background-color: #CCFFCC; 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 selectLoan() {
    var content = new Array();
    var index = 0;

    content[index++] = "<div style=\"text-align: center;\">Click to view and/or print the following information.</div>";
    content[index++] = "<br />";
    content[index++] = "<div align=\"center\"><strong style=\"font-size: 13px;\">Traditional Home Equity Line of Credit Loan</strong><br /><a href=\"javascript:void('0');\" onclick=\"window.open('"+sitedir+"Traditional_Early_Disclosure.pdf');\">Traditional Home Equity Line of Credit Early Disclosure</a><br /><a href=\"javascript:void('0');\" onclick=\"window.open('"+sitedir+"When_Your_Home_Is_On_The_Line_Brochure.pdf');\">What You Should Know About Home Equity Credit Lines</a><!--start seceond set of links--><br /><br /><strong style=\"font-size: 13px;\">10-Year Interest Only Home Equity Line of Credit Loan</strong><br /><a href=\"javascript:void('0');\" onclick=\"window.open('"+sitedir+"Interest_Only_Early_Disclosure.pdf'); \">10-Year Interest Only Home Equity Line of Credit</a><br /><a href=\"javascript:void('0');\" onclick=\"window.open('"+sitedir+"When_Your_Home_Is_On_The_Line_Brochure.pdf'); \">What You Should Know About Home Equity Credit Lines</a></div><!--button--><div style=\"text-align: center; width: 165px; margin: 10px auto;\" align=\"center\"><a href=\"javascript:void('0');\" onclick=\"window.open('"+sitedir+"Home_Equity_Loan_Application.pdf'); document.getElementById('ex_dis').style.display = 'none'\" style=\"font-size:13px; font-weight: bold;\">Close &amp; View Application</a></div></div>";

    document.getElementById("ex_dis").innerHTML = content.join("");
    document.getElementById("ex_dis").style.display = "block";

    scrollTo(0, 0);
        }
        
function membershipDiv() {
    var content = new Array();
    var index = 0;

    content[index++] = "<div style=\"border:none;\"><img src=\"images/membership-pays.gif\" usemap=\"#details\" border=\"0\" alt=\"Membership Pays!  Sign up any immediate family member and you both could win $1000.  Click below for the sign up sheet.\" /></div>";
    content[index++] = "<br />";
    content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"window.open('"+sitedir+"Invite-SigCard-Referral4Web.pdf'); document.getElementById('imgCntr').style.display = 'none'\;\" style=\"font-size: 16px; font-weight:bold; color:red;\">Sign Up!</a></div>";

    document.getElementById("imgCntr").innerHTML = content.join("");
    document.getElementById("imgCntr").style.display = "block";

    scrollTo(0, 0);
        }

 function helocReminder()
 {
    /*
    var content = new Array();
    var index = 0;

    content[index++] = "Please print out and complete this application. Mail to: CEFCU PO BOX 11001 La Canada, CA 91012-6001.";
    content[index++] = "<br /><br /><br />";
    content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"window.open('Home_Equity_Loan_Application.pdf'); document.getElementById('ex_dis').style.display = 'none'\">Continue</a>&nbsp;&nbsp;<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);
    */
    window.open('Home_Equity_Loan_Application.pdf');
}





// OTHER FUNCTIONS ABOVE


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>');
//ImageCntr added for 200-89210
document.write('<div id="imgCntr" 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:125px; border: thin solid #1A448E; padding: 5px; display: none; z-index: 3000; width:710px;"></div>');
