window.onscroll = function (e) {
	if (navigator.appName.indexOf("Microsoft") > -1){
		document.getElementById("footer").style.top = document.documentElement.offsetHeight - 90 + document.documentElement.scrollTop + "px";
	}
}

window.onload = function (e) {
	Control_Size();
}

window.onresize = function (e) {
	Control_Size();
}

/*
function slowdownScroll() {
	if(navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat") {
		sctop = document.body.parentNode.scrollTop;
	}
	else if(window.pageYOffset){
		sctop = window.pageYOffset;
	}
	else {
		sctop = document.body.scrollTop;
	}
	if(sctop){
		scup = Math.ceil(sctop*.2);
		scrollBy(0,-scup);
		if (sctop-scup) setTimeout("slowdownScroll()",30);
	}
}*/

function Control_Size(){
	if (navigator.appName.indexOf("Microsoft") > -1){
		document.getElementById("footer").style.top = document.documentElement.offsetHeight - 90 + 'px';
	}
	else{
		document.getElementById("footer").style.position = "fixed";
		document.getElementById("footer").style.top = document.documentElement.clientHeight - 90 + "px";
	}

}

