//<!--
//             Copyright obout inc       http://www.obout.com
//     

// false - when dragging show moving node itself without children.
// true - when dragging show moving node with children.
var show_with_children= true;

// false - regular drag and drop
// true - highlight the nodes under the moving node
var ob_HighlightOnDnd = true; 

/// false - if the CTRL key is pressed - the moving node will be moved to its new location (default behaviour)
/// true - if the CTRL key is pressed - the moving node will be copied to its new location
var ob_allowCopy = true;

// null - Dropped node should become child of target node (normal)
// above - Dropped node should become sibling of target node (above)
// under - Dropped node should become sibling of target node (under)
var ob_CreateSiblingOnDnd = null;

var ob_t2_browsers, o_O, o_o, o_Y = 0, o_y = 0, o_I = false, o_i = null, o_A = null, tree_dd_path = "", tree_dd_id = "", o_a = 0, o_E = 0, o_e = true, o_U = 0, o_u = 0, o_Z, o_aNOL = null, o_aNOT = null, o_aNO = null, o_cDc = null, o_cKd = null, o_cKu = null; function o_z(event) { if (o_e == true) { if (window.event) { var event = window.event; o_a = event.x; o_E = event.y; } else { o_a = event.pageX; o_E = event.pageY; } o_e = false; return; } else { if (window.event) { var event = window.event; o_U = event.x; o_u = event.y; } else { o_U = event.pageX; o_u = event.pageY; } } if ((Math.abs(o_U - o_a) > 5) || (Math.abs(o_u - o_E) > 5)) { } else { return; } if (o_I == false) return; var o_X = document.compatMode == "BackCompat" ? document.body : (document.documentElement || document.body); if (o_i == null && o_A) { if (show_with_children == true) { o_i = o_A.cloneNode(true); o_i.firstChild.firstChild.firstChild.firstChild.style.display = "none"; if (o_i.firstChild.nextSibling != null) { o_i.firstChild.nextSibling.firstChild.firstChild.firstChild.style.display = "none"; } } else { o_i = o_A.firstChild.cloneNode(true); document.body.appendChild(o_i); o_i.firstChild.firstChild.firstChild.style.display = "none"; } document.body.appendChild(o_i); o_i.style.position = "absolute"; o_i.style.zIndex = "999"; o_i.style.filter = "Alpha(Opacity='70',FinishOpacity='0',Style='1',StartX='0',StartY='0',FinishX='100',FinishY='100')"; try { o_i.style.MozOpacity = 0.7; o_i.style.opacity = 0.7; } catch (ex) { }; o_i.id = "ob_drag"; } var mouseCoords = ob_t2_GetMouseCoords(event); var xOffset = -5, yOffset = -5; if (o_i != null) { o_i.style.left = (mouseCoords[0] + xOffset) + 'px'; o_i.style.top = (mouseCoords[1] + yOffset) + 'px'; var top = o_x(o_Z); var bottom = top + o_Z.offsetHeight; if ((o_i.offsetTop - top) < 024 && o_Z.scrollTop > 0) { o_Z.scrollTop = o_Z.scrollTop - 6; } if ((bottom - o_i.offsetTop) < 024) { o_Z.scrollTop = o_Z.scrollTop + 6; } var p = event ? event.clientY : window.event.y; var o_W = window.innerHeight || document.body.clientHeight; var o_w = window.pageXOffset || o_X.scrollLeft; var o_V = window.pageYOffset || o_X.scrollTop; if (p < 050) { var td = o_V - top; td = td < 014 ? td : 014; if (td > 0) { window.scrollTo(o_w, o_V - td); } } if ((o_W - p) < 050) { var o_v = bottom - (o_V + o_W); o_v = o_v < 014 ? o_v : 014; if (o_v > 0) { window.scrollTo(o_w, o_V + o_v); } } } if (typeof ob_HighlightOnDnd != "undefined" && ob_HighlightOnDnd == true) { var o_th = 0, o_tj = 0; o_th = mouseCoords[0]; o_tj = mouseCoords[1]; o_t_2 = 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(o_t_2, 'position') != 'static') { isPositioned = true; } if (o_t_2 != null && o_t_2 != document.body) { if (typeof (o_t_2.scrollLeft) != 'undefined') { o_th += o_t_2.scrollLeft; } if (typeof (o_t_2.scrollTop) != 'undefined') { o_tj += o_t_2.scrollTop; } } else break; o_t_2 = o_t_2.parentNode; } while (true); if (checkPosition && !isPositioned) { o_th -= parseInt(ob_t2_GetStyle(document.body, 'margin-left')); o_tj -= parseInt(ob_t2_GetStyle(document.body, 'margin-top')); } if (o_aNOT == null) { ob_t51(); } var o_t_3 = null; var o_t_4 = "|" + ob_sn2 + "|"; for (var sNodeId in o_aNOT) { o_t_1 = o_aNO[sNodeId]; var t = o_aNOT[sNodeId]; var l = o_aNOL[sNodeId]; if (!o_t_3 && (o_tj >= t) && (o_tj <= parseInt(parseInt(o_t_1.offsetHeight) + parseInt(t))) && (o_th >= l) && (o_th <= parseInt(parseInt(o_t_1.offsetWidth) + parseInt(l) + 40))) { o_t_3 = o_t_1; } else if (o_t_1.className == "ob_t3" && o_t_1.id != tree_selected_id && (ob_sn2 == null || (ob_sn2 != null && o_t_4.indexOf("|" + o_t_1.id + "|") == -1))) { o_t_1.className = "ob_t2"; } } if (o_t_3 != null && typeof o_t_3.innerHTML != "undefined") { if (o_t_3.className == "ob_t2") { o_t_3.className = "ob_t3"; } } } } function ob_t51() { o_aNOL = new Array(); o_aNOT = new Array(); o_aNO = new Array(); var o_t_1 = ob_getFirstNodeOfTree(); var ob_oC = null; while (o_t_1 != null) { ob_oC = o_t_1.parentNode.parentNode.parentNode; var t = o_x(ob_oC); var l = o_m(ob_oC); o_aNOL[o_t_1.id] = l; o_aNOT[o_t_1.id] = t; o_aNO[o_t_1.id] = o_t_1; o_t_1 = ob_getNodeDown(o_t_1); } } function ob_t53(ob_bT, event) { if (ob_bT) { o_I = true; o_z(event); } else { o_I = false; } } function ob_t10(event, o_T) {
    if (typeof (ob_tree_dnd_enable) == "undefined" || ob_tree_dnd_enable == false) { return; }

// EVENT. Before Drag start.
if (!ob_OnBeforeNodeDrag(o_T.firstChild.firstChild.childNodes[2].id)) { return; } o_Z = document.getElementById(ob_tree_id); o_I = true; o_A = o_T.parentNode; if (ob_allowCopy) { o_cKd = document.onkeydown; o_cKu = document.onkeyup; document.onkeydown = function(e) { ob_t52(e) }; document.onkeyup = function(e) { ob_t52(e) }; } document.onmousemove = function(o_t) { o_z(o_t); }; document.onmouseup = function(o_t) { o_S(o_t, null, null); }; document.onselectstart = function() { return false; }; document.onmousedown = function() { return false; };} function ob_t12() { o_I = false; document.onmousemove = null; document.onselectstart = function() { return true; }; document.onmousedown = function() { return true; }; if (ob_allowCopy) { document.onkeydown = o_cKd; document.onkeyup = o_cKu; } } function o_S(event, copying, o_hN) {function o_s() { if (o_A.parentNode.childNodes.length == 1) { if (o_A.parentNode.parentNode.className != "ob_tree") { o_t = o_A.parentNode.parentNode.parentNode.parentNode.parentNode; if (o_t.parentNode.className == "ob_t2b") o_t.parentNode.className = "ob_t2c"; if (o_t.className == "ob_d2b") o_t.className = "ob_d2c"; if (o_A.parentNode.lastChild == o_A) { o_t.firstChild.firstChild.firstChild.firstChild.firstChild.src = ob_style + "/hr_l.gif"; } else { o_t.firstChild.firstChild.firstChild.firstChild.firstChild.src = ob_style + "/hr.gif"; } o_t.removeChild(o_t.firstChild.nextSibling); } else { o_A.parentNode.removeChild(o_A); } } else { if (o_A.parentNode.lastChild == o_A) { o_t = o_A.previousSibling.firstChild.firstChild.firstChild.firstChild.firstChild; if (o_t.className != "ob_d4") { o_t.src = o_R(o_t); o_t.parentNode.style.backgroundImage = "none"; if (o_A.previousSibling.childNodes.length > 1) { o_A.previousSibling.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage = "none"; } else { } } } } } var o_t, o_r, s, o_Q; o_e = true; if (o_cDc != null) o_cDc.style.display = 'none'; if (copying == null) { if (window.event) event = window.event; copying = event.ctrlKey; } if (o_hN == null) var o_hN = function(e) { return ob_generateNewId(e) }; if (!ob_allowCopy) copying = false; if (o_i == null) { return; } var mouseCoords = ob_t2_GetMouseCoords(event); o_q = mouseCoords[0]; o_P = mouseCoords[1]; o_p = 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(o_p, 'position') != 'static') { isPositioned = true; } o_p = o_p.parentNode; if (o_p != null && o_p != document.body) { if (typeof (o_p.scrollLeft) != "undefined") o_q += o_p.scrollLeft; if (typeof (o_p.scrollTop) != "undefined") o_P += o_p.scrollTop; } else break; } while (true); if (checkPosition && !isPositioned) { o_q -= parseInt(ob_t2_GetStyle(document.body, 'margin-left')); o_P -= parseInt(ob_t2_GetStyle(document.body, 'margin-top')); } var o_N, o_n = false; o_i.style.display = "none"; o_M = document.getElementsByTagName("TABLE"); for (i = 0; i < o_M.length; i++) {var top = o_x(o_M[i]) - o_Z.scrollTop; var left = o_m(o_M[i]) - o_Z.scrollLeft; if (o_M[i].tagName == "TABLE" && (o_P >= top && o_P <= o_M[i].offsetHeight + top) && (o_q >= left && o_q <= o_M[i].offsetWidth + left)) {o_N = o_M[i]; if (o_N == o_A.firstChild && !copying) {if (typeof ob_HighlightOnDnd != "undefined" && ob_HighlightOnDnd == true) { if (o_A.firstChild.firstChild.firstChild.childNodes[2].className != "ob_t2" && o_A.firstChild.firstChild.firstChild.childNodes[2].id != tree_selected_id && (ob_sn2 == null || (ob_sn2 != null && ("|" + ob_sn2 + "|").indexOf("|" + o_N.firstChild.firstChild.childNodes[2].id + "|") == -1))) { o_A.firstChild.firstChild.firstChild.childNodes[2].className = "ob_t2"; } } o_N = null;

alert("Can not " + (!copying ? "move" : "copy") + ". The destination is the same as the source.");

}}}if (o_N!=null){if (o_N.parentNode.tagName=="DIV"){if (o_N.firstChild && o_N.firstChild.firstChild && o_N.firstChild.firstChild.childNodes.length>=3){if (o_N.firstChild.firstChild.firstChild.firstChild.tagName=="IMG"){s=o_N.firstChild.firstChild.firstChild.firstChild.src.toLowerCase(); o_r=(s.length-6); s=s.substr(o_r,6); if ((s=="ik.gif")||(s=="hr.gif")||(s=="_l.gif")||(s=="us.gif")||(s=="_r.gif")){var o_k=o_N.parentNode.lastChild.firstChild.firstChild.lastChild.className; if ((o_k!="ob_t7") && (o_k!="none")){}else if(o_N.firstChild.firstChild.firstChild.firstChild&&o_N.firstChild.firstChild.firstChild.firstChild.src.toString().indexOf("plusik_l.gif")!=-1&&!ob_isExpanded(o_N.firstChild.firstChild.childNodes[2])) {if(typeof ob_HighlightOnDnd!="undefined"&&ob_HighlightOnDnd==true){if(o_N.firstChild.firstChild.childNodes[2].className!="ob_t2"&&o_N.firstChild.firstChild.childNodes[2].id!=tree_selected_id&&(ob_sn2==null||(ob_sn2!=null&&("|"+ob_sn2+"|").indexOf("|"+o_N.firstChild.firstChild.childNodes[2].id+"|")==-1))){o_N.firstChild.firstChild.childNodes[2].className="ob_t2";}}

alert("Please expand the root of dynamically loaded subtree before " + (!copying ? "dropping" : "copying") + ".");

o_n= true; }}else {o_n= true; }}else {o_n= true; }}else {o_n= true; }}else {o_n= true; }}if (o_n== true)o_N=null; var o_J,o_j; if (o_N!=null){o_J=o_N.firstChild.firstChild.firstChild.nextSibling.nextSibling; o_j=o_A.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling; o_t=o_J; tree_dd_path=""; o_H(o_t); var o_h=tree_dd_path.split("|"); for (i=0; i<o_h.length; i++){if (o_h[i]==o_j.id&&!copying){if(typeof ob_HighlightOnDnd!="undefined"&&ob_HighlightOnDnd==true){if(o_N.firstChild.firstChild.childNodes[2].className!="ob_t2"&&o_N.firstChild.firstChild.childNodes[2].id!=tree_selected_id&&(ob_sn2==null||(ob_sn2!=null&&("|"+ob_sn2+"|").indexOf("|"+o_N.firstChild.firstChild.childNodes[2].id+"|")==-1))){o_N.firstChild.firstChild.childNodes[2].className="ob_t2";}}o_N=null;

alert("Can not " + (!copying ? "drop" : "copy") + ". The destination is under the source.");

}}}if (o_N!=null){if (o_N.parentNode.childNodes.length>1){if (o_N.nextSibling==o_A.parentNode.parentNode.parentNode.parentNode&&!copying&&ob_CreateSiblingOnDnd==null){/*ob_t2_MoveDraggableNode(o_A);*/if(typeof ob_HighlightOnDnd!="undefined"&&ob_HighlightOnDnd==true){if(o_N.firstChild.firstChild.childNodes[2].className!="ob_t2"&&o_N.firstChild.firstChild.childNodes[2].id!=tree_selected_id&&(ob_sn2==null||(ob_sn2!=null&&("|"+ob_sn2+"|").indexOf("|"+o_N.firstChild.firstChild.childNodes[2].id+"|")==-1))){o_N.firstChild.firstChild.childNodes[2].className="ob_t2";}}o_N=null;

alert("Can not " + (!copying ? "drop" : "copy") + ". The destination is the same as the source.");

}}}if (o_N!=null){if (sNoDrop!=""){var a=new Array; a=sNoDrop.split(","); if (a.length>0){for (i=0; i<a.length; i++){if (o_J.id==a[i]){if(typeof ob_HighlightOnDnd!="undefined"&&ob_HighlightOnDnd==true){if(o_N.firstChild.firstChild.childNodes[2].className!="ob_t2"&&o_N.firstChild.firstChild.childNodes[2].id!=tree_selected_id&&(ob_sn2==null||(ob_sn2!=null&&("|"+ob_sn2+"|").indexOf("|"+o_N.firstChild.firstChild.childNodes[2].id+"|")==-1))){o_N.firstChild.firstChild.childNodes[2].className="ob_t2";}}o_N=null;

alert("Can not " + (!copying ? "drop" : "copy") + ". The destination folder is restricted.");

}}}}}o_i.style.display="block"; if(!copying&&ob_CreateSiblingOnDnd!=null&&o_N!=null){var o_tS=o_N;o_N=o_N.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.firstChild;if(o_N.firstChild.nodeName!="TBODY"){o_N=null;}} if(o_N!=null){if (!ob_OnBeforeNodeDrop(!copying?o_j.id:o_hN(o_J.id),o_J.id,copying))o_N=null;}if (o_N!=null){if(!copying){if(ob_CreateSiblingOnDnd==null){o_t=o_A.firstChild.firstChild.firstChild.firstChild.firstChild; o_t.src=o_R(o_t); o_t.parentNode.style.backgroundImage="none"; o_A.firstChild.firstChild.firstChild.firstChild.style.backgroundImage="none"; if (o_A.childNodes.length==2){o_A.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage="none"; }}if (o_N.parentNode.childNodes.length==1){o_t=o_N.firstChild.firstChild.firstChild.firstChild; o_t.src=ob_style+"/minus_l.gif"; o_t.onclick= function (){ob_t21(this,"");} ; o_N.parentNode.className="ob_d2b"; o_t=o_N.parentNode.appendChild(document.createElement("TABLE")); o_t.className="ob_t2b";if(document.all){o_t.cellSpacing="0";}else{o_t.setAttribute("cellspacing","0");}o_t.appendChild(document.createElement("tbody")); var o_K=o_t.firstChild.appendChild(document.createElement("TR")); o_t=o_K.appendChild(document.createElement("TD")); if (o_N.parentNode.parentNode.lastChild!=o_N.parentNode){o_t.style.backgroundImage="url("+ob_style+"/vertical.gif)"; }o_t.innerHTML="<div class=ob_d5></div>"; o_t=o_K.appendChild(document.createElement("TD")); o_t.className="ob_t5"; if(typeof(ob_expand_single)!='undefined'&&ob_expand_single)ob_expandSingle(o_N);}else {o_t=o_N.nextSibling.firstChild.firstChild.firstChild.nextSibling; if(ob_CreateSiblingOnDnd==null){if (o_t.lastChild.childNodes.length>1){o_t.lastChild.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage="url("+ob_style+"/vertical.gif)"; o_t.lastChild.firstChild.firstChild.firstChild.firstChild.style.backgroundImage="url("+ob_style+"/vertical.gif)"; o_K=o_t.lastChild.firstChild.firstChild.firstChild.firstChild.firstChild; s=o_K.src; o_r=(s.length-6); o_Q=s.substr(o_r,6); }else {o_K=o_t.lastChild.firstChild.firstChild.firstChild.firstChild.firstChild; o_K.src=ob_style+"/hr.gif"; }}else{var o_AI = o_A.firstChild.firstChild.firstChild.firstChild.firstChild;var o_AT = o_A.firstChild.firstChild.firstChild.firstChild;if(ob_CreateSiblingOnDnd == "above"){if(o_AI.src.indexOf(ob_style + "/hr_l.gif") != -1){o_AI.src =  ob_style + "/hr.gif";}if(o_AI.src.indexOf(ob_style + "/minus_l.gif") != -1){o_AI.src =  ob_style + "/minus.gif";}if(o_AI.src.indexOf(ob_style + "/plusik_l.gif") != -1){o_AI.src =  ob_style + "/plusik.gif";}if(o_A.firstChild.nextSibling){o_A.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage = "url(" + ob_style + "/vertical.gif)";}}else if(ob_CreateSiblingOnDnd == "under"){if(o_A != o_tS.parentNode.nextSibling){o_AT.style.backgroundImage = "url(" + ob_style + "/vertical.gif)";if(o_A.firstChild.nextSibling){o_A.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage = "url(" + ob_style + "/vertical.gif)";}}else{var o_Rs1 = true;}if(o_tS.parentNode == o_t.lastChild){o_AT.style.backgroundImage = "none";if(o_AI.src.indexOf(ob_style + "/hr.gif") != -1){o_AI.src =  ob_style + "/hr_l.gif";}if(o_AI.src.indexOf(ob_style + "/minus.gif") != -1){o_AI.src =  ob_style + "/minus_l.gif";}if(o_AI.src.indexOf(ob_style + "/plusik.gif") != -1){o_AI.src =  ob_style + "/plusik_l.gif";}o_AI.style.backgroundImage =  "none";if(o_A.firstChild.nextSibling){o_A.firstChild.nextSibling.firstChild.firstChild.firstChild.style.backgroundImage = "none";}o_tS.firstChild.firstChild.firstChild.firstChild.style.backgroundImage = "url(" + ob_style + "/vertical.gif)";if(o_tS.parentNode.childNodes[1]){o_tS.parentNode.childNodes[1].firstChild.firstChild.firstChild.style.backgroundImage = "url(" + ob_style + "/vertical.gif)";}}if(o_A.previousSibling&&!o_A.nextSibling&&!o_Rs1){o_A.previousSibling.firstChild.firstChild.firstChild.firstChild.firstChild.style.backgroundImage="none";}}}}}var o_G=o_t; document.body.removeChild(o_i);if(typeof(o_Rs1)=="undefined"){o_s();}document.onmousemove="";if(!copying){var o_Ti="",o_Mi="";if(ob_CreateSiblingOnDnd==null){o_t=o_N.firstChild.firstChild.firstChild.firstChild; o_r=(o_t.src.length-8); s=o_t.src.substr(o_r,8); if ((s=="usik.gif") || (s=="ik_l.gif")){o_t.onclick(); }o_Ti=o_N.firstChild.firstChild.childNodes[2].id;o_Mi=o_A.firstChild.firstChild.firstChild.childNodes[2].id;o_G.appendChild(o_A);}else if(ob_CreateSiblingOnDnd == "above"){o_Ti=o_N.firstChild.firstChild.childNodes[2].id;o_Mi=o_A.firstChild.firstChild.firstChild.childNodes[2].id;o_G.insertBefore(o_A, o_tS.parentNode)}else if(ob_CreateSiblingOnDnd == "under"){if(o_tS.parentNode.nextSibling){o_G.insertBefore(o_A, o_tS.parentNode.nextSibling);}else{o_G.appendChild(o_A);}o_Ti=o_N.firstChild.firstChild.childNodes[2].id;o_Mi=o_A.firstChild.firstChild.firstChild.childNodes[2].id;}}else{var i=o_hN(o_N.firstChild.firstChild.firstChild.nextSibling.nextSibling.id);o_HC(o_N.firstChild.firstChild.firstChild.nextSibling.nextSibling,o_A.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling,o_hN,null,null);var o_Mi=i;o_Ti=o_J.id;} tree_dd_id=tree_dd_id+o_Ti+","+o_Mi+"|";if(typeof(ob_expand_single)!='undefined' && ob_expand_single)ob_expandSingle(o_J);if(typeof ob_HighlightOnDnd!="undefined"&&ob_HighlightOnDnd==true){ob_t51();}if(o_J.id != tree_selected_id){o_J.className = "ob_t2";}ob_OnNodeDrop(o_Mi,o_Ti,copying); }else {if(ob_OnBeforeNodeDropOutside(document.getElementById("ob_drag"))!=false){ob_OnNodeDropOutside(document.getElementById("ob_drag"));}document.body.removeChild(document.getElementById("ob_drag"));}o_i=null; o_I= false; document.onselectstart= function (){return true; } ; document.onmousedown= function (){return true; } ; document.onmouseup=null;

