
var XX=20; // X position of the scrolling objects
var xstep=3;
var delay_time=120;

//Begin of the unchangable area, please do not modify this area
var YY=0;  
var ch=0;
var oh=0;
var yon=0;
var moveit;
var ns4=document.layers?1:0
var ie=document.all?1:0

var ns6=document.getElementById&&!document.all?1:0

if(ie){
	//YY=document.body.clientHeight;
	//XX=document.body.offsetWidth-150;
	YY=document.body.clientHeight;
	XX=document.body.offsetWidth-150;
	point1.style.top=YY;
	
}
else if (ns4){
YY=window.innerHeight;
document.point1.pageY=YY;
document.point1.visibility="hidden";
}
else if (ns6){
YY=window.innerHeight
document.getElementById('point1').style.top=YY
}


function reloc1()
{

	if(yon==0){YY=YY-xstep;}
	else{YY=YY+xstep;}
	if (ie){
		ch=document.body.clientHeight;
		oh=point1.offsetHeight;
		//alert(oh);

	}
	else if (ns4){
	ch=window.innerHeight;
	oh=document.point1.clip.height;
	}
	else if (ns6){
	ch=window.innerHeight
	oh=document.getElementById("point1").offsetHeight
}
		
if(YY<0){yon=1;YY=0;}
if(YY>=(ch-oh)){yon=0;YY=(ch-oh);}
if(ie){
	point1.style.left=XX;
	point1.style.top=YY+document.body.scrollTop+60;
}
else if (ns4){
	document.point1.pageX=XX;
	document.point1.pageY=YY+window.pageYOffset;
}
else if (ns6){
	document.getElementById("point1").style.left=XX
	document.getElementById("point1").style.top=YY+window.pageYOffset
}

}

function adonad(img)
{
	if(ns4)
		document.point1.visibility="visible";

	foto1= new Image();
	foto1.src=(img);
	XX=document.body.offsetWidth-foto1.width-25;
	loopfunc();
}
function loopfunc()
{
	reloc1();
	moveit=setTimeout('loopfunc()',delay_time);
}
function stop()
{
	clearTimeout(moveit);
}


