fires when the mouse pointer is moved out of item's area
myTree.attachEvent("onMouseOut", function(id){ // your code here });