var photoNum15=photoArray15.length; var counter15=0; var currentheight15=photoArray15[counter15][2]; var currentwidth15=photoArray15[counter15][1]; var currentcaption15=photoArray15[counter15][3]; var currentlink15=photoArray15[counter15][4]; var speed15=500; var transition_busy15=0; function prevPhoto15(number){ if(transition_busy15==0){ if(number==null){ counter15-- } else{ counter15=(number-1) }; if(counter15<0){ counter15=photoNum15-1 }; loadPhoto15(counter15); } } function nextPhoto15(number){ if(transition_busy15==0){ if(number==null){ counter15++ } else{ counter15=(number-1) }; if(counter15==photoNum15){ counter15=0 }; loadPhoto15(counter15); } } function loadPhoto15(){ if(document.getElementById('mooshow_navigation15')){ navigation15(); } hide_elements15(); document.getElementById('mooshow_loading15').style.display='inline'; imgPreloader15=new Image(); imgPreloader15.onload=function(){ document.getElementById('mooshow_loading15').style.display='none'; new Fx.Style('mooshow_image15','opacity').set(0);resize15(); } imgPreloader15.src=photoArray15[counter15][0]; } function resize15(){ currentwidth15=document.getElementById('mooshow_image15').width; currentheight15=document.getElementById('mooshow_image15').height; resizeContatinerHeight15.start(currentheight15,photoArray15[counter15][2]); resizeContatinerWidth15.start(currentwidth15,photoArray15[counter15][1]); } function hide_elements15(){ if(document.getElementById('mooshow_caption15')){ document.getElementById('mooshow_caption15').innerHTML=' '; } document.getElementById('mooshow_prev15').style.display='none'; document.getElementById('mooshow_next15').style.display='none'; } function switch_photo15(){ document.getElementById('mooshow_image15').src=photoArray15[counter15][0]; document.getElementById('mooshow_image15').alt=photoArray15[counter15][3]; document.getElementById('mooshow_image15').width=photoArray15[counter15][1]; document.getElementById('mooshow_image15').height=photoArray15[counter15][2]; document.getElementById('mooshow_image15').name=counter15; if(document.getElementById('mooshow_caption15')){ caption15(); } show_elements15(); } function show_elements15(){ fade_in15('mooshow_image15',speed15); if(document.getElementById('mooshow_caption15')){ fade_in15('mooshow_caption15',speed15); } } function show_nav_overlay15(){ document.getElementById('mooshow_prev15').style.display='inline'; document.getElementById('mooshow_next15').style.display='inline'; } function navigation15(){ document.getElementById('mooshow_navigation15').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation15').innerHTML=content+' '+(i+1)+' '; } if(i