function startMyLeft(){
	//	alert(1);
	$("#treeleft").treeview({
		persist: "location",
		collapsed: true
	});
	setTimeout("startMyRight()",200);
}

function startMyRight(){
	$("#treeleft, #treeright").css("display", "block");
	//	alert(2);
	$("#treeright").treeview({
		persist: "location",
		collapsed: true
	});			
	setTimeout("startMyShow()",200);
}

function startMyShow(){
	//	alert(3);
	$(".punct1").find("ul:first").css("display", "block"); 
}

function getNewContent(source, target1, target2) {

/*
var startTime = new Date().getTime();

êîä

var endTime = new Date().getTime();
var result = (endTime-startTime)/1000;
alert(result);
*/

		var contaner1 = $("#" + target1);
		var contaner2 = $("#" + target2);
		contaner1.html('ÇÀÃÐÓÇÊÀ ÐÓÁÐÈÊÀÒÎÐÀ ...');
		contaner2.html('<br><b>ÇÀÃÐÓÇÊÀ ÐÓÁÐÈÊÀÒÎÐÀ ...</b>');

		$.ajax({
			url: source,
			cache: false,
			async: true,
			success: function(html){
				$("#treeleft, #treeright, #tree").css("display", "none");
				$("#tree").html(html);
				var leftcolumn = "";
				var rightcolumn = "";

				$("#tree .punct1").each(function(i, val) {
					if($(val).filter('.leftcolumn').length) {
						leftcolumn += '<li class="' + $(val).attr("class") + '">' + $(val).html() + '</li>'; 
					} else {
						rightcolumn += '<li class="' + $(val).attr("class") + '">' + $(val).html() + '</li>'; 
					}
				});

				$("#treeleft").html(leftcolumn);
				$("#treeright").html(rightcolumn);
				$("#tree").remove();

				$("#treeleft .punct3 a, #treeright .punct3 a").click(function(){
					if( $(this).parent().parent().find("li").html() != null ){$(this).parent().parent().find("div:first").click();
					return false;}
				});
			setTimeout("startMyLeft()",200);
								


//			setTimeout(function(){ $(".punct1").find("ul:first").css("display", "block"); }, 500);


			}
		});
	}
