var photoNum16=photoArray16.length; var counter16=0; var currentheight16=photoArray16[counter16][2]; var currentwidth16=photoArray16[counter16][1]; var currentcaption16=photoArray16[counter16][3]; var currentlink16=photoArray16[counter16][4]; var speed16=500; var transition_busy16=0; function prevPhoto16(number){ if(transition_busy16==0){ if(number==null){ counter16-- } else{ counter16=(number-1) }; if(counter16<0){ counter16=photoNum16-1 }; loadPhoto16(counter16); } } function nextPhoto16(number){ if(transition_busy16==0){ if(number==null){ counter16++ } else{ counter16=(number-1) }; if(counter16==photoNum16){ counter16=0 }; loadPhoto16(counter16); } } function loadPhoto16(){ if(document.getElementById('mooshow_navigation16')){ navigation16(); } hide_elements16(); document.getElementById('mooshow_loading16').style.display='inline'; imgPreloader16=new Image(); imgPreloader16.onload=function(){ document.getElementById('mooshow_loading16').style.display='none'; new Fx.Style('mooshow_image16','opacity').set(0);resize16(); } imgPreloader16.src=photoArray16[counter16][0]; } function resize16(){ currentwidth16=document.getElementById('mooshow_image16').width; currentheight16=document.getElementById('mooshow_image16').height; resizeContatinerHeight16.start(currentheight16,photoArray16[counter16][2]); resizeContatinerWidth16.start(currentwidth16,photoArray16[counter16][1]); } function hide_elements16(){ if(document.getElementById('mooshow_caption16')){ document.getElementById('mooshow_caption16').innerHTML=' '; } document.getElementById('mooshow_prev16').style.display='none'; document.getElementById('mooshow_next16').style.display='none'; } function switch_photo16(){ document.getElementById('mooshow_image16').src=photoArray16[counter16][0]; document.getElementById('mooshow_image16').alt=photoArray16[counter16][3]; document.getElementById('mooshow_image16').width=photoArray16[counter16][1]; document.getElementById('mooshow_image16').height=photoArray16[counter16][2]; document.getElementById('mooshow_image16').name=counter16; if(document.getElementById('mooshow_caption16')){ caption16(); } show_elements16(); } function show_elements16(){ fade_in16('mooshow_image16',speed16); if(document.getElementById('mooshow_caption16')){ fade_in16('mooshow_caption16',speed16); } } function show_nav_overlay16(){ document.getElementById('mooshow_prev16').style.display='inline'; document.getElementById('mooshow_next16').style.display='inline'; } function navigation16(){ document.getElementById('mooshow_navigation16').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation16').innerHTML=content+' '+(i+1)+' '; } if(i