var activeProcess = false;


$(document).ready(function(){
	var current_header = "link_header_1";
		$(".slideCab .morelinkslide").click(function(){
			if(activeProcess==false){
				if($(this).attr("id") != current_header){
					header_amagar = "#"+current_header.replace("link_","");
					header_mostrar = "#"+$(this).attr("id").replace("link_","");
					$("#"+current_header).removeClass("selectedlinkslide");
					$("#"+$(this).attr("id")).addClass("selectedlinkslide");
					activeProcess = true;
					$(header_amagar).fadeOut(300, function() {
						$(header_mostrar).fadeIn(300, function(){
								activeProcess = false;
						});
					});
					current_header = $(this).attr("id");
				}
			}
		});
});
