var banloopTime = 7000;
var banTimeOut = 0;



function rotateBanner(complectId)
{
	if (!bannerCount) return;
	cr = bannerCurrent + 1;
	if (cr >= (bannerCount) )
	{
		cr = 0;
	}
	for (i = 0; i < bannerCount ; i++)
	{
		if (document.getElementById('banner_' + complectId + '_' + i) )
		{
			document.getElementById('banner_' + complectId + '_' + i).style.display = 'none';
		}
	}
	if (document.getElementById('banner_' + complectId + '_' + cr))
	{
		document.getElementById('banner_' + complectId + '_' + cr).style.display = 'inline';
	}
	bannerCurrent = cr;

	clearTimeout(complectId);
	banTimeOut = window.setTimeout("rotateBanner("+complectId+")",banloopTime);
}