// Custom jQuery scripts for the Harper Team child theme

jQuery.noConflict();
jQuery(document).ready(function($){
	// JSliding Boxes and Captions with jQuery
	// http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/
	//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
	//Caption Sliding (Partially Hidden to Visible)
	$('.boxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
		$("#caption-menu-slide-" + $(this).attr("id").match(/[\d]+$/)).show();
	}, function() {
		$(".cover", this).stop().animate({top:'72px'},{queue:false,duration:160});
		$("#caption-menu-slide-" + $(this).attr("id").match(/[\d]+$/)).hide();
	});

	//Add custom classes to LI elements
	$("ul li:first-child").addClass("first-child");
	$("ul li:last-child").addClass("last-child");

});
