function swapImage(image_name, image_src){
	window.document[image_name].src = image_src;
}

function processTree(row_id_list, image_name, image_src, image_src_mo, image_src_down, image_src_mo_down){
	if(row_id_list != ""){
		var row_array = row_id_list.split(",");
		var expanded = false;
		for (x = 0; x < row_array.length; x++){
			//var row = document.all[row_array[x]];
			var row = document.getElementById(row_array[x]);
			if (row !=null){
				if(row.style.display == "block" || row.style.display == ""){
					row.style.display = "none";
					expanded = false;
				}
				else{
					row.style.display = "block";
					expanded = true;
				}
			}
		}
		if(expanded){
			window.document[image_name].src = image_src_down;
			//window.document[image_name].Attributes("onmouseover") = swapImage(image_name,image_src_mo_down);
			//window.document[image_name].Attributes("onmouseout") = swapImage(image_name,image_src_down);
			//window.document[image_name].Attributes["onmouseover"] = null;
			//window.document[image_name].Attributes["onmouseout"] = null;
		}
		else{
			window.document[image_name].src = image_src;			
			//window.document[image_name].Attributes("onmouseover") = swapImage(image_name,image_src_mo);
			//window.document[image_name].Attributes("onmouseout")= swapImage(image_name,image_src);
			//window.document[image_name].Attributes("onmouseover") = "function () {return true;}";
			//window.document[image_name].Attributes("onmouseout") = "function () {return true;}";
	
		}
	}
}

