





$(document).ready(function() {


/////////////////TOGGLE SLIDE MENU



// hides the slickbox as soon as the DOM is ready
  $('#toggleInfo').hide();
 
 // toggles the slickbox on clicking the noted link  
  $('a.trigger').click(function() {
    $('#toggleInfo').slideToggle('slow','easeOutBack');
    return false;
  });


 // hides the slickbox on clicking the noted link  
  $('#closeInfoBtnBloc').click(function() {
    $('#toggleInfo').slideUp('slow','easeOutBack');
    return false;
  });






							 
///////////////// OVERLAY IMAGE ENTRY

$(".small-entry").mouseenter(
      function () {
			$(this).find('.entryImg').stop(false,true).fadeTo("300", 0.2);
      });  


$(".small-entry").mouseleave(
      function () {
			$(this).find('.entryImg').stop(false,true).fadeTo("300", 1);
      });



$(".small-entry").mouseenter(
      function () {
			$(this).find('.entryInfo').stop(false,true).fadeTo("300", 1);
      });  


$(".small-entry").mouseleave(
      function () {
			$(this).find('.entryInfo').stop(false,true).fadeTo("300", 0);
      });


///////////////// BACK TO TOP FONCTION	
	
	$('.topBtn h1').click(function(){
		 $('body').scrollTo( { top:0 , left:0}, 1000, {easing:'easeInOutCubic'});
         return false;
	});






});



