function createBox(arrayTool) {

	box = {
		"active" : "none",
		"expand" : function(boxId, toolId, position) {
			return(boxExpand(boxId, toolId, position));
		},
		tool : {}
	};
	
        var len = arrayTool.length;
	for (i = 0; i < len; i++){
		box["tool"][arrayTool[i]] = {
			"expandStat" : false
		}
	}

	return(box);
}


function boxExpand(boxId, toolId, position){

	blindId = toolId + "_" + position;

	if(boxId.tool[toolId].expandStat == false){
		if(boxId.active != 'none'){
			$(boxId.active + "_" + position).style.display = "none";
			boxId.tool[boxId.active].expandStat = false;
			$(boxId.active+ "_" + position + "_navi").childNodes[1].src = "/media/c/2006/img/extention/2007/arrow_b_6x6.gif";
			$(boxId.active+ "_" + position + "_navi").className = $(blindId + "_navi").className.replace(/ active/, "");
			$(boxId.active+ "_" + position + "_navi").childNodes[0].style.background = "transparent url(/media/c/2006/img/extention/2007/icon_" + boxId.active + ".gif) 0px 0px no-repeat";
			$(boxId.active+ "_" + position + "_navi").childNodes[0].style.color = "#000000";
		}
		$(blindId).innerHTML = $(toolId + "_inner").innerHTML.replace(/EXTPOSITION/g, position);
		$(blindId).style.display = "block";

		
		Effect.BlindDown(blindId,{duration: 0.2});;
		boxId["tool"][toolId]["expandStat"] = true;
		boxId.active = toolId;

		$(blindId + "_navi").childNodes[1].src = "/media/c/2006/img/extention/2007/arrow_spacer_6x6.gif";
		$(blindId + "_navi").className = $(blindId + "_navi").className + " active";
		$(blindId + "_navi").childNodes[0].style.color = "#ffffff";

	}else{
		Effect.BlindUp(blindId,{duration: 0.2});;
		boxId.tool[toolId].expandStat = false;
		$(blindId + "_navi").childNodes[1].src = "/media/c/2006/img/extention/2007/arrow_b_6x6.gif";
		$(blindId + "_navi").className = $(blindId + "_navi").className.replace(/ active/, "");
		$(blindId + "_navi").childNodes[0].style.color = "#000000";

		boxId.active = 'none';

	}
	return false;

}



function sc_tracktoolbar(event){
	/* set suiteID */

		var s=s_gi(s_account);

	/* !!MUST!! set s.linkTrackVars or s.linkTrackEvents (delimiter ",") */
	/* sample : s.linkTrackVars = 'prop1,eVar1,events'; */

		s.linkTrackVars='event17';


	/* set Variable */

		s.event17=event;

	/* send value */

		s.tl(this,'o','toolbar:' + event);
}