// $(document).ready(function(){
// 
// 	// on hover of a gallery item do...
// 	$('.gallery li').hover(function(){
// 
// 		// slide up the caption by 70px (160px - 90px)
// 		$(".caption", this).stop().animate({top:'90px'},{queue:false,duration:160});
// 
// 	// off hover
// 	}, function() {
// 
// 		// slide down the caption to original position (160px from the top of the gallery item)
// 		$(".caption", this).stop().animate({top:'160px'},{queue:false,duration:160});
// 	});
// });
$(document).ready(function(){
	
	// on hover of a gallery item do...
	$('.gallery li').hover(function(){
		// slide up the caption by 70px (160px - 90px)
		$(".img-message", this).stop().animate({bottom:'0px'},{queue:false,duration:160});
	// off hover
	}, function() {
		// slide down the caption to original position (160px from the top of the gallery item)
		$(".img-message", this).stop().animate({bottom:'-45px'},{queue:false,duration:160});
	});

	// portfolio images
	$('.gallery li:nth-child(even)').addClass('margin-left');
	
	// ?
	//$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	
	// smooth scroll
	$('.backtotop').smoothScroll({offset: -100}); // 
	
	// lightbox settings
	$('a[rel=lightbox]').lightBox({
		overlayBgColor: 		'#ccc',		// (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color.
		overlayOpacity:			0.8,		// (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9
		// Configuration related to navigation
		fixedNavigation:		true,		// (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface.
		// Configuration related to images
		imageLoading:			'assets/img/ajax-loader.gif',		// (string) Path and the name of the loading icon
		imageBtnPrev:			'assets/img/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
		imageBtnNext:			'assets/img/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
		imageBtnClose:			'assets/img/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
		imageBlank:				'assets/img/lightbox-blank.gif',			// (string) Path and the name of a blank image (one pixel)
		// Configuration related to container image box
		containerBorderSize:	10,			// (integer) If you adjust the padding in the CSS for the container, #lightbox-container-image-box, you will need to update this value
		containerResizeSpeed:	400,		// (integer) Specify the resize duration of container image. These number are miliseconds. 400 is default.
		// Configuration related to texts in caption. For example: Image 2 of 8. You can alter either "Image" and "of" texts.
		txtImage:				'Image',	// (string) Specify text "Image"
		txtOf:					'of',		// (string) Specify text "of"
		// Configuration related to keyboard navigation
		keyToClose:				'c',		// (string) (c = close) Letter to close the jQuery lightBox interface. Beyond this letter, the letter X and the SCAPE key is used to.
		keyToPrev:				'p',		// (string) (p = previous) Letter to show the previous image
		keyToNext:				'n'		// (string) (n = next) Letter to show the next image.
	});
	
});
