// JavaScript Document
function mostrarDefault(idCapa){ 

	document.getElementById(idCapa).style.display=""; 

} 
function mostrar(idCapa){ 

	document.getElementById(idCapa).style.display="block"; 

} 
function ocultar(idCapa){ 
document.getElementById(idCapa).style.display="none"; 
} 
function change_visibility(idCapa,valor){	
	document.getElementById(idCapa).style.visibility=valor; 	
}
function showname(idTexto,texto){
document.getElementById(idTexto).innerHTML=texto;
}
function showimg(id_img,id_img_new,ancho,alto){
	document.getElementById(id_img).src=id_img_new;
	document.getElementById(id_img).width=ancho;
	document.getElementById(id_img).height=alto;
}

function show_rollover_new(id_nodo){
	nodo=id_nodo.getElementsByTagName("div");
	nodo[0].style.display="block";
}

function hide_rollover(id_nodo){
	nodo=id_nodo.getElementsByTagName("div");
	nodo[0].style.display="none";
}



function button_show(idCapa){
 if(document.getElementById(idCapa).style.display!="block"){
 	mostrar(idCapa);
	var h=eval(document.getElementById('sf_sidebar_right').offsetHeight) + eval( document.getElementById(idCapa).offsetHeight);
	document.getElementById('sf_sidebar_right').style.height=h+"px";
	
 }
	else{
	var h=eval(document.getElementById('sf_sidebar_right').offsetHeight) - eval( document.getElementById(idCapa).offsetHeight) - (eval( document.getElementById(idCapa).offsetHeight)/2);
		document.getElementById('sf_sidebar_right').style.height=h+"px";
	ocultar(idCapa);
 } 
}


