//字符串函数
var gb2312='联系我们|收藏本页|论坛帮助|隐身|上线|重登陆|用户控制面板|搜索|自选风格|论坛状态|论坛展区|管理';
gb2312+='|回收站|退出|登陆|注册|我能做什么|本论坛所提供的互动服务由北京阳光加信科技有限公司提供，互动服务如论坛手机短信、订阅主题等，具体请看帮助|，页面执行时间：|毫秒|当前模版样式：';
gb2312+='|错误信息|您在执行|操作的时候发生错误，错误信息|，以下为错误描述:|请仔细阅读论坛帮助文件，确保您有相应的操作权限。|返回上一页';
gb2312+='|您尚未登陆，您可以输入您的用户名、密码登陆以便进行您的操作。|请输入您的用户名|没有注册？';
gb2312+='|请输入您的密码|忘记密码？|Cookie 选项|请选择你的 Cookie 保存时间，|下次访问可以方便输入。|不保存，关闭浏览器就失效|保存一天|保存一月|保存一年';
gb2312+='|隐身登陆|您可以选择隐身登陆，论坛会员将在用户列表看不到您的信息。|正常登陆|登 陆'
gb2312+='|发布贴子成功|回复贴子成功|编辑贴子成功|本页面将在3秒后自动返回|您可以选择以下操作：|返回首页|论坛成功信息|操作成功：|欢迎光临|我的收件箱|新|宋体';
gb2312+='|恢复默认设置|当前您正在使用|发短信|我发表的主题|我参与的主题|基本资料修改|用户密码修改|联系资料修改|用户短信服务|编辑好友列表|用户收藏管理|个人文件管理';
gb2312+='|今日贴数图例|主题数图例|总帖数图例|在线图例|在线情况|用户组在线图例|文件集浏览|图片集浏览|Flash浏览|音乐集浏览|电影集浏览|贺卡发送|控制面板首页';	

