//----------------------------------------------------------
// 機能：タスクフォルダーのモード変更（タスクパネル）
// 引数：in_Obj		選択オブジェクト
//
//----------------------------------------------------------
function changeTaskFolderMode(in_Obj) {

	//　選択フォルダのアイコンを変更
	//　子フォルダーを展開
	for(var i=0;i<in_Obj.parentNode.childNodes.length;i++){

		if(in_Obj.parentNode.childNodes.item(i).nodeName == "UL") {

			if(in_Obj.attributes.getNamedItem("class").nodeValue == "closeFolder") {

				in_Obj.attributes.getNamedItem("class").nodeValue = "openFolder" 
				in_Obj.parentNode.childNodes.item(i).attributes.getNamedItem("class").nodeValue = "block";

			} else {

				in_Obj.attributes.getNamedItem("class").nodeValue = "closeFolder" 
				in_Obj.parentNode.childNodes.item(i).attributes.getNamedItem("class").nodeValue = "none";

			}

			break;
		}
	}

}

//----------------------------------------------------------
// 機能：タスクフォルダーのモード変更（タスクパネル）
// 引数：in_Obj		選択オブジェクト
//
//----------------------------------------------------------
function changeTaskFolderMode2(in_Obj) {


	//　選択フォルダのアイコンを変更
	//　子フォルダーを展開
	for(var i=0;i<in_Obj.parentNode.childNodes.length;i++){

		if(in_Obj.parentNode.childNodes.item(i).nodeName == "UL") {

			if(in_Obj.attributes.getNamedItem("class").nodeValue == "closeFolder") {

				in_Obj.attributes.getNamedItem("class").nodeValue = "openFolder" 
				in_Obj.parentNode.childNodes.item(i).attributes.getNamedItem("class").nodeValue = "none";

			} else {

				in_Obj.attributes.getNamedItem("class").nodeValue = "closeFolder" 
				in_Obj.parentNode.childNodes.item(i).attributes.getNamedItem("class").nodeValue = "block";

			}

			break;
		}
	}

}
//----------------------------------------------------------
// 機能：タスクの選択（タスク）
// 引数：in_Obj		選択オブジェクト
//
//----------------------------------------------------------
function selectTaskItem(in_Obj) {

	// 選択されいたオブジェクトを非選択に設定
	if(typeof(this.gPreSelectedObj) != 'undefined') {

		this.gPreSelectedObj.parentNode.className = "normal";
	}

	// 選択されたオブジェクトを設定
	this.gPreSelectedObj = in_Obj;


	// 選択に設定
	in_Obj.parentNode.className= "active";
}