				var _originalY2 = -1;
var _slideTime2 = 1200;

var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

window.setInterval("_main2()", 10);

function _getScrollTop2()
{
	if (window.pageYOffset)
	{
    	return window.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.scrollTop)
	{
		return document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		return document.body.scrollTop
	}

	return 0;
}

function _getClientWidth2()
{
	if (window.innerWidth)
	{
    	return window.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
    	return document.documentElement.clientWidth;
	}
	else if (document.body)
	{
		return document.body.clientWidth;
	}
}

function _getLayerY2(obj)
{
	var curtop2 = 0;

	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop2 += obj.offsetTop;
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
	{
		curtop2 += obj.y;
	}

	return curtop2;
}

function _main2()
{

	
	if (ns4)
	{
		this._currentY2 = document.sidebar.top;
		this._scrollTop2 = _getScrollTop2();

		if (this._originalY2 <= 0)
		{
			this._originalY2 = _getLayerY2(sidebar);
		}

		_mainTrigger2();
	}
	else if (ns6)
	{
		this._currentY2 = (document.getElementById('sidebar').style.top == "" ? 0 : parseInt(document.getElementById('sidebar').style.top));
		this._scrollTop2 = _getScrollTop2();

		if (this._originalY2 <= 0)
		{
			this._originalY2 = _getLayerY2(document.getElementById('sidebar'));
		}

		_mainTrigger2();
	}
	else if (ie4)
	{
		this._currentY2 = sidebar.style.pixelTop;
		this._scrollTop2 = _getScrollTop2();

		if (this._originalY2 <= 0)
		{
			this._originalY2 = _getLayerY2(sidebar);
		}

		_mainTrigger2();
	}
}

function _mainTrigger2()
{
	var newTargetY2 = 0;

	if (this._scrollTop2 > this._originalY2)
	{
		newTargetY2 = this._scrollTop2 - this._originalY2;
	}

	if (this._currentY2 != newTargetY2 )
	{
		if (newTargetY2 != this._targetY2 )
		{
			this._targetY2 = newTargetY2

			_floatStart2();
		}

		_animator2();
	}
}

function _floatStart2()
{
	var now = new Date();

	this._A2 = this._targetY2 - this._currentY2;
	this._B2 = Math.PI / (2 * this._slideTime2);
	this._C2 = now.getTime();

	if (Math.abs(this._A2) > this._findHt2)
	{
		this._D2 = this._A2 > 0 ? this._targetY2 - this._findHt2 : this._targetY2 + this._findHt2;
		this._A2 = this._A2 > 0 ? this.findHt2 : - this._findHt2;
	}
	else
	{
		this._D2 = this._currentY2;
	}
}

function _animator2()
{
	var now2 = new Date();
	var newY2 = this._A2 * Math.sin(this._B2 * (now2.getTime() - this._C2)) + this._D2;

	newY2 = Math.round(newY2);

	if ((this._A2 > 0 && newY2 > this._currentY2 ) || ( this._A2 < 0 && newY2 < this._currentY2 ))
	{
		if (ie4) sidebar.style.pixelTop = newY2;
		if (ns4) document.sidebar.top = newY2;
		if (ns6) document.getElementById('sidebar').style.top = newY2 + "px";
	}
}

