');
$('.tab-linkedin .info-redes-likes p').html('');
}
});
$(".tab-mas-btn").click(function(){
$('#tabs-rs').parent('.portlet_encabezado').addClass('extendido');
});
$(".tab-instagram-btn").click(function(){
$('#tabs-rs').parent('.portlet_encabezado').removeClass('extendido');
if( contIG == 0 ){
contIG = 1;
$(".tab-instagram .tab-contenido").instagramfn();
}
});
// acordeón twitter
$(".directorio-facebook p a:first, .directorio-twitter p a:first").addClass("activo");
$(".directorio-facebook ul:lt(2), .directorio-twitter ul:lt(2)").show();
$(".directorio-facebook p a, .directorio-twitter p a").click(function(event){
event.preventDefault();
if( $(this).attr("class") != "activo" ){
$(this).addClass("activo");
$(this).parent().siblings("ul").not(":first").slideUp("normal");
} else {
$(this).removeClass("activo");
}
$(this).parent().next("ul").slideToggle("normal");
$(this).parent().siblings("p").children("a").removeClass("activo");
});
// Tweets y menciones twitter
$(".tab-twitter .tweets-separados a:eq(0)").addClass("activo");
$(".tab-twitter .tweets-separados a").click(function(event){
event.preventDefault();
$(this).addClass("activo").siblings().removeClass("activo");
});
$(".tab-twitter .tweets-separados a:eq(0)").click(function(){
$(".tab-twitter .tab-contenido").show();
$(".tab-twitter .tab-menciones").hide();
});
$(".tab-twitter .tweets-separados a:eq(1)").click(function(){
$(".tab-twitter .tab-contenido").hide();
$(".tab-twitter .tab-menciones").css({marginTop:0}).show();
});
// FIN TABS SITIO CONVERGENCIA
//Seguidores
$("#seguidores").find("p").each(function () {
var name = $(this).attr('id');
var seguidores = $(this).text();
$(".tab-"+name+" .info-redes-num").text(seguidores);
});
});
// ]]>