﻿gg='`satheme/`sk4'
oo1=new Array()//缓存

function ooo(n)
{
	switch(n)
	{
		case "pc":return oo2("pc",0,20)	//每页贴子数
	}
	return 0
}


function oo2(g,m,d)
{
	if(oo1[m]!=null)return oo1[m]
	var a=Gt3(gg,g)
	if(a=="")a=d
	oo1[m]=a
	return a
}

function runstring(n)
{
	f23.runstr=n
	setTimeout(f23.runstr,10)
}

function style3(){setTimeout("Uj(top.B[3]+'theme.js')",1)}

function pass(){if(cookie3("i")!='' && cookie3('p')!='')return true;else return false}

function UserInfo(n){//打开个人资料页面
window.open("userinfo2.htm?"+n,"","left="+(screen.width-630)+",resizable=1,width=580,scrollbars=1,menubar=1,status=1")}

function cookie3(m){//读cookie
var a,b,c,d,e,f;
e=document.cookie+''
e=e.toLowerCase().split(";")
for(d=0;d<e.length;d++){
f=e[d].split("amobbs")
if(f.length>1){a=e[d].split("&")
for(b=0;b<a.length;b++){c=a[b].split("=")
if(c.length==3){if(c[1]==m)return c[2]}
else if(c.length==2){if(c[0]==m)return c[1]}}
}}return ""}


function leftclose(n)
{
	if(fram3.cols=='30,*')
	{
		fram3.cols='130,*'
		//n.src=B[3]+"move4.gif"
		self.left23.leftdiv.style.display="none"
	}
	else
	{
		fram3.cols='30,*'
		//n.src=B[3]+"move6.gif"
		self.left23.leftdiv.style.display=""
	}
	S.leftpic()
}


//取得今天的时间
function TimeNow()
{
	var  d=new Date()
	return (d.getFullYear()-2003)*535680+(d.getMonth()+1)*44640+d.getDate()*1440+d.getHours()*60+d.getMinutes()
}


function TimeInt(m,n)//数字　时间格式(日，时，分，秒)
{
	var a=new Array()
	function GetDateNumber(x,y)//年份，月份
	{
		if(x%4==0 && y==2)return 29
		c=new Array(0,31,28,31,30,31,30,31,31,30,31,30,31)
		return c[y]
	}
	function And0(n)
	{
		if(n<10)return "0"+n
		else return n
	}
	switch(n)
	{
	case 1://日
		a[0]=Math.floor(m/372)+2003
		a[1]=Math.floor(m/31)%12
		if(a[1]==0){a[1]=12;a[0]--}
		a[2]=m%31
		return a[0]+"-"+And0(a[1])+"-"+And0(a[2])
	case 2://时
		a[0]=Math.floor(m/8928)+2003
		a[1]=Math.floor(m/744)%12
		if(a[1]==0){a[1]=12;a[0]--}
		a[2]=Math.floor(m/24)%31
		if(a[2]==0)
		{
			if(a[1]==1){a[1]=12;a[0]--}
			else a[1]--
			a[2]=GetDateNumber(a[0],a[1])
		}
		a[3]=m%24
		return a[0]+"-"+And0(a[1])+"-"+And0(a[2])+" "+And0(a[3])+"时"
	case 4://秒
		a[0]=Math.floor(m/32140800)+2003
		a[1]=Math.floor(m/2678400)%12
		if(a[1]==0){a[1]=12;a[0]--}
		a[2]=Math.floor(m/86400)%31
		if(a[2]==0)
		{
			if(a[1]==1){a[1]=12;a[0]--}
			else a[1]--
			a[2]=GetDateNumber(a[0],a[1])
		}
		a[3]=Math.floor(m/3600)%24
		a[4]=Math.floor(m/60)%60
		a[5]=m%60
		return a[0]+"-"+And0(a[1])+"-"+And0(a[2])+" "+And0(a[3])+":"+And0(a[4])+":"+And0(a[5])
	default://分
		a[0]=Math.floor(m/535680)+2003
		a[1]=Math.floor(m/44640)%12
		if(a[1]==0){a[1]=12;a[0]--}
		a[2]=Math.floor(m/1440)%31
		if(a[2]==0)
		{
			if(a[1]==1){a[1]=12;a[0]--}
			else a[1]--
			a[2]=GetDateNumber(a[0],a[1])
		}
		a[3]=Math.floor(m/60)%24
		a[4]=m%60
		return a[0]+"-"+And0(a[1])+"-"+And0(a[2])+" "+And0(a[3])+":"+And0(a[4])
	}
}



function icoString3(n)//反回可显示的头像的html源文件
{
	var c
	c="other/ico1.jpg"
	if(n==null || n=="")
	{
		return "<img border=0 src="+c+">"
	}
	var d=n.split("*")
	if(parseInt(n)==n)
	{
		c=B[9]+"ico/"+(n*1+100)+".gif"
	}
	else if(n.length<6 && n.substr(0,1)=="j")
	{
	c=B[9]+"ico/j/"+((n.substring(1))*1+100)+".jpg"
	}
	else if(d.length==3)
	{
		c="http://"+d[0]+" width="+d[1]+" height="+d[2]
	}
	return "<img border=0 src="+c+" onerror=top.picnoread(this)>"
}


function picnoread(n)
{
	if(n.read3==1)return
	n.read3=1
	n.src='other/noread.jpg'
	n.width=128
	n.height=130
}

function picreaderror(n)
{
	var a=n.src
	var t='<table border=1 cellpadding=4 cellspacing=0 bordercolor='+S(3)+'><tr><td>'
	+'<font color='+S(10)+'>此图片读取失败</font>，图片地址为'+a
	+'</td></tr></table>'
	n.outerHTML=t
}


