to tell if the mouse is over a panel you can use mouse_panel its a built in pointer that is null when it is not over a panel and when it is over a panel it is set to that panel.
"You may never know what results come of your action, but if you do nothing there will be no result." -Mahatma Gandhi