<script>
$( document ).ready(function() {
$(".t585__header").addClass('itsclose');
$(".t585__header").click(function() {
let elem = $(this);
setTimeout(function () {
elem.removeClass("itsclose");
$(".t585__header.t585__opened.itsclose").click();
elem.addClass("itsclose");
if (elem.hasClass('t585__opened')) {
$('.t585__header').not(elem).slideUp(500);
}else{$('.t585__header').slideDown(500);
};
}, 100);
});
});
</script>