Oh nice :p
I had something really similar. But if IIRC ON Hotlink was updated and I haven't modified the script yet, so it doesn't work anymore :
Yeah here it is :P : http://www.hawkee.com/snippet/8903/