
//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">qmad=new Object();qmad.bvis="";qmad.bhide="";</script>');

/*******  Menu 0 Add-On Settings *******/
var a = qmad.qm0 = new Object();

// Sub Menu Fade Animation Add On
a.fade_in_frames = 5;
a.fade_out_frames = 8;

// Hover Fill Item Effect Add On
a.hoverfill_apply_to = "all";
a.hoverfill_main_type = "fade";
a.hoverfill_main_direction = "up";
a.hoverfill_main_step_size = 1;
a.hoverfill_main_fade_in = true;
a.hoverfill_sub_type = "fade";
a.hoverfill_sub_direction = "up";
a.hoverfill_sub_step_size = 1;
a.hoverfill_sub_fade_in = true;
a.hoverfill_sub_offset_width = -2;
a.hoverfill_sub_offset_height = -2;

// Keep Subs In window Add On
a.subs_in_window_active = true;


//Core QuickMenu Code
qmv6 = true; var qm_si, qm_lo, qm_tt, qm_ts, qm_la, qm_ic, qm_ff; 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); var qm_ie8 = qm_t.indexOf("MSIE 8.") + 1; 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") { 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); } } }; 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); if (qm_ie8) c.style.visibility = "visible"; else 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(); }; ; function qa(a, b) { return String.fromCharCode(a.charCodeAt(0) - (b - (parseInt(b / 2) * 2))); } 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 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: Keep Subs In window
qmad.apsubs = new Object(); if (qmad.bvis.indexOf("qm_apsubs(b.cdiv,o);") == -1) qmad.bvis += "qm_apsubs(b.cdiv,o);"; ; function qm_apsubs(a) { var z; if ((z = window.qmv) && (z = z.addons) && (z = z.apsubs) && !z["on" + qm_index(a)]) return; if (!a.settingsid) { var v = a; while (!qm_a(v)) v = v[qp]; a.settingsid = v.id; } var ss = qmad[a.settingsid]; if (!ss) return; if (!ss.subs_in_window_active) return; var wh = qm_get_doc_wh(); var sxy = qm_get_doc_scrollxy(); var xy = qm_get_offset(a); var c1 = a.offsetWidth + xy[0]; var c2 = wh[0] + sxy[0]; if (c1 > c2) { a.style.left = (parseInt(a.style.left) - (c1 - c2)) + "px"; if (a.hasshadow) a.hasshadow.style.left = (parseInt(a.hasshadow.style.left) - (c1 - c2)) + "px"; if (a.hasselectfix) a.hasselectfix.style.left = (parseInt(a.hasselectfix.style.left) - (c1 - c2)) + "px"; } c1 = a.offsetHeight + xy[1]; c2 = wh[1] + sxy[1]; if (c1 > c2) { a.style.top = (parseInt(a.style.top) - (c1 - c2)) + "px"; if (a.hasshadow) a.hasshadow.style.top = (parseInt(a.hasshadow.style.top) - (c1 - c2)) + "px"; if (a.hasselectfix) a.hasselectfix.style.top = (parseInt(a.hasselectfix.style.top) - (c1 - c2)) + "px"; } }; function qm_get_offset(obj) { var x = 0; var y = 0; do { x += obj.offsetLeft; y += obj.offsetTop; } while (obj = obj.offsetParent)return new Array(x, y); }; function qm_get_doc_scrollxy() { var sy = 0; var sx = 0; if ((sd = document.documentElement) && (sd = sd.scrollTop)) sy = sd; else if (sd = document.body.scrollTop) sy = sd; if ((sd = document.documentElement) && (sd = sd.scrollLeft)) sx = sd; else if (sd = document.body.scrollLeft) sx = sd; return new Array(sx, sy); }; function qm_get_doc_wh() { db = document.body; var w = 0; var h = 0; if (tval = window.innerHeight) { h = tval; w = window.innerWidth; } else if ((e = document.documentElement) && (e = e.clientHeight)) { h = e; w = document.documentElement.clientWidth; } else if (e = db.clientHeight) { if (!h) h = e; if (!w) w = db.clientWidth; } return new Array(w, h); }

