function setTopLink()
{
	var userAxis = document.documentElement.scrollTop;
	var FFHeight = window.innerHeight;
	
	if(FFHeight > 0)
	{
		//Firefox Height
		var windowHeight = (FFHeight + 60);

	}
	else
	{
		var windowHeight = document.documentElement.clientHeight;
	}
	
	
	if (windowHeight < 580 && userAxis < 10)
	{
		document.getElementById('backToTop').style.display= "none";
	}
	else
	{
		document.getElementById('backToTop').style.display= "block";
	}
	
	var yAxis = (userAxis - 10);
	var i_currentMargin = $('backToTop').getStyle('margin-top').toInt();

	if(i_currentMargin != yAxis)
	{

		if(o_toTopStyle == '')
		{
			o_toTopStyle = new Fx.Style('backToTop', 'margin-top',{duration: 1000})
		}
	
		o_toTopStyle.start(i_currentMargin,yAxis);

	}
}

setInterval("setTopLink()",500);

var o_toTopStyle = '';
