$(document).ready(function() {

            var slide_down = 1200;
            var slide_up = 600;
            var sliderHeight = 30;

            setTimeout(function() {
            $('#main_content_breit_all div.mieter_wrapper').each(function(){
                $(this).attr('style','display: block; overflow: hidden;border: 0px solid red;');
                  var _height;
                  //alert($(this).height());
                  //alert($(this).find('div.mieter_data').height()+'-'+$(this).find('div.mieter_kurzinfo').height());
                  if( $(this).find('div.mieter_data').height() > $(this).find('div.mieter_kurzinfo').height()) _height = $(this).find('div.mieter_data').height();
                  else _height = $(this).find('div.mieter_kurzinfo').height();
		//$(this).find('object').attr('style','visibility: hidden;');
                if($(this).height() > sliderHeight+5)$(this).find('h3').prepend('<div class="fire_it"><img src="fileadmin/tpl_bilder/open.png"></div>');
                $(this).attr("box_h", _height+15);
                $(this).css("height", sliderHeight+'px');
            });
            }, 1000);

            $('.fire_it').live('click', function(){
                var p_el = $(this).parent('h3').parent('div').parent('div');
                var open_height = p_el.attr("box_h") + "px";
                p_el.animate({"height": open_height}, {duration: slide_down });
                setTimeout(function() {p_el.find('.video_object').attr('style','visibility: visible;');},slide_down);
                $(this).replaceWith('<div class="fire_it_close"><img src="fileadmin/tpl_bilder/close.png"></div>');
            });

            $('.fire_it_close').live('click', function(){
                var p_el = $(this).parent('h3').parent('div').parent('div');
                p_el.animate({"height": sliderHeight+'px'}, {duration: slide_up });
                p_el.find('.video_object').attr('style','visibility: hidden;');
                $(this).replaceWith('<div class="fire_it"><img src="fileadmin/tpl_bilder/open.png"></div>');
            });



  });
