

/*
var speed = 6000;
var crossFadeDuration = 10;

var Pic = new Array('<%=r_images%>');
var PicLinks = new Array('<%=r_links%>');

var t;
var j = 0;
var p = Pic.length;

var preLoad = new Array();
for (i = 0; i < p; i++){
   preLoad[i] = new Image();
   preLoad[i].src = Pic[i];
}
*/

function rotate_i(idisplay, icount, iactive){

	var t_img;
	var t_link;
	
	if (this.window.document.all){
		for (ic=0; ic<=idisplay ;ic++ )
		{
			t_img=document.getElementById("r_img0");

			t_img.style.filter="blendTrans(duration=crossFadeDuration)";
			t_img.filters.blendTrans.Apply();
		}
	}

	for (ic=0; ic<=idisplay ;ic++ )
	{
		t_img=document.getElementById("r_img0");
		t_link=document.getElementById("r_link0");
		
		t_link.href = PicLinks[iactive];
		t_img.src = preLoad[iactive].src;
		if (this.window.document.all){
			t_img.filters.blendTrans.Play();
		}
		iactive = iactive + 1;
		if (iactive > (icount-1)) iactive=0
	}

	this.window.clearInterval(t);
	t = this.window.setInterval("rotate_i(" + idisplay+","+ icount+","+ iactive+")", speed);

}

