<% if params[:index] == '1'%> $("#right").html("<%= j(render :partial => 'account/about_us_show') %>") <% elsif params[:index] == '2'%> $("#right").html("<%= j(render :partial => 'account/contact_us_show') %>") <% elsif params[:index] == '3'%> $("#right").html("<%= j(render :partial => 'account/cooperative_partner_show') %>") <% elsif params[:index] == '4'%> $("#right").html("<%= j(render :partial => 'account/agreement_show') %>") <% elsif params[:index] == '5'%> $("#right").html("<%= j(render :partial => 'account/help_center_show') %>") <% elsif params[:index] == '6'%> $("#right").html("<%= j(render :partial => 'account/suggest_show') %>") <% else %> <% end %> //$(".bor-bottom-greyE").removeClass("active") //$($(".bor-bottom-greyE")[@index]).addClass("active");