// SET PAGE HEIGHT
function setPageHeight(height,scrollToTop)
{
	//scroll to top
	if (scrollToTop) scrollToY(0);

	//set page height
	document.getElementById('pageDiv').style.height = (height + "px");	
}


// SCROLL TO Y
function scrollToY(y)
{
	window.scrollTo(0, y);
}


// GET SWF
function getSWF(movieName)
{
	return document.getElementById(movieName);
}


// GET SCROLLING POSITION
function getScrollingPosition()
{
	var position = [0, 0];

	if (typeof window.pageYOffset != 'undefined')
	{
		position = [
		window.pageXOffset,
		window.pageYOffset
						];
	}
	else if (typeof document.documentElement.scrollTop != 'undefined' && document.documentElement.scrollTop > 0)
	{
		position = [
		document.documentElement.scrollLeft,
		document.documentElement.scrollTop
										];
	} else if (typeof document.body.scrollTop != 'undefined')  {
		position = [
		document.body.scrollLeft,
		document.body.scrollTop
							];
	}

	return position;
}