$(document).ready(function() {

								

	var EventDate= new Date("April 20, 2010 18:30:00").getTime();



	function UpdateCountdown() {

		var CurrentDate = new Date().getTime();

		var SecRemaining = ( EventDate - CurrentDate ) / 1000;

					

		if(SecRemaining < 0) {

			$('.RealTime').html('00:00:00');

		} else {

		

			var Days = Math.floor(SecRemaining/86400);

			SecRemaining = SecRemaining%86400;

						

			var Hours = Math.floor(SecRemaining/3600);

			SecRemaining = SecRemaining%3600;

						

			var Minutes = Math.floor(SecRemaining/60);

			SecRemaining = Math.floor(SecRemaining%60);

			if(Days < 10) {
				Days = '0'+Days;	
			}
			if(Hours < 10) {
				Hours = '0'+Hours;	
			}

			if(Minutes < 10) {
				Minutes = '0'+Minutes;
			}

			if(SecRemaining < 10) {
				SecRemaining = '0'+SecRemaining;	
			}

			$('.Days').html(Days);	
			$('.Hours').html(Hours);	
			$('.Minutes').html(Minutes);	
			$('.Seconds').html(SecRemaining);	
		}

					

		setTimeout (UpdateCountdown, 1000); 

	}

				

	UpdateCountdown();

});
