Quick question about Kirupa's Flash Detection script

Hi,
Kirupa’s flash detection script to swap swf for image looks ideal for what I want.

My question: can I place the whole script in a table cell or does some of it need to go into the head?