var isindex=false;	
var lg =new Array();
lg[0]=gb2312.split("|");
function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
function mybook() {
  h = 300;
  w = 300;
  t = ( screen.availHeight - h ) / 2;
  l = ( screen.availWidth - w ) / 2;
  window.open("http://forumAd.to5198.com/common/login.jsp?sCheckUrl=/out/login.jsp&sDesUrl=/out/mybook.jsp", "我的服务",
     "left=" + l + ",top=" + t + ",height=" + h + ",width=" + w
     + ",toolbar=no,status=no,scrollbars=no,resizable=yes" );
  return;
}
function ShowTop()
{       
//	document.write ('<table align=center width="'+ Dvbbs.Forum_Body[12] +'" cellspacing=0 cellpadding=0 border=0 align=center><tr><td><Div id=TOP align=center ></div></td>  </tr></table>');
	document.write ('<table  cellspacing=0 cellpadding=0 align=center style="border:0px ' + Dvbbs.Forum_Body[27] +' solid; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 0px; border-left-width: 1px;width:'+ Dvbbs.Forum_Body[12] +';">');
	document.write ('<tr><td width=100%><table width=100% align=center border=0 cellspacing=0 cellpadding=0><tr><td class=TopDarkNav height=9></td></tr>');
	document.write ('<tr><td height=70 class=TopLighNav2><TABLE border=0 width="100%" align=center><TR><TD align=left width="25%"><div id="Logo"><a href="'+Dvbbs.Forum_Info[1]+'"><img border=0 src="'+Dvbbs.Forum_Info[6]+'"></a></div></TD>');
//	document.write ('<TD Align=center width="65%"><div align="center" id="Topads"></div></td><td align="right" style="line-height: 15pt" width="10%">');
	document.write ('<TD Align=center width="65%"><div align="center" ></div></td><td align="right" style="line-height: 15pt" width="10%">');
	document.write ('<span style="CURSOR: hand" onClick="window.external.AddFavorite(\''+document.location.href+'\', Dvbbs.Forum_Info[0]+\'-\'+Dvbbs.Stats)" onmousemove="status=\''+lg[0][1]+'\';" onmouseout="status=\'\';"  >'+lg[0][1]+'</span>');
	document.write ('<br><a href="mailto:'+ Dvbbs.Forum_Info[5] +'">'+lg[0][0]+'</a><br><a href="boardhelp.asp?boardID='+Dvbbs.BoardID+'">'+lg[0][2]+'</a>');
	document.write ('</td></tr></table><tr><td class=TopLighNav height=9></td></tr><tr><td class=TopLighNav1 height=22  valign="middle" id="Menu">');
	document.write ('</td></tr></table></table>');
	
	//Topads.innerHTML=Dvbbs.Forum_ads[0];
	Menu.innerHTML='';
	Menu.innerHTML+='&nbsp;&nbsp;';
	if (Dvbbs.FindUser)
	{	
		if(Dvbbs.userhidden=='2')
		{
			Menu.innerHTML+=' <a href="cookies.asp?action=hidden&userid=' + Dvbbs.UserID + '">'+lg[0][3]+'</a> '
		}
		else
		{
			Menu.innerHTML+='<a href=\"cookies.asp?action=online&userid=" + userid + "\">'+lg[0][4]+'</a> ';
		}
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a href="login.asp">'+lg[0][5]+'</a>  ';
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a href="usermanager.asp" onMouseOver="ShowMenu(Dvbbs.manage,100)">'+lg[0][6]+'</a> ';
		if (Dvbbs.Forum_ChanSetting[0]==1)
		{
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a href="#" onclick="mybook()"><font color='+Dvbbs.Forum_Body[8]+'>我的服务</font></a> ';
		}
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a href="query.asp?boardid=' + Dvbbs.BoardID+ '">'+lg[0][7]+'</a> ';
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a  onMouseOver="ShowMenu(Dvbbs.stylelist,100)" style="CURSOR:hand" >'+lg[0][8]+'</a> ';
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+= ' <a  onMouseOver="ShowMenu(Dvbbs.boardstat,100)" style="CURSOR:hand">'+lg[0][9]+'</a> ';
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a href="show.asp?boardid=' + Dvbbs.BoardID + '" onMouseOver="ShowMenu(Dvbbs.downlist,100)">'+lg[0][10]+'</a> ';
		//Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		//Menu.innerHTML+=' <a href="http://www.dvbbs.net/dvgame/"><font color=red>聊天游戏中心</font></a> ';
		if (Dvbbs.Master)
		{
			Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
			Menu.innerHTML+=' <a href="admin_index.asp" >'+lg[0][11]+'</a> ';
			Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
			Menu.innerHTML+=' <a href="recycle.asp">'+lg[0][12]+'</a> ';
		}
		
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a href="logout.asp">'+lg[0][13]+'</a> ';
	}
	else
	{
		Menu.innerHTML+=' <a href="login.asp" >'+lg[0][14]+'</a> ';
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a href="reg.asp">'+lg[0][15]+'</a> ';
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a href="query.asp?boardid=' + Dvbbs.BoardID+ '">'+lg[0][7]+'</a> ';
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a  onMouseOver="ShowMenu(Dvbbs.stylelist,100)" style="CURSOR:hand" >'+lg[0][8]+'</a> ';
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+= ' <a  onMouseOver="ShowMenu(Dvbbs.boardstat,100)" style="CURSOR:hand">'+lg[0][9]+'</a> ';
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a href="show.asp?boardid=' + Dvbbs.BoardID + '" onMouseOver="ShowMenu(Dvbbs.downlist,100)">'+lg[0][10]+'</a> ';
		//Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		//Menu.innerHTML+=' <a href="http://www.dvbbs.net/dvgame/"><font color=red>聊天游戏中心</font></a> ';
		Menu.innerHTML+=Showpic(Dvbbs.Forum_Info[7] +'navspacer.gif','')
		Menu.innerHTML+=' <a href="dispuser.asp?boardid='+ Dvbbs.BoardID +'&action=permission">'+lg[0][16]+'</a> ';
	}
		
}


