Hello I believe I'm attempting the same thing, and have a few further questions. Specifically this is for connecting a 27" iMac to a Samsung 46" tv.
I thought I had the video portion down when I bought this cord:
http://www.amazon.com/gp/product/B0002J28NQ/ref=oss_product
I still think that may be the right cord. It connects fine to this Apple adaptor cord that came with the computer... I have two of them in fact. However the smaller end of the cord is not the same as what is on this Apple adaptor cord:
http://store.apple.com/us/product/MB570Z/A?fnode=MTY1NDA3Ng&mco=MTA4NDU0ODY
I think is the one I used, it has all the pins inside the little end.
http://store.apple.com/us/product/M9320G/A?fnode=MTY1NDA3Ng&mco=MTA4NDU0OTc
I have purchased this audio cord as well which I'm confident is fine, though hasn't arrived yet:
http://www.amazon.com/gp/product/B000067RBT/ref=oss_product
Could someone help me sort out the video side though?!?! THANK YOU