function foldlist(btn,hidelist,cls){var btns=$(btn),hl=$(hidelist),hs=0;if(hl.children().length<=60){btns.css('display','none');hl.addClass('current');hl.css({"display":"block"});return}function cannelselect(elem){if(typeof(elem.onselectstart)!="undefined"){elem.onselectstart=function(){return false}}}if($.browser.msie&&$.browser.version==6){cannelselect($('#games_all')[0]);cannelselect($('#click_getmore')[0])}hl.addClass('height180');btns.bind('click',function(){if(hs){$(this).removeClass(cls);showleg(0);hs=0}else{$(this).addClass(cls);showleg(1);hs=1}});function showleg(bw){if(bw){hl.addClass('current');btns.text('点击收起')}else{hl.removeClass('current');btns.text('点击展开更多')}}}