123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
-
- Namespace.register("U.ME");
- U.ME.DH = function (UDOD, UTM, UTF, UDTD) {
- if (UDOD) {
- var i;
- var _UDE = UTM ? setInterval(U.M.apply(UDOD, [[U.ME.DHGDAMXG, [UTF, 0]]]), UTM) : null;
- UDOD.onmouseout = UDOD.onmouseover = U.M.apply(UDOD, [[U.ME.DHGDAM, [arguments, _UDE]]]);
- if (UDTD) {
- for (i = 0; i < UDTD.length; i++) {
- (UDTD[i]) && (UDTD[i].onclick = U.M.apply(UDTD[i], [[U.ME.DHQH, [i, arguments, _UDE]]]));
- };
- };
- }
- }
- U.ME.DHQH = function (ITF, UAE, UDE) {
- clearInterval(UDE);
- U.ME.DHGDAMXG.apply(UAE[0], [UAE[2], ITF]);
- U.ME.DH.apply(window, UAE);
- }
- U.ME.DHGDAM = function (USC, UDE) {
- if (!U.M.onmouseout(this)) {
- var _UTP = event.type;
- clearInterval(UDE);
- if (_UTP == "mouseout") {
- U.ME.DH.apply(window, USC);
- }
- }
- }
- U.ME.DHGDAMXG = function (UTF, ITF) {
- UTF = UTF == "L" ? "width" : "height";
- var _UFT = ITF === 0,
- _UDOD = $(this),
- _UDAD = _UDOD.Child(),
- _UDSD = _UDAD[_UFT ? 0 : _UDAD.length - 1],
- _UWH = "client" + (UTF.charAt(0).toUpperCase() + UTF.substr(1)),
- _UTP = [{ "overflow": "hidden" }, {}];
- if (_UDSD[_UWH]) {
- _UTP[0][UTF] = "0px"; _UTP[1][UTF] = _UDSD[_UWH] + "px";
- (_UFT) && (_UTP.reverse());
- $(_UDSD).addAttrArray({ "style": _UTP[0] }).animate(_UTP[1], 500, _UFT ? U.M.apply(null, [[U.M.apply(_UDOD, [[_UDOD.append, [_UDSD, 0]]])], [U.M.apply($(_UDSD), [[$(_UDSD).addAttrArray, [{ "style": _UTP[0]}]]])]]) : null);
- (!_UFT) && (this.insertBefore(_UDSD, _UDAD[0]));
- }
- }
- U.ME.YHT = function (UDOD, UDTD, UCL, ITF, UAT, ITM, UTF) {
- if (UDOD) {
- var i, _UDCD = $(UDTD).Child(),
- _UDE = [],
- _UKE = [ITF || 0],
- _UTM = null;
- if (ITM > 0) {
- _UTM = setInterval(U.M.apply(null, [[U.ME.YHTXZ, [UDOD, UDTD, _UKE, UCL]]]), ITM || 1000);
- }
- _UKE[1] = _UTM;
- if (!UTF) {
- U.ME.YHTXZ(UDOD, UDTD, _UKE, UCL);
- } else if (_UKE[0] >= _UDCD.length) {
- _UKE[0] = 0;
- };
- UTF = null;
- UDOD.onmouseover = UDOD.onmouseout = U.M.apply(UDOD, [[U.M.StopBubble], [U.ME.YHTQX, [arguments, _UTM, _UKE]]]);
- for (i = 0; i < _UDCD.length; i++) {
- _UDCD[i].onmouseover = _UDCD[i].onmouseout = U.M.apply(_UDCD[i], [[U.M.StopBubble], [U.ME.YHTQX, [arguments, _UTM, _UKE, i]]]);
- }
- if (UAT) {
- for (i = 0; i < 2; i++) {
- (UAT[i]) && (UAT[i].onclick = U.M.apply(UAT[i], [[U.ME.SXYHT, [(i - 1) * 2, _UKE, _UTM, arguments]]]));
- }
- }
- return _UTM;
- }
- }
- U.ME.YHTXZ = function (UDOD, UDTD, UDE, UCL) {
- var _UDAD = $(UDOD).Child();
- if ((!UDOD || UDOD) == (document || !_UDAD)) {
- clearInterval(UDE[1]);
- }
- else {
- U.ME.ZSYHTXZ(UDOD, UDTD, UDE, UCL);
- UDE[0]++; (UDE[0] >= _UDAD.length) && (UDE[0] = 0);
- }
- }
- U.ME.SXYHT = function (UTF, ITF, UTM, UCS) {
- var _UDCD = $(UCS[0]).Child();
- clearInterval(UTM); UCS[3] = (ITF[0] += UTF);
- if (ITF[0] < 0) {
- UCS[3] = _UDCD.length + UCS[3];
- }
- else if (ITF[0] >= _UDCD.length) {
- UCS[3] = 0;
- }
- U.ME.YHT.apply(this, UCS);
- }
- U.ME.YHTQX = function (UCS, UTM, UKE, ITF) {
- if (!U.M.onmouseout(this)) {
- var _UTP = event.type,
- i = UKE[0] - 1;
- clearInterval(UTM);
- i = i < 0 ? $(UCS[0]).Child().length - 1 : i;
- UCS[3] = UKE[0] = ITF != null ? ITF : UKE[0];
- if (_UTP == "mouseout") {
- UCS[3] = ITF != null ? ITF : i;
- UCS = Array.prototype.slice.call(UCS);
- UCS[6] = true; UCS[3]++;
- U.ME.YHT.apply(this, UCS);
- }
- else if ((ITF != null && (i != ITF))) {
- U.ME.ZSYHTXZ(UCS[0], UCS[1], UKE, UCS[2]);
- }
- }
- }
- U.ME.ZSYHTXZ = function (UDOD, UDTD, UDE, UCL) {
- var i, _UST,
- _UDAD = $(UDOD).Child(),
- _UDCD = UDTD ? $(UDTD).Child() : null;
- for (i = 0; i < _UDAD.length; i++) {
- $(_UDAD).addAttrArray({ "style": i == UDE[0] ? { "filter": "alpha(opacity=0)", "-moz-opacity": "0", "opacity": "0", "display": "block"} : { "display": "none"} }, i);
- if (UDTD) {
- _UST = _UDCD[i].className;
- _UDCD[i].className = _UST.replace(" " + UCL, "").replace(UCL, "") + (i == UDE[0] ? ((_UST ? " " : "") + UCL) : "");
- }
- }
- $(_UDAD[UDE[0]]).animate({ "-moz-opacity": "1", "opacity": "1", "filter": "alpha(opacity=100)" }, 500);
- }
- U.ME.LBTP = function (UDE) {
- var _UIE = UDE.i || 0,
- _UDOD = $(UDE.e),
- UDAD = _UDOD.Child();
- if (UDAD.length && UDE["s"]) {
- $(UDAD[_UIE]).addAttrArray(UDE["s"]);
- U.Ut.AddObj(UDE, { a: UDAD, i: UDE.i || 0, p: UDE.p || _UDOD.Parent(), w: UDE.w || 1 });
- return new U.ME.LBTPF(UDE);
- }
- }
- U.ME.LBTPF = function (UDE) {
- U.Ut.AddObj(this, UDE);
- this.init();
- $(UDE.a).bind("click", U.M.apply(this, this.click));
- }
- U.ME.LBTPF.prototype = {
- init: function () {
- (this.UTI) && (clearInterval(this.UTI));
- this.UTI = setInterval(U.M.apply(this, this.time), this.t || 5000);
- },
- click: function (UIE) {
- var _UDOD, _UDPD,
- _UIE = (UIE != null && !isNaN(Number(UIE)));
- if (_UIE) {
- _UIE = this.i + UIE;
- } else {
- _UDOD = event.srcElement;
- while (_UDOD && (_UDPD = _UDOD.parentNode) != this.e) {
- _UDOD = _UDPD;
- }
- _UIE = this.a.indexOf(_UDOD);
- }
- if (_UIE != -1 && _UIE != null) { this.time(_UIE); this.init(); }
- },
- time: function (UIE) {
- if (this.a[0] && this.a[0].parentNode == this.e) {
- var i, _ULT, _UAE, _UDOD,
- _UDPD = this.p,
- _UDAD = this.a,
- _UL = _UDAD.length,
- _UIE = this.i;
- if (UIE == null) {
- this.i += this.w;
- if (_UIE == _UL - 1) {
- this.w = -1; this.i = _UL - 2;
- } else if (!_UIE) {
- this.i = this.w = 1;
- }
- } else {
- this.i = UIE;
- }
- $(_UDAD[_UIE]).addAttrArray(this.h);
- $((_UDOD = _UDAD[this.i])).addAttrArray(this.s);
- if (this.af) {
- this.af(this);
- }
- else {
- _UAE = [_UDPD.scrollLeft, _UDPD.offsetWidth, _UDOD.offsetLeft - this.e.offsetLeft, _UDOD.offsetWidth];
- if (_UAE[0] + _UAE[1] < _UAE[2]) {
- _ULT = _UAE[2] + _UAE[3] * 2 - _UAE[1];
- } else if (_UAE[2] < _UAE[0]) {
- _ULT = _UAE[2] - _UAE[3] * 2;
- }
- (_ULT != null) && ($(_UDPD).animate({ "scrollLeft": _ULT }, 100));
- };
- (this.cb) && (this.cb());
- }
- else {
- clearInterval(this.UTI);
- }
- }
- }
|