Flash detection

i was just wondering, on the tutorial on flash detection http://www.kirupa.com/developer/mx/detection.htm on the second code, do i still have to put this code in the body, or did that code already cover that

<object width=“100%” height=“100%” align=“center”>
<param name=“movie” value=“intro.swf”>
<embed src=“intro.swf” width=“100%” height=“100%”>
</embed>
</object>

I think you have to place both codes in <HEAD></HEAD>.