
function showGame(id,num,o){
     $.each($('div[id^=casino-]'),function(){
       if('#'+this.id !== id){
         var n = $(this).find('div').size();
         if(n > num-1){
             $(this).find('div').each(function(i){
                 if(i > (num-1)){
                     $(this).hide();
                 }
             });
         }
         $(this).removeClass('show');
     }else{
             var n = $(id).find('div').size();
             $(id).find('div').each(function(i){
                 if(n > num-1){
                    if($(id).hasClass('show')){
                        if(i > (num -1)){
                          $(this).hide();
                        }
                    }else{
                 $(this).show();
                    }
                 }
             });
         }
     });
     if($(id).hasClass('show')){
         $(id).removeClass('show');
         $(o).find('img:first')[0].src = "/cl/tpl/2000sj/ver1/image/newcasino-pic004.gif";
     }else{
         $(o).find('img:first')[0].src = "/cl/tpl/2000sj/ver1/image/newcasino-pic003.gif";
         $(id).addClass('show');
     }
 }
 

function cancelMouse(){return false;}
  document.oncontextmenu = cancelMouse; 
  
function mover(o){
    o.style.backgroundPosition='0 bottom';
}

function mout(o){
    o.style.backgroundPosition='0 top';
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function subWin(swf){
  window.open(swf,"gameOpen","width=1024,height=768");
}
function subWinRule(swf){
  window.open(swf,"gameOpenRule","width=1024,height=768,scrollbars=yes");
}


