variable link base on browser version

variable link base on browser version

Hi,

How do I do something like this?

If browser is IE7 do this link

Otherwise Do this link?

I kinda have an idea that it has something to do with $.browser();

But I don't know how it is done in practice?

Are there snippets for such code? Thanks