<Script>
//==============================================
//Copyright. All rights reserved.
//Chetan Akarte
//www.geocities.com/cdy2k2002/
//Free for private use "as is" under a condition that a copyright notice is preserved.
//==============================================


var image = new Array()

function data(name, width, link){
	this.name = name
	this.width = width
	this.link = link
   }

image[0] = new data('http://ioannis.org//wp-content/themes/gamezone/img/derz_index_img_25.jpg',107,'http://www.geocities.com/cdy2k2002/')
image[1] = new data('http://ioannis.org//wp-content/themes/gamezone/img/derz_index_img_24.jpg',107,'http://www.geocities.com/cdy2k2002/')
image[2] = new data('http://ioannis.org//wp-content/themes/gamezone/img/derz_index_img_34.jpg',107,'http://www.geocities.com/cdy2k2002/')
image[3] = new data('http://ioannis.org//wp-content/themes/gamezone/img/derz_index_img_33.jpg',107,'http://www.geocities.com/cdy2k2002/')
image[4] = new data('http://ioannis.org//wp-content/themes/gamezone/img/derz_index_img_32.jpg',107,'http://www.geocities.com/cdy2k2002/')


var speed = 50

var len = image.length
var ii
var hhh
var nnn
var myInterval
var myPause


var imgArray = new Array(len)
var myLeft = new Array(len)

for (ii=0;ii<len;ii++){
imgArray[ii] = new Image()
imgArray[ii].src = image[ii].name
imgArray[ii].width = image[ii].width

	hhh=0 
	for (nnn=0;nnn<ii;nnn++){
		hhh=hhh+image[nnn].width
	}
	myLeft[ii] = hhh
}

function ready(){
	for (ii=0;ii<len;ii++){ 
		if (document.images[ii].complete == false){
			return false	
			break
		}
	}
return true
}


function startScrolling(){
	if (ready() == true){		
		window.clearInterval(myPause)
		myInterval = setInterval("autoScroll()",speed)	
	}
}	
	

function autoScroll(){
	for (ii=0;ii<len;ii++){
		myLeft[ii] = myLeft[ii] - 1
		
	if (myLeft[ii] == -(image[ii].width)){
		hhh = 0
		for (nnn=0;nnn<len;nnn++){
			if (nnn!=ii){
				hhh = hhh + image[nnn].width
			}			
		}
		myLeft[ii] =  hhh
	}
		
		
		
		document.images[ii].style.left = myLeft[ii]
	}
}


</Script>
