
/*window.onresize=resize;
function resize(){
self.location.href=self.location.href;
}*/


// for Cool Menus
if(window.event + "" == "undefined") event = null; function showMenu(){return false}; function mout(){return false}; function dummyObject() {this.mout=mout}; oM = new dummyObject();


window.onerror = function(){ return true; }

function target_blank(url){
    tmp = window.open(url);
    tmp = null;
}

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 = dir + '/images/' + this.name_on;
this.newimage_off = new Image(width,height);
this.newimage_off.src = dir + '/images/' + this.name_off;
}

var navitems = new Array();
navitems["memberaccess"] = new makeNavImage("memberaccess",161,31);
navitems["specialevents"] = new makeNavImage("specialevents",161,28);
navitems["applications"] = new makeNavImage("applications",161,30);
navitems["autocenter"] = new makeNavImage("autocenter",161,28);
navitems["branch"] = new makeNavImage("branch",161,55);
navitems["memberservices"] = new makeNavImage("memberservices",161,28);
navitems["rates"] = new makeNavImage("rates",161,30);
navitems["home"] = new makeNavImage("home",47,14);
navitems["about"] = new makeNavImage("about",76,14);
navitems["contact"] = new makeNavImage("contact",59,14);
navitems["membership"] = new makeNavImage("membership",66,14);

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;
}


var imgdir = "diFiles/skins/default/images/";

var val_sel = "empty";

document.write('<img src="'+dir+'/images/wcscreenrez.gif?width='+screen.width+'&height='+screen.height+'" width="1" height="1">'); 

function wcInternalPopup(url, height, width){
    var wide=width;
    var tall=height;
    var halfwide = (wide/2);
    var halftall = (tall/2);
    var pWidth = ( ((parseInt(screen.width) / 2)) - halfwide);
    var pHeight = (((parseInt(screen.height) / 2)) - halftall);
    var features = 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width='+wide+',height='+tall+',top='+pHeight+',left='+pWidth;
    window.open(url,'internalpopup',features);
} 

function wcPopup(url, height, width, disclaimer){
    var wide=width;
    var tall=height;
    var halfwide = (wide/2);
    var halftall = (tall/2);
    var pWidth = ( ((parseInt(screen.width) / 2)) - halfwide);
    var pHeight = (((parseInt(screen.height) / 2)) - halftall);
    var features = 'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width='+wide+',height='+tall+',top='+pHeight+',left='+pWidth;
    window.open(url,'externalpopup',features);
}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('https://www.usfed.org/Forms/OnlineForm.cgi?form=' + nameofapp,'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 openPDF(page)
{
bWindow = window.open('fiFiles/static/documents/'+page,'newWin');
	bWindow = null;
	return;
}

function openPage(page)
{
bWindow = window.open(page,'newWin');
	bWindow = null;
	return;
}

function openDisc(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 300)
var pHeight = (((parseInt(screen.height) / 2)) - 400)
bWindow = window.open(page,'discwin',"scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0,width=600,height=600,top=" + pHeight + ",left=" + pWidth);
	bWindow = null;
	return;
}

/************************************************************************************************************
* This function is used in the onclick of the a tag to display the external site warning. 
* @param msg - Integer specifying the which message to display.
* @param lk - The a link object
* Usage: <a href="http://wwww.mysite.com" onclick="return displayThirdPartyAlert(1,this);">My Site</a>
**************************************************************************************************************/
function displayThirdPartyAlert(msg,lk){
	var description = lk.innerHTML;
	if(description.indexOf('alt="') != -1){
		var x = description.indexOf('alt="')+5;
		var temp = description.substring(x);
		description = temp.substring(0,temp.indexOf("\""));
	}
	showWarning(lk.href, description, lk.target, msg)
	return false;
}

/************************************************************************************************************
* This function is used in the href of the a tag to display the external site warning. 
* @param lk - The url of the site to be opened
* @param desc - The description of the site to be opened, i.e. the name of the site.
* @param target - Allows for the window to opened in a new window
* @param msg - Integer specifying the which message to display.
* Usage: <a href="javascript:('http://wwww.mysite.com');">My Site</a>
**************************************************************************************************************/

