/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();

/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 */
var Cufon=(function(){var K=function(){return K.replace.apply(null,arguments)};var U=K.DOM={ready:(function(){var Z=false,b={loaded:1,complete:1};var Y=[],a=function(){if(Z){return}Z=true;for(var c;c=Y.shift();c()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",a,false);window.addEventListener("pageshow",a,false)}if(!window.opera&&document.readyState){(function(){b[document.readyState]?a():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");a()}catch(c){setTimeout(arguments.callee,1)}})()}O(window,"load",a);return function(c){if(!arguments.length){a()}else{Z?c():Y.push(c)}}})()};var L=K.CSS={Size:function(Z,Y){this.value=parseFloat(Z);this.unit=String(Z).match(/[a-z%]*$/)[0]||"px";this.convert=function(a){return a/Y*this.value};this.convertFrom=function(a){return a/this.value*Y};this.toString=function(){return this.value+this.unit}},getStyle:function(Z){var Y=document.defaultView;if(Y&&Y.getComputedStyle){return new A(Y.getComputedStyle(Z,null))}if(Z.currentStyle){return new A(Z.currentStyle)}return new A(Z.style)},ready:(function(){var a=false;var Z=[],b=function(){a=true;for(var d;d=Z.shift();d()){}};var Y=Object.prototype.propertyIsEnumerable?F("style"):{length:0};var c=F("link");U.ready(function(){var g=0,f;for(var e=0,d=c.length;f=c[e],e<d;++e){if(!f.disabled&&f.rel.toLowerCase()=="stylesheet"){++g}}if(document.styleSheets.length>=Y.length+g){b()}else{setTimeout(arguments.callee,10)}});return function(d){if(a){d()}else{Z.push(d)}}})(),supports:function(a,Z){var Y=document.createElement("span").style;if(Y[a]===undefined){return false}Y[a]=Z;return Y[a]===Z},textAlign:function(b,a,Y,Z){if(a.get("textAlign")=="right"){if(Y>0){b=" "+b}}else{if(Y<Z-1){b+=" "}}return b},textDecoration:function(d,c){if(!c){c=this.getStyle(d)}var Z={underline:null,overline:null,"line-through":null};for(var Y=d;Y.parentNode&&Y.parentNode.nodeType==1;){var b=true;for(var a in Z){if(Z[a]){continue}if(c.get("textDecoration").indexOf(a)!=-1){Z[a]=c.get("color")}b=false}if(b){break}c=this.getStyle(Y=Y.parentNode)}return Z},textShadow:I(function(c){if(c=="none"){return null}var b=[],d={},Y,Z=0;var a=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(Y=a.exec(c)){if(Y[0]==","){b.push(d);d={},Z=0}else{if(Y[1]){d.color=Y[1]}else{d[["offX","offY","blur"][Z++]]=Y[2]}}}b.push(d);return b}),color:I(function(Z){var Y={};Y.color=Z.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(b,a,c){Y.opacity=parseFloat(c);return"rgb("+a+")"});return Y}),textTransform:function(Z,Y){return Z[{uppercase:"toUpperCase",lowercase:"toLowerCase"}[Y.get("textTransform")]||"toString"]()}};function Q(Z){var Y=this.face=Z.face;this.glyphs=Z.glyphs;this.w=Z.w;this.baseSize=parseInt(Y["units-per-em"],10);this.family=Y["font-family"].toLowerCase();this.weight=Y["font-weight"];this.style=Y["font-style"]||"normal";this.viewBox=(function(){var b=Y.bbox.split(/\s+/);var a={minX:parseInt(b[0],10),minY:parseInt(b[1],10),maxX:parseInt(b[2],10),maxY:parseInt(b[3],10)};a.width=a.maxX-a.minX,a.height=a.maxY-a.minY;a.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return a})();this.ascent=-parseInt(Y.ascent,10);this.descent=-parseInt(Y.descent,10);this.height=-this.ascent+this.descent}function E(){var Z={},Y={oblique:"italic",italic:"oblique"};this.add=function(a){(Z[a.style]||(Z[a.style]={}))[a.weight]=a};this.get=function(e,f){var d=Z[e]||Z[Y[e]]||Z.normal||Z.italic||Z.oblique;if(!d){return null}f={normal:400,bold:700}[f]||parseInt(f,10);if(d[f]){return d[f]}var b={1:1,99:0}[f%100],h=[],c,a;if(b===undefined){b=f>400}if(f==500){f=400}for(var g in d){g=parseInt(g,10);if(!c||g<c){c=g}if(!a||g>a){a=g}h.push(g)}if(f<c){f=c}if(f>a){f=a}h.sort(function(j,i){return(b?(j>f&&i>f)?j<i:j>i:(j<f&&i<f)?j>i:j<i)?-1:1});return d[h[0]]}}function P(){function a(c,d){if(c.contains){return c.contains(d)}return c.compareDocumentPosition(d)&16}function Y(d){var c=d.relatedTarget;if(!c||a(this,c)){return}Z(this)}function b(c){Z(this)}function Z(c){setTimeout(function(){K.replace(c,D.get(c).options,true)},10)}this.attach=function(c){if(c.onmouseenter===undefined){O(c,"mouseover",Y);O(c,"mouseout",Y)}else{O(c,"mouseenter",b);O(c,"mouseleave",b)}}}function X(){var a={},Y=0;function Z(b){return b.cufid||(b.cufid=++Y)}this.get=function(b){var c=Z(b);return a[c]||(a[c]={})}}function A(Y){var a={},Z={};this.get=function(b){return a[b]!=undefined?a[b]:Y[b]};this.getSize=function(c,b){return Z[c]||(Z[c]=new L.Size(this.get(c),b))};this.extend=function(b){for(var c in b){a[c]=b[c]}return this}}function O(Z,Y,a){if(Z.addEventListener){Z.addEventListener(Y,a,false)}else{if(Z.attachEvent){Z.attachEvent("on"+Y,function(){return a.call(Z,window.event)})}}}function R(Z,Y){var a=D.get(Z);if(a.options){return Z}if(Y.hover&&Y.hoverables[Z.nodeName.toLowerCase()]){B.attach(Z)}a.options=Y;return Z}function I(Y){var Z={};return function(a){if(!Z.hasOwnProperty(a)){Z[a]=Y.apply(null,arguments)}return Z[a]}}function C(d,c){if(!c){c=L.getStyle(d)}var Z=c.get("fontFamily").split(/\s*,\s*/),b;for(var a=0,Y=Z.length;a<Y;++a){b=Z[a].replace(/^(["'])(.*?)\1$/,"$2").toLowerCase();if(H[b]){return H[b].get(c.get("fontStyle"),c.get("fontWeight"))}}return null}function F(Y){return document.getElementsByTagName(Y)}function G(){var Y={},b;for(var a=0,Z=arguments.length;a<Z;++a){for(b in arguments[a]){Y[b]=arguments[a][b]}}return Y}function M(b,k,Z,m,c,a){var j=m.separate;if(j=="none"){return W[m.engine].apply(null,arguments)}var h=document.createDocumentFragment(),e;var f=k.split(N[j]),Y=(j=="words");if(Y&&S){if(/^\s/.test(k)){f.unshift("")}if(/\s$/.test(k)){f.push("")}}for(var g=0,d=f.length;g<d;++g){e=W[m.engine](b,Y?L.textAlign(f[g],Z,g,d):f[g],Z,m,c,a,g<d-1);if(e){h.appendChild(e)}}return h}function J(Z,g){var a,Y,d,f;for(var b=R(Z,g).firstChild;b;b=d){d=b.nextSibling;f=false;if(b.nodeType==1){if(!b.firstChild){continue}if(!/cufon/.test(b.className)){arguments.callee(b,g);continue}else{f=true}}if(!Y){Y=L.getStyle(Z).extend(g)}if(!a){a=C(Z,Y)}if(!a){continue}if(f){W[g.engine](a,null,Y,g,b,Z);continue}var e=b.data;if(e===""){continue}var c=M(a,e,Y,g,b,Z);if(c){b.parentNode.replaceChild(c,b)}else{b.parentNode.removeChild(b)}}}var S=" ".split(/\s+/).length==0;var D=new X();var B=new P();var V=[];var W={},H={},T={enableTextDecoration:false,engine:null,hover:false,hoverables:{a:true},printable:true,selector:(window.Sizzle||window.jQuery||(window.dojo&&dojo.query)||(window.$$&&function(Y){return $$(Y)})||(window.$&&function(Y){return $(Y)})||(document.querySelectorAll&&function(Y){return document.querySelectorAll(Y)})||F),separate:"words",textShadow:"none"};var N={words:/\s+/,characters:""};K.now=function(){U.ready();return K};K.refresh=function(){var a=V.splice(0,V.length);for(var Z=0,Y=a.length;Z<Y;++Z){K.replace.apply(null,a[Z])}return K};K.registerEngine=function(Z,Y){if(!Y){return K}W[Z]=Y;return K.set("engine",Z)};K.registerFont=function(a){var Y=new Q(a),Z=Y.family;if(!H[Z]){H[Z]=new E()}H[Z].add(Y);return K.set("fontFamily",Z)};K.replace=function(a,Z,Y){Z=G(T,Z);if(!Z.engine){return K}if(typeof Z.textShadow=="string"){Z.textShadow=L.textShadow(Z.textShadow)}if(!Y){V.push(arguments)}if(a.nodeType||typeof a=="string"){a=[a]}L.ready(function(){for(var c=0,b=a.length;c<b;++c){var d=a[c];if(typeof d=="string"){K.replace(Z.selector(d),Z,true)}else{J(d,Z)}}});return K};K.set=function(Y,Z){T[Y]=Z;return K};return K})();Cufon.registerEngine("canvas",(function(){var B=document.createElement("canvas");if(!B||!B.getContext||!B.getContext.apply){return null}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-canvas{text-indent:0}@media screen,projection{.cufon-canvas{display:inline;display:inline-block;position:relative;vertical-align:middle"+(E?"":";font-size:1px;line-height:1px")+"}.cufon-canvas .cufon-alt{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden}"+(A?".cufon-canvas canvas{position:relative}":".cufon-canvas canvas{position:absolute}")+"}@media print{.cufon-canvas{padding:0 !important}.cufon-canvas canvas{display:none}.cufon-canvas .cufon-alt{display:inline}}"));document.getElementsByTagName("head")[0].appendChild(F);function D(O,H){var M=0,L=0;var G=[],N=/([mrvxe])([^a-z]*)/g,J;generate:for(var I=0;J=N.exec(O);++I){var K=J[2].split(",");switch(J[1]){case"v":G[I]={m:"bezierCurveTo",a:[M+~~K[0],L+~~K[1],M+~~K[2],L+~~K[3],M+=~~K[4],L+=~~K[5]]};break;case"r":G[I]={m:"lineTo",a:[M+=~~K[0],L+=~~K[1]]};break;case"m":G[I]={m:"moveTo",a:[M=~~K[0],L=~~K[1]]};break;case"x":G[I]={m:"closePath"};break;case"e":break generate}H[G[I].m].apply(H,G[I].a)}return G}function C(K,J){for(var I=0,H=K.length;I<H;++I){var G=K[I];J[G.m].apply(J,G.a)}}return function(q,T,k,P,X,r){var I=(T===null);var V=q.viewBox;var J=k.getSize("fontSize",q.baseSize);var h=k.get("letterSpacing");h=(h=="normal")?0:J.convertFrom(parseInt(h,10));var W=0,j=0,f=0,R=0;var U=P.textShadow,d=[];if(U){for(var p=0,m=U.length;p<m;++p){var Z=U[p];var c=J.convertFrom(parseFloat(Z.offX));var b=J.convertFrom(parseFloat(Z.offY));d[p]=[c,b];if(b<W){W=b}if(c>j){j=c}if(b>f){f=b}if(c<R){R=c}}}var u=Cufon.CSS.textTransform(I?X.alt:T,k).split("");var G=0,S=null;for(var p=0,m=u.length;p<m;++p){var Q=q.glyphs[u[p]]||q.missingGlyph;if(!Q){continue}G+=S=Number(Q.w||q.w)+h}if(S===null){return null}j+=(V.width-S);R+=V.minX;var O,K;if(I){O=X;K=X.firstChild}else{O=document.createElement("span");O.className="cufon cufon-canvas";O.alt=T;K=document.createElement("canvas");O.appendChild(K);if(P.printable){var n=document.createElement("span");n.className="cufon-alt";n.appendChild(document.createTextNode(T));O.appendChild(n)}}var v=O.style;var a=K.style;var H=J.convert(V.height-W+f);var t=Math.ceil(H);var e=t/H;K.width=Math.ceil(J.convert(G+j-R)*e);K.height=t;W+=V.minY;a.top=Math.round(J.convert(W-q.ascent))+"px";a.left=Math.round(J.convert(R))+"px";var N=Math.ceil(J.convert(G*e))+"px";if(A){v.width=N;v.height=J.convert(q.height)+"px"}else{v.paddingLeft=N;v.paddingBottom=(J.convert(q.height)-1)+"px"}var s=K.getContext("2d"),Y=t/V.height;s.scale(Y,Y);s.translate(-R,-W);s.lineWidth=q.face["underline-thickness"];s.save();function L(i,g){s.strokeStyle=g;s.beginPath();s.moveTo(0,i);s.lineTo(G,i);s.stroke()}var M=P.enableTextDecoration?Cufon.CSS.textDecoration(r,k):{};if(M.underline){L(-q.face["underline-position"],M.underline)}if(M.overline){L(q.ascent,M.overline)}s.fillStyle=k.get("color");function o(){for(var w=0,g=u.length;w<g;++w){var x=q.glyphs[u[w]]||q.missingGlyph;if(!x){continue}s.beginPath();if(x.d){if(x.code){C(x.code,s)}else{x.code=D("m"+x.d,s)}}s.fill();s.translate(Number(x.w||q.w)+h,0)}}if(U){for(var p=0,m=U.length;p<m;++p){var Z=U[p];s.save();s.fillStyle=Z.color;s.translate.apply(s,d[p]);o();s.restore()}}o();s.restore();if(M["line-through"]){L(-q.descent,M["line-through"])}return O}})());Cufon.registerEngine("vml",(function(){if(!document.namespaces){return}document.write('<!--[if vml]><script type="text/javascript">Cufon.vmlEnabled=true;<\/script><![endif]-->');if(!Cufon.vmlEnabled){return}if(document.namespaces.cvml==null){document.namespaces.add("cvml","urn:schemas-microsoft-com:vml");document.write('<style type="text/css">.cufon-vml-canvas{text-indent:0}@media screen{cvml\\:shape,cvml\\:group,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute}.cufon-vml-canvas{position:absolute;text-align:left}.cufon-vml{display:inline-block;position:relative;vertical-align:middle}.cufon-vml .cufon-alt{position:absolute;left:-10000in;font-size:1px}a .cufon-vml{cursor:pointer}}@media print{.cufon-vml *{display:none}.cufon-vml .cufon-alt{display:inline}}</style>')}function B(C,D){return A(C,/(?:em|ex|%)$/i.test(D)?"1em":D)}function A(F,G){if(/px$/i.test(G)){return parseFloat(G)}var E=F.style.left,D=F.runtimeStyle.left;F.runtimeStyle.left=F.currentStyle.left;F.style.left=G;var C=F.style.pixelLeft;F.style.left=E;F.runtimeStyle.left=D;return C}return function(r,U,m,R,Y,s,h){var F=(U===null);if(F){U=Y.alt}var W=r.viewBox;var G=m.computedFontSize||(m.computedFontSize=new Cufon.CSS.Size(B(s,m.get("fontSize"))+"px",r.baseSize));var g=m.computedLSpacing;if(g==undefined){g=m.get("letterSpacing");m.computedLSpacing=g=(g=="normal")?0:~~G.convertFrom(A(s,g))}var O,H;if(F){O=Y;H=Y.firstChild}else{O=document.createElement("span");O.className="cufon cufon-vml";O.alt=U;H=document.createElement("span");H.className="cufon-vml-canvas";O.appendChild(H);if(R.printable){var p=document.createElement("span");p.className="cufon-alt";p.appendChild(document.createTextNode(U));O.appendChild(p)}if(!h){O.appendChild(document.createElement("cvml:group"))}}var x=O.style;var b=H.style;var D=G.convert(W.height),u=Math.ceil(D);var f=u/D;var e=W.minX,d=W.minY;b.height=u;b.top=Math.round(G.convert(d-r.ascent));b.left=Math.round(G.convert(e));x.height=G.convert(r.height)+"px";var K=R.enableTextDecoration?Cufon.CSS.textDecoration(s,m):{};var T=m.get("color");var v=Cufon.CSS.textTransform(U,m).split("");var C=0,c=0,L=null;var S,M,V=R.textShadow;for(var q=0,o=0,n=v.length;q<n;++q){S=r.glyphs[v[q]]||r.missingGlyph;if(S){C+=L=~~(S.w||r.w)+g}}if(L===null){return null}var N=-e+C+(W.width-L);var w=G.convert(N*f),j=Math.round(w);var a=N+","+W.height,E;var X="r"+a+"nsnf";for(q=0;q<n;++q){S=r.glyphs[v[q]]||r.missingGlyph;if(!S){continue}if(F){M=H.childNodes[o];if(M.firstChild){M.removeChild(M.firstChild)}}else{M=document.createElement("cvml:shape");H.appendChild(M)}M.stroked="f";M.coordsize=a;M.coordorigin=E=(e-c)+","+d;M.path=(S.d?"m"+S.d+"xe":"")+"m"+E+X;M.fillcolor=T;var t=M.style;t.width=j;t.height=u;if(V){var J=V[0],I=V[1];var Q=Cufon.CSS.color(J.color),P;var Z=document.createElement("cvml:shadow");Z.on="t";Z.color=Q.color;Z.offset=J.offX+","+J.offY;if(I){P=Cufon.CSS.color(I.color);Z.type="double";Z.color2=P.color;Z.offset2=I.offX+","+I.offY}Z.opacity=Q.opacity||(P&&P.opacity)||1;M.appendChild(Z)}c+=~~(S.w||r.w)+g;++o}x.width=Math.max(Math.ceil(G.convert(C*f)),0);return O}})());

