<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,10 +19,16 @@ $(function() {
   if (document.location.hash) {
     var anchor = document.location.hash.substring(1)
     $('.section h2 a[name=' + anchor + ']').parent('h2').click()
+    showSectionsForSCM(anchor)
   }
 
   $('#menu span').css('cursor', 'pointer').click(function() {
     $('.section .contents').hide()
-    $('.section .' + this.innerHTML).parents('.section').find('.contents').show()
+    showSectionsForSCM(this.innerHTML)
+    document.location.hash = this.innerHTML
   })
+
+  function showSectionsForSCM(scm) {
+    $('.section .' + scm).parents('.section').find('.contents').show()
+  }
 })</diff>
      <filename>javascripts/main.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>120944f15d4e2820594edea3f676a9fefe4f61f1</id>
    </parent>
  </parents>
  <author>
    <name>Zach Langley</name>
    <email>zachlang@gmail.com</email>
  </author>
  <url>http://github.com/alx/whygitisbetter/commit/ef30b635b91e97da4f6d1626a40f940ec6d3d871</url>
  <id>ef30b635b91e97da4f6d1626a40f940ec6d3d871</id>
  <committed-date>2008-12-02T22:10:15-08:00</committed-date>
  <authored-date>2008-12-02T22:10:15-08:00</authored-date>
  <message>allowing anchor-based navigation for SCMs</message>
  <tree>4e8f04d41f40467ee1be7951e2e3ce6f38cd7834</tree>
  <committer>
    <name>Zach Langley</name>
    <email>zachlang@gmail.com</email>
  </committer>
</commit>
