function sel_job_filter(link_id, anim_duration){
    link_id = link_id.replace('-link','');
    
    var cur_sect = $('#job-list-arena .sel');
    var cur_link = $('#job-search-methods .sel');
    var new_sect = $('#' + link_id + '-sect');
    var new_link = $('#' + link_id + '-link');
    
    // assert all elements exist and 
    // the link is not already selected
    if(!(cur_sect && cur_link && new_sect && new_link && cur_sect[0] != new_sect[0]))
        return;
    
    // set proper class-names for all elements
    cur_link.removeClass('sel');
    cur_sect.removeClass('sel');
    new_link.addClass('sel');
    new_sect.addClass('sel');
    
    // toggle between sections
    cur_sect.slideUp(anim_duration?anim_duration:'slow');
    new_sect.slideDown(anim_duration?anim_duration:'slow');
}
// called directly by the filtering links
called directly by the filtering links
called directly by the filtering links
function sel_job_filter(link_id, anim_duration){
    link_id = link_id.replace('-link','');
    var cur_sect = $('#job-list-arena .sel');
    var cur_link = $('#job-search-methods .sel');
    var new_sect = $('#' + link_id + '-sect');
    var new_link = $('#' + link_id + '-link');
    if(!(cur_sect && cur_link && new_sect && new_link && cur_sect[0] != new_sect[0]))
        return;
    cur_link.removeClass('sel');
    cur_sect.removeClass('sel');
    new_link.addClass('sel');
    new_sect.addClass('sel');
    cur_sect.slideUp(anim_duration?anim_duration:'slow');
    new_sect.slideDown(anim_duration?anim_duration:'slow');
}
function sel_job_filter ( link_id , anim_duration ) { link_id = link_id . replace ( '-link' , '' ) ; var cur_sect = $ ( '#job-list-arena .sel' ) ; var cur_link = $ ( '#job-search-methods .sel' ) ; var new_sect = $ ( '#' + link_id + '-sect' ) ; var new_link = $ ( '#' + link_id + '-link' ) ; if ( ! ( cur_sect && cur_link && new_sect && new_link && cur_sect [ 0 ] != new_sect [ 0 ] ) ) return ; cur_link . removeClass ( 'sel' ) ; cur_sect . removeClass ( 'sel' ) ; new_link . addClass ( 'sel' ) ; new_sect . addClass ( 'sel' ) ; cur_sect . slideUp ( anim_duration ? anim_duration : 'slow' ) ; new_sect . slideDown ( anim_duration ? anim_duration : 'slow' ) ; }
called directly by the filtering links
called directly by the filtering links
// assert all elements exist and  // the link is not already selected // set proper class-names for all elements // toggle between sections