// JavaScript Document
var header;
var lastScrollY = 0;
window.onload = initialization;
function initialization() {
	header = document.getElementById("header");
	header.style.top ="0px";
	hd_start();
}
function hd_start() {
	header = document.getElementById("header");
	header.style.height = document.documentElement.clientHeight - 55 + "px";
}
function fly()
{
	header = document.getElementById("header");
	diffY = document.documentElement.scrollTop;
		if(diffY != lastScrollY)
		{
			percent = .1 * (diffY - lastScrollY);
			if(percent > 0)
				percent = Math.ceil(percent);
			else
				percent = Math.floor(percent);
			x = parseInt(header.style.top,10) + percent;
			if(x != null)
			{
			header.style.top = x + "px";
			}
			lastScrollY = lastScrollY + percent;
		}
}
window.setTimeout("fly()",2000);
window.setInterval("fly()",10);
window.setTimeout("hd_start()",1000);
window.setInterval("hd_start()",1000);