function countdown_side() {
	offset = -5;
	// Ground Cutoff - EST
	groundDate = new Date();
	groundDate.setFullYear(2009,11,16);
    utc = groundDate.getTime() + (groundDate.getTimezoneOffset() * 60000);
    ESTground = new Date(utc + (3600000*offset));
	// 2nd Day Cutoff - EST
	secondDate = new Date();
	secondDate.setFullYear(2009,11,21);
    utc2 = secondDate.getTime() + (secondDate.getTimezoneOffset() * 60000);
    ESTsecond = new Date(utc2 + (3600000*offset));
	// Next Day Cutoff - EST
	nextDate = new Date();
	nextDate.setFullYear(2009,11,22);
    utc3 = nextDate.getTime() + (nextDate.getTimezoneOffset() * 60000);
    ESTnext = new Date(utc3 + (3600000*offset));
	// Today - EST
	today = new Date();
	utc4 = today.getTime() + (today.getTimezoneOffset() * 60000);
	ESTtoday = new Date(utc4 + (3600000*offset));
	myDay = ESTtoday.getDay();
	myDiv = document.getElementById('contest-fp');
	if (ESTground >= ESTtoday) {
		myDiv.innerHTML = '<img src="http://site.shoptronics.com/images/ups-ground-deadline.gif" alt="REMEMBER: Make your purchases on or before DECEMBER 16 To receive your order before December 24th (UPS Ground)">';
	} else if (ESTsecond >= ESTtoday) {
		myDiv.innerHTML = '<img src="http://site.shoptronics.com/images/ups-second-deadline.gif" alt="REMEMBER: Make your purchases on or before DECEMBER 21 To receive your order before December 24th (UPS 2nd Day Air)">';
	} else if (ESTnext >= ESTtoday) {
		myDiv.innerHTML = '<img src="http://site.shoptronics.com/images/ups-next-deadline.gif" alt="REMEMBER: Make your purchases on or before DECEMBER 22 To receive your order before December 24th (UPS Next Day Air)">';
	} else {
		myDiv.innerHTML = '<img src="http://site.shoptronics.com/images/happy-holidays.gif" alt="Happy Holidays from ShopTronics">';
	}
}
function ups_countdown() {
	offset = -5;
	// Ground Cutoff - EST
	groundDate = new Date();
	groundDate.setFullYear(2009,11,16);
    utc = groundDate.getTime() + (groundDate.getTimezoneOffset() * 60000);
    ESTground = new Date(utc + (3600000*offset));
	// 2nd Day Cutoff - EST
	secondDate = new Date();
	secondDate.setFullYear(2009,11,21);
    utc2 = secondDate.getTime() + (secondDate.getTimezoneOffset() * 60000);
    ESTsecond = new Date(utc2 + (3600000*offset));
	// Next Day Cutoff - EST
	nextDate = new Date();
	nextDate.setFullYear(2009,11,22);
    utc3 = nextDate.getTime() + (nextDate.getTimezoneOffset() * 60000);
    ESTnext = new Date(utc3 + (3600000*offset));
	// Today - EST
	today = new Date();
	utc4 = today.getTime() + (today.getTimezoneOffset() * 60000);
	ESTtoday = new Date(utc4 + (3600000*offset));
	myDay = ESTtoday.getDay();
	// Next Day - EST - Midnight
	nextDay = new Date();
	nextDay.setDate(ESTtoday.getDate()+1);
	nextDay.setHours(0);
	nextDay.setMinutes(0);
	nextDay.setSeconds(0);
	nextDay.setMilliseconds(0);
	// Time left in day
	timeLeft = Math.round((nextDay - ESTtoday) / 1000);
	days = Math.floor(timeLeft / (60 * 60 * 24));                               
	timeLeft %= (60 * 60 * 24);
	hours = Math.floor(timeLeft / (60 * 60));
	timeLeft %= (60 * 60);
	minutes = Math.floor(timeLeft / 60);
	timeLeft %= 60;
	seconds = timeLeft;
	dps = 's'; hps = 's'; mps = 's'; sps = 's';
	//ps is short for plural suffix.
	if(days == 1) dps ='';
	if(hours == 1) hps ='';
	if(minutes == 1) mps ='';
	if(seconds == 1) sps ='';
	// Day array
	myDays = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'];
	// Month array
	myMonths = ['January','February','March','April','May','June','July','August','September','October','November','December'];
	// Select Christmas Shipping <div>
	myDiv = document.getElementById('christmas-shipping');
	// If before Ground cutoff
	if (ESTground >= ESTtoday) {
		// Ground only 
		receive = new Date();
		busDays = 8;
		ESTday = ESTtoday.getDay();
		if(ESTday == '5') {
			busDays = 10;
		} else if (ESTday == '6') {
			busDays = 9;
		}
		receive.setDate(ESTtoday.getDate()+busDays);
		receiveMonth = receive.getMonth();
		receiveMonth = myMonths[receiveMonth];
		receiveDay = receive.getDay();
		receiveDay = myDays[receiveDay];
		receiveDate = receive.getDate();
		if(hours == '0') {
			myDiv.innerHTML = 'Order in the next <strong>'+minutes+' minute'+mps+'</strong> and select UPS Ground Shipping to receive your order by<br><strong>'+receiveDay+', '+receiveMonth+' '+receiveDate+', 2009.</strong>';
		} else {
			myDiv.innerHTML = 'Order in the next <strong>'+hours+' hour'+hps+' and '+minutes+' minute'+mps+'</strong> and select UPS Ground Shipping to receive your order by<br><strong>'+receiveDay+', '+receiveMonth+' '+receiveDate+', 2009.</strong>';
		}
	} else if (ESTsecond >= ESTtoday) {
		// Second Day Air
		receiveSecond = new Date();
		busDaysSecond = 3;
		ESTday = ESTtoday.getDay();
		if(ESTday == '3' || ESTday == '4' || ESTday == '5') {
			busDaysSecond = 5;
		} else if (ESTday == '6') {
			busDaysSecond = 4;
		}
		receiveSecond.setDate(ESTtoday.getDate()+busDaysSecond);
		receiveSecondMonth = receiveSecond.getMonth();
		receiveSecondMonth = myMonths[receiveSecondMonth];
		receiveSecondDay = receiveSecond.getDay();
		receiveSecondDay = myDays[receiveSecondDay];
		receiveSecondDate = receiveSecond.getDate();
		if(hours == '0') {
			myDiv.innerHTML = 'Order in the next <strong>'+minutes+' minute'+mps+'</strong> and select UPS 2nd Day Air to receive your order by<br><strong>'+receiveSecondDay+', '+receiveSecondMonth+' '+receiveSecondDate+', 2009.</strong>';
		} else {
			myDiv.innerHTML = 'Order in the next <strong>'+hours+' hour'+hps+' and '+minutes+' minute'+mps+'</strong> and select UPS 2nd Day Air to receive your order by<br><strong>'+receiveSecondDay+', '+receiveSecondMonth+' '+receiveSecondDate+', 2009.</strong>';
		}
		// Next Day Air
		/*receiveNext = new Date();
		busDaysNext = 2;
		ESTday = ESTtoday.getDay();
		if(ESTday == '4' || ESTday == '5') {
			busDaysNext = 4;
		} else if (ESTday == '6') {
			busDaysNext = 3;
		}
		receiveNext.setDate(ESTtoday.getDate()+busDaysNext);
		receiveNextMonth = receiveNext.getMonth();
		receiveNextMonth = myMonths[receiveNextMonth];
		receiveNextDay = receiveNext.getDay();
		receiveNextDay = myDays[receiveNextDay];
		receiveNextDate = receiveNext.getDate();
		if(hours == '0') {
			myDiv.innerHTML += '<br><br>Order in the next <strong>'+minutes+' minute'+mps+'</strong> and select UPS Next Day Air to receive your order by <strong>'+receiveNextDay+', '+receiveNextMonth+' '+receiveNextDate+', 2009.</strong>';
		} else {
			myDiv.innerHTML += '<br><br>Order in the next <strong>'+hours+' hour'+hps+' and '+minutes+' minute'+mps+'</strong> and select UPS Next Day Air to receive your order by <strong>'+receiveNextDay+', '+receiveNextMonth+' '+receiveNextDate+', 2009.</strong>';
		}*/
	} else if (ESTnext >= ESTtoday) {
		// Next Day Air
		receiveNext = new Date();
		busDaysNext = 2;
		ESTday = ESTtoday.getDay();
		if(ESTday == '4' || ESTday == '5') {
			busDaysNext = 4;
		} else if (ESTday == '6') {
			busDaysNext = 3;
		}
		receiveNext.setDate(ESTtoday.getDate()+busDaysNext);
		receiveNextMonth = receiveNext.getMonth();
		receiveNextMonth = myMonths[receiveNextMonth];
		receiveNextDay = receiveNext.getDay();
		receiveNextDay = myDays[receiveNextDay];
		receiveNextDate = receiveNext.getDate();
		if(hours == '0') {
			myDiv.innerHTML = 'Order in the next <strong>'+minutes+' minute'+mps+'</strong> and select UPS Next Day Air to receive your order by<br><strong>'+receiveNextDay+', '+receiveNextMonth+' '+receiveNextDate+', 2009.</strong>';
		} else {
			myDiv.innerHTML = 'Order in the next <strong>'+hours+' hour'+hps+' and '+minutes+' minute'+mps+'</strong> and select UPS Next Day Air to receive your order by<br><strong>'+receiveNextDay+', '+receiveNextMonth+' '+receiveNextDate+', 2009.</strong>';
		}
	} else {
		myDiv.style.display='none';
	}
}

