popup: remove obsolete rf
popup: use ===/!== instead of ==/!=
popup: use _animDuration for fadein and fadeout duration

remove the use of intermediate variable in setFocus()
popup: remove setDialogZIndex() method
popup: remove intermediate variable
popup: don't need to bind as the object can be accessed by obj
popup: use jquery to bind click event to button