var EPLICA_loggedin = DOM.hasClass(document.body, 'eplica-loggedin');

if (typeof(stepPageWidth) != "undefined") {
  // stepPageWidth.config = [1000];
  stepPageWidth.init();
}

if (typeof(collapseSections) != "undefined") {
  collapseSections.config.collapse.blockSel = "div.raduneytisel";
  collapseSections.init();
}

if (typeof(tabSwitcher) != "undefined") {
  delete tabSwitcher.config.tabbox;
  tabSwitcher.init();
}

if (typeof(blockPopper) != "undefined") {
  blockPopper.linkSelector = "a.help";
  blockPopper.init();
}

if (typeof(datePicker) != "undefined") {
  datePicker.init();
}



// Remove the temporary <style id="noContentFlashHack" /> element created by the file removeflicker.js
// running this function here gives faster results than hooking it to the window.onload event.
(function(){  
  var c = $("noContentFlashHack");
  if (c) { c.parentNode.removeChild(c); }
})();



if (typeof(defangResets) != "undefined") {
  autoValidate.init(); 
  defangResets.init();
}

if (typeof(popupLinks) != "undefined") {
  popupLinks.init();
}
if (typeof(fontSizer) != "undefined") {
  // fontSizer.config.maxSize = 4;
  fontSizer.init();
}

if (window.anchortags) {
  var conf = {
    domains : ['(www.)?stjornarrad.is', '[^/]*raduneyti.is' ]
  };
  anchortags.extensions['pdf'] = new RegExp(/pdf?/);
  anchortags.init(conf);
}


