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("");
for(var i=0;i");
// ÇöÀç °´Ã¼ÀÇ ¹®¼³» °´Ã¼ ¼³Á¤
this.doc_layer_obj =document.all["MT_node_"+this.root.tree_seq+"_"+this.node_seq];
this.doc_node_img_obj = document.all["node_img_"+this.root.tree_seq+"_"+this.node_seq]
}
function MT_openNode()
{
if(this.children.length > 0) // ÀÚ½ÄÀÌ ÀÕÀ¸¸é..
{
if(this.is_lase_node)
{
this.doc_node_img_obj.src = this.root.tree_img_dir+"/mlastnode.gif";
}
else
{
this.doc_node_img_obj.src = this.root.tree_img_dir+"/mnode.gif";
}
this.doc_layer_obj.style.display = '';
this.is_open = true;
}
}
function MT_closeNode()
{
if(this.children.length > 0) // ÀÚ½ÄÀÌ ÀÕÀ¸¸é..
{
if(this.is_lase_node)
{
this.doc_node_img_obj.src = this.root.tree_img_dir+"/plastnode.gif";
}
else
{
this.doc_node_img_obj.src = this.root.tree_img_dir+"/pnode.gif";
}
this.doc_layer_obj.style.display = 'none';
this.is_open = false;
}
}
function MT_changeStatus(tree_seq, node_seq)
{
var tree = MT_arr[tree_seq];
var node = tree.node_array[node_seq];
if(!node.is_open)
{
node.open();
}
else
{
node.close();
}
if(tree.open_save) tree.setCookieOpenNode() //ÄíŰ¿¡ ¿¸°Æú´õ ¼³Á¤
}
// ¿¸°Æú´õ ÄíŰ¿¡ ÀúÀåµÈ °ªÀ» Àоî¿Â´Ù.
function MT_readCookieOpenNode()
{
var node_seq = null;
var s_idx = 0;
var e_idx = 0;
var cf_len = 0;
var Cookie_name = "";
var OpenNodes;
if(!this.tree_id) return false; // Æ®¸® ¾ÆÀ̵𰡠ÁöÁ¤µÇÁö ¾Ê¾ÒÀ¸¸é ÄíŰ ó¸®ÇÏÁö ¾ÊÀ½
Cookie_name = "MTOF_"+ this.tree_id;
//alert(Cookie_name)
OpenNodes = MT_GetCookie(Cookie_name);
//alert("read : "+OpenNodes)
if(OpenNodes == null)
{
//alert('Äí۰¡ ¼³Á¤µÇ¾îÀÖÁö ¾ÊÀ½')
return false; //Äí۰ªÀÌ ¼³Á¤µÇ¾îÀÖÁö ¾ÊÀ¸¸é
}
cf_len = OpenNodes.length;
//alert(e_idx)
var cnt = 0;
if (cf_len < 1) return true;
while (s_idx < cf_len)
{
cnt++;
e_idx = OpenNodes.indexOf(",", s_idx);
if(e_idx == -1 && s_idx < cf_len)
{
e_idx = cf_len;
}
node_id = OpenNodes.substring(s_idx,e_idx);
this.cookie_open_node[this.cookie_open_node.length] = node_id;
s_idx = e_idx + 1
if (s_idx == 0) break;
}
return true
}
function MT_setCookieOpenNode()
{
var cnt = 0;
var strOpenNode = ""
var Cookie_name = "";
if(!this.tree_id) return false; // Æ®¸® ¾ÆÀ̵𰡠ÁöÁ¤µÇÁö ¾Ê¾ÒÀ¸¸é ÄíŰ ó¸®ÇÏÁö ¾ÊÀ½
for(var i=0;i