fires when the user moves the mouse cursor out of the menu polygon
myMenu.attachEvent("onHide", function(id){ // your code here });