window.Modernizr=function(d,r,n){function z(h,k){return typeof h===k}function M(h,k){for(var i in h)if(w[h[i]]!==n&&(!k||k(h[i],C)))return true}function N(h,k){var i=h.charAt(0).toUpperCase()+h.substr(1);i=(h+" "+b.join(i+" ")+i).split(" ");return!!M(i,k)}function Q(){E.input=function(h){for(var k=0,i=h.length;k<i;k++)c[h[k]]=!!(h[k]in A);return c}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));E.inputtypes=function(h){for(var k=0,i,u,v=h.length;k<v;k++){A.setAttribute("type",
u=h[k]);if(i=A.type!=="text"){A.value=Y;A.style.cssText="position:absolute;visibility:hidden;";if(/^range$/.test(u)&&A.style.WebkitAppearance!==n){J.appendChild(A);i=r.defaultView;i=i.getComputedStyle&&i.getComputedStyle(A,null).WebkitAppearance!=="textfield"&&A.offsetHeight!==0;J.removeChild(A)}else if(!/^(search|tel)$/.test(u))if(/^(url|email)$/.test(u))i=A.checkValidity&&A.checkValidity()===false;else if(/^color$/.test(u)){J.appendChild(A);i=A.value!=Y;J.removeChild(A)}else i=A.value!=Y}j[h[k]]=
!!i}return j}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var E={},J=r.documentElement,ca=r.head||r.getElementsByTagName("head")[0],C=r.createElement("modernizr"),w=C.style,A=r.createElement("input"),Y=":)",Z=Object.prototype.toString,a=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),b="Webkit Moz O ms Khtml".split(" "),f={svg:"http://www.w3.org/2000/svg"},g={},j={},c={},o=[],m,q=function(h){var k=r.createElement("style"),i=r.createElement("div");
k.textContent=h+"{#modernizr{height:3px}}";ca.appendChild(k);i.id="modernizr";J.appendChild(i);h=i.offsetHeight===3;k.parentNode.removeChild(k);i.parentNode.removeChild(i);return!!h},F=function(){var h={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(k,i){i=i||r.createElement(h[k]||"div");k="on"+k;var u=k in i;if(!u){i.setAttribute||(i=r.createElement("div"));if(i.setAttribute&&i.removeAttribute){i.setAttribute(k,"");u=z(i[k],"function");
z(i[k],n)||(i[k]=n);i.removeAttribute(k)}}return u}}(),B={}.hasOwnProperty,V;V=!z(B,n)&&!z(B.call,n)?function(h,k){return B.call(h,k)}:function(h,k){return k in h&&z(h.constructor.prototype[k],n)};g.flexbox=function(){var h=r.createElement("div"),k=r.createElement("div");(function(u,v,O,W){v+=":";u.style.cssText=(v+a.join(O+";"+v)).slice(0,-v.length)+(W||"")})(h,"display","box","width:42px;padding:0;");k.style.cssText=a.join("box-flex:1;")+"width:10px;";h.appendChild(k);J.appendChild(h);var i=k.offsetWidth===
42;h.removeChild(k);J.removeChild(h);return i};g.canvas=function(){var h=r.createElement("canvas");return!!(h.getContext&&h.getContext("2d"))};g.canvastext=function(){return!!(E.canvas&&z(r.createElement("canvas").getContext("2d").fillText,"function"))};g.webgl=function(){return!!d.WebGLRenderingContext};g.touch=function(){return"ontouchstart"in d||q("@media ("+a.join("touch-enabled),(")+"modernizr)")};g.geolocation=function(){return!!navigator.geolocation};g.postmessage=function(){return!!d.postMessage};
g.websqldatabase=function(){return!!d.openDatabase};g.indexedDB=function(){for(var h=-1,k=b.length;++h<k;){var i=b[h].toLowerCase();if(d[i+"_indexedDB"]||d[i+"IndexedDB"])return true}return false};g.hashchange=function(){return F("hashchange",d)&&(r.documentMode===n||r.documentMode>7)};g.history=function(){return!!(d.history&&history.pushState)};g.draganddrop=function(){return F("dragstart")&&F("drop")};g.websockets=function(){return"WebSocket"in d};g.rgba=function(){w.cssText="background-color:rgba(150,255,150,.5)";
return(""+w.backgroundColor).indexOf("rgba")!==-1};g.hsla=function(){w.cssText="background-color:hsla(120,40%,100%,.5)";return(""+w.backgroundColor).indexOf("rgba")!==-1||(""+w.backgroundColor).indexOf("hsla")!==-1};g.multiplebgs=function(){w.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(w.background)};g.backgroundsize=function(){return N("backgroundSize")};g.borderimage=function(){return N("borderImage")};g.borderradius=function(){return N("borderRadius","",function(h){return(""+
h).indexOf("orderRadius")!==-1})};g.boxshadow=function(){return N("boxShadow")};g.textshadow=function(){return r.createElement("div").style.textShadow===""};g.opacity=function(){var h=a.join("opacity:.55;")+"";w.cssText=h;return/^0.55$/.test(w.opacity)};g.cssanimations=function(){return N("animationName")};g.csscolumns=function(){return N("columnCount")};g.cssgradients=function(){var h=("background-image:"+a.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+a.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,
-17);w.cssText=h;return(""+w.backgroundImage).indexOf("gradient")!==-1};g.cssreflections=function(){return N("boxReflect")};g.csstransforms=function(){return!!M(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};g.csstransforms3d=function(){var h=!!M(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(h&&"webkitPerspective"in J.style)h=q("@media ("+a.join("transform-3d),(")+"modernizr)");return h};g.csstransitions=function(){return N("transitionProperty")};
g.fontface=function(){var h,k,i=ca||J,u=r.createElement("style");k=r.implementation||{hasFeature:function(){return false}};u.type="text/css";i.insertBefore(u,i.firstChild);h=u.sheet||u.styleSheet;k=(k.hasFeature("CSS2","")?function(v){if(!(h&&v))return false;var O=false;try{h.insertRule(v,0);O=/src/i.test(h.cssRules[0].cssText);h.deleteRule(h.cssRules.length-1)}catch(W){}return O}:function(v){if(!(h&&v))return false;h.cssText=v;return h.cssText.length!==0&&/src/i.test(h.cssText)&&h.cssText.replace(/\r+|\n+/g,
"").indexOf(v.split(" ")[0])===0})('@font-face { font-family: "font"; src: url(data:,); }');i.removeChild(u);return k};g.video=function(){var h=r.createElement("video"),k=!!h.canPlayType;if(k){k=new Boolean(k);k.ogg=h.canPlayType('video/ogg; codecs="theora"');k.h264=h.canPlayType('video/mp4; codecs="avc1.42E01E"')||h.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');k.webm=h.canPlayType('video/webm; codecs="vp8, vorbis"')}return k};g.audio=function(){var h=r.createElement("audio"),k=!!h.canPlayType;
if(k){k=new Boolean(k);k.ogg=h.canPlayType('audio/ogg; codecs="vorbis"');k.mp3=h.canPlayType("audio/mpeg;");k.wav=h.canPlayType('audio/wav; codecs="1"');k.m4a=h.canPlayType("audio/x-m4a;")||h.canPlayType("audio/aac;")}return k};g.localstorage=function(){try{return!!localStorage.getItem}catch(h){return false}};g.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(h){return false}};g.webWorkers=function(){return!!d.Worker};g.applicationcache=function(){return!!d.applicationCache};g.svg=
function(){return!!r.createElementNS&&!!r.createElementNS(f.svg,"svg").createSVGRect};g.inlinesvg=function(){var h=r.createElement("div");h.innerHTML="<svg/>";return(h.firstChild&&h.firstChild.namespaceURI)==f.svg};g.smil=function(){return!!r.createElementNS&&/SVG/.test(Z.call(r.createElementNS(f.svg,"animate")))};g.svgclippaths=function(){return!!r.createElementNS&&/SVG/.test(Z.call(r.createElementNS(f.svg,"clipPath")))};for(var R in g)if(V(g,R)){m=R.toLowerCase();E[m]=g[R]();o.push((E[m]?"":"no-")+
m)}E.input||Q();E.crosswindowmessaging=E.postmessage;E.historymanagement=E.history;E.addTest=function(h,k){h=h.toLowerCase();if(!E[h]){k=!!k();J.className+=" "+(k?"":"no-")+h;E[h]=k;return E}};w.cssText="";C=A=null;d.attachEvent&&function(){var h=r.createElement("div");h.innerHTML="<elem></elem>";return h.childNodes.length!==1}()&&function(h,k){function i(K){for(var G=-1;++G<O;)K.createElement(v[G])}function u(K,G){for(var D=-1,x=K.length,e,S=[];++D<x;){e=K[D];if((G=e.media||G)!="screen")S.push(u(e.imports,
G),e.cssText)}return S.join("")}var v="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video".split("|"),O=v.length,W=RegExp("(^|\\s)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)","gi"),ga=RegExp("<(/*)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)",
"gi"),ha=RegExp("(^|[^\\n]*?\\s)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)([^\\n]*)({[\\n\\w\\W]*?})","gi"),aa=k.createDocumentFragment(),X=k.documentElement,ba=X.firstChild,$=k.createElement("body"),T=k.createElement("style"),L;i(k);i(aa);ba.insertBefore(T,ba.firstChild);T.media="print";h.attachEvent("onbeforeprint",function(){var K=-1,G=u(k.styleSheets,"all"),D=[],x;for(L=L||k.body;(x=ha.exec(G))!=null;)D.push((x[1]+
x[2]+x[3]).replace(W,"$1.iepp_$2")+x[4]);for(T.styleSheet.cssText=D.join("\n");++K<O;){G=k.getElementsByTagName(v[K]);D=G.length;for(x=-1;++x<D;)if(G[x].className.indexOf("iepp_")<0)G[x].className+=" iepp_"+v[K]}aa.appendChild(L);X.appendChild($);$.className=L.className;$.innerHTML=L.innerHTML.replace(ga,"<$1font")});h.attachEvent("onafterprint",function(){$.innerHTML="";X.removeChild($);X.appendChild(L);T.styleSheet.cssText=""})}(d,r);E._enableHTML5=true;E._version="1.7";J.className=J.className.replace(/\bno-js\b/,
"")+" js "+o.join(" ");return E}(this,this.document);
(function(d){function r(a){d.fn.cycle.debug&&n(a)}function n(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function z(a,b,f){function g(o,m,q){if(!o&&m===true){o=d(q).data("cycle.opts");if(!o){n("options not found, can not resume");return false}if(q.cycleTimeout){clearTimeout(q.cycleTimeout);q.cycleTimeout=0}C(o.elements,o,1,!j.rev&&!j.backwards)}}if(a.cycleStop==undefined)a.cycleStop=0;if(b===undefined||b===null)b={};if(b.constructor==
String){switch(b){case "destroy":case "stop":var j=d(a).data("cycle.opts");if(!j)return false;a.cycleStop++;a.cycleTimeout&&clearTimeout(a.cycleTimeout);a.cycleTimeout=0;d(a).removeData("cycle.opts");b=="destroy"&&N(j);return false;case "toggle":a.cyclePause=a.cyclePause===1?0:1;g(a.cyclePause,f,a);return false;case "pause":a.cyclePause=1;return false;case "resume":a.cyclePause=0;g(false,f,a);return false;case "prev":case "next":j=d(a).data("cycle.opts");if(!j){n('options not found, "prev/next" ignored');
return false}d.fn.cycle[b](j);return false;default:b={fx:b}}return b}else if(b.constructor==Number){var c=b;b=d(a).data("cycle.opts");if(!b){n("options not found, can not advance slide");return false}if(c<0||c>=b.elements.length){n("invalid slide index: "+c);return false}b.nextSlide=c;if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}if(typeof f=="string")b.oneTimeFx=f;C(b.elements,b,1,c>=b.currSlide);return false}return b}function M(a,b){if(!d.support.opacity&&b.cleartype&&a.style.filter)try{a.style.removeAttribute("filter")}catch(f){}}
function N(a){a.next&&d(a.next).unbind(a.prevNextEvent);a.prev&&d(a.prev).unbind(a.prevNextEvent);if(a.pager||a.pagerAnchorBuilder)d.each(a.pagerAnchors||[],function(){this.unbind().remove()});a.pagerAnchors=null;a.destroy&&a.destroy(a)}function Q(a,b,f,g,j){var c=d.extend({},d.fn.cycle.defaults,g||{},d.metadata?a.metadata():d.meta?a.data():{});if(c.autostop)c.countdown=c.autostopCount||f.length;var o=a[0];a.data("cycle.opts",c);c.$cont=a;c.stopCount=o.cycleStop;c.elements=f;c.before=c.before?[c.before]:
[];c.after=c.after?[c.after]:[];c.after.unshift(function(){c.busy=0});!d.support.opacity&&c.cleartype&&c.after.push(function(){M(this,c)});c.continuous&&c.after.push(function(){C(f,c,0,!c.rev&&!c.backwards)});E(c);!d.support.opacity&&c.cleartype&&!c.cleartypeNoBg&&Z(b);a.css("position")=="static"&&a.css("position","relative");c.width&&a.width(c.width);c.height&&c.height!="auto"&&a.height(c.height);if(c.startingSlide)c.startingSlide=parseInt(c.startingSlide);else if(c.backwards)c.startingSlide=f.length-
1;if(c.random){c.randomMap=[];for(o=0;o<f.length;o++)c.randomMap.push(o);c.randomMap.sort(function(){return Math.random()-0.5});c.randomIndex=1;c.startingSlide=c.randomMap[1]}else if(c.startingSlide>=f.length)c.startingSlide=0;c.currSlide=c.startingSlide||0;var m=c.startingSlide;b.css({position:"absolute",top:0,left:0}).hide().each(function(i){i=c.backwards?m?i<=m?f.length+(i-m):m-i:f.length-i:m?i>=m?f.length-(i-m):m-i:f.length-i;d(this).css("z-index",i)});d(f[m]).css("opacity",1).show();M(f[m],c);
c.fit&&c.width&&b.width(c.width);c.fit&&c.height&&c.height!="auto"&&b.height(c.height);if(c.containerResize&&!a.innerHeight()){for(var q=o=0,F=0;F<f.length;F++){var B=d(f[F]),V=B[0],R=B.outerWidth(),h=B.outerHeight();R||(R=V.offsetWidth||V.width||B.attr("width"));h||(h=V.offsetHeight||V.height||B.attr("height"));o=R>o?R:o;q=h>q?h:q}o>0&&q>0&&a.css({width:o+"px",height:q+"px"})}c.pause&&a.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(J(c)===false)return false;var k=false;g.requeueAttempts=
g.requeueAttempts||0;b.each(function(){var i=d(this);this.cycleH=c.fit&&c.height?c.height:i.height()||this.offsetHeight||this.height||i.attr("height")||0;this.cycleW=c.fit&&c.width?c.width:i.width()||this.offsetWidth||this.width||i.attr("width")||0;if(i.is("img")){i=d.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var u=d.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,v=this.cycleH==0&&this.cycleW==0&&!this.complete;if(d.browser.msie&&
this.cycleW==28&&this.cycleH==30&&!this.complete||i||u||v)if(j.s&&c.requeueOnImageNotLoaded&&++g.requeueAttempts<100){n(g.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){d(j.s,j.c).cycle(g)},c.requeueTimeout);k=true;return false}else n("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(k)return false;c.cssBefore=c.cssBefore||{};c.animIn=c.animIn||{};c.animOut=c.animOut||{};b.not(":eq("+m+
")").css(c.cssBefore);c.cssFirst&&d(b[m]).css(c.cssFirst);if(c.timeout){c.timeout=parseInt(c.timeout);if(c.speed.constructor==String)c.speed=d.fx.speeds[c.speed]||parseInt(c.speed);c.sync||(c.speed/=2);for(o=c.fx=="shuffle"?500:250;c.timeout-c.speed<o;)c.timeout+=c.speed}if(c.easing)c.easeIn=c.easeOut=c.easing;if(!c.speedIn)c.speedIn=c.speed;if(!c.speedOut)c.speedOut=c.speed;c.slideCount=f.length;c.currSlide=c.lastSlide=m;if(c.random){if(++c.randomIndex==f.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex]}else c.nextSlide=
c.backwards?c.startingSlide==0?f.length-1:c.startingSlide-1:c.startingSlide>=f.length-1?0:c.startingSlide+1;if(!c.multiFx){o=d.fn.cycle.transitions[c.fx];if(d.isFunction(o))o(a,b,c);else if(c.fx!="custom"&&!c.multiFx){n("unknown transition: "+c.fx,"; slideshow terminating");return false}}a=b[m];c.before.length&&c.before[0].apply(a,[a,a,c,true]);c.after.length>1&&c.after[1].apply(a,[a,a,c,true]);c.next&&d(c.next).bind(c.prevNextEvent,function(){return A(c,c.rev?-1:1)});c.prev&&d(c.prev).bind(c.prevNextEvent,
function(){return A(c,c.rev?1:-1)});if(c.pager||c.pagerAnchorBuilder)Y(f,c);ca(c,f);return c}function E(a){a.original={before:[],after:[]};a.original.cssBefore=d.extend({},a.cssBefore);a.original.cssAfter=d.extend({},a.cssAfter);a.original.animIn=d.extend({},a.animIn);a.original.animOut=d.extend({},a.animOut);d.each(a.before,function(){a.original.before.push(this)});d.each(a.after,function(){a.original.after.push(this)})}function J(a){var b,f,g=d.fn.cycle.transitions;if(a.fx.indexOf(",")>0){a.multiFx=
true;a.fxs=a.fx.replace(/\s*/g,"").split(",");for(b=0;b<a.fxs.length;b++){var j=a.fxs[b];f=g[j];if(!f||!g.hasOwnProperty(j)||!d.isFunction(f)){n("discarding unknown transition: ",j);a.fxs.splice(b,1);b--}}if(!a.fxs.length){n("No valid transitions named; slideshow terminating.");return false}}else if(a.fx=="all"){a.multiFx=true;a.fxs=[];for(p in g){f=g[p];g.hasOwnProperty(p)&&d.isFunction(f)&&a.fxs.push(p)}}if(a.multiFx&&a.randomizeEffects){f=Math.floor(Math.random()*20)+30;for(b=0;b<f;b++)a.fxs.push(a.fxs.splice(Math.floor(Math.random()*
a.fxs.length),1)[0]);r("randomized fx sequence: ",a.fxs)}return true}function ca(a,b){a.addSlide=function(f,g){var j=d(f),c=j[0];a.autostopCount||a.countdown++;b[g?"unshift":"push"](c);if(a.els)a.els[g?"unshift":"push"](c);a.slideCount=b.length;j.css("position","absolute");j[g?"prependTo":"appendTo"](a.$cont);if(g){a.currSlide++;a.nextSlide++}!d.support.opacity&&a.cleartype&&!a.cleartypeNoBg&&Z(j);a.fit&&a.width&&j.width(a.width);a.fit&&a.height&&a.height!="auto"&&$slides.height(a.height);c.cycleH=
a.fit&&a.height?a.height:j.height();c.cycleW=a.fit&&a.width?a.width:j.width();j.css(a.cssBefore);if(a.pager||a.pagerAnchorBuilder)d.fn.cycle.createPagerAnchor(b.length-1,c,d(a.pager),b,a);d.isFunction(a.onAddSlide)?a.onAddSlide(j):j.hide()}}function C(a,b,f,g){if(f&&b.busy&&b.manualTrump){r("manualTrump in go(), stopping active transition");d(a).stop(true,true);b.busy=false}if(b.busy)r("transition active, ignoring new tx request");else{var j=b.$cont[0],c=a[b.currSlide],o=a[b.nextSlide];if(!(j.cycleStop!=
b.stopCount||j.cycleTimeout===0&&!f))if(!f&&!j.cyclePause&&!b.bounce&&(b.autostop&&--b.countdown<=0||b.nowrap&&!b.random&&b.nextSlide<b.currSlide))b.end&&b.end(b);else{var m=false;if((f||!j.cyclePause)&&b.nextSlide!=b.currSlide){m=true;var q=b.fx;c.cycleH=c.cycleH||d(c).height();c.cycleW=c.cycleW||d(c).width();o.cycleH=o.cycleH||d(o).height();o.cycleW=o.cycleW||d(o).width();if(b.multiFx){if(b.lastFx==undefined||++b.lastFx>=b.fxs.length)b.lastFx=0;q=b.fxs[b.lastFx];b.currFx=q}if(b.oneTimeFx){q=b.oneTimeFx;
b.oneTimeFx=null}d.fn.cycle.resetState(b,q);b.before.length&&d.each(b.before,function(F,B){j.cycleStop==b.stopCount&&B.apply(o,[c,o,b,g])});q=function(){d.each(b.after,function(F,B){j.cycleStop==b.stopCount&&B.apply(o,[c,o,b,g])})};r("tx firing; currSlide: "+b.currSlide+"; nextSlide: "+b.nextSlide);b.busy=1;if(b.fxFn)b.fxFn(c,o,b,q,g,f&&b.fastOnEvent);else d.isFunction(d.fn.cycle[b.fx])?d.fn.cycle[b.fx](c,o,b,q,g,f&&b.fastOnEvent):d.fn.cycle.custom(c,o,b,q,g,f&&b.fastOnEvent)}if(m||b.nextSlide==b.currSlide){b.lastSlide=
b.currSlide;if(b.random){b.currSlide=b.nextSlide;if(++b.randomIndex==a.length)b.randomIndex=0;b.nextSlide=b.randomMap[b.randomIndex];if(b.nextSlide==b.currSlide)b.nextSlide=b.currSlide==b.slideCount-1?0:b.currSlide+1}else if(b.backwards)if((f=b.nextSlide-1<0)&&b.bounce){b.backwards=!b.backwards;b.nextSlide=1;b.currSlide=0}else{b.nextSlide=f?a.length-1:b.nextSlide-1;b.currSlide=f?0:b.nextSlide+1}else if((f=b.nextSlide+1==a.length)&&b.bounce){b.backwards=!b.backwards;b.nextSlide=a.length-2;b.currSlide=
a.length-1}else{b.nextSlide=f?0:b.nextSlide+1;b.currSlide=f?a.length-1:b.nextSlide-1}}m&&b.pager&&b.updateActivePagerLink(b.pager,b.currSlide,b.activePagerClass);m=0;if(b.timeout&&!b.continuous)m=w(a[b.currSlide],a[b.nextSlide],b,g);else if(b.continuous&&j.cyclePause)m=10;if(m>0)j.cycleTimeout=setTimeout(function(){C(a,b,0,!b.rev&&!b.backwards)},m)}}}function w(a,b,f,g){if(f.timeoutFn){for(a=f.timeoutFn.call(a,a,b,f,g);a-f.speed<250;)a+=f.speed;r("calculated timeout: "+a+"; speed: "+f.speed);if(a!==
false)return a}return f.timeout}function A(a,b){var f=a.elements,g=a.$cont[0],j=g.cycleTimeout;if(j){clearTimeout(j);g.cycleTimeout=0}if(a.random&&b<0){a.randomIndex--;if(--a.randomIndex==-2)a.randomIndex=f.length-2;else if(a.randomIndex==-1)a.randomIndex=f.length-1;a.nextSlide=a.randomMap[a.randomIndex]}else if(a.random)a.nextSlide=a.randomMap[a.randomIndex];else{a.nextSlide=a.currSlide+b;if(a.nextSlide<0){if(a.nowrap)return false;a.nextSlide=f.length-1}else if(a.nextSlide>=f.length){if(a.nowrap)return false;
a.nextSlide=0}}g=a.onPrevNextEvent||a.prevNextClick;d.isFunction(g)&&g(b>0,a.nextSlide,f[a.nextSlide]);C(f,a,1,b>=0);return false}function Y(a,b){var f=d(b.pager);d.each(a,function(g,j){d.fn.cycle.createPagerAnchor(g,j,f,a,b)});b.updateActivePagerLink(b.pager,b.startingSlide,b.activePagerClass)}function Z(a){function b(g){g=parseInt(g).toString(16);return g.length<2?"0"+g:g}function f(g){for(;g&&g.nodeName.toLowerCase()!="html";g=g.parentNode){var j=d.css(g,"background-color");if(j.indexOf("rgb")>=
0){g=j.match(/\d+/g);return"#"+b(g[0])+b(g[1])+b(g[2])}if(j&&j!="transparent")return j}return"#ffffff"}r("applying clearType background-color hack");a.each(function(){d(this).css("background-color",f(this))})}if(d.support==undefined)d.support={opacity:!d.browser.msie};d.fn.cycle=function(a,b){var f={s:this.selector,c:this.context};if(this.length===0&&a!="stop"){if(!d.isReady&&f.s){n("DOM not ready, queuing slideshow");d(function(){d(f.s,f.c).cycle(a,b)});return this}n("terminating; zero elements found by selector"+
(d.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var g=z(this,a,b);if(g!==false){g.updateActivePagerLink=g.updateActivePagerLink||d.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var j=d(this),c=g.slideExpr?d(g.slideExpr,this):j.children(),o=c.get();if(o.length<2)n("terminating; too few slides: "+o.length);else{var m=Q(j,c,o,g,f);if(m!==false)if(j=m.continuous?10:w(o[m.currSlide],o[m.nextSlide],m,!m.rev)){j+=
m.delay||0;if(j<10)j=10;r("first timeout: "+j);this.cycleTimeout=setTimeout(function(){C(o,m,0,!m.rev&&!g.backwards)},j)}}}})};d.fn.cycle.resetState=function(a,b){b=b||a.fx;a.before=[];a.after=[];a.cssBefore=d.extend({},a.original.cssBefore);a.cssAfter=d.extend({},a.original.cssAfter);a.animIn=d.extend({},a.original.animIn);a.animOut=d.extend({},a.original.animOut);a.fxFn=null;d.each(a.original.before,function(){a.before.push(this)});d.each(a.original.after,function(){a.after.push(this)});var f=d.fn.cycle.transitions[b];
d.isFunction(f)&&f(a.$cont,d(a.elements),a)};d.fn.cycle.updateActivePagerLink=function(a,b,f){d(a).each(function(){d(this).children().removeClass(f).eq(b).addClass(f)})};d.fn.cycle.next=function(a){A(a,a.rev?-1:1)};d.fn.cycle.prev=function(a){A(a,a.rev?1:-1)};d.fn.cycle.createPagerAnchor=function(a,b,f,g,j){if(d.isFunction(j.pagerAnchorBuilder)){b=j.pagerAnchorBuilder(a,b);r("pagerAnchorBuilder("+a+", el) returned: "+b)}else b='<a href="#">'+(a+1)+"</a>";if(b){var c=d(b);if(c.parents("body").length===
0){var o=[];if(f.length>1){f.each(function(){var m=c.clone(true);d(this).append(m);o.push(m[0])});c=d(o)}else c.appendTo(f)}j.pagerAnchors=j.pagerAnchors||[];j.pagerAnchors.push(c);c.bind(j.pagerEvent,function(m){m.preventDefault();j.nextSlide=a;m=j.$cont[0];var q=m.cycleTimeout;if(q){clearTimeout(q);m.cycleTimeout=0}m=j.onPagerEvent||j.pagerClick;d.isFunction(m)&&m(j.nextSlide,g[j.nextSlide]);C(g,j,1,j.currSlide<a)});!/^click/.test(j.pagerEvent)&&!j.allowPagerClickBubble&&c.bind("click.cycle",function(){return false});
j.pauseOnPagerHover&&c.hover(function(){j.$cont[0].cyclePause++},function(){j.$cont[0].cyclePause--})}};d.fn.cycle.hopsFromLast=function(a,b){var f=a.lastSlide,g=a.currSlide;return b?g>f?g-f:a.slideCount-f:g<f?f-g:f+a.slideCount-g};d.fn.cycle.commonReset=function(a,b,f,g,j,c){d(f.elements).not(a).hide();f.cssBefore.opacity=1;f.cssBefore.display="block";if(g!==false&&b.cycleW>0)f.cssBefore.width=b.cycleW;if(j!==false&&b.cycleH>0)f.cssBefore.height=b.cycleH;f.cssAfter=f.cssAfter||{};f.cssAfter.display=
"none";d(a).css("zIndex",f.slideCount+(c===true?1:0));d(b).css("zIndex",f.slideCount+(c===true?0:1))};d.fn.cycle.custom=function(a,b,f,g,j,c){var o=d(a),m=d(b),q=f.speedIn;a=f.speedOut;var F=f.easeIn;b=f.easeOut;m.css(f.cssBefore);if(c){q=typeof c=="number"?a=c:a=1;F=b=null}o.animate(f.animOut,a,b,function(){f.cssAfter&&o.css(f.cssAfter);f.sync||m.animate(f.animIn,q,F,g)});f.sync&&m.animate(f.animIn,q,F,g)};d.fn.cycle.transitions={fade:function(a,b,f){b.not(":eq("+f.currSlide+")").css("opacity",0);
f.before.push(function(g,j,c){d.fn.cycle.commonReset(g,j,c);c.cssBefore.opacity=0});f.animIn={opacity:1};f.animOut={opacity:0};f.cssBefore={top:0,left:0}}};d.fn.cycle.ver=function(){return"2.88"};d.fn.cycle.defaults={fx:"fade",timeout:4E3,timeoutFn:null,continuous:0,speed:1E3,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,
end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!d.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false}})(jQuery);
(function(d,r){function n(l,t){l=l?' id="'+w+l+'"':"";t=t?' style="'+t+'"':"";return d("<div"+l+t+"/>")}function z(l,t){t=t==="x"?u.width():u.height();return typeof l==="string"?Math.round(/%/.test(l)?t/100*parseInt(l,10):parseInt(l,10)):l}function M(l){return e.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(l)}function N(l){for(var t in l)if(d.isFunction(l[t])&&t.substring(0,2)!=="on")l[t]=l[t].call(D);l.rel=l.rel||D.rel||"nofollow";l.href=l.href||d(D).attr("href");l.title=l.title||
D.title;return l}function Q(l,t){t&&t.call(D);d.event.trigger(l)}function E(){var l,t=w+"Slideshow_",s="click."+w,H,P;if(e.slideshow&&i[1]){H=function(){aa.text(e.slideshowStop).unbind(s).bind(Z,function(){if(x<i.length-1||e.loop)l=setTimeout(y.next,e.slideshowSpeed)}).bind(Y,function(){clearTimeout(l)}).one(s+" "+a,P);q.removeClass(t+"off").addClass(t+"on");l=setTimeout(y.next,e.slideshowSpeed)};P=function(){clearTimeout(l);aa.text(e.slideshowStart).unbind([Z,Y,a,s].join(" ")).one(s,H);q.removeClass(t+
"on").addClass(t+"off")};e.slideshowAuto?H():P()}}function J(l){if(!ka){D=l;e=N(d.extend({},d.data(D,C)));i=d(D);x=0;if(e.rel!=="nofollow"){i=d("."+ia).filter(function(){return(d.data(this,C).rel||this.rel)===e.rel});x=i.index(D);if(x===-1){i=i.add(D);x=i.length-1}}if(!S){S=ea=true;q.show();if(e.returnFocus)try{D.blur();d(D).one(b,function(){try{this.focus()}catch(s){}})}catch(t){}m.css({opacity:+e.opacity,cursor:e.overlayClose?"pointer":"auto"}).show();e.w=z(e.initialWidth,"x");e.h=z(e.initialHeight,
"y");y.position(0);c&&u.bind("resize."+o+" scroll."+o,function(){m.css({width:u.width(),height:u.height(),top:u.scrollTop(),left:u.scrollLeft()})}).trigger("scroll."+o);Q(A,e.onOpen);ha.add(ba).add(X).add(aa).add(ga).hide();$.html(e.close).show()}y.load(true)}}var ca={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,photo:false,
href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,returnFocus:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},C="colorbox",w="cbox",A=w+"_open",Y=w+"_load",Z=w+"_complete",a=w+"_cleanup",b=w+
"_closed",f=w+"_purge",g=w+"_loaded",j=d.browser.msie&&!d.support.opacity,c=j&&d.browser.version<7,o=w+"_IE6",m,q,F,B,V,R,h,k,i,u,v,O,W,ga,ha,aa,X,ba,$,T,L,K,G,D,x,e,S,ea,ka=false,y,ia=w+"Element";y=d.fn[C]=d[C]=function(l,t){var s=this,H;if(!s[0]&&s.selector)return s;l=l||{};if(t)l.onComplete=t;if(!s[0]||s.selector===undefined){s=d("<a/>");l.open=true}s.each(function(){d.data(this,C,d.extend({},d.data(this,C)||ca,l));d(this).addClass(ia)});H=l.open;if(d.isFunction(H))H=H.call(s);H&&J(s[0]);return s};
y.init=function(){u=d(r);q=n().attr({id:C,"class":j?w+"IE":""});m=n("Overlay",c?"position:absolute":"").hide();F=n("Wrapper");B=n("Content").append(v=n("LoadedContent","width:0; height:0; overflow:hidden"),W=n("LoadingOverlay").add(n("LoadingGraphic")),ga=n("Title"),ha=n("Current"),X=n("Next"),ba=n("Previous"),aa=n("Slideshow").bind(A,E),$=n("Close"));F.append(n().append(n("TopLeft"),V=n("TopCenter"),n("TopRight")),n(false,"clear:left").append(R=n("MiddleLeft"),B,h=n("MiddleRight")),n(false,"clear:left").append(n("BottomLeft"),
k=n("BottomCenter"),n("BottomRight"))).children().children().css({"float":"left"});O=n(false,"position:absolute; width:9999px; visibility:hidden; display:none");d("body").prepend(m,q.append(F,O));B.children().hover(function(){d(this).addClass("hover")},function(){d(this).removeClass("hover")}).addClass("hover");T=V.height()+k.height()+B.outerHeight(true)-B.height();L=R.width()+h.width()+B.outerWidth(true)-B.width();K=v.outerHeight(true);G=v.outerWidth(true);q.css({"padding-bottom":T,"padding-right":L}).hide();
X.click(y.next);ba.click(y.prev);$.click(y.close);B.children().removeClass("hover");d("."+ia).live("click",function(l){if(!(l.button!==0&&typeof l.button!=="undefined"||l.ctrlKey||l.shiftKey||l.altKey)){l.preventDefault();J(this)}});m.click(function(){e.overlayClose&&y.close()});d(document).bind("keydown",function(l){if(S&&e.escKey&&l.keyCode===27){l.preventDefault();y.close()}if(S&&e.arrowKey&&!ea&&i[1])if(l.keyCode===37&&(x||e.loop)){l.preventDefault();ba.click()}else if(l.keyCode===39&&(x<i.length-
1||e.loop)){l.preventDefault();X.click()}})};y.remove=function(){q.add(m).remove();d("."+ia).die("click").removeData(C).removeClass(ia)};y.position=function(l,t){function s(U){V[0].style.width=k[0].style.width=B[0].style.width=U.style.width;W[0].style.height=W[1].style.height=B[0].style.height=R[0].style.height=h[0].style.height=U.style.height}var H,P=Math.max(document.documentElement.clientHeight-e.h-K-T,0)/2+u.scrollTop(),I=Math.max(u.width()-e.w-G-L,0)/2+u.scrollLeft();H=q.width()===e.w+G&&q.height()===
e.h+K?0:l;F[0].style.width=F[0].style.height="9999px";q.dequeue().animate({width:e.w+G,height:e.h+K,top:P,left:I},{duration:H,complete:function(){s(this);ea=false;F[0].style.width=e.w+G+L+"px";F[0].style.height=e.h+K+T+"px";t&&t()},step:function(){s(this)}})};y.resize=function(l){if(S){l=l||{};if(l.width)e.w=z(l.width,"x")-G-L;if(l.innerWidth)e.w=z(l.innerWidth,"x");v.css({width:e.w});if(l.height)e.h=z(l.height,"y")-K-T;if(l.innerHeight)e.h=z(l.innerHeight,"y");if(!l.innerHeight&&!l.height){l=v.wrapInner("<div style='overflow:auto'></div>").children();
e.h=l.height();l.replaceWith(l.children())}v.css({height:e.h});y.position(e.transition==="none"?0:e.speed)}};y.prep=function(l){function t(P){var I,U,fa,da,ja=i.length,la=e.loop;y.position(P,function(){function ma(){j&&q[0].style.removeAttribute("filter")}if(S){j&&s&&v.fadeIn(100);v.show();Q(g);ga.show().html(e.title);if(ja>1){typeof e.current==="string"&&ha.html(e.current.replace(/\{current\}/,x+1).replace(/\{total\}/,ja)).show();X[la||x<ja-1?"show":"hide"]().html(e.next);ba[la||x?"show":"hide"]().html(e.previous);
I=x?i[x-1]:i[ja-1];fa=x<ja-1?i[x+1]:i[0];e.slideshow&&aa.show();if(e.preloading){da=d.data(fa,C).href||fa.href;U=d.data(I,C).href||I.href;da=d.isFunction(da)?da.call(fa):da;U=d.isFunction(U)?U.call(I):U;if(M(da))d("<img/>")[0].src=da;if(M(U))d("<img/>")[0].src=U}}W.hide();e.transition==="fade"?q.fadeTo(H,1,function(){ma()}):ma();u.bind("resize."+w,function(){y.position(0)});Q(Z,e.onComplete)}})}if(S){var s,H=e.transition==="none"?0:e.speed;u.unbind("resize."+w);v.remove();v=n("LoadedContent").html(l);
v.hide().appendTo(O.show()).css({width:function(){e.w=e.w||v.width();e.w=e.mw&&e.mw<e.w?e.mw:e.w;return e.w}(),overflow:e.scrolling?"auto":"hidden"}).css({height:function(){e.h=e.h||v.height();e.h=e.mh&&e.mh<e.h?e.mh:e.h;return e.h}()}).prependTo(B);O.hide();d("#"+w+"Photo").css({cssFloat:"none",marginLeft:"auto",marginRight:"auto"});c&&d("select").not(q.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(a,function(){this.style.visibility="inherit"});
e.transition==="fade"?q.fadeTo(H,0,function(){t(0)}):t(H)}};y.load=function(l){var t,s,H,P=y.prep;ea=true;D=i[x];l||(e=N(d.extend({},d.data(D,C))));Q(f);Q(Y,e.onLoad);e.h=e.height?z(e.height,"y")-K-T:e.innerHeight&&z(e.innerHeight,"y");e.w=e.width?z(e.width,"x")-G-L:e.innerWidth&&z(e.innerWidth,"x");e.mw=e.w;e.mh=e.h;if(e.maxWidth){e.mw=z(e.maxWidth,"x")-G-L;e.mw=e.w&&e.w<e.mw?e.w:e.mw}if(e.maxHeight){e.mh=z(e.maxHeight,"y")-K-T;e.mh=e.h&&e.h<e.mh?e.h:e.mh}t=e.href;W.show();if(e.inline){n().hide().insertBefore(d(t)[0]).one(f,
function(){d(this).replaceWith(v.children())});P(d(t))}else if(e.iframe){q.one(g,function(){var I=d("<iframe frameborder='0' style='width:100%; height:100%; border:0; display:block'/>")[0];I.name=w+ +new Date;I.src=e.href;if(!e.scrolling)I.scrolling="no";if(j)I.allowtransparency="true";d(I).appendTo(v).one(f,function(){I.src="//about:blank"})});P(" ")}else if(e.html)P(e.html);else if(M(t)){s=new Image;s.onload=function(){var I;s.onload=null;s.id=w+"Photo";d(s).css({border:"none",display:"block",cssFloat:"left"});
if(e.scalePhotos){H=function(){s.height-=s.height*I;s.width-=s.width*I};if(e.mw&&s.width>e.mw){I=(s.width-e.mw)/s.width;H()}if(e.mh&&s.height>e.mh){I=(s.height-e.mh)/s.height;H()}}if(e.h)s.style.marginTop=Math.max(e.h-s.height,0)/2+"px";if(i[1]&&(x<i.length-1||e.loop))d(s).css({cursor:"pointer"}).click(y.next);if(j)s.style.msInterpolationMode="bicubic";setTimeout(function(){P(s)},1)};setTimeout(function(){s.src=t},1)}else t&&O.load(t,function(I,U,fa){P(U==="error"?"Request unsuccessful: "+fa.statusText:
d(this).children())})};y.next=function(){if(!ea){x=x<i.length-1?x+1:0;y.load()}};y.prev=function(){if(!ea){x=x?x-1:i.length-1;y.load()}};y.close=function(){if(S&&!ka){ka=true;S=false;Q(a,e.onCleanup);u.unbind("."+w+" ."+o);m.fadeTo("fast",0);q.stop().fadeTo("fast",0,function(){Q(f);v.remove();q.add(m).css({opacity:1,cursor:"auto"}).hide();setTimeout(function(){ka=false;Q(b,e.onClosed)},1)})}};y.element=function(){return d(D)};y.settings=ca;d(y.init)})(jQuery,this);jQuery.noConflict();
(function(d){d.fn.inputPlaceholder=function(){if(!Modernizr.input.placeholder){this.each(function(){var n=d(this),z=n.val();n.focus(function(){n.val()===z&&n.val("")}).blur(function(){n.val()===""&&n.val(z)})});return this}};d.browser.msie&&parseFloat(d.browser.version)<7&&d("#header li").hover(function(){d(this).find("ul:first").show()},function(){d(this).find("ul:first").hide()});d("#latest-tweet");d("#flickr").length&&d.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=54103509@N05&lang=en-us&format=json&jsoncallback=?",
function(n){n.items.sort(function(){return 0.5-Math.random()});d.each(n.items,function(z,M){z<4&&d("<img/>").attr("src",M.media.m).appendTo("#flickr ul").wrap("<li><a href='"+M.link+"' target='_blank'></a></li>")})});var r=d("#slideshow");if(r.length)r.find("li").length>1?r.find("ul").cycle({timeout:5E3,next:"#slideshow-next",prev:"#slideshow-previous"}):d("#slideshow-next, #slideshow-previous").click(function(n){n.preventDefault()});d("a[rel=colorbox-iframe]").colorbox({iframe:true,height:390,width:640})})(jQuery);

