Placing Scripting?

I have an all Flash web site, published in html and I have a java scripted advertisement that I want to add to my site. Problem is I don’t know where to add the scripting in my html source. If anyone could help me I would appreciate it…it would save me a lot of tutorial searching.

Thanks
KyMrn