; (function (window, document, undefined) { var a; mti = {}; mti.bind = function (b, c) { var d = arguments.length > 2 ? Array.prototype.slice.call(arguments, 2) : []; return function () { d.push.apply(d, arguments); return c.apply(b, d) } }; mti.DomHelper = function (b, c) { this.document_ = b; this.userAgent_ = c }; mti.DomHelper.prototype.createElement = function (b, c, d) { b = this.document_.createElement(b); if (c) for (var e in c) if (c.hasOwnProperty(e)) if (e == "style" && this.userAgent_.getName() == "MSIE") b.style.cssText = c[e]; else b.setAttribute(e, c[e]); d && b.appendChild(this.document_.createTextNode(d)); return b }; mti.DomHelper.prototype.insertInto = function (b, c) { b = this.document_.getElementsByTagName(b)[0]; if (!b) b = document.documentElement; if (b && b.lastChild) { b.insertBefore(c, b.lastChild); return true } return false }; mti.DomHelper.prototype.whenBodyExists = function (b) { var c = function () { document.body ? b() : setTimeout(c, 0) }; c() }; mti.DomHelper.contentAlreadyReady = false; a = mti.DomHelper.prototype; a.whenContentLoaded = function (b) { if (mti.DomHelper.contentAlreadyReady === true) b(); else if (this.userAgent_.getName() == "MSIE") { var c = this.document_, d = false, e = function () { if (!d) { d = true; b(); mti.DomHelper.contentAlreadyReady = true } }; (function () { try { c.documentElement.doScroll("left"); if (c.readyState != "complete") { setTimeout(arguments.callee, 50); return } } catch (f) { setTimeout(arguments.callee, 50); return } e() })(); c.onreadystatechange = function () { if (c.readyState == "complete") { c.onreadystatechange = null; e() } } } else if (this.userAgent_.getEngine() == "AppleWebKit" && this.userAgent_.getEngineVersion() < 525) (function () { if (["loaded", "complete"].indexOf(this.document_.readyState) > -1) { b(); mti.DomHelper.contentAlreadyReady = true } else setTimeout(arguments.callee, 50) })(); else if (this.document_.addEventListener) this.document_.addEventListener("DOMContentLoaded", function () { b(); mti.DomHelper.contentAlreadyReady = true }, false); else window.onload = function () { b(); mti.DomHelper.contentAlreadyReady = true } }; a.removeElement = function (b) { if (b.parentNode) { b.parentNode.removeChild(b); return true } return false }; a.createCssLink = function (b) { return this.createElement("link", { rel: "stylesheet", href: b }) }; a.createScriptSrc = function (b) { return this.createElement("script", { src: b }) }; a.appendClassName = function (b, c) { for (var d = b.className.split(/\s+/), e = 0, f = d.length; e < f; e++) if (d[e] == c) return; d.push(c); b.className = d.join(" ").replace(/^\s+/, "") }; a.removeClassName = function (b, c) { for (var d = b.className.split(/\s+/), e = [], f = 0, g = d.length; f < g; f++) d[f] != c && e.push(d[f]); b.className = e.join(" ").replace(/^\s+/, "").replace(/\s+$/, "") }; a.getComputedFontFamily = function (b) { if (typeof b != "undefined") if (b != null) return typeof b.currentStyle != "undefined" ? b.currentStyle.fontFamily : this.document_.defaultView.getComputedStyle(b, null).getPropertyValue("font-family"); return "" }; a.getComputedVisibility = function (b) { if (b) return typeof b.currentStyle != "undefined" ? b.currentStyle.visibility : this.document_.defaultView.getComputedStyle(b, null).getPropertyValue("visibility") }; a.getText = function (b) { var c = ""; b = b.childNodes || b; for (var d = 0; d < b.length; d++) if (b[d].nodeType != 8) c += b[d].nodeType != 1 ? b[d].nodeValue : this.getText(b[d].childNodes); return c }; a.getElementById = function (b) { return this.document_.getElementById(b) }; a.replaceFontFamily = function (b, c, d) { newFamilyVal = []; currFamily = b.style.fontFamily; currFamilyVal = currFamily.split(","); for (i = 0; i < d.length; i++) d[i] != "" && newFamilyVal.push(d[i]); for (j = 0; j < currFamilyVal.length; j++) currFamilyVal[j] != "" && newFamilyVal.push(currFamilyVal[j]); b.style.fontFamily = "" + newFamilyVal; return b.style.fontFamily }; a.isDescendant = function (b, c) { for (c = c.parentNode; c != null; ) { if (c == b) return true; c = c.parentNode } return false }; a.walkTheDOM = function (b, c) { c(b); for (b = b.firstChild; b; ) { this.walkTheDOM(b, c); b = b.nextSibling } }; a.getElementsByClassName = function (b) { if (document.getElementsByClassName) return document.getElementsByClassName(b); else { var c = []; this.walkTheDOM(document.body, function (d) { var e; e = d.className; var f; if (e) { e = e.split(" "); for (f = 0; f < e.length; f++) if (e[f] === b) { c.push(d); break } } }); return c } }; a.removeMTIElement = function (b) { var c = this.getElementsByClassName(b), d = this.userAgent_.getName(); d = d.toLowerCase(); var e = this.userAgent_.getVersion(); d = d == "msie" && e < 8 ? true : false; for (e = new RegExp(b, "ig"); c.length > 0; ) { for (i = 0; i < c.length; i++) if (c[i].className.split(" ").length == 1 && !d) c[i].removeAttribute("class"); else c[i].className = c[i].className.replace(e, " ").replace(/^\s+|\s+$/g, ""); c = this.getElementsByClassName(b) } }; mti.UserAgent = function (b, c, d, e, f, g) { this.name_ = b; this.version_ = c; this.engine_ = d; this.engineVersion_ = e; this.platform_ = f; this.webFontSupport_ = g }; a = mti.UserAgent.prototype; a.getName = function () { return this.name_ }; a.getVersion = function () { return this.version_ }; a.getEngine = function () { return this.engine_ }; a.getEngineVersion = function () { return this.engineVersion_ }; a.getPlatform = function () { return this.platform_ }; a.isSupportingWebFont = function () { return this.webFontSupport_ }; mti.UserAgentParser = function (b) { this.userAgent_ = b }; mti.UserAgentParser.UNKNOWN = "Unknown"; mti.UserAgentParser.UNKNOWN_USER_AGENT = new mti.UserAgent(mti.UserAgentParser.UNKNOWN, mti.UserAgentParser.UNKNOWN, mti.UserAgentParser.UNKNOWN, false); a = mti.UserAgentParser.prototype; a.parse = function () { return this.isIe_() ? this.parseIeUserAgentString_() : this.isOpera_() ? this.parseOperaUserAgentString_() : this.isWebKit_() ? this.parseWebKitUserAgentString_() : this.isGecko_() ? this.parseGeckoUserAgentString_() : mti.UserAgentParser.UNKNOWN_USER_AGENT }; a.getPlatform_ = function () { var b = this.getFirstMatchingGroup_(this.userAgent_, /(iPod|iPad|iPhone|Android)/); if (b != "") return b; b = this.getFirstMatchingGroup_(this.userAgent_, /(Linux|Mac_PowerPC|Macintosh|Windows)/); if (b != "") { if (b == "Mac_PowerPC") b = "Macintosh"; return b } return mti.UserAgentParser.UNKNOWN }; a.isIe_ = function () { return this.userAgent_.indexOf("MSIE") != -1 }; a.parseIeUserAgentString_ = function () { var b = this.getFirstMatchingGroup_(this.userAgent_, /(MSIE [\d\w\.]+)/); if (b != "") { var c = b.split(" "); b = c[0]; c = c[1]; return new mti.UserAgent(b, c, b, c, this.getPlatform_(), this.getMajorVersion_(c) >= 6) } return new mti.UserAgent("MSIE", mti.UserAgentParser.UNKNOWN, "MSIE", mti.UserAgentParser.UNKNOWN, this.getPlatform_(), false) }; a.isOpera_ = function () { return this.userAgent_.indexOf("Opera") != -1 }; a.parseOperaUserAgentString_ = function () { var b = mti.UserAgentParser.UNKNOWN, c = mti.UserAgentParser.UNKNOWN, d = this.getFirstMatchingGroup_(this.userAgent_, /(Presto\/[\d\w\.]+)/); if (d != "") { c = d.split("/"); b = c[0]; c = c[1] } else { if (this.userAgent_.indexOf("Gecko") != -1) b = "Gecko"; d = this.getFirstMatchingGroup_(this.userAgent_, /rv:([^\)]+)/); if (d != "") c = d } if (this.userAgent_.indexOf("Version/") != -1) { d = this.getFirstMatchingGroup_(this.userAgent_, /Version\/([\d\.]+)/); if (d != "") return new mti.UserAgent("Opera", d, b, c, this.getPlatform_(), this.getMajorVersion_(d) >= 10) } d = this.getFirstMatchingGroup_(this.userAgent_, /Opera[\/ ]([\d\.]+)/); if (d != "") return new mti.UserAgent("Opera", d, b, c, this.getPlatform_(), this.getMajorVersion_(d) >= 10); return new mti.UserAgent("Opera", mti.UserAgentParser.UNKNOWN, b, c, this.getPlatform_(), false) }; a.isWebKit_ = function () { return this.userAgent_.indexOf("AppleWebKit") != -1 }; a.parseWebKitUserAgentString_ = function () { var b = this.getPlatform_(), c = this.getFirstMatchingGroup_(this.userAgent_, /AppleWebKit\/([\d\.\+]+)/); if (c == "") c = mti.UserAgentParser.UNKNOWN; var d = mti.UserAgentParser.UNKNOWN; if (this.userAgent_.indexOf("Chrome") != -1) d = "Chrome"; else if (this.userAgent_.indexOf("Safari") != -1) d = "Safari"; var e = mti.UserAgentParser.UNKNOWN; if (this.userAgent_.indexOf("Version/") != -1) e = this.getFirstMatchingGroup_(this.userAgent_, /Version\/([\d\.\w]+)/); else if (d == "Chrome") e = this.getFirstMatchingGroup_(this.userAgent_, /Chrome\/([\d\.]+)/); var f = this.getFirstMatchingGroup_(c, /\d+\.(\d+)/); return new mti.UserAgent(d, e, "AppleWebKit", c, b, this.getMajorVersion_(c) >= 526 || this.getMajorVersion_(c) >= 525 && parseInt(f) >= 13) }; a.isGecko_ = function () { return this.userAgent_.indexOf("Gecko") != -1 }; a.parseGeckoUserAgentString_ = function () { var b = mti.UserAgentParser.UNKNOWN, c = mti.UserAgentParser.UNKNOWN, d = false; if (this.userAgent_.indexOf("Firefox") != -1) { b = "Firefox"; var e = this.getFirstMatchingGroup_(this.userAgent_, /Firefox\/([\d\w\.]+)/); if (e != "") { d = this.getFirstMatchingGroup_(e, /\d+\.(\d+)/); c = e; d = e != "" && this.getMajorVersion_(e) >= 3 && parseInt(d) >= 5 } } else if (this.userAgent_.indexOf("Mozilla") != -1) b = "Mozilla"; e = this.getFirstMatchingGroup_(this.userAgent_, /rv:([^\)]+)/); if (e == "") e = mti.UserAgentParser.UNKNOWN; else if (!d) { d = this.getMajorVersion_(e); var f = parseInt(this.getFirstMatchingGroup_(e, /\d+\.(\d+)/)), g = parseInt(this.getFirstMatchingGroup_(e, /\d+\.\d+\.(\d+)/)); d = d > 1 || d == 1 && f > 9 || d == 1 && f == 9 && g >= 2 || e.match(/1\.9\.1b[123]/) != null || e.match(/1\.9\.1\.[\d\.]+/) != null } return new mti.UserAgent(b, c, "Gecko", e, this.getPlatform_(), d) }; a.getMajorVersion_ = function (b) { b = this.getFirstMatchingGroup_(b, /(\d+)/); if (b != "") return parseInt(b); return -1 }; a.getFirstMatchingGroup_ = function (b, c) { if ((b = b.match(c)) && b[1]) return b[1]; return "" }; mti.EventDispatcher = function (b, c, d, e) { this.domHelper_ = b; this.htmlElement_ = c; this.callbacks_ = d; this.namespace_ = e || mti.EventDispatcher.DEFAULT_NAMESPACE; this.cssClassName_ = new mti.CssClassName("-") }; mti.EventDispatcher.DEFAULT_NAMESPACE = "mti"; mti.EventDispatcher.LOADING = "loading"; mti.EventDispatcher.ACTIVE = "active"; mti.EventDispatcher.INACTIVE = "inactive"; mti.EventDispatcher.FONT = "font"; a = mti.EventDispatcher.prototype; a.dispatchLoading = function () { this.domHelper_.appendClassName(this.htmlElement_, this.cssClassName_.build(this.namespace_, mti.EventDispatcher.LOADING)); this.dispatch_(mti.EventDispatcher.LOADING) }; a.dispatchFontLoading = function (b, c) { this.domHelper_.appendClassName(this.htmlElement_, this.cssClassName_.build(this.namespace_, b, c, mti.EventDispatcher.LOADING)); this.dispatch_(mti.EventDispatcher.FONT + mti.EventDispatcher.LOADING, b, c) }; a.dispatchFontActive = function (b, c) { this.domHelper_.appendClassName(this.htmlElement_, this.cssClassName_.build(this.namespace_, b, c, mti.EventDispatcher.ACTIVE)); this.dispatch_(mti.EventDispatcher.FONT + mti.EventDispatcher.ACTIVE, b, c); var d = this; setTimeout(function () { d.domHelper_.removeClassName(d.htmlElement_, d.cssClassName_.build(d.namespace_, b, c, mti.EventDispatcher.LOADING)) }, 500) }; a.dispatchFontInactive = function (b, c) { this.domHelper_.appendClassName(this.htmlElement_, this.cssClassName_.build(this.namespace_, b, c, mti.EventDispatcher.INACTIVE)); this.dispatch_(mti.EventDispatcher.FONT + mti.EventDispatcher.INACTIVE, b, c); var d = this; setTimeout(function () { d.domHelper_.removeClassName(d.htmlElement_, d.cssClassName_.build(d.namespace_, b, c, mti.EventDispatcher.LOADING)) }, 2E3) }; a.dispatchInactive = function () { this.domHelper_.appendClassName(this.htmlElement_, this.cssClassName_.build(this.namespace_, mti.EventDispatcher.INACTIVE)); this.domHelper_.removeClassName(this.htmlElement_, this.cssClassName_.build(this.namespace_, mti.EventDispatcher.LOADING)); setTimeout(function () { document.documentElement.className = document.documentElement.className.replace(/mti\-(.*?)loading/ig, "").replace(/^\s+|\s+$/g, "").replace(/\s+/g, " ") + " mti-repaint" }, 100); this.dispatch_(mti.EventDispatcher.INACTIVE) }; a.dispatchActive = function () { this.domHelper_.appendClassName(this.htmlElement_, this.cssClassName_.build(this.namespace_, mti.EventDispatcher.ACTIVE)); this.domHelper_.removeClassName(document.documentElement, this.cssClassName_.build(this.namespace_, mti.EventDispatcher.LOADING)); this.dispatch_(mti.EventDispatcher.ACTIVE); setTimeout(function () { document.documentElement.className = document.documentElement.className.replace(/mti\-(.*?)loading/ig, "").replace(/^\s+|\s+$/g, "").replace(/\s+/g, " ") + " mti-repaint" }, 100) }; a.dispatch_ = function (b, c, d) { this.callbacks_[b] && this.callbacks_[b](c, d) }; mti.FontModuleLoader = function () { this.modules_ = {} }; mti.FontModuleLoader.prototype.addModuleFactory = function (b, c) { this.modules_[b] = c }; mti.FontModuleLoader.prototype.getModules = function (b) { var c = []; for (var d in b) if (b.hasOwnProperty(d)) { var e = this.modules_[d]; e && c.push(e(b[d])) } return c }; mti.FontWatcher = function (b, c, d, e, f) { this.domHelper_ = b; this.eventDispatcher_ = c; this.fontSizer_ = d; this.asyncCall_ = e; this.getTime_ = f; this.currentlyWatched_ = 0; this.success_ = this.last_ = false; this.nameHelper_ = new mti.CssFontFamilyName; this.fvd_ = new mti.FontVariationDescription }; mti.FontWatcher.DEFAULT_FONT = "_,arial,helvetica"; mti.FontWatcher.DEFAULT_VARIATION = "n4"; a = mti.FontWatcher.prototype; a.watch = function (b, c, d) { for (var e = b.length, f = 0; f < e; f++) { var g = b[f]; c[g] || (c[g] = [mti.FontWatcher.DEFAULT_VARIATION]); this.currentlyWatched_ += c[g].length } if (d) this.last_ = d; for (f = 0; f < e; f++) { g = b[f]; d = c[g]; for (var h = 0, n = d.length; h < n; h++) { var m = d[h], l = this.getDefaultFontSize_(m); this.watch_(g, m, l) } } }; a.watch_ = function (b, c, d) { this.eventDispatcher_.dispatchFontLoading(b, c); var e = this.createHiddenElementWithFont_(this.nameHelper_.quote(b), c), f = this.fontSizer_.getWidth(e); if (d != f) { this.domHelper_.removeElement(e); this.eventDispatcher_.dispatchFontActive(b, c); this.success_ = true; this.decreaseCurrentlyWatched_() } else this.asyncCheck_(this.getTime_(), d, e, b, c) }; a.decreaseCurrentlyWatched_ = function () { if (--this.currentlyWatched_ == 0 && this.last_) this.success_ ? this.eventDispatcher_.dispatchActive() : this.eventDispatcher_.dispatchInactive() }; a.check_ = function (b, c, d, e, f) { var g = this.fontSizer_.getWidth(d); if (c != g) { this.domHelper_.removeElement(d); this.eventDispatcher_.dispatchFontActive(e, f); this.success_ = true; this.decreaseCurrentlyWatched_() } else if (this.getTime_() - b < mti.FontWatcherTimeout) this.asyncCheck_(b, c, d, e, f); else { this.domHelper_.removeElement(d); this.eventDispatcher_.dispatchFontInactive(e, f); this.decreaseCurrentlyWatched_() } }; a.asyncCheck_ = function (b, c, d, e, f) { this.asyncCall_(function (g, h) { return function () { h.call(g, b, c, d, e, f) } } (this, this.check_), 50) }; a.getDefaultFontSize_ = function (b) { b = this.createHiddenElementWithFont_(mti.FontWatcher.DEFAULT_FONT, b); var c = this.fontSizer_.getWidth(b); this.domHelper_.removeElement(b); return c }; a.createHiddenElementWithFont_ = function (b, c) { c = this.fvd_.expand(c); b = this.domHelper_.createElement("span", { style: "position:absolute;top:-999px;font-size:300px;font-family:" + b + "," + mti.FontWatcher.DEFAULT_FONT + ";" + c }, "Mm"); this.domHelper_.insertInto("body", b); return b }; mti.WebFont = function (b, c, d, e, f) { this.domHelper_ = b; this.fontModuleLoader_ = c; this.htmlElement_ = d; this.asyncCall_ = e; this.userAgent_ = f; this.moduleFailedLoading_ = this.moduleLoading_ = 0 }; a = mti.WebFont.prototype; a.addModule = function (b, c) { this.fontModuleLoader_.addModuleFactory(b, c) }; a.load = function (b) { var c = new mti.EventDispatcher(this.domHelper_, this.htmlElement_, b); this.userAgent_.isSupportingWebFont() ? this.load_(c, b) : c.dispatchInactive() }; a.isModuleSupportingUserAgent_ = function (b, c, d, e) { if (e) b.load(mti.bind(this, this.onModuleReady_, c, d)); else { b = --this.moduleLoading_ == 0; this.moduleFailedLoading_--; if (b) this.moduleFailedLoading_ == 0 ? c.dispatchInactive() : c.dispatchLoading(); d.watch([], {}, b) } }; a.onModuleReady_ = function (b, c, d, e) { var f = --this.moduleLoading_ == 0; f && b.dispatchLoading(); this.asyncCall_(mti.bind(this, function (g, h, n, m) { setTimeout(function () { g.watch(h, n || {}, m) }, 100) }, c, d, e, f)) }; a.load_ = function (b, c) { c = this.fontModuleLoader_.getModules(c); this.moduleFailedLoading_ = this.moduleLoading_ = c.length; for (var d = new mti.FontWatcher(this.domHelper_, b, { getWidth: function (h) { return h.offsetWidth } }, this.asyncCall_, function () { return (new Date).getTime() }), e = 0, f = c.length; e < f; e++) { var g = c[e]; g.supportUserAgent(this.userAgent_, mti.bind(this, this.isModuleSupportingUserAgent_, g, b, d)) } }; mti.CssClassName = function (b) { this.joinChar_ = b || mti.CssClassName.DEFAULT_JOIN_CHAR }; mti.CssClassName.DEFAULT_JOIN_CHAR = "-"; mti.CssClassName.prototype.sanitize = function (b) { return b.replace(/[\W_]+/g, "").toLowerCase() }; mti.CssClassName.prototype.build = function () { for (var b = [], c = 0; c < arguments.length; c++) b.push(this.sanitize(arguments[c])); return b.join(this.joinChar_) }; mti.CssFontFamilyName = function () { this.quote_ = '"' }; mti.CssFontFamilyName.prototype.quote = function (b) { var c = []; b = b.split(/,\s*/); for (var d = 0; d < b.length; d++) { var e = b[d].replace(/['"]/g, ""); e.indexOf(" ") == -1 ? c.push(e) : c.push(this.quote_ + e + this.quote_) } return c.join(",") }; mti.FontVariationDescription = function () { this.properties_ = mti.FontVariationDescription.PROPERTIES; this.values_ = mti.FontVariationDescription.VALUES }; mti.FontVariationDescription.PROPERTIES = ["font-style", "font-weight"]; mti.FontVariationDescription.VALUES = { "font-style": [["n", "normal"]], "font-weight": [["4", "normal"]] }; mti.FontVariationDescription.Item = function (b, c, d) { this.index_ = b; this.property_ = c; this.values_ = d }; mti.FontVariationDescription.Item.prototype.compact = function (b, c) { for (var d = 0; d < this.values_.length; d++) if (c == this.values_[d][1]) { b[this.index_] = this.values_[d][0]; return } }; mti.FontVariationDescription.Item.prototype.expand = function (b, c) { for (var d = 0; d < this.values_.length; d++) if (c == this.values_[d][0]) { b[this.index_] = this.property_ + ":" + this.values_[d][1]; return } }; mti.FontVariationDescription.prototype.compact = function (b) { var c = ["n", "4"]; b = b.split(";"); for (var d = 0, e = b.length; d < e; d++) { var f = b[d].replace(/\s+/g, "").split(":"); if (f.length == 2) { var g = f[1]; (f = this.getItem_(f[0])) && f.compact(c, g) } } return c.join("") }; mti.FontVariationDescription.prototype.expand = function (b) { if (b.length != 2) return null; for (var c = [null, null], d = 0, e = this.properties_.length; d < e; d++) { var f = this.properties_[d], g = b.substr(d, 1); (new mti.FontVariationDescription.Item(d, f, this.values_[f])).expand(c, g) } return c[0] && c[1] ? c.join(";") + ";" : null }; mti.FontVariationDescription.prototype.getItem_ = function (b) { for (var c = 0; c < this.properties_.length; c++) if (b == this.properties_[c]) return new mti.FontVariationDescription.Item(c, b, this.values_[b]); return null }; var globalName = "MonoTypeWebFonts"; window[globalName] = function () { var b = (new mti.UserAgentParser(navigator.userAgent)).parse(), c = new mti.DomHelper(document, b); return new mti.WebFont(c, new mti.FontModuleLoader, document.documentElement, function (d, e) { setTimeout(d, e) }, b) } (); window[globalName].load = window[globalName].load; window[globalName].addModule = window[globalName].addModule; var MTIConfig = window.MTIConfig || { isAsync: false, EnableCustomFOUTHandler: false, RemoveMTIClass: false }; mti.TextCollector = function (b, c, d) { this.root_ = b; this.domHelper_ = c; this.projectFontList_ = d; this.queryFontList_ = {}; this.elementCache_ = []; this.usedProjectFontList_ = [] }; a = mti.TextCollector.prototype; a.indexOf = function (b, c) { if (b.indexOf) return b.indexOf(c); else { for (var d = 0; d < b.length; d++) if (b[d] == c) return d; return -1 } }; a.getFontTexts = function (b, c) { var d = this.projectFontList_, e = this.domHelper_.getComputedFontFamily(b); e = (e || "").replace(/^\s|\s$/g, "").replace(/'|"/g, "").replace(/,\s*/g, "|"); if (e != "") { fontFamilies = e.split("|"); for (j = 0; j < fontFamilies.length; j++) { e = new RegExp("^(" + fontFamilies[j] + ")$", "ig"); for (i = 0; i < d.length; i++) { var f = d[i], g = f.fontfamily; if (e.test(g.replace(/^\s|\s$/g, ""))) { this.usedProjectFontList_.push(g.replace(/^\s|\s$/g, "")); if (MTIConfig.EnableCustomFOUTHandler == true) this.domHelper_.appendClassName(b, c ? "mti_font_element" + c : "mti_font_element"); this.elementCache_.push(b); if (f.enableSubsetting) if (this.queryFontList_[g.replace(/^\s|\s$/g, "")]) this.queryFontList_[g.replace(/^\s|\s$/g, "")] += this.domHelper_.getText(b); else this.queryFontList_[g.replace(/^\s|\s$/g, "")] = this.domHelper_.getText(b) } } } } }; a.getCollectedText = function (b, c) { b = "img,select,option,script,noscript,iframe,object,style,param,embed,link,meta,head,title,br,hr".split(","); var d = this.root_, e = null; do { e = d.firstChild; if (e == null) { if (d.nodeType == 1) if (this.indexOf(b, d.tagName.toLowerCase()) < 0) c ? this.getFontTexts(d, c) : this.getFontTexts(d); e = d.nextSibling } if (e == null) { d = d; do { e = d.parentNode; if (e == this.root_) { if (e.tagName.toLowerCase() != "body") if (this.indexOf(b, e.tagName.toLowerCase()) < 0) c ? this.getFontTexts(e, c) : this.getFontTexts(e); break } if (e != null) { if (e.nodeType == 1) if (this.indexOf(b, e.tagName.toLowerCase()) < 0) c ? this.getFontTexts(e, c) : this.getFontTexts(e); d = e; e = e.nextSibling } } while (e == null) } d = e } while (d != this.root_); c = false; for (p in this.queryFontList_) { c = true; break } if (c) return this.queryFontList_; return null }; a.getElements = function () { return this.elementCache_ }; a.getUsedProjectFonts = function () { return this.usedProjectFontList_ }; a.replaceFontFamily = function (b, c) { var d = "img,select,option,script,noscript,iframe,object,style,param,embed,link,meta,head,title,br,hr".split(","), e = this.root_, f = null; do { f = e.firstChild; if (f == null) { e.nodeType == 1 && this.indexOf(d, e.tagName.toLowerCase()) < 0 && this.getFontTexts(e); f = e.nextSibling } if (f == null) { e = e; do { f = e.parentNode; if (f == this.root_) break; f.nodeType == 1 && this.indexOf(d, f.tagName.toLowerCase()) < 0 && this.domHelper_.getComputedFontFamily(f).indexOf(b) > -1 && this.domHelper_.replaceFontFamily(f, b, c); e = f; f = f.nextSibling } while (f == null) } e = f } while (e != this.root_); b = false; for (p in this.queryFontList_) { b = true; break } if (b) return this.queryFontList_; return null }; mti.FontWatcherTimeout = 4E4; mti.MonotypeFontApi = function (b, c, d, e, f) { this.global_ = b; this.userAgent_ = c; this.domHelper_ = d; this.configuration_ = e; this.fontFamilies_ = []; this.fontVariations_ = {}; this.otfMain_ = f }; mti.MonotypeFontApi.NAME = "monotype"; a = mti.MonotypeFontApi.prototype; a.supportUserAgent = function (b, c) { var d = this, e = d.configuration_.projectId; if (e) { d.global_["__mti_fntLst" + e] = function () { return d.configuration_.pfL }; d.global_.mti_element_cache = []; d.appendDefinationStyleNode(); e = function () { var f = function () { n = new mti.TextCollector(document.body, d.domHelper_, d.configuration_.pfL); m = n.getCollectedText(); h && d.removeFakeFontFace(); for (fontfamily in m) m[fontfamily] = d.extractUniqueChars(m[fontfamily]); d.global_.mti_element_cache = n.elementCache_; d.appendFontFaceStyleNode(n.getUsedProjectFonts(), m); var l = n.getElements(); d.otfMain_ != null && mti.bind(d.otfMain_, d.otfMain_.load, l)(); for (var o = 0; o < l.length; o++) for (fontFamily in d.fontStack) d.domHelper_.getComputedFontFamily(l[o]).indexOf(fontFamily) > -1 && d.domHelper_.replaceFontFamily(l[o], fontFamily, d.fontStack[fontFamily]) }, g = d.userAgent_.getName(); g = g.toLowerCase(); var h = g == "opera" ? true : false; g = d.configuration_.reqSub; var n = null, m = null; if (h && g) { d.appendFakeFontFace(); d.whenFakeFontDetected(function () { f() }) } else if (!h && g) f(); else { n = new mti.TextCollector(document.body, d.domHelper_, d.configuration_.pfL); m = n.getCollectedText(); d.appendFontFaceStyleNode(n.getUsedProjectFonts()); d.global_.mti_element_cache = n.elementCache_; d.otfMain_ != null && mti.bind(d.otfMain_, d.otfMain_.load, n.elementCache_)() } c(b.isSupportingWebFont()) }; setTimeout(function () { document.documentElement.style.visibility = "" }, 750); if (MTIConfig.isAsync === true) MTIConfig.onReady = e; else d.configuration_.reqSub ? d.domHelper_.whenContentLoaded(e) : d.domHelper_.whenBodyExists(function () { var f = new mti.TextCollector(document.body, d.domHelper_, d.configuration_.pfL); f.getCollectedText(); d.appendFontFaceStyleNode(f.getUsedProjectFonts()); d.global_.mti_element_cache = f.elementCache_; d.otfMain_ != null && mti.bind(d.otfMain_, d.otfMain_.load, f.elementCache_)(); c(b.isSupportingWebFont()) }); if (MTIConfig.EnableCustomFOUTHandler == true) document.documentElement.style.visibility = "hidden" } else c(true) }; a.appendFakeFontFace = function (b) { var c = document.createElement("STYLE"); c.setAttribute("type", "text/css"); c.id = "monotype_fake_fontface_" + this.configuration_.projectId; var d = "", e = this.configuration_.pfL; if (e != null) { d += "@font-face{font-family:opera_testfont;src:url(data:font/opentype;base64,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)}"; for (var f = 0; f < e.length; f++) d += "@font-face{font-family:'" + e[f].fontfamily + (b ? b : "") + "';src:url(data:font/opentype;base64,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);}" } c.textContent = d; b = document.getElementsByTagName("HEAD"); b.length > 0 && b[0].appendChild(c) }; a.removeFakeFontFace = function () { var b = document.getElementById("monotype_fake_fontface_" + this.configuration_.projectId); b && b.parentNode.removeChild(b) }; a.whenFakeFontDetected = function (b) { var c = this, d = document.createElement("SPAN"); d.innerHTML = "MMMWWW"; d.style.position = "absolute"; d.style.left = "-32768px"; d.style.fontFamily = "opera_testfont"; document.documentElement.appendChild(d); var e = 0, f = (new Date).getTime(); e = window.setInterval(function () { if (c.domHelper_.getComputedFontFamily(d) === "opera_testfont" || (new Date).getTime() - f > 200) { try { document.documentElement.removeChild(d) } catch (g) { } b(); window.clearInterval(e) } }, 60) }; a.getFontExtension = function (b) { var c = this.configuration_.ffArray, d = this.userAgent_.getName(); d = d.toLowerCase(); if (d == "firefox") d = "mozilla"; if (/ipad|ipod|iphone/.test(this.userAgent_.getPlatform().toLowerCase())) d = "msafari"; var e = this.userAgent_.getVersion(); c = c[d]; d = ""; for (p in c) if (parseFloat(e) >= parseFloat(p)) if (b[c[p].toUpperCase()]) d = c[p]; return d }; a.calculateFontStackingInfo = function (b, c, d, e, f, g, h, n) { var m = b[n.toUpperCase()]; e = (window.location.protocol == "https:" ? "https://" : "http://") + e.replace("http://", "").replace("https://", ""); e = e + "?"; if (d) e += f + "&"; e += "fctypeId=" + this.configuration_.fctypeArray[n] + "&fcId=" + b.TTF + "&origId=" + m; e += "&projectId=" + c; e += "&content="; b = ""; c = this.userAgent_.getName(); c = c.toLowerCase(); this.userAgent_.getVersion(); c = c == "msie" ? true : false; if (h) { d = null; if (c) { if (h[g]) d = h[g].replace("\\", "").replace("#", "").replace("&", "").replace(">", "").replace("%", "").replace("<", "").replace('"', "").replace("'", "").replace("+", "").replace("/", "%2f") } else d = escape((h[g] || "").replace("\\", "").replace("/", "%2f")); b += (d || "") + "Mm" } g = e + b; h = this.getMaxSupportedCharacter(); if (g.length > h) { e = h - e.length; return { numberOfStacks: Math.ceil(g.length / e), numberOfCharsPerRequest: e} } return { numberOfStacks: 1} }; a.removeFromArray = function (b, c, d) { d = b.slice((d || c) + 1 || b.length); b.length = c < 0 ? b.length + c : c; return b.push.apply(b, d) }; a.fontStack = {}; a.appendFontFaceStyleNode = function (b, c, d) { var e = "TTF", f = this.configuration_.projectId, g = this.configuration_.ec, h = this.configuration_.fcURL, n = this.configuration_.dfcURL, m = this.domHelper_.createElement("style", { type: "text/css", id: "mti_fontface_" + (d ? "Aj_" : "") + this.configuration_.projectId }), l = "", o = false, r = {}, s = { TTF: "truetype", WOFF: "woff", SVG: "svg", MTX: "truetype", OTF: "opentype" }, v = this.userAgent_.getName(); v = v.toLowerCase(); e = this.userAgent_.getVersion(); v = v == "msie" && e < 8 ? true : false; b || (b = []); for (i = 0; i < this.configuration_.pfL.length; i++) { var t = this.configuration_.pfL[i], q = t.fontfamily, w = t.contentIds, B = t.enableOtf; e = this.getFontExtension(w); var u = true; if (b.length > 0) { u = false; for (j = 0; j < b.length; j++) if (b[j] == q) { u = true; break } if (u) { u = e != null && e.toUpperCase() == "EOT" || e.toUpperCase() == "MTX"; this.fontFamilies_.push(q); t = t.enableSubsetting; var A = this.calculateFontStackingInfo(w, f, g, n, this.configuration_.ck, q, c, e), x = A.numberOfStacks, y = false; if (v && x > 1) { x = 1; y = true; t = false } if (x > 1 || d) { if (c !== null) { o = true; r[q] || (r[q] = []); if (y = c[q]) { for (var C = [], z = 1; z <= x; z++) { newFontFamily = (d ? q.length > 25 ? q.substring(0, 20) : q : q) + (d ? d : "") + (x > 1 ? z : ""); r[q].push(newFontFamily); c[newFontFamily] = y.substr((z - 1) * A.numberOfCharsPerRequest, A.numberOfCharsPerRequest); l += '@font-face{\nfont-family:"' + newFontFamily + '";\nsrc:url("' + this.makeFontContentURL(w, f, t, g, h, n, this.configuration_.ck, newFontFamily, c, e, B) + '")'; u || (l += ' format("' + s[e.toUpperCase()] + '")'); l += ";}\n"; C.push("'" + newFontFamily + "'") } this.fontStack[q] = C } } } else { l += '@font-face{\nfont-family:"' + q + (d ? d : "") + '";\nsrc:url("' + this.makeFontContentURL(w, f, t, g, h, n, this.configuration_.ck, q + (d ? d : ""), y ? null : c, e, B) + '")'; if (!u) { q = w[e.toUpperCase()]; e = s[e.toUpperCase()]; q || (e = s.TTF); l += " format('" + e + "')" } l += ";}\n" } } } } if (o === true || d) { this.domHelper_.removeElement(this.domHelper_.getElementById("mti_stylesheet_" + (d ? "Aj_" : "") + this.configuration_.projectId) || {}); d ? this.appendDefinationStyleNode(r, d) : this.appendDefinationStyleNode(r) } l != "" && this.domHelper_.insertInto("head", m); if (m.styleSheet) m.styleSheet.cssText = l; else { b = document.createTextNode(l); m.appendChild(b) } }; a.appendDefinationStyleNode = function (b, c) { var d = new mti.CssClassName("-"), e = this.domHelper_.createElement("style", { type: "text/css", id: "mti_stylesheet_" + (c ? "Aj_" : "") + this.configuration_.projectId }), f = ""; if (MTIConfig.EnableCustomFOUTHandler == true) { var g = this.configuration_.pfL; f += "." + mti.EventDispatcher.DEFAULT_NAMESPACE + "-loading .mti_font_element" + (c ? "_Aj" : "") + "{visibility:hidden;}\n"; for (i = 0; i < g.length; i++) { var h = g[i].fontfamily; if (c) h += c; f += "." + d.build(mti.EventDispatcher.DEFAULT_NAMESPACE, h, mti.FontWatcher.DEFAULT_VARIATION, mti.EventDispatcher.LOADING) + " .mti_font_element" + (c ? c : "") + "{visibility:hidden;}\n" } } for (i in this.configuration_.selectorFontMap) { d = this.configuration_.selectorFontMap[i]; h = h = d.familyName; if (b && b[h] && b[h].length > 0) h = b[h].join("','"); if (!c) { f += i + "{font-family:'" + h + "';"; if (this.otfMain_ != null) if ((h = d.otf) && h != null && h != "") f += this.otfMain_.createOpenTypeFeatureCss(h); f += "}\n" } if (MTIConfig.EnableCustomFOUTHandler == true) { f += "/*fout specific code:*/\n"; h = i.split(","); for (k in h) f += "." + mti.EventDispatcher.DEFAULT_NAMESPACE + "-loading " + h[k] + "{visibility:hidden;}\n" } } f != "" && this.domHelper_.insertInto("head", e); if (e.styleSheet) e.styleSheet.cssText = f; else { b = document.createTextNode(f); e.appendChild(b) } }; a.extractUniqueChars = function (b) { if (b && typeof b == "string") { b = b.replace(/\s/g, "").replace(/\n/g, "").replace(/\r/g, ""); for (var c = "", d = b.length, e = null, f = 0; f < d; f++) { e = b.charAt(f); if (c.indexOf(e) == -1) c += e } return c } return "" }; a.makeFontContentURL = function (b, c, d, e, f, g, h, n, m, l, o) { var r = b[l.toUpperCase()], s = "http://"; if (window.location.protocol == "https:") s = "https://"; f = f.replace("http://", "").replace("https://", ""); g = g.replace("http://", "").replace("https://", ""); f = s + f + (o ? "ot/" : ""); g = s + g; if (d) { url = g + "?"; if (e) url += h + "&"; url += "fctypeId=" + this.configuration_.fctypeArray[l] + "&fcId=" + b.TTF + "&origId=" + r } else url = e ? r ? f + r + "." + l.toLowerCase() + "?" + h : f + b.TTF + ".ttf?" + h : f + "?fctypeId=" + this.configuration_.fctypeArray[l] + "&fcId=" + r; url += "&projectId=" + c; b = this.userAgent_.getName(); b = b.toLowerCase(); this.userAgent_.getVersion(); b = b == "msie" ? true : false; c = null; if (m) { if (b) { if (m[n]) c = m[n].replace("\\", "").replace("#", "").replace("&", "").replace(">", "").replace("%", "").replace("<", "").replace('"', "").replace("'", "").replace("+", "") } else c = escape(m[n] || ""); if (d) if (c.length > 0) url += "&content=" + (c || "") + "Mm"; else url = "" } if (l != null && l.toUpperCase() == "SVG") url += "#" + r; return url }; a.doRenderPartial = function (b) { var c = this, d = false, e = document.getElementById(b); d = e === null ? false : true; if (!d) return false; var f = c.getRandomChar(), g = null, h = null, n = function () { g = new mti.TextCollector(e, c.domHelper_, c.configuration_.pfL); h = g.getCollectedText({}, f); var m = c.userAgent_.getName(); m = m.toLowerCase(); (m == "opera" ? true : false) && c.removeFakeFontFace(); m = []; for (fontfamily in h) { if (h[fontfamily]) h[fontfamily] = c.extractUniqueChars(h[fontfamily]); fontfamily += f; m.push(fontfamily) } c.global_.mti_element_cache = g.elementCache_; var l = g.getElements(); c.appendFontFaceStyleNode(g.getUsedProjectFonts(), h, f); l = g.getElements(); c.otfMain_ != null && mti.bind(c.otfMain_, c.otfMain_.loadPartial, l)(); for (var o = 0; o < l.length; o++) for (fontFamily in c.fontStack) if (c.domHelper_.getComputedFontFamily(l[o]).indexOf(fontFamily) > -1) if (l[o].getAttribute("id") == b || c.domHelper_.isDescendant(c.domHelper_.getElementById(b), l[o])) c.domHelper_.replaceFontFamily(l[o], fontFamily, c.fontStack[fontFamily]); l = new mti.EventDispatcher(c.domHelper_, document.documentElement, c.configuration_); (new mti.FontWatcher(c.domHelper_, l, { getWidth: function (r) { return r.offsetWidth } }, function (r, s) { setTimeout(r, s) }, function () { return (new Date).getTime() })).watch(m, {}, true) }; d = c.userAgent_.getName(); d = d.toLowerCase(); if (d == "opera" ? true : false) { c.appendFakeFontFace(f); c.whenFakeFontDetected(function () { n() }) } else n(); MTIConfig.RemoveMTIClass == true && setTimeout(function () { c.domHelper_.removeMTIElement("mti_font_element" + f) }, mti.FontWatcherTimeout) }; a.load = function (b) { b(this.fontFamilies_, this.fontVariations_) }; mti.MonotypeDocumentHelper = function (b) { this.doc_ = b }; mti.MonotypeDocumentHelper.prototype.protocol = function () { var b = ["http:", "https:"], c = b[0]; if (this.doc_ && this.doc_.location && this.doc_.location.protocol) { var d = 0; for (d = 0; d < b.length; d++) if (this.doc_.location.protocol == b[d]) return this.doc_.location.protocol } return c }; mti.BannerHandler = function (b, c) { this.domHelper_ = b; this.configuration_ = c }; mti.BannerHandler.prototype.appendBannerScript = function () { var b = this.getCookieValue("WFS_MTI_SS"), c = this.configuration_.bannerHandlerURL; if (c) { c += "?projectId=" + this.configuration_.projectId; if (b !== false) c += "&WFS_MTI_SS=" + b; c += "&" + escape((new Date).getTime()); this.domHelper_.insertInto("head", this.domHelper_.createElement("Script", { type: "text/javascript", src: c })) } }; mti.BannerHandler.prototype.getCookieValue = function (b) { b = new RegExp(escape(b) + "=([^;]+)"); if (b.test(document.cookie + ";")) { b.exec(document.cookie + ";"); return unescape(RegExp.$1) } else return false }; mti.PartialRenderer = function (b) { this.module = b }; mti.PartialRenderer.prototype.render = function (b) { this.module.doRenderPartial(b) }; MonoTypeWebFonts.addModule(mti.MonotypeFontApi.NAME, function (b) { var c = (new mti.UserAgentParser(navigator.userAgent)).parse(), d = new mti.DomHelper(document, c), e = null; if (b.enableOtf) e = new mti.OtfMain(d, c, b); window.MonoTypeWebFonts.BannerHandler = new mti.BannerHandler(d, b); b = new mti.MonotypeFontApi(window, c, d, b, e); var f = new mti.PartialRenderer(b); window.MonoTypeWebFonts.renderPartial = function (g) { f.render(g) }; return b }); mti.MonotypeFontApi.prototype.getMaxSupportedCharacter = function () { var b = this.configuration_.bsmcArray, c = this.userAgent_.getName(); c = c.toLowerCase(); if (c == "firefox") c = "mozilla"; if (/ipad|ipod|iphone/.test(this.userAgent_.getPlatform().toLowerCase())) c = "msafari"; var d = this.userAgent_.getVersion(); b = b[c]; c = ""; for (p in b) if (parseFloat(d) >= parseFloat(p)) c = b[p]; return c }; mti.MonotypeFontApi.prototype.getRandomChar = function () { for (var b = "", c = 0; c < 5; c++) b += "abcdefghijklmnopqrstuvwxyz".charAt(Math.floor(Math.random() * 26)); return b }; })(this, document); if(window.addEventListener){ window.addEventListener('load', function(){MonoTypeWebFonts.cleanup(); MonoTypeWebFonts.loadColo();}, false);}else if(window.attachEvent){ window.attachEvent('onload', function(){MonoTypeWebFonts.cleanup(); MonoTypeWebFonts.loadColo();});}MonoTypeWebFonts.cleanupExecuted = false;MonoTypeWebFonts.cleanup = function(){if(MonoTypeWebFonts.cleanupExecuted === true){ return; }MonoTypeWebFonts.cleanupExecuted = (window['mti_element_cache'].length > 0);var className = document.documentElement.className;var MTIConfig = window['MTIConfig'] || { 'RemoveMTIClass': false };if(MTIConfig['RemoveMTIClass']==true){function walkTheDOM (node, func) {func(node);node = node.firstChild;while (node) {walkTheDOM(node, func);node = node.nextSibling;}}function getElementsByClassName (className) {if (document.getElementsByClassName){return document.getElementsByClassName(className);}else {var results = [];walkTheDOM(document.body, function (node) {var a, c = node.className, i;if (c) {a = c.split(' ');for (i=0; i -1 },b = (!(/opera|webtv/i.test(ua)) && /msie\s(\d)/.test(ua)), c=false;if((RegExp.$1==6)||(RegExp.$1==7)){ c=true; }while(mti_elements.length > 0){for(i=0; i< mti_elements.length; i++){var classList=mti_elements[i].className.split(' ');if(classList.length==1 && !c){mti_elements[i].removeAttribute('class');}else{mti_elements[i].className=mti_elements[i].className.replace(/mti_font_element/ig, ' ').replace(/^\s+|\s+$/g,'');}}mti_elements = getElementsByClassName('mti_font_element');}}className = className;if(!document.getElementById('MonoTypeFontApiFontTracker')){ var fontTrackingUrl = "http://fast.fonts.com/t/1.css"; if(window.location.protocol == 'https:'){ fontTrackingUrl = fontTrackingUrl.replace(/http:/,'https:'); } var head = document.getElementsByTagName('HEAD')[0]; var cssEle = document.createElement('LINK'); if(cssEle){ cssEle.setAttribute('id','MonoTypeFontApiFontTracker'); cssEle.setAttribute('type','text/css'); cssEle.setAttribute('rel','stylesheet'); cssEle.setAttribute('href',fontTrackingUrl + "?apiType=js&projectid=9507d75e-9171-4e2e-b3c6-a298476c6ec2"); head.appendChild(cssEle); }}window['mti_element_cache'] = [];};MonoTypeWebFonts._fontActiveEventList = [];MonoTypeWebFonts._fontLoadingEventList = [];MonoTypeWebFonts._activeEventList = [];MonoTypeWebFonts._inActiveEventList = [];MonoTypeWebFonts.addEvent = function(eventName, callbackFunction){ if(eventName.toLowerCase() == 'fontactive'){ MonoTypeWebFonts._fontActiveEventList.push(callbackFunction); }else if(eventName.toLowerCase() == 'fontloading'){ MonoTypeWebFonts._fontLoadingEventList.push(callbackFunction); }else if(eventName.toLowerCase() == 'inactive'){ MonoTypeWebFonts._inActiveEventList.push(callbackFunction); }else if(eventName.toLowerCase() == 'active'){ MonoTypeWebFonts._activeEventList.push(callbackFunction); }};MonoTypeWebFonts.loadFonts = function(){MonoTypeWebFonts.load({monotype:{ reqSub:false, enableOtf: false, otfJsParentUrl: 'http://fast.fonts.com/jsapi/otjs/',pfL:[{'fontfamily' : "BasicCommercialW01-Blk" ,contentIds :{EOT: '9bf2775e-20df-428d-a8c6-d65f79bb2f7b',WOFF: '80fccca1-ffd4-473b-a074-d231aacb770d',TTF: '1a7a2eda-596c-4998-ade8-fc84327b1df9',SVG: 'c77bdcc5-4854-4e35-aee2-1895f7d93168'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "BasicCommercialW01-BlkI" ,contentIds :{EOT: '9b885c60-3e27-413d-83a7-3927cc83d31c',WOFF: 'f29831a5-7bbd-43e9-b88d-af4ed94db9ba',TTF: '8879ef38-1360-4fda-9701-c1f43b6590a4',SVG: 'e5484034-0c39-457d-82f3-f6354935a29f'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "BasicCommercialW01-BdIt" ,contentIds :{EOT: '20bcd037-8426-4cd3-a23f-0d0ff3d552cd',WOFF: '4bffa866-cd89-4b79-92af-85f736460ed3',TTF: 'e74fa805-41d9-484c-9b6f-2394d33f1f9e',SVG: 'ee22bfae-d456-42f9-b02c-70ca73a351ef'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "BasicCommercialW01-Ligh" ,contentIds :{EOT: '9dcb4e2d-058e-4612-a332-2daafe0479e7',WOFF: '820a8f20-1c96-461f-af29-c4d7c8501607',TTF: 'ed0450c0-0a6c-4f1b-b53c-648861a95de8',SVG: '56f5655f-7190-49b7-9bde-2829caa5b5d0'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "ClarendonW01-BoldExpand" ,contentIds :{EOT: 'd4a6be7f-e94c-4424-bd9a-f7e564b5e76b',WOFF: '39c8c6ea-8b88-4366-a8c3-deb0b1aab1d9',TTF: 'b66bd5e7-8c79-4bd5-bbb2-6e161e14867e',SVG: 'd5b02b9d-f53e-4b27-b1b3-fa55202ecae2'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Helvetica W01 Bold" ,contentIds :{EOT: 'f70da45a-a05c-490c-ad62-7db4894b012a',WOFF: 'c5749443-93da-4592-b794-42f28d62ef72',TTF: '73805f15-38e4-4fb7-8a08-d56bf29b483b',SVG: '874bbc4a-0091-49f0-93ef-ea4e69c3cc7a'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Helvetica W02 Roman" ,contentIds :{EOT: 'e4bd4516-4480-43df-aa6e-4e9b9029f53e',WOFF: 'b56b944e-bbe0-4450-a241-de2125d3e682',TTF: '7da02f05-ae8b-43a1-aeb9-83b3c0527c06',SVG: '66cac56e-d017-4544-9d0c-f7d978f0c5c2'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "BasicCommercialW01-Bold" ,contentIds :{EOT: '1398268c-cf49-4567-ba48-8ff7d12bbbe5',WOFF: 'fb411e31-380f-4a7f-a4c3-daaacd9aa217',TTF: 'bdcaa507-aa33-4a68-af05-eefb168255fc',SVG: '432e459a-c917-431c-8099-76cbb7c83210'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Basic Commercial W01 It" ,contentIds :{EOT: '24cd9a2c-861c-4939-b1e7-192d0048c2da',WOFF: 'a57b1d4c-74ae-4bd3-a710-7b65f94f3d39',TTF: 'c2e8b545-3566-4eb6-bcd4-4335fd5f1b6f',SVG: 'd3b5b70f-8f3b-4fe6-845a-1e537bfc9ed1'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "BasicCommercialW01-LtIt" ,contentIds :{EOT: '873d0bed-18e5-4674-a7ae-4ebfdc8fbcbf',WOFF: '234a474e-b851-4d2f-bd60-b373962e3c0c',TTF: '8780517d-f5a7-46e7-ac33-5d880a0f7c52',SVG: 'fca966c3-2fc9-468f-96a8-8cac179647d3'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "BasicCommercialW01-Roma" ,contentIds :{EOT: 'b79b3f0d-337c-493e-9dba-346560fd6d7f',WOFF: 'a96530dd-c9a4-4cd4-89c1-843e8965eba1',TTF: '8a8c36d9-a5cc-4614-b098-5e57c6e09ca7',SVG: '0ad7bf84-e32e-42e6-ae85-68acbb28f50a'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Clarendon W01 Bold 692098" ,contentIds :{EOT: 'b1b2273f-6562-4dda-b82f-abe26a2801f3',WOFF: 'ebfb2d05-23eb-4096-b4d2-22382a87d76b',TTF: '861c0548-44ff-4b2b-80a3-c8ae44cbe9c8',SVG: 'e6e6c27f-7ec8-47cc-844c-c72378fc634c'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "ClarendonW01-ExtraBold 692101" ,contentIds :{EOT: 'a3ee070e-b691-41ff-95b1-ca8c8bf2987f',WOFF: '5b380609-b31b-4b2a-8526-ed88d6e87f4c',TTF: '8638d3a3-d2c2-4784-bc19-c1a6ace56052',SVG: '002b79a1-8ef2-41db-9c31-153e8e2b53f7'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Clarendon W01 Light 692104" ,contentIds :{EOT: 'd3a87431-a863-4c7c-8dac-5b991fd45610',WOFF: '4994d637-0213-4ee2-a3e6-06ad343bfaab',TTF: 'e9eaff3f-0f0f-42f9-8206-9030adc0903d',SVG: '5dfe70d5-cb69-469d-b9d7-0abcc3db9a80'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Clarendon W01 Medium 692107" ,contentIds :{EOT: 'c6993450-d795-4fd3-b306-38481733894c',WOFF: 'b6878f57-4d64-4d70-926d-fa4dec6173a5',TTF: '0a6b6eff-6b5d-46d4-b681-f356eef1e4c1',SVG: '600b1038-76a8-43b4-a2f7-2a6eb0681f95'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Clarendon W02 Light 693831" ,contentIds :{EOT: 'cd86b9a3-354f-4fc1-ae02-eef70f19cccb',WOFF: 'd96a181f-e7f4-49cb-88ba-60018fe39365',TTF: '9a5e36bf-4cdf-4081-b4f3-850faad032d1',SVG: '68482ce6-968f-40c7-8346-040da23b4cf5'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Helvetica W01 Light" ,contentIds :{EOT: '717f8140-20c9-4892-9815-38b48f14ce2b',WOFF: '03805817-4611-4dbc-8c65-0f73031c3973',TTF: 'd5f9f72d-afb7-4c57-8348-b4bdac42edbb',SVG: '05ad458f-263b-413f-b054-6001a987ff3e'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Conduit ITC W01 Bold" ,contentIds :{EOT: 'ef1cf8c3-989e-4b7e-ad89-9e034d47686d',WOFF: 'fdaf48d4-c023-4a03-b948-53535ee4d571',TTF: 'ca6dc25e-d400-4735-9fb9-ee2d025ebb5c',SVG: 'aa206b9b-b888-4ce6-8039-669469e9b429'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Conduit ITC W01 Medium" ,contentIds :{EOT: 'a5a0edc0-b571-4275-9c51-3dfeba35b75a',WOFF: 'e93ee223-5d52-4bdf-a113-c6c4c8936824',TTF: 'ccdadc2e-26c9-48a5-9c52-9c3cc58e9930',SVG: '62fbb38e-9226-47f8-90d8-3c37328ab6c9'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "ITCFranklinGothicW01-Bk 812647" ,contentIds :{EOT: '03dda592-ab39-4f26-9535-fdea194854cf',WOFF: '41c174b1-68c1-41b7-a19f-5ec80929b115',TTF: '06d99598-12aa-461b-b57e-81a137da1b9f',SVG: '427cca04-e0ee-4395-a5d3-b7d45feeff62'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "ITCFranklinGothicW01-Dm 812668" ,contentIds :{EOT: '498d8f5c-6dfe-4a07-9fdf-321bcc11909c',WOFF: '08fe22ab-0517-4203-bcc9-1ba2ca45f40c',TTF: '6adc2e3a-d0c4-4c48-ba68-91b4107515d7',SVG: '426ce955-d5bd-4a77-b077-402088f77e65'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "ITCFranklinGothicW01-Md 812695" ,contentIds :{EOT: '905c1a7c-f018-4815-b4a9-6bd6f4c7e768',WOFF: '10ab5970-5726-4843-82b1-912faa9307ff',TTF: '70a26d03-0393-410a-a98c-e35dc876c3cb',SVG: 'edb011f7-44ad-4c0d-b81a-c97c3ad6be6f'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Clarendon BT W01 Light" ,contentIds :{EOT: '8b1da7e0-239d-43c6-83e4-49c25fc2e343',WOFF: '424eb429-2299-4a69-908e-7646d0752f7a',TTF: '0dd2b63a-0874-408f-ac6e-743f08a4a5e8',SVG: 'bfe3af9a-30c8-44ee-8ec4-49a506c463b9'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Clarendon BT W01 Roman" ,contentIds :{EOT: 'f923c797-efc7-484f-829d-97e2f15cc3a2',WOFF: '02015167-e948-4af3-b5d8-2bc31d02c4b9',TTF: 'c9994a1c-875f-4c73-8613-688e24e48c59',SVG: '698ae548-a7b1-42c3-a27f-06925b221b54'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Nimbus Sans TW01Lig" ,contentIds :{EOT: '5838f40c-4590-4e32-b164-c2971fcef883',WOFF: '5fe27aff-ba5a-4022-adaf-b8fa6f8642cb',TTF: '50c13c0a-595a-4cca-b4cc-2edcd6eb67aa',SVG: '1035c5fa-5027-4156-9de4-bb0d6f7a0a86'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Nimbus Sans TW01" ,contentIds :{EOT: '75144806-5cb9-4743-95cf-40b7f3df5dda',WOFF: '4e93482e-40f7-4349-a9c2-f8882f15a93b',TTF: '55bc1387-86c7-452b-ae79-2721ea3b0645',SVG: 'b5edab57-23a8-4bc5-bab3-df39a838bd75'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Nimbus Sans TW01 Bold" ,contentIds :{EOT: '9dca25dd-18d2-4ec8-a997-ef28c2f4f136',WOFF: 'ce398c7a-fb54-4409-89f7-241065e2af3d',TTF: 'fd862b64-8bf7-47e5-81d6-ee4cc1ac851f',SVG: '75896f69-6e33-4f29-97b1-1a105d9d6396'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "ClarendonTextW01-Regula 1097411" ,contentIds :{EOT: '6ea560bf-7eb7-4051-b572-003a3c050cbe',WOFF: 'f7b495e9-5f7d-48e3-9a28-99e607e424df',TTF: 'c02d5d6a-59f7-4b0a-88ac-fd54b3b38377',SVG: '0159f1cc-a212-4e1b-9bab-df0b17dae1d7'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "ClarendonTextW01-Regula 1097896" ,contentIds :{EOT: '8a342978-8cc3-4a55-ae38-9fb02f110f05',WOFF: '35604d37-6874-4349-b584-e0ddd377401c',TTF: '33e7055e-9053-4cea-aa8c-110ec604a56d',SVG: 'c657a5dd-2aac-42cc-964a-c9e1c999e118'}, enableSubsetting : false, enableOtf: false }],selectorFontMap:{'#text h4' : {familyName:'Clarendon W01 Bold 692098' },'p' : {familyName:'BasicCommercialW01-Ligh' }},ck:'d44f19a684109620e4841571a690e818cea9a73cdbefb96cc08b5f82c9643b8106f94c545aff54485afc29351de72df4c681dc2c9e38218a502345fc3c7d27ab73cf865b32adf8ed0f23feae1c9a38917307d71e49b9c26d90dc43b80df156a8f7ca7127b5cbd93f45511158b8e98afa754389cef90a1ac397cd7394f735565f6c7f060a0fa5ae4b05e4d8dff55b1ca31b1acd494dbc7e46c8755cf782b851e46092577c4855373a03f609b6097bb74677d3b7c6a5',ec:'true',fcURL:'http://fast.fonts.com/d/',dfcURL:'http://api2.fonts.com/FontSubsetter.ashx',sO:'True',ffArray:{safari: {'3.1': 'ttf','5.1':'woff'}, msafari: {'1' : 'svg', '4.2' : 'ttf'}, chrome: {'3' :'svg', '4' : 'ttf','5':'woff'}, opera: {'10' : 'ttf', '11.10' : 'woff'}, msie: {'4' : 'eot', '9' : 'woff', '10':'otf'}, mozilla: {'3.5' : 'ttf', '3.6' : 'woff'}},bsmcArray:{safari: {'3.1': '2000','5.0':'1650','5.1':'8190'}, msafari: {'1' : '8190'}, chrome: {'3' :'8190'}, opera: {'10' : '8190'}, msie: {'4' : '2064'}, mozilla: {'3.5' : '8190'}},fctypeArray:{'ttf':'1','eot':'2','woff':'3','svg': '11','otf':'13'},projectId:'9507d75e-9171-4e2e-b3c6-a298476c6ec2',EOD:null},fontloading:function(fontFamily, fontDescription){ for(var i=0; i