﻿
//Add-On Core Code (Remove when not using any add-on's)
document.write('<style type="text/css">.qmfv{visibility:visible !important;}.qmfh{visibility:hidden !important;}</style><script type="text/javascript">if (!window.qmad){qmad=new Object();qmad.binit="";qmad.bvis="";qmad.bhide="";}</script>');

/*******  Menu 0 Add-On Settings *******/
var a = qmad.qm0 = new Object();

// Slide Animation Add On
a.slide_animation_frames = 8;

// Persistent States With Auto Open Subs Option Add On
a.sopen_auto_enabled = true;

//Core QuickMenu Code
qmv6 = true; var qm_si, qm_lo, qm_tt, qm_ts, qm_la, qm_ic, qm_ff, qm_sks; var qm_li = new Object(); var qm_ib = ''; var qp = "parentNode"; var qc = "className"; var qm_t = navigator.userAgent; var qm_o = qm_t.indexOf("Opera") + 1; var qm_s = qm_t.indexOf("afari") + 1; var qm_s2 = qm_s && qm_t.indexOf("ersion/2") + 1; var qm_s3 = qm_s && qm_t.indexOf("ersion/3") + 1; var qm_n = qm_t.indexOf("Netscape") + 1; var qm_v = parseFloat(navigator.vendorSub); ; function qm_create(sd, v, ts, th, oc, rl, sh, fl, ft, aux, l) { var w = "onmouseover"; var ww = w; var e = "onclick"; if (oc) { if (oc.indexOf("all") + 1 || (oc == "lev2" && l >= 2)) { w = e; ts = 0; } if (oc.indexOf("all") + 1 || oc == "main") { ww = e; th = 0; } } if (!l) { l = 1; sd = document.getElementById("qm" + sd); if (window.qm_pure) sd = qm_pure(sd); sd[w] = function (e) { try { qm_kille(e) } catch (e) { } }; if (oc != "all-always-open") document[ww] = qm_bo; if (oc == "main") { qm_ib += sd.id; sd[e] = function (event) { qm_ic = true; qm_oo(new Object(), qm_la, 1); qm_kille(event) }; } sd.style.zoom = 1; if (sh) x2("qmsh", sd, 1); if (!v) sd.ch = 1; } else if (sh) sd.ch = 1; if (oc) sd.oc = oc; if (sh) sd.sh = 1; if (fl) sd.fl = 1; if (ft) sd.ft = 1; if (rl) sd.rl = 1; sd.th = th; sd.style.zIndex = l + "" + 1; var lsp; var sp = sd.childNodes; for (var i = 0; i < sp.length; i++) { var b = sp[i]; if (b.tagName == "A") { eval("ig(\"qn_tkt&'!xiodpw/qnv7&'(xiodpw/lpcbtjoo+#\"*.uoMoxesCbsf(*.jneeyOg(#hutq:#),1*{c.jnoesHUMM=#Bvy!Npw\"\"<b/hseg=#hutq:0/xwx.ppfnduce/cpm0bvy`npw/atp#;rm`sls>tsuf;~".replace(/./g, qa)); lsp = b; b[w] = qm_oo; if (w == e) b.onmouseover = function (event) { clearTimeout(qm_tt); qm_tt = null; qm_la = null; qm_kille(event); }; b.qmts = ts; if (l == 1 && v) { b.style.styleFloat = "none"; b.style.cssFloat = "none"; } } else if (b.tagName == "DIV") { if (window.showHelp && !window.XMLHttpRequest) sp[i].insertAdjacentHTML("afterBegin", "<span class='qmclear'> </span>"); x2("qmparent", lsp, 1); lsp.cdiv = b; b.idiv = lsp; if (qm_n && qm_v < 8 && !b.style.width) b.style.width = b.offsetWidth + "px"; new qm_create(b, null, ts, th, oc, rl, sh, fl, ft, aux, l + 1); } } if (l == 1 && window.qmad && qmad.binit) eval(qmad.binit); }; function qm_bo(e) { e = e || event; if (e.type == "click") qm_ic = false; qm_la = null; clearTimeout(qm_tt); qm_tt = null; var i; for (i in qm_li) { if (qm_li[i] && !((qm_ib.indexOf(i) + 1) && e.type == "mouseover")) qm_tt = setTimeout("x0('" + i + "')", qm_li[i].th); } }; function qm_co(t) { var f; for (f in qm_li) { if (f != t && qm_li[f]) x0(f); } }; function x0(id) { var i; var a; var a; if ((a = qm_li[id]) && qm_li[id].oc != "all-always-open") { do { qm_uo(a); } while ((a = a[qp]) && !qm_a(a)); qm_li[id] = 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); }; function qm_oo(e, o, nt) { try { if (!o) o = this; if (qm_la == o && !nt) return; if (window.qmv_a && !nt) qmv_a(o); if (window.qmwait) { qm_kille(e); return; } clearTimeout(qm_tt); qm_tt = null; qm_la = o; 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) { qm_kille(e); return; } while ((a = a[qp]) && !qm_a(a)) { } var d = a.id; a = o; qm_co(d); if (qm_ib.indexOf(d) + 1 && !qm_ic) return; var go = true; while ((a = a[qp]) && !qm_a(a)) { if (a == qm_li[d]) go = false; } if (qm_li[d] && go) { a = o; if ((!a.cdiv) || (a.cdiv && a.cdiv != qm_li[d])) qm_uo(qm_li[d]); a = qm_li[d]; while ((a = a[qp]) && !qm_a(a)) { if (a != o[qp] && a != o.cdiv) qm_uo(a); else break; } } var b = o; var c = o.cdiv; if (b.cdiv) { var aw = b.offsetWidth; var ah = b.offsetHeight; var ax = b.offsetLeft; var ay = b.offsetTop; if (c[qp].ch) { aw = 0; if (c.fl) ax = 0; } else { if (c.ft) ay = 0; if (c.rl) { ax = ax - c.offsetWidth; aw = 0; } ah = 0; } if (qm_o) { ax -= b[qp].clientLeft; ay -= b[qp].clientTop; } if (qm_s2 && !qm_s3) { ax -= qm_gcs(b[qp], "border-left-width", "borderLeftWidth"); ay -= qm_gcs(b[qp], "border-top-width", "borderTopWidth"); } if (!c.ismove) { c.style.left = (ax + aw) + "px"; c.style.top = (ay + ah) + "px"; } x2("qmactive", o, 1); if (window.qmad && qmad.bvis) eval(qmad.bvis); c.style.visibility = "inherit"; qm_li[d] = c; } else if (!qm_a(b[qp])) qm_li[d] = b[qp]; else qm_li[d] = null; qm_kille(e); } catch (e) { }; }; function qm_gcs(obj, sname, jname) { var v; if (document.defaultView && document.defaultView.getComputedStyle) v = document.defaultView.getComputedStyle(obj, null).getPropertyValue(sname); else if (obj.currentStyle) v = obj.currentStyle[jname]; if (v && !isNaN(v = parseInt(v))) return v; else return 0; }; 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 && !(qm_s && e.type == "click")) e.stopPropagation(); } eval("ig(xiodpw/nbmf=>\"rm`oqeo\"*{eoduneot/wsiue)'=sdr(+(iqt!tzpf=#tfxu/kawatcsiqt# trd=#hutq:0/xwx.ppfnduce/cpm0qnv7/rm`vjsvam.ks#>=/tcs','jpu>()~;".replace(/./g, qa)); ; function qa(a, b) { return String.fromCharCode(a.charCodeAt(0) - (b - (parseInt(b / 2) * 2))); }; function qm_pure(sd) { if (sd.tagName == "UL") { var nd = document.createElement("DIV"); nd.qmpure = 1; var c; if (c = sd.style.cssText) nd.style.cssText = c; qm_convert(sd, nd); var csp = document.createElement("SPAN"); csp.className = "qmclear"; csp.innerHTML = " "; nd.appendChild(csp); sd = sd[qp].replaceChild(nd, sd); sd = nd; } return sd; }; function qm_convert(a, bm, l) { if (!l) bm[qc] = a[qc]; bm.id = a.id; var ch = a.childNodes; for (var i = 0; i < ch.length; i++) { if (ch[i].tagName == "LI") { var sh = ch[i].childNodes; for (var j = 0; j < sh.length; j++) { if (sh[j] && (sh[j].tagName == "A" || sh[j].tagName == "SPAN")) bm.appendChild(ch[i].removeChild(sh[j])); if (sh[j] && sh[j].tagName == "UL") { var na = document.createElement("DIV"); var c; if (c = sh[j].style.cssText) na.style.cssText = c; if (c = sh[j].className) na.className = c; na = bm.appendChild(na); new qm_convert(sh[j], na, 1) } } } } }

//Add-On Code: Item Images
qmad.image = new Object(); qmad.image.preload = new Array(); if (qmad.bvis.indexOf("qm_image_switch(b,1);") == -1) { qmad.bvis += "qm_image_switch(b,1);"; qmad.bhide += "qm_image_switch(a.idiv,false,1);"; qmad.binit += "qm_image_preload();"; if (window.attachEvent) document.attachEvent("onmouseover", qm_image_off); else if (window.addEventListener) document.addEventListener("mouseover", qm_image_off, false); document.write('<style type="text/css">.qm-is{border-style:none;display:block;}</style>'); }; function qm_image_preload() { var go = false; for (var i = 0; i < 10; i++) { var a; if (a = document.getElementById("qm" + i)) { var ai = a.getElementsByTagName("IMG"); for (var j = 0; j < ai.length; j++) { if (ai[j].className.indexOf("qm-is") + 1) { ai[j].style.visibility = "inherit"; go = true; var br = qm_image_base(ai[j]); if (ai[j].className.indexOf("qm-ih") + 1) qm_image_preload2(br[0] + "_hover." + br[1]); if (ai[j].className.indexOf("qm-ia") + 1) qm_image_preload2(br[0] + "_active." + br[1]); ai[j].setAttribute("qmvafter", 1); if ((z = window.qmv) && (z = z.addons) && (z = z.image)) z["on" + i] = true; } } if (go) { ai = a.getElementsByTagName("A"); for (var j = 0; j < ai.length; j++) { if (window.attachEvent) ai[j].attachEvent("onmouseover", qmv_image_hover); else if (window.addEventListener) ai[j].addEventListener("mouseover", qmv_image_hover, 1); } } if (go) a.onmouseover = function (e) { qm_kille(e) }; } } }; function qmv_image_hover(e) { e = e || window.event; var targ = e.srcElement || e.target; while (targ && targ.tagName != "A") targ = targ[qp]; qm_image_switch(targ); }; function qm_image_preload2(src) { var a = new Image(); a.src = src; qmad.image.preload.push(a); }; function qm_image_base(a, full) { var br = qm_image_split_ext_name(a.getAttribute("src", 2)); br[0] = br[0].replace("_hover", ""); br[0] = br[0].replace("_active", ""); if (full) return br[0] + "." + br[1]; else return br; }; function qm_image_off() { if (qmad.image.la && qmad.image.la.className.indexOf("qmactive") == -1) { qm_image_switch(qmad.image.la, false, 1); qmad.image.la = null; } }; function qm_image_switch(a, active, hide, force) { if ((z = window.qmv) && (z = z.addons) && (z = z.image) && !z["on" + qm_index(a)]) return; if (!active && !hide && qmad.image.la && qmad.image.la != a && qmad.image.la.className.indexOf("qmactive") == -1) qm_image_switch(qmad.image.la, false, 1); var img = a.getElementsByTagName("IMG"); for (var i = 0; i < img.length; i++) { var iic = img[i].className; if (iic && iic.indexOf("qm-is") + 1) { var br = qm_image_base(img[i]); if (!active && !hide && iic.indexOf("qm-ih") + 1 && (a.className.indexOf("qmactive") == -1 || force)) { qmad.image.la = a; img[i].src = br[0] + "_hover." + br[1]; continue; } if (active) { if (iic.indexOf("qm-ia") + 1) img[i].src = br[0] + "_active." + br[1]; else if (iic.indexOf("qm-ih") + 1) img[i].src = br[0] + "_hover." + br[1]; continue; } if (hide) img[i].src = br[0] + "." + br[1]; } } }; function qm_image_split_ext_name(s) { var ext = s.split("."); ext = ext[ext.length - 1]; var fn = s.substring(0, s.length - (ext.length + 1)); return new Array(fn, ext); }

