﻿(function($) {

    //MENU Capitulos Seccion Video
    $(document).ready(function() {
        $('#menu_capitulos').click(function() {
            //motrar el div correspondiente
            if ($("#menu_listado").is(":hidden")) {
                $("#menu_listado").show("fast");
            }
            else {
                $("#menu_listado").hide("fast");
            }
        });
        Ads_Publicar();
    });

    //Menu Portada
    $(document).ready(function() {
        $("#botonera_portada a").click(function() {
            //ocultar todos los div       
         $("#secciones_portada div.seccion_inter").hide();
         //motrar el div correspondiente     
         $("#panel_" + this.id).fadeIn("fast");
                   
        });
    });

    //TABS Comentarios/Información
    $(document).ready(function() {
        $('#botonera .tab_link1').click(function() {
            //ocultar todos los div
            $("#TABS div.cont_secizq").hide();
            //motrar el div correspondiente     
            $("#tab_" + this.id).show("fast");
        });
    });

    $(document).ready(function() {
        $("#botonComentar").click(function() {
            $("#TABS div.cont_secizq").hide();
            //motrar el div correspondiente
            $("#tab_comentarios").show("fast");
        });
    });

    //TABS Videos/Galerias/Relacionados
    $(document).ready(function() {
        $('#botonera_2 .tab_link2').click(function() {
            //ocultar todos los div
            $("#TABS_2 div.cont_secderinter").hide();
            //motrar el div correspondiente
            $("#tab_" + this.id).show("fast");
            //ocultar imagen
            $("#botonera_2 img").hide();
            //mostrar imagen
            $("#img_" + this.id).show("fast");
            //ocultar color de fondo
            $(".tab_link2").css('background-color', '#ff8a17');
            $("#botonera_2 a").css('color', '#fff');
            //mostar color de fondo
            $(this).css('background-color', '#fff');
            $("#a_" + this.id).css('color', '#000');
        });
    });

})(jQuery);