//论坛尾部代码
function dvbbs_footer(runtime){
	document.write ('<p><Div id=bottom align=center ></div>');
	document.write ('<p><TABLE cellSpacing=0 cellPadding=0 width="'+ Dvbbs.Forum_Body[12] +'" border=0 align=center>');
	document.write ('<tr><td align=center>');
	document.write (Dvbbs.Forum_ads[1])
	document.write ('</td></tr>');
	document.write ('<tr>');
	document.write ('<td align=center>');
	document.write ('<table align=center>');
	document.write ('<td align=center>');
	document.write ('Powered By ：<a href=http://www.dvbbs.net/download.asp target=_blank>'+Dvbbs.Version.replace("Dvbbs","Dvbbs Version")+' Beta1</a>');
	document.write ('<BR>');
	document.write (Dvbbs.Forum_copyright);
	if (Dvbbs.Forum_Setting[30]=='1'){
	document.write (lg[0][18] + runtime + lg[0][19])
	}
	document.write ('<br><font color="#999999" onmousemove="this.color=Dvbbs.Forum_Body[8]" onmouseout="this.color=\'#999999\'" >'+lg[0][20]+'['+Dvbbs.SkinName+']</font>');
	document.write ('</td>');
	if (Dvbbs.Forum_ChanSetting[0]==1)
	{
	document.write ('<td align=right><a href="http://www.ray5198.com" target=_blank title="'+lg[0][17]+'"><img src="pic/rayslogo.GIF" border=0></a></td>');
	}
	if(isindex){Adsshow();}
	document.write ('</table>');
	document.write ('</td></tr>');
	document.write ('</table>');
	document.write ('</body></html>');
	if(Dvbbs.Forum_ChanSetting[0]=='1' && Dvbbs.Forum_ChanSetting[1]=='1')
	{
		if(Dvbbs.Forum_ChanSetting[2]=='1')
		{
		//	TOP.innerHTML=adcode_4.innerHTML;
			adcode_4.innerHTML='';
		}
		if(Dvbbs.Forum_ChanSetting[3]=='1')
		{
		//	Topads.innerHTML=adcode_1.innerHTML;
			adcode_1.innerHTML='';
		}
		if(Dvbbs.Forum_ChanSetting[4]=='1')
		{
			bottom.innerHTML=adcode_2.innerHTML;
			adcode_2.innerHTML='';
		}	
	}
	
}
function ShowBbsErr(Info)
{	
	document.write ('<br><table cellpadding=3 cellspacing=1 align=center class=tableborder1 style="width:75%">');
	document.write ('<tr align=center>');
	document.write ('<th width="100%" height=25 colspan=2>'+Dvbbs.Forum_Info[0]+'-'+lg[0][21]);
	document.write ('</td>');
	document.write ('</tr>');
	document.write ('<tr>');
	document.write ('<td width="100%" class=tablebody1 colspan=2>');
	document.write ('&nbsp;&nbsp;&nbsp;<b>'+lg[0][22]+'“<font color="'+Dvbbs.Forum_Body[8]+'">'+Info+'</font>”'+lg[0][23]+'（'+Dvbbs.ErrInfo.length+'）'+lg[0][24]+'</b><br>');
	for (i=0;i<Dvbbs.ErrInfo.length;i++)
	{
		document.write ('<br><li>'+(i+1)+'、'+Dvbbs.ErrInfo[i]+'');
	}
	document.write ('</td></tr>');
	document.write ('<tr><td width="100%" class=tablebody1 colspan=2>');
	document.write ('<li>'+lg[0][25]);
	document.write ('</td></tr>');
	document.write ('<tr><td class=tablebody2 valign=middle colspan=2 align=center>');
	document.write ('<a href="javascript:history.go(-1)"><< '+lg[0][26]+'</a>');
	document.write ('</td></tr>');
	document.write ('</table>');
	if (Dvbbs.FindUser == false)
	{
		document.write ('<form action="login.asp?action=chk" method=post > ');
		document.write ('<table cellpadding=3 cellspacing=1 align=center class=tableborder1 style="width:75%">');
		document.write ('<tr>');
		document.write ('<th valign=middle colspan=2 align=center height=25>'+lg[0][27]+'</th></tr>');
		document.write ('<tr>');
		document.write ('<td valign=middle class=tablebody1>'+lg[0][28]+'</td>');
		document.write ('<td valign=middle class=tablebody1><INPUT name=username type=text> &nbsp; <a href=reg.asp>'+lg[0][29]+'</a></td></tr>');
		document.write ('<tr>');
		document.write ('<td valign=middle class=tablebody1>'+lg[0][30]+'</td>');
		document.write ('<td valign=middle class=tablebody1><INPUT name=password type=password> &nbsp; <a href=lostpass.asp>'+lg[0][31]+'</a></td></tr>');
		document.write ('<tr>');
		document.write ('<td class=tablebody1 valign=top width=30% ><b>'+lg[0][32]+'</b><BR> '+lg[0][33]+'<br>'+lg[0][34]+'</td>');
		document.write ('<td valign=middle class=tablebody1><input type=radio name=CookieDate value=0 checked>'+lg[0][35]+'<br>');
		document.write ('<input type=radio name=CookieDate value=1>'+lg[0][36]+'<br>');
		document.write ('<input type=radio name=CookieDate value=2>'+lg[0][37]+'<br>');
		document.write ('<input type=radio name=CookieDate value=3>'+lg[0][38]+'<br></td></tr>');
		document.write ('<tr>');
		document.write ('<td valign=top width=30% class=tablebody1><b>'+lg[0][39]+'</b><BR> '+lg[0][40]+'</td>');
		document.write ('<td valign=middle class=tablebody1><input type=radio name=userhidden value=2 checked>'+lg[0][41]+'<br>');
		document.write ('<input type=radio name=userhidden value=1>'+lg[0][39]+'<br>');
		document.write ('</td></tr>');
		document.write ('<tr>');
		document.write ('<td class=tablebody2 valign=middle colspan=2 align=center><input type=submit name=submit value="'+lg[0][42]+'"></td></tr></table>');
		document.write ('</form>');
	}
}
//显示成功信息
//发贴的  
function post_suc(gURL,thisinfo,TURL,kk)
{	
	if (kk=='0'){kk=lg[0][43]}
	if (kk=='1'){kk=lg[0][44]}
	if (kk=='2'){kk=lg[0][45]}
	document.write ('<br>');
	document.write ('<meta http-equiv=refresh content="3;URL='+gURL+'">');
	document.write ('<table cellpadding=3 cellspacing=1 align=center class=tableborder1>');
	document.write ('<tr align=center><th width="100%">状态：'+kk+'</td>');
	document.write ('</tr><tr><td width="100%" class=tablebody1>');
	document.write (lg[0][46]+thisinfo+'，<b>'+lg[0][47]+'</b><br><ul>');
	document.write ('<li><a href="index.asp">'+lg[0][48]+'</a></li>');
	document.write ('<li><a href="list.asp?boardid='+Dvbbs.BoardID+'">'+Dvbbs.BoardType+'</a></li>');
	document.write ('<li><a href="'+TURL+'">'+thisinfo+'</a></li>');
	document.write ('</ul></td></tr></table>');
}
//一般操作的 
function Dvbbs_suc(thisInfo,a)
{
	document.write ('<br>');
	document.write ('<table cellpadding=3 cellspacing=1 align=center class=tableborder1>');
	document.write ('<tr align=center>');
	document.write ('<th width="100%">'+lg[0][49]);
	document.write ('</td>');
	document.write ('</tr>');
	document.write ('<tr>');
	document.write ('<td width="100%" class=tablebody1>');
	document.write ('<b>'+lg[0][50]+'</b><br><br>');
	document.write (thisInfo);
	document.write ('</td></tr>');
	document.write ('<tr align=center><td width="100%" class=tablebody2>');
	document.write ('<a href="javascript:history.go('+a+')"><< '+lg[0][26]+'</a>');
	document.write ('</td></tr>');
	document.write ('</table>');
}

