diff --git a/bower.json b/bower.json
index 4ebeabbf..137054b2 100644
--- a/bower.json
+++ b/bower.json
@@ -1,5 +1,5 @@
{
- "version": "1.1.0-rc.2",
+ "version": "1.1.0",
"name": "toolkit",
"description": "A collection of extensible front-end UI components for the responsive web.",
"keywords": [
@@ -21,7 +21,7 @@
"fluid",
"mobile"
],
- "copyright": "Copyright 2010-2013, The Titon Project",
+ "copyright": "Copyright 2010-2014, The Titon Project",
"homepage": "http://titon.io",
"licenses": "https://github.com/titon/toolkit/blob/master/license.md",
"author": ["Miles Johnson"],
diff --git a/dist/jquery/toolkit-accordion.min.js b/dist/jquery/toolkit-accordion.min.js
index f9832e73..042713db 100644
--- a/dist/jquery/toolkit-accordion.min.js
+++ b/dist/jquery/toolkit-accordion.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
-!function(a){"use strict";Toolkit.Accordion=Toolkit.Component.extend(function(b,c){var d,e,f;this.component="Accordion",this.version="1.0.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.headers=e=this.element.find(c.headerElement),this.sections=f=this.element.find(c.contentElement),this.previousIndex=0,this.currentIndex=0,this.node=null,b.children("li").removeClass(Toolkit.options.isPrefix+"active"),e.each(function(b){a(this).data("index",b)}),f.each(function(){var b=a(this);b.data("height",b.height()).conceal()}),e.on("click"===c.mode?"click":"mouseover",this.__show.bind(this)),this.fireEvent("init"),d=e.item(e[c.defaultIndex]?c.defaultIndex:0),this.show(d)},{jump:function(a){a>=this.headers.length?a=0:0>a&&(a=this.headers.length-1),this.fireEvent("jump",a),this.show(this.headers[a])},show:function(b){b=a(b);var c=this.options,d=b.parent(),e=b.next(c.contentElement),f=b.data("index"),g=parseInt(e.data("height"),10),h=this.node&&this.node.is(b);if("click"===c.mode&&(c.multiple||c.collapsible&&h))e.is(":shown")&&this.node?(e.css("max-height",0).conceal(),d.removeClass(Toolkit.options.isPrefix+"active")):(e.css("max-height",g).reveal(),d.addClass(Toolkit.options.isPrefix+"active"));else{if(h)return;this.sections.css("max-height",0).conceal(),e.css("max-height",g).reveal(),this.element.children("li").removeClass(Toolkit.options.isPrefix+"active"),d.addClass(Toolkit.options.isPrefix+"active")}this.previousIndex=this.currentIndex,this.currentIndex=f,this.node=b,this.fireEvent("show",e)},__show:function(a){a.preventDefault(),this.show(a.currentTarget)}},{mode:"click",defaultIndex:0,multiple:!1,collapsible:!1,headerElement:".accordion-head",contentElement:".accordion-handle"}),Toolkit.createComponent("accordion",function(a){return new Toolkit.Accordion(this,a)})}(jQuery);
\ No newline at end of file
+!function(a){"use strict";Toolkit.Accordion=Toolkit.Component.extend(function(b,c){var d,e,f;this.component="Accordion",this.version="1.1.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.headers=e=this.element.find(c.headerElement),this.sections=f=this.element.find(c.sectionElement),this.previousIndex=0,this.currentIndex=0,this.node=null,b.children("li").removeClass(Toolkit.options.isPrefix+"active"),e.each(function(b){a(this).data("index",b)}),f.each(function(){var b=a(this);b.data("height",b.height()).conceal()}),e.on("click"===c.mode?"click":"mouseover",this.__show.bind(this)),this.fireEvent("init"),d=e.item(e[c.defaultIndex]?c.defaultIndex:0),this.show(d)},{jump:function(a){a>=this.headers.length?a=0:0>a&&(a=this.headers.length-1),this.fireEvent("jump",a),this.show(this.headers[a])},show:function(b){b=a(b);var c=this.options,d=b.parent(),e=b.next(),f=b.data("index"),g=parseInt(e.data("height"),10),h=this.node&&this.node.is(b);if("click"===c.mode&&(c.multiple||c.collapsible&&h))e.is(":shown")&&this.node?(e.css("max-height",0).conceal(),d.removeClass(Toolkit.options.isPrefix+"active")):(e.css("max-height",g).reveal(),d.addClass(Toolkit.options.isPrefix+"active"));else{if(h)return;this.sections.css("max-height",0).conceal(),e.css("max-height",g).reveal(),this.element.children("li").removeClass(Toolkit.options.isPrefix+"active"),d.addClass(Toolkit.options.isPrefix+"active")}this.previousIndex=this.currentIndex,this.currentIndex=f,this.node=b,this.fireEvent("show",e)},__show:function(a){a.preventDefault(),this.show(a.currentTarget)}},{mode:"click",defaultIndex:0,multiple:!1,collapsible:!1,headerElement:".accordion-header",sectionElement:".accordion-section"}),Toolkit.createComponent("accordion",function(a){return new Toolkit.Accordion(this,a)})}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-blackout.min.js b/dist/jquery/toolkit-blackout.min.js
index 7b711bad..becc182f 100644
--- a/dist/jquery/toolkit-blackout.min.js
+++ b/dist/jquery/toolkit-blackout.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";Toolkit.Blackout=Toolkit.Component.extend(function(b){this.component="Blackout",this.version="1.1.0",this.options=b=this.setOptions(Toolkit.options,b),this.element=this.createElement(),this.count=0;var c=Toolkit.options.vendor,d="bubble-spinner"===b.loader?8:b.waveCount;this.loader=a("
").addClass(c+"loader").addClass(b.loader).appendTo(this.element);var e,f="";for(e=0;d>e;e++)f+="";"bubble-spinner"===b.loader?a("").addClass("spinner").html(f).appendTo(this.loader):this.loader.html(f),this.message=a("").addClass(c+"loader-message").html(b.loaderMessage).appendTo(this.loader),this.fireEvent("init")},{hide:function(){var a=this.count-1;0>=a?(this.count=0,this.element.conceal(),this.hideLoader()):this.count=a,this.fireEvent("hide",0>=a)},hideLoader:function(){this.loader.conceal()},show:function(){this.count++,this.element.reveal(),this.showLoader(),this.fireEvent("show")},showLoader:function(){this.loader.reveal()}},{loader:"bar-wave",loaderMessage:Toolkit.messages.loading,waveCount:5,template:'',templateFrom:"#toolkit-blackout"});var b=null;Toolkit.Blackout.factory=function(a){return b?b:b=new Toolkit.Blackout(a)}}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-carousel.min.js b/dist/jquery/toolkit-carousel.min.js
index 00e1fcdc..fc12601c 100644
--- a/dist/jquery/toolkit-carousel.min.js
+++ b/dist/jquery/toolkit-carousel.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
-!function(a){"use strict";Toolkit.Carousel=Toolkit.Component.extend(function(b,c){if(this.component="Carousel",this.version="1.0.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.itemsWrapper=b.find(c.itemsElement),this.itemsList=this.itemsWrapper.children("ul, ol"),this.items=this.itemsWrapper.find(c.itemElement),this.tabsWrapper=b.find(c.tabsElement),this.tabs=this.tabsWrapper.find(c.tabElement),this.nextButton=b.find(c.nextElement),this.prevButton=b.find(c.prevElement),this.previousIndex=0,this.currentIndex=0,this.timer=null,this.stopped=!1,this.items.length<=1)return this.tabsWrapper.hide(),this.nextButton.hide(),void this.prevButton.hide();switch(c.animation){case"fade":this.items.item(0).reveal();break;case"slide":this.itemsList.css("width",100*this.items.length+"%"),this.items.css("width",100/this.items.length+"%")}this.tabs.each(function(b){a(this).data("index",b)}),a(window).on("keydown",function(b){switch(a.inArray(b.keyCode,[37,38,39,40])>=0&&b.preventDefault(),b.keyCode){case 37:this.prev();break;case 38:this.jump(0);break;case 39:this.next();break;case 40:this.jump(-1)}}.bind(this)),c.stopOnHover&&this.element.on("mouseenter",this.stop.bind(this)).on("mouseleave",this.start.bind(this)),this.element.on("swipeleft",this.next.bind(this)).on("swiperight",this.prev.bind(this)),this.tabs.on("click",this.__jump.bind(this)),this.nextButton.on("click",this.next.bind(this)),this.prevButton.on("click",this.prev.bind(this)),this.fireEvent("init"),this.start(),this.reset()},{jump:function(a){switch(a>=this.items.length?a=0:0>a&&(a=this.items.length-1),this.previousIndex=this.currentIndex,this.currentIndex=a,this.tabs.length&&this.tabs.removeClass(Toolkit.options.isPrefix+"active").item(a).addClass(Toolkit.options.isPrefix+"active"),this.options.animation){case"fade":this.items.removeClass("show").item(a).reveal();break;case"slide-up":this.itemsList.css("top",-(100*a)+"%");break;default:this.itemsList.css("left",-(100*a)+"%")}this.reset(),this.fireEvent("jump",a)},next:function(){this.jump(this.currentIndex+1)},prev:function(){this.jump(this.currentIndex-1)},reset:function(){this.options.autoCycle&&(clearInterval(this.timer),this.timer=setInterval(this.__cycle.bind(this),this.options.duration))},start:function(){this.element.removeClass(Toolkit.options.isPrefix+"stopped"),this.stopped=!1,this.fireEvent("start")},stop:function(){this.element.addClass(Toolkit.options.isPrefix+"stopped"),this.stopped=!0,this.fireEvent("stop")},__cycle:function(){this.enabled&&!this.stopped&&(this.fireEvent("cycle"),this.next())},__jump:function(b){b.preventDefault(),this.enabled&&this.jump(a(b.target).data("index")||0)}},{animation:"slide",duration:5e3,autoCycle:!0,stopOnHover:!0,itemsElement:".carousel-items",itemElement:"li",tabsElement:".carousel-tabs",tabElement:"a",nextElement:".carousel-next",prevElement:".carousel-prev"}),Toolkit.createComponent("carousel",function(a){return new Toolkit.Carousel(this,a)})}(jQuery);
\ No newline at end of file
+!function(a){"use strict";Toolkit.Carousel=Toolkit.Component.extend(function(b,c){if(this.component="Carousel",this.version="1.0.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.itemsWrapper=b.find(c.itemsElement),this.itemsList=this.itemsWrapper.children("ul, ol"),this.items=this.itemsWrapper.find(c.itemElement),this.tabsWrapper=b.find(c.tabsElement),this.tabs=this.tabsWrapper.find(c.tabElement),this.nextButton=b.find(c.nextElement),this.prevButton=b.find(c.prevElement),this.previousIndex=0,this.currentIndex=0,this.timer=null,this.stopped=!1,this.items.length<=1)return this.tabsWrapper.hide(),this.nextButton.hide(),void this.prevButton.hide();switch(c.animation){case"fade":this.items.item(0).reveal();break;case"slide":this.itemsList.css("width",100*this.items.length+"%"),this.items.css("width",100/this.items.length+"%")}this.tabs.each(function(b){a(this).data("index",b)}),a(window).on("keydown",function(b){switch(a.inArray(b.keyCode,[37,38,39,40])>=0&&b.preventDefault(),b.keyCode){case 37:this.prev();break;case 38:this.jump(0);break;case 39:this.next();break;case 40:this.jump(-1)}}.bind(this)),c.stopOnHover&&this.element.on("mouseenter",this.stop.bind(this)).on("mouseleave",this.start.bind(this)),this.element.on("swipeleft swipeup",this.next.bind(this)).on("swiperight swipdown",this.prev.bind(this)),this.tabs.on("click",this.__jump.bind(this)),this.nextButton.on("click",this.next.bind(this)),this.prevButton.on("click",this.prev.bind(this)),this.fireEvent("init"),this.start(),this.reset()},{jump:function(a){switch(a>=this.items.length?a=0:0>a&&(a=this.items.length-1),this.previousIndex=this.currentIndex,this.currentIndex=a,this.tabs.length&&this.tabs.removeClass(Toolkit.options.isPrefix+"active").item(a).addClass(Toolkit.options.isPrefix+"active"),this.options.animation){case"fade":this.items.removeClass("show").item(a).reveal();break;case"slide-up":this.itemsList.css("top",-(100*a)+"%");break;default:this.itemsList.css("left",-(100*a)+"%")}this.reset(),this.fireEvent("jump",a)},next:function(){this.jump(this.currentIndex+1)},prev:function(){this.jump(this.currentIndex-1)},reset:function(){this.options.autoCycle&&(clearInterval(this.timer),this.timer=setInterval(this.__cycle.bind(this),this.options.duration))},start:function(){this.element.removeClass(Toolkit.options.isPrefix+"stopped"),this.stopped=!1,this.fireEvent("start")},stop:function(){this.element.addClass(Toolkit.options.isPrefix+"stopped"),this.stopped=!0,this.fireEvent("stop")},__cycle:function(){this.enabled&&!this.stopped&&(this.fireEvent("cycle"),this.next())},__jump:function(b){b.preventDefault(),this.enabled&&this.jump(a(b.target).data("index")||0)}},{animation:"slide",duration:5e3,autoCycle:!0,stopOnHover:!0,itemsElement:".carousel-items",itemElement:"li",tabsElement:".carousel-tabs",tabElement:"a",nextElement:".carousel-next",prevElement:".carousel-prev"}),Toolkit.createComponent("carousel",function(a){return new Toolkit.Carousel(this,a)})}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-drop.min.js b/dist/jquery/toolkit-drop.min.js
index 4058d7b3..0e8e24ab 100644
--- a/dist/jquery/toolkit-drop.min.js
+++ b/dist/jquery/toolkit-drop.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";Toolkit.Drop=Toolkit.Component.extend(function(b,c){this.component="Drop",this.version="1.1.0",this.options=c=this.setOptions(c),this.element=null,this.node=null,this.nodes=b=a(b);var d=["down","up","left","right"].map(function(a){return"."+Toolkit.options.vendor+"drop--"+a});a(b.selector+", "+d.join(", ")).clickout(this.hide.bind(this)),a(c.context||document).on("click"===c.mode?"click":"mouseenter",b.selector,this.__show.bind(this)),this.fireEvent("init")},{hide:function(){this.element&&this.element.is(":shown")&&(this.element.conceal(),this.node.removeClass(Toolkit.options.isPrefix+"active"),this.fireEvent("hide"))},show:function(b){this.element.reveal(),this.node=a(b),this.node.addClass(Toolkit.options.isPrefix+"active"),this.fireEvent("show")},__show:function(b){if(b.preventDefault(),this.enabled){var c=a(b.target),d=this.readValue(c,this.options.getTarget);d&&"#"===d.substr(0,1)&&(this.options.hideOpened&&this.node&&!this.node.is(c)&&this.hide(),this.element=a(d),this.node=c,this.element.is(":shown")?this.hide():this.show(c))}}},{mode:"click",context:null,getTarget:"data-drop",hideOpened:!0}),Toolkit.createComponent("drop",function(a){return new Toolkit.Drop(this,a)},!0)}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-flyout.min.js b/dist/jquery/toolkit-flyout.min.js
index 475d00cb..64a4b4e7 100644
--- a/dist/jquery/toolkit-flyout.min.js
+++ b/dist/jquery/toolkit-flyout.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";Toolkit.Flyout=Toolkit.Component.extend(function(b,c,d){if(!c)throw new Error("Flyout URL required to download sitemap JSON");this.component="Flyout",this.version="1.0.0",this.options=d=this.setOptions(d),this.nodes=b=a(b),this.node=null,this.element=null,this.current=null,this.menus={},this.data=[],this.dataMap={},this.timers={},a.getJSON(c,this.load.bind(this)),"hover"===d.mode&&a(d.context||document).on("mouseenter",b.selector,function(){this.clearTimer("hide"),this.startTimer("show",d.showDelay)}.bind(this)).on("mouseleave",b.selector,function(){this.clearTimer("show"),this.startTimer("hide",d.showDelay)}.bind(this)),a(d.context||document).on("click"===d.mode?"click":"mouseenter",b.selector,this.__show.bind(this)),this.fireEvent("init")},{clearTimer:function(a){clearTimeout(this.timers[a]),delete this.timers[a]},hide:function(){this.node.removeClass(Toolkit.options.isPrefix+"active"),this.current&&this.isVisible()&&(this.menus[this.current].conceal(),this.fireEvent("hide"),this.current=null)},isVisible:function(){return this.current&&this.menus[this.current]&&(this.element=this.menus[this.current]),this.element&&this.element.is(":shown")},load:function(a,b){if(b=b||0,0===b&&(this.data=a),this.dataMap[a.url]=a,a.children)for(var c=0,d=a.children.length;d>c;c++)this.load(a.children[c],b+1)},position:function(){var b=this.current,c=this.options;if(this.menus[b]){var d=this.menus[b],e=d.outerHeight(),f=this.node.offset(),g=f.left+c.xOffset,h=f.top+c.yOffset+this.node.outerHeight(),i=a(window).height();h>i/2&&(h=f.top-c.yOffset-e),d.css({left:g,top:h}).reveal(),this.fireEvent("show")}},show:function(b){var c=this._getTarget(b);this.current&&c!==this.current&&(this.hide(),this.startTimer("show",this.options.showDelay)),this.node=a(b),this._getMenu()&&(this.fireEvent("load",b),this.node.addClass(Toolkit.options.isPrefix+"active"),"click"===this.options.mode&&this.position())},startTimer:function(a,b,c){this.clearTimer(a);var d;d="show"===a?this.position.bind(this):this.hide.bind(this),d&&(this.timers[a]=setTimeout(function(){d.apply(this,c||[])}.bind(this),b))},_buildMenu:function(b,c){if(!c.children||!c.children.length)return null;var d,e,f,g,h,i=a(this.options.template),j=[],k=this.options.contentElement,l=this.options.itemLimit;if(this.options.className&&i.addClass(this.options.className),b.is("body")&&i.addClass(Toolkit.options.isPrefix+"root"),l&&c.children.length>l)for(g=0,h=c.children.length;h>g;)j.push(c.children.slice(g,g+=l));else j.push(c.children);for(var m,n,o=0;m=j[o];o++){for(d=a("
"),g=0,h=m.length;h>g;g++)n=m[g],e=a(""),n.url?(f=a("",{text:n.title,href:n.url}),a("").addClass(n.icon||"caret-right").prependTo(f)):(f=a("",{text:n.title}),e.addClass(Toolkit.options.vendor+"flyout-heading")),n.attributes&&f.attr(n.attributes),n.className&&e.addClass(n.className),e.append(f).appendTo(d),n.children&&n.children.length&&(this._buildMenu(e,n),e.addClass(Toolkit.options.hasPrefix+"children").on("mouseenter",this.__positionChild.bind(this,e)).on("mouseleave",this.__hideChild.bind(this,e)));k?"."===k.substr(0,1)&&i.hasClass(k.substr(1))?i.append(d):i.find(k).append(d):i.append(d)}return i.appendTo(b),i},_getMenu:function(){var b=this._getTarget();if(this.menus[b])return this.current=b,this.menus[b];if(this.dataMap[b]){var c=this._buildMenu(a("body"),this.dataMap[b]);return c?(c.conceal(),"hover"===this.options.mode&&c.on({mouseenter:function(){this.clearTimer("hide")}.bind(this),mouseleave:function(){this.startTimer("hide",this.options.hideDelay)}.bind(this)}),this.current=b,this.menus[b]=c,this.menus[b]):null}return null},_getTarget:function(b){return b=a(b||this.node),this.readValue(b,this.options.getUrl)||b.attr("href")},__hideChild:function(b){b=a(b),b.removeClass(Toolkit.options.isPrefix+"open"),b.children(this.options.contentElement).removeAttr("style"),this.fireEvent("hideChild",b)},__positionChild:function(b){var c=b.children(this.options.contentElement);if(c){var d=c.children();c.css("width",d.outerWidth()*d.length+"px");var e=a(window),f=e.height()+e.scrollTop(),g=e.width(),h=b.offset().top,i=b.outerHeight(),j=b.offset().left+b.outerWidth(),k=j+c.outerWidth();k>=g?c.addClass("push-left"):c.removeClass("push-left"),h>f/2?c.css("top","-"+(c.outerHeight()-i)+"px"):c.css("top",0),b.addClass(Toolkit.options.isPrefix+"open"),this.fireEvent("showChild",b)}},__show:function(b){var c=a(b.target),d=this.node&&c[0]===this.node[0];if(this.isVisible()){if(Toolkit.isTouch?d&&"a"===this.node.prop("tagName").toLowerCase()||b.preventDefault():b.preventDefault(),"click"===this.options.mode&&this.hide(),d)return}else b.preventDefault();this.show(c)}},{className:"",context:null,mode:"hover",getUrl:"href",xOffset:0,yOffset:0,showDelay:350,hideDelay:1e3,itemLimit:15,contentElement:".flyout",template:''}),Toolkit.createComponent("flyout",function(a,b){return new Toolkit.Flyout(this,a,b)},!0)}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-input.min.js b/dist/jquery/toolkit-input.min.js
index 11578ff4..b6c66bb8 100644
--- a/dist/jquery/toolkit-input.min.js
+++ b/dist/jquery/toolkit-input.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";Toolkit.Input=Toolkit.Component.extend(function(a,b){this.component="Input",this.version="1.1.0",this.options=b=this.setOptions(b),this.element=a=this.setElement(a),b.checkbox&&a.find(b.checkbox).inputCheckbox(b),b.radio&&a.find(b.radio).inputRadio(b),b.select&&a.find(b.select).inputSelect(b),this.fireEvent("init")},{buildWrapper:function(){var b=a("").addClass(Toolkit.options.vendor+"custom-input").insertBefore(this.input).append(this.input);return this.options.copyClasses&&this.copyClasses(this.input,b),b},copyClasses:function(b,c){var d=(a(b).attr("class")||"").replace(/\binput\b/,"").trim();d&&a(c).addClass(d)}},{checkbox:"input:checkbox",radio:"input:radio",select:"select"}),Toolkit.Input.Checkbox=Toolkit.Input.extend(function(b,c){this.component="Input.Checkbox",this.version="1.1.0",this.options=this.setOptions(c),this.input=a(b),this.wrapper=this.buildWrapper(),this.element=this.setElement(a("").addClass(Toolkit.options.vendor+"checkbox").attr("for",this.input.attr("id")).insertAfter(this.input),this.options),this.fireEvent("init")},{},{copyClasses:!0}),Toolkit.Input.Radio=Toolkit.Input.extend(function(b,c){this.component="Input.Radio",this.version="1.1.0",this.options=this.setOptions(c),this.input=a(b),this.wrapper=this.buildWrapper(),this.element=this.setElement(a("").addClass(Toolkit.options.vendor+"radio").attr("for",this.input.attr("id")).insertAfter(this.input),this.options),this.fireEvent("init")},{},{copyClasses:!0}),Toolkit.Input.Select=Toolkit.Input.extend(function(b,c){this.component="Input.Select",this.version="1.1.0",this.options=c=this.setOptions(c),this.input=b=a(b),this.multiple=b.prop("multiple"),this.multiple&&c.native||(this.wrapper=this.buildWrapper(),this.element=this.buildButton(),this.dropdown=null,this.currentIndex=0,this.input.change(this.__change.bind(this)),this.options.native||(this.buildDropdown(),this.input.css("z-index",1).blur(this.hide.bind(this)),this.dropdown.clickout(this.hide.bind(this)),this.element.clickout(this.hide.bind(this)).click(this.__toggle.bind(this))),this.multiple||a(window).keydown(this.__cycle.bind(this)),this.input.change(),this.fireEvent("init"))},{buildButton:function(){var b=Toolkit.options.vendor,c=a("").addClass(b+"select").append(a("").addClass(b+"select-arrow").html(this.options.arrowContent)).append(a("").addClass(b+"select-label").html(Toolkit.options.loadingMessage)).css("min-width",this.input.width()).insertAfter(this.input);return this.multiple&&this.input.css("max-height",c.height()),c},buildDropdown:function(){var b=Toolkit.options.vendor,c=this.input,d=this.options,e=this.buildOption.bind(this),f=a("").addClass(b+"drop--down").addClass(b+"select-options"),g=a("
"),h=0,i=this;return this.dropdown=f,c.children().each(function(){var c=a(this);"optgroup"===c.prop("tagName").toLowerCase()?(0===h&&(d.hideFirst=!1),g.append(a("").addClass(b+"drop-heading").text(c.attr("label"))),c.children().each(function(){var b=a(this);c.prop("disabled")&&b.prop("disabled",!0),b.prop("selected")&&(i.currentIndex=h),g.append(e(b,h)),h++})):(c.prop("selected")&&(i.currentIndex=h),g.append(e(c,h)),h++)}),d.hideSelected&&!d.multiple&&f.addClass("hide-selected"),d.hideFirst&&f.addClass("hide-first"),this.multiple&&f.addClass(Toolkit.options.isPrefix+"multiple"),this.wrapper.append(f.append(g)),f},buildOption:function(b,c){var d,e=this.input,f=this.dropdown,g=Toolkit.options.isPrefix+"active",h=a(""),i=b.text();b.prop("selected")&&h.addClass(g),(d=this.readValue(b,this.options.getDescription))&&(i+=' '+d+"");var j=a("").html(i).attr("href","javascript:;");if(this.options.copyClasses&&this.copyClasses(b,h),h.append(j),b.prop("disabled"))return h.addClass(Toolkit.options.isPrefix+"disabled"),h;if(this.multiple)j.click(function(){b.prop("selected")?(b.prop("selected",!1),a(this).parent().removeClass(g)):(b.prop("selected",!0),a(this).parent().addClass(g)),e.change()});else{var k=this;j.click(function(){f.find("li").removeClass(g),a(this).parent().addClass(g),k.hide(),k.currentIndex=c,e.val(b.val()),e.change()})}return h},hide:function(){this.element.removeClass(Toolkit.options.isPrefix+"active"),this.dropdown&&this.dropdown.conceal(),this.fireEvent("hide")},show:function(){this.element.addClass(Toolkit.options.isPrefix+"active"),this.dropdown&&this.dropdown.reveal(),this.fireEvent("show")},__change:function(b){var c=a(b.target),d=c.find("option"),e=[],f=[],g=this;if(d.each(function(){this.selected&&(e.push(this),f.push(g.readValue(this,g.options.getOptionLabel)||this.textContent))}),this.multiple){var h=this.readValue(c,this.options.getDefaultLabel),i=this.options.multipleFormat,j=f.length;if(!f.length&&h)f=h;else if("count"===i)f=this.options.countMessage.replace("{count}",j).replace("{total}",d.length);else if("list"===i){var k=this.options.listLimit;f=f.splice(0,k).join(", "),j>k&&(f+=" ...")}}else f=f.join(", ");c.parent().find("."+Toolkit.options.vendor+"select-label").text(f),this.fireEvent("change",[c.val(),e])},__cycle:function(b){if(this.dropdown.is(":shown")&&a.inArray(b.keyCode,[38,40,13,27])>=0){b.preventDefault();var c=this.input.find("option"),d=this.dropdown.find("a"),e=Toolkit.options.isPrefix+"active",f=this.currentIndex;switch(b.keyCode){case 13:case 27:return void this.hide();case 38:f=this.__loop(f,-1,c);break;case 40:f=this.__loop(f,1,c)}c.prop("selected",!1),c[f].selected=!0,d.parent().removeClass(e),d.item(f).parent().addClass(e),this.currentIndex=f,this.input.change()}},__loop:function(a,b,c){var d=this.options.hideFirst;for(a+=b;"undefined"==typeof c[a]||c[a].disabled||0===a&&d;)a+=b,a>=c.length?a=0:0>a&&(a=c.length-1);return a},__toggle:function(){this.enabled&&!this.input.prop("disabled")&&(this.dropdown.is(":shown")?this.hide():this.show())}},{copyClasses:!0,"native":!1,multipleFormat:"count",countMessage:"{count} of {total} selected",listLimit:3,hideFirst:!1,hideSelected:!1,arrowContent:'',getDefaultLabel:"title",getOptionLabel:"title",getDescription:"data-description"}),Toolkit.createComponent("input",function(a){return new Toolkit.Input(this,a)}),Toolkit.createComponent("inputRadio",function(a){return new Toolkit.Input.Radio(this,a)}),Toolkit.createComponent("inputCheckbox",function(a){return new Toolkit.Input.Checkbox(this,a)}),Toolkit.createComponent("inputSelect",function(a){return new Toolkit.Input.Select(this,a)})}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-lazyload.min.js b/dist/jquery/toolkit-lazyload.min.js
index d0a20d3d..84c89484 100644
--- a/dist/jquery/toolkit-lazyload.min.js
+++ b/dist/jquery/toolkit-lazyload.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";Toolkit.LazyLoad=Toolkit.Component.extend(function(b,c){this.component="LazyLoad",this.version="1.0.0",this.options=c=this.setOptions(c),this.elements=this.setElement(b,this.options),this.element=null,this.isLoaded=!1,this.loaded=0,a(c.context||window).on({scroll:a.throttle(this.load.bind(this),c.throttle),resize:a.throttle(this.load.bind(this),c.throttle)}),a(function(){this.load(),c.forceLoad&&setTimeout(this.loadAll.bind(this),c.delay)}.bind(this)),this.fireEvent("init")},{inViewport:function(b){var c=a(window),d=this.options.threshold,e=c.scrollTop(),f=c.scrollLeft(),g=a(b).offset();return g.top>=e-d&&g.top<=e+c.height()+d&&g.left>=f-d&&g.left<=f+c.width()+d},load:function(){return this.isLoaded?!1:this.loaded===this.elements.length?(this.shutdown(),!1):(this.elements.each(function(a,b){b&&this.inViewport(b)&&this.show(b,a)}.bind(this)),this.fireEvent("load"),!0)},loadAll:function(){return this.isLoaded?!1:(this.elements.each(function(a,b){this.show(b,a)}.bind(this)),this.fireEvent("loadAll"),this.shutdown(),!0)},show:function(b,c){b=a(b),b.removeClass(this.elements.selector.substr(1)),b.find("img").each(function(){var b=a(this),c=b.data("lazyload");c&&b.attr("src",c)}),this.element=b,this.elements.splice(c,1,null),this.loaded++,this.fireEvent("show",b)},shutdown:function(){this.isLoaded=!0,a(this.options.context||window).off({scroll:this.load.bind(this),resize:this.load.bind(this)}),this.fireEvent("shutdown")}},{forceLoad:!1,delay:1e4,threshold:150,throttle:50,context:null}),Toolkit.createComponent("lazyLoad",function(a){return new Toolkit.LazyLoad(this,a)},!0)}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-mask.min.js b/dist/jquery/toolkit-mask.min.js
index ae0f1fb2..2e37b6f3 100644
--- a/dist/jquery/toolkit-mask.min.js
+++ b/dist/jquery/toolkit-mask.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";Toolkit.Mask=Toolkit.Component.extend(function(b,c){this.component="Mask",this.version="1.1.0",this.options=this.setOptions(c),this.element=b=this.setElement(b),this.mask=null,this.message=null;var d=Toolkit.options.vendor,e=d+"mask";b.is("body")||(b.addClass(d+"maskable"),"static"===b.css("position")&&b.css("position","relative"));var f=b.find("> ."+e);f.length||(f=a("").addClass(e)),this.setMask(f),this.fireEvent("init")},{hide:function(){this.mask.conceal(),this.element.removeClass(Toolkit.options.isPrefix+"masked"),this.fireEvent("hide")},setMask:function(b){var c=this.options;b.addClass("hide").appendTo(this.element),this.element.is("body")&&b.css("position","fixed"),c.revealOnClick&&b.click(this.hide.bind(this)),this.mask=b,this.message=b.find("> "+c.messageElement),this.message.length||(this.message=a("").addClass(c.messageElement.substr(1)).appendTo(b),c.messageContent&&this.message.html(c.messageContent))},show:function(a){this.enabled&&(this.node=a,this.mask.reveal(),this.element.addClass(Toolkit.options.isPrefix+"masked"),this.fireEvent("show"))},toggle:function(){this.mask.is(":shown")?this.hide():this.show()}},{revealOnClick:!1,messageContent:"",messageElement:".mask-message"}),Toolkit.createComponent("mask",function(a){return new Toolkit.Mask(this,a)})}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-matrix.min.js b/dist/jquery/toolkit-matrix.min.js
index c6efa76b..8b6dd726 100644
--- a/dist/jquery/toolkit-matrix.min.js
+++ b/dist/jquery/toolkit-matrix.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";Toolkit.Matrix=Toolkit.Component.extend(function(b,c){this.component="Matrix",this.version="1.0.1",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.items=b.find(c.selector),this.matrix=[],this.wrapperWidth=0,this.colWidth=0,this.colCount=0,this.images=[],this.imagesLoaded=0,b.addClass(Toolkit.options.vendor+"matrix"),a(window).on("resize",a.debounce(this.__resize.bind(this))),this.fireEvent("init"),c.defer?this._deferRender():this.render()},{append:function(b){a(b).addClass(Toolkit.options.vendor+"matrix-item").appendTo(this.element).css("opacity",0),this.refresh()},disable:function(){this.enabled=!1,this.element.removeAttr("style"),this.items.removeClass(Toolkit.options.vendor+"matrix-item").removeAttr("style")},enable:function(){this.enabled=!0,this.items.addClass(Toolkit.options.vendor+"matrix-item")},prepend:function(b){a(b).addClass(Toolkit.options.vendor+"matrix-item").prependTo(this.element).css("opacity",0),this.refresh()},refresh:function(){this.items=this.element.find(this.options.selector),this.render()},remove:function(b){b=a(b).get(0),this.items.each(function(){var c=a(this);return c.get(0)===b?(c.remove(),!1):!0}),this.refresh()},render:function(){return this._calculateColumns(),this.items.length1&&(f>b?(a=f-b,c-=a/e):b>f&&(a=b-f,c+=a/e)),this.wrapperWidth=b,this.colWidth=c,this.colCount=e},_deferRender:function(){this.imagesLoaded=0,this.images=this.element.find("img"),this.images.length?this.images.each(function(a,b){var c=b.src;b.onload=this.__load.bind(this),b.onerror=this.__load.bind(this),b.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",b.src=c}.bind(this)):this.render()},_organizeItems:function(){var a,b,c,d=0,e=this.items.length;this.matrix=[];for(var f=0;e>f;f++){if(a=this.items.item(f),c=a.outerWidth(),b=Math.max(Math.round(c/this.colWidth),1),this.matrix.push({item:a,span:b}),b>1)for(var g=1;b>g;g++)d++,this.matrix&&this.matrix.push({item:a,span:!1});d++,d>=this.colCount&&(d=0)}},_positionItems:function(){var a,b,c,d,e,f,g=this.options.gutter,h=this.matrix,i=this.options.rtl?"right":"left",j=0,k=[],l=0,m={margin:0,position:"absolute"};for(d=0;dd;d++){if(a=h[d],b=a.span,(l>=this.colCount||b+l>this.colCount)&&(l=0,j=0),b){for(c=0,f=0;b>f;f++)k[l+f]>c&&(c=k[l+f]);for(m.top=c,m[i]=j,m.width=(this.colWidth+g)*b-g,a.item.css(m).reveal(),f=0;b>f;f++)k[l+f]=a.item.outerHeight()+g+c}j+=this.colWidth+g,l++}this.element.css("height",Math.max.apply(Math,k))},__load:function(a){(!a||"load"===a.type&&a.target.complete||"error"===a.type&&!a.target.complete)&&this.imagesLoaded++,this.imagesLoaded===this.images.length&&this.render()},__resize:function(){this.element.hasClass(Toolkit.options.vendor+"matrix")&&this.refresh()}},{className:"",selector:".matrix-item",width:200,gutter:20,rtl:!1,defer:!0,template:!1}),Toolkit.createComponent("matrix",function(a){return new Toolkit.Matrix(this,a)})}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-modal.min.js b/dist/jquery/toolkit-modal.min.js
index 75306bdf..bb82d989 100644
--- a/dist/jquery/toolkit-modal.min.js
+++ b/dist/jquery/toolkit-modal.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";Toolkit.Modal=Toolkit.Component.extend(function(b,c){var d;if(this.component="Modal",this.version="1.1.0",this.options=c=this.setOptions(c),this.element=d=this.createElement(),this.nodes=b=a(b),this.node=null,this.elementBody=d.find(c.contentElement),this.blackout=null,this.drag=null,this.cache={},c.fullScreen&&(d.addClass(Toolkit.options.isPrefix+"fullscreen"),c.draggable=!1),c.draggable&&a.ui&&a.ui.draggable){var e=Toolkit.options.isPrefix;this.drag=d.draggable({appendTo:"body",containment:"window",cursor:"grabbing",start:function(a,b){b.helper.addClass(e+"dragging")},stop:function(a,b){b.helper.removeClass(e+"dragging")}}),d.addClass(e+"draggable")}c.blackout&&(this.blackout=Toolkit.Blackout.factory(),c.stopScroll&&this.blackout.element.on("hide.toolkit.blackout",function(b,c){c&&a("body").css("overflow","")})),d.clickout(this.__hide.bind(this)),b.clickout(this.__hide.bind(this)),a(c.context||document).on("click",b.selector,this.__show.bind(this)),a(window).on("keydown",function(a){27===a.keyCode&&d.is(":shown")&&this.hide()}.bind(this)),d.on("click",c.closeEvent,this.__hide.bind(this)).on("click",c.submitEvent,this.__submit.bind(this)),this.fireEvent("init")},{hide:function(){this.element.conceal(),this.blackout&&this.blackout.hide(),this.fireEvent("hide")},position:function(b){b!==!0&&(this.elementBody.html(b),this.fireEvent("load",b),this.blackout&&this.blackout.hideLoader(),this.element.reveal(),this.options.fullScreen&&this.element.find(this.options.contentElement).css("min-height",a(window).height()),this.fireEvent("show"))},show:function(b,c){b=a(b);var d=this.options,e=d.ajax;c?e=!1:b&&(c=this.readValue(b,d.getContent)||b.attr("href"),c&&c.match(/^#[a-z0-9_\-\.:]+$/i)&&(c=a(c).html(),e=!1)),c&&(this.node=b,this.blackout&&this.blackout.show(),d.stopScroll&&a("body").css("overflow","hidden"),e?this.cache[c]?this.position(this.cache[c]):this.requestData(c):this.position(c))},__hide:function(a){a.preventDefault(),this.hide()},__show:function(a){a.preventDefault(),this.enabled&&this.show(a.currentTarget)},__submit:function(b){b.preventDefault();var c=a(b.target),d=this.elementBody.find("form:first");if(d){this.fireEvent("submit",[c,d]);var e={url:d.attr("action"),type:(d.attr("method")||"post").toUpperCase()};window.FormData?(e.processData=!1,e.contentType=!1,e.data=new FormData(d[0])):e.data=d.serialize(),this.requestData(e)}}},{animation:"fade",className:"",context:null,ajax:!0,draggable:!1,blackout:!0,fullScreen:!1,stopScroll:!0,getContent:"data-modal",contentElement:".modal-inner",closeElement:".modal-close",closeEvent:".modal-event-close",submitEvent:".modal-event-submit",template:'
'}),Toolkit.createComponent("modal",function(a){return new Toolkit.Modal(this,a)},!0)}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-pin.min.js b/dist/jquery/toolkit-pin.min.js
index f0cc4f21..bfb93464 100644
--- a/dist/jquery/toolkit-pin.min.js
+++ b/dist/jquery/toolkit-pin.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";Toolkit.Pin=Toolkit.Component.extend(function(b,c){this.component="Pin",this.version="1.0.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.viewport=null,this.elementHeight=null,this.elementTop=parseInt(b.css("top"),10),this.parentHeight=null,this.parentTop=null,b.addClass(Toolkit.options.vendor+"pin"),a(window).on("scroll",a.throttle(this.__scroll.bind(this),c.throttle)).on("resize",a.throttle(this.__resize.bind(this),c.throttle)),a(document).ready(this.__resize.bind(this)),this.fireEvent("init")},{calculate:function(){var b=a(window),c=this.element.parents(this.options.context);this.viewport={width:b.width(),height:b.height()},this.elementHeight=this.element.outerHeight(),this.parentHeight=c.outerHeight(),this.parentTop=c.offset().top},__resize:function(){this.calculate(),this.parentHeight>=this.elementHeight?this.enable():this.disable(),this.fireEvent("resize")},__scroll:function(){if(this.options.calculate&&this.calculate(),this.enabled&&!this.element.is(":hidden")){var b=this.options,c=b.fixed,d=this.elementHeight,e=this.elementTop,f=this.parentHeight,g=this.parentTop,h=a(window).scrollTop(),i={},j=b.xOffset,k=0;if(g>h)return void this.element.removeAttr("style").addClass(Toolkit.options.isPrefix+"pinned");var l=h+d,m=f+g;c?l>=m?(k="auto",i.position="absolute",i.bottom=0):(i.position="fixed",i.bottom="auto"):(i.position="absolute",k+=l>=m?f-d:h-g+b.yOffset,e&&e>k&&(k=e)),i[b.location]=j,i.top=k,this.element.css(i).addClass(Toolkit.options.isPrefix+"pinned"),this.fireEvent("scroll")}}},{animation:"",location:"right",xOffset:0,yOffset:0,throttle:50,fixed:!1,calculate:!1,context:null}),Toolkit.createComponent("pin",function(a){return new Toolkit.Pin(this,a)})}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-popover.min.js b/dist/jquery/toolkit-popover.min.js
index f71237c3..7327b664 100644
--- a/dist/jquery/toolkit-popover.min.js
+++ b/dist/jquery/toolkit-popover.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
-!function(a){"use strict";Toolkit.Popover=Toolkit.Tooltip.extend(function(b,c){var d;this.component="Popover",this.version="1.1.0",this.options=c=this.setOptions(c),this.nodes=b=a(b),this.node=null,this.element=d=this.createElement(),this.elementHead=d.find(c.titleElement),this.elementBody=d.find(c.contentElement),this.cache={},d.addClass(a.hyphenate(c.position)).clickout(this.hide.bind(this)),a(c.context||document).on("click",b.selector,this.__show.bind(this)),this.fireEvent("init")},{},{ajax:!1,position:"topCenter",loadingMessage:Toolkit.messages.loading,showLoading:!0,showTitle:!0,getTitle:"title",getContent:"data-popover",xOffset:0,yOffset:0,delay:0,titleElement:".popover-head",contentElement:".popover-body",template:'
'}),Toolkit.createComponent("popover",function(a){return new Toolkit.Popover(this,a)},!0)}(jQuery);
\ No newline at end of file
+!function(a){"use strict";Toolkit.Popover=Toolkit.Tooltip.extend(function(b,c){var d;this.component="Popover",this.version="1.1.0",this.options=c=this.setOptions(c),this.nodes=b=a(b),this.node=null,this.element=d=this.createElement(),this.elementHead=d.find(c.titleElement),this.elementBody=d.find(c.contentElement),this.cache={},d.addClass(a.hyphenate(c.position)).clickout(this.hide.bind(this)),a(c.context||document).on("click",b.selector,this.__show.bind(this)),this.fireEvent("init")},{},{ajax:!1,animation:"",position:"topCenter",loadingMessage:Toolkit.messages.loading,showLoading:!0,showTitle:!0,getTitle:"title",getContent:"data-popover",xOffset:0,yOffset:0,delay:0,titleElement:".popover-head",contentElement:".popover-body",template:'
'}),Toolkit.createComponent("showcase",function(a){return new Toolkit.Showcase(this,a)},!0)}(jQuery);
\ No newline at end of file
+!function(a){"use strict";Toolkit.Showcase=Toolkit.Component.extend(function(b,c){var d;this.component="Showcase",this.version="1.1.0",this.options=c=this.setOptions(c),this.element=d=this.createElement(),Toolkit.hasTransition||(c.transition=1),this.nodes=b=a(b),this.items=d.find(c.itemsElement),this.tabs=d.find(c.tabsElement),c.gutter+=d.height()-this.items.height(),this.prevButton=d.find(c.prevElement),this.nextButton=d.find(c.nextElement),this.data=[],this.previousIndex=0,this.currentIndex=0,this.blackout=c.blackout?Toolkit.Blackout.factory():null,d.clickout(this.hide.bind(this)),b.clickout(this.hide.bind(this)),a(c.context||document).on("click",b.selector,this.__show.bind(this)),a(window).on("keydown",function(b){if(d.is(":shown"))switch(a.inArray(b.keyCode,[37,38,39,40])>=0&&b.preventDefault(),b.keyCode){case 27:this.hide();break;case 37:this.prev();break;case 38:this.jump(0);break;case 39:this.next();break;case 40:this.jump(-1)}}.bind(this)),d.on("click",c.closeEvent,this.hide.bind(this)).on("click",c.nextEvent,this.next.bind(this)).on("click",c.prevEvent,this.prev.bind(this)).on("click",c.jumpEvent,this.__jump.bind(this)).on("swipeleft swipeup",this.next.bind(this)).on("swiperight swipedown",this.prev.bind(this)),this.fireEvent("init")},{hide:function(){this.blackout&&this.blackout.hide(),this.options.stopScroll&&a("body").css("overflow",""),this.element.is(":shown")&&(this.element.conceal().removeClass(Toolkit.options.isPrefix+"single"),this.items.removeAttr("style").children("li").removeClass("show"),this.fireEvent("hide"))},jump:function(b){b>=this.data.length?b=0:0>b&&(b=this.data.length-1);var c=this,d=this.options,e=this.element,f=this.items,g=f.children("li"),h=g.item(b),i=this.data,j=i[b];if(this.previousIndex=this.currentIndex,this.currentIndex=b,this.tabs){var k=this.tabs.find("a");k.removeClass(Toolkit.options.isPrefix+"active").item(b).addClass(Toolkit.options.isPrefix+"active")}if(g.removeClass("show"),h.data("width"))this._resize(h.data("width"),h.data("height")),setTimeout(function(){h.addClass("show"),c.position()},d.transition);else{e.addClass(Toolkit.options.isPrefix+"loading");var l=new Image;l.src=j.image,l.onload=function(){c._resize(this.width,this.height),h.data("width",this.width).data("height",this.height),j.title&&h.append(a("").addClass(Toolkit.options.vendor+"showcase-caption").html(j.title)),setTimeout(function(){e.removeClass(Toolkit.options.isPrefix+"loading"),h.addClass("show").append(l),c.position()},d.transition)}}this.fireEvent("jump",b)},next:function(){this.jump(this.currentIndex+1)},position:function(){this.blackout&&this.blackout.hideLoader(),this.element.reveal(),this.fireEvent("show")},prev:function(){this.jump(this.currentIndex-1)},show:function(b){this.node=b=a(b),this.currentIndex=this.previousIndex=0,this.element.addClass(Toolkit.options.isPrefix+"loading");var c=this.options,d=this.readValue.bind(this),e=d(b,c.getCategory),f=[],g=0;if(e)for(var h,i=0,j=0;h=this.nodes[i];i++)d(h,c.getCategory)===e&&(h===b&&(g=j),f.push({title:d(h,c.getTitle),category:e,image:d(h,c.getImage)}),j++);else f.push({title:d(b,c.getTitle),category:e,image:d(b,c.getImage)});this.blackout&&this.blackout.show(),c.stopScroll&&a("body").css("overflow","hidden"),this._buildItems(f),this.jump(g)},_buildItems:function(b){this.data=b,this.items.empty(),this.tabs.empty();for(var c,d,e,f=0;e=b[f];f++)c=a(""),c.appendTo(this.items),d=a("").addClass(this.options.jumpEvent.substr(1)).attr("href","javascript:;").data("index",f),c=a(""),c.appendTo(this.tabs).append(d);b.length<=1&&this.element.addClass(Toolkit.options.isPrefix+"single"),this.fireEvent("load",b)},_resize:function(b,c){var d,e,f=a(window).width(),g=a(window).height(),h=this.options.gutter;if(b+h>f){var i=f-2*h;d=b/c,e=b-i,b=i,c-=Math.round(e/d)}else if(c+h>g){var j=g-2*h;d=c/b,e=c-j,b-=Math.round(e/d),c=j}this.items.css({width:b,height:c})},__jump:function(b){b.preventDefault(),this.jump(a(b.target).data("index")||0)},__show:function(a){a.preventDefault(),this.show(a.currentTarget)}},{className:"",blackout:!0,stopScroll:!0,transition:300,gutter:50,getCategory:"data-showcase",getImage:"href",getTitle:"title",itemsElement:".showcase-items",tabsElement:".showcase-tabs",prevElement:".showcase-prev",nextElement:".showcase-next",closeEvent:".showcase-event-close",jumpEvent:".showcase-event-jump",prevEvent:".showcase-event-prev",nextEvent:".showcase-event-next",template:'
'}),Toolkit.createComponent("showcase",function(a){return new Toolkit.Showcase(this,a)},!0)}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-stalker.min.js b/dist/jquery/toolkit-stalker.min.js
index 4874ac72..b5a02181 100644
--- a/dist/jquery/toolkit-stalker.min.js
+++ b/dist/jquery/toolkit-stalker.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";Toolkit.Stalker=Toolkit.Component.extend(function(b,c){this.component="Stalker",this.version="1.0.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),c.target&&c.marker&&(this.target=null,this.targets=[],this.marker=null,this.markers=[],this.offsets=[],this.container=null,b.addClass(Toolkit.options.vendor+"stalker"),this.container="auto"===b.css("overflow")?b:a(window),this.refresh(),this.container.on("scroll",a.throttle(this.__scroll.bind(this),c.throttle)),a(document).ready(this.__scroll.bind(this)),this.fireEvent("init"))},{activate:function(b,c){this.marker=a(b),this.target=c=a(c);var d=this.targets;this.options.applyToParent?(d.parent().removeClass(Toolkit.options.isPrefix+"active"),c.parent().addClass(Toolkit.options.isPrefix+"active")):(d.removeClass(Toolkit.options.isPrefix+"active"),c.addClass(Toolkit.options.isPrefix+"active")),this.fireEvent("activate",[b,c])},deactivate:function(a){var b=this.targets;this.options.applyToParent?b.parent().removeClass(Toolkit.options.isPrefix+"active"):b.removeClass(Toolkit.options.isPrefix+"active"),this.marker=null,this.target=null,this.fireEvent("deactivate",a)},refresh:function(){"auto"!==this.element.css("overflow")||this.element.is("body")||(this.element[0].scrollTop=0),this.target=null,this.targets=a(this.options.target).addClass(Toolkit.options.vendor+"stalker-target"),this.marker=null,this.markers=a(this.options.marker).addClass(Toolkit.options.vendor+"stalker-marker");var b,c=this.container.is(window),d=this.element.offset().top,e=[];this.markers.each(function(f,g){g=a(g),b=g.offset(),c||(b.top-=d),e.push(b)}),this.offsets=e},__scroll:function(){if(this.enabled){var b=this.container.scrollTop(),c=this.markers,d=this.targets,e=this.offsets,f=this.options.onlyWithin,g=this.options.threshold;c.each(function(c,h){h=a(h);var i=e[c],j=i.top-g,k=i.top+h.height()+g,l=[];f&&b>=j&&k>=b||!f&&b>=j?(l=d.filter(function(){return a(this).attr("href")==="#"+h.attr("id")}),l.length&&this.activate(h,l.item(0))):this.marker&&this.marker.is(h)&&this.deactivate(h)}.bind(this)),this.fireEvent("scroll")}}},{target:"",marker:"",threshold:50,throttle:50,onlyWithin:!0,applyToParent:!0}),Toolkit.createComponent("stalker",function(a){return new Toolkit.Stalker(this,a)})}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-tabs.min.js b/dist/jquery/toolkit-tabs.min.js
index 25798e67..7f878730 100644
--- a/dist/jquery/toolkit-tabs.min.js
+++ b/dist/jquery/toolkit-tabs.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
-!function(a){"use strict";Toolkit.Tabs=Toolkit.Component.extend(function(b,c){this.component="Tabs",this.version="1.0.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),c.cookie||(c.cookie=b.attr("id")),this.nav=b.find(c.navElement),this.sections=b.find(c.sectionsElement).conceal(),this.tabs=this.nav.find("ul > li > a").each(function(b){a(this).data("index",b).removeClass(Toolkit.options.isPrefix+"active")}),this.previousIndex=0,this.currentIndex=0,this.cache={},this.tabs.on("click"===c.mode?"click":"mouseover",this.__show.bind(this)),"hover"===c.mode&&c.preventDefault&&this.tabs.on("click",function(a){a.preventDefault()}),this.fireEvent("init");var d=c.defaultIndex;if(c.persistState){var e="toolkit.tabs."+c.cookie,f=document.cookie.match("(?:^|;)\\s*"+e.replace(/[\-\.\+\*]/g,"\\$&")+"=([^;]*)");f&&f.length&&(d=decodeURIComponent(f[1]))}else if(c.loadFragment&&location.hash){var g=this.tabs.filter(function(){return a(this).attr("href")===location.hash});g.length&&(d=g.item(0).data("index"))}this.tabs[d]||(d=0),this.jump(d)},{hide:function(){this.sections.conceal(),this.fireEvent("hide",this.node)},jump:function(a){this.tabs[a]&&this.show(this.tabs[a])},show:function(b){b=a(b);var c=b.data("index"),d=this.sections.item(c),e=this.readValue(b,this.options.getUrl);if(this.options.ajax&&e&&"#"!==e.substr(0,1)&&!this.cache[e]&&this.requestData(e,function(){d.html(this._loadingTemplate()).addClass(Toolkit.options.isPrefix+"loading")},function(a){this.cache[e]=!0,d.html(a).removeClass(Toolkit.options.isPrefix+"loading"),this.fireEvent("load",a)},function(){d.html(this._errorTemplate()).removeClass(Toolkit.options.isPrefix+"loading").addClass(Toolkit.options.hasPrefix+"failed")}),this.nav.find("ul > li").removeClass(Toolkit.options.isPrefix+"active"),c===this.currentIndex&&this.options.collapsible?d.is(":shown")?d.conceal():(b.parent().addClass(Toolkit.options.isPrefix+"active"),d.reveal()):(this.hide(),b.parent().addClass(Toolkit.options.isPrefix+"active"),d.reveal()),this.options.persistState){var f="toolkit.tabs."+this.options.cookie+"="+encodeURIComponent(c),g=new Date;g.setTime(g.getTime()+24*this.options.cookieDuration*60*60*1e3),f+="; expires="+g.toUTCString(),f+="; path=/",document.cookie=f}this.previousIndex=this.currentIndex,this.currentIndex=c,this.fireEvent("show",b),this.node=b},__show:function(b){(this.options.preventDefault||this.options.ajax&&"#"!==a(b.target).attr("href").substr(0,1))&&b.preventDefault(),this.enabled&&this.show(b.target)}},{mode:"click",ajax:!0,collapsible:!1,defaultIndex:0,persistState:!1,preventDefault:!0,loadFragment:!0,cookie:null,cookieDuration:30,getUrl:"href",navElement:".tabs-nav",sectionsElement:".tabs-section"}),Toolkit.createComponent("tabs",function(a){return new Toolkit.Tabs(this,a)})}(jQuery);
\ No newline at end of file
+!function(a){"use strict";Toolkit.Tabs=Toolkit.Component.extend(function(b,c){this.component="Tabs",this.version="1.0.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),c.cookie||(c.cookie=b.attr("id")),this.nav=b.find(c.navElement),this.sections=b.find(c.sectionsElement).conceal(),this.tabs=this.nav.find("ul > li > a").each(function(b){a(this).data("index",b).removeClass(Toolkit.options.isPrefix+"active")}),this.previousIndex=0,this.currentIndex=0,this.cache={},this.tabs.on("click"===c.mode?"click":"mouseover",this.__show.bind(this)),"hover"===c.mode&&c.preventDefault&&this.tabs.on("click",function(a){a.preventDefault()}),this.fireEvent("init");var d=c.defaultIndex;c.persistState?d=a.cookie("toolkit.tabs."+c.cookie):c.loadFragment&&location.hash&&(d=this.tabs.filter(function(){return a(this).attr("href")===location.hash}).item(0).data("index")),d&&this.tabs[d]||(d=0),this.jump(d)},{hide:function(){this.sections.conceal(),this.fireEvent("hide",this.node)},jump:function(a){this.tabs[a]&&this.show(this.tabs[a])},show:function(b){b=a(b);var c=b.data("index"),d=this.sections.item(c),e=this.readValue(b,this.options.getUrl),f=this.options;f.ajax&&e&&"#"!==e.substr(0,1)&&!this.cache[e]&&this.requestData(e,function(){d.html(this._loadingTemplate()).addClass(Toolkit.options.isPrefix+"loading")},function(a){this.cache[e]=!0,d.html(a).removeClass(Toolkit.options.isPrefix+"loading"),this.fireEvent("load",a)},function(){d.html(this._errorTemplate()).removeClass(Toolkit.options.isPrefix+"loading").addClass(Toolkit.options.hasPrefix+"failed")}),this.nav.find("ul > li").removeClass(Toolkit.options.isPrefix+"active"),c===this.currentIndex&&f.collapsible?d.is(":shown")?d.conceal():(b.parent().addClass(Toolkit.options.isPrefix+"active"),d.reveal()):(this.hide(),b.parent().addClass(Toolkit.options.isPrefix+"active"),d.reveal()),f.persistState&&a.cookie("toolkit.tabs."+f.cookie,c,{expires:f.cookieDuration}),this.previousIndex=this.currentIndex,this.currentIndex=c,this.fireEvent("show",b),this.node=b},__show:function(b){(this.options.preventDefault||this.options.ajax&&"#"!==a(b.target).attr("href").substr(0,1))&&b.preventDefault(),this.enabled&&this.show(b.target)}},{mode:"click",ajax:!0,collapsible:!1,defaultIndex:0,persistState:!1,preventDefault:!0,loadFragment:!0,cookie:null,cookieDuration:30,getUrl:"href",navElement:".tabs-nav",sectionsElement:".tabs-section"}),Toolkit.createComponent("tabs",function(a){return new Toolkit.Tabs(this,a)})}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-tooltip.min.js b/dist/jquery/toolkit-tooltip.min.js
index c3003a66..4bb7c9f1 100644
--- a/dist/jquery/toolkit-tooltip.min.js
+++ b/dist/jquery/toolkit-tooltip.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
-!function(a){"use strict";Toolkit.Tooltip=Toolkit.Component.extend(function(b,c){var d;this.component="Tooltip",this.version="1.1.0",this.options=c=this.setOptions(c),this.nodes=b=a(b),this.node=null,this.element=d=this.createElement(),this.elementHead=d.find(c.titleElement),this.elementBody=d.find(c.contentElement),this.cache={},d.addClass(a.hyphenate(c.position)),a(c.context||document).on("click"===c.mode?"click":"mouseover",b.selector,this.__show.bind(this)),"click"===c.mode&&d.clickout(this.hide.bind(this)),this.fireEvent("init")},{hide:function(){this.element.conceal(),this.fireEvent("hide")},position:function(a,b){var c=this.options;if(a!==!0)if(b=b||this.readValue(this.node,c.getTitle),b&&c.showTitle?this.elementHead.html(b).show():this.elementHead.hide(),a?this.elementBody.html(a).show():this.elementBody.hide(),this.fireEvent("load",a),c.follow){var d=this.__follow.bind(this);this.node.off("mousemove",d).on("mousemove",d),this.fireEvent("show")}else this.element.positionTo(c.position,this.node,{left:c.xOffset,top:c.yOffset}),setTimeout(function(){this.element.reveal(),this.fireEvent("show")}.bind(this),c.delay||0)},show:function(b,c,d){var e=this.options;b&&(b=a(b),"hover"===e.mode&&b.off("mouseleave",this.hide.bind(this)).on("mouseleave",this.hide.bind(this)),c=c||this.readValue(b,e.getContent)),c&&(this.node=b,e.ajax?this.cache[c]?this.position(this.cache[c],d):(e.showLoading&&this.position(e.loadingMessage),this.requestData(c)):(c.match(/^#[a-z0-9_\-\.:]+$/i)&&(c=a(c).html()),this.position(c,d)))},__follow:function(a){a.preventDefault();var b=this.options;this.element.positionTo(b.position,a,{left:b.xOffset,top:b.yOffset},!0).reveal()},__show:function(b){var c=a(b.target),d=this.node&&c[0]===this.node[0];if(this.element.is(":shown")){if(Toolkit.isTouch?d&&"a"===this.node.prop("tagName").toLowerCase()||b.preventDefault():b.preventDefault(),"click"===this.options.mode&&this.hide(),d)return}else b.preventDefault();this.show(c)}},{mode:"hover",ajax:!1,follow:!1,position:"topCenter",loadingMessage:Toolkit.messages.loading,showLoading:!0,showTitle:!0,getTitle:"title",getContent:"data-tooltip",mouseThrottle:50,xOffset:0,yOffset:0,delay:0,titleElement:".tooltip-head",contentElement:".tooltip-body",template:'
'}),Toolkit.createComponent("tooltip",function(a){return new Toolkit.Tooltip(this,a)},!0)}(jQuery);
\ No newline at end of file
+!function(a){"use strict";Toolkit.Tooltip=Toolkit.Component.extend(function(b,c){var d;this.component="Tooltip",this.version="1.1.0",this.options=c=this.setOptions(c),this.nodes=b=a(b),this.node=null,this.element=d=this.createElement(),this.elementHead=d.find(c.titleElement),this.elementBody=d.find(c.contentElement),this.cache={},d.addClass(a.hyphenate(c.position)),a(c.context||document).on("click"===c.mode?"click":"mouseover",b.selector,this.__show.bind(this)),"click"===c.mode&&d.clickout(this.hide.bind(this)),this.fireEvent("init")},{hide:function(){this.element.conceal(),this.fireEvent("hide")},position:function(a,b){var c=this.options;if(a!==!0)if(b=b||this.readValue(this.node,c.getTitle),b&&c.showTitle?this.elementHead.html(b).show():this.elementHead.hide(),a?this.elementBody.html(a).show():this.elementBody.hide(),this.fireEvent("load",a),c.follow){var d=this.__follow.bind(this);this.node.off("mousemove",d).on("mousemove",d),this.fireEvent("show")}else this.element.positionTo(c.position,this.node,{left:c.xOffset,top:c.yOffset}),setTimeout(function(){this.element.reveal(),this.fireEvent("show")}.bind(this),c.delay||0)},show:function(b,c,d){var e=this.options;b&&(b=a(b),"hover"===e.mode&&b.off("mouseleave",this.hide.bind(this)).on("mouseleave",this.hide.bind(this)),c=c||this.readValue(b,e.getContent)),c&&(this.node=b,e.ajax?this.cache[c]?this.position(this.cache[c],d):(e.showLoading&&this.position(e.loadingMessage),this.requestData(c)):(c.match(/^#[a-z0-9_\-\.:]+$/i)&&(c=a(c).html()),this.position(c,d)))},__follow:function(a){a.preventDefault();var b=this.options;this.element.positionTo(b.position,a,{left:b.xOffset,top:b.yOffset},!0).reveal()},__show:function(b){var c=a(b.target),d=this.node&&c[0]===this.node[0];if(this.element.is(":shown")){if(Toolkit.isTouch?d&&"a"===this.node.prop("tagName").toLowerCase()||b.preventDefault():b.preventDefault(),"click"===this.options.mode&&this.hide(),d)return}else b.preventDefault();this.show(c)}},{mode:"hover",animation:"",ajax:!1,follow:!1,position:"topCenter",loadingMessage:Toolkit.messages.loading,showLoading:!0,showTitle:!0,getTitle:"title",getContent:"data-tooltip",mouseThrottle:50,xOffset:0,yOffset:0,delay:0,titleElement:".tooltip-head",contentElement:".tooltip-body",template:'
'}),Toolkit.createComponent("tooltip",function(a){return new Toolkit.Tooltip(this,a)},!0)}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit-typeahead.min.js b/dist/jquery/toolkit-typeahead.min.js
index 0a9ec4cb..a7652462 100644
--- a/dist/jquery/toolkit-typeahead.min.js
+++ b/dist/jquery/toolkit-typeahead.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";Toolkit.TypeAhead=Toolkit.Component.extend(function(b,c){var d;if(b=a(b),"input"!==b.prop("tagName").toLowerCase())throw new Error("TypeAhead must be initialized on an input field");if(b.attr("autocomplete","off"),this.component="TypeAhead",this.version="1.1.0",this.options=c=this.setOptions(c),this.element=d=this.createElement(),this.input=b,this.shadow=null,this.index=-1,this.items=[],this.term="",this.timer=null,this.cache={},a.each({sorter:"sort",matcher:"match",builder:"build"},function(b,d){if(c[b]!==!1){var e;e=null===c[b]||"function"!==a.type(c[b])?this[d]:c[b],c[b]=e.bind(this)}}.bind(this)),c.prefetch&&"string"===a.type(c.source)){var e=c.source;a.getJSON(e,c.query,function(a){this.cache[e]=a}.bind(this))}c.shadow&&(this.wrapper=a("").addClass(Toolkit.options.vendor+"type-ahead-shadow"),this.shadow=this.input.clone().addClass(Toolkit.options.isPrefix+"shadow").removeAttr("id").prop("readonly",!0),this.input.addClass("not-shadow").replaceWith(this.wrapper),this.wrapper.append(this.input).append(this.shadow)),this.input.on({keyup:this.__lookup.bind(this),keydown:this.__cycle.bind(this)}),a(window).on("keydown",function(a){27===a.keyCode&&d.is(":shown")&&this.hide()}.bind(this)),d.clickout(this.hide.bind(this)),this.fireEvent("init")},{build:function(b){var c=a("",{href:"javascript:;"});return c.append(a("",{"class":Toolkit.options.vendor+"type-ahead-title",html:this.highlight(b.title)})),b.description&&c.append(a("",{"class":Toolkit.options.vendor+"type-ahead-desc",html:b.description})),c},hide:function(){this.shadow&&this.shadow.val(""),this.element.is(":shown")&&(this.element.conceal(),this.fireEvent("hide"))},highlight:function(a){for(var b,c=this.term.replace(/[\-\[\]\{\}()*+?.,\\^$|#]/g,"\\$&").split(" "),d=function(a){return''+a+""},e=0;b=c[e];e++)a=a.replace(new RegExp(b,"ig"),d);return a},lookup:function(b){this.term=b,this.timer=setTimeout(function(){var c=this.options,d=a.type(c.source);if(this.cache[b.toLowerCase()])this.process(this.cache[b.toLowerCase()]);else if("string"===d){var e=c.source,f=this.cache[e];if(f)this.process(f);else{var g=c.query;g.term=b,a.getJSON(e,g,this.process.bind(this))}}else if("array"===d)this.process(c.source);else{if("function"!==d)throw new Error("Invalid TypeAhead source type");var h=c.source.call(this);h&&this.process(h)}}.bind(this),this.options.throttle)},match:function(a,b){return a.toLowerCase().indexOf(b.toLowerCase())>=0},position:function(){if(!this.items.length)return void this.hide();var a=this.input.offset();this.element.css({left:a.left,top:a.top+this.input.outerHeight()}).reveal(),this.fireEvent("show")},process:function(b){if(!this.term.length||!b.length)return void this.hide();var c,d=this.options,e={_empty_:[]},f=a("
");this.items=[],this.index=-1,"function"===a.type(d.sorter)&&(b=d.sorter(b)),"function"===a.type(d.matcher)&&(b=b.filter(function(a){return d.matcher(a.title,this.term)}.bind(this)));for(var g=0;c=b[g];g++)c.category?(e[c.category]||(e[c.category]=[]),e[c.category].push(c)):e._empty_.push(c);var h=[],i=0;a.each(e,function(b,e){var g=[];"_empty_"!==b&&(h.push(null),g.push(a("").addClass(Toolkit.options.vendor+"type-ahead-heading").append(a("",{text:b}))));for(var j,k=0;(c=e[k])&&!(i>=d.itemLimit);k++)j=d.builder(c),j.on({mouseover:this.rewind.bind(this),click:a.proxy(this.__select,this,h.length)}),g.push(a("").append(j)),h.push(c),i++;f.append(g)}.bind(this)),this.element.empty(),d.contentElement?this.element.find(d.contentElement).append(f):this.element.append(f),this.items=h,this.cache[this.term.toLowerCase()]=h.filter(function(a){return null!==a}),this.fireEvent("load"),this._shadow(),this.position()},rewind:function(){this.index=-1,this.element.find("li").removeClass(Toolkit.options.isPrefix+"active")},select:function(a,b){this.index=a;var c=this.element.find("li");if(c.removeClass(Toolkit.options.isPrefix+"active"),a>=0){if(this.items[a]){var d=this.items[a];c.item(a).addClass(Toolkit.options.isPrefix+"active"),this.input.val(d.title),this.fireEvent(b||"select",[d,a])}}else this.input.val(this.term),this.fireEvent("reset")},sort:function(a){return a.sort(function(a,b){return a.title.localeCompare(b.title)})},_shadow:function(){if(this.shadow){var a=this.input.val(),b=a.toLowerCase(),c="";if(this.cache[b]&&this.cache[b][0]){var d=this.cache[b][0].title;0===d.toLowerCase().indexOf(b)&&(c=a+d.substr(a.length,d.length-a.length))}this.shadow.val(c)}},__cycle:function(a){var b=this.items,c=Math.min(this.options.itemLimit,Math.max(0,b.length));if(c&&this.element.is(":shown")){switch(a.keyCode){case 38:this.index-=b[this.index-1]?1:2,this.index<0&&(this.index=c);break;case 40:this.index+=b[this.index+1]?1:2,this.index>=c&&(this.index=-1);break;case 9:a.preventDefault();for(var d=0;!this.items[d];)d++;this.index=d,this.hide();break;case 13:this.hide();break;case 27:this.index=-1,this.hide();break;default:return}this.shadow&&this.shadow.val(""),this.select(this.index)}},__lookup:function(b){if(!(a.inArray(b.keyCode,[38,40,27,9,13])>=0)){clearTimeout(this.timer);var c=this.input.val().trim();c.length',sorter:null,matcher:null,builder:null}),Toolkit.createComponent("typeAhead",function(a){return new Toolkit.TypeAhead(this,a)})}(jQuery);
\ No newline at end of file
diff --git a/dist/jquery/toolkit.min.js b/dist/jquery/toolkit.min.js
index 6e820650..bc62e7c2 100644
--- a/dist/jquery/toolkit.min.js
+++ b/dist/jquery/toolkit.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
-!function(a){"use strict";a.Toolkit={version:"1.1.0-rc.2",build:"hrjiyw01",options:{vendor:"",isPrefix:"is-",hasPrefix:"has-"},messages:{loading:"Loading...",error:"An error has occurred!"},hasTransition:function(){for(var a="transition WebkitTransition MozTransition OTransition msTransition".split(" "),b=document.createElement("div").style,c=0;c0?this.on("clickout",null,a,b):this.trigger("clickout")},$.fn.positionTo=function(a,b,c,d){a=$.hyphenate(a).split("-");var e={y:a[0],x:a[1]},f=c||{left:0,top:0},g=0,h=0,i=this.outerHeight(!0),j=this.outerWidth(!0);if(b.preventDefault)f.left+=b.pageX,f.top+=b.pageY;else{var k=b.offset();f.left+=k.left,f.top+=k.top,g=b.outerHeight(),h=b.outerWidth()}return"top"===e.y?f.top-=i:"bottom"===e.y?f.top+=g:"center"===e.y&&(f.top-=Math.round(i/2-g/2)),"left"===e.x?f.left-=j:"right"===e.x?f.left+=h:"center"===e.x&&(f.left-=Math.round(j/2-h/2)),d&&("center"===e.y&&("left"===e.x?f.left-=15:"right"===e.x&&(f.left+=15)),"center"===e.x&&("top"===e.y?f.top-=10:"bottom"===e.y&&(f.top+=20))),this.css(f)},$.debounce=function(a,b,c){var d;return function(){var e=this,f=arguments;clearTimeout(d),d=setTimeout(function(){d=null,c||a.apply(e,f)},b||150),c&&!d&&a.apply(e,f)}},$.throttle=function(a,b){var c=!1;return function(){var d=this,e=arguments;c||(c=!0,setTimeout(function(){a.apply(d,e),c=!1},b||150))}},$.expr[":"].shown=function(a){return"hidden"!==$(a).css("visibility")},$.hyphenate=function(a){return a.replace(/[A-Z]/g,function(a){return"-"+a.charAt(0).toLowerCase()})},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=[].slice.call(arguments,1),d=function(){},e=function(){return b.apply(this instanceof d&&a?this:a,c.concat([].slice.call(arguments)))};return d.prototype=this.prototype,e.prototype=new d,e})}(window);!function(a){"use strict";Toolkit.Component=Toolkit.Class.extend(function(){},{component:"Component",version:"0.0.0",enabled:!0,createElement:function(){var b,c=this.options;if(c.templateFrom&&(b=a(c.templateFrom)),b&&b.length||!c.template||(b=a(c.template),b.length&&b.conceal().appendTo("body")),!b)throw new Error("Failed to create template element");return this.setElement(b)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},fireEvent:function(b,c){a.isArray(c)||(c=[c]);var d="on"+b.charAt(0).toUpperCase()+b.slice(1);if(this.options[d]&&this.options[d].apply(this,c||[]),this.element&&this.element.length){var e=this.component;e=e.charAt(0).toLowerCase()+e.slice(1);var f=jQuery.Event(b+".toolkit."+e);f.context=this,this.element.trigger(f,c||[])}},process:function(a){if(this.hide(),a.callback){for(var b=a.callback.split("."),c=window,d=c,e=0;e=0?(h?this.cache[f]=a:delete this.cache[f],this.position(a)):(delete this.cache[f],this.process(a))}).fail(e||function(){delete this.cache[f],this.element.removeClass(Toolkit.options.isPrefix+"loading").addClass(Toolkit.options.hasPrefix+"failed"),this.position(this._errorTemplate())})},setElement:function(b){var c=this.options;return c.template=!1,b=a(b),c.className&&b.addClass(c.className),c.animation&&b.addClass(c.animation),b},setOptions:function(b){var c=Toolkit,d=this.component;if(d.indexOf(".")>=0){d=d.split(".");for(var e=0;e").addClass(Toolkit.options.vendor+a.hyphenate(this.component).slice(1)+"-error").text(Toolkit.messages.error)},_loadingTemplate:function(){return a("").addClass(Toolkit.options.vendor+a.hyphenate(this.component).slice(1)+"-loading").text(Toolkit.messages.loading)}})}(jQuery);
\ No newline at end of file
+!function(a){"use strict";a.Toolkit={version:"1.1.0",build:"hrnvq2au",options:{vendor:"",isPrefix:"is-",hasPrefix:"has-"},messages:{loading:"Loading...",error:"An error has occurred!"},hasTransition:function(){for(var a="transition WebkitTransition MozTransition OTransition msTransition".split(" "),b=document.createElement("div").style,c=0;c0?this.on("clickout",null,a,b):this.trigger("clickout")}),$.event.special.swipe||($.event.special.swipe=function(){function a(a){var b=a.originalEvent.changedTouches?a.originalEvent.changedTouches[0]:a;return{time:(new Date).getTime(),coords:[b.pageX,b.pageY]}}function b(a,b,c,d){var e,f=$.event.special.swipe,g=Math.abs,h=b.coords[0]-a.coords[0],i=b.coords[1]-a.coords[1];if(b.time-a.time<=f.duration){if(g(h)>=f.distance&&g(i)<=f.restraint)e=0>h?"left":"right";else{if(!(g(i)>=f.distance&&g(h)<=f.restraint))return;e=0>i?"up":"down"}var j={target:d,swipestart:a,swipestop:b};c.trigger($.Event("swipe",j)).trigger($.Event("swipe"+e,j))}}var c=Toolkit.isTouch,d=c?"touchstart":"mousedown",e=c?"touchmove":"mousemove",f=c?"touchend":"mouseup";return{duration:1e3,distance:50,restraint:75,setup:function(){var c,g,h=$(this);h.bind(d,function(b){c=a(b),g=b.target,"mousedown"===d&&b.preventDefault()}).bind(e,function(a){a.preventDefault()}).bind(f,function(d){b(c,a(d),h,g)})},teardown:function(){$(this).unbind(d).unbind(e).unbind(f)}}}(),$.each("swipe swipeleft swiperight swipeup swipedown".split(" "),function(a,b){$.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},"swipe"!==b&&($.event.special[b]={setup:function(){$(this).bind("swipe",$.noop)},teardown:function(){$(this).unbind("swipe")}})})),Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=[].slice.call(arguments,1),d=function(){},e=function(){return b.apply(this instanceof d&&a?this:a,c.concat([].slice.call(arguments)))};return d.prototype=this.prototype,e.prototype=new d,e})}(window);!function(a){"use strict";Toolkit.Component=Toolkit.Class.extend(function(){},{component:"Component",version:"0.0.0",enabled:!0,createElement:function(){var b,c=this.options;if(c.templateFrom&&(b=a(c.templateFrom)),b&&b.length||!c.template||(b=a(c.template),b.length&&b.conceal().appendTo("body")),!b)throw new Error("Failed to create template element");return this.setElement(b)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},fireEvent:function(b,c){a.isArray(c)||(c=[c]);var d="on"+b.charAt(0).toUpperCase()+b.slice(1);if(this.options[d]&&this.options[d].apply(this,c||[]),this.element&&this.element.length){var e=this.component;e=e.charAt(0).toLowerCase()+e.slice(1);var f=jQuery.Event(b+".toolkit."+e);f.context=this,this.element.trigger(f,c||[])}},process:function(a){if(this.hide(),a.callback){for(var b=a.callback.split("."),c=window,d=c,e=0;e=0?(h?this.cache[f]=a:delete this.cache[f],this.position(a)):(delete this.cache[f],this.process(a))}).fail(e||function(){delete this.cache[f],this.element.removeClass(Toolkit.options.isPrefix+"loading").addClass(Toolkit.options.hasPrefix+"failed"),this.position(this._errorTemplate())})},setElement:function(b){var c=this.options;return c.template=!1,b=a(b),c.className&&b.addClass(c.className),c.animation&&b.addClass(c.animation),b},setOptions:function(b){var c=Toolkit,d=this.component;if(d.indexOf(".")>=0){d=d.split(".");for(var e=0;e").addClass(Toolkit.options.vendor+a.hyphenate(this.component).slice(1)+"-error").text(Toolkit.messages.error)},_loadingTemplate:function(){return a("").addClass(Toolkit.options.vendor+a.hyphenate(this.component).slice(1)+"-loading").text(Toolkit.messages.loading)}})}(jQuery);
\ No newline at end of file
diff --git a/dist/mootools/toolkit-accordion.min.js b/dist/mootools/toolkit-accordion.min.js
index 6d050735..5af40b6b 100644
--- a/dist/mootools/toolkit-accordion.min.js
+++ b/dist/mootools/toolkit-accordion.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
-!function(){"use strict";Toolkit.Accordion=new Class({Extends:Toolkit.Component,headers:[],sections:[],previousIndex:0,currentIndex:0,options:{mode:"click",defaultIndex:0,multiple:!1,collapsible:!1,headerElement:".accordion-head",contentElement:".accordion-handle",onJump:null},initialize:function(a,b){this.parent(b),this.setElement(a),b=this.options;var c=this.element.getElements(b.contentElement),d=this.element.getElements(b.headerElement),e=d[0];this.headers=d,this.sections=c,d[b.defaultIndex]&&(e=d[b.defaultIndex]),this.element.getChildren("li").removeClass(Toolkit.options.isPrefix+"active"),d.each(function(a,b){a.set("data-index",b)}),c.each(function(a){a.set("data-height",a.getHeight()).conceal()}),this.bindEvents(),this.fireEvent("init"),this.show(e)},bindEvents:function(){return this.element?(this.headers.addEvent("click"===this.options.mode?"click":"mouseover",this.__show),this):this},jump:function(a){return a>=this.headers.length?a=0:0>a&&(a=this.headers.length-1),this.fireEvent("jump",a),this.show(this.headers[a])},show:function(a){var b=this.options,c=a.getParent(),d=a.getNext(b.contentElement),e=a.get("data-index"),f=d.get("data-height").toInt();if("click"===b.mode&&(b.multiple||b.collapsible&&this.node===a))d.isShown()&&this.node?(d.setStyle("max-height",0).conceal(),c.removeClass(Toolkit.options.isPrefix+"active")):(d.setStyle("max-height",f).reveal(),c.addClass(Toolkit.options.isPrefix+"active"));else{if(this.node===a)return this;this.sections.setStyle("max-height",0).conceal(),d.setStyle("max-height",f).reveal(),this.element.getChildren("li").removeClass(Toolkit.options.isPrefix+"active"),c.addClass(Toolkit.options.isPrefix+"active")}return this.previousIndex=this.currentIndex,this.currentIndex=e,this.node=a,this.fireEvent("show",d),this},__show:function(a){if(a.preventDefault(),this.enabled){for(var b=a.target,c=this.options.headerElement.substr(1);b&&!b.hasClass(c);)b=b.getParent();b&&this.show(b)}}}),Toolkit.createComponent("accordion",function(a){return new Toolkit.Accordion(this,a)})}();
\ No newline at end of file
+!function(){"use strict";Toolkit.Accordion=new Class({Extends:Toolkit.Component,headers:[],sections:[],previousIndex:0,currentIndex:0,options:{mode:"click",defaultIndex:0,multiple:!1,collapsible:!1,headerElement:".accordion-header",sectionElement:".accordion-section",onJump:null},initialize:function(a,b){this.parent(b),this.setElement(a),b=this.options;var c=this.element.getElements(b.sectionElement),d=this.element.getElements(b.headerElement),e=d[0];this.headers=d,this.sections=c,d[b.defaultIndex]&&(e=d[b.defaultIndex]),this.element.getChildren("li").removeClass(Toolkit.options.isPrefix+"active"),d.each(function(a,b){a.set("data-index",b)}),c.each(function(a){a.set("data-height",a.getHeight()).conceal()}),this.bindEvents(),this.fireEvent("init"),this.show(e)},bindEvents:function(){return this.element?(this.headers.addEvent("click"===this.options.mode?"click":"mouseover",this.__show),this):this},jump:function(a){return a>=this.headers.length?a=0:0>a&&(a=this.headers.length-1),this.fireEvent("jump",a),this.show(this.headers[a])},show:function(a){var b=this.options,c=a.getParent(),d=a.getNext(),e=a.get("data-index"),f=d.get("data-height").toInt();if("click"===b.mode&&(b.multiple||b.collapsible&&this.node===a))d.isShown()&&this.node?(d.setStyle("max-height",0).conceal(),c.removeClass(Toolkit.options.isPrefix+"active")):(d.setStyle("max-height",f).reveal(),c.addClass(Toolkit.options.isPrefix+"active"));else{if(this.node===a)return this;this.sections.setStyle("max-height",0).conceal(),d.setStyle("max-height",f).reveal(),this.element.getChildren("li").removeClass(Toolkit.options.isPrefix+"active"),c.addClass(Toolkit.options.isPrefix+"active")}return this.previousIndex=this.currentIndex,this.currentIndex=e,this.node=a,this.fireEvent("show",d),this},__show:function(a){if(a.preventDefault(),this.enabled){for(var b=a.target,c=this.headers;!c.contains(b);)b=b.getParent();b&&this.show(b)}}}),Toolkit.createComponent("accordion",function(a){return new Toolkit.Accordion(this,a)})}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-blackout.min.js b/dist/mootools/toolkit-blackout.min.js
index 0a720416..a8e0bdf5 100644
--- a/dist/mootools/toolkit-blackout.min.js
+++ b/dist/mootools/toolkit-blackout.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Blackout=new Class({Extends:Toolkit.Component,count:0,loader:null,message:null,options:{loader:"bar-wave",loaderMessage:Toolkit.messages.loading,waveCount:5,template:'',templateFrom:"#toolkit-blackout"},initialize:function(a){this.parent(a),this.createElement(),this.createLoader(),this.fireEvent("init")},createLoader:function(){var a=this.options,b=Toolkit.options.vendor,c="bubble-spinner"===a.loader?8:a.waveCount;this.loader=new Element("div."+b+"loader."+a.loader).inject(this.element);var d,e="";for(d=0;c>d;d++)e+="";"bubble-spinner"===a.loader?new Element("div.spinner").set("html",e).inject(this.loader):this.loader.set("html",e),this.message=new Element("div."+b+"loader-message").set("html",a.loaderMessage).inject(this.loader)},hide:function(){var a=this.count-1;return 0>=a?(this.count=0,this.element.conceal(),this.hideLoader()):this.count=a,this.fireEvent("hide",0>=a),this},hideLoader:function(){return this.loader.conceal(),this},show:function(){return this.count++,this.element.reveal(),this.showLoader(),this.fireEvent("show"),this},showLoader:function(){return this.loader.reveal(),this}});var a=null;Toolkit.Blackout.factory=function(b){return a?a:a=new Toolkit.Blackout(b)}}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-carousel.min.js b/dist/mootools/toolkit-carousel.min.js
index 814bfeef..8de1967f 100644
--- a/dist/mootools/toolkit-carousel.min.js
+++ b/dist/mootools/toolkit-carousel.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
-!function(){"use strict";Toolkit.Carousel=new Class({Extends:Toolkit.Component,Binds:["next","prev","start","stop","resize","__cycle","__jump"],stopped:!1,itemsWrapper:null,itemsList:null,items:[],tabsWrapper:null,tabs:[],prevButton:null,nextButton:null,previousIndex:0,currentIndex:0,timer:null,options:{animation:"slide",duration:5e3,autoCycle:!0,stopOnHover:!0,itemsElement:".carousel-items",itemElement:"li",tabsElement:".carousel-tabs",tabElement:"a",nextElement:".carousel-next",prevElement:".carousel-prev",template:!1,onStart:null,onStop:null,onCycle:null,onJump:null},initialize:function(a,b){if(this.parent(b),this.setElement(a),this.element){if(b=this.options,this.itemsWrapper=this.element.getElement(b.itemsElement),this.itemsWrapper&&(this.itemsList=this.itemsWrapper.getChildren("ul, ol"),this.items=this.itemsWrapper.getElements(b.itemElement)),this.tabsWrapper=this.element.getElement(b.tabsElement),this.tabsWrapper&&(this.tabs=this.tabsWrapper.getElements(b.tabElement)),this.nextButton=this.element.getElement(b.nextElement),this.prevButton=this.element.getElement(b.prevElement),this.items.length<=1)return this.tabsWrapper.hide(),this.nextButton.hide(),void this.prevButton.hide();switch(b.animation){case"fade":this.items[0].reveal();break;case"slide":this.itemsList.setStyle("width",100*this.items.length+"%"),this.items.setStyle("width",100/this.items.length+"%")}this.tabs.forEach(function(a,b){a.set("data-index",b)}),window.addEvent("keydown",function(a){switch(["up","down","left","right"].contains(a.key)&&a.preventDefault(),a.key){case"up":this.jump(0);break;case"down":this.jump(-1);break;case"left":this.prev();break;case"right":this.next()}}.bind(this)),this.bindEvents(),this.fireEvent("init"),this.start().reset()}},bindEvents:function(){return this.element?(this.options.stopOnHover&&this.element.addEvent("mouseenter",this.stop).addEvent("mouseleave",this.start),this.element.addEvent("swipe",function(a){"left"===a.direction&&this.next()}.bind(this)).addEvent("swipe",function(a){"right"===a.direction&&this.prev()}.bind(this)),this.tabs.length&&this.tabs.addEvent("click",this.__jump),this.nextButton&&this.nextButton.addEvent("click",this.next),this.prevButton&&this.prevButton.addEvent("click",this.prev),this):this},jump:function(a){switch(a>=this.items.length?a=0:0>a&&(a=this.items.length-1),this.previousIndex=this.currentIndex,this.currentIndex=a,this.tabs.length&&(this.tabs.removeClass(Toolkit.options.isPrefix+"active"),this.tabs[a]&&this.tabs[a].addClass(Toolkit.options.isPrefix+"active")),this.options.animation){case"fade":this.items.removeClass("show"),this.items[a].reveal();break;case"slide-up":this.itemsList.setStyle("top",-(100*a)+"%");break;default:this.itemsList.setStyle("left",-(100*a)+"%")}return this.reset(),this.fireEvent("jump",a),this},next:function(){return this.jump(this.currentIndex+1),this},prev:function(){return this.jump(this.currentIndex-1),this},reset:function(){return this.options.autoCycle&&(clearInterval(this.timer),this.timer=setInterval(this.__cycle,this.options.duration)),this},start:function(){return this.element.removeClass(Toolkit.options.isPrefix+"stopped"),this.stopped=!1,this.fireEvent("start"),this},stop:function(){return this.element.addClass(Toolkit.options.isPrefix+"stopped"),this.stopped=!0,this.fireEvent("stop"),this},__cycle:function(){this.enabled&&(this.stopped||(this.fireEvent("cycle"),this.next()))},__jump:function(a){a.preventDefault(),this.enabled&&this.jump(a.target.get("data-index")||0)}}),Toolkit.createComponent("carousel",function(a){return new Toolkit.Carousel(this,a)})}();
\ No newline at end of file
+!function(){"use strict";Toolkit.Carousel=new Class({Extends:Toolkit.Component,Binds:["next","prev","start","stop","resize","__cycle","__jump"],stopped:!1,itemsWrapper:null,itemsList:null,items:[],tabsWrapper:null,tabs:[],prevButton:null,nextButton:null,previousIndex:0,currentIndex:0,timer:null,options:{animation:"slide",duration:5e3,autoCycle:!0,stopOnHover:!0,itemsElement:".carousel-items",itemElement:"li",tabsElement:".carousel-tabs",tabElement:"a",nextElement:".carousel-next",prevElement:".carousel-prev",template:!1,onStart:null,onStop:null,onCycle:null,onJump:null},initialize:function(a,b){if(this.parent(b),this.setElement(a),this.element){if(b=this.options,this.itemsWrapper=this.element.getElement(b.itemsElement),this.itemsWrapper&&(this.itemsList=this.itemsWrapper.getChildren("ul, ol"),this.items=this.itemsWrapper.getElements(b.itemElement)),this.tabsWrapper=this.element.getElement(b.tabsElement),this.tabsWrapper&&(this.tabs=this.tabsWrapper.getElements(b.tabElement)),this.nextButton=this.element.getElement(b.nextElement),this.prevButton=this.element.getElement(b.prevElement),this.items.length<=1)return this.tabsWrapper.hide(),this.nextButton.hide(),void this.prevButton.hide();switch(b.animation){case"fade":this.items[0].reveal();break;case"slide":this.itemsList.setStyle("width",100*this.items.length+"%"),this.items.setStyle("width",100/this.items.length+"%")}this.tabs.forEach(function(a,b){a.set("data-index",b)}),window.addEvent("keydown",function(a){switch(["up","down","left","right"].contains(a.key)&&a.preventDefault(),a.key){case"up":this.jump(0);break;case"down":this.jump(-1);break;case"left":this.prev();break;case"right":this.next()}}.bind(this)),this.bindEvents(),this.fireEvent("init"),this.start().reset()}},bindEvents:function(){return this.element?(this.options.stopOnHover&&this.element.addEvent("mouseenter",this.stop).addEvent("mouseleave",this.start),this.element.addEvent("swipe",function(a){"left"===a.direction?this.next():"right"===a.direction&&this.prev()}.bind(this)),this.tabs.length&&this.tabs.addEvent("click",this.__jump),this.nextButton&&this.nextButton.addEvent("click",this.next),this.prevButton&&this.prevButton.addEvent("click",this.prev),this):this},jump:function(a){switch(a>=this.items.length?a=0:0>a&&(a=this.items.length-1),this.previousIndex=this.currentIndex,this.currentIndex=a,this.tabs.length&&(this.tabs.removeClass(Toolkit.options.isPrefix+"active"),this.tabs[a]&&this.tabs[a].addClass(Toolkit.options.isPrefix+"active")),this.options.animation){case"fade":this.items.removeClass("show"),this.items[a].reveal();break;case"slide-up":this.itemsList.setStyle("top",-(100*a)+"%");break;default:this.itemsList.setStyle("left",-(100*a)+"%")}return this.reset(),this.fireEvent("jump",a),this},next:function(){return this.jump(this.currentIndex+1),this},prev:function(){return this.jump(this.currentIndex-1),this},reset:function(){return this.options.autoCycle&&(clearInterval(this.timer),this.timer=setInterval(this.__cycle,this.options.duration)),this},start:function(){return this.element.removeClass(Toolkit.options.isPrefix+"stopped"),this.stopped=!1,this.fireEvent("start"),this},stop:function(){return this.element.addClass(Toolkit.options.isPrefix+"stopped"),this.stopped=!0,this.fireEvent("stop"),this},__cycle:function(){this.enabled&&(this.stopped||(this.fireEvent("cycle"),this.next()))},__jump:function(a){a.preventDefault(),this.enabled&&this.jump(a.target.get("data-index")||0)}}),Toolkit.createComponent("carousel",function(a){return new Toolkit.Carousel(this,a)})}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-class.cache.min.js b/dist/mootools/toolkit-class.cache.min.js
index 8aa98d47..7572d8f3 100644
--- a/dist/mootools/toolkit-class.cache.min.js
+++ b/dist/mootools/toolkit-class.cache.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";a.Cache=new Class({storage:null,setStorage:function(b){if(!a.JSON)throw new Error("JSON is required for caching and storage");switch(b.toLowerCase()){case"local":case"localstorage":if(a.localStorage)try{return a.localStorage.setItem("_temp_","Titon"),a.localStorage.removeItem("_temp_"),void(this.storage=a.localStorage)}catch(c){}case"session":case"sessionstorage":if(a.sessionStorage)try{return a.sessionStorage.setItem("_temp_","Titon"),a.sessionStorage.removeItem("_temp_"),void(this.storage=a.sessionStorage)}catch(d){}default:this.storage=function(){var a={},b=0;return{length:b,clear:function(){a={},b=0},getItem:function(b){return a[b]||null},setItem:function(c,d){a[c]=d,b++},removeItem:function(c){delete a[c],b--}}}()}},cacheSize:function(){return this.storage.length||0},flushCache:function(){this.storage&&this.storage.clear()},getCache:function(a){if(this.storage&&a){var b=this.storage.getItem(a);if(b)return JSON.parse(b)}return null},hasCache:function(a){return this.storage&&this.storage.getItem(a)},setCache:function(a,b){if(this.storage&&a)try{return this.storage.setItem(a,JSON.stringify(b||"")),!0}catch(c){}return!1},removeCache:function(a){this.storage&&a&&this.storage.removeItem(a)}})}(window);
\ No newline at end of file
diff --git a/dist/mootools/toolkit-class.timers.min.js b/dist/mootools/toolkit-class.timers.min.js
index 963c399e..cb849400 100644
--- a/dist/mootools/toolkit-class.timers.min.js
+++ b/dist/mootools/toolkit-class.timers.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(a){"use strict";a.Timers=new Class({timers:{},$timers:{},addTimer:function(a,b){return this.timers[a]=Function.from(b),this},addTimers:function(a){for(var b in a)this.addTimer(b,a[b]);return this},startTimer:function(a,b,c){return this.clearTimer(a),this.timers[a]&&(this.$timers[a]=this.timers[a].delay(b,this,c)),this},startInterval:function(a,b,c){return this.clearTimer(a),this.timers[a]&&(this.$timers[a]=this.timers[a].periodical(b,this,c)),this},clearTimer:function(b,c,d){return a.clearTimeout(this.$timers[b]),delete this.$timers[b],"function"===typeOf(c)&&c.apply(this,d||[]),this},clearTimers:function(a){return a?Array.from(a).each(function(a){this.clearTimer(a)},this):Object.each(this.$timers,function(a,b){this.clearTimer(b)},this),this},removeTimer:function(a){return delete this.timers[a],this},removeTimers:function(a){return Array.from(a).each(function(a){this.removeTimer(a)},this),this}})}(window);
\ No newline at end of file
diff --git a/dist/mootools/toolkit-drop.min.js b/dist/mootools/toolkit-drop.min.js
index a14fb664..cf9aa6ea 100644
--- a/dist/mootools/toolkit-drop.min.js
+++ b/dist/mootools/toolkit-drop.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Drop=new Class({Extends:Toolkit.Component,options:{delegate:".js-drop",getTarget:"data-drop",hideOpened:!0},initialize:function(a,b){this.parent(b),this.setNodes(a);var c=["down","up","left","right"].map(function(a){return"."+Toolkit.options.vendor+"drop--"+a});$$(this.options.delegate+", "+c.join(", ")).addEvent("clickout",this.hide.bind(this)),this.bindEvents(),this.fireEvent("init")},hide:function(){return this.parent(function(){this.node.removeClass(Toolkit.options.isPrefix+"active")}.bind(this))},show:function(a){return this.parent(a),this.node.addClass(Toolkit.options.isPrefix+"active"),this},__show:function(a,b){if("domevent"===typeOf(a)&&a.preventDefault(),this.enabled){var c=this.readValue(b,this.options.getTarget);c&&"#"===c.substr(0,1)&&(this.options.hideOpened&&this.node&&this.node!==b&&this.hide(),this.setElement(c),this.node=b,this.isVisible()?this.hide():this.show(b))}}}),Toolkit.createComponent("drop",function(a){return new Toolkit.Drop(this,a)},!0)}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-flyout.min.js b/dist/mootools/toolkit-flyout.min.js
index 509ead35..384e9f0e 100644
--- a/dist/mootools/toolkit-flyout.min.js
+++ b/dist/mootools/toolkit-flyout.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Flyout=new Class({Extends:Toolkit.Component,Implements:[Timers],current:null,menus:{},data:[],dataMap:{},options:{delegate:".js-flyout",mode:"hover",getUrl:"href",xOffset:0,yOffset:0,showDelay:350,hideDelay:1e3,itemLimit:15,contentElement:".flyout",template:'',onHideChild:null,onShowChild:null},initialize:function(a,b,c){if(this.parent(c),this.setNodes(a),!b)throw new Error("Flyout URL required to download sitemap JSON");new Request.JSON({url:b,secure:!0,onSuccess:this.load.bind(this)}).get(),this.addTimers({show:this.position,hide:this.__hide}),c=this.options,"hover"===c.mode&&document.id(c.context||document.body).addEvent("mouseenter:relay("+c.delegate+")",function(){this.clearTimer("hide").startTimer("show",c.showDelay)}.bind(this)).addEvent("mouseleave:relay("+c.delegate+")",function(){this.clearTimer("show").startTimer("hide",c.showDelay)}.bind(this)),this.bindEvents(),this.fireEvent("init")},hide:function(){return this.clearTimers(),this.node.removeClass(Toolkit.options.isPrefix+"active"),this.current&&this.isVisible()?(this.menus[this.current].conceal(),this.fireEvent("hide"),this.current=null,this):this},isVisible:function(){return this.current&&this.menus[this.current]&&(this.element=this.menus[this.current]),this.parent()},load:function(a,b){if(b=b||0,0===b&&(this.data=a),this.dataMap[a.url]=a,a.children)for(var c=0,d=a.children.length;d>c;c++)this.load(a.children[c],b+1);return this},position:function(){var a=this.current,b=this.options;if(!this.menus[a])return this;var c=this.menus[a],d=c.getDimensions().height,e=this.node.getCoordinates(),f=e.left+b.xOffset,g=e.top+b.yOffset+e.height,h=window.getScrollSize();return g>h.y/2&&(g=e.top-b.yOffset-d),c.setPosition({x:f,y:g}).reveal(),this.fireEvent("show"),this},show:function(a){var b=this._getTarget(a);return this.current&&b!==this.current&&(this.hide(),this.startTimer("show",this.options.showDelay)),this.node=a,this._getMenu()?(this.fireEvent("load",a),this.node.addClass(Toolkit.options.isPrefix+"active"),"click"===this.options.mode&&this.position(),this):this},_buildMenu:function(a,b){if(!b.children||!b.children.length)return null;var c,d,e,f=this.parseTemplate(this.options.template),g=[],h=this.options.contentElement,i=this.options.itemLimit;this.options.className&&f.addClass(this.options.className),a===document.body&&f.addClass(Toolkit.options.isPrefix+"root"),i&&b.children.length>i?g=b.children.chunk(i):g.push(b.children);for(var j,k=0;j=g[k];k++){c=new Element("ul");for(var l,m=0,n=j.length;n>m;m++)l=j[m],d=new Element("li"),l.url?(e=new Element("a",{text:l.title,href:l.url}),new Element("span").addClass(l.icon||"caret-right").inject(e,"top")):(e=new Element("span",{text:l.title}),d.addClass(Toolkit.options.vendor+"flyout-heading")),l.attributes&&e.set(l.attributes),l.className&&d.addClass(l.className),d.grab(e).inject(c),l.children&&l.children.length&&(this._buildMenu(d,l),d.addClass(Toolkit.options.hasPrefix+"children").addEvent("mouseenter",this.__positionChild.bind(this,d)).addEvent("mouseleave",this.__hideChild.bind(this,d)));h?"."===h.substr(0,1)&&f.hasClass(h.substr(1))?f.grab(c):f.getElement(h).grab(c):f.grab(c)}return f.inject(a),f}.protect(),_getMenu:function(){var a=this._getTarget();if(this.menus[a])return this.current=a,this.menus[a];if(this.dataMap[a]){var b=this._buildMenu(document.body,this.dataMap[a]);return b?(b.conceal(),"hover"===this.options.mode&&b.addEvents({mouseenter:function(){this.clearTimer("hide")}.bind(this),mouseleave:function(){this.startTimer("hide",this.options.hideDelay)}.bind(this)}),this.current=a,this.menus[a]=b,this.menus[a]):null}return null}.protect(),_getTarget:function(a){return a=a||this.node,this.readValue(a,this.options.getUrl)||a.get("href")}.protect(),__hideChild:function(a){a.removeClass(Toolkit.options.isPrefix+"open"),a.getChildren(this.options.contentElement).removeProperty("style"),this.fireEvent("hideChild",a)},__positionChild:function(a){var b=a.getElement(this.options.contentElement);if(b){var c=b.getChildren("ul");b.setStyle("width",c.getWidth()[0]*c.length+"px");var d=window.getScrollSize(),e=window.getCoordinates(),f=a.getCoordinates(),g=b.getCoordinates(),h=f.right+g.width;h>=e.width?b.addClass("push-left"):b.removeClass("push-left"),f.top>d.y/2?b.setStyle("top","-"+(g.height-f.height)+"px"):b.setStyle("top",0),a.addClass(Toolkit.options.isPrefix+"open"),this.fireEvent("showChild",a)}}}),Toolkit.createComponent("flyout",function(a,b){return new Toolkit.Flyout(this,a,b)},!0)}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-input.min.js b/dist/mootools/toolkit-input.min.js
index 215be587..422e9be4 100644
--- a/dist/mootools/toolkit-input.min.js
+++ b/dist/mootools/toolkit-input.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Input=new Class({Extends:Toolkit.Component,wrapper:null,input:null,options:{checkbox:'input[type="checkbox"]',radio:'input[type="radio"]',select:"select",copyClasses:!0},initialize:function(a,b){this.parent(b),this.setElement(a),this.element&&(this.bindEvents(),this.fireEvent("init"))},bindEvents:function(){var a=this.options;return a.checkbox&&this.element.getElements(a.checkbox).inputCheckbox(a),a.radio&&this.element.getElements(a.radio).inputRadio(a),a.select&&this.element.getElements(a.select).inputSelect(a),this},buildWrapper:function(a){return this.wrapper=new Element("div."+Toolkit.options.vendor+"custom-input").wraps(a),this.options.copyClasses&&this.copyClasses(a,this.wrapper),this},copyClasses:function(a,b){var c=(a.get("class")||"").replace(/\binput\b/,"").trim();return c&&b.addClass(c),this}}),Toolkit.Input.Checkbox=new Class({Extends:Toolkit.Input,initialize:function(a,b){this.input=a,this.setOptions(b),this.buildWrapper(a),this.setElement(new Element("label."+Toolkit.options.vendor+"checkbox").setProperty("for",a.get("id")).inject(a,"after")),this.fireEvent("init")}}),Toolkit.Input.Radio=new Class({Extends:Toolkit.Input,initialize:function(a,b){this.input=a,this.setOptions(b),this.buildWrapper(a),this.setElement(new Element("label."+Toolkit.options.vendor+"radio").setProperty("for",a.get("id")).inject(a,"after")),this.fireEvent("init")}}),Toolkit.Input.Select=new Class({Extends:Toolkit.Input,Binds:["buildOption","__change","__cycle","__toggle"],dropdown:null,multiple:!1,currentIndex:0,options:{"native":!1,multipleFormat:"count",countMessage:"{count} of {total} selected",listLimit:3,hideFirst:!1,hideSelected:!1,arrowContent:'',getDefaultLabel:"title",getOptionLabel:"title",getDescription:"data-description"},initialize:function(a,b){this.input=a,this.setOptions(b),this.multiple=a.multiple,a.multiple&&this.options.native||(this.buildWrapper(a),this.buildButton(a),this.options.native||(this.buildDropdown(a),a.setStyle("z-index",1).addEvent("blur",this.__hide)),this.bindEvents(),this.fireEvent("init"))},bindEvents:function(){return this.input.addEvent("change",this.__change),this.options.native||(this.dropdown.addEvent("clickout",this.__hide),this.element.addEvent("clickout",this.__hide).addEvent("click",this.__toggle)),this.multiple||window.addEvent("keydown",this.__cycle),this.input.fireEvent("change",{target:this.input}),this},buildButton:function(a){var b=Toolkit.options.vendor;return this.element=new Element("div."+b+"select").grab(new Element("div."+b+"select-arrow").set("html",this.options.arrowContent)).grab(new Element("div."+b+"select-label").set("text",Toolkit.options.loadingMessage)).setStyle("min-width",a.getWidth()).inject(a,"after"),this.multiple&&this.input.setStyle("max-height",this.element.getHeight()),this},buildDropdown:function(a){var b=Toolkit.options.vendor,c=this.options,d=this.buildOption,e=new Element("div."+b+"drop--down."+b+"select-options"),f=new Element("ul"),g=0;return this.dropdown=e,Array.from(a.children).each(function(a){"optgroup"===a.get("tag")?(0===g&&(c.hideFirst=!1),f.grab(new Element("li").addClass(b+"drop-heading").set("text",a.get("label"))),Array.from(a.children).each(function(b){a.disabled&&(b.disabled=!0),b.selected&&(this.currentIndex=g),f.grab(d(b,g)),g++},this)):(a.selected&&(this.currentIndex=g),f.grab(d(a,g)),g++)},this),c.hideSelected&&!c.multiple&&e.addClass("hide-selected"),c.hideFirst&&e.addClass("hide-first"),a.multiple&&e.addClass(Toolkit.options.isPrefix+"multiple"),this.wrapper.grab(e.grab(f)),this},buildOption:function(a,b){var c,d=this.input,e=this.dropdown,f=Toolkit.options.isPrefix+"active",g=new Element("li"),h=a.textContent;a.selected&&g.addClass(f),(c=this.readValue(a,this.options.getDescription))&&(h+=' '+c+"");var i=new Element("a").set("html",h).set("href","javascript:;");if(this.options.copyClasses&&this.copyClasses(a,g),g.grab(i),a.disabled)return g.addClass(Toolkit.options.isPrefix+"disabled"),g;if(this.multiple)i.addEvent("click",function(){a.selected?(a.selected=!1,this.getParent().removeClass(f)):(a.selected=!0,this.getParent().addClass(f)),d.fireEvent("change",{target:d})});else{var j=this;i.addEvent("click",function(){e.getElements("li").removeClass(f),this.getParent().addClass(f),j.hide(),j.currentIndex=b,d.set("value",a.value),d.fireEvent("change",{target:d})})}return g},hide:function(){return this.element.removeClass(Toolkit.options.isPrefix+"active"),this.dropdown&&this.dropdown.conceal(),this.fireEvent("hide"),this},show:function(){return this.element.addClass(Toolkit.options.isPrefix+"active"),this.dropdown&&this.dropdown.reveal(),this.fireEvent("show"),this},__change:function(a){var b=a.target,c=b.getElements("option"),d=[],e=[];if(c.each(function(a){a.selected&&(d.push(a),e.push(this.readValue(a,this.options.getOptionLabel)||a.textContent))},this),this.multiple){var f=this.readValue(b,this.options.getDefaultLabel),g=this.options.multipleFormat,h=e.length;if(!e.length&&f)e=f;else if("count"===g)e=this.options.countMessage.replace("{count}",h).replace("{total}",c.length);else if("list"===g){var i=this.options.listLimit;e=e.splice(0,i).join(", "),h>i&&(e+=" ...")}}else e=e.join(", ");b.getParent().getElement("."+Toolkit.options.vendor+"select-label").set("text",e),this.fireEvent("change",[b.get("value"),d])},__cycle:function(a){if(this.dropdown.isVisible()&&["up","down","enter","esc"].contains(a.key)){a.preventDefault();var b=this.input.getElements("option"),c=this.dropdown.getElements("a"),d=Toolkit.options.isPrefix+"active",e=this.currentIndex;switch(a.key){case"enter":case"esc":return void this.hide();case"up":e=this.__loop(e,-1,b);break;case"down":e=this.__loop(e,1,b)}b.set("selected",!1),b[e].selected=!0,c.getParent().removeClass(d),c[e].getParent().addClass(d),this.currentIndex=e,this.input.fireEvent("change",{target:this.input})}},__loop:function(a,b,c){var d=this.options.hideFirst;for(a+=b;"undefined"==typeof c[a]||c[a].disabled||0===a&&d;)a+=b,a>=c.length?a=0:0>a&&(a=c.length-1);return a},__toggle:function(){this.enabled&&!this.input.disabled&&(this.dropdown.isShown()?this.hide():this.show())}}),Toolkit.createComponent("input",function(a){return new Toolkit.Input(this,a)}),Toolkit.createComponent("inputRadio",function(a){return new Toolkit.Input.Radio(this,a)}),Toolkit.createComponent("inputCheckbox",function(a){return new Toolkit.Input.Checkbox(this,a)}),Toolkit.createComponent("inputSelect",function(a){return new Toolkit.Input.Select(this,a)})}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-lazyload.min.js b/dist/mootools/toolkit-lazyload.min.js
index 55b8d546..9945ca82 100644
--- a/dist/mootools/toolkit-lazyload.min.js
+++ b/dist/mootools/toolkit-lazyload.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.LazyLoad=new Class({Extends:Toolkit.Component,Binds:["load","loadAll"],isLoaded:!1,loaded:0,options:{lazyClass:".lazy-load",forceLoad:!1,delay:1e4,threshold:150,throttle:50,context:null,onLoad:null,onLoadAll:null,onShow:null,onShutdown:null},initialize:function(a,b){this.parent(b),this.setElement(a),this.element.length&&(document.id(this.options.context||window).addEvent("scroll:throttle("+this.options.throttle+")",this.load).addEvent("resize:throttle("+this.options.throttle+")",this.load),window.addEvent("domready",function(){this.load(),this.options.forceLoad&&window.setTimeout(this.loadAll,this.options.delay)}.bind(this)),this.fireEvent("init"))},inViewport:function(a){var b=this.options.threshold,c=window.getScroll(),d=window.getSize(),e=a.getPosition();return e.y>=c.y-b&&e.y<=c.y+d.y+b&&e.x>=c.x-b&&e.x<=c.x+d.x+b},load:function(){return this.isLoaded?!1:this.loaded===this.element.length?(this.shutdown(),!1):(this.element.each(function(a,b){a&&this.inViewport(a)&&this.show(a,b)},this),this.fireEvent("load"),!0)},loadAll:function(){return this.isLoaded?!1:(this.element.each(function(a,b){a&&this.show(a,b)},this),this.fireEvent("loadAll"),this.shutdown(),!0)},show:function(a,b){return a.removeClass(this.options.lazyClass.substr(1)),a.getElements("img").each(function(a){var b=a.get("data-lazyload");b&&a.set("src",b)}),this.element.splice(b,1,null),this.loaded++,this.fireEvent("show",a),this},shutdown:function(){return this.isLoaded=!0,document.id(this.options.context||window).removeEvents({scroll:this.load,resize:this.load}),this.fireEvent("shutdown"),this}}),Toolkit.createComponent("lazyLoad",function(a){return new Toolkit.LazyLoad(this,a)},!0)}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-mask.min.js b/dist/mootools/toolkit-mask.min.js
index ead0a3ac..56b6e201 100644
--- a/dist/mootools/toolkit-mask.min.js
+++ b/dist/mootools/toolkit-mask.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Mask=new Class({Extends:Toolkit.Component,mask:null,message:null,options:{revealOnClick:!1,messageContent:"",messageElement:".mask-message"},initialize:function(a,b){this.parent(b),this.setElement(a);var c=Toolkit.options.vendor,d="."+c+"mask";a!==document.body&&(a.addClass(c+"maskable"),"static"===a.getStyle("position")&&a.setStyle("position","relative")),this.setMask(a.getElement("> "+d)||new Element("div"+d)),this.fireEvent("init")},hide:function(){return this.mask.conceal(),this.element.removeClass(Toolkit.options.isPrefix+"masked"),this.fireEvent("hide"),this},setMask:function(a){var b=this.options;return a.addClass("hide").inject(this.element,"bottom"),this.element===document.body&&a.setStyle("position","fixed"),b.revealOnClick&&a.addEvent("click",this.__hide),this.mask=a,this.message=a.getElement("> "+b.messageElement),this.message||(this.message=new Element("div"+b.messageElement).inject(a,"bottom"),b.messageContent&&this.message.set("html",b.messageContent)),this},show:function(a){return this.enabled?(this.node=a,this.mask.reveal(),this.element.addClass(Toolkit.options.isPrefix+"masked"),this.fireEvent("show"),this):this},toggle:function(){return this.mask.isShown()?this.hide():this.show()}}),Toolkit.createComponent("mask",function(a){return new Toolkit.Mask(this,a)})}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-matrix.min.js b/dist/mootools/toolkit-matrix.min.js
index d5e6e96a..5ba075b1 100644
--- a/dist/mootools/toolkit-matrix.min.js
+++ b/dist/mootools/toolkit-matrix.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Matrix=new Class({Extends:Toolkit.Component,Binds:["__resize","__load"],items:[],matrix:[],wrapperWidth:0,colWidth:0,colCount:0,images:[],imagesLoaded:0,options:{selector:".matrix-item",width:200,gutter:20,rtl:!1,defer:!0,template:!1,onRender:null},initialize:function(a,b){this.parent(b),this.setElement(a),this.element.addClass(Toolkit.options.vendor+"matrix"),this.items=this.element.getElements(this.options.selector),window.addEvent("resize",this.__resize.debounce()),this.fireEvent("init"),this.options.defer?this._deferRender():this.render()},append:function(a){return"element"!==typeOf(a)?this:(a.addClass(Toolkit.options.vendor+"matrix-item").inject(this.element,"bottom").setStyle("opacity",0),this.refresh())},disable:function(){return this.element.removeProperty("style"),this.items.removeClass(Toolkit.options.vendor+"matrix-item").removeProperty("style"),this},enable:function(){return this.items.addClass(Toolkit.options.vendor+"matrix-item"),this},prepend:function(a){return"element"!==typeOf(a)?this:(a.addClass(Toolkit.options.vendor+"matrix-item").inject(this.element,"top").setStyle("opacity",0),this.refresh())},refresh:function(){return this.items=this.element.getElements(this.options.selector),this.render()},remove:function(a){return this.items.every(function(b){return b===a?(b.destroy(),!1):!0}),this.refresh()},render:function(){return this._calculateColumns(),this.items.length1&&(f>b?(a=f-b,c-=a/e):b>f&&(a=b-f,c+=a/e)),this.wrapperWidth=b,this.colWidth=c,this.colCount=e,this}.protect(),_deferRender:function(){return this.imagesLoaded=0,this.images=this.element.getElements("img"),this.images.length?this.images.each(function(a){var b=a.src;a.onload=this.__load,a.onerror=this.__load,a.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",a.src=b},this):this.render(),this}.protect(),_organizeItems:function(){var a,b,c,d=0,e=this.items.length;this.matrix=[];for(var f=0;e>f;f++){if(a=this.items[f],c=a.getSize(),b=Math.max(Math.round(c.x/this.colWidth),1),this.matrix.push({item:a,span:b}),b>1)for(var g=1;b>g;g++)d++,this.matrix&&this.matrix.push({item:a,span:!1});d++,d>=this.colCount&&(d=0)}return this}.protect(),_positionItems:function(){var a,b,c,d,e,f,g=this.options.gutter,h=this.matrix,i=this.options.rtl?"right":"left",j=0,k=[],l=0,m={margin:0,position:"absolute"};for(d=0;dd;d++){if(a=h[d],b=a.span,(l>=this.colCount||b+l>this.colCount)&&(l=0,j=0),b){for(c=0,f=0;b>f;f++)k[l+f]>c&&(c=k[l+f]);for(m.top=c,m[i]=j,m.width=(this.colWidth+g)*b-g,a.item.setStyles(m).reveal(),f=0;b>f;f++)k[l+f]=a.item.getSize().y+g+c}j+=this.colWidth+g,l++}return this.element.setStyle("height",Math.max.apply(Math,k)),this}.protect(),__load:function(a){(!a||"load"===a.type&&a.target.complete||"error"===a.type&&!a.target.complete)&&this.imagesLoaded++,this.imagesLoaded===this.images.length&&this.render()},__resize:function(){this.element.hasClass(Toolkit.options.vendor+"matrix")&&this.refresh()}}),Toolkit.createComponent("matrix",function(a){return new Toolkit.Matrix(this,a)})}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-modal.min.js b/dist/mootools/toolkit-modal.min.js
index 7c3d4d42..223a02b2 100644
--- a/dist/mootools/toolkit-modal.min.js
+++ b/dist/mootools/toolkit-modal.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Modal=new Class({Extends:Toolkit.Component,Binds:["__submit"],blackout:null,drag:null,elementBody:null,options:{delegate:".js-modal",animation:"fade",ajax:!0,draggable:!1,blackout:!0,fullScreen:!1,stopScroll:!0,getContent:"data-modal",contentElement:".modal-inner",closeElement:".modal-close",closeEvent:".modal-event-close",submitEvent:".modal-event-submit",template:'
',onSubmit:null},initialize:function(a,b){this.parent(b),this.setNodes(a),this.createElement(),this.options.fullScreen&&(this.element.addClass(Toolkit.options.isPrefix+"fullscreen"),this.options.draggable=!1),this.elementBody=this.element.getElement(this.options.contentElement),this.options.draggable&&(this.drag=new Drag(this.element,{onStart:function(a){a.addClass(Toolkit.options.isPrefix+"dragging")},onComplete:function(a){a.removeClass(Toolkit.options.isPrefix+"dragging")}}),this.element.addClass(Toolkit.options.isPrefix+"draggable")),this.options.blackout&&(this.blackout=Toolkit.Blackout.factory(),this.options.stopScroll&&this.blackout.addEvent("hide",function(a){a&&document.body.setStyle("overflow","")})),this.bindEvents(),this.fireEvent("init")},bindEvents:function(){return this.parent(),window.addEvent("keydown",function(a){"esc"===a.key&&this.isVisible()&&this.hide()}.bind(this)),this.element.addEvent("clickout",this.__hide).addEvent("click:relay("+this.options.closeEvent+")",this.__hide).addEvent("click:relay("+this.options.submitEvent+")",this.__submit),this.nodes.addEvent("clickout",this.__hide),this},hide:function(){return this.blackout&&this.blackout.hide(),this.parent()},position:function(a){return a===!0?this:(this.elementBody.set("html",a),this.fireEvent("load",a),this.blackout&&this.blackout.hideLoader(),this.element.reveal(),this.options.fullScreen&&this.element.getElement(this.options.contentElement).setStyle("min-height",window.getHeight()),this.fireEvent("show"),this)},show:function(a,b){var c=this.options,d=c.ajax;return b?d=!1:a&&(b=this.readValue(a,c.getContent)||a.get("href"),b&&b.match(/^#[a-z0-9_\-\.:]+$/i)&&(d=!1)),b?(this.node=a,this.blackout&&this.blackout.show(),c.stopScroll&&document.body.setStyle("overflow","hidden"),d?this.cache[b]?this.position(this.cache[b]):this.requestData(b):this.position(b),this):this},__submit:function(a){a.preventDefault();var b=a.target,c=this.elementBody.getElement("form");if(c){this.fireEvent("submit",[b,c]);var d={url:c.get("action"),method:c.get("method").toUpperCase()};d.data=window.FormData?new FormData(c):c.toQueryString(),this.requestData(d)}}}),Toolkit.createComponent("modal",function(a){return new Toolkit.Modal(this,a)},!0)}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-pin.min.js b/dist/mootools/toolkit-pin.min.js
index 003e05ae..d553cbd8 100644
--- a/dist/mootools/toolkit-pin.min.js
+++ b/dist/mootools/toolkit-pin.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Pin=new Class({Extends:Toolkit.Component,Binds:["__resize","__scroll"],viewport:null,elementSize:null,parentSize:null,elementTop:null,options:{animation:"",location:"right",xOffset:0,yOffset:0,throttle:50,fixed:!1,calculate:!1,context:null,template:!1,onScroll:null,onResize:null},initialize:function(a,b){this.parent(b),this.setElement(a),this.element&&(this.element.addClass(Toolkit.options.vendor+"pin"),this.elementTop=this.element.getStyle("top").toInt(),this.bindEvents(),this.fireEvent("init"))},bindEvents:function(){return window.addEvent("scroll:throttle("+this.options.throttle+")",this.__scroll).addEvent("resize:throttle("+this.options.throttle+")",this.__resize).addEvent("domready",this.__resize),this},calculate:function(){return this.viewport=window.getSize(),this.elementSize=this.element.getCoordinates(),this.parentSize=this.element.getParent(this.options.context).getCoordinates(),this},__resize:function(){this.calculate(),this.parentSize.height>this.elementSize.height?this.enable():this.disable(),this.fireEvent("resize")},__scroll:function(){if(this.options.calculate&&this.calculate(),this.enabled&&this.isVisible()){var a=this.options,b=a.fixed,c=this.elementSize,d=this.elementTop,e=this.parentSize,f=window.getScroll(),g={},h=a.xOffset,i=0;if(f.y=k?(i="auto",g.position="absolute",g.bottom=0):(g.position="fixed",g.bottom="auto"):(g.position="absolute",i+=j>=k?e.height-c.height:f.y-e.top+a.yOffset,d&&d>i&&(i=d)),g[a.location]=h,g.top=i,this.element.setStyles(g).addClass(Toolkit.options.isPrefix+"pinned"),this.fireEvent("scroll")}}}),Toolkit.createComponent("pin",function(a){return new Toolkit.Pin(this,a)})}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-popover.min.js b/dist/mootools/toolkit-popover.min.js
index bcb0726e..9db86b52 100644
--- a/dist/mootools/toolkit-popover.min.js
+++ b/dist/mootools/toolkit-popover.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Popover=new Class({Extends:Toolkit.Tooltip,options:{delegate:".js-popover",position:"topCenter",getContent:"data-popover",titleElement:".popover-head",contentElement:".popover-body",template:'
'},initialize:function(a,b){b=b||{},b.mode="click",b.follow=!1,this.parent(a,b)}}),Toolkit.createComponent("popover",function(a){return new Toolkit.Popover(this,a)},!0)}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-showcase.min.js b/dist/mootools/toolkit-showcase.min.js
index 96ee451f..db4cf79f 100644
--- a/dist/mootools/toolkit-showcase.min.js
+++ b/dist/mootools/toolkit-showcase.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
-!function(){"use strict";Toolkit.Showcase=new Class({Extends:Toolkit.Component,Binds:["next","prev","__jump"],items:null,tabs:null,prevButton:null,nextButton:null,data:[],previousIndex:0,currentIndex:0,blackout:null,options:{delegate:".js-showcase",blackout:!0,stopScroll:!0,transition:300,gutter:50,getCategory:"data-showcase",getImage:"href",getTitle:"title",itemsElement:".showcase-items",tabsElement:".showcase-tabs",prevElement:".showcase-prev",nextElement:".showcase-next",closeEvent:".showcase-event-close",jumpEvent:".showcase-event-jump",prevEvent:".showcase-event-prev",nextEvent:".showcase-event-next",template:'
',onJump:null},initialize:function(a,b){this.parent(b),this.setNodes(a),this.createElement(),Toolkit.hasTransition||(this.options.transition=1),b=this.options,this.items=this.element.getElement(b.itemsElement),this.tabs=this.element.getElement(b.tabsElement),this.prevButton=this.element.getElement(b.prevElement),this.nextButton=this.element.getElement(b.nextElement),b.gutter+=this.element.getHeight()-this.items.getHeight(),this.options.blackout&&(this.blackout=Toolkit.Blackout.factory()),this.bindEvents(),this.fireEvent("init")},bindEvents:function(){return this.parent(),window.addEvent("keydown",function(a){if(this.isVisible())switch(["up","down","left","right"].contains(a.key)&&a.preventDefault(),a.key){case"esc":this.hide();break;case"up":this.jump(0);break;case"down":this.jump(-1);break;case"left":this.prev();break;case"right":this.next()}}.bind(this)),this.element.addEvent("clickout",this.__hide).addEvent("click:relay("+this.options.closeEvent+")",this.__hide).addEvent("click:relay("+this.options.nextEvent+")",this.next).addEvent("click:relay("+this.options.prevEvent+")",this.prev).addEvent("click:relay("+this.options.jumpEvent+")",this.__jump).addEvent("swipe",function(a){"left"===a.direction&&this.next()}.bind(this)).addEvent("swipe",function(a){"right"===a.direction&&this.prev()}.bind(this)),this.nodes.addEvent("clickout",this.__hide),this},hide:function(){return this.blackout&&this.blackout.hide(),this.options.stopScroll&&document.body.setStyle("overflow",""),this.parent(function(){this.element.removeClass(Toolkit.options.isPrefix+"single"),this.items.removeProperty("style").getElements("li").removeClass("show")}.bind(this)),this},jump:function(a){a>=this.data.length?a=0:0>a&&(a=this.data.length-1);var b=this,c=this.options,d=this.element,e=this.items,f=e.getElements("li"),g=f[a],h=this.data,i=h[a];if(this.previousIndex=this.currentIndex,this.currentIndex=a,this.tabs){var j=this.tabs.getElements("a");j.removeClass(Toolkit.options.isPrefix+"active"),j[a].addClass(Toolkit.options.isPrefix+"active")}if(f.removeClass("show"),g.hasAttribute("data-width"))this._resize(g.get("data-width").toInt(),g.get("data-height").toInt()),setTimeout(function(){g.addClass("show"),b.position()},c.transition);else{d.addClass(Toolkit.options.isPrefix+"loading");var k=new Image;k.src=i.image,k.onload=function(){b._resize(this.width,this.height),g.set("data-width",this.width).set("data-height",this.height),i.title&&g.grab(new Element("div."+Toolkit.options.vendor+"showcase-caption").set("html",i.title)),setTimeout(function(){d.removeClass(Toolkit.options.isPrefix+"loading"),g.addClass("show").grab(k),b.position()},c.transition)}}return this.fireEvent("jump",a),this},next:function(){return this.jump(this.currentIndex+1),this},position:function(){return this.blackout&&this.blackout.hideLoader(),this.element.reveal(),this.fireEvent("show"),this},prev:function(){return this.jump(this.currentIndex-1),this},show:function(a){this.node=a,this.currentIndex=this.previousIndex=0,this.element.addClass(Toolkit.options.isPrefix+"loading");var b=this.options,c=this.readValue,d=c(a,b.getCategory),e=[],f=0;if(d)for(var g,h=0,i=0;g=this.nodes[h];h++)c(g,b.getCategory)===d&&(g===a&&(f=i),e.push({title:c(g,b.getTitle),category:d,image:c(g,b.getImage)}),i++);else e.push({title:c(a,b.getTitle),category:d,image:c(a,b.getImage)});return this.blackout&&this.blackout.show(),b.stopScroll&&document.body.setStyle("overflow","hidden"),this._buildItems(e),this.jump(f),this},_buildItems:function(a){this.data=a,this.items.empty(),this.tabs.empty();for(var b,c,d,e=0;d=a[e];e++)b=new Element("li"),b.inject(this.items),c=new Element("a").set("class",this.options.jumpEvent.substr(1)).set("href","javascript:;").set("data-index",e),b=new Element("li"),b.inject(this.tabs).grab(c);return a.length<=1&&this.element.addClass(Toolkit.options.isPrefix+"single"),this.fireEvent("load",a),this}.protect(),_resize:function(a,b){var c,d,e=window.getSize(),f=this.options.gutter;if(a+f>e.x){var g=e.x-2*f;c=a/b,d=a-g,a=g,b-=Math.round(d/c)}else if(b+f>e.y){var h=e.y-2*f;c=b/a,d=b-h,a-=Math.round(d/c),b=h}return this.items.setStyles({width:a,height:b}),this},__jump:function(a){a.preventDefault(),this.jump(a.target.get("data-index")||0)}}),Toolkit.createComponent("showcase",function(a){return new Toolkit.Showcase(this,a)},!0)}();
\ No newline at end of file
+!function(){"use strict";Toolkit.Showcase=new Class({Extends:Toolkit.Component,Binds:["next","prev","__jump"],items:null,tabs:null,prevButton:null,nextButton:null,data:[],previousIndex:0,currentIndex:0,blackout:null,options:{delegate:".js-showcase",blackout:!0,stopScroll:!0,transition:300,gutter:50,getCategory:"data-showcase",getImage:"href",getTitle:"title",itemsElement:".showcase-items",tabsElement:".showcase-tabs",prevElement:".showcase-prev",nextElement:".showcase-next",closeEvent:".showcase-event-close",jumpEvent:".showcase-event-jump",prevEvent:".showcase-event-prev",nextEvent:".showcase-event-next",template:'
',onJump:null},initialize:function(a,b){this.parent(b),this.setNodes(a),this.createElement(),Toolkit.hasTransition||(this.options.transition=1),b=this.options,this.items=this.element.getElement(b.itemsElement),this.tabs=this.element.getElement(b.tabsElement),this.prevButton=this.element.getElement(b.prevElement),this.nextButton=this.element.getElement(b.nextElement),b.gutter+=this.element.getHeight()-this.items.getHeight(),this.options.blackout&&(this.blackout=Toolkit.Blackout.factory()),this.bindEvents(),this.fireEvent("init")},bindEvents:function(){return this.parent(),window.addEvent("keydown",function(a){if(this.isVisible())switch(["up","down","left","right"].contains(a.key)&&a.preventDefault(),a.key){case"esc":this.hide();break;case"up":this.jump(0);break;case"down":this.jump(-1);break;case"left":this.prev();break;case"right":this.next()}}.bind(this)),this.element.addEvent("clickout",this.__hide).addEvent("click:relay("+this.options.closeEvent+")",this.__hide).addEvent("click:relay("+this.options.nextEvent+")",this.next).addEvent("click:relay("+this.options.prevEvent+")",this.prev).addEvent("click:relay("+this.options.jumpEvent+")",this.__jump).addEvent("swipe",function(a){"left"===a.direction?this.next():"right"===a.direction&&this.prev()}.bind(this)),this.nodes.addEvent("clickout",this.__hide),this},hide:function(){return this.blackout&&this.blackout.hide(),this.options.stopScroll&&document.body.setStyle("overflow",""),this.parent(function(){this.element.removeClass(Toolkit.options.isPrefix+"single"),this.items.removeProperty("style").getElements("li").removeClass("show")}.bind(this)),this},jump:function(a){a>=this.data.length?a=0:0>a&&(a=this.data.length-1);var b=this,c=this.options,d=this.element,e=this.items,f=e.getElements("li"),g=f[a],h=this.data,i=h[a];if(this.previousIndex=this.currentIndex,this.currentIndex=a,this.tabs){var j=this.tabs.getElements("a");j.removeClass(Toolkit.options.isPrefix+"active"),j[a].addClass(Toolkit.options.isPrefix+"active")}if(f.removeClass("show"),g.hasAttribute("data-width"))this._resize(g.get("data-width").toInt(),g.get("data-height").toInt()),setTimeout(function(){g.addClass("show"),b.position()},c.transition);else{d.addClass(Toolkit.options.isPrefix+"loading");var k=new Image;k.src=i.image,k.onload=function(){b._resize(this.width,this.height),g.set("data-width",this.width).set("data-height",this.height),i.title&&g.grab(new Element("div."+Toolkit.options.vendor+"showcase-caption").set("html",i.title)),setTimeout(function(){d.removeClass(Toolkit.options.isPrefix+"loading"),g.addClass("show").grab(k),b.position()},c.transition)}}return this.fireEvent("jump",a),this},next:function(){return this.jump(this.currentIndex+1),this},position:function(){return this.blackout&&this.blackout.hideLoader(),this.element.reveal(),this.fireEvent("show"),this},prev:function(){return this.jump(this.currentIndex-1),this},show:function(a){this.node=a,this.currentIndex=this.previousIndex=0,this.element.addClass(Toolkit.options.isPrefix+"loading");var b=this.options,c=this.readValue,d=c(a,b.getCategory),e=[],f=0;if(d)for(var g,h=0,i=0;g=this.nodes[h];h++)c(g,b.getCategory)===d&&(g===a&&(f=i),e.push({title:c(g,b.getTitle),category:d,image:c(g,b.getImage)}),i++);else e.push({title:c(a,b.getTitle),category:d,image:c(a,b.getImage)});return this.blackout&&this.blackout.show(),b.stopScroll&&document.body.setStyle("overflow","hidden"),this._buildItems(e),this.jump(f),this},_buildItems:function(a){this.data=a,this.items.empty(),this.tabs.empty();for(var b,c,d,e=0;d=a[e];e++)b=new Element("li"),b.inject(this.items),c=new Element("a").set("class",this.options.jumpEvent.substr(1)).set("href","javascript:;").set("data-index",e),b=new Element("li"),b.inject(this.tabs).grab(c);return a.length<=1&&this.element.addClass(Toolkit.options.isPrefix+"single"),this.fireEvent("load",a),this}.protect(),_resize:function(a,b){var c,d,e=window.getSize(),f=this.options.gutter;if(a+f>e.x){var g=e.x-2*f;c=a/b,d=a-g,a=g,b-=Math.round(d/c)}else if(b+f>e.y){var h=e.y-2*f;c=b/a,d=b-h,a-=Math.round(d/c),b=h}return this.items.setStyles({width:a,height:b}),this},__jump:function(a){a.preventDefault(),this.jump(a.target.get("data-index")||0)}}),Toolkit.createComponent("showcase",function(a){return new Toolkit.Showcase(this,a)},!0)}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-stalker.min.js b/dist/mootools/toolkit-stalker.min.js
index f9cdfa70..2b096aea 100644
--- a/dist/mootools/toolkit-stalker.min.js
+++ b/dist/mootools/toolkit-stalker.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Stalker=new Class({Extends:Toolkit.Component,Binds:["__scroll"],target:null,targets:[],marker:null,markers:[],offsets:[],options:{target:"",marker:"",threshold:50,throttle:50,onlyWithin:!0,applyToParent:!0,onScroll:null,onActivate:null,onDeactivate:null},initialize:function(a,b){this.parent(b),this.setElement(a),this.element&&this.options.target&&this.options.marker&&(this.element.addClass(Toolkit.options.vendor+"stalker"),this.refresh(),this.bindEvents(),this.fireEvent("init"))},activate:function(a,b){this.marker=a,this.target=b;var c=this.targets;return this.options.applyToParent?(c.getParent().removeClass(Toolkit.options.isPrefix+"active"),b.getParent().addClass(Toolkit.options.isPrefix+"active")):(c.removeClass(Toolkit.options.isPrefix+"active"),b.addClass(Toolkit.options.isPrefix+"active")),this.fireEvent("activate",[a,b]),this},bindEvents:function(){return("auto"===this.element.getStyle("overflow")?this.element:window).addEvent("scroll:throttle("+this.options.throttle+")",this.__scroll),window.addEvent("domready",this.__scroll),this},deactivate:function(a){var b=this.targets;return this.options.applyToParent?b.getParent().removeClass(Toolkit.options.isPrefix+"active"):b.removeClass(Toolkit.options.isPrefix+"active"),this.marker=null,this.target=null,this.fireEvent("deactivate",a),this},refresh:function(){return"auto"===this.element.getStyle("overflow")&&this.element!==document.body&&(this.element.scrollTop=0),this.target=null,this.targets=$$(this.options.target),this.targets.addClass(Toolkit.options.vendor+"stalker-target"),this.marker=null,this.markers=$$(this.options.marker),this.markers.addClass(Toolkit.options.vendor+"stalker-marker"),this.offsets=this.markers.getCoordinates(this.element),this},__scroll:function(){if(this.enabled){var a=this.element.getScroll().y,b=this.markers,c=this.targets,d=this.offsets,e=this.options.onlyWithin,f=this.options.threshold;b.each(function(b,g){var h=d[g],i=h.top-f,j=h.top+h.height+f,k=[];e&&a>=i&&j>=a||!e&&a>=i?(k=c.filter(function(a){return a.get("href")==="#"+b.get("id")}),k.length&&this.activate(b,k[0])):this.marker===b&&this.deactivate(b)}.bind(this)),this.fireEvent("scroll")}}}),Toolkit.createComponent("stalker",function(a){return new Toolkit.Stalker(this,a)})}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-tabs.min.js b/dist/mootools/toolkit-tabs.min.js
index b6f9cecf..21ec4727 100644
--- a/dist/mootools/toolkit-tabs.min.js
+++ b/dist/mootools/toolkit-tabs.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Tabs=new Class({Extends:Toolkit.Component,nav:null,sections:[],tabs:[],previousIndex:0,currentIndex:0,options:{ajax:!0,collapsible:!1,defaultIndex:0,persistState:!1,preventDefault:!0,loadFragment:!0,cookie:null,cookieDuration:30,getUrl:"href",navElement:".tabs-nav",sectionsElement:".tabs-section",template:!1},initialize:function(a,b){if(this.parent(b),this.setElement(a),this.element){this.options.cookie||(this.options.cookie=this.element.get("id")),b=this.options,this.nav=this.element.getElement(b.navElement),this.tabs=this.nav.getElements("ul > li > a"),this.tabs.each(function(a,b){a.set("data-index",b).removeClass(Toolkit.options.isPrefix+"active")}),this.sections=this.element.getElements(b.sectionsElement),this.sections.conceal(),this.bindEvents(),this.fireEvent("init");var c=b.defaultIndex;if(b.persistState)c=Number.from(Cookie.read("toolkit.tabs."+b.cookie)||b.defaultIndex);else if(b.loadFragment&&location.hash){var d=this.tabs.filter(function(a){return a.get("href")===location.hash});d[0]&&(c=d[0].get("data-index"))}this.tabs[c]||(c=0),this.jump(c)}},bindEvents:function(){return this.tabs.addEvent("click"===this.options.mode?"click":"mouseover",this.__show),"hover"===this.options.mode&&this.options.preventDefault&&this.tabs.addEvent("click",function(a){a.preventDefault()}),this},hide:function(){return this.sections.conceal(),this.fireEvent("hide",this.node),this},jump:function(a){return this.tabs[a]&&this.show(this.tabs[a]),this},show:function(a){var b=a.get("data-index"),c=this.sections[b],d=this.readValue(a,this.options.getUrl);return this.options.ajax&&d&&"#"!==d.substr(0,1)&&!this.cache[d]&&this.requestData(d,function(){c.set("html",this._loadingTemplate()).addClass(Toolkit.options.isPrefix+"loading")}.bind(this),function(a){this.cache[d]=!0,c.set("html",a).removeClass(Toolkit.options.isPrefix+"loading"),this.fireEvent("load",a)}.bind(this),function(){c.set("html",this._errorTemplate()).removeClass(Toolkit.options.isPrefix+"loading").addClass(Toolkit.options.hasPrefix+"failed")}.bind(this)),this.nav.getElements("ul > li").removeClass(Toolkit.options.isPrefix+"active"),b===this.currentIndex&&this.options.collapsible?c.isVisible()?c.conceal():(a.getParent().addClass(Toolkit.options.isPrefix+"active"),c.reveal()):(this.hide(),a.getParent().addClass(Toolkit.options.isPrefix+"active"),c.reveal()),this.options.persistState&&Cookie.write("toolkit.tabs."+this.options.cookie,b,{duration:this.options.cookieDuration}),this.previousIndex=this.currentIndex,this.currentIndex=b,this.fireEvent("show",a),this.node=a,this},__show:function(a){(this.options.preventDefault||this.options.ajax&&"#"!==a.target.get("href").substr(0,1))&&a.preventDefault(),this.enabled&&this.show(a.target)}}),Toolkit.createComponent("tabs",function(a){return new Toolkit.Tabs(this,a)})}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-tooltip.min.js b/dist/mootools/toolkit-tooltip.min.js
index 4868500b..32e6ce9c 100644
--- a/dist/mootools/toolkit-tooltip.min.js
+++ b/dist/mootools/toolkit-tooltip.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.Tooltip=new Class({Extends:Toolkit.Component,Binds:["__follow"],elementHead:null,elementBody:null,options:{delegate:".js-tooltip",mode:"hover",ajax:!1,follow:!1,position:"topCenter",loadingMessage:Toolkit.messages.loading,showLoading:!0,showTitle:!0,getTitle:"title",getContent:"data-tooltip",mouseThrottle:50,xOffset:0,yOffset:0,delay:0,titleElement:".tooltip-head",contentElement:".tooltip-body",template:'
'},initialize:function(a,b){this.parent(b),this.setNodes(a),this.createElement(),this.elementHead=this.element.getElement(this.options.titleElement),this.elementBody=this.element.getElement(this.options.contentElement),this.element.addClass(this.options.position.hyphenate()),this.bindEvents(),"click"===this.options.mode&&this.element.addEvent("clickout",this.__hide),this.fireEvent("init")},position:function(a,b){var c=this.options;if(a===!0)return this;if(b=b||this.readValue(this.node,c.getTitle),b&&c.showTitle?this.elementHead.set("html",b).show():this.elementHead.hide(),a?this.elementBody.set("html",a).show():this.elementBody.hide(),this.fireEvent("load",a),c.follow){var d="mousemove:throttle("+c.mouseThrottle+")";this.node.removeEvent(d,this.__follow).addEvent(d,this.__follow),this.fireEvent("show")}else this.element.positionTo(c.position,this.node,{left:c.xOffset,top:c.yOffset}),window.setTimeout(function(){this.element.reveal(),this.fireEvent("show")}.bind(this),c.delay||0);return this},show:function(a,b,c){var d=this.options;return a&&("hover"===d.mode&&a.removeEvent("mouseleave",this.__hide).addEvent("mouseleave",this.__hide),b=b||this.readValue(a,d.getContent)),b?(this.node=a,d.ajax?this.cache[b]?this.position(this.cache[b],c):(d.showLoading&&this.position(d.loadingMessage),this.requestData(b)):this.position(b,c),this):this},__follow:function(a){a.preventDefault();var b=this.options;this.element.positionTo(b.position,a,{left:b.xOffset,top:b.yOffset},!0).reveal()}}),Toolkit.createComponent("tooltip",function(a){return new Toolkit.Tooltip(this,a)},!0)}();
\ No newline at end of file
diff --git a/dist/mootools/toolkit-typeahead.min.js b/dist/mootools/toolkit-typeahead.min.js
index 544dc5ca..e010af05 100644
--- a/dist/mootools/toolkit-typeahead.min.js
+++ b/dist/mootools/toolkit-typeahead.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
!function(){"use strict";Toolkit.TypeAhead=new Class({Extends:Toolkit.Component,Implements:[Cache],Binds:["process","rewind","__cycle","__lookup"],input:null,shadow:null,index:-1,items:[],term:"",timer:null,options:{source:[],minLength:1,itemLimit:15,throttle:250,prefetch:!1,shadow:!1,storage:"session",query:{},contentElement:"",template:'',sorter:null,matcher:null,builder:null,onSelect:null,onCycle:null,onReset:null},initialize:function(a,b){if(this.parent(b),this.createElement(),this.input=a,"input"!==this.input.get("tag"))throw new Error("TypeAhead must be initialized on an input field");if(this.input.set("autocomplete","off"),b=this.options,this.setStorage(b.storage),Object.each({sorter:"sort",matcher:"match",builder:"build"},function(a,c){if(b[c]!==!1){var d;d=null===b[c]||"function"!==typeOf(b[c])?this[a]:b[c],this.options[c]=d.bind(this)}}.bind(this)),b.prefetch&&"string"===typeOf(b.source)){var c=b.source;new Request.JSON({url:c,data:b.query,onSuccess:function(a){this.setCache(c,a)}.bind(this)}).get()}b.shadow&&(this.node=new Element("div."+Toolkit.options.vendor+"type-ahead-shadow").wraps(this.input),this.shadow=this.input.clone().addClass(Toolkit.options.isPrefix+"shadow").removeProperty("id").set("readonly",!0).inject(this.node,"bottom"),this.input.addClass("not-shadow")),this.bindEvents(),this.fireEvent("init")},bindEvents:function(){return window.addEvent("keydown",function(a){"esc"===a.key&&this.isVisible()&&this.hide()}.bind(this)),this.element.addEvent("clickout",this.hide.bind(this)),this.input.addEvents({keyup:this.__lookup,keydown:this.__cycle}),this},build:function(a){var b=new Element("a",{href:"javascript:;"});return b.grab(new Element("span."+Toolkit.options.vendor+"type-ahead-title",{html:this.highlight(a.title)})),a.description&&b.grab(new Element("span."+Toolkit.options.vendor+"type-ahead-desc",{html:a.description})),b},hide:function(){return this.shadow&&this.shadow.set("value",""),this.parent()},highlight:function(a){for(var b,c=this.term.replace(/[\-\[\]\{\}()*+?.,\\^$|#]/g,"\\$&").split(" "),d=function(a){return''+a+""},e=0;b=c[e];e++)a=a.replace(new RegExp(b,"ig"),d);return a},lookup:function(a){return this.term=a,this.timer=window.setTimeout(function(){var b=this.options,c=typeOf(b.source);if(this.cache[a.toLowerCase()])this.process(this.cache[a.toLowerCase()]);else if("string"===c){var d=b.source,e=this.getCache(d);if(e)this.process(e);else{var f=b.query;f.term=a,new Request.JSON({url:d,data:f,onSuccess:this.process}).get()}}else if("array"===c)this.process(b.source);else{if("function"!==c)throw new Error("Invalid TypeAhead source type");var g=b.source.attempt([],this);g&&this.process(g)}}.bind(this),this.options.throttle),this},match:function(a,b){return a.toLowerCase().indexOf(b.toLowerCase())>=0},position:function(){if(!this.items.length)return this.hide();var a=this.input.getCoordinates();return this.element.setPosition({x:a.left,y:a.top+a.height}),this.element.reveal(),this},process:function(a){if(!this.term.length||!a.length)return this.hide(),this;var b,c=this.options,d={_empty_:[]},e=new Element("ul");this.items=[],this.index=-1,"function"===typeOf(c.sorter)&&(a=c.sorter(a)),"function"===typeOf(c.matcher)&&(a=a.filter(function(a){return c.matcher(a.title,this.term)}.bind(this)));for(var f=0;b=a[f];f++)b.category?(d[b.category]||(d[b.category]=[]),d[b.category].push(b)):d._empty_.push(b);var g=[],h=0;return Object.each(d,function(a,d){var f=new Elements;"_empty_"!==d&&(g.push(null),f.push(new Element("li").addClass(Toolkit.options.vendor+"type-ahead-heading").grab(new Element("span",{text:d}))));for(var i,j=0;(b=a[j])&&!(h>=c.itemLimit);j++)i=c.builder(b),i.addEvents({mouseover:this.rewind,click:this.__select.pass(g.length,this)}),f.push(new Element("li").grab(i)),g.push(b),h++;f.inject(e)}.bind(this)),this.element.empty(),c.contentElement?this.element.getElement(c.contentElement).grab(e):this.element.grab(e),this.items=g,this.cache[this.term.toLowerCase()]=g.filter(function(a){return null!==a}),this.fireEvent("load"),this._shadow(),this.position(),this.fireEvent("show"),this},rewind:function(){return this.index=-1,this.element.getElements("li").removeClass(Toolkit.options.isPrefix+"active"),this},select:function(a,b){this.index=a;var c=this.element.getElements("li");if(c.removeClass(Toolkit.options.isPrefix+"active"),a>=0){if(this.items[a]){var d=this.items[a];c[a].addClass(Toolkit.options.isPrefix+"active"),this.input.set("value",d.title),this.fireEvent(b||"select",[d,a])}}else this.input.set("value",this.term),this.fireEvent("reset");return this},sort:function(a){return a.sort(function(a,b){return a.title.localeCompare(b.title)})},_shadow:function(){if(!this.shadow)return this;var a=this.input.get("value"),b=a.toLowerCase(),c="";if(this.cache[b]&&this.cache[b][0]){var d=this.cache[b][0].title;0===d.toLowerCase().indexOf(b)&&(c=a+d.substr(a.length,d.length-a.length))}return this.shadow.set("value",c),this}.protect(),__cycle:function(a){var b=this.items,c=b.length.limit(0,this.options.itemLimit);if(c&&this.isVisible()){switch(a.key){case"up":this.index-=b[this.index-1]?1:2,this.index<0&&(this.index=c);break;case"down":this.index+=b[this.index+1]?1:2,this.index>=c&&(this.index=-1);break;case"tab":a.preventDefault();for(var d=0;!this.items[d];)d++;this.index=d,this.hide();break;case"enter":this.hide();break;case"esc":this.index=-1,this.hide();break;default:return}this.shadow&&this.shadow.set("value",""),this.select(this.index,"cycle")}},__lookup:function(a){if(!["up","down","esc","tab","enter"].contains(a.key)){window.clearTimeout(this.timer);var b=this.input.get("value").trim();b.length=0?(h?g.cache[e]=a:delete g.cache[e],g.position(a)):(delete g.cache[e],"application/json"===b&&(a=JSON.parse(a)),g.process(a))},f.onFailure=d||function(){delete this.cache[e],this.element.removeClass(Toolkit.options.isPrefix+"loading").addClass(Toolkit.options.hasPrefix+"failed"),this.position(this._errorTemplate())}.bind(this),new Request(f).send(),this},setElement:function(a){return"string"===typeOf(a)&&(a=document.getElement(a)),this.element=a,this.options.template=!1,this.options.className&&this.element.addClass(this.options.className),this.options.animation&&this.element.addClass(this.options.animation),this},setNodes:function(a){return this.nodes=a,this},setOptions:function(){var a=Object.merge.apply(null,[{},this.options].append(arguments));if(Toolkit.isTouch&&"hover"===a.mode&&(a.mode="click"),this.addEvent)for(var b in a)"function"===typeOf(a[b])&&/^on[A-Z]/.test(b)&&(this.addEvent(b,a[b]),delete a[b]);return this.options=a,this},show:function(a){return this.node=a,this.element.reveal(),this.fireEvent("show"),this},toElement:function(){return this.element},_errorTemplate:function(){return new Element("div."+this.className().hyphenate().slice(1)+"-error",{text:this.options.errorMessage||Toolkit.messages.error})}.protect(),_loadingTemplate:function(){return new Element("div."+this.className().hyphenate().slice(1)+"-loading",{text:this.options.loadingMessage||Toolkit.messages.loading})}.protect(),__hide:function(a){"domevent"===typeOf(a)&&a.preventDefault(),this.hide()},__show:function(a,b){if(this.enabled){if(b=b||a.target,this.isVisible()){if(Toolkit.isTouch?(b!==this.node||"a"!==this.node.get("tag"))&&a.preventDefault():a.preventDefault(),"click"===this.options.mode&&this.hide(),b===this.node)return}else"domevent"===typeOf(a)&&a.preventDefault();this.show(b)}}})}();
\ No newline at end of file
+!function(a){"use strict";a.Toolkit={version:"1.1.0",build:"hrnvq2au",options:{vendor:"",isPrefix:"is-",hasPrefix:"has-"},messages:{loading:"Loading...",error:"An error has occurred!"},hasTransition:function(){for(var a="transition WebkitTransition MozTransition OTransition msTransition".split(" "),b=document.createElement("div").style,c=0;c=0?(h?g.cache[e]=a:delete g.cache[e],g.position(a)):(delete g.cache[e],"application/json"===b&&(a=JSON.parse(a)),g.process(a))},f.onFailure=d||function(){delete this.cache[e],this.element.removeClass(Toolkit.options.isPrefix+"loading").addClass(Toolkit.options.hasPrefix+"failed"),this.position(this._errorTemplate())}.bind(this),new Request(f).send(),this},setElement:function(a){return"string"===typeOf(a)&&(a=document.getElement(a)),this.element=a,this.options.template=!1,this.options.className&&this.element.addClass(this.options.className),this.options.animation&&this.element.addClass(this.options.animation),this},setNodes:function(a){return this.nodes=a,this},setOptions:function(){var a=Object.merge.apply(null,[{},this.options].append(arguments));if(Toolkit.isTouch&&"hover"===a.mode&&(a.mode="click"),this.addEvent)for(var b in a)"function"===typeOf(a[b])&&/^on[A-Z]/.test(b)&&(this.addEvent(b,a[b]),delete a[b]);return this.options=a,this},show:function(a){return this.node=a,this.element.reveal(),this.fireEvent("show"),this},toElement:function(){return this.element},_errorTemplate:function(){return new Element("div."+this.className().hyphenate().slice(1)+"-error",{text:this.options.errorMessage||Toolkit.messages.error})}.protect(),_loadingTemplate:function(){return new Element("div."+this.className().hyphenate().slice(1)+"-loading",{text:this.options.loadingMessage||Toolkit.messages.loading})}.protect(),__hide:function(a){"domevent"===typeOf(a)&&a.preventDefault(),this.hide()},__show:function(a,b){if(this.enabled){if(b=b||a.target,this.isVisible()){if(Toolkit.isTouch?(b!==this.node||"a"!==this.node.get("tag"))&&a.preventDefault():a.preventDefault(),"click"===this.options.mode&&this.hide(),b===this.node)return}else"domevent"===typeOf(a)&&a.preventDefault();this.show(b)}}})}();
\ No newline at end of file
diff --git a/dist/toolkit-jquery.min.js b/dist/toolkit-jquery.min.js
index 8372b06a..a82783a8 100644
--- a/dist/toolkit-jquery.min.js
+++ b/dist/toolkit-jquery.min.js
@@ -1,6 +1,6 @@
/*!
- * Titon Toolkit v1.1.0-rc.2
- * Copyright 2010-2013, The Titon Project - http://titon.io
+ * Titon Toolkit v1.1.0
+ * Copyright 2010-2014, The Titon Project - http://titon.io
* BSD-2 - https://github.com/titon/toolkit/blob/master/license.md
*/
-!function(a){"use strict";a.Toolkit={version:"1.1.0-rc.2",build:"hrjiyw01",options:{vendor:"",isPrefix:"is-",hasPrefix:"has-"},messages:{loading:"Loading...",error:"An error has occurred!"},hasTransition:function(){for(var a="transition WebkitTransition MozTransition OTransition msTransition".split(" "),b=document.createElement("div").style,c=0;c0?this.on("clickout",null,a,b):this.trigger("clickout")},$.fn.positionTo=function(a,b,c,d){a=$.hyphenate(a).split("-");var e={y:a[0],x:a[1]},f=c||{left:0,top:0},g=0,h=0,i=this.outerHeight(!0),j=this.outerWidth(!0);if(b.preventDefault)f.left+=b.pageX,f.top+=b.pageY;else{var k=b.offset();f.left+=k.left,f.top+=k.top,g=b.outerHeight(),h=b.outerWidth()}return"top"===e.y?f.top-=i:"bottom"===e.y?f.top+=g:"center"===e.y&&(f.top-=Math.round(i/2-g/2)),"left"===e.x?f.left-=j:"right"===e.x?f.left+=h:"center"===e.x&&(f.left-=Math.round(j/2-h/2)),d&&("center"===e.y&&("left"===e.x?f.left-=15:"right"===e.x&&(f.left+=15)),"center"===e.x&&("top"===e.y?f.top-=10:"bottom"===e.y&&(f.top+=20))),this.css(f)},$.debounce=function(a,b,c){var d;return function(){var e=this,f=arguments;clearTimeout(d),d=setTimeout(function(){d=null,c||a.apply(e,f)},b||150),c&&!d&&a.apply(e,f)}},$.throttle=function(a,b){var c=!1;return function(){var d=this,e=arguments;c||(c=!0,setTimeout(function(){a.apply(d,e),c=!1},b||150))}},$.expr[":"].shown=function(a){return"hidden"!==$(a).css("visibility")},$.hyphenate=function(a){return a.replace(/[A-Z]/g,function(a){return"-"+a.charAt(0).toLowerCase()})},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=[].slice.call(arguments,1),d=function(){},e=function(){return b.apply(this instanceof d&&a?this:a,c.concat([].slice.call(arguments)))};return d.prototype=this.prototype,e.prototype=new d,e})}(window);!function(a){"use strict";Toolkit.Component=Toolkit.Class.extend(function(){},{component:"Component",version:"0.0.0",enabled:!0,createElement:function(){var b,c=this.options;if(c.templateFrom&&(b=a(c.templateFrom)),b&&b.length||!c.template||(b=a(c.template),b.length&&b.conceal().appendTo("body")),!b)throw new Error("Failed to create template element");return this.setElement(b)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},fireEvent:function(b,c){a.isArray(c)||(c=[c]);var d="on"+b.charAt(0).toUpperCase()+b.slice(1);if(this.options[d]&&this.options[d].apply(this,c||[]),this.element&&this.element.length){var e=this.component;e=e.charAt(0).toLowerCase()+e.slice(1);var f=jQuery.Event(b+".toolkit."+e);f.context=this,this.element.trigger(f,c||[])}},process:function(a){if(this.hide(),a.callback){for(var b=a.callback.split("."),c=window,d=c,e=0;e=0?(h?this.cache[f]=a:delete this.cache[f],this.position(a)):(delete this.cache[f],this.process(a))}).fail(e||function(){delete this.cache[f],this.element.removeClass(Toolkit.options.isPrefix+"loading").addClass(Toolkit.options.hasPrefix+"failed"),this.position(this._errorTemplate())})},setElement:function(b){var c=this.options;return c.template=!1,b=a(b),c.className&&b.addClass(c.className),c.animation&&b.addClass(c.animation),b},setOptions:function(b){var c=Toolkit,d=this.component;if(d.indexOf(".")>=0){d=d.split(".");for(var e=0;e").addClass(Toolkit.options.vendor+a.hyphenate(this.component).slice(1)+"-error").text(Toolkit.messages.error)},_loadingTemplate:function(){return a("").addClass(Toolkit.options.vendor+a.hyphenate(this.component).slice(1)+"-loading").text(Toolkit.messages.loading)}})}(jQuery);!function(a){"use strict";Toolkit.Accordion=Toolkit.Component.extend(function(b,c){var d,e,f;this.component="Accordion",this.version="1.0.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.headers=e=this.element.find(c.headerElement),this.sections=f=this.element.find(c.contentElement),this.previousIndex=0,this.currentIndex=0,this.node=null,b.children("li").removeClass(Toolkit.options.isPrefix+"active"),e.each(function(b){a(this).data("index",b)}),f.each(function(){var b=a(this);b.data("height",b.height()).conceal()}),e.on("click"===c.mode?"click":"mouseover",this.__show.bind(this)),this.fireEvent("init"),d=e.item(e[c.defaultIndex]?c.defaultIndex:0),this.show(d)},{jump:function(a){a>=this.headers.length?a=0:0>a&&(a=this.headers.length-1),this.fireEvent("jump",a),this.show(this.headers[a])},show:function(b){b=a(b);var c=this.options,d=b.parent(),e=b.next(c.contentElement),f=b.data("index"),g=parseInt(e.data("height"),10),h=this.node&&this.node.is(b);if("click"===c.mode&&(c.multiple||c.collapsible&&h))e.is(":shown")&&this.node?(e.css("max-height",0).conceal(),d.removeClass(Toolkit.options.isPrefix+"active")):(e.css("max-height",g).reveal(),d.addClass(Toolkit.options.isPrefix+"active"));else{if(h)return;this.sections.css("max-height",0).conceal(),e.css("max-height",g).reveal(),this.element.children("li").removeClass(Toolkit.options.isPrefix+"active"),d.addClass(Toolkit.options.isPrefix+"active")}this.previousIndex=this.currentIndex,this.currentIndex=f,this.node=b,this.fireEvent("show",e)},__show:function(a){a.preventDefault(),this.show(a.currentTarget)}},{mode:"click",defaultIndex:0,multiple:!1,collapsible:!1,headerElement:".accordion-head",contentElement:".accordion-handle"}),Toolkit.createComponent("accordion",function(a){return new Toolkit.Accordion(this,a)})}(jQuery);!function(a){"use strict";Toolkit.Blackout=Toolkit.Component.extend(function(b){this.component="Blackout",this.version="1.1.0",this.options=b=this.setOptions(Toolkit.options,b),this.element=this.createElement(),this.count=0;var c=Toolkit.options.vendor,d="bubble-spinner"===b.loader?8:b.waveCount;this.loader=a("").addClass(c+"loader").addClass(b.loader).appendTo(this.element);var e,f="";for(e=0;d>e;e++)f+="";"bubble-spinner"===b.loader?a("").addClass("spinner").html(f).appendTo(this.loader):this.loader.html(f),this.message=a("").addClass(c+"loader-message").html(b.loaderMessage).appendTo(this.loader),this.fireEvent("init")},{hide:function(){var a=this.count-1;0>=a?(this.count=0,this.element.conceal(),this.hideLoader()):this.count=a,this.fireEvent("hide",0>=a)},hideLoader:function(){this.loader.conceal()},show:function(){this.count++,this.element.reveal(),this.showLoader(),this.fireEvent("show")},showLoader:function(){this.loader.reveal()}},{loader:"bar-wave",loaderMessage:Toolkit.messages.loading,waveCount:5,template:'',templateFrom:"#toolkit-blackout"});var b=null;Toolkit.Blackout.factory=function(a){return b?b:b=new Toolkit.Blackout(a)}}(jQuery);!function(a){"use strict";Toolkit.Carousel=Toolkit.Component.extend(function(b,c){if(this.component="Carousel",this.version="1.0.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.itemsWrapper=b.find(c.itemsElement),this.itemsList=this.itemsWrapper.children("ul, ol"),this.items=this.itemsWrapper.find(c.itemElement),this.tabsWrapper=b.find(c.tabsElement),this.tabs=this.tabsWrapper.find(c.tabElement),this.nextButton=b.find(c.nextElement),this.prevButton=b.find(c.prevElement),this.previousIndex=0,this.currentIndex=0,this.timer=null,this.stopped=!1,this.items.length<=1)return this.tabsWrapper.hide(),this.nextButton.hide(),void this.prevButton.hide();switch(c.animation){case"fade":this.items.item(0).reveal();break;case"slide":this.itemsList.css("width",100*this.items.length+"%"),this.items.css("width",100/this.items.length+"%")}this.tabs.each(function(b){a(this).data("index",b)}),a(window).on("keydown",function(b){switch(a.inArray(b.keyCode,[37,38,39,40])>=0&&b.preventDefault(),b.keyCode){case 37:this.prev();break;case 38:this.jump(0);break;case 39:this.next();break;case 40:this.jump(-1)}}.bind(this)),c.stopOnHover&&this.element.on("mouseenter",this.stop.bind(this)).on("mouseleave",this.start.bind(this)),this.element.on("swipeleft",this.next.bind(this)).on("swiperight",this.prev.bind(this)),this.tabs.on("click",this.__jump.bind(this)),this.nextButton.on("click",this.next.bind(this)),this.prevButton.on("click",this.prev.bind(this)),this.fireEvent("init"),this.start(),this.reset()},{jump:function(a){switch(a>=this.items.length?a=0:0>a&&(a=this.items.length-1),this.previousIndex=this.currentIndex,this.currentIndex=a,this.tabs.length&&this.tabs.removeClass(Toolkit.options.isPrefix+"active").item(a).addClass(Toolkit.options.isPrefix+"active"),this.options.animation){case"fade":this.items.removeClass("show").item(a).reveal();break;case"slide-up":this.itemsList.css("top",-(100*a)+"%");break;default:this.itemsList.css("left",-(100*a)+"%")}this.reset(),this.fireEvent("jump",a)},next:function(){this.jump(this.currentIndex+1)},prev:function(){this.jump(this.currentIndex-1)},reset:function(){this.options.autoCycle&&(clearInterval(this.timer),this.timer=setInterval(this.__cycle.bind(this),this.options.duration))},start:function(){this.element.removeClass(Toolkit.options.isPrefix+"stopped"),this.stopped=!1,this.fireEvent("start")},stop:function(){this.element.addClass(Toolkit.options.isPrefix+"stopped"),this.stopped=!0,this.fireEvent("stop")},__cycle:function(){this.enabled&&!this.stopped&&(this.fireEvent("cycle"),this.next())},__jump:function(b){b.preventDefault(),this.enabled&&this.jump(a(b.target).data("index")||0)}},{animation:"slide",duration:5e3,autoCycle:!0,stopOnHover:!0,itemsElement:".carousel-items",itemElement:"li",tabsElement:".carousel-tabs",tabElement:"a",nextElement:".carousel-next",prevElement:".carousel-prev"}),Toolkit.createComponent("carousel",function(a){return new Toolkit.Carousel(this,a)})}(jQuery);!function(a){"use strict";Toolkit.Drop=Toolkit.Component.extend(function(b,c){this.component="Drop",this.version="1.1.0",this.options=c=this.setOptions(c),this.element=null,this.node=null,this.nodes=b=a(b);var d=["down","up","left","right"].map(function(a){return"."+Toolkit.options.vendor+"drop--"+a});a(b.selector+", "+d.join(", ")).clickout(this.hide.bind(this)),a(c.context||document).on("click"===c.mode?"click":"mouseenter",b.selector,this.__show.bind(this)),this.fireEvent("init")},{hide:function(){this.element&&this.element.is(":shown")&&(this.element.conceal(),this.node.removeClass(Toolkit.options.isPrefix+"active"),this.fireEvent("hide"))},show:function(b){this.element.reveal(),this.node=a(b),this.node.addClass(Toolkit.options.isPrefix+"active"),this.fireEvent("show")},__show:function(b){if(b.preventDefault(),this.enabled){var c=a(b.target),d=this.readValue(c,this.options.getTarget);d&&"#"===d.substr(0,1)&&(this.options.hideOpened&&this.node&&!this.node.is(c)&&this.hide(),this.element=a(d),this.node=c,this.element.is(":shown")?this.hide():this.show(c))}}},{mode:"click",context:null,getTarget:"data-drop",hideOpened:!0}),Toolkit.createComponent("drop",function(a){return new Toolkit.Drop(this,a)},!0)}(jQuery);!function(a){"use strict";Toolkit.Flyout=Toolkit.Component.extend(function(b,c,d){if(!c)throw new Error("Flyout URL required to download sitemap JSON");this.component="Flyout",this.version="1.0.0",this.options=d=this.setOptions(d),this.nodes=b=a(b),this.node=null,this.element=null,this.current=null,this.menus={},this.data=[],this.dataMap={},this.timers={},a.getJSON(c,this.load.bind(this)),"hover"===d.mode&&a(d.context||document).on("mouseenter",b.selector,function(){this.clearTimer("hide"),this.startTimer("show",d.showDelay)}.bind(this)).on("mouseleave",b.selector,function(){this.clearTimer("show"),this.startTimer("hide",d.showDelay)}.bind(this)),a(d.context||document).on("click"===d.mode?"click":"mouseenter",b.selector,this.__show.bind(this)),this.fireEvent("init")},{clearTimer:function(a){clearTimeout(this.timers[a]),delete this.timers[a]},hide:function(){this.node.removeClass(Toolkit.options.isPrefix+"active"),this.current&&this.isVisible()&&(this.menus[this.current].conceal(),this.fireEvent("hide"),this.current=null)},isVisible:function(){return this.current&&this.menus[this.current]&&(this.element=this.menus[this.current]),this.element&&this.element.is(":shown")},load:function(a,b){if(b=b||0,0===b&&(this.data=a),this.dataMap[a.url]=a,a.children)for(var c=0,d=a.children.length;d>c;c++)this.load(a.children[c],b+1)},position:function(){var b=this.current,c=this.options;if(this.menus[b]){var d=this.menus[b],e=d.outerHeight(),f=this.node.offset(),g=f.left+c.xOffset,h=f.top+c.yOffset+this.node.outerHeight(),i=a(window).height();h>i/2&&(h=f.top-c.yOffset-e),d.css({left:g,top:h}).reveal(),this.fireEvent("show")}},show:function(b){var c=this._getTarget(b);this.current&&c!==this.current&&(this.hide(),this.startTimer("show",this.options.showDelay)),this.node=a(b),this._getMenu()&&(this.fireEvent("load",b),this.node.addClass(Toolkit.options.isPrefix+"active"),"click"===this.options.mode&&this.position())},startTimer:function(a,b,c){this.clearTimer(a);var d;d="show"===a?this.position.bind(this):this.hide.bind(this),d&&(this.timers[a]=setTimeout(function(){d.apply(this,c||[])}.bind(this),b))},_buildMenu:function(b,c){if(!c.children||!c.children.length)return null;var d,e,f,g,h,i=a(this.options.template),j=[],k=this.options.contentElement,l=this.options.itemLimit;if(this.options.className&&i.addClass(this.options.className),b.is("body")&&i.addClass(Toolkit.options.isPrefix+"root"),l&&c.children.length>l)for(g=0,h=c.children.length;h>g;)j.push(c.children.slice(g,g+=l));else j.push(c.children);for(var m,n,o=0;m=j[o];o++){for(d=a("
"),h=0,i=this;return this.dropdown=f,c.children().each(function(){var c=a(this);"optgroup"===c.prop("tagName").toLowerCase()?(0===h&&(d.hideFirst=!1),g.append(a("").addClass(b+"drop-heading").text(c.attr("label"))),c.children().each(function(){var b=a(this);c.prop("disabled")&&b.prop("disabled",!0),b.prop("selected")&&(i.currentIndex=h),g.append(e(b,h)),h++})):(c.prop("selected")&&(i.currentIndex=h),g.append(e(c,h)),h++)}),d.hideSelected&&!d.multiple&&f.addClass("hide-selected"),d.hideFirst&&f.addClass("hide-first"),this.multiple&&f.addClass(Toolkit.options.isPrefix+"multiple"),this.wrapper.append(f.append(g)),f},buildOption:function(b,c){var d,e=this.input,f=this.dropdown,g=Toolkit.options.isPrefix+"active",h=a(""),i=b.text();b.prop("selected")&&h.addClass(g),(d=this.readValue(b,this.options.getDescription))&&(i+=' '+d+"");var j=a("").html(i).attr("href","javascript:;");if(this.options.copyClasses&&this.copyClasses(b,h),h.append(j),b.prop("disabled"))return h.addClass(Toolkit.options.isPrefix+"disabled"),h;if(this.multiple)j.click(function(){b.prop("selected")?(b.prop("selected",!1),a(this).parent().removeClass(g)):(b.prop("selected",!0),a(this).parent().addClass(g)),e.change()});else{var k=this;j.click(function(){f.find("li").removeClass(g),a(this).parent().addClass(g),k.hide(),k.currentIndex=c,e.val(b.val()),e.change()})}return h},hide:function(){this.element.removeClass(Toolkit.options.isPrefix+"active"),this.dropdown&&this.dropdown.conceal(),this.fireEvent("hide")},show:function(){this.element.addClass(Toolkit.options.isPrefix+"active"),this.dropdown&&this.dropdown.reveal(),this.fireEvent("show")},__change:function(b){var c=a(b.target),d=c.find("option"),e=[],f=[],g=this;if(d.each(function(){this.selected&&(e.push(this),f.push(g.readValue(this,g.options.getOptionLabel)||this.textContent))}),this.multiple){var h=this.readValue(c,this.options.getDefaultLabel),i=this.options.multipleFormat,j=f.length;if(!f.length&&h)f=h;else if("count"===i)f=this.options.countMessage.replace("{count}",j).replace("{total}",d.length);else if("list"===i){var k=this.options.listLimit;f=f.splice(0,k).join(", "),j>k&&(f+=" ...")}}else f=f.join(", ");c.parent().find("."+Toolkit.options.vendor+"select-label").text(f),this.fireEvent("change",[c.val(),e])},__cycle:function(b){if(this.dropdown.is(":shown")&&a.inArray(b.keyCode,[38,40,13,27])>=0){b.preventDefault();var c=this.input.find("option"),d=this.dropdown.find("a"),e=Toolkit.options.isPrefix+"active",f=this.currentIndex;switch(b.keyCode){case 13:case 27:return void this.hide();case 38:f=this.__loop(f,-1,c);break;case 40:f=this.__loop(f,1,c)}c.prop("selected",!1),c[f].selected=!0,d.parent().removeClass(e),d.item(f).parent().addClass(e),this.currentIndex=f,this.input.change()}},__loop:function(a,b,c){var d=this.options.hideFirst;for(a+=b;"undefined"==typeof c[a]||c[a].disabled||0===a&&d;)a+=b,a>=c.length?a=0:0>a&&(a=c.length-1);return a},__toggle:function(){this.enabled&&!this.input.prop("disabled")&&(this.dropdown.is(":shown")?this.hide():this.show())}},{copyClasses:!0,"native":!1,multipleFormat:"count",countMessage:"{count} of {total} selected",listLimit:3,hideFirst:!1,hideSelected:!1,arrowContent:'',getDefaultLabel:"title",getOptionLabel:"title",getDescription:"data-description"}),Toolkit.createComponent("input",function(a){return new Toolkit.Input(this,a)}),Toolkit.createComponent("inputRadio",function(a){return new Toolkit.Input.Radio(this,a)}),Toolkit.createComponent("inputCheckbox",function(a){return new Toolkit.Input.Checkbox(this,a)}),Toolkit.createComponent("inputSelect",function(a){return new Toolkit.Input.Select(this,a)})}(jQuery);!function(a){"use strict";Toolkit.LazyLoad=Toolkit.Component.extend(function(b,c){this.component="LazyLoad",this.version="1.0.0",this.options=c=this.setOptions(c),this.elements=this.setElement(b,this.options),this.element=null,this.isLoaded=!1,this.loaded=0,a(c.context||window).on({scroll:a.throttle(this.load.bind(this),c.throttle),resize:a.throttle(this.load.bind(this),c.throttle)}),a(function(){this.load(),c.forceLoad&&setTimeout(this.loadAll.bind(this),c.delay)}.bind(this)),this.fireEvent("init")},{inViewport:function(b){var c=a(window),d=this.options.threshold,e=c.scrollTop(),f=c.scrollLeft(),g=a(b).offset();return g.top>=e-d&&g.top<=e+c.height()+d&&g.left>=f-d&&g.left<=f+c.width()+d},load:function(){return this.isLoaded?!1:this.loaded===this.elements.length?(this.shutdown(),!1):(this.elements.each(function(a,b){b&&this.inViewport(b)&&this.show(b,a)}.bind(this)),this.fireEvent("load"),!0)},loadAll:function(){return this.isLoaded?!1:(this.elements.each(function(a,b){this.show(b,a)}.bind(this)),this.fireEvent("loadAll"),this.shutdown(),!0)},show:function(b,c){b=a(b),b.removeClass(this.elements.selector.substr(1)),b.find("img").each(function(){var b=a(this),c=b.data("lazyload");c&&b.attr("src",c)}),this.element=b,this.elements.splice(c,1,null),this.loaded++,this.fireEvent("show",b)},shutdown:function(){this.isLoaded=!0,a(this.options.context||window).off({scroll:this.load.bind(this),resize:this.load.bind(this)}),this.fireEvent("shutdown")}},{forceLoad:!1,delay:1e4,threshold:150,throttle:50,context:null}),Toolkit.createComponent("lazyLoad",function(a){return new Toolkit.LazyLoad(this,a)},!0)}(jQuery);!function(a){"use strict";Toolkit.Mask=Toolkit.Component.extend(function(b,c){this.component="Mask",this.version="1.1.0",this.options=this.setOptions(c),this.element=b=this.setElement(b),this.mask=null,this.message=null;var d=Toolkit.options.vendor,e=d+"mask";b.is("body")||(b.addClass(d+"maskable"),"static"===b.css("position")&&b.css("position","relative"));var f=b.find("> ."+e);f.length||(f=a("").addClass(e)),this.setMask(f),this.fireEvent("init")},{hide:function(){this.mask.conceal(),this.element.removeClass(Toolkit.options.isPrefix+"masked"),this.fireEvent("hide")},setMask:function(b){var c=this.options;b.addClass("hide").appendTo(this.element),this.element.is("body")&&b.css("position","fixed"),c.revealOnClick&&b.click(this.hide.bind(this)),this.mask=b,this.message=b.find("> "+c.messageElement),this.message.length||(this.message=a("").addClass(c.messageElement.substr(1)).appendTo(b),c.messageContent&&this.message.html(c.messageContent))},show:function(a){this.enabled&&(this.node=a,this.mask.reveal(),this.element.addClass(Toolkit.options.isPrefix+"masked"),this.fireEvent("show"))},toggle:function(){this.mask.is(":shown")?this.hide():this.show()}},{revealOnClick:!1,messageContent:"",messageElement:".mask-message"}),Toolkit.createComponent("mask",function(a){return new Toolkit.Mask(this,a)})}(jQuery);!function(a){"use strict";Toolkit.Matrix=Toolkit.Component.extend(function(b,c){this.component="Matrix",this.version="1.0.1",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.items=b.find(c.selector),this.matrix=[],this.wrapperWidth=0,this.colWidth=0,this.colCount=0,this.images=[],this.imagesLoaded=0,b.addClass(Toolkit.options.vendor+"matrix"),a(window).on("resize",a.debounce(this.__resize.bind(this))),this.fireEvent("init"),c.defer?this._deferRender():this.render()},{append:function(b){a(b).addClass(Toolkit.options.vendor+"matrix-item").appendTo(this.element).css("opacity",0),this.refresh()},disable:function(){this.enabled=!1,this.element.removeAttr("style"),this.items.removeClass(Toolkit.options.vendor+"matrix-item").removeAttr("style")},enable:function(){this.enabled=!0,this.items.addClass(Toolkit.options.vendor+"matrix-item")},prepend:function(b){a(b).addClass(Toolkit.options.vendor+"matrix-item").prependTo(this.element).css("opacity",0),this.refresh()},refresh:function(){this.items=this.element.find(this.options.selector),this.render()},remove:function(b){b=a(b).get(0),this.items.each(function(){var c=a(this);return c.get(0)===b?(c.remove(),!1):!0}),this.refresh()},render:function(){return this._calculateColumns(),this.items.length1&&(f>b?(a=f-b,c-=a/e):b>f&&(a=b-f,c+=a/e)),this.wrapperWidth=b,this.colWidth=c,this.colCount=e},_deferRender:function(){this.imagesLoaded=0,this.images=this.element.find("img"),this.images.length?this.images.each(function(a,b){var c=b.src;b.onload=this.__load.bind(this),b.onerror=this.__load.bind(this),b.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",b.src=c}.bind(this)):this.render()},_organizeItems:function(){var a,b,c,d=0,e=this.items.length;this.matrix=[];for(var f=0;e>f;f++){if(a=this.items.item(f),c=a.outerWidth(),b=Math.max(Math.round(c/this.colWidth),1),this.matrix.push({item:a,span:b}),b>1)for(var g=1;b>g;g++)d++,this.matrix&&this.matrix.push({item:a,span:!1});d++,d>=this.colCount&&(d=0)}},_positionItems:function(){var a,b,c,d,e,f,g=this.options.gutter,h=this.matrix,i=this.options.rtl?"right":"left",j=0,k=[],l=0,m={margin:0,position:"absolute"};for(d=0;dd;d++){if(a=h[d],b=a.span,(l>=this.colCount||b+l>this.colCount)&&(l=0,j=0),b){for(c=0,f=0;b>f;f++)k[l+f]>c&&(c=k[l+f]);for(m.top=c,m[i]=j,m.width=(this.colWidth+g)*b-g,a.item.css(m).reveal(),f=0;b>f;f++)k[l+f]=a.item.outerHeight()+g+c}j+=this.colWidth+g,l++}this.element.css("height",Math.max.apply(Math,k))},__load:function(a){(!a||"load"===a.type&&a.target.complete||"error"===a.type&&!a.target.complete)&&this.imagesLoaded++,this.imagesLoaded===this.images.length&&this.render()},__resize:function(){this.element.hasClass(Toolkit.options.vendor+"matrix")&&this.refresh()}},{className:"",selector:".matrix-item",width:200,gutter:20,rtl:!1,defer:!0,template:!1}),Toolkit.createComponent("matrix",function(a){return new Toolkit.Matrix(this,a)})}(jQuery);!function(a){"use strict";Toolkit.Modal=Toolkit.Component.extend(function(b,c){var d;if(this.component="Modal",this.version="1.1.0",this.options=c=this.setOptions(c),this.element=d=this.createElement(),this.nodes=b=a(b),this.node=null,this.elementBody=d.find(c.contentElement),this.blackout=null,this.drag=null,this.cache={},c.fullScreen&&(d.addClass(Toolkit.options.isPrefix+"fullscreen"),c.draggable=!1),c.draggable&&a.ui&&a.ui.draggable){var e=Toolkit.options.isPrefix;this.drag=d.draggable({appendTo:"body",containment:"window",cursor:"grabbing",start:function(a,b){b.helper.addClass(e+"dragging")},stop:function(a,b){b.helper.removeClass(e+"dragging")}}),d.addClass(e+"draggable")}c.blackout&&(this.blackout=Toolkit.Blackout.factory(),c.stopScroll&&this.blackout.element.on("hide.toolkit.blackout",function(b,c){c&&a("body").css("overflow","")})),d.clickout(this.__hide.bind(this)),b.clickout(this.__hide.bind(this)),a(c.context||document).on("click",b.selector,this.__show.bind(this)),a(window).on("keydown",function(a){27===a.keyCode&&d.is(":shown")&&this.hide()}.bind(this)),d.on("click",c.closeEvent,this.__hide.bind(this)).on("click",c.submitEvent,this.__submit.bind(this)),this.fireEvent("init")},{hide:function(){this.element.conceal(),this.blackout&&this.blackout.hide(),this.fireEvent("hide")},position:function(b){b!==!0&&(this.elementBody.html(b),this.fireEvent("load",b),this.blackout&&this.blackout.hideLoader(),this.element.reveal(),this.options.fullScreen&&this.element.find(this.options.contentElement).css("min-height",a(window).height()),this.fireEvent("show"))},show:function(b,c){b=a(b);var d=this.options,e=d.ajax;c?e=!1:b&&(c=this.readValue(b,d.getContent)||b.attr("href"),c&&c.match(/^#[a-z0-9_\-\.:]+$/i)&&(c=a(c).html(),e=!1)),c&&(this.node=b,this.blackout&&this.blackout.show(),d.stopScroll&&a("body").css("overflow","hidden"),e?this.cache[c]?this.position(this.cache[c]):this.requestData(c):this.position(c))},__hide:function(a){a.preventDefault(),this.hide()},__show:function(a){a.preventDefault(),this.enabled&&this.show(a.currentTarget)},__submit:function(b){b.preventDefault();var c=a(b.target),d=this.elementBody.find("form:first");if(d){this.fireEvent("submit",[c,d]);var e={url:d.attr("action"),type:(d.attr("method")||"post").toUpperCase()};window.FormData?(e.processData=!1,e.contentType=!1,e.data=new FormData(d[0])):e.data=d.serialize(),this.requestData(e)}}},{animation:"fade",className:"",context:null,ajax:!0,draggable:!1,blackout:!0,fullScreen:!1,stopScroll:!0,getContent:"data-modal",contentElement:".modal-inner",closeElement:".modal-close",closeEvent:".modal-event-close",submitEvent:".modal-event-submit",template:'
'}),Toolkit.createComponent("modal",function(a){return new Toolkit.Modal(this,a)},!0)}(jQuery);!function(a){"use strict";Toolkit.Pin=Toolkit.Component.extend(function(b,c){this.component="Pin",this.version="1.0.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.viewport=null,this.elementHeight=null,this.elementTop=parseInt(b.css("top"),10),this.parentHeight=null,this.parentTop=null,b.addClass(Toolkit.options.vendor+"pin"),a(window).on("scroll",a.throttle(this.__scroll.bind(this),c.throttle)).on("resize",a.throttle(this.__resize.bind(this),c.throttle)),a(document).ready(this.__resize.bind(this)),this.fireEvent("init")},{calculate:function(){var b=a(window),c=this.element.parents(this.options.context);this.viewport={width:b.width(),height:b.height()},this.elementHeight=this.element.outerHeight(),this.parentHeight=c.outerHeight(),this.parentTop=c.offset().top},__resize:function(){this.calculate(),this.parentHeight>=this.elementHeight?this.enable():this.disable(),this.fireEvent("resize")},__scroll:function(){if(this.options.calculate&&this.calculate(),this.enabled&&!this.element.is(":hidden")){var b=this.options,c=b.fixed,d=this.elementHeight,e=this.elementTop,f=this.parentHeight,g=this.parentTop,h=a(window).scrollTop(),i={},j=b.xOffset,k=0;if(g>h)return void this.element.removeAttr("style").addClass(Toolkit.options.isPrefix+"pinned");var l=h+d,m=f+g;c?l>=m?(k="auto",i.position="absolute",i.bottom=0):(i.position="fixed",i.bottom="auto"):(i.position="absolute",k+=l>=m?f-d:h-g+b.yOffset,e&&e>k&&(k=e)),i[b.location]=j,i.top=k,this.element.css(i).addClass(Toolkit.options.isPrefix+"pinned"),this.fireEvent("scroll")}}},{animation:"",location:"right",xOffset:0,yOffset:0,throttle:50,fixed:!1,calculate:!1,context:null}),Toolkit.createComponent("pin",function(a){return new Toolkit.Pin(this,a)})}(jQuery);!function(a){"use strict";Toolkit.Tooltip=Toolkit.Component.extend(function(b,c){var d;this.component="Tooltip",this.version="1.1.0",this.options=c=this.setOptions(c),this.nodes=b=a(b),this.node=null,this.element=d=this.createElement(),this.elementHead=d.find(c.titleElement),this.elementBody=d.find(c.contentElement),this.cache={},d.addClass(a.hyphenate(c.position)),a(c.context||document).on("click"===c.mode?"click":"mouseover",b.selector,this.__show.bind(this)),"click"===c.mode&&d.clickout(this.hide.bind(this)),this.fireEvent("init")},{hide:function(){this.element.conceal(),this.fireEvent("hide")},position:function(a,b){var c=this.options;if(a!==!0)if(b=b||this.readValue(this.node,c.getTitle),b&&c.showTitle?this.elementHead.html(b).show():this.elementHead.hide(),a?this.elementBody.html(a).show():this.elementBody.hide(),this.fireEvent("load",a),c.follow){var d=this.__follow.bind(this);this.node.off("mousemove",d).on("mousemove",d),this.fireEvent("show")}else this.element.positionTo(c.position,this.node,{left:c.xOffset,top:c.yOffset}),setTimeout(function(){this.element.reveal(),this.fireEvent("show")}.bind(this),c.delay||0)},show:function(b,c,d){var e=this.options;b&&(b=a(b),"hover"===e.mode&&b.off("mouseleave",this.hide.bind(this)).on("mouseleave",this.hide.bind(this)),c=c||this.readValue(b,e.getContent)),c&&(this.node=b,e.ajax?this.cache[c]?this.position(this.cache[c],d):(e.showLoading&&this.position(e.loadingMessage),this.requestData(c)):(c.match(/^#[a-z0-9_\-\.:]+$/i)&&(c=a(c).html()),this.position(c,d)))},__follow:function(a){a.preventDefault();var b=this.options;this.element.positionTo(b.position,a,{left:b.xOffset,top:b.yOffset},!0).reveal()},__show:function(b){var c=a(b.target),d=this.node&&c[0]===this.node[0];if(this.element.is(":shown")){if(Toolkit.isTouch?d&&"a"===this.node.prop("tagName").toLowerCase()||b.preventDefault():b.preventDefault(),"click"===this.options.mode&&this.hide(),d)return}else b.preventDefault();this.show(c)}},{mode:"hover",ajax:!1,follow:!1,position:"topCenter",loadingMessage:Toolkit.messages.loading,showLoading:!0,showTitle:!0,getTitle:"title",getContent:"data-tooltip",mouseThrottle:50,xOffset:0,yOffset:0,delay:0,titleElement:".tooltip-head",contentElement:".tooltip-body",template:'
'}),Toolkit.createComponent("tooltip",function(a){return new Toolkit.Tooltip(this,a)},!0)}(jQuery);!function(a){"use strict";Toolkit.Popover=Toolkit.Tooltip.extend(function(b,c){var d;this.component="Popover",this.version="1.1.0",this.options=c=this.setOptions(c),this.nodes=b=a(b),this.node=null,this.element=d=this.createElement(),this.elementHead=d.find(c.titleElement),this.elementBody=d.find(c.contentElement),this.cache={},d.addClass(a.hyphenate(c.position)).clickout(this.hide.bind(this)),a(c.context||document).on("click",b.selector,this.__show.bind(this)),this.fireEvent("init")},{},{ajax:!1,position:"topCenter",loadingMessage:Toolkit.messages.loading,showLoading:!0,showTitle:!0,getTitle:"title",getContent:"data-popover",xOffset:0,yOffset:0,delay:0,titleElement:".popover-head",contentElement:".popover-body",template:'
"),h=0,i=this;return this.dropdown=f,c.children().each(function(){var c=a(this);"optgroup"===c.prop("tagName").toLowerCase()?(0===h&&(d.hideFirst=!1),g.append(a("").addClass(b+"drop-heading").text(c.attr("label"))),c.children().each(function(){var b=a(this);c.prop("disabled")&&b.prop("disabled",!0),b.prop("selected")&&(i.currentIndex=h),g.append(e(b,h)),h++})):(c.prop("selected")&&(i.currentIndex=h),g.append(e(c,h)),h++)}),d.hideSelected&&!d.multiple&&f.addClass("hide-selected"),d.hideFirst&&f.addClass("hide-first"),this.multiple&&f.addClass(Toolkit.options.isPrefix+"multiple"),this.wrapper.append(f.append(g)),f},buildOption:function(b,c){var d,e=this.input,f=this.dropdown,g=Toolkit.options.isPrefix+"active",h=a(""),i=b.text();b.prop("selected")&&h.addClass(g),(d=this.readValue(b,this.options.getDescription))&&(i+=' '+d+"");var j=a("").html(i).attr("href","javascript:;");if(this.options.copyClasses&&this.copyClasses(b,h),h.append(j),b.prop("disabled"))return h.addClass(Toolkit.options.isPrefix+"disabled"),h;if(this.multiple)j.click(function(){b.prop("selected")?(b.prop("selected",!1),a(this).parent().removeClass(g)):(b.prop("selected",!0),a(this).parent().addClass(g)),e.change()});else{var k=this;j.click(function(){f.find("li").removeClass(g),a(this).parent().addClass(g),k.hide(),k.currentIndex=c,e.val(b.val()),e.change()})}return h},hide:function(){this.element.removeClass(Toolkit.options.isPrefix+"active"),this.dropdown&&this.dropdown.conceal(),this.fireEvent("hide")},show:function(){this.element.addClass(Toolkit.options.isPrefix+"active"),this.dropdown&&this.dropdown.reveal(),this.fireEvent("show")},__change:function(b){var c=a(b.target),d=c.find("option"),e=[],f=[],g=this;if(d.each(function(){this.selected&&(e.push(this),f.push(g.readValue(this,g.options.getOptionLabel)||this.textContent))}),this.multiple){var h=this.readValue(c,this.options.getDefaultLabel),i=this.options.multipleFormat,j=f.length;if(!f.length&&h)f=h;else if("count"===i)f=this.options.countMessage.replace("{count}",j).replace("{total}",d.length);else if("list"===i){var k=this.options.listLimit;f=f.splice(0,k).join(", "),j>k&&(f+=" ...")}}else f=f.join(", ");c.parent().find("."+Toolkit.options.vendor+"select-label").text(f),this.fireEvent("change",[c.val(),e])},__cycle:function(b){if(this.dropdown.is(":shown")&&a.inArray(b.keyCode,[38,40,13,27])>=0){b.preventDefault();var c=this.input.find("option"),d=this.dropdown.find("a"),e=Toolkit.options.isPrefix+"active",f=this.currentIndex;switch(b.keyCode){case 13:case 27:return void this.hide();case 38:f=this.__loop(f,-1,c);break;case 40:f=this.__loop(f,1,c)}c.prop("selected",!1),c[f].selected=!0,d.parent().removeClass(e),d.item(f).parent().addClass(e),this.currentIndex=f,this.input.change()}},__loop:function(a,b,c){var d=this.options.hideFirst;for(a+=b;"undefined"==typeof c[a]||c[a].disabled||0===a&&d;)a+=b,a>=c.length?a=0:0>a&&(a=c.length-1);return a},__toggle:function(){this.enabled&&!this.input.prop("disabled")&&(this.dropdown.is(":shown")?this.hide():this.show())}},{copyClasses:!0,"native":!1,multipleFormat:"count",countMessage:"{count} of {total} selected",listLimit:3,hideFirst:!1,hideSelected:!1,arrowContent:'',getDefaultLabel:"title",getOptionLabel:"title",getDescription:"data-description"}),Toolkit.createComponent("input",function(a){return new Toolkit.Input(this,a)}),Toolkit.createComponent("inputRadio",function(a){return new Toolkit.Input.Radio(this,a)}),Toolkit.createComponent("inputCheckbox",function(a){return new Toolkit.Input.Checkbox(this,a)}),Toolkit.createComponent("inputSelect",function(a){return new Toolkit.Input.Select(this,a)})}(jQuery);!function(a){"use strict";Toolkit.LazyLoad=Toolkit.Component.extend(function(b,c){this.component="LazyLoad",this.version="1.0.0",this.options=c=this.setOptions(c),this.elements=this.setElement(b,this.options),this.element=null,this.isLoaded=!1,this.loaded=0,a(c.context||window).on({scroll:a.throttle(this.load.bind(this),c.throttle),resize:a.throttle(this.load.bind(this),c.throttle)}),a(function(){this.load(),c.forceLoad&&setTimeout(this.loadAll.bind(this),c.delay)}.bind(this)),this.fireEvent("init")},{inViewport:function(b){var c=a(window),d=this.options.threshold,e=c.scrollTop(),f=c.scrollLeft(),g=a(b).offset();return g.top>=e-d&&g.top<=e+c.height()+d&&g.left>=f-d&&g.left<=f+c.width()+d},load:function(){return this.isLoaded?!1:this.loaded===this.elements.length?(this.shutdown(),!1):(this.elements.each(function(a,b){b&&this.inViewport(b)&&this.show(b,a)}.bind(this)),this.fireEvent("load"),!0)},loadAll:function(){return this.isLoaded?!1:(this.elements.each(function(a,b){this.show(b,a)}.bind(this)),this.fireEvent("loadAll"),this.shutdown(),!0)},show:function(b,c){b=a(b),b.removeClass(this.elements.selector.substr(1)),b.find("img").each(function(){var b=a(this),c=b.data("lazyload");c&&b.attr("src",c)}),this.element=b,this.elements.splice(c,1,null),this.loaded++,this.fireEvent("show",b)},shutdown:function(){this.isLoaded=!0,a(this.options.context||window).off({scroll:this.load.bind(this),resize:this.load.bind(this)}),this.fireEvent("shutdown")}},{forceLoad:!1,delay:1e4,threshold:150,throttle:50,context:null}),Toolkit.createComponent("lazyLoad",function(a){return new Toolkit.LazyLoad(this,a)},!0)}(jQuery);!function(a){"use strict";Toolkit.Mask=Toolkit.Component.extend(function(b,c){this.component="Mask",this.version="1.1.0",this.options=this.setOptions(c),this.element=b=this.setElement(b),this.mask=null,this.message=null;var d=Toolkit.options.vendor,e=d+"mask";b.is("body")||(b.addClass(d+"maskable"),"static"===b.css("position")&&b.css("position","relative"));var f=b.find("> ."+e);f.length||(f=a("").addClass(e)),this.setMask(f),this.fireEvent("init")},{hide:function(){this.mask.conceal(),this.element.removeClass(Toolkit.options.isPrefix+"masked"),this.fireEvent("hide")},setMask:function(b){var c=this.options;b.addClass("hide").appendTo(this.element),this.element.is("body")&&b.css("position","fixed"),c.revealOnClick&&b.click(this.hide.bind(this)),this.mask=b,this.message=b.find("> "+c.messageElement),this.message.length||(this.message=a("").addClass(c.messageElement.substr(1)).appendTo(b),c.messageContent&&this.message.html(c.messageContent))},show:function(a){this.enabled&&(this.node=a,this.mask.reveal(),this.element.addClass(Toolkit.options.isPrefix+"masked"),this.fireEvent("show"))},toggle:function(){this.mask.is(":shown")?this.hide():this.show()}},{revealOnClick:!1,messageContent:"",messageElement:".mask-message"}),Toolkit.createComponent("mask",function(a){return new Toolkit.Mask(this,a)})}(jQuery);!function(a){"use strict";Toolkit.Matrix=Toolkit.Component.extend(function(b,c){this.component="Matrix",this.version="1.0.1",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.items=b.find(c.selector),this.matrix=[],this.wrapperWidth=0,this.colWidth=0,this.colCount=0,this.images=[],this.imagesLoaded=0,b.addClass(Toolkit.options.vendor+"matrix"),a(window).on("resize",a.debounce(this.__resize.bind(this))),this.fireEvent("init"),c.defer?this._deferRender():this.render()},{append:function(b){a(b).addClass(Toolkit.options.vendor+"matrix-item").appendTo(this.element).css("opacity",0),this.refresh()},disable:function(){this.enabled=!1,this.element.removeAttr("style"),this.items.removeClass(Toolkit.options.vendor+"matrix-item").removeAttr("style")},enable:function(){this.enabled=!0,this.items.addClass(Toolkit.options.vendor+"matrix-item")},prepend:function(b){a(b).addClass(Toolkit.options.vendor+"matrix-item").prependTo(this.element).css("opacity",0),this.refresh()},refresh:function(){this.items=this.element.find(this.options.selector),this.render()},remove:function(b){b=a(b).get(0),this.items.each(function(){var c=a(this);return c.get(0)===b?(c.remove(),!1):!0}),this.refresh()},render:function(){return this._calculateColumns(),this.items.length1&&(f>b?(a=f-b,c-=a/e):b>f&&(a=b-f,c+=a/e)),this.wrapperWidth=b,this.colWidth=c,this.colCount=e},_deferRender:function(){this.imagesLoaded=0,this.images=this.element.find("img"),this.images.length?this.images.each(function(a,b){var c=b.src;b.onload=this.__load.bind(this),b.onerror=this.__load.bind(this),b.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",b.src=c}.bind(this)):this.render()},_organizeItems:function(){var a,b,c,d=0,e=this.items.length;this.matrix=[];for(var f=0;e>f;f++){if(a=this.items.item(f),c=a.outerWidth(),b=Math.max(Math.round(c/this.colWidth),1),this.matrix.push({item:a,span:b}),b>1)for(var g=1;b>g;g++)d++,this.matrix&&this.matrix.push({item:a,span:!1});d++,d>=this.colCount&&(d=0)}},_positionItems:function(){var a,b,c,d,e,f,g=this.options.gutter,h=this.matrix,i=this.options.rtl?"right":"left",j=0,k=[],l=0,m={margin:0,position:"absolute"};for(d=0;dd;d++){if(a=h[d],b=a.span,(l>=this.colCount||b+l>this.colCount)&&(l=0,j=0),b){for(c=0,f=0;b>f;f++)k[l+f]>c&&(c=k[l+f]);for(m.top=c,m[i]=j,m.width=(this.colWidth+g)*b-g,a.item.css(m).reveal(),f=0;b>f;f++)k[l+f]=a.item.outerHeight()+g+c}j+=this.colWidth+g,l++}this.element.css("height",Math.max.apply(Math,k))},__load:function(a){(!a||"load"===a.type&&a.target.complete||"error"===a.type&&!a.target.complete)&&this.imagesLoaded++,this.imagesLoaded===this.images.length&&this.render()},__resize:function(){this.element.hasClass(Toolkit.options.vendor+"matrix")&&this.refresh()}},{className:"",selector:".matrix-item",width:200,gutter:20,rtl:!1,defer:!0,template:!1}),Toolkit.createComponent("matrix",function(a){return new Toolkit.Matrix(this,a)})}(jQuery);!function(a){"use strict";Toolkit.Modal=Toolkit.Component.extend(function(b,c){var d;if(this.component="Modal",this.version="1.1.0",this.options=c=this.setOptions(c),this.element=d=this.createElement(),this.nodes=b=a(b),this.node=null,this.elementBody=d.find(c.contentElement),this.blackout=null,this.drag=null,this.cache={},c.fullScreen&&(d.addClass(Toolkit.options.isPrefix+"fullscreen"),c.draggable=!1),c.draggable&&a.ui&&a.ui.draggable){var e=Toolkit.options.isPrefix;this.drag=d.draggable({appendTo:"body",containment:"window",cursor:"grabbing",start:function(a,b){b.helper.addClass(e+"dragging")},stop:function(a,b){b.helper.removeClass(e+"dragging")}}),d.addClass(e+"draggable")}c.blackout&&(this.blackout=Toolkit.Blackout.factory(),c.stopScroll&&this.blackout.element.on("hide.toolkit.blackout",function(b,c){c&&a("body").css("overflow","")})),d.clickout(this.__hide.bind(this)),b.clickout(this.__hide.bind(this)),a(c.context||document).on("click",b.selector,this.__show.bind(this)),a(window).on("keydown",function(a){27===a.keyCode&&d.is(":shown")&&this.hide()}.bind(this)),d.on("click",c.closeEvent,this.__hide.bind(this)).on("click",c.submitEvent,this.__submit.bind(this)),this.fireEvent("init")},{hide:function(){this.element.conceal(),this.blackout&&this.blackout.hide(),this.fireEvent("hide")},position:function(b){b!==!0&&(this.elementBody.html(b),this.fireEvent("load",b),this.blackout&&this.blackout.hideLoader(),this.element.reveal(),this.options.fullScreen&&this.element.find(this.options.contentElement).css("min-height",a(window).height()),this.fireEvent("show"))},show:function(b,c){b=a(b);var d=this.options,e=d.ajax;c?e=!1:b&&(c=this.readValue(b,d.getContent)||b.attr("href"),c&&c.match(/^#[a-z0-9_\-\.:]+$/i)&&(c=a(c).html(),e=!1)),c&&(this.node=b,this.blackout&&this.blackout.show(),d.stopScroll&&a("body").css("overflow","hidden"),e?this.cache[c]?this.position(this.cache[c]):this.requestData(c):this.position(c))},__hide:function(a){a.preventDefault(),this.hide()},__show:function(a){a.preventDefault(),this.enabled&&this.show(a.currentTarget)},__submit:function(b){b.preventDefault();var c=a(b.target),d=this.elementBody.find("form:first");if(d){this.fireEvent("submit",[c,d]);var e={url:d.attr("action"),type:(d.attr("method")||"post").toUpperCase()};window.FormData?(e.processData=!1,e.contentType=!1,e.data=new FormData(d[0])):e.data=d.serialize(),this.requestData(e)}}},{animation:"fade",className:"",context:null,ajax:!0,draggable:!1,blackout:!0,fullScreen:!1,stopScroll:!0,getContent:"data-modal",contentElement:".modal-inner",closeElement:".modal-close",closeEvent:".modal-event-close",submitEvent:".modal-event-submit",template:'
'}),Toolkit.createComponent("modal",function(a){return new Toolkit.Modal(this,a)},!0)}(jQuery);!function(a){"use strict";Toolkit.Pin=Toolkit.Component.extend(function(b,c){this.component="Pin",this.version="1.0.0",this.options=c=this.setOptions(c),this.element=b=this.setElement(b),this.viewport=null,this.elementHeight=null,this.elementTop=parseInt(b.css("top"),10),this.parentHeight=null,this.parentTop=null,b.addClass(Toolkit.options.vendor+"pin"),a(window).on("scroll",a.throttle(this.__scroll.bind(this),c.throttle)).on("resize",a.throttle(this.__resize.bind(this),c.throttle)),a(document).ready(this.__resize.bind(this)),this.fireEvent("init")},{calculate:function(){var b=a(window),c=this.element.parents(this.options.context);this.viewport={width:b.width(),height:b.height()},this.elementHeight=this.element.outerHeight(),this.parentHeight=c.outerHeight(),this.parentTop=c.offset().top},__resize:function(){this.calculate(),this.parentHeight>=this.elementHeight?this.enable():this.disable(),this.fireEvent("resize")},__scroll:function(){if(this.options.calculate&&this.calculate(),this.enabled&&!this.element.is(":hidden")){var b=this.options,c=b.fixed,d=this.elementHeight,e=this.elementTop,f=this.parentHeight,g=this.parentTop,h=a(window).scrollTop(),i={},j=b.xOffset,k=0;if(g>h)return void this.element.removeAttr("style").addClass(Toolkit.options.isPrefix+"pinned");var l=h+d,m=f+g;c?l>=m?(k="auto",i.position="absolute",i.bottom=0):(i.position="fixed",i.bottom="auto"):(i.position="absolute",k+=l>=m?f-d:h-g+b.yOffset,e&&e>k&&(k=e)),i[b.location]=j,i.top=k,this.element.css(i).addClass(Toolkit.options.isPrefix+"pinned"),this.fireEvent("scroll")}}},{animation:"",location:"right",xOffset:0,yOffset:0,throttle:50,fixed:!1,calculate:!1,context:null}),Toolkit.createComponent("pin",function(a){return new Toolkit.Pin(this,a)})}(jQuery);!function(a){"use strict";Toolkit.Tooltip=Toolkit.Component.extend(function(b,c){var d;this.component="Tooltip",this.version="1.1.0",this.options=c=this.setOptions(c),this.nodes=b=a(b),this.node=null,this.element=d=this.createElement(),this.elementHead=d.find(c.titleElement),this.elementBody=d.find(c.contentElement),this.cache={},d.addClass(a.hyphenate(c.position)),a(c.context||document).on("click"===c.mode?"click":"mouseover",b.selector,this.__show.bind(this)),"click"===c.mode&&d.clickout(this.hide.bind(this)),this.fireEvent("init")},{hide:function(){this.element.conceal(),this.fireEvent("hide")},position:function(a,b){var c=this.options;if(a!==!0)if(b=b||this.readValue(this.node,c.getTitle),b&&c.showTitle?this.elementHead.html(b).show():this.elementHead.hide(),a?this.elementBody.html(a).show():this.elementBody.hide(),this.fireEvent("load",a),c.follow){var d=this.__follow.bind(this);this.node.off("mousemove",d).on("mousemove",d),this.fireEvent("show")}else this.element.positionTo(c.position,this.node,{left:c.xOffset,top:c.yOffset}),setTimeout(function(){this.element.reveal(),this.fireEvent("show")}.bind(this),c.delay||0)},show:function(b,c,d){var e=this.options;b&&(b=a(b),"hover"===e.mode&&b.off("mouseleave",this.hide.bind(this)).on("mouseleave",this.hide.bind(this)),c=c||this.readValue(b,e.getContent)),c&&(this.node=b,e.ajax?this.cache[c]?this.position(this.cache[c],d):(e.showLoading&&this.position(e.loadingMessage),this.requestData(c)):(c.match(/^#[a-z0-9_\-\.:]+$/i)&&(c=a(c).html()),this.position(c,d)))},__follow:function(a){a.preventDefault();var b=this.options;this.element.positionTo(b.position,a,{left:b.xOffset,top:b.yOffset},!0).reveal()},__show:function(b){var c=a(b.target),d=this.node&&c[0]===this.node[0];if(this.element.is(":shown")){if(Toolkit.isTouch?d&&"a"===this.node.prop("tagName").toLowerCase()||b.preventDefault():b.preventDefault(),"click"===this.options.mode&&this.hide(),d)return}else b.preventDefault();this.show(c)}},{mode:"hover",animation:"",ajax:!1,follow:!1,position:"topCenter",loadingMessage:Toolkit.messages.loading,showLoading:!0,showTitle:!0,getTitle:"title",getContent:"data-tooltip",mouseThrottle:50,xOffset:0,yOffset:0,delay:0,titleElement:".tooltip-head",contentElement:".tooltip-body",template:'
'}),Toolkit.createComponent("tooltip",function(a){return new Toolkit.Tooltip(this,a)},!0)}(jQuery);!function(a){"use strict";Toolkit.Popover=Toolkit.Tooltip.extend(function(b,c){var d;this.component="Popover",this.version="1.1.0",this.options=c=this.setOptions(c),this.nodes=b=a(b),this.node=null,this.element=d=this.createElement(),this.elementHead=d.find(c.titleElement),this.elementBody=d.find(c.contentElement),this.cache={},d.addClass(a.hyphenate(c.position)).clickout(this.hide.bind(this)),a(c.context||document).on("click",b.selector,this.__show.bind(this)),this.fireEvent("init")},{},{ajax:!1,animation:"",position:"topCenter",loadingMessage:Toolkit.messages.loading,showLoading:!0,showTitle:!0,getTitle:"title",getContent:"data-popover",xOffset:0,yOffset:0,delay:0,titleElement:".popover-head",contentElement:".popover-body",template:'
'},initialize:function(a,b){b=b||{},b.mode="click",b.follow=!1,this.parent(a,b)}}),Toolkit.createComponent("popover",function(a){return new Toolkit.Popover(this,a)},!0)}();!function(){"use strict";Toolkit.Showcase=new Class({Extends:Toolkit.Component,Binds:["next","prev","__jump"],items:null,tabs:null,prevButton:null,nextButton:null,data:[],previousIndex:0,currentIndex:0,blackout:null,options:{delegate:".js-showcase",blackout:!0,stopScroll:!0,transition:300,gutter:50,getCategory:"data-showcase",getImage:"href",getTitle:"title",itemsElement:".showcase-items",tabsElement:".showcase-tabs",prevElement:".showcase-prev",nextElement:".showcase-next",closeEvent:".showcase-event-close",jumpEvent:".showcase-event-jump",prevEvent:".showcase-event-prev",nextEvent:".showcase-event-next",template:'
'},initialize:function(a,b){b=b||{},b.mode="click",b.follow=!1,this.parent(a,b)}}),Toolkit.createComponent("popover",function(a){return new Toolkit.Popover(this,a)},!0)}();!function(){"use strict";Toolkit.Showcase=new Class({Extends:Toolkit.Component,Binds:["next","prev","__jump"],items:null,tabs:null,prevButton:null,nextButton:null,data:[],previousIndex:0,currentIndex:0,blackout:null,options:{delegate:".js-showcase",blackout:!0,stopScroll:!0,transition:300,gutter:50,getCategory:"data-showcase",getImage:"href",getTitle:"title",itemsElement:".showcase-items",tabsElement:".showcase-tabs",prevElement:".showcase-prev",nextElement:".showcase-next",closeEvent:".showcase-event-close",jumpEvent:".showcase-event-jump",prevEvent:".showcase-event-prev",nextEvent:".showcase-event-next",template:'
',onJump:null},initialize:function(a,b){this.parent(b),this.setNodes(a),this.createElement(),Toolkit.hasTransition||(this.options.transition=1),b=this.options,this.items=this.element.getElement(b.itemsElement),this.tabs=this.element.getElement(b.tabsElement),this.prevButton=this.element.getElement(b.prevElement),this.nextButton=this.element.getElement(b.nextElement),b.gutter+=this.element.getHeight()-this.items.getHeight(),this.options.blackout&&(this.blackout=Toolkit.Blackout.factory()),this.bindEvents(),this.fireEvent("init")},bindEvents:function(){return this.parent(),window.addEvent("keydown",function(a){if(this.isVisible())switch(["up","down","left","right"].contains(a.key)&&a.preventDefault(),a.key){case"esc":this.hide();break;case"up":this.jump(0);break;case"down":this.jump(-1);break;case"left":this.prev();break;case"right":this.next()}}.bind(this)),this.element.addEvent("clickout",this.__hide).addEvent("click:relay("+this.options.closeEvent+")",this.__hide).addEvent("click:relay("+this.options.nextEvent+")",this.next).addEvent("click:relay("+this.options.prevEvent+")",this.prev).addEvent("click:relay("+this.options.jumpEvent+")",this.__jump).addEvent("swipe",function(a){"left"===a.direction?this.next():"right"===a.direction&&this.prev()}.bind(this)),this.nodes.addEvent("clickout",this.__hide),this},hide:function(){return this.blackout&&this.blackout.hide(),this.options.stopScroll&&document.body.setStyle("overflow",""),this.parent(function(){this.element.removeClass(Toolkit.options.isPrefix+"single"),this.items.removeProperty("style").getElements("li").removeClass("show")}.bind(this)),this},jump:function(a){a>=this.data.length?a=0:0>a&&(a=this.data.length-1);var b=this,c=this.options,d=this.element,e=this.items,f=e.getElements("li"),g=f[a],h=this.data,i=h[a];if(this.previousIndex=this.currentIndex,this.currentIndex=a,this.tabs){var j=this.tabs.getElements("a");j.removeClass(Toolkit.options.isPrefix+"active"),j[a].addClass(Toolkit.options.isPrefix+"active")}if(f.removeClass("show"),g.hasAttribute("data-width"))this._resize(g.get("data-width").toInt(),g.get("data-height").toInt()),setTimeout(function(){g.addClass("show"),b.position()},c.transition);else{d.addClass(Toolkit.options.isPrefix+"loading");var k=new Image;k.src=i.image,k.onload=function(){b._resize(this.width,this.height),g.set("data-width",this.width).set("data-height",this.height),i.title&&g.grab(new Element("div."+Toolkit.options.vendor+"showcase-caption").set("html",i.title)),setTimeout(function(){d.removeClass(Toolkit.options.isPrefix+"loading"),g.addClass("show").grab(k),b.position()},c.transition)}}return this.fireEvent("jump",a),this},next:function(){return this.jump(this.currentIndex+1),this},position:function(){return this.blackout&&this.blackout.hideLoader(),this.element.reveal(),this.fireEvent("show"),this},prev:function(){return this.jump(this.currentIndex-1),this},show:function(a){this.node=a,this.currentIndex=this.previousIndex=0,this.element.addClass(Toolkit.options.isPrefix+"loading");var b=this.options,c=this.readValue,d=c(a,b.getCategory),e=[],f=0;if(d)for(var g,h=0,i=0;g=this.nodes[h];h++)c(g,b.getCategory)===d&&(g===a&&(f=i),e.push({title:c(g,b.getTitle),category:d,image:c(g,b.getImage)}),i++);else e.push({title:c(a,b.getTitle),category:d,image:c(a,b.getImage)});return this.blackout&&this.blackout.show(),b.stopScroll&&document.body.setStyle("overflow","hidden"),this._buildItems(e),this.jump(f),this},_buildItems:function(a){this.data=a,this.items.empty(),this.tabs.empty();for(var b,c,d,e=0;d=a[e];e++)b=new Element("li"),b.inject(this.items),c=new Element("a").set("class",this.options.jumpEvent.substr(1)).set("href","javascript:;").set("data-index",e),b=new Element("li"),b.inject(this.tabs).grab(c);return a.length<=1&&this.element.addClass(Toolkit.options.isPrefix+"single"),this.fireEvent("load",a),this}.protect(),_resize:function(a,b){var c,d,e=window.getSize(),f=this.options.gutter;if(a+f>e.x){var g=e.x-2*f;c=a/b,d=a-g,a=g,b-=Math.round(d/c)}else if(b+f>e.y){var h=e.y-2*f;c=b/a,d=b-h,a-=Math.round(d/c),b=h}return this.items.setStyles({width:a,height:b}),this},__jump:function(a){a.preventDefault(),this.jump(a.target.get("data-index")||0)}}),Toolkit.createComponent("showcase",function(a){return new Toolkit.Showcase(this,a)},!0)}();!function(){"use strict";Toolkit.Stalker=new Class({Extends:Toolkit.Component,Binds:["__scroll"],target:null,targets:[],marker:null,markers:[],offsets:[],options:{target:"",marker:"",threshold:50,throttle:50,onlyWithin:!0,applyToParent:!0,onScroll:null,onActivate:null,onDeactivate:null},initialize:function(a,b){this.parent(b),this.setElement(a),this.element&&this.options.target&&this.options.marker&&(this.element.addClass(Toolkit.options.vendor+"stalker"),this.refresh(),this.bindEvents(),this.fireEvent("init"))},activate:function(a,b){this.marker=a,this.target=b;var c=this.targets;return this.options.applyToParent?(c.getParent().removeClass(Toolkit.options.isPrefix+"active"),b.getParent().addClass(Toolkit.options.isPrefix+"active")):(c.removeClass(Toolkit.options.isPrefix+"active"),b.addClass(Toolkit.options.isPrefix+"active")),this.fireEvent("activate",[a,b]),this},bindEvents:function(){return("auto"===this.element.getStyle("overflow")?this.element:window).addEvent("scroll:throttle("+this.options.throttle+")",this.__scroll),window.addEvent("domready",this.__scroll),this},deactivate:function(a){var b=this.targets;return this.options.applyToParent?b.getParent().removeClass(Toolkit.options.isPrefix+"active"):b.removeClass(Toolkit.options.isPrefix+"active"),this.marker=null,this.target=null,this.fireEvent("deactivate",a),this},refresh:function(){return"auto"===this.element.getStyle("overflow")&&this.element!==document.body&&(this.element.scrollTop=0),this.target=null,this.targets=$$(this.options.target),this.targets.addClass(Toolkit.options.vendor+"stalker-target"),this.marker=null,this.markers=$$(this.options.marker),this.markers.addClass(Toolkit.options.vendor+"stalker-marker"),this.offsets=this.markers.getCoordinates(this.element),this},__scroll:function(){if(this.enabled){var a=this.element.getScroll().y,b=this.markers,c=this.targets,d=this.offsets,e=this.options.onlyWithin,f=this.options.threshold;b.each(function(b,g){var h=d[g],i=h.top-f,j=h.top+h.height+f,k=[];e&&a>=i&&j>=a||!e&&a>=i?(k=c.filter(function(a){return a.get("href")==="#"+b.get("id")}),k.length&&this.activate(b,k[0])):this.marker===b&&this.deactivate(b)}.bind(this)),this.fireEvent("scroll")}}}),Toolkit.createComponent("stalker",function(a){return new Toolkit.Stalker(this,a)})}();!function(){"use strict";Toolkit.Tabs=new Class({Extends:Toolkit.Component,nav:null,sections:[],tabs:[],previousIndex:0,currentIndex:0,options:{ajax:!0,collapsible:!1,defaultIndex:0,persistState:!1,preventDefault:!0,loadFragment:!0,cookie:null,cookieDuration:30,getUrl:"href",navElement:".tabs-nav",sectionsElement:".tabs-section",template:!1},initialize:function(a,b){if(this.parent(b),this.setElement(a),this.element){this.options.cookie||(this.options.cookie=this.element.get("id")),b=this.options,this.nav=this.element.getElement(b.navElement),this.tabs=this.nav.getElements("ul > li > a"),this.tabs.each(function(a,b){a.set("data-index",b).removeClass(Toolkit.options.isPrefix+"active")}),this.sections=this.element.getElements(b.sectionsElement),this.sections.conceal(),this.bindEvents(),this.fireEvent("init");var c=b.defaultIndex;if(b.persistState)c=Number.from(Cookie.read("toolkit.tabs."+b.cookie)||b.defaultIndex);else if(b.loadFragment&&location.hash){var d=this.tabs.filter(function(a){return a.get("href")===location.hash});d[0]&&(c=d[0].get("data-index"))}this.tabs[c]||(c=0),this.jump(c)}},bindEvents:function(){return this.tabs.addEvent("click"===this.options.mode?"click":"mouseover",this.__show),"hover"===this.options.mode&&this.options.preventDefault&&this.tabs.addEvent("click",function(a){a.preventDefault()}),this},hide:function(){return this.sections.conceal(),this.fireEvent("hide",this.node),this},jump:function(a){return this.tabs[a]&&this.show(this.tabs[a]),this},show:function(a){var b=a.get("data-index"),c=this.sections[b],d=this.readValue(a,this.options.getUrl);return this.options.ajax&&d&&"#"!==d.substr(0,1)&&!this.cache[d]&&this.requestData(d,function(){c.set("html",this._loadingTemplate()).addClass(Toolkit.options.isPrefix+"loading")}.bind(this),function(a){this.cache[d]=!0,c.set("html",a).removeClass(Toolkit.options.isPrefix+"loading"),this.fireEvent("load",a)}.bind(this),function(){c.set("html",this._errorTemplate()).removeClass(Toolkit.options.isPrefix+"loading").addClass(Toolkit.options.hasPrefix+"failed")}.bind(this)),this.nav.getElements("ul > li").removeClass(Toolkit.options.isPrefix+"active"),b===this.currentIndex&&this.options.collapsible?c.isVisible()?c.conceal():(a.getParent().addClass(Toolkit.options.isPrefix+"active"),c.reveal()):(this.hide(),a.getParent().addClass(Toolkit.options.isPrefix+"active"),c.reveal()),this.options.persistState&&Cookie.write("toolkit.tabs."+this.options.cookie,b,{duration:this.options.cookieDuration}),this.previousIndex=this.currentIndex,this.currentIndex=b,this.fireEvent("show",a),this.node=a,this},__show:function(a){(this.options.preventDefault||this.options.ajax&&"#"!==a.target.get("href").substr(0,1))&&a.preventDefault(),this.enabled&&this.show(a.target)}}),Toolkit.createComponent("tabs",function(a){return new Toolkit.Tabs(this,a)})}();!function(){"use strict";Toolkit.TypeAhead=new Class({Extends:Toolkit.Component,Implements:[Cache],Binds:["process","rewind","__cycle","__lookup"],input:null,shadow:null,index:-1,items:[],term:"",timer:null,options:{source:[],minLength:1,itemLimit:15,throttle:250,prefetch:!1,shadow:!1,storage:"session",query:{},contentElement:"",template:'',sorter:null,matcher:null,builder:null,onSelect:null,onCycle:null,onReset:null},initialize:function(a,b){if(this.parent(b),this.createElement(),this.input=a,"input"!==this.input.get("tag"))throw new Error("TypeAhead must be initialized on an input field");if(this.input.set("autocomplete","off"),b=this.options,this.setStorage(b.storage),Object.each({sorter:"sort",matcher:"match",builder:"build"},function(a,c){if(b[c]!==!1){var d;d=null===b[c]||"function"!==typeOf(b[c])?this[a]:b[c],this.options[c]=d.bind(this)}}.bind(this)),b.prefetch&&"string"===typeOf(b.source)){var c=b.source;new Request.JSON({url:c,data:b.query,onSuccess:function(a){this.setCache(c,a)}.bind(this)}).get()}b.shadow&&(this.node=new Element("div."+Toolkit.options.vendor+"type-ahead-shadow").wraps(this.input),this.shadow=this.input.clone().addClass(Toolkit.options.isPrefix+"shadow").removeProperty("id").set("readonly",!0).inject(this.node,"bottom"),this.input.addClass("not-shadow")),this.bindEvents(),this.fireEvent("init")},bindEvents:function(){return window.addEvent("keydown",function(a){"esc"===a.key&&this.isVisible()&&this.hide()}.bind(this)),this.element.addEvent("clickout",this.hide.bind(this)),this.input.addEvents({keyup:this.__lookup,keydown:this.__cycle}),this},build:function(a){var b=new Element("a",{href:"javascript:;"});return b.grab(new Element("span."+Toolkit.options.vendor+"type-ahead-title",{html:this.highlight(a.title)})),a.description&&b.grab(new Element("span."+Toolkit.options.vendor+"type-ahead-desc",{html:a.description})),b},hide:function(){return this.shadow&&this.shadow.set("value",""),this.parent()},highlight:function(a){for(var b,c=this.term.replace(/[\-\[\]\{\}()*+?.,\\^$|#]/g,"\\$&").split(" "),d=function(a){return''+a+""},e=0;b=c[e];e++)a=a.replace(new RegExp(b,"ig"),d);return a},lookup:function(a){return this.term=a,this.timer=window.setTimeout(function(){var b=this.options,c=typeOf(b.source);if(this.cache[a.toLowerCase()])this.process(this.cache[a.toLowerCase()]);else if("string"===c){var d=b.source,e=this.getCache(d);if(e)this.process(e);else{var f=b.query;f.term=a,new Request.JSON({url:d,data:f,onSuccess:this.process}).get()}}else if("array"===c)this.process(b.source);else{if("function"!==c)throw new Error("Invalid TypeAhead source type");var g=b.source.attempt([],this);g&&this.process(g)}}.bind(this),this.options.throttle),this},match:function(a,b){return a.toLowerCase().indexOf(b.toLowerCase())>=0},position:function(){if(!this.items.length)return this.hide();var a=this.input.getCoordinates();return this.element.setPosition({x:a.left,y:a.top+a.height}),this.element.reveal(),this},process:function(a){if(!this.term.length||!a.length)return this.hide(),this;var b,c=this.options,d={_empty_:[]},e=new Element("ul");this.items=[],this.index=-1,"function"===typeOf(c.sorter)&&(a=c.sorter(a)),"function"===typeOf(c.matcher)&&(a=a.filter(function(a){return c.matcher(a.title,this.term)}.bind(this)));for(var f=0;b=a[f];f++)b.category?(d[b.category]||(d[b.category]=[]),d[b.category].push(b)):d._empty_.push(b);var g=[],h=0;return Object.each(d,function(a,d){var f=new Elements;"_empty_"!==d&&(g.push(null),f.push(new Element("li").addClass(Toolkit.options.vendor+"type-ahead-heading").grab(new Element("span",{text:d}))));for(var i,j=0;(b=a[j])&&!(h>=c.itemLimit);j++)i=c.builder(b),i.addEvents({mouseover:this.rewind,click:this.__select.pass(g.length,this)}),f.push(new Element("li").grab(i)),g.push(b),h++;f.inject(e)}.bind(this)),this.element.empty(),c.contentElement?this.element.getElement(c.contentElement).grab(e):this.element.grab(e),this.items=g,this.cache[this.term.toLowerCase()]=g.filter(function(a){return null!==a}),this.fireEvent("load"),this._shadow(),this.position(),this.fireEvent("show"),this},rewind:function(){return this.index=-1,this.element.getElements("li").removeClass(Toolkit.options.isPrefix+"active"),this},select:function(a,b){this.index=a;var c=this.element.getElements("li");if(c.removeClass(Toolkit.options.isPrefix+"active"),a>=0){if(this.items[a]){var d=this.items[a];c[a].addClass(Toolkit.options.isPrefix+"active"),this.input.set("value",d.title),this.fireEvent(b||"select",[d,a])}}else this.input.set("value",this.term),this.fireEvent("reset");return this},sort:function(a){return a.sort(function(a,b){return a.title.localeCompare(b.title)})},_shadow:function(){if(!this.shadow)return this;var a=this.input.get("value"),b=a.toLowerCase(),c="";if(this.cache[b]&&this.cache[b][0]){var d=this.cache[b][0].title;0===d.toLowerCase().indexOf(b)&&(c=a+d.substr(a.length,d.length-a.length))}return this.shadow.set("value",c),this}.protect(),__cycle:function(a){var b=this.items,c=b.length.limit(0,this.options.itemLimit);if(c&&this.isVisible()){switch(a.key){case"up":this.index-=b[this.index-1]?1:2,this.index<0&&(this.index=c);break;case"down":this.index+=b[this.index+1]?1:2,this.index>=c&&(this.index=-1);break;case"tab":a.preventDefault();for(var d=0;!this.items[d];)d++;this.index=d,this.hide();break;case"enter":this.hide();break;case"esc":this.index=-1,this.hide();break;default:return}this.shadow&&this.shadow.set("value",""),this.select(this.index,"cycle")}},__lookup:function(a){if(!["up","down","esc","tab","enter"].contains(a.key)){window.clearTimeout(this.timer);var b=this.input.get("value").trim();b.length.input,.is-disabled>li>.input,.input.is-disabled,.input.is-disabled:hover,.input[disabled],.input[disabled]:hover{cursor:not-allowed;color:#c2c2c2;border-color:#f5f5f5}.input-static,.input-radio,.input-checkbox{background:transparent;border-color:transparent;padding-left:0 !important;padding-right:0 !important}.input-radio,.input-checkbox{padding:0}.input-radio input[type="checkbox"],.input-radio input[type="radio"],.input-checkbox input[type="checkbox"],.input-checkbox input[type="radio"]{vertical-align:middle;position:relative;top:-1px;margin-right:5px}select.input{-webkit-appearance:none;padding:0.7rem}select.input[multiple]{max-height:500px}textarea.input{line-height:135%;min-height:150px}.field{margin-bottom:1.25rem}.field.is-required .field-label{font-weight:bold}.field:not(.is-disabled).is-error .input{border-color:#f06060}.field:not(.is-disabled).is-error .input:focus{box-shadow:0 0 5px #fdc5c1}.field:not(.is-disabled).is-error .input-radio,.field:not(.is-disabled).is-error .input-checkbox{color:#b10e0e}.field:not(.is-disabled).is-success .input{border-color:#97cb6f}.field:not(.is-disabled).is-success .input:focus{box-shadow:0 0 5px #e7f2dd}.field:not(.is-disabled).is-success .input-radio,.field:not(.is-disabled).is-success .input-checkbox{color:#226b36}.field-label{display:block;vertical-align:middle;margin-bottom:.5em}.field-help{margin-top:.5em;font-size:0.7rem}.form-actions{text-align:center}.form--horizontal .field{width:100%;max-width:100%}.form--horizontal .field:after{content:"";display:table;clear:both}.form--horizontal .field-label{text-align:right;border:1px solid transparent;padding-top:0.75rem}.form--horizontal .field-col{padding-left:1.25rem}.form--inline .field,.form--inline .field-label,.form--inline .form-actions{display:inline-block;vertical-align:middle;line-height:normal;margin-right:1.25rem;margin-bottom:0.625rem}.form--inline .field-label{margin:0 0.625rem 0 0}.form--inline .field-help{display:none}.form--inline .input-radio,.form--inline .input-checkbox{padding:0.75rem 0}
code,var,kbd,pre{font:normal .8rem/115% Consolas, Monaco, 'Andale Mono', monospace}code,var,kbd{display:inline-block;background:#f5f5f5;border-radius:0.2rem;padding:.2em .4em}pre{padding:0.75rem;margin:1.25rem 0;background:#f8f8f8;border:1px solid #e5e5e5;text-align:left;direction:ltr;white-space:pre;word-spacing:normal;font-size:.9rem;overflow-x:auto}pre code{padding:0;margin:0;color:inherit;font:inherit;white-space:pre-wrap;background:transparent;border:none;display:block}pre.is-scrollable{max-height:350px;overflow-y:auto}kbd{background:#fff;position:relative;border:1px solid #e5e5e5;border-top-color:#e5e5e5;box-shadow:0 2px 0 1px #c2c2c2;top:-3px}
-.accordion{list-style:none;margin:0;padding:0}.accordion-head{padding:0.75rem;background:#f5f5f5;cursor:pointer}.is-active .accordion-head{background:#e5e5e5}.accordion-body{padding:0.75rem}.accordion-body p:first-child,.accordion-body ul:first-child,.accordion-body ol:first-child,.accordion-body hr:first-child,.accordion-body blockquote:first-child{margin-top:0}.accordion-body p:last-child,.accordion-body ul:last-child,.accordion-body ol:last-child,.accordion-body hr:last-child,.accordion-body blockquote:last-child{margin-bottom:0}.accordion-handle{overflow:hidden;position:relative;-webkit-transition:all 0.3s ease-in-out;-moz-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}.accordion-handle.hide{max-height:0}
+.accordion{list-style:none;margin:0;padding:0}.accordion-header{padding:0.75rem;background:#f5f5f5;cursor:pointer}.is-active .accordion-header{background:#e5e5e5}.accordion-body{padding:0.75rem}.accordion-body p:first-child,.accordion-body ul:first-child,.accordion-body ol:first-child,.accordion-body hr:first-child,.accordion-body blockquote:first-child{margin-top:0}.accordion-body p:last-child,.accordion-body ul:last-child,.accordion-body ol:last-child,.accordion-body hr:last-child,.accordion-body blockquote:last-child{margin-bottom:0}.accordion-section{overflow:hidden;position:relative;-webkit-transition:all 0.3s ease-in-out;-moz-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}.accordion-section.hide{max-height:0}
.loader{display:inline-block;position:relative;vertical-align:middle;margin:0 auto;text-align:center}.loader>span{display:inline-block;margin:0 2px}.loader-message{margin-top:1rem}@-moz-keyframes bar-wave{0%,50%,100%{-moz-transform:scaleY(1);transform:scaleY(1)}25%{-moz-transform:scaleY(2);transform:scaleY(2)}}@-webkit-keyframes bar-wave{0%,50%,100%{-webkit-transform:scaleY(1);transform:scaleY(1)}25%{-webkit-transform:scaleY(2);transform:scaleY(2)}}@keyframes bar-wave{0%,50%,100%{transform:scaleY(1)}25%{transform:scaleY(2)}}.loader.bar-wave>span{background:#000;height:2.5rem;width:0.65rem;-webkit-animation:bar-wave 1.2s infinite ease-in-out;-moz-animation:bar-wave 1.2s infinite ease-in-out;animation:bar-wave 1.2s infinite ease-in-out}.loader.bar-wave>span:nth-child(2){-webkit-animation-delay:-1.1s;-moz-animation-delay:-1.1s;animation-delay:-1.1s}.loader.bar-wave>span:nth-child(3){-webkit-animation-delay:-1s;-moz-animation-delay:-1s;animation-delay:-1s}.loader.bar-wave>span:nth-child(4){-webkit-animation-delay:-0.9s;-moz-animation-delay:-0.9s;animation-delay:-0.9s}.loader.bar-wave>span:nth-child(5){-webkit-animation-delay:-0.8s;-moz-animation-delay:-0.8s;animation-delay:-0.8s}.loader.bar-wave>span:nth-child(6){-webkit-animation-delay:-0.7s;-moz-animation-delay:-0.7s;animation-delay:-0.7s}.loader.bar-wave>span:nth-child(7){-webkit-animation-delay:-0.6s;-moz-animation-delay:-0.6s;animation-delay:-0.6s}.loader.bar-wave>span:nth-child(8){-webkit-animation-delay:-0.5s;-moz-animation-delay:-0.5s;animation-delay:-0.5s}.loader.bar-wave>span:nth-child(9){-webkit-animation-delay:-0.4s;-moz-animation-delay:-0.4s;animation-delay:-0.4s}.loader.bar-wave>span:nth-child(10){-webkit-animation-delay:-0.3s;-moz-animation-delay:-0.3s;animation-delay:-0.3s}.loader.bar-wave .loader-message{margin-top:1.5rem}@-moz-keyframes bubble-wave{0%,80%,100%{-moz-transform:scale(0);transform:scale(0)}30%{-moz-transform:scale(1);transform:scale(1)}}@-webkit-keyframes bubble-wave{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}30%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes bubble-wave{0%,80%,100%{transform:scale(0)}30%{transform:scale(1)}}.loader.bubble-wave>span{background:#000;width:1.5rem;height:1.5rem;border-radius:100%;-webkit-animation:bubble-wave 1.5s infinite ease-in-out;-moz-animation:bubble-wave 1.5s infinite ease-in-out;animation:bubble-wave 1.5s infinite ease-in-out;-webkit-animation-fill-mode:both;-moz-animation-fill-mode:both;animation-fill-mode:both}.loader.bubble-wave>span:nth-child(2){-webkit-animation-delay:-1.4s;-moz-animation-delay:-1.4s;animation-delay:-1.4s}.loader.bubble-wave>span:nth-child(3){-webkit-animation-delay:-1.3s;-moz-animation-delay:-1.3s;animation-delay:-1.3s}.loader.bubble-wave>span:nth-child(4){-webkit-animation-delay:-1.2s;-moz-animation-delay:-1.2s;animation-delay:-1.2s}.loader.bubble-wave>span:nth-child(5){-webkit-animation-delay:-1.1s;-moz-animation-delay:-1.1s;animation-delay:-1.1s}.loader.bubble-wave>span:nth-child(6){-webkit-animation-delay:-1s;-moz-animation-delay:-1s;animation-delay:-1s}.loader.bubble-wave>span:nth-child(7){-webkit-animation-delay:-0.9s;-moz-animation-delay:-0.9s;animation-delay:-0.9s}.loader.bubble-wave>span:nth-child(8){-webkit-animation-delay:-0.8s;-moz-animation-delay:-0.8s;animation-delay:-0.8s}.loader.bubble-wave>span:nth-child(9){-webkit-animation-delay:-0.7s;-moz-animation-delay:-0.7s;animation-delay:-0.7s}.loader.bubble-wave>span:nth-child(10){-webkit-animation-delay:-0.6s;-moz-animation-delay:-0.6s;animation-delay:-0.6s}@-moz-keyframes bubble-spinner{0%,80%,100%{-moz-transform:scale(0);transform:scale(0)}30%{-moz-transform:scale(1.3);transform:scale(1.3)}}@-webkit-keyframes bubble-spinner{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}30%{-webkit-transform:scale(1.3);transform:scale(1.3)}}@keyframes bubble-spinner{0%,80%,100%{transform:scale(0)}30%{transform:scale(1.3)}}.loader.bubble-spinner .spinner{width:100px;height:100px;position:relative;margin:0 auto}.loader.bubble-spinner .spinner>span{background:#000;width:14px;height:14px;position:absolute;border-radius:100%;-webkit-animation:bubble-spinner 1.6s infinite ease-in-out;-moz-animation:bubble-spinner 1.6s infinite ease-in-out;animation:bubble-spinner 1.6s infinite ease-in-out;-webkit-animation-fill-mode:both;-moz-animation-fill-mode:both;animation-fill-mode:both}.loader.bubble-spinner .spinner>span:nth-child(1){top:0;left:43px;-webkit-animation-delay:-1.4s;-moz-animation-delay:-1.4s;animation-delay:-1.4s}.loader.bubble-spinner .spinner>span:nth-child(2){top:12px;right:12px;-webkit-animation-delay:-1.2s;-moz-animation-delay:-1.2s;animation-delay:-1.2s}.loader.bubble-spinner .spinner>span:nth-child(3){top:43px;right:0;-webkit-animation-delay:-1s;-moz-animation-delay:-1s;animation-delay:-1s}.loader.bubble-spinner .spinner>span:nth-child(4){bottom:12px;right:12px;-webkit-animation-delay:-0.8s;-moz-animation-delay:-0.8s;animation-delay:-0.8s}.loader.bubble-spinner .spinner>span:nth-child(5){bottom:0;left:43px;-webkit-animation-delay:-0.6s;-moz-animation-delay:-0.6s;animation-delay:-0.6s}.loader.bubble-spinner .spinner>span:nth-child(6){bottom:12px;left:12px;-webkit-animation-delay:-0.4s;-moz-animation-delay:-0.4s;animation-delay:-0.4s}.loader.bubble-spinner .spinner>span:nth-child(7){top:43px;left:0;-webkit-animation-delay:-0.2s;-moz-animation-delay:-0.2s;animation-delay:-0.2s}.loader.bubble-spinner .spinner>span:nth-child(8){top:12px;left:12px;-webkit-animation-delay:0s;-moz-animation-delay:0s;animation-delay:0s}
.blackout{position:fixed;top:0;left:0;height:100%;width:100%;z-index:600;opacity:0;visibility:hidden;background:rgba(0,0,0,0.85);-webkit-transition:all 0.3s;-moz-transition:all 0.3s;transition:all 0.3s}.blackout .loader{opacity:1;color:#fff;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);transform:translate(-50%, -50%);-webkit-transition:all 0.3s;-moz-transition:all 0.3s;transition:all 0.3s}.blackout .loader>span,.blackout .loader .spinner>span{background:#fff !important}
.breadcrumb{text-align:left;margin:1.25rem 0;background:#f5f5f5}.breadcrumb ul,.breadcrumb ol{list-style:none;margin:0;padding:0}.breadcrumb ul:after,.breadcrumb ol:after{content:"";display:table;clear:both}.breadcrumb li{position:relative;float:left}.breadcrumb li:last-child .caret{display:none}.breadcrumb a{font-size:inherit;padding:0.75rem;display:block;line-height:100%;padding-right:0}.breadcrumb a .caret{margin-left:0.75rem;color:#c2c2c2;position:relative;left:-1px}.breadcrumb.small a{font-size:0.7rem;padding:0.5rem;padding-right:0}.breadcrumb.small a .caret{margin-left:0.5rem}.breadcrumb.large a{font-size:1.3rem;padding:1rem;padding-right:0}.breadcrumb.large a .caret{margin-left:1rem}
diff --git a/docs/en/support/changelog.md b/docs/en/support/changelog.md
index 9143a0c0..0569410c 100644
--- a/docs/en/support/changelog.md
+++ b/docs/en/support/changelog.md
@@ -1,5 +1,81 @@
# Changelog #
+### 1.1.0 ###
+* Added a `Loader` component - displays loading animations using purely CSS
+* Added a `Mask` component - masks an element with a transparent overlay
+* Added a `clickout` event type that triggers when a click happens outside of an element
+* Added `reset-list()` and `position-center()` mixins
+* Added no conflict resolution through a component creation method
+* Added a `--demo` parameter to Grunt that builds files for demo purposes
+* Improved the Grunt build process
+* Refactored `debounce()` and `throttle()` methods
+* Replaced Toolkit `ie8` and `ie9` flags with `hasTransition` feature flag
+* Renamed `Titon.js` to `Toolkit.js`
+* jQuery
+ * Prototype inheritance has been rewritten and improved
+ * New properties `component` and `version` have been added to all components
+ * Namespaced element events are now triggered in the format of `.toolkit.`
+ * Added `$.cookie()` and `$.removeCookie()` methods
+ * Added `swipe`, `swipeleft`, `swiperight`, `swipeup`, and `swipedown` event types for touch devices
+* Component
+ * Added `process()` to handle non-HTML AJAX responses
+ * Added `onProcess` option event
+ * Updated `requestData()` to call `position()` for HTML responses and `process()` for non-HTML
+ * Updated `requestData()` to accept an object of options as the 1st argument
+ * Updated `fireEvent()` to trigger namespaced element events (jQuery only)
+* Accordion
+ * Renamed `.accordion-head` to `.accordion-header`
+ * Renamed `.accordion-handle` to `.accordion-section`
+ * Renamed `contentElement` option to `sectionElement`
+* Blackout
+ * Rewritten to be a singleton to differ from the new `Mask` component
+ * Added `Loader` support for in-between states
+ * Added `showLoader()` and `hideLoader()` methods that toggle the loader
+ * Added `Toolkit.Blackout.factory()` to return the single instance
+ * Added a `count` property that records how many times the blackout has been opened to allow for multiple components to display
+ * Added a `loader` option that determines which loader class to render
+ * Added a `loaderMessage` option that displays a loading message while the blackout is loading
+ * Added a `waveCount` option that determines how many bars to display in wave loaders
+* Dropdown
+ * Renamed component to `Drop`
+ * Renamed modifiers to `drop--down`, `drop--up`, `drop--left`, and `drop--right`
+ * Replaced alignment classes with a single `reverse-align` class
+* Grid
+ * Added an `.end` class that can be used on the last `.col` for justification
+ * Updated `$grid-columns-medium` from 8 to 9
+* Input
+ * Has been split up into 3 sub-components: `Radio`, `Checkbox`, and `Select`
+ * Added new jQuery methods `radio()`, `checkbox()`, and `select()` (primary `input()` method still exists and triggers all 3)
+ * Added custom drop down support that replaces the native drop downs (requires the `Drop` component)
+ * Added multiple select support (only possible when native is disabled)
+ * Added a `copyClasses` option that will copy classes from the form element to the custom one
+ * Added a `native` option that opens native drop downs instead of custom drop downs
+ * Added a `hideFirst` option that hides the first select option
+ * Added a `hideSelected` option that hides the currently selected option
+ * Added a `multipleFormat` option that describes the label format for multi-selects
+ * Added a `countMessage` option that defines the message to use when format is count
+ * Added a `listLimit` option that limits the number of items in the multiple message
+ * Added a `arrowContent` option that renders the contents of a select arrow
+ * Added a `getDefaultLabel` option that displays the default label for multi-selects
+ * Added a `getOptionLabel` option that displays custom titles for options
+ * Added a `getDescription` option that allows for option descriptions
+* Modal
+ * Multiple modals can now be opened at the same time (requires separate modal instances)
+ * Added file uploading support for form submissions (requires the browser `FormData` API)
+ * Added a `stopScroll` option that freezes the scrollbar while the modal is open
+ * Refactored to handle the `Blackout` changes
+ * Removed the `showLoading` option in favor of the `Blackout` loader
+* Showcase
+ * Added a `stopScroll` option that freezes the scrollbar while the showcase is open
+ * Refactored to handle the `Blackout` changes
+ * Updated gutter detection to include the showcase padding
+* Popover & Tooltip
+ * Fixed a bug where the title was not being displaying during an AJAX load
+ * Added a `loadingMessage` option to use during AJAX loading
+ * Updated default `position` to `topCenter`
+* TypeAhead
+ * Added `cycle` event
+
### 1.0.5 ###
* Added `composer.json` allowing the project to be installed via Composer
* Fixed a prototype inheritance bug that caused Popovers to trigger Tooltips that capture all click events
diff --git a/package.json b/package.json
index 27a114c2..49a8a860 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
- "version": "1.1.0-rc.2",
+ "version": "1.1.0",
"name": "titon-toolkit",
- "description": "A collection of extensible front-end UI components for the responsive web.",
+ "description": "A collection of extensible front-end UI components for the responsive, mobile, and web.",
"keywords": [
"titon",
"toolkit",
@@ -21,7 +21,7 @@
"fluid",
"mobile"
],
- "copyright": "Copyright 2010-2013, The Titon Project",
+ "copyright": "Copyright 2010-2014, The Titon Project",
"homepage": "http://titon.io",
"licenses": [
{
diff --git a/readme.md b/readme.md
index 70e2ef0a..d2bff813 100644
--- a/readme.md
+++ b/readme.md
@@ -6,7 +6,7 @@
\/_/ \/_____/\/_____/\/_____/\/_/\/_/ \/_/ \/_/
```
-# Toolkit v1.1.0-rc.2 #
+# Toolkit v1.1.0 #
Titon Toolkit is a collection of very powerful user interface components and utility classes
for the responsive, mobile, and modern web. Each component represents encapsulated HTML, CSS,
and JavaScript functionality for role specific page elements.
diff --git a/toolkit.gemspec b/toolkit.gemspec
index 112b0bb1..9967288f 100644
--- a/toolkit.gemspec
+++ b/toolkit.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |gem|
gem.name = "titon-toolkit"
- gem.version = "1.1.0.rc.2"
+ gem.version = "1.1.0"
# Info
gem.authors = ["Titon", "Miles Johnson"]
diff --git a/version.md b/version.md
index 0337ba58..1cc5f657 100644
--- a/version.md
+++ b/version.md
@@ -1 +1 @@
-1.1.0-rc.2
\ No newline at end of file
+1.1.0
\ No newline at end of file