MediaWiki:Gadget-scrolltabs.js

$(document).ready(function { $('.tabSet').scrollTabs({ scroll_distance: 350, scroll_duration: 350, left_arrow_size: 26, right_arrow_size: 26, click_callback: function(e){ $('.tabSet li:not(:first)').addClass('inactive'); $('.tcontainer').hide; $('.tcontainer:first').show; $('.tabSet li').click(function{   var t = $(this).attr('id');  if($(this).hasClass('inactive')){ //this is the start of our condition     $('.tabSet li').addClass('inactive');               $(this).removeClass('inactive');    $('.tcontainer').hide;    $('#'+ t + 'C').fadeIn('slow'); } });

});

$(document).ready(function { $(function { $("#some-div").show; }); });