/*

	Stan Taft Main Javascript File

*/

$('.boxgrid').hover(function(){
	$(".cover", this).stop().animate({top:'105px'},{queue:false,duration:300});
}, function() {
	$(".cover", this).stop().animate({top:'125px'},{queue:false,duration:300});
});

$('.gallery-icon a img').hover(
	function(){
		//mouse over
		$(this).fadeTo('fast', 0.5);
	},
	function(){
		//mouse out
		$(this).fadeTo('fast', 1);
	}
);

$('.gallery-icon a').lightBox({
	overlayBgColor: '#fff',
	overlayOpacity: 0.95,
	txtImage: '',
	txtOf: '/'
});

if($('#casestudy').length){

	$('a[rel*=casestudy]').lightBox({
		overlayBgColor: '#fff',
		overlayOpacity: 0.95,
		txtImage: '',
		txtOf: '/'
	});
}



