jQuery(document).ready( function($) {
    $(".mirrorsBoxSwitch").click(function () {
        $("#box_" + this.id).toggle("fast");
        if ($(this).attr('src') == '/media/gfx/plustree.jpg')
            $(this).attr('src', '/media/gfx/minustree.jpg')
        else
            $(this).attr('src', '/media/gfx/plustree.jpg')
    });
});

function addTag(snr, tnr)
{
    $.get("/ajax/addTag/" + snr + "/" + tnr, {}, function() {
        location.reload();
    });
}

function toggleMirrorDetails()
{
    $('.mirrorDetail').each(function() {
        $(this).toggle();
    });
    return false;
}