You've got to figure out what the best situation is for your kids, my first instinct is to say fight it and try to win custody, but if that is going to take such a long time then maybe it's not really the best situation to put them into.
Whatever happens, always put their needs first, they deserve as much!

I'm sorry that you have to be going through this, my heart goes out to you~ hugs : )