(function($) {

//
// Serviceslide
//

// 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;

});
});

// fade effekt

$(document).ready(function(){
$("#copyright img, .thumbs li").fadeTo("fast", 0.5);

$("#copyright img, .thumbs li").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
});
})

//menu

$(function () {
        if ($.browser.msie && $.browser.version < 7) return;
        
        $('#header_navigation li')
           
            .find('a')
            .append('<span class="hover" />').each(function () {
                    var $span = $('> span.hover', this).css('opacity', 0);
                    $(this).hover(function () {
                        // on hover
                        $span.stop().fadeTo("slow", 1);
                    }, function () {
                        // off hover
                        $span.stop().fadeTo("slow", 0);
                    });
                });
                
    });
	})(jQuery);

//
//$(document).ready(function(){
//$(".informationsbox_gross_content_more:not(:first)").hide();
//$(".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;
//});
//}); 




