// JavaScript Document


		$(
			function()
			{
				// set up rollover
				$("img.rollover").hover(
					function()
					{
						this.src = this.src.replace(".jpg","_roll.jpg");
					},
					function()
					{
						this.src = this.src.replace("_roll.jpg",".jpg");
					}
				);
			}
		)
		
		
		
		
		
		
		$(document).ready(function(){
	
			//Hide (Collapse) the toggle containers on load
			$(".testo_nascosto").hide(); 
			
			$("#aperto").show(); 
		
			//Switch the "Open" and "Close" state per click
			$(".bottone").toggle(function(){
				$(this).addClass("active");
				}, function () {
				$(this).removeClass("active");
			});
		
			//Slide up and down on click
			$(".bottone").click(function(){
				$(this).next(".testo_nascosto").slideToggle("medium");
			});
			
			
			
			
			
			
			
			/**
			 * Pagina riconoscimenti
			 * http://api.jquery.com/toggle/
			 */
			//Nascondi i testi
			$('.toggle-container').hide(); 
				
			//Al click mostra il testo
			$('.toggle-button').click(function(){
				$(this).next('.toggle-container').slideToggle('fast');
			});
			
	
		});
