var photoNum22=photoArray22.length; var counter22=0; var currentheight22=photoArray22[counter22][2]; var currentwidth22=photoArray22[counter22][1]; var currentcaption22=photoArray22[counter22][3]; var currentlink22=photoArray22[counter22][4]; var speed22=500; var transition_busy22=0; function prevPhoto22(number){ if(transition_busy22==0){ if(number==null){ counter22-- } else{ counter22=(number-1) }; if(counter22<0){ counter22=photoNum22-1 }; loadPhoto22(counter22); } } function nextPhoto22(number){ if(transition_busy22==0){ if(number==null){ counter22++ } else{ counter22=(number-1) }; if(counter22==photoNum22){ counter22=0 }; loadPhoto22(counter22); } } function loadPhoto22(){ if(document.getElementById('mooshow_navigation22')){ navigation22(); } hide_elements22(); document.getElementById('mooshow_loading22').style.display='inline'; imgPreloader22=new Image(); imgPreloader22.onload=function(){ document.getElementById('mooshow_loading22').style.display='none'; new Fx.Style('mooshow_image22','opacity').set(0);resize22(); } imgPreloader22.src=photoArray22[counter22][0]; } function resize22(){ currentwidth22=document.getElementById('mooshow_image22').width; currentheight22=document.getElementById('mooshow_image22').height; resizeContatinerHeight22.start(currentheight22,photoArray22[counter22][2]); resizeContatinerWidth22.start(currentwidth22,photoArray22[counter22][1]); } function hide_elements22(){ if(document.getElementById('mooshow_caption22')){ document.getElementById('mooshow_caption22').innerHTML=' '; } document.getElementById('mooshow_prev22').style.display='none'; document.getElementById('mooshow_next22').style.display='none'; } function switch_photo22(){ document.getElementById('mooshow_image22').src=photoArray22[counter22][0]; document.getElementById('mooshow_image22').alt=photoArray22[counter22][3]; document.getElementById('mooshow_image22').width=photoArray22[counter22][1]; document.getElementById('mooshow_image22').height=photoArray22[counter22][2]; document.getElementById('mooshow_image22').name=counter22; if(document.getElementById('mooshow_caption22')){ caption22(); } show_elements22(); } function show_elements22(){ fade_in22('mooshow_image22',speed22); if(document.getElementById('mooshow_caption22')){ fade_in22('mooshow_caption22',speed22); } } function show_nav_overlay22(){ document.getElementById('mooshow_prev22').style.display='inline'; document.getElementById('mooshow_next22').style.display='inline'; } function navigation22(){ document.getElementById('mooshow_navigation22').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation22').innerHTML=content+' '+(i+1)+' '; } if(i