
//ImgSrc = new Array("FILEB/p1.jpg", "FILEB/p2.jpg");

lengthi=ImgSrc.length-1;
counti=0;


function PlusO(x, src, t) {
if (x==0) 
{
document.getElementById('fototop').src=src;
t=1;
}
    if (t==0)
    {
    x=x-2;
    }
    else
    {
    x=x+2;
    }
 if (x<100) 
 {
 setTimeout("PlusO("+x+", '"+src+"', "+t+")",60);
 }
 else
 {
 Next();
 }
document.getElementById('fototop').style.filter="alpha(opacity="+x+")";

}

function Next()
{
if (counti<lengthi)
	{
	i=counti+1;
    counti=counti+1
	}
    else
    {
    if (counti==lengthi) counti=0;
    i=0;
    }

src=ImgSrc[i];
if (lengthi>0)
{
 setTimeout("PlusO(98, '"+src+"', 0)",2000);
}
}



