"function"!==typeof object.create&&(object.create=function(f){function g(){}g.prototype=f;return new g}); (function(f,g,k){var l={init:function(a,b){this.$elem=f(b);this.options=f.extend({},f.fn.owlcarousel.options,this.$elem.data(),a);this.useroptions=a;this.loadcontent()},loadcontent:function(){function a(a){var d,e="";if("function"===typeof b.options.jsonsuccess)b.options.jsonsuccess.apply(this,[a]);else{for(d in a.owl)a.owl.hasownproperty(d)&&(e+=a.owl[d].item);b.$elem.html(e)}b.login()}var b=this,e;"function"===typeof b.options.beforeinit&&b.options.beforeinit.apply(this,[b.$elem]);"string"===typeof b.options.jsonpath? (e=b.options.jsonpath,f.getjson(e,a)):b.login()},login:function(){this.$elem.data("owl-originalstyles",this.$elem.attr("style"));this.$elem.data("owl-originalclasses",this.$elem.attr("class"));this.$elem.css({opacity:0});this.orignalitems=this.options.items;this.checkbrowser();this.wrapperwidth=0;this.checkvisible=null;this.setvars()},setvars:function(){if(0===this.$elem.children().length)return!1;this.baseclass();this.eventtypes();this.$useritems=this.$elem.children();this.itemsamount=this.$useritems.length; this.wrapitems();this.$owlitems=this.$elem.find(".owl-item");this.$owlwrapper=this.$elem.find(".owl-wrapper");this.playdirection="next";this.previtem=0;this.prevarr=[0];this.currentitem=0;this.customevents();this.onstartup()},onstartup:function(){this.updateitems();this.calculateall();this.buildcontrols();this.updatecontrols();this.response();this.moveevents();this.stoponhover();this.owlstatus();!1!==this.options.transitionstyle&&this.transitiontypes(this.options.transitionstyle);!0===this.options.autoplay&& (this.options.autoplay=5e3);this.play();this.$elem.find(".owl-wrapper").css("display","block");this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchvisibility();this.onstartup=!1;this.eachmoveupdate();"function"===typeof this.options.afterinit&&this.options.afterinit.apply(this,[this.$elem])},eachmoveupdate:function(){!0===this.options.lazyload&&this.lazyload();!0===this.options.autoheight&&this.autoheight();this.onvisibleitems();"function"===typeof this.options.afteraction&&this.options.afteraction.apply(this, [this.$elem])},updatevars:function(){"function"===typeof this.options.beforeupdate&&this.options.beforeupdate.apply(this,[this.$elem]);this.watchvisibility();this.updateitems();this.calculateall();this.updateposition();this.updatecontrols();this.eachmoveupdate();"function"===typeof this.options.afterupdate&&this.options.afterupdate.apply(this,[this.$elem])},reload:function(){var a=this;g.settimeout(function(){a.updatevars()},0)},watchvisibility:function(){var a=this;if(!1===a.$elem.is(":visible"))a.$elem.css({opacity:0}), g.clearinterval(a.autoplayinterval),g.clearinterval(a.checkvisible);else return!1;a.checkvisible=g.setinterval(function(){a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),g.clearinterval(a.checkvisible))},500)},wrapitems:function(){this.$useritems.wrapall('
').wrap('
');this.$elem.find(".owl-wrapper").wrap('
');this.wrapperouter=this.$elem.find(".owl-wrapper-outer");this.$elem.css("display","block")}, baseclass:function(){var a=this.$elem.hasclass(this.options.baseclass),b=this.$elem.hasclass(this.options.theme);a||this.$elem.addclass(this.options.baseclass);b||this.$elem.addclass(this.options.theme)},updateitems:function(){var a,b;if(!1===this.options.responsive)return!1;if(!0===this.options.singleitem)return this.options.items=this.orignalitems=1,this.options.itemscustom=!1,this.options.itemsdesktop=!1,this.options.itemsdesktopsmall=!1,this.options.itemstablet=!1,this.options.itemstabletsmall= !1,this.options.itemsmobile=!1;a=f(this.options.responsivebasewidth).width();a>(this.options.itemsdesktop[0]||this.orignalitems)&&(this.options.items=this.orignalitems);if(!1!==this.options.itemscustom)for(this.options.itemscustom.sort(function(a,b){return a[0]-b[0]}),b=0;bthis.itemsamount&& !0===this.options.itemsscaleup&&(this.options.items=this.itemsamount)},response:function(){var a=this,b,e;if(!0!==a.options.responsive)return!1;e=f(g).width();a.resizer=function(){f(g).width()!==e&&(!1!==a.options.autoplay&&g.clearinterval(a.autoplayinterval),g.cleartimeout(b),b=g.settimeout(function(){e=f(g).width();a.updatevars()},a.options.responsiverefreshrate))};f(g).resize(a.resizer)},updateposition:function(){this.jumpto(this.currentitem);!1!==this.options.autoplay&&this.checkap()},appenditemssizes:function(){var a= this,b=0,e=a.itemsamount-a.options.items;a.$owlitems.each(function(c){var d=f(this);d.css({width:a.itemwidth}).data("owl-item",number(c));if(0===c%a.options.items||c===e)c>e||(b+=1);d.data("owl-roundpages",b)})},appendwrappersizes:function(){this.$owlwrapper.css({width:this.$owlitems.length*this.itemwidth*2,left:0});this.appenditemssizes()},calculateall:function(){this.calculatewidth();this.appendwrappersizes();this.loops();this.max()},calculatewidth:function(){this.itemwidth=math.round(this.$elem.width()/ this.options.items)},max:function(){var a=-1*(this.itemsamount*this.itemwidth-this.options.items*this.itemwidth);this.options.items>this.itemsamount?this.maximumpixels=a=this.maximumitem=0:(this.maximumitem=this.itemsamount-this.options.items,this.maximumpixels=a);return a},min:function(){return 0},loops:function(){var a=0,b=0,e,c;this.positionsinarray=[0];this.pagesinarray=[];for(e=0;e').toggleclass("clickable",!this.browser.istouch).appendto(this.$elem);!0===this.options.pagination&&this.buildpagination();!0===this.options.navigation&&this.buildbuttons()},buildbuttons:function(){var a=this,b=f('
');a.owlcontrols.append(b);a.buttonprev= f("
",{"class":"owl-prev",html:a.options.navigationtext[0]||""});a.buttonnext=f("
",{"class":"owl-next",html:a.options.navigationtext[1]||""});b.append(a.buttonprev).append(a.buttonnext);b.on("touchstart.owlcontrols mousedown.owlcontrols",'div[class^="owl"]',function(a){a.preventdefault()});b.on("touchend.owlcontrols mouseup.owlcontrols",'div[class^="owl"]',function(b){b.preventdefault();f(this).hasclass("owl-next")?a.next():a.prev()})},buildpagination:function(){var a=this;a.paginationwrapper= f('
');a.owlcontrols.append(a.paginationwrapper);a.paginationwrapper.on("touchend.owlcontrols mouseup.owlcontrols",".owl-page",function(b){b.preventdefault();number(f(this).data("owl-page"))!==a.currentitem&&a.goto(number(f(this).data("owl-page")),!0)})},updatepagination:function(){var a,b,e,c,d,g;if(!1===this.options.pagination)return!1;this.paginationwrapper.html("");a=0;b=this.itemsamount-this.itemsamount%this.options.items;for(c=0;c",{"class":"owl-page"}),g=f("",{text:!0===this.options.paginationnumbers?a:"","class":!0===this.options.paginationnumbers?"owl-numbers":""}),d.append(g),d.data("owl-page",b===c?e:c),d.data("owl-roundpages",a),this.paginationwrapper.append(d));this.checkpagination()},checkpagination:function(){var a=this;if(!1===a.options.pagination)return!1;a.paginationwrapper.find(".owl-page").each(function(){f(this).data("owl-roundpages")=== f(a.$owlitems[a.currentitem]).data("owl-roundpages")&&(a.paginationwrapper.find(".owl-page").removeclass("active"),f(this).addclass("active"))})},checknavigation:function(){if(!1===this.options.navigation)return!1;!1===this.options.rewindnav&&(0===this.currentitem&&0===this.maximumitem?(this.buttonprev.addclass("disabled"),this.buttonnext.addclass("disabled")):0===this.currentitem&&0!==this.maximumitem?(this.buttonprev.addclass("disabled"),this.buttonnext.removeclass("disabled")):this.currentitem=== this.maximumitem?(this.buttonprev.removeclass("disabled"),this.buttonnext.addclass("disabled")):0!==this.currentitem&&this.currentitem!==this.maximumitem&&(this.buttonprev.removeclass("disabled"),this.buttonnext.removeclass("disabled")))},updatecontrols:function(){this.updatepagination();this.checknavigation();this.owlcontrols&&(this.options.items>=this.itemsamount?this.owlcontrols.hide():this.owlcontrols.show())},destroycontrols:function(){this.owlcontrols&&this.owlcontrols.remove()},next:function(a){if(this.istransition)return!1; this.currentitem+=!0===this.options.scrollperpage?this.options.items:1;if(this.currentitem>this.maximumitem+(!0===this.options.scrollperpage?this.options.items-1:0))if(!0===this.options.rewindnav)this.currentitem=0,a="rewind";else return this.currentitem=this.maximumitem,!1;this.goto(this.currentitem,a)},prev:function(a){if(this.istransition)return!1;this.currentitem=!0===this.options.scrollperpage&&0this.currentitem)if(!0===this.options.rewindnav)this.currentitem=this.maximumitem,a="rewind";else return this.currentitem=0,!1;this.goto(this.currentitem,a)},goto:function(a,b,e){var c=this;if(c.istransition)return!1;"function"===typeof c.options.beforemove&&c.options.beforemove.apply(this,[c.$elem]);a>=c.maximumitem?a=c.maximumitem:0>=a&&(a=0);c.currentitem=c.owl.currentitem=a;if(!1!==c.options.transitionstyle&&"drag"!==e&&1===c.options.items&&!0===c.browser.support3d)return c.swapspeed(0), !0===c.browser.support3d?c.transition3d(c.positionsinarray[a]):c.css2slide(c.positionsinarray[a],1),c.aftergo(),c.singleitemtransition(),!1;a=c.positionsinarray[a];!0===c.browser.support3d?(c.iscss3finish=!1,!0===b?(c.swapspeed("paginationspeed"),g.settimeout(function(){c.iscss3finish=!0},c.options.paginationspeed)):"rewind"===b?(c.swapspeed(c.options.rewindspeed),g.settimeout(function(){c.iscss3finish=!0},c.options.rewindspeed)):(c.swapspeed("slidespeed"),g.settimeout(function(){c.iscss3finish=!0}, c.options.slidespeed)),c.transition3d(a)):!0===b?c.css2slide(a,c.options.paginationspeed):"rewind"===b?c.css2slide(a,c.options.rewindspeed):c.css2slide(a,c.options.slidespeed);c.aftergo()},jumpto:function(a){"function"===typeof this.options.beforemove&&this.options.beforemove.apply(this,[this.$elem]);a>=this.maximumitem||-1===a?a=this.maximumitem:0>=a&&(a=0);this.swapspeed(0);!0===this.browser.support3d?this.transition3d(this.positionsinarray[a]):this.css2slide(this.positionsinarray[a],1);this.currentitem= this.owl.currentitem=a;this.aftergo()},aftergo:function(){this.prevarr.push(this.currentitem);this.previtem=this.owl.previtem=this.prevarr[this.prevarr.length-2];this.prevarr.shift(0);this.previtem!==this.currentitem&&(this.checkpagination(),this.checknavigation(),this.eachmoveupdate(),!1!==this.options.autoplay&&this.checkap());"function"===typeof this.options.aftermove&&this.previtem!==this.currentitem&&this.options.aftermove.apply(this,[this.$elem])},stop:function(){this.apstatus="stop";g.clearinterval(this.autoplayinterval)}, checkap:function(){"stop"!==this.apstatus&&this.play()},play:function(){var a=this;a.apstatus="play";if(!1===a.options.autoplay)return!1;g.clearinterval(a.autoplayinterval);a.autoplayinterval=g.setinterval(function(){a.next(!0)},a.options.autoplay)},swapspeed:function(a){"slidespeed"===a?this.$owlwrapper.css(this.addcssspeed(this.options.slidespeed)):"paginationspeed"===a?this.$owlwrapper.css(this.addcssspeed(this.options.paginationspeed)):"string"!==typeof a&&this.$owlwrapper.css(this.addcssspeed(a))}, addcssspeed:function(a){return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removetransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},dotranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+ a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},transition3d:function(a){this.$owlwrapper.css(this.dotranslate(a))},css2move:function(a){this.$owlwrapper.css({left:a})},css2slide:function(a,b){var e=this;e.iscssfinish=!1;e.$owlwrapper.stop(!0,!0).animate({left:a},{duration:b||e.options.slidespeed,complete:function(){e.iscssfinish=!0}})},checkbrowser:function(){var a=k.createelement("div");a.style.csstext=" -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)"; a=a.style.csstext.match(/translate3d\(0px, 0px, 0px\)/g);this.browser={support3d:null!==a&&1===a.length,istouch:"ontouchstart"in g||g.navigator.msmaxtouchpoints}},moveevents:function(){if(!1!==this.options.mousedrag||!1!==this.options.touchdrag)this.gestures(),this.disabledevents()},eventtypes:function(){var a=["s","e","x"];this.ev_types={};!0===this.options.mousedrag&&!0===this.options.touchdrag?a=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]: !1===this.options.mousedrag&&!0===this.options.touchdrag?a=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mousedrag&&!1===this.options.touchdrag&&(a=["mousedown.owl","mousemove.owl","mouseup.owl"]);this.ev_types.start=a[0];this.ev_types.move=a[1];this.ev_types.end=a[2]},disabledevents:function(){this.$elem.on("dragstart.owl",function(a){a.preventdefault()});this.$elem.on("mousedown.disabletextselect",function(a){return f(a.target).is("input, textarea, select, option")})}, gestures:function(){function a(a){if(void 0!==a.touches)return{x:a.touches[0].pagex,y:a.touches[0].pagey};if(void 0===a.touches){if(void 0!==a.pagex)return{x:a.pagex,y:a.pagey};if(void 0===a.pagex)return{x:a.clientx,y:a.clienty}}}function b(a){"on"===a?(f(k).on(d.ev_types.move,e),f(k).on(d.ev_types.end,c)):"off"===a&&(f(k).off(d.ev_types.move),f(k).off(d.ev_types.end))}function e(b){b=b.originalevent||b||g.event;d.newposx=a(b).x-h.offsetx;d.newposy=a(b).y-h.offsety;d.newrelativex=d.newposx-h.relativepos; "function"===typeof d.options.startdragging&&!0!==h.dragging&&0!==d.newrelativex&&(h.dragging=!0,d.options.startdragging.apply(d,[d.$elem]));(8d.newrelativex)&&!0===d.browser.istouch&&(void 0!==b.preventdefault?b.preventdefault():b.returnvalue=!1,h.sliding=!0);(10d.newposy)&&!1===h.sliding&&f(k).off("touchmove.owl");d.newposx=math.max(math.min(d.newposx,d.newrelativex/5),d.maximumpixels+d.newrelativex/5);!0===d.browser.support3d?d.transition3d(d.newposx):d.css2move(d.newposx)} function c(a){a=a.originalevent||a||g.event;var c;a.target=a.target||a.srcelement;h.dragging=!1;!0!==d.browser.istouch&&d.$owlwrapper.removeclass("grabbing");d.dragdirection=0>d.newrelativex?d.owl.dragdirection="left":d.owl.dragdirection="right";0!==d.newrelativex&&(c=d.getnewposition(),d.goto(c,!1,"drag"),h.targetelement===a.target&&!0!==d.browser.istouch&&(f(a.target).on("click.disable",function(a){a.stopimmediatepropagation();a.stoppropagation();a.preventdefault();f(a.target).off("click.disable")}), a=f._data(a.target,"events").click,c=a.pop(),a.splice(0,0,c)));b("off")}var d=this,h={offsetx:0,offsety:0,baseelwidth:0,relativepos:0,position:null,minswipe:null,maxswipe:null,sliding:null,dargging:null,targetelement:null};d.iscssfinish=!0;d.$elem.on(d.ev_types.start,".owl-wrapper",function(c){c=c.originalevent||c||g.event;var e;if(3===c.which)return!1;if(!(d.itemsamount<=d.options.items)){if(!1===d.iscssfinish&&!d.options.dragbeforeanimfinish||!1===d.iscss3finish&&!d.options.dragbeforeanimfinish)return!1; !1!==d.options.autoplay&&g.clearinterval(d.autoplayinterval);!0===d.browser.istouch||d.$owlwrapper.hasclass("grabbing")||d.$owlwrapper.addclass("grabbing");d.newposx=0;d.newrelativex=0;f(this).css(d.removetransition());e=f(this).position();h.relativepos=e.left;h.offsetx=a(c).x-e.left;h.offsety=a(c).y-e.top;b("on");h.sliding=!1;h.targetelement=c.target||c.srcelement}})},getnewposition:function(){var a=this.closestitem();a>this.maximumitem?a=this.currentitem=this.maximumitem:0<=this.newposx&&(this.currentitem= a=0);return a},closestitem:function(){var a=this,b=!0===a.options.scrollperpage?a.pagesinarray:a.positionsinarray,e=a.newposx,c=null;f.each(b,function(d,g){e-a.itemwidth/20>b[d+1]&&e-a.itemwidth/20(b[d+1]||b[d]-a.itemwidth)&&"right"===a.movedirection()&&(!0===a.options.scrollperpage?(c=b[d+1]||b[b.length-1],a.currentitem=f.inarray(c,a.positionsinarray)): (c=b[d+1],a.currentitem=d+1))});return a.currentitem},movedirection:function(){var a;0>this.newrelativex?(a="right",this.playdirection="next"):(a="left",this.playdirection="prev");return a},customevents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()});a.$elem.on("owl.prev",function(){a.prev()});a.$elem.on("owl.play",function(b,e){a.options.autoplay=e;a.play();a.hoverstatus="play"});a.$elem.on("owl.stop",function(){a.stop();a.hoverstatus="stop"});a.$elem.on("owl.goto",function(b,e){a.goto(e)}); a.$elem.on("owl.jumpto",function(b,e){a.jumpto(e)})},stoponhover:function(){var a=this;!0===a.options.stoponhover&&!0!==a.browser.istouch&&!1!==a.options.autoplay&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverstatus&&a.play()}))},lazyload:function(){var a,b,e,c,d;if(!1===this.options.lazyload)return!1;for(a=0;a=this.currentitem:!0)&&e=f?g.settimeout(c,100):e()}var d=this,f=0,k;"div"===b.prop("tagname")?(b.css("background-image","url("+b.data("src")+")"),k=!0):b[0].src=b.data("src");c()},autoheight:function(){function a(){var a=f(e.$owlitems[e.currentitem]).height();e.wrapperouter.css("height",a+"px");e.wrapperouter.hasclass("autoheight")||g.settimeout(function(){e.wrapperouter.addclass("autoheight")},0)}function b(){d+=1;e.completeimg(c.get(0))?a():100>=d?g.settimeout(b, 100):e.wrapperouter.css("height","")}var e=this,c=f(e.$owlitems[e.currentitem]).find("img"),d;void 0!==c.get(0)?(d=0,b()):a()},completeimg:function(a){return!a.complete||"undefined"!==typeof a.naturalwidth&&0===a.naturalwidth?!1:!0},onvisibleitems:function(){var a;!0===this.options.addclassactive&&this.$owlitems.removeclass("active");this.visibleitems=[];for(a=this.currentitem;a=this.$useritems.length||-1===e?this.$useritems.eq(-1).after(a):this.$useritems.eq(e).before(a);this.setvars()},removeitem:function(a){if(0===this.$elem.children().length)return!1;a=void 0===a||-1===a?-1:a;this.unwrap();this.$useritems.eq(a).remove();this.setvars()}};f.fn.owlcarousel=function(a){return this.each(function(){if(!0=== f(this).data("owl-init"))return!1;f(this).data("owl-init",!0);var b=object.create(l);b.init(a,this);f.data(this,"owlcarousel",b)})};f.fn.owlcarousel.options={items:5,itemscustom:!1,itemsdesktop:[1199,4],itemsdesktopsmall:[979,3],itemstablet:[768,2],itemstabletsmall:!1,itemsmobile:[479,1],singleitem:!1,itemsscaleup:!1,slidespeed:200,paginationspeed:800,rewindspeed:1e3,autoplay:!1,stoponhover:!1,navigation:!1,navigationtext:["prev","next"],rewindnav:!0,scrollperpage:!1,pagination:!0,paginationnumbers:!1, responsive:!0,responsiverefreshrate:200,responsivebasewidth:g,baseclass:"owl-carousel",theme:"owl-theme",lazyload:!1,lazyfollow:!0,lazyeffect:"fade",autoheight:!1,jsonpath:!1,jsonsuccess:!1,dragbeforeanimfinish:!0,mousedrag:!0,touchdrag:!0,addclassactive:!1,transitionstyle:!1,beforeupdate:!1,afterupdate:!1,beforeinit:!1,afterinit:!1,beforemove:!1,aftermove:!1,afteraction:!1,startdragging:!1,afterlazyload:!1}})(jquery,window,document); (function ($) { "use strict"; /*---------------------------- jquery meanmenu ------------------------------ */ /*---------------------------- wow js active ------------------------------ */ new wow().init(); /*---------------------------- owl active ------------------------------ */ $(".features-curosel").owlcarousel({ autoplay: false, slidespeed:2000, items : 1, pagination:false, navigation:true, navigationtext:["",""], itemsdesktop : [1199,1], itemsdesktopsmall : [768,1], itemsmobile : [480,1] }); $(".features-curosel02").owlcarousel({ autoplay: false, slidespeed:2000, items : 2, pagination:false, navigation:true, navigationtext:["",""], itemsdesktop : [1199,2], itemsdesktopsmall : [768,2], itemsmobile : [480,1] }); $(".features-curosel03").owlcarousel({ autoplay: false, slidespeed:2000, items : 3, pagination:false, navigation:true, navigationtext:["",""], itemsdesktop : [1199,3], itemsdesktopsmall : [768,3], itemsmobile : [480,2] }); $(".features-curosel04").owlcarousel({ autoplay: false, slidespeed:2000, items : 4, pagination:true, navigation:true, navigationtext:["",""], itemsdesktop : [1199,3], itemsdesktopsmall : [768,3], itemsmobile : [360,1] }); })(jquery); /**! * easypiechart * lightweight plugin to render simple, animated and retina optimized pie charts * * @license * @author robert fleischmann (http://robert-fleischmann.de) * @version 2.1.5 **/ !function(a,b){"object"==typeof exports?module.exports=b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],b):b(a.jquery)}(this,function(a){var b=function(a,b){var c,d=document.createelement("canvas");a.appendchild(d),"undefined"!=typeof g_vmlcanvasmanager&&g_vmlcanvasmanager.initelement(d);var e=d.getcontext("2d");d.width=d.height=b.size;var f=1;window.devicepixelratio>1&&(f=window.devicepixelratio,d.style.width=d.style.height=[b.size,"px"].join(""),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((-0.5+b.rotate/180)*math.pi);var g=(b.size-b.linewidth)/2;b.scalecolor&&b.scalelength&&(g-=b.scalelength+2),date.now=date.now||function(){return+new date};var h=function(a,b,c){c=math.min(math.max(-1,c||0),1);var d=0>=c?!0:!1;e.beginpath(),e.arc(0,0,g,0,2*math.pi*c,d),e.strokestyle=a,e.linewidth=b,e.stroke()},i=function(){var a,c;e.linewidth=1,e.fillstyle=b.scalecolor,e.save();for(var d=24;d>0;--d)d%6===0?(c=b.scalelength,a=0):(c=.6*b.scalelength,a=b.scalelength-c),e.fillrect(-b.size/2+a,0,c,1),e.rotate(math.pi/12);e.restore()},j=function(){return window.requestanimationframe||window.webkitrequestanimationframe||window.mozrequestanimationframe||function(a){window.settimeout(a,1e3/60)}}(),k=function(){b.scalecolor&&i(),b.trackcolor&&h(b.trackcolor,b.linewidth,1)};this.getcanvas=function(){return d},this.getctx=function(){return e},this.clear=function(){e.clearrect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scalecolor||b.trackcolor?e.getimagedata&&e.putimagedata?c?e.putimagedata(c,0,0):(k(),c=e.getimagedata(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.linecap=b.linecap;var d;d="function"==typeof b.barcolor?b.barcolor(a):b.barcolor,h(d,b.linewidth,a/100)}.bind(this),this.animate=function(a,c){var d=date.now();b.onstart(a,c);var e=function(){var f=math.min(date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onstep(a,c,g),f>=b.animate.duration?b.onstop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barcolor:"#ef1e25",trackcolor:"#f9f9f9",scalecolor:"#dfe0e0",scalelength:5,linecap:"round",linewidth:3,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onstart:function(){},onstep:function(){},onstop:function(){}};if("undefined"!=typeof b)d.renderer=b;else{if("undefined"==typeof svgrenderer)throw new error("please load either the svg- or the canvasrenderer");d.renderer=svgrenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasownproperty(b)&&(e[b]=c&&"undefined"!=typeof c[b]?c[b]:d[b],"function"==typeof e[b]&&(e[b]=e[b].bind(this)));e.easing="string"==typeof e.easing&&"undefined"!=typeof jquery&&jquery.isfunction(jquery.easing[e.easing])?jquery.easing[e.easing]:d.easing,"number"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),"boolean"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parsefloat(a.dataset.percent)):a.getattribute&&a.getattribute("data-percent")&&this.update(parsefloat(a.getattribute("data-percent")))}.bind(this);this.update=function(a){return a=parsefloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableanimation=function(){return e.animate.enabled=!1,this},this.enableanimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easypiechart=function(b){return this.each(function(){var d;a.data(this,"easypiechart")||(d=a.extend({},b,a(this).data()),a.data(this,"easypiechart",new c(this,d)))})}}); // generated by coffeescript 1.4.0 /* jquery waypoints - v2.0.2 copyright (c) 2011-2013 caleb troughton dual licensed under the mit license and gpl license. https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt */ (function(){var t=[].indexof||function(t){for(var e=0,n=this.length;e=0;s={horizontal:{},vertical:{}};f=1;a={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didresize=false;this.didscroll=false;this.id="context"+f++;this.oldscroll={x:t.scrollleft(),y:t.scrolltop()};this.waypoints={horizontal:{},vertical:{}};t.data(u,this.id);a[this.id]=this;t.bind(y,function(){var t;if(!(e.didscroll||c)){e.didscroll=true;t=function(){e.doscroll();return e.didscroll=false};return r.settimeout(t,n[m].settings.scrollthrottle)}});t.bind(p,function(){var t;if(!e.didresize){e.didresize=true;t=function(){n[m]("refresh");return e.didresize=false};return r.settimeout(t,n[m].settings.resizethrottle)}})}t.prototype.doscroll=function(){var t,e=this;t={horizontal:{newscroll:this.$element.scrollleft(),oldscroll:this.oldscroll.x,forward:"right",backward:"left"},vertical:{newscroll:this.$element.scrolltop(),oldscroll:this.oldscroll.y,forward:"down",backward:"up"}};if(c&&(!t.vertical.oldscroll||!t.vertical.newscroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newscroll>r.oldscroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldscroll<(n=e.offset)&&n<=r.newscroll){return l.push(e)}else if(r.newscroll<(i=e.offset)&&i<=r.oldscroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldscroll={x:t.horizontal.newscroll,y:t.vertical.newscroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.iswindow(this.element);e=this.$element.offset();this.doscroll();t={horizontal:{contextoffset:r?0:e.left,contextscroll:r?0:this.oldscroll.x,contextdimension:this.$element.width(),oldscroll:this.oldscroll.x,forward:"right",backward:"left",offsetprop:"left"},vertical:{contextoffset:r?0:e.top,contextscroll:r?0:this.oldscroll.y,contextdimension:r?n[m]("viewportheight"):this.$element.height(),oldscroll:this.oldscroll.y,forward:"down",backward:"up",offsetprop:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.iswindow(r.element)?0:r.$element.offset()[e.offsetprop];if(n.isfunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parsefloat(i);if(r.options.offset.indexof("%")>-1){i=math.ceil(e.contextdimension*i/100)}}r.offset=o-e.contextoffset+e.contextscroll-i;if(r.options.onlyonscroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldscroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldscroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldscroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkempty=function(){if(n.isemptyobject(this.waypoints.horizontal)&&n.isemptyobject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete a[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportheight");if(!n.iswindow(e.element)){t=e.$element.height()}return t-n(this).outerheight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=t.data(w))!=null?o:[];i.push(this.id);t.data(w,i)}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggeronce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkempty()};t.getwaypointsbyelement=function(t){var e,r;r=n(t).data(w);if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.iswindow(i)){i=t.closest(i)}i=n(i);r=a[i.data(u)];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(et.oldscroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldscroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldscroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendfn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=a[n(t).data(u)];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizethrottle:100,scrollthrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this); // easy responsive tabs plugin // author: samson.onna (function ($) { $.fn.extend({ easyresponsivetabs: function (options) { //set the default values, use comma to separate the settings, example: var defaults = { type: 'default', //default, vertical, accordion; width: 'auto', fit: true, closed: false, tabidentify: '', activetab_bg: 'f2f2f2', inactive_bg: '5aad24', active_border_color: '', active_content_border_color: '', activate: function () { } } //variables var options = $.extend(defaults, options); var opt = options, jtype = opt.type, jfit = opt.fit, jwidth = opt.width, vtabs = 'vertical', accord = 'accordion'; var hash = window.location.hash; var historyapi = !!(window.history && history.replacestate); //events $(this).bind('tabactivate', function (e, currenttab) { if (typeof options.activate === 'function') { options.activate.call(currenttab, e) } }); //main function this.each(function () { var $resptabs = $(this); var $resptabslist = $resptabs.find('ul.resp-tabs-list.' + options.tabidentify); var resptabsid = $resptabs.attr('id'); $resptabs.find('ul.resp-tabs-list.' + options.tabidentify + ' li').addclass('resp-tab-item').addclass(options.tabidentify); $resptabs.css({ 'display': 'block', 'width': jwidth }); if (options.type == 'vertical') $resptabslist.css('margin-top', '3px'); $resptabs.find('.resp-tabs-container.' + options.tabidentify).css('border-color', options.active_content_border_color); $resptabs.find('.resp-tabs-container.' + options.tabidentify + ' > div').addclass('resp-tab-content').addclass(options.tabidentify); jtab_options(); //properties function function jtab_options() { if (jtype == vtabs) { $resptabs.addclass('resp-vtabs').addclass(options.tabidentify); } if (jfit == true) { $resptabs.css({ width: '100%', margin: '0px' }); } if (jtype == accord) { $resptabs.addclass('resp-easy-accordion').addclass(options.tabidentify); $resptabs.find('.resp-tabs-list').css('display', 'none'); } } //assigning the h2 markup to accordion title var $tabitemh2; $resptabs.find('.resp-tab-content.' + options.tabidentify).before(""); $resptabs.find('.resp-tab-content.' + options.tabidentify).prev("em").css({ 'background-color': options.inactive_bg, 'border-color': options.active_border_color }); var itemcount = 0; $resptabs.find('.resp-accordion').each(function () { $tabitemh2 = $(this); var $tabitem = $resptabs.find('.resp-tab-item:eq(' + itemcount + ')'); var $accitem = $resptabs.find('.resp-accordion:eq(' + itemcount + ')'); $accitem.append($tabitem.html()); $accitem.data($tabitem.data()); $tabitemh2.attr('aria-controls', options.tabidentify + '_tab_item-' + (itemcount)); itemcount++; }); //assigning the 'aria-controls' to tab items var count = 0, $tabcontent; $resptabs.find('.resp-tab-item').each(function () { $tabitem = $(this); $tabitem.attr('aria-controls', options.tabidentify + '_tab_item-' + (count)); $tabitem.attr('role', 'tab'); $tabitem.css({ 'background-color': options.inactive_bg, 'border-color': 'none' }); //assigning the 'aria-labelledby' attr to tab-content var tabcount = 0; $resptabs.find('.resp-tab-content.' + options.tabidentify).each(function () { $tabcontent = $(this); $tabcontent.attr('aria-labelledby', options.tabidentify + '_tab_item-' + (tabcount)).css({ 'border-color': options.active_border_color }); tabcount++; }); count++; }); // show correct content area var tabnum = 0; if (hash != '') { var matches = hash.match(new regexp(resptabsid + "([0-9]+)")); if (matches !== null && matches.length === 2) { tabnum = parseint(matches[1], 10) - 1; if (tabnum > count) { tabnum = 0; } } } //active correct tab $($resptabs.find('.resp-tab-item.' + options.tabidentify)[tabnum]).addclass('resp-tab-active').css({ 'background-color': options.activetab_bg, 'border-color': options.active_border_color }); //keep closed if option = 'closed' or option is 'accordion' and the element is in accordion mode if (options.closed !== true && !(options.closed === 'accordion' && !$resptabslist.is(':visible')) && !(options.closed === 'tabs' && $resptabslist.is(':visible'))) { $($resptabs.find('.resp-accordion.' + options.tabidentify)[tabnum]).addclass('resp-tab-active').css({ 'background-color': options.activetab_bg + ' !important', 'border-color': options.active_border_color }); $($resptabs.find('.resp-tab-content.' + options.tabidentify)[tabnum]).addclass('resp-tab-content-active').addclass(options.tabidentify).attr('style', 'display:block'); } //assign proper classes for when tabs mode is activated before making a selection in accordion mode else { // $($resptabs.find('.resp-tab-content.' + options.tabidentify)[tabnum]).addclass('resp-accordion-closed'); //removed resp-tab-content-active } //tab click action function $resptabs.find("[role=tab]").each(function () { var $currenttab = $(this); $currenttab.click(function () { var $currenttab = $(this); var $tabaria = $currenttab.attr('aria-controls'); if ($currenttab.hasclass('resp-accordion') && $currenttab.hasclass('resp-tab-active')) { $resptabs.find('.resp-tab-content-active.' + options.tabidentify).slideup('', function () { $(this).addclass('resp-accordion-closed'); }); $currenttab.removeclass('resp-tab-active').css({ 'background-color': options.inactive_bg, 'border-color': 'none' }); return false; } if (!$currenttab.hasclass('resp-tab-active') && $currenttab.hasclass('resp-accordion')) { $resptabs.find('.resp-tab-active.' + options.tabidentify).removeclass('resp-tab-active').css({ 'background-color': options.inactive_bg, 'border-color': 'none' }); $resptabs.find('.resp-tab-content-active.' + options.tabidentify).slideup().removeclass('resp-tab-content-active resp-accordion-closed'); $resptabs.find("[aria-controls=" + $tabaria + "]").addclass('resp-tab-active').css({ 'background-color': options.activetab_bg, 'border-color': options.active_border_color }); $resptabs.find('.resp-tab-content[aria-labelledby = ' + $tabaria + '].' + options.tabidentify).slidedown().addclass('resp-tab-content-active'); } else { console.log('here'); $resptabs.find('.resp-tab-active.' + options.tabidentify).removeclass('resp-tab-active').css({ 'background-color': options.inactive_bg, 'border-color': 'none' }); $resptabs.find('.resp-tab-content-active.' + options.tabidentify).removeattr('style').removeclass('resp-tab-content-active').removeclass('resp-accordion-closed'); $resptabs.find("[aria-controls=" + $tabaria + "]").addclass('resp-tab-active').css({ 'background-color': options.activetab_bg, 'border-color': options.active_border_color }); $resptabs.find('.resp-tab-content[aria-labelledby = ' + $tabaria + '].' + options.tabidentify).addclass('resp-tab-content-active').attr('style', 'display:block'); } //trigger tab activation event $currenttab.trigger('tabactivate', $currenttab); //update browser history if (historyapi) { var currenthash = window.location.hash; var tabariaparts = $tabaria.split('tab_item-'); // var newhash = resptabsid + (parseint($tabaria.substring(9), 10) + 1).tostring(); var newhash = resptabsid + (parseint(tabariaparts[1], 10) + 1).tostring(); if (currenthash != "") { var re = new regexp(resptabsid + "[0-9]+"); if (currenthash.match(re) != null) { newhash = currenthash.replace(re, newhash); } else { newhash = currenthash + "|" + newhash; } } else { newhash = '#' + newhash; } history.replacestate(null, null, newhash); } }); }); //window resize function $(window).resize(function () { $resptabs.find('.resp-accordion-closed').removeattr('style'); }); }); } }); })(jquery);