function dvbbs_navigation(showstr)
{
	document.write ('<table cellspacing=1 cellpadding=3 align=center border=0 width=' + Dvbbs.Forum_Body[12] + '>')
	document.write ('<tr>')
	if (Dvbbs.FindUser)
	{	
		Dvbbs.sendmsgnum=0;
		Dvbbs.sendmsgid=0;
		Dvbbs.sendmsguser='';
		if (Dvbbs.usermsg!='')
		{
			Dvbbs.usermsg=Dvbbs.usermsg.split("||")
			if (Dvbbs.usermsg.length==3)
			{
				Dvbbs.sendmsgnum=Dvbbs.usermsg[0]
				Dvbbs.sendmsgid=Dvbbs.usermsg[1]
				Dvbbs.sendmsguser=Dvbbs.usermsg[2]
			}
			
		}
		
		document.write ('<td width=65% ></td><td width=35% align=right>')
		if (Dvbbs.sendmsgnum>0)
		{
			document.write ('<bgsound src=' + Dvbbs.Forum_Info[7] + Dvbbs.Forum_statePic[8] + ' border=0>')
			if (Dvbbs.Forum_Setting[10]==1)
			{
				document.write ('<script language="JavaScript">openScript("messanger.asp?action=read&id=' + Dvbbs.sendmsgid + '&sender=' + Dvbbs.sendmsguser + '",500,400)<\/script>')}
				document.write ('<img src=' + Dvbbs.Forum_Info[7] + Dvbbs.Forum_boardpic[9] + '> <a href="usersms.asp?action=inbox">'+lg[0][52]+'</a> (<a href="javascript:openScript(\'messanger.asp?action=read&id=' + Dvbbs.sendmsgid + '&sender=' + Dvbbs.sendmsguser + '\',500,400)"><font color=' + Dvbbs.Forum_Body[8] + '>' + Dvbbs.sendmsgnum + ' '+lg[0][53]+'</font></a>)')
			}
			else
			{
				document.write ('<img src=' + Dvbbs.Forum_Info[7] + Dvbbs.Forum_boardpic[8] + '> <a href="usersms.asp?action=inbox">'+lg[0][52]+'</a> (<font color=gray>0 '+lg[0][53]+'</font>)')
			}
		}
		else
		{
			document.write ('<td height=25><BR>>> ')
			if (Dvbbs.BoardID>0)
			{
				document.write (Dvbbs.readme)
			}
			else
			{
				document.write (lg[0][51]+' <B>' + Dvbbs.Forum_Info[0] + '</B>')
			}
		}
		document.write ('</td></tr></table>')
		document.write ('<table cellspacing=1 cellpadding=3 align=center class=tableBorder2>')
		document.write ('<tr><td height=25 valign=middle>')
		document.write ('<img src=' + Dvbbs.Forum_Info[7] + Dvbbs.Forum_pic[12] + ' align=absmiddle> <a href=index.asp>' + Dvbbs.Forum_Info[0] + '</a> → ')
		document.write ('<a name=top></a>')
		document.write (showstr);
		
		
		document.write ('</td></td></table><br>');
}