Cufon.registerFont({"w":204,"face":{"font-family":"FuturTDem","font-weight":600,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 7 3 0 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"5","bbox":"-10 -276 351 84","underline-thickness":"42.12","underline-position":"-37.44","stemh":"40","stemv":"44","unicode-range":"U+0020-U+007E"},"glyphs":{" ":{"w":90},"!":{"d":"45,-52v16,0,28,13,28,28v0,16,-12,29,-28,29v-15,0,-28,-13,-28,-29v0,-15,13,-28,28,-28xm23,-69r0,-171r45,0r0,171r-45,0","w":90},"\"":{"d":"21,-141r-7,-99r46,0r-7,99r-32,0xm88,-141r-6,-99r45,0r-7,99r-32,0","w":141},"#":{"d":"192,-175r0,34r-37,0r-5,37r34,0r0,34r-38,0r-9,74r-34,-5r9,-69r-39,0r-9,74r-34,-5r9,-70r-35,0r0,-33r39,0r5,-37r-35,0r0,-34r39,0r8,-69r34,5r-8,64r38,0r9,-69r34,5r-9,64r34,0xm120,-141r-38,0r-5,37r39,0","w":196},"$":{"d":"117,-274r0,35v24,2,37,9,55,27r-24,30v-17,-26,-65,-27,-69,5v0,14,7,20,39,33v91,23,76,125,-1,143r0,37r-23,0r0,-35v-34,-2,-56,-15,-77,-44r27,-28v16,23,32,32,54,32v20,0,35,-14,35,-32v8,-28,-72,-44,-79,-57v-40,-34,-15,-109,40,-111r0,-35r23,0"},"%":{"d":"72,-243v35,0,61,24,61,57v0,32,-26,57,-61,57v-35,0,-61,-24,-61,-57v0,-33,26,-57,61,-57xm72,-217v-17,0,-31,14,-31,31v0,17,14,31,31,31v17,0,31,-14,31,-31v0,-17,-14,-31,-31,-31xm201,-248r19,11r-143,247r-19,-11xm207,-110v36,0,61,24,61,57v0,32,-26,57,-61,57v-35,0,-60,-25,-60,-57v0,-33,25,-57,60,-57xm207,-84v-17,0,-31,14,-31,31v0,17,14,31,31,31v17,0,31,-14,31,-31v0,-17,-13,-31,-31,-31","w":279},"&":{"d":"19,-64v0,-42,20,-51,57,-72v-47,-42,-21,-110,41,-110v38,0,66,25,66,58v0,23,-13,41,-44,59r40,45v13,-12,20,-21,29,-33r28,27v-8,11,-11,14,-32,35r49,55r-58,0r-24,-27v-51,53,-152,38,-152,-37xm145,-57r-45,-52v-25,17,-34,27,-34,40v5,39,51,43,79,12xm117,-154v20,-13,27,-22,27,-34v0,-15,-10,-24,-25,-24v-30,9,-32,30,-2,58","w":255},"(":{"d":"60,61v-49,-88,-46,-251,0,-337r35,19v-39,76,-38,224,0,299","w":114},")":{"d":"55,-276v49,89,47,250,0,337r-34,-19v39,-78,37,-223,0,-299","w":114},"*":{"d":"93,-224r-8,-46r33,0r-7,46r41,-21r10,32r-45,6r32,33r-26,20r-21,-42r-21,42r-27,-20r33,-32r-46,-7r11,-32"},"+":{"d":"22,-134r65,0r0,-67r29,0r0,67r67,0r0,29r-67,0r0,65r-29,0r0,-65r-65,0r0,-29"},",":{"d":"40,-50r40,5r-51,95r-28,-3","w":90},"-":{"d":"0,-101r81,0r0,37r-81,0r0,-37","w":81},".":{"d":"45,-52v16,0,28,13,28,28v0,16,-12,29,-28,29v-15,0,-28,-13,-28,-29v0,-15,13,-28,28,-28","w":90},"\/":{"d":"125,-276r31,12r-137,325r-29,-12","w":167},"0":{"d":"102,-246v55,0,93,51,93,126v0,74,-38,126,-93,126v-55,0,-93,-52,-93,-126v0,-74,38,-126,93,-126xm102,-205v-27,0,-46,35,-46,85v0,49,19,85,46,85v27,0,46,-36,46,-85v0,-50,-19,-85,-46,-85"},"1":{"d":"82,-199r-35,0r0,-41r82,0r0,240r-47,0r0,-199"},"2":{"d":"94,-41r87,0r0,41r-175,0v32,-40,127,-130,126,-168v0,-21,-16,-37,-37,-37v-21,0,-34,15,-35,40r-50,0v3,-50,36,-81,85,-81v48,0,84,33,84,77v4,43,-57,96,-85,128"},"3":{"d":"87,-111r0,-33v25,2,40,-11,40,-34v0,-17,-14,-31,-31,-31v-20,0,-31,10,-33,32r-45,0v7,-45,35,-69,79,-69v70,-7,100,85,47,117v68,31,33,145,-50,135v-47,0,-84,-33,-85,-75r46,0v3,21,18,34,41,34v21,0,38,-16,38,-38v-1,-25,-19,-41,-47,-38"},"4":{"d":"168,-80r29,0r0,38r-29,0r0,42r-43,0r0,-42r-117,0r0,-21r118,-181r42,0r0,164xm125,-80r0,-95r-62,95r62,0"},"5":{"d":"169,-199r-79,0r-9,37v58,-8,98,29,99,82v5,85,-120,113,-171,55r16,-41v28,44,105,41,108,-15v0,-48,-66,-63,-103,-33r28,-126r111,0r0,41"},"6":{"d":"114,-250r33,25r-57,73v54,-22,103,20,103,74v0,50,-37,84,-91,84v-91,1,-117,-96,-61,-158xm102,-121v-25,0,-44,21,-44,45v0,25,19,45,44,45v25,0,44,-20,44,-45v0,-25,-19,-45,-44,-45"},"7":{"d":"128,-199r-111,0r0,-41r185,0r-146,247r-38,-22"},"8":{"d":"62,-126v-64,-28,-32,-120,41,-120v73,0,105,93,39,120v76,26,43,132,-39,132v-84,0,-117,-104,-41,-132xm103,-212v-19,0,-34,15,-34,34v0,18,15,33,34,33v18,0,33,-14,33,-33v0,-19,-15,-34,-33,-34xm102,-106v-20,0,-36,16,-36,37v0,21,16,38,36,38v20,0,37,-17,37,-38v0,-21,-17,-37,-37,-37"},"9":{"d":"90,10r-33,-25r56,-73v-53,22,-102,-19,-102,-74v0,-49,38,-84,92,-84v90,-1,116,97,60,158xm102,-209v-25,0,-44,20,-44,44v0,25,19,45,44,45v25,0,44,-19,44,-45v0,-25,-19,-44,-44,-44"},":":{"d":"45,-52v16,0,28,13,28,28v0,16,-12,29,-28,29v-15,0,-28,-13,-28,-29v0,-15,13,-28,28,-28xm45,-161v16,0,28,12,28,28v0,16,-12,28,-28,28v-15,0,-28,-12,-28,-28v0,-16,13,-28,28,-28","w":90},";":{"d":"38,-50r40,5r-51,95r-28,-3xm57,-161v15,0,28,13,28,28v0,16,-13,29,-28,29v-16,0,-29,-13,-29,-29v0,-15,13,-28,29,-28","w":90},"<":{"d":"168,-219r0,46r-107,53r107,53r0,46r-156,-80r0,-39","w":180},"=":{"d":"22,-162r161,0r0,29r-161,0r0,-29xm22,-107r161,0r0,29r-161,0r0,-29"},">":{"d":"12,-21r0,-46r106,-53r-106,-53r0,-46r156,79r0,40","w":180},"?":{"d":"58,-80r0,-64v29,8,57,-10,57,-34v0,-16,-12,-28,-27,-28v-17,1,-28,12,-26,30r-46,0v-6,-39,31,-69,74,-69v39,0,71,30,71,67v0,34,-21,58,-59,67r0,31r-44,0xm81,-52v15,0,28,13,28,28v0,16,-13,29,-28,29v-16,0,-29,-13,-29,-29v0,-15,13,-28,29,-28","w":176},"@":{"d":"44,-120v-4,90,109,124,181,77r11,26v-95,55,-227,5,-223,-103v0,-71,56,-126,130,-126v68,0,119,47,119,110v0,47,-29,88,-64,88v-12,0,-23,-7,-27,-19v-37,42,-104,10,-101,-48v-5,-58,66,-92,105,-56r1,-12r30,0r-11,98v0,7,2,10,6,10v18,0,34,-30,34,-61v0,-49,-39,-84,-93,-84v-55,0,-98,44,-98,100xm137,-154v-19,0,-33,17,-33,41v0,20,12,35,27,35v40,3,59,-77,6,-76","w":275},"A":{"d":"170,-51r-98,0r-22,51r-50,0r104,-245r36,0r100,245r-50,0xm155,-89r-33,-86r-35,86r68,0","w":241},"B":{"d":"28,-240v70,-2,142,-4,139,63v0,24,-7,38,-26,49v32,7,49,28,49,60v0,42,-31,68,-81,68r-81,0r0,-240xm75,-140v29,2,50,-5,49,-31v1,-26,-20,-33,-49,-31r0,62xm75,-38v35,2,69,-4,66,-32v3,-30,-28,-36,-66,-34r0,66","w":205},"C":{"d":"201,-231r0,55v-48,-56,-139,-17,-137,56v-4,74,90,112,137,56r0,55v-88,43,-188,-19,-186,-111v-2,-90,100,-157,186,-111","w":216},"D":{"d":"225,-120v-1,66,-54,124,-129,120r-68,0r0,-240v111,-11,197,24,197,120xm177,-120v-2,-52,-38,-85,-102,-79r0,158v65,5,100,-26,102,-79","w":240},"E":{"d":"161,-199r-86,0r0,53r82,0r0,41r-82,0r0,64r86,0r0,41r-133,0r0,-240r133,0r0,41","w":178},"F":{"d":"155,-199r-80,0r0,53r75,0r0,41r-75,0r0,105r-47,0r0,-240r127,0r0,41","w":168},"G":{"d":"149,-129r109,0v3,82,-42,134,-117,134v-72,0,-126,-52,-126,-124v0,-73,54,-127,128,-127v45,0,80,20,103,57r-41,22v-36,-67,-141,-33,-141,48v0,85,129,115,141,31r-56,0r0,-41","w":274},"H":{"d":"75,-147r101,0r0,-93r47,0r0,240r-47,0r0,-107r-101,0r0,107r-47,0r0,-240r47,0r0,93","w":250},"I":{"d":"75,-240r0,240r-47,0r0,-240r47,0","w":101},"J":{"d":"18,-51v20,27,48,13,48,-35r0,-154r47,0v-7,93,30,249,-67,246v-21,0,-39,-7,-56,-23","w":140},"K":{"d":"75,-139r88,-101r59,0r-102,111r107,129r-61,0r-86,-108r-5,6r0,102r-47,0r0,-240r47,0r0,101","w":229},"L":{"d":"75,-240r0,199r73,0r0,41r-120,0r0,-240r47,0","w":153},"M":{"d":"15,0r44,-244r32,0r66,157r68,-157r32,0r40,244r-47,0r-21,-148r-66,151r-13,0r-64,-151r-24,148r-47,0","w":312},"N":{"d":"28,0r0,-246r32,0r146,168r0,-162r47,0r0,245r-32,0r-146,-167r0,162r-47,0","w":280},"O":{"d":"144,-246v72,0,128,56,128,126v0,70,-56,125,-128,125v-73,0,-129,-54,-129,-125v0,-70,57,-126,129,-126xm144,-203v-44,0,-80,37,-80,83v0,45,36,83,80,83v44,0,80,-38,80,-83v0,-46,-36,-83,-80,-83","w":287},"P":{"d":"98,-240v57,-3,85,29,88,75v1,60,-44,82,-111,76r0,89r-47,0r0,-240r70,0xm75,-130v35,2,63,-4,63,-35v0,-29,-27,-36,-63,-34r0,69","w":192},"Q":{"d":"279,5r-48,4r-19,-22v-85,51,-201,-11,-197,-107v0,-71,57,-126,130,-126v108,-4,172,135,95,212xm180,-96r27,27v44,-49,2,-138,-62,-134v-46,0,-81,36,-81,82v-2,61,61,104,114,74r-47,-46","w":286},"R":{"d":"127,-101r76,101r-58,0r-64,-96r-6,0r0,96r-47,0r0,-240v76,-4,159,0,154,71v0,37,-19,61,-55,68xm75,-130v35,2,60,-9,59,-37v1,-28,-25,-37,-59,-35r0,72","w":207},"S":{"d":"170,-217r-25,32v-18,-29,-70,-25,-73,7v0,13,9,20,37,30v53,19,69,37,69,75v3,88,-130,107,-166,33r30,-29v14,39,85,46,88,-2v-4,-26,-16,-28,-47,-38v-44,-16,-59,-33,-59,-66v-1,-72,100,-90,146,-42","w":191},"T":{"d":"103,0r-47,0r0,-199r-53,0r0,-41r154,0r0,41r-54,0r0,199","w":159},"U":{"d":"124,5v-58,-2,-99,-33,-96,-98r0,-147r47,0r0,137v-3,48,15,61,49,66v34,-4,52,-20,50,-66r0,-137r47,0r0,147v2,64,-39,96,-97,98","w":248},"V":{"d":"51,-240r65,161r64,-161r51,0r-104,246r-25,0r-102,-246r51,0","w":231},"W":{"d":"50,-240r54,163r58,-165r26,0r56,165r57,-163r50,0r-91,245r-32,0r-54,-157r-56,157r-33,0r-85,-245r50,0","w":351},"X":{"d":"87,-127r-71,-113r56,0r42,74r45,-74r56,0r-74,113r82,127r-55,0r-54,-88r-56,88r-55,0","w":225},"Y":{"d":"81,-110r-83,-130r56,0r51,83r51,-83r56,0r-84,130r0,110r-47,0r0,-110","w":209},"Z":{"d":"85,-41r111,0r0,41r-188,0r117,-199r-99,0r0,-41r176,0","w":210},"[":{"d":"73,-231r0,250r33,0r0,39r-75,0r0,-328r75,0r0,39r-33,0","w":124},"\\":{"d":"42,-276r136,325r-30,12r-136,-325","w":167},"]":{"d":"52,19r0,-250r-33,0r0,-39r75,0r0,328r-75,0r0,-39r33,0","w":124},"^":{"d":"51,-120r-49,0r57,-122r62,0r58,122r-49,0r-40,-84","w":180},"_":{"d":"0,17r180,0r0,42r-180,0r0,-42","w":180},"a":{"d":"140,-156r44,0r0,156r-44,0r0,-20v-42,55,-133,12,-127,-58v-4,-70,84,-113,127,-58r0,-20xm102,-122v-25,0,-44,20,-44,44v0,24,19,44,44,44v24,0,43,-20,43,-44v0,-24,-19,-44,-43,-44"},"b":{"d":"64,-270r0,134v44,-54,132,-13,128,58v5,70,-85,113,-128,58r0,20r-43,0r0,-270r43,0xm103,-122v-24,0,-43,20,-43,44v0,24,20,44,43,44v25,0,44,-20,44,-44v0,-24,-19,-44,-44,-44"},"c":{"d":"138,-152r0,44v-29,-29,-81,-10,-80,30v-1,41,51,58,80,31r0,42v-57,31,-127,-12,-125,-72v-2,-62,66,-103,125,-75","w":150},"d":{"d":"140,-270r44,0r0,270r-44,0r0,-20v-42,55,-133,12,-127,-58v-4,-70,84,-113,127,-58r0,-134xm102,-122v-25,0,-44,20,-44,44v0,24,19,44,44,44v24,0,43,-20,43,-44v0,-24,-19,-44,-43,-44"},"e":{"d":"174,-71r-117,0v-2,46,57,56,75,21r41,6v-13,32,-40,49,-76,49v-51,0,-84,-32,-84,-83v0,-50,32,-83,81,-83v52,0,82,34,80,90xm59,-99r73,0v-5,-42,-69,-40,-73,0","w":186},"f":{"d":"22,-206v-3,-50,39,-79,84,-63r0,40v-25,-12,-40,-8,-40,30r0,43r40,0r0,38r-40,0r0,118r-44,0r0,-118r-17,0r0,-38r17,0r0,-50","w":105},"g":{"d":"183,-6v3,63,-33,87,-83,90v-45,0,-79,-27,-83,-66r47,0v10,43,81,35,76,-15r0,-24v-43,54,-127,18,-127,-56v0,-71,85,-114,127,-59r0,-20r43,0r0,150xm102,-122v-25,0,-44,20,-44,44v0,24,19,44,44,44v24,0,43,-20,43,-44v0,-24,-19,-44,-43,-44"},"h":{"d":"64,-136v31,-45,115,-28,107,38r0,98r-44,0v-5,-44,18,-125,-29,-124v-49,-3,-31,78,-34,124r-43,0r0,-270r43,0r0,134","w":191},"i":{"d":"64,-156r0,156r-44,0r0,-156r44,0xm42,-248v15,0,26,11,26,26v0,15,-11,27,-26,27v-14,0,-26,-12,-26,-27v0,-14,12,-26,26,-26","w":83},"j":{"d":"64,-156r0,239r-44,0r0,-239r44,0xm42,-248v15,0,26,11,26,26v0,15,-11,27,-26,27v-14,0,-26,-12,-26,-27v0,-14,12,-26,26,-26","w":83},"k":{"d":"64,-270r0,171r59,-57r59,0r-73,69r79,87r-61,0r-58,-67v-11,13,-2,46,-5,67r-43,0r0,-270r43,0","w":186},"l":{"d":"64,-270r0,270r-43,0r0,-270r43,0","w":85},"m":{"d":"94,-124v-46,1,-26,78,-30,124r-43,0r0,-156r43,0r0,18v27,-33,76,-31,97,6v25,-47,110,-37,103,31r0,101r-44,0v-5,-42,17,-124,-26,-124v-44,-1,-27,80,-30,124r-43,0v-5,-45,17,-120,-27,-124","w":284},"n":{"d":"64,-136v31,-45,114,-28,107,37r0,99r-44,0v-5,-44,18,-125,-29,-124v-50,-2,-30,77,-34,124r-43,0r0,-156r43,0r0,20","w":191},"o":{"d":"102,-161v52,0,89,34,89,83v0,49,-37,83,-89,83v-53,0,-89,-34,-89,-83v0,-49,36,-83,89,-83xm102,-122v-25,0,-44,20,-44,44v0,24,19,44,44,44v24,0,44,-20,44,-44v0,-24,-20,-44,-44,-44","w":203},"p":{"d":"64,83r-43,0r0,-239r43,0r0,20v42,-54,133,-12,128,58v4,71,-84,112,-128,58r0,103xm103,-122v-24,0,-43,20,-43,44v0,24,20,44,43,44v25,0,44,-20,44,-44v0,-24,-19,-44,-44,-44"},"q":{"d":"140,83r0,-103v-43,54,-131,13,-127,-58v-5,-71,85,-112,127,-58r0,-20r44,0r0,239r-44,0xm102,-122v-25,0,-44,20,-44,44v0,24,19,44,44,44v24,0,43,-20,43,-44v0,-24,-19,-44,-43,-44"},"r":{"d":"21,-156r43,0r0,24v15,-25,36,-35,65,-25r-6,41v-30,-16,-61,0,-59,41r0,75r-43,0r0,-156","w":129},"s":{"d":"128,-145r-22,25v-13,-12,-39,-15,-43,3v0,8,4,13,25,18v79,20,52,105,-18,104v-22,0,-44,-9,-59,-26r23,-27v12,13,24,19,37,19v11,0,20,-7,20,-17v-6,-28,-77,-22,-70,-66v-2,-51,72,-64,107,-33","w":145},"t":{"d":"65,-118r0,118r-44,0r0,-118r-17,0r0,-38r17,0r0,-53r44,0r0,53r31,0r0,38r-31,0","w":97},"u":{"d":"64,-156v5,46,-18,125,32,124v50,1,27,-78,32,-124r44,0r0,96v0,42,-27,65,-76,65v-48,0,-75,-23,-75,-65r0,-96r43,0","w":192},"v":{"d":"49,-156r41,88r41,-88r49,0r-80,159r-20,0r-80,-159r49,0","w":180},"w":{"d":"49,-156r41,90r43,-94r19,0r42,96r42,-92r48,0r-80,159r-20,0r-42,-94r-42,94r-20,0r-80,-159r49,0","w":285},"x":{"d":"75,-85r-61,-71r55,0r33,40r33,-40r55,0r-61,71r73,85r-56,0r-44,-54r-45,54r-57,0","w":202},"y":{"d":"74,-24r-74,-132r51,0r47,89r44,-89r50,0r-126,239r-49,0","w":192},"z":{"d":"82,-38r82,0r0,38r-159,0r88,-119r-75,0r0,-38r152,0","w":174},"{":{"d":"98,-235v-62,-6,5,107,-49,130v33,15,19,59,22,100v0,26,6,30,27,29r0,36v-43,4,-68,-3,-68,-51v0,-37,15,-90,-20,-98r0,-36v57,-16,-32,-172,88,-147r0,37","w":113},"|":{"d":"67,-240r46,0r0,300r-46,0r0,-300","w":180},"}":{"d":"16,24v61,6,-4,-107,48,-130v-32,-15,-18,-60,-21,-101v1,-25,-6,-29,-27,-28r0,-37v42,-5,68,4,68,51v0,37,-15,91,20,99r0,35v-56,16,32,173,-88,147r0,-36","w":113},"~":{"d":"150,-206v-3,4,-60,-19,-65,-18v-13,0,-18,4,-27,22r-26,-17v14,-31,29,-53,55,-50v9,-3,61,21,69,18v11,0,17,-4,25,-18r27,15v-13,29,-26,45,-58,48","w":240},"'":{"d":"21,-141r-7,-99r46,0r-7,99r-32,0","w":74},"`":{"d":"33,-232r32,-20r43,54r-21,15","w":180},"\u00a0":{"w":90}}});

