/* Author: Alessandro Muraro

*/

// jQuery(document).ready(function() {
// 	jQuery("body").delay(0).fadeIn("slow");
// });



jQuery(document).ready(function() {
	jQuery('.carosello').hover(function () {
		jQuery(this).animate({
				opacity: 0.5					
				}, 500);
		}, function() {
		jQuery(this).animate({opacity: 0}, 500);
	});
});

jQuery(document).ready(function() {
	jQuery('.carosellopage').hover(function () {
		jQuery(this).animate({
				opacity: 0.5					
				}, 500);
		}, function() {
		jQuery(this).animate({opacity: 0}, 500);
	});
});

jQuery(document).ready(function() {
	jQuery('.box').hover(function() {
		jQuery(this).animate({top: '-=70'}, 200);
		}, function() {
		jQuery(this).animate({top: '+=70px'}, 200);
	});

});


jQuery(document).ready(function() {
	jQuery('.social ul li').hover(function() {
		jQuery(this).animate({
				opacity: 0.5					
				}, 500);
		}, function() {
		jQuery(this).animate({opacity: 1}, 500);
	});

});


jQuery(document).ready(function() {
	jQuery('.topnav ul li a').hover(function() {
		jQuery(this).animate({
				opacity: 0.5					
				}, 500);
		}, function() {
		jQuery(this).animate({opacity: 1}, 500);
	});

});

jQuery(document).ready(function() {
	jQuery('ul.subpages li').hover(function() {
		jQuery(this).animate({
				opacity: 0.5					
				}, 500);
		}, function() {
		jQuery(this).animate({opacity: 1}, 500);
	});

});


jQuery(document).ready(function() {
	jQuery('#btnUp').hover(function() {
		jQuery(this).animate({
				opacity: 0.5					
				}, 500);
		}, function() {
		jQuery(this).animate({opacity: 1}, 500);
	});

});

jQuery(document).ready(function() {
jQuery("iframe").each(function(){
      var ifr_source = jQuery(this).attr('src');
      var wmode = "wmode=transparent";
      if(ifr_source.indexOf('?') != -1) $(this).attr('src',ifr_source+'&'+wmode);
      else jQuery(this).attr('src',ifr_source+'?'+wmode);
});
});








