Your IP : 216.73.216.46


Current Path : /home/megadansyp/www/t3-assets/js/
Upload File :
Current File : /home/megadansyp/www/t3-assets/js/js-b27d6-70719.js


/*===============================
/plugins/system/t3/base-bs3/js/jquery.tap.min.js
================================================================================*/;
!function(a,b){"use strict";var c,d,e,f="._tap",g="._tapActive",h="tap",i="clientX clientY screenX screenY pageX pageY".split(" "),j={count:0,event:0},k=function(a,c){var d=c.originalEvent,e=b.Event(d);e.type=a;for(var f=0,g=i.length;g>f;f++)e[i[f]]=c[i[f]];return e},l=function(a){if(a.isTrigger)return!1;var c=j.event,d=Math.abs(a.pageX-c.pageX),e=Math.abs(a.pageY-c.pageY),f=Math.max(d,e);return a.timeStamp-c.timeStamp<b.tap.TIME_DELTA&&f<b.tap.POSITION_DELTA&&(!c.touches||1===j.count)&&o.isTracking},m=function(a){if(!e)return!1;var c=Math.abs(a.pageX-e.pageX),d=Math.abs(a.pageY-e.pageY),f=Math.max(c,d);return Math.abs(a.timeStamp-e.timeStamp)<750&&f<b.tap.POSITION_DELTA},n=function(a){if(0===a.type.indexOf("touch")){a.touches=a.originalEvent.changedTouches;for(var b=a.touches[0],c=0,d=i.length;d>c;c++)a[i[c]]=b[i[c]]}a.timeStamp=Date.now?Date.now():+new Date},o={isEnabled:!1,isTracking:!1,enable:function(){o.isEnabled||(o.isEnabled=!0,c=b(a.body).on("touchstart"+f,o.onStart).on("mousedown"+f,o.onStart).on("click"+f,o.onClick))},disable:function(){o.isEnabled&&(o.isEnabled=!1,c.off(f))},onStart:function(a){a.isTrigger||(n(a),(!b.tap.LEFT_BUTTON_ONLY||a.touches||1===a.which)&&(a.touches&&(j.count=a.touches.length),o.isTracking||(a.touches||!m(a))&&(o.isTracking=!0,j.event=a,a.touches?(e=a,c.on("touchend"+f+g,o.onEnd).on("touchcancel"+f+g,o.onCancel)):c.on("mouseup"+f+g,o.onEnd))))},onEnd:function(a){var c;a.isTrigger||(n(a),l(a)&&(c=k(h,a),d=c,b(j.event.target).trigger(c)),o.onCancel(a))},onCancel:function(a){a&&"touchcancel"===a.type&&a.preventDefault(),o.isTracking=!1,c.off(g)},onClick:function(a){return!a.isTrigger&&d&&d.isDefaultPrevented()&&d.target===a.target&&d.pageX===a.pageX&&d.pageY===a.pageY&&a.timeStamp-d.timeStamp<750?(d=null,!1):void 0}};b(a).ready(o.enable),b.tap={POSITION_DELTA:10,TIME_DELTA:400,LEFT_BUTTON_ONLY:!0}}(document,jQuery);


/*===============================
/plugins/system/t3/base-bs3/js/off-canvas.js
================================================================================*/;
jQuery(document).ready(function($){function getAndroidVersion(ua){var ua=ua||navigator.userAgent;var match=ua.match(/Android\s([0-9\.]*)/);return match?match[1]:false;};if(parseInt(getAndroidVersion())==4){$('#t3-mainnav').addClass('t3-mainnav-android');}
var JA_isLoading=false;if(/MSIE\s([\d.]+)/.test(navigator.userAgent)?new Number(RegExp.$1)<10:false){$('html').addClass('old-ie');}else if(/constructor/i.test(window.HTMLElement)){$('html').addClass('safari');}
var $wrapper=$('body'),$inner=$('.t3-wrapper'),$toggles=$('.off-canvas-toggle'),$offcanvas=$('.t3-off-canvas'),$close=$('.t3-off-canvas .close'),$btn=null,$nav=null,direction='left',$fixed=null;if(!$wrapper.length)return;$toggles.each(function(){var $this=$(this),$nav=$($this.data('nav')),effect=$this.data('effect'),direction=($('html').attr('dir')=='rtl'&&$this.data('pos')!='right')||($('html').attr('dir')!='rtl'&&$this.data('pos')=='right')?'right':'left';$nav.addClass(effect).addClass('off-canvas-'+direction);var inside_effect=['off-canvas-effect-3','off-canvas-effect-16','off-canvas-effect-7','off-canvas-effect-8','off-canvas-effect-14'];if($.inArray(effect,inside_effect)==-1){$inner.before($nav);}else{$inner.prepend($nav);}});$toggles.on('tap',function(e){stopBubble(e);if($wrapper.hasClass('off-canvas-open')){oc_hide(e);return false;}
$btn=$(this);$nav=$($btn.data('nav'));if(!$fixed)$fixed=$inner.find('*').filter(function(){return $(this).css("position")==='fixed';});else $fixed=$fixed.filter(function(){return $(this).css("position")==='fixed';}).add($inner.find('.affix'));$nav.addClass('off-canvas-current');direction=($('html').attr('dir')=='rtl'&&$btn.data('pos')!='right')||($('html').attr('dir')!='rtl'&&$btn.data('pos')=='right')?'right':'left';$offcanvas.height($(window).height());var events=$(window).data('events');if(events&&events.scroll&&events.scroll.length){var handlers=[];for(var i=0;i<events.scroll.length;i++){handlers[i]=events.scroll[i].handler;}
$(window).data('scroll-events',handlers);$(window).off('scroll');}
var scrollTop=($('html').scrollTop())?$('html').scrollTop():$('body').scrollTop();$('html').addClass('noscroll').css('top',-scrollTop).data('top',scrollTop);$('.t3-off-canvas').css('top',scrollTop);$fixed.each(function(){var $this=$(this),$parent=$this.parent(),mtop=0;while(!$parent.is($inner)&&$parent.css("position")==='static')$parent=$parent.parent();mtop=-$parent.offset().top;$this.css({'position':'absolute','margin-top':mtop});});$wrapper.scrollTop(scrollTop);$wrapper[0].className=$.trim($wrapper[0].className.replace(/\s*off\-canvas\-effect\-\d+\s*/g,' '))+' '+$btn.data('effect')+' '+'off-canvas-'+direction;setTimeout(oc_show,50);return false;});var oc_show=function(){if(JA_isLoading==true){return;}
JA_isLoading=true;$wrapper.addClass('off-canvas-open');$inner.on('click',oc_hide);$close.on('click',oc_hide);$offcanvas.on('click',handleClick);if($.browser.msie&&$.browser.version<10){var p1={},p2={};p1['padding-'+direction]=$('.t3-off-canvas').width();p2[direction]=0;$inner.animate(p1);$nav.animate(p2);}
setTimeout(function(){JA_isLoading=false;},200);};var oc_hide=function(){if(JA_isLoading==true){return;}
JA_isLoading=true;$inner.off('click',oc_hide);$close.off('click',oc_hide);$offcanvas.off('click',handleClick);setTimeout(function(){$wrapper.removeClass('off-canvas-open');},100);setTimeout(function(){$wrapper.removeClass($btn.data('effect')).removeClass('off-canvas-'+direction);$wrapper.scrollTop(0);$('html').removeClass('noscroll').css('top','');$('html,body').scrollTop($('html').data('top'));$nav.removeClass('off-canvas-current');$fixed.css({'position':'','margin-top':''});if($(window).data('scroll-events')){var handlers=$(window).data('scroll-events');for(var i=0;i<handlers.length;i++){$(window).on('scroll',handlers[i]);}
$(window).data('scroll-events',null);}
JA_isLoading=false;},700);if($('html').hasClass('old-ie')){var p1={},p2={};p1['padding-'+direction]=0;p2[direction]=-$('.t3-off-canvas').width();$inner.animate(p1);$nav.animate(p2);}};var handleClick=function(e){if($(e.target).closest('a').length){if(!e.target.href)return;var arr1=e.target.href.split('#'),arr2=location.href.split('#');if(arr1[0]==arr2[0]&&arr1.length>1&&arr1[1].length){oc_hide();setTimeout(function(){var anchor=$("a[name='"+arr1[1]+"']");if(!anchor.length)anchor=$('#'+arr1[1]);if(anchor.length)
$('html,body').animate({scrollTop:anchor.offset().top},'slow');},1000);}
if(e.target.href.search('#')!==-1)return;}
stopBubble(e);return true;}
var stopBubble=function(e){e.stopPropagation();}
$(window).on('load',function(){setTimeout(function(){$fixed=$inner.find('*').filter(function(){return $(this).css("position")==='fixed';});},100);});})


