function A_ProcesaOpcion(strLiga) { 
	if($("#iFrame").attr("strBackUrl")!=strLiga) {
		$("#cont_externo").fadeIn("slow");
		if($("#iFrame").attr("bolV") == "1"){
			$("#pop").fadeOut("fast");
		}
		$("#iFrame").attr("strBackUrl", strLiga); 
		$("#iFrame").attr("src", strLiga);
		if($("#iFrame").attr("bolV") == "1")
			$("#pop").fadeIn("slow");
		else
			$("#pop").fadeIn("slow");
		$("#iFrame").attr("bolV", "1");
	}
}

$(document).ready(function (){
	if($("#pop").tagName == undefined){
		$("#cont_externo").prepend("<div id=\"pop\"><iframe id=\"iFrame\" style=\"background-color:white;\" width=\"966\" height=\"476\" frameborder=\"0\" src=\"about:blank\"></iframe></div>");
	}
	$("#pop").hide();
	$("#cont_externo").css("visibility", "visible");
	$("#cont_externo").css("display", "block");
	$("#cont_externo").hide();
	$("#iFrame").attr("bolV", "0");
	$("#pop").click(function (){ 
		$("#iFrame").attr("bolV", 0);
		$("#cont_externo").fadeIn("slow");
		$(this).fadeIn("slow");
	});

	$("#links_hd > a").each(function(i, objA) { var objA = $(this); objA.attr("strLiga", objA.attr("href")); });


	$("#cont_externo > a").click(function(e) {
		$("#cont_externo").hide();
		$("#iFrame").attr("strBackUrl", "");
		$("#iFrame").attr("bolV", "0");
		e.preventDefault();
	});

	$("#links_hd > a").click(function(e) {
		$(this).addClass("Sel");
		A_ProcesaOpcion($(this).attr("strLiga"));
		e.preventDefault();
	});
});

