/*
 * Load when dom is ready.
 */
$(document).ready(function () {
    //$('.activity-stream section.respond').hide();
    $('a.view-comment-form').live('click', function (e) {
        // set a respond section we are working with
        var comment = $(this).parents('article').find('.respond');

        // make sure we dont stop links like blog comments
        if (comment.length > 0) {
            e.preventDefault();
            // hide all open comment forms
            $('section.respond').hide();
            // toggle bugs out due to request.js hiding the form. so lets use show() instead
            comment.show();
            // and focus on the comment box
            comment.find('textarea').focus();
        }
    });
});