function Laodcss()
{
	document.write ("<style type=text/css>");
	document.write (Dvbbs.Forum_Body[6]);
	document.write ("BODY{" + Dvbbs.Forum_Body[25] + "}");
	document.write ("TD{" + Dvbbs.Forum_Body[10] + "}");
	document.write ("th{" + Dvbbs.Forum_Body[2] + "}");
	document.write ("td.TableTitle2{" + Dvbbs.Forum_Body[3] + "}");
	document.write ("td.TableBody1{" + Dvbbs.Forum_Body[4] + "}");
	document.write ("td.TableBody2{" + Dvbbs.Forum_Body[5] + "}");
	document.write ("td.TopDarkNav{" + Dvbbs.Forum_Body[24] + "}");
	document.write ("td.TopLighNav{" + Dvbbs.Forum_Body[23] + "}");
	document.write ("td.TopLighNav1{" + Dvbbs.Forum_Body[26] + "}");
	document.write ("td.TopLighNav2{" + Dvbbs.Forum_Body[28] + "}");
	document.write (".tableBorder1{" + Dvbbs.Forum_Body[0] + "}");
	document.write (".tableBorder2{" + Dvbbs.Forum_Body[1] + "}");
	document.write (Dvbbs.Forum_Body[7]);
	document.write ("input,select,Textarea{font-family:Tahoma,Verdana,"+lg[0][54]+"; font-size: 12px; line-height: 15px;}");
	document.write (".normalTextSmall {     font-size : 11px;    color : #000000;     font-family: Verdana, Arial, Helvetica, sans-serif;}");
	document.write ("</style>");
}

function Dv_head()
{
	Dv_head01()
	ShowTop()
}


