// JavaScript Document
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("pnav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}

window.onload=startList;

//Comentarios
function comentarios_view( action )
{
	var contenedor = document.getElementById("commentpost");
	var botonshow = document.getElementById("commentpost_show");
	
	if( action == "hide" )
	{
		contenedor.style.display = "none";
		botonshow.value = 'Mostrar Comentarios';
	}
	else if( action == "show" )
	{
		contenedor.style.display = "block";
		botonshow.value = 'Ocultar Comentarios';
	}
	else
	{
		if( contenedor.style.display == 'none' )
		{
			contenedor.style.display = "block";
			botonshow.value = 'Ocultar Comentarios';
		}
		else
		{
			contenedor.style.display = "none";
			botonshow.value = 'Mostrar Comentarios';
		}
	}
}
