function load(){$("#help,#options").hide();$("#helpme,#optionsme").click(function(){var a=$(this).attr("id").substring(0,$(this).attr("id").length-2);$("#"+a).toggle()});$(".close").click(function(){$("#help").hide()});$("#amount").change(function(){formatted=numformat($(this).val().replace(/\$|\,/g,""));$(this).val(formatted)});$("#le,#lem").change(function(){switch($(this).attr("id")){case "le":!1==isNaN($("#le").val())&&(lem=12*$("#le").val(),$("#lem").val(lem));break;case "lem":!1==isNaN($("#lem").val())&&
(le=0==$("#lem").val()/12%1?$("#lem").val()/12:numformat($("#lem").val()/12),$("#le").val(le))}})}function numformat(a){for(var a=Math.round(a*Math.pow(10,2))/Math.pow(10,2),a=a.toFixed(2),b=(""+a).split("."),b=1<b.length?b[1].toString():"00",a=Math.floor(100*a+0.50000000001),a=Math.floor(a/100).toString(),c=0;c<Math.floor((a.length-(1+c))/3);c++)a=a.substring(0,a.length-(4*c+3))+","+a.substring(a.length-(4*c+3));return finalnum=a+"."+b}
function floating(){var a=$("#ad1").position(),b=$("#ad2").position();$(window).scroll(function(){$(window).scrollTop()>a.top&&$(window).scrollTop()+275<b.top?$("#ad1").css({position:"fixed",top:0}):$("#ad1").css({position:"static"})})};