function picreadend(n)
{
	if(n.read5==1)return
	n.read5=1
	var w=self.fm23.document.body.clientWidth
	a=w-230
	if(a<300)return
	if(n.width>a)
	{
		n.width=a
		n.insertAdjacentHTML("afterEnd","<br><a href='"+n.src+"' target=_blank>放大</a><br>")
	}
}



//论坛级别
function grade3(n)
{
	var a=Gt3(gg,"gr")
	var b=a.split("*")
	for(var x=0;x<b.length;x+=2)
	{
		var c=parseInt(b[x])
		if(isNaN(c))return "等级设置有错"
		if(n<=c)return b[x+1]
	}
	return b[b.length-1]+"+"
}


function code98(b)
{
	//处理自然网址
	b=V(b)
	b=(" "+b).replace(/([^=\"\]])http:\/\/([\w.:%\/`~\?&\-#=]+)/gi,"$1<A target=_blank HREF=http://$2>http://$2<\/A>")
	b=b.replace(/([^\w.\/])www.([\w.:`~%\/\?&\-#=]+)/gi,"$1<A target=_blank HREF=http://www.$2>www.$2<\/A>")
	if(b.match(/[\[{]/))
	{
		//颜色
		b=b.replace(/\[Text([^\[\]\'\"]+)\]([^\[\]]+)\[\/Text\]/g,"<span style='$1'>$2<\/span>")
		//段落
		b=b.replace(/{Align([^{}\'\"]+)}([^{]+){\/Align}/g,"<div style='$1'>$2<\/div>")
		//图片
		b=b.replace(/\[img\]([^\[\n]+)\[\/img\]/g,"<IMG SRC=$1 border=0 onerror=top.picreaderror(this) onload=top.picreadend(this)>")
		b=b.replace(/\[IMG(\d+)a(\d+)a(\d+)([jpgnif]+)\]/g,"<img src=pic/$1/$2a$3.$4 onerror=top.picreaderror(this) onload=top.picreadend(this)>")

		//flash(\d*)
		b=b.replace(/\[flash\]([^\[\n]+)\[\/flash\]/g,'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="300"><param name="movie" value="$1"><param name="quality" value="high"><embed src="$1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="419" height="139"></embed></object><br><A HREF="$1" target=_blank>$1</A><br>')

		//网址
		b=b.replace(/\[url\]([^\r\n\[]+)\[\/url\]/g,'<A target=_blank HREF="$1">$1<\/A>')
		b=b.replace(/\[url=(\S+)\]([^\r\n\[]+)\[\/url\]/g,'<A target=_blank HREF="$1">$2<\/A>')

		//处理笑脸
		b=b.replace(/\[(f\d+)\]/g,"<img src="+B[9]+"img/face/$1.gif>")
	}
	//处理回复
	b=b.replace(/【回复([^】\r]+)】/gi,"<span style=color="+S(4)+">回复$1</span>")
	//处理空格和换行
	b=b.replace(/  /g,"&nbsp; ")
	b=b.replace(/\r\n /g,"\r\n&nbsp;")
	b=b.replace(/\n/g,"<BR>")
	//if(top.bt[8]!=null)b=b.replace(top.bt[8],"<font color=red>"+top.bt[8]+"</font>")
	return b
}


//传为签名所设地转换
function codeSing(b)
{
	b=b.replace(/\</g," <")
	b=V(b)
	//颜色
	b=(" "+b).replace(/\[Text([^\[\]\'\"]+)\]([^\[\]]+)\[\/Text\]/g,"<span style='$1'>$2<\/span>")
	//段落
	b=b.replace(/{Align([^{}\'\"]+)}([^{]+){\/Align}/g,"<div style='$1'>$2<\/div>")
	b=b.replace(/\[url=(\S+)\]([^\r\n\[]+)\[\/url\]/g,'<A target=_blank HREF="$1">$2<\/A>')
	b=b.replace(/\[url\]([^\r\n\[]+)\[\/url\]/g,'<A target=_blank HREF="$1">$1<\/A>')
	b=b.replace(/([^=\"\]])http:\/\/([\w.\/~\?&\-#=]+)/gi,"$1<A target=_blank HREF=http://$2>http://$2<\/A>")
	b=b.replace(/([^A-Za-z0-9.\/])www.([\w.~\/\?&\-#=]+)/gi,"$1<A target=_blank HREF=http://www.$2>www.$2<\/A>")
	if(Gt3(gg,"sp")==1)b=b.replace(/\[img\]([^\[\n]+)\[\/img\]/g,"<a href='$1' target=_blank><IMG SRC=$1 onload='if(this.width>this.height){if(this.width>440)this.style.width=440}else{if(this.height>400)this.style.height=400}' border=0></a>")
	return b.replace(/\&lt;BR>/gi,"<BR>").substring(1)
}


//检测CODE
function code7(m,n)
{
	var c1="[CODE",c2="[/CODE]"
	var a,b,c
	a=m.split(c1);b=m.split(c2)
	if(a.length==1)return 0//没有[CODE]
	if(a.length!=b.length)return 0 //错误
	for(c=0;c<b.length-1;c++)
	{
		a=b[c].split(c1)
		if(a.length!=2)return 0
	}
	return 1
}

function code8(n){return n}






//判断某个人是否为版主
function admin5(n)
{
	if(A[22]=="")return false
	if(C["a"+A[22]]==null)return false
	var a=C["a"+A[22]].split("^")
	a=a[0].split("`")
	for(x=1;x<a.length;x+=2)
	{
		if(a[x]==n)return true
	}
	return false
}





function MO(u,w,h,l)
{
	var a=""
	if(l!=null)a="dialogLeft:"+l+"px;"
	window.showModelessDialog(u,window,"dialogWidth:"+w+"px;dialogHeight:"+h+"px;"+a+"status:0;help:0;scroll:0")
}

//查看短消息
function msgList(n)
{
	if(!pass())return msg("你没有登陆，不能看短消息")
	self.fm23.f23("page^`w3600`h3400`ur5j.htm?j=msglist&t="+n)
}

//写页数  P3,Pn
function PageHtml1(m,n)
{
	if(n<1)n=1
	var t="<a href=javascript:GoPage(1) title='当前在第"+n+"页，点此转到第一页'>"
	+n+"</a>/<a href=javascript:GoPage("+m+") title='共有"+m+"页，点此转到最后一页'>"+m+"</a> ";
	if(n>1)t+="<a href=javascript:GoPage("+(n-1)+")>上一页</a>";
	else t+=" <font color="+S(4)+">上一页</font>";
	var c=n-9;
	if(n%10!=0)c=n+1-n%10;
	if(n>10)t+=" <a href=javascript:GoPage("+(n-10)+") title=下十页>&lt;&lt;</a>";
	else  t+=" <font color="+S(4)+">&lt;&lt;</font>";
	var a;
	for(x=c;x<c+10;x++)
	{
		if(x>m)break;
		if(x<10)a=x+"&nbsp;";else a=x
		if(x==n)t+=" <font color="+S(10)+">"+a+"</font>";
		else if(x>m)t+=" <font color="+S(4)+">"+a+"</font>";
		else t+=" <a href=javascript:GoPage("+x+")>"+a+"</a>";
	}
	if(m-x>1)t+=" <a href=javascript:GoPage("+(n+10)+") title=下十页>&gt;&gt;</a>";
	else t+=" <font color="+S(4)+" title=下十页>&gt;&gt;</font>";

	if(n<m)t+=" <a href=javascript:GoPage("+(n+1)+")>下一页</a>";
	else  t+=" <font color="+S(4)+">下一页</font>";
	return t
}


function msg(n)
{
	self.fm23.f23("m^"+n)
}




function typeV(m,n)
{
	m=String(m)
	m=m.replace(/[^0-9]/gi,"")
	var b,a=A.typename3
	b=a.indexOf("^"+m+"`")
	if(n==null)
	{
		if(b==-1)return ""
		return a.substring(b+2+m.length,a.indexOf("^",b+2))
	}
	if(b==-1)A.typename3+=m+"`"+n+"^"
}


//最近的分类
function typeV2(m)
{
	if(m=="")return
	if(m==null)return A.typehistory3
	var y=0,t=String(m),d=A.typehistory3.split("`")
	for(var x=0;x<d.length && y<9;x++)
	{
		if(d[x]=="" || d[x]==m)continue
		t+="`"+d[x]
		y++
	}
	A.typehistory3=t
}



function P5(n1,n2)//权限 值，范围
{
	if(pass()==false)return false
	if(A.power==999)return true
	if(A.power==null || n1==null)return false
	a=Gt3(A.powerstr,n1,"*")
	if(a==2)return true
	if(a!=1)return false
	if(n2==null)return true
	if(A.powerbl==null)return false
	b=A.powerbl.split("b")
	for(x=0;x<b.length;x++)
	{
		if(b[x]=="")continue
		if(b[x].length>n2.length)continue
		if(b[x]==n2.substring(0,b[x].length))return true
	}
	return false
}



function typein()//判断是否可以进入
{

}



function getName(i)
{
	if(i=="")return ""
	var a=top.bs[i]
	if(a==null)
	{
		self.left23.singV(i)
		return "ID:"+i
	}
	a=a.split("`")
	if(a[1]=="无签名")return "ID:"+i
	return a[1]
}


//处理代码，m内容,n文本域
function code9(m)
{
	var t=""
	var a,b,c
	var d=new Array(),f,g,h,i
	var a=m.split("[/CODE]");
	if(a.length==1)return code98(m);
	for(var x=0;x<a.length-1;x++)
	{
		b=a[x].split("[CODE");
		if(b.length==1)return code98(m)
		t+=code98(b[0])
		c=b[1].substring(2)
		b[1]=b[1].substr(0,2)
		switch(b[1])
		{
		case "1]"://flash
		case "2]"://影片rm
		case "3]"://影片avi
		case "4]"://影片avi
		case "m]"://影片其它
			c="*ur"+c
			A.oid++
			d[0]=Gt3(c,"ur","*")	//链接地址
			d[1]=Gt3(c,"wi","*")	//链接地址
			d[2]=Gt3(c,"he","*")	//链接地址
			d[3]=Gt3(c,"st","*")	//链接地址
			d[4]=Gt3(c,"ww","*")	//链接地址
			d[5]=Gt3(c,"ty","*")	//链接地址
			if(d[5]!=1 && d[5]!=2 && d[5]!=3 && d[5]!=4)
			{
				d[5]=b[1].substr(0,1)
			}
			//if(d[0].substr(0,5).toLowerCase()!="http:")d[0]=fun_[5]+d[0]

			if(d[5]=="1")//mp3
			{
				if(d[1]=="")d[1]=400
				d[6]=" width="+d[1]
				d[2]=80
				t+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"'+d[6]+'>'
				+'<param name="movie" value="'+d[0]+'">'
				+'<param name="quality" value="high">'
				+'<embed src="'+d[0]+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"'+d[6]+'></embed>'
				+'</object>'
			}
			else if(d[5]=="2")
			{
				if(d[1]=="")d[1]=400
				d[6]=" width="+d[1]
				if(d[2]=="")d[2]=300
				d[6]+=" height="+d[2]
				t+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"'+d[6]+'>'
				+'<param name="movie" value="'+d[0]+'">'
				+'<param name="quality" value="high">'
				+'<param name="wmode" value="transparent">'
				+'<embed src="'+d[0]+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"'+d[6]+'></embed>'
				+'</object>'
			}
			else if(d[5]=="3")
			{
				if(d[1]=="")d[1]=350
				d[6]=" width="+d[1]
				if(d[2]!="")d[6]+=" height="+d[2]

				t+='<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA class=OBJECT id=RAOCX'+d[6]+'>'
				+'<PARAM NAME=SRC VALUE="'+d[0]+'"><PARAM NAME=CONSOLE VALUE=Clip1><PARAM NAME=CONTROLS VALUE=imagewindow><PARAM NAME=AUTOSTART VALUE=true></OBJECT>'
				+'<br><OBJECT classid=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA height=32 id=video2 width='+d[1]+'><PARAM NAME=SRC VALUE="'+d[0]+'">'
				+'<PARAM NAME=AUTOSTART VALUE=-1><PARAM NAME=CONTROLS VALUE=controlpanel><PARAM NAME=CONSOLE VALUE=Clip1></OBJECT>'
			}
			else if(d[5]=="4")
			{
				d[6]=""
				if(d[1]!="")d[6]+=" width="+d[1]
				if(d[2]!="")d[6]+=" height="+d[2]
				t+='<object id=Player'+A.oid+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" border="1" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"'+d[6]+'>'
				+'<param name="URL" value="'+d[0]+'"><param name="AutoStart" value="true">'
				+'<param name="EnableContextMenu" value="false"><param name="ShowStatusBar" value="false">'
				+'<param name="ShowControls" value="false"><param name="AutoSize" value="true">'
				+'</object><br><a href="#" onClick="if(Player'+A.oid+'.playState==3)Player'+A.oid+'.fullScreen=true">全屏</a>'
			}
			else
			{
				d[6]=""
				if(d[1]!="")d[6]+=" width="+d[1]
				if(d[2]!="")d[6]+=" height="+d[2]
				t+='<embed src="'+d[0]+'"'+d[6]+'></embed>'
			}

			if(d[4]!=="0")t+='<br><a href="'+d[0]+'" target=_blank>'+d[0]+'</a>'
			break;
		case "5]"://html文件有限止//<a 链接，<img 图片，<input 表格，
			c=c.replace(/\&lt;/gi,"<")
			c=c.replace(/<script/gi,"&lt;script")
			c=c.replace(/<object/gi,"&lt;object")
			t+=c
			break;
		case "6]"://html文件无限止
			t+=c
			break;
		case "7]"://答案
			A.oid++
			t+="<TEXTAREA id=code5"+A.oid+" style=\'display:none\'>"	+c+"<\/TEXTAREA>"
			+S(47)+"onclick=alert(code5"+A.oid+".value)>查看答案"+S(48)
			break;
		case "8]"://字符，行高为100%
			//d=c.replace(/ /gi,"&nbsp;&nbsp;")code98(d)
			t+="<TEXTAREA wrap=off style=\"line-height:100%;background-color: transparent;overflow: visible;font-size:12px;border:0;font-family:'宋体','sim song'\">"+c+"</TEXTAREA>"
			break;
		case "9]"://内容暂隐，点击查看详文
			t+="<div style='line-height:100%'>"+code98(c)+"</div>"
			break;
		case "0]"://代码块，不能运行的那种
			A.oid++
			f="auto";
			g="block";
			t+='<table width="98%" border=1 align=center cellpadding="4" cellspacing="0" bordercolor="'+S(3)+'"><tr><td>'
			+'<table width=100% cellpadding=0 cellspacing=0><tr><td onclick=\'if(cOdE02'+A.oid+'.style.display=="block")cOdE02'+A.oid+'.style.display="none";else cOdE02'+A.oid+'.style.display="block"\'>'
			if(c.substr(1,2)=="**")
			{
				if(c.substr(0,1)=="1")g="none"
				if(c.substr(0,1)=="3")f="visible"
				c=c.substring(3)
			}
			if(c.substr(0,1)=="*")
			{
				h=c.indexOf("\r\n")
				t+=c.substring(1,h)
				c=c.substring(h+2)
			}
			d=V(c)
			d=d.replace(/  /g,"&nbsp; ")
			d=d.replace(/\r\n /g,"\r\n&nbsp;")
			d=d.replace(/\r\n/g,"<BR>")
			t+='&nbsp;</td><td align=right width=60>'
			+'<a href=javascript:void(0) onclick=\'cOdE02'+A.oid+'.style.display="none"\'>＿</a> '
			+'<a href=javascript:void(0) onclick=\'cOdE01'+A.oid+'.style.overflow="auto";cOdE02'+A.oid+'.style.display="block"\'>◇</a> '
			+'<a href=javascript:void(0) onclick=\'cOdE01'+A.oid+'.style.overflow="visible";cOdE02'+A.oid+'.style.display="block"\'>□</a>'
			+'</td></tr></table></td></tr><tr id=cOdE02'+A.oid+' style="display:'+g+'"><td><div id="cOdE01'+A.oid+'" style="width:100%;height:158px;overflow:'+f+'">'
			+d+'</div></td></tr></table>'
		break;
		case "p]":
			d=new Array()
			c="*pi"+c
			d[0]=Gt3(c,"pi","*")	//图片路径
			if(d[0]==parseInt(d[0]))d[0]="5pro/p.aspx?b=file`img`"+d[0]
			d[1]=Gt3(c,"al","*")	//对齐方式
			d[2]=Gt3(c,"bo","*")	//边框宽度
			if(d[2]!="")
			{
				d[2]=" border="+d[2]
				d[3]=Gt3(c,"bc","*")	//边框宽度
				if(d[3]!="")d[2]+=" style='border-color:"+d[3]+"'"
			}
			else
			{
				d[2]=" border=0"
			}

			d[4]=Gt3(c,"wi","*")	//宽度
			if(d[4]!="")d[4]=" width="+d[4]

			d[5]=Gt3(c,"he","*")	//高度
			if(d[5]!="")d[5]=" height="+d[5]

			d[7]=Gt3(c,"li","*")	//链接
			d[8]=Gt3(c,"ta","*")	//链接目标
			if(d[7]!="")
			{
				if(d[8]!="")d[8]=" target='"+d[8]+"'"
			}
			else if(d[4]!="" || d[5]!="")
			{
				d[7]=d[0]
				d[8]=" target=_blank"
			}

			if(d[1]=="")d[6]="<img src='"+d[0]+"'"+d[2]+d[4]+d[5]+" onload=top.picreadend(this)>"
			else if(d[1]=="center")d[6]="<div align=center><img src='"+d[0]+"'"+d[2]+d[4]+d[5]+" onload=top.picreadend(this)></div>"
			else d[6]="<img src='"+d[0]+"' align="+d[1]+d[2]+d[4]+d[5]+" onload=top.picreadend(this)>"

			if(d[7]=="" || Gt3(c,"li","*")==2)t+=d[6]
			else t+="<a href='"+d[7]+"' "+d[8]+">"+d[6]+"</a>"
		break;
	case "f]"://文件下载
		c="*id"+c
		t+="<a href=# onclick=filedown3("+Gt3(c,"id","*")+")><img src=other/ico/"+Gt3(c,"ex","*")+".gif border=0 onerror=\'this.src=\"other/ico/000.gif\"' align=absmiddle> "+Gt3(c,"01","*")+"</a>"
		break
	case "b]":

		break
	default ://代码
		A.oid++
		A.oid++
		if(b[1].charAt(0)=="]")c=b[1].charAt(1)+c
		d=12
		if(c.length>1000)d=22
		t+="<table width=100%><tr><td><TEXTAREA id=cOdE5"+A.oid+" rows="+d+" style=\'width:100%;border-width:1;background-attachment:fixed\'>"
		+V(c)+"</TEXTAREA></td><tr><td>"+S(47)+"onclick=copy5(cOdE5"+A.oid+")>复制代码"+S(48)
		+"　"+S(47)+"onclick='runE5(cOdE5"+A.oid+")'>运行代码"+S(48)
		+"　"+S(47)+"onclick=cOdE5"+A.oid+".rows+=5>增加高度"+S(48)
		+"　"+S(47)+"onclick='if(cOdE5"+A.oid+".rows>10)cOdE5"+A.oid+".rows-=5'>减小高度"+S(48)
		+"</td></tr></table>"
		break;
		}
	}
	t+=code98(a[x])
	return t
}



function g3(m,n)
{
	if(m==null)m="listback"
	var a=A.URLdata

	var b=a.indexOf("^"+m+"`")
	if(b==-1)return

	a=a.substring(b+1)

	b=a.indexOf("^")

	if(b!=-1)a=a.substring(0,b)
	a=a.split("`")
	if(a[1]==null || a[1]=="")return
	if(a[2]==null || a[2]=="")a[2]="5.htm?j="+a[0]
	if(!pass() && a[3]==1)
	{
		msg("请先登陆")
		return
	}
	a=a[2]
	if(a.indexOf("{n}")!=-1)
	{
		if(n==null)return
		a=a.replace(/\{n\}/g,n)
	}
	a=a.replace(/°/g,"`")
	a=a.replace(/＾/g,"^")
	if(a.indexOf("(")!=-1){eval(a)}
	else self.fm23.location=a
}


function admin()
{
	if(top.A.power>600)window.open("3.htm")
	else msg("权限不够!")
}



function goType(n)//转到某一分类
{
	if(n==null)n=""
	if(n=="")
	{
		var a=Gt3(gg,"at")
		switch(a)
		{
			case "2":
				self.fm23.location="5.htm?j=first1"
				break
			case "3":
				break
			default:
				self.fm23.location="5.htm?j=txt"
				break
		}
	}
	else
	{
		self.fm23.location="5.htm?j=txt`tt"+n
	}
}

function load3(n)
{
	top.A[0]=cookie3("i")
	top.A[1]=Gt3(n,"@u")
	top.A[2]=Gt3(n,"#1")
	top.A.power=Gt3(n,"@t")
	top.A.powerstr=Gt3(n,"ps")
	top.A.powerbl=Gt3(n,"bl")
}

function textO(n)
{
	var backtext=""
	var ax=Gt3(n,"ty"),t1=Gt3(n,"08")
	if(ax=="3")
	{
		t1=t1.replace(/(3xvU)/g,"`")
		t1=t1.replace(/(3xvZ)/g,"^")
		return t1
	}
	if(ax=="4")
	{
		t1=t1.replace(/(3xvU)/g,"`")
		t1=t1.replace(/(3xvZ)/g,"^")
		eval(t1)
		return backtext
	}
	return code98(t1)
}


function run1()
{
	B[5]=Gt3(gg,"sk")
	B[9]="theme/"
	if(location.search.substr(0,2).toLowerCase()=="?s")B[5]=parseInt(location.search.substr(2))
	B[3]="other/4/"
	if(B[5]!=="0")
	{

		//B[5]=Math.floor(Math.random()*999)%11+1
		var sa=Gt3(gg,"sa")
		if(sa=="")sa="theme/"
		a=sa+B[5]+"/"
		var t='<script src="'+a+'theme.js"></script>'
		document.write(t)
	}
	//document.title=Gt3(gg,"01")
}


function run2()
{
	var c=location.hash
	if(c=="")c=location.search
	var a=c.charAt(1)
	c=c.substring(2)
	var b=c.split("a")
	switch(a)
	{
		case "t"://分类
			a2='5.htm?j=txt`tt'+b[0]
			if(b[1]!=null)a2+="`pn"+b[1]
			break
		case "a"://贴子
			//a2='about:blank'
			a2="5.htm?j=txt`tytxt`id"+b[0]
			if(b[1]!=null)a2+="`pn"+b[1]
			break
		case "u":
			a2="5.htm?j="+c
			break;
		default:
			if(Gt3(gg,"fp")==2)a2="5.htm?j=first1"
			else a2='5.htm?j=txt'
			break;
	}

	var cols=30
	if(Gt3(gg,"vl")==1)cols=0
	var t="<frameset framespacing=0 id=fram3 cols='"+cols+",*' bordercolor='"+S(11)+"'>"
	+"<frame name=left23 src=about:blank>"
	//+"<frameset id=fram5 rows='"+a1+"'>"
	+"<frame name=fm23 src=about:blank>"
	//+"<frame name=fmd23 src="+a3+">"
	//+"</frameset>"
	+"</frameset>"
	document.write(t)
	self.left23.location="5j.htm?j=left"
	self.fm23.location=a2
}


function _____(){}//■〓 以下为基本外观部分 〓■■■■■www.3http.com■■■■■■\\


s=new Array()
s[0]="#A3D0E9"	//表格标题颜色
s[1]="#f7f7f7"	//表格普色
s[2]="#e7e7e7"	//表格浓色
s[3]="#6CAAF4"	//表格边框颜色
s[4]="#aaaaaa"	//文字颜色淡
s[5]="#006060"	//文字颜色普（基本文字颜色）"
s[6]="#000000"	//文字颜色浓
s[9]="#CCCCFF"	//滚条颜色
s[10]="#FF0000"	//突出的字体颜色
s[18]=""	//标题栏
s[19]=""	//贴子内容标题栏的背景
s[11]="#ffffff"//body
s[12]="other/4/titlebg.gif"
//■■■■表格外框
//以下为一般表格外框
s[21]='<table width=99% cellpadding=0 cellspacing=4><tr><td><table width=100% Skinrder=0 cellpadding=0 cellspacing=0><tr>'+
'<td style="width:20;height:20" background=other/4/body7.gif></td>'+
'<td background=other/4/body8.gif>　</td>'+
'<td background=other/4/body9.gif style="width:20;height:20"></td></tr>'+
'<tr><td background=other/4/body4.gif></td>'+
'<td background=other/4/body5.gif>'

s[22]='</TD><TD background=other/4/body6.gif></TD></TR>'+
'<TR><TD style="width:20;height:20" background=other/4/body1.gif></TD>'+
'<TD background=other/4/body2.gif>　</TD>'+
'<TD style="width:20;height:20" background=other/4/body3.gif></TD></TR></TABLE></td></tr></table>'

//贴子列表外框
s[23]=s[21]
s[24]=s[22]


//贴子正文的标题外框
s[25]=s[21]
s[26]=s[22]


//贴子正文的内容外框
s[27]=s[21]
s[28]=s[22]


//■■■■导航条外框
//顶部导航条外框
s[31]='<TABLE cellspacing=0 cellpadding=0 height=22 width=99%><TR><td background=other/4/bar4.gif width=22></td><td background=other/4/bar5.gif>'
s[32]='</td><td background=other/4/bar6.gif width=22></td></tr></table>'


//底部导航条外框
s[33]=s[31]
s[34]=s[32]



//以下为100%宽度的导航条
s[35]='<TABLE cellspacing=0 width=100% cellpadding=0 height=22><TR><td background=other/4/bar1.gif width=16></td><td background=other/4/bar2.gif align=center>'
s[36]='</td><td background=other/4/bar3.gif width=16></td></tr></table>'


//以下为长条外框
s[37]='<TABLE cellspacing=0 cellpadding=0 height=22><TR><td background=other/4/bar1.gif width=16></td><td background=other/4/bar2.gif align=center>'
s[38]='</td><td background=other/4/bar3.gif width=16></td></tr></table>'


//■■■■按钮内容
//四字宽按钮
s[41]='<span style="width:75;height:21;background-image:url(other/4/button4.gif)">'
		+'<span style="width:75;height:21;line-height:20px;text-align:center;cursor:hand" '
s[42]='</span></span>'


//两字宽按钮
s[43]='<span style="width:42;height:21;background-image:url(other/4/button2.gif)">'
		+'<span style="width:42;height:21;line-height:20px;text-align:center;cursor:hand" '
s[44]='</span></span>'

//一字宽按钮
s[45]='<span style="width:21;height:21;background-image:url(other/4/button1.gif)">'
		+'<span style="width:21;height:21;line-height:20px;text-align:center;cursor:hand" '
s[46]='</span></span>'


//正文内容中四字宽的按钮框
s[47]=s[41]
s[48]=s[42]
S.s=s

 S.button1=function(n)
{
	var t=S.s[41]+"onclick="+Gt3(n,"ck")+">"+Gt3(n,"01")+S.s[42]
	return t
}


 S.button2=function(n)
{
	var t=s[43]+"onclick="+Gt3(n,"ck")+">"+Gt3(n,"01")+s[44]
	return t
}


 S.button4=function(n)
{
	var t='<span style="width:75;height:21;background-image:url(other/4/button4.gif);background-position-y:0"'
	+' onmouseover=this.style.backgroundPositionY=21 onmouseout=this.style.backgroundPositionY=0>'
	+'<span style="width:75;height:21;line-height:21px;text-align:center;cursor:hand" '
	+"onclick="+Gt3(n,"ck")+">"+Gt3(n,"01")+'</span></span>'
	return t
}

 S.buttonn=function(n)
{
	var t=s[47]+"onclick="+Gt3(n,"ck")+">"+Gt3(n,"01")+s[48]
	return t
}

 S.top=function(n)
{
	//if(top.fram3.cols=='0,*')a=6
	//else a=4
	var t='<table height=25 width=100% cellpadding=0 cellspacing=0><tr valign=top><td background=other/4/top1.jpg width=16></td><td background=other/4/top2.jpg>'
	+'<table width=100% cellpadding=1 cellspacing=0><tr>'
	//+'<td width=20><img src='+B[3]+'move'+a+'.gif class=hd onclick=top.leftclose(this)></td>'
	+'<td><a href=5.htm?j=navigation onmouseover=f23.mmdh() onmouseout=f23.mmout()>网站导航</a>：'
	+'<span style="overflow:hidden;" id=dh5h></span></td><td align=right>'
	+'<a href=# onclick=history.back()>返回</a>　<a href=# onclick=location.reload()>刷新</a>　状态：'
	if(pass())
	{
		t+="已登陆，"+A[1]+'，id号：'+cookie3("i")
	}
	else
	{
		t+='未登陆，'+button3('`01按此登陆`cktop.g3("userin")')+'，<a href=# onclick=top.g3("userreg")>按此注册</a>'
	}

	t+='</td><td width=10></td></tr></table></td></tr></table>'
	self.fm23.document.body.onscroll=S.leftpic
	setTimeout("S.leftpic()",100)
	return t
}

 S.down=function()
{
	var t=S.s[35]+'<table width=100% height=5><tr><td></td></tr></table>'
	+'<div id=down5html3><center>版权所有 '+Gt3(gg,"01")+' http://'+Gt3(gg,"ur")
	+'&nbsp;  &nbsp; Version<a href=http://3http.com/ target=_blank>《最简论坛》</a>V5.0.0 test</center></div>'
	+S.s[36]
	if(A.downhtml!=null)t+='<div id=down5html>'+textO(A.downhtml)+'</div>'
	else t+='<div id=down5html></div>'
	return t
}


 S.lefttop=function()
{
	t='<div id=leftpic1 class=hd onclick=top.leftclose(this) style="position:absolute;width:24px;height:28px;z-index:1;left:106px;top:-1px;border:0">'
	+'<img src=other/4/lefttop.jpg>'
	+'</div>'
	//clearInterval(f23.leftpic1)
	//f23.leftpic1=setInterval("S.leftpic()",500)
	self.left23.document.body.style.backgroundImage="url(other/4/leftbg.jpg)"
	return t
}

 S.leftpic=function()
{
	var f=self.fm23
	if(!f.document)return
	if(!self.left23.document)return
	try
	{
		var a=f.document.body.scrollTop
		//alert(f.document.body.scrollTop)
		if(self.left23.leftpic1.style.top-a-1!=0)
		{
			self.left23.leftpic1.style.top=self.left23.document.body.scrollTop-a-1
		}
		if(f.f23.chatdiv==2)
		{//pixelHeight
			a=f.document.body.clientHeight+f.document.body.scrollTop-f.chat23html5h.offsetHeight-24
			//alert(f.document.body.scrollTop)
			if(f.chat23html5h.innerText=="")a=-100
			if(f.chat23html5h.style.top!=a)f.chat23html5h.style.top=a
			a=self.fm23.document.body.clientWidth-260
			if(f.chat23html5h.style.left!=a)f.chat23html5h.style.left=a
		}
		a=parseInt(self.fram3.cols)
		if(self.left23.leftpic1.style.left!=a-24)
		{
			self.left23.leftpic1.style.left=a-24
		}
	}
	catch(E){}
}

 S.body=function(t)
{
	t=S.s[21]+t+S.s[22]
	return t
}


 top.S.leftdown=function()
{
	return ""
}

S.leftpicT=38
S.chatFcolor="#006600"	//普通字体颜色
S.chatMcolor="#0000ff"	//我发的消息颜色
S.chatAcolor="#ff0000"	//发给我的消息颜色
//S.chatMcolor=""	//我发的消息颜色

function _____(){}//■〓  〓■■■■■www.3http.com■■■■■■\\
 f23.DN3=function()
{
	if(top.A.msg!=null)
	{
		f23("m^"+top.A.msg)
		top.A.msg=null
	}
	var t="<div id=f23down5h></div>"
	document.write(t)
	setTimeout("f23down5h.innerHTML=top.S.down()",200)

	//以下为聊天室功能
	if(f23.chatpage!=null)return
	top.chatview()
	if(top.A.downscripthtml!=null)document.write(top.V(Gt3(top.A.downscripthtml,"08"),1))
}

function topHtml(n)//导航栏　本页标题　网址,
{
	if(self.fm23.dh5h)self.fm23.dh5h.innerHTML=n
	return ""
}

f23.run1=function()
{
	topHtml=top.topHtml
	var t='<link href="'+top.B[3]+'theme.css" rel="stylesheet" type="text/css">'+top.S.top()
	+'<script src=5inc/'+Gt3(f23.sn,"ur")+'.js></script>'
	document.write(t)
}

 f23.run2=function()
{
	aa=searchName("j")
	if(Gt3(aa,"tp")!=1)
	{
		if(location==top.location)top.location.href="\."
	}
	else
	{
		A={}
	}

	//if(!top.A.test)window.onerror=function(){return true}

	dt3=""
	document.scroll="yes"

	document.write('<style>@import url('+top.B[3]+'theme.css);</style>')
	t=''

	if(top.A.id!=null)
	{
		t+='<table width=100% cellpadding=0 cellspacing=0><tr height=3>'
		+'<td width=12 ondblclick=f23("test")> </td><td><span id=top5v></span></td>'
		+'<td align=right></td></tr>'
		+'</table>'
	}
	else
	{
		t+='<div ondblclick=f23("test") style="position:absolute;width:10px;height:10px;z-index:9;left:0px;top:0px">&nbsp;</div>'
	}
	if(top.A.test)
	{
		t+='<style>.cccc{color:#aaaaaa;text-align:center;display:block};body{border:0}</style>'
	}

	if(Gt3(aa,"ht")==2)
	{
		t=""
	}

	if(Gt3(aa,"tb")==1)
	{
		f23.TB()
	}

	a=aa.split("`")[0]
	if(a!="")
	{
		t+='<script src='+f23.path+a+'.js></'+'script>'
	}

	if(parent.f23!=null)
	{
		a=parent.f23.data5j3
		if(a!=null)
		{
			t+=a
			parent.f23.data5j3=null
		}
	}
	document.write(t)
	t=""
}


function _____(){}//■〓 以下为聊天室的功能 〓■■■■■www.3http.com■■■■■■\\
function cc(){}
function chatview()
{
	if(self.fm23.f23.chatpage!=null)return
	if(self.fm23.f23.chatdiv==null)
	{
		self.fm23.f23.chatdiv=1
		var t='<div id=chat23html5h onclick=f23("chatplus",1) style="position:absolute;width:250px;height:35px;z-index:1;left:41px;top:-100px;"></div>'
		self.fm23.document.body.insertAdjacentHTML("afterBegin",t)
		if(A.ccd==null)A.ccd=new Array()
		setInterval("readmsg()",10000)
		setTimeout("readmsg()",500)
		self.fm23.f23.chatdiv=2
		return
	}
	var a,b,c=A.ccreadid-10,d=A.ccd,f
	if(c==A.ccreadoid)return
	if(c<0)c+=1000
	var t=""
	for(var x=0;x<40;x++)
	{
		c++
		if(c>999)c=0
		if(d[c]==null)continue
		a=d[c]
		if(a.length<5)continue
		var gu=Gt3(a,"gu"),su=Gt3(a,"su"),dt=Gt3(a,"dt")
		b=top.getName(gu)
		var clo=S.chatFcolor
		if(su==A[0])clo=S.chatMcolor
		else if(gu==A[0])clo=S.chatAcolor
		var tt=TimeNow()
		if(dt!="")
		{
			if(tt-dt>3)continue
		}
		d[c]=Gt3save("dt",tt,a)

		t+='<tr><td style="filter:glow(color=#ffffff,strength=2)"><font color='+top.S(4)
		+'><a href=javascript:void(0) onclick=f23("chatplus^`us'+su+'",1)><font color='+clo+'>'
		+top.getName(su)+'</font></a>'
		if(b!="")t+='→<a href=javascript:void(0) onclick=f23("chatplus^`us'+gu+'",1)><font color='+clo+'>'+b+'</font></a>'
		t+=':</font>'
		+'<font color='+clo+'>'+top.code98(Gt3(a,"01"))+'</font>'
		+'</td></tr>'
	}
	if(self.fm23.chat23html5h)
	{
		if(t!="")t='<table width=100%>'+t+'</table>'
		else self.fm23.chat23html5h.style.top=-100
		self.fm23.chat23html5h.innerHTML=t
	}
	A.ccreadoid=c
	setTimeout("S.leftpic()",10)
	//alert(self.fm23.document.body.clientWidth+"--"+self.fm23.document.body.scrollWidth+"--"+self.fm23.document.body.offsetWidth)
	//top.left23.A.ccreadid=A.ccreadid
	//top.left23.A.ccd=A.ccd
	//top.left23.chatview() style=""
}


function readmsg()
{
	if(A.ccreadid==null)A.ccreadid=0
	U("5pro/p.aspx?b=chat`r`"+A.ccreadid,"chatK")
}

function chatK(n)
{
	var a,b,c,d,t,x,d=n.split("^")
	switch(d[0])
	{
		case "r"://读取消息
			//alert()
			if(d.length==1)return chatview()
			a=d[d.length-1]*1
			//alert(d)
			if(a<A.ccreadid)
			{
				c=a
				for(x=d.length-2;x>0 && y>=0;x--)
				{
					A.ccd[c]=d[x]
					c--
				}
				c=999
				for(;x>0;x--)
				{
					A.ccd[c]=d[x]
					c--
				}
			}
			else
			{
				c=a
				for(x=d.length-2;x>0;x--)
				{
					A.ccd[c]=d[x]
					c--
				}
			}
			A.ccreadid=a
			chatview()
			break
	}
}


//【〖www.3http.com〗】■★●◆▲〓卍♂♀○◇□△§※→↑←↓↖↗↘↙
if(location!=top.location)top.location=location

A.oid=0
A.typename3="^1`所有分类^"
A.typehistory3=""
//^12`名称^15最简论坛^

B=new Array()
C=new Array()
bs=new Array()
tc=new Array()
ty=new Array()	//分类名称

A.power=0
A[22]=""
A[21]="所有分类"
A[25]=1
if(String(location).indexOf("3http-com:83")!=-1)A.test=true

var t=""
+"^listback`返回列表`5.htm?j=txt°back"
+"^list`所有贴子`goType()"
+"^listtype`分类为n的贴子列表`goType({n})"
+"^listme`我的贴子`5.htm?j=txt°tyme`1"
+"^listdel`回收站`5.htm?j=txt°tydel`1"
+"^listnew`最新发贴`5.htm?j=txt°tynew"
+"^typeselect`选择分类`self.fm23.f23('page＾°ur5j.htm?j=typeselect&ty=list°01选择分类°idselecttype_id')"
+"^add`发表贴子`5.htm?j=add"

+"^userlist`用户列表`"
+"^userin`用户登陆`self.fm23.f23('userin',1)"
+"^userreg`新用户注册`"
+"^usersing`修改签名``us1"
+"^userinfo`改详细资料``1"
+"^userinfo2`详细资料`self.fm23.f23('page＾°ur5j.htm?j=userinfo2&i={n}°01详细信息°idslecttype_id°w3400')`1"
+"^username`改昵称和密码``1"
+"^userstatus`我的状态``1"

+"^online`所有在线人员`"
+"^msglist`未读消息`msgList(3)`1"
+"^msgold`已读消息`msgList(1)`1"
+"^msg`发送消息`self.fm23.f23('msg＾°id{n}',1)`1"
+"^chat`聊天室`"

+"^search`搜索查找`"
+"^option`快速设置`"
+"^exit`退出论坛`self.fm23.f23('go＾exit',1)`1"
+"^admin`论坛管理`admin()"
+"^first1`论坛首页"


A.URLdata=t

t='<script src="data/js/option.js"></script>'
if(pass())t+="<script src=5pro/p.aspx?js=x&b=sys`load></"+"script>"
document.write(t)


 
 
