function showej(i){ $('.ej').hide(); $('.ej'+i).show(); } function ct(i,t){ $('.content').hide(); $('.c'+i).show(); $(".bs").trigger("click"); }