/*===============================
/plugins/system/t3/base-bs3/js/script.js
================================================================================*/;
!function($){if($.browser==undefined||$.browser.msie==undefined){$.browser={msie:false,version:0};if(match=navigator.userAgent.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/)||navigator.userAgent.match(/Trident.*rv:([0-9]{1,}[\.0-9]{0,})/)){$.browser.msie=true;$.browser.version=match[1];}}
if($.browser.msie){$('html').addClass('ie'+Math.floor($.browser.version));}
$(document).ready(function(){if(!window.getComputedStyle){window.getComputedStyle=function(el,pseudo){this.el=el;this.getPropertyValue=function(prop){var re=/(\-([a-z]){1})/g;if(prop=='float')prop='styleFloat';if(re.test(prop)){prop=prop.replace(re,function(){return arguments[2].toUpperCase();});}
return el.currentStyle[prop]?el.currentStyle[prop]:null;}
return this;}}
var fromClass='body-data-holder',prop='content',$inspector=$('<div>').css('display','none').addClass(fromClass).appendTo($('body'));try{var computedStyle=window.getComputedStyle($inspector[0],':before');if(computedStyle){var attrs=computedStyle.getPropertyValue(prop);if(attrs){var matches=attrs.match(/([\da-z\-]+)/gi),data={};if(matches&&matches.length){for(var i=0;i<matches.length;i++){data[matches[i++]]=i<matches.length?matches[i]:null;}}
$('body').data(data);}}}finally{$inspector.remove();}});(function(){$.support.t3transform=(function(){var style=document.createElement('div').style,vendors=['t','webkitT','MozT','msT','OT'],transform,i=0,l=vendors.length;for(;i<l;i++){transform=vendors[i]+'ransform';if(transform in style){return transform;}}
return false;})();})();(function(){$('html').addClass('ontouchstart'in window?'touch':'no-touch');})();$(document).ready(function(){(function(){if(window.MooTools&&window.MooTools.More&&Element&&Element.implement){var mthide=Element.prototype.hide,mtshow=Element.prototype.show,mtslide=Element.prototype.slide;Element.implement({show:function(args){if(arguments.callee&&arguments.callee.caller&&arguments.callee.caller.toString().indexOf('isPropagationStopped')!==-1){return this;}
return $.isFunction(mtshow)&&mtshow.apply(this,args);},hide:function(){if(arguments.callee&&arguments.callee.caller&&arguments.callee.caller.toString().indexOf('isPropagationStopped')!==-1){return this;}
return $.isFunction(mthide)&&mthide.apply(this,arguments);},slide:function(args){if(arguments.callee&&arguments.callee.caller&&arguments.callee.caller.toString().indexOf('isPropagationStopped')!==-1){return this;}
return $.isFunction(mtslide)&&mtslide.apply(this,args);}})}})();$.fn.tooltip.Constructor&&$.fn.tooltip.Constructor.DEFAULTS&&($.fn.tooltip.Constructor.DEFAULTS.html=true);$.fn.popover.Constructor&&$.fn.popover.Constructor.DEFAULTS&&($.fn.popover.Constructor.DEFAULTS.html=true);$.fn.tooltip.defaults&&($.fn.tooltip.defaults.html=true);$.fn.popover.defaults&&($.fn.popover.defaults.html=true);(function(){if(window.jomsQuery&&jomsQuery.fn.collapse){$('[data-toggle="collapse"]').on('click',function(e){$($(this).attr('data-target')).eq(0).collapse('toggle');e.stopPropagation();return false;});jomsQuery('html, body').off('touchstart.dropdown.data-api');}})();(function(){if($.fn.chosen&&$(document.documentElement).attr('dir')=='rtl'){$('select').addClass('chzn-rtl');}})();});$(window).on('load',function(){if(!$(document.documentElement).hasClass('off-canvas-ready')&&($('.navbar-collapse-fixed-top').length||$('.navbar-collapse-fixed-bottom').length)){var btn=$('.btn-navbar[data-toggle="collapse"]');if(!btn.length){return;}
if(btn.data('target')){var nav=$(btn.data('target'));if(!nav.length){return;}
var fixedtop=nav.closest('.navbar-collapse-fixed-top').length;btn.on('click',function(){var wheight=(window.innerHeight||$(window).height());if(!$.support.transition){nav.parent().css('height',!btn.hasClass('collapsed')&&btn.data('t3-clicked')?'':wheight);btn.data('t3-clicked',1);}
nav.addClass('animate').css('max-height',wheight-
(fixedtop?(parseFloat(nav.css('top'))||0):(parseFloat(nav.css('bottom'))||0)));});nav.on('shown hidden',function(){nav.removeClass('animate');});}}});}(jQuery);


