function getDocumentWidth()
{
if (document.body.scrollWidth)
return document.body.scrollWidth;
var w = document.documentElement.offsetWidth;
if (window.scrollMaxX)
w += window.scrollMaxX;
return w;
}

function getDocumentHeight()
{
if (document.body.scrollHeight)
return document.body.scrollHeight;
return document.documentElement.offsetHeight;
}

function ViewIntro()
{
	Center("intro");
}

function Center(divN) {
	div = document.getElementById(divN);
	if(div == null)
		return;
	if (document.compatMode && document.compatMode != "BackCompat")
	{
		theHeight = document.documentElement.clientHeight;
		theWidth = document.documentElement.clientWidth;
	}
	else
	{
		theHeight = document.body.clientHeight;
		theWidth = document.body.clientWidth;
	}
	
	
	
	var scrOfX = 0, scrOfY = 0;
	if( typeof( window.pageYOffset ) == 'number' ) {
		//Netscape compliant
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		//DOM compliant
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;
	}
	div.style.left = ((parseInt(theWidth)/2)-(parseInt(div.style.width)/2))+parseInt(scrOfX)+'px';
	//div.style.top = ((parseInt(theHeight)/2)-(parseInt(div.style.height)/2))+parseInt(scrOfY)+'px';
}

function IntroEnded() {
	//alert("test");
	document.getElementById('intro').style.display = "none";
}
function IntroStarted() {
	//alert("test");
}
