Added attachevent
Notify when active element is changed