function PlayTran()
{ 
	if(document.all)
	{
		document.getElementById('ScrollImg').filters.revealTrans.Transition=10; 
		document.getElementById('ScrollImg').filters.revealTrans.apply(); 
		document.getElementById('ScrollImg').filters.revealTrans.play();
	}
}
function ScrollPicShow(index,isContinue,int_j)
{
	if(isPause && isContinue)
	{
		window.setTimeout("ScrollPicShow("+index+",true,"+int_j+")",10000);
		return;
	}
	ScrollButton(index,int_j);
	var simg = document.getElementById("ScrollImg");
	var stxt = document.getElementById("ScrollTxt");
	var surl = document.getElementById("ScrollUrl");
	PlayTran();
	simg.src = scrollImg[index];
	stxt.innerText = scrollTxt[index];
	surl.href = scrollUrl[index];
	surl.title = scrollTxt[index];
	simg.title = scrollTxt[index];
	//按钮显示
	//定时滚动下一张
	if(index >= scrollImg.length-1 || index>=int_j)
	{
		index = 0;
	}
	else
	{
		index++;
	}
	if(isContinue)
	{
		window.setTimeout("ScrollPicShow("+index+",true,"+int_j+")",5000);
	}
}
function ScrollButton(index,int_j)
{
	var buttonName = "ScrollDiv";
	for(var i=0;i<=int_j;i++)
	{
		var sbut = document.getElementById(buttonName+i);
		if(i == index)
		{
			sbut.className = "ScrollButton1";
		}
		else
		{
			sbut.className = "ScrollButton0";
		}
	}
}

function PauseScroll(index,int_j)
{
	isPause = true;
	ScrollPicShow(index,false,int_j);
	//ScrollPicShow(index,isPause);
	window.setTimeout("isPause = false",5000);
}

//////////////////////////////////////////////////////////////////

function PlayTran1()
{ 
	if(document.all)
	{
		document.getElementById('ScrollImg1').filters.revealTrans.Transition=60; 
		document.getElementById('ScrollImg1').filters.revealTrans.apply(); 
		document.getElementById('ScrollImg1').filters.revealTrans.play();
	}
}
function ScrollPicShow1(index,isContinue,int_j)
{
	if(isPause && isContinue)
	{
		window.setTimeout("ScrollPicShow1("+index+",true,"+int_j+")",60000);
		return;
	}
	ScrollButton1(index,int_j);
	var simg = document.getElementById("ScrollImg1");
	var stxt = document.getElementById("ScrollTxt1");
	var surl = document.getElementById("ScrollUrl1");
	PlayTran1();
	simg.src = scrollImg1[index];
	stxt.innerText = scrollTxt1[index];
	surl.href = scrollUrl1[index];
	surl.title = scrollTxt1[index];
	simg.title = scrollTxt1[index];
	//按钮显示
	//定时滚动下一张
	if(index >= scrollImg.length-1 || index>=int_j)
	{
		index = 0;
	}
	else
	{
		index++;
	}
	if(isContinue)
	{
		window.setTimeout("ScrollPicShow1("+index+",true,"+int_j+")",30000);
	}
}
function ScrollButton1(index,int_j)
{
	var buttonName = "ScrollDiv1";
	for(var i=0;i<=int_j;i++)
	{
		var sbut = document.getElementById(buttonName+i);
		if(i == index)
		{
			sbut.className = "ScrollButton1";
		}
		else
		{
			sbut.className = "ScrollButton0";
		}
	}
}

function PauseScroll1(index,int_j)
{
	isPause = true;
	ScrollPicShow1(index,false,int_j);
	//ScrollPicShow(index,isPause);
	window.setTimeout("isPause = false",30000);
}