$(init);

function init() {

  $("form.userform").each(
    function() {
      FormRegistry.init($(this));
    }
  );

  if ($.browser.msie) {
    $("object, embed, applet").each(
      function() {
        this.outerHTML = this.outerHTML;
      }
    );
    try {
      document.execCommand("BackgroundImageCache", false, true);
    }
    catch(err) {}
  }

  blockHeight();
  $("#sitemap li:last").addClass("last");

}


function blockHeight() {

  if ($("#col-a div.box")[0].offsetHeight > $("#col-b div.box")[0].offsetHeight) {
    $("#col-b div.box").css({height: $("#col-a div.box")[0].offsetHeight + 'px'});
  }
  else {
    $("#col-a div.box").css({height: $("#col-b div.box")[0].offsetHeight + 'px'});
  }

}
