//CODIGO CLAUDIO DA SILVA
var idant=null;
function displayDiv(id){
	if(idant!=null){
		  document.getElementById(idant).style.display = 'none';
    }
    document.getElementById(id).style.display = 'block';
	idant = id;
}
function mudarclasse(tr,claseNombre,imgNombre){
	tr.className = claseNombre;	
	if(tr.children){
		tr.children[0].firstChild.src = imgNombre;
	}else{
		tr.childNodes[1].firstChild.src = imgNombre;
	}
}
//CODIGO CLAUDIO DA SILVA

//Scroll menu
function setScrollValue(id,value){
	id = 'slide_menu_' + id;
	if(document.getElementById(id)) document.getElementById(id).scrollTop = value; 
}

function getScrollValue(id){
	id = 'slide_menu_' + id;
	if (document.getElementById(id)) return document.getElementById(id).scrollTop;
}

var idTimeOut=null;
function slideStart(funcao){
	try {
		slideStop();
		idTimeOut = setInterval(funcao,100);
	} catch(err) {
		//jsShowErrors("llamar", err);
	}
}

function slideStop(){
	try {
		if(idTimeOut) clearInterval(idTimeOut);
	} catch(err) {
	//jsShowErrors("alto", err);
	}
}
//Scroll menu
