var photoNum8=photoArray8.length; var counter8=0; var currentheight8=photoArray8[counter8][2]; var currentwidth8=photoArray8[counter8][1]; var currentcaption8=photoArray8[counter8][3]; var currentlink8=photoArray8[counter8][4]; var speed8=500; var transition_busy8=0; function prevPhoto8(number){ if(transition_busy8==0){ if(number==null){ counter8-- } else{ counter8=(number-1) }; if(counter8<0){ counter8=photoNum8-1 }; loadPhoto8(counter8); } } function nextPhoto8(number){ if(transition_busy8==0){ if(number==null){ counter8++ } else{ counter8=(number-1) }; if(counter8==photoNum8){ counter8=0 }; loadPhoto8(counter8); } } function loadPhoto8(){ if(document.getElementById('mooshow_navigation8')){ navigation8(); } hide_elements8(); document.getElementById('mooshow_loading8').style.display='inline'; imgPreloader8=new Image(); imgPreloader8.onload=function(){ document.getElementById('mooshow_loading8').style.display='none'; new Fx.Style('mooshow_image8','opacity').set(0);resize8(); } imgPreloader8.src=photoArray8[counter8][0]; } function resize8(){ currentwidth8=document.getElementById('mooshow_image8').width; currentheight8=document.getElementById('mooshow_image8').height; resizeContatinerHeight8.start(currentheight8,photoArray8[counter8][2]); resizeContatinerWidth8.start(currentwidth8,photoArray8[counter8][1]); } function hide_elements8(){ if(document.getElementById('mooshow_caption8')){ document.getElementById('mooshow_caption8').innerHTML=' '; } document.getElementById('mooshow_prev8').style.display='none'; document.getElementById('mooshow_next8').style.display='none'; } function switch_photo8(){ document.getElementById('mooshow_image8').src=photoArray8[counter8][0]; document.getElementById('mooshow_image8').alt=photoArray8[counter8][3]; document.getElementById('mooshow_image8').width=photoArray8[counter8][1]; document.getElementById('mooshow_image8').height=photoArray8[counter8][2]; document.getElementById('mooshow_image8').name=counter8; if(document.getElementById('mooshow_caption8')){ caption8(); } show_elements8(); } function show_elements8(){ fade_in8('mooshow_image8',speed8); if(document.getElementById('mooshow_caption8')){ fade_in8('mooshow_caption8',speed8); } } function show_nav_overlay8(){ document.getElementById('mooshow_prev8').style.display='inline'; document.getElementById('mooshow_next8').style.display='inline'; } function navigation8(){ document.getElementById('mooshow_navigation8').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation8').innerHTML=content+' '+(i+1)+' '; } if(i