function countdown_side_canada() {
	offset = -5;
	// Ground Cutoff - EST
	groundDate = new Date();
	groundDate.setFullYear(2009,11,17);
    utc = groundDate.getTime() + (groundDate.getTimezoneOffset() * 60000);
    ESTground = new Date(utc + (3600000*offset));
	// 2nd Day Cutoff - EST
	secondDate = new Date();
	secondDate.setFullYear(2009,11,21);
    utc2 = secondDate.getTime() + (secondDate.getTimezoneOffset() * 60000);
    ESTsecond = new Date(utc2 + (3600000*offset));
	// Today - EST
	today = new Date();
	utc4 = today.getTime() + (today.getTimezoneOffset() * 60000);
	ESTtoday = new Date(utc4 + (3600000*offset));
	myDay = ESTtoday.getDay();
	myDiv = document.getElementById('contest-fp');
	if (ESTground >= ESTtoday) {
		myDiv.innerHTML = '<img src="http://site.shoptronics.com/images/ups-can-std-deadline.gif" alt="REMEMBER: Make your purchases on or before DECEMBER 17 To receive your order before December 24th (UPS Canada Standard)">';
	} else if (ESTsecond >= ESTtoday) {
		myDiv.innerHTML = '<img src="http://site.shoptronics.com/images/ups-worldwide-exp-deadline.gif" alt="REMEMBER: Make your purchases on or before DECEMBER 21 To receive your order before December 24th (UPS Worldwide Expedited)">';
	} else {
		myDiv.innerHTML = '<img src="http://site.shoptronics.com/images/happy-holidays.gif" alt="Happy Holidays from ShopTronics">';
	}
}
function ups_countdown_canada() {
	offset = -5;
	// Ground Cutoff - EST
	groundDate = new Date();
	groundDate.setFullYear(2009,11,17);
    utc = groundDate.getTime() + (groundDate.getTimezoneOffset() * 60000);
    ESTground = new Date(utc + (3600000*offset));
	// 2nd Day Cutoff - EST
	secondDate = new Date();
	secondDate.setFullYear(2009,11,21);
    utc2 = secondDate.getTime() + (secondDate.getTimezoneOffset() * 60000);
    ESTsecond = new Date(utc2 + (3600000*offset));
	// Today - EST
	today = new Date();
	utc4 = today.getTime() + (today.getTimezoneOffset() * 60000);
	ESTtoday = new Date(utc4 + (3600000*offset));
	myDay = ESTtoday.getDay();
	// Next Day - EST - Midnight
	nextDay = new Date();
	nextDay.setDate(ESTtoday.getDate()+1);
	nextDay.setHours(0);
	nextDay.setMinutes(0);
	nextDay.setSeconds(0);
	nextDay.setMilliseconds(0);
	// Time left in day
	timeLeft = Math.round((nextDay - ESTtoday) / 1000);
	days = Math.floor(timeLeft / (60 * 60 * 24));                               
	timeLeft %= (60 * 60 * 24);
	hours = Math.floor(timeLeft / (60 * 60));
	timeLeft %= (60 * 60);
	minutes = Math.floor(timeLeft / 60);
	timeLeft %= 60;
	seconds = timeLeft;
	dps = 's'; hps = 's'; mps = 's'; sps = 's';
	//ps is short for plural suffix.
	if(days == 1) dps ='';
	if(hours == 1) hps ='';
	if(minutes == 1) mps ='';
	if(seconds == 1) sps ='';
	// Day array
	myDays = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'];
	// Month array
	myMonths = ['January','February','March','April','May','June','July','August','September','October','November','December'];
	// Select Christmas Shipping <div>
	myDiv = document.getElementById('christmas-shipping');
	// If before Ground cutoff
	if (ESTground >= ESTtoday) {
		// Ground only 
		receive = new Date();
		busDays = 7;
		ESTday = ESTtoday.getDay();
		if(ESTday == '0') {
			busDays = 5;
		} else if (ESTday == '6') {
			busDays = 6;
		}
		receive.setDate(ESTtoday.getDate()+busDays);
		receiveMonth = receive.getMonth();
		receiveMonth = myMonths[receiveMonth];
		receiveDay = receive.getDay();
		receiveDay = myDays[receiveDay];
		receiveDate = receive.getDate();
		if(hours == '0') {
			myDiv.innerHTML = 'Order in the next <strong>'+minutes+' minute'+mps+'</strong> and select UPS Canada Standard Shipping to receive your order by<br><strong>'+receiveDay+', '+receiveMonth+' '+receiveDate+', 2009.</strong>';
		} else {
			myDiv.innerHTML = 'Order in the next <strong>'+hours+' hour'+hps+' and '+minutes+' minute'+mps+'</strong> and select UPS Canada Standard Shipping to receive your order by<br><strong>'+receiveDay+', '+receiveMonth+' '+receiveDate+', 2009.</strong>';
		}
	} else if (ESTsecond >= ESTtoday) {
		// Second Day Air
		receiveSecond = new Date();
		busDaysSecond = 3;
		ESTday = ESTtoday.getDay();
		if(ESTday == '3' || ESTday == '4' || ESTday == '5') {
			busDaysSecond = 5;
		} else if (ESTday == '6') {
			busDaysSecond = 4;
		}
		receiveSecond.setDate(ESTtoday.getDate()+busDaysSecond);
		receiveSecondMonth = receiveSecond.getMonth();
		receiveSecondMonth = myMonths[receiveSecondMonth];
		receiveSecondDay = receiveSecond.getDay();
		receiveSecondDay = myDays[receiveSecondDay];
		receiveSecondDate = receiveSecond.getDate();
		if(hours == '0') {
			myDiv.innerHTML = 'Order in the next <strong>'+minutes+' minute'+mps+'</strong> and select UPS Worldwide Expedited to receive your order by<br><strong>'+receiveSecondDay+', '+receiveSecondMonth+' '+receiveSecondDate+', 2009.</strong>';
		} else {
			myDiv.innerHTML = 'Order in the next <strong>'+hours+' hour'+hps+' and '+minutes+' minute'+mps+'</strong> and select UPS Worldwide Expedited to receive your order by<br><strong>'+receiveSecondDay+', '+receiveSecondMonth+' '+receiveSecondDate+', 2009.</strong>';
		}
	} else {
		myDiv.innerHTML = '<br><br>';
	}
}