var Forum_Audibles=new Array('就这事啊！地球人都知道','嘿嘿！逗你玩！','年轻人，做人要厚道！','这干嘛？这不是拿我打岔吗？','一定要幸福喔！','你好可爱耶！','加油喔！','我好想你喔 ~','你不要这样嘛','真的好感激你啊','你简直太让我感动了！','过来..近点...再近点...Kiss！','强！实在是强！','真的么？我要晕了！','最近真的好想你哦！','啊你是中邪喔..','你好讨厌喔~','抽根烟吧！','不干不干就是不干！','饿不饿我请你吃饭','听见了吗那是我肚子在叫','哼！小样！我看你还真是找扁！','坦白从宽，你就交代了吧！','哼！你这骗子','我就是喜欢你动作非常慢的时候...','Hi!是你吧，我知道你在，我可看见你了！','哎~~看来你真的很寂寞！','年轻人虚心点没错','这么说你还不明白，你猪头啊！','掰掰啰！','拜拜了您那','哎呦！老板来了，我先走了啊！','不行不行！我得上厕所...得上厕所！','晚安做个好梦！','我困得不行了得先走一步了','有人在家吗？','开会啰！','早安！','还在加班？真忙假忙啊？','你可算来了，我等你很久了！','来啦小妞','早上好，您来啦！','你要死啦～到现在才出现，到哪里潜水去啦...','喂..我老板来了，先闪一下喽~下次再聊..','啊～～～这是一定要的啦！','嗯哼～人家.. 去撇个尿啰..嗯哼～','嗯哼～来，亲一个~','起来动一动吧，follow me! one more, two more…','祝你生日快乐~祝你生日快乐..喔喔！祝你生日快乐喽','不知道该说什么 ..','好想睡喔...zzz','让我想一想~~');

function ShowForum_Audibles(thepage) {
	var Audibles_PageSize=8;
	
	var Audibles_PageCount;
	var Audibles_Count=Forum_Audibles.length;
	var Audibles_Url;
	
	if(Audibles_Count%Audibles_PageSize==0) {
		Audibles_PageCount=(Audibles_Count)/Audibles_PageSize;
	} else {
		Audibles_PageCount=Math.floor((Audibles_Count)/Audibles_PageSize)+1;
	}
	if (thepage<=Audibles_PageCount) {
		var istr
		var AudiblesStr='<table border="0" cellspacing="0" cellpadding="0"><TR><TD>&nbsp;</TD>';
		if (thepage!=1 && Audibles_PageCount>1)
		{AudiblesStr+='<TD><img style="cursor: pointer;" onClick="ShowForum_Audibles('+(thepage-1)+');" src="Images/post/Previous.gif" width="14" height="14" title="上一页">&nbsp;</TD>';}
		for(i=(thepage-1)*Audibles_PageSize;i<(thepage-1)*Audibles_PageSize+Audibles_PageSize;i++)
		{
			if (i==Audibles_Count){break;}
			if (i<9)
				{istr='0'+(i+1);}
			else
				{istr=''+(i+1);}
			Audibles_Url='images/img_Audibles/'+istr + '.swf';
			AudiblesStr+='<TD nowrap width=50><Div style="padding:0;position:relative;width:50;height:50;left:0;top:0;">';
			AudiblesStr+='<Div style="padding:0;position:absolute;width:40;height:40;left:5;top:5;z-index:'+((i+1)*2)+';"><OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="40" height="40"><PARAM NAME=movie VALUE="'+ Audibles_Url +'"><param name=menu value=false><PARAM NAME=quality VALUE=high><PARAM NAME=play VALUE=false><param name="wmode" value="transparent"><embed src="' + Audibles_Url +'" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="40" height="40"></embed></OBJECT></div>';
			AudiblesStr+='<img src="images/img_Audibles/blank.gif" style="padding:0;position:absolute;width:50;height:50;left:0;top:0;z-index:'+((i+1)*2+1)+';" alt="'+Forum_Audibles[i]+' ([au'+istr+']，左键插入右键播放)" onClick="putAudibles(\''+istr+'\');" onContextMenu="this.parentElement.children[0].children[0].Play();return false;">';
			AudiblesStr+='</Div></TD>';
		}
		if (thepage!=Audibles_PageCount)
		{AudiblesStr+='<TD><img style="cursor: pointer;" onClick="ShowForum_Audibles('+(thepage+1)+');" src="Images/post/Next.gif" width="14" height="14" title="下一页">&nbsp;</TD>';}
		AudiblesStr+='<TD>分页：<b>'+thepage+'</b>/<b>'+Audibles_PageCount+'</b>，共<b>'+(Audibles_Count)+'</b>个';
		AudiblesStr+="<select id=Audiblespage onchange=\"ShowForum_Audibles(this.value);\">";
		for (i=1; i<=Audibles_PageCount;i++ )
		{
			AudiblesStr+="<option value=\""+i+"\">"+i;
		}
		AudiblesStr+="<\/select></TD></TR></table>";
		var Forum_AudiblesObj=document.getElementById("emot");
		Forum_AudiblesObj.innerHTML=AudiblesStr;
		document.getElementById('Audiblespage').options[thepage-1].selected=true;
	}
}
function putAudibles(theNo) {
	var ToAdd = '[au'+theNo+']';
	IframeID.document.body.innerHTML+=ToAdd;
}
function showAudibles_Say(Str) {
	document.getElementById("Audibles_Say").innerHTML = Str;
}
function showAudibles_UBB(AU_ID) {
	var istr;
	if(AU_ID>Forum_Audibles.length) return;
	if(AU_ID>9)
		istr="" + AU_ID;
	else
		istr="0" + AU_ID;
	document.write("<table border=0 cellspacing=0 cellpadding=0><tr><td><Div style='padding:0;position:relative;width:50;height:50;left:0;top:0;'><Div style='padding:0;position:absolute;width:50;height:50;left:0;top:0;z-index:1;'><OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=50 height=50><PARAM NAME=movie VALUE='images/img_Audibles/" + AU_ID + ".SWF'><param name=menu value=false><PARAM NAME=quality VALUE=high><PARAM NAME=play VALUE=false><param name='wmode' value='transparent'><embed src='images/img_Audibles/" + AU_ID + ".SWF' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width=50 height=50></embed></OBJECT></Div><img src='images/img_Audibles/blank.gif' style='padding:0;position:absolute;width:50;height:50;left:0;top:0;z-index:2;' onmouseover=this.parentElement.children[0].children[0].Play()></Div></td><td onmouseover='this.parentElement.parentElement.rows(0).cells(0).children[0].children[0].children[0].Play()' style='cursor:hand;' nowrap>　" + Forum_Audibles[AU_ID-1] + "</td></tr></table>");
}
