"use strict";

if ( icl_vars.loadLanguageJs ) {
  var icl_lang = icl_vars.current_language;
  var icl_home = icl_vars.icl_home;

  window.addLoadEvent = function(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
      window.onload = func;
    } else {
      window.onload = function() {
        if (oldonload) {
          oldonload();
        }
        func();
      }
    }
  }
}


