// Box grid rollovers

$(document).ready(function(){
	//To switch directions up/down and left/right just place a "-" in front of the top/left attribute

	//Horizontal Sliding
	$('.boxgrid.captionleft').hover(function(){
		$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({left:'160px'},{queue:false,duration:300});
	});
	
	//Horizontal Sliding
	$('.boxgrid.captionright').hover(function(){
		$(".cover", this).stop().animate({left:'-0px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({left:'-160px'},{queue:false,duration:300});
	});
	
	//Full Caption Sliding (Hidden to Visible)
	$('.boxgrid.captionup').hover(function(){
		$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({top:'110px'},{queue:false,duration:300});
	});
	
	//Full Caption Sliding (Hidden to Visible)
	$('.boxgrid.captiondown').hover(function(){
		$(".cover", this).stop().animate({top:'-0px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({top:'-110px'},{queue:false,duration:300});
	});
	

});


