$(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.35); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 1.25); // This should set the opacity back to 30% on mouseout
						   });
						   $(".latest_img1").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".latest_img1").hover(function(){
						   $(this).fadeTo("slow", 0.45); // 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(){
						   $("#text p").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $("#text p").hover(function(){
						   $(this).fadeTo("slow", 0.3); // 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(){
						   $("#div").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $("#div").hover(function(){
						   $(this).fadeTo("slow", 0.3); // 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(){
						   $("ul#produkt2 li .img2 a img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $("ul#produkt2 li .img2 a img").hover(function(){
						   $(this).fadeTo("slow", 0.3); // 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() {
	$('#navigation li').hover(
		function(){
			var sub = $(this).find('.dd:eq(0)');
			if( sub.length == 0 ) return false;

			sub.show();
			var t = (parseInt(sub.css('top').replace('px', '')) - 5);
			sub.hide();
			var new_t = t + 5;
			
			sub
				.css({ 'top' : t+'px' })
				.animate({ 'top' : new_t + 'px', opacity : 'show' }, 200, function(){
					//$(this).css({ 'top' : new_t + 'px' });
				 });
				
				
			$(this).find('a:eq(0)').addClass('hover');
		},
		function(){
			var sub = $(this).find('.dd:eq(0)');
			
			sub.hide();
			$(this).find('a:eq(0)').removeClass('hover');
		}
	);
	
					$('#s6').cycle({ 
					fx:     'scrollUp', 
					timeout: 6000, 
					delay:  -2000 
					});
		
});


		$(function(){
			$('#loopedslider').loopedSlider({
				addPagination: true,
				autoStart: 5000
			});
		});



