
var Cufon=(function(){var api=function(){return api.replace.apply(null,arguments);};var DOM=api.DOM={ready:(function(){var complete=false,readyStatus={loaded:1,complete:1};var queue=[],perform=function(){if(complete)return;complete=true;for(var fn;fn=queue.shift();fn());};if(document.addEventListener){document.addEventListener('DOMContentLoaded',perform,false);window.addEventListener('pageshow',perform,false);}
if(!window.opera&&document.readyState)(function(){readyStatus[document.readyState]?perform():setTimeout(arguments.callee,10);})();if(document.readyState&&document.createStyleSheet)(function(){try{document.body.doScroll('left');perform();}
catch(e){setTimeout(arguments.callee,1);}})();addEvent(window,'load',perform);return function(listener){if(!arguments.length)perform();else complete?listener():queue.push(listener);};})(),root:function(){return document.documentElement||document.body;}};var CSS=api.CSS={Size:function(value,base){this.value=parseFloat(value);this.unit=String(value).match(/[a-z%]*$/)[0]||'px';this.convert=function(value){return value/base*this.value;};this.convertFrom=function(value){return value/this.value*base;};this.toString=function(){return this.value+this.unit;};},addClass:function(el,className){var current=el.className;el.className=current+(current&&' ')+className;return el;},color:cached(function(value){var parsed={};parsed.color=value.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function($0,$1,$2){parsed.opacity=parseFloat($2);return'rgb('+$1+')';});return parsed;}),fontStretch:cached(function(value){if(typeof value=='number')return value;if(/%$/.test(value))return parseFloat(value)/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}[value]||1;}),getStyle:function(el){var view=document.defaultView;if(view&&view.getComputedStyle)return new Style(view.getComputedStyle(el,null));if(el.currentStyle)return new Style(el.currentStyle);return new Style(el.style);},gradient:cached(function(value){var gradient={id:value,type:value.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},colors=value.substr(value.indexOf('(')).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var i=0,l=colors.length,stop;i<l;++i){stop=colors[i].split('=',2).reverse();gradient.stops.push([stop[1]||i/(l-1),stop[0]]);}
return gradient;}),quotedList:cached(function(value){var list=[],re=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,match;while(match=re.exec(value))list.push(match[3]||match[1]);return list;}),recognizesMedia:cached(function(media){var el=document.createElement('style'),sheet,container,supported;el.type='text/css';el.media=media;try{el.appendChild(document.createTextNode('/**/'));}catch(e){}
container=elementsByTagName('head')[0];container.insertBefore(el,container.firstChild);sheet=(el.sheet||el.styleSheet);supported=sheet&&!sheet.disabled;container.removeChild(el);return supported;}),removeClass:function(el,className){var re=RegExp('(?:^|\\s+)'+className+'(?=\\s|$)','g');el.className=el.className.replace(re,'');return el;},supports:function(property,value){var checker=document.createElement('span').style;if(checker[property]===undefined)return false;checker[property]=value;return checker[property]===value;},textAlign:function(word,style,position,wordCount){if(style.get('textAlign')=='right'){if(position>0)word=' '+word;}
else if(position<wordCount-1)word+=' ';return word;},textShadow:cached(function(value){if(value=='none')return null;var shadows=[],currentShadow={},result,offCount=0;var re=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(result=re.exec(value)){if(result[0]==','){shadows.push(currentShadow);currentShadow={};offCount=0;}
else if(result[1]){currentShadow.color=result[1];}
else{currentShadow[['offX','offY','blur'][offCount++]]=result[2];}}
shadows.push(currentShadow);return shadows;}),textTransform:(function(){var map={uppercase:function(s){return s.toUpperCase();},lowercase:function(s){return s.toLowerCase();},capitalize:function(s){return s.replace(/\b./g,function($0){return $0.toUpperCase();});}};return function(text,style){var transform=map[style.get('textTransform')];return transform?transform(text):text;};})(),whiteSpace:(function(){var ignore={inline:1,'inline-block':1,'run-in':1};var wsStart=/^\s+/,wsEnd=/\s+$/;return function(text,style,node,previousElement){if(previousElement){if(previousElement.nodeName.toLowerCase()=='br'){text=text.replace(wsStart,'');}}
if(ignore[style.get('display')])return text;if(!node.previousSibling)text=text.replace(wsStart,'');if(!node.nextSibling)text=text.replace(wsEnd,'');return text;};})()};CSS.ready=(function(){var complete=!CSS.recognizesMedia('all'),hasLayout=false;var queue=[],perform=function(){complete=true;for(var fn;fn=queue.shift();fn());};var links=elementsByTagName('link'),styles=elementsByTagName('style');function isContainerReady(el){return el.disabled||isSheetReady(el.sheet,el.media||'screen');}
function isSheetReady(sheet,media){if(!CSS.recognizesMedia(media||'all'))return true;if(!sheet||sheet.disabled)return false;try{var rules=sheet.cssRules,rule;if(rules){search:for(var i=0,l=rules.length;rule=rules[i],i<l;++i){switch(rule.type){case 2:break;case 3:if(!isSheetReady(rule.styleSheet,rule.media.mediaText))return false;break;default:break search;}}}}
catch(e){}
return true;}
function allStylesLoaded(){if(document.createStyleSheet)return true;var el,i;for(i=0;el=links[i];++i){if(el.rel.toLowerCase()=='stylesheet'&&!isContainerReady(el))return false;}
for(i=0;el=styles[i];++i){if(!isContainerReady(el))return false;}
return true;}
DOM.ready(function(){if(!hasLayout)hasLayout=CSS.getStyle(document.body).isUsable();if(complete||(hasLayout&&allStylesLoaded()))perform();else setTimeout(arguments.callee,10);});return function(listener){if(complete)listener();else queue.push(listener);};})();function Font(data){var face=this.face=data.face,wordSeparators={'\u0020':1,'\u00a0':1,'\u3000':1};this.glyphs=data.glyphs;this.w=data.w;this.baseSize=parseInt(face['units-per-em'],10);this.family=face['font-family'].toLowerCase();this.weight=face['font-weight'];this.style=face['font-style']||'normal';this.viewBox=(function(){var parts=face.bbox.split(/\s+/);var box={minX:parseInt(parts[0],10),minY:parseInt(parts[1],10),maxX:parseInt(parts[2],10),maxY:parseInt(parts[3],10)};box.width=box.maxX-box.minX;box.height=box.maxY-box.minY;box.toString=function(){return[this.minX,this.minY,this.width,this.height].join(' ');};return box;})();this.ascent=-parseInt(face.ascent,10);this.descent=-parseInt(face.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(chars,letterSpacing,wordSpacing){var glyphs=this.glyphs,glyph,kerning,k,jumps=[],width=0,i=-1,j=-1,chr;while(chr=chars[++i]){glyph=glyphs[chr]||this.missingGlyph;if(!glyph)continue;if(kerning){width-=k=kerning[chr]||0;jumps[j]-=k;}
width+=jumps[++j]=~~(glyph.w||this.w)+letterSpacing+(wordSeparators[chr]?wordSpacing:0);kerning=glyph.k;}
jumps.total=width;return jumps;};}
function FontFamily(){var styles={},mapping={oblique:'italic',italic:'oblique'};this.add=function(font){(styles[font.style]||(styles[font.style]={}))[font.weight]=font;};this.get=function(style,weight){var weights=styles[style]||styles[mapping[style]]||styles.normal||styles.italic||styles.oblique;if(!weights)return null;weight={normal:400,bold:700}[weight]||parseInt(weight,10);if(weights[weight])return weights[weight];var up={1:1,99:0}[weight%100],alts=[],min,max;if(up===undefined)up=weight>400;if(weight==500)weight=400;for(var alt in weights){if(!hasOwnProperty(weights,alt))continue;alt=parseInt(alt,10);if(!min||alt<min)min=alt;if(!max||alt>max)max=alt;alts.push(alt);}
if(weight<min)weight=min;if(weight>max)weight=max;alts.sort(function(a,b){return(up?(a>=weight&&b>=weight)?a<b:a>b:(a<=weight&&b<=weight)?a>b:a<b)?-1:1;});return weights[alts[0]];};}
function HoverHandler(){function contains(node,anotherNode){if(node.contains)return node.contains(anotherNode);return node.compareDocumentPosition(anotherNode)&16;}
function onOverOut(e){var related=e.relatedTarget;if(!related||contains(this,related))return;trigger(this,e.type=='mouseover');}
function onEnterLeave(e){trigger(this,e.type=='mouseenter');}
function trigger(el,hoverState){setTimeout(function(){var options=sharedStorage.get(el).options;api.replace(el,hoverState?merge(options,options.hover):options,true);},10);}
this.attach=function(el){if(el.onmouseenter===undefined){addEvent(el,'mouseover',onOverOut);addEvent(el,'mouseout',onOverOut);}
else{addEvent(el,'mouseenter',onEnterLeave);addEvent(el,'mouseleave',onEnterLeave);}};}
function ReplaceHistory(){var list=[],map={};function filter(keys){var values=[],key;for(var i=0;key=keys[i];++i)values[i]=list[map[key]];return values;}
this.add=function(key,args){map[key]=list.push(args)-1;};this.repeat=function(){var snapshot=arguments.length?filter(arguments):list,args;for(var i=0;args=snapshot[i++];)api.replace(args[0],args[1],true);};}
function Storage(){var map={},at=0;function identify(el){return el.cufid||(el.cufid=++at);}
this.get=function(el){var id=identify(el);return map[id]||(map[id]={});};}
function Style(style){var custom={},sizes={};this.extend=function(styles){for(var property in styles){if(hasOwnProperty(styles,property))custom[property]=styles[property];}
return this;};this.get=function(property){return custom[property]!=undefined?custom[property]:style[property];};this.getSize=function(property,base){return sizes[property]||(sizes[property]=new CSS.Size(this.get(property),base));};this.isUsable=function(){return!!style;};}
function addEvent(el,type,listener){if(el.addEventListener){el.addEventListener(type,listener,false);}
else if(el.attachEvent){el.attachEvent('on'+type,function(){return listener.call(el,window.event);});}}
function attach(el,options){var storage=sharedStorage.get(el);if(storage.options)return el;if(options.hover&&options.hoverables[el.nodeName.toLowerCase()]){hoverHandler.attach(el);}
storage.options=options;return el;}
function cached(fun){var cache={};return function(key){if(!hasOwnProperty(cache,key))cache[key]=fun.apply(null,arguments);return cache[key];};}
function getFont(el,style){var families=CSS.quotedList(style.get('fontFamily').toLowerCase()),family;for(var i=0;family=families[i];++i){if(fonts[family])return fonts[family].get(style.get('fontStyle'),style.get('fontWeight'));}
return null;}
function elementsByTagName(query){return document.getElementsByTagName(query);}
function hasOwnProperty(obj,property){return obj.hasOwnProperty(property);}
function merge(){var merged={},arg,key;for(var i=0,l=arguments.length;arg=arguments[i],i<l;++i){for(key in arg){if(hasOwnProperty(arg,key))merged[key]=arg[key];}}
return merged;}
function process(font,text,style,options,node,el){var fragment=document.createDocumentFragment(),processed;if(text==='')return fragment;var separate=options.separate;var parts=text.split(separators[separate]),needsAligning=(separate=='words');if(needsAligning&&HAS_BROKEN_REGEXP){if(/^\s/.test(text))parts.unshift('');if(/\s$/.test(text))parts.push('');}
for(var i=0,l=parts.length;i<l;++i){processed=engines[options.engine](font,needsAligning?CSS.textAlign(parts[i],style,i,l):parts[i],style,options,node,el,i<l-1);if(processed)fragment.appendChild(processed);}
return fragment;}
function replaceElement(el,options){var name=el.nodeName.toLowerCase();if(options.ignore[name])return;var replace=!options.textless[name];var style=CSS.getStyle(attach(el,options)).extend(options);var font=getFont(el,style),node,type,next,anchor,text,lastElement;if(!font)return;for(node=el.firstChild;node;node=next){type=node.nodeType;next=node.nextSibling;if(replace&&type==3){if(anchor){anchor.appendData(node.data);el.removeChild(node);}
else anchor=node;if(next)continue;}
if(anchor){el.replaceChild(process(font,CSS.whiteSpace(anchor.data,style,anchor,lastElement),style,options,node,el),anchor);anchor=null;}
if(type==1){if(node.firstChild){if(node.nodeName.toLowerCase()=='cufon'){engines[options.engine](font,null,style,options,node,el);}
else arguments.callee(node,options);}
lastElement=node;}}}
var HAS_BROKEN_REGEXP=' '.split(/\s+/).length==0;var sharedStorage=new Storage();var hoverHandler=new HoverHandler();var replaceHistory=new ReplaceHistory();var initialized=false;var engines={},fonts={},defaultOptions={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(query){return jQuery(query);})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(query){return $$(query);})||(window.$&&function(query){return $(query);})||(document.querySelectorAll&&function(query){return document.querySelectorAll(query);})||elementsByTagName),separate:'words',textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:'none'};var separators={words:/\s/.test('\u00a0')?/[^\S\u00a0]+/:/\s+/,characters:'',none:/^/};api.now=function(){DOM.ready();return api;};api.refresh=function(){replaceHistory.repeat.apply(replaceHistory,arguments);return api;};api.registerEngine=function(id,engine){if(!engine)return api;engines[id]=engine;return api.set('engine',id);};api.registerFont=function(data){if(!data)return api;var font=new Font(data),family=font.family;if(!fonts[family])fonts[family]=new FontFamily();fonts[family].add(font);return api.set('fontFamily','"'+family+'"');};api.replace=function(elements,options,ignoreHistory){options=merge(defaultOptions,options);if(!options.engine)return api;if(!initialized){CSS.addClass(DOM.root(),'cufon-active cufon-loading');CSS.ready(function(){CSS.addClass(CSS.removeClass(DOM.root(),'cufon-loading'),'cufon-ready');});initialized=true;}
if(options.hover)options.forceHitArea=true;if(options.autoDetect)delete options.fontFamily;if(typeof options.textShadow=='string'){options.textShadow=CSS.textShadow(options.textShadow);}
if(typeof options.color=='string'&&/^-/.test(options.color)){options.textGradient=CSS.gradient(options.color);}
else delete options.textGradient;if(!ignoreHistory)replaceHistory.add(elements,arguments);if(elements.nodeType||typeof elements=='string')elements=[elements];CSS.ready(function(){for(var i=0,l=elements.length;i<l;++i){var el=elements[i];if(typeof el=='string')api.replace(options.selector(el),options,true);else replaceElement(el,options);}});return api;};api.set=function(option,value){defaultOptions[option]=value;return api;};return api;})();Cufon.registerEngine('vml',(function(){var ns=document.namespaces;if(!ns)return;ns.add('cvml','urn:schemas-microsoft-com:vml');ns=null;var check=document.createElement('cvml:shape');check.style.behavior='url(#default#VML)';if(!check.coordsize)return;check=null;var HAS_BROKEN_LINEHEIGHT=(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:'+
(HAS_BROKEN_LINEHEIGHT?'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 getFontSizeInPixels(el,value){return getSizeInPixels(el,/(?:em|ex|%)$|^[a-z-]+$/i.test(value)?'1em':value);}
function getSizeInPixels(el,value){if(value==='0')return 0;if(/px$/i.test(value))return parseFloat(value);var style=el.style.left,runtimeStyle=el.runtimeStyle.left;el.runtimeStyle.left=el.currentStyle.left;el.style.left=value.replace('%','em');var result=el.style.pixelLeft;el.style.left=style;el.runtimeStyle.left=runtimeStyle;return result;}
function getSpacingValue(el,style,size,property){var key='computed'+property,value=style[key];if(isNaN(value)){value=style.get(property);style[key]=value=(value=='normal')?0:~~size.convertFrom(getSizeInPixels(el,value));}
return value;}
var fills={};function gradientFill(gradient){var id=gradient.id;if(!fills[id]){var stops=gradient.stops,fill=document.createElement('cvml:fill'),colors=[];fill.type='gradient';fill.angle=180;fill.focus='0';fill.method='sigma';fill.color=stops[0][1];for(var j=1,k=stops.length-1;j<k;++j){colors.push(stops[j][0]*100+'% '+stops[j][1]);}
fill.colors=colors.join(',');fill.color2=stops[k][1];fills[id]=fill;}
return fills[id];}
return function(font,text,style,options,node,el,hasNext){var redraw=(text===null);if(redraw)text=node.alt;var viewBox=font.viewBox;var size=style.computedFontSize||(style.computedFontSize=new Cufon.CSS.Size(getFontSizeInPixels(el,style.get('fontSize'))+'px',font.baseSize));var wrapper,canvas;if(redraw){wrapper=node;canvas=node.firstChild;}
else{wrapper=document.createElement('cufon');wrapper.className='cufon cufon-vml';wrapper.alt=text;canvas=document.createElement('cufoncanvas');wrapper.appendChild(canvas);if(options.printable){var print=document.createElement('cufontext');print.appendChild(document.createTextNode(text));wrapper.appendChild(print);}
if(!hasNext)wrapper.appendChild(document.createElement('cvml:shape'));}
var wStyle=wrapper.style;var cStyle=canvas.style;var height=size.convert(viewBox.height),roundedHeight=Math.ceil(height);var roundingFactor=roundedHeight/height;var stretchFactor=roundingFactor*Cufon.CSS.fontStretch(style.get('fontStretch'));var minX=viewBox.minX,minY=viewBox.minY;cStyle.height=roundedHeight;cStyle.top=Math.round(size.convert(minY-font.ascent));cStyle.left=Math.round(size.convert(minX));wStyle.height=size.convert(font.height)+'px';var color=style.get('color');var chars=Cufon.CSS.textTransform(text,style).split('');var jumps=font.spacing(chars,getSpacingValue(el,style,size,'letterSpacing'),getSpacingValue(el,style,size,'wordSpacing'));if(!jumps.length)return null;var width=jumps.total;var fullWidth=-minX+width+(viewBox.width-jumps[jumps.length-1]);var shapeWidth=size.convert(fullWidth*stretchFactor),roundedShapeWidth=Math.round(shapeWidth);var coordSize=fullWidth+','+viewBox.height,coordOrigin;var stretch='r'+coordSize+'ns';var fill=options.textGradient&&gradientFill(options.textGradient);var glyphs=font.glyphs,offsetX=0;var shadows=options.textShadow;var i=-1,j=0,chr;while(chr=chars[++i]){var glyph=glyphs[chars[i]]||font.missingGlyph,shape;if(!glyph)continue;if(redraw){shape=canvas.childNodes[j];while(shape.firstChild)shape.removeChild(shape.firstChild);}
else{shape=document.createElement('cvml:shape');canvas.appendChild(shape);}
shape.stroked='f';shape.coordsize=coordSize;shape.coordorigin=coordOrigin=(minX-offsetX)+','+minY;shape.path=(glyph.d?'m'+glyph.d+'xe':'')+'m'+coordOrigin+stretch;shape.fillcolor=color;if(fill)shape.appendChild(fill.cloneNode(false));var sStyle=shape.style;sStyle.width=roundedShapeWidth;sStyle.height=roundedHeight;if(shadows){var shadow1=shadows[0],shadow2=shadows[1];var color1=Cufon.CSS.color(shadow1.color),color2;var shadow=document.createElement('cvml:shadow');shadow.on='t';shadow.color=color1.color;shadow.offset=shadow1.offX+','+shadow1.offY;if(shadow2){color2=Cufon.CSS.color(shadow2.color);shadow.type='double';shadow.color2=color2.color;shadow.offset2=shadow2.offX+','+shadow2.offY;}
shadow.opacity=color1.opacity||(color2&&color2.opacity)||1;shape.appendChild(shadow);}
offsetX+=jumps[j++];}
var cover=shape.nextSibling,coverFill,vStyle;if(options.forceHitArea){if(!cover){cover=document.createElement('cvml:rect');cover.stroked='f';cover.className='cufon-vml-cover';coverFill=document.createElement('cvml:fill');coverFill.opacity=0;cover.appendChild(coverFill);canvas.appendChild(cover);}
vStyle=cover.style;vStyle.width=roundedShapeWidth;vStyle.height=roundedHeight;}
else if(cover)canvas.removeChild(cover);wStyle.width=Math.max(Math.ceil(size.convert(width*stretchFactor)),0);if(HAS_BROKEN_LINEHEIGHT){var yAdjust=style.computedYAdjust;if(yAdjust===undefined){var lineHeight=style.get('lineHeight');if(lineHeight=='normal')lineHeight='1em';else if(!isNaN(lineHeight))lineHeight+='em';style.computedYAdjust=yAdjust=0.5*(getSizeInPixels(el,lineHeight)-parseFloat(wStyle.height));}
if(yAdjust){wStyle.marginTop=Math.ceil(yAdjust)+'px';wStyle.marginBottom=yAdjust+'px';}}
return wrapper;};})());Cufon.registerEngine('canvas',(function(){var check=document.createElement('canvas');if(!check||!check.getContext||!check.getContext.apply)return;check=null;var HAS_INLINE_BLOCK=Cufon.CSS.supports('display','inline-block');var HAS_BROKEN_LINEHEIGHT=!HAS_INLINE_BLOCK&&(document.compatMode=='BackCompat'||/frameset|transitional/i.test(document.doctype.publicId));var styleSheet=document.createElement('style');styleSheet.type='text/css';styleSheet.appendChild(document.createTextNode(('cufon{text-indent:0;}'+'@media screen,projection{'+'cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;'+
(HAS_BROKEN_LINEHEIGHT?'':'font-size:1px;line-height:1px;')+'}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}'+
(HAS_INLINE_BLOCK?'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(styleSheet);function generateFromVML(path,context){var atX=0,atY=0;var code=[],re=/([mrvxe])([^a-z]*)/g,match;generate:for(var i=0;match=re.exec(path);++i){var c=match[2].split(',');switch(match[1]){case'v':code[i]={m:'bezierCurveTo',a:[atX+~~c[0],atY+~~c[1],atX+~~c[2],atY+~~c[3],atX+=~~c[4],atY+=~~c[5]]};break;case'r':code[i]={m:'lineTo',a:[atX+=~~c[0],atY+=~~c[1]]};break;case'm':code[i]={m:'moveTo',a:[atX=~~c[0],atY=~~c[1]]};break;case'x':code[i]={m:'closePath'};break;case'e':break generate;}
context[code[i].m].apply(context,code[i].a);}
return code;}
function interpret(code,context){for(var i=0,l=code.length;i<l;++i){var line=code[i];context[line.m].apply(context,line.a);}}
return function(font,text,style,options,node,el){var redraw=(text===null);if(redraw)text=node.getAttribute('alt');var viewBox=font.viewBox;var size=style.getSize('fontSize',font.baseSize);var expandTop=0,expandRight=0,expandBottom=0,expandLeft=0;var shadows=options.textShadow,shadowOffsets=[];if(shadows){for(var i=shadows.length;i--;){var shadow=shadows[i];var x=size.convertFrom(parseFloat(shadow.offX));var y=size.convertFrom(parseFloat(shadow.offY));shadowOffsets[i]=[x,y];if(y<expandTop)expandTop=y;if(x>expandRight)expandRight=x;if(y>expandBottom)expandBottom=y;if(x<expandLeft)expandLeft=x;}}
var chars=Cufon.CSS.textTransform(text,style).split('');var jumps=font.spacing(chars,~~size.convertFrom(parseFloat(style.get('letterSpacing'))||0),~~size.convertFrom(parseFloat(style.get('wordSpacing'))||0));if(!jumps.length)return null;var width=jumps.total;expandRight+=viewBox.width-jumps[jumps.length-1];expandLeft+=viewBox.minX;var wrapper,canvas;if(redraw){wrapper=node;canvas=node.firstChild;}
else{wrapper=document.createElement('cufon');wrapper.className='cufon cufon-canvas';wrapper.setAttribute('alt',text);canvas=document.createElement('canvas');wrapper.appendChild(canvas);if(options.printable){var print=document.createElement('cufontext');print.appendChild(document.createTextNode(text));wrapper.appendChild(print);}}
var wStyle=wrapper.style;var cStyle=canvas.style;var height=size.convert(viewBox.height);var roundedHeight=Math.ceil(height);var roundingFactor=roundedHeight/height;var stretchFactor=roundingFactor*Cufon.CSS.fontStretch(style.get('fontStretch'));var stretchedWidth=width*stretchFactor;var canvasWidth=Math.ceil(size.convert(stretchedWidth+expandRight-expandLeft));var canvasHeight=Math.ceil(size.convert(viewBox.height-expandTop+expandBottom));canvas.width=canvasWidth;canvas.height=canvasHeight;cStyle.width=canvasWidth+'px';cStyle.height=canvasHeight+'px';expandTop+=viewBox.minY;cStyle.top=Math.round(size.convert(expandTop-font.ascent))+'px';cStyle.left=Math.round(size.convert(expandLeft))+'px';var wrapperWidth=Math.max(Math.ceil(size.convert(stretchedWidth)),0)+'px';if(HAS_INLINE_BLOCK){wStyle.width=wrapperWidth;wStyle.height=size.convert(font.height)+'px';}
else{wStyle.paddingLeft=wrapperWidth;wStyle.paddingBottom=(size.convert(font.height)-1)+'px';}
var g=canvas.getContext('2d'),scale=height/viewBox.height;g.scale(scale,scale*roundingFactor);g.translate(-expandLeft,-expandTop);g.save();function renderText(){var glyphs=font.glyphs,glyph,i=-1,j=-1,chr;g.scale(stretchFactor,1);while(chr=chars[++i]){var glyph=glyphs[chars[i]]||font.missingGlyph;if(!glyph)continue;if(glyph.d){g.beginPath();if(glyph.code)interpret(glyph.code,g);else glyph.code=generateFromVML('m'+glyph.d,g);g.fill();}
g.translate(jumps[++j],0);}
g.restore();}
if(shadows){for(var i=shadows.length;i--;){var shadow=shadows[i];g.save();g.fillStyle=shadow.color;g.translate.apply(g,shadowOffsets[i]);renderText();}}
var gradient=options.textGradient;if(gradient){var stops=gradient.stops,fill=g.createLinearGradient(0,viewBox.minY,0,viewBox.maxY);for(var i=0,l=stops.length;i<l;++i){fill.addColorStop.apply(fill,stops[i]);}
g.fillStyle=fill;}
else g.fillStyle=style.get('color');renderText();return wrapper;};})());

Cufon.registerFont({"w":200,"face":{"font-family":"Helvetica Neue","font-weight":300,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 4 3 0 0 0 2 0 4","ascent":"288","descent":"-72","x-height":"5","bbox":"-11 -291 327 77","underline-thickness":"18","underline-position":"-27","unicode-range":"U+0020-U+2122"},"glyphs":{" ":{"w":100},"!":{"d":"28,0r31,0r0,-38r-31,0r0,38xm31,-180r6,116r13,0r6,-116r0,-77r-25,0r0,77","w":86},"\"":{"d":"79,-257r0,87r23,0r0,-87r-23,0xm31,-257r0,87r23,0r0,-87r-23,0","w":133},"#":{"d":"80,-153r51,0r-8,57r-51,0xm179,-80r0,-16r-38,0r8,-57r40,0r0,-16r-38,0r11,-80r-18,0r-11,80r-51,0r12,-80r-18,0r-12,80r-41,0r0,16r39,0r-8,57r-41,0r0,16r39,0r-11,80r18,0r11,-80r51,0r-11,80r18,0r11,-80r40,0"},"$":{"d":"93,-14v-38,-5,-59,-26,-60,-68r-23,0v2,57,28,82,83,87r0,31r14,0r0,-31v48,-2,83,-24,83,-72v0,-51,-41,-63,-83,-73r0,-103v32,0,54,26,53,59r23,0v-2,-47,-28,-77,-76,-78r0,-29r-14,0r0,29v-47,0,-75,25,-76,70v-1,50,36,63,76,72r0,106xm93,-143v-56,5,-73,-80,-21,-97v6,-2,14,-3,21,-3r0,100xm107,-14r0,-103v58,-2,85,83,22,100v-7,2,-14,3,-22,3"},"%":{"d":"139,-186v0,-41,-16,-68,-57,-68v-41,0,-57,27,-57,68v0,41,17,68,57,68v40,0,57,-27,57,-68xm202,-62v0,-27,8,-52,38,-52v30,0,38,25,38,52v0,27,-10,51,-38,51v-29,0,-38,-24,-38,-51xm297,-63v0,-41,-18,-68,-57,-68v-39,0,-57,27,-57,68v0,41,16,68,57,68v41,0,57,-27,57,-68xm231,-261r-163,273r18,0r162,-273r-17,0xm44,-186v0,-28,9,-52,38,-52v28,0,38,24,38,52v0,28,-10,52,-38,52v-29,0,-38,-24,-38,-52","w":320},"&":{"d":"97,-153v-26,-17,-47,-82,5,-85v34,-2,45,45,21,64v-7,9,-16,15,-26,21xm14,-67v-6,86,122,89,153,34r28,33r28,0r-43,-52v10,-17,14,-40,15,-62r-23,0v0,20,0,30,-7,43r-56,-67v22,-17,50,-30,50,-67v0,-34,-24,-52,-57,-52v-34,0,-57,19,-57,52v0,29,20,44,32,62v-29,16,-60,35,-63,76xm93,-14v-50,0,-73,-58,-39,-89v10,-9,23,-18,35,-25r64,78v-13,18,-31,36,-60,36","w":219},"'":{"d":"39,-257r0,87r23,0r0,-87r-23,0","w":100},"(":{"d":"18,-96v0,71,24,118,51,164r18,0v-59,-79,-60,-249,0,-330r-18,0v-29,45,-51,98,-51,166","w":86},")":{"d":"68,-98v0,-72,-23,-118,-50,-164r-18,0v57,81,61,247,0,330r18,0v29,-45,50,-97,50,-166","w":86},"*":{"d":"10,-214r41,14r-26,35r11,8r27,-36r26,36r11,-8r-25,-35r42,-14r-5,-14r-42,15r0,-44r-14,0r0,44r-41,-15","w":126},"+":{"d":"99,-181r0,81r-81,0r0,19r81,0r0,81r19,0r0,-81r81,0r0,-19r-81,0r0,-81r-19,0","w":216},",":{"d":"33,49v32,-8,34,-46,32,-87r-30,0r0,38r15,0v1,15,-5,29,-17,33r0,16","w":100},"-":{"d":"22,-89r90,0r0,-20r-90,0r0,20","w":133},".":{"d":"35,0r30,0r0,-38r-30,0r0,38","w":100},"\/":{"d":"-4,5r19,0r110,-267r-19,0","w":119},"0":{"d":"188,-125v0,-69,-17,-129,-88,-129v-70,0,-88,61,-88,130v0,68,18,129,88,129v71,0,88,-61,88,-130xm35,-125v0,-55,10,-110,65,-110v55,0,65,55,65,110v0,55,-9,111,-65,111v-55,0,-65,-56,-65,-111"},"1":{"d":"106,-252v-4,39,-29,49,-71,49r0,16r67,0r0,187r22,0r0,-252r-18,0"},"2":{"d":"99,-235v56,-4,70,65,35,99v-43,42,-117,55,-121,136r166,0r0,-21r-140,0v24,-75,133,-68,139,-162v6,-88,-140,-93,-154,-18v-3,11,-5,23,-5,36r23,0v-2,-43,17,-67,57,-70"},"3":{"d":"98,-14v-41,0,-64,-23,-63,-66r-23,0v-4,57,33,85,86,85v51,0,87,-25,87,-76v0,-35,-20,-58,-52,-63v26,-5,40,-27,42,-56v4,-69,-99,-81,-136,-41v-13,14,-22,34,-21,60r22,0v1,-38,19,-64,58,-64v33,0,55,15,55,47v0,37,-31,49,-71,46r0,19v47,-3,80,11,80,54v0,36,-27,55,-64,55"},"4":{"d":"127,-82r-96,0r96,-137r0,137xm11,-85r0,22r116,0r0,63r21,0r0,-63r38,0r0,-19r-38,0r0,-170r-21,0"},"5":{"d":"98,-14v-38,0,-60,-21,-62,-58r-23,0v3,49,32,77,83,77v53,0,83,-33,87,-85v6,-76,-88,-113,-138,-64r16,-84r110,0r0,-21r-126,0r-24,131r19,0v27,-50,127,-32,121,36v-3,39,-22,68,-63,68"},"6":{"d":"107,-235v30,-1,48,21,52,47r23,0v-6,-43,-30,-66,-78,-66v-68,2,-90,59,-90,125v0,76,14,135,89,134v52,-1,85,-33,85,-85v0,-52,-30,-82,-83,-84v-33,-2,-56,22,-68,42v2,-57,12,-112,70,-113xm42,-78v1,-41,21,-67,62,-67v41,0,61,27,61,67v0,38,-22,64,-60,64v-41,0,-63,-23,-63,-64"},"7":{"d":"78,0v5,-101,52,-174,102,-228r0,-21r-162,0r0,21r140,0v-55,62,-96,124,-104,228r24,0"},"8":{"d":"154,-191v0,31,-22,47,-54,47v-32,0,-54,-16,-54,-47v0,-29,24,-44,54,-44v31,0,54,13,54,44xm135,-135v22,-9,42,-25,41,-56v-1,-44,-34,-63,-76,-63v-43,0,-76,20,-77,63v-1,31,19,46,41,56v-30,5,-51,30,-51,64v1,52,37,76,87,76v51,0,86,-24,87,-76v0,-36,-20,-58,-52,-64xm164,-71v0,39,-25,56,-64,57v-39,0,-64,-19,-64,-57v0,-37,26,-54,64,-54v37,0,64,17,64,54"},"9":{"d":"94,-14v-30,1,-49,-20,-53,-46r-23,0v6,43,31,66,78,65v68,-1,90,-58,90,-125v0,-77,-14,-134,-88,-134v-54,1,-86,33,-86,85v0,52,31,83,83,84v32,2,56,-21,68,-41v-1,57,-13,109,-69,112xm158,-170v-1,40,-22,66,-62,66v-40,0,-61,-26,-61,-66v0,-39,22,-65,60,-65v42,0,63,23,63,65"},":":{"d":"35,0r30,0r0,-38r-30,0r0,38xm35,-142r30,0r0,-38r-30,0r0,38","w":100},";":{"d":"35,-142r30,0r0,-38r-30,0r0,38xm33,49v32,-8,34,-46,32,-87r-30,0r0,38r15,0v1,15,-5,29,-17,33r0,16","w":100},"<":{"d":"199,3r0,-20r-160,-74r160,-74r0,-20r-182,84r0,20","w":216},"=":{"d":"199,-46r0,-19r-181,0r0,19r181,0xm199,-117r0,-19r-181,0r0,19r181,0","w":216},">":{"d":"177,-91r-160,74r0,20r182,-84r0,-20r-182,-84r0,20","w":216},"?":{"d":"83,-38r0,38r30,0r0,-38r-30,0xm174,-196v3,-69,-94,-84,-133,-43v-13,14,-22,34,-22,61r23,0v0,-40,19,-65,58,-65v31,0,52,19,52,48v0,59,-72,59,-65,131r22,0v-6,-71,62,-67,65,-132","w":193},"@":{"d":"191,-62v-13,-1,-8,-21,-5,-30r35,-104r-19,0r-9,24v-6,-18,-18,-31,-38,-31v-56,0,-86,49,-86,104v0,31,18,53,48,53v19,0,36,-14,46,-24v1,15,11,24,25,24v52,0,83,-48,83,-104v0,-73,-50,-112,-122,-112v-79,0,-126,52,-132,132v-9,136,187,180,245,71r-19,0v-20,26,-49,48,-93,48v-70,0,-114,-46,-114,-116v0,-72,43,-119,114,-119v61,0,102,33,102,94v0,44,-22,83,-61,90xm92,-100v2,-42,22,-79,61,-84v18,2,27,16,29,34v-5,39,-21,84,-60,84v-18,0,-30,-14,-30,-34","w":288},"A":{"d":"62,-101r52,-132r49,132r-101,0xm101,-257r-103,257r26,0r31,-80r117,0r31,80r26,0r-100,-257r-28,0","w":226,"k":{"\u2019":31,"y":6,"w":6,"v":6,"Y":27,"W":2,"V":18,"T":24}},"B":{"d":"193,-188v-4,58,-84,42,-143,44r0,-92v59,2,147,-14,143,48xm217,-194v0,-84,-110,-59,-191,-63r0,257v89,-2,202,18,201,-73v0,-35,-23,-59,-55,-63v27,-7,45,-26,45,-58xm202,-74v0,70,-86,50,-152,53r0,-102v63,3,152,-17,152,49","w":240},"C":{"d":"135,-242v43,0,71,25,79,63r24,0v-8,-52,-45,-83,-103,-83v-80,0,-113,53,-121,133v-12,129,165,182,217,74v6,-13,9,-27,11,-43r-25,0v-6,48,-32,83,-82,83v-67,0,-97,-49,-97,-114v0,-65,31,-113,97,-113","w":253},"D":{"d":"233,-129v0,-84,-39,-128,-118,-128r-89,0r0,257r89,0v80,-3,118,-45,118,-129xm208,-129v0,95,-60,116,-158,108r0,-215v97,-7,158,12,158,107","w":246},"E":{"d":"26,-257r0,257r179,0r0,-21r-155,0r0,-101r144,0r0,-21r-144,0r0,-93r153,0r0,-21r-177,0","w":213},"F":{"d":"26,-257r0,257r24,0r0,-122r124,0r0,-21r-124,0r0,-93r139,0r0,-21r-163,0","w":193,"k":{"A":20,".":46,",":46}},"G":{"d":"135,5v46,1,73,-22,90,-52r3,47r18,0r0,-131r-110,0r0,21r88,0v0,59,-31,95,-89,95v-67,0,-97,-49,-97,-114v0,-65,31,-113,97,-113v46,0,75,27,83,65r24,0v-10,-53,-46,-85,-107,-85v-80,0,-121,53,-121,133v0,81,41,132,121,134","w":266},"H":{"d":"26,-257r0,257r24,0r0,-125r153,0r0,125r25,0r0,-257r-25,0r0,112r-153,0r0,-112r-24,0","w":253},"I":{"d":"28,-257r0,257r24,0r0,-257r-24,0","w":79},"J":{"d":"79,5v52,0,75,-24,75,-77r0,-185r-24,0r0,175v-1,40,-8,67,-49,67v-40,0,-49,-29,-49,-67r-24,0v-1,53,18,88,71,87","w":180},"K":{"d":"26,-257r0,257r24,0r0,-88r50,-46r107,134r31,0r-120,-151r115,-106r-33,0r-150,138r0,-138r-24,0","w":233},"L":{"d":"26,-257r0,257r168,0r0,-21r-144,0r0,-236r-24,0","w":193,"k":{"\u2019":35,"y":13,"Y":40,"W":20,"V":33,"T":33}},"M":{"d":"25,-257r0,257r25,0r0,-222r89,222r23,0r88,-222r0,222r25,0r0,-257r-36,0r-89,225r-89,-225r-36,0","w":299},"N":{"d":"26,-257r0,257r24,0r1,-217r150,217r27,0r0,-257r-25,0r0,217r-150,-217r-27,0","w":253},"O":{"d":"134,-15v-66,0,-97,-48,-97,-114v0,-66,32,-113,97,-113v66,0,96,49,96,113v0,65,-30,114,-96,114xm134,-262v-81,0,-122,54,-122,133v0,80,41,134,122,134v80,0,121,-55,121,-134v0,-79,-41,-133,-121,-133","w":266},"P":{"d":"192,-184v0,67,-78,52,-142,53r0,-105v63,2,142,-15,142,52xm216,-184v0,-91,-104,-71,-190,-73r0,257r24,0r0,-110v81,1,166,10,166,-74","w":226,"k":{"A":27,".":55,",":55}},"Q":{"d":"12,-129v0,80,41,132,122,134v27,0,48,-7,66,-19r40,30r12,-15r-36,-28v25,-22,39,-59,39,-102v0,-79,-41,-133,-121,-133v-81,0,-122,54,-122,133xm134,-242v100,-5,122,143,63,201r-37,-28r-13,15r34,26v-73,38,-149,-17,-144,-101v4,-66,32,-110,97,-113","w":266},"R":{"d":"197,-185v0,66,-84,48,-147,50r0,-101v63,3,147,-18,147,51xm222,-190v1,-88,-111,-64,-196,-67r0,257r24,0r0,-114r93,0v63,-4,43,71,59,114r27,0v-11,-14,-12,-41,-12,-66v0,-34,-17,-52,-45,-59v32,-5,50,-31,50,-65","w":240,"k":{"y":-9,"Y":5,"W":-2,"V":-2,"T":-2}},"S":{"d":"121,-15v-50,0,-84,-19,-84,-70r-24,0v-3,65,41,84,103,90v89,9,135,-96,57,-132v-35,-16,-85,-17,-116,-36v-29,-35,5,-84,53,-79v39,4,68,20,70,59r25,0v-3,-53,-41,-73,-95,-79v-82,-8,-121,93,-53,127v45,22,132,8,132,67v0,37,-33,53,-68,53","w":226},"T":{"d":"-1,-257r0,21r89,0r0,236r24,0r0,-236r90,0r0,-21r-203,0","k":{"y":40,"w":40,"u":33,"s":40,"r":33,"o":40,"i":-9,"e":40,"c":40,"a":40,"A":24,";":40,":":40,".":40,"-":46,",":40}},"U":{"d":"123,-15v-109,0,-67,-145,-75,-242r-25,0r0,164v2,62,36,98,100,98v64,0,100,-34,100,-98r0,-164r-24,0v-8,98,34,242,-76,242","w":246},"V":{"d":"-2,-257r95,257r28,0r96,-257r-26,0r-84,230r-83,-230r-26,0","w":213,"k":{"y":6,"u":13,"r":13,"o":20,"i":-2,"e":20,"a":20,"A":20,";":27,":":27,".":46,"-":20,",":46}},"W":{"d":"0,-257r71,257r27,0r65,-230r66,230r26,0r70,-257r-24,0r-59,225r-63,-225r-31,0r-63,225r-59,-225r-26,0","w":326,"k":{"u":6,"r":6,"o":6,"i":-9,"e":6,"a":13,"A":6,";":6,":":6,".":27,",":27}},"X":{"d":"1,-257r87,125r-92,132r27,0r80,-113r78,113r29,0r-93,-132r88,-125r-27,0r-75,108r-73,-108r-29,0","w":206},"Y":{"d":"98,-106r0,106r24,0r0,-106r102,-151r-30,0r-84,130r-84,-130r-29,0","w":219,"k":{"v":20,"u":27,"q":33,"p":27,"o":33,"i":3,"e":33,"a":33,"A":27,";":33,":":33,".":36,"-":40,",":44}},"Z":{"d":"13,-257r0,21r158,0r-169,214r0,22r200,0r0,-21r-173,0r169,-214r0,-22r-185,0","w":206},"[":{"d":"27,68r58,0r0,-19r-35,0r0,-292r35,0r0,-19r-58,0r0,330","w":86},"\\":{"d":"105,5r20,0r-111,-267r-18,0","w":119},"]":{"d":"59,-262r-58,0r0,19r36,0r0,292r-36,0r0,19r58,0r0,-330","w":86},"^":{"d":"16,-86r21,0r71,-140r72,140r20,0r-83,-163r-18,0","w":216},"_":{"d":"0,45r180,0r0,-18r-180,0r0,18","w":180},"`":{"d":"-11,-262r47,50r19,0r-38,-50r-28,0","w":66},"a":{"d":"163,-131v9,-75,-113,-76,-137,-26v-4,8,-6,17,-7,28r23,0v0,-29,21,-43,50,-43v28,1,51,8,48,38v-5,57,-128,-3,-128,85v0,38,25,53,62,54v37,2,52,-17,68,-37v-2,26,15,37,42,31r0,-20v-9,5,-21,1,-21,-12r0,-98xm34,-50v0,-50,75,-29,106,-52v5,55,-15,87,-64,88v-24,0,-42,-13,-42,-36","w":186},"b":{"d":"109,-191v-35,0,-53,18,-65,41r0,-107r-22,0r0,257r20,0v1,-11,-2,-26,1,-35v9,24,34,40,66,40v57,-2,84,-41,84,-98v0,-57,-27,-96,-84,-98xm109,-172v43,0,61,34,61,79v0,45,-18,79,-61,79v-46,0,-65,-34,-65,-79v0,-45,19,-79,65,-79","w":206},"c":{"d":"100,-172v32,-1,46,19,53,45r22,0v-4,-40,-33,-65,-75,-64v-58,1,-82,41,-88,98v-10,106,154,138,165,26r-23,0v-4,30,-22,53,-54,53v-44,0,-65,-34,-65,-79v0,-45,21,-78,65,-79","w":186},"d":{"d":"97,5v33,0,55,-18,67,-40r0,35r21,0r0,-257r-23,0r0,107v-10,-24,-31,-41,-65,-41v-57,1,-83,41,-83,98v0,57,26,98,83,98xm97,-14v-44,0,-61,-36,-61,-79v0,-43,17,-79,61,-79v46,0,65,33,65,79v0,46,-19,79,-65,79","w":206},"e":{"d":"35,-106v-3,-67,96,-90,116,-25v3,8,4,16,4,25r-120,0xm154,-61v-3,48,-78,63,-105,23v-8,-12,-14,-30,-14,-49r143,0v0,-59,-23,-104,-82,-104v-58,0,-84,42,-84,98v0,58,26,97,84,98v50,1,72,-26,81,-66r-23,0","w":186},"f":{"d":"98,-256v-50,-8,-70,18,-64,70r-32,0r0,19r32,0r0,167r23,0r0,-167r36,0r0,-19r-36,0v-4,-34,3,-61,41,-50r0,-20","w":93,"k":{"\u2019":-6,"f":6}},"g":{"d":"96,74v120,5,74,-154,83,-260r-23,0v-1,10,2,24,-1,32v-10,-20,-29,-37,-59,-37v-56,0,-84,39,-84,93v0,57,26,95,84,96v30,0,48,-18,60,-38v3,55,-7,96,-60,95v-29,-1,-49,-12,-54,-37r-23,0v5,39,36,55,77,56xm156,-95v0,41,-19,74,-60,74v-42,0,-61,-33,-61,-74v0,-44,18,-77,61,-77v43,0,60,35,60,77"},"h":{"d":"104,-191v-28,0,-51,18,-60,37r0,-103r-23,0r0,257r23,0v3,-74,-19,-172,58,-172v74,0,39,106,47,172r23,0v-5,-83,26,-191,-68,-191","w":193},"i":{"d":"22,-257r0,36r23,0r0,-36r-23,0xm22,-186r0,186r23,0r0,-186r-23,0","w":66},"j":{"d":"22,-257r0,36r23,0r0,-36r-23,0xm-10,68v40,4,56,-15,55,-51r0,-203r-23,0r0,208v1,21,-11,31,-32,27r0,19","w":66},"k":{"d":"22,-257r0,257r22,0r0,-71r37,-30r73,101r29,0r-85,-117r79,-69r-30,0r-103,90r0,-161r-22,0","w":180},"l":{"d":"22,-257r0,257r23,0r0,-257r-23,0","w":66},"m":{"d":"104,-191v-33,-1,-47,18,-62,37r0,-32r-20,0r0,186r22,0v4,-72,-20,-172,56,-172v27,1,39,18,39,46r0,126r22,0v5,-69,-22,-171,51,-172v73,-1,35,109,44,172r22,0v-5,-78,26,-195,-61,-191v-27,1,-50,14,-59,36v-5,-23,-28,-36,-54,-36","w":299},"n":{"d":"104,-191v-28,0,-51,18,-60,37r0,-32r-23,0r0,186r23,0v3,-74,-19,-172,58,-172v74,0,39,106,47,172r23,0v-5,-83,26,-191,-68,-191","w":193},"o":{"d":"35,-93v0,-45,21,-79,65,-79v45,0,65,35,65,79v0,44,-20,79,-65,79v-44,0,-65,-34,-65,-79xm188,-93v0,-57,-30,-98,-88,-98v-58,0,-88,41,-88,98v0,57,30,98,88,98v58,0,88,-41,88,-98"},"p":{"d":"109,-191v-33,-1,-56,18,-67,41r0,-36r-20,0r0,254r22,0r1,-103v10,24,31,40,64,40v57,0,84,-41,84,-98v0,-57,-27,-96,-84,-98xm109,-172v43,0,61,34,61,79v0,45,-18,79,-61,79v-46,0,-65,-34,-65,-79v0,-47,18,-79,65,-79","w":206},"q":{"d":"97,5v34,0,54,-17,65,-40r0,103r23,0r0,-254r-21,0v-1,11,2,27,-1,36v-9,-25,-34,-41,-66,-41v-57,0,-83,41,-83,98v0,57,26,97,83,98xm97,-14v-44,0,-61,-36,-61,-79v0,-43,17,-79,61,-79v46,0,65,33,65,79v0,46,-19,79,-65,79","w":206},"r":{"d":"113,-188v-38,-2,-58,20,-71,46r0,-44r-20,0r0,186r22,0r0,-99v2,-42,27,-65,69,-67r0,-22","w":113,"k":{"q":6,"o":6,"n":-6,"e":6,"d":6,"c":6,".":33,"-":20,",":33}},"s":{"d":"84,-172v29,0,48,13,49,41r23,0v-3,-39,-27,-60,-69,-60v-61,0,-96,68,-38,95v30,14,85,5,90,47v-3,25,-23,35,-50,35v-31,0,-54,-17,-55,-46r-23,0v3,45,31,60,76,65v78,9,104,-94,22,-107v-28,-4,-69,-6,-69,-38v0,-24,21,-32,44,-32","w":173},"t":{"d":"95,-18v-21,4,-37,1,-37,-23r0,-126r37,0r0,-19r-37,0r0,-56r-23,0r0,56r-32,0r0,19r32,0r0,127v-2,40,21,44,60,41r0,-19","w":106},"u":{"d":"86,5v32,0,52,-18,65,-38r0,33r21,0r0,-186r-23,0v-3,72,18,169,-55,172v-78,3,-42,-105,-50,-172r-23,0v5,81,-25,191,65,191","w":193},"v":{"d":"1,-186r71,186r24,0r70,-186r-23,0r-59,163r-58,-163r-25,0","w":166,"k":{".":27,",":27}},"w":{"d":"3,-186r60,186r24,0r47,-156r45,156r25,0r60,-186r-24,0r-48,159r-46,-159r-25,0r-46,159r-48,-159r-24,0","w":266,"k":{".":20,",":20}},"x":{"d":"72,-96r-72,96r28,0r58,-78r58,78r29,0r-73,-97r67,-89r-28,0r-52,71r-53,-71r-28,0","w":173},"y":{"d":"1,-186r74,185v-10,25,-15,58,-56,49v-8,22,14,23,35,18v18,-5,24,-20,31,-38r81,-214r-23,0r-57,159r-61,-159r-24,0","w":166,"k":{".":33,",":33}},"z":{"d":"33,-19r123,-151r0,-16r-142,0r0,19r113,0r-122,149r0,18r156,0r0,-19r-128,0","w":166},"{":{"d":"30,-87v65,18,-23,170,75,155r0,-19v-57,-2,-1,-124,-52,-146v28,-15,25,-64,25,-109v0,-19,3,-40,27,-37r0,-19v-57,-10,-49,46,-49,98v0,27,-2,56,-26,58r0,19","w":119},"|":{"d":"31,-283r0,360r19,0r0,-360r-19,0","w":79},"}":{"d":"64,-164v-1,-49,11,-109,-50,-98r0,19v40,-3,25,51,27,87v2,28,11,48,26,60v-28,14,-27,63,-26,108v0,21,-3,40,-27,37r0,19v57,10,50,-45,50,-98v0,-26,1,-56,26,-57r0,-20v-25,-1,-25,-31,-26,-57","w":119},"~":{"d":"68,-93v43,10,98,46,123,-7r-13,-13v-7,10,-15,24,-31,24v-40,-10,-100,-45,-122,8r13,13v5,-11,14,-25,30,-25","w":216},"\u2122":{"d":"171,-109r19,0r1,-131r53,131r11,0r53,-131r0,131r19,0r0,-148r-31,0r-46,120r-48,-120r-31,0r0,148xm78,-109r19,0r0,-132r48,0r0,-16r-115,0r0,16r48,0r0,132","w":356},"\u2026":{"d":"285,0r30,0r0,-38r-30,0r0,38xm165,0r30,0r0,-38r-30,0r0,38xm45,0r30,0r0,-38r-30,0r0,38","w":360},"\u2013":{"d":"0,-89r180,0r0,-20r-180,0r0,20","w":180},"\u2014":{"d":"47,-89r266,0r0,-20r-266,0r0,20","w":360},"\u201c":{"d":"55,-257v-32,8,-34,46,-32,87r30,0r0,-38r-15,0v1,-15,6,-29,17,-34r0,-15xm111,-257v-33,7,-35,45,-33,87r31,0r0,-38r-15,0v-1,-16,6,-29,17,-34r0,-15","w":133},"\u201d":{"d":"23,-170v32,-7,34,-46,32,-87r-31,0r0,38r16,0v-1,15,-5,30,-17,34r0,15xm78,-170v32,-7,34,-46,32,-87r-30,0r0,38r15,0v-1,15,-5,30,-17,34r0,15","w":133},"\u2018":{"d":"66,-257v-32,8,-34,46,-32,87r30,0r0,-38r-15,0v1,-15,6,-29,17,-34r0,-15","w":100,"k":{"\u2018":43}},"\u2019":{"d":"34,-170v32,-7,34,-46,32,-87r-30,0r0,38r15,0v-1,15,-5,30,-17,34r0,15","w":100,"k":{"\u2019":43,"t":6,"s":40}},"\u00d7":{"d":"27,-158r67,68r-67,68r13,13r68,-68r68,68r13,-13r-68,-68r68,-68r-13,-14r-68,68r-68,-68","w":216},"\u00a0":{"w":100}}});

(function(d){var k=d.browser.msie&&parseInt(d.browser.version)===6&&typeof window.XMLHttpRequest!=="object",m=d.browser.msie&&parseInt(d.browser.version)===7,l=null,f=[];d.modal=function(a,b){return d.modal.impl.init(a,b)};d.modal.close=function(){d.modal.impl.close()};d.modal.focus=function(a){d.modal.impl.focus(a)};d.modal.setContainerDimensions=function(){d.modal.impl.setContainerDimensions()};d.modal.setPosition=function(){d.modal.impl.setPosition()};d.modal.update=function(a,b){d.modal.impl.update(a,b)};d.fn.modal=function(a){return d.modal.impl.init(this,a)};d.modal.defaults={appendTo:"body",focus:true,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:false,autoPosition:true,zIndex:1E3,close:true,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",escClose:true,overlayClose:false,position:null,persist:false,modal:true,onOpen:null,onShow:null,onClose:null};d.modal.impl={d:{},init:function(a,b){var c=this;if(c.d.data)return false;l=d.browser.msie&&!d.boxModel;c.o=d.extend({},d.modal.defaults,b);c.zIndex=c.o.zIndex;c.occb=false;if(typeof a==="object"){a=a instanceof jQuery?a:d(a);c.d.placeholder=false;if(a.parent().parent().size()>0){a.before(d("<span></span>").attr("id","simplemodal-placeholder").css({display:"none"}));c.d.placeholder=true;c.display=a.css("display");if(!c.o.persist)c.d.orig=a.clone(true)}}else if(typeof a==="string"||typeof a==="number")a=d("<div></div>").html(a);else{alert("SimpleModal Error: Unsupported data type: "+typeof a);return c}c.create(a);c.open();d.isFunction(c.o.onShow)&&c.o.onShow.apply(c,[c.d]);return c},create:function(a){var b=this;f=b.getDimensions();if(b.o.modal&&k)b.d.iframe=d('<iframe src="javascript:false;"></iframe>').css(d.extend(b.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:f[0],width:f[1],zIndex:b.o.zIndex,top:0,left:0})).appendTo(b.o.appendTo);b.d.overlay=d("<div></div>").attr("id",b.o.overlayId).addClass("simplemodal-overlay").css(d.extend(b.o.overlayCss,{display:"none",opacity:b.o.opacity/100,height:b.o.modal?f[0]:0,width:b.o.modal?f[1]:0,position:"fixed",left:0,top:0,zIndex:b.o.zIndex+1})).appendTo(b.o.appendTo);b.d.container=d("<div></div>").attr("id",b.o.containerId).addClass("simplemodal-container").css(d.extend(b.o.containerCss,{display:"none",position:"fixed",zIndex:b.o.zIndex+2})).append(b.o.close&&b.o.closeHTML?d(b.o.closeHTML).addClass(b.o.closeClass):"").appendTo(b.o.appendTo);b.d.wrap=d("<div></div>").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(b.d.container);b.d.data=a.attr("id",a.attr("id")||b.o.dataId).addClass("simplemodal-data").css(d.extend(b.o.dataCss,{display:"none"})).appendTo("body");b.setContainerDimensions();b.d.data.appendTo(b.d.wrap);if(k||l)b.fixIE()},bindEvents:function(){var a=this;d("."+a.o.closeClass).bind("click.simplemodal",function(b){b.preventDefault();a.close()});a.o.modal&&a.o.close&&a.o.overlayClose&&a.d.overlay.bind("click.simplemodal",function(b){b.preventDefault();a.close()});d(document).bind("keydown.simplemodal",function(b){if(a.o.modal&&b.keyCode===9)a.watchTab(b);else if(a.o.close&&a.o.escClose&&b.keyCode===27){b.preventDefault();a.close()}});d(window).bind("resize.simplemodal",function(){f=a.getDimensions();a.o.autoResize?a.setContainerDimensions():a.o.autoPosition&&a.setPosition();if(k||l)a.fixIE();else if(a.o.modal){a.d.iframe&&a.d.iframe.css({height:f[0],width:f[1]});a.d.overlay.css({height:f[0],width:f[1]})}})},unbindEvents:function(){d("."+this.o.closeClass).unbind("click.simplemodal");d(document).unbind("keydown.simplemodal");d(window).unbind("resize.simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var a=this,b=a.o.position;d.each([a.d.iframe||null,!a.o.modal?null:a.d.overlay,a.d.container],function(c,h){if(h){var g=h[0].style;g.position="absolute";if(c<2){g.removeExpression("height");g.removeExpression("width");g.setExpression("height",'document.body.scrollHeight > document.body.clientHeight ? document.body.scrollHeight : document.body.clientHeight + "px"');g.setExpression("width",'document.body.scrollWidth > document.body.clientWidth ? document.body.scrollWidth : document.body.clientWidth + "px"')}else{var e;if(b&&b.constructor===Array){c=b[0]?typeof b[0]==="number"?b[0].toString():b[0].replace(/px/,""):h.css("top").replace(/px/,"");c=c.indexOf("%")===-1?c+' + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"':parseInt(c.replace(/%/,""))+' * ((document.documentElement.clientHeight || document.body.clientHeight) / 100) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';if(b[1]){e=typeof b[1]==="number"?b[1].toString():b[1].replace(/px/,"");e=e.indexOf("%")===-1?e+' + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"':parseInt(e.replace(/%/,""))+' * ((document.documentElement.clientWidth || document.body.clientWidth) / 100) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}}else{c='(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';e='(document.documentElement.clientWidth || document.body.clientWidth) / 2 - (this.offsetWidth / 2) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}g.removeExpression("top");g.removeExpression("left");g.setExpression("top",c);g.setExpression("left",e)}}})},focus:function(a){var b=this;a=a&&d.inArray(a,["first","last"])!==-1?a:"first";var c=d(":input:enabled:visible:"+a,b.d.wrap);setTimeout(function(){c.length>0?c.focus():b.d.wrap.focus()},10)},getDimensions:function(){var a=d(window);return[d.browser.opera&&d.browser.version>"9.5"&&d.fn.jquery<"1.3"||d.browser.opera&&d.browser.version<"9.5"&&d.fn.jquery>"1.2.6"?a[0].innerHeight:a.height(),a.width()]},getVal:function(a,b){return a?typeof a==="number"?a:a==="auto"?0:a.indexOf("%")>0?parseInt(a.replace(/%/,""))/100*(b==="h"?f[0]:f[1]):parseInt(a.replace(/px/,"")):null},update:function(a,b){var c=this;if(!c.d.data)return false;c.d.origHeight=c.getVal(a,"h");c.d.origWidth=c.getVal(b,"w");c.d.data.hide();a&&c.d.container.css("height",a);b&&c.d.container.css("width",b);c.setContainerDimensions();c.d.data.show();c.o.focus&&c.focus();c.unbindEvents();c.bindEvents()},setContainerDimensions:function(){var a=this,b=k||m,c=a.d.origHeight?a.d.origHeight:d.browser.opera?a.d.container.height():a.getVal(b?a.d.container[0].currentStyle.height:a.d.container.css("height"),"h");b=a.d.origWidth?a.d.origWidth:d.browser.opera?a.d.container.width():a.getVal(b?a.d.container[0].currentStyle.width:a.d.container.css("width"),"w");var h=a.d.data.outerHeight(true),g=a.d.data.outerWidth(true);a.d.origHeight=a.d.origHeight||c;a.d.origWidth=a.d.origWidth||b;var e=a.o.maxHeight?a.getVal(a.o.maxHeight,"h"):null,i=a.o.maxWidth?a.getVal(a.o.maxWidth,"w"):null;e=e&&e<f[0]?e:f[0];i=i&&i<f[1]?i:f[1];var j=a.o.minHeight?a.getVal(a.o.minHeight,"h"):"auto";c=c?a.o.autoResize&&c>e?e:c<j?j:c:h?h>e?e:a.o.minHeight&&j!=="auto"&&h<j?j:h:j;e=a.o.minWidth?a.getVal(a.o.minWidth,"w"):"auto";b=b?a.o.autoResize&&b>i?i:b<e?e:b:g?g>i?i:a.o.minWidth&&e!=="auto"&&g<e?e:g:e;a.d.container.css({height:c,width:b});a.d.wrap.css({overflow:h>c||g>b?"auto":"visible"});a.o.autoPosition&&a.setPosition()},setPosition:function(){var a=this,b,c;b=f[0]/2-a.d.container.outerHeight(true)/2;c=f[1]/2-a.d.container.outerWidth(true)/2;if(a.o.position&&Object.prototype.toString.call(a.o.position)==="[object Array]"){b=a.o.position[0]||b;c=a.o.position[1]||c}else{b=b;c=c}a.d.container.css({left:c,top:b})},watchTab:function(a){var b=this;if(d(a.target).parents(".simplemodal-container").length>0){b.inputs=d(":input:enabled:visible:first, :input:enabled:visible:last",b.d.data[0]);if(!a.shiftKey&&a.target===b.inputs[b.inputs.length-1]||a.shiftKey&&a.target===b.inputs[0]||b.inputs.length===0){a.preventDefault();b.focus(a.shiftKey?"last":"first")}}else{a.preventDefault();b.focus()}},open:function(){var a=this;a.d.iframe&&a.d.iframe.show();if(d.isFunction(a.o.onOpen))a.o.onOpen.apply(a,[a.d]);else{a.d.overlay.show();a.d.container.show();a.d.data.show()}a.o.focus&&a.focus();a.bindEvents()},close:function(){var a=this;if(!a.d.data)return false;a.unbindEvents();if(d.isFunction(a.o.onClose)&&!a.occb){a.occb=true;a.o.onClose.apply(a,[a.d])}else{if(a.d.placeholder){var b=d("#simplemodal-placeholder");if(a.o.persist)b.replaceWith(a.d.data.removeClass("simplemodal-data").css("display",a.display));else{a.d.data.hide().remove();b.replaceWith(a.d.orig)}}else a.d.data.hide().remove();a.d.container.hide().remove();a.d.overlay.hide();a.d.iframe&&a.d.iframe.hide().remove();setTimeout(function(){a.d.overlay.remove();a.d={}},10)}}}})(jQuery);

(function(i){var q={vertical:false,rtl:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},r=false;i(window).bind("load.jcarousel",function(){r=true});i.jcarousel=function(a,c){this.options=i.extend({},q,c||{});this.autoStopped=this.locked=false;this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!c||c.rtl===undefined)this.options.rtl=(i(a).attr("dir")||i("html").attr("dir")||"").toLowerCase()=="rtl";this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical?this.options.rtl?"right":"left":"top";for(var b="",d=a.className.split(" "),f=0;f<d.length;f++)if(d[f].indexOf("jcarousel-skin")!=-1){i(a).removeClass(d[f]);b=d[f];break}if(a.nodeName.toUpperCase()=="UL"||a.nodeName.toUpperCase()=="OL"){this.list=i(a);this.container=this.list.parent();if(this.container.hasClass("jcarousel-clip")){if(!this.container.parent().hasClass("jcarousel-container"))this.container=this.container.wrap("<div></div>");this.container=this.container.parent()}else if(!this.container.hasClass("jcarousel-container"))this.container=this.list.wrap("<div></div>").parent()}else{this.container=i(a);this.list=this.container.find("ul,ol").eq(0)}b!==""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&&this.container.wrap('<div class=" '+b+'"></div>');this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass("jcarousel-clip"))this.clip=this.list.wrap("<div></div>").parent();this.buttonNext=i(".jcarousel-next",this.container);if(this.buttonNext.size()===0&&this.options.buttonNextHTML!==null)this.buttonNext=this.clip.after(this.options.buttonNextHTML).next();this.buttonNext.addClass(this.className("jcarousel-next"));this.buttonPrev=i(".jcarousel-prev",this.container);if(this.buttonPrev.size()===0&&this.options.buttonPrevHTML!==null)this.buttonPrev=this.clip.after(this.options.buttonPrevHTML).next();this.buttonPrev.addClass(this.className("jcarousel-prev"));this.clip.addClass(this.className("jcarousel-clip")).css({overflow:"hidden",position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"});!this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var j=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null;b=this.list.children("li");var e=this;if(b.size()>0){var g=0,k=this.options.offset;b.each(function(){e.format(this,k++);g+=e.dimension(this,j)});this.list.css(this.wh,g+100+"px");if(!c||c.size===undefined)this.options.size=b.size()}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display","block");this.funcNext=function(){e.next()};this.funcPrev=function(){e.prev()};this.funcResize=function(){e.reload()};this.options.initCallback!==null&&this.options.initCallback(this,"init");if(!r&&i.browser.safari){this.buttons(false,false);i(window).bind("load.jcarousel",function(){e.setup()})}else this.setup()};var h=i.jcarousel;h.fn=h.prototype={jcarousel:"0.2.7"};h.fn.extend=h.extend=i.extend;h.fn.extend({setup:function(){this.prevLast=this.prevFirst=this.last=this.first=null;this.animating=false;this.tail=this.timer=null;this.inTail=false;if(!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var a=this.pos(this.options.start,true);this.prevFirst=this.prevLast=null;this.animate(a,false);i(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize)}},reset:function(){this.list.empty();this.list.css(this.lt,"0px");this.list.css(this.wh,"10px");this.options.initCallback!==null&&this.options.initCallback(this,"reset");this.setup()},reload:function(){this.tail!==null&&this.inTail&&this.list.css(this.lt,h.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=false;this.options.reloadCallback!==null&&this.options.reloadCallback(this);if(this.options.visible!==null){var a=this,c=Math.ceil(this.clipping()/this.options.visible),b=0,d=0;this.list.children("li").each(function(f){b+=a.dimension(this,c);if(f+1<a.first)d=b});this.list.css(this.wh,b+"px");this.list.css(this.lt,-d+"px")}this.scroll(this.first,false)},lock:function(){this.locked=true;this.buttons()},unlock:function(){this.locked=false;this.buttons()},size:function(a){if(a!==undefined){this.options.size=a;this.locked||this.buttons()}return this.options.size},has:function(a,c){if(c===undefined||!c)c=a;if(this.options.size!==null&&c>this.options.size)c=this.options.size;for(var b=a;b<=c;b++){var d=this.get(b);if(!d.length||d.hasClass("jcarousel-item-placeholder"))return false}return true},get:function(a){return i(".jcarousel-item-"+a,this.list)},add:function(a,c){var b=this.get(a),d=0,f=i(c);if(b.length===0){var j,e=h.intval(a);for(b=this.create(a);;){j=this.get(--e);if(e<=0||j.length){e<=0?this.list.prepend(b):j.after(b);break}}}else d=this.dimension(b);if(f.get(0).nodeName.toUpperCase()=="LI"){b.replaceWith(f);b=f}else b.empty().append(c);this.format(b.removeClass(this.className("jcarousel-item-placeholder")),a);f=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null;d=this.dimension(b,f)-d;a>0&&a<this.first&&this.list.css(this.lt,h.intval(this.list.css(this.lt))-d+"px");this.list.css(this.wh,h.intval(this.list.css(this.wh))+d+"px");return b},remove:function(a){var c=this.get(a);if(!(!c.length||a>=this.first&&a<=this.last)){var b=this.dimension(c);a<this.first&&this.list.css(this.lt,h.intval(this.list.css(this.lt))+b+"px");c.remove();this.list.css(this.wh,h.intval(this.list.css(this.wh))-b+"px")}},next:function(){this.tail!==null&&!this.inTail?this.scrollTail(false):this.scroll((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!==null&&this.last==this.options.size?1:this.first+this.options.scroll)},prev:function(){this.tail!==null&&this.inTail?this.scrollTail(true):this.scroll((this.options.wrap=="both"||this.options.wrap=="first")&&this.options.size!==null&&this.first==1?this.options.size:this.first-this.options.scroll)},scrollTail:function(a){if(!(this.locked||this.animating||!this.tail)){this.pauseAuto();var c=h.intval(this.list.css(this.lt));c=!a?c-this.tail:c+this.tail;this.inTail=!a;this.prevFirst=this.first;this.prevLast=this.last;this.animate(c)}},scroll:function(a,c){if(!(this.locked||this.animating)){this.pauseAuto();this.animate(this.pos(a),c)}},pos:function(a,c){var b=h.intval(this.list.css(this.lt));if(this.locked||this.animating)return b;if(this.options.wrap!="circular")a=a<1?1:this.options.size&&a>this.options.size?this.options.size:a;for(var d=this.first>a,f=this.options.wrap!="circular"&&this.first<=1?1:this.first,j=d?this.get(f):this.get(this.last),e=d?f:f-1,g=null,k=0,l=false,m=0;d?--e>=a:++e<a;){g=this.get(e);l=!g.length;if(g.length===0){g=this.create(e).addClass(this.className("jcarousel-item-placeholder"));j[d?"before":"after"](g);if(this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size)){j=this.get(this.index(e));if(j.length)g=this.add(e,j.clone(true))}}j=g;m=this.dimension(g);if(l)k+=m;if(this.first!==null&&(this.options.wrap=="circular"||e>=1&&(this.options.size===null||e<=this.options.size)))b=d?b+m:b-m}f=this.clipping();var p=[],o=0,n=0;j=this.get(a-1);for(e=a;++o;){g=this.get(e);l=!g.length;if(g.length===0){g=this.create(e).addClass(this.className("jcarousel-item-placeholder"));j.length===0?this.list.prepend(g):j[d?"before":"after"](g);if(this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size)){j=this.get(this.index(e));if(j.length)g=this.add(e,j.clone(true))}}j=g;m=this.dimension(g);if(m===0)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");if(this.options.wrap!="circular"&&this.options.size!==null&&e>this.options.size)p.push(g);else if(l)k+=m;n+=m;if(n>=f)break;e++}for(g=0;g<p.length;g++)p[g].remove();if(k>0){this.list.css(this.wh,this.dimension(this.list)+k+"px");if(d){b-=k;this.list.css(this.lt,h.intval(this.list.css(this.lt))-k+"px")}}k=a+o-1;if(this.options.wrap!="circular"&&this.options.size&&k>this.options.size)k=this.options.size;if(e>k){o=0;e=k;for(n=0;++o;){g=this.get(e--);if(!g.length)break;n+=this.dimension(g);if(n>=f)break}}e=k-o+1;if(this.options.wrap!="circular"&&e<1)e=1;if(this.inTail&&d){b+=this.tail;this.inTail=false}this.tail=null;if(this.options.wrap!="circular"&&k==this.options.size&&k-o+1>=1){d=h.margin(this.get(k),!this.options.vertical?"marginRight":"marginBottom");if(n-d>f)this.tail=n-f-d}if(c&&a===this.options.size&&this.tail){b-=this.tail;this.inTail=true}for(;a-->e;)b+=this.dimension(this.get(a));this.prevFirst=this.first;this.prevLast=this.last;this.first=e;this.last=k;return b},animate:function(a,c){if(!(this.locked||this.animating)){this.animating=true;var b=this,d=function(){b.animating=false;a===0&&b.list.css(b.lt,0);if(!b.autoStopped&&(b.options.wrap=="circular"||b.options.wrap=="both"||b.options.wrap=="last"||b.options.size===null||b.last<b.options.size||b.last==b.options.size&&b.tail!==null&&!b.inTail))b.startAuto();b.buttons();b.notify("onAfterAnimation");if(b.options.wrap=="circular"&&b.options.size!==null)for(var f=b.prevFirst;f<=b.prevLast;f++)if(f!==null&&!(f>=b.first&&f<=b.last)&&(f<1||f>b.options.size))b.remove(f)};this.notify("onBeforeAnimation");if(!this.options.animation||c===false){this.list.css(this.lt,a+"px");d()}else this.list.animate(!this.options.vertical?this.options.rtl?{right:a}:{left:a}:{top:a},this.options.animation,this.options.easing,d)}},startAuto:function(a){if(a!==undefined)this.options.auto=a;if(this.options.auto===0)return this.stopAuto();if(this.timer===null){this.autoStopped=false;var c=this;this.timer=window.setTimeout(function(){c.next()},this.options.auto*1E3)}},stopAuto:function(){this.pauseAuto();this.autoStopped=true},pauseAuto:function(){if(this.timer!==null){window.clearTimeout(this.timer);this.timer=null}},buttons:function(a,c){if(a==null){a=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="first"||this.options.size===null||this.last<this.options.size);if(!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!==null&&this.last>=this.options.size)a=this.tail!==null&&!this.inTail}if(c==null){c=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="last"||this.first>1);if(!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!==null&&this.first==1)c=this.tail!==null&&this.inTail}var b=this;if(this.buttonNext.size()>0){this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext);a&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext);this.buttonNext[a?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",a?false:true);this.options.buttonNextCallback!==null&&this.buttonNext.data("jcarouselstate")!=a&&this.buttonNext.each(function(){b.options.buttonNextCallback(b,this,a)}).data("jcarouselstate",a)}else this.options.buttonNextCallback!==null&&this.buttonNextState!=a&&this.options.buttonNextCallback(b,null,a);if(this.buttonPrev.size()>0){this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev);c&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev);this.buttonPrev[c?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",c?false:true);this.options.buttonPrevCallback!==null&&this.buttonPrev.data("jcarouselstate")!=c&&this.buttonPrev.each(function(){b.options.buttonPrevCallback(b,this,c)}).data("jcarouselstate",c)}else this.options.buttonPrevCallback!==null&&this.buttonPrevState!=c&&this.options.buttonPrevCallback(b,null,c);this.buttonNextState=a;this.buttonPrevState=c},notify:function(a){var c=this.prevFirst===null?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",a,c);if(this.prevFirst!==this.first){this.callback("itemFirstInCallback",a,c,this.first);this.callback("itemFirstOutCallback",a,c,this.prevFirst)}if(this.prevLast!==this.last){this.callback("itemLastInCallback",a,c,this.last);this.callback("itemLastOutCallback",a,c,this.prevLast)}this.callback("itemVisibleInCallback",a,c,this.first,this.last,this.prevFirst,this.prevLast);this.callback("itemVisibleOutCallback",a,c,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(a,c,b,d,f,j,e){if(!(this.options[a]==null||typeof this.options[a]!="object"&&c!="onAfterAnimation")){var g=typeof this.options[a]=="object"?this.options[a][c]:this.options[a];if(i.isFunction(g)){var k=this;if(d===undefined)g(k,b,c);else if(f===undefined)this.get(d).each(function(){g(k,this,d,b,c)});else{a=function(m){k.get(m).each(function(){g(k,this,m,b,c)})};for(var l=d;l<=f;l++)l!==null&&!(l>=j&&l<=e)&&a(l)}}}},create:function(a){return this.format("<li></li>",a)},format:function(a,c){a=i(a);for(var b=a.get(0).className.split(" "),d=0;d<b.length;d++)b[d].indexOf("jcarousel-")!=-1&&a.removeClass(b[d]);a.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+c)).css({"float":this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",c);return a},className:function(a){return a+" "+a+(!this.options.vertical?"-horizontal":"-vertical")},dimension:function(a,c){var b=a.jquery!==undefined?a[0]:a,d=!this.options.vertical?(b.offsetWidth||h.intval(this.options.itemFallbackDimension))+h.margin(b,"marginLeft")+h.margin(b,"marginRight"):(b.offsetHeight||h.intval(this.options.itemFallbackDimension))+h.margin(b,"marginTop")+h.margin(b,"marginBottom");if(c==null||d==c)return d;d=!this.options.vertical?c-h.margin(b,"marginLeft")-h.margin(b,"marginRight"):c-h.margin(b,"marginTop")-h.margin(b,"marginBottom");i(b).css(this.wh,d+"px");return this.dimension(b)},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-h.intval(this.clip.css("borderLeftWidth"))-h.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-h.intval(this.clip.css("borderTopWidth"))-h.intval(this.clip.css("borderBottomWidth"))},index:function(a,c){if(c==null)c=this.options.size;return Math.round(((a-1)/c-Math.floor((a-1)/c))*c)+1}});h.extend({defaults:function(a){return i.extend(q,a||{})},margin:function(a,c){if(!a)return 0;var b=a.jquery!==undefined?a[0]:a;if(c=="marginRight"&&i.browser.safari){var d={display:"block","float":"none",width:"auto"},f,j;i.swap(b,d,function(){f=b.offsetWidth});d.marginRight=0;i.swap(b,d,function(){j=b.offsetWidth});return j-f}return h.intval(i.css(b,c))},intval:function(a){a=parseInt(a,10);return isNaN(a)?0:a}});i.fn.jcarousel=function(a){if(typeof a=="string"){var c=i(this).data("jcarousel"),b=Array.prototype.slice.call(arguments,1);return c[a].apply(c,b)}else return this.each(function(){i(this).data("jcarousel",new h(this,a))})}})(jQuery);

if(jQuery)(function($){function renderOption(id,option)
{var html='<label><input type="checkbox" name="'+id+'[]" value="'+option.value+'"';if(option.selected){html+=' checked="checked"';}
html+=' />'+option.text+'</label>';return html;}
function renderOptions(id,options,o)
{var html="";for(var i=0;i<options.length;i++){if(options[i].optgroup){html+='<label class="optGroup">';if(o.optGroupSelectable){html+='<input type="checkbox" class="optGroup" />'+options[i].optgroup;}
else{html+=options[i].optgroup;}
html+='</label><div class="optGroupContainer">';html+=renderOptions(id,options[i].options,o);html+='</div>';}
else{html+=renderOption(id,options[i]);}}
return html;}
function buildOptions(options)
{var multiSelect=$(this);var multiSelectOptions=multiSelect.next('.multiSelectOptions');var o=multiSelect.data("config");var callback=multiSelect.data("callback");multiSelectOptions.html("");var html="";if(o.selectAll){html+='<label class="selectAll"><input type="checkbox" class="selectAll" />'+o.selectAllText+'</label>';}
html+=renderOptions(multiSelect.attr('id'),options,o);multiSelectOptions.html(html);var initialWidth=multiSelectOptions.width();var hasScrollbar=false;if(multiSelectOptions.height()>o.listHeight){multiSelectOptions.css("height",o.listHeight+'px');hasScrollbar=true;}else{multiSelectOptions.css("height",'');}
var scrollbarWidth=hasScrollbar&&(initialWidth==multiSelectOptions.width())?17:0;if((multiSelectOptions.width()+scrollbarWidth)<multiSelect.outerWidth()){multiSelectOptions.css("width",multiSelect.outerWidth()-2+'px');}else{multiSelectOptions.css("width",(multiSelectOptions.width()+scrollbarWidth)+'px');}
if($.fn.bgiframe)multiSelect.next('.multiSelectOptions').bgiframe({width:multiSelectOptions.width(),height:multiSelectOptions.height()});if(o.selectAll){multiSelectOptions.find('INPUT.selectAll').click(function(){multiSelectOptions.find('INPUT:checkbox').attr('checked',$(this).attr('checked')).parent("LABEL").toggleClass('checked',$(this).attr('checked'));});}
if(o.optGroupSelectable){multiSelectOptions.addClass('optGroupHasCheckboxes');multiSelectOptions.find('INPUT.optGroup').click(function(){$(this).parent().next().find('INPUT:checkbox').attr('checked',$(this).attr('checked')).parent("LABEL").toggleClass('checked',$(this).attr('checked'));});}
multiSelectOptions.find('INPUT:checkbox').click(function(){$(this).parent("LABEL").toggleClass('checked',$(this).attr('checked'));updateSelected.call(multiSelect);multiSelect.focus();if($(this).parent().parent().hasClass('optGroupContainer')){updateOptGroup.call(multiSelect,$(this).parent().parent().prev());}
if(callback){callback($(this));}});multiSelectOptions.each(function(){$(this).find('INPUT:checked').parent().addClass('checked');});updateSelected.call(multiSelect);if(o.optGroupSelectable){multiSelectOptions.find('LABEL.optGroup').each(function(){updateOptGroup.call(multiSelect,$(this));});}
multiSelectOptions.find('LABEL:has(INPUT)').hover(function(){$(this).parent().find('LABEL').removeClass('hover');$(this).addClass('hover');},function(){$(this).parent().find('LABEL').removeClass('hover');});multiSelect.keydown(function(e){var multiSelectOptions=$(this).next('.multiSelectOptions');if(multiSelectOptions.css('visibility')!='hidden'){if(e.keyCode==9){$(this).addClass('focus').trigger('click');$(this).focus().next(':input').focus();return true;}
if(e.keyCode==27||e.keyCode==37||e.keyCode==39){$(this).addClass('focus').trigger('click');}
if(e.keyCode==40||e.keyCode==38){var allOptions=multiSelectOptions.find('LABEL');var oldHoverIndex=allOptions.index(allOptions.filter('.hover'));var newHoverIndex=-1;if(oldHoverIndex<0){multiSelectOptions.find('LABEL:first').addClass('hover');}
else if(e.keyCode==40&&oldHoverIndex<allOptions.length-1)
{newHoverIndex=oldHoverIndex+1;}
else if(e.keyCode==38&&oldHoverIndex>0)
{newHoverIndex=oldHoverIndex-1;}
if(newHoverIndex>=0){$(allOptions.get(oldHoverIndex)).removeClass('hover');$(allOptions.get(newHoverIndex)).addClass('hover');adjustViewPort(multiSelectOptions);}
return false;}
if(e.keyCode==13||e.keyCode==32){var selectedCheckbox=multiSelectOptions.find('LABEL.hover INPUT:checkbox');selectedCheckbox.attr('checked',!selectedCheckbox.attr('checked')).parent("LABEL").toggleClass('checked',selectedCheckbox.attr('checked'));if(selectedCheckbox.hasClass("selectAll")){multiSelectOptions.find('INPUT:checkbox').attr('checked',selectedCheckbox.attr('checked')).parent("LABEL").addClass('checked').toggleClass('checked',selectedCheckbox.attr('checked'));}
updateSelected.call(multiSelect);if(callback)callback($(this));return false;}
if(e.keyCode>=33&&e.keyCode<=126){var match=multiSelectOptions.find('LABEL:startsWith('+String.fromCharCode(e.keyCode)+')');var currentHoverIndex=match.index(match.filter('LABEL.hover'));var afterHoverMatch=match.filter(function(index){return index>currentHoverIndex;});match=(afterHoverMatch.length>=1?afterHoverMatch:match).filter("LABEL:first");if(match.length==1){multiSelectOptions.find('LABEL.hover').removeClass('hover');match.addClass('hover');adjustViewPort(multiSelectOptions);}}}else{if(e.keyCode==38||e.keyCode==40||e.keyCode==13||e.keyCode==32){$(this).removeClass('focus').trigger('click');multiSelectOptions.find('LABEL:first').addClass('hover');return false;}
if(e.keyCode==9){multiSelectOptions.next(':input').focus();return true;}}
if(e.keyCode==13)return false;});}
function adjustViewPort(multiSelectOptions)
{var selectionBottom=multiSelectOptions.find('LABEL.hover').position().top+multiSelectOptions.find('LABEL.hover').outerHeight();if(selectionBottom>multiSelectOptions.innerHeight()){multiSelectOptions.scrollTop(multiSelectOptions.scrollTop()+selectionBottom-multiSelectOptions.innerHeight());}
if(multiSelectOptions.find('LABEL.hover').position().top<0){multiSelectOptions.scrollTop(multiSelectOptions.scrollTop()+multiSelectOptions.find('LABEL.hover').position().top);}}
function updateOptGroup(optGroup)
{var multiSelect=$(this);var o=multiSelect.data("config");if(o.optGroupSelectable){var optGroupSelected=true;$(optGroup).next().find('INPUT:checkbox').each(function(){if(!$(this).attr('checked')){optGroupSelected=false;return false;}});$(optGroup).find('INPUT.optGroup').attr('checked',optGroupSelected).parent("LABEL").toggleClass('checked',optGroupSelected);}}
function updateSelected(){var multiSelect=$(this);var multiSelectOptions=multiSelect.next('.multiSelectOptions');var o=multiSelect.data("config");var i=0;var selectAll=true;var display='';multiSelectOptions.find('INPUT:checkbox').not('.selectAll, .optGroup').each(function(){if($(this).attr('checked')){i++;display=display+$(this).parent().text()+', ';}
else selectAll=false;});display=display.replace(/\s*\,\s*$/,'');if(i==0){multiSelect.find("span").html(o.noneSelected);}else{if(o.oneOrMoreSelected=='*'){multiSelect.find("span").html(display);multiSelect.attr("title",display);}else{multiSelect.find("span").html(o.oneOrMoreSelected.replace('%',i));}}
if(o.selectAll){multiSelectOptions.find('INPUT.selectAll').attr('checked',selectAll).parent("LABEL").toggleClass('checked',selectAll);}}
$.extend($.fn,{multiSelect:function(o,callback){if(!o)o={};if(o.selectAll==undefined)o.selectAll=true;if(o.selectAllText==undefined)o.selectAllText="Select All";if(o.noneSelected==undefined)o.noneSelected='Select options';if(o.oneOrMoreSelected==undefined)o.oneOrMoreSelected='% selected';if(o.optGroupSelectable==undefined)o.optGroupSelectable=false;if(o.listHeight==undefined)o.listHeight=150;$(this).each(function(){var select=$(this);var html='<a href="javascript:;" class="multiSelect"><span></span></a>';html+='<div class="multiSelectOptions" style="position: absolute; z-index: 99999; visibility: hidden;"></div>';$(select).after(html);var multiSelect=$(select).next('.multiSelect');var multiSelectOptions=multiSelect.next('.multiSelectOptions');multiSelect.find("span").css("width",$(select).width()+'px');multiSelect.data("config",o);multiSelect.data("callback",callback);var options=[];$(select).children().each(function(){if(this.tagName.toUpperCase()=='OPTGROUP')
{var suboptions=[];options.push({optgroup:$(this).attr('label'),options:suboptions});$(this).children('OPTION').each(function(){if($(this).val()!=''){suboptions.push({text:$(this).html(),value:$(this).val(),selected:$(this).attr('selected')});}});}
else if(this.tagName.toUpperCase()=='OPTION')
{if($(this).val()!=''){options.push({text:$(this).html(),value:$(this).val(),selected:$(this).attr('selected')});}}});$(select).remove();multiSelect.attr("id",$(select).attr("id"));buildOptions.call(multiSelect,options);multiSelect.hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');}).click(function(){if($(this).hasClass('active')){$(this).multiSelectOptionsHide();}else{$(this).multiSelectOptionsShow();}
return false;}).focus(function(){$(this).addClass('focus');}).blur(function(){$(this).removeClass('focus');});$(document).click(function(event){if(!($(event.target).parents().andSelf().is('.multiSelectOptions'))){if($(multiSelect).hasClass('active'))
multiSelect.multiSelectOptionsHide();}});});},multiSelectOptionsUpdate:function(options){buildOptions.call($(this),options);},multiSelectOptionsHide:function(stillOneOpen){$(this).removeClass('active').removeClass('hover').next('.multiSelectOptions').css('visibility','hidden');if($(this).size()>0&&!stillOneOpen)
triggerSearchBarForm($(this).attr("id"));},multiSelectOptionsShow:function(){var multiSelect=$(this);var multiSelectOptions=multiSelect.next('.multiSelectOptions');var o=multiSelect.data("config");$('.multiSelect[class~="active"]').multiSelectOptionsHide(1);multiSelectOptions.find('LABEL').removeClass('hover');multiSelect.addClass('active').next('.multiSelectOptions').css('visibility','visible');multiSelect.focus();multiSelect.next('.multiSelectOptions').scrollTop(0);var offset=multiSelect.position();multiSelect.next('.multiSelectOptions').css({top:offset.top+$(this).outerHeight()+'px'});multiSelect.next('.multiSelectOptions').css({left:offset.left+'px'});},selectedValuesString:function(){var selectedValues="";$(this).next('.multiSelectOptions').find('INPUT:checkbox:checked').not('.optGroup, .selectAll').each(function(){selectedValues+=$(this).attr('value')+",";});return selectedValues.replace(/\s*\,\s*$/,'');}});$.expr[":"].startsWith=function(el,i,m){var search=m[3];if(!search)return false;return eval("/^[/s]*"+search+"/i").test($(el).text());};})(jQuery);

Cufon.replace('article h1, article h2, .aside-box h3, .section-blog-top #site-title, h2.entry-title, h1.entry-title, .photo_gallery h1, .area h1',{fontFamily:'Helvetica Neue'});jQuery(document).ready(function(){$(".popup").live("click",function(e){var src=jQuery(this).attr('href');var x=parseInt(jQuery(this).attr('x'))||700;var y=parseInt(jQuery(this).attr('y'))||514;var x2=x+10;var y2=y+10;if(isIE7()){y+=40;y2+=40;}
var params="";if($(this).attr("additionalParams"))
params+=$(this).attr("additionalParams");$.modal('<iframe src="'+src+'?'+params+'" width="'+x+'" height="'+y+'" style="border:0;" frameborder="0" marginwidth="0" marginheight="0" scrolling="no">',{closeHTML:"",containerCss:{backgroundColor:"#fff",overflow:"hidden",width:x2,height:y2,padding:0},overlayClose:true});return false;});jQuery('.parent_area input').click(function(){if(jQuery(this).attr('checked')){var action='checked';}else{var action=false;}
var parentId=jQuery(this).attr('id').replace('area','');jQuery('.areas_search input.parentIs'+parentId).attr('checked',action);});initInputs();});function closeModal(){jQuery.modal.close();}
function initInputs(){jQuery("input").not('.keepValue').each(function(index){if(jQuery(this).attr('type')=='text'||jQuery(this).attr('type')=='password'){jQuery(this).attr('alt',jQuery(this).val());jQuery(this).focus(function(){if(jQuery(this).val()==jQuery(this).attr('alt'))jQuery(this).val('');});jQuery(this).blur(function(){if(jQuery(this).val()=='')jQuery(this).val(jQuery(this).attr('alt'));});}});}
function toggleSearchBar(){if(jQuery('#refineClicker').html()=='Close options'){jQuery('#searchBarExtra').hide('normal');jQuery('#refineClicker').html('Open options');}else{jQuery('#searchBarExtra').show('slow');jQuery('#refineClicker').html('Close options');}}
jQuery(document).ready(function(){jQuery("#search_form input, #search_form select").change(function(){updateLiveSearchCount('search_form');});jQuery("#homeSearch input, #homeSearch select").change(function(){updateLiveSearchCount('homeSearch');});jQuery("#refineSearch input, #refineSearch select").change(function(){updateLiveSearchCount('refineSearch');});if(!isMobile){jQuery("#type[noMultipleSelect!=1]").multiSelect({selectAll:false,noneSelected:'All',oneOrMoreSelected:'*'},function(){updateLiveSearchCount("refineSearch");});jQuery("#all\\!areas").multiSelect({selectAll:true,optGroupSelectable:true,noneSelected:'All',oneOrMoreSelected:'*'},function(){updateLiveSearchCount("refineSearch");});jQuery("#op\\!lifestyle").multiSelect({selectAll:false,noneSelected:'Any',oneOrMoreSelected:'*'},function(){updateLiveSearchCount("refineSearch");});jQuery("#misc").multiSelect({selectAll:false,noneSelected:'Any',oneOrMoreSelected:'*'},function(){updateLiveSearchCount("refineSearch");});}});function initPopups()
{initPopup({openEvent:'hover'});initPopup({popupHolderClass:'popup-hover'});}
if(window.addEventListener)
window.addEventListener("load",initPopups,false);else if(window.attachEvent)
window.attachEvent("onload",initPopups);function initPopup(_popup){if(!_popup.popupHolderTag)_popup.popupHolderTag='div';if(!_popup.popupTag)_popup.popupTag='div';if(!_popup.popupHolderClass)_popup.popupHolderClass='info';if(!_popup.popupClass)_popup.popupClass='popup';if(!_popup.linkOpenClass)_popup.linkOpenClass='open';if(!_popup.linkCloseClass)_popup.linkCloseClass='close';if(!_popup.openClass)_popup.openClass='active';if(!_popup.openEvent)_popup.openEvent='hover';var timer=[];var _popupHolderTag=document.getElementsByTagName(_popup.popupHolderTag);if(_popupHolderTag){for(var i=0;i<_popupHolderTag.length;i++){if(_popupHolderTag[i].className.indexOf(_popup.popupHolderClass)!=-1){var _popupLink=_popupHolderTag[i].getElementsByTagName('a');for(var j=0;j<_popupLink.length;j++){_popupLink[j].parent=_popupHolderTag[i];if(_popupLink[j].className.indexOf(_popup.linkOpenClass)!=-1){if(_popup.openEvent=='click'){_popupLink[j].onclick=function(){if(this.parent.className.indexOf(_popup.openClass)!=-1){this.parent.className=this.parent.className.replace(_popup.openClass,'');}else{this.parent.className+=' '+_popup.openClass;}
return false;}}else{var _popupTag=_popupHolderTag[i].getElementsByTagName(_popup.popupTag);for(var k=0;k<_popupTag.length;k++){if(_popupTag[k].className.indexOf(_popup.popupClass)!=-1){_popupTag[k].parent=_popupHolderTag[i];_popupTag[k].onmouseover=function(){if(timer[j])clearTimeout(timer[j]);if(this.parent.className.indexOf(_popup.openClass)==-1){this.parent.className+=' '+_popup.openClass;}}
_popupTag[k].onmouseout=function(){var _this=this;timer[j]=setTimeout(function(){_this.parent.className=_this.parent.className.replace(_popup.openClass,'');},2);}}}
_popupLink[j].onmouseover=function(){if(timer[j])clearTimeout(timer[j]);if(this.parent.className.indexOf(_popup.openClass)==-1){this.parent.className+=' '+_popup.openClass;}}
_popupLink[j].onmouseout=function(){var _this=this;timer[j]=setTimeout(function(){_this.parent.className=_this.parent.className.replace(_popup.openClass,'');},2);}}}else if(_popupLink[j].className.indexOf(_popup.linkCloseClass)!=-1){_popupLink[j].onclick=function(){if(this.parent.className.indexOf(_popup.openClass)!=-1){this.parent.className=this.parent.className.replace(_popup.openClass,'');}else{this.parent.className+=' '+_popup.openClass;}
return false;}}}}}}}
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('9 u=k(){9 g=/^([^#.>`]*)(#|\\.|\\>|\\`)(.+)$/;k u(a,b){9 c=a.J(/\\s*\\,\\s*/);9 d=[];n(9 i=0;i<c.l;i++){d=d.v(o(c[i],b))};6 d};k o(a,b,c){a=a.z(" ","`");9 d=a.r(g);9 e,5,m,7,i,h;9 f=[];4(d==8){d=[a,a]};4(d[1]==""){d[1]="*"};4(c==8){c="`"};4(b==8){b=E};K(d[2]){w"#":7=d[3].r(g);4(7==8){7=[8,d[3]]};e=E.L(7[1]);4(e==8||(d[1]!="*"&&!x(e,d[1]))){6 f};4(7.l==2){f.A(e);6 f};6 o(7[3],e,7[2]);w".":4(c!=">"){5=p(b,d[1])}y{5=b.B};n(i=0,h=5.l;i<h;i++){e=5[i];4(e.C!=1){q};7=d[3].r(g);4(7!=8){4(e.j==8||e.j.r("(\\\\s|^)"+7[1]+"(\\\\s|$)")==8){q};m=o(7[3],e,7[2]);f=f.v(m)}y 4(e.j!=8&&e.j.r("(\\\\s|^)"+d[3]+"(\\\\s|$)")!=8){f.A(e)}};6 f;w">":4(c!=">"){5=p(b,d[1])}y{5=b.B};n(i=0,h=5.l;i<h;i++){e=5[i];4(e.C!=1){q};4(!x(e,d[1])){q};m=o(d[3],e,">");f=f.v(m)};6 f;w"`":5=p(b,d[1]);n(i=0,h=5.l;i<h;i++){e=5[i];m=o(d[3],e,"`");f=f.v(m)};6 f;M:4(c!=">"){5=p(b,d[1])}y{5=b.B};n(i=0,h=5.l;i<h;i++){e=5[i];4(e.C!=1){q};4(!x(e,d[1])){q};f.A(e)};6 f}};k p(a,b){4(b=="*"&&a.F!=8){6 a.F};6 a.p(b)};k x(a,b){4(b=="*"){6 N};6 a.O.G().z("P:","")==b.G()};6 u}();k Q(a,b){9 c=u(a);n(9 i=0;i<c.l;i++){c[i].R=k(){4(t.j.H(b)==-1){t.j+=" "+b}};c[i].S=k(){4(t.j.H(b)!=-1){t.j=t.j.z(b,"")}}}}4(D.I&&!D.T){D.I("U",V)}',58,58,'||||if|listNodes|return|subselector|null|var||||||||limit||className|function|length|listSubNodes|for|doParse|getElementsByTagName|continue|match||this|parseSelector|concat|case|matchNodeNames|else|replace|push|childNodes|nodeType|window|document|all|toLowerCase|indexOf|attachEvent|split|switch|getElementById|default|true|nodeName|html|hoverForIE6|onmouseover|onmouseout|opera|onload|ieHover'.split('|'),0,{}))
function ieHover(){hoverForIE6('.tab-holder .gallery-hold .slide ul li, .action-list li, .results-list ul li','hover');}
function initPage()
{var nav=document.getElementById("nav");if(nav)
{var nodes=nav.getElementsByTagName("li");for(var i=0;i<nodes.length;i++)
{if(nodes[i].parentNode.id=="nav")
{nodes[i].onmouseover=function()
{this.className+=" hover";if(this.getElementsByTagName("ul")[0])
{hideSelectBoxes(this.getElementsByTagName("ul")[0]);}}
nodes[i].onmouseout=function()
{this.className=this.className.replace(" hover","");if(this.getElementsByTagName("ul")[0])
{showSelectBoxes(this.getElementsByTagName("ul")[0]);}}}}}}
if(window.attachEvent)
window.attachEvent("onload",initPage);function hideSelectBoxes(object)
{if(!object)return;if(!object.sboxes)
object.sboxes=[];var ol=getElementX(object);var ot=getElementY(object);var ow=object.offsetWidth;var oh=object.offsetHeight;var sboxes=document.all.tags("select");for(var i=0;i<sboxes.length;i++)
{var node=sboxes[i].parentNode;while(node!=object&&node.tagName!="BODY")
node=node.parentNode;var skip=(node==object);if(skip)continue;var t=getElementY(sboxes[i]);var l=getElementX(sboxes[i]);var w=sboxes[i].offsetWidth;var h=sboxes[i].offsetHeight;var ver=false;if(t>ot&&t<(ot+oh))
ver=true;else if((t+h)>ot&&(t+h)<(ot+oh))
ver=true;var hor=false;if(l>ol&&l<(ol+ow))
hor=true;else if((l+w)>ol&&(l+w)<(ol+ow))
hor=true;else if(l<ol&&(l+w)>ol)
hor=true;if(ver&&hor&&sboxes[i].style.visibility!="hidden")
object.sboxes[object.sboxes.length]=sboxes[i];}
for(var i=0;i<object.sboxes.length;i++)
object.sboxes[i].style.visibility="hidden";}
function showSelectBoxes(object)
{if(!object)return;if(!object.sboxes)return;for(var i=0;i<object.sboxes.length;i++)
object.sboxes[i].style.visibility="";object.sboxes=[];}
function getElementX(object){return getElementC(object,true)}
function getElementY(object){return getElementC(object,false)}
function getElementC(element,xAxis)
{var initialElement=element;var c=0;while(element!=null)
{c+=(xAxis)?element.offsetLeft:element.offsetTop;if(element.style.position=="absolute")
break;else
element=element.offsetParent;}
var elementWnd=document.window;if(!elementWnd)return c;if(!elementWnd.frameElement)return c;return c+getElementC(elementWnd.frameElement,xAxis);}
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function popUp(url,x,y,fancy){if(isIE()==true){y+=40;}
if(fancy!=undefined){var extra=",status=1,resizable=1,scrollbars=1,menubar=1,location=1";}else{var extra="";}
var args="width="+x+",height="+y+extra;var date=new Date();var now=date.getTime();var newName=(now).toString(10);window.open(url,newName,args);}
function checkField(val,field)
{var error="";if(val=="")
{error="You must enter a value in the "+field+" field.\n";}
return error;}
function checkEmail(val,field)
{var error="";if((val==""||val.length<3)||(val.indexOf("@")=="-1")||(val.indexOf(".")=="-1"))
{error="Please enter a valid "+field+" address.\n";}
return error;}
function isIE(){version=0;if(navigator.appVersion.indexOf("MSIE")!=-1){temp=navigator.appVersion.split("MSIE");version=parseFloat(temp[1]);}
if(version>=5.5){return true;}else{return false;}}
function isIE7(){version=0;if(navigator.appVersion.indexOf("MSIE")!=-1){temp=navigator.appVersion.split("MSIE");version=parseFloat(temp[1]);if(version<=7){return true;}}
return false;}
function showDiv(target)
{document.getElementById(target).style.display='block';}
function hideDiv(target)
{document.getElementById(target).style.display='none';}
function swapRental(val,saleMn,saleMx,rentMn,rentMx)
{if(val==true&&jQuery('#'+saleMn).css('display')!='none')
{jQuery('#'+saleMn).hide();jQuery('#'+saleMx).hide();jQuery('#'+saleMn).attr('name','mn!price_sale');jQuery('#'+saleMx).attr('name','mx!price_sale');jQuery('#'+rentMn).show();jQuery('#'+rentMx).show();jQuery('#'+rentMn).attr('name','mn!price');jQuery('#'+rentMx).attr('name','mx!price');}else if(val==false&&jQuery('#'+rentMn).is(":visible"))
{jQuery('#'+saleMn).show();jQuery('#'+saleMx).show();jQuery('#'+saleMn).attr('name','mn!price');jQuery('#'+saleMx).attr('name','mx!price');jQuery('#'+rentMn).hide();jQuery('#'+rentMx).hide();jQuery('#'+rentMn).attr('name','mn!price_rent');jQuery('#'+rentMx).attr('name','mx!price_rent');}}
function submitAjax(url,data,callBackFunction)
{jQuery.ajax({data:data,url:url,type:'POST',timeout:20000,error:function(){},success:function(r){if(callBackFunction)
return callBackFunction(r);else
{var response=eval('('+r+')');if(response.Error)
alert(response.ErrorMessage);else
alert(response.Message);}}});}
function submitForm(form,callBackFunction,urlOverride)
{var formObj=jQuery("#"+form);var url=jQuery(formObj).attr("action");if(urlOverride)
url=urlOverride;jQuery.ajax({data:formObj.serialize(),url:url,type:'POST',timeout:20000,error:function(){},success:function(r){if(callBackFunction)
{return callBackFunction(r);}
else
{var response=eval('('+r+')');if(response.Error)
alert(response.ErrorMessage);else
alert(response.Message);}}});}
var ajaxUpdateLiveSearchCountPostCall=function(r){if(r==''||r=='0')
showStatus("ERROR: Could not talk to server.",false);else
{var response=eval('('+r+')');if(response.Error)
showStatus(response.ErrorMessage,false);else
jQuery("#listingsFound, .found em").html(response.Count);}}
function updateLiveSearchCount(formId)
{jQuery("#"+formId+" .found em, #"+formId+" #listingsFound").html("<img src='"+rel_path+"images/spinner-small.gif' />");jQuery("#"+formId+' input').each(function(){if((jQuery(this).attr('name')=='type'||jQuery(this).attr('name')=='type[]')&&jQuery(this).attr('value')=='R'){swapRental(jQuery(this).attr('checked'),'mn_price','mx_price','mn_price_rent','mx_price_rent');}});jQuery("#"+formId+' select').each(function(){if((jQuery(this).attr('name')=='type'||jQuery(this).attr('name')=='type[]')&&jQuery(this).attr('value')=='R'){swapRental(jQuery(this).val()=='R','mn_price','mx_price','mn_price_rent','mx_price_rent');}});submitForm(formId,ajaxUpdateLiveSearchCountPostCall,rel_path+"properties/updatecount");}
function triggerSearchBarForm(id)
{if(id=="type"||id=="all!areas"||id=="all_areas"||id=="mx_price"||id=="mn_price")
jQuery('form#refineSearch').submit();}
function random_color(){var rint=Math.round(0x999999*Math.random());return('#0'+rint.toString(16)).replace(/^#0([0-9a-f]{6})$/i,'#$1');}

