Scale Figures

$(window).load(function() { function d(i) { i += ""; x = i.split("."); x1 = x[0]; x2 = x.length > 1 ? "." + x[1] : ""; var h = /(\d+)(\d{3})/; while (h.test(x1)) { x1 = x1.replace(h, "$1.$2") } return x1 + x2 } var c = 0; var b = parseInt($("#config_price_max").val()); var g = c; var f = b; if ($("#filter_price_min").val() != "" && $("#filter_price_min").val() != undefined) g = parseInt($("#filter_price_min").val()); if ($("#filter_price_min").val() != "" && $("#filter_price_min").val() != undefined) f = parseInt($("#filter_price_max").val()); if (b > 0) { $("#price-range").slider({ range: true, min: 0, max: b, values: [g, f], // step: 5, slide: function(h, i) { $(".price_min").html(d(i.values[0])); $(".price_max").html(d(i.values[1])); }, change: function(h, i) { $("#filter_price_min").val(i.values[0]); $("#filter_price_max").val(i.values[1]); if(i.values[0] != g || i.values[1] != f){ $(this).closest("form").submit() } }, stop: function(h, i) { $(".filter-tooltip").hide() } }) } }); -->