Call Picasa album images with script and display using another script
===

The first script calls the images from Picasa albums. The second one is for a supersized script and the images are retrieved from inside the script. How do I call the images from the first script to fill the image slots in the second script? Thanks

    <script type="text/javascript">
    $(document).ready(function(){
     $.ajax({
                type: "GET",
                url: "http://webapi.snapbatch.com/api/PcEscape?username=xxxxxxxxx&password=xxxxxxxxx&albumId=xxxxxxxxxxxxxxx",
                dataType: "jsonp",
                success: function (result) {
    $.each(result, function(i) {
          $('image').append('<li><a><img src="loop%20item"/></a><li>');
                    });                 }
            });
    });
    </script>
    <script type="text/javascript">           
    jQuery(document).ready(function($) {

    $('#header_pane').toggle(function(){
            $(this).addClass('closed').animate({top: 0}, 300);
            $('.header').slideUp(300);
            $('#slide_info_container').animate({top: 32}, 300);
        }, function () {
            $(this).removeClass('closed').animate({top: 76}, 300);
            $('.header').slideDown(300);
            $('#slide_info_container').animate({top: 107}, 300);
    });
   
    $('#slide_info_toggle').toggle(function(){
            $(this).addClass('closed');
            $('#slidecaption, #slidedescription').hide();
        }, function () {
            $(this).removeClass('closed');
            $('#slidecaption, #slidedescription').show();
    });

    $.supersized({
        autoplay                :   1,

        // Functionality
        slide_interval          :   4500,        // Length between transitions
        transition              :   1,             // 0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
        transition_speed    :   600,        // Speed of transition

        // Components                           
        slide_links        :   'blank',    // Individual links for each slide (Options: false, 'num', 'name', 'blank')
        slides             :   [            // Slideshow Images
                                    {image : 'images/supersized/slides/slide_01.jpg', title : 'Why do we use it?', desc: 'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using Content here, content here, making it look like readable English.', thumb : 'images/supersized/thumb/slide_01_thb.jpg'},