How is this redirect done?

If you look at the code below and click on the first link, which looks like an image url, It redirects to another page.

How are they doing this?

 <td height="326"><a target="_blank" href="http://www.zazad-erebomi.com/230689/A6564BB/81533/19811df/4eb/b9f4/52fd/73323/68b7b/56ed.jpg" rel="nofollow">
            <img src="http://www.zazad-erebomi.com/230689/A6564BB/7806/54/1accaa2/7eeea1c3a4/0792c/3ff/c52a9.jpg" width="640" height="480" border="1">

They are probably using server side scripting to redirect the page but it looks rather dodgy to me.

Ugh, dodgy is an understatement.