$(document).ready(function(){
						   $(".latest_img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".latest_img").hover(function(){
						   $(this).fadeTo("slow", 0.50); // 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
						   });
						   $(".latest_img1").fadeTo("slow", 0.50); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".latest_img1").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.50); // This should set the opacity back to 30% on mouseout
						   });					   

						   $(".latest_img2").fadeTo("slow", 0.30); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".latest_img2").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.30); // This should set the opacity back to 30% on mouseout
						   });					   

   
						   });


$(document).ready(function(){
						   $(".news a img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".news a img").hover(function(){
						   $(this).fadeTo("normal", 0.4); // 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
							   	});


						   $("ul#mycarousel li a img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $("ul#mycarousel li a img").hover(function(){
						   $(this).fadeTo("normal", 0.6); // 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
							   	});

							$(".oferta a img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".oferta a img").hover(function(){
						   $(this).fadeTo("normal", 0.5); // 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
							   	});

							$(".ngg-gallery-thumbnail a img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".ngg-gallery-thumbnail a img").hover(function(){
						   $(this).fadeTo("normal", 0.6); // 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
							   	});
						   
							$(".oferta2 a img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".oferta2 a img").hover(function(){
						   $(this).fadeTo("normal", 0.8); // 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
							   	});						   

});


	$(function() {
		// set opacity to nill on page load
		$(".box2 img , .cegla img").css("opacity","1");
		// on mouse over
		$(".box2 img , .cegla img").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 0.4
			}, 'fast');
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 1
			}, 'fast');
		});
	});


