(function($){var win=$(window),options,images,activeImage=-1,activeURL,prevImage,nextImage,compatibleOverlay,middle,centerWidth,centerHeight,ie6=!window.XMLHttpRequest,operaFix=window.opera&&(document.compatMode=="CSS1Compat")&&($.browser.version>=9.3),documentElement=document.documentElement,preload={},preloadPrev=new Image(),preloadNext=new Image(),overlay,center,image,sizer,prevLink,nextLink,bottomContainer,bottom,caption,number;$(function(){$("body").append($([overlay=$('
')[0],center=$('')[0],bottomContainer=$('')[0]]).css("display","none"));image=$('').appendTo(center).append(sizer=$('').append([prevLink=$('').click(previous)[0],nextLink=$('').click(next)[0]])[0])[0];bottom=$('').appendTo(bottomContainer).append([$('').add(overlay).click(close)[0],caption=$('')[0],number=$('')[0],$('')[0]])[0];});$.slimbox=function(_images,startImage,_options){options=$.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},_options);if(typeof _images=="string"){_images=[[_images,startImage]];startImage=0;}
middle=win.scrollTop()+((operaFix?documentElement.clientHeight:win.height())/2);centerWidth=options.initialWidth;centerHeight=options.initialHeight;$(center).css({top:Math.max(0,middle-(centerHeight/2)),width:centerWidth,height:centerHeight,marginLeft:-centerWidth/2}).show();compatibleOverlay=ie6||(overlay.currentStyle&&(overlay.currentStyle.position!="fixed"));if(compatibleOverlay)overlay.style.position="absolute";$(overlay).css("opacity",options.overlayOpacity).fadeIn(options.overlayFadeDuration);position();setup(1);images=_images;options.loop=options.loop&&(images.length>1);return changeImage(startImage);};$.fn.slimbox=function(_options,linkMapper,linksFilter){linkMapper=linkMapper||function(el){return[el.href,el.title];};linksFilter=linksFilter||function(){return true;};var links=this;return links.unbind("click").click(function(){var link=this,startIndex=0,filteredLinks,i=0,length;filteredLinks=$.grep(links,function(el,i){return linksFilter.call(link,el,i);});for(length=filteredLinks.length;i=0)?close():(fn(code,options.nextKeys)>=0)?next():(fn(code,options.previousKeys)>=0)?previous():false;}
function previous(){return changeImage(prevImage);}
function next(){return changeImage(nextImage);}
function changeImage(imageIndex){if(imageIndex>=0){activeImage=imageIndex;activeURL=images[activeImage][0];prevImage=(activeImage||(options.loop?images.length:0))-1;nextImage=((activeImage+1)%images.length)||(options.loop?0:-1);stop();center.className="lbLoading";preload=new Image();preload.onload=animateBox;preload.src=activeURL;}
return false;}
function animateBox(){center.className="";$(image).css({backgroundImage:"url("+activeURL+")",visibility:"hidden",display:""});$('#lbFlash',image).remove();if(activeURL.indexOf('?video=')!=-1){var urlParts=activeURL.split('?video=');var $flashPlayer=$('');var playerSwf='/mediaplayer/player.swf';if(urlParts[1].indexOf('youtube.com')!=-1){var ytCode=urlParts[1].match(/v=[a-z0-9\-\_]+/gi)[0].replace('v=','');playerSwf='http://www.youtube.com/v/'+ytCode;}else if(urlParts[1].indexOf('vimeo.com')!=-1){var vimeoCode=urlParts[1].match(/[0-9]{5,12}/gi);playerSwf='http://vimeo.com/moogaloop.swf?clip_id='+vimeoCode+'&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1';}
$flashPlayer.flash({swf:playerSwf,width:preload.width,height:preload.height,flashvars:{file:urlParts[1],image:urlParts[0]}});$(image).append($flashPlayer);}
$(sizer).width(preload.width);$([prevLink,nextLink]).height(preload.height-30);$(sizer).height(preload.height);$(caption).html(images[activeImage][1]||"");$(number).html((((images.length>1)&&options.counterText)||"").replace(/{x}/,activeImage+1).replace(/{y}/,images.length));if(prevImage>=0)preloadPrev.src=images[prevImage][0];if(nextImage>=0)preloadNext.src=images[nextImage][0];centerWidth=image.offsetWidth;centerHeight=image.offsetHeight;var top=Math.max(0,middle-(centerHeight/2));if(center.offsetHeight!=centerHeight){$(center).animate({height:centerHeight,top:top},options.resizeDuration,options.resizeEasing);}
if(center.offsetWidth!=centerWidth){$(center).animate({width:centerWidth,marginLeft:-centerWidth/2},options.resizeDuration,options.resizeEasing);}
$(center).queue(function(){$(bottomContainer).css({width:centerWidth,top:top+centerHeight,marginLeft:-centerWidth/2,visibility:"hidden",display:""});$(image).css({display:"none",visibility:"",opacity:""}).fadeIn(options.imageFadeDuration,animateCaption);});}
function animateCaption(){if(prevImage>=0)$(prevLink).show();if(nextImage>=0)$(nextLink).show();$(bottom).css("marginTop",-bottom.offsetHeight).animate({marginTop:0},options.captionAnimationDuration);bottomContainer.style.visibility="";}
function stop(){preload.onload=null;preload.src=preloadPrev.src=preloadNext.src=activeURL;$([center,image,bottom]).stop(true);$([prevLink,nextLink,image,bottomContainer]).hide();}
function close(){if(activeImage>=0){stop();activeImage=prevImage=nextImage=-1;$(center).hide();$(overlay).stop().fadeOut(options.overlayFadeDuration,setup);}
return false;}})(jQuery);jQuery(function($){$("a[rel^='lightbox']").slimbox({},null,function(el){return(this==el)||((this.rel.length>8)&&(this.rel==el.rel));});});(function($){$.flashPlayerVersion=function(){var flashVersion,activeX=null,fp6Crash=false,shockwaveFlash='ShockwaveFlash.ShockwaveFlash';if(!(flashVersion=navigator.plugins['Shockwave Flash'])){try{activeX=new ActiveXObject(shockwaveFlash+'.7');}
catch(errorA){try{activeX=new ActiveXObject(shockwaveFlash+'.6');flashVersion=[6,0,21];activeX.AllowScriptAccess='always';}
catch(errorB){if(flashVersion&&flashVersion[0]===6){fp6Crash=true;}}
if(!fp6Crash){try{activeX=new ActiveXObject(shockwaveFlash);}
catch(errorC){flashVersion='X 0,0,0';}}}
if(!fp6Crash&&activeX){try{flashVersion=activeX.GetVariable('$version');}
catch(errorD){}}}
else{flashVersion=flashVersion.description;}
flashVersion=flashVersion.match(/^[A-Za-z\s]*?(\d+)(\.|,)(\d+)(\s+r|,)(\d+)/);return[flashVersion[1]*1,flashVersion[3]*1,flashVersion[5]*1];}();$.flashExpressInstaller='expressInstall.swf';$.hasFlashPlayer=($.flashPlayerVersion[0]!==0);$.hasFlashPlayerVersion=function(options){var flashVersion=$.flashPlayerVersion;options=(/string|integer/.test(typeof options))?options.toString().split('.'):options;return(options)?(flashVersion[0]>=(options.major||options[0]||flashVersion[0])&&flashVersion[1]>=(options.minor||options[1]||flashVersion[1])&&flashVersion[2]>=(options.release||options[2]||flashVersion[2])):(flashVersion[0]!==0);};$.flash=function(options){if(!$.hasFlashPlayer){return false;}
var movieFilename=options.swf||'',paramAttributes=options.params||{},buildDOM=document.createElement('body'),aArr,bArr,cArr,dArr,a,b,c,d;options.height=options.height||180;options.width=options.width||320;if(options.hasVersion&&!$.hasFlashPlayerVersion(options.hasVersion)){$.extend(options,{id:'SWFObjectExprInst',height:Math.max(options.height,137),width:Math.max(options.width,214)});movieFilename=options.expressInstaller||$.flashExpressInstaller;paramAttributes={flashvars:{MMredirectURL:window.location.href,MMplayerType:($.browser.msie&&$.browser.win)?'ActiveX':'PlugIn',MMdoctitle:document.title.slice(0,47)+' - Flash Player Installation'}};}
if(options.flashvars&&typeof paramAttributes==='object'){$.extend(paramAttributes,{flashvars:options.flashvars});}
for(a in(b=['swf','expressInstall','hasVersion','params','flashvars'])){delete options[b[a]];}
aArr=[];for(a in options){if(typeof options[a]==='object'){bArr=[];for(b in options[a]){bArr.push(b.replace(/([A-Z])/,'-$1').toLowerCase()+':'+options[a][b]+';');}
options[a]=bArr.join('');}
aArr.push(a+'="'+options[a]+'"');}
options=aArr.join(' ');if(typeof paramAttributes==='object'){aArr=[];for(a in paramAttributes){if(typeof paramAttributes[a]==='object'){bArr=[];for(b in paramAttributes[a]){if(typeof paramAttributes[a][b]==='object'){cArr=[];for(c in paramAttributes[a][b]){if(typeof paramAttributes[a][b][c]==='object'){dArr=[];for(d in paramAttributes[a][b][c]){dArr.push(d.replace(/([A-Z])/,'-$1').toLowerCase()+':'+paramAttributes[a][b][c][d]+';');}
paramAttributes[a][b][c]=dArr.join('');}
cArr.push(c+'{'+paramAttributes[a][b][c]+'}');}
paramAttributes[a][b]=cArr.join('');}
bArr.push(window.escape(b)+'='+window.escape(paramAttributes[a][b]));}
paramAttributes[a]=bArr.join('&');}
aArr.push('');}
paramAttributes=aArr.join('');}
if(!(/style=/.test(options))){options+=' style="vertical-align:text-top;"';}
if(!(/style=(.*?)vertical-align/.test(options))){options=options.replace(/style="/,'style="vertical-align:text-top;');}
if($.browser.msie){options+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';paramAttributes=''+paramAttributes;}
else{options+=' type="application/x-shockwave-flash" data="'+movieFilename+'"';}
buildDOM.innerHTML='';return $(buildDOM.firstChild);};$.fn.flash=function(options){if(!$.hasFlashPlayer){return this;}
var a=0,each;while((each=this.eq(a++))[0]){each.html($.flash($.extend({},options)));if(each[0].firstChild.getAttribute('id')==='SWFObjectExprInst'){a=this.length;}}
return this;};}(jQuery));function unsetNoJavascript(){$('body').removeClass('noJavascript');}
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;i0)word=' '+word;}
else if(position400;if(weight==500)weight=400;for(var alt in weights){if(!hasOwnProperty(weights,alt))continue;alt=parseInt(alt,10);if(!min||altmax)max=alt;alts.push(alt);}
if(weightmax)weight=max;alts.sort(function(a,b){return(up?(a>=weight&&b>=weight)?ab:(a<=weight&&b<=weight)?a>b:aexpandRight)expandRight=x;if(y>expandBottom)expandBottom=y;if(x'+'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;}'+'}'+'').replace(/;/g,'!important;'));function getFontSizeInPixels(el,value){return getSizeInPixels(el,/(?:em|ex|%)$|^[a-z-]+$/i.test(value)?'1em':value);}
function getSizeInPixels(el,value){if(value==='0')return 0;if(/px$/i.test(value))return parseFloat(value);var style=el.style.left,runtimeStyle=el.runtimeStyle.left;el.runtimeStyle.left=el.currentStyle.left;el.style.left=value.replace('%','em');var result=el.style.pixelLeft;el.style.left=style;el.runtimeStyle.left=runtimeStyle;return result;}
function getSpacingValue(el,style,size,property){var key='computed'+property,value=style[key];if(isNaN(value)){value=style.get(property);style[key]=value=(value=='normal')?0:~~size.convertFrom(getSizeInPixels(el,value));}
return value;}
var fills={};function gradientFill(gradient){var id=gradient.id;if(!fills[id]){var stops=gradient.stops,fill=document.createElement('cvml:fill'),colors=[];fill.type='gradient';fill.angle=180;fill.focus='0';fill.method='sigma';fill.color=stops[0][1];for(var j=1,k=stops.length-1;j3)){if(typeof(elementOverride)=='string')elements=elementOverride.split(',');else elements=elementOverride;}
if($('.cufon-alt').html())Cufon.refresh(elements);else Cufon.replace(elements);}
$(document).ready(function(){initCufon();});