var photoNum25=photoArray25.length; var counter25=0; var currentheight25=photoArray25[counter25][2]; var currentwidth25=photoArray25[counter25][1]; var currentcaption25=photoArray25[counter25][3]; var currentlink25=photoArray25[counter25][4]; var speed25=500; var transition_busy25=0; function prevPhoto25(number){ if(transition_busy25==0){ if(number==null){ counter25-- } else{ counter25=(number-1) }; if(counter25<0){ counter25=photoNum25-1 }; loadPhoto25(counter25); } } function nextPhoto25(number){ if(transition_busy25==0){ if(number==null){ counter25++ } else{ counter25=(number-1) }; if(counter25==photoNum25){ counter25=0 }; loadPhoto25(counter25); } } function loadPhoto25(){ if(document.getElementById('mooshow_navigation25')){ navigation25(); } hide_elements25(); document.getElementById('mooshow_loading25').style.display='inline'; imgPreloader25=new Image(); imgPreloader25.onload=function(){ document.getElementById('mooshow_loading25').style.display='none'; new Fx.Style('mooshow_image25','opacity').set(0);resize25(); } imgPreloader25.src=photoArray25[counter25][0]; } function resize25(){ currentwidth25=document.getElementById('mooshow_image25').width; currentheight25=document.getElementById('mooshow_image25').height; resizeContatinerHeight25.start(currentheight25,photoArray25[counter25][2]); resizeContatinerWidth25.start(currentwidth25,photoArray25[counter25][1]); } function hide_elements25(){ if(document.getElementById('mooshow_caption25')){ document.getElementById('mooshow_caption25').innerHTML=' '; } document.getElementById('mooshow_prev25').style.display='none'; document.getElementById('mooshow_next25').style.display='none'; } function switch_photo25(){ document.getElementById('mooshow_image25').src=photoArray25[counter25][0]; document.getElementById('mooshow_image25').alt=photoArray25[counter25][3]; document.getElementById('mooshow_image25').width=photoArray25[counter25][1]; document.getElementById('mooshow_image25').height=photoArray25[counter25][2]; document.getElementById('mooshow_image25').name=counter25; if(document.getElementById('mooshow_caption25')){ caption25(); } show_elements25(); } function show_elements25(){ fade_in25('mooshow_image25',speed25); if(document.getElementById('mooshow_caption25')){ fade_in25('mooshow_caption25',speed25); } } function show_nav_overlay25(){ document.getElementById('mooshow_prev25').style.display='inline'; document.getElementById('mooshow_next25').style.display='inline'; } function navigation25(){ document.getElementById('mooshow_navigation25').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation25').innerHTML=content+' '+(i+1)+' '; } if(i