//EYEmenu 3 (c) Petre Stefan
//email: eyecon@eyecon.ro
//website: www.eyecon.ro
//please leave this copyright notice intact
eye = {
    stil: null,
    a0: null,
    c9: null,
    d6: null,
    c2: null,
    icon: null,
    d2: false,
    d3: false,
    e3: false,
    d5: new Array,
    c8: new Array,
    b6: null,
    a8: 1,
    a9: 0,
    b0: 0,
    b1: 0,
    b2: 0,
    b4: 0,
    b5: 0,
    b7: 0,
    b8: 0,
    d0: null,
    c3: null,
    e0: false,
    bar: function (d7, x, y, d2, e3, d3, e0, side) {
        this.a0 = d7;
        this.d6 = "eyebar";
        this.d2 = d2;
        this.e3 = e3;
        x = (e0 && !d2) ? 0 : x;
        y = (e0 && d2) ? 0 : y;
        this.c9 = y;
        this.d3 = d3;
        this.e0 = e0;
        side = (e0 && !d2) ? (" align=\"" + ((side == 0) ? "left" : (side == 1) ? "center" : (side == 2) ? "right" : "") + "\"") : "";
        document.write("<div id=\"eyebar\" style=\"z-Index:90; visibility: hidden;background-color:" + this.stil[2] + ";padding:" + this.stil[19] + ";position:absolute;border:" + this.stil[6] + " " + this.stil[7] + " " + this.stil[8] + ";top:" + y + "px;left:" + x + "px;height:auto\"><table " + side + " cellpadding=\"" + (d2 ? this.stil[14] : "0") + "\" cellspacing=\"0\" style=\"cursor:default\"" + (d2 ? " width=" + d7 + "" : "") + ">" + (!d2 ? "<tr>" : ""))
    },
    itm: function (icon, icon2, text, link, target, d8, side) {
        side = side ? side : 0;
        d4 = d8 ? "<img src=\"" + ((!this.d2 && this.d6 == "eyebar") ? this.stil[13] : this.stil[12]) + "\">" : "&nbsp;";
        icon = "<div style=\"overflow:hidden;padding:" + (this.stil[14] / 2 - 4) + "px;width:" + this.stil[15] + "px;height:" + this.stil[16] + "px\">" + (icon ? ("<img src=\"" + icon + "\" width=" + this.stil[15] + " height=" + this.stil[16] + ">") : "&nbsp;") + "</div>";
        icon2 = (icon && icon2) ? " eyeicon=\"" + icon2 + "\"" : "";
        onclick = " onclick='window.location=\"" + link + "\"" + (target ? (",\"" + target + "\"") : ",\"_self\"") + "'";
        c5 = d8 ? ";eye.arata('" + d8 + "','" + this.d6 + "',this," + side + ")" : "";
        a4 = d8 ? ";eye.a4('" + d8 + "')" : "";
        if (!this.d2 && this.d6 == "eyebar") {
            document.write("<td width=\"" + this.a0 + "\"" + onclick + " onmouseover=\"eye.e6(this,1)" + c5 + "\" onmouseout=\"eye.e5('eyebar')" + a4 + "\"><table width=\"" + this.a0 + "\" cellspacing=0 cellpadding=\"" + this.stil[14] + "\" style=\"font:" + this.stil[9] + " " + this.stil[10] + " " + this.stil[11] + ";\"><tr><td align=\"center\" valign=\"middle\" style=\"border:" + this.stil[18] + " solid " + this.stil[4] + ";background-color:" + this.stil[4] + ";border-right-width:0px\" width=\"" + this.stil[15] + "\"" + icon2 + ">" + icon + "</td><td valign=\"middle\" style=\"background-color:" + this.stil[2] + ";border:" + this.stil[18] + " solid " + this.stil[2] + ";color:" + this.stil[0] + ";border-left-width:0px;border-right-width:0px\" width=2000>&nbsp;" + text + "</td><td align=\"center\" valign=\"middle\" width=1 style=\"background-color:" + this.stil[2] + ";border:" + this.stil[18] + " solid " + this.stil[2] + ";border-left-width:0px\" >" + d4 + "</td></tr></table></td>")
        } else {
            document.write("<tr " + onclick + " onmouseover=\"eye.e6(this)" + c5 + "\"onmouseout=\"eye.e5('" + this.d6 + "')" + a4 + "\"><td align=\"center\" valign=\"middle\" style=\"background-color:" + (this.d6 != "eyebar" ? this.stil[5] : this.stil[4]) + ";border:" + this.stil[18] + " solid " + (this.d6 != "eyebar" ? this.stil[5] : this.stil[4]) + ";border-right-width : 0px;\" width=\"" + this.stil[15] + "\"" + icon2 + ">" + icon + "</td><td valign=\"middle\" style=\"font:" + this.stil[9] + " " + this.stil[10] + " " + this.stil[11] + ";background-color:" + this.stil[2] + ";border:" + this.stil[18] + " solid " + this.stil[2] + ";color:" + this.stil[0] + ";border-left-width:0px;border-right-width:0px\" width=2000>&nbsp;" + text + "</td><td align=\"center\" valign=\"middle\" width=1 style=\"font:" + this.stil[9] + " " + this.stil[10] + " " + this.stil[11] + ";background-color:" + this.stil[2] + ";border:" + this.stil[18] + " solid " + this.stil[2] + ";border-left-width:0px\">" + d4 + "</td></tr>")
        }
    },
    sbm: function (d7, e7) {
        document.write("<div id=\"" + e7 + "\" style=\"" + (this.stil[20] ? "filter:" + this.stil[20] : "") + ";-moz-border-radius:" + this.stil[21] + ";border-radius:" + this.stil[21] + ";visibility:hidden;z-Index:91;background-color: " + this.stil[2] + ";padding:" + this.stil[19] + ";position:absolute;border: " + this.stil[6] + " " + this.stil[7] + " " + this.stil[8] + "\" onmouseout=\"eye.a4('" + e7 + "')\" onmouseover=\"eye.a3('" + e7 + "')\"><table cellpadding=\"" + this.stil[14] + "\" cellspacing='0' style=\"cursor:default;font:" + this.stil[9] + " " + this.stil[10] + " " + this.stil[11] + "\" width=" + d7 + ">");
        this.d6 = e7
    },
    cnt: function (d7) {
        this.d6 = "eyecontext";
        document.write("<div id=\"eyecontext\" style=\"" + (this.stil[20] ? "filter:" + this.stil[20] : "") + ";-moz-border-radius:" + this.stil[21] + ";border-radius:" + this.stil[21] + ";z-Index:1000; visibility: hidden;background-color:" + this.stil[2] + ";padding:" + this.stil[19] + ";position:absolute;border:" + this.stil[6] + " " + this.stil[7] + " " + this.stil[8] + "\"><table  cellpadding=\"" + this.stil[14] + "\" cellspacing=\"0\" style=\"cursor:default\" width=" + d7 + ">")
    },
    sep: function () {
        if (!this.d2 && this.d6 == "eyebar") {
            return
        } else document.write("<tr width=\"" + this.a0 + "\"><td height=\"1\" style=\"background-color:" + this.stil[22] + ";font-size:0px;\" colspan=3> </td></tr>")
    },
    cls: function () {
        if (!this.d2 && this.d6 == "eyebar") document.write("</tr>");
        document.write("</table></div>");
        if (this.d6 == "eyebar") {
            eye.d0 = document.getElementById("eyebar");
            eye.d0.style.visibility = "visible"
        }
        if (this.d6 == "eyecontext") this.c3 = document.getElementById("eyecontext")
    },
    a4: function (c5) {
        clearTimeout(this.c8[c5]);
        this.c8[c5] = setTimeout('eye.a1("' + c5 + '")', 60)
    },
    a1: function (c5) {
        if (document.getElementById(c5)) document.getElementById(c5).style.visibility = 'hidden';
        if ((this.d5[c5] != 'eyebar' && this.d5[c5] != 'eyecontext' && this.d5[c5] != this.b6 && this.d5[c5] != 'op')) {
            this.c8[this.d5[c5]] = setTimeout('eye.a4("' + this.d5[c5] + '")', 60)
        }
    },
    a2: function (c5) {
        clearTimeout(this.c8[c5])
    },
    a3: function (c5) {
        clearTimeout(this.c8[c5]);
        clearTimeout(this.c8[this.d5[c5]]);
        this.b6 = c5
    },
    e6: function (e4, d2) {
        if (this.c2) this.e5();
        this.c2 = d2 ? e4.getElementsByTagName("TABLE")[0].getElementsByTagName("TD") : e4.getElementsByTagName("TD");
        this.c2[1].style.backgroundColor = this.c2[0].style.backgroundColor = this.c2[2].style.backgroundColor = this.stil[3];
        this.c2[1].style.color = this.stil[1];
        this.c2[1].style.borderTopColor = this.c2[1].style.borderBottomColor = this.c2[0].style.borderTopColor = this.c2[0].style.borderBottomColor = this.c2[2].style.borderTopColor = this.c2[2].style.borderBottomColor = this.c2[2].style.borderRightColor = this.c2[0].style.borderLeftColor = this.stil[17];
        this.c2[1].style.borderLeftColor = this.c2[1].style.borderRightColor = this.c2[2].style.borderLeftColor = this.c2[0].style.borderRightColor = this.stil[3];
        if (this.c2[0].getAttribute("eyeicon")) {
            this.icon = this.c2[0].getElementsByTagName("IMG")[0].src;
            this.c2[0].getElementsByTagName("IMG")[0].src = this.c2[0].getAttribute("eyeicon")
        }
    },
    e5: function (d6) {
        this.c2[1].style.color = this.stil[0];
        this.c2[0].style.backgroundColor = this.c2[0].style.borderColor = (d6 != "eyebar") ? this.stil[5] : this.stil[4];
        this.c2[2].style.backgroundColor = this.c2[2].style.borderColor = this.c2[1].style.backgroundColor = this.c2[1].style.borderColor = this.stil[2];
        if (this.icon) this.c2[0].getElementsByTagName("IMG")[0].src = this.icon;
        this.c2 = null;
        this.icon = null
    },
    a7: function () {
        this.b2 = document.body.scrollTop || window.pageYOffset || 1;
        this.b1 = document.body.scrollLeft || window.pageXOffset || 1;
        this.a9 = (document.body.clientWidth) || (innerWidth - 20);
        this.b0 = (document.body.clientHeight) || (innerHeight - 5);
        if (this.d0) {
            if (this.e3) {
                if (this.b2 != this.a8) {
                    this.a8 += parseInt((this.b2 - this.a8) / 8)
                }
                if (this.a8 > this.c9) eye.d0.style.top = (this.a8 + 10) + "px";
                else eye.d0.style.top = this.c9 + "px"
            }
            if (eye.e0) {
                if (this.d2) {
                    eye.d0.style.top = "0px";
                    eye.d0.style.height = eye.b0 + "px"
                } else {
                    eye.d0.style.left = 0;
                    eye.d0.style.width = eye.a9 + "px"
                }
            } else if (this.d3) {
                if (!this.d2) {
                    d1 = parseInt((this.a9 - this.b7) / 2);
                    d1 = d1 > 0 ? d1 : 0;
                    eye.d0.style.left = d1 + "px"
                }
            }
        }
        tmp = setTimeout('eye.a7()', 20)
    },
    c4: function (e) {
        if (document.all) e = event;
        eye.b4 = e.clientX + eye.b1;
        eye.b5 = e.clientY + eye.b2
    },
    arata: function (c5, c7, e2, d9) {
        clearTimeout(this.c8[c5]);
        clearTimeout(this.c8[c7]);
        this.d5[c5] = c7;
        c6 = document.getElementById(c7);
        b3 = document.getElementById(c5);
        b3.x = c6.offsetLeft + ((c7 == "eyebar" && this.e0 && !this.d2) ? c6.getElementsByTagName("TABLE")[0].offsetLeft : 0);
        b3.y = c6.offsetTop + ((c7 == "eyebar" && this.e0 && this.d2) ? c6.getElementsByTagName("TABLE")[0].offsetTop : 0);
        if (c7 != "eyebar" && c7 != null) {
            b3.x += (d9 == 1 || d9 == 3) ? (-1 - b3.offsetWidth) : (1 + c6.offsetWidth);
            b3.y += (d9 == 2 || d9 == 3) ? (e2.offsetHeight + e2.offsetTop - b3.offsetHeight) : e2.offsetTop
        } else {
            if (this.c3) this.a5();
            if (this.d2) {
                b3.x += (d9 == 1) ? (-1 - b3.offsetWidth) : (1 + c6.offsetWidth);
                b3.y += e2.offsetTop
            } else {
                b3.x += e2.offsetLeft;
                b3.y += (d9 != 1) ? (6 + e2.offsetHeight) : (-b3.offsetHeight)
            }
        }
        w = eye.a9 + eye.b1;
        h = eye.b0 + eye.b2;
        b3.x = (b3.x < this.b1) ? this.b1 : (b3.x + b3.offsetWidth) > w ? (w - b3.offsetWidth) : b3.x;
        b3.y = (b3.y < this.b2) ? this.b2 : (b3.y + b3.offsetHeight) > h ? (h - b3.offsetHeight) : b3.y;
        b3.style.left = b3.x - (c7 != "eyebar" ? (((d9 == 1 || d9 == 3) ? -1 : 1) * this.stil[24]) : 0) + "px";
        b3.style.top = b3.y + (c7 != "eyebar" ? (((d9 == 2 || d9 == 3) ? -1 : 1) * this.stil[23]) : 0) + "px";
        b3.style.zIndex = 90 + c6.style.zIndex + 1;
        if (document.all && !window.opera && eye.stil[20] && b3.style.visibility != 'visible') {
            b3.filters[0].enabled = true;
            b3.filters[0].Apply();
            b3.style.visibility = 'visible';
            b3.filters[0].Play()
        } else {
            b3.style.visibility = 'visible'
        }
    },
    menu: function (d8, c7, d9) {
        tx = c7.offsetLeft;
        ty = c7.offsetTop;
        w = eye.a9 + eye.b1;
        h = eye.b0 + eye.b2;
        e1 = c7.offsetParent;
        while (e1 != null) {
            ty += e1.offsetTop;
            tx += e1.offsetLeft;
            e1 = e1.offsetParent
        }
        clearTimeout(this.c8[d8]);
        this.d5[d8] = 'op';
        b3 = document.getElementById(d8);
        if (d9 == 8) {
            b3.x = this.b4;
            b3.y = this.b5
        } else {
            b3.x = tx + 1 + ((d9 == 0 || d9 == 1 || d9 == 7) ? c7.offsetWidth : (d9 == 3 || d9 == 4 || d9 == 5) ? (-b3.offsetWidth) : 0);
            b3.y = ty + 1 + ((d9 == 2 || d9 == 1 || d9 == 3) ? c7.offsetHeight : (d9 == 5 || d9 == 6 || d9 == 7) ? (-b3.offsetHeight) : 0)
        }
        b3.x = (b3.x < this.b1) ? this.b1 : (b3.x + b3.offsetWidth) > w ? (w - b3.offsetWidth) : b3.x;
        b3.y = (b3.y < this.b2) ? this.b2 : (b3.y + b3.offsetHeight) > h ? (h - b3.offsetHeight) : b3.y;
        b3.style.left = b3.x + "px";
        b3.style.top = b3.y + "px";
        b3.style.zIndex = 1000;
        if (document.all && !window.opera && eye.stil[20] && b3.style.visibility != 'visible') {
            b3.filters[0].enabled = true;
            b3.filters[0].Apply();
            b3.style.visibility = 'visible';
            b3.filters[0].Play();
        } else {
            b3.style.visibility = 'visible'
        }
        if (this.c3) this.a5()
    },
    a6: function (e) {
        w = eye.a9 + eye.b1;
        h = eye.b0 + eye.b2;
        x = eye.b4;
        y = eye.b5;
        x = (x + eye.c3.offsetWidth) > w ? (w - eye.c3.offsetWidth) : x;
        y = (y + eye.c3.offsetHeight) > h ? (h - eye.c3.offsetHeight) : y;
        eye.c3.style.top = y + "px";
        eye.c3.style.left = x + "px";
        if (document.all && !window.opera && eye.stil[20] && eye.c3.style.visibility != 'visible') {
            eye.c3.filters[0].enabled = true;
            eye.c3.filters[0].Apply();
            eye.c3.style.visibility = 'visible';
            eye.c3.filters[0].Play()
        } else {
            eye.c3.style.visibility = 'visible'
        }
        return false
    },
    a5: function () {
        eye.c3.style.visibility = "hidden"
    },
    incepe: function (e) {
        eye.c8['fx'] = window.setTimeout('null', 20);
        if (document.all && !document.getElementById && !window.opera) {
            document.getElementById = function (el) {
                return document.all[el]
            };
            document.getElementsByTagName = function (el) {
                return document.all.tags(el)
            }
        }
        b9 = document.all ? document.all : document.getElementsByTagName('*');
        for (i = 0; i < b9.length; i++) {
            if (b9[i].getAttribute('eyemenu')) {
                c0 = new String(b9[i].onmouseover);
                c1 = c0.substring(c0.indexOf("{") + 1, c0.lastIndexOf("}")) + ";";
                b9[i].setAttribute('overVechi', c1);
                c0 = new String(b9[i].onmouseout);
                c1 = c0.substring(c0.indexOf("{") + 1, c0.lastIndexOf("}")) + ";";
                b9[i].setAttribute('outVechi', c1);
                b9[i].onmouseover = function () {
                    eval(this.getAttribute('overVechi'));
                    d1 = this.getAttribute('eyemenu').lastIndexOf("|");
                    eye.menu(this.getAttribute('eyemenu').substring(0, d1), this, this.getAttribute('eyemenu').substring(d1 + 1, d1 + 2))
                };
                b9[i].onmouseout = function () {
                    eval(this.getAttribute('outVechi'));
                    d1 = this.getAttribute('eyemenu').lastIndexOf("|");
                    eye.a4(this.getAttribute('eyemenu').substring(0, d1))
                }
            }
        }
        if (eye.d0) {
            eye.b7 = eye.d0.offsetWidth;
            eye.b8 = eye.d0.offsetHeight
        }
        if (!window.opera && eye.c3) {
            document.oncontextmenu = eye.a6;
            document.onclick = eye.a5
        };
        eye.a7();
        document.onmousemove = eye.c4
    }
};
window.onload = eye.incepe; // JavaScript Document
