//2010-06-29 Replaced all $ references due to problems with other js libraries (prototype.js used by Fredhopper suggest)
var d = window["Spif"] = {
e: "undefined",
f: "*",
g: " ",
h: "none",
j: "threadStart",
k: "threadEnd",
l: "beforeChangeClassName",
m: "afterChangeClassName",
n: "beforeHtmlChanged",
o: "afterHtmlChanged",
r: "beforeAction",
t: "afterElementActivation",
v: "linkExecuteRequest",
w: 400,
z: "load",
B: "click",
C: "keydown",
D: "keypress",
F: "DXImageTransform.Microsoft.Alpha",
G: true,
H: false,
I: "-delay",
J: (typeof (window.opera) != "undefined"),
K: (navigator.userAgent.indexOf("MSIE") != -1) && !window.opera,
L: ((navigator.userAgent.indexOf("Gecko") != -1) && (navigator.appVersion.indexOf("AppleWebKit") == -1)),
M: (navigator.appVersion.indexOf("AppleWebKit") != -1) && (typeof (XMLHttpRequest) != "undefined"),
MM: (navigator.appVersion.indexOf("AppleWebKit") != -1) && (typeof (XMLHttpRequest) == "undefined"),
N: (!((navigator.userAgent.indexOf("MSIE") != -1) && !window.opera) || (document.compatMode == "CSS1Compat"))
};
d["isIE"] = d.K;
d["isOpera"] = d.J;
d["isGecko"] = d.L;
d["isSafari"] = d.M;
d["DEFAULTMORPHDURATION"] = d.w;
d["SUPPRESSEVENTS"] = d.G;
d["FIREEVENTS"] = d.H;
d["defineDefaultScatterType"] = d.O;
d.P = {
Q: function (R, delay, S, T) {
if (delay >= 0)
return setTimeout(this.U(R, S, T), delay);
else {
R.apply(S || window, T || []);
return null;
}
},
V: function(R, W, S, T) {
return setInterval(this.U(R, S, T), W);
},
U: function(R, S, T) {
return function() {
d.X.Y(d.j, null, null);
R.apply(S || window, T || []);
d.X.Y(d.k, null, null);
};
},
Z: function(_Z, ZZ, aZ) {
var s = d.P.bZ(_Z, ZZ, "", true);
return s ? Function("a", "b", "c", "d", "e", "return " + s + "(a, b, c, d, e);") : aZ;
},
bZ: function(_Z, ZZ, cZ, dZ, eZ) {
return this.fZ(_Z, ZZ, cZ, dZ, eZ).gZ[0];
},
HZ: function(_Z, ZZ, cZ, dZ, eZ) {
return this.fZ(_Z, ZZ, cZ, dZ, eZ).gZ;
},
fZ: function(_Z, ZZ, cZ, dZ, eZ) {
var iZ = {
gZ: [],
_Z: null
};
var jZ;
do {
if (!(jZ = d.kZ.match(_Z, ZZ + "-[\\w-]+")))
_Z = _Z.parentNode;
}
while (!jZ && !dZ && _Z && _Z.nodeType == 1);
if (jZ)
for (var i = 0; i < jZ.length; i++) {
var s = jZ[i].substring(ZZ.length + 1);
if (!eZ || !eZ[s]) {
iZ.gZ.push(s);
iZ._Z = _Z;
}
}
if ((cZ != null) && (iZ.gZ.length == 0))
iZ.gZ[0] = cZ;
return iZ;
},
LZ: function(_Z, mZ, nZ, dZ) {
var jZ;
do {
jZ = d.kZ.match(_Z, mZ + "-?\\d+");
_Z = _Z.parentNode;
}
while (!dZ && _Z && _Z.nodeType == 1 && !jZ);
return (jZ ? parseInt(jZ[0].substring(mZ.length)) : nZ);
},
OZ: function(a) {
var pZ = {};
for (var i = 0; i < a.length; i++)
pZ[a[i]] = 1;
return pZ;
},
qZ: function(_Z, rZ, sZ) {
var tZ = _Z.uZ;
if (!tZ)
tZ = _Z.uZ = {};
tZ[rZ] = sZ;
},
vZ: function(_Z, rZ) {
var tZ = _Z.uZ;
if (!tZ)
return null;
else
return tZ[rZ];
}
};
d.P.platform = (d.K ? "ie" : (d.L ? "gecko" : (d.J ? "opera" : (d.M ? "safari" : "unknown"))));
Function.prototype.wZ = function(S) {
if (!d.xZ) {
d.xZ = [];
d.yZ = [];
d.zZ = [];
}
var aZ = this;
var bZ = S.cZ;
if (!bZ)
d.xZ[bZ = S.cZ = d.xZ.length] = S;
var dZ = aZ.eZ;
if (!dZ)
d.yZ[dZ = aZ.eZ = d.yZ.length] = aZ;
if (!d.zZ[bZ])
d.zZ[bZ] = [];
var fZ = d.zZ[bZ][dZ];
if (fZ)
return fZ;
S = null;
aZ = null;
return d.zZ[bZ][dZ] = function() {
return d.yZ[dZ].apply(d.xZ[bZ], arguments);
};
};
if (!Array.prototype.push) {
Array.prototype.push = function() {
for (var i = 0; i < arguments.length; i++)
this[this.length] = arguments[i];
};
}
if (!Function.prototype.apply) {
Function.prototype.apply = function(S, T) {
S.gZ = this;
var HZ = S.gZ(T[0], T[1], T[2], T[3], T[4]);
S.gZ = null;
return HZ;
}
}
d["Utils"] = d.P;
d.P["setTimeoutHandler"] = d.P.Q;
d.P["setIntervalHandler"] = d.P.V;
d.iZ = {
jZ: 1,
kZ: {},
LZ: function(_Z) {
if (!_Z.id) {
var id = "qid_" + this.jZ++;
_Z.id = id;
this.kZ[id] = true;
}
return _Z.id;
},
mZ: function(_Z) {
var nZ = [];
if (_Z.id && !this.kZ[_Z.id])
nZ[0] = _Z;
var OZ = _Z.getElementsByTagName(d.f);
var pZ = OZ.length;
for (var i = 0; i < pZ; i++) {
var _Z = OZ[i];
if (_Z.id && !this.kZ[_Z.id])
nZ[nZ.length] = _Z;
}
return nZ;
},
qZ: function(_Z, rZ) {
while (_Z && _Z.nodeType == 1) {
if (d.kZ.contains(_Z, rZ))
return _Z;
_Z = _Z.parentNode;
}
},
sZ: function(tZ, uZ) {
if (d.K)
return tZ.contains(uZ);
while (uZ) {
if (tZ == uZ)
return true;
else
uZ = uZ.parentNode;
}
return false;
},
vZ: function(wZ, xZ) {
if (!wZ || !xZ || wZ == xZ)
return wZ || xZ;
while (wZ) {
if (this.sZ(wZ, xZ))
return wZ;
wZ = wZ.parentNode;
}
},
yZ: function(_Z) {
if (d.K)
return _Z.style.cssText;
else
return _Z.getAttribute("style");
},
zZ: function(_Z, s) {
if (d.K)
_Z.style.cssText = s;
else
_Z.setAttribute("style", s);
}
};
d.kZ = {
Za: /\s+/,
aa: {},
ba: {},
ca: function(rZ, da, W) {
if (this.ba[rZ])
alert("Warning in ClassNameAbstraction.addClassNameSequence: a classNameSequence has already been defined for '" + rZ + "'.");
if (typeof (W) == d.e)
W = 1.1 * d.w;
this.ba[rZ] = {
da: da,
ea: "(" + da.join("-" + rZ) + "-" + rZ + "|" + rZ + ")",
W: W
};
},
contains: function(_Z, rZ) {
return this.fa(_Z.className, rZ);
},
fa: function(s, rZ) {
return s && (s.match(this.ga(rZ)) != null);
},
match: function(_Z, rZ) {
return _Z.className.match(this.ga(rZ));
},
add: function(_Z, ha, ia) {
if (!this.contains(_Z, ha)) {
if (this.ba[ha]) {
this.ja(_Z, null, ha, 0, ia);
return;
}
var ka = _Z.className;
var la = ka + d.g + ha;
this.ma(_Z, ka, la, ia);
}
},
replace: function(_Z, na, ha, ia, oa) {
if (!this.contains(_Z, na))
return;
if (this.ba[na])
na = this.ba[na].ea;
if (!oa && this.ba[ha]) {
this.ja(_Z, na, ha, 0, ia);
return;
}
var ka = _Z.className;
var la = this.pa(ka, na, ha);
this.ma(_Z, ka, la, ia);
},
pa: function(s, qa, ra) {
var sa = this.ga(qa);
var ta = s.replace(sa, ra);
if (!ta.match(this.ga(ra)))
ta += d.g + ra;
return ta;
},
ua: function(_Z, va, wa, ia, oa) {
if (this.contains(_Z, wa)) {
var xa = va;
va = wa;
wa = xa;
}
this.replace(_Z, va, wa, ia, oa);
},
remove: function(_Z, na, ia) {
if (this.ba[na])
na = this.ba[na].ea;
var sa = this.ga(na);
var ka = _Z.className;
var la = ka.replace(sa, "");
this.ma(_Z, ka, la, ia);
},
ya: function(_Z, la, ia) {
this.ma(_Z, _Z.className, la, ia);
var za = la.split(this.Za);
for (var i = 0; i < za.length; i++) {
var rZ = za[i];
if (this.ba[rZ]) {
this.ja(_Z, rZ, rZ, 0, ia);
return;
}
}
},
Aa: null,
Ba: function() {
this.Aa = {
Ca: null,
setData: []
};
},
Da: function() {
var Ea = this.Aa;
this.Aa = null;
if (Ea.setData.length > 0) {
Fa = Ea.Ga;
Ha = Ea.Ca.className;
var Ia = this.Ja(Fa, Ha, false);
d.X.Y(d.l, Ea.Ca, Ia);
for (var i = 0; i < Ea.setData.length; i++) {
var Ka = Ea.setData[i];
this.ma(Ka._Z, Ka.ka, Ka.la, d.H, true);
}
d.X.Y(d.m, Ea.Ca, Ia);
}
},
La: new RegExp("\\s([-+])([\\w-]+)|\\s(\\/)([^ /]+)\\/([^\\s/]+)", "g"),
Ma: function(Na, Oa) {
var Pa = " " + Na;
(" " + Oa).replace(
this.La,
function(Qa, Ra, Sa, Ta, Ua, Va) {
switch (Ta || Ra) {
case "-":
case "/":
Pa = Pa.replace(new RegExp(" " + (Ua || Sa), "g"), " " + (Va || ""));
break;
case "+":
Pa += " " + Sa;
}
}
);
return Pa.substring(1);
},
ga: function(rZ) {
return this.aa[rZ] || (this.aa[rZ] = new RegExp("\\b" + rZ + "\\b", "g"));
},
ma: function(_Z, ka, la, ia, Wa) {
if (la == ka)
return;
if (this.Aa) {
var Xa = d.iZ.vZ(this.Aa.Ca, _Z);
if (Xa != this.Aa.Ca) {
this.Aa.Ca = Xa;
this.Aa.Ga = Xa.className;
}
this.Aa.setData.push(
{
_Z: _Z,
ka: ka,
la: la
}
);
return;
}
if (!ia) {
var Ya = this.Ja(ka, la, Wa);
d.X.Y(d.l, _Z, Ya);
}
_Z.className = la;
if (!ia)
d.X.Y(d.m, _Z, Ya);
if (d.K) {
if (_Z.getAttribute("tabIndex", 2) == 0) {
_Z.tabIndex = -1;
setTimeout(function() { _Z.tabIndex = 0; }, 0);
}
}
},
ja: function(_Z, na, rZ, Za, ia) {
var data = this.ba[rZ];
var da = data.da;
var ha = da[Za] + "-" + rZ;
d.P.qZ(_Z, d.w, data.W);
if (na && this.contains(_Z, na))
this.replace(_Z, na, ha, ia, true);
else
this.add(_Z, ha, ia, true);
var _b = this;
if (Za < da.length - 1)
d.P.Q(function() { _b.ja(_Z, ha, rZ, Za + 1, ia); }, data.W);
else
d.P.Q(function() { if (_b.contains(_Z, ha)) _b.replace(_Z, ha, rZ, ia, true); }, data.W);
},
Ja: function(ka, la, Wa) {
var Zb = ka.split(this.Za);
var ab = la.split(this.Za);
var bb = {};
for (var i = 0; i < Zb.length; i++)
bb[Zb[i]] = 1;
var cb = [];
for (var i = 0; i < ab.length; i++)
if (!bb[ab[i]])
cb.push(ab[i]);
var db = [];
for (var i = 0; i < Zb.length; i++)
if (!cb[Zb[i]])
db.push(Zb[i]);
return { fromValue: ka, toValue: la, db: db, cb: cb, Wa: Wa };
}
};
d["ClassNameAbstraction"] = d.kZ;
d.kZ["addClassNameSequence"] = d.kZ.ca;
d.kZ["contains"] = d.kZ.contains;
d.kZ["add"] = d.kZ.add;
d.kZ["replace"] = d.kZ.replace;
d.kZ["toggle"] = d.kZ.ua;
d.kZ["remove"] = d.kZ.remove;
d.kZ["set"] = d.kZ.ya;
d.eb = {
fb: function(gb, hb, R, S) {
var ib = this.jb(gb, R, S, hb);
if (gb.addEventListener)
gb.addEventListener(hb, ib, false);
else
gb.attachEvent("on" + hb, ib);
},
jb: function(gb, R, S, hb) {
return function(kb) {
d.X.Y(d.j, kb);
kb = d.eb.lb(kb);
if (kb.type == d.B) {
if (d.L && kb.mb)
return;
}
var HZ = false;
this.nb = R;
var HZ = this.nb(kb, gb);
this.nb = null;
d.X.Y(d.k, kb);
d.ob = false;
return HZ;
} .wZ(S || gb);
},
pb: function() {
this.preventDefault();
this.stopPropagation();
if (d.M && this.type == d.B) {
var _Z = this.subject;
while (_Z && _Z.nodeName != "A")
_Z = _Z.parentNode;
if (_Z) {
_Z.qb = _Z.href;
_Z.href = "javascript://";
setTimeout(function() { _Z.href = _Z.qb; }, 10);
}
}
},
rb: function() {
this.returnValue = false;
},
sb: function() {
this.cancelBubble = true;
},
iev: function () {
var qrv = -1;
if (d.K) {
var qre = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
if (qre.exec(navigator.userAgent) != null) qrv = parseFloat(RegExp.$1);
}
return qrv;
},
lb: function (kb) {
if (d.K) {
kb.subject = kb.srcElement;
if (this.iev() < 9.0) kb.preventDefault = this.rb;
kb.stopPropagation = this.sb;
}
else {
kb.subject = kb.target || kb.currentTarget;
if (kb.subject && kb.subject.nodeType == 3)
kb.subject = kb.subject.parentNode;
}
kb.cancel = this.pb;
switch (kb.type) {
case d.B:
case "mousedown":
case "mouseup":
case "mousemove":
kb.tb = (d.K ? (this.iev() < 9.0 ? kb.button == 1 : kb.button == 0) : kb.button == 0);
kb.mb = kb.button == 2;
break;
case d.C:
case "keyup":
case d.D:
if (d.L && kb.subject == document.documentElement)
kb.subject = document.body;
break;
}
return kb;
}
};
d["DOMEvents"] = d.eb;
d.eb["attach"] = d.eb.fb;
d.X = {
ub: {},
vb: function(hb, R, S) {
var wb = this.ub[hb] = this.ub[hb] || [];
wb[wb.length] = { R: R, S: S };
},
Y: function(hb, subject, xb) {
var wb = this.ub[hb];
if (!wb)
return true;
var kb = xb || {};
kb.type = hb;
kb.subject = subject;
var HZ = true;
for (var i = wb.length - 1; i >= 0; i--) {
var R = wb[i];
HZ = (R.R.apply(R.S || subject, [kb]) != false) && HZ;
}
return HZ;
}
};
d["CustomEvents"] = d.X;
d.X["listen"] = d.X.vb;
d.X["fire"] = d.X.Y;
d.yb = {
zb: "A",
Ab: function() {
d.X.vb(d.m, this.Bb, this);
d.X.vb(d.o, this.Cb, this);
},
Bb: function(kb) {
if (kb.cb.length > 0 && d.X.Y(d.r, kb.subject))
this.Db(kb.subject, kb.cb);
},
Cb: function(kb) {
if (d.X.Y(d.r, kb.subject))
this.Db(kb.subject, [d.z]);
},
Db: function(Eb, Fb) {
for (var i = 0; i < Fb.length; i++)
d.X.Y("on" + Fb[i], Eb);
var Gb = "\\bon" + Fb.join("\\b|\\bon") + "\\b";
var Hb = Eb.getElementsByTagName(this.zb);
var Ib = Hb.length;
for (var i = 0; i < Ib; i++) {
var Jb = Hb[i];
if (d.kZ.contains(Jb, Gb))
d.X.Y(d.v, Jb);
}
}
};
d.yb.Ab();
d.Kb = {
Lb: [],
Mb: null,
Nb: {},
Ob: {},
Pb: null,
Qb: null,
Rb: false,
Ab: function() {
d.eb.fb(document.documentElement, d.B, this.Sb, this);
d.eb.fb(document.documentElement, (d.K ? d.C : d.D), this.Sb, this);
},
Tb: function(rZ, R, S) {
this.Ub(rZ, R, S, true);
},
Vb: function(rZ, R, S) {
this.Ub(rZ, R, S, false);
this.Rb = true;
},
Ub: function(rZ, R, S, Wb) {
this.Lb[this.Lb.length] = rZ;
this.Nb[rZ] = { R: R, S: S };
this.Ob[rZ] = Wb;
this.Lb = this.Lb.sort().reverse();
this.Mb = new RegExp("(\\b" + this.Lb.join("\\b)|(\\b") + "\\b)|(\\b[\\w\\-]+\\b|\\s+)", "g");
},
Sb: function(kb) {
this.Qb = (kb.type == d.B || kb.keyCode == 13 || kb.keyCode == 32);
if (!this.Rb && !this.Qb)
return;
this.Pb = kb;
var OZ = [];
for (var _Z = kb.subject; _Z && _Z.nodeType == 1; _Z = _Z.parentNode)
OZ[OZ.length] = _Z;
for (var i = OZ.length - 1; i >= 0; i--) {
this.Xb = OZ[i];
if (this.Xb.className)
this.Xb.className.replace(this.Mb, this.Yb);
}
},
Yb: function() {
if (!arguments[arguments.length - 3]) {
var _b = d.Kb;
for (var i = 1; i < arguments.length - 3; i++)
if (arguments[i]) {
var rZ = _b.Lb[i - 1];
if (_b.Qb || !_b.Ob[rZ]) {
if (d.X.Y(d.r, _b.Xb)) {
var R = _b.Nb[rZ];
R.R.apply(R.S || _b.Xb, [_b.Xb, arguments[i], _b.Pb]);
}
return;
}
}
}
}
};
d.Kb.Ab();
d.Zb = {
_c: [],
Zc: "",
ac: {},
bc: {},
cc: [],
Ab: function() {
d.eb.fb(document.documentElement, d.B, this.dc, this);
d.eb.fb(document.documentElement, d.D, this.ec, this);
d.X.vb(d.v, this.fc, this);
},
gc: function(hc, S) {
this.cc.push({ R: hc, S: S });
},
ic: function(jc, kc, hc, S) {
var lc = "(" + kc.join("|") + ")";
for (var i = 0; i < jc.length; i++) {
var mc = jc[i];
this._c[this._c.length] = mc;
this.ac[mc] = lc;
this.bc[mc] = { R: hc, S: S };
}
this.Zc = "(" + this._c.join("|") + ")";
},
dc: function(kb) {
this.fc(kb);
},
ec: function(kb) {
if (kb.keyCode == 32 || kb.keyCode == 13)
this.fc(kb);
},
fc: function(kb) {
var jc;
var _Z = kb.subject;
while (_Z && _Z.nodeType == 1) {
if (kb.type == d.D && _Z.nodeName == "A")
return;
if ((jc = d.kZ.match(_Z, this.Zc)) && d.X.Y(d.r, _Z))
for (var i = 0; i < jc.length; i++) {
var mc = jc[i];
if (!mc)
continue;
var nc = this.oc(_Z, mc);
if (!nc || !nc._Z || !d.X.Y(d.r, nc._Z))
continue;
var R = this.bc[mc];
R.R.apply(R.S || _Z, [_Z, mc, nc._Z, nc.pc, kb]);
}
if (_Z.nodeName == "A") {
for (var i = 0; i < this.cc.length; i++) {
var R = this.cc[i];
R.R.apply(R.S || _Z, [_Z, kb]);
}
if (kb.cancel && _Z.getAttribute("href", 2).charAt(0) == "#")
kb.cancel();
}
_Z = _Z.parentNode;
}
},
oc: function(qc, mc) {
var rc = this.sc(qc, mc);
if (rc) {
var tc = d.kZ.match(rc, this.ac[mc]);
return { _Z: rc, pc: (tc ? tc[0] : null) };
}
},
sc: function(qc, mc) {
var uc = qc.href;
if (uc)
var vc = uc.split("#")[1];
if (vc)
return document.getElementById(vc);
for (; qc != document.documentElement; qc = qc.parentNode)
if (d.kZ.match(qc, this.ac[mc]))
return qc;
}
};
d.Zb.Ab();
d.X.vb(
d.r,
function(kb) {
return !d.iZ.qZ(kb.subject, "actions-disabled");
}
);
wc = {};
d.X.vb(
d.r,
function(kb) {
var HZ = true;
var _Z = kb.subject;
var xc = d.P.LZ(_Z, "minactioninterval", 0, true);
if (xc > 0) {
var yc = d.iZ.LZ(_Z);
var zc = +new Date();
var Ac = wc[yc];
HZ = !Ac || (zc > Ac + xc);
if (HZ)
wc[yc] = zc;
}
return HZ;
}
);
d.Bc = {
Cc: "exclusive",
Dc: "allexclusive",
Ec: "delayexclusive",
Fc: {},
Gc: {},
Hc: {},
Ic: {},
Jc: {},
Kc: {},
Ab: function() {
d.X.vb(d.m, this.Bb, this);
},
Lc: function(jc, Mc, Nc, Oc) {
var Pc = Mc[Mc.length - 1];
for (var i = 0; i < jc.length; i++) {
var mc = jc[i];
var Qc = Mc[i];
this.Hc[Pc] = Qc;
this.Ic[Qc] = Pc;
Pc = Qc;
this.Fc[mc] = Qc;
this.Gc[Qc] = mc;
}
if (Nc) {
jc[jc.length] = Nc;
this.Jc[Nc] = true;
this.Fc[Nc] = Mc[0];
}
if (Oc) {
jc[jc.length] = Oc;
this.Kc[Oc] = true;
this.Fc[Oc] = Mc[0];
}
d.Zb.ic(jc, Mc, this.Rc, this);
},
Bb: function(kb) {
var Sc = [];
for (var i = 0; i < kb.cb.length; i++)
this.Tc(kb.subject, kb.cb[i], Sc);
for (var i = Sc.length - 1; i >= 0; i--)
this.Uc(Sc[i]);
},
Rc: function(qc, mc, rc, Vc) {
var Sc = [];
this.Wc(Sc, mc, rc, Vc);
d.kZ.Ba();
for (var i = Sc.length - 1; i >= 0; i--)
this.Uc(Sc[i]);
d.kZ.Da();
},
Wc: function(Sc, mc, rc, Vc) {
var Xc = this.Fc[mc];
if (this.Jc[mc]) {
Xc = this.Hc[Vc];
mc = this.Gc[Xc];
}
else if (this.Kc[mc]) {
Xc = this.Ic[Vc];
mc = this.Gc[Xc];
}
if (!d.kZ.contains(rc, Xc)) {
Sc[Sc.length] = {
mc: mc,
rc: rc,
Yc: Vc,
Xc: Xc,
delay: -1
};
this.Tc(rc, Xc, Sc);
}
},
Tc: function(rc, Xc, Sc) {
var Zc, _d;
if (d.iZ.qZ(rc, this.Cc + Xc))
_d = rc.parentNode.childNodes;
else if (Zc = d.iZ.qZ(rc, this.Dc + Xc))
_d = Zc.getElementsByTagName(d.f);
if (_d) {
var Zd = this.Hc[Xc];
var ad = this.Gc[Zd];
var bd = _d.length;
for (var i = 0; i < bd; i++) {
var cd = _d[i];
if (cd.nodeType != 1 || cd == rc || !d.kZ.contains(cd, Xc))
continue;
if (!d.X.Y(d.r, cd))
continue;
if (Sc.length > 0 && Sc[Sc.length - 1].delay == -1)
Sc[Sc.length - 1].delay = d.P.LZ(rc.parentNode, this.Ec, -1);
this.Wc(Sc, ad, cd, Xc);
}
}
},
Uc: function(ed) {
d.P.Q(
function() {
d.kZ.replace(ed.rc, ed.Yc, ed.Xc, d.H);
},
ed.delay
);
}
};
d.Bc.Ab();
d["Behaviors"] = d.Bc;
d.Bc["addStateSequence"] = d.Bc.Lc;
d.Bc.Lc(["collapser", "expander"], ["collapsed", "expanded"], "expandcollapser");
d.Bc.Lc(["opener", "closer"], ["open", "close"], "opencloser");
d.Bc.Lc(["selector", "unselector"], ["selected", "unselected"], "selectionswitch");
d.Bc.Lc(["shower", "hider"], ["shown", "hidden"], "showswitch");
d.Bc.Lc(["activator", "inactivator"], ["active", "inactive"], "activationswitch");
d.Bc.Lc(["focuser", "blurrer"], ["focus", "blur"], "focusswitch");
d.Bc.Lc(["onswitch", "offswitch"], ["on", "off"], "onoffswitch");
d.Bc.Lc(["upper", "downer"], ["up", "down"], "updowner");
d.Zb.ic(
["classchanger"],
[],
function(qc, x, rc) {
d.P.Q(
function() {
d.kZ.ya(rc, d.kZ.Ma(rc.className, qc.className));
},
d.P.LZ(qc, d.I, -1)
);
}
);
d.fd =
{
gd: "afterElementDeactivation",
hd: "active",
jd: "activation-inert",
kd: null,
ld: [],
md: [],
nd: [],
od: [],
pd: null,
qd: null,
rd: null,
sd: {},
Ab: function() {
this.Lc("inactive", "active");
this.Lc("blur", "focus");
d.eb.fb(document.documentElement, d.B, this.ud, this);
d.eb.fb(document.documentElement, "keyup", this.ud, this);
d.X.vb(d.m, this.Bb, this);
},
Lc: function(vd, wd, xd) {
this.md.push(vd);
this.nd.push(wd);
if (xd) {
this.od.push(vd);
this.od.push(wd);
}
this.pd = this.md.join("|");
this.qd = this.nd.join("|");
this.rd = this.od.join("|");
this.yd = this.md.join("|") + "|" + this.nd.join("|");
this.sd[vd] = wd;
this.sd[wd] = vd;
},
Bb: function(kb) {
if (!d.kZ.fa(kb.fromValue, this.qd) && d.kZ.fa(kb.toValue, this.qd))
this.ud(kb);
else if (d.kZ.fa(kb.fromValue, this.qd) && !d.kZ.fa(kb.toValue, this.qd)) {
var _Z = kb.subject;
var zd = [];
for (var i = 0; i < this.ld.length; i++) {
var Ad = this.ld[i];
if (d.iZ.sZ(_Z, Ad))
zd.push(Ad);
}
this.Bd(zd);
for (var i = 0; i < this.ld.length; i++)
if (this.ld[i] == zd[0]) {
this.ld.splice(i, this.ld.length);
break;
}
}
},
ud: function(kb) {
var _Z = kb.subject;
if (_Z != this.kd) {
this.kd = _Z;
if (d.iZ.qZ(_Z, this.jd)) {
if (kb.cancel)
kb.cancel();
return;
}
var Cd = [];
try {
for (; _Z.nodeType == 1; _Z = _Z.parentNode)
if (d.kZ.contains(_Z, this.yd))
Cd.push(_Z);
}
catch (err) { }
Cd.reverse();
var zd = [];
for (var i = 0; i < this.ld.length; i++)
if (this.ld[i] != Cd[i]) {
for (var Dd = this.ld.length - 1; Dd >= i; Dd--)
zd.push(this.ld[Dd]);
break;
}
this.Bd(zd);
var Ed = [];
var Fd = [];
for (var Dd = i; Dd < Cd.length; Dd++) {
var _Z = Cd[Dd];
if (d.kZ.contains(_Z, this.rd))
Fd.push(_Z);
else
Ed.push(_Z);
d.P.qZ(_Z, this.hd, true);
}
if (Fd.length > 0)
if (zd.length > 0) {
var _b = this;
d.P.Q(function() { _b.Gd(Fd); }, d.w / 1.5);
}
else
this.Gd(Fd);
if (Ed.length > 0)
this.Gd(Ed);
this.ld = Cd;
}
},
Bd: function(OZ) {
for (var i = 0; i < OZ.length; i++)
this.Hd(OZ[i], this.qd, this.gd);
},
Gd: function(OZ) {
for (var i = 0; i < OZ.length; i++)
if (d.P.vZ(OZ[i], this.hd))
this.Hd(OZ[i], this.pd, d.t);
},
Hd: function(_Z, Id, Jd) {
if (d.X.Y(d.r, _Z)) {
var Kd = d.kZ.match(_Z, Id);
if (Kd)
for (var i = 0; i < Kd.length; i++) {
var Ld = Kd[i];
d.kZ.replace(_Z, Ld, this.sd[Ld]);
d.X.Y(Jd, _Z);
}
}
}
};
d.fd.Ab();
d.Md = {
Nd: 500,
Od: null,
Pd: [],
Qd: [],
Rd: null,
Sd: null,
Td: 0,
Ud: {},
Vd: null,
sd: {},
Wd: {},
Ab: function() {
this.Lc("mouseout", "mouseover", false);
this.Lc("unhover", "hover", true);
this.Lc("neverhovered", "", false);
d.eb.fb(document, "mouseover", this.Xd, this);
d.X.vb(d.t, this.Xd, this);
},
Lc: function(Yd, Zd, _e) {
this.Pd.push(Yd);
this.Qd.push(Zd);
this.Ze = this.Pd.join("\\b|\\b");
this.ae = this.Qd.join("\\b|\\b");
this.sd[Yd] = Zd;
this.sd[Zd] = Yd;
this.Wd[Yd] = _e;
this.Wd[Zd] = _e;
},
Xd: function(kb) {
var _Z = kb.subject;
if (this.Td > 0) {
var be = {};
var ce = false;
for (var id in this.Ud) {
var de = this.Ud[id]._Z;
if (!d.iZ.sZ(de, _Z)) {
if (d.X.Y(d.r, de)) {
var Yd = this.Ud[id].Yd;
var Zd = this.sd[Yd];
if (this.Wd[Zd]) {
be[id] = {
_Z: de,
Zd: Zd,
Yd: Yd
};
ce = true;
}
else
this.ee(de, id, Zd, Yd);
}
}
}
if (ce)
this.fe(be);
}
while (_Z && _Z.nodeType == 1) {
var ge = d.kZ.match(_Z, this.Ze);
if (ge) {
for (var i = 0; i < ge.length; i++) {
var Yd = ge[i];
if (this.Wd[Yd])
this.he();
if (!d.X.Y(d.r, _Z))
continue;
d.kZ.replace(_Z, Yd, this.sd[Yd]);
this.Ud[d.iZ.LZ(_Z)] = {
_Z: _Z,
Yd: Yd
};
this.Td++;
}
}
_Z = _Z.parentNode;
}
},
fe: function(be) {
if (!this.Vd)
this.Vd = be;
else
for (var id in be)
this.Vd[id] = be[id];
if (this.Od)
clearTimeout(this.Od);
this.Od = d.P.Q(this.he, this.Nd, this);
},
he: function() {
for (var id in this.Vd) {
var ie = this.Vd[id];
this.ee(ie._Z, id, ie.Zd, ie.Yd);
}
this.Vd = null;
if (this.Od) {
clearTimeout(this.Od);
this.Od = null;
}
},
ee: function(de, id, Zd, Yd) {
if (Zd && Yd)
d.kZ.replace(de, Zd, Yd);
delete this.Ud[id];
this.Td--;
}
};
d.Md.Ab();
d["Hover"] = d.Md;
d.Md["addStateSequence"] = d.Md.Lc;
d.je = {
ke: 1,
le: 2,
me: 3,
ne: 4,
oe: 5,
pe: 6,
qe: 7,
re: 8,
se: 9,
te: null,
Ab: function() {
if (!d.N)
this.ue = this.ve;
if (d.K) {
this.we = this.xe;
this.ye = this.ze;
}
this.te = {
"borderWidth": this.le,
"borderTopWidth": this.le,
"borderRightWidth": this.le,
"borderBottomWidth": this.le,
"borderLeftWidth": this.le,
"width": this.me,
"height": this.me,
"scrollTop": this.ne,
"scrollLeft": this.ne,
"color": this.oe,
"backgroundColor": this.oe,
"borderColor": this.oe,
"borderTopColor": this.oe,
"borderRightColor": this.oe,
"borderBottomColor": this.oe,
"borderLeftColor": this.oe,
"opacity": this.pe,
"zoom": this.qe,
"display": this.re,
"overflow": this.re,
"position": this.re,
"visibility": this.re,
"zIndex": this.se
};
this.Ae = {};
this.Ae[this.ke] = "px";
this.Ae[this.le] = "px";
this.Ae[this.me] = "px";
this.Ae[this.ne] = "px";
this.Ae[this.oe] = "";
this.Ae[this.pe] = "%";
this.Ae[this.qe] = "%";
this.Ae[this.re] = "";
this.Ae[this.se] = "";
},
ve: {
"width": ["offsetWidth"],
"height": ["offsetHeight"]
},
ue: {
"width": ["offsetWidth", "paddingLeft", "paddingRight"],
"height": ["offsetHeight", "paddingTop", "paddingBottom"]
},
Be: {
"width": ["height", "offsetHeight"],
"height": ["width", "offsetWidth"]
},
Ce: function(_Z, rZ) {
var De = this.we(_Z, rZ);
return this.ye(_Z, rZ, De).value;
},
we: function(_Z, rZ, Ee) {
var Fe = this.Ge(rZ);
var He = document.defaultView.getComputedStyle(_Z, "");
switch (this.Ie(rZ)) {
case this.me:
if (d.J) {
var Je = this.ue[rZ];
var sZ = _Z[Je[0]];
for (var i = 1; i < Je.length; i++)
sZ -= parseInt(_Z.currentStyle[Je[i]]);
return Math.max(0, sZ);
}
case this.le:
if (He.getPropertyValue(Fe.replace(/width/, "style")) == d.h)
return 0;
case this.se:
case this.ke:
case this.qe:
case this.pe:
return He.getPropertyValue(Fe);
case this.ne:
return _Z[rZ];
break;
case this.oe:
if (
Fe.indexOf("border") != -1
&& He.getPropertyValue(Fe.replace(/color/, "style")) == d.h
)
return null;
case this.re:
return He.getPropertyValue(Fe);
default:
return null;
}
},
ye: function(_Z, rZ, De) {
var Ke = this.Ie(rZ);
var S = { value: De };
switch (Ke) {
case this.se:
case this.ke:
case this.qe:
var Le = parseInt(De);
if (isNaN(Le))
switch (De) {
case "auto": S.value = 0; break;
default: S.value = null;
}
else
S.Me = ("" + De).replace(/^[-\d]+/, "") || null;
S.value = Le;
break;
case this.pe:
S.value = Math.round(100 * De);
break;
case this.oe:
S.value = this.Ne(De);
break;
case this.me:
case this.ne:
S.value = parseInt(De);
}
return S;
},
xe: function(_Z, rZ) {
if (!_Z.currentStyle)
return null;
switch (this.Ie(rZ)) {
case this.me:
var sZ = _Z.currentStyle[rZ];
if (isNaN(parseInt(sZ))) {
var Oe = _Z[this.Be[rZ][1]] == 0;
if (Oe)
_Z.runtimeStyle[this.Be[rZ][0]] = "1px";
sZ = _Z[this.ve[rZ]];
if (Oe)
_Z.runtimeStyle[this.Be[rZ][0]] = "";
}
return sZ;
case this.ne:
return _Z[rZ];
break;
case this.pe:
try {
return _Z.filters.item(d.F).opacity;
}
catch (Pe) {
return 100;
}
break;
case this.ke:
case this.qe:
default:
return _Z.currentStyle[rZ];
}
},
ze: function(_Z, rZ, De) {
var Ke = this.Ie(rZ);
var S = { value: De };
var Le = null;
if (De == "0px")
De = "0";
switch (Ke) {
case this.me:
Le = parseInt(De);
S.Me = ("" + De).replace(/^[-\d\.]+/, "") || null;
S.value = Math.max(0, Le);
break;
case this.oe:
S.value = this.Ne(De);
break;
case this.le:
case this.se:
case this.ke:
case this.qe:
Le = parseInt(De);
if (isNaN(Le))
switch (De) {
case "auto": Le = 0; break;
case "thin": Le = 2; break;
case "medium": Le = 4; break;
case "thick": Le = 6; break;
default: Le = parseInt(De);
}
else
S.Me = ("" + De).replace(/^[-\d\.]+/, "") || null;
S.value = Le;
break;
}
return S;
},
Qe: function(_Z, rZ, sZ) {
switch (this.Ie(rZ)) {
case this.oe:
_Z.style[rZ] = "rgb(" + sZ.join(",") + ")";
break;
case this.re:
case this.se:
_Z.style[rZ] = sZ;
break;
case this.me:
case this.qe:
case this.le:
case this.ke:
_Z.style[rZ] = sZ + "px";
break;
case this.ne:
_Z[rZ] = sZ + "px";
break;
}
},
Re: function(_Z, rZ) {
_Z.style[rZ] = "";
},
Ie: function(rZ) {
return this.te[rZ] || this.ke;
},
Ge: function(rZ) {
return rZ.replace(/([A-Z])/g, function(Ra) { return "-" + Ra.toLowerCase(); });
},
Se: {
"white": "#FFFFFF", "black": "#000000", "blue": "#0000FF",
"green": "#008000", "red": "#FF0000", "yellow": "#FFFF00",
"aqua": "#00FFFF", "azure": "#F0FFFF", "beige": "#F5F5DC",
"black": "#000000", "blue": "#0000FF", "brown": "#A52A2A",
"cyan": "#00FFFF", "darkblue": "#00008B", "darkcyan": "#008B8B",
"darkgray": "#A9A9A9", "darkgreen": "#006400", "darkred": "#8B0000",
"fuchsia": "#FF00FF", "gold": "#FFD700", "gray": "#808080",
"green": "#008000", "indigo": "#4B0082", "lightblue": "#ADD8E6",
"lightcyan": "#E0FFFF", "lightgreen": "#90EE90", "lightgrey": "#D3D3D3",
"lightyellow": "#FFFFE0", "lime": "#00FF00", "magenta": "#FF00FF",
"maroon": "#800000", "navy": "#000080", "orange": "#FFA500",
"pink": "#FFC0CB", "purple": "#800080", "red": "#FF0000",
"silver": "#C0C0C0", "steelblue": "#4682B4", "turquoise": "#40E0D0",
"violet": "#EE82EE", "white": "#FFFFFF", "yellow": "#FFFF00"
},
Ne: function(c) {
c = this.Se[c] || c;
if (typeof (c) == "object")
return c;
if (c.indexOf("#") == 0) {
if (c.length == 7)
return [
parseInt(c.substring(1, 3), 16),
parseInt(c.substring(3, 5), 16),
parseInt(c.substring(5, 7), 16)
];
else
return [
17 * parseInt(c.substring(1, 2), 16),
17 * parseInt(c.substring(2, 3), 16),
17 * parseInt(c.substring(3, 4), 16)
];
}
if (c.indexOf("rgb(") == 0) {
var Te = c.substring(4, c.length - 1).split(",");
return [
parseInt(Te[0]),
parseInt(Te[1]),
parseInt(Te[2])
];
}
return [255, 255, 255];
}
};
d.je.Ab();
d.Animator = _a = {
Ue: d.MM,
Ve: {},
animate: function(We, Xe) {
var Ye = We.length;
if (this.Ue) {
for (var i = 0; i < Ye; i++) {
var Ze = We[i];
var _Z = Ze.element;
var _f = Ze.targetState;
for (var Zf in _f)
if (Xe.removeAfterwards)
d.je.Re(_Z, Zf);
else
d.je.Qe(_Z, Zf, _f[Zf]);
}
if (Xe.onFinish)
Xe.onFinish(We);
return;
}
var af = 10;
var bf = 1 << af;
var cf = 7;
var df = 1 << cf;
var code = [
"if (!_a.ignoreThreadRunning && Spif.__threadRunning) alert('AAAAHHHH!!! Thread is running!');\n",
"  var tPhase = Math.min(1, (t - TSTART)/DURATION);\n",
"if (tPhase>=0){\n",
"  var f = ", _a.ef[Xe.profile], ";\n",
"\n"
];
var ff = [];
var gf = [];
var hf = [];
for (var i = 0; i < Ye; i++) {
var Ze = We[i];
var _Z = Ze.element;
var id = d.iZ.LZ(_Z);
var _f = Ze.targetState;
for (var Zf in _f) {
var jf = Zf;
if (!d.K)
jf = Zf.replace(/([A-Z])/g, function(Ra) { return "-" + Ra.toLowerCase(); });
var kf = _f[Zf];
var lf = (Ze.currentState && typeof (Ze.currentState[Zf]) != d.e) ? Ze.currentState[Zf] : d.je.Ce(_Z, Zf);
if (Zf == "zoom") {
lf *= 100;
kf *= 10000;
}
_a[id + "el"] = _Z;
switch (d.je.Ie(Zf)) {
case d.je.ne:
_a[id + "elscroll"] = (_Z != document.body || document.compatMode == "BackCompat") ? _Z : document.documentElement;
break;
case d.je.pe:
if (d.K) {
_a[id + "opacity"] = _Z.filters.item(d.F);
break;
}
default:
_a[id + "elStyle"] = _Z.style;
if (Xe.removeAfterwards)
hf.push("_a[\"", id, "elStyle\"]." + Zf + "='';\n");
}
if (d.je.Ie(Zf) == "rgb")
kf = d.je.Ne(kf);
if (kf.constructor == Array) {
var mf = [];
for (var Dd = 0; Dd < kf.length; Dd++)
mf[Dd] = Math.floor(kf[Dd] - lf[Dd]);
}
else if (!isNaN(kf)) {
var mf = Math.floor(kf - lf);
}
var nf = (Ze.units && Ze.units[Zf]) ? " + '" + Ze.units[Zf] + "';\n" : _a.of;
switch (d.je.Ie(Zf)) {
case d.je.oe:
if (d.K) {
if (Zf == "borderColor")
gf.push(
'_a["', id, 'elStyle"].', Zf, '=["rgb(",',
'(', Math.floor(df * (lf[0] + 0.5)), '+colorPhase*', mf[0], ')>>', cf, ',",", ',
'(', Math.floor(df * (lf[1] + 0.5)), '+colorPhase*', mf[1], ')>>', cf, ',",", ',
'(', Math.floor(df * (lf[2] + 0.5)), '+colorPhase*', mf[2], ')>>', cf, ', ")"].join("");\n'
);
else
gf.push(
'_a["', id, 'elStyle"].', Zf, '=',
'((', Math.floor(df * (lf[0] + 0.5)), '+colorPhase*', mf[0], ')>>', cf, '<<16) | ',
'((', Math.floor(df * (lf[1] + 0.5)), '+colorPhase*', mf[1], ')>>', cf, '<<8) | ',
'((', Math.floor(df * (lf[2] + 0.5)), '+colorPhase*', mf[2], ')>>', cf, ');\n'
);
}
else
gf.push(
'_a["', id, 'elStyle"].', Zf, '=["rgb(",',
'(', Math.floor(df * (lf[0] + 0.5)), '+colorPhase*', mf[0], ')>>', cf, ',",", ',
'(', Math.floor(df * (lf[1] + 0.5)), '+colorPhase*', mf[1], ')>>', cf, ',",", ',
'(', Math.floor(df * (lf[2] + 0.5)), '+colorPhase*', mf[2], ')>>', cf, ', ")"].join("");\n'
);
break;
case d.je.pe:
gf.push('_a["', id, (d.K ? 'opacity"].opacity=(' : 'elStyle"].opacity=(('), df * (lf + 0.5), '+colorPhase*', mf, ')>>', cf, (d.K ? ';' : ')/100;'), "\n");
break;
case d.je.ne:
ff.push('_a["', id, 'elscroll"].', Zf, '=(', bf * (lf + 0.5), '+normalPhase*', mf, ')>>', af, ';\n');
break;
case d.je.qe:
ff.push('_a["', id, 'elStyle"].', Zf, '=((', Math.floor(bf * (lf + 0.5)), '+normalPhase*', mf, ')>>', af, ')/10000;\n');
case d.je.re:
switch (Zf) {
case "visibility":
_Z.style.visibility = "hidden";
break;
case "display":
_Z.style.display = (kf == 'none' ? lf : kf);
break;
case "overflow":
_Z.style.overflow = "hidden";
break;
}
break;
case d.je.se:
ff.push('_a["', id, 'elStyle"].', Zf, '=((', Math.floor(bf * (lf + 0.5)), '+normalPhase*', mf, ')>>', af, ')\n');
default:
ff.push('_a["', id, 'elStyle"].', Zf, '=((', Math.floor(bf * (lf + 0.5)), '+normalPhase*', mf, ')>>', af, ')', (Zf == 'zoom' ? '/10000' : ''), nf, "\n");
}
}
}
if (ff.length > 0) {
code.push(
"var normalPhase=Math.round(", bf, "*f);\n",
ff.join("")
);
}
if (gf.length > 0) {
code.push(
'var colorPhase=Math.round(', df, '*f);\n',
gf.join("")
);
}
if (Xe.removeAfterwards)
code.push(
"",
"if(t==TSTOP)",
"{",
hf.join(""),
"}\n");
code.push("}\n\n");
_a.pf(code, Xe.delay, Xe.duration, We, Xe.onFinish);
},
ef: [
'tPhase',
'tPhase*tPhase',
'(1-Math.pow(1-tPhase, 4))',
'(1-Math.cos(' + Math.PI + '*tPhase)/2.0)',
'(tPhase<0.5?Math.exp(3*Math.log(tPhase*2))/2:1-Math.exp(3*Math.log((1-tPhase)*2))/2)',
'(-Math.cos(' + 4 * Math.PI + '*tPhase) + 1)/2',
'(Math.sin(' + 2 * Math.PI + '*tPhase)*0.4+0.6)*Math.sin(' + 4 * Math.PI + '*tPhase)*0.5+0.5',
'(1-Math.exp(4*Math.log(1-tPhase)))'
],
of: (document.defaultView ? " + 'px';\n" : ";\n"),
qf: 0,
rf: null,
sf: 1,
tf: 0,
uf: Infinity,
vf: 500,
wf: "",
pf: function(xf, delay, duration, We, onFinish) {
_a.qf++;
_a.sf++;
for (var i = 0; i < We.length; i++)
_a.Ve[We[i].element.id] = _a.sf++;
if (onFinish) {
_a["__onFinish" + _a.sf] = onFinish;
_a["__anims" + _a.sf] = We;
}
yf = [
"/*** ", _a.sf, " ***/\n",
"var t=Math.min(tNow, TSTOP);\n",
xf.join(""),
"if(t==TSTOP)\n",
"{\n",
"_a.__rC(", _a.sf, ");\n",
(onFinish ? ("_a.__onFinish" + _a.sf + "(_a.__anims" + _a.sf + ");") : ""),
"\n}\n",
"/*** /", _a.sf, " ***/\n"].join("");
var zf = +new Date() + delay - _a.tf;
var Af = zf + duration;
yf = yf.replace(/TSTART/g, zf);
yf = yf.replace(/DURATION/g, duration);
yf = yf.replace(/TSTOP/g, Af);
yf = yf.replace(/RUNINDEX/g, _a.sf);
if (_a.rf)
_a.Bf(We);
_a.wf = _a.wf + yf;
_a.Cf = Function("tNow", _a.wf);
if (!_a.rf) {
_a.tf = 0;
_a.uf = Infinity;
_a.rf = setInterval(_a.Df, 1);
_a.Ef = true;
_a.Df();
_a.Ef = false;
}
},
Df: function() {
var xa = +new Date() - _a.tf;
var Ff = xa - _a.uf;
if (Ff > _a.vf) {
_a.tf += Ff;
xa -= Ff;
}
_a.uf = xa;
_a.Cf(xa);
},
"__rC": function(Gf) {
var Hf = "/*** " + Gf + " ***/";
var If = "/*** /" + Gf + " ***/";
_a.wf = _a.wf.substring(0, _a.wf.indexOf(Hf)) + _a.wf.substring(_a.wf.indexOf(If) + If.length);
_a.Cf = Function("tNow", _a.wf);
_a.Jf(Gf);
_a.qf--;
if (_a.qf == 0) {
clearInterval(_a.rf);
_a.Ve = {};
_a.rf = null;
}
},
Jf: function(Gf) {
for (var id in _a.Ve)
if (_a.Ve[id] == Gf)
delete _a.Ve[id];
},
Bf: function(We) {
var Kf = [];
var Ye = We.length;
for (var i = 0; i < Ye; i++) {
var Ze = We[i];
var id = Ze.element.id.replace(/(\W)/g, "\\$1");
var _f = Ze.targetState;
for (var Zf in _f) {
switch (Zf) {
case 'scrollTop':
case 'scrollLeft':
Kf.push("|_a\\[\"", id, "el\"\\].", Zf, "[^;]+;");
break;
case "opacity":
Kf.push("|_a\\[\"", id, "opacity\"\\][^;]+;");
break;
default:
Kf.push("|_a\\[\"", id, "elStyle\"\\].", Zf, "[^;]+;");
Kf.push("|_a\\[\"", id, "elStyle\"\\]\\.", Zf, "='';");
}
}
}
if (Kf.length > 0) {
_a.wf = _a.wf.replace(new RegExp(Kf.join("").substr(1), "g"), "");
}
}
};
d.Modifiers = function() {
this.delay = 0;
this.duration = 300;
this.profile = 4;
this.removeAfterwards = false;
this.onFinish = null;
};
d.Modifiers.prototype = {
"LINEAR": 0,
"ACCELERATING": 1,
"DECELERATING": 2,
"NORMAL": 3,
"SLOWFASTSLOW": 4,
"BLINK": 5,
"HEARTBEAT": 6
};
d["Animator"] = d.Animator;
d.Animator["disabled"] = d.Animator.disabled;
d.Animator["animate"] = d.Animator.animate;
d.Lf = {
Mf: "display",
Nf: "block",
Of: "morph",
Pf: "morph-duration",
Qf: "dontmorphinside",
Rf: "limitmorphto",
Sf: "limitmorphinsideto",
Tf: true,
Uf: [
"display",
"overflow",
"backgroundColor",
"color",
"height",
"left",
"marginTop",
"marginLeft",
"opacity",
"top",
"visibility",
"width"
],
Vf: {},
Wf: false,
Xf: { BODY: 1, DIV: 1, A: 1, IMG: 1, LI: 1, OL: 1, UL: 1, SPAN: 1, TD: 1, TH: 1, TR: 1, TABLE: 1, H1: 1, H2: 1, H3: 1, DT: 1, DD: 1, DL: 1 },
Ab: function() {
if (!d.M) {
d.X.vb(d.j, this.Yf, this);
d.X.vb(d.k, this.Zf, this);
d.X.vb(d.l, this._g, this);
d.X.vb(d.n, this._g, this);
}
},
Zg: function() {
this.Tf = true;
},
ag: function() {
this.Tf = false;
},
bg: function(cg) {
d.w = cg;
},
dg: function(eg) {
var fg = {};
for (var i = 0; i < eg.length; i++)
fg[eg[i].toUpperCase()] = 1;
this.Xf = fg;
},
gg: function(hg) {
this.Uf = hg;
},
Yf: function() {
this.ig();
},
ig: function() {
this.Wf = false;
this.Vf = {};
},
_g: function(kb) {
if (kb.Wa)
return;
var _Z = kb.subject;
var jg = (
kb.type == "beforeChangeClassName"
&& d.kZ.fa(kb.toValue, this.Of)
);
if (jg || !d.kZ.contains(_Z, this.Qf))
this.kg(_Z, jg);
},
lg: function(mg, _Z, ng, tZ) {
if (ng || d.kZ.contains(_Z, this.Of)) {
var yc = d.iZ.LZ(_Z);
if (!this.Vf[yc])
mg[yc] = { element: _Z, tZ: tZ };
}
},
kg: function(Eb, jg, tZ) {
if (d.Lf.Tf) {
var og = {};
var pg = d.P.bZ(Eb, this.Rf, null, false, null);
var tZ = (pg ? pg.split("-") : this.Uf);
if (jg || !d.kZ.contains(Eb, this.Qf)) {
if (jg || d.kZ.contains(Eb, this.Of))
this.lg(og, Eb, jg, tZ);
this.qg(Eb, og, tZ);
this.Wf = true;
this.rg(og, true);
for (var yc in og)
this.Vf[yc] = og[yc];
}
}
},
qg: function(_Z, og, tZ) {
var pg = d.P.bZ(_Z, this.Sf, null, true, null);
if (pg)
tZ = pg.split("-");
for (var sg = _Z.firstChild; sg; sg = sg.nextSibling)
if (sg.nodeType == 1 && !d.kZ.contains(sg, this.Qf)) {
if (this.Xf[sg.nodeName] && d.kZ.contains(sg, this.Of))
this.lg(og, sg, false, tZ);
if (d.je.Ce(sg, "display") != d.h)
this.qg(sg, og, tZ);
}
},
Zf: function() {
if (d.J) {
document.body.scrollLeft += 0;
}
if (this.Wf) {
for (var yc in this.Vf)
if (!this.tg(this.Vf[yc].element)) {
var _Z = document.getElementById(yc);
if (_Z)
this.Vf[yc].element = document.getElementById(yc);
else
delete this.Vf[yc];
}
this.ug(this.Vf);
this.rg(this.Vf, false);
this.vg(this.Vf);
var wg = this.xg();
this.ig();
this.yg(wg);
document.body.offsetWidth;
}
},
ug: function(mg) {
for (var yc in mg) {
if (!d.Animator.Ve[yc])
continue;
var zg = mg[yc];
var _Z = zg.element;
if (d.K) {
zg.Ag = _Z.style.cssText;
_Z.style.cssText = "";
}
else {
for (var rZ in zg.Bg) {
var sZ = _Z.style[rZ];
if (sZ) {
zg.Cg[rZ] = sZ;
_Z.style[rZ] = "";
}
}
}
}
},
vg: function(mg) {
for (var yc in mg) {
if (!d.Animator.Ve[yc])
continue;
var zg = mg[yc];
var _Z = zg.element;
if (d.K)
_Z.style.cssText = zg.Ag;
else
for (var rZ in zg.Cg)
_Z.style[rZ] = zg.Cg[rZ];
}
},
rg: function(mg, Dg) {
var Eg = [];
var Fg = [];
var Gg, zg = null;
for (var yc in mg) {
if (Dg)
mg[yc] = zg = {
element: mg[yc].element,
tZ: mg[yc].tZ,
Cg: {},
Bg: {},
Hg: {}
};
else
zg = mg[yc];
var _Z = zg.element;
if (!Dg && Gg && d.iZ.sZ(Gg, _Z) && (Gg.style.display == d.h)) {
delete mg[yc];
continue;
}
var Ig = (Dg ? zg.Bg : zg.Hg);
for (var i = 0; i < zg.tZ.length; i++) {
var rZ = zg.tZ[i];
Ig[rZ] = d.je.we(_Z, rZ, !Dg);
if (rZ == this.Mf && Ig[rZ] == d.h) {
if (!Dg && zg.Bg.display == d.h) {
delete mg[yc];
break;
}
Gg = _Z;
Eg.push(Gg);
Fg.push(Gg.style.display);
Gg.style.display = this.Nf;
}
}
}
for (var i = 0; i < Eg.length; i++)
Eg[i].style.display = Fg[i];
},
xg: function() {
var wg = {};
var Jg = {};
for (var yc in this.Vf) {
var zg = this.Vf[yc];
var _Z = zg.element;
var currentState = {};
var units = {};
var targetState = {};
var Kg = false;
for (var rZ in zg.Hg) {
var Lg = zg.Bg[rZ];
var Mg = zg.Hg[rZ];
if (Mg == null)
continue;
if (Lg == Mg)
continue;
Kg = true;
var Ng = d.je.ye(_Z, rZ, Lg);
var Og = d.je.ye(_Z, rZ, Mg);
currentState[rZ] = Ng.value;
targetState[rZ] = Og.value;
units[rZ] = Ng.Me || Og.Me;
}
if (Kg) {
if (d.J) {
if (targetState.top && targetState.marginTop && targetState.top == targetState.marginTop)
delete targetState.top;
if (targetState.left && targetState.marginLeft && targetState.left == targetState.marginLeft)
delete targetState.left;
}
var delay = d.P.LZ(_Z, d.I, 0);
var duration = d.P.LZ(_Z, this.Pf, d.w);
var Pg = wg[delay] = wg[delay] || {};
var We = Pg[duration] = Pg[duration] || [];
We[We.length] = {
element: _Z,
currentState: currentState,
targetState: targetState,
units: units
};
}
}
return wg;
},
yg: function(wg) {
for (var delay in wg) {
delay *= 1;
for (var duration in wg[delay]) {
duration *= 1;
var We = wg[delay][duration];
for (var i = 0; i < We.length; i++) {
var Ze = We[i];
var _Z = Ze.element;
for (var rZ in Ze.currentState) {
d.je.Qe(_Z, rZ, Ze.currentState[rZ]);
}
}
var Xe = new d.Modifiers();
Xe.delay = delay;
Xe.duration = duration;
Xe.removeAfterwards = true;
d.Animator.animate(We, Xe);
}
}
},
tg: function(_Z) {
if (_Z.ownerDocument != document)
return false;
if (d.K)
return _Z.parentTextEdit != null;
while (_Z.parentNode && _Z != document.body)
if (_Z.parentNode.nodeType == 11)
return false;
else
_Z = _Z.parentNode;
return (_Z == document.body);
},
Qg: function(Rg, Sg) {
for (var i = 0; i < Rg.length; i++)
if (Rg[i] != Sg[i])
return false;
return true;
}
};
d.Lf.Ab();
d["StyleMorpher"] = d.Lf;
d.Lf["setMorphDuration"] = d.Lf.bg;
d.Lf["setMorphableNodeNames"] = d.Lf.dg;
d.Lf["setMorphableProperties"] = d.Lf.gg;
d.Lf["enable"] = d.Lf.Zg;
d.Lf["disable"] = d.Lf.ag;
d.Tg = {
Ab: function() {
d.eb.fb(document.documentElement, "mousedown", this.Ug, this);
d.eb.fb(document.documentElement, "mousemove", this.Vg, this);
d.eb.fb(document.documentElement, "mouseup", this.ig, this);
d.X.vb("persist-style", this.Wg, this);
},
Wg: function(kb) {
var _Z = kb.subject;
if (d.kZ.contains(_Z, "movable")) {
var Xg = { x: parseInt(_Z.style.left), y: parseInt(_Z.style.top) };
if (!isNaN(Xg.x) || !isNaN(Xg.y)) {
var Yg = d.P.Z(_Z, "aftermove", d.d);
Yg(_Z, Xg);
}
}
},
Ug: function(kb) {
this.ig();
this.Zg = d.iZ.qZ(kb.subject, "move-handle");
if (this.Zg) {
this._h = d.iZ.qZ(this.Zg, "movable");
if (this._h) {
this.Zh = this._h.offsetParent;
this.ah = d.kZ.contains(this._h, "movable-horizontal\\b|\\bmovable-freely");
this.bh = d.kZ.contains(this._h, "movable-vertical\\b|\\bmovable-freely");
this.ch = d.P.Z(this._h, "beforemove", d.d);
this.dh = d.P.Z(this._h, "aftermove", d.d);
this.eh = d.P.Z(this._h, "finishmove", d.d);
this.fh = this._h.offsetLeft - kb.clientX;
this.gh = this._h.offsetTop - kb.clientY;
var hh = -1;
var ih = -1;
var jh = this.Zh;
while (hh <= 1 || ih <= 1) {
hh = jh.offsetWidth;
ih = jh.offsetHeight;
jh = jh.offsetParent;
}
this.kh = hh - d.je.Ce(this._h, "width");
this.lh = ih - d.je.Ce(this._h, "height");
d.kZ.replace(this.Zh, "notmoving", "moving");
d.kZ.replace(this._h, "notmoving", "moving");
this.Vg(kb);
kb.cancel();
}
}
},
Vg: function(kb) {
if (this.Zg)
if (kb.tb) {
this.mh = {
x: Math.max(0, Math.min(this.fh + kb.clientX, this.kh)),
y: Math.max(0, Math.min(this.gh + kb.clientY, this.lh))
};
this.ch(this._h, this.mh);
if (this.ah)
d.je.Qe(this._h, "left", this.mh.x);
if (this.bh)
d.je.Qe(this._h, "top", this.mh.y);
this.dh(this._h, this.mh);
}
else
this.ig();
},
ig: function() {
if (this.Zg) {
d.kZ.replace(this.Zh, "moving", "notmoving");
d.kZ.replace(this._h, "moving", "notmoving");
this.eh(this._h, this.mh);
this.Zg = null;
}
}
};
d.Tg.Ab();
d.X.Y("spifLoaded");
var nh = "spif " + d.P.platform + (d.K ? " ie" + document.compatMode : "") + (navigator.userAgent.indexOf("MSIE 6.0") != -1 ? " ie6" : "");
d.kZ.add(document.documentElement, nh, d.G);
d.eb.fb(
window,
d.z,
function() {
d.X.Y(d.o, document.body);
}
);
if (d.K) {
document.execCommand("BackgroundImageCache", false, true);
}

