Fire an events if page loaded with hash string

Problem: if page loaded with hash '#modal', we can see modal window, but 'cssmodal:show' event not triggered. As a consequence, we have problem with display content in modal window.