[jQuery] using jQuery with multiple libraries

[jQuery] using jQuery with multiple libraries


I'm currently trying to implement some jQuery functionality into a
site that is using other libraries: prototype and YUI to name a few.
I'm having problems getting my jquery code to execute properly. I've
read the documentation on jquery.com but i'm still receiving the error
message: "jQuery(document).ready is not a function".
If I remove the js file that loads the other libraries the code
executes fine. Unfortunately, this other js file is required and must
remain in the equation.
My code looks like this:
<code>
<script type="text/javascript">
        jQuery.noConflict();
        jQuery(document).ready(
            function()
                {
                    $("#header").click(
                        function()
                            {
                                alert('w00t');
                            }
                    );
                }
        );
    </script>
</code>
The part that really confuses me is that certain jquery functionality
works fine. I can change css properties, get widths and heights of
elements...but other functionality...like document.ready() don't work.
Can anyone clear this up for me?