//<!--
//		Copyright obout inc      http://www.obout.com
//	
//		obout_ASP_TreeView_2      version 2.0.4 

var ob_tb2,ob_last,ob_url2,ob_sids=null,ob_ivl="",ob_iar=0,ob_op2,tree_selected_id,ob_xmlhttp2,ob_alert2; 
/*@cc_on @*//*@if (@_jscript_version >= 5);try{ob_xmlhttp2=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try {ob_xmlhttp2=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){}};@else;ob_xmlhttp2=false;ob_alert2=true;@end @*/
if (!ob_xmlhttp2 && !ob_alert2)
{
	try 
	{
		ob_xmlhttp2=new XMLHttpRequest();
	}
	catch(e)
	{
	}
}

function ob_rsc() 
{
	if (ob_xmlhttp2.readyState==4)
	{
		ob_tb2.className="none";
		ob_tb2.innerHTML=ob_xmlhttp2.responseText;
	}
}

function ob_t24()
{
	if(ob_xmlhttp2)
	{
		ob_xmlhttp2.open("GET",ob_url2,true);
		ob_xmlhttp2.onreadystatechange=ob_rsc;
		ob_xmlhttp2.send(null);

		//make images clickable -- sebastian 20050721
		//findImage(os.parentNode.parentNode.parentNode.parentNode.nextSibling);
	}
}

function ob_t26()
{
	ob_ivl=window.setInterval("ob_t28()",200);
}

function ob_t28()
{
	if(ob_sids==null)
	{
		window.clearInterval(ob_ivl);
		ob_t25(document.getElementById(ob_last));
		return;
	}
	
	if(ob_xmlhttp2.readyState==4 || ob_xmlhttp2.readyState==0)
	{
		if(ob_iar==ob_sids.length)
		{
			window.clearInterval(ob_ivl);
			ob_t25(document.getElementById(ob_last));
			return;
		}
	
		ob_t25(document.getElementById(ob_sids[ob_iar]));
		ob_iar=ob_iar+1;
	}
}


function ob_t21(os, url) {
	// Switch plus-minus images when clicked.
	// If dynamic loading URL is supplied, call loading function.

    var ot = os.parentNode.parentNode.parentNode.parentNode.nextSibling;
    var lensrc = (os.src.length - 8);
    var s = os.src.substr(lensrc, 8);
    if (s == "inus.gif") {
        ot.style.display = "none";
        os.src = ob_style + "/plusik.gif";
    }
    if (s == "usik.gif") {
        ot.style.display = "block";
        os.src = ob_style + "/minus.gif";
    }
    if (s == "ik_l.gif") {
        ot.style.display = "block";
        os.src = ob_style + "/minus_l.gif";
        if (url != "") {
		var s = os.parentNode.parentNode.parentNode.parentNode.nextSibling.firstChild.firstChild.firstChild.nextSibling.innerHTML;
            if (s != "Loading ...") {
                return;
            }
            ob_url2 = url;
            ob_tb2 = os.parentNode.parentNode.parentNode.parentNode.nextSibling.firstChild.firstChild.firstChild.nextSibling;
            window.setTimeout("ob_t24()", 100);
        }
    }
    if (s == "us_l.gif") {
        ot.style.display = "none";
        os.src = ob_style + "/plusik_l.gif";
    }
}


function ob_t22(ob_od, noRedirect) 
{
	// Highlight selected node
	// Change class name and assign id to variable tree_selected_id

	if (ob_op2 != null)
	{
		ob_op2.className = "ob_t2";
	}

	ob_od.className = "ob_t3";
	tree_selected_id = ob_od.id;
	ob_op2 = ob_od;

	//if this is a genuine click, then reload the right frame
	if (noRedirect == null)
	{
		//if we haven't clicked on a volume expand link
		if (ob_od.firstChild.href.indexOf("obtree.aspx") < 0 )
			parent.document.getElementById("right").src = ob_od.firstChild.id;
	}
}


function ob_t23(e){
	// To expand-collapse node by clicking on node text.
	// Find first image with plus-minus and call onclick()

    var os = e.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")) {
				os.onclick();
			}
		}
		else {
			ob_t23(e.parentNode);
		}
	}
}

function ob_t25(ob_od) {
	// For dynamic loading - Highlight and Extend.
    
	if (ob_od == null)
	{
		ob_od = document.getElementById("tree1").firstChild.firstChild.firstChild.firstChild.firstChild.childNodes[1];
		ob_od.setAttribute('onClick','ob_t22(this)'); //ff
		ob_od.onclick = new Function("ob_t22(this)"); //ie

		ob_t22(ob_od, true);
	}
	else
	{
		ob_t22(ob_od, true);
		var e, lensrc, s;
		e = ob_od.parentNode.firstChild.firstChild;
		lensrc = (e.src.length - 8);
		s = e.src.substr(lensrc, 8);
		if ((s == "usik.gif") || (s == "ik_l.gif")) {
			e.onclick();
		}
	}
}

function ob_tall(exp) {
	// To expand all nodes ob_tall(1)
	// To collapse all nodes ob_tall(0)
	
	var i, e, lensrc, s
	for (i=0; i<document.images.length; i++) {
		e = document.images[i];
		lensrc = (e.src.length - 8);
		s = e.src.substr(lensrc, 8);
		if (exp == 1) {
			if ((s == "usik.gif") || (s == "ik_l.gif")) {
				e.onclick();
			}
		}
		else
			if ((s == "inus.gif") || (s == "us_l.gif")) {
				e.onclick();
			}
	}
}

//-->
