$(document).ready(function(){
    $(".marken img, .jcarousel-skin-tango img").fadeTo("fast", 0.6);
    
    $(".marken img, .jcarousel-skin-tango img ").hover(function(){
        $(this).fadeTo("fast", 1.0);
    }, function(){
        $(this).fadeTo("fast", 0.6);
    });
});


$(document).ready(function(){
    $(".categoryRow img,.product_listing_image img, .produktfoto img, #main input,.produktseite_img, .topselle img, .produktseite_buttons a").fadeTo("fast", 1.0);
    
    $(".categoryRow img,.product_listing_image img, .produktfoto img, #main input,.produktseite_img, .topseller img, .produktseite_buttons a").hover(function(){
        $(this).fadeTo("fast", 0.6);
    }, function(){
        $(this).fadeTo("fast", 1.0);
    });
});



$(function(){

    $('a[href*=#]').click(function(){
    
        if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') &&
        location.hostname == this.hostname) {
        
            var $target = $(this.hash);
            
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
            
            if ($target.length) {
            
                var targetOffset = $target.offset().top;
                
                $('html,body').animate({
                    scrollTop: targetOffset
                }, 1000);
                
                return false;
                
            }
            
        }
        
    });
    
});

