// JavaScript Document
var index = 1;
var Img = document.getElementById("photos");
var num = 4;
Img.src = "images/photo1.jpg";
function auto_action()
{
    try
    {
		Img.style.filter="revealTrans(transition=4,duration=1);";
		//Img.style.filter="blendTrans(Duration=1)";
　　	Img.filters[0].apply();
　　	Img.filters[0].play();
    }
    catch(e)
    {
    }
	Img.src = "images/photo"+(index+1)+".jpg";
	if(index<num-1)
		index++;
	else
		index = 0;
}
function auto_re()
{
	if(num>1)
		atimer = setInterval("auto_action()",6000);
}
var atimer;
auto_re();

