var photoNum26=photoArray26.length; var counter26=0; var currentheight26=photoArray26[counter26][2]; var currentwidth26=photoArray26[counter26][1]; var currentcaption26=photoArray26[counter26][3]; var currentlink26=photoArray26[counter26][4]; var speed26=500; var transition_busy26=0; function prevPhoto26(number){ if(transition_busy26==0){ if(number==null){ counter26-- } else{ counter26=(number-1) }; if(counter26<0){ counter26=photoNum26-1 }; loadPhoto26(counter26); } } function nextPhoto26(number){ if(transition_busy26==0){ if(number==null){ counter26++ } else{ counter26=(number-1) }; if(counter26==photoNum26){ counter26=0 }; loadPhoto26(counter26); } } function loadPhoto26(){ if(document.getElementById('mooshow_navigation26')){ navigation26(); } hide_elements26(); document.getElementById('mooshow_loading26').style.display='inline'; imgPreloader26=new Image(); imgPreloader26.onload=function(){ document.getElementById('mooshow_loading26').style.display='none'; new Fx.Style('mooshow_image26','opacity').set(0);resize26(); } imgPreloader26.src=photoArray26[counter26][0]; } function resize26(){ currentwidth26=document.getElementById('mooshow_image26').width; currentheight26=document.getElementById('mooshow_image26').height; resizeContatinerHeight26.start(currentheight26,photoArray26[counter26][2]); resizeContatinerWidth26.start(currentwidth26,photoArray26[counter26][1]); } function hide_elements26(){ if(document.getElementById('mooshow_caption26')){ document.getElementById('mooshow_caption26').innerHTML=' '; } document.getElementById('mooshow_prev26').style.display='none'; document.getElementById('mooshow_next26').style.display='none'; } function switch_photo26(){ document.getElementById('mooshow_image26').src=photoArray26[counter26][0]; document.getElementById('mooshow_image26').alt=photoArray26[counter26][3]; document.getElementById('mooshow_image26').width=photoArray26[counter26][1]; document.getElementById('mooshow_image26').height=photoArray26[counter26][2]; document.getElementById('mooshow_image26').name=counter26; if(document.getElementById('mooshow_caption26')){ caption26(); } show_elements26(); } function show_elements26(){ fade_in26('mooshow_image26',speed26); if(document.getElementById('mooshow_caption26')){ fade_in26('mooshow_caption26',speed26); } } function show_nav_overlay26(){ document.getElementById('mooshow_prev26').style.display='inline'; document.getElementById('mooshow_next26').style.display='inline'; } function navigation26(){ document.getElementById('mooshow_navigation26').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation26').innerHTML=content+' '+(i+1)+' '; } if(i