﻿var Cufon = (function() { var P = function() { return P.replace.apply(null, arguments) }; var D = P.DOM = { ready: (function() { var c = false, a = { loaded: 1, complete: 1 }; var d = [], b = function() { if (c) { return } c = true; for (var e; e = d.shift(); e()) { } }; if (document.addEventListener) { document.addEventListener("DOMContentLoaded", b, false); window.addEventListener("pageshow", b, false) } if (!window.opera && document.readyState) { (function() { a[document.readyState] ? b() : setTimeout(arguments.callee, 10) })() } if (document.readyState && document.createStyleSheet) { (function() { try { document.body.doScroll("left"); b() } catch (e) { setTimeout(arguments.callee, 1) } })() } K(window, "load", b); return function(e) { if (!arguments.length) { b() } else { c ? e() : d.push(e) } } })(), root: function() { return document.documentElement || document.body } }; var O = P.CSS = { Size: function(a, b) { this.value = parseFloat(a); this.unit = String(a).match(/[a-z%]*$/)[0] || "px"; this.convert = function(c) { return c / b * this.value }; this.convertFrom = function(c) { return c / this.value * b }; this.toString = function() { return this.value + this.unit } }, addClass: function(b, c) { var a = b.className; b.className = a + (a && " ") + c; return b }, color: S(function(a) { var b = {}; b.color = a.replace(/^rgba\((.*?),\s*([\d.]+)\)/, function(d, e, c) { b.opacity = parseFloat(c); return "rgb(" + e + ")" }); return b }), fontStretch: S(function(a) { if (typeof a == "number") { return a } if (/%$/.test(a)) { return parseFloat(a) / 100 } return { "ultra-condensed": 0.5, "extra-condensed": 0.625, condensed: 0.75, "semi-condensed": 0.875, "semi-expanded": 1.125, expanded: 1.25, "extra-expanded": 1.5, "ultra-expanded": 2}[a] || 1 }), getStyle: function(a) { var b = document.defaultView; if (b && b.getComputedStyle) { return new ab(b.getComputedStyle(a, null)) } if (a.currentStyle) { return new ab(a.currentStyle) } return new ab(a.style) }, gradient: S(function(b) { var a = { id: b, type: b.match(/^-([a-z]+)-gradient\(/)[1], stops: [] }, e = b.substr(b.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig); for (var c = 0, f = e.length, d; c < f; ++c) { d = e[c].split("=", 2).reverse(); a.stops.push([d[1] || c / (f - 1), d[0]]) } return a }), quotedList: S(function(a) { var b = [], c = /\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g, d; while (d = c.exec(a)) { b.push(d[3] || d[1]) } return b }), recognizesMedia: S(function(a) { var c = document.createElement("style"), d, e, f; c.type = "text/css"; c.media = a; try { c.appendChild(document.createTextNode("/**/")) } catch (b) { } e = V("head")[0]; e.insertBefore(c, e.firstChild); d = (c.sheet || c.styleSheet); f = d && !d.disabled; e.removeChild(c); return f }), removeClass: function(a, b) { var c = RegExp("(?:^|\\s+)" + b + "(?=\\s|$)", "g"); a.className = a.className.replace(c, ""); return a }, supports: function(a, b) { var c = document.createElement("span").style; if (c[a] === undefined) { return false } c[a] = b; return c[a] === b }, textAlign: function(a, b, d, c) { if (b.get("textAlign") == "right") { if (d > 0) { a = " " + a } } else { if (d < c - 1) { a += " " } } return a }, textShadow: S(function(b) { if (b == "none") { return null } var c = [], a = {}, f, e = 0; var d = /(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig; while (f = d.exec(b)) { if (f[0] == ",") { c.push(a); a = {}; e = 0 } else { if (f[1]) { a.color = f[1] } else { a[["offX", "offY", "blur"][e++]] = f[2] } } } c.push(a); return c }), textTransform: (function() { var a = { uppercase: function(b) { return b.toUpperCase() }, lowercase: function(b) { return b.toLowerCase() }, capitalize: function(b) { return b.replace(/\b./g, function(c) { return c.toUpperCase() }) } }; return function(b, c) { var d = a[c.get("textTransform")]; return d ? d(b) : b } })(), whiteSpace: (function() { var a = { inline: 1, "inline-block": 1, "run-in": 1 }; var b = /^\s+/, c = /\s+$/; return function(d, f, e, g) { if (g) { if (g.nodeName.toLowerCase() == "br") { d = d.replace(b, "") } } if (a[f.get("display")]) { return d } if (!e.previousSibling) { d = d.replace(b, "") } if (!e.nextSibling) { d = d.replace(c, "") } return d } })() }; O.ready = (function() { var c = !O.recognizesMedia("all"), j = false; var a = [], f = function() { c = true; for (var k; k = a.shift(); k()) { } }; var e = V("link"), d = V("style"); function b(k) { return k.disabled || g(k.sheet, k.media || "screen") } function g(r, n) { if (!O.recognizesMedia(n || "all")) { return true } if (!r || r.disabled) { return false } try { var m = r.cssRules, o; if (m) { search: for (var k = 0, l = m.length; o = m[k], k < l; ++k) { switch (o.type) { case 2: break; case 3: if (!g(o.styleSheet, o.media.mediaText)) { return false } break; default: break search } } } } catch (q) { } return true } function h() { if (document.createStyleSheet) { return true } var k, l; for (l = 0; k = e[l]; ++l) { if (k.rel.toLowerCase() == "stylesheet" && !b(k)) { return false } } for (l = 0; k = d[l]; ++l) { if (!b(k)) { return false } } return true } D.ready(function() { if (!j) { j = O.getStyle(document.body).isUsable() } if (c || (j && h())) { f() } else { setTimeout(arguments.callee, 10) } }); return function(k) { if (c) { k() } else { a.push(k) } } })(); function I(a) { var b = this.face = a.face, c = { "\u0020": 1, "\u00a0": 1, "\u3000": 1 }; this.glyphs = a.glyphs; this.w = a.w; this.baseSize = parseInt(b["units-per-em"], 10); this.family = b["font-family"].toLowerCase(); this.weight = b["font-weight"]; this.style = b["font-style"] || "normal"; this.viewBox = (function() { var d = b.bbox.split(/\s+/); var e = { minX: parseInt(d[0], 10), minY: parseInt(d[1], 10), maxX: parseInt(d[2], 10), maxY: parseInt(d[3], 10) }; e.width = e.maxX - e.minX; e.height = e.maxY - e.minY; e.toString = function() { return [this.minX, this.minY, this.width, this.height].join(" ") }; return e })(); this.ascent = -parseInt(b.ascent, 10); this.descent = -parseInt(b.descent, 10); this.height = -this.ascent + this.descent; this.spacing = function(h, f, q) { var e = this.glyphs, g, j, n, d = [], o = 0, k = -1, l = -1, m; while (m = h[++k]) { g = e[m] || this.missingGlyph; if (!g) { continue } if (j) { o -= n = j[m] || 0; d[l] -= n } o += d[++l] = ~ ~(g.w || this.w) + f + (c[m] ? q : 0); j = g.k } d.total = o; return d } } function W() { var a = {}, b = { oblique: "italic", italic: "oblique" }; this.add = function(c) { (a[c.style] || (a[c.style] = {}))[c.weight] = c }; this.get = function(f, e) { var g = a[f] || a[b[f]] || a.normal || a.italic || a.oblique; if (!g) { return null } e = { normal: 400, bold: 700}[e] || parseInt(e, 10); if (g[e]) { return g[e] } var j = { 1: 1, 99: 0}[e % 100], c = [], h, k; if (j === undefined) { j = e > 400 } if (e == 500) { e = 400 } for (var d in g) { if (!R(g, d)) { continue } d = parseInt(d, 10); if (!h || d < h) { h = d } if (!k || d > k) { k = d } c.push(d) } if (e < h) { e = h } if (e > k) { e = k } c.sort(function(m, l) { return (j ? (m >= e && l >= e) ? m < l : m > l : (m <= e && l <= e) ? m > l : m < l) ? -1 : 1 }); return g[c[0]] } } function J() { function b(f, e) { if (f.contains) { return f.contains(e) } return f.compareDocumentPosition(e) & 16 } function d(e) { var f = e.relatedTarget; if (!f || b(this, f)) { return } c(this, e.type == "mouseover") } function a(e) { c(this, e.type == "mouseenter") } function c(f, e) { setTimeout(function() { var g = Y.get(f).options; P.replace(f, e ? U(g, g.hover) : g, true) }, 10) } this.attach = function(e) { if (e.onmouseenter === undefined) { K(e, "mouseover", d); K(e, "mouseout", d) } else { K(e, "mouseenter", a); K(e, "mouseleave", a) } } } function G() { var b = [], a = {}; function c(d) { var g = [], e; for (var f = 0; e = d[f]; ++f) { g[f] = b[a[e]] } return g } this.add = function(d, e) { a[d] = b.push(e) - 1 }; this.repeat = function() { var f = arguments.length ? c(arguments) : b, e; for (var d = 0; e = f[d++]; ) { P.replace(e[0], e[1], true) } } } function M() { var a = {}, c = 0; function b(d) { return d.cufid || (d.cufid = ++c) } this.get = function(e) { var d = b(e); return a[d] || (a[d] = {}) } } function ab(c) { var a = {}, b = {}; this.extend = function(e) { for (var d in e) { if (R(e, d)) { a[d] = e[d] } } return this }; this.get = function(d) { return a[d] != undefined ? a[d] : c[d] }; this.getSize = function(d, e) { return b[d] || (b[d] = new O.Size(this.get(d), e)) }; this.isUsable = function() { return !!c } } function K(b, c, a) { if (b.addEventListener) { b.addEventListener(c, a, false) } else { if (b.attachEvent) { b.attachEvent("on" + c, function() { return a.call(b, window.event) }) } } } function F(b, c) { var a = Y.get(b); if (a.options) { return b } if (c.hover && c.hoverables[b.nodeName.toLowerCase()]) { aa.attach(b) } a.options = c; return b } function S(b) { var a = {}; return function(c) { if (!R(a, c)) { a[c] = b.apply(null, arguments) } return a[c] } } function Z(a, b) { var e = O.quotedList(b.get("fontFamily").toLowerCase()), c; for (var d = 0; c = e[d]; ++d) { if (T[c]) { return T[c].get(b.get("fontStyle"), b.get("fontWeight")) } } return null } function V(a) { return document.getElementsByTagName(a) } function R(a, b) { return a.hasOwnProperty(b) } function U() { var d = {}, e, a; for (var b = 0, c = arguments.length; e = arguments[b], b < c; ++b) { for (a in e) { if (R(e, a)) { d[a] = e[a] } } } return d } function N(n, e, b, d, m, a) { var g = document.createDocumentFragment(), k; if (e === "") { return g } var f = d.separate; var j = e.split(L[f]), c = (f == "words"); if (c && H) { if (/^\s/.test(e)) { j.unshift("") } if (/\s$/.test(e)) { j.push("") } } for (var h = 0, l = j.length; h < l; ++h) { k = B[d.engine](n, c ? O.textAlign(j[h], b, h, l) : j[h], b, d, m, a, h < l - 1); if (k) { g.appendChild(k) } } return g } function Q(a, d) { var b = a.nodeName.toLowerCase(); if (d.ignore[b]) { return } var m = !d.textless[b]; var c = O.getStyle(F(a, d)).extend(d); var l = Z(a, c), k, f, h, j, e, g; if (!l) { return } for (k = a.firstChild; k; k = h) { f = k.nodeType; h = k.nextSibling; if (m && f == 3) { if (j) { j.appendData(k.data); a.removeChild(k) } else { j = k } if (h) { continue } } if (j) { a.replaceChild(N(l, O.whiteSpace(j.data, c, j, g), c, d, k, a), j); j = null } if (f == 1) { if (k.firstChild) { if (k.nodeName.toLowerCase() == "cufon") { B[d.engine](l, null, c, d, k, a) } else { arguments.callee(k, d) } } g = k } } } var H = " ".split(/\s+/).length == 0; var Y = new M(); var aa = new J(); var C = new G(); var X = false; var B = {}, T = {}, E = { autoDetect: false, engine: null, forceHitArea: false, hover: false, hoverables: { a: true }, ignore: { applet: 1, canvas: 1, col: 1, colgroup: 1, head: 1, iframe: 1, map: 1, optgroup: 1, option: 1, script: 1, select: 1, style: 1, textarea: 1, title: 1, pre: 1 }, printable: true, selector: (window.Sizzle || (window.jQuery && function(a) { return jQuery(a) }) || (window.dojo && dojo.query) || (window.Ext && Ext.query) || (window.YAHOO && YAHOO.util && YAHOO.util.Selector && YAHOO.util.Selector.query) || (window.$$ && function(a) { return $$(a) }) || (window.$ && function(a) { return $(a) }) || (document.querySelectorAll && function(a) { return document.querySelectorAll(a) }) || V), separate: "words", textless: { dl: 1, html: 1, ol: 1, table: 1, tbody: 1, thead: 1, tfoot: 1, tr: 1, ul: 1 }, textShadow: "none" }; var L = { words: /\s/.test("\u00a0") ? /[^\S\u00a0]+/ : /\s+/, characters: "", none: /^/ }; P.now = function() { D.ready(); return P }; P.refresh = function() { C.repeat.apply(C, arguments); return P }; P.registerEngine = function(a, b) { if (!b) { return P } B[a] = b; return P.set("engine", a) }; P.registerFont = function(a) { if (!a) { return P } var c = new I(a), b = c.family; if (!T[b]) { T[b] = new W() } T[b].add(c); return P.set("fontFamily", '"' + b + '"') }; P.replace = function(a, b, c) { b = U(E, b); if (!b.engine) { return P } if (!X) { O.addClass(D.root(), "cufon-active cufon-loading"); O.ready(function() { O.addClass(O.removeClass(D.root(), "cufon-loading"), "cufon-ready") }); X = true } if (b.hover) { b.forceHitArea = true } if (b.autoDetect) { delete b.fontFamily } if (typeof b.textShadow == "string") { b.textShadow = O.textShadow(b.textShadow) } if (typeof b.color == "string" && /^-/.test(b.color)) { b.textGradient = O.gradient(b.color) } else { delete b.textGradient } if (!c) { C.add(a, arguments) } if (a.nodeType || typeof a == "string") { a = [a] } O.ready(function() { for (var e = 0, f = a.length; e < f; ++e) { var d = a[e]; if (typeof d == "string") { P.replace(b.selector(d), b, true) } else { Q(d, b) } } }); return P }; P.set = function(b, a) { E[b] = a; return P }; return P })(); Cufon.registerEngine("vml", (function() { var o = document.namespaces; if (!o) { return } o.add("cvml", "urn:schemas-microsoft-com:vml"); o = null; var j = document.createElement("cvml:shape"); j.style.behavior = "url(#default#VML)"; if (!j.coordsize) { return } j = null; var l = (document.documentMode || 0) < 8; document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:' + (l ? "middle" : "text-bottom") + ";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g, "!important;")); function r(b, a) { return k(b, /(?:em|ex|%)$|^[a-z-]+$/i.test(a) ? "1em" : a) } function k(b, a) { if (a === "0") { return 0 } if (/px$/i.test(a)) { return parseFloat(a) } var c = b.style.left, d = b.runtimeStyle.left; b.runtimeStyle.left = b.currentStyle.left; b.style.left = a.replace("%", "em"); var e = b.style.pixelLeft; b.style.left = c; b.runtimeStyle.left = d; return e } function n(b, c, d, f) { var e = "computed" + f, a = c[e]; if (isNaN(a)) { a = c.get(f); c[e] = a = (a == "normal") ? 0 : ~ ~d.convertFrom(k(b, a)) } return a } var m = {}; function q(e) { var d = e.id; if (!m[d]) { var g = e.stops, f = document.createElement("cvml:fill"), c = []; f.type = "gradient"; f.angle = 180; f.focus = "0"; f.method = "sigma"; f.color = g[0][1]; for (var a = 1, b = g.length - 1; a < b; ++a) { c.push(g[a][0] * 100 + "% " + g[a][1]) } f.colors = c.join(","); f.color2 = g[b][1]; m[d] = f } return m[d] } return function(aH, ax, b, aF, aq, aE, d) { var aX = (ax === null); if (aX) { ax = aq.alt } var at = aH.viewBox; var aV = b.computedFontSize || (b.computedFontSize = new Cufon.CSS.Size(r(aE, b.get("fontSize")) + "px", aH.baseSize)); var aM, aU; if (aX) { aM = aq; aU = aq.firstChild } else { aM = document.createElement("cufon"); aM.className = "cufon cufon-vml"; aM.alt = ax; aU = document.createElement("cufoncanvas"); aM.appendChild(aU); if (aF.printable) { var a = document.createElement("cufontext"); a.appendChild(document.createTextNode(ax)); aM.appendChild(a) } if (!d) { aM.appendChild(document.createElement("cvml:shape")) } } var au = aM.style; var aj = aU.style; var aZ = aV.convert(at.height), aB = Math.ceil(aZ); var e = aB / aZ; var al = e * Cufon.CSS.fontStretch(b.get("fontStretch")); var f = at.minX, g = at.minY; aj.height = aB; aj.top = Math.round(aV.convert(g - aH.ascent)); aj.left = Math.round(aV.convert(f)); au.height = aV.convert(aH.height) + "px"; var az = b.get("color"); var ay = Cufon.CSS.textTransform(ax, b).split(""); var ap = aH.spacing(ay, n(aE, b, aV, "letterSpacing"), n(aE, b, aV, "wordSpacing")); if (!ap.length) { return null } var a0 = ap.total; var aN = -f + a0 + (at.width - ap[ap.length - 1]); var aw = aV.convert(aN * al), c = Math.round(aw); var am = aN + "," + at.height, aY; var ar = "r" + am + "ns"; var aQ = aF.textGradient && q(aF.textGradient); var aW = aH.glyphs, h = 0; var av = aF.textShadow; var aJ = -1, aK = 0, aO; while (aO = ay[++aJ]) { var aD = aW[ay[aJ]] || aH.missingGlyph, aP; if (!aD) { continue } if (aX) { aP = aU.childNodes[aK]; while (aP.firstChild) { aP.removeChild(aP.firstChild) } } else { aP = document.createElement("cvml:shape"); aU.appendChild(aP) } aP.stroked = "f"; aP.coordsize = am; aP.coordorigin = aY = (f - h) + "," + g; aP.path = (aD.d ? "m" + aD.d + "xe" : "") + "m" + aY + ar; aP.fillcolor = az; if (aQ) { aP.appendChild(aQ.cloneNode(false)) } var aC = aP.style; aC.width = c; aC.height = aB; if (av) { var aS = av[0], aT = av[1]; var aG = Cufon.CSS.color(aS.color), aL; var an = document.createElement("cvml:shadow"); an.on = "t"; an.color = aG.color; an.offset = aS.offX + "," + aS.offY; if (aT) { aL = Cufon.CSS.color(aT.color); an.type = "double"; an.color2 = aL.color; an.offset2 = aT.offX + "," + aT.offY } an.opacity = aG.opacity || (aL && aL.opacity) || 1; aP.appendChild(an) } h += ap[aK++] } var ao = aP.nextSibling, aR, aI; if (aF.forceHitArea) { if (!ao) { ao = document.createElement("cvml:rect"); ao.stroked = "f"; ao.className = "cufon-vml-cover"; aR = document.createElement("cvml:fill"); aR.opacity = 0; ao.appendChild(aR); aU.appendChild(ao) } aI = ao.style; aI.width = c; aI.height = aB } else { if (ao) { aU.removeChild(ao) } } au.width = Math.max(Math.ceil(aV.convert(a0 * al)), 0); if (l) { var ak = b.computedYAdjust; if (ak === undefined) { var aA = b.get("lineHeight"); if (aA == "normal") { aA = "1em" } else { if (!isNaN(aA)) { aA += "em" } } b.computedYAdjust = ak = 0.5 * (k(aE, aA) - parseFloat(au.height)) } if (ak) { au.marginTop = Math.ceil(ak) + "px"; au.marginBottom = ak + "px" } } return aM } })()); Cufon.registerEngine("canvas", (function() { var g = document.createElement("canvas"); if (!g || !g.getContext || !g.getContext.apply) { return } g = null; var h = Cufon.CSS.supports("display", "inline-block"); var k = !h && (document.compatMode == "BackCompat" || /frameset|transitional/i.test(document.doctype.publicId)); var j = document.createElement("style"); j.type = "text/css"; j.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;" + (k ? "" : "font-size:1px;line-height:1px;") + "}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}" + (h ? "cufon canvas{position:relative;}" : "cufon canvas{position:absolute;}") + "}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g, "!important;"))); document.getElementsByTagName("head")[0].appendChild(j); function l(a, r) { var c = 0, d = 0; var s = [], b = /([mrvxe])([^a-z]*)/g, f; generate: for (var q = 0; f = b.exec(a); ++q) { var e = f[2].split(","); switch (f[1]) { case "v": s[q] = { m: "bezierCurveTo", a: [c + ~ ~e[0], d + ~ ~e[1], c + ~ ~e[2], d + ~ ~e[3], c += ~ ~e[4], d += ~ ~e[5]] }; break; case "r": s[q] = { m: "lineTo", a: [c += ~ ~e[0], d += ~ ~e[1]] }; break; case "m": s[q] = { m: "moveTo", a: [c = ~ ~e[0], d = ~ ~e[1]] }; break; case "x": s[q] = { m: "closePath" }; break; case "e": break generate } r[s[q].m].apply(r, s[q].a) } return s } function m(a, b) { for (var c = 0, d = a.length; c < d; ++c) { var e = a[c]; b[e.m].apply(b, e.a) } } return function(e, aw, ad, az, aq, d) { var aH = (aw === null); if (aH) { aw = aq.getAttribute("alt") } var at = e.viewBox; var aG = ad.getSize("fontSize", e.baseSize); var ar = 0, ae = 0, af = 0, ay = 0; var av = az.textShadow, ah = []; if (av) { for (var f = av.length; f--; ) { var an = av[f]; var ai = aG.convertFrom(parseFloat(an.offX)); var ak = aG.convertFrom(parseFloat(an.offY)); ah[f] = [ai, ak]; if (ak < ar) { ar = ak } if (ai > ae) { ae = ai } if (ak > af) { af = ak } if (ai < ay) { ay = ai } } } var a = Cufon.CSS.textTransform(aw, ad).split(""); var ao = e.spacing(a, ~ ~aG.convertFrom(parseFloat(ad.get("letterSpacing")) || 0), ~ ~aG.convertFrom(parseFloat(ad.get("wordSpacing")) || 0)); if (!ao.length) { return null } var aJ = ao.total; ae += at.width - ao[ao.length - 1]; ay += at.minX; var aA, aF; if (aH) { aA = aq; aF = aq.firstChild } else { aA = document.createElement("cufon"); aA.className = "cufon cufon-canvas"; aA.setAttribute("alt", aw); aF = document.createElement("canvas"); aA.appendChild(aF); if (az.printable) { var y = document.createElement("cufontext"); y.appendChild(document.createTextNode(aw)); aA.appendChild(y) } } var au = aA.style; var al = aF.style; var aI = aG.convert(at.height); var b = Math.ceil(aI); var ag = b / aI; var am = ag * Cufon.CSS.fontStretch(ad.get("fontStretch")); var aj = aJ * am; var ac = Math.ceil(aG.convert(aj + ae - ay)); var aE = Math.ceil(aG.convert(at.height - ar + af)); aF.width = ac; aF.height = aE; al.width = ac + "px"; al.height = aE + "px"; ar += at.minY; al.top = Math.round(aG.convert(ar - e.ascent)) + "px"; al.left = Math.round(aG.convert(ay)) + "px"; var aB = Math.max(Math.ceil(aG.convert(aj)), 0) + "px"; if (h) { au.width = aB; au.height = aG.convert(e.height) + "px" } else { au.paddingLeft = aB; au.paddingBottom = (aG.convert(e.height) - 1) + "px" } var c = aF.getContext("2d"), ap = aI / at.height; c.scale(ap, ap * ag); c.translate(-ay, -ar); c.save(); function x() { var n = e.glyphs, r, o = -1, q = -1, s; c.scale(am, 1); while (s = a[++o]) { var r = n[a[o]] || e.missingGlyph; if (!r) { continue } if (r.d) { c.beginPath(); if (r.code) { m(r.code, c) } else { r.code = l("m" + r.d, c) } c.fill() } c.translate(ao[++q], 0) } c.restore() } if (av) { for (var f = av.length; f--; ) { var an = av[f]; c.save(); c.fillStyle = an.color; c.translate.apply(c, ah[f]); x() } } var aC = az.textGradient; if (aC) { var ax = aC.stops, aD = c.createLinearGradient(0, at.minY, 0, at.maxY); for (var f = 0, ab = ax.length; f < ab; ++f) { aD.addColorStop.apply(aD, ax[f]) } c.fillStyle = aD } else { c.fillStyle = ad.get("color") } x(); return aA } })()); var arVersion = navigator.appVersion.split("MSIE"); var version = parseFloat(arVersion[1]); if ((version >= 5.5) && (document.body.filters)) { for (var i = 0; i < document.images.length; i++) { var img = document.images[i]; var imgName = img.src.toUpperCase(); if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : ""; var imgClass = (img.className) ? "class='" + img.className + "' " : ""; var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "; var imgStyle = "display:inline-block;" + img.style.cssText; if (img.align == "left") { imgStyle = "float:left;" + imgStyle } if (img.align == "right") { imgStyle = "float:right;" + imgStyle } if (img.parentElement.href) { imgStyle = "cursor:hand;" + imgStyle } var strNewHTML = "<span " + imgID + imgClass + imgTitle + ' style="width:' + img.width + "px; height:" + img.height + "px;" + imgStyle + ";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img.src + "', sizingMethod='scale');\"></span>"; img.outerHTML = strNewHTML; i = i - 1 } } } function evakd(h, e, d) { var c = new Date; var f = c.getTime(); evastr0000 += "&evisitanalyst000000000000001872469128461928634tc=" + f; var b = a("evap" + ID_uid_15243615); var g = a("evas" + ID_uid_15243615); evaImage = new Image(); evaImage.src = "http://collect.evisitanalyst.com/eVisit.gif?&evisitanalyst000000000000001872469128461928634userid=" + h + "&evisitanalyst000000000000001872469128461928634tt=k&evisitanalyst000000000000001872469128461928634pcookie=" + b + "&evisitanalyst000000000000001872469128461928634scookie=" + g + "&evisitanalyst000000000000001872469128461928634ctid=" + d + "&evisitanalyst000000000000001872469128461928634ctval=1&evisitanalyst000000000000001872469128461928634tc=" + f + ";"; if (e > 0) { evaImage2 = new Image(); evaImage2.src = "http://collect.evisitanalyst.com/eVisit.gif?&evisitanalyst000000000000001872469128461928634userid=" + e + "&evisitanalyst000000000000001872469128461928634tt=k&evisitanalyst000000000000001872469128461928634pcookie=" + b + "&evisitanalyst000000000000001872469128461928634scookie=" + g + "&evisitanalyst000000000000001872469128461928634ctid=" + d + "&evisitanalyst000000000000001872469128461928634ctval=1&evisitanalyst000000000000001872469128461928634tc=" + f + ";" } function a(l) { var k = document.cookie; var n = l + "="; var m = k.indexOf("; " + n); if (m == -1) { m = k.indexOf(n); if (m != 0) { return null } } else { m += 2 } var j = document.cookie.indexOf(";", m); if (j == -1) { j = k.length } return unescape(k.substring(m + n.length, j)) } } function MM_popupMsg(a) { alert(a) } function MM_openBrWindow(c, a, b) { window.open(c, a, b) } function goHist(b) { history.go(b) } function MM_reloadPage(init) { if (init == true) { with (navigator) { if ((appName == "Netscape") && (parseInt(appVersion) == 4)) { document.MM_pgW = innerWidth; document.MM_pgH = innerHeight; onresize = MM_reloadPage } } } else { if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) { location.reload() } } } MM_reloadPage(true); function MM_preloadImages() { var f = document; if (f.images) { if (!f.MM_p) { f.MM_p = new Array() } var e, c = f.MM_p.length, b = MM_preloadImages.arguments; for (e = 0; e < b.length; e++) { if (b[e].indexOf("#") != 0) { f.MM_p[c] = new Image; f.MM_p[c++].src = b[e] } } } } function MM_swapImgRestore() { var d, b, c = document.MM_sr; for (d = 0; c && d < c.length && (b = c[d]) && b.oSrc; d++) { b.src = b.oSrc } } function MM_findObj(f, e) { var c, b, a; if (!e) { e = document } if ((c = f.indexOf("?")) > 0 && parent.frames.length) { e = parent.frames[f.substring(c + 1)].document; f = f.substring(0, c) } if (!(a = e[f]) && e.all) { a = e.all[f] } for (b = 0; !a && b < e.forms.length; b++) { a = e.forms[b][f] } for (b = 0; !a && e.layers && b < e.layers.length; b++) { a = MM_findObj(f, e.layers[b].document) } if (!a && e.getElementById) { a = e.getElementById(f) } return a } function MM_swapImage() { var e, d = 0, b, c = MM_swapImage.arguments; document.MM_sr = new Array; for (e = 0; e < (c.length - 2); e += 3) { if ((b = MM_findObj(c[e])) != null) { document.MM_sr[d++] = b; if (!b.oSrc) { b.oSrc = b.src } b.src = c[e + 2] } } } function StopPropagation(a) { if (!a) { a = window.event } a.cancelBubble = true } function togglePanel(e, f, b, a) { var c = document.getElementById(f); var d = document.getElementById(e); if (d.style.display == "none") { d.style.display = "block"; c.className = b } else { d.style.display = "none"; c.className = a } } AC_FL_RunContent = 0; DetectFlashVer = 0; var requiredMajorVersion = 7; var requiredMinorVersion = 0; var requiredRevision = 14; function RadEditor_OnClientLoad(a) { a.get_contentArea().className = "RadEditorIframe" } var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; function ControlVersion() { var a; var b; var c; try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); a = b.GetVariable("$version") } catch (c) { } if (!a) { try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); a = "WIN 6,0,21,0"; b.AllowScriptAccess = "always"; a = b.GetVariable("$version") } catch (c) { } } if (!a) { try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); a = b.GetVariable("$version") } catch (c) { } } if (!a) { try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); a = "WIN 3,0,18,0" } catch (c) { } } if (!a) { try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); a = "WIN 2,0,0,11" } catch (c) { a = -1 } } return a } function GetSwfVer() { var g = -1; if (navigator.plugins != null && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var f = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var a = navigator.plugins["Shockwave Flash" + f].description; var e = a.split(" "); var c = e[2].split("."); var h = c[0]; var b = c[1]; var d = e[3]; if (d == "") { d = e[4] } if (d[0] == "d") { d = d.substring(1) } else { if (d[0] == "r") { d = d.substring(1); if (d.indexOf("d") > 0) { d = d.substring(0, d.indexOf("d")) } } } var g = h + "." + b + "." + d } } else { if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) { g = 4 } else { if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) { g = 3 } else { if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) { g = 2 } else { if (isIE && isWin && !isOpera) { g = ControlVersion() } } } } } return g } function DetectFlashVer(f, d, c) { versionStr = GetSwfVer(); if (versionStr == -1) { return false } else { if (versionStr != 0) { if (isIE && isWin && !isOpera) { tempArray = versionStr.split(" "); tempString = tempArray[1]; versionArray = tempString.split(",") } else { versionArray = versionStr.split(".") } var e = versionArray[0]; var a = versionArray[1]; var b = versionArray[2]; if (e > parseFloat(f)) { return true } else { if (e == parseFloat(f)) { if (a > parseFloat(d)) { return true } else { if (a == parseFloat(d)) { if (b >= parseFloat(c)) { return true } } } } } return false } } } function AC_AddExtension(b, a) { if (b.indexOf("?") != -1) { return b.replace(/\?/, a + "?") } else { return b + a } } function AC_Generateobj(f, e, a) { var d = ""; if (isIE && isWin && !isOpera) { d += "<object "; for (var b in f) { d += b + '="' + f[b] + '" ' } d += ">"; for (var b in e) { d += '<param name="' + b + '" value="' + e[b] + '" /> ' } d += "</object>" } else { d += "<embed "; for (var b in a) { d += b + '="' + a[b] + '" ' } d += "> </embed>" } if (f.divid) { var c = document.getElementById(f.divid); if (c) { c.innerHTML = d } else { document.write(d) } } else { document.write(d) } } function AC_FL_RunContent() { var a = AC_GetArgs(arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000", "application/x-shockwave-flash"); AC_Generateobj(a.objAttrs, a.params, a.embedAttrs) } function AC_SW_RunContent() { var a = AC_GetArgs(arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000", null); AC_Generateobj(a.objAttrs, a.params, a.embedAttrs) } function AC_GetArgs(b, e, g, d, h) { var a = new Object(); a.embedAttrs = new Object(); a.params = new Object(); a.objAttrs = new Object(); for (var c = 0; c < b.length; c = c + 2) { var f = b[c].toLowerCase(); switch (f) { case "classid": break; case "pluginspage": a.embedAttrs[b[c]] = b[c + 1]; break; case "src": case "movie": a.embedAttrs.src = b[c + 1]; a.params[g] = b[c + 1]; break; case "onafterupdate": case "onbeforeupdate": case "onblur": case "oncellchange": case "onclick": case "ondblclick": case "ondrag": case "ondragend": case "ondragenter": case "ondragleave": case "ondragover": case "ondrop": case "onfinish": case "onfocus": case "onhelp": case "onmousedown": case "onmouseup": case "onmouseover": case "onmousemove": case "onmouseout": case "onkeypress": case "onkeydown": case "onkeyup": case "onload": case "onlosecapture": case "onpropertychange": case "onreadystatechange": case "onrowsdelete": case "onrowenter": case "onrowexit": case "onrowsinserted": case "onstart": case "onscroll": case "onbeforeeditfocus": case "onactivate": case "onbeforedeactivate": case "ondeactivate": case "type": case "codebase": case "id": case "divid": a.objAttrs[b[c]] = b[c + 1]; break; case "width": case "height": case "align": case "vspace": case "hspace": case "class": case "title": case "accesskey": case "name": case "tabindex": a.embedAttrs[b[c]] = a.objAttrs[b[c]] = b[c + 1]; break; default: a.embedAttrs[b[c]] = a.params[b[c]] = b[c + 1] } } a.objAttrs.classid = d; if (h) { a.embedAttrs.type = h } return a } function embedFlashMovieDV3(b, d, j, c, f, g, a, k) { if (a == "") { a = "#FFFFFF" } if (c == "") { c = "window" } if (AC_FL_RunContent == 0 || DetectFlashVer == 0) { alert("This page requires AC_RunActiveContent.js.") } else { var e = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); if (e) { AC_FL_RunContent("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,14,0", "width", b, "height", d, "src", j, "quality", "high", "pluginspage", "http://www.macromedia.com/go/getflashplayer", "align", "middle", "play", "true", "loop", "true", "scale", "showall", "wmode", c, "devicefont", "false", "id", f, "bgcolor", a, "name", g, "menu", "true", "allowScriptAccess", "sameDomain", "allowFullScreen", "false", "movie", j, "salign", "", "divid", k) } else { var h = ""; document.write(h) } } } (function(b) { function a(g, q) { var d = g, x = b(d), s = null, u = 0, w = true, r = this, h = b.extend({ pauseTime: 5000, transitionTime: 2000, ignore: null, delayStart: 0, pauseOnMouseOver: false, manualNavigation: false, createNavButtons: false, navButtonContainer: null }, q), j = (h.ignore) ? b("> *:not(" + h.ignore + ")", d) : b("> *", d); function t() { x.css("position", "relative"); j.css("display", "none").css({ left: 0, top: 0, position: "absolute" }); j.filter(":first").css("display", "block"); if (h.createNavButtons) { c(); f() } if (h.pauseOnMouseOver) { x.mouseover(n).mouseout(l); b("a", h.navButtonContainer || d).mouseover(n).mouseout(l) } if (h.delayStart > 0) { setTimeout(m, h.delayStart) } else { m() } } function e(y) { b(j[u]).fadeOut(h.transitionTime); b(j[u = y]).fadeIn(h.transitionTime, o); f() } function k(z) { var y; this.blur(); b(j).stop(true); v(); b(j).css({ opacity: 1, display: "none" }); b(j[u]).css({ display: "block" }); y = b(".fadenav a", d).index(this); e(y); z.preventDefault() } function c() { var y, z = b('<div class="fadenav"></div>'); for (y = 0; y < j.length; y++) { b('<a class="nav' + y + '" id="tab' + y + '" href="#">&nbsp;</a>', h.navButtonContainer || d).click(k).appendTo(z) } z.appendTo(h.navButtonContainer || d) } function f() { if (h.createNavButtons) { b(".fadenav a", h.navButtonContainer || d).removeClass("current"); b(".fadenav a:nth-child(" + (1 + u) + ")", h.navButtonContainer || d).addClass("current") } } function m() { if (h.ignore) { b(h.ignore, d).fadeOut(h.transitionTime); b(j[u]).fadeIn(h.transitionTime); s = setTimeout(r.next, h.pauseTime + h.transitionTime) } else { f(); if (!h.manualNavigation) { s = setTimeout(r.next, h.pauseTime) } } } function n() { w = true; v() } function l() { w = false; o() } function v() { if (s) { window.clearTimeout(s); s = null } } this.show = function(y) { if (typeof (j[y]) !== "undefined") { v(); transition(y) } return this }; this.currentItem = function() { return u }; function o() { if (w || h.manualNavigation || (j.length < 2)) { return false } v(); s = window.setTimeout(r.next, h.pauseTime) } this.next = function() { e((u + 1) % j.length || 0) }; this.prev = function() { e(((u || j.length) - 1) % j.length) }; x.data("Fader", this); t() } b.fn.fadeTransition = function(d) { function c() { if (typeof b(this).data("Fader") === "object") { return b(this).data("Fader") } else { return new a(this, d) } } this.fader = function() { if (typeof b(this).filter(":first").data("Fader") === "object") { return b(this).filter(":first").data("Fader") } return null }; return this.each(c) } } (jQuery)); var fadebgcolor = "white"; var fadearray = new Array(); var fadeclear = new Array(); var dom = (document.getElementById); var iebrowser = document.all; var bGlobalOverridePlay = true; function pauseBannerRotator() { bGlobalOverridePlay = false; document.getElementById("hypBannerRotatorPause").style.display = "none"; document.getElementById("hypBannerRotatorPlay").style.display = ""; document.getElementById("hypBannerRotatorPlay").focus() } function playBannerRotator() { bGlobalOverridePlay = true; document.getElementById("hypBannerRotatorPause").style.display = ""; document.getElementById("hypBannerRotatorPause").focus(); document.getElementById("hypBannerRotatorPlay").style.display = "none" } function fadeshow(b, e, a, f, d, g, c) { this.pausecheck = g; this.mouseovercheck = 0; this.delay = d; this.degree = 10; this.curimageindex = 0; this.nextimageindex = 1; fadearray[fadearray.length] = this; this.slideshowid = fadearray.length - 1; this.canvasbase = "canvas" + this.slideshowid; this.curcanvas = this.canvasbase + "_0"; if (typeof c != "undefined") { b.sort(function() { return 0.5 - Math.random() }) } this.theimages = b; this.imageborder = parseInt(f); this.postimages = new Array(); for (p = 0; p < b.length; p++) { this.postimages[p] = new Image(); this.postimages[p].src = b[p][0] } var e = e + this.imageborder * 2; var a = a + this.imageborder * 2; if (iebrowser && dom || dom) { document.write('<div id="master' + this.slideshowid + '" style="position:relative;width:' + e + "px;height:" + a + 'px;overflow:hidden;"><div id="' + this.canvasbase + '_0" style="position:absolute;width:' + e + "px;height:" + a + "px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:" + fadebgcolor + '"></div><div id="' + this.canvasbase + '_1" style="position:absolute;width:' + e + "px;height:" + a + "px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:" + fadebgcolor + '"></div></div>') } else { document.write('<div><img name="defaultslide' + this.slideshowid + '" alt="" src="' + this.postimages[0].src + '"></div>') } if (iebrowser && dom || dom) { this.startit() } else { this.curimageindex++; setInterval("fadearray[" + this.slideshowid + "].rotateimage()", this.delay) } } function fadepic(a) { if (a.degree < 100) { a.degree += 10; if (a.tempobj.filters && a.tempobj.filters[0]) { if (typeof a.tempobj.filters[0].opacity == "number") { a.tempobj.filters[0].opacity = a.degree } else { a.tempobj.style.filter = "alpha(opacity=" + a.degree + ")" } } else { if (a.tempobj.style.MozOpacity) { a.tempobj.style.MozOpacity = a.degree / 101 } else { if (a.tempobj.style.KhtmlOpacity) { a.tempobj.style.KhtmlOpacity = a.degree / 100 } else { if (a.tempobj.style.opacity && !a.tempobj.filters) { a.tempobj.style.opacity = a.degree / 101 } } } } } else { clearInterval(fadeclear[a.slideshowid]); a.nextcanvas = (a.curcanvas == a.canvasbase + "_0") ? a.canvasbase + "_0" : a.canvasbase + "_1"; a.tempobj = iebrowser ? iebrowser[a.nextcanvas] : document.getElementById(a.nextcanvas); a.populateslide(a.tempobj, a.nextimageindex); a.nextimageindex = (a.nextimageindex < a.postimages.length - 1) ? a.nextimageindex + 1 : 0; setTimeout("fadearray[" + a.slideshowid + "].rotateimage()", a.delay) } } fadeshow.prototype.populateslide = function(a, c) { var b = ""; if (this.theimages[c][1] != "") { b = '<a href="' + this.theimages[c][1] + '" target="' + this.theimages[c][2] + '">' } b += '<img alt="" src="' + this.postimages[c].src + '" border="' + this.imageborder + 'px">'; if (this.theimages[c][1] != "") { b += "</a>" } a.innerHTML = b }; fadeshow.prototype.rotateimage = function() { if (this.pausecheck == 1 || !bGlobalOverridePlay) { var c = this } if (this.mouseovercheck == 1 || !bGlobalOverridePlay) { setTimeout(function() { c.rotateimage() }, 100) } else { if (iebrowser && dom || dom) { this.resetit(); var a = this.tempobj = iebrowser ? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas); a.style.zIndex++; fadeclear[this.slideshowid] = setInterval("fadepic(fadearray[" + this.slideshowid + "])", 50); this.curcanvas = (this.curcanvas == this.canvasbase + "_0") ? this.canvasbase + "_1" : this.canvasbase + "_0" } else { var b = document.images["defaultslide" + this.slideshowid]; b.src = this.postimages[this.curimageindex].src } } this.curimageindex = (this.curimageindex < this.postimages.length - 1) ? this.curimageindex + 1 : 0 }; fadeshow.prototype.resetit = function() { this.degree = 10; var a = iebrowser ? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas); if (a.filters && a.filters[0]) { if (typeof a.filters[0].opacity == "number") { a.filters(0).opacity = this.degree } else { a.style.filter = "alpha(opacity=" + this.degree + ")" } } else { if (a.style.MozOpacity) { a.style.MozOpacity = this.degree / 101 } else { if (a.style.KhtmlOpacity) { a.style.KhtmlOpacity = this.degree / 100 } else { if (a.style.opacity && !a.filters) { a.style.opacity = this.degree / 101 } } } } }; fadeshow.prototype.startit = function() { var a = iebrowser ? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas); this.populateslide(a, this.curimageindex); if (this.pausecheck == 1 || !bGlobalOverridePlay) { var c = this; var b = iebrowser ? iebrowser["master" + this.slideshowid] : document.getElementById("master" + this.slideshowid); if (!bGlobalOverridePlay) { c.mouseovercheck = 1 } else { c.mouseovercheck = 0; b.onmouseover = function() { c.mouseovercheck = 1 }; b.onmouseout = function() { c.mouseovercheck = 0 } } } this.rotateimage() };
