jQuery(document).ready(function() {
	jQuery('.inhalt').hide();
	
	jQuery('.click').click(function(){
			jQuery('.inhalt').hide('slow');
		if(jQuery(this).next('.inhalt').css('display') == 'none'){
			jQuery(this).next('.inhalt').show('slow');
		}
	});
});

// BRANDING FADE

jQuery(document).ready(function(){
						   jQuery(".branding").fadeTo(500, 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   jQuery(".branding").hover(function(){
						   jQuery(this).stop(true, true);
						   jQuery(this).fadeTo(600, 0.4); // This should set the opacity to 100% on hover
						   },function(){
						   jQuery(this).fadeTo(900, 1.0); // This should set the opacity back to 30% on mouseout
						   });
						   });

jQuery(function(){

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