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

