function BranchLocation(atm_location){
	if(atm_location){
 		this.atm_location = atm_location;
	}
	else{
		this.atm_location = false;
	}
	this.setAddress = setAddress;
	this.address;
	this.hourslocations = "<br><strong>Hours:</strong><br>Monday - Thursday 8:30 a.m. to 5:00 p.m. <br>Friday - 8:30 a.m. to 6:00 p.m. <br>";
	this.setPhone = setPhone;
	this.phone;
	this.setFax = setFax;
	this.fax;
	this.getLocation = getLocation;
	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="#6386BD">';
	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">';
	if(this.atm_location){
		this.branch_top[6]='Location <img src="../images/atm.gif" width="40" height="13" alt="" border="0">';
	}
	else{
		this.branch_top[6]='Location';
	}
	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">';
	this.branch_top[11]='<table>';
	this.branch_top[12]='<tr>';
	this.branch_top[13]='<td valign="top" class="ficontent">';
	
	this.info_divider=new Array()
	this.info_divider[0]='</td>';
	this.info_divider[1]='<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 setAddress(address){
	
	this.address = "<strong>Address:</strong><br>" + address;
}
function setPhone(phone){
	this.phone = "<strong>Phone:</strong><br>" + phone;
}
function setFax(fax){
	this.fax = "<br><strong>Fax:</strong><br>" + fax;
}
function getLocation(){
	return (this.branch_top.join("")+this.address+this.hourslocations+this.info_divider.join("")+this.phone+this.fax+this.branch_bottom.join(""));
}

//quickfix for Two Notch Road Columbia Address

function BranchLocation2(){
	
	this.setAddress2 = setAddress2;
	this.address2;
	this.setPhone2 = setPhone2;
	this.phone2;
	this.setFax2 = setFax2;
	this.fax2;
	this.getLocation2 = getLocation2;
	this.branch_top2=new Array()
	this.branch_top2[0]='<table width="408" border="0" cellspacing="0" cellpadding="0" align="left">';
	this.branch_top2[1]='<tr>';
	this.branch_top2[2]='<td bgcolor="#6386BD">';
	this.branch_top2[3]='<table width="100%" border="0" cellspacing="1" cellpadding="5">';
	this.branch_top2[4]='<tr>';
	this.branch_top2[5]='<td class="tableheader" valign="top">';
	this.branch_top2[6]='Northeast Location <img src="../images/atm.gif" width="40" height="13" alt="" border="0">';
	this.branch_top2[7]='</td>';
	this.branch_top2[8]='</tr>';
	this.branch_top2[9]='<tr>    ';
	this.branch_top2[10]='<td bgcolor="#ffffff" class="ficontent" valign="top" align="left">';
	this.branch_top2[11]='<table>';
	this.branch_top2[12]='<tr>';
	this.branch_top2[13]='<td valign="top" class="ficontent">';
	
	this.info_divider2=new Array()
	this.info_divider2[0]='</td>';
	this.info_divider2[1]='<td valign="top" class="ficontent">		';

	this.branch_bottom2=new Array()
	this.branch_bottom2[0]='</td>';
	this.branch_bottom2[1]='</tr>';
	this.branch_bottom2[2]='</table>';
	this.branch_bottom2[3]='</td>';
	this.branch_bottom2[4]='</tr>	';
	this.branch_bottom2[5]='</table>';
	this.branch_bottom2[6]='</td>';
	this.branch_bottom2[7]='</tr>';
	this.branch_bottom2[8]='</table><br clear="all"><br clear="all">';
}
function setAddress2(address2){
	
	this.address2 = "<strong>Address:</strong><br>" + address2;
}
function setPhone2(phone2){
	this.phone2 = "<strong>Phone:</strong><br>" + phone2;
}
function setFax2(fax2){
	this.fax2 = "<br><strong>Fax:</strong><br>" + fax2;
}
function getLocation2(){
	return (this.branch_top2.join("")+this.address2+this.info_divider2.join("")+this.phone2+this.fax2+this.branch_bottom2.join(""));
}


//end

var bishopville = new BranchLocation(true);
bishopville.setAddress("201 East Church Street<br>Bishopville, South Carolina 29010");
bishopville.setPhone("(803) 484-5459");
bishopville.setFax("(803) 484-4233");

var camden1 = new BranchLocation(true);
camden1.setAddress("407 DeKalb Street<br>Camden, South Carolina 29020");
camden1.setPhone("(803) 432-2265");
camden1.setFax("(803)432-0193");

