I'm afraid your writing style makes it a bit difficult to understand what is going on. If you've received a petition or motion from the court, you need to consult with an attorney in private. No one will be able to say anything over the internet, based only on the limited (and confusing) information here, that will solve everything for you.
I will tell you this: "Emergency" or "immediate danger" petitions for custody are fairly hard to win, even though (or, perhaps, because) they're filed often. It is very common for parents in child custody cases to believe that their co-parents are evil, malicious, and dangerous, and courts are very reluctant to radically alter a child's life and schedule. So the courts demand that parents advance some pretty strong evidence to support any claim that the other parent is a danger to the children.
Please read the following notice: <br> <br> Jay Bodzin is licensed to practice law in the State of Oregon and the Federal District of Oregon, and cannot give advice about the laws of other jurisdictions. All comments on this site are intended for informational purposes only, and do not constitute legal advice or create an attorney-client relationship. No posts or comments on this site are in any way confidential. Each case is unique. You are advised to have counsel at all stages of any legal proceeding, and to speak with your own lawyer in private to get advice about your specific situation. <br> <br> Jay Bodzin, Northwest Law Office, 2075 SW First Avenue, Suite 2J, Portland, OR 97201 | Telephone: 503-227-0965 | Facsimile: 503-345-0926 | Email: email@example.com | Online: www.northwestlawoffice.com