document.frames.fraGeneral.document.designMode = "on";
//创建右键菜单
var g_rightmenu = new CLASS_RIGHTMENU(document.getElementById("test"),document.getElementById("divTree"),"xml/rightmenu.xml");
//创建分割条
var g_splitbar = new CLASS_SPLITBAR_HORIZON(document.getElementById("divSplit"),document.getElementById("divTree"),document.getElementById("divList"));
var auto = new CLASS_AUTOUPDATE("CLASS_AUTOUPDATE",g_window);
auto.check();
CLASS_TOOLBAR.prototype.highlight = doHighlight;
var g_toolbar = new CLASS_TOOLBAR(document.getElementById("cbHead"),document.frames.fraGeneral,g_window);
g_toolbar.path = skinPath;
//全局键盘事件
document.onkeydown = function(e){
var code,o;
//兼容ns&ie事件
if(!e) e = window.event;
//兼容ns&ie按键
code = e.which ? e.which : e.keyCode;
switch(code){
case 83:
case 115: //ctrl+s
if(e.ctrlKey){
document.getElementById("bt_save").click();
}
break;
case 110: //ctrl+n
case 78:
if(e.ctrlKey){
docum