var stPs  = 922; //where the slide up div stops
var startPosition  = 0; //where the slide up div stops
var ffbStep = 50; //speed of the slide up divs
var ffbSpeed = 10;//speed of time in miliseconds between actions
if(navigator.appName == 'Microsoft Internet Explorer')
{
	ffbStep  = 300;
	ffbSpeed = 5;
}
var	footBackDir;
var	footBackDiv;
var	slidingfootBack;
function dofootBack()
{
	slidingfootBack = document.getElementById(footBackDiv);
	var sfbwTMP = parseInt(slidingfootBack.style.width);
	//alert('sfbwTMP: '+sfbwTMP+' - ffbStep: '+ffbStep);
	if(footBackDir == '1')
	{
		if (sfbwTMP < stPs - ffbStep)
		{
			slidingfootBack.style.width = sfbwTMP + ffbStep + "px";
			setTimeout(dofootBack, ffbSpeed);
		}
		else
		{
			slidingfootBack.style.width = stPs+"px"
			var newDiv = footBackDiv+'a';
			document.getElementById(newDiv).style.visibility='visible';
		}
	}
	if(footBackDir == '2')
	{
		if (sfbwTMP > startPosition )
		{
			slidingfootBack.style.width = sfbwTMP - ffbStep + "px";
			setTimeout(dofootBack, ffbSpeed);
		}
		else 
		{
			slidingfootBack.style.width = "87px";
		}
	}
}
function yesFootBack(div, way)
{
	footBackDiv = div;
	footBackDir = way;
	dofootBack();
}

