var photoNum9=photoArray9.length; var counter9=0; var currentheight9=photoArray9[counter9][2]; var currentwidth9=photoArray9[counter9][1]; var currentcaption9=photoArray9[counter9][3]; var currentlink9=photoArray9[counter9][4]; var speed9=500; var transition_busy9=0; function prevPhoto9(number){ if(transition_busy9==0){ if(number==null){ counter9-- } else{ counter9=(number-1) }; if(counter9<0){ counter9=photoNum9-1 }; loadPhoto9(counter9); } } function nextPhoto9(number){ if(transition_busy9==0){ if(number==null){ counter9++ } else{ counter9=(number-1) }; if(counter9==photoNum9){ counter9=0 }; loadPhoto9(counter9); } } function loadPhoto9(){ if(document.getElementById('mooshow_navigation9')){ navigation9(); } hide_elements9(); document.getElementById('mooshow_loading9').style.display='inline'; imgPreloader9=new Image(); imgPreloader9.onload=function(){ document.getElementById('mooshow_loading9').style.display='none'; new Fx.Style('mooshow_image9','opacity').set(0);resize9(); } imgPreloader9.src=photoArray9[counter9][0]; } function resize9(){ currentwidth9=document.getElementById('mooshow_image9').width; currentheight9=document.getElementById('mooshow_image9').height; resizeContatinerHeight9.start(currentheight9,photoArray9[counter9][2]); resizeContatinerWidth9.start(currentwidth9,photoArray9[counter9][1]); } function hide_elements9(){ if(document.getElementById('mooshow_caption9')){ document.getElementById('mooshow_caption9').innerHTML=' '; } document.getElementById('mooshow_prev9').style.display='none'; document.getElementById('mooshow_next9').style.display='none'; } function switch_photo9(){ document.getElementById('mooshow_image9').src=photoArray9[counter9][0]; document.getElementById('mooshow_image9').alt=photoArray9[counter9][3]; document.getElementById('mooshow_image9').width=photoArray9[counter9][1]; document.getElementById('mooshow_image9').height=photoArray9[counter9][2]; document.getElementById('mooshow_image9').name=counter9; if(document.getElementById('mooshow_caption9')){ caption9(); } show_elements9(); } function show_elements9(){ fade_in9('mooshow_image9',speed9); if(document.getElementById('mooshow_caption9')){ fade_in9('mooshow_caption9',speed9); } } function show_nav_overlay9(){ document.getElementById('mooshow_prev9').style.display='inline'; document.getElementById('mooshow_next9').style.display='inline'; } function navigation9(){ document.getElementById('mooshow_navigation9').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation9').innerHTML=content+' '+(i+1)+' '; } if(i