// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});;
/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.09i
 */
var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/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}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E<B;++E){D=C[E].split("=",2).reverse();G.stops.push([D[1]||E/(B-1),D[0]])}return G}),quotedList:j(function(E){var D=[],C=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}return D}),recognizesMedia:j(function(G){var E=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!D.disabled;C.removeChild(E);return B}),removeClass:function(D,C){var B=RegExp("(?:^|\\s+)"+C+"(?=\\s|$)","g");D.className=D.className.replace(B,"");return D},supports:function(D,C){var B=document.createElement("span").style;if(B[D]===undefined){return false}B[D]=C;return B[D]===C},textAlign:function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=" "+E}}else{if(B<C-1){E+=" "}}return E},textShadow:j(function(F){if(F=="none"){return null}var E=[],G={},B,C=0;var D=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);return E}),textTransform:(function(){var B={uppercase:function(C){return C.toUpperCase()},lowercase:function(C){return C.toLowerCase()},capitalize:function(C){return C.replace(/\b./g,function(D){return D.toUpperCase()})}};return function(E,D){var C=B[D.get("textTransform")];return C?C(E):E}})(),whiteSpace:(function(){var D={inline:1,"inline-block":1,"run-in":1};var C=/^\s+/,B=/\s+$/;return function(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){return H}if(!G.previousSibling){H=H.replace(C,"")}if(!G.nextSibling){H=H.replace(B,"")}return H}})()};n.ready=(function(){var B=!n.recognizesMedia("all"),E=false;var D=[],H=function(){B=true;for(var K;K=D.shift();K()){}};var I=g("link"),J=g("style");function C(K){return K.disabled||G(K.sheet,K.media||"screen")}function G(M,P){if(!n.recognizesMedia(P||"all")){return true}if(!M||M.disabled){return false}try{var Q=M.cssRules,O;if(Q){search:for(var L=0,K=Q.length;O=Q[L],L<K;++L){switch(O.type){case 2:break;case 3:if(!G(O.styleSheet,O.media.mediaText)){return false}break;default:break search}}}}catch(N){}return true}function F(){if(document.createStyleSheet){return true}var L,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!C(L)){return false}}for(K=0;L=J[K];++K){if(!C(L)){return false}}return true}x.ready(function(){if(!E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});return function(K){if(B){K()}else{D.push(K)}}})();function s(D){var C=this.face=D.face,B={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){var F=C.bbox.split(/\s+/);var E={minX:parseInt(F[0],10),minY:parseInt(F[1],10),maxX:parseInt(F[2],10),maxY:parseInt(F[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(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){var O=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?E:0);K=M.k}P.total=F;return P}}function f(){var C={},B={oblique:"italic",italic:"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){var G=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!G){return null}I={normal:400,bold:700}[I]||parseInt(I,10);if(G[I]){return G[I]}var E={1:1,99:0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||J<F){F=J}if(!D||J>D){D=J}K.push(J)}if(I<F){I=F}if(I>D){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?M<L:M>L:(M<=I&&L<=I)?M>L:M<L)?-1:1});return G[K[0]]}}function r(){function D(F,G){if(F.contains){return F.contains(G)}return F.compareDocumentPosition(G)&16}function B(G){var F=G.relatedTarget;if(!F||D(this,F)){return}C(this,G.type=="mouseover")}function E(F){C(this,F.type=="mouseenter")}function C(F,G){setTimeout(function(){var H=d.get(F).options;m.replace(F,G?h(H,H.hover):H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}function u(){var C=[],D={};function B(H){var E=[],G;for(var F=0;G=H[F];++F){E[F]=C[D[G]]}return E}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){var E=arguments.length?B(arguments):C,F;for(var G=0;F=E[G++];){m.replace(F[0],F[1],true)}}}function A(){var D={},B=0;function C(E){return E.cufid||(E.cufid=++B)}this.get=function(E){var F=C(E);return D[F]||(D[F]={})}}function a(B){var D={},C={};this.extend=function(E){for(var F in E){if(k(E,F)){D[F]=E[F]}}return this};this.get=function(E){return D[E]!=undefined?D[E]:B[E]};this.getSize=function(F,E){return C[F]||(C[F]=new n.Size(this.get(F),E))};this.isUsable=function(){return !!B}}function q(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){return D.call(C,window.event)})}}}function v(C,B){var D=d.get(C);if(D.options){return C}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;return C}function j(B){var C={};return function(D){if(!k(C,D)){C[D]=B.apply(null,arguments)}return C[D]}}function c(F,E){var B=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(var C=0;D=B[C];++C){if(i[D]){return i[D].get(E.get("fontStyle"),E.get("fontWeight"))}}return null}function g(B){return document.getElementsByTagName(B)}function k(C,B){return C.hasOwnProperty(B)}function h(){var C={},B,F;for(var E=0,D=arguments.length;B=arguments[E],E<D;++E){for(F in B){if(k(B,F)){C[F]=B[F]}}}return C}function o(E,M,C,N,F,D){var K=document.createDocumentFragment(),H;if(M===""){return K}var L=N.separate;var I=M.split(p[L]),B=(L=="words");if(B&&t){if(/^\s/.test(M)){I.unshift("")}if(/\s$/.test(M)){I.push("")}}for(var J=0,G=I.length;J<G;++J){H=z[N.engine](E,B?n.textAlign(I[J],C,J,G):I[J],C,N,F,D,J<G-1);if(H){K.appendChild(H)}}return K}function l(D,M){var C=D.nodeName.toLowerCase();if(M.ignore[C]){return}var E=!M.textless[C];var B=n.getStyle(v(D,M)).extend(M);var F=c(D,B),G,K,I,H,L,J;if(!F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}var t=" ".split(/\s+/).length==0;var d=new A();var b=new r();var y=new u();var e=false;var z={},i={},w={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(B){return jQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return $$(B)})||(window.$&&function(B){return $(B)})||(document.querySelectorAll&&function(B){return document.querySelectorAll(B)})||g),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var p={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};m.now=function(){x.ready();return m};m.refresh=function(){y.repeat.apply(y,arguments);return m};m.registerEngine=function(C,B){if(!B){return m}z[C]=B;return m.set("engine",C)};m.registerFont=function(D){if(!D){return m}var B=new s(D),C=B.family;if(!i[C]){i[C]=new f()}i[C].add(B);return m.set("fontFamily",'"'+C+'"')};m.replace=function(D,C,B){C=h(w,C);if(!C.engine){return m}if(!e){n.addClass(x.root(),"cufon-active cufon-loading");n.ready(function(){n.addClass(n.removeClass(x.root(),"cufon-loading"),"cufon-ready")});e=true}if(C.hover){C.forceHitArea=true}if(C.autoDetect){delete C.fontFamily}if(typeof C.textShadow=="string"){C.textShadow=n.textShadow(C.textShadow)}if(typeof C.color=="string"&&/^-/.test(C.color)){C.textGradient=n.gradient(C.color)}else{delete C.textGradient}if(!B){y.add(D,arguments)}if(D.nodeType||typeof D=="string"){D=[D]}n.ready(function(){for(var F=0,E=D.length;F<E;++F){var G=D[F];if(typeof G=="string"){m.replace(C.selector(G),C,true)}else{l(G,C)}}});return m};m.set=function(B,C){w[B]=C;return m};return m})();Cufon.registerEngine("vml",(function(){var e=document.namespaces;if(!e){return}e.add("cvml","urn:schemas-microsoft-com:vml");e=null;var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";if(!b.coordsize){return}b=null;var h=(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:'+(h?"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 c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m<l;++m){i.push(n[m][0]*100+"% "+n[m][1])}o.colors=i.join(",");o.color2=n[l][1];g[q]=o}return g[q]}return function(ac,G,Y,C,K,ad,W){var n=(G===null);if(n){G=K.alt}var I=ac.viewBox;var p=Y.computedFontSize||(Y.computedFontSize=new Cufon.CSS.Size(c(ad,Y.get("fontSize"))+"px",ac.baseSize));var y,q;if(n){y=K;q=K.firstChild}else{y=document.createElement("cufon");y.className="cufon cufon-vml";y.alt=G;q=document.createElement("cufoncanvas");y.appendChild(q);if(C.printable){var Z=document.createElement("cufontext");Z.appendChild(document.createTextNode(G));y.appendChild(Z)}if(!W){y.appendChild(document.createElement("cvml:shape"))}}var ai=y.style;var R=q.style;var l=p.convert(I.height),af=Math.ceil(l);var V=af/l;var P=V*Cufon.CSS.fontStretch(Y.get("fontStretch"));var U=I.minX,T=I.minY;R.height=af;R.top=Math.round(p.convert(T-ac.ascent));R.left=Math.round(p.convert(U));ai.height=p.convert(ac.height)+"px";var F=Y.get("color");var ag=Cufon.CSS.textTransform(G,Y).split("");var L=ac.spacing(ag,f(ad,Y,p,"letterSpacing"),f(ad,Y,p,"wordSpacing"));if(!L.length){return null}var k=L.total;var x=-U+k+(I.width-L[L.length-1]);var ah=p.convert(x*P),X=Math.round(ah);var O=x+","+I.height,m;var J="r"+O+"ns";var u=C.textGradient&&d(C.textGradient);var o=ac.glyphs,S=0;var H=C.textShadow;var ab=-1,aa=0,w;while(w=ag[++ab]){var D=o[ag[ab]]||ac.missingGlyph,v;if(!D){continue}if(n){v=q.childNodes[aa];while(v.firstChild){v.removeChild(v.firstChild)}}else{v=document.createElement("cvml:shape");q.appendChild(v)}v.stroked="f";v.coordsize=O;v.coordorigin=m=(U-S)+","+T;v.path=(D.d?"m"+D.d+"xe":"")+"m"+m+J;v.fillcolor=F;if(u){v.appendChild(u.cloneNode(false))}var ae=v.style;ae.width=X;ae.height=af;if(H){var s=H[0],r=H[1];var B=Cufon.CSS.color(s.color),z;var N=document.createElement("cvml:shadow");N.on="t";N.color=B.color;N.offset=s.offX+","+s.offY;if(r){z=Cufon.CSS.color(r.color);N.type="double";N.color2=z.color;N.offset2=r.offX+","+r.offY}N.opacity=B.opacity||(z&&z.opacity)||1;v.appendChild(N)}S+=L[aa++]}var M=v.nextSibling,t,A;if(C.forceHitArea){if(!M){M=document.createElement("cvml:rect");M.stroked="f";M.className="cufon-vml-cover";t=document.createElement("cvml:fill");t.opacity=0;M.appendChild(t);q.appendChild(M)}A=M.style;A.width=X;A.height=af}else{if(M){q.removeChild(M)}}ai.width=Math.max(Math.ceil(p.convert(k*P)),0);if(h){var Q=Y.computedYAdjust;if(Q===undefined){var E=Y.get("lineHeight");if(E=="normal"){E="1em"}else{if(!isNaN(E)){E+="em"}}Y.computedYAdjust=Q=0.5*(a(ad,E)-parseFloat(ai.height))}if(Q){ai.marginTop=Math.ceil(Q)+"px";ai.marginBottom=Q+"px"}}return y}})());Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return}b=null;var a=Cufon.CSS.supports("display","inline-block");var e=!a&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var f=document.createElement("style");f.type="text/css";f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(e?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(a?"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(f);function d(p,h){var n=0,m=0;var g=[],o=/([mrvxe])([^a-z]*)/g,k;generate:for(var j=0;k=o.exec(p);++j){var l=k[2].split(",");switch(k[1]){case"v":g[j]={m:"bezierCurveTo",a:[n+~~l[0],m+~~l[1],n+~~l[2],m+~~l[3],n+=~~l[4],m+=~~l[5]]};break;case"r":g[j]={m:"lineTo",a:[n+=~~l[0],m+=~~l[1]]};break;case"m":g[j]={m:"moveTo",a:[n=~~l[0],m=~~l[1]]};break;case"x":g[j]={m:"closePath"};break;case"e":break generate}h[g[j].m].apply(h,g[j].a)}return g}function c(m,k){for(var j=0,h=m.length;j<h;++j){var g=m[j];k[g.m].apply(k,g.a)}}return function(V,w,P,t,C,W){var k=(w===null);if(k){w=C.getAttribute("alt")}var A=V.viewBox;var m=P.getSize("fontSize",V.baseSize);var B=0,O=0,N=0,u=0;var z=t.textShadow,L=[];if(z){for(var U=z.length;U--;){var F=z[U];var K=m.convertFrom(parseFloat(F.offX));var I=m.convertFrom(parseFloat(F.offY));L[U]=[K,I];if(I<B){B=I}if(K>O){O=K}if(I>N){N=I}if(K<u){u=K}}}var Z=Cufon.CSS.textTransform(w,P).split("");var E=V.spacing(Z,~~m.convertFrom(parseFloat(P.get("letterSpacing"))||0),~~m.convertFrom(parseFloat(P.get("wordSpacing"))||0));if(!E.length){return null}var h=E.total;O+=A.width-E[E.length-1];u+=A.minX;var s,n;if(k){s=C;n=C.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",w);n=document.createElement("canvas");s.appendChild(n);if(t.printable){var S=document.createElement("cufontext");S.appendChild(document.createTextNode(w));s.appendChild(S)}}var aa=s.style;var H=n.style;var j=m.convert(A.height);var Y=Math.ceil(j);var M=Y/j;var G=M*Cufon.CSS.fontStretch(P.get("fontStretch"));var J=h*G;var Q=Math.ceil(m.convert(J+O-u));var o=Math.ceil(m.convert(A.height-B+N));n.width=Q;n.height=o;H.width=Q+"px";H.height=o+"px";B+=A.minY;H.top=Math.round(m.convert(B-V.ascent))+"px";H.left=Math.round(m.convert(u))+"px";var r=Math.max(Math.ceil(m.convert(J)),0)+"px";if(a){aa.width=r;aa.height=m.convert(V.height)+"px"}else{aa.paddingLeft=r;aa.paddingBottom=(m.convert(V.height)-1)+"px"}var X=n.getContext("2d"),D=j/A.height;X.scale(D,D*M);X.translate(-u,-B);X.save();function T(){var x=V.glyphs,ab,l=-1,g=-1,y;X.scale(G,1);while(y=Z[++l]){var ab=x[Z[l]]||V.missingGlyph;if(!ab){continue}if(ab.d){X.beginPath();if(ab.code){c(ab.code,X)}else{ab.code=d("m"+ab.d,X)}X.fill()}X.translate(E[++g],0)}X.restore()}if(z){for(var U=z.length;U--;){var F=z[U];X.save();X.fillStyle=F.color;X.translate.apply(X,L[U]);T()}}var q=t.textGradient;if(q){var v=q.stops,p=X.createLinearGradient(0,A.minY,0,A.maxY);for(var U=0,R=v.length;U<R;++U){p.addColorStop.apply(p,v[U])}X.fillStyle=p}else{X.fillStyle=P.get("color")}T();return s}})());;
/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * Copyright 1990 as an unpublished work by Bitstream Inc.  All rights reserved. 
 * Confidential.
 */
Cufon.registerFont({"w":180,"face":{"font-family":"Humanist 521","font-weight":700,"font-stretch":"condensed","units-per-em":"360","panose-1":"2 0 8 6 0 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"3","bbox":"-11 -275 345 85","underline-thickness":"31.32","underline-position":"-40.68","stemh":"36","stemv":"48","unicode-range":"U+0020-U+007E"},"glyphs":{" ":{"w":92},"!":{"d":"20,-26v0,-16,14,-29,30,-29v16,0,30,12,30,29v0,16,-14,30,-30,30v-16,0,-30,-14,-30,-30xm42,-73v-15,-57,-20,-104,-20,-138v0,-26,9,-39,28,-39v19,0,28,13,28,39v0,34,-6,81,-21,138r-15,0","w":100},"\"":{"d":"14,-253r34,0r0,99r-34,0r0,-99xm71,-253r34,0r0,99r-34,0r0,-99","w":119},"#":{"d":"125,-257r38,0r-25,73r42,0r26,-73r39,0r-26,73r50,0r-13,35r-49,0r-15,42r51,0r-13,36r-51,0r-26,73r-39,0r26,-73r-42,0r-27,73r-38,0r25,-73r-50,0r13,-36r50,0r15,-42r-53,0r13,-35r53,0xm125,-149r-16,42r44,0r15,-42r-43,0","w":276},"$":{"d":"68,-187v9,33,86,76,77,120v0,32,-18,56,-49,64r0,33r-28,0r0,-31v-17,0,-34,-7,-52,-20r0,-52v21,18,38,27,51,27v13,0,20,-9,20,-21v0,-41,-72,-73,-72,-119v0,-30,20,-52,53,-58r0,-21r28,0r0,20v12,1,25,5,40,13r0,45v-21,-11,-37,-17,-49,-17v-12,0,-19,7,-19,17","w":156},"%":{"d":"11,-179v0,-45,21,-71,50,-71v29,0,50,26,50,71v0,45,-21,72,-50,72v-29,0,-50,-27,-50,-72xm44,-179v0,28,7,43,17,43v10,0,16,-15,16,-43v0,-28,-5,-42,-16,-42v-10,0,-17,14,-17,42xm50,-4r138,-250r21,12r-137,250xm148,-67v0,-45,21,-72,50,-72v29,0,50,27,50,72v0,45,-21,71,-50,71v-29,0,-50,-26,-50,-71xm182,-67v0,28,6,42,16,42v10,0,17,-14,17,-42v0,-28,-6,-42,-17,-42v-10,0,-16,14,-16,42","w":259},"&":{"d":"136,-19v-45,45,-125,20,-125,-48v0,-29,18,-55,51,-76v-29,-43,-12,-107,46,-107v36,0,58,22,58,53v0,23,-13,42,-40,62r20,32v6,-10,10,-19,13,-27r47,0v-4,21,-17,44,-35,70r36,60r-59,0xm113,-58r-31,-50v-28,15,-28,60,4,63v9,0,19,-4,27,-13xm106,-170v14,-9,20,-15,20,-27v0,-9,-7,-17,-17,-17v-25,0,-17,27,-3,44","w":219},"'":{"d":"14,-253r34,0r0,99r-34,0r0,-99","w":61},"(":{"d":"76,79v-89,-101,-89,-227,0,-329r32,0v-62,85,-62,244,0,329r-32,0","w":113},")":{"d":"37,-250v90,101,90,228,0,329r-32,0v63,-85,62,-244,0,-329r32,0","w":113},"*":{"d":"89,-167r8,54r-29,0r8,-53r-31,43r-21,-21r44,-32r-54,9r0,-29r54,8r-44,-32r21,-20r31,43r-8,-53r29,0r-8,53r31,-43r21,20r-44,32r53,-8r0,29r-53,-9r44,32r-21,21","w":164},"+":{"d":"132,-215r36,0r0,90r87,0r0,35r-87,0r0,90r-36,0r0,-90r-87,0r0,-35r87,0r0,-90","w":299},",":{"d":"15,42v12,-11,16,-24,17,-41v-28,-7,-22,-55,9,-55v18,0,30,15,30,41v0,31,-21,56,-56,64r0,-9","w":87},"-":{"d":"9,-62r0,-43r94,0r0,43r-94,0","w":111},".":{"d":"16,-25v0,-15,13,-28,28,-28v15,0,28,13,28,28v0,15,-13,28,-28,28v-15,0,-28,-13,-28,-28","w":87},"\/":{"d":"0,33r87,-283r26,0r-87,283r-26,0","w":100},"0":{"d":"11,-123v0,-81,33,-127,81,-127v48,0,81,46,81,127v0,81,-33,127,-81,127v-48,0,-81,-46,-81,-127xm62,-123v0,55,9,82,30,82v21,0,30,-27,30,-82v0,-55,-9,-81,-30,-81v-21,0,-30,26,-30,81","w":184},"1":{"d":"26,0r0,-246r50,0r0,246r-50,0","w":101},"2":{"d":"4,0v58,-80,85,-136,85,-168v-1,-46,-47,-40,-76,-19r0,-46v50,-33,127,-18,127,52v0,33,-21,78,-60,136r73,0r0,45r-149,0","w":162},"3":{"d":"4,-9r0,-45v34,19,80,23,82,-20v1,-22,-15,-34,-41,-34v2,-13,-4,-32,2,-41v23,0,36,-13,36,-31v-1,-34,-47,-33,-74,-17r0,-43v54,-24,124,-5,124,56v0,24,-11,42,-33,53v65,30,40,135,-42,135v-18,0,-36,-4,-54,-13","w":148},"4":{"d":"94,0r0,-63r-88,0r0,-42r90,-145r46,0r0,147r21,0r0,40r-21,0r0,63r-48,0xm94,-102r0,-90v-12,34,-35,60,-52,90r52,0","w":171},"5":{"d":"12,-6r0,-44v30,18,84,13,84,-25v0,-32,-40,-41,-74,-32r5,-139r116,0r0,44r-74,0v1,17,-3,38,0,53v49,0,79,29,79,75v0,67,-76,95,-136,68","w":162},"6":{"d":"87,-157v48,-7,80,24,80,76v0,51,-34,85,-79,85v-47,0,-77,-34,-77,-87v0,-54,45,-116,75,-167r55,0xm64,-79v0,26,9,39,26,39v17,0,26,-13,26,-39v0,-26,-9,-39,-26,-39v-17,0,-26,13,-26,39","w":178},"7":{"d":"28,-15r63,-186r-82,0r0,-45r147,0r0,10r-83,239","w":160},"8":{"d":"45,-131v-50,-30,-26,-118,43,-118v69,0,96,85,44,118v63,28,38,145,-44,135v-82,9,-106,-106,-43,-135xm66,-178v0,22,9,35,22,35v14,0,22,-12,22,-35v0,-24,-8,-36,-22,-36v-14,0,-22,12,-22,36xm59,-72v0,26,10,39,29,39v19,0,29,-13,29,-39v0,-24,-11,-37,-29,-37v-18,0,-29,13,-29,37","w":176},"9":{"d":"89,-89v-47,7,-80,-25,-80,-76v0,-51,34,-85,79,-85v47,0,77,34,77,87v0,54,-44,117,-75,167r-54,0xm113,-167v0,-26,-10,-39,-27,-39v-17,0,-26,13,-26,39v0,26,9,39,26,39v17,0,27,-13,27,-39","w":178},":":{"d":"18,-135v0,-15,13,-28,28,-28v15,0,28,13,28,28v0,15,-13,28,-28,28v-15,0,-28,-13,-28,-28xm18,-25v0,-15,13,-28,28,-28v15,0,28,13,28,28v0,15,-13,28,-28,28v-15,0,-28,-13,-28,-28","w":91},";":{"d":"17,42v12,-11,16,-24,17,-41v-28,-7,-21,-55,10,-55v18,0,29,15,29,41v0,31,-21,56,-56,64r0,-9xm17,-135v0,-15,13,-28,28,-28v15,0,28,13,28,28v0,15,-13,28,-28,28v-15,0,-28,-13,-28,-28","w":91},"<":{"d":"253,-210r0,39r-157,64r157,64r0,38r-207,-85r0,-35","w":299},"=":{"d":"45,-163r210,0r0,35r-210,0r0,-35xm45,-87r210,0r0,35r-210,0r0,-35","w":299},">":{"d":"46,-210r207,85r0,35r-207,85r0,-38r158,-64r-158,-64r0,-39","w":299},"?":{"d":"29,-26v0,-16,13,-29,29,-29v16,0,30,12,30,29v0,16,-14,30,-30,30v-16,0,-29,-14,-29,-30xm116,-192v0,52,-59,70,-51,120r-13,0v-31,-40,-4,-72,8,-116v1,-27,-31,-28,-48,-14r11,-44v46,-14,93,9,93,54","w":130},"@":{"d":"214,-123v-3,-19,-14,-29,-31,-29v-26,0,-49,33,-49,74v0,22,9,33,27,33v34,0,47,-45,53,-78xm345,-134v0,58,-41,113,-102,115v-25,0,-38,-10,-38,-29v-26,48,-109,36,-109,-31v0,-57,38,-99,85,-99v19,0,32,8,41,23r10,-17r31,0r-27,112v0,8,6,12,17,12v37,0,60,-49,59,-87v0,-55,-46,-96,-117,-96v-87,0,-147,63,-147,139v0,116,157,152,240,85r14,21v-100,83,-286,32,-286,-105v0,-100,82,-169,180,-169v84,0,149,50,149,126","w":360},"A":{"d":"-1,0r60,-246r58,0r63,246r-55,0r-11,-51r-52,0r-10,51r-53,0xm71,-92r36,0r-19,-85","w":177},"B":{"d":"22,0r0,-246v70,-3,151,-5,151,62v0,22,-9,38,-30,50v65,34,42,145,-48,134r-73,0xm75,-147v27,1,43,-4,43,-29v0,-26,-16,-32,-43,-30r0,59xm75,-40v30,2,49,-4,49,-34v0,-29,-19,-36,-49,-34r0,68","w":193},"C":{"d":"165,-13v-74,47,-153,-8,-153,-108v0,-104,70,-155,151,-116r0,45v-54,-32,-93,-4,-94,70v-1,79,48,94,96,59r0,50","w":177},"D":{"d":"196,-123v0,70,-36,127,-111,123r-63,0r0,-246r63,0v75,-4,111,53,111,123xm77,-201r0,155v47,5,62,-18,62,-77v0,-59,-15,-83,-62,-78","w":207},"E":{"d":"22,0r0,-246r139,0r0,43r-84,0r0,56r77,0r0,42r-77,0r0,61r85,0r0,44r-140,0","w":177},"F":{"d":"22,0r0,-246r125,0r0,43r-70,0r0,55r68,0r0,43r-68,0r0,105r-55,0","w":162},"G":{"d":"190,-24v-72,61,-178,18,-178,-95v0,-106,89,-163,171,-112r0,50v-54,-42,-117,-27,-115,59v0,60,24,90,67,73r0,-43r-25,0r0,-40r80,0r0,108","w":208},"H":{"d":"22,0r0,-246r55,0r0,98r56,0r0,-98r55,0r0,246r-55,0r0,-104r-56,0r0,104r-55,0","w":209},"I":{"d":"23,0r0,-246r56,0r0,246r-56,0","w":101},"J":{"d":"-10,27v24,5,34,-4,34,-34r0,-239r56,0r0,239v2,67,-30,96,-86,81","w":102},"K":{"d":"22,0r0,-246r55,0r0,117r58,-117r55,0r-58,117r73,129r-62,0r-66,-117r0,117r-55,0","w":198},"L":{"d":"22,0r0,-246r56,0r0,202r84,0r0,44r-140,0","w":164},"M":{"d":"22,0r0,-246r51,0r53,99r53,-99r51,0r0,246r-53,0r0,-154r-47,89r-9,0r-45,-87r0,152r-54,0","w":251},"N":{"d":"22,0r0,-246r51,0r67,134r0,-134r51,0r0,246r-47,0r-71,-140r0,140r-51,0","w":209},"O":{"d":"12,-123v0,-78,38,-127,93,-127v55,0,94,48,94,127v0,79,-39,127,-94,127v-55,0,-93,-49,-93,-127xm68,-123v0,53,14,81,37,81v23,0,38,-28,38,-81v0,-53,-14,-80,-38,-80v-23,0,-37,27,-37,80","w":210},"P":{"d":"22,0r0,-246v78,-4,154,-2,154,74v0,54,-37,74,-99,70r0,102r-55,0xm77,-143v27,1,45,-3,45,-29v0,-25,-18,-33,-45,-31r0,60","w":185},"Q":{"d":"83,1v-44,-13,-71,-57,-71,-124v0,-79,38,-127,93,-127v55,0,94,48,94,127v0,60,-21,101,-60,119v15,17,35,25,55,14r4,4r-29,42v-36,1,-59,-17,-86,-55xm68,-123v0,53,14,81,37,81v23,0,38,-28,38,-81v0,-53,-14,-80,-38,-80v-23,0,-37,27,-37,80","w":210},"R":{"d":"22,0r0,-246v75,-4,154,-1,154,69v0,28,-14,47,-40,56v27,22,34,84,49,121r-59,0v-13,-32,-13,-108,-50,-105r0,105r-54,0xm76,-147v27,1,45,-3,45,-28v0,-24,-18,-30,-45,-28r0,56","w":189},"S":{"d":"68,-189v10,34,86,78,77,124v3,67,-83,89,-129,48r0,-54v21,19,38,28,51,28v13,0,20,-8,20,-21v0,-45,-80,-77,-72,-124v-3,-57,75,-79,121,-47r0,46v-21,-12,-38,-18,-50,-18v-12,0,-18,7,-18,18","w":158},"T":{"d":"53,0r0,-202r-50,0r0,-44r156,0r0,44r-50,0r0,202r-56,0","w":162},"U":{"d":"21,-246r56,0r0,166v0,24,6,36,28,36v22,0,28,-12,28,-36r0,-166r55,0r0,165v0,55,-29,85,-83,85v-54,0,-84,-30,-84,-85r0,-165","w":209},"V":{"d":"73,4r-79,-250r57,0v11,45,27,87,34,135v8,-45,24,-91,35,-135r57,0r-81,250r-23,0","w":171},"W":{"d":"78,4r-86,-250r56,0r44,140r50,-140r40,0r49,139r45,-139r54,0r-87,250r-23,0r-58,-168r-59,168r-25,0","w":322},"X":{"d":"-8,0r69,-130r-62,-116r60,0r32,66r33,-66r60,0r-62,115r71,131r-61,0r-40,-80r-40,80r-60,0","w":184},"Y":{"d":"58,0r0,-112r-69,-134r60,0r36,74r31,-74r58,0r-60,132r0,114r-56,0","w":167},"Z":{"d":"0,0r85,-202r-75,0r0,-44r151,0r-85,202r83,0r0,44r-159,0","w":165},"[":{"d":"13,75r0,-321r91,0r0,37r-45,0r0,248r45,0r0,36r-91,0","w":113},"\\":{"d":"-4,-250r26,0r87,283r-27,0","w":100},"]":{"d":"100,-246r0,321r-91,0r0,-36r45,0r0,-248r-45,0r0,-37r91,0","w":113},"^":{"d":"158,-257r44,0r85,99r-42,0r-65,-65r-66,65r-41,0","w":360},"_":{"d":"0,49r180,0r0,36r-180,0r0,-36"},"`":{"d":"115,-189r-21,0r-50,-62r35,0"},"a":{"d":"95,-18v-27,33,-86,29,-86,-20v0,-32,27,-51,84,-69v1,-16,1,-28,-18,-27v-19,0,-37,9,-55,25r0,-38v37,-33,121,-37,121,31r0,72v1,11,9,5,17,0r0,32v-23,18,-54,26,-63,-6xm93,-42r0,-40v-25,9,-38,18,-38,32v0,24,24,19,38,8","w":162},"b":{"d":"18,0r0,-246r49,0r0,91v50,-38,104,1,104,72v0,71,-60,111,-105,68r-3,15r-45,0xm67,-118r0,69v23,27,54,11,54,-33v0,-44,-29,-62,-54,-36"},"c":{"d":"134,-8v-60,30,-125,-3,-125,-75v0,-70,63,-107,122,-76r0,39v-37,-21,-69,-9,-71,37v-1,48,41,56,74,35r0,40","w":144},"d":{"d":"115,-15v-44,44,-106,6,-106,-68v0,-74,58,-111,105,-70r0,-93r48,0r0,246r-46,0xm114,-46r0,-72v-25,-26,-55,-9,-55,36v0,44,30,60,55,36"},"e":{"d":"143,-44r0,32v-62,34,-134,10,-134,-69v0,-56,29,-89,73,-89v42,0,70,38,65,93v-28,2,-63,-4,-87,2v-1,48,49,51,83,31xm60,-101v13,-2,32,4,41,-2v0,-24,-6,-35,-20,-35v-14,-1,-22,15,-21,37","w":158},"f":{"d":"20,0r0,-136r-16,0r0,-31r16,0v-3,-59,29,-89,85,-79r0,37v-29,-7,-39,10,-36,42r19,0r0,31r-19,0r0,136r-49,0","w":92},"g":{"d":"39,-54v-52,-30,-30,-121,46,-113r73,0r0,31r-31,0v28,34,13,86,-36,93v-24,3,-40,2,-40,12v0,10,15,9,42,10v41,2,64,23,64,50v0,33,-28,54,-82,54v-76,0,-100,-60,-40,-82v-31,-9,-26,-48,4,-55xm56,-102v0,22,6,33,21,33v15,0,21,-11,21,-33v0,-23,-6,-32,-21,-32v-15,0,-21,9,-21,32xm81,14v-24,0,-36,7,-36,21v0,13,11,19,35,19v23,0,35,-7,35,-20v0,-14,-11,-20,-34,-20","w":164},"h":{"d":"18,0r0,-246r49,0r0,100v33,-43,96,-29,96,41r0,105r-49,0r0,-98v3,-47,-36,-41,-47,-8r0,106r-49,0","w":179},"i":{"d":"18,0r0,-167r49,0r0,167r-49,0xm14,-221v0,-15,12,-28,28,-28v16,0,29,12,29,28v0,16,-14,28,-29,28v-15,0,-28,-13,-28,-28","w":85},"j":{"d":"-5,35v20,-7,23,-18,23,-40r0,-162r49,0r0,176v0,43,-19,67,-59,73xm14,-221v0,-15,13,-28,29,-28v16,0,28,12,28,28v0,16,-13,28,-28,28v-15,0,-29,-13,-29,-28","w":84},"k":{"d":"18,0r0,-246r48,0r0,159r46,-80r51,0r-47,81r54,86r-54,0r-50,-82r0,82r-48,0","w":167},"l":{"d":"19,0r0,-246r48,0r0,246r-48,0","w":86},"m":{"d":"18,0r0,-167r47,0r1,21v24,-33,73,-32,89,4v32,-46,97,-37,97,37r0,105r-48,0r0,-98v3,-46,-36,-42,-45,-8r0,106r-47,0r0,-98v3,-46,-36,-42,-46,-8r0,106r-48,0","w":269},"n":{"d":"18,0r0,-167r48,0r1,21v32,-43,95,-28,95,41r0,105r-48,0r0,-98v3,-48,-37,-41,-48,-8r0,106r-48,0","w":179},"o":{"d":"59,-83v0,33,10,50,28,50v18,0,28,-17,28,-50v0,-33,-10,-51,-28,-51v-18,0,-28,18,-28,51xm9,-83v0,-54,30,-87,78,-87v48,0,78,33,78,87v0,54,-30,86,-78,86v-48,0,-78,-32,-78,-86","w":173},"p":{"d":"18,82r0,-249r46,0r2,15v44,-43,105,-3,105,69v0,74,-58,112,-104,69r0,96r-49,0xm67,-120r0,72v25,24,54,7,54,-36v0,-44,-30,-60,-54,-36"},"q":{"d":"114,-11v-50,36,-105,-1,-105,-72v0,-71,60,-111,106,-69r2,-15r45,0r0,249r-48,0r0,-93xm114,-48r0,-69v-23,-26,-54,-12,-54,33v0,44,28,60,54,36"},"r":{"d":"18,0r0,-167r47,0r0,56v18,-54,33,-73,73,-48r-12,45v-39,-25,-57,15,-59,87r0,27r-49,0","w":135},"s":{"d":"14,-11r0,-39v19,11,34,17,50,17v25,0,21,-22,2,-29v-36,-14,-54,-26,-54,-57v-1,-52,69,-64,110,-36r0,35v-20,-12,-39,-17,-52,-17v-12,0,-17,3,-17,11v0,12,12,13,31,22v30,14,44,27,44,53v0,55,-71,67,-114,40","w":140},"t":{"d":"63,-218r8,0r0,51r44,0r0,31r-44,0r0,75v1,30,24,24,45,12r0,38v-38,26,-94,18,-94,-40r0,-85r-22,0r0,-7","w":119},"u":{"d":"113,-21v-32,42,-96,30,-96,-40r0,-106r48,0r0,99v-2,46,37,40,48,8r0,-107r48,0r0,167r-48,0r0,-21","w":179},"v":{"d":"62,3r-66,-170r52,0r28,90v7,-33,19,-60,29,-90r47,0r-64,170r-26,0","w":149},"w":{"d":"55,3r-58,-170r48,0v8,31,19,55,24,90v7,-33,20,-59,29,-90r32,0r29,90v6,-32,17,-60,26,-90r47,0r-60,170r-26,0v-10,-36,-25,-66,-32,-105v-7,39,-23,70,-34,105r-25,0","w":228},"x":{"d":"-4,0r49,-85r-49,-82r55,0r22,41r22,-41r56,0r-50,81r52,86r-55,0r-23,-44r-25,44r-54,0","w":150},"y":{"d":"8,82r43,-113r-55,-136r51,0r30,75r28,-75r51,0r-98,249r-50,0","w":150},"z":{"d":"-1,0r68,-129r-57,0r0,-38r130,0r-68,129r64,0r0,38r-137,0","w":143},"{":{"d":"74,-200v-3,-53,28,-62,81,-60r0,37v-79,-15,2,124,-75,130v45,6,37,47,37,94v0,29,8,36,38,35r0,37v-52,2,-84,-7,-81,-60v2,-45,7,-97,-46,-88r0,-37v49,11,49,-40,46,-88"},"|":{"d":"72,-275r36,0r0,360r-36,0r0,-360"},"}":{"d":"106,13v3,54,-28,62,-81,60r0,-37v80,16,-1,-123,75,-129v-45,-6,-36,-49,-36,-95v0,-29,-9,-36,-39,-35r0,-37v52,-2,85,6,81,60v-3,46,-6,100,47,88r0,37v-52,-8,-50,40,-47,88"},"~":{"d":"31,-112v55,-48,111,-2,172,-2v21,0,42,-9,66,-27r0,39v-23,16,-45,24,-67,24v-66,0,-117,-45,-171,5r0,-39","w":299},"\u00a0":{"w":92}}});
;
jQuery(document).ready(function($) {
	//Home page pillars
	if ($('.pillar-section').length) {
		$('.pillar-section').each(function() {
			//Add click event and pull href from link with .link class
			$(this).click(function() {
				window.location = $(this).find('.link').attr("href");
				return false;
			});
	
			//Add mouse enter and leave events
			$(this).mouseenter(function() {
				$(this).find('.pillar').animate({left: '0', bottom: '-40px'}, 100, "easeOutQuad", function() {
					$(this).find('.swap').addClass("over");
				});
			}).mouseleave(function() {
				$(this).find('.pillar').animate({left: '0', bottom: '-80px'}, 100, "easeInQuad", function() {
					$(this).find('.swap').removeClass("over");
				});
			});
		});
	};
	
	//tabs object
	var tabs = {
		vars : {
			//Make available the tab navigation and content DOM elements
			tabNavigation : $(".tab-navigation ul.tabs li.tab"),
			tabContent    : ($("#block-views-content-tabs-metabolism-content .views-row").length) ? $("#block-views-content-tabs-metabolism-content .views-row") : $("#block-views-content-tabs-technology-content .views-row")
		},
		init : function() {
			//Set states on loading the page
			if ($(tabs.vars.tabNavigation).length & $(tabs.vars.tabContent).length) {

				var hashes = parseInt(window.location.href.slice(window.location.href.indexOf('#') + 1));
				var active;

				function check(num) {
					if (num > $(tabs.vars.tabNavigation).length) {
						return 0;
					} else {
						return num;
					};
				};

				(Boolean(hashes)) ? active = check(hashes) : active = 0;

				//Loop through all tab navigation items and add/remove appropriate classes
				$(tabs.vars.tabNavigation).each(function(i) {
					if (i == active) {
						$(this).addClass("active"); 
						$(this).find(".link").addClass("active");
					} else {
						$(this).removeClass("active");
						$(this).find(".link").removeClass("active");
					}
					
					//Add click event to tab
					tabs.addClick($(this), i);
				});
	
				//Loop through the content panes and set styles to display none for all but the first pane
				$(tabs.vars.tabContent).each(function(i) {
					(i != active) ? $(this).css({ 'display':'none' }) : $(this).css({ 'display':'block' });
				});
			};
		},
		addClick : function(tab, i) {
			//Add click event to $(this)
			$(tab).click(function() {
				//Add toggle function
				tabs.toggle(i);
				//Stop the click from following the link
				return false;
			});
		},
		toggle : function(tab) {
			//Loops through the tab navigation items and adds the active class the clicked nav item and removes from the rest
			$(tabs.vars.tabNavigation).each(function(i) {
				if (i === tab) {
					$(this).addClass("active");
					$(this).find(".link").addClass("active");
				} else {
					$(this).removeClass("active");
					$(this).find(".link").removeClass("active");
				};
			});

			//Loops through the tab content panes and hides all but the active tab
			$(tabs.vars.tabContent).each(function(i) {
				(i != tab) ? $(this).css({ 'display':'none' }) : $(this).css({ 'display':'block' });
			});
		}
	};
	
	var map = {
		init : function() {
			if ($('#map').length) {
				//Generates a random round number up to the terms array length
				var r = Math.round(Math.random() * countries.length);
				//Calls the country info to display based on the random number
				map.toggleDisplayCountryInfo(countries[r]);

				//Assigns a mouse event to each div with the .hot-spot class in the #map div
				$('#map .hot-spot').each(function() {
					$(this).find('.group').css({ 'display' : 'none' });
					map.addMouseEvent($(this));
				});
			};
		},
		addMouseEvent : function(hotSpot) {
			$(hotSpot).mouseenter(function() {
				//Checks if the hot-spot has a child div with a .group class
				if ($(this).find('.group').length) {
					$(this).find('.group').fadeIn('fast');
					
					//Adds a further mouse event to the groups children with a class of .link
					$(this).find('.link').each(function(i) {
						$(this).mouseenter(function(e) {
							e.stopPropagation();
							//Calls the country info to display based on the id attribute
							var obj = map.getCountryDetails($(this).attr('id'));
							map.toggleDisplayCountryInfo(obj);
						});
					});
				} else {
					//Used for hot-spots that do not contain groups.
					//Calls the country info to display based on the id attribute
					var obj = map.getCountryDetails($(this).find('.link').attr('id'));
					map.toggleDisplayCountryInfo(obj);
				};
			}).mouseleave(function() {
				//Add mouse leave to hide the group
				if ($(this).find('.group').length) { 
					$(this).find('.group').fadeOut('fast');
				};
			});
		},
		getCountryDetails : function(tid) {
			//Loops through the terms array and returns the array row object based on a tid match
			var entity;
			for (i=0; i < countries.length; i++) {
				if (Number(tid) == countries[i]['tid']) {
					entity = countries[i];
					break;
				};
			};
			return entity;
		},
		toggleDisplayCountryInfo : function(obj) {
			//Generates the output for the country info display
			var country     = (obj['country'])     ? obj['country'] : "Error [country]";
			var description = (obj['description']) ? obj['description'] : "Error [description]";
			var url         = (obj['url'])         ? obj['url'] : "#";

			var countryInfo = [
				'<h3>', country, '</h3>',
				'<p>', description, '</p>',
				'<a href="', url, '" class="link link-arrow" target="_blank">Visit site</a>'
			].join("");

			if ($('#country-info').length) {
				$('#country-info').css({ 'display':'none' });
				$('#country-info').empty();
				$('#country-info').append(countryInfo);
				$('#country-info').css({ 'display':'block' });
			};
		}
	};

	var countryDropdown = {
		vars : {
			div      : ($('#block-views-countries-country-dropdown').length) ? ('#block-views-countries-country-dropdown') : $('.block-multiblock:has(.view-countries)'),
			heading  : false
		},
		init : function() {
			//Clear the div off the list item. If JS disabled the list item will display instead.
			if ($(countryDropdown.vars.div).length) {
				//Store any H2 block heading
				if($(countryDropdown.vars.div).find('h2').length) {
					countryDropdown.vars.heading = $(countryDropdown.vars.div).find('h2').text();
				}

				$(countryDropdown.vars.div).empty();
	
				//Call the generateDropdown function
				countryDropdown.generateDropdown();
			};
		},
		generateDropdown : function() {
			
			//Sorts the countries array into alphabetical order.
			countries.sort(function(a, b) {
				var countryA = a.country.toLowerCase();
				var countryB = b.country.toLowerCase();
				
				if (countryA < countryB) {
					return -1;
				} else if (countryA > countryB) {
					return 1;
				} else {
					return 0;
				};
			});
			
			//Create select element
			var x = $(document.createElement('select'))
				.addClass('countries-dropdown');
				
			//Add first option for Select one
			$(document.createElement('option'))
				.text('Select one')
				.val('')
				.appendTo($(x));

			//Loop countries array and add country and url text and value
			for (i = 0; i < countries.length; i++) {
				$(document.createElement('option'))
					.text(countries[i]['country'])
					.val(countries[i]['url'])
					.appendTo($(x));
					
			};
			
			var y = $(document.createElement('div'))
				.addClass('country-dropdown')
				.append($(x))
				.hide();
			
			//Append the created select and options to the containing div
			$(countryDropdown.vars.div)
				.append($(y))
				.children($(y))
				.show();

			//Adds H2 heading
			if (countryDropdown.vars.heading) {
				$(countryDropdown.vars.div)
					.find('.country-dropdown')
						.prepend($(document.createElement('h2'))
								.text(countryDropdown.vars.heading)
								.addClass('cufon-me'))
			};

			//Add the onchange event
			countryDropdown.addMouseEvent();
		},
		addMouseEvent : function() {
			$(countryDropdown.vars.div).each(function() {
				$(this).find('select').change(function() {
					$(this).children('option:selected').each(function() {
						if ($(this).val() != '') {
							window.open($(this).val());
						};
					});
				});
			});

		}
	};
	
	//Adds odd/even classes to the contact webform. Not ideal solution!
	if ($('.webform-client-form').length) {
		$('.webform-client-form .form-item').each(function(i) {
			(i % 2) ? $(this).addClass("row-even") : $(this).addClass("row-odd");
		});
	};
	
	countryDropdown.init();
	tabs.init();
	map.init();

	//Ugh... I don't like this but had to crowbar it in. Hopefully get time to refactor!
	if ($('#overlays:has(.view-countries)')) {
		var x = $(document.createElement('div'))
				.addClass('modal')
				.css({ 'display':'none' });
			
		$('#overlays .country-dropdown').wrapAll(x);
		
		$('#overlays .country-dropdown')
			.append($(document.createElement('a'))
						.text('Close')
						.attr('href','#')
						.addClass('link link-arrow')
						.click(function() {
							$('.modal').css({ 'display':'none' });
						}));

		$('#block-menu-menu-legals ul li:eq(3) a').click(function(e) {
			$('.modal').css({ 'display':'block' });
			return false;
		});
	};
});

//Array for map countries and their associated data. Array data is pushed to the array using the maps view in Drupal.
var countries = [];



;

