 $(document).ready(function() {
   // use this to reset several forms at once
     array = $(".hide_box");
     param_id = array.attr("id");

     $(".cerca_form").each(function() {
         elem = document.getElementById(param_id);
         if(elem.value == "false")
       $(this).hide();
     });
     
     
     $("#cerca_notizie_button").mouseover(function() {
     	 $("#cerca_notizie_button img").each(function() {
     	 	var src=$(this).attr("src").replace(".gif","_over.gif");
     		$(this).attr("src",src);
     	});
     		
     });
     
     $("#cerca_notizie_button").mouseout(function() {
     	 $("#cerca_notizie_button img").each(function() {
     	 	var src=$(this).attr("src").replace("_over.gif",".gif");
     		$(this).attr("src",src);
     	});
     		
     });
     
     $("#cerca_notizie_button").click(function() {
     	
     		$(".cerca_form").each(function() {
     			$(this).slideToggle(500);
     		});
     		
     		
     		
     		 $("#cerca_notizie_button img").toggle();
     });
     
 });