//layer code
  
function changetext(whichcontent){
	if(window.erron_atm){
		scrollTo(0,100);
		changetext2(" ");
	}
    if (document.all)
    	{
        	descriptions.innerHTML=whichcontent;
    	}
    else if (document.layers)
    	{
        
        	document.d1.document.d2.document.write(whichcontent);
        	document.d1.document.d2.document.close();
    	}
    else
        {   
           //this is the Netscape 6 fix
            over = document.getElementById(["descriptions"]);
            
            range = document.createRange();
            range.setStartBefore(over);
            domfrag = range.createContextualFragment(whichcontent);
           
            while (over.hasChildNodes()) {
            over.removeChild(over.lastChild);
            }
            over.appendChild(domfrag);
         }
                       
}

function ATMLocation(){
	this.atmplaces = new Array();
	this.addLocation = addLocation;
	this.getLocations = getLocations;
	this.count = 0;
	this.branch_top=new Array()
	this.branch_top[0]='<table width="408" border="0" cellspacing="0" cellpadding="0" align="left">';
	this.branch_top[1]='<tr>';
	this.branch_top[2]='<td bgcolor="#730C39">';
	this.branch_top[3]='<table width="100%" border="0" cellspacing="1" cellpadding="5">';
	this.branch_top[4]='<tr>';
	this.branch_top[5]='<td class="tableheader" valign="top">';
	this.branch_top[6]='Locations';
	this.branch_top[7]='</td>';
	this.branch_top[8]='</tr>';
	this.branch_top[9]='<tr>    ';
	this.branch_top[10]='<td bgcolor="#ffffff" class="ficontent" valign="top" align="left"><img src="../images/clearpix.gif" width="408" height="1" alt="" border="0"><br>';
	this.branch_top[11]='<table>';
	/*this.branch_top[12]='<tr>';
	this.branch_top[13]='<td valign="top" class="ficontent">';*/
	

	this.branch_bottom=new Array()
	/*this.branch_bottom[0]='</td>';
	this.branch_bottom[1]='</tr>';*/
	this.branch_bottom[2]='</table>';
	this.branch_bottom[3]='</td>';
	this.branch_bottom[4]='</tr>	';
	this.branch_bottom[5]='</table>';
	this.branch_bottom[6]='</td>';
	this.branch_bottom[7]='</tr>';
	this.branch_bottom[8]='</table><br clear="all"><br clear="all">';
}

function addLocation(name,address){
	this.atmplaces[this.count++] = new Array(name,address);
}

function getLocations(){
	var tablebody = new Array();
	var index = 0;
	for(i=0;i<this.atmplaces.length;i++){
		tablebody[index++] = "<tr><td class='tablecontent"+i%2+"' width='45%'>"+this.atmplaces[i][0]+"</td><td class='tablecontent"+i%2+"'>"+this.atmplaces[i][1]+"</td></tr>";
	}	
	return (this.branch_top.join("")+tablebody.join("")+this.branch_bottom.join(""));
}


