fires right after show() method is called for the context view and before the context is shown
some.attachEvent("onBeforeShow", function(){
//... some code here ...
});
The event takes all parameters passed to show method. Return false to block popup displaying.