got rid of accidental files from blueprint.css which i'm not using
[dylansserver.git] / includes / tabs.js
1 $(document).ready(function() {
2 $(".tabs").hide();
3 var divs = document.getElementsByTagName('div');
4 if(document.location.hash){
5 $(document.location.hash + '_').show();
6 }
7 var i = 0;
8 $("ul.portfolio li.project a.exhibit").click(function() {
9 i++;
10 $(".tabs").hide();
11 $("ul.portfolio li").removeClass("active");
12 $(this).addClass("active_project");
13
14 var activeTab = $(this).attr("href") + '_';
15 if (i==1)
16 $(activeTab).show("slide", 400);
17 else
18 $(activeTab).show("puff", 600);
19 $(activeTab).addClass("active_tab");
20 });
21 $('#showdivs').click(function() {
22 for(i=0;i<divs.length;i++){
23 divs[i].className += (" shownDiv");
24 }
25 });
26
27 });