function menuObj(divId)
{
    this.id=divId;
    document.write("<div id='"+divId+"' style='z-index:10000; position:absolute; display:none;' onmouseover='menuObj.showMenuDiv(event);' onmouseout='menuObj.hideMenuDiv(event);'><iframe  style='position:absolute; z-index:-1; width:100%; height:100%; top:0; left:0; filter:Alpha(Opacity=0); Opacity:0;' scrolling='No' frameborder='0' src='about:blank'></iframe></div>");
    this.containerObj;
}
var currentMenu;
var numSheegrpid=GetQueryString("sheegrpid");//从URL获取sheegrpid，如果有的话
if(!numSheegrpid)
{
    numSheegrpid=1;
}
var numSheezaid=GetQueryString("sheezaid");//从URL获取sheezaid，如果有的话
if(!numSheezaid)
{
    numSheezaid=1;
}
menuObj.prototype.menuOver = function(e)
{
    e.cancleBubble=true;
    var obj=e.srcElement||e.target;
    if(obj.tagName!="LI") // mouseOvered tagName A
    {
		if(obj.getAttribute("AliaNam"))
		{
			var enShow=obj.getAttribute("AliaNam");
			obj.setAttribute("AliaNam",obj.innerHTML);
			obj.innerHTML=enShow;
		}
        obj=obj.parentNode;
    }
    currentMenu=obj;
    if(currentMenu.className!="SE_SubMenuBody_ClickMenuLI")
    {
        currentMenu.className="SE_SubMenuBody_MenuLI_Focus";
    }
    if(!this.containerObj)
    {
        this.containerObj=$(this.id);
    }
    var pos=GetElementPosition(obj);
    for(var i=this.containerObj.childNodes.length-1;i>0;i--)
    {
        this.containerObj.removeChild(this.containerObj.childNodes[i]);
    }
    var itemContaner=obj.getElementsByTagName("div")[0];
    if(itemContaner)
    {
        this.containerObj.innerHTML+="<div class='submenu_l'></div>"+itemContaner.innerHTML+ "<div class='submenu_r'></div>";
    }
    else
    {
        return;
    }
    this.containerObj.style.display="";
    var container=$("container");
    this.containerObj.style.left=pos.x+"px";
    var scrollTop=document.body.scrollTop>document.documentElement.scrollTop?document.body.scrollTop:document.documentElement.scrollTop;
    if(container)
    {
        this.containerObj.style.top=eval(pos.y+obj.offsetHeight-container.scrollTop)+"px";
    }
    else
    {
        this.containerObj.style.top=eval(pos.y+obj.offsetHeight)+"px";
    }
    //alert("X->"+this.containerObj.style.left+", Y->"+this.containerObj.style.top);
};
menuObj.prototype.menuOut = function(e)
{
    e.cancleBubble=true;
    var obj=e.srcElement||e.target;
    var toElement=e.toElement||e.relatedTarget;
    if(!this.containerObj)
    {
        this.containerObj=$(this.id);
    }
    if(!toElement)
    {
        return false;
    }
    else
    {
        if(!toElement.parentNode)
        {
            return false;
        }
        else
        {
            if(!toElement.parentNode.parentNode)
            {
                return false;
            }
        }
    }
    if(toElement==this.containerObj||toElement.parentNode==this.containerObj||toElement.parentNode.parentNode==this.containerObj)
    {
        this.containerObj.style.display="";
    }
    else
    {
		if(obj.getAttribute("AliaNam"))
		{
			var enShow=obj.getAttribute("AliaNam");
			obj.setAttribute("AliaNam",obj.innerHTML);
			obj.innerHTML=enShow;
		}
        this.containerObj.style.display="none";
        if(currentMenu.className!="SE_SubMenuBody_ClickMenuLI")
        {
            currentMenu.className="SE_SubMenuBody_MenuLI";
        }
    }
};
menuObj.prototype.menuItemOver = function(e)
{
    e.cancleBubble=true;
    var obj=e.srcElement||e.target;
    if(obj.tagName!="LI")
    {
		if(obj.getAttribute("AliaNam"))
		{
			var enShow=obj.getAttribute("AliaNam");
			obj.setAttribute("AliaNam",obj.innerHTML);
			obj.innerHTML=enShow;
		}
        obj=obj.parentNode;
    }
    /*if(document.all)
    {
        obj.setAttribute("className","bg");
    }*/
};
menuObj.prototype.menuItemOut = function(e)
{
    e.cancleBubble=true;
    var obj=e.srcElement||e.target;
    if(obj.tagName!="LI")
    {
		if(obj.getAttribute("AliaNam"))
		{
			var enShow=obj.getAttribute("AliaNam");
			obj.setAttribute("AliaNam",obj.innerHTML);
			obj.innerHTML=enShow;
		}
        obj=obj.parentNode;
    }
    /*if(document.all)
    {
        obj.removeAttribute("className");
    }*/
};
menuObj.prototype.showMenuDiv = function(e)
{
    if(currentMenu.className!="SE_SubMenuBody_ClickMenuLI")
    {
        currentMenu.className="SE_SubMenuBody_MenuLI_Focus";
    }
    if(!this.containerObj)
    {
        this.containerObj=$(this.id);
    }
    this.containerObj.style.display="";
};
menuObj.prototype.hideMenuDiv = function(e)
{
    if(currentMenu.className!="SE_SubMenuBody_ClickMenuLI")
    {
        currentMenu.className="SE_SubMenuBody_MenuLI";
    }
    if(!this.containerObj)
    {
        this.containerObj=$(this.id);
    }
    this.containerObj.style.display="none";
};
var menuObj=new menuObj("menuDiv");