<!-- Beginning of JavaScript -

serg0 = new Image();
serg0.src = "img/anim-1.gif";

serg1 = new Image();
serg1.src = "img/anim-2.gif";

serg2 = new Image();
serg2.src = "img/anim-3.gif";

var i_strngth=1
var i_image=0

var imageurl = new Array()
imageurl[0] ="img/anim-1.gif"
imageurl[1] ="img/anim-2.gif"
imageurl[2] ="img/anim-3.gif"


function showimage() {		
	if(document.all) {
		if (i_strngth <=110) {
			testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
			i_strngth=i_strngth+10
			var timer=setTimeout("showimage()",20)
		}	
		else {
			clearTimeout(timer)
			var timer=setTimeout("hideimage()",6000)
		}
	}	
	
	if(document.layers) {
			clearTimeout(timer)
			document.testimage.document.write("<img src="+imageurl[i_image]+" border=0>")
			document.close()
			i_image++
			if (i_image >= imageurl.length) {i_image=0}	
			var timer=setTimeout("showimage()",1000)
				
	}	
}


function hideimage() {		
	if (i_strngth >=-10) {
		testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
		i_strngth=i_strngth-10
		var timer=setTimeout("hideimage()",20)
	}	
	else {
		clearTimeout(timer)
		i_image++
		if (i_image >= imageurl.length) {i_image=0}
		i_strngth=1
		var timer=setTimeout("showimage()",1000)	
	}
}


// - End of JavaScript - -->
