I am on my third marriage. I've been called crazy by my buddies but I like being married and I knew one day I'd get it right.
On Thursday, try very very hard to keep a level head. Especially in court. Things will be said that you know aren't the truth but hold your tongue. If and when you get to say anything be clear, precise and most of all CALM! Keep the love of your children in mind at all times. They are the ones that will be hurt the most and it's not thier fight. If you prove yourself to be a stable, caring and most of all calm father, it will go a long way in your favor. As Royal said, never speak poorly of your ex (thier mother) in front of them. It's easy to do but serve's no purpose. Believe it or not, you two may eventually find yourselve's working together to help your children through many of life's problems. My ex and I can actually sit down, have a coffee and work on issues that concern our children and actually agree.
As time goes on, your children will figure out what's what and they will remember you being there for them and being a stand-up guy who never bad-mouthed thier mom. Trust me, this is important. Be honest with them (as much as you can be, considering thier age).
Royal's right on. Money is the least of your worries. You can always make more. Make the change in thier lives seem like sort of an adventure. I got out with nothing and had to rent a bedroom of a family I knew. One bed, two kids....they took turns sharing the bed with dad and the other would sleep in a sleeping bag on the floor. They still talk about those days when, in fact, I had to choke back tears because I had worked so hard to give them a fine home and now had to live like that. Again, for them it was an adventure. They hurt alot because of the divorce but i just kept smiling around them and tried to find (very) cheap entertainment for us all. like Royal, I worked many hours for diffrerent companies to make up the financial loss. Didn't hurt a bit. Did it for my kids.
You are going to do fine because (if you are the man you seem to be on this forum) you sound like a great father and an honest man. Mistakes are made. It takes two to make a marriage and two to break a marriage if we are honest with ourselves. If you feel guilty about something you've done or believe you've done......let it go. That crap will hold you back. Get out. Meet people. Date some ladies. Live! You are a lucky man......even if it doesn't feel like it right now.
To your future, Bill. Cheers.