Hi Lucemia, The problem your having is that window in plugins is not referring to the same thing as javascript in a page. I used this page to guide me: http://developer.mozilla.org/en/docs/Code_snippets:On_page_load In that example they use doc to refer to the document. So $("body",doc) would select the body.
Hope that helps. ~Sean