

var u=1

function pi(a){
if (!document.all)
return
if (u==3) u=0
u=u+1
document.p.src="images/"+u+".jpg"

}



var pic= new Array(4);
pic[1] = "1.jpg";
pic[2] = "2.jpg";
pic[3] = "3.jpg";

function fadeIn(where) {
if (where >= 1) {
document.p.src="images/" + pic[where] ;
where -= 1;
setTimeout("fadeIn("+where+")", 1800);
} else {
setTimeout('fadeOut(1)', 1800);
   }
}
function fadeOut(where) {
if (where <=3) {
document.p.src="images/" + pic[where];
where += 1;
setTimeout("fadeOut("+where+")", 1800)
} else {
setTimeout("fadeIn(3)", 1800);
   }
}
