var $m = jQuery; $m(document).ready(function(){ $m('#network div.network-tab-content').hide(); $m('#network div.network-tab-content:first').show(); $m('#network ul li:first').addClass('active'); $m('#network ul li a').click(function(){ $m('#network ul li').removeClass('active'); $m(this).parent().addClass('active'); var currentTab = $m(this).attr('href'); $m('#network div.network-tab-content').hide(); $m(currentTab).show(); return false; }); $m("#topActionButtons a").corner(); $m("#getUpdates").corner(); $m(".getUpdatesButton").click(function(){ $m("#getUpdates").toggle("normal"); }); });