function Init()
{
	if (window.pageYOffset != null)
	{
		accessDefaultTop 	  = document.getElementById("access").offsetTop;
		lastScrollY = 0;
		OnTimer();
		window.setInterval("OnTimer()", 0);
	}
}
function toggleVisIdScroll(id)
{
	var obj = document.getElementById(id);
	if (obj == null) return;

	if (obj.style.display == "")
	{
		window.scrollBy(0, -obj.offsetHeight);
		newstate = "none";
		obj.style.display = newstate;
	}
	else
	{
		newstate = "";
		obj.style.display = newstate;
		window.scrollBy(0, obj.offsetHeight);
	}
	return (newstate == "" ? 1 : -1);
}
function OnTimer()
{	
	if (window.pageYOffset != lastScrollY)
	{
		var access = document.getElementById("access");
		lastScrollY = window.pageYOffset;

		if (lastScrollY > accessDefaultTop + 15)
		{
			access.style.position = "fixed";
			access.style.top = "0px";
			access.style.zIndex = "9999999";
		}
		else
		{
			access.style.position = "";
			access.style.top = "";
			access.style.zIndex = "";
		}
	}
}
