//captura a posicao topo da rolagem
function getScrollTop() {
	var yScrollTop;
	if (self.pageYOffset) {
		yScrollTop = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop){	 // Explorer 6 Strict
		yScrollTop = document.documentElement.scrollTop;
	} else if (document.body) {// todos os outros Explorer's
		yScrollTop = document.body.scrollTop;
	}
	return yScrollTop;
}

//captura a posicao esquerda da rolagem
function getScrollLeft() {
	var xScrollLeft;
	if (self.pageXOffset) {
		xScrollLeft = self.pageXOffset;
	} else if (document.documentElement && document.documentElement.scrollLeft){	 // Explorer 6 Strict
		xScrollLeft = document.documentElement.scrollLeft;
	} else if (document.body) {// todos os outros Explorer's
		xScrollLeft = document.body.scrollLeft;
	}
	return xScrollLeft;
}

//captura toda a rolagem no eixo Y
function getScrollY() {
	var yScroll;
	if( window.innerHeight && window.scrollMaxY ) {
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if( document.body.scrollHeight > document.body.offsetHeight ) {
		yScroll = document.body.scrollHeight;
	} else {
		yScroll = document.body.offsetHeight;
	}
	return yScroll;
}

//captura toda a rolagem no eixo X
function getScrollX() {
	var xScroll;
		if( window.innerHeight && window.scrollMaxY ) {
			xScroll = document.documentElement.scrollWidth;
		} else if( document.body.scrollHeight > document.body.offsetHeight ) {
			xScroll = document.body.scrollWidth;
		} else {
			xScroll = document.body.offsetWidth;
		}
	return xScroll;
}

//captura a largura do viewport

function getWindowWidth() {
	var windowWidth;
	if( self.innerHeight ) {
		windowWidth = self.innerWidth;
	} else if( document.documentElement && document.documentElement.clientHeight ) {
		windowWidth = document.documentElement.clientWidth;
	} else if( document.body ) {
		windowWidth = document.body.clientWidth;
	}
	return windowWidth;
}

//captura a altura do viewport
function getWindowHeight() {
	var windowHeight;
	if( self.innerHeight ) {
		windowHeight = self.innerHeight;
	} else if( document.documentElement && document.documentElement.clientHeight ) {
		windowHeight = document.documentElement.clientHeight;
	} else if( document.body ) {
		windowHeight = document.body.clientHeight;
	}
	return windowHeight;
}

function init() {
	alinhaTela();
}
function alinhaTela() {
	var telaY = getWindowHeight();
	document.getElementById("holder").style.height = telaY + "px";
}
