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(); }
9 $("#trick"+num).css('display', 'block');
13 /* highlight the last trick, useful when a page is called the first time*/
15 if(document.getElementById){
18 if(document.getElementById("trick"+i))
28 /* highlight the next trick */
31 if(document.getElementById("trick"+(current+1)))
35 /* highlight the previous trick */
38 if(document.getElementById("trick"+(current-1)))
45 $("#ScoreTable").tablesorter({ widgets: ['zebra']});
47 $(".gameshidesession").click( function () {
48 $(this).parent().children(".gamessession").hide(300);
49 $(this).parent().children(".gamesshowsession").show();
53 $(".gamesshowsession").click( function () {
54 $(this).parent().children(".gamessession").show(300);
55 $(this).parent().children(".gameshidesession").show();
59 $(".gameshowall").click( function () {
60 $(".gamessession").show(300);
61 $(".gamesshowsession").hide();
62 $(".gameshidesession").show();
64 $(".gamehideall").click( function () {
65 $(".gamessession").hide(300);
66 $(".gamesshowsession").show();
67 $(".gameshidesession").hide();
70 $("ul.loginregister").click(function () {
71 $(".dologin").slideToggle();
72 $(".doregister").slideToggle();
75 $(".message div div").parent().click ( function() { $(this).hide(); });