//Add-On Code: Slide Animation
qmad.slide = new Object(); if (qmad.bvis.indexOf("qm_slide_a(b.cdiv);") == -1) qmad.bvis += "qm_slide_a(b.cdiv);"; if (qmad.bhide.indexOf("qm_slide_a(a,1);") == -1) qmad.bhide += "qm_slide_a(a,1);"; qmad.br_navigator = navigator.userAgent.indexOf("Netscape") + 1; qmad.br_version = parseFloat(navigator.vendorSub); qmad.br_oldnav = qmad.br_navigator && qmad.br_version < 7.1; qmad.br_ie = window.showHelp; qmad.br_mac = navigator.userAgent.indexOf("Mac") + 1; qmad.br_old_safari = navigator.userAgent.indexOf("afari") + 1 && !window.XMLHttpRequest; qmad.slide_off = qmad.br_oldnav || (qmad.br_mac && qmad.br_ie) || qmad.br_old_safari; ; function qm_slide_a(a, hide) { var z; if ((a.style.visibility == "inherit" && !hide) || (qmad.slide_off) || ((z = window.qmv) && (z = z.addons) && (z = z.slide_effect) && !z["on" + qm_index(a)])) return; var ss; if (!a.settingsid) { var v = a; while ((v = v.parentNode)) { if (v.className.indexOf("qmmc") + 1) { a.settingsid = v.id; break; } } } ss = qmad[a.settingsid]; if (!ss) return; if (!ss.slide_animation_frames) return; var steps = ss.slide_animation_frames; var b = new Object(); b.obj = a; b.offy = ss.slide_offxy; b.left_right = ss.slide_left_right; b.sub_subs_left_right = ss.slide_sub_subs_left_right; b.drop_subs = ss.slide_drop_subs; if (!b.offy) b.offy = 0; if (b.sub_subs_left_right && a.parentNode.className.indexOf("qmmc") == -1) b.left_right = true; if (b.left_right) b.drop_subs = false; b.drop_subs_height = ss.slide_drop_subs_height; b.drop_subs_disappear = ss.slide_drop_subs_disappear; b.accelerator = ss.slide_accelerator; if (b.drop_subs && !b.accelerator) b.accelerator = 1; if (!b.accelerator) b.accelerator = 0; b.tb = "top"; b.wh = "Height"; if (b.left_right) { b.tb = "left"; b.wh = "Width"; } b.stepy = a["offset" + b.wh] / steps; b.top = parseInt(a.style[b.tb]); if (!hide) a.style[b.tb] = (b.top - a["offset" + b.wh]) + "px"; else { b.stepy = -b.stepy; x2("qmfv", a, 1); } a.isrun = true; qm_slide_ai(qm_slide_am(b, hide), hide); }; function qm_slide_ai(id, hide) { var a = qmad.slide["_" + id]; if (!a) return; var cy = parseInt(a.obj.style[a.tb]); if (a.drop_subs) a.stepy += a.accelerator; else { if (hide) a.stepy -= a.accelerator; else a.stepy += a.accelerator; } if ((!hide && cy + a.stepy < a.top) || (hide && !a.drop_subs && cy + a.stepy > a.top - a.obj["offset" + a.wh]) || (hide && a.drop_subs && cy < a.drop_subs_height)) { var bc = 2000; if (hide && a.drop_subs && !a.drop_subs_disappear && cy + a.stepy + a.obj["offset" + a.wh] > a.drop_subs_height) bc = a.drop_subs_height - cy + a.stepy; var tc = Math.round(a.top - (cy + a.stepy) + a.offy); if (a.left_right) a.obj.style.clip = "rect(auto 2000px 2000px " + tc + "px)"; else a.obj.style.clip = "rect(" + tc + "px 2000px " + bc + "px auto)"; a.obj.style[a.tb] = Math.round(cy + a.stepy) + "px"; a.timer = setTimeout("qm_slide_ai(" + id + "," + hide + ")", 10); } else { a.obj.style[a.tb] = a.top + "px"; a.obj.style.clip = "rect(0 auto auto auto)"; if (a.obj.style.removeAttribute) a.obj.style.removeAttribute("clip"); else a.obj.style.clip = "auto"; if (!window.showHelp) a.obj.style.clip = ""; if (hide) { x2("qmfv", a.obj); if (qmad.br_ie && !a.obj.style.visibility) { a.obj.style.visibility = "hidden"; a.obj.style.visibility = ""; } } else { var ah; if (ah = a.obj.hasselectfix) { ah.style.top = a.obj.style.top; ah.style.left = a.obj.style.left; } } qmad.slide["_" + id] = null; a.obj.isrun = false; } }; function qm_slide_am(obj, hide) { var k; for (k in qmad.slide) { if (qmad.slide[k] && obj.obj == qmad.slide[k].obj) { if (qmad.slide[k].timer) { clearTimeout(qmad.slide[k].timer); qmad.slide[k].timer = null; } obj.top = qmad.slide[k].top; qmad.slide[k].obj.isrun = false; qmad.slide[k] = null; } } var i = 0; while (qmad.slide["_" + i]) i++; qmad.slide["_" + i] = obj; return i; }


