$(function(){ $(function(){ /* save the current open tab for next opening of the page */ save= true; /* html is ok ( false ) in title of a tabs */ safe= true; /* type ( slideDown, fadeIn, show ) et duration ( ms ) for apparition */ show= ["slideDown",500]; /* idem but for disappearance */ hide= ["slideUp",500]; // event to change tab ( mouseenter, click, ... ) */ event= "click"; /* adding of tabs ( and choosing the one by default ) */ defaut= add("All"); add("Part 1",[0,1]); add("Part 2",[2,3]); add(4); add("Category 6",5); /* adding parent element of tabs */ conteneur_tabs("before",".cat-table:first"); }); $(function(){var a;if(save&&window.localStorage&&(a=localStorage.getItem("tabs"))&&(a=u(a)))defaut=a;$(".cat-table").filter(function(a){return!z(defaut,a)}).hide();for(a=0;a'+(safe?v[a][0].replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):v[a][0])+"");$(".cat-tabs").on(event,".ct-item",function(){$(".cat-tabs .ct-active").removeClass("ct-active");var a=$(this).parent().children().index(this); $(".cat-tabs").each(function(){$(this).children().eq(a).addClass("ct-active")});var c=v[a];$(".cat-table").not($(".cat-table").filter(function(a){return z(c,a)})[show[0]](show[1]))[hide[0]](hide[1]);save&&window.localStorage&&localStorage.setItem("tabs",JSON.stringify(c))})}); var hide,show,save,safe,event,timeslide,defaut,v=[],w=["th.secondarytitle","div.table-title h2","div.page-title h2","div.maintitle h2"],x=["table","div.forabg","div.main-head","div.borderwrap"],y=[null,null,"div.main-content",null],ver=function(){return $("#phpbb").length?1:$("#pun-intro").length?2:$("#ipbwrapper").length?3:0},add=function(a,b){if(1==arguments.length)if("number"==typeof a)if(0<=a&&$(w[ver()]).length>=a+1)a=$(w[ver()]).eq(b=a).text();else return;else if("string"==typeof a)for(var b= [],c=0;c<$(w[ver()]).length;c++)b.push(c);v.push([a,"number"==typeof b?[b]:b]);return v[v.length-1]},u=function(a){for(var b=0;b')},z=function(a,b){for(var c=0;c')}); });