(function(){ try { var test = window.top.Vitrine; } catch(e) { return; } try{ var VitrineBlock = window.top.Vitrine.blocks[222]; if(typeof(VitrineBlock) == 'undefined') throw 'exception'; (function(){ if(VitrineBlock.workingStatus){ setTimeout(arguments.callee, 100); } else{ var scriptTag = document.createElement('script'); scriptTag.text = '\ function selectLocationDesignStarter(currentDocument, blockId, locationId){\ try{\ window.top.Vitrine.selectLocationDesign(currentDocument, blockId, locationId);\ }\ catch(e){\ setTimeout(function(){ selectLocationDesignStarter(currentDocument, blockId, locationId); }, 200);\ }\ }\ selectLocationDesignStarter(document, 222, 297);\ '; document.getElementsByTagName('head')[0].appendChild(scriptTag); } })(); } catch(e){ if(typeof(window.top.Vitrine) == 'undefined'){ window.top.Vitrine = new Object(); window.top.Vitrine.blocks = []; } window.top.Vitrine.blocks[222] = new Object(); window.top.Vitrine.blocks[222].workingStatus = true; var divsin = document.getElementsByTagName('div'); for (var i in divsin){ if(i == parseInt(i, 10) && ((typeof divsin[i] == 'object') && (divsin[i].getAttribute('block') == 222 && divsin[i].getAttribute('location') == 297) || (divsin[i].getAttribute('id') && divsin[i].getAttribute('id').toLowerCase() == 'b222xl297'))) { var loaderScriptTag = document.createElement('script'); loaderScriptTag.charset = 'utf-8'; loaderScriptTag.src = 'http://loader.promoblocks.ru/loader_v2.php?block=222&location=297&ver=2'; document.getElementsByTagName('head')[0].appendChild(loaderScriptTag); break; } } /* функция для кроссбраузерного биндинга на событие DOMContentLoaded*/ (function(i) { if(document.readyState == "complete" || document.readyState == "interactive"){ i(); } var u = navigator.userAgent.toLowerCase(); var ie = /*@cc_on!@*/false; if (/webkit/.test(u)) { // safari timeout = setTimeout(function(){ if ( document.readyState == "loaded" || document.readyState == "complete" ) { i(); } else { setTimeout(arguments.callee,10); } }, 10); } else if ((/mozilla/.test(u) && !/(compatible)/.test(u)) || (/opera/.test(u))) { // opera/moz document.addEventListener("DOMContentLoaded",i,false); } else if (ie) { // IE (function (){ var tempNode = document.createElement('document:ready'); try { tempNode.doScroll('left'); i(); tempNode = null; } catch(e) { setTimeout(arguments.callee, 0); } })(); } else { window.onload = i; } })(function(){ window.top.Vitrine.DOMLoaded = true;}); } }());