// EXTEND JQUERY SCROLLTO
jQuery.fn.extend({
	scrollTo : function(speed, easing) {
		return this.each(function() {
			var targetOffset = jQuery(this).offset().top;
			jQuery("html,body").animate({scrollTop: targetOffset}, speed, easing);
		});
	}
});

// PROTECT EMAIL FUNCTION
function emailProtect(i) {
    var content = jQuery(this).text().replace(' AT ', '@').replace(' POINT ', '.');
    jQuery(this).replaceWith($('<a href="mailto:'+content+'">'+content+'<\/a>'));
}

// CUFON PLUGIN 
/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.09
 */
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("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.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}})());

/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * Copyright © 1990, 1991, 2002 Adobe Systems Incorporated.  All Rights Reserved.
 * © 1981, 2002 Heidelberger Druckmaschinen AG. All rights reserved.
 * 
 * Trademark:
 * Helvetica is a trademark of Heidelberger Druckmaschinen AG, exclusively
 * licensed through Linotype Library GmbH, and may be registered in certain
 * jurisdictions.
 * 
 * Full name:
 * HelveticaRoundedLTStd-BdCn
 * 
 * Designer:
 * Unknown
 * 
 * Vendor URL:
 * http://www.adobe.com/type
 * 
 * License information:
 * http://www.adobe.com/type/legal.html
 */
Cufon.registerFont({"w":86,"face":{"font-family":"Helvetica Rounded LT Std","font-weight":700,"font-stretch":"condensed","units-per-em":"360","panose-1":"2 15 7 6 3 7 3 4 2 4","ascent":"264","descent":"-96","x-height":"5","cap-height":"5","bbox":"-17 -347 297 77.8561","underline-thickness":"18","underline-position":"-18","stemh":"35","stemv":"44","unicode-range":"U+0020-U+00FF"},"glyphs":{" ":{"k":{"T":13,"V":13,"W":13,"A":13,"\u00c6":13,"\u00c1":13,"\u00c2":13,"\u00c4":13,"\u00c0":13,"\u00c5":13,"\u00c3":13}},"!":{"d":"34,-82v-5,-51,-10,-102,-8,-157v0,-15,7,-25,24,-25v42,0,27,62,23,106r-7,76v-1,13,-4,19,-16,19v-12,0,-15,-6,-16,-19xm23,-23v0,-15,12,-27,27,-27v15,0,27,12,27,27v0,15,-12,28,-27,28v-15,0,-27,-13,-27,-28","w":100},"\"":{"d":"112,-166v-30,0,-19,-47,-21,-77v0,-13,10,-22,21,-22v30,1,18,48,20,77v0,13,-9,22,-20,22xm41,-166v-30,-1,-18,-48,-20,-77v0,-13,9,-22,20,-22v30,0,19,47,21,77v0,13,-10,22,-21,22","w":153},"#":{"d":"94,-71r-31,0v-8,27,6,72,-27,76v-28,-6,-5,-52,-6,-76v-17,2,-32,-3,-30,-17v-2,-15,16,-19,34,-17r6,-44v-17,2,-32,-3,-30,-17v-2,-15,16,-21,34,-18v8,-27,-6,-71,27,-75v30,5,6,51,7,75r31,0v9,-26,-4,-70,27,-75v29,5,6,50,7,75v17,-2,32,4,30,18v2,15,-17,19,-35,17r-6,44v17,-2,32,3,30,17v3,16,-16,19,-34,17v-8,27,6,71,-26,76v-31,-5,-6,-50,-8,-76xm99,-105r5,-44r-31,0r-5,44r31,0","w":172},"$":{"d":"32,-84v30,0,14,58,45,54r0,-78v-30,-17,-62,-43,-62,-84v0,-38,22,-66,62,-67v-6,-16,15,-28,17,-10r0,10v33,0,60,21,60,54v0,12,-8,21,-20,21v-27,0,-18,-44,-40,-41r0,71v31,18,67,39,67,83v0,46,-25,74,-67,76v-2,13,6,35,-8,37v-15,-1,-7,-23,-9,-37v-38,0,-65,-28,-65,-64v0,-13,6,-25,20,-25xm77,-163r0,-62v-28,10,-30,45,0,62xm94,-100r0,70v31,-6,30,-61,0,-70","w":172},"%":{"d":"16,-194v0,-40,12,-65,55,-65v43,0,56,25,56,65v0,40,-13,66,-56,66v-43,0,-55,-26,-55,-66xm71,-232v-20,0,-19,22,-19,42v0,22,5,34,19,34v18,0,20,-23,19,-46v0,-16,-3,-30,-19,-30xm186,-61v0,-40,13,-65,56,-65v43,0,55,25,55,65v0,40,-12,66,-55,66v-43,0,-56,-26,-56,-66xm242,-99v-20,0,-19,22,-19,42v0,22,5,34,19,34v18,0,20,-23,19,-46v0,-16,-3,-30,-19,-30xm87,3v31,-93,77,-172,111,-262v4,-11,29,-11,28,2v-32,92,-77,172,-111,261v-4,11,-29,14,-28,-1","w":313},"&":{"d":"158,-91v8,-13,3,-52,27,-52v14,0,19,9,19,22v0,18,-11,51,-22,70v14,16,30,56,-6,57v-12,1,-19,-12,-25,-21v-44,43,-128,13,-128,-56v0,-36,18,-62,49,-82v-39,-50,-21,-106,39,-106v75,0,64,86,15,114xm132,-48r-40,-70v-36,19,-30,82,10,85v12,0,20,-4,30,-15xm110,-228v-29,3,-14,39,-3,50v19,-10,32,-46,3,-50","w":226},"(":{"d":"18,-100v0,-103,47,-172,66,-172v8,0,15,3,15,16v0,13,-35,53,-35,156v0,103,35,144,35,157v0,13,-7,15,-15,15v-19,0,-66,-69,-66,-172","w":106},")":{"d":"88,-100v0,103,-46,172,-65,172v-8,0,-16,-2,-16,-15v0,-13,35,-54,35,-157v0,-103,-35,-143,-35,-156v0,-13,8,-16,16,-16v19,0,65,69,65,172","w":106},"*":{"d":"79,-222v13,-3,37,-18,43,-1v6,17,-22,20,-35,25v5,10,28,29,14,40v-15,12,-26,-18,-34,-26v-9,8,-20,38,-35,26v-15,-11,9,-30,14,-40v-12,-6,-41,-9,-35,-25v5,-17,30,-2,43,1v0,-17,-4,-42,13,-42v17,0,11,26,12,42","w":133},"+":{"d":"89,-121v2,-30,-10,-83,19,-83v29,0,17,53,19,83v30,2,83,-9,83,19v0,28,-53,17,-83,19v-2,30,10,83,-19,83v-29,0,-17,-53,-19,-83v-30,-2,-83,9,-83,-19v0,-28,53,-17,83,-19","w":216},",":{"d":"14,41v5,-14,33,-15,35,-37v-22,6,-35,-14,-35,-26v0,-15,12,-28,29,-28v60,13,13,105,-19,100v-6,0,-10,-5,-10,-9","k":{" ":13}},"-":{"d":"106,-102v2,28,-43,20,-70,21v-15,0,-22,-10,-22,-21v-1,-28,43,-19,70,-20v15,0,22,9,22,20","w":119},".":{"d":"16,-23v0,-15,12,-27,27,-27v15,0,28,12,28,27v0,15,-13,28,-28,28v-15,0,-27,-13,-27,-28"},"\/":{"d":"-1,-7v23,-85,60,-160,85,-242v5,-17,34,-23,37,-3v-23,85,-60,160,-85,242v-5,17,-34,23,-37,3","w":119},"0":{"d":"62,-177r0,100v0,33,5,47,24,47v19,0,25,-14,25,-47r0,-100v0,-33,-6,-48,-25,-48v-19,0,-24,15,-24,48xm86,5v-100,0,-72,-93,-72,-176v0,-42,6,-88,72,-88v100,0,73,92,73,175v0,41,-7,89,-73,89","w":172},"1":{"d":"49,-182v-21,-2,-54,7,-54,-15v0,-9,5,-14,15,-16v28,-5,39,-13,48,-30v9,-17,12,-18,24,-18v8,0,15,5,15,19r0,222v0,15,-11,25,-24,25v-13,0,-24,-10,-24,-25r0,-162","w":119},"2":{"d":"85,-223v-33,0,-14,56,-47,56v-18,0,-22,-15,-22,-27v0,-39,26,-65,68,-65v84,0,93,93,42,139v-22,20,-58,54,-63,79v34,5,97,-16,97,20v0,16,-10,21,-26,21r-100,0v-14,0,-21,-7,-21,-21v-7,-19,32,-83,65,-112v27,-23,31,-38,31,-57v0,-19,-8,-33,-24,-33","w":172},"3":{"d":"83,-225v-28,0,-16,46,-47,46v-13,0,-20,-9,-20,-22v0,-33,21,-58,66,-58v81,0,93,94,42,120v27,10,35,30,35,64v0,50,-22,80,-75,80v-61,0,-72,-44,-72,-66v0,-17,7,-29,22,-29v35,0,14,60,51,60v20,0,26,-20,26,-45v0,-37,-11,-44,-30,-45v-32,-2,-36,-30,-3,-34v20,-3,27,-12,27,-40v0,-16,-5,-31,-22,-31","w":172},"4":{"d":"92,-90r-1,-104r-48,104r49,0xm114,5v-24,0,-23,-31,-22,-57v-42,0,-108,13,-80,-45r70,-147v6,-27,54,-20,54,5r0,149v15,-1,28,2,28,19v0,17,-13,20,-28,19v1,26,2,57,-22,57","w":172},"5":{"d":"36,-87v39,-2,13,57,49,57v21,0,26,-18,26,-53v0,-42,-8,-57,-29,-57v-23,0,-17,25,-44,25v-19,0,-21,-15,-20,-33r5,-89v0,-10,5,-18,16,-18r87,0v16,0,26,5,26,21v-2,36,-59,16,-92,21r-3,52v44,-30,102,-16,102,71v0,54,-12,95,-74,95v-62,0,-71,-45,-71,-64v0,-14,5,-28,22,-28","w":172},"6":{"d":"130,-195v-18,5,-23,-35,-41,-30v-25,-2,-29,33,-28,66v46,-38,99,3,99,67v0,51,-13,97,-73,97v-77,0,-74,-68,-74,-146v0,-73,14,-118,75,-118v44,0,64,20,64,43v0,13,-9,21,-22,21xm61,-84v0,35,4,54,25,54v21,0,26,-19,26,-54v0,-34,-5,-53,-26,-53v-21,0,-25,19,-25,53","w":172},"7":{"d":"109,-211v-36,-4,-103,13,-105,-22v0,-9,6,-22,22,-22r111,0v15,0,23,3,23,18v-22,52,-65,146,-68,217v-1,15,-10,25,-26,25v-16,0,-22,-11,-22,-25v0,-32,31,-132,65,-191","w":159},"8":{"d":"86,-122v-29,0,-25,30,-25,56v0,19,4,36,25,36v28,0,26,-28,26,-55v0,-15,-4,-37,-26,-37xm63,-190v0,17,3,34,23,34v35,0,33,-69,0,-69v-16,0,-23,14,-23,35xm13,-72v0,-28,6,-55,32,-67v-52,-29,-30,-129,41,-120v72,-8,94,91,41,120v26,12,33,39,33,67v0,36,-11,77,-74,77v-63,0,-73,-41,-73,-77","w":172},"9":{"d":"42,-59v19,-5,24,34,42,29v25,2,29,-33,28,-66v-46,39,-99,-3,-99,-67v0,-51,12,-96,72,-96v77,0,76,68,75,146v0,73,-14,118,-75,118v-44,0,-64,-20,-64,-43v0,-13,8,-21,21,-21xm61,-171v0,34,4,53,25,53v21,0,26,-19,26,-53v0,-35,-5,-54,-26,-54v-21,0,-25,19,-25,54","w":172},":":{"d":"16,-167v0,-15,12,-28,27,-28v15,0,28,13,28,28v0,15,-13,27,-28,27v-15,0,-27,-12,-27,-27xm16,-23v0,-15,12,-27,27,-27v15,0,28,12,28,27v0,15,-13,28,-28,28v-15,0,-27,-13,-27,-28","k":{" ":13}},";":{"d":"14,41v5,-14,33,-15,35,-37v-22,6,-35,-14,-35,-26v0,-15,12,-28,29,-28v60,13,13,105,-19,100v-6,0,-10,-5,-10,-9xm16,-167v0,-15,12,-28,27,-28v15,0,28,13,28,28v0,15,-13,27,-28,27v-15,0,-27,-12,-27,-27"},"<":{"d":"188,-9v-61,-17,-110,-50,-166,-72v-18,-7,-18,-34,0,-41v56,-24,105,-55,166,-73v26,3,28,25,3,35r-132,58r132,58v25,10,23,32,-3,35","w":216},"=":{"d":"185,-125r-154,0v-15,0,-25,-9,-25,-19v0,-10,10,-19,25,-19r154,0v15,0,25,9,25,19v0,10,-10,19,-25,19xm185,-40r-154,0v-15,0,-25,-9,-25,-19v0,-10,10,-19,25,-19r154,0v15,0,25,9,25,19v0,10,-10,19,-25,19","w":216},">":{"d":"25,-44r132,-58r-132,-58v-25,-10,-23,-32,3,-35v61,17,110,50,166,73v18,7,18,34,0,41v-56,23,-105,54,-166,72v-26,-3,-28,-25,-3,-35","w":216},"?":{"d":"84,-228v-28,0,-16,44,-44,44v-13,0,-22,-9,-22,-22v0,-33,24,-58,64,-58v77,0,88,87,43,128v-16,14,-32,34,-32,55v0,10,-8,18,-21,18v-45,-9,-8,-75,13,-90v17,-20,21,-34,21,-47v0,-15,-7,-28,-22,-28xm45,-23v0,-15,12,-27,27,-27v15,0,27,12,27,27v0,15,-12,28,-27,28v-15,0,-27,-13,-27,-28","w":173},"@":{"d":"112,-121v0,17,6,30,24,30v44,0,57,-66,12,-68v-21,0,-36,19,-36,38xm222,-181v0,30,-13,55,-15,86v0,4,2,7,7,7v15,0,33,-16,33,-56v0,-59,-40,-89,-98,-89v-55,0,-100,46,-100,104v0,65,45,102,103,102v56,0,67,-22,79,-22v8,0,15,5,15,13v0,13,-44,42,-94,42v-79,0,-144,-56,-144,-135v0,-78,64,-136,142,-136v71,0,130,42,130,111v0,82,-68,101,-90,101v-18,1,-22,-8,-26,-15v-36,31,-93,13,-93,-52v0,-60,80,-111,117,-57v-1,-25,34,-28,34,-4","w":288},"A":{"d":"122,-65r-60,0v-8,26,-2,71,-35,70v-23,0,-24,-20,-19,-41r46,-194v6,-26,12,-34,39,-34v24,0,34,8,40,34r49,212v0,16,-12,23,-24,23v-31,0,-29,-44,-36,-70xm70,-103r44,0r-22,-108","w":186},"B":{"d":"20,-26r0,-207v-2,-41,56,-22,91,-26v67,-9,73,100,30,120v60,25,41,144,-33,139v-34,-2,-88,14,-88,-26xm68,-117r0,81v37,2,57,0,57,-43v0,-33,-22,-42,-57,-38xm68,-223r0,69v31,2,53,-1,52,-35v0,-36,-21,-35,-52,-34","w":186,"k":{",":13,".":13}},"C":{"d":"96,-32v35,3,13,-75,50,-66v17,0,25,12,25,29v0,54,-32,75,-79,75v-92,0,-78,-80,-78,-154v0,-91,26,-117,84,-117v48,0,72,28,72,64v0,17,-6,29,-24,29v-35,8,-17,-55,-48,-55v-22,0,-33,10,-33,87v0,57,-2,114,31,108","w":180},"D":{"d":"68,-221r0,183v51,2,58,-2,61,-83v2,-52,-1,-107,-37,-100r-24,0xm20,-26r0,-207v-2,-41,55,-22,89,-26v60,-7,72,66,70,147v-3,108,-41,112,-133,112v-18,0,-26,-8,-26,-26","w":193,"k":{",":13,".":13}},"E":{"d":"68,-113r0,70v34,4,99,-14,100,21v0,12,-7,22,-25,22r-97,0v-18,0,-26,-8,-26,-26r0,-207v0,-18,8,-26,26,-26r94,0v18,0,25,9,25,21v0,35,-64,18,-97,22r0,60v33,3,92,-12,93,21v0,33,-60,19,-93,22","w":180},"F":{"d":"68,-113v-5,41,18,118,-24,118v-13,0,-24,-10,-24,-25r0,-213v1,-46,74,-26,115,-26v18,0,26,9,26,21v0,33,-60,19,-93,22r0,60v33,3,92,-12,93,21v0,33,-60,19,-93,22","w":172,"k":{"\u00eb":5,"\u00e3":5,"\u00e0":5,"\u00e4":5,",":40,".":40,"a":5,"\u00e6":5,"\u00e1":5,"\u00e2":5,"\u00e5":5,"A":13,"\u00c6":13,"\u00c1":13,"\u00c2":13,"\u00c4":13,"\u00c0":13,"\u00c5":13,"\u00c3":13,"e":5,"\u00e9":5,"\u00ea":5,"\u00e8":5,"i":4,"\u00ed":4,"\u00ee":4,"\u00ef":4,"\u00ec":4,"o":5,"\u00f8":5,"\u00f3":5,"\u00f4":5,"\u00f6":5,"\u00f2":5,"\u00f5":5}},"G":{"d":"146,-174v-36,0,-9,-53,-51,-53v-17,0,-30,10,-30,70r0,36v0,63,5,88,32,88v25,0,28,-34,27,-68v-20,2,-39,-1,-39,-20v0,-29,35,-21,61,-21v17,0,24,8,24,24r0,103v0,12,-4,20,-18,20v-15,0,-21,-12,-20,-28v-10,19,-26,28,-48,28v-65,2,-70,-71,-70,-151v0,-88,24,-119,83,-119v51,0,73,33,73,63v0,18,-7,28,-24,28","w":186,"k":{",":13,".":13}},"H":{"d":"132,-118r-64,0v-6,42,19,123,-24,123v-13,0,-24,-10,-24,-25r0,-219v0,-15,11,-25,24,-25v40,3,19,70,24,108r64,0v5,-39,-16,-108,24,-108v13,0,24,10,24,25r0,219v0,15,-11,25,-24,25v-43,0,-18,-81,-24,-123","w":200},"I":{"d":"22,-20r0,-219v0,-15,11,-25,24,-25v13,0,25,10,25,25r0,219v0,15,-12,25,-25,25v-13,0,-24,-10,-24,-25","w":92},"J":{"d":"91,-59r0,-180v0,-15,12,-25,25,-25v13,0,24,10,24,25r0,181v0,42,-23,64,-67,64v-49,0,-64,-30,-64,-67v0,-21,10,-30,23,-30v36,-8,13,59,41,59v12,0,18,-8,18,-27","w":159,"k":{",":13,".":13}},"K":{"d":"20,-20r0,-219v0,-15,11,-25,24,-25v43,0,16,82,25,120r58,-105v9,-25,45,-16,46,6v-10,38,-37,63,-53,95v20,44,45,84,61,132v0,12,-10,21,-26,21v-15,0,-20,-7,-26,-20r-41,-86r-20,30v-1,31,8,77,-24,76v-13,0,-24,-10,-24,-25","w":186},"L":{"d":"68,-43v34,4,97,-13,98,21v0,12,-7,22,-25,22r-95,0v-18,0,-26,-8,-26,-26r0,-213v0,-15,11,-25,24,-25v13,0,24,10,24,25r0,196","w":173,"k":{"T":63,"V":36,"W":36,"y":13,"\u00fd":13,"\u00ff":13,"Y":54,"\u00dd":54}},"M":{"d":"21,-20r0,-208v0,-23,8,-36,39,-36v24,0,37,9,43,39r24,124r24,-124v6,-30,19,-39,43,-39v31,0,39,13,39,36r0,208v0,15,-12,25,-25,25v-13,0,-24,-10,-24,-25r0,-186r-40,195v-2,8,-4,16,-17,16v-13,0,-16,-8,-18,-16r-40,-195r0,186v0,15,-11,25,-24,25v-13,0,-24,-10,-24,-25","w":253},"N":{"d":"20,-20r0,-219v2,-32,46,-34,60,0r58,141r0,-141v0,-15,11,-25,24,-25v13,0,24,10,24,25r0,217v-1,38,-47,33,-60,2r-58,-144r0,144v0,15,-11,25,-24,25v-13,0,-24,-10,-24,-25","w":206,"k":{",":11,".":11}},"O":{"d":"14,-104r0,-55v0,-95,40,-106,80,-106v40,0,79,11,79,106r0,55v0,98,-34,110,-79,110v-45,0,-80,-12,-80,-110xm65,-159r0,55v0,63,10,72,29,72v19,0,28,-9,28,-72r0,-55v0,-56,-9,-68,-28,-68v-19,0,-29,12,-29,68","w":187,"k":{"T":4,"Y":11,"\u00dd":11,",":13,".":13}},"P":{"d":"20,-20r0,-213v-2,-40,52,-26,86,-26v40,0,66,21,66,73v0,58,-38,85,-104,76v-5,40,17,115,-24,115v-13,0,-24,-10,-24,-25xm68,-223r0,76v33,3,53,-4,53,-37v0,-39,-19,-41,-53,-39","w":180,"k":{"\u00e4":6,",":46,".":46,"a":6,"\u00e6":6,"\u00e1":6,"\u00e2":6,"\u00e0":6,"\u00e5":6,"\u00e3":6,"A":13,"\u00c6":13,"\u00c1":13,"\u00c2":13,"\u00c4":13,"\u00c0":13,"\u00c5":13,"\u00c3":13,"e":6,"\u00e9":6,"\u00ea":6,"\u00eb":6,"\u00e8":6,"o":6,"\u00f8":6,"\u00f3":6,"\u00f4":6,"\u00f6":6,"\u00f2":6,"\u00f5":6}},"Q":{"d":"14,-104r0,-55v0,-95,40,-106,80,-106v40,0,79,11,79,106v0,47,2,110,-14,133v15,11,40,42,8,48v-10,2,-25,-16,-32,-24v-68,18,-121,17,-121,-102xm65,-159r0,55v2,69,8,74,38,71v-18,-11,-1,-45,17,-29v2,-39,14,-174,-26,-165v-19,0,-29,12,-29,68","w":187},"R":{"d":"20,-20r0,-213v-2,-41,57,-22,92,-26v73,-8,76,109,27,125v46,11,23,75,33,123v-6,24,-52,20,-52,-9v0,-45,14,-105,-52,-93v-5,41,18,118,-24,118v-13,0,-24,-10,-24,-25xm68,-223r0,74v31,1,51,-1,52,-37v1,-35,-19,-39,-52,-37","w":186,"k":{"T":6,"Y":6,"\u00dd":6}},"S":{"d":"38,-95v36,0,12,67,52,63v39,-4,36,-55,4,-69v-30,-23,-79,-48,-79,-97v0,-46,35,-67,76,-67v54,0,72,38,72,65v0,16,-10,24,-24,24v-37,0,-15,-57,-50,-51v-34,6,-36,40,0,63v35,22,78,40,78,97v0,45,-27,73,-82,73v-63,0,-72,-56,-72,-69v0,-17,4,-32,25,-32","w":180,"k":{",":13,".":13}},"T":{"d":"31,-259r125,0v18,0,25,9,25,21v0,26,-37,23,-63,22r0,196v0,15,-11,25,-24,25v-13,0,-25,-10,-25,-25r0,-196v-26,0,-63,4,-63,-22v0,-12,7,-21,25,-21","w":187,"k":{"\u00fc":33,"\u00f2":33,"\u00f6":33,"\u00ec":4,"\u00ee":4,"\u00ed":4,"\u00e8":33,"\u00eb":33,"\u00ea":33,"\u00e3":33,"\u00e5":33,"\u00e0":33,"\u00e4":33,"\u00e2":33,"w":33,"y":27,"\u00fd":27,"\u00ff":27,",":33,".":33,"a":33,"\u00e6":33,"\u00e1":33,"A":20,"\u00c6":20,"\u00c1":20,"\u00c2":20,"\u00c4":20,"\u00c0":20,"\u00c5":20,"\u00c3":20,"e":33,"\u00e9":33,"i":4,"\u00ef":4,"o":33,"\u00f8":33,"\u00f3":33,"\u00f4":33,"\u00f5":33,"r":33,"-":43,"h":4,"O":4,"\u00d8":4,"\u00d3":4,"\u00d4":4,"\u00d6":4,"\u00d2":4,"\u00d5":4,"u":33,"\u00fa":33,"\u00fb":33,"\u00f9":33,":":27,";":27}},"U":{"d":"97,6v-116,0,-79,-143,-79,-245v0,-15,11,-25,24,-25v13,0,25,10,25,25r0,166v0,28,12,41,30,41v18,0,30,-13,30,-41r0,-166v0,-15,11,-25,24,-25v13,0,24,10,24,25v0,101,38,245,-78,245","w":193,"k":{",":13,".":13}},"V":{"d":"55,-23r-48,-217v-1,-28,43,-34,49,-3r38,192r31,-187v-2,-31,51,-35,48,-4v-8,78,-31,147,-45,221v-5,22,-15,26,-38,26v-25,0,-31,-11,-35,-28","w":180,"k":{"\u00f6":6,"\u00f4":6,"\u00e8":6,"\u00eb":6,"\u00ea":6,"\u00e3":6,"\u00e5":6,"\u00e0":6,"\u00e4":6,"\u00e2":6,",":33,".":33,"a":6,"\u00e6":6,"\u00e1":6,"A":13,"\u00c6":13,"\u00c1":13,"\u00c2":13,"\u00c4":13,"\u00c0":13,"\u00c5":13,"\u00c3":13,"e":6,"\u00e9":6,"o":6,"\u00f8":6,"\u00f3":6,"\u00f2":6,"\u00f5":6,"-":6,"u":6,"\u00fa":6,"\u00fb":6,"\u00fc":6,"\u00f9":6,":":6,";":6}},"W":{"d":"112,-15v-3,17,-11,20,-31,20v-23,0,-29,-8,-32,-22r-42,-226v0,-12,9,-21,26,-21v15,0,20,8,22,20r31,181r29,-181v2,-13,7,-20,22,-20v15,0,20,7,22,20r33,181r26,-179v1,-31,53,-29,48,0r-39,220v-4,23,-9,27,-34,27v-26,0,-29,-5,-33,-28r-24,-139","w":273,"k":{"\u00fc":4,"\u00f6":6,"\u00ea":6,"\u00e4":6,",":27,".":27,"a":6,"\u00e6":6,"\u00e1":6,"\u00e2":6,"\u00e0":6,"\u00e5":6,"\u00e3":6,"A":6,"\u00c6":6,"\u00c1":6,"\u00c2":6,"\u00c4":6,"\u00c0":6,"\u00c5":6,"\u00c3":6,"e":6,"\u00e9":6,"\u00eb":6,"\u00e8":6,"o":6,"\u00f8":6,"\u00f3":6,"\u00f4":6,"\u00f2":6,"\u00f5":6,"-":6,"u":4,"\u00fa":4,"\u00fb":4,"\u00f9":4}},"X":{"d":"9,-17v11,-40,37,-78,53,-115v-16,-36,-39,-70,-50,-110v4,-28,39,-30,52,2r26,64r31,-70v7,-27,46,-21,47,3v-12,41,-35,74,-51,111v18,39,40,73,54,115v2,25,-45,30,-50,4r-32,-74r-34,77v-6,23,-48,18,-46,-7","w":180},"Y":{"d":"87,5v-40,0,-19,-73,-24,-112v-18,-46,-43,-85,-57,-135v0,-15,12,-22,24,-22v15,0,19,5,26,23r31,82r33,-86v7,-30,46,-21,47,1v-13,50,-39,89,-56,135v-5,40,17,114,-24,114","w":173,"k":{"\u00fc":13,"\u00f6":20,",":40,".":40,"a":20,"\u00e6":20,"\u00e1":20,"\u00e2":20,"\u00e4":20,"\u00e0":20,"\u00e5":20,"\u00e3":20,"A":20,"\u00c6":20,"\u00c1":20,"\u00c2":20,"\u00c4":20,"\u00c0":20,"\u00c5":20,"\u00c3":20,"e":20,"\u00e9":20,"\u00ea":20,"\u00eb":20,"\u00e8":20,"i":6,"\u00ed":6,"\u00ee":6,"\u00ef":6,"\u00ec":6,"o":20,"\u00f8":20,"\u00f3":20,"\u00f4":20,"\u00f2":20,"\u00f5":20,"-":27,"O":11,"\u00d8":11,"\u00d3":11,"\u00d4":11,"\u00d6":11,"\u00d2":11,"\u00d5":11,"u":13,"\u00fa":13,"\u00fb":13,"\u00f9":13,":":13,";":13}},"Z":{"d":"114,-216v-35,-4,-99,13,-100,-22v0,-12,8,-21,26,-21r110,0v30,0,30,25,17,47r-98,169v37,5,110,-15,110,21v0,12,-8,22,-26,22r-120,0v-28,-4,-30,-23,-17,-45","w":186},"[":{"d":"25,39r0,-277v-2,-28,29,-27,57,-26v10,0,18,6,18,17v0,16,-14,20,-31,18r0,259v31,-10,43,33,13,34v-27,0,-57,3,-57,-25","w":106},"\\":{"d":"84,-10r-83,-230v-5,-13,0,-26,15,-25v9,0,17,7,20,16r83,230v5,13,0,26,-15,25v-9,0,-17,-7,-20,-16","w":119},"]":{"d":"38,30r0,-259v-31,10,-43,-34,-14,-35v28,-1,58,-3,58,26r0,277v2,28,-30,25,-58,25v-10,0,-17,-6,-17,-17v0,-17,14,-18,31,-17","w":106},"^":{"d":"24,-127v15,-44,40,-78,60,-117v12,-23,36,-22,48,0v21,39,45,73,60,117v-2,16,-34,19,-40,-2r-44,-80r-44,80v-5,21,-40,18,-40,2","w":216},"_":{"d":"180,45r-180,0v-2,0,-4,-3,-4,-9v0,-6,2,-9,4,-9r180,0v2,0,4,3,4,9v0,6,-2,9,-4,9","w":180},"a":{"d":"81,-167v-29,-3,-11,37,-42,37v-10,0,-23,-5,-23,-18v0,-34,27,-51,61,-51v112,0,46,99,68,186v0,12,-8,18,-22,18v-13,0,-21,-9,-24,-25v-21,42,-85,32,-85,-28v0,-51,38,-63,70,-79v19,-10,18,-38,-3,-40xm75,-30v25,1,24,-42,23,-71v-16,12,-43,27,-38,48v0,15,6,23,15,23","w":159},"b":{"d":"65,-116v0,32,-5,86,22,84v22,4,17,-47,18,-76v0,-43,-3,-55,-18,-55v-10,0,-22,8,-22,47xm21,-22r0,-216v0,-18,9,-26,22,-26v34,-2,17,58,23,87v8,-15,23,-22,39,-22v57,1,46,71,47,128v0,40,-7,76,-47,76v-18,1,-30,-10,-40,-23v0,13,-9,23,-22,23v-13,0,-22,-9,-22,-27","w":166,"k":{",":13,".":13}},"c":{"d":"80,5v-73,0,-64,-57,-65,-120v0,-47,6,-84,65,-84v50,0,60,35,60,53v0,17,-9,25,-21,25v-30,6,-14,-44,-39,-44v-29,0,-19,58,-19,89v0,32,5,46,19,46v24,0,11,-62,39,-51v13,0,21,9,21,25v0,19,-8,61,-60,61","w":153,"k":{",":13,".":13}},"d":{"d":"61,-108v0,30,-3,80,19,76v27,2,22,-52,22,-84v0,-39,-12,-47,-22,-47v-15,0,-19,12,-19,55xm62,5v-57,-1,-46,-71,-47,-128v0,-40,7,-76,47,-76v17,-1,30,9,40,22v3,-31,-11,-87,21,-87v13,0,22,8,22,26r0,216v3,35,-44,34,-43,4v-10,13,-22,24,-40,23","w":166,"k":{",":13,".":13}},"e":{"d":"60,-122r38,0v1,-21,1,-43,-19,-43v-20,0,-20,22,-19,43xm81,5v-77,2,-66,-56,-67,-123v0,-50,7,-81,67,-81v46,0,61,25,61,76v0,43,-46,31,-82,32v0,26,-4,62,20,61v23,0,11,-51,38,-43v13,0,22,4,22,21v0,35,-23,57,-59,57","w":153,"k":{",":13,".":13}},"f":{"d":"24,-22r0,-140v-15,1,-24,-2,-24,-16v0,-14,9,-18,24,-17v-3,-43,4,-73,48,-69v23,-5,31,33,9,35v-18,-2,-12,19,-13,34v16,-1,26,2,26,17v0,15,-11,17,-26,16r0,140v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27","w":93,"k":{",":13,".":13}},"g":{"d":"61,-120v0,32,-3,95,19,85v10,0,22,-8,22,-47v0,-30,-5,-91,-21,-81v-12,0,-20,11,-20,43xm44,19v19,0,20,26,34,25v27,4,26,-39,23,-66v-10,18,-20,22,-39,22v-57,0,-46,-70,-47,-126v0,-37,10,-73,47,-73v18,-1,32,11,41,26v0,-18,8,-26,22,-26v12,0,20,8,20,26r0,184v0,44,-21,64,-65,64v-33,0,-58,-11,-58,-37v0,-12,9,-19,22,-19","w":166,"k":{",":6,".":6}},"h":{"d":"19,-22r0,-216v0,-18,9,-26,22,-26v35,-2,17,61,23,90v18,-39,83,-34,83,23r0,129v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27r0,-119v0,-14,-8,-20,-17,-20v-14,0,-23,11,-23,35r0,104v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27","w":166},"i":{"d":"21,-22r0,-151v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,151v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27xm18,-240v0,-14,11,-25,25,-25v14,0,25,11,25,25v0,14,-11,25,-25,25v-14,0,-25,-11,-25,-25"},"j":{"d":"0,56v-2,-22,21,-8,21,-33r0,-196v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,206v0,29,-17,42,-44,42v-17,0,-21,-9,-21,-19xm18,-240v0,-14,11,-25,25,-25v14,0,25,11,25,25v0,14,-11,25,-25,25v-14,0,-25,-11,-25,-25"},"k":{"d":"19,-22r0,-216v0,-18,9,-26,22,-26v13,0,22,8,22,26r1,117v20,-24,30,-67,62,-78v16,-2,27,16,16,33r-33,48v13,36,33,65,42,105v-1,24,-37,22,-46,1r-28,-66r-14,18v0,27,5,65,-22,65v-13,0,-22,-9,-22,-27","w":159},"l":{"d":"21,-22r0,-216v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,216v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27"},"m":{"d":"229,-151r0,129v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27r0,-119v0,-14,-8,-20,-17,-20v-14,0,-23,11,-23,35r0,104v0,18,-9,27,-22,27v-13,0,-21,-9,-21,-27r0,-119v0,-14,-8,-20,-17,-20v-14,0,-23,11,-23,35r0,104v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27r0,-151v0,-18,9,-26,22,-26v14,0,20,11,23,25v13,-32,65,-35,80,-3v25,-35,86,-31,86,26","w":246},"n":{"d":"19,-22r0,-151v0,-18,9,-26,22,-26v14,0,20,11,23,25v18,-39,83,-34,83,23r0,129v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27r0,-119v0,-14,-8,-20,-17,-20v-14,0,-23,11,-23,35r0,104v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27","w":166},"o":{"d":"80,-165v-26,-6,-19,59,-20,90v0,36,6,45,20,45v14,0,20,-9,20,-45v0,-30,5,-97,-20,-90xm80,5v-74,0,-66,-62,-66,-129v0,-42,13,-75,66,-75v74,0,66,61,66,128v0,42,-13,76,-66,76","w":159},"p":{"d":"65,-116v1,32,-5,88,22,86v22,4,17,-49,18,-78v0,-43,-3,-55,-18,-55v-10,0,-22,8,-22,47xm21,48r0,-221v0,-18,9,-26,22,-26v14,0,20,11,23,26v8,-17,24,-26,39,-26v57,1,46,71,47,128v0,40,-7,76,-47,76v-18,1,-30,-9,-40,-22v-3,33,12,92,-22,92v-13,0,-22,-9,-22,-27","w":166},"q":{"d":"80,-30v27,2,21,-54,22,-86v0,-39,-12,-47,-22,-47v-15,0,-19,12,-19,55v0,30,-3,82,19,78xm145,-173r0,221v0,18,-9,27,-22,27v-34,0,-15,-62,-22,-92v-8,15,-22,22,-39,22v-57,-1,-46,-71,-47,-128v0,-40,7,-76,47,-76v16,-1,30,11,40,26v0,-18,8,-26,21,-26v13,0,22,8,22,26","w":166},"r":{"d":"19,-22r0,-154v0,-14,7,-23,21,-23v23,0,19,24,21,42v6,-24,18,-42,33,-42v12,0,22,8,22,28v0,13,-7,26,-28,26v-43,0,-25,81,-25,123v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27","w":119,"k":{"v":-4,"y":-4,"\u00fd":-4,"\u00ff":-4,",":27,".":27,"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4,"e":4,"\u00e9":4,"\u00ea":4,"\u00eb":4,"\u00e8":4,"o":4,"\u00f8":4,"\u00f3":4,"\u00f4":4,"\u00f6":4,"\u00f2":4,"\u00f5":4,"c":4,"\u00e7":4,"d":4,"g":4,"r":4,"s":4,"-":13}},"s":{"d":"32,-71v32,0,10,44,42,43v24,-1,21,-31,2,-43v-24,-16,-63,-42,-63,-76v0,-35,25,-52,60,-52v47,0,59,31,59,47v0,13,-5,22,-23,22v-26,0,-12,-39,-37,-37v-19,2,-18,24,-5,34v26,20,68,45,68,80v0,38,-27,58,-63,58v-47,0,-61,-31,-61,-54v0,-17,11,-22,21,-22","w":146,"k":{"w":4}},"t":{"d":"24,-34r0,-128v-15,1,-24,-2,-24,-16v0,-14,9,-18,24,-17v-1,-26,-3,-60,22,-60v25,0,23,34,22,60v17,-1,30,1,30,17v0,16,-14,17,-30,16r0,114v-3,21,28,6,28,30v0,15,-9,20,-28,20v-34,0,-44,-18,-44,-36","w":93},"u":{"d":"19,-44r0,-129v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,119v0,14,6,21,17,21v15,0,23,-11,23,-35r0,-105v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,151v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-26v-18,41,-84,34,-84,-23","w":166},"v":{"d":"44,-23r-36,-156v0,-13,10,-20,22,-20v15,0,22,6,25,23r24,127r22,-127v-2,-28,47,-29,44,-5v-7,58,-25,110,-37,166v-3,13,-9,20,-31,20v-23,0,-29,-9,-33,-28","w":153,"k":{",":20,".":20,"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4,"e":4,"\u00e9":4,"\u00ea":4,"\u00eb":4,"\u00e8":4,"o":4,"\u00f8":4,"\u00f3":4,"\u00f4":4,"\u00f6":4,"\u00f2":4,"\u00f5":4}},"w":{"d":"40,-25r-31,-152v0,-14,10,-22,23,-22v15,0,21,10,23,25r19,121r19,-110v1,-40,37,-51,44,-16r25,126r18,-123v1,-30,44,-31,44,-1r-31,154v-4,18,-9,28,-30,28v-22,0,-27,-11,-31,-33r-16,-81r-17,90v-3,15,-12,24,-29,24v-18,0,-26,-9,-30,-30","w":233,"k":{",":13,".":13,"a":6,"\u00e6":6,"\u00e1":6,"\u00e2":6,"\u00e4":6,"\u00e0":6,"\u00e5":6,"\u00e3":6,"e":4,"\u00e9":4,"\u00ea":4,"\u00eb":4,"\u00e8":4,"o":4,"\u00f8":4,"\u00f3":4,"\u00f4":4,"\u00f6":4,"\u00f2":4,"\u00f5":4}},"x":{"d":"7,-15v8,-32,29,-56,41,-84v-12,-25,-32,-51,-38,-80v1,-26,39,-27,45,-3r19,40v13,-18,15,-54,41,-57v25,2,28,20,15,42r-32,57v13,26,35,56,42,84v1,22,-35,29,-45,7r-22,-49v-13,20,-17,57,-43,63v-13,0,-23,-8,-23,-20","w":146},"y":{"d":"23,55v-5,-24,38,-4,30,-39r-46,-195v-2,-25,41,-28,46,-4r26,136r22,-128v-2,-28,45,-33,46,-5r-49,207v-9,38,-18,48,-55,48v-17,0,-20,-11,-20,-20","w":153,"k":{",":20,".":20,"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4}},"z":{"d":"32,-195r88,0v28,0,26,19,15,38r-69,119v29,3,77,-12,78,19v0,13,-8,19,-22,19r-91,0v-26,2,-25,-24,-16,-38r70,-119v-27,-3,-74,12,-75,-18v0,-13,8,-20,22,-20","w":153},"{":{"d":"97,64v-82,0,-66,-60,-66,-122v0,-39,-30,-14,-30,-42v0,-27,30,-3,30,-41v0,-52,-13,-127,43,-123v19,1,38,-5,38,17v1,32,-37,3,-37,39r0,71v0,35,-25,34,-34,38v11,1,34,4,34,37r0,71v-4,36,37,7,37,38v0,12,-7,17,-15,17","w":113},"|":{"d":"19,-20r0,-219v0,-18,9,-26,21,-26v12,0,20,8,20,26r0,219v0,18,-8,26,-20,26v-12,0,-21,-8,-21,-26","w":79},"}":{"d":"16,-264v82,0,66,60,66,123v0,39,30,14,30,41v0,28,-30,4,-30,42v0,52,13,127,-43,122v-19,-2,-38,5,-38,-17v-1,-31,37,-2,37,-38r0,-71v0,-35,25,-34,34,-38v-11,-1,-34,-4,-34,-37r0,-71v4,-36,-37,-7,-37,-39v0,-12,7,-17,15,-17","w":113},"~":{"d":"148,-73v-25,1,-57,-20,-78,-20v-20,0,-25,18,-40,18v-12,0,-15,-7,-15,-16v0,-19,20,-40,51,-40v26,-1,58,20,80,20v20,0,25,-17,40,-17v12,0,15,6,15,15v0,19,-20,40,-53,40","w":216},"\u00a1":{"d":"50,69v-41,-2,-27,-62,-23,-106r7,-76v1,-13,4,-19,16,-19v12,0,15,6,16,19r8,101v-3,32,13,83,-24,81xm23,-172v0,-15,12,-27,27,-27v15,0,27,12,27,27v0,15,-12,27,-27,27v-15,0,-27,-12,-27,-27","w":100},"\u00a2":{"d":"66,-103v0,14,-2,33,1,45r27,-107v-25,0,-28,7,-28,62xm134,-122v-21,5,-18,-24,-26,-36r-31,125v15,8,35,1,35,-20v0,-21,8,-29,21,-29v15,0,20,10,20,25v0,58,-39,66,-85,60v-5,12,-4,35,-17,37v-15,-6,0,-30,1,-42v-36,-16,-28,-65,-30,-113v-2,-53,16,-90,81,-84v2,-12,11,-41,21,-23r-6,26v21,5,35,21,35,53v0,11,-5,21,-19,21","w":172},"\u00a3":{"d":"140,-175v-32,0,-15,-51,-47,-48v-42,4,-29,61,-15,84v22,1,57,-5,57,16v0,17,-27,16,-46,15v11,29,-9,49,-30,73v30,-14,66,10,93,-3v9,0,17,5,17,17v0,41,-74,21,-105,16v-19,3,-52,18,-51,-13v0,-15,35,-28,35,-63v0,-10,-2,-20,-4,-27v-17,2,-38,-1,-36,-15v-1,-9,9,-18,23,-16v-31,-49,-2,-120,63,-120v47,0,70,29,70,61v0,15,-9,23,-24,23","w":172},"\u00a5":{"d":"63,-78r0,-23v-19,-1,-48,5,-46,-15v-2,-16,20,-14,36,-14v-15,-37,-35,-69,-46,-110v0,-21,34,-29,45,0r34,92r35,-92v6,-30,44,-21,45,0v-12,40,-31,73,-46,110v17,0,41,-3,41,14v0,21,-32,14,-52,15r0,23v20,1,52,-6,52,15v0,20,-33,13,-52,14v2,26,0,54,-23,54v-23,0,-25,-28,-23,-54v-18,-1,-46,5,-46,-14v0,-20,27,-15,46,-15","w":172},"\u00a7":{"d":"41,-6v25,0,16,42,44,37v33,-6,25,-40,-3,-58v-28,-17,-70,-47,-70,-85v0,-22,10,-41,28,-53v-32,-39,-19,-100,48,-100v44,0,62,24,62,46v0,12,-9,21,-22,21v-19,5,-21,-38,-39,-33v-34,8,-23,34,1,52v27,20,71,52,71,87v0,22,-12,39,-29,51v42,35,9,106,-49,106v-48,0,-64,-31,-64,-50v0,-14,8,-21,22,-21xm66,-140v-38,30,22,58,41,76v40,-30,-23,-58,-41,-76","w":173},"\u00a4":{"d":"18,-43v-22,-1,-20,-30,-4,-36v-18,-24,-19,-72,0,-96v-15,-7,-18,-35,4,-36v9,-1,16,7,21,12v25,-19,70,-18,95,0v6,-16,37,-16,38,5v1,7,-8,16,-14,19v19,24,20,72,0,96v17,6,19,35,-4,36v-8,0,-15,-7,-20,-12v-25,18,-70,19,-95,0v-6,5,-12,12,-21,12xm44,-127v0,29,16,45,42,45v26,0,43,-16,43,-45v0,-29,-17,-45,-43,-45v-26,0,-42,16,-42,45","w":172},"'":{"d":"40,-166v-30,0,-19,-47,-21,-77v0,-13,10,-22,21,-22v30,1,18,48,20,77v0,13,-9,22,-20,22","w":79},"\u00ab":{"d":"105,-102v11,12,32,21,36,37v-9,36,-40,-2,-52,-13v-34,-30,10,-56,25,-71v8,-9,28,-6,27,10v-4,16,-26,25,-36,37xm42,-102v11,12,31,22,36,37v-10,35,-40,-2,-53,-13v-34,-30,11,-56,26,-71v9,-9,27,-5,27,10v-5,15,-26,25,-36,37","w":153},"\u00b7":{"d":"16,-110v0,-15,12,-27,27,-27v15,0,28,12,28,27v0,15,-13,28,-28,28v-15,0,-27,-13,-27,-28"},"\u00b6":{"d":"58,37r0,-171v-28,0,-51,-22,-51,-61v0,-85,65,-60,134,-64v11,0,18,8,18,21r0,275v0,13,-7,22,-18,22v-12,0,-19,-9,-19,-22r0,-263r-27,0r0,263v0,13,-7,22,-19,22v-11,0,-18,-9,-18,-22","w":173},"\u00bb":{"d":"48,-102v-11,-12,-31,-22,-36,-37v10,-34,41,2,53,13v35,29,-11,57,-26,72v-8,10,-27,4,-27,-11v5,-15,26,-25,36,-37xm112,-102v-11,-12,-32,-21,-36,-37v10,-34,42,3,53,13v33,30,-11,57,-26,72v-9,9,-28,5,-27,-11v4,-16,26,-25,36,-37","w":153},"\u00bf":{"d":"90,33v28,0,14,-44,43,-44v13,0,22,9,22,22v0,33,-24,58,-64,58v-77,0,-88,-86,-43,-128v16,-14,33,-33,33,-54v0,-10,7,-19,20,-19v45,10,5,73,-13,91v-19,18,-21,33,-21,46v0,15,8,28,23,28xm74,-172v0,-15,12,-27,27,-27v15,0,28,12,28,27v0,15,-13,27,-28,27v-15,0,-27,-12,-27,-27","w":173},"`":{"d":"53,-212v-19,-3,-27,-23,-41,-32v-12,-8,-11,-34,6,-32v21,3,31,25,45,36v10,8,4,30,-10,28"},"\u00b4":{"d":"18,-228v6,-19,25,-28,36,-42v10,-11,29,-7,30,9v-8,23,-30,39,-51,49v-9,0,-15,-7,-15,-16"},"\u00af":{"d":"0,-255r86,0v12,0,18,6,18,16v0,10,-6,15,-18,15r-86,0v-12,0,-17,-5,-17,-15v0,-10,5,-16,17,-16"},"\u00a8":{"d":"-14,-240v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24xm53,-240v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24"},"\u00b8":{"d":"54,0r-13,20v21,-1,34,5,36,25v3,32,-60,45,-70,19v3,-22,39,10,41,-18v2,-20,-42,0,-26,-24r14,-22r18,0"},"\u00c6":{"d":"171,-216r0,60v33,3,92,-12,93,21v0,33,-60,19,-93,22r0,70v33,4,96,-13,97,21v0,12,-7,22,-25,22r-94,0v-33,3,-25,-35,-26,-65r-59,0v-11,25,-6,70,-38,70v-22,0,-26,-17,-21,-34r60,-211v4,-13,11,-19,26,-19r152,0v18,0,25,9,25,21v0,35,-64,18,-97,22xm105,-218r-31,115r49,0r0,-115r-18,0","w":280},"\u00aa":{"d":"53,-238v-22,0,-4,26,-34,22v-6,0,-15,-3,-15,-11v0,-22,18,-32,46,-32v80,-1,35,54,50,112v-4,17,-37,11,-36,-5v-11,23,-60,22,-60,-16v0,-34,29,-39,51,-48v13,-5,12,-22,-2,-22xm49,-160v16,1,16,-22,15,-40v-10,6,-28,15,-25,27v0,8,4,13,10,13","w":104},"\u00d8":{"d":"65,-159v0,19,-2,43,1,60r55,-94v-3,-25,-11,-34,-27,-34v-19,0,-29,12,-29,68xm122,-104r0,-57r-55,95v3,26,10,34,27,34v19,0,28,-9,28,-72xm26,-31v-14,-24,-12,-85,-12,-128v0,-95,40,-106,80,-106v23,0,43,4,56,19v3,-18,37,-35,24,-4r-13,21v14,27,12,81,12,125v0,98,-34,110,-79,110v-23,0,-43,-3,-57,-19v-4,11,-21,33,-28,15v1,-9,12,-25,17,-33","w":187,"k":{"T":4,"Y":11,"\u00dd":11,",":13,".":13}},"\u00ba":{"d":"65,-186v0,-18,3,-55,-13,-50v-10,0,-13,5,-13,27v0,18,-3,55,13,49v10,0,13,-4,13,-26xm52,-259v53,1,48,33,48,77v0,25,-9,45,-48,45v-53,-1,-48,-33,-48,-77v0,-25,9,-45,48,-45","w":104},"\u00e6":{"d":"81,-167v-29,-3,-11,37,-42,37v-10,0,-23,-5,-23,-18v-2,-50,69,-66,104,-37v46,-32,112,-8,102,62v7,42,-47,31,-83,32v0,26,-4,62,20,61v24,0,12,-50,39,-43v13,0,22,4,22,21v0,62,-89,75,-114,31v-26,40,-92,37,-92,-27v0,-51,38,-63,70,-79v19,-10,18,-38,-3,-40xm75,-30v25,1,24,-42,23,-71v-16,12,-43,27,-38,48v0,15,6,23,15,23xm139,-122r39,0v1,-21,1,-43,-20,-43v-20,0,-20,22,-19,43","w":233},"\u00f8":{"d":"99,-144v-3,-17,-10,-21,-19,-21v-13,0,-20,9,-20,44r0,41xm20,9v-18,-3,0,-23,4,-31v-15,-24,-10,-65,-10,-102v0,-42,13,-75,66,-75v20,0,35,4,45,13v3,-9,16,-26,23,-11v-1,8,-9,17,-13,24v16,24,10,65,11,102v0,42,-13,76,-66,76v-20,0,-35,-5,-45,-14v-3,6,-8,19,-15,18xm100,-115v-15,19,-25,43,-39,64v3,17,9,21,19,21v14,0,20,-9,20,-45r0,-40","w":159},"\u00df":{"d":"78,-154v0,-24,26,-16,26,-43v0,-14,-3,-31,-19,-31v-14,0,-22,10,-22,29r0,177v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27r0,-183v0,-38,24,-59,68,-59v65,0,84,81,38,108v24,6,29,29,29,60v0,49,-3,98,-54,98v-24,0,-32,-31,-5,-38v11,-3,13,-15,13,-52v0,-29,-3,-43,-17,-48v-9,-3,-13,-9,-13,-18","w":173,"k":{"w":4}},"\u00b9":{"d":"37,-209v-14,-1,-36,5,-35,-10v2,-19,40,-11,41,-29v5,-16,30,-16,30,1r0,131v0,9,-7,15,-18,15v-10,0,-18,-6,-18,-15r0,-93"},"\u00ac":{"d":"185,-163v43,0,25,60,25,97v0,15,-9,26,-19,26v-28,-2,-17,-55,-19,-85r-141,0v-15,0,-25,-9,-25,-19v0,-10,10,-19,25,-19r154,0","w":216},"\u00b5":{"d":"103,-21v-6,12,-25,34,-40,22v-1,29,7,76,-22,74v-13,0,-22,-9,-22,-27r0,-221v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,119v0,14,6,21,17,21v15,0,23,-11,23,-35r0,-105v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,151v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-26","w":166},"\u00d0":{"d":"68,-221r0,67v19,0,37,-3,36,19v0,22,-17,18,-36,18r0,79v51,2,58,-2,61,-83v2,-52,-1,-107,-37,-100r-24,0xm46,0v-47,-2,-19,-77,-26,-117v-16,1,-26,0,-26,-18v0,-17,10,-21,26,-19v6,-38,-18,-105,26,-105r63,0v60,-7,72,66,70,147v-3,108,-41,117,-133,112","w":193,"k":{",":13,".":13}},"\u00bd":{"d":"57,3v31,-93,77,-173,111,-262v4,-11,30,-12,29,2r-112,261v-2,12,-29,13,-28,-1xm34,-209v-14,-1,-35,5,-35,-10v0,-19,40,-11,41,-29v5,-16,31,-16,31,1r0,131v0,9,-8,15,-19,15v-10,0,-18,-6,-18,-15r0,-93xm209,-131v-19,-2,-7,39,-31,34v-14,0,-16,-8,-16,-17v0,-25,16,-42,46,-42v57,0,65,51,31,81v-14,12,-38,33,-41,48v22,4,63,-11,63,13v0,11,-7,14,-17,14r-70,0v-9,0,-14,-3,-14,-12v-5,-11,22,-50,42,-68v17,-15,21,-23,21,-33v0,-10,-6,-18,-14,-18","w":266},"\u00b1":{"d":"89,-150v-1,-23,-2,-54,19,-54v21,0,20,31,19,54v30,2,83,-9,83,19v0,28,-53,17,-83,19v1,23,2,54,-19,54v-20,0,-20,-31,-19,-54v-30,-2,-83,9,-83,-19v0,-28,53,-17,83,-19xm31,-38r154,0v15,0,25,9,25,19v0,10,-10,19,-25,19r-154,0v-15,0,-25,-9,-25,-19v0,-10,10,-19,25,-19","w":216},"\u00de":{"d":"20,-20r0,-219v0,-15,11,-25,24,-25v21,-1,27,22,24,47v63,-4,103,4,104,73v1,58,-38,85,-104,76v-1,31,7,74,-24,73v-13,0,-24,-10,-24,-25xm68,-181r0,76v33,3,53,-4,53,-37v0,-39,-19,-41,-53,-39","w":180},"\u00bc":{"d":"210,-52v-1,-20,2,-43,-1,-61r-31,61r32,0xm226,5v-16,0,-17,-13,-16,-29v-29,0,-76,6,-56,-32r47,-89v2,-14,46,-10,41,5r0,88v11,0,19,0,19,14v0,14,-8,14,-19,14v1,16,0,29,-16,29xm59,3v31,-93,77,-172,111,-262v4,-11,29,-11,28,2v-32,92,-77,172,-111,261v-4,11,-29,14,-28,-1xm34,-209v-14,-1,-35,5,-35,-10v0,-19,40,-11,41,-29v5,-16,31,-16,31,1r0,131v0,9,-8,15,-19,15v-10,0,-18,-6,-18,-15r0,-93","w":266},"\u00f7":{"d":"31,-121r154,0v15,0,25,9,25,19v0,10,-10,19,-25,19r-154,0v-15,0,-25,-9,-25,-19v0,-10,10,-19,25,-19xm81,-178v0,-15,12,-28,27,-28v15,0,27,13,27,28v0,15,-12,27,-27,27v-15,0,-27,-12,-27,-27xm81,-26v0,-15,12,-27,27,-27v15,0,27,12,27,27v0,15,-12,28,-27,28v-15,0,-27,-13,-27,-28","w":216},"\u00a6":{"d":"40,6v-31,1,-21,-55,-21,-86v0,-18,9,-27,21,-27v30,0,20,56,20,87v0,18,-8,26,-20,26xm40,-153v-31,1,-21,-55,-21,-86v0,-18,9,-26,21,-26v30,0,20,56,20,86v0,18,-8,26,-20,26","w":79},"\u00b0":{"d":"21,-208v0,-29,22,-51,51,-51v29,0,51,22,51,51v0,29,-22,52,-51,52v-29,0,-51,-23,-51,-52xm48,-208v0,13,11,24,24,24v13,0,24,-11,24,-24v0,-13,-11,-24,-24,-24v-13,0,-24,11,-24,24","w":144},"\u00fe":{"d":"65,-116v1,32,-5,88,22,86v22,4,17,-49,18,-78v0,-43,-3,-55,-18,-55v-10,0,-22,8,-22,47xm105,5v-18,0,-31,-8,-40,-23v-3,33,12,93,-22,93v-13,0,-22,-9,-22,-27r0,-286v0,-18,9,-26,22,-26v35,-1,17,61,23,91v8,-17,24,-26,39,-26v57,1,46,71,47,128v0,40,-7,76,-47,76","w":166,"k":{",":13,".":13}},"\u00be":{"d":"210,-52v-1,-20,2,-43,-1,-61r-31,61r32,0xm226,5v-16,0,-17,-13,-16,-29v-29,0,-76,6,-56,-32r47,-89v2,-14,46,-10,41,5r0,88v11,0,19,0,19,14v0,14,-8,14,-19,14v1,16,0,29,-16,29xm70,3v31,-93,77,-173,111,-262v4,-11,30,-12,29,2r-112,261v-2,12,-29,13,-28,-1xm55,-236v-19,-2,-10,25,-33,25v-11,0,-15,-5,-15,-13v0,-20,13,-35,47,-35v39,0,51,17,51,40v1,16,-8,26,-20,32v43,16,30,86,-30,86v-44,0,-51,-26,-51,-39v0,-10,5,-18,17,-18v26,0,11,35,35,34v13,0,17,-11,17,-24v0,-36,-36,-17,-36,-37v0,-18,39,-7,32,-35v0,-8,-3,-16,-14,-16","w":266},"\u00b2":{"d":"55,-234v-19,-2,-7,38,-31,33v-14,0,-16,-8,-16,-17v0,-25,16,-41,46,-41v57,0,65,51,31,81v-14,11,-38,32,-41,47v23,3,61,-11,63,14v0,11,-7,14,-17,14r-70,0v-9,0,-14,-4,-14,-13v-5,-11,21,-50,42,-67v18,-14,21,-23,21,-33v0,-10,-6,-18,-14,-18","w":112},"\u00ae":{"d":"90,-77r0,-111v1,-26,38,-16,62,-16v33,0,53,9,53,43v0,27,-17,40,-30,41v9,15,22,25,28,44v1,17,-29,21,-36,3r-33,-47r-11,0v-2,22,8,60,-16,59v-9,0,-17,-5,-17,-16xm123,-179r0,34v20,-2,45,7,45,-17v0,-24,-25,-15,-45,-17xm8,-130v0,-75,61,-135,136,-135v75,0,136,60,136,135v0,75,-61,136,-136,136v-75,0,-136,-61,-136,-136xm49,-130v0,58,40,98,95,98v55,0,95,-40,95,-98v0,-58,-40,-97,-95,-97v-55,0,-95,39,-95,97","w":288},"\u00f0":{"d":"60,-106v1,28,-6,87,20,80v15,0,20,-8,20,-40v-1,-28,6,-87,-20,-80v-15,0,-20,8,-20,40xm80,5v-73,-1,-67,-52,-66,-115v-10,-47,49,-87,88,-55v-3,-19,-8,-35,-17,-50v-11,6,-41,26,-46,3v-3,-13,17,-17,26,-23v-12,-11,-31,-11,-31,-23v9,-30,49,-10,64,6v10,-6,38,-23,45,-3v1,13,-17,18,-26,24v33,42,30,100,29,168v0,37,-13,68,-66,68","w":159},"\u00d7":{"d":"81,-102v-18,-23,-51,-37,-59,-70v2,-18,24,-19,37,-6r49,49v23,-18,39,-50,69,-59v20,1,21,25,8,37r-50,49v18,23,51,37,59,70v-2,18,-24,19,-37,6r-49,-49v-23,18,-39,50,-69,59v-20,-1,-21,-25,-8,-37","w":216},"\u00b3":{"d":"55,-236v-19,0,-9,25,-32,25v-11,0,-16,-5,-16,-13v0,-20,13,-35,47,-35v39,0,52,17,52,40v1,16,-8,26,-20,32v42,17,28,86,-31,86v-44,0,-51,-26,-51,-39v0,-10,5,-18,17,-18v26,0,11,35,35,34v13,0,17,-11,17,-24v0,-36,-36,-18,-36,-37v0,-18,39,-7,32,-35v0,-8,-3,-16,-14,-16","w":113},"\u00a9":{"d":"149,-85v24,0,29,-32,46,-31v9,0,15,6,15,16v0,14,-21,47,-60,47v-43,0,-72,-34,-72,-78v0,-45,27,-78,71,-78v37,0,60,25,60,44v0,10,-5,17,-15,17v-22,0,-16,-28,-45,-28v-20,0,-33,17,-33,45v0,27,12,46,33,46xm8,-130v0,-75,61,-135,136,-135v75,0,136,60,136,135v0,75,-61,136,-136,136v-75,0,-136,-61,-136,-136xm49,-130v0,58,40,98,95,98v55,0,95,-40,95,-98v0,-58,-40,-97,-95,-97v-55,0,-95,39,-95,97","w":288},"\u00c1":{"d":"122,-65r-60,0v-8,26,-2,71,-35,70v-23,0,-24,-20,-19,-41r46,-194v6,-26,12,-34,39,-34v24,0,34,8,40,34r49,212v0,16,-12,23,-24,23v-31,0,-29,-44,-36,-70xm70,-103r44,0r-22,-108xm71,-292v5,-20,25,-28,36,-43v10,-11,29,-6,29,10v-9,22,-29,39,-50,49v-9,0,-15,-7,-15,-16","w":186},"\u00c2":{"d":"122,-65r-60,0v-8,26,-2,71,-35,70v-23,0,-24,-20,-19,-41r46,-194v6,-26,12,-34,39,-34v24,0,34,8,40,34r49,212v0,16,-12,23,-24,23v-31,0,-29,-44,-36,-70xm70,-103r44,0r-22,-108xm66,-276v-31,-5,-6,-37,3,-50v14,-21,39,-21,53,0v9,13,35,45,4,50v-18,-3,-20,-25,-30,-37v-10,12,-13,33,-30,37","w":186},"\u00c4":{"d":"122,-65r-60,0v-8,26,-2,71,-35,70v-23,0,-24,-20,-19,-41r46,-194v6,-26,12,-34,39,-34v24,0,34,8,40,34r49,212v0,16,-12,23,-24,23v-31,0,-29,-44,-36,-70xm70,-103r44,0r-22,-108xm38,-304v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24xm105,-304v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24","w":186},"\u00c0":{"d":"122,-65r-60,0v-8,26,-2,71,-35,70v-23,0,-24,-20,-19,-41r46,-194v6,-26,12,-34,39,-34v24,0,34,8,40,34r49,212v0,16,-12,23,-24,23v-31,0,-29,-44,-36,-70xm70,-103r44,0r-22,-108xm121,-292v-11,37,-44,-5,-57,-17v-14,-8,-10,-33,7,-32v23,8,39,29,50,49","w":186},"\u00c5":{"d":"122,-65r-60,0v-8,26,-2,71,-35,70v-23,0,-24,-20,-19,-41r46,-194v6,-26,12,-34,39,-34v24,0,34,8,40,34r49,212v0,16,-12,23,-24,23v-31,0,-29,-44,-36,-70xm70,-103r44,0r-22,-108xm55,-309v0,-21,18,-38,39,-38v21,0,38,17,38,38v0,21,-17,38,-38,38v-21,0,-39,-17,-39,-38xm76,-309v0,10,8,17,18,17v10,0,17,-7,17,-17v0,-10,-7,-18,-17,-18v-10,0,-18,8,-18,18","w":186},"\u00c3":{"d":"122,-65r-60,0v-8,26,-2,71,-35,70v-23,0,-24,-20,-19,-41r46,-194v6,-26,12,-34,39,-34v24,0,34,8,40,34r49,212v0,16,-12,23,-24,23v-31,0,-29,-44,-36,-70xm70,-103r44,0r-22,-108xm36,-293v0,-14,20,-31,36,-31v18,0,34,10,42,10v14,-4,41,-26,41,0v0,15,-17,32,-35,32v-7,0,-39,-9,-44,-9v-12,6,-40,23,-40,-2","w":186},"\u00c7":{"d":"96,-32v35,3,13,-75,50,-66v17,0,25,12,25,29v0,50,-28,72,-70,75r-9,14v20,-1,34,6,36,25v3,32,-61,45,-71,19v3,-22,41,10,42,-18v2,-19,-43,0,-27,-24r10,-16v-81,-12,-68,-83,-68,-154v0,-91,26,-117,84,-117v48,0,72,28,72,64v0,17,-6,29,-24,29v-35,8,-17,-55,-48,-55v-22,0,-33,10,-33,87v0,57,-2,114,31,108","w":180},"\u00c9":{"d":"68,-113r0,70v34,4,99,-14,100,21v0,12,-7,22,-25,22r-97,0v-18,0,-26,-8,-26,-26r0,-207v0,-18,8,-26,26,-26r94,0v18,0,25,9,25,21v0,35,-64,18,-97,22r0,60v33,3,92,-12,93,21v0,33,-60,19,-93,22xm69,-292v6,-19,25,-28,36,-43v10,-12,29,-6,30,10v-9,22,-29,39,-50,49v-9,0,-16,-7,-16,-16","w":180},"\u00ca":{"d":"68,-113r0,70v34,4,99,-14,100,21v0,12,-7,22,-25,22r-97,0v-18,0,-26,-8,-26,-26r0,-207v0,-18,8,-26,26,-26r94,0v18,0,25,9,25,21v0,35,-64,18,-97,22r0,60v33,3,92,-12,93,21v0,33,-60,19,-93,22xm64,-276v-31,-5,-5,-37,4,-50v28,-40,67,7,72,35v3,16,-20,19,-28,7r-18,-29v-10,12,-12,34,-30,37","w":180},"\u00cb":{"d":"68,-113r0,70v34,4,99,-14,100,21v0,12,-7,22,-25,22r-97,0v-18,0,-26,-8,-26,-26r0,-207v0,-18,8,-26,26,-26r94,0v18,0,25,9,25,21v0,35,-64,18,-97,22r0,60v33,3,92,-12,93,21v0,33,-60,19,-93,22xm37,-304v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24xm104,-304v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24","w":180},"\u00c8":{"d":"68,-113r0,70v34,4,99,-14,100,21v0,12,-7,22,-25,22r-97,0v-18,0,-26,-8,-26,-26r0,-207v0,-18,8,-26,26,-26r94,0v18,0,25,9,25,21v0,35,-64,18,-97,22r0,60v33,3,92,-12,93,21v0,33,-60,19,-93,22xm104,-276v-19,-3,-27,-24,-41,-33v-13,-8,-11,-34,6,-32v22,2,31,25,45,37v10,8,4,30,-10,28","w":180},"\u00cd":{"d":"22,-20r0,-219v0,-15,11,-25,24,-25v13,0,25,10,25,25r0,219v0,15,-12,25,-25,25v-13,0,-24,-10,-24,-25xm39,-276v-36,-13,8,-46,20,-59v10,-12,29,-6,30,10v-9,22,-29,39,-50,49","w":92},"\u00ce":{"d":"22,-20r0,-219v0,-15,11,-25,24,-25v13,0,25,10,25,25r0,219v0,15,-12,25,-25,25v-13,0,-24,-10,-24,-25xm16,-276v-31,-5,-5,-37,4,-50v29,-40,65,8,73,35v1,16,-21,19,-29,7r-18,-29v-10,12,-12,34,-30,37","w":92},"\u00cf":{"d":"22,-20r0,-219v0,-15,11,-25,24,-25v13,0,25,10,25,25r0,219v0,15,-12,25,-25,25v-13,0,-24,-10,-24,-25xm-11,-304v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24xm56,-304v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24","w":92},"\u00cc":{"d":"22,-20r0,-219v0,-15,11,-25,24,-25v13,0,25,10,25,25r0,219v0,15,-12,25,-25,25v-13,0,-24,-10,-24,-25xm58,-276v-19,-3,-27,-24,-41,-33v-13,-9,-10,-34,7,-32v21,2,30,25,44,37v10,8,4,30,-10,28","w":92},"\u00d1":{"d":"20,-20r0,-219v2,-32,46,-34,60,0r58,141r0,-141v0,-15,11,-25,24,-25v13,0,24,10,24,25r0,217v-1,38,-47,33,-60,2r-58,-144r0,144v0,15,-11,25,-24,25v-13,0,-24,-10,-24,-25xm44,-293v0,-14,19,-31,35,-31v18,0,34,10,42,10v14,-4,36,-25,42,0v0,15,-17,32,-35,32v-7,0,-39,-9,-44,-9v-12,5,-40,24,-40,-2","w":206,"k":{",":11,".":11}},"\u00d3":{"d":"14,-104r0,-55v0,-95,40,-106,80,-106v40,0,79,11,79,106r0,55v0,98,-34,110,-79,110v-45,0,-80,-12,-80,-110xm65,-159r0,55v0,63,10,72,29,72v19,0,28,-9,28,-72r0,-55v0,-56,-9,-68,-28,-68v-19,0,-29,12,-29,68xm84,-276v-36,-13,8,-46,20,-59v10,-12,29,-6,30,10v-9,22,-29,39,-50,49","w":187,"k":{"T":4,"Y":11,"\u00dd":11,",":13,".":13}},"\u00d4":{"d":"14,-104r0,-55v0,-95,40,-106,80,-106v40,0,79,11,79,106r0,55v0,98,-34,110,-79,110v-45,0,-80,-12,-80,-110xm65,-159r0,55v0,63,10,72,29,72v19,0,28,-9,28,-72r0,-55v0,-56,-9,-68,-28,-68v-19,0,-29,12,-29,68xm63,-276v-30,-5,-4,-38,4,-50v14,-21,39,-21,53,0v8,14,36,44,4,50v-18,-3,-20,-25,-30,-37v-10,12,-13,33,-31,37","w":187,"k":{"T":4,"Y":11,"\u00dd":11,",":13,".":13}},"\u00d6":{"d":"14,-104r0,-55v0,-95,40,-106,80,-106v40,0,79,11,79,106r0,55v0,98,-34,110,-79,110v-45,0,-80,-12,-80,-110xm65,-159r0,55v0,63,10,72,29,72v19,0,28,-9,28,-72r0,-55v0,-56,-9,-68,-28,-68v-19,0,-29,12,-29,68xm36,-304v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24xm103,-304v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24","w":187,"k":{"T":4,"Y":11,"\u00dd":11,",":13,".":13}},"\u00d2":{"d":"14,-104r0,-55v0,-95,40,-106,80,-106v40,0,79,11,79,106r0,55v0,98,-34,110,-79,110v-45,0,-80,-12,-80,-110xm65,-159r0,55v0,63,10,72,29,72v19,0,28,-9,28,-72r0,-55v0,-56,-9,-68,-28,-68v-19,0,-29,12,-29,68xm103,-276v-19,-3,-27,-24,-41,-33v-13,-9,-10,-34,7,-32v21,2,30,25,44,37v10,8,4,30,-10,28","w":187,"k":{"T":4,"Y":11,"\u00dd":11,",":13,".":13}},"\u00d5":{"d":"14,-104r0,-55v0,-95,40,-106,80,-106v40,0,79,11,79,106r0,55v0,98,-34,110,-79,110v-45,0,-80,-12,-80,-110xm65,-159r0,55v0,63,10,72,29,72v19,0,28,-9,28,-72r0,-55v0,-56,-9,-68,-28,-68v-19,0,-29,12,-29,68xm34,-293v0,-14,19,-31,35,-31v18,0,35,10,43,10v14,-4,41,-26,41,0v0,15,-17,32,-35,32v-7,0,-39,-9,-44,-9v-12,6,-40,23,-40,-2","w":187,"k":{"T":4,"Y":11,"\u00dd":11,",":13,".":13}},"\u00da":{"d":"97,6v-116,0,-79,-143,-79,-245v0,-15,11,-25,24,-25v13,0,25,10,25,25r0,166v0,28,12,41,30,41v18,0,30,-13,30,-41r0,-166v0,-15,11,-25,24,-25v13,0,24,10,24,25v0,101,38,245,-78,245xm72,-292v5,-20,25,-28,36,-43v10,-12,29,-6,30,10v-9,22,-30,39,-51,49v-9,0,-15,-7,-15,-16","w":193,"k":{",":13,".":13}},"\u00db":{"d":"97,6v-116,0,-79,-143,-79,-245v0,-15,11,-25,24,-25v13,0,25,10,25,25r0,166v0,28,12,41,30,41v18,0,30,-13,30,-41r0,-166v0,-15,11,-25,24,-25v13,0,24,10,24,25v0,101,38,245,-78,245xm67,-276v-31,-5,-5,-38,4,-50v29,-39,65,8,72,35v1,16,-22,20,-29,7r-17,-29v-10,12,-12,34,-30,37","w":193,"k":{",":13,".":13}},"\u00dc":{"d":"97,6v-116,0,-79,-143,-79,-245v0,-15,11,-25,24,-25v13,0,25,10,25,25r0,166v0,28,12,41,30,41v18,0,30,-13,30,-41r0,-166v0,-15,11,-25,24,-25v13,0,24,10,24,25v0,101,38,245,-78,245xm39,-304v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24xm106,-304v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24","w":193,"k":{",":13,".":13}},"\u00d9":{"d":"97,6v-116,0,-79,-143,-79,-245v0,-15,11,-25,24,-25v13,0,25,10,25,25r0,166v0,28,12,41,30,41v18,0,30,-13,30,-41r0,-166v0,-15,11,-25,24,-25v13,0,24,10,24,25v0,101,38,245,-78,245xm107,-276v-19,-4,-28,-24,-42,-33v-13,-9,-10,-33,7,-32v23,8,39,29,50,49v0,9,-6,16,-15,16","w":193,"k":{",":13,".":13}},"\u00dd":{"d":"87,5v-40,0,-19,-73,-24,-112v-18,-46,-43,-85,-57,-135v0,-15,12,-22,24,-22v15,0,19,5,26,23r31,82r33,-86v7,-30,46,-21,47,1v-13,50,-39,89,-56,135v-5,40,17,114,-24,114xm62,-292v5,-20,25,-28,36,-43v10,-11,29,-6,29,10v-9,22,-29,39,-50,49v-9,0,-15,-7,-15,-16","w":173,"k":{",":40,".":40,"a":20,"\u00e6":20,"\u00e1":20,"\u00e2":20,"\u00e4":20,"\u00e0":20,"\u00e5":20,"\u00e3":20,"A":20,"\u00c6":20,"\u00c1":20,"\u00c2":20,"\u00c4":20,"\u00c0":20,"\u00c5":20,"\u00c3":20,"e":20,"\u00e9":20,"\u00ea":20,"\u00eb":20,"\u00e8":20,"i":6,"\u00ed":6,"\u00ee":6,"\u00ef":6,"\u00ec":6,"o":20,"\u00f8":20,"\u00f3":20,"\u00f4":20,"\u00f6":20,"\u00f2":20,"\u00f5":20,"-":27,"O":11,"\u00d8":11,"\u00d3":11,"\u00d4":11,"\u00d6":11,"\u00d2":11,"\u00d5":11,"u":13,"\u00fa":13,"\u00fb":13,"\u00fc":13,"\u00f9":13,":":13,";":13}},"\u00e1":{"d":"81,-167v-29,-3,-11,37,-42,37v-10,0,-23,-5,-23,-18v0,-34,27,-51,61,-51v112,0,46,99,68,186v0,12,-8,18,-22,18v-13,0,-21,-9,-24,-25v-21,42,-85,32,-85,-28v0,-51,38,-63,70,-79v19,-10,18,-38,-3,-40xm75,-30v25,1,24,-42,23,-71v-16,12,-43,27,-38,48v0,15,6,23,15,23xm55,-228v5,-20,25,-28,36,-42v10,-11,29,-7,30,9v-8,23,-30,39,-51,49v-9,0,-15,-7,-15,-16","w":159},"\u00e2":{"d":"81,-167v-29,-3,-11,37,-42,37v-10,0,-23,-5,-23,-18v0,-34,27,-51,61,-51v112,0,46,99,68,186v0,12,-8,18,-22,18v-13,0,-21,-9,-24,-25v-21,42,-85,32,-85,-28v0,-51,38,-63,70,-79v19,-10,18,-38,-3,-40xm75,-30v25,1,24,-42,23,-71v-16,12,-43,27,-38,48v0,15,6,23,15,23xm50,-212v-31,-5,-6,-37,4,-49v29,-39,64,7,72,34v1,16,-22,20,-29,7r-17,-29v-10,12,-12,34,-30,37","w":159},"\u00e4":{"d":"81,-167v-29,-3,-11,37,-42,37v-10,0,-23,-5,-23,-18v0,-34,27,-51,61,-51v112,0,46,99,68,186v0,12,-8,18,-22,18v-13,0,-21,-9,-24,-25v-21,42,-85,32,-85,-28v0,-51,38,-63,70,-79v19,-10,18,-38,-3,-40xm75,-30v25,1,24,-42,23,-71v-16,12,-43,27,-38,48v0,15,6,23,15,23xm22,-240v0,-13,11,-24,24,-24v13,0,25,11,25,24v0,13,-12,24,-25,24v-13,0,-24,-11,-24,-24xm89,-240v0,-13,11,-24,24,-24v13,0,25,11,25,24v0,13,-12,24,-25,24v-13,0,-24,-11,-24,-24","w":159},"\u00e0":{"d":"81,-167v-29,-3,-11,37,-42,37v-10,0,-23,-5,-23,-18v0,-34,27,-51,61,-51v112,0,46,99,68,186v0,12,-8,18,-22,18v-13,0,-21,-9,-24,-25v-21,42,-85,32,-85,-28v0,-51,38,-63,70,-79v19,-10,18,-38,-3,-40xm75,-30v25,1,24,-42,23,-71v-16,12,-43,27,-38,48v0,15,6,23,15,23xm90,-212v-19,-4,-28,-22,-42,-32v-13,-8,-11,-33,7,-32v23,8,39,28,50,48v0,9,-6,16,-15,16","w":159},"\u00e5":{"d":"81,-167v-29,-3,-11,37,-42,37v-10,0,-23,-5,-23,-18v0,-34,27,-51,61,-51v112,0,46,99,68,186v0,12,-8,18,-22,18v-13,0,-21,-9,-24,-25v-21,42,-85,32,-85,-28v0,-51,38,-63,70,-79v19,-10,18,-38,-3,-40xm75,-30v25,1,24,-42,23,-71v-16,12,-43,27,-38,48v0,15,6,23,15,23xm45,-250v0,-21,18,-38,39,-38v21,0,38,17,38,38v0,21,-17,38,-38,38v-21,0,-39,-17,-39,-38xm66,-250v0,10,8,17,18,17v10,0,17,-7,17,-17v0,-10,-7,-17,-17,-17v-10,0,-18,7,-18,17","w":159},"\u00e3":{"d":"81,-167v-29,-3,-11,37,-42,37v-10,0,-23,-5,-23,-18v0,-34,27,-51,61,-51v112,0,46,99,68,186v0,12,-8,18,-22,18v-13,0,-21,-9,-24,-25v-21,42,-85,32,-85,-28v0,-51,38,-63,70,-79v19,-10,18,-38,-3,-40xm75,-30v25,1,24,-42,23,-71v-16,12,-43,27,-38,48v0,15,6,23,15,23xm21,-229v0,-14,19,-30,35,-30v18,0,34,9,42,9v14,-4,41,-24,41,1v0,15,-17,32,-35,32v-7,0,-39,-9,-44,-9v-12,6,-39,23,-39,-3","w":159},"\u00e7":{"d":"61,36v-17,-5,5,-23,8,-32v-62,-5,-53,-60,-54,-119v0,-47,6,-84,65,-84v50,0,60,35,60,53v0,17,-9,25,-21,25v-30,6,-14,-44,-39,-44v-29,0,-19,58,-19,89v0,32,5,46,19,46v24,0,11,-62,39,-51v13,0,21,9,21,25v0,18,-8,56,-52,60r-10,16v20,-1,34,6,36,25v3,32,-61,45,-71,19v3,-22,41,10,42,-18v0,-10,-14,-12,-24,-10","w":153,"k":{",":13,".":13}},"\u00e9":{"d":"60,-122r38,0v1,-21,1,-43,-19,-43v-20,0,-20,22,-19,43xm81,5v-77,2,-66,-56,-67,-123v0,-50,7,-81,67,-81v46,0,61,25,61,76v0,43,-46,31,-82,32v0,26,-4,62,20,61v23,0,11,-51,38,-43v13,0,22,4,22,21v0,35,-23,57,-59,57xm54,-228v5,-20,25,-28,36,-42v10,-11,29,-7,30,9v-8,23,-30,39,-51,49v-9,0,-15,-7,-15,-16","w":153,"k":{",":13,".":13}},"\u00ea":{"d":"60,-122r38,0v1,-21,1,-43,-19,-43v-20,0,-20,22,-19,43xm81,5v-77,2,-66,-56,-67,-123v0,-50,7,-81,67,-81v46,0,61,25,61,76v0,43,-46,31,-82,32v0,26,-4,62,20,61v23,0,11,-51,38,-43v13,0,22,4,22,21v0,35,-23,57,-59,57xm49,-212v-31,-5,-6,-37,4,-49v29,-39,64,7,72,34v1,16,-22,20,-29,7r-17,-29v-10,12,-12,34,-30,37","w":153,"k":{",":13,".":13}},"\u00eb":{"d":"60,-122r38,0v1,-21,1,-43,-19,-43v-20,0,-20,22,-19,43xm81,5v-77,2,-66,-56,-67,-123v0,-50,7,-81,67,-81v46,0,61,25,61,76v0,43,-46,31,-82,32v0,26,-4,62,20,61v23,0,11,-51,38,-43v13,0,22,4,22,21v0,35,-23,57,-59,57xm21,-240v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24xm88,-240v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24","w":153,"k":{",":13,".":13}},"\u00e8":{"d":"60,-122r38,0v1,-21,1,-43,-19,-43v-20,0,-20,22,-19,43xm81,5v-77,2,-66,-56,-67,-123v0,-50,7,-81,67,-81v46,0,61,25,61,76v0,43,-46,31,-82,32v0,26,-4,62,20,61v23,0,11,-51,38,-43v13,0,22,4,22,21v0,35,-23,57,-59,57xm89,-212v-19,-4,-28,-22,-42,-32v-13,-8,-11,-33,7,-32v23,8,39,28,50,48v0,9,-6,16,-15,16","w":153,"k":{",":13,".":13}},"\u00ed":{"d":"21,-22r0,-151v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,151v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27xm18,-228v6,-19,25,-28,36,-42v10,-11,29,-7,30,9v-8,23,-30,39,-51,49v-9,0,-15,-7,-15,-16"},"\u00ee":{"d":"21,-22r0,-151v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,151v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27xm13,-212v-31,-5,-6,-37,4,-49v29,-39,64,7,72,34v1,16,-22,20,-29,7r-17,-29v-10,12,-12,34,-30,37"},"\u00ef":{"d":"21,-22r0,-151v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,151v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27xm-14,-240v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24xm53,-240v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24"},"\u00ec":{"d":"21,-22r0,-151v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,151v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27xm53,-212v-19,-3,-27,-23,-41,-32v-12,-8,-11,-34,6,-32v21,3,31,25,45,36v10,8,4,30,-10,28"},"\u00f1":{"d":"19,-22r0,-151v0,-18,9,-26,22,-26v14,0,20,11,23,25v18,-39,83,-34,83,23r0,129v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27r0,-119v0,-14,-8,-20,-17,-20v-14,0,-23,11,-23,35r0,104v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-27xm26,-229v0,-14,20,-30,36,-30v18,0,34,9,42,9v14,-4,41,-24,41,1v0,15,-17,32,-35,32v-7,0,-39,-9,-44,-9v-13,6,-40,23,-40,-3","w":166},"\u00f3":{"d":"80,-165v-26,-6,-19,59,-20,90v0,36,6,45,20,45v14,0,20,-9,20,-45v0,-30,5,-97,-20,-90xm80,5v-74,0,-66,-62,-66,-129v0,-42,13,-75,66,-75v74,0,66,61,66,128v0,42,-13,76,-66,76xm55,-228v5,-20,25,-28,36,-42v10,-11,29,-7,30,9v-8,23,-30,39,-51,49v-9,0,-15,-7,-15,-16","w":159},"\u00f4":{"d":"80,-165v-26,-6,-19,59,-20,90v0,36,6,45,20,45v14,0,20,-9,20,-45v0,-30,5,-97,-20,-90xm80,5v-74,0,-66,-62,-66,-129v0,-42,13,-75,66,-75v74,0,66,61,66,128v0,42,-13,76,-66,76xm50,-212v-31,-5,-6,-37,4,-49v29,-39,64,7,72,34v1,16,-22,20,-29,7r-17,-29v-10,12,-12,34,-30,37","w":159},"\u00f6":{"d":"80,-165v-26,-6,-19,59,-20,90v0,36,6,45,20,45v14,0,20,-9,20,-45v0,-30,5,-97,-20,-90xm80,5v-74,0,-66,-62,-66,-129v0,-42,13,-75,66,-75v74,0,66,61,66,128v0,42,-13,76,-66,76xm22,-240v0,-13,11,-24,24,-24v13,0,25,11,25,24v0,13,-12,24,-25,24v-13,0,-24,-11,-24,-24xm89,-240v0,-13,11,-24,24,-24v13,0,25,11,25,24v0,13,-12,24,-25,24v-13,0,-24,-11,-24,-24","w":159},"\u00f2":{"d":"80,-165v-26,-6,-19,59,-20,90v0,36,6,45,20,45v14,0,20,-9,20,-45v0,-30,5,-97,-20,-90xm80,5v-74,0,-66,-62,-66,-129v0,-42,13,-75,66,-75v74,0,66,61,66,128v0,42,-13,76,-66,76xm90,-212v-19,-4,-28,-22,-42,-32v-13,-8,-11,-33,7,-32v23,8,39,28,50,48v0,9,-6,16,-15,16","w":159},"\u00f5":{"d":"80,-165v-26,-6,-19,59,-20,90v0,36,6,45,20,45v14,0,20,-9,20,-45v0,-30,5,-97,-20,-90xm80,5v-74,0,-66,-62,-66,-129v0,-42,13,-75,66,-75v74,0,66,61,66,128v0,42,-13,76,-66,76xm21,-229v0,-14,19,-30,35,-30v18,0,34,9,42,9v14,-4,41,-24,41,1v0,15,-17,32,-35,32v-7,0,-39,-9,-44,-9v-12,6,-39,23,-39,-3","w":159},"\u00fa":{"d":"19,-44r0,-129v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,119v0,14,6,21,17,21v15,0,23,-11,23,-35r0,-105v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,151v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-26v-18,41,-84,34,-84,-23xm76,-212v-36,-12,8,-46,20,-58v10,-11,30,-8,30,9v-8,23,-29,39,-50,49","w":166},"\u00fb":{"d":"19,-44r0,-129v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,119v0,14,6,21,17,21v15,0,23,-11,23,-35r0,-105v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,151v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-26v-18,41,-84,34,-84,-23xm55,-212v-30,-5,-5,-37,4,-49v30,-39,64,7,73,34v1,16,-22,20,-29,7r-17,-29v-10,12,-13,33,-31,37","w":166},"\u00fc":{"d":"19,-44r0,-129v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,119v0,14,6,21,17,21v15,0,23,-11,23,-35r0,-105v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,151v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-26v-18,41,-84,34,-84,-23xm28,-240v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24xm95,-240v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24","w":166},"\u00f9":{"d":"19,-44r0,-129v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,119v0,14,6,21,17,21v15,0,23,-11,23,-35r0,-105v0,-18,9,-26,22,-26v13,0,22,8,22,26r0,151v0,18,-9,27,-22,27v-13,0,-22,-9,-22,-26v-18,41,-84,34,-84,-23xm111,-228v-11,36,-45,-4,-57,-16v-13,-8,-11,-33,7,-32v23,8,39,28,50,48","w":166},"\u00fd":{"d":"23,55v-5,-24,38,-4,30,-39r-46,-195v-2,-25,41,-28,46,-4r26,136r22,-128v-2,-28,45,-33,46,-5r-49,207v-9,38,-18,48,-55,48v-17,0,-20,-11,-20,-20xm67,-212v-36,-12,8,-46,20,-58v10,-11,30,-8,30,9v-8,23,-29,39,-50,49","w":153,"k":{",":20,".":20,"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4}},"\u00ff":{"d":"23,55v-5,-24,38,-4,30,-39r-46,-195v-2,-25,41,-28,46,-4r26,136r22,-128v-2,-28,45,-33,46,-5r-49,207v-9,38,-18,48,-55,48v-17,0,-20,-11,-20,-20xm19,-240v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24xm86,-240v0,-13,11,-24,24,-24v13,0,24,11,24,24v0,13,-11,24,-24,24v-13,0,-24,-11,-24,-24","w":153,"k":{",":20,".":20,"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4}},"\u00a0":{},"\u00ad":{"d":"106,-102v2,28,-43,20,-70,21v-15,0,-22,-10,-22,-21v-1,-28,43,-19,70,-20v15,0,22,9,22,20","w":119}}});

// JQUERY VALIDATE
/*
 * jQuery validation plug-in 1.6
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
 * http://docs.jquery.com/Plugins/Validation
 *
 * Copyright (c) 2006 - 2008 JÃ¶rn Zaefferer
 *
 * $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a, 10)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){$.H($.2O,{1d:7(d){l(!6.F){d&&d.24&&2Y.1H&&1H.52("3v 3o, 4N\'t 1d, 67 3v");8}p c=$.17(6[0],\'v\');l(c){8 c}c=2e $.v(d,6[0]);$.17(6[0],\'v\',c);l(c.q.3u){6.3r("1B, 3j").1n(".4G").3b(7(){c.3a=w});l(c.q.35){6.3r("1B, 3j").1n(":23").3b(7(){c.1V=6})}6.23(7(b){l(c.q.24)b.5N();7 2m(){l(c.q.35){l(c.1V){p a=$("<1B 1A=\'5v\'/>").1p("u",c.1V.u).2M(c.1V.Z).51(c.U)}c.q.35.11(c,c.U);l(c.1V){a.3A()}8 I}8 w}l(c.3a){c.3a=I;8 2m()}l(c.M()){l(c.1a){c.1l=w;8 I}8 2m()}16{c.2h();8 I}})}8 c},J:7(){l($(6[0]).2Z(\'M\')){8 6.1d().M()}16{p b=w;p a=$(6[0].M).1d();6.P(7(){b&=a.L(6)});8 b}},4F:7(c){p d={},$L=6;$.P(c.1O(/\\s/),7(a,b){d[b]=$L.1p(b);$L.6c(b)});8 d},1f:7(h,k){p f=6[0];l(h){p i=$.17(f.M,\'v\').q;p d=i.1f;p c=$.v.2D(f);22(h){1b"1e":$.H(c,$.v.1N(k));d[f.u]=c;l(k.G)i.G[f.u]=$.H(i.G[f.u],k.G);2K;1b"3A":l(!k){S d[f.u];8 c}p e={};$.P(k.1O(/\\s/),7(a,b){e[b]=c[b];S c[b]});8 e}}p g=$.v.42($.H({},$.v.3Y(f),$.v.3W(f),$.v.3U(f),$.v.2D(f)),f);l(g.14){p j=g.14;S g.14;g=$.H({14:j},g)}8 g}});$.H($.5s[":"],{5p:7(a){8!$.1q(""+a.Z)},5i:7(a){8!!$.1q(""+a.Z)},5f:7(a){8!a.4l}});$.v=7(b,a){6.q=$.H({},$.v.33,b);6.U=a;6.3I()};$.v.W=7(c,b){l(T.F==1)8 7(){p a=$.3D(T);a.4V(c);8 $.v.W.1Q(6,a)};l(T.F>2&&b.29!=3x){b=$.3D(T).4R(1)}l(b.29!=3x){b=[b]}$.P(b,7(i,n){c=c.1P(2e 3s("\\\\{"+i+"\\\\}","g"),n)});8 c};$.H($.v,{33:{G:{},2d:{},1f:{},19:"3p",26:"J",2C:"4Q",2h:w,3l:$([]),2A:$([]),3u:w,3i:[],3Q:I,4O:7(a){6.3e=a;l(6.q.4M&&!6.4J){6.q.1L&&6.q.1L.11(6,a,6.q.19,6.q.26);6.1K(a).2y()}},4E:7(a){l(!6.1D(a)&&(a.u V 6.1c||!6.K(a))){6.L(a)}},6b:7(a){l(a.u V 6.1c||a==6.4y){6.L(a)}},69:7(a){l(a.u V 6.1c)6.L(a);16 l(a.4v.u V 6.1c)6.L(a.4v)},38:7(a,c,b){$(a).1Y(c).2w(b)},1L:7(a,c,b){$(a).2w(c).1Y(b)}},65:7(a){$.H($.v.33,a)},G:{14:"61 4q 2Z 14.",1r:"N 2L 6 4q.",1I:"N O a J 1I 60.",1v:"N O a J 5X.",1u:"N O a J 1u.",2q:"N O a J 1u (5R).",1s:"N O a J 1s.",1U:"N O 5P 1U.",2c:"N O a J 5O 5M 1s.",2n:"N O 47 5I Z 5H.",44:"N O a Z 5C a J 5B.",18:$.v.W("N O 3X 5y 2X {0} 2W."),1z:$.v.W("N O 5x 5w {0} 2W."),2j:$.v.W("N O a Z 3V {0} 45 {1} 2W 5q."),2i:$.v.W("N O a Z 3V {0} 45 {1}."),1x:$.v.W("N O a Z 5k 2X 3L 3K 48 {0}."),1F:$.v.W("N O a Z 5d 2X 3L 3K 48 {0}.")},3J:I,5b:{3I:7(){6.2r=$(6.q.2A);6.4i=6.2r.F&&6.2r||$(6.U);6.2s=$(6.q.3l).1e(6.q.2A);6.1c={};6.55={};6.1a=0;6.1i={};6.1g={};6.21();p f=(6.2d={});$.P(6.q.2d,7(d,c){$.P(c.1O(/\\s/),7(a,b){f[b]=d})});p e=6.q.1f;$.P(e,7(b,a){e[b]=$.v.1N(a)});7 1C(a){p b=$.17(6[0].M,"v");b.q["4A"+a.1A]&&b.q["4A"+a.1A].11(b,6[0])}$(6.U).1C("3F 3E 4W",":3C, :4U, :4T, 2b, 4S",1C).1C("3b",":3B, :3z, 2b, 3y",1C);l(6.q.3w)$(6.U).2J("1g-M.1d",6.q.3w)},M:7(){6.3t();$.H(6.1c,6.1w);6.1g=$.H({},6.1w);l(!6.J())$(6.U).2H("1g-M",[6]);6.1m();8 6.J()},3t:7(){6.2G();Q(p i=0,13=(6.27=6.13());13[i];i++){6.28(13[i])}8 6.J()},L:7(a){a=6.2F(a);6.4y=a;6.2E(a);6.27=$(a);p b=6.28(a);l(b){S 6.1g[a.u]}16{6.1g[a.u]=w}l(!6.3q()){6.12=6.12.1e(6.2s)}6.1m();8 b},1m:7(b){l(b){$.H(6.1w,b);6.R=[];Q(p c V b){6.R.2a({1j:b[c],L:6.2f(c)[0]})}6.1k=$.3n(6.1k,7(a){8!(a.u V b)})}6.q.1m?6.q.1m.11(6,6.1w,6.R):6.3m()},2B:7(){l($.2O.2B)$(6.U).2B();6.1c={};6.2G();6.2T();6.13().2w(6.q.19)},3q:7(){8 6.2g(6.1g)},2g:7(a){p b=0;Q(p i V a)b++;8 b},2T:7(){6.2P(6.12).2y()},J:7(){8 6.3N()==0},3N:7(){8 6.R.F},2h:7(){l(6.q.2h){3O{$(6.3h()||6.R.F&&6.R[0].L||[]).1n(":4P").3g()}3f(e){}}},3h:7(){p a=6.3e;8 a&&$.3n(6.R,7(n){8 n.L.u==a.u}).F==1&&a},13:7(){p a=6,2U={};8 $([]).1e(6.U.13).1n(":1B").1R(":23, :21, :4L, [4K]").1R(6.q.3i).1n(7(){!6.u&&a.q.24&&2Y.1H&&1H.3p("%o 4I 3X u 4H",6);l(6.u V 2U||!a.2g($(6).1f()))8 I;2U[6.u]=w;8 w})},2F:7(a){8 $(a)[0]},2z:7(){8 $(6.q.2C+"."+6.q.19,6.4i)},21:7(){6.1k=[];6.R=[];6.1w={};6.1o=$([]);6.12=$([]);6.27=$([])},2G:7(){6.21();6.12=6.2z().1e(6.2s)},2E:7(a){6.21();6.12=6.1K(a)},28:7(d){d=6.2F(d);l(6.1D(d)){d=6.2f(d.u)[0]}p a=$(d).1f();p c=I;Q(Y V a){p b={Y:Y,2l:a[Y]};3O{p f=$.v.1T[Y].11(6,d.Z.1P(/\\r/g,""),d,b.2l);l(f=="1S-1Z"){c=w;4D}c=I;l(f=="1i"){6.12=6.12.1R(6.1K(d));8}l(!f){6.3c(d,b);8 I}}3f(e){6.q.24&&2Y.1H&&1H.4C("6g 6f 6e 6d L "+d.4z+", 28 47 \'"+b.Y+"\' Y",e);6a e;}}l(c)8;l(6.2g(a))6.1k.2a(d);8 w},4x:7(a,b){l(!$.1y)8;p c=6.q.39?$(a).1y()[6.q.39]:$(a).1y();8 c&&c.G&&c.G[b]},4w:7(a,b){p m=6.q.G[a];8 m&&(m.29==4u?m:m[b])},4t:7(){Q(p i=0;i<T.F;i++){l(T[i]!==20)8 T[i]}8 20},2x:7(a,b){8 6.4t(6.4w(a.u,b),6.4x(a,b),!6.q.3Q&&a.68||20,$.v.G[b],"<4s>66: 64 1j 63 Q "+a.u+"</4s>")},3c:7(b,a){p c=6.2x(b,a.Y),36=/\\$?\\{(\\d+)\\}/g;l(1h c=="7"){c=c.11(6,a.2l,b)}16 l(36.15(c)){c=2v.W(c.1P(36,\'{$1}\'),a.2l)}6.R.2a({1j:c,L:b});6.1w[b.u]=c;6.1c[b.u]=c},2P:7(a){l(6.q.2u)a=a.1e(a.4p(6.q.2u));8 a},3m:7(){Q(p i=0;6.R[i];i++){p a=6.R[i];6.q.38&&6.q.38.11(6,a.L,6.q.19,6.q.26);6.34(a.L,a.1j)}l(6.R.F){6.1o=6.1o.1e(6.2s)}l(6.q.1G){Q(p i=0;6.1k[i];i++){6.34(6.1k[i])}}l(6.q.1L){Q(p i=0,13=6.4o();13[i];i++){6.q.1L.11(6,13[i],6.q.19,6.q.26)}}6.12=6.12.1R(6.1o);6.2T();6.2P(6.1o).4n()},4o:7(){8 6.27.1R(6.4m())},4m:7(){8 $(6.R).3d(7(){8 6.L})},34:7(a,c){p b=6.1K(a);l(b.F){b.2w().1Y(6.q.19);b.1p("4k")&&b.4j(c)}16{b=$("<"+6.q.2C+"/>").1p({"Q":6.32(a),4k:w}).1Y(6.q.19).4j(c||"");l(6.q.2u){b=b.2y().4n().5Z("<"+6.q.2u+"/>").4p()}l(!6.2r.5Y(b).F)6.q.4h?6.q.4h(b,$(a)):b.5W(a)}l(!c&&6.q.1G){b.3C("");1h 6.q.1G=="1t"?b.1Y(6.q.1G):6.q.1G(b)}6.1o=6.1o.1e(b)},1K:7(a){p b=6.32(a);8 6.2z().1n(7(){8 $(6).1p(\'Q\')==b})},32:7(a){8 6.2d[a.u]||(6.1D(a)?a.u:a.4z||a.u)},1D:7(a){8/3B|3z/i.15(a.1A)},2f:7(d){p c=6.U;8 $(5V.5U(d)).3d(7(a,b){8 b.M==c&&b.u==d&&b||4g})},1M:7(a,b){22(b.4f.3k()){1b\'2b\':8 $("3y:3o",b).F;1b\'1B\':l(6.1D(b))8 6.2f(b.u).1n(\':4l\').F}8 a.F},4e:7(b,a){8 6.2I[1h b]?6.2I[1h b](b,a):w},2I:{"5Q":7(b,a){8 b},"1t":7(b,a){8!!$(b,a.M).F},"7":7(b,a){8 b(a)}},K:7(a){8!$.v.1T.14.11(6,$.1q(a.Z),a)&&"1S-1Z"},4d:7(a){l(!6.1i[a.u]){6.1a++;6.1i[a.u]=w}},4c:7(a,b){6.1a--;l(6.1a<0)6.1a=0;S 6.1i[a.u];l(b&&6.1a==0&&6.1l&&6.M()){$(6.U).23();6.1l=I}16 l(!b&&6.1a==0&&6.1l){$(6.U).2H("1g-M",[6]);6.1l=I}},2o:7(a){8 $.17(a,"2o")||$.17(a,"2o",{31:4g,J:w,1j:6.2x(a,"1r")})}},1J:{14:{14:w},1I:{1I:w},1v:{1v:w},1u:{1u:w},2q:{2q:w},4b:{4b:w},1s:{1s:w},4a:{4a:w},1U:{1U:w},2c:{2c:w}},49:7(a,b){a.29==4u?6.1J[a]=b:$.H(6.1J,a)},3W:7(b){p a={};p c=$(b).1p(\'5L\');c&&$.P(c.1O(\' \'),7(){l(6 V $.v.1J){$.H(a,$.v.1J[6])}});8 a},3U:7(c){p a={};p d=$(c);Q(Y V $.v.1T){p b=d.1p(Y);l(b){a[Y]=b}}l(a.18&&/-1|5K|5J/.15(a.18)){S a.18}8 a},3Y:7(a){l(!$.1y)8{};p b=$.17(a.M,\'v\').q.39;8 b?$(a).1y()[b]:$(a).1y()},2D:7(b){p a={};p c=$.17(b.M,\'v\');l(c.q.1f){a=$.v.1N(c.q.1f[b.u])||{}}8 a},42:7(d,e){$.P(d,7(c,b){l(b===I){S d[c];8}l(b.30||b.2t){p a=w;22(1h b.2t){1b"1t":a=!!$(b.2t,e.M).F;2K;1b"7":a=b.2t.11(e,e);2K}l(a){d[c]=b.30!==20?b.30:w}16{S d[c]}}});$.P(d,7(a,b){d[a]=$.46(b)?b(e):b});$.P([\'1z\',\'18\',\'1F\',\'1x\'],7(){l(d[6]){d[6]=2Q(d[6])}});$.P([\'2j\',\'2i\'],7(){l(d[6]){d[6]=[2Q(d[6][0]),2Q(d[6][1])]}});l($.v.3J){l(d.1F&&d.1x){d.2i=[d.1F,d.1x];S d.1F;S d.1x}l(d.1z&&d.18){d.2j=[d.1z,d.18];S d.1z;S d.18}}l(d.G){S d.G}8 d},1N:7(a){l(1h a=="1t"){p b={};$.P(a.1O(/\\s/),7(){b[6]=w});a=b}8 a},5G:7(c,a,b){$.v.1T[c]=a;$.v.G[c]=b!=20?b:$.v.G[c];l(a.F<3){$.v.49(c,$.v.1N(c))}},1T:{14:7(c,d,a){l(!6.4e(a,d))8"1S-1Z";22(d.4f.3k()){1b\'2b\':p b=$(d).2M();8 b&&b.F>0;1b\'1B\':l(6.1D(d))8 6.1M(c,d)>0;5F:8 $.1q(c).F>0}},1r:7(f,h,j){l(6.K(h))8"1S-1Z";p g=6.2o(h);l(!6.q.G[h.u])6.q.G[h.u]={};g.43=6.q.G[h.u].1r;6.q.G[h.u].1r=g.1j;j=1h j=="1t"&&{1v:j}||j;l(g.31!==f){g.31=f;p k=6;6.4d(h);p i={};i[h.u]=f;$.2R($.H(w,{1v:j,41:"2S",40:"1d"+h.u,5A:"5z",17:i,1G:7(d){k.q.G[h.u].1r=g.43;p b=d===w;l(b){p e=k.1l;k.2E(h);k.1l=e;k.1k.2a(h);k.1m()}16{p a={};p c=(g.1j=d||k.2x(h,"1r"));a[h.u]=$.46(c)?c(f):c;k.1m(a)}g.J=b;k.4c(h,b)}},j));8"1i"}16 l(6.1i[h.u]){8"1i"}8 g.J},1z:7(b,c,a){8 6.K(c)||6.1M($.1q(b),c)>=a},18:7(b,c,a){8 6.K(c)||6.1M($.1q(b),c)<=a},2j:7(b,d,a){p c=6.1M($.1q(b),d);8 6.K(d)||(c>=a[0]&&c<=a[1])},1F:7(b,c,a){8 6.K(c)||b>=a},1x:7(b,c,a){8 6.K(c)||b<=a},2i:7(b,c,a){8 6.K(c)||(b>=a[0]&&b<=a[1])},1I:7(a,b){8 6.K(b)||/^((([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^X`{\\|}~]|[\\y-\\x\\E-\\C\\A-\\B])+(\\.([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^X`{\\|}~]|[\\y-\\x\\E-\\C\\A-\\B])+)*)|((\\3T)((((\\2k|\\1X)*(\\2V\\3S))?(\\2k|\\1X)+)?(([\\3R-\\5u\\3P\\3M\\5t-\\5r\\3Z]|\\5D|[\\5E-\\5o]|[\\5n-\\5m]|[\\y-\\x\\E-\\C\\A-\\B])|(\\\\([\\3R-\\1X\\3P\\3M\\2V-\\3Z]|[\\y-\\x\\E-\\C\\A-\\B]))))*(((\\2k|\\1X)*(\\2V\\3S))?(\\2k|\\1X)+)?(\\3T)))@((([a-z]|\\d|[\\y-\\x\\E-\\C\\A-\\B])|(([a-z]|\\d|[\\y-\\x\\E-\\C\\A-\\B])([a-z]|\\d|-|\\.|X|~|[\\y-\\x\\E-\\C\\A-\\B])*([a-z]|\\d|[\\y-\\x\\E-\\C\\A-\\B])))\\.)+(([a-z]|[\\y-\\x\\E-\\C\\A-\\B])|(([a-z]|[\\y-\\x\\E-\\C\\A-\\B])([a-z]|\\d|-|\\.|X|~|[\\y-\\x\\E-\\C\\A-\\B])*([a-z]|[\\y-\\x\\E-\\C\\A-\\B])))\\.?$/i.15(a)},1v:7(a,b){8 6.K(b)||/^(5l?|5j):\\/\\/(((([a-z]|\\d|-|\\.|X|~|[\\y-\\x\\E-\\C\\A-\\B])|(%[\\1W-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\y-\\x\\E-\\C\\A-\\B])|(([a-z]|\\d|[\\y-\\x\\E-\\C\\A-\\B])([a-z]|\\d|-|\\.|X|~|[\\y-\\x\\E-\\C\\A-\\B])*([a-z]|\\d|[\\y-\\x\\E-\\C\\A-\\B])))\\.)+(([a-z]|[\\y-\\x\\E-\\C\\A-\\B])|(([a-z]|[\\y-\\x\\E-\\C\\A-\\B])([a-z]|\\d|-|\\.|X|~|[\\y-\\x\\E-\\C\\A-\\B])*([a-z]|[\\y-\\x\\E-\\C\\A-\\B])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|X|~|[\\y-\\x\\E-\\C\\A-\\B])|(%[\\1W-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|X|~|[\\y-\\x\\E-\\C\\A-\\B])|(%[\\1W-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|X|~|[\\y-\\x\\E-\\C\\A-\\B])|(%[\\1W-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|[\\5h-\\5g]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|X|~|[\\y-\\x\\E-\\C\\A-\\B])|(%[\\1W-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i.15(a)},1u:7(a,b){8 6.K(b)||!/5e|5S/.15(2e 5T(a))},2q:7(a,b){8 6.K(b)||/^\\d{4}[\\/-]\\d{1,2}[\\/-]\\d{1,2}$/.15(a)},1s:7(a,b){8 6.K(b)||/^-?(?:\\d+|\\d{1,3}(?:,\\d{3})+)(?:\\.\\d+)?$/.15(a)},1U:7(a,b){8 6.K(b)||/^\\d+$/.15(a)},2c:7(b,e){l(6.K(e))8"1S-1Z";l(/[^0-9-]+/.15(b))8 I;p a=0,d=0,2p=I;b=b.1P(/\\D/g,"");Q(p n=b.F-1;n>=0;n--){p c=b.5c(n);p d=5a(c,10);l(2p){l((d*=2)>9)d-=9}a+=d;2p=!2p}8(a%10)==0},44:7(b,c,a){a=1h a=="1t"?a.1P(/,/g,\'|\'):"59|58?g|57";8 6.K(c)||b.62(2e 3s(".("+a+")$","i"))},2n:7(c,d,a){p b=$(a).56(".1d-2n").2J("4B.1d-2n",7(){$(d).J()});8 c==b.2M()}}});$.W=$.v.W})(2v);(7($){p c=$.2R;p d={};$.2R=7(a){a=$.H(a,$.H({},$.54,a));p b=a.40;l(a.41=="2S"){l(d[b]){d[b].2S()}8(d[b]=c.1Q(6,T))}8 c.1Q(6,T)}})(2v);(7($){$.P({3g:\'3F\',4B:\'3E\'},7(b,a){$.1E.37[a]={53:7(){l($.3H.4r)8 I;6.50(b,$.1E.37[a].2N,w)},4Z:7(){l($.3H.4r)8 I;6.4Y(b,$.1E.37[a].2N,w)},2N:7(e){T[0]=$.1E.2L(e);T[0].1A=a;8 $.1E.2m.1Q(6,T)}}});$.H($.2O,{1C:7(d,e,c){8 6.2J(d,7(a){p b=$(a.3G);l(b.2Z(e)){8 c.1Q(b,T)}})},4X:7(a,b){8 6.2H(a,[$.1E.2L({1A:a,3G:b})])}})})(2v);',62,389,'||||||this|function|return|||||||||||||if||||var|settings||||name|validator|true|uD7FF|u00A0||uFDF0|uFFEF|uFDCF||uF900|length|messages|extend|false|valid|optional|element|form|Please|enter|each|for|errorList|delete|arguments|currentForm|in|format|_|method|value||call|toHide|elements|required|test|else|data|maxlength|errorClass|pendingRequest|case|submitted|validate|add|rules|invalid|typeof|pending|message|successList|formSubmitted|showErrors|filter|toShow|attr|trim|remote|number|string|date|url|errorMap|max|metadata|minlength|type|input|delegate|checkable|event|min|success|console|email|classRuleSettings|errorsFor|unhighlight|getLength|normalizeRule|split|replace|apply|not|dependency|methods|digits|submitButton|da|x09|addClass|mismatch|undefined|reset|switch|submit|debug||validClass|currentElements|check|constructor|push|select|creditcard|groups|new|findByName|objectLength|focusInvalid|range|rangelength|x20|parameters|handle|equalTo|previousValue|bEven|dateISO|labelContainer|containers|depends|wrapper|jQuery|removeClass|defaultMessage|hide|errors|errorLabelContainer|resetForm|errorElement|staticRules|prepareElement|clean|prepareForm|triggerHandler|dependTypes|bind|break|fix|val|handler|fn|addWrapper|Number|ajax|abort|hideErrors|rulesCache|x0d|characters|than|window|is|param|old|idOrName|defaults|showLabel|submitHandler|theregex|special|highlight|meta|cancelSubmit|click|formatAndAdd|map|lastActive|catch|focus|findLastActive|ignore|button|toLowerCase|errorContainer|defaultShowErrors|grep|selected|error|numberOfInvalids|find|RegExp|checkForm|onsubmit|nothing|invalidHandler|Array|option|checkbox|remove|radio|text|makeArray|focusout|focusin|target|browser|init|autoCreateRanges|equal|or|x0c|size|try|x0b|ignoreTitle|x01|x0a|x22|attributeRules|between|classRules|no|metadataRules|x7f|port|mode|normalizeRules|originalMessage|accept|and|isFunction|the|to|addClassRules|numberDE|dateDE|stopRequest|startRequest|depend|nodeName|null|errorPlacement|errorContext|html|generated|checked|invalidElements|show|validElements|parent|field|msie|strong|findDefined|String|parentNode|customMessage|customMetaMessage|lastElement|id|on|blur|log|continue|onfocusout|removeAttrs|cancel|assigned|has|blockFocusCleanup|disabled|image|focusCleanup|can|onfocusin|visible|label|slice|textarea|file|password|unshift|keyup|triggerEvent|removeEventListener|teardown|addEventListener|appendTo|warn|setup|ajaxSettings|valueCache|unbind|gif|jpe|png|parseInt|prototype|charAt|greater|Invalid|unchecked|uF8FF|uE000|filled|ftp|less|https|x7e|x5d|x5b|blank|long|x1f|expr|x0e|x08|hidden|least|at|more|json|dataType|extension|with|x21|x23|default|addMethod|again|same|524288|2147483647|class|card|preventDefault|credit|only|boolean|ISO|NaN|Date|getElementsByName|document|insertAfter|URL|append|wrap|address|This|match|defined|No|setDefaults|Warning|returning|title|onclick|throw|onkeyup|removeAttr|checking|when|occured|exception'.split('|'),0,{}));

// JQUERY FILESTYLE
/*
 * Style File - jQuery plugin for styling file input elements
 *  
 * Copyright (c) 2007-2008 Mika Tuupola
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Based on work by Shaun Inman
 *   http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom
 *
 * Revision: $Id: jquery.filestyle.js 303 2008-01-30 13:53:24Z tuupola $
 *
 */
   
    $.fn.filestyle = function(options) {
                
        /* TODO: This should not override CSS. */
        var settings = {
            width : 250
        };
                
        if(options) {
            $.extend(settings, options);
        };
                        
        return this.each(function() {
            
            var self = this;
            var wrapper = $("<div>")
                            .css({
                                "width": settings.imagewidth + "px",
                                "height": settings.imageheight + "px",
                                "background": "url(" + settings.image + ") 0 0 no-repeat",
                                "background-position": "right",
                                "display": "inline",
                                "position": "absolute",
								"marginTop":"-5px",
								"marginLeft":"10px",
								"cursor":"pointer",
								"clear":"none",
                                "overflow": "hidden"
                            });
                            
            var filename = $('<input class="file">')
                             .addClass($(self).attr("class"))
                             .css({
                                 "display": "inline",
                                 "width": settings.width + "px"
                             });

            $(self).before(filename);
            $(self).wrap(wrapper);

            $(self).css({
                        "position": "relative",
                        "height": settings.imageheight + "px",
                        "width": settings.width + "px",
                        "display": "inline",
                        "cursor": "pointer",
                        "opacity": "0.0"
                    });

            if ($.browser.mozilla) {
                if (/Win/.test(navigator.platform)) {
                    $(self).css("margin-left", "-142px");                    
                } else {
                    $(self).css("margin-left", "-168px");                    
                };
            } else {
                $(self).css("margin-left", settings.imagewidth - settings.width + "px");                
            };

            $(self).bind("change", function() {
                filename.val($(self).val());
            });
      
        });
        

    };

// JQUERY LABEL OVER
jQuery.fn.labelOver = function(overClass) {
	return this.each(function(){
		var label = jQuery(this);
		var f = label.attr('for');
		if (f) {
			var input = jQuery('#' + f);
			
			this.hide = function() {
			  label.css({ textIndent: -10000 });
			};
			
			this.show = function() {
			  if (input.val() == '') label.css({ textIndent: 0 });
			};

			// handlers
			input.focus(this.hide);
			input.blur(this.show);
		  label.addClass(overClass).click(function(){ input.focus(); });
			
			if (input.val() != '') this.hide(); 
		}
	});
};

// JQUERY EQUALHEIGHT
jQuery.fn.equalHeight = function () {
	var height		= 0;
	var maxHeight	= 0;

	// Store the tallest element's height
	this.each(function () {
		height		= jQuery(this).outerHeight();
		maxHeight	= (height > maxHeight) ? height : maxHeight;
	});

	// Set element's min-height to tallest element's height
	return this.each(function () {
		var t			= jQuery(this);
		var minHeight	= maxHeight - (t.outerHeight() - t.height());
		var property	= jQuery.browser.msie && jQuery.browser.version < 7 ? 'height' : 'min-height';

		t.css(property, minHeight + 'px');
	});
};

// JQUERY EASING
/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/

// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});

/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
 */

// JQUERY TIMERS
/**
 * jQuery.timers - Timer abstractions for jQuery
 * Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
 * Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
 * Date: 2009/10/16
 *
 * @author Blair Mitchelmore
 * @version 1.2
 *
 **/

jQuery.fn.extend({
	everyTime: function(interval, label, fn, times) {
		return this.each(function() {
			jQuery.timer.add(this, interval, label, fn, times);
		});
	},
	oneTime: function(interval, label, fn) {
		return this.each(function() {
			jQuery.timer.add(this, interval, label, fn, 1);
		});
	},
	stopTime: function(label, fn) {
		return this.each(function() {
			jQuery.timer.remove(this, label, fn);
		});
	}
});

jQuery.extend({
	timer: {
		global: [],
		guid: 1,
		dataKey: "jQuery.timer",
		regex: /^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,
		powers: {
			// Yeah this is major overkill...
			'ms': 1,
			'cs': 10,
			'ds': 100,
			's': 1000,
			'das': 10000,
			'hs': 100000,
			'ks': 1000000
		},
		timeParse: function(value) {
			if (value == undefined || value == null)
				return null;
			var result = this.regex.exec(jQuery.trim(value.toString()));
			if (result[2]) {
				var num = parseFloat(result[1]);
				var mult = this.powers[result[2]] || 1;
				return num * mult;
			} else {
				return value;
			}
		},
		add: function(element, interval, label, fn, times) {
			var counter = 0;
			
			if (jQuery.isFunction(label)) {
				if (!times) 
					times = fn;
				fn = label;
				label = interval;
			}
			
			interval = jQuery.timer.timeParse(interval);

			if (typeof interval != 'number' || isNaN(interval) || interval < 0)
				return;

			if (typeof times != 'number' || isNaN(times) || times < 0) 
				times = 0;
			
			times = times || 0;
			
			var timers = jQuery.data(element, this.dataKey) || jQuery.data(element, this.dataKey, {});
			
			if (!timers[label])
				timers[label] = {};
			
			fn.timerID = fn.timerID || this.guid++;
			
			var handler = function() {
				if ((++counter > times && times !== 0) || fn.call(element, counter) === false)
					jQuery.timer.remove(element, label, fn);
			};
			
			handler.timerID = fn.timerID;
			
			if (!timers[label][fn.timerID])
				timers[label][fn.timerID] = window.setInterval(handler,interval);
			
			this.global.push( element );
			
		},
		remove: function(element, label, fn) {
			var timers = jQuery.data(element, this.dataKey), ret;
			
			if ( timers ) {
				
				if (!label) {
					for ( label in timers )
						this.remove(element, label, fn);
				} else if ( timers[label] ) {
					if ( fn ) {
						if ( fn.timerID ) {
							window.clearInterval(timers[label][fn.timerID]);
							delete timers[label][fn.timerID];
						}
					} else {
						for ( var fn in timers[label] ) {
							window.clearInterval(timers[label][fn]);
							delete timers[label][fn];
						}
					}
					
					for ( ret in timers[label] ) break;
					if ( !ret ) {
						ret = null;
						delete timers[label];
					}
				}
				
				for ( ret in timers ) break;
				if ( !ret ) 
					jQuery.removeData(element, this.dataKey);
			}
		}
	}
});

jQuery(window).bind("unload", function() {
	jQuery.each(jQuery.timer.global, function(index, item) {
		jQuery.timer.remove(item);
	});
});

// JQUERY GALLERY VIEW
/*

	GalleryView - jQuery Content Gallery Plugin
	Author: 		Jack Anderson
	Version:		1.1 (April 5, 2009)
	Documentation: 	http://www.spaceforaname.com/jquery/galleryview/
	
	Please use this development script if you intend to make changes to the
	plugin code.  For production sites, please use jquery.galleryview-1.0.1-pack.js.
	
*/
(function($){
	$.fn.galleryView = function(options) {
		var opts = $.extend($.fn.galleryView.defaults,options);
		
		var id;
		var iterator = 0;
		var gallery_width;
		var gallery_height;
		var frame_margin = 10;
		var strip_width;
		var wrapper_width;
		var item_count = 0;
		var slide_method;
		var img_path = "/wp-content/themes/vousnousils_theme/images/themes/";
		var paused = false;
		var frame_caption_size = 20;
		var frame_margin_top = 5;
		var pointer_width = 2;
		
		//Define jQuery objects for reuse
		var j_gallery;
		var j_filmstrip;
		var j_frames;
		var j_panels;
		var j_pointer;
		
/************************************************/
/*	Plugin Methods								*/
/************************************************/	
		function showItem(i) {
			//Disable next/prev buttons until transition is complete
			$('img.nav-next').unbind('click');
			$('img.nav-prev').unbind('click');
			j_frames.unbind('click');
			if(has_panels) {
				if(opts.fade_panels) {
					//Fade out all panels and fade in target panel
					j_panels.fadeOut(opts.transition_speed).eq(i%item_count).fadeIn(opts.transition_speed,function(){
						if(!has_filmstrip) {
							$('img.nav-prev').click(showPrevItem);
							$('img.nav-next').click(showNextItem);		
						}
					});
				} 
			}
			
			if(has_filmstrip) {
				//Slide either pointer or filmstrip, depending on transition method
				if(slide_method=='strip') {
					//Stop filmstrip if it's currently in motion
					j_filmstrip.stop();
					
					//Determine distance between pointer (eventual destination) and target frame
					var distance = getPos(j_frames[i]).left - (getPos(j_pointer[0]).left+2);
					var leftstr = (distance>=0?'-=':'+=')+Math.abs(distance)+'px';
					
					//Animate filmstrip and slide target frame under pointer
					//If target frame is a duplicate, jump back to 'original' frame
					j_filmstrip.animate({
						'left':leftstr
					},opts.transition_speed,opts.easing,function(){
						//Always ensure that there are a sufficient number of hidden frames on either
						//side of the filmstrip to avoid empty frames
						if(i>item_count) {
							i = i%item_count;
							iterator = i;
							j_filmstrip.css('left','-'+((opts.frame_width+frame_margin)*i)+'px');
						} else if (i<=(item_count-strip_size)) {
							i = (i%item_count)+item_count;
							iterator = i;
							j_filmstrip.css('left','-'+((opts.frame_width+frame_margin)*i)+'px');
						}
						
						if(!opts.fade_panels) {
							j_panels.hide().eq(i%item_count).show();
						}
						$('img.nav-prev').click(showPrevItem);
						$('img.nav-next').click(showNextItem);
						enableFrameClicking();
					});
				} else if(slide_method=='pointer') {
					//Stop pointer if it's currently in motion
					j_pointer.stop();
					//Get position of target frame
					var pos = getPos(j_frames[i]);
					//Slide the pointer over the target frame
					j_pointer.animate({
						'left':(pos.left-2+'px')
					},opts.transition_speed,opts.easing,function(){	
						if(!opts.fade_panels) {
							j_panels.hide().eq(i%item_count).show();
						}	
						$('img.nav-prev').click(showPrevItem);
						$('img.nav-next').click(showNextItem);
						enableFrameClicking();
					});
				}
			
				if($('a',j_frames[i])[0]) {
					j_pointer.unbind('click').click(function(){
						var a = $('a',j_frames[i]).eq(0);
						if(a.attr('target')=='_blank') {window.open(a.attr('href'));}
						else {location.href = a.attr('href');}
					});
				}
			}
		};
		function showNextItem() {
			$(document).stopTime("transition");
			if(++iterator==j_frames.length) {iterator=0;}
			showItem(iterator);
			$(document).everyTime(opts.transition_interval,"transition",function(){
				showNextItem();
			});
		};
		function showPrevItem() {
			$(document).stopTime("transition");
			if(--iterator<0) {iterator = item_count-1;}
			//alert(iterator);
			showItem(iterator);
			$(document).everyTime(opts.transition_interval,"transition",function(){
				showNextItem();
			});
		};
		function getPos(el) {
			var left = 0, top = 0;
			var el_id = el.id;
			if(el.offsetParent) {
				do {
					left += el.offsetLeft;
					top += el.offsetTop;
				} while(el = el.offsetParent);
			}
			//If we want the position of the gallery itself, return it
			if(el_id == id) {return {'left':left,'top':top};}
			//Otherwise, get position of element relative to gallery
			else {
				var gPos = getPos(j_gallery[0]);
				var gLeft = gPos.left;
				var gTop = gPos.top;
				
				return {'left':left-gLeft,'top':top-gTop};
			}
		};
		function enableFrameClicking() {
			j_frames.each(function(i){
				//If there isn't a link in this frame, set up frame to slide on click
				//Frames with links will handle themselves
				if($('a',this).length==0) {
					$(this).click(function(){
						$(document).stopTime("transition");
						showItem(i);
						iterator = i;
						$(document).everyTime(opts.transition_interval,"transition",function(){
							showNextItem();
						});
					});
				}
			});
		};
		
		function buildPanels() {
			//If there are panel captions, add overlay divs
			if($('.panel-overlay').length>0) {j_panels.append('<div class="overlay"></div>');}
			
			if(!has_filmstrip) {
				//Add navigation buttons
				$('<img />').addClass('nav-next').attr('src',img_path+opts.nav_theme+'/next.gif').appendTo(j_gallery).css({
					'position':'absolute',
					'zIndex':'1100',
					'cursor':'pointer',
					'top':((opts.panel_height-22)/2)+'px',
					'right':'10px',
					'display':'none'
				}).click(showNextItem);
				$('<img />').addClass('nav-prev').attr('src',img_path+opts.nav_theme+'/prev.gif').appendTo(j_gallery).css({
					'position':'absolute',
					'zIndex':'1100',
					'cursor':'pointer',
					'top':((opts.panel_height-22)/2)+'px',
					'left':'10px',
					'display':'none'
				}).click(showPrevItem);
				
				$('<img />').addClass('nav-overlay').attr('src',img_path+opts.nav_theme+'/panel-nav-next.gif').appendTo(j_gallery).css({
					'position':'absolute',
					'zIndex':'1099',
					'top':((opts.panel_height-22)/2)-10+'px',
					'right':'0',
					'display':'none'
				});
				
				$('<img />').addClass('nav-overlay').attr('src',img_path+opts.nav_theme+'/panel-nav-prev.gif').appendTo(j_gallery).css({
					'position':'absolute',
					'zIndex':'1099',
					'top':((opts.panel_height-22)/2)-10+'px',
					'left':'0',
					'display':'none'
				});
			}
			j_panels.css({
				'width':(opts.panel_width-parseInt(j_panels.css('paddingLeft').split('px')[0],10)-parseInt(j_panels.css('paddingRight').split('px')[0],10))+'px',
				'height':(opts.panel_height-parseInt(j_panels.css('paddingTop').split('px')[0],10)-parseInt(j_panels.css('paddingBottom').split('px')[0],10))+'px',
				'position':'absolute',
				'top':(opts.filmstrip_position=='top'?(opts.frame_height+frame_margin_top+(opts.show_captions?frame_caption_size:frame_margin_top))+'px':'0px'),
				'left':'0px',
				'overflow':'hidden',
				'background':'white',
				'display':'none'
			});
			$('.panel-overlay',j_panels).css({
				'position':'absolute',
				'zIndex':'999',
				'width':(opts.panel_width-20)+'px',
				'height':opts.overlay_height+'px',
				'top':(opts.overlay_position=='top'?'0':opts.panel_height-opts.overlay_height+'px'),
				'left':'0',
				'padding':'0 10px',
				'color':opts.overlay_text_color,
				'fontSize':opts.overlay_font_size
			});
			$('.panel-overlay a',j_panels).css({
				'color':opts.overlay_text_color,
				'textDecoration':'underline',
				'fontWeight':'bold'
			});
			$('.overlay',j_panels).css({
				'position':'absolute',
				'zIndex':'998',
				'width':opts.panel_width+'px',
				'height':opts.overlay_height+'px',
				'top':(opts.overlay_position=='top'?'0':opts.panel_height-opts.overlay_height+'px'),
				'left':'0',
				'background':opts.overlay_color,
				'opacity':opts.overlay_opacity
			});
			$('.panel iframe',j_panels).css({
				'width':opts.panel_width+'px',
				'height':(opts.panel_height-opts.overlay_height)+'px',
				'border':'0'
			});
		};
		
		function buildFilmstrip() {
			//Add wrapper to filmstrip to hide extra frames
			j_filmstrip.wrap('<div class="strip_wrapper"></div>');
			if(slide_method=='strip') {
				j_frames.clone().appendTo(j_filmstrip);
				j_frames.clone().appendTo(j_filmstrip);
				j_frames = $('li',j_filmstrip);
			}
			//If captions are enabled, add caption divs and fill with the image titles
			if(opts.show_captions) {
				j_frames.append('<div class="caption"></div>').each(function(i){
					$(this).find('.caption').html($(this).find('img').attr('title'));			   
				});
			}
			
			j_filmstrip.css({
				'listStyle':'none',
				'margin':'0',
				'padding':'0',
				'width':strip_width+'px',
				'position':'absolute',
				'zIndex':'900',
				'top':'0',
				'left':'0',
				'height':(opts.frame_height+10)+'px',
				'background':opts.background_color
			});
			j_frames.css({
				'float':'left',
				'position':'relative',
				'height':opts.frame_height+'px',
				'zIndex':'901',
				'marginTop':frame_margin_top+'px',
				'marginBottom':'0px',
				'marginRight':frame_margin+'px',
				'padding':'0',
				'cursor':'pointer'
			});
			$('img',j_frames).css({
				'border':'none'
			});
			$('.strip_wrapper',j_gallery).css({
				'position':'absolute',
				'top':(opts.filmstrip_position=='top'?'0px':opts.panel_height+'px'),
				'left':((gallery_width-wrapper_width)/2)+'px',
				'width':wrapper_width+'px',
				'height':(opts.frame_height+frame_margin_top+(opts.show_captions?frame_caption_size:frame_margin_top))+'px',
				'overflow':'hidden'
			});
			$('.caption',j_gallery).css({
				'position':'absolute',
				'top':opts.frame_height+'px',
				'left':'0',
				'margin':'0',
				'width':opts.frame_width+'px',
				'padding':'0',
				'color':opts.caption_text_color,
				'textAlign':'center',
				'fontSize':'10px',
				'height':frame_caption_size+'px',
				
				'lineHeight':frame_caption_size+'px'
			});
			var pointer = $('<div></div>');
			pointer.attr('id','pointer').appendTo(j_gallery).css({
				 'position':'absolute',
				 'zIndex':'1000',
				 'cursor':'pointer',
				 'top':getPos(j_frames[0]).top-(pointer_width/2)+'px',
				 'left':getPos(j_frames[0]).left-(pointer_width/2)+'px',
				 'height':opts.frame_height-pointer_width+'px',
				 'width':opts.frame_width-pointer_width+'px',
				 'border':(has_panels?pointer_width+'px solid '+(opts.nav_theme=='dark'?'black':'white'):'none')
			});
			j_pointer = $('#pointer',j_gallery);
			if(has_panels) {
				var pointerArrow = $('<img />');
				pointerArrow.attr('src',img_path+opts.nav_theme+'/pointer'+(opts.filmstrip_position=='top'?'-down':'')+'.png').appendTo($('#pointer')).css({
					'position':'absolute',
					'zIndex':'1001',
					//'top':(opts.filmstrip_position=='bottom'?'-'+(10+pointer_width)+'px':opts.frame_height+'px'),
					'top':'-6px',
					//'left':((opts.frame_width/2)-10)+'px'
					left:'20px'
				});
			}
			
			//If the filmstrip is animating, move the strip to the middle third
			if(slide_method=='strip') {
				j_filmstrip.css('left','-'+((opts.frame_width+frame_margin)*item_count)+'px');
				iterator = item_count;
			}
			//If there's a link under the pointer, enable clicking on the pointer
			if($('a',j_frames[iterator])[0]) {
				j_pointer.click(function(){
					var a = $('a',j_frames[iterator]).eq(0);
					if(a.attr('target')=='_blank') {window.open(a.attr('href'));}
					else {location.href = a.attr('href');}
				});
			}
			
			//Add navigation buttons
			$('<img />').addClass('nav-next').attr('src',img_path+opts.nav_theme+'/next.gif').appendTo(j_gallery).css({
				'position':'absolute',
				'cursor':'pointer',
				'top':(opts.filmstrip_position=='top'?0:opts.panel_height)+frame_margin_top+((opts.frame_height-22)/2)+'px',
				'right':(gallery_width/2)-(wrapper_width/2)-10-22+'px'
			}).click(showNextItem);
			$('<img />').addClass('nav-prev').attr('src',img_path+opts.nav_theme+'/prev.gif').appendTo(j_gallery).css({
				'position':'absolute',
				'cursor':'pointer',
				'top':(opts.filmstrip_position=='top'?0:opts.panel_height)+frame_margin_top+((opts.frame_height-22)/2)+'px',
				'left':(gallery_width/2)-(wrapper_width/2)-10-22+'px'
			}).click(showPrevItem);
		};
		
		//Check mouse to see if it is within the borders of the panel
		//More reliable than 'mouseover' event when elements overlay the panel
		function mouseIsOverPanels(x,y) {		
			var pos = getPos(j_gallery[0]);
			var top = pos.top;
			var left = pos.left;
			return x > left && x < left+opts.panel_width && y > top && y < top+opts.panel_height;				
		};
		
/************************************************/
/*	Main Plugin Code							*/
/************************************************/
		return this.each(function() {
			j_gallery = $(this);
			//Determine path between current page and filmstrip images
			//Scan script tags and look for path to GalleryView plugin
			$('script').each(function(i){
				var s = $(this);
				if(s.attr('src') && s.attr('src').match(/jquery\.galleryview/)){
					img_path = s.attr('src').split('jquery.galleryview')[0]+'themes/';	
				}
			});
			
			//Hide gallery to prevent Flash of Unstyled Content (FoUC) in IE
			j_gallery.css('visibility','hidden');
			
			//Assign elements to variables for reuse
			j_filmstrip = $('.filmstrip',j_gallery);
			j_frames = $('li',j_filmstrip);
			j_panels = $('.panel',j_gallery);
			
			id = j_gallery.attr('id');
			
			has_panels = j_panels.length > 0;
			has_filmstrip = j_frames.length > 0;
			
			if(!has_panels) opts.panel_height = 0;
			
			//Number of frames in filmstrip
			item_count = has_panels?j_panels.length:j_frames.length;
			
			//Number of frames that can display within the screen's width
			//64 = width of block for navigation button * 2
			//5 = minimum frame margin
			strip_size = has_panels?Math.floor((opts.panel_width-64)/(opts.frame_width+frame_margin)):Math.min(item_count,opts.filmstrip_size); 
			
			
			/************************************************/
			/*	Determine transition method for filmstrip	*/
			/************************************************/
					//If more items than strip size, slide filmstrip
					//Otherwise, slide pointer
					if(strip_size >= item_count) {
						slide_method = 'pointer';
						strip_size = item_count;
					}
					else {slide_method = 'strip';}
			
			/************************************************/
			/*	Determine dimensions of various elements	*/
			/************************************************/
					
					//Width of gallery block
					gallery_width = has_panels?opts.panel_width:(strip_size*(opts.frame_width+frame_margin))-frame_margin+64;
					
					//Height of gallery block = screen + filmstrip + captions (optional)
					gallery_height = (has_panels?opts.panel_height:0)+(has_filmstrip?opts.frame_height+frame_margin_top+(opts.show_captions?frame_caption_size:frame_margin_top):0);
					
					//Width of filmstrip
					if(slide_method == 'pointer') {strip_width = (opts.frame_width*item_count)+(frame_margin*(item_count));}
					else {strip_width = (opts.frame_width*item_count*3)+(frame_margin*(item_count*3));}
					
					//Width of filmstrip wrapper (to hide overflow)
					wrapper_width = ((strip_size*opts.frame_width)+((strip_size-1)*frame_margin));
			
			/************************************************/
			/*	Apply CSS Styles							*/
			/************************************************/
					j_gallery.css({
						'position':'relative',
						'margin':'0',
						'background':opts.background_color,
						'border':opts.border,
						'width':gallery_width+'px',
						'height':gallery_height+'px'
					});
			
			/************************************************/
			/*	Build filmstrip and/or panels				*/
			/************************************************/
					if(has_filmstrip) {
						buildFilmstrip();
					}
					if(has_panels) {
						buildPanels();
					}

			
			/************************************************/
			/*	Add events to various elements				*/
			/************************************************/
					if(has_filmstrip) enableFrameClicking();
					
						
						
						$().mousemove(function(e){							
							if(mouseIsOverPanels(e.pageX,e.pageY)) {
								if(opts.pause_on_hover) {
									$(document).oneTime(500,"animation_pause",function(){
										$(document).stopTime("transition");
										paused=true;
									});
								}
								if(has_panels && !has_filmstrip) {
									$('.nav-overlay').fadeIn('fast');
									$('.nav-next').fadeIn('fast');
									$('.nav-prev').fadeIn('fast');
								}
							} else {
								if(opts.pause_on_hover) {
									$(document).stopTime("animation_pause");
									if(paused) {
										$(document).everyTime(opts.transition_interval,"transition",function(){
											showNextItem();
										});
										paused = false;
									}
								}
								if(has_panels && !has_filmstrip) {
									$('.nav-overlay').fadeOut('fast');
									$('.nav-next').fadeOut('fast');
									$('.nav-prev').fadeOut('fast');
								}
							}
						});
			
			
			/************************************************/
			/*	Initiate Automated Animation				*/
			/************************************************/
					//Show the first panel
					j_panels.eq(0).show();

					//If we have more than one item, begin automated transitions
					if(item_count > 1) {
						$(document).everyTime(opts.transition_interval,"transition",function(){
							showNextItem();
						});
					}
					
					//Make gallery visible now that work is complete
					j_gallery.css('visibility','visible');
		});
	};
	
	$.fn.galleryView.defaults = {
		panel_width: 400,
		panel_height: 300,
		frame_width: 80,
		frame_height: 80,
		filmstrip_size: 3,
		overlay_height: 30,
		overlay_font_size: '1em',
		transition_speed: 400,
		transition_interval: 6000,
		overlay_opacity: 0.6,
		overlay_color: 'black',
		background_color: 'black',
		overlay_text_color: 'white',
		caption_text_color: 'white',
		border: '1px solid black',
		nav_theme: 'light',
		easing: 'swing',
		filmstrip_position: 'bottom',
		overlay_position: 'bottom',
		show_captions: false,
		fade_panels: true,
		pause_on_hover: false
	};
})(jQuery);

// JQUERY DATE PICKER
/*
 * Date prototype extensions. Doesn't depend on any
 * other code. Doens't overwrite existing methods.
 *
 * Adds dayNames, abbrDayNames, monthNames and abbrMonthNames static properties and isLeapYear,
 * isWeekend, isWeekDay, getDaysInMonth, getDayName, getMonthName, getDayOfYear, getWeekOfYear,
 * setDayOfYear, addYears, addMonths, addDays, addHours, addMinutes, addSeconds methods
 *
 * Copyright (c) 2006 Jörn Zaefferer and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 *
 * Additional methods and properties added by Kelvin Luck: firstDayOfWeek, dateFormat, zeroTime, asString, fromString -
 * I've added my name to these methods so you know who to blame if they are broken!
 * 
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 */

/**
 * An Array of day names starting with Sunday.
 * 
 * @example dayNames[0]
 * @result 'Sunday'
 *
 * @name dayNames
 * @type Array
 * @cat Plugins/Methods/Date
 */
Date.dayNames = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'];

/**
 * An Array of abbreviated day names starting with Sun.
 * 
 * @example abbrDayNames[0]
 * @result 'Sun'
 *
 * @name abbrDayNames
 * @type Array
 * @cat Plugins/Methods/Date
 */
Date.abbrDayNames = ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sa'];

/**
 * An Array of month names starting with Janurary.
 * 
 * @example monthNames[0]
 * @result 'January'
 *
 * @name monthNames
 * @type Array
 * @cat Plugins/Methods/Date
 */
Date.monthNames = ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'];

/**
 * An Array of abbreviated month names starting with Jan.
 * 
 * @example abbrMonthNames[0]
 * @result 'Jan'
 *
 * @name monthNames
 * @type Array
 * @cat Plugins/Methods/Date
 */
Date.abbrMonthNames = ['Jan', 'Fev', 'Mar', 'Avr', 'Mai', 'Jui', 'Juil', 'Aou', 'Sep', 'Oct', 'Nov', 'Dec'];

/**
 * The first day of the week for this locale.
 *
 * @name firstDayOfWeek
 * @type Number
 * @cat Plugins/Methods/Date
 * @author Kelvin Luck
 */
Date.firstDayOfWeek = 1;

/**
 * The format that string dates should be represented as (e.g. 'dd/mm/yyyy' for UK, 'mm/dd/yyyy' for US, 'yyyy-mm-dd' for Unicode etc).
 *
 * @name format
 * @type String
 * @cat Plugins/Methods/Date
 * @author Kelvin Luck
 */
Date.format = 'dd/mm/yyyy';
//Date.format = 'mm/dd/yyyy';
//Date.format = 'yyyy-mm-dd';
//Date.format = 'dd mmm yy';

/**
 * The first two numbers in the century to be used when decoding a two digit year. Since a two digit year is ambiguous (and date.setYear
 * only works with numbers < 99 and so doesn't allow you to set years after 2000) we need to use this to disambiguate the two digit year codes.
 *
 * @name format
 * @type String
 * @cat Plugins/Methods/Date
 * @author Kelvin Luck
 */
Date.fullYearStart = '20';

(function() {

	/**
	 * Adds a given method under the given name 
	 * to the Date prototype if it doesn't
	 * currently exist.
	 *
	 * @private
	 */
	function add(name, method) {
		if( !Date.prototype[name] ) {
			Date.prototype[name] = method;
		}
	};
	
	/**
	 * Checks if the year is a leap year.
	 *
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.isLeapYear();
	 * @result true
	 *
	 * @name isLeapYear
	 * @type Boolean
	 * @cat Plugins/Methods/Date
	 */
	add("isLeapYear", function() {
		var y = this.getFullYear();
		return (y%4==0 && y%100!=0) || y%400==0;
	});
	
	/**
	 * Checks if the day is a weekend day (Sat or Sun).
	 *
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.isWeekend();
	 * @result false
	 *
	 * @name isWeekend
	 * @type Boolean
	 * @cat Plugins/Methods/Date
	 */
	add("isWeekend", function() {
		return this.getDay()==0 || this.getDay()==6;
	});
	
	/**
	 * Check if the day is a day of the week (Mon-Fri)
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.isWeekDay();
	 * @result false
	 * 
	 * @name isWeekDay
	 * @type Boolean
	 * @cat Plugins/Methods/Date
	 */
	add("isWeekDay", function() {
		return !this.isWeekend();
	});
	
	/**
	 * Gets the number of days in the month.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getDaysInMonth();
	 * @result 31
	 * 
	 * @name getDaysInMonth
	 * @type Number
	 * @cat Plugins/Methods/Date
	 */
	add("getDaysInMonth", function() {
		return [31,(this.isLeapYear() ? 29:28),31,30,31,30,31,31,30,31,30,31][this.getMonth()];
	});
	
	/**
	 * Gets the name of the day.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getDayName();
	 * @result 'Saturday'
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getDayName(true);
	 * @result 'Sat'
	 * 
	 * @param abbreviated Boolean When set to true the name will be abbreviated.
	 * @name getDayName
	 * @type String
	 * @cat Plugins/Methods/Date
	 */
	add("getDayName", function(abbreviated) {
		return abbreviated ? Date.abbrDayNames[this.getDay()] : Date.dayNames[this.getDay()];
	});

	/**
	 * Gets the name of the month.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getMonthName();
	 * @result 'Janurary'
	 *
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getMonthName(true);
	 * @result 'Jan'
	 * 
	 * @param abbreviated Boolean When set to true the name will be abbreviated.
	 * @name getDayName
	 * @type String
	 * @cat Plugins/Methods/Date
	 */
	add("getMonthName", function(abbreviated) {
		return abbreviated ? Date.abbrMonthNames[this.getMonth()] : Date.monthNames[this.getMonth()];
	});

	/**
	 * Get the number of the day of the year.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getDayOfYear();
	 * @result 11
	 * 
	 * @name getDayOfYear
	 * @type Number
	 * @cat Plugins/Methods/Date
	 */
	add("getDayOfYear", function() {
		var tmpdtm = new Date("1/1/" + this.getFullYear());
		return Math.floor((this.getTime() - tmpdtm.getTime()) / 86400000);
	});
	
	/**
	 * Get the number of the week of the year.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.getWeekOfYear();
	 * @result 2
	 * 
	 * @name getWeekOfYear
	 * @type Number
	 * @cat Plugins/Methods/Date
	 */
	add("getWeekOfYear", function() {
		return Math.ceil(this.getDayOfYear() / 7);
	});

	/**
	 * Set the day of the year.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.setDayOfYear(1);
	 * dtm.toString();
	 * @result 'Tue Jan 01 2008 00:00:00'
	 * 
	 * @name setDayOfYear
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("setDayOfYear", function(day) {
		this.setMonth(0);
		this.setDate(day);
		return this;
	});
	
	/**
	 * Add a number of years to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addYears(1);
	 * dtm.toString();
	 * @result 'Mon Jan 12 2009 00:00:00'
	 * 
	 * @name addYears
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addYears", function(num) {
		this.setFullYear(this.getFullYear() + num);
		return this;
	});
	
	/**
	 * Add a number of months to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addMonths(1);
	 * dtm.toString();
	 * @result 'Tue Feb 12 2008 00:00:00'
	 * 
	 * @name addMonths
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addMonths", function(num) {
		var tmpdtm = this.getDate();
		
		this.setMonth(this.getMonth() + num);
		
		if (tmpdtm > this.getDate())
			this.addDays(-this.getDate());
		
		return this;
	});
	
	/**
	 * Add a number of days to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addDays(1);
	 * dtm.toString();
	 * @result 'Sun Jan 13 2008 00:00:00'
	 * 
	 * @name addDays
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addDays", function(num) {
		//this.setDate(this.getDate() + num);
		this.setTime(this.getTime() + (num*86400000) );
		return this;
	});
	
	/**
	 * Add a number of hours to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addHours(24);
	 * dtm.toString();
	 * @result 'Sun Jan 13 2008 00:00:00'
	 * 
	 * @name addHours
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addHours", function(num) {
		this.setHours(this.getHours() + num);
		return this;
	});

	/**
	 * Add a number of minutes to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addMinutes(60);
	 * dtm.toString();
	 * @result 'Sat Jan 12 2008 01:00:00'
	 * 
	 * @name addMinutes
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addMinutes", function(num) {
		this.setMinutes(this.getMinutes() + num);
		return this;
	});
	
	/**
	 * Add a number of seconds to the date object.
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.addSeconds(60);
	 * dtm.toString();
	 * @result 'Sat Jan 12 2008 00:01:00'
	 * 
	 * @name addSeconds
	 * @type Date
	 * @cat Plugins/Methods/Date
	 */
	add("addSeconds", function(num) {
		this.setSeconds(this.getSeconds() + num);
		return this;
	});
	
	/**
	 * Sets the time component of this Date to zero for cleaner, easier comparison of dates where time is not relevant.
	 * 
	 * @example var dtm = new Date();
	 * dtm.zeroTime();
	 * dtm.toString();
	 * @result 'Sat Jan 12 2008 00:01:00'
	 * 
	 * @name zeroTime
	 * @type Date
	 * @cat Plugins/Methods/Date
	 * @author Kelvin Luck
	 */
	add("zeroTime", function() {
		this.setMilliseconds(0);
		this.setSeconds(0);
		this.setMinutes(0);
		this.setHours(0);
		return this;
	});
	
	/**
	 * Returns a string representation of the date object according to Date.format.
	 * (Date.toString may be used in other places so I purposefully didn't overwrite it)
	 * 
	 * @example var dtm = new Date("01/12/2008");
	 * dtm.asString();
	 * @result '12/01/2008' // (where Date.format == 'dd/mm/yyyy'
	 * 
	 * @name asString
	 * @type Date
	 * @cat Plugins/Methods/Date
	 * @author Kelvin Luck
	 */
	add("asString", function(format) {
		var r = format || Date.format;
		if (r.split('mm').length>1) { // ugly workaround to make sure we don't replace the m's in e.g. noveMber
			r = r.split('mmmm').join(this.getMonthName(false))
				.split('mmm').join(this.getMonthName(true))
				.split('mm').join(_zeroPad(this.getMonth()+1));
		} else {
			r = r.split('m').join(this.getMonth()+1);
		}
		r = r.split('yyyy').join(this.getFullYear())
			.split('yy').join((this.getFullYear() + '').substring(2))
			.split('dd').join(_zeroPad(this.getDate()))
			.split('d').join(this.getDate());
		return r;
	});
	
	/**
	 * Returns a new date object created from the passed String according to Date.format or false if the attempt to do this results in an invalid date object
	 * (We can't simple use Date.parse as it's not aware of locale and I chose not to overwrite it incase it's functionality is being relied on elsewhere)
	 *
	 * @example var dtm = Date.fromString("12/01/2008");
	 * dtm.toString();
	 * @result 'Sat Jan 12 2008 00:00:00' // (where Date.format == 'dd/mm/yyyy'
	 * 
	 * @name fromString
	 * @type Date
	 * @cat Plugins/Methods/Date
	 * @author Kelvin Luck
	 */
	Date.fromString = function(s)
	{
		var f = Date.format;
		
		var d = new Date('01/01/1970');
		
		if (s == '') return d;

		s = s.toLowerCase();
		var matcher = '';
		var order = [];
		var r = /(dd?d?|mm?m?|yy?yy?)+([^(m|d|y)])?/g;
		var results;
		while ((results = r.exec(f)) != null)
		{
			switch (results[1]) {
				case 'd':
				case 'dd':
				case 'm':
				case 'mm':
				case 'yy':
				case 'yyyy':
					matcher += '(\\d+\\d?\\d?\\d?)+';
					order.push(results[1].substr(0, 1));
					break;
				case 'mmm':
					matcher += '([a-z]{3})';
					order.push('M');
					break;
			}
			if (results[2]) {
				matcher += results[2];
			}
			
		}
		var dm = new RegExp(matcher);
		var result = s.match(dm);
		for (var i=0; i<order.length; i++) {
			var res = result[i+1];
			switch(order[i]) {
				case 'd':
					d.setDate(res);
					break;
				case 'm':
					d.setMonth(Number(res)-1);
					break;
				case 'M':
					for (var j=0; j<Date.abbrMonthNames.length; j++) {
						if (Date.abbrMonthNames[j].toLowerCase() == res) break;
					}
					d.setMonth(j);
					break;
				case 'y':
					d.setYear(res);
					break;
			}
		}

		return d;
	};
	
	// utility method
	var _zeroPad = function(num) {
		var s = '0'+num;
		return s.substring(s.length-2);
		//return ('0'+num).substring(-2); // doesn't work on IE :(
	};
	
})();

/**
 * Copyright (c) 2008 Kelvin Luck (http://www.kelvinluck.com/)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * .
 * $Id: jquery.datePicker.js 94 2010-01-25 02:25:27Z kelvin.luck $
 **/

(function($){
    
	$.fn.extend({
/**
 * Render a calendar table into any matched elements.
 * 
 * @param Object s (optional) Customize your calendars.
 * @option Number month The month to render (NOTE that months are zero based). Default is today's month.
 * @option Number year The year to render. Default is today's year.
 * @option Function renderCallback A reference to a function that is called as each cell is rendered and which can add classes and event listeners to the created nodes. Default is no callback.
 * @option Number showHeader Whether or not to show the header row, possible values are: $.dpConst.SHOW_HEADER_NONE (no header), $.dpConst.SHOW_HEADER_SHORT (first letter of each day) and $.dpConst.SHOW_HEADER_LONG (full name of each day). Default is $.dpConst.SHOW_HEADER_SHORT.
 * @option String hoverClass The class to attach to each cell when you hover over it (to allow you to use hover effects in IE6 which doesn't support the :hover pseudo-class on elements other than links). Default is dp-hover. Pass false if you don't want a hover class.
 * @type jQuery
 * @name renderCalendar
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('#calendar-me').renderCalendar({month:0, year:2007});
 * @desc Renders a calendar displaying January 2007 into the element with an id of calendar-me.
 *
 * @example
 * var testCallback = function($td, thisDate, month, year)
 * {
 * if ($td.is('.current-month') && thisDate.getDay() == 4) {
 *		var d = thisDate.getDate();
 *		$td.bind(
 *			'click',
 *			function()
 *			{
 *				alert('You clicked on ' + d + '/' + (Number(month)+1) + '/' + year);
 *			}
 *		).addClass('thursday');
 *	} else if (thisDate.getDay() == 5) {
 *		$td.html('Friday the ' + $td.html() + 'th');
 *	}
 * }
 * $('#calendar-me').renderCalendar({month:0, year:2007, renderCallback:testCallback});
 * 
 * @desc Renders a calendar displaying January 2007 into the element with an id of calendar-me. Every Thursday in the current month has a class of "thursday" applied to it, is clickable and shows an alert when clicked. Every Friday on the calendar has the number inside replaced with text.
 **/
		renderCalendar  :   function(s)
		{
			var dc = function(a)
			{
				return document.createElement(a);
			};

			s = $.extend({}, $.fn.datePicker.defaults, s);
			
			if (s.showHeader != $.dpConst.SHOW_HEADER_NONE) {
				var headRow = $(dc('tr'));
				for (var i=Date.firstDayOfWeek; i<Date.firstDayOfWeek+7; i++) {
					var weekday = i%7;
					var day = Date.dayNames[weekday];
					headRow.append(
						jQuery(dc('th')).attr({'scope':'col', 'abbr':day, 'title':day, 'class':(weekday == 0 || weekday == 6 ? 'weekend' : 'weekday')}).html(s.showHeader == $.dpConst.SHOW_HEADER_SHORT ? day.substr(0, 1) : day)
					);
				}
			};
			
			var calendarTable = $(dc('table'))
									.attr(
										{
											'cellspacing':2
										}
									)
									.addClass('jCalendar')
									.append(
										(s.showHeader != $.dpConst.SHOW_HEADER_NONE ? 
											$(dc('thead'))
												.append(headRow)
											:
											dc('thead')
										)
									);
			var tbody = $(dc('tbody'));
			
			var today = (new Date()).zeroTime();
			today.setHours(12);
			
			var month = s.month == undefined ? today.getMonth() : s.month;
			var year = s.year || today.getFullYear();
			
			var currentDate = (new Date(year, month, 1, 12, 0, 0));
			
			
			var firstDayOffset = Date.firstDayOfWeek - currentDate.getDay() + 1;
			if (firstDayOffset > 1) firstDayOffset -= 7;
			var weeksToDraw = Math.ceil(( (-1*firstDayOffset+1) + currentDate.getDaysInMonth() ) /7);
			currentDate.addDays(firstDayOffset-1);
			
			var doHover = function(firstDayInBounds)
			{
				return function()
				{
					if (s.hoverClass) {
						var $this = $(this);
						if (!s.selectWeek) {
							$this.addClass(s.hoverClass);
						} else if (firstDayInBounds && !$this.is('.disabled')) {
							$this.parent().addClass('activeWeekHover');
						}
					}
				};
			};
			var unHover = function()
			{
				if (s.hoverClass) {
					var $this = $(this);
					$this.removeClass(s.hoverClass);
					$this.parent().removeClass('activeWeekHover');
				}
			};

			var w = 0;
			while (w++<weeksToDraw) {
				var r = jQuery(dc('tr'));
				var firstDayInBounds = s.dpController ? currentDate > s.dpController.startDate : false;
				for (var i=0; i<7; i++) {
					var thisMonth = currentDate.getMonth() == month;
					var d = $(dc('td'))
								.text(currentDate.getDate() + '')
								.addClass((thisMonth ? 'current-month ' : 'other-month ') +
													(currentDate.isWeekend() ? 'weekend ' : 'weekday ') +
													(thisMonth && currentDate.getTime() == today.getTime() ? 'today ' : '')
								)
								.data('datePickerDate', currentDate.asString())
								.hover(doHover(firstDayInBounds), unHover)
							;
					r.append(d);
					if (s.renderCallback) {
						s.renderCallback(d, currentDate, month, year);
					}
					// addDays(1) fails in some locales due to daylight savings. See issue 39.
					//currentDate.addDays(1);
					// set the time to midday to avoid any weird timezone issues??
					currentDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate()+1, 12, 0, 0);
				}
				tbody.append(r);
			}
			calendarTable.append(tbody);
			
			return this.each(
				function()
				{
					$(this).empty().append(calendarTable);
				}
			);
		},
/**
 * Create a datePicker associated with each of the matched elements.
 *
 * The matched element will receive a few custom events with the following signatures:
 *
 * dateSelected(event, date, $td, status)
 * Triggered when a date is selected. event is a reference to the event, date is the Date selected, $td is a jquery object wrapped around the TD that was clicked on and status is whether the date was selected (true) or deselected (false)
 * 
 * dpClosed(event, selected)
 * Triggered when the date picker is closed. event is a reference to the event and selected is an Array containing Date objects.
 *
 * dpMonthChanged(event, displayedMonth, displayedYear)
 * Triggered when the month of the popped up calendar is changed. event is a reference to the event, displayedMonth is the number of the month now displayed (zero based) and displayedYear is the year of the month.
 *
 * dpDisplayed(event, $datePickerDiv)
 * Triggered when the date picker is created. $datePickerDiv is the div containing the date picker. Use this event to add custom content/ listeners to the popped up date picker.
 *
 * @param Object s (optional) Customize your date pickers.
 * @option Number month The month to render when the date picker is opened (NOTE that months are zero based). Default is today's month.
 * @option Number year The year to render when the date picker is opened. Default is today's year.
 * @option String startDate The first date date can be selected.
 * @option String endDate The last date that can be selected.
 * @option Boolean inline Whether to create the datePicker as inline (e.g. always on the page) or as a model popup. Default is false (== modal popup)
 * @option Boolean createButton Whether to create a .dp-choose-date anchor directly after the matched element which when clicked will trigger the showing of the date picker. Default is true.
 * @option Boolean showYearNavigation Whether to display buttons which allow the user to navigate through the months a year at a time. Default is true.
 * @option Boolean closeOnSelect Whether to close the date picker when a date is selected. Default is true.
 * @option Boolean displayClose Whether to create a "Close" button within the date picker popup. Default is false.
 * @option Boolean selectMultiple Whether a user should be able to select multiple dates with this date picker. Default is false.
 * @option Number numSelectable The maximum number of dates that can be selected where selectMultiple is true. Default is a very high number.
 * @option Boolean clickInput If the matched element is an input type="text" and this option is true then clicking on the input will cause the date picker to appear.
 * @option Boolean rememberViewedMonth Whether the datePicker should remember the last viewed month and open on it. If false then the date picker will always open with the month for the first selected date visible.
 * @option Boolean selectWeek Whether to select a complete week at a time...
 * @option Number verticalPosition The vertical alignment of the popped up date picker to the matched element. One of $.dpConst.POS_TOP and $.dpConst.POS_BOTTOM. Default is $.dpConst.POS_TOP.
 * @option Number horizontalPosition The horizontal alignment of the popped up date picker to the matched element. One of $.dpConst.POS_LEFT and $.dpConst.POS_RIGHT.
 * @option Number verticalOffset The number of pixels offset from the defined verticalPosition of this date picker that it should pop up in. Default in 0.
 * @option Number horizontalOffset The number of pixels offset from the defined horizontalPosition of this date picker that it should pop up in. Default in 0.
 * @option (Function|Array) renderCallback A reference to a function (or an array of seperate functions) that is called as each cell is rendered and which can add classes and event listeners to the created nodes. Each callback function will receive four arguments; a jquery object wrapping the created TD, a Date object containing the date this TD represents, a number giving the currently rendered month and a number giving the currently rendered year. Default is no callback.
 * @option String hoverClass The class to attach to each cell when you hover over it (to allow you to use hover effects in IE6 which doesn't support the :hover pseudo-class on elements other than links). Default is dp-hover. Pass false if you don't want a hover class.
 * @type jQuery
 * @name datePicker
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('input.date-picker').datePicker();
 * @desc Creates a date picker button next to all matched input elements. When the button is clicked on the value of the selected date will be placed in the corresponding input (formatted according to Date.format).
 *
 * @example demo/index.html
 * @desc See the projects homepage for many more complex examples...
 **/
		datePicker : function(s)
		{			
			if (!$.event._dpCache) $.event._dpCache = [];
			
			// initialise the date picker controller with the relevant settings...
			s = $.extend({}, $.fn.datePicker.defaults, s);
			
			return this.each(
				function()
				{
					var $this = $(this);
					var alreadyExists = true;
					
					if (!this._dpId) {
						this._dpId = $.event.guid++;
						$.event._dpCache[this._dpId] = new DatePicker(this);
						alreadyExists = false;
					}
					
					if (s.inline) {
						s.createButton = false;
						s.displayClose = false;
						s.closeOnSelect = false;
						$this.empty();
					}
					
					var controller = $.event._dpCache[this._dpId];
					
					controller.init(s);
					
					if (!alreadyExists && s.createButton) {
						// create it!
						controller.button = $('<a href="#" class="dp-choose-date" title="' + $.dpText.TEXT_CHOOSE_DATE + '">' + $.dpText.TEXT_CHOOSE_DATE + '</a>')
								.bind(
									'click',
									function()
									{
										$this.dpDisplay(this);
										this.blur();
										return false;
									}
								);
						$this.after(controller.button);
					}
					
					if (!alreadyExists && $this.is(':text')) {
						$this
							.bind(
								'dateSelected',
								function(e, selectedDate, $td)
								{
									this.value = selectedDate.asString();
								}
							).bind(
								'change',
								function()
								{
									if (this.value == '') {
										controller.clearSelected();
									} else {
										var d = Date.fromString(this.value);
										if (d) {
											controller.setSelected(d, true, true);
										}
									}
								}
							);
						if (s.clickInput) {
							$this.bind(
								'click',
								function()
								{
									// The change event doesn't happen until the input loses focus so we need to manually trigger it...
									$this.trigger('change');
									$this.dpDisplay();
								}
							);
						}
						var d = Date.fromString(this.value);
						if (this.value != '' && d) {
							controller.setSelected(d, true, true);
						}
					}
					
					$this.addClass('dp-applied');
					
				}
			);
		},
/**
 * Disables or enables this date picker
 *
 * @param Boolean s Whether to disable (true) or enable (false) this datePicker
 * @type jQuery
 * @name dpSetDisabled
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * $('.date-picker').dpSetDisabled(true);
 * @desc Prevents this date picker from displaying and adds a class of dp-disabled to it (and it's associated button if it has one) for styling purposes. If the matched element is an input field then it will also set the disabled attribute to stop people directly editing the field.
 **/
		dpSetDisabled : function(s)
		{
			return _w.call(this, 'setDisabled', s);
		},
/**
 * Updates the first selectable date for any date pickers on any matched elements.
 *
 * @param String d A string representing the first selectable date (formatted according to Date.format).
 * @type jQuery
 * @name dpSetStartDate
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * $('.date-picker').dpSetStartDate('01/01/2000');
 * @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the first selectable date for each of these to the first day of the millenium.
 **/
		dpSetStartDate : function(d)
		{
			return _w.call(this, 'setStartDate', d);
		},
/**
 * Updates the last selectable date for any date pickers on any matched elements.
 *
 * @param String d A string representing the last selectable date (formatted according to Date.format).
 * @type jQuery
 * @name dpSetEndDate
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * $('.date-picker').dpSetEndDate('01/01/2010');
 * @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the last selectable date for each of these to the first Janurary 2010.
 **/
		dpSetEndDate : function(d)
		{
			return _w.call(this, 'setEndDate', d);
		},
/**
 * Gets a list of Dates currently selected by this datePicker. This will be an empty array if no dates are currently selected or NULL if there is no datePicker associated with the matched element.
 *
 * @type Array
 * @name dpGetSelected
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * alert($('.date-picker').dpGetSelected());
 * @desc Will alert an empty array (as nothing is selected yet)
 **/
		dpGetSelected : function()
		{
			var c = _getController(this[0]);
			if (c) {
				return c.getSelected();
			}
			return null;
		},
/**
 * Selects or deselects a date on any matched element's date pickers. Deselcting is only useful on date pickers where selectMultiple==true. Selecting will only work if the passed date is within the startDate and endDate boundries for a given date picker.
 *
 * @param String d A string representing the date you want to select (formatted according to Date.format).
 * @param Boolean v Whether you want to select (true) or deselect (false) this date. Optional - default = true.
 * @param Boolean m Whether you want the date picker to open up on the month of this date when it is next opened. Optional - default = true.
 * @param Boolean e Whether you want the date picker to dispatch events related to this change of selection. Optional - default = true.
 * @type jQuery
 * @name dpSetSelected
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * $('.date-picker').dpSetSelected('01/01/2010');
 * @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the selected date on these date pickers to the first Janurary 2010. When the date picker is next opened it will display Janurary 2010.
 **/
		dpSetSelected : function(d, v, m, e)
		{
			if (v == undefined) v=true;
			if (m == undefined) m=true;
			if (e == undefined) e=true;
			return _w.call(this, 'setSelected', Date.fromString(d), v, m, e);
		},
/**
 * Sets the month that will be displayed when the date picker is next opened. If the passed month is before startDate then the month containing startDate will be displayed instead. If the passed month is after endDate then the month containing the endDate will be displayed instead.
 *
 * @param Number m The month you want the date picker to display. Optional - defaults to the currently displayed month.
 * @param Number y The year you want the date picker to display. Optional - defaults to the currently displayed year.
 * @type jQuery
 * @name dpSetDisplayedMonth
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-picker').datePicker();
 * $('.date-picker').dpSetDisplayedMonth(10, 2008);
 * @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the selected date on these date pickers to the first Janurary 2010. When the date picker is next opened it will display Janurary 2010.
 **/
		dpSetDisplayedMonth : function(m, y)
		{
			return _w.call(this, 'setDisplayedMonth', Number(m), Number(y), true);
		},
/**
 * Displays the date picker associated with the matched elements. Since only one date picker can be displayed at once then the date picker associated with the last matched element will be the one that is displayed.
 *
 * @param HTMLElement e An element that you want the date picker to pop up relative in position to. Optional - default behaviour is to pop up next to the element associated with this date picker.
 * @type jQuery
 * @name dpDisplay
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('#date-picker').datePicker();
 * $('#date-picker').dpDisplay();
 * @desc Creates a date picker associated with the element with an id of date-picker and then causes it to pop up.
 **/
		dpDisplay : function(e)
		{
			return _w.call(this, 'display', e);
		},
/**
 * Sets a function or array of functions that is called when each TD of the date picker popup is rendered to the page
 *
 * @param (Function|Array) a A function or an array of functions that are called when each td is rendered. Each function will receive four arguments; a jquery object wrapping the created TD, a Date object containing the date this TD represents, a number giving the currently rendered month and a number giving the currently rendered year.
 * @type jQuery
 * @name dpSetRenderCallback
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('#date-picker').datePicker();
 * $('#date-picker').dpSetRenderCallback(function($td, thisDate, month, year)
 * {
 * 	// do stuff as each td is rendered dependant on the date in the td and the displayed month and year
 * });
 * @desc Creates a date picker associated with the element with an id of date-picker and then creates a function which is called as each td is rendered when this date picker is displayed.
 **/
		dpSetRenderCallback : function(a)
		{
			return _w.call(this, 'setRenderCallback', a);
		},
/**
 * Sets the position that the datePicker will pop up (relative to it's associated element)
 *
 * @param Number v The vertical alignment of the created date picker to it's associated element. Possible values are $.dpConst.POS_TOP and $.dpConst.POS_BOTTOM
 * @param Number h The horizontal alignment of the created date picker to it's associated element. Possible values are $.dpConst.POS_LEFT and $.dpConst.POS_RIGHT
 * @type jQuery
 * @name dpSetPosition
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('#date-picker').datePicker();
 * $('#date-picker').dpSetPosition($.dpConst.POS_BOTTOM, $.dpConst.POS_RIGHT);
 * @desc Creates a date picker associated with the element with an id of date-picker and makes it so that when this date picker pops up it will be bottom and right aligned to the #date-picker element.
 **/
		dpSetPosition : function(v, h)
		{
			return _w.call(this, 'setPosition', v, h);
		},
/**
 * Sets the offset that the popped up date picker will have from it's default position relative to it's associated element (as set by dpSetPosition)
 *
 * @param Number v The vertical offset of the created date picker.
 * @param Number h The horizontal offset of the created date picker.
 * @type jQuery
 * @name dpSetOffset
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('#date-picker').datePicker();
 * $('#date-picker').dpSetOffset(-20, 200);
 * @desc Creates a date picker associated with the element with an id of date-picker and makes it so that when this date picker pops up it will be 20 pixels above and 200 pixels to the right of it's default position.
 **/
		dpSetOffset : function(v, h)
		{
			return _w.call(this, 'setOffset', v, h);
		},
/**
 * Closes the open date picker associated with this element.
 *
 * @type jQuery
 * @name dpClose
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 * @example $('.date-pick')
 *		.datePicker()
 *		.bind(
 *			'focus',
 *			function()
 *			{
 *				$(this).dpDisplay();
 *			}
 *		).bind(
 *			'blur',
 *			function()
 *			{
 *				$(this).dpClose();
 *			}
 *		);
 **/
		dpClose : function()
		{
			return _w.call(this, '_closeCalendar', false, this[0]);
		},
/**
 * Rerenders the date picker's current month (for use with inline calendars and renderCallbacks).
 *
 * @type jQuery
 * @name dpRerenderCalendar
 * @cat plugins/datePicker
 * @author Kelvin Luck (http://www.kelvinluck.com/)
 *
 **/
		dpRerenderCalendar : function()
		{
			return _w.call(this, '_rerenderCalendar');
		},
		// private function called on unload to clean up any expandos etc and prevent memory links...
		_dpDestroy : function()
		{
			// TODO - implement this?
		}
	});
	
	// private internal function to cut down on the amount of code needed where we forward
	// dp* methods on the jQuery object on to the relevant DatePicker controllers...
	var _w = function(f, a1, a2, a3, a4)
	{
		return this.each(
			function()
			{
				var c = _getController(this);
				if (c) {
					c[f](a1, a2, a3, a4);
				}
			}
		);
	};
	
	function DatePicker(ele)
	{
		this.ele = ele;
		
		// initial values...
		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			=	{};
	};
	$.extend(
		DatePicker.prototype,
		{	
			init : function(s)
			{
				this.setStartDate(s.startDate);
				this.setEndDate(s.endDate);
				this.setDisplayedMonth(Number(s.month), Number(s.year));
				this.setRenderCallback(s.renderCallback);
				this.showYearNavigation = s.showYearNavigation;
				this.closeOnSelect = s.closeOnSelect;
				this.displayClose = s.displayClose;
				this.rememberViewedMonth =	s.rememberViewedMonth;
				this.selectMultiple = s.selectMultiple;
				this.numSelectable = s.selectMultiple ? s.numSelectable : 1;
				this.numSelected = 0;
				this.verticalPosition = s.verticalPosition;
				this.horizontalPosition = s.horizontalPosition;
				this.hoverClass = s.hoverClass;
				this.setOffset(s.verticalOffset, s.horizontalOffset);
				this.inline = s.inline;
				this.settings = s;
				if (this.inline) {
					this.context = this.ele;
					this.display();
				}
			},
			setStartDate : function(d)
			{
				if (d) {
					this.startDate = Date.fromString(d);
				}
				if (!this.startDate) {
					this.startDate = (new Date()).zeroTime();
				}
				this.setDisplayedMonth(this.displayedMonth, this.displayedYear);
			},
			setEndDate : function(d)
			{
				if (d) {
					this.endDate = Date.fromString(d);
				}
				if (!this.endDate) {
					this.endDate = (new Date('12/31/2999')); // using the JS Date.parse function which expects mm/dd/yyyy
				}
				if (this.endDate.getTime() < this.startDate.getTime()) {
					this.endDate = this.startDate;
				}
				this.setDisplayedMonth(this.displayedMonth, this.displayedYear);
			},
			setPosition : function(v, h)
			{
				this.verticalPosition = v;
				this.horizontalPosition = h;
			},
			setOffset : function(v, h)
			{
				this.verticalOffset = parseInt(v, 10) || 0;
				this.horizontalOffset = parseInt(h, 10) || 0;
			},
			setDisabled : function(s)
			{
				$e = $(this.ele);
				$e[s ? 'addClass' : 'removeClass']('dp-disabled');
				if (this.button) {
					$but = $(this.button);
					$but[s ? 'addClass' : 'removeClass']('dp-disabled');
					$but.attr('title', s ? '' : $.dpText.TEXT_CHOOSE_DATE);
				}
				if ($e.is(':text')) {
					$e.attr('disabled', s ? 'disabled' : '');
				}
			},
			setDisplayedMonth : function(m, y, rerender)
			{
				if (this.startDate == undefined || this.endDate == undefined) {
					return;
				}
				var s = new Date(this.startDate.getTime());
				s.setDate(1);
				var e = new Date(this.endDate.getTime());
				e.setDate(1);
				
				var t;
				if ((!m && !y) || (isNaN(m) && isNaN(y))) {
					// no month or year passed - default to current month
					t = new Date().zeroTime();
					t.setDate(1);
				} else if (isNaN(m)) {
					// just year passed in - presume we want the displayedMonth
					t = new Date(y, this.displayedMonth, 1);
				} else if (isNaN(y)) {
					// just month passed in - presume we want the displayedYear
					t = new Date(this.displayedYear, m, 1);
				} else {
					// year and month passed in - that's the date we want!
					t = new Date(y, m, 1);
				}
				// check if the desired date is within the range of our defined startDate and endDate
				if (t.getTime() < s.getTime()) {
					t = s;
				} else if (t.getTime() > e.getTime()) {
					t = e;
				}
				var oldMonth = this.displayedMonth;
				var oldYear = this.displayedYear;
				this.displayedMonth = t.getMonth();
				this.displayedYear = t.getFullYear();

				if (rerender && (this.displayedMonth != oldMonth || this.displayedYear != oldYear))
				{
					this._rerenderCalendar();
					$(this.ele).trigger('dpMonthChanged', [this.displayedMonth, this.displayedYear]);
				}
			},
			setSelected : function(d, v, moveToMonth, dispatchEvents)
			{
				if (d < this.startDate || d > this.endDate) {
					// Don't allow people to select dates outside range...
					return;
				}
				var s = this.settings;
				if (s.selectWeek)
				{
					d = d.addDays(- (d.getDay() - Date.firstDayOfWeek + 7) % 7);
					if (d < this.startDate) // The first day of this week is before the start date so is unselectable...
					{
						return;
					}
				}
				if (v == this.isSelected(d)) // this date is already un/selected
				{
					return;
				}
				if (this.selectMultiple == false) {
					this.clearSelected();
				} else if (v && this.numSelected == this.numSelectable) {
					// can't select any more dates...
					return;
				}
				if (moveToMonth && (this.displayedMonth != d.getMonth() || this.displayedYear != d.getFullYear())) {
					this.setDisplayedMonth(d.getMonth(), d.getFullYear(), true);
				}
				this.selectedDates[d.asString()] = v;
				this.numSelected += v ? 1 : -1;
				var selectorString = 'td.' + (d.getMonth() == this.displayedMonth ? 'current-month' : 'other-month');
				var $td;
				$(selectorString, this.context).each(
					function()
					{
						if ($(this).data('datePickerDate') == d.asString()) {
							$td = $(this);
							if (s.selectWeek)
							{
								$td.parent()[v ? 'addClass' : 'removeClass']('selectedWeek');
							}
							$td[v ? 'addClass' : 'removeClass']('selected'); 
						}
					}
				);
				$('td', this.context).not('.selected')[this.selectMultiple &&  this.numSelected == this.numSelectable ? 'addClass' : 'removeClass']('unselectable');
				
				if (dispatchEvents)
				{
					var s = this.isSelected(d);
					$e = $(this.ele);
					var dClone = Date.fromString(d.asString());
					$e.trigger('dateSelected', [dClone, $td, s]);
					$e.trigger('change');
				}
			},
			isSelected : function(d)
			{
				return this.selectedDates[d.asString()];
			},
			getSelected : function()
			{
				var r = [];
				for(s in this.selectedDates) {
					if (this.selectedDates[s] == true) {
						r.push(Date.fromString(s));
					}
				}
				return r;
			},
			clearSelected : function()
			{
				this.selectedDates = {};
				this.numSelected = 0;
				$('td.selected', this.context).removeClass('selected').parent().removeClass('selectedWeek');
			},
			display : function(eleAlignTo)
			{
				if ($(this.ele).is('.dp-disabled')) return;
				
				eleAlignTo = eleAlignTo || this.ele;
				var c = this;
				var $ele = $(eleAlignTo);
				var eleOffset = $ele.offset();
				
				var $createIn;
				var attrs;
				var attrsCalendarHolder;
				var cssRules;
				
				if (c.inline) {
					$createIn = $(this.ele);
					attrs = {
						'id'		:	'calendar-' + this.ele._dpId,
						'class'	:	'dp-popup dp-popup-inline'
					};

					$('.dp-popup', $createIn).remove();
					cssRules = {
					};
				} else {
					$createIn = $('body');
					attrs = {
						'id'		:	'dp-popup',
						'class'	:	'dp-popup'
					};
					cssRules = {
						'top'	:	eleOffset.top + c.verticalOffset,
						'left'	:	eleOffset.left + c.horizontalOffset
					};
					
					var _checkMouse = function(e)
					{
						var el = e.target;
						var cal = $('#dp-popup')[0];
						
						while (true){
							if (el == cal) {
								return true;
							} else if (el == document) {
								c._closeCalendar();
								return false;
							} else {
								el = $(el).parent()[0];
							}
						}
					};
					this._checkMouse = _checkMouse;
					
					c._closeCalendar(true);
					$(document).bind(
						'keydown.datepicker', 
						function(event)
						{
							if (event.keyCode == 27) {
								c._closeCalendar();
							}
						}
					);
				}
				
				if (!c.rememberViewedMonth)
				{
					var selectedDate = this.getSelected()[0];
					if (selectedDate) {
						selectedDate = new Date(selectedDate);
						this.setDisplayedMonth(selectedDate.getMonth(), selectedDate.getFullYear(), false);
					}
				}
				
				$createIn
					.append(
						$('<div></div>')
							.attr(attrs)
							.css(cssRules)
							.append(
//								$('<a href="#" class="selecteee">aaa</a>'),
								$('<h2></h2>'),
								$('<div class="dp-nav-prev"></div>')
									.append(
										$('<a class="dp-nav-prev-year" href="#" title="' + $.dpText.TEXT_PREV_YEAR + '">&lt;&lt;</a>')
											.bind(
												'click',
												function()
												{
													return c._displayNewMonth.call(c, this, 0, -1);
												}
											),
										$('<a class="dp-nav-prev-month" href="#" title="' + $.dpText.TEXT_PREV_MONTH + '">&lt;</a>')
											.bind(
												'click',
												function()
												{
													return c._displayNewMonth.call(c, this, -1, 0);
												}
											)
									),
								$('<div class="dp-nav-next"></div>')
									.append(
										$('<a class="dp-nav-next-year" href="#" title="' + $.dpText.TEXT_NEXT_YEAR + '">&gt;&gt;</a>')
											.bind(
												'click',
												function()
												{
													return c._displayNewMonth.call(c, this, 0, 1);
												}
											),
										$('<a class="dp-nav-next-month" href="#" title="' + $.dpText.TEXT_NEXT_MONTH + '">&gt;</a>')
											.bind(
												'click',
												function()
												{
													return c._displayNewMonth.call(c, this, 1, 0);
												}
											)
									),
								$('<div class="dp-calendar"></div>')
							)
							.bgIframe()
						);
					
				var $pop = this.inline ? $('.dp-popup', this.context) : $('#dp-popup');
				
				if (this.showYearNavigation == false) {
					$('.dp-nav-prev-year, .dp-nav-next-year', c.context).css('display', 'none');
				}
				if (this.displayClose) {
					$pop.append(
						$('<a href="#" id="dp-close">' + $.dpText.TEXT_CLOSE + '</a>')
							.bind(
								'click',
								function()
								{
									c._closeCalendar();
									return false;
								}
							)
					);
				}
				c._renderCalendar();

				$(this.ele).trigger('dpDisplayed', $pop);
				
				if (!c.inline) {
					if (this.verticalPosition == $.dpConst.POS_BOTTOM) {
						$pop.css('top', eleOffset.top + $ele.height() - $pop.height() + c.verticalOffset);
					}
					if (this.horizontalPosition == $.dpConst.POS_RIGHT) {
						$pop.css('left', eleOffset.left + $ele.width() - $pop.width() + c.horizontalOffset);
					}
//					$('.selectee', this.context).focus();
					$(document).bind('mousedown.datepicker', this._checkMouse);
				}
				
			},
			setRenderCallback : function(a)
			{
				if (a == null) return;
				if (a && typeof(a) == 'function') {
					a = [a];
				}
				this.renderCallback = this.renderCallback.concat(a);
			},
			cellRender : function ($td, thisDate, month, year) {
				var c = this.dpController;
				var d = new Date(thisDate.getTime());
				
				// add our click handlers to deal with it when the days are clicked...
				
				$td.bind(
					'click',
					function()
					{
						var $this = $(this);
						if (!$this.is('.disabled')) {
							c.setSelected(d, !$this.is('.selected') || !c.selectMultiple, false, true);
							if (c.closeOnSelect) {
								c._closeCalendar();
							}
							// TODO: Instead of this which doesn't work in IE anyway we should find the next focusable element in the document
							// and pass the focus onto that. That would allow the user to continue on the form as expected...
							if (!$.browser.msie)
							{
								$(c.ele).trigger('focus', [$.dpConst.DP_INTERNAL_FOCUS]);
							}
						}
					}
				);
				if (c.isSelected(d)) {
					$td.addClass('selected');
					if (c.settings.selectWeek)
					{
						$td.parent().addClass('selectedWeek');
					}
				} else  if (c.selectMultiple && c.numSelected == c.numSelectable) {
					$td.addClass('unselectable');
				}
				
			},
			_applyRenderCallbacks : function()
			{
				var c = this;
				$('td', this.context).each(
					function()
					{
						for (var i=0; i<c.renderCallback.length; i++) {
							$td = $(this);
							c.renderCallback[i].apply(this, [$td, Date.fromString($td.data('datePickerDate')), c.displayedMonth, c.displayedYear]);
						}
					}
				);
				return;
			},
			// ele is the clicked button - only proceed if it doesn't have the class disabled...
			// m and y are -1, 0 or 1 depending which direction we want to go in...
			_displayNewMonth : function(ele, m, y) 
			{
				if (!$(ele).is('.disabled')) {
					this.setDisplayedMonth(this.displayedMonth + m, this.displayedYear + y, true);
				}
				ele.blur();
				return false;
			},
			_rerenderCalendar : function()
			{
				this._clearCalendar();
				this._renderCalendar();
			},
			_renderCalendar : function()
			{
				// set the title...
				$('h2', this.context).html((new Date(this.displayedYear, this.displayedMonth, 1)).asString($.dpText.HEADER_FORMAT));
				
				// render the calendar...
				$('.dp-calendar', this.context).renderCalendar(
					$.extend(
						{},
						this.settings, 
						{
							month			: this.displayedMonth,
							year			: this.displayedYear,
							renderCallback	: this.cellRender,
							dpController	: this,
							hoverClass		: this.hoverClass
						})
				);
				
				// update the status of the control buttons and disable dates before startDate or after endDate...
				// TODO: When should the year buttons be disabled? When you can't go forward a whole year from where you are or is that annoying?
				if (this.displayedYear == this.startDate.getFullYear() && this.displayedMonth == this.startDate.getMonth()) {
					$('.dp-nav-prev-year', this.context).addClass('disabled');
					$('.dp-nav-prev-month', this.context).addClass('disabled');
					$('.dp-calendar td.other-month', this.context).each(
						function()
						{
							var $this = $(this);
							if (Number($this.text()) > 20) {
								$this.addClass('disabled');
							}
						}
					);
					var d = this.startDate.getDate();
					$('.dp-calendar td.current-month', this.context).each(
						function()
						{
							var $this = $(this);
							if (Number($this.text()) < d) {
								$this.addClass('disabled');
							}
						}
					);
				} else {
					$('.dp-nav-prev-year', this.context).removeClass('disabled');
					$('.dp-nav-prev-month', this.context).removeClass('disabled');
					var d = this.startDate.getDate();
					if (d > 20) {
						// check if the startDate is last month as we might need to add some disabled classes...
						var st = this.startDate.getTime();
						var sd = new Date(st);
						sd.addMonths(1);
						if (this.displayedYear == sd.getFullYear() && this.displayedMonth == sd.getMonth()) {
							$('.dp-calendar td.other-month', this.context).each(
								function()
								{
									var $this = $(this);
									if (Date.fromString($this.data('datePickerDate')).getTime() < st) {
										$this.addClass('disabled');
									}
								}
							);
						}
					}
				}
				if (this.displayedYear == this.endDate.getFullYear() && this.displayedMonth == this.endDate.getMonth()) {
					$('.dp-nav-next-year', this.context).addClass('disabled');
					$('.dp-nav-next-month', this.context).addClass('disabled');
					$('.dp-calendar td.other-month', this.context).each(
						function()
						{
							var $this = $(this);
							if (Number($this.text()) < 14) {
								$this.addClass('disabled');
							}
						}
					);
					var d = this.endDate.getDate();
					$('.dp-calendar td.current-month', this.context).each(
						function()
						{
							var $this = $(this);
							if (Number($this.text()) > d) {
								$this.addClass('disabled');
							}
						}
					);
				} else {
					$('.dp-nav-next-year', this.context).removeClass('disabled');
					$('.dp-nav-next-month', this.context).removeClass('disabled');
					var d = this.endDate.getDate();
					if (d < 13) {
						// check if the endDate is next month as we might need to add some disabled classes...
						var ed = new Date(this.endDate.getTime());
						ed.addMonths(-1);
						if (this.displayedYear == ed.getFullYear() && this.displayedMonth == ed.getMonth()) {
							$('.dp-calendar td.other-month', this.context).each(
								function()
								{
									var $this = $(this);
									var cellDay = Number($this.text());
									if (cellDay < 13 && cellDay > d) {
										$this.addClass('disabled');
									}
								}
							);
						}
					}
				}
				this._applyRenderCallbacks();
			},
			_closeCalendar : function(programatic, ele)
			{
				if (!ele || ele == this.ele)
				{
					$(document).unbind('mousedown.datepicker');
					$(document).unbind('keydown.datepicker');
					this._clearCalendar();
					$('#dp-popup a').unbind();
					$('#dp-popup').empty().remove();
					if (!programatic) {
						$(this.ele).trigger('dpClosed', [this.getSelected()]);
					}
				}
			},
			// empties the current dp-calendar div and makes sure that all events are unbound
			// and expandos removed to avoid memory leaks...
			_clearCalendar : function()
			{
				// TODO.
				$('.dp-calendar td', this.context).unbind();
				$('.dp-calendar', this.context).empty();
			}
		}
	);
	
	// static constants
	$.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'
	};
	// localisable text
	$.dpText = {
		TEXT_PREV_YEAR		:	'Année précédente',
		TEXT_PREV_MONTH		:	'Mois précédent',
		TEXT_NEXT_YEAR		:	'Année suivante',
		TEXT_NEXT_MONTH		:	'Mois suivant',
		TEXT_CLOSE			:	'Fermer',
		TEXT_CHOOSE_DATE	:	'Sélectionnez une date',
		HEADER_FORMAT		:	'mmmm yyyy'
	};
	// version
	$.dpVersion = '$Id: jquery.datePicker.js 94 2010-01-25 02:25:27Z kelvin.luck $';

	$.fn.datePicker.defaults = {
		month				: undefined,
		year				: undefined,
		showHeader			: $.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	: $.dpConst.POS_TOP,
		horizontalPosition	: $.dpConst.POS_LEFT,
		verticalOffset		: 0,
		horizontalOffset	: 0,
		hoverClass			: 'dp-hover'
	};

	function _getController(ele)
	{
		if (ele._dpId) return $.event._dpCache[ele._dpId];
		return false;
	};
	
	// make it so that no error is thrown if bgIframe plugin isn't included (allows you to use conditional
	// comments to only include bgIframe where it is needed in IE without breaking this plugin).
	if ($.fn.bgIframe == undefined) {
		$.fn.bgIframe = function() {return this; };
	};


	// clean-up
	$(window)
		.bind('unload', function() {
			var els = $.event._dpCache || [];
			for (var i in els) {
				$(els[i].ele)._dpDestroy();
			}
		});
		
	
})(jQuery);

// PRETTY COMMENTS
/* ------------------------------------------------------------------------
	Pretty Comments
	
	Developped By: Stephane Caron (http://www.no-margin-for-errors.com)
	Inspired By: The facebook textarea :)
	Version: 1.4
	
	Copyright: Feel free to redistribute the script/modify it, as
			   long as you leave my infos at the top.
------------------------------------------------------------------------- */

	$.fn.prettyComments = function(settings) {
		settings = jQuery.extend({
					animate: false, /* If you set it to true, cursor will dissapear in FF3 */
					animationSpeed: 'fast', /* fast/slow/normal */
					maxHeight : 500,
					alreadyAnimated: false, /* DONT CHANGE */
					init: true /* DONT CHANGE */
				}, settings);

		// Create the div in which the content will be copied
		$('body').append('<div id="comment_hidden"></div>');

		var setCSS = function(which){
			// Init the div for the current textarea
			$("#comment_hidden").css({
				'position':'absolute',
				'top': -10000,
				'left': -10000,
				'width': $(which).width(),
				'min-height': $(which).height(),
				'font-family': $(which).css('font-family'),
				'font-size': $(which).css('font-size'),
				'line-height': $(which).css('line-height')
			});
			
			if($.browser.msie && parseFloat($.browser.version) < 7){
				$("#comment_hidden").css('height',$(which).height());
			};
		};
		
		var copyContent = function(which){
			// Convert the line feeds into BRs
			theValue = $(which).attr('value') || "";
			theValue = theValue.replace(/\n/g,'<br />');
			
			$("#comment_hidden").html(theValue + '<br />');
			
			if(!settings.init){
				if($("#comment_hidden").height() > $(which).height()){
					if($('#comment_hidden').height() > settings.maxHeight){
						$(which).css('overflow-y','scroll');
					}else{
						$(which).css('overflow-y','hidden');
						expand(which);
					};
				}else if($("#comment_hidden").height() < $(which).height()){
					if($('#comment_hidden').height() > settings.maxHeight){
						$(which).css('overflow-y','scroll');
					}else{
						$(which).css('overflow-y','hidden');
						if($.browser.msie && parseFloat($.browser.version) > 6){
							shrink(which);
						}
					};
				};
			};
		};
		
		var expand = function(which){
			if(settings.animate && !settings.alreadyAnimated){
				settings.alreadyAnimated = true;
				$(which).animate({'height':$("#comment_hidden").height()},settings.animationSpeed,function(){
					settings.alreadyAnimated = false;
				});
			}else if(!settings.animate && !settings.alreadyAnimated){
				$(which).height($("#comment_hidden").height());
			};
		};
		
		var shrink = function(which){
			if(settings.animate && !settings.alreadyAnimated){
				settings.alreadyAnimated = true;
				$(which).animate({'height':$("#comment_hidden").height()},settings.animationSpeed,function(){
					settings.alreadyAnimated = false;
				});
			}else{
				$(which).height($("#comment_hidden").height());
			};
		};
		
		$(this).each(function(){
			$(this).css({
				'overflow':'hidden'
			})
			.bind('keyup',function(){
				copyContent($(this));
			});
			
			// Make sure all the content in the textarea is visible
			setCSS(this);
			copyContent($(this));
			
			if($("#comment_hidden").height() > settings.maxHeight){
				$(this).css({
					'overflow-y':'scroll',
					'height':settings.maxHeight
				});
			}else{
				if($.browser.msie && parseFloat($.browser.version) < 7){
					$(this).css("height","60");
				} else {
					$(this).height($("#comment_hidden").height());
				}
			};
			
			settings.init = false;
		});
	};

//JQBROWSER
/**
 * jQBrowser v0.2 - Extend jQuery's browser detection capabilities
 *   * http://davecardwell.co.uk/javascript/jquery/plugins/jquery-browserdetect/0.2/
 *
 * Dave Cardwell <http://davecardwell.co.uk/>
 *
 * Built on the shoulders of giants:
 *   * John Resig <http://jquery.com/>
 *   * Peter-Paul Koch <http://www.quirksmode.org/?/js/detect.html>
 *
 *
 * Copyright (c) 2006 Dave Cardwell, dual licensed under the MIT and GPL
 * licenses:
 *   * http://www.opensource.org/licenses/mit-license.php
 *   * http://www.gnu.org/licenses/gpl.txt
 */


/**
 * For the latest version of this plugin, and a discussion of its usage and
 * implementation, visit:
 *   * http://davecardwell.co.uk/javascript/jquery/plugins/jquery-browserdetect/
 */

new function() {
    /**
     * The following functions and attributes form the Public interface of the
     * jQBrowser plugin, accessed externally through the $.browser object.
     * See the relevant function definition later in the source for further
     * information.
     *
     * $.browser.browser()
     * $.browser.version.number()
     * $.browser.version.string()
     * $.browser.OS()
     *
     * $.browser.aol()
     * $.browser.camino()
     * $.browser.firefox()
     * $.browser.flock()
     * $.browser.icab()
     * $.browser.konqueror()
     * $.browser.mozilla()
     * $.browser.msie()
     * $.browser.netscape()
     * $.browser.opera()
     * $.browser.safari()
     *
     * $.browser.linux()
     * $.browser.mac()
     * $.browser.win()
     */
    var Public = {
        // The current browser, its version as a number or a string, and the
        // operating system its running on.
          'browser': function() { return Private.browser;   },
          'version': {
              'number': function() { return Private.version.number; },
              'string': function() { return Private.version.string; }
          },
               'OS': function() { return Private.OS;        },

        // A boolean value indicating whether or not the given browser was
        // detected.
              'aol': function() { return Private.aol;       },
           'camino': function() { return Private.camino;    },
          'firefox': function() { return Private.firefox;   },
            'flock': function() { return Private.flock;     },
             'icab': function() { return Private.icab;      },
        'konqueror': function() { return Private.konqueror; },
          'mozilla': function() { return Private.mozilla;   },
             'msie': function() { return Private.msie;      },
         'netscape': function() { return Private.netscape;  },
            'opera': function() { return Private.opera;     },
           'safari': function() { return Private.safari;    },

        // A boolean value indicating whether or not the given OS was
        // detected.
            'linux': function() { return Private.linux;     },
              'mac': function() { return Private.mac;       },
              'win': function() { return Private.win;       }
    };

    // Allow external access to the 'Public' interface through the $.browser
    // object.
    $.browser = Public;



    /**
     * The following functions and attributes form the internal methods and
     * state of the jQBrowser plugin.  See the relevant function definition
     * later in the source for further information.
     *
     * Private.browser
     * Private.version
     * Private.OS
     *
     * Private.aol
     * Private.camino
     * Private.firefox
     * Private.flock
     * Private.icab
     * Private.konqueror
     * Private.mozilla
     * Private.msie
     * Private.netscape
     * Private.opera
     * Private.safari
     *
     * Private.linux
     * Private.mac
     * Private.win
     */
    var Private = {
        // Initially set to 'Unknown', if detected each of these properties will
        // be updated.
          'browser': 'Unknown',
          'version': {
              'number': undefined,
              'string': 'Unknown'
          },
               'OS': 'Unknown',

        // Initially set to false, if detected one of the following browsers
        // will be updated.
              'aol': false,
           'camino': false,
          'firefox': false,
            'flock': false,
             'icab': false,
        'konqueror': false,
          'mozilla': false,
             'msie': false,
         'netscape': false,
            'opera': false,
           'safari': false,

        // Initially set to false, if detected one of the following operating
        // systems will be updated.
            'linux': false,
              'mac': false,
              'win': false
    };



    /**
     * Loop over the items in 'data' trying to find a browser match with the
     * test in data[i].browser().  Once found, attempt to determine the
     * browser version.
     *
     *       'name': A string containing the full name of the browser.
     * 'identifier': By default this is a lowercase version of 'name', but
     *               this can be overwritten by explicitly defining an
     *               'identifier'.
     *    'browser': A function that returns a boolean value indicating
     *               whether or not the given browser is detected.
     *    'version': An optional function that overwrites the default version
     *               testing.  Must return the result of a .match().
     *
     * Please note that the order of the data array is important, as some
     * browsers contain details of others in their navigator.userAgent string.
     * For example, Flock's contains 'Firefox' so much come before Firefox's
     * test to avoid false positives.
     */
    for( var  i = 0,                    // counter
             ua = navigator.userAgent,  // the navigator's user agent string
             ve = navigator.vendor,     // the navigator's vendor string
           data = [                     // browser tests and data
                { // Safari <http://www.apple.com/safari/>
                          'name': 'Safari',
                       'browser': function() { return /Apple/.test(ve); }
                },
                { // Opera <http://www.opera.com/>
                          'name': 'Opera',
                       'browser': function() {
                                      return window.opera != undefined;
                                  }
                },
                { // iCab <http://www.icab.de/>
                          'name': 'iCab',
                       'browser': function() { return /iCab/.test(ve); }
                },
                { // Konqueror <http://www.konqueror.org/>
                          'name': 'Konqueror',
                       'browser': function() { return /KDE/.test(ve); }
                },
                { // AOL Explorer <http://downloads.channel.aol.com/browser>
                    'identifier': 'aol',
                          'name': 'AOL Explorer',
                       'browser': function() {
                                      return /America Online Browser/.test(ua);
                                  },
                       'version': function() {
                                      return ua.match(/rev(\d+(?:\.\d+)+)/);
                                  }
                },
                { // Flock <http://www.flock.com/>
                          'name': 'Flock',
                       'browser': function() { return /Flock/.test(ua); }
                },
                { // Camino <http://www.caminobrowser.org/>
                          'name': 'Camino',
                       'browser': function() { return /Camino/.test(ve); }
                },
                { // Firefox <http://www.mozilla.com/firefox/>
                          'name': 'Firefox',
                       'browser': function() { return /Firefox/.test(ua); }
                },
                { // Netscape <http://browser.netscape.com/>
                          'name': 'Netscape',
                       'browser': function() { return /Netscape/.test(ua); }
                },
                { // Internet Explorer <http://www.microsoft.com/windows/ie/>
                  //                   <http://www.microsoft.com/mac/ie/>
                    'identifier': 'msie',
                          'name': 'Internet Explorer',
                       'browser': function() { return /MSIE/.test(ua); },
                       'version': function() {
                                      return ua.match(
                                          /MSIE (\d+(?:\.\d+)+(?:b\d*)?)/
                                      );
                                  }
                },
                { // Mozilla <http://www.mozilla.org/products/mozilla1.x/>
                          'name': 'Mozilla',
                       'browser': function() {
                                      return /Gecko|Mozilla/.test(ua);
                                  },
                       'version': function() {
                                      return ua.match(/rv:(\d+(?:\.\d+)+)/);
                                  }
                 }
             ];
         i < data.length;
         i++
    ) {
        if( data[i].browser() ) { // we have a match
            // If the identifier is not explicitly set, use a lowercase
            // version of the given name.
            var identifier = data[i].identifier ? data[i].identifier
                                                : data[i].name.toLowerCase();

            // Make a note that this browser was detected.
            Private[ identifier ] = true;

            // $.browser.browser() will now return the correct browser.
            Private.browser = data[i].name;

            var result;
            if( data[i].version != undefined && (result = data[i].version()) ) {
                // Use the explicitly set test for browser version.
                Private.version.string = result[1];
                Private.version.number = parseFloat( result[1] );
            } else {
                // Otherwise use the default test which searches for the
                // version number after the browser name in the user agent
                // string.
                var re = new RegExp(
                    data[i].name + '(?:\\s|\\/)(\\d+(?:\\.\\d+)+(?:(?:a|b)\\d*)?)'
                );

                result = ua.match(re);
                if( result != undefined ) {
                    Private.version.string = result[1];
                    Private.version.number = parseFloat( result[1] );
                }
            }

            // Once we've detected the browser there is no need to check the
            // others.
            break;
        }
    };



    /**
     * Loop over the items in 'data' trying to find a operating system match
     * with the test in data[i].os().
     *
     *       'name': A string containing the full name of the operating
     *               system.
     * 'identifier': By default this is a lowercase version of 'name', but
     *               this can be overwritten by explicitly defining an
     *               'identifier'.
     *         'OS': A function that returns a boolean value indicating
     *               whether or not the given operating system is detected.
     */
    for( var  i = 0,                  // counter
             pl = navigator.platform, // the navigator's platform string
           data = [                   // OS data and tests
                { // Microsoft Windows <http://www.microsoft.com/windows/>
                    'identifier': 'win',
                          'name': 'Windows',
                            'OS': function() { return /Win/.test(pl); }
                },
                { // Apple Mac OS <http://www.apple.com/macos/>
                          'name': 'Mac',
                            'OS': function() { return /Mac/.test(pl); }
                },
                { // Linux <http://www.linux.org/>
                          'name': 'Linux',
                            'OS': function() { return /Linux/.test(pl); }
                }
           ];
       i < data.length;
       i++
    ) {
        if( data[i].OS() ) { // we have a match
            // If the identifier is not explicitly set, use a lowercase
            // version of the given name.
            var identifier = data[i].identifier ? data[i].identifier
                                                : data[i].name.toLowerCase();

            // Make a note that the OS was detected.
            Private[ identifier ] = true;

            // $.browser.OS() will now return the correct OS.
            Private.OS = data[i].name;

            // Once we've detected the browser there is no need to check the
            // others.
            break;
        }
    };
}();

// JQUERY THICKBOX	  
/*
 * Thickbox 3.1 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2007 cody lindley
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
		  
var tb_pathToImage = "/wp-content/themes/vousnousils_theme/images/loadingAnimation.gif";

/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/

//on page load call tb_init
$(document).ready(function(){   
	tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;
});

//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
	$(domChunk).click(function(){
	var t = this.title || this.name || null;
	var a = this.href || this.alt;
	var g = this.rel || false;
	tb_show(t,a,g);
	this.blur();
	return false;
	});
}

function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link

	try {
		if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
			$("body","html").css({height: "100%", width: "100%"});
			$("html").css("overflow","hidden");
			if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
				$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
				$("#TB_overlay").click(tb_remove);
			}
		}else{//all others
			if(document.getElementById("TB_overlay") === null){
				$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
				$("#TB_overlay").click(tb_remove);
			}
		}
		
		if(tb_detectMacXFF()){
			$("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash
		}else{
			$("#TB_overlay").addClass("TB_overlayBG");//use background and opacity
		}
		
		if(caption===null){caption="";}
		$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
		$('#TB_load').show();//show loader
		
		var baseURL;
	   if(url.indexOf("?")!==-1){ //ff there is a query string involved
			baseURL = url.substr(0, url.indexOf("?"));
	   }else{ 
	   		baseURL = url;
	   }
	   
	   var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
	   var urlType = baseURL.toLowerCase().match(urlString);

		if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
				
			TB_PrevCaption = "";
			TB_PrevURL = "";
			TB_PrevHTML = "";
			TB_NextCaption = "";
			TB_NextURL = "";
			TB_NextHTML = "";
			TB_imageCount = "";
			TB_FoundURL = false;
			if(imageGroup){
				TB_TempArray = $("a[@rel="+imageGroup+"]").get();
				for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
					var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
						if (!(TB_TempArray[TB_Counter].href == url)) {						
							if (TB_FoundURL) {
								TB_NextCaption = TB_TempArray[TB_Counter].title;
								TB_NextURL = TB_TempArray[TB_Counter].href;
								TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";
							} else {
								TB_PrevCaption = TB_TempArray[TB_Counter].title;
								TB_PrevURL = TB_TempArray[TB_Counter].href;
								TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";
							}
						} else {
							TB_FoundURL = true;
							TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);											
						}
				}
			}

			imgPreloader = new Image();
			imgPreloader.onload = function(){		
			imgPreloader.onload = null;
				
			// Resizing large images - orginal by Christian Montoya edited by me.
			var pagesize = tb_getPageSize();
			var x = pagesize[0] - 150;
			var y = pagesize[1] - 150;
			var imageWidth = imgPreloader.width;
			var imageHeight = imgPreloader.height;
			if (imageWidth > x) {
				imageHeight = imageHeight * (x / imageWidth); 
				imageWidth = x; 
				if (imageHeight > y) { 
					imageWidth = imageWidth * (y / imageHeight); 
					imageHeight = y; 
				}
			} else if (imageHeight > y) { 
				imageWidth = imageWidth * (y / imageHeight); 
				imageHeight = y; 
				if (imageWidth > x) { 
					imageHeight = imageHeight * (x / imageWidth); 
					imageWidth = x;
				}
			}
			// End Resizing
			
			TB_WIDTH = imageWidth + 30;
			TB_HEIGHT = imageHeight + 60;
			$("#TB_window").append("<a href='' id='TB_ImageOff' title='fermer'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='fermer'>fermer</a></div>"); 		
			
			$("#TB_closeWindowButton").click(tb_remove);
			
			if (!(TB_PrevHTML === "")) {
				function goPrev(){
					if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
					$("#TB_window").remove();
					$("body").append("<div id='TB_window'></div>");
					tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
					return false;	
				}
				$("#TB_prev").click(goPrev);
			}
			
			if (!(TB_NextHTML === "")) {		
				function goNext(){
					$("#TB_window").remove();
					$("body").append("<div id='TB_window'></div>");
					tb_show(TB_NextCaption, TB_NextURL, imageGroup);				
					return false;	
				}
				$("#TB_next").click(goNext);
				
			}

			document.onkeydown = function(e){ 	
				if (e == null) { // ie
					keycode = event.keyCode;
				} else { // mozilla
					keycode = e.which;
				}
				if(keycode == 27){ // close
					tb_remove();
				} else if(keycode == 190){ // display previous image
					if(!(TB_NextHTML == "")){
						document.onkeydown = "";
						goNext();
					}
				} else if(keycode == 188){ // display next image
					if(!(TB_PrevHTML == "")){
						document.onkeydown = "";
						goPrev();
					}
				}	
			};
			
			tb_position();
			$("#TB_load").remove();
			$("#TB_ImageOff").click(tb_remove);
			$("#TB_window").css({display:"block"}); //for safari using css instead of show
			};
			
			imgPreloader.src = url;
		}else{//code to show html
			
			var queryString = url.replace(/^[^\?]+\??/,'');
			var params = tb_parseQuery( queryString );

			TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
			TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
			ajaxContentW = TB_WIDTH - 30;
			ajaxContentH = TB_HEIGHT - 45;
			
			if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window		
					urlNoQuery = url.split('TB_');
					$("#TB_iframeContent").remove();
					if(params['modal'] != "true"){//iframe no modal
						$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='fermer'>fermer</a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>");
					}else{//iframe modal
					$("#TB_overlay").unbind();
						$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'> </iframe>");
					}
			}else{// not an iframe, ajax
					if($("#TB_window").css("display") != "block"){
						if(params['modal'] != "true"){//ajax no modal
						$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>fermer</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
						}else{//ajax modal
						$("#TB_overlay").unbind();
						$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");	
						}
					}else{//this means the window is already up, we are just loading new content via ajax
						$("#TB_ajaxContent")[0].style.width = ajaxContentW +"px";
						$("#TB_ajaxContent")[0].style.height = ajaxContentH +"px";
						$("#TB_ajaxContent")[0].scrollTop = 0;
						$("#TB_ajaxWindowTitle").html(caption);
					}
			}
					
			$("#TB_closeWindowButton").click(tb_remove);
			
				if(url.indexOf('TB_inline') != -1){	
					$("#TB_ajaxContent").append($('#' + params['inlineId']).children());
					$("#TB_window").unload(function () {
						$('#' + params['inlineId']).append( $("#TB_ajaxContent").children() ); // move elements back when you're finished
					});
					tb_position();
					$("#TB_load").remove();
					$("#TB_window").css({display:"block"}); 
				}else if(url.indexOf('TB_iframe') != -1){
					tb_position();
					if($.browser.safari){//safari needs help because it will not fire iframe onload
						$("#TB_load").remove();
						$("#TB_window").css({display:"block"});
					}
				}else{
					$("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
						tb_position();
						$("#TB_load").remove();
						tb_init("#TB_ajaxContent a.thickbox");
						$("#TB_window").css({display:"block"});
					});
				}
			
		}

		if(!params['modal']){
			document.onkeyup = function(e){ 	
				if (e == null) { // ie
					keycode = event.keyCode;
				} else { // mozilla
					keycode = e.which;
				}
				if(keycode == 27){ // close
					tb_remove();
				}	
			};
		}
		
	} catch(e) {
		//nothing here
	}
}

//helper functions below
function tb_showIframe(){
	$("#TB_load").remove();
	$("#TB_window").css({display:"block"});
}

function tb_remove() {
 	$("#TB_imageOff").unbind("click");
	$("#TB_closeWindowButton").unbind("click");
	$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
	$("#TB_load").remove();
	if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
		$("body","html").css({height: "auto", width: "auto"});
		$("html").css("overflow","");
	}
	document.onkeydown = "";
	document.onkeyup = "";
	return false;
}

function tb_position() {
$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
	if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
		$("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
	}
}

function tb_parseQuery ( query ) {
   var Params = {};
   if ( ! query ) {return Params;}// return empty object
   var Pairs = query.split(/[;&]/);
   for ( var i = 0; i < Pairs.length; i++ ) {
      var KeyVal = Pairs[i].split('=');
      if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
      var key = unescape( KeyVal[0] );
      var val = unescape( KeyVal[1] );
      val = val.replace(/\+/g, ' ');
      Params[key] = val;
   }
   return Params;
}

function tb_getPageSize(){
	var de = document.documentElement;
	var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
	arrayPageSize = [w,h];
	return arrayPageSize;
}

function tb_detectMacXFF() {
  var userAgent = navigator.userAgent.toLowerCase();
  if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
    return true;
  }
}

// JQUERY COOKIE
/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */

/**
 * Create a cookie with the given name and value and other optional parameters.
 *
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Set the value of a cookie.
 * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
 * @desc Create a cookie with all available options.
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Create a session cookie.
 * @example $.cookie('the_cookie', null);
 * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
 *       used when the cookie was set.
 *
 * @param String name The name of the cookie.
 * @param String value The value of the cookie.
 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
 *                             when the the browser exits.
 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
 *                        require a secure protocol (like HTTPS).
 * @type undefined
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */

/**
 * Get the value of a cookie with the given name.
 *
 * @example $.cookie('the_cookie');
 * @desc Get the value of a cookie.
 *
 * @param String name The name of the cookie.
 * @return The value of the cookie.
 * @type String
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        // CAUTION: Needed to parenthesize options.path and options.domain
        // in the following expressions, otherwise they evaluate to undefined
        // in the packed version for some reason...
        var path = options.path ? '; path=' + (options.path) : '';
        var domain = options.domain ? '; domain=' + (options.domain) : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};

// JQUERY FONTSCALE
/**
 * jQuery fontscale - A plugin to alter the font size of DOM elements 
 * Copyright (c) 2010 Ben Byrne - ben(at)fireflypartners(dot)com | http://www.fireflypartners.com
 * Dual licensed under MIT and GPL.
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Date: 05/17/2010
 * @author Ben Byrne
 * @version 0.1.1
 *
 */

/**
 * For complete documentation, visit http://byrnecreative.com/blog/fontscale
 * @example $("#fontgrow").fontscale("p","+");
 * @desc Bind scaling up the font size of all P elements to the element #fontgrow with default settings.
 * @example $("#fontshrink").fontscale("p","-",{unit:"percent",increment:25,useCookie:false,adjustLeading:true});
 * @desc Bind scaling down the font size of all P elements to the element #fontshrink with custom settings.
 * @example $("#reset").fontscale("p","reset");
 * @desc Eliminate all fontscale resizing 
 */
 
(function($) {
  $.fn.fontscale = function(selectors, adjustment, parameters) {

    var settings = $.extend( $.fn.fontscale.defaults, parameters);
    
    //only use cookies if we can
		if ( ! $.isFunction( $.cookie )  ) settings.useCookie = false;
		
    // if the cookie exists, we're supposed to use it, and we haven't before, then load it 
	  if (!settings.cookieLoaded && $.cookie(settings.cookieName)  && settings.useCookie) {
      cookieSettings = $.fn.fontscale.readcookie( settings.cookieName );
	    //only actually apply the data from the cookie if its unit settings match!
			if (cookieSettings.unit == settings.unit && !settings.cookieLoaded) $.fn.fontscale.scale( selectors, cookieSettings.delta, settings, true );
	  }
		
    this.each( function() {

		  // bind to elements
		  $(this).bind(settings.event, function() {
        $.fn.fontscale.scale( selectors, adjustment, settings, false);
        if ($.isFunction(settings.onAfter)) settings.onAfter(selectors, adjustment, settings); //is this okay?				
		  });
		});
		
		return this;
		
  };

  $.fn.fontscale.reset = function( object, settings ) {
    
    //remove any scaling done inline (assumed to be from this plugin)
    $(object).each(function(i) {
      $(this).css('font-size','');
      if (settings.adjustLeading) $(this).css('line-height','');
    });
    
    //if we're using a cookie, reset it too
    if ( settings.useCookie ) {
      $.fn.fontscale.savecookie(0, settings );
    }
  };

	$.fn.fontscale.scale = function( object, adj, settings, fromcookie) {
	
    //make delta an int that changes nothing to start
    var delta = 0;
	
    if (adj == "+" || adj == "up") {
      //set the delta as an increase
      delta = settings.increment;
    } else if (adj == "-" || adj == "down") {
      //set the delta as a decrease
      delta = settings.increment * -1;
    } else if (adj == "reset") {
      //remove applied changes and do nothing else
      return $.fn.fontscale.reset( object, settings );
    } else if (fromcookie) {
      //get a pre-calibrated delta from the cookie if 
      delta = parseFloat(adj);
      settings.cookieLoaded = true;
	  }
	 	 
    //change the value into a percent if we have to
    if (settings.unit == "percent" && !fromcookie) {
      delta = 1 + (delta / 100);
    }
    	 
    $(object).each(function(i) {

      var currentSize = parseInt($(this).css("font-size"), 10);
      var currentLeading = parseInt($(this).css("line-height"), 10);
      
      if (settings.unit == "percent") {
        $(this).css("font-size", Math.round( currentSize * delta));
        if (settings.adjustLeading) $(this).css("line-height", Math.round( currentLeading * delta));
      } else {
        $(this).css("font-size", currentSize + delta);
        if (settings.adjustLeading) $(this).css("line-height", currentLeading + delta);
      }
  
	 });

  if (settings.useCookie && !fromcookie)  $.fn.fontscale.savecookie( delta, settings );
 
  return;
  
  };
  
  $.fn.fontscale.savecookie = function( delta, settings ) {
        
    if ($.cookie( settings.cookieName )) {
      properties = $.fn.fontscale.readcookie( settings.cookieName );
    } else {
      properties = {"delta":0};
    }
        
    //if we have a cookie that matches, just change the delta
    if (settings.unit == properties.unit) {  

      if (settings.unit == "percent") {
        properties.delta = (delta) ? properties.delta * delta : 1 ;
      } else {
        properties.delta = parseInt(properties.delta, 10) + delta;
      }
    
      return $.cookie( settings.cookieName, "delta="+properties.delta+"&unit="+properties.unit, settings.cookieParams);
    
    //no cookie that matches, create a new     
    } else {
      $.cookie( settings.cookieName, "delta="+delta+"&unit="+settings.unit, settings.cookieParams);
      return true;
    }
      
  };
  
  $.fn.fontscale.readcookie = function( the_cookie ) {
  
    val_string = $.cookie( the_cookie );
                
    var objResult = {};
    $.each(val_string.split("&"), function() { 
      var prm=this.split("=");
      objResult[prm[0]] = prm[1]; 
    });
    return objResult;
  };

})(jQuery);

$.fn.fontscale.defaults = {
  useCookie:true,
  cookieName:'fontscale',
  cookieParams:{
    expires:30,
    path:"/"},
  increment:2,
  unit:"px",
  adjustLeading:false,
  event:"click",
  cookieLoaded:false
};

// SET ARIA PARAMETERS
setAriaParameters = function() {
	jQuery("nav").attr("role","navigation");
	jQuery("footer").attr("role","contentinfo");
};

// DETECT FF 3.0
detectFF = function() {
	if (($.browser.firefox()) && ($.browser.version.number() < 3.5)) {
		Cufon.replace("#header .item span, #menu-nav li, .breadcrumbs, .search-form label, .btn-rss, .btn-newsletter, .column .main-title, .column h1, .column h2, #content .block h2, .column h3, .meta, #sidebar .block h4, .suggest");
	}	
};

log = function(s) {
	console.log(s);
}

// CHECK REGISTER FORM
checkRegisterForm = function() {
	
	if ( jQuery("#vniForm").length ) {		

		jQuery("#vniForm").validate({
			rules: {
				pseudo: "required",
				civility: "required",
				user_lastname: "required",
				user_firstname: "required",
				city: "required",
				zipcode: "required",
				country: "required",
				user_email: {required:true, email:true},
				institution: "required",
				rne_code: "required",
				cgv: "required",
				recaptcha_response_field: "required"
			},
			messages: {
				pseudo: "Pseudo",
				civility: "Civilité",
				user_lastname: "Nom",
				user_firstname: "Prénom",
				city: "Ville",
				zipcode: "Département",
				country: "Pays",
				user_email: {required:"mél", email:"mél (Format incorrect)"},
				institution: "Nom de l'établissement",
				rne_code: "Numéro RNE ou UAI",
				cgv: "Conditions générales d'utilisation",
				recaptcha_response_field: "Sécurité"
			},
			showErrors: function (errors, validator) {
				if (this.errorList.length) {
						jQuery("#errorMsg").fadeIn();
						jQuery("#errorMsg").html("<p>Les champs indiqués ci-dessous sont mal renseignés :</p>");
						jQuery("#errorMsg").scrollTo(1000);
				} else {
					jQuery("#errorMsg").hide();
				}
				this.defaultShowErrors();
			},
			focusInvalid: false,
			onfocusin: false,
			onkeyup: false,
			onclick: false,
			onfocusout: false,
			errorLabelContainer: jQuery("#errorMsg")
		});
	}
};

// CHECK LOGIN FORM
checkLoginForm = function() {
	if ( jQuery("#vniLoginForm").length ) {
		jQuery("#vniLoginForm").validate({
			rules: {
				log: "required",
				pwd:"required"
			},
			messages: {
				log: "Pseudo",
				pwd: "Mot de passe"
			},
			showErrors: function (errors, validator) {
				if (this.errorList.length) {
						jQuery("#errorMsg").fadeIn();
						jQuery("#errorMsg").html("<p>Les champs indiqués ci-dessous sont mal renseignés :</p>");
						jQuery("#errorMsg").scrollTo(1000);
				} else {
					jQuery("#errorMsg").hide();
				}
				this.defaultShowErrors();
			},
			focusInvalid: false,
			onfocusin: false,
			onkeyup: false,
			onclick: false,
			onfocusout: false,
			errorLabelContainer: jQuery("#errorMsg")
		});
	}
};

// CHECK ANNONCE FORM
checkAnnonceForm = function() {
	if ( jQuery("#vniAnnonceForm").length ) {
		jQuery("#vniAnnonceForm").validate({
			rules: {
				city: "required",
				zipcode: "required",
				type: "required",
				theme: "required",
				texte: "required",
				photo: "required"
			},
			messages: {
				city: "Ville",
				zipcode: "Dept/Pays",
				type: "Type",
				theme: "Thème",
				texte: "Texte",
				photo: "Photo"
			},
			showErrors: function (errors, validator) {
				if (this.errorList.length) {
						jQuery("#errorMsg").fadeIn();
						jQuery("#errorMsg").html("<p>Les champs indiqués ci-dessous sont mal renseignés :</p>");
						jQuery("#errorMsg").scrollTo(1000);
				} else {
					jQuery("#errorMsg").hide();
				}
				this.defaultShowErrors();
			},
			focusInvalid: false,
			onfocusin: false,
			onkeyup: false,
			onclick: false,
			onfocusout: false,
			errorLabelContainer: jQuery("#errorMsg")
		});
	}
};

// CHECK FORGOT PWD FORM
checkForgotPwdForm = function() {
	if ( jQuery("#vniRetrieveForm").length ) {
		jQuery("#vniRetrieveForm").validate({
			rules: {
				user_login: {required:true, email:true}
			},
			messages: {
				user_login: {required:"Adresse mél", email:"Adresse mél (Format incorrect)"}
			},
			showErrors: function (errors, validator) {
				if (this.errorList.length) {
						jQuery("#errorMsg").fadeIn();
						jQuery("#errorMsg").html("<p>Le champs indiqué ci-dessous est mal renseigné :</p>");
						jQuery("#errorMsg").scrollTo(1000);
				} else {
					jQuery("#errorMsg").hide();
				}
				this.defaultShowErrors();
			},
			focusInvalid: false,
			onfocusin: false,
			onkeyup: false,
			onclick: false,
			onfocusout: false,
			errorLabelContainer: jQuery("#errorMsg")
		});
	}
};

// CHECK CONTACT FORM
checkContactForm = function() {
	if ( jQuery("#vniContactForm").length ) {
		jQuery("#vniContactForm").validate({
			rules: {
				msgobject: "required",
				email: {required:true, email:true},
				commentaires: "required"
			},
			messages: {
				msgobject: "Objet du message",
				email: {required:"Adresse email", email:"Adresse email (Format incorrect)"},
				commentaires: "Commentaires"
			},
			showErrors: function (errors, validator) {
				if (this.errorList.length) {
						jQuery("#errorMsg").fadeIn();
						jQuery("#errorMsg").html("<p>Les champs indiqués ci-dessous sont mal renseignés :</p>");
						jQuery("#errorMsg").scrollTo(1000);
				} else {
					jQuery("#errorMsg").hide();
				}
				this.defaultShowErrors();
			},
			focusInvalid: false,
			onfocusin: false,
			onkeyup: false,
			onclick: false,
			onfocusout: false,
			errorLabelContainer: jQuery("#errorMsg")
		});
	}
};

// CHECK COMMENT FORM
checkCommentForm = function() {
	if ( jQuery("#commentform").length ) {
		jQuery("#commentform").validate({
			rules: {
				author: "required",
				email: {required:true, email:true},
				comment: {required:true, maxlength:1000}
			},
			messages: {
				author: "Votre pseudo",
				email: {required:"Votre email", email:"Votre email (Format incorrect)"},
				comment: {required:"Votre message", maxlength:"Votre message ne doit pas dépasser les 1000 caractères"}
			},
			showErrors: function (errors, validator) {
				if (this.errorList.length) {
						jQuery("#errorMsg").fadeIn();
						jQuery("#errorMsg").html("<p>Les champs indiqués ci-dessous sont mal renseignés :</p>");
						jQuery("#errorMsg").scrollTo(1000);
				} else {
					jQuery("#errorMsg").hide();
				}
				this.defaultShowErrors();
			},
			focusInvalid: false,
			onfocusin: false,
			onkeyup: false,
			onclick: false,
			onfocusout: false,
			errorLabelContainer: jQuery("#errorMsg")
		});
	}
};

// CHECK ANSWER FORM
checkAnswerForm = function() {
	if (jQuery("#commentForm").length) {
		jQuery("#commentForm").before('<div id="errorMsg"></div>');
		jQuery("#commentForm").validate({
			rules: {
				email: {required:true, email:true},
				comment: {required:true, maxlength:1000}
			},
			messages: {
				email: {required:"Votre email", email:"Votre email (Format incorrect)"},
				comment: "Votre réponse"
			},
			showErrors: function (errors, validator) {
				if (this.errorList.length) {
						jQuery("#errorMsg").fadeIn();
						jQuery("#errorMsg").html("<p>Les champs indiqués ci-dessous sont mal renseignés :</p>");
						jQuery("#errorMsg").scrollTo(1000);
				} else {
					jQuery("#errorMsg").hide();
				}
				this.defaultShowErrors();
			},
			focusInvalid: false,
			onfocusin: false,
			onkeyup: false,
			onclick: false,
			onfocusout: false,
			errorLabelContainer: jQuery("#errorMsg")
		});
	}
};

// SKIN INPUT FILE
skinInputFile = function() {
	jQuery(".upload").filestyle({ 
	     image: "/wp-content/themes/vousnousils_theme/images/bt-parcourir.png",
	     imageheight : 21,
	     imagewidth : 72,
	     width : 210
	 });
};

// MAIN MENU HOVER
mainMenuHover = function() {
	var defaultActive = jQuery("#menu-nav > li.active").attr("id");
	jQuery("#menu-nav > li").mouseover(function(){
			jQuery("#menu-nav > li.active").removeClass("active");
			jQuery(this).addClass("active");
		}).mouseout(function(){
			jQuery(this).removeClass("active");
			jQuery("#"+defaultActive).addClass("active");
	});
};

// DOSSIER LIST EQUAL HEIGHT
equalHeightListItem = function() {
	if (jQuery("#dossiers .dossiers .block").length > 1) {
		jQuery("#dossiers .dossiers .block").equalHeight();
	}
};

// DIAPORAMA
diaporama = function() {
	if (jQuery("#photos").length) {
		jQuery("#photos").galleryView({
			panel_width: 640,
			panel_height: 330,
			frame_width: 54,
			frame_height: 54
		});	
	}
};

// SEARCH ARCHIVES - DATE PICKER
datePickerArchives = function() {
	if (jQuery(".date-pick").length) {
		jQuery(".date-pick").datePicker({startDate:'01/01/2000'});
	}
};

// EXPAND / GROW TEXTAREA
expandTextarea = function() {
	if (jQuery("#content textarea").length) {
		jQuery("#content textarea").prettyComments();
	}
};

// SWAP DEFAULT TEXT TEXTAREA
swapDefaultTextareaDefaultValue = function(){
	if (jQuery("#comment").length) {
		swapValue = jQuery("#comment").html();
		jQuery("#comment").focus(function(){
			if (jQuery("#comment").html() == swapValue) {
				jQuery("#comment").html("");
			}
		});
	}
};

// DEPECHES TABS
depechesTabs = function() {
	if (jQuery("#depeches").length) {
		jQuery(".tab-content").hide();
		jQuery("#tabset li:first").addClass("tabs-selected").show();
		jQuery(".tab-content:first").show();
		jQuery("#tabset li").not(".tabafp").click(function() {
			jQuery("#tabset li").removeClass("tabs-selected"); 
			jQuery(this).addClass("tabs-selected");
			jQuery(".tab-content").hide(); 
			var activeTab = jQuery(this).find("a").attr("href"); 
			jQuery(activeTab).fadeIn();
			return false;
		});
	}
};

// PRINTABLE PAGE
printablePage = function() {
	jQuery(".print a").click(function(event) {
		var newWin = window.open(this.href, 'vousnousilsprint','width=720,height=400,scrollbars=yes,status=no,menubar=no,directories=no,location=no,resizable=no,titlebar=no,toolbar=no,left=50%,top=50%');
		newWin.focus();
		event.preventDefault(); 
	});
};

// ZOOM TEXT
zoomText = function() {
	 jQuery(".zoomPlus").fontscale("#content .block p, #content .block h3, #content .block h4","up",{unit:"percent",increment:20});
	 jQuery(".zoomMinus").fontscale("#content .block p, #content .block h3, #content .block h4","down",{unit:"percent",increment:20});
	 jQuery(".zoomReset").fontscale("#content .block p, #content .block h3, #content .block h4","reset");
	 jQuery(".zoomPlus, .zoomMinus, .zoomReset").click(function(event) {
		event.preventDefault(); 
	 });
};



jQuery(window).load(function(){
	jQuery(".alignleft img").each(function(){
		if(this.readyState == 'uninitialized' || (typeof this.naturalWidth != "undefined" && this.naturalWidth == 0) ){
			jQuery(this).parent().hide();
		}
	});
});

jQuery(document).ready(function(){
	setAriaParameters();
	jQuery(".emailProtect").each(emailProtect);
	detectFF();
	checkRegisterForm();
	checkAnnonceForm();
	checkLoginForm();
	checkForgotPwdForm();
	checkContactForm();
	checkCommentForm();
	checkAnswerForm();
	skinInputFile();
	jQuery("label.over").labelOver("over");
	mainMenuHover();
	equalHeightListItem();
	diaporama();
	datePickerArchives();
	expandTextarea();
	swapDefaultTextareaDefaultValue();
	depechesTabs();
	printablePage();
	zoomText();
});
