";
                } else {
                    // Si es Facebook
                    var iframe = "
video facebook";
                }
            }
            $('#myModal').find('.modal-body').append(iframe);
            $("a.link_youtube").ntg_link_video();
            $('#myModal').modal('show');
            $('#myModal').on('hidden.bs.modal', function (e) {
                $('#myModal').find('.modal-body').empty();
            })
        }
    });
    $('#myModal').on('hidden.bs.modal', function (e) {
        // Limpiar modal-body
        var loader = '
' +
            '
Cargando...' +
            '
' +
            '
';
        $("#myModal .modal-content .modal-body").empty();
        $("#myModal .modal-content .modal-body").html(loader);
    })
    // Portadilla de noticias: si son de otro canal, abrir en nueva pestaña con canal de origen 
    $(".otro-canal .recuadro .titulo").each(function () {
        var clases = $(this).attr("class").split(" ");
        if (clases[2] != "cid-" + __cid) {
            $(this).find("a").attr("target", "blank");
        }
    });
    // Ediciones anteriores
    $("#ediciones li a").click(function () {
        var year = $(this).attr("data-year");
        console.log(year);
        $("#myModal .modal-body").empty();
        switch (year) {
            case "1":
                console.log("1");
                var html = $("#recuadro-ediciones .recuadro:first-child").html();
                $("#myModal .modal-body").html("
" + html + "
");
                break;
            case "2":
                console.log("2");
                var html = $("#recuadro-ediciones .recuadro:nth-child(2)").html();
                $("#myModal .modal-body").html("
" + html + "
");
                break;
            case "3":
                console.log("3");
                var html = $("#recuadro-ediciones .recuadro:nth-child(3)").html();
                $("#myModal .modal-body").html("
" + html + "
");
                break;
            case "4":
                console.log("4");
                var html = $("#recuadro-ediciones .recuadro:nth-child(4)").html();
                $("#myModal .modal-body").html("
" + html + "
");
                break;
            case "5":
                console.log("5");
                var html = $("#recuadro-ediciones .recuadro:nth-child(5)").html();
                $("#myModal .modal-body").html("
" + html + "
");
                break;
            case "6":
                console.log("6");
                var html = $("#recuadro-ediciones .recuadro:nth-child(6)").html();
                $("#myModal .modal-body").html("
" + html + "
");
                break;
            case "7":
                console.log("7");
                var html = $("#recuadro-ediciones .recuadro:nth-child(7)").html();
                $("#myModal .modal-body").html("
" + html + "
");
                break;
            case "8":
                console.log("8");
                var html = $("#recuadro-ediciones .recuadro:nth-child(8)").html();
                $("#myModal .modal-body").html("
" + html + "
");
                break;
        }
        $("#myModal").modal('show');
    });
    $("#recuadros_articulo_13742").before("
QUIENES HACEN POSIBLE ESTE EVENTO
");
    $(".img-responsive img").addClass("img-fluid");
    $(".blank a").attr("target", "blank");
    //clase para boton
    $(".boton").addClass("btn btn-primary")
    //ajuste contenedor para quienes somos home
    $(".somos-body > *").wrapAll("
");
    // Ficha del conferencista
    /* 
        $("#conferencista .redes.lk a:first-child()" +
            ", #conferencista .redes.ig a:first-child()" +
            ", #conferencista .redes.fb a:first-child()" +
            ", #conferencista .redes.tw a:first-child()").remove(); */
    // Ajustar form footer
    $("footer #Newsletter .form_text,footer #Newsletter .form_button").wrapAll("
");
    // Actualizar botón de terminos y condiciones
    if ($("#terminos").length > 0) {
        $("#terminos a").prop("target", "blank");
        $("#i__Col40N_pa_form_intro_1 > .recuadro > .col-lg-6:first-child").append($("#terminos .recuadro").html());
    }
    // Ocultar si existe la nota en el lateral
    if ($("#otras-nt")) {
        $("#otras-nt .recuadro.active").hide();
    }
    if (typeof (__pvid) != "undefined") {
        if (__pvid == "189608") {
            $(".organiza .aid-151765.binary-foto_marquesina").hide();
        }
        if (__pvid == "961881") {
            $("#navbarSupportedContent > ul > li:nth-child(7)").addClass('current active');
        }
    }
    // seleccionar ultima palabra del titulo del banner para agregarle estilos
    $("#pa_banner .titulo, .title-last-word").each(function () {
        var h2title = $(this);
        var texto = h2title.text();
        var palabras = texto.split(" ");
        var ultimaPalabra = palabras[palabras.length - 1];
        h2title.html(texto.replace(ultimaPalabra, '
' + ultimaPalabra + ''));
    });
    // animaciones
    /*    $(window).scroll(function () {
    
            if ($("#home_exp_img").length > 0) {
                if ($(window).scrollTop() + 300 > $("#home_exp_img").offset().top) {
                    $("#home_exp_img").addClass('animated bounceIn');
                }
            }
    
            if ($("#home_exp_text").length > 0) {
                if ($(window).scrollTop() + 300 > $("#home_exp_text").offset().top) {
                    $("#home_exp_text").addClass('animated fadeInUp');
                }
            }
         
                 if ($("#recuadros_articulo_17441").length > 0) {
                if ($(window).scrollTop() + 300 > $("#recuadros_articulo_17441").offset().top) {
                    $("#recuadros_articulo_17441").addClass('animated fadeInUp');
                }
            }
    
            if ($("#home_redes").length > 0) {
                if ($(window).scrollTop() + 300 > $("#home_redes").offset().top) {
                    $("#home_redes").addClass('animated fadeInUp');
                }
            }
    
        });  */
        $("#homePro .recuadro").each(function () {
            let link = $(this).find('a').prop('href');
            $(this).find('.titulo > a').contents().unwrap();
            $(this).contents().wrapAll(`
`);
            
        });
});
					-->