var Cufon=(function(){var P=function(){return P.replace.apply(null,arguments)};var D=P.DOM={ready:(function(){var e=false,a={loaded:1,complete:1};var f=[],b=function(){if(e){return}e=true;for(var g;g=f.shift();g()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",b,false);window.addEventListener("pageshow",b,false)}if(!window.opera&&document.readyState){(function(){a[document.readyState]?b():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");b()}catch(g){setTimeout(arguments.callee,1)}})()}K(window,"load",b);return function(g){if(!arguments.length){b()}else{e?g():f.push(g)}}})(),root:function(){return document.documentElement||document.body}};var O=P.CSS={Size:function(a,b){this.value=parseFloat(a);this.unit=String(a).match(/[a-z%]*$/)[0]||"px";this.convert=function(e){return e/b*this.value};this.convertFrom=function(e){return e/this.value*b};this.toString=function(){return this.value+this.unit}},addClass:function(b,e){var a=b.className;b.className=a+(a&&" ")+e;return b},color:S(function(a){var b={};b.color=a.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(f,g,e){b.opacity=parseFloat(e);return"rgb("+g+")"});return b}),fontStretch:S(function(a){if(typeof a=="number"){return a}if(/%$/.test(a)){return parseFloat(a)/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}[a]||1}),getStyle:function(a){var b=document.defaultView;if(b&&b.getComputedStyle){return new ab(b.getComputedStyle(a,null))}if(a.currentStyle){return new ab(a.currentStyle)}return new ab(a.style)},gradient:S(function(b){var a={id:b,type:b.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},g=b.substr(b.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var e=0,h=g.length,f;e<h;++e){f=g[e].split("=",2).reverse();a.stops.push([f[1]||e/(h-1),f[0]])}return a}),quotedList:S(function(a){var b=[],e=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,f;while(f=e.exec(a)){b.push(f[3]||f[1])}return b}),recognizesMedia:S(function(a){var e=document.createElement("style"),f,g,h;e.type="text/css";e.media=a;try{e.appendChild(document.createTextNode("/**/"))}catch(b){}g=V("head")[0];g.insertBefore(e,g.firstChild);f=(e.sheet||e.styleSheet);h=f&&!f.disabled;g.removeChild(e);return h}),removeClass:function(a,b){var e=RegExp("(?:^|\\s+)"+b+"(?=\\s|$)","g");a.className=a.className.replace(e,"");return a},supports:function(a,b){var e=document.createElement("span").style;if(e[a]===undefined){return false}e[a]=b;return e[a]===b},textAlign:function(a,b,f,e){if(b.get("textAlign")=="right"){if(f>0){a=" "+a}}else{if(f<e-1){a+=" "}}return a},textShadow:S(function(b){if(b=="none"){return null}var e=[],a={},h,g=0;var f=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(h=f.exec(b)){if(h[0]==","){e.push(a);a={};g=0}else{if(h[1]){a.color=h[1]}else{a[["offX","offY","blur"][g++]]=h[2]}}}e.push(a);return e}),textTransform:(function(){var a={uppercase:function(b){return b.toUpperCase()},lowercase:function(b){return b.toLowerCase()},capitalize:function(b){return b.replace(/\b./g,function(e){return e.toUpperCase()})}};return function(b,e){var f=a[e.get("textTransform")];return f?f(b):b}})(),whiteSpace:(function(){var a={inline:1,"inline-block":1,"run-in":1};var b=/^\s+/,e=/\s+$/;return function(f,h,g,l){if(l){if(l.nodeName.toLowerCase()=="br"){f=f.replace(b,"")}}if(a[h.get("display")]){return f}if(!g.previousSibling){f=f.replace(b,"")}if(!g.nextSibling){f=f.replace(e,"")}return f}})()};O.ready=(function(){var e=!O.recognizesMedia("all"),n=false;var a=[],h=function(){e=true;for(var o;o=a.shift();o()){}};var g=V("link"),f=V("style");function b(o){return o.disabled||l(o.sheet,o.media||"screen")}function l(v,s){if(!O.recognizesMedia(s||"all")){return true}if(!v||v.disabled){return false}try{var q=v.cssRules,t;if(q){search:for(var o=0,p=q.length;t=q[o],o<p;++o){switch(t.type){case 2:break;case 3:if(!l(t.styleSheet,t.media.mediaText)){return false}break;default:break search}}}}catch(u){}return true}function m(){if(document.createStyleSheet){return true}var o,p;for(p=0;o=g[p];++p){if(o.rel.toLowerCase()=="stylesheet"&&!b(o)){return false}}for(p=0;o=f[p];++p){if(!b(o)){return false}}return true}D.ready(function(){if(!n){n=O.getStyle(document.body).isUsable()}if(e||(n&&m())){h()}else{setTimeout(arguments.callee,10)}});return function(o){if(e){o()}else{a.push(o)}}})();function I(a){var b=this.face=a.face,e={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=a.glyphs;this.w=a.w;this.baseSize=parseInt(b["units-per-em"],10);this.family=b["font-family"].toLowerCase();this.weight=b["font-weight"];this.style=b["font-style"]||"normal";this.viewBox=(function(){var f=b.bbox.split(/\s+/);var g={minX:parseInt(f[0],10),minY:parseInt(f[1],10),maxX:parseInt(f[2],10),maxY:parseInt(f[3],10)};g.width=g.maxX-g.minX;g.height=g.maxY-g.minY;g.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return g})();this.ascent=-parseInt(b.ascent,10);this.descent=-parseInt(b.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(m,h,u){var g=this.glyphs,l,n,s,f=[],t=0,o=-1,p=-1,q;while(q=m[++o]){l=g[q]||this.missingGlyph;if(!l){continue}if(n){t-=s=n[q]||0;f[p]-=s}t+=f[++p]=~~(l.w||this.w)+h+(e[q]?u:0);n=l.k}f.total=t;return f}}function W(){var a={},b={oblique:"italic",italic:"oblique"};this.add=function(e){(a[e.style]||(a[e.style]={}))[e.weight]=e};this.get=function(h,g){var l=a[h]||a[b[h]]||a.normal||a.italic||a.oblique;if(!l){return null}g={normal:400,bold:700}[g]||parseInt(g,10);if(l[g]){return l[g]}var n={1:1,99:0}[g%100],e=[],m,o;if(n===undefined){n=g>400}if(g==500){g=400}for(var f in l){if(!R(l,f)){continue}f=parseInt(f,10);if(!m||f<m){m=f}if(!o||f>o){o=f}e.push(f)}if(g<m){g=m}if(g>o){g=o}e.sort(function(q,p){return(n?(q>=g&&p>=g)?q<p:q>p:(q<=g&&p<=g)?q>p:q<p)?-1:1});return l[e[0]]}}function J(){function b(h,g){if(h.contains){return h.contains(g)}return h.compareDocumentPosition(g)&16}function f(g){var h=g.relatedTarget;if(!h||b(this,h)){return}e(this,g.type=="mouseover")}function a(g){e(this,g.type=="mouseenter")}function e(h,g){setTimeout(function(){var l=Y.get(h).options;P.replace(h,g?U(l,l.hover):l,true)},10)}this.attach=function(g){if(g.onmouseenter===undefined){K(g,"mouseover",f);K(g,"mouseout",f)}else{K(g,"mouseenter",a);K(g,"mouseleave",a)}}}function G(){var b=[],a={};function e(f){var l=[],g;for(var h=0;g=f[h];++h){l[h]=b[a[g]]}return l}this.add=function(f,g){a[f]=b.push(g)-1};this.repeat=function(){var h=arguments.length?e(arguments):b,g;for(var f=0;g=h[f++];){P.replace(g[0],g[1],true)}}}function M(){var a={},e=0;function b(f){return f.cufid||(f.cufid=++e)}this.get=function(g){var f=b(g);return a[f]||(a[f]={})}}function ab(e){var a={},b={};this.extend=function(g){for(var f in g){if(R(g,f)){a[f]=g[f]}}return this};this.get=function(f){return a[f]!=undefined?a[f]:e[f]};this.getSize=function(f,g){return b[f]||(b[f]=new O.Size(this.get(f),g))};this.isUsable=function(){return !!e}}function K(b,e,a){if(b.addEventListener){b.addEventListener(e,a,false)}else{if(b.attachEvent){b.attachEvent("on"+e,function(){return a.call(b,window.event)})}}}function F(b,e){var a=Y.get(b);if(a.options){return b}if(e.hover&&e.hoverables[b.nodeName.toLowerCase()]){aa.attach(b)}a.options=e;return b}function S(b){var a={};return function(e){if(!R(a,e)){a[e]=b.apply(null,arguments)}return a[e]}}function Z(a,b){var g=O.quotedList(b.get("fontFamily").toLowerCase()),e;for(var f=0;e=g[f];++f){if(T[e]){return T[e].get(b.get("fontStyle"),b.get("fontWeight"))}}return null}function V(a){return document.getElementsByTagName(a)}function R(a,b){return a.hasOwnProperty(b)}function U(){var f={},g,a;for(var b=0,e=arguments.length;g=arguments[b],b<e;++b){for(a in g){if(R(g,a)){f[a]=g[a]}}}return f}function N(s,g,b,f,q,a){var l=document.createDocumentFragment(),o;if(g===""){return l}var h=f.separate;var n=g.split(L[h]),e=(h=="words");if(e&&H){if(/^\s/.test(g)){n.unshift("")}if(/\s$/.test(g)){n.push("")}}for(var m=0,p=n.length;m<p;++m){o=B[f.engine](s,e?O.textAlign(n[m],b,m,p):n[m],b,f,q,a,m<p-1);if(o){l.appendChild(o)}}return l}function Q(a,f){var b=a.nodeName.toLowerCase();if(f.ignore[b]){return}var q=!f.textless[b];var e=O.getStyle(F(a,f)).extend(f);var p=Z(a,e),o,h,m,n,g,l;if(!p){return}for(o=a.firstChild;o;o=m){h=o.nodeType;m=o.nextSibling;if(q&&h==3){if(n){n.appendData(o.data);a.removeChild(o)}else{n=o}if(m){continue}}if(n){a.replaceChild(N(p,O.whiteSpace(n.data,e,n,l),e,f,o,a),n);n=null}if(h==1){if(o.firstChild){if(o.nodeName.toLowerCase()=="cufon"){B[f.engine](p,null,e,f,o,a)}else{arguments.callee(o,f)}}l=o}}}var H=" ".split(/\s+/).length==0;var Y=new M();var aa=new J();var C=new G();var X=false;var B={},T={},E={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(a){return jQuery(a)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(a){return $$(a)})||(window.$&&function(a){return $(a)})||(document.querySelectorAll&&function(a){return document.querySelectorAll(a)})||V),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var L={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};P.now=function(){D.ready();return P};P.refresh=function(){C.repeat.apply(C,arguments);return P};P.registerEngine=function(a,b){if(!b){return P}B[a]=b;return P.set("engine",a)};P.registerFont=function(a){if(!a){return P}var e=new I(a),b=e.family;if(!T[b]){T[b]=new W()}T[b].add(e);return P.set("fontFamily",'"'+b+'"')};P.replace=function(a,b,e){b=U(E,b);if(!b.engine){return P}if(!X){O.addClass(D.root(),"cufon-active cufon-loading");O.ready(function(){O.addClass(O.removeClass(D.root(),"cufon-loading"),"cufon-ready")});X=true}if(b.hover){b.forceHitArea=true}if(b.autoDetect){delete b.fontFamily}if(typeof b.textShadow=="string"){b.textShadow=O.textShadow(b.textShadow)}if(typeof b.color=="string"&&/^-/.test(b.color)){b.textGradient=O.gradient(b.color)}else{delete b.textGradient}if(!e){C.add(a,arguments)}if(a.nodeType||typeof a=="string"){a=[a]}O.ready(function(){for(var g=0,h=a.length;g<h;++g){var f=a[g];if(typeof f=="string"){P.replace(b.selector(f),b,true)}else{Q(f,b)}}});return P};P.set=function(b,a){E[b]=a;return P};return P})();Cufon.registerEngine("vml",(function(){var q=document.namespaces;if(!q){return}q.add("cvml","urn:schemas-microsoft-com:vml");q=null;var l=document.createElement("cvml:shape");l.style.behavior="url(#default#VML)";if(!l.coordsize){return}l=null;var n=(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:'+(n?"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 t(b,a){return m(b,/(?:em|ex|%)$|^[a-z-]+$/i.test(a)?"1em":a)}function m(b,a){if(a==="0"){return 0}if(/px$/i.test(a)){return parseFloat(a)}var e=b.style.left,f=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;b.style.left=a.replace("%","em");var g=b.style.pixelLeft;b.style.left=e;b.runtimeStyle.left=f;return g}function p(b,e,f,h){var g="computed"+h,a=e[g];if(isNaN(a)){a=e.get(h);e[g]=a=(a=="normal")?0:~~f.convertFrom(m(b,a))}return a}var o={};function s(g){var f=g.id;if(!o[f]){var u=g.stops,h=document.createElement("cvml:fill"),e=[];h.type="gradient";h.angle=180;h.focus="0";h.method="sigma";h.color=u[0][1];for(var a=1,b=u.length-1;a<b;++a){e.push(u[a][0]*100+"% "+u[a][1])}h.colors=e.join(",");h.color2=u[b][1];o[f]=h}return o[f]}return function(aJ,az,b,aH,at,aG,f){var aZ=(az===null);if(aZ){az=at.alt}var av=aJ.viewBox;var aX=b.computedFontSize||(b.computedFontSize=new Cufon.CSS.Size(t(aG,b.get("fontSize"))+"px",aJ.baseSize));var aO,aW;if(aZ){aO=at;aW=at.firstChild}else{aO=document.createElement("cufon");aO.className="cufon cufon-vml";aO.alt=az;aW=document.createElement("cufoncanvas");aO.appendChild(aW);if(aH.printable){var a=document.createElement("cufontext");a.appendChild(document.createTextNode(az));aO.appendChild(a)}if(!f){aO.appendChild(document.createElement("cvml:shape"))}}var aw=aO.style;var al=aW.style;var a1=aX.convert(av.height),aD=Math.ceil(a1);var g=aD/a1;var an=g*Cufon.CSS.fontStretch(b.get("fontStretch"));var h=av.minX,aj=av.minY;al.height=aD;al.top=Math.round(aX.convert(aj-aJ.ascent));al.left=Math.round(aX.convert(h));aw.height=aX.convert(aJ.height)+"px";var aB=b.get("color");var aA=Cufon.CSS.textTransform(az,b).split("");var ar=aJ.spacing(aA,p(aG,b,aX,"letterSpacing"),p(aG,b,aX,"wordSpacing"));if(!ar.length){return null}var a2=ar.total;var aP=-h+a2+(av.width-ar[ar.length-1]);var ay=aX.convert(aP*an),e=Math.round(ay);var ao=aP+","+av.height,a0;var au="r"+ao+"ns";var aS=aH.textGradient&&s(aH.textGradient);var aY=aJ.glyphs,ak=0;var ax=aH.textShadow;var aL=-1,aM=0,aQ;while(aQ=aA[++aL]){var aF=aY[aA[aL]]||aJ.missingGlyph,aR;if(!aF){continue}if(aZ){aR=aW.childNodes[aM];while(aR.firstChild){aR.removeChild(aR.firstChild)}}else{aR=document.createElement("cvml:shape");aW.appendChild(aR)}aR.stroked="f";aR.coordsize=ao;aR.coordorigin=a0=(h-ak)+","+aj;aR.path=(aF.d?"m"+aF.d+"xe":"")+"m"+a0+au;aR.fillcolor=aB;if(aS){aR.appendChild(aS.cloneNode(false))}var aE=aR.style;aE.width=e;aE.height=aD;if(ax){var aU=ax[0],aV=ax[1];var aI=Cufon.CSS.color(aU.color),aN;var ap=document.createElement("cvml:shadow");ap.on="t";ap.color=aI.color;ap.offset=aU.offX+","+aU.offY;if(aV){aN=Cufon.CSS.color(aV.color);ap.type="double";ap.color2=aN.color;ap.offset2=aV.offX+","+aV.offY}ap.opacity=aI.opacity||(aN&&aN.opacity)||1;aR.appendChild(ap)}ak+=ar[aM++]}var aq=aR.nextSibling,aT,aK;if(aH.forceHitArea){if(!aq){aq=document.createElement("cvml:rect");aq.stroked="f";aq.className="cufon-vml-cover";aT=document.createElement("cvml:fill");aT.opacity=0;aq.appendChild(aT);aW.appendChild(aq)}aK=aq.style;aK.width=e;aK.height=aD}else{if(aq){aW.removeChild(aq)}}aw.width=Math.max(Math.ceil(aX.convert(a2*an)),0);if(n){var am=b.computedYAdjust;if(am===undefined){var aC=b.get("lineHeight");if(aC=="normal"){aC="1em"}else{if(!isNaN(aC)){aC+="em"}}b.computedYAdjust=am=0.5*(m(aG,aC)-parseFloat(aw.height))}if(am){aw.marginTop=Math.ceil(am)+"px";aw.marginBottom=am+"px"}}return aO}})());Cufon.registerEngine("canvas",(function(){var g=document.createElement("canvas");if(!g||!g.getContext||!g.getContext.apply){return}g=null;var h=Cufon.CSS.supports("display","inline-block");var m=!h&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var l=document.createElement("style");l.type="text/css";l.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(m?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(h?"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(l);function n(a,u){var e=0,f=0;var v=[],b=/([mrvxe])([^a-z]*)/g,s;generate:for(var t=0;s=b.exec(a);++t){var q=s[2].split(",");switch(s[1]){case"v":v[t]={m:"bezierCurveTo",a:[e+~~q[0],f+~~q[1],e+~~q[2],f+~~q[3],e+=~~q[4],f+=~~q[5]]};break;case"r":v[t]={m:"lineTo",a:[e+=~~q[0],f+=~~q[1]]};break;case"m":v[t]={m:"moveTo",a:[e=~~q[0],f=~~q[1]]};break;case"x":v[t]={m:"closePath"};break;case"e":break generate}u[v[t].m].apply(u,v[t].a)}return v}function o(a,b){for(var e=0,f=a.length;e<f;++e){var p=a[e];b[p.m].apply(b,p.a)}}return function(x,ay,af,aB,at,f){var aJ=(ay===null);if(aJ){ay=at.getAttribute("alt")}var av=x.viewBox;var aI=af.getSize("fontSize",x.baseSize);var au=0,ag=0,ah=0,aA=0;var ax=aB.textShadow,aj=[];if(ax){for(var y=ax.length;y--;){var ap=ax[y];var ak=aI.convertFrom(parseFloat(ap.offX));var am=aI.convertFrom(parseFloat(ap.offY));aj[y]=[ak,am];if(am<au){au=am}if(ak>ag){ag=ak}if(am>ah){ah=am}if(ak<aA){aA=ak}}}var a=Cufon.CSS.textTransform(ay,af).split("");var aq=x.spacing(a,~~aI.convertFrom(parseFloat(af.get("letterSpacing"))||0),~~aI.convertFrom(parseFloat(af.get("wordSpacing"))||0));if(!aq.length){return null}var aL=aq.total;ag+=av.width-aq[aq.length-1];aA+=av.minX;var aC,aH;if(aJ){aC=at;aH=at.firstChild}else{aC=document.createElement("cufon");aC.className="cufon cufon-canvas";aC.setAttribute("alt",ay);aH=document.createElement("canvas");aC.appendChild(aH);if(aB.printable){var ac=document.createElement("cufontext");ac.appendChild(document.createTextNode(ay));aC.appendChild(ac)}}var aw=aC.style;var an=aH.style;var aK=aI.convert(av.height);var b=Math.ceil(aK);var ai=b/aK;var ao=ai*Cufon.CSS.fontStretch(af.get("fontStretch"));var al=aL*ao;var ae=Math.ceil(aI.convert(al+ag-aA));var aG=Math.ceil(aI.convert(av.height-au+ah));aH.width=ae;aH.height=aG;an.width=ae+"px";an.height=aG+"px";au+=av.minY;an.top=Math.round(aI.convert(au-x.ascent))+"px";an.left=Math.round(aI.convert(aA))+"px";var aD=Math.max(Math.ceil(aI.convert(al)),0)+"px";if(h){aw.width=aD;aw.height=aI.convert(x.height)+"px"}else{aw.paddingLeft=aD;aw.paddingBottom=(aI.convert(x.height)-1)+"px"}var e=aH.getContext("2d"),ar=aK/av.height;e.scale(ar,ar*ai);e.translate(-aA,-au);e.save();function ab(){var p=x.glyphs,t,q=-1,s=-1,u;e.scale(ao,1);while(u=a[++q]){var t=p[a[q]]||x.missingGlyph;if(!t){continue}if(t.d){e.beginPath();if(t.code){o(t.code,e)}else{t.code=n("m"+t.d,e)}e.fill()}e.translate(aq[++s],0)}e.restore()}if(ax){for(var y=ax.length;y--;){var ap=ax[y];e.save();e.fillStyle=ap.color;e.translate.apply(e,aj[y]);ab()}}var aE=aB.textGradient;if(aE){var az=aE.stops,aF=e.createLinearGradient(0,av.minY,0,av.maxY);for(var y=0,ad=az.length;y<ad;++y){aF.addColorStop.apply(aF,az[y])}e.fillStyle=aF}else{e.fillStyle=af.get("color")}ab();return aC}})());$(document).ready(function(){dready()});function dready(){ienot();$("#hidscd").live("click",function(){filmik()});Cufon.replace("#p,#kon",{fontFamily:"j"});Cufon.replace(".en",{fontFamily:"DINCond-BoldAlternate",hover:!0});Cufon.replace(".es,.et,.bty",{fontFamily:"Qlassik Bold",hover:!0});Cufon.replace(".dri",{fontFamily:"Droid Serif",hover:!0});Cufon.replace(".cre",{fontFamily:"ChunkFive",hover:!0});Cufon.replace("#ddzia .ico2",{fontFamily:"ICO2",color:"-linear-gradient(#585858, #706E69)",textShadow:"1px -2px rgba(0, 0, 0, 0.3)"});Cufon.replace(".ico",{fontFamily:"IconicStroke",hover:!0});Cufon.replace(".ico2,.icod",{fontFamily:"ICO2",hover:!0,hoverables:{strong:!0,em:!0}});Cufon.replace(".ico3,.icot",{fontFamily:"ico3",hover:!0,hoverables:{strong:!0,em:!0}});if($("meta[name='cfg']").length){try{cfgs=$.parseJSON($("meta[name='cfg']").attr("content"))}catch(f){cfgs=window.JSON.parse($("meta[name='cfg']").attr("content"))}if(cfgs.F==!0){if($.browser.msie){window.innerHeight=document.body.offsetHeight}$("#f").attr("id","f2");$("#bgw").css("min-height",window.innerHeight-97+"px")}try{if(cfgs.use.length){cfgs.use=cfgs.use.replace(/[^a-zA-Z 0-9_-]+/g,""),window[cfgs.use]()}}catch(e){}}jQuery.exists=function(b){return $(b).length>0};ch=document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;$("#p canvas").css("top","2px");$("#hc").css("display","block");$.browser.msie||$('<link type="image/png" rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAADAFBMVEX////Z19TMysaNiX9nYlQ0LRtaVUaalo2zsKmmo5tNRzhBOim/vbd0b2OAfHEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABtcgBlZGlTbk8Hd29yb0ZvaFNpUA1zbGVJcmUCaGNlVAplSHR0aGcHAA10dUIIbm9ubkFyZWxmZUwA4ANwb1QFAOB0ZGkGSwJnaWUZAnRuYUMJbGVwYUNub2luQQdlbHVhVAhkck8AAnJDbk9rY2lBQg1sdW5sQ3IAa2NCVAdvdHRPQgNlTASQA3RvVAMA4ANkaVdLAmhpZUgCdGhhQwdvaXRPAgZlRAdsdWFUCAlyT2ICcmVuTwdjaWxCCAdsQ2sAa2NCVAdvdHRBQgdjcmVlTAQQAnRwb1QFAOB0ZGkGSwJnaWUZAnRwYUNub2kAAAdlcEF1p8NiYVRlZHIHAgJsQ24Ha2NwQUJ1Y3JjaWwGAABuYVBQB2xvRmxMBGQCdGZvVAMFCAJ0ZGkBKQNpZUgDdGhCCgBsZXZldHViBgdub05hVAhkck8DAnJMVAZsZWJsYkxlTAQIAnRwb1RXBUBodGRIBjBoZ2kHDQJ0cGEUbm8AAADDbG9uYXIAAGVhTFQGbGVlYmFMBDECdGZvVAMFCAJ0ZGkGKgJnaWUNAnRwYUNub2lvQwl1ZWwAOiBUVAlrY2EDcmEETkJ0ZmVUAwNQAnBkaVcmA2hlSAZ0aGdNAyFkAnhpck9hdG5ub2lydAxpcm90bm9QCGxTZWcCZXpyRglldXECeWNvUAhpdGkeAm5sZVPGhCzGhCwAC/QAAnRiYVRlZHILAAJtdWhuZUxQTW+/AAAAAXRSTlMAQObYZgAAAAlwSFlzAAALEgAACxIB0t1+/AAAALBJREFUeNrdkdkWwyAIRBEZiXH5/8+tS2qrTY/P7byI4cIEJPopGWb+lrOCISd6rHmPVaedmwXAtiB6jprOyshkXz7lGrhw9XRAmHqkYl4OHoUcesmQdsJh/PhsQnQ0wsKPq6UbIrY+RIIrWIjEKB4mr1O8iAioq4s46E4Joe1J5rR6U+fy1vUt6lqX5zXrZ2fjNYsk9WzugTedX4AyHND3twHMzqJ4bADZAfp8rf/SA9PZBReHDVMbAAAAAElFTkSuQmCC" />').appendTo("head");$("#hc a").removeAttr("title")}function buforrf(){$.cookie("enc")==void 0&&setTimeout(function(){$.ajax({type:"GET",url:"./_e/engin.js",async:!0});$.ajax({type:"GET",url:"./_e/f.js",async:!0});$.cookie("enc","1",{expires:28});geoloc()},1000)}function geoloc(){}$(window).bind("resize",function(){if(cfgs.F==!0){if($.browser.msie){window.innerHeight=document.body.offsetHeight}$("#bgw").css("min-height",window.innerHeight-97+"px")}});function ienot(){$.browser.msie&&$(document).ready(function(){$.getScript("http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js",function(f,e){e==="success"&&CFInstall.check({mode:"overlay",destination:"http://cv.pracanowo.pl/"})})})}function remove_cufon(b){$(b).html(cufon_text(b));return !0}function cufon_text(f){var e="";$(f+" cufon cufontext").each(function(){e+=$(this).html()});return !$.exists(f+" cufon cufontext")?$.trim($(f).text()):$.trim(e)}function pobierz(){window.location.href="Curriculum-Vitae.pdf"}function ucfirst(b){b+="";r=b.charAt(0).toUpperCase()+b.substr(1);r=ucall(r);return ucall3(r)}function ucall(b){return b.replace(/(^|\s)([a-z\u017c\u017a\u0107\u00f3\u0142\u0105\u0119])/g,function(g,l,h){return l+h.toUpperCase()})}function ucall3(b){return b.replace(/ [\u017c|\u017a|\u0107|\u00f3|\u0142|\u0105|\u0119|\u015b]/,function(e){return e.toUpperCase()})}function toup(f,e){$.inArray(f.val(),pola)>-1?(k=$.inArray(f.val(),pola),k==11&&(k=-1),k==0&&e<0&&(k=11),e>0?f.val(pola[k+1]):f.val(pola[k-1])):f.val(pola[0])}function podzialwyso(){}function infoover(l,h,o,n){h==!0&&$(l).tmpl(o).appendTo("body");l+="b";$(l).addClass("okienko");$(window).height();h=$(window).width();$(l).height();o=h/2-$(l).width()/2;$("#overlay").css({height:$(document).height(),width:h}).show();$(l).css({left:o,top:"-900"});$(l).css("left",($(document).width()-$(l).width())/2);try{$(l).animate({top:104},{duration:500,easing:"easeOutBack"},Cufon.refresh())}catch(m){$(l).css("top"," 104px"),Cufon.refresh()}$("#bgw").css("display","none");$("#f2").attr("id","f");$("html").css("overflow-y","-moz-scrollbars-vertical");$("html").css("overflow-y","scroll");$(l).css("z-index","1");$("#cancel").click(function(){n==!0&$.browser.mozilla?($("#bgw").show(500),$(l).hide(100)):($("#bgw").show(1),$(l).hide(500));$("#overlay").hide();$("#f").attr("id","f2");$("html").css("overflow","auto");$(l).css("z-index","111");$("#f,#f2").show();$(l).remove()})}function mapa(){isramka();$("#lefft").masonry({columnWidth:38,singleMode:!1,animate:!1,resizeable:!0,itemSelector:".box"});window.innerWidth<=800&&($("#cont").css("width","95%"),$(".box:not(.line)").css("width","40%"))}function glowna(){}function kontakt(){user="biuro";site="pracanowo.pl";inner='<a style="color:#5F5C57;font-weight:bold" href="mailto:'+user+"@"+site+'">'+user+"@"+site+"</a>";$("#napisz").html(inner);Cufon.refresh();buforrf();isramka()}function totop(){$("#hidsc").live("click",function(){$("body").scrollTo(0,300)})}function wzorki(){jakpisaccv()}function ekontakt(){$("#tkontakt").html('<a href="mailto:biuro@1bt.pl">biuro@1bt.pl</a>')}function jakpisaccv(){isramka();window.innerWidth<=800&&($("#cont").css("width","95%"),$(".box:not(.line)").css("width","40%"));totop();$("#lefft").masonry({columnWidth:37,singleMode:!1,animate:!1,resizeable:!0,itemSelector:".box"});$.browser.msie&&$("#bgw").css("min-height","500px");buforrf();window.location.hash.length>0&&(rt=window.location.hash.replace(/#/g,""),$("body").scrollTo("a[name="+rt+"]",800))}function list_motywacyjnywzory(){window.innerWidth<=800&&($("#cont").css("width","95%"),$(".box:not(.line)").css("width","40%"));$("#lefft").masonry({columnWidth:37,singleMode:!1,animate:!0,resizeable:!0,itemSelector:".box"});$.browser.msie&&$("#bgw").css("min-height","500px");buforrf();isramka()}function myszka(b){$(b).mouseover(function(){animwe()});$(b).mouseleave(function(){animwe_out()})}function ntera(b){$(b).click(function(){hit_s()});$(b).mouseout(function(){hit_h()})}function hit_s(){$("#enter").stop().show(50)}function hit_h(){$("#enter").hide(300)}function kolko_dzien(b){$(b).bind("mousewheel",function(f,g){val=$(this).val();isNaN(val)&&(val="1");g>0?$(this).val(parseInt(val)+1):$(this).val(parseInt(val)-1);$(this).val()>31&&$(this).val("1");$(this).val()<1&&$(this).val("31");return !1})}function kolko(b){$(b).bind("mousewheel",function(f,g){val=$(this).val();isNaN(val)&&(val="1980");g>0?$(this).val(parseInt(val)+1):$(this).val(parseInt(val)-1);return !1})}function focusik(b){$(b).click(function(){$(this).select()})}function fixhight(){window.innerHeight<=658&&$("#f").attr("id","f2")}function isNumeric(b){return b.match(/^\d+$/)==null?!1:!0}function rozmowakwalifikacyjna(){window.innerWidth<=800&&($("#cont").css("width","95%"),$(".box:not(.line)").css("width","40%"));$("#lefft").masonry({columnWidth:37,singleMode:!1,animate:!0,resizeable:!0,itemSelector:".box"});$.browser.msie&&$("#bgw").css("min-height","500px");buforrf();totop();isramka()}function szablonycv(){$(".pn li").click(function(){$(".pn li").css("list-style-type","circle");$(".pn li").css("font-size","21px");$(this).css("list-style-type","disc");$(this).css("font-size","24px")});$("#1").css("display","none");$("#3").css("display","none");$("#4").css("display","none");$("li[lang=1]").click(function(){$("#2").css("display","");$("#1").css("display","none");$("#3").css("display","none");$("#4").css("display","none")});$("li[lang=2]").click(function(){$("#1").css("display","");$("#2").css("display","none");$("#3").css("display","none");$("#4").css("display","none")});$("li[lang=3]").click(function(){$("#3").css("display","");$("#2").css("display","none");$("#1").css("display","none");$("#4").css("display","none")});$("li[lang=4]").click(function(){$("#4").css("display","");$("#2").css("display","none");$("#1").css("display","none");$("#3").css("display","none")});buforrf()}function isramka(){if(top!=self){top.location=self.location}}function indexcv(){fixhight();isramka();$("#switch").mouseenter(function(){$("#switch").animate({right:"38px",left:"0px"},"fast")});buforrf();$("#click").live("click",function(){try{pageTracker._trackPageview("pisaniecv.php")}catch(b){}window.location="pisaniecv.php"});$("#switch").live("click",function(){$("#c").scrollTo("#cvs",1500,{axis:"y",offset:{top:-42}})});$("#switch").mouseleave(function(){$("#switch").animate({right:"+32px",left:"-10px"},"fast")});$("#fmenu").scrollTo("#1",0,{axis:"x",offset:{left:-2,top:0}});$("li[lang=1]").live("click",function(){$("#fmenu").scrollTo("#1",1500,{axis:"x",offset:{left:-2,top:0}})});$("li[lang=2]").live("click",function(){$("#fmenu").scrollTo("#2",1500,{axis:"x",offset:{left:-14,top:0}})});$("li[lang=3]").live("click",function(){$("#fmenu").scrollTo("#3",1500,{axis:"x",offset:{left:-10,top:0}})});$("li[lang=5]").live("click",function(){$("#fmenu").scrollTo("#5",1500,{axis:"x",offset:{left:-9,top:0}})});$("li[lang=4]").live("click",function(){$("#fmenu").scrollTo("#4",1600,{axis:"x",offset:{left:-10,top:0}})});$(".pn li").css("font-size","21px");$(".pn li").css("list-style-type","circle");$("li[lang=1]").css("list-style-type","disc").css("font-size","24px");$(".pn li").mouseleave(function(){$(this).css("color","black")});$(".pn li").live("click",function(){$(".pn li").css("list-style-type","circle");$(".pn li").css("font-size","21px");$(this).css("list-style-type","disc");$(this).css("font-size","24px")});$("#turnr").live("click",function(){try{_gaq.push(["_trackEvent","glo_turn","1"])}catch(b){}$("#img4").html()==""&&$("#img4").html('<img width="920" height="450" style="text-align:right" src="./_img/zyciorys.png">');$("#pe2").css("display")=="none"?($("#hef").css("display","none"),$("#pe1").stop().animate({top:1200},200,function(){$("#next canvas").animate({opacity:0},100,function(){$("#next canvas").attr("id","cleft");$("#next canvas").animate({opacity:1},200);$("#pe2").toggle()})})):($("#hef").css("display","block"),$("#pe2").toggle(),$("#pe1").stop().animate({top:0},200,function(){$("#next canvas").animate({opacity:0},100,function(){$("#next canvas").attr("id","cright");$("#next canvas").animate({opacity:1},200)})}))});if(navigator.userAgent.match(/bot/i)||navigator.userAgent.match(/Preview/i)){$("body").css("overflow","scroll"),$("#slide").css("width","900px"),$("body").css("height","1390px"),$("#bgw").css("height","1390px"),$("#hef").css("display","none"),$(".taj").css("width","auto"),$(".nji").css("height","auto"),$(".nji").css("margin-bottom","20px"),$(".evhj").css("height","auto"),$(".evhj").css("margin-bottom","20px"),$("#fmenu").css("width","auto"),$("#fmenu").css("overflow","hidden"),$(".rtbn").css("overflow","hidden")}}function getScrollerWidth(){var g=null,f=null,h=0,g=0,g=document.createElement("div");g.style.position="absolute";g.style.top="-1000px";g.style.left="-1000px";g.style.width="100px";g.style.height="50px";g.style.overflow="hidden";f=document.createElement("div");f.style.width="100%";f.style.height="200px";g.appendChild(f);document.body.appendChild(g);h=f.offsetWidth;g.style.overflow="auto";g=f.offsetWidth;document.body.removeChild(document.body.lastChild);return h-g}function _get(b){return document.getElementById(b)?document.getElementById(b):!1}function pauza(f){for(var e=new Date,f=e.getTime()+f;;){if(e=new Date,e.getTime()>f){break}}}function poprawpos(){$("#tresc .sectors").each(function(b){$(this).attr("lang",b);$(this).attr("id","e_er_"+b)})}function shower(){_get("mm").style.display="none";_get("m1").style.display="block"}function mmback(){var b=getElementsByClassName("mmen");i=0;for(j=b.length;i<j;i++){b[i].style.display="none"}_get("mm").style.display="block"}function getElementsByClassName(h){var g=[],h=RegExp("(^| )"+h+"( |$)"),m=document.getElementsByTagName("*"),l=navigator.userAgent.indexOf("Opera")!=-1?!0:!1;if(document.all&&!l){m=document.all}for(j=i=0;i<m.length;i++){h.test(m[i].className)&&(g[j]=m[i],j++)}return g}function showPreloader(){_get("ajaxp").style.display="block";_get("pree").style.top=document.documentElement.scrollTop+(screen.height-290)/2+"px"}function hidePreloader(){_get("ajaxp").style.display="none"}function isset(){var g=arguments,f=g.length,h=0;if(f===0){throw Error("Empty isset")}for(;h!==f;){if(g[h]===void 0||g[h]===null){return !1}h++}return !0}function unesc2(b){return b?b.replace(/&lt;b&gt;/g,"").replace(/&lt;\/b&gt;/g,"").replace(/&lt;br&gt;/g,"<br>").replace(/&amp;nbsp;/g," ").replace(/&lt;\/p&gt;/g,"</p>").replace(/&lt;p&gt;/g,"<p>"):b}function czyscbr(){$("#tresc .inpu_fiz").each(function(){d=unesc($(this).text());d=strip_tags(d,"<br><br/><b></b><li><ul></ul></li>");d=d.replace(/&lt;li&gt;/g,"@# ").replace(/<li>/g,"@# ").replace(/&lt;\/li&gt;/g," <br/>").replace(/<\/li>/g," <br/>");$(this).html(d)})}function strip_tags(f,e){e=(((e||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");return f.replace(/<\!--[\s\S]*?--\>|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,function(b,g){return e.indexOf("<"+g.toLowerCase()+">")>-1?b:""})}function czyscbr2(){$(".podzialy .nor").each(function(){d=unesc($(this).html());d=d.replace(/@#(.*?)<br>(.*?)/g,"@#$1 $2").replace(/\<br><br>/g,"<br>");d=d.replace(/\@\#(.*?)(<br>|<br \/>|\n|$)/g,"<li>$1</li>").replace(/\@\#/g,"</li><li>");d=strip_tags(d,"<br><br/><b></b><li><ul></ul></li>");$(this).html(d)})}function unesc(b){return b?b.replace(/&lt;b&gt;/g,"<b>").replace(/&lt;\/b&gt;/g,"</b>").replace(/&lt;br&gt;/g,"<br>").replace(/&amp;nbsp;/g," ").replace(/ style=".*?"/g,"").replace(/&amp;nbsp;/g," ").replace(/&lt;\/p&gt;/g,"</p>").replace(/&lt;p&gt;/g,"<p>"):b}function strlen(b){return b.length}function gtsd(){}function formatuj(g,f){try{if(!g.match(/\./i)&&f==!0){return g}g=f==!1?g.match(/([0-9]+)\./i):g.match(/\.([0-9]+)/i);return g[1]}catch(h){return g}}function popup(l){$.exists("#mes")||$("body").append('<div class="mes"><div id="dialog-overlay"></div><div id="dialog-box"><div class="dialog-content"><div id="dialog-message" class="el dri"></div><a href="#" id="bat" class="button es">Zamknij</a></div></div></div>');var h=$("body").css("height"),o=$(window).width(),n=h/2.4-$("#dialog-box").height(),m=o/2-$("#dialog-box").width()/2,n="150px";$("#dialog-overlay").css({height:h,width:o}).show();$("#dialog-box").css({top:n,left:m}).show();$("#dialog-message").html(l);Cufon.refresh();$("#bat,a.btn-ok, #dialog-overlay, #dialog-box").click(function(){$("#dialog-overlay, #dialog-box").hide();return !1});$("#bat").css("display","block")}function filmik(){$.get("./_public/youtubeg.html",function(b){fpos=$("#f,#f2").attr("id");$("body").append('<div id="yui">'+b+"</div>");$("#bgw").css("display","none");$("#f2").attr("id","f");$("html").css("overflow-y","-moz-scrollbars-vertical");$("html").css("overflow-y","scroll");$("#f,#f2").hide();Cufon.refresh();$("#byeyu").click(function(){$("html").css("overflow-y","auto");$("#bgw").show();$("#bgw").unbind("show");$("#info").show(200);$("#f,#f2").show();$("#f,#f2").attr("id",fpos);$("#yub_b").remove();$("#yub").remove();$("#yui").remove();$("#lefft").masonry("reload")})})}function fixajax(){try{cfg=$.parseJSON($("#css").html()),$.each(cfg.css,function(f,g){$(f).attr("style",g)}),$.each(cfg.pos,function(f,g){c=$(f).clone();$(f).remove();$("#sortable").append(c);$(f).attr("lang",g)}),$(".checkbox").live("click",function(){as=$('[type="checkbox"]',this).attr("checked");d=$('[type="checkbox"]',this).attr("lang");if($("#rirekisho").css("height").replace(/\D+/i,"")<1151&&as=="checked"){return $(".checkbox").css("background-position","center 0pt"),$('[type="checkbox"]',this).attr("checked",!1),$("#"+d+" .bre").addClass("prib"),popup("Zaznacz t\u0105 opcje gdy d\u0142ugo\u015b\u0107 strony przekroczy rozmiar kartki A4. S\u0142u\u017cy ona do wskazania miejsca gdzie ma si\u0119 rozpoczyna\u0107 nast\u0119pna strona"),$("body").scrollTo(0,200),!0}as==!0?$("#"+d+" .bre").addClass("prib"):$("#"+d+" .bre").removeClass("prib")}),Cufon.refresh()}catch(b){}$.each(cfg.bre,function(f,g){(g=="true"||g==!0||g=="checked"?!0:!1)==!0?($(f+" .checkbox").css("backgroundPosition","center -50px"),$(f+" .bre").addClass("prib"),$(f+' [type="checkbox"]').attr("checked",!0)):($(f+" .checkbox").css("backgroundPosition","center 0"),$(f+" .bre").removeClass("prib"),$(f+' [type="checkbox"]').attr("checked",!1))});$(".checkbox").dgStyle();$.each(cfg.bre,function(f,g){(g=="true"||g==!0||g=="checked"?!0:!1)==!0?($(f+" .checkbox").css("backgroundPosition","center -50px"),$(f+" .bre").addClass("prib"),$(f+' [type="checkbox"]').attr("checked",!0)):($(f+" .checkbox").css("backgroundPosition","center 0"),$(f+" .bre").removeClass("prib"),$(f+' [type="checkbox"]').attr("checked",!1))});$.each(cfg.pos,function(e){ko=$(e).attr("id");$.exists("#"+ko+" .podzialy")||$("#"+ko).addClass("non")});$.each(cfg.wido,function(f,g){ko=$(f).attr("id");g=="0"&&($("#"+ko).removeClass("non"),$("#"+ko).addClass("nom"))});hu2=window.location.hash;if(hu2=="#regu"||hu2=="#n"){setTimeout(function(){$("#personal").click()},100),window.location="showcv.php#"}hu=window.location.href;hu=hu.match(/[\/|\\]([^\\\/]+)$/);hu[1]=="wzorycv.php"&&$(window).unbind("beforeunload");$.exists(".podzialy")||$(".sectors").removeClass("non");$(".dzd").css("opacity","0.25");updown("#rirekisho");hu=window.location.search.substring(1);hu.match(/\&proj/i)&&($("#split2").val()=="checked"&&$(".bre").removeClass("prib"),$('.sectors [type="checkbox"]:checked').length>=3&&($(".bre").removeClass("prib"),$('[type="checkbox"]').attr("checked",!1)))}(function(a){var f=a.event,b;f.special.smartresize={setup:function(){a(this).bind("resize",f.special.smartresize.handler)},teardown:function(){a(this).unbind("resize",f.special.smartresize.handler)},handler:function(h,e){var m=this,n=arguments;h.type="smartresize";b&&clearTimeout(b);b=setTimeout(function(){jQuery.event.handle.apply(m,n)},e==="execAsap"?0:100)}};a.fn.smartresize=function(e){return e?this.bind("smartresize",e):this.trigger("smartresize",["execAsap"])};a.fn.masonry=function(h,e){var m={getBricks:function(n,g,l){var o=l.itemSelector===undefined;g.$bricks=l.appendedContent===undefined?o?n.children():n.find(l.itemSelector):o?l.appendedContent:l.appendedContent.filter(l.itemSelector)},placeBrick:function(q,t,u,s,o){t=Math.min.apply(Math,u);for(var n=t+q.outerHeight(true),p=u.length,l=p,g=s.colCount+1-p;p--;){if(u[p]==t){l=p}}q.applyStyle({left:s.colW*l+s.posLeft,top:t},a.extend(true,{},o.animationOptions));for(p=0;p<g;p++){s.colY[l+p]=n}},setup:function(n,g,l){m.getBricks(n,l,g);if(l.masoned){l.previousData=n.data("masonry")}l.colW=g.columnWidth===undefined?l.masoned?l.previousData.colW:l.$bricks.outerWidth(true):g.columnWidth;l.colCount=Math.floor(n.width()/l.colW);l.colCount=Math.max(l.colCount,1)},arrange:function(o,g,l){var p;if(!l.masoned||g.appendedContent!==undefined){l.$bricks.css("position","absolute")}if(l.masoned){l.posTop=l.previousData.posTop;l.posLeft=l.previousData.posLeft}else{o.css("position","relative");var n=a(document.createElement("div"));o.prepend(n);l.posTop=Math.round(n.position().top);l.posLeft=Math.round(n.position().left);n.remove()}if(l.masoned&&g.appendedContent!==undefined){l.colY=l.previousData.colY;for(p=l.previousData.colCount;p<l.colCount;p++){l.colY[p]=l.posTop}}else{l.colY=[];for(p=l.colCount;p--;){l.colY.push(l.posTop)}}a.fn.applyStyle=l.masoned&&g.animate?a.fn.animate:a.fn.css;g.singleMode?l.$bricks.each(function(){var q=a(this);m.placeBrick(q,l.colCount,l.colY,l,g)}):l.$bricks.each(function(){var t=a(this),u=Math.ceil(t.outerWidth(true)/l.colW);u=Math.min(u,l.colCount);if(u===1){m.placeBrick(t,l.colCount,l.colY,l,g)}else{var s=l.colCount+1-u,q=[];for(p=0;p<s;p++){var v=l.colY.slice(p,p+u);q[p]=Math.max.apply(Math,v)}m.placeBrick(t,s,q,l,g)}});l.wallH=Math.max.apply(Math,l.colY);o.applyStyle({height:l.wallH-l.posTop},a.extend(true,[],g.animationOptions));l.masoned||setTimeout(function(){o.addClass("masoned")},1);e.call(l.$bricks);o.data("masonry",l)},resize:function(n,g,l){l.masoned=!!n.data("masonry");var o=n.data("masonry").colCount;m.setup(n,g,l);l.colCount!=o&&m.arrange(n,g,l)}};return this.each(function(){var o=a(this),g={};g.masoned=!!o.data("masonry");var l=g.masoned?o.data("masonry").options:{},p=a.extend({},a.fn.masonry.defaults,l,h),n=l.resizeable;g.options=p.saveOptions?p:l;e=e||function(){};m.getBricks(o,g,p);if(!g.$bricks.length){return this}m.setup(o,p,g);m.arrange(o,p,g);!n&&p.resizeable&&a(window).bind("smartresize.masonry",function(){m.resize(o,p,g)});n&&!p.resizeable&&a(window).unbind("smartresize.masonry")})};a.fn.masonry.defaults={singleMode:false,columnWidth:undefined,itemSelector:undefined,appendedContent:undefined,saveOptions:true,resizeable:true,animate:false,animationOptions:{}}})(jQuery);(function(e){var a=e.scrollTo=function(f,g,h){e(window).scrollTo(f,g,h)};a.defaults={axis:"xy",duration:parseFloat(e.fn.jquery)>=1.3?0:1};a.window=function(f){return e(window)._scrollable()};e.fn._scrollable=function(){return this.map(function(){var f=this,g=!f.nodeName||e.inArray(f.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!g){return f}var h=(f.contentWindow||f).document||f.ownerDocument||f;return e.browser.safari||h.compatMode=="BackCompat"?h.body:h.documentElement})};e.fn.scrollTo=function(h,g,f){if(typeof g=="object"){f=g;g=0}if(typeof f=="function"){f={onAfter:f}}if(h=="max"){h=9000000000}f=e.extend({},a.defaults,f);g=g||f.speed||f.duration;f.queue=f.queue&&f.axis.length>1;if(f.queue){g/=2}f.offset=b(f.offset);f.over=b(f.over);return this._scrollable().each(function(){var w=this,p=e(w),v=h,n,o={},l=p.is("html,body");switch(typeof v){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(v)){v=b(v);break}v=e(v,this);case"object":if(v.is||v.style){n=(v=e(v)).offset()}}e.each(f.axis.split(""),function(t,u){var y=u=="x"?"Left":"Top",x=y.toLowerCase(),A="scroll"+y,s=w[A],q=a.max(w,u);if(n){o[A]=n[x]+(l?0:s-p.offset()[x]);if(f.margin){o[A]-=parseInt(v.css("margin"+y))||0;o[A]-=parseInt(v.css("border"+y+"Width"))||0}o[A]+=f.offset[x]||0;if(f.over[x]){o[A]+=v[u=="x"?"width":"height"]()*f.over[x]}}else{var z=v[x];o[A]=z.slice&&z.slice(-1)=="%"?parseFloat(z)/100*q:z}if(/^\d+$/.test(o[A])){o[A]=o[A]<=0?0:Math.min(o[A],q)}if(!t&&f.queue){if(s!=o[A]){m(f.onAfterFirst)}delete o[A]}});m(f.onAfter);function m(q){p.animate(o,g,f.easing,q&&function(){q.call(this,h,f)})}}).end()};a.max=function(n,o){var q=o=="x"?"Width":"Height",p="scroll"+q;if(!e(n).is("html,body")){return n[p]-e(n)[q.toLowerCase()]()}var s="client"+q,g=n.ownerDocument.documentElement,f=n.ownerDocument.body;return Math.max(g[p],f[p])-Math.min(g[s],f[s])};function b(f){return typeof f=="object"?f:{top:f,left:f}}})(jQuery);(function($){$.toJSON=function(o){if(typeof(JSON)=="object"&&JSON.stringify){return JSON.stringify(o)}var type=typeof(o);if(o===null){return"null"}if(type=="undefined"){return undefined}if(type=="number"||type=="boolean"){return o+""}if(type=="string"){return $.quoteString(o)}if(type=="object"){if(typeof o.toJSON=="function"){return $.toJSON(o.toJSON())}if(o.constructor===Date){var month=o.getUTCMonth()+1;if(month<10){month="0"+month}var day=o.getUTCDate();if(day<10){day="0"+day}var year=o.getUTCFullYear();var hours=o.getUTCHours();if(hours<10){hours="0"+hours}var minutes=o.getUTCMinutes();if(minutes<10){minutes="0"+minutes}var seconds=o.getUTCSeconds();if(seconds<10){seconds="0"+seconds}var milli=o.getUTCMilliseconds();if(milli<100){milli="0"+milli}if(milli<10){milli="0"+milli}return'"'+year+"-"+month+"-"+day+"T"+hours+":"+minutes+":"+seconds+"."+milli+'Z"'}if(o.constructor===Array){var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i])||"null")}return"["+ret.join(",")+"]"}var pairs=[];for(var k in o){var name;var type=typeof k;if(type=="number"){name='"'+k+'"'}else{if(type=="string"){name=$.quoteString(k)}else{continue}}if(typeof o[k]=="function"){continue}var val=$.toJSON(o[k]);pairs.push(name+":"+val)}return"{"+pairs.join(", ")+"}"}};$.evalJSON=function(src){if(typeof(JSON)=="object"&&JSON.parse){return JSON.parse(src)}return eval("("+src+")")};$.secureEvalJSON=function(src){if(typeof(JSON)=="object"&&JSON.parse){return JSON.parse(src)}var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered)){return eval("("+src+")")}else{throw new SyntaxError("Error parsing JSON, source is not valid.")}};$.quoteString=function(string){if(string.match(_escapeable)){return'"'+string.replace(_escapeable,function(a){var c=_meta[a];if(typeof c==="string"){return c}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+string+'"'};var _escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var _meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}})(jQuery);(function(a){a.event.special.mousewheel={setup:function(){var b=a.event.special.mousewheel.handler;if(a.browser.mozilla){a(this).bind("mousemove.mousewheel",function(e){a.data(this,"mwcursorposdata",{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY})})}if(this.addEventListener){this.addEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=b}},teardown:function(){var b=a.event.special.mousewheel.handler;a(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=function(){}}a.removeData(this,"mwcursorposdata")},handler:function(f){var b=Array.prototype.slice.call(arguments,1);f=a.event.fix(f||window.event);a.extend(f,a.data(this,"mwcursorposdata")||{});var g=0,e=true;if(f.wheelDelta){g=f.wheelDelta/120}if(f.detail){g=-f.detail/3}f.data=f.data||{};f.type="mousewheel";b.unshift(g);b.unshift(f);return a.event.handle.apply(this,b)}};a.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(jQuery);
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
 * Licensed under the MIT License (LICENSE.txt).
 *
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 * Thanks to: Seamus Leahy for adding deltaX and deltaY
 *
 * Version: 3.0.6
 * 
 * Requires: 1.2.2+
 */
(function(f){var b=["DOMMouseScroll","mousewheel"];if(f.event.fixHooks){for(var a=b.length;a;){f.event.fixHooks[b[--a]]=f.event.mouseHooks}}f.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var g=b.length;g;){this.addEventListener(b[--g],e,false)}}else{this.onmousewheel=e}},teardown:function(){if(this.removeEventListener){for(var g=b.length;g;){this.removeEventListener(b[--g],e,false)}}else{this.onmousewheel=null}}};f.fn.extend({mousewheel:function(g){return g?this.bind("mousewheel",g):this.trigger("mousewheel")},unmousewheel:function(g){return this.unbind("mousewheel",g)}});function e(o){var m=o||window.event,l=[].slice.call(arguments,1),p=0,n=true,h=0,g=0;o=f.event.fix(m);o.type="mousewheel";if(m.wheelDelta){p=m.wheelDelta/120}if(m.detail){p=-m.detail/3}g=p;if(m.axis!==undefined&&m.axis===m.HORIZONTAL_AXIS){g=0;h=-1*p}if(m.wheelDeltaY!==undefined){g=m.wheelDeltaY/120}if(m.wheelDeltaX!==undefined){h=-1*m.wheelDeltaX/120}l.unshift(o,p,h,g);return(f.event.dispatch||f.event.handle).apply(this,l)}})(jQuery);jQuery.cookie=function(b,n,q){if(typeof n!="undefined"){q=q||{};if(n===null){n="";q.expires=-1}var g="";if(q.expires&&(typeof q.expires=="number"||q.expires.toUTCString)){var h;if(typeof q.expires=="number"){h=new Date();h.setTime(h.getTime()+(q.expires*24*60*60*1000))}else{h=q.expires}g="; expires="+h.toUTCString()}var p=q.path?"; path="+(q.path):"";var l=q.domain?"; domain="+(q.domain):"";var a=q.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(n),g,p,l,a].join("")}else{var f=null;if(document.cookie&&document.cookie!=""){var o=document.cookie.split(";");for(var m=0;m<o.length;m++){var e=jQuery.trim(o[m]);if(e.substring(0,b.length+1)==(b+"=")){f=decodeURIComponent(e.substring(b.length+1));break}}}return f}};
