imgPath = new Array;
var bornSup =4;

if (document.images) {
		 imgCharge();
}

pp = 0;

function ejs_img_fx(img) {
	if(img && img.filters && img.filters[0]) {
		img.filters[0].apply();
		img.filters[0].play();
	}
}

function StartAnim() {
	if (document.images) {
		document.write('<IMG SRC="img/Photo0" BORDER="0"  NAME="defil" style="filter:blendTrans(duration=1)">');
		defilimg();
	} else {
		document.write('<IMG SRC="img/Photo0" BORDER="0">')
	}
}

function defilimg() {
	if (pp == bornSup-1) {
		pp = 0;
	}
	if (document.images) {
		ejs_img_fx(document.defil)
		document.defil.src = imgPath[pp];
		tempo1 = setTimeout("defilimg()",2000);
		pp++;
	}
}	

function imgCharge() {
	for (i=0; i<bornSup; i++) {
		i0 = new Image;
		i0.src = "img/Photo"+i; 
		imgPath[i] = i0.src;
		//imgPath[i] ="Photo"+i; 
		//alert (url);
	} 
}

/*
function Random() {
	numimage= Math.round(Math.random()*(nbimage-1)+1);	
}
*/