
function getYScrollPos()
{
	if (window.pageYOffset)
		return window.pageYOffset;
	else if (document.body && document.body.scrollTop)
		return document.body.scrollTop;
		else if (document.documentElement.scrollTop)
			return document.documentElement.scrollTop;

	return 0;
}

function getXScrollPos()
{
	if (window.pageXOffset)
		x = window.pageXOffset;
	else if (document.body && document.body.scrollLeft)
		x = document.body.scrollLeft;
		else if (document.documentElement.scrollLeft)
			x = document.documentElement.scrollLeft;

	return 0;
}

function getScrollHeight()
{
	var scrollAreaHeight = 0;

    if (window.innerHeight)
    {
        scrollAreaHeight = window.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientHeight)
    {
        scrollAreaHeight = document.documentElement.clientHeight;
    }
    else if (document.body)
    {
        scrollAreaHeight = document.body.clientHeight;
    }

	return scrollAreaHeight;
}
