$(function()
{
  $("#sizes div.contentTop").each(function()
  {
    var p = $(this);
    var info = [];
    
    $("a", p).each(function(i)
    {
      var el = $(this);
      var dest = $("#" + el.attr("href").substr(1));
      info.push(dest);
      
      if (i > 0) dest.hide();
      el.click(function()
      {
        $.each(info, function(i, n)
        {
          n.hide();
        });
        
        dest.show();
        return false;
      });
    });
  });
  
  $("#sizes").accordion({
    autoHeight: false,
    header: "a.outer"
  });
});