docs: function() {
  
              // Create container
              pgwSlideshow.plugin.removeClass('pgwSlideshow').removeClass(pgwSlideshow.config.mainClassName);
              pgwSlideshow.plugin.wrap('<div class="ps-list"></div>');
              pgwSlideshow.plugin = pgwSlideshow.plugin.parent();
  
              pgwSlideshow.plugin.wrap('<div class="' + pgwSlideshow.config.mainClassName + '"></div>');
              pgwSlideshow.plugin = pgwSlideshow.plugin.parent();
  
              pgwSlideshow.plugin.prepend('<div class="ps-current"><ul></ul><span class="ps-caption"></span></div>');
              pgwSlideshow.slideCount = pgwSlideshow.plugin.find('.ps-list > ul > li').length;
  
              if (pgwSlideshow.slideCount == 0) {
                  throw new Error('pgwSlideshow - No slider item has been found');
                  return false;
              }
  
              // Prev / Next icons
              if (pgwSlideshow.slideCount > 1) {
  
                  // Slider controls
                  if (pgwSlideshow.config.displayControls) {
                      pgwSlideshow.plugin.find('.ps-current').prepend('<span class="ps-prev"><span class="ps-prevIcon"></span></span>');
                      pgwSlideshow.plugin.find('.ps-current').append('<span class="ps-next"><span class="ps-nextIcon"></span></span>');
                      pgwSlideshow.plugin.find('.ps-current .ps-prev').click(function() {
                          pgwSlideshow.previousSlide();
                      });
                      pgwSlideshow.plugin.find('.ps-current .ps-next').click(function() {
                          pgwSlideshow.nextSlide();
                      });
                  }
  
                  // Touch controls for current image
                  if (pgwSlideshow.config.touchControls) {
  
                      pgwSlideshow.plugin.find('.ps-current').on('touchstart', function(e) {
                          try {
                              if (e.originalEvent.touches[0].clientX && pgwSlideshow.touchFirstPosition == null) {
                                  pgwSlideshow.touchFirstPosition = e.originalEvent.touches[0].clientX;
                              }
                          } catch(e) {
                              pgwSlideshow.touchFirstPosition = null;
                          }
                      });
  
                      pgwSlideshow.plugin.find('.ps-current').on('touchmove', function(e) {
                          try {
                              if (e.originalEvent.touches[0].clientX && pgwSlideshow.touchFirstPosition != null) {
                                  if (e.originalEvent.touches[0].clientX > (pgwSlideshow.touchFirstPosition + 50)) {
                                      pgwSlideshow.touchFirstPosition = null;
                                      pgwSlideshow.previousSlide();
                                  } else if (e.originalEvent.touches[0].clientX < (pgwSlideshow.touchFirstPosition - 50)) {
                                      pgwSlideshow.touchFirstPosition = null;
                                      pgwSlideshow.nextSlide();
                                  }
                              }
                          } catch(e) {
                              pgwSlideshow.touchFirstPosition = null;
                          }
                      });
  
                      pgwSlideshow.plugin.find('.ps-current').on('touchend', function(e) {
                          pgwSlideshow.touchFirstPosition = null;
                      });
                  }
              }
  
              // Get slideshow elements
              var elementId = 1;
              pgwSlideshow.plugin.find('.ps-list > ul > li').each(function() {
                  var element = getElement($(this));
                  element.id = elementId;
                  pgwSlideshow.data.push(element);
  
                  $(this).addClass('elt_' + element.id);
                  $(this).wrapInner('<span class="ps-item' + (elementId == 1 ? ' ps-selected' : '') + '"></span>');
                  
                  // Set element in the current list
                  var currentElement = $('<li class="elt_' + elementId + '"></li>');
  
                  if (element.image) {
                      currentElement.html('<img src="' + element.image + '" alt="' + (element.title ? element.title : '') + '">');
                  } else if (element.thumbnail) {
                      currentElement.html('<img src="' + element.thumbnail + '" alt="' + (element.title ? element.title : '') + '">');
                  }
  
                  if (element.link) {
                      currentElement.html('<a href="' + element.link + '"' + (element.linkTarget ? ' target="' + element.linkTarget + '"' : '') + '>' + currentElement.html() + '</a>');
                  }
  
                  pgwSlideshow.plugin.find('.ps-current > ul').append(currentElement);
  
                  $(this).css('cursor', 'pointer').click(function(event) {
                      event.preventDefault();
                      displayElement(element.id);
                  });
  
                  elementId++;
              });
  
              // Set list elements
              if (pgwSlideshow.config.displayList) {
                  setListWidth();
  
                  pgwSlideshow.plugin.find('.ps-list').prepend('<span class="ps-prev"><span class="ps-prevIcon"></span></span>');
                  pgwSlideshow.plugin.find('.ps-list').append('<span class="ps-next"><span class="ps-nextIcon"></span></span>');
                  pgwSlideshow.plugin.find('.ps-list').show();
              } else {
                  pgwSlideshow.plugin.find('.ps-list').hide();
              }
  
              // Attach slide events
              if (pgwSlideshow.config.autoSlide) {
                  pgwSlideshow.plugin.on('mouseenter', function() {
                      clearInterval(pgwSlideshow.intervalEvent);
                      pgwSlideshow.intervalEvent = null;
                  }).on('mouseleave', function() {
                      activateInterval();
                  });
              }
  
              // Disable current elements
              pgwSlideshow.plugin.find('.ps-current > ul > li').hide();
  
              // Display the first element
              displayElement(1);
  
              // Set the first height
              pgwSlideshow.plugin.find('.ps-current > ul > li.elt_1 img').on('load', function() {
                  setSizeClass();
  
                  var maxHeight = pgwSlideshow.plugin.find('.ps-current > ul > li.elt_1 img').height();
                  updateHeight(maxHeight);
              });
  
              // Enable slideshow
              setSizeClass();
              pgwSlideshow.plugin.show();
  
              return true;
          }