[jQuery] jquery + openx (via ajax) problem?

[jQuery] jquery + openx (via ajax) problem?


Hello,
I am trying to implement a code that will load a banner zone from
openx (openx.org), AFTER the rest of the site loads. I have the
invocation code (either javascript or php) but when I am calling the
code from a local file, for example testban.php (the php version), The
page loads but when it comes to load the banner it redirects to the
banner, instead of loading the banner to a div.
My Code is as follows:
on the $(document).write(function() {}); block I have included a
setTimeout("loadBanner()",1000); function, as the last line before
bracket closing.
immediately after the block ends, I declare my function as follows:
function loadBanner()
{
$("#banner").load("testban.php");
}
testban.php has the banner fetching code only.
The fetching banners have a <script type="text/javascript"></script>
declaration on them. Is this responsible for the new page opening?