var photoNum7=photoArray7.length; var counter7=0; var currentheight7=photoArray7[counter7][2]; var currentwidth7=photoArray7[counter7][1]; var currentcaption7=photoArray7[counter7][3]; var currentlink7=photoArray7[counter7][4]; var speed7=500; var transition_busy7=0; function prevPhoto7(number){ if(transition_busy7==0){ if(number==null){ counter7-- } else{ counter7=(number-1) }; if(counter7<0){ counter7=photoNum7-1 }; loadPhoto7(counter7); } } function nextPhoto7(number){ if(transition_busy7==0){ if(number==null){ counter7++ } else{ counter7=(number-1) }; if(counter7==photoNum7){ counter7=0 }; loadPhoto7(counter7); } } function loadPhoto7(){ if(document.getElementById('mooshow_navigation7')){ navigation7(); } hide_elements7(); document.getElementById('mooshow_loading7').style.display='inline'; imgPreloader7=new Image(); imgPreloader7.onload=function(){ document.getElementById('mooshow_loading7').style.display='none'; new Fx.Style('mooshow_image7','opacity').set(0);resize7(); } imgPreloader7.src=photoArray7[counter7][0]; } function resize7(){ currentwidth7=document.getElementById('mooshow_image7').width; currentheight7=document.getElementById('mooshow_image7').height; resizeContatinerHeight7.start(currentheight7,photoArray7[counter7][2]); resizeContatinerWidth7.start(currentwidth7,photoArray7[counter7][1]); } function hide_elements7(){ if(document.getElementById('mooshow_caption7')){ document.getElementById('mooshow_caption7').innerHTML=' '; } document.getElementById('mooshow_prev7').style.display='none'; document.getElementById('mooshow_next7').style.display='none'; } function switch_photo7(){ document.getElementById('mooshow_image7').src=photoArray7[counter7][0]; document.getElementById('mooshow_image7').alt=photoArray7[counter7][3]; document.getElementById('mooshow_image7').width=photoArray7[counter7][1]; document.getElementById('mooshow_image7').height=photoArray7[counter7][2]; document.getElementById('mooshow_image7').name=counter7; if(document.getElementById('mooshow_caption7')){ caption7(); } show_elements7(); } function show_elements7(){ fade_in7('mooshow_image7',speed7); if(document.getElementById('mooshow_caption7')){ fade_in7('mooshow_caption7',speed7); } } function show_nav_overlay7(){ document.getElementById('mooshow_prev7').style.display='inline'; document.getElementById('mooshow_next7').style.display='inline'; } function navigation7(){ document.getElementById('mooshow_navigation7').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation7').innerHTML=content+' '+(i+1)+' '; } if(i