$(document).ready(function(){
						   
	//Efectos para la barra de menus
	var aaa = 'ul#navlist li:not(.active)';
	
	$(aaa).hover(function () {
		$(this).addClass('encima');
	},
	function() {
		$(this).removeClass('encima');
	});
	
	//hacer que todo el li sea activo
	var bbb = 'ul#navlist li';
	$(bbb).click(function(){
		window.location=$(this).find("a").attr("href");
     	return false;
	});
	
	//gestion del rel external
	$('a[rel=external]').attr('target', 'blank');
	
	//Saltos suaves dentro de 1 misma pagina
	var jump=function(e) {
		//prevent the "normal" behaviour which would be a "hard" jump
		e.preventDefault();
		//Get the target
		var target = $(this).attr("href");
		//perform animated scrolling
		$('html,body').animate({
			//get top-position of target-element and set it as scroll target
			scrollTop: $(target).offset().top
			//scrolldelay: 0,6 seconds
		},600,function() {
			//attach the hash (#jumptarget) to the pageurl
			location.hash = target;
		});
	}
	$('a[href*=#]').bind("click", jump);
	return false;

});