﻿//MooTools More, <http://mootools.net/more>. Copyright (c) 2006-2008 Valerio Proietti, <http://mad4milk.net>, MIT Style License.
Fx.Slide=new Class({Extends:Fx,options:{mode:'vertical'},initialize:function(B,A){this.addEvent("complete",function(){this.open=(this.wrapper["offset"+this.layout.capitalize()]!=0); if(this.open&&Browser.Engine.webkit419){this.element.dispose().inject(this.wrapper);}},true);this.element=this.subject=$(B);this.parent(A);var C=this.element.retrieve("wrapper"); this.wrapper=C||new Element("div",{styles:$extend(this.element.getStyles("margin","position"),{overflow:"hidden"})}).wraps(this.element);this.element.store("wrapper",this.wrapper).setStyle("margin",0); this.now=[];this.open=true;},vertical:function(){this.margin="margin-top";this.layout="height";this.offset=this.element.offsetHeight;},horizontal:function(){this.margin="margin-left"; this.layout="width";this.offset=this.element.offsetWidth;},set:function(A){this.element.setStyle(this.margin,A[0]);this.wrapper.setStyle(this.layout,A[1]); return this;},compute:function(E,D,C){var B=[];var A=2;A.times(function(F){B[F]=Fx.compute(E[F],D[F],C);});return B;},start:function(B,E){if(!this.check(arguments.callee,B,E)){return this; }this[E||this.options.mode]();var D=this.element.getStyle(this.margin).toInt();var C=this.wrapper.getStyle(this.layout).toInt();var A=[[D,C],[0,this.offset]]; var G=[[D,C],[-this.offset,0]];var F;switch(B){case"in":F=A;break;case"out":F=G;break;case"toggle":F=(this.wrapper["offset"+this.layout.capitalize()]==0)?A:G; }return this.parent(F[0],F[1]);},slideIn:function(A){return this.start("in",A);},slideOut:function(A){return this.start("out",A);},hide:function(A){this[A||this.options.mode](); this.open=false;return this.set([-this.offset,0]);},show:function(A){this[A||this.options.mode]();this.open=true;return this.set([0,this.offset]);},toggle:function(A){return this.start("toggle",A); }});Element.Properties.slide={set:function(B){var A=this.retrieve("slide");if(A){A.cancel();}return this.eliminate("slide").store("slide:options",$extend({link:"cancel"},B)); },get:function(A){if(A||!this.retrieve("slide")){if(A||!this.retrieve("slide:options")){this.set("slide",A);}this.store("slide",new Fx.Slide(this,this.retrieve("slide:options"))); }return this.retrieve("slide");}};Element.implement({slide:function(D,E){D=D||"toggle";var B=this.get("slide"),A;switch(D){case"hide":B.hide(E);break;case"show":B.show(E); break;case"toggle":var C=this.retrieve("slide:flag",B.open);B[(C)?"slideOut":"slideIn"](E);this.store("slide:flag",!C);A=true;break;default:B.start(D,E); }if(!A){this.eliminate("slide:flag");}return this;}});

// BEGIN //
window.addEvent('domready', function() {
$$('#menu li.current_page_item','#menu li.current_page_ancestor').removeClass('page_item'); //menu
$$('#menu li.current-cat').removeClass('cat-item'); //menu2
$$('#menu a.active_category').getParent().removeClass('cat-item'); //menu3: ta bort klass från parent..
$$('#menu a','#main .editpost a').each(function(el) {
	if(el.get('title'))
	{ el.set('title','');}
});
$$('.rtable tr:odd','.ktable tr:odd').addClass('odd');

$$('#menu li.page_item a','#menu li.cat-item a').each(function(el) {  
	var fx = new Fx.Morph(el,{ duration:500, link:'cancel', transition: Fx.Transitions.Expo.easeOut});
	el.setOpacity(0.01);
	el.addEvents({
		'mouseover': function() { fx.start({ 'opacity': 1 }); },
		'focus': function() { fx.start({ 'opacity': 1 }); },
		'mouseout': function() { fx.start.delay(300, fx, { 'opacity': 0.01 }); },
		'blur': function() { fx.start({ 'opacity': 0.01 }); }
	});
});

$$('.overlay').each(function(el) {  
	var fx = new Fx.Morph(el,{ duration:500, link:'cancel', transition: Fx.Transitions.Expo.easeOut});
	el.setStyle('background-position', '0% -170%');
	el.addEvents({
		'mouseover': function() { fx.start({ 'background-position':'0% -15%'}); },
		'mouseout': function() { fx.start({ 'background-position':'0% -100%'}); }
	});
}); 


// IE ERROR FIX /////////////////////////////////////////////////////////////////
window.onerror = new Function("return true;");
// END DOMREADY /////////////////////////////////////////////////////
});


// SLIMBOX ////////////////////////////////////////////////////////////
var Slimbox;(function(){var G=0,F,L,B,S,T,O,E,M,J=new Image(),K=new Image(),X,a,P,H,W,Z,I,Y,C;window.addEvent("domready",function(){$(document.body).adopt($$([X=new Element("div",{id:"lbOverlay"}).addEvent("click",N),a=new Element("div",{id:"lbCenter"}),Z=new Element("div",{id:"lbBottomContainer"})]).setStyle("display","none"));P=new Element("div",{id:"lbImage"}).injectInside(a).adopt(H=new Element("a",{id:"lbPrevLink",href:"#"}).addEvent("click",D),W=new Element("a",{id:"lbNextLink",href:"#"}).addEvent("click",R));I=new Element("div",{id:"lbBottom"}).injectInside(Z).adopt(new Element("a",{id:"lbCloseLink",href:"#"}).addEvent("click",N),Y=new Element("div",{id:"lbCaption"}),C=new Element("div",{id:"lbNumber"}),new Element("div",{styles:{clear:"both"}}));E={overlay:new Fx.Tween(X,{property:"opacity",duration:300}).set(0),image:new Fx.Tween(P,{property:"opacity",duration:300,onComplete:A}),bottom:new Fx.Tween(I,{property:"margin-top",duration:300})}});Slimbox={open:function(e,d,c){F=$extend({loop:false,overlayOpacity:0.8,resizeDuration:200,resizeTransition:false,initialWidth:150,initialHeight:150,animateCaption:true,showCounter:true,counterText:"Bild {x} av {y}"},c||{});if(typeof e=="string"){e=[[e,d]];d=0}L=e;F.loop=F.loop&&(L.length>1);b();Q(true);O=window.getScrollTop()+(window.getHeight()/15);E.resize=new Fx.Morph(a,$extend({duration:F.resizeDuration,onComplete:A},F.resizeTransition?{transition:F.resizeTransition}:{}));a.setStyles({top:O,width:F.initialWidth,height:F.initialHeight,marginLeft:-(F.initialWidth/2),display:""});E.overlay.start(F.overlayOpacity);G=1;return U(d)}};Element.implement({slimbox:function(c,d){$$(this).slimbox(c,d);return this}});Elements.implement({slimbox:function(c,f,e){f=f||function(g){return[g.href,g.title]};e=e||function(){return true};var d=this;d.removeEvents("click").addEvent("click",function(){var g=d.filter(e,this);return Slimbox.open(g.map(f),g.indexOf(this),c)});return d}});function b(){X.setStyles({top:window.getScrollTop(),height:window.getHeight()})}function Q(c){["object",window.ie?"select":"embed"].forEach(function(e){Array.forEach(document.getElementsByTagName(e),function(f){if(c){f._slimbox=f.style.visibility}f.style.visibility=c?"hidden":f._slimbox})});X.style.display=c?"":"none";var d=c?"addEvent":"removeEvent";window[d]("scroll",b)[d]("resize",b);document[d]("keydown",V)}function V(c){switch(c.code){case 27:case 88:case 67:N();break;case 37:case 80:D();break;case 39:case 78:R()}return false}function D(){return U(S)}function R(){return U(T)}function U(c){if((G==1)&&(c>=0)){G=2;B=c;S=((B||!F.loop)?B:L.length)-1;T=B+1;if(T==L.length){T=F.loop?0:-1}$$(H,W,P,Z).setStyle("display","none");E.bottom.cancel().set(0);E.image.set(0);a.className="lbLoading";M=new Image();M.onload=A;M.src=L[c][0]}return false}function A(){switch(G++){case 2:a.className="";P.setStyles({backgroundImage:"url("+L[B][0]+")",display:""});$$(P,I).setStyle("width",M.width);$$(P,H,W).setStyle("height",M.height);Y.set("html",L[B][1]||"");C.set("html",(F.showCounter&&(L.length>1))?F.counterText.replace(/{x}/,B+1).replace(/{y}/,L.length):"");if(S>=0){J.src=L[S][0]}if(T>=0){K.src=L[T][0]}if(a.clientHeight!=P.offsetHeight){E.resize.start({height:P.offsetHeight});break}G++;case 3:if(a.clientWidth!=P.offsetWidth){E.resize.start({width:P.offsetWidth,marginLeft:-P.offsetWidth/2});break}G++;case 4:Z.setStyles({top:O+a.clientHeight,marginLeft:a.style.marginLeft,visibility:"hidden",display:""});E.image.start(1);break;case 5:if(S>=0){H.style.display=""}if(T>=0){W.style.display=""}if(F.animateCaption){E.bottom.set(-I.offsetHeight).start(0)}Z.style.visibility="";G=1}}function N(){if(G){G=0;M.onload=$empty;for(var c in E){E[c].cancel()}$$(a,Z).setStyle("display","none");E.overlay.chain(Q).start(0)}return false}})();

