﻿function rdl_play(){
try
{
	var r=Math.random().toString();
	cls="div"+r.substring(r.length-1,r.length);
	idParentDiv.className=cls;
	//alert(idParentDiv.className);
	with (idParentDiv) {
	//if (children[0].style.display=="none") children[1].style.display="block";
	//else children[1].style.display="none";
	filters[0].Apply();
	//if (children[0].style.display=="none") children[0].style.display="block";else children[0].style.display="none";
	//if (children[1].style.display=="none") children[1].style.display="block";else children[1].style.display="none";
	//if (children[2].style.display=="none") children[2].style.display="block";else children[2].style.display="none";

	var index=0;
	for(i=0;i<idParentDiv.children.length;i++)
	{
		if(idParentDiv.children[i].style.display=="block")
		{
			index=i+1;
		}
		idParentDiv.children[i].style.display="none";

		//alert(index);
	}
	if(index==idParentDiv.children.length)
			index=0;
		idParentDiv.children[index].style.display="block";

	filters[0].play();
	}
}
catch(e){}
}

function rdl_play2(){
try
{
	var r=Math.random().toString();
	cls="div"+r.substring(r.length-1,r.length);
	TJSJ_content.className=cls;
	//alert(TJSJ_content.className);
	with (TJSJ_content) {
	//if (children[0].style.display=="none") children[1].style.display="block";
	//else children[1].style.display="none";
	filters[0].Apply();
	//if (children[0].style.display=="none") children[0].style.display="block";else children[0].style.display="none";
	//if (children[1].style.display=="none") children[1].style.display="block";else children[1].style.display="none";
	//if (children[2].style.display=="none") children[2].style.display="block";else children[2].style.display="none";

	var index=0;
	for(i=0;i<TJSJ_content.children.length;i++)
	{
		if(TJSJ_content.children[i].style.display=="block")
		{
			index=i+1;
		}
		TJSJ_content.children[i].style.display="none";

		//alert(index);
	}
	if(index==TJSJ_content.children.length)
			index=0;
		TJSJ_content.children[index].style.display="block";

	filters[0].play();
	}
}
catch(e){}
}

function myLoad()
{	
	window.setInterval("rdl_play()",5000);
	window.setInterval("rdl_play2()",5000);
}