/* Adds hover styles to the navigation items */
function setupNavigation() {
	if ($.browser.msie && $.browser.version < 7) {
		$('#navigation .item').hover(
			function () {
				$(this).addClass('hover');
			}, 
			function () {
				$(this).removeClass('hover');
			}
		);
	}
}

/* Adds lightbox functionality to gallery images */
function setupLightboxes() {
	$('.lightbox').lightBox();
}

/* Writes an e-mail link to the document by javascript to fool spam spiders */
function spamProtectEmail(user, domain, text) {
	email = user + '@' + domain;
	if (text == undefined) document.write("<a href=\"mailto:" + email + "\">" + email + "<\/a>");
	else document.write("<a href=\"mailto:" + email + "\">" + text + "<\/a>");
}