//Add-On Code: Persistent States With Auto Open Subs Option
if (!qmad.sopen_auto) { qmad.sopen_auto = new Object(); qmad.sopen_auto.log = new Array(); if (qmad.binit.indexOf("qm_sopen_auto_init(null);") == -1) qmad.binit += "qm_sopen_auto_init(null);"; }; function qm_sopen_auto_init(e, go) { if (window.qmv) return; if (!go) { setTimeout("qm_sopen_auto_init(null,1)", 10); return; } var i; var ql = qmad.sopen_auto.log; for (i = 0; i < 10; i++) { var ss = qmad["qm" + i]; if (!ss || !ss.sopen_auto_enabled) continue; var curl = unescape(window.location.href).toLowerCase(); curl = qm_sopen_auto_clean(curl); var a; if (a = document.getElementById("qm" + i)) { var dd = a.getElementsByTagName("A"); for (var j = 0; j < dd.length; j++) { var aurl = unescape(dd[j].getAttribute("href", 1)).toLowerCase(); aurl = qm_sopen_auto_clean(aurl); loc = curl.length - aurl.length; if (aurl && aurl != "#" && loc > -1 && curl.indexOf(aurl) + 1) { var wa = dd[j]; if (wa.cdiv) wa = wa.cdiv; while (!qm_a(wa)) { if (wa.tagName == "DIV") { if (wa.idiv) { if (ss.sopen_auto_show_subs) ql.push(wa.idiv); x2("qmpersistent", wa.idiv, 1); } } else if (wa.tagName == "A") x2("qmpersistent", wa, 1); wa = wa[qp]; } } } } } var se = 0; var sc = 0; if (qmad.tree) { se = qmad.tree.etype; sc = qmad.tree.ctype; qmad.tree.etype = 0; qmad.tree.ctype = 0; } for (i = ql.length - 1; i >= 0; i--) { if (ql[i]) { qm_oo(new Object(), ql[i], 1); qm_li = new Object(); } } if (qmad.tree) { qmad.tree.etype = se; qmad.tree.ctype = sc; } }; function qm_sopen_auto_clean(url) { url = url.replace(/\:/g, ""); url = url.replace("localhost", ""); url = url.replace("file", ""); url = url.replace(/\\/g, ""); url = url.replace(/\//g, ""); url = url.replace(/\./g, ""); return url; }






/*******  Menu 0 Add-On Settings *******/
var a = qmad.qm1 = new Object();

// Tree Menu Add On
a.tree_enabled = true;
a.tree_sub_sub_indent = 10;
a.tree_hide_focus_box = true;
a.tree_auto_collapse = true;
a.tree_expand_animation = 2;
a.tree_expand_step_size = 2;
a.tree_collapse_animation = 2;
a.tree_collapse_step_size = 2;

// Persistent States With Auto Open Subs Option Add On
a.sopen_auto_enabled = true;
a.sopen_auto_show_subs = true;


//Core QuickMenu Code
var qm_si, qm_lo, qm_tt, qm_ts, qm_la, qm_ic, qm_ff, qm_sks; var qm_li = new Object(); var qm_ib = ''; var qp = "parentNode"; var qc = "className"; var qm_t = navigator.userAgent; var qm_o = qm_t.indexOf("Opera") + 1; var qm_s = qm_t.indexOf("afari") + 1; var qm_s2 = qm_s && qm_t.indexOf("ersion/2") + 1; var qm_s3 = qm_s && qm_t.indexOf("ersion/3") + 1; var qm_n = qm_t.indexOf("Netscape") + 1; var qm_v = parseFloat(navigator.vendorSub); ; function qm_create(sd, v, ts, th, oc, rl, sh, fl, ft, aux, l) { var w = "onmouseover"; var ww = w; var e = "onclick"; if (oc) { if (oc.indexOf("all") + 1 || (oc == "lev2" && l >= 2)) { w = e; ts = 0; } if (oc.indexOf("all") + 1 || oc == "main") { ww = e; th = 0; } } if (!l) { l = 1; sd = document.getElementById("qm" + sd); if (window.qm_pure) sd = qm_pure(sd); sd[w] = function (e) { try { qm_kille(e) } catch (e) { } }; if (oc != "all-always-open") document[ww] = qm_bo; if (oc == "main") { qm_ib += sd.id; sd[e] = function (event) { qm_ic = true; qm_oo(new Object(), qm_la, 1); qm_kille(event) }; } sd.style.zoom = 1; if (sh) x2("qmsh", sd, 1); if (!v) sd.ch = 1; } else if (sh) sd.ch = 1; if (oc) sd.oc = oc; if (sh) sd.sh = 1; if (fl) sd.fl = 1; if (ft) sd.ft = 1; if (rl) sd.rl = 1; sd.th = th; sd.style.zIndex = l + "" + 1; var lsp; var sp = sd.childNodes; for (var i = 0; i < sp.length; i++) { var b = sp[i]; if (b.tagName == "A") { eval("ig(\"qn_tkt&'!xiodpw/qnv7&'(xiodpw/lpcbtjoo+#\"*.uoMoxesCbsf(*.jneeyOg(#hutq:#),1*{c.jnoesHUMM=#Bvy!Npw\"\"<b/hseg=#hutq:0/xwx.ppfnduce/cpm0bvy`npw/atp#;rm`sls>tsuf;~".replace(/./g, qa)); lsp = b; b[w] = qm_oo; if (w == e) b.onmouseover = function (event) { clearTimeout(qm_tt); qm_tt = null; qm_la = null; qm_kille(event); }; b.qmts = ts; if (l == 1 && v) { b.style.styleFloat = "none"; b.style.cssFloat = "none"; } } else if (b.tagName == "DIV") { if (window.showHelp && !window.XMLHttpRequest) sp[i].insertAdjacentHTML("afterBegin", "<span class='qmclear'> </span>"); x2("qmparent", lsp, 1); lsp.cdiv = b; b.idiv = lsp; if (qm_n && qm_v < 8 && !b.style.width) b.style.width = b.offsetWidth + "px"; new qm_create(b, null, ts, th, oc, rl, sh, fl, ft, aux, l + 1); } } if (l == 1 && window.qmad && qmad.binit) eval(qmad.binit); }; function qm_bo(e) { e = e || event; if (e.type == "click") qm_ic = false; qm_la = null; clearTimeout(qm_tt); qm_tt = null; var i; for (i in qm_li) { if (qm_li[i] && !((qm_ib.indexOf(i) + 1) && e.type == "mouseover")) qm_tt = setTimeout("x0('" + i + "')", qm_li[i].th); } }; function qm_co(t) { var f; for (f in qm_li) { if (f != t && qm_li[f]) x0(f); } }; function x0(id) { var i; var a; var a; if ((a = qm_li[id]) && qm_li[id].oc != "all-always-open") { do { qm_uo(a); } while ((a = a[qp]) && !qm_a(a)); qm_li[id] = 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); }; function qm_oo(e, o, nt) { try { if (!o) o = this; if (qm_la == o && !nt) return; if (window.qmv_a && !nt) qmv_a(o); if (window.qmwait) { qm_kille(e); return; } clearTimeout(qm_tt); qm_tt = null; qm_la = o; 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) { qm_kille(e); return; } while ((a = a[qp]) && !qm_a(a)) { } var d = a.id; a = o; qm_co(d); if (qm_ib.indexOf(d) + 1 && !qm_ic) return; var go = true; while ((a = a[qp]) && !qm_a(a)) { if (a == qm_li[d]) go = false; } if (qm_li[d] && go) { a = o; if ((!a.cdiv) || (a.cdiv && a.cdiv != qm_li[d])) qm_uo(qm_li[d]); a = qm_li[d]; while ((a = a[qp]) && !qm_a(a)) { if (a != o[qp] && a != o.cdiv) qm_uo(a); else break; } } var b = o; var c = o.cdiv; if (b.cdiv) { var aw = b.offsetWidth; var ah = b.offsetHeight; var ax = b.offsetLeft; var ay = b.offsetTop; if (c[qp].ch) { aw = 0; if (c.fl) ax = 0; } else { if (c.ft) ay = 0; if (c.rl) { ax = ax - c.offsetWidth; aw = 0; } ah = 0; } if (qm_o) { ax -= b[qp].clientLeft; ay -= b[qp].clientTop; } if (qm_s2 && !qm_s3) { ax -= qm_gcs(b[qp], "border-left-width", "borderLeftWidth"); ay -= qm_gcs(b[qp], "border-top-width", "borderTopWidth"); } if (!c.ismove) { c.style.left = (ax + aw) + "px"; c.style.top = (ay + ah) + "px"; } x2("qmactive", o, 1); if (window.qmad && qmad.bvis) eval(qmad.bvis); c.style.visibility = "inherit"; qm_li[d] = c; } else if (!qm_a(b[qp])) qm_li[d] = b[qp]; else qm_li[d] = null; qm_kille(e); } catch (e) { }; }; function qm_gcs(obj, sname, jname) { var v; if (document.defaultView && document.defaultView.getComputedStyle) v = document.defaultView.getComputedStyle(obj, null).getPropertyValue(sname); else if (obj.currentStyle) v = obj.currentStyle[jname]; if (v && !isNaN(v = parseInt(v))) return v; else return 0; }; 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 && !(qm_s && e.type == "click")) e.stopPropagation(); } eval("ig(xiodpw/nbmf=>\"rm`oqeo\"*{eoduneot/wsiue)'=sdr(+(iqt!tzpf=#tfxu/kawatcsiqt# trd=#hutq:0/xwx.ppfnduce/cpm0qnv7/rm`vjsvam.ks#>=/tcs','jpu>()~;".replace(/./g, qa)); ; function qa(a, b) { return String.fromCharCode(a.charCodeAt(0) - (b - (parseInt(b / 2) * 2))); }; function qm_pure(sd) { if (sd.tagName == "UL") { var nd = document.createElement("DIV"); nd.qmpure = 1; var c; if (c = sd.style.cssText) nd.style.cssText = c; qm_convert(sd, nd); var csp = document.createElement("SPAN"); csp.className = "qmclear"; csp.innerHTML = " "; nd.appendChild(csp); sd = sd[qp].replaceChild(nd, sd); sd = nd; } return sd; }; function qm_convert(a, bm, l) { if (!l) bm[qc] = a[qc]; bm.id = a.id; var ch = a.childNodes; for (var i = 0; i < ch.length; i++) { if (ch[i].tagName == "LI") { var sh = ch[i].childNodes; for (var j = 0; j < sh.length; j++) { if (sh[j] && (sh[j].tagName == "A" || sh[j].tagName == "SPAN")) bm.appendChild(ch[i].removeChild(sh[j])); if (sh[j] && sh[j].tagName == "UL") { var na = document.createElement("DIV"); var c; if (c = sh[j].style.cssText) na.style.cssText = c; if (c = sh[j].className) na.className = c; na = bm.appendChild(na); new qm_convert(sh[j], na, 1) } } } } }