function Dv_head01()
{
	Dvbbs.Forum_Info=Dvbbs.Forum_Info.split(",");
	Dvbbs.Forum_Setting=Dvbbs.Forum_Setting.split(",");
	Dvbbs.Forum_userface=Dvbbs.Forum_userface.split("|");
	Dvbbs.Forum_ads=Dvbbs.Forum_ads.split("$");
	Dvbbs.Forum_user=Dvbbs.Forum_user.split(",");
	Dvbbs.Forum_boardpic=Dvbbs.Forum_boardpic.split(",");
	Dvbbs.Forum_Body =Dvbbs.Forum_Body.split("|||");
	Dvbbs.Forum_pic=Dvbbs.Forum_pic.split(",");
	Dvbbs.GroupSetting=Dvbbs.GroupSetting.split(",")
	Dvbbs.Forum_statePic=Dvbbs.Forum_statePic.split(",")
	Dvbbs.Forum_TopicPic=Dvbbs.Forum_TopicPic.split(",")
	Dvbbs.Forum_PostFace=Dvbbs.Forum_PostFace.split("|")
	Dvbbs.Forum_emot=Dvbbs.Forum_emot.split("|")
	Dvbbs.Forum_ubb=Dvbbs.Forum_ubb.split(",")
	Dvbbs.Forum_ChanSetting=Dvbbs.Forum_ChanSetting.split(",")
	if (Dvbbs.BoardID!=0)
	{
		Dvbbs.Board_Setting=Dvbbs.Board_Setting.split(",")
	}
	Dvbbs.Badwords=Dvbbs.Badwords.split("|");
	Dvbbs.stylelist='<a style=font-size:9pt;line-height:12pt; href="cookies.asp?action=stylemod&skinid=0&boardid='+Dvbbs.BoardID+'">'+lg[0][55]+'</a>';
	//循环自选风格 
	
	for (i=0;i<Dvbbs.Forum_skin.length;i++)
	{
		
		if (Dvbbs.SkinName==Dvbbs.Forum_skin[i])
		{
			Dvbbs.stylelist+='<br><FONT COLOR="'+Dvbbs.Forum_Body[8]+'" title="'+lg[0][56]+'">'+Dvbbs.Forum_skin[i]+'</font>';
		}
		else
		{
			Dvbbs.stylelist+='<br><a style=font-size:9pt;line-height:12pt; href="cookies.asp?action=stylemod&skinid='+Dvbbs.Forum_skinid[i]+'&boardid='+Dvbbs.BoardID+'">';
			Dvbbs.stylelist+=Dvbbs.Forum_skin[i]
			Dvbbs.stylelist+='</a>';
		}
		
	}
	Laodcss();
	if (Dvbbs.Forum_ChanSetting[0]==1)
	{
	if (Dvbbs.FoundIsChallenge)
	{
	Dvbbs.manage='<a style=font-size:9pt;line-height:14pt; href=\"challenge_mod.asp\">阳光会员修改资料</a><br><a style=font-size:9pt;line-height:14pt; href=\"JavaScript:openScript(\'challenge_mod_pw.asp\',500,400)\">修改阳光会员密码</a><br>';
	}else{
	Dvbbs.manage='<a style=font-size:9pt;line-height:14pt; href=\"challenge_up.asp\">升级成为阳光会员</a><br>';
	}
	}else{Dvbbs.manage='';}
	Dvbbs.manage+= '<a style=font-size:9pt;line-height:14pt; href="JavaScript:openScript(\'messanger.asp?action=new\',500,400)">'+lg[0][57]+'</a><br><a style=font-size:9pt;line-height:14pt; href="dispuser.asp?id='+Dvbbs.UserID+'&boardid=' + Dvbbs.BoardID + '&action=permission\">'+lg[0][16]+'</a><br><a style=font-size:9pt;line-height:14pt; href="topicwithme.asp?s=2">'+lg[0][58]+'</a><br><a style=font-size:9pt;line-height:14pt; href="topicwithme.asp?s=1">'+lg[0][59]+'</a><br><a style=font-size:9pt;line-height:14pt; href="mymodify.asp">'+lg[0][60]+'</a><br><a style=font-size:9pt;line-height:14pt; href="modifypsw.asp">'+lg[0][61]+'</a><br><a style=font-size:9pt;line-height:14pt; href="modifyadd.asp">'+lg[0][62]+'</a><br><a style=font-size:9pt;line-height:14pt; href="usersms.asp">'+lg[0][63]+'</a><br><a style=font-size:9pt;line-height:14pt; href="friendlist.asp">'+lg[0][64]+'</a><br><a style=font-size:9pt;line-height:14pt; href="favlist.asp">'+lg[0][65]+'</a><br><a style=font-size:9pt;line-height:14pt; href="myfile.asp">'+lg[0][66]+'</a>'
	Dvbbs.boardstat='<a style=font-size:9pt;line-height:14pt; href="boardstat.asp?boardid='+Dvbbs.BoardID+'">'+lg[0][67]+'</a><br><a style=font-size:9pt;line-height:14pt; href="boardstat.asp?action=lasttopicnum&boardid='+Dvbbs.BoardID+'">'+lg[0][68]+'</a><br><a style=font-size:9pt;line-height:14pt; href="boardstat.asp?action=lastbbsnum&boardid='+Dvbbs.BoardID+'">'+lg[0][69]+'</a><br><a style=font-size:9pt;line-height:14pt; href="boardstat.asp?reaction=online&boardid='+Dvbbs.BoardID+'">'+lg[0][70]+'</a><br><a style=font-size:9pt;line-height:14pt; href="boardstat.asp?reaction=onlineinfo&boardid='+Dvbbs.BoardID+'">'+lg[0][71]+'</a><br><a style=font-size:9pt;line-height:14pt; href="boardstat.asp?reaction=onlineUserinfo&boardid='+Dvbbs.BoardID+'">'+lg[0][72]+'</a>';
	Dvbbs.downlist= '<a style=font-size:9pt;line-height:14pt; href="show.asp?filetype=0&boardid='+Dvbbs.BoardID+'">'+lg[0][73]+'</a><br><a style=font-size:9pt;line-height:14pt; href="show.asp?filetype=1&boardid='+Dvbbs.BoardID+'">'+lg[0][74]+'</a><br><a style=font-size:9pt;line-height:14pt; href="show.asp?filetype=2&boardid='+Dvbbs.BoardID+'">'+lg[0][75]+'</a><br><a style=font-size:9pt;line-height:14pt; href="show.asp?filetype=3&boardid='+Dvbbs.BoardID+'\">'+lg[0][76]+'</a><br><a style=font-size:9pt;line-height:14pt; href="show.asp?filetype=4&boardid='+Dvbbs.BoardID+'">'+lg[0][77]+'</a><br><a style=font-size:9pt;line-height:14pt; href="show.asp">'+lg[0][78]+'</a>'	
	document.write ("<title>"+Dvbbs.Forum_Info[0]+"-"+dvhtmlencode(Dvbbs.Stats)+"</title>");
	document.write ('</head><body ' + Dvbbs.Forum_Body[11] + ' onmousemove="HideMenu()">');
	document.write ('<div id="menuDiv" style="Z-INDEX: 2; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px; BACKGROUND-COLOR: #9cc5f8; visibility: hidden"></div>');

}

