function lbs_init() {
    for (var i = 0; i < lbs_lightboxes.length; i++){
        var lbs_pictures = lbs_lightboxes[i].getElementsByTagName('img');
        for(var j=0; j<lbs_pictures.length; j++){
            lbs_pictures[j].addEventListener("click", function(event){
                event.preventDefault();
                lbs_pose(event.target || event.srcElement);
            });
            lbs_pictures[j].setAttribute("lbs_lbx_index", i.toString());
            lbs_pictures[j].setAttribute("lbs_pic_index", j.toString());
        }
    }
}
//inits the lightboxes and adds tags needed
inits the lightboxes and adds tags needed
inits the lightboxes and adds tags needed
function lbs_init() {
    for (var i = 0; i < lbs_lightboxes.length; i++){
        var lbs_pictures = lbs_lightboxes[i].getElementsByTagName('img');
        for(var j=0; j<lbs_pictures.length; j++){
            lbs_pictures[j].addEventListener("click", function(event){
                event.preventDefault();
                lbs_pose(event.target || event.srcElement);
            });
            lbs_pictures[j].setAttribute("lbs_lbx_index", i.toString());
            lbs_pictures[j].setAttribute("lbs_pic_index", j.toString());
        }
    }
}
function lbs_init ( ) { for ( var i = 0 ; i < lbs_lightboxes . length ; i ++ ) { var lbs_pictures = lbs_lightboxes [ i ] . getElementsByTagName ( 'img' ) ; for ( var j = 0 ; j < lbs_pictures . length ; j ++ ) { lbs_pictures [ j ] . addEventListener ( "click" , function ( event ) { event . preventDefault ( ) ; lbs_pose ( event . target || event . srcElement ) ; } ) ; lbs_pictures [ j ] . setAttribute ( "lbs_lbx_index" , i . toString ( ) ) ; lbs_pictures [ j ] . setAttribute ( "lbs_pic_index" , j . toString ( ) ) ; } } }
inits the lightboxes and adds tags needed
inits the lightboxes and adds tags needed