/*! * Modernizr v2.6.2 * www.modernizr.com * * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton * Available under the BSD and MIT licenses: www.modernizr.com/license/ */ window.Modernizr=(function(A,c,g){var J="2.6.2",w={},y=true,M=c.documentElement,a="modernizr",I=c.createElement(a),E=I.style,L=c.createElement("input"),C=":)",b={}.toString,j=" -webkit- -moz- -o- -ms- ".split(" "),h="Webkit Moz O ms",F=h.split(" "),K=h.toLowerCase().split(" "),H={svg:"http://www.w3.org/2000/svg"},l={},p={},f={},e=[],k=e.slice,s,n=function(V,X,P,W){var O,U,R,S,N=c.createElement("div"),T=c.body,Q=T||c.createElement("body");if(parseInt(P,10)){while(P--){R=c.createElement("div");R.id=W?W[P]:a+(P+1);N.appendChild(R)}}O=["­",'"].join("");N.id=a;(T?N:Q).innerHTML+=O;Q.appendChild(N);if(!T){Q.style.background="";Q.style.overflow="hidden";S=M.style.overflow;M.style.overflow="hidden";M.appendChild(Q)}U=X(N,V);if(!T){Q.parentNode.removeChild(Q);M.style.overflow=S}else{N.parentNode.removeChild(N)}return !!U},G=function(P){var O=A.matchMedia||A.msMatchMedia;if(O){return O(P).matches}var N;n("@media "+P+" { #"+a+" { position: absolute; } }",function(Q){N=(A.getComputedStyle?getComputedStyle(Q,null):Q.currentStyle)["position"]=="absolute"});return N},o=(function(){var O={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function N(P,R){R=R||c.createElement(O[P]||"div");P="on"+P;var Q=P in R;if(!Q){if(!R.setAttribute){R=c.createElement("div")}if(R.setAttribute&&R.removeAttribute){R.setAttribute(P,"");Q=r(R[P],"function");if(!r(R[P],"undefined")){R[P]=g}R.removeAttribute(P)}}R=null;return Q}return N})(),i=({}).hasOwnProperty,x;if(!r(i,"undefined")&&!r(i.call,"undefined")){x=function(N,O){return i.call(N,O)}}else{x=function(N,O){return((O in N)&&r(N.constructor.prototype[O],"undefined"))}}if(!Function.prototype.bind){Function.prototype.bind=function d(P){var Q=this;if(typeof Q!="function"){throw new TypeError()}var N=k.call(arguments,1),O=function(){if(this instanceof O){var T=function(){};T.prototype=Q.prototype;var S=new T();var R=Q.apply(S,N.concat(k.call(arguments)));if(Object(R)===R){return R}return S}else{return Q.apply(P,N.concat(k.call(arguments)))}};return O}}function D(N){E.cssText=N}function u(O,N){return D(j.join(O+";")+(N||""))}function r(O,N){return typeof O===N}function t(O,N){return !!~(""+O).indexOf(N)}function z(P,N){for(var O in P){var Q=P[O];if(!t(Q,"-")&&E[Q]!==g){return N=="pfx"?Q:true}}return false}function q(O,R,Q){for(var N in O){var P=R[O[N]];if(P!==g){if(Q===false){return O[N]}if(r(P,"function")){return P.bind(Q||R)}return P}}return false}function m(R,N,Q){var O=R.charAt(0).toUpperCase()+R.slice(1),P=(R+" "+F.join(O+" ")+O).split(" ");if(r(N,"string")||r(N,"undefined")){return z(P,N)}else{P=(R+" "+(K).join(O+" ")+O).split(" ");return q(P,N,Q)}}l.flexbox=function(){return m("flexWrap")};l.flexboxlegacy=function(){return m("boxDirection")};l.canvas=function(){var N=c.createElement("canvas");return !!(N.getContext&&N.getContext("2d"))};l.canvastext=function(){return !!(w.canvas&&r(c.createElement("canvas").getContext("2d").fillText,"function"))};l.webgl=function(){return !!A.WebGLRenderingContext};l.touch=function(){var N;if(("ontouchstart" in A)||A.DocumentTouch&&c instanceof DocumentTouch){N=true}else{n(["@media (",j.join("touch-enabled),("),a,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(O){N=O.offsetTop===9})}return N};l.geolocation=function(){return"geolocation" in navigator};l.postmessage=function(){return !!A.postMessage};l.websqldatabase=function(){return !!A.openDatabase};l.indexedDB=function(){return !!m("indexedDB",A)};l.hashchange=function(){return o("hashchange",A)&&(c.documentMode===g||c.documentMode>7)};l.history=function(){return !!(A.history&&history.pushState)};l.draganddrop=function(){var N=c.createElement("div");return("draggable" in N)||("ondragstart" in N&&"ondrop" in N)};l.websockets=function(){return"WebSocket" in A||"MozWebSocket" in A};l.rgba=function(){D("background-color:rgba(150,255,150,.5)");return t(E.backgroundColor,"rgba")};l.hsla=function(){D("background-color:hsla(120,40%,100%,.5)");return t(E.backgroundColor,"rgba")||t(E.backgroundColor,"hsla")};l.multiplebgs=function(){D("background:url(https://),url(https://),red url(https://)");return(/(url\s*\(.*?){3}/).test(E.background)};l.backgroundsize=function(){return m("backgroundSize")};l.borderimage=function(){return m("borderImage")};l.borderradius=function(){return m("borderRadius")};l.boxshadow=function(){return m("boxShadow")};l.textshadow=function(){return c.createElement("div").style.textShadow===""};l.opacity=function(){u("opacity:.55");return(/^0.55$/).test(E.opacity)};l.cssanimations=function(){return m("animationName")};l.csscolumns=function(){return m("columnCount")};l.cssgradients=function(){var P="background-image:",O="gradient(linear,left top,right bottom,from(#9f9),to(white));",N="linear-gradient(left top,#9f9, white);";D((P+"-webkit- ".split(" ").join(O+P)+j.join(N+P)).slice(0,-P.length));return t(E.backgroundImage,"gradient")};l.cssreflections=function(){return m("boxReflect")};l.csstransforms=function(){return !!m("transform")};l.csstransforms3d=function(){var N=!!m("perspective");if(N&&"webkitPerspective" in M.style){n("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(O,P){N=O.offsetLeft===9&&O.offsetHeight===3})}return N};l.csstransitions=function(){return m("transition")};l.fontface=function(){var N;n('@font-face {font-family:"font";src:url("https://")}',function(R,S){var Q=c.getElementById("smodernizr"),O=Q.sheet||Q.styleSheet,P=O?(O.cssRules&&O.cssRules[0]?O.cssRules[0].cssText:O.cssText||""):"";N=/src/i.test(P)&&P.indexOf(S.split(" ")[0])===0});return N};l.generatedcontent=function(){var N;n(["#",a,"{font:0/0 a}#",a,':after{content:"',C,'";visibility:hidden;font:3px/1 a}'].join(""),function(O){N=O.offsetHeight>=3});return N};l.video=function(){var O=c.createElement("video"),N=false;try{if(N=!!O.canPlayType){N=new Boolean(N);N.ogg=O.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"");N.h264=O.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"");N.webm=O.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}}catch(P){}return N};l.audio=function(){var O=c.createElement("audio"),N=false;try{if(N=!!O.canPlayType){N=new Boolean(N);N.ogg=O.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"");N.mp3=O.canPlayType("audio/mpeg;").replace(/^no$/,"");N.wav=O.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"");N.m4a=(O.canPlayType("audio/x-m4a;")||O.canPlayType("audio/aac;")).replace(/^no$/,"")}}catch(P){}return N};l.localstorage=function(){try{localStorage.setItem(a,a);localStorage.removeItem(a);return true}catch(N){return false}};l.sessionstorage=function(){try{sessionStorage.setItem(a,a);sessionStorage.removeItem(a);return true}catch(N){return false}};l.webworkers=function(){return !!A.Worker};l.applicationcache=function(){return !!A.applicationCache};l.svg=function(){return !!c.createElementNS&&!!c.createElementNS(H.svg,"svg").createSVGRect};l.inlinesvg=function(){var N=c.createElement("div");N.innerHTML="";return(N.firstChild&&N.firstChild.namespaceURI)==H.svg};l.smil=function(){return !!c.createElementNS&&/SVGAnimate/.test(b.call(c.createElementNS(H.svg,"animate")))};l.svgclippaths=function(){return !!c.createElementNS&&/SVGClipPath/.test(b.call(c.createElementNS(H.svg,"clipPath")))};function B(){w.input=(function(P){for(var O=0,N=P.length;O";ac=("hidden" in af);R=af.childNodes.length==1||(function(){(Y.createElement)("a");var ah=Y.createDocumentFragment();return(typeof ah.cloneNode=="undefined"||typeof ah.createDocumentFragment=="undefined"||typeof ah.createElement=="undefined")}())}catch(ag){ac=true;R=true}}());function S(af,ah){var ai=af.createElement("p"),ag=af.getElementsByTagName("head")[0]||af.documentElement;ai.innerHTML="x";return ag.insertBefore(ai.lastChild,ag.firstChild)}function X(){var af=V.elements;return typeof af=="string"?af.split(" "):af}function ab(af){var ag=aa[af[U]];if(!ag){ag={};N++;af[U]=N;aa[N]=ag}return ag}function Z(ai,af,ah){if(!af){af=Y}if(R){return af.createElement(ai)}if(!ah){ah=ab(af)}var ag;if(ah.cache[ai]){ag=ah.cache[ai].cloneNode()}else{if(O.test(ai)){ag=(ah.cache[ai]=ah.createElem(ai)).cloneNode()}else{ag=ah.createElem(ai)}}return ag.canHaveChildren&&!T.test(ai)?ah.frag.appendChild(ag):ag}function ad(ah,aj){if(!ah){ah=Y}if(R){return ah.createDocumentFragment()}aj=aj||ab(ah);var ak=aj.frag.cloneNode(),ai=0,ag=X(),af=ag.length;for(;ai(e.length-1)||h<0){return}if(this.sliding){return this.$element.one("slid",function(){g.to(h)})}if(f==h){return this.pause().cycle()}return this.slide(h>f?"next":"prev",b(e[h]))},pause:function(d){if(!d){this.paused=true}if(this.$element.find(".next, .prev").length&&b.support.transition.end){this.$element.trigger(b.support.transition.end);this.cycle()}clearInterval(this.interval);this.interval=null;return this},next:function(){if(this.sliding){return}return this.slide("next")},prev:function(){if(this.sliding){return}return this.slide("prev")},slide:function(k,f){var m=this.$element.find(".item.active"),d=f||m[k](),j=this.interval,l=k=="next"?"left":"right",g=k=="next"?"first":"last",h=this,i;this.sliding=true;j&&this.pause();d=d.length?d:this.$element.find(".item")[g]();i=b.Event("slide",{relatedTarget:d[0]});if(d.hasClass("active")){return}if(b.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(i);if(i.isDefaultPrevented()){return}d.addClass(k);d[0].offsetWidth;m.addClass(l);d.addClass(l);this.$element.one(b.support.transition.end,function(){d.removeClass([k,l].join(" ")).addClass("active");m.removeClass(["active",l].join(" "));h.sliding=false;setTimeout(function(){h.$element.trigger("slid")},0)})}else{this.$element.trigger(i);if(i.isDefaultPrevented()){return}m.removeClass("active");d.addClass("active");this.sliding=false;this.$element.trigger("slid")}j&&this.cycle();return this}};var a=b.fn.carousel;b.fn.carousel=function(d){return this.each(function(){var h=b(this),g=h.data("carousel"),e=b.extend({},b.fn.carousel.defaults,typeof d=="object"&&d),f=typeof d=="string"?d:e.slide;if(!g){h.data("carousel",(g=new c(this,e)))}if(typeof d=="number"){g.to(d)}else{if(f){g[f]()}else{if(e.interval){g.cycle()}}}})};b.fn.carousel.defaults={interval:5000,pause:"hover"};b.fn.carousel.Constructor=c;b.fn.carousel.noConflict=function(){b.fn.carousel=a;return this};b(document).on("click.carousel.data-api","[data-slide]",function(i){var h=b(this),f,d=b(h.attr("data-target")||(f=h.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),g=b.extend({},d.data(),h.data());d.carousel(g);i.preventDefault()})}(window.jQuery);!function(b){var c=function(e,d){this.$element=b(e);this.options=b.extend({},b.fn.collapse.defaults,d);if(this.options.parent){this.$parent=b(this.options.parent)}this.options.toggle&&this.toggle()};c.prototype={constructor:c,dimension:function(){var d=this.$element.hasClass("width");return d?"width":"height"},show:function(){var g,d,f,e;if(this.transitioning){return}g=this.dimension();d=b.camelCase(["scroll",g].join("-"));f=this.$parent&&this.$parent.find("> .accordion-group > .in");if(f&&f.length){e=f.data("collapse");if(e&&e.transitioning){return}f.collapse("hide");e||f.data("collapse",null)}this.$element[g](0);this.transition("addClass",b.Event("show"),"shown");b.support.transition&&this.$element[g](this.$element[0][d])},hide:function(){var d;if(this.transitioning){return}d=this.dimension();this.reset(this.$element[d]());this.transition("removeClass",b.Event("hide"),"hidden");this.$element[d](0)},reset:function(d){var e=this.dimension();this.$element.removeClass("collapse")[e](d||"auto")[0].offsetWidth;this.$element[d!==null?"addClass":"removeClass"]("collapse");return this},transition:function(h,e,f){var g=this,d=function(){if(e.type=="show"){g.reset()}g.transitioning=0;g.$element.trigger(f)};this.$element.trigger(e);if(e.isDefaultPrevented()){return}this.transitioning=1;this.$element[h]("in");b.support.transition&&this.$element.hasClass("collapse")?this.$element.one(b.support.transition.end,d):d()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var a=b.fn.collapse;b.fn.collapse=function(d){return this.each(function(){var g=b(this),f=g.data("collapse"),e=typeof d=="object"&&d;if(!f){g.data("collapse",(f=new c(this,e)))}if(typeof d=="string"){f[d]()}})};b.fn.collapse.defaults={toggle:true};b.fn.collapse.Constructor=c;b.fn.collapse.noConflict=function(){b.fn.collapse=a;return this};b(document).on("click.collapse.data-api","[data-toggle=collapse]",function(i){var h=b(this),d,g=h.attr("data-target")||i.preventDefault()||(d=h.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),f=b(g).data("collapse")?"toggle":h.data();h[b(g).hasClass("in")?"addClass":"removeClass"]("collapsed");b(g).collapse(f)})}(window.jQuery);!function(f){var b="[data-toggle=dropdown]",a=function(h){var g=f(h).on("click.dropdown.data-api",this.toggle);f("html").on("click.dropdown.data-api",function(){g.parent().removeClass("open")})};a.prototype={constructor:a,toggle:function(j){var i=f(this),h,g;if(i.is(".disabled, :disabled")){return}h=e(i);g=h.hasClass("open");d();if(!g){h.toggleClass("open")}i.focus();return false},keydown:function(l){var k,m,g,j,i,h;if(!/(38|40|27)/.test(l.keyCode)){return}k=f(this);l.preventDefault();l.stopPropagation();if(k.is(".disabled, :disabled")){return}j=e(k);i=j.hasClass("open");if(!i||(i&&l.keyCode==27)){return k.click()}m=f("[role=menu] li:not(.divider):visible a",j);if(!m.length){return}h=m.index(m.filter(":focus"));if(l.keyCode==38&&h>0){h--}if(l.keyCode==40&&h').appendTo(document.body);this.$backdrop.click(this.options.backdrop=="static"?c.proxy(this.$element[0].focus,this.$element[0]):c.proxy(this.hide,this));if(d){this.$backdrop[0].offsetWidth}this.$backdrop.addClass("in");d?this.$backdrop.one(c.support.transition.end,g):g()}else{if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");c.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(c.support.transition.end,c.proxy(this.removeBackdrop,this)):this.removeBackdrop()}else{if(g){g()}}}}};var a=c.fn.modal;c.fn.modal=function(d){return this.each(function(){var g=c(this),f=g.data("modal"),e=c.extend({},c.fn.modal.defaults,g.data(),typeof d=="object"&&d);if(!f){g.data("modal",(f=new b(this,e)))}if(typeof d=="string"){f[d]()}else{if(e.show){f.show()}}})};c.fn.modal.defaults={backdrop:true,keyboard:true,show:true};c.fn.modal.Constructor=b;c.fn.modal.noConflict=function(){c.fn.modal=a;return this};c(document).on("click.modal.data-api",'[data-toggle="modal"]',function(i){var h=c(this),f=h.attr("href"),d=c(h.attr("data-target")||(f&&f.replace(/.*(?=#[^\s]+$)/,""))),g=d.data("modal")?"toggle":c.extend({remote:!/#/.test(f)&&f},d.data(),h.data());i.preventDefault();d.modal(g).one("hide",function(){h.focus()})})}(window.jQuery);!function(c){var b=function(e,d){this.init("tooltip",e,d)};b.prototype={constructor:b,init:function(g,f,e){var h,d;this.type=g;this.$element=c(f);this.options=this.getOptions(e);this.enabled=true;if(this.options.trigger=="click"){this.$element.on("click."+this.type,this.options.selector,c.proxy(this.toggle,this))}else{if(this.options.trigger!="manual"){h=this.options.trigger=="hover"?"mouseenter":"focus";d=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(h+"."+this.type,this.options.selector,c.proxy(this.enter,this));this.$element.on(d+"."+this.type,this.options.selector,c.proxy(this.leave,this))}}this.options.selector?(this._options=c.extend({},this.options,{trigger:"manual",selector:""})):this.fixTitle()},getOptions:function(d){d=c.extend({},c.fn[this.type].defaults,d,this.$element.data());if(d.delay&&typeof d.delay=="number"){d.delay={show:d.delay,hide:d.delay}}return d},enter:function(f){var d=c(f.currentTarget)[this.type](this._options).data(this.type);if(!d.options.delay||!d.options.delay.show){return d.show()}clearTimeout(this.timeout);d.hoverState="in";this.timeout=setTimeout(function(){if(d.hoverState=="in"){d.show()}},d.options.delay.show)},leave:function(f){var d=c(f.currentTarget)[this.type](this._options).data(this.type);if(this.timeout){clearTimeout(this.timeout)}if(!d.options.delay||!d.options.delay.hide){return d.hide()}d.hoverState="out";this.timeout=setTimeout(function(){if(d.hoverState=="out"){d.hide()}},d.options.delay.hide)},show:function(){var h,d,j,f,i,e,g;if(this.hasContent()&&this.enabled){h=this.tip();this.setContent();if(this.options.animation){h.addClass("fade")}e=typeof this.options.placement=="function"?this.options.placement.call(this,h[0],this.$element[0]):this.options.placement;d=/in/.test(e);h.detach().css({top:0,left:0,display:"block"}).insertAfter(this.$element);j=this.getPosition(d);f=h[0].offsetWidth;i=h[0].offsetHeight;switch(d?e.split(" ")[1]:e){case"bottom":g={top:j.top+j.height,left:j.left+j.width/2-f/2};break;case"top":g={top:j.top-i,left:j.left+j.width/2-f/2};break;case"left":g={top:j.top+j.height/2-i/2,left:j.left-f};break;case"right":g={top:j.top+j.height/2-i/2,left:j.left+j.width};break}h.offset(g).addClass(e).addClass("in")}},setContent:function(){var e=this.tip(),d=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](d);e.removeClass("fade in top bottom left right")},hide:function(){var d=this,e=this.tip();e.removeClass("in");function f(){var g=setTimeout(function(){e.off(c.support.transition.end).detach()},500);e.one(c.support.transition.end,function(){clearTimeout(g);e.detach()})}c.support.transition&&this.$tip.hasClass("fade")?f():e.detach();return this},fixTitle:function(){var d=this.$element;if(d.attr("title")||typeof(d.attr("data-original-title"))!="string"){d.attr("data-original-title",d.attr("title")||"").removeAttr("title")}},hasContent:function(){return this.getTitle()},getPosition:function(d){return c.extend({},(d?{top:0,left:0}:this.$element.offset()),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var f,d=this.$element,e=this.options;f=d.attr("data-original-title")||(typeof e.title=="function"?e.title.call(d[0]):e.title);return f},tip:function(){return this.$tip=this.$tip||c(this.options.template)},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},toggle:function(f){var d=c(f.currentTarget)[this.type](this._options).data(this.type);d[d.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var a=c.fn.tooltip;c.fn.tooltip=function(d){return this.each(function(){var g=c(this),f=g.data("tooltip"),e=typeof d=="object"&&d;if(!f){g.data("tooltip",(f=new b(this,e)))}if(typeof d=="string"){f[d]()}})};c.fn.tooltip.Constructor=b;c.fn.tooltip.defaults={animation:true,placement:"top",selector:false,template:'
',trigger:"hover",title:"",delay:0,html:false};c.fn.tooltip.noConflict=function(){c.fn.tooltip=a;return this}}(window.jQuery);!function(c){var b=function(e,d){this.init("popover",e,d)};b.prototype=c.extend({},c.fn.tooltip.Constructor.prototype,{constructor:b,setContent:function(){var f=this.tip(),e=this.getTitle(),d=this.getContent();f.find(".popover-title")[this.options.html?"html":"text"](e);f.find(".popover-content")[this.options.html?"html":"text"](d);f.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var e,d=this.$element,f=this.options;e=d.attr("data-content")||(typeof f.content=="function"?f.content.call(d[0]):f.content);return e},tip:function(){if(!this.$tip){this.$tip=c(this.options.template)}return this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var a=c.fn.popover;c.fn.popover=function(d){return this.each(function(){var g=c(this),f=g.data("popover"),e=typeof d=="object"&&d;if(!f){g.data("popover",(f=new b(this,e)))}if(typeof d=="string"){f[d]()}})};c.fn.popover.Constructor=b;c.fn.popover.defaults=c.extend({},c.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'

'});c.fn.popover.noConflict=function(){c.fn.popover=a;return this}}(window.jQuery);!function(c){function b(g,f){var h=c.proxy(this.process,this),d=c(g).is("body")?c(window):c(g),e;this.options=c.extend({},c.fn.scrollspy.defaults,f);this.$scrollElement=d.on("scroll.scroll-spy.data-api",h);this.selector=(this.options.target||((e=c(g).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""))||"")+" .nav li > a";this.$body=c("body");this.refresh();this.process()}b.prototype={constructor:b,refresh:function(){var d=this,e;this.offsets=c([]);this.targets=c([]);e=this.$body.find(this.selector).map(function(){var g=c(this),f=g.data("target")||g.attr("href"),h=/^#\w/.test(f)&&c(f);return(h&&h.length&&[[h.position().top+d.$scrollElement.scrollTop(),f]])||null}).sort(function(g,f){return g[0]-f[0]}).each(function(){d.offsets.push(this[0]);d.targets.push(this[1])})},process:function(){var j=this.$scrollElement.scrollTop()+this.options.offset,f=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,h=f-this.$scrollElement.height(),g=this.offsets,d=this.targets,k=this.activeTarget,e;if(j>=h){return k!=(e=d.last()[0])&&this.activate(e)}for(e=g.length;e--;){k!=d[e]&&j>=g[e]&&(!g[e+1]||j<=g[e+1])&&this.activate(d[e])}},activate:function(f){var e,d;this.activeTarget=f;c(this.selector).parent(".active").removeClass("active");d=this.selector+'[data-target="'+f+'"],'+this.selector+'[href="'+f+'"]';e=c(d).parent("li").addClass("active");if(e.parent(".dropdown-menu").length){e=e.closest("li.dropdown").addClass("active")}e.trigger("activate")}};var a=c.fn.scrollspy;c.fn.scrollspy=function(d){return this.each(function(){var g=c(this),f=g.data("scrollspy"),e=typeof d=="object"&&d;if(!f){g.data("scrollspy",(f=new b(this,e)))}if(typeof d=="string"){f[d]()}})};c.fn.scrollspy.Constructor=b;c.fn.scrollspy.defaults={offset:10};c.fn.scrollspy.noConflict=function(){c.fn.scrollspy=a;return this};c(window).on("load",function(){c('[data-spy="scroll"]').each(function(){var d=c(this);d.scrollspy(d.data())})})}(window.jQuery);!function(c){var b=function(d){this.element=c(d)};b.prototype={constructor:b,show:function(){var j=this.element,g=j.closest("ul:not(.dropdown-menu)"),f=j.attr("data-target"),h,d,i;if(!f){f=j.attr("href");f=f&&f.replace(/.*(?=#[^\s]*$)/,"")}if(j.parent("li").hasClass("active")){return}h=g.find(".active:last a")[0];i=c.Event("show",{relatedTarget:h});j.trigger(i);if(i.isDefaultPrevented()){return}d=c(f);this.activate(j.parent("li"),g);this.activate(d,d.parent(),function(){j.trigger({type:"shown",relatedTarget:h})})},activate:function(f,e,i){var d=e.find("> .active"),h=i&&c.support.transition&&d.hasClass("fade");function g(){d.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");f.addClass("active");if(h){f[0].offsetWidth;f.addClass("in")}else{f.removeClass("fade")}if(f.parent(".dropdown-menu")){f.closest("li.dropdown").addClass("active")}i&&i()}h?d.one(c.support.transition.end,g):g();d.removeClass("in")}};var a=c.fn.tab;c.fn.tab=function(d){return this.each(function(){var f=c(this),e=f.data("tab");if(!e){f.data("tab",(e=new b(this)))}if(typeof d=="string"){e[d]()}})};c.fn.tab.Constructor=b;c.fn.tab.noConflict=function(){c.fn.tab=a;return this};c(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(d){d.preventDefault();c(this).tab("show")})}(window.jQuery);!function(b){var c=function(e,d){this.$element=b(e);this.options=b.extend({},b.fn.typeahead.defaults,d);this.matcher=this.options.matcher||this.matcher;this.sorter=this.options.sorter||this.sorter;this.highlighter=this.options.highlighter||this.highlighter;this.updater=this.options.updater||this.updater;this.source=this.options.source;this.$menu=b(this.options.menu);this.shown=false;this.listen()};c.prototype={constructor:c,select:function(){var d=this.$menu.find(".active").attr("data-value");this.$element.val(this.updater(d)).change();return this.hide()},updater:function(d){return d},show:function(){var d=b.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});this.$menu.insertAfter(this.$element).css({top:d.top+d.height,left:d.left}).show();this.shown=true;return this},hide:function(){this.$menu.hide();this.shown=false;return this},lookup:function(e){var d;this.query=this.$element.val();if(!this.query||this.query.length"+g+""})},render:function(d){var e=this;d=b(d).map(function(f,g){f=b(e.options.item).attr("data-value",g);f.find("a").html(e.highlighter(g));return f[0]});d.first().addClass("active");this.$menu.html(d);return this},next:function(e){var f=this.$menu.find(".active").removeClass("active"),d=f.next();if(!d.length){d=b(this.$menu.find("li")[0])}d.addClass("active")},prev:function(e){var f=this.$menu.find(".active").removeClass("active"),d=f.prev();if(!d.length){d=this.$menu.find("li").last()}d.addClass("active")},listen:function(){this.$element.on("blur",b.proxy(this.blur,this)).on("keypress",b.proxy(this.keypress,this)).on("keyup",b.proxy(this.keyup,this));if(this.eventSupported("keydown")){this.$element.on("keydown",b.proxy(this.keydown,this))}this.$menu.on("click",b.proxy(this.click,this)).on("mouseenter","li",b.proxy(this.mouseenter,this))},eventSupported:function(d){var e=d in this.$element;if(!e){this.$element.setAttribute(d,"return;");e=typeof this.$element[d]==="function"}return e},move:function(d){if(!this.shown){return}switch(d.keyCode){case 9:case 13:case 27:d.preventDefault();break;case 38:d.preventDefault();this.prev();break;case 40:d.preventDefault();this.next();break}d.stopPropagation()},keydown:function(d){this.suppressKeyPressRepeat=~b.inArray(d.keyCode,[40,38,9,13,27]);this.move(d)},keypress:function(d){if(this.suppressKeyPressRepeat){return}this.move(d)},keyup:function(d){switch(d.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown){return}this.select();break;case 27:if(!this.shown){return}this.hide();break;default:this.lookup()}d.stopPropagation();d.preventDefault()},blur:function(f){var d=this;setTimeout(function(){d.hide()},150)},click:function(d){d.stopPropagation();d.preventDefault();this.select()},mouseenter:function(d){this.$menu.find(".active").removeClass("active");b(d.currentTarget).addClass("active")}};var a=b.fn.typeahead;b.fn.typeahead=function(d){return this.each(function(){var g=b(this),f=g.data("typeahead"),e=typeof d=="object"&&d;if(!f){g.data("typeahead",(f=new c(this,e)))}if(typeof d=="string"){f[d]()}})};b.fn.typeahead.defaults={source:[],items:8,menu:'',item:'
  • ',minLength:1};b.fn.typeahead.Constructor=c;b.fn.typeahead.noConflict=function(){b.fn.typeahead=a;return this};b(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(f){var d=b(this);if(d.data("typeahead")){return}f.preventDefault();d.typeahead(d.data())})}(window.jQuery);!function(c){var b=function(e,d){this.options=c.extend({},c.fn.affix.defaults,d);this.$window=c(window).on("scroll.affix.data-api",c.proxy(this.checkPosition,this)).on("click.affix.data-api",c.proxy(function(){setTimeout(c.proxy(this.checkPosition,this),1)},this));this.$element=c(e);this.checkPosition()};b.prototype.checkPosition=function(){if(!this.$element.is(":visible")){return}var h=c(document).height(),j=this.$window.scrollTop(),d=this.$element.offset(),k=this.options.offset,f=k.bottom,g=k.top,i="affix affix-top affix-bottom",e;if(typeof k!="object"){f=g=k}if(typeof g=="function"){g=k.top()}if(typeof f=="function"){f=k.bottom()}e=this.unpin!=null&&(j+this.unpin<=d.top)?false:f!=null&&(d.top+this.$element.height()>=h-f)?"bottom":g!=null&&j<=g?"top":false;if(this.affixed===e){return}this.affixed=e;this.unpin=e=="bottom"?d.top-j:null;this.$element.removeClass(i).addClass("affix"+(e?"-"+e:""))};var a=c.fn.affix;c.fn.affix=function(d){return this.each(function(){var g=c(this),f=g.data("affix"),e=typeof d=="object"&&d;if(!f){g.data("affix",(f=new b(this,e)))}if(typeof d=="string"){f[d]()}})};c.fn.affix.Constructor=b;c.fn.affix.defaults={offset:0};c.fn.affix.noConflict=function(){c.fn.affix=a;return this};c(window).on("load",function(){c('[data-spy="affix"]').each(function(){var e=c(this),d=e.data();d.offset=d.offset||{};d.offsetBottom&&(d.offset.bottom=d.offsetBottom);d.offsetTop&&(d.offset.top=d.offsetTop);e.affix(d)})})}(window.jQuery);(function(c){function a(H,q,e,y){function B(){I.afterLoaded();I.settings.hideFramesUntilPreloaded&&I.settings.preloader&&I.sequence.children("li").show();if(I.settings.preloader){if(I.settings.hidePreloaderUsingCSS&&I.transitionsSupported){I.prependPreloadingCompleteTo=I.settings.prependPreloadingComplete==1?I.settings.preloader:c(I.settings.prependPreloadingComplete);I.prependPreloadingCompleteTo.addClass("preloading-complete");setTimeout(A,I.settings.hidePreloaderDelay)}else{I.settings.preloader.fadeOut(I.settings.hidePreloaderDelay,function(){clearInterval(I.defaultPreloader);A()})}}else{A()}}function A(){c(I.settings.preloader).remove();I.settings.nextButton=I.init.uiElements(I.settings.nextButton,".next");I.settings.prevButton=I.init.uiElements(I.settings.prevButton,".prev");I.settings.pauseButton=I.init.uiElements(I.settings.pauseButton,".pause");I.settings.nextButton!==undefined&&I.settings.nextButton!==!1&&I.settings.showNextButtonOnInit&&I.settings.nextButton.show();I.settings.prevButton!==undefined&&I.settings.prevButton!==!1&&I.settings.showPrevButtonOnInit&&I.settings.prevButton.show();I.settings.pauseButton!==undefined&&I.settings.pauseButton!==!1&&I.settings.pauseButton.show();if(I.settings.pauseIcon!==!1){I.settings.pauseIcon=I.init.uiElements(I.settings.pauseIcon,".pause-icon");I.settings.pauseIcon!==undefined&&I.settings.pauseIcon.hide()}else{I.settings.pauseIcon=undefined}I.hasTouch&&(I.settings.calculatedSwipeThreshold=I.container.width()*(I.settings.swipeThreshold/100));I.nextFrameID=I.settings.startingFrameID;I.nextFrame=I.sequence.children("li:nth-child("+I.nextFrameID+")");if(I.settings.hashTags){I.sequence.children("li").each(function(){I.frameHashID.push(c(this).attr(I.getHashTagFrom))});I.currentHashTag=location.hash.replace("#","");if(I.currentHashTag===undefined||I.currentHashTag===""){I.nextFrameID=I.settings.startingFrameID}else{I.frameHashIndex=c.inArray(I.currentHashTag,I.frameHashID);I.frameHashIndex!==-1?I.nextFrameID=I.frameHashIndex+1:I.nextFrameID=I.settings.startingFrameID}}I.nextFrame=I.sequence.children("li:nth-child("+I.nextFrameID+")");I.nextFrameChildren=I.nextFrame.children();I.direction;I.sequence.css({width:"100%",height:"100%",position:"relative"});I.sequence.children("li").css({width:"100%",height:"100%",position:"absolute"});if(I.transitionsSupported){if(!I.settings.animateStartingFrameIn){I.currentFrame=I.nextFrame.addClass("current-frame");I.settings.moveActiveFrameToTop&&I.currentFrame.css("z-index",I.numberOfFrames);I.currentFrameChildren=I.currentFrame.children();I.currentFrameID=I.nextFrameID;I.modifyElements(I.currentFrameChildren,"0s");I.currentFrameChildren.addClass("animate-in");if(I.settings.hashChangesOnFirstFrame){I.currentHashTag=I.currentFrame.attr(I.getHashTagFrom);document.location.hash="#"+I.currentHashTag}setTimeout(function(){I.modifyElements(I.currentFrameChildren,"")},100);I.startAutoPlay(I.settings.autoPlayDelay)}else{if(I.settings.reverseAnimationsWhenNavigatingBackwards&&I.settings.autoPlayDirection-1&&I.settings.animateStartingFrameIn){I.modifyElements(I.nextFrameChildren,"0s");I.nextFrameChildren.addClass("animate-out");I.goTo(I.nextFrameID,-1)}else{I.goTo(I.nextFrameID,1)}}}else{I.container.addClass("sequence-fallback");I.currentFrame=I.nextFrame;I.currentFrame.addClass("current-frame");I.beforeNextFrameAnimatesIn();I.afterNextFrameAnimatesIn();if(I.settings.hashChangesOnFirstFrame){I.currentHashTag=I.currentFrame.attr(I.getHashTagFrom);document.location.hash="#"+I.currentHashTag}I.currentFrameChildren=I.currentFrame.children();I.currentFrameID=I.nextFrameID;I.sequence.children("li").children().addClass("animate-in");I.sequence.children(":not(li:nth-child("+I.nextFrameID+"))").css({display:"none",opacity:0});I.startAutoPlay(I.settings.autoPlayDelay)}I.settings.nextButton!==undefined&&I.settings.nextButton.click(function(){I.next()});I.settings.prevButton!==undefined&&I.settings.prevButton.click(function(){I.prev()});I.settings.pauseButton!==undefined&&I.settings.pauseButton.click(function(){I.pause(!0)});if(I.settings.keyNavigation){var f={left:37,right:39};function h(l,m){var i;for(keyCodes in m){keyCodes==="left"||keyCodes==="right"?i=f[keyCodes]:i=keyCodes;l===parseFloat(i)&&I.initCustomKeyEvent(m[keyCodes])}}c(document).keydown(function(l){var i=String.fromCharCode(l.keyCode);if(i>0&&i<=I.numberOfFrames&&I.settings.numericKeysGoToFrames){I.nextFrameID=i;I.goTo(I.nextFrameID)}h(l.keyCode,I.settings.keyEvents);h(l.keyCode,I.settings.customKeyEvents)})}I.settings.pauseOnHover&&I.settings.autoPlay&&I.sequence.on({mouseenter:function(){I.isHardPaused||I.pause()},mouseleave:function(){I.isHardPaused||I.unpause()}});I.settings.hashTags&&c(window).hashchange(function(){newTag=location.hash.replace("#","");if(I.currentHashTag!==newTag){I.currentHashTag=newTag;I.frameHashIndex=c.inArray(I.currentHashTag,I.frameHashID);if(I.frameHashIndex!==-1){I.nextFrameID=I.frameHashIndex+1;I.goTo(I.nextFrameID)}}});if(I.settings.swipeNavigation&&I.hasTouch){var g={touchstartX:-1,touchstartY:-1,touchmoveX:-1,touchmoveY:-1};I.sequence.on("touchstart touchmove touchend",function(l){I.settings.swipePreventsDefault&&l.preventDefault();switch(l.originalEvent.type){case"touchmove":case"touchstart":g[l.originalEvent.type+"X"]=l.originalEvent.touches[0].pageX;g[l.originalEvent.type+"Y"]=l.originalEvent.touches[0].pageY;break;case"touchend":if(g.touchmoveX!==-1){var i=g.touchmoveX-g.touchstartX,m=g.touchmoveY-g.touchstartY;Math.abs(i)>Math.abs(m)&&i>I.settings.calculatedSwipeThreshold?I.initCustomKeyEvent(I.settings.swipeEvents.right):Math.abs(i)>Math.abs(m)&&Math.abs(i)>I.settings.calculatedSwipeThreshold?I.initCustomKeyEvent(I.settings.swipeEvents.left):Math.abs(m)>Math.abs(i)&&m>I.settings.calculatedSwipeThreshold?I.initCustomKeyEvent(I.settings.swipeEvents.down):Math.abs(m)>Math.abs(i)&&Math.abs(m)>I.settings.calculatedSwipeThreshold&&I.initCustomKeyEvent(I.settings.swipeEvents.up);g={touchstartX:-1,touchstartY:-1,touchmoveX:-1,touchmoveY:-1}}break;default:}})}c(window).resize(function(){I.settings.calculatedSwipeThreshold=I.container.width()*(I.settings.swipeThreshold/100)})}var I=this;I.container=c(H),I.sequence=I.container.children("ul");try{Modernizr.prefixed;if(Modernizr.prefixed===undefined){throw"undefined"}}catch(k){y.modernizr()}var G={WebkitTransition:"-webkit-",MozTransition:"-moz-",OTransition:"-o-",msTransition:"-ms-",transition:""},E={WebkitTransition:"webkitTransitionEnd webkitAnimationEnd",MozTransition:"transitionend animationend",OTransition:"otransitionend oanimationend",msTransition:"MSTransitionEnd MSAnimationEnd",transition:"transitionend animationend"};I.prefix=G[Modernizr.prefixed("transition")],I.transitionEnd=E[Modernizr.prefixed("transition")],I.transitionProperties={},I.numberOfFrames=I.sequence.children("li").length,I.transitionsSupported=I.prefix!==undefined?!0:!1,I.hasTouch="ontouchstart" in window?!0:!1,I.autoPlayTimer,I.isPaused=!1,I.isHardPaused=!1,I.defaultPreloader,I.init={preloader:function(f){I.prependTo=I.settings.prependPreloader==1?I.container:I.settings.prependPreloader;switch(f){case !0:case undefined:y.defaultPreloader(I.prependTo,I.transitionsSupported,I.prefix);I.transitionsSupported||I.preloaderFallback();return c(".sequence-preloader");case !1:break;default:this.CSSSelectorToHTML(f);return c(f)}},uiElements:function(f,g){switch(f){case !1:return undefined;case !0:g===".sequence-preloader"&&y.defaultPreloader(I.container,I.transitionsSupported,I.prefix);return c(g);default:return c(f)}}};I.paused=function(){},I.unpaused=function(){},I.beforeNextFrameAnimatesIn=function(){},I.afterNextFrameAnimatesIn=function(){},I.beforeCurrentFrameAnimatesOut=function(){},I.afterCurrentFrameAnimatesOut=function(){},I.beforeFirstFrameAnimatesIn=function(){},I.afterFirstFrameAnimatesIn=function(){},I.beforeLastFrameAnimatesIn=function(){},I.afterLastFrameAnimatesIn=function(){},I.afterLoaded=function(){};I.settings=c.extend({},e,q),I.settings.preloader=I.init.uiElements(I.settings.preloader,".sequence-preloader");I.firstFrame=I.settings.animateStartingFrameIn?!0:!1;I.settings.unpauseDelay=I.settings.unpauseDelay===null?I.settings.autoPlayDelay:I.settings.unpauseDelay;I.currentHashTag;I.getHashTagFrom=I.settings.hashDataAttribute?"data-sequence-hashtag":"id";I.frameHashID=[];I.settings.hideFramesUntilPreloaded&&I.settings.preloader&&I.sequence.children("li").hide();I.prefix==="-o-"&&(I.transitionsSupported=y.operaTest());I.modifyElements(I.sequence.children("li").children(),"0s");I.sequence.children("li").children().removeClass("animate-in");var x=I.settings.preloadTheseFrames.length,D=I.settings.preloadTheseImages.length;if(!I.settings.preloader||x===0&&D===0){c(window).bind("load",function(){B();c(this).unbind("load")})}else{function z(g,l){var h=[];if(!l){for(var f=g;f>0;f--){I.sequence.children("li:nth-child("+I.settings.preloadTheseFrames[f-1]+")").find("img").each(function(){h.push(c(this)[0])})}}else{for(var f=g;f>0;f--){h.push(c("body").find('img[src="'+I.settings.preloadTheseImages[f-1]+'"]')[0])}}return h}var j=z(x),C=z(D,!0),F=c(j.concat(C)),w=F.length;F.length?F.bind("load",function(){--w<=0&&B()}).each(function(){if(this.complete||this.complete===undefined){var f=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";this.src=f}}):B()}}a.prototype={preloaderFallback:function(){function f(){g=g===1?0:1;c(".sequence-preloader img:nth-child(1)").animate({opacity:g},100);c(".sequence-preloader img:nth-child(2)").animate({opacity:g},350);c(".sequence-preloader img:nth-child(3)").animate({opacity:g},600)}var e=this,g=0;f();e.defaultPreloader=setInterval(function(){f()},600)},initCustomKeyEvent:function(g){var f=this;switch(g){case"next":f.next();break;case"prev":f.prev();break;case"pause":f.pause(!0)}},modifyElements:function(g,f){var h=this;g.css(h.prefixCSS(h.prefix,{"transition-duration":f,"transition-delay":f}))},prefixCSS:function(g,f){var h={};for(property in f){h[g+property]=f[property]}return h},setTransitionProperties:function(e){var f=this;f.modifyElements(f.frameChildren,"");f.frameChildren.each(function(){f.transitionProperties["transition-duration"]=c(this).css(f.prefix+"transition-duration");f.transitionProperties["transition-delay"]=c(this).css(f.prefix+"transition-delay");c(this).css(f.prefixCSS(f.prefix,f.transitionProperties))})},startAutoPlay:function(g){var f=this;if(f.settings.autoPlay&&!f.isPaused){f.stopAutoPlay();f.autoPlayTimer=setTimeout(function(){f.settings.autoPlayDirection===1?f.next():f.prev()},g)}},stopAutoPlay:function(){var f=this;clearTimeout(f.autoPlayTimer)},pause:function(g){var f=this;if(!f.isPaused){if(f.settings.pauseButton!==undefined){f.settings.pauseButton.addClass("paused");f.settings.pauseIcon!==undefined&&f.settings.pauseIcon.show()}f.paused();f.isPaused=!0;f.isHardPaused=g?!0:!1;f.stopAutoPlay()}else{f.unpause()}},unpause:function(g){var f=this;if(f.settings.pauseButton!==undefined){f.settings.pauseButton.removeClass("paused");f.settings.pauseIcon!==undefined&&f.settings.pauseIcon.hide()}f.unpaused();f.isPaused=!1;f.isHardPaused=!1;f.startAutoPlay(f.settings.unpauseDelay)},next:function(){var f=this;if(!f.active&&(f.settings.cycle||!f.settings.cycle&&f.currentFrameID!==f.numberOfFrames)){f.nextFrameID=f.currentFrameID!==f.numberOfFrames?f.currentFrameID+1:1;f.goTo(f.nextFrameID,1)}},prev:function(){var f=this;if(!f.active&&(f.settings.cycle||!f.settings.cycle&&f.currentFrameID!==1)){f.nextFrameID=f.currentFrameID===1?f.numberOfFrames:f.currentFrameID-1;f.goTo(f.nextFrameID,-1)}},goTo:function(k,g){var m=this;k=parseFloat(k);k===m.numberOfFrames?m.beforeLastFrameAnimatesIn():k===1&&m.beforeFirstFrameAnimatesIn();if(k===m.currentFrameID){return !1}if(!m.active){m.active=!0;m.currentFrame=m.sequence.children(".current-frame");m.nextFrame=m.sequence.children("li:nth-child("+k+")");g===undefined?m.direction=k>m.currentFrameID?1:-1:m.direction=g;m.frameChildren=m.currentFrame.children();m.nextFrameChildren=m.nextFrame.children();if(m.transitionsSupported){if(m.currentFrame.length!==0){m.beforeCurrentFrameAnimatesOut();m.animateOut(m.direction)}if(!m.firstFrame){switch(m.settings.transitionThreshold){case !0:m.waitForAnimationsToComplete(m.currentFrame,m.frameChildren,"out");break;case !1:m.animateIn(m.direction);break;default:setTimeout(function(){m.animateIn(m.direction)},m.settings.transitionThreshold)}}else{m.animateIn(m.direction);m.firstFrame=!1}}else{function j(){m.currentFrame=m.nextFrame;m.setHashTag();m.currentFrameID=m.currentFrame.index()+1;m.active=!1;m.startAutoPlay(m.settings.autoPlayDelay)}m.beforeCurrentFrameAnimatesOut();switch(m.settings.fallback.theme){case"fade":m.sequence.children("li").css({position:"relative"});m.currentFrame.animate({opacity:0},m.settings.fallback.speed,function(){m.currentFrame.css({display:"none","z-index":"1"});m.currentFrame.removeClass("current-frame");m.beforeNextFrameAnimatesIn();m.nextFrame.addClass("current-frame").css({display:"block","z-index":m.numberOfFrames}).animate({opacity:1},500,function(){m.afterNextFrameAnimatesIn()});j()});m.sequence.children("li").css({position:"relative"});break;case"slide":default:var f={},h={},l={};if(m.direction===1){f.left="-100%";h.left="100%"}else{f.left="100%";h.left="-100%"}l.left="0%";l.opacity=1;m.currentFrame.removeClass("current-frame").animate(f,m.settings.fallback.speed);m.beforeNextFrameAnimatesIn();m.nextFrame.addClass("current-frame").show().css(h).animate(l,m.settings.fallback.speed,function(){j();m.afterNextFrameAnimatesIn()})}}}},animateOut:function(g){var f=this;f.settings.moveActiveFrameToTop&&f.currentFrame.css("z-index",1);f.currentFrame.removeClass("current-frame");f.nextFrame.addClass("next-frame");if(!f.settings.reverseAnimationsWhenNavigatingBackwards||g===1){f.modifyElements(f.nextFrameChildren,"0s");f.nextFrameChildren.removeClass("animate-out");f.modifyElements(f.frameChildren,"");f.frameChildren.addClass("animate-out").removeClass("animate-in")}if(f.settings.reverseAnimationsWhenNavigatingBackwards&&g===-1){f.modifyElements(f.nextFrameChildren,"0s");f.nextFrameChildren.addClass("animate-out");f.setTransitionProperties(f.frameChildren);f.frameChildren.removeClass("animate-in")}f.settings.transitionThreshold===!0&&f.waitForAnimationsToComplete(f.currentFrame,f.currentFrame.children(),"out",!0)},animateIn:function(g){var f=this;f.active=!0;f.currentFrame.unbind(f.transitionEnd);f.currentFrame=f.nextFrame;g===1?f.currentFrameID=f.currentFrameID!==f.numberOfFrames?f.currentFrameID+1:1:f.currentFrameID=f.currentFrameID!==1?f.currentFrameID-1:f.numberOfFrames;f.nextFrameChildren=f.nextFrame.children();f.frameChildren=f.currentFrame.children();f.beforeNextFrameAnimatesIn();f.settings.moveActiveFrameToTop&&f.nextFrame.css({"z-index":f.numberOfFrames});!f.settings.reverseAnimationsWhenNavigatingBackwards||g===1?setTimeout(function(){f.modifyElements(f.frameChildren,"");f.frameChildren.addClass("animate-in");f.waitForAnimationsToComplete(f.nextFrame,f.nextFrameChildren,"in");f.settings.transitionThreshold!==!0&&f.afterCurrentFrameAnimatesOut!=="function () {}"&&f.waitForAnimationsToComplete(f.currentFrame,f.currentFrame.children(),"out")},50):f.settings.reverseAnimationsWhenNavigatingBackwards&&g===-1&&setTimeout(function(){f.setTransitionProperties(f.frameChildren);f.frameChildren.addClass("animate-in").removeClass("animate-out");f.waitForAnimationsToComplete(f.nextFrame,f.nextFrameChildren,"in");f.settings.transitionThreshold!==!0&&f.afterCurrentFrameAnimatesOut!="function () {}"&&f.waitForAnimationsToComplete(f.currentFrame,f.currentFrame.children(),"out")},50)},waitForAnimationsToComplete:function(f,k,h,e){var g=this;if(h==="out"){var j=function(){g.active=!1;f.unbind(g.transitionEnd);g.afterCurrentFrameAnimatesOut();e===!0&&g.animateIn(g.direction)}}else{if(h==="in"){var j=function(){f.unbind(g.transitionEnd);g.afterNextFrameAnimatesIn();g.setHashTag();g.currentFrameID=g.currentFrame.index()+1;g.currentFrameID===g.numberOfFrames?g.afterLastFrameAnimatesIn():g.currentFrameID===1&&g.afterFirstFrameAnimatesIn();g.nextFrame.removeClass("next-frame").addClass("current-frame");g.active=!1;g.isHardPaused||g.startAutoPlay(g.settings.autoPlayDelay)}}}k.each(function(){c(this).data("animationEnded",!1)});g.currentFrame.bind(g.transitionEnd,function(i){c(i.target).data("animationEnded",!0);var l=!0;k.each(function(){c(this).data("animationEnded")===!1&&(l=!1)});l&&j()})},setHashTag:function(){var e=this;if(e.settings.hashTags){e.currentHashTag=e.currentFrame.attr(e.getHashTagFrom);e.frameHashIndex=c.inArray(e.currentHashTag,e.frameHashID);if(e.frameHashIndex!==-1&&(e.settings.hashChangesOnFirstFrame||!e.firstFrame)){e.nextFrameID=e.frameHashIndex+1;document.location.hash="#"+e.currentHashTag}else{e.nextFrameID=e.settings.startingFrameID;e.firstFrame=!1}}}};c.fn.sequence=function(e){var f=this;return f.each(function(){var g=new a(c(this),e,b,d);c(this).data("sequence",g)})};var d={modernizr:function(){window.Modernizr=function(af,M,X){function R(f){I.cssText=f}function ab(g,f){return R(prefixes.join(g+";")+(f||""))}function P(g,f){return typeof g===f}function W(g,f){return !!~(""+g).indexOf(f)}function J(k,g){for(var h in k){var f=k[h];if(!W(f,"-")&&I[f]!==X){return g=="pfx"?f:!0}}return !1}function aj(k,g,h){for(var f in k){var l=g[k[f]];if(l!==X){return h===!1?k[f]:P(l,"function")?l.bind(h||g):l}}return !1}function ae(k,g,l){var h=k.charAt(0).toUpperCase()+k.slice(1),f=(k+" "+ai.join(h+" ")+h).split(" ");return P(g,"string")||P(g,"undefined")?J(f,g):(f=(k+" "+H.join(h+" ")+h).split(" "),aj(f,g,l))}var Z="2.6.1",ah={},ac=M.documentElement,V="modernizr",ag=M.createElement(V),I=ag.style,Y,ad={}.toString,F="Webkit Moz O ms",ai=F.split(" "),H=F.toLowerCase().split(" "),K={svg:"http://www.w3.org/2000/svg"},q={},G={},j={},B=[],Q=B.slice,aa,D={}.hasOwnProperty,U;!P(D,"undefined")&&!P(D.call,"undefined")?U=function(g,f){return D.call(g,f)}:U=function(g,f){return f in g&&P(g.constructor.prototype[f],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(h){var f=self;if(typeof f!="function"){throw new TypeError}var i=Q.call(arguments,1),g=function(){if(self instanceof g){var e=function(){};e.prototype=f.prototype;var k=new e,l=f.apply(k,i.concat(Q.call(arguments)));return Object(l)===l?l:k}return f.apply(h,i.concat(Q.call(arguments)))};return g}),q.svg=function(){return !!M.createElementNS&&!!M.createElementNS(K.svg,"svg").createSVGRect};for(var z in q){U(q,z)&&(aa=z.toLowerCase(),ah[aa]=q[z](),B.push((ah[aa]?"":"no-")+aa))}return ah.addTest=function(h,f){if(typeof h=="object"){for(var g in h){U(h,g)&&ah.addTest(g,h[g])}}else{h=h.toLowerCase();if(ah[h]!==X){return ah}f=typeof f=="function"?f():f,enableClasses&&(ac.className+=" "+(f?"":"no-")+h),ah[h]=f}return ah},R(""),ag=Y=null,ah._version=Z,ah._domPrefixes=H,ah._cssomPrefixes=ai,ah.testProp=function(f){return J([f])},ah.testAllProps=ae,ah.prefixed=function(g,f,h){return f?ae(g,f,h):ae(g,"pfx")},ah}(self,self.document)},defaultPreloader:function(f,h,g){var e='
    ';c("head").append("");f.prepend(e);if(!Modernizr.svg&&!h){c(".sequence-preloader").prepend('
    ');setInterval(function(){c(".sequence-preloader .circle").fadeToggle(500)},500)}else{h||setInterval(function(){c(".sequence-preloader").fadeToggle(500)},500)}},operaTest:function(){c("body").append('');var e=c("#sequence-opera-test");e.css("-o-transition","1s");return e.css("-o-transition")!="1s"?!1:!0}},b={startingFrameID:1,cycle:!0,animateStartingFrameIn:!1,transitionThreshold:1000,reverseAnimationsWhenNavigatingBackwards:!0,moveActiveFrameToTop:!0,autoPlay:!0,autoPlayDirection:1,autoPlayDelay:5000,nextButton:!1,showNextButtonOnInit:!0,prevButton:!1,showPrevButtonOnInit:!0,pauseButton:!1,unpauseDelay:null,pauseOnHover:!0,pauseIcon:!1,preloader:!1,preloadTheseFrames:[1],preloadTheseImages:[],hideFramesUntilPreloaded:!0,prependPreloadingComplete:!0,hidePreloaderUsingCSS:!0,hidePreloaderDelay:0,keyNavigation:!0,numericKeysGoToFrames:!0,keyEvents:{left:"prev",right:"next"},customKeyEvents:{},swipeNavigation:!0,swipeThreshold:15,swipePreventsDefault:!1,swipeEvents:{left:"prev",right:"next",up:!1,down:!1},hashTags:!1,hashDataAttribute:!1,hashChangesOnFirstFrame:!1,fallback:{theme:"slide",speed:500}}})(jQuery);(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}}(function(a){a.fn.tweet=function(d){var r=a.extend({username:null,list:null,favorites:false,query:null,avatar_size:null,count:3,fetch:null,page:1,retweets:true,intro_text:null,outro_text:null,join_text:null,auto_join_text_default:" I said, ",auto_join_text_ed:" I ",auto_join_text_ing:" I am ",auto_join_text_reply:" I replied to ",auto_join_text_url:" I was looking at ",loading_text:null,refresh_interval:null,twitter_url:"twitter.com",twitter_api_url:"api.twitter.com",twitter_search_url:"search.twitter.com",template:"{avatar}{time}{join} {text}",comparator:function(s,o){return o.tweet_time-s.tweet_time},filter:function(o){return true}},d);var b=/\b((?:https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi;function n(t,u){if(typeof t==="string"){var o=t;for(var s in u){var v=u[s];o=o.split("{"+s+"}").join(v===null?"":v)}return o}else{return t(u)}}a.extend({tweet:{t:n}});function g(s,o){return function(){var t=[];this.each(function(){t.push(this.replace(s,o))});return a(t)}}function m(o){return o.replace(//g,"^>")}a.fn.extend({linkUser:g(/(^|[\W])@(\w+)/gi,'$1@$2'),linkHash:g(/(?:^| )[\#]+([\w\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0600-\u06ff]+)/gi,' #$1'),makeHeart:g(/(<)+[3]/gi,"")});function f(s,o){return s.replace(b,function(v){var u=(/^[a-z]+:/i).test(v)?v:"http://"+v;var x=v;for(var w=0;w'+m(x)+""})}function l(o){return Date.parse(o.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3"))}function q(o){var t=function(v){return parseInt(v,10)};var s=new Date();var u=t((s.getTime()-o)/1000);if(u<1){u=0}return{days:t(u/86400),hours:t(u/3600),minutes:t(u/60),seconds:t(u)}}function c(o){if(o.days>2){return"about "+o.days+" days ago"}if(o.hours>24){return"about a day ago"}if(o.hours>2){return"about "+o.hours+" hours ago"}if(o.minutes>45){return"about an hour ago"}if(o.minutes>2){return"about "+o.minutes+" minutes ago"}if(o.seconds>1){return"about "+o.seconds+" seconds ago"}return"just now"}function i(o){if(o.match(/^(@([A-Za-z0-9-_]+)) .*/i)){return r.auto_join_text_reply}else{if(o.match(b)){return r.auto_join_text_url}else{if(o.match(/^((\w+ed)|just) .*/im)){return r.auto_join_text_ed}else{if(o.match(/^(\w*ing) .*/i)){return r.auto_join_text_ing}else{return r.auto_join_text_default}}}}}function e(){var s=("https:"==document.location.protocol?"https:":"http:");var o=(r.fetch===null)?r.count:r.fetch;var u="&include_entities=1&callback=?";if(r.list){return s+"//"+r.twitter_api_url+"/1/"+r.username[0]+"/lists/"+r.list+"/statuses.json?page="+r.page+"&per_page="+o+u}else{if(r.favorites){return s+"//"+r.twitter_api_url+"/1/favorites.json?screen_name="+r.username[0]+"&page="+r.page+"&count="+o+u}else{if(r.query===null&&r.username.length==1){return s+"//"+r.twitter_api_url+"/1/statuses/user_timeline.json?screen_name="+r.username[0]+"&count="+o+(r.retweets?"&include_rts=1":"")+"&page="+r.page+u}else{var t=(r.query||"from:"+r.username.join(" OR from:"));return s+"//"+r.twitter_search_url+"/search.json?&q="+encodeURIComponent(t)+"&rpp="+o+"&page="+r.page+u}}}}function p(o,s){if(s){return("user" in o)?o.user.profile_image_url_https:p(o,false).replace(/^http:\/\/[a-z0-9]{1,3}\.twimg\.com\//,"https://s3.amazonaws.com/twitter_production/")}else{return o.profile_image_url||o.user.profile_image_url}}function k(s){var t={};t.item=s;t.source=s.source;t.screen_name=s.from_user||s.user.screen_name;t.name=s.from_user_name||s.user.name;t.retweet=typeof(s.retweeted_status)!="undefined";t.tweet_time=l(s.created_at);t.join_text=r.join_text=="auto"?i(s.text):r.join_text;t.tweet_id=s.id_str;t.twitter_base="http://"+r.twitter_url+"/";t.user_url=t.twitter_base+t.screen_name;t.tweet_url=t.user_url+"/status/"+t.tweet_id;t.reply_url=t.twitter_base+"intent/tweet?in_reply_to="+t.tweet_id;t.retweet_url=t.twitter_base+"intent/retweet?tweet_id="+t.tweet_id;t.favorite_url=t.twitter_base+"intent/favorite?tweet_id="+t.tweet_id;t.retweeted_screen_name=t.retweet&&s.retweeted_status.user.screen_name;t.tweet_relative_time=c(q(t.tweet_time));t.entities=s.entities?(s.entities.urls||[]).concat(s.entities.media||[]):[];t.tweet_raw_text=t.retweet?("RT @"+t.retweeted_screen_name+" "+s.retweeted_status.text):s.text;t.tweet_text=a([f(t.tweet_raw_text,t.entities)]).linkUser().linkHash()[0];t.retweeted_tweet_text=a([f(s.text,t.entities)]).linkUser().linkHash()[0];t.tweet_text_fancy=a([t.tweet_text]).makeHeart()[0];t.avatar_size=r.avatar_size;t.avatar_url=p(t.retweet?s.retweeted_status:s,(document.location.protocol==="https:"));t.avatar_screen_name=t.retweet?t.retweeted_screen_name:t.screen_name;t.avatar_profile_url=t.twitter_base+t.avatar_screen_name;t.user=n('{screen_name}',t);t.join=r.join_text?n('{join_text}',t):"";t.avatar=t.avatar_size?n('{avatar_screen_name}\'s avatar',t):"";t.time=n('{tweet_relative_time}',t);t.text=n('{tweet_text_fancy}',t);t.retweeted_text=n('{retweeted_tweet_text}',t);t.reply_action=n('reply',t);t.retweet_action=n('retweet',t);t.favorite_action=n('favorite',t);return t}function h(s,t){var o=a('
      ');o.append(a.map(t,function(u){return"
    • "+n(r.template,u)+"
    • "}).join("")).children("li:first").addClass("tweet_first").end().children("li:odd").addClass("tweet_even").end().children("li:even").addClass("tweet_odd");a(s).empty().append(o);if(r.intro_text){o.before('

      '+r.intro_text+"

      ")}if(r.outro_text){o.after('

      '+r.outro_text+"

      ")}a(s).trigger("loaded").trigger((t.length===0?"empty":"full"));if(r.refresh_interval){window.setTimeout(function(){a(s).trigger("tweet:load")},1000*r.refresh_interval)}}function j(o){var s=a('

      '+r.loading_text+"

      ");if(r.loading_text){a(o).not(":has(.tweet_list)").empty().append(s)}a.getJSON(e(),function(t){var u=a.map(t.results||t,k);u=a.grep(u,r.filter).sort(r.comparator).slice(0,r.count);a(o).trigger("tweet:retrieved",[u])})}return this.each(function(o,s){if(r.username&&typeof(r.username)=="string"){r.username=[r.username]}a(s).unbind("tweet:render").unbind("tweet:retrieved").unbind("tweet:load").bind({"tweet:load":function(){j(s)},"tweet:retrieved":function(t,u){a(s).trigger("tweet:render",[u])},"tweet:render":function(t,u){h(a(s),u)}}).trigger("tweet:load")})}})); /*! * GMAP3 Plugin for JQuery * Version : 5.0 * Date : 2012-11-01 * Licence : GPL v3 : http://www.gnu.org/licenses/gpl.html * Author : DEMONTE Jean-Baptiste * Contact : jbdemonte@gmail.com * Web site : http://gmap3.net * * Copyright (c) 2010-2012 Jean-Baptiste DEMONTE * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * - Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * - Neither the name of the author nor the names of its contributors * may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ (function(i,e){var q,x=0;function m(){if(!q){q={verbose:false,queryLimit:{attempt:5,delay:250,random:250},classes:{Map:google.maps.Map,Marker:google.maps.Marker,InfoWindow:google.maps.InfoWindow,Circle:google.maps.Circle,Rectangle:google.maps.Rectangle,OverlayView:google.maps.OverlayView,StreetViewPanorama:google.maps.StreetViewPanorama,KmlLayer:google.maps.KmlLayer,TrafficLayer:google.maps.TrafficLayer,BicyclingLayer:google.maps.BicyclingLayer,GroundOverlay:google.maps.GroundOverlay,StyledMapType:google.maps.StyledMapType,ImageMapType:google.maps.ImageMapType},map:{mapTypeId:google.maps.MapTypeId.ROADMAP,center:[46.578498,2.457275],zoom:2},overlay:{pane:"floatPane",content:"",offset:{x:0,y:0}},geoloc:{getCurrentPosition:{maximumAge:60000,timeout:5000}}}}}function G(K,J){return K!==e?K:"gmap3_"+(J?x+1:x++)}function B(N,J,L,O,M){if(J.todo.events||J.todo.onces){var K={id:O,data:J.todo.data,tag:J.todo.tag}}if(J.todo.events){i.each(J.todo.events,function(P,Q){google.maps.event.addListener(L,P,function(R){Q.apply(N,[M?M:L,R,K])})})}if(J.todo.onces){i.each(J.todo.onces,function(P,Q){google.maps.event.addListenerOnce(L,P,function(R){Q.apply(N,[M?M:L,R,K])})})}}function w(){var J=[];this.empty=function(){return !J.length};this.add=function(K){J.push(K)};this.get=function(){return J.length?J[0]:false};this.ack=function(){J.shift()}}function a(R,J,L){var P={},N=this,O,Q={latLng:{map:false,marker:false,infowindow:false,circle:false,overlay:false,getlatlng:false,getmaxzoom:false,getelevation:false,streetviewpanorama:false,getaddress:true},geoloc:{getgeoloc:true}};if(typeof L==="string"){L=K(L)}function K(T){var S={};S[T]={};return S}function M(){var S;for(S in L){if(S in P){continue}return S}}this.run=function(){var S,T;while(S=M()){if(typeof R[S]==="function"){O=S;T=i.extend(true,{},q[S]||{},L[S].options||{});if(S in Q.latLng){if(L[S].values){F(L[S].values,R,R[S],{todo:L[S],opts:T,session:P})}else{H(R,R[S],Q.latLng[S],{todo:L[S],opts:T,session:P})}}else{if(S in Q.geoloc){D(R,R[S],{todo:L[S],opts:T,session:P})}else{R[S].apply(R,[{todo:L[S],opts:T,session:P}])}}return}else{P[S]=null}}J.apply(R,[L,P])};this.ack=function(S){P[O]=S;N.run.apply(N,[])}}function d(L){var J,K=[];for(J in L){K.push(J)}return K}function v(L,O){var J={};if(L.todo){for(var K in L.todo){if((K!=="options")&&(K!=="values")){J[K]=L.todo[K]}}}var M,N=["data","tag","id","events","onces"];for(M=0;MX),at=U(),ar,aq,ap,aw,ax,av,au,ao=false,an,ay;af=false;if(aA>3){an=P();ao=an.getSouthWest().lng()1))}else{for(aq=ar;aq=0){return true}}return false}return i.inArray(Q,O)>=0}}}function J(O){return{id:O.id,name:O.name,object:O.obj,tag:O.tag,data:O.data}}this.add=function(Q,P,S,R){var O=Q.todo||{},T=G(O.id);if(!L[P]){L[P]=[]}if(T in M){this.clearById(T)}M[T]={obj:S,sub:R,name:P,id:T,tag:O.tag,data:O.data};L[P].push(T);return T};this.getById=function(Q,P,O){if(Q in M){if(P){return M[Q].sub}else{if(O){return J(M[Q])}}return M[Q].obj}return false};this.get=function(Q,S,O,R){var U,T,P=K(O);if(!L[Q]||!L[Q].length){return null}U=L[Q].length;while(U){U--;T=L[Q][S?U:L[Q].length-U-1];if(T&&M[T]){if(P&&!P(M[T].tag)){continue}return R?J(M[T]):M[T].obj}}return null};this.all=function(R,P,S){var O=[],Q=K(P),T=function(W){var U,V;for(U=0;U=0;O--){S=L[R][O];if(P(M[S].tag)){break}}}else{for(O=0;O=O.length){P.apply(J,[K]);return}H(M,function(Q){delete Q.todo;i.extend(O[L],Q);N.apply(M,[])},true,{todo:O[L]})}N()}function D(J,M,K){var L=false;if(navigator&&navigator.geolocation){navigator.geolocation.getCurrentPosition(function(N){if(L){return}L=true;K.latLng=new google.maps.LatLng(N.coords.latitude,N.coords.longitude);M.apply(J,[K])},function(){if(L){return}L=true;K.latLng=false;M.apply(J,[K])},K.opts.getCurrentPosition)}else{K.latLng=false;M.apply(J,[K])}}function A(R){var Q=this,S=new w(),T=new u(),L=null,N;this._plan=function(X){for(var W=0;W1){for(ae in Z){if(ae>ak&&ae<=af){ak=ae}}ag=Z[ak]}if(ag){ai=ag.offset||[-ag.width/2,-ag.height/2];aj=i.extend({},W);aj.options=i.extend({pane:"overlayLayer",content:ag.content?ag.content.replace("CLUSTER_COUNT",af):"",offset:{x:("x" in ai?ai.x:ai[0])||0,y:("y" in ai?ai.y:ai[1])||0}},W.options||{});ah=Q.overlay({todo:aj,opts:aj.options,latLng:k(ad)},true);aj.options.pane="floatShadow";aj.options.content=i(document.createElement("div")).width(ag.width+"px").height(ag.height+"px");shadow=Q.overlay({todo:aj,opts:aj.options,latLng:k(ad)},true);W.data={latLng:k(ad),markers:[]};i.each(ad.indexes,function(am,al){W.data.markers.push(ac.value(al));if(ac.marker(al)){ac.marker(al).setMap(null)}});B(R,{todo:W},shadow,e,{main:ah,shadow:shadow});ac.store(ad,ah,shadow)}else{i.each(ad.indexes,function(ao,an){if(ac.marker(an)){ac.marker(an).setMap(L)}else{var al=ac.todo(an),am=new q.classes.Marker(al.options);ac.setMarker(an,am);B(R,{todo:al},am,al.id)}})}});return ac}this.marker=function(Y){var W="values" in Y.todo,ab=!L;if(!W){Y.opts.position=Y.latLng||k(Y.opts.position);Y.todo.values=[{options:Y.opts}]}if(!Y.todo.values.length){M(Y,false);return}if(ab){J()}if(Y.todo.cluster&&!L.getBounds()){google.maps.event.addListenerOnce(L,"bounds_changed",function(){Q.marker.apply(Q,[Y])});return}if(Y.todo.cluster){var X,Z;if(Y.todo.cluster instanceof C){X=Y.todo.cluster;Z=T.getById(X.id(),true)}else{Z=U(Y.todo.cluster);X=new C(G(Y.todo.id,true),Z);T.add(Y,"clusterer",X,Z)}Z.beginUpdate();i.each(Y.todo.values,function(ad,ae){var ac=v(Y,ae);ac.options.position=ac.options.position?k(ac.options.position):k(ae);ac.options.map=L;if(ab){L.setCenter(ac.options.position);ab=false}Z.add(ac,ae)});Z.endUpdate();M(Y,X)}else{var aa=[];i.each(Y.todo.values,function(ad,ae){var ag,af,ac=v(Y,ae);ac.options.position=ac.options.position?k(ac.options.position):k(ae);ac.options.map=L;if(ab){L.setCenter(ac.options.position);ab=false}af=new q.classes.Marker(ac.options);aa.push(af);ag=T.add({todo:ac},"marker",af);B(R,{todo:ac},af,ag)});M(Y,W?aa:aa[0])}};this.getroute=function(W){W.opts.origin=k(W.opts.origin,true);W.opts.destination=k(W.opts.destination,true);r().route(W.opts,function(Y,X){V(W,X==google.maps.DirectionsStatus.OK?Y:false,X);N.ack()})};this.directionsrenderer=function(W){W.opts.map=L;var Y,X=new google.maps.DirectionsRenderer(W.opts);if(W.todo.divId){X.setPanel(document.getElementById(W.todo.divId))}else{if(W.todo.container){X.setPanel(i(W.todo.container).get(0))}}Y=T.add(W,"directionrenderer",X);M(W,X,Y)};this.getgeoloc=function(W){M(W,W.latLng)};this.styledmaptype=function(W){J();var X=new q.classes.StyledMapType(W.todo.styles,W.opts);L.mapTypes.set(W.todo.id,X);M(W,X)};this.imagemaptype=function(W){J();var X=new q.classes.ImageMapType(W.opts);L.mapTypes.set(W.todo.id,X);M(W,X)};this.autofit=function(W){var X=new google.maps.LatLngBounds();i.each(T.all(),function(Y,Z){if(Z.getPosition){X.extend(Z.getPosition())}else{if(Z.getBounds){X.extend(Z.getBounds().getNorthEast());X.extend(Z.getBounds().getSouthWest())}else{if(Z.getPaths){Z.getPaths().forEach(function(aa){aa.forEach(function(ab){X.extend(ab)})})}else{if(Z.getPath){Z.getPath().forEach(function(aa){X.extend(aa);""})}else{if(Z.getCenter){X.extend(Z.getCenter())}}}}}});if(!X.isEmpty()&&(!L.getBounds()||!L.getBounds().equals(X))){if("maxZoom" in W.todo){google.maps.event.addListenerOnce(L,"bounds_changed",function(){if(this.getZoom()>W.todo.maxZoom){this.setZoom(W.todo.maxZoom)}})}L.fitBounds(X)}M(W,true)};this.clear=function(W){if(typeof W.todo==="string"){if(T.clearById(W.todo)||T.objClearById(W.todo)){M(W,true);return}W.todo={name:W.todo}}if(W.todo.id){i.each(l(W.todo.id),function(X,Y){T.clearById(Y)})}else{T.clear(l(W.todo.name),W.todo.last,W.todo.first,W.todo.tag)}M(W,true)};this.exec=function(W){var X=this;i.each(l(W.todo.func),function(Y,Z){i.each(X.get(W.todo,true,W.todo.hasOwnProperty("full")?W.todo.full:true),function(aa,ab){Z.call(R,ab)})});M(W,true)};this.get=function(Y,ab,aa){var X,Z,W=ab?Y:Y.todo;if(!ab){aa=W.full}if(typeof W==="string"){Z=T.getById(W,false,aa)||T.objGetById(W);if(Z===false){X=W;W={}}}else{X=W.name}if(X==="map"){Z=L}if(!Z){Z=[];if(W.id){i.each(l(W.id),function(ac,ad){Z.push(T.getById(ad,false,aa)||T.objGetById(ad))});if(!i.isArray(W.id)){Z=Z[0]}}else{i.each(X?l(X):[e],function(ad,ae){var ac;if(W.first){ac=T.get(ae,false,W.tag,aa);if(ac){Z.push(ac)}}else{if(W.all){i.each(T.all(ae,W.tag,aa),function(ag,af){Z.push(af)})}else{ac=T.get(ae,true,W.tag,aa);if(ac){Z.push(ac)}}}});if(!W.all&&!i.isArray(X)){Z=Z[0]}}}Z=i.isArray(Z)||!W.all?Z:[Z];if(ab){return Z}else{M(Y,Z)}};this.getdistance=function(W){var X;W.opts.origins=l(W.opts.origins);for(X=0;X