	$(document).ready(  

		function(){
			
			$('#containerPopup').fadeIn(2000, function(){
				$('#popup').fadeIn(500);					   
			});
			
			$('a.chiudi').click(function(){
				$('#popup').fadeOut(300);
				$('#containerPopup').fadeOut(300);
												
			})
			
			$('a.continua').click(function(){
				$('#popup').fadeOut(300);
				$('#containerPopup').fadeOut(300);
												
			})
			
			

			$("#news").click(function () {

				$("#boxnews").show();

				return false;

			});

			$("#closeboxnews").click(function () {

				$("#boxnews").hide();

				return false;

			});

			$("#close").click(function () {

				if(desc=="open"){

					$("#text").hide();

					$("#description").css('height', 'auto');

					$("#description").removeClass('colonna');

					$("#close").html('<a href="#"><img src="img/open.gif" /></a>');

					desc="close"

				}

				else{

					$("#text").show();

					$("#description").css('height', $("#product").height());

					$("#description").addClass('colonna');

					$("#close").html('<a href="#"><img src="img/close.gif" /></a>');

					desc="open"

				}

				return false;

			}

										   

			);

			

			$(".th_img").hide();

			$(".th").mouseover(function() {

 			$(this).children().next().show();

			});

			$(".th").mouseout(function() {

 			$(this).children().next().hide();

			});

			

			$(".ingrandimento").click(function () {

				$("#product_img img").attr('src', $(this).attr('href')).load(function() {

					windowsResize();

				});

				return false;

			});

		}

	);

	
