Content based loadbalancing

Suppose that i have 2 WAN,s and i want content based load balancing to be more exact port based load-balancing,

I want that
Downloads(.zip,.exe,.mp3,.flv,.mp4 …etc) on port 80 and torrent+video streaming & some applications using specific ports goes through WAN1
All other traffic like real-time voip,skype and VNC,team viewer goes through WAN2

and both WAN,s are fail-over on each other E.g if WAN2 goes down then all traffic goes through WAN1 and vice versa.

how it is possible.


VER 6.xx