var photoNum13=photoArray13.length; var counter13=0; var currentheight13=photoArray13[counter13][2]; var currentwidth13=photoArray13[counter13][1]; var currentcaption13=photoArray13[counter13][3]; var currentlink13=photoArray13[counter13][4]; var speed13=500; var transition_busy13=0; function prevPhoto13(number){ if(transition_busy13==0){ if(number==null){ counter13-- } else{ counter13=(number-1) }; if(counter13<0){ counter13=photoNum13-1 }; loadPhoto13(counter13); } } function nextPhoto13(number){ if(transition_busy13==0){ if(number==null){ counter13++ } else{ counter13=(number-1) }; if(counter13==photoNum13){ counter13=0 }; loadPhoto13(counter13); } } function loadPhoto13(){ if(document.getElementById('mooshow_navigation13')){ navigation13(); } hide_elements13(); document.getElementById('mooshow_loading13').style.display='inline'; imgPreloader13=new Image(); imgPreloader13.onload=function(){ document.getElementById('mooshow_loading13').style.display='none'; new Fx.Style('mooshow_image13','opacity').set(0);resize13(); } imgPreloader13.src=photoArray13[counter13][0]; } function resize13(){ currentwidth13=document.getElementById('mooshow_image13').width; currentheight13=document.getElementById('mooshow_image13').height; resizeContatinerHeight13.start(currentheight13,photoArray13[counter13][2]); resizeContatinerWidth13.start(currentwidth13,photoArray13[counter13][1]); } function hide_elements13(){ if(document.getElementById('mooshow_caption13')){ document.getElementById('mooshow_caption13').innerHTML=' '; } document.getElementById('mooshow_prev13').style.display='none'; document.getElementById('mooshow_next13').style.display='none'; } function switch_photo13(){ document.getElementById('mooshow_image13').src=photoArray13[counter13][0]; document.getElementById('mooshow_image13').alt=photoArray13[counter13][3]; document.getElementById('mooshow_image13').width=photoArray13[counter13][1]; document.getElementById('mooshow_image13').height=photoArray13[counter13][2]; document.getElementById('mooshow_image13').name=counter13; if(document.getElementById('mooshow_caption13')){ caption13(); } show_elements13(); } function show_elements13(){ fade_in13('mooshow_image13',speed13); if(document.getElementById('mooshow_caption13')){ fade_in13('mooshow_caption13',speed13); } } function show_nav_overlay13(){ document.getElementById('mooshow_prev13').style.display='inline'; document.getElementById('mooshow_next13').style.display='inline'; } function navigation13(){ document.getElementById('mooshow_navigation13').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation13').innerHTML=content+' '+(i+1)+' '; } if(i