Proceedings under this article may be originated in the county in which the act or acts referred to in the petition allegedly occurred or in which the family or household resides or in which any party resides. For the purposes of this section, residence shall include any residential program for victims of domestic violence, as defined in subdivision four of section four hundred fifty-nine-a of the social services law, or facility which provides shelter to homeless persons or families on an emergency or temporary basis.