/*@cc_on/*@if(@_jscript_version<5.7)try{document.execCommand('BackgroundImageCache',0,1)}catch(e){}/*@end@*/

(function(){

  if (window.tabSwitcher)
  {
    tabSwitcher.config = {
      tabbox : {
        box         : 'div.tnav',
        tocitems    : 'ul li',
        anchorClass : 'stream',     // will default to 'stream' if this parameter is missing
        showFirst   : true,         // Should the first section default to 'open'?
        cssHide     : true          // Should the script hide the sections with theSection.style.display='none' (false) or with simple CSS class names (true); ??
      }
    };
    tabSwitcher.init();
  }

  if (!window.EPLICA_loggedin)
  {

    if (window.labelizor)
    {
      labelizor.init(['cf_name','cf_mail','cf_msg','subscremail']);
    }

    if (window.collapseSections)
    {
      collapseSections.config = {
        collapse : {
          blockSel    : 'div.qa',
          headSel     : 'strong',
          startOpen   : 0
        }
      };
      collapseSections.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.
  var c = DOM.$("noContentFlashHack");
  if (c) { c.parentNode.removeChild(c); }


  if (window.autoValidate)
  {
    autoValidate.init();
  }


})();
