function openscript(url){var Win = window.open(url,'open','width=500,height=400,resizable=1,scrollbars=yes,menubar=no,status=yes' );}
function showtb(tbnum){whichEl = eval("tbtype" + tbnum);if (whichEl.style.display == "none"){eval("tbtype" + tbnum + ".style.display=\"\";");eval('document.all.tree_'+tbnum).src='../images/a3.gif';}else{eval("tbtype" + tbnum + ".style.display=\"none\";");eval('document.all.tree_'+tbnum).src='../images/a2.gif';}}
 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -2;
 var space = 1;
 var isvisible;
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array
function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
	if (isvisible == true)
{
		vDiv = document.all("menuDiv1");
		vDiv1 = document.all("menuDiv2");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		if ((mX < parseInt(vDiv1.style.left)) || (mX > parseInt(vDiv1.style.left)+vDiv1.offsetWidth) || (mY < parseInt(vDiv1.style.top)-h) || (mY > parseInt(vDiv1.style.top)+vDiv1.offsetHeight)){
			vDiv1.style.visibility = "hidden";				
		}
		if (vDiv1.style.visibility == "hidden"){		
		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
			vDiv.style.visibility = "hidden";
			isvisible = false;			
	}}
}
}
function ShowMenu(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
    vMnuCode = "<table class=tbmenu onmouseout='HideMenu()'><tr><td>" + vMnuCode + "</td></tr></table>";
	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space+3;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}
	menuDiv1.innerHTML = vMnuCode;
	menuDiv1.style.top = t;
	menuDiv1.style.left = l;
	menuDiv1.style.visibility = "visible";
	isvisible = true;
}

function ShowMenu1(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
    vMnuCode = "<table class=tbmenu onmouseout='HideMenu()'><tr><td>" + vMnuCode + "</td></tr></table>";
	h = vSrc.offsetHeight;
	w1 = vSrc.offsetWidth;
	l1 = vSrc.offsetLeft + w1;
	t1 = vSrc.offsetTop - space - 4;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l1 += vParent.offsetLeft;
		t1 += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}
	menuDiv2.innerHTML = vMnuCode;
	menuDiv2.style.top = t1;
	menuDiv2.style.left = l1;
	menuDiv2.style.visibility = "visible";
	isvisible = true;
}

var i_messages = 0
var timer
function jspaper() {
if (document.all) {
content.innerHTML =messages[i_messages]
if (i_messages >= messages.length-1) {
i_messages = 0}       else {
            i_messages++}
    }
timer = setTimeout("jspaper()",4000)   }

var usersetup= '<table width=100% id=tab><a href=search.asp>搜 索</a></table><table width=100% id=tab><a href=usersetup.asp?action=myinfo>修改资料</a></table><table width=100% id=tab><a href=usersetup.asp?action=mypwd>修改密码</a></table><table width=100% id=tab><a href=elselist.asp?action=today>今日新帖</a></table><table width=100% id=tab><a href=elselist.asp?action=good>论坛精华区</a></table>'
var yule= '<table width=100% id=tab><a href=z_faction.asp>小区帮派</a></table><table width=100% id=tab><a href=z_love.asp>小区恋人</a></table>'
var webdisp='<table width=100% id=tab><a href=cookies.asp?action=display1>快速模式</a></table><table width=100% id=tab><a href=cookies.asp?action=display2>标准模式</a></table><table width=100% id=tab><a href=usersetup.asp?action=display>我的模式</a></table>'
var zhanqu='<table width=100% id=tab><a href=bbsshow.asp?action=topmark>论坛排名</a></table><table width=100% id=tab><a href=userlist.asp>会员列表</a></table><table width=100% id=tab><a href=bbsshow.asp?action=pic>全部图片</a></table><table width=100% id=tab><a href=usersetup.asp?action=administrator>管理团队</a></table>'