var states = new Array();
states["MO"] = new Array('<a href="javascript:changetext2(stlouis.getLocations());">St. Louis</a>','<a href="javascript:changetext2(metro.getLocations());">Metro East - St. Louis</a>','<a href="javascript:changetext2(kansas.getLocations());">Kansas City</a>','<a href="javascript:changetext2(springfield.getLocations());">Springfield</a>');
states["NY"] = new Array('<a href="javascript:changetext2(baldwin.getLocations());">Baldwinsville</a>')
states["GA"] = new Array('<a href="javascript:changetext2(carter.getLocations());">Cartersville</a>');
states["OH"] = new Array('<a href="javascript:changetext2(columbus.getLocations());">Columbus</a>');
states["TX"] = new Array('<a href="javascript:changetext2(dallas.getLocations());">Dallas</a>','<a href="javascript:changetext2(houston.getLocations());">Houston</a>','<a href="javascript:changetext2(paris.getLocations());">Paris</a>','<a href="javascript:changetext2(san.getLocations());">San Antonio</a>');
states["CA"] = new Array('<a href="javascript:changetext2(fair.getLocations());">Fairfield</a>','<a href="javascript:changetext2(la.getLocations());">Los Angeles/Van Nuys</a>','<a href="javascript:changetext2(sd.getLocations());">San Diego</a>');
states["CO"] = new Array('<a href="javascript:changetext2(fc.getLocations());">Ft. Collins</a>');
states["FL"] = new Array('<a href="javascript:changetext2(jackson.getLocations());">Jacksonville</a>','<a href="javascript:changetext2(tampa.getLocations());">Tampa</a>','<a href="javascript:changetext2(orlando.getLocations());">Orlando</a>');
states["NH"] = new Array('<a href="javascript:changetext2(merrimack.getLocations());">Merrimack</a>');
states["NJ"] = new Array('<a href="javascript:changetext2(newark.getLocations());">Newark</a>');
states["VA"] = new Array('<a href="javascript:changetext2(william.getLocations());">Williamsburg</a>');


function getCities(state){
	var state_link = new Array();
	var index = 0;
	for(var i=0;i<states[state].length;i++){
		if(i != states[state].length - 1){
			state_link[index++] = states[state][i]+" l ";
		}
		else{
			state_link[index++] = states[state][i];
		}
	}
	
	return(state_link.join(""));
}

function changetext2(whichcontent){

    if (document.all)
    	{
        	descriptions2.innerHTML=whichcontent;
    	}
    else if (document.layers)
    	{
        
        	document.d3.document.d4.document.write(whichcontent);
        	document.d3.document.d4.document.close();
    	}
    else
        {   
           //this is the Netscape 6 fix
            over = document.getElementById(["descriptions2"]);
            
            range = document.createRange();
            range.setStartBefore(over);
            domfrag = range.createContextualFragment(whichcontent);
           
            while (over.hasChildNodes()) {
            over.removeChild(over.lastChild);
            }
            over.appendChild(domfrag);
         }
                       
}

var stlouis = new ATMLocation();
stlouis.addLocation("ABECU Main Office","1001 Lynch Street");
stlouis.addLocation("ABECU So. County Branch","3805 Union Road");
stlouis.addLocation("ABECU So. County Drive-Up","Shopping Center on Union just east of Lindbergh");
stlouis.addLocation("ABECU ATM Drive-Up","1334 Jeffco Boulevard");
stlouis.addLocation("ABECU ATM - A-B Tour Center","13th and Lynch Street");
stlouis.addLocation("ABECU ATM - A-B Corp. Office*","1 Busch Place");
stlouis.addLocation("ABECU ATM - A-B Bevo Plant*","610 Pestalozzi");
stlouis.addLocation("Metal Container Group*","3630 S. Geyer");
stlouis.addLocation("American Eagle CU Drive-Up","2101 S. Jefferson");
stlouis.addLocation("American Eagle CU","4650 Hampton Avenue");
stlouis.addLocation("American Eagle CU","13275 Manchester Road");
stlouis.addLocation("American Eagle CU Drive-Up","8995 Dunn Road (Hazelwood)");
stlouis.addLocation("American Eagle CU Drive-Up","70 Crossroads Plaza (O'Fallon)");
stlouis.addLocation("AECU - AT&T*","12851 Manchester Road");
stlouis.addLocation("AECU - AT&T","2651 Olive Street");
stlouis.addLocation("AECU - ASI*","125 Corporate Office Drive");
stlouis.addLocation("AECU - Sara Lee*","3470 Ryder Trail South (Earth City)");
stlouis.addLocation("1st Financial FCU","1407 Washington Avenue");
stlouis.addLocation("1st Financial FCU","5916 N. Lindbergh");
stlouis.addLocation("1st Financial FCU","1550 Country Club Plaza (St. Charles)");
stlouis.addLocation("Century CU","3920 JeffvCo Boulevard (Arnold)");
stlouis.addLocation("Electro CU","12400 Tesson Ferry Road");
stlouis.addLocation("Electro CU","407 Lafayette Center (Manchester & Baxter Rd)");
stlouis.addLocation("Electro CU","1805 Craigshire");
stlouis.addLocation("Health Care Family CU","3225 South Big Bend Blvd.");
stlouis.addLocation("Health Care Family CU","4599 Executive Centre Pkwy (St. Peters)");
stlouis.addLocation("St. Louis Community CU","7224 Gravois");


