var bqn=Array();
bqn[0]="Kiss,Love,Yeah,啊!,背扭,頂,抖胸,88,汗,瞌睡,魯拉,拍磚,揉臉,生日快樂,大笑,瀑布汗~,驚訝,臭美,傻笑,拋媚眼,發怒,打醬油,俯臥撐,氣憤,囧,吻,怒,勝利,HI,KISS,不說,不要,扯花,大心,頂,大驚,飛吻,鬼臉,害羞,口水,狂哭,來,發財了,吃西瓜,套牢,害羞,慶祝,我來了,敲打,暈了,勝利,臭美,被打了,貪吃,迎接,酷,,,,,,,,,,,,,,,開心,偷笑,大哭,滴汗,嘆氣,超贊,囧囧,飛吻,天使,撒花,生氣,被砸,嚇傻,隨意吐";
bqn[1]="Kiss,Love,Yeah,啊!,背扭,頂,抖胸,88,汗,瞌睡,魯拉,拍磚,揉臉,生日快樂,攤手,睡覺,癱坐,無聊,星星閃,旋轉,也不行,鬱悶,正Music,抓牆,撞牆至死,歪頭,戳眼,飄過,互相拍磚,砍死你,扔桌子,少林寺,什麼?,轉頭,我愛牛奶,我踢,搖晃,暈厥,在籠子里,震蕩";
bqn[2]="大笑,瀑布汗~,驚訝,臭美,傻笑,拋媚眼,發怒,打醬油,俯臥撐,氣憤,囧,吻,怒,勝利,委屈,受傷,說啥呢?,閉嘴,不,逗你玩兒,飛吻,眩暈,魔法,我來了,睡了,我打,閉嘴,打,打暈了,刷牙,爆揍,炸彈,倒立,刮鬍子,邪惡的笑,不要不要,愛戀中,放大仔細看,偷窺,超高興,暈,鬆口氣,我跑,享受,修養,哭,汗,啊~,熱烈歡迎,打醬油,俯臥撐,囧";
bqn[3]="HI,KISS,不說,不要,扯花,大心,頂,大驚,飛吻,鬼臉,害羞,口水,狂哭,來,淚眼,流淚,生氣,吐舌,喜歡,旋轉,再見,抓狂,汗,鄙視,拜,吐血,噓,打人,蹦跳,變臉,扯肉,吃To,吃花,吹泡泡糖,大變身,飛天舞,回眸,可憐,猛抽,泡泡,蘋果,親,,騷舞,燒香,睡,套娃娃,捅捅,舞倒,西紅柿,愛慕,搖,搖擺,雜耍,招財,被毆,被球悶,大驚,理想,毆打,嘔吐,碎,吐痰";
bqn[4]="發財了,吃西瓜,套牢,害羞,慶祝,我來了,敲打,暈了,勝利,臭美,被打了,貪吃,迎接,酷,頂,幸運,愛心,躲,送花,選擇";
bqn[5]=",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
bqn[6]="男兜,女兜,開心,乖乖,偷笑,大笑,抽泣,大哭,無奈,滴汗,嘆氣,狂暈,委屈,超贊,囧囧,疑問,飛吻,天使,撒花,生氣,被砸,口水,淚奔,嚇傻,吐舌頭,點頭,隨意吐,旋轉,困困,鄙視,狂頂,籃球,再見,歡迎光臨,恭喜發財,稍等,我在線,恕不議價,庫房有貨,貨在路上";
bqn[7]="微笑,撇嘴,色,發獃,得意,流淚,害羞,閉嘴,睡,大哭,尷尬,發怒,調皮,呲牙,驚訝,難過,酷,冷汗,抓狂,吐,偷笑,可愛,傲慢,白眼,飢餓,困,驚恐,流汗,憨笑,大兵,奮鬥,咒罵,疑問,噓...,暈,折磨,衰,骷髏,敲打,再見,擦汗,摳鼻,鼓掌,糗大了,壞笑,左哼哼,右哼哼,哈欠,鄙視,委屈,快哭了,陰險,親親,嚇,可憐,菜刀,西瓜,啤酒,籃球,桌球,咖啡,飯,豬頭,玫瑰,凋謝,示愛,愛心,心碎,蛋糕,閃電,炸彈,刀,足球,瓢蟲,便便,月亮,太陽,禮物,擁抱,強,弱,握手,勝利,抱拳,勾引,拳頭,差勁,愛你,NO,OK,愛情,飛吻,跳跳,發抖,慪火,轉圈,磕頭,回頭,跳繩,揮手,激動,街舞,獻吻,左太極,右太極";
for (i=0;i<bqn.length;i++){
bqn[i]=bqn[i].split(',');
}
var sx=7; //每排顯示七個
var image_url=Array();
image_url[1]='../Images/Biaoqing/jx/j_00';
image_url[2]='../Images/Biaoqing/tsj/t_00';
image_url[3]='../Images/Biaoqing/ldw/w_00';
image_url[4]='../Images/Biaoqing/bobo/B_00';
image_url[5]='../Images/Biaoqing/babycat/C_00';
image_url[6]='../Images/Biaoqing/face/i_f';
image_url[7]='../Images/Biaoqing/youa/y_00';
image_url[8]='../Images/Biaoqing/qq/';
var image_url_small=Array();
image_url_small[1]='../Images/Biaoqing/jx/small/j_00';
image_url_small[2]='../Images/Biaoqing/tsj/small/t_00';
image_url_small[3]='../Images/Biaoqing/ldw/small/w_00';
image_url_small[4]='../Images/Biaoqing/bobo/small/B_00';
var image_smalld=Array();
image_smalld[1]='Images/Biaoqing/jx/small/j_00';
image_smalld[2]='Images/Biaoqing/tsj/small/t_00';
image_smalld[3]='Images/Biaoqing/ldw/small/w_00';
image_smalld[4]='Images/Biaoqing/bobo/small/B_00';
var image_urld=Array();
image_urld[1]='Images/Biaoqing/jx/j_00';
image_urld[2]='Images/Biaoqing/tsj/t_00';
image_urld[3]='Images/Biaoqing/ldw/w_00';
image_urld[4]='Images/Biaoqing/bobo/B_00';
image_urld[5]='Images/Biaoqing/babycat/C_00';
image_urld[6]='Images/Biaoqing/face/i_f';
image_urld[7]='Images/Biaoqing/youa/y_00';
image_urld[8]='Images/Biaoqing/qq/';
var image_url_default=Array();
image_url_default[1]='../Images/Biaoqing/jx/default/j_00';
image_url_default[2]='../Images/Biaoqing/tsj/default/t_00';
image_url_default[3]='../Images/Biaoqing/ldw/default/w_00';
image_url_default[4]='../Images/Biaoqing/bobo/default/B_00';
image_url_default[5]='../Images/Biaoqing/babycat/default/C_00';
image_url_default[6]='../Images/Biaoqing/face/i_f';
image_url_default[7]='../Images/Biaoqing/youa/default/y_00';
image_url_default[8]='../Images/Biaoqing/qq/default/';
function lable_update(jid){
var id,sd,rd,sdd,alt;
lable_open(jid);
var str='<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#B8B3FF">';
for (i=0;i<Math.ceil((bqn[jid-1].length)/sx);i++){
str+='<tr bgcolor="#FFFFFF" align="center" valign="middle">';
for (j=0;j<sx;j++){
str+='<td height="31">';
id=i*sx+j+1;
sd=(jid==6)?'.gif':'.jpg';
sd=(jid==8)?'.png':sd;
sdd=(j<4)?2:1;
alt=bqn[jid-1][id-1];
if (alt!=undefined){
str+='<img class="hand" src="';
if (id<10) str+=image_url_default[jid]+'0'+id+sd
else str+=image_url_default[jid]+id+sd;
if (Math.ceil((bqn[jid-1].length)/sx)>6) rd=Array(43,38)
else rd=Array(46,33);
str+='" onload="if (this.height>'+rd[2]+') this.height='+rd[2]+';if (this.width>'+rd[1]+') this.width='+rd[1]+'" onmouseover="picture_show('+sdd+','+jid+','+id+')" onmouseout="picture_show(3,'+jid+','+id+')" title="'+alt+'" onclick="biaoqing_selected('+jid+','+id+')" />';
}str+='</td>';
}
str+='</tr>';
}
str+='</table>';
$_DOM('insertbiaoqing_base').innerHTML=str;
}
function lable_open(key){
for (i=0;i<(image_url.length-1);i++){
if (key-1==i){
$_DOM('label'+(i+1)).className='insertbiaoqing_lableselected';
}else{
$_DOM('label'+(i+1)).className='insertbiaoqing_lable';
}
}
if (key>4){
$_DOM('radioed').style.color="#C0BFB5";
$_DOM('radioed2').style.color="#C0BFB5";
document.form1.radio[0].disabled=true;
document.form1.radio[1].disabled=true;
}else{
$_DOM('radioed').style.color="#000000";
$_DOM('radioed2').style.color="#000000";
document.form1.radio[0].disabled=false;
document.form1.radio[1].disabled=false;
}
}
function picture_show(fx,fy,fz){
var fw=(document.form1.radio[1].checked==true && fy<5)?image_url_small[fy]:image_url[fy];
if (fz<10) fw+='0'+fz+'.gif'
else fw+=fz+'.gif';
$_DOM('biaoqing_showdiv').innerHTML='<img id="showingpicture" src="'+fw+'" />';
if (fy==7){
$_DOM('biaoqing_showdiv').style.width=120;
$_DOM('biaoqing_showdiv').style.height=80;
}else{
var st=(document.form1.radio[1].checked==true && fy<5)?52:60;
$_DOM('biaoqing_showdiv').style.width=st;
$_DOM('biaoqing_showdiv').style.height=st;
}
if (fx==1){
//右
$_DOM('biaoqing_showdiv').className='biaoqing_showdiv';
$_DOM('biaoqing_showdiv').style.display='';
}else if (fx==2){
//左
$_DOM('biaoqing_showdiv').className='biaoqing_showdiv2';
$_DOM('biaoqing_showdiv').style.display='';
}else{
$_DOM('biaoqing_showdiv').style.display='none';
}
}
function biaoqing_selected(fy,fz){
try{
var fw=(document.form1.radio[1].checked==true && fy<5)?image_smalld[fy]:image_urld[fy];
if (fz<10) fw+='0'+fz+'.gif'
else fw+=fz+'.gif';
fw='<img src="'+fw+'" onload="if (this.height>428) this.height=428;if (this.width>570) this.width=570" />';
top.editor_insert(fw);
top.$_DOM('editarea_base').focus();
diag_close();
}catch(e){
alert('沒有找到編輯框,不能插入');
}
}