$(function() { $("#calculator_widget").MortgageCalculator({ mode: "widget", animate: "true", title: "", footer: "", intro: "With this calculator you can put in your values and estimate the amount of your loan and get an estimate on the amount of your monthly payments. Click on the &#39;Calculate&#39; button when you&#39;re ready.", logo: {path: "", url: ""}, fields: { principal: { enabled: "undefined", type: "input", desc: "The total value of the loan (in dollars)"} , interest: { enabled: "undefined", type: "input", desc: "The annual interest rate of the loan"} , term: { enabled: "undefined", type: "select", desc: "The term of the loan (in years)"} , down: { enabled: "true", type: "input", desc: "The down payment on the loan (in dollars)"} , taxes: { enabled: "true", type: "input", desc: "The annual property taxes (in dollars)"} , insurance: { enabled: "true", type: "input", desc: "The annual homeowner&#39;s insurance (in dollars)"} , pmi: { enabled: "true", type: "input", desc: "The monthly private mortgage insurance (in dollars)"} , extra: { enabled: "true", type: "input", desc: "Extra to pay to the principal per month (in dollars)"} }, defaults: { taxes: 1.5, insurance: 0.5 }, bounds: { min: { principal: 0, interest: 0, term: 15 }, max: { principal: 15000000, interest: 15, term: 40 }, step: { term: 5} }, colors: { main: { text: "#000", back: "#eef2fd", border: "#39c" }, title: { text: "#39c", back: "" }, tab: { text: "#39c", back: "#fff", border: "#39c" }, pane: { text: "#000", back: "#fff", border: "#39c" }, input: { text: "#000", back: "#fff", border: "#aaa", error: "#fcc" }, button: { text: "#fff", back: "#46a026", border: "#1f731a" }, nav: { text: "#fff", back: "#39c", border: "#39c" }, table: { text: "#000", back: "#fff", border: "#aaa" }, footer: { text: "#999", back: "" }, link: { text: "#39c" }, values: { payment: "#6a9f35", taxes: "#0584af", insurance: "#ff9300", total: "#eee", principal: "#6a9f35", extra: "#90d948", interest: "#f00", balance: "#333"} }}); });