if (typeof(initFontSizer) != "undefined") {
  initFontSizer();
}

if (typeof(initPopupLinks) != "undefined") {
  initPopupLinks();
}

if (typeof(fixPagebodyHeight) != "undefined") {
  Event.add(window, "load", fixPagebodyHeight);
}

if (typeof(marqueeblock) != "undefined") {
  marqueeblock.config.imglinklist = {
    container       : "div.imglinklist",
    scrollblock     : "ul",
    stepsize        : 1,      // px
    speed           : 33,     // ms/step
    mouseoverPause  : true,   //
    scrollto        : "left"  // top, bottom, left, right
  };
  Array.forEach(DOM.get('div.imglinklist h3'), DOM.removeNode);
  delete marqueeblock.config.marquee;
  Event.add(window, "load", function() {
    marqueeblock.init(); 
  });

}

if (typeof(zebraLists) != "undefined")
{
  zebraLists.includes = {
    "table.zebra" : { 
      items : "tr",
      subClasses : {
        "attr" : 1
      },
      excludeClasses : {
        "subtotal" : 1,
        "total" : 1,
        "th"    : 1
      },
      oddClass : "alt",
      handle : "zebra"
    }
  };
  zebraLists.init();
}


if(typeof(autoValidate) != "undefined")
{
  /* place autoValidator config and extensions here */

  defangForm.resetButtons.init(); // make "reset" buttons more safe
  autoValidate.init();            // automaticall
}
