/*
 * Pliega el menu de navegacion, dejando desplegado la rama en la que estamos
 */
		function pliega_menu(direccion, direccion2, direccion_ie6)
		{

			var esconde;
			var enlace;

			$("div#navegacion ul li ul").each(function()
			{
				enlace = $('a:first', $(this).parent());

				esconde = true;
				if (  enlace.attr("pathname") != direccion && enlace.attr("pathname") != direccion_ie6 )
				{
					$(this).find("a").each( function(){
						if( this == direccion2 )
						{
							esconde=false;
						}
					});

					if(esconde)
					{
						$(this).hide();
					}
				}
				else
				{
					var $navegacion = $('#navegacion ul:first-child');					
					$navegacion.addClass('flotante').css('padding-bottom',
						$(this).height() + parseFloat($(this).css('padding-top')) +
						parseFloat($(this).css('padding-bottom'))
					);
					$(this).parent().addClass('current');
					$(this).css('top', $navegacion.height());
				}
			});
		}
