function photo_album (photo) {
var photos_num=26;
var page_type='bio';
var photo_current=parseInt(document.getElementById("photo_album_slider").getAttribute("data-photo_album_current"));
if (photo=='prev' && photo_current==1) photo=photos_num;
else if (photo=='prev' && photo_current>1) photo=photo_current-1;
else if (photo=='next' && photo_current==photos_num) photo=1;
else if (photo=='next' && photo_current0 && photo<=photos_num) {
photo_current_div_id='photo_album_'+photo_current;
document.getElementById(photo_current_div_id).style.display='none';
photo_div_id='photo_album_'+photo;
photo_element=document.getElementById(photo_div_id);
if (photo_element.hasAttribute("data-src")==true) {
photo_data_src=photo_element.getAttribute("data-src");
photo_element.srcset=photo_data_src;
photo_element.removeAttribute("data-src");
}
document.getElementById(photo_div_id).style.display = 'block';
document.getElementById("photo_album_slider").setAttribute("data-photo_album_current", photo);
if (page_type!=='bio') {
photo_current_preview_div_id='photo_preview_'+photo_current;
document.getElementById(photo_current_preview_div_id).className='cursor_pointer';
photo_preview_div_id='photo_preview_'+photo;
document.getElementById(photo_preview_div_id).className='active';
}
}
}
document.getElementById("photo_album_1").srcset=document.getElementById("photo_album_1").getAttribute("data-src");
document.getElementById("photo_album_1").style.width="auto";
document.getElementById("photo_album_1").style.height="auto";