var recLists = 0;
function reclist(id,name,pic,message,items)
{
    this.id = id;
    this.name = name;
	this.pic = pic;
	this.message = message;
	this.items = items || [];
};
function showRec(i,k)
{
  s = recLists.items[i].message;
  if(s.length > k+2) s=s.substring(0,k)+'...';
  return "<a href='http://shop.mychat.to/web66/askr/MdFront?p_id="+recLists.items[i].id+"&command=displayDetail' target=_top>"+s+"</a>";
}
function showPic()
{
  if (recLists) {
  	i = Math.round(Math.random()*(recLists.items.length-1));
  	document.write("<a href='http://shop.mychat.to/web66/askr/MdFront?p_id="+recLists.items[i].id+"&command=displayDetail' target=_blank><img src='http://shop.mychat.to/"+recLists.items[i].pic+"' border=0 width=90><br><font size=2>"+recLists.items[i].name+"</font></a>");
  }
  else document.write("<a href=hot_cdr.htm><img src=image/cdr_img.gif width=118 height=118 border=0></a>");
}
function showName(i)
{
  return "<a href='http://shop.mychat.to/web66/askr/MdFront?p_id="+recLists.items[i].id+"&command=displayDetail' target=_top>"+recLists.items[i].name+"</a>";
}

function adtext(mode) {
var u=new Array,u1=new Array;
//u[0]="<a href=http://papa.ncc.to target=_blank>加入音樂網，讓你好歌聽不完</a>";
//u[0]="<a href=http://epaper.mychat.to/ncc_pda_z72s.htm target=_blank>PalmOne Zire72s + 掌中論命軟體，只要 <strong><font color=#FF0000>12300</font></strong> 元</a>";
//u[0]="<a href=http://ncc.to target=ad>支援 PHP,Perl,C,C++ <b><font color=red>1000M</font></b>虛擬主機一年只要<font color=red><b>3000</b></font>元</a>";
//u[1]="<a href=http://epaper.mychat.to/ncc_20040207.htm target=ad>買NCC-608擇日專家贈送「黃睿謙七政四餘通曆」</a><img src=image/lnew.gif width=25 height=10 align=absmiddle>";
//u1[0]="<a href=http://www.ncc.com.tw/book target=_blank>男女聊天超級會員1000/年,送100元儲值點數+席德娃娃</a>";
//u1[7]="<a href=http://cw3.so-net.net.tw/ad/redirect.html?PID=AG031715 target=_blank>So-net ADSL寬頻前三個月讓你免費上網</a>";
//u1[10]="<a href=league_main.htm>輕鬆聯盟專案:300人聊天聯盟,每月只要 <font color=red><b>7200</b></font> 元.</a>";
//u1[1]="<a href=http://sex2.ncc.com.tw target=ad>男女之間--情趣物商城，全面特價中</a>";
//u1[3]="<a href=/user_mgr_sell.php>除了聊天、哈啦！只要是會員就可以賺錢喔 !</a>";
//u1[5]="<a href=http://mychat.to/user_fatepay.php?sm=0&ID=ncc target=main>租用免費命理加值版面修改.</a>, 觀看<a href=http://mychat.to/s.php?bg=dye&ID=b0&p=ba_bm target=_blank>範例</a>.</a>";
//u1[6]="<a href=smsg/ target=_blank>激情麻辣交友電話 <font color=red><b>0941-662288</b></font> 讓你有不同的奇遇</a>";
//u1[7]="<a href=user_fateclass.php?sm=0>申請命理版面套餐,命理版面規劃<b>整組</b>送給你...</a>";
//u1[4]="<a href=http://epaper.mychat.to/ncc_20040101.htm target=ad>你想一次擁有MP3隨身聽、錄音筆、隨身碟嗎?</a>";
u1[0]="<a href=http://www.ncc.com.tw/books target=ad>即日起, 星僑線上購書全面九折.</a>";
//u1[1]="<a href=http://adslonline.seed.net.tw/index.asp?DealerCode=ADSLTC04 target+ad>Seednet ADSL寬頻好禮免費送給你</a>";
//u1[2]="<a href=papa_design.php>申請留言板版面設計,送你留言板一季.</a>";
u1[1]="<a href=http://www.ncc.com.tw/book/nccbook_content.php?ISBN=hl001&caption=命理洩天機-子平八字VCD影音教學(上、下) target=ad>你想把命理老師請回家嗎? 請看命理洩天機 VCD</a>";
//u1[1]="<a href=http://epaper.mychat.to/ncc_20040105.htm target=ad>即日起購買命理洩天機 VCD 就送你價值3600元的八字專家-實用版</a>";

ads1 = Math.round(Math.random()*(u1.length-1));
document.write('<font face=Arial>');
for (var i=0;i<u.length;i++)
	document.write('<img src="image/dot.gif" width="9" height="9" align="absmiddle"> '+u[i]+'<br>');
/*
if (recLists) {
	var l=0;
	ads = Math.round(Math.random()*(recLists.items.length-1));
	for (var i=0;i<4;i++) {
		j = (i+ads)%recLists.items.length;
		document.write('<img src="image/dot.gif" width="9" height="9" align="absmiddle"> '+showRec(j,23)+(i==0?'&nbsp;&nbsp;<img src=image/lnew.gif width=25 height=10 align=absmiddle>':'')+'<br>');
	}
}
else l=3;
if (mode==1) l+=u1.length; else l+=6;
*/
l=u1.length;
for (var i=0;i<l;i++) {
	if (mode==1) j=i; else j=(ads1+i)%u1.length;
	document.write('<img src="image/dot.gif" width="9" height="9" align="absmiddle"> '+u1[j]+'<br>');
}
document.write('</font>');
}