var st = document.createElement('style'); st.type = 'text/css'; st.innerHTML = "#TJaFc { display: none; background: url(\'//prre.ru/im5/16035620-16694.jpg\') no-repeat 50% 0%; background-size: 100%;}#dMxwf { position: fixed; z-index: 1000; background: url(\'//prre.ru/im5/l16035620-85531.jpg\') no-repeat 100% 0%}#wqdZN { position: fixed; z-index: 1000; background: url(\'//prre.ru/im5/r16035620-85531.jpg\') no-repeat 0% 0%}.af #wqdZN a { max-height:1100px; }.af #dMxwf a { max-height:1100px; }"; document.getElementsByTagName('head')[0].appendChild(st); var promoitm = document.getElementById('n6'); promoitm.innerHTML+='
'; promoitm.innerHTML+='
'; (function() { if ($==undefined || jQuery!=undefined) { var $=jQuery; } function updateMarck() { if (typeof(prrContenWidth)=='undefined') { prrContenWidth = 1010 } var dx=0; var len = ($(document).width()-prrContenWidth)/2; if (len<1) { $('#dMxwf').css({display: 'none'}); $('#wqdZN').css({display: 'none'}); return; } else { $('#dMxwf').css({display: 'block'}); $('#wqdZN').css({display: 'block'}); } var dh = $(document).height(); var rp = prrContenWidth+len; // if ($.browser.msie) { // len-=10; // dx=10 // } $('#dMxwf').css({width: len+'px'}); $('#wqdZN').css({width: len+'px'}); $('#dMxwf').css({right: len+'px', left: 0}); $('#wqdZN').css({left: (len+prrContenWidth)+'px'}); $('#dMxwf img').css({width: len+'px', height: dh+'px'}); $('#wqdZN img').css({width: (len+dx)+'px', height: dh+'px'}); } var reUADV=40; function reUAD() { updateMarck(); if (reUADV--) setTimeout(reUAD,500); } $(document).ready(function(){ updateMarck(); setTimeout(reUAD,500); }); $(window).resize(function(){ updateMarck(); }); })();