var photoNum4=photoArray4.length; var counter4=0; var currentheight4=photoArray4[counter4][2]; var currentwidth4=photoArray4[counter4][1]; var currentcaption4=photoArray4[counter4][3]; var currentlink4=photoArray4[counter4][4]; var speed4=500; var transition_busy4=0; function prevPhoto4(number){ if(transition_busy4==0){ if(number==null){ counter4-- } else{ counter4=(number-1) }; if(counter4<0){ counter4=photoNum4-1 }; loadPhoto4(counter4); } } function nextPhoto4(number){ if(transition_busy4==0){ if(number==null){ counter4++ } else{ counter4=(number-1) }; if(counter4==photoNum4){ counter4=0 }; loadPhoto4(counter4); } } function loadPhoto4(){ if(document.getElementById('mooshow_navigation4')){ navigation4(); } hide_elements4(); document.getElementById('mooshow_loading4').style.display='inline'; imgPreloader4=new Image(); imgPreloader4.onload=function(){ document.getElementById('mooshow_loading4').style.display='none'; new Fx.Style('mooshow_image4','opacity').set(0);resize4(); } imgPreloader4.src=photoArray4[counter4][0]; } function resize4(){ currentwidth4=document.getElementById('mooshow_image4').width; currentheight4=document.getElementById('mooshow_image4').height; resizeContatinerHeight4.start(currentheight4,photoArray4[counter4][2]); resizeContatinerWidth4.start(currentwidth4,photoArray4[counter4][1]); } function hide_elements4(){ if(document.getElementById('mooshow_caption4')){ document.getElementById('mooshow_caption4').innerHTML=' '; } document.getElementById('mooshow_prev4').style.display='none'; document.getElementById('mooshow_next4').style.display='none'; } function switch_photo4(){ document.getElementById('mooshow_image4').src=photoArray4[counter4][0]; document.getElementById('mooshow_image4').alt=photoArray4[counter4][3]; document.getElementById('mooshow_image4').width=photoArray4[counter4][1]; document.getElementById('mooshow_image4').height=photoArray4[counter4][2]; document.getElementById('mooshow_image4').name=counter4; if(document.getElementById('mooshow_caption4')){ caption4(); } show_elements4(); } function show_elements4(){ fade_in4('mooshow_image4',speed4); if(document.getElementById('mooshow_caption4')){ fade_in4('mooshow_caption4',speed4); } } function show_nav_overlay4(){ document.getElementById('mooshow_prev4').style.display='inline'; document.getElementById('mooshow_next4').style.display='inline'; } function navigation4(){ document.getElementById('mooshow_navigation4').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation4').innerHTML=content+' '+(i+1)+' '; } if(i