function initScroll() //Called by onload in <body>
{
	window.setInterval(checkScroll, 100); //Check the scroll position every 100ms (10 times a second)
}
function getScrollY() {
	var y;
	if(window.scrollY) {
		y = window.scrollY;
	} else if(document.documentElement && document.documentElement.scrollTop) {
		y = document.documentElement.scrollTop;
	} else if(document.body) {
		y = document.body.scrollTop;
	}
	return y;
}
function checkScroll() {
	if(getScrollY() >= 208) //Customise this
	{
		document.getElementById("floatdiv").style.position="fixed";
		document.getElementById("floatdiv").style.marginTop="-208px"; //Customise this
	}
	else
	{
		document.getElementById("floatdiv").style.position="absolute";
		document.getElementById("floatdiv").style.marginTop="0px"; //Customise this
	};
}
function mainFunction(str) {
    fill(str);
}




