function countDown(id){
	var openingDates = [];
	openingDates[19] = "5 December, 2008";
	
	
	var today  = new Date();
	var todayEpoch  = today.getTime();
	
	target = new Date(""); 
	
	for(var i = 0; i < openingDates.length; i++){
		if(i == id){
			targetEpoch = new Date(openingDates[i]);
			daysLeft = Math.floor(((targetEpoch - todayEpoch) / (60*60*24)) / 1000);
			if(daysLeft > 0){
				//document.write("<h1 style='font-size: 12pt; color: #D06; margin: 10px 10px 10px 31px; text-align: left;'>Opens Wednesday <br />3rd December 2008 in the afternoon.</h1>");
			} else if (daysLeft < 0) {
				//document.write("<h1 style='font-size: 12pt; color: #D06; margin: 10px 10px 10px 31px; text-align: left;'>Now Open!</h1>")
			}
		}
	}
}


