 function window_load()
		    {
		        var url=window.document.location.href;	     
		       
		        if (url != null && url != "")
		        {
					var url1=url.split("?");
					if (url1[1]!=null)
					{
						 var game = url1[1].split("=");
						 var gameID = game[1];
						 var arrGame = gameID.split("#"); //去掉最后一个#
						 //document.all["txtGameID"].innerText = 	arrGame[0];	
						 document.all["txtGameID"].value = 	arrGame[0];	
						
						 var td = "td_"+ arrGame[0];			   
						 document.all[td].style.display = "";
						
						 showTitle(gameID);
						 showInfo();
					}
	            }
		    }
		    function  showTitle( id)
		    {
		     	 var name = "";
		     	 switch (id)
		     	 {
		     	      case "mjks":
		     	          name = "昆山麻将";
		     	          break;
		     	      case "pkmj":
		     	          name="二人麻将";
		     	          break;
		     	       case "mjgb":
		     	          name = "推倒胡麻将";
		     	          break;
		     	      case "mjpj":
		     	          name="盘锦麻将";
		     	          break;    
		     	       case "3da1":
		     	          name="哈尔滨三打一";
		     	          break;    
		     	       case "hong5":
		     	          name="红五三打一";
		     	          break;
		     	       case "sk":
		     	          name="双扣";
		     	          break;
		     	       case "5zhang":
		     	          name="港式五张";
		     	          break;
		     	       case "3kou1":
		     	          name="三扣一";
		     	          break;
		     	       case "paoyao":
		     	          name="刨夭";
		     	          break;
		     	        case "yuanzi":
		     	          name="原子";
		     	          break;
		     	        case "ddz":
		     	          name="斗地主";   
		     	          break; 
		     	        case "huojian":
		     	          name="窜火箭";   
		     	          break;    
		     	        case "5zi":
		     	          name="五子棋";   
		     	          break; 
		     	       case "heibai":
		     	          name="黑白棋";   
		     	          break;  
		     	       case "xq":
		     	          name="中国象棋";  
		     	            break;
		     	       case "junqi":
		     	          name="四国军旗";     
		     	          break;   
		     	       case "llk":
		     	          name="连连看";     
		     	          break;    
		     	        case "cck":
		     	          name="幸运猜大小";     
		     	          break;
		     	           case "douji":
		     	          name="扎金花";     
		     	          break;  
		     	         case "160":
		     	          name="华网";     
		     	          break;      
		     	 
		     	 }
		     	 window.document.title = name  + "--华网棋牌游戏中心";
		    }
		    
		    
		    function showInfo()
		    {
		         if (document.all["txtGameID"].value != "")
		         {
						var id= "td_" + document.all["txtGameID"].value ;
						var frm = document.all["frmRule"];
						frm.src = "rule_"+document.all["txtGameID"].value+ ".htm";
						if (document.all["txtGameID"].value =="160" )
						{
							frm.height = 1260;
						}
						else if (document.all["txtGameID"].value =="yuanzi" )
						{
							frm.height = 1200;
						}
						else if (document.all["txtGameID"].value =="xq" )
						{
							frm.height = 1350;
						}
						else if (document.all["txtGameID"].value =="pkmj" )
						{
							frm.height = 3950;
						}
						else if (document.all["txtGameID"].value =="llk" )
						{
							frm.height = 600;
						}
						else if (document.all["txtGameID"].value =="3kou1" )
						{
							frm.height = 1100;
						}
						else if (document.all["txtGameID"].value =="mjks" )
						{
							frm.height = 1200;
						}
						else if (document.all["txtGameID"].value =="mjgb" )
						{
							frm.height = 3950;
						}
		         }
		    }
		   
		    function rule_click()
		    {
		        //document.all["tr_rule_word"].style.display = "";
		        //document.all["tr_fen_word"].style.display = "none";
		        var frm = document.all["frmRule"];
		        var src = "rule_"+document.all["txtGameID"].value + ".htm";
		        frm.src = src;
		        
		    }
		    function fen_click()
		    {
		        //document.all["tr_rule_word"].style.display = "none";
		        //document.all["tr_fen_word"].style.display = "";
		        var frm = document.all["frmRule"];
		        var src = "fen_"+document.all["txtGameID"].value + ".htm";
		        frm.src = src;
		        
		    }

