function scroll(){
content()
init()

scrolldown()
selectspeed()
}

function content() {
var arrayLength // length of the imageArray
arrayLength = imageArray.length-1
var startPoint // the starting point for the loop for the tenImageArray, a randomized number

// this is set to one less than the amount of images in the array
startPoint = 1+Math.round(Math.random()*arrayLength);   


// for (var i=1;i<=arrayLength;i++) {
//	 if (startPoint==arrayLength) {
//		startPoint=1
//	 }
//	 document.write("<tr><td>"+imageArray[startPoint]+"</td></tr>")
// 	startPoint++
// }
// }

for (var b=1;b<=10;b++) {

   for (var c=1;c<=arrayLength;c++) {

document.write("<tr><td>"+imageArray[c]+
"<img src='/images/blind.gif' width='100' height='1' alt='' align='left'>" +"</td></tr>")
}
}
}

function containersetup() {
iens6=document.all||document.getElementById
ns4=document.layers

<!-- Lower is faster -->
scrollspeed = 60

<!-- Container setup -->
if (iens6){
document.write('<div id="container" style="position:relative;width:102;height:100%;overflow:hidden;border:0px ridge white">')
document.write('<div id="content" style="position:relative;width:102;left:0;top:0">')

}
imageArray = new Array()
imageArray[1]="<img src='/images/scroll/arnika.jpg' alt='' width='100' height='100'   >"
imageArray[2]="<img src='/images/scroll/arzt.jpg' alt='' width='100' height='100'   >"
imageArray[3]="<img src='/images/scroll/beach.jpg' alt='' width='100' height='100'   >"
imageArray[4]="<img src='/images/scroll/beh.jpg' alt='' width='100' height='100'   >"
imageArray[5]="<img src='/images/scroll/gras.jpg' alt='' width='100' height='100'   >"
imageArray[6]="<img src='/images/scroll/family.jpg' alt='' width='100' height='100'   >"
imageArray[7]="<img src='/images/scroll/drop.jpg' alt='' width='100' height='100'   >"
imageArray[8]="<img src='/images/scroll/family2.jpg' alt='' width='100' height='100'  >"
imageArray[9]="<img src='/images/scroll/baum.jpg' alt='' width='100' height='100'   >"
imageArray[10]="<img src='/images/scroll/cat.jpg' alt='' width='100' height='100'   >"
imageArray[11]="<img src='/images/scroll/blumen.jpg' alt='' width='100' height='100'  >"
imageArray[12]="<img src='/images/scroll/kind.jpg' alt='' width='100' height='100'   >"

}



function init(){

step=1


if (iens6){
	document.write('</div></div>')
	contentobj=document.getElementById? document.getElementById("content") : document.all.content
	contentheight=contentobj.offsetHeight
	if (document.getElementById&&!document.all){
   		step=5
	}
}
else if(ns4){
	contentobj=document.nscontainer.document.nscontent
	contentheight=contentobj.clip.height
	}
window.onload=getcontent_height
}



<!-- speed select -->
function selectspeed() {
	speed="s"
	if(speed=="s") {
		step=1
	}
	if(speed=="m") {
		step=3
	}
	if(speed=="f") {
		step=5
	}
}<!-- scroll down function -->

function scrolldown() {
	if(window.scrolltimerup){
		clearTimeout(scrolltimerup)
	}
	if(iens6&&parseInt(contentobj.style.top)>=(contentheight*(-1)+100)){
		contentobj.style.top=parseInt(contentobj.style.top)-step
	}else if(ns4&&contentobj.top>=(contentheight*(-1)+100)){
		contentobj.top-=step
	}
	scrolltimerdown = setTimeout("scrolldown()",scrollspeed)
}


<!-- scroll up function -->
function scrollup() {
	if(window.scrolltimerdown){
		clearTimeout(scrolltimerdown)
	}
	if(iens6&&parseInt(contentobj.style.top)<=0){
		contentobj.style.top=parseInt(contentobj.style.top)+step
	}else if(ns4&&contentobj.top<=0){ 
		contentobj.top+=step
	}
	scrolltimerup = setTimeout("scrollup()",scrollspeed)	
}
<!-- function to stop all scroll timers -->
function stopall() {
	if(window.scrolltimerup){
		clearTimeout(scrolltimerup)
	}
	if(window.scrolltimerdown){
		clearTimeout(scrolltimerdown)
	}
}
<!-- function that shifts the object to top -->
function shifttotop(){
	stopall()
	if (iens6) {
		contentobj.style.top=0
	}else{
		contentobj.top=0
	}
}

function getcontent_height(){
	if (iens6)
	contentheight=contentobj.offsetHeight
}

