		//<![CDATA[

		// Function that show/hide layers and call the Ajax object
		function loadTree2(id){
			if (document.getElementById("c"+id).style.display=="none"){
				document.getElementById("c"+id).style.display="inline";

			if(document.getElementById("c"+id).innerHTML == ""){
				document.getElementById("c"+id).innerHTML="cargando...";  // place to insert a preloading icon .... web2.0 like

				target = document.getElementById("c"+id);
				var myConn = new XHConn();
				if (!myConn) alert("XMLHTTP not available. Try a newer/better browser.");
				myConn.connect("http://www.aplicaciondigital.com/edifica/gestion/tree_sub.php", "POST", "id="+id, showTree);
				}
			} else {
				document.getElementById("c"+id).style.display="none";
				}
		}

		// Funtion whenDone XHConn is complete
		showTree2 = function(oXML) {
			target.innerHTML = oXML.responseText;
			if(oXML.responseText == "")
				target.style.display="none";
		}

		function loadTree(id){
			var target = $("#c"+id);

			if(target.html() == "") {
				$("#c"+id).show();
				//$("#c"+id).css( {float:"left", overflow:"hidden", width:"350px", padding:"0 0 0 10px"} );
				target.html("cargando...");
				$.post("http://www.aplicaciondigital.com/edifica/gestion/tree_sub.php",{id:id},showTree);
			} else {
				if($("#c"+id).css("display") == "none")
					$("#c"+id).show();
				else
					$("#c"+id).hide();
			}

			function showTree(datos){
				target.html(datos);
				if(datos == "") $("#c"+id).hide();
			}
		}


		//]]>