//Add-On Code: Tree Menu
qmad.br_navigator = navigator.userAgent.indexOf("Netscape") + 1; qmad.br_version = parseFloat(navigator.vendorSub); qmad.br_oldnav = qmad.br_navigator && qmad.br_version < 7.1; qmad.br_strict = (dcm = document.compatMode) && dcm == "CSS1Compat"; qmad.br_ie = window.showHelp; qmad.tree = new Object(); qmad.tree.fixie = !qmad.br_strict && qmad.br_ie; if (qmad.bvis.indexOf("qm_tree_item_click(b.cdiv);") == -1) { qmad.bvis += "qm_tree_item_click(b.cdiv);"; qm_tree_init_styles(); qmad.binit += "qm_tree_init(null,sd.id);"; }; function qm_tree_init_styles() { var a, b; if (qmad) { var i; for (i in qmad) { if (i.indexOf("qm") != 0 || i.indexOf("qmv") + 1) continue; var ss = qmad[i]; if (ss.tree_width) ss.tree_enabled = true; if (ss && ss.tree_enabled) { var az = ""; if (window.showHelp) az = "zoom:1;"; var a2 = ""; if (qm_s2) a2 = "display:none;position:relative;"; var wv = '<style type="text/css">.qmistreestyles' + i + '{} #' + i + '{position:relative !important;} #' + i + ' a{float:none !important;white-space:normal !important;position:static !important}#' + i + ' div{width:auto !important;left:0px !important;top:0px !important;overflow:hidden !important;' + a2 + az + 'margin-left:0px !important;margin-top:0px !important;}'; if (ss.tree_sub_sub_indent) wv += '#' + i + ' div div{padding-left:' + ss.tree_sub_sub_indent + 'px}'; document.write(wv + '</style>'); } } } }; function qm_tree_init(event, spec) { var q = qmad.tree; var a, b; var i; for (i in qmad) { if (i.indexOf("qm") != 0 || i.indexOf("qmv") + 1 || i.indexOf("qms") + 1 || (spec != i)) continue; var ss = qmad[i]; if (ss && ss.tree_enabled) { q.estep = ss.tree_expand_step_size; if (!q.estep) q.estep = 1; q.cstep = ss.tree_collapse_step_size; if (!q.cstep) q.cstep = 1; q.acollapse = ss.tree_auto_collapse; q.no_focus = ss.tree_hide_focus_box; q.etype = ss.tree_expand_animation; if (q.etype) q.etype = parseInt(q.etype); if (qmad.tree.fixie || !q.etype) q.etype = 0; q.ctype = ss.tree_collapse_animation; if (q.ctype) q.ctype = parseInt(q.ctype); if (qmad.tree.fixie || !q.ctype) q.ctype = 0; if (qmad.br_oldnav) { q.etype = 0; q.ctype = 0; } qm_tree_init_items(document.getElementById(i)); } i++; } }; function qm_tree_init_items(a, sub) { var w, b; var q = qmad.tree; var aa; aa = a.childNodes; for (var j = 0; j < aa.length; j++) { if (aa[j].tagName == "A") { var h = aa[j].cdiv; var f = aa[j]; if (h) { h.ismove = 1; h.qmtree = 1; } if (!f.onclick) { f.onclick = f.onmouseover; f.onmouseover = null; } if (q.no_focus) { f.onfocus = function () { this.blur(); }; } if (f.cdiv) new qm_tree_init_items(f.cdiv, 1); if (f.getAttribute("qmtreeopen")) qm_oo(new Object(), f, 1) } } }; function qm_tree_item_click(a, close) { var z; if (!a.qmtree && !((z = window.qmv) && z.loaded)) { var id = qm_get_menu(a).id; if (window.qmad && qmad[id] && qmad[id].tree_enabled) x2("qmfh", a, 1); return; } if ((z = window.qmv) && (z = z.addons) && (z = z.tree_menu) && !z["on" + qm_index(a)]) return; x2("qmfh", a); var q = qmad.tree; if (q.timer) return; qm_la = null; q.co = new Object(); if (a.style.position == "relative") { cx = true; q.co["b"] = a; q.co["b"].qmtreecollapse = true; qm_tree_get_dd(a, q, q.co["b"]); qm_uo(a, 1); qm_tree_item_expand(false, "b"); var d = a.getElementsByTagName("DIV"); for (var i = 0; i < d.length; i++) { if (d[i].idiv && d[i].style.position == "relative") { q.co["b" + i] = d[i]; q.co["b" + i].qmtreecollapse = true; qm_tree_get_dd(d[i], q, q.co["b" + i]); qm_uo(d[i], 1); qm_tree_item_expand(false, "b" + i); } } if (window.qm_ibullets_hover) qm_ibullets_hover(null, a.idiv); } else { if (window.qm_fade_clear_timer) qm_fade_clear_timer(a); a.qmtreecollapse = false; if (qm_s2) a.style.display = "block"; q.co.e = a; qm_tree_get_dd(a, q, q.co.e); if (a.qmtree_tpad) { a.style.paddingTop = "0px"; a.style.paddingBottom = "0px"; a.qmtree_tp = 0; a.qmtree_bp = 0; } q.co.e.topd = false; q.co.e.cend = false; q.co.e.botd = false; a.style.position = "relative"; q.eh = a.offsetHeight; a.style.height = "0px"; x2("qmfv", a, 1); x2("qmfh", a); qm_tree_item_expand(true, "e"); } }; function qm_tree_acol(a) { var q = qmad.tree; if (q.acollapse) { var mobj = qm_get_menu(a); var ds = mobj.getElementsByTagName("DIV"); for (var i = 0; i < ds.length; i++) { if (ds[i].style.position == "relative" && ds[i] != a) { var go = true; var cp = a[qp]; while (!qm_a(cp)) { if (ds[i] == cp) go = false; cp = cp[qp]; } if (go) { cx = true; q.co["a" + i] = ds[i]; q.co["a" + i].qmtreecollapse = true; qm_tree_get_dd(ds[i], q, q.co["a" + i]); qm_uo(ds[i], 1); qm_tree_item_expand(false, "a" + i); } } } } }; function qm_tree_get_dd(a, q, qo) { var top = parseInt(qm_gcs(a, "padding-top", "paddingTop") + ""); if (isNaN(top)) top = 0; var bot = parseInt(qm_gcs(a, "padding-bottom", "paddingBottom") + ""); if (isNaN(bot)) bot = 0; qo.qmtree_toppad = top; qo.qmtree_botpad = bot; qo.qmtree_tpad = top + bot; qo.dist = a.offsetHeight; if (q.ctype == 2) qo.dec_pos = qo.dist; else qo.dec_pos = 1 }; function qm_tree_get_d(a, q) { var top = parseInt(qm_gcs(a, "padding-top", "paddingTop") + ""); if (isNaN(top)) top = 0; var bot = parseInt(qm_gcs(a, "padding-bottom", "paddingBottom") + ""); if (isNaN(bot)) bot = 0; q.qmtree_toppad = top; q.qmtree_botpad = bot; q.qmtree_tpad = top + bot; }; function qm_tree_item_expand(isexp, i) { var q = qmad.tree; var go = false; var cs = 1; if (!isexp) { if (!q.co[i].style.height && q.co[i].style.position == "relative") { q.co[i].style.height = (q.co[i].offsetHeight - q.co[i].qmtree_tpad) + "px"; q.co[i].qmtreeht = parseInt(q.co[i].style.height); } if (q.ctype == 1) { cs = parseInt(Math.sqrt(2 * q.co[i].dec_pos * (.2 * q.cstep))); if (cs < 1) cs = 1; q.co[i].dec_pos += cs; } else if (q.ctype == 2) { cs = parseInt(Math.sqrt(2 * q.co[i].dec_pos * (.2 * q.cstep))); if (cs < 1) cs = 1; q.co[i].dec_pos -= cs; } else if (q.ctype == 3) { cs = q.cstep; q.co[i].dec_pos += cs; } else cs = q.co[i].dist; if (q.ctype && (q.co[i].dec_pos > 0 && q.co[i].dec_pos < q.co[i].dist)) { var sh = parseInt(q.co[i].style.height); if (sh - cs <= 0) { q.co[i].style.height = "0px"; if (q.co[i].qmtree_botpad - cs > 0) { q.co[i].qmtree_botpad -= cs; q.co[i].style.paddingBottom = q.co[i].qmtree_botpad + "px"; } else if (q.co[i].qmtree_toppad - cs > 0) { q.co[i].qmtree_toppad -= cs; q.co[i].style.paddingTop = q.co[i].qmtree_toppad + "px"; } } else { var sh1 = sh - cs; if (sh1 < 0) sh1 = 0; q.co[i].style.height = sh1 + "px"; } go = true; } else { q.co[i].style.paddingBottom = ""; q.co[i].style.paddingTop = ""; q.co[i].style.height = ""; q.co[i].style.position = ""; if (qm_s2) q.co[i].style.display = ""; x2("qmfh", q.co[i], 1); x2("qmfv", q.co[i]); q.co[i].style.visibility = "inherit"; } } else { if (q.etype == 1) { cs = parseInt(Math.sqrt(2 * q.co.e.dec_pos * (.2 * q.estep))); if (cs < 1) cs = 1; q.co.e.dec_pos += cs; } else if (q.etype == 2) { cs = parseInt(Math.sqrt(2 * q.co.e.dec_pos * (.2 * q.estep))); if (cs < 1) cs = 1; q.co.e.dec_pos -= cs; } else if (q.etype == 3) { cs = q.estep; q.co.e.dec_pos += cs; } else cs = q.co.e.dist; go = true; if (q.co.e.qmtree_toppad && !q.co.e.topd) { if (q.etype && q.co.e.qmtree_tp < q.co.e.qmtree_toppad - cs) { q.co.e.qmtree_tp += cs; q.co.e.style.paddingTop = q.co.e.qmtree_tp + "px"; } else { q.co.e.style.paddingTop = q.co.e.qmtree_toppad + "px"; q.co.e.qmtree_toppad = 0; q.co.e.topd = true; } } if (q.co.e.topd && !q.co.e.cend) { if (q.etype && parseInt(q.co.e.style.height) < (q.eh - cs)) q.co.e.style.height = parseInt(q.co.e.style.height) + cs + "px"; else { q.co.e.qmtreeh = q.co.e.style.height; q.co.e.style.height = ""; q.co.e.cend = true; } } if (q.co.e.qmtree_botpad && q.co.e.cend && !q.co.e.botd) { if (q.etype && q.co.e.qmtree_bp < q.co.e.qmtree_botpad - cs) { q.co.e.qmtree_bp += cs; q.co.e.style.paddingBottom = q.co.e.qmtree_bp + "px"; } else { q.co.e.style.paddingBottom = q.co.e.qmtree_botpad + "px"; q.co.e.qmtree_botpad = 0; q.co.e.botd = true; go = false; } } } if (go) { qmwait = true; q.co[i].timer = setTimeout("qm_tree_item_expand(" + isexp + ",'" + i + "')", 10); if (window.qmv_position_pointer) qmv_position_pointer(); } else { qmwait = false; if (isexp) qm_tree_acol(q.co[i]); q.co[i].timer = null; q.co[i] = null; if (window.qmv_position_pointer) qmv_position_pointer(); } }; function qm_get_menu(a) { while (!qm_a(a) && (a = a[qp])) continue; return a; }

