/**	@author Malgorzata Wierzbicka m.bieron@apeiro.pl **/

/* 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: 2005 Albert-Jan Pool published by FSI Fonts und Software GmbH
 * Trademark: DIN is a trademark of FSI Fonts und Software GmbH
 * Manufacturer: FSI Fonts und Software GmbH
 * Designer: Albert-Jan Pool
 * Vendor URL: http://www.fontfont.com
 * License information: http://www.fontfont.com/eula/license.html */
Cufon.registerFont({"w":226,"face":{"font-family":"din","font-weight":500,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 5 3 3 0 0 2 0 4","ascent":"275","descent":"-85","bbox":"-1 -339 354 76","underline-thickness":"18.36","underline-position":"-30.6","stemh":"35","stemv":"37","unicode-range":"U+0041-U+042F"},"glyphs":{" ":{},"A":{"d":"222,0r-41,0r-18,-51r-101,0r-18,51r-41,0r94,-256r31,0xm152,-85r-39,-113r-40,113r79,0","w":225,"k":{"\u0162":22,"\u010c":4,"\u00d6":4,"\u00d3":4,"Y":13,"W":10,"T":22,"Q":4,"O":4,"J":-1,"G":4,"C":4}},"B":{"d":"215,-72v2,87,-98,72,-182,72r0,-256r100,0v48,0,78,27,78,70v0,28,-18,47,-35,54v20,8,39,28,39,60xm176,-74v0,-46,-58,-39,-104,-39r0,78v46,0,104,8,104,-39xm172,-185v0,-45,-56,-35,-100,-36r0,73v44,0,100,9,100,-37","w":238,"k":{"J":7}},"C":{"d":"63,-128v0,74,4,95,53,95v28,0,46,-18,52,-44r40,0v-9,51,-46,79,-92,79v-66,0,-92,-50,-92,-130v0,-80,25,-130,92,-130v47,0,83,27,92,78r-40,0v-6,-26,-24,-44,-52,-44v-48,0,-53,23,-53,96","k":{"\u0162":7,"\u0104":4,"\u0102":4,"\u00c1":4,"\u00c0":4,"Y":4,"X":4,"W":4,"T":7,"J":7,"A":4}},"D":{"d":"123,-256v70,-5,93,63,93,126v0,37,1,77,-26,106v-31,33,-97,22,-157,24r0,-256r90,0xm120,-35v49,0,57,-37,57,-95v0,-57,-9,-90,-57,-91r-48,0r0,186r48,0","w":239,"k":{"\u0162":7,"\u0104":4,"\u0102":4,"\u00c1":4,"\u00c0":4,"Y":4,"X":4,"W":4,"T":7,"J":9,"A":4}},"E":{"d":"197,0r-164,0r0,-256r164,0r0,35r-125,0r0,74r107,0r0,35r-107,0r0,77r125,0r0,35","w":217,"k":{"J":1}},"F":{"d":"197,-221r-125,0r0,78r107,0r0,35r-107,0r0,108r-39,0r0,-256r164,0r0,35","w":210,"k":{"\u015a":4,"\u010c":7,"\u0104":22,"\u0102":22,"\u00d6":7,"\u00d3":7,"\u00c1":22,"\u00c0":22,"S":4,"Q":7,"O":7,"J":45,"G":7,"C":7,"A":22}},"G":{"d":"116,-33v37,0,60,-29,55,-72r-55,0r0,-34r94,0v10,85,-24,142,-94,141v-66,-2,-92,-50,-92,-130v0,-80,25,-130,92,-130v54,0,87,35,94,79r-40,0v-6,-28,-25,-45,-54,-45v-48,0,-53,23,-53,96v0,74,4,95,53,95","w":233,"k":{"\u0162":7,"\u0104":4,"\u0102":4,"\u00c1":4,"\u00c0":4,"Y":4,"X":4,"W":4,"T":7,"J":12,"A":4}},"H":{"d":"215,0r-39,0r0,-112r-104,0r0,112r-39,0r0,-256r39,0r0,109r104,0r0,-109r39,0r0,256","w":248},"I":{"d":"72,0r-39,0r0,-256r39,0r0,256","w":105},"J":{"d":"152,-81v4,80,-99,108,-147,58r26,-25v24,29,82,15,82,-36r0,-172r39,0r0,175","w":182,"k":{"\u0104":4,"\u0102":4,"\u00c1":4,"\u00c0":4,"A":4}},"K":{"d":"233,0r-45,0r-72,-126r-44,51r0,75r-39,0r0,-256r39,0r0,129r105,-129r48,0r-84,100","w":236,"k":{"\u010c":4,"\u00d6":4,"\u00d3":4,"Q":4,"O":4,"J":-1,"G":4,"C":4}},"L":{"d":"196,0r-163,0r0,-256r39,0r0,221r124,0r0,35","w":206,"k":{"\u0162":29,"\u010c":9,"\u00d6":9,"\u00d3":9,"Y":29,"W":14,"U":4,"T":29,"Q":9,"O":9,"J":-1,"G":9,"C":9}},"M":{"d":"260,0r-39,0r0,-171r-59,125r-29,0r-61,-125r0,171r-39,0r0,-256r39,0r75,159r74,-159r39,0r0,256","w":292},"N":{"d":"226,0r-35,0r-119,-180r0,180r-39,0r0,-256r36,0r119,180r0,-180r38,0r0,256","w":259},"O":{"d":"116,-258v67,0,101,50,92,130v8,80,-25,130,-92,130v-66,0,-92,-50,-92,-130v0,-80,25,-130,92,-130xm116,-33v47,-9,54,-22,54,-95v0,-74,-7,-86,-54,-96v-47,9,-53,23,-53,96v0,74,6,85,53,95","w":232,"k":{"\u0162":7,"\u0104":4,"\u0102":4,"\u00c1":4,"\u00c0":4,"Y":4,"X":4,"W":4,"T":7,"J":12,"A":4}},"P":{"d":"213,-179v0,67,-64,86,-141,78r0,101r-39,0r0,-256r98,0v50,0,82,32,82,77xm174,-179v0,-49,-54,-43,-102,-42r0,85v48,1,102,7,102,-43","k":{"\u0104":18,"\u0102":18,"\u00c1":18,"\u00c0":18,"J":43,"A":18}},"Q":{"d":"116,-258v67,0,92,50,92,130v0,44,1,70,-16,93r25,25r-22,22r-25,-26v-77,45,-165,-12,-146,-114v-7,-80,25,-130,92,-130xm63,-128v0,74,6,85,53,95v10,0,19,-3,27,-8r-27,-27r21,-22r25,25v6,-13,8,-30,8,-63v1,-74,-7,-86,-54,-96v-47,9,-53,23,-53,96","w":232},"R":{"d":"220,0r-45,0r-54,-108r-49,0r0,108r-39,0r0,-256r100,0v91,-9,104,129,28,143xm174,-181v0,-47,-55,-41,-102,-40r0,80v47,0,102,7,102,-40","w":235,"k":{"J":3}},"S":{"d":"173,-126v45,51,9,128,-71,128v-39,0,-67,-9,-91,-34r26,-25v28,35,117,35,118,-15v2,-57,-90,-31,-117,-62v-42,-48,-9,-124,67,-124v34,0,58,8,80,29r-25,24v-27,-31,-104,-27,-103,20v1,53,91,31,116,59","w":212,"k":{"\u015a":2,"Y":7,"S":2,"J":7}},"T":{"d":"191,-221r-71,0r0,221r-39,0r0,-221r-70,0r0,-35r180,0r0,35","w":201,"k":{"\u010c":7,"\u0104":22,"\u0102":22,"\u00d6":7,"\u00d3":7,"\u00c1":22,"\u00c0":22,"Q":7,"O":7,"J":29,"G":7,"C":7,"A":22}},"U":{"d":"213,-86v0,53,-40,88,-92,88v-52,0,-91,-35,-91,-88r0,-170r38,0r0,168v0,34,21,55,53,55v32,0,54,-21,54,-55r0,-168r38,0r0,170","w":243,"k":{"J":4}},"W":{"d":"310,-256r-67,256r-34,0r-52,-180r-52,180r-34,0r-67,-256r41,0r45,183r51,-183r31,0r52,183r45,-183r41,0","w":313,"k":{"\u010c":4,"\u0104":6,"\u0102":6,"\u00d6":4,"\u00d3":4,"\u00c1":6,"\u00c0":6,"Q":4,"O":4,"G":4,"C":4,"A":6}},"X":{"d":"204,0r-45,0r-55,-98r-56,98r-44,0r79,-131r-74,-125r44,0r51,91r50,-91r45,0r-74,125","w":208,"k":{"\u010c":4,"\u00d6":4,"\u00d3":4,"Q":4,"O":4,"J":-1,"G":4,"C":4}},"Y":{"d":"194,-256r-77,151r0,105r-39,0r0,-105r-76,-151r42,0r54,112r54,-112r42,0","w":195,"k":{"\u010c":4,"\u0104":14,"\u0102":14,"\u00d6":4,"\u00d3":4,"\u00c1":14,"\u00c0":14,"Q":4,"O":4,"J":14,"G":4,"C":4,"A":14}},"Z":{"d":"181,0r-164,0r0,-33r119,-188r-114,0r0,-35r159,0r0,31r-119,190r119,0r0,35","w":198},"\u00c0":{"d":"222,0r-41,0r-18,-51r-101,0r-18,51r-41,0r94,-256r31,0xm152,-85r-39,-113r-40,113r79,0xm130,-281r-28,0r-40,-58r41,0","w":225,"k":{"Y":13,"W":10,"T":22,"Q":4,"O":4,"J":-1,"G":4,"C":4}},"\u00c1":{"d":"222,0r-41,0r-18,-51r-101,0r-18,51r-41,0r94,-256r31,0xm152,-85r-39,-113r-40,113r79,0xm161,-339r-40,58r-28,0r27,-58r41,0","w":225,"k":{"Y":13,"W":10,"T":22,"Q":4,"O":4,"J":-1,"G":4,"C":4}},"\u00c9":{"d":"197,0r-164,0r0,-256r164,0r0,35r-125,0r0,74r107,0r0,35r-107,0r0,77r125,0r0,35xm161,-339r-40,58r-28,0r27,-58r41,0","w":217,"k":{"J":1}},"\u00cd":{"d":"72,0r-39,0r0,-256r39,0r0,256xm107,-339r-40,58r-28,0r27,-58r41,0","w":105},"\u00d3":{"d":"116,-258v67,0,101,50,92,130v8,80,-25,130,-92,130v-66,0,-92,-50,-92,-130v0,-80,25,-130,92,-130xm116,-33v47,-9,54,-22,54,-95v0,-74,-7,-86,-54,-96v-47,9,-53,23,-53,96v0,74,6,85,53,95xm165,-339r-40,58r-27,0r27,-58r40,0","w":232,"k":{"Y":4,"X":4,"W":4,"T":7,"J":12,"A":4}},"\u00d6":{"d":"116,-258v67,0,101,50,92,130v8,80,-25,130,-92,130v-66,0,-92,-50,-92,-130v0,-80,25,-130,92,-130xm116,-33v47,-9,54,-22,54,-95v0,-74,-7,-86,-54,-96v-47,9,-53,23,-53,96v0,74,6,85,53,95xm172,-283r-33,0r0,-39r33,0r0,39xm94,-283r-33,0r0,-39r33,0r0,39","w":232,"k":{"Y":4,"X":4,"W":4,"T":7,"J":12,"A":4}},"\u0102":{"d":"222,0r-41,0r-18,-51r-101,0r-18,51r-41,0r94,-256r31,0xm152,-85r-39,-113r-40,113r79,0xm173,-337v-2,36,-26,52,-60,52v-34,0,-57,-16,-59,-52r26,0v1,34,65,33,67,0r26,0","w":225,"k":{"Y":13,"W":10,"T":22,"Q":4,"O":4,"J":-1,"G":4,"C":4}},"\u0104":{"d":"222,0r-41,0r-18,-51r-101,0r-18,51r-41,0r94,-256r31,0xm152,-85r-39,-113r-40,113r79,0xm207,23r-18,53r-37,0r25,-53r30,0","w":225,"k":{"Y":13,"W":10,"T":22,"Q":4,"O":4,"J":-1,"G":4,"C":4}},"\u010c":{"d":"63,-128v0,74,4,95,53,95v28,0,46,-18,52,-44r40,0v-9,51,-46,79,-92,79v-66,0,-92,-50,-92,-130v0,-80,25,-130,92,-130v47,0,83,27,92,78r-40,0v-6,-26,-24,-44,-52,-44v-48,0,-53,23,-53,96xm175,-339r-46,58r-31,0r-47,-58r31,0r31,35r31,-35r31,0","k":{"Y":4,"X":4,"W":4,"T":7,"J":7,"A":4}},"\u0118":{"d":"197,0r-164,0r0,-256r164,0r0,35r-125,0r0,74r107,0r0,35r-107,0r0,77r125,0r0,35xm197,23r-18,53r-36,0r25,-53r29,0","w":217,"k":{"J":1}},"\u015a":{"d":"173,-126v45,51,9,128,-71,128v-39,0,-67,-9,-91,-34r26,-25v28,35,117,35,118,-15v2,-57,-90,-31,-117,-62v-42,-48,-9,-124,67,-124v34,0,58,8,80,29r-25,24v-27,-31,-104,-27,-103,20v1,53,91,31,116,59xm155,-339r-40,58r-28,0r27,-58r41,0","w":212,"k":{"Y":7,"S":2,"J":7}},"\u0162":{"d":"191,-221r-71,0r0,221r-39,0r0,-221r-70,0r0,-35r180,0r0,35xm126,23r-19,53r-36,0r25,-53r30,0","w":201,"k":{"Q":7,"O":7,"J":29,"G":7,"C":7,"A":22}},"\u017b":{"d":"181,0r-164,0r0,-33r119,-188r-114,0r0,-35r159,0r0,31r-119,190r119,0r0,35xm81,-285r0,-35r35,0r0,35r-35,0","w":198},"\u017d":{"d":"181,0r-164,0r0,-33r119,-188r-114,0r0,-35r159,0r0,31r-119,190r119,0r0,35xm163,-339r-46,58r-31,0r-47,-58r31,0r31,35r31,-35r31,0","w":198},"\u0401":{"d":"198,0r-165,0r0,-256r165,0r0,35r-126,0r0,74r107,0r0,35r-107,0r0,77r126,0r0,35xm167,-283r-33,0r0,-39r33,0r0,39xm90,-283r-33,0r0,-39r33,0r0,39","w":217},"\u0410":{"d":"222,0r-41,0r-18,-51r-101,0r-18,51r-41,0r94,-256r31,0xm153,-85r-40,-113r-40,113r80,0","w":225,"k":{"\u0427":14,"\u0424":7,"\u0422":22,"\u0421":4,"\u041e":4}},"\u0411":{"d":"214,-78v0,46,-31,78,-81,78r-100,0r0,-256r165,0r0,35r-126,0r0,65r61,0v50,0,81,32,81,78xm175,-78v0,-49,-54,-44,-103,-43r0,86v48,0,103,8,103,-43","w":235,"k":{"\u042a":7,"\u0427":4,"\u0425":4,"\u0422":7,"\u041b":7,"\u0416":4,"\u0414":7}},"\u0412":{"d":"176,-131v67,26,43,131,-39,131r-104,0r0,-256r100,0v78,-8,106,96,43,125xm172,-185v0,-44,-56,-36,-100,-36r0,73v44,0,100,8,100,-37xm175,-74v0,-47,-57,-39,-103,-39r0,78v46,0,103,9,103,-39","w":238,"k":{"\u042a":7,"\u0422":4,"\u041b":7,"\u0416":4}},"\u0413":{"d":"193,-221r-119,0r0,221r-39,0r0,-256r158,0r0,35","w":203,"k":{"\u041e":11,"\u041b":14,"\u0414":14,"\u0410":29}},"\u0414":{"d":"99,-221v1,72,2,137,-25,186r97,0r0,-186r-72,0xm62,-256r148,0r0,221r30,0r0,93r-38,0r0,-58r-156,0r0,58r-38,0r0,-93r23,0v33,-48,32,-137,31,-221","w":252},"\u0415":{"d":"198,0r-165,0r0,-256r165,0r0,35r-126,0r0,74r107,0r0,35r-107,0r0,77r126,0r0,35","w":217},"\u0416":{"d":"48,0r-49,0r104,-135r-95,-121r47,0r91,121r0,-121r39,0r0,121r91,-121r47,0r-95,121r105,135r-49,0r-99,-134r0,134r-39,0r0,-134","w":331,"k":{"\u0421":7,"\u041e":7}},"\u0417":{"d":"107,2v-46,0,-81,-28,-90,-78r39,0v3,54,101,60,101,2v0,-40,-37,-44,-79,-41r0,-32v40,2,75,0,75,-39v0,-24,-18,-39,-45,-39v-28,0,-45,19,-51,45r-40,0v9,-50,45,-78,92,-78v81,0,112,95,48,126v25,10,39,30,39,60v0,45,-38,74,-89,74","w":219,"k":{"\u041b":4,"\u0414":7}},"\u0418":{"d":"222,0r-38,0r0,-186r-115,186r-36,0r0,-256r39,0r0,185r115,-185r35,0r0,256","w":255},"\u0419":{"d":"184,-320v-2,67,-110,67,-111,0r29,0v1,17,11,25,26,25v15,0,25,-8,26,-25r30,0xm222,0r-38,0r0,-186r-115,186r-36,0r0,-256r39,0r0,185r115,-185r35,0r0,256","w":255},"\u041a":{"d":"73,0r-38,0r0,-256r38,0r0,121r96,-121r48,0r-99,121r108,135r-49,0r-104,-134r0,134","w":224,"k":{"\u042d":7,"\u0424":11,"\u0421":7,"\u041e":7,"\u0417":4}},"\u041b":{"d":"211,0r-39,0r0,-221r-73,0r0,81v-3,116,-24,144,-94,140r0,-35v40,1,56,-14,56,-111r0,-110r150,0r0,256","w":245},"\u041c":{"d":"260,0r-40,0r0,-171r-59,125r-29,0r-60,-125r0,171r-39,0r0,-256r39,0r75,159r74,-159r39,0r0,256","w":292},"\u041d":{"d":"215,0r-39,0r0,-112r-104,0r0,112r-39,0r0,-256r39,0r0,109r104,0r0,-109r39,0r0,256","w":248},"\u041e":{"d":"116,-258v68,-1,101,55,93,133v7,72,-27,127,-93,127v-71,0,-101,-65,-92,-142v-6,-72,31,-117,92,-118xm116,-33v47,0,54,-34,54,-98v0,-59,-8,-93,-54,-93v-50,0,-53,52,-53,111v0,44,13,80,53,80","w":232,"k":{"\u042d":7,"\u0425":4,"\u0422":7,"\u041b":7,"\u0417":7,"\u0416":7,"\u0414":7,"\u0410":4}},"\u041f":{"d":"215,0r-39,0r0,-221r-104,0r0,221r-39,0r0,-256r182,0r0,256","w":248},"\u0420":{"d":"213,-179v1,68,-64,86,-141,78r0,101r-39,0r0,-256r98,0v49,0,82,31,82,77xm174,-179v0,-48,-54,-43,-102,-42r0,85v48,1,102,5,102,-43","k":{"\u042d":7,"\u0425":4,"\u041b":7,"\u0416":4,"\u0414":7,"\u0410":18}},"\u0421":{"d":"63,-128v0,74,4,95,53,95v28,0,46,-18,52,-44r40,0v-9,51,-46,79,-92,79v-66,0,-92,-50,-92,-130v0,-80,25,-130,92,-130v47,0,83,27,92,78r-40,0v-6,-26,-24,-44,-52,-44v-48,0,-53,23,-53,96","k":{"\u0422":4,"\u0421":4,"\u041e":7,"\u0416":4,"\u0410":7}},"\u0422":{"d":"191,-221r-71,0r0,221r-39,0r0,-221r-70,0r0,-35r180,0r0,35","w":201,"k":{"\u0421":7,"\u041e":7,"\u0414":4,"\u0410":22}},"\u0423":{"d":"201,-256r-92,214v-13,32,-36,47,-81,42r0,-35v37,6,50,-15,58,-41r-83,-180r41,0r61,137r55,-137r41,0","w":203,"k":{"\u0421":4,"\u041e":4,"\u041b":7,"\u0414":7,"\u0410":14}},"\u0424":{"d":"163,-209r0,146v50,-2,67,-28,67,-73v0,-46,-16,-71,-67,-73xm124,-63r0,-146v-51,2,-67,27,-67,73v0,45,17,71,67,73xm163,2r-39,0r0,-32v-75,-3,-106,-41,-106,-108v0,-66,34,-100,106,-104r0,-25r39,0r0,25v72,4,106,38,106,104v0,67,-31,105,-106,108r0,32","w":286,"k":{"\u0422":7,"\u041b":11,"\u0410":7}},"\u0425":{"d":"204,0r-45,0r-55,-98r-56,98r-44,0r78,-131r-73,-125r44,0r51,91r50,-91r45,0r-74,125","w":208,"k":{"\u041e":4}},"\u0426":{"d":"245,58r-38,0r0,-58r-174,0r0,-256r39,0r0,221r104,0r0,-221r39,0r0,221r30,0r0,93","w":257},"\u0427":{"d":"199,0r-38,0r0,-100v-52,12,-136,20,-136,-55r0,-101r39,0r0,91v0,54,61,36,97,31r0,-122r38,0r0,256","w":232},"\u0428":{"d":"324,0r-291,0r0,-256r39,0r0,221r87,0r0,-221r39,0r0,221r87,0r0,-221r39,0r0,256","w":357},"\u0429":{"d":"354,58r-38,0r0,-58r-283,0r0,-256r39,0r0,221r87,0r0,-221r39,0r0,221r87,0r0,-221r39,0r0,221r30,0r0,93","w":365},"\u042a":{"d":"248,-78v0,46,-33,78,-81,78r-98,0r0,-221r-58,0r0,-35r97,0r0,100v76,-7,140,9,140,78xm210,-78v0,-48,-54,-45,-102,-43r0,86v48,1,102,6,102,-43","w":261,"k":{"\u0427":7,"\u0422":18}},"\u042b":{"d":"283,0r-39,0r0,-256r39,0r0,256xm213,-78v0,46,-32,78,-81,78r-99,0r0,-256r39,0r0,100v77,-7,141,9,141,78xm174,-78v0,-48,-54,-45,-102,-43r0,86v48,1,102,7,102,-43","w":316},"\u042c":{"d":"213,-78v0,46,-32,78,-81,78r-99,0r0,-256r39,0r0,100v77,-7,141,9,141,78xm174,-78v0,-48,-54,-45,-102,-43r0,86v48,1,102,7,102,-43","k":{"\u0427":7,"\u0422":18}},"\u042d":{"d":"202,-128v0,80,-25,130,-92,130v-47,0,-83,-28,-92,-78r39,0v5,42,62,58,91,28v12,-12,14,-26,15,-64r-88,0r0,-34r88,0v1,-57,-12,-78,-54,-78v-28,0,-46,18,-52,44r-39,0v9,-50,45,-78,92,-78v66,0,92,50,92,130","k":{"\u0425":4,"\u0422":7,"\u041b":7,"\u0416":7,"\u0414":7}},"\u042e":{"d":"211,-258v65,0,101,53,92,130v7,82,-25,130,-92,130v-61,0,-97,-46,-93,-114r-46,0r0,112r-39,0r0,-256r39,0r0,109r47,0v-4,-68,32,-111,92,-111xm211,-33v48,-2,53,-42,53,-103v0,-63,-9,-88,-53,-88v-50,0,-53,43,-53,105v0,63,10,79,53,86","w":327,"k":{"\u0425":4,"\u0422":7,"\u0417":7,"\u0416":7,"\u0414":7}},"\u042f":{"d":"112,-101r-50,101r-46,0r56,-108v-30,-10,-50,-36,-50,-71v0,-48,33,-77,82,-77r98,0r0,256r-40,0r0,-101r-50,0xm162,-136r0,-86v-48,-1,-101,-6,-101,43v0,47,53,45,101,43","w":234},"\u00a0":{}}});

Cufon.replace('.head .menu > li > a', {hover: true, fontFamily: 'din'});
$('.head .menu > li').css('display','block');

if ($.browser.msie && $.browser.version < 7) {
	DD_belatedPNG.fix('.menu .lvl2 li');
}

$(document).ready(function(){
	$(".head .menu").menu();
//	$(".lightbox").fancybox({titlePosition: 'inside'});

	$(".gallery_wrap").scrollable({
			elemsRoot: 'ul',
			elems: 'li',
			prev: 'a.prev',
			next: 'a.next',
			minElems: 4,
			speed: 500,
			axis: 'horizontal'
		});
	
	$(".show_hide").each(function(){
		var root = $(this);
		var dt = $("dt", root);
		dt.click(function(e){		
			var dd = $(this).toggleClass('open').next();
			dd.siblings('dt').not(this).removeClass('open');	
			dd.siblings('dd').slideUp();
			dd.slideToggle();
		});
	});
	//$(".lightb").fancybox({padding: 0,titlePosition:'inside'});
	//$(".lightbox").fancybox({titlePosition: 'inside'})
	$('.lightb').lightBox();
	$('.lightbox').lightBox();
	
	$("#form_submit").click($.validate);
	$(".form input, .form textarea").focus(function(){
		$(this).removeClass('error').next('.error').remove();
	});
	
});


$.fn.menu = function(opts){
	opts = $.extend(opts, {
		lvl2: '.lvl2',
		hoverClass: 'open'
	});
	return $(this).each(function(){
		var menu = $(this), items = menu.children();
		items.each(function(){
			if($(opts.lvl2, this).length) {
				var li = $(this)
					.bind('mouseover.menu', function(e){
						li.addClass(opts.hoverClass);
					})
					.bind('mouseout.menu', function(e){
						li.removeClass(opts.hoverClass);
						Cufon.refresh('.menu > li > a');
					});
			}
		});
	});
};
$.validate = function(e){
	var form = $(this).closest('form');
	var required = ['#email', '#company'];
	$("span.error", form).remove();
	$(".error", form).removeClass('error');
	for (var i=0, l=required.length; i<l; i++){
		var elem = $(required[i]);
		if (elem.val()=='') {
			e.preventDefault();
			elem.addClass('error').after('<span class="error">Pole nie moze byc puste</span>');
		}
	}
};

function AjaxQuery(id, url, opts){
	$.ajax({
		url: url,
		type: 'get',
		dataType: 'html',
		success: function(html){// console.log(html)
			$("#"+id).html(html); 
		}
	})
}

function loadPopup( img ){
	$.fancybox(
			'<img src="'+img+'" alt="Popup" />',
			{
	        	'autoDimensions'	: false,
	        	'autoScale': false,
	        	'scrolling' : 'no',
	        	'height': 599,
	        	'width' : 400,
	        	'showNavArrows' : true,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'onComplete'		: function(){
					setTimeout( "$.fancybox.close();", 5000);
				}
			}
		);
}

function loadPopupSwf(){
	$.fancybox({
		'padding'		: 0,
		'autoScale'		: false,
		'transitionIn'	: 'fade',
		'transitionOut'	: 'fade',
		'opacity'       : true,
		'overlayShow'	: false,
		'title'			: this.title,
		'width'			: 969,
		'height'		: 366,
    	'showNavArrows' : false,
		'href'			: 'http://nowystylgroup.pl/public/images/pop_up_nw.jpg',
		'type'			: 'swf',
		'swf'			: {
		   	 'wmode'		: 'transparent',
			 'allowfullscreen'	: 'true'
		},
		'onComplete'		: function(){
			$('fancybox-wrap').css({'width':'100px !important'});
			setTimeout( "$.fancybox.close();", 30000);
		}
	});
	
	
}


