I am using Jquery UI ajax tabs to display the content on my site. The tabs are working great. On each on of my Ajax tabs I have an image rotator that is not working so great.

The image rotator requires jquery to work properly. All of the jquery image rotator plugin files seem to be working fine except for this code...

Code:
            jQuery(document).ready(function($) {


            var banner1 = $('#banner-rotator1').royalSlider({
                imageAlignCenter:true,
                imageScaleMode: "fill",

                hideArrowOnLastSlide:true,
                slideSpacing:20,

                autoScaleSlider: true,
                autoScaleSliderWidth: 1150,
                autoScaleSliderHeight: 400
            }).data("royalSlider");             


            var banner2 = $('#banner-rotator2').royalSlider({
                imageAlignCenter:true,
                imageScaleMode: "fill",

                hideArrowOnLastSlide:true,
                slideSpacing:20,

                autoScaleSlider: true,
                autoScaleSliderWidth: 1150,
                autoScaleSliderHeight: 400
            }).data("royalSlider");  

            var banner3 = $('#banner-rotator3').royalSlider({
                imageAlignCenter:true,
                imageScaleMode: "fill",

                hideArrowOnLastSlide:true,
                slideSpacing:20,

                autoScaleSlider: true,
                autoScaleSliderWidth: 1150,
                autoScaleSliderHeight: 400
            }).data("royalSlider");

            var banner4 = $('#banner-rotator4').royalSlider({
                imageAlignCenter:true,
                imageScaleMode: "fill",

                hideArrowOnLastSlide:true,
                slideSpacing:20,

                autoScaleSlider: true,
                autoScaleSliderWidth: 1150,
                autoScaleSliderHeight: 400
            }).data("royalSlider");
        });
I know the code works because if I cut and paste it into the ajax pages it works fine, but I can't seem to get the image rotator to work when the code is placed in the "master page". Does anyone have any idea what I am doing wrong?

Here is a link to my page http://dl.dropbox.com/u/14080718/Aja...-stripped.html