/* sequence.js (http://www.sequencejs.com) version: 1.0.1 author: ian lunn @ianlunn author url: http://www.ianlunn.co.uk/ github: https://github.com/ianlunn/sequence this is a free script and is available under a mit license: http://www.opensource.org/licenses/mit-license.php sequence.js and its dependencies are (c) ian lunn design 2012 - 2013 unless otherwise stated. sequence also relies on the following open source scripts: - jquery imagesloaded 2.1.0 (http://github.com/desandro/imagesloaded) paul irish et al available under a mit license: http://www.opensource.org/licenses/mit-license.php - jquery touchwipe 1.1.1 (http://www.netcu.de/jquery-touchwipe-iphone-ipad-library) andreas waltl, netcu internetagentur (http://www.netcu.de) available under a mit license: http://www.opensource.org/licenses/mit-license.php - modernizr 2.6.1 custom build (http://modernizr.com/) (named modernizr for sequence to prevent conflicts) copyright (c) faruk ates, paul irish, alex sexton available under the bsd and mit licenses: www.modernizr.com/license/ */(function(e){function n(n,r,i,s){function f(){o.afterloaded();o.settings.hideframesuntilpreloaded&&o.settings.preloader!==undefined&&o.settings.preloader!==!1&&o.frames.show();if(o.settings.preloader!==undefined&&o.settings.preloader!==!1)if(o.settings.hidepreloaderusingcss&&o.transitionssupported){o.prependpreloadingcompleteto=o.settings.prependpreloadingcomplete===!0?o.settings.preloader:e(o.settings.prependpreloadingcomplete);o.prependpreloadingcompleteto.addclass("preloading-complete");settimeout(g,o.settings.hidepreloaderdelay)}else o.settings.preloader.fadeout(o.settings.hidepreloaderdelay,function(){clearinterval(o.defaultpreloader);g()});else g()}function h(t,n){var r=[];if(!n)for(var i=t;i>0;i--)o.frames.eq(o.settings.preloadtheseframes[i-1]-1).find("img").each(function(){r.push(e(this)[0])});else for(var s=t;s>0;s--)r.push(e("body").find('img[src="'+o.settings.preloadtheseimages[s-1]+'"]'));return r}function p(t,n){function c(){var t=e(f),r=e(l);s&&(l.length?s.reject(u,t,r):s.resolve(u));e.isfunction(n)&&n.call(i,u,t,r)}function h(t,n){if(t.src===r||e.inarray(t,a)!==-1)return;a.push(t);n?l.push(t):f.push(t);e.data(t,"imagesloaded",{isbroken:n,src:t.src});o&&s.notifywith(e(t),[n,u,e(f),e(l)]);if(u.length===a.length){settimeout(c);u.unbind(".imagesloaded")}}var r="data:image/gif;base64,r0lgodlhaqabaiaaaaaaap///ywaaaaaaqabaaacauwaow==",i=t,s=e.isfunction(e.deferred)?e.deferred():0,o=e.isfunction(s.notify),u=i.find("img").add(i.filter("img")),a=[],f=[],l=[];e.isplainobject(n)&&e.each(n,function(e,t){e==="callback"?n=t:s&&s[e](t)});u.length?u.bind("load.imagesloaded error.imagesloaded",function(e){h(e.target,e.type==="error")}).each(function(t,n){var i=n.src,s=e.data(n,"imagesloaded");if(s&&s.src===i){h(n,s.isbroken);return}if(n.complete&&n.naturalwidth!==undefined){h(n,n.naturalwidth===0||n.naturalheight===0);return}if(n.readystate||n.complete){n.src=r;n.src=i}}):c()}function g(){function t(e,t){var r,i;for(i in t){i==="left"||i==="right"?r=n[i]:r=i;e===parsefloat(r)&&o._initcustomkeyevent(t[i])}}function r(){o.canvas.on("touchmove.sequence",i);u=null;f=!1}function i(e){o.settings.swipepreventsdefault&&e.preventdefault();if(f){var t=e.originalevent.touches[0].pagex,n=e.originalevent.touches[0].pagey,i=u-t,s=a-n;if(math.abs(i)>=o.settings.swipethreshold){r();i>0?o._initcustomkeyevent(o.settings.swipeevents.left):o._initcustomkeyevent(o.settings.swipeevents.right)}else if(math.abs(s)>=o.settings.swipethreshold){r();s>0?o._initcustomkeyevent(o.settings.swipeevents.down):o._initcustomkeyevent(o.settings.swipeevents.up)}}}function s(e){if(e.originalevent.touches.length===1){u=e.originalevent.touches[0].pagex;a=e.originalevent.touches[0].pagey;f=!0;o.canvas.on("touchmove.sequence",i)}}e(o.settings.preloader).remove();o.nextbutton=o._renderuielements(o.settings.nextbutton,".sequence-next");o.prevbutton=o._renderuielements(o.settings.prevbutton,".sequence-prev");o.pausebutton=o._renderuielements(o.settings.pausebutton,".sequence-pause");o.pagination=o._renderuielements(o.settings.pagination,".sequence-pagination");o.nextbutton!==undefined&&o.nextbutton!==!1&&o.settings.shownextbuttononinit===!0&&o.nextbutton.show();o.prevbutton!==undefined&&o.prevbutton!==!1&&o.settings.showprevbuttononinit===!0&&o.prevbutton.show();o.pausebutton!==undefined&&o.pausebutton!==!1&&o.settings.showpausebuttononinit===!0&&o.pausebutton.show();if(o.settings.pauseicon!==!1){o.pauseicon=o._renderuielements(o.settings.pauseicon,".sequence-pause-icon");o.pauseicon!==undefined&&o.pauseicon.hide()}else o.pauseicon=undefined;if(o.pagination!==undefined&&o.pagination!==!1){o.paginationlinks=o.pagination.children();o.paginationlinks.on("click.sequence",function(){var t=e(this).index()+1;o.goto(t)});o.settings.showpaginationoninit===!0&&o.pagination.show()}o.nextframeid=o.settings.startingframeid;if(o.settings.hashtags===!0){o.frames.each(function(){o.framehashid.push(e(this).prop(o.gethashtagfrom))});o.currenthashtag=location.hash.replace("#","");if(o.currenthashtag===undefined||o.currenthashtag==="")o.nextframeid=o.settings.startingframeid;else{o.framehashindex=e.inarray(o.currenthashtag,o.framehashid);o.framehashindex!==-1?o.nextframeid=o.framehashindex+1:o.nextframeid=o.settings.startingframeid}}o.nextframe=o.frames.eq(o.nextframeid-1);o.nextframechildren=o.nextframe.children();o.pagination!==undefined&&e(o.paginationlinks[o.settings.startingframeid-1]).addclass("current");if(o.transitionssupported)if(!o.settings.animatestartingframein){o.currentframeid=o.nextframeid;o.settings.moveactiveframetotop&&o.nextframe.css("z-index",o.numberofframes);o._resetelements(o.transitionprefix,o.nextframechildren,"0s");o.nextframe.addclass("animate-in");if(o.settings.hashtags&&o.settings.hashchangesonfirstframe){o.currenthashtag=o.nextframe.prop(o.gethashtagfrom);document.location.hash="#"+o.currenthashtag}settimeout(function(){o._resetelements(o.transitionprefix,o.nextframechildren,"")},100);o._resetautoplay(!0,o.settings.autoplaydelay)}else if(o.settings.reverseanimationswhennavigatingbackwards&&o.settings.autoplaydirection-1&&o.settings.animatestartingframein){o._resetelements(o.transitionprefix,o.nextframechildren,"0s");o.nextframe.addclass("animate-out");o.goto(o.nextframeid,-1,!0)}else o.goto(o.nextframeid,1,!0);else{o.container.addclass("sequence-fallback");o.currentframeid=o.nextframeid;if(o.settings.hashtags&&o.settings.hashchangesonfirstframe){o.currenthashtag=o.nextframe.prop(o.gethashtagfrom);document.location.hash="#"+o.currenthashtag}o.frames.addclass("animate-in");o.frames.not(":eq("+(o.nextframeid-1)+")").css({display:"none",opacity:0});o._resetautoplay(!0,o.settings.autoplaydelay)}o.nextbutton!==undefined&&o.nextbutton.bind("click.sequence",function(){o.next()});o.prevbutton!==undefined&&o.prevbutton.bind("click.sequence",function(){o.prev()});o.pausebutton!==undefined&&o.pausebutton.bind("click.sequence",function(){o.pause(!0)});if(o.settings.keynavigation){var n={left:37,right:39};e(document).bind("keydown.sequence",function(e){var n=string.fromcharcode(e.keycode);if(n>0&&n<=o.numberofframes&&o.settings.numerickeysgotoframes){o.nextframeid=n;o.goto(o.nextframeid)}t(e.keycode,o.settings.keyevents);t(e.keycode,o.settings.customkeyevents)})}o.canvas.on({"mouseenter.sequence":function(){if(o.settings.pauseonhover&&o.settings.autoplay&&!o.hastouch){o.isbeinghoveredover=!0;o.ishardpaused||o.pause()}},"mouseleave.sequence":function(){if(o.settings.pauseonhover&&o.settings.autoplay&&!o.hastouch){o.isbeinghoveredover=!1;o.ishardpaused||o.unpause()}}});o.settings.hashtags&&e(window).bind("hashchange.sequence",function(){var t=location.hash.replace("#","");if(o.currenthashtag!==t){o.currenthashtag=t;o.framehashindex=e.inarray(o.currenthashtag,o.framehashid);if(o.framehashindex!==-1){o.nextframeid=o.framehashindex+1;o.goto(o.nextframeid)}}});if(o.settings.swipenavigation&&o.hastouch){var u,a,f=!1;o.canvas.on("touchstart.sequence",s)}}var o=this;o.container=e(n);o.canvas=o.container.children(".sequence-canvas");o.frames=o.canvas.children("li");o._modernizrforsequence();var u={webkittransition:"-webkit-",webkitanimation:"-webkit-",moztransition:"-moz-","mozanimation ":"-moz-",otransition:"-o-",oanimation:"-o-",mstransition:"-ms-",msanimation:"-ms-",transition:"",animation:""},a={webkittransition:"webkittransitionend.sequence",webkitanimation:"webkitanimationend.sequence",moztransition:"transitionend.sequence",mozanimation:"animationend.sequence",otransition:"otransitionend.sequence",oanimation:"oanimationend.sequence",mstransition:"mstransitionend.sequence",msanimation:"msanimationend.sequence",transition:"transitionend.sequence",animation:"animationend.sequence"};o.transitionprefix=u[modernizrforsequence.prefixed("transition")],o.animationprefix=u[modernizrforsequence.prefixed("animation")],o.transitionproperties={},o.transitionend=a[modernizrforsequence.prefixed("transition")]+" "+a[modernizrforsequence.prefixed("animation")],o.numberofframes=o.frames.length,o.transitionssupported=o.transitionprefix!==undefined?!0:!1,o.hastouch="ontouchstart"in window?!0:!1,o.ispaused=!1,o.isbeinghoveredover=!1,o.container.removeclass("sequence-destroyed");o.paused=function(){},o.unpaused=function(){},o.beforenextframeanimatesin=function(){},o.afternextframeanimatesin=function(){},o.beforecurrentframeanimatesout=function(){},o.aftercurrentframeanimatesout=function(){},o.afterloaded=function(){};o.destroyed=function(){};o.settings=e.extend({},i,r);o.settings.preloader=o._renderuielements(o.settings.preloader,".sequence-preloader");o.isstartingframe=o.settings.animatestartingframein?!0:!1;o.settings.unpausedelay=o.settings.unpausedelay===null?o.settings.autoplaydelay:o.settings.unpausedelay;o.gethashtagfrom=o.settings.hashdataattribute?"data-sequence-hashtag":"id";o.framehashid=[];o.direction=o.settings.autoplaydirection;o.settings.hideframesuntilpreloaded&&o.settings.preloader!==undefined&&o.settings.preloader!==!1&&o.frames.hide();o.transitionprefix==="-o-"&&(o.transitionssupported=o._operatest());o.frames.removeclass("animate-in");var l=o.settings.preloadtheseframes.length,c=o.settings.preloadtheseimages.length;if(o.settings.preloader===undefined||o.settings.preloader===!1||l===0&&c===0)if(t===!0){f();e(this).unbind("load.sequence")}else e(window).bind("load.sequence",function(){f();e(this).unbind("load.sequence")});else{var d=h(l),v=h(c,!0),m=e(d.concat(v));p(m,f)}}var t=!1;e(window).bind("load",function(){t=!0});n.prototype={startautoplay:function(e){var t=this;e=e===undefined?t.settings.autoplaydelay:e;t.unpause();t._resetautoplay();t.autoplaytimer=settimeout(function(){t.settings.autoplaydirection===1?t.next():t.prev()},e)},stopautoplay:function(){var e=this;e.pause(!0);cleartimeout(e.autoplaytimer)},pause:function(e){var t=this;if(!t.issoftpaused){if(t.pausebutton!==undefined){t.pausebutton.addclass("paused");t.pauseicon!==undefined&&t.pauseicon.show()}t.paused();t.issoftpaused=!0;t.ishardpaused=e?!0:!1;t.ispaused=!0;t._resetautoplay()}else t.unpause()},unpause:function(e){var t=this;if(t.pausebutton!==undefined){t.pausebutton.removeclass("paused");t.pauseicon!==undefined&&t.pauseicon.hide()}t.issoftpaused=!1;t.ishardpaused=!1;t.ispaused=!1;if(!t.active){e!==!1&&t.unpaused();t._resetautoplay(!0,t.settings.unpausedelay)}else t.delayunpause=!0},next:function(){var e=this;e.nextframeid=e.currentframeid!==e.numberofframes?e.currentframeid+1:1;e.active===!1||e.active===undefined?e.goto(e.nextframeid,1):e.goto(e.nextframeid,1,!0)},prev:function(){var e=this;e.nextframeid=e.currentframeid===1?e.numberofframes:e.currentframeid-1;e.active===!1||e.active===undefined?e.goto(e.nextframeid,-1):e.goto(e.nextframeid,-1,!0)},goto:function(t,n,r){var i=this;t=parsefloat(t);var s=r===!0?0:i.settings.transitionthreshold;if(t===i.currentframeid||i.settings.navigationskip&&i.navigationskipthresholdactive||!i.settings.navigationskip&&i.active||!i.transitionssupported&&i.active||!i.settings.cycle&&n===1&&i.currentframeid===i.numberofframes||!i.settings.cycle&&n===-1&&i.currentframeid===1||i.settings.preventreverseskipping&&i.direction!==n&&i.active)return!1;if(i.settings.navigationskip&&i.active){i.navigationskipthresholdactive=!0;i.settings.fadeframewhenskipped&&i.nextframe.stop().animate({opacity:0},i.settings.fadeframetime);cleartimeout(i.transitionthresholdtimer);settimeout(function(){i.navigationskipthresholdactive=!1},i.settings.navigationskipthreshold)}if(!i.active||i.settings.navigationskip){i.active=!0;i._resetautoplay();n===undefined?i.direction=t>i.currentframeid?1:-1:i.direction=n;i.currentframe=i.canvas.children(".animate-in");i.nextframe=i.frames.eq(t-1);i.currentframechildren=i.currentframe.children();i.nextframechildren=i.nextframe.children();if(i.pagination!==undefined){i.paginationlinks.removeclass("current");e(i.paginationlinks[t-1]).addclass("current")}if(i.transitionssupported){if(i.currentframe.length!==undefined){i.beforecurrentframeanimatesout();i.settings.moveactiveframetotop&&i.currentframe.css("z-index",1);i._resetelements(i.transitionprefix,i.nextframechildren,"0s");if(!i.settings.reverseanimationswhennavigatingbackwards||i.direction===1){i.nextframe.removeclass("animate-out");i._resetelements(i.transitionprefix,i.currentframechildren,"")}else if(i.settings.reverseanimationswhennavigatingbackwards&&i.direction===-1){i.nextframe.addclass("animate-out");i._reversetransitionproperties()}}else i.isstartingframe=!1;i.active=!0;i.currentframe.unbind(i.transitionend);i.nextframe.unbind(i.transitionend);i.settings.fadeframewhenskipped&&i.settings.navigationskip&&i.nextframe.css("opacity",1);i.beforenextframeanimatesin();i.settings.moveactiveframetotop&&i.nextframe.css("z-index",i.numberofframes);if(!i.settings.reverseanimationswhennavigatingbackwards||i.direction===1){settimeout(function(){i._resetelements(i.transitionprefix,i.nextframechildren,"");i._waitforanimationstocomplete(i.nextframe,i.nextframechildren,"in");(i.aftercurrentframeanimatesout!=="function () {}"||i.settings.transitionthreshold===!0&&r!==!0)&&i._waitforanimationstocomplete(i.currentframe,i.currentframechildren,"out",!0,1)},50);settimeout(function(){if(i.settings.transitionthreshold===!1||i.settings.transitionthreshold===0||r===!0){i.currentframe.toggleclass("animate-out animate-in");i.nextframe.addclass("animate-in")}else{i.currentframe.toggleclass("animate-out animate-in");i.settings.transitionthreshold!==!0&&(i.transitionthresholdtimer=settimeout(function(){i.nextframe.addclass("animate-in")},s))}},50)}else if(i.settings.reverseanimationswhennavigatingbackwards&&i.direction===-1){settimeout(function(){i._resetelements(i.transitionprefix,i.currentframechildren,"");i._resetelements(i.transitionprefix,i.nextframechildren,"");i._reversetransitionproperties();i._waitforanimationstocomplete(i.nextframe,i.nextframechildren,"in");(i.aftercurrentframeanimatesout!=="function () {}"||i.settings.transitionthreshold===!0&&r!==!0)&&i._waitforanimationstocomplete(i.currentframe,i.currentframechildren,"out",!0,-1)},50);settimeout(function(){if(i.settings.transitionthreshold===!1||i.settings.transitionthreshold===0||r===!0){i.currentframe.removeclass("animate-in");i.nextframe.toggleclass("animate-out animate-in")}else{i.currentframe.removeclass("animate-in");i.settings.transitionthreshold!==!0&&(i.transitionthresholdtimer=settimeout(function(){i.nextframe.toggleclass("animate-out animate-in")},s))}},50)}}else{function o(){i._sethashtag();i.active=!1;i._resetautoplay(!0,i.settings.autoplaydelay)}switch(i.settings.fallback.theme){case"fade":i.frames.css({position:"relative"});i.beforecurrentframeanimatesout();i.currentframe=i.frames.eq(i.currentframeid-1);i.currentframe.animate({opacity:0},i.settings.fallback.speed,function(){i.currentframe.css({display:"none","z-index":"1"});i.aftercurrentframeanimatesout();i.beforenextframeanimatesin();i.nextframe.css({display:"block","z-index":i.numberofframes}).animate({opacity:1},500,function(){i.afternextframeanimatesin()});o()});i.frames.css({position:"relative"});break;case"slide":default:var u={},a={},f={};if(i.direction===1){u.left="-100%";a.left="100%"}else{u.left="100%";a.left="-100%"}f.left="0";f.opacity=1;i.currentframe=i.frames.eq(i.currentframeid-1);i.beforecurrentframeanimatesout();i.currentframe.animate(u,i.settings.fallback.speed,function(){i.currentframe.css({display:"none","z-index":"1"});i.aftercurrentframeanimatesout()});i.beforenextframeanimatesin();i.nextframe.show().css(a);i.nextframe.css({display:"block","z-index":i.numberofframes}).animate(f,i.settings.fallback.speed,function(){o();i.afternextframeanimatesin()})}}i.currentframeid=t}},destroy:function(t){var n=this;n.container.addclass("sequence-destroyed");n.nextbutton!==undefined&&n.nextbutton.unbind("click.sequence");n.prevbutton!==undefined&&n.prevbutton.unbind("click.sequence");n.pausebutton!==undefined&&n.pausebutton.unbind("click.sequence");n.pagination!==undefined&&n.paginationlinks.unbind("click.sequence");e(document).unbind("keydown.sequence");n.canvas.unbind("mouseenter.sequence, mouseleave.sequence, touchstart.sequence, touchmove.sequence");e(window).unbind("hashchange.sequence");n.stopautoplay();cleartimeout(n.transitionthresholdtimer);n.canvas.children("li").remove();n.canvas.prepend(n.frames);n.frames.removeclass("animate-in animate-out").removeattr("style");n.frames.eq(n.currentframeid-1).addclass("animate-in");n.nextbutton!==undefined&&n.nextbutton!==!1&&n.nextbutton.hide();n.prevbutton!==undefined&&n.prevbutton!==!1&&n.prevbutton.hide();n.pausebutton!==undefined&&n.pausebutton!==!1&&n.pausebutton.hide();n.pauseicon!==undefined&&n.pauseicon!==!1&&n.pauseicon.hide();n.pagination!==undefined&&n.pagination!==!1&&n.pagination.hide();t!==undefined&&t();n.destroyed();n.container.removedata()},_initcustomkeyevent:function(e){var t=this;switch(e){case"next":t.next();break;case"prev":t.prev();break;case"pause":t.pause(!0)}},_resetelements:function(e,t,n){var r=this;t.css(r._prefixcss(e,{"transition-duration":n,"transition-delay":n,"transition-timing-function":""}))},_reversetransitionproperties:function(){var t=this,n=[],r=[];t.currentframechildren.each(function(){n.push(parsefloat(e(this).css(t.transitionprefix+"transition-duration").replace("s",""))+parsefloat(e(this).css(t.transitionprefix+"transition-delay").replace("s","")))});t.nextframechildren.each(function(){r.push(parsefloat(e(this).css(t.transitionprefix+"transition-duration").replace("s",""))+parsefloat(e(this).css(t.transitionprefix+"transition-delay").replace("s","")))});var i=math.max.apply(math,n),s=math.max.apply(math,r),o=i-s,u=0,a=0;o<0&&!t.settings.preventdelaywhenreversinganimations?u=math.abs(o):o>0&&(a=math.abs(o));var f=function(n,r,i,s){function o(e){e=e.split(",")[0];var t={linear:"cubic-bezier(0.0,0.0,1.0,1.0)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1.0)","ease-in":"cubic-bezier(0.42, 0.0, 1.0, 1.0)","ease-in-out":"cubic-bezier(0.42, 0.0, 0.58, 1.0)","ease-out":"cubic-bezier(0.0, 0.0, 0.58, 1.0)"};e.indexof("cubic-bezier")<0&&(e=t[e]);return e}r.each(function(){var r=parsefloat(e(this).css(t.transitionprefix+"transition-duration").replace("s","")),u=parsefloat(e(this).css(t.transitionprefix+"transition-delay").replace("s","")),a=e(this).css(t.transitionprefix+"transition-timing-function");if(a.indexof("cubic")===-1)var a=o(a);var f=a.replace("cubic-bezier(","").replace(")","").split(",");e.each(f,function(e,t){f[e]=parsefloat(t)});var l=[1-f[2],1-f[3],1-f[0],1-f[1]];a="cubic-bezier("+l+")";var c=r+u;n["transition-duration"]=r+"s";n["transition-delay"]=i-c+s+"s";n["transition-timing-function"]=a;e(this).css(t._prefixcss(t.transitionprefix,n))})};f(t.transitionproperties,t.currentframechildren,i,u);f(t.transitionproperties,t.nextframechildren,s,a)},_prefixcss:function(e,t){var n=this,r={};for(var i in t)r[e+i]=t[i];return r},_resetautoplay:function(e,t){var n=this;if(e===!0){if(n.settings.autoplay&&!n.issoftpaused){cleartimeout(n.autoplaytimer);n.autoplaytimer=settimeout(function(){n.settings.autoplaydirection===1?n.next():n.prev()},t)}}else cleartimeout(n.autoplaytimer)},_renderuielements:function(t,n){var r=this;switch(t){case!1:return undefined;case!0:n===".sequence-preloader"&&r._defaultpreloader(r.container,r.transitionssupported,r.animationprefix);return e(n);default:return e(t)}},_waitforanimationstocomplete:function(t,n,r,i,s){var o=this;if(r==="out")var u=function(){o.aftercurrentframeanimatesout();o.settings.transitionthreshold===!0&&(s===1?o.nextframe.addclass("animate-in"):s===-1&&o.nextframe.toggleclass("animate-out animate-in"))};else if(r==="in")var u=function(){o.afternextframeanimatesin();o._sethashtag();o.active=!1;if(!o.ishardpaused&&!o.isbeinghoveredover)if(!o.delayunpause)o.unpause(!1);else{o.delayunpause=!1;o.unpause()}};n.data("animationended",!1);t.bind(o.transitionend,function(r){e(r.target).data("animationended",!0);var i=!0;n.each(function(){if(e(this).data("animationended")===!1){i=!1;return!1}});if(i){t.unbind(o.transitionend);u()}})},_sethashtag:function(){var t=this;if(t.settings.hashtags){t.currenthashtag=t.nextframe.prop(t.gethashtagfrom);t.framehashindex=e.inarray(t.currenthashtag,t.framehashid);if(t.framehashindex!==-1&&(t.settings.hashchangesonfirstframe||!t.isstartingframe||!t.transitionssupported)){t.nextframeid=t.framehashindex+1;document.location.hash="#"+t.currenthashtag}else{t.nextframeid=t.settings.startingframeid;t.isstartingframe=!1}}},_modernizrforsequence:function(){window.modernizrforsequence=function(e,t,n){function r(e){v.csstext=e}function i(e,t){return r(prefixes.join(e+";")+(t||""))}function s(e,t){return typeof e===t}function o(e,t){return!!~(""+e).indexof(t)}function u(e,t){for(var r in e){var i=e[r];if(!o(i,"-")&&v[i]!==n)return t=="pfx"?i:!0}return!1}function a(e,t,r){for(var i in e){var o=t[e[i]];if(o!==n)return r===!1?e[i]:s(o,"function")?o.bind(r||t):o}return!1}function f(e,t,n){var r=e.charat(0).touppercase()+e.slice(1),i=(e+" "+b.join(r+" ")+r).split(" ");return s(t,"string")||s(t,"undefined")?u(i,t):(i=(e+" "+w.join(r+" ")+r).split(" "),a(i,t,n))}var l="2.6.1",c={},h=t.documentelement,p="modernizrforsequence",d=t.createelement(p),v=d.style,m,g={}.tostring,y="webkit moz o ms",b=y.split(" "),w=y.tolowercase().split(" "),e={svg:"http://www.w3.org/2000/svg"},s={},x={},t={},n=[],c=n.slice,k,l={}.hasownproperty,a;!s(l,"undefined")&&!s(l.call,"undefined")?a=function(e,t){return l.call(e,t)}:a=function(e,t){return t in e&&s(e.constructor.prototype[t],"undefined")},function.prototype.bind||(function.prototype.bind=function(e){var t=self;if(typeof t!="function")throw new typeerror;var n=c.call(arguments,1),r=function(){if(self instanceof r){var i=function(){};i.prototype=t.prototype;var s=new i,o=t.apply(s,n.concat(c.call(arguments)));return object(o)===o?o:s}return t.apply(e,n.concat(c.call(arguments)))};return r}),s.svg=function(){return!!t.createelementns&&!!t.createelementns(e.svg,"svg").createsvgrect};for(var o in s)a(s,o)&&(k=o.tolowercase(),c[k]=s[o](),n.push((c[k]?"":"no-")+k));return c.addtest=function(e,t){if(typeof e=="object")for(var r in e)a(e,r)&&c.addtest(r,e[r]);else{e=e.tolowercase();if(c[e]!==n)return c;t=typeof t=="function"?t():t,enableclasses&&(h.classname+=" "+(t?"":"no-")+e),c[e]=t}return c},r(""),d=m=null,c._version=l,c._domprefixes=w,c._cssomprefixes=b,c.testprop=function(e){return u([e])},c.testallprops=f,c.prefixed=function(e,t,n){return t?f(e,t,n):f(e,"pfx")},c}(self,self.document)},_defaultpreloader:function(t,n,r){var i='
';e("head").append("");t.prepend(i);if(!modernizrforsequence.svg&&!n){e(".sequence-preloader").prepend('