function switchMenu(obj1, obj2)
{
	if(document.getElementById)
	{
		var curObj1 = document.getElementById(obj1);
	    var curObj2 = document.getElementById(obj2);
		var tagul = document.getElementsByTagName("ul");
		if((curObj1 == null) || (curObj1 != null && curObj1.style.display != "block"))
		{
			for(var i = 0; i < tagul.length; i++)
			{
				if(tagul[i].className=="submenu")
				{
					tagul[i].style.display = "none";
				}
			}
			if(curObj1 != null && curObj1.parentNode != null)
			{
			    curObj1.style.display = "block";
				curObj1.parentNode.className = "nav_current";
		        curObj1.parentNode.style.color = "#FF3000";
			}
		}
		if(curObj2 != null)
		{
		    curObj2.style.color = "#FF3000";    
		}
	}
}


function doZoom(size)
{
	var content = document.getElementById('content');
    if(!content)
	{
		return;
    }

	var contentChild = content.childNodes;
    content.style.fontSize = size + 'px';
    //再对artibody div内的直接html节点设置fontSize属性
    for(var i = 0; i < contentChild.length; i++)
    {
        if(contentChild[i].nodeType == 1)
        {
            contentChild[i].style.fontSize = size + 'px';
        }
    }
}

var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

