$(document).ready(function() {

	// Hide the gallery next and prev buttons
	$('.next, .prev').hide();
	
	//On scroll over the gallery show the prev and next buttons
	$('.gallery, .artist_gallery').hover(function() {
		$('.prev, .next').fadeIn('slow');
	},function() {
		$('.prev, .next').fadeOut('slow');
	});
	
	//On scroll over a photo_gallery itm animate it
	$('.photo_itm').hover(function() {
		$(this).animate({top: '-=5'}, 300);
	},function() {
		$(this).animate({top: '+=5'}, 500);
	});
	
	// Initiate the homepage gallery
	$(".gallery").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        visible: 1,
        speed: 1000,
        circular: 'true'
    });

	// Initiate the gallery on the repertoire page
	$(".artist_gallery").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        visible: 2,
	    auto: 2000,
        speed: 800,
        circular: 'true'
    });

	// Fancybox for pics in photo gallery
	$('.fancybox').fancybox();

});
