Final payment of £'+n.finalPayment+"<\/label>"):$j("#repayable").html(n.months+' monthly payment of £'+n.initialPayments+"<\/label>");n.documentFee>0&&(n.documentFeeCollectionMonth==0?$j("#lblDocumentFee").html("An arrangement fee of £"+n.documentFee+" is payable on approval."):$j("#lblDocumentFee").html("An arrangement fee of £"+n.documentFee+" is payable with first instalment."));$j("#lblTotalRepayable").html("£"+n.amountPayable);$j("#lblInterest").html(n.apr+"%");$j("#lblAnnualRate").html(n.annualRate);n.initialPayments!=n.finalPayment&&n.finalPayment>0?($j("#lblMonths").html(n.months-1),$j("#lblFinalPayment").html(" and a final payment of £"+n.finalPayment)):$j("#lblMonths").html(n.months)}function GetLowestMonthlyPayments(){for(var r,s,u=V12.getFinanceProducts(),n=0,f=0,t=0;tparseFloat(s)||n==0)&&(n=r.initialPayments,f=e.productId)}$j("#productsList").val(f);CalculateRepayments()}$j(document).ready(function(){GetProducts();CalculateRepayments();$j("#productsList").on("change",function(){CalculateRepayments()});$j("#cpRange, #depRange").on("input",function(){UpdateLoanInfo()});$j("#lowestMonthlyPayments").click(function(){GetLowestMonthlyPayments()});$("#cashPrice, #deposit").keyup(function(){var n=$j("#cashPrice").val(),t=$j("#deposit").val();$j("#cpRange").val(n);$j("#depRange").val(t);CalculateRepayments()})})