// Script for panorama index.   Author: Ian E Currah, Oct. 2005

function init(){
	maxNum = Math.floor(document.images[1].width * 0.6666)
	dirNum = 0; positn = 0; i = 1; num = 0
	doLoop()
}

function doLoop(){
	stopID = setInterval("scrollWindow()", 10)
}

function scrollWindow(){
	document.getElementById('banImage').style.position="relative"
	document.getElementById('banImage').style.left=-i
	i++
	num ++
	if(num > maxNum) clearTimeout(stopID)
}
