function open_gallery(imgURL){document.getElementById("popup_pic").src=imgURL;document.getElementById("photo").style.display="";for(i=0;i");GalleryElements=document.getElementById(ID).getElementsByTagName("a");GalleryLinks=new Array();GalleryName=new Array();GalleryWords=new Array();for(i=0;i";gTEXT=GalleryElements[i].innerHTML.replace(/STRONG/g,"strong").replace(/BR/g,"br");GalleryName[i]=gTEXT.slice(gTEXT.indexOf("\">")+2);}}}function set_gallery_limit(Num){LimitNum=Num;NowLimit=Num;document.write("
");if(LimitNum";}}else{document.getElementById("bu_more").style.display="none";for(i=0;i";}}}function more_pic(){preLimit=NowLimit;if(NowLimit+LimitNum>GalleryElements.length){NowLimit=GalleryElements.length;document.getElementById("bu_more").style.display="none";}else{NowLimit+=LimitNum;}for(i=preLimit;i";}}function photo_next(){for(i=0;i=GalleryLinks.length)NextPhotoNum=0;for(i=0;i<=10;i++){setTimeout("document.getElementById('popup_pic').style.opacity='"+(10-i)/10+"';",i*30);}setTimeout("document.getElementById('popup_pic').src='"+GalleryLinks[NextPhotoNum]+"';",10*30);setTimeout("document.getElementById('pic_name').innerHTML='"+GalleryName[NextPhotoNum]+"';",10*30);for(i=0;i<=10;i++){setTimeout("document.getElementById('popup_pic').style.opacity='"+(i/10)+"';",i*30+10*30);}}function photo_prev(){for(i=0;i