function killerrors()
{
return true
}
window.onerror = killerrors

//标题处理开始
//***********默认设置定义.*********************
tPopWait=50;//停留tWait豪秒后显示提示。
tPopShow=5000;//显示tShow豪秒后关闭提示
showPopStep=20;
popOpacity=99;
fontcolor=c3;
bgcolor=c2;
bordercolor=c1;
//***************内部变量定义*****************
sPop=null;curShow=null;tFadeOut=null;tFadeIn=null;tFadeWaiting=null;
document.write("<style type='text/css'>");
document.write(".cPopText{background-color: " + bgcolor + ";color:" + fontcolor + "; border: 1px " + bordercolor + " solid;font-color: font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0);}");
//document.write("#tab a{DISPLAY: block; WHITE-SPACE: nowrap; margin-bottom:1; background-repeat:repeat; background-attachment:scroll;margin-top: 1;margin-left: 2;padding-left:25px; padding-right:20px;}");
document.write("#tab a:hover{DISPLAY: block;color:"+c5+";background-color:"+c4+"}");
document.write("#tab a{background-color:transparent;DISPLAY: block;padding-bottom : 2px ;padding-top : 2px; padding-left:27px;padding-right:20px;}");

//document.write("#tab a:hover{color:"+c5+";border:1px solid "+c2+"; DISPLAY: block; MARGIN: 0px;background-repeat:repeat; background-attachment:scroll; background-color:"+c4+"}");
document.write("</style>");
document.write("<body leftmargin='0' topmargin='0' onmouseover='HideMenu()'>");
document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div><DIV id=menuDiv style='Z-INDEX: 2;VISIBILITY: hidden; POSITION: absolute;'></DIV>");

function showPopupText()
{
  var o=event.srcElement;MouseX=event.x;MouseY=event.y;
  if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
    if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
  if(o.dypop!=sPop)
  {
    sPop=o.dypop;clearTimeout(curShow);clearTimeout(tFadeOut);clearTimeout(tFadeIn);clearTimeout(tFadeWaiting);  
    if(sPop==null || sPop=="")
    {
      dypopLayer.innerHTML="";dypopLayer.style.filter="Alpha()";dypopLayer.filters.Alpha.opacity=0;  
    }
    else
    {
      if(o.dyclass!=null) popStyle=o.dyclass 
      else popStyle="cPopText";
        curShow=setTimeout("showIt()",tPopWait);
    }
  }
}

function showIt()
{
  dypopLayer.className=popStyle;dypopLayer.innerHTML=sPop;
  popWidth=dypopLayer.clientWidth;popHeight=dypopLayer.clientHeight;
  if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
  else popLeftAdjust=0;
  if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
  else popTopAdjust=0;
  dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
  dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
  dypopLayer.style.filter="Alpha(Opacity=0)";fadeOut();
}

function fadeOut()
{
  if(dypopLayer.filters.Alpha.opacity<popOpacity)
  { dypopLayer.filters.Alpha.opacity+=showPopStep;tFadeOut=setTimeout("fadeOut()",1); }
  else
  { dypopLayer.filters.Alpha.opacity=popOpacity;tFadeWaiting=setTimeout("fadeIn()",tPopShow); }
}

function fadeIn()
{
  if(dypopLayer.filters.Alpha.opacity>0)
  { dypopLayer.filters.Alpha.opacity-=1;tFadeIn=setTimeout("fadeIn()",1); }
}
document.onmouseover=showPopupText;

//标题处理结束

//下拉菜单相关代码
 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -5;
 var space = 1;
 var isvisible;
 var MENU_SHADOW_COLOR='#666666';//定义下拉菜单阴影色
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

function ShowMenu(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' style=' border:1px solid "+c1+";BACKGROUND-COLOR: "+c2+";BACKGROUND-IMAGE: url(" + menubg + ");filter:alpha(Opacity="+ alpha +");'><tr><td>" + vMnuCode + "</td></tr></table>";
	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space-2;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}
	menuDiv.innerHTML = vMnuCode;
	menuDiv.style.top = t;
	menuDiv.style.left = l;
	menuDiv.style.visibility = "visible";
	isvisible = true;
    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 8)

}