var metro = new ATMLocation(); 
metro.addLocation("Gateway Metro CU","2693 N. Illinois St. (in the Schnucks Plaza)"); 
//metro.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Granite City Steel CU</span>","<span style='color:#7b3e3e; font-weight: bold;'>20th & Lee Street</span>"); 
//metro.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Granite City Steel CU</span>","<span style='color:#7b3e3e; font-weight: bold;'>3970 Maryville Road</span>"); 
//metro.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Olin Corp. Employee CU</span>","<span style='color:#7b3e3e; font-weight: bold;'>3553 College Avenue</span>"); 
//metro.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Scott Credit Union</span>","<span style='color:#7b3e3e; font-weight: bold;'>648 Carlyle Avenue (Belleville)</span>"); 
//metro.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Scott Credit Union</span>","<span style='color:#7b3e3e; font-weight: bold;'>555 Lincoln Hwy (drive-up)</span>"); 
//metro.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Scott Credit Union</span>","<span style='color:#7b3e3e; font-weight: bold;'>1100 Belt Line Road </span>");
//metro.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Scott Credit Union</span>","<span style='color:#7b3e3e; font-weight: bold;'>7112 West Hwy 50 (O'Fallon)</span>"); 
//metro.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Shell Wood River Federal CU</span>","<span style='color:#7b3e3e; font-weight: bold;'>203 South 6th Street (drive-up)</span>"); 

var kansas = new ATMLocation();
kansas.addLocation("Midwest United Credit Union","Bannister Mall - 5720 E Bannister"); 

var springfield = new ATMLocation();
springfield.addLocation("Credit Union Shared Branch","248 E. Primrose"); 

var baldwin = new ATMLocation();
baldwin.addLocation("ABECU Branch","2885 Belgium Road");  
//baldwin.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Bayberry Mobile ATM</span>","<span style='color:#7b3e3e; font-weight: bold;'>7549 Oswego Road (Liverpool)</span>");  
//baldwin.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Camillus Mobile ATM</span>","<span style='color:#7b3e3e; font-weight: bold;'>5401 W. Gennessee (Camillus)</span>");  
//baldwin.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Great Northern Mobile ATM</span>","<span style='color:#7b3e3e; font-weight: bold;'>4031 Route 31 (Liverpool)</span>");  
//baldwin.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Hudson Valley Federal CU</span>","<span style='color:#7b3e3e; font-weight: bold;'>953 Union Avenue (Newburgh)</span>");  
//baldwin.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>North Syracuse Mobile ATM</span>","<span style='color:#7b3e3e; font-weight: bold;'>600 N. Main (Syracuse)</span>");  

var carter = new ATMLocation();
carter.addLocation("ABECU Branch","100 Busch Drive"); 
//carter.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Publix Grocery</span>","<span style='color:#7b3e3e; font-weight: bold;'>300 Cherokee Place</span>"); 

var columbus = new ATMLocation();
columbus.addLocation("American Eagle Brewery*","700 Schrock Road");
//columbus.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>United Dairy Farmers Store</span>","<span style='color:#7b3e3e; font-weight: bold;'>7580 Worthington-Galena Road</span>"); 

var dallas = new ATMLocation();
dallas.addLocation("AECU Branch","3500 Manor Way"); 

var houston = new ATMLocation();
houston.addLocation("American Eagle Brewery*","775 Gellhorn"); 
//houston.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Capital Bank</span>","<span style='color:#7b3e3e; font-weight: bold;'>Mercury and I-10 East Freeway</span>"); 
//houston.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Lone Star Bank</span>","<span style='color:#7b3e3e; font-weight: bold;'>8117 I-10 East Freeway</span>"); 

