$(function() {
$('#index > ul').tabs({ fx: { opacity: 'toggle', duration: 'slow'  } });
});

  function pageload(hash) {
    if(hash) {
      $("#load").load(hash + ".html");
      $("#index").tabs("option", "selected", hash);
    } else {
      $("#load").empty();
    }
  }
  $(function(){
    $("#index > ul").tabs({ fx: { opacity: 'toggle', duration: 'slow'  } });
    $.historyInit(pageload);
    $("a[rel='history']").click(function(){
      var hash = this.href;
      hash = hash.replace(/^.*#/, '');
      $.historyLoad(hash);
      return false;
    });
  });

