/*
 * 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}})());

Cufon.registerFont({"w":200,"face":{"font-family":"DIN Black","font-weight":900,"font-stretch":"normal","units-per-em":"360","panose-1":"2 2 5 0 0 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"2","bbox":"-10 -290 353 67","underline-thickness":"18.9844","underline-position":"-13.7109","unicode-range":"U+0020-U+007E"},"glyphs":{" ":{"w":79},"!":{"d":"110,-256r-16,171r-42,0r-16,-171r74,0xm103,0r-60,0r0,-58r60,0r0,58","w":131},"\"":{"d":"155,-172r-53,0r0,-84r53,0r0,84xm73,-172r-52,0r0,-84r52,0r0,84","w":175},"#":{"d":"240,-148r-30,0r-5,31r21,0r0,56r-30,0r-9,61r-63,0r10,-61r-33,0r-10,61r-62,0r9,-61r-20,0r0,-56r29,0r5,-31r-21,0r0,-56r30,0r9,-55r63,0r-9,55r32,0r9,-55r62,0r-8,55r21,0r0,56xm147,-148r-32,0r-5,31r33,0","w":256},"$":{"d":"32,-126v-41,-46,-6,-133,58,-131r0,-33r45,0r0,32v30,2,55,12,73,30r-39,40v-9,-9,-22,-14,-41,-15r0,45v52,5,85,23,84,80v-1,46,-35,71,-77,78r0,41r-45,0r0,-39v-41,-2,-67,-10,-88,-34r40,-40v11,12,30,18,55,18r0,-48v-29,-1,-51,-9,-65,-24xm97,-203v-27,1,-29,42,0,43r0,-43xm128,-55v30,-2,29,-44,0,-44r0,44","w":227},"%":{"d":"238,-132v46,0,57,34,54,84v-2,33,-21,50,-54,50v-46,0,-57,-34,-54,-84v2,-33,21,-50,54,-50xm238,-256r-122,256r-46,0r123,-256r45,0xm70,-258v47,0,58,34,55,84v-2,33,-23,50,-55,50v-44,0,-58,-34,-54,-84v2,-31,21,-50,54,-50xm238,-35v19,0,10,-29,12,-46v0,-9,-4,-14,-12,-14v-19,0,-12,28,-13,46v0,9,5,14,13,14xm70,-162v19,1,12,-28,13,-45v0,-9,-5,-14,-13,-14v-18,0,-10,28,-12,45v0,9,4,14,12,14","w":308},"&":{"d":"168,-102v7,-8,11,-24,12,-37r55,0v-3,35,-13,61,-30,80r51,59r-75,0r-16,-19v-20,14,-28,21,-61,21v-56,0,-86,-26,-86,-80v-1,-30,21,-51,40,-64v-43,-37,-23,-116,52,-116v44,0,71,22,71,64v0,31,-23,43,-43,57xm107,-172v13,-5,32,-35,3,-37v-26,0,-15,30,-3,37xm90,-106v-34,19,-6,67,29,53v4,-2,7,-4,11,-7","w":255},"'":{"d":"74,-172r-53,0r0,-84r53,0r0,84","w":94},"(":{"d":"111,-6r-39,40v-24,-24,-49,-41,-46,-93v4,-72,-16,-169,23,-208v4,-5,12,-12,23,-23r39,40v-43,26,-22,123,-26,189v-2,31,14,42,26,55","w":128},")":{"d":"44,-61v-4,-66,18,-162,-26,-189r39,-40v22,24,47,43,46,92r-2,168v-8,30,-22,43,-44,64r-39,-40v14,-14,28,-24,26,-55","w":128},"*":{"d":"165,-163r-20,35r-35,-23r1,42r-40,0r2,-42r-36,23r-20,-35r38,-19r-38,-20r20,-35r36,23r-2,-42r40,0r-1,42r35,-23r20,35r-38,20","w":182},"+":{"d":"182,-74r-54,0r0,54r-56,0r0,-54r-54,0r0,-56r54,0r0,-54r56,0r0,54r54,0r0,56"},",":{"d":"83,18r-62,46r0,-127r62,0r0,81","w":103},"-":{"d":"136,-78r-118,0r0,-56r118,0r0,56","w":153},".":{"d":"85,0r-64,0r0,-65r64,0r0,65","w":105},"\/":{"d":"157,-283r-102,310r-55,0r103,-310r54,0","w":155},"0":{"d":"100,-258v50,0,82,27,82,79r0,101v0,52,-32,80,-82,80v-48,0,-83,-29,-82,-80r0,-101v0,-51,33,-79,82,-79xm100,-51v15,-1,23,-9,23,-26r0,-102v0,-16,-8,-26,-23,-26v-15,0,-23,11,-23,26r0,102v0,15,8,26,23,26"},"1":{"d":"146,0r-59,0r0,-193r-55,47r0,-63r55,-47r59,0r0,256"},"2":{"d":"102,-258v79,-5,100,87,50,140r-61,65r93,0r0,53r-165,0r0,-53r93,-101v18,-13,19,-51,-10,-51v-15,0,-25,9,-24,25r-59,0v1,-49,34,-75,83,-78"},"3":{"d":"156,-133v17,12,28,27,30,56v6,82,-120,105,-159,44v-8,-12,-12,-27,-12,-45r59,0v0,16,10,27,26,27v16,0,28,-10,27,-27v0,-19,-14,-30,-36,-27r0,-52v21,2,32,-7,33,-24v1,-15,-10,-24,-24,-24v-14,0,-24,10,-23,24r-59,0v1,-49,32,-73,82,-77v72,-6,113,88,56,125"},"4":{"d":"191,-34r-19,0r0,34r-57,0r0,-34r-106,0r0,-56r85,-166r65,0r-85,166r41,0r0,-34r57,0r0,34r19,0r0,56"},"5":{"d":"76,-163v52,-28,118,9,108,75v16,98,-130,119,-160,43v-3,-9,-5,-20,-6,-33r59,0v2,18,10,27,24,27v19,0,24,-12,24,-37v8,-39,-42,-48,-48,-17r-54,0r0,-151r156,0r0,53r-103,0r0,40"},"6":{"d":"102,-156v49,-9,82,27,82,76v0,52,-34,79,-85,82v-85,4,-94,-91,-61,-157r50,-101r64,0xm99,-51v16,0,26,-12,26,-29v0,-18,-10,-30,-26,-30v-16,0,-26,12,-26,30v0,17,10,29,26,29"},"7":{"d":"188,-203r-80,203r-65,0r80,-203r-55,0r0,40r-56,0r0,-93r176,0r0,53"},"8":{"d":"100,-258v74,-6,112,88,57,126v15,13,29,26,29,55v0,52,-35,79,-86,79v-51,0,-86,-27,-86,-79v0,-29,14,-42,29,-55v-14,-13,-26,-24,-26,-50v0,-51,35,-72,83,-76xm100,-156v14,0,25,-11,25,-25v0,-13,-12,-24,-25,-24v-13,0,-24,11,-24,24v0,13,11,25,24,25xm100,-51v38,0,32,-54,0,-54v-14,0,-27,12,-27,27v0,14,13,27,27,27"},"9":{"d":"101,-258v63,-2,102,55,79,115v-18,45,-46,98,-67,143r-65,0r51,-100v-51,6,-82,-27,-83,-76v0,-52,34,-81,85,-82xm101,-147v16,0,26,-12,26,-29v0,-17,-10,-29,-26,-29v-16,0,-26,12,-26,29v0,17,10,29,26,29"},":":{"d":"94,-91r-65,0r0,-65r65,0r0,65xm94,0r-65,0r0,-65r65,0r0,65","w":114},";":{"d":"94,-91r-65,0r0,-65r65,0r0,65xm92,18r-62,46r0,-127r62,0r0,81","w":114},"<":{"d":"352,-78r-235,0r109,108r-73,0r-136,-136r136,-136r73,0r-109,108r235,0r0,56","w":369},"=":{"d":"182,-122r-164,0r0,-56r164,0r0,56xm182,-35r-164,0r0,-55r164,0r0,55"},">":{"d":"353,-106r-136,136r-74,0r110,-108r-236,0r0,-56r236,0r-110,-108r74,0","w":369},"?":{"d":"102,-258v66,-4,105,68,63,121v-13,16,-30,26,-32,52r-59,0v-5,-51,40,-61,50,-98v0,-13,-9,-22,-22,-22v-14,0,-22,9,-21,23r-59,0v1,-50,31,-73,80,-76xm134,0r-61,0r0,-58r61,0r0,58","w":193},"@":{"d":"115,-258v89,0,150,6,150,96r0,163r-55,-1r0,-14v-43,37,-116,5,-101,-67v-13,-72,52,-105,99,-69v7,-54,-35,-55,-88,-55v-67,0,-46,81,-46,140v0,17,4,21,13,31r-41,41v-40,-29,-26,-104,-28,-169v-2,-66,30,-96,97,-96xm187,-47v19,0,21,-12,21,-34v0,-22,-2,-35,-21,-35v-19,0,-22,12,-22,35v0,23,3,34,22,34","w":282},"A":{"d":"235,0r-66,0r-12,-38r-79,0r-12,38r-66,0r93,-256r49,0xm141,-91r-22,-68r-23,68r45,0","w":235},"B":{"d":"186,-131v18,11,31,24,31,55v0,92,-103,76,-191,76r0,-256v86,1,188,-16,188,74v0,24,-15,41,-28,51xm89,-158v27,-1,62,6,62,-21v0,-27,-35,-20,-62,-21r0,42xm89,-57v28,-1,66,7,66,-22v0,-29,-38,-23,-66,-23r0,45","w":235},"C":{"d":"115,-54v20,2,29,-12,33,-27r64,0v-9,50,-40,83,-97,83v-70,0,-106,-53,-97,-139v-16,-104,86,-151,161,-101v18,12,29,36,33,63r-64,0v-5,-15,-12,-28,-33,-27v-36,2,-34,33,-34,74v0,45,-1,71,34,74","w":219},"D":{"d":"121,-256v79,0,96,59,96,149v0,68,-33,107,-96,107r-95,0r0,-256r95,0xm89,-56v37,2,65,-2,64,-39v-1,-42,12,-110,-36,-105r-28,0r0,144","w":234},"E":{"d":"200,0r-174,0r0,-256r174,0r0,56r-111,0r0,43r95,0r0,56r-95,0r0,45r111,0r0,56","w":218},"F":{"d":"200,-200r-111,0r0,45r95,0r0,56r-95,0r0,99r-63,0r0,-256r174,0r0,56","w":214},"G":{"d":"115,-54v25,1,39,-14,38,-41r-38,0r0,-53r100,0v7,92,-18,150,-100,150v-70,0,-97,-52,-97,-139v0,-78,28,-118,97,-121v59,-2,93,36,100,85r-63,0v-6,-18,-14,-29,-37,-29v-35,1,-34,34,-34,74v0,40,-1,73,34,74","w":232},"H":{"d":"219,0r-63,0r0,-102r-67,0r0,102r-63,0r0,-256r63,0r0,98r67,0r0,-98r63,0r0,256","w":244},"I":{"d":"89,0r-63,0r0,-256r63,0r0,256","w":114},"J":{"d":"38,-67v18,23,62,15,62,-22r0,-167r63,0r0,168v8,86,-114,117,-166,62","w":185},"K":{"d":"242,0r-73,0r-59,-105r-22,25r0,80r-62,0r0,-256r62,0r0,90r74,-90r77,0r-87,103","w":242},"L":{"d":"197,0r-171,0r0,-256r63,0r0,200r108,0r0,56","w":207},"M":{"d":"265,0r-63,0r0,-123r-36,64r-41,0r-36,-64r0,123r-63,0r0,-256r62,0r57,113r58,-113r62,0r0,256","w":290},"N":{"d":"226,0r-55,0r-82,-129r0,129r-63,0r0,-256r55,0r82,129r0,-129r63,0r0,256","w":252},"O":{"d":"115,-258v76,0,98,54,98,138v0,75,-27,122,-98,122v-77,0,-97,-53,-97,-139v0,-78,27,-121,97,-121xm115,-54v34,-5,35,-28,35,-74v0,-47,2,-69,-35,-74v-35,2,-34,33,-34,74v-1,40,0,72,34,74","w":230},"P":{"d":"127,-256v53,0,88,32,88,82v0,64,-53,90,-126,83r0,91r-63,0r0,-256r101,0xm89,-148v30,0,63,4,63,-26v0,-30,-33,-26,-63,-26r0,52","w":225},"Q":{"d":"213,-137v0,40,0,71,-15,96r19,19r-32,32r-20,-20v-86,36,-164,-18,-147,-127v-4,-78,27,-121,97,-121v70,0,101,46,98,121xm81,-128v-1,42,0,75,39,74r-16,-16r32,-33r12,13v1,-46,14,-114,-33,-112v-35,2,-34,33,-34,74","w":230},"R":{"d":"127,-256v90,-11,117,120,46,149r56,107r-73,0r-46,-95r-21,0r0,95r-63,0r0,-256r101,0xm89,-148v30,0,63,4,63,-26v0,-30,-33,-26,-63,-26r0,52","w":234},"S":{"d":"155,-188v-17,-27,-100,-17,-75,20v36,19,105,7,113,57v41,108,-123,149,-191,79r40,-40v17,26,118,26,89,-20v-26,-15,-82,-8,-99,-34v-12,-12,-18,-30,-18,-52v0,-88,131,-102,180,-50","w":213},"T":{"d":"200,-200r-63,0r0,200r-63,0r0,-200r-63,0r0,-56r189,0r0,56","w":210},"U":{"d":"118,-54v23,0,35,-14,35,-37r0,-165r63,0r0,166v-3,57,-39,92,-98,92v-56,0,-96,-36,-96,-92r0,-166r63,0r0,165v0,22,11,37,33,37","w":237},"V":{"d":"216,-256r-85,256r-46,0r-85,-256r65,0r43,143r43,-143r65,0","w":216},"W":{"d":"326,-256r-70,256r-52,0r-41,-126r-41,126r-52,0r-70,-256r66,0r33,135r42,-135r44,0r42,135r33,-135r66,0","w":326},"X":{"d":"228,0r-72,0r-42,-79r-42,79r-72,0r80,-131r-75,-125r72,0r37,72r38,-72r71,0r-75,125","w":228},"Y":{"d":"218,-256r-78,152r0,104r-63,0r0,-104r-77,-152r69,0r40,92r40,-92r69,0","w":217},"Z":{"d":"185,0r-174,0r0,-49r98,-151r-94,0r0,-56r170,0r0,49r-99,151r99,0r0,56","w":195},"[":{"d":"135,27r-109,0r0,-310r109,0r0,53r-50,0r0,203r50,0r0,54","w":149},"\\":{"d":"155,27r-55,0r-100,-304r55,0","w":155},"]":{"d":"124,27r-110,0r0,-54r51,0r0,-203r-51,0r0,-53r110,0r0,310","w":149},"^":{"d":"210,-135r-62,0r-33,-59r-32,59r-62,0r67,-124r55,0","w":230},"_":{"d":"230,67r-230,0r0,-39r230,0r0,39","w":230},"`":{"d":"111,-220r-36,0r-42,-64r60,0","w":180},"a":{"d":"18,-170v39,-45,156,-34,156,44r0,126r-58,0r0,-16v-32,37,-110,13,-106,-45v4,-51,49,-60,105,-56v7,-37,-46,-35,-60,-16xm66,-62v9,28,56,18,49,-16v-21,1,-49,-5,-49,16","w":193},"b":{"d":"125,-196v55,0,64,46,64,108v0,55,-16,90,-65,90v-22,0,-32,-7,-44,-18r0,16r-58,0r0,-256r59,0r0,76v11,-11,24,-16,44,-16xm106,-51v24,1,24,-21,24,-46v0,-25,-1,-46,-24,-46v-24,0,-25,18,-25,46v0,24,0,46,25,46","w":204},"c":{"d":"73,-97v-5,42,28,59,52,34r40,40v-14,15,-36,25,-64,25v-57,-1,-87,-36,-87,-99v0,-92,93,-126,151,-74r-40,40v-24,-25,-57,-8,-52,34","w":171},"d":{"d":"15,-88v0,-61,7,-108,65,-108v18,0,32,5,43,16r0,-76r59,0r0,256r-57,0r0,-16v-12,11,-22,18,-44,18v-51,1,-66,-36,-66,-90xm99,-51v24,1,24,-21,24,-46v0,-25,-1,-46,-24,-46v-24,0,-23,18,-24,46v0,25,0,46,24,46","w":204},"e":{"d":"100,-196v65,0,93,48,88,118r-116,0v-2,37,59,39,74,14r35,36v-21,20,-37,30,-75,30v-61,0,-92,-33,-92,-99v-1,-58,32,-99,86,-99xm129,-117v5,-32,-43,-40,-54,-15v-2,4,-3,9,-3,15r57,0","w":201},"f":{"d":"28,-186v-5,-58,31,-80,92,-74r0,49v-20,-1,-37,-2,-32,25r32,0r0,45r-32,0r0,141r-60,0r0,-141r-17,0r0,-45r17,0","w":128},"g":{"d":"16,-130v-7,-60,71,-85,106,-48r0,-16r58,0r0,180v5,79,-111,103,-160,54r36,-37v21,22,77,13,65,-31v-50,40,-106,1,-106,-76v0,-11,1,-20,1,-26xm98,-66v21,0,23,-17,23,-38v0,-22,-2,-39,-23,-39v-21,0,-24,16,-23,39v0,23,1,38,23,38","w":201},"h":{"d":"81,-178v37,-38,105,-10,105,52r0,126r-59,0r0,-117v1,-15,-11,-26,-23,-26v-12,0,-24,11,-23,26r0,117r-59,0r0,-256r59,0r0,78","w":206},"i":{"d":"81,-213r-59,0r0,-45r59,0r0,45xm81,0r-59,0r0,-186r59,0r0,186","w":103},"j":{"d":"81,-213r-59,0r0,-45r59,0r0,45xm81,8v0,45,-38,63,-91,57r0,-50v14,-1,32,4,32,-12r0,-189r59,0r0,194","w":103},"k":{"d":"206,0r-73,0r-40,-71r-12,13r0,58r-59,0r0,-256r59,0r0,130r53,-68r70,0r-71,81","w":206},"l":{"d":"112,0v-53,5,-91,-10,-91,-57r0,-199r59,0r0,194v-2,16,18,11,32,12r0,50","w":122},"m":{"d":"172,-175v39,-41,122,-19,122,51r0,124r-59,0r0,-116v1,-18,-9,-27,-23,-27v-14,0,-25,10,-24,27r0,116r-59,0r0,-116v0,-17,-10,-27,-24,-27v-14,0,-25,10,-24,27r0,116r-59,0r0,-194r58,0r0,16v22,-23,72,-25,92,3","w":315},"n":{"d":"80,-178v39,-37,108,-11,108,54r0,124r-59,0r0,-116v0,-17,-10,-27,-24,-27v-14,0,-25,10,-24,27r0,116r-59,0r0,-194r58,0r0,16","w":208},"o":{"d":"99,-196v59,0,83,34,83,99v0,65,-29,99,-83,99v-55,0,-84,-36,-84,-99v0,-63,25,-99,84,-99xm99,-51v23,0,24,-19,24,-46v0,-27,-1,-46,-24,-46v-23,0,-24,21,-24,46v0,26,1,46,24,46","w":197},"p":{"d":"80,-178v55,-46,127,2,109,90v3,54,-15,90,-64,90v-18,0,-33,-5,-44,-16r0,77r-59,0r0,-257r58,0r0,16xm106,-51v24,1,24,-21,24,-46v0,-25,-1,-46,-24,-46v-24,0,-25,18,-25,46v0,24,0,46,25,46","w":204},"q":{"d":"81,-196v21,1,33,7,44,18r0,-16r57,0r0,257r-59,0r0,-77v-11,11,-25,16,-43,16v-57,-1,-65,-46,-65,-108v0,-54,16,-90,66,-90xm99,-51v24,1,24,-21,24,-46v0,-25,-1,-46,-24,-46v-24,0,-23,18,-24,46v0,25,0,46,24,46","w":204},"r":{"d":"80,-178v17,-22,73,-26,91,0r-45,45v-13,-17,-45,-10,-45,17r0,116r-59,0r0,-194r58,0r0,16","w":171},"s":{"d":"131,-136v-7,-10,-54,-20,-60,0v7,23,56,8,75,23v15,12,25,26,26,50v3,77,-128,82,-168,37r38,-38v11,11,26,16,47,16v21,0,37,-23,11,-25v-46,-4,-86,-10,-86,-59v0,-73,112,-81,153,-40","w":181},"t":{"d":"116,0v-52,5,-89,-11,-89,-57r0,-84r-18,0r0,-45r18,0r0,-56r59,0r0,56r30,0r0,45r-30,0r0,79v-1,15,16,12,30,12r0,50","w":130},"u":{"d":"103,-51v14,0,25,-10,24,-27r0,-116r59,0r0,194r-58,0r0,-16v-39,38,-107,12,-107,-54r0,-124r59,0r0,116v-1,18,9,27,23,27","w":208},"v":{"d":"188,-194r-72,194r-45,0r-71,-194r62,0r32,101r32,-101r62,0","w":187},"w":{"d":"281,-194r-58,194r-48,0r-35,-106r-35,106r-47,0r-58,-194r62,0r24,101r34,-101r41,0r33,101r24,-101r63,0","w":280},"x":{"d":"200,0r-71,0r-29,-49r-29,49r-71,0r67,-99r-65,-95r71,0r27,47r27,-47r71,0r-65,95"},"y":{"d":"188,-194r-80,217v-11,32,-36,46,-81,42r0,-53v27,5,33,-12,38,-31r-65,-175r62,0r33,101r31,-101r62,0","w":185},"z":{"d":"162,0r-151,0r0,-44r74,-96r-70,0r0,-54r147,0r0,44r-76,97r76,0r0,53","w":175},"{":{"d":"94,-128v55,9,-2,107,53,101r25,0r0,54v-59,5,-112,-4,-110,-58v1,-41,6,-82,-48,-71r0,-53v27,1,50,1,48,-28v-5,-57,5,-101,60,-100r50,0r0,53v-28,0,-54,-5,-51,28v3,35,3,68,-27,74","w":186},"|":{"d":"95,27r-59,0r0,-310r59,0r0,310","w":130},"}":{"d":"125,-226v-1,40,-9,82,47,71r0,53v-27,-1,-49,0,-47,29v5,57,-6,101,-60,100r-51,0r0,-54v28,0,54,5,52,-28v-2,-34,-4,-69,26,-73v-30,-4,-28,-40,-26,-74v2,-33,-23,-28,-52,-28r0,-53v59,-5,112,4,111,57","w":186},"~":{"d":"77,-146v40,-1,75,42,107,7r38,37v-19,18,-34,33,-67,35v-41,1,-75,-44,-107,-7r-37,-37v20,-20,33,-33,66,-35","w":232},"\u00a0":{"w":79}}});

/* Masonry */
(function($){ 

	//Finding min and max values in array from http://snippets.dzone.com/posts/show/769
	Array.prototype.min = function(){ return Math.min.apply({},this) };
	Array.prototype.max = function(){ return Math.max.apply({},this) };

	$.fn.masonry = function() {
		this.each(function() {
			
			var wall = $(this);
		
			if ( wall.children().length > 0 ) { // check if the element has anything in it
				
				if( wall.children('.masonryWrap').length == 0 ) {      // checks if the masonryWrap div is already there
					wall.wrapInner('<div class=\"masonryWrap\"></div>');
				}
				var mWrap = wall.children('.masonryWrap');
	
				var brick = mWrap.children();
				var brickW = brick.outerWidth(true);
				var colCount = Math.floor( mWrap.width() / brickW ) ;
				
				var colH=new Array();
				for ( i=0; i < colCount; i++) {
					colH[ i ] =  0 ;
				}		
				
				mWrap.css({ position: 'relative' });
				
				brick.css({
						float: 'none',
						position: 'absolute',
						display: 'block'
					})
					.each(function(){
						for ( i=colCount-1; i > -1; i-- ) {
							if ( colH[ i ] == colH.min() ) {
								var thisCol = i;
							}
						}
						$(this).css({
							top: colH[ thisCol ],
							left: brickW * thisCol
						});
						colH[ thisCol ] += $(this).outerHeight(true);
					});
				
				mWrap.height( colH.max() );
			}

			return this; 
		});
	};
})(jQuery);

