// JavaScript Document
// Toggle
$(document).ready( function() {
    $('.toggle_container').hide();
    $('.trigger_active').next('.toggle_container').show();
    $('.trigger').click( function() {
        if ( $(this).hasClass('trigger_active') ) {
            $(this).next('.toggle_container').slideToggle('slow');
            $(this).removeClass('trigger_active');
        } else {
            $('.trigger_active').next('.toggle_container').slideToggle('slow');
            $('.trigger_active').removeClass('trigger_active');
            $(this).next('.toggle_container').slideToggle('slow');
            $(this).addClass('trigger_active');
        };
    return false;
    });
});
// Slider
$().ready(function() {
    $('.slider ul').kwicks({max: 310, duration: 300, easing: 'easeOutQuad'});
    });
// Aktuelles Fancy
$(document).ready(function() {
    $(".various2").fancybox();
    $("a[rel=imagefilm]").fancybox({
        'padding'            : 0,
        'autoScale'            : false,
        'transitionIn'        : 'none',
        'transitionOut'        : 'none',
        'width': 475,  
        'type': 'swf', 
        'swf': {'wmode': 'opaque', 'allowfullscreen': 'true', 'allowscriptaccess': 'always'}
    });
    $("a[rel=imagefilm2]").fancybox({
        'padding'            : 0,
        'autoScale'            : false,
        'transitionIn'        : 'none',
        'transitionOut'        : 'none',
        'width': 475,  
        'type': 'swf', 
        'swf': {'wmode': 'opaque', 'allowfullscreen': 'true', 'allowscriptaccess': 'always'}
    });
    $(".video").fancybox({
                'autoDimensions'    : true,
                'autoScale'            : true,
                'height'            : '50%',
                'width'                : '50%',
                'transitionIn'        : 'elastic',
                'transitionOut'        : 'elastic',
                'type'                : 'iframe'
                });
});
