$(document).ready(function(){
		Cufon.replace('.museo700', { fontFamily: 'MuseoBold', hover: true, fontSize: '28' });
		Cufon.replace('.museo500', { fontFamily: 'MuseoReg', hover: true });
		Cufon.replace('.eksjaBold', { fontFamily: 'EksjaBold', hover: true, textShadow: '1px 1px 1px #9bb2c4' });
		
		today  = new Date();
		todayEpoch  = today.getTime();

		target = new Date("15 November, 2010"); 
		targetEpoch = target.getTime();

		// Calculate the number of days left
		var days = '' + Math.floor((targetEpoch-todayEpoch) / 86400000) + ''
		
		// After deducting the days calculate the number of hours left
		var hours = '' + Math.floor(((targetEpoch-todayEpoch) - (days * 86400000 ))/3600000) + ''
		
		// After days and hours , how many minutes are left 
		var minutes = '' + Math.floor(((targetEpoch-todayEpoch) - (days * 86400000 ) - (hours *3600000 ))/60000) + ''
		
		while(days.length < 3){
			days = '0'+days
		}
		while(hours.length < 2){
			hours = '0'+hours
		}
		while(minutes.length <2){
			minutes = '0'+minutes
		}
		
		var formatted_days = ''
		var formatted_hours = ''
		var formatted_minutes = ''
		$.each(days.split(''),function(){
			formatted_days += '<span class="eksjaBold big-rounded">' + this + '</span>'
		});
		$.each(hours.split(''),function(){
			formatted_hours += '<span class="eksjaBold big-rounded">' + this + '</span>'
		});
		$.each(minutes.split(''),function(){
			formatted_minutes += '<span class="eksjaBold big-rounded">' + this + '</span>'
		});
		
		$('#days').append(formatted_days);
		$('#hours').append(formatted_hours);
		$('#minutes').append(formatted_minutes);
	

});