//***********默认设置定义.*********************
tPopWait=50;//停留tWait豪秒后显示提示。
tPopShow=5000;//显示tShow豪秒后关闭提示
showPopStep=20;
popOpacity=99;

//***************内部变量定义*****************
sPop=null;
curShow=null;
tFadeOut=null;
tFadeIn=null;
tFadeWaiting=null;

document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText {  background-color: #F8F8F5;color:#000000; border: 1px #000000 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("</style>");


function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++)    {
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
  }

//下拉菜单相关代码
 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -2;
 var space = 1;
 var isvisible;
 var MENU_SHADOW_COLOR='#999999';//定义下拉菜单阴影色
 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("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 ShowMenu(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=tableborder1 onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=tablebody1>" + 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, 4)
}

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=' + (100 * opacity) + ')';
		el.insertAdjacentElement('afterEnd', rect);
		global.fo_shadows[global.fo_shadows.length] = rect;
	}
}
//控制面板
var manage= '<a style=font-size:9pt;line-height:14pt; href=\"user_main.asp\"><font color="blue">用户中心</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"gbook.asp\"><font color="red">站内留言</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"user_mail.asp"><font color="blue">站内短信</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"weather.asp">天气预报</a><br><a style=font-size:9pt;line-height:14pt; href=\"zxfw.asp\"><font color="blue">在线服务</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"translate.asp\">在线翻译</a><br><a style=font-size:9pt;line-height:14pt; href=\"time.asp\"><font color="blue">世界时间</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"user_edit.asp\">修改资料</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_bookmark.asp\"><font color="brown">网络书签</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"help.asp">帮助中心</a><br><a style=font-size:9pt;line-height:14pt; href=\"http://cn.cnna.cn/hifi/flashbook/main.htm" target="_blank"><font color="red">动漫留言</font></a>'
//社区栏目
var stylelist = '<a style=font-size:9pt;line-height:12pt; href=\"df/list.asp">电费查询</a><br>'
//互动发布
var boardstat= '<a style=font-size:9pt;line-height:14pt; href=\"shop.asp">社区商城</a><br><a style=font-size:9pt;line-height:14pt; href=\"flea.asp">自由市场</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=news\">发布新闻</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=article">发表文章</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=video\">发布影视</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=gongao">发布广告</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=down">发布软件</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=gallery">发布贴图</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=flash">发布动画</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=website">发布网站</a><br><a style=font-size:9pt;line-height:14pt; href=\"user_put.asp?action=business">发布交易</a>'
//娱乐栏目
var downlist= '<a style=font-size:9pt;line-height:14pt; href=\"games.asp"><font color="blue">游戏大厅</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"http://qs163.com/3/music.asp?n=hifi&style=1" target="_blank"><font color="brown">动漫音乐</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"get_money.asp">社区红包</a><br><a style=font-size:9pt;line-height:14pt; href=\"http://www.cpuword.com/hifi/bbs" target="_blank"><font color="blue">娱乐社区</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"pgjq.asp"><font color="brown">凭歌寄情</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"wish.asp">祈愿祝福</a><br><a style=font-size:9pt;line-height:14pt; href=\"xiaohua.asp"><font color="blue">笑话大全</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"http://photo.163.com/openalbum.php?username=6hifi" target="_blank"><font color="brown">综艺图站</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"http://album.tom.com/album/hifi66" target="_blank">艺术图库</a><br><a style=font-size:9pt;line-height:14pt; href=\"http://cn.cnna.cn/hifi/hifi.html" target="_blank"><font color="blue">新闻资讯</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"user_emoney.asp"><font color="brown">虚拟货币</font></a><br><a style=font-size:9pt;line-height:14pt; href=\"z_ajk.ASP">广告公司</a>'