

//var action=new Array("inserthorizontalrule","createlink","","","delete","cut","copy","paste","undo","redo","/","bold","italic","underline","","justifyleft","justifycenter","justifyright","","insertorderedlist","insertunorderedlist","outdent","indent")
//var tooltip=new Array("插入水平線","插入鏈接","插入圖片","","刪除","剪切","複製","粘貼","撤消","恢復","/","粗體","斜體","下劃線","","向左對齊","向中靠","向右對齊","","列表","取消列表","取消縮進","縮進")
var action=new Array("bold","italic","underline","/","justifyleft","justifycenter","justifyright","","insertimage","insertMultiImage","inserttable","inserthorizontalrule","createlink","","delete","cut","copy","paste","undo","redo","","insertorderedlist","insertunorderedlist","outdent","indent","insertpage", "insertflash", "wordclean","bb2html","editimage","insertattach" )
var tooltip=new Array("粗體","斜體","下劃線","/","向左對齊","向中靠","向右對齊","","單圖插入","批量上傳圖片","插入表格","插入水平線","插入鏈接","","刪除","剪切","複製","粘貼","撤消","恢復","","有序列表","無序列表","取消縮進","縮進","插入分頁符", "多媒體插入", "Word格式清理", "bbcode轉換html","圖像處理","上傳附件")

var s=
'     ' +
'    <style>' +
'    .Utoolbutton{border:1 double;border-color:threedface;cursor:hand;background:threedface}' +
'    .Dtoolbutton{border:1 double;border-color:#FFFFFF #999999 #999999 #FFFFFF;cursor:hand;background:DDDDDD}' +
'    .Ctoolbutton{border:1 double;border-color:#999999 #FFFFFF #FFFFFF #999999;cursor:hand;background:DDDDDD}' +
'    </style>' +
'    <table border=0 cellPadding=0 cellSpacing=0 width="100%"><tbody>' +
'      <tr><td colspan="2">';
for (var i=0;i<action.length;i++) {
  if (action[i]=="/") s+='<img width="16" height="16" src="editor/images/forecolor.gif" class="Utoolbutton" onmouseover="this.className=\'Dtoolbutton\';" onmouseout="this.className=\'Utoolbutton\';" onclick="this.className=\'Ctoolbutton\';forecolor();" title="字體顏色" hspace="2" vspace="0">'
  else if (action[i]=="") s+='　'
  else {
    s+='<img width="16" height="16" src="editor/images/' + action[i] + '.gif" class="Utoolbutton" onmouseover="this.className=\'Dtoolbutton\';" onmouseout="this.className=\'Utoolbutton\';" onclick="this.className=\'Ctoolbutton\';'   
    if (i>4) { 
     if(i==8) s+='inSinglephoto();'
	 else if(i==9) s+='inMultiphoto();'
     else if(i==10) s+='intable();'
   else if(i==25) s+='insertpagesign();'
 	else if(i==26) s+='showMenu(\'media_menu\',80,62);'
 	else if(i==27) s+='Word_Clean(1,1);'
	else if(i==28) s+='bb2html();'
	else if(i==29) s+='imageEdit();'
	else if(i==30) s+='commonInputPicker(\'attach\', \'\', \'\', \'parent.insertattach\');'
	//else if(i==32) s+='str2img();'
      else s+='format(\'' + action[i] + '\');'  
     }
    else s+='create(\'' + action[i] + '\');'
    s+='" title="' + tooltip[i] + '" hspace="2" vspace="0">'
  }
}
s+=
'      </td></tr><tr><td id=htmlOnly>' +
'<select onchange="format(\'fontname\',this[this.selectedIndex].value);this.selectedIndex=0"><option selected>字體<option value="細明體">細明體<option value="新細明體">新細明體<option value="標楷體">標楷體<option value="仿宋_GB2312">仿宋_GB2312<option value="黑體">黑體<option value="Arial">Arial<option value="Arial Black">Arial Black<option value="Courier New">Courier New<option value="Georgia">Georgia<option value="Impact">Impact<option value="Lucida Console">Lucida Console<option value="Lucida Sans Unicode">Lucida Sans Unicode<option value="Marlett">Marlett<option value="Symbol">Symbol<option value="Tahoma">Tahoma<option value="Times New Roman">Times New Roman<option value="Verdana">Verdana<option value="Webdings">Webdings<option value="Wingdings">Wingdings</option></select>' +
'<select onchange="format(\'fontSize\',this[this.selectedIndex].text);this.selectedIndex=0"><option selected>字號<option>1<option>2<option>3<option>4<option>5<option>6<option>7</option></select>' +
'<select onchange="format(\'formatblock\',this[this.selectedIndex].value);this.selectedIndex=0"><option>段落格式<option value="&lt;P&gt;">普通<option value="&lt;PRE&gt;">已編排格式<option value="&lt;H1&gt;">標題一<option value="&lt;H2&gt;">標題二<option value="&lt;H3&gt;">標題三<option value="&lt;H4&gt;">標題四<option value="&lt;H5&gt;">標題五<option value="&lt;H6&gt;">標題六</select>' +
'<select onchange="specialtype(this[this.selectedIndex].value);this.selectedIndex=0"><option>特殊字體格式<option value="sup">上標<option value="sub">下標<option value="del">刪除線<option value="blink">閃爍<option value="big">增大字體<option value="small">減小字體</select>' +
'      </td><td>' +
'   <input id=mW onclick=setMode(true) type=checkbox CHECKED name=bW><label for=mw>編輯狀態</label>' +
'<input id=mH onclick=setMode(false) type=checkbox name=bH><label for=mH>源代碼</label>' +
'&nbsp;&nbsp;&nbsp;&nbsp;<input id=mP  type=checkbox name="data_Content_ImgAutoLocalize" value="1"  ><label for=mP>圖片本地化</label>'+
'     </td></tr></table>' ;

document.write(s)