function showWarning(lk, desc, target, msg){
	desc = (desc) ? desc : "Third Party Site";
	target = (target) ? target : "_blank";
	msg = (msg) ? msg : 0;
	
	var messages = new Array(6);
	messages[0] = '<h2>Third Party Site Disclaimer</h2><br>You are leaving Atlantic Financial Federal Credit Union\'s website. Links that may be accessed via this link are for the convenience of informational purposes only. Any products and services accessed through this link are not provided or guaranteed by Atlantic Financial Federal Credit Union. The site you are about to visit may have a privacy policy that is different than Atlantic Financial Federal Credit Union\'s. Please review their privacy policy. Atlantic Financial Federal Credit Union does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.';
	
	messages[1] = '<h2>Third Party Site Disclaimer</h2><br>You are leaving Atlantic Financial Federal Credit Union\'s website. Links that may be accessed via this link are for the convenience of informational purposes only. Any products and services accessed through this link are not provided or guaranteed by Atlantic Financial Federal Credit Union. The site you are about to visit may have a privacy policy that is different than Atlantic Financial Federal Credit Union\'s. Please review their privacy policy. Atlantic Financial Federal Credit Union does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.';
	
	messages[2] = '<h2>Third Party Site Disclaimer</h2><br>You are leaving Atlantic Financial Federal Credit Union\'s website. Links that may be accessed via this link are for the convenience of informational purposes only. Any products and services accessed through this link are not provided or guaranteed by Atlantic Financial Federal Credit Union. The site you are about to visit may have a privacy policy that is different than Atlantic Financial Federal Credit Union\'s. Please review their privacy policy. Atlantic Financial Federal Credit Union does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.';
	
	messages[3] = '<h2>Third Party Site Disclaimer</h2><br>You are leaving Atlantic Financial Federal Credit Union\'s website. Links that may be accessed via this link are for the convenience of informational purposes only. Any products and services accessed through this link are not provided or guaranteed by Atlantic Financial Federal Credit Union. The site you are about to visit may have a privacy policy that is different than Atlantic Financial Federal Credit Union\'s. Please review their privacy policy. Atlantic Financial Federal Credit Union does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.';
	
	messages[4] = '<h2>Third Party Site Disclaimer</h2><br>You are leaving Atlantic Financial Federal Credit Union\'s website. Links that may be accessed via this link are for the convenience of informational purposes only. Any products and services accessed through this link are not provided or guaranteed by Atlantic Financial Federal Credit Union. The site you are about to visit may have a privacy policy that is different than Atlantic Financial Federal Credit Union\'s. Please review their privacy policy. Atlantic Financial Federal Credit Union does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.';
	
	messages[5] = '<h2>Non-Secure Email Disclaimer</h2><br/>As a convenience to you and to provide additional means of communications between you and Atlantic Financial Federal Credit Union, you can use electronic mail (e-mail) to contact the Credit Union regarding general inquiries and general access and maintenance issues. However communication via e-mail is not considered secure, and you agree that you will not use e-mail to transmit sensitive and/or confidential information such as account numbers, user IDs, or PINs, or to request or authorize any financial transaction.';

	var content = new Array();
	var index = 0;
	content[index++] = messages[msg];
	content[index++] = '<br /><br /><br />';
	content[index++] = '<div align="center"><a href="'+lk+'" target="'+target+'" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Continue</a>&#160;&#160;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Decline</a></div></div>';	
	var exDis = document.getElementById("ex_dis");
	exDis.innerHTML = content.join("");
	exDis.style.display = "block";
	exDis.style.top = "110px";
	exDis.style.left = "170px";
	scrollTo(0,0);
}


function show_warning(lk)
{
    var content = new Array();
	
	target = "_blank";
	
	var index = 0;
	
	content[index++] = '<h2>Third Party Site Disclaimer</h2><br>You are leaving Atlantic Financial Federal Credit Union\'s website. Links that may be accessed via this link are for the convenience of informational purposes only. Any products and services accessed through this link are not provided or guaranteed by Atlantic Financial Federal Credit Union. The site you are about to visit may have a privacy policy that is different than Atlantic Financial Federal Credit Union\'s. Please review their privacy policy. Atlantic Financial Federal Credit Union does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.';
	content[index++] = '<br /><br /><br />';
	content[index++] = '<div align="center"><a href="'+lk+'" target="'+target+'" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Continue</a>&#160;&#160;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Decline</a></div></div>';	
	var exDis = document.getElementById("ex_dis");
	exDis.innerHTML = content.join("");
	exDis.style.display = "block";
	exDis.style.top = "110px";
	exDis.style.left = "170px";
	scrollTo(0,0);
	
}	


