window.onresize=resize;
function resize(){
self.location.href=self.location.href;
}

if(window.event + "" == "undefined") event = null;
// FOR HM_MENU BELOW
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;
//FOR HM_MENU ABOVE
//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 = "/site/";
var securedir = "";
var homedir = "../";
if(window.homepage)
{
imgdir="/images/";
sitedir="/site/";
securedir="/site/";
homedir="";
}
else if(window.securepage)
{
imgdir="/images/"
sitedir="/site/"
securedir="https://www.myconsumers.org/site/"
homedir="/"
}
// 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["investing"] = new makeNavImage("investing",60,23);
navitems["accts"] = new makeNavImage("accts",58,23);
navitems["visa"] = new makeNavImage("visa",49,23);
navitems["lending"] = new makeNavImage("lending",49,23);
navitems["homeloans"] = new makeNavImage("homeloans",78,23);
navitems["accessmoney"] = new makeNavImage("accessmoney",142,23);
navitems["rates"] = new makeNavImage("rates",35,23);
navitems["onlineserv"] = new makeNavImage("onlineserv",99,23);
navitems["nwaukegan"] = new makeNavImage("nwaukegan",96,19);
navitems["waukegan"] = new makeNavImage("waukegan",60,19);
navitems["mundelein"] = new makeNavImage("mundelein",59,19);
navitems["roundlake"] = new makeNavImage("roundlake",105,19);
navitems["gurnee"] = new makeNavImage("gurnee",42,19);
navitems["volo"] = new makeNavImage("volo",42,19);
navitems["one"] = new makeNavImage("one",25,34);
navitems["two"] = new makeNavImage("two",25,34);
navitems["three"] = new makeNavImage("three",25,34);
navitems["four"] = new makeNavImage("four",25,34);

function img_act(imgName){
document[imgName].src = navitems[imgName].newimage_on.src;
}

function img_inact(imgName){
oM.mout();
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 showCalc(calc){
openWin(calc,"calc",550,480,"resizable=1,scrollbars=1");
}

function open_apps(nameofapp){
openWin("/site/From/contact/default.asp",700,600,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,status=1");
}
// OTHER FUNCTIONS ABOVE

function showWarningA(url){
	
	var content = new Array();
        var index = 0;
	content[index++] = '<left><b>Please be aware</b><br /><br />By accessing the noted link you will leave Consumers Credit Union\'s website and enter a website hosted by another party. Although Consumers Credit Union has 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 Consumers Credit Union\'s website. We encourage you to read and evaluate the privacy and security policies on the site you are entering, which may be different than those of Consumers Credit Union.<br /><br /></center></p>';
	content[index++] = '<br>';
	content[index++] = '<center><table><tr><td><div align="center"><a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'"><table bgcolor="FFFFF"><tr><td>Cancel</td></tr></table></a></td><td><a href="javascript:void(\'0\');" onclick="window.open(\''+url+'\');document.getElementById(\'ex_dis\').style.visibility = \'hidden\'"><table bgcolor="FFFFFF"><tr><td>OK</td></tr></table></a></td></tr></table></center></div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.visibility = "visible";
	scrollTo(0, 0);

}

document.write('<div id="ex_dis" style="background-color: #F1F1F1; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; position:absolute; left:200px; top:100px; margin:5% 5%; border: thin solid #2A4B8A; padding: 15px; visibility: hidden;z-index: 100; width:350px; FILTER: progid:DXImageTransform.Microsoft.dropShadow( Color=#80C34E,offX=7,offY=8,positive=true); "></div>');

function showWarning(url){
	
	var content = new Array();
        var index = 0;
	content[index++] = '<left><b>Notice: You are linking to a CCU Partner Website</b><br /><br />- Clicking <b>\'Continue\'</b> below will take you to an external website.<br/><br />- This site is not provided, supported, or hosted by Consumers Credit Union.<br/><br/>- Although Consumers Credit Union approves this site as a reliable partner site, our privacy and security policies do not apply to this partner site.<br/><br/>- You are highly enouraged to read and evaluate this new site\'s privacy and security procedures.<br /><br /></center></p>';
	content[index++] = '<br>';
	content[index++] = '<center><table><tr><td><div align="center"><a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'"><table bgcolor="FFFFF"><tr><td>DECLINE</td></tr></table></a></td><td><a href="javascript:void(\'0\');" onclick="window.open(\''+url+'\');document.getElementById(\'ex_dis\').style.visibility = \'hidden\'"><table bgcolor="FFFFFF"><tr><td>CONTINUE</td></tr></table></a></td></tr></table></center></div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.visibility = "visible";
	scrollTo(0, 0);

}

document.write('<div id="ex_dis" style="background-color: #F1F1F1; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; position:absolute; left:200px; top:100px; margin:5% 5%; border: thin solid #2A4B8A; padding: 15px; visibility: hidden;z-index: 100; width:450px; FILTER: progid:DXImageTransform.Microsoft.dropShadow( Color=#80C34E,offX=7,offY=8,positive=true); "></div>');

function showMapWarning(url){
	
	var content = new Array();
        var index = 0;
	content[index++] = '<left><b>Please be advised</b><br /><br />The link you have selected is hosted by Consumers Credit Union.  However, some of the content is pulled from Google Maps, which is information hosted by another party. Although Consumers Credit Union has approved this content as reliable, please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of Consumers Credit Union\'s website. Please also note that you may be notified that this page contains secure and non-secure items, which is normal.<br /><br /></center></p>';
	content[index++] = '<br />';
	content[index++] = '<center></table></a></td><td><a href="javascript:void(\'0\');" onclick="window.open(\''+url+'\');document.getElementById(\'ex_dis\').style.visibility = \'hidden\'"><table bgcolor="ffffff"><tr><td>OK</td></tr></table></a></td></tr></table></center></div></div><table><tr><td><div align="lef"><a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'"><table bgcolor="ffffff"><tr><td>Decline</td></tr>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.visibility = "visible";
	scrollTo(0, 0);

}

document.write('<div id="ex_dis" style="background-color: #F1F1F1; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; position:absolute; left:200px; top:100px; margin:5% 5%; border: thin solid #2A4B8A; padding: 15px; visibility: hidden;z-index: 100; width:350px; FILTER: progid:DXImageTransform.Microsoft.dropShadow( Color=#80C34E,offX=7,offY=8,positive=true); "></div>');

function showVisa1Warning(url){
	
	var content = new Array();
        var index = 0;
	content[index++] = '<left><b>No Annual Fee</b><br /><br />Here is some crazy information on the Visa No Annual Fee<br /><br /></center></p>';
	content[index++] = '<br />';
	content[index++] = '<center><table><tr><td><div align="lef"><a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'"><table bgcolor="ffffff"><tr><td>Close</td></tr></table></a></td>'
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.visibility = "visible";
	scrollTo(0, 0);

}

document.write('<div id="ex_dis" style="background-color: #F1F1F1; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; position:absolute; left:50px; top:50px; margin:5% 5%; border: thin solid #2A4B8A; padding: 15px; visibility: hidden;z-index: 100; width:200px; FILTER: progid:DXImageTransform.Microsoft.dropShadow( Color=#80C34E,offX=7,offY=8,positive=true); "></div>');

