function changeSize(object, time, min, max)
{
	var link = eval(object);
	if (link.style.fontSize == max+'px')
	{
		link.style.fontSize = min;
		link.style.fontWeight = 'bold';
	}
	else
	{
		link.style.fontSize = max;
		link.style.fontWeight = 'normal';
	}
	setTimeout('changeSize("'+object+'",'+time+','+min+','+max+');', time);
}

function highlighter(ids, num, time, cur)
{
	var hili = cur;
	if (hili >= num) hili = num*2-cur-2;
	for (var i=0; i<num; i++)
	{
		if (i == hili)
		{
			eval(ids+i).style.fontWeight = 'bold';
		}
		else
			eval(ids+i).style.fontWeight = 'normal';
	}
	cur = (cur+1)%((num-1)*2);
	setTimeout('highlighter("'+ids+'",'+num+','+time+','+cur+');', time);
}

function colorChanger(ids, num, time, cur, color1, color2)
{
	var hili = cur;
	if (hili >= num) hili = num*2-cur-2;
	for (var i=0; i<num; i++)
	{
		if (i == hili)
		{
			eval(ids+i).style.backgroundColor = color2;
			eval(ids+i).style.color = color1;
		}
		else
		{
			eval(ids+i).style.backgroundColor = '';
			eval(ids+i).style.color = '';
		}
	}
	cur = (cur+1)%((num-1)*2);
	setTimeout('colorChanger("'+ids+'",'+num+','+time+','+cur+',"'+color1+'","'+color2+'");', time);
}

function writeColorChangerText(text, id, time, color1, color2)
{
	for (var i=0;i<text.length;i++)
	{
		document.write('<span id="'+(id+i)+'">'+text.charAt(i)+'</span>');
	}
	setTimeout('colorChanger("'+id+'",'+text.length+','+time+','+0+',"'+color1+'","'+color2+'");', time);
}