
var qm_si, qm_li, qm_lo, qm_tt, qm_th, qm_ts;
var qp = "parentNode";
var qc = "className";
if (window.showHelp) {
    document.write("<style type='text/css'>.qmclear{position:absolute;clear:none !important;}</style>");
}
function qm_create(sd, v, ts, th, oc, l) {
    var w = "onmouseover";
    if (oc) {
        w = "onclick";
        th = 0;
        ts = 0;
    }
    if (!l) {
        l = 1;
        qm_th = th;
        sd = document.getElementById("qm" + sd);
        sd[w] = function (e) {
            qm_kille(e);
        };
        document[w] = qm_bo;
        sd.style.zoom = 1;
    }
    sd.style.zIndex = l;
    var lsp;
    var sp = sd.childNodes;
    for (var i = 0; i < sp.length; i++) {
        var b = sp[i];
        if (b.tagName == "A") {
            lsp = b;
            b[w] = qm_oo;
            b.qmts = ts;
            if (l == 1 && v) {
                b.style.styleFloat = "none";
                b.style.cssFloat = "none";
            }
        }
        if (b.tagName == "DIV") {
            if (window.showHelp && !window.XMLHttpRequest) {
                sp[i].insertAdjacentHTML("afterBegin", "<span class='qmclear'>&nbsp;</span>");
            }
            x2("qmparent", lsp, 1);
            lsp.cdiv = b;
            b.idiv = lsp;
            new qm_create(b, null, ts, th, oc, l + 1);
        }
    }
}
function qm_bo(e) {
    clearTimeout(qm_tt);
    qm_tt = null;
    if (qm_li && !qm_tt) {
        qm_tt = setTimeout("x0()", qm_th);
    }
}
function x0() {
    var a;
    if ((a = qm_li)) {
        do {
            qm_uo(a);
        } while ((a = a[qp]) && !qm_a(a));
    }
    qm_li = null;
}
function qm_a(a) {
    if (a[qc].indexOf("qmmc") + 1) {
        return 1;
    }
}
function qm_uo(a, go) {
    if (!go && a.qmtree) {
        return;
    }
    if (window.qmad && qmad.bhide) {
        eval(qmad.bhide);
    }
    a.style.visibility = "";
    x2("qmactive", a.idiv);
}
//if (window.showHelp && !window.qmu && (window.location + "").toLowerCase().indexOf("http:") + 1) {
//    alert("QuickMenu must be purchased forinternet use.(http://www.opencube.com)");
//}
function qm_oo(e, o, nt) {
    if (!o) {
        o = this;
    }
    if (window.qmad && qmad.bhover && !nt) {
        eval(qmad.bhover);
    }
    if (window.qmwait) {
        return;
    }
    clearTimeout(qm_tt);
    qm_tt = null;
    if (!nt && o.qmts) {
        qm_si = o;
        qm_tt = setTimeout("qm_oo(new Object(),qm_si,1)", o.qmts);
        return;
    }
    var a = o;
    if (a[qp].isrun) {
        return;
    }
    var go = true;
    while ((a = a[qp]) && !qm_a(a)) {
        if (a == qm_li) {
            go = false;
        }
    }
    if (qm_li && go) {
        a = o;
        if ((!a.cdiv) || (a.cdiv && a.cdiv != qm_li)) {
            qm_uo(qm_li);
        }
        a = qm_li;
        while ((a = a[qp]) && !qm_a(a)) {
            if (a != o[qp]) {
                qm_uo(a);
            } else {
                break;
            }
        }
    }
    var b = o;
    if (b.cdiv) {
        var aw = b.offsetWidth;
        var ah = b.offsetHeight;
        var ax = b.offsetLeft;
        var ay = b.offsetTop;
        if (qm_a(b[qp]) && b.style.styleFloat != "none" && b.style.cssFloat != "none") {
            aw = 0;
        } else {
            ah = 0;
        }
        if (!b.cdiv.ismove) {
            b.cdiv.style.left = (ax + aw) + "px";
            b.cdiv.style.top = (ay + ah) + "px";
        }
        x2("qmactive", o, 1);
        if (window.qmad && qmad.bvis) {
            eval(qmad.bvis);
        }
        b.cdiv.style.visibility = "inherit";
        qm_li = b.cdiv;
    } else {
        if (!qm_a(b[qp])) {
            qm_li = b[qp];
        } else {
            qm_li = null;
        }
    }
    qm_kille(e);
}
function x2(name, b, add) {
    var a = b[qc];
    if (add) {
        if (a.indexOf(name) == -1) {
            b[qc] += (a ? " " : "") + name;
        }
    } else {
        b[qc] = a.replace(" " + name, "");
        b[qc] = b[qc].replace(name, "");
    }
}
function qm_kille(e) {
    if (!e) {
        e = event;
    }
    e.cancelBubble = true;
    if (e.stopPropagation) {
        e.stopPropagation();
    }
}