/*
 * Scripts
 *
 */
jQuery(function($) {
 
	var Engine = {
		utils : {
			links : function(){
				$('a[rel*=external]').live('click',function(e){
					e.preventDefault();
					window.open($(this).attr('href'));						  
				});
			},
			mails : function(){
				$('a[href^=mailto:]').each(function(){
					var mail = $(this).attr('href').replace('mailto:','');
					var replaced = mail.replace('/at/','@');
					$(this).attr('href','mailto:'+replaced);
					if($(this).text() == mail) {
						$(this).text(replaced);
					}
				});
			}
		}
	};
	
	Engine.enhancements = {};
	
	Engine.enhancements.homeslider = function(){
		var container = $('#header-home');
		
		if (container.length === 0) {
			return;
		}
		
		var data = [
			"cross<br />consumer<br />marketing",
			"the marketing<br />agency for the<br />new marketplace",
			"driving the<br />insights of<br />deep motivation",
			"uncovering<br />brand and<br />consumer truths",
			"making<br />difference<br />matter",
			"authentic<br />cross-cultural<br />big ideas"
		];
		
		container.html('');
		var offset = container.width();
		$.each(data,function(index, item){
			var slogan = $('<div class="slogan">'+this+'</div>').css('left', index*offset);
			container.append(slogan);
		});
		

		container.wrapInner('<div class="slogans-wrapper"/>');
		var wrapper = container.find('.slogans-wrapper').css('width',data.length * offset);
		
		Cufon.replace('h1.masthead', { fontFamily: 'FuturTDem' });

		window.setInterval(function(){
			wrapper.stop().animate({'left' : -offset+'px'}, 500, function(){
				wrapper.append(wrapper.find('.slogan').eq(0));
				
				wrapper.find('.slogan').each(function(index, item){
					$(item).css('left', index*offset);						  
				});

				wrapper.css('left',0);
			});
		}, 4500);
	};	

	Engine.enhancements.lastfm = function(){
		var container = $('.lastfm');
		
		if (container.length === 0) {
			return;
		}
		
		var lastSong = $('<p>Loading...</p>')
		container.find('h2').after('<p>Currently listening to:</p>')
		container.find('p').eq(0).after(lastSong);

		lastSong.load(TEMPLATE_URL+'/lastfmproxy.php');
	};

	Engine.enhancements.portfolio = function(){
		var list = $('.portfolio .media ul');
		
		if (list.length === 0) {
			return;
		}
		
		var offset = $(list).width();
		var items = list.find('li');
		if (items.length < 2) {
			return;	
		}
		
		list.wrap('<div id="portfolio-wrapper" />').css('width',offset*items.length);

		$.each(items,function(index){
			$(this).css('left',offset*index);
			$(this).css('display','block');			
		});
		
		var current = 0;
		
		var nav = $('<li class="media-nav" />');
		var counter = $('<span class="count">'+parseInt(current+1,10)+'</span> of <span class="total">'+items.length+'</span>');
		
		var previous = $('<a href="#" class="prev"><img src="'+TEMPLATE_URL+'/images/prev.png" alt="Previous item" width="18" height="18" /></a>');
		previous.click(function(e){
			e.preventDefault();
			if (current === 0) {
				return;
			}
			Engine.media.video.stopPlayback();
			current = current - 1;
			list.stop().animate({ 'left' : -current*offset });
			$('.media-nav .count').html(current+1);			
		});
		var next = $('<a href="./" class="next"><img src="'+TEMPLATE_URL+'/images/next.png" alt="Next item" width="18" height="18" /></a>');
		next.click(function(e){
			e.preventDefault();
			if (current === items.length - 1) {
				return;
			}
			
			Engine.media.video.stopPlayback();
			current = current + 1;
			
			list.stop().animate({ 'left' : -current*offset });
			$('.media-nav .count').html(current+1);
		});
		
		nav.append(previous, document.createTextNode(' '), counter, document.createTextNode(' '), next);

		$('.portfolio .info .nav').prepend(nav);
	};

	Engine.media = {};
	
	Engine.media.video = function(){

		var flashvars = {
			height : 398,
			width : 702,
			overstretch : 'true',
			usefullscreen : 'false',
			showdigits : 'false',
			autostart : 'false',
			skin : TEMPLATE_URL+"/vendor/swf_player/simple.swf"
		};
		
		var params = {
			allowfullscreen : "false",
			allowscriptaccess : "always",
			wmode : "opaque",
			allownetworking : "all"				
		};
		
		var attributes = {
			'class' : 'video'
		};

		$('.portfolio li.video a').each(function(){
			var lflv = flashvars;
			lflv.file = $(this).attr('href');
			swfobject.embedSWF(TEMPLATE_URL+"/vendor/swf_player/player.swf", $(this).attr('id'), "702", "387", "9.0.0",TEMPLATE_URL+"/vendor/swf_player/expressInstall.swf", lflv, params, attributes);
		});
	};
	
	Engine.media.video.stopPlayback = function(){
		$('object.video').each(function(){
			var player = document.getElementById($(this).attr('id'));
			player.sendEvent('PLAY','false');
		});
	};
	
	Engine.enhancements.homeslider();
	Engine.enhancements.lastfm();
	Engine.enhancements.portfolio();
	
	Engine.utils.links();
	Engine.utils.mails();
	
	Engine.media.video();
});

Cufon.replace('h1.masthead', { fontFamily: 'FuturTDem' });

