var photoNum18=photoArray18.length; var counter18=0; var currentheight18=photoArray18[counter18][2]; var currentwidth18=photoArray18[counter18][1]; var currentcaption18=photoArray18[counter18][3]; var currentlink18=photoArray18[counter18][4]; var speed18=500; var transition_busy18=0; function prevPhoto18(number){ if(transition_busy18==0){ if(number==null){ counter18-- } else{ counter18=(number-1) }; if(counter18<0){ counter18=photoNum18-1 }; loadPhoto18(counter18); } } function nextPhoto18(number){ if(transition_busy18==0){ if(number==null){ counter18++ } else{ counter18=(number-1) }; if(counter18==photoNum18){ counter18=0 }; loadPhoto18(counter18); } } function loadPhoto18(){ if(document.getElementById('mooshow_navigation18')){ navigation18(); } hide_elements18(); document.getElementById('mooshow_loading18').style.display='inline'; imgPreloader18=new Image(); imgPreloader18.onload=function(){ document.getElementById('mooshow_loading18').style.display='none'; new Fx.Style('mooshow_image18','opacity').set(0);resize18(); } imgPreloader18.src=photoArray18[counter18][0]; } function resize18(){ currentwidth18=document.getElementById('mooshow_image18').width; currentheight18=document.getElementById('mooshow_image18').height; resizeContatinerHeight18.start(currentheight18,photoArray18[counter18][2]); resizeContatinerWidth18.start(currentwidth18,photoArray18[counter18][1]); } function hide_elements18(){ if(document.getElementById('mooshow_caption18')){ document.getElementById('mooshow_caption18').innerHTML=' '; } document.getElementById('mooshow_prev18').style.display='none'; document.getElementById('mooshow_next18').style.display='none'; } function switch_photo18(){ document.getElementById('mooshow_image18').src=photoArray18[counter18][0]; document.getElementById('mooshow_image18').alt=photoArray18[counter18][3]; document.getElementById('mooshow_image18').width=photoArray18[counter18][1]; document.getElementById('mooshow_image18').height=photoArray18[counter18][2]; document.getElementById('mooshow_image18').name=counter18; if(document.getElementById('mooshow_caption18')){ caption18(); } show_elements18(); } function show_elements18(){ fade_in18('mooshow_image18',speed18); if(document.getElementById('mooshow_caption18')){ fade_in18('mooshow_caption18',speed18); } } function show_nav_overlay18(){ document.getElementById('mooshow_prev18').style.display='inline'; document.getElementById('mooshow_next18').style.display='inline'; } function navigation18(){ document.getElementById('mooshow_navigation18').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation18').innerHTML=content+' '+(i+1)+' '; } if(i