When I was starting out my career, my boss called me into his office. He asked me where I saw myself in 5 and 10 years. Naturally I mentioned positions within the company that would be a step up from where I was.
He told me "Whenever you have a chance to take an opportunity to help yourself, take it. Any company is the same, it looks after its own interests. A decision to downsize is never taken lightly, but a company will do what it has to in order to survive and remain profitable."
Loyalty isn't rewarded as it used to, you are making a good choice.
I'd warn you to be ready for two things.
1) a counter offer from your current employer
2) be ready to negotiate for the new position
One thing many people forget when talking money is while you may be excited and happy to be getting a new job, they aren't doing it as a favor to you. They want to you on board as well. Negotiate a bit on the salary, if they don't have wiggle room they will appologize and you can still accept the offer in place.
It's really easy to do. When you get the offer, wait a day, then reply that you are very pleased with the offer, would be prepared to sign, but you had been expecting the starting salary to be $XXXX. Ask if they have any flexibility.
You will be surprised how many places quickly agree and you've just given yourself a raise.
If they are stuck or came out with their best offer, ask if it would be an option after your first salary review.
Best of luck!