function mostrarLinea(id)
{
	getById(id).style.display = 'inline';
}

function mostrar(id)
{
	getById(id).style.display = 'block';
}

function ocultar(id)
{
	getById(id).style.display = 'none';
}

function limpiar(inp)
{
	if ( inp.value != '' ) inp.value = '';
}

function mostrarOcultar(id)
{
	if ( getById(id).style.display == 'inline' )
    	ocultar(id);
	else
    	mostrarLinea(id);
}

function mostrarOcultarBloque(id)
{
	if ( getById(id).style.display == 'block' )
    	ocultar(id);
	else
    	mostrar(id);
}


function getById(id)
{
	return document.getElementById(id);
}

function sfHover() {
	
	var sfEls = document.getElementById("menu_navegacion").getElementsByTagName("LI");
	
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}