	
	//  The id of the div the timezone countdown is to show
	var lab = 'countdown';    
	var toDate,fromDate,diffDate;
	
	function start() {
		displayTZCountDown(setTZCountDown(),lab);
	}
	
	function setTZCountDown() {
	
		toDate = new Date();
		toDate.setDate(toDate.getDate()+1);
		toDate.setHours(00);
		toDate.setMinutes(00);
		toDate.setSeconds(00);

		fromDate = new Date();
		fromDate.setMinutes(fromDate.getMinutes() + fromDate.getTimezoneOffset());
		diffDate = new Date(0);
		diffDate.setMilliseconds(toDate - fromDate);
		
		return Math.floor(diffDate.valueOf()/1000);
	
	}
	
	function displayTZCountDown(countdown,tzcd) {
	
		// If clock has reached zero, reset for another 24-hour cycle
		if (countdown == 0) {
			countdown = 86400;	
		}		
		
		var secs = countdown % 60; 
		if (secs < 10) {
			secs = '0'+secs;
		}
		var countdown1 = (countdown - secs) / 60;
		var mins = countdown1 % 60; 
		if (mins < 10) mins = '0'+mins;
		countdown1 = (countdown1 - mins) / 60;
		var hours = countdown1 % 24;
		var days = (countdown1 - hours) / 24;
		document.getElementById(tzcd).innerHTML = 'Time remaining for this offer: <strong>' + hours + ':' +mins+ ':' + secs + '</strong>';
		setTimeout('displayTZCountDown('+(countdown-1)+',\''+tzcd+'\');',999);
		
	}
	
	window.onload = start;