$(document).ready(function(){
$("#footer a, .footer_icons_li img,#maincontent_kontaktinfos li, .informationsbox_klein_content li, .informationsbox_gross_content").fadeTo("fast", 0.5); // This sets the opacity of the thumbs to fade down to 60% when the page loads

$("#footer a, .footer_icons_li img,#maincontent_kontaktinfos li, .informationsbox_klein_content li,  .informationsbox_gross_content").hover(function(){
$(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
},function(){
$(this).fadeTo("fast", 0.5); // This should set the opacity back to 60% on mouseout
});
});

$(document).ready(function(){
$("#footer a, #maincontent_kontaktinfos li, .informationsbox_gross_content, .impressum_title .kontaktformular_bg, #maincontent_kontaktformular img, #maincontent_blog li,.maincontent_shop_model, #maincontent_service li").fadeTo("fast", 0.7); // This sets the opacity of the thumbs to fade down to 60% when the page loads

$("#footer a, #maincontent_kontaktinfos li, .informationsbox_gross_content, .impressum_title .kontaktformular_bg, #maincontent_kontaktformular img, #maincontent_blog li,.maincontent_shop_model, #maincontent_service li").hover(function(){
$(this).fadeTo("fast", 1.0); },function(){
$(this).fadeTo("fast", 0.7);
});
});


$(document).ready(function(){
$(".maincontent_webdesign_foto, .maincontent_portfolio_rahmen li,.impressum_titel, #kontaktformular_submit,.tagcloud span, .maincontent_portfolio_unterseite_rahmen li,.maincontent_portfolio_unterseite_toggle_rahmen li").fadeTo("fast", 0.7); 

$(".maincontent_webdesign_foto, .maincontent_portfolio_rahmen li,.impressum_titel, #kontaktformular_submit, .tagcloud span, .maincontent_portfolio_unterseite_rahmen li,.maincontent_portfolio_unterseite_toggle_rahmen li").hover(function(){
$(this).fadeTo("fast", 1.0); 
},function(){
$(this).fadeTo("fast", 0.7); // This should set the opacity back to 60% on mouseout
});
});


$(document).ready(function(){
$(".maincontent_portfolio_mehrinfos a,#sidebar_uebersicht li, .toggleLink a").fadeTo("fast", 0.8); // This sets the opacity of the thumbs to fade down to 60% when the page loads

$(".maincontent_portfolio_mehrinfos a,#sidebar_uebersicht li,.toggleLink a").hover(function(){
$(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
},function(){
$(this).fadeTo("fast", 0.8); // This should set the opacity back to 60% on mouseout
});
});

/*



$(document).ready(function(){

	$(".login_slide_close,.login_slide_open").click(function(){
		$("#toplogin_panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	 
});

$(document).ready(function(){

	$(".portfolio_slide_close,.portfolio_slide_open").click(function(){
		$("#portfolio_slide_panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	 
});



*/



/******************************

Accordion

******************************/
$(document).ready(function(){
	$(".news_content:not(:first)").hide();
	$(".news_content:first").show();
	$(".news_titel a").click(function()
	{
		$(".news_content").slideUp("fast");
		$(this).parent(".news_titel").next(".news_content").slideDown("normal");
		return false;
		 });
	  });
	  
	
$(document).ready(function(){
	$(".informationsbox_gross_content_more:not(:first)").hide();
	$(".informationsbox_gross_content_more:first").show();
	$(".informationsbox_gross_content a").click(function()
	{
		$(".informationsbox_gross_content_more").slideUp("fast");
		$(this).parent(".informationsbox_gross_content").next(".informationsbox_gross_content_more").slideDown("normal");
		return false;
		 });
	  });

$(document).ready(function(){
	$(".impressum_content:not(:first)").hide();
	$(".impressum_content:first").show();
	$(".impressum_titel a").click(function()
	{
		$(".impressum_content").slideUp("fast");
		$(this).parent(".impressum_titel").next(".impressum_content").slideDown("normal");
		return false;
		 });
	  });

$(document).ready(function(){
	$(".jobs_content:not(:first)").hide();
	$(".jobs_content:first").show();
	$(".jobs_titel a").click(function()
	{
		$(".jobs_content").slideUp("fast");
		$(this).parent(".jobs_titel").next(".jobs_content").slideDown("normal");
		return false;
		 });
	  });

/******************************

Slides

******************************/


//
// Foto
//

// this tells jquery to run the function below once the DOM is ready
$(document).ready(function() {

// choose text for the show/hide link - can contain HTML (e.g. an image)
var showText_fotos='.weitere Fotos einblenden';
var hideText_fotos='.weitere Fotos ausblenden';

// append show/hide links to the element directly preceding the element with a class of "toggle"
$('.toggle_fotos').prev().append(' <a href="#" class="toggleLink_fotos">'+showText_fotos+'</a>');

// hide all of the elements with a class of 'toggle'
$('.toggle_fotos').hide();

// capture clicks on the toggle links
$('a.toggleLink_fotos').click(function() {

// change the link depending on whether the element is shown or hidden
$(this).html ($(this).html()==hideText_fotos ? showText_fotos : hideText_fotos);

// toggle the display - uncomment the next line for a basic "accordion" style
//$('.toggle_container').hide();$('a.toggleLink').html(showText_container);
$(this).parent().next('.toggle_fotos').slideToggle('normal');

// return false so any link destination 2is not followed
return false;

});
});


//
// Service
//

// this tells jquery to run the function below once the DOM is ready
$(document).ready(function() {

// choose text for the show/hide link - can contain HTML (e.g. an image)
var showText_container='.mehr Informationen';
var hideText_container='.Informationen ausblenden';

// append show/hide links to the element directly preceding the element with a class of "toggle"
$('.toggle_container').prev().append(' <a href="#" class="toggleLink_container">'+showText_container+'</a>');

// hide all of the elements with a class of 'toggle'
$('.toggle_container').hide();

// capture clicks on the toggle links
$('a.toggleLink_container').click(function() {

// change the link depending on whether the element is shown or hidden
$(this).html ($(this).html()==hideText_container ? showText_container : hideText_container);

// toggle the display - uncomment the next line for a basic "accordion" style
//$('.toggle_container').hide();$('a.toggleLink').html(showText_container);
$(this).parent().next('.toggle_container').slideToggle('normal');

// return false so any link destination 2is not followed
return false;

});
});

//
// Loginpanel
//

// this tells jquery to run the function below once the DOM is ready
$(document).ready(function() {

// choose text for the show/hide link - can contain HTML (e.g. an image)
var showText_panel='Kundenlogin';
var hideText_panel='Login schliessen';

// append show/hide links to the element directly preceding the element with a class of "toggle"
$('.toplogin_toggle').append(' <a href="#" class="toggleLink_panel">'+showText_panel+'</a>');

// hide all of the elements with a class of 'toggle'
$('#toplogin_panel').hide();

// capture clicks on the toggle links
$('a.toggleLink_panel').click(function() {

// change the link depending on whether the element is shown or hidden
$(this).html ($(this).html()==hideText_panel ? showText_panel : hideText_panel);

// toggle the display - uncomment the next line for a basic "accordion" style
//$('.toggle_container').hide();$('a.toggleLink').html(showText_container);
$('#toplogin_panel').slideToggle('slow');

// return false so any link destination 2is not followed
return false;

});
});


//
// Smooooooothscroll
//

$(function(){

    $('a[href*=#]').click(function() {
    
    
        
            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;
                
            }
            
        
        
    });
    
});
