$(document).ready(function() {
	/* Navigation */
	$("#nav ul li ul:not('.active')").addClass('hide');
	$('#nav ul li').hover(function() {
		$(this).children("ul:not('.active')").removeClass('hide').addClass('show');
	}, function() {
		$(this).children("ul:not('.active')").removeClass('show').addClass('hide');
	});
	var navheight = $('#header #nav').css("height");
	$('#projectpage #projectinfo').css("height",navheight);
	
	/* Logo Hover Effect */
	$('#logo').hover(function() {
		$(this).css("background", "#d8151c").css("cursor","pointer");
	}, function() {
		$(this).css("background", "#000")
	});
	
	$('#logo').click(function() {
		window.location.href="/";
	});
	
	/* Project Page Info Box */
	$('#projectpage #more').hide();
	var moreinfotxt = "+ More Info";
	var lessinfotxt = "- Less Info";
	$('#projectpage #projectinfo').append('<a id="showhide" href="#">'+moreinfotxt+'</a>');
	$('#projectpage #showhide').click(function() {
		$('#projectpage #more').toggle();
		if ($(this).text() == moreinfotxt) {
			$(this).text(lessinfotxt);
			/*
			if ($('#projectpage #content #more').height() > 600) {
				$('#projectpage #content').addClass('scroll');
			}
			*/
		} else {
			$(this).text(moreinfotxt);
			/*
			if ($('#projectpage #content #more').height() > 600) {
				$('#projectpage #content').removeClass('scroll');
			}
			*/
		}
		return false;
	});
	
	/* List Page */
	/*
	if ($('#listpage #content').height() > 600) {
		$('#listpage #content').addClass('scroll');
	}
	*/
			
});

