function applet() {};

applet.prototype.init	= function() {
  try {
    this.topPageObj = this.add(new pagination(), this.getField("_divTopPagination"), null, this, _pagination);
    this.topPageObj.handlePagination = this.handlePagination;
    this.topPageObj.setCSS("paginationCSS");
    this.topPageObj.render();
    
    this.botPageObj = this.add(new pagination(), this.getField("_divBottomPagination"), null, this, _pagination);
    this.botPageObj.handlePagination = this.handlePagination;
    this.botPageObj.setCSS("paginationCSS");
    this.botPageObj.render();
  } catch (e) {
     as.logs.addError(this.getFilename(), "'init' "+e);
  };
};

applet.prototype.handlePagination = function(params) {
  return "/portfolio/merchandises/"+as.info.mode+"/"+params.page+".htm";
};