2 var hide = function() {
7 $$('.tabs a').removeClass('active');
10 var show = function(id
) {
11 $$('[data-tab=' + id
+ ']').setStyles({
15 $$('a[href$=#' + id
+ ']').addClass('active');
18 var tab = function() {
19 var id
= this.get('href').split('#').pop();
29 var hash
= window
.location
.hash
, first
= hash
.length
? hash
.split('#').pop() : 'post';
33 $$('.tabs a').addEvent('click', tab
);