function lbs_slide(direction) {
    document.getElementById("lightboxesLoading").style.display = "block";
    if(direction == "forward" && lbs_imgIndex < lbs_imgCounter-1){
        lbs_imgIndex++;
        
    } else if(direction == "back" && lbs_imgIndex > 0){
        lbs_imgIndex--;
        
    }
    lbs_swap();
}
//slider function used with the buttons, changes displayed image index, calls swap method and corrects buttons
slider function used with the buttons, changes displayed image index, calls swap method and corrects buttons
slider function used with the buttons changes displayed image index calls swap method and corrects buttons
function lbs_slide(direction) {
    document.getElementById("lightboxesLoading").style.display = "block";
    if(direction == "forward" && lbs_imgIndex < lbs_imgCounter-1){
        lbs_imgIndex++;
    } else if(direction == "back" && lbs_imgIndex > 0){
        lbs_imgIndex--;
    }
    lbs_swap();
}
function lbs_slide ( direction ) { document . getElementById ( "lightboxesLoading" ) . style . display = "block" ; if ( direction == "forward" && lbs_imgIndex < lbs_imgCounter - 1 ) { lbs_imgIndex ++ ; } else if ( direction == "back" && lbs_imgIndex > 0 ) { lbs_imgIndex -- ; } lbs_swap ( ) ; }
slider function used with the buttons, changes displayed image index, calls swap method and corrects buttons
slider function used with the buttons changes displayed image index calls swap method and corrects buttons