/* * Copyright 2010 Small Batch, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ ;(function(window,document,undefined){ function h(a){return function(){return this[a]}}var k;function m(a,b){var c=arguments.length>2?Array.prototype.slice.call(arguments,2):[];return function(){c.push.apply(c,arguments);return b.apply(a,c)}};function n(a,b){this.z=a;this.a=b}n.prototype.createElement=function(a,b,c){a=this.z.createElement(a);if(b)for(var d in b)if(b.hasOwnProperty(d))if(d=="style"&&this.a.getName()=="MSIE")a.style.cssText=b[d];else a.setAttribute(d,b[d]);c&&a.appendChild(this.z.createTextNode(c));return a};function o(a,b,c){a=a.z.getElementsByTagName(b)[0];if(!a)a=document.documentElement;if(a&&a.lastChild){a.insertBefore(c,a.lastChild);return true}return false} function p(a,b){function c(){document.body?b():setTimeout(c,0)}c()}function q(a,b){if(b.parentNode){b.parentNode.removeChild(b);return true}return false}function r(a,b){return a.createElement("link",{rel:"stylesheet",href:b})}function t(a,b,c){a=b.className.split(/\s+/);for(var d=0,e=a.length;d=6)}return new v("MSIE","Unknown","MSIE","Unknown",y(a),B(a),C(a,a.m),false)} function ba(a){var b="Unknown",c="Unknown",d=A(a,a.a,/(Presto\/[\d\w\.]+)/,1);if(d!=""){c=d.split("/");b=c[0];c=c[1]}else{if(a.a.indexOf("Gecko")!=-1)b="Gecko";d=A(a,a.a,/rv:([^\)]+)/,1);if(d!="")c=d}if(a.a.indexOf("Version/")!=-1){d=A(a,a.a,/Version\/([\d\.]+)/,1);if(d!="")return new v("Opera",d,b,c,y(a),B(a),C(a,a.m),E(a,d)>=10)}d=A(a,a.a,/Opera[\/ ]([\d\.]+)/,1);if(d!="")return new v("Opera",d,b,c,y(a),B(a),C(a,a.m),E(a,d)>=10);return new v("Opera","Unknown",b,c,y(a),B(a),C(a,a.m),false)} function ca(a){var b=y(a),c=B(a),d=A(a,a.a,/AppleWebKit\/([\d\.\+]+)/,1);if(d=="")d="Unknown";var e="Unknown";if(a.a.indexOf("Chrome")!=-1)e="Chrome";else if(a.a.indexOf("Safari")!=-1)e="Safari";else if(a.a.indexOf("AdobeAIR")!=-1)e="AdobeAIR";var f="Unknown";if(a.a.indexOf("Version/")!=-1)f=A(a,a.a,/Version\/([\d\.\w]+)/,1);else if(e=="Chrome")f=A(a,a.a,/Chrome\/([\d\.]+)/,1);else if(e=="AdobeAIR")f=A(a,a.a,/AdobeAIR\/([\d\.]+)/,1);var g=false;if(e=="AdobeAIR"){g=A(a,f,/\d+\.(\d+)/,1);g=E(a,f)>2|| E(a,f)==2&&parseInt(g,10)>=5}else{g=A(a,d,/\d+\.(\d+)/,1);g=E(a,d)>=526||E(a,d)>=525&&parseInt(g,10)>=13}return new v(e,f,"AppleWebKit",d,b,c,C(a,a.m),g)} function da(a){var b="Unknown",c="Unknown",d=false;if(a.a.indexOf("Firefox")!=-1){b="Firefox";var e=A(a,a.a,/Firefox\/([\d\w\.]+)/,1);if(e!=""){d=A(a,e,/\d+\.(\d+)/,1);c=e;d=e!=""&&E(a,e)>=3&&parseInt(d,10)>=5}}else if(a.a.indexOf("Mozilla")!=-1)b="Mozilla";e=A(a,a.a,/rv:([^\)]+)/,1);if(e=="")e="Unknown";else if(!d){d=E(a,e);var f=parseInt(A(a,e,/\d+\.(\d+)/,1),10),g=parseInt(A(a,e,/\d+\.\d+\.(\d+)/,1),10);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 v(b,c,"Gecko",e,y(a),B(a),C(a,a.m),d)}function E(a,b){a=A(a,b,/(\d+)/,1);if(a!="")return parseInt(a,10);return-1}function A(a,b,c,d){if((a=b.match(c))&&a[d])return a[d];return""}function C(a,b){if(b.documentMode)return b.documentMode};function ea(a,b,c,d){this.c=a;this.f=b;this.H=c;this.j=d||fa;this.g=new F("-")}var fa="wf";function G(a){t(a.c,a.f,a.g.e(a.j,"loading"));H(a,"loading")}function I(a){u(a.c,a.f,a.g.e(a.j,"loading"));t(a.c,a.f,a.g.e(a.j,"inactive"));H(a,"inactive")}function ga(a){u(a.c,a.f,a.g.e(a.j,"loading"));t(a.c,a.f,a.g.e(a.j,"active"));H(a,"active")}function H(a,b,c,d){a.H[b]&&a.H[b](c,d)};function ha(){this.U={}}function ia(a,b){var c=[];for(var d in b)if(b.hasOwnProperty(d)){var e=a.U[d];e&&c.push(e(b[d]))}return c};function J(a,b,c,d,e){this.c=a;this.p=b;this.q=c;this.n=d;this.A=e;this.J=0;this.Z=this.T=false}J.prototype.watch=function(a,b,c,d){for(var e=a.length,f=0;f0)e=f}else e=["n4"];this.V.push(d);if(f=ta[d])this.O[d]=f;this.$[d]=e}};function Y(a,b,c){this.a=a;this.c=b;this.d=c}Y.prototype.v=function(a,b){a.Q().match(/iPad|iPod|iPhone/)!=null&&b(false);return b(a.s())};Y.prototype.load=function(a){var b=this.c;this.a.getName()=="MSIE"&&this.d.blocking!=true?p(b,m(this,this.S,a)):this.S(a)};Y.prototype.S=function(a){var b=this.c,c=new W(this.d.api),d=this.d.families;c.h=d;d=new X(d);d.parse();o(b,"head",r(b,c.e()));a(d.V,d.$,d.O)}; window.WebFont.o("google",function(a){var b=(new w(navigator.userAgent,document)).parse();return new Y(b,new n(document,b),a)});function Z(a,b){this.c=a;this.d=b}Z.prototype.load=function(a){for(var b=this.d.urls||[],c=this.d.families||[],d=0,e=b.length;d