/**
 * JS
 * (c) 2008 Darío G. Ruellan / ecimTech
 * http://www.ecimtech.com
 */

$(function()
{
	$('.stars a').tipsy({fade: true});
	
	// Inicializamos
	shine(".stars a.one");
	shine(".stars a.two");
	shine(".stars a.three");
	shine(".stars a.four");
	shine(".stars a.five");
});

function shine(a)
{
	var	star = $(a);

	star.animate({opacity: 1}, function()
	{
		star.animate({opacity: 0.5}, function()
		{
			setTimeout("shine('"+a+"')", randtime());
		});
	});
}

function randtime()
{
	return Math.floor(Math.random()*1000);
}