Slimbox.scanPage = function() {
	var links = $$("#main a").filter(function(el) {
		return el.rel && el.rel.test(/^lightbox/i);
	});
	$$(links).slimbox({ resizeTransition: Fx.Transitions.Sine.easeOut }, null, function(el) {
		return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
	});
};
window.addEvent("domready", Slimbox.scanPage);

// Other stuff //
var Cufon=(function(){var L=function(){return L.replace.apply(null,arguments)};var W=L.DOM={ready:(function(){var b=false,d={loaded:1,complete:1};var a=[],c=function(){if(b){return}b=true;for(var e;e=a.shift();e()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",c,false);window.addEventListener("pageshow",c,false)}if(!window.opera&&document.readyState){(function(){d[document.readyState]?c():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");c()}catch(f){setTimeout(arguments.callee,1)}})()}P(window,"load",c);return function(e){if(!arguments.length){c()}else{b?e():a.push(e)}}})()};var M=L.CSS={Size:function(b,a){this.value=parseFloat(b);this.unit=String(b).match(/[a-z%]*$/)[0]||"px";this.convert=function(c){return c/a*this.value};this.convertFrom=function(c){return c/this.value*a};this.toString=function(){return this.value+this.unit}},color:I(function(b){var a={};a.color=b.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(d,c,e){a.opacity=parseFloat(e);return"rgb("+c+")"});return a}),getStyle:function(b){var a=document.defaultView;if(a&&a.getComputedStyle){return new A(a.getComputedStyle(b,null))}if(b.currentStyle){return new A(b.currentStyle)}return new A(b.style)},gradient:I(function(e){var f={id:e,type:e.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},b=e.substr(e.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var d=0,a=b.length,c;d<a;++d){c=b[d].split("=",2).reverse();f.stops.push([c[1]||d/(a-1),c[0]])}return f}),quotedList:I(function(d){var c=[],b=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,a;while(a=b.exec(d)){c.push(a[3]||a[1])}return c}),recognizesMedia:I(function(d){var c=document.createElement("style"),b,a;c.type="text/css";c.media=d;b=F("head")[0];b.insertBefore(c,b.firstChild);a=!!(c.sheet||c.styleSheet);b.removeChild(c);return a}),supports:function(c,b){var a=document.createElement("span").style;if(a[c]===undefined){return false}a[c]=b;return a[c]===b},textAlign:function(d,c,a,b){if(c.get("textAlign")=="right"){if(a>0){d=" "+d}}else{if(a<b-1){d+=" "}}return d},textDecoration:function(f,e){if(!e){e=this.getStyle(f)}var b={underline:null,overline:null,"line-through":null};for(var a=f;a.parentNode&&a.parentNode.nodeType==1;){var d=true;for(var c in b){if(!J(b,c)||b[c]){continue}if(e.get("textDecoration").indexOf(c)!=-1){b[c]=e.get("color")}d=false}if(d){break}e=this.getStyle(a=a.parentNode)}return b},textShadow:I(function(e){if(e=="none"){return null}var d=[],f={},a,b=0;var c=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(a=c.exec(e)){if(a[0]==","){d.push(f);f={},b=0}else{if(a[1]){f.color=a[1]}else{f[["offX","offY","blur"][b++]]=a[2]}}}d.push(f);return d}),textTransform:function(b,a){return b[{uppercase:"toUpperCase",lowercase:"toLowerCase"}[a.get("textTransform")]||"toString"]()},whiteSpace:(function(){var a={inline:1,"inline-block":1,"run-in":1};return function(d,b,c){if(a[b.get("display")]){return d}if(!c.previousSibling){d=d.replace(/^\s+/,"")}if(!c.nextSibling){d=d.replace(/\s+$/,"")}return d}})()};M.ready=(function(){var c=!M.recognizesMedia("all"),b=false;var a=[],e=function(){c=true;for(var h;h=a.shift();h()){}};var f=F("link"),g={stylesheet:1};function d(){var j,h,k;for(h=0;k=f[h];++h){if(k.disabled||!g[k.rel.toLowerCase()]||!M.recognizesMedia(k.media||"screen")){continue}j=k.sheet||k.styleSheet;if(!j||j.disabled){return false}}return true}W.ready(function(){if(!b){b=M.getStyle(document.body).isUsable()}if(c||(b&&d())){e()}else{setTimeout(arguments.callee,10)}});return function(h){if(c){h()}else{a.push(h)}}})();function R(b){var a=this.face=b.face;this.glyphs=b.glyphs;this.w=b.w;this.baseSize=parseInt(a["units-per-em"],10);this.family=a["font-family"].toLowerCase();this.weight=a["font-weight"];this.style=a["font-style"]||"normal";this.viewBox=(function(){var d=a.bbox.split(/\s+/);var c={minX:parseInt(d[0],10),minY:parseInt(d[1],10),maxX:parseInt(d[2],10),maxY:parseInt(d[3],10)};c.width=c.maxX-c.minX,c.height=c.maxY-c.minY;c.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return c})();this.ascent=-parseInt(a.ascent,10);this.descent=-parseInt(a.descent,10);this.height=-this.ascent+this.descent}function E(){var b={},a={oblique:"italic",italic:"oblique"};this.add=function(c){(b[c.style]||(b[c.style]={}))[c.weight]=c};this.get=function(g,h){var f=b[g]||b[a[g]]||b.normal||b.italic||b.oblique;if(!f){return null}h={normal:400,bold:700}[h]||parseInt(h,10);if(f[h]){return f[h]}var d={1:1,99:0}[h%100],j=[],e,c;if(d===undefined){d=h>400}if(h==500){h=400}for(var i in f){if(!J(f,i)){continue}i=parseInt(i,10);if(!e||i<e){e=i}if(!c||i>c){c=i}j.push(i)}if(h<e){h=e}if(h>c){h=c}j.sort(function(l,k){return(d?(l>h&&k>h)?l<k:l>k:(l<h&&k<h)?l>k:l<k)?-1:1});return f[j[0]]}}function Q(){function c(e,f){if(e.contains){return e.contains(f)}return e.compareDocumentPosition(f)&16}function a(g){var f=g.relatedTarget;if(!f||c(this,f)){return}b(this)}function d(f){b(this)}function b(e){setTimeout(function(){L.replace(e,D.get(e).options,true)},10)}this.attach=function(e){if(e.onmouseenter===undefined){P(e,"mouseover",a);P(e,"mouseout",a)}else{P(e,"mouseenter",d);P(e,"mouseleave",d)}}}function T(){var b=[],c={};function a(g){var d=[],f;for(var e=0;f=g[e];++e){d[e]=b[c[f]]}return d}this.add=function(e,d){c[e]=b.push(d)-1};this.repeat=function(){var d=arguments.length?a(arguments):b,e;for(var f=0;e=d[f++];){L.replace(e[0],e[1],true)}}}function Z(){var c={},a=0;function b(d){return d.cufid||(d.cufid=++a)}this.get=function(d){var e=b(d);return c[e]||(c[e]={})}}function A(a){var c={},b={};this.extend=function(d){for(var e in d){if(J(d,e)){c[e]=d[e]}}return this};this.get=function(d){return c[d]!=undefined?c[d]:a[d]};this.getSize=function(e,d){return b[e]||(b[e]=new M.Size(this.get(e),d))};this.isUsable=function(){return !!a}}function P(b,a,c){if(b.addEventListener){b.addEventListener(a,c,false)}else{if(b.attachEvent){b.attachEvent("on"+a,function(){return c.call(b,window.event)})}}}function U(b,a){var c=D.get(b);if(c.options){return b}if(a.hover&&a.hoverables[b.nodeName.toLowerCase()]){B.attach(b)}c.options=a;return b}function I(a){var b={};return function(c){if(!J(b,c)){b[c]=a.apply(null,arguments)}return b[c]}}function C(f,e){if(!e){e=M.getStyle(f)}var b=M.quotedList(e.get("fontFamily").toLowerCase()),d;for(var c=0,a=b.length;c<a;++c){d=b[c];if(H[d]){return H[d].get(e.get("fontStyle"),e.get("fontWeight"))}}return null}function F(a){return document.getElementsByTagName(a)}function J(b,a){return b.hasOwnProperty(a)}function G(){var a={},c,e;for(var d=0,b=arguments.length;c=arguments[d],d<b;++d){for(e in c){if(J(c,e)){a[e]=c[e]}}}return a}function N(d,n,b,o,e,c){var m=o.separate;if(m=="none"){return Y[o.engine].apply(null,arguments)}var k=document.createDocumentFragment(),g;var h=n.split(O[m]),a=(m=="words");if(a&&S){if(/^\s/.test(n)){h.unshift("")}if(/\s$/.test(n)){h.push("")}}for(var j=0,f=h.length;j<f;++j){g=Y[o.engine](d,a?M.textAlign(h[j],b,j,f):h[j],b,o,e,c,j<f-1);if(g){k.appendChild(g)}}return k}function K(b,j){var c,a,d,g,f,i;for(d=U(b,j).firstChild;d;d=f){g=d.nodeType;f=d.nextSibling;i=false;if(g==1){if(!d.firstChild){continue}if(!/cufon/.test(d.className)){arguments.callee(d,j);continue}else{i=true}}else{if(g!=3){continue}}if(!a){a=M.getStyle(b).extend(j)}if(!c){c=C(b,a)}if(!c){continue}if(i){Y[j.engine](c,null,a,j,d,b);continue}var h=M.whiteSpace(d.data,a,d);if(h===""){continue}var e=N(c,h,a,j,d,b);if(e){d.parentNode.replaceChild(e,d)}else{d.parentNode.removeChild(d)}}}var S=" ".split(/\s+/).length==0;var D=new Z();var B=new Q();var X=new T();var Y={},H={},V={enableTextDecoration:false,engine:null,hover:false,hoverables:{a:true},printable:true,selector:(window.Sizzle||(window.jQuery&&function(a){return jQuery(a)})||(window.dojo&&dojo.query)||(window.$$&&function(a){return $$(a)})||(window.$&&function(a){return $(a)})||(document.querySelectorAll&&function(a){return document.querySelectorAll(a)})||F),separate:"words",textShadow:"none"};var O={words:/[^\S\u00a0]+/,characters:""};L.now=function(){W.ready();return L};L.refresh=function(){X.repeat.apply(X,arguments);return L};L.registerEngine=function(b,a){if(!a){return L}Y[b]=a;return L.set("engine",b)};L.registerFont=function(c){var a=new R(c),b=a.family;if(!H[b]){H[b]=new E()}H[b].add(a);return L.set("fontFamily",'"'+b+'"')};L.replace=function(c,b,a){b=G(V,b);if(!b.engine){return L}if(typeof b.textShadow=="string"){b.textShadow=M.textShadow(b.textShadow)}if(typeof b.color=="string"&&/^-/.test(b.color)){b.textGradient=M.gradient(b.color)}if(!a){X.add(c,arguments)}if(c.nodeType||typeof c=="string"){c=[c]}M.ready(function(){for(var e=0,d=c.length;e<d;++e){var f=c[e];if(typeof f=="string"){L.replace(b.selector(f),b,true)}else{K(f,b)}}});return L};L.set=function(a,b){V[a]=b;return L};return L})();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-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;}.cufon-canvas canvas{display:none;}.cufon-canvas .cufon-alt{display:inline;}}").replace(/;/g,"!important;")));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(AD,Z,u,V,d,AE){var I=(Z===null);if(I){Z=d.alt}var b=AD.viewBox;var K=u.getSize("fontSize",AD.baseSize);var s=u.get("letterSpacing");s=(s=="normal")?0:K.convertFrom(parseInt(s,10));var c=0,t=0,r=0,X=0;var a=V.textShadow,p=[];if(a){for(var AC=a.length;AC--;){var h=a[AC];var o=K.convertFrom(parseFloat(h.offX));var n=K.convertFrom(parseFloat(h.offY));p[AC]=[o,n];if(n<c){c=n}if(o>t){t=o}if(n>r){r=n}if(o<X){X=o}}}var AH=Cufon.CSS.textTransform(Z,u).split(""),T;var J=AD.glyphs,W,M,w;var G=0,P,f=[];for(var AC=0,AA=0,v=AH.length;AC<v;++AC){W=J[T=AH[AC]]||AD.missingGlyph;if(!W){continue}if(M){G-=w=M[T]||0;f[AA-1]-=w}G+=P=f[AA++]=~~(W.w||AD.w)+s;M=W.k}if(P===undefined){return null}t+=b.width-P;X+=b.minX;var U,L;if(I){U=d;L=d.firstChild}else{U=document.createElement("span");U.className="cufon cufon-canvas";U.alt=Z;L=document.createElement("canvas");U.appendChild(L);if(V.printable){var z=document.createElement("span");z.className="cufon-alt";z.appendChild(document.createTextNode(Z));U.appendChild(z)}}var AI=U.style;var m=L.style;var H=K.convert(b.height);var AG=Math.ceil(H);var q=AG/H;L.width=Math.ceil(K.convert(G*q+t-X));L.height=Math.ceil(K.convert(b.height-c+r));c+=b.minY;m.top=Math.round(K.convert(c-AD.ascent))+"px";m.left=Math.round(K.convert(X))+"px";var S=Math.ceil(K.convert(G*q))+"px";if(A){AI.width=S;AI.height=K.convert(AD.height)+"px"}else{AI.paddingLeft=S;AI.paddingBottom=(K.convert(AD.height)-1)+"px"}var AF=L.getContext("2d"),e=H/b.height;AF.scale(e,e*q);AF.translate(-X,-c);AF.lineWidth=AD.face["underline-thickness"];AF.save();function N(i,g){AF.strokeStyle=g;AF.beginPath();AF.moveTo(0,i);AF.lineTo(G,i);AF.stroke()}var O=V.enableTextDecoration?Cufon.CSS.textDecoration(AE,u):{};if(O.underline){N(-AD.face["underline-position"],O.underline)}if(O.overline){N(AD.ascent,O.overline)}function AB(){AF.scale(q,1);for(var x=0,k=0,g=AH.length;x<g;++x){var y=J[AH[x]]||AD.missingGlyph;if(!y){continue}if(y.d){AF.beginPath();if(y.code){C(y.code,AF)}else{y.code=D("m"+y.d,AF)}AF.fill()}AF.translate(f[k++],0)}AF.restore()}if(a){for(var AC=a.length;AC--;){var h=a[AC];AF.save();AF.fillStyle=h.color;AF.translate.apply(AF,p[AC]);AB()}}var R=V.textGradient;if(R){var Y=R.stops,Q=AF.createLinearGradient(0,b.minY,0,b.maxY);for(var AC=0,v=Y.length;AC<v;++AC){Q.addColorStop.apply(Q,Y[AC])}AF.fillStyle=Q}else{AF.fillStyle=u.get("color")}AB();if(O["line-through"]){N(-AD.descent,O["line-through"])}return U}})());Cufon.registerEngine("vml",(function(){if(!document.namespaces){return}if(document.namespaces.cvml==null){document.namespaces.add("cvml","urn:schemas-microsoft-com:vml")}var B=document.createElement("cvml:shape");B.style.behavior="url(#default#VML)";if(!B.coordsize){return}B=null;document.write(('<style type="text/css">.cufon-vml-canvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:fill,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>').replace(/;/g,"!important;"));function C(F,G){return A(F,/(?:em|ex|%)$/i.test(G)?"1em":G)}function A(I,J){if(/px$/i.test(J)){return parseFloat(J)}var H=I.style.left,G=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;I.style.left=J;var F=I.style.pixelLeft;I.style.left=H;I.runtimeStyle.left=G;return F}var E={};function D(K){var L=K.id;if(!E[L]){var I=K.stops,J=document.createElement("cvml:fill"),F=[];J.type="gradient";J.angle=180;J.focus="0";J.method="sigma";J.color=I[0][1];for(var H=1,G=I.length-1;H<G;++H){F.push(I[H][0]*100+"% "+I[H][1])}J.colors=F.join(",");J.color2=I[G][1];E[L]=J}return E[L]}return function(AB,b,v,Y,f,AC,t){var I=(b===null);if(I){b=f.alt}var d=AB.viewBox;var K=v.computedFontSize||(v.computedFontSize=new Cufon.CSS.Size(C(AC,v.get("fontSize"))+"px",AB.baseSize));var s=v.computedLSpacing;if(s==undefined){s=v.get("letterSpacing");v.computedLSpacing=s=(s=="normal")?0:~~K.convertFrom(A(AC,s))}var V,L;if(I){V=f;L=f.firstChild}else{V=document.createElement("span");V.className="cufon cufon-vml";V.alt=b;L=document.createElement("span");L.className="cufon-vml-canvas";V.appendChild(L);if(Y.printable){var y=document.createElement("span");y.className="cufon-alt";y.appendChild(document.createTextNode(b));V.appendChild(y)}if(!t){V.appendChild(document.createElement("cvml:shape"))}}var AH=V.style;var n=L.style;var G=K.convert(d.height),AE=Math.ceil(G);var r=AE/G;var q=d.minX,p=d.minY;n.height=AE;n.top=Math.round(K.convert(p-AB.ascent));n.left=Math.round(K.convert(q));AH.height=K.convert(AB.height)+"px";var P=Y.enableTextDecoration?Cufon.CSS.textDecoration(AC,v):{};var a=v.get("color");var AG=Cufon.CSS.textTransform(b,v).split(""),U;var J=AB.glyphs,Z,M,x;var F=0,g=[],o=0,Q;var S,c=Y.textShadow;for(var AA=0,z=0,w=AG.length;AA<w;++AA){Z=J[U=AG[AA]]||AB.missingGlyph;if(!Z){continue}if(M){F-=x=M[U]||0;g[z-1]-=x}F+=Q=g[z++]=~~(Z.w||AB.w)+s;M=Z.k}if(Q===undefined){return null}var T=-q+F+(d.width-Q);var AF=K.convert(T*r),u=Math.round(AF);var m=T+","+d.height,H;var e="r"+m+"ns";var R=Y.textGradient&&D(Y.textGradient);for(AA=0,z=0;AA<w;++AA){Z=J[AG[AA]]||AB.missingGlyph;if(!Z){continue}if(I){S=L.childNodes[z];while(S.firstChild){S.removeChild(S.firstChild)}}else{S=document.createElement("cvml:shape");L.appendChild(S)}S.stroked="f";S.coordsize=m;S.coordorigin=H=(q-o)+","+p;S.path=(Z.d?"m"+Z.d+"xe":"")+"m"+H+e;S.fillcolor=a;if(R){S.appendChild(R.cloneNode(false))}var AD=S.style;AD.width=u;AD.height=AE;if(c){var O=c[0],N=c[1];var X=Cufon.CSS.color(O.color),W;var h=document.createElement("cvml:shadow");h.on="t";h.color=X.color;h.offset=O.offX+","+O.offY;if(N){W=Cufon.CSS.color(N.color);h.type="double";h.color2=W.color;h.offset2=N.offX+","+N.offY}h.opacity=X.opacity||(W&&W.opacity)||1;S.appendChild(h)}o+=g[z++]}AH.width=Math.max(Math.ceil(K.convert(F*r)),0);return V}})());
Cufon.registerFont({"w":221,"face":{"font-family":"Futura Std","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 11 5 2 2 2 4 2 3 3","ascent":"297","descent":"-63","x-height":"5","bbox":"-24 -362 388 95","underline-thickness":"18","underline-position":"-18","stemh":"27","stemv":"29","unicode-range":"U+0020-U+00F6"},"glyphs":{" ":{"w":110},"!":{"d":"61,-36v11,0,20,9,20,20v0,11,-9,21,-20,21v-11,0,-20,-10,-20,-21v0,-11,9,-20,20,-20xm46,-55r0,-216r30,0r0,216r-30,0","w":121},"\"":{"d":"37,-271r34,0r-7,118r-21,0xm94,-271r34,0r-7,118r-21,0","w":164},"#":{"d":"85,-271r28,0r-13,73r44,0r13,-73r28,0r-12,73r33,0r0,28r-38,0r-10,62r36,0r0,28r-41,0r-15,80r-27,0r14,-80r-44,0r-15,80r-27,0r14,-80r-37,0r0,-28r41,0r11,-62r-39,0r0,-28r43,0xm96,-170r-11,62r45,0r10,-62r-44,0"},"$":{"d":"128,-124r0,97v23,-8,37,-28,37,-52v0,-23,-18,-36,-37,-45xm104,-167r0,-79v-19,4,-33,21,-33,41v0,20,18,31,33,38xm104,-25r0,-110v-32,-13,-63,-31,-63,-71v0,-37,28,-63,63,-68r0,-37r24,0r0,37v25,3,46,19,57,41r-24,16v-7,-13,-18,-25,-33,-28r0,89v36,15,67,33,67,76v0,40,-28,74,-67,82r0,39r-24,0r0,-37v-38,-2,-71,-32,-77,-70r29,-8v3,25,23,47,48,49"},"%":{"d":"72,-253v-20,0,-37,16,-37,36v0,20,17,36,37,36v20,0,37,-16,37,-36v0,-20,-17,-36,-37,-36xm215,-276r14,9r-157,272r-15,-10xm215,-91v-20,0,-37,16,-37,37v0,19,17,36,37,36v20,0,38,-17,38,-36v0,-21,-18,-37,-38,-37xm72,-276v33,0,60,26,60,59v0,33,-27,59,-60,59v-33,0,-60,-25,-60,-59v0,-33,27,-59,60,-59xm215,-114v33,0,61,26,61,60v0,33,-28,59,-61,59v-32,0,-60,-26,-60,-59v0,-34,27,-60,60,-60","w":286},"&":{"d":"109,-177v15,-13,36,-23,36,-46v0,-16,-14,-28,-29,-28v-44,2,-28,59,-7,74xm209,0r-29,-38v-24,21,-53,43,-87,43v-41,0,-79,-31,-79,-74v0,-47,36,-69,70,-92v-12,-17,-27,-35,-27,-58v0,-34,25,-57,59,-57v31,0,58,21,58,53v0,33,-25,50,-48,68r57,73r31,-36r22,18r-35,41r46,59r-38,0xm102,-139v-23,17,-58,34,-58,67v0,26,22,49,47,49v28,0,52,-21,71,-38","w":250},"(":{"d":"66,-284r26,13v-40,108,-39,237,0,345r-26,12v-46,-114,-45,-255,0,-370","w":103},")":{"d":"12,-271r25,-13v46,115,45,256,0,370r-25,-12v38,-108,38,-237,0,-345","w":103},"*":{"d":"95,-221r-2,-50r27,0r-2,50r48,-18r8,26r-49,14r32,40r-22,16r-28,-43r-29,43r-21,-16r31,-40r-49,-14r9,-26","w":213},"+":{"d":"97,-179r28,0r0,73r73,0r0,28r-73,0r0,73r-28,0r0,-73r-73,0r0,-28r73,0r0,-73"},",":{"d":"54,-40r27,10r-41,92r-19,-8","w":110},"-":{"d":"1,-100r74,0r0,27r-74,0r0,-27","w":74},".":{"d":"55,-36v12,0,21,9,21,20v0,11,-9,21,-21,21v-11,0,-20,-10,-20,-21v0,-11,9,-20,20,-20","w":110},"\/":{"d":"175,-297r24,11r-169,343r-24,-11","w":205},"0":{"d":"111,-276v69,0,97,85,97,141v0,67,-35,140,-97,140v-62,0,-97,-73,-97,-140v0,-56,28,-141,97,-141xm111,-248v-51,0,-68,76,-67,114v1,38,17,111,67,111v50,0,66,-73,67,-111v1,-38,-16,-114,-67,-114"},"1":{"d":"102,-243r-45,0r16,-28r59,0r0,271r-30,0r0,-243"},"2":{"d":"76,-28r114,0r0,28r-175,0r127,-150v34,-33,16,-98,-36,-98v-33,0,-54,24,-55,56r-30,0v1,-48,36,-84,84,-84v69,0,111,83,65,137"},"3":{"d":"98,-129r0,-28v28,-1,53,-9,53,-44v0,-28,-19,-47,-47,-47v-27,0,-42,18,-45,44r-30,0v4,-44,31,-72,75,-72v75,0,105,101,43,133v70,34,35,148,-46,148v-44,0,-80,-30,-80,-76r29,0v1,28,25,48,52,48v30,0,53,-25,53,-55v0,-34,-24,-52,-57,-51"},"4":{"d":"171,-72r34,0r0,28r-34,0r0,44r-30,0r0,-44r-139,0r169,-243r0,215xm141,-72r-1,-123r-85,123r86,0"},"5":{"d":"188,-243r-86,0r-18,58v62,-11,106,35,106,93v0,99,-142,132,-182,48r24,-17v26,61,128,42,128,-32v0,-61,-75,-85,-119,-48r39,-130r108,0r0,28"},"6":{"d":"91,-175v56,-15,112,28,112,86v0,52,-42,94,-94,94v-80,0,-114,-95,-68,-158r90,-123r22,17xm109,-23v36,0,64,-29,64,-64v0,-36,-29,-63,-64,-63v-35,0,-63,27,-63,63v0,35,28,64,63,64"},"7":{"d":"167,-243r-149,0r0,-28r201,0r-183,276r-23,-14"},"8":{"d":"111,-128v-30,0,-53,24,-53,52v0,29,23,53,53,53v29,0,52,-24,52,-53v0,-28,-23,-52,-52,-52xm111,-276v72,0,104,101,43,135v71,31,39,146,-43,146v-81,0,-115,-115,-43,-146v-60,-34,-31,-135,43,-135xm111,-248v-26,0,-47,21,-47,47v0,26,21,47,47,47v26,0,47,-21,47,-47v0,-26,-21,-47,-47,-47"},"9":{"d":"88,5r-22,-16v19,-29,46,-58,61,-87v-59,18,-112,-29,-111,-86v0,-51,43,-92,94,-92v80,0,114,95,68,158xm110,-248v-35,0,-64,28,-64,63v0,36,29,63,64,63v35,0,63,-27,63,-63v0,-35,-28,-63,-63,-63"},":":{"d":"55,-36v12,0,21,9,21,20v0,11,-9,21,-21,21v-11,0,-20,-10,-20,-21v0,-11,9,-20,20,-20xm55,-174v12,0,21,9,21,20v0,11,-9,20,-21,20v-11,0,-20,-9,-20,-20v0,-11,9,-20,20,-20","w":110},";":{"d":"55,-40r27,10r-41,92r-19,-8xm64,-174v12,0,21,9,21,20v0,11,-9,20,-21,20v-11,0,-20,-9,-20,-20v0,-11,9,-20,20,-20","w":110},"<":{"d":"198,-179r0,30r-132,57r132,56r0,31r-174,-75r0,-25"},"=":{"d":"24,-134r174,0r0,28r-174,0r0,-28xm24,-78r174,0r0,28r-174,0r0,-28"},">":{"d":"24,-149r0,-30r174,74r0,25r-174,75r0,-31r132,-56"},"?":{"d":"117,-118r29,0v1,34,-24,62,-59,62v-33,0,-58,-25,-58,-58v0,-33,22,-47,49,-56v23,-7,46,-11,46,-41v0,-22,-16,-37,-37,-37v-28,0,-43,26,-33,53r-30,0v-11,-48,22,-81,65,-81v57,0,85,74,45,113v-22,22,-76,12,-76,51v0,16,14,28,30,28v20,0,29,-16,29,-34xm87,-36v11,0,20,9,20,20v0,11,-9,21,-20,21v-11,0,-20,-10,-20,-21v0,-11,9,-20,20,-20","w":175},"@":{"d":"144,-183v-53,-2,-73,100,-11,102v57,3,67,-103,11,-102xm275,-163v0,54,-36,109,-77,107v-10,-1,-18,-8,-20,-22v-33,42,-109,18,-109,-44v0,-65,78,-119,121,-60r5,-22r26,0r-18,92v-3,12,-8,31,5,31v16,0,40,-35,41,-69v4,-63,-41,-100,-100,-100v-64,0,-110,49,-110,114v0,96,109,143,185,98r25,19v-25,13,-53,24,-96,24v-78,0,-140,-60,-140,-141v0,-80,61,-140,137,-140v64,0,125,50,125,113","w":288},"A":{"d":"184,-77r-116,0r-33,77r-33,0r125,-284r122,284r-33,0xm172,-105r-45,-109r-47,109r92,0","w":251},"B":{"d":"58,-126r0,98v49,1,99,3,99,-50v0,-51,-52,-48,-99,-48xm27,0r0,-271v71,-3,135,1,136,73v0,22,-9,41,-27,53v32,8,52,37,52,69v0,77,-81,80,-161,76xm58,-243r0,91v40,0,74,0,74,-46v1,-45,-32,-45,-74,-45","w":204},"C":{"d":"234,-249r0,37v-21,-22,-51,-36,-82,-36v-61,0,-110,53,-110,112v0,60,49,113,110,113v31,0,61,-15,82,-36r0,37v-88,68,-222,-4,-222,-113v0,-108,134,-184,222,-114","w":258},"D":{"d":"229,-135v0,77,-70,144,-151,135r-51,0r0,-271r51,0v82,-8,151,57,151,136xm199,-136v1,-70,-60,-118,-141,-107r0,215v81,10,141,-38,141,-108","w":244},"E":{"d":"27,0r0,-271r141,0r0,28r-110,0r0,80r107,0r0,28r-107,0r0,107r110,0r0,28r-141,0","w":192},"F":{"d":"151,-243r-93,0r0,80r90,0r0,28r-90,0r0,135r-31,0r0,-271r124,0r0,28","w":172},"G":{"d":"42,-135v0,60,52,111,108,112v48,0,97,-35,97,-85r-80,0r0,-28r113,0v8,79,-58,141,-129,141v-76,0,-139,-64,-139,-140v0,-78,63,-141,141,-141v48,0,86,21,115,59r-22,20v-23,-32,-53,-51,-93,-51v-62,0,-111,52,-111,113","w":295},"H":{"d":"59,-161r139,0r0,-110r30,0r0,271r-30,0r0,-133r-139,0r0,133r-30,0r0,-271r30,0r0,110","w":257},"I":{"d":"58,-271r0,271r-30,0r0,-271r30,0","w":86},"J":{"d":"85,-57v5,42,-18,85,-61,85v-18,0,-34,-9,-48,-20r17,-23v10,9,18,15,32,15v30,0,30,-35,30,-57r0,-214r30,0r0,214","w":113},"K":{"d":"58,-155r115,-116r41,0r-128,126r132,145r-42,0r-111,-125r-7,8r0,117r-31,0r0,-271r31,0r0,116","w":219},"L":{"d":"58,-271r0,243r74,0r0,28r-105,0r0,-271r31,0","w":135,"k":{"s":29,"u":47,":":47}},"M":{"d":"8,0r55,-287r98,228r99,-228r55,287r-31,0r-35,-184r-88,195r-88,-195r-34,184r-31,0","w":322},"N":{"d":"29,0r0,-283r212,222r0,-210r30,0r0,283r-212,-221r0,209r-30,0","w":300},"O":{"d":"155,-276v78,0,142,63,142,141v0,78,-64,140,-142,140v-77,0,-141,-62,-141,-140v0,-78,64,-141,141,-141xm155,-248v-62,0,-111,51,-111,112v0,61,50,113,111,113v62,0,111,-52,111,-113v0,-61,-49,-112,-111,-112","w":310},"P":{"d":"170,-195v0,54,-50,85,-112,76r0,119r-31,0r0,-271v77,-8,143,10,143,76xm58,-243r0,96v44,1,82,-2,82,-49v0,-48,-41,-47,-82,-47","w":181,"k":{"A":29,"\u00c4":29,"\u00c5":29,",":47,".":47}},"Q":{"d":"190,-109r47,49v65,-67,12,-188,-82,-188v-62,0,-111,51,-111,112v0,85,101,147,172,92r-66,-65r40,0xm260,3r-23,-25v-89,68,-223,-2,-223,-113v0,-78,64,-141,141,-141v120,0,190,155,102,237r41,42r-38,0","w":310},"R":{"d":"58,-243r0,97v39,1,78,-3,78,-48v0,-48,-37,-49,-78,-49xm58,-119r0,119r-31,0r0,-271v71,-1,139,-2,139,74v0,42,-26,72,-68,75r86,122r-37,0r-82,-119r-7,0","w":195,"k":{"T":29,"V":29,"W":29,"y":14,"Y":29}},"S":{"d":"175,-234r-25,15v-14,-42,-92,-37,-91,13v1,30,36,40,60,50v35,16,65,34,65,77v0,47,-38,84,-85,84v-44,0,-76,-28,-85,-71r30,-8v4,28,25,51,54,51v29,0,56,-23,56,-53v0,-74,-126,-50,-126,-131v0,-78,119,-92,147,-27","w":201},"T":{"d":"99,-243r0,243r-30,0r0,-243r-65,0r0,-28r162,0r0,28r-67,0","w":169,"k":{"\u00f6":18,"\u00e5":18,"\u00e4":9,"s":29,"u":50,":":50}},"U":{"d":"123,5v-54,0,-96,-48,-96,-107r0,-169r30,0r0,161v0,20,-2,43,12,61v44,56,137,13,121,-61r0,-161r30,0r0,169v7,60,-41,107,-97,107","w":246},"V":{"d":"35,-271r77,207r78,-207r32,0r-110,287r-110,-287r33,0","w":224,"k":{"\u00f6":14,"\u00e5":14,"\u00e4":14,"-":-14,"c":-14,"i":-14,"u":22,":":22,";":-7,"p":-3,"q":-3}},"W":{"d":"37,-271r72,203r88,-217r87,217r72,-203r32,0r-104,285r-87,-218r-88,218r-104,-285r32,0","w":392,"k":{"\u00f6":7,"\u00e4":7,"T":-14,"v":7,"x":7,"a":7,"\u00e5":7,"e":7,"i":7,"o":7}},"X":{"d":"85,-140r-73,-131r34,0r56,102r55,-102r35,0r-74,131r80,140r-34,0r-62,-112r-63,112r-34,0","w":203},"Y":{"d":"92,-117r-89,-154r35,0r69,121r69,-121r35,0r-89,154r0,117r-30,0r0,-117","w":213,"k":{"\u00f6":27,"c":22,"i":22,"s":29,"u":36,":":36}},"Z":{"d":"55,-28r144,0r0,28r-194,0r148,-243r-129,0r0,-28r179,0","w":210},"[":{"d":"67,-257r0,317r39,0r0,26r-69,0r0,-370r69,0r0,27r-39,0","w":113},"\\":{"d":"6,-286r24,-11r169,297r-24,11","w":205},"]":{"d":"46,60r0,-317r-38,0r0,-27r68,0r0,370r-68,0r0,-26r38,0","w":113},"^":{"d":"24,-116r74,-155r26,0r74,155r-32,0r-55,-118r-56,118r-31,0"},"_":{"d":"180,27r0,18r-180,0r0,-18r180,0","w":180},"a":{"d":"98,-147v-34,0,-56,29,-56,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-56,-61xm182,-169r0,169r-29,0v-1,-7,2,-18,-1,-23v-44,60,-148,14,-139,-61v-7,-77,94,-121,140,-61r0,-24r29,0","w":207},"b":{"d":"108,-147v-33,0,-55,29,-55,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-57,-61xm26,0r0,-297r29,0r0,152v44,-61,149,-15,140,60v7,76,-95,122,-140,62r0,23r-29,0","w":207},"c":{"d":"153,-157v-1,12,2,28,-1,38v-29,-49,-112,-26,-112,34v0,64,83,83,114,34r0,38v-56,44,-144,2,-144,-72v0,-70,85,-115,143,-72","w":171},"d":{"d":"98,-147v-34,0,-56,29,-56,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-56,-61xm153,0v-1,-7,2,-18,-1,-23v-45,60,-139,14,-139,-61v0,-48,31,-90,81,-90v24,-1,44,13,59,29r0,-152r29,0r0,297r-29,0","w":207},"e":{"d":"175,-78r-133,0v0,31,22,56,55,56v25,0,41,-15,52,-35r24,14v-16,30,-43,48,-78,48v-50,0,-83,-39,-83,-87v0,-50,29,-92,82,-92v55,0,83,45,81,96xm43,-103r101,0v-6,-57,-94,-55,-101,0","w":186},"f":{"d":"30,-237v-6,-45,29,-78,72,-61r0,29v-30,-11,-43,1,-43,43r0,57r43,0r0,26r-43,0r0,143r-29,0r0,-143r-16,0r0,-26r16,0r0,-68","w":98,"k":{"r":-7}},"g":{"d":"96,-147v-34,0,-55,29,-55,61v0,33,19,64,55,64v37,0,57,-30,57,-64v0,-34,-22,-61,-57,-61xm180,-8v8,55,-32,102,-83,102v-47,0,-82,-30,-83,-77r29,0v0,31,23,51,54,51v51,0,58,-45,53,-91v-13,17,-36,28,-58,28v-50,0,-81,-42,-81,-89v0,-75,95,-122,140,-61r0,-24r29,0r0,161","w":208},"h":{"d":"27,-297r29,0r1,148v12,-16,27,-25,48,-25v82,1,52,100,58,174r-29,0r0,-95v0,-28,-2,-52,-36,-52v-65,0,-35,88,-42,147r-29,0r0,-297","w":190},"i":{"d":"62,-169r0,169r-29,0r0,-169r29,0xm47,-253v11,0,21,9,21,20v0,12,-10,21,-21,21v-11,0,-20,-9,-20,-21v0,-11,9,-20,20,-20","w":94},"j":{"d":"62,-169r0,264r-29,0r0,-264r29,0xm47,-253v11,0,21,9,21,20v0,12,-10,21,-21,21v-11,0,-20,-9,-20,-21v0,-11,9,-20,20,-20","w":94},"k":{"d":"55,-297r0,190r61,-62r39,0r-73,72r86,97r-38,0r-68,-77v-15,13,-4,52,-7,77r-29,0r0,-297r29,0","w":169},"l":{"d":"55,-297r0,297r-28,0r0,-297r28,0","w":81},"m":{"d":"56,-169v1,6,-2,14,1,18v18,-33,71,-29,87,5v10,-19,31,-28,51,-28v78,4,48,102,54,174r-29,0r0,-98v0,-22,-1,-49,-31,-49v-60,0,-28,91,-36,147r-29,0r0,-96v0,-21,-3,-51,-30,-51v-61,0,-31,90,-38,147r-29,0r0,-169r29,0","w":276},"n":{"d":"56,-169v1,6,-2,16,1,20v12,-16,27,-25,48,-25v82,1,52,100,58,174r-29,0r0,-95v0,-28,-2,-52,-36,-52v-65,0,-35,88,-42,147r-29,0r0,-169r29,0","w":190},"o":{"d":"101,5v-49,0,-89,-40,-89,-89v0,-50,39,-90,89,-90v50,0,89,40,89,90v0,49,-40,89,-89,89xm101,-147v-35,0,-60,28,-60,62v0,35,25,63,60,63v36,0,60,-28,60,-63v0,-34,-24,-62,-60,-62","w":202},"p":{"d":"108,-147v-33,0,-55,29,-55,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-57,-61xm55,-169r0,24v44,-62,148,-14,140,61v8,75,-96,122,-140,60r0,119r-29,0r0,-264r29,0","w":207},"q":{"d":"98,-147v-34,0,-56,29,-56,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-56,-61xm182,-169r0,264r-29,0r-1,-119v-43,61,-139,16,-139,-60v0,-47,31,-90,81,-90v24,-1,43,12,59,29r0,-24r29,0","w":207},"r":{"d":"55,-169r0,18v13,-21,41,-31,64,-15r-14,26v-6,-4,-10,-7,-17,-7v-32,0,-33,40,-33,62r0,85r-29,0r0,-169r29,0","w":120,"k":{"x":29,"a":29,"\u00e4":29,"\u00e5":29,"e":29,"i":14,"o":29,"\u00f6":29,"r":22}},"s":{"d":"52,-129v6,36,78,25,78,79v0,67,-103,72,-117,12r26,-11v5,32,62,38,62,1v0,-38,-77,-25,-77,-78v-1,-53,80,-64,96,-17r-24,13v-6,-21,-42,-23,-44,1","w":143},"t":{"d":"58,-143r0,143r-29,0r0,-143r-18,0r0,-26r18,0r0,-61r29,0r0,61r30,0r0,26r-30,0","w":86},"u":{"d":"54,-169v8,56,-26,147,38,147v65,0,29,-91,38,-147r29,0v-3,79,20,174,-67,174v-87,0,-64,-95,-67,-174r29,0","w":184},"v":{"d":"33,-169r51,114r50,-114r32,0r-82,180r-84,-180r33,0","w":166,"k":{"A":29,"\u00c4":29,"\u00c5":29,",":50,".":50}},"w":{"d":"34,-169r50,114r52,-127r53,127r51,-114r33,0r-84,181r-53,-126r-52,126r-83,-181r33,0","w":273,"k":{"v":-14,"w":-14,"y":-14,",":22,".":22,"f":-7,"m":-3,"n":-3,"t":-7,"x":-14,"-":7}},"x":{"d":"72,-90r-61,-79r35,0r44,57r45,-57r36,0r-62,79r70,90r-35,0r-54,-69r-54,69r-36,0","w":179},"y":{"d":"77,-16r-78,-153r34,0r60,121r54,-121r33,0r-125,264r-33,0","w":179,"k":{"T":7,"V":7,"W":7,"y":7,"Y":7}},"z":{"d":"62,-27r117,0r0,27r-175,0r122,-143r-100,0r0,-26r158,0","w":186},"{":{"d":"18,-87r0,-23v69,-12,-27,-186,84,-174r0,27v-46,-9,-27,58,-27,95v0,42,-23,60,-27,63v4,3,27,21,27,64r0,67v-2,24,5,31,27,28r0,26v-62,16,-58,-56,-57,-115v0,-32,-2,-51,-27,-58","w":120},"|":{"d":"117,-283r0,360r-28,0r0,-360r28,0","w":205},"}":{"d":"102,-110r0,23v-69,11,27,186,-84,173r0,-26v46,10,27,-58,27,-95v0,-43,23,-61,28,-64v-5,-3,-28,-21,-28,-63r0,-68v2,-23,-5,-30,-27,-27r0,-27v62,-16,58,57,57,116v0,32,2,50,27,58","w":120},"~":{"d":"148,-61v-24,0,-55,-35,-74,-35v-10,0,-19,15,-25,34r-25,-10v10,-29,26,-53,50,-53v25,-1,53,36,74,36v10,0,20,-16,26,-35r24,10v-10,29,-26,53,-50,53"},"'":{"d":"35,-271r34,0r-6,118r-21,0","w":104},"`":{"d":"28,-254r30,-14r43,59r-18,10","w":128},"\u00c4":{"d":"184,-77r-116,0r-33,77r-33,0r125,-284r122,284r-33,0xm172,-105r-45,-109r-47,109r92,0xm90,-347v11,0,20,9,20,19v0,11,-9,20,-20,20v-10,0,-19,-9,-19,-20v0,-10,9,-19,19,-19xm161,-347v11,0,20,9,20,19v0,11,-9,20,-20,20v-11,0,-19,-9,-19,-20v0,-10,8,-19,19,-19","w":251},"\u00c5":{"d":"184,-77r-116,0r-33,77r-33,0r125,-284r122,284r-33,0xm172,-105r-45,-109r-47,109r92,0xm126,-362v19,0,35,16,35,35v0,19,-15,35,-35,35v-19,0,-35,-16,-35,-35v0,-19,16,-35,35,-35xm126,-344v-9,0,-17,7,-17,17v0,9,8,17,17,17v10,0,17,-8,17,-17v0,-10,-7,-17,-17,-17","w":251},"\u00d6":{"d":"155,-276v78,0,142,63,142,141v0,78,-64,140,-142,140v-77,0,-141,-62,-141,-140v0,-78,64,-141,141,-141xm155,-248v-62,0,-111,51,-111,112v0,61,50,113,111,113v62,0,111,-52,111,-113v0,-61,-49,-112,-111,-112xm120,-347v11,0,19,9,19,19v0,11,-8,20,-19,20v-11,0,-20,-9,-20,-20v0,-10,9,-19,20,-19xm191,-347v11,0,19,9,19,19v0,11,-8,20,-19,20v-11,0,-20,-9,-20,-20v0,-10,9,-19,20,-19","w":310},"\u00e4":{"d":"98,-147v-34,0,-56,29,-56,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-56,-61xm182,-169r0,169r-29,0v-1,-7,2,-18,-1,-23v-44,60,-148,14,-139,-61v-7,-77,94,-121,140,-61r0,-24r29,0xm68,-254v11,0,20,9,20,20v0,10,-9,19,-20,19v-10,0,-19,-9,-19,-19v0,-11,9,-20,19,-20xm139,-254v11,0,20,9,20,20v0,10,-9,19,-20,19v-10,0,-19,-9,-19,-19v0,-11,9,-20,19,-20","w":207},"\u00e5":{"d":"98,-147v-34,0,-56,29,-56,61v0,33,20,64,56,64v37,0,56,-30,56,-64v0,-34,-21,-61,-56,-61xm182,-169r0,169r-29,0v-1,-7,2,-18,-1,-23v-44,60,-148,14,-139,-61v-7,-77,94,-121,140,-61r0,-24r29,0xm104,-269v19,0,35,16,35,35v0,19,-15,35,-35,35v-19,0,-35,-16,-35,-35v0,-19,16,-35,35,-35xm104,-251v-9,0,-17,8,-17,17v0,9,8,17,17,17v10,0,17,-8,17,-17v0,-9,-7,-17,-17,-17","w":207},"\u00f6":{"d":"101,5v-49,0,-89,-40,-89,-89v0,-50,39,-90,89,-90v50,0,89,40,89,90v0,49,-40,89,-89,89xm101,-147v-35,0,-60,28,-60,62v0,35,25,63,60,63v36,0,60,-28,60,-63v0,-34,-24,-62,-60,-62xm66,-254v11,0,19,9,19,20v0,10,-8,19,-19,19v-11,0,-20,-9,-20,-19v0,-11,9,-20,20,-20xm137,-254v11,0,19,9,19,20v0,10,-8,19,-19,19v-11,0,-20,-9,-20,-19v0,-11,9,-20,20,-20","w":202},"\u00a0":{"w":110}}});
Cufon.replace('.page h2, .page h3, .trail p, #main p.intro');

/* Simple AJAX Code-Kit (SACK) v1.6.1 */
/* ©2005 Gregory Wild-Smith */
/* www.twilightuniverse.com */
/* Software licenced under a modified X11 licence,
   see documentation or authors website for more details */

function sack(file) {
	this.xmlhttp = null;

	this.resetData = function() {
		this.method = "POST";
  		this.queryStringSeparator = "?";
		this.argumentSeparator = "&";
		this.URLString = "";
		this.encodeURIString = true;
  		this.execute = false;
  		this.element = null;
		this.elementObj = null;
		this.requestFile = file;
		this.vars = new Object();
		this.responseStatus = new Array(2);
  	};

	this.resetFunctions = function() {
  		this.onLoading = function() { };
  		this.onLoaded = function() { };
  		this.onInteractive = function() { };
  		this.onCompletion = function() { };
  		this.onError = function() { };
		this.onFail = function() { };
	};

	this.reset = function() {
		this.resetFunctions();
		this.resetData();
	};

	this.createAJAX = function() {
		try {
			this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e1) {
			try {
				this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e2) {
				this.xmlhttp = null;
			}
		}

		if (! this.xmlhttp) {
			if (typeof XMLHttpRequest != "undefined") {
				this.xmlhttp = new XMLHttpRequest();
			} else {
				this.failed = true;
			}
		}
	};

	this.setVar = function(name, value){
		this.vars[name] = Array(value, false);
	};

	this.encVar = function(name, value, returnvars) {
		if (true == returnvars) {
			return Array(encodeURIComponent(name), encodeURIComponent(value));
		} else {
			this.vars[encodeURIComponent(name)] = Array(encodeURIComponent(value), true);
		}
	}

	this.processURLString = function(string, encode) {
		encoded = encodeURIComponent(this.argumentSeparator);
		regexp = new RegExp(this.argumentSeparator + "|" + encoded);
		varArray = string.split(regexp);
		for (i = 0; i < varArray.length; i++){
			urlVars = varArray[i].split("=");
			if (true == encode){
				this.encVar(urlVars[0], urlVars[1]);
			} else {
				this.setVar(urlVars[0], urlVars[1]);
			}
		}
	}

	this.createURLString = function(urlstring) {
		if (this.encodeURIString && this.URLString.length) {
			this.processURLString(this.URLString, true);
		}

		if (urlstring) {
			if (this.URLString.length) {
				this.URLString += this.argumentSeparator + urlstring;
			} else {
				this.URLString = urlstring;
			}
		}

		// prevents caching of URLString
		this.setVar("rndval", new Date().getTime());

		urlstringtemp = new Array();
		for (key in this.vars) {
			if (false == this.vars[key][1] && true == this.encodeURIString) {
				encoded = this.encVar(key, this.vars[key][0], true);
				delete this.vars[key];
				this.vars[encoded[0]] = Array(encoded[1], true);
				key = encoded[0];
			}

			urlstringtemp[urlstringtemp.length] = key + "=" + this.vars[key][0];
		}
		if (urlstring){
			this.URLString += this.argumentSeparator + urlstringtemp.join(this.argumentSeparator);
		} else {
			this.URLString += urlstringtemp.join(this.argumentSeparator);
		}
	}

	this.runResponse = function() {
		eval(this.response);
	}

	this.runAJAX = function(urlstring) {
		if (this.failed) {
			this.onFail();
		} else {
			this.createURLString(urlstring);
			if (this.element) {
				this.elementObj = document.getElementById(this.element);
			}
			if (this.xmlhttp) {
				var self = this;
				if (this.method == "GET") {
					totalurlstring = this.requestFile + this.queryStringSeparator + this.URLString;
					this.xmlhttp.open(this.method, totalurlstring, true);
				} else {
					this.xmlhttp.open(this.method, this.requestFile, true);
					try {
						this.xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
					} catch (e) { }
				}

				this.xmlhttp.onreadystatechange = function() {
					switch (self.xmlhttp.readyState) {
						case 1:
							self.onLoading();
							break;
						case 2:
							self.onLoaded();
							break;
						case 3:
							self.onInteractive();
							break;
						case 4:
							self.response = self.xmlhttp.responseText;
							self.responseXML = self.xmlhttp.responseXML;
							self.responseStatus[0] = self.xmlhttp.status;
							self.responseStatus[1] = self.xmlhttp.statusText;

							if (self.execute) {
								self.runResponse();
							}

							if (self.elementObj) {
								elemNodeName = self.elementObj.nodeName;
								elemNodeName.toLowerCase();
								if (elemNodeName == "input"
								|| elemNodeName == "select"
								|| elemNodeName == "option"
								|| elemNodeName == "textarea") {
									self.elementObj.value = self.response;
								} else {
									self.elementObj.innerHTML = self.response;
								}
							}
							if (self.responseStatus[0] == "200") {
								self.onCompletion();
							} else {
								self.onError();
							}

							self.URLString = "";
							break;
					}
				};

				this.xmlhttp.send(this.URLString);
			}
		}
	};

	this.reset();
	this.createAJAX();
}
