TableauReferenceElementScrollType31 = new Array();

IsLocClick=false;
IndDivRollType31=-1;
IndElemRollType31=-1;	
TimerRollType31=-1;
/* ************************************************************* */ 
function PrepareRollArticleType31(IndDiv,IndElem)
{
	if(TimerRollType31!=-1)
		clearTimeout(TimerRollType31);
	IndDivRollType31=IndDiv;
	IndElemRollType31=IndElem;
	TimerRollType31 = setTimeout("DoRollArticleType31();", 250);
}
/* ************************************************************* */ 
function DoRollArticleType31()
{
	MontreZoomType31(IndDivRollType31,IndElemRollType31);
}
/* ************************************************************* */ 
function MontreZoomType31(IndDiv,IndElem)
{
	if(TimerRollType31!=-1)
		clearTimeout(TimerRollType31);
	TimerRollType31=-1
	$(document).ready(function () 
	{
		var NomDivZoom="#DROPZOOMTYPE31_"+IndDiv+"_"+IndElem;
		$(NomDivZoom).css({ visibility:'visible',left: -312,top:-1});
	});
}
/* ************************************************************* */ 
function CacheZoomType31(IndDiv,IndElem)
{
	if(TimerRollType31!=-1)
		clearTimeout(TimerRollType31);
	TimerRollType31=-1
	IndDivRollType31=-1;
	IndElemRollType31=-1;	
	$(document).ready(function () 
	{
		var NomDivZoom="#DROPZOOMTYPE31_"+IndDiv+"_"+IndElem;
		$(NomDivZoom).css({ visibility:'hidden',left: 0});
	});
}
/* ************************************************************* */  
function InitElementScrollType31(NbElement,IndDiv)
{
	var UnTableau=new Array(3);
	UnTableau[0]=NbElement;
	UnTableau[1]=1;
	UnTableau[2]=IndDiv;
	TableauReferenceElementScrollType31.push(UnTableau);
}
/* ************************************************************* */ 
function CheckFLImageArticleType31(IndElement)
{
	var CurImage=TableauReferenceElementScrollType31[IndElement-1][1];
	var NbImage=TableauReferenceElementScrollType31[IndElement-1][0];
	var IndiceDiv=TableauReferenceElementScrollType31[IndElement-1][2];
	if(CurImage==NbImage)
		EtatFLD="hidden";
	else
		EtatFLD="visible";
	if(CurImage==1)
		EtatFLG="hidden";
	else
		EtatFLG="visible";
	
		$(document).ready(function () 
		{
			var NomFlG="#FLGTYPE31_"+IndiceDiv;
			var NomFlD="#FLDTYPE31_"+IndiceDiv;
			$(NomFlG).css({ visibility:EtatFLG});
			$(NomFlD).css({ visibility:EtatFLD});
		});
}
/* ************************************************************* */ 
function LockClicArticleType31() {
	IsLocClick=true;
}
/* ************************************************************* */ 
function UnLockClicArticleType31() {
	IsLocClick=false;
}
/* ************************************************************* */ 
function FinScrollArticleType31(IndElement) {
	UnLockClicArticleType31();
	CheckFLImageArticleType31(IndElement);
}

/* ************************************************************* */  
function ClicDArticleType31(IndElement) {
	var CurImage=TableauReferenceElementScrollType31[IndElement-1][1];
	var NbImage=TableauReferenceElementScrollType31[IndElement-1][0];
	var IndiceDiv=TableauReferenceElementScrollType31[IndElement-1][2];

	if(!IsLocClick)
	{
		LockClicArticleType31();
		CurImage++;
		TableauReferenceElementScrollType31[IndElement-1][1]=CurImage;
		$(document).ready(
			function () 
			{
				var NomDivMobile="#DEFILEARTICLETYPE31_"+IndiceDiv;
				$(NomDivMobile).animate({ marginLeft: 0, marginTop: 0,top:0, left: (CurImage-1)*(-101) },function(){FinScrollArticleType31(IndElement);});
			}
		);	
	}
}
/* ************************************************************* */ 
function ClicGArticleType31(IndElement) {
	var CurImage=TableauReferenceElementScrollType31[IndElement-1][1];
	var NbImage=TableauReferenceElementScrollType31[IndElement-1][0];
	var IndiceDiv=TableauReferenceElementScrollType31[IndElement-1][2];
	if(!IsLocClick)
	{
		LockClicArticleType31();
		CurImage--;
		TableauReferenceElementScrollType31[IndElement-1][1]=CurImage;
		$(document).ready(
			function () 
			{
				var NomDivMobile="#DEFILEARTICLETYPE31_"+IndiceDiv;
				$(NomDivMobile).animate({ marginLeft: 0, marginTop: 0,top:0, left: (CurImage-1)*(-101) },function(){FinScrollArticleType31(IndElement);});
			}
		);	
	}
}
/* ************************************************************* */ 
