$(document).ready(function() {
	if (navigator.appName != 'Microsoft Internet Explorer') {
		$('#ShareThisPage-Favourite').hide();
	}

	$("div.PrintEmailFavourite .Email").click(function() {
		$("#SendToFriend").slideDown();
		return false;
	});

	$("#countdown-number").html(daysLeft());
});

function daysLeft() {
	var today  = new Date();
	todayEpoch  = today.getTime();

	var target = new Date("18 March, 2012"); 
	targetEpoch = target.getTime();

	var daysLeft = Math.floor(((targetEpoch - todayEpoch) / (60*60*24)) / 1000);

	return daysLeft;
}

