var photoNum3=photoArray3.length; var counter3=0; var currentheight3=photoArray3[counter3][2]; var currentwidth3=photoArray3[counter3][1]; var currentcaption3=photoArray3[counter3][3]; var currentlink3=photoArray3[counter3][4]; var speed3=500; var transition_busy3=0; function prevPhoto3(number){ if(transition_busy3==0){ if(number==null){ counter3-- } else{ counter3=(number-1) }; if(counter3<0){ counter3=photoNum3-1 }; loadPhoto3(counter3); } } function nextPhoto3(number){ if(transition_busy3==0){ if(number==null){ counter3++ } else{ counter3=(number-1) }; if(counter3==photoNum3){ counter3=0 }; loadPhoto3(counter3); } } function loadPhoto3(){ if(document.getElementById('mooshow_navigation3')){ navigation3(); } hide_elements3(); document.getElementById('mooshow_loading3').style.display='inline'; imgPreloader3=new Image(); imgPreloader3.onload=function(){ document.getElementById('mooshow_loading3').style.display='none'; new Fx.Style('mooshow_image3','opacity').set(0);resize3(); } imgPreloader3.src=photoArray3[counter3][0]; } function resize3(){ currentwidth3=document.getElementById('mooshow_image3').width; currentheight3=document.getElementById('mooshow_image3').height; resizeContatinerHeight3.start(currentheight3,photoArray3[counter3][2]); resizeContatinerWidth3.start(currentwidth3,photoArray3[counter3][1]); } function hide_elements3(){ if(document.getElementById('mooshow_caption3')){ document.getElementById('mooshow_caption3').innerHTML=' '; } document.getElementById('mooshow_prev3').style.display='none'; document.getElementById('mooshow_next3').style.display='none'; } function switch_photo3(){ document.getElementById('mooshow_image3').src=photoArray3[counter3][0]; document.getElementById('mooshow_image3').alt=photoArray3[counter3][3]; document.getElementById('mooshow_image3').width=photoArray3[counter3][1]; document.getElementById('mooshow_image3').height=photoArray3[counter3][2]; document.getElementById('mooshow_image3').name=counter3; if(document.getElementById('mooshow_caption3')){ caption3(); } show_elements3(); } function show_elements3(){ fade_in3('mooshow_image3',speed3); if(document.getElementById('mooshow_caption3')){ fade_in3('mooshow_caption3',speed3); } } function show_nav_overlay3(){ document.getElementById('mooshow_prev3').style.display='inline'; document.getElementById('mooshow_next3').style.display='inline'; } function navigation3(){ document.getElementById('mooshow_navigation3').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation3').innerHTML=content+' '+(i+1)+' '; } if(i