function lbs_getSource() {
    var lbs_pictures = lbs_lightboxes[lbs_lightboxindex].getElementsByTagName('img');
    var lbs_images = Array();
    for(var i=0; i<lbs_pictures.length; i++){
        var lbs_curr_pic = lbs_pictures[i];
        if(lbs_altHighResSourceMode){
            if(lbs_curr_pic.parentElement.tagName == 'A'){
                var lbs_source = lbs_curr_pic.parentElement.getAttribute('href');
                if(lbs_source != null && lbs_source != ""){    
                    lbs_images.push(lbs_source); 
                } else {
                    lbs_images.push(lbs_curr_pic.getAttribute('src'));  
                }
            } else {
                lbs_images.push(lbs_curr_pic.getAttribute('src'));  
            }
        } else {
            if(lbs_curr_pic.getAttribute('lbs_high_res_src') == null){
                lbs_images.push(lbs_curr_pic.getAttribute('src'));  
            } else {
                lbs_images.push(lbs_curr_pic.getAttribute('lbs_high_res_src'));
            }
        }
    }
    return lbs_images;
}
//gets the sources of all images within the given lightbox
gets the sources of all images within the given lightbox
gets the sources of all images within the given lightbox
function lbs_getSource() {
    var lbs_pictures = lbs_lightboxes[lbs_lightboxindex].getElementsByTagName('img');
    var lbs_images = Array();
    for(var i=0; i<lbs_pictures.length; i++){
        var lbs_curr_pic = lbs_pictures[i];
        if(lbs_altHighResSourceMode){
            if(lbs_curr_pic.parentElement.tagName == 'A'){
                var lbs_source = lbs_curr_pic.parentElement.getAttribute('href');
                if(lbs_source != null && lbs_source != ""){    
                    lbs_images.push(lbs_source); 
                } else {
                    lbs_images.push(lbs_curr_pic.getAttribute('src'));  
                }
            } else {
                lbs_images.push(lbs_curr_pic.getAttribute('src'));  
            }
        } else {
            if(lbs_curr_pic.getAttribute('lbs_high_res_src') == null){
                lbs_images.push(lbs_curr_pic.getAttribute('src'));  
            } else {
                lbs_images.push(lbs_curr_pic.getAttribute('lbs_high_res_src'));
            }
        }
    }
    return lbs_images;
}
function lbs_getSource ( ) { var lbs_pictures = lbs_lightboxes [ lbs_lightboxindex ] . getElementsByTagName ( 'img' ) ; var lbs_images = Array ( ) ; for ( var i = 0 ; i < lbs_pictures . length ; i ++ ) { var lbs_curr_pic = lbs_pictures [ i ] ; if ( lbs_altHighResSourceMode ) { if ( lbs_curr_pic . parentElement . tagName == 'A' ) { var lbs_source = lbs_curr_pic . parentElement . getAttribute ( 'href' ) ; if ( lbs_source != null && lbs_source != "" ) { lbs_images . push ( lbs_source ) ; } else { lbs_images . push ( lbs_curr_pic . getAttribute ( 'src' ) ) ; } } else { lbs_images . push ( lbs_curr_pic . getAttribute ( 'src' ) ) ; } } else { if ( lbs_curr_pic . getAttribute ( 'lbs_high_res_src' ) == null ) { lbs_images . push ( lbs_curr_pic . getAttribute ( 'src' ) ) ; } else { lbs_images . push ( lbs_curr_pic . getAttribute ( 'lbs_high_res_src' ) ) ; } } } return lbs_images ; }
gets the sources of all images within the given lightbox
gets the sources of all images within the given lightbox