function ShowGameMenu(gameid)
{
	var obj				= MM_findObj(gameid);
	var oldstaus	= obj.style.display;

	MM_findObj("ico_majiang").src = "/images/ico_close.gif";
	MM_findObj("majiang").style.display = "none";
	MM_findObj("ico_puke").src = "/images/ico_close.gif";
	MM_findObj("puke").style.display = "none";
	MM_findObj("ico_qi").src = "/images/ico_close.gif";
	MM_findObj("qi").style.display = "none";
	MM_findObj("ico_xiuxian").src = "/images/ico_close.gif";
	MM_findObj("xiuxian").style.display = "none";

	if (oldstaus == "none")
	{
		MM_findObj("ico_"+gameid).src = "/images/ico_open.gif";
		obj.style.display = "block";
	}
	else
	{
		MM_findObj("ico_"+gameid).src = "/images/ico_close.gif";
		obj.style.display = "none";
	}
}
function GoPage(divname)
{
 try
 {
  MM_findObj("game_a").style.display = "none";
  MM_findObj("game_b").style.display = "none";
  MM_findObj("game_c").style.display = "none";
  MM_findObj("game_d").style.display = "none";
  MM_findObj("game_e").style.display = "none";
  MM_findObj(divname).style.display = "";
  MM_findObj("IframeBody").height = document.body.scrollHeight;
 }
 catch(e)
 {}
}
function Cookie(){
  this.SetValue=function(name,value,hours,path,domain,secure){
    var str=new String();
    var nextTime=new Date();
    nextTime.setHours(nextTime.getHours()+hours);
    str=name+"="+escape(value);
    if(hours)
      str+=";expires="+nextTime.toGMTString();
    if(path)
      str+=";path="+path;
    if(domain)
      str+=";domain="+domain;
    if(secure)
      str+=";secure";
    document.cookie=str;
    }
  this.GetValue=function(name){
    var rs=new RegExp("(^|)"+name+"=([^;]*)(;|$)","gi").exec(document.cookie),tmp;
    if(tmp=rs)
      return unescape(tmp[2]);
    return null;
    }
  }

  function GetCookie(name)
  {
	var _c=new Cookie();
	return _c.GetValue(name);
  }
var const_where;
const_where = GetCookie("UC55IPADDRESS").toLowerCase();