var photoNum12=photoArray12.length; var counter12=0; var currentheight12=photoArray12[counter12][2]; var currentwidth12=photoArray12[counter12][1]; var currentcaption12=photoArray12[counter12][3]; var currentlink12=photoArray12[counter12][4]; var speed12=500; var transition_busy12=0; function prevPhoto12(number){ if(transition_busy12==0){ if(number==null){ counter12-- } else{ counter12=(number-1) }; if(counter12<0){ counter12=photoNum12-1 }; loadPhoto12(counter12); } } function nextPhoto12(number){ if(transition_busy12==0){ if(number==null){ counter12++ } else{ counter12=(number-1) }; if(counter12==photoNum12){ counter12=0 }; loadPhoto12(counter12); } } function loadPhoto12(){ if(document.getElementById('mooshow_navigation12')){ navigation12(); } hide_elements12(); document.getElementById('mooshow_loading12').style.display='inline'; imgPreloader12=new Image(); imgPreloader12.onload=function(){ document.getElementById('mooshow_loading12').style.display='none'; new Fx.Style('mooshow_image12','opacity').set(0);resize12(); } imgPreloader12.src=photoArray12[counter12][0]; } function resize12(){ currentwidth12=document.getElementById('mooshow_image12').width; currentheight12=document.getElementById('mooshow_image12').height; resizeContatinerHeight12.start(currentheight12,photoArray12[counter12][2]); resizeContatinerWidth12.start(currentwidth12,photoArray12[counter12][1]); } function hide_elements12(){ if(document.getElementById('mooshow_caption12')){ document.getElementById('mooshow_caption12').innerHTML=' '; } document.getElementById('mooshow_prev12').style.display='none'; document.getElementById('mooshow_next12').style.display='none'; } function switch_photo12(){ document.getElementById('mooshow_image12').src=photoArray12[counter12][0]; document.getElementById('mooshow_image12').alt=photoArray12[counter12][3]; document.getElementById('mooshow_image12').width=photoArray12[counter12][1]; document.getElementById('mooshow_image12').height=photoArray12[counter12][2]; document.getElementById('mooshow_image12').name=counter12; if(document.getElementById('mooshow_caption12')){ caption12(); } show_elements12(); } function show_elements12(){ fade_in12('mooshow_image12',speed12); if(document.getElementById('mooshow_caption12')){ fade_in12('mooshow_caption12',speed12); } } function show_nav_overlay12(){ document.getElementById('mooshow_prev12').style.display='inline'; document.getElementById('mooshow_next12').style.display='inline'; } function navigation12(){ document.getElementById('mooshow_navigation12').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation12').innerHTML=content+' '+(i+1)+' '; } if(i