function LinkInfo( text, href ) {
	this.text = text;
	this.href = href;
}

TEMPLATE_ID = "www.stearns-bank.com_1";
PASSTHROUGH = "";
if (document.location.href.substring(0,5) == "https") { URL = "https://"; } else { URL = "http://"; }
URL += "www.TimeValueCalculators.com/timevaluecalculators/includes/calculators_script.js";
scriptTag = 'SCRIPT ';
languageAttr = 'LANGUAGE="JavaScript" ';
srcAttr = 'SRC="' + URL + '" ';
typeAttr = 'TYPE="text/javascript" ';
document.write('<' + scriptTag + languageAttr + srcAttr + '></' + scriptTag + '>');

var externalLinks = {
		HF01: new LinkInfo( "View more information about Home mortgage refinancing", "personal-banking/home-mortgages-refinancing.html" ),
		HF02: new LinkInfo( "View more information about fixed rate mortgages", "personal-banking/home-mortgages-refinancing/faq-terms.html" ),
		HF03: new LinkInfo( "View more information about adjustable rate mortgages", "personal-banking/home-mortgages-refinancing/faq-terms.html" ),
		HF04: new LinkInfo( "to be removed", "to be removed" ),
		HF05: new LinkInfo( "View more information about buying a home", "personal-banking/home-mortgages-refinancing/buying-a-home.html" ),
		HF06: new LinkInfo( "View more information about different mortgage types", "personal-banking/home-mortgages-refinancing/mortgage-terms.html" ),
		HF07: new LinkInfo( "View more information about Home mortgage refinancing", "personal-banking/home-mortgages-refinancing.html" ),
		HF08: new LinkInfo( "View more information about Home mortgage refinancing", "personal-banking/home-mortgages-refinancing.html" ),
		PC10: new LinkInfo( "View more information about personal loans", "personal-banking/personal-loans.html" ),
		HF09: new LinkInfo( "View more information about Home mortgage refinancing", "personal-banking/home-mortgages-refinancing.html" ),
		PC01: new LinkInfo( "View more information about saving for a car", "personal-banking/personal-savings-cds.html" ),
		AC02: new LinkInfo( "View more informationa about personal loans", "personal-banking/personal-loans.html" ),
		PC02: new LinkInfo( "View more information about credit cards", "personal-banking/credit-card.html" ),
		PC03: new LinkInfo( "View more information about personal savings", "personal-banking/personal-savings-cds.html" ),
		PC04: new LinkInfo( "View more information about personal savings", "personal-banking/personal-savings-cds.html" ),
		PC06: new LinkInfo( "View more information about personal loans", "personal-banking/personal-loans.html" ),
		PC07: new LinkInfo( "View more information about personal loans", "personal-banking/personal-loans.html" ),
		PC08: new LinkInfo( "View more information about personal loans", "personal-banking/personal-loans.html" ),
		PC09: new LinkInfo( "View more information about personal loans", "personal-banking/personal-loans.html" ),
		PC10: new LinkInfo( "View more information about personal loans", "personal-banking/personal-loans.html" ),
		IC02: new LinkInfo( "View more information about personal savings", "personal-banking/personal-savings-cds.html" ),
		IC07: new LinkInfo( "View more information about personal savings", "personal-banking/personal-savings-cds.html" ),
		IC08: new LinkInfo( "View more information about personal savings", "personal-banking/personal-savings-cds.html" ),
		IC09: new LinkInfo( "View more information about personal savings", "personal-banking/personal-savings-cds.html" ),
		IC10: new LinkInfo( "View more information about personal savings", "personal-banking/personal-savings-cds.html" ),
		RC01: new LinkInfo( "View more information about investment and insurance", "personal-banking/investment-and-insurance.html" ),
		RC02: new LinkInfo( "View more information about investment and insurance", "personal-banking/investment-and-insurance.html" ),
		RC03: new LinkInfo( "View more information about investment and insurance", "personal-banking/investment-and-insurance.html" ),
		RC07: new LinkInfo( "View more information about investment and insurance", "personal-banking/investment-and-insurance.html" ),
		RC08: new LinkInfo( "View more information about investment and insurance", "personal-banking/investment-and-insurance.html" ),
		RC09: new LinkInfo( "View more information about investment and insurance", "personal-banking/investment-and-insurance.html" ),
		RC10: new LinkInfo( "View more information about investment and insurance", "personal-banking/investment-and-insurance.html" ),
		LC03: new LinkInfo( "View more information about equipment finance leasing", "commercial-finance/equipment-finance-leasing.html" ),
		LC04: new LinkInfo( "View more information about equipment finance leasing", "commercial-finance/equipment-finance-leasing.html" ),
		LC05: new LinkInfo( "View more information about equipment finance leasing", "commercial-finance/equipment-finance-leasing.html" ),
		LC06: new LinkInfo( "View more information about equipment finance leasing", "commercial-finance/equipment-finance-leasing.html" )
}


$(function(){
	var calcId = $(".calcId").text();
	$("<p><a id='calculatorLink' /></p>").insertAfter("#calculator");
	$("#calculatorLink").attr("href", externalLinks[calcId].href).text(externalLinks[calcId].text);
});