// JavaScript Document
// Cufon activation
Cufon.replace('h2');
Cufon.replace('h3', {hover:true});
Cufon.replace('ul#nav li', {hover:true});

$(document).ready(function(){	
	$('.ouragenda li').hover(function() {
	  $(this).addClass('dark');
	}, function() {
	  $(this).removeClass('dark');
	});
});

$(window).load(function(){
// custom easing called "custom"
$.easing.custom = function (x, t, b, c, d) {
	var s = 0.2; 
	if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
	return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}
// use the custom easing
$("#left div.scrollable").scrollable({easing: 'custom', speed: 1000, circular: true}).navigator().autoscroll({
	interval: 6000		
});	
$("#right div.scrollable").scrollable({easing: 'custom', speed: 1000, circular: true}).navigator();	
});	