function HideMenu() 
{
 	var mX;
 	var mY;
 	var vDiv;
 	var mDiv;
	if (isvisible == true)
	{
		vDiv = document.all("menuDiv");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		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 makeRectangularDropShadow(el, color, size)
{
	var i;
	for (i=size; i>0; i--)
	{
		var rect = document.createElement('div');
		var rs = rect.style
		rs.position = 'absolute';
		rs.left = (el.style.posLeft + i) + 'px';
		rs.top = (el.style.posTop + i) + 'px';
		rs.width = el.offsetWidth + 'px';
		rs.height = el.offsetHeight + 'px';
		rs.zIndex = el.style.zIndex - i;
		rs.backgroundColor = color;
		var opacity = 1 - i / (i + 1);
		rs.filter = 'alpha(opacity=' + (30 * opacity) + ')';
		el.insertAdjacentElement('afterEnd', rect);
		global.fo_shadows[global.fo_shadows.length] = rect;
	}
}
//下拉菜单结束

function ShowOnline()
{
	if (Showtxt.innerText!="关闭详细列表")
	{
		//follow.style.display="block";
		Showtxt.innerText="关闭详细列表";
		showon.innerHTML='<div style="margin-top:8; margin-bottom:8;width:240px;margin-left:18px;border:1px solid black;background-color:lightyellow;color:black;padding:2px" onClick="ShowOnline();">正在读取在线信息，请稍侯……</div>';
		//document.frames["hiddenframe"].location.replace('Online_ok.asp');
	}
	else
	{
		//follow.style.display="none";
		//document.frames["hiddenframe"].location.replace('Online_ok.asp?cookies=no');
		Showtxt.innerText='显示详细列表';
	}
}
function AutoLink()
{if(ShowLink.style.display=='block')
{ShowLinkjs.style.display='block';ShowLink.style.display='none';}
else{ShowLinkjs.style.display='none';ShowLink.style.display='block';}
}

function showtb(tbnum){whichEl = eval("tbtype" + tbnum);if (whichEl.style.display == "none"){eval("tbtype" + tbnum + ".style.display=\"\";");}else{eval("tbtype" + tbnum + ".style.display=\"none\";");}}

var User_List= '<div id=tab><a href=Sms_happy.asp>我的论坛信箱</a></div><div id=tab><a href=MyList_dd_happy.asp?Action=MySay> 我发表的主题</a></div><div id=tab><a href=MyList_dd_happy.asp?action=MyReply> 我参与的主题</a></div><div id=tab><a href=MyList_dd_happy.asp?Action=MyGood> 我的精华主题</a></div><div id=tab><a href=answer_ClassList_dd_happy.asp?action=last> 上次访后新帖</a></div><div id=tab><a href=UserSetup.asp?Action=MyInfo>修改我的资料</a></div><div id=tab><a href=usersetup.asp?action=mypassword>修改我的密码</a></div>'
var Bbs_List = '<div id=tab ><a href=Search.asp>论坛搜索</a></div><div id=tab><a href=administrator_AdminList_dd_happy.asp>管理团队</a></div><div id=tab><a href=UserList_dd_happy.asp>用户列表</a></div><div id=tab><a href=answer_ClassList_dd_happy.asp?Action=Good> 精华帖子</a></div><div id=tab><a href=answer_ClassList_dd_happy.asp?Action=New>今日新帖</a></div><div id=tab><a href=answer_ClassList_dd_happy.asp?Action=Week>一周内新帖</a></div><div id=tab><a href=answer_ClassList_dd_happy.asp?Action=Hot>最旺人气帖</a></div><div id=tab><a href=answer_ClassList_dd_happy.asp?Action=Reply>最旺回复帖</a></div><div id=tab><a href=userList_dd_happy.asp?Action=Today>今日到访会员</a></div>'
var font="<div id=tab><a href='Cookies_520.asp?Action=Font&Size=9'> 9号字</a></div><div id=tab><a href=Cookies_520.asp?Action=Font&Size=10>10号字</a></div><div id=tab><a href=Cookies_520.asp?Action=Font&Size=12>12号字</a></div>"
