// --------------------------------- vars --------------------------------- photo_border_width=1; photo_border_color='#606060'; photo_padding_width=5; photo_padding_color='white'; photo_speed=0.2; photo_nifty_controls=1; // --------------------------------- usage --------------------------------- // pic[0]=new Array(filename,width,height,subscript,date) // pic[1]=new Array(filename,width,height,subscript,date) // popup // popup // -------------------------------------------------------------------------- prev=999; next=999; function loadphotoarray(p) { if (p=="next" || p=="prev") p=eval(p); if (p!=999) { hidephoto(); if (p>0) prev=p-1; else prev=999; if (p+1"; document.getElementById("photodiv4").style.display=(d==""?"none":"inline"); if (photo_nifty_controls==1) { document.getElementById("photodiv5").innerHTML=''; document.getElementById("photodiv6").innerHTML=''; } } function centerphoto() { dv=document.getElementById("bigphotodiv"); dv.style.width=document.images["bigphoto"].width+(photo_padding_width*2+photo_border_width*2); dv.style.height=document.images["bigphoto"].height+(photo_padding_width*2+photo_border_width*2); dv=document.getElementById("photodiv2"); dv.style.left=(photo_padding_width+1)+document.images["bigphoto"].width-(20-photo_border_width)-38; dv.style.top=(photo_padding_width+1)+document.images["bigphoto"].height-(20-photo_border_width); dv=document.getElementById("photodiv3"); dv.style.left=(photo_padding_width+photo_border_width); dv.style.width=document.images["bigphoto"].width; dv.style.top=(photo_padding_width+photo_border_width)+document.images["bigphoto"].height-23; dv=document.getElementById("photodiv4"); dv.style.left=(photo_padding_width+photo_border_width); dv.style.top=(photo_padding_width+photo_border_width)+document.images["bigphoto"].height-23; dv=document.getElementById("bigphotodiv"); h=document.body.clientHeight; t=document.body.scrollTop; w=document.body.clientWidth; l=document.body.scrollLeft; y=Math.floor(h/2-dv.offsetHeight/2+t); x=Math.floor(w/2-dv.offsetWidth/2+l); dv.style.top=y; dv.style.left=x; } function hidephoto() { dv=document.getElementById("bigphotodiv"); dv.style.visibility="hidden"; } function showphoto() { dv=document.getElementById("bigphotodiv"); fadeIn2("bigphotodiv",photo_speed); } function fixcenter() { centerphoto(); } document.write(''); window.onresize=fixcenter;