;(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;e0;){for(i=0;i=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_.removeClassName(this.htmlElement_,this.cssClassName_.build(this.namespace_,b,c,mti.EventDispatcher.LOADING));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)}; a.dispatchFontInactive=function(b,c){this.domHelper_.removeClassName(this.htmlElement_,this.cssClassName_.build(this.namespace_,b,c,mti.EventDispatcher.LOADING));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)}; a.dispatchInactive=function(){this.domHelper_.appendClassName(this.htmlElement_,this.cssClassName_.build(this.namespace_,mti.EventDispatcher.INACTIVE));this.dispatch_(mti.EventDispatcher.INACTIVE)};a.dispatchActive=function(){this.domHelper_.removeClassName(this.htmlElement_,this.cssClassName_.build(this.namespace_,mti.EventDispatcher.LOADING));this.domHelper_.appendClassName(this.htmlElement_,this.cssClassName_.build(this.namespace_,mti.EventDispatcher.ACTIVE));this.dispatch_(mti.EventDispatcher.ACTIVE)}; 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-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};new (function(){function b(s,o){if(!(this instanceof b))return(new b(s)).exec(o);if(!q)this.exec=x[s]||(x[s]=new d(s));this.pattern=s}function c(s){var o=arguments;return s.replace(/\$(\d)/g,function(u,w){return o[w]})}function d(s){this.dup=this.srt=this.idx=this.i=this.nqp=0;with(this){var o="";do{i=nqp=0;o+=c("n=c;$1q:do{$2}while(false);",srt?"s=0;":"",type(s,c(srt?"for(x=r.length;s0?",h={}":"",idx?D?",LLi=d.LLi||(d.LLi=++Selector.guid)":",LLi=++Selector.guid":"",o);return new Function("c",o)}}b.prototype={constructor:b,exec:function(s){var o=this.patchElement,u=this.patchArray,w=this.pattern;s=o?E.call((s||h).querySelectorAll(w),o,this):Array.prototype.slice.call((s|| h).querySelectorAll(w));return u?u.call(this,s):s},toString:function(){return this.pattern},toSource:function(){return'new Selector("'+this.pattern+'")'}};window.Selector=b;with(navigator.userAgent)var e=indexOf("MSIE")!=-1&&indexOf("Opera")==-1,f=indexOf("Gecko")!=-1&&indexOf("KHTML")==-1,g=indexOf("AppleWebKit")!=-1;var h=document,l=h.documentElement,q=!!h.querySelectorAll,m=!!h.getElementsByClassName,n=!!l.children,t=n&&l.children.tags&&!g,v=!!l.contains,y=!!l.compareDocumentPosition,z=typeof l.sourceIndex== "number",x={},C={"=":'if($1($2=="$3")){$5}',"^=":'if($1((x=$2)&&!x.indexOf("$3"))){$5}',"*=":'if($1((x=$2)&&x.indexOf("$3")!=-1)){$5}',"$=":'if($1((x=$2)&&x.indexOf("$3",x.length-$4)!=-1)){$5}',"~=":'if($1((x=$2)&&(y=x.indexOf("$3"))!=-1&&(x.charCodeAt(y-1)||32)==32&&(x.charCodeAt(y+$4)||32)==32)){$5}',"|=":'if($1((x=$2)&&(x=="$3"||!x.indexOf("$3-")))){$5}'},E=Array.prototype.map||function(s,o){for(var u=this.length,w=new Array(u);--u>=0;)w[u]=s.call(o,this[u],u,this);return w};with(h.implementation)var D= h.addEventListener&&(hasFeature("MutationEvents","2.0")||hasFeature("Events","2.0")&&hasFeature("Core","2.0"));b.guid=0;b.nthIndex=function(s,o,u,w,B){var r=o.parentNode,A="LLi#"+B,I="LLi$"+B;if(!r)return Number.NaN;if(!o[A]||o.LLi!=s){for(var G=r.firstChild,J=0;G;G=G.nextSibling)if(G[w]==B){G[A]=++J;G.LLi=s}r[I]=J}return u?1+r[I]-o[A]:o[A]};if(D){g=function(s){with(s.target)if(nodeType!==2)ownerDocument.LLi=++b.guid};h.addEventListener("DOMNodeInserted",g,false);h.addEventListener("DOMNodeRemoved", g,false)}if(e)var F={acceptcharset:"acceptCharset",accesskey:"accessKey",cellpadding:"cellPadding",cellspacing:"cellSpacing",checked:"defaultChecked",selected:"defaultSelected","class":"className",colspan:"colSpan","for":"htmlFor",frameborder:"frameBorder",hspace:"hSpace",longdesc:"longDesc",marginwidth:"marginWidth",marginheight:"marginHeight",noresize:"noResize",noshade:"noShade",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap",valign:"vAlign",vspace:"vSpace"}, H={compact:1,nowrap:1,ismap:1,declare:1,noshade:1,checked:1,disabled:1,readonly:1,multiple:1,selected:1,noresize:1,defer:1};d.prototype={type:function(s,o,u,w,B){with(this){s=/^\s*([\w-]+|\*)?(.*)/.exec(s);var r=s[1]||"*";if(!u&&B==" "&&!dup)dup=1;o=pred(s[2],o,u,r,B);switch(B){case ">":return t&&r!="*"?c('for(var n$1=n.children.tags("$2"),i$1=0;n=n$1[i$1++];){$3}',++i,r,o):c(n?"for(var n$1=n.children,i$1=0;n=n$1[i$1++];)$2{$3}":"for(n=n.firstChild;n;n=n.nextSibling)$2{$3}",++i,r!="*"?'if(n.nodeName==="'+ r.toUpperCase()+'")':!n||e?"if(n.nodeType===1)":"",o);case "+":return c("while(n=n.nextSibling)if(n.node$1){$2break}else if(n.nodeType===1)break;",r=="*"?"Type===1":'Name==="'+r.toUpperCase()+'"',o);case "~":return c("while(n=n.nextSibling)if(n.node$1){$3}else if(n.node$2)break;",r=="*"?"Type===1":'Name==="'+r.toUpperCase()+'"',w=="*"?"Type===1":'Name==="'+w.toUpperCase()+'"',o);default:return typeof o=="object"?String(o):u?r=="*"?o:c('if(n.nodeName!="$1"){$2}',r.toUpperCase(),o):c('for(var n$1=n.getElementsByTagName("$2"),i$1=0;n=n$1[i$1++];)$3{$4}', ++i,r,e&&r=="*"?"if(n.nodeType===1)":"",o)}}},pred:function(s,o,u,w,B){with(this){var r=/^([#\.])([\w-]+)(.*)/.exec(s)||/^(\[)\s*([\w-]+)\s*(?:([~|^$*]?=)\s*(?:(['"])(.*?)\4|([\w-]+)))?\s*\](.*)/.exec(s)||/^:(first|last|only)-(?:(child)|of-type)(.*)/.exec(s)||/^:(nth)-(?:(last)-)?(?:(child)|of-type)\(\s*(?:(odd|even)|(-|\d*)n([+-]\d+)?|([1-9]\d*))\s*\)(.*)/.exec(s)||/^:(active|checked|(?:dis|en)abled|empty|focus|link|root|target)(.*)/.exec(s)||/^:(lang)\(\s*(['"])?(.*?)\2\s*\)(.*)/.exec(s)||!u&&/^:(not)\(\s*(.*)\s*\)(.*)/.exec(s), A=0;if(!r){if(r=/^\s*([+>~,\s])\s*(\S.*)/.exec(s)){if(r[1]!=",")return type(r[2],o,u,w,r[1]);nqp=r[2];dup=2}else if(/\S/.test(s))throw new Error("Illegal query near: "+s);return dup<1?o:c("if(!h[x=n.LLn||(n.LLn=++Selector.guid)]){h[x]=$1;$2}",!srt||y?"true":z?"n.sourceIndex":"Selector.srcIndex(h,n)",o)}if(!u&&r[1]=="#"&&dup!=2)dup=-1;o=pred(r[r.length-1],o,u,w,1);switch(r[1]){case "#":return uniq(o,u,w,B,e,"n.id",'"'+r[2]+'"','d.getElementById("'+r[2]+'")');case ".":return m&&!u&&(!B||B==" ")&&(w== "*"||!f)?Object(c('for(var n$1=n.getElementsByClassName("$2"),i$1=0;n=n$1[i$1++];)$3{$4}',++i,r[2],w=="*"?"":'if(n.nodeName==="'+w.toUpperCase()+'")',o)):c(C["~="],u?"!":"","n.className",A=r[2],A.length,o);case "[":return(A=r[3])?c(C[A],u?"!":"",e?(A=r[2].toLowerCase())=="style"?"style.cssText.toLowerCase()":H[A]?"n."+A+'&&"'+A+'"':'n.getAttribute("'+(F[A]||A)+'",2)':'n.getAttribute("'+r[2]+'")',A=r[5]||r[6],A.length,o):c(e?'if($1((x=n.getAttributeNode("$2"))&&x.specified)){$3}':'if($1n.hasAttribute("$2")){$3}', u?"!":"",r[2],o);case "active":case "focus":return uniq(o,u,w,B,0,"n","d.activeElement");case "checked":return c("if($1(n.checked||n.selected)){$2}",u?"!":"",o);case "disabled":A=1;case "enabled":return c("if(n.disabled===$1$2){$3}",!!(A^u),e?'&&((x=n.nodeName)==="BUTTON"||x==="INPUT"||x==="OPTION"||x==="OPTGROUP"||x==="SELECT"||x==="TEXTAREA"':"",o);case "empty":return c("for(x=n.firstChild;x&&x.nodeType>3;x=x.nextSibling);if($1x){$2}",u?"":"!",o);case "first":return flo(o,u,r[2],"previous");case "lang":return c(C["|="], u?"!":"","n.lang",A=r[3],A.length,o);case "last":return flo(o,u,r[2],"next");case "link":return c('if($1(n.nodeName==="A"&&n.href)){$2}',u?"!":"",o);case "nth":s=r[4]?2:r[5]=="-"?-1:r[7]?0:r[5]?r[5]-0:1;w=r[4]=="odd"?1:(r[6]||r[7])-0||0;if(s==1)return o;if(s==0&&w==1)return flo(o,u,r[3],r[2]?"next":"previous");if(s==w)w=0;if(w<0)w=s+w;idx=1;return c('if($1(Selector.nthIndex(LLi,n,$2,"node$3",$4)$5)){$6}',u?"!":"",!!r[2],r[3]?"Type":"Name",r[3]?"1":"n.nodeName",s<0?"<="+w:s?"%"+s+"==="+w:"==="+w,o); case "not":return type(r[2],o,1,"*");case "only":return flo(o,u,r[2]);case "root":return uniq(o,u,w,B,0,"n","d.documentElement");case "target":A="(d.defaultView||d.parentWindow||window).location.hash.substr(1)";return uniq(o,u,w,B,e,"n.id",A,"d.getElementById("+A+")")}}},uniq:function(s,o,u,w,B,r,A,I){return o||w&&w!=" "||B?c(o?"if($1!==$2){$3}":"if($1===$2){$3break q}",r,A,s):Object(c(v?"if((x=$1)===n||!n.contains||n.contains(x))$2":y?"if((x=$1)===n||!n.compareDocumentPosition||n.compareDocumentPosition(x)&16)$2": "for(x=y=$1;y;y=y.parentNode)if(y===n)$2",I||A,u=="*"?"{n=x;"+s+"break q}":'{if((n=x).nodeName==="'+u.toUpperCase()+'"){'+s+"}break q}"))},flo:function(s,o,u,w){return c(w?"for($2x=n.$1Sibling;x&&x.node$3;x=x.$1Sibling);if($4x){$5}":"for($2(x=n.parentNode)&&(x=x.firstChild);x&&(x.node$3||x===n);x=x.nextSibling);if($4x){$5}",w,u?"":"y=n.nodeName,",u?"Type!==1":"Name!==y",o?"":"!",s)}}});mti.OtfMain=function(b,c,d){this.hasOTFSupport_=false;this.domHelper_=b;this.userAgent_=c;this.configuration_=d;b=d.pfL;this.otfFontList_=[];this.cssSelectorsToOpenTypeFeatures={};this.otfJsParentDirectory_=d.otfJsParentUrl;for(d=0;d0){for(var c="-moz-font-feature-settings : '",d="-moz-font-feature-settings : ",e="-webkit-font-feature-settings : ",f="-ms-font-feature-settings : '",g="font-feature-settings : ",h="-o-font-feature-settings : ",l=false,q=0;q])))*\]+>)/gm,"");t=t.replace(/[\t]+/g," ").replace(/[ ][ ]/g," ");t=t.replace(/[\r\n]/g,"");return h(t)}(b);for(d=b.indexOf("font-feature-settings");d!=-1;){c=b.lastIndexOf("{",d);e=b.indexOf("}",d);if(c!=-1&&e!=-1){f=b.substring(c,e).split(";");if(f.length>0)for(d=0;d0){n=h(n);this.cssSelectorsToOpenTypeFeatures[n]=h(l.substring(q+1));break}}}}d=b.indexOf("font-feature-settings",e)}else d+=length("font-feature-settings")}}};a.loadPartial=function(b){if(!this.hasOTFSupport_){this.gatherCss();this.gatherAndLoadAllUsedFeatures(b)}}; a.load=function(b){this.fontIdsToEnabledFeatures_={};this.loadedEnabledFeaturesCount_=0;var c=this;if(!this.hasOTFSupport_){c.gatherCss();for(var d=0;d=0;q--)if(d[q]==b){h=g(f.cssSelectorsToOpenTypeFeatures[e[q]]);break}if(b.attributes!=null){b=b.attributes.getNamedItem("style");if(b!=null){b=l(b.value,null,true);if(b[0])h=b}}return h}}; a.gatherAndLoadAllUsedFeatures=function(b){var c="",d="",e=false,f=[],g=[];for(var h in this.cssSelectorsToOpenTypeFeatures)Selector(h,document).forEach(function(E){f.push(E);g.push(h)});for(var l=[],q=[],m=0;m0)for(m=0;m").replace(/&/g,"").replace(/</g,"").replace(/>/g,"").replace(/"/g,"");window[g+h[l]](e,f[l]);e.innerHTML=e.innerHTML.replace(//g," ").replace(//g,"&").replace(//g,"<").replace(//g, ">").replace(//g,""")}}}};a.getScript=function(b,c){var d=document.createElement("script");d.type="text/javascript";d.setAttribute("src",b);if(document.all&&(this.userAgent_.getVersion()<9||this.userAgent_.getVersion()>9))d.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete")c()};else d.onload=c;document.getElementsByTagName("head")[0].appendChild(d)}; window.CR=function(){for(var b=arguments[0].replace(/(\r\n|\n|\r)/g,""),c=b.split(/<[\/]?\s*\w.*?>/g),d="",e=arguments[1],f=arguments[2],g,h,l,q,m,n,t,v,y=0;y/g);var z="";if(q!=-1)z=b.substring(q,b.indexOf(">")+1);if(b.indexOf(">")!=-1)b=b.substring(b.indexOf(">")+1);var x=c[y];v=0;a:for(;v/g),h="",l="",q=0;q/g);var m="";if(l!=-1)m=b.substring(l,b.indexOf(">")+1);b=b.substring(b.indexOf(">")+1);var n=g[q];l="";for(var t=0;t0;y--){for(var z="",x=0;x-1&&d.domHelper_.replaceFontFamily(m[n],fontFamily,d.fontStack[fontFamily])},g=d.userAgent_.getName();g=g.toLowerCase();var h=g=="opera"?true:false;g=d.configuration_.reqSub;var l=null,q=null;if(h&&g){d.appendFakeFontFace();d.whenFakeFontDetected(function(){f()})}else if(!h&&g)f();else{l=new mti.TextCollector(document.body, d.domHelper_,d.configuration_.pfL);q=l.getCollectedText();d.appendFontFaceStyleNode();d.global_.mti_element_cache=l.elementCache_;d.otfMain_!=null&&mti.bind(d.otfMain_,d.otfMain_.load,l.elementCache_)()}};if(MTIConfig.isAsync===true)MTIConfig.onReady=e;else if(d.configuration_.reqSub)d.domHelper_.whenContentLoaded(e);else{d.appendFontFaceStyleNode();d.domHelper_.whenBodyExists(function(){var f=new mti.TextCollector(document.body,d.domHelper_,d.configuration_.pfL);f.getCollectedText();d.global_.mti_element_cache= f.elementCache_;d.otfMain_!=null&&mti.bind(d.otfMain_,d.otfMain_.load,f.elementCache_)()})}c(b.isSupportingWebFont())}else c(true)}; a.appendFakeFontFace=function(){var b=document.createElement("STYLE");b.setAttribute("type","text/css");b.id="monotype_fake_fontface_"+this.configuration_.projectId;var c="",d=this.configuration_.pfL;if(d!=null){c+="@font-face{font-family:opera_testfont;src:url(data:font/opentype;base64,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)}";for(var e= 0;e0&&c[0].appendChild(b)};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,l){var q=b[l.toUpperCase()];e=(window.location.protocol=="https:"?"https://":"http://")+e.replace("http://","").replace("https://","");e=e+"?";if(d)e+=f+"&";e+="fctypeId="+this.configuration_.fctypeArray[l]+"&fcId="+b.TTF+"&origId="+q;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;d=c?h[g].replace("\\","").replace("#","").replace("&","").replace(">", "").replace("%","").replace("<","").replace('"',"").replace("'","").replace("+",""):escape(h[g]);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.fontStack={}; a.appendFontFaceStyleNode=function(b,c){var d="TTF",e=this.configuration_.projectId,f=this.configuration_.ec,g=this.configuration_.fcURL,h=this.configuration_.dfcURL,l=this.domHelper_.createElement("style",{type:"text/css",id:"mti_fontface_"+(c?"Aj_":"")+this.configuration_.projectId}),q="",m=false,n={},t={TTF:"truetype",WOFF:"woff",SVG:"svg",MTX:"truetype",OTF:"opentype"},v=this.userAgent_.getName();v=v.toLowerCase();d=this.userAgent_.getVersion();v=v=="msie"&&d<8?true:false;for(i=0;i1){F=1;H=true;y=false}if(F>1||c){if(b!==null){m=true;n[z]||(n[z]=[]);if(H=b[z]){for(var s=[],o=1;o<=F;o++){newFontFamily=z+(c?c:"")+o;n[z].push(newFontFamily);b[newFontFamily]=H.substr((o- 1)*D.numberOfCharsPerRequest,D.numberOfCharsPerRequest);q+='@font-face{\nfont-family:"'+newFontFamily+'";\nsrc:url("'+this.makeFontContentURL(x,e,y,f,g,h,this.configuration_.ck,newFontFamily,b,d,C)+'")';E||(q+=' format("'+t[d.toUpperCase()]+'")');q+=";}\n";s.push("'"+newFontFamily+"'")}this.fontStack[z]=s}}}else{q+='@font-face{\nfont-family:"'+z+(c?c:"")+'";\nsrc:url("'+this.makeFontContentURL(x,e,y,f,g,h,this.configuration_.ck,z+(c?c:""),H?null:b,d,C)+'")';if(!E){z=x[d.toUpperCase()];d=t[d.toUpperCase()]; z||(d=t.TTF);q+=" format('"+d+"')"}q+=";}\n"}}if(m===true||c){this.domHelper_.removeElement(this.domHelper_.getElementById("mti_stylesheet_"+(c?"Aj_":"")+this.configuration_.projectId)||{});c?this.appendDefinationStyleNode(n,c):this.appendDefinationStyleNode(n)}q!=""&&this.domHelper_.insertInto("head",l);if(l.styleSheet)l.styleSheet.cssText=q;else{b=document.createTextNode(q);l.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;for(i=0;i0)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]+"{text-align: left; text-indent: -9999px;}\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","").replace("%","").replace("<","").replace('"',"").replace("'","").replace("+",""):escape(q[l]);url+="&content="+(c||"")+"Mm"}if(m!=null&&m.toUpperCase()=="SVG")url+="#"+t;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,l=function(){g=new mti.TextCollector(e,c.domHelper_,c.configuration_.pfL);h=g.getCollectedText({},"Ajax");q&&c.removeFakeFontFace();var 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_;c.appendFontFaceStyleNode(h);var n=g.getElements(); c.appendFontFaceStyleNode(h,f);n=g.getElements();c.otfMain_!=null&&mti.bind(c.otfMain_,c.otfMain_.loadPartial,n)();for(var t=0;t-1)if(n[t].getAttribute("id")==b||c.domHelper_.isDescendant(c.domHelper_.getElementById(b),n[t]))c.domHelper_.replaceFontFamily(n[t],fontFamily,c.fontStack[fontFamily]);n=new mti.EventDispatcher(c.domHelper_,document.documentElement,c.configuration_);(new mti.FontWatcher(c.domHelper_, n,{getWidth:function(v){return v.offsetWidth}},function(v,y){setTimeout(v,y)},function(){return(new Date).getTime()})).watch(m,{},true)};d=c.userAgent_.getName();d=d.toLowerCase();var q=d=="opera"?true:false;if(q){c.appendFakeFontFace();c.whenFakeFontDetected(function(){l()})}else l();if(document.getElementById("mti_stylesheet_Aj_"+this.configuration_.projectId)!=null){d=document.getElementById("mti_stylesheet_Aj_"+this.configuration_.projectId);d.parentNode.removeChild(d)}if(document.getElementById("mti_fontface_Aj_"+ this.configuration_.projectId)!=null){d=document.getElementById("mti_fontface_Aj_"+this.configuration_.projectId);d.parentNode.removeChild(d)}MTIConfig.RemoveMTIClass==true&&setTimeout(function(){c.domHelper_.removeMTIElement("mti_font_element_Aj")},5E3)};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=parseFloat(p))c=b[p];return c}; mti.MonotypeFontApi.prototype.getRandomChar=function(){var b="";return b="abcdefghijklmnopqrstuvwxyz".charAt(Math.floor(Math.random()*26))};})(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=4aaf38ad-ef75-4ad6-adad-a7bcbddd249e"); 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: true, otfJsParentUrl: 'http://fast.fonts.com/jsapi/otjs/',pfL:[{'fontfamily' : "Garamond Prem W08 Sbh" ,contentIds :{EOT: '3e3536a0-2222-454a-8c6e-924046550b92',WOFF: '09a75c20-2955-401d-8a9d-1fe167836f24',TTF: 'ccb67a7c-ceff-4898-a5fc-23a68352d8eb',SVG: '4b6fd093-dffc-44ef-8812-21027ecad8a2'}, enableSubsetting : false, enableOtf: true, variationId: 1180734, otfJsContentId: 'ccb67a7c-ceff-4898-a5fc-23a68352d8eb' },{'fontfamily' : "Aller Typo W01 Light" ,contentIds :{EOT: '3172950c-b88e-44bb-ad88-1eb5de225e7e',WOFF: 'a281549b-4ccc-4402-adb3-447861030a9b',TTF: '4876aecc-945f-48b4-aa63-1f870bea2c8f',SVG: 'f996a2aa-1be9-4012-a929-b26788d088e1'}, enableSubsetting : false, enableOtf: false },{'fontfamily' : "Aller Typo W01SC Light" ,contentIds :{EOT: '0153e2f8-d35a-4582-b75b-8100a583febb',WOFF: 'fcf5e97f-670d-43df-bf95-8fa3547b5e42',TTF: '21abf0ba-872e-4a67-928e-fe1e2a412ea2',SVG: '9a7c2431-13cc-4126-8c71-cb404f182e51'}, enableSubsetting : false, enableOtf: false }],selectorFontMap:{},ck:'d44f19a684109620e484157ea690e8186c87a44ba593d5d52209965dda96d1749d5cb5eb4c3a45d4ee012af8c80f1f99699206e40d15c69555a1e1d96f9e95d83554941f17bfcf113c6a64c3d11d06f42da89fd1dd832511877ac53bb3a51b5ae1857ef280ab53d5c4a942c9af9a62d3ac20d85abe3adef5673b8e358d52b0ea13415819971bf6e30f850e478c3c46d05f992d3d839000f6ec07f71d9509ac2bc15f6061bcb886544abc72',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:'4aaf38ad-ef75-4ad6-adad-a7bcbddd249e',EOD:null},fontloading:function(fontFamily, fontDescription){ for(var i=0; i