jQuery(document).ready(function(){

    //Beteiligung/Geschaeftsmodell - Höhe der Div in Teaser anpassen
    var curr_height = 0;
    var curr_width = 0;

    jQuery('#animationcontent').each(function(e) {

        var hi = jQuery(this).height();
        if(typeof(hi) != "undefined") {
            if(hi > curr_height) {
                curr_height = hi;
            }
        }
        var wi = jQuery(this).width();
        if(typeof(wi) != "undefined") {
            if(wi > curr_width) {
                curr_width = wi;
            }
        }
    });
    if(curr_height > 0) {
        jQuery('#animationopacity').height(curr_height);
    }
    if(curr_width > 0) {
        jQuery('#animationopacity').width(curr_width);
    }
    
    if (jQuery('#animationdescwrapper').hasClass('k')) {
        if (jQuery('#animationdescwrapper').hasClass('de')){
            jQuery('#animationdescwrapper').click(function() {
                window.location="/de/berater/dr-matthias-kestler/";
            });
        } 
        if (jQuery('#animationdescwrapper').hasClass('en')){
            jQuery('#animationdescwrapper').click(function() {
                window.location="/en/berater/dr-matthias-kestler/";
            });
        } 
    }
      
});