/*===============================
/plugins/system/t3/base-bs3/js/menu.js
================================================================================*/;
;(function($){var T3Menu=function(elm,options){this.$menu=$(elm);if(!this.$menu.length){return;}
this.options=$.extend({},$.fn.t3menu.defaults,options);this.child_open=[];this.loaded=false;this.start();};T3Menu.prototype={constructor:T3Menu,start:function(){if(this.loaded){return;}
this.loaded=true;var self=this,options=this.options,$menu=this.$menu;this.$items=$menu.find('li');this.$items.each(function(idx,li){var $item=$(this),$child=$item.children('.dropdown-menu'),$link=$item.children('a'),item={$item:$item,child:$child.length,link:$link.length,clickable:!($link.length&&$child.length),mega:$item.hasClass('mega'),status:'close',timer:null,atimer:null};$item.data('t3menu.item',item);if($child.length&&!options.hover){$item.on('click',function(e){e.stopPropagation();if($item.hasClass('group')){return;}
if(item.status=='close'){e.preventDefault();self.show(item);}});}else{$item.on('click',function(e){if($(e.target).data('toggle'))return;e.stopPropagation()});}
$item.find('a > .caret').on('click tap',function(e){item.clickable=false;});if(options.hover){$item.on('mouseover',function(e){if($item.hasClass('group'))
return;var $target=$(e.target);if($target.data('show-processed'))
return;$target.data('show-processed',true);setTimeout(function(){$target.data('show-processed',false);},10);self.show(item);}).on('mouseleave',function(e){if($item.hasClass('group'))
return;var $target=$(e.target);if($target.data('hide-processed'))
return;$target.data('hide-processed',true);setTimeout(function(){$target.data('hide-processed',false);},10);self.hide(item,$target);});if($link.length&&$child.length){$link.on('click',function(e){if(item.clickable){e.stopPropagation();}
return item.clickable;});}}});$(document.body).on('tap hideall.t3menu',function(e){clearTimeout(self.timer);self.timer=setTimeout($.proxy(self.hide_alls,self),e.type=='tap'?500:self.options.hidedelay);});$menu.find('.mega-dropdown-menu').on('hideall.t3menu',function(e){e.stopPropagation();e.preventDefault();return false;});$menu.find('input, select, textarea, label').on('click tap',function(e){e.stopPropagation();});var $megatab=$menu.find('.mega-tab');if($megatab.length){$megatab.each(function(){var $tabul=$(this).find('>div>ul'),$tabItems=$tabul.children('.dropdown-submenu'),$tabs=$tabul.find('>li>.dropdown-menu'),tabheight=0,$parentItem=$(this).closest('li');$tabItems.data('mega-tab-item',1);var megatabs=$parentItem.data('mega-tabs')?$parentItem.data('mega-tabs'):[];megatabs.push($tabul);$parentItem.data('mega-tabs',megatabs);$tabItems.first().data('mega-tab-active',true).addClass('open');var $p=$tabul.parents('.dropdown-menu');$p.each(function(){var $this=$(this);$this.data('prev-style',$this.attr('style')).css({visibility:"visible",display:"block"});})
$tabs.each(function(){var $this=$(this),thisstyle=$this.attr('style');$this.css({visibility:"hidden",display:"block"});tabheight=Math.max(tabheight,$this.children().innerHeight());if(thisstyle){$this.attr('style',thisstyle);}else{$this.removeAttr('style');}});$tabul.css('min-height',tabheight);$p.each(function(){var $this=$(this);if($this.data('prev-style'))
$this.attr('style',$this.data('prev-style'));else
$this.removeAttr('style');$this.removeData('prev-style');})})}
$menu.find('.modal').appendTo('body');},show:function(item){if(item.$item.data('mega-tab-item')){item.$item.parent().children().removeClass('open').data('mega-tab-active',false);item.$item.addClass('open').data('mega-tab-active',true);}
if($.inArray(item,this.child_open)<this.child_open.length-1){this.hide_others(item);}
$(document.body).trigger('hideall.t3menu',[this]);clearTimeout(this.timer);clearTimeout(item.timer);clearTimeout(item.ftimer);clearTimeout(item.ctimer);if(item.status!='open'||!item.$item.hasClass('open')||!this.child_open.length){if(item.mega){clearTimeout(item.astimer);clearTimeout(item.atimer);this.position(item.$item);item.astimer=setTimeout(function(){item.$item.addClass('animating')},10);item.atimer=setTimeout(function(){item.$item.removeClass('animating')},this.options.duration+50);item.timer=setTimeout(function(){item.$item.addClass('open');},100);}else{item.$item.addClass('open');}
item.status='open';if(item.child&&$.inArray(item,this.child_open)==-1){this.child_open.push(item);}}
item.ctimer=setTimeout($.proxy(this.clickable,this,item),300);},hide:function(item,$target){clearTimeout(this.timer);clearTimeout(item.timer);clearTimeout(item.astimer);clearTimeout(item.atimer);clearTimeout(item.ftimer);if($target&&$target.is('input',item.$item)){return;}
if(item.mega){item.$item.addClass('animating');item.atimer=setTimeout(function(){item.$item.removeClass('animating')},this.options.duration);item.timer=setTimeout(function(){if(!item.$item.data('mega-tab-active'))
item.$item.removeClass('open')},100);}else{item.timer=setTimeout(function(){if(!item.$item.data('mega-tab-active'))
item.$item.removeClass('open');},100);}
item.status='close';for(var i=this.child_open.length;i--;){if(this.child_open[i]===item){this.child_open.splice(i,1);}}
item.ftimer=setTimeout($.proxy(this.hidden,this,item),this.options.duration);this.timer=setTimeout($.proxy(this.hide_alls,this),this.options.hidedelay);},hidden:function(item){if(item.status=='close'){item.clickable=false;}},hide_others:function(item){var self=this;$.each(this.child_open.slice(),function(idx,open){if(!item||(open!=item&&!open.$item.has(item.$item).length)){self.hide(open);}});},hide_alls:function(e,inst){if(!e||e.type=='tap'||(e.type=='hideall'&&this!=inst)){var self=this;$.each(this.child_open.slice(),function(idx,item){item&&self.hide(item);});}},clickable:function(item){item.clickable=true;},position:function($item){var sub=$item.children('.mega-dropdown-menu'),is_show=sub.is(':visible');if(!is_show){sub.show();}
var offset=$item.offset(),width=$item.outerWidth(),screen_width=$(window).width()
-this.options.sb_width,sub_width=sub.outerWidth(),level=$item.data('level');if(!is_show){sub.css('display','');}
sub.css({left:'',right:''});if(level==1){var align=$item.data('alignsub'),align_offset=0,align_delta=0,align_trans=0;if(align=='justify'){return;}
if(!align){align='left';}
if(align=='center'){align_offset=offset.left+(width/2);if(!$.support.t3transform){align_trans=-sub_width/2;sub.css(this.options.rtl?'right':'left',align_trans+width/2);}}else{align_offset=offset.left
+((align=='left'&&this.options.rtl||align=='right'&&!this.options.rtl)?width:0);}
if(this.options.rtl){if(align=='right'){if(align_offset+sub_width>screen_width){align_delta=screen_width-align_offset
-sub_width;sub.css('left',align_delta);if(screen_width<sub_width){sub.css('left',align_delta+sub_width
-screen_width);}}}else{if(align_offset<(align=='center'?sub_width/2:sub_width)){align_delta=align_offset
-(align=='center'?sub_width/2:sub_width);sub.css('right',align_delta+align_trans);}
if(align_offset
+(align=='center'?sub_width/2:0)
-align_delta>screen_width){sub.css('right',align_offset
+(align=='center'?(sub_width+width)/2:0)+align_trans
-screen_width);}}}else{if(align=='right'){if(align_offset<sub_width){align_delta=align_offset-sub_width;sub.css('right',align_delta);if(sub_width>screen_width){sub.css('right',sub_width-screen_width
+align_delta);}}}else{if(align_offset
+(align=='center'?sub_width/2:sub_width)>screen_width){align_delta=screen_width
-align_offset
-(align=='center'?sub_width/2:sub_width);sub.css('left',align_delta+align_trans);}
if(align_offset
-(align=='center'?sub_width/2:0)
+align_delta<0){sub.css('left',(align=='center'?(sub_width+width)/2:0)
+align_trans
-align_offset);}}}}else{if(this.options.rtl){if($item.closest('.mega-dropdown-menu').parent().hasClass('mega-align-right')){if(offset.left+width+sub_width>screen_width){$item.removeClass('mega-align-right');if(offset.left-sub_width<0){sub.css('right',offset.left+width
-sub_width);}}}else{if(offset.left-sub_width<0){$item.removeClass('mega-align-left').addClass('mega-align-right');if(offset.left+width+sub_width>screen_width){sub.css('left',screen_width-offset.left
-sub_width);}}}}else{if($item.closest('.mega-dropdown-menu').parent().hasClass('mega-align-right')){if(offset.left-sub_width<0){$item.removeClass('mega-align-right');if(offset.left+width+sub_width>screen_width){sub.css('left',screen_width-offset.left
-sub_width);}}}else{if(offset.left+width+sub_width>screen_width){$item.removeClass('mega-align-left').addClass('mega-align-right');if(offset.left-sub_width<0){sub.css('right',offset.left+width
-sub_width);}}}}}}};$.fn.t3menu=function(option){return this.each(function(){var $this=$(this),data=$this.data('megamenu'),options=typeof option=='object'&&option;if($this.parents('#off-canvas-nav').length)
return;if($this.parents('#t3-off-canvas').length)
return;if(!data){$this.data('megamenu',(data=new T3Menu(this,options)));}else{if(typeof option=='string'&&data[option]){data[option]()}}})};$.fn.t3menu.defaults={duration:400,timeout:100,hidedelay:200,hover:true,sb_width:20};$(document).ready(function(){var mm_duration=$('.t3-megamenu').data('duration')||0;if(mm_duration){$('<style type="text/css">'
+'.t3-megamenu.animate .animating > .mega-dropdown-menu,'
+'.t3-megamenu.animate.slide .animating > .mega-dropdown-menu > div {'
+'transition-duration: '
+mm_duration+'ms !important;'
+'-webkit-transition-duration: '
+mm_duration+'ms !important;'
+'}'+'</style>').appendTo('head');}
var mm_timeout=mm_duration?100+mm_duration:500,mm_rtl=$(document.documentElement).attr('dir')=='rtl',mm_trigger=$(document.documentElement).hasClass('mm-hover'),sb_width=(function(){var parent=$('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body'),child=parent.children(),width=child.innerWidth()
-child.height(100).innerWidth();parent.remove();return width;})();if(!$.support.transition){$('.t3-megamenu').removeClass('animate');mm_timeout=100;}
$('ul.nav').has('.dropdown-menu').t3menu({duration:mm_duration,timeout:mm_timeout,rtl:mm_rtl,sb_width:sb_width,hover:mm_trigger});$(window).on('load',function(){$('ul.nav').has('.dropdown-menu').t3menu({duration:mm_duration,timeout:mm_timeout,rtl:mm_rtl,sb_width:sb_width,hover:mm_trigger});});});})(jQuery);


