The amazon URL's are a bit tricker, since there are so many variations, but this is the basic structure:
Code:
http://rcm.amazon.com/e/cm?t=ZZZZZZZZZZ&o=1&p=8&l=as1&asins=XXXXXXXXXX&fc1=000000&lc1=0000ff&bc1=<1=_blank&IS2=1&bg1=ffffff&f=ifr
ZZZZZZZZZZ is the referral and
XXXXXXXXXX is the ASIN/ISBM number for the product, and the rest of the stuff after the ASIN often changes, depending on the category, and how the link was setup, but the first part up to the referral ID is always the same. It will be cool to see what you come up with