2 Wan fail-tolerance configuration!

Hello I’m beginner and need some info.
I have a RouterOS machine with two WAN and one LAN interfaces. I want to provide fail tolerance to my LAN clients. How can I do this?
Thank you in advance.

http://aacable.wordpress.com/2011/07/27/mikrotik-dual-wan-load-balancing-using-pcc-method-complete-script-by-zaib/

If you are trying to do an easy failover then all you need to specify are 2 default gateways. The second with a higher distance than the first.

/ip route
add check-gateway=ping distance=1 dst-address=0.0.0.0/0 gateway=WAN1IPaddress
add check-gateway=ping distance=10 dst-address=0.0.0.0/0 gateway=WAN2IPaddress