var photoNum20=photoArray20.length; var counter20=0; var currentheight20=photoArray20[counter20][2]; var currentwidth20=photoArray20[counter20][1]; var currentcaption20=photoArray20[counter20][3]; var currentlink20=photoArray20[counter20][4]; var speed20=500; var transition_busy20=0; function prevPhoto20(number){ if(transition_busy20==0){ if(number==null){ counter20-- } else{ counter20=(number-1) }; if(counter20<0){ counter20=photoNum20-1 }; loadPhoto20(counter20); } } function nextPhoto20(number){ if(transition_busy20==0){ if(number==null){ counter20++ } else{ counter20=(number-1) }; if(counter20==photoNum20){ counter20=0 }; loadPhoto20(counter20); } } function loadPhoto20(){ if(document.getElementById('mooshow_navigation20')){ navigation20(); } hide_elements20(); document.getElementById('mooshow_loading20').style.display='inline'; imgPreloader20=new Image(); imgPreloader20.onload=function(){ document.getElementById('mooshow_loading20').style.display='none'; new Fx.Style('mooshow_image20','opacity').set(0);resize20(); } imgPreloader20.src=photoArray20[counter20][0]; } function resize20(){ currentwidth20=document.getElementById('mooshow_image20').width; currentheight20=document.getElementById('mooshow_image20').height; resizeContatinerHeight20.start(currentheight20,photoArray20[counter20][2]); resizeContatinerWidth20.start(currentwidth20,photoArray20[counter20][1]); } function hide_elements20(){ if(document.getElementById('mooshow_caption20')){ document.getElementById('mooshow_caption20').innerHTML=' '; } document.getElementById('mooshow_prev20').style.display='none'; document.getElementById('mooshow_next20').style.display='none'; } function switch_photo20(){ document.getElementById('mooshow_image20').src=photoArray20[counter20][0]; document.getElementById('mooshow_image20').alt=photoArray20[counter20][3]; document.getElementById('mooshow_image20').width=photoArray20[counter20][1]; document.getElementById('mooshow_image20').height=photoArray20[counter20][2]; document.getElementById('mooshow_image20').name=counter20; if(document.getElementById('mooshow_caption20')){ caption20(); } show_elements20(); } function show_elements20(){ fade_in20('mooshow_image20',speed20); if(document.getElementById('mooshow_caption20')){ fade_in20('mooshow_caption20',speed20); } } function show_nav_overlay20(){ document.getElementById('mooshow_prev20').style.display='inline'; document.getElementById('mooshow_next20').style.display='inline'; } function navigation20(){ document.getElementById('mooshow_navigation20').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation20').innerHTML=content+' '+(i+1)+' '; } if(i