
function getTime() {
now = new Date();

//ENTER BELOW THE DATE YOU WISH TO COUNTDOWN TO
later = new Date("September 12 2010 09:00:00");

days = (later - now) / 1000 / 60 / 60 / 24;
daysRound = Math.floor(days);
hours = (later - now) / 1000 / 60 / 60 - (24 * daysRound);
hoursRound = Math.floor(hours);
minutes = (later - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
minutesRound = Math.floor(minutes);
seconds = (later - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
secondsRound = Math.round(seconds);

//background-position: -10px 0px;

if (secondsRound <= 9) {
$("#g").css('background-position','0px 0px');
$("#h").css('background-position','-'+secondsRound+'0px 0px'); 
}
else {
$("#g").css('background-position','-'+Math.floor(secondsRound/10)+'0px 0px');
$("#h").css('background-position','-'+secondsRound%10+'0px 0px'); 
}
if (minutesRound <= 9) {
	$("#d").css('background-position','0px 0px');
	$("#e").css('background-position','-'+minutesRound+'0px 0px');
}
else {
	$("#d").css('background-position','-'+Math.floor(minutesRound/10)+'0px 0px');
	$("#e").css('background-position','-'+minutesRound%10+'0px 0px');
}
if (hoursRound <= 9) {
	$("#y").css('background-position','0px 0px');
	$("#z").css('background-position','-'+hoursRound+'0px 0px');
}
else {
	$("#y").css('background-position','-'+Math.floor(hoursRound/10)+'0px 0px');
	$("#z").css('background-position','-'+hoursRound%10+'0px 0px');
}
if (daysRound <= 9) {
$("#x").css('background-position','0px 0px');
$("#a").css('background-position','0px 0px');
$("#b").css('background-position','-'+daysRound+'0px 0px');
}
else if (daysRound <= 99) {
	$("#x").css('background-position','0px 0px');
$("#a").css('background-position','-'+Math.floor((daysRound/10)%10)+'0px 0px');
$("#b").css('background-position','-'+Math.floor(daysRound%10)+'0px 0px');
}
else {
	$("#x").css('background-position','-'+Math.floor(daysRound/100)+'0px 0px');
	$("#a").css('background-position','-'+Math.floor((daysRound/10)%10)+'0px 0px');
	$("#b").css('background-position','-'+Math.floor(daysRound%10)+'0px 0px');
}
if((jQuery.browser.msie == 'true') && (jQuery.browser.version == '6.0'))
{
	$("#g").remove();
	$("#h").remove();
	$("img[name=i]").remove();
	newtime = window.setTimeout("getTime();", 60000);
}
else newtime = window.setTimeout("getTime();", 1000);
}
//  End -->

<!-- Script Size:  4.12 KB -->