/*===============================
/templates/purity_iii/js/script.js
================================================================================*/;
(function($){function CountUp(element,options){this.$element=$(element);this.$counter=this.$element.find('.count-up');this.$progress=this.$element.find('.pro-bar');this.options=options;this.value=options.from;this.$element.on('mouseenter',$.proxy(this.run,this));}
CountUp.prototype={run:function(){if(this.$element.hasClass('start')){return;}
this.$element.addClass('start');this.$counter.stop(true).css('display','block').fadeTo(250,1).siblings('.face').css('display','none');$(this).stop(true).animate({value:this.options.to},{step:function(now){this.$counter.html(Math.round(now)+'%');},duration:this.options.duration,complete:function(){setTimeout($.proxy(function(){this.$counter.delay(250).parent().children().css({display:'',opacity:''});this.$progress.css('display','');},this),250);this.$element.off('mouseenter');}});this.$progress.css({width:'0%',display:'block'}).animate({width:this.options.to+'%'},this.options.duration);}}
CountUp.defaults={from:0,to:100,duration:2000}
$.fn.countup=function(option){return this.each(function(){var
$this=$(this),data=$this.data('countup'),options=$.extend({},CountUp.defaults,$this.data(),typeof option=='object'&&option),action=typeof option=='string'?option:false;if(!data){$this.data('countup',(data=new CountUp(this,options)))}
if(action&&data[action]){data[action]()}})}})(jQuery);(function($){$(document).ready(function(){$('.t3-navbar .t3-megamenu ul li > a').click(function(e){if($(this).hasClass('dropdown-toggle')){window.location.href=$(this).attr('href');}});(function(){$('[data-js="count-up"]').countup();})();});})(jQuery);