function dvbbs_footer0(runtime){
	document.write ('<p><TABLE cellSpacing=0 cellPadding=0 width="'+ Dvbbs.Forum_Body[12] +'" border=0 align=center>');
	document.write ('<tr><td align=center>');
	document.write (Dvbbs.Forum_ads[1])
	document.write ('</td></tr>');
	document.write ('<tr>');
	document.write ('<td align=center>');
	document.write ('<table align=center>');
	document.write ('<td align=center>');
	document.write ('Powered By ：<a href=http://www.dvbbs.net/download.asp target=_blank>'+Dvbbs.Version.replace("Dvbbs","Dvbbs Version")+' Beta1</a>');
	document.write ('<BR>');
	document.write (Dvbbs.Forum_copyright);
	if (Dvbbs.Forum_Setting[30]=='1'){
	document.write (lg[0][18] + runtime + lg[0][19])
	}
	document.write ('<br><font color="#999999" onmousemove="this.color=Dvbbs.Forum_Body[8]" onmouseout="this.color=\'#999999\'" >'+lg[0][20]+'['+Dvbbs.SkinName+']</font>');
	document.write ('</td>');
	if (Dvbbs.Forum_ChanSetting[0]==1)
	{
		document.write ('<td align=right><a href="http://www.ray5198.com" target=_blank title="'+lg[0][17]+'"><img src="pic/rayslogo.GIF" border=0></a></td>');
	}
	document.write ('</table>');
	document.write ('</td></tr>');
	document.write ('</table>');
	document.write ('</body></html>');
}
function chkbbslist()
{	
	var cid='';
	var bbslinkstr='';
	if (Dvbbs.Alllist.length!=0){
	for (ii=0;ii<Dvbbs.Alllist.length;ii++)
	{
		for (kk=0;kk<Dvbbs.Alllist[ii].boardid.length;kk++)
		{
			if (Dvbbs.Alllist[ii].boardid[kk]==Dvbbs.BoardID)
			{
				cid=ii;
				break;
			}
			
		}
		
	}	
		cid=(cid*1)
		for (i=0;i<Dvbbs.Alllist[cid].boardid.length;i++)
		{
			bbslinkstr+='<a href="list.asp?boardid='+Dvbbs.Alllist[cid].boardid[i]+'"> '+Dvbbs.Alllist[cid].BoardType[i]+'<a></br>';
		}
		if (bbslinkstr!='')
		{
			ShowMenu(bbslinkstr,80);
		}
	}
}

function dvbbs_user_col(){
document.write ('<table cellpadding=3 cellspacing=1 align=center class=tableborder1>');
document.write ('<tr>');
document.write ('<th width=14% height=25 id=tabletitlelink><a href=usermanager.asp>'+lg[0][79]+'</a></th>');
document.write ('<th width=14%  id=tabletitlelink><a href=mymodify.asp>'+lg[0][60]+'</a></th>');
document.write ('<th width=14%  id=tabletitlelink><a href=modifypsw.asp>'+lg[0][61]+'</a></th>');
document.write ('<th width=14%  id=tabletitlelink><a href=modifyadd.asp>'+lg[0][62]+'</a></th>');
document.write ('<th width=14%  id=tabletitlelink><a href=usersms.asp>'+lg[0][63]+'</a></th>');
document.write ('<th width=14%  id=tabletitlelink><a href=friendlist.asp>'+lg[0][64]+'</a></th>');
document.write ('<th width=14%  id=tabletitlelink><a href=favlist.asp>'+lg[0][65]+'</a></th>');
document.write ('</tr>');
document.write ('</table>');
}


//浮动广告
var brOK=false;
var mie=false;
var vmin=2;
var vmax=5;
var vr=3;
var timer1;
var jobads;

function movechip(chipname)
{
	if(brOK)
	{
		eval("chip="+chipname);
		if(!mie)
		{
			pageX=window.pageXOffset;
			pageW=window.innerWidth;
			pageY=window.pageYOffset;
			pageH=window.innerHeight;
		} 
		else
		{
			pageX=window.document.body.scrollLeft;
			pageW=window.document.body.offsetWidth-8;
			pageY=window.document.body.scrollTop;
			pageH=window.document.body.offsetHeight;
		}
		chip.xx=chip.xx+chip.vx;
		chip.yy=chip.yy+chip.vy;
		chip.vx+=vr*(Math.random()-0.5);
		chip.vy+=vr*(Math.random()-0.5);
		if(chip.vx>(vmax+vmin))  chip.vx=(vmax+vmin)*2-chip.vx;
		if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx;
		if(chip.vy>(vmax+vmin))  chip.vy=(vmax+vmin)*2-chip.vy;
		if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy;
		if(chip.xx<=pageX)
		{
			chip.xx=pageX;
			chip.vx=vmin+vmax*Math.random();
		}
		if(chip.xx>=pageX+pageW-chip.w)
		{
			chip.xx=pageX+pageW-chip.w;
			chip.vx=-vmin-vmax*Math.random();
		}
		if(chip.xx>=680)
		{
			chip.xx=chip.xx-20;
			chip.vx=-vmin-vmax*Math.random();
		}
		if(chip.yy<=pageY)
		{
			chip.yy=pageY;
			chip.vy=vmin+vmax*Math.random();
		}
		if(chip.yy>=pageY+pageH-chip.h)
		{
			chip.yy=pageY+pageH-chip.h;
			chip.vy=-vmin-vmax*Math.random();
		}
		if(!mie)
		{
			eval('document.'+chip.named+'.top ='+chip.yy);
			eval('document.'+chip.named+'.left='+chip.xx);
		}
		else
		{
			eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx);
			eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy);
		}
		chip.timer1=setTimeout("movechip('"+chip.named+"')",80);
	}
}

