Blending two textures on one material during runtime?

I want to make a day-night cycle, and everything is already setup exept the skydome. I have a texture for day and one for night. Is there a way to blend this two textures dynamically (if possible with animation) without having two different skydomes (one for day and one for night). I already tried this with having one slightly in front and animating the alpha object color then, but this caused problems with the alpha of other objects.

Thanks for your help.

You can do it with nodes by a simple mix node with lamp energy factor from lamp data node. Or python with with video texture ImageMix.

So depending on the lamp energie it would automatically change the blending? That would be cool.

Ok got it. Thanks a lot it is awesome!