// JavaScript Document
var posHeight = -295;
var interval;
var velocidade = 10;
function login(boo) {
	obj = document.getElementById('formLogin');
	if (boo) {
		clearInterval(interval);
		interval = setInterval("loginOn()", 4);	
	} else {
		clearInterval(interval);	
		interval = setInterval("loginOff()", 4);
	}
}
function loginOn(){
	if (posHeight < -10) {
		posHeight = posHeight + velocidade;
		obj.style.left = posHeight + 'px';
	}
}
function loginOff(){
	if (posHeight != -295) {
		posHeight = posHeight - velocidade;
		obj.style.left = posHeight + 'px';
	}
}