function voltar(){
	history.go(-1)
}
function activateMenu(nav) {
	/* currentStyle restricts the Javascript to IE only */
	if (document.getElementById(nav).currentStyle | 1) {  
		var navroot = document.getElementById(nav);
		
		/* Get all the list items within the menu */
		var lis=navroot.getElementsByTagName("LI");  
		for (i=0; i<lis.length; i++) {
			
		   /* If the LI has another menu level */
			if(lis[i].lastChild.tagName=="UL"){
			
				/* assign the function to the LI */
				lis[i].onmouseover=function() {	
				
				   /* display the inner menu */
				   this.lastChild.style.display="block";
				   //alert(this+" - block");
				}
				lis[i].onmouseout=function() {                       
				   this.lastChild.style.display="none";
				   //alert(this+" - none");
				}
			}
			//alert(lis[i].innerHTML);
		}
	}
}

function showElement(id) {
if(document.getElementById(id).style.display != 'block'){
		document.getElementById(id).style.display= 'block';
		document.getElementById(id).style.visibility = 'visible';
		document.getElementById(id).style.position = 'static';
	}else {
		document.getElementById(id).style.display= 'none';
		document.getElementById(id).style.visibility = 'hidden';
		document.getElementById(id).style.position = 'static';
	}
}
function inputHover (){
	//get all elements (text inputs, passwords inputs, textareas)
	var elements = document.getElementsByTagName('input');
	var j = 0;
	for (var i4 = 0; i4 < elements.length; i4++) {
		if((elements[i4].type=='text')||(elements[i4].type=='password')) {
			hovers[j] = elements[i4];
			++j;
		}
	}
	elements = document.getElementsByTagName('textarea');
	for (var i4 = 0; i4 < elements.length; i4++) {
		hovers[j] = elements[i4];
		++j;
	}
	//add focus effects
	for (var i4 = 0; i4 < hovers.length; i4++) {
		hovers[i4].onfocus = function() {this.className += "Hovered";}
		hovers[i4].onblur = function() {this.className = this.className.replace(/Hovered/g, "");}
	}
}
function open_x(cod){
	j('#scroll').innerHTML = '<span id="loadingspan">Loading...</span>';
	x_open(cod);
}
/*
window.onload= function(){
	activateMenu('vertnav'); 
}*/
