$(document).ready(function() {


   // Activate Shadowbox
   
   $(".content a[rel^='lightbox']").prettyPhoto({theme: 'dark_square'});

    // Activate Tooltip Products
   $('#produktgruppe a.ptrigger').each(function(Index, container){
        if($(container).parent().has('div.tooltip').length){
          $(container).tooltip({ effect: 'slide', position: 'bottom center', cancelDefault : true, relative : true, delay : 50, offset : [-10,12]});
         }
   });
   
  // Animated Header
 
   $("#headerimages ul li img").css("visibility","visible");
   $("#headerimages").css("background","none"); 
   
 if($("#headerimages ul li").length > 1) {
  $('#headerimages ul').innerfade({
				animationtype: 'fade',
				speed: 2250,
				timeout: 6000,
				type: 'random',
				containerheight: '264px'
			});
 } 


   
    
   
   	/* =Realistic Hover
	-------------------------------------------------------------------------- */	
		
		
		//$("#produktgruppe ul li").append("<span></span>");	
		
		// Produktgruppe Header
		
		$("#produktgruppe li:not(.active) a.ptrigger").hover(function() {
		    $(this).stop().animate({ marginTop: "-8px" }, 200);
		    //$(this).parent().find("span").stop().animate({ marginTop: "18px", opacity: 0.25 }, 200);
		},function(){
		    $(this).stop().animate({ marginTop: "0px" }, 300);
		    //$(this).parent().find("span").stop().animate({ marginTop: "0", opacity: 1 }, 300);
		});
    
    // Produktbersicht Content // Home
    
    	$("#product_overview ul li").hover(function() {
		    $(this).stop().find("img").animate({ marginTop: "-5px", opacity: 0.55 }, 200);
		},function(){
		    $(this).stop().find("img").animate({ marginTop: "0", opacity: 1 }, 300);
		});
				
       // Subnavigation 
      $("#subnav ul li a").hover(function() {
		    $(this).stop().animate({ lineHeight: "40px", opacity: 0.85 }, 200);
		},function(){
		    $(this).stop().animate({ lineHeight: "48px", opacity: 1 }, 300);
		});
				    


});
