/* 
 * @empresa: www.icomp.com.br
 * @site: www.mariaaugustarossini.com.br
 */
// Easing equation, borrowed from jQuery easing plugin
// http://gsgd.co.uk/sandbox/jquery/easing/
jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
 return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

/* Javascript para criação de uma galeria de imagens  scrolling.js */
jQuery(function( $ ){
 $('#slide_de_fotos').serialScroll({
		 items:'li',
		 prev:'#fotos_recentes a.anterior',
		 next:'#fotos_recentes a.proximo',
		 offset:-230, //when scrolling to photo, stop 230 before reaching it (from the left)
		 start:1, //as we are centering it, start at the 2nd
		 duration:1200,
		 force:true,
		 stop:true,
		 lock:false,
		 cycle:false, //don't pull back once you reach the end
		 easing:'easeOutQuart', //use this easing equation for a funny effect
		 jump: true //click on the images to scroll to them
 }); //fim da funcao slide_de_fotos

 $('#slide_livros').serialScroll({
 	 items:'li',
	 prev:'#autora_livros a.anterior',
	 next:'#autora_livros a.proximo',
	 offset:-230, //when scrolling to photo, stop 230 before reaching it (from the left)
	 start:1, //as we are centering it, start at the 2nd
	 duration:1200,
	 force:true,
	 stop:true,
	 lock:false,
	 cycle:false, //don't pull back once you reach the end
	 easing:'easeOutQuart', //use this easing equation for a funny effect
	 jump: false //click on the images to scroll to them, para que seja possivel clicar em algum link e ser redirecionado para uma nova tela alterei o valor dd jump:true para jump:false
 }); //fim da funcao slide de livros
 
  $('#slide_certificados').serialScroll({
 	 items:'li',
	 prev:'#palestrante a.anterior',
	 next:'#palestrante a.proximo',
	 offset:-230, //when scrolling to photo, stop 230 before reaching it (from the left)
	 start:1, //as we are centering it, start at the 2nd
	 duration:1200,
	 force:true,
	 stop:true,
	 lock:false,
	 cycle:false, //don't pull back once you reach the end
	 easing:'easeOutQuart', //use this easing equation for a funny effect
	 jump: true //click on the images to scroll to them
 }); //fim da funcao slide de certificados
	
});