
jQuery.fn.liScroll = function(settings) {
	settings = jQuery.extend({travelocity: 0.15}, settings);
	return this.each(function(){
		var $strip = jQuery(this);
		var $wblock = 450;
		var $vitesse = 100000;
		var stripWidth = 0;
		$strip.find("li").each(function(){
			stripWidth += jQuery(this).width();
		});
		$strip.width(stripWidth);
		var $wmin = stripWidth-$wblock;

		function animation(dekal, spid, sens) {
			$strip.animate( { marginLeft:sens+dekal+"px" }, spid, 'linear', function(){
				//toto = setTimeout(3000);
				if(sens=='-'){
					animation(0, spid, '');
				}
				else {
					animation($wmin, spid, '-');
				}
			});
		}
		animation($wmin, $vitesse, '-');
	});	
};

function axome_flash2(swf,large,haut,remplace)
{
	var large = large.replace(/px/, '');
	var haut = haut.replace(/px/, '');
	document.write('<object type="application/x-shockwave-flash" data="'+ swf +'" width="'+ large +'" height="'+ haut +'"><param name="movie" value="'+ swf +'" /><param name="wmode" value="transparent" /><p>'+ remplace +'</p></object>');
}


$(document).ready(function(){
    $("ul#ticker01").liScroll({travelocity: 120000});
	$("#partenaires").click(function() {window.location=$(this).find("a:first").attr("href");});
});
