﻿(function()
{

window['pnx_Bar']={}

pnx_Bar.DisDay=function ()
{
var FestivalDay={getDay:function(id){var _=[];_['0101']='元旦';_['0106']='小寒';_['0115']='腊八';_['0121']='大寒';_['0204']='立春';_['0206']='除夕';_['0207']='春节';_['0214']='情人节';_['0219']='雨水';_['0221']='元宵节';_['0303']='全国爱耳日';_['0305']='惊蛰';_['0308']='国际妇女节';_['0312']='植树节';_['0315']='消费者权益日';_['0320']='春分';_['0321']='世界森林日';_['0322']='世界水日';_['0323']='世界气象日';_['0401']='国际愚人节';_['0405']='清明节';_['0407']='世界卫生日';_['0420']='谷雨';_['0422']='世界地球日';_['0501']='国际劳动节';_['0504']='青年节';_['0505']='立夏';_['0508']='世界红十字日';_['0510']='母亲节';_['0512']='国际护士节';_['0517']='世界电信日';_['0521']='小满';_['0531']='世界无烟日';_['0601']='国际儿童节';_['0605']='芒种';_['0606']='全国爱眼日';_['0608']='端午节';_['0621']='父亲节 夏至';_['0623']='国际奥林匹克日';_['0626']='国际禁毒日';_['0701']='中国共产党诞辰';_['0707']='小暑 抗战纪念日';_['0722']='大暑';_['0801']='建军节';_['0807']='立秋 七夕';_['0812']='国际青年日';_['0823']='处暑';_['0907']='白露';_['0910']='中国教师节';_['0914']='中秋节';_['0918']='九一八纪念日';_['0920']='全国爱牙日';_['0922']='秋分';_['1001']='国庆节';_['1007']='重阳节';_['1008']='寒露';_['1015']='国际盲人节';_['1023']='霜降';_['1107']='立冬';_['1108']='中国记者节';_['1109']='中国消防宣传日';_['1110']='世界青年节';_['1117']='国际大学生节';_['1122']='小雪/感恩节';_['1201']='世界艾滋病日';_['1203']='世界残疾人日';_['1207']='大雪';_['1209']='一二九纪念日';_['1212']='西安事变纪念日';_['1221']='冬至';_['1225']='圣诞节';return _[id];},getWeek:function(id){var _=['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];return _[id];},getString:function(){var now=new Date();var y=now.getFullYear();var m=now.getMonth()+1;var d=now.getDate();var w=now.getDay();m<10?m=0+''+m:0;d<10?d=0+''+d:0;var index=m+''+d;var festival=this.getDay(index);if(!festival||y!=2008){festival='';}var r=y+'年'+(m-0)+'月'+(d-0)+'日　'+this.getWeek(w)+'　'+festival;return r;},show:function(){document.write(this.getString());}}
document.write("<font color=#999999>");
FestivalDay.show();
document.write("</font>");
}


pnx_Bar.hello=function ()
{
	Msg_MailNew=0;
	if(typeof(MailNew)=="undefined")
	{ 
		MailNew=0;
	} 
	Msg_MailNew=parseInt(MailNew);

  Msg_FriendAdd=0;	
 	if(typeof(FriendAdd)=="undefined")
	{ 
		FriendAdd=0;
	} 
	Msg_FriendAdd=parseInt(FriendAdd);

document.write("<table cellspacing=0 cellpadding=0>");
document.write("<tr height=18>");
document.write("<td>欢迎您: </td><td>"+CName+"</td>");
	if(Msg_MailNew>0)
	{
		document.write("<td> , <a href=NX_User.aspx?A=D4_3>您有 <img src=NX_Public/img/New_Mail.gif><font style=color:#f00;font-weight:900>"+Msg_MailNew+"</font> 条短信</a></td>");
	}
	if(Msg_FriendAdd>0)
	{
		document.write("<td> , <a href=NX_User.aspx?A=D5_4>有 <img src=NX_Public/img/New_Friend.gif><font style=color:#f00;font-weight:900>"+Msg_FriendAdd+"</font> 位会员请求加您为好友！</a></td>");
	}

document.write("</tr>");
document.write("</table>");
}

pnx_Bar.topck=function ()
{
if(!pnx.IsTxt2(document.topL.LoginName.value)) {document.topL.LoginName.select(); return false;}
if(!pnx.IsTxt(document.topL.LoginName.value)) {document.topL.LoginName.select(); return false;}
if(!pnx.IsTxt2(document.topL.LoginPwd.value)) {document.topL.LoginPwd.select(); return false;}
}


pnx_Bar.TopBar=function ()
{

//pnx.Line("Text_Bg","8")

document.write("<table class='Text_Bg body_width' cellspacing=0 cellpadding=0>");
document.write("<tr class=bg_top_menu align=right height=40>");
document.write("<td align=left>");
pnx_Bar.DisDay();

if(typeof(IsUser) == "undefined") 
{
	pnx_Bar.login();
}
else
{
	pnx_Bar.hello();
}

document.write("</td>");
document.write("<td align=right>");

document.write("<table cellspacing=0 cellpadding=0>");
document.write("<tr>");
document.write("<td>");
document.write("<table>");
document.write("<td>");
document.write("字体:&nbsp;");
document.write("<a href=NX_User.aspx?A=D2_2&Size=14 style=color:red target=_self>大</a>&nbsp;");
document.write("<a href=NX_User.aspx?A=D2_2&Size=12 style=color:red target=_self>小</a>");
document.write("</td>");

document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("<td><a href=index.aspx  target=_self>首页</a></td>");

//document.write("<td><img src=NX_Public/img/separator.gif></td>");
//document.write("<td><a href=host/index.html  target=_blank style=color:#f00>虚拟主机</a></td>");

//document.write("<td><img src=NX_Public/img/separator.gif></td>");
//document.write("<td><a href=host/server.htm  target=_blank style=color:#f00>主机托管</a></td>");

document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("<td><a href=NX_Home.aspx?ID=15  target=_self>游戏</a></td>");

document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("<td><a href=NX_Home.aspx?ID=16  target=_self>资料</a></td>");

document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("</table>");
document.write("</td>");

document.write("<td onmouseover=pnx.OpenMenu('Menu_BBS') onmouseout=pnx.CloseMenu('Menu_BBS')>");
document.write("<table>");
document.write("<td><a class=UMenu href=NX_BBS.aspx target=_top>社区</a></td>");
document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("</table>");
pnx_Bar.BbsMenu();
document.write("</td>");


document.write("<td  onmouseover=pnx.OpenMenu('Menu_User') onmouseout=pnx.CloseMenu('Menu_User')>");
document.write("<table>");
document.write("<td><a href=NX_user.aspx?A=D1_5 target=_top>用户</a></td>");
document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("</table>");
pnx_Bar.UserMenu();
document.write("</td>");

document.write("<td>");
document.write("<table>");

if(IsUser=="False")
{
document.write("<td><a href=NX_User.aspx?A=D1_1 target=_self>注册</a></td>");
}
else
{
document.write("<td><a href=NX_User.aspx?A=LoginOut target=_self>退出</a></td>");
}
document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("</table>");

document.write("</td>");
document.write("<td><a href=NX_Admin.aspx?M=2  target=_blank>管理</span></a></td>");
document.write("</tr>");
document.write("</table>");
pnx_Bar.search();
document.write("</td>");
document.write("</tr>");
document.write("</table>");
}


pnx_Bar.UserMenu=function()
{
	document.write("<div  style=position:relative;z-index:9999>");
document.write("<div ID=Menu_User class=Menu_Bar style=position:absolute;display:none >");
document.write("<table width=100% cellspacing=1 cellpadding=1>");
document.write("<tr ><td height=8 colspan=3></td></tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td>&nbsp;</td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D1_1 target=_top>注册会员</a></td>");
document.write("</tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=LoginOut target=_top>退出登陆</a></td>");
document.write("</tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D1_5 target=_top>会员登陆</a></td>");
document.write("</tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D1_4 target=_top>个人资料</a></td>");
document.write("</tr>");
document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D1_7 target=_top>修改资料</a></td>");
document.write("</tr>");
document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D1_9 target=_top>修改密码</a></td>");
document.write("</tr>");
document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D2_5 target=_top>帐号保护中心</a></td>");
document.write("</tr>");
document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D2_7 target=_top>取回密码</a></td>");
document.write("</tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D2_1 target=_top >在线会员</a></td>");
document.write("</tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D5_1 target=_top >排行榜</a></td>");
document.write("</tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D3_1 target=_top >社区银行</a></td>");
document.write("</tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D4_3 target=_top >社区信箱</a></td>");
document.write("</tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_User.aspx?A=D5_6 target=_top >好友名单</a></td>");
document.write("</tr>");


document.write("<tr ><td height=8 colspan=4></td></tr>");
document.write("</table>");
document.write("</div>");
document.write("</div>");

}



pnx_Bar.BbsMenu=function()
{
	document.write("<div  style=position:relative;z-index:9999>");
document.write("<div ID=Menu_BBS class=Menu_Bar style=position:absolute;display:none >");
document.write("<table width=100% cellspacing=1 cellpadding=1>");
document.write("<tr ><td height=8 colspan=4></td></tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_bbs.aspx?Frame=Y target=_top>带框架分栏</a></td>");
document.write("</tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_bbs.aspx?Frame=N  target=_top>不带框架页</a></td>");
document.write("</tr>");

document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_bbs.aspx?A=Index_2>总览式首页</a></td>");
document.write("</tr>");
document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_bbs.aspx?A=Index_1>平铺式首页</a></td>");
document.write("</tr>");
document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_bbs.aspx?A=D6_1>查看社区事件</a></td>");
document.write("</tr>");
document.write("<tr class=List_TR onmouseover=this.className='List_TR2' onmouseout=this.className='List_TR'>");
document.write("<td></td><td><img src=NX_Public/img/line_0.gif align=absmiddle><a href=NX_bbs.aspx?A=D3_4>自选版块</a></td>");
document.write("</tr>");

document.write("<tr ><td height=8 colspan=4 ></td></tr>");
document.write("</table>");
document.write("</div>");
document.write("</div>");

}


pnx_Bar.SubWebMenu=function()
{
document.write("<td><a href=NX_BBS.aspx?A=Index_2 target=_self>论坛总览</a></td>");
document.write("<td>&nbsp;&nbsp;<img src=NX_Public/img/separator.gif>&nbsp;&nbsp;</td>");
document.write("<td><a href=NX_BBS.aspx?A=Index_1 target=_self>平铺</a></td>");
document.write("<td>&nbsp;&nbsp;<img src=NX_Public/img/separator.gif>&nbsp;&nbsp;</td>");
document.write("<td><a href=NX_BBS.aspx?A=Index_3 target=_self>横版</a></td>");
document.write("<td>&nbsp;&nbsp;<img src=NX_Public/img/separator.gif>&nbsp;&nbsp;</td>");
document.write("<td><a href=NX_BBS.aspx?A=Index_2 target=_self>最新贴</a></td>");
document.write("<td>&nbsp;&nbsp;<img src=NX_Public/img/separator.gif>&nbsp;&nbsp;</td>");
document.write("<td><a href=NX_BBS.aspx?A=Index_2 target=_self>精华贴</a></td>");
document.write("<td>&nbsp;&nbsp;<img src=NX_Public/img/separator.gif>&nbsp;&nbsp;</td>");
document.write("<td><a href=NX_BBS.aspx?A=Index_2 target=_self>推荐贴</a></td>");

//document.write("<td>&nbsp;&nbsp;<img src=NX_Public/img/separator.gif>&nbsp;&nbsp;</td>");
//document.write("<td><a href=NX_home.aspx?A=Index target=_self>最新文章</a></td>");

//document.write("<td>&nbsp;&nbsp;<img src=NX_Public/img/separator.gif>&nbsp;&nbsp;</td>");
//document.write("<td><a href=NX_home.aspx?A=Index target=_self>推荐文章</a></td>");

}


pnx_Bar.TopMenu=function()
{
document.write("<table cellspacing=1 cellpadding=1 width=100% class=TopMenu>");
document.write("<tr class=TR_BG align=center><td>");

document.write("<table width=100% cellspacing=1 cellpadding=2>");
document.write("<tr>");
document.write("<td class=Search colspan=5 align=center><a href=NX_User.aspx?A=D1_5 class=menu target=_self>用<br>户</a></td><td>");
document.write("<table class=Text_BG cellspacing=1 cellpadding=2>");
document.write("<tr>");
document.write("<td><a href=NX_User.aspx?A=D1_1 class=menu target=_self>注册</a></td>");
document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("<td><a href=NX_User.aspx?A=D5_6 class=menu target=_self>好友</a></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><a href=NX_User.aspx?A=D1_4 class=menu target=_self>个人</a></td>");
document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("<td><a href=NX_User.aspx?A=D4_3 class=menu target=_self>短信</a></td>");
document.write("</tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");

document.write("</td><td>");

document.write("<table width=100% cellspacing=1 cellpadding=2>");
document.write("<tr>");
document.write("<td class=Search colspan=5 align=center><a href=NX_BBS.aspx class=menu target=_self>论<br>坛</a></td><td>");
document.write("<table class=Text_BG cellspacing=1 cellpadding=2>");
document.write("<tr>");
document.write("<td><a href=NX_BBS.aspx?A=Index_2 class=menu target=_self>总览</a></td>");
document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("<td><a href=NX_BBS.aspx?A=Index_1 class=menu target=_self>平铺</a></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><a href=NX_BBS.aspx?A=Index_3 class=menu target=_self>横版</a></td>");
document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("<td><a href=NX_User.aspx?A=D3_1 class=menu target=_self>银行</a></td>");
document.write("</tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");

document.write("</td><td>");

document.write("<table width=100% cellspacing=1 cellpadding=2>");
document.write("<tr>");
document.write("<td class=Search colspan=5 align=center><a href=NX_Home.aspx?A=Index class=menu target=_self>子<br>站</a></td><td>");
document.write("<table class=Text_BG cellspacing=1 cellpadding=2>");
document.write("<tr>");
document.write("<td><a href=NX_Home.aspx?A=Index class=menu target=_self>总览</a></td>");
document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("<td><a href=NX_Home.aspx?ID=16 class=menu target=_self>软件</a></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><a href=NX_Home.aspx?A=Index class=menu target=_self>推荐</a></td>");
document.write("<td><img src=NX_Public/img/separator.gif></td>");
document.write("<td><a href=NX_Home.aspx?ID=15 class=menu target=_self>游戏</a></td>");
document.write("</tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");

document.write("</td>");
document.write("</tr>");
document.write("</table>");

}


pnx_Bar.search=function ()
{
  document.write("<form class=FromHidden name=Srh method=post action=NX_User.aspx onsubmit=return(pnx_Bar.ckSrh())>");
  document.write("<table cellspacing=2 cellpadding=0>");
  document.write("<tr class=TR_bg>");
  
  document.write("<td>范围:</td><td>");
document.write("<select name=Sel>");
document.write("<option value=''>全站");
document.write("<option value=1>论坛");
document.write("<option value=2>子站");
document.write("</select>");
document.write("</td>");
document.write("<td align=right>&nbsp;&nbsp;关键字:</td>");
document.write("<td><input type=Text name=KeyWord size=30 maxlength=80 value=\"\" ></td>");
  document.write("<td><input type=hidden name=A value=\"Search\"><input type=submit value=\" 搜 索 \" ></td>");
  document.write("</tr>");
  document.write("</table>");
  document.write("</form>");
}




pnx_Bar.ckSrh=function()
{
if(!pnx.IsTxt2(document.Srh.KeyWord.value)) {document.Srh.KeyWord.select(); return false;}
}

pnx_Bar.login=function ()
{
document.write("<form class=FromHidden name=topL method=post action='NX_User.aspx' onsubmit=return(topck())>");
document.write("<table cellspacing=2 cellpadding=0>");
document.write("<tr>");
document.write("<td>帐号: </td><td><input type=text name=LoginName maxlength=20 class=input_0 style=width:100 value='"+LoginName+"'></td>");
document.write("<td>密码: </td><td><input type=password name=LoginPwd maxlength=20 class=input_0 style=width:100></td>");

document.write("<td>");
document.write("<select name=Cook>");
document.write("<option value=0>0");
document.write("<option value=1 selected>1");
document.write("<option value=30>30");
document.write("<option value=365>365");
document.write("</select>");
document.write("</td>");
document.write("<td width=30>天</td>");
document.write("<td><input type=checkbox name=Hidden value='Y'></td><td> 隐身 </td>");
document.write("<td width=100 align=center>");
document.write("<input type=hidden name=A value='Login'>");
document.write("<input type=submit value=' 登 陆 ' class=button >");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("</form>");

}



})();

pnx_Bar.TopBar();

