; /* /bitrix/js/main/core/core_autosave.js*/
; /* /bitrix/js/main/core/core_popup.js*/
; /* /bitrix/js/main/core/core_tooltip.js*/
; /* /bitrix/js/main/core/core_fx.js*/
; /* /bitrix/js/main/core/core_date.js*/
; /* /bitrix/js/main/core/core_timer.js*/
; /* /bitrix/js/main/dd.js*/
; /* /bitrix/js/main/core/core_window.js*/
; /* /bitrix/js/main/utils.js*/
; /* /bitrix/js/main/core/core.js*/
; /* /bitrix/js/main/core/core_ajax.js*/
; /* /bitrix/js/main/json/json2.min.js*/
; /* /bitrix/js/main/core/core_ls.js*/
; /* /bitrix/js/main/session.js*/
; /* Start:/bitrix/js/main/core/core.js*/
/**********************************************************************/
/*********** Bitrix JS Core library ver 0.9.0 beta ********************/
/**********************************************************************/
;(function(window){
if (!!window.BX && !!window.BX.extend)
return;
var _bxtmp;
if (!!window.BX)
{
_bxtmp = window.BX;
}
window.BX = function(node, bCache)
{
if (BX.type.isNotEmptyString(node))
{
var ob;
if (!!bCache && null != NODECACHE[node])
ob = NODECACHE[node];
ob = ob || document.getElementById(node);
if (!!bCache)
NODECACHE[node] = ob;
return ob;
}
else if (BX.type.isDomNode(node))
return node;
else if (BX.type.isFunction(node))
return BX.ready(node);
return null;
};
// language utility
BX.message = function(mess)
{
if (BX.type.isString(mess))
{
if (typeof BX.message[mess] == "undefined")
{
BX.onCustomEvent("onBXMessageNotFound", [mess]);
if (typeof BX.message[mess] == "undefined")
{
BX.debug("message undefined: " + mess);
BX.message[mess] = "";
}
}
return BX.message[mess];
}
else
{
for (var i in mess)
{
if (mess.hasOwnProperty(i))
{
BX.message[i] = mess[i];
}
}
return true;
}
};
if(!!_bxtmp)
{
for(var i in _bxtmp)
{
if(_bxtmp.hasOwnProperty(i))
{
if(!BX[i])
{
BX[i]=_bxtmp[i];
}
else if(i=='message')
{
for(var j in _bxtmp[i])
{
if(_bxtmp[i].hasOwnProperty(j))
{
BX.message[j]=_bxtmp[i][j];
}
}
}
}
}
_bxtmp = null;
}
var
/* ready */
__readyHandler = null,
readyBound = false,
readyList = [],
/* list of registered proxy functions */
proxySalt = Math.random(),
proxyId = 1,
proxyList = [],
deferList = [],
/* getElementById cache */
NODECACHE = {},
/* List of denied event handlers */
deniedEvents = [],
/* list of registered event handlers */
eventsList = [],
/* list of registered custom events */
customEvents = {},
/* list of external garbage collectors */
garbageCollectors = [],
/* list of loaded CSS files */
cssList = [],
cssInit = false,
/* list of loaded JS files */
jsList = [],
jsInit = false,
/* browser detection */
bSafari = navigator.userAgent.toLowerCase().indexOf('webkit') != -1,
bOpera = navigator.userAgent.toLowerCase().indexOf('opera') != -1,
bFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') != -1,
bChrome = navigator.userAgent.toLowerCase().indexOf('chrome') != -1,
bIE = document.attachEvent && !bOpera,
/* regexps */
r = {
script: /