/**
 * @author Nghiem Anh Tuan
 */
function onBeforeExpand(sender,arg)
{
	var thelink = top.location.href;
	qId = getSectionID();
	if (qId!="")
		top.location.href = thelink.replace("#"+qId,"#"+arg.ParentId);
	else
	{
		if (thelink.indexOf("#")<0)
			top.location.href = thelink + "#" + arg.ParentId;
		else
			top.location.href = thelink + arg.ParentId;
	}
		
	return true;
}
function onBeforeCollapse(sender,arg)
{
	var thelink = top.location.href;
	top.location.href = thelink.replace(arg.ParentId,"");
	return true;
}