// EVENT. After Drag & Drop finished.

}function o_HC (o_HC1, o_HC2, o_HC3, o_HC4, o_HC5){if (o_HC4==null) var o_HC4=ob_getFurthestChildOfNode(o_HC2,true);if (o_HC5==null) var o_HC5=o_HC1.parentNode.parentNode.parentNode.parentNode;if(o_HC1.id){var so_HC1Id=o_HC1.id;}else{var so_HC1Id="root";}var oHC7=null;var oHC9 = "Folder.gif";try{oHC7 = o_HC2.parentNode.parentNode.firstChild.firstChild.firstChild;if(oHC7.onclick) oHC7=oHC7.onclick;if(oHC7.toString().indexOf("ob_t21")!=-1){oHC7=oHC7.toString().substr(oHC7.toString().indexOf("ob_t21"));oHC7=oHC7.toString().substr(oHC7.toString().indexOf("this") + 4);oHC7=oHC7.replace(",", "").replace(" ", "").replace(")", "");var oHC8=oHC7.charAt(0);oHC7=oHC7.substr(1);oHC7=oHC7.substr(0, oHC7.indexOf(oHC8));if(oHC7=="")oHC7=null;}else{oHC7=null;}oHC9=o_HC2.parentNode.parentNode.firstChild.childNodes[1].firstChild.firstChild.src;oHC9=oHC9.toString();oHC9=oHC9.substr(oHC9.lastIndexOf("/")+1);}catch(ex){}var o_HC1=ob_t2_Add(so_HC1Id,o_HC3(so_HC1Id!="root"?so_HC1Id:so_HC1Id+"_"+ob_tree_id),o_HC2.innerHTML,false,oHC9,oHC7);if(o_HC2.id==o_HC4.id){ob_t18(o_HC5);return false;}if (o_HC1!=null){if (ob_hasChildren(o_HC2)){var o_HC6=ob_getFirstChildOfNode(o_HC2,true);while (o_HC6!=null){if(!o_HC(o_HC1,o_HC6,o_HC3,o_HC4,o_HC5))return false;o_HC6=ob_getNextSiblingOfNode(o_HC6);}}}return true;}function ob_t52(event){if (!ob_allowCopy) return;if (o_cDc == null){o_cDc=document.createElement ('DIV');o_cDc.style.position="absolute";o_cDc.style.zIndex="999";o_cDc.style.left='0px';o_cDc.style.top='0px';o_cDc.id=ob_tree_id+'_copy_div';o_cDc.innerHTML='<img src="'+ob_icons+'/plus.gif">';o_cDc.style.display='none';document.body.appendChild(o_cDc);}if (o_i != null){o_cDc.style.left=o_i.style.left.replace('px','')*1-5+'px';o_cDc.style.top=o_i.style.top.replace('px','')*1+17+'px';}if(window.event)event=window.event;try{o_cDc.style.display=event.ctrlKey&&o_i!=null?"block":"none";}catch(e){ob_allowCopy=false;};}function o_m(o_g){var o_F=0; if (o_g.offsetParent){while (o_g.offsetParent){o_F+=o_g.offsetLeft; o_g=o_g.offsetParent; }}else if (o_g.x)o_F+=o_g.x; return o_F; }function o_x(o_f){var o_F=0; if (o_f.offsetParent){while (o_f.offsetParent){o_F+=o_f.offsetTop; o_f=o_f.offsetParent; }}else if (o_f.y)o_F+=o_f.y; return o_F; }function ob_t18(s){if (document.all){var o_M=s.getElementsByTagName("IMG"); for (var i=0; i<o_M.length; i++){o_M[i].ondragstart= function (){return false; } ; }}var o_t; var o_M=s.getElementsByTagName("DIV"); for (i=0; i<o_M.length; i++){var item=o_M[i]; var o_D= false; if (item.className==""){try {var o_d=item.firstChild.firstChild.firstChild; if ((o_d.childNodes.length==3) && (o_d.lastChild.className=="ob_t2"))o_D= true; }catch (o_t){}}if ((item.className=="ob_d2b") || (item.className=="ob_d2c") || (item.className=="ob_d2s") || o_D){o_t=item.firstChild; if (document.all){o_t.onmousedown=new Function("ob_t10(null,this);"); o_t.onmouseup=new Function("ob_t12();"); }else {o_t.setAttribute("onmousedown","ob_t10(event,this);"); o_t.setAttribute("onmouseup","ob_t12();"); }}}}function o_H(o_t){if (o_t.parentNode.parentNode.parentNode.parentNode.parentNode.className=="ob_di2"){return; } ; o_t=o_t.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.firstChild.firstChild.firstChild.firstChild.nextSibling.nextSibling; tree_dd_path=o_t.id+"|"+tree_dd_path; o_H(o_t); }function ob_tnodrag(s){if (s==""){return; }var a=new Array; a=s.split(","); for (var i=0; i<a.length; i++){o_t=document.getElementById(a[i]).parentNode.parentNode.parentNode; o_t.onmousedown= function (){return false; } ; o_t.onmouseup= function (){return false; } ; }}function o_R(o_t){if (!o_t.onclick)o_t.onclick= function (){ob_t21(this,"");} ; var s="",o_r=0,o_Q=""; s=o_t.src; o_r=(s.length-6); o_Q=s.substr(o_r,6); if (o_Q!="_l.gif"){o_Q=s.substr(0,o_r+2)+"_l.gif"; return o_Q; }else {return s; }}var ob_sn2=""; function ob_multiselect(o_C,o_c){if (o_C.id=="")return; if (!o_c)o_c=window.event; if (!o_c)return; var o_B= false; if (o_c!=null)o_B=o_c.ctrlKey; if (o_B==0){if (o_C.id!=""){ob_unselectAllNodes(); ob_sn2=o_C.id; if (typeof ob_op2!="undefined"){ob_op2.className="ob_t2"; ob_op2.parentNode.parentNode.parentNode.style.backgroundColor="transparent"; }o_C.className="ob_t3"; }}else {var o_b;o_b=ob_sn2.split("|");o_o0=o_b.length;if (o_o0>0){o_O0=-1; for (i=0; i<o_o0; i++){if (o_b[i]==o_C.id){o_O0=i; break; }};if (o_O0>-1){o_b.splice(o_O0,1); if (o_b.length>0){tree_selected_id=o_b[o_b.length-1]; ob_op2=eval("document.getElementById('"+o_b[o_b.length-1]+"')"); }else {tree_selected_id=""; ob_op2=undefined; }ob_sn2=o_b.join("|"); o_C.className="ob_t2"; o_l0=o_C.parentNode.parentNode.parentNode; o_l0.style.backgroundColor="transparent"; return 1; }else {if (o_C.id!="")ob_sn2+=((ob_sn2.length>0)?"|": "")+o_C.id; }}}return 0;}function ob_unselectAllNodes(){try {if (typeof(ob_sn2)=="undefined")return; var o_i0=""; if (typeof ob_sn2!="undefined")o_i0=ob_sn2; var o_b; if (o_i0.length>0){if (o_i0.indexOf("|")>-1){o_b=o_i0.split("|");o_o0=o_b.length; if (o_o0>0){var i=0; var o_T; for (i=0; i<o_o0; i++){o_T=eval("document.getElementById('"+o_b[i]+"')"); o_T.className="ob_t2"; o_l0=o_T.parentNode.parentNode.parentNode; o_l0.style.backgroundColor="transparent"; }}}}}catch (o_t){}}

