var photoNum1=photoArray1.length; var counter1=0; var currentheight1=photoArray1[counter1][2]; var currentwidth1=photoArray1[counter1][1]; var currentcaption1=photoArray1[counter1][3]; var currentlink1=photoArray1[counter1][4]; var speed1=500; var transition_busy1=0; function prevPhoto1(number){ if(transition_busy1==0){ if(number==null){ counter1-- } else{ counter1=(number-1) }; if(counter1<0){ counter1=photoNum1-1 }; loadPhoto1(counter1); } } function nextPhoto1(number){ if(transition_busy1==0){ if(number==null){ counter1++ } else{ counter1=(number-1) }; if(counter1==photoNum1){ counter1=0 }; loadPhoto1(counter1); } } function loadPhoto1(){ if(document.getElementById('mooshow_navigation1')){ navigation1(); } hide_elements1(); document.getElementById('mooshow_loading1').style.display='inline'; imgPreloader1=new Image(); imgPreloader1.onload=function(){ document.getElementById('mooshow_loading1').style.display='none'; new Fx.Style('mooshow_image1','opacity').set(0);resize1(); } imgPreloader1.src=photoArray1[counter1][0]; } function resize1(){ currentwidth1=document.getElementById('mooshow_image1').width; currentheight1=document.getElementById('mooshow_image1').height; resizeContatinerHeight1.start(currentheight1,photoArray1[counter1][2]); resizeContatinerWidth1.start(currentwidth1,photoArray1[counter1][1]); } function hide_elements1(){ if(document.getElementById('mooshow_caption1')){ document.getElementById('mooshow_caption1').innerHTML=' '; } document.getElementById('mooshow_prev1').style.display='none'; document.getElementById('mooshow_next1').style.display='none'; } function switch_photo1(){ document.getElementById('mooshow_image1').src=photoArray1[counter1][0]; document.getElementById('mooshow_image1').alt=photoArray1[counter1][3]; document.getElementById('mooshow_image1').width=photoArray1[counter1][1]; document.getElementById('mooshow_image1').height=photoArray1[counter1][2]; document.getElementById('mooshow_image1').name=counter1; if(document.getElementById('mooshow_caption1')){ caption1(); } show_elements1(); } function show_elements1(){ fade_in1('mooshow_image1',speed1); if(document.getElementById('mooshow_caption1')){ fade_in1('mooshow_caption1',speed1); } } function show_nav_overlay1(){ document.getElementById('mooshow_prev1').style.display='inline'; document.getElementById('mooshow_next1').style.display='inline'; } function navigation1(){ document.getElementById('mooshow_navigation1').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation1').innerHTML=content+' '+(i+1)+' '; } if(i