/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

/* -------------------------------------------------- *
 * ToggleVal 2.1
 * Updated: 1/16/09
 * -------------------------------------------------- *
 * Author: Aaron Kuzemchak
 * URL: http://aaronkuzemchak.com/
 * Copyright: 2008-2009 Aaron Kuzemchak
 * License: MIT License
** -------------------------------------------------- */

(function($){$.fn.toggleVal=function(theOptions){if(!theOptions||typeof(theOptions)=="object"){theOptions=$.extend({focusClass:"tv-focused",changedClass:"tv-changed",populateFrom:"default",text:null,removeLabels:false},theOptions)}else if(typeof(theOptions)=="string"&&theOptions.toLowerCase()=="destroy"){var destroy=true}return this.each(function(){if(destroy){$(this).unbind("focus.toggleval").unbind("blur.toggleval").removeData("defText");return false}var defText="";switch(theOptions.populateFrom){case"alt":defText=$(this).attr("alt");$(this).val(defText);break;case"label":defText=$("label[for='"+$(this).attr("id")+"']").text();$(this).val(defText);break;case"custom":defText=theOptions.text;$(this).val(defText);break;default:defText=$(this).val()}$(this).addClass("toggleval").data("defText",defText);if(theOptions.removeLabels==true){$("label[for='"+$(this).attr("id")+"']").remove()}$(this).bind("focus.toggleval",function(){if($(this).val()==$(this).data("defText")){$(this).val("")}$(this).addClass(theOptions.focusClass).removeClass(theOptions.changedClass)}).bind("blur.toggleval",function(){if($(this).val()==""){$(this).val($(this).data("defText"))}$(this).removeClass(theOptions.focusClass);if($(this).val()!=$(this).data("defText")){$(this).addClass(theOptions.changedClass)}else{$(this).removeClass(theOptions.changedClass)}})})}})(jQuery);


