jQuery(document).ready(function () {
    jQuery("div#quickReplyOptions").hide();
    jQuery("a#zm_qr").toggle(function () {
        jQuery("#quickReplyOptions").slideDown(500);
    }, function () {
        jQuery("#quickReplyOptions").slideUp(500);
    });
});
jQuery(function () {
    jQuery('#toTop').click(function () {
        jQuery('html,body').animate({
            scrollTop: 0
        }, 800);
    });
});
jQuery(document).ready(function () {
    jQuery(".bbc_code").resize(function () {
        jQuery(this).css({
            'max-height': '100em'
        });
    });
});
jQuery(document).ready(function () {
    jQuery("#file_uploader_button, #file_uploader_button1").mouseenter(function () {
        jQuery(this).css('background-image', 'url(ZM-Theme/bottombar/images/recent-posts-hover.png)');
    });
    jQuery("#file_uploader_button, #file_uploader_button1").mouseleave(function () {
        jQuery(this).css('background-image', 'url(ZM-Theme/bottombar/images/recent-posts.png)');
    });
    jQuery("#file_uploader_button2").mouseenter(function () {
        jQuery(this).css('background-image', 'url(ZM-Theme/bottombar/images/recent-comments-hover.png)');
    });
    jQuery("#file_uploader_button2").mouseleave(function () {
        jQuery(this).css('background-image', 'url(ZM-Theme/bottombar/images/recent-comments.png)');
    });
    jQuery("#top_downloads a:first").click(function () {
        if (jQuery(this).next(".subpanel").is(':visible')) {
            jQuery(this).next(".subpanel").hide();
            jQuery("#bottom-bar li a").removeClass('active');
        } else {
            jQuery(".subpanel").hide();
            jQuery(this).next(".subpanel").toggle();
            jQuery("#bottom-bar li a").removeClass('active');
            jQuery(this).toggleClass('active');
        }
        return false;
    });
});
