Height Maps and Detail Texturing

Im texturing a 512x512 height map using auto coord generation and just one big texture.

How do I apply a detail texture in it?

Lot of thanks