$(document).ready(function() {

	// assign first project button active status
	$(".work-buttons li:first a").addClass("active");
	
	// hide all but first project
	$(".project").filter(":gt(0)").hide().end()
	.filter(":first").addClass("active");
	
	// button actions
	$(".work-buttons li a").each(function(i) {
		$(this).click(function() {
			var target = $(".projects").get(0);
			
			if($(this).attr("class") == "active") {
				return false;
			}
			
			$(".work-buttons li a").removeClass("active");
			
			$(".project").filter(".active").removeClass("active").hide().end()
			.filter(".project:eq("+i+")").addClass("active").show();
			
			/*
			$(this).addClass("active").TransferTo({
				to: target,
				className: "transfer",
				duration: 500,
				complete: function(){ $(".transfer").hide(); }
			});
			*/
			$(this).addClass("active");
			
			return false;
		});
	});

});