(function($){$.dimensions={version:'1.2'};$.each(['Height','Width'],function(i,name){$.fn['inner'+name]=function(){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';return this.is(':visible')?this[0]['client'+name]:num(this,name.toLowerCase())+num(this,'padding'+torl)+num(this,'padding'+borr);};$.fn['outer'+name]=function(options){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';options=$.extend({margin:false},options||{});var val=this.is(':visible')?this[0]['offset'+name]:num(this,name.toLowerCase())+num(this,'border'+torl+'Width')+num(this,'border'+borr+'Width')+num(this,'padding'+torl)+num(this,'padding'+borr);return val+(options.margin?(num(this,'margin'+torl)+num(this,'margin'+borr)):0);};});$.each(['Left','Top'],function(i,name){$.fn['scroll'+name]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(name=='Left'?val:$(window)['scrollLeft'](),name=='Top'?val:$(window)['scrollTop']()):this['scroll'+name]=val;}):this[0]==window||this[0]==document?self[(name=='Left'?'pageXOffset':'pageYOffset')]||$.boxModel&&document.documentElement['scroll'+name]||document.body['scroll'+name]:this[0]['scroll'+name];};});$.fn.extend({position:function(){var left=0,top=0,elem=this[0],offset,parentOffset,offsetParent,results;if(elem){offsetParent=this.offsetParent();offset=this.offset();parentOffset=offsetParent.offset();offset.top-=num(elem,'marginTop');offset.left-=num(elem,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&$.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return $(offsetParent);}});function num(el,prop){return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0;};})(jQuery);(function($){jQuery.fn.shortkeys=jQuery.fn.keys=function(obj,settings){var el=this;this.settings=jQuery.extend({split:"+",moreKeys:{}},settings||{});this.wackyKeys={'.':190,',':188,';':59,'Space':32};this.formElements=new Array("input","select","textarea","button");this.keys=new Array();this.onFormElement=false;this.keysDown=new Array();this.init=function(obj){for(x in this.wackyKeys){this.wackyKeys[x.toUpperCase()]=this.wackyKeys[x];}
for(x in obj){this.keys.push(x.split(this.settings.split));}
for(i in this.keys){var quickArr=new Array();for(j in this.keys[i]){quickArr.push(this.convertToNumbers(this.keys[i][j].toUpperCase()));}
quickArr.sort();this.keys[i]=quickArr;}};this.convertToNumbers=function(inp){if(this.wackyKeys[inp]!=undefined){return this.wackyKeys[inp];}
return inp.toUpperCase().charCodeAt(0);};this.keyAdd=function(keyCode){this.keysDown.push(keyCode);this.keysDown.sort();};this.keyRemove=function(keyCode){for(i in this.keysDown){if(this.keysDown[i]==keyCode){this.keysDown.splice(i,1);}};this.keysDown.sort();};this.keyTest=function(i){if(this.keys[i].length!=this.keysDown.length)return false;for(j in this.keys[i]){if(this.keys[i][j]!=this.keysDown[j]){return false;}}
return true;};this.keyRemoveAll=function(){this.keysDown=new Array();};this.focused=function(bool){this.onFormElement=bool;}
$(document).keydown(function(e){el.keyAdd(e.keyCode);var i=0;for(x in obj){if(el.keyTest(i)&&!el.onFormElement){obj[x]();return false;break;}
i++;};});$(document).keyup(function(e){el.keyRemove(e.keyCode);});for(x in this.formElements){$(this.formElements[x]).focus(function(){el.focused(true);});$(this.formElements[x]).blur(function(){el.focused(false);});}
$(document).focus(function(){el.keyRemoveAll();});this.init(obj);jQuery.extend(this.wackyKeys,this.settings.moreKeys);return this;}})(jQuery);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,w,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;}
w=glyph.w;if(isNaN(w))w=+this.w;if(w>0){w+=letterSpacing;if(wordSeparators[chr])w+=wordSpacing;}
width+=jumps[++j]=~~w;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){try{if(node.contains)return node.contains(anotherNode);return node.compareDocumentPosition(anotherNode)&16;}
catch(e){}
return false;}
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,noscript: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.glow&&glow.dom&&glow.dom.get)||(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('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;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.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(!isNaN(value)||/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='none';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.registerFont((function(f){var b=_cufon_bridge_={p:[{"d":"113,0v-62,0,-97,-65,-97,-132v0,-68,35,-132,97,-132v62,0,97,64,97,132v0,68,-35,131,-97,132xm113,-214v-60,7,-59,157,0,165v59,-8,60,-158,0,-165","w":242},{"d":"77,5v1,56,-40,78,-102,71r0,-41v33,2,53,-6,53,-38r0,-173r50,0xm52,-243v-15,0,-26,11,-26,25v0,15,12,25,27,25v15,0,26,-11,26,-25v0,-15,-12,-25,-27,-25","w":104},{"d":"18,-229r166,91r0,11r-166,92r0,-41r102,-56r-102,-56r0,-41","w":202},{"d":"167,-128r-44,43r44,44r0,18r-88,-61r88,-62r0,18xm106,-128r-44,43r44,44r0,18r-88,-61r88,-62r0,18","w":173},{"d":"16,-186v0,-83,141,-102,186,-43r-35,36v-17,-32,-112,-30,-90,19v20,19,76,17,101,38v17,14,28,32,28,59v-1,88,-155,98,-201,38r35,-35v13,23,86,36,104,10v25,-80,-128,-19,-128,-122","w":231},{"d":"9,-56v0,-53,60,-82,109,-53v7,-36,-60,-28,-78,-16r-19,-30v51,-35,146,-30,146,50r0,105r-49,0r0,-14v-41,29,-109,12,-109,-42xm84,-39v26,0,38,-7,34,-34v-9,-21,-70,-15,-67,11v2,14,12,23,33,23","w":193},{"d":"18,-146r88,62r-88,61r0,-18r44,-44r-44,-43r0,-18xm79,-146r88,62r-88,61r0,-18r44,-44r-44,-43r0,-18","w":173},{"d":"128,0v-6,-51,21,-135,-35,-134v-10,1,-19,8,-26,22r0,112r-49,0r0,-171r49,-5r0,16v41,-38,111,-4,111,51r0,109r-50,0","w":201},{"d":"62,0r149,-264r43,0r-149,264r-43,0xm76,-133v-37,0,-66,-30,-66,-67v0,-36,30,-66,66,-66v37,0,67,29,67,66v0,37,-30,67,-67,67xm43,-200v0,19,13,35,33,35v20,0,33,-16,33,-35v0,-19,-13,-34,-33,-34v-20,0,-33,15,-33,34xm240,1v-37,0,-66,-29,-66,-65v0,-36,30,-66,66,-66v36,0,65,30,65,66v0,36,-28,65,-65,65xm206,-64v0,19,14,34,33,34v19,0,32,-16,32,-34v0,-19,-12,-34,-32,-34v-19,0,-33,15,-33,34","w":333},{"d":"211,-88v-3,52,-38,90,-95,88v-73,-2,-98,-53,-99,-128v-1,-75,33,-135,100,-135v30,0,55,9,74,26r-26,35v-43,-25,-102,-6,-97,49v55,-51,148,-13,143,65xm75,-88v0,24,15,39,42,39v27,0,43,-13,43,-35v0,-29,-16,-44,-44,-44v-25,0,-41,14,-41,40","w":243},{"d":"18,0r0,-176r49,0r0,176r-49,0xm42,-243v-15,0,-26,11,-26,25v0,14,11,25,26,25v15,0,27,-10,27,-25v0,-15,-12,-25,-27,-25","w":92},{"d":"235,0r52,0r71,-264r-57,0r-45,180r-46,-180r-54,0r-48,180r-46,-180r-56,0r70,264r53,0r53,-193","w":375},{"d":"0,-70r0,-28r360,0r0,28r-360,0","w":360},{"d":"22,-264r53,0r0,106r88,-106r59,0r-103,123r125,141r-69,0r-100,-114r0,114r-53,0r0,-264","w":253},{"d":"22,-264r0,264r194,0r0,-49r-141,0r0,-215r-53,0","w":237},{"d":"228,0r-211,0r0,-18r123,-196r-123,0r0,-50r211,0r0,20r-123,195r123,0r0,49","w":259},{"d":"17,-25v0,15,11,26,28,25v-4,10,-10,17,-19,21r9,16v24,-12,35,-32,35,-62v1,-14,-12,-24,-27,-24v-15,0,-26,10,-26,24xm44,-176v-15,0,-26,11,-26,25v0,14,11,24,26,24v15,0,27,-10,27,-24v0,-15,-12,-25,-27,-25","w":105},{"d":"8,-88v0,-62,70,-115,126,-74r0,-14r50,5r0,245r-50,0r0,-88v-50,40,-126,-12,-126,-74xm134,-104v-12,-49,-84,-37,-84,19v0,49,81,59,84,10r0,-29","w":206},{"d":"6,-264r62,0r61,86r63,-86r60,0r-96,132r0,132r-53,0r0,-132","w":269},{"d":"128,0v-6,-51,21,-135,-35,-134v-10,1,-19,6,-26,15r0,119r-49,0r0,-264r49,0r0,104v41,-38,111,-4,111,51r0,109r-50,0","w":193},{"d":"8,-88v-9,-69,77,-112,126,-72r0,-16r50,5v-5,103,32,246,-88,246v-34,0,-60,-10,-79,-29r22,-27v32,26,105,22,95,-35v-54,41,-134,0,-126,-72xm97,-40v33,0,40,-24,37,-61v-2,-20,-15,-34,-37,-34v-29,0,-47,16,-47,44v0,33,17,51,47,51","w":201},{"d":"193,-88v0,62,-76,114,-127,74r0,88r-49,0r0,-245r49,-5r0,14v56,-41,127,13,127,74xm103,-136v-33,0,-40,24,-37,61v2,20,15,31,37,34v28,-2,47,-17,47,-44v0,-33,-17,-51,-47,-51"},{"d":"21,0r0,-263r194,-1r0,50r-141,0r0,56r105,0r0,49r-105,0r0,60r140,0r0,49r-193,0","w":246},{"d":"18,18r180,0r0,17r-180,0r0,-17","w":228},{"d":"93,-218v0,-15,-11,-26,-28,-25v4,-10,10,-17,19,-21r-9,-16v-23,12,-35,33,-35,62v-1,15,12,25,27,25v15,0,26,-11,26,-25xm158,-218v0,-15,-11,-26,-28,-25v4,-10,10,-17,19,-21r-8,-16v-23,12,-36,33,-36,62v-1,15,12,25,27,25v15,0,26,-11,26,-25","w":173},{"d":"108,-137r-92,-127r62,0r62,84r61,-84r62,0r-92,127r100,137r-62,0r-69,-95r-70,95r-62,0","w":284},{"d":"64,-176v6,51,-21,134,35,134v10,0,20,-7,28,-19r0,-115r49,0v-5,105,32,251,-88,251v-25,0,-47,-10,-67,-29r23,-27v32,31,91,21,83,-35v-42,37,-112,5,-112,-51r0,-109r49,0","w":198},{"d":"134,-278v-77,73,-75,273,0,345v-19,-2,-48,6,-56,-7v-64,-62,-82,-217,-22,-301v12,-16,17,-28,29,-37r49,0","w":165},{"d":"22,0r0,-264r17,0r165,166r0,-166r53,0r0,264r-19,0r-164,-163r0,163r-52,0","w":290},{"d":"131,-109r0,58v35,-1,36,-54,0,-58xm107,-212v-16,1,-32,22,-20,38v4,4,11,8,20,11r0,-49xm26,-186v0,-42,44,-74,81,-77r0,-18r24,0r0,18v41,2,58,13,81,34r-35,36v-11,-13,-27,-20,-46,-21r0,56v43,7,85,29,85,81v0,40,-44,74,-85,76r0,19r-24,0r0,-18v-41,-3,-69,-17,-92,-39r35,-35v11,13,31,21,57,24r0,-63v-40,-7,-81,-23,-81,-73","w":248},{"d":"81,-255v0,15,11,26,28,25v-4,10,-10,17,-19,21r8,16v23,-12,36,-33,36,-62v1,-15,-12,-25,-27,-25v-15,0,-26,11,-26,25xm16,-255v0,15,11,26,28,25v-4,10,-11,17,-20,21r9,16v23,-12,35,-33,35,-62v0,-14,-11,-25,-26,-25v-15,0,-26,11,-26,25","w":173},{"d":"42,-49v-15,0,-26,10,-26,24v0,14,11,25,26,25v15,0,27,-10,27,-25v0,-14,-12,-24,-27,-24","w":102},{"d":"61,-49v-15,0,-26,10,-26,24v-1,15,12,25,27,25v15,0,26,-11,26,-25v1,-14,-12,-24,-27,-24xm184,-49v-15,0,-26,10,-26,24v0,14,11,25,26,25v15,0,27,-10,27,-25v0,-14,-12,-24,-27,-24xm307,-49v-15,0,-26,10,-26,24v-1,15,12,25,27,25v15,0,26,-11,26,-25v1,-14,-12,-24,-27,-24","w":360},{"d":"114,-217v-22,-15,-47,3,-39,37r27,0r0,39r-27,0r0,141r-49,0r0,-141r-27,0r0,-39r27,0v-17,-76,67,-107,114,-66","w":135},{"d":"167,-30v-52,60,-173,26,-158,-67v-3,-76,112,-106,158,-49r-35,26v-28,-32,-79,-9,-79,32v0,43,51,65,79,32","w":184},{"d":"139,0v-73,1,-132,-58,-132,-132v0,-73,59,-134,132,-132v38,0,70,12,97,35r-35,39v-51,-44,-141,-16,-141,57v0,65,70,100,123,69r0,-45r-35,0r0,-49r88,0r0,123v-27,23,-59,35,-97,35","w":267},{"d":"140,0v-74,0,-132,-59,-132,-132v0,-74,58,-132,132,-132v74,0,132,58,132,132v0,74,-58,132,-132,132xm61,-132v0,45,33,83,79,83v45,0,79,-38,79,-83v0,-45,-32,-82,-79,-82v-46,0,-79,37,-79,82","w":289},{"d":"8,-264r0,50r88,0r0,214r53,0r0,-214r88,0r0,-50r-229,0","w":254},{"d":"93,-218v0,-15,-11,-26,-28,-25v4,-10,10,-17,19,-21r-9,-16v-23,12,-35,33,-35,62v-1,15,12,25,27,25v15,0,26,-11,26,-25","w":109},{"d":"128,0v-6,-50,21,-134,-34,-134v-11,0,-20,8,-28,22r0,112r-49,0r0,-171r49,-5r0,16v23,-23,74,-20,93,4v38,-40,127,-18,127,47r0,109r-49,0v-6,-50,21,-134,-34,-134v-11,0,-27,11,-26,30r0,104r-49,0","w":311},{"d":"37,-279v38,3,8,56,10,86r-19,0r-10,-71v0,-9,8,-16,19,-15","w":87},{"d":"18,0r0,-264r49,0r0,264r-49,0","w":100},{"d":"43,-49v-15,0,-26,10,-26,24v0,14,11,25,26,25v15,0,27,-10,27,-25v0,-14,-12,-24,-27,-24xm43,-175v-15,0,-26,11,-26,25v0,14,11,24,26,24v15,0,27,-10,27,-24v0,-15,-12,-25,-27,-25","w":103},{"d":"155,0r-140,0r0,-12r73,-122r-73,0r0,-41r140,0r0,12r-73,122r73,0r0,41","w":178},{"d":"148,0r44,0r47,-176r-46,0r-27,106r-25,-106r-37,0r-26,104r-27,-104r-47,0r48,176r43,0r27,-88","w":256},{"d":"153,-86v0,-38,-17,-42,-73,-42r-56,0r0,-136r161,0r0,50r-109,0r0,36v79,-6,128,26,129,95v1,68,-90,103,-153,72v-16,-7,-31,-16,-43,-28r36,-35v18,30,108,34,108,-12","w":228},{"d":"17,-126v0,-79,53,-131,131,-131v78,0,130,53,130,131v0,77,-53,130,-132,130v-78,0,-129,-52,-129,-130xm147,-244v-71,0,-118,47,-118,118v0,70,48,118,118,118v69,0,118,-48,118,-118v0,-70,-47,-118,-118,-118xm210,-63v-53,50,-148,14,-148,-63v0,-75,96,-112,148,-62r-23,25v-33,-27,-91,-10,-91,37v0,50,58,66,91,38","w":294},{"d":"17,-126v0,-79,53,-131,131,-131v78,0,130,53,130,131v0,77,-53,130,-132,130v-78,0,-129,-52,-129,-130xm147,-244v-71,0,-118,47,-118,118v0,70,48,118,118,118v69,0,118,-48,118,-118v0,-70,-47,-118,-118,-118xm116,-142v24,-2,63,9,63,-17v0,-25,-39,-15,-63,-17r0,34xm179,-116r39,68r-36,0r-38,-65r-28,0r0,65r-32,0r0,-157v54,0,124,-10,124,45v0,23,-10,38,-29,44","w":294},{"d":"236,-117v-8,28,-12,37,-24,55r52,62r-60,0r-22,-26v-45,48,-171,31,-166,-48v2,-42,26,-62,59,-79v-14,-17,-25,-33,-25,-57v0,-35,32,-56,72,-56v40,0,69,23,69,59v0,34,-18,42,-47,62r36,47v4,-8,9,-19,13,-33xm121,-227v-40,1,-16,41,-1,52v23,-8,41,-51,1,-52xm100,-121v-39,11,-48,82,5,81v21,0,32,-8,46,-19","w":288},{"d":"18,-25v0,15,11,26,28,25v-4,10,-10,17,-19,21r8,16v24,-12,35,-32,35,-62v0,-14,-11,-24,-26,-24v-15,0,-26,10,-26,24","w":104},{"d":"18,-105r158,0r0,35r-158,0r0,-35xm18,-176r158,0r0,35r-158,0r0,-35"},{"d":"63,-156v16,-16,36,-24,62,-18r-8,48v-20,-15,-44,-8,-54,18r0,108r-49,0r0,-171r49,-5r0,20","w":139},{"d":"74,-158v41,-4,107,15,107,-29v0,-41,-67,-24,-107,-27r0,56xm180,-115r66,115r-60,0r-63,-109r-49,0r0,109r-52,0r0,-264r115,0v62,0,92,25,92,76v0,38,-17,63,-49,73","w":251},{"d":"65,-92r-57,-83r50,0r32,47r32,-47r50,0r-57,83r63,92r-51,0r-37,-55r-37,55r-51,0","w":192},{"d":"64,-180v15,0,32,-14,30,-31v2,-19,-16,-30,-30,-30v-15,0,-31,12,-31,30v0,17,16,31,31,31xm11,-210v0,-29,23,-54,53,-54v29,0,53,26,53,54v0,27,-24,52,-54,52v-29,0,-52,-24,-52,-52","w":135},{"d":"58,-222r-41,-14r6,-17r40,14r0,-42r18,0r0,42r40,-15r6,17r-41,16r25,34r-13,11r-26,-35r-26,35r-15,-8","w":158},{"d":"175,-190v-25,-34,-102,-31,-96,28v0,7,0,15,1,22r77,0r0,29r-68,0v6,16,5,40,-3,71r124,0r0,40r-182,0r0,-40v20,-21,24,-45,13,-71r-25,0r0,-29r17,0v-27,-110,102,-164,171,-90","w":239},{"d":"97,2v-50,0,-90,-41,-90,-90v0,-50,40,-90,90,-90v50,0,90,40,90,90v0,50,-40,90,-90,90xm52,-88v0,26,18,47,45,47v27,0,45,-22,45,-47v0,-25,-19,-47,-45,-47v-26,0,-45,21,-45,47","w":202},{"d":"46,-258v18,0,24,8,23,24r-14,164r-24,0r-8,-164v1,-16,5,-24,23,-24xm44,-49v-15,0,-26,10,-26,24v0,14,11,25,26,25v15,0,26,-11,26,-25v0,-14,-11,-24,-26,-24","w":105},{"d":"10,-70r0,-28r175,0r0,28r-175,0","w":194},{"d":"114,-70v1,55,-43,77,-105,70r0,-49v33,2,52,-7,52,-39r0,-176r53,0r0,194","w":149},{"d":"62,-176v6,51,-21,134,35,134v10,0,20,-7,27,-20r0,-114r49,0r0,176r-49,0r0,-16v-41,37,-111,6,-111,-51r0,-109r49,0","w":197},{"d":"14,-70r0,-35r109,0r0,35r-109,0","w":158},{"d":"106,-60v0,-53,60,-82,109,-53v7,-38,-60,-28,-78,-16r-23,-26v46,-37,156,-39,150,45r0,69v13,13,24,12,31,-5v34,-85,-15,-174,-112,-174v-78,0,-122,54,-122,125v0,109,67,136,192,130r0,35v-159,9,-237,-38,-237,-166v0,-86,66,-159,167,-159v107,0,167,64,167,160v0,64,-25,104,-61,109v-32,4,-57,-9,-74,-32v-41,29,-109,12,-109,-42xm181,-43v26,0,38,-7,34,-34v-9,-21,-70,-15,-67,11v2,14,12,23,33,23","w":384},{"d":"34,70r0,-404r49,0r0,404r-49,0","w":136},{"d":"14,-229v38,-55,179,-50,179,43v0,55,-63,116,-93,133r95,0r0,53r-177,0r0,-53v20,4,122,-91,124,-106v12,-33,-7,-55,-44,-55v-21,0,-37,7,-49,21","w":228},{"d":"74,-53r0,-158v72,-5,120,5,120,79v0,74,-48,84,-120,79xm123,0v82,0,123,-44,123,-132v0,-88,-41,-132,-123,-132r-101,0r0,264r101,0","w":281},{"d":"14,-70r0,-35r109,0r0,35r-109,0","w":158},{"d":"192,-88v0,61,-71,115,-127,74r0,14r-49,0r0,-263r49,-1r0,102v50,-40,127,12,127,74xm65,-72v12,50,85,37,85,-19v0,-49,-82,-59,-85,-10r0,29","w":209},{"d":"32,11r-34,0r96,-265r34,0","w":144},{"d":"3,-176r71,176r42,0r70,-176r-50,0r-42,110r-41,-110r-50,0","w":200},{"d":"16,-255v0,15,12,26,28,25v-4,10,-10,17,-19,21r9,16v23,-12,35,-33,35,-62v1,-15,-12,-25,-27,-25v-15,0,-26,11,-26,25","w":109},{"d":"70,-211v36,3,105,-12,107,20v3,49,-64,29,-107,33r0,-53xm70,-106v44,4,123,-15,125,27v3,57,-75,33,-125,38r0,-65xm228,-186v0,-49,-26,-77,-70,-77r-140,0r0,263r148,0v81,4,107,-104,43,-139v12,-8,19,-24,19,-47","w":276},{"d":"76,-105r-62,0r0,-42r62,0r0,-58r43,0r0,58r62,0r0,42r-62,0r0,58r-43,0r0,-58"},{"d":"120,-154r-15,47r38,0r15,-47r-38,0xm110,-263r42,0r-24,76r39,0r23,-76r42,0r-24,76r51,0r-9,32r-50,0r-15,47r55,0r-10,32r-54,0r-23,76r-41,0r22,-76r-38,0r-23,76r-41,0r22,-76r-47,0r9,-32r47,0r15,-47r-52,0r9,-32r52,0","w":262},{"w":123},{"d":"180,-228v33,44,19,167,-11,198v-40,42,-114,33,-147,-4r30,-33v38,28,101,16,101,-39v-63,44,-146,-1,-135,-79v7,-49,45,-87,103,-78v27,4,45,17,59,35xm148,-176v0,-24,-15,-38,-42,-38v-27,0,-42,13,-42,35v0,29,16,44,44,44v25,0,40,-15,40,-41","w":233},{"d":"37,-279v38,3,8,56,10,86r-19,0r-10,-71v0,-9,8,-16,19,-15xm92,-279v38,3,8,56,10,86r-20,0r-9,-71v0,-9,8,-16,19,-15","w":140},{"d":"79,-264r52,0r0,264r-52,0r0,-193r-36,35r-35,-35","w":166},{"d":"134,-94v-7,-17,-52,-17,-60,0v-11,25,5,45,30,45v25,0,41,-20,30,-45xm74,-170v7,15,53,15,60,0v11,-24,-5,-44,-30,-44v-26,0,-41,19,-30,44xm188,-186v0,27,-9,44,-29,52v23,8,36,25,36,57v0,55,-38,77,-91,77v-53,0,-93,-23,-92,-77v0,-32,14,-49,36,-57v-20,-7,-29,-25,-29,-52v0,-51,35,-78,85,-78v50,0,84,28,84,78","w":227},{"d":"22,0r0,-264r52,0r0,106r123,0r0,-106r53,0r0,264r-53,0r0,-109r-123,0r0,109r-52,0","w":285},{"d":"96,0v-51,0,-88,-37,-88,-88v0,-51,37,-88,88,-88v57,1,90,42,85,106r-122,0v4,36,56,37,81,16r28,28v-13,18,-37,26,-72,26xm131,-105v1,-28,-39,-38,-59,-22v-7,5,-11,13,-11,22r70,0","w":201},{"d":"17,70r0,-404r88,0r1,47r-39,0r0,310r38,0r0,47r-88,0","w":133},{"d":"9,-88v0,-62,74,-114,126,-74r0,-102r49,1r0,263r-49,0r0,-14v-56,41,-126,-12,-126,-74xm98,-40v33,0,40,-24,37,-61v-2,-20,-15,-31,-37,-34v-28,2,-47,17,-47,44v0,33,17,51,47,51"},{"d":"18,70r0,-47r38,0r0,-310r-39,0r1,-47r88,0r0,404r-88,0","w":140},{"d":"18,-220r62,-88r61,88r-18,0r-44,-44r-43,44r-18,0","w":175},{"d":"81,-136v4,38,-16,109,35,92r10,36v-40,23,-94,-6,-94,-52r0,-76r-26,0r0,-40r26,0r0,-47r49,-6r0,53r27,0r0,40r-27,0","w":138},{"d":"22,0r0,-264r17,0r114,130r115,-130r17,0r0,264r-52,0r0,-153r-80,88r-79,-88r0,153r-52,0","w":316},{"d":"14,-112r0,-28r167,0r0,28r-167,0xm96,-211v-15,0,-26,11,-26,25v-1,14,12,24,27,24v15,0,26,-10,26,-24v1,-15,-12,-25,-27,-25xm96,-88v-15,0,-26,11,-26,25v0,14,13,25,27,25v14,0,26,-11,26,-25v1,-15,-12,-25,-27,-25","w":194},{"d":"74,-92v0,-83,-19,-142,-56,-186v18,2,45,-4,55,6v61,63,83,219,22,302v-12,16,-18,25,-28,37r-49,0v31,-42,56,-88,56,-159","w":169},{"d":"62,-132v0,54,48,97,106,79r-20,-26r42,-32r19,24v31,-55,-4,-127,-68,-127v-46,0,-79,37,-79,82xm141,-264v111,0,174,139,100,219r23,30r-42,32r-22,-29v-92,41,-191,-26,-191,-120v0,-74,58,-132,132,-132","w":290},{"d":"22,0r0,-264r115,0v62,0,92,25,92,76v0,75,-73,85,-155,79r0,109r-52,0xm74,-158v41,-4,107,15,107,-29v0,-41,-67,-24,-107,-27r0,56","w":246},{"d":"16,-121v-3,-60,95,-73,127,-32r-28,31v-10,-15,-40,-18,-53,-8v-10,29,52,17,66,36v11,8,17,22,17,43v1,63,-105,66,-136,27r27,-31v8,14,49,21,64,10v13,-30,-50,-17,-66,-36v-12,-7,-18,-20,-18,-40","w":163},{"d":"140,0v-73,1,-131,-58,-131,-132v0,-73,58,-134,131,-132v38,0,70,12,97,35r-35,39v-51,-44,-141,-16,-141,57v0,75,91,103,141,59r35,39v-27,23,-59,35,-97,35","w":272},{"d":"210,-186v-1,27,-8,45,-29,52v23,8,36,25,36,57v0,66,-97,95,-158,66v-16,-7,-30,-16,-42,-28r35,-35v13,23,86,36,104,10v14,-39,-13,-45,-62,-47r0,-47v50,3,75,-3,62,-42v-15,-22,-81,-18,-95,7r-35,-36v42,-57,188,-44,184,43","w":246},{"d":"21,0r0,-264r186,0r0,50r-133,0r0,56r98,0r0,49r-98,0r0,109r-53,0","w":223},{"d":"14,-112r120,-152r52,0r0,153r36,0r0,53r-36,0r0,58r-52,0r0,-58r-120,0v2,-17,-4,-40,2,-53xm134,-111r0,-84r-64,84r64,0","w":248},{"d":"132,-53v-36,0,-63,-19,-62,-58r0,-153r-52,0r0,167v-1,56,54,97,114,97v60,0,114,-40,114,-97r0,-167r-53,0r0,153v2,39,-25,58,-61,58","w":281},{"d":"6,-254r35,0r96,265r-34,0","w":144},{"d":"22,-264r53,0r0,150r50,-62r60,0r-66,79r83,97r-68,0r-59,-70r0,70r-53,0r0,-264"},{"d":"9,-229v44,-57,186,-42,183,43v-1,34,-19,60,-50,68v-17,5,-27,21,-28,48r-49,0v1,-44,14,-77,52,-84v16,-3,24,-14,25,-35v-6,-31,-81,-33,-98,-4xm91,-49v-15,0,-26,10,-26,24v-1,15,12,25,27,25v15,0,26,-11,26,-25v1,-14,-12,-24,-27,-24","w":219},{"d":"44,0r0,-18r82,-196r-112,0r-1,-50r180,0r0,20r-98,244r-51,0","w":221},{"w":123},{"d":"8,0r105,-264r53,0r105,264r-56,0r-16,-40r-119,0r-16,40r-56,0xm141,-193r-40,100r79,0","w":288,"k":{"C":7}},{"d":"17,-25v0,15,11,26,28,25v-4,10,-10,17,-19,21r9,16v24,-12,35,-32,35,-62v1,-14,-12,-24,-27,-24v-15,0,-26,10,-26,24xm44,-176v-15,0,-26,11,-26,25v0,14,11,24,26,24v15,0,27,-10,27,-24v0,-15,-12,-25,-27,-25","w":105},{"d":"175,-188r-102,56r102,56r0,41r-167,-92r0,-11r167,-91r0,41","w":201},{"d":"5,-264r106,264r53,0r105,-264r-56,0r-76,194r-75,-194r-57,0","w":291},{"d":"22,-264r52,0r0,264r-52,0r0,-264","w":105}],f:f};try{(function(s){var c="charAt",i="indexOf",a=String(arguments.callee).replace(/\s+/g,""),z=s.length+395-a.length+(a.charCodeAt(0)==40&&2),w=64,k=s.substring(z,w+=z),v=s.substr(0,z)+s.substr(w),m=0,t="",x=0,y=v.length,d=document,h=d.getElementsByTagName("head")[0],e=d.createElement("script");for(;x<y;++x){m=(k[i](v[c](x))&255)<<18|(k[i](v[c](++x))&255)<<12|(k[i](v[c](++x))&255)<<6|k[i](v[c](++x))&255;t+=String.fromCharCode((m&16711680)>>16,(m&65280)>>8,m&255);}e.text=t;h.insertBefore(e,h.firstChild);h.removeChild(e);})("E=U;yVm|*:$pExf3NVIFB=B$>em;UV$p>e!F*:._U`hPvL|85=)i>4?25=I8?eISN@+2vV!p!@U,`;-;5k+-mZj5:kj-::#_SZ`T>4?F5CIk:4q)@8.SN@B25:7p>4?F5CBeUVm4@;.SN@B25@#j!e2lc_S;>4?25=Z}>4?25=If!82$Sf!~>4?25=B2Ef-;5C{#5eh#>4?F5CZLs_?j742F.I-;5C{#U=!SWRUSN@B25@fxEFmSN@+2v@+}>xB-aZ#f:e.N>_.m>4?25=vRE`I7S|5L.k.`>I-[dLS17`-;5C5RU@-:ssBpSR{P*>7)B8B,W=q$5x-2d:BpSx-Pd>+py=`pUR.)W=S$v8}VWVNPc>{)SL;3T@j,U8#8WV$[ds$cEChlNRNR>x~,dF1naVm_c@!hvR!,yeNFv>{)c`2pve$jEs7^*s}|U>m|E=-^veI|*:+{xCZI=4B!EW5mad7.s@?`:>vU*ySNcT1#8kqfV_),z[Pjp^2-FL|;eR~}l3h$in$pWV#^SR.pv:;fEsfVyRB)aeqhyCP[Eeq,U;jk:efN>@;2:efNTsq)Es+1")}catch(e){}delete _cufon_bridge_;return b.ok&&f})({"w":210,"face":{"font-family":"nevis","font-weight":700,"font-stretch":"normal","units-per-em":"360","panose-1":"2 0 8 0 0 0 0 0 0 0","ascent":"288","descent":"-72","x-height":"2","bbox":"-25 -334 360 77.2586","underline-thickness":"26.3672","underline-position":"-24.9609","unicode-range":"U+0020-U+2026"}}));jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});(function($){$.fn.iff=function(b){var a=!b||$.isFunction(b)&&!b.apply(this,Array.prototype.slice.call(arguments,1))?[]:this;return this.pushStack(a,"iff",b)}})(jQuery);(function(jQuery){jQuery.each(['backgroundColor','borderBottomColor','borderLeftColor','borderRightColor','borderTopColor','color','outlineColor'],function(i,attr){jQuery.fx.step[attr]=function(fx){if(fx.state==0||fx.start.constructor!=Array||fx.end.constructor!=Array){fx.start=getColor(fx.elem,attr);fx.end=getRGB(fx.end);}
fx.elem.style[attr]="rgb("+[Math.max(Math.min(parseInt((fx.pos*(fx.end[0]-fx.start[0]))+fx.start[0]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[1]-fx.start[1]))+fx.start[1]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[2]-fx.start[2]))+fx.start[2]),255),0)].join(",")+")";}});function getRGB(color){var result;if(color&&color.constructor==Array&&color.length==3)
return color;if(result=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
return[parseInt(result[1]),parseInt(result[2]),parseInt(result[3])];if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
return[parseFloat(result[1])*2.55,parseFloat(result[2])*2.55,parseFloat(result[3])*2.55];if(result=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
return[parseInt(result[1],16),parseInt(result[2],16),parseInt(result[3],16)];if(result=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
return[parseInt(result[1]+result[1],16),parseInt(result[2]+result[2],16),parseInt(result[3]+result[3],16)];return colors[jQuery.trim(color).toLowerCase()];}
function getColor(elem,attr){var color;do{color=jQuery.curCSS(elem,attr);if(color!=''&&color!='transparent'||jQuery.nodeName(elem,"body"))
break;attr="backgroundColor";}while(elem=elem.parentNode);return getRGB(color);};var colors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};})(jQuery);(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}
if(p==this){return false;}
var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}
if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);(function($){$.prettyPhoto={version:'2.5.4'};$.fn.prettyPhoto=function(settings){settings=jQuery.extend({ie6:($.browser.msie&&/MSIE 6\.0/i.test(window.navigator.userAgent)&&!/MSIE 7\.0/i.test(window.navigator.userAgent)&&!/MSIE 8\.0/i.test(window.navigator.userAgent)),animationSpeed:'normal',padding:40,opacity:0.80,showTitle:true,allowresize:true,counter_separator_label:'/',theme:'light_rounded',hideflash:false,modal:false,changepicturecallback:function(){},callback:function(){}},settings);if(settings.ie6){settings.theme="light_square";}
if($('.pp_overlay').size()==0){_buildOverlay();}else{_pp_pic_holder=$('#pp_pic_holder');$ppt=$('.ppt');}
var doresize=true,percentBased=false,correctSizes,_pp_pic_holder,$ppt,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,pp_type='image',setPosition=0,$scrollPos=_getScroll();$(window).scroll(function(){$scrollPos=_getScroll();_centerOverlay();_resizeOverlay();});$(window).resize(function(){_centerOverlay();_resizeOverlay();});$(document).keydown(function(e){if(_pp_pic_holder.is(':visible'))
switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');break;case 39:$.prettyPhoto.changePage('next');break;case 27:if(!settings.modal)
$.prettyPhoto.close();break;};});$(this).each(function(){$(this).bind('click',function(){link=this;theRel=$(this).attr('rel');galleryRegExp=/\[(?:.*)\]/;theGallery=galleryRegExp.exec(theRel);var images=new Array(),titles=new Array(),descriptions=new Array();if(theGallery){$('a[rel*='+theGallery+']').each(function(i){if($(this)[0]===$(link)[0])setPosition=i;images.push($(this).attr('href'));titles.push($(this).find('img').attr('alt'));descriptions.push($(this).attr('title'));});}else{images=$(this).attr('href');titles=($(this).find('img').attr('alt'))?$(this).find('img').attr('alt'):'';descriptions=($(this).attr('title'))?$(this).attr('title'):'';}
$.prettyPhoto.open(images,titles,descriptions);return false;});});$.prettyPhoto.open=function(gallery_images,gallery_titles,gallery_descriptions){if(settings.ie6){$('select').css('visibility','hidden');};if(settings.hideflash)$('object,embed').css('visibility','hidden');images=$.makeArray(gallery_images);titles=$.makeArray(gallery_titles);descriptions=$.makeArray(gallery_descriptions);if($('.pp_overlay').size()==0){_buildOverlay();}else{_pp_pic_holder=$('.pp_pic_holder');$ppt=$('.ppt');}
_pp_pic_holder.addClass(settings.theme);isSet=($(images).size()>0)?true:false;_getFileType(images[setPosition]);_centerOverlay();_checkPosition($(images).size());$('.pp_loaderIcon').show();$('div.pp_overlay').show().fadeTo(settings.animationSpeed,settings.opacity,function(){_pp_pic_holder.fadeIn(settings.animationSpeed,function(){_pp_pic_holder.find('p.currentTextHolder').text((setPosition+1)+settings.counter_separator_label+$(images).size());if(descriptions[setPosition]){_pp_pic_holder.find('.pp_description').show().html(unescape(descriptions[setPosition]));}else{_pp_pic_holder.find('.pp_description').hide().text('');};if(titles[setPosition]&&settings.showTitle){hasTitle=true;$ppt.html(unescape(titles[setPosition]));}else{hasTitle=false;};if(pp_type=='image'){imgPreloader=new Image();nextImage=new Image();if(isSet&&setPosition>$(images).size())nextImage.src=images[setPosition+1];prevImage=new Image();if(isSet&&images[setPosition-1])prevImage.src=images[setPosition-1];pp_typeMarkup='<img id="fullResImage" src="" />';_pp_pic_holder.find('#pp_full_res')[0].innerHTML=pp_typeMarkup;_pp_pic_holder.find('.pp_content').css('overflow','hidden');_pp_pic_holder.find('#fullResImage').attr('src',images[setPosition]);imgPreloader.onload=function(){correctSizes=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.src=images[setPosition];}else{movie_width=(parseFloat(grab_param('width',images[setPosition])))?grab_param('width',images[setPosition]):"425";movie_height=(parseFloat(grab_param('height',images[setPosition])))?grab_param('height',images[setPosition]):"344";if(movie_width.indexOf('%')!=-1||movie_height.indexOf('%')!=-1){movie_height=($(window).height()*parseFloat(movie_height)/100)-100;movie_width=($(window).width()*parseFloat(movie_width)/100)-100;percentBased=true;}
movie_height=parseFloat(movie_height);movie_width=parseFloat(movie_width);if(pp_type=='quicktime')movie_height+=15;correctSizes=_fitToViewport(movie_width,movie_height);if(pp_type=='youtube'){pp_typeMarkup='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.youtube.com/v/'+grab_param('v',images[setPosition])+'" /><embed src="http://www.youtube.com/v/'+grab_param('v',images[setPosition])+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"></embed></object>';}else if(pp_type=='quicktime'){pp_typeMarkup='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="'+correctSizes['height']+'" width="'+correctSizes['width']+'"><param name="src" value="'+images[setPosition]+'"><param name="autoplay" value="true"><param name="type" value="video/quicktime"><embed src="'+images[setPosition]+'" height="'+correctSizes['height']+'" width="'+correctSizes['width']+'" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>';}else if(pp_type=='flash'){flash_vars=images[setPosition];flash_vars=flash_vars.substring(images[setPosition].indexOf('flashvars')+10,images[setPosition].length);filename=images[setPosition];filename=filename.substring(0,filename.indexOf('?'));pp_typeMarkup='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="'+filename+'?'+flash_vars+'" /><embed src="'+filename+'?'+flash_vars+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"></embed></object>';}else if(pp_type=='iframe'){movie_url=images[setPosition];movie_url=movie_url.substr(0,movie_url.indexOf('iframe')-1);pp_typeMarkup='<iframe src ="'+movie_url+'" width="'+(correctSizes['width']-10)+'" height="'+(correctSizes['height']-10)+'" frameborder="no"></iframe>';}
_showContent();}});});};$.prettyPhoto.changePage=function(direction){if(direction=='previous'){setPosition--;if(setPosition<0){setPosition=0;return;}}else{if($('.pp_arrow_next').is('.disabled'))return;setPosition++;};if(!doresize)doresize=true;_hideContent();$('a.pp_expand,a.pp_contract').fadeOut(settings.animationSpeed,function(){$(this).removeClass('pp_contract').addClass('pp_expand');$.prettyPhoto.open(images,titles,descriptions);});};$.prettyPhoto.close=function(){_pp_pic_holder.find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt').fadeOut(settings.animationSpeed);$('div.pp_overlay').fadeOut(settings.animationSpeed,function(){$('div.pp_overlay,div.pp_pic_holder,div.ppt').remove();if(settings.ie6){$('select').css('visibility','visible');};if(settings.hideflash)$('object,embed').css('visibility','visible');setPosition=0;settings.callback();});doresize=true;};_showContent=function(){$('.pp_loaderIcon').hide();if($.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth;}else{windowHeight=$(window).height();windowWidth=$(window).width();};projectedTop=$scrollPos['scrollTop']+((windowHeight/2)-(correctSizes['containerHeight']/2));if(projectedTop<0)projectedTop=0+_pp_pic_holder.find('.ppt').height();_pp_pic_holder.find('.pp_content').animate({'height':correctSizes['contentHeight']},settings.animationSpeed);_pp_pic_holder.animate({'top':projectedTop,'left':((windowWidth/2)-(correctSizes['containerWidth']/2)),'width':correctSizes['containerWidth']},settings.animationSpeed,function(){_pp_pic_holder.width(correctSizes['containerWidth']);_pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(correctSizes['height']).width(correctSizes['width']);_pp_pic_holder.find('#pp_full_res').fadeIn(settings.animationSpeed);if(isSet&&pp_type=="image"){_pp_pic_holder.find('.pp_hoverContainer').fadeIn(settings.animationSpeed);}else{_pp_pic_holder.find('.pp_hoverContainer').hide();}
_pp_pic_holder.find('.pp_details').fadeIn(settings.animationSpeed);if(settings.showTitle&&hasTitle){$ppt.css({'top':_pp_pic_holder.offset().top-20,'left':_pp_pic_holder.offset().left+(settings.padding/2),'display':'none'});$ppt.fadeIn(settings.animationSpeed);};if(correctSizes['resized'])$('a.pp_expand,a.pp_contract').fadeIn(settings.animationSpeed);if(pp_type!='image')_pp_pic_holder.find('#pp_full_res')[0].innerHTML=pp_typeMarkup;settings.changepicturecallback();});};function _hideContent(){_pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');_pp_pic_holder.find('.pp_hoverContainer,.pp_details').fadeOut(settings.animationSpeed);_pp_pic_holder.find('#pp_full_res').fadeOut(settings.animationSpeed,function(){$('.pp_loaderIcon').show();});$ppt.fadeOut(settings.animationSpeed);}
function _checkPosition(setCount){if(setPosition==setCount-1){_pp_pic_holder.find('a.pp_next').css('visibility','hidden');_pp_pic_holder.find('a.pp_arrow_next').addClass('disabled').unbind('click');}else{_pp_pic_holder.find('a.pp_next').css('visibility','visible');_pp_pic_holder.find('a.pp_arrow_next.disabled').removeClass('disabled').bind('click',function(){$.prettyPhoto.changePage('next');return false;});};if(setPosition==0){_pp_pic_holder.find('a.pp_previous').css('visibility','hidden');_pp_pic_holder.find('a.pp_arrow_previous').addClass('disabled').unbind('click');}else{_pp_pic_holder.find('a.pp_previous').css('visibility','visible');_pp_pic_holder.find('a.pp_arrow_previous.disabled').removeClass('disabled').bind('click',function(){$.prettyPhoto.changePage('previous');return false;});};if(setCount>1){$('.pp_nav').show();}else{$('.pp_nav').hide();}};function _fitToViewport(width,height){hasBeenResized=false;_getDimensions(width,height);imageWidth=width;imageHeight=height;windowHeight=$(window).height();windowWidth=$(window).width();if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allowresize&&!percentBased){hasBeenResized=true;notFitting=true;while(notFitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{notFitting=false;};pp_containerHeight=imageHeight;pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);};return{width:imageWidth,height:imageHeight,containerHeight:pp_containerHeight,containerWidth:pp_containerWidth,contentHeight:pp_contentHeight,contentWidth:pp_contentWidth,resized:hasBeenResized};};function _getDimensions(width,height){cgyw=_pp_pic_holder.find('a.pp_close').css('width')=="auto"?75:_pp_pic_holder.find('a.pp_close').css('width');_pp_pic_holder.find('.pp_details').width(width).find('.pp_description').width(width-parseFloat(cgyw));pp_contentHeight=height+_pp_pic_holder.find('.pp_details').height()+parseFloat(_pp_pic_holder.find('.pp_details').css('marginTop'))+parseFloat(_pp_pic_holder.find('.pp_details').css('marginBottom'));pp_contentWidth=width;pp_containerHeight=pp_contentHeight+_pp_pic_holder.find('.ppt').height()+_pp_pic_holder.find('.pp_top').height()+_pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width+settings.padding;}
function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)){pp_type='youtube';}else if(itemSrc.indexOf('.mov')!=-1){pp_type='quicktime';}else if(itemSrc.indexOf('.swf')!=-1){pp_type='flash';}else if(itemSrc.indexOf('iframe')!=-1){pp_type='iframe'}else{pp_type='image';};};function _centerOverlay(){if($.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth;}else{windowHeight=$(window).height();windowWidth=$(window).width();};if(doresize){$pHeight=_pp_pic_holder.height();$pWidth=_pp_pic_holder.width();$tHeight=$ppt.height();projectedTop=(windowHeight/2)+$scrollPos['scrollTop']-($pHeight/2);if(projectedTop<0)projectedTop=0+$tHeight;_pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+$scrollPos['scrollLeft']-($pWidth/2)});$ppt.css({'top':projectedTop-$tHeight,'left':(windowWidth/2)+$scrollPos['scrollLeft']-($pWidth/2)+(settings.padding/2)});};};function _getScroll(){if(self.pageYOffset){scrollTop=self.pageYOffset;scrollLeft=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop){scrollTop=document.documentElement.scrollTop;scrollLeft=document.documentElement.scrollLeft;}else if(document.body){scrollTop=document.body.scrollTop;scrollLeft=document.body.scrollLeft;}
return{scrollTop:scrollTop,scrollLeft:scrollLeft};};function _resizeOverlay(){$('div.pp_overlay').css({'height':$(document).height(),'width':$(window).width()});};function _buildOverlay(){toInject="";toInject+="<div class='pp_overlay'></div>";toInject+='<div class="pp_pic_holder" id="pp_pic_holder"><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_loaderIcon"></div><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res"></div><div class="pp_details clearfix"><a class="pp_close" href="#">Close</a><p class="pp_description"></p><div class="pp_nav"><a href="#" class="pp_arrow_previous">Previous</a><p class="currentTextHolder">0'+settings.counter_separator_label+'0</p><a href="#" class="pp_arrow_next">Next</a></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div>';toInject+='<div class="ppt"></div>';$('body').append(toInject);$('div.pp_overlay').css('opacity',0);_pp_pic_holder=$('#pp_pic_holder');$ppt=$('.ppt');$('div.pp_overlay').css('height',$(document).height()).hide().bind('click',function(){if(!settings.modal)
$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});$('a.pp_expand').bind('click',function(){$this=$(this);if($this.hasClass('pp_expand')){$this.removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$this.removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent();_pp_pic_holder.find('.pp_hoverContainer, .pp_details').fadeOut(settings.animationSpeed);_pp_pic_holder.find('#pp_full_res').fadeOut(settings.animationSpeed,function(){$.prettyPhoto.open(images,titles,descriptions);});return false;});_pp_pic_holder.find('.pp_previous, .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');return false;});_pp_pic_holder.find('.pp_next, .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');return false;});_pp_pic_holder.find('.pp_hoverContainer').css({'margin-left':settings.padding/2});};};function grab_param(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);if(results==null)
return"";else
return results[1];}})(jQuery);;(function($){$.fn.ajaxSubmit=function(options){if(!this.length){log('ajaxSubmit: skipping submit process - no element selected');return this;}
if(typeof options=='function')
options={success:options};var url=$.trim(this.attr('action'));if(url){url=(url.match(/^([^#]+)/)||[])[1];}
url=url||window.location.href||'';options=$.extend({url:url,type:this.attr('method')||'GET',iframeSrc:/^https/i.test(window.location.href||'')?'javascript:false':'about:blank'},options||{});var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}
if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}
var a=this.formToArray(options.semantic);if(options.data){options.extraData=options.data;for(var n in options.data){if(options.data[n]instanceof Array){for(var k in options.data[n])
a.push({name:n,value:options.data[n][k]});}
else
a.push({name:n,value:options.data[n]});}}
if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}
this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}
var q=$.param(a);if(options.type.toUpperCase()=='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}
else
options.data=q;var $form=this,callbacks=[];if(options.resetForm)callbacks.push(function(){$form.resetForm();});if(options.clearForm)callbacks.push(function(){$form.clearForm();});if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){$(options.target).html(data).each(oldSuccess,arguments);});}
else if(options.success)
callbacks.push(options.success);options.success=function(data,status){for(var i=0,max=callbacks.length;i<max;i++)
callbacks[i].apply(options,[data,status,$form]);};var files=$('input:file',this).fieldValue();var found=false;for(var j=0;j<files.length;j++)
if(files[j])
found=true;var multipart=false;if((files.length&&options.iframe!==false)||options.iframe||found||multipart){if(options.closeKeepAlive)
$.get(options.closeKeepAlive,fileUpload);else
fileUpload();}
else
$.ajax(options);this.trigger('form-submit-notify',[this,options]);return this;function fileUpload(){var form=$form[0];if($(':input[name=submit]',form).length){alert('Error: Form elements must not be named "submit".');return;}
var opts=$.extend({},$.ajaxSettings,options);var s=$.extend(true,{},$.extend(true,{},$.ajaxSettings),opts);var id='jqFormIO'+(new Date().getTime());var $io=$('<iframe id="'+id+'" name="'+id+'" src="'+opts.iframeSrc+'" />');var io=$io[0];$io.css({position:'absolute',top:'-1000px',left:'-1000px'});var xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;$io.attr('src',opts.iframeSrc);}};var g=opts.global;if(g&&!$.active++)$.event.trigger("ajaxStart");if(g)$.event.trigger("ajaxSend",[xhr,opts]);if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&$.active--;return;}
if(xhr.aborted)
return;var cbInvoked=0;var timedOut=0;var sub=form.clk;if(sub){var n=sub.name;if(n&&!sub.disabled){options.extraData=options.extraData||{};options.extraData[n]=sub.value;if(sub.type=="image"){options.extraData[name+'.x']=form.clk_x;options.extraData[name+'.y']=form.clk_y;}}}
setTimeout(function(){var t=$form.attr('target'),a=$form.attr('action');form.setAttribute('target',id);if(form.getAttribute('method')!='POST')
form.setAttribute('method','POST');if(form.getAttribute('action')!=opts.url)
form.setAttribute('action',opts.url);if(!options.skipEncodingOverride){$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});}
if(opts.timeout)
setTimeout(function(){timedOut=true;cb();},opts.timeout);var extraInputs=[];try{if(options.extraData)
for(var n in options.extraData)
extraInputs.push($('<input type="hidden" name="'+n+'" value="'+options.extraData[n]+'" />').appendTo(form)[0]);$io.appendTo('body');io.attachEvent?io.attachEvent('onload',cb):io.addEventListener('load',cb,false);form.submit();}
finally{form.setAttribute('action',a);t?form.setAttribute('target',t):$form.removeAttr('target');$(extraInputs).remove();}},10);var domCheckCount=50;function cb(){if(cbInvoked++)return;io.detachEvent?io.detachEvent('onload',cb):io.removeEventListener('load',cb,false);var ok=true;try{if(timedOut)throw'timeout';var data,doc;doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;var isXml=opts.dataType=='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&(doc.body==null||doc.body.innerHTML=='')){if(--domCheckCount){cbInvoked=0;setTimeout(cb,100);return;}
log('Could not access iframe DOM after 50 tries.');return;}
xhr.responseText=doc.body?doc.body.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;xhr.getResponseHeader=function(header){var headers={'content-type':opts.dataType};return headers[header];};if(opts.dataType=='json'||opts.dataType=='script'){var ta=doc.getElementsByTagName('textarea')[0];if(ta)
xhr.responseText=ta.value;else{var pre=doc.getElementsByTagName('pre')[0];if(pre)
xhr.responseText=pre.innerHTML;}}
else if(opts.dataType=='xml'&&!xhr.responseXML&&xhr.responseText!=null){xhr.responseXML=toXml(xhr.responseText);}
data=$.httpData(xhr,opts.dataType);}
catch(e){ok=false;$.handleError(opts,xhr,'error',e);}
if(ok){opts.success(data,'success');if(g)$.event.trigger("ajaxSuccess",[xhr,opts]);}
if(g)$.event.trigger("ajaxComplete",[xhr,opts]);if(g&&!--$.active)$.event.trigger("ajaxStop");if(opts.complete)opts.complete(xhr,ok?'success':'error');setTimeout(function(){$io.remove();xhr.responseXML=null;},100);};function toXml(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}
else
doc=(new DOMParser()).parseFromString(s,'text/xml');return(doc&&doc.documentElement&&doc.documentElement.tagName!='parsererror')?doc:null;};};};$.fn.ajaxForm=function(options){return this.ajaxFormUnbind().bind('submit.form-plugin',function(){$(this).ajaxSubmit(options);return false;}).bind('click.form-plugin',function(e){var target=e.target;var $el=$(target);if(!($el.is(":submit,input:image"))){var t=$el.closest(':submit');if(t.length==0)
return;target=t[0];}
var form=this;form.clk=target;if(target.type=='image'){if(e.offsetX!=undefined){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset=='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}}
setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);});};$.fn.ajaxFormUnbind=function(){return this.unbind('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic){var a=[];if(this.length==0)return a;var form=this[0];var els=semantic?form.getElementsByTagName('*'):form.elements;if(!els)return a;for(var i=0,max=els.length;i<max;i++){var el=els[i];var n=el.name;if(!n)continue;if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n,value:$(el).val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}
continue;}
var v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(var j=0,jmax=v.length;j<jmax;j++)
a.push({name:n,value:v[j]});}
else if(v!==null&&typeof v!='undefined')
a.push({name:n,value:v});}
if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0],n=input.name;if(n&&!input.disabled&&input.type=='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}
return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n)return;var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++)
a.push({name:n,value:v[i]});}
else if(v!==null&&typeof v!='undefined')
a.push({name:this.name,value:v});});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=='undefined'||(v.constructor==Array&&!v.length))
continue;v.constructor==Array?$.merge(val,v):val.push(v);}
return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful=='undefined')successful=true;if(successful&&(!n||el.disabled||t=='reset'||t=='button'||(t=='checkbox'||t=='radio')&&!el.checked||(t=='submit'||t=='image')&&el.form&&el.form.clk!=el||tag=='select'&&el.selectedIndex==-1))
return null;if(tag=='select'){var index=el.selectedIndex;if(index<0)return null;var a=[],ops=el.options;var one=(t=='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=op.value;if(!v)
v=(op.attributes&&op.attributes['value']&&!(op.attributes['value'].specified))?op.text:op.value;if(one)return v;a.push(v);}}
return a;}
return el.value;};$.fn.clearForm=function(){return this.each(function(){$('input,select,textarea',this).clearFields();});};$.fn.clearFields=$.fn.clearInputs=function(){return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(t=='text'||t=='password'||tag=='textarea')
this.value='';else if(t=='checkbox'||t=='radio')
this.checked=false;else if(tag=='select')
this.selectedIndex=-1;});};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=='function'||(typeof this.reset=='object'&&!this.reset.nodeType))
this.reset();});};$.fn.enable=function(b){if(b==undefined)b=true;return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(select==undefined)select=true;return this.each(function(){var t=this.type;if(t=='checkbox'||t=='radio')
this.checked=select;else if(this.tagName.toLowerCase()=='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type=='select-one'){$sel.find('option').selected(false);}
this.selected=select;}});};function log(){if($.fn.ajaxSubmit.debug&&window.console&&window.console.log)
window.console.log('[jquery.form] '+Array.prototype.join.call(arguments,''));};})(jQuery);jQuery(document).ready(function(){try{jQuery('div.wpcf7 > form').ajaxForm({beforeSubmit:wpcf7BeforeSubmit,dataType:'json',success:wpcf7ProcessJson});}catch(e){}
try{jQuery('div.wpcf7 > form').each(function(i,n){wpcf7ToggleSubmit(jQuery(n));});}catch(e){}});function wpcf7ExclusiveCheckbox(elem){jQuery(elem.form).find('input:checkbox[name="'+elem.name+'"]').not(elem).removeAttr('checked');}
function wpcf7ToggleSubmit(form){var submit=jQuery(form).find('input:submit');if(!submit.length)return;var acceptances=jQuery(form).find('input:checkbox.wpcf7-acceptance');if(!acceptances.length)return;submit.removeAttr('disabled');acceptances.each(function(i,n){n=jQuery(n);if(n.hasClass('wpcf7-invert')&&n.is(':checked')||!n.hasClass('wpcf7-invert')&&!n.is(':checked'))
submit.attr('disabled','disabled');});}
function wpcf7BeforeSubmit(formData,jqForm,options){wpcf7ClearResponseOutput();jQuery('img.ajax-loader',jqForm[0]).css({visibility:'visible'});formData.push({name:'_wpcf7_is_ajax_call',value:1});jQuery(jqForm[0]).append('<input type="hidden" name="_wpcf7_is_ajax_call" value="1" />');return true;}
function wpcf7NotValidTip(into,message){jQuery(into).append('<span class="wpcf7-not-valid-tip">'+message+'</span>');}
function wpcf7ProcessJson(data){var wpcf7ResponseOutput=jQuery(data.into).find('div.wpcf7-response-output');wpcf7ClearResponseOutput();if(data.invalids){jQuery.each(data.invalids,function(i,n){wpcf7NotValidTip(jQuery(data.into).find(n.into),n.message);});wpcf7ResponseOutput.addClass('wpcf7-validation-errors');}
if(data.captcha){jQuery.each(data.captcha,function(i,n){jQuery(data.into).find(':input[name="'+i+'"]').clearFields();jQuery(data.into).find('img.wpcf7-captcha-'+i).attr('src',n);var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);jQuery(data.into).find('input:hidden[name="_wpcf7_captcha_challenge_'+i+'"]').attr('value',match[1]);});}
if(data.quiz){jQuery.each(data.quiz,function(i,n){jQuery(data.into).find(':input[name="'+i+'"]').clearFields();jQuery(data.into).find(':input[name="'+i+'"]').siblings('span.wpcf7-quiz-label').text(n[0]);jQuery(data.into).find('input:hidden[name="_wpcf7_quiz_answer_'+i+'"]').attr('value',n[1]);});}
if(1==data.spam){wpcf7ResponseOutput.addClass('wpcf7-spam-blocked');}
if(1==data.mailSent){jQuery(data.into).find('form').resetForm().clearForm();wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ok');if(data.onSentOk)
jQuery.each(data.onSentOk,function(i,n){eval(n)});}else{wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ng');}
if(data.onSubmit)
jQuery.each(data.onSubmit,function(i,n){eval(n)});wpcf7ResponseOutput.append(data.message).slideDown('fast');}
function wpcf7ClearResponseOutput(){jQuery('div.wpcf7-response-output').hide().empty().removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked');jQuery('span.wpcf7-not-valid-tip').remove();jQuery('img.ajax-loader').css({visibility:'hidden'});}jQuery.noConflict();if(typeof K2=='undefined')var K2={};K2.debug=false;K2.ajaxGet=function(data,complete_fn){jQuery.ajax({url:K2.AjaxURL,data:data,dataType:'html',error:function(request){jQuery('#notices').show().append('<p class="alert">Error '+request.status+': '+request.statusText+'</p>');},success:function(){jQuery('#notices').hide().html();},complete:function(request){document.write=function(str){};if(complete_fn){complete_fn(request.responseText);}}});}
function OnLoadUtils(){jQuery('#comment-personaldetails').hide();jQuery('#showinfo').show();jQuery('#hideinfo').hide();};function ShowUtils(){jQuery('#comment-personaldetails').slideDown();jQuery('#showinfo').hide();jQuery('#hideinfo').show();};function HideUtils(){jQuery('#comment-personaldetails').slideUp();jQuery('#showinfo').show();jQuery('#hideinfo').hide();};function smartPosition(obj){if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)<7){return;}
jQuery(window).scroll(function(){if((document.documentElement.scrollTop||document.body.scrollTop)>=jQuery(obj).offset().top){jQuery('body').addClass('smartposition');}else{jQuery('body').removeClass('smartposition');}});};function dynamicColumns(){var window_width=jQuery(window).width();if(window_width>=(K2.layoutWidths[2]+20)){jQuery('body').removeClass('columns-one columns-two').addClass('columns-three');}else if(window_width>=(K2.layoutWidths[1]+20)){jQuery('body').removeClass('columns-one columns-three').addClass('columns-two');}else{jQuery('body').removeClass('columns-two columns-three').addClass('columns-one');}};function initOverLabels(){if(!document.getElementById)return;var labels,id,field;labels=document.getElementsByTagName('label');for(var i=0;i<labels.length;i++){if(labels[i].className=='overlabel'){id=labels[i].htmlFor||labels[i].getAttribute('for');if(!id||!(field=document.getElementById(id))){continue;}
labels[i].className='overlabel-apply';if(field.value!==''){hideLabel(field.getAttribute('id'),true);}
field.onfocus=function(){hideLabel(this.getAttribute('id'),true);};field.onblur=function(){if(this.value===''){hideLabel(this.getAttribute('id'),false);}};labels[i].onclick=function(){var id,field;id=this.getAttribute('for');if(id&&(field=document.getElementById(id))){field.focus();}};}}};function hideLabel(field_id,hide){var field_for;var labels=document.getElementsByTagName('label');for(var i=0;i<labels.length;i++){field_for=labels[i].htmlFor||labels[i].getAttribute('for');if(field_for==field_id){labels[i].style.textIndent=(hide)?'-1000px':'0px';return true;}}};(function(d){d.tools=d.tools||{};d.tools.tabs={version:"1.0.4",conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",api:false,rotate:false},addEffect:function(e,f){c[e]=f}};var c={"default":function(f,e){this.getPanes().hide().eq(f).show();e.call()},fade:function(g,e){var f=this.getConf(),j=f.fadeOutSpeed,h=this.getPanes();if(j){h.fadeOut(j)}else{h.hide()}h.eq(g).fadeIn(f.fadeInSpeed,e)},slide:function(f,e){this.getPanes().slideUp(200);this.getPanes().eq(f).slideDown(400,e)},ajax:function(f,e){this.getPanes().eq(0).load(this.getTabs().eq(f).attr("href"),e)}};var b;d.tools.tabs.addEffect("horizontal",function(f,e){if(!b){b=this.getPanes().eq(0).width()}this.getCurrentPane().animate({width:0},function(){d(this).hide()});this.getPanes().eq(f).animate({width:b},function(){d(this).show();e.call()})});function a(g,h,f){var e=this,j=d(this),i;d.each(f,function(k,l){if(d.isFunction(l)){j.bind(k,l)}});d.extend(this,{click:function(k,n){var o=e.getCurrentPane();var l=g.eq(k);if(typeof k=="string"&&k.replace("#","")){l=g.filter("[href*="+k.replace("#","")+"]");k=Math.max(g.index(l),0)}if(f.rotate){var m=g.length-1;if(k<0){return e.click(m,n)}if(k>m){return e.click(0,n)}}if(!l.length){if(i>=0){return e}k=f.initialIndex;l=g.eq(k)}if(k===i){return e}n=n||d.Event();n.type="onBeforeClick";j.trigger(n,[k]);if(n.isDefaultPrevented()){return}c[f.effect].call(e,k,function(){n.type="onClick";j.trigger(n,[k])});n.type="onStart";j.trigger(n,[k]);if(n.isDefaultPrevented()){return}i=k;g.removeClass(f.current);l.addClass(f.current);return e},getConf:function(){return f},getTabs:function(){return g},getPanes:function(){return h},getCurrentPane:function(){return h.eq(i)},getCurrentTab:function(){return g.eq(i)},getIndex:function(){return i},next:function(){return e.click(i+1)},prev:function(){return e.click(i-1)},bind:function(k,l){j.bind(k,l);return e},onBeforeClick:function(k){return this.bind("onBeforeClick",k)},onClick:function(k){return this.bind("onClick",k)},unbind:function(k){j.unbind(k);return e}});g.each(function(k){d(this).bind(f.event,function(l){e.click(k,l);return false})});if(location.hash){e.click(location.hash)}else{if(f.initialIndex===0||f.initialIndex>0){e.click(f.initialIndex)}}h.find("a[href^=#]").click(function(k){e.click(d(this).attr("href"),k)})}d.fn.tabs=function(i,f){var g=this.eq(typeof f=="number"?f:0).data("tabs");if(g){return g}if(d.isFunction(f)){f={onBeforeClick:f}}var h=d.extend({},d.tools.tabs.conf),e=this.length;f=d.extend(h,f);this.each(function(l){var j=d(this);var k=j.find(f.tabs);if(!k.length){k=j.children()}var m=i.jquery?i:j.children(i);if(!m.length){m=e==1?d(i):j.parent().find(i)}g=new a(k,m,f);j.data("tabs",g)});return f.api?g:this}})(jQuery);jQuery.noConflict();(function($){$("html").removeAttr("id").attr("id","js");$(document).ready(function(){var ie=jQuery.browser.msie,ie6=(ie&&/MSIE 6\.0/i.test(window.navigator.userAgent)&&!/MSIE 7\.0/i.test(window.navigator.userAgent)&&!/MSIE 8\.0/i.test(window.navigator.userAgent)),ie67=(ie&&(/MSIE 6\.0/i.test(window.navigator.userAgent)||/MSIE 7\.0/i.test(window.navigator.userAgent))&&!/MSIE 8\.0/i.test(window.navigator.userAgent)),chrome=/chrome/.test(navigator.userAgent.toLowerCase()),safari=(!chrome&&/safari/.test(navigator.userAgent.toLowerCase())),opera=/opera/.test(navigator.userAgent.toLowerCase()),MIN_WIDTH=1004,MIN_HEIGHT=600,ICOL='#4A4946',ACOL='#7f0101',VIVID='#da0000',DARK='#6c022c',navZI=1,footerCol=[0,0],nav=$("#navigation-itemsContainer"),currSection=$('li.current-cat:first',nav),wrapper=$("#wrapper"),header=$("#header",wrapper),content=header.next(),footer=('#footer'),navHoverConf={sensitivity:35,interval:100,over:onOver,out:onOut,timeout:500},thumbHoverConf={sensitivity:35,interval:100,over:function(){var item=$(this).children('span.portfolioItem-overlay');item.animate({'marginTop':(212-parseInt(item.data('val')._h))+'px'},150);},out:function(){var item=$(this).children('span.portfolioItem-overlay');item.animate({'marginTop':parseInt(item.data('val')._top)+'px'},1000,"easeOutBounce");},timeout:500},cache={'':$('.bbq-default')};$.fn.delay=function(time,callback){jQuery.fx.step.delay=function(){};return this.animate({delay:1},time,"linear",callback);}
$.fn.linkShader=function(o){var defaults={inactive:ICOL,active:ACOL,intime:250,outtime:400,inverseBack:false},o=$.extend(defaults,o);if($(this).is(".active")){$(this).stop(true,true).animate({color:o.inactive},o.outtime).removeClass("active").iff(o.inverseBack!==false).next().stop(true,true).animate({opacity:0},o.outtim);}else{$(this).stop(true,true).animate({color:o.active},o.intime).addClass("active").iff(o.inverseBack!==false).next().stop(true,true).animate({opacity:1},o.intim);}
return this;};$.fn.linxify=function(o){var defaults={timein:500,timeout:1000},o=$.extend(defaults,o);wrapper.animate({opacity:0},o.timein,"linear",function(){if(CURRPAGE!=='')$('body').removeClass(CURRPAGE);})
$.ajax({type:"POST",url:this.attr("href"),data:"ajax=true",success:function(data){wrapper.html(data);CURRPAGE=$('#currpage').val();$('body').addClass(CURRPAGE);if(CURRPAGE=='postListing'){Cufon.replace('span.portfolioItem-overlay label, span.portfolioItem-desc, span.portfolioItem-year');$("span.portfolioItem-overlay",$("#content")).activateThumbs();}
else if(CURRPAGE=='post'||CURRPAGE=='page'){$("a[rel^='prettyPhoto']").prettyPhoto();}
wrapper.delay(o.timeout*0.75).animate({opacity:1},o.timeout,"linear");}})}
$.fn.activateThumbs=function(o){var defaults={},o
this.each(function(){$(this).data('val',{'_h':($(this).children(":first").outerHeight(true)+7+($(this).outerHeight(true)-$(this).height())),'_top':parseInt($(this).css('margin-top'))});}).parent().hoverIntent(thumbHoverConf);}
$.fn.validator=function(o){var defaults={_form:$("form",content)}
var o=$.extend(defaults,o);$r=[];this.each(function(){$e=[];i=$.trim($(this).val());if(typeof(i)=='undefined'||i==''){if($(this).hasClass("required-entry")||$(this).hasClass("fldrequired")){$e.push(1);}else{$e.push(0);}}else{$e.push(0);if($(this).hasClass("validate-numeric")){if(!/^\d+$/.test(i))$e.push(1);}
if($(this).hasClass("validate-email")||$(this).hasClass("fldemail")){if(!/^[\'a-z0-9._-]+@[a-z0-9.-]+.[a-z]{2,4}$/i.test(i))$e.push(1);}}
if(parseInt($e.join(""))==0){$r.push(0);if($(this).hasClass("notValid"))$(this).removeClass("notValid").siblings('span.req').remove();}else{$r.push(1);if(!$(this).hasClass("notValid"))$(this).addClass("notValid").parent().append('<span class="req">This field is required.</span>');}})
delete $e;if(parseInt($r.join(""))==0)o._form.addClass("validated");else o._form.removeClass("validated");};function goto(key){switch(CURRPAGE){case'postListing':switch(key){case'w':document.location=$('li.current-cat:first>a:first',nav).attr('href');break;case'q':_prev=currSection.prev('li');if(_prev.length>0)document.location=_prev.children("a:first").attr('href');else document.location=$('li:last>a',nav).attr('href');break;case'e':_next=currSection.next('li');if(_next.length>0)document.location=_next.children("a:first").attr('href');else document.location=$('li:first>a',nav).attr('href');break;case'a':_prev=$('li.current-cat:first',currSection).prev('li');if(_prev.length>0)document.location=_prev.children("a:first").attr('href');else document.location=$('li:last>a',currSection).attr('href');break;case'd':_next=$('li.current-cat:first',currSection).next('li');if(_next.length>0)document.location=_next.children("a:first").attr('href');else document.location=$('li:first>a',currSection).attr('href');break;case's':document.location=$('a:first',content).attr('href');break;}
break;case'post':switch(key){case'w':document.location=$('li.current-cat:first>a:first',currSection).attr('href');break;case'q':_prev=$('li.current-cat:first',currSection).prev('li');if(_prev.length>0)document.location=_prev.children("a:first").attr('href');else document.location=$('li:last>a',currSection).attr('href');break;case'e':_next=$('li.current-cat:first',currSection).next('li');if(_next.length>0)document.location=_next.children("a:first").attr('href');else document.location=$('li:first>a',currSection).attr('href');break;case'a':_next=$('#next',header);if(_next.length>0)document.location=_next.attr('href');break;case'd':_prev=$('#prev',header);if(_prev.length>0)document.location=_prev.attr('href');break;}
break;case'contact':switch(key){case'a':break;case'a':break;}
break;default:switch(key){case'a':break;case's':break;case'a':break;}}}
$(document).shortkeys({'Q':function(){goto('q');},'W':function(){goto('w');},'E':function(){goto('e');},'A':function(){goto('a');},'S':function(){goto('s');},'D':function(){goto('d');}});$("a:not(.headerLink)",header).wrap("<div></div>")
function onOver(){if($(this).is(".isParent")){$(this).find("ul").css({left:0,opacity:0,zIndex:(navZI+1)}).animate({opacity:1},250,"linear",function(){if(ie)this.style.removeAttribute("filter");}).find("a").removeClass("active");navZI=navZI+1;}
$("a:first:not(.current-cat)",$(this)).linkShader();}
function onOut(){if($(this).is(".isParent")){$(this).find("ul").animate({opacity:0},100,"linear",function(){$(this).css("left",-9999).find("a").removeClass("active");})}
$("a:first:not(.current-cat)",$(this)).linkShader();}
nav.children("li").addClass("firstLayerNav").hoverIntent(navHoverConf).find("li:not(.current-cat)>a").hover(function(){$(this).linkShader({inverseBack:true});},function(){$(this).linkShader({inverseBack:true});});if(!ie){$("#mailBox").hover(function(){$("span:last",$(this)).css({left:0,opacity:0,zIndex:2}).stop(true,true).animate({opacity:1},300).prev().css({zIndex:1}).stop(true,true).delay(100).animate({opacity:0},300);},function(){$("span:first",$(this)).css({zIndex:2}).stop(true,true).animate({opacity:1},300).next().css({zIndex:1}).stop(true,true).delay(100).animate({opacity:0},300);})}
if(!ie){$("#logo span").css('opacity',0).hover(function(){$(this).stop(true,true).animate({'opacity':1},300,'easeOutQuint');},function(){$(this).stop(true,true).animate({'opacity':0},1500,'easeOutQuint');})}
$('#flickr>a:not(:first-child), #lastfm>a:not(:first-child), #lastfm-current>a',footer).hover(function(){$(this).stop(true,false).animate({opacity:1},300);},function(){$(this).animate({opacity:0.8},1500,'easeOutQuint');})
if(ie67){$('.separator',content).parent().css('margin-bottom','2em');}
if(CURRPAGE==''&&SUBPAGE==''){Cufon.replace('#featuredItem-home label, #featuredItem-home .featuredItem-desc');}
else if(SUBPAGE=='who-i-am'){$('a',$('#pdfDownloads')).removeAttr('title').hover(function(){$('span',$(this)).stop(true,false).animate({top:-15},300,'easeOutQuint').next().stop(true,false).animate({width:90,height:10,left:-10},300,'easeOutQuint')},function(){$('span',$(this)).animate({top:0},600,'easeOutBounce').next().animate({width:124,height:15,left:-25},600,'easeOutBounce')})}
else if(SUBPAGE=='testimonials'){Cufon.replace('div.testimonialLabel div span.testimonialName');}
else if(CURRPAGE=='postListing'){Cufon.replace('span.portfolioItem-overlay label, span.portfolioItem-desc, span.portfolioItem-year');if(SUBPAGE!=="portfolioListing"&&SUBPAGE!=="photography")$("span.portfolioItem-overlay",$("#content")).activateThumbs();}
else if(SUBPAGE=='archiveListing'||SUBPAGE=='blogListing'||SUBPAGE=='blogPost'){var sidebar=$("#sideBar"),search=$("#s",sidebar);$("a.email",sidebar).each(function(){$(this).attr('href',$(this).attr('href').replace(/\.at\./gi,'@'));})
Cufon.replace('#searchsubmit, #archiveH3',{hover:true,hoverables:{button:true,a:true}});Cufon.replace('#sidebar-1 h3');if(ERR==1)Cufon.replace('#four04content h2 a',{hover:true});if(SUBPAGE=='archiveListing'){Cufon.replace('#archiveListing h2 a',{hover:true});}else if(SUBPAGE=='blogPost'){var cinputs=$("#author, #email, #comment"),b=$("#submit");b.replaceWith(['<button value="Submit Comment" tabindex="5" id="submit" type="button" name="submit">',b.html(),'</button>'].join(""));$("#submit").click(function(){cinputs.validator({_form:$("#commentform")});if($("#commentform").hasClass("validated")){$("#submit").replaceWith(['<button value="Submit Comment" tabindex="5" id="submit" type="submit" name="submit">',$(this).html(),'</button>'].join(""));$("#submit").click();}})
cinputs.blur(function(){$(this).validator({_form:$("#commentform")});})
$('input',$('#commentInputs')).each(function(){var label=$('label[for='+$(this).attr('id')+']');$('label[for='+$(this).attr('name')+']').css('left',($(this).val()==''?0:-9999));$(this).focus(function(e){$('label[for='+$(e.target).attr('id')+']').css('left','-9999px');}).blur(function(e){if($(e.target).val()==''){$('label[for='+$(e.target).attr('id')+']').css('left','0px');}});});$(".flickr-gallery",content).find('a').each(function(){var cls=$(this).attr('class'),rel=$(this).attr('rel'),href=$(this).attr('href');$(this).attr({'href':rel,'rel':cls});$("a[rel^='prettyPhoto']",content).prettyPhoto();}).children("img").attr('alt','');}
search.bind("click mouseenter",function(){search.css('color','#4a4946').iff(search.val()=='Start typing to search').val('');}).bind("blur",function(){search.css('color','#A8A8A6').iff(search.val()=='').val('Start typing to search');})
$('.tabs',sidebar).tabs('> .pane');$('#smart-archives',sidebar).find('a').click(function(ev){$('.pane .tabs:visible a:last').click();}).end().find('a:last').click();}
else if(SUBPAGE=='contact-me'){if(!ie)Cufon.replace('#sendbutton',{hover:{color:'#be3535'},hoverables:{button:true}});Cufon.replace('#sideBar-content h3');$("#contacts a",content).each(function(){$(this).attr('href',$(this).attr('href').replace(/\.at\./gi,'@'));})
$('#commentInputs input').each(function(){var i=$(this),l=i.next();l.css('left',(i.val()==''?0:-9999));i.focus(function(){l.css('left',-9999);}).blur(function(){if(i.val()=='')l.css('left',0);});l.bind("click focus",(function(){l.css('left',-9999);i.focus();}));});}
$('a:not(.noFX)',content).each(function(){if(!$(this).attr('class')||$(this).attr('class')==''){$(this).hover(function(){$(this).linkShader({inactive:DARK,active:VIVID,outtime:1000});},function(){$(this).linkShader({inactive:DARK,active:VIVID,outtime:1500});})}})
$("a[rel^='prettyPhoto']").prettyPhoto();})})(jQuery);