function mycarousel_initCallback(carousel)
{
	jQuery('#delante').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#atras').bind('click', function() {
        carousel.prev();
        return false;
    });
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto();
    }, function() {
        carousel.startAuto();
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto();
    }, function() {
        carousel.startAuto();
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};
$(document).ready(function(){
    $("#mycarousel").jcarousel({
        animation: 'slow',
        scroll: 1,
        auto: 2,
        wrap: 'last',
        initCallback: mycarousel_initCallback,
		buttonNextHTML: null,
        buttonPrevHTML: null
    });

	$('.boxgrid.captionfull').hover(function(){
		$(".cover", this).stop().animate({top:'75px'},{queue:false,duration:160});
		  }, function() {
			  $(".cover", this).stop().animate({top:'170px'},{queue:false,duration:160});
		  });
});
