var photoNum19=photoArray19.length; var counter19=0; var currentheight19=photoArray19[counter19][2]; var currentwidth19=photoArray19[counter19][1]; var currentcaption19=photoArray19[counter19][3]; var currentlink19=photoArray19[counter19][4]; var speed19=500; var transition_busy19=0; function prevPhoto19(number){ if(transition_busy19==0){ if(number==null){ counter19-- } else{ counter19=(number-1) }; if(counter19<0){ counter19=photoNum19-1 }; loadPhoto19(counter19); } } function nextPhoto19(number){ if(transition_busy19==0){ if(number==null){ counter19++ } else{ counter19=(number-1) }; if(counter19==photoNum19){ counter19=0 }; loadPhoto19(counter19); } } function loadPhoto19(){ if(document.getElementById('mooshow_navigation19')){ navigation19(); } hide_elements19(); document.getElementById('mooshow_loading19').style.display='inline'; imgPreloader19=new Image(); imgPreloader19.onload=function(){ document.getElementById('mooshow_loading19').style.display='none'; new Fx.Style('mooshow_image19','opacity').set(0);resize19(); } imgPreloader19.src=photoArray19[counter19][0]; } function resize19(){ currentwidth19=document.getElementById('mooshow_image19').width; currentheight19=document.getElementById('mooshow_image19').height; resizeContatinerHeight19.start(currentheight19,photoArray19[counter19][2]); resizeContatinerWidth19.start(currentwidth19,photoArray19[counter19][1]); } function hide_elements19(){ if(document.getElementById('mooshow_caption19')){ document.getElementById('mooshow_caption19').innerHTML=' '; } document.getElementById('mooshow_prev19').style.display='none'; document.getElementById('mooshow_next19').style.display='none'; } function switch_photo19(){ document.getElementById('mooshow_image19').src=photoArray19[counter19][0]; document.getElementById('mooshow_image19').alt=photoArray19[counter19][3]; document.getElementById('mooshow_image19').width=photoArray19[counter19][1]; document.getElementById('mooshow_image19').height=photoArray19[counter19][2]; document.getElementById('mooshow_image19').name=counter19; if(document.getElementById('mooshow_caption19')){ caption19(); } show_elements19(); } function show_elements19(){ fade_in19('mooshow_image19',speed19); if(document.getElementById('mooshow_caption19')){ fade_in19('mooshow_caption19',speed19); } } function show_nav_overlay19(){ document.getElementById('mooshow_prev19').style.display='inline'; document.getElementById('mooshow_next19').style.display='inline'; } function navigation19(){ document.getElementById('mooshow_navigation19').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation19').innerHTML=content+' '+(i+1)+' '; } if(i