$(document).ready(function() {
		
	$("#lomas li").click(function() {

		$("#lomas li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab

		$("#lomas #contenidos").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("rel"); //Find the href attribute value to identify the active tab + content
		var archivoTab= $(this).find("a").attr("href"); //buscamos archivo a cargar
		$("#lomas #contenidos").fadeIn(); //Fade in the active ID content
		
		//alert(archivoTab);
		
		CargaAjaxGET(archivoTab,"lomas_loader",1);
		
		return false;
		

	});
});

$(document).ready(function() {
		
	$("#ediciones li").click(function() {

		$("#ediciones li").removeClass("activo"); //Remove any "active" class
		$(this).addClass("activo"); //Add "active" class to selected tab

		$("#ediciones #contenidos").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("rel"); //Find the href attribute value to identify the active tab + content
		var archivoTab= $(this).find("a").attr("href"); //buscamos archivo a cargar
		$("#ediciones #contenidos").fadeIn(); //Fade in the active ID content
		
		//alert(archivoTab);
		
		CargaAjaxGET(archivoTab,"ediciones_loader",1);
		
		return false;
		
	});
});

$(document).ready(function() {
		
	$("#micuenta_tab li").click(function() {

		$("#micuenta_tab li").removeClass("activo"); //Remove any "active" class
		$(this).addClass("activo"); //Add "active" class to selected tab

		$("#micuenta_tab #contenidos").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("rel"); //Find the href attribute value to identify the active tab + content
		var archivoTab= $(this).find("a").attr("href"); //buscamos archivo a cargar
		$("#micuenta_tab #contenidos").fadeIn(); //Fade in the active ID content
		
		//alert(archivoTab);
		
		CargaAjaxGET(archivoTab,"micuenta_loader",1);
		
		return false;
		
	});
});
