/// <reference path="..\jquery-1.2.6.min-vsdoc.js" />
$(document).ready(function() {

    $(".why").click(function() {

        var me = $(this);
        var id = me.attr("id").replace(/why-/, "");
        var summary = $("#summary-" + id);

        if (summary.css("height") == "auto") {
            resetResults();
        } else {
            $.get("../../site-rule/description/" + id, null, function(responseText, textStatus) {

                resetResults();

                $('#info-' + id).html(responseText);
                $("#info-" + id).show();
                summary.css("cssText", "border: solid 2px #80B4F6 !important;");
                summary.css("height", "auto");
                summary.css("width", "848px");
                $("#info-" + id + " a").click(function() {
                    return true;
                });
            });
        }

        return false;
    });

    $("#hide").click(function() {
        $(".counter").hide("blind");
        return false;
    });

    $("#rerun").click(function() {
        id = $("#id").val();
        window.location.href = "/home/re-run/" + id;
        return false;
    });

});