var K0 = window,
    F1 = document;
var x09 = 'mlddm';
var h03 = new Array();

function mlddminit() {
    var Cc34 = F1.getElementsByTagName('ul');
    var x0D = 0;
    for (var i = 0; i < Cc34.length; i++) {
        if (Cc34[i].className == x09) {
            Cc34[i].style.visibility = 'visible';
            var _HG = Cc34[i];
            var tt = _HG.getAttribute('params');
            h03[x0D] = new sd4(_HG, x0D, tt);
            x0D++
        }
    }
}
function sd4(_HG, _HG_n, ZZ) {
    var hwDD = _HG;
    var __HG_num = _HG_n;
    var _me = this;
    var Kno5 = new Array();
    this.o0o = new Array(6);
    this.o0o[0] = new Array();
    this.o0o[1] = new Array();
    this.o0o[2] = new Array();
    this.o0o[3] = new Array();
    this.o0o[4] = new Array();
    this.o0o[5] = new Array();
    var _PO = null;
    var _GGy = true;
    var YgD = null;
    var Xbb = 0;
    var TTh = 0;
    var KL78 = 500;
    var jjK = 'none';
    var Wee5 = 300;
    var _io7 = 'h';
    var _uuY;
    var element_to_show;
    var show_time = null;
    if (ZZ) {
        _uuY = ZZ.split(",");
        if (_uuY[0]) Xbb = _uuY[0] * 1;
        if (_uuY[1]) TTh = _uuY[1] * 1;
        if (_uuY[2]) KL78 = _uuY[2] * 1;
        if (_uuY[3]) jjK = _uuY[3];
        if (_uuY[4]) Wee5 = _uuY[4] * 1;
        if (_uuY[5]) _io7 = _uuY[5];
        if (!Wee5) Wee5 = 1000
    }
    function ee45(num, R67, R78, w345) {
        var jjj8 = Math.round(1000 / w345);
        var ff57 = 0;
        if (R67 > R78) {
            for (i = R67; i >= R78; i = i - 4) {
                setTimeout("nnnng(" + __HG_num + "," + num + "," + i + ")", (ff57 * jjj8));
                ff57++
            }
        } else if (R67 < R78) {
            for (i = R67; i <= R78; i = i + 4) {
                setTimeout("nnnng(" + __HG_num + "," + num + "," + i + ")", (ff57 * jjj8));
                ff57++
            }
        }
    }
    function rtf3(num, verc, w345) {
        var jjj8 = Math.round(1000 / w345);
        var ff57 = 0;
        if (_io7 == 'h') _ori = 0;
        else _ori = 1;
        if (verc == 'show') {
            for (i = 0; i <= 100; i = i + 2) {
                setTimeout("NN234(" + __HG_num + "," + num + "," + i + "," + _ori + ")", (ff57 * jjj8));
                ff57++
            }
        } else if (verc == 'hide') {
            for (i = 100; i >= 0; i = i - 2) {
                setTimeout("NN234(" + __HG_num + "," + num + "," + i + "," + _ori + ")", (ff57 * jjj8));
                ff57++
            }
        }
    }
    function indexof33(FLCL7) {
        var strait12 = 0;
        var node7 = FLCL7;
        while (node7.className != x09) {
            if (node7.tagName == 'UL') strait12++;
            node7 = node7.parentNode
        }
        return strait12
    }
    function setwdth88(FLCL7) {
        var mix0;
        var maxx = FLCL7;
        var x0D = 0;
        while (maxx.className != x09) {
            if (maxx.tagName == 'LI') {
                x0D++;
                mix0 = maxx
            }
            maxx = maxx.parentNode
        }
        return mix0
    }
    function mix0n(FLCL7) {
        if (indexof33(FLCL7) != 1) return -1;
        var mix0 = setwdth88(FLCL7);
        if (mix0) {
            mix0 = mix0.getElementsByTagName("a")[0];
            mix0.id = 'buttonhover'
        }
    }
    function sakura(FLCL7) {
        if (indexof33(FLCL7) != 1) return -1;
        var mix0 = setwdth88(FLCL7);
        if (mix0) {
            mix0 = mix0.getElementsByTagName("a")[0];
            mix0.id = 'buttonnohover'
        }
    }
    function sasuke() {
        x0D = element_to_show;
        if (!_me.o0o[1][x0D]) {
            if (jjK == 'fade') {
                ee45(x0D, 0, 100, Wee5)
            } else if (jjK == 'slide') {
                rtf3(x0D, 'show', Wee5)
            } else {
                _me.o0o[0][x0D].style.visibility = 'visible'
            }
            mix0n(_me.o0o[0][x0D]);
            _me.o0o[1][x0D] = true
        }
    }
    function naruto(x0D) {
        if (_me.o0o[1][x0D]) {
            if (jjK == 'fade') {
                ee45(x0D, 100, 0, Wee5)
            } else if (jjK == 'slide') {
                rtf3(x0D, 'hide', Wee5)
            } else {
                _me.o0o[0][x0D].style.visibility = 'hidden'
            }
            sakura(_me.o0o[0][x0D]);
            _me.o0o[1][x0D] = false
        }
    }
    function velo() {
        for (var i = 0; i < _me.o0o[0].length; i++) {
            naruto(i)
        }
    }
    function hoka() {
        _PO = K0.setTimeout(velo, KL78)
    }
    function outM() {
        if (_PO) {
            K0.clearTimeout(_PO);
            _PO = null
        }
    }
    function glr0D(_HG) {
        for (var i = 0; i < _me.o0o[0].length; i++) {
            if (_me.o0o[0][i] == _HG) return i
        }
        return -1
    }
    this.pmanual = function () {
        velo()
    };
    this.eve = function () {
        if (_GGy) {
            _GGy = false;
            outM();
            var li0n = this;
            var FLCL7 = li0n.getElementsByTagName("ul")[0];
            var ind = glr0D(FLCL7);
            if (ind >= 0) {
                element_to_show = ind;
                show_time = setTimeout(sasuke, 300)
                //sasuke(ind);
            }
            var openo0o = new Array();
            openo0o[0] = li0n.getElementsByTagName("ul")[0];
            if (!openo0o[0]) openo0o[0] = 0;
            var maxx = li0n.parentNode;
            var num = 0;
            while (maxx.className != x09) {
                if (maxx.tagName == 'UL') {
                    num++;
                    openo0o[num] = maxx
                }
                maxx = maxx.parentNode
            }
            var lrth = new Array(_me.o0o[0].length);
            for (var i = 0; i < lrth.length; i++) lrth[i] = false;
            for (var i = 0; i < openo0o.length; i++) lrth[glr0D(openo0o[i])] = true;
            for (var i = 0; i < lrth.length; i++) if (!lrth[i] && (YgD != openo0o[0])) naruto(i);
            YgD = openo0o[1]
        }
    };
    this.eve88 = function () {
        _GGy = true
        if (show_time) {
            K0.clearTimeout(show_time);
            show_time = null
        }
    };
    this.alleve = function () {
        hoka()
    };
    this.maxval = function () {
        outM()
    };
    var some3 = hwDD.getElementsByTagName("li")[0];
    var i = 0;
    while (some3) {
        Kno5[i] = some3;
        some3 = mod00(some3);
        i++
    }
    var conti = 0;
    var min_l = hwDD.getElementsByTagName("li");
    for (var i = 0; i < min_l.length; i++) {
        var FLCL7 = min_l[i].getElementsByTagName("ul")[0];
        if (FLCL7) {
            this.o0o[0][conti] = FLCL7;
            this.o0o[1][conti] = false;
            conti++
        }
        min_l[i].onmouseover = this.eve;
        min_l[i].onmouseout = this.eve88
    }
    hwDD.onmouseout = this.alleve;
    hwDD.onmouseover = this.maxval;
    var sql55 = new Array();
    var rplpdd;
    for (var cactus = 0; cactus < this.o0o[0].length; cactus++) {
        sql55[cactus] = new Array();
        var some3 = this.o0o[0][cactus].getElementsByTagName("li")[0];
        var i = 0;
        while (some3) {
            sql55[cactus][i] = some3;
            some3 = mod00(some3);
            i++
        }
        var miniHH = 0;
        var ffG;
        var longest;
        for (i = 0; i < sql55[cactus].length; i++) {
            ffG = sql55[cactus][i].getElementsByTagName("a")[0];
            if (ffG.offsetWidth >= miniHH) {
                miniHH = ffG.offsetWidth;
                longest = ffG
            }
            if (ffG.offsetWidth >= miniHH) {
                miniHH = ffG.offsetWidth
            }
        }
        rplpdd = longest.offsetWidth - miniHH;
        this.o0o[3][cactus] = miniHH;
        this.o0o[4][cactus] = sql55[cactus].length * longest.offsetHeight;
        var _HG = this.o0o[0][cactus];
        var top = _HG.offsetTop;
        _HG.style.marginTop = 0 + 'px';
        var margintop = top - _HG.offsetTop;
        _HG.style.marginTop = margintop + 'px';
        this.o0o[5][cactus] = margintop;
        this.o0o[2][cactus] = indexof33(this.o0o[0][cactus])
    }
    for (x0D = 0; x0D < this.o0o[0].length; x0D++) {
        var strait12 = 0;
        var node7 = this.o0o[0][x0D];
        while (node7.className != x09) {
            if (node7.tagName == 'UL') strait12++;
            node7 = node7.parentNode
        }
        if ((_io7 == 'h' && strait12 > 1) || (_io7 == 'v')) {
            var parent_ul;
            var parent_a;
            var ffGr = this.o0o[0][x0D].parentNode;
            while (ffGr.tagName != 'UL') {
                if (ffGr.parentNode) {
                    ffGr = ffGr.parentNode
                } else {
                    return 1
                }
            }
            parent_ul = ffGr;
            var ffGr = this.o0o[0][x0D].parentNode;
            while (ffGr.tagName != 'LI') {
                if (ffGr.parentNode) {
                    ffGr = ffGr.parentNode
                } else {
                    return 1
                }
            }
            parent_a = ffGr.getElementsByTagName("a")[0];
            var a_tags = new Array();
            var i = 0;
            ffGr = parent_ul.getElementsByTagName("li")[0];
            while (ffGr) {
                if (ffGr.getElementsByTagName("a")[0]) a_tags[i] = ffGr.getElementsByTagName("a")[0];
                ffGr = mod00(ffGr);
                if (ffGr) if (ffGr.tagName == 'LI') i++
            }
            var num = 0;
            for (var i = 0; i < a_tags.length; i++) {
                if (a_tags[i] != parent_a) num++;
                else break
            }
            var tag_a = parent_ul.getElementsByTagName("a")[0];
            var width = tag_a.offsetWidth;
            var height = tag_a.offsetHeight;
            this.o0o[0][x0D].style.left = width + Xbb + 'px';
            this.o0o[0][x0D].style.top = height * num + TTh + 'px'
        }
    }
}
function nnnng(_HG_num, lrnmm, ee45) {
    var _HGect = h03[_HG_num];
    var FLCL7 = _HGect.o0o[0][lrnmm];
    FLCL7.style.opacity = (ee45 / 100);
    FLCL7.style.MozOpacity = (ee45 / 100);
    FLCL7.style.KhtmlOpacity = (ee45 / 100);
    FLCL7.style.filter = "alpha(opacity=" + ee45 + ")";
    if (ee45 > 98) FLCL7.style.filter = 'none';
    if (ee45 > 0) FLCL7.style.visibility = 'visible';
    if (ee45 <= 0) FLCL7.style.visibility = 'hidden'
}
function NN234(_HG_num, lrnmm, pos, ori) {
    var _HGect = h03[_HG_num];
    var FLCL7 = _HGect.o0o[0][lrnmm];
    var strait12 = _HGect.o0o[2][lrnmm];
    var width = _HGect.o0o[3][lrnmm];
    var height = _HGect.o0o[4][lrnmm];
    var margintop = _HGect.o0o[5][lrnmm];
    if (strait12 == 1 && ori == 0) {
        var h = height - pos * height / 100;
        FLCL7.style.clip = 'rect(' + h + 'px 1000px 1000px 0px)';
        FLCL7.style.marginTop = -h + margintop + 'px'
    } else {
        var w = width - pos * width / 100;
        FLCL7.style.clip = 'rect(0px 1000px 1000px ' + w + 'px)';
        FLCL7.style.marginLeft = -w + 'px'
    }
    if (pos <= 0) FLCL7.style.visibility = 'hidden';
    if (pos > 0) FLCL7.style.visibility = 'visible'
}
function is_all_ws(nod) {
    return !(/[^\t\n\r]/.test(nod.data))
}
function is_ignorable(nod) {
    return (nod.nodeType == 8) || ((nod.nodeType == 3) && is_all_ws(nod))
}
function mod00(sib) {
    while ((sib = sib.nextSibling)) {
        if (!is_ignorable(sib)) return sib
    }
    return null
}
_LOADERS = Array();

function callAllLoaders() {
    var i, loaderFunc;
    for (i = 0; i < _LOADERS.length; i++) {
        loaderFunc = _LOADERS[i];
        if (loaderFunc != callAllLoaders) loaderFunc()
    }
}
function appendLoader(loaderFunc) {
    if (K0.onload && K0.onload != callAllLoaders) _LOADERS[_LOADERS.length] = K0.onload;
    K0.onload = callAllLoaders;
    _LOADERS[_LOADERS.length] = loaderFunc
}
function close() {
    for (var i = 0; i < h03.length; i++) {
        h03[i].pmanual()
    }
}
F1.onclick = close;
appendLoader(mlddminit);
