function imageover(i)
{
	document.getElementById(i).src='/images/events/betnow_over.gif';
}
function imageout(i)
{
	document.getElementById(i).src='/images/events/betnow.gif';
}

function fraction(decimal)
{
	decimal=parseFloat(decimal);
		
	decimal=decimal-1;
	
	if (decimal==Math.round(decimal))
	{
		if (decimal==1)
		{
			return 'Evens';
		} else {
			return Math.round(decimal) + '/1';
		}
	}
	for(k=2;k<100;k++)
	{
		if (Math.abs((decimal*k)-Math.round(decimal*k))<0.01)
		{
			return Math.round(decimal*k) + '/' + k;
		}
		k++;
	}

	return decimal + '/1';
}