var header = {	autoScroll: true,	autoScrollIntervalId: null,	resizeButton : null,	resizeSmall : null,	resizeLarge : null,			onSlide : false,	defaultWidth:null,	countImg:0,		start : function ()	{				onSlide = false;		//defaultWidth = $(".titleBloc table td:first").width();						header.autoScrollIntervalId = setInterval('header.slideLeft();', 2000);					},		initEvent : function(){		//$('div#MCrise_1 img').	},		slideLeft : function(){		onSlide = true;		header.countImg++;		var tleft = parseInt($("div#containerImg").css("left"));						$("div#containerImg").animate({								left : (tleft - 180)							},'slow', header.checkEnd);	},		slideRight : function(){		onSlide = true;		header.countImg--;		var tleft = parseInt($("div#containerImg").css("left"));		$("div#containerImg").animate({								left : tleft + 180							},'slow', header.checkEnd2 );	},		checkEnd : function(){		if(header.countImg == 2){			clearInterval(header.autoScrollIntervalId);			header.autoScrollIntervalId = setInterval('header.slideRight();', 4000);					}	},		checkEnd2 : function(){		if(header.countImg == 0){			clearInterval(header.autoScrollIntervalId);			header.autoScrollIntervalId = setInterval('header.slideLeft();', 4000);					}	},		endSlide : function(e) {		onSlide = false;		var i = 1;		/*$('div#containerImg img').each(function(e) {			$(this).css("left",  340 * i);		})*/		$('div#containerImg').append($('div#containerImg img:first').get());		//alert($('div#containerImg img:first').get());		//$('div#containerImg img:first').css("left",  1020);	},		continuousSlide : function(){		header.autoScrollIntervalId = setInterval('$(".titleBloc a.nextAct").trigger("click");', 15000);	},		killContinuousSlide : function(){		clearInterval(header.autoScrollIntervalId);	},		countHeader : function(){		if($(".titleBloc table td").size() == 1){			$(".titleBloc .leftarrow").css("visibility","hidden");			$(".titleBloc .rightarrow").css("visibility","hidden");		}else{			$(".titleBloc .rightarrow").css("visibility","visible");			}	}	};