//Add-On Code: Hover Fill Item Effect
qmad.br_ie = window.showHelp; qmad.br_navigator = navigator.userAgent.indexOf("Netscape") + 1; qmad.br_version = parseFloat(navigator.vendorSub); qmad.br_oldnav6 = qmad.br_navigator && qmad.br_version < 7.2; if (!qmad.br_oldnav6) { if (!qmad.hoverfill) { qmad.hoverfill = new Object(); qmad.hoverfill.track = new Object(); qmad.hoverfill.tracktimer = new Object(); } if (qmad.bhide.indexOf("qm_hoverfill_active(new Object(),a,1);") == -1) { qmad.bhide += "qm_hoverfill_active(new Object(),a,1);"; if (window.attachEvent) window.attachEvent("onload", qm_hoverfill_init); else if (window.addEventListener) window.addEventListener("load", qm_hoverfill_init, 1); if (document.attachEvent) document.attachEvent("onmouseover", qm_hoverfill_hover_off); else if (window.addEventListener) document.addEventListener("mouseover", qm_hoverfill_hover_off, false); } }; function qm_hoverfill_init(e, spec) { var z; if ((z = window.qmv) && (z = z.addons) && (z = z.hoverfill) && (!z["on" + qmv.id] && z["on" + qmv.id] != undefined && z["on" + qmv.id] != null)) return; qm_ts = 1; var q = qmad.hoverfill; for (i = 0; i < 10; i++) { if (!(a = document.getElementById("qm" + i)) || (!isNaN(spec) && spec != i)) continue; var ss = qmad[a.id]; if (ss && (ss.hoverfill_main_type || ss.hoverfill_sub_type)) { qm_hoverfill_init_items(a, ss); } } }; function qm_hoverfill_init_items(a, ss) { var q = qmad.hoverfill; var aa, pf; var applyto = "all"; if (ss.hoverfill_apply_to) applyto = ss.hoverfill_apply_to; aa = a.getElementsByTagName("A"); for (var j = 0; j < aa.length; j++) { if ((applyto == "parent" && !aa[j].cdiv) || (applyto == "non-parent" && aa[j].cdiv)) continue; if (window.attachEvent) aa[j].attachEvent("onmouseover", qm_hoverfill_active); else if (window.addEventListener) aa[j].addEventListener("mouseover", qm_hoverfill_active, false); if (qm_a(aa[j][qp])) pf = "main"; else pf = "sub"; var type; if ((type = ss["hoverfill_" + pf + "_type"]) && type != "none") { var ofx = ss["hoverfill_" + pf + "_offset_width"]; if (!ofx) ofx = 0; var ofy = ss["hoverfill_" + pf + "_offset_height"]; if (!ofy) ofy = 0; var fss = ss["hoverfill_" + pf + "_fade_type_steps"]; if (!fss) fss = 20; var dir = ss["hoverfill_" + pf + "_direction"]; if (!dir) dir = "up"; var step = ss["hoverfill_" + pf + "_step_size"]; if (!step) step = 1; var ns = document.createElement("SPAN"); ns.style.display = "none"; ns.style.position = "absolute"; ns.style.fontSize = "1px"; ns.style.overFlow = "hidden"; if (aa[j].cdiv) ns.className = "qmhoverfill qmhparent"; else ns.className = "qmhoverfill"; ns.ishoverfill = 1; ns.hfowner = aa[j]; ns.noselect = 1; aa[j].style.position = "relative"; aa[j][qp].insertBefore(ns, aa[j]); aa[j].hfobject = ns; aa[j].hfdir = dir; aa[j].hftype = type; aa[j].hfstep = step; aa[j].hffadein = ss["hoverfill_" + pf + "_fade_in"]; aa[j].hffss = fss; aa[j].hffc = 0; aa[j].hfox = ofx; aa[j].hfoy = ofy; } } }; function qm_hoverfill_setfade(a, val) { if (qmad.br_ie) a.style.filter = "alpha(opacity=" + val * 100 + ")"; else a.style.opacity = val; }; function qm_hoverfill_active(e, a, hide, force) { e = e || window.event; if (!a) { a = e.srcElement || e.target; while (a.tagName != "A") a = a[qp]; } if (!hide) { var la = qmad.hoverfill.lasthl; if (la == a) return; if (la && la.hfobject.style.display == "block" && la.className.indexOf("qmactive") == -1 && la != a) { qm_hoverfill_hide_animate(la); qmad.hoverfill.lasthl = null; } var b; if ((b = a.hfobject) && !b.hfon && b[qp] && a[qp]) { var dir = a.hfdir; var type = a.hftype; b.style.display = "block"; if (type == "grow") { if (dir == "up" || dir == "down") { b.style.width = (a.offsetWidth + a.hfox) + "px"; b.style.height = "0px"; b.style.left = a.offsetLeft + "px"; if (dir == "up") b.style.top = (a.offsetTop + a.offsetHeight + a.hfoy) + "px"; else b.style.top = a.offsetTop + "px"; if (a.hffadein) a.hffs = (1 / (a.offsetHeight / a.hfstep)); } else if (dir == "right" || dir == "left") { b.style.height = (a.offsetHeight + a.hfoy) + "px"; b.style.width = "0px"; b.style.top = a.offsetTop + "px"; if (dir == "left") b.style.left = (a.offsetLeft + a.offsetWidth + a.hfox) + "px"; else b.style.left = a.offsetLeft + "px"; if (a.hffadein) a.hffs = (1 / (a.offsetWidth / a.hfstep)); } else if (dir == "center") { b.style.height = "0px"; b.style.width = "0px"; b.style.top = (a.offsetTop + parseInt((a.offsetHeight + a.hfoy) / 2)) + "px"; b.style.left = (a.offsetLeft + parseInt((a.offsetWidth + a.hfox) / 2)) + "px"; a.hfstep = 1; if (a.hfstep == 4) a.hfstep = 2; if (a.hfstep > 5) a.hfstep = 3; if (a.offsetWidth > a.offsetHeight) { b.chstep = (a.hfstep * 2); b.cwstep = parseInt(b.chstep * ((a.offsetWidth + a.hfox) / (a.offsetHeight + a.hfoy))); b.ctstep = a.hfstep; b.clstep = parseInt(b.cwstep / 2); if (a.hffadein) a.hffs = (1 / (((a.offsetHeight + a.hfoy) / 2) / b.ctstep)); } else { b.cwstep = (a.hfstep * 2); b.chstep = parseInt(b.chstep * ((a.offsetHeight + a.hfoy) / (a.offsetWidth + a.hfox))); b.clstep = a.hfstep; b.ctstep = parseInt(b.chstep / 2); if (a.hffadein) a.hffs = (1 / (((a.offsetWidth + a.hfox) / 2) / b.clstep)); } } } else if (type == "fade") { b.style.height = (a.offsetHeight + a.hfoy) + "px"; b.style.width = (a.offsetWidth + a.hfox) + "px"; b.style.top = a.offsetTop + "px"; b.style.left = a.offsetLeft + "px"; a.hffs = (1 / a.hffss); } qm_hoverfill_clear_timer(a); qm_hoverfill_animate(qm_hoverfill_get_tracking_id(b), false, force); qmad.hoverfill.lasthl = a; } } else { if (a.idiv) { qm_hoverfill_hide_animate(a.idiv); } } }; function qm_hoverfill_hide_animate(a) { qm_hoverfill_clear_timer(a); if (a.hfobject) qm_hoverfill_animate(qm_hoverfill_get_tracking_id(a.hfobject), 1); }; function qm_hoverfill_animate(id, hide, force) { var go = false; var hf = qmad.hoverfill.track["a" + id]; if (!hf || !hf[qp]) return; var atag = hf.hfowner; if (!atag[qp]) return; var type = atag.hftype; var dir = atag.hfdir; var step = atag.hfstep; var clstep = hf.clstep; var ctstep = hf.ctstep; var cwstep = hf.cwstep; var chstep = hf.chstep; if (hide) { step = -step; if (type == "grow" && dir == "center") { var clstep = -clstep; var ctstep = -ctstep; var cwstep = -cwstep; var chstep = -chstep; } } var a1, a2, a3, a4; if (type == "grow") { if (dir == "up" || dir == "left") { var p1 = "offsetTop"; var p2 = "offsetHeight"; var p3 = "height"; var p4 = "top"; var p5 = atag.hfoy; if (dir == "left") { p1 = "offsetLeft"; p2 = "offsetWidth"; p3 = "width"; p4 = "left"; p5 = atag.hfox; } a1 = atag[p1]; a2 = atag[p2]; if (((!hide && (hf[p1] - step) > a1) || (hide && (hf[p1] - step) < (a1 + a2 + p5))) && !force) { a1 = parseInt(hf.style[p4]); a2 = parseInt(hf.style[p3]); hf.style[p4] = (a1 - step) + "px"; hf.style[p3] = (a2 + step) + "px"; go = true; } else { if (!hide) { hf.hfon = true; hf.style[p4] = a1 + "px"; hf.style[p3] = (a2 + p5) + "px"; } else hf.style[p3] = "0px"; } } else if (dir == "down" || dir == "right") { var p1 = "offsetHeight"; var p2 = "offsetTop"; var p3 = "height"; var p5 = atag.hfoy; if (dir == "right") { p1 = "offsetWidth"; p2 = "offsetLeft"; p3 = "width"; p5 = atag.hfox; } a1 = atag[p2]; a2 = atag[p1]; if (((!hide && (hf[p1] + step) < (a2 + p5)) || (hide && (hf[p1] + step) > 0)) && !force) { hf.style[p3] = (parseInt(hf.style[p3]) + step) + "px"; go = true; } else { if (!hide) { hf.hfon = true; hf.style[p3] = (a2 + p5) + "px"; } else hf.style[p3] = "0px"; } } else if (dir == "center") { a1 = atag.offsetTop; a2 = parseInt((atag.offsetHeight + atag.hfoy) / 2); if (((!hide && (hf.offsetTop - ctstep) > a1) || (hide && (hf.offsetTop - ctstep) < (a1 + a2))) && !force) { a1 = parseInt(hf.style.top); a2 = parseInt(hf.style.height); a3 = parseInt(hf.style.left); a4 = parseInt(hf.style.width); hf.style.top = (a1 - ctstep) + "px"; hf.style.left = (a3 - clstep) + "px"; hf.style.height = (a2 + chstep) + "px"; hf.style.width = (a4 + cwstep) + "px"; go = true; } else { if (!hide) { a1 = atag.offsetTop; a2 = atag.offsetHeight + atag.hfoy; a3 = atag.offsetLeft; a4 = atag.offsetWidth + atag.hfox; hf.style.top = a1 + "px"; hf.style.left = a3 + "px"; hf.style.height = a2 + "px"; hf.style.width = a4 + "px"; hf.hfon = true; } else { hf.style.height = "0px"; hf.style.width = "0px"; } } } } else if (type == "fade") { if (((!hide && atag.hffc < 1) || (hide && atag.hffc > 0)) && !force) { go = true; } else { if (!hide) hf.hfon = true; } } if (atag.hffs) { if (!atag.hffc) atag.hffc = 0; if (!hide) { atag.hffc += atag.hffs; if (atag.hffc > 1 || !go) atag.hffc = 1; } else { atag.hffc -= atag.hffs; if (atag.hffc < .001 || !go) atag.hffc = 0; } qm_hoverfill_setfade(hf, atag.hffc); } if (go) { qmad.hoverfill.tracktimer["a" + id] = setTimeout("qm_hoverfill_animate(" + id + "," + hide + ")", 10); atag.hftrackid = id; hf.hfon = false; } else { qm_hoverfill_clear_timer(atag); if (hide) hf.style.display = "none"; } }; function qm_hoverfill_clear_timer(a) { var id; if (id = a.hftrackid) { clearTimeout(qmad.hoverfill.tracktimer["a" + id]); qmad.hoverfill.tracktimer["a" + id] = null; qmad.hoverfill.track["a" + id] = null; a.hftrackid = null; } }; function qm_hoverfill_get_tracking_id(a) { var track = qmad.hoverfill.track; var i = 1; while (track["a" + i]) i++; track["a" + i] = a; return i; }; function qm_hoverfill_hover_off(e, o) { var la = qmad.hoverfill.lasthl; if (la && la.hfobject.style.display == "block" && la.className.indexOf("qmactive") == -1) { qm_hoverfill_hide_animate(la); } qmad.hoverfill.lasthl = null; }

