
//PokerListings.modules.ExclusiveBonuses =
//{
//	run: function()
//	{
//		$('#eb-ebo td:last-child a, #eb-sef td:last-child a').toolTip({
//			ajax: function(elm)
//			{
//				return '/modules/ajax-tool-tip.php?room=' +elm.attr('href').replace(/\//, '');
//			}, 
//			on: 'click'
//		});
//	}
//};
function calcage(secs, num1, num2)
{
	s = ((Math.floor(secs/num1))%num2).toString();
	
	if(s.length < 2)
	{
		s = "0" + s;
	}

	return s;
}

// Count down timers in "Live" Top-Lists
function countDown()
{
	var clock_time = new Date();
	var clock_hours = clock_time.getHours();
	var clock_minutes = clock_time.getMinutes();
	var clock_seconds = clock_time.getSeconds();

	var secs = parseInt(clock_hours, 10)*3600 + parseInt(clock_minutes, 10)*60 + parseInt(clock_seconds, 10);

	var hours = calcage(secs, 3600, 365);
	var minutes = calcage(secs, 60, 60);
	var seconds = calcage(secs, 1, 60);

	$(countDownWhere).html(hours +':' +minutes +':' +seconds);
	
	setTimeout("countDown()", 1000);
}