var photoNum21=photoArray21.length; var counter21=0; var currentheight21=photoArray21[counter21][2]; var currentwidth21=photoArray21[counter21][1]; var currentcaption21=photoArray21[counter21][3]; var currentlink21=photoArray21[counter21][4]; var speed21=500; var transition_busy21=0; function prevPhoto21(number){ if(transition_busy21==0){ if(number==null){ counter21-- } else{ counter21=(number-1) }; if(counter21<0){ counter21=photoNum21-1 }; loadPhoto21(counter21); } } function nextPhoto21(number){ if(transition_busy21==0){ if(number==null){ counter21++ } else{ counter21=(number-1) }; if(counter21==photoNum21){ counter21=0 }; loadPhoto21(counter21); } } function loadPhoto21(){ if(document.getElementById('mooshow_navigation21')){ navigation21(); } hide_elements21(); document.getElementById('mooshow_loading21').style.display='inline'; imgPreloader21=new Image(); imgPreloader21.onload=function(){ document.getElementById('mooshow_loading21').style.display='none'; new Fx.Style('mooshow_image21','opacity').set(0);resize21(); } imgPreloader21.src=photoArray21[counter21][0]; } function resize21(){ currentwidth21=document.getElementById('mooshow_image21').width; currentheight21=document.getElementById('mooshow_image21').height; resizeContatinerHeight21.start(currentheight21,photoArray21[counter21][2]); resizeContatinerWidth21.start(currentwidth21,photoArray21[counter21][1]); } function hide_elements21(){ if(document.getElementById('mooshow_caption21')){ document.getElementById('mooshow_caption21').innerHTML=' '; } document.getElementById('mooshow_prev21').style.display='none'; document.getElementById('mooshow_next21').style.display='none'; } function switch_photo21(){ document.getElementById('mooshow_image21').src=photoArray21[counter21][0]; document.getElementById('mooshow_image21').alt=photoArray21[counter21][3]; document.getElementById('mooshow_image21').width=photoArray21[counter21][1]; document.getElementById('mooshow_image21').height=photoArray21[counter21][2]; document.getElementById('mooshow_image21').name=counter21; if(document.getElementById('mooshow_caption21')){ caption21(); } show_elements21(); } function show_elements21(){ fade_in21('mooshow_image21',speed21); if(document.getElementById('mooshow_caption21')){ fade_in21('mooshow_caption21',speed21); } } function show_nav_overlay21(){ document.getElementById('mooshow_prev21').style.display='inline'; document.getElementById('mooshow_next21').style.display='inline'; } function navigation21(){ document.getElementById('mooshow_navigation21').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation21').innerHTML=content+' '+(i+1)+' '; } if(i