var show_with_children = true; var ob_HighlightOnDnd = true; var ob_t2_arrNodesOffsetsLeft = null; var ob_t2_arrNodesOffsetsTop = null; var ob_t2_arrNodes = null; var ob_CreateSiblingOnDnd = null; var ob_editLastElement = true; var ob_allowCopy = true; var ob_copyOnNodeDrop = false; var ob_divCopy = null; var ob_prevOnKeyDown = null; var ob_prevOnKeyUp = null; var ob_t2_browsers, ob_tve, ob_tvr, ob_tvt = 0, ob_tvq = 0, ob_tvy = false, ob_tvu = null, ob_tvi = null, tree_dd_path = "", multiDnd = false, multiDndDest = null, multiDndWarnings = false, multiDndCheckSiblings = true, tree_dd_id = "", ob_tvo = 0, ob_tvp = 0, ob_tva = true, ob_tvs = 0, ob_tvd = 0, objTree, ob_bTriggerBeforeDragStart = true, ob_oEp_MD, ob_oEp_SS, ob_oEp_MM; function ob_t11(event) { if (ob_tva == true) { if (window.event) { var event = window.event; ob_tvo = event.x; ob_tvp = event.y; } else { ob_tvo = event.pageX; ob_tvp = event.pageY; } ob_tva = false; return; } else { if (window.event) { var event = window.event; ob_tvs = event.x; ob_tvd = event.y; } else { ob_tvs = event.pageX; ob_tvd = event.pageY; } } O(event); if ((Math.abs(ob_tvs - ob_tvo) > 5) || (Math.abs(ob_tvd - ob_tvp) > 5)) { if (ob_bTriggerBeforeDragStart) { try { if (!ob_OnBeforeNodeDrag(ob_tvi.firstChild.firstChild.firstChild.childNodes[2].id)) { return; } ob_bTriggerBeforeDragStart = false; } catch (o) { } } } else { return; } if (ob_tvy == false) return; var Y = document.compatMode == "Bac\x6b\x43om\x70at" ? document.body : (document.documentElement || document.body); if (ob_tvu == null && ob_tvi) { if (show_with_children == true) { ob_tvu = ob_tvi.cloneNode(true); ob_tvu.firstChild.firstChild.firstChild.firstChild.style.display = "\x6e\x6fne"; if (ob_tvu.firstChild.nextSibling != null) { ob_tvu.firstChild.nextSibling.firstChild.firstChild.firstChild.style.display = "none"; } } else { ob_tvu = ob_tvi.firstChild.cloneNode(true); document.body.appendChild(ob_tvu); ob_tvu.firstChild.firstChild.firstChild.style.display = "n\x6fne"; } multiDnd = false; if (typeof (ob_sn2) == "\x75nd\x65fined" || ob_sn2 == "") { multiDnd = false; } else { arrObSn2 = I(); if (arrObSn2.length > 1) { multiDnd = true; } } if (multiDnd) { while (ob_tvu.firstChild) { ob_tvu.removeChild(ob_tvu.firstChild); } for (var i = 0; i < arrObSn2.length; i++) { var A = ob_tvu.getElementsByTagName("\124\101\x42LE"); var e = false; for (var U = 0; U < A.length; U++) { if ((A[U].className == "ob_t\x32b" || A[U].className == "o\x62_t2g") && A[U].firstChild && A[U].firstChild.firstChild && A[U].firstChild.firstChild.childNodes[2]) { var Z = A[U].firstChild.firstChild.childNodes[2].id; if (Z == arrObSn2[i]) { e = true; } } } if (!e) { var z = document.getElementById(arrObSn2[i]).parentNode.parentNode.parentNode.cloneNode(true); z.firstChild.firstChild.firstChild.style.display = "n\x6fne"; ob_tvu.appendChild(z); if (show_with_children && document.getElementById(arrObSn2[i]).parentNode.parentNode.parentNode.nextSibling) { var z = document.getElementById(arrObSn2[i]).parentNode.parentNode.parentNode.nextSibling.cloneNode(true); z.firstChild.firstChild.firstChild.style.display = "\x6eon\x65"; ob_tvu.appendChild(z); } } } } document.body.appendChild(ob_tvu); ob_tvu.style.position = "abso\x6cute"; ob_tvu.style.zIndex = "999"; ob_tvu.style.filter = "Alph\x61(Opa\x63ity\x3d\04770\047,Fi\x6eis\x68Opa\x63it\x79=\0470\x27,\x53ty\x6ce\x3d\x271\047,\x53t\x61r\x74X\x3d\x270\x27,\x53\x74a\x72\x74Y\x3d\x270\x27,\x46\x69n\x69\x73h\x58\x3d\x271\x300\x27,\x46\x69n\x69\x73\x68Y\x3d\x271\x30\x30\x27)"; try { ob_tvu.style.X = .7; ob_tvu.style.opacity = .7; } catch (o) { } ob_tvu.id = "\157\x62_dr\x61g"; } var mouseCoords = ob_t2_GetMouseCoords(event); var xOffset = -5, yOffset = -5; if (ob_tvu != null) { ob_tvu.style.left = (mouseCoords[0] + xOffset) + 'px'; ob_tvu.style.top = (mouseCoords[1] + yOffset) + 'px'; var top = W(objTree); var bottom = top + objTree.offsetHeight; if ((ob_tvu.offsetTop - top) < 024 && objTree.scrollTop > 0) { objTree.scrollTop = objTree.scrollTop - 6; } if ((bottom - ob_tvu.offsetTop) < 024) { objTree.scrollTop = objTree.scrollTop + 6; } var p = event ? event.clientY : window.event.y; var w = window.innerHeight || document.body.clientHeight; var V = window.pageXOffset || Y.scrollLeft; var v = window.pageYOffset || Y.scrollTop; if (p < 050) { var td = v - top; td = td < 014 ? td : 014; if (td > 0) { window.scrollTo(V, v - td); } } if ((w - p) < 050) { var T = bottom - (v + w); T = T < 014 ? T : 014; if (T > 0) { window.scrollTo(V, v + T); } } } if (typeof ob_HighlightOnDnd != "\x75nd\x65fined" && ob_HighlightOnDnd == true) { var t = 0, S = 0; t = mouseCoords[0]; S = mouseCoords[1]; cNode = document.getElementById(ob_tree_id); var isPositioned = false; var checkPosition = ((ob_t2_isBrowser('IE6') || ob_t2_isBrowser('IE7')) && document.compatMode == 'CSS1Compat'); do { if (checkPosition && !isPositioned && ob_t2_GetStyle(cNode, 'position') != 'static') { isPositioned = true; } if (cNode != null && cNode != document.body) { if (typeof (cNode.scrollLeft) != "\x75\x6edefin\x65d") { t += cNode.scrollLeft; } if (typeof (cNode.scrollTop) != "und\x65fin\x65d") { S += cNode.scrollTop; } } else break; cNode = cNode.parentNode; } while (true); if (checkPosition && !isPositioned) { t -= parseInt(ob_t2_GetStyle(document.body, 'margin-left')); S -= parseInt(ob_t2_GetStyle(document.body, 'margin-top')); } if (ob_tvu == null) { if (navigator.userAgent.toLowerCase().indexOf("msie") != -1) { t += document.body.scrollLeft; S += document.body.scrollTop; } } if (ob_t2_arrNodesOffsetsTop == null) { ob_t51(); } var ob_oUnderNode = null; var ob_tempObsn2 = "|" + ob_sn2 + "|"; for (var R in ob_t2_arrNodesOffsetsTop) { ob_oNode = ob_t2_arrNodes[R]; var top = ob_t2_arrNodesOffsetsTop[R]; var left = ob_t2_arrNodesOffsetsLeft[R]; if (!ob_oUnderNode && (S >= top) && (S <= parseInt(parseInt(ob_oNode.offsetHeight) + parseInt(top))) && (t >= left) && (t <= parseInt(parseInt(ob_oNode.offsetWidth) + parseInt(left) + 050))) { ob_oUnderNode = ob_oNode; ob_oUnderNode.className = "\x6fb_t\x33"; } else if ((ob_oNode.className == "ob_t3" || ob_oNode.className == "\x6fb_\x743_abo\x76e" || ob_oNode.className == "\x6fb_\x743_und\x65r") && ob_oNode.id != tree_selected_id && (ob_sn2 == null || (ob_sn2 != null && ob_tempObsn2.indexOf("\x7c" + ob_oNode.id + "|") == -1))) { ob_oNode.className = "o\x62_t2"; } } if (ob_oUnderNode != null && typeof ob_oUnderNode.innerHTML != "u\x6edefi\x6eed") { if (ob_oUnderNode.className == "o\x62_t2") { ob_oUnderNode.className = "\x6fb\x5ft3"; } } } } function r(Q) { var a = []; var P = new Array(); var N = Q.getElementsByTagName("\124\x44"); for (var i = 0, U = N.length; i < U; i++) { if ((N[i].className == "\x6fb\x5ft2" || N[i].className == "\x6fb_t3") && N[i].parentNode.parentNode.parentNode.parentNode != ob_tvu) { if (P[N[i].id] != 1) { a.push(N[i]); P[N[i].id] = 1; } } } return a; } function I() { var n = new Array(); if (ob_sn2 != "" && ob_sn2.indexOf("|") != -1) { var M = "|" + ob_sn2 + "\x7c"; var m = document.getElementsByTagName("\x54D"); for (var i = 0; i < m.length; i++) { if (M.indexOf("\x7c" + m[i].id + "|") != -1) { n.push(m[i].id); } } } return n; } function ob_t51() { ob_t2_arrNodesOffsetsLeft = new Array(); ob_t2_arrNodesOffsetsTop = new Array(); ob_t2_arrNodes = new Array(); var L = r(document.body); var ob_oContainer = null; var l; for (var i = 0; i < L.length; i++) { ob_oNode = L[i]; if (ob_oNode.id) { ob_oContainer = ob_oNode.parentNode.parentNode.parentNode; var top = W(ob_oContainer); var left = K(ob_oContainer); ob_t2_arrNodesOffsetsLeft[ob_oNode.id] = left; ob_t2_arrNodesOffsetsTop[ob_oNode.id] = top; ob_t2_arrNodes[ob_oNode.id] = ob_oNode; } } } function k(J) { if (J) { ob_tvy = true; ob_t11(H); } else { ob_tvy = false; } } function ob_t10(event, G) { if (typeof (ob_tree_dnd_enable) == "\x75\x6edefi\x6eed" || ob_tree_dnd_enable == false) { return; } objTree = document.getElementById(ob_tree_id); ob_tvy = true; ob_tvi = G.parentNode; if (ob_allowCopy) { ob_prevOnKeyDown = document.onkeydown; ob_prevOnKeyUp = document.onkeyup; document.onkeydown = function(H) { KeyModifierWatch(H); }; document.onkeyup = function(H) { KeyModifierWatch(H); }; } document.onmousemove = function(H) { ob_t11(H); }; document.onmouseup = function(H) { if (!multiDnd) { ob_t13(H, null, null); } else if (ob_tvu != null) { g = ob_tvu.cloneNode(true); document.body.removeChild(ob_tvu); for (var i = 0; i < arrObSn2.length; i++) { ob_tvi = document.getElementById(arrObSn2[i]).parentNode.parentNode.parentNode.parentNode; ob_tvu = g.cloneNode(true); ob_tvu = document.body.appendChild(ob_tvu); ob_tvu.id = "o\x62_dra\x67"; while (ob_tvu.firstChild) { ob_tvu.removeChild(ob_tvu.firstChild); } ob_tvu.appendChild(ob_tvi.firstChild.cloneNode(true)); ob_t13(H, null, null); if (multiDndWarnings) { break; } multiDndCheckSiblings = false; } g = null; ob_tvu = null; ob_tvi = null; multiDndDest = null; arrObSn2 = null; multiDndWarnings = false; multiDndCheckSiblings = true; } }; document.onselectstart = function() { return false; }; document.onmousedown = function() { return false; }; } function ob_t12() { ob_tvy = false; ob_bTriggerBeforeDragStart = true; document.onmousemove = null; document.onselectstart = function() { return true; }; document.onmousedown = function() { return true; }; if (ob_allowCopy) { document.onkeydown = ob_prevOnKeyDown; document.onkeyup = ob_prevOnKeyUp; } } function ob_t13(event, copying, handleNaming, F, f) { if (window.event) event = window.event; if (event == null) { event = { ctrlKey: false }; } if (ob_copyOnNodeDrop == false) { copying = event.ctrlKey; } else { copying = !event.ctrlKey; } function remove_oStart() { if (ob_tvi.parentNode.childNodes.length == 1) { if (ob_tvi.parentNode.parentNode.className != "\157b_tree") { H = ob_tvi.parentNode.parentNode.parentNode.parentNode.parentNode; if (H.parentNode.className == "\157\x62_t2\x62") H.parentNode.className = "\x6fb_t\x32c"; if (H.className == "ob_d2b") H.className = "o\x62_d2c"; if (ob_tvi.parentNode.lastChild == ob_tvi) { H.firstChild.firstChild.firstChild.firstChild.firstChild.src = ob_style + "\x2fhr\x5fl.gif"; } else { H.firstChild.firstChild.firstChild.firstChild.firstChild.src = ob_style + "\x2fhr.\x67if"; } H.removeChild(H.firstChild.nextSibling); } else { ob_tvi.parentNode.removeChild(ob_tvi); } } else { if (ob_tvi.parentNode.lastChild == ob_tvi) { H = ob_tvi.previousSibling.firstChild.firstChild.firstChild.firstChild.firstChild; if (H.className != "\157\x62_d4") { H.src = ob_t16(H); H.parentNode.style.backgroundImage = "\x6eon\x65"; if (ob_tvi.previousSibling.childNodes.length > 1) { ob_tvi.previousSibling.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage = "no\x6ee"; } else { } } } } } if (F == null || f == null) { var H, D, s, d; ob_tva = true; if (ob_divCopy != null) ob_divCopy.style.display = "\x6eone"; if (copying == null) { if (window.event) event = window.event; if (ob_copyOnNodeDrop == false) { copying = event.ctrlKey; } else { copying = !event.ctrlKey; } } if (handleNaming == null) var handleNaming = function(H, Q) { return ob_generateNewId(H, Q); }; if (!ob_allowCopy) copying = false; if (ob_tvu == null) { return; } var mouseCoords = ob_t2_GetMouseCoords(event); t = mouseCoords[0]; S = mouseCoords[1]; cNode = document.getElementById(ob_tree_id); var isPositioned = false; var checkPosition = ((ob_t2_isBrowser('IE6') || ob_t2_isBrowser('IE7')) && document.compatMode == 'CSS1Compat'); do { if (checkPosition && !isPositioned && ob_t2_GetStyle(cNode, 'position') != 'static') { isPositioned = true; } cNode = cNode.parentNode; if (cNode != null && cNode != document.body) { if (typeof (cNode.scrollLeft) != "\x75\x6edef\x69ned") t += cNode.scrollLeft; if (typeof (cNode.scrollTop) != "und\x65fine\x64") S += cNode.scrollTop; } else break; } while (true); if (checkPosition && !isPositioned) { t -= parseInt(ob_t2_GetStyle(document.body, 'margin-left')); S -= parseInt(ob_t2_GetStyle(document.body, 'margin-top')); } var ob_tvf, c = false; ob_tvu.style.display = "non\x65"; B = document.getElementsByTagName("\x54A\x42LE"); if (!multiDnd || multiDndDest == null) { for (i = 0; i < B.length; i++) { var top = W(B[i]) - objTree.scrollTop; var left = K(B[i]) - objTree.scrollLeft; if (B[i].tagName == "\124\x41B\x4cE" && (S >= top && S <= B[i].offsetHeight + top) && (t >= left && t <= B[i].offsetWidth + left)) { ob_tvf = B[i]; if (ob_tvf == ob_tvi.firstChild && !copying) { if (typeof ob_HighlightOnDnd != "undef\x69n\x65d" && ob_HighlightOnDnd == true) { if (ob_tvi.firstChild.firstChild.firstChild.childNodes[2].className != "o\x62_t2" && ob_tvi.firstChild.firstChild.firstChild.childNodes[2].id != tree_selected_id && (ob_sn2 == null || (ob_sn2 != null && ("\x7c" + ob_sn2 + "|").indexOf("|" + ob_tvf.firstChild.firstChild.childNodes[2].id + "|") == -1))) { ob_tvi.firstChild.firstChild.firstChild.childNodes[2].className = "\x6f\x62_t2"; } } ob_tvf = null; alert("\x43ann\x6ft " + (!copying ? "move" : "copy") + "\056\040\x54he d\x65sti\x6eati\x6fn i\x73 t\x68e s\x61me\x20as\x20t\x68e\x20s\x6fu\x72c\x65."); } } } multiDndDest = ob_tvf; } else { ob_tvf = multiDndDest; } } else { ob_tvf = F; ob_tvi = f; } if (ob_tvf != null) { if (ob_tvf.parentNode.tagName == "D\x49V") { if (ob_tvf.firstChild && ob_tvf.firstChild.firstChild && ob_tvf.firstChild.firstChild.childNodes.length >= 3) { if (ob_tvf.firstChild.firstChild.firstChild.firstChild.tagName == "\x49MG") { s = ob_tvf.firstChild.firstChild.firstChild.firstChild.src.toLowerCase(); D = (s.length - 6); s = s.substr(D, 6); if ((s == "\x69k.\x67if") || (s == "hr\x2egif") || (s == "_l.gi\x66") || (s == "\x75\x73.gif") || (s == "\x5fr.gi\x66")) { var o0 = ob_tvf.parentNode.lastChild.firstChild.firstChild.lastChild.className; if ((o0 != "\x6fb_t7") && (o0 != "\156o\x6ee")) { } else if (ob_tvf.firstChild.firstChild.firstChild.firstChild && ob_tvf.firstChild.firstChild.firstChild.firstChild.src.toString().indexOf("plusik\x5fl.gi\x66") != -1 && !ob_isExpanded(ob_tvf.firstChild.firstChild.childNodes[2])) { if (typeof ob_HighlightOnDnd != "u\x6edef\x69ned" && ob_HighlightOnDnd == true) { if (ob_tvf.firstChild.firstChild.childNodes[2].className != "ob_\x742" && ob_tvf.firstChild.firstChild.childNodes[2].id != tree_selected_id && (ob_sn2 == null || (ob_sn2 != null && ("\x7c" + ob_sn2 + "|").indexOf("|" + ob_tvf.firstChild.firstChild.childNodes[2].id + "|") == -1))) { ob_tvf.firstChild.firstChild.childNodes[2].className = "ob_t2"; } } c = false; } } else { c = true; } } else { c = true; } } else { c = true; } } else { c = true; } } if (c == true) ob_tvf = null; var ob_drag_drop_dynamic = false; var ob_target, ob_source; if (ob_tvf != null) { if (multiDnd && multiDndCheckSiblings) { var O0 = ob_getParentOfNode(document.getElementById(arrObSn2[0])).id; for (var U = 1; U < arrObSn2.length; U++) { if (ob_getParentOfNode(document.getElementById(arrObSn2[U])).id != O0) { if (typeof ob_HighlightOnDnd != "un\x64efi\x6eed" && ob_HighlightOnDnd == true) { if (ob_tvf.firstChild.firstChild.childNodes[2].className != "ob\x5ft2" && ob_tvf.firstChild.firstChild.childNodes[2].id != tree_selected_id && (ob_sn2 == null || (ob_sn2 != null && ("|" + ob_sn2 + "|").indexOf("|" + ob_tvf.firstChild.firstChild.childNodes[2].id + "\x7c") == -1))) { ob_tvf.firstChild.firstChild.childNodes[2].className = "ob_t2"; } } ob_tvf = null; alert("\x43ann\x6ft " + (!copying ? "mo\x76e" : "copy") + "\056\040\x54he s\x65lec\x74ed \x6eod\x65s m\x75st\x20be \x63hi\x6cd\x72e\x6e \x6ff \x74h\x65 \x73a\x6de\x20\x70a\x72e\x6e\x74."); multiDndWarnings = true; break; } } } } if (ob_tvf != null) { ob_target = ob_tvf.firstChild.firstChild.firstChild.nextSibling.nextSibling; ob_source = ob_tvi.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling; if (!ob_isExpanded(ob_target)) { try { var l0 = ob_target.parentNode.firstChild.firstChild.src.indexOf("plusi\x6b_l.g\x69f"); if (ob_getLastChildOfNode(ob_target, true) == null && l0 >= 0) { ob_drag_drop_dynamic = true; } } catch (o) { } } H = ob_target; tree_dd_path = ""; ob_t19(H); var i0 = tree_dd_path.split("|"); for (i = 0; i < i0.length; i++) { if (i0[i] == ob_source.id && !copying) { if (typeof ob_HighlightOnDnd != "und\x65fin\x65d" && ob_HighlightOnDnd == true) { if (ob_tvf.firstChild.firstChild.childNodes[2].className != "ob_t2" && ob_tvf.firstChild.firstChild.childNodes[2].id != tree_selected_id && (ob_sn2 == null || (ob_sn2 != null && ("|" + ob_sn2 + "\x7c").indexOf("|" + ob_tvf.firstChild.firstChild.childNodes[2].id + "|") == -1))) { ob_tvf.firstChild.firstChild.childNodes[2].className = "\x6fb\x5ft2"; } } ob_tvf = null; alert("Canno\x74 " + (!copying ? "mo\x76e" : "\x63o\x70y") + "\x2e Th\x65 dest\x69nat\x69on \x69s \x75nde\x72 th\x65 s\x6fur\x63e\x2e"); multiDndWarnings = true; } } if (multiDnd && !copying && ob_tvf != null) { var I0 = ob_tvf.firstChild.firstChild.childNodes[2]; while (I0 != null) { if (("\174" + ob_sn2 + "|").indexOf("\x7c" + I0.id + "|") != -1) { if (typeof ob_HighlightOnDnd != "un\x64efi\x6eed" && ob_HighlightOnDnd == true) { if (ob_tvf.firstChild.firstChild.childNodes[2].className != "ob_t\x32" && ob_tvf.firstChild.firstChild.childNodes[2].id != tree_selected_id && (ob_sn2 == null || (ob_sn2 != null && ("|" + ob_sn2 + "|").indexOf("|" + ob_tvf.firstChild.firstChild.childNodes[2].id + "|") == -1))) { ob_tvf.firstChild.firstChild.childNodes[2].className = "ob_\x742"; } } ob_tvf = null; alert("Ca\x6enot " + (!copying ? "move" : "co\x70y") + "\x2e The\x20desti\x6eati\x6fn i\x73 un\x64e\x72 th\x65 s\x6fur\x63e."); multiDndWarnings = true; break; } I0 = ob_getParentOfNode(I0); } } } if (ob_tvf != null) { if (ob_tvf.parentNode.childNodes.length > 1) { if (ob_tvf.nextSibling == ob_tvi.parentNode.parentNode.parentNode.parentNode && !copying && ob_CreateSiblingOnDnd == null) { if (typeof ob_HighlightOnDnd != "u\x6edefi\x6eed" && ob_HighlightOnDnd == true) { if (ob_tvf.firstChild.firstChild.childNodes[2].className != "ob_t\x32" && ob_tvf.firstChild.firstChild.childNodes[2].id != tree_selected_id && (ob_sn2 == null || (ob_sn2 != null && ("|" + ob_sn2 + "|").indexOf("\x7c" + ob_tvf.firstChild.firstChild.childNodes[2].id + "|") == -1))) { ob_tvf.firstChild.firstChild.childNodes[2].className = "ob_t2"; } } ob_tvf = null; alert("Cannot\x20" + (!copying ? "mov\x65" : "copy") + "\056\x20Th\x65 des\x74inat\x69on \x69s \x74he \x73ame\x20as\x20th\x65 \x73o\x75r\x63e."); } } } if (ob_tvf != null) { if (sNoDrop != "") { var a = new Array; a = sNoDrop.split(","); if (a.length > 0) { for (i = 0; i < a.length; i++) { if (ob_target.id == a[i]) { if (typeof ob_HighlightOnDnd != "\x75nde\x66ined" && ob_HighlightOnDnd == true) { if (ob_tvf.firstChild.firstChild.childNodes[2].className != "ob_\x742" && ob_tvf.firstChild.firstChild.childNodes[2].id != tree_selected_id && (ob_sn2 == null || (ob_sn2 != null && ("\x7c" + ob_sn2 + "\x7c").indexOf("|" + ob_tvf.firstChild.firstChild.childNodes[2].id + "\x7c") == -1))) { ob_tvf.firstChild.firstChild.childNodes[2].className = "ob_\x742"; } } ob_tvf = null; alert("Cann\x6ft " + (!copying ? "move" : "c\x6fpy") + ". T\x68e de\x73tin\x61tion\x20fol\x64er\x20is \x72es\x74ric\x74e\x64."); } } } } } if (ob_t2_OnDynamicLoad2 == null) { ob_t2_OnDynamicLoad2 = function() { if (ob_tvu != null) { ob_tvu.style.display = "bl\x6fck"; } if (!copying && ob_CreateSiblingOnDnd != null && ob_tvf != null) { var o1 = ob_tvf; ob_tvf = ob_tvf.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.firstChild; if (ob_tvf.firstChild.nodeName != "\x54B\x4fDY") { ob_tvf = null; } } if (copying && ob_target != null) { var O1 = handleNaming(ob_target.id, ob_source.innerHTML); } if (ob_tvf != null) { if (!ob_OnBeforeNodeDrop(!copying ? ob_source.id : O1, ob_target.id, copying)) { if (typeof ob_HighlightOnDnd != "und\x65fine\x64" && ob_HighlightOnDnd == true) { if (ob_tvf.firstChild.firstChild.childNodes[2].className != "\157\x62_t2" && ob_tvf.firstChild.firstChild.childNodes[2].id != tree_selected_id && (ob_sn2 == null || (ob_sn2 != null && ("\x7c" + ob_sn2 + "\x7c").indexOf("|" + ob_tvf.firstChild.firstChild.childNodes[2].id + "\x7c") == -1))) { ob_tvf.firstChild.firstChild.childNodes[2].className = "\x6fb_t2"; } } ob_tvf = null; } } if (ob_tvf != null) { if (!copying) { if (ob_CreateSiblingOnDnd == null) { H = ob_tvi.firstChild.firstChild.firstChild.firstChild.firstChild; H.src = ob_t16(H); H.parentNode.style.backgroundImage = "no\x6ee"; ob_tvi.firstChild.firstChild.firstChild.firstChild.style.backgroundImage = "\156\x6fne"; if (ob_tvi.childNodes.length == 2) { ob_tvi.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage = "\x6e\x6fne"; } } if (ob_tvf.parentNode.childNodes.length == 1) { H = ob_tvf.firstChild.firstChild.firstChild.firstChild; H.src = ob_style + "/m\x69nus_\x6c.gif"; H.onclick = function() { ob_t21(this, ""); }; ob_tvf.parentNode.className = "\x6f\x62_d2b"; H = ob_tvf.parentNode.appendChild(document.createElement("TA\x42LE")); H.className = "\x6fb_\x742b"; if (document.all) { H.cellSpacing = "0"; } else { H.setAttribute("ce\x6clspa\x63ing", "0"); } H.appendChild(document.createElement("tbod\x79")); var l1 = H.firstChild.appendChild(document.createElement("TR")); H = l1.appendChild(document.createElement("\124\x44")); if (ob_tvf.parentNode.parentNode.lastChild != ob_tvf.parentNode) { H.style.backgroundImage = "\x75rl\x28" + ob_style + "\057\x76er\x74ical\x2egif\x29"; } H.innerHTML = "\074\x64iv\x20clas\x73=ob_\x645>\x3c/div\x3e"; H = l1.appendChild(document.createElement("\x54D")); H.className = "\x6fb_t\x35"; if (typeof (ob_expand_single) != "\x75n\x64efine\x64" && ob_expand_single) ob_expandSingle(ob_tvf); } else { H = ob_tvf.nextSibling.firstChild.firstChild.firstChild.nextSibling; if (ob_CreateSiblingOnDnd == null) { if (H.lastChild.childNodes.length > 1) { H.lastChild.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage = "url\x28" + ob_style + "\x2fverti\x63al.g\x69f)"; H.lastChild.firstChild.firstChild.firstChild.firstChild.style.backgroundImage = "\x75\x72l(" + ob_style + "/vert\x69cal.\x67if)"; l1 = H.lastChild.firstChild.firstChild.firstChild.firstChild.firstChild; s = l1.src; D = (s.length - 6); d = s.substr(D, 6); l1.parentNode.className = "ob_\x746v"; } else { try { l1 = H.lastChild.firstChild.firstChild.firstChild.firstChild.firstChild; l1.src = ob_style + "/hr.\x67if"; l1.parentNode.className = "ob_\x746v"; l1.parentNode.style.backgroundImage = ""; } catch (o) { } } } else { var i1 = ob_tvi.firstChild.firstChild.firstChild.firstChild.firstChild; var I1 = ob_tvi.firstChild.firstChild.firstChild.firstChild; if (ob_CreateSiblingOnDnd == "abo\x76e") { if (i1.src.indexOf(ob_style + "/hr_\x6c.gif") != -1) { i1.src = ob_style + "\x2fhr.g\x69f"; } if (i1.src.indexOf(ob_style + "/minus\x5fl.g\x69f") != -1) { i1.src = ob_style + "\x2fmi\x6eus.gi\x66"; } if (i1.src.indexOf(ob_style + "\x2fpl\x75sik_l\x2egif") != -1) { i1.src = ob_style + "/\x70lusi\x6b.gif"; } if (ob_tvi.firstChild.nextSibling) { ob_tvi.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage = "\x75rl\x28" + ob_style + "/verti\x63al.g\x69f)"; } } else if (ob_CreateSiblingOnDnd == "und\x65r") { if (ob_tvi != o1.parentNode.nextSibling) { I1.style.backgroundImage = "url(" + ob_style + "\x2fver\x74ical.\x67if)"; if (ob_tvi.firstChild.nextSibling) { ob_tvi.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage = "url(" + ob_style + "/\x76erti\x63al.g\x69f)"; } } else { var o2 = true; } if (o1.parentNode == H.lastChild) { I1.style.backgroundImage = "none"; if (i1.src.indexOf(ob_style + "\x2fhr\x2egif") != -1) { i1.src = ob_style + "/hr\x5fl.gi\x66"; } if (i1.src.indexOf(ob_style + "/minus\x2egif") != -1) { i1.src = ob_style + "/\x6dinus\x5fl.gi\x66"; } if (i1.src.indexOf(ob_style + "/p\x6cusik\x2egif") != -1) { i1.src = ob_style + "/plu\x73ik_l\x2egif"; } i1.style.backgroundImage = "\x6eone"; if (ob_tvi.firstChild.nextSibling) { ob_tvi.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage = "none"; } o1.firstChild.firstChild.firstChild.firstChild.style.backgroundImage = "\x75rl(" + ob_style + "/vert\x69cal.\x67if)"; if (o1.parentNode.childNodes[1]) { o1.parentNode.childNodes[1].firstChild.firstChild.firstChild.style.backgroundImage = "url(" + ob_style + "/ver\x74ical\x2egif)"; } } if (ob_tvi.previousSibling && !ob_tvi.nextSibling && !o2) { ob_tvi.previousSibling.firstChild.firstChild.firstChild.firstChild.firstChild.style.backgroundImage = "n\x6fne"; } } } } } var O2 = H; if (ob_tvu != null) { if (typeof (ob_tvu.outerHTML) != "u\x6edef\x69ned") { ob_tvu.outerHTML = ""; } else { document.body.removeChild(ob_tvu); } } document.onmousemove = ""; if (!copying) { remove_oStart(); var l2 = "", i2 = ""; if (ob_CreateSiblingOnDnd == null) { H = ob_tvf.firstChild.firstChild.firstChild.firstChild; D = (H.src.length - 8); s = H.src.substr(D, 8); if ((s == "u\x73ik.\x67if") || (s == "\151\x6b_l\x2egif")) { H.onclick(); } l2 = ob_tvf.firstChild.firstChild.childNodes[2].id; i2 = ob_tvi.firstChild.firstChild.firstChild.childNodes[2].id; O2.appendChild(ob_tvi); } else if (ob_CreateSiblingOnDnd == "a\x62ove") { l2 = ob_tvf.firstChild.firstChild.childNodes[2].id; i2 = ob_tvi.firstChild.firstChild.firstChild.childNodes[2].id; O2.insertBefore(ob_tvi, o1.parentNode); } else if (ob_CreateSiblingOnDnd == "under") { if (o1.parentNode.nextSibling) { O2.insertBefore(ob_tvi, o1.parentNode.nextSibling); } else { O2.appendChild(ob_tvi); } l2 = ob_tvf.firstChild.firstChild.childNodes[2].id; i2 = ob_tvi.firstChild.firstChild.firstChild.childNodes[2].id; } var ob_dd_id = ob_tvi.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling.id; } else { if (O1 == null) { var sNewId = handleNaming(ob_tvf.firstChild.firstChild.firstChild.nextSibling.nextSibling.id, ob_tvi.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling.innerHTML); } else { var sNewId = O1; } if (sNewId != null) ob_handleCopyForDnd(sNewId, ob_tvf.firstChild.firstChild.firstChild.nextSibling.nextSibling, ob_tvi.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling, handleNaming, null, null, ""); var ob_dd_id = sNewId; } tree_dd_id = tree_dd_id + ob_target.id + "," + ob_dd_id + "|"; if (typeof (ob_expand_single) != "\x75\x6edefi\x6eed" && ob_expand_single) ob_expandSingle(ob_target); if (typeof ob_HighlightOnDnd != "\x75nde\x66ined" && ob_HighlightOnDnd == true) { ob_t51(); } if (ob_target.id != tree_selected_id) { ob_target.className = "\x6fb\x5ft2"; } ob_OnNodeDrop(ob_dd_id, ob_target.id, copying); if (document.getElementById("\157\x62_d\x72ag") != null) if (typeof (document.getElementById("\x6f\x62_dra\x67").outerHTML) != "\x75n\x64efine\x64") { document.getElementById("ob_\x64rag").outerHTML = ""; } else { document.body.removeChild(document.getElementById("\x6fb_dr\x61g")); } } else if (F == null && f == null) { if (ob_OnBeforeNodeDropOutside(document.getElementById("o\x62_dra\x67")) != false) { ob_OnNodeDropOutside(document.getElementById("\x6fb_dr\x61g")); } if (typeof (document.getElementById("ob_\x64rag").outerHTML) != "\x75nd\x65fined") { document.getElementById("\x6fb_dr\x61g").outerHTML = ""; } else { document.body.removeChild(document.getElementById("ob_d\x72ag")); } document.onmousemove = ""; } }; ob_tvu = null; ob_tvy = false; ob_bTriggerBeforeDragStart = true; document.onselectstart = function() { return true; }; document.onmousedown = function() { return true; }; document.onmouseup = null; } if (ob_drag_drop_dynamic == false) { ob_t2_OnDynamicLoad2(); ob_t2_OnDynamicLoad2 = null; } else { ob_drag_drop_dynamic = false; } } function ob_handleCopyForDnd(I2, destinationParent, sourceParent, handleNaming, furthestNode, initialDestinationParent, o3) { if (furthestNode == null) var furthestNode = ob_getFurthestChildOfNode(sourceParent, true); if (initialDestinationParent == null) var initialDestinationParent = destinationParent.parentNode.parentNode.parentNode.parentNode; if (destinationParent.id) { var l3 = destinationParent.id; } if (o3.indexOf("\x7c*|" + sourceParent.id + "\x7c*|") != -1) { return true; } var oTempFcn = null; var sIcon = "F\x6flder\x2egif"; try { oTempFcn = sourceParent.parentNode.parentNode.firstChild.firstChild.firstChild; if (oTempFcn.onclick) oTempFcn = oTempFcn.onclick; if (oTempFcn.toString().indexOf("o\x62_t21") != -1) { oTempFcn = oTempFcn.toString().substr(oTempFcn.toString().indexOf("\x6fb_t\x321")); oTempFcn = oTempFcn.toString().substr(oTempFcn.toString().indexOf("\x74h\x69s") + 4); oTempFcn = oTempFcn.replace("\054", "").replace(" ", "").replace(")", ""); var oTempChar = oTempFcn.charAt(0); oTempFcn = oTempFcn.substr(1); oTempFcn = oTempFcn.substr(0, oTempFcn.indexOf(oTempChar)); if (oTempFcn == "") oTempFcn = null; } else { oTempFcn = null; } sIcon = sourceParent.parentNode.parentNode.firstChild.childNodes[1].firstChild.firstChild.src; sIcon = sIcon.toString(); sIcon = sIcon.substr(sIcon.lastIndexOf("/") + 1); } catch (o) { } var sNewId = I2 != null ? I2 : handleNaming(l3 != "r\x6f\x6ft" ? l3 : l3 + "_" + ob_tree_id, sourceParent.innerHTML); if (sNewId == null) return false; if (o3 == "") { o3 = "|*|"; } o3 += sNewId + "|*\x7c"; var destinationParent = ob_t2_Add(l3, sNewId, sourceParent.innerHTML, false, sIcon, oTempFcn); if (sourceParent.id == furthestNode.id) { ob_t18(initialDestinationParent); return false; } if (destinationParent != null) { if (ob_hasChildren(sourceParent)) { var curentNode = ob_getFirstChildOfNode(sourceParent, true); while (curentNode != null) { if (!ob_handleCopyForDnd(null, destinationParent, curentNode, handleNaming, furthestNode, initialDestinationParent, o3)) return false; curentNode = I3(curentNode); } } } return true; } function KeyModifierWatch(event, o4) { if (!ob_allowCopy) return; if (ob_copyOnNodeDrop == true) { if (ob_divCopy == null) { ob_divCopy = document.createElement("\104IV"); ob_divCopy.style.position = "absolu\x74e"; ob_divCopy.style.zIndex = "999"; ob_divCopy.style.left = '0px'; ob_divCopy.style.top = '0px'; ob_divCopy.id = ob_tree_id + "_copy\x5fdiv"; ob_divCopy.innerHTML = "\074img s\x72c=\042" + ob_tvu + "/\x70lus.\x67if\042>"; ob_divCopy.style.display = "bloc\x6b"; document.body.appendChild(ob_divCopy); } if (ob_tvu != null) { ob_divCopy.style.left = ob_tvu.style.left.replace("px", "") * 1 - 5 + 'px'; ob_divCopy.style.top = ob_tvu.style.top.replace("\160\x78", "") * 1 + 021 + 'px'; ob_divCopy.style.display = "\x62l\x6fck"; } try { if (ob_divCopy.style.display == "\x62l\x6fck" && event.ctrlKey && o4 == true) { ob_divCopy.style.display = "non\x65"; } } catch (H) { }; return; } if (ob_divCopy == null) { ob_divCopy = document.createElement("DIV"); ob_divCopy.style.position = "\x61bs\x6flute"; ob_divCopy.style.zIndex = "999"; ob_divCopy.style.left = '0px'; ob_divCopy.style.top = '0px'; ob_divCopy.id = ob_tree_id + "\x5fcop\x79_div"; ob_divCopy.innerHTML = "\x3cimg \x73rc=\042" + ob_icons + "\x2fplu\x73.gif\x22>"; ob_divCopy.style.display = "\x6eon\x65"; document.body.appendChild(ob_divCopy); } if (ob_tvu != null) { ob_divCopy.style.left = ob_tvu.style.left.replace("\x70x", "") * 1 - 5 + 'px'; ob_divCopy.style.top = ob_tvu.style.top.replace("\160\x78", "") * 1 + 021 + 'px'; } if (window.event) event = window.event; try { ob_divCopy.style.display = event.ctrlKey && ob_tvu != null ? "block" : "non\x65"; } catch (H) { ob_allowCopy = false; }; } function O(event) { if (!ob_allowCopy || ob_copyOnNodeDrop == false) return; if (ob_divCopy == null) { ob_divCopy = document.createElement("DI\x56"); ob_divCopy.style.position = "absol\x75te"; ob_divCopy.style.zIndex = "999"; ob_divCopy.style.left = '0px'; ob_divCopy.style.top = '0px'; ob_divCopy.id = ob_tree_id + "\x5fc\x6fpy_di\x76"; ob_divCopy.innerHTML = "\074img sr\x63=\042" + ob_icons + "\x2f\x70lus.g\x69f\042>"; ob_divCopy.style.display = "none"; document.body.appendChild(ob_divCopy); } if (ob_tvu != null) { ob_divCopy.style.left = ob_tvu.style.left.replace("\x70\x78", "") * 1 - 5 + 'px'; ob_divCopy.style.top = ob_tvu.style.top.replace("\x70x", "") * 1 + 021 + 'px'; } try { ob_divCopy.style.display = ob_tvu != null && !event.ctrlKey ? "\x62loc\x6b" : "\x6eon\x65"; } catch (H) { } } function K(l4) { var i4 = 0; if (l4.offsetParent) { while (l4.offsetParent) { i4 += l4.offsetLeft; l4 = l4.offsetParent; } } else if (l4.x) i4 += l4.x; return i4; } function W(I4) { var i4 = 0; if (I4.offsetParent) { while (I4.offsetParent) { i4 += I4.offsetTop; I4 = I4.offsetParent; } } else if (I4.y) i4 += I4.y; return i4; } function ob_t18(s) { if (document.all) { var B = s.getElementsByTagName("\x49MG"); for (var i = 0; i < B.length; i++) { B[i].ondragstart = function() { return false; }; } } var H; var B = s.getElementsByTagName("DIV"); for (i = 0; i < B.length; i++) { var item = B[i]; var o5 = false; if (item.className == "") { try { var O5 = item.firstChild.firstChild.firstChild; if ((O5.childNodes.length == 3) && (O5.lastChild.className == "\x6f\x62_t2")) o5 = true; } catch (H) { } } if ((item.className == "\x6fb_d2\x62") || (item.className == "ob\x5fd2c") || (item.className == "\x6fb_d2s") || o5) { H = item.firstChild; if (document.all) { H.onmousedown = new Function("ob\x5ft10\x28null\x2cthis\x29;"); H.onmouseup = new Function("\x6fb_t1\x32();"); } else { H.setAttribute("onmou\x73edow\x6e", "\157\x62_t1\x30(eve\x6et,t\x68is)\x3b"); H.setAttribute("\x6f\x6emouse\x75p", "ob\x5ft12(\x29;"); } } } } function ob_t19(H) { if (H.parentNode.parentNode.parentNode.parentNode.parentNode.className == "ob\x5fdi2") { return; }; H = H.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling; tree_dd_path = H.id + "|" + tree_dd_path; ob_t19(H); } function ob_tnodrag(s) { if (s == "") { return; } var a = new Array; a = s.split("\x2c"); for (var i = 0; i < a.length; i++) { H = document.getElementById(a[i]).parentNode.parentNode.parentNode; H.onmousedown = function() { return false; }; H.onmouseup = function() { return false; }; } } function ob_t16(H) { if (!H.onclick) H.onclick = function() { ob_t21(this, ""); }; var s = "", D = 0, d = ""; s = H.src; D = (s.length - 6); d = s.substr(D, 6); if (d != "_l.gif") { d = s.substr(0, D + 2) + "_l.\x67i\x66"; return d; } else { return s; } } var ob_sn2 = ""; function ob_multiselect(l5, i5) { if (l5.id == "") return; if (!i5) i5 = window.event; if (!i5) return; var I5 = false; if (i5 != null) I5 = i5.ctrlKey; if (I5 == 0) { if (l5.id != "") { ob_unselectAllNodes(); ob_sn2 = l5.id; if (typeof ob_op2 != "undef\x69ned") { ob_op2.className = "ob_t\x32"; ob_op2.parentNode.parentNode.parentNode.style.backgroundColor = "\164\x72an\x73pare\x6et"; } l5.className = "o\x62_t3"; } } else { var o6; o6 = ob_sn2.split("|"); O6 = o6.length; if (O6 > 0) { l6 = -1; for (i = 0; i < O6; i++) { if (o6[i] == l5.id) { l6 = i; break; } } if (l6 > -1) { o6.splice(l6, 1); if (o6.length > 0) { tree_selected_id = o6[o6.length - 1]; ob_op2 = eval("do\x63ume\x6et.ge\x74Ele\x6dentB\x79Id\x28\047" + o6[o6.length - 1] + "\047\051"); } else { tree_selected_id = ""; ob_op2 = undefined; } ob_sn2 = o6.join("\174"); l5.className = "\x6fb_t\x32"; i6 = l5.parentNode.parentNode.parentNode; i6.style.backgroundColor = "\x74r\x61nspar\x65nt"; return 1; } else { if (l5.id != "") ob_sn2 += ((ob_sn2.length > 0) ? "\x7c" : "") + l5.id; } } } return 0; } function ob_unselectAllNodes() { try { if (typeof (ob_sn2) == "\x75\x6edefin\x65d") return; var I6 = ""; if (typeof ob_sn2 != "undef\x69ned") I6 = ob_sn2; var o6; if (I6.length > 0) { if (I6.indexOf("\x7c") > -1) { o6 = I6.split("|"); O6 = o6.length; if (O6 > 0) { var i = 0; var G; for (i = 0; i < O6; i++) { G = eval("\x64\x6fcume\x6et.g\x65tEle\x6den\x74ByI\x64(\047" + o6[i] + "\x27)"); G.className = "\x6fb_t2"; i6 = G.parentNode.parentNode.parentNode; i6.style.backgroundColor = "tran\x73pare\x6et"; } } } else { G = eval("docum\x65nt.\x67etEl\x65men\x74ByI\x64(\047" + I6 + "\x27\x29"); G.className = "\x6f\x62_t2"; i6 = G.parentNode.parentNode.parentNode; i6.style.backgroundColor = "\x74ran\x73paren\x74"; } } } catch (H) { } } var prevNodeContent; var tree_edit_id = ""; var inited = false; o7 = false; document.onkeydown = function(H) { ob_nodeKeyDown(H); }; if (document.layers) try { document.registerEvents(Event.KEYDOWN); } catch (H) { }; function ob_afterNodeEditing(name) { ob_OnNodeEdit(tree_selected_id, name, prevNodeContent); } function ob_nodeKeyDown(H) { if (!H) H = window.event; var O7; if (H.target) O7 = H.target; else if (H.srcElement) O7 = H.srcElement; if (O7.nodeType == 3) O7 = O7.parentNode; if (o7) return; if (typeof (tree_selected_id) != "un\x64efi\x6eed") l7 = document.getElementById(tree_selected_id); if (typeof (l7) != "\x75n\x64efine\x64" && l7 != null) { if (O7.nodeName != "\x49N\x50UT" && O7.nodeName != "TEXT\x41REA") { if (!inited) { i7 = document.createElement("\x69nput"); l7.appendChild(i7); try { i7.focus(); } catch (H) { } l7.removeChild(i7); inited = true; H.cancelBubble = true; H.returnValue = false; if (H.stopPropagation) H.stopPropagation(); } } else { I7 = O7; return; } if (typeof (ob_tree_keynav_enable) != "\x75n\x64efine\x64" && ob_tree_keynav_enable) { var blockEvent = false; if (H.keyCode == 046) { tree_node_exp_col = true; o8 = ob_getNodeUp(l7, false); if (o8 != null) ob_t22(o8); tree_node_exp_col = false; blockEvent = true; } else if (H.keyCode == 050) { tree_node_exp_col = true; O8 = ob_getNodeDown(l7, false); if (O8 != null) ob_t22(O8); tree_node_exp_col = false; blockEvent = true; } else if (H.keyCode == 045) { tree_node_exp_col = true; if (ob_hasChildren(l7) && ob_isExpanded(l7)) { l7.parentNode.firstChild.firstChild.onclick(); } else { parentNode = ob_getParentOfNode(l7); if (parentNode != null) ob_t22(parentNode); } tree_node_exp_col = false; blockEvent = true; } else if (H.keyCode == 047) { tree_node_exp_col = true; if (ob_hasChildren(l7)) { if (!ob_isExpanded(l7)) { l7.parentNode.firstChild.firstChild.onclick(); } else { firstChild = ob_getFirstChildOfNode(l7); if (firstChild != null) ob_t22(firstChild); } } tree_node_exp_col = false; blockEvent = true; } if (blockEvent) { if (document.all) { H.cancelBubble = true; H.returnValue = false; if (H.stopPropagation) H.stopPropagation(); } } } if (typeof (ob_tree_editnode_enable) != "\x75\x6edefin\x65d" && ob_tree_editnode_enable) { if (H.keyCode == 015 || H.keyCode == 0161) { ob_t22(l7); } } } } function ob_textBoxKeyDown(H) { if (!H) H = window.event; l7 = document.getElementById(tree_selected_id); if (l7 != null) { if (H.keyCode == 015) { if (l7.childNodes.length > 0) { l8 = l7; try { if (l7.childNodes[0].nodeName.toLowerCase() != "inp\x75t") l8 = l7.childNodes[0]; } catch (H) { } var i8 = false; if (l7.lastChild != null && ob_editLastElement) { i8 = true; l8 = l7; } if (!i8) { if (l8.childNodes[0] != null && l8.childNodes[0].nodeName.toLowerCase() == "inpu\x74") { var name = l8.childNodes[0].value; if (name.length == 0 || name.indexOf("\x3a") != -1 || name.indexOf("\x7c") != -1 || name.indexOf(",") != -1 || name.indexOf("\074") != -1 || name.indexOf(">") != -1) { l7.childNodes[0].onblur = null; alert("\x54\x68e nod\x65 nam\x65 ca\x6eno\x74 be\x20emp\x74y\012an\x64\012It\x20\x63an\x6eo\x74 \x63o\x6et\x61i\x6e\x20t\x68e\x20\x66o\x6c\x6co\x77\x69n\x67\x20c\x68\x61r\x61c\x74\x65r\x73\x20\x3a \x7c\x20,\x20\x3c \x3e"); l8.childNodes[0].value = prevNodeContent; try { l8.childNodes[0].focus(); } catch (H) { } try { I8 = l8.childNodes[0].ownerDocument.selection.createRange().duplicate(); I8.moveStart("t\x65xted\x69t", -1); I8.moveEnd("\x74exte\x64it"); I8.select(); } catch (H) { } l8.childNodes[0].onblur = function() { ob_textBoxExit(true); }; o7 = true; } else { l8.removeChild(l8.childNodes[0]); l8.innerHTML = name; l8.className = "ob_\x743"; o7 = false; if (name != prevNodeContent) { tree_edit_id += tree_selected_id + "\x3a" + name + "|"; ob_afterNodeEditing(name); } } } } else { if (l8.lastChild != null && l8.lastChild.nodeName.toLowerCase() == "inpu\x74") { var name = l8.lastChild.value; if (name.length == 0 || name.indexOf("\x3a") != -1 || name.indexOf("|") != -1 || name.indexOf("\x2c") != -1 || name.indexOf("\x3c") != -1 || name.indexOf(">") != -1) { l7.lastChild.onblur = null; alert("The \x6eode \x6eame\x20cann\x6ft \x62e e\x6dpty\x0aan\x64\012It \x63a\x6en\x6ft\x20c\x6fn\x74a\x69n\x20t\x68e\x20f\x6f\x6cl\x6f\x77i\x6e\x67 \x63h\x61\x72a\x63\x74e\x72\x73 \x3a\x20|\x20\x2c \x3c\x20>"); l8.lastChild.value = prevNodeContent; try { l8.lastChild.focus(); } catch (H) { } try { I8 = l8.lastChild.ownerDocument.selection.createRange().duplicate(); I8.moveStart("tex\x74edit", -1); I8.moveEnd("\x74ext\x65dit"); I8.select(); } catch (H) { } l8.lastChild.onblur = function() { ob_textBoxExit(true); }; o7 = true; } else { l8.removeChild(l8.lastChild); l8.appendChild(document.createTextNode(name)); l8.className = "\x6fb_\x743"; o7 = false; if (name != prevNodeContent) { tree_edit_id += tree_selected_id + "\x3a" + name + "|"; ob_afterNodeEditing(name); } } } } } H.cancelBubble = true; H.returnValue = false; if (H.stopPropagation) H.stopPropagation(); if (ob_oEp_MD != null) { l7.parentNode.parentNode.parentNode.onmousedown = ob_oEp_MD; } if (ob_oEp_SS != null) { l7.parentNode.parentNode.parentNode.onselectstart = ob_oEp_SS; } if (ob_oEp_MM != null) { l7.parentNode.parentNode.parentNode.onmousemove = ob_oEp_MM; } ob_oEp_MD = null; ob_oEp_SS = null; ob_oEp_MM = null; } if (H.keyCode == 033) { ob_textBoxExit(false); } else { } } } function ob_textBoxExit(o9, O9) { l7 = document.getElementById(tree_selected_id); if (l7 != null) { if (l7.childNodes.length > 0) { l8 = l7; try { if (l7.childNodes[0].nodeName.toLowerCase() != "\x69\x6eput") l8 = l7.childNodes[0]; } catch (H) { } var i8 = false; if (l7.lastChild != null && ob_editLastElement) { i8 = true; } if ((i8 == false && l8.childNodes[0] != null && l8.childNodes[0].nodeName.toLowerCase() == "inp\x75t") || (i8 == true && l7.lastChild != null && l7.lastChild.nodeName.toLowerCase() == "\151\x6epu\x74")) { if (i8) { var name = l7.lastChild.value; l7.removeChild(l7.lastChild); l7.appendChild(document.createTextNode(o9 ? name : prevNodeContent)); if (O9) l7.className = "ob\x5ft2"; else l7.className = "ob_\x743"; } else { var name = l8.childNodes[0].value; l8.removeChild(l8.childNodes[0]); l8.innerHTML = o9 ? name : prevNodeContent; if (O9) l8.className = "ob\x5ft2"; else l8.className = "ob_\x743"; } o7 = false; if (o9 && (name != prevNodeContent)) { tree_edit_id += tree_selected_id + ":" + name + "|"; ob_afterNodeEditing(name); } } if (ob_oEp_MD != null) { l7.parentNode.parentNode.parentNode.onmousedown = ob_oEp_MD; } if (ob_oEp_SS != null) { l7.parentNode.parentNode.parentNode.onselectstart = ob_oEp_SS; } if (ob_oEp_MM != null) { l7.parentNode.parentNode.parentNode.onmousemove = ob_oEp_MM; } ob_oEp_MD = null; ob_oEp_SS = null; ob_oEp_MM = null; } } } function ob_attemptStartEditing(l5) { if ((typeof (tree_node_exp_col) == "undef\x69ned" || (typeof (tree_node_exp_col != "\x75n\x64efine\x64") && !tree_node_exp_col)) && typeof (o7) != "undef\x69ned" && typeof (ob_tree_editnode_enable) != "\x75ndef\x69ned" && ob_tree_editnode_enable) { var l9 = document.getElementById(tree_selected_id + "\x5ftx\x74Box"); if (l5.id != tree_selected_id && l9 != null) { ob_textBoxExit(true, true); } if (l5.id == tree_selected_id && l9 == null) { if (typeof (ob_noedit) != "u\x6edefi\x6eed" && ob_noedit != "") { var a = new Array; a = ob_noedit.replace(" ", "").split(","); if (a.length > 0) { for (i = 0; i < a.length; i++) { if (a[i] == l5.id) { alert("C\x61n\047t e\x64it. \x54he \x6eod\x65 is\x20mar\x6bed\x20as\x20no\x74 \x65d\x69t\x61b\x6ce\x2e"); return; } } } } if (!o7) if (!ob_OnBeforeNodeEdit(l5.id)) return; if (l5.childNodes.length > 0) { if (typeof (l7) == "\x75n\x64efine\x64" || l7 == null) l7 = document.getElementById(tree_selected_id); l8 = l7; try { if (l7.childNodes[0].nodeName.toLowerCase() != "#te\x78t") l8 = l7.childNodes[0]; } catch (H) { } var i8 = false; if (l7.lastChild != null && ob_editLastElement) { l8 = l7.lastChild; i8 = true; if (l8 == null) { alert("E\x64it n\x6fde s\x68ould\x20has\x20som\x65 t\x65xt \x69n \x6cas\x74 \x45l\x65me\x6et\x20o\x66 \x74h\x65 \x6eo\x64\x65"); return; } } if ((i8 == false && l8.childNodes[0] != null && l8.childNodes[0].nodeName.toLowerCase() == "\x23t\x65xt") || (i8 == true && l8 != null && l8.nodeValue != null)) { if (i8) { prevNodeContent = l8.nodeValue; } else { prevNodeContent = l8.childNodes[0].nodeValue; } var i9 = document.createElement("input"); i9.setAttribute("ty\x70e", "text"); i9.setAttribute("valu\x65", prevNodeContent); i9.id = l5.id + "_t\x78tBox"; i9.style.borderWidth = 0; i9.style.width = l5.offsetWidth + 036; i9.style.backgroundColor = "t\x72ans\x70arent"; i9.className = l5.className; if (i8) { var parent = l8.parentNode; parent.appendChild(i9); parent.removeChild(l8); } else { while (l8.childNodes.length > 0) l8.removeChild(l8.childNodes[0]); l8.appendChild(i9); } i9.onkeydown = function(H) { ob_textBoxKeyDown(H); }; i9.onblur = function() { ob_textBoxExit(true); }; try { i9.focus(); } catch (H) { } try { if (navigator.appName.indexOf("\x4d\x69croso\x66t") != -1) { I8 = i9.ownerDocument.selection.createRange().duplicate(); I8.moveStart("\164\x65xte\x64it", -1); I8.moveEnd("t\x65xted\x69t"); if (I8.htmlText.toLowerCase().indexOf("\142\x6fdy") == -1) I8.select(); else { try { i9.focus(); } catch (H) { } } } else { i9.I9 = 0; i9.oa = i9.value.length; try { i9.focus(); } catch (H) { } } } catch (H) { } if (ob_oEp_MD == null) { ob_oEp_MD = l5.parentNode.parentNode.parentNode.onmousedown; l5.parentNode.parentNode.parentNode.onmousedown = function() { return true; }; } if (ob_oEp_SS = null) { ob_oEp_SS = l5.parentNode.parentNode.parentNode.onselectstart; l5.parentNode.parentNode.parentNode.onselectstart = function() { return true; }; } if (ob_oEp_MM = null) { ob_oEp_MM = l5.parentNode.parentNode.parentNode.onmousemove; l5.parentNode.parentNode.parentNode.onmousemove = function() { return true; }; } o7 = true; } } } } } function ob_attemptEndEditing(l5) { l7 = l5; if (typeof (l7) != "\x75\x6edefi\x6eed" && typeof (o7) != "un\x64efin\x65d" && typeof (ob_tree_editnode_enable) != "un\x64efin\x65d" && ob_tree_editnode_enable) { l8 = l7; try { if (l7.childNodes[0].nodeName.toLowerCase() != "i\x6eput") l8 = l7.childNodes[0]; } catch (H) { } if (l8.childNodes.length > 0) { var i8 = false; if (l8.lastChild != null && ob_editLastElement) { i8 = true; } if (i8 == false && l8.childNodes[0] != null && l8.childNodes[0].nodeName.toLowerCase() == "inp\x75t") { if (l8.id != tree_selected_id) { var name = l8.childNodes[0].value; if (name.length == 0 || name.indexOf(":") != -1 || name.indexOf("\x7c") != -1 || name.indexOf(",") != -1 || name.indexOf("\074") != -1 || name.indexOf("\x3e") != -1) { alert("Th\x65 nod\x65 nam\x65 can\x6eot \x62e \x65mpt\x79\012and\x0aIt\x20c\x61nn\x6ft\x20c\x6fn\x74a\x69n\x20t\x68e\x20\x66o\x6cl\x6f\x77\x69n\x67\x20c\x68a\x72\x61\x63t\x65r\x73\x20:\x20\x7c \x2c\x20\x3c \x3e"); l8.childNodes[0].value = prevNodeContent; try { l8.childNodes[0].focus(); } catch (H) { } try { I8 = l8.childNodes[0].ownerDocument.selection.createRange().duplicate(); I8.moveStart("t\x65xted\x69t", -1); I8.moveEnd("\x74exte\x64it"); I8.select(); } catch (H) { } o7 = true; return; } l8.removeChild(l8.childNodes[0]); l8.innerHTML = name; o7 = false; if (name != prevNodeContent) { tree_edit_id += tree_selected_id + "\x3a" + name + "\x7c"; ob_afterNodeEditing(name); } } } else if (i8 == true && l8.lastChild != null && l8.lastChild.nodeName.toLowerCase() == "inp\x75t") { if (l8.id != tree_selected_id) { var name = l8.lastChild.value; if (name.length == 0 || name.indexOf("\072") != -1 || name.indexOf("\x7c") != -1 || name.indexOf("\x2c") != -1 || name.indexOf("\x3c") != -1 || name.indexOf("\x3e") != -1) { alert("T\x68e n\x6fde na\x6de c\x61nnot\x20be\x20emp\x74y\012an\x64\012It \x63a\x6en\x6ft \x63o\x6et\x61i\x6e \x74\x68e\x20f\x6f\x6cl\x6f\x77i\x6eg\x20\x63h\x61\x72a\x63\x74e\x72\x73 \x3a \x7c\x20\x2c \x3c \x3e"); l8.lastChild.value = prevNodeContent; try { l8.lastChild.focus(); } catch (H) { } try { I8 = l8.lastChild.ownerDocument.selection.createRange().duplicate(); I8.moveStart("\x74ex\x74edit", -1); I8.moveEnd("te\x78tedi\x74"); I8.select(); } catch (H) { } o7 = true; return; } l8.removeChild(l8.lastChild); l8.appendChild(document.createTextNode(name)); o7 = false; if (name != prevNodeContent) { tree_edit_id += tree_selected_id + "\072" + name + "|"; ob_afterNodeEditing(name); } } } } } } function ob_t2_GetMouseCoords(event) { if (window.event) { event = window.event; } var mouseX = 0; var mouseY = 0; if (event.pageX && event.pageY) { mouseX = event.pageX; mouseY = event.pageY; } else if (event.clientX && event.clientY) { mouseX = event.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft); mouseY = event.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); } return [mouseX, mouseY]; } function ob_t2_isBrowser(browser) { if (typeof (ob_t2_browsers) == 'undefined') { ob_t2_browsers = new Object(); ob_t2_browsers.isIE = (navigator.userAgent.toLowerCase().indexOf("msie") == -1) ? false : true; ob_t2_browsers.isIE6 = (navigator.userAgent.toLowerCase().indexOf("msie 6.0") == -1) ? false : true; ob_t2_browsers.isIE7 = (navigator.userAgent.toLowerCase().indexOf("msie 7.0") == -1) ? false : true; ob_t2_browsers.isSafari = (navigator.userAgent.toLowerCase().indexOf("safari") == -1) ? false : true; ob_t2_browsers.isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") == -1) ? false : true; ob_t2_browsers.isFF = (navigator.userAgent.toLowerCase().indexOf("firefox") == -1) ? false : true; ob_t2_browsers.isChrome = (navigator.userAgent.toLowerCase().indexOf("chrome") == -1) ? false : true; if (ob_t2_browsers.isChrome) { ob_t2_browsers.isSafari = false; } } return ob_t2_browsers['is' + browser]; } function ob_t2_GetStyle(oElm, strCssRule) { var strValue = ""; if (document.defaultView && document.defaultView.getComputedStyle) { var oStyle = document.defaultView.getComputedStyle(oElm, null); if (!oStyle) { try { if (oElm.style.display == "none") { oElm.style.display = ""; oStyle = document.defaultView.getComputedStyle(oElm, null); if (oStyle) { strValue = oStyle.getPropertyValue(strCssRule); } oElm.style.display = "none"; } } catch (ex) { } } if (oStyle && strValue == "") { strValue = oStyle.getPropertyValue(strCssRule); } } else if (oElm.currentStyle) { try { strCssRule = strCssRule.replace(/\-(\w)/g, function(strMatch, p1) { return p1.toUpperCase(); }); strValue = oElm.currentStyle[strCssRule]; } catch (ex) { } } return strValue; }

