<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,12 +5,11 @@
 //http://www.gnu.org/licenses/gpl-2.0.txt
 GITHUB_JSON_URL = &quot;http://github.com/api/v1/json/{0}?callback={1}&quot;;
 DYNAMIC_SCRIPT_TEMPLATE = &quot;&lt;script src='{0}' type='text/javascript' &gt;&lt;/script&gt;&quot;;
-GITHUB_PROJECTS_CLASS = &quot;.github-projects&quot;;
+GITHUB_PROJECTS_SELECTOR = &quot;.github-projects&quot;;
 REPO_TEMPLATE =
     &quot;&lt;div class='github-repo'&gt;&quot;
     +   &quot;&lt;a href='{0}' target='_blank'&gt;&quot;
-    +  	  &quot;{1}&lt;img class='github-repo-link-image'&quot;
-    +           &quot;src='http://erlanguid.com/icons/external.png'&quot;
+    +  	  &quot;{1}&quot; //+ &quot;&lt;img class='github-repo-link-image' src='http://erlanguid.com/icons/external.png'&quot;
     +	  &quot;&lt;/a&gt;&quot;
     +&quot;&lt;/div&gt;&quot;;
 
@@ -25,7 +24,7 @@ var GitHubRepos = new function(){
         var github_usernames = new Array();
 
         //for all the github-projects divs 
-        $(GITHUB_PROJECTS_CLASS).each(function(i) {
+        $(GITHUB_PROJECTS_SELECTOR).each(function(i) {
             //create an array of all unique userids in the page
             if(this.id != undefined)
             {
@@ -70,6 +69,31 @@ var GitHubRepos = new function(){
                 proj_div.style.display = &quot;block&quot;;
             }
         }
+    }
+
+    this.ToggleRepoVisibility = function(element)
+    {
+        var HIDE_TEXT = 'hide';
+        var SHOW_TEXT = 'view';
+
+        //take the show hide element, generally a link 
+        //and change the text to what makes sense.
+        $(element).children('a.show-github-repos').each( function() {
+            if(this.innerHTML == SHOW_TEXT)
+                this.innerHTML = HIDE_TEXT;
+            else
+                this.innerHTML = SHOW_TEXT;
+        }); 
+
+        //show hide the elements given their state
+        $(element).siblings().each( function(){
+
+            var jElement = $(this);
+            if(jElement.css('display') == 'none')
+                jElement.show();
+            else
+                jElement.hide();   
+        });
     } 
 }
 //used to create clean insertion of strings into templates
@@ -82,4 +106,10 @@ function format(str)
     return str;
 }
 //Go Get Those REPOS!
-$(document).ready(function(){GitHubRepos.GetRepos();});
+$(document).ready(function(){
+
+    GitHubRepos.GetRepos(); 
+
+    });
+
+</diff>
      <filename>github-repos.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ddbfdd9d00f9507de6453cae5ebfafa12165a9a6</id>
    </parent>
  </parents>
  <author>
    <name>John Bender</name>
    <email>john.m.bender@gmail.com</email>
  </author>
  <url>http://github.com/johnbender/github-repos/commit/b41fe6ba373fea008c724dac8d2cab5211a918b0</url>
  <id>b41fe6ba373fea008c724dac8d2cab5211a918b0</id>
  <committed-date>2008-12-07T14:15:21-08:00</committed-date>
  <authored-date>2008-12-07T14:15:21-08:00</authored-date>
  <message>added visibility toggling</message>
  <tree>9a02fbd7f6bde9f819741b4e92c59a6166f33785</tree>
  <committer>
    <name>John Bender</name>
    <email>john.m.bender@gmail.com</email>
  </committer>
</commit>