/*===============================
/plugins/system/t3/base-bs3/js/nav-collapse.js
================================================================================*/;
jQuery(document).ready(function($){$('.t3-navbar').each(function(){var $navwrapper=$(this),$menu=null,$placeholder=null;if($navwrapper.find('.t3-megamenu').length){$menu=$navwrapper.find('ul.level0').clone(),$placeholder=$navwrapper.prev('.navbar-collapse');if(!$placeholder.length){$placeholder=$navwrapper.closest('.container, .t3-mainnav').find('.navbar-collapse:empty');}
var lis=$menu.find('li[data-id]'),liactive=lis.filter('.current');lis.removeClass('mega dropdown mega-align-left mega-align-right mega-align-center mega-align-adjust');lis.each(function(){var $li=$(this),$child=$li.find('>:first-child');if($child[0].nodeName=='DIV'){$child.find('>:first-child').prependTo($li);$child.remove();}
if($li.data('hidewcol')){$child.find('.caret').remove();$child.nextAll().remove();return;}
var subul=$li.find('ul.level'+$li.data('level'));if(subul.length){$ul=$('<ul class="level'+$li.data('level')+' dropdown-menu">');subul.each(function(){if($(this).parents('.mega-col-nav').data('hidewcol'))return;$(this).find('>li').appendTo($ul);});if($ul.children().length){$ul.appendTo($li);}}
$li.find('>div').remove();if(!$li.children('ul').length){$child.find('.caret').remove();}
var divider=$li.hasClass('divider');for(var x in $li.data()){$li.removeAttr('data-'+x)}
$child.removeAttr('class');for(var x in $child.data()){$child.removeAttr('data-'+x)}
if(divider){$li.addClass('divider');}});liactive.addClass('current active');}else{$menu=$navwrapper.find('ul.nav').clone();$placeholder=$('.t3-navbar-collapse:empty, .navbar-collapse:empty').eq(0);}
$menu.find('a[data-toggle="dropdown"]').removeAttr('data-toggle').removeAttr('data-target');$menu.find('> li > ul.dropdown-menu').prev().attr('data-toggle','dropdown').attr('data-target','#').parent('li').addClass(function(){return'dropdown'+($(this).data('level')>1?' dropdown-submenu':'');});$menu.appendTo($placeholder);});});


