function call(val,withoutsplit,arg,ss,limit)

{

	document.getElementById("div_id").style.opacity = val;

	setTimeout('sec("'+val+'","'+withoutsplit+'","'+arg+'","'+ss+'","'+limit+'")',15);

}

function sec(alpha,withoutsplit,arg,ss,limit)

{
	interval = 3000;
	alpha = alpha * 1;

	alpha=alpha+0.01;

	if(alpha>1)

	{
		arg++;

		if(arg>limit-1)

		{
			arg = 0;
			setTimeout('show("'+withoutsplit+'","'+arg+'","'+limit+'")',interval);
		}

		else

			setTimeout('show("'+withoutsplit+'","'+arg+'","'+limit+'")',interval);
	}

	else

		call(alpha,withoutsplit,arg,ss,limit);

}

function show(v,arg,limit)

{
	var withoutsplit = v;

	var real = v.split("##");

	var img = "<img src=images/sponsors/"+real[arg]+" />";
	
	var ss = "<table border=0 width=180 height=100 align=center><tr height=20><td colspan=2></td></tr><tr><td width=8></td><td width=180 align=center valign=middle>"+img+"</td></tr></table>";
	//alert(ss)

	document.getElementById("div_id").style.opacity = 0;

	call(0,withoutsplit,arg,ss,limit);

	document.getElementById("div_id").innerHTML = ss;

}



function ajaxTest(arg,limit)

{
	var request = (window.XMLHttpRequest) ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");

	request.open("POST", "ajax.php", true);

	request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");

	request.onreadystatechange = function(){

		if (request.readyState == 4)

		{
			var rs = request.responseText;

			show(rs,arg,limit);

		}

	};

	request.send("val="+arg);

}