var gui={updateContent:function(f){$(f).visualEffect('Fade');}};function fadeOut(){}
function fadeOutDiv(div){$(div).visualEffect('Fade');}
function toggleDes(inputId,show){if(show==true){document.getElementById(inputId).style.display='block';}
else{document.getElementById(inputId).style.display='none';}}
function popUp(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=1,resizable=1,width=800,height=600,left = 0,top = 0');");}
function empty(mixed_var){var key;if(mixed_var===""||mixed_var===0||mixed_var==="0"||mixed_var===null||mixed_var===false||mixed_var===undefined){return true;}
if(typeof mixed_var=='object'){for(key in mixed_var){return false;}
return true;}
return false;}
function remove_item(model,id,item_container){if(confirm('Are you sure you want to remove this item?')){new Ajax.Request('/'+model+'/delete/'+id);if(!empty(item_container)){$(item_container).hide();}}}
var Cufon=(function(){var L=function(){return L.replace.apply(null,arguments)};var W=L.DOM={ready:(function(){var b=false,d={loaded:1,complete:1};var a=[],c=function(){if(b){return}b=true;for(var e;e=a.shift();e()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",c,false);window.addEventListener("pageshow",c,false)}if(!window.opera&&document.readyState){(function(){d[document.readyState]?c():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");c()}catch(f){setTimeout(arguments.callee,1)}})()}P(window,"load",c);return function(e){if(!arguments.length){c()}else{b?e():a.push(e)}}})()};var M=L.CSS={Size:function(b,a){this.value=parseFloat(b);this.unit=String(b).match(/[a-z%]*$/)[0]||"px";this.convert=function(c){return c/a*this.value};this.convertFrom=function(c){return c/this.value*a};this.toString=function(){return this.value+this.unit}},color:I(function(b){var a={};a.color=b.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(d,c,e){a.opacity=parseFloat(e);return"rgb("+c+")"});return a}),getStyle:function(b){var a=document.defaultView;if(a&&a.getComputedStyle){return new A(a.getComputedStyle(b,null))}if(b.currentStyle){return new A(b.currentStyle)}return new A(b.style)},gradient:I(function(e){var f={id:e,type:e.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},b=e.substr(e.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var d=0,a=b.length,c;d<a;++d){c=b[d].split("=",2).reverse();f.stops.push([c[1]||d/(a-1),c[0]])}return f}),quotedList:I(function(d){var c=[],b=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,a;while(a=b.exec(d)){c.push(a[3]||a[1])}return c}),recognizesMedia:I(function(d){var c=document.createElement("style"),b,a;c.type="text/css";c.media=d;b=F("head")[0];b.insertBefore(c,b.firstChild);a=!!(c.sheet||c.styleSheet);b.removeChild(c);return a}),supports:function(c,b){var a=document.createElement("span").style;if(a[c]===undefined){return false}a[c]=b;return a[c]===b},textAlign:function(d,c,a,b){if(c.get("textAlign")=="right"){if(a>0){d=" "+d}}else{if(a<b-1){d+=" "}}return d},textDecoration:function(f,e){if(!e){e=this.getStyle(f)}var b={underline:null,overline:null,"line-through":null};for(var a=f;a.parentNode&&a.parentNode.nodeType==1;){var d=true;for(var c in b){if(!J(b,c)||b[c]){continue}if(e.get("textDecoration").indexOf(c)!=-1){b[c]=e.get("color")}d=false}if(d){break}e=this.getStyle(a=a.parentNode)}return b},textShadow:I(function(e){if(e=="none"){return null}var d=[],f={},a,b=0;var c=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(a=c.exec(e)){if(a[0]==","){d.push(f);f={},b=0}else{if(a[1]){f.color=a[1]}else{f[["offX","offY","blur"][b++]]=a[2]}}}d.push(f);return d}),textTransform:function(b,a){return b[{uppercase:"toUpperCase",lowercase:"toLowerCase"}[a.get("textTransform")]||"toString"]()},whiteSpace:(function(){var a={inline:1,"inline-block":1,"run-in":1};return function(d,b,c){if(a[b.get("display")]){return d}if(!c.previousSibling){d=d.replace(/^\s+/,"")}if(!c.nextSibling){d=d.replace(/\s+$/,"")}return d}})()};M.ready=(function(){var c=!M.recognizesMedia("all"),b=false;var a=[],e=function(){c=true;for(var h;h=a.shift();h()){}};var f=F("link"),g={stylesheet:1};function d(){var j,h,k;for(h=0;k=f[h];++h){if(k.disabled||!g[k.rel.toLowerCase()]||!M.recognizesMedia(k.media||"screen")){continue}j=k.sheet||k.styleSheet;if(!j||j.disabled){return false}}return true}W.ready(function(){if(!b){b=M.getStyle(document.body).isUsable()}if(c||(b&&d())){e()}else{setTimeout(arguments.callee,10)}});return function(h){if(c){h()}else{a.push(h)}}})();function R(b){var a=this.face=b.face;this.glyphs=b.glyphs;this.w=b.w;this.baseSize=parseInt(a["units-per-em"],10);this.family=a["font-family"].toLowerCase();this.weight=a["font-weight"];this.style=a["font-style"]||"normal";this.viewBox=(function(){var d=a.bbox.split(/\s+/);var c={minX:parseInt(d[0],10),minY:parseInt(d[1],10),maxX:parseInt(d[2],10),maxY:parseInt(d[3],10)};c.width=c.maxX-c.minX,c.height=c.maxY-c.minY;c.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return c})();this.ascent=-parseInt(a.ascent,10);this.descent=-parseInt(a.descent,10);this.height=-this.ascent+this.descent}function E(){var b={},a={oblique:"italic",italic:"oblique"};this.add=function(c){(b[c.style]||(b[c.style]={}))[c.weight]=c};this.get=function(g,h){var f=b[g]||b[a[g]]||b.normal||b.italic||b.oblique;if(!f){return null}h={normal:400,bold:700}[h]||parseInt(h,10);if(f[h]){return f[h]}var d={1:1,99:0}[h%100],j=[],e,c;if(d===undefined){d=h>400}if(h==500){h=400}for(var i in f){if(!J(f,i)){continue}i=parseInt(i,10);if(!e||i<e){e=i}if(!c||i>c){c=i}j.push(i)}if(h<e){h=e}if(h>c){h=c}j.sort(function(l,k){return(d?(l>h&&k>h)?l<k:l>k:(l<h&&k<h)?l>k:l<k)?-1:1});return f[j[0]]}}function Q(){function c(e,f){if(e.contains){return e.contains(f)}return e.compareDocumentPosition(f)&16}function a(g){var f=g.relatedTarget;if(!f||c(this,f)){return}b(this)}function d(f){b(this)}function b(e){setTimeout(function(){L.replace(e,D.get(e).options,true)},10)}this.attach=function(e){if(e.onmouseenter===undefined){P(e,"mouseover",a);P(e,"mouseout",a)}else{P(e,"mouseenter",d);P(e,"mouseleave",d)}}}function T(){var b=[],c={};function a(g){var d=[],f;for(var e=0;f=g[e];++e){d[e]=b[c[f]]}return d}this.add=function(e,d){c[e]=b.push(d)-1};this.repeat=function(){var d=arguments.length?a(arguments):b,e;for(var f=0;e=d[f++];){L.replace(e[0],e[1],true)}}}function Z(){var c={},a=0;function b(d){return d.cufid||(d.cufid=++a)}this.get=function(d){var e=b(d);return c[e]||(c[e]={})}}function A(a){var c={},b={};this.extend=function(d){for(var e in d){if(J(d,e)){c[e]=d[e]}}return this};this.get=function(d){return c[d]!=undefined?c[d]:a[d]};this.getSize=function(e,d){return b[e]||(b[e]=new M.Size(this.get(e),d))};this.isUsable=function(){return!!a}}function P(b,a,c){if(b.addEventListener){b.addEventListener(a,c,false)}else{if(b.attachEvent){b.attachEvent("on"+a,function(){return c.call(b,window.event)})}}}function U(b,a){var c=D.get(b);if(c.options){return b}if(a.hover&&a.hoverables[b.nodeName.toLowerCase()]){B.attach(b)}c.options=a;return b}function I(a){var b={};return function(c){if(!J(b,c)){b[c]=a.apply(null,arguments)}return b[c]}}function C(f,e){if(!e){e=M.getStyle(f)}var b=M.quotedList(e.get("fontFamily").toLowerCase()),d;for(var c=0,a=b.length;c<a;++c){d=b[c];if(H[d]){return H[d].get(e.get("fontStyle"),e.get("fontWeight"))}}return null}function F(a){return document.getElementsByTagName(a)}function J(b,a){return b.hasOwnProperty(a)}function G(){var a={},c,e;for(var d=0,b=arguments.length;c=arguments[d],d<b;++d){for(e in c){if(J(c,e)){a[e]=c[e]}}}return a}function N(d,n,b,o,e,c){var m=o.separate;if(m=="none"){return Y[o.engine].apply(null,arguments)}var k=document.createDocumentFragment(),g;var h=n.split(O[m]),a=(m=="words");if(a&&S){if(/^\s/.test(n)){h.unshift("")}if(/\s$/.test(n)){h.push("")}}for(var j=0,f=h.length;j<f;++j){g=Y[o.engine](d,a?M.textAlign(h[j],b,j,f):h[j],b,o,e,c,j<f-1);if(g){k.appendChild(g)}}return k}function K(b,j){var c,a,d,g,f,i;for(d=U(b,j).firstChild;d;d=f){g=d.nodeType;f=d.nextSibling;i=false;if(g==1){if(!d.firstChild){continue}if(!/cufon/.test(d.className)){arguments.callee(d,j);continue}else{i=true}}else{if(g!=3){continue}}if(!a){a=M.getStyle(b).extend(j)}if(!c){c=C(b,a)}if(!c){continue}if(i){Y[j.engine](c,null,a,j,d,b);continue}var h=M.whiteSpace(d.data,a,d);if(h===""){continue}var e=N(c,h,a,j,d,b);if(e){d.parentNode.replaceChild(e,d)}else{d.parentNode.removeChild(d)}}}var S=" ".split(/\s+/).length==0;var D=new Z();var B=new Q();var X=new T();var Y={},H={},V={enableTextDecoration:false,engine:null,hover:false,hoverables:{a:true},printable:true,selector:(window.Sizzle||(window.jQuery&&function(a){return jQuery(a)})||(window.dojo&&dojo.query)||(window.$$&&function(a){return $$(a)})||(window.$&&function(a){return $(a)})||(document.querySelectorAll&&function(a){return document.querySelectorAll(a)})||F),separate:"words",textShadow:"none"};var O={words:/[^\S\u00a0]+/,characters:""};L.now=function(){W.ready();return L};L.refresh=function(){X.repeat.apply(X,arguments);return L};L.registerEngine=function(b,a){if(!a){return L}Y[b]=a;return L.set("engine",b)};L.registerFont=function(c){var a=new R(c),b=a.family;if(!H[b]){H[b]=new E()}H[b].add(a);return L.set("fontFamily",'"'+b+'"')};L.replace=function(c,b,a){b=G(V,b);if(!b.engine){return L}if(typeof b.textShadow=="string"){b.textShadow=M.textShadow(b.textShadow)}if(typeof b.color=="string"&&/^-/.test(b.color)){b.textGradient=M.gradient(b.color)}if(!a){X.add(c,arguments)}if(c.nodeType||typeof c=="string"){c=[c]}M.ready(function(){for(var e=0,d=c.length;e<d;++e){var f=c[e];if(typeof f=="string"){L.replace(b.selector(f),b,true)}else{K(f,b)}}});return L};L.set=function(a,b){V[a]=b;return L};return L})();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-canvas{text-indent:0;}@media screen,projection{.cufon-canvas{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(E?"":"font-size:1px;line-height:1px;")+"}.cufon-canvas .cufon-alt{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;}"+(A?".cufon-canvas canvas{position:relative;}":".cufon-canvas canvas{position:absolute;}")+"}@media print{.cufon-canvas{padding:0;}.cufon-canvas canvas{display:none;}.cufon-canvas .cufon-alt{display:inline;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(F);function D(O,H){var M=0,L=0;var G=[],N=/([mrvxe])([^a-z]*)/g,J;generate:for(var I=0;J=N.exec(O);++I){var K=J[2].split(",");switch(J[1]){case"v":G[I]={m:"bezierCurveTo",a:[M+~~K[0],L+~~K[1],M+~~K[2],L+~~K[3],M+=~~K[4],L+=~~K[5]]};break;case"r":G[I]={m:"lineTo",a:[M+=~~K[0],L+=~~K[1]]};break;case"m":G[I]={m:"moveTo",a:[M=~~K[0],L=~~K[1]]};break;case"x":G[I]={m:"closePath"};break;case"e":break generate}H[G[I].m].apply(H,G[I].a)}return G}function C(K,J){for(var I=0,H=K.length;I<H;++I){var G=K[I];J[G.m].apply(J,G.a)}}return function(AD,Z,u,V,d,AE){var I=(Z===null);if(I){Z=d.alt}var b=AD.viewBox;var K=u.getSize("fontSize",AD.baseSize);var s=u.get("letterSpacing");s=(s=="normal")?0:K.convertFrom(parseInt(s,10));var c=0,t=0,r=0,X=0;var a=V.textShadow,p=[];if(a){for(var AC=a.length;AC--;){var h=a[AC];var o=K.convertFrom(parseFloat(h.offX));var n=K.convertFrom(parseFloat(h.offY));p[AC]=[o,n];if(n<c){c=n}if(o>t){t=o}if(n>r){r=n}if(o<X){X=o}}}var AH=Cufon.CSS.textTransform(Z,u).split(""),T;var J=AD.glyphs,W,M,w;var G=0,P,f=[];for(var AC=0,AA=0,v=AH.length;AC<v;++AC){W=J[T=AH[AC]]||AD.missingGlyph;if(!W){continue}if(M){G-=w=M[T]||0;f[AA-1]-=w}G+=P=f[AA++]=~~(W.w||AD.w)+s;M=W.k}if(P===undefined){return null}t+=b.width-P;X+=b.minX;var U,L;if(I){U=d;L=d.firstChild}else{U=document.createElement("span");U.className="cufon cufon-canvas";U.alt=Z;L=document.createElement("canvas");U.appendChild(L);if(V.printable){var z=document.createElement("span");z.className="cufon-alt";z.appendChild(document.createTextNode(Z));U.appendChild(z)}}var AI=U.style;var m=L.style;var H=K.convert(b.height);var AG=Math.ceil(H);var q=AG/H;L.width=Math.ceil(K.convert(G*q+t-X));L.height=Math.ceil(K.convert(b.height-c+r));c+=b.minY;m.top=Math.round(K.convert(c-AD.ascent))+"px";m.left=Math.round(K.convert(X))+"px";var S=Math.ceil(K.convert(G*q))+"px";if(A){AI.width=S;AI.height=K.convert(AD.height)+"px"}else{AI.paddingLeft=S;AI.paddingBottom=(K.convert(AD.height)-1)+"px"}var AF=L.getContext("2d"),e=H/b.height;AF.scale(e,e*q);AF.translate(-X,-c);AF.lineWidth=AD.face["underline-thickness"];AF.save();function N(i,g){AF.strokeStyle=g;AF.beginPath();AF.moveTo(0,i);AF.lineTo(G,i);AF.stroke()}var O=V.enableTextDecoration?Cufon.CSS.textDecoration(AE,u):{};if(O.underline){N(-AD.face["underline-position"],O.underline)}if(O.overline){N(AD.ascent,O.overline)}function AB(){AF.scale(q,1);for(var x=0,k=0,g=AH.length;x<g;++x){var y=J[AH[x]]||AD.missingGlyph;if(!y){continue}if(y.d){AF.beginPath();if(y.code){C(y.code,AF)}else{y.code=D("m"+y.d,AF)}AF.fill()}AF.translate(f[k++],0)}AF.restore()}if(a){for(var AC=a.length;AC--;){var h=a[AC];AF.save();AF.fillStyle=h.color;AF.translate.apply(AF,p[AC]);AB()}}var R=V.textGradient;if(R){var Y=R.stops,Q=AF.createLinearGradient(0,b.minY,0,b.maxY);for(var AC=0,v=Y.length;AC<v;++AC){Q.addColorStop.apply(Q,Y[AC])}AF.fillStyle=Q}else{AF.fillStyle=u.get("color")}AB();if(O["line-through"]){N(-AD.descent,O["line-through"])}return U}})());Cufon.registerEngine("vml",(function(){if(!document.namespaces){return}if(document.namespaces.cvml==null){document.namespaces.add("cvml","urn:schemas-microsoft-com:vml")}var B=document.createElement("cvml:shape");B.style.behavior="url(#default#VML)";if(!B.coordsize){return}B=null;document.write(('<style type="text/css">.cufon-vml-canvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}.cufon-vml-canvas{position:absolute;text-align:left;}.cufon-vml{display:inline-block;position:relative;vertical-align:middle;}.cufon-vml .cufon-alt{position:absolute;left:-10000in;font-size:1px;}a .cufon-vml{cursor:pointer}}@media print{.cufon-vml *{display:none;}.cufon-vml .cufon-alt{display:inline;}}</style>').replace(/;/g,"!important;"));function C(F,G){return A(F,/(?:em|ex|%)$/i.test(G)?"1em":G)}function A(I,J){if(/px$/i.test(J)){return parseFloat(J)}var H=I.style.left,G=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;I.style.left=J;var F=I.style.pixelLeft;I.style.left=H;I.runtimeStyle.left=G;return F}var E={};function D(K){var L=K.id;if(!E[L]){var I=K.stops,J=document.createElement("cvml:fill"),F=[];J.type="gradient";J.angle=180;J.focus="0";J.method="sigma";J.color=I[0][1];for(var H=1,G=I.length-1;H<G;++H){F.push(I[H][0]*100+"% "+I[H][1])}J.colors=F.join(",");J.color2=I[G][1];E[L]=J}return E[L]}return function(AB,b,v,Y,f,AC,t){var I=(b===null);if(I){b=f.alt}var d=AB.viewBox;var K=v.computedFontSize||(v.computedFontSize=new Cufon.CSS.Size(C(AC,v.get("fontSize"))+"px",AB.baseSize));var s=v.computedLSpacing;if(s==undefined){s=v.get("letterSpacing");v.computedLSpacing=s=(s=="normal")?0:~~K.convertFrom(A(AC,s))}var V,L;if(I){V=f;L=f.firstChild}else{V=document.createElement("span");V.className="cufon cufon-vml";V.alt=b;L=document.createElement("span");L.className="cufon-vml-canvas";V.appendChild(L);if(Y.printable){var y=document.createElement("span");y.className="cufon-alt";y.appendChild(document.createTextNode(b));V.appendChild(y)}if(!t){V.appendChild(document.createElement("cvml:shape"))}}var AH=V.style;var n=L.style;var G=K.convert(d.height),AE=Math.ceil(G);var r=AE/G;var q=d.minX,p=d.minY;n.height=AE;n.top=Math.round(K.convert(p-AB.ascent));n.left=Math.round(K.convert(q));AH.height=K.convert(AB.height)+"px";var P=Y.enableTextDecoration?Cufon.CSS.textDecoration(AC,v):{};var a=v.get("color");var AG=Cufon.CSS.textTransform(b,v).split(""),U;var J=AB.glyphs,Z,M,x;var F=0,g=[],o=0,Q;var S,c=Y.textShadow;for(var AA=0,z=0,w=AG.length;AA<w;++AA){Z=J[U=AG[AA]]||AB.missingGlyph;if(!Z){continue}if(M){F-=x=M[U]||0;g[z-1]-=x}F+=Q=g[z++]=~~(Z.w||AB.w)+s;M=Z.k}if(Q===undefined){return null}var T=-q+F+(d.width-Q);var AF=K.convert(T*r),u=Math.round(AF);var m=T+","+d.height,H;var e="r"+m+"ns";var R=Y.textGradient&&D(Y.textGradient);for(AA=0,z=0;AA<w;++AA){Z=J[AG[AA]]||AB.missingGlyph;if(!Z){continue}if(I){S=L.childNodes[z];while(S.firstChild){S.removeChild(S.firstChild)}}else{S=document.createElement("cvml:shape");L.appendChild(S)}S.stroked="f";S.coordsize=m;S.coordorigin=H=(q-o)+","+p;S.path=(Z.d?"m"+Z.d+"xe":"")+"m"+H+e;S.fillcolor=a;if(R){S.appendChild(R.cloneNode(false))}var AD=S.style;AD.width=u;AD.height=AE;if(c){var O=c[0],N=c[1];var X=Cufon.CSS.color(O.color),W;var h=document.createElement("cvml:shadow");h.on="t";h.color=X.color;h.offset=O.offX+","+O.offY;if(N){W=Cufon.CSS.color(N.color);h.type="double";h.color2=W.color;h.offset2=N.offX+","+N.offY}h.opacity=X.opacity||(W&&W.opacity)||1;S.appendChild(h)}o+=g[z++]}AH.width=Math.max(Math.ceil(K.convert(F*r)),0);return V}})());Cufon.registerFont({"w":59,"face":{"font-family":"Agency FB","font-weight":400,"font-stretch":"condensed","units-per-em":"360","panose-1":"2 11 5 3 2 2 2 2 2 4","ascent":"288","descent":"-72","bbox":"-5 -297 226 72","underline-thickness":"17.9297","underline-position":"-36.7383","unicode-range":"U+0020-U+007E"},"glyphs":{" ":{"w":70},"!":{"d":"49,-275r-5,213r-16,0r-6,-213r27,0xm49,0r-26,0r0,-31r26,0r0,31","w":71},"\"":{"d":"93,-275r-5,86r-15,0r-5,-86r25,0xm43,-275r-6,86r-15,0r-5,-86r26,0","w":110},"#":{"d":"179,-180r-35,0r-14,85r36,0r0,20r-40,0r-13,75r-23,0r14,-75r-42,0r-13,75r-23,0r14,-75r-31,0r0,-20r34,0r15,-85r-36,0r0,-20r40,0r13,-75r22,0r-14,75r43,0r13,-75r22,0r-13,75r31,0r0,20xm122,-180r-42,0r-15,85r42,0","w":187},"$":{"d":"128,-83v-3,40,16,93,-43,81r0,24r-21,0r0,-24v-20,3,-43,0,-43,-19r0,-68r24,0r0,67r19,0r0,-114v-14,-21,-38,-36,-43,-64v1,-39,-13,-85,43,-73r0,-24r21,0r0,24v20,-3,43,0,43,19r0,62r-24,0r0,-61r-19,0r0,106v13,21,38,36,43,64xm64,-171r0,-82r-19,0r0,58xm104,-22r0,-66r-19,-23r0,89r19,0","w":149},"%":{"d":"203,-275r-151,275v-6,-1,-16,2,-20,-1r151,-274r20,0xm157,-140v27,2,69,-9,69,18r0,104v-1,27,-43,16,-69,18v-8,0,-17,-11,-17,-18r0,-104v0,-7,9,-18,17,-18xm204,-20r0,-99r-42,0r0,99r42,0xm27,-275v27,2,69,-10,69,18r0,104v-1,27,-42,16,-69,18v-8,1,-17,-11,-16,-18r0,-104v-1,-7,8,-19,16,-18xm75,-155r0,-100r-43,0r0,100r43,0","w":241},"&":{"d":"41,-275v32,4,89,-14,89,19r0,58r-24,0r0,-55r-60,0r0,82r24,17r79,0r0,21r-20,0r0,133r-89,0v-11,0,-20,-8,-19,-20r0,-93v0,-18,18,-22,29,-31v-11,-8,-28,-13,-28,-30r0,-82v-1,-10,8,-20,19,-19xm105,-22r0,-111r-35,0r-25,16r0,95r60,0","w":156},"'":{"d":"43,-275r-6,86r-15,0r-5,-86r26,0"},"(":{"d":"83,-275v-51,83,-53,228,0,310r-21,0v-58,-92,-59,-218,0,-310r21,0","w":94},")":{"d":"12,35v52,-82,52,-228,0,-310r21,0v58,92,57,218,0,310r-21,0","w":94},"*":{"d":"126,-201r-12,19r-36,-27r4,46r-22,0r5,-46r-37,27r-11,-19r42,-18r-42,-18r11,-19r37,27r-5,-46r22,0r-4,46r36,-27r12,19r-43,18","w":142},"+":{"d":"135,-111r-50,0r0,50r-22,0r0,-50r-51,0r0,-20r51,0r0,-50r22,0r0,50r50,0r0,20","w":147},",":{"d":"47,-31r-16,51r-17,0r6,-51r27,0"},"-":{"d":"89,-94r-72,0r0,-22r72,0r0,22","w":106},"\u2010":{"d":"89,-94r-72,0r0,-22r72,0r0,22","w":106},".":{"d":"43,0r-26,0r0,-31r26,0r0,31"},"\/":{"d":"148,-275r-117,275v-7,-1,-18,2,-23,-1r116,-274r24,0","w":155},"0":{"d":"41,-275v33,5,93,-14,93,19r0,236v-2,35,-60,16,-93,20v-11,1,-20,-8,-19,-20r0,-236v0,-10,8,-20,19,-19xm110,-22r0,-231r-64,0r0,231r64,0","w":156},"1":{"d":"49,0r-24,0r0,-191v-3,-1,-9,1,-11,-1r16,-83r19,0r0,275","w":73},"2":{"d":"38,-275v31,0,86,-12,86,19v0,31,4,60,-7,83r-72,151r79,0r0,22r-109,0r0,-13r84,-175r0,-65r-56,0r0,61r-24,0v4,-31,-13,-83,19,-83","w":140},"3":{"d":"42,-275v32,0,89,-14,89,19v0,31,10,74,-10,88r-33,23v15,14,42,19,44,44v-6,35,17,97,-20,101v-32,-5,-90,15,-90,-20r0,-69r24,0r0,67r61,0r0,-84r-48,-36r0,-6r48,-36r0,-69r-60,0r0,61r-25,0v4,-31,-13,-83,20,-83","w":151},"4":{"d":"129,-72r-21,0r0,72r-23,0r0,-72r-77,0r0,-12r66,-191v7,1,18,-2,23,1r-63,182r51,0r0,-100r23,0r0,100r21,0r0,20","w":137},"5":{"d":"46,-173v30,3,82,-12,82,20r0,133v-1,33,-56,20,-87,20v-35,0,-15,-57,-20,-89r25,0r0,67r57,0r0,-129r-81,0r3,-124r101,0r0,22r-77,0","w":148},"6":{"d":"46,-152v32,4,85,-14,85,20r0,112v-1,35,-58,16,-90,20v-11,1,-20,-8,-19,-20r0,-236v2,-33,57,-19,89,-19v32,0,15,51,19,80r-24,0r0,-58r-60,0r0,101xm107,-22r0,-108r-61,0r0,108r61,0","w":152},"7":{"d":"122,-275v-13,98,-41,182,-59,275r-25,0r58,-253r-59,0r0,40r-24,0r0,-62r109,0","w":130},"8":{"d":"41,-275v33,4,91,-14,91,19v0,32,9,78,-9,96r-26,16v12,11,35,14,36,35r0,89v-2,34,-60,17,-92,20v-13,1,-20,-9,-20,-20v0,-35,-10,-87,9,-107r27,-17v-12,-10,-35,-13,-35,-34v0,-34,-15,-93,19,-97xm108,-175r0,-78r-62,0r0,78r31,21xm108,-22r0,-91r-31,-20r-31,20r0,91r62,0","w":155},"9":{"d":"40,-275v32,4,90,-14,90,19r0,236v-1,34,-56,20,-88,20v-33,0,-16,-50,-20,-80r24,0r0,58r59,0r0,-101v-31,-4,-84,14,-84,-20r0,-113v0,-10,8,-20,19,-19xm105,-145r0,-108r-60,0r0,108r60,0","w":152},":":{"d":"43,-119r-26,0r0,-31r26,0r0,31xm43,0r-26,0r0,-31r26,0r0,31"},";":{"d":"43,-119r-26,0r0,-31r26,0r0,31xm44,-31r-16,51r-16,0r5,-51r27,0"},"<":{"d":"103,-67v-1,7,2,18,-1,24r-89,-66r0,-12r90,-67r0,25r-66,48","w":122},"=":{"d":"141,-133r-123,0r0,-21r123,0r0,21xm141,-69r-123,0r0,-21r123,0r0,21","w":158},">":{"d":"110,-109r-90,66r0,-24r65,-48r-65,-48v1,-8,-3,-21,2,-25r88,67r0,12","w":122},"?":{"d":"36,-275v31,0,85,-12,85,19v0,28,6,63,-6,81r-35,55r0,58r-25,0v1,-24,-6,-56,5,-72r37,-54r0,-65r-57,0r0,61r-24,0v4,-31,-13,-83,20,-83xm81,0r-27,0r0,-31r27,0r0,31","w":137},"@":{"d":"181,0r-148,0v-7,0,-11,-4,-11,-12r0,-251v0,-8,4,-12,11,-12r137,0v7,0,11,4,11,12r0,191v0,7,-4,11,-11,11r-90,0v-8,0,-12,-4,-12,-12r0,-65v0,-20,31,-9,49,-12r0,-50r-30,0r0,29r-18,0v2,-18,-7,-46,13,-45v20,1,52,-8,53,13r0,129r33,0r0,-189r-133,0r0,251r146,0r0,12xm117,-77r0,-58r-31,0r0,58r31,0","w":203},"A":{"d":"133,0r-24,0r-10,-61r-55,0r-9,61v-7,-1,-18,2,-24,-1r49,-275r24,0xm96,-83r-24,-149r-25,149r49,0","w":143},"B":{"d":"112,-275v35,4,15,66,19,101v2,17,-18,23,-29,30v11,8,30,12,30,31r0,93v1,12,-8,20,-19,20r-91,0r0,-275r90,0xm107,-171r0,-82r-61,0r0,99r36,0xm108,-22r0,-95r-25,-16r-37,0r0,111r62,0","w":152},"C":{"d":"41,-275v32,4,91,-14,91,19r0,64r-24,0r0,-61r-62,0r0,231r62,0r0,-67r24,0v-4,32,14,89,-20,89v-33,0,-90,15,-90,-20r0,-236v0,-10,8,-20,19,-19","w":152},"D":{"d":"22,-275v55,-2,113,-5,113,50r0,175v2,54,-57,52,-113,50r0,-275xm46,-22v33,2,66,2,65,-30r0,-171v1,-31,-32,-32,-65,-30r0,231","w":156},"E":{"d":"112,0r-90,0r0,-275r89,0r0,22r-65,0r0,102r59,0r0,22r-59,0r0,107r66,0r0,22","w":128},"F":{"d":"111,-253r-65,0r0,104r59,0r0,22r-59,0r0,127r-24,0r0,-275r89,0r0,22","w":122},"G":{"d":"41,-275v33,4,92,-14,92,19r0,64r-24,0r0,-61r-63,0r0,231r63,0r0,-95r-30,0r0,-21r54,0r0,118v-2,35,-59,16,-92,20v-11,1,-20,-8,-19,-20r0,-236v0,-10,8,-20,19,-19","w":154},"H":{"d":"137,0r-24,0r0,-132r-67,0r0,132r-24,0r0,-275r24,0r0,121r67,0r0,-121r24,0r0,275","w":159},"I":{"d":"48,0r-25,0r0,-275r25,0r0,275","w":71},"J":{"d":"99,0v-31,-3,-82,13,-83,-20r0,-69r24,0r0,67r54,0r0,-253r25,0r0,255v0,11,-7,21,-20,20","w":140},"K":{"d":"137,0r-27,0r-64,-132r0,132r-24,0r0,-275r24,0r0,123r58,-123v8,1,21,-2,27,1r-63,131","w":138},"L":{"d":"110,0r-88,0r0,-275r24,0r0,253r64,0r0,22","w":121},"M":{"d":"158,0r-23,0r2,-196r-45,170r-4,0r-45,-170v5,63,1,130,2,196r-23,0r0,-275r23,0r45,187r45,-187r23,0r0,275","w":180},"N":{"d":"135,0r-17,0r-73,-202r0,202r-23,0r0,-275r18,0r72,199r0,-199r23,0r0,275","w":157},"O":{"d":"41,-275v34,5,97,-15,97,19r0,236v-2,36,-63,16,-97,20v-11,1,-20,-8,-19,-20r0,-236v0,-10,8,-20,19,-19xm114,-22r0,-231r-68,0r0,231r68,0","w":160},"P":{"d":"111,-275v12,0,20,9,20,19r0,127v-2,33,-54,16,-85,20r0,109r-24,0r0,-275r89,0xm107,-131r0,-122r-61,0r0,122r61,0","w":147},"Q":{"d":"41,-275v34,4,97,-15,97,19r0,217r19,15v-1,7,3,20,-2,24r-18,-14v-10,28,-64,10,-96,14v-11,1,-20,-8,-19,-20r0,-236v0,-10,9,-20,19,-19xm114,-22v1,-27,-43,-25,-27,-59r27,23r0,-195r-68,0r0,231r68,0","w":162},"R":{"d":"114,-275v12,0,20,9,20,19r0,105v1,18,-20,22,-42,19r47,132r-26,0r-51,-147v7,-10,32,-3,47,-5r0,-101r-63,0r0,253r-24,0r0,-275r92,0","w":153},"S":{"d":"41,-275v31,4,88,-14,88,19r0,64r-24,0r0,-61r-60,0r0,58r77,91v14,19,7,55,7,84v0,34,-56,20,-88,20v-34,0,-15,-57,-20,-89r24,0r0,67r60,0r0,-65r-76,-92v-14,-16,-6,-50,-8,-77v0,-11,8,-20,20,-19","w":150},"T":{"d":"117,-253r-43,0r0,253r-24,0r0,-253r-43,0r0,-22r110,0r0,22","w":123},"U":{"d":"116,0v-34,-4,-94,15,-94,-20r0,-255r24,0r0,253r66,0r0,-253r24,0r0,255v0,12,-8,21,-20,20","w":158},"V":{"d":"129,-275r-47,276r-23,0r-48,-276r24,0r35,237r36,-237r23,0","w":140},"W":{"d":"187,-275r-38,276r-20,0r-30,-208r0,-16r-31,224r-20,0r-37,-276r24,0r24,218v6,-75,20,-145,29,-218r21,0r29,218r24,-218r25,0","w":197},"X":{"d":"131,0r-26,0r-36,-113r-37,113v-7,-1,-18,2,-24,-1r49,-140r-47,-134r26,0r33,104r34,-104v8,1,19,-2,25,1r-46,132","w":138},"Y":{"d":"133,-275r-51,168r0,107r-24,0v1,-57,3,-125,-17,-162r-33,-113r25,0r37,138r38,-138r25,0","w":140},"Z":{"d":"114,0r-105,0r0,-13r77,-240r-70,0r0,-22r98,0r0,13r-77,240r77,0r0,22","w":123},"[":{"d":"23,-256v-1,-27,40,-17,66,-19r0,22r-42,0r0,275r42,0r0,22v-27,-2,-67,9,-66,-20r0,-280","w":104},"\\":{"d":"148,0r-24,0r-116,-275r23,0","w":155},"]":{"d":"15,-275v27,2,67,-8,67,19r0,280v0,29,-40,18,-67,20r0,-22r43,0r0,-275r-43,0r0,-22","w":104},"^":{"d":"127,-178r-20,0r-35,-68r-36,68v-6,-1,-15,2,-19,-1r46,-96r18,0","w":143},"_":{"d":"130,72r-130,0r0,-19r130,0r0,19","w":129},"`":{"d":"110,-187v-3,3,-11,0,-16,1r-43,-41r33,0","w":143},"a":{"d":"116,0r-23,0r0,-5v-26,-1,-73,21,-75,-13v4,-30,-14,-82,20,-82r55,0r0,-52r-50,0r0,30r-23,0v0,-23,-5,-51,20,-49v29,3,76,-12,76,20r0,151xm93,-21r0,-61r-52,0r0,62","w":135},"b":{"d":"117,-153v0,57,23,153,-36,153r-62,0r0,-275r24,0r0,109v25,-1,74,-21,74,13xm94,-40r0,-110r-51,1r0,128v22,-1,51,7,51,-19","w":136},"c":{"d":"114,-59v-2,25,9,61,-20,59v-28,-2,-75,12,-75,-20r0,-131v0,-32,47,-17,75,-20v27,-3,19,30,20,54r-23,0r0,-33r-48,0r0,129r48,0r0,-38r23,0","w":132},"d":{"d":"18,-34v5,-53,-20,-136,37,-137r38,0r0,-104r23,0r0,275r-23,0r0,-5v-52,11,-66,9,-75,-29xm93,-21r0,-129v-23,1,-52,-6,-52,19r0,92v4,25,18,19,52,18","w":135},"e":{"d":"115,-51v0,23,5,53,-20,51v-29,-3,-76,12,-76,-20r0,-131v0,-32,47,-20,76,-20v33,0,16,52,20,81r-8,9r-65,0r0,61r50,0r0,-31r23,0xm92,-100r0,-52r-50,0r0,52r50,0","w":134},"f":{"d":"84,-255r-33,0r0,84r29,0r0,21r-29,0r0,150r-23,0r0,-150r-20,0r0,-21r20,0r0,-84v-2,-27,32,-19,56,-20r0,20","w":85},"g":{"d":"18,-37v3,-52,-19,-134,34,-135v2,0,16,2,41,6r0,-5r23,0r0,216v1,33,-47,17,-75,20v-20,2,-21,-21,-20,-43r23,0r0,23r49,0r0,-45v-39,3,-77,-1,-75,-37xm93,-21r0,-129v-35,-2,-52,-9,-52,18r0,92v-2,25,29,18,52,19","w":135},"h":{"d":"117,0r-23,0r0,-150r-51,1r0,149r-24,0r0,-275r24,0r0,109v25,-1,73,-21,74,13r0,153","w":136},"i":{"d":"44,-208r-24,0r0,-30r24,0r0,30xm44,0r-23,0r0,-171r23,0r0,171","w":64},"j":{"d":"44,-208r-24,0r0,-30r24,0r0,30xm44,45v2,24,-26,20,-49,20r0,-21r26,0r0,-215r23,0r0,216","w":64},"k":{"d":"115,0r-25,0r-47,-87r0,87r-24,0r0,-275r24,0r0,175r43,-71v8,1,20,-2,26,1r-50,75","w":120},"l":{"d":"44,0r-23,0r0,-275r23,0r0,275","w":64},"m":{"d":"191,0r-23,0r0,-150r-51,1r0,149r-23,0r0,-150r-51,1r0,149r-24,0r0,-171r24,0r0,5v23,0,54,-13,70,0v27,1,78,-22,78,13r0,153","w":209},"n":{"d":"117,0r-23,0r0,-150r-51,1r0,149r-24,0r0,-171r24,0r0,5v25,1,74,-21,74,13r0,153","w":136},"o":{"d":"117,-20v1,33,-49,20,-78,20v-13,0,-20,-7,-20,-20r0,-131v0,-33,50,-20,79,-20v13,0,19,7,19,20r0,131xm94,-21r0,-129r-51,0r0,129r51,0","w":136},"p":{"d":"117,-153v0,57,23,151,-36,153r-38,0r0,65r-24,0r0,-236r24,0r0,5v25,-1,74,-21,74,13xm94,-40r0,-110r-51,1r0,128v22,-1,51,7,51,-19","w":135},"q":{"d":"18,-37v3,-52,-19,-134,34,-135v2,0,16,2,41,6r0,-5r23,0r0,236r-23,0r0,-65v-39,3,-77,-1,-75,-37xm93,-21r0,-129v-35,-2,-52,-9,-52,18r0,92v-2,25,29,18,52,19","w":135},"r":{"d":"109,-115r-23,0r0,-35r-43,1r0,149r-24,0r0,-171r24,0r0,5v23,-1,65,-19,66,13r0,38","w":119},"s":{"d":"103,-71v13,18,17,73,-12,71v-28,-3,-74,12,-73,-20r0,-39r23,0r0,39r47,0r0,-34r-61,-50v-14,-11,-19,-69,11,-67v28,2,74,-12,73,20r0,34r-23,0r0,-34r-47,0r0,30","w":129},"t":{"d":"81,0v-23,-1,-53,7,-53,-20r0,-130r-21,0r0,-21r21,0r0,-53r23,0r0,53r30,0r0,21r-30,0r0,129r30,0r0,21","w":91},"u":{"d":"117,0r-23,0r0,-5v-26,-1,-75,21,-75,-13r0,-153r23,0r0,150r52,-1r0,-149r23,0r0,171","w":136},"v":{"d":"115,-171r-42,171r-21,0r-43,-171r24,0r30,135r29,-135r23,0","w":124},"w":{"d":"172,-171r-35,171r-21,0r-25,-130r-25,130r-21,0r-35,-171r22,0r24,132r25,-132r20,0r25,132r24,-132r22,0","w":181},"x":{"d":"112,0r-24,0r-29,-68r-29,68v-7,-1,-18,2,-23,-1r40,-87r-37,-83r23,0r27,63r27,-63v7,1,18,-2,23,1r-38,81","w":119},"y":{"d":"115,-171r-58,236r-23,0r18,-66r-43,-170r24,0r30,135r29,-135r23,0","w":124},"z":{"d":"101,0r-90,0r0,-11r62,-139r-55,0r0,-21r83,0r0,11r-63,139r63,0r0,21","w":115},"{":{"d":"41,-151v4,-50,-17,-124,36,-124r30,0r0,21v-20,-1,-44,0,-42,18v-3,34,8,79,-8,101r-18,14v10,8,26,16,26,33r0,93v-3,18,23,20,42,17r0,22v-36,3,-66,-3,-66,-36r0,-99v-9,-12,-26,-16,-30,-33","w":122},"|":{"d":"48,60r-23,0r0,-335r23,0r0,335","w":73},"}":{"d":"15,-275v37,-3,68,3,67,36r0,88v9,12,26,16,30,32r-30,28v-4,53,18,133,-36,135r-31,0r0,-22v19,2,43,2,43,-17v0,-37,-9,-87,8,-112r18,-14v-10,-9,-26,-16,-26,-34v0,-43,25,-110,-43,-99r0,-21","w":122},"~":{"d":"152,-133v1,28,5,65,-33,49r-66,-26r0,28r-23,0v2,-19,-7,-54,14,-52v32,3,57,20,85,29r0,-28r23,0","w":181},"\u00a0":{"w":70}}});Cufon.registerFont({"w":146,"face":{"font-family":"Agency FB","font-weight":700,"font-stretch":"condensed","units-per-em":"360","panose-1":"2 11 8 4 2 2 2 2 2 4","ascent":"288","descent":"-72","bbox":"-10 -297 227.067 72","underline-thickness":"21.0938","underline-position":"-35.1562","unicode-range":"U+0020-U+007E"},"glyphs":{" ":{"w":74},"!":{"d":"60,-275r-5,211r-33,0r-5,-211r43,0xm59,0r-41,0r0,-42r41,0r0,42","w":76},"\"":{"d":"111,-275r-8,86r-25,0r-7,-86r40,0xm53,-275r-8,86r-24,0r-8,-86r40,0","w":124},"#":{"d":"187,-172r-33,0r-11,70r32,0r0,33r-38,0r-11,69r-36,0r11,-69r-29,0r-11,69r-37,0r12,-69r-28,0r0,-33r33,0r11,-70r-31,0r0,-33r37,0r11,-70r36,0r-11,70r29,0r11,-70r37,0r-12,70r28,0r0,33xm118,-172r-29,0r-12,70r30,0","w":195},"$":{"d":"101,-272v24,-3,47,-1,47,24r0,60r-41,0r0,-51r-50,0r0,49r81,76v18,16,9,55,10,86v1,26,-20,26,-47,26r0,24r-39,0r0,-24v-26,0,-46,1,-46,-26r0,-63r41,0r0,55r50,0r0,-53r-82,-78v-16,-15,-6,-52,-9,-80v-2,-26,21,-28,46,-25r0,-25r39,0r0,25","w":164},"%":{"d":"203,-270r-147,270r-24,0r0,-5r148,-270r23,0r0,5xm227,-21v2,31,-41,21,-68,21v-14,0,-22,-7,-22,-21r0,-98v-1,-31,41,-21,69,-21v14,0,21,7,21,21r0,98xm198,-26r0,-88r-31,0r0,88r31,0xm98,-156v1,31,-41,21,-69,21v-14,0,-21,-7,-21,-21r0,-98v-2,-31,41,-21,68,-21v14,0,22,7,22,21r0,98xm68,-161r0,-88r-31,0r0,88r31,0","w":236},"&":{"d":"45,-144v-13,-8,-30,-13,-28,-34v3,-35,-15,-100,24,-97v39,3,109,-18,109,25r0,57r-40,0r0,-47r-53,0r0,66r19,13r92,0r0,35r-20,0r0,126r-107,0v-44,-1,-20,-71,-25,-109v-2,-20,18,-26,29,-35xm108,-35r0,-91r-33,0r-19,14r0,77r52,0","w":175},"'":{"d":"53,-275r-8,86r-24,0r-8,-86r40,0","w":66},"(":{"d":"100,35r-40,0v-60,-92,-60,-218,0,-310v12,2,32,-4,40,2v-56,95,-52,212,0,308","w":109},")":{"d":"50,-275v60,92,60,218,0,310v-13,-2,-32,4,-41,-2v57,-95,54,-212,0,-308r41,0","w":109},"*":{"d":"152,-191r-19,31r-36,-27r3,46r-35,0r3,-46r-36,27r-18,-31r42,-18r-42,-19r18,-30r36,25r-3,-45r35,0r-3,45r36,-25r19,30r-43,19","w":164},"+":{"d":"158,-103r-54,0r0,52r-37,0r0,-52r-54,0r0,-34r54,0r0,-53r37,0r0,53r54,0r0,34","w":170},",":{"d":"57,-42r-21,70r-26,0r5,-70r42,0","w":66},"-":{"d":"97,-88r-84,0r0,-36r84,0r0,36","w":110},"\u2010":{"d":"97,-88r-84,0r0,-36r84,0r0,36","w":110},".":{"d":"53,0r-40,0r0,-43r40,0r0,43","w":66},"\/":{"d":"153,-275r-109,275v-11,-2,-29,3,-37,-2r108,-273r38,0","w":159},"0":{"d":"152,-25v-2,44,-71,25,-111,25v-16,0,-24,-8,-24,-25r0,-225v1,-45,71,-25,110,-25v16,0,25,8,25,25r0,225xm111,-35r0,-205r-54,0r0,205r54,0","w":168},"1":{"d":"66,0r-40,0r0,-194v-6,-1,-19,4,-16,-6r21,-75r35,0r0,275","w":84},"2":{"d":"146,-250v0,32,4,59,-9,82r-76,132r84,0r0,36r-133,0r0,-25r93,-164r0,-51r-50,0r0,51r-40,0v4,-33,-14,-90,25,-86v38,4,106,-18,106,25","w":158},"3":{"d":"150,-102v-4,37,17,105,-25,102v-39,-3,-108,19,-108,-25r0,-64r40,0r0,54r53,0r0,-69r-51,-35r0,-9r51,-34r0,-58r-53,0r0,50r-40,0v3,-33,-13,-89,24,-85v39,4,109,-18,109,25v0,33,9,74,-14,90r-25,17v15,11,41,16,39,41","w":165},"4":{"d":"157,-52r-21,0r0,52r-39,0r0,-52r-91,0r0,-24r69,-199v13,1,30,-2,41,1r-64,187r45,0r0,-83r39,0r0,83r21,0r0,35","w":163},"5":{"d":"148,-25v0,44,-69,21,-107,25v-39,4,-21,-55,-25,-89r41,0r0,54r51,0r0,-106r-92,0r5,-134r125,0r0,36r-87,0r-3,63v34,4,93,-15,92,24r0,127","w":163},"6":{"d":"150,-25v-1,44,-70,25,-109,25v-16,0,-24,-8,-24,-25r0,-225v1,-44,69,-21,107,-25v38,-4,22,50,25,83r-40,0r0,-48r-52,0r0,83v35,4,94,-15,93,25r0,107xm110,-35r0,-87r-53,0r0,87r53,0","w":165},"7":{"d":"147,-249r-64,249r-42,0r62,-240r-53,0r0,40r-40,0r0,-75r137,0r0,26","w":155},"8":{"d":"117,-143v16,10,35,14,35,38v0,38,18,105,-25,105v-40,0,-111,19,-111,-25r0,-80v1,-24,19,-29,35,-38v-15,-8,-36,-14,-34,-36v3,-35,-15,-99,24,-96v40,3,111,-19,111,25r0,71v0,22,-20,28,-35,36xm111,-175r0,-65r-53,0r0,65r26,16xm111,-35r0,-76r-27,-15r-27,15r0,76r54,0","w":168},"9":{"d":"149,-25v-1,44,-69,21,-107,25v-38,4,-22,-50,-25,-83r40,0r0,48r52,0r0,-83v-35,-5,-94,16,-93,-25r0,-107v1,-44,69,-25,108,-25v17,0,25,8,25,25r0,225xm109,-153r0,-87r-53,0r0,87r53,0","w":165},":":{"d":"53,-112r-40,0r0,-43r40,0r0,43xm53,0r-40,0r0,-43r40,0r0,43","w":66},";":{"d":"53,-112r-40,0r0,-43r40,0r0,43xm55,-42r-20,70r-27,0r5,-70r42,0","w":66},"<":{"d":"116,-78v-2,13,4,33,-2,42r-102,-72r0,-21r104,-73r0,43r-61,40","w":130},"=":{"d":"154,-135r-140,0r0,-34r140,0r0,34xm154,-66r-140,0r0,-33r140,0r0,33","w":168},">":{"d":"120,-108v-36,23,-67,51,-105,72r0,-42r61,-41r-61,-40r0,-43v39,21,69,50,105,73r0,21","w":130},"?":{"d":"140,-250v-1,28,6,63,-7,80r-40,54r0,52r-40,0v2,-26,-5,-55,7,-71r40,-53r0,-53r-47,0r0,50r-40,0v3,-33,-13,-88,25,-84v37,4,103,-17,102,25xm94,0r-42,0r0,-42r42,0r0,42","w":152},"@":{"d":"194,0r-162,0v-11,0,-16,-5,-16,-16r0,-243v0,-11,5,-16,16,-16r146,0v10,0,16,5,16,16r0,183v0,11,-6,16,-16,16r-98,0v-30,-1,-13,-51,-16,-77v-3,-24,31,-14,52,-16r0,-39r-23,0r0,24r-27,0v2,-19,-7,-50,15,-48v23,2,63,-10,63,15r0,122r31,0r0,-178r-140,0r0,239r159,0r0,18xm116,-83r0,-47r-24,0r0,47r24,0","w":209},"A":{"d":"156,0r-41,0r-8,-52r-52,0r-8,52v-13,-1,-29,2,-40,-1r53,-274r43,0xm101,-88r-20,-124r-20,124r40,0","w":162},"B":{"d":"152,-107v-6,39,18,107,-26,107r-109,0r0,-275r109,0v40,0,19,61,24,96v-4,23,-6,21,-30,35v25,17,27,13,32,37xm109,-174r0,-66r-51,0r0,80r31,0xm110,-35r0,-78v-11,-10,-28,-15,-52,-13r0,91r52,0","w":167},"C":{"d":"152,-93v-4,35,14,97,-25,93v-39,-4,-110,19,-110,-25r0,-225v1,-45,71,-21,110,-25v39,-4,21,56,25,90r-41,0r0,-55r-53,0r0,205r53,0r0,-58r41,0","w":167},"D":{"d":"17,-275v62,1,137,-12,137,52r0,171v3,64,-75,52,-137,52r0,-275xm112,-59r0,-158v2,-27,-28,-23,-54,-23r0,205v26,0,54,4,54,-24","w":168},"E":{"d":"131,0r-114,0r0,-275r113,0r0,36r-72,0r0,81r62,0r0,35r-62,0r0,87r73,0r0,36","w":142},"F":{"d":"129,-239r-71,0r0,82r60,0r0,35r-60,0r0,122r-41,0r0,-275r112,0r0,36","w":135},"G":{"d":"153,-25v-2,44,-72,25,-112,25v-16,0,-24,-8,-24,-25r0,-225v1,-45,71,-20,110,-25v39,-5,23,51,26,84r-42,0r0,-49r-53,0r0,205r53,0r0,-77r-30,0r0,-35r72,0r0,122","w":168},"H":{"d":"155,0r-42,0r0,-123r-55,0r0,123r-41,0r0,-275r41,0r0,113r55,0r0,-113r42,0r0,275","w":171},"I":{"d":"58,0r-41,0r0,-275r41,0r0,275","w":75},"J":{"d":"140,-25v0,43,-66,22,-103,25v-40,4,-20,-58,-25,-93r41,0r0,58r46,0r0,-240r41,0r0,250","w":156},"K":{"d":"155,0r-45,0r-52,-123r0,123r-41,0r0,-275r41,0r0,116r45,-116v14,2,35,-4,45,2r-56,130","w":155},"L":{"d":"125,0r-108,0r0,-275r41,0r0,238r67,0r0,37","w":132},"M":{"d":"183,0r-40,0r0,-136v0,-7,1,-17,3,-30r-36,141r-21,0r-35,-141v5,55,1,109,2,166r-39,0r0,-275r38,0r44,152v0,2,0,6,1,12v10,-59,31,-109,44,-164r39,0r0,275","w":199},"N":{"d":"156,0r-36,0r-66,-173v8,53,1,115,3,173r-40,0r0,-275r36,0r65,170v-5,-54,-1,-113,-2,-170r40,0r0,275","w":172},"O":{"d":"155,-25v-1,45,-74,25,-114,25v-16,0,-24,-8,-24,-25r0,-225v1,-45,73,-25,113,-25v17,0,25,8,25,25r0,225xm114,-35r0,-205r-56,0r0,205r56,0","w":171},"P":{"d":"149,-125v1,40,-57,20,-91,25r0,100r-41,0r0,-275r107,0v17,0,25,8,25,25r0,125xm108,-135r0,-105r-50,0r0,105r50,0","w":162},"Q":{"d":"174,0v-10,-2,-13,-10,-21,-14v-15,28,-75,14,-112,14v-16,0,-24,-8,-24,-25r0,-225v1,-45,73,-25,113,-25v17,0,25,8,25,25r0,199r19,14r0,37xm114,-35v2,-19,-16,-18,-24,-28v2,-12,-3,-30,2,-38r22,16r0,-155r-56,0r0,205r56,0","w":177},"R":{"d":"150,-150v-1,23,-10,25,-38,25r45,125r-43,0r-45,-128r0,-25r41,0r0,-87r-52,0r0,240r-41,0r0,-275r109,0v16,0,24,8,24,25r0,100","w":165},"S":{"d":"148,-91v0,35,15,95,-25,91v-38,-4,-106,18,-107,-25r0,-66r41,0r0,56r50,0r0,-54r-82,-78v-17,-15,-9,-54,-9,-83v0,-44,69,-21,107,-25v39,-4,21,53,25,86r-41,0r0,-51r-50,0r0,49r82,78v6,6,9,13,9,22","w":164},"T":{"d":"136,-239r-45,0r0,239r-41,0r0,-239r-46,0r0,-36r132,0r0,36","w":140},"U":{"d":"154,-25v-1,45,-73,25,-113,25v-16,0,-24,-8,-24,-25r0,-250r41,0r0,240r55,0r0,-240r41,0r0,250","w":170},"V":{"d":"153,-275r-52,275r-41,0r-53,-275r42,0r30,189v1,8,1,8,1,23v6,-75,22,-141,32,-212r41,0","w":160},"W":{"d":"220,-275r-41,275r-40,0r-25,-156v0,-5,0,-14,-1,-25v-3,64,-18,121,-26,181r-40,0r-40,-275r41,0r23,188v3,-66,17,-126,25,-188r34,0r24,163v0,8,0,8,1,25r23,-188r42,0","w":226},"X":{"d":"154,0r-45,0r-30,-97r-30,97v-14,-1,-32,2,-44,-1r51,-140r-48,-134r44,0r27,90r28,-90v14,1,31,-2,43,1r-48,132","w":158},"Y":{"d":"59,-101r-54,-174r42,0r33,119r33,-119v13,1,31,-2,42,1r-55,173r0,101r-41,0r0,-101","w":159},"Z":{"d":"133,0r-126,0r0,-22r77,-216r-71,0r0,-37r120,0r0,24r-77,214r77,0r0,37","w":140},"[":{"d":"93,44v-31,-3,-76,11,-76,-24r0,-271v-2,-35,45,-21,76,-24r0,37r-36,0r0,245r36,0r0,37","w":105},"\\":{"d":"153,0r-38,0r-108,-275r37,0","w":159},"]":{"d":"90,20v2,36,-46,21,-77,24r0,-37r36,0r0,-245r-36,0r0,-37v31,3,77,-12,77,24r0,271","w":105},"^":{"d":"136,-178r-32,0r-29,-55r-29,55v-10,-2,-26,3,-32,-2r44,-95r35,0","w":150},"_":{"d":"143,72r-143,0r0,-31r143,0r0,31","w":142},"`":{"d":"121,-189r-29,0r-51,-48r50,0v9,17,22,30,30,48"},"a":{"d":"129,0r-39,0r0,-6v-27,1,-76,22,-76,-15v0,-32,-14,-86,22,-86r55,0r0,-41r-39,0r0,26r-36,0v1,-25,-6,-59,22,-56v33,3,90,-15,91,22r0,156xm91,-32r0,-48r-39,0r0,49","w":143},"b":{"d":"133,-157v0,58,25,157,-37,157r-82,0r0,-275r41,0r0,104v27,0,78,-22,78,14xm92,-47r0,-97r-37,1r0,110v16,-1,37,5,37,-14","w":147},"c":{"d":"129,-67v-2,28,10,70,-22,67v-34,-4,-92,15,-93,-22r0,-134v1,-37,60,-19,93,-22v31,-3,20,38,22,65r-39,0r0,-31r-36,0r0,111r36,0r0,-34r39,0","w":143},"d":{"d":"14,-32v7,-66,-30,-161,64,-146r14,0r0,-97r40,0r0,275r-40,0r0,-6v-52,11,-69,13,-78,-26xm92,-35r0,-109v-16,1,-38,-6,-38,13r0,85v4,19,12,13,38,11"},"e":{"d":"129,-59v-1,26,7,62,-22,59v-34,-4,-92,15,-93,-22r0,-134v1,-37,60,-22,93,-22v37,0,17,56,22,88r-11,11r-65,0r0,49r38,0r0,-29r38,0xm91,-105r0,-43r-38,0r0,43r38,0","w":143},"f":{"d":"92,-240r-29,0r0,62r26,0r0,35r-26,0r0,143r-40,0r0,-143r-18,0r0,-35r18,0v5,-34,-16,-97,22,-97r47,0r0,35","w":92},"g":{"d":"14,-37v5,-51,-23,-138,32,-141v5,0,21,2,46,7r0,-7r40,0r0,221v0,38,-59,18,-92,22v-28,3,-23,-26,-23,-51r39,0r0,22r36,0r0,-37v-39,2,-82,2,-78,-36xm92,-33r0,-110v-24,-2,-38,-7,-38,11r0,85v-2,19,21,13,38,14"},"h":{"d":"133,0r-41,0r0,-144r-37,1r0,143r-41,0r0,-275r41,0r0,104v27,0,78,-22,78,14r0,157","w":147},"i":{"d":"55,-203r-40,0r0,-42r40,0r0,42xm55,0r-40,0r0,-178r40,0r0,178","w":70},"j":{"d":"55,-203r-40,0r0,-42r40,0r0,42xm55,43v2,31,-38,20,-65,22r0,-34r25,0r0,-209r40,0r0,221","w":70},"k":{"d":"133,0r-43,0r-35,-81r0,81r-41,0r0,-275r41,0r0,165r31,-68v13,1,31,-2,42,1r-40,81","w":135},"l":{"d":"55,0r-40,0r0,-275r40,0r0,275","w":70},"m":{"d":"129,-170v28,-3,81,-23,81,13r0,157r-40,0r0,-144r-37,1r0,143r-41,0r0,-144r-37,1r0,143r-41,0r0,-178r41,0r0,7v22,-2,60,-16,74,1","w":224},"n":{"d":"133,0r-41,0r0,-144r-37,1r0,143r-41,0r0,-178r41,0r0,7v27,0,78,-22,78,14r0,157","w":147},"o":{"d":"131,-22v0,39,-60,22,-94,22v-15,0,-23,-7,-23,-22r0,-134v1,-37,61,-22,95,-22v15,0,22,8,22,22r0,134xm92,-33r0,-111r-38,0r0,111r38,0"},"p":{"d":"133,-157v0,68,32,176,-65,157r-13,0r0,65r-41,0r0,-243r41,0r0,7v27,0,78,-22,78,14xm92,-47r0,-97r-37,1r0,110v16,-1,37,5,37,-14"},"q":{"d":"14,-145v6,-40,30,-36,78,-26r0,-7r40,0r0,243r-40,0r0,-65v-39,2,-78,2,-78,-36r0,-109xm92,-33r0,-110v-26,-2,-34,-7,-38,11r0,85v-2,19,21,13,38,14"},"r":{"d":"55,-171v23,-3,71,-20,71,14r0,54r-40,0r0,-41r-31,1r0,143r-41,0r0,-178r41,0r0,7","w":134},"s":{"d":"126,-66v-2,27,9,69,-22,66v-33,-4,-90,15,-90,-22r0,-38r38,0r0,30r36,0r0,-28r-62,-37v-19,-9,-11,-37,-12,-61v-2,-36,57,-19,89,-22v29,-3,22,31,23,58r-38,0r0,-27r-36,0r0,25r62,36v8,5,12,12,12,20","w":139},"t":{"d":"91,0v-28,-2,-67,10,-67,-22r0,-121r-19,0r0,-35r19,0r0,-48r40,0r0,48r26,0r0,35r-26,0r0,109r27,0r0,34","w":98},"u":{"d":"133,0r-41,0r0,-6v-28,0,-78,23,-78,-15r0,-157r40,0r0,145r38,-1r0,-144r41,0r0,178","w":147},"v":{"d":"135,-178r-46,178r-38,0r-46,-178r42,0r23,117r24,-117r41,0","w":140},"w":{"d":"190,-178r-38,178r-35,0r-19,-98r-20,98r-34,0r-39,-178r39,0r19,114r19,-114r31,0r19,114r20,-114r38,0","w":195},"x":{"d":"133,0r-43,0r-22,-56r-22,56v-13,-1,-31,2,-42,-1r42,-90r-38,-87r41,0r19,52r21,-52v13,1,29,-2,40,1r-39,85","w":136},"y":{"d":"135,-178r-62,243r-41,0r18,-66r-45,-177r42,0r23,117r24,-117r41,0","w":140},"z":{"d":"115,0r-107,0r0,-24r59,-121r-54,0r0,-33r102,0r0,24r-60,121r60,0r0,33","w":124},"{":{"d":"121,44v-43,2,-77,0,-77,-44r0,-84r-35,-34r0,-7r35,-33v2,-50,-14,-121,42,-117r35,0r0,36v-16,-1,-38,0,-36,14v-3,31,10,74,-12,88r-19,16v11,13,31,17,31,41v0,37,-22,99,36,87r0,37","w":133},"|":{"d":"58,63r-40,0r0,-338r40,0r0,338","w":75},"}":{"d":"124,-125v-4,21,-24,26,-34,41v-4,53,18,132,-43,128r-34,0r0,-37v16,2,38,2,36,-15v4,-33,-10,-81,11,-97r19,-16v-12,-13,-30,-17,-30,-41v0,-35,20,-86,-36,-77r0,-36v42,-2,77,0,77,43r0,74","w":133},"~":{"d":"159,-139v-2,26,9,68,-20,65v-28,-3,-55,-20,-81,-29r0,28r-35,0v2,-26,-9,-67,20,-65v29,2,55,20,81,28r0,-27r35,0","w":182},"\u00a0":{"w":74}}});try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}
var lightwindow=Class.create();lightwindow.prototype={element:null,contentToFetch:null,windowActive:false,dataEffects:[],dimensions:{cruft:null,container:null,viewport:{height:null,width:null,offsetTop:null,offsetLeft:null}},pagePosition:{x:0,y:0},pageDimensions:{width:null,height:null},preloadImage:[],preloadedImage:[],galleries:[],resizeTo:{height:null,heightPercent:null,width:null,widthPercent:null,fixedTop:null,fixedLeft:null},scrollbarOffset:18,navigationObservers:{previous:null,next:null},containerChange:{height:0,width:0},activeGallery:false,galleryLocation:{current:0,total:0},initialize:function(options){this.options=Object.extend({resizeSpeed:10,contentOffset:{height:20,width:20},dimensions:{image:{height:250,width:250},page:{height:250,width:250},inline:{height:250,width:250},media:{height:250,width:250},external:{height:250,width:250},titleHeight:25},classNames:{standard:'lightwindow',action:'lightwindow_action'},fileTypes:{page:['asp','aspx','cgi','cfm','htm','html','pl','php4','php3','php','php5','phtml','rhtml','shtml','txt','vbs','rb'],media:['aif','aiff','asf','avi','divx','m1v','m2a','m2v','m3u','mid','midi','mov','moov','movie','mp2','mp3','mpa','mpa','mpe','mpeg','mpg','mpg','mpga','pps','qt','rm','ram','swf','viv','vivo','wav'],image:['bmp','gif','jpg','png','tiff']},mimeTypes:{avi:'video/avi',aif:'audio/aiff',aiff:'audio/aiff',gif:'image/gif',bmp:'image/bmp',jpeg:'image/jpeg',m1v:'video/mpeg',m2a:'audio/mpeg',m2v:'video/mpeg',m3u:'audio/x-mpequrl',mid:'audio/x-midi',midi:'audio/x-midi',mjpg:'video/x-motion-jpeg',moov:'video/quicktime',mov:'video/quicktime',movie:'video/x-sgi-movie',mp2:'audio/mpeg',mp3:'audio/mpeg3',mpa:'audio/mpeg',mpa:'video/mpeg',mpe:'video/mpeg',mpeg:'video/mpeg',mpg:'audio/mpeg',mpg:'video/mpeg',mpga:'audio/mpeg',pdf:'application/pdf',png:'image/png',pps:'application/mspowerpoint',qt:'video/quicktime',ram:'audio/x-pn-realaudio-plugin',rm:'application/vnd.rn-realmedia',swf:'application/x-shockwave-flash',tiff:'image/tiff',viv:'video/vivo',vivo:'video/vivo',wav:'audio/wav',wmv:'application/x-mplayer2'},classids:{mov:'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',swf:'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000',wmv:'clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6'},codebases:{mov:'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0',swf:'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',wmv:'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715'},viewportPadding:10,EOLASFix:'swf,wmv,fla,flv',overlay:{opacity:0.7,image:'images/black.png',presetImage:'images/black-70.png'},skin:{main:'<div id="lightwindow_container" >'+'<div id="lightwindow_title_bar" >'+'<div id="lightwindow_title_bar_inner" >'+'<span id="lightwindow_title_bar_title"></span>'+'<a id="lightwindow_title_bar_close_link" >close</a>'+'</div>'+'</div>'+'<div id="lightwindow_stage" >'+'<div id="lightwindow_contents" >'+'</div>'+'<div id="lightwindow_navigation" >'+'<a href="#" id="lightwindow_previous" >'+'<span id="lightwindow_previous_title"></span>'+'</a>'+'<a href="#" id="lightwindow_next" >'+'<span id="lightwindow_next_title"></span>'+'</a>'+'<iframe name="lightwindow_navigation_shim" id="lightwindow_navigation_shim" src="javascript:false;" frameBorder="0" scrolling="no"></iframe>'+'</div>'+'<div id="lightwindow_galleries">'+'<div id="lightwindow_galleries_tab_container" >'+'<a href="#" id="lightwindow_galleries_tab" >'+'<span id="lightwindow_galleries_tab_span" class="up" >Galleries</span>'+'</a>'+'</div>'+'<div id="lightwindow_galleries_list" >'+'</div>'+'</div>'+'</div>'+'<div id="lightwindow_data_slide" >'+'<div id="lightwindow_data_slide_inner" >'+'<div id="lightwindow_data_details" >'+'<div id="lightwindow_data_gallery_container" >'+'<span id="lightwindow_data_gallery_current"></span>'+' of '+'<span id="lightwindow_data_gallery_total"></span>'+'</div>'+'<div id="lightwindow_data_author_container" >'+'by <span id="lightwindow_data_author"></span>'+'</div>'+'</div>'+'<div id="lightwindow_data_caption" >'+'</div>'+'</div>'+'</div>'+'</div>',loading:'<div id="lightwindow_loading" >'+'<img src="/images/ajax-loading.gif" alt="loading" />'+'<span>Loading or <a href="javascript: myLightWindow.deactivate();">Cancel</a></span>'+'<iframe name="lightwindow_loading_shim" id="lightwindow_loading_shim" src="javascript:false;" frameBorder="0" scrolling="no"></iframe>'+'</div>',iframe:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'+'<html xmlns="http://www.w3.org/1999/xhtml">'+'<body>'+'{body_replace}'+'</body>'+'</html>',gallery:{top:'<div class="lightwindow_galleries_list">'+'<h1>{gallery_title_replace}</h1>'+'<ul>',middle:'<li>'+'{gallery_link_replace}'+'</li>',bottom:'</ul>'+'</div>'}},formMethod:'get',hideFlash:false,hideGalleryTab:false,showTitleBar:true,animationHandler:false,navigationHandler:false,transitionHandler:false,finalAnimationHandler:false,formHandler:false,galleryAnimationHandler:false,showGalleryCount:true},options||{});this.duration=((11-this.options.resizeSpeed)*0.15);this._setupLinks();this._getScroll();this._getPageDimensions();this._browserDimensions();this._addLightWindowMarkup(false);this._setupDimensions();this.buildGalleryList();},activate:function(e,link){this._clearWindowContents(true);this._addLoadingWindowMarkup();this._setupWindowElements(link);this._getScroll();this._browserDimensions();this._setupDimensions();this._toggleTroubleElements('hidden',false);this._displayLightWindow('block','hidden');this._setStatus(true);this._monitorKeyboard(true);this._prepareIE(true);this._loadWindow();},deactivate:function(){this.windowActive=false;this.activeGallery=false;if(!this.options.hideGalleryTab){this._handleGalleryAnimation(false);}
this.animating=false;this.element=null;this._displayLightWindow('none','visible');this._clearWindowContents(false);var queue=Effect.Queues.get('lightwindowAnimation').each(function(e){e.cancel();});this._prepareIE(false);this._setupDimensions();this._toggleTroubleElements('visible',false);this._monitorKeyboard(false);},createWindow:function(element,attributes){this._processLink($(element));},activateWindow:function(options){this.element=Object.extend({href:null,title:null,author:null,caption:null,rel:null,top:null,left:null,type:null,showImages:null,height:null,width:null,loadingAnimation:null,iframeEmbed:null,form:null},options||{});this.contentToFetch=this.element.href;this.windowType=this.element.type?this.element.type:this._fileType(this.element.href);this._clearWindowContents(true);this._addLoadingWindowMarkup();this._getScroll();this._browserDimensions();this._setupDimensions();this._toggleTroubleElements('hidden',false);this._displayLightWindow('block','hidden');this._setStatus(true);this._monitorKeyboard(true);this._prepareIE(true);this._loadWindow();},submitForm:function(e){if(this.options.formHandler){this.options.formHandler(e);}else{this._defaultFormHandler(e);}},openWindow:function(element){var element=$(element);this.windowActive=true;this._clearWindowContents(true);this._addLoadingWindowMarkup();this._setupWindowElements(element);this._setStatus(true);this._handleTransition();},navigateWindow:function(direction){this._handleNavigation(false);if(direction=='previous'){this.openWindow(this.navigationObservers.previous);}else if(direction=='next'){this.openWindow(this.navigationObservers.next);}},buildGalleryList:function(){var output='';var galleryLink;for(i in this.galleries){if(typeof this.galleries[i]=='object'){output+=(this.options.skin.gallery.top).replace('{gallery_title_replace}',unescape(i));for(j in this.galleries[i]){if(typeof this.galleries[i][j]=='object'){galleryLink='<a href="#" id="lightwindow_gallery_'+i+'_'+j+'" >'+unescape(j)+'</a>';output+=(this.options.skin.gallery.middle).replace('{gallery_link_replace}',galleryLink);}}
output+=this.options.skin.gallery.bottom;}}
new Insertion.Top('lightwindow_galleries_list',output);for(i in this.galleries){if(typeof this.galleries[i]=='object'){for(j in this.galleries[i]){if(typeof this.galleries[i][j]=='object'){Event.observe($('lightwindow_gallery_'+i+'_'+j),'click',this.openWindow.bind(this,this.galleries[i][j][0]),false);$('lightwindow_gallery_'+i+'_'+j).onclick=function(){return false;};}}}}},_setupLinks:function(){var links=$$('.'+this.options.classNames.standard);links.each(function(link){this._processLink(link);}.bind(this));},_processLink:function(link){if((this._fileType(link.getAttribute('href'))=='image'||this._fileType(link.getAttribute('href'))=='media')){if(gallery=this._getGalleryInfo(link.rel)){if(!this.galleries[gallery[0]]){this.galleries[gallery[0]]=new Array();}
if(!this.galleries[gallery[0]][gallery[1]]){this.galleries[gallery[0]][gallery[1]]=new Array();}
this.galleries[gallery[0]][gallery[1]].push(link);}}
var url=link.getAttribute('href');if(url.indexOf('?')>-1){url=url.substring(0,url.indexOf('?'));}
var container=url.substring(url.indexOf('#')+1);if($(container)){$(container).setStyle({display:'none'});}
Event.observe(link,'click',this.activate.bindAsEventListener(this,link),false);link.onclick=function(){return false;};},_setupActions:function(){var links=$$('#lightwindow_container .'+this.options.classNames.action);links.each(function(link){Event.observe(link,'click',this[link.getAttribute('rel')].bindAsEventListener(this,link),false);link.onclick=function(){return false;};}.bind(this));},_addLightWindowMarkup:function(rebuild){var overlay=Element.extend(document.createElement('div'));overlay.setAttribute('id','lightwindow_overlay');if(Prototype.Browser.Gecko){overlay.setStyle({backgroundImage:'url('+this.options.overlay.presetImage+')',backgroundRepeat:'repeat',height:this.pageDimensions.height+'px'});}else{overlay.setStyle({opacity:this.options.overlay.opacity,backgroundImage:'url('+this.options.overlay.image+')',backgroundRepeat:'repeat',height:this.pageDimensions.height+'px'});}
var lw=document.createElement('div');lw.setAttribute('id','lightwindow');lw.innerHTML=this.options.skin.main;var body=document.getElementsByTagName('body')[0];body.appendChild(overlay);body.appendChild(lw);if($('lightwindow_title_bar_close_link')){Event.observe('lightwindow_title_bar_close_link','click',this.deactivate.bindAsEventListener(this));$('lightwindow_title_bar_close_link').onclick=function(){return false;};}
Event.observe($('lightwindow_previous'),'click',this.navigateWindow.bind(this,'previous'),false);$('lightwindow_previous').onclick=function(){return false;};Event.observe($('lightwindow_next'),'click',this.navigateWindow.bind(this,'next'),false);$('lightwindow_next').onclick=function(){return false;};if(!this.options.hideGalleryTab){Event.observe($('lightwindow_galleries_tab'),'click',this._handleGalleryAnimation.bind(this,true),false);$('lightwindow_galleries_tab').onclick=function(){return false;};}
if(Prototype.Browser.IE){Event.observe(document,'mousewheel',this._stopScrolling.bindAsEventListener(this),false);}else{Event.observe(window,'DOMMouseScroll',this._stopScrolling.bindAsEventListener(this),false);}
Event.observe(overlay,'click',this.deactivate.bindAsEventListener(this),false);overlay.onclick=function(){return false;};},_addLoadingWindowMarkup:function(){$('lightwindow_contents').innerHTML+=this.options.skin.loading;},_setupWindowElements:function(link){this.element=link;this.element.title=null?'':link.getAttribute('title');this.element.author=null?'':link.getAttribute('author');this.element.caption=null?'':link.getAttribute('caption');this.element.rel=null?'':link.getAttribute('rel');this.element.params=null?'':link.getAttribute('params');this.contentToFetch=this.element.href;this.windowType=this._getParameter('lightwindow_type')?this._getParameter('lightwindow_type'):this._fileType(this.contentToFetch);},_clearWindowContents:function(contents){if($('lightwindow_iframe')){Element.remove($('lightwindow_iframe'));}
if($('lightwindow_media_primary')){try{$('lightwindow_media_primary').Stop();}catch(e){}
Element.remove($('lightwindow_media_primary'));}
if($('lightwindow_media_secondary')){try{$('lightwindow_media_secondary').Stop();}catch(e){}
Element.remove($('lightwindow_media_secondary'));}
this.activeGallery=false;this._handleNavigation(this.activeGallery);if(contents){$('lightwindow_contents').innerHTML='';$('lightwindow_contents').setStyle({overflow:'hidden'});if(!this.windowActive){$('lightwindow_data_slide_inner').setStyle({display:'none'});$('lightwindow_title_bar_title').innerHTML='';}
$('lightwindow_data_slide').setStyle({height:'auto'});}
this.resizeTo.height=null;this.resizeTo.width=null;},_setStatus:function(status){this.animating=status;if(status){Element.show('lightwindow_loading');}
if(!(/MSIE 6./i.test(navigator.userAgent))){this._fixedWindow(status);}},_fixedWindow:function(status){if(status){if(this.windowActive){this._getScroll();$('lightwindow').setStyle({position:'absolute',top:parseFloat($('lightwindow').getStyle('top'))+this.pagePosition.y+'px',left:parseFloat($('lightwindow').getStyle('left'))+this.pagePosition.x+'px'});}else{$('lightwindow').setStyle({position:'absolute'});}}else{if(this.windowActive){this._getScroll();$('lightwindow').setStyle({position:'fixed',top:parseFloat($('lightwindow').getStyle('top'))-this.pagePosition.y+'px',left:parseFloat($('lightwindow').getStyle('left'))-this.pagePosition.x+'px'});}else{if($('lightwindow_iframe')){this._browserDimensions();}
$('lightwindow').setStyle({position:'fixed',top:(parseFloat(this._getParameter('lightwindow_top'))?parseFloat(this._getParameter('lightwindow_top'))+'px':this.dimensions.viewport.height/2+'px'),left:(parseFloat(this._getParameter('lightwindow_left'))?parseFloat(this._getParameter('lightwindow_left'))+'px':this.dimensions.viewport.width/2+'px')});}}},_prepareIE:function(setup){if(Prototype.Browser.IE){var height,overflowX,overflowY;if(setup){var height='100%';}else{var height='auto';}
var body=document.getElementsByTagName('body')[0];var html=document.getElementsByTagName('html')[0];html.style.height=body.style.height=height;}},_stopScrolling:function(e){if(this.animating){if(e.preventDefault){e.preventDefault();}
e.returnValue=false;}},_getScroll:function(){if(typeof(window.pageYOffset)=='number'){this.pagePosition.x=window.pageXOffset;this.pagePosition.y=window.pageYOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){this.pagePosition.x=document.body.scrollLeft;this.pagePosition.y=document.body.scrollTop;}else if(document.documentElement){this.pagePosition.x=document.documentElement.scrollLeft;this.pagePosition.y=document.documentElement.scrollTop;}},_setScroll:function(x,y){document.documentElement.scrollLeft=x;document.documentElement.scrollTop=y;},_toggleTroubleElements:function(visibility,content){if(content){var selects=$('lightwindow_contents').getElementsByTagName('select');}else{var selects=document.getElementsByTagName('select');}
for(var i=0;i<selects.length;i++){selects[i].style.visibility=visibility;}
if(!content){if(this.options.hideFlash){var objects=document.getElementsByTagName('object');for(i=0;i!=objects.length;i++){objects[i].style.visibility=visibility;}
var embeds=document.getElementsByTagName('embed');for(i=0;i!=embeds.length;i++){embeds[i].style.visibility=visibility;}}
var iframes=document.getElementsByTagName('iframe');for(i=0;i!=iframes.length;i++){iframes[i].style.visibility=visibility;}}},_getPageDimensions:function(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){this.pageDimensions.height=windowHeight;}else{this.pageDimensions.height=yScroll;}
if(xScroll<windowWidth){this.pageDimensions.width=windowWidth;}else{this.pageDimensions.width=xScroll;}},_displayLightWindow:function(display,visibility){$('lightwindow_overlay').style.display=$('lightwindow').style.display=$('lightwindow_container').style.display=display;$('lightwindow_overlay').style.visibility=$('lightwindow').style.visibility=$('lightwindow_container').style.visibility=visibility;},_setupDimensions:function(){var originalHeight,originalWidth;switch(this.windowType){case'page':originalHeight=this.options.dimensions.page.height;originalWidth=this.options.dimensions.page.width;break;case'image':originalHeight=this.options.dimensions.image.height;originalWidth=this.options.dimensions.image.width;break;case'media':originalHeight=this.options.dimensions.media.height;originalWidth=this.options.dimensions.media.width;break;case'external':originalHeight=this.options.dimensions.external.height;originalWidth=this.options.dimensions.external.width;break;case'inline':originalHeight=this.options.dimensions.inline.height;originalWidth=this.options.dimensions.inline.width;break;default:originalHeight=this.options.dimensions.page.height;originalWidth=this.options.dimensions.page.width;break;}
var offsetHeight=this._getParameter('lightwindow_top')?parseFloat(this._getParameter('lightwindow_top'))+this.pagePosition.y:this.dimensions.viewport.height/2+this.pagePosition.y;var offsetWidth=this._getParameter('lightwindow_left')?parseFloat(this._getParameter('lightwindow_left'))+this.pagePosition.x:this.dimensions.viewport.width/2+this.pagePosition.x;$('lightwindow').setStyle({top:offsetHeight+'px',left:offsetWidth+'px'});$('lightwindow_container').setStyle({height:originalHeight+'px',width:originalWidth+'px',left:-(originalWidth/2)+'px',top:-(originalHeight/2)+'px'});$('lightwindow_contents').setStyle({height:originalHeight+'px',width:originalWidth+'px'});},_fileType:function(url){var image=new RegExp("[^\.]\.("+this.options.fileTypes.image.join('|')+")\s*$","i");if(image.test(url))return'image';if(url.indexOf('#')>-1&&(document.domain==this._getDomain(url)))return'inline';if(url.indexOf('?')>-1)url=url.substring(0,url.indexOf('?'));var type='unknown';var page=new RegExp("[^\.]\.("+this.options.fileTypes.page.join('|')+")\s*$","i");var media=new RegExp("[^\.]\.("+this.options.fileTypes.media.join('|')+")\s*$","i");if(document.domain!=this._getDomain(url))type='external';if(media.test(url))type='media';if(type=='external'||type=='media')return type;if(page.test(url)||url.substr((url.length-1),url.length)=='/')type='page';return type;},_fileExtension:function(url){if(url.indexOf('?')>-1){url=url.substring(0,url.indexOf('?'));}
var extenstion='';for(var x=(url.length-1);x>-1;x--){if(url.charAt(x)=='.'){return extenstion;}
extenstion=url.charAt(x)+extenstion;}},_monitorKeyboard:function(status){if(status)document.onkeydown=this._eventKeypress.bind(this);else document.onkeydown='';},_eventKeypress:function(e){if(e==null){var keycode=event.keyCode;}else{var keycode=e.which;}
switch(keycode){case 27:this.deactivate();break;case 13:return;default:break;}
if(this.animating){return false;}
switch(String.fromCharCode(keycode).toLowerCase()){case'p':if(this.navigationObservers.previous){this.navigateWindow('previous');}
break;case'n':if(this.navigationObservers.next){this.navigateWindow('next');}
break;default:break;}},_getGalleryInfo:function(rel){if(!rel)return false;if(rel.indexOf('[')>-1){return new Array(escape(rel.substring(0,rel.indexOf('['))),escape(rel.substring(rel.indexOf('[')+1,rel.indexOf(']'))));}else{return false;}},_getDomain:function(url){var leadSlashes=url.indexOf('//');var domainStart=leadSlashes+2;var withoutResource=url.substring(domainStart,url.length);var nextSlash=withoutResource.indexOf('/');var domain=withoutResource.substring(0,nextSlash);if(domain.indexOf(':')>-1){var portColon=domain.indexOf(':');domain=domain.substring(0,portColon);}
return domain;},_getParameter:function(parameter,parameters){if(!this.element)return false;if(parameter=='lightwindow_top'&&this.element.top){return unescape(this.element.top);}else if(parameter=='lightwindow_left'&&this.element.left){return unescape(this.element.left);}else if(parameter=='lightwindow_type'&&this.element.type){return unescape(this.element.type);}else if(parameter=='lightwindow_show_images'&&this.element.showImages){return unescape(this.element.showImages);}else if(parameter=='lightwindow_height'&&this.element.height){return unescape(this.element.height);}else if(parameter=='lightwindow_width'&&this.element.width){return unescape(this.element.width);}else if(parameter=='lightwindow_loading_animation'&&this.element.loadingAnimation){return unescape(this.element.loadingAnimation);}else if(parameter=='lightwindow_iframe_embed'&&this.element.iframeEmbed){return unescape(this.element.iframeEmbed);}else if(parameter=='lightwindow_form'&&this.element.form){return unescape(this.element.form);}else{if(!parameters){if(this.element.params)parameters=this.element.params;else return;}
var value;var parameterArray=parameters.split(',');var compareString=parameter+'=';var compareLength=compareString.length;for(var i=0;i<parameterArray.length;i++){if(parameterArray[i].substr(0,compareLength)==compareString){var currentParameter=parameterArray[i].split('=');value=currentParameter[1];break;}}
if(!value)return false;else return unescape(value);}},_browserDimensions:function(){if(Prototype.Browser.IE){this.dimensions.viewport.height=document.documentElement.clientHeight;this.dimensions.viewport.width=document.documentElement.clientWidth;}else{this.dimensions.viewport.height=window.innerHeight;this.dimensions.viewport.width=document.width||document.body.offsetWidth;}},_getScrollerWidth:function(){var scrollDiv=Element.extend(document.createElement('div'));scrollDiv.setAttribute('id','lightwindow_scroll_div');scrollDiv.setStyle({position:'absolute',top:'-10000px',left:'-10000px',width:'100px',height:'100px',overflow:'hidden'});var contentDiv=Element.extend(document.createElement('div'));contentDiv.setAttribute('id','lightwindow_content_scroll_div');contentDiv.setStyle({width:'100%',height:'200px'});scrollDiv.appendChild(contentDiv);var body=document.getElementsByTagName('body')[0];body.appendChild(scrollDiv);var noScroll=$('lightwindow_content_scroll_div').offsetWidth;scrollDiv.style.overflow='auto';var withScroll=$('lightwindow_content_scroll_div').offsetWidth;Element.remove($('lightwindow_scroll_div'));this.scrollbarOffset=noScroll-withScroll;},_addParamToObject:function(name,value,object,id){var param=document.createElement('param');param.setAttribute('value',value);param.setAttribute('name',name);if(id){param.setAttribute('id',id);}
object.appendChild(param);return object;},_outerHTML:function(object){if(Prototype.Browser.IE){return object.outerHTML;}else{var clone=object.cloneNode(true);var cloneDiv=document.createElement('div');cloneDiv.appendChild(clone);return cloneDiv.innerHTML;}},_convertToMarkup:function(object,closeTag){var markup=this._outerHTML(object).replace('</'+closeTag+'>','');if(Prototype.Browser.IE){for(var i=0;i<object.childNodes.length;i++){markup+=this._outerHTML(object.childNodes[i]);}
markup+='</'+closeTag+'>';}
return markup;},_appendObject:function(object,closeTag,appendTo){if(Prototype.Browser.IE){appendTo.innerHTML+=this._convertToMarkup(object,closeTag);if(this.options.EOLASFix.indexOf(this._fileType(this.element.href))>-1){var objectElements=document.getElementsByTagName('object');for(var i=0;i<objectElements.length;i++){if(objectElements[i].getAttribute("data"))objectElements[i].removeAttribute('data');objectElements[i].outerHTML=objectElements[i].outerHTML;objectElements[i].style.visibility="visible";}}}else{appendTo.appendChild(object);}},_appendIframe:function(scroll){var iframe=document.createElement('iframe');iframe.setAttribute('id','lightwindow_iframe');iframe.setAttribute('name','lightwindow_iframe');iframe.setAttribute('src','about:blank');iframe.setAttribute('height','100%');iframe.setAttribute('width','100%');iframe.setAttribute('frameborder','0');iframe.setAttribute('marginwidth','0');iframe.setAttribute('marginheight','0');iframe.setAttribute('scrolling',scroll);this._appendObject(iframe,'iframe',$('lightwindow_contents'));},_writeToIframe:function(content){var template=this.options.skin.iframe;template=template.replace('{body_replace}',content);if($('lightwindow_iframe').contentWindow){$('lightwindow_iframe').contentWindow.document.open();$('lightwindow_iframe').contentWindow.document.write(template);$('lightwindow_iframe').contentWindow.document.close();}else{$('lightwindow_iframe').contentDocument.open();$('lightwindow_iframe').contentDocument.write(template);$('lightwindow_iframe').contentDocument.close();}},_loadWindow:function(){switch(this.windowType){case'image':var current=0;var images=[];this.checkImage=[];this.resizeTo.height=this.resizeTo.width=0;this.imageCount=this._getParameter('lightwindow_show_images')?parseInt(this._getParameter('lightwindow_show_images')):1;if(gallery=this._getGalleryInfo(this.element.rel)){for(current=0;current<this.galleries[gallery[0]][gallery[1]].length;current++){if(this.contentToFetch.indexOf(this.galleries[gallery[0]][gallery[1]][current].href)>-1){break;}}
if(this.galleries[gallery[0]][gallery[1]][current-this.imageCount]){this.navigationObservers.previous=this.galleries[gallery[0]][gallery[1]][current-this.imageCount];}else{this.navigationObservers.previous=false;}
if(this.galleries[gallery[0]][gallery[1]][current+this.imageCount]){this.navigationObservers.next=this.galleries[gallery[0]][gallery[1]][current+this.imageCount];}else{this.navigationObservers.next=false;}
this.activeGallery=true;}else{this.navigationObservers.previous=false;this.navigationObservers.next=false;this.activeGallery=false;}
for(var i=current;i<(current+this.imageCount);i++){if(gallery&&this.galleries[gallery[0]][gallery[1]][i]){this.contentToFetch=this.galleries[gallery[0]][gallery[1]][i].href;this.galleryLocation={current:(i+1)/this.imageCount,total:(this.galleries[gallery[0]][gallery[1]].length)/this.imageCount};if(!this.galleries[gallery[0]][gallery[1]][i+this.imageCount]){$('lightwindow_next').setStyle({display:'none'});}else{$('lightwindow_next').setStyle({display:'block'});$('lightwindow_next_title').innerHTML=this.galleries[gallery[0]][gallery[1]][i+this.imageCount].title;}
if(!this.galleries[gallery[0]][gallery[1]][i-this.imageCount]){$('lightwindow_previous').setStyle({display:'none'});}else{$('lightwindow_previous').setStyle({display:'block'});$('lightwindow_previous_title').innerHTML=this.galleries[gallery[0]][gallery[1]][i-this.imageCount].title;}}
images[i]=document.createElement('img');images[i].setAttribute('id','lightwindow_image_'+i);images[i].setAttribute('border','0');images[i].setAttribute('src',this.contentToFetch);$('lightwindow_contents').appendChild(images[i]);this.checkImage[i]=new PeriodicalExecuter(function(i){if(!(typeof $('lightwindow_image_'+i).naturalWidth!="undefined"&&$('lightwindow_image_'+i).naturalWidth==0)){this.checkImage[i].stop();var imageHeight=$('lightwindow_image_'+i).getHeight();if(imageHeight>this.resizeTo.height){this.resizeTo.height=imageHeight;}
this.resizeTo.width+=$('lightwindow_image_'+i).getWidth();this.imageCount--;$('lightwindow_image_'+i).setStyle({height:'100%'});if(this.imageCount==0){this._processWindow();}}}.bind(this,i),1);}
break;case'media':var current=0;this.resizeTo.height=this.resizeTo.width=0;if(gallery=this._getGalleryInfo(this.element.rel)){for(current=0;current<this.galleries[gallery[0]][gallery[1]].length;current++){if(this.contentToFetch.indexOf(this.galleries[gallery[0]][gallery[1]][current].href)>-1){break;}}
if(this.galleries[gallery[0]][gallery[1]][current-1]){this.navigationObservers.previous=this.galleries[gallery[0]][gallery[1]][current-1];}else{this.navigationObservers.previous=false;}
if(this.galleries[gallery[0]][gallery[1]][current+1]){this.navigationObservers.next=this.galleries[gallery[0]][gallery[1]][current+1];}else{this.navigationObservers.next=false;}
this.activeGallery=true;}else{this.navigationObservers.previous=false;this.navigationObservers.next=false;this.activeGallery=false;}
if(gallery&&this.galleries[gallery[0]][gallery[1]][current]){this.contentToFetch=this.galleries[gallery[0]][gallery[1]][current].href;this.galleryLocation={current:current+1,total:this.galleries[gallery[0]][gallery[1]].length};if(!this.galleries[gallery[0]][gallery[1]][current+1]){$('lightwindow_next').setStyle({display:'none'});}else{$('lightwindow_next').setStyle({display:'block'});$('lightwindow_next_title').innerHTML=this.galleries[gallery[0]][gallery[1]][current+1].title;}
if(!this.galleries[gallery[0]][gallery[1]][current-1]){$('lightwindow_previous').setStyle({display:'none'});}else{$('lightwindow_previous').setStyle({display:'block'});$('lightwindow_previous_title').innerHTML=this.galleries[gallery[0]][gallery[1]][current-1].title;}}
if(this._getParameter('lightwindow_iframe_embed')){this.resizeTo.height=this.dimensions.viewport.height;this.resizeTo.width=this.dimensions.viewport.width;}else{this.resizeTo.height=this._getParameter('lightwindow_height');this.resizeTo.width=this._getParameter('lightwindow_width');}
this._processWindow();break;case'external':this._appendIframe('auto');this.resizeTo.height=this.dimensions.viewport.height;this.resizeTo.width=this.dimensions.viewport.width;this._processWindow();break;case'page':var newAJAX=new Ajax.Request(this.contentToFetch,{method:'get',parameters:'',onComplete:function(response){$('lightwindow_contents').innerHTML+=response.responseText;this.resizeTo.height=$('lightwindow_contents').scrollHeight+(this.options.contentOffset.height);this.resizeTo.width=$('lightwindow_contents').scrollWidth+(this.options.contentOffset.width);this._processWindow();}.bind(this)});break;case'inline':var content=this.contentToFetch;if(content.indexOf('?')>-1){content=content.substring(0,content.indexOf('?'));}
content=content.substring(content.indexOf('#')+1);new Insertion.Top($('lightwindow_contents'),$(content).innerHTML);this.resizeTo.height=$('lightwindow_contents').scrollHeight+(this.options.contentOffset.height);this.resizeTo.width=$('lightwindow_contents').scrollWidth+(this.options.contentOffset.width);this._toggleTroubleElements('hidden',true);this._processWindow();break;default:throw("Page Type could not be determined, please amend this lightwindow URL "+this.contentToFetch);break;}},_resizeWindowToFit:function(){if(this.resizeTo.height+this.dimensions.cruft.height>this.dimensions.viewport.height){var heightRatio=this.resizeTo.height/this.resizeTo.width;this.resizeTo.height=this.dimensions.viewport.height-this.dimensions.cruft.height-(2*this.options.viewportPadding);if(this.windowType=='image'||(this.windowType=='media'&&!this._getParameter('lightwindow_iframe_embed'))){this.resizeTo.width=this.resizeTo.height/heightRatio;$('lightwindow_data_slide_inner').setStyle({width:this.resizeTo.width+'px'});}}
if(this.resizeTo.width+this.dimensions.cruft.width>this.dimensions.viewport.width){var widthRatio=this.resizeTo.width/this.resizeTo.height;this.resizeTo.width=this.dimensions.viewport.width-2*this.dimensions.cruft.width-(2*this.options.viewportPadding);if(this.windowType=='image'||(this.windowType=='media'&&!this._getParameter('lightwindow_iframe_embed'))){this.resizeTo.height=this.resizeTo.width/widthRatio;$('lightwindow_data_slide_inner').setStyle({height:this.resizeTo.height+'px'});}}},_presetWindowSize:function(){if(this._getParameter('lightwindow_height')){this.resizeTo.height=parseFloat(this._getParameter('lightwindow_height'));}
if(this._getParameter('lightwindow_width')){this.resizeTo.width=parseFloat(this._getParameter('lightwindow_width'));}},_processWindow:function(){this.dimensions.dataEffects=[];if(this.element.caption||this.element.author||(this.activeGallery&&this.options.showGalleryCount)){if(this.element.caption){$('lightwindow_data_caption').innerHTML=this.element.caption;$('lightwindow_data_caption').setStyle({display:'block'});}else{$('lightwindow_data_caption').setStyle({display:'none'});}
if(this.element.author){$('lightwindow_data_author').innerHTML=this.element.author;$('lightwindow_data_author_container').setStyle({display:'block'});}else{$('lightwindow_data_author_container').setStyle({display:'none'});}
if(this.activeGallery&&this.options.showGalleryCount){$('lightwindow_data_gallery_current').innerHTML=this.galleryLocation.current;$('lightwindow_data_gallery_total').innerHTML=this.galleryLocation.total;$('lightwindow_data_gallery_container').setStyle({display:'block'});}else{$('lightwindow_data_gallery_container').setStyle({display:'none'});}
$('lightwindow_data_slide_inner').setStyle({width:this.resizeTo.width+'px',height:'auto',visibility:'visible',display:'block'});$('lightwindow_data_slide').setStyle({height:$('lightwindow_data_slide').getHeight()+'px',width:'1px',overflow:'hidden',display:'block'});}else{$('lightwindow_data_slide').setStyle({display:'none',width:'auto'});$('lightwindow_data_slide_inner').setStyle({display:'none',visibility:'hidden',width:this.resizeTo.width+'px',height:'0px'});}
if(this.element.title!='null'){$('lightwindow_title_bar_title').innerHTML=this.element.title;}else{$('lightwindow_title_bar_title').innerHTML='';}
var originalContainerDimensions={height:$('lightwindow_container').getHeight(),width:$('lightwindow_container').getWidth()};$('lightwindow_container').setStyle({height:'auto',width:$('lightwindow_container').getWidth()+this.options.contentOffset.width-(this.windowActive?this.options.contentOffset.width:0)+'px'});var newContainerDimensions={height:$('lightwindow_container').getHeight(),width:$('lightwindow_container').getWidth()};this.containerChange={height:originalContainerDimensions.height-newContainerDimensions.height,width:originalContainerDimensions.width-newContainerDimensions.width};this.dimensions.container={height:$('lightwindow_container').getHeight(),width:$('lightwindow_container').getWidth()};this.dimensions.cruft={height:this.dimensions.container.height-$('lightwindow_contents').getHeight()+this.options.contentOffset.height,width:this.dimensions.container.width-$('lightwindow_contents').getWidth()+this.options.contentOffset.width};this._presetWindowSize();this._resizeWindowToFit();if(!this.windowActive){$('lightwindow_container').setStyle({left:-(this.dimensions.container.width/2)+'px',top:-(this.dimensions.container.height/2)+'px'});}
$('lightwindow_container').setStyle({height:this.dimensions.container.height+'px',width:this.dimensions.container.width+'px'});this._displayLightWindow('block','visible');this._animateLightWindow();},_animateLightWindow:function(){if(this.options.animationHandler){this.options.animationHandler().bind(this);}else{this._defaultAnimationHandler();}},_handleNavigation:function(display){if(this.options.navigationHandler){this.options.navigationHandler().bind(this,display);}else{this._defaultDisplayNavigation(display);}},_handleTransition:function(){if(this.options.transitionHandler){this.options.transitionHandler().bind(this);}else{this._defaultTransitionHandler();}},_handleFinalWindowAnimation:function(delay){if(this.options.finalAnimationHandler){this.options.finalAnimationHandler().bind(this,delay);}else{this._defaultfinalWindowAnimationHandler(delay);}},_handleGalleryAnimation:function(list){if(this.options.galleryAnimationHandler){this.options.galleryAnimationHandler().bind(this,list);}else{this._defaultGalleryAnimationHandler(list);}},_defaultDisplayNavigation:function(display){if(display){$('lightwindow_navigation').setStyle({display:'block',height:$('lightwindow_contents').getHeight()+'px',width:'100%',marginTop:this.options.dimensions.titleHeight+'px'});}else{$('lightwindow_navigation').setStyle({display:'none',height:'auto',width:'auto'});}},_defaultAnimationHandler:function(){if(this.element.caption||this.element.author||(this.activeGallery&&this.options.showGalleryCount)){$('lightwindow_data_slide').setStyle({display:'none',width:'auto'});this.dimensions.dataEffects.push(new Effect.SlideDown('lightwindow_data_slide',{sync:true}),new Effect.Appear('lightwindow_data_slide',{sync:true,from:0.0,to:1.0}));}
$('lightwindow_title_bar_inner').setStyle({height:'0px',marginTop:this.options.dimensions.titleHeight+'px'});this.dimensions.dataEffects.push(new Effect.Morph('lightwindow_title_bar_inner',{sync:true,style:{height:this.options.dimensions.titleHeight+'px',marginTop:'0px'}}),new Effect.Appear('lightwindow_title_bar_inner',{sync:true,from:0.0,to:1.0}));if(!this.options.hideGalleryTab){this._handleGalleryAnimation(false);if($('lightwindow_galleries_tab_container').getHeight()==0){this.dimensions.dataEffects.push(new Effect.Morph('lightwindow_galleries_tab_container',{sync:true,style:{height:'20px',marginTop:'0px'}}));$('lightwindow_galleries').setStyle({width:'0px'});}}
var resized=false;var ratio=this.dimensions.container.width-$('lightwindow_contents').getWidth()+this.resizeTo.width+this.options.contentOffset.width;if(ratio!=$('lightwindow_container').getWidth()){new Effect.Parallel([new Effect.Scale('lightwindow_contents',100*(this.resizeTo.width/$('lightwindow_contents').getWidth()),{scaleFrom:100*($('lightwindow_contents').getWidth()/($('lightwindow_contents').getWidth()+(this.options.contentOffset.width))),sync:true,scaleY:false,scaleContent:false}),new Effect.Scale('lightwindow_container',100*(ratio/(this.dimensions.container.width)),{sync:true,scaleY:false,scaleFromCenter:true,scaleContent:false})],{duration:this.duration,delay:0.25,queue:{position:'end',scope:'lightwindowAnimation'}});}
ratio=this.dimensions.container.height-$('lightwindow_contents').getHeight()+this.resizeTo.height+this.options.contentOffset.height;if(ratio!=$('lightwindow_container').getHeight()){new Effect.Parallel([new Effect.Scale('lightwindow_contents',100*(this.resizeTo.height/$('lightwindow_contents').getHeight()),{scaleFrom:100*($('lightwindow_contents').getHeight()/($('lightwindow_contents').getHeight()+(this.options.contentOffset.height))),sync:true,scaleX:false,scaleContent:false}),new Effect.Scale('lightwindow_container',100*(ratio/(this.dimensions.container.height)),{sync:true,scaleX:false,scaleFromCenter:true,scaleContent:false})],{duration:this.duration,afterFinish:function(){if(this.dimensions.dataEffects.length>0){if(!this.options.hideGalleryTab){$('lightwindow_galleries').setStyle({width:this.resizeTo.width+'px'});}
new Effect.Parallel(this.dimensions.dataEffects,{duration:this.duration,afterFinish:function(){this._finishWindow();}.bind(this),queue:{position:'end',scope:'lightwindowAnimation'}});}}.bind(this),queue:{position:'end',scope:'lightwindowAnimation'}});resized=true;}
if(!resized&&this.dimensions.dataEffects.length>0){new Effect.Parallel(this.dimensions.dataEffects,{duration:this.duration,beforeStart:function(){if(!this.options.hideGalleryTab){$('lightwindow_galleries').setStyle({width:this.resizeTo.width+'px'});}
if(this.containerChange.height!=0||this.containerChange.width!=0){new Effect.MoveBy('lightwindow_container',this.containerChange.height,this.containerChange.width,{transition:Effect.Transitions.sinoidal});}}.bind(this),afterFinish:function(){this._finishWindow();}.bind(this),queue:{position:'end',scope:'lightwindowAnimation'}});}},_defaultfinalWindowAnimationHandler:function(delay){if(this.windowType=='media'||this._getParameter('lightwindow_loading_animation')){Element.hide('lightwindow_loading');this._handleNavigation(this.activeGallery);this._setStatus(false);}else{Effect.Fade('lightwindow_loading',{duration:0.75,delay:1.0,afterFinish:function(){if(this.windowType!='image'&&this.windowType!='media'&&this.windowType!='external'){$('lightwindow_contents').setStyle({overflow:'auto'});}
this._handleNavigation(this.activeGallery);this._defaultGalleryAnimationHandler();this._setStatus(false);}.bind(this),queue:{position:'end',scope:'lightwindowAnimation'}});}},_defaultGalleryAnimationHandler:function(list){if(this.activeGallery){$('lightwindow_galleries').setStyle({display:'block',marginBottom:$('lightwindow_data_slide').getHeight()+this.options.contentOffset.height/2+'px'});$('lightwindow_navigation').setStyle({height:$('lightwindow_contents').getHeight()-20+'px'});}else{$('lightwindow_galleries').setStyle({display:'none'});$('lightwindow_galleries_tab_container').setStyle({height:'0px',marginTop:'20px'});$('lightwindow_galleries_list').setStyle({height:'0px'});return false;}
if(list){if($('lightwindow_galleries_list').getHeight()==0){var height=$('lightwindow_contents').getHeight()*0.80;$('lightwindow_galleries_tab_span').className='down';}else{var height=0;$('lightwindow_galleries_tab_span').className='up';}
new Effect.Morph('lightwindow_galleries_list',{duration:this.duration,transition:Effect.Transitions.sinoidal,style:{height:height+'px'},beforeStart:function(){$('lightwindow_galleries_list').setStyle({overflow:'hidden'});},afterFinish:function(){$('lightwindow_galleries_list').setStyle({overflow:'auto'});},queue:{position:'end',scope:'lightwindowAnimation'}});}},_defaultTransitionHandler:function(){this.dimensions.dataEffects=[];if($('lightwindow_data_slide').getStyle('display')!='none'){this.dimensions.dataEffects.push(new Effect.SlideUp('lightwindow_data_slide',{sync:true}),new Effect.Fade('lightwindow_data_slide',{sync:true,from:1.0,to:0.0}));}
if(!this.options.hideGalleryTab){if($('lightwindow_galleries').getHeight()!=0&&!this.options.hideGalleryTab){this.dimensions.dataEffects.push(new Effect.Morph('lightwindow_galleries_tab_container',{sync:true,style:{height:'0px',marginTop:'20px'}}));}
if($('lightwindow_galleries_list').getHeight()!=0){$('lightwindow_galleries_tab_span').className='up';this.dimensions.dataEffects.push(new Effect.Morph('lightwindow_galleries_list',{sync:true,style:{height:'0px'},transition:Effect.Transitions.sinoidal,beforeStart:function(){$('lightwindow_galleries_list').setStyle({overflow:'hidden'});},afterFinish:function(){$('lightwindow_galleries_list').setStyle({overflow:'auto'});}}));}}
this.dimensions.dataEffects.push(new Effect.Morph('lightwindow_title_bar_inner',{sync:true,style:{height:'0px',marginTop:this.options.dimensions.titleHeight+'px'}}),new Effect.Fade('lightwindow_title_bar_inner',{sync:true,from:1.0,to:0.0}));new Effect.Parallel(this.dimensions.dataEffects,{duration:this.duration,afterFinish:function(){this._loadWindow();}.bind(this),queue:{position:'end',scope:'lightwindowAnimation'}});},_defaultFormHandler:function(e){var element=Event.element(e).parentNode;var parameterString=Form.serialize(this._getParameter('lightwindow_form',element.getAttribute('params')));if(this.options.formMethod=='post'){var newAJAX=new Ajax.Request(element.href,{method:'post',postBody:parameterString,onComplete:this.openWindow.bind(this,element)});}else if(this.options.formMethod=='get'){var newAJAX=new Ajax.Request(element.href,{method:'get',parameters:parameterString,onComplete:this.openWindow.bind(this,element)});}},_finishWindow:function(){if(this.windowType=='external'){$('lightwindow_iframe').setAttribute('src',this.element.href);this._handleFinalWindowAnimation(1);}else if(this.windowType=='media'){var outerObject=document.createElement('object');outerObject.setAttribute('classid',this.options.classids[this._fileExtension(this.contentToFetch)]);outerObject.setAttribute('codebase',this.options.codebases[this._fileExtension(this.contentToFetch)]);outerObject.setAttribute('id','lightwindow_media_primary');outerObject.setAttribute('name','lightwindow_media_primary');outerObject.setAttribute('width',this.resizeTo.width);outerObject.setAttribute('height',this.resizeTo.height);outerObject=this._addParamToObject('movie',this.contentToFetch,outerObject);outerObject=this._addParamToObject('src',this.contentToFetch,outerObject);outerObject=this._addParamToObject('controller','true',outerObject);outerObject=this._addParamToObject('wmode','transparent',outerObject);outerObject=this._addParamToObject('cache','false',outerObject);outerObject=this._addParamToObject('quality','high',outerObject);if(!Prototype.Browser.IE){var innerObject=document.createElement('object');innerObject.setAttribute('type',this.options.mimeTypes[this._fileExtension(this.contentToFetch)]);innerObject.setAttribute('data',this.contentToFetch);innerObject.setAttribute('id','lightwindow_media_secondary');innerObject.setAttribute('name','lightwindow_media_secondary');innerObject.setAttribute('width',this.resizeTo.width);innerObject.setAttribute('height',this.resizeTo.height);innerObject=this._addParamToObject('controller','true',innerObject);innerObject=this._addParamToObject('wmode','transparent',innerObject);innerObject=this._addParamToObject('cache','false',innerObject);innerObject=this._addParamToObject('quality','high',innerObject);outerObject.appendChild(innerObject);}
if(this._getParameter('lightwindow_iframe_embed')){this._appendIframe('no');this._writeToIframe(this._convertToMarkup(outerObject,'object'));}else{this._appendObject(outerObject,'object',$('lightwindow_contents'));}
this._handleFinalWindowAnimation(0);}else{this._handleFinalWindowAnimation(0);}
this._setupActions();}}
Event.observe(window,'load',lightwindowInit,false);var myLightWindow=null;function lightwindowInit(){myLightWindow=new lightwindow();}