1 /* some code to highlight the current trick and to switch between different tricks */
2 /* which trick is currently highlighted*/
5 /* do the higlighting */
8 for(i=0;i<14;i++){ $("#trick"+i).hide(); $("#tricks"+i).removeClass('active'); }
9 $("#trick"+num).css('display', 'block');
10 $("#tricks"+num).addClass('active');
13 if(document.getElementById("tricks0"))
18 if(document.getElementById("tricks13"))
24 $("#prevtr").addClass('disabled');
26 $("#prevtr").removeClass('disabled');
28 $("#nexttr").addClass('disabled');
30 $("#nexttr").removeClass('disabled');
34 /* highlight the last trick, useful when a page is called the first time*/
36 if(document.getElementById){
39 if(document.getElementById("trick"+i))
49 /* highlight the next trick */
52 if(document.getElementById("trick"+(current+1)))
56 /* highlight the previous trick */
59 if(document.getElementById("trick"+(current-1)))
66 $("#ScoreTable").tablesorter({ widgets: ['zebra']});
68 $(".gameshidesession").click( function () {
69 $(this).parent().children(".gamessession").hide(300);
70 $(this).parent().children(".gamesshowsession").show();
74 $(".gamesshowsession").click( function () {
75 $(this).parent().children(".gamessession").show(300);
76 $(this).parent().children(".gameshidesession").show();
80 $(".gameshowall").click( function () {
81 $(".gamessession").show(300);
82 $(".gamesshowsession").hide();
83 $(".gameshidesession").show();
85 $(".gamehideall").click( function () {
86 $(".gamessession").hide(300);
87 $(".gamesshowsession").show();
88 $(".gameshidesession").hide();
91 $(".message div div").parent().click ( function() { $(this).hide(); });