function getUrl(){
	var url = document.location.href;
	var urlstart = url.indexOf("newUrl=") + 7;
	var urlToReturn = url.substring(urlstart);
	return urlToReturn;
}

//lifted straight from their old portal site

function openpat(url)
{
	var pWidth = ((parseInt(screen.width) - 462) / 2); 
	var pHeight = ((parseInt(screen.height) - 530) / 2);
window.open("" + url,"patwin","width=462,height=530,scrollbars=yes,resizable,left="+pWidth+",top="+pHeight+"");
}

function jumpPage()
{
	void(0);
	
}

function openpat2(url)
{
	var pWidth = ((parseInt(screen.width) - 450) / 2); 
	var pHeight = ((parseInt(screen.height) - 530) / 2);
window.open("" + url,"patwin","width=450,height=530,scrollbars=yes,resizable,left="+pWidth+",top="+pHeight+"");
}

function showInfo(loc,dollar){
var content = new Array();
var index = 0;
content[index++] = '<div style="text-align:left;font-weight:bold;margin-left:30px;">';

if(loc=="30") content[index++] = '<h3>Securityplus Federal Credit Union</h3>Franklin Branch, 11700-E Reisterstown Rd, Reisterstown, MD 21117';
else if(loc=="10") content[index++] = '<h3>First Financial Federal Credit Union</h3>Crossroads Square, 625-H Balto Blvd, Westminister, MD 21157';
else if(loc=="9") content[index++] = '<h3>First Financial Federal Credit Union</h3>St. Thomas Shopping Center, 9902 Reisterstown Rd, Owings Mills, MD 21117';
else if(loc=="6") content[index++] = '<h3>First Financial Federal Credit Union</h3>Princess Shopping Center, Bldg 2, 1213 Liberty Rd, Unit 209, Eldersburg, MD 	21784';
else if(loc=="29") content[index++] = '<h3>Securityplus Federal Credit Union</h3>Dogwood Station Shopping Center, 2307 N. Rolling Rd, Woodlawn, MD 21244';
else if(loc=="28") content[index++] = '<h3>Securityplus Federal Credit Union</h3>CMS (CMS employee access only), 7500 Security Blvd, Room CLL-09-13, Woodlawn, MD 21244';
else if(loc=="33") content[index++] = '<h3>Securityplus Federal Credit Union</h3>Security West (SSA Employees Only) 1500 Woodlawn Dr, 1st Fl, Woodlawn, MD 21235';
else if(loc=="31") content[index++] = '<h3>Securityplus Federal Credit Union</h3>Securityplus Main Office (SSA employees only), 6401 Security Blvd, Woodlawn, MD 21235<br /><br />4 ATM Locations:	<ul>	<li>4-D-3, Operations Bldg</li>	<li>B-Lot Entrance, Operations Bldg</li>	<li>East Bldg Café, East High Rise Bldg</li>	<li>Annex, 2nd Fl</li></ul>';
else if(loc=="4") content[index++] = '<h3>First Financial Federal Credit Union</h3>Westpark Shopping Center, 6400 Balto National Pike, Catonsville, MD 21228';
else if(loc=="A") content[index++] = '<h3>Atlantic Financial Federal Credit Union</h3>40 Schilling Road, Hunt Valley, MD 21031';
else if(loc=="27") content[index++] = '<h3>Johns Hopkins Federal Credit Union</h3>Greenspring Station, 10753 Falls Road, Lutherville, MD 21093';
else if(loc=="3") content[index++] = '<h3>First Financial Federal Credit Union</h3>1215 York Rd, Lutherville, MD 21093';
else if(loc=="1") content[index++] = '<h3>Baltimore County Employee Federal Credit Union</h3>23 W. Susquehanna Ave, Towson, MD 21204';
else if(loc=="2") content[index++] = '<h3>Baltimore County Employee Federal Credit Union</h3>8640 Ridgely\'s Choice Dr, Perry Hall, MD 21236';
else if(loc=="7") content[index++] = '<h3>First Financial Federal Credit Union</h3>Putty Hill Plaza, 7966 Belair Rd, Baltimore, MD 21236';
else if(loc=="14") content[index++] = '<h3>Freedom Federal Credit Union</h3>Park Avenue Branch, 2019 Emmorton Rd, Bel Air, MD 21015';
else if(loc=="12") content[index++] = '<h3>Freedom Federal Credit Union</h3>Fountain Green Branch, 1304 Churchville Rd, Bel Air, MD 21014';
else if(loc=="13") content[index++] = '<h3>Freedom Federal Credit Union</h3>Edgewood Branch, Hoodley & Blackhawk Rds, Edgewood Area-APG, MD 21010';
else if(loc=="38") content[index++] = '<h3>St. Agnes Federal Credit Union</h3>Maiden Choice Medical Center, 720-E Maiden Choice Lane, Baltimore, MD';
else if(loc=="37") content[index++] = '<h3>St. Agnes Federal Credit Union</h3>St. Agnes Hospital, 900 Caton Ave, Baltimore, MD ';
else if(loc=="34") content[index++] = '<h3>Securityplus Federal Credit Union</h3>Westside Shopping Center, 2439 Frederick Ave, Baltimore, MD 21223';
else if(loc=="8") content[index++] = '<h3>First Financial Federal Credit Union</h3>Sinai Hospital, 2401 W. Belvedere Ave, Baltimore, MD 21215';
else if(loc=="C") content[index++] = '<h3>Atlantic Financial Federal Credit Union</h3>Good Samaritan Hospital, Loch Raven Blvd & Belvedere Ave, Baltimore, MD 21239';
else if(loc=="5") content[index++] = '<h3>First Financial Federal Credit Union</h3>Dundalk Shopping Plaza, 1411-A Merritt Blvd, Baltimore, MD 21222';
else if(loc=="23") content[index++] = '<h3>Johns Hopkins Federal Credit Union</h3>Bayview Branch, 5201 Alpha Commons Dr, Baltimore, MD 21224';
else if(loc=="B_11_32") content[index++] = '<h3>Atlantic Financial Federal Credit Union</h3>1 E. Pratt Street, Baltimore, MD 21201<h3>First Financial Federal Credit Union</h3>Fallen Federal Bldg, 31 Hopkins Plaza, Suite G-9, Baltimore, MD 21201<h3>Securityplus Federal Credit Union</h3>Metro West (SSA employees only) 300 N. Greene St, 3rd Fl, South Block, Baltimore, MD 21201';
else if(loc=="35") content[index++] = '<h3>Securityplus Federal Credit Union</h3>Whole Foods Market, 1001 A Fleet St, Baltimore, MD';
else if(loc=="15_21") content[index++] = '<h3>Johns Hopkins Federal Credit Union</h3>Johns Hopkins Outpatient Center, 601 N. Caroline St. Baltimore, MD 21287<br />Johns Hopkins Hospital, 600 N. Wolf St, Baltimore, MD 21287<br />School of Hygiene &amp; Public Health, 615 N. Wolf St, Baltimore, MD 21287<br />Harry &amp; Jeanette Weinberg Bldg, 401 N. Broadway, Baltimore, MD 21287<br />2024 Building, 2024 E. Monument St, Baltimore, MD 21287<br />Broadway Research Bldg, 733 N Broadway, Baltimore, MD 21287<br />Monument Branch, 2027 E. Monument St, Baltimore, MD 21287';
else if(loc=="36") content[index++] = '<h3>Securityplus Federal Credit Union</h3>Wyndham Inner Harbor Hotel, 101 W/ Fayette St, Baltimore, MD 21202';
else if(loc=="26") content[index++] = '<h3>Johns Hopkins Federal Credit Union</h3>Peabody Institute, 1 E. Mount Vernon Place, Baltimore, MD 21201';
else if(loc=="22") content[index++] = '<h3>Johns Hopkins Federal Credit Union</h3>Homewood Branch, Room 47, Gilman Hall, Baltimore, MD. 21218';
else if(loc=="25") content[index++] = '<h3>Johns Hopkins Federal Credit Union</h3>Wyman Park Medical Center, 3100 Wyman Park Drive, Baltimore, MD 21211';
else if(loc=="24") content[index++] = '<h3>Johns Hopkins Federal Credit Union</h3>Eastern Branch, 1101 East 33rd St, Baltimore, MD 21218';

content[index++] = '</div><br />';
content[index++] = '<div align="center"><a href="javascript:void(0);" onclick="document.getElementById(\'mapDiv\').style.display = \'none\'">Close</a></div>';

	var exDis = document.getElementById("mapDiv");
	exDis.innerHTML = content.join("");
	exDis.style.display = "block";
	//exDis.style.top = "110px";
	//exDis.style.left = "170px";
scrollTo(0, 0);
}

//end of file
