// JavaScript Document

//run the currently selected effect
	function runEffectDockAccueil(distance){
		// Animation

		
		var animation = {};
		
		//window.document.getElementById("scrollRight").src = "../../images2/accueil_cafr/bloc_produits_droite.jpg"
		//window.document.getElementById("scrollLeft").src = "../../images2/accueil_cafr/bloc_produits_gauche.jpg"		
	
		var str_pos = document.getElementById("product_lst").style.left;
		var int_pos = parseFloat(str_pos.substr(0,str_pos.length-2)) 
		if (isNaN(int_pos)) int_pos=0;
		
		int_pos += distance;
		
		if (distance>=0 && int_pos >= 0){
			int_pos = 0 - (document.getElementById("product_lst").offsetWidth/2);
			document.getElementById("product_lst").style.left = int_pos + 'px';
			int_pos += distance;

		}else if (distance<0 && Math.abs(int_pos) >= (document.getElementById("product_lst").offsetWidth - document.getElementById("product_menu_lst").offsetWidth)){
			int_pos = 0 - (document.getElementById("product_lst").offsetWidth/4);
			document.getElementById("product_lst").style.left = int_pos + 'px';
			int_pos += distance;
			//window.document.getElementById("scrollRight").src = "";
		}

		animation['left'] = int_pos;
		
		//run the effect
		$("#product_lst").animate(animation, { queue: false, duration: 1000, easing: 'easeOutQuad'});

	};

