function toggleEmailAFriend()
{
	var element = document.getElementById('Email-A-Friend');

	if (element.style.display == 'none') { 
		element.style.display = 'inline';
	} else {
		element.style.display = 'none';
	}
}

function togglePayment() {
	var paymentForm = document.getElementById('checkOutPaymentForm');
	var extraInfo = document.getElementById('extraPayByCheckInfo');
	
	
	
	if (paymentForm.style.display == 'inline') {
		paymentForm.style.display = 'none';		
		extraInfo.style.display = 'inline';
		extraInfo.style.width = "280px";
	} else {
		paymentForm.style.display = 'inline';
		extraInfo.style.display = 'none';
	}
	
	
}

function stparticksday() {
today = new Date();
var month = today.getMonth() + 1
var day = today.getDate()
var year = today.getFullYear()

if (month <= 3 && day < 17) { 
		var month = "3"
		var day = "17"
		var year = today.getFullYear()

		BigDay = new Date(month + "/" + day + "/" + year)

		msPerDay = 24 * 60 * 60 * 1000 ;
		timeLeft = (BigDay.getTime() - today.getTime());
		e_daysLeft = timeLeft / msPerDay;
		daysLeft = Math.floor(e_daysLeft);
		e_hrsLeft = (e_daysLeft - daysLeft)*24;
		hrsLeft = Math.floor(e_hrsLeft);
		minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);

		document.write("<strong>" + daysLeft + " days, " + hrsLeft +" hours, " + minsLeft + " minutes to go!</strong>");
} else if (month == 3 && day == 17) {
		document.write("<strong>Happy St. Patrick's Day!</strong>");	
} else {
	var month = "3"
	var day = "17"
	var year = today.getFullYear() + 1

BigDay = new Date(month + "/" + day + "/" + year)

msPerDay = 24 * 60 * 60 * 1000 ;
timeLeft = (BigDay.getTime() - today.getTime());
e_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(e_daysLeft);
e_hrsLeft = (e_daysLeft - daysLeft)*24;
hrsLeft = Math.floor(e_hrsLeft);
minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);

document.write("<strong>" + daysLeft + " days, " + hrsLeft +" hours, " + minsLeft + " minutes to go!</strong>");
}
}