/* smoothscroll */
$(function(){ 
    $('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')  && location.hostname == this.hostname)
		{
			var $target = $(this.hash);

			$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');

			if ($target.length) {
				var targetOffset = $target.offset().top;
				$('html,body').animate({scrollTop: targetOffset}, 1000);    
				return false;
			}
		}        
	});
});

/*
 * jQuery ifixpng plugin
 * (previously known as pngfix)
 * Version 2.1  (23/04/2008)
 * @requires jQuery v1.1.3 or above
 *
 * Examples at: http://jquery.khurshid.com
 * Copyright (c) 2007 Kush M.
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
 
 /**
  *
  * @example
  *
  * optional if location of pixel.gif if different to default which is images/pixel.gif
  * $.ifixpng('media/pixel.gif');
  *
  * $('img[@src$=.png], #panel').ifixpng();
  *
  * @apply hack to all png images and #panel which icluded png img in its css
  *
  * @name ifixpng
  * @type jQuery
  * @cat Plugins/Image
  * @return jQuery
  * @author jQuery Community
  */
 
(function($) {

	/**
	 * helper variables and function
	 */
	$.ifixpng = function(customPixel) {
		$.ifixpng.pixel = customPixel;
	};
	
	$.ifixpng.getPixel = function() {
		return $.ifixpng.pixel || 'assets/project/img/pixel.gif';
	};
	
	var hack = {
		ltie7  : $.browser.msie && $.browser.version < 7,
		filter : function(src) {
			return "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+src+"')";
		}
	};
	
	/**
	 * Applies ie png hack to selected dom elements
	 *
	 * $('img[@src$=.png]').ifixpng();
	 * @desc apply hack to all images with png extensions
	 *
	 * $('#panel, img[@src$=.png]').ifixpng();
	 * @desc apply hack to element #panel and all images with png extensions
	 *
	 * @name ifixpng
	 */
	 
	$.fn.ifixpng = hack.ltie7 ? function() {
    	return this.each(function() {
			var $$ = $(this);
			// in case rewriting urls
			var base = $('base').attr('href');
			if (base) {
				// remove anything after the last '/'
				base = base.replace(/\/[^\/]+$/,'/');
			}
			if ($$.is('img') || $$.is('input')) { // hack image tags present in dom
				if ($$.attr('src')) {
					if ($$.attr('src').match(/.*\.png([?].*)?$/i)) { // make sure it is png image
						// use source tag value if set 
						var source = (base && $$.attr('src').search(/^(\/|http:)/i)) ? base + $$.attr('src') : $$.attr('src');
						// apply filter
						$$.css({filter:hack.filter(source), width:$$.width(), height:$$.height()})
						  .attr({src:$.ifixpng.getPixel()})
						  .positionFix();
					}
				}
			} else { // hack png css properties present inside css
				var image = $$.css('backgroundImage');
				if (image.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)) {
					image = RegExp.$1;
					image = (base && image.substring(0,1)!='/') ? base + image : image;
					$$.css({backgroundImage:'none', filter:hack.filter(image)})
					  .children().children().positionFix();
				}
			}
		});
	} : function() { return this; };
	
	/**
	 * Removes any png hack that may have been applied previously
	 *
	 * $('img[@src$=.png]').iunfixpng();
	 * @desc revert hack on all images with png extensions
	 *
	 * $('#panel, img[@src$=.png]').iunfixpng();
	 * @desc revert hack on element #panel and all images with png extensions
	 *
	 * @name iunfixpng
	 */
	 
	$.fn.iunfixpng = hack.ltie7 ? function() {
    	return this.each(function() {
			var $$ = $(this);
			var src = $$.css('filter');
			if (src.match(/src=["']?(.*\.png([?].*)?)["']?/i)) { // get img source from filter
				src = RegExp.$1;
				if ($$.is('img') || $$.is('input')) {
					$$.attr({src:src}).css({filter:''});
				} else {
					$$.css({filter:'', background:'url('+src+')'});
				}
			}
		});
	} : function() { return this; };
	
	/**
	 * positions selected item relatively
	 */
	 
	$.fn.positionFix = function() {
		return this.each(function() {
			var $$ = $(this);
			var position = $$.css('position');
			if (position != 'absolute' && position != 'relative') {
				$$.css({position:'relative'});
			}
		});
	};

})(jQuery);
