var sPause=false//var scrollerwidth=600//var scrollerheight=450//var scrollerbgcolor='#DED6C6'//var pausebetweenimages=5000//var pxIncr=3 // Number of pixels of single moving//var movInt=3 //Time interval between each moving (not time of delay=pausebetweenimages!) of photos//var midHeight1=Number(-(scrollerheight/2+15)) //pixels, horizontal border when program will write new label//var slideimages=new Array()//slideimages[0]=a+"4.jpg"+b+"0 bla bla"// HREF syntax: slideimages[6]='<A HREF="besh17.html"><img src="6.jpg" border="0"></A>'PhN=-1if(slideimages.length>1){z=2} else{z=0;}function moveNS(M,S){mL=eval(M); sL=eval(S); mL.zIndex =1; sL.zIndex=0if (mL.top>=mL.document.height*-1){ //MOVINGmL.top-=pxIncr;if(mL.top<=midHeight1&& PhN!=z){PhN=z;wlbl()}to1=setTimeout("moveNS(mL,sL)", movInt)}else{ //Change framesmL.top=0; mL.zIndex=0; sL.zIndex=1mL.document.write(slideimages[z][0]); mL.document.close()if(z==slideimages.length-1){z=0}else{z++}clearTimeout(to1);to1=setTimeout("moveNS(sL, mL)",pausebetweenimages);return}}function moveIE(M, S){mL=eval(M); sL=eval(S);mL.style.zIndex =1; sL.style.zIndex=0if (mL.style.pixelTop>=mL.offsetHeight*-1){ //MOVINGmL.style.pixelTop-=pxIncr; if(mL.style.pixelTop<=midHeight1&& PhN!=z){PhN=z;wlbl()}to1=setTimeout("moveIE(mL,sL)", movInt)}else{ //Change framesmL.style.pixelTop=0; mL.style.zIndex=0; sL.style.zIndex=1mL.innerHTML=slideimages[z][0]if(z==slideimages.length-1){z=0}else{z++}clearTimeout(to1);to1=setTimeout("moveIE(sL, mL)",pausebetweenimages);return}}function startscroll(){if(ie4){setTimeout("moveIE(first2, second2)", pausebetweenimages)}if(ns4){mL=document.main.document.first;sL=document.main.document.seconddocument.main.visibility='show';setTimeout("moveNS(mL,sL)" ,pausebetweenimages);sL.visibility='show'wndWidth=window.innerWidth;wndHeight=window.innerHeight}document.ssfFind.tFind.value=""}function Jump(si){PS()si=fi[si]if(ie4){sL.innerHTML=slideimages[si][0]}if(ns4){sL.document.write(slideimages[si][0]); sL.document.close()}k=si+1;if(k==slideimages.length){z=0}else{z=k}PL()}function pauseSS(){sPause=trueif(ie4){clearTimeout(to1);if(mL.style.pixelTop>=mL.offsetHeight*-1){mL.style.pixelTop=0};f1="moveIE(mL,sL)"}if(ns4){clearTimeout(to1);if(mL.top>=mL.document.height*-1){ mL.top=0}; f1="moveNS(mL,sL)"} k=z-1if(k==0){j=slideimages.length-1}else{j=k-1};WL('newlayer', vL1+ slideimages[j][1]+vL2)}function playSS(){if(sPause){setTimeout(f1,500);sPause=false}}function PS(){if(!sPause){clearTimeout(to1)}}function PL(){if(!sPause){if(ie4){moveIE(mL,sL)}if(ns4){moveNS(mL,sL)}}}function RestoreP(){if(ns4){if(wndWidth!=window.innerWidth||wndHeight!=window.innerHeight){history.go(0)}}}window.onload=startscrollwindow.onblur=PSwindow.onfocus=PLwindow.onresize=RestorePwindow.onunload=uldfunction uld(){if(!ie4){var Lb=document.ssfFind.sPhotos;Lb.options[0].text="Select";DeleteExtra(1,Lb)}}function wlbl(){if(z==0){j=slideimages.length-1}else{j=z-1};WL('newlayer', vL1+ slideimages[j][1]+vL2)}function FillPhList(Lb,L){Lb.options[0].text="Select"for(var i=1;i<L.length+1;i++){var a1=slideimages [L[i]][2]Lb.options[i]=new Option(a1)}}function FillList(Lb,L){Lb.options[0].text=fi[0]for(var i=1;i<L.length;i++){var a1=slideimages[L[i]][2]Lb.options[i]=new Option(a1)}DeleteExtra(L.length,Lb)}function FindPhoto(){var s2=document.ssfFind.tFind.value.toLowerCase(), f=0delete fi;fi=new Array()for(var i=0;i<slideimages.length;i++){var a1=slideimages[i][1].toLowerCase()if(a1.indexOf(s2)>=0){f++;fi[f]=i}}if(s2==""){fi=fa;fi[0]="Select"}else{fi[0]="Found: "+f}FillList(document.ssfFind.sPhotos,fi)}function DeleteExtra(NLen,OBS){if(OBS.length>NLen){for(n=OBS.length;n>=NLen;n--){OBS.options[n]=null}}}