var photoNum6=photoArray6.length; var counter6=0; var currentheight6=photoArray6[counter6][2]; var currentwidth6=photoArray6[counter6][1]; var currentcaption6=photoArray6[counter6][3]; var currentlink6=photoArray6[counter6][4]; var speed6=500; var transition_busy6=0; function prevPhoto6(number){ if(transition_busy6==0){ if(number==null){ counter6-- } else{ counter6=(number-1) }; if(counter6<0){ counter6=photoNum6-1 }; loadPhoto6(counter6); } } function nextPhoto6(number){ if(transition_busy6==0){ if(number==null){ counter6++ } else{ counter6=(number-1) }; if(counter6==photoNum6){ counter6=0 }; loadPhoto6(counter6); } } function loadPhoto6(){ if(document.getElementById('mooshow_navigation6')){ navigation6(); } hide_elements6(); document.getElementById('mooshow_loading6').style.display='inline'; imgPreloader6=new Image(); imgPreloader6.onload=function(){ document.getElementById('mooshow_loading6').style.display='none'; new Fx.Style('mooshow_image6','opacity').set(0);resize6(); } imgPreloader6.src=photoArray6[counter6][0]; } function resize6(){ currentwidth6=document.getElementById('mooshow_image6').width; currentheight6=document.getElementById('mooshow_image6').height; resizeContatinerHeight6.start(currentheight6,photoArray6[counter6][2]); resizeContatinerWidth6.start(currentwidth6,photoArray6[counter6][1]); } function hide_elements6(){ if(document.getElementById('mooshow_caption6')){ document.getElementById('mooshow_caption6').innerHTML=' '; } document.getElementById('mooshow_prev6').style.display='none'; document.getElementById('mooshow_next6').style.display='none'; } function switch_photo6(){ document.getElementById('mooshow_image6').src=photoArray6[counter6][0]; document.getElementById('mooshow_image6').alt=photoArray6[counter6][3]; document.getElementById('mooshow_image6').width=photoArray6[counter6][1]; document.getElementById('mooshow_image6').height=photoArray6[counter6][2]; document.getElementById('mooshow_image6').name=counter6; if(document.getElementById('mooshow_caption6')){ caption6(); } show_elements6(); } function show_elements6(){ fade_in6('mooshow_image6',speed6); if(document.getElementById('mooshow_caption6')){ fade_in6('mooshow_caption6',speed6); } } function show_nav_overlay6(){ document.getElementById('mooshow_prev6').style.display='inline'; document.getElementById('mooshow_next6').style.display='inline'; } function navigation6(){ document.getElementById('mooshow_navigation6').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation6').innerHTML=content+' '+(i+1)+' '; } if(i