1つ目:関数フォームの送信からfalseを返す必要があります(ページをリロードしないでください)。それで
d = new Date(),
day = d.getDate();
$(".image").each(function(i,e){
var number = $(e).attr("class").match(/\d+/);
if (number <= day)
$(e).addClass('active');
});
と
$('div.active').animate({"height":"0px", "width":"150px", "bottom":"75px"}, 500);