Guidance Please!

This is my setup…
mysetup.jpg
Both modems are connected to Adsl connections. Is there a way to change the default gateway of the router when the one dsl connection is down? Any guidance towards the solution is welcome, I’m not looking necessarily for a direct solution. thanks in advance.