Read my tutorial a few posts up, I made it for mobile devices, but the concept is the same, you can just skip the part about going to the full site, since you'll already be there.
And I assume you meant brickshelf is down, not bricklink, and just like a year ago, when it went down, I urge everyone to find an alternate hosting option, flickr being a good one.