﻿/* Scrip has to be included before the closing body-tags of the site 
 - ChannelInfo
    career 1,6
    about 1,7
    contact 1,8
    responsibility 1,9
    corp (search)  1,10 
*/
var MetrixLab_ForceData='1,6';
var MetrixLab_BasePath = ROOT_PATH + "framework/metrix_lab/" + PAGE_LANG + "/";


function metrixlab_onready(el, func){
	this.args = new Array(el, func);
	this.doTry = function(){try{var el = eval(this.args[0]);el.onload = this.args[1];el.onload();clearInterval(this.args[2]);}catch(e){}}
	this.doTry.bind = function(object){	var method = this;	return function(){method.apply(object);	}}
	this.args[2] = setInterval(this.doTry.bind(this), 250);
	return this;
}

new metrixlab_onready("document", function(){
	var metrixlab_body = top.document.getElementsByTagName('body').item(0);
	var metrixlab_script = top.document.createElement('script');
	metrixlab_script.setAttribute('defer','defer');
	metrixlab_script.src = MetrixLab_BasePath+'overlay.js';
	metrixlab_script.type='text/javascript';
	metrixlab_body.insertBefore(metrixlab_script, metrixlab_body.childNodes[0]);
});