var main_menu = function () { var e = 10, g = 50, f = 6, d; function c(a) { this.n = a; this.h = []; this.c = [] } c.prototype.init = function (o, q) { d = q; var j = document.getElementById(o), n = j.getElementsByTagName("ul"), a = n.length, k = 0; for (k; k < a; k++) { var m = n[k].parentNode; this.h[k] = m; this.c[k] = n[k]; m.onmouseover = new Function(this.n + ".st(" + k + ",true)"); m.onmouseout = new Function(this.n + ".st(" + k + ")") } }; c.prototype.st = function (a, j) { var l = this.c[a], i = this.h[a], k = i.getElementsByTagName("a")[0]; clearInterval(l.t); l.style.overflow = "hidden"; if (j) { k.className += " " + d; if (!l.mh) { l.style.display = "block"; l.style.height = ""; l.mh = l.offsetHeight; l.style.height = 0 } if (l.mh == l.offsetHeight) { l.style.overflow = "visible" } else { l.style.zIndex = g; g++; l.t = setInterval(function () { b(l, 1) }, e) } } else { k.className = k.className.replace(d, ""); l.t = setInterval(function () { b(l, -1) }, e) } }; function b(l, i) { var a = l.offsetHeight; if ((a <= 0 && i != 1) || (a >= l.mh && i == 1)) { if (i == 1) { l.style.filter = ""; l.style.opacity = 1; l.style.overflow = "visible" } clearInterval(l.t); return } var k = (i == 1) ? Math.ceil((l.mh - a) / f) : Math.ceil(a / f), j = a / l.mh; l.style.opacity = j; l.style.filter = "alpha(opacity=" + (j * 100) + ")"; l.style.height = a + (k * i) + "px" } return { dd: c } } ();