var lg_titles = {"prev":"Previous Image","next":"Next Image","toogle-thumb":"Show/Hide Thumbnails","counter":"Image of Total","properties":"File Properties","actual-size":"Actual Size","zoom-in":"Zoom In","zoom-out":"Zoom Out","rotate":"Rotate","autoplay-button":"Slideshow","fullscreen":"Fullscreen","download":"Download Image","close":"Close","thumb-item":"Preview. Click to view this image.","sub-html":"File Information"}; function lg_onafteropen() { $('body').css('overflow', 'hidden'); for (var title in lg_titles) { $('.lg-' + title + ',#lg-' + title).prop('title', lg_titles[title]); } } function lg_oncloseafter() { $('body').css('overflow', 'auto'); }