function lbs_infoboxDataUpdate(){
    var lbs_currPic = lbs_lightboxes[lbs_lightboxindex].getElementsByTagName('img')[lbs_imgIndex];
    if(lbs_currPic.getAttribute("lbs_infoboxTitle") != null){
        document.getElementById("lightboxesImageInfoHeadline").innerHTML = lbs_currPic.getAttribute("lbs_infoboxTitle");
    } else {
        document.getElementById("lightboxesImageInfoHeadline").innerHTML = lbs_currPic.getAttribute("src");
    }
    
    if(lbs_currPic.getAttribute("lbs_infoboxDesc") != null){
        document.getElementById("lightboxesImageInfoDescr").innerHTML = lbs_currPic.getAttribute("lbs_infoboxDesc");
    } else if(lbs_currPic.getAttribute("alt") != null){
        document.getElementById("lightboxesImageInfoDescr").innerHTML = lbs_currPic.getAttribute("alt");
    } else {
        document.getElementById("lightboxesImageInfoDescr").innerHTML = "";
    }
    
    var lbs_imageObject = new Image();
    lbs_imageObject.src = lbs_images[lbs_imgIndex];
    document.getElementById("lightboxesImageInfoSize").innerHTML =  lbs_imageObject.width+"x"+lbs_imageObject.height;
}
//reads in the data from the currently displayed picture and fills the infobox with it
reads in the data from the currently displayed picture and fills the infobox with it
reads in the data from the currently displayed picture and fills the infobox with it
function lbs_infoboxDataUpdate(){
    var lbs_currPic = lbs_lightboxes[lbs_lightboxindex].getElementsByTagName('img')[lbs_imgIndex];
    if(lbs_currPic.getAttribute("lbs_infoboxTitle") != null){
        document.getElementById("lightboxesImageInfoHeadline").innerHTML = lbs_currPic.getAttribute("lbs_infoboxTitle");
    } else {
        document.getElementById("lightboxesImageInfoHeadline").innerHTML = lbs_currPic.getAttribute("src");
    }
    if(lbs_currPic.getAttribute("lbs_infoboxDesc") != null){
        document.getElementById("lightboxesImageInfoDescr").innerHTML = lbs_currPic.getAttribute("lbs_infoboxDesc");
    } else if(lbs_currPic.getAttribute("alt") != null){
        document.getElementById("lightboxesImageInfoDescr").innerHTML = lbs_currPic.getAttribute("alt");
    } else {
        document.getElementById("lightboxesImageInfoDescr").innerHTML = "";
    }
    var lbs_imageObject = new Image();
    lbs_imageObject.src = lbs_images[lbs_imgIndex];
    document.getElementById("lightboxesImageInfoSize").innerHTML =  lbs_imageObject.width+"x"+lbs_imageObject.height;
}
function lbs_infoboxDataUpdate ( ) { var lbs_currPic = lbs_lightboxes [ lbs_lightboxindex ] . getElementsByTagName ( 'img' ) [ lbs_imgIndex ] ; if ( lbs_currPic . getAttribute ( "lbs_infoboxTitle" ) != null ) { document . getElementById ( "lightboxesImageInfoHeadline" ) . innerHTML = lbs_currPic . getAttribute ( "lbs_infoboxTitle" ) ; } else { document . getElementById ( "lightboxesImageInfoHeadline" ) . innerHTML = lbs_currPic . getAttribute ( "src" ) ; } if ( lbs_currPic . getAttribute ( "lbs_infoboxDesc" ) != null ) { document . getElementById ( "lightboxesImageInfoDescr" ) . innerHTML = lbs_currPic . getAttribute ( "lbs_infoboxDesc" ) ; } else if ( lbs_currPic . getAttribute ( "alt" ) != null ) { document . getElementById ( "lightboxesImageInfoDescr" ) . innerHTML = lbs_currPic . getAttribute ( "alt" ) ; } else { document . getElementById ( "lightboxesImageInfoDescr" ) . innerHTML = "" ; } var lbs_imageObject = new Image ( ) ; lbs_imageObject . src = lbs_images [ lbs_imgIndex ] ; document . getElementById ( "lightboxesImageInfoSize" ) . innerHTML = lbs_imageObject . width + "x" + lbs_imageObject . height ; }
reads in the data from the currently displayed picture and fills the infobox with it
reads in the data from the currently displayed picture and fills the infobox with it