var photoNum17=photoArray17.length; var counter17=0; var currentheight17=photoArray17[counter17][2]; var currentwidth17=photoArray17[counter17][1]; var currentcaption17=photoArray17[counter17][3]; var currentlink17=photoArray17[counter17][4]; var speed17=500; var transition_busy17=0; function prevPhoto17(number){ if(transition_busy17==0){ if(number==null){ counter17-- } else{ counter17=(number-1) }; if(counter17<0){ counter17=photoNum17-1 }; loadPhoto17(counter17); } } function nextPhoto17(number){ if(transition_busy17==0){ if(number==null){ counter17++ } else{ counter17=(number-1) }; if(counter17==photoNum17){ counter17=0 }; loadPhoto17(counter17); } } function loadPhoto17(){ if(document.getElementById('mooshow_navigation17')){ navigation17(); } hide_elements17(); document.getElementById('mooshow_loading17').style.display='inline'; imgPreloader17=new Image(); imgPreloader17.onload=function(){ document.getElementById('mooshow_loading17').style.display='none'; new Fx.Style('mooshow_image17','opacity').set(0);resize17(); } imgPreloader17.src=photoArray17[counter17][0]; } function resize17(){ currentwidth17=document.getElementById('mooshow_image17').width; currentheight17=document.getElementById('mooshow_image17').height; resizeContatinerHeight17.start(currentheight17,photoArray17[counter17][2]); resizeContatinerWidth17.start(currentwidth17,photoArray17[counter17][1]); } function hide_elements17(){ if(document.getElementById('mooshow_caption17')){ document.getElementById('mooshow_caption17').innerHTML=' '; } document.getElementById('mooshow_prev17').style.display='none'; document.getElementById('mooshow_next17').style.display='none'; } function switch_photo17(){ document.getElementById('mooshow_image17').src=photoArray17[counter17][0]; document.getElementById('mooshow_image17').alt=photoArray17[counter17][3]; document.getElementById('mooshow_image17').width=photoArray17[counter17][1]; document.getElementById('mooshow_image17').height=photoArray17[counter17][2]; document.getElementById('mooshow_image17').name=counter17; if(document.getElementById('mooshow_caption17')){ caption17(); } show_elements17(); } function show_elements17(){ fade_in17('mooshow_image17',speed17); if(document.getElementById('mooshow_caption17')){ fade_in17('mooshow_caption17',speed17); } } function show_nav_overlay17(){ document.getElementById('mooshow_prev17').style.display='inline'; document.getElementById('mooshow_next17').style.display='inline'; } function navigation17(){ document.getElementById('mooshow_navigation17').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation17').innerHTML=content+' '+(i+1)+' '; } if(i