A service already exists for this --
http://psd2html.com . Not trying to dissuade you from doing it yourself, but you should take a look at them (I've used them in the past -- it's about $100-200 for basic pages, and was totally worth it as it saved me a few hours of work).