$(function(){
    $('a.print_link').click(function(){
        print();
        return false;
    });

    $('a.category_toggle').click(function(){
        $('div.toggle_inner').slideToggle('fast');
        return false;
    });
    $('a.content_toggle').click(function(){
        var inner_content;
        inner_content = $(this).attr('name')+'_inner';
        $('.'+inner_content).slideToggle();
        if ( $("em", this).text() == 'Hide'){
        $("em", this).text('Show');
        } else {
        $("em", this).text('Hide');
        }
        return false;
    });

    $("input:checkbox").click(function(){
        if($(this).attr('checked') == true){
            if($(this).attr('id') == "all_checkbox"){
                $('table.list tr').addClass('highlight');
                $('table.list tr td.checkbox input.checkbox').attr('checked', 'checked');
                $('table.list tr.list_space').removeClass('highlight');
                $('table.list tr td.last_row').parent('tr').removeClass('highlight');
            } else {
                $(this).parents("tr").addClass('highlight');
            }
        }else{
            if($(this).attr('id') == "all_checkbox"){
                $('table.list tr').removeClass('highlight');
                $('table.list tr td.checkbox input.checkbox').removeAttr('checked');
            } else {
                $(this).parents("tr").removeClass('highlight');
            }
        }
    });

    $('div.round_corner_bottom').corner("bottom 8px");
    $('.round_corner_top').corner("top 8px");
    $('div.round_corner_exltop').corner("bl 8px").corner("tr br 8px");
    $('h3.round_corner_top').corner("top 8px");
    $('div.mini_notification_box').corner("round 8px");
    $('div.boxtype3').corner('8px');
    $('.round_corner').corner('round 8px');
    $('div.boxtype1 div.inner').corner('bottom 8px');
});