{"version":3,"file":"other.min.js","sources":["../../../scripts/bootstrap.js","../../../scripts/modernizr-2.7.1.js","../../../scripts/jquery-2.2.4.min.js","../../../scripts/validation/jquery.validate.min.js","../../../scripts/jquery.scrollTo.min.js","../../../scripts/fancybox/jquery.fancybox.js","../../../scripts/swiper/swiper-bundle.js"],"sourcesContent":["/**\r\n* bootstrap.js v3.0.0 by @fat and @mdo\r\n* Copyright 2013 Twitter Inc.\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*/\r\nif (!jQuery) { throw new Error(\"Bootstrap requires jQuery\") }\r\n\r\n/* ========================================================================\r\n * Bootstrap: transition.js v3.0.0\r\n * http://twbs.github.com/bootstrap/javascript.html#transitions\r\n * ========================================================================\r\n * Copyright 2013 Twitter, Inc.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ======================================================================== */\r\n\r\n\r\n+function ($) { \"use strict\";\r\n\r\n // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)\r\n // ============================================================\r\n\r\n function transitionEnd() {\r\n var el = document.createElement('bootstrap')\r\n\r\n var transEndEventNames = {\r\n 'WebkitTransition' : 'webkitTransitionEnd'\r\n , 'MozTransition' : 'transitionend'\r\n , 'OTransition' : 'oTransitionEnd otransitionend'\r\n , 'transition' : 'transitionend'\r\n }\r\n\r\n for (var name in transEndEventNames) {\r\n if (el.style[name] !== undefined) {\r\n return { end: transEndEventNames[name] }\r\n }\r\n }\r\n }\r\n\r\n // http://blog.alexmaccaw.com/css-transitions\r\n $.fn.emulateTransitionEnd = function (duration) {\r\n var called = false, $el = this\r\n $(this).one($.support.transition.end, function () { called = true })\r\n var callback = function () { if (!called) $($el).trigger($.support.transition.end) }\r\n setTimeout(callback, duration)\r\n return this\r\n }\r\n\r\n $(function () {\r\n $.support.transition = transitionEnd()\r\n })\r\n\r\n}(window.jQuery);\r\n\r\n/* ========================================================================\r\n * Bootstrap: alert.js v3.0.0\r\n * http://twbs.github.com/bootstrap/javascript.html#alerts\r\n * ========================================================================\r\n * Copyright 2013 Twitter, Inc.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ======================================================================== */\r\n\r\n\r\n+function ($) { \"use strict\";\r\n\r\n // ALERT CLASS DEFINITION\r\n // ======================\r\n\r\n var dismiss = '[data-dismiss=\"alert\"]'\r\n var Alert = function (el) {\r\n $(el).on('click', dismiss, this.close)\r\n }\r\n\r\n Alert.prototype.close = function (e) {\r\n var $this = $(this)\r\n var selector = $this.attr('data-target')\r\n\r\n if (!selector) {\r\n selector = $this.attr('href')\r\n selector = selector && selector.replace(/.*(?=#[^\\s]*$)/, '') // strip for ie7\r\n }\r\n\r\n var $parent = $(selector)\r\n\r\n if (e) e.preventDefault()\r\n\r\n if (!$parent.length) {\r\n $parent = $this.hasClass('alert') ? $this : $this.parent()\r\n }\r\n\r\n $parent.trigger(e = $.Event('close.bs.alert'))\r\n\r\n if (e.isDefaultPrevented()) return\r\n\r\n $parent.removeClass('in')\r\n\r\n function removeElement() {\r\n $parent.trigger('closed.bs.alert').remove()\r\n }\r\n\r\n $.support.transition && $parent.hasClass('fade') ?\r\n $parent\r\n .one($.support.transition.end, removeElement)\r\n .emulateTransitionEnd(150) :\r\n removeElement()\r\n }\r\n\r\n\r\n // ALERT PLUGIN DEFINITION\r\n // =======================\r\n\r\n var old = $.fn.alert\r\n\r\n $.fn.alert = function (option) {\r\n return this.each(function () {\r\n var $this = $(this)\r\n var data = $this.data('bs.alert')\r\n\r\n if (!data) $this.data('bs.alert', (data = new Alert(this)))\r\n if (typeof option == 'string') data[option].call($this)\r\n })\r\n }\r\n\r\n $.fn.alert.Constructor = Alert\r\n\r\n\r\n // ALERT NO CONFLICT\r\n // =================\r\n\r\n $.fn.alert.noConflict = function () {\r\n $.fn.alert = old\r\n return this\r\n }\r\n\r\n\r\n // ALERT DATA-API\r\n // ==============\r\n\r\n $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)\r\n\r\n}(window.jQuery);\r\n\r\n/* ========================================================================\r\n * Bootstrap: button.js v3.0.0\r\n * http://twbs.github.com/bootstrap/javascript.html#buttons\r\n * ========================================================================\r\n * Copyright 2013 Twitter, Inc.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ======================================================================== */\r\n\r\n\r\n+function ($) { \"use strict\";\r\n\r\n // BUTTON PUBLIC CLASS DEFINITION\r\n // ==============================\r\n\r\n var Button = function (element, options) {\r\n this.$element = $(element)\r\n this.options = $.extend({}, Button.DEFAULTS, options)\r\n }\r\n\r\n Button.DEFAULTS = {\r\n loadingText: 'loading...'\r\n }\r\n\r\n Button.prototype.setState = function (state) {\r\n var d = 'disabled'\r\n var $el = this.$element\r\n var val = $el.is('input') ? 'val' : 'html'\r\n var data = $el.data()\r\n\r\n state = state + 'Text'\r\n\r\n if (!data.resetText) $el.data('resetText', $el[val]())\r\n\r\n $el[val](data[state] || this.options[state])\r\n\r\n // push to event loop to allow forms to submit\r\n setTimeout(function () {\r\n state == 'loadingText' ?\r\n $el.addClass(d).attr(d, d) :\r\n $el.removeClass(d).removeAttr(d);\r\n }, 0)\r\n }\r\n\r\n Button.prototype.toggle = function () {\r\n var $parent = this.$element.closest('[data-toggle=\"buttons\"]')\r\n\r\n if ($parent.length) {\r\n var $input = this.$element.find('input')\r\n .prop('checked', !this.$element.hasClass('active'))\r\n .trigger('change')\r\n if ($input.prop('type') === 'radio') $parent.find('.active').removeClass('active')\r\n }\r\n\r\n this.$element.toggleClass('active')\r\n }\r\n\r\n\r\n // BUTTON PLUGIN DEFINITION\r\n // ========================\r\n\r\n var old = $.fn.button\r\n\r\n $.fn.button = function (option) {\r\n return this.each(function () {\r\n var $this = $(this)\r\n var data = $this.data('bs.button')\r\n var options = typeof option == 'object' && option\r\n\r\n if (!data) $this.data('bs.button', (data = new Button(this, options)))\r\n\r\n if (option == 'toggle') data.toggle()\r\n else if (option) data.setState(option)\r\n })\r\n }\r\n\r\n $.fn.button.Constructor = Button\r\n\r\n\r\n // BUTTON NO CONFLICT\r\n // ==================\r\n\r\n $.fn.button.noConflict = function () {\r\n $.fn.button = old\r\n return this\r\n }\r\n\r\n\r\n // BUTTON DATA-API\r\n // ===============\r\n\r\n $(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) {\r\n var $btn = $(e.target)\r\n if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')\r\n $btn.button('toggle')\r\n e.preventDefault()\r\n })\r\n\r\n}(window.jQuery);\r\n\r\n/* ========================================================================\r\n * Bootstrap: carousel.js v3.0.0\r\n * http://twbs.github.com/bootstrap/javascript.html#carousel\r\n * ========================================================================\r\n * Copyright 2012 Twitter, Inc.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ======================================================================== */\r\n\r\n\r\n+function ($) { \"use strict\";\r\n\r\n // CAROUSEL CLASS DEFINITION\r\n // =========================\r\n\r\n var Carousel = function (element, options) {\r\n this.$element = $(element)\r\n this.$indicators = this.$element.find('.carousel-indicators')\r\n this.options = options\r\n this.paused =\r\n this.sliding =\r\n this.interval =\r\n this.$active =\r\n this.$items = null\r\n\r\n this.options.pause == 'hover' && this.$element\r\n .on('mouseenter', $.proxy(this.pause, this))\r\n .on('mouseleave', $.proxy(this.cycle, this))\r\n }\r\n\r\n Carousel.DEFAULTS = {\r\n interval: 5000\r\n , pause: 'hover'\r\n , wrap: true\r\n }\r\n\r\n Carousel.prototype.cycle = function (e) {\r\n e || (this.paused = false)\r\n\r\n this.interval && clearInterval(this.interval)\r\n\r\n this.options.interval\r\n && !this.paused\r\n && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))\r\n\r\n return this\r\n }\r\n\r\n Carousel.prototype.getActiveIndex = function () {\r\n this.$active = this.$element.find('.item.active')\r\n this.$items = this.$active.parent().children()\r\n\r\n return this.$items.index(this.$active)\r\n }\r\n\r\n Carousel.prototype.to = function (pos) {\r\n var that = this\r\n var activeIndex = this.getActiveIndex()\r\n\r\n if (pos > (this.$items.length - 1) || pos < 0) return\r\n\r\n if (this.sliding) return this.$element.one('slid', function () { that.to(pos) })\r\n if (activeIndex == pos) return this.pause().cycle()\r\n\r\n return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))\r\n }\r\n\r\n Carousel.prototype.pause = function (e) {\r\n e || (this.paused = true)\r\n\r\n if (this.$element.find('.next, .prev').length && $.support.transition.end) {\r\n this.$element.trigger($.support.transition.end)\r\n this.cycle(true)\r\n }\r\n\r\n this.interval = clearInterval(this.interval)\r\n\r\n return this\r\n }\r\n\r\n Carousel.prototype.next = function () {\r\n if (this.sliding) return\r\n return this.slide('next')\r\n }\r\n\r\n Carousel.prototype.prev = function () {\r\n if (this.sliding) return\r\n return this.slide('prev')\r\n }\r\n\r\n Carousel.prototype.slide = function (type, next) {\r\n var $active = this.$element.find('.item.active')\r\n var $next = next || $active[type]()\r\n var isCycling = this.interval\r\n var direction = type == 'next' ? 'left' : 'right'\r\n var fallback = type == 'next' ? 'first' : 'last'\r\n var that = this\r\n\r\n if (!$next.length) {\r\n if (!this.options.wrap) return\r\n $next = this.$element.find('.item')[fallback]()\r\n }\r\n\r\n this.sliding = true\r\n\r\n isCycling && this.pause()\r\n\r\n var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction })\r\n\r\n if ($next.hasClass('active')) return\r\n\r\n if (this.$indicators.length) {\r\n this.$indicators.find('.active').removeClass('active')\r\n this.$element.one('slid', function () {\r\n var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])\r\n $nextIndicator && $nextIndicator.addClass('active')\r\n })\r\n }\r\n\r\n if ($.support.transition && this.$element.hasClass('slide')) {\r\n this.$element.trigger(e)\r\n if (e.isDefaultPrevented()) return\r\n $next.addClass(type)\r\n $next[0].offsetWidth // force reflow\r\n $active.addClass(direction)\r\n $next.addClass(direction)\r\n $active\r\n .one($.support.transition.end, function () {\r\n $next.removeClass([type, direction].join(' ')).addClass('active')\r\n $active.removeClass(['active', direction].join(' '))\r\n that.sliding = false\r\n setTimeout(function () { that.$element.trigger('slid') }, 0)\r\n })\r\n .emulateTransitionEnd(600)\r\n } else {\r\n this.$element.trigger(e)\r\n if (e.isDefaultPrevented()) return\r\n $active.removeClass('active')\r\n $next.addClass('active')\r\n this.sliding = false\r\n this.$element.trigger('slid')\r\n }\r\n\r\n isCycling && this.cycle()\r\n\r\n return this\r\n }\r\n\r\n\r\n // CAROUSEL PLUGIN DEFINITION\r\n // ==========================\r\n\r\n var old = $.fn.carousel\r\n\r\n $.fn.carousel = function (option) {\r\n return this.each(function () {\r\n var $this = $(this)\r\n var data = $this.data('bs.carousel')\r\n var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)\r\n var action = typeof option == 'string' ? option : options.slide\r\n\r\n if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))\r\n if (typeof option == 'number') data.to(option)\r\n else if (action) data[action]()\r\n else if (options.interval) data.pause().cycle()\r\n })\r\n }\r\n\r\n $.fn.carousel.Constructor = Carousel\r\n\r\n\r\n // CAROUSEL NO CONFLICT\r\n // ====================\r\n\r\n $.fn.carousel.noConflict = function () {\r\n $.fn.carousel = old\r\n return this\r\n }\r\n\r\n\r\n // CAROUSEL DATA-API\r\n // =================\r\n\r\n $(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {\r\n var $this = $(this), href\r\n var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\\s]+$)/, '')) //strip for ie7\r\n var options = $.extend({}, $target.data(), $this.data())\r\n var slideIndex = $this.attr('data-slide-to')\r\n if (slideIndex) options.interval = false\r\n\r\n $target.carousel(options)\r\n\r\n if (slideIndex = $this.attr('data-slide-to')) {\r\n $target.data('bs.carousel').to(slideIndex)\r\n }\r\n\r\n e.preventDefault()\r\n })\r\n\r\n $(window).on('load', function () {\r\n $('[data-ride=\"carousel\"]').each(function () {\r\n var $carousel = $(this)\r\n $carousel.carousel($carousel.data())\r\n })\r\n })\r\n\r\n}(window.jQuery);\r\n\r\n/* ========================================================================\r\n * Bootstrap: collapse.js v3.0.0\r\n * http://twbs.github.com/bootstrap/javascript.html#collapse\r\n * ========================================================================\r\n * Copyright 2012 Twitter, Inc.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ======================================================================== */\r\n\r\n\r\n+function ($) { \"use strict\";\r\n\r\n // COLLAPSE PUBLIC CLASS DEFINITION\r\n // ================================\r\n\r\n var Collapse = function (element, options) {\r\n this.$element = $(element)\r\n this.options = $.extend({}, Collapse.DEFAULTS, options)\r\n this.transitioning = null\r\n\r\n if (this.options.parent) this.$parent = $(this.options.parent)\r\n if (this.options.toggle) this.toggle()\r\n }\r\n\r\n Collapse.DEFAULTS = {\r\n toggle: true\r\n }\r\n\r\n Collapse.prototype.dimension = function () {\r\n var hasWidth = this.$element.hasClass('width')\r\n return hasWidth ? 'width' : 'height'\r\n }\r\n\r\n Collapse.prototype.show = function () {\r\n if (this.transitioning || this.$element.hasClass('in')) return\r\n\r\n var startEvent = $.Event('show.bs.collapse')\r\n this.$element.trigger(startEvent)\r\n if (startEvent.isDefaultPrevented()) return\r\n\r\n var actives = this.$parent && this.$parent.find('> .panel > .in')\r\n\r\n if (actives && actives.length) {\r\n var hasData = actives.data('bs.collapse')\r\n if (hasData && hasData.transitioning) return\r\n actives.collapse('hide')\r\n hasData || actives.data('bs.collapse', null)\r\n }\r\n\r\n var dimension = this.dimension()\r\n\r\n this.$element\r\n .removeClass('collapse')\r\n .addClass('collapsing')\r\n [dimension](0)\r\n\r\n this.transitioning = 1\r\n\r\n var complete = function () {\r\n this.$element\r\n .removeClass('collapsing')\r\n .addClass('in')\r\n [dimension]('auto')\r\n this.transitioning = 0\r\n this.$element.trigger('shown.bs.collapse')\r\n }\r\n\r\n if (!$.support.transition) return complete.call(this)\r\n\r\n var scrollSize = $.camelCase(['scroll', dimension].join('-'))\r\n\r\n this.$element\r\n .one($.support.transition.end, $.proxy(complete, this))\r\n .emulateTransitionEnd(350)\r\n [dimension](this.$element[0][scrollSize])\r\n }\r\n\r\n Collapse.prototype.hide = function () {\r\n if (this.transitioning || !this.$element.hasClass('in')) return\r\n\r\n var startEvent = $.Event('hide.bs.collapse')\r\n this.$element.trigger(startEvent)\r\n if (startEvent.isDefaultPrevented()) return\r\n\r\n var dimension = this.dimension()\r\n\r\n this.$element\r\n [dimension](this.$element[dimension]())\r\n [0].offsetHeight\r\n\r\n this.$element\r\n .addClass('collapsing')\r\n .removeClass('collapse')\r\n .removeClass('in')\r\n\r\n this.transitioning = 1\r\n\r\n var complete = function () {\r\n this.transitioning = 0\r\n this.$element\r\n .trigger('hidden.bs.collapse')\r\n .removeClass('collapsing')\r\n .addClass('collapse')\r\n }\r\n\r\n if (!$.support.transition) return complete.call(this)\r\n\r\n this.$element\r\n [dimension](0)\r\n .one($.support.transition.end, $.proxy(complete, this))\r\n .emulateTransitionEnd(350)\r\n }\r\n\r\n Collapse.prototype.toggle = function () {\r\n this[this.$element.hasClass('in') ? 'hide' : 'show']()\r\n }\r\n\r\n\r\n // COLLAPSE PLUGIN DEFINITION\r\n // ==========================\r\n\r\n var old = $.fn.collapse\r\n\r\n $.fn.collapse = function (option) {\r\n return this.each(function () {\r\n var $this = $(this)\r\n var data = $this.data('bs.collapse')\r\n var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)\r\n\r\n if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))\r\n if (typeof option == 'string') data[option]()\r\n })\r\n }\r\n\r\n $.fn.collapse.Constructor = Collapse\r\n\r\n\r\n // COLLAPSE NO CONFLICT\r\n // ====================\r\n\r\n $.fn.collapse.noConflict = function () {\r\n $.fn.collapse = old\r\n return this\r\n }\r\n\r\n\r\n // COLLAPSE DATA-API\r\n // =================\r\n\r\n $(document).on('click.bs.collapse.data-api', '[data-toggle=collapse]', function (e) {\r\n var $this = $(this), href\r\n var target = $this.attr('data-target')\r\n || e.preventDefault()\r\n || (href = $this.attr('href')) && href.replace(/.*(?=#[^\\s]+$)/, '') //strip for ie7\r\n var $target = $(target)\r\n var data = $target.data('bs.collapse')\r\n var option = data ? 'toggle' : $this.data()\r\n var parent = $this.attr('data-parent')\r\n var $parent = parent && $(parent)\r\n\r\n if (!data || !data.transitioning) {\r\n if ($parent) $parent.find('[data-toggle=collapse][data-parent=\"' + parent + '\"]').not($this).addClass('collapsed')\r\n $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed')\r\n }\r\n\r\n $target.collapse(option)\r\n })\r\n\r\n}(window.jQuery);\r\n\r\n/* ========================================================================\r\n * Bootstrap: dropdown.js v3.0.0\r\n * http://twbs.github.com/bootstrap/javascript.html#dropdowns\r\n * ========================================================================\r\n * Copyright 2012 Twitter, Inc.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ======================================================================== */\r\n\r\n\r\n+function ($) { \"use strict\";\r\n\r\n // DROPDOWN CLASS DEFINITION\r\n // =========================\r\n\r\n var backdrop = '.dropdown-backdrop'\r\n var toggle = '[data-toggle=dropdown]'\r\n var Dropdown = function (element) {\r\n var $el = $(element).on('click.bs.dropdown', this.toggle)\r\n }\r\n\r\n Dropdown.prototype.toggle = function (e) {\r\n var $this = $(this)\r\n\r\n if ($this.is('.disabled, :disabled')) return\r\n\r\n var $parent = getParent($this)\r\n var isActive = $parent.hasClass('open')\r\n\r\n clearMenus()\r\n\r\n if (!isActive) {\r\n if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {\r\n // if mobile we we use a backdrop because click events don't delegate\r\n $('