//Add-On Code: Sub Menu Fade Animation
if (!qmad.fade) { qmad.fade = new Object(); qmad.fade.track = new Object(); qmad.fade.tracktimer = new Object(); if (qmad.bvis.indexOf("qm_fade_a(b.cdiv);") == -1) { qmad.bvis += "qm_fade_a(b.cdiv);"; qmad.bhide += "qm_fade_a(a,1);"; } }; function qm_fade_a(a, hide) { var z; if ((a.style.visibility == "inherit" && !hide) || ((z = window.qmv) && (z = z.addons) && (z = z.fade) && !z["on" + qm_index(a)])) return; var ss; if (!a.settingsid) { var v = a; while ((v = v[qp])) { if (v[qc].indexOf("qmmc") + 1) { a.settingsid = v.id; break; } } } ss = qmad[a.settingsid]; var t; var u; if (ss && ((t = ss.fade_in_frames) || (u = ss.fade_out_frames))) { if (t == null || t == undefined) t = u; if (u == null || u == undefined) u = t; a.ffinc = 1 / t; a.ffdec = 1 / u; if (!hide) a.ffcur = 0; else { a.ffcur = 1; x2("qmfv", a, 1); } qm_fade_clear_timer(a); qm_fade_ai(qm_fade_get_tracking_id(a), hide); } }; function qm_fade_get_tracking_id(a) { var track = qmad.fade.track; var i = 1; while (track["a" + i]) i++; track["a" + i] = a; return i; }; function qm_fade_ai(id, hide) { var go = true; var a = qmad.fade.track["a" + id]; if (!hide) { a.ffcur += a.ffinc; if (a.ffcur > 1) { a.ffcur = 1; go = false; } } else { a.ffcur -= a.ffdec; if (a.ffcur < .001) { a.ffcur = 0; go = false; } } qm_fade_setfade(a, a.ffcur); if (go) { qmad.fade.tracktimer["a" + id] = setTimeout("qm_fade_ai(" + id + "," + hide + ")", 10); a.fftrackid = id; } else { if (hide) x2("qmfv", a); if (window.showHelp) a.style.removeAttribute("filter"); } }; function qm_fade_clear_timer(a) { var id; if (id = a.fftrackid) { clearTimeout(qmad.fade.tracktimer["a" + id]); qmad.fade.tracktimer["a" + id] = null; qmad.fade.track["a" + id] = null; a.fftrackid = null; } }; function qm_fade_setfade(a, val) { if (qmad.br_ie) a.style.filter = "alpha(opacity=" + val * 100 + ")"; else a.style.opacity = val; }

