$(document).ready(function(){
    openBlock = $(".stretcher:first");
    openWidth = 727;
    closeWidth = 41;	

    $("#accordion .stretcher").click(function(){
        $(openBlock).animate({width: closeWidth+"px"}, { queue:false, duration:400 });
		$(this).animate({width: openWidth+"px"}, { queue:false, duration:400});

		var handles = $(openBlock).find(".tab");
		$(handles[0]).hide();
		$(handles[1]).show();
		
		handles = $(this).find(".tab");
		$(handles[1]).hide();
		$(handles[0]).show();

		openBlock = this;
      }
    );
});

