function displayGalleryListBox(slug,user,page,order) {
    
    url_xml_rpc = js_global_root_url+'rpc/call.php';
    var struct_param = new Object();
    struct_param['header'] = new Object();
    struct_param['header']['version'] = '1.0.0';
    struct_param['header']['product'] = 'gallery';
    struct_param['header']['sessid'] = sessid;
    struct_param['header']['dialect'] = 'json';
    iso_encoding = 'utf-8';
    
    try {
        struct_param['header']['type'] = 'get_photos_list_box';
        struct_param['query'] = new Object();
        struct_param['query']['slug'] = slug;
        struct_param['query']['user'] = user;
        struct_param['query']['page'] = page;
        struct_param['query']['order'] = order;
        
        $.ajax(setup(struct_param,
                     function(response) {
                         $('#photos').remove();
                         if(response['result']) {
                             $('#gallery_box')[0].innerHTML = response['result'];
                             $('input.star').rating({
                                 callback: 
                                     function(value, link) {
                                         //var photo_id_array = $(this).parents('.box_photo_rating').parents('.box_photo_content').parents('.box_photo').parents('.box_item').attr('id').split('photo_');
                                         //var photo_id = photo_id_array[1];
                                         
                                         var photo_id_array = $(this).attr('name').split('photo_rating_');
                                         var photo_id = photo_id_array[1];
                                         vote(photo_id,value,js_user_data_id);
                                     }
                             });
                         }
                         else {
                             $('#gallery_box').html("errore");
                         }
                     }));
        
    }
    catch(ex) {
        if(debug) {
            alert(ex);
        }
    }
}
