var countFoot=1;
var globFt=0;
var countDivCrous=8;
function autoMvFt()
{
		var totWid=gbi('crouDivin').offsetWidth;
		globFt=680*countFoot;
		
		if(globFt<totWid){
		if(totWid>680)
		{
			countFootNew=0;
			move1ft();
		}
		countFoot++;
		setTimeout('autoMvFt()', 10000);
		}
		else
		{countFoot=1;
		globFt=0;
		move2ft();
		setTimeout('autoMvFt()', 10000);
		}
}
function gbi(layid){
	return document.getElementById(layid);
}
var countFootNew=0;
function move1ft()
{
	if((countFootNew+680)<(170*countDivCrous)){
	if(globFt>countFootNew)
	{gbi('crouDiv').style.left=-countFootNew-10+"px";
	countFootNew=countFootNew+10;
	setTimeout('move1ft()', 5);
	return true;
	}
	else
	return false;
	}
}

function move2ft()
{
	if((countFootNew+680)<=(170*countDivCrous)){
	if(globFt<countFootNew)
	{gbi('crouDiv').style.left=-countFootNew+10+"px";
	countFootNew=countFootNew-10;
	setTimeout('move2ft()', 5);
	return true;
	}
	else
	return false;
	}
}

function move1ftM(){
	if((countFootNew+680)<(170*countDivCrous)){
		if(countFoot<1)
		{countFoot=1}
		globFt=680*countFoot;
		countFootNew=0;
		var flag=move1ft();
		if(flag==true)
		{countFoot++;}
	}
}
function move2ftM(){
	if((countFootNew+680)<=(170*countDivCrous)){
		countFoot=1;
		globFt=0;
		var flag=move2ft();
		if(flag==true)
		{countFoot--;
		globFt=0;
		}
	}
}