var camden2 = new BranchLocation();
camden2.setAddress("2310 North Broad Street<br>Camden, South Carolina 29020");
camden2.setPhone("(803) 432-1982");
camden2.setFax("(803) 424-5076");

var charleston = new BranchLocation(true);
charleston.setAddress("1636 Highway 17 North<br />Mt. Pleasant, SC  29464");
charleston.setPhone("(843) 329-2265");
charleston.setFax("(843) 216-2355");

var charleston2 = new BranchLocation(true);
charleston2.setAddress("5 Sumar Street<br />Charleston, SC  28407");
charleston2.setPhone("(843) 852-2665");
charleston2.setFax("(843) 852-2674");

var columbia1 = new BranchLocation(true);
columbia1.setAddress("3932 Forest Drive<br>Columbia, South Carolina 29204");
columbia1.setPhone("(803) 782-7030");
columbia1.setFax("(803) 738-2355");

var columbia2 = new BranchLocation(true);
columbia2.setAddress("4304 Hardscrabble Road<br>Columbia, South Carolina 29229");
columbia2.setPhone("(803) 419-3424");
columbia2.setFax("(803) 419-2607");

var columbia3 = new BranchLocation(true);
columbia3.setAddress("10540 Two Notch Road<br>Pontiac, South Carolina 29223<br />Location:  Corner of Two Notch Rd<br /> &amp; Spears Creek Church Road");
columbia3.setPhone("(803) 736-9319");
columbia3.setFax("(803) 736-9321");

var darlington = new BranchLocation();
darlington.setAddress("206 Cashua Street<br>Darlington, South Carolina 29532");
darlington.setPhone("(843) 393-4051");
darlington.setFax("(843) 393-9069");

var irmo = new BranchLocation(true);
irmo.setAddress("7327 St. Andrews Road<br>Irmo, South Carolina 29063");
irmo.setPhone("(803) 407-0135");
irmo.setFax("(803) 407-0142");

var kershaw = new BranchLocation(true);
kershaw.setAddress("301 North Hampton Street<br>Mailing Address  P.O. Box 187<br />Kershaw, South Carolina 29067<br />");
kershaw.setPhone("(803) 475-6085");
kershaw.setFax("(803) 475-6087");

var lancaster = new BranchLocation(true);
lancaster.setAddress("409 North Main Street<br>Lancaster, South Carolina 29720");
lancaster.setPhone("(803) 285-6978");
lancaster.setFax("(803) 285-6980");

var lexington = new BranchLocation(true);
lexington.setAddress("5321 Sunset Boulevard<br>Lexington, South Carolina 29072");
lexington.setPhone("(803) 356-3388");
lexington.setFax("(803) 356-7115");

var lugoff = new BranchLocation(true);
lugoff.setAddress("788 Highway 1 South<br>Lugoff, South Carolina 29078");
lugoff.setPhone("(803) 438-1461");
lugoff.setFax("(803) 438-6320");

var manning = new BranchLocation(true);
manning.setAddress("111 North Brooks Street<br>PO Box 17<br />Manning, South Carolina 29102");
manning.setPhone("(803) 435-8815");
manning.setFax("(803) 435-4714");

var myrtle = new BranchLocation(true);
myrtle.setAddress("10207 North Kings Highway<br>Myrtle Beach, South Carolina 29572");
myrtle.setPhone("(843) 272-0274");
myrtle.setFax("(843) 361-9858");

var myrtle2 = new BranchLocation(true);
myrtle2.setAddress("1204 48<sup>th</sup> Ave North<br>Myrtle Beach, South Carolina 29577");
myrtle2.setPhone("(843) 839-3900");
myrtle2.setFax("(843) 839-3901");

var north_myrtle = new BranchLocation(true);
north_myrtle.setAddress("501 Highway 17 South<br>North Myrtle Beach, South Carolina 29582");
north_myrtle.setPhone("(843) 281-9055");
north_myrtle.setFax("(843) 280-5303");

var pageland = new BranchLocation(true);
pageland.setAddress("201 North Pearl Street<br>Pageland, South Carolina 29728");
pageland.setPhone("(843) 672-6141");
pageland.setFax("(843) 672-6144");

var summerville = new BranchLocation(true);
summerville.setAddress("211 North Main Street<br />Summerville, SC  29483-6415");
summerville.setPhone("843-821-2205");
summerville.setFax("843-821-8929");

var surfside = new BranchLocation(true);
surfside.setAddress("2293 Glenn's Bay Road<br>Surfside Beach, South Carolina 29575");
surfside.setPhone("(843) 650-1401");
surfside.setFax("(843) 650-1439");



