// portfolio boxgrid 
$(document).ready(function(){
				$('.boxgrid.caption').hover(function(){
					$(".cover", this).stop().animate({top:'40px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'150px'},{queue:false,duration:160});
				});
			});

$(document).ready(function(){
				$('.boxgrid-right.caption').hover(function(){
					$(".cover", this).stop().animate({top:'40px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'150px'},{queue:false,duration:160});
				});
			});


//page peel
$(document).ready(function(){
$( '#target' ).fold({side: 'left', directory: 'turn'});
});


//contact form slidedown
$(document).ready(function(){

	$("#contactLink").click(function(){
		if ($("#contactForm").is(":hidden")){
			$("#contactForm").slideDown("slow");
		}
		else{
			$("#contactForm").slideUp("slow");
		}
	});
	
});

function closeForm(){
	$("#messageSent").show("slow");
	setTimeout('$("#messageSent").hide();$("#contactForm").slideUp("slow")', 2000);
}