/*===============================
/media/system/js/core-uncompressed.js
================================================================================*/;
Joomla=window.Joomla||{};Joomla.editors=Joomla.editors||{};Joomla.editors.instances=Joomla.editors.instances||{};(function(Joomla,document){"use strict";Joomla.submitform=function(task,form,validate){if(!form){form=document.getElementById('adminForm');}
if(task){form.task.value=task;}
form.noValidate=!validate;if(!validate){form.setAttribute('novalidate','');}else if(form.hasAttribute('novalidate')){form.removeAttribute('novalidate');}
var button=document.createElement('input');button.style.display='none';button.type='submit';form.appendChild(button).click();form.removeChild(button);};Joomla.submitbutton=function(pressbutton){Joomla.submitform(pressbutton);};Joomla.Text={strings:{},'_':function(key,def){var newStrings=Joomla.getOptions('joomla.jtext');if(newStrings){this.load(newStrings);Joomla.loadOptions({'joomla.jtext':null});}
def=def===undefined?'':def;key=key.toUpperCase();return this.strings[key]!==undefined?this.strings[key]:def;},load:function(object){for(var key in object){if(!object.hasOwnProperty(key))continue;this.strings[key.toUpperCase()]=object[key];}
return this;}};Joomla.JText=Joomla.Text;Joomla.optionsStorage=Joomla.optionsStorage||null;Joomla.getOptions=function(key,def){if(!Joomla.optionsStorage){Joomla.loadOptions();}
return Joomla.optionsStorage[key]!==undefined?Joomla.optionsStorage[key]:def;};Joomla.loadOptions=function(options){if(!options){var elements=document.querySelectorAll('.joomla-script-options.new'),str,element,option,counter=0;for(var i=0,l=elements.length;i<l;i++){element=elements[i];str=element.text||element.textContent;option=JSON.parse(str);if(option){Joomla.loadOptions(option);counter++;}
element.className=element.className.replace(' new',' loaded');}
if(counter){return;}}
if(!Joomla.optionsStorage){Joomla.optionsStorage=options||{};}
else if(options){for(var p in options){if(options.hasOwnProperty(p)){Joomla.optionsStorage[p]=options[p];}}}};Joomla.replaceTokens=function(newToken){if(!/^[0-9A-F]{32}$/i.test(newToken)){return;}
var els=document.getElementsByTagName('input'),i,el,n;for(i=0,n=els.length;i<n;i++){el=els[i];if(el.type=='hidden'&&el.value=='1'&&el.name.length==32){el.name=newToken;}}};Joomla.isEmail=function(text){console.warn('Joomla.isEmail() is deprecated, use the formvalidator instead');var regex=/^[\w.!#$%&’*+\/=?^`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9-]{2,})+$/i;return regex.test(text);};Joomla.checkAll=function(checkbox,stub){if(!checkbox.form)return false;stub=stub?stub:'cb';var c=0,i,e,n;for(i=0,n=checkbox.form.elements.length;i<n;i++){e=checkbox.form.elements[i];if(e.type==checkbox.type&&e.id.indexOf(stub)===0){e.checked=checkbox.checked;c+=e.checked?1:0;}}
if(checkbox.form.boxchecked){checkbox.form.boxchecked.value=c;}
return true;};Joomla.renderMessages=function(messages){Joomla.removeMessages();var messageContainer=document.getElementById('system-message-container'),type,typeMessages,messagesBox,title,titleWrapper,i,messageWrapper,alertClass;for(type in messages){if(!messages.hasOwnProperty(type)){continue;}
typeMessages=messages[type];messagesBox=document.createElement('div');alertClass=(type==='notice')?'alert-info':'alert-'+type;alertClass=(type==='message')?'alert-success':alertClass;alertClass=(type==='error')?'alert-error alert-danger':alertClass;messagesBox.className='alert '+alertClass;var buttonWrapper=document.createElement('button');buttonWrapper.setAttribute('type','button');buttonWrapper.setAttribute('data-dismiss','alert');buttonWrapper.className='close';buttonWrapper.innerHTML='×';messagesBox.appendChild(buttonWrapper);title=Joomla.JText._(type);if(typeof title!='undefined'){titleWrapper=document.createElement('h4');titleWrapper.className='alert-heading';titleWrapper.innerHTML=Joomla.JText._(type);messagesBox.appendChild(titleWrapper);}
for(i=typeMessages.length-1;i>=0;i--){messageWrapper=document.createElement('div');messageWrapper.innerHTML=typeMessages[i];messagesBox.appendChild(messageWrapper);}
messageContainer.appendChild(messagesBox);}};Joomla.removeMessages=function(){var messageContainer=document.getElementById('system-message-container');while(messageContainer.firstChild)messageContainer.removeChild(messageContainer.firstChild);messageContainer.style.display='none';messageContainer.offsetHeight;messageContainer.style.display='';};Joomla.ajaxErrorsMessages=function(xhr,textStatus,error){var msg={};if(textStatus==='parsererror')
{var encodedJson=xhr.responseText.trim();var buf=[];for(var i=encodedJson.length-1;i>=0;i--){buf.unshift(['&#',encodedJson[i].charCodeAt(),';'].join(''));}
encodedJson=buf.join('');msg.error=[Joomla.JText._('JLIB_JS_AJAX_ERROR_PARSE').replace('%s',encodedJson)];}
else if(textStatus==='nocontent')
{msg.error=[Joomla.JText._('JLIB_JS_AJAX_ERROR_NO_CONTENT')];}
else if(textStatus==='timeout')
{msg.error=[Joomla.JText._('JLIB_JS_AJAX_ERROR_TIMEOUT')];}
else if(textStatus==='abort')
{msg.error=[Joomla.JText._('JLIB_JS_AJAX_ERROR_CONNECTION_ABORT')];}
else if(xhr.responseJSON&&xhr.responseJSON.message)
{msg.error=[Joomla.JText._('JLIB_JS_AJAX_ERROR_OTHER').replace('%s',xhr.status)+' <em>'+xhr.responseJSON.message+'</em>'];}
else if(xhr.statusText)
{msg.error=[Joomla.JText._('JLIB_JS_AJAX_ERROR_OTHER').replace('%s',xhr.status)+' <em>'+xhr.statusText+'</em>'];}
else
{msg.error=[Joomla.JText._('JLIB_JS_AJAX_ERROR_OTHER').replace('%s',xhr.status)];}
return msg;};Joomla.isChecked=function(isitchecked,form){if(typeof form==='undefined'){form=document.getElementById('adminForm');}
form.boxchecked.value=isitchecked?parseInt(form.boxchecked.value)+1:parseInt(form.boxchecked.value)-1;if(!form.elements['checkall-toggle'])return;var c=true,i,e,n;for(i=0,n=form.elements.length;i<n;i++){e=form.elements[i];if(e.type=='checkbox'&&e.name!='checkall-toggle'&&!e.checked){c=false;break;}}
form.elements['checkall-toggle'].checked=c;};Joomla.popupWindow=function(mypage,myname,w,h,scroll){var winl=(screen.width-w)/2,wint=(screen.height-h)/2,winprops='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';window.open(mypage,myname,winprops).window.focus();};Joomla.tableOrdering=function(order,dir,task,form){if(typeof form==='undefined'){form=document.getElementById('adminForm');}
form.filter_order.value=order;form.filter_order_Dir.value=dir;Joomla.submitform(task,form);};window.writeDynaList=function(selectParams,source,key,orig_key,orig_val,element){console.warn('window.writeDynaList() is deprecated without a replacement!');var select=document.createElement('select');var params=selectParams.split(' ');for(var l=0;l<params.length;l++){var par=params[l].split('=');if(par[0].trim().substr(0,2).toLowerCase()==="on"||par[0].trim().toLowerCase()==="href"){continue;}
select.setAttribute(par[0],par[1].replace(/\"/g,''));}
var hasSelection=key==orig_key,i,selected,item;for(i=0;i<source.length;i++){item=source[i];if(item[0]!=key){continue;}
selected=hasSelection?orig_val==item[1]:i===0;var el=document.createElement('option');el.setAttribute('value',item[1]);el.innerText=item[2];if(selected){el.setAttribute('selected','selected');}
select.appendChild(el);}
if(element){element.appendChild(select);}else{document.body.appendChild(select);}};window.changeDynaList=function(listname,source,key,orig_key,orig_val){console.warn('window.changeDynaList() is deprecated without a replacement!');var list=document.adminForm[listname],hasSelection=key==orig_key,i,x,item,opt;while(list.firstChild)list.removeChild(list.firstChild);i=0;for(x in source){if(!source.hasOwnProperty(x)){continue;}
item=source[x];if(item[0]!=key){continue;}
opt=new Option();opt.value=item[1];opt.text=item[2];if((hasSelection&&orig_val==opt.value)||(!hasSelection&&i===0)){opt.selected=true;}
list.options[i++]=opt;}
list.length=i;};window.radioGetCheckedValue=function(radioObj){console.warn('window.radioGetCheckedValue() is deprecated without a replacement!');if(!radioObj){return'';}
var n=radioObj.length,i;if(n===undefined){return radioObj.checked?radioObj.value:'';}
for(i=0;i<n;i++){if(radioObj[i].checked){return radioObj[i].value;}}
return'';};window.getSelectedValue=function(frmName,srcListName){console.warn('window.getSelectedValue() is deprecated without a replacement!');var srcList=document[frmName][srcListName],i=srcList.selectedIndex;if(i!==null&&i>-1){return srcList.options[i].value;}else{return null;}};window.listItemTask=function(id,task){console.warn('window.listItemTask() is deprecated use Joomla.listItemTask() instead');return Joomla.listItemTask(id,task);};Joomla.listItemTask=function(id,task){var f=document.adminForm,i=0,cbx,cb=f[id];if(!cb)return false;while(true){cbx=f['cb'+i];if(!cbx)break;cbx.checked=false;i++;}
cb.checked=true;f.boxchecked.value=1;window.submitform(task);return false;};window.submitbutton=function(pressbutton){console.warn('window.submitbutton() is deprecated use Joomla.submitbutton() instead');Joomla.submitbutton(pressbutton);};window.submitform=function(pressbutton){console.warn('window.submitform() is deprecated use Joomla.submitform() instead');Joomla.submitform(pressbutton);};window.saveorder=function(n,task){console.warn('window.saveorder() is deprecated without a replacement!');window.checkAll_button(n,task);};window.checkAll_button=function(n,task){console.warn('window.checkAll_button() is deprecated without a replacement!');task=task?task:'saveorder';var j,box;for(j=0;j<=n;j++){box=document.adminForm['cb'+j];if(box){box.checked=true;}else{alert("You cannot change the order of items, as an item in the list is `Checked Out`");return;}}
Joomla.submitform(task);};Joomla.loadingLayer=function(task,parentElement){task=task||'show';parentElement=parentElement||document.body;if(task==='load')
{var systemPaths=Joomla.getOptions('system.paths')||{},basePath=systemPaths.root||'';var loadingDiv=document.createElement('div');loadingDiv.id='loading-logo';loadingDiv.style['position']='fixed';loadingDiv.style['top']='0';loadingDiv.style['left']='0';loadingDiv.style['width']='100%';loadingDiv.style['height']='100%';loadingDiv.style['opacity']='0.8';loadingDiv.style['filter']='alpha(opacity=80)';loadingDiv.style['overflow']='hidden';loadingDiv.style['z-index']='10000';loadingDiv.style['display']='none';loadingDiv.style['background-color']='#fff';loadingDiv.style['background-image']='url("'+basePath+'/media/jui/images/ajax-loader.gif")';loadingDiv.style['background-position']='center';loadingDiv.style['background-repeat']='no-repeat';loadingDiv.style['background-attachment']='fixed';parentElement.appendChild(loadingDiv);}
else
{if(!document.getElementById('loading-logo'))
{Joomla.loadingLayer('load',parentElement);}
document.getElementById('loading-logo').style['display']=(task=='show')?'block':'none';}
return document.getElementById('loading-logo');};Joomla.extend=function(destination,source){for(var p in source){if(source.hasOwnProperty(p)){destination[p]=source[p];}}
return destination;};Joomla.request=function(options){options=Joomla.extend({url:'',method:'GET',data:null,perform:true},options);options.method=options.data?'POST':options.method.toUpperCase();try{var xhr=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('MSXML2.XMLHTTP.3.0');xhr.open(options.method,options.url,true);xhr.setRequestHeader('X-Requested-With','XMLHttpRequest');xhr.setRequestHeader('X-Ajax-Engine','Joomla!');if(options.method==='POST'){var token=Joomla.getOptions('csrf.token','');if(token){xhr.setRequestHeader('X-CSRF-Token',token);}
if(typeof(options.data)==='string'&&(!options.headers||!options.headers['Content-Type'])){xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');}}
if(options.headers){for(var p in options.headers){if(options.headers.hasOwnProperty(p)){xhr.setRequestHeader(p,options.headers[p]);}}}
xhr.onreadystatechange=function(){if(xhr.readyState!==4)return;if(xhr.status===200){if(options.onSuccess){options.onSuccess.call(window,xhr.responseText,xhr);}}else if(options.onError){options.onError.call(window,xhr);}};if(options.perform){if(options.onBefore&&options.onBefore.call(window,xhr)===false){return xhr;}
xhr.send(options.data);}}catch(error){window.console?console.log(error):null;return false;}
return xhr;};}(Joomla,document));


/*===============================
/media/system/js/polyfill.event-uncompressed.js
================================================================================*/;
(function(undefined){if(!('Window'in this)){(function(global){if(global.constructor){global.Window=global.constructor;}else{(global.Window=global.constructor=new Function('return function Window() {}')()).prototype=this;}}(this));}
if(!("Document"in this)){if(this.HTMLDocument){this.Document=this.HTMLDocument;}else{this.Document=this.HTMLDocument=document.constructor=(new Function('return function Document() {}')());this.Document.prototype=document;}}
if(!('Element'in this&&'HTMLElement'in this)){(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return;}
window.Element=window.HTMLElement=new Function('return function Element() {}')();var vbody=document.appendChild(document.createElement('body'));var frame=vbody.appendChild(document.createElement('iframe'));var frameDocument=frame.contentWindow.document;var prototype=Element.prototype=frameDocument.appendChild(frameDocument.createElement('*'));var cache={};var shiv=function(element,deep){var
childNodes=element.childNodes||[],index=-1,key,value,childNode;if(element.nodeType===1&&element.constructor!==Element){element.constructor=Element;for(key in cache){value=cache[key];element[key]=value;}}
while(childNode=deep&&childNodes[++index]){shiv(childNode,deep);}
return element;};var elements=document.getElementsByTagName('*');var nativeCreateElement=document.createElement;var interval;var loopLimit=100;prototype.attachEvent('onpropertychange',function(event){var
propertyName=event.propertyName,nonValue=!cache.hasOwnProperty(propertyName),newValue=prototype[propertyName],oldValue=cache[propertyName],index=-1,element;while(element=elements[++index]){if(element.nodeType===1){if(nonValue||element[propertyName]===oldValue){element[propertyName]=newValue;}}}
cache[propertyName]=newValue;});prototype.constructor=Element;if(!prototype.hasAttribute){prototype.hasAttribute=function hasAttribute(name){return this.getAttribute(name)!==null;};}
function bodyCheck(){if(!(loopLimit--))clearTimeout(interval);if(document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)){shiv(document,true);if(interval&&document.body.prototype)clearTimeout(interval);return(!!document.body.prototype);}
return false;}
if(!bodyCheck(true)){document.onreadystatechange=bodyCheck;interval=setInterval(bodyCheck,25);}
document.createElement=function createElement(nodeName){var element=nativeCreateElement(String(nodeName).toLowerCase());return shiv(element);};document.removeChild(vbody);}());}
if(!('defineProperty'in Object&&(function(){try{var a={};Object.defineProperty(a,'test',{value:42});return true;}catch(e){return false}}()))){(function(nativeDefineProperty){var supportsAccessors=Object.prototype.hasOwnProperty('__defineGetter__');var ERR_ACCESSORS_NOT_SUPPORTED='Getters & setters cannot be defined on this javascript engine';var ERR_VALUE_ACCESSORS='A property cannot both have accessors and be writable or have a value';Object.defineProperty=function defineProperty(object,property,descriptor){if(nativeDefineProperty&&(object===window||object===document||object===Element.prototype||object instanceof Element)){return nativeDefineProperty(object,property,descriptor);}
if(object===null||!(object instanceof Object||typeof object==='object')){throw new TypeError('Object must be an object (Object.defineProperty polyfill)');}
if(!(descriptor instanceof Object)){throw new TypeError('Descriptor must be an object (Object.defineProperty polyfill)');}
var propertyString=String(property);var hasValueOrWritable='value'in descriptor||'writable'in descriptor;var getterType='get'in descriptor&&typeof descriptor.get;var setterType='set'in descriptor&&typeof descriptor.set;if(getterType){if(getterType!=='function'){throw new TypeError('Getter expected a function (Object.defineProperty polyfill)');}
if(!supportsAccessors){throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);}
if(hasValueOrWritable){throw new TypeError(ERR_VALUE_ACCESSORS);}
object.__defineGetter__(propertyString,descriptor.get);}else{object[propertyString]=descriptor.value;}
if(setterType){if(setterType!=='function'){throw new TypeError('Setter expected a function (Object.defineProperty polyfill)');}
if(!supportsAccessors){throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);}
if(hasValueOrWritable){throw new TypeError(ERR_VALUE_ACCESSORS);}
object.__defineSetter__(propertyString,descriptor.set);}
if('value'in descriptor){object[propertyString]=descriptor.value;}
return object;};}(Object.defineProperty));}
if(!((function(global){if(!('Event'in global))return false;if(typeof global.Event==='function')return true;try{new Event('click');return true;}catch(e){return false;}}(this)))){(function(){var unlistenableWindowEvents={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};function indexOf(array,element){var
index=-1,length=array.length;while(++index<length){if(index in array&&array[index]===element){return index;}}
return-1;}
var existingProto=(window.Event&&window.Event.prototype)||null;window.Event=Window.prototype.Event=function Event(type,eventInitDict){if(!type){throw new Error('Not enough arguments');}
if('createEvent'in document){var event=document.createEvent('Event');var bubbles=eventInitDict&&eventInitDict.bubbles!==undefined?eventInitDict.bubbles:false;var cancelable=eventInitDict&&eventInitDict.cancelable!==undefined?eventInitDict.cancelable:false;event.initEvent(type,bubbles,cancelable);return event;}
var event=document.createEventObject();event.type=type;event.bubbles=eventInitDict&&eventInitDict.bubbles!==undefined?eventInitDict.bubbles:false;event.cancelable=eventInitDict&&eventInitDict.cancelable!==undefined?eventInitDict.cancelable:false;return event;};if(existingProto){Object.defineProperty(window.Event,'prototype',{configurable:false,enumerable:false,writable:true,value:existingProto});}
if(!('createEvent'in document)){window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function addEventListener(){var
element=this,type=arguments[0],listener=arguments[1];if(element===window&&type in unlistenableWindowEvents){throw new Error('In IE8 the event: '+type+' is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.');}
if(!element._events){element._events={};}
if(!element._events[type]){element._events[type]=function(event){var
list=element._events[event.type].list,events=list.slice(),index=-1,length=events.length,eventElement;event.preventDefault=function preventDefault(){if(event.cancelable!==false){event.returnValue=false;}};event.stopPropagation=function stopPropagation(){event.cancelBubble=true;};event.stopImmediatePropagation=function stopImmediatePropagation(){event.cancelBubble=true;event.cancelImmediate=true;};event.currentTarget=element;event.relatedTarget=event.fromElement||null;event.target=event.target||event.srcElement||element;event.timeStamp=new Date().getTime();if(event.clientX){event.pageX=event.clientX+document.documentElement.scrollLeft;event.pageY=event.clientY+document.documentElement.scrollTop;}
while(++index<length&&!event.cancelImmediate){if(index in events){eventElement=events[index];if(indexOf(list,eventElement)!==-1&&typeof eventElement==='function'){eventElement.call(element,event);}}}};element._events[type].list=[];if(element.attachEvent){element.attachEvent('on'+type,element._events[type]);}}
element._events[type].list.push(listener);};window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function removeEventListener(){var
element=this,type=arguments[0],listener=arguments[1],index;if(element._events&&element._events[type]&&element._events[type].list){index=indexOf(element._events[type].list,listener);if(index!==-1){element._events[type].list.splice(index,1);if(!element._events[type].list.length){if(element.detachEvent){element.detachEvent('on'+type,element._events[type]);}
delete element._events[type];}}}};window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function dispatchEvent(event){if(!arguments.length){throw new Error('Not enough arguments');}
if(!event||typeof event.type!=='string'){throw new Error('DOM Events Exception 0');}
var element=this,type=event.type;try{if(!event.bubbles){event.cancelBubble=true;var cancelBubbleEvent=function(event){event.cancelBubble=true;(element||window).detachEvent('on'+type,cancelBubbleEvent);};this.attachEvent('on'+type,cancelBubbleEvent);}
this.fireEvent('on'+type,event);}catch(error){event.target=element;do{event.currentTarget=element;if('_events'in element&&typeof element._events[type]==='function'){element._events[type].call(element,event);}
if(typeof element['on'+type]==='function'){element['on'+type].call(element,event);}
element=element.nodeType===9?element.parentWindow:element.parentNode;}while(element&&!event.cancelBubble);}
return true;};document.attachEvent('onreadystatechange',function(){if(document.readyState==='complete'){document.dispatchEvent(new Event('DOMContentLoaded',{bubbles:true}));}});}}());}}).call('object'===typeof window&&window||'object'===typeof self&&self||'object'===typeof global&&global||{});


/*===============================
/media/system/js/keepalive-uncompressed.js
================================================================================*/;
!(function(){'use strict';document.addEventListener('DOMContentLoaded',function(){var keepaliveOptions=Joomla.getOptions('system.keepalive'),keepaliveUri=keepaliveOptions&&keepaliveOptions.uri?keepaliveOptions.uri.replace(/&amp;/g,'&'):'',keepaliveInterval=keepaliveOptions&&keepaliveOptions.interval?keepaliveOptions.interval:45*1000;if(keepaliveUri==='')
{var systemPaths=Joomla.getOptions('system.paths');keepaliveUri=(systemPaths?systemPaths.root+'/index.php':window.location.pathname)+'?option=com_ajax&format=json';}
window.setInterval(function(){Joomla.request({url:keepaliveUri,onSuccess:function(response,xhr)
{},onError:function(xhr)
{}});},keepaliveInterval);});})(window,document,Joomla);