window.Modernizr=function(ad,ac,ab){function C(d,c){return !!~(""+d).indexOf(c)}function D(d,c){return typeof d===c}function E(d,c){return F(Q.join(d+";")+(c||""))}function F(b){T.cssText=b}var aa="2.0",Z={},Y=!0,X=ac.documentElement,W=ac.head||ac.getElementsByTagName("head")[0],V="modernizr",U=ac.createElement(V),T=U.style,S,R=Object.prototype.toString,Q=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),P={},O={},M={},K=[],J=function(b,p,o,n){var m,l,i,g=ac.createElement("div");if(parseInt(o,10)){while(o--){i=ac.createElement("div"),i.id=n?n[o]:V+(o+1),g.appendChild(i)}}m=["&shy;","<style>",b,"</style>"].join(""),g.id=V,g.innerHTML+=m,X.appendChild(g),l=p(g,b),g.parentNode.removeChild(g);return !!l},I,H={}.hasOwnProperty,G;!D(H,ab)&&!D(H.call,ab)?G=function(d,c){return H.call(d,c)}:G=function(d,c){return c in d&&D(d.constructor.prototype[c],ab)};var N=function(h,e){var b=h.join(""),a=e.length;J(b,function(o,n){var m=ac.styleSheets[ac.styleSheets.length-1],l=m.cssText||m.cssRules[0].cssText,k=o.childNodes,g={};while(a--){g[k[a].id]=k[a]}Z.touch="ontouchstart" in ad||g.touch.offsetTop===9},a,e)}([,["@media (",Q.join("touch-enabled),("),V,")","{#touch{top:9px;position:absolute}}"].join("")],[,"touch"]);P.touch=function(){return Z.touch};for(var L in P){G(P,L)&&(I=L.toLowerCase(),Z[I]=P[L](),K.push((Z[I]?"":"no-")+I))}F(""),U=S=null,Z._version=aa,Z._prefixes=Q,Z.testStyles=J,X.className=X.className.replace(/\bno-js\b/,"")+(Y?" js "+K.join(" "):"");return Z}(this,this.document);(function(a){a.fn.emailAddressMunging=function(b){return this.each(function(){var e=a(this);var d=a.fn.emailAddressMunging._createEmail(e.text());var c={};a.each(this.attributes,function(g,f){if(f.value!=="null"&&f.value!==""&&f.name!=="dataFormatAs"&&f.name!=="href"){c[f.name]=f.value}});$newEl=a('<a href="mailto:'+d+'">'+d+"</a>").attr(c);e.replaceWith($newEl)})};a.fn.emailAddressMunging._createEmail=function(b){b=b.replace(/(\[|\()at(\]|\))/i,"@");b=b.replace(/(\[|\()dot(\]|\))/ig,".");b=b.replace(/ /g,"");return b}})(jQuery);(function(c){function b(e,d){return(typeof e=="function")?(e.call(d)):e}function a(e,d){this.$element=c(e);this.options=d;this.enabled=true;this.fixTitle()}a.prototype={show:function(){var g=this.getTitle();if(g&&this.enabled){var f=this.tip();f.find(".tipsy-inner")[this.options.html?"html":"text"](g);f[0].className="tipsy";f.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var j=c.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});var d=f[0].offsetWidth,i=f[0].offsetHeight,h=b(this.options.gravity,this.$element[0]);var e;switch(h.charAt(0)){case"n":e={top:j.top+j.height+this.options.offset,left:j.left+j.width/2-d/2};break;case"s":e={top:j.top-i-this.options.offset,left:j.left+j.width/2-d/2};break;case"e":e={top:j.top+j.height/2-i/2,left:j.left-d-this.options.offset};break;case"w":e={top:j.top+j.height/2-i/2,left:j.left+j.width+this.options.offset};break}if(h.length==2){if(h.charAt(1)=="w"){e.left=j.left+j.width/2-15}else{e.left=j.left+j.width/2-d+15}}f.css(e).addClass("tipsy-"+h);f.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+h.charAt(0);if(this.options.className){f.addClass(b(this.options.className,this.$element[0]))}if(this.options.fade){f.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity})}else{f.css({visibility:"visible",opacity:this.options.opacity})}}},hide:function(){if(this.options.fade){this.tip().stop().fadeOut(function(){c(this).remove()})}else{this.tip().remove()}},fixTitle:function(){var d=this.$element;if(d.attr("title")||typeof(d.attr("original-title"))!="string"){d.attr("original-title",d.attr("title")||"").removeAttr("title")}},getTitle:function(){var f,d=this.$element,e=this.options;this.fixTitle();var f,e=this.options;if(typeof e.title=="string"){f=d.attr(e.title=="title"?"original-title":e.title)}else{if(typeof e.title=="function"){f=e.title.call(d[0])}}f=(""+f).replace(/(^\s*|\s*$)/,"");return f||e.fallback},tip:function(){if(!this.$tip){this.$tip=c('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>')}return this.$tip},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=!this.enabled}};c.fn.tipsy=function(h){if(h===true){return this.data("tipsy")}else{if(typeof h=="string"){var j=this.data("tipsy");if(j){j[h]()}return this}}h=c.extend({},c.fn.tipsy.defaults,h);function g(l){var m=c.data(l,"tipsy");if(!m){m=new a(l,c.fn.tipsy.elementOptions(l,h));c.data(l,"tipsy",m)}return m}function k(){var l=g(this);l.hoverState="in";if(h.delayIn==0){l.show()}else{l.fixTitle();setTimeout(function(){if(l.hoverState=="in"){l.show()}},h.delayIn)}}function f(){var l=g(this);l.hoverState="out";if(h.delayOut==0){l.hide()}else{setTimeout(function(){if(l.hoverState=="out"){l.hide()}},h.delayOut)}}if(!h.live){this.each(function(){g(this)})}if(h.trigger!="manual"){var d=h.live?"live":"bind",i=h.trigger=="hover"?"mouseenter":"focus",e=h.trigger=="hover"?"mouseleave":"blur";this[d](i,k)[d](e,f)}return this};c.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:false,fallback:"",gravity:"n",html:false,live:false,offset:0,opacity:0.8,title:"title",trigger:"hover"};c.fn.tipsy.elementOptions=function(e,d){return c.metadata?c.extend({},d,c(e).metadata()):d};c.fn.tipsy.autoNS=function(){return c(this).offset().top>(c(document).scrollTop()+c(window).height()/2)?"s":"n"};c.fn.tipsy.autoWE=function(){return c(this).offset().left>(c(document).scrollLeft()+c(window).width()/2)?"e":"w"};c.fn.tipsy.autoBounds=function(e,d){return function(){var f={ns:d[0],ew:(d.length>1?d[1]:false)},i=c(document).scrollTop()+e,g=c(document).scrollLeft()+e,h=c(this);if(h.offset().top<i){f.ns="n"}if(h.offset().left<g){f.ew="w"}if(c(window).width()+c(document).scrollLeft()-h.offset().left<e){f.ew="e"}if(c(window).height()+c(document).scrollTop()-h.offset().top<e){f.ns="s"}return f.ns+(f.ew?f.ew:"")}}})(jQuery);jQuery(document).ready(function(a){a("#email").emailAddressMunging();var b=function(){a(".social-icon img[title]").tipsy({gravity:"s",fade:true})};if(typeof Modernizr!=="undefined"){if(!Modernizr.touch){b()}}else{b()}});
