var ScrollSpeed = 1;
var ScrollAmount = 1;
var ScrollGhostOffset = 500;



var FirstStart = true;
var ScrollInner;
var ScrollGhost;
var ScrollOrginal;



function Scroll_OnLoad()
	{
	ScrollGhost=document.getElementById("ScrollGhost");
	ScrollGhost.style.left=ScrollGhostOffset;
	ScrollInner=document.getElementById("ScrollInner");
	ScrollGhost=document.getElementById("ScrollGhost");
	ScrollOrginal = document.getElementById("ScrollOrginal");

	if(navigator.appName == "Microsoft Internet Explorer")
		window.onscroll = OnVerticalWindowScroll;
	setInterval("Scroll()", ScrollSpeed);
	}



function Scroll()
	{

	var ClientWidth;
	
	if(!document.body || !ScrollInner || !ScrollOrginal || !ScrollGhost) return;

	if(document.documentElement.clientHeight == 0)
	  { /* QUIRK */
		ClientWidth = window.innerWidth ? window.innerWidth : document.body.clientWidth;
	  }
	else
	  { /* STRICT */
		ClientWidth = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth;
		}

	if(ScrollInner.offsetLeft <= -ScrollOrginal.offsetWidth)
	  {
	  ScrollInner.style.left = ScrollGhostOffset;
	  }
	ScrollInner.style.left = ScrollInner.offsetLeft - ScrollAmount;
	}



function OnVerticalWindowScroll()
	{
	var ClientHeight;
	var ScrollTop;
	var ScrollOuter = document.getElementById("ScrollOuter");
	var ScrollBarHeight = ScrollOuter.clientHeight;
	if(!document.body || !document.documentElement || !ScrollOuter) return;

	if(document.documentElement.clientHeight == 0)
	  { /* QUIRK */
		ClientHeight = window.innerHeight ? window.innerHeight : document.body.clientHeight;
		ScrollTop = document.body.scrollTop;
	  }
	else
	  { /* STRICT */
		ClientHeight = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight;
		ScrollTop = document.documentElement.scrollTop;
	  }
	ScrollOuter.style.top = ClientHeight - ScrollBarHeight + ScrollTop;
	}