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

