function slideLeft()
{
	stopAnimation(this);
	this._animation = new FSite2.Animation(
		document.getElementById('fbcont').style, 
		'right', 
		FSite2.Anim.linear, 
		{time : 500, start : -243, end : 0, onStart: animOnStart, onStep: animOnStep},
		{template: '#px',	precision: 0.1}
	)
}

function slideRight()
{
	stopAnimation(this);
	this._animation = new FSite2.Animation(
		document.getElementById('fbcont').style, 
		'right', 
		FSite2.Anim.linear, 
		{time : 500, start : 0, end : -243, onStart: animOnStart, onStep: animOnStep},	
		{template: '#px',	precision: 0.1}
	)
}

function animOnStart()
{
	if (this.value !== fbobj.elem.actual) {
		this.start = fbobj.elem.actual;
	}
}

function animOnStep()
{
	fbobj.elem.actual = this.value;
}

function stopAnimation(obj)
{
	if (obj._animation) {
		obj._animation.stop();
	}
}

function init()
{
	var elem = document.getElementById('fbcont');
	elem.onmouseover = slideLeft;
	elem.onmouseout = slideRight;
	elem.start = -243;
	elem.actual = -243;
	window.fbobj = {}
	fbobj.elem = elem;
}

FSite2.ready(init);

