//   ASP TreeView component   http://www.obout.com

var ob_tb, ob_url, selected_node_id;
function ob_wk(os, url) {
	try {
		var ot = os.parentNode.nextSibling.firstChild.nextSibling;
		var lensrc = (os.src.length - 8);
		var s = os.src.substr(lensrc, 8);
		if (s == "inus.gif") {
			ot.style.display = "none";
			os.src = "/templates/52/internet/Public/Images/menu/plusik.gif";
		}
		if (s == "usik.gif") {
			ot.style.display = "block";
			os.src = "/templates/52/internet/Public/Images/menu/minus.gif";
		}
		if (s == "ik_l.gif") {
			ot.style.display = "block";
			os.src = "/templates/52/internet/Public/Images/menu/minus_l.gif";
			if (url != "") {
				var s = os.parentNode.nextSibling.firstChild.nextSibling.innerText;
				if (s != "Loading ...") {
					return;
				}
				ob_url = url;
				ob_tb = os;
				window.setTimeout("ob_tm()", 100);
			}
		}
		if (s == "us_l.gif") {
			ot.style.display = "none";
			os.src = "/templates/52/internet/Public/Images/menu/plusik_l.gif";
		}
	} catch (e) { }
}

function ob_tm() {
	try {
		var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		xmlhttp.open("GET", ob_url, false);
		xmlhttp.send("");
		ob_tb.parentNode.nextSibling.firstChild.nextSibling.outerHTML = xmlhttp.responseText;
	} catch (e) { }
}

function ob_ft(os) {
	try {
		if (typeof op != "undefined") {
			op.style.backgroundColor = bg;
			op.style.border = "none";
		}
		bg = os.style.backgroundColor;
		os.style.backgroundColor = "ccddee";
		os.style.border = "1px solid #666666";
		selected_node_id = os.id;
		op = os;
	} catch (e) { }
}

function ob_os(e){
	try {
		var os = e.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.firstChild.firstChild;
		if (os != null) {
			if ((typeof os != "undefined") && (os.tagName == "IMG")) {
				var lensrc = (os.src.length - 8);
				var s = os.src.substr(lensrc, 8);
				if ((s == "inus.gif") || (s == "usik.gif") || (s == "us_l.gif") || (s == "ik_l.gif")) {
					e.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.firstChild.firstChild.click();
				}
			}else {
				ob_os(e.parentNode);
			}
		}
	} catch (e) { }
}