//var labels = null;
var step = 0;
var blinker = null;

function blink(elementid)
{ 
	blinker = setInterval ("changecolor('"+elementid+"')", 400);
	
	//labels = ['Download', 'dOwnload', 'doWnload', 'dowNload', 'downLoad', 'downlOad', 'downloAd', 'downloaD'];
}

function changecolor(x) 
{ 
	var x= document.getElementById(x);
	if (x != null)
	{
		// Just blink a few times, then stop
		if (step == 6 && blinker != null)
		{
			x.style.visibility='visible';
			clearInterval(blinker);
		}
		else
		{
			x.style.visibility=(x.style.visibility=='visible')?'hidden':'visible';
		}
		step++;
	}
		
	// var x= document.getElementById(x);
	/*if (x != null)
	{
		if (step < labels.length)
			x.innerHTML = labels[step];
		step++;
		if (step == labels.length * 2)
			step = 0;

	}*/
	/*if (x != null)
	{
		if (step < 6)
		{
			x.style.visibility=(x.style.visibility=='visible')?'hidden':'visible';
		}
		else
		{	// Show visible for a few seconds complete second
			x.style.visibility='visible';
		}
	}
	step++;
	if (step == 10)
		step = 0;*/
}

