fires when a branch has been opened
gantt.attachEvent("onTaskOpened", function(id) { //any custom logic here });