jQuery(function($){


new EventList();
new BackToTop();

new SlideShow({
  root: '#navimage',
  box:  '#navimage ul',
  item: '#navimage li',
  prev: '#navimage .left',
  'next': '#navimage .right'
});

/* Dancer */
new OverlayBox({
  button: '#dancer-list .ajax-button',
  ajax_url: AJAX_BASE + "dancer",
  attrid: 'dancerid',
  width: 898,
  maxHeight: 650,
  topGap: 50,
  bottomGap: 50,
  overflow: 'auto',
  callback: function() {
    new SlideShow({
      root: '#navimage',
      box:  '#navimage ul',
      item: '#navimage li',
      prev: '#navimage .left',
      'next': '#navimage .right'
    });
  }
});

/* Shop */
new OverlayBox({
  button: '#shop-list .ajax-button',
  ajax_url: AJAX_BASE + "shop",
  attrid: 'shopid',
  width: 898,
  maxHeight: 650,
  topGap: 50,
  bottomGap: 50,
  overflow: 'auto',
  callback: function() {
    new SlideShow({
      root: '#navimage',
      box:  '#navimage ul',
      item: '#navimage li',
      prev: '#navimage .left',
      'next': '#navimage .right'
    });
  }
});

/* Video */
new OverlayBox({
  button: '#video-list .ajax-button',
  ajax_url: AJAX_BASE + "video",
  attrid: 'videoid',
  width: 640,
  maxHeight: 360,
  topGap: 50,
  bottomGap: 50,
  overflow: 'hidden',
  callback: function() {}
});

/* Home Video */
new AutoplayVideo();

/* About Gallery */
new AutoSlide({
  root:   '#showroom',
  box:    '#showroom .roller',
  roller: '#showroom ul'
});

});
