").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var dd=a.document.documentElement;function ed(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?(typeof e.getBoundingClientRect!==L&&(d=e.getBoundingClientRect()),c=ed(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||dd;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||dd})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return W(this,function(a,d,e){var f=ed(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Mb(l.pixelPosition,function(a,c){return c?(c=Kb(a,b),Ib.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return W(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var fd=a.jQuery,gd=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=gd),b&&a.jQuery===n&&(a.jQuery=fd),n},typeof b===L&&(a.jQuery=a.$=n),n});;
/*!
 * Bootstrap v3.3.1 (http://getbootstrap.com)
 * Copyright 2011-2014 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery')}
+function($){var version=$.fn.jquery.split(' ')[0].split('.')
if((version[0]<2&&version[1]<9)||(version[0]==1&&version[1]==9&&version[2]<1)){throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher')}}(jQuery);+function($){'use strict';function transitionEnd(){var el=document.createElement('bootstrap')
var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'}
for(var name in transEndEventNames){if(el.style[name]!==undefined){return{end:transEndEventNames[name]}}}
return false}
$.fn.emulateTransitionEnd=function(duration){var called=false
var $el=this
$(this).one('bsTransitionEnd',function(){called=true})
var callback=function(){if(!called)$($el).trigger($.support.transition.end)}
setTimeout(callback,duration)
return this}
$(function(){$.support.transition=transitionEnd()
if(!$.support.transition)return
$.event.special.bsTransitionEnd={bindType:$.support.transition.end,delegateType:$.support.transition.end,handle:function(e){if($(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}})}(jQuery);+function($){'use strict';var dismiss='[data-dismiss="alert"]'
var Alert=function(el){$(el).on('click',dismiss,this.close)}
Alert.VERSION='3.3.1'
Alert.TRANSITION_DURATION=150
Alert.prototype.close=function(e){var $this=$(this)
var selector=$this.attr('data-target')
if(!selector){selector=$this.attr('href')
selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}
var $parent=$(selector)
if(e)e.preventDefault()
if(!$parent.length){$parent=$this.closest('.alert')}
$parent.trigger(e=$.Event('close.bs.alert'))
if(e.isDefaultPrevented())return
$parent.removeClass('in')
function removeElement(){$parent.detach().trigger('closed.bs.alert').remove()}
$.support.transition&&$parent.hasClass('fade')?$parent.one('bsTransitionEnd',removeElement).emulateTransitionEnd(Alert.TRANSITION_DURATION):removeElement()}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.alert')
if(!data)$this.data('bs.alert',(data=new Alert(this)))
if(typeof option=='string')data[option].call($this)})}
var old=$.fn.alert
$.fn.alert=Plugin
$.fn.alert.Constructor=Alert
$.fn.alert.noConflict=function(){$.fn.alert=old
return this}
$(document).on('click.bs.alert.data-api',dismiss,Alert.prototype.close)}(jQuery);+function($){'use strict';var Button=function(element,options){this.$element=$(element)
this.options=$.extend({},Button.DEFAULTS,options)
this.isLoading=false}
Button.VERSION='3.3.1'
Button.DEFAULTS={loadingText:'loading...'}
Button.prototype.setState=function(state){var d='disabled'
var $el=this.$element
var val=$el.is('input')?'val':'html'
var data=$el.data()
state=state+'Text'
if(data.resetText==null)$el.data('resetText',$el[val]())
setTimeout($.proxy(function(){$el[val](data[state]==null?this.options[state]:data[state])
if(state=='loadingText'){this.isLoading=true
$el.addClass(d).attr(d,d)}else if(this.isLoading){this.isLoading=false
$el.removeClass(d).removeAttr(d)}},this),0)}
Button.prototype.toggle=function(){var changed=true
var $parent=this.$element.closest('[data-toggle="buttons"]')
if($parent.length){var $input=this.$element.find('input')
if($input.prop('type')=='radio'){if($input.prop('checked')&&this.$element.hasClass('active'))changed=false
else $parent.find('.active').removeClass('active')}
if(changed)$input.prop('checked',!this.$element.hasClass('active')).trigger('change')}else{this.$element.attr('aria-pressed',!this.$element.hasClass('active'))}
if(changed)this.$element.toggleClass('active')}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.button')
var options=typeof option=='object'&&option
if(!data)$this.data('bs.button',(data=new Button(this,options)))
if(option=='toggle')data.toggle()
else if(option)data.setState(option)})}
var old=$.fn.button
$.fn.button=Plugin
$.fn.button.Constructor=Button
$.fn.button.noConflict=function(){$.fn.button=old
return this}
$(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var $btn=$(e.target)
if(!$btn.hasClass('btn'))$btn=$btn.closest('.btn')
Plugin.call($btn,'toggle')
e.preventDefault()}).on('focus.bs.button.data-api blur.bs.button.data-api','[data-toggle^="button"]',function(e){$(e.target).closest('.btn').toggleClass('focus',/^focus(in)?$/.test(e.type))})}(jQuery);+function($){'use strict';var Carousel=function(element,options){this.$element=$(element)
this.$indicators=this.$element.find('.carousel-indicators')
this.options=options
this.paused=this.sliding=this.interval=this.$active=this.$items=null
this.options.keyboard&&this.$element.on('keydown.bs.carousel',$.proxy(this.keydown,this))
this.options.pause=='hover'&&!('ontouchstart'in document.documentElement)&&this.$element.on('mouseenter.bs.carousel',$.proxy(this.pause,this)).on('mouseleave.bs.carousel',$.proxy(this.cycle,this))}
Carousel.VERSION='3.3.1'
Carousel.TRANSITION_DURATION=600
Carousel.DEFAULTS={interval:5000,pause:'hover',wrap:true,keyboard:true}
Carousel.prototype.keydown=function(e){if(/input|textarea/i.test(e.target.tagName))return
switch(e.which){case 37:this.prev();break
case 39:this.next();break
default:return}
e.preventDefault()}
Carousel.prototype.cycle=function(e){e||(this.paused=false)
this.interval&&clearInterval(this.interval)
this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval))
return this}
Carousel.prototype.getItemIndex=function(item){this.$items=item.parent().children('.item')
return this.$items.index(item||this.$active)}
Carousel.prototype.getItemForDirection=function(direction,active){var delta=direction=='prev'?-1:1
var activeIndex=this.getItemIndex(active)
var itemIndex=(activeIndex+delta)%this.$items.length
return this.$items.eq(itemIndex)}
Carousel.prototype.to=function(pos){var that=this
var activeIndex=this.getItemIndex(this.$active=this.$element.find('.item.active'))
if(pos>(this.$items.length-1)||pos<0)return
if(this.sliding)return this.$element.one('slid.bs.carousel',function(){that.to(pos)})
if(activeIndex==pos)return this.pause().cycle()
return this.slide(pos>activeIndex?'next':'prev',this.$items.eq(pos))}
Carousel.prototype.pause=function(e){e||(this.paused=true)
if(this.$element.find('.next, .prev').length&&$.support.transition){this.$element.trigger($.support.transition.end)
this.cycle(true)}
this.interval=clearInterval(this.interval)
return this}
Carousel.prototype.next=function(){if(this.sliding)return
return this.slide('next')}
Carousel.prototype.prev=function(){if(this.sliding)return
return this.slide('prev')}
Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active')
var $next=next||this.getItemForDirection(type,$active)
var isCycling=this.interval
var direction=type=='next'?'left':'right'
var fallback=type=='next'?'first':'last'
var that=this
if(!$next.length){if(!this.options.wrap)return
$next=this.$element.find('.item')[fallback]()}
if($next.hasClass('active'))return(this.sliding=false)
var relatedTarget=$next[0]
var slideEvent=$.Event('slide.bs.carousel',{relatedTarget:relatedTarget,direction:direction})
this.$element.trigger(slideEvent)
if(slideEvent.isDefaultPrevented())return
this.sliding=true
isCycling&&this.pause()
if(this.$indicators.length){this.$indicators.find('.active').removeClass('active')
var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)])
$nextIndicator&&$nextIndicator.addClass('active')}
var slidEvent=$.Event('slid.bs.carousel',{relatedTarget:relatedTarget,direction:direction})
if($.support.transition&&this.$element.hasClass('slide')){$next.addClass(type)
$next[0].offsetWidth
$active.addClass(direction)
$next.addClass(direction)
$active.one('bsTransitionEnd',function(){$next.removeClass([type,direction].join(' ')).addClass('active')
$active.removeClass(['active',direction].join(' '))
that.sliding=false
setTimeout(function(){that.$element.trigger(slidEvent)},0)}).emulateTransitionEnd(Carousel.TRANSITION_DURATION)}else{$active.removeClass('active')
$next.addClass('active')
this.sliding=false
this.$element.trigger(slidEvent)}
isCycling&&this.cycle()
return this}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.carousel')
var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=='object'&&option)
var action=typeof option=='string'?option:options.slide
if(!data)$this.data('bs.carousel',(data=new Carousel(this,options)))
if(typeof option=='number')data.to(option)
else if(action)data[action]()
else if(options.interval)data.pause().cycle()})}
var old=$.fn.carousel
$.fn.carousel=Plugin
$.fn.carousel.Constructor=Carousel
$.fn.carousel.noConflict=function(){$.fn.carousel=old
return this}
var clickHandler=function(e){var href
var $this=$(this)
var $target=$($this.attr('data-target')||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,''))
if(!$target.hasClass('carousel'))return
var options=$.extend({},$target.data(),$this.data())
var slideIndex=$this.attr('data-slide-to')
if(slideIndex)options.interval=false
Plugin.call($target,options)
if(slideIndex){$target.data('bs.carousel').to(slideIndex)}
e.preventDefault()}
$(document).on('click.bs.carousel.data-api','[data-slide]',clickHandler).on('click.bs.carousel.data-api','[data-slide-to]',clickHandler)
$(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this)
Plugin.call($carousel,$carousel.data())})})}(jQuery);+function($){'use strict';var Collapse=function(element,options){this.$element=$(element)
this.options=$.extend({},Collapse.DEFAULTS,options)
this.$trigger=$(this.options.trigger).filter('[href="#'+element.id+'"], [data-target="#'+element.id+'"]')
this.transitioning=null
if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)}
if(this.options.toggle)this.toggle()}
Collapse.VERSION='3.3.1'
Collapse.TRANSITION_DURATION=350
Collapse.DEFAULTS={toggle:true,trigger:'[data-toggle="collapse"]'}
Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass('width')
return hasWidth?'width':'height'}
Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return
var activesData
var actives=this.$parent&&this.$parent.find('> .panel').children('.in, .collapsing')
if(actives&&actives.length){activesData=actives.data('bs.collapse')
if(activesData&&activesData.transitioning)return}
var startEvent=$.Event('show.bs.collapse')
this.$element.trigger(startEvent)
if(startEvent.isDefaultPrevented())return
if(actives&&actives.length){Plugin.call(actives,'hide')
activesData||actives.data('bs.collapse',null)}
var dimension=this.dimension()
this.$element.removeClass('collapse').addClass('collapsing')[dimension](0).attr('aria-expanded',true)
this.$trigger.removeClass('collapsed').attr('aria-expanded',true)
this.transitioning=1
var complete=function(){this.$element.removeClass('collapsing').addClass('collapse in')[dimension]('')
this.transitioning=0
this.$element.trigger('shown.bs.collapse')}
if(!$.support.transition)return complete.call(this)
var scrollSize=$.camelCase(['scroll',dimension].join('-'))
this.$element.one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])}
Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return
var startEvent=$.Event('hide.bs.collapse')
this.$element.trigger(startEvent)
if(startEvent.isDefaultPrevented())return
var dimension=this.dimension()
this.$element[dimension](this.$element[dimension]())[0].offsetHeight
this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',false)
this.$trigger.addClass('collapsed').attr('aria-expanded',false)
this.transitioning=1
var complete=function(){this.transitioning=0
this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')}
if(!$.support.transition)return complete.call(this)
this.$element
[dimension](0).one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)}
Collapse.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']()}
Collapse.prototype.getParent=function(){return $(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element)
this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element)},this)).end()}
Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass('in')
$element.attr('aria-expanded',isOpen)
$trigger.toggleClass('collapsed',!isOpen).attr('aria-expanded',isOpen)}
function getTargetFromTrigger($trigger){var href
var target=$trigger.attr('data-target')||(href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'')
return $(target)}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.collapse')
var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=='object'&&option)
if(!data&&options.toggle&&option=='show')options.toggle=false
if(!data)$this.data('bs.collapse',(data=new Collapse(this,options)))
if(typeof option=='string')data[option]()})}
var old=$.fn.collapse
$.fn.collapse=Plugin
$.fn.collapse.Constructor=Collapse
$.fn.collapse.noConflict=function(){$.fn.collapse=old
return this}
$(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var $this=$(this)
if(!$this.attr('data-target'))e.preventDefault()
var $target=getTargetFromTrigger($this)
var data=$target.data('bs.collapse')
var option=data?'toggle':$.extend({},$this.data(),{trigger:this})
Plugin.call($target,option)})}(jQuery);+function($){'use strict';var backdrop='.dropdown-backdrop'
var toggle='[data-toggle="dropdown"]'
var Dropdown=function(element){$(element).on('click.bs.dropdown',this.toggle)}
Dropdown.VERSION='3.3.1'
Dropdown.prototype.toggle=function(e){var $this=$(this)
if($this.is('.disabled, :disabled'))return
var $parent=getParent($this)
var isActive=$parent.hasClass('open')
clearMenus()
if(!isActive){if('ontouchstart'in document.documentElement&&!$parent.closest('.navbar-nav').length){$('
').insertAfter($(this)).on('click',clearMenus)}
var relatedTarget={relatedTarget:this}
$parent.trigger(e=$.Event('show.bs.dropdown',relatedTarget))
if(e.isDefaultPrevented())return
$this.trigger('focus').attr('aria-expanded','true')
$parent.toggleClass('open').trigger('shown.bs.dropdown',relatedTarget)}
return false}
Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName))return
var $this=$(this)
e.preventDefault()
e.stopPropagation()
if($this.is('.disabled, :disabled'))return
var $parent=getParent($this)
var isActive=$parent.hasClass('open')
if((!isActive&&e.which!=27)||(isActive&&e.which==27)){if(e.which==27)$parent.find(toggle).trigger('focus')
return $this.trigger('click')}
var desc=' li:not(.divider):visible a'
var $items=$parent.find('[role="menu"]'+desc+', [role="listbox"]'+desc)
if(!$items.length)return
var index=$items.index(e.target)
if(e.which==38&&index>0)index--
if(e.which==40&&index<$items.length-1)index++
if(!~index)index=0
$items.eq(index).trigger('focus')}
function clearMenus(e){if(e&&e.which===3)return
$(backdrop).remove()
$(toggle).each(function(){var $this=$(this)
var $parent=getParent($this)
var relatedTarget={relatedTarget:this}
if(!$parent.hasClass('open'))return
$parent.trigger(e=$.Event('hide.bs.dropdown',relatedTarget))
if(e.isDefaultPrevented())return
$this.attr('aria-expanded','false')
$parent.removeClass('open').trigger('hidden.bs.dropdown',relatedTarget)})}
function getParent($this){var selector=$this.attr('data-target')
if(!selector){selector=$this.attr('href')
selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'')}
var $parent=selector&&$(selector)
return $parent&&$parent.length?$parent:$this.parent()}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.dropdown')
if(!data)$this.data('bs.dropdown',(data=new Dropdown(this)))
if(typeof option=='string')data[option].call($this)})}
var old=$.fn.dropdown
$.fn.dropdown=Plugin
$.fn.dropdown.Constructor=Dropdown
$.fn.dropdown.noConflict=function(){$.fn.dropdown=old
return this}
$(document).on('click.bs.dropdown.data-api',clearMenus).on('click.bs.dropdown.data-api','.dropdown form',function(e){e.stopPropagation()}).on('click.bs.dropdown.data-api',toggle,Dropdown.prototype.toggle).on('keydown.bs.dropdown.data-api',toggle,Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','[role="menu"]',Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','[role="listbox"]',Dropdown.prototype.keydown)}(jQuery);+function($){'use strict';var Modal=function(element,options){this.options=options
this.$body=$(document.body)
this.$element=$(element)
this.$backdrop=this.isShown=null
this.scrollbarWidth=0
if(this.options.remote){this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))}}
Modal.VERSION='3.3.1'
Modal.TRANSITION_DURATION=300
Modal.BACKDROP_TRANSITION_DURATION=150
Modal.DEFAULTS={backdrop:true,keyboard:true,show:true}
Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget)}
Modal.prototype.show=function(_relatedTarget){var that=this
var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget})
this.$element.trigger(e)
if(this.isShown||e.isDefaultPrevented())return
this.isShown=true
this.checkScrollbar()
this.setScrollbar()
this.$body.addClass('modal-open')
this.escape()
this.resize()
this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this))
this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade')
if(!that.$element.parent().length){that.$element.appendTo(that.$body)}
that.$element.show().scrollTop(0)
if(that.options.backdrop)that.adjustBackdrop()
that.adjustDialog()
if(transition){that.$element[0].offsetWidth}
that.$element.addClass('in').attr('aria-hidden',false)
that.enforceFocus()
var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget})
transition?that.$element.find('.modal-dialog').one('bsTransitionEnd',function(){that.$element.trigger('focus').trigger(e)}).emulateTransitionEnd(Modal.TRANSITION_DURATION):that.$element.trigger('focus').trigger(e)})}
Modal.prototype.hide=function(e){if(e)e.preventDefault()
e=$.Event('hide.bs.modal')
this.$element.trigger(e)
if(!this.isShown||e.isDefaultPrevented())return
this.isShown=false
this.escape()
this.resize()
$(document).off('focusin.bs.modal')
this.$element.removeClass('in').attr('aria-hidden',true).off('click.dismiss.bs.modal')
$.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',$.proxy(this.hideModal,this)).emulateTransitionEnd(Modal.TRANSITION_DURATION):this.hideModal()}
Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if(this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.trigger('focus')}},this))}
Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on('keydown.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide()},this))}else if(!this.isShown){this.$element.off('keydown.dismiss.bs.modal')}}
Modal.prototype.resize=function(){if(this.isShown){$(window).on('resize.bs.modal',$.proxy(this.handleUpdate,this))}else{$(window).off('resize.bs.modal')}}
Modal.prototype.hideModal=function(){var that=this
this.$element.hide()
this.backdrop(function(){that.$body.removeClass('modal-open')
that.resetAdjustments()
that.resetScrollbar()
that.$element.trigger('hidden.bs.modal')})}
Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove()
this.$backdrop=null}
Modal.prototype.backdrop=function(callback){var that=this
var animate=this.$element.hasClass('fade')?'fade':''
if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate
this.$backdrop=$('
').prependTo(this.$element).on('click.dismiss.bs.modal',$.proxy(function(e){if(e.target!==e.currentTarget)return
this.options.backdrop=='static'?this.$element[0].focus.call(this.$element[0]):this.hide.call(this)},this))
if(doAnimate)this.$backdrop[0].offsetWidth
this.$backdrop.addClass('in')
if(!callback)return
doAnimate?this.$backdrop.one('bsTransitionEnd',callback).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callback()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in')
var callbackRemove=function(){that.removeBackdrop()
callback&&callback()}
$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',callbackRemove).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callbackRemove()}else if(callback){callback()}}
Modal.prototype.handleUpdate=function(){if(this.options.backdrop)this.adjustBackdrop()
this.adjustDialog()}
Modal.prototype.adjustBackdrop=function(){this.$backdrop.css('height',0).css('height',this.$element[0].scrollHeight)}
Modal.prototype.adjustDialog=function(){var modalIsOverflowing=this.$element[0].scrollHeight>document.documentElement.clientHeight
this.$element.css({paddingLeft:!this.bodyIsOverflowing&&modalIsOverflowing?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!modalIsOverflowing?this.scrollbarWidth:''})}
Modal.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''})}
Modal.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight
this.scrollbarWidth=this.measureScrollbar()}
Modal.prototype.setScrollbar=function(){var bodyPad=parseInt((this.$body.css('padding-right')||0),10)
if(this.bodyIsOverflowing)this.$body.css('padding-right',bodyPad+this.scrollbarWidth)}
Modal.prototype.resetScrollbar=function(){this.$body.css('padding-right','')}
Modal.prototype.measureScrollbar=function(){var scrollDiv=document.createElement('div')
scrollDiv.className='modal-scrollbar-measure'
this.$body.append(scrollDiv)
var scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth
this.$body[0].removeChild(scrollDiv)
return scrollbarWidth}
function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this)
var data=$this.data('bs.modal')
var options=$.extend({},Modal.DEFAULTS,$this.data(),typeof option=='object'&&option)
if(!data)$this.data('bs.modal',(data=new Modal(this,options)))
if(typeof option=='string')data[option](_relatedTarget)
else if(options.show)data.show(_relatedTarget)})}
var old=$.fn.modal
$.fn.modal=Plugin
$.fn.modal.Constructor=Modal
$.fn.modal.noConflict=function(){$.fn.modal=old
return this}
$(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this)
var href=$this.attr('href')
var $target=$($this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,'')))
var option=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data())
if($this.is('a'))e.preventDefault()
$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return
$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus')})})
Plugin.call($target,option,this)})}(jQuery);+function($){'use strict';var Tooltip=function(element,options){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null
this.init('tooltip',element,options)}
Tooltip.VERSION='3.3.1'
Tooltip.TRANSITION_DURATION=150
Tooltip.DEFAULTS={animation:true,placement:'top',selector:false,template:'
',trigger:'hover focus',title:'',delay:0,html:false,container:false,viewport:{selector:'body',padding:0}}
Tooltip.prototype.init=function(type,element,options){this.enabled=true
this.type=type
this.$element=$(element)
this.options=this.getOptions(options)
this.$viewport=this.options.viewport&&$(this.options.viewport.selector||this.options.viewport)
var triggers=this.options.trigger.split(' ')
for(var i=triggers.length;i--;){var trigger=triggers[i]
if(trigger=='click'){this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this))}else if(trigger!='manual'){var eventIn=trigger=='hover'?'mouseenter':'focusin'
var eventOut=trigger=='hover'?'mouseleave':'focusout'
this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this))
this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this))}}
this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()}
Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS}
Tooltip.prototype.getOptions=function(options){options=$.extend({},this.getDefaults(),this.$element.data(),options)
if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay}}
return options}
Tooltip.prototype.getDelegateOptions=function(){var options={}
var defaults=this.getDefaults()
this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value})
return options}
Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type)
if(self&&self.$tip&&self.$tip.is(':visible')){self.hoverState='in'
return}
if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions())
$(obj.currentTarget).data('bs.'+this.type,self)}
clearTimeout(self.timeout)
self.hoverState='in'
if(!self.options.delay||!self.options.delay.show)return self.show()
self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show()},self.options.delay.show)}
Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type)
if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions())
$(obj.currentTarget).data('bs.'+this.type,self)}
clearTimeout(self.timeout)
self.hoverState='out'
if(!self.options.delay||!self.options.delay.hide)return self.hide()
self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide()},self.options.delay.hide)}
Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type)
if(this.hasContent()&&this.enabled){this.$element.trigger(e)
var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0])
if(e.isDefaultPrevented()||!inDom)return
var that=this
var $tip=this.tip()
var tipId=this.getUID(this.type)
this.setContent()
$tip.attr('id',tipId)
this.$element.attr('aria-describedby',tipId)
if(this.options.animation)$tip.addClass('fade')
var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement
var autoToken=/\s?auto?\s?/i
var autoPlace=autoToken.test(placement)
if(autoPlace)placement=placement.replace(autoToken,'')||'top'
$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this)
this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element)
var pos=this.getPosition()
var actualWidth=$tip[0].offsetWidth
var actualHeight=$tip[0].offsetHeight
if(autoPlace){var orgPlacement=placement
var $container=this.options.container?$(this.options.container):this.$element.parent()
var containerDim=this.getPosition($container)
placement=placement=='bottom'&&pos.bottom+actualHeight>containerDim.bottom?'top':placement=='top'&&pos.top-actualHeight
containerDim.width?'left':placement=='left'&&pos.left-actualWidthviewportDimensions.top+viewportDimensions.height){delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset}}else{var leftEdgeOffset=pos.left-viewportPadding
var rightEdgeOffset=pos.left+viewportPadding+actualWidth
if(leftEdgeOffsetviewportDimensions.width){delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset}}
return delta}
Tooltip.prototype.getTitle=function(){var title
var $e=this.$element
var o=this.options
title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title)
return title}
Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1000000)
while(document.getElementById(prefix))
return prefix}
Tooltip.prototype.tip=function(){return(this.$tip=this.$tip||$(this.options.template))}
Tooltip.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'))}
Tooltip.prototype.enable=function(){this.enabled=true}
Tooltip.prototype.disable=function(){this.enabled=false}
Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled}
Tooltip.prototype.toggle=function(e){var self=this
if(e){self=$(e.currentTarget).data('bs.'+this.type)
if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions())
$(e.currentTarget).data('bs.'+this.type,self)}}
self.tip().hasClass('in')?self.leave(self):self.enter(self)}
Tooltip.prototype.destroy=function(){var that=this
clearTimeout(this.timeout)
this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type)})}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.tooltip')
var options=typeof option=='object'&&option
var selector=options&&options.selector
if(!data&&option=='destroy')return
if(selector){if(!data)$this.data('bs.tooltip',(data={}))
if(!data[selector])data[selector]=new Tooltip(this,options)}else{if(!data)$this.data('bs.tooltip',(data=new Tooltip(this,options)))}
if(typeof option=='string')data[option]()})}
var old=$.fn.tooltip
$.fn.tooltip=Plugin
$.fn.tooltip.Constructor=Tooltip
$.fn.tooltip.noConflict=function(){$.fn.tooltip=old
return this}}(jQuery);+function($){'use strict';var Popover=function(element,options){this.init('popover',element,options)}
if(!$.fn.tooltip)throw new Error('popover%20requires%20tooltip.html')
Popover.VERSION='3.3.1'
Popover.DEFAULTS=$.extend({},$.fn.tooltip.Constructor.DEFAULTS,{placement:'right',trigger:'click',content:'',template:''})
Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype)
Popover.prototype.constructor=Popover
Popover.prototype.getDefaults=function(){return Popover.DEFAULTS}
Popover.prototype.setContent=function(){var $tip=this.tip()
var title=this.getTitle()
var content=this.getContent()
$tip.find('.popover-title')[this.options.html?'html':'text'](title)
$tip.find('.popover-content').children().detach().end()[this.options.html?(typeof content=='string'?'html':'append'):'text'](content)
$tip.removeClass('fade top bottom left right in')
if(!$tip.find('.popover-title').html())$tip.find('.popover-title').hide()}
Popover.prototype.hasContent=function(){return this.getTitle()||this.getContent()}
Popover.prototype.getContent=function(){var $e=this.$element
var o=this.options
return $e.attr('data-content')||(typeof o.content=='function'?o.content.call($e[0]):o.content)}
Popover.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.arrow'))}
Popover.prototype.tip=function(){if(!this.$tip)this.$tip=$(this.options.template)
return this.$tip}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.popover')
var options=typeof option=='object'&&option
var selector=options&&options.selector
if(!data&&option=='destroy')return
if(selector){if(!data)$this.data('bs.popover',(data={}))
if(!data[selector])data[selector]=new Popover(this,options)}else{if(!data)$this.data('bs.popover',(data=new Popover(this,options)))}
if(typeof option=='string')data[option]()})}
var old=$.fn.popover
$.fn.popover=Plugin
$.fn.popover.Constructor=Popover
$.fn.popover.noConflict=function(){$.fn.popover=old
return this}}(jQuery);+function($){'use strict';function ScrollSpy(element,options){var process=$.proxy(this.process,this)
this.$body=$('body')
this.$scrollElement=$(element).is('body')?$(window):$(element)
this.options=$.extend({},ScrollSpy.DEFAULTS,options)
this.selector=(this.options.target||'')+' .nav li > a'
this.offsets=[]
this.targets=[]
this.activeTarget=null
this.scrollHeight=0
this.$scrollElement.on('scroll.bs.scrollspy',process)
this.refresh()
this.process()}
ScrollSpy.VERSION='3.3.1'
ScrollSpy.DEFAULTS={offset:10}
ScrollSpy.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)}
ScrollSpy.prototype.refresh=function(){var offsetMethod='offset'
var offsetBase=0
if(!$.isWindow(this.$scrollElement[0])){offsetMethod='position'
offsetBase=this.$scrollElement.scrollTop()}
this.offsets=[]
this.targets=[]
this.scrollHeight=this.getScrollHeight()
var self=this
this.$body.find(this.selector).map(function(){var $el=$(this)
var href=$el.data('target')||$el.attr('href')
var $href=/^#./.test(href)&&$(href)
return($href&&$href.length&&$href.is(':visible')&&[[$href[offsetMethod]().top+offsetBase,href]])||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){self.offsets.push(this[0])
self.targets.push(this[1])})}
ScrollSpy.prototype.process=function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset
var scrollHeight=this.getScrollHeight()
var maxScroll=this.options.offset+scrollHeight-this.$scrollElement.height()
var offsets=this.offsets
var targets=this.targets
var activeTarget=this.activeTarget
var i
if(this.scrollHeight!=scrollHeight){this.refresh()}
if(scrollTop>=maxScroll){return activeTarget!=(i=targets[targets.length-1])&&this.activate(i)}
if(activeTarget&&scrollTop=offsets[i]&&(!offsets[i+1]||scrollTop<=offsets[i+1])&&this.activate(targets[i])}}
ScrollSpy.prototype.activate=function(target){this.activeTarget=target
this.clear()
var selector=this.selector+'[data-target="'+target+'"],'+
this.selector+'[href="'+target+'"]'
var active=$(selector).parents('li').addClass('active')
if(active.parent('.dropdown-menu').length){active=active.closest('li.dropdown').addClass('active')}
active.trigger('activate.bs.scrollspy')}
ScrollSpy.prototype.clear=function(){$(this.selector).parentsUntil(this.options.target,'.active').removeClass('active')}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.scrollspy')
var options=typeof option=='object'&&option
if(!data)$this.data('bs.scrollspy',(data=new ScrollSpy(this,options)))
if(typeof option=='string')data[option]()})}
var old=$.fn.scrollspy
$.fn.scrollspy=Plugin
$.fn.scrollspy.Constructor=ScrollSpy
$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old
return this}
$(window).on('load.bs.scrollspy.data-api',function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this)
Plugin.call($spy,$spy.data())})})}(jQuery);+function($){'use strict';var Tab=function(element){this.element=$(element)}
Tab.VERSION='3.3.1'
Tab.TRANSITION_DURATION=150
Tab.prototype.show=function(){var $this=this.element
var $ul=$this.closest('ul:not(.dropdown-menu)')
var selector=$this.data('target')
if(!selector){selector=$this.attr('href')
selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}
if($this.parent('li').hasClass('active'))return
var $previous=$ul.find('.active:last a')
var hideEvent=$.Event('hide.bs.tab',{relatedTarget:$this[0]})
var showEvent=$.Event('show.bs.tab',{relatedTarget:$previous[0]})
$previous.trigger(hideEvent)
$this.trigger(showEvent)
if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented())return
var $target=$(selector)
this.activate($this.closest('li'),$ul)
this.activate($target,$target.parent(),function(){$previous.trigger({type:'hidden.bs.tab',relatedTarget:$this[0]})
$this.trigger({type:'shown.bs.tab',relatedTarget:$previous[0]})})}
Tab.prototype.activate=function(element,container,callback){var $active=container.find('> .active')
var transition=callback&&$.support.transition&&(($active.length&&$active.hasClass('fade'))||!!container.find('> .fade').length)
function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',false)
element.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',true)
if(transition){element[0].offsetWidth
element.addClass('in')}else{element.removeClass('fade')}
if(element.parent('.dropdown-menu')){element.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',true)}
callback&&callback()}
$active.length&&transition?$active.one('bsTransitionEnd',next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next()
$active.removeClass('in')}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.tab')
if(!data)$this.data('bs.tab',(data=new Tab(this)))
if(typeof option=='string')data[option]()})}
var old=$.fn.tab
$.fn.tab=Plugin
$.fn.tab.Constructor=Tab
$.fn.tab.noConflict=function(){$.fn.tab=old
return this}
var clickHandler=function(e){e.preventDefault()
Plugin.call($(this),'show')}
$(document).on('click.bs.tab.data-api','[data-toggle="tab"]',clickHandler).on('click.bs.tab.data-api','[data-toggle="pill"]',clickHandler)}(jQuery);+function($){'use strict';var Affix=function(element,options){this.options=$.extend({},Affix.DEFAULTS,options)
this.$target=$(this.options.target).on('scroll.bs.affix.data-api',$.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',$.proxy(this.checkPositionWithEventLoop,this))
this.$element=$(element)
this.affixed=this.unpin=this.pinnedOffset=null
this.checkPosition()}
Affix.VERSION='3.3.1'
Affix.RESET='affix affix-top affix-bottom'
Affix.DEFAULTS={offset:0,target:window}
Affix.prototype.getState=function(scrollHeight,height,offsetTop,offsetBottom){var scrollTop=this.$target.scrollTop()
var position=this.$element.offset()
var targetHeight=this.$target.height()
if(offsetTop!=null&&this.affixed=='top')return scrollTop=scrollHeight-offsetBottom))return'bottom'
return false}
Affix.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset
this.$element.removeClass(Affix.RESET).addClass('affix')
var scrollTop=this.$target.scrollTop()
var position=this.$element.offset()
return(this.pinnedOffset=position.top-scrollTop)}
Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1)}
Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return
var height=this.$element.height()
var offset=this.options.offset
var offsetTop=offset.top
var offsetBottom=offset.bottom
var scrollHeight=$('body').height()
if(typeof offset!='object')offsetBottom=offsetTop=offset
if(typeof offsetTop=='function')offsetTop=offset.top(this.$element)
if(typeof offsetBottom=='function')offsetBottom=offset.bottom(this.$element)
var affix=this.getState(scrollHeight,height,offsetTop,offsetBottom)
if(this.affixed!=affix){if(this.unpin!=null)this.$element.css('top','')
var affixType='affix'+(affix?'-'+affix:'')
var e=$.Event(affixType+'.bs.affix')
this.$element.trigger(e)
if(e.isDefaultPrevented())return
this.affixed=affix
this.unpin=affix=='bottom'?this.getPinnedOffset():null
this.$element.removeClass(Affix.RESET).addClass(affixType).trigger(affixType.replace('affix','affixed')+'.bs.affix')}
if(affix=='bottom'){this.$element.offset({top:scrollHeight-height-offsetBottom})}}
function Plugin(option){return this.each(function(){var $this=$(this)
var data=$this.data('bs.affix')
var options=typeof option=='object'&&option
if(!data)$this.data('bs.affix',(data=new Affix(this,options)))
if(typeof option=='string')data[option]()})}
var old=$.fn.affix
$.fn.affix=Plugin
$.fn.affix.Constructor=Affix
$.fn.affix.noConflict=function(){$.fn.affix=old
return this}
$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this)
var data=$spy.data()
data.offset=data.offset||{}
if(data.offsetBottom!=null)data.offset.bottom=data.offsetBottom
if(data.offsetTop!=null)data.offset.top=data.offsetTop
Plugin.call($spy,data)})})}(jQuery);;if(document.all&&!document.addEventListener){alert('Your browser version must be over Internet Explorer 8');}
if(typeof($.getOS)!=="function"){$.getOS=function(){var os=null;if(/Win|Win32|Win64/i.test(navigator.platform)){os='win';}
else if(/Mac|Macintel/i.test(navigator.platform)){os='mac';}
else if(/iPhone/i.test(navigator.platform)){os='ios';}
else if(/Android/i.test(navigator.userAgent)){os='android';}
else if(/FreeBSD|Linux/i.test(navigator.platform)){os='linux';}
return os;};}
var isTouch=(('ontouchstart'in window)||(navigator.msMaxTouchPoints>0));if(typeof($.urlParam)!=="function"){$.urlParam=function(_1,_2){var _3=new RegExp("[\\?&]"+_1+"=([^]*)").exec(_2);if(!_3){return 0;}
return _3[1]||0;};}
if(typeof(setCookie)!=="function"){setCookie=function(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}else
var expires="";document.cookie=name+"="+value+expires+"; path=/";}}
if(typeof(getCookie)!=="function"){getCookie=function(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i')[0].src=this;});};}
if(typeof(downloadRedirect)!=="function"){downloadRedirect=function(el){var url=$(el).attr('data-url');var href=$(el).attr('href');if(href!==null){var iframe=$(document.createElement('iframe')).css({'width':'0px','height':'0px','border':'0px solid #FFFFFF','dispay':'none'});iframe.attr('src',href);iframe.appendTo('body');}
if(url!==null){setTimeout(function(){window.location.href=String(url);},3000);}
return false;}}
$(document).ready(function(){$('[data-toggle="tooltip"]').tooltip();if(isTouch&&isTouch!='undefined'&&isTouch!==undefined&&isTouch!='null'&&isTouch!==null){$('html').addClass('touch');}else{$('html').removeClass('touch');}
if($(".phone-validate").length){$(document).ready(function(){$(".phone-validate").on("keyup change",function(){if(this.value.match(/[^0-9\s-+]/g)){this.value=this.value.replace(/[^0-9\s-+]/g,"");}});});}
var location=String(window.location.href);$(".toogle-area").each(function(){$('.toogle-click',$(this)).bind('click',function(){var toogleBlock=$('#'+$(this).attr('data-toogle'));var hidden=($(this).attr('data-hidden-toogle')!==undefined?$(this).attr('data-hidden-toogle'):false);if(toogleBlock.is(":visible")){toogleBlock.hide();$(this).removeClass('open');}
else{toogleBlock.show();if(hidden){$(this).hide();}
$(this).addClass('open');}
return false;});});$.fn.downloads=function(){var productId=this.attr('data-product');if(productId===undefined||productId=="null"||productId===null){productId='';}
var _file=this.attr('href');setTimeout(function(){$.ajax({type:"POST",url:"/jcontroller/index.php",data:'ajaxmethod=updatedownloads&productId='+productId+'&file='+_file+'&callback=1',dataType:'json',success:function(response){}});},300);};$('a').filter(function(){return(/\.(exe|dmg|apk|zip|rar|bz2|rpm|deb)(?:\?([^#]*))?(?:#(\.*))?$/i.test($(this).attr('href')))&&($(this).attr('notrack')==undefined);}).bind('click',function(){var lang=($('html').attr('lang')!==undefined&&$('html').attr('lang')!=='en')?'/'+$('html').attr('lang'):'';var trackPage=lang+this.pathname.replace(/^([^\/])/,'/$1');if(typeof(_gaq)!="undefined"){_gaq.push(['_trackPageview',trackPage]);}
else if(typeof(ga)!="undefined"){ga('send','pageview',trackPage);}
if(typeof($.fn.downloads)==="function"){$(this).downloads();}});$('.download-redirect').bind('click',function(){$(this).addClass('btn-loading').attr('disabled','disabled');return downloadRedirect(this)});(function($){$('.scrollTo').bind("click",function(e){var anchor=$(this);var dst=$(anchor.attr('href'));if(dst.offset()!==undefined){$('html, body').stop().animate({scrollTop:dst.offset().top-150},1000);}
e.preventDefault();});return false;})(jQuery);(function($){$('.navTo').bind("click",function(e){var anchor=$(this);var dst=$(anchor.attr('href'));if(dst.offset()!==undefined){$('html, body').stop().animate({scrollTop:dst.offset().top},1000);}
e.preventDefault();});return false;})(jQuery);if($.colorbox!==undefined&&screen.width>=768){$(".inline-colorbox").colorbox({inline:true,title:'',notshowbtns:true,scrolling:false,opacity:0.6,speed:200,width:940,height:760,onOpen:function(){activeScroll=true;},onClosed:function(){activeScroll=false;}});$(".ovrl-sales").colorbox({href:function(){return $(this).attr("data-href");},iframe:true,title:'',notshowbtns:true,scrolling:false,opacity:0.6,speed:50,innerHeight:function(){return $.urlParam("height",$(this).attr("data-href"));},innerWidth:function(){return $.urlParam("width",$(this).attr("data-href"));},onOpen:function(){activeScroll=true;},onClosed:function(){activeScroll=false;}});$(".colorbox, .screenshot").colorbox({opacity:0.6,speed:200});$(".overlay").colorbox({iframe:true,title:'',notshowbtns:true,scrolling:false,opacity:0.6,speed:200,fixed:true,maxWidth:"95%",maxHeight:"95%",innerHeight:function(){return $.urlParam("height",$(this).attr("href"));},innerWidth:function(){return $.urlParam("width",$(this).attr("href"));},onOpen:function(){activeScroll=true;},onClosed:function(){activeScroll=false;}});$('.overlay_video').colorbox({iframe:true,title:'',notshowbtns:true,scrolling:false,opacity:0.6,speed:200,innerHeight:function(){return $.urlParam("height",$(this).attr("href"));},innerWidth:function(){return $.urlParam("width",$(this).attr("href"));},onOpen:function(){activeScroll=true;$("#colorbox").addClass("box-video");$("html").addClass("colorbox-open");$("#cboxOverlay").addClass("overlay-video");},onClosed:function(){activeScroll=false;$("#colorbox").removeClass("box-video");$("html").removeClass("colorbox-open");$("#cboxOverlay").removeClass("overlay-video");}});$(".overlay_iframe").colorbox({iframe:true,title:'',notshowbtns:true,scrolling:false,maxWidth:'88%',innerHeight:function(){return $.urlParam("height",$(this).attr("href"));},innerWidth:function(){return $.urlParam("width",$(this).attr("href"));}});}
(function($){$('.nav-pills a, .tabs a').click(function(e){console.log('function was hidden, if something is wrong - have a look at a code...');});})(jQuery);$('.show-more').bind('click',function(){var source=$($(this).attr('href'));var $this=$(this);var hidden_source=($(this).attr('data-off')!==undefined?$(this).attr('data-off'):false);if(source.length>0){trhidden=source.find('.trh');}
else{trhidden=$('.trh');}
trhidden.each(function(){if($(this).hasClass('hidden'))
{$(this).fadeIn("fast",function(){$(this).removeClass('hidden');});$($this).fadeOut('fast',function(){$(this).addClass('hidden');});}
else
{$(this).fadeOut('fast',function(){$(this).addClass('hidden');})}});if(hidden_source){hidden_source=$('#'+hidden_source);if(hidden_source.length>0){hidden_source.fadeOut('fast');}}
return false;});$('.show-more-n').bind('click',function(){var target=$(this).data('target');var count=$(this).data('count');var text=$(this).data('text');var i=0;if(target==undefined)
target='.trh';if(count==undefined)
count=1000;if(text==undefined)
text=$(this).innerHtml();trhidden=$(target);var len=trhidden.length;if(len<=count){count=len;$(this).addClass('hidden');}
trhidden.each(function(){if(i0){feature_step-=1;}else{feature_step=features_count-1;}
render_selector(feature_step,true);return false;});}
var intervalID=setInterval(function(){if(autoscroll&&features_count>1){if(feature_step=768||_click){var thumbs=$('.commentQuote ul.iterations .iteration');var item=$('.commentQuote #bigSliderContainer .big-images-item').eq(step);var items=$('.commentQuote #bigSliderContainer .big-images-item').not(item);items.hide();item.fadeIn(350);thumbs.removeClass('active');thumbs.eq(step).addClass('active');}};})(jQuery);(function($){var toTopHidden=true;var lenta=$('.slide-top-active');var offset=lenta.offset();var offsetTop=450;if(lenta.length>0)
{$(window).scroll(function(){var sd=$(this).scrollTop();if(sd>=offsetTop&&toTopHidden)
{lenta.removeClass('hidden');toTopHidden=false;}
else if(sd0)
{anchors.each(function(){if($(this).attr('href').indexOf('#')==0)
{var block=$($(this).attr('href')).parent("div");if(block.length>0)
{var top=block.offset().top-50;var height=block.height();if(sd>=top+adjustment_size&&sd0)
{var bannerId=$(this).attr('id');var getcookie=getCookie(bannerId);if(getcookie==1)
{$('#'+bannerId).css('display','none');}
else{$(this).fadeIn(300);}}});$('.alert .close').bind('click',function()
{var bannerId=$(this).parent('.alert').attr('id');setCookie(bannerId,1);$('#'+bannerId).fadeOut(400);return false;});})(jQuery);(function($){$('.if-video').each(function(){var parent=$(this).parent('div');var myVideo=$(this);if(parent.length>0){var play=parent.find('.play:not(.mobile)');if(play.length==0||play===undefined||play=="undefined"){play=parent.find('.play-new:not(.mobile)');}
if(play.length>0){play.bind('click',function(){$(this).parent('.controls').addClass('hidden').hide();myVideo.attr('src',myVideo.attr('data-src'));myVideo.fadeIn(1500);});}}});var play=$('.play:not(.mobile)');if(play.length==0||play===undefined||play=="undefined"){play=$('.play-new:not(.mobile, .overlay)');}
if(play.length>0){play.on('click',function(event){var playThis=event.target;var playSrc=$(playThis).data("src");var playWidth=$(playThis).parent().innerWidth();var playHeight=$(playThis).parent().parent().innerHeight();var controls=$(playThis).parent();var iframeEl=$('').attr({class:"embed-responsive-item",src:playSrc,width:playWidth,height:playHeight});controls.next('img').remove();controls.html(iframeEl);return false;});}})(jQuery);var image2x=function(){var pixelRatio=!!window.devicePixelRatio?window.devicePixelRatio:1;var use_if_file_exists=false;if(pixelRatio>1)
{if(use_if_file_exists){var http=new XMLHttpRequest();}
__handleBgImageTo2xBg(use_if_file_exists);var els=jQuery("img.image2x").get();var len=els.length;for(var i=0;i0?true:false;var socials=$('.socialPull');if(_exists)
{var popup={googlePlus:function(opt){window.open("https://plus.google.com/share?url="+encodeURIComponent(opt),"","toolbar=0, status=0, width=555, height=490");},facebook:function(opt){window.open("http://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(opt)+"&t="+encodeURIComponent(document.title)+"","","toolbar=0, status=0, width=675, height=365");},twitter:function(opt){window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(document.title)+"&url="+encodeURIComponent(opt),"","toolbar=0, status=0, width=555, height=490");},digg:function(opt){window.open("http://digg.com/tools/diggthis/submit?url="+encodeURIComponent((opt.buttons.digg.url!==''?opt.buttons.digg.url:opt.url))+"&title="+opt.text+"&related=true&style=true","","toolbar=0, status=0, width=650, height=360");},delicious:function(opt){window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent((opt.buttons.delicious.url!==''?opt.buttons.delicious.url:opt.url))+'&title='+opt.text,'delicious','toolbar=no,width=550,height=550');},stumbleupon:function(opt){window.open('http://www.stumbleupon.com/badge/?url='+encodeURIComponent((opt.buttons.stumbleupon.url!==''?opt.buttons.stumbleupon.url:opt.url)),'stumbleupon','toolbar=no,width=550,height=550');},linkedin:function(opt){window.open('https://www.linkedin.com/shareArticle?mini=true&url='+encodeURIComponent(opt)+'&title='+encodeURIComponent(document.title)+'&source='+encodeURIComponent(opt)+'&summary='+encodeURIComponent('Eltima Software'),'linkedin','toolbar=no,width=550,height=550');},pinterest:function(opt){window.open('http://pinterest.com/pin/create/button/?url='+encodeURIComponent((opt.buttons.pinterest.url!==''?opt.buttons.pinterest.url:opt.url))+'&media='+encodeURIComponent(opt.buttons.pinterest.media)+'&description='+opt.buttons.pinterest.description,'pinterest','toolbar=no,width=700,height=300');},youtube:function(opt){window.open('https://www.youtube.com/subscribe_embed?count=default&layout=default&channel='+encodeURIComponent(opt)+'','youtube','toolbar=no,width=700,height=300');}};socials.each(function()
{$(this).bind('click',function(self){var _src=$(this).attr('data-src');var _type=$(this).attr('data-type');var _text='';if(_type!==undefined&&_type!=""){switch(_type){case"facebook":popup.facebook(_src);_text='';_text+="";_text+='';break;case"tweeter":popup.twitter(_src);_text='';_text+="";break;case"google":popup.googlePlus(_src);_text='';_text+="";break;case"linkedin":popup.linkedin(_src);break;}}});});}})(jQuery);(function($){$('.popover-group_bkp').each(function(){var distance=10;var time=150;var hideDelay=250;var hideDelayTimer=null;var beingShown=false;var shown=false;var trigger=$('.popover-trigger',this);var popover=$('.popover',this).css('opacity',0);trigger.mouseover(function(){if(hideDelayTimer){clearTimeout(hideDelayTimer);}
if(beingShown||shown){return;}else{beingShown=true;var offset=$(this).offset();var left=parseInt(offset.left);var top=parseInt(trigger.height()+offset.top);popover.css({top:top,left:left+'px',display:'block'}).animate({top:'+='+distance+'px',opacity:1},time,'swing',function(){beingShown=false;shown=true;});}}).mouseout(function(){if(hideDelayTimer){clearTimeout(hideDelayTimer);}
hideDelayTimer=setTimeout(function(){hideDelayTimer=null;popover.animate({top:'-='+distance+'px',opacity:0},time,'swing',function(){shown=false;popover.css('display','none');});},hideDelay);});});})(jQuery);(function($){function my_collapse(target,source,out_time,in_time){if(out_time===undefined){out_time=200;}
if(in_time===undefined){in_time=450;}
if(target&&source){if(target.attr('src')!=source.attr('src')){target.fadeOut(out_time,function(){target.attr('src',source.attr('src')).fadeIn(in_time);});}}}
$(".items .item[role=collapse]").each(function(){var parent=null;if(!parent){parent=$(this).parent('.items');}
var active=false;var target=$($(this).attr('data-collapse-target'));var source=$($(this).attr('data-collapse-source'));if(target!==undefined&&source!==undefined){if($(this).hasClass('active')){active=true;}
if(active){my_collapse(target,source,100,300);}
$(this).click(function(){if(screen.width>=768){$("[role=collapse]",parent).removeClass('active');$(this).addClass('active');my_collapse(target,source,100,300);return false;}});}});})(jQuery);(function($){$('.ga_tracking').each(function(){$(this).bind('click',function(){var _content=($(this).attr('data-tracking')!==undefined?$(this).attr('data-tracking'):$(this).attr('href'));if(_content!==undefined){if(typeof(_gaq)!="undefined"){_gaq.push(['_trackPageview',_content]);}
else if(typeof(ga)!="undefined"){ga('send','pageview',_content);}}});});})(jQuery);(function($){if($('.top-banner').length>0){var banners=$('.top-banner');var sec=banners.length;var cookie=Number(getCookie('cookiebanners'));if(cookie===null||cookie===sec||cookie>sec){cookie=0;}
var index=cookie;var cur=index+1;setCookie('cookiebanners',cur);if(banners[index]!==undefined){$(banners[index]).css('display','block').removeClass('hidden');}}})(jQuery);(function(){function openNewTab(uri){var target=document.createElement("a");target.href=uri;target.target='_blank';document.body.appendChild(target);target.click();target.remove();}
$("a[role=ajax_call]").bind('click',function(){var type=$(this).data('type');var uri=$(this).attr('href');if(type){switch(type){case"setapp":var _this=$(this);var cookie=getCookie('setappTocken');uri=uri+'?stc=beta&stt=';if(cookie!==null){uri+=cookie;$(this).attr('href',uri);return true;}
else{$.ajax({type:"POST",url:"/jcontroller/index.php",data:'ajaxmethod=setappTocken',dataType:'json',success:function(response){if(response){setCookie('setappTocken',response);uri+=response;window.location.href=uri;}}});}
break;}}
return false;});})();(function($){$('.false-link').each(function(){var $this=$(this);var href=$this.attr('data-href')!==undefined?String($this.attr('data-href')):null;var target=$this.data('target')!==undefined?String($this.data('target')):null;if(href){$this.click(function(){openNewURLInTheSameWindow(href,target);});}});var fireClickEvent=function(element){var evt;if(document.createEvent){evt=document.createEvent("MouseEvents");evt.initEvent("click",true,true);element.dispatchEvent(evt);}else{evt=new window.MouseEvent('click',{view:window,bubbles:true,cancelable:true});element.dispatchEvent(evt);}};var openNewURLInTheSameWindow=function(targetURL,targetWindow){var a=document.createElement('a');if(targetWindow!==null){a.target=targetWindow;}
a.href=targetURL;fireClickEvent(a);};})(jQuery);(function($){$('a[role="utm"]').filter(function(){return($(this).attr('notrack')===undefined);}).bind('click',function(){var utm_medium=($(this).attr('data-utm-medium'))?$(this).attr('data-utm-medium'):null;var utm_source=($(this).attr('data-utm-source'))?$(this).attr('data-utm-source'):null;var utm_campaign=($(this).attr('data-utm-campaign'))?$(this).attr('data-utm-campaign'):null;var utm_content=($(this).attr('data-utm-content'))?$(this).attr('data-utm-content'):'click_'+$(this).index();if(utm_medium&&utm_source&&utm_campaign){if(typeof(_gaq)!="undefined"){_gaq.push(['_set','campaignParams','utm_campaign='+utm_campaign+'&utm_source='+utm_source+'&utm_medium='+utm_medium+'&utm_content='+utm_content]);}else if(typeof(ga)!="undefined"){console.log('it should be ga function here...');}}});})(jQuery);(function(){function isWin64Os(){return(navigator.userAgent.indexOf("WOW64")!=-1||navigator.userAgent.indexOf("Win64")!=-1);}
function isWin32Os(){return(navigator.userAgent.indexOf("Win32")!=-1||navigator.platform.indexOf("Win32")!=-1);}
var isPlatform=function(plathorm){var os=false;plathorm=plathorm||navigator.platform;if(/Pocket PC|Windows|Win16|WinCE|Win32|Win64/i.test(plathorm)){os='win';}
if(/Mac|Macintel|Macintosh|MacIntel|MacPPC|Mac68K/i.test(plathorm)){os='mac';}
if(/iPhone|iPod|iPad|iPhone Simulato|iPod Simulator|iPad Simulator|Pike v7.6 release 92|Pike v7.8 release 517/i.test(plathorm)){os='ios';}
if(/FreeBSD|Linux/i.test(plathorm)){os='linux';}
if(/Android/i.test(plathorm)){os='android';}
if(isWin32Os()){os='win32';}
if(isWin64Os()){os='win64';}
return os;}
if(typeof(checkUa)!=="function"){var checkUa=function(){var os=isPlatform(navigator.userAgent);if(os){$('[class*="uavisible_"]').addClass('hidden');$('.uavisible_'+os).removeClass('hidden');$('[class*="uahidden_"]').addClass('hidden');$("[class*='uahidden_"+os+"']").remove();$('[class*="uahidden_"]').removeClass('hidden');$('img.uareplace').attr('src',function(){var src=$(this).data('src-'+os);if(src&&src!==''){return src;}else{return $(this).attr('src');}});$('a.uareplace').attr('href',function(){if((typeof $(this).attr('data-href-'+os)===typeof undefined||$(this).attr('data-href-'+os)===false)&&(os==='win32'||os==='win64')){os='win';}
var href=$(this).attr('data-href-'+os);var tracking=$(this).attr('data-tracking-'+os);if(href&&href!==''){$(this).attr('href',href);}
if(tracking&&tracking!==''){$(this).attr('data-tracking',tracking);}});}}}
checkUa();if(typeof(checkOs)!=="function"){var checkOs=function(){var os=isPlatform();if(os){$('[class*="osvisible_"]').addClass('hidden');$('.osvisible_'+os).removeClass('hidden');$('img.osreplace').attr('src',function(){var src=$(this).data('src-'+os);if(src&&src!==''){return src;}else{return $(this).attr('src');}});$('a.osreplace').attr('href',function(){var href=$(this).attr('data-href-'+os);if(href&&href!==''){return href;}else{return $(this).attr('href');}});}}}
checkOs();if(typeof(toggleOS)!=="function"){var toggleOS=function(){var os=isPlatform();var success=false;var blocks=$('[role="toggleOS"]');if(blocks.length>0){blocks.each(function(){if($(this).attr('data-platform')==os){success=true;$(this).show();}});}
if(!success){var block=$('[role="toggleOS"]:first-child');if(block.length>0){block.show();}}}}
toggleOS();})();$('#flags').bind('change',function(){if(this.value)
window.location.href=this.value;});(function(){var os=$.getOS();$('[role="downloads"]').each(function(){var link=null;var download_link=null;var auto_loading=$(this).attr('data-autoload')!==undefined?$(this).attr('data-autoload'):false;var main_link=$('.main-link',$(this));var platforms=$('[data-toggle="platform"]',$(this));platforms.each(function(){var platform=$(this).attr('data-platform');if(platform=='pc'){platform='win';}
if(os.indexOf(platform)!=-1){link=$('.btn-link',$(this));$(this).hide();}});if(main_link&&link){download_link=link.attr('href');main_link.attr('href',download_link);}else if(main_link){download_link=main_link.attr('href');}
if(download_link){if(download_link.indexOf('http')==-1&&auto_loading){setTimeout(function(){window.location='//mac.eltima.com'+download_link;},2500);}}});})();});if(document.addEventListener){document.addEventListener('DOMContentLoaded',function(){var pixelRatio=!!window.devicePixelRatio?window.devicePixelRatio:1;var elements=document.querySelectorAll(".image2x[style*=background-image]");if(pixelRatio>1){for(var i=0;i1){for(var i=0;i0){$(".slider-reviews").owlCarousel({loop:false,rewind:true,autoplay:true,autoplayTimeout:12000,margin:15,nav:true,dots:false,navText:['',''],autoWidth:true,responsive:{0:{items:1},600:{items:3,margin:30},1750:{items:4,margin:30}},onInitialized:startProgressBar,onTranslate:resetProgressBar,onTranslated:startProgressBar,});function startProgressBar(){$(".review-progress").css({width:"100%",transition:"width 12000ms"});}
function resetProgressBar(){$(".review-progress").css({width:0,transition:"width 0s"});}
function progressBar(elem){$elem=elem;buildProgressBar();start();}}});;(function($){$.extend($.easing,{spincrementEasing:function(x,t,b,c,d){return(t===d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b}})
$.fn.spincrement=function(opts){var defaults={from:0,to:null,decimalPlaces:null,decimalPoint:'.',thousandSeparator:',',duration:1000,leeway:50,easing:'spincrementEasing',fade:true,complete:null}
var options=$.extend(defaults,opts)
var re_thouSep=new RegExp(/^(-?[0-9]+)([0-9]{3})/)
function format(num,dp){num=num.toFixed(dp)
if((dp>0)&&(options.decimalPoint!=='.')){num=num.replace('.',options.decimalPoint)}
if(options.thousandSeparator){while(re_thouSep.test(num)){num=num.replace(re_thouSep,'$1'+options.thousandSeparator+'$2')}}
return num}
return this.each(function(){var obj=$(this)
var from=options.from
if(obj.attr('data-from')){from=parseFloat(obj.attr('data-from'))}
var to
if(obj.attr('data-to')){to=parseFloat(obj.attr('data-to'))}else if(options.to!==null){to=options.to}else{var ts=$.inArray(options.thousandSeparator,['\\','^','$','*','+','?','.'])>-1?'\\'+options.thousandSeparator:options.thousandSeparator
var re=new RegExp(ts,'g')
to=parseFloat(obj.text().replace(re,''))}
var duration=options.duration
if(options.leeway){duration+=Math.round(options.duration*((Math.random()*2)-1)*options.leeway/100)}
var dp
if(obj.attr('data-dp')){dp=parseInt(obj.attr('data-dp'),10)}else if(options.decimalPlaces!==null){dp=options.decimalPlaces}else{var ix=obj.text().indexOf(options.decimalPoint)
dp=(ix>-1)?obj.text().length-(ix+1):0}
obj.css('counter',from)
if(options.fade)obj.css('opacity',0)
obj.animate({counter:to,opacity:1},{easing:options.easing,duration:duration,step:function(progress){obj.html(format(progress*to,dp))},complete:function(){obj.css('counter',null)
obj.html(format(to,dp))
if(options.complete){options.complete(obj)}}})})}})(jQuery);$(document).ready(function(){if($.fn.spincrement!==undefined){var countbox=".spincrement";setValue=function(el){el.html(el.data('value'));}
$(window).on("scroll load resize",function(){var w_top=$(window).scrollTop();var w_height=$(window).height();var d_height=$(document).height();$(countbox).each(function(){var e_top=$(this).offset().top;var e_height=$(this).outerHeight();if(w_top+w_height-100>=e_top||w_height+w_top==d_height||e_height+e_top0){wrap_navbar.addClass("wrap-collapse-navbar");}
$("#collapse-navbar-main").each(function(){var navbar=$(this);var navbar_inner=$(".collapse-navbar-inner",this);$("a[data-target]",$(this)).each(function(){var link=$(this);var CollapseBlock=$(link.attr("data-target")).detach().removeClass("hidden");navbar_inner.append(CollapseBlock);});$("a[data-target]",$(this)).bind("click",function(){var link=$(this);var CollapseBlock=$(link.attr("data-target"));if(CollapseBlock.hasClass("active")){CollapseBlock.removeClass("active");}else{$(".dropdown-menu-child").removeClass("active");CollapseBlock.addClass("active");}
if(link.hasClass("active")){link.removeClass("active");}else{$("a[data-target]").removeClass("active");link.addClass("active");}
return false;});});$(document).on("click",function(e){var el=".dropdown-menu-child";if($(e.target).closest(el).length)return;$(".dropdown-menu-child").removeClass("active");$("a[data-target]").removeClass("active");});})(jQuery);$(document).on("click.bs.dropdown.data-api",".nav-tabs__item > a",function(e){e.stopPropagation();});$(".navbar-toggle").on("click",function(e){var expanded=$(".navbar-collapse").attr("aria-expanded")=="true"?false:true;if(expanded){$("body").bind("touchmove",function(e){e.preventDefault();});$("body").addClass("stop-scrolling");}else{$("body").unbind("touchmove");$("body").removeClass("stop-scrolling");}});$("a.dropdown-toggle",$(this)).bind("click",function(e){e.preventDefault();$(this).closest("li").toggleClass("open");if($(this).hasClass("active")){$("html").addClass("nav-open");}else{$("html").removeClass("nav-open");}
if($(".dropup").hasClass("open")){$(".dropup").removeClass("open");}});$(".bg-overlay").on("click",function(){$("html").removeClass("nav-open");});$(".nav-bar-inner-line").on("click",function(e){if(!$(e.target).hasClass("cboxElement")){e.stopPropagation();}});$("#collapse-navbar-mobile .right-content-list").each(function(){var lengthLi=$(this).children('li');var parentLi=$(this).parents('.dropdown-right-content');if(!lengthLi.length){parentLi.addClass('hidden-md hidden-sm hidden-xs');}})
$('.language-item .dropdown-toggle').dropdown();if($('.slide-top-active').length>0||$('.header-brand').length>0){$('body').addClass('sticky-header-mob');}});$(window).scroll(function(){if($(this).scrollTop()>=75&&$(this).scrollTop()<=$('#footer').offset().top-80){$('#collapse-navbar-main').closest('.wrap').addClass('scrolled');}else{$('#collapse-navbar-main').closest('.wrap').removeClass('scrolled');}});$(document).ready(function(){if($('.product-tabs-sec').length>0){$('.product-tabs-sec .collapse-tabs').on('show.bs.collapse',function(){$(this).parent().addClass('open');});$('.product-tabs-sec .collapse-tabs').on('hide.bs.collapse',function(){$(this).parent().removeClass('open');});}});$(document).ready(function(){(function($){$('a[data-toggle="collapse"]').click(function(){var glyphicon=$(".glyphicon",$(this));var expanded=($(this).attr('aria-expanded')=="true")?false:true;var data_parent=$($(this).attr('data-parent'));data_parent.find(".glyphicon").removeClass("up").addClass("down");if(expanded){glyphicon.removeClass("down").addClass("up");}else{glyphicon.removeClass("up").addClass("down");}});})(jQuery);});;var startWidth;$(window).on("load",function(){startWidth=$(window).width();})
$(window).on('resize',function(){clearTimeout(window.resizedFinished);window.resizedFinished=setTimeout(function(){var endWidth=$(window).width();if($(window).width()<=991){pause=true;startWidth=$(window).width();}else{pause=false;}
if(startWidth<991&&endWidth>992){location.reload();}},500);});const off=30;let l=off;const marqueeElements=Array.from(document.querySelectorAll('.items-reviews .reviews-item'));const speed=.5;const stack=[];let pause=false;marqueeElements.forEach(element=>{const width=element.offsetWidth+off;element.style.left=`${l}px`;l+=width;stack.push(element);});function moveMarquee(){if(!pause){marqueeElements.forEach(element=>{const currentLeft=parseFloat(getComputedStyle(element).left);const newLeft=currentLeft-speed;element.style.left=`${newLeft}px`;if(newLeft+element.offsetWidth<-130){const firstElement=stack.shift();const lastElement=stack[stack.length-1];element.style.left=`${parseFloat(getComputedStyle(lastElement).left)+lastElement.offsetWidth+off}px`;stack.push(element);}});}
requestAnimationFrame(moveMarquee);}
requestAnimationFrame(moveMarquee);const marqueeContainer=document.querySelector('.items-reviews');marqueeContainer.addEventListener('mouseover',()=>{pause=true;});marqueeContainer.addEventListener('mouseout',()=>{pause=false;});;$(document).ready(function(){var WrFoo=$('footer').parents('.wrap').addClass('footer-wrap');$(WrFoo).appendTo($('body'));$('.footer-collapse .toggle-link').bind('click',function(){var expanded=($(this).attr('aria-expanded')=="true")?false:true;var panel_heading=$(this).parents('.panel-heading');var data_parent=$($(this).attr('data-parent'));data_parent.find('.panel-heading').removeClass('actived');if(expanded){panel_heading.addClass('actived');}else{panel_heading.removeClass('actived');}});});
/*! lozad.js - v1.14.0 - 2019-10-31
 * https://github.com/ApoorvSaxena/lozad.js
 * Copyright (c) 2019 Apoorv Saxena; Licensed MIT */
