$(document).ready(function() { "use strict"; jquery('.dropdown-submenu > a').on("click", function(e){ jquery(this).next('.dropdown-menu').parent('li').toggleclass('show'); jquery(this).next('.dropdown-menu').toggleclass('show'); e.stoppropagation(); e.preventdefault(); }); initcountdown(); // count down init function initcountdown() { var newdate = new date(2019, 12, 20); jquery("#defaultcountdown").countdown({until: newdate}); } initslickslider(); // slick slider init function initslickslider() { "use strict"; jquery('.slick-fade').slick({ slidestoscroll: 1, rows: 0, prevarrow: $('.slick-prev'), nextarrow: $('.slick-next'), dots: true, dotsclass: 'slicknums', fade: true, adaptiveheight: true, autoplay: true, infinite: true, responsive: [ { breakpoint: 576, settings: { dots: false } } ] }); jquery('.dealslider').slick({ dots: true, speed: 800, infinite: true, slidestoshow: 5, slidestoscroll: 1, adaptiveheight: true, autoplay: true, arrows: false, responsive: [ { breakpoint: 1350, settings: { slidestoshow: 4 } }, { breakpoint: 1170, settings: { slidestoshow: 3 } }, { breakpoint: 992, settings: { slidestoshow: 2 } }, { breakpoint: 480, settings: { slidestoshow: 1 } } ] }); jquery('.testimonailslider').slick({ dots: true, speed: 800, infinite: true, slidestoshow: 1, slidestoscroll: 1, adaptiveheight: true, autoplay: true, arrows: false, fade: true, autoplayspeed: 2000 }); jquery('.partnerslider').slick({ dots: false, speed: 800, infinite: true, slidestoshow: 6, slidestoscroll: 1, adaptiveheight: true, autoplay: true, arrows: false, autoplayspeed: 2000, responsive: [ { breakpoint: 1170, settings: { slidestoshow: 5 } }, { breakpoint: 992, settings: { slidestoshow: 4 } }, { breakpoint: 768, settings: { slidestoshow: 3 } }, { breakpoint: 480, settings: { slidestoshow: 2 } } ] }); jquery('.productsliderimage').slick({ dots: false, speed: 800, infinite: true, slidestoshow: 1, slidestoscroll: 1, adaptiveheight: true, autoplay: true, arrows: false, fade: true, autoplayspeed: 2000, asnavfor: '.paggslider' }); jquery('.paggslider').slick({ slidestoshow: 6, slidestoscroll: 1, asnavfor: '.productsliderimage', arrows: false, focusonselect: true, responsive: [ { breakpoint: 1170, settings: { slidestoshow: 5 } }, { breakpoint: 992, settings: { slidestoshow: 4 } }, { breakpoint: 768, settings: { slidestoshow: 3 } }, { breakpoint: 480, settings: { slidestoshow: 2 } } ] }); } initcustomforms(); // initialize custom form elements function initcustomforms() { jcf.replaceall(); } inittabs(); // content tabs init function inittabs() { jquery('.tabsetlist').tabset({ tablinks: 'a', defaulttab: true }); } }); jquery(window).on('load', function() { "use strict"; initmasonry(); // masonry init function initmasonry() { jquery('.masonryholder').masonry({ itemselector: '.grid-item', columnwidth: 3, resize: true, gutter: 0, isoriginleft: true }); } }); /** abstract base class for collection plugins v1.0.1. written by keith wood (kbwood{at}iinet.com.au) december 2013. licensed under the mit (http://keith-wood.name/licence.html) license. */ (function(){var j=false;window.jqclass=function(){};jqclass.classes={};jqclass.extend=function extender(f){var g=this.prototype;j=true;var h=new this();j=false;for(var i in f){h[i]=typeof f[i]=='function'&&typeof g[i]=='function'?(function(d,e){return function(){var b=this._super;this._super=function(a){return g[d].apply(this,a||[])};var c=e.apply(this,arguments);this._super=b;return c}})(i,f[i]):f[i]}function jqclass(){if(!j&&this._init){this._init.apply(this,arguments)}}jqclass.prototype=h;jqclass.prototype.constructor=jqclass;jqclass.extend=extender;return jqclass}})();(function($){jqclass.classes.jqplugin=jqclass.extend({name:'plugin',defaultoptions:{},regionaloptions:{},_getters:[],_getmarker:function(){return'is-'+this.name},_init:function(){$.extend(this.defaultoptions,(this.regionaloptions&&this.regionaloptions[''])||{});var c=camelcase(this.name);$[c]=this;$.fn[c]=function(a){var b=array.prototype.slice.call(arguments,1);if($[c]._isnotchained(a,b)){return $[c][a].apply($[c],[this[0]].concat(b))}return this.each(function(){if(typeof a==='string'){if(a[0]==='_'||!$[c][a]){throw'unknown method: '+a;}$[c][a].apply($[c],[this].concat(b))}else{$[c]._attach(this,a)}})}},setdefaults:function(a){$.extend(this.defaultoptions,a||{})},_isnotchained:function(a,b){if(a==='option'&&(b.length===0||(b.length===1&&typeof b[0]==='string'))){return true}return $.inarray(a,this._getters)>-1},_attach:function(a,b){a=$(a);if(a.hasclass(this._getmarker())){return}a.addclass(this._getmarker());b=$.extend({},this.defaultoptions,this._getmetadata(a),b||{});var c=$.extend({name:this.name,elem:a,options:b},this._instsettings(a,b));a.data(this.name,c);this._postattach(a,c);this.option(a,b)},_instsettings:function(a,b){return{}},_postattach:function(a,b){},_getmetadata:function(d){try{var f=d.data(this.name.tolowercase())||'';f=f.replace(/'/g,'"');f=f.replace(/([a-za-z0-9]+):/g,function(a,b,i){var c=f.substring(0,i).match(/"/g);return(!c||c.length%2===0?'"'+b+'":':b+':')});f=$.parsejson('{'+f+'}');for(var g in f){var h=f[g];if(typeof h==='string'&&h.match(/^new date\((.*)\)$/)){f[g]=eval(h)}}return f}catch(e){return{}}},_getinst:function(a){return $(a).data(this.name)||{}},option:function(a,b,c){a=$(a);var d=a.data(this.name);if(!b||(typeof b==='string'&&c==null)){var e=(d||{}).options;return(e&&b?e[b]:e)}if(!a.hasclass(this._getmarker())){return}var e=b||{};if(typeof b==='string'){e={};e[b]=c}this._optionschanged(a,d,e);$.extend(d.options,e)},_optionschanged:function(a,b,c){},destroy:function(a){a=$(a);if(!a.hasclass(this._getmarker())){return}this._predestroy(a,this._getinst(a));a.removedata(this.name).removeclass(this._getmarker())},_predestroy:function(a,b){}});function camelcase(c){return c.replace(/-([a-z])/g,function(a,b){return b.touppercase()})}$.jqplugin={createplugin:function(a,b){if(typeof a==='object'){b=a;a='jqplugin'}a=camelcase(a);var c=camelcase(b.name);jqclass.classes[c]=jqclass.classes[a].extend(b);new jqclass.classes[c]()}}})(jquery); /* http://keith-wood.name/countdown.html countdown for jquery v2.0.2. written by keith wood (kbwood{at}iinet.com.au) january 2008. available under the mit (http://keith-wood.name/licence.html) license. please attribute the author if you use it. */ (function($){var w='countdown';var y=0;var o=1;var w=2;var d=3;var h=4;var m=5;var s=6;$.jqplugin.createplugin({name:w,defaultoptions:{until:null,since:null,timezone:null,serversync:null,format:'dhms',layout:'',compact:false,padzeroes:false,significant:0,description:'',expiryurl:'',expirytext:'',alwaysexpire:false,onexpiry:null,ontick:null,tickinterval:1},regionaloptions:{'':{labels:['years','months','weeks','days','hours','minutes','seconds'],labels1:['year','month','week','day','hour','minute','second'],compactlabels:['y','m','w','d'],whichlabels:null,digits:['0','1','2','3','4','5','6','7','8','9'],timeseparator:':',isrtl:false}},_getters:['gettimes'],_rtlclass:w+'-rtl',_sectionclass:w+'-section',_amountclass:w+'-amount',_periodclass:w+'-period',_rowclass:w+'-row',_holdingclass:w+'-holding',_showclass:w+'-show',_descrclass:w+'-descr',_timerelems:[],_init:function(){var c=this;this._super();this._serversyncs=[];var d=(typeof date.now=='function'?date.now:function(){return new date().gettime()});var e=(window.performance&&typeof window.performance.now=='function');function timercallback(a){var b=(a<1e12?(e?(performance.now()+performance.timing.navigationstart):d()):a||d());if(b-g>=1000){c._updateelems();g=b}f(timercallback)}var f=window.requestanimationframe||window.webkitrequestanimationframe||window.mozrequestanimationframe||window.orequestanimationframe||window.msrequestanimationframe||null;var g=0;if(!f||$.norequestanimationframe){$.norequestanimationframe=null;setinterval(function(){c._updateelems()},980)}else{g=window.animationstarttime||window.webkitanimationstarttime||window.mozanimationstarttime||window.oanimationstarttime||window.msanimationstarttime||d();f(timercallback)}},utcdate:function(a,b,c,e,f,g,h,i){if(typeof b=='object'&&b.constructor==date){i=b.getmilliseconds();h=b.getseconds();g=b.getminutes();f=b.gethours();e=b.getdate();c=b.getmonth();b=b.getfullyear()}var d=new date();d.setutcfullyear(b);d.setutcdate(1);d.setutcmonth(c||0);d.setutcdate(e||1);d.setutchours(f||0);d.setutcminutes((g||0)-(math.abs(a)<30?a*60:a));d.setutcseconds(h||0);d.setutcmilliseconds(i||0);return d},periodstoseconds:function(a){return a[0]*31557600+a[1]*2629800+a[2]*604800+a[3]*86400+a[4]*3600+a[5]*60+a[6]},resync:function(){var d=this;$('.'+this._getmarker()).each(function(){var a=$.data(this,d.name);if(a.options.serversync){var b=null;for(var i=0;i-1)},_removeelem:function(b){this._timerelems=$.map(this._timerelems,function(a){return(a==b?null:a)})},_updateelems:function(){for(var i=this._timerelems.length-1;i>=0;i--){this._updatecountdown(this._timerelems[i])}},_optionschanged:function(a,b,c){if(c.layout){c.layout=c.layout.replace(/</g,'<').replace(/>/g,'>')}this._resetextralabels(b.options,c);var d=(b.options.timezone!=c.timezone);$.extend(b.options,c);this._adjustsettings(a,b,c.until!=null||c.since!=null||d);var e=new date();if((b._since&&b._sincee)){this._addelem(a[0])}this._updatecountdown(a,b)},_updatecountdown:function(a,b){a=a.jquery?a:$(a);b=b||this._getinst(a);if(!b){return}a.html(this._generatehtml(b)).toggleclass(this._rtlclass,b.options.isrtl);if($.isfunction(b.options.ontick)){var c=b._hold!='lap'?b._periods:this._calculateperiods(b,b._show,b.options.significant,new date());if(b.options.tickinterval==1||this.periodstoseconds(c)%b.options.tickinterval==0){b.options.ontick.apply(a[0],[c])}}var d=b._hold!='pause'&&(b._since?b._now.gettime()=b._until.gettime());if(d&&!b._expiring){b._expiring=true;if(this._haselem(a[0])||b.options.alwaysexpire){this._removeelem(a[0]);if($.isfunction(b.options.onexpiry)){b.options.onexpiry.apply(a[0],[])}if(b.options.expirytext){var e=b.options.layout;b.options.layout=b.options.expirytext;this._updatecountdown(a[0],b);b.options.layout=e}if(b.options.expiryurl){window.location=b.options.expiryurl}}b._expiring=false}else if(b._hold=='pause'){this._removeelem(a[0])}},_resetextralabels:function(a,b){for(var n in b){if(n.match(/[ll]abels[02-9]|compactlabels1/)){a[n]=b[n]}}for(var n in a){if(n.match(/[ll]abels[02-9]|compactlabels1/)&&typeof b[n]==='undefined'){a[n]=null}}},_adjustsettings:function(a,b,c){var d=null;for(var i=0;i0);h[i]=(c._show[i]=='?'&&!e?null:c._show[i]);f+=(h[i]?1:0);g-=(c._periods[i]>0?1:0)}var j=[false,false,false,false,false,false,false];for(var i=s;i>=y;i--){if(c._show[i]){if(c._periods[i]){j[i]=true}else{j[i]=g>0;g--}}}var k=(c.options.compact?c.options.compactlabels:c.options.labels);var l=c.options.whichlabels||this._normallabels;var m=function(a){var b=c.options['compactlabels'+l(c._periods[a])];return(h[a]?d._translatedigits(c,c._periods[a])+(b?b[a]:k[a])+' ':'')};var n=(c.options.padzeroes?2:1);var o=function(a){var b=c.options['labels'+l(c._periods[a])];return((!c.options.significant&&h[a])||(c.options.significant&&j[a])?''+''+d._mindigits(c,c._periods[a],n)+''+''+(b?b[a]:k[a])+'':'')};return(c.options.layout?this._buildlayout(c,h,c.options.layout,c.options.compact,c.options.significant,j):((c.options.compact?''+m(y)+m(o)+m(w)+m(d)+(h[h]?this._mindigits(c,c._periods[h],2):'')+(h[m]?(h[h]?c.options.timeseparator:'')+this._mindigits(c,c._periods[m],2):'')+(h[s]?(h[h]||h[m]?c.options.timeseparator:'')+this._mindigits(c,c._periods[s],2):''):''+o(y)+o(o)+o(w)+o(d)+o(h)+o(m)+o(s))+''+(c.options.description?''+c.options.description+'':'')))},_buildlayout:function(c,d,e,f,g,h){var j=c.options[f?'compactlabels':'labels'];var k=c.options.whichlabels||this._normallabels;var l=function(a){return(c.options[(f?'compactlabels':'labels')+k(c._periods[a])]||j)[a]};var m=function(a,b){return c.options.digits[math.floor(a/b)%10]};var o={desc:c.options.description,sep:c.options.timeseparator,yl:l(y),yn:this._mindigits(c,c._periods[y],1),ynn:this._mindigits(c,c._periods[y],2),ynnn:this._mindigits(c,c._periods[y],3),y1:m(c._periods[y],1),y10:m(c._periods[y],10),y100:m(c._periods[y],100),y1000:m(c._periods[y],1000),ol:l(o),on:this._mindigits(c,c._periods[o],1),onn:this._mindigits(c,c._periods[o],2),onnn:this._mindigits(c,c._periods[o],3),o1:m(c._periods[o],1),o10:m(c._periods[o],10),o100:m(c._periods[o],100),o1000:m(c._periods[o],1000),wl:l(w),wn:this._mindigits(c,c._periods[w],1),wnn:this._mindigits(c,c._periods[w],2),wnnn:this._mindigits(c,c._periods[w],3),w1:m(c._periods[w],1),w10:m(c._periods[w],10),w100:m(c._periods[w],100),w1000:m(c._periods[w],1000),dl:l(d),dn:this._mindigits(c,c._periods[d],1),dnn:this._mindigits(c,c._periods[d],2),dnnn:this._mindigits(c,c._periods[d],3),d1:m(c._periods[d],1),d10:m(c._periods[d],10),d100:m(c._periods[d],100),d1000:m(c._periods[d],1000),hl:l(h),hn:this._mindigits(c,c._periods[h],1),hnn:this._mindigits(c,c._periods[h],2),hnnn:this._mindigits(c,c._periods[h],3),h1:m(c._periods[h],1),h10:m(c._periods[h],10),h100:m(c._periods[h],100),h1000:m(c._periods[h],1000),ml:l(m),mn:this._mindigits(c,c._periods[m],1),mnn:this._mindigits(c,c._periods[m],2),mnnn:this._mindigits(c,c._periods[m],3),m1:m(c._periods[m],1),m10:m(c._periods[m],10),m100:m(c._periods[m],100),m1000:m(c._periods[m],1000),sl:l(s),sn:this._mindigits(c,c._periods[s],1),snn:this._mindigits(c,c._periods[s],2),snnn:this._mindigits(c,c._periods[s],3),s1:m(c._periods[s],1),s10:m(c._periods[s],10),s100:m(c._periods[s],100),s1000:m(c._periods[s],1000)};var p=e;for(var i=y;i<=s;i++){var q='yowdhms'.charat(i);var r=new regexp('\\{'+q+'<\\}([\\s\\s]*)\\{'+q+'>\\}','g');p=p.replace(r,((!g&&d[i])||(g&&h[i])?'$1':''))}$.each(o,function(n,v){var a=new regexp('\\{'+n+'\\}','g');p=p.replace(a,v)});return p},_mindigits:function(a,b,c){b=''+b;if(b.length>=c){return this._translatedigits(a,b)}b='0000000000'+b;return this._translatedigits(a,b.substr(b.length-c))},_translatedigits:function(b,c){return(''+c).replace(/[0-9]/g,function(a){return b.options.digits[a]})},_determineshow:function(a){var b=a.options.format;var c=[];c[y]=(b.match('y')?'?':(b.match('y')?'!':null));c[o]=(b.match('o')?'?':(b.match('o')?'!':null));c[w]=(b.match('w')?'?':(b.match('w')?'!':null));c[d]=(b.match('d')?'?':(b.match('d')?'!':null));c[h]=(b.match('h')?'?':(b.match('h')?'!':null));c[m]=(b.match('m')?'?':(b.match('m')?'!':null));c[s]=(b.match('s')?'?':(b.match('s')?'!':null));return c},_calculateperiods:function(c,d,e,f){c._now=f;c._now.setmilliseconds(0);var g=new date(c._now.gettime());if(c._since){if(f.gettime()c._until.gettime()){c._now=f=g}}var h=[0,0,0,0,0,0,0];if(d[y]||d[o]){var i=this._getdaysinmonth(f.getfullyear(),f.getmonth());var j=this._getdaysinmonth(g.getfullyear(),g.getmonth());var k=(g.getdate()==f.getdate()||(g.getdate()>=math.min(i,j)&&f.getdate()>=math.min(i,j)));var l=function(a){return(a.gethours()*60+a.getminutes())*60+a.getseconds()};var m=math.max(0,(g.getfullyear()-f.getfullyear())*12+g.getmonth()-f.getmonth()+((g.getdate()o){f.setdate(o)}f.setfullyear(f.getfullyear()+h[y]);f.setmonth(f.getmonth()+h[o]);if(n){f.setdate(o)}}var p=math.floor((g.gettime()-f.gettime())/1000);var q=function(a,b){h[a]=(d[a]?math.floor(p/b):0);p-=h[a]*b};q(w,604800);q(d,86400);q(h,3600);q(m,60);q(s,1);if(p>0&&!c._since){var r=[1,12,4.3482,7,24,60,60];var s=s;var t=1;for(var u=s;u>=y;u--){if(d[u]){if(h[s]>=t){h[s]=0;p=1}if(p>0){h[u]++;p=0;s=u;t=1}}t*=r[u]}}if(e){for(var u=y;u<=s;u++){if(e&&h[u]){e--}else if(!e){h[u]=0}}}return h}})})(jquery); /* _ _ _ _ ___| (_) ___| | __ (_)___ / __| | |/ __| |/ / | / __| \__ \ | | (__| < _ | \__ \ |___/_|_|\___|_|\_(_)/ |___/ |__/ version: 1.9.0 author: ken wheeler website: http://kenwheeler.github.io docs: http://kenwheeler.github.io/slick repo: http://github.com/kenwheeler/slick issues: http://github.com/kenwheeler/slick/issues */ (function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jquery)})(function(i){"use strict";var e=window.slick||{};e=function(){function e(e,o){var s,n=this;n.defaults={accessibility:!0,adaptiveheight:!1,appendarrows:i(e),appenddots:i(e),arrows:!0,asnavfor:null,prevarrow:'',nextarrow:'',autoplay:!1,autoplayspeed:3e3,centermode:!1,centerpadding:"50px",cssease:"ease",custompaging:function(e,t){return i('