function stopme(chipname)
{
	if(brOK)
	{
		eval("chip="+chipname);
		if(chip.timer1!=null)
		{
			clearTimeout(chip.timer1)
		}
	}
}

function jobads()
{
	if(navigator.appName.indexOf("Internet Explorer")!=-1)
	{
		if(parseInt(navigator.appVersion.substring(0,1))>=4) brOK=navigator.javaEnabled();mie=true;
	}
	if(navigator.appName.indexOf("Netscape")!=-1)
	{
		if(parseInt(navigator.appVersion.substring(0,1))>=4) brOK=navigator.javaEnabled();
	}
	jobads.named="jobads";
	jobads.vx=vmin+vmax*Math.random();
	jobads.vy=vmin+vmax*Math.random();
	jobads.w=1;
	jobads.h=1;
	jobads.xx=0;
	jobads.yy=0;
	jobads.timer1=null;
	movechip("jobads");
}


function move_ad(Forum_ads_3,Forum_ads_4,Forum_ads_5,Forum_ads_6)
{
	document.write('<div id="jobads" style="height:49px;left:178px;position:absolute;top:1237px;width:70px; z-index:1000">');
	document.write('<a href="' + Forum_ads_4 + '" target="_blank" onmouseover=stopme("jobads"); onmouseout=movechip("jobads");>');
	document.write('<img src="' + Forum_ads_3 + '" border="0" width="' + Forum_ads_5 + '" height="' + Forum_ads_6 + '"></a></div>');
	jobads();
}

//右边固定广告
function StayCorner(){var sgTop;var sgLeft
if(sgNS){sgTop  = pageYOffset+window.innerHeight-document.Corner.document.height-10;sgLeft = pageXOffset+window.innerWidth-document.Corner.document.width-10;document.Corner.top  = sgTop;document.Corner.left = sgLeft;}else{
sgTop  = document.body.scrollTop+document.body.clientHeight-document.all.Corner.offsetHeight-30;sgLeft = document.body.scrollLeft+document.body.clientWidth-document.all.Corner.offsetWidth-5;Corner.style.top  = sgTop;Corner.style.left = sgLeft;}
setTimeout('StayCorner()', 50)}
var sgNS=(document.layers)?true:false
function fix_up_ad(sgImg,sgWidth,sgHeight,sgLink){
if(sgNS){document.write('<LAYER ID="Corner" WIDTH='+sgWidth+' HEIGHT='+sgHeight+'><A href="'+sgLink+'" target=_blank><IMG src="'+sgImg+'" BORDER=0 WIDTH="'+sgWidth+'" HEIGHT="'+sgHeight+'"></A></LAYER>');}else{document.write('<DIV ID="Corner" STYLE="position:absolute; width:'+sgWidth+'; height:'+sgHeight+'; z-index:9; filter: Alpha(Opacity=70)"><A href="'+sgLink+'" target=_blank><IMG src="'+sgImg+'" BORDER=0 WIDTH="'+sgWidth+'" HEIGHT="'+sgHeight+'"></A></DIV>');}
sgDump = StayCorner()
}

function Adsshow()
{
	if (Dvbbs.Forum_ads[2]=='1')
	{
		move_ad(Dvbbs.Forum_ads[3],Dvbbs.Forum_ads[4],Dvbbs.Forum_ads[5],Dvbbs.Forum_ads[6])
	}
	if (Dvbbs.Forum_ads[13]=='1')
	{
		fix_up_ad("" + Dvbbs.Forum_ads[8] + "","" + Dvbbs.Forum_ads[10] + "","" + Dvbbs.Forum_ads[11] + "","" + Dvbbs.Forum_ads[9] + "")
	}
}

//论坛停止服务的时候管理的入口
function adminlogin(thisinfo)
{	
	document.write ('<html><head>');
	Dvbbs.Forum_Body =Dvbbs.Forum_Body.split("|||");
	Laodcss();
	document.write ('<title>系统信息</title>');
	document.write ('</head>');
	document.write ('<body bgcolor="#FFFFFF" text="#000000">');
	document.write ('<br>');
	document.write ('<table cellpadding=3 cellspacing=1 align=center class=tableborder1 style="width:75%" >');
	document.write ('<tr align=center><th>系 统 信 息</td>');
	document.write ('</tr><tr><td width="100%" class=tablebody1>'+thisinfo+'</td></tr>');
	document.write ('<tr align=center><td width="100%" class=tablebody1>');
	document.write ('如果您是系统管理员，可以点<a href="admin_index.asp">这里登陆</a>');
	document.write ('</td></tr></table>');
	document.write ('</body></html>');
}