var photoNum23=photoArray23.length; var counter23=0; var currentheight23=photoArray23[counter23][2]; var currentwidth23=photoArray23[counter23][1]; var currentcaption23=photoArray23[counter23][3]; var currentlink23=photoArray23[counter23][4]; var speed23=500; var transition_busy23=0; function prevPhoto23(number){ if(transition_busy23==0){ if(number==null){ counter23-- } else{ counter23=(number-1) }; if(counter23<0){ counter23=photoNum23-1 }; loadPhoto23(counter23); } } function nextPhoto23(number){ if(transition_busy23==0){ if(number==null){ counter23++ } else{ counter23=(number-1) }; if(counter23==photoNum23){ counter23=0 }; loadPhoto23(counter23); } } function loadPhoto23(){ if(document.getElementById('mooshow_navigation23')){ navigation23(); } hide_elements23(); document.getElementById('mooshow_loading23').style.display='inline'; imgPreloader23=new Image(); imgPreloader23.onload=function(){ document.getElementById('mooshow_loading23').style.display='none'; new Fx.Style('mooshow_image23','opacity').set(0);resize23(); } imgPreloader23.src=photoArray23[counter23][0]; } function resize23(){ currentwidth23=document.getElementById('mooshow_image23').width; currentheight23=document.getElementById('mooshow_image23').height; resizeContatinerHeight23.start(currentheight23,photoArray23[counter23][2]); resizeContatinerWidth23.start(currentwidth23,photoArray23[counter23][1]); } function hide_elements23(){ if(document.getElementById('mooshow_caption23')){ document.getElementById('mooshow_caption23').innerHTML=' '; } document.getElementById('mooshow_prev23').style.display='none'; document.getElementById('mooshow_next23').style.display='none'; } function switch_photo23(){ document.getElementById('mooshow_image23').src=photoArray23[counter23][0]; document.getElementById('mooshow_image23').alt=photoArray23[counter23][3]; document.getElementById('mooshow_image23').width=photoArray23[counter23][1]; document.getElementById('mooshow_image23').height=photoArray23[counter23][2]; document.getElementById('mooshow_image23').name=counter23; if(document.getElementById('mooshow_caption23')){ caption23(); } show_elements23(); } function show_elements23(){ fade_in23('mooshow_image23',speed23); if(document.getElementById('mooshow_caption23')){ fade_in23('mooshow_caption23',speed23); } } function show_nav_overlay23(){ document.getElementById('mooshow_prev23').style.display='inline'; document.getElementById('mooshow_next23').style.display='inline'; } function navigation23(){ document.getElementById('mooshow_navigation23').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation23').innerHTML=content+' '+(i+1)+' '; } if(i