Added .htaccess and 404.phpfor a custom ErrorDocument.
[dylansserver.git] / includes / tabs.js
1 $(document).ready(function() {
2 $(".exhibit").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 a.tab").click(function() {
9 i++;
10 $(".exhibit").hide();
11 var activeTab = $(this).attr("href") + '_';
12 if (i==1)
13 $(activeTab).show("slide", 600);
14 else
15 $(activeTab).show("puff", 600);
16 $(activeTab).addClass("active_exhibit");
17 });
18 $('#showdivs').click(function() {
19 for(i=0;i<divs.length;i++){
20 divs[i].className += (" shownDiv");
21 }
22 });
23
24 });