got rid of accidental files from blueprint.css which i'm not using
[dylansserver.git] / includes / tabs.js
index 511d314..a3c4ded 100644 (file)
@@ -1,19 +1,27 @@
 $(document).ready(function() {
        $(".tabs").hide();
+       var divs = document.getElementsByTagName('div');
+       if(document.location.hash){
+               $(document.location.hash + '_').show();
+       }
        var i = 0;
-       $("ul.portfolio li").click(function() {
+       $("ul.portfolio li.project a.exhibit").click(function() {
                i++;
                $(".tabs").hide();
                $("ul.portfolio li").removeClass("active");
                $(this).addClass("active_project");
 
-               var activeTab = $(this).find("a").attr("href");
+               var activeTab = $(this).attr("href") + '_';
                if (i==1)
-                       $(activeTab).show("fold", 400);
+                       $(activeTab).show("slide", 400);
                else
                        $(activeTab).show("puff", 600);
                $(activeTab).addClass("active_tab");
-               return false;
+       });
+       $('#showdivs').click(function() {
+               for(i=0;i<divs.length;i++){
+                       divs[i].className += (" shownDiv");
+               }
        });
 
 });