var photoNum5=photoArray5.length; var counter5=0; var currentheight5=photoArray5[counter5][2]; var currentwidth5=photoArray5[counter5][1]; var currentcaption5=photoArray5[counter5][3]; var currentlink5=photoArray5[counter5][4]; var speed5=500; var transition_busy5=0; function prevPhoto5(number){ if(transition_busy5==0){ if(number==null){ counter5-- } else{ counter5=(number-1) }; if(counter5<0){ counter5=photoNum5-1 }; loadPhoto5(counter5); } } function nextPhoto5(number){ if(transition_busy5==0){ if(number==null){ counter5++ } else{ counter5=(number-1) }; if(counter5==photoNum5){ counter5=0 }; loadPhoto5(counter5); } } function loadPhoto5(){ if(document.getElementById('mooshow_navigation5')){ navigation5(); } hide_elements5(); document.getElementById('mooshow_loading5').style.display='inline'; imgPreloader5=new Image(); imgPreloader5.onload=function(){ document.getElementById('mooshow_loading5').style.display='none'; new Fx.Style('mooshow_image5','opacity').set(0);resize5(); } imgPreloader5.src=photoArray5[counter5][0]; } function resize5(){ currentwidth5=document.getElementById('mooshow_image5').width; currentheight5=document.getElementById('mooshow_image5').height; resizeContatinerHeight5.start(currentheight5,photoArray5[counter5][2]); resizeContatinerWidth5.start(currentwidth5,photoArray5[counter5][1]); } function hide_elements5(){ if(document.getElementById('mooshow_caption5')){ document.getElementById('mooshow_caption5').innerHTML=' '; } document.getElementById('mooshow_prev5').style.display='none'; document.getElementById('mooshow_next5').style.display='none'; } function switch_photo5(){ document.getElementById('mooshow_image5').src=photoArray5[counter5][0]; document.getElementById('mooshow_image5').alt=photoArray5[counter5][3]; document.getElementById('mooshow_image5').width=photoArray5[counter5][1]; document.getElementById('mooshow_image5').height=photoArray5[counter5][2]; document.getElementById('mooshow_image5').name=counter5; if(document.getElementById('mooshow_caption5')){ caption5(); } show_elements5(); } function show_elements5(){ fade_in5('mooshow_image5',speed5); if(document.getElementById('mooshow_caption5')){ fade_in5('mooshow_caption5',speed5); } } function show_nav_overlay5(){ document.getElementById('mooshow_prev5').style.display='inline'; document.getElementById('mooshow_next5').style.display='inline'; } function navigation5(){ document.getElementById('mooshow_navigation5').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation5').innerHTML=content+' '+(i+1)+' '; } if(i