Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var _sec1_=1568644;
  2. var _sec2_=1568644;
  3. var _fname_='25X600.php';
  4. var _scroll_=false;
  5. var _maxads_=251;
  6. var _mintop_=30;
  7. var _maxtop_=300;
  8. var _virtualcenter_=250;
  9. var _SID_ = 0,
  10.     _RID_ = 0,
  11.     _ASL_ = 0,
  12.     _ASR_ = 0,
  13.     _NUM_ = 0,
  14.     _DCW_ = 0,
  15.     _DCH_ = 0,
  16.     _TLM_ = 0,
  17.     _TRM_ = 0;
  18. window.onDomReady = DomReady;
  19.  
  20. function DomReady(fn) {
  21.     if (document.addEventListener && (navigator.appName != "Microsoft Internet Explorer")) document.addEventListener("DOMContentLoaded", fn, false);
  22.     else document.onreadystatechange = function () {
  23.         readyState(fn)
  24.     }
  25. }
  26. function readyState(fn) {
  27.     if (document.readyState == "complete") fn()
  28. }
  29. function _sDetect_() {
  30.     var tmp1, tmp2, top;
  31.     for (var i = 1; i <= _NUM_; i++) {
  32.         if (tmp1 = document.getElementById("VIF%" + i)) {
  33.             if (i == 1) top = _TLM_ + _mintop_;
  34.             else top = _TRM_ + _mintop_;
  35.             if (navigator.appName == "Microsoft Internet Explorer") tmp2 = document.documentElement.scrollTop;
  36.             else tmp2 = window.pageYOffset;
  37.             if ((tmp2 + tmp1.offsetHeight) < _DCH_) {
  38.                 if (tmp2 > top) tmp1.style.top = tmp2 + _mintop_ + "px";
  39.                 else tmp1.style.top = top + "px"
  40.             } else {
  41.                 top = _DCH_ - tmp1.offsetHeight;
  42.                 if (top < _mintop_) tmp1.style.top = _mintop_ + "px";
  43.                 else tmp1.style.top = top + "px"
  44.             }
  45.         }
  46.     }
  47. }
  48. function _rDetect_() {
  49.     function cM(a, b) {
  50.         return ((a == 0 && b >= 120) || (a == 120 && b >= 160))
  51.     }
  52.     if (_DCW_ != document.documentElement.clientWidth) {
  53.         _DCW_ = document.documentElement.clientWidth;
  54.         var mL = _sML_(_DCW_),
  55.             mR = _sMR_(_DCW_);
  56.         if ((_ASL_ && mL < _ASL_) || (_ASR_ && mR < _ASR_)) _aSMain_();
  57.         else if (cM(_ASL_, mL) || (cM(_ASR_, mR) && _maxads_ > 1)) _aSMain_();
  58.         else if (_NUM_) {
  59.             var tmp;
  60.             for (var i = 1; i <= _NUM_; i++) {
  61.                 tmp = document.getElementById("VIF%" + i);
  62.                 if (tmp.offsetLeft < _DCW_ / 2) tmp.style.left = ((mL - _ASL_) / 2) + "px";
  63.                 else tmp.style.left = (_DCW_ - mR + (mR - _ASR_) / 2) + "px"
  64.             }
  65.         }
  66.     }
  67. }
  68. function _sML_(mL) {
  69.     var tmpMin = 0,
  70.         tmpTop = 0,
  71.         tmpBest = 0;
  72.     if (_virtualcenter_) return ((_DCW_ - _virtualcenter_) / 2);
  73.     for (var i = 0; i < document.body.childNodes.length; i++) {
  74.         if (_tN_(i)) {
  75.             tmpMin = document.body.childNodes[i].offsetLeft;
  76.             if (tmpMin < 120) {
  77.                 tmpTop = document.body.childNodes[i].offsetTop;
  78.                 if (tmpTop >= tmpBest) tmpBest = tmpTop + document.body.childNodes[i].offsetHeight
  79.             } else if (tmpMin < mL) mL = tmpMin
  80.         }
  81.     }
  82.     _TLM_ = tmpBest;
  83.     if (tmpBest <= _maxtop_) return (mL);
  84.     else
  85.     return (0)
  86. }
  87. function _sMR_(mR) {
  88.     var tmpMin = 0,
  89.         tmpTop = 0,
  90.         tmpBest = 0;
  91.     if (_virtualcenter_) return ((_DCW_ - _virtualcenter_) / 2);
  92.     for (var i = 0; i < document.body.childNodes.length; i++) {
  93.         if (_tN_(i)) {
  94.             tmpMin = _DCW_ - document.body.childNodes[i].offsetLeft - document.body.childNodes[i].offsetWidth;
  95.             if (tmpMin < 120) {
  96.                 tmpTop = document.body.childNodes[i].offsetTop;
  97.                 if (tmpTop >= tmpBest) tmpBest = tmpTop + document.body.childNodes[i].offsetHeight
  98.             } else if (tmpMin < mR) mR = tmpMin
  99.         }
  100.     }
  101.     _TRM_ = tmpBest;
  102.     if (tmpBest <= _maxtop_) return (mR);
  103.     else
  104.     return (0)
  105. }
  106. function _tN_(n) {
  107.     var tmp = document.body.childNodes[n].nodeName;
  108.     return (tmp == "TABLE" || tmp == "DIV" || tmp == "OBJECT" || tmp == "IMG")
  109. }
  110. function _aSMain_() {
  111.     function dF(t, u) {
  112.         var s1 = unescape(NN.substr(0, NN.length - 1));
  113.         var s2 = '';
  114.         for (var i = 0; i < s1.length; i++) s2 += String.fromCharCode(s1.charCodeAt(i) - NN.substr(NN.length - 1, 1));
  115.         return (unescape(s2) + u + _fname_ + "?section=" + t)
  116.     }
  117.     function cNE(NE, AS, S, TM) {
  118.         _NUM_++;
  119.         NE.style.position = "absolute";
  120.         NE.style.height = "630px";
  121.         NE.style.width = AS + "px";
  122.         NE.style.top = TM + _mintop_ + "px";
  123.         NE.scrolling = "no";
  124.         NE.id = "VIF%" + _NUM_;
  125.         NE.frameBorder = "no";
  126.         NE.MARGINWIDTH = 0;
  127.         NE.style.backgroundColor = "Transparent";
  128.         NE.allowTransparency = "true";
  129.         NE.src = dF(S, AS)
  130.     }
  131.     var tmp;
  132.     var NN = "kwws%286D22dgv51phgldvkdnhuv1frp2lg23";
  133.     if (_SID_) {
  134.         clearInterval(_SID_);
  135.         _SID_ = 0
  136.     }
  137.     if (_RID_) {
  138.         clearInterval(_RID_);
  139.         _RID_ = 0
  140.     }
  141.     for (var i = 1; i <= _NUM_; i++) if (tmp = document.getElementById("VIF%" + i)) document.body.removeChild(tmp);
  142.     _ASL_ = 0;
  143.     _ASR_ = 0;
  144.     _NUM_ = 0;
  145.     _DCW_ = document.documentElement.clientWidth;
  146.     _DCH_ = document.body.offsetHeight;
  147.     var mL = _sML_(_DCW_),
  148.         mR = _sMR_(_DCW_);
  149.     if (_maxads_ && (mL >= 120)) {
  150.         if (mL < 160) _ASL_ = 120;
  151.         else _ASL_ = 160;
  152.         var NEL = document.createElement("IFRAME");
  153.         cNE(NEL, _ASL_, _sec1_, _TLM_);
  154.         NEL.style.left = ((mL - _ASL_) / 2) + "px";
  155.         document.body.insertBefore(NEL, document.body.firstChild)
  156.     }
  157.     if ((_maxads_ > 1) && (mR >= 120)) {
  158.         if (mR < 160) _ASR_ = 120;
  159.         else _ASR_ = 160;
  160.         var NER = document.createElement("IFRAME");
  161.         cNE(NER, _ASR_, _sec2_, _TRM_);
  162.         NER.style.left = (_DCW_ - mR + (mR - _ASR_) / 2) + "px";
  163.         document.body.insertBefore(NER, document.body.firstChild)
  164.     }
  165.     if (_NUM_ && _scroll_) _SID_ = setInterval("_sDetect_()", 100);
  166.     _RID_ = setInterval("_rDetect_()", 500)
  167. }
  168. if (_maxads_ > 2) _maxads_ = 2;
  169. if (!(navigator.userAgent.match(/(iphone|ipod|android|opera mini|blackberry|nokia|up.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|pocket|kindle|mobile|pda|psp|treo)/i))) window.onDomReady = _aSMain_();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement