// Àü¿ª(html-changeState())¿¡¼­ Á¢±ÙÇϱâ À§ÇÑ Æ®¸®°´Ã¼ÀÇ ¹è¿­ MT_arr = new Array(); //·çÆ®Æú´õ Ŭ·¡½º function OctagonTree(tree_id) { var argv = OctagonTree.arguments; var argc = OctagonTree.arguments.length; this.tree_id = (argc > 0) ? argv[0] :null; this.open_save = true; this.focus_save = false; this.focus_set = true; this.tree_img_dir = "treeimg"; this.node_array = new Array(); //Æú´õ ¹è¿­ this.depth_fill = new Array(); this.cookie_flag = false; this.tree_seq = MT_arr.length; MT_arr[MT_arr.length] = this; this.node_seq = 0; this.node_array[0] = this; // focus¸¦ °¡Áø ³ëµå ¼³Á¤ this.curr_focus_node = null; // ÇöÀç ÀÌ Æ®¸®¿¡¼­ focus¸¦ °¡Áø Æú´õ // focus°ü·Ã ¸Þ¼Òµå // ÀÌ Æ®¸®ÀÇ ¼³Á¤µÈ Æ÷Ä¿½º¸¦ ÇØÁ¦ÇÑ´Ù. this.releaseFocusAll = MT_releaseFocusAll; // focus°ü·Ã ¼Ó¼º this.onfocus_color = "white"; // focus‰çÀ» ¶§ ±ÛÀÚ»ö this.onfocus_bgcolor = "#29498C"; // focus‰çÀ» ¶§ ±ÛÀÚ¹è°æ»ö this.save_focus_color = null; // ÇöÀç focus¸¦ ¾ò±âÀüÀÇ ¿ø ±ÛÀÚ»ö ÀúÀå this.save_focus_bgcolor = null; // ÇöÀç focus¸¦ ¾ò±âÀüÀÇ ¿ø ±ÛÀÚ¹è°æ»ö ÀúÀå // ÄíŰ¿¡ ¼³Á¤µÈ ¿­¸°Æú´õ this.cookie_open_node = new Array(); this.root = this; this.depth = 0; this.is_open = true; this.is_root = true; this.folder_icon = null; this.item_icon = null; this.children = new Array ; this.initialize = MT_initialize ; this.readCookieOpenNode = MT_readCookieOpenNode; this.setCookieOpenNode = MT_setCookieOpenNode; this.isCookieOpenNode = MT_isCookieOpenNode; this.setCookieFocus = MT_setCookieFocus; // ÇöÀç focus Æú´õ ¹× ¾ÆÀÌÅÛ ÄíŰ¿¡ ÀúÀå this.setFocusByCookie = MT_setFocusByCookie; // ÀúÀåµÈ focus Æú´õ ¹× ¾ÆÀÌÅÛ ÄíŰ¿¡ tree¿¡ Àû¿ë this.getNodeSeqByNodeId = MT_getNodeSeqByNodeId; // ³ëµå ¾ÆÀ̵ð·Î ³ëµå seq¸¦ °¡Á®¿Â´Ù. this.addChild = addChild ; } // Æú´õ Ŭ·¡½º function MT_Node(node_id, title, href, target, icon, is_open) { // ¼Ó¼º this.root = null; var argv = MT_Node.arguments; var argc = MT_Node.arguments.length; this.node_id = (argc > 0) ? argv[0] : null; this.title = (argc > 1) ? argv[1] : ""; this.href = (argc > 2) ? argv[2] : null; this.target = (argc > 3) ? argv[3] : null; this.icon = (argc > 4) ? argv[4] : null; this.is_open = (argc > 5) ? argv[5] : null; // focus°ü·Ã ¼Ó¼º this.save_focus_color = null; // ÇöÀç focus¸¦ ¾ò±âÀüÀÇ ¿ø ±ÛÀÚ»ö ÀúÀå this.save_focus_bgcolor = null; // ÇöÀç focus¸¦ ¾ò±âÀüÀÇ ¿ø ±ÛÀÚ¹è°æ»ö ÀúÀå // focus°ü·Ã ¸Þ¼Òµå this.setFocus = MT_setFocus; this.releaseFocus = MT_releaseFocus; this.node_seq = null; this.parent = null; this.depth = null; this.is_lase_node = true ; this.is_root = false ; this.doc_layer_obj = null; // ¹®¼­³»¿¡¼­ ÀÌ °´Ã¼¸¦ Ç¥ÇöÇÑ ¹®¼­³» °´Ã¼ this.doc_node_img_obj = null; // ¹®¼­³»¿¡¼­ ÀÌ °´Ã¼ÀÇ ³ëµå À̹ÌÁö °´Ã¼ // Àڽijëµå this.children = new Array ; // ¸Þ¼Òµå this.initialize = MT_initializeNode ; this.open = MT_openNode; this.close = MT_closeNode; this.addChild = addChild ; } function addChild(child) { if(this.children.length > 0) { this.children[this.children.length-1].is_lase_node = false; } this.children[this.children.length] = child; child.parent = this; return child; } function MT_initialize() { if(this.open_save) this.cookie_flag = this.readCookieOpenNode() // ÄíŰ¿¡ ¼³Á¤µÈ ¿­¸° Æú´õ¸¦ Àоî¿Í ¹è¿­¿¡ ÀúÀå for(var i=0;i 0) // { this.is_open = true; // } // else // { // this.is_open = false; // } } else { if( ! this.children.length > 0) { this.is_open = false; } } document.write("
"); //alert(this.depth); for(var d=1;d"); else document.write(""); } if(this.is_lase_node) { if(this.children.length > 0) { if(!this.is_open) { document.write(""); } else { document.write(""); } } else { document.write(""); } this.root.depth_fill[this.depth] = 0; } else { if(this.children.length > 0) { if(!this.is_open) { document.write(""); } else { document.write(""); } } else { document.write(""); } this.root.depth_fill[this.depth] = 1; } if(this.icon != null && this.icon != "") { document.write(""); } else if(this.icon == null && this.root.folder_icon ) { if(this.children.length > 0) document.write(""); else document.write(""); } if(this.href != "" && this.href != null) { document.write(""); document.write(""); document.write(this.title); document.write(""); document.write(""); } else { document.write(""); document.write(this.title); document.write(""); } document.write("
"); // ÇÏÀ§ ·¹º§ ·¹ÀÌ¾î »ý¼º document.write("