var photoNum11=photoArray11.length; var counter11=0; var currentheight11=photoArray11[counter11][2]; var currentwidth11=photoArray11[counter11][1]; var currentcaption11=photoArray11[counter11][3]; var currentlink11=photoArray11[counter11][4]; var speed11=500; var transition_busy11=0; function prevPhoto11(number){ if(transition_busy11==0){ if(number==null){ counter11-- } else{ counter11=(number-1) }; if(counter11<0){ counter11=photoNum11-1 }; loadPhoto11(counter11); } } function nextPhoto11(number){ if(transition_busy11==0){ if(number==null){ counter11++ } else{ counter11=(number-1) }; if(counter11==photoNum11){ counter11=0 }; loadPhoto11(counter11); } } function loadPhoto11(){ if(document.getElementById('mooshow_navigation11')){ navigation11(); } hide_elements11(); document.getElementById('mooshow_loading11').style.display='inline'; imgPreloader11=new Image(); imgPreloader11.onload=function(){ document.getElementById('mooshow_loading11').style.display='none'; new Fx.Style('mooshow_image11','opacity').set(0);resize11(); } imgPreloader11.src=photoArray11[counter11][0]; } function resize11(){ currentwidth11=document.getElementById('mooshow_image11').width; currentheight11=document.getElementById('mooshow_image11').height; resizeContatinerHeight11.start(currentheight11,photoArray11[counter11][2]); resizeContatinerWidth11.start(currentwidth11,photoArray11[counter11][1]); } function hide_elements11(){ if(document.getElementById('mooshow_caption11')){ document.getElementById('mooshow_caption11').innerHTML=' '; } document.getElementById('mooshow_prev11').style.display='none'; document.getElementById('mooshow_next11').style.display='none'; } function switch_photo11(){ document.getElementById('mooshow_image11').src=photoArray11[counter11][0]; document.getElementById('mooshow_image11').alt=photoArray11[counter11][3]; document.getElementById('mooshow_image11').width=photoArray11[counter11][1]; document.getElementById('mooshow_image11').height=photoArray11[counter11][2]; document.getElementById('mooshow_image11').name=counter11; if(document.getElementById('mooshow_caption11')){ caption11(); } show_elements11(); } function show_elements11(){ fade_in11('mooshow_image11',speed11); if(document.getElementById('mooshow_caption11')){ fade_in11('mooshow_caption11',speed11); } } function show_nav_overlay11(){ document.getElementById('mooshow_prev11').style.display='inline'; document.getElementById('mooshow_next11').style.display='inline'; } function navigation11(){ document.getElementById('mooshow_navigation11').innerHTML=''; var i=0; for(i=0;i'+(i+1)+' '; } else{ document.getElementById('mooshow_navigation11').innerHTML=content+' '+(i+1)+' '; } if(i