function init_pricing()
{

  //hide a bunch of stuff if javascript is enabled. these things should show up only if the user doesnt have JS
  $('standard_landscape_tab_pane').hide();
  $('bw_textbook_tab_pane').hide();
  $('standard_portrait_tab_pane').hide();
  $('big_tab_pane').hide();
  $('large_square_tab_pane').hide();
  $$('.update_prices_submit').invoke( 'hide' );
  $('tabrow').show();
  $('slick-price').setStyle({borderTop:'none'});

  //removes anchor tags if javascript is enabled
  //if js is enabled, we are switching tabs based on the location hash
  //if js is disabled, we are jumping down the page to the appropriate anchor
  $$('.no_js_anchor').each(function(element) {
    element.remove();
  });

  if(window.location.hash.substr(1) == 'square') { switchTab('square'); }
  if(window.location.hash.substr(1) == 'bw-text') { switchTab('bw_textbook'); }
  if(window.location.hash.substr(1) == 'standard-portrait') { switchTab('standard_portrait'); }
  if(window.location.hash.substr(1) == 'standard-landscape') { switchTab('standard_landscape'); }
  if(window.location.hash.substr(1) == 'large-format-landscape') { switchTab('big'); }
  if(window.location.hash.substr(1) == 'large-square') { switchTab('large_square'); }

}

function switchTab(which)
{

  if (!(which == "squarebook" || which == "big" || which == "standard_landscape" || which == "bw_textbook" || which == "standard_portrait" || which == "large_square" ))
  {
    which = "squarebook";
  }

  $('squarebook').removeClassName('selected');
  $('big').removeClassName('selected');
  $('bw_textbook').removeClassName('selected');
  $('standard_landscape').removeClassName('selected');
  $('standard_portrait').removeClassName('selected');
  $('large_square').removeClassName('selected');

  $(which).addClassName('selected');

  $('squarebook_tab_pane').hide();
  $('standard_portrait_tab_pane').hide();
  $('bw_textbook_tab_pane').hide();
  $('standard_landscape_tab_pane').hide();
  $('big_tab_pane').hide();
  $('large_square_tab_pane').hide();

  $(which + '_tab_pane').show();

  return false;

}
