$(document).ready(function() {
	//borrowed from jQuery easing plugin
	//http://gsgd.co.uk/sandbox/jquery.easing.php
	$.easing.easeOutQuad = function(x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	};

	$("p.top a").each(
		function(){
			$(this).attr("href","javascript:;");
		}
	);
	$("a[rel=tBlank]").each(
		function(){
			$(this).attr("target","_blank");
		}
	);
	
	$("div.project").hover(
		function() {
			$(this).find("div.info").animate({opacity: "1.00",height:"100%"}, 500);
		}, function() {
			$(this).find("div.info").animate({opacity: "hide",height:0}, 350 );
	});
	$("div.type2 div.project").hover(
		function() {
			$(this).find("div.info").animate({opacity: "show",height:"25.2em"}, 500);
		}, function() {
			$(this).find("div.info").animate({opacity: "hide",height:0}, 350 );
	});
	$("#subNavigation li a").click(function(){
		$.scrollTo( $("#"+$(this).attr("rel")), 100,{easing:'easeOutQuad'} );
	});
	$("p.top a").click(function(){
		$.scrollTo( {top:'0'}, 100,{easing:'easeOutQuad'} );
	});
});