If you use one of the pins marked "Fan" on the main board for the +ve you'll find that the fan is only operational when the player is powered up. If it goes into sleep mode the fan will stop. I believe this is what most people that have fitted a fan have used (including myself).

There's quite an extensive thread about me fitting a fan. Here's a link to that thread (you'll find a photo of the Fan pins attached too).
_________________________
Marcus 32 gig MKII (various colours) & 30gig MKIIa