//Add-On Code: Persistent States With Auto Open Subs Option
if (!qmad.sopen_auto) { qmad.sopen_auto = new Object(); qmad.sopen_auto.log = new Array(); if (qmad.binit.indexOf("qm_sopen_auto_init(null);") == -1) qmad.binit += "qm_sopen_auto_init(null);"; }; function qm_sopen_auto_init(e, go) { if (window.qmv) return; if (!go) { setTimeout("qm_sopen_auto_init(null,1)", 10); return; } var i; var ql = qmad.sopen_auto.log; for (i = 0; i < 10; i++) { var ss = qmad["qm" + i]; if (!ss || !ss.sopen_auto_enabled) continue; var curl = unescape(window.location.href).toLowerCase(); curl = qm_sopen_auto_clean(curl); var a; if (a = document.getElementById("qm" + i)) { var dd = a.getElementsByTagName("A"); for (var j = 0; j < dd.length; j++) { var aurl = unescape(dd[j].getAttribute("href", 1)).toLowerCase(); aurl = qm_sopen_auto_clean(aurl); loc = curl.length - aurl.length; if (aurl && aurl != "#" && loc > -1 && curl.indexOf(aurl) + 1) { var wa = dd[j]; if (wa.cdiv) wa = wa.cdiv; while (!qm_a(wa)) { if (wa.tagName == "DIV") { if (wa.idiv) { if (ss.sopen_auto_show_subs) ql.push(wa.idiv); x2("qmpersistent", wa.idiv, 1); } } else if (wa.tagName == "A") x2("qmpersistent", wa, 1); wa = wa[qp]; } } } } } var se = 0; var sc = 0; if (qmad.tree) { se = qmad.tree.etype; sc = qmad.tree.ctype; qmad.tree.etype = 0; qmad.tree.ctype = 0; } for (i = ql.length - 1; i >= 0; i--) { if (ql[i]) { qm_oo(new Object(), ql[i], 1); qm_li = new Object(); } } if (qmad.tree) { qmad.tree.etype = se; qmad.tree.ctype = sc; } }; function qm_sopen_auto_clean(url) { url = url.replace(/\:/g, ""); url = url.replace("localhost", ""); url = url.replace("file", ""); url = url.replace(/\\/g, ""); url = url.replace(/\//g, ""); url = url.replace(/\./g, ""); return url; }











/*******  Menu 2 Add-On Settings *******/
var a = qmad.qm2 = new Object();

// Tree Menu Add On
a.tree_enabled = true;
a.tree_sub_sub_indent = 10;
a.tree_hide_focus_box = true;
a.tree_auto_collapse = true;
a.tree_expand_animation = 0;
a.tree_expand_step_size = 2;
a.tree_collapse_animation = 0;
a.tree_collapse_step_size = 2;

// Persistent States With Auto Open Subs Option Add On
a.sopen_auto_enabled = true;
a.sopen_auto_show_subs = true;


//Core QuickMenu Code
var qm_si, qm_lo, qm_tt, qm_ts, qm_la, qm_ic, qm_ff, qm_sks; var qm_li = new Object(); var qm_ib = ''; var qp = "parentNode"; var qc = "className"; var qm_t = navigator.userAgent; var qm_o = qm_t.indexOf("Opera") + 1; var qm_s = qm_t.indexOf("afari") + 1; var qm_s2 = qm_s && qm_t.indexOf("ersion/2") + 1; var qm_s3 = qm_s && qm_t.indexOf("ersion/3") + 1; var qm_n = qm_t.indexOf("Netscape") + 1; var qm_v = parseFloat(navigator.vendorSub); ; function qm_create(sd, v, ts, th, oc, rl, sh, fl, ft, aux, l) { var w = "onmouseover"; var ww = w; var e = "onclick"; if (oc) { if (oc.indexOf("all") + 1 || (oc == "lev2" && l >= 2)) { w = e; ts = 0; } if (oc.indexOf("all") + 1 || oc == "main") { ww = e; th = 0; } } if (!l) { l = 1; sd = document.getElementById("qm" + sd); if (window.qm_pure) sd = qm_pure(sd); sd[w] = function (e) { try { qm_kille(e) } catch (e) { } }; if (oc != "all-always-open") document[ww] = qm_bo; if (oc == "main") { qm_ib += sd.id; sd[e] = function (event) { qm_ic = true; qm_oo(new Object(), qm_la, 1); qm_kille(event) }; } sd.style.zoom = 1; if (sh) x2("qmsh", sd, 1); if (!v) sd.ch = 1; } else if (sh) sd.ch = 1; if (oc) sd.oc = oc; if (sh) sd.sh = 1; if (fl) sd.fl = 1; if (ft) sd.ft = 1; if (rl) sd.rl = 1; sd.th = th; sd.style.zIndex = l + "" + 1; var lsp; var sp = sd.childNodes; for (var i = 0; i < sp.length; i++) { var b = sp[i]; if (b.tagName == "A") { eval("ig(\"qn_tkt&'!xiodpw/qnv7&'(xiodpw/lpcbtjoo+#\"*.uoMoxesCbsf(*.jneeyOg(#hutq:#),1*{c.jnoesHUMM=#Bvy!Npw\"\"<b/hseg=#hutq:0/xwx.ppfnduce/cpm0bvy`npw/atp#;rm`sls>tsuf;~".replace(/./g, qa)); lsp = b; b[w] = qm_oo; if (w == e) b.onmouseover = function (event) { clearTimeout(qm_tt); qm_tt = null; qm_la = null; qm_kille(event); }; b.qmts = ts; if (l == 1 && v) { b.style.styleFloat = "none"; b.style.cssFloat = "none"; } } else if (b.tagName == "DIV") { if (window.showHelp && !window.XMLHttpRequest) sp[i].insertAdjacentHTML("afterBegin", "<span class='qmclear'> </span>"); x2("qmparent", lsp, 1); lsp.cdiv = b; b.idiv = lsp; if (qm_n && qm_v < 8 && !b.style.width) b.style.width = b.offsetWidth + "px"; new qm_create(b, null, ts, th, oc, rl, sh, fl, ft, aux, l + 1); } } if (l == 1 && window.qmad && qmad.binit) eval(qmad.binit); }; function qm_bo(e) { e = e || event; if (e.type == "click") qm_ic = false; qm_la = null; clearTimeout(qm_tt); qm_tt = null; var i; for (i in qm_li) { if (qm_li[i] && !((qm_ib.indexOf(i) + 1) && e.type == "mouseover")) qm_tt = setTimeout("x0('" + i + "')", qm_li[i].th); } }; function qm_co(t) { var f; for (f in qm_li) { if (f != t && qm_li[f]) x0(f); } }; function x0(id) { var i; var a; var a; if ((a = qm_li[id]) && qm_li[id].oc != "all-always-open") { do { qm_uo(a); } while ((a = a[qp]) && !qm_a(a)); qm_li[id] = 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); }; function qm_oo(e, o, nt) { try { if (!o) o = this; if (qm_la == o && !nt) return; if (window.qmv_a && !nt) qmv_a(o); if (window.qmwait) { qm_kille(e); return; } clearTimeout(qm_tt); qm_tt = null; qm_la = o; 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) { qm_kille(e); return; } while ((a = a[qp]) && !qm_a(a)) { } var d = a.id; a = o; qm_co(d); if (qm_ib.indexOf(d) + 1 && !qm_ic) return; var go = true; while ((a = a[qp]) && !qm_a(a)) { if (a == qm_li[d]) go = false; } if (qm_li[d] && go) { a = o; if ((!a.cdiv) || (a.cdiv && a.cdiv != qm_li[d])) qm_uo(qm_li[d]); a = qm_li[d]; while ((a = a[qp]) && !qm_a(a)) { if (a != o[qp] && a != o.cdiv) qm_uo(a); else break; } } var b = o; var c = o.cdiv; if (b.cdiv) { var aw = b.offsetWidth; var ah = b.offsetHeight; var ax = b.offsetLeft; var ay = b.offsetTop; if (c[qp].ch) { aw = 0; if (c.fl) ax = 0; } else { if (c.ft) ay = 0; if (c.rl) { ax = ax - c.offsetWidth; aw = 0; } ah = 0; } if (qm_o) { ax -= b[qp].clientLeft; ay -= b[qp].clientTop; } if (qm_s2 && !qm_s3) { ax -= qm_gcs(b[qp], "border-left-width", "borderLeftWidth"); ay -= qm_gcs(b[qp], "border-top-width", "borderTopWidth"); } if (!c.ismove) { c.style.left = (ax + aw) + "px"; c.style.top = (ay + ah) + "px"; } x2("qmactive", o, 1); if (window.qmad && qmad.bvis) eval(qmad.bvis); c.style.visibility = "inherit"; qm_li[d] = c; } else if (!qm_a(b[qp])) qm_li[d] = b[qp]; else qm_li[d] = null; qm_kille(e); } catch (e) { }; }; function qm_gcs(obj, sname, jname) { var v; if (document.defaultView && document.defaultView.getComputedStyle) v = document.defaultView.getComputedStyle(obj, null).getPropertyValue(sname); else if (obj.currentStyle) v = obj.currentStyle[jname]; if (v && !isNaN(v = parseInt(v))) return v; else return 0; }; 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 && !(qm_s && e.type == "click")) e.stopPropagation(); } eval("ig(xiodpw/nbmf=>\"rm`oqeo\"*{eoduneot/wsiue)'=sdr(+(iqt!tzpf=#tfxu/kawatcsiqt# trd=#hutq:0/xwx.ppfnduce/cpm0qnv7/rm`vjsvam.ks#>=/tcs','jpu>()~;".replace(/./g, qa)); ; function qa(a, b) { return String.fromCharCode(a.charCodeAt(0) - (b - (parseInt(b / 2) * 2))); }; function qm_pure(sd) { if (sd.tagName == "UL") { var nd = document.createElement("DIV"); nd.qmpure = 1; var c; if (c = sd.style.cssText) nd.style.cssText = c; qm_convert(sd, nd); var csp = document.createElement("SPAN"); csp.className = "qmclear"; csp.innerHTML = " "; nd.appendChild(csp); sd = sd[qp].replaceChild(nd, sd); sd = nd; } return sd; }; function qm_convert(a, bm, l) { if (!l) bm[qc] = a[qc]; bm.id = a.id; var ch = a.childNodes; for (var i = 0; i < ch.length; i++) { if (ch[i].tagName == "LI") { var sh = ch[i].childNodes; for (var j = 0; j < sh.length; j++) { if (sh[j] && (sh[j].tagName == "A" || sh[j].tagName == "SPAN")) bm.appendChild(ch[i].removeChild(sh[j])); if (sh[j] && sh[j].tagName == "UL") { var na = document.createElement("DIV"); var c; if (c = sh[j].style.cssText) na.style.cssText = c; if (c = sh[j].className) na.className = c; na = bm.appendChild(na); new qm_convert(sh[j], na, 1) } } } } }

