// footer heights
$("#footer .col[id!=footer-menu]").height($("#footer-menu").height()-6);


// time and date
var days = [
	"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
	"Friday", "Saturday", "Sunday"
];
var months = [
	"January", "February", "March", "April", "May", "June", "July", 
	"August", "September", "October", "November", "December"
];
function writeCurrentDate() {
	var d = new Date();
	var utc = d.getTime() + (d.getTimezoneOffset() * 60000);
	var now = new Date(utc + baseTimezone);
	var currentDate = "";
	currentDate += days[now.getDay()] + ", ";
	currentDate += now.getDate() + " ";
	currentDate += months[now.getMonth()] + " ";
	currentDate += now.getFullYear() + ". ";
	currentDate += (now.getHours() > 12) ? (now.getHours() - 12) : now.getHours();
	currentDate += ":";
	currentDate += (now.getMinutes() < 10) ? "0" + now.getMinutes() : now.getMinutes();
	currentDate += (now.getHours() >= 12) ? "pm" : "am";
	if (now.getHours() != new Date().getHours()) {
		currentDate += " (UK)";
	}
	$("#current-date").html(currentDate);
}
writeCurrentDate();
//setInterval(writeCurrentDate, 1000 * 20);

// menu rollover
$("#menu ul li")
.mouseenter(function() {
	var _this = $(this);
	_this.addClass("hover");
	if (_this.hasClass("first")) {
		_this.addClass("hover-first");
	}
	if (_this.hasClass("last")) {
		_this.addClass("hover-last");
	}
})
.mouseleave(function(e) {
	var _this = $(this);
	_this.removeClass("hover");
	_this.removeClass("hover-first");
	_this.removeClass("hover-last");
});

// pod rollover
$("#pods .pod")
.mouseenter(function() {
	$(".pod-text", this).show();
	$(".pod-image h2", this).hide();
})
.mouseleave(function() {
	$(".pod-text", this).hide();
	$(".pod-image h2", this).show();
})
.click(function() {
	window.location.href = $("a", this)[0].href;
});