// JavaScript Document

var saving_image = '../images/savings.jpg';
var checking_image = '../images/checking_account.jpg';
var online_banking_image = '../images/products_menu/online_banking.jpg';
var bill_pay_image = '../images/products_menu/bill_pay.jpg';
var e_statements_image = '../images/older_people_computer.jpg';
var loan_image = '../images/loan_image2.jpg';
var cdars_image = '../images/cdars_rotated.jpg';
var mortgage_image = '../images/mortgage_image.jpg';

function de_underline(){
		$('probank').innerHTML = 'ProBank Checking';
		$('partner').innerHTML = 'Partner Checking';
		$('echecking').innerHTML = 'E-Checking';
		$('royal').innerHTML = 'Royal Account';
/*	
		$('compare').innerHTML = 'Compare All';
		$('classic').innerHTML = 'Classic Checking';
		$('interest').innerHTML = 'Interest Plus Checking';
  	$('silver').innerHTML = 'Silver Elite Checking';
*/	
		$('reg_savings').innerHTML = 'Regular Savings';
		$('minor').innerHTML = 'Minor Savings Account';
		$('money_market').innerHTML = 'Money Market Account';
		$('cds').innerHTML = 'CDs &amp; IRAs';
		$('cdars').innerHTML = 'CDARS';
		
		$('online_app').innerHTML = 'Online Banking';
		$('bill_pay').innerHTML = 'Bill Pay';
    
		$('estatement').innerHTML = 'E-Statements';
		
		$('credit_card').innerHTML = 'Credit Cards';
		$('consumer_loans').innerHTML = 'Consumer Loans';
		$('real_estate').innerHTML = 'Real Estate Loans';
		$('eloc').innerHTML = 'Equity Lines';
		$('mortgages').innerHTML = 'Mortgages';
		$('advantage1').innerHTML = 'Advantage Line &amp;';
		$('advantage2').innerHTML = 'Advantage Line plus';
}

