var photoNum24=photoArray24.length; var counter24=0; var currentheight24=photoArray24[counter24][2]; var currentwidth24=photoArray24[counter24][1]; var currentcaption24=photoArray24[counter24][3]; var currentlink24=photoArray24[counter24][4]; var speed24=500; var transition_busy24=0; function prevPhoto24(number){ if(transition_busy24==0){ if(number==null){ counter24-- } else{ counter24=(number-1) }; if(counter24<0){ counter24=photoNum24-1 }; loadPhoto24(counter24); } } function nextPhoto24(number){ if(transition_busy24==0){ if(number==null){ counter24++ } else{ counter24=(number-1) }; if(counter24==photoNum24){ counter24=0 }; loadPhoto24(counter24); } } function loadPhoto24(){ if(document.getElementById('mooshow_navigation24')){ navigation24(); } hide_elements24(); document.getElementById('mooshow_loading24').style.display='inline'; imgPreloader24=new Image(); imgPreloader24.onload=function(){ document.getElementById('mooshow_loading24').style.display='none'; new Fx.Style('mooshow_image24','opacity').set(0);resize24(); } imgPreloader24.src=photoArray24[counter24][0]; } function resize24(){ currentwidth24=document.getElementById('mooshow_image24').width; currentheight24=document.getElementById('mooshow_image24').height; resizeContatinerHeight24.start(currentheight24,photoArray24[counter24][2]); resizeContatinerWidth24.start(currentwidth24,photoArray24[counter24][1]); } function hide_elements24(){ if(document.getElementById('mooshow_caption24')){ document.getElementById('mooshow_caption24').innerHTML=' '; } document.getElementById('mooshow_prev24').style.display='none'; document.getElementById('mooshow_next24').style.display='none'; } function switch_photo24(){ document.getElementById('mooshow_image24').src=photoArray24[counter24][0]; document.getElementById('mooshow_image24').alt=photoArray24[counter24][3]; document.getElementById('mooshow_image24').width=photoArray24[counter24][1]; document.getElementById('mooshow_image24').height=photoArray24[counter24][2]; document.getElementById('mooshow_image24').name=counter24; if(document.getElementById('mooshow_caption24')){ caption24(); } show_elements24(); } function show_elements24(){ fade_in24('mooshow_image24',speed24); if(document.getElementById('mooshow_caption24')){ fade_in24('mooshow_caption24',speed24); } } function show_nav_overlay24(){ document.getElementById('mooshow_prev24').style.display='inline'; document.getElementById('mooshow_next24').style.display='inline'; } function navigation24(){ document.getElementById('mooshow_navigation24').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation24').innerHTML=content+' '+(i+1)+' '; } if(i