Open dialogue if window.location.hash contains string