function personal_checking(type){
	de_underline();
	if(type == 'advantage'){
		var underline1 = document.getElementById('advantage1');
		var underline2 = document.getElementById('advantage2');
	}
	else{
		var underline = document.getElementById(type);
	}
	var desc1 = $('description');
	var desc2 = $('description2');
	var product_title = $('product_title');
	var product;
	var product_title;
	
	if (type == 'return_home') {
  	window.location.href = '../index.php';
  }
	if(type == 'probank'){
		underline.innerHTML = '<u>ProBank Checking</u>';
		product_title.innerHTML = '<h2 class="headings">ProBank Checking</h2>';
		desc1.innerHTML =  '<p>This account is the perfect solution for a basic checking account. The added benefit is you earn interest on your balance</p><ul><li>$100 minimum to open the account</li><li>$100 minimum balance requirement</li><li>$5.00 monthly maintenance fee</li><li>Free Debit Card</li><li>40 transactions per month at no charge including ATM withdraws; each additional debit is $0.30</li><li>Free initial check order</li><li>Interest bearing</li></ul>';
		$('product_image').src = checking_image;
  }
	if(type == 'partner'){
		underline.innerHTML = '<u>Partner Checking</u>';
		product_title.innerHTML = '<h2 class="headings">Partner Checking</h2>';
		desc1.innerHTML = '<p>This interest-bearing account is designed for those who have direct deposits into their checking accounts, either through payroll or through monthly government checks.  There is no minimum balance requirement as long as the direct deposits continue.  As your community bank, we partner with you to provide the following features:<ul><li>$100 minimum to open the account</li><li>Free standard checks</li><li>Unlimited check writing</li><li>Free online banking and bill pay</li><li>Preferred interest rates on loans and credit cards</li><li>Extra basis points on Certificates of Deposit of at least six months</li><li>Free 3" x 5" safe deposit box (based on availability)</li><li>Free ATM fees at Providence Bank or other bank\'s ATMs (limit 5 per statement cycle)</li><li>No fee for Providence Bank Official Checks (limit 4 per statement cycle)</li><li>No fee for American Express Travelers Checks</li><li>No annual fee MasterCard or Visa (based on credit approval)</li></ul></p>';
		$('product_image').src = checking_image;
	}
	if(type == 'echecking'){
		underline.innerHTML = '<u>E-Checking</u>';
		product_title.innerHTML = '<h2 class="headings">E-Checking</h2>';
		desc1.innerHTML = '<p>This interest-bearing checking account is packed with great features.  As your community bank partner, we listened to what you wanted in a premier checking account.  This account combines the unlimited transaction activity of a checking account with higher interest rates similar to a money market account. The special features of this account include:<ul><li>$100 minimum amount to open the account</li><li>Tiered interest rates</li><li>Enrollment in electronic delivery (e-delivery) of bank statements</li><li>Free initial check order</li><li>Online banking and bill pay</li><li>Free ATM usage anywhere in the world (refunds up to 4 transactions per statement cycle)</li><li>Additional basis points on any CD</li><li>Preferred rates on retail loans</li></ul></p></p>';
		$('product_image').src = checking_image;
	}
	/*
  if(type == 'classic'){
		underline.innerHTML = '<u>Classic Checking</u>';
		product_title.innerHTML = '<h2 class="headings">Classic Checking</h2>';
    desc1.innerHTML =  '<p>Avoid the monthly maintenance fee by keeping the required minimum balance.</p><ul><li>$100 minimum to open the account</li><li>$10 monthly balance requirement fee</li><li>40 debits per month at no charge</li><li class="tier2">Each additional debit is $0.30</li><li>To avoid monthly balance requirement fee:</li><li style="padding-left:15px;list-style:none">$500 minimum daily account balance, or</li><li style="padding-left:15px;list-style:none">$1,000 average daily balance in total deposits</li></ul>';
    $('product_image').src = checking_image;
   }
	 if(type == 'interest'){
		underline.innerHTML = '<u>Interest Plus Checking</u>';
		product_title.innerHTML = '<h2 class="headings">Interest Plus Checking</h2>';
    desc1.innerHTML =  '<p>Earn interest on your balance with this checking account option.</p><ul><li>$100 minimum to open the account</li><li>$12 monthly balance requirement fee</li><li>40 debits per month at no charge</li><li class="tier2">Each additional debit is $0.30</li><li>To avoid monthly balance requirement fee:</li><li style="padding-left:15px;list-style:none">$750 minimum daily account balance, or</li><li style="padding-left:15px;list-style:none">$2,000 average daily balance in total deposits, or</li><li style="padding-left:15px;list-style:none">$5,000 average daily account balance to also avoid $5.95 Internet Bill Pay Fee</li></ul>';
    $('product_image').src = checking_image;
  }
	 if (type == 'silver') {
   	underline.innerHTML = '<u>Silver Elite Checking</u>';
   	product_title.innerHTML = '<h2 class="headings">Silver Elite Checking</h2>';
   	desc1.innerHTML =  '<p>An interest-bearing checking account for our "Over 50" customers</p><ul><li>$100 minimum to open the account</li><li>$8 monthly balance requirement fee</li><li>40 debits per month at no charge</li><li style="padding-left:15px;list-style:none">Each additional debit is $0.30</li><li>To avoid monthly balance requirement fee:</li><li style="padding-left:15px;list-style:none">$100 minimum daily account balance, or</li><li style="padding-left:15px;list-style:none">$1,000 average daily balance in total deposits, or</li><li style="padding-left:15px;list-style:none">$1,000 minimum daily account balance to avoid per item fee, or</li><li style="padding-left:15px;list-style:none">$1,000 average daily account balance to also avoid $5.95 Internet Bill Pay Fee</li></ul>';
    $('product_image').src = checking_image;
  }
	*/
	 if(type == 'royal'){
		underline.innerHTML = '<u>Royal Account</u>';
		product_title.innerHTML = '<h2 class="headings">Royal Account</h2>';
    desc1.innerHTML =  '<p>A relationship account created for our royal customers who expect the very best.  This interest-bearing account combines features of a money market investment account and a premium checking account...with added benefits.</p><ul><li>$100 minimum to open the account</li><li>$15 monthly balance requirement fee</li><li>Unlimited check writing</li><li>Standard checks are no charge (or $6 credit toward another style)</li><li>Preferred interest rates on loans and credit cards</li><li>Free 3"x5" safe deposit box (based on availability)</li><li>Free online banking and bill pay</li><li>No fee Providence Bank Official Checks (limit 4 per statement cycle)</li><li>No fee for American Express Travelers Checks</li><li>No fee for usage of other bank\'s ATMs (You may incur a fee imposed by the ATM service provider)</li><li>No annual fee MasterCard or Visa (based on credit approval)</li><li>To avoid monthly balance requirement fee:</li><li style="padding-left:15px;list-style:none">$2,000 minimum daily account balance in Royal Account, or</li><li style="padding-left:15px;list-style:none">$10,000 average daily balance in total deposits, or</li><li style="padding-left:15px;list-style:none">$20,000 in outstanding loan balances at Providence Bank</li></ul>';
    $('product_image').src = checking_image;
  }
	 if(type == 'reg_savings'){
		underline.innerHTML = '<u>Regular Savings</u>';
		product_title.innerHTML = '<h2 class="headings">Regular Savings</h2>';
		desc1.innerHTML =  '<p>A basic savings account designed to make it easy for you to save. This account earns a competitive interest rate and you have ready access to your funds. There is no monthly balance requirement fee if the required minimum balance is maintained.<ul><li>$200 minimum to open the account</li><li>$4 monthly balance requirement fee</li><li>Three withdrawals per month at no charge</li><li style="padding-left:15px;list-style:none">Each additional withdrawal is $3</li><li>To avoid monthly balance requirement fee:</li><li style="padding-left:15px;list-style:none">$200 minimum daily account balance, or</li><li style="padding-left:15px;list-style:none">$2,500 average daily account balance to also avoid per item fee</li></ul></p>'; 
    $('product_image').src = saving_image;
	 }
	 if(type == 'minor'){
		underline.innerHTML = '<u>Minor Savings Account</u>';
		product_title.innerHTML = '<h2 class="headings">Minor Savings Account</h2>';
		desc1.innerHTML =  '<p>A great way to start a savings account for customers who are under the age of 18. This interest-bearing account can be started with a low opening balance of $25. There is no minimum balance to maintain and there are no monthly balance requirement fees on this account.</p>'; 
    $('product_image').src = saving_image;
   }
	  if(type == 'money_market'){
		underline.innerHTML = '<u>Money Market Account</u>';
		product_title.innerHTML = '<h2 class="headings">Money Market Account</h2>';
    desc1.innerHTML =  '<p>Keep your funds easily accessible and earn interest at the same time.  With our tiered rates, you can earn a higher interest rate as your balance grows.  By maintaining the required minimum daily balance, you can avoid any monthly service fees.</p><p>With any money market account, by law, you are not permitted to exceed more than six preauthorized transfers to third parties or another account of yours, or a combination of the above, per statement cycle.  These six transactions include checks, drafts, debit cards, or similar order.  You may make unlimited withdrawals or transfers in person, by mail, or through an ATM.<ul><li>$1000 minimum to open the account</li><li>$10 monthly balance requirement fee</li><li>$1000 minimum daily account balance to avoid the monthly balance requirement fee</li></ul></p>';
    $('product_image').src = saving_image;
   }
	 if(type == 'cds'){
		underline.innerHTML = '<u>CDs &amp; IRAs </u>';
		product_title.innerHTML = '<h2 class="headings">CDs &amp; IRAs </h2>';
		desc1.innerHTML =  '<p>A variety of Certificate of Deposit and Individual Retirement Accounts are available at Providence Bank. Both investments provide a secure way to save for the future and for retirement, as well as offering competitive interest rates and flexible terms. The minimum deposit to open a CD or IRA at Providence Bank is $1,000.</p>'; 
    $('product_image').src = saving_image;
   }
	 if(type == 'cdars'){
		underline.innerHTML = '<u>CDARS </u>';
		product_title.innerHTML = '<h2 class="headings">CDARS </h2>';
		desc1.innerHTML =  '<p>Providence Bank is a member of a special network of banks that can provide you full FDIC coverage on large investments.  When you place money with us, we place your funds into CDs issued by other banks in the same network – in increments of less than the standard FDIC insurance maximum – so that both principal and interest are eligible for complete FDIC protection.  As a result, you receive coverage from many banks while working with just one....Providence Bank!</p><p>An added bonus is that our bank receives funds from other CDARS participants on a dollar-for-dollar exchange which allows Providence to make the full amount of your deposit available for community lending purposes. These loans strengthen our communities by helping the business and customer to grow and expand.</p><p>Simplify your life and reduce the administrative burden of tracking various statements, chasing different bank CD rates, monitoring changing collateral values, and gathering all those tax documents. Deal with one bank, one rate, and one statement.</p> <p><a href="../leaving_site.php?go_to_url=cdars" style="text-decoration:underline;font-size:14px;">Click here</a> for a short video presentation of the CDARS program.</p>'; 
    $('product_image').src = cdars_image;
   }
	 if(type == 'online_app'){
	 	product = 'Online Banking';
    underline.innerHTML = '<u>'+product+'</u>';
    product_title.innerHTML = '<h2 class="headings">'+product+'</h2>';
    desc1.innerHTML =  '<p>Enjoy the security and convenience of banking 24/7 from any Internet connection in the world.  Our online banking service allows you to review all of your Providence Bank accounts, view transactions and check images, transfer funds between accounts, pay loans, and even export account activity into Microsoft Money or Quicken software.<p>To see a demo of our online banking, <a href="https://server29.cey-ebanking.com/CLKPCB/053112657/" target="_blank" style="text-decoration:underline;font-size:14px;">click here</a>.  From this website, click on the <b>Demo</b> button.</p><p><a href="https://server14.cey-ebanking.com/CLKPCB/053112657/broadcast-message.asp" target="_blank" style="text-decoration:underline;font-size:14px;">Click here</a> to enroll on line or stop by any branch location.  Within two business days following enrollment, we will contact you by e-mail with login credentials.</p>'; 
    $('product_image').src= online_banking_image;
   }
   if(type == 'bill_pay'){
	 	product = 'Bill Pay';
    underline.innerHTML = '<u>'+product+'</u>';
    product_title.innerHTML = '<h2 class="headings">'+product+'</h2>';
    desc1.innerHTML =  '<p>We know your time is valuable and our Bill Payment option is just the time management tool you need.  As part of our online banking service, Bill Pay lets you pay your bills instantly and securely with the click of a mouse.   Enter the payment now, schedule when you want it paid, or set the payment to be made on a recurring basis....even up to a year in advance!  Bill Pay can even remind you when a payment is due.  No more rising postage costs or frantic trips to the post office.  Payments are there when you need them to be.<p>To enroll in Bill Pay from within your online banking screen, click on the Bill Pay tab at the top, then click on the <b>Enroll Me</b> button to complete the application.  If you have questions or need assistance, please contact your local branch.</p>'; 
    $('product_image').src= bill_pay_image;
   }
   if(type == 'estatement'){
    product = 'E-Delivery';
    underline.innerHTML = '<u>'+product+'</u>';
    product_title.innerHTML = '<h2 class="headings">'+product+'</h2>';
    desc1.innerHTML =  '<p>Here at Providence Bank, we deliver.  That\'s right!  Within 24 hours after your loan or deposit statement is prepared, we deliver it right to your e-mail address in an encrypted, password-protected file….and we can even send it to eight different e-mail addresses if you\'d like.  No more waiting days for your postal service delivery….AND you can retrieve your statements from wherever you are.  On vacation?  No problem.  On a business trip?  No problem.  Your financial information is wherever you need it to be.  PLUS...each e-statement allows you to access prior statements and check copies back to April 2008.</p><p>Why not have your statements delivered faster, greener, and more secure than ever before!  To activate this free service, have your last paper statement handy and <a href="../leaving_site.php?go_to_url=estatement">click here</a>.</p>'; 
		$('product_image').src = e_statements_image;
    }
	  if(type == 'credit_card'){
		underline.innerHTML = '<u>Credit Cards </u>';
		product_title.innerHTML = '<h2 class="headings">Credit Cards </h2>';
		desc1.innerHTML =  '<p>MasterCard® and VISA® credit cards help make purchasing quick and easy. Providence Bank offers several cards, including cards with no annual fee and ones that offer rewards. For added convenience, your credit card payment can be made at any of our branch locations.</p>'; 
    $('product_image').src = loan_image;
   }
	 if(type == 'consumer_loans'){
		underline.innerHTML = '<u>Consumer Loans</u>';
		product_title.innerHTML = '<h2 class="headings">Consumer Loans</h2>';
		desc1.innerHTML =  '<p>Whether you are buying a car, a boat, or just need a short-term loan, we can help. Our loan programs offer flexible repayment plans at competitive rates.'; 
    $('product_image').src = loan_image;
   }
	 if(type == 'real_estate'){
		underline.innerHTML = '<u>Real Estate Loans</u>';
		product_title.innerHTML = '<h2 class="headings">Real Estate Loans </h2>';
		desc1.innerHTML =  '<p>Let Providence Bank help finance your real estate purchase. Talk with us today about purchasing land for your dream home or about building it! We offer a number of real estate loan options.<ul><li>Purchase of primary or secondary residences</li><li>Purchase of rental or investment property</li><li>Purchase of land</li><li>Construction loans</li></ul></p>'; 
    $('product_image').src = loan_image;
   }
	 if(type == 'eloc'){
		underline.innerHTML = '<u>Equity Lines</u>';
		product_title.innerHTML = '<h2 class="headings">Equity Lines</h2>';
		desc1.innerHTML =  '<p>A home equity line of credit taps the equity you have in your home to be used for home improvements, a college education, the purchase of an automobile, a special vacation, or any other purpose. Enjoy competitive interest rates and flexible repayment terms, as well as possible tax benefits. (Consult your tax advisor for deductibility of interest.)</p>'; 
    $('product_image').src = loan_image;
   }
	 if(type == 'mortgages'){
		underline.innerHTML = '<u>Mortgages</u>';
		product_title.innerHTML = '<h2 class="headings">Mortgages</h2>';
		desc1.innerHTML =  '<p>Providence Bank Mortgage brings you flexible mortgage financing options and the personal service of a local bank - the best of both worlds! Call us when you are ready for your first home, a new home, or to refinance.</p>'; 
    $('product_image').src = mortgage_image;
   }
	 if(type == 'advantage'){
		underline1.innerHTML = '<u>Advantage Line &amp;</u>';
		underline2.innerHTML = '<u>Advantage Line Plus</u>';
		product_title.innerHTML = '<h2 class="headings">Advantage Line & Line Plus</h2>';
		desc1.innerHTML =  '<p>A personal line of credit prevents overdrawn checks and gives you the security of having funds available when you need them. You must apply and qualify.</p>'; 
    $('product_image').src = loan_image;
   }
}