
$(document).ready(function() {
    //$('#RSJtabcontainer').tabs();

    $('#RSJnews').newsTicker(4000);

    $('a.RSJpoptoggle').click(function() {
        var topPos = $(this).offset();
        $(this).parent('.RSJheading').siblings('.RSJpopform').css('top', (topPos.top + 3) + 'px').slideToggle('fast');
    });

    $('a.RSJpopclose').click(function() {
        $(this).parents('.RSJpopform').slideToggle('fast');
    });

    $("a.RSJprint").click(function() {
        window.print();
        return false;
    });

    $('#txtSearch').focus(function() {
        this.value = (this.value == this.defaultValue) ? '' : this.value;
    });

    $('#txtSearch').blur(function() {
        this.value = (this.value == '') ? this.defaultValue : this.value;
    });
});