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");
				}
			}
		});
		
		$(".vsntip").hover(function(){
				tooltipLayer = $(this).attr("id");
				tooltipLayer = tooltipLayer.replace("show_","");
				$(this).stop(true, true);
				$("#"+tooltipLayer).stop(true, true);
				$("#"+tooltipLayer).slideDown();
				$(this).animate({
					opacity: 1
				});
			},
			function(){
				$("#"+tooltipLayer).slideUp();
				$(this).animate({
					opacity: 0.5
				});
			}
		);
		
});