var paris = new ATMLocation();
paris.addLocation("AECU Branch","1585 Loop 286 N.W.");

var san = new ATMLocation();
san.addLocation("Sea World Park"," Sea World Drive ");

var fair = new ATMLocation();
fair.addLocation("ABECU Branch","2351 N. Watney Way"); 
//fair.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Allied CU</span>","<span style='color:#7b3e3e; font-weight: bold;'>2131 West March Lane</span>"); 
//fair.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Travis Federal CU</span>","<span style='color:#7b3e3e; font-weight: bold;'>2020 Harbison Drive (Vacaville)</span>");
 
var la = new ATMLocation();
la.addLocation("American Eagle Brewery*","15800 Roscoe Boulevard"); 
//la.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Arrowhead CU</span>","<span style='color:#7b3e3e; font-weight: bold;'>5350 Magnolia Avenue</span>");

var sd = new ATMLocation();
sd.addLocation("ABECU Sea World Branch*","1720 South Shores Road");

var fc = new ATMLocation();
fc.addLocation("American Eagle Brewery*","1529 East Mulberry ");
//fc.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Community First Bank</span>","<span style='color:#7b3e3e; font-weight: bold;'>1520 East Mulberry</span>"); 
//fc.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Mesa County CU</span>","<span style='color:#7b3e3e; font-weight: bold;'>2302 North Avenue (Grand Junction)</span>"); 
//fc.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Union Colony Bank</span>","<span style='color:#7b3e3e; font-weight: bold;'>700 Main Street (Windsor)</span>"); 

var jackson = new ATMLocation();
jackson.addLocation("American Eagle Brewery*","111 Busch Drive ");
//jackson.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Publix Grocery (Publix's ATM)</span>","<span style='color:#7b3e3e; font-weight: bold;'>1100 Dunn Avenue</span>"); 
//jackson.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Winn-Dixie</span>","<span style='color:#7b3e3e; font-weight: bold;'>6250 NW 23rd Street (Gainesville)</span>"); 
//jackson.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Winn-Dixie</span>","<span style='color:#7b3e3e; font-weight: bold;'>1012 Edgewood Avenue</span>"); 

var tampa = new ATMLocation();
tampa.addLocation("ABECU Branch","3209 E. Busch Boulevard ");
tampa.addLocation("Busch Gardens*","E. Busch Blvd."); 

var orlando = new ATMLocation();
//orlando.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Central Florida Educators' FCU</span>","<span style='color:#7b3e3e; font-weight: bold;'>5301 Orange Avenue</span>");
orlando.addLocation("Orlando Discovery Cove","6000 Discovery Cove Way");
//orlando.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Publix Grocery</span>","<span style='color:#7b3e3e; font-weight: bold;'>5350 Central Park</span>");
orlando.addLocation("Sea World Park*","Sea World Drive");

var merrimack = new ATMLocation();
merrimack.addLocation("American Eagle Brewery*","221 Daniel Webster Hwy. ");
//merrimack.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Bank of New Hampshire</span>","<span style='color:#7b3e3e; font-weight: bold;'>300 DW Highway </span>");
//merrimack.addLocation("<span style='color:#7b3e3e; font-weight: bold;'>Bank of New Hampshire</span>","<span style='color:#7b3e3e; font-weight: bold;'>Harris Pond</span>"); 

var newark = new ATMLocation();
newark.addLocation("ABECU Branch*","200 US Highway 1 ");

var william = new ATMLocation();
william.addLocation("ABECU Branch","243 McLaws Circle - Ste. 100 ");
william.addLocation("American Eagle Brewery*","7801 Pocohontas Trail"); 
william.addLocation("Busch Gardens Park","1 Busch Boulevard"); 
william.addLocation("Kingsmill Resort & Conference Ctr.","1010 Kingsmill Road"); 
