$(document).ready(function(){$("#profiles_p_2").click(function(){if($("#profiles_content_2").html()==null||jQuery.trim($("#profiles_content_2").html()).length==0){$.post(ajax_url,{action:"profiles",handle:"contributors"},function(a){if(a!=""){$("#profiles_content_2").html(a)}})}change_tab("profiles_p_2","profiles_content_2")});$("#profiles_p_3").click(function(){if($("#profiles_content_3").html()==null||jQuery.trim($("#profiles_content_3").html()).length==0){$.post(ajax_url,{action:"profiles",handle:"featured_profiles"},function(a){if(a!=""){$("#profiles_content_3").html(a)}})}change_tab("profiles_p_3","profiles_content_3")});$("#profiles_p_1").click(function(){if($("#profiles_content_1").html()!=""){change_tab("profiles_p_1","profiles_content_1")}})});function change_tab(c,d){var a=$("#"+c).parent().children();var b=$("#"+d).parent().children();$(a).each(function(){$(this).attr("class","stuff-link")});$(b).each(function(){$(this).hide()});$("#"+c).removeClass("stuff-link");$("#"+c).addClass("stuff-link-selected");$("#"+d).fadeIn("slow")};