var photoNum14=photoArray14.length; var counter14=0; var currentheight14=photoArray14[counter14][2]; var currentwidth14=photoArray14[counter14][1]; var currentcaption14=photoArray14[counter14][3]; var currentlink14=photoArray14[counter14][4]; var speed14=500; var transition_busy14=0; function prevPhoto14(number){ if(transition_busy14==0){ if(number==null){ counter14-- } else{ counter14=(number-1) }; if(counter14<0){ counter14=photoNum14-1 }; loadPhoto14(counter14); } } function nextPhoto14(number){ if(transition_busy14==0){ if(number==null){ counter14++ } else{ counter14=(number-1) }; if(counter14==photoNum14){ counter14=0 }; loadPhoto14(counter14); } } function loadPhoto14(){ if(document.getElementById('mooshow_navigation14')){ navigation14(); } hide_elements14(); document.getElementById('mooshow_loading14').style.display='inline'; imgPreloader14=new Image(); imgPreloader14.onload=function(){ document.getElementById('mooshow_loading14').style.display='none'; new Fx.Style('mooshow_image14','opacity').set(0);resize14(); } imgPreloader14.src=photoArray14[counter14][0]; } function resize14(){ currentwidth14=document.getElementById('mooshow_image14').width; currentheight14=document.getElementById('mooshow_image14').height; resizeContatinerHeight14.start(currentheight14,photoArray14[counter14][2]); resizeContatinerWidth14.start(currentwidth14,photoArray14[counter14][1]); } function hide_elements14(){ if(document.getElementById('mooshow_caption14')){ document.getElementById('mooshow_caption14').innerHTML=' '; } document.getElementById('mooshow_prev14').style.display='none'; document.getElementById('mooshow_next14').style.display='none'; } function switch_photo14(){ document.getElementById('mooshow_image14').src=photoArray14[counter14][0]; document.getElementById('mooshow_image14').alt=photoArray14[counter14][3]; document.getElementById('mooshow_image14').width=photoArray14[counter14][1]; document.getElementById('mooshow_image14').height=photoArray14[counter14][2]; document.getElementById('mooshow_image14').name=counter14; if(document.getElementById('mooshow_caption14')){ caption14(); } show_elements14(); } function show_elements14(){ fade_in14('mooshow_image14',speed14); if(document.getElementById('mooshow_caption14')){ fade_in14('mooshow_caption14',speed14); } } function show_nav_overlay14(){ document.getElementById('mooshow_prev14').style.display='inline'; document.getElementById('mooshow_next14').style.display='inline'; } function navigation14(){ document.getElementById('mooshow_navigation14').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation14').innerHTML=content+' '+(i+1)+' '; } if(i