// SIFR
if(typeof sIFR == "function") {
    sIFR.replaceElement(".texte h1", named({sFlashSrc: FONT_LOCATION+"pepita.swf", sColor: "#b6101d", sAltColor: "#3e3930", sBgColor: "#ffffff", sFlashVars: "textalign=right", sWmode: "transparent"}));
    sIFR.replaceElement(".texte h2", named({sFlashSrc: FONT_LOCATION+"pepita.swf", sColor: "#332f28", sAltColor: "#b6101d", sBgColor: "#ffffff", sFlashVars: "textalign=left", sWmode: "transparent"}));
    sIFR.replaceElement(".content h1", named({sFlashSrc: FONT_LOCATION+"pepita.swf", sColor: "#b6101d", sAltColor: "#ffffff", sBgColor: "#ffffff", sFlashVars: "textalign=left", sWmode: "transparent"}));
    sIFR.replaceElement(".actu h2", named({sFlashSrc: FONT_LOCATION+"pepita.swf", sColor: "#433e35", sAltColor: "#333333", sBgColor: "#ffffff", sFlashVars: "textalign=left", sWmode: "transparent"}));
	};
	

$jQ.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

jQuery(function( $ ){
	var $news = $jQ('#news-ticker');//we'll re use it a lot, so better save it to a var.
	$news.serialScroll({
		items:'div',
		duration:700,
		force:true,
		axis:'y',
		lazy:true,//NOTE: it's set to true, meaning you can add/remove/reorder items and the changes are taken into account.
		interval:4000, //yeah! I now added auto-scrolling
		step:1 //scroll 2 news each time
	});	
});
