function A_ProcesaOpcion(strLiga) { 
	if($("#iFrame").attr("strBackUrl")!=strLiga) {
		if($("#iFrame").attr("bolV") == "1"){
			$("#pop").slideUp("fast");
		}
		$("#iFrame").attr("strBackUrl", strLiga); 
		$("#iFrame").attr("src", strLiga);
		if($("#iFrame").attr("bolV") == "1")
			$("#pop").slideDown("slow");
		else
			$("#cont_prin").slideUp("slow", function() { $("#pop").slideDown("fast"); });
		$("#iFrame").attr("bolV", "1");
	}
}

$(document).ready(function (){
	if($("#pop").tagName == undefined){
		$("#cont_prin").after("<div id=\"pop\"><iframe id=\"iFrame\" style=\"background-color:white;\" width=\"950\" height=\"660\" frameborder=\"0\" src=\"about:blank\"></iframe></div>");
	}
	$("#pop").hide();
	$("#iFrame").attr("bolV", "0");
	$("#pop").click(function (){ 
		$("#iFrame").attr("bolV", 0);
		$(this).slideUp('slow', function() { $("#cont_prin").slideDown("fast"); } ); 
	});

	$("#links_hd > a").each(function(i, objA) { var objA = $(this); objA.attr("strLiga", objA.attr("href")); /*objA.attr("href", "#");*/ });

	$("#links_hd > a").click(function(e) {
		$(this).addClass("Sel");
		A_ProcesaOpcion($(this).attr("strLiga"));
		e.preventDefault();
	});
});
