var showStep=null;

$(document).ready(function(){
/*  $('a.picturenavigator').remote('#contentbody', {hashPrefix: 'preview-'}, assignAjaxPreviewNavigation);

  $('a.pageritem').remote('#contentbody', {hashPrefix: 'page-'}, assignAjaxPager);*/
  $.ajaxHistory.initialize();
});

function assignAjaxPager() {
  $('a.pageritem').remote('#contentbody', {hashPrefix: 'page-'}, assignAjaxPager);

  $("#container").ScrollTo('normal');
}

function assignAjaxPreviewNavigation() {
  $('a.picturenavigator').remote('#contentbody', {hashPrefix: 'preview-'}, assignAjaxPreviewNavigation);

  if (typeof showStep == 'function') {
    showStep('base');
  }

  $("#container").ScrollTo('normal');
}
