/*
 * jQuery 1.2.3 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
 * $Rev: 4663 $
 */

$(function() {
  $(".aom_cb").parents("td")[0].className="aom_body";
  $(".aom_body").prev().addClass("aom_l_sidebar");
  $(".aom_body").next().addClass("aom_r_sidebar");

  var f=$("#aomext_footer").parent().html();
  if (f!=null) {
    $($("#aomext_footer").parents("table")[2]).remove();
    $(f).insertAfter($(".aom_body").parents("table")[0]);
  }

  if ($.browser.msie) {
    $(".aomext_cb").each(function(i) {
      div=$(this).parent().html();
      tbl=$(this).parents("table")[2];
      $(div).insertBefore($(tbl));
      $(tbl).remove();
    });
  } else {
    $(".aomext_cb").parent().css("padding","0");
  }
});