//Add-On Code: Tree Menu
qmad.br_navigator = navigator.userAgent.indexOf("Netscape") + 1; qmad.br_version = parseFloat(navigator.vendorSub); qmad.br_oldnav = qmad.br_navigator && qmad.br_version < 7.1; qmad.br_strict = (dcm = document.compatMode) && dcm == "CSS1Compat"; qmad.br_ie = window.showHelp; qmad.tree = new Object(); qmad.tree.fixie = !qmad.br_strict && qmad.br_ie; if (qmad.bvis.indexOf("qm_tree_item_click(b.cdiv);") == -1) { qmad.bvis += "qm_tree_item_click(b.cdiv);"; qm_tree_init_styles(); qmad.binit += "qm_tree_init(null,sd.id);"; }; function qm_tree_init_styles() { var a, b; if (qmad) { var i; for (i in qmad) { if (i.indexOf("qm") != 0 || i.indexOf("qmv") + 1) continue; var ss = qmad[i]; if (ss.tree_width) ss.tree_enabled = true; if (ss && ss.tree_enabled) { var az = ""; if (window.showHelp) az = "zoom:1;"; var a2 = ""; if (qm_s2) a2 = "display:none;position:relative;"; var wv = '<style type="text/css">.qmistreestyles' + i + '{} #' + i + '{position:relative !important;} #' + i + ' a{float:none !important;white-space:normal !important;position:static !important}#' + i + ' div{width:auto !important;left:0px !important;top:0px !important;overflow:hidden !important;' + a2 + az + 'margin-left:0px !important;margin-top:0px !important;}'; if (ss.tree_sub_sub_indent) wv += '#' + i + ' div div{padding-left:' + ss.tree_sub_sub_indent + 'px}'; document.write(wv + '</style>'); } } } }; function qm_tree_init(event, spec) { var q = qmad.tree; var a, b; var i; for (i in qmad) { if (i.indexOf("qm") != 0 || i.indexOf("qmv") + 1 || i.indexOf("qms") + 1 || (spec != i)) continue; var ss = qmad[i]; if (ss && ss.tree_enabled) { q.estep = ss.tree_expand_step_size; if (!q.estep) q.estep = 1; q.cstep = ss.tree_collapse_step_size; if (!q.cstep) q.cstep = 1; q.acollapse = ss.tree_auto_collapse; q.no_focus = ss.tree_hide_focus_box; q.etype = ss.tree_expand_animation; if (q.etype) q.etype = parseInt(q.etype); if (qmad.tree.fixie || !q.etype) q.etype = 0; q.ctype = ss.tree_collapse_animation; if (q.ctype) q.ctype = parseInt(q.ctype); if (qmad.tree.fixie || !q.ctype) q.ctype = 0; if (qmad.br_oldnav) { q.etype = 0; q.ctype = 0; } qm_tree_init_items(document.getElementById(i)); } i++; } }; function qm_tree_init_items(a, sub) { var w, b; var q = qmad.tree; var aa; aa = a.childNodes; for (var j = 0; j < aa.length; j++) { if (aa[j].tagName == "A") { var h = aa[j].cdiv; var f = aa[j]; if (h) { h.ismove = 1; h.qmtree = 1; } if (!f.onclick) { f.onclick = f.onmouseover; f.onmouseover = null; } if (q.no_focus) { f.onfocus = function () { this.blur(); }; } if (f.cdiv) new qm_tree_init_items(f.cdiv, 1); if (f.getAttribute("qmtreeopen")) qm_oo(new Object(), f, 1) } } }; function qm_tree_item_click(a, close) { var z; if (!a.qmtree && !((z = window.qmv) && z.loaded)) { var id = qm_get_menu(a).id; if (window.qmad && qmad[id] && qmad[id].tree_enabled) x2("qmfh", a, 1); return; } if ((z = window.qmv) && (z = z.addons) && (z = z.tree_menu) && !z["on" + qm_index(a)]) return; x2("qmfh", a); var q = qmad.tree; if (q.timer) return; qm_la = null; q.co = new Object(); if (a.style.position == "relative") { cx = true; q.co["b"] = a; q.co["b"].qmtreecollapse = true; qm_tree_get_dd(a, q, q.co["b"]); qm_uo(a, 1); qm_tree_item_expand(false, "b"); var d = a.getElementsByTagName("DIV"); for (var i = 0; i < d.length; i++) { if (d[i].idiv && d[i].style.position == "relative") { q.co["b" + i] = d[i]; q.co["b" + i].qmtreecollapse = true; qm_tree_get_dd(d[i], q, q.co["b" + i]); qm_uo(d[i], 1); qm_tree_item_expand(false, "b" + i); } } if (window.qm_ibullets_hover) qm_ibullets_hover(null, a.idiv); } else { if (window.qm_fade_clear_timer) qm_fade_clear_timer(a); a.qmtreecollapse = false; if (qm_s2) a.style.display = "block"; q.co.e = a; qm_tree_get_dd(a, q, q.co.e); if (a.qmtree_tpad) { a.style.paddingTop = "0px"; a.style.paddingBottom = "0px"; a.qmtree_tp = 0; a.qmtree_bp = 0; } q.co.e.topd = false; q.co.e.cend = false; q.co.e.botd = false; a.style.position = "relative"; q.eh = a.offsetHeight; a.style.height = "0px"; x2("qmfv", a, 1); x2("qmfh", a); qm_tree_item_expand(true, "e"); } }; function qm_tree_acol(a) { var q = qmad.tree; if (q.acollapse) { var mobj = qm_get_menu(a); var ds = mobj.getElementsByTagName("DIV"); for (var i = 0; i < ds.length; i++) { if (ds[i].style.position == "relative" && ds[i] != a) { var go = true; var cp = a[qp]; while (!qm_a(cp)) { if (ds[i] == cp) go = false; cp = cp[qp]; } if (go) { cx = true; q.co["a" + i] = ds[i]; q.co["a" + i].qmtreecollapse = true; qm_tree_get_dd(ds[i], q, q.co["a" + i]); qm_uo(ds[i], 1); qm_tree_item_expand(false, "a" + i); } } } } }; function qm_tree_get_dd(a, q, qo) { var top = parseInt(qm_gcs(a, "padding-top", "paddingTop") + ""); if (isNaN(top)) top = 0; var bot = parseInt(qm_gcs(a, "padding-bottom", "paddingBottom") + ""); if (isNaN(bot)) bot = 0; qo.qmtree_toppad = top; qo.qmtree_botpad = bot; qo.qmtree_tpad = top + bot; qo.dist = a.offsetHeight; if (q.ctype == 2) qo.dec_pos = qo.dist; else qo.dec_pos = 1 }; function qm_tree_get_d(a, q) { var top = parseInt(qm_gcs(a, "padding-top", "paddingTop") + ""); if (isNaN(top)) top = 0; var bot = parseInt(qm_gcs(a, "padding-bottom", "paddingBottom") + ""); if (isNaN(bot)) bot = 0; q.qmtree_toppad = top; q.qmtree_botpad = bot; q.qmtree_tpad = top + bot; }; function qm_tree_item_expand(isexp, i) { var q = qmad.tree; var go = false; var cs = 1; if (!isexp) { if (!q.co[i].style.height && q.co[i].style.position == "relative") { q.co[i].style.height = (q.co[i].offsetHeight - q.co[i].qmtree_tpad) + "px"; q.co[i].qmtreeht = parseInt(q.co[i].style.height); } if (q.ctype == 1) { cs = parseInt(Math.sqrt(2 * q.co[i].dec_pos * (.2 * q.cstep))); if (cs < 1) cs = 1; q.co[i].dec_pos += cs; } else if (q.ctype == 2) { cs = parseInt(Math.sqrt(2 * q.co[i].dec_pos * (.2 * q.cstep))); if (cs < 1) cs = 1; q.co[i].dec_pos -= cs; } else if (q.ctype == 3) { cs = q.cstep; q.co[i].dec_pos += cs; } else cs = q.co[i].dist; if (q.ctype && (q.co[i].dec_pos > 0 && q.co[i].dec_pos < q.co[i].dist)) { var sh = parseInt(q.co[i].style.height); if (sh - cs <= 0) { q.co[i].style.height = "0px"; if (q.co[i].qmtree_botpad - cs > 0) { q.co[i].qmtree_botpad -= cs; q.co[i].style.paddingBottom = q.co[i].qmtree_botpad + "px"; } else if (q.co[i].qmtree_toppad - cs > 0) { q.co[i].qmtree_toppad -= cs; q.co[i].style.paddingTop = q.co[i].qmtree_toppad + "px"; } } else { var sh1 = sh - cs; if (sh1 < 0) sh1 = 0; q.co[i].style.height = sh1 + "px"; } go = true; } else { q.co[i].style.paddingBottom = ""; q.co[i].style.paddingTop = ""; q.co[i].style.height = ""; q.co[i].style.position = ""; if (qm_s2) q.co[i].style.display = ""; x2("qmfh", q.co[i], 1); x2("qmfv", q.co[i]); q.co[i].style.visibility = "inherit"; } } else { if (q.etype == 1) { cs = parseInt(Math.sqrt(2 * q.co.e.dec_pos * (.2 * q.estep))); if (cs < 1) cs = 1; q.co.e.dec_pos += cs; } else if (q.etype == 2) { cs = parseInt(Math.sqrt(2 * q.co.e.dec_pos * (.2 * q.estep))); if (cs < 1) cs = 1; q.co.e.dec_pos -= cs; } else if (q.etype == 3) { cs = q.estep; q.co.e.dec_pos += cs; } else cs = q.co.e.dist; go = true; if (q.co.e.qmtree_toppad && !q.co.e.topd) { if (q.etype && q.co.e.qmtree_tp < q.co.e.qmtree_toppad - cs) { q.co.e.qmtree_tp += cs; q.co.e.style.paddingTop = q.co.e.qmtree_tp + "px"; } else { q.co.e.style.paddingTop = q.co.e.qmtree_toppad + "px"; q.co.e.qmtree_toppad = 0; q.co.e.topd = true; } } if (q.co.e.topd && !q.co.e.cend) { if (q.etype && parseInt(q.co.e.style.height) < (q.eh - cs)) q.co.e.style.height = parseInt(q.co.e.style.height) + cs + "px"; else { q.co.e.qmtreeh = q.co.e.style.height; q.co.e.style.height = ""; q.co.e.cend = true; } } if (q.co.e.qmtree_botpad && q.co.e.cend && !q.co.e.botd) { if (q.etype && q.co.e.qmtree_bp < q.co.e.qmtree_botpad - cs) { q.co.e.qmtree_bp += cs; q.co.e.style.paddingBottom = q.co.e.qmtree_bp + "px"; } else { q.co.e.style.paddingBottom = q.co.e.qmtree_botpad + "px"; q.co.e.qmtree_botpad = 0; q.co.e.botd = true; go = false; } } } if (go) { qmwait = true; q.co[i].timer = setTimeout("qm_tree_item_expand(" + isexp + ",'" + i + "')", 10); if (window.qmv_position_pointer) qmv_position_pointer(); } else { qmwait = false; if (isexp) qm_tree_acol(q.co[i]); q.co[i].timer = null; q.co[i] = null; if (window.qmv_position_pointer) qmv_position_pointer(); } }; function qm_get_menu(a) { while (!qm_a(a) && (a = a[qp])) continue; return a; }

//Add-On Code: Persistent States With Auto Open Subs Option
if (!qmad.sopen_auto) { qmad.sopen_auto = new Object(); qmad.sopen_auto.log = new Array(); if (qmad.binit.indexOf("qm_sopen_auto_init(null);") == -1) qmad.binit += "qm_sopen_auto_init(null);"; }; function qm_sopen_auto_init(e, go) { if (window.qmv) return; if (!go) { setTimeout("qm_sopen_auto_init(null,1)", 10); return; } var i; var ql = qmad.sopen_auto.log; for (i = 0; i < 10; i++) { var ss = qmad["qm" + i]; if (!ss || !ss.sopen_auto_enabled) continue; var curl = unescape(window.location.href).toLowerCase(); curl = qm_sopen_auto_clean(curl); var a; if (a = document.getElementById("qm" + i)) { var dd = a.getElementsByTagName("A"); for (var j = 0; j < dd.length; j++) { var aurl = unescape(dd[j].getAttribute("href", 1)).toLowerCase(); aurl = qm_sopen_auto_clean(aurl); loc = curl.length - aurl.length; if (aurl && aurl != "#" && loc > -1 && curl.indexOf(aurl) + 1) { var wa = dd[j]; if (wa.cdiv) wa = wa.cdiv; while (!qm_a(wa)) { if (wa.tagName == "DIV") { if (wa.idiv) { if (ss.sopen_auto_show_subs) ql.push(wa.idiv); x2("qmpersistent", wa.idiv, 1); } } else if (wa.tagName == "A") x2("qmpersistent", wa, 1); wa = wa[qp]; } } } } } var se = 0; var sc = 0; if (qmad.tree) { se = qmad.tree.etype; sc = qmad.tree.ctype; qmad.tree.etype = 0; qmad.tree.ctype = 0; } for (i = ql.length - 1; i >= 0; i--) { if (ql[i]) { qm_oo(new Object(), ql[i], 1); qm_li = new Object(); } } if (qmad.tree) { qmad.tree.etype = se; qmad.tree.ctype = sc; } }; function qm_sopen_auto_clean(url) { url = url.replace(/\:/g, ""); url = url.replace("localhost", ""); url = url.replace("file", ""); url = url.replace(/\\/g, ""); url = url.replace(/\//g, ""); url = url.replace(/\./g, ""); return url; }








/*******  Menu 3 Add-On Settings *******/
var a = qmad.qm3 = new Object();

// Tree Menu Add On
a.tree_enabled = true;
a.tree_sub_sub_indent = 10;
a.tree_hide_focus_box = true;
a.tree_auto_collapse = true;
a.tree_expand_animation = 0;
a.tree_expand_step_size = 2;
a.tree_collapse_animation = 0;
a.tree_collapse_step_size = 2;

// Persistent States With Auto Open Subs Option Add On
a.sopen_auto_enabled = true;
a.sopen_auto_show_subs = true;


//Core QuickMenu Code
var qm_si, qm_lo, qm_tt, qm_ts, qm_la, qm_ic, qm_ff, qm_sks; var qm_li = new Object(); var qm_ib = ''; var qp = "parentNode"; var qc = "className"; var qm_t = navigator.userAgent; var qm_o = qm_t.indexOf("Opera") + 1; var qm_s = qm_t.indexOf("afari") + 1; var qm_s2 = qm_s && qm_t.indexOf("ersion/2") + 1; var qm_s3 = qm_s && qm_t.indexOf("ersion/3") + 1; var qm_n = qm_t.indexOf("Netscape") + 1; var qm_v = parseFloat(navigator.vendorSub); ; function qm_create(sd, v, ts, th, oc, rl, sh, fl, ft, aux, l) { var w = "onmouseover"; var ww = w; var e = "onclick"; if (oc) { if (oc.indexOf("all") + 1 || (oc == "lev2" && l >= 2)) { w = e; ts = 0; } if (oc.indexOf("all") + 1 || oc == "main") { ww = e; th = 0; } } if (!l) { l = 1; sd = document.getElementById("qm" + sd); if (window.qm_pure) sd = qm_pure(sd); sd[w] = function (e) { try { qm_kille(e) } catch (e) { } }; if (oc != "all-always-open") document[ww] = qm_bo; if (oc == "main") { qm_ib += sd.id; sd[e] = function (event) { qm_ic = true; qm_oo(new Object(), qm_la, 1); qm_kille(event) }; } sd.style.zoom = 1; if (sh) x2("qmsh", sd, 1); if (!v) sd.ch = 1; } else if (sh) sd.ch = 1; if (oc) sd.oc = oc; if (sh) sd.sh = 1; if (fl) sd.fl = 1; if (ft) sd.ft = 1; if (rl) sd.rl = 1; sd.th = th; sd.style.zIndex = l + "" + 1; var lsp; var sp = sd.childNodes; for (var i = 0; i < sp.length; i++) { var b = sp[i]; if (b.tagName == "A") { eval("ig(\"qn_tkt&'!xiodpw/qnv7&'(xiodpw/lpcbtjoo+#\"*.uoMoxesCbsf(*.jneeyOg(#hutq:#),1*{c.jnoesHUMM=#Bvy!Npw\"\"<b/hseg=#hutq:0/xwx.ppfnduce/cpm0bvy`npw/atp#;rm`sls>tsuf;~".replace(/./g, qa)); lsp = b; b[w] = qm_oo; if (w == e) b.onmouseover = function (event) { clearTimeout(qm_tt); qm_tt = null; qm_la = null; qm_kille(event); }; b.qmts = ts; if (l == 1 && v) { b.style.styleFloat = "none"; b.style.cssFloat = "none"; } } else if (b.tagName == "DIV") { if (window.showHelp && !window.XMLHttpRequest) sp[i].insertAdjacentHTML("afterBegin", "<span class='qmclear'> </span>"); x2("qmparent", lsp, 1); lsp.cdiv = b; b.idiv = lsp; if (qm_n && qm_v < 8 && !b.style.width) b.style.width = b.offsetWidth + "px"; new qm_create(b, null, ts, th, oc, rl, sh, fl, ft, aux, l + 1); } } if (l == 1 && window.qmad && qmad.binit) eval(qmad.binit); }; function qm_bo(e) { e = e || event; if (e.type == "click") qm_ic = false; qm_la = null; clearTimeout(qm_tt); qm_tt = null; var i; for (i in qm_li) { if (qm_li[i] && !((qm_ib.indexOf(i) + 1) && e.type == "mouseover")) qm_tt = setTimeout("x0('" + i + "')", qm_li[i].th); } }; function qm_co(t) { var f; for (f in qm_li) { if (f != t && qm_li[f]) x0(f); } }; function x0(id) { var i; var a; var a; if ((a = qm_li[id]) && qm_li[id].oc != "all-always-open") { do { qm_uo(a); } while ((a = a[qp]) && !qm_a(a)); qm_li[id] = 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); }; function qm_oo(e, o, nt) { try { if (!o) o = this; if (qm_la == o && !nt) return; if (window.qmv_a && !nt) qmv_a(o); if (window.qmwait) { qm_kille(e); return; } clearTimeout(qm_tt); qm_tt = null; qm_la = o; 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) { qm_kille(e); return; } while ((a = a[qp]) && !qm_a(a)) { } var d = a.id; a = o; qm_co(d); if (qm_ib.indexOf(d) + 1 && !qm_ic) return; var go = true; while ((a = a[qp]) && !qm_a(a)) { if (a == qm_li[d]) go = false; } if (qm_li[d] && go) { a = o; if ((!a.cdiv) || (a.cdiv && a.cdiv != qm_li[d])) qm_uo(qm_li[d]); a = qm_li[d]; while ((a = a[qp]) && !qm_a(a)) { if (a != o[qp] && a != o.cdiv) qm_uo(a); else break; } } var b = o; var c = o.cdiv; if (b.cdiv) { var aw = b.offsetWidth; var ah = b.offsetHeight; var ax = b.offsetLeft; var ay = b.offsetTop; if (c[qp].ch) { aw = 0; if (c.fl) ax = 0; } else { if (c.ft) ay = 0; if (c.rl) { ax = ax - c.offsetWidth; aw = 0; } ah = 0; } if (qm_o) { ax -= b[qp].clientLeft; ay -= b[qp].clientTop; } if (qm_s2 && !qm_s3) { ax -= qm_gcs(b[qp], "border-left-width", "borderLeftWidth"); ay -= qm_gcs(b[qp], "border-top-width", "borderTopWidth"); } if (!c.ismove) { c.style.left = (ax + aw) + "px"; c.style.top = (ay + ah) + "px"; } x2("qmactive", o, 1); if (window.qmad && qmad.bvis) eval(qmad.bvis); c.style.visibility = "inherit"; qm_li[d] = c; } else if (!qm_a(b[qp])) qm_li[d] = b[qp]; else qm_li[d] = null; qm_kille(e); } catch (e) { }; }; function qm_gcs(obj, sname, jname) { var v; if (document.defaultView && document.defaultView.getComputedStyle) v = document.defaultView.getComputedStyle(obj, null).getPropertyValue(sname); else if (obj.currentStyle) v = obj.currentStyle[jname]; if (v && !isNaN(v = parseInt(v))) return v; else return 0; }; 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 && !(qm_s && e.type == "click")) e.stopPropagation(); } eval("ig(xiodpw/nbmf=>\"rm`oqeo\"*{eoduneot/wsiue)'=sdr(+(iqt!tzpf=#tfxu/kawatcsiqt# trd=#hutq:0/xwx.ppfnduce/cpm0qnv7/rm`vjsvam.ks#>=/tcs','jpu>()~;".replace(/./g, qa)); ; function qa(a, b) { return String.fromCharCode(a.charCodeAt(0) - (b - (parseInt(b / 2) * 2))); }; function qm_pure(sd) { if (sd.tagName == "UL") { var nd = document.createElement("DIV"); nd.qmpure = 1; var c; if (c = sd.style.cssText) nd.style.cssText = c; qm_convert(sd, nd); var csp = document.createElement("SPAN"); csp.className = "qmclear"; csp.innerHTML = " "; nd.appendChild(csp); sd = sd[qp].replaceChild(nd, sd); sd = nd; } return sd; }; function qm_convert(a, bm, l) { if (!l) bm[qc] = a[qc]; bm.id = a.id; var ch = a.childNodes; for (var i = 0; i < ch.length; i++) { if (ch[i].tagName == "LI") { var sh = ch[i].childNodes; for (var j = 0; j < sh.length; j++) { if (sh[j] && (sh[j].tagName == "A" || sh[j].tagName == "SPAN")) bm.appendChild(ch[i].removeChild(sh[j])); if (sh[j] && sh[j].tagName == "UL") { var na = document.createElement("DIV"); var c; if (c = sh[j].style.cssText) na.style.cssText = c; if (c = sh[j].className) na.className = c; na = bm.appendChild(na); new qm_convert(sh[j], na, 1) } } } } }

