var photoNum2=photoArray2.length; var counter2=0; var currentheight2=photoArray2[counter2][2]; var currentwidth2=photoArray2[counter2][1]; var currentcaption2=photoArray2[counter2][3]; var currentlink2=photoArray2[counter2][4]; var speed2=500; var transition_busy2=0; function prevPhoto2(number){ if(transition_busy2==0){ if(number==null){ counter2-- } else{ counter2=(number-1) }; if(counter2<0){ counter2=photoNum2-1 }; loadPhoto2(counter2); } } function nextPhoto2(number){ if(transition_busy2==0){ if(number==null){ counter2++ } else{ counter2=(number-1) }; if(counter2==photoNum2){ counter2=0 }; loadPhoto2(counter2); } } function loadPhoto2(){ if(document.getElementById('mooshow_navigation2')){ navigation2(); } hide_elements2(); document.getElementById('mooshow_loading2').style.display='inline'; imgPreloader2=new Image(); imgPreloader2.onload=function(){ document.getElementById('mooshow_loading2').style.display='none'; new Fx.Style('mooshow_image2','opacity').set(0);resize2(); } imgPreloader2.src=photoArray2[counter2][0]; } function resize2(){ currentwidth2=document.getElementById('mooshow_image2').width; currentheight2=document.getElementById('mooshow_image2').height; resizeContatinerHeight2.start(currentheight2,photoArray2[counter2][2]); resizeContatinerWidth2.start(currentwidth2,photoArray2[counter2][1]); } function hide_elements2(){ if(document.getElementById('mooshow_caption2')){ document.getElementById('mooshow_caption2').innerHTML=' '; } document.getElementById('mooshow_prev2').style.display='none'; document.getElementById('mooshow_next2').style.display='none'; } function switch_photo2(){ document.getElementById('mooshow_image2').src=photoArray2[counter2][0]; document.getElementById('mooshow_image2').alt=photoArray2[counter2][3]; document.getElementById('mooshow_image2').width=photoArray2[counter2][1]; document.getElementById('mooshow_image2').height=photoArray2[counter2][2]; document.getElementById('mooshow_image2').name=counter2; if(document.getElementById('mooshow_caption2')){ caption2(); } show_elements2(); } function show_elements2(){ fade_in2('mooshow_image2',speed2); if(document.getElementById('mooshow_caption2')){ fade_in2('mooshow_caption2',speed2); } } function show_nav_overlay2(){ document.getElementById('mooshow_prev2').style.display='inline'; document.getElementById('mooshow_next2').style.display='inline'; } function navigation2(){ document.getElementById('mooshow_navigation2').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation2').innerHTML=content+' '+(i+1)+' '; } if(i