function lbs_infoboxVisibility(){
    var lbs_infoBox_height = document.getElementById("lightboxesImageInfoText").clientHeight;
    if(lbs_infoboxShowing){
        if(lbs_previewMode && lbs_progressMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(90+lbs_infoBox_height)+"px)";
            document.getElementById('lightboxesPreviewGallery').style.bottom = (30+lbs_infoBox_height)+"px";
            document.getElementById('lightboxesProgressBar').style.bottom = (20+lbs_infoBox_height)+"px";
        }else if(lbs_progressMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(30+lbs_infoBox_height)+"px)";
            document.getElementById('lightboxesProgressBar').style.bottom = (20+lbs_infoBox_height)+"px";
        }else if(lbs_previewMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(80+lbs_infoBox_height)+"px)";
            document.getElementById('lightboxesPreviewGallery').style.bottom = (20+lbs_infoBox_height)+"px";
        }
        
        document.getElementById("lightboxesImageInfo").style.bottom = "0px";
    } else {
        if(lbs_previewMode && lbs_progressMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(90)+"px)";
            document.getElementById('lightboxesPreviewGallery').style.bottom = (30)+"px";
            document.getElementById('lightboxesProgressBar').style.bottom = (20)+"px";
        }else if(lbs_progressMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(30)+"px)";
            document.getElementById('lightboxesProgressBar').style.bottom = (20)+"px";
        }else if(lbs_previewMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(80)+"px)";
            document.getElementById('lightboxesPreviewGallery').style.bottom = (20)+"px";
        }
        document.getElementById("lightboxesImageInfo").style.bottom = -lbs_infoBox_height+"px";
    }
}
//handles the shift of all elements according to the infobox visibility
handles the shift of all elements according to the infobox visibility
handles the shift of all elements according to the infobox visibility
function lbs_infoboxVisibility(){
    var lbs_infoBox_height = document.getElementById("lightboxesImageInfoText").clientHeight;
    if(lbs_infoboxShowing){
        if(lbs_previewMode && lbs_progressMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(90+lbs_infoBox_height)+"px)";
            document.getElementById('lightboxesPreviewGallery').style.bottom = (30+lbs_infoBox_height)+"px";
            document.getElementById('lightboxesProgressBar').style.bottom = (20+lbs_infoBox_height)+"px";
        }else if(lbs_progressMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(30+lbs_infoBox_height)+"px)";
            document.getElementById('lightboxesProgressBar').style.bottom = (20+lbs_infoBox_height)+"px";
        }else if(lbs_previewMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(80+lbs_infoBox_height)+"px)";
            document.getElementById('lightboxesPreviewGallery').style.bottom = (20+lbs_infoBox_height)+"px";
        }
        document.getElementById("lightboxesImageInfo").style.bottom = "0px";
    } else {
        if(lbs_previewMode && lbs_progressMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(90)+"px)";
            document.getElementById('lightboxesPreviewGallery').style.bottom = (30)+"px";
            document.getElementById('lightboxesProgressBar').style.bottom = (20)+"px";
        }else if(lbs_progressMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(30)+"px)";
            document.getElementById('lightboxesProgressBar').style.bottom = (20)+"px";
        }else if(lbs_previewMode){
            document.getElementById('lightboxesImgWrapper').style.height = "calc(90% - "+(80)+"px)";
            document.getElementById('lightboxesPreviewGallery').style.bottom = (20)+"px";
        }
        document.getElementById("lightboxesImageInfo").style.bottom = -lbs_infoBox_height+"px";
    }
}
function lbs_infoboxVisibility ( ) { var lbs_infoBox_height = document . getElementById ( "lightboxesImageInfoText" ) . clientHeight ; if ( lbs_infoboxShowing ) { if ( lbs_previewMode && lbs_progressMode ) { document . getElementById ( 'lightboxesImgWrapper' ) . style . height = "calc(90% - " + ( 90 + lbs_infoBox_height ) + "px)" ; document . getElementById ( 'lightboxesPreviewGallery' ) . style . bottom = ( 30 + lbs_infoBox_height ) + "px" ; document . getElementById ( 'lightboxesProgressBar' ) . style . bottom = ( 20 + lbs_infoBox_height ) + "px" ; } else if ( lbs_progressMode ) { document . getElementById ( 'lightboxesImgWrapper' ) . style . height = "calc(90% - " + ( 30 + lbs_infoBox_height ) + "px)" ; document . getElementById ( 'lightboxesProgressBar' ) . style . bottom = ( 20 + lbs_infoBox_height ) + "px" ; } else if ( lbs_previewMode ) { document . getElementById ( 'lightboxesImgWrapper' ) . style . height = "calc(90% - " + ( 80 + lbs_infoBox_height ) + "px)" ; document . getElementById ( 'lightboxesPreviewGallery' ) . style . bottom = ( 20 + lbs_infoBox_height ) + "px" ; } document . getElementById ( "lightboxesImageInfo" ) . style . bottom = "0px" ; } else { if ( lbs_previewMode && lbs_progressMode ) { document . getElementById ( 'lightboxesImgWrapper' ) . style . height = "calc(90% - " + ( 90 ) + "px)" ; document . getElementById ( 'lightboxesPreviewGallery' ) . style . bottom = ( 30 ) + "px" ; document . getElementById ( 'lightboxesProgressBar' ) . style . bottom = ( 20 ) + "px" ; } else if ( lbs_progressMode ) { document . getElementById ( 'lightboxesImgWrapper' ) . style . height = "calc(90% - " + ( 30 ) + "px)" ; document . getElementById ( 'lightboxesProgressBar' ) . style . bottom = ( 20 ) + "px" ; } else if ( lbs_previewMode ) { document . getElementById ( 'lightboxesImgWrapper' ) . style . height = "calc(90% - " + ( 80 ) + "px)" ; document . getElementById ( 'lightboxesPreviewGallery' ) . style . bottom = ( 20 ) + "px" ; } document . getElementById ( "lightboxesImageInfo" ) . style . bottom = - lbs_infoBox_height + "px" ; } }
handles the shift of all elements according to the infobox visibility
handles the shift of all elements according to the infobox visibility