$(document).ready(function() {

    $('a.rules-opener').click(function() {
        window.open(this.href, 'bsl_rules', 'toolbar=no,location=no,scrollbars=yes,directories=no,width=825,height=660');
        return false;
    });

    $('a.popup-close').click(function() {
        window.close();
        return false;
    });
    
    $('table.contentframework tbody.contentframework-stripedtable > tr').each(function(i) {
        if (i % 2 == 0) {
            $(this).addClass('contentframework-altrow');
        }
        $(this).hover(function() {
            $(this).addClass('contentframework-hoveredrow');
        }, function() {
            $(this).removeClass('contentframework-hoveredrow');
        });
    });

});