// string containing previous node content
var prevNodeContent;

var tree_edit_id="";

var o_I0= false; o_o1= false; document.onkeydown= function (o_t){o_O1(o_t);} ; if (document.layers)try {document.registerEvents(Event.KEYDOWN);}catch (o_t){} ; function ob_afterNodeEditing(name){/*if (ob_ev("OnNodeEdit") && typeof ob_OnNodeEdit!="undefined")*/ob_OnNodeEdit(tree_selected_id,name,prevNodeContent); }function o_O1(o_t){if (!o_t)o_t=window.event; var targ;if (o_t.target) targ = o_t.target;else if (o_t.srcElement) targ = o_t.srcElement;if (targ.nodeType == 3)targ = targ.parentNode;if (o_o1)return; if (typeof(tree_selected_id)!="undefined")o_l1=document.getElementById(tree_selected_id); if (typeof(o_l1)!="undefined" && o_l1!=null){if(targ.nodeName != "INPUT" && targ.nodeName != "TEXTAREA"){if (!o_I0){o_i1=document.createElement("input"); o_l1.appendChild(o_i1); try {o_i1.focus(); }catch (o_t){}o_l1.removeChild(o_i1); o_I0= true; o_t.cancelBubble= true; o_t.returnValue= false; if (o_t.stopPropagation)o_t.stopPropagation(); }} else {ob_lastControlSelected = targ; return;} if (typeof(ob_tree_keynav_enable)!="undefined" && ob_tree_keynav_enable){var blockEvent= false; if (o_t.keyCode==046){tree_node_exp_col= true; o_I1=ob_getNodeUp(o_l1, false); if (o_I1!=null)ob_t22(o_I1); tree_node_exp_col= false; blockEvent= true; }else if (o_t.keyCode==050){tree_node_exp_col= true; o_o2=ob_getNodeDown(o_l1, false); if (o_o2!=null)ob_t22(o_o2); tree_node_exp_col= false; blockEvent= true; }else if (o_t.keyCode==045){tree_node_exp_col= true; if (ob_hasChildren(o_l1) && ob_isExpanded(o_l1)){o_l1.parentNode.firstChild.firstChild.onclick(); }else {parentNode=ob_getParentOfNode(o_l1); if (parentNode!=null)ob_t22(parentNode); }tree_node_exp_col= false; blockEvent= true; }else if (o_t.keyCode==047){tree_node_exp_col= true; if (ob_hasChildren(o_l1)){if (!ob_isExpanded(o_l1)){o_l1.parentNode.firstChild.firstChild.onclick(); }else {firstChild=ob_getFirstChildOfNode(o_l1); if (firstChild!=null)ob_t22(firstChild); }}tree_node_exp_col= false; blockEvent= true; }if (blockEvent){if (document.all){o_t.cancelBubble= true; o_t.returnValue= false; if (o_t.stopPropagation)o_t.stopPropagation(); }}}if (typeof(ob_tree_editnode_enable)!="undefined" && ob_tree_editnode_enable){if (o_t.keyCode==015 || o_t.keyCode==0161){ob_t22(o_l1); }}}}function o_O2(o_t){if (!o_t)o_t=window.event; o_l1=document.getElementById(tree_selected_id); if (o_l1!=null){if (o_t.keyCode==015){if (o_l1.childNodes.length>0){o_l2=o_l1; try {if (ob_hasChildren(o_l1) && o_l1.childNodes[0].nodeName.toLowerCase()!="input")o_l2=o_l1.childNodes[0]; }catch (o_t){}if (o_l2.childNodes[0]!=null && o_l2.childNodes[0].nodeName.toLowerCase()=="input"){var name=o_l2.childNodes[0].value; if (name.length==0 || name.indexOf(":")!=-1 || name.indexOf("|")!=-1 || name.indexOf(",")!=-1 || name.indexOf("<")!=-1 || name.indexOf(">")!=-1){o_l1.childNodes[0].onblur=null;

alert("The node name cannot be empty\nand\nIt cannot contain the following characters : | , \x3c >");

o_l2.childNodes[0].value=prevNodeContent; try {o_l2.childNodes[0].focus(); }catch (o_t){}try {o_i2=o_l2.childNodes[0].ownerDocument.selection.createRange().duplicate(); o_i2.moveStart("textedit",-1);o_i2.moveEnd("textedit"); o_i2.select(); }catch (o_t){}o_l2.childNodes[0].onblur= function (){o_I2( true);} ; o_o1= true; }else {o_l2.removeChild(o_l2.childNodes[0]); o_l2.innerHTML=name; o_l2.className="ob_t3"; o_o1= false; if (name!=prevNodeContent){tree_edit_id+=tree_selected_id+":"+name+"|"; ob_afterNodeEditing(name); }}}}o_t.cancelBubble= true; o_t.returnValue= false; if (o_t.stopPropagation)o_t.stopPropagation(); }if (o_t.keyCode==033){o_I2( false); }else {}}}function o_I2(o_o3){o_l1=document.getElementById(tree_selected_id); if (o_l1!=null){if (o_l1.childNodes.length>0){o_l2=o_l1; try {if (ob_hasChildren(o_l1) && o_l1.childNodes[0].nodeName.toLowerCase()!="input")o_l2=o_l1.childNodes[0]; }catch (o_t){}if (o_l2.childNodes[0]!=null && o_l2.childNodes[0].nodeName.toLowerCase()=="input"){var name=o_l2.childNodes[0].value; o_l2.removeChild(o_l2.childNodes[0]); o_l2.innerHTML=o_o3?name:prevNodeContent; o_l2.className="ob_t3"; o_o1= false; if (o_o3 && (name!=prevNodeContent)){tree_edit_id+=tree_selected_id+":"+name+"|"; ob_afterNodeEditing(name); }}}}}function ob_attemptStartEditing(o_C){if ((typeof(tree_node_exp_col)=="undefined" || (typeof(tree_node_exp_col!="undefined") && !tree_node_exp_col)) && typeof(o_o1)!="undefined" && typeof(ob_tree_editnode_enable)!="undefined" && ob_tree_editnode_enable){if (o_C.id==tree_selected_id){if (typeof(ob_noedit)!="undefined" && 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]==o_C.id){alert("Can't edit. The node is marked as not editable."); return; }}}}if (!o_o1/* && (ob_ev("OnBeforeNodeEdit") && typeof ob_OnBeforeNodeEdit!="undefined")*/)if (!ob_OnBeforeNodeEdit(o_C.id))return; if (o_C.childNodes.length>0){if (o_l1==null)o_l1=document.getElementById(tree_selected_id); o_l2=o_l1; try {if (ob_hasChildren(o_l1) && o_l1.childNodes[0].nodeName.toLowerCase()!="#text")o_l2=o_l1.childNodes[0]; }catch (o_t){}if (o_l2.childNodes[0]!=null && o_l2.childNodes[0].nodeName.toLowerCase()=="#text"){prevNodeContent=o_l2.childNodes[0].nodeValue; var o_O3=document.createElement("input"); o_O3.setAttribute("type","text"); o_O3.setAttribute("value",prevNodeContent); o_O3.id=o_C.id+"_txtBox"; o_O3.style.borderWidth=0; o_O3.style.width=o_C.offsetWidth+036; o_O3.style.backgroundColor="transparent"; o_O3.className=o_C.className; while (o_l2.childNodes.length>0)o_l2.removeChild(o_l2.childNodes[0]); o_l2.appendChild(o_O3); o_O3.onkeydown= function (o_t){o_O2(o_t);} ; o_O3.onblur= function (){o_I2( true);} ; try {o_O3.focus(); }catch (o_t){}try {o_i2=o_O3.ownerDocument.selection.createRange().duplicate(); o_i2.moveStart("textedit",-1);o_i2.moveEnd("textedit"); if (o_i2.htmlText.toLowerCase().indexOf("body")==-1)o_i2.select(); else {try {o_O3.focus(); }catch (o_t){}}}catch (o_t){}o_o1= true; }}}}}function ob_attemptEndEditing(o_C){o_l1=o_C; if (typeof(o_l1)!="undefined" && typeof(o_o1)!="undefined" && typeof(ob_tree_editnode_enable)!="undefined" && ob_tree_editnode_enable){o_l2=o_l1; try {if (ob_hasChildren(o_l1) && o_l1.childNodes[0].nodeName.toLowerCase()!="input")o_l2=o_l1.childNodes[0]; }catch (o_t){}if (o_l2.childNodes.length>0){if (o_l2.childNodes[0]!=null && o_l2.childNodes[0].nodeName.toLowerCase()=="input"){if (o_l2.id!=tree_selected_id){var name=o_l2.childNodes[0].value; if (name.length==0 || name.indexOf(":")!=-1 || name.indexOf("|")!=-1 || name.indexOf(",")!=-1 || name.indexOf("<")!=-1 || name.indexOf(">")!=-1){alert("The node name cannot be empty\nand\nIt cannot contain the following characters : | , \x3c >"); o_l2.childNodes[0].value=prevNodeContent; try {o_l2.childNodes[0].focus(); }catch (o_t){}try {o_i2=o_l2.childNodes[0].ownerDocument.selection.createRange().duplicate(); o_i2.moveStart("textedit",-1);o_i2.moveEnd("textedit"); o_i2.select(); }catch (o_t){}o_o1= true; return; }o_l2.removeChild(o_l2.childNodes[0]); o_l2.innerHTML=name; o_o1= false; if (name!=prevNodeContent){tree_edit_id+=tree_selected_id+":"+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; }
//-->