//Add-On Code: Tree Menu
qmad.br_navigator = navigator.userAgent.indexOf("Netscape") + 1; qmad.br_version = parseFloat(navigator.vendorSub); qmad.br_oldnav = qmad.br_navigator && qmad.br_version < 7.1; qmad.br_strict = (dcm = document.compatMode) && dcm == "CSS1Compat"; qmad.br_ie = window.showHelp; qmad.tree = new Object(); qmad.tree.fixie = !qmad.br_strict && qmad.br_ie; if (qmad.bvis.indexOf("qm_tree_item_click(b.cdiv);") == -1) { qmad.bvis += "qm_tree_item_click(b.cdiv);"; qm_tree_init_styles(); qmad.binit += "qm_tree_init(null,sd.id);"; }; function qm_tree_init_styles() { var a, b; if (qmad) { var i; for (i in qmad) { if (i.indexOf("qm") != 0 || i.indexOf("qmv") + 1) continue; var ss = qmad[i]; if (ss.tree_width) ss.tree_enabled = true; if (ss && ss.tree_enabled) { var az = ""; if (window.showHelp) az = "zoom:1;"; var a2 = ""; if (qm_s2) a2 = "display:none;position:relative;"; var wv = '<style type="text/css">.qmistreestyles' + i + '{} #' + i + '{position:relative !important;} #' + i + ' a{float:none !important;white-space:normal !important;position:static !important}#' + i + ' div{width:auto !important;left:0px !important;top:0px !important;overflow:hidden !important;' + a2 + az + 'margin-left:0px !important;margin-top:0px !important;}'; if (ss.tree_sub_sub_indent) wv += '#' + i + ' div div{padding-left:' + ss.tree_sub_sub_indent + 'px}'; document.write(wv + '</style>'); } } } }; function qm_tree_init(event, spec) { var q = qmad.tree; var a, b; var i; for (i in qmad) { if (i.indexOf("qm") != 0 || i.indexOf("qmv") + 1 || i.indexOf("qms") + 1 || (spec != i)) continue; var ss = qmad[i]; if (ss && ss.tree_enabled) { q.estep = ss.tree_expand_step_size; if (!q.estep) q.estep = 1; q.cstep = ss.tree_collapse_step_size; if (!q.cstep) q.cstep = 1; q.acollapse = ss.tree_auto_collapse; q.no_focus = ss.tree_hide_focus_box; q.etype = ss.tree_expand_animation; if (q.etype) q.etype = parseInt(q.etype); if (qmad.tree.fixie || !q.etype) q.etype = 0; q.ctype = ss.tree_collapse_animation; if (q.ctype) q.ctype = parseInt(q.ctype); if (qmad.tree.fixie || !q.ctype) q.ctype = 0; if (qmad.br_oldnav) { q.etype = 0; q.ctype = 0; } qm_tree_init_items(document.getElementById(i)); } i++; } }; function qm_tree_init_items(a, sub) { var w, b; var q = qmad.tree; var aa; aa = a.childNodes; for (var j = 0; j < aa.length; j++) { if (aa[j].tagName == "A") { var h = aa[j].cdiv; var f = aa[j]; if (h) { h.ismove = 1; h.qmtree = 1; } if (!f.onclick) { f.onclick = f.onmouseover; f.onmouseover = null; } if (q.no_focus) { f.onfocus = function () { this.blur(); }; } if (f.cdiv) new qm_tree_init_items(f.cdiv, 1); if (f.getAttribute("qmtreeopen")) qm_oo(new Object(), f, 1) } } }; function qm_tree_item_click(a, close) { var z; if (!a.qmtree && !((z = window.qmv) && z.loaded)) { var id = qm_get_menu(a).id; if (window.qmad && qmad[id] && qmad[id].tree_enabled) x2("qmfh", a, 1); return; } if ((z = window.qmv) && (z = z.addons) && (z = z.tree_menu) && !z["on" + qm_index(a)]) return; x2("qmfh", a); var q = qmad.tree; if (q.timer) return; qm_la = null; q.co = new Object(); if (a.style.position == "relative") { cx = true; q.co["b"] = a; q.co["b"].qmtreecollapse = true; qm_tree_get_dd(a, q, q.co["b"]); qm_uo(a, 1); qm_tree_item_expand(false, "b"); var d = a.getElementsByTagName("DIV"); for (var i = 0; i < d.length; i++) { if (d[i].idiv && d[i].style.position == "relative") { q.co["b" + i] = d[i]; q.co["b" + i].qmtreecollapse = true; qm_tree_get_dd(d[i], q, q.co["b" + i]); qm_uo(d[i], 1); qm_tree_item_expand(false, "b" + i); } } if (window.qm_ibullets_hover) qm_ibullets_hover(null, a.idiv); } else { if (window.qm_fade_clear_timer) qm_fade_clear_timer(a); a.qmtreecollapse = false; if (qm_s2) a.style.display = "block"; q.co.e = a; qm_tree_get_dd(a, q, q.co.e); if (a.qmtree_tpad) { a.style.paddingTop = "0px"; a.style.paddingBottom = "0px"; a.qmtree_tp = 0; a.qmtree_bp = 0; } q.co.e.topd = false; q.co.e.cend = false; q.co.e.botd = false; a.style.position = "relative"; q.eh = a.offsetHeight; a.style.height = "0px"; x2("qmfv", a, 1); x2("qmfh", a); qm_tree_item_expand(true, "e"); } }; function qm_tree_acol(a) { var q = qmad.tree; if (q.acollapse) { var mobj = qm_get_menu(a); var ds = mobj.getElementsByTagName("DIV"); for (var i = 0; i < ds.length; i++) { if (ds[i].style.position == "relative" && ds[i] != a) { var go = true; var cp = a[qp]; while (!qm_a(cp)) { if (ds[i] == cp) go = false; cp = cp[qp]; } if (go) { cx = true; q.co["a" + i] = ds[i]; q.co["a" + i].qmtreecollapse = true; qm_tree_get_dd(ds[i], q, q.co["a" + i]); qm_uo(ds[i], 1); qm_tree_item_expand(false, "a" + i); } } } } }; function qm_tree_get_dd(a, q, qo) { var top = parseInt(qm_gcs(a, "padding-top", "paddingTop") + ""); if (isNaN(top)) top = 0; var bot = parseInt(qm_gcs(a, "padding-bottom", "paddingBottom") + ""); if (isNaN(bot)) bot = 0; qo.qmtree_toppad = top; qo.qmtree_botpad = bot; qo.qmtree_tpad = top + bot; qo.dist = a.offsetHeight; if (q.ctype == 2) qo.dec_pos = qo.dist; else qo.dec_pos = 1 }; function qm_tree_get_d(a, q) { var top = parseInt(qm_gcs(a, "padding-top", "paddingTop") + ""); if (isNaN(top)) top = 0; var bot = parseInt(qm_gcs(a, "padding-bottom", "paddingBottom") + ""); if (isNaN(bot)) bot = 0; q.qmtree_toppad = top; q.qmtree_botpad = bot; q.qmtree_tpad = top + bot; }; function qm_tree_item_expand(isexp, i) { var q = qmad.tree; var go = false; var cs = 1; if (!isexp) { if (!q.co[i].style.height && q.co[i].style.position == "relative") { q.co[i].style.height = (q.co[i].offsetHeight - q.co[i].qmtree_tpad) + "px"; q.co[i].qmtreeht = parseInt(q.co[i].style.height); } if (q.ctype == 1) { cs = parseInt(Math.sqrt(2 * q.co[i].dec_pos * (.2 * q.cstep))); if (cs < 1) cs = 1; q.co[i].dec_pos += cs; } else if (q.ctype == 2) { cs = parseInt(Math.sqrt(2 * q.co[i].dec_pos * (.2 * q.cstep))); if (cs < 1) cs = 1; q.co[i].dec_pos -= cs; } else if (q.ctype == 3) { cs = q.cstep; q.co[i].dec_pos += cs; } else cs = q.co[i].dist; if (q.ctype && (q.co[i].dec_pos > 0 && q.co[i].dec_pos < q.co[i].dist)) { var sh = parseInt(q.co[i].style.height); if (sh - cs <= 0) { q.co[i].style.height = "0px"; if (q.co[i].qmtree_botpad - cs > 0) { q.co[i].qmtree_botpad -= cs; q.co[i].style.paddingBottom = q.co[i].qmtree_botpad + "px"; } else if (q.co[i].qmtree_toppad - cs > 0) { q.co[i].qmtree_toppad -= cs; q.co[i].style.paddingTop = q.co[i].qmtree_toppad + "px"; } } else { var sh1 = sh - cs; if (sh1 < 0) sh1 = 0; q.co[i].style.height = sh1 + "px"; } go = true; } else { q.co[i].style.paddingBottom = ""; q.co[i].style.paddingTop = ""; q.co[i].style.height = ""; q.co[i].style.position = ""; if (qm_s2) q.co[i].style.display = ""; x2("qmfh", q.co[i], 1); x2("qmfv", q.co[i]); q.co[i].style.visibility = "inherit"; } } else { if (q.etype == 1) { cs = parseInt(Math.sqrt(2 * q.co.e.dec_pos * (.2 * q.estep))); if (cs < 1) cs = 1; q.co.e.dec_pos += cs; } else if (q.etype == 2) { cs = parseInt(Math.sqrt(2 * q.co.e.dec_pos * (.2 * q.estep))); if (cs < 1) cs = 1; q.co.e.dec_pos -= cs; } else if (q.etype == 3) { cs = q.estep; q.co.e.dec_pos += cs; } else cs = q.co.e.dist; go = true; if (q.co.e.qmtree_toppad && !q.co.e.topd) { if (q.etype && q.co.e.qmtree_tp < q.co.e.qmtree_toppad - cs) { q.co.e.qmtree_tp += cs; q.co.e.style.paddingTop = q.co.e.qmtree_tp + "px"; } else { q.co.e.style.paddingTop = q.co.e.qmtree_toppad + "px"; q.co.e.qmtree_toppad = 0; q.co.e.topd = true; } } if (q.co.e.topd && !q.co.e.cend) { if (q.etype && parseInt(q.co.e.style.height) < (q.eh - cs)) q.co.e.style.height = parseInt(q.co.e.style.height) + cs + "px"; else { q.co.e.qmtreeh = q.co.e.style.height; q.co.e.style.height = ""; q.co.e.cend = true; } } if (q.co.e.qmtree_botpad && q.co.e.cend && !q.co.e.botd) { if (q.etype && q.co.e.qmtree_bp < q.co.e.qmtree_botpad - cs) { q.co.e.qmtree_bp += cs; q.co.e.style.paddingBottom = q.co.e.qmtree_bp + "px"; } else { q.co.e.style.paddingBottom = q.co.e.qmtree_botpad + "px"; q.co.e.qmtree_botpad = 0; q.co.e.botd = true; go = false; } } } if (go) { qmwait = true; q.co[i].timer = setTimeout("qm_tree_item_expand(" + isexp + ",'" + i + "')", 10); if (window.qmv_position_pointer) qmv_position_pointer(); } else { qmwait = false; if (isexp) qm_tree_acol(q.co[i]); q.co[i].timer = null; q.co[i] = null; if (window.qmv_position_pointer) qmv_position_pointer(); } }; function qm_get_menu(a) { while (!qm_a(a) && (a = a[qp])) continue; return a; }

//Add-On Code: Persistent States With Auto Open Subs Option
if (!qmad.sopen_auto) { qmad.sopen_auto = new Object(); qmad.sopen_auto.log = new Array(); if (qmad.binit.indexOf("qm_sopen_auto_init(null);") == -1) qmad.binit += "qm_sopen_auto_init(null);"; }; function qm_sopen_auto_init(e, go) { if (window.qmv) return; if (!go) { setTimeout("qm_sopen_auto_init(null,1)", 10); return; } var i; var ql = qmad.sopen_auto.log; for (i = 0; i < 10; i++) { var ss = qmad["qm" + i]; if (!ss || !ss.sopen_auto_enabled) continue; var curl = unescape(window.location.href).toLowerCase(); curl = qm_sopen_auto_clean(curl); var a; if (a = document.getElementById("qm" + i)) { var dd = a.getElementsByTagName("A"); for (var j = 0; j < dd.length; j++) { var aurl = unescape(dd[j].getAttribute("href", 1)).toLowerCase(); aurl = qm_sopen_auto_clean(aurl); loc = curl.length - aurl.length; if (aurl && aurl != "#" && loc > -1 && curl.indexOf(aurl) + 1) { var wa = dd[j]; if (wa.cdiv) wa = wa.cdiv; while (!qm_a(wa)) { if (wa.tagName == "DIV") { if (wa.idiv) { if (ss.sopen_auto_show_subs) ql.push(wa.idiv); x2("qmpersistent", wa.idiv, 1); } } else if (wa.tagName == "A") x2("qmpersistent", wa, 1); wa = wa[qp]; } } } } } var se = 0; var sc = 0; if (qmad.tree) { se = qmad.tree.etype; sc = qmad.tree.ctype; qmad.tree.etype = 0; qmad.tree.ctype = 0; } for (i = ql.length - 1; i >= 0; i--) { if (ql[i]) { qm_oo(new Object(), ql[i], 1); qm_li = new Object(); } } if (qmad.tree) { qmad.tree.etype = se; qmad.tree.ctype = sc; } }; function qm_sopen_auto_clean(url) { url = url.replace(/\:/g, ""); url = url.replace("localhost", ""); url = url.replace("file", ""); url = url.replace(/\\/g, ""); url = url.replace(/\//g, ""); url = url.replace(/\./g, ""); return url; }
