//房间列表展示
function tab(tabId, tabC){
				    var len =document.getElementById('getId').getElementsByTagName('li').length;
					//alert(tabC);
				    for(i=1; i <= 10; i++){
				        if ("tabId"+i==tabId){
				            document.getElementById(tabId).className="nowroom";
				        }else{
				            document.getElementById("tabId"+i).className="";
				        }
				
				        if ("tabC"+i==tabC){
				            document.getElementById(tabC).style.display="block";
				        }else{
				            document.getElementById("tabC"+i).style.display="none";
							//alert("tabC"+i);
				        }
				    }
				}
				
			//礼物红人	
				 jQuery(document).ready(function(){
	      $.getJSON('http://vas.17guagua.net/interface/www/getTopRedPeople.jsp?jsoncallback=?',function (json){
		       var tab="";
		     for(var i=0;i<json.length;i++){
			
				
				tab+="<div class='redliwu'><div class='redliwu-pic'><img src='http://img001.com/pic/"+json[i].img+"_0.bmp'/></div> <div class='redliwu-font'><div class='redliwu-font-name'>";
				tab+=json[i].nikename+"(ID:"+json[i].uid+")</div>";
				tab+=" <div class='redliwu-font-num'>收到<span class='redliwu-font-num-font'>"+json[i].count+"</span>"+json[i].unit+" </div></div></div>";
				}
					//alert(tab);
				$("#list").html(tab);
						        

		});

	    });
	    
	    //bbs切换
	    	function tab2(tabId, tabC){
			    var len =document.getElementById('bbs').getElementsByTagName('li').length;
				//alert(tabC);
			    for(i=1; i <= len; i++){
			        if ("title"+i==tabId){
			            document.getElementById(tabId).className="tab-current";
			        }else{
			            document.getElementById("title"+i).className="";
			        }
			
			        if ("content"+i==tabC){
			            document.getElementById(tabC).style.display="block";
			        }else{
			            document.getElementById("content"+i).style.display="none";
						//alert("tabC"+i);
			        }
			    }
			}