var count_scroll = -1;

function publications_slide(step,nsc) {

    jQuery('#slide_right,#slide_left').show();
    
    if(count_scroll == -1)
    	count_scroll = parseInt(nsc/6);
    
    count_scroll -= step;
    

    
    if( count_scroll == 0  ) { jQuery('#slide_right').hide(); }
    if( count_scroll == parseInt(nsc/6) ) { jQuery('#slide_left').hide(); }

    jQuery('#books_container').animate({scrollLeft: '+=' + step * 1008 + 'px'}, 1000);

}

function related_slide(step,nsc) {

    jQuery('#slide_right,#slide_left').show();
    
    if(count_scroll == -1)
    	count_scroll = parseInt(nsc/4);
    
    count_scroll -= step;
    

    
    if( count_scroll == 0  ) { jQuery('#slide_right').hide(); }
    if( count_scroll == parseInt(nsc/4) ) { jQuery('#slide_left').hide(); }

    jQuery('#books_container').animate({scrollLeft: '+=' + step * 853 + 'px'}, 1000);

}

