<!-- Beginning of JavaScript -

serg0 = new Image();
serg0.src = "img/total-3.jpg";

serg1 = new Image();
serg1.src = "img/total-2.jpg";

serg2 = new Image();
serg2.src = "img/total-1.jpg";
 
var i_strngth=1
var i_image=0

var imageurl = new Array()
imageurl[0] ="img/total-3.jpg"
imageurl[1] ="img/total-2.jpg"
imageurl[2] ="img/total-1.jpg"

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()",3000)
		}
	}	
	
	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()",500)
				
	}	
}


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()",500)	
	}
}


// - End of JavaScript - -->