(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?(module.exports=factory()):typeof define==='function'&&define.amd?define(factory):(global.lozad=factory());})(this,function(){'use strict';var isIE=typeof document!=='undefined'&&document.documentMode;var defaultConfig={rootMargin:'0px',threshold:0,load:function load(element){if(element.nodeName.toLowerCase()==='picture'){var img=document.createElement('img');if(isIE&&element.getAttribute('data-iesrc')){img.src=element.getAttribute('data-iesrc');}
if(element.getAttribute('data-alt')){img.alt=element.getAttribute('data-alt');}
element.append(img);}
if(element.nodeName.toLowerCase()==='video'&&!element.getAttribute('data-src')){if(element.children){var childs=element.children;var childSrc=void 0;for(var i=0;i<=childs.length-1;i++){childSrc=childs[i].getAttribute('data-src');if(childSrc){childs[i].src=childSrc;}}
element.load();}}
if(element.getAttribute('data-poster')){element.poster=element.getAttribute('data-poster');}
if(element.getAttribute('data-src')){element.src=element.getAttribute('data-src');}
if(element.getAttribute('data-srcset')){element.setAttribute('srcset',element.getAttribute('data-srcset'));}
if(element.getAttribute('data-background-image')){element.style.backgroundImage="url('"+
element.getAttribute('data-background-image').split(',').join("'),url('")+"')";}else if(element.getAttribute('data-background-image-set')){var imageSetLinks=element.getAttribute('data-background-image-set').split(',');var firstUrlLink=imageSetLinks[0].substr(0,imageSetLinks[0].indexOf(' '))||imageSetLinks[0];firstUrlLink=firstUrlLink.indexOf('url(')===-1?'url('+firstUrlLink+')':firstUrlLink;if(imageSetLinks.length===1){element.style.backgroundImage=firstUrlLink;}else{element.setAttribute('style',(element.getAttribute('style')||'')+
('background-image: '+
firstUrlLink+'; background-image: -webkit-image-set('+
imageSetLinks+'); background-image: image-set('+
imageSetLinks+')'));}}
if(element.getAttribute('data-toggle-class')){element.classList.toggle(element.getAttribute('data-toggle-class'));}
if(element.nodeName.toLowerCase()==='div'&&element.getAttribute('data-original_content')){var tmpDom=new DOMParser().parseFromString(window.atob(element.getAttribute('data-original_content')),'text/html');element.replaceWith(tmpDom.body.firstElementChild);}},loaded:function loaded(){},};function markAsLoaded(element){element.setAttribute('data-loaded',true);}
var isLoaded=function isLoaded(element){return element.getAttribute('data-loaded')==='true';};var onIntersection=function onIntersection(load,loaded){return function(entries,observer){entries.forEach(function(entry){if(entry.intersectionRatio>0||entry.isIntersecting){observer.unobserve(entry.target);if(!isLoaded(entry.target)){load(entry.target);markAsLoaded(entry.target);loaded(entry.target);}}});};};var getElements=function getElements(selector){var root=arguments.length>1&&arguments[1]!==undefined?arguments[1]:document;if(selector instanceof Element){return[selector];}
if(selector instanceof NodeList){return selector;}
return root.querySelectorAll(selector);};function lozad(){var selector=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'.lozad';var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _Object$assign=Object.assign({},defaultConfig,options),root=_Object$assign.root,rootMargin=_Object$assign.rootMargin,threshold=_Object$assign.threshold,load=_Object$assign.load,loaded=_Object$assign.loaded;var observer=void 0;if(typeof window!=='undefined'&&window.IntersectionObserver){observer=new IntersectionObserver(onIntersection(load,loaded),{root:root,rootMargin:rootMargin,threshold:threshold,});}
return{observe:function observe(){var elements=getElements(selector,root);for(var i=0;i