$(document).ready(function(){
						   $(".latest_img").fadeTo("fast", 0.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".latest_img").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.0); // This should set the opacity back to 30% on mouseout
						   });
						   });

$(document).ready(function(){
						   $(".clienti").fadeTo("slow", 0.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".clienti").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.0); // This should set the opacity back to 30% on mouseout
						   });
						   });

$(document).ready(function(){
						   $(".servizi").fadeTo("fast", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads						
						   $(".servizi").hover(function(){
						   $(this).fadeTo("fast", 0.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity back to 30% on mouseout
						   });
						   });
$(document).ready(function(){
						   $(".testo_servizio").fadeTo("fast", 0.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads						
						   $(".testo_servizio").hover(function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.0); // This should set the opacity back to 30% on mouseout
						   });
						   });

$(document).ready(function(){
						   $("#text p").fadeTo("slow", 0.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $("#text p").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.0); // This should set the opacity back to 30% on mouseout
							   	});
						   });

$(document).ready(function(){
						   $("#div").fadeTo("slow", 0.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $("#div").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.0); // This should set the opacity back to 30% on mouseout
							   	});
						   });
var blank = new Image();
 blank.src = 'blank.gif';
 
 $(document).ready(function() {
   var badBrowser = (/MSIE ((5\.5)|6)/.test(navigator.userAgent) && navigator.platform == "Win32");
   if (badBrowser) {
     // get all pngs on page
     $('img[src$=.png]').each(function() {
       if (!this.complete) {
         this.onload = function() { fixPng(this) };
       } else {
         fixPng(this);
       }
     });
   }
 });
 
 function fixPng(png) {
   // get src
   var src = png.src;
   // set width and height
   if (!png.style.width) { png.style.width = $(png).width(); }
   if (!png.style.height) { png.style.height = $(png).height(); }
   // replace by blank image
   png.onload = function() { };
   png.src = blank.src;
   // set filter (display original image)
   png.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
 }
 
  
$(function(){
$('#test').hover(
		function(){
			$('#test .post_image').fadeOut(100, function(){
				$('#test .post_body').fadeIn(100);						 
			});
		},
		function(){
			$('#test .post_body').fadeOut(100, function(){
				$('#test .post_image').fadeIn(100);						 
			});
		}
		);
$('#test2').hover(
		function(){
			$('#test2 .post_image').fadeOut(100, function(){
				$('#test2 .post_body').fadeIn(100);						 
			});
		},
		function(){
			$('#test2 .post_body').fadeOut(100, function(){
				$('#test2 .post_image').fadeIn(100);						 
			});
		}
		);
$('#test3').hover(
		function(){
			$('#test3 .post_image').fadeOut(100, function(){
				$('#test3 .post_body').fadeIn(100);						 
			});
		},
		function(){
			$('#test3 .post_body').fadeOut(100, function(){
				$('#test3 .post_image').fadeIn(100);						 
			});
		}
		);
$('#test4').hover(
		function(){
			$('#test4 .post_image').fadeOut(100, function(){
				$('#test4 .post_body').fadeIn(100);						 
			});
		},
		function(){
			$('#test4 .post_body').fadeOut(100, function(){
				$('#test4 .post_image').fadeIn(100);						 
			});
		}
		);
 
});
