1.  
  2. var addSlide = function(thumbUri, txt, bigPicUri, picId) {
  3. var slideContainer = new BiComponent();
  4. slideContainer.setSize(PIC_WIDTH, 400);
  5. var slide = new BiImage(thumbUri);
  6. slide.BigPicUri = bigPicUri;
  7. slide.PicId = picId;
  8. slide.setWidth(PIC_WIDTH);
  9. slide.setStyleProperty("position", "static");
  10. slideContainer.add(slide);
  11. pictureSliderPanel.add(slideContainer);
  12. ...
  13. }
  14. var loadPhotos = function(e) {
  15. ...
  16. addSlide(thumbUri, title, bigPicUri, id);
  17. ...
  18. };
  19. xmlLoader.addEventListener("load", loadPhotos);
  20.  
  21.