/**handles:vc_waypoints,wpb_scrollTo_js,wpb_php_js,vc_inline_iframe_js,penci_inline_iframe_js**/ /*! * WPBakery Page Builder v6.0.0 (https://wpbakery.com) * Copyright 2011-2019 Michael M, WPBakery * License: Commercial. More details: http://go.wpbakery.com/licensing */ // jscs:disable // jshint ignore: start /*! Waypoints - 4.0.1 Copyright © 2011-2016 Caleb Troughton Licensed under the MIT license. https://github.com/imakewebthings/waypoints/blob/master/licenses.txt */ !function(){"use strict";var e=0,r={};function i(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=i.Adapter.extend({},i.defaults,t),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),r[this.key]=this,e+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete r[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var e=[];for(var i in r)e.push(r[i]);for(var o=0,n=e.length;oo.oldScroll?o.forward:o.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerPoint){var a=o.oldScroll=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(n),t[s.group.id]=s.group)}}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},n.prototype.innerHeight=function(){return this.element==this.element.window?y.viewportHeight():this.adapter.innerHeight()},n.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},n.prototype.innerWidth=function(){return this.element==this.element.window?y.viewportWidth():this.adapter.innerWidth()},n.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;o=r.oldScroll,p=!l&&!h,!w&&(l&&h)?(c.queueTrigger(r.backward),o[c.group.id]=c.group):!w&&p?(c.queueTrigger(r.forward),o[c.group.id]=c.group):w&&r.oldScroll>=c.triggerPoint&&(c.queueTrigger(r.forward),o[c.group.id]=c.group)}}return y.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)},n.refreshAll=function(){for(var t in o)o[t].refresh()},n.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){t&&t(),n.refreshAll()},y.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},y.Context=n}(),function(){"use strict";function s(t,e){return t.triggerPoint-e.triggerPoint}function a(t,e){return e.triggerPoint-t.triggerPoint}var e={vertical:{},horizontal:{}},i=window.VcWaypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),e[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t],i="up"===t||"left"===t;e.sort(i?a:s);for(var o=0,n=e.length;ogmailcom | http://flesler.blogspot.com * Licensed under MIT * @author Ariel Flesler * @version 1.4.11 */ ;(function(a){if(typeof define==='function'&&define.amd){define(['jquery'],a)}else{a(jQuery)}}(function($){var j=$.scrollTo=function(a,b,c){return $(window).scrollTo(a,b,c)};j.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1,limit:true};j.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(f,g,h){if(typeof g=='object'){h=g;g=0}if(typeof h=='function')h={onAfter:h};if(f=='max')f=9e9;h=$.extend({},j.defaults,h);g=g||h.duration;h.queue=h.queue&&h.axis.length>1;if(h.queue)g/=2;h.offset=both(h.offset);h.over=both(h.over);return this._scrollable().each(function(){if(f==null)return;var d=this,$elem=$(d),targ=f,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}var e=$.isFunction(h.offset)&&h.offset(d,targ)||h.offset;$.each(h.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=j.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(h.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=e[pos]||0;if(h.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*h.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(h.limit&&/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&h.queue){if(old!=attr[key])animate(h.onAfterFirst);delete attr[key]}});animate(h.onAfter);function animate(a){$elem.animate(attr,g,h.easing,a&&function(){a.call(this,targ,h)})}}).end()};j.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return $.isFunction(a)||typeof a=='object'?a:{top:a,left:a}};return j})); /*! * WPBakery Page Builder v6.0.0 (https://wpbakery.com) * Copyright 2011-2019 Michael M, WPBakery * License: Commercial. More details: http://go.wpbakery.com/licensing */ // jscs:disable // jshint ignore: start /*! * WPBakery Page Builder v6.0.0 (https://wpbakery.com) * Copyright 2011-2019 Michael M, WPBakery * License: Commercial. More details: http://go.wpbakery.com/licensing */ // jscs:disable // jshint ignore: start /*! * WPBakery Page Builder v6.0.0 (https://wpbakery.com) * Copyright 2011-2019 Michael M, WPBakery * License: Commercial. More details: http://go.wpbakery.com/licensing */ // jscs:disable // jshint ignore: start /* * More info at: http://phpjs.org * * This is version: 3.26 * php.js is copyright 2011 Kevin van Zonneveld. * * Portions copyright Brett Zamir (http://brett-zamir.me), Kevin van Zonneveld * (http://kevin.vanzonneveld.net), Onno Marsman, Theriault, Michael White * (http://getsprink.com), Waldo Malqui Silva, Paulo Freitas, Jack, Jonas * Raoni Soares Silva (http://www.jsfromhell.com), Philip Peterson, Legaev * Andrey, Ates Goral (http://magnetiq.com), Alex, Ratheous, Martijn Wieringa, * Rafał Kukawski (http://blog.kukawski.pl), lmeyrick * (https://sourceforge.net/projects/bcmath-js/), Nate, Philippe Baumann, * Enrique Gonzalez, Webtoolkit.info (http://www.webtoolkit.info/), Carlos R. * L. Rodrigues (http://www.jsfromhell.com), Ash Searle * (http://hexmen.com/blog/), Jani Hartikainen, travc, Ole Vrijenhoek, * Erkekjetter, Michael Grier, Rafał Kukawski (http://kukawski.pl), Johnny * Mast (http://www.phpvrouwen.nl), T.Wild, d3x, * http://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hex-in-javascript, * Rafał Kukawski (http://blog.kukawski.pl/), stag019, pilus, WebDevHobo * (http://webdevhobo.blogspot.com/), marrtins, GeekFG * (http://geekfg.blogspot.com), Andrea Giammarchi * (http://webreflection.blogspot.com), Arpad Ray (mailto:arpad@php.net), * gorthaur, Paul Smith, Tim de Koning (http://www.kingsquare.nl), Joris, Oleg * Eremeev, Steve Hilder, majak, gettimeofday, KELAN, Josh Fraser * (http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/), * Marc Palau, Kevin van Zonneveld (http://kevin.vanzonneveld.net/), Martin * (http://www.erlenwiese.de/), Breaking Par Consulting Inc * (http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256CFB006C45F7), * Chris, Mirek Slugen, saulius, Alfonso Jimenez * (http://www.alfonsojimenez.com), Diplom@t (http://difane.com/), felix, * Mailfaker (http://www.weedem.fr/), Tyler Akins (http://rumkin.com), Caio * Ariede (http://caioariede.com), Robin, Kankrelune * (http://www.webfaktory.info/), Karol Kowalski, Imgen Tata * (http://www.myipdf.com/), mdsjack (http://www.mdsjack.bo.it), Dreamer, * Felix Geisendoerfer (http://www.debuggable.com/felix), Lars Fischer, AJ, * David, Aman Gupta, Michael White, Public Domain * (http://www.json.org/json2.js), Steven Levithan * (http://blog.stevenlevithan.com), Sakimori, Pellentesque Malesuada, * Thunder.m, Dj (http://phpjs.org/functions/htmlentities:425#comment_134018), * Steve Clay, David James, Francois, class_exists, nobbler, T. Wild, Itsacon * (http://www.itsacon.net/), date, Ole Vrijenhoek (http://www.nervous.nl/), * Fox, Raphael (Ao RUDLER), Marco, noname, Mateusz "loonquawl" Zalega, Frank * Forte, Arno, ger, mktime, john (http://www.jd-tech.net), Nick Kolosov * (http://sammy.ru), marc andreu, Scott Cariss, Douglas Crockford * (http://javascript.crockford.com), madipta, Slawomir Kaniecki, * ReverseSyntax, Nathan, Alex Wilson, kenneth, Bayron Guevara, Adam Wallner * (http://web2.bitbaro.hu/), paulo kuong, jmweb, Lincoln Ramsay, djmix, * Pyerre, Jon Hohle, Thiago Mata (http://thiagomata.blog.com), lmeyrick * (https://sourceforge.net/projects/bcmath-js/this.), Linuxworld, duncan, * Gilbert, Sanjoy Roy, Shingo, sankai, Oskar Larsson Högfeldt * (http://oskar-lh.name/), Denny Wardhana, 0m3r, Everlasto, Subhasis Deb, * josh, jd, Pier Paolo Ramon (http://www.mastersoup.com/), P, merabi, Soren * Hansen, Eugene Bulkin (http://doubleaw.com/), Der Simon * (http://innerdom.sourceforge.net/), echo is bad, Ozh, XoraX * (http://www.xorax.info), EdorFaus, JB, J A R, Marc Jansen, Francesco, LH, * Stoyan Kyosev (http://www.svest.org/), nord_ua, omid * (http://phpjs.org/functions/380:380#comment_137122), Brad Touesnard, MeEtc * (http://yass.meetcweb.com), Peter-Paul Koch * (http://www.quirksmode.org/js/beat.html), Olivier Louvignes * (http://mg-crea.com/), T0bsn, Tim Wiel, Bryan Elliott, Jalal Berrami, * Martin, JT, David Randall, Thomas Beaucourt (http://www.webapp.fr), taith, * vlado houba, Pierre-Luc Paour, Kristof Coomans (SCK-CEN Belgian Nucleair * Research Centre), Martin Pool, Kirk Strobeck, Rick Waldron, Brant Messenger * (http://www.brantmessenger.com/), Devan Penner-Woelk, Saulo Vallory, Wagner * B. Soares, Artur Tchernychev, Valentina De Rosa, Jason Wong * (http://carrot.org/), Christoph, Daniel Esteban, strftime, Mick@el, rezna, * Simon Willison (http://simonwillison.net), Anton Ongson, Gabriel Paderni, * Marco van Oort, penutbutterjelly, Philipp Lenssen, Bjorn Roesbeke * (http://www.bjornroesbeke.be/), Bug?, Eric Nagel, Tomasz Wesolowski, * Evertjan Garretsen, Bobby Drake, Blues (http://tech.bluesmoon.info/), Luke * Godfrey, Pul, uestla, Alan C, Ulrich, Rafal Kukawski, Yves Sucaet, * sowberry, Norman "zEh" Fuchs, hitwork, Zahlii, johnrembo, Nick Callen, * Steven Levithan (stevenlevithan.com), ejsanders, Scott Baker, Brian Tafoya * (http://www.premasolutions.com/), Philippe Jausions * (http://pear.php.net/user/jausions), Aidan Lister * (http://aidanlister.com/), Rob, e-mike, HKM, ChaosNo1, metjay, strcasecmp, * strcmp, Taras Bogach, jpfle, Alexander Ermolaev * (http://snippets.dzone.com/user/AlexanderErmolaev), DxGx, kilops, Orlando, * dptr1988, Le Torbi, James (http://www.james-bell.co.uk/), Pedro Tainha * (http://www.pedrotainha.com), James, Arnout Kazemier * (http://www.3rd-Eden.com), Chris McMacken, gabriel paderni, Yannoo, * FGFEmperor, baris ozdil, Tod Gentille, Greg Frazier, jakes, 3D-GRAF, Allan * Jensen (http://www.winternet.no), Howard Yeend, Benjamin Lupton, davook, * daniel airton wermann (http://wermann.com.br), Atli Þór, Maximusya, Ryan * W Tenney (http://ryan.10e.us), Alexander M Beedie, fearphage * (http://http/my.opera.com/fearphage/), Nathan Sepulveda, Victor, Matteo, * Billy, stensi, Cord, Manish, T.J. Leahy, Riddler * (http://www.frontierwebdev.com/), Rafał Kukawski, FremyCompany, Matt * Bradley, Tim de Koning, Luis Salazar (http://www.freaky-media.com/), Diogo * Resende, Rival, Andrej Pavlovic, Garagoth, Le Torbi * (http://www.letorbi.de/), Dino, Josep Sanz (http://www.ws3.es/), rem, * Russell Walker (http://www.nbill.co.uk/), Jamie Beck * (http://www.terabit.ca/), setcookie, Michael, YUI Library: * http://developer.yahoo.com/yui/docs/YAHOO.util.DateLocale.html, Blues at * http://hacks.bluesmoon.info/strftime/strftime.js, Ben * (http://benblume.co.uk/), DtTvB * (http://dt.in.th/2008-09-16.string-length-in-bytes.html), Andreas, William, * meo, incidence, Cagri Ekin, Amirouche, Amir Habibi * (http://www.residence-mixte.com/), Luke Smith (http://lucassmith.name), * Kheang Hok Chin (http://www.distantia.ca/), Jay Klehr, Lorenzo Pisani, * Tony, Yen-Wei Liu, Greenseed, mk.keck, Leslie Hoare, dude, booeyOH, Ben * Bryan * * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL KEVIN VAN ZONNEVELD BE LIABLE FOR ANY CLAIM, DAMAGES * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ // Compression: minified function abs(mixed_number){return Math.abs(mixed_number)||0;} function acos(arg){return Math.acos(arg);} function acosh(arg){return Math.log(arg+Math.sqrt(arg*arg-1));} function addslashes(str){return(str+'').replace(/[\\"']/g,'\\$&').replace(/\u0000/g,'\\0');} function array_change_key_case(array,cs){var case_fn,key,tmp_ar={};if(Object.prototype.toString.call(array)==='[object Array]'){return array;} if(array&&typeof array==='object'&&array.change_key_case){return array.change_key_case(cs);} if(array&&typeof array==='object'){case_fn=(!cs||cs==='CASE_LOWER')?'toLowerCase':'toUpperCase';for(key in array){tmp_ar[key[case_fn]()]=array[key];} return tmp_ar;} return false;} function array_chunk(input,size,preserve_keys){var x,p='',i=0,c=-1,l=input.length||0,n=[];if(size<1){return null;} if(Object.prototype.toString.call(input)==='[object Array]'){if(preserve_keys){while(i0){for(i=0;ihighestIdx?size:highestIdx;}}} for(i=1;i0){return inputArr.shift();}} function array_slice(arr,offst,lgth,preserve_keys){var key='';if(Object.prototype.toString.call(arr)!=='[object Array]'||(preserve_keys&&offst!==0)){var lgt=0,newAssoc={};for(key in arr){lgt+=1;newAssoc[key]=arr[key];} arr=newAssoc;offst=(offst<0)?lgt+offst:offst;lgth=lgth===undefined?lgt:(lgth<0)?lgt+lgth-offst:lgth;var assoc={};var start=false,it=-1,arrlgth=0,no_pk_idx=0;for(key in arr){++it;if(arrlgth>=lgth){break;} if(it==offst){start=true;} if(!start){continue;}++arrlgth;if(this.is_int(key)&&!preserve_keys){assoc[no_pk_idx++]=arr[key];}else{assoc[key]=arr[key];}} return assoc;} if(lgth===undefined){return arr.slice(offst);}else if(lgth>=0){return arr.slice(offst,offst+lgth);}else{return arr.slice(offst,lgth);}} function array_splice(arr,offst,lgth,replacement){var _checkToUpIndices=function(arr,ct,key){if(arr[ct]!==undefined){var tmp=ct;ct+=1;if(ct===key){ct+=1;} ct=_checkToUpIndices(arr,ct,key);arr[ct]=arr[tmp];delete arr[tmp];} return ct;};if(replacement&&typeof replacement!=='object'){replacement=[replacement];} if(lgth===undefined){lgth=offst>=0?arr.length-offst:-offst;}else if(lgth<0){lgth=(offst>=0?arr.length-offst:-offst)+lgth;} if(Object.prototype.toString.call(arr)!=='[object Array]'){var lgt=0,ct=-1,rmvd=[],rmvdObj={},repl_ct=-1,int_ct=-1;var returnArr=true,rmvd_ct=0,rmvd_lgth=0,key='';for(key in arr){lgt+=1;} offst=(offst>=0)?offst:lgt+offst;for(key in arr){ct+=1;if(ctbFloat?1:aFloatb?1:abFloat?1:aFloatb?1:a>16&0xff;o2=bits>>8&0xff;o3=bits&0xff;if(h3==64){tmp_arr[ac++]=String.fromCharCode(o1);}else if(h4==64){tmp_arr[ac++]=String.fromCharCode(o1,o2);}else{tmp_arr[ac++]=String.fromCharCode(o1,o2,o3);}}while(i>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;tmp_arr[ac++]=b64.charAt(h1)+b64.charAt(h2)+b64.charAt(h3)+b64.charAt(h4);}while(i0&&m<13&&y>0&&y<32768&&d>0&&d<=(new Date(y,m,0)).getDate();} function chop(str,charlist){return this.rtrim(str,charlist);} function chr(codePt){if(codePt>0xFFFF){codePt-=0x10000;return String.fromCharCode(0xD800+(codePt>>10),0xDC00+(codePt&0x3FF));} return String.fromCharCode(codePt);} function chunk_split(body,chunklen,end){chunklen=parseInt(chunklen,10)||76;end=end||'\r\n';if(chunklen<1){return false;} return body.match(new RegExp(".{0,"+chunklen+"}","g")).join(end);} function class_exists(cls){var i='';cls=this.window[cls];if(typeof cls!=='function'){return false;} for(i in cls.prototype){return true;} for(i in cls){if(i!=='prototype'){return true;}} if(cls.toSource&&cls.toSource().match(/this\./)){return true;} return false;} function compact(){var matrix={},that=this;var process=function(value){var i=0,l=value.length,key_value='';for(i=0;i>>8)^x;} return crc^(-1);} function date(format,timestamp){var that=this,jsdate,f,formatChr=/\\?([a-z])/gi,formatChrCb,_pad=function(n,c){if((n=n+'').length4&&j<21?'th':{1:'st',2:'nd',3:'rd'}[j%10]||'th';},w:function(){return jsdate.getDay();},z:function(){var a=new Date(f.Y(),f.n()-1,f.j()),b=new Date(f.Y(),0,1);return Math.round((a-b)/864e5)+1;},W:function(){var a=new Date(f.Y(),f.n()-1,f.j()-f.N()+3),b=new Date(a.getFullYear(),0,4);return _pad(1+Math.round((a-b)/864e5/7),2);},F:function(){return txt_words[6+f.n()];},m:function(){return _pad(f.n(),2);},M:function(){return f.F().slice(0,3);},n:function(){return jsdate.getMonth()+1;},t:function(){return(new Date(f.Y(),f.n(),0)).getDate();},L:function(){return new Date(f.Y(),1,29).getMonth()===1|0;},o:function(){var n=f.n(),W=f.W(),Y=f.Y();return Y+(n===12&&W<9?-1:n===1&&W>9);},Y:function(){return jsdate.getFullYear();},y:function(){return(f.Y()+"").slice(-2);},a:function(){return jsdate.getHours()>11?"pm":"am";},A:function(){return f.a().toUpperCase();},B:function(){var H=jsdate.getUTCHours()*36e2,i=jsdate.getUTCMinutes()*60,s=jsdate.getUTCSeconds();return _pad(Math.floor((H+i+s+36e2)/86.4)%1e3,3);},g:function(){return f.G()%12||12;},G:function(){return jsdate.getHours();},h:function(){return _pad(f.g(),2);},H:function(){return _pad(f.G(),2);},i:function(){return _pad(jsdate.getMinutes(),2);},s:function(){return _pad(jsdate.getSeconds(),2);},u:function(){return _pad(jsdate.getMilliseconds()*1000,6);},e:function(){throw'Not supported (see source code of date() for timezone on how to add support)';},I:function(){var a=new Date(f.Y(),0),c=Date.UTC(f.Y(),0),b=new Date(f.Y(),6),d=Date.UTC(f.Y(),6);return 0+((a-c)!==(b-d));},O:function(){var tzo=jsdate.getTimezoneOffset(),a=Math.abs(tzo);return(tzo>0?"-":"+")+_pad(Math.floor(a/60)*100+a%60,4);},P:function(){var O=f.O();return(O.substr(0,3)+":"+O.substr(3,2));},T:function(){return'UTC';},Z:function(){return-jsdate.getTimezoneOffset()*60;},c:function(){return'Y-m-d\\Th:i:sP'.replace(formatChr,formatChrCb);},r:function(){return'D, d M Y H:i:s O'.replace(formatChr,formatChrCb);},U:function(){return jsdate.getTime()/1000|0;}};this.date=function(format,timestamp){that=this;jsdate=((typeof timestamp==='undefined')?new Date():(timestamp instanceof Date)?new Date(timestamp):new Date(timestamp*1000));return format.replace(formatChr,formatChrCb);};return this.date(format,timestamp);} function decbin(number){if(number<0){number=0xFFFFFFFF+number+1;} return parseInt(number,10).toString(2);} function dechex(number){if(number<0){number=0xFFFFFFFF+number+1;} return parseInt(number,10).toString(16);} function decoct(number){if(number<0){number=0xFFFFFFFF+number+1;} return parseInt(number,10).toString(8);} function deg2rad(angle){return(angle/180)*Math.PI;} function doubleval(mixed_var){return this.floatval(mixed_var);} function echo(){var arg='',argc=arguments.length,argv=arguments,i=0,holder,win=this.window,d=win.document,ns_xhtml='http://www.w3.org/1999/xhtml',ns_xul='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul';var stringToDOM=function(str,parent,ns,container){var extraNSs='';if(ns===ns_xul){extraNSs=' xmlns:html="'+ns_xhtml+'"';} var stringContainer='<'+container+' xmlns="'+ns+'"'+extraNSs+'>'+str+'';var dils=win.DOMImplementationLS,dp=win.DOMParser,ax=win.ActiveXObject;if(dils&&dils.createLSInput&&dils.createLSParser){var lsInput=dils.createLSInput();lsInput.stringData=stringContainer;var lsParser=dils.createLSParser(1,null);return lsParser.parse(lsInput).firstChild;}else if(dp){try{var fc=new dp().parseFromString(stringContainer,'text/xml');if(fc&&fc.documentElement&&fc.documentElement.localName!=='parsererror'&&fc.documentElement.namespaceURI!=='http://www.mozilla.org/newlayout/xml/parsererror.xml'){return fc.documentElement.firstChild;}}catch(e){}}else if(ax){var axo=new ax('MSXML2.DOMDocument');axo.loadXML(str);return axo.documentElement;} if(d.createElementNS&&(d.documentElement.namespaceURI||d.documentElement.nodeName.toLowerCase()!=='html'||(d.contentType&&d.contentType!=='text/html'))){holder=d.createElementNS(ns,container);}else{holder=d.createElement(container);} holder.innerHTML=str;while(holder.firstChild){parent.appendChild(holder.firstChild);} return false;};var ieFix=function(node){if(node.nodeType===1){var newNode=d.createElement(node.nodeName);var i,len;if(node.attributes&&node.attributes.length>0){for(i=0,len=node.attributes.length;i0){for(i=0,len=node.childNodes.length;ip){p=pY;} tmp2=(x%y);if(p<-100||p>20){l=Math.round(Math.log(tmp2)/Math.log(10));l2=Math.pow(10,l);return(tmp2/l2).toFixed(l-p)*l2;}else{return parseFloat(tmp2.toFixed(-p));}} function get_class(obj){if(obj&&typeof obj==='object'&&Object.prototype.toString.call(obj)!=='[object Array]'&&obj.constructor&&obj!=this.window){var arr=obj.constructor.toString().match(/function\s*(\w+)/);if(arr&&arr.length==2){return arr[1];}} return false;} function get_defined_vars(){var i='',arr=[],already={};for(i in this.window){try{if(typeof this.window[i]==='object'){for(var j in this.window[i]){if(this.window[j]&&!already[j]){already[j]=1;arr.push(j);}}}else if(!already[i]){already[i]=1;arr.push(i);}}catch(e){if(!already[i]){already[i]=1;arr.push(i);}}} return arr;} function get_headers(url,format){var req=this.window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(!req){throw new Error('XMLHttpRequest not supported');} var tmp,headers,pair,i,j=0;req.open('HEAD',url,false);req.send(null);if(req.readyState<3){return false;} tmp=req.getAllResponseHeaders();tmp=tmp.split('\n');tmp=this.array_filter(tmp,function(value){return value.substring(1)!=='';});headers=format?{}:[];for(i in tmp){if(format){pair=tmp[i].split(':');headers[pair.splice(0,1)]=pair.join(':').substring(1);}else{headers[j++]=tmp[i];}} return headers;} function get_html_translation_table(table,quote_style){var entities={},hash_map={},decimal;var constMappingTable={},constMappingQuoteStyle={};var useTable={},useQuoteStyle={};constMappingTable[0]='HTML_SPECIALCHARS';constMappingTable[1]='HTML_ENTITIES';constMappingQuoteStyle[0]='ENT_NOQUOTES';constMappingQuoteStyle[2]='ENT_COMPAT';constMappingQuoteStyle[3]='ENT_QUOTES';useTable=!isNaN(table)?constMappingTable[table]:table?table.toUpperCase():'HTML_SPECIALCHARS';useQuoteStyle=!isNaN(quote_style)?constMappingQuoteStyle[quote_style]:quote_style?quote_style.toUpperCase():'ENT_COMPAT';if(useTable!=='HTML_SPECIALCHARS'&&useTable!=='HTML_ENTITIES'){throw new Error("Table: "+useTable+' not supported');} entities['38']='&';if(useTable==='HTML_ENTITIES'){entities['160']=' ';entities['161']='¡';entities['162']='¢';entities['163']='£';entities['164']='¤';entities['165']='¥';entities['166']='¦';entities['167']='§';entities['168']='¨';entities['169']='©';entities['170']='ª';entities['171']='«';entities['172']='¬';entities['173']='­';entities['174']='®';entities['175']='¯';entities['176']='°';entities['177']='±';entities['178']='²';entities['179']='³';entities['180']='´';entities['181']='µ';entities['182']='¶';entities['183']='·';entities['184']='¸';entities['185']='¹';entities['186']='º';entities['187']='»';entities['188']='¼';entities['189']='½';entities['190']='¾';entities['191']='¿';entities['192']='À';entities['193']='Á';entities['194']='Â';entities['195']='Ã';entities['196']='Ä';entities['197']='Å';entities['198']='Æ';entities['199']='Ç';entities['200']='È';entities['201']='É';entities['202']='Ê';entities['203']='Ë';entities['204']='Ì';entities['205']='Í';entities['206']='Î';entities['207']='Ï';entities['208']='Ð';entities['209']='Ñ';entities['210']='Ò';entities['211']='Ó';entities['212']='Ô';entities['213']='Õ';entities['214']='Ö';entities['215']='×';entities['216']='Ø';entities['217']='Ù';entities['218']='Ú';entities['219']='Û';entities['220']='Ü';entities['221']='Ý';entities['222']='Þ';entities['223']='ß';entities['224']='à';entities['225']='á';entities['226']='â';entities['227']='ã';entities['228']='ä';entities['229']='å';entities['230']='æ';entities['231']='ç';entities['232']='è';entities['233']='é';entities['234']='ê';entities['235']='ë';entities['236']='ì';entities['237']='í';entities['238']='î';entities['239']='ï';entities['240']='ð';entities['241']='ñ';entities['242']='ò';entities['243']='ó';entities['244']='ô';entities['245']='õ';entities['246']='ö';entities['247']='÷';entities['248']='ø';entities['249']='ù';entities['250']='ú';entities['251']='û';entities['252']='ü';entities['253']='ý';entities['254']='þ';entities['255']='ÿ';} if(useQuoteStyle!=='ENT_NOQUOTES'){entities['34']='"';} if(useQuoteStyle==='ENT_QUOTES'){entities['39']=''';} entities['60']='<';entities['62']='>';for(decimal in entities){if(entities.hasOwnProperty(decimal)){hash_map[String.fromCharCode(decimal)]=entities[decimal];}} return hash_map;} function getdate(timestamp){var _w=['Sun','Mon','Tues','Wednes','Thurs','Fri','Satur'];var _m=['January','February','March','April','May','June','July','August','September','October','November','December'];var d=((typeof(timestamp)=='undefined')?new Date():(typeof(timestamp)=='object')?new Date(timestamp):new Date(timestamp*1000));var w=d.getDay();var m=d.getMonth();var y=d.getFullYear();var r={};r.seconds=d.getSeconds();r.minutes=d.getMinutes();r.hours=d.getHours();r.mday=d.getDate();r.wday=w;r.mon=m+1;r.year=y;r.yday=Math.floor((d-(new Date(y,0,1)))/86400000);r.weekday=_w[w]+'day';r.month=_m[m];r['0']=parseInt(d.getTime()/1000,10);return r;} function getrandmax(){return 2147483647;} function hexdec(hex_string){hex_string=(hex_string+'').replace(/[^a-f0-9]/gi,'');return parseInt(hex_string,16);} function html_entity_decode(string,quote_style){var hash_map={},symbol='',tmp_str='',entity='';tmp_str=string.toString();if(false===(hash_map=this.get_html_translation_table('HTML_ENTITIES',quote_style))){return false;} delete(hash_map['&']);hash_map['&']='&';for(symbol in hash_map){entity=hash_map[symbol];tmp_str=tmp_str.split(entity).join(symbol);} tmp_str=tmp_str.split(''').join("'");return tmp_str;} function htmlentities(string,quote_style,charset,double_encode){var hash_map=this.get_html_translation_table('HTML_ENTITIES',quote_style),symbol='';string=string==null?'':string+'';if(!hash_map){return false;} if(quote_style&"e_style==='ENT_QUOTES'){hash_map["'"]=''';} if(!!double_encode||double_encode==null){for(symbol in hash_map){if(hash_map.hasOwnProperty(symbol)){string=string.split(symbol).join(hash_map[symbol]);}}}else{string=string.replace(/([\s\S]*?)(&(?:#\d+|#x[\da-f]+|[a-zA-Z][\da-z]*);|$)/g,function(ignore,text,entity){for(symbol in hash_map){if(hash_map.hasOwnProperty(symbol)){text=text.split(symbol).join(hash_map[symbol]);}} return text+entity;});} return string;} function htmlspecialchars(string,quote_style,charset,double_encode){var optTemp=0,i=0,noquotes=false;if(typeof quote_style==='undefined'||quote_style===null){quote_style=2;} string=string.toString();if(double_encode!==false){string=string.replace(/&/g,'&');} string=string.replace(//g,'>');var OPTS={'ENT_NOQUOTES':0,'ENT_HTML_QUOTE_SINGLE':1,'ENT_HTML_QUOTE_DOUBLE':2,'ENT_COMPAT':2,'ENT_QUOTES':3,'ENT_IGNORE':4};if(quote_style===0){noquotes=true;} if(typeof quote_style!=='number'){quote_style=[].concat(quote_style);for(i=0;i');var OPTS={'ENT_NOQUOTES':0,'ENT_HTML_QUOTE_SINGLE':1,'ENT_HTML_QUOTE_DOUBLE':2,'ENT_COMPAT':2,'ENT_QUOTES':3,'ENT_IGNORE':4};if(quote_style===0){noquotes=true;} if(typeof quote_style!=='number'){quote_style=[].concat(quote_style);for(i=0;i=IP[5]||IP[2]>=IP[6]||IP[3]>=IP[7]||IP[4]>=IP[8]){return false;} return IP[1]*(IP[0]===1||16777216)+IP[2]*(IP[0]<=2||65536)+IP[3]*(IP[0]<=3||256)+IP[4]*1;} function is_bool(mixed_var){return(typeof mixed_var==='boolean');} function is_double(mixed_var){return this.is_float(mixed_var);} function is_finite(val){var warningType='';if(val===Infinity||val===-Infinity){return false;} if(typeof val=='object'){warningType=(Object.prototype.toString.call(val)==='[object Array]'?'array':'object');}else if(typeof val=='string'&&!val.match(/^[\+\-]?\d/)){warningType='string';} if(warningType){throw new Error('Warning: is_finite() expects parameter 1 to be double, '+warningType+' given');} return true;} function is_float(mixed_var){return+mixed_var===mixed_var&&!!(mixed_var%1);} function is_infinite(val){var warningType='';if(val===Infinity||val===-Infinity){return true;} if(typeof val=='object'){warningType=(Object.prototype.toString.call(val)==='[object Array]'?'array':'object');}else if(typeof val=='string'&&!val.match(/^[\+\-]?\d/)){warningType='string';} if(warningType){throw new Error('Warning: is_infinite() expects parameter 1 to be double, '+warningType+' given');} return false;} function is_int(mixed_var){return mixed_var===~~mixed_var;} function is_integer(mixed_var){return this.is_int(mixed_var);} function is_long(mixed_var){return this.is_float(mixed_var);} function is_nan(val){var warningType='';if(typeof val=='number'&&isNaN(val)){return true;} if(typeof val=='object'){warningType=(Object.prototype.toString.call(val)==='[object Array]'?'array':'object');} else if(typeof val=='string'&&!val.match(/^[\+\-]?\d/)){warningType='string';} if(warningType){throw new Error('Warning: is_nan() expects parameter 1 to be double, '+warningType+' given');} return false;} function is_null(mixed_var){return(mixed_var===null);} function is_numeric(mixed_var){return(typeof(mixed_var)==='number'||typeof(mixed_var)==='string')&&mixed_var!==''&&!isNaN(mixed_var);} function is_real(mixed_var){return this.is_float(mixed_var);} function is_scalar(mixed_var){return(/boolean|number|string/).test(typeof mixed_var);} function is_string(mixed_var){return(typeof(mixed_var)=='string');} function join(glue,pieces){return this.implode(glue,pieces);} function json_decode(str_json){var json=this.window.JSON;if(typeof json==='object'&&typeof json.parse==='function'){try{return json.parse(str_json);}catch(err){if(!(err instanceof SyntaxError)){throw new Error('Unexpected error type in json_decode()');} this.php_js=this.php_js||{};this.php_js.last_error_json=4;return null;}} var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;var j;var text=str_json;cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);});} if((/^[\],:{}\s]*$/).test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return j;} this.php_js=this.php_js||{};this.php_js.last_error_json=4;return null;} function json_encode(mixed_val){var retVal,json=this.window.JSON;try{if(typeof json==='object'&&typeof json.stringify==='function'){retVal=json.stringify(mixed_val);if(retVal===undefined){throw new SyntaxError('json_encode');} return retVal;} var value=mixed_val;var quote=function(string){var escapable=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;var meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';};var str=function(key,holder){var gap='';var indent=' ';var i=0;var k='';var v='';var length=0;var mind=gap;var partial=[];var value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);} switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';} if((this.PHPJS_Resource&&value instanceof this.PHPJS_Resource)||(window.PHPJS_Resource&&value instanceof window.PHPJS_Resource)){throw new SyntaxError('json_encode');} gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;ibFloat?1:aFloatb?1:abFloat?1:aFloatb?1:a1){return Math.log(1+x);} for(var i=1;i=0||proper_address<=4294967295)){output=Math.floor(proper_address/Math.pow(256,3))+'.'+Math.floor((proper_address%Math.pow(256,3))/Math.pow(256,2))+'.'+Math.floor(((proper_address%Math.pow(256,3))%Math.pow(256,2))/Math.pow(256,1))+'.'+Math.floor((((proper_address%Math.pow(256,3))%Math.pow(256,2))%Math.pow(256,1))/Math.pow(256,0));} return output;} function ltrim(str,charlist){charlist=!charlist?' \\s\u00A0':(charlist+'').replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,'$1');var re=new RegExp('^['+charlist+']+','g');return(str+'').replace(re,'');} function max(){var ar,retVal,i=0,n=0,argv=arguments,argc=argv.length,_obj2Array=function(obj){if(Object.prototype.toString.call(obj)==='[object Array]'){return obj;} else{var ar=[];for(var i in obj){if(obj.hasOwnProperty(i)){ar.push(obj[i]);}} return ar;}},_compare=function(current,next){var i=0,n=0,tmp=0,nl=0,cl=0;if(current===next){return 0;} else if(typeof current==='object'){if(typeof next==='object'){current=_obj2Array(current);next=_obj2Array(next);cl=current.length;nl=next.length;if(nl>cl){return 1;} else if(nl0?1:-1);} if(next==current){return 0;} return(next>current?1:-1);};if(argc===0){throw new Error('At least one value should be passed to max()');} else if(argc===1){if(typeof argv[0]==='object'){ar=_obj2Array(argv[0]);} else{throw new Error('Wrong parameter count for max()');} if(ar.length===0){throw new Error('Array must contain at least one element for max()');}} else{ar=argv;} retVal=ar[0];for(i=1,n=ar.length;i>>(32-iShiftBits));};var addUnsigned=function(lX,lY){var lX4,lY4,lX8,lY8,lResult;lX8=(lX&0x80000000);lY8=(lY&0x80000000);lX4=(lX&0x40000000);lY4=(lY&0x40000000);lResult=(lX&0x3FFFFFFF)+(lY&0x3FFFFFFF);if(lX4&lY4){return(lResult^0x80000000^lX8^lY8);} if(lX4|lY4){if(lResult&0x40000000){return(lResult^0xC0000000^lX8^lY8);}else{return(lResult^0x40000000^lX8^lY8);}}else{return(lResult^lX8^lY8);}};var _F=function(x,y,z){return(x&y)|((~x)&z);};var _G=function(x,y,z){return(x&z)|(y&(~z));};var _H=function(x,y,z){return(x^y^z);};var _I=function(x,y,z){return(y^(x|(~z)));};var _FF=function(a,b,c,d,x,s,ac){a=addUnsigned(a,addUnsigned(addUnsigned(_F(b,c,d),x),ac));return addUnsigned(rotateLeft(a,s),b);};var _GG=function(a,b,c,d,x,s,ac){a=addUnsigned(a,addUnsigned(addUnsigned(_G(b,c,d),x),ac));return addUnsigned(rotateLeft(a,s),b);};var _HH=function(a,b,c,d,x,s,ac){a=addUnsigned(a,addUnsigned(addUnsigned(_H(b,c,d),x),ac));return addUnsigned(rotateLeft(a,s),b);};var _II=function(a,b,c,d,x,s,ac){a=addUnsigned(a,addUnsigned(addUnsigned(_I(b,c,d),x),ac));return addUnsigned(rotateLeft(a,s),b);};var convertToWordArray=function(str){var lWordCount;var lMessageLength=str.length;var lNumberOfWords_temp1=lMessageLength+8;var lNumberOfWords_temp2=(lNumberOfWords_temp1-(lNumberOfWords_temp1%64))/64;var lNumberOfWords=(lNumberOfWords_temp2+1)*16;var lWordArray=new Array(lNumberOfWords-1);var lBytePosition=0;var lByteCount=0;while(lByteCount>>29;return lWordArray;};var wordToHex=function(lValue){var wordToHexValue="",wordToHexValue_temp="",lByte,lCount;for(lCount=0;lCount<=3;lCount++){lByte=(lValue>>>(lCount*8))&255;wordToHexValue_temp="0"+lByte.toString(16);wordToHexValue=wordToHexValue+wordToHexValue_temp.substr(wordToHexValue_temp.length-2,2);} return wordToHexValue;};var x=[],k,AA,BB,CC,DD,a,b,c,d,S11=7,S12=12,S13=17,S14=22,S21=5,S22=9,S23=14,S24=20,S31=4,S32=11,S33=16,S34=23,S41=6,S42=10,S43=15,S44=21;str=this.utf8_encode(str);x=convertToWordArray(str);a=0x67452301;b=0xEFCDAB89;c=0x98BADCFE;d=0x10325476;xl=x.length;for(k=0;kcl){return 1;} else if(nl0?1:-1);} if(next==current){return 0;} return(next>current?1:-1);};if(argc===0){throw new Error('At least one value should be passed to min()');} else if(argc===1){if(typeof argv[0]==='object'){ar=_obj2Array(argv[0]);} else{throw new Error('Wrong parameter count for min()');} if(ar.length===0){throw new Error('Array must contain at least one element for min()');}} else{ar=argv;} retVal=ar[0];for(i=1,n=ar.length;i=0?(r[5]<=69?2e3:(r[5]<=100?1900:0)):0);d.setFullYear(r[5],r[3]-1,r[4]);d.setHours(r[0],r[1],r[2]);return(d.getTime()/1e3>>0)-(d.getTime()<0);} function mt_getrandmax(){return 2147483647;} function mt_rand(min,max){var argc=arguments.length;if(argc===0){min=0;max=2147483647;}else if(argc===1){throw new Error('Warning: mt_rand() expects exactly 2 parameters, 1 given');} return Math.floor(Math.random()*(max-min+1))+min;} function natcasesort(inputArr){var valArr=[],k,i,ret,that=this,strictForIn=false,populateArr={};this.php_js=this.php_js||{};this.php_js.ini=this.php_js.ini||{};strictForIn=this.php_js.ini['phpjs.strictForIn']&&this.php_js.ini['phpjs.strictForIn'].local_value&&this.php_js.ini['phpjs.strictForIn'].local_value!=='off';populateArr=strictForIn?inputArr:populateArr;for(k in inputArr){if(inputArr.hasOwnProperty(k)){valArr.push([k,inputArr[k]]);if(strictForIn){delete inputArr[k];}}} valArr.sort(function(a,b){return that.strnatcasecmp(a[1],b[1]);});for(i=0;i':'
';return(str+'').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,'$1'+breakTag+'$2');} function number_format(number,decimals,dec_point,thousands_sep){number=(number+'').replace(/[^0-9+\-Ee.]/g,'');var n=!isFinite(+number)?0:+number,prec=!isFinite(+decimals)?0:Math.abs(decimals),sep=(typeof thousands_sep==='undefined')?',':thousands_sep,dec=(typeof dec_point==='undefined')?'.':dec_point,s='',toFixedFix=function(n,prec){var k=Math.pow(10,prec);return''+Math.round(n*k)/k;};s=(prec?toFixedFix(n,prec):''+Math.round(n)).split('.');if(s[0].length>3){s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,sep);} if((s[1]||'').length|:\\'+(delimiter||'')+'-]','g'),'\\$&');} function print_r(array,return_val){var output='',pad_char=' ',pad_val=4,d=this.window.document,getFuncName=function(fn){var name=(/\W*function\s+([\w\$]+)\s*\(/).exec(fn);if(!name){return'(Anonymous)';} return name[1];},repeat_char=function(len,pad_char){var str='';for(var i=0;i0){cur_depth++;} var base_pad=repeat_char(pad_val*cur_depth,pad_char);var thick_pad=repeat_char(pad_val*(cur_depth+1),pad_char);var str='';if(typeof obj==='object'&&obj!==null&&obj.constructor&&getFuncName(obj.constructor)!=='PHPJS_Resource'){str+='Array\n'+base_pad+'(\n';for(var key in obj){if(Object.prototype.toString.call(obj[key])==='[object Array]'){str+=thick_pad+'['+key+'] => '+formatArray(obj[key],cur_depth+1,pad_val,pad_char);} else{str+=thick_pad+'['+key+'] => '+obj[key]+'\n';}} str+=base_pad+')\n';} else if(obj===null||obj===undefined){str='';} else{str=obj.toString();} return str;};output=formatArray(array,0,pad_val,pad_char);if(return_val!==true){if(d.body){this.echo(output);} else{try{d=XULDocument;this.echo('
'+output+'
');}catch(e){this.echo(output);}} return true;} return output;} function printf(){var body,elmt,d=this.window.document;var ret='';var HTMLNS='http://www.w3.org/1999/xhtml';body=d.getElementsByTagNameNS?(d.getElementsByTagNameNS(HTMLNS,'body')[0]?d.getElementsByTagNameNS(HTMLNS,'body')[0]:d.documentElement.lastChild):d.getElementsByTagName('body')[0];if(!body){return false;} ret=this.sprintf.apply(this,arguments);elmt=d.createTextNode(ret);body.appendChild(elmt);return ret.length;} function property_exists(cls,prop){cls=(typeof cls==='string')?this.window[cls]:cls;if(typeof cls==='function'&&cls.toSource&&cls.toSource().match(new RegExp('this\\.'+prop+'\\s'))){return true;} return(cls[prop]!==undefined&&typeof cls[prop]!=='function')||(cls.prototype!==undefined&&cls.prototype[prop]!==undefined&&typeof cls.prototype[prop]!=='function')||(cls.constructor&&cls.constructor[prop]!==undefined&&typeof cls.constructor[prop]!=='function');} function quotemeta(str){return(str+'').replace(/([\.\\\+\*\?\[\^\]\$\(\)])/g,'\\$1');} function rad2deg(angle){return angle*57.29577951308232;} function rand(min,max){var argc=arguments.length;if(argc===0){min=0;max=2147483647;}else if(argc===1){throw new Error('Warning: rand() expects exactly 2 parameters, 1 given');} return Math.floor(Math.random()*(max-min+1))+min;} function range(low,high,step){var matrix=[];var inival,endval,plus;var walker=step||1;var chars=false;if(!isNaN(low)&&!isNaN(high)){inival=low;endval=high;}else if(isNaN(low)&&isNaN(high)){chars=true;inival=low.charCodeAt(0);endval=high.charCodeAt(0);}else{inival=(isNaN(low)?0:low);endval=(isNaN(high)?0:high);} plus=((inival>endval)?false:true);if(plus){while(inival<=endval){matrix.push(((chars)?String.fromCharCode(inival):inival));inival+=walker;}}else{while(inival>=endval){matrix.push(((chars)?String.fromCharCode(inival):inival));inival-=walker;}} return matrix;} function rawurldecode(str){return decodeURIComponent(str+'');} function rawurlencode(str){str=(str+'').toString();return encodeURIComponent(str).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A');} function reset(arr){this.php_js=this.php_js||{};this.php_js.pointers=this.php_js.pointers||[];var indexOf=function(value){for(var i=0,length=this.length;i0)|-(value<0);isHalf=value%1===0.5*sgn;f=Math.floor(value);if(isHalf){switch(mode){case'PHP_ROUND_HALF_DOWN':value=f+(sgn<0);break;case'PHP_ROUND_HALF_EVEN':value=f+(f%2*sgn);break;case'PHP_ROUND_HALF_ODD':value=f+!(f%2);break;default:value=f+(sgn>0);}} return(isHalf?value:Math.round(value))/m;} function rsort(inputArr,sort_flags){var valArr=[],k='',i=0,sorter=false,that=this,strictForIn=false,populateArr=[];switch(sort_flags){case'SORT_STRING':sorter=function(a,b){return that.strnatcmp(b,a);};break;case'SORT_LOCALE_STRING':var loc=this.i18n_loc_get_default();sorter=this.php_js.i18nLocales[loc].sorting;break;case'SORT_NUMERIC':sorter=function(a,b){return(b-a);};break;case'SORT_REGULAR':default:sorter=function(b,a){var aFloat=parseFloat(a),bFloat=parseFloat(b),aNumeric=aFloat+''===a,bNumeric=bFloat+''===b;if(aNumeric&&bNumeric){return aFloat>bFloat?1:aFloatb?1:a>>(32-s));return t4;};var cvt_hex=function(val){var str="";var i;var v;for(i=7;i>=0;i--){v=(val>>>(i*4))&0x0f;str+=v.toString(16);} return str;};var blockstart;var i,j;var W=new Array(80);var H0=0x67452301;var H1=0xEFCDAB89;var H2=0x98BADCFE;var H3=0x10325476;var H4=0xC3D2E1F0;var A,B,C,D,E;var temp;str=this.utf8_encode(str);var str_len=str.length;var word_array=[];for(i=0;i>>29);word_array.push((str_len<<3)&0x0ffffffff);for(blockstart=0;blockstartbFloat?1:aFloatb?1:a=len)?'':Array(1+len-str.length>>>0).join(chr);return leftJustify?str+padding:padding+str;};var justify=function(value,prefix,leftJustify,minWidth,zeroPad,customPadChar){var diff=minWidth-value.length;if(diff>0){if(leftJustify||!zeroPad){value=pad(value,minWidth,customPadChar,leftJustify);}else{value=value.slice(0,prefix.length)+pad('',diff,'0',true)+value.slice(prefix.length);}} return value;};var formatBaseX=function(value,base,prefix,leftJustify,minWidth,precision,zeroPad){var number=value>>>0;prefix=prefix&&number&&{'2':'0b','8':'0','16':'0x'}[base]||'';value=prefix+pad(number.toString(base),precision||0,'0',false);return justify(value,prefix,leftJustify,minWidth,zeroPad);};var formatString=function(value,leftJustify,minWidth,precision,zeroPad,customPadChar){if(precision!=null){value=value.slice(0,precision);} return justify(value,'',leftJustify,minWidth,zeroPad,customPadChar);};var doFormat=function(substring,valueIndex,flags,minWidth,_,precision,type){var number;var prefix;var method;var textTransform;var value;if(substring=='%%'){return'%';} var leftJustify=false,positivePrefix='',zeroPad=false,prefixBaseX=false,customPadChar=' ';var flagsl=flags.length;for(var j=0;flags&&j-1?6:(type=='d')?0:undefined;}else if(precision=='*'){precision=+a[i++];}else if(precision.charAt(0)=='*'){precision=+a[precision.slice(1,-1)];}else{precision=+precision;} value=valueIndex?a[valueIndex.slice(0,-1)]:a[i++];switch(type){case's':return formatString(String(value),leftJustify,minWidth,precision,zeroPad,customPadChar);case'c':return formatString(String.fromCharCode(+value),leftJustify,minWidth,precision,zeroPad);case'b':return formatBaseX(value,2,prefixBaseX,leftJustify,minWidth,precision,zeroPad);case'o':return formatBaseX(value,8,prefixBaseX,leftJustify,minWidth,precision,zeroPad);case'x':return formatBaseX(value,16,prefixBaseX,leftJustify,minWidth,precision,zeroPad);case'X':return formatBaseX(value,16,prefixBaseX,leftJustify,minWidth,precision,zeroPad).toUpperCase();case'u':return formatBaseX(value,10,prefixBaseX,leftJustify,minWidth,precision,zeroPad);case'i':case'd':number=(+value)|0;prefix=number<0?'-':positivePrefix;value=prefix+pad(String(Math.abs(number)),precision,'0',false);return justify(value,prefix,leftJustify,minWidth,zeroPad);case'e':case'E':case'f':case'F':case'g':case'G':number=+value;prefix=number<0?'-':positivePrefix;method=['toExponential','toFixed','toPrecision']['efg'.indexOf(type.toLowerCase())];textTransform=['toString','toUpperCase']['eEfFgG'.indexOf(type)%2];value=prefix+Math.abs(number)[method](precision);return justify(value,prefix,leftJustify,minWidth,zeroPad)[textTransform]();default:return substring;}};return format.replace(regex,doFormat);} function sql_regcase(str){this.setlocale('LC_ALL',0);var i=0,upper='',lower='',pos=0,retStr='';upper=this.php_js.locales[this.php_js.localeCategories.LC_CTYPE].LC_CTYPE.upper;lower=this.php_js.locales[this.php_js.localeCategories.LC_CTYPE].LC_CTYPE.lower;for(i=0;i\|\:])/g,"\\$1");};delimiter=delimiter||',';enclosure=enclosure||'"';escape=escape||'\\';input=input.replace(new RegExp('^\\s*'+pq(enclosure)),'').replace(new RegExp(pq(enclosure)+'\\s*$'),'');input=backwards(input).split(new RegExp(pq(enclosure)+'\\s*'+pq(delimiter)+'\\s*'+pq(enclosure)+'(?!'+pq(escape)+')','g')).reverse();for(var i=0;ireplace.length){replace[replace.length]=replace[0];}}} if(Object.prototype.toString.call(search)!=='[object Array]'){search=[search];} while(search.length>replace.length){replace[replace.length]='';} if(Object.prototype.toString.call(subject)==='[object Array]'){for(k in subject){if(subject.hasOwnProperty(k)){subject[k]=str_ireplace(search,replace,subject[k]);}} return subject;} searchl=search.length;for(i=0;i0){if(pad_type=='STR_PAD_LEFT'){input=str_pad_repeater(pad_string,pad_to_go)+input;}else if(pad_type=='STR_PAD_RIGHT'){input=input+str_pad_repeater(pad_string,pad_to_go);}else if(pad_type=='STR_PAD_BOTH'){half=str_pad_repeater(pad_string,Math.ceil(pad_to_go/2));input=half+input+half;input=input.substr(0,pad_length);}} return input;} function str_repeat(input,multiplier){return new Array(multiplier+1).join(input);} function str_replace(search,replace,subject,count){var i=0,j=0,temp='',repl='',sl=0,fl=0,f=[].concat(search),r=[].concat(replace),s=subject,ra=Object.prototype.toString.call(r)==='[object Array]',sa=Object.prototype.toString.call(s)==='[object Array]';s=[].concat(s);if(count){this.window[count]=0;} for(i=0,sl=s.length;i\|\:])/g,'\\$1');},_getWholeChar=function(str,i){var code=str.charCodeAt(i);if(code<0xD800||code>0xDFFF){return str.charAt(i);} if(0xD800<=code&&code<=0xDBFF){if(str.length<=(i+1)){throw'High surrogate without following low surrogate';} var next=str.charCodeAt(i+1);if(0xDC00>next||next>0xDFFF){throw'High surrogate without following low surrogate';} return str.charAt(i)+str.charAt(i+1);} if(i===0){throw'Low surrogate without preceding high surrogate';} var prev=str.charCodeAt(i-1);if(0xD800>prev||prev>0xDBFF){throw'Low surrogate without preceding high surrogate';} return false;};if(cl){reg='^('+_preg_quote(_getWholeChar(charlist,0));for(i=1;istring2){return 1;}else if(string1==string2){return 0;} return-1;} function strchr(haystack,needle,bool){return this.strstr(haystack,needle,bool);} function strcmp(str1,str2){return((str1==str2)?0:((str1>str2)?1:-1));} function strcspn(str,mask,start,length){start=start?start:0;var count=(length&&((start+length)/g)||[]).join('');var tags=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,commentsAndPhpTags=/|<\?(?:php)?[\s\S]*?\?>/gi;return input.replace(commentsAndPhpTags,'').replace(tags,function($0,$1){return allowed.indexOf('<'+$1.toLowerCase()+'>')>-1?$0:'';});} function stripos(f_haystack,f_needle,f_offset){var haystack=(f_haystack+'').toLowerCase();var needle=(f_needle+'').toLowerCase();var index=0;if((index=haystack.indexOf(needle,f_offset))!==-1){return index;} return false;} function stripslashes(str){return(str+'').replace(/\\(.?)/g,function(s,n1){switch(n1){case'\\':return'\\';case'0':return'\u0000';case'':return'';default:return n1;}});} function stristr(haystack,needle,bool){var pos=0;haystack+='';pos=haystack.toLowerCase().indexOf((needle+'').toLowerCase());if(pos==-1){return false;}else{if(bool){return haystack.substr(0,pos);}else{return haystack.slice(pos);}}} function strlen(string){var str=string+'';var i=0,chr='',lgth=0;if(!this.php_js||!this.php_js.ini||!this.php_js.ini['unicode.semantics']||this.php_js.ini['unicode.semantics'].local_value.toLowerCase()!=='on'){return string.length;} var getWholeChar=function(str,i){var code=str.charCodeAt(i);var next='',prev='';if(0xD800<=code&&code<=0xDBFF){if(str.length<=(i+1)){throw'High surrogate without following low surrogate';} next=str.charCodeAt(i+1);if(0xDC00>next||next>0xDFFF){throw'High surrogate without following low surrogate';} return str.charAt(i)+str.charAt(i+1);}else if(0xDC00<=code&&code<=0xDFFF){if(i===0){throw'Low surrogate without preceding high surrogate';} prev=str.charCodeAt(i-1);if(0xD800>prev||prev>0xDBFF){throw'Low surrogate without preceding high surrogate';} return false;} return str.charAt(i);};for(i=0,lgth=0;i=48&&charCode<=57);};var compareRight=function(a,b){var bias=0;var ia=0;var ib=0;var ca;var cb;for(var cnt=0;true;ia++,ib++){ca=a.charAt(ia);cb=b.charAt(ib);if(!isDigitChar(ca)&&!isDigitChar(cb)){return bias;}else if(!isDigitChar(ca)){return-1;}else if(!isDigitChar(cb)){return 1;}else if(cacb){if(bias===0){bias=1;}}else if(ca==='0'&&cb==='0'){return bias;}}};var ia=0,ib=0;var nza=0,nzb=0;var ca,cb;var result;while(true){nza=nzb=0;ca=a.charAt(ia);cb=b.charAt(ib);while(isWhitespaceChar(ca)||ca==='0'){if(ca==='0'){nza++;}else{nza=0;} ca=a.charAt(++ia);} while(isWhitespaceChar(cb)||cb==='0'){if(cb==='0'){nzb++;}else{nzb=0;} cb=b.charAt(++ib);} if(isDigitChar(ca)&&isDigitChar(cb)){if((result=compareRight(a.substring(ia),b.substring(ib)))!==0){return result;}} if(ca==='0'&&cb==='0'){return nza-nzb;} if(cacb){return+1;} ++ia;++ib;}} function strnatcmp(f_string1,f_string2,f_version){var i=0;if(f_version==undefined){f_version=false;} var __strnatcmp_split=function(f_string){var result=[];var buffer='';var chr='';var i=0,f_stringl=0;var text=true;f_stringl=f_string.length;for(i=0;i0){result[result.length]=buffer;buffer='';} text=false;} buffer+=chr;}else if((text==false)&&(chr=='.')&&(i<(f_string.length-1))&&(f_string.substring(i+1,i+2).match(/\d/))){result[result.length]=buffer;buffer='';}else{if(text==false){if(buffer.length>0){result[result.length]=parseInt(buffer,10);buffer='';} text=true;} buffer+=chr;}} if(buffer.length>0){if(text){result[result.length]=buffer;}else{result[result.length]=parseInt(buffer,10);}} return result;};var array1=__strnatcmp_split(f_string1+'');var array2=__strnatcmp_split(f_string2+'');var len=array1.length;var text=true;var result=-1;var r=0;if(len>array2.length){len=array2.length;result=1;} for(i=0;is2)?1:-1));} function strpbrk(haystack,char_list){for(var i=0,len=haystack.length;i=0){return haystack.slice(i);}} return false;} function strpos(haystack,needle,offset){var i=(haystack+'').indexOf(needle,(offset||0));return i===-1?false:i;} function strrchr(haystack,needle){var pos=0;if(typeof needle!=='string'){needle=String.fromCharCode(parseInt(needle,10));} needle=needle.charAt(0);pos=haystack.lastIndexOf(needle);if(pos===-1){return false;} return haystack.substr(pos);} function strrev(string){string=string+'';var grapheme_extend=/(.)([\uDC00-\uDFFF\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065E\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0901-\u0903\u093C\u093E-\u094D\u0951-\u0954\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D02\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F90-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B6-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAA\u1C24-\u1C37\u1DC0-\u1DE6\u1DFE\u1DFF\u20D0-\u20F0\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA67C\uA67D\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA926-\uA92D\uA947-\uA953\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uFB1E\uFE00-\uFE0F\uFE20-\uFE26]+)/g;string=string.replace(grapheme_extend,'$2$1');return string.split('').reverse().join('');} function strripos(haystack,needle,offset){haystack=(haystack+'').toLowerCase();needle=(needle+'').toLowerCase();var i=-1;if(offset){i=(haystack+'').slice(offset).lastIndexOf(needle);if(i!==-1){i+=offset;}}else{i=(haystack+'').lastIndexOf(needle);} return i>=0?i:false;} function strrpos(haystack,needle,offset){var i=-1;if(offset){i=(haystack+'').slice(offset).lastIndexOf(needle);if(i!==-1){i+=offset;}}else{i=(haystack+'').lastIndexOf(needle);} return i>=0?i:false;} function strspn(str1,str2,start,lgth){var found;var stri;var strj;var j=0;var i=0;start=start?(start<0?(str1.length+start):start):0;lgth=lgth?((lgth<0)?(str1.length+lgth-start):lgth):str1.length-start;str1=str1.substr(start,lgth);for(i=0;i0){if(m[0]=='last'){diff-=7;}}else{if(m[0]=='next'){diff+=7;}} now.setDate(now.getDate()+diff);}} break;default:if(/\d+/.test(m[0])){num*=parseInt(m[0],10);switch(m[1].substring(0,3)){case'yea':now.setFullYear(now.getFullYear()+num);break;case'mon':now.setMonth(now.getMonth()+num);break;case'wee':now.setDate(now.getDate()+(num*7));break;case'day':now.setDate(now.getDate()+num);break;case'hou':now.setHours(now.getHours()+num);break;case'min':now.setMinutes(now.getMinutes()+num);break;case'sec':now.setSeconds(now.getSeconds()+num);break;}}else{return false;} break;} return true;};match=strTmp.match(/^(\d{2,4}-\d{2}-\d{2})(?:\s(\d{1,2}:\d{2}(:\d{2})?)?(?:\.(\d+))?)?$/);if(match!=null){if(!match[2]){match[2]='00:00:00';}else if(!match[3]){match[2]+=':00';} s=match[1].split(/-/g);for(i in __is.mon){if(__is.mon[i]==s[1]-1){s[1]=i;}} s[0]=parseInt(s[0],10);s[0]=(s[0]>=0&&s[0]<=69)?'20'+(s[0]<10?'0'+s[0]:s[0]+''):(s[0]>=70&&s[0]<=99)?'19'+s[0]:s[0]+'';return parseInt(this.strtotime(s[2]+' '+s[1]+' '+s[0]+' '+match[2])+(match[4]?match[4]/1000:''),10);} var regex='([+-]?\\d+\\s'+'(years?|months?|weeks?|days?|hours?|min|minutes?|sec|seconds?'+'|sun\\.?|sunday|mon\\.?|monday|tue\\.?|tuesday|wed\\.?|wednesday'+'|thu\\.?|thursday|fri\\.?|friday|sat\\.?|saturday)'+'|(last|next)\\s'+'(years?|months?|weeks?|days?|hours?|min|minutes?|sec|seconds?'+'|sun\\.?|sunday|mon\\.?|monday|tue\\.?|tuesday|wed\\.?|wednesday'+'|thu\\.?|thursday|fri\\.?|friday|sat\\.?|saturday))'+'(\\sago)?';match=strTmp.match(new RegExp(regex,'gi'));if(match==null){return false;} for(i=0;i=es;i--){if(/[\uDC00-\uDFFF]/.test(str.charAt(i))&&/[\uD800-\uDBFF]/.test(str.charAt(i-1))){start--;es--;}}}else{var surrogatePairs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;while((surrogatePairs.exec(str))!=null){var li=surrogatePairs.lastIndex;if(li-2=end||start<0){return false;} if(len<0){for(i=end-1,el=(end+=len);i>=el;i--){if(/[\uDC00-\uDFFF]/.test(str.charAt(i))&&/[\uD800-\uDBFF]/.test(str.charAt(i-1))){end--;el--;}} if(start>end){return false;} return str.slice(start,end);}else{se=start+len;for(i=start;i=str.length||start<0||start>end?!1:str.slice(start,end);} return undefined;} function substr_compare(main_str,str,offset,length,case_insensitivity){if(!offset&&offset!==0){throw'Missing offset for substr_compare()';} if(offset<0){offset=main_str.length+offset;} if(length&&length>(main_str.length-offset)){return false;} length=length||main_str.length-offset;main_str=main_str.substr(offset,length);str=str.substr(0,length);if(case_insensitivity){main_str=(main_str+'').toLowerCase();str=(str+'').toLowerCase();if(main_str==str){return 0;} return(main_str>str)?1:-1;} return((main_str==str)?0:((main_str>str)?1:-1));} function substr_count(haystack,needle,offset,length){var pos=0,cnt=0;haystack+='';needle+='';if(isNaN(offset)){offset=0;} if(isNaN(length)){length=0;} offset--;while((offset=haystack.indexOf(needle,offset+1))!=-1){if(length>0&&(offset+needle.length)>length){return false;}else{cnt++;}} return cnt;} function substr_replace(str,replace,start,length){if(start<0){start=start+str.length;} length=length!==undefined?length:str.length;if(length<0){length=length+str.length-start;} return str.slice(0,start)+replace.substr(0,length)+replace.slice(length)+str.slice(start+length);} function tan(arg){return Math.tan(arg);} function tanh(arg){return(Math.exp(arg)-Math.exp(-arg))/(Math.exp(arg)+Math.exp(-arg));} function time(){return Math.floor(new Date().getTime()/1000);} function trim(str,charlist){var whitespace,l=0,i=0;str+='';if(!charlist){whitespace=" \n\r\t\f\x0b\xa0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000";}else{charlist+='';whitespace=charlist.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,'$1');} l=str.length;for(i=0;i=0;i--){if(whitespace.indexOf(str.charAt(i))===-1){str=str.substring(0,i+1);break;}} return whitespace.indexOf(str.charAt(0))===-1?str:'';} function uasort(inputArr,sorter){var valArr=[],tempKeyVal,tempValue,ret,k='',i=0,strictForIn=false,populateArr={};if(typeof sorter==='string'){sorter=this[sorter];}else if(Object.prototype.toString.call(sorter)==='[object Array]'){sorter=this[sorter[0]][sorter[1]];} this.php_js=this.php_js||{};this.php_js.ini=this.php_js.ini||{};strictForIn=this.php_js.ini['phpjs.strictForIn']&&this.php_js.ini['phpjs.strictForIn'].local_value&&this.php_js.ini['phpjs.strictForIn'].local_value!=='off';populateArr=strictForIn?inputArr:populateArr;for(k in inputArr){if(inputArr.hasOwnProperty(k)){valArr.push([k,inputArr[k]]);if(strictForIn){delete inputArr[k];}}} valArr.sort(function(a,b){return sorter(a[1],b[1]);});for(i=0;idata.length){error('Error','Invalid');} buf.push(chr);chr=data.slice(offset+(i-1),offset+i);i+=1;} return[buf.length,buf.join('')];};var read_chrs=function(data,offset,length){var buf;buf=[];for(var i=0;i191&&c1<224){c2=str_data.charCodeAt(i+1);tmp_arr[ac++]=String.fromCharCode(((c1&31)<<6)|(c2&63));i+=2;}else{c2=str_data.charCodeAt(i+1);c3=str_data.charCodeAt(i+2);tmp_arr[ac++]=String.fromCharCode(((c1&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}} return tmp_arr.join('');} function utf8_encode(argString){if(argString===null||typeof argString==="undefined"){return"";} var string=(argString+'');var utftext="",start,end,stringl=0;start=end=0;stringl=string.length;for(var n=0;n127&&c1<2048){enc=String.fromCharCode((c1>>6)|192)+String.fromCharCode((c1&63)|128);}else{enc=String.fromCharCode((c1>>12)|224)+String.fromCharCode(((c1>>6)&63)|128)+String.fromCharCode((c1&63)|128);} if(enc!==null){if(end>start){utftext+=string.slice(start,end);} utftext+=enc;start=end=n+1;}} if(end>start){utftext+=string.slice(start,stringl);} return utftext;} function var_dump(){var output='',pad_char=' ',pad_val=4,lgth=0,i=0,d=this.window.document;var _getFuncName=function(fn){var name=(/\W*function\s+([\w\$]+)\s*\(/).exec(fn);if(!name){return'(Anonymous)';} return name[1];};var _repeat_char=function(len,pad_char){var str='';for(var i=0;i0){cur_depth++;} var base_pad=_repeat_char(pad_val*(cur_depth-1),pad_char);var thick_pad=_repeat_char(pad_val*(cur_depth+1),pad_char);var str='';var val='';if(typeof obj==='object'&&obj!==null){if(obj.constructor&&_getFuncName(obj.constructor)==='PHPJS_Resource'){return obj.var_dump();} lgth=0;for(someProp in obj){lgth++;} str+='array('+lgth+') {\n';for(var key in obj){var objVal=obj[key];if(typeof objVal==='object'&&objVal!==null&&!(objVal instanceof Date)&&!(objVal instanceof RegExp)&&!objVal.nodeName){str+=thick_pad+'['+key+'] =>\n'+thick_pad+_formatArray(objVal,cur_depth+1,pad_val,pad_char);}else{val=_getInnerVal(objVal,thick_pad);str+=thick_pad+'['+key+'] =>\n'+thick_pad+val+'\n';}} str+=base_pad+'}\n';}else{str=_getInnerVal(obj,thick_pad);} return str;};output=_formatArray(arguments[0],0,pad_val,pad_char);for(i=1;i'+output+'');}catch(e){this.echo(output);}}} function var_export(mixed_expression,bool_return){var retstr='',iret='',cnt=0,x=[],i=0,funcParts=[],idtLevel=arguments[2]||2,innerIndent='',outerIndent='';var getFuncName=function(fn){var name=(/\W*function\s+([\w\$]+)\s*\(/).exec(fn);if(!name){return'(Anonymous)';} return name[1];};var _makeIndent=function(idtLevel){return(new Array(idtLevel+1)).join(' ');};var __getType=function(inp){var i=0;var match,type=typeof inp;if(type==='object'&&inp.constructor&&getFuncName(inp.constructor)==='PHPJS_Resource'){return'resource';} if(type==='function'){return'function';} if(type==='object'&&!inp){return'null';} if(type==="object"){if(!inp.constructor){return'object';} var cons=inp.constructor.toString();match=cons.match(/(\w+)\(/);if(match){cons=match[1].toLowerCase();} var types=["boolean","number","string","array"];for(i=0;i/g,'>'):value;x[cnt++]=innerIndent+i+' => '+(__getType(mixed_expression[i])==='array'?'\n':'')+value;} iret=x.join(',\n');retstr=outerIndent+"array (\n"+iret+'\n'+outerIndent+')';}else if(type==='function'){funcParts=mixed_expression.toString().match(/function .*?\((.*?)\) \{([\s\S]*)\}/);retstr="create_function ('"+funcParts[1]+"', '"+funcParts[2].replace(new RegExp("'",'g'),"\\'")+"')";}else if(type==='resource'){retstr='NULL';}else{retstr=(typeof(mixed_expression)!=='string')?mixed_expression:"'"+mixed_expression.replace(/(["'])/g,"\\$1").replace(/\0/g,"\\0")+"'";} if(bool_return!==true){this.echo(retstr);return null;}else{return retstr;}} function vprintf(format,args){var body,elmt;var ret='',d=this.window.document;var HTMLNS='http://www.w3.org/1999/xhtml';body=d.getElementsByTagNameNS?(d.getElementsByTagNameNS(HTMLNS,'body')[0]?d.getElementsByTagNameNS(HTMLNS,'body')[0]:d.documentElement.lastChild):d.getElementsByTagName('body')[0];if(!body){return false;} ret=this.sprintf.apply(this,[format].concat(args));elmt=d.createTextNode(ret);body.appendChild(elmt);return ret.length;} function vsprintf(format,args){return this.sprintf.apply(this,[format].concat(args));} function wordwrap(str,int_width,str_break,cut){var m=((arguments.length>=2)?arguments[1]:75);var b=((arguments.length>=3)?arguments[2]:"\n");var c=((arguments.length>=4)?arguments[3]:false);var i,j,l,s,r;str+='';if(m<1){return str;} for(i=-1,l=(r=str.split(/\r\n|\n|\r/)).length;++im;r[i]+=s.slice(0,j)+((s=s.slice(j)).length?b:"")){j=c==2||(j=s.slice(0,m+1).match(/\S*(\s)?$/))[1]?m:j.input.length-j[0].length||c==1&&m||j.input.length+(j=s.slice(m).match(/^\S*/)).input.length;}} return r.join("\n");} /*! * WPBakery Page Builder v6.0.0 (https://wpbakery.com) * Copyright 2011-2020 Michael M, WPBakery * License: Commercial. More details: http://go.wpbakery.com/licensing */ // jscs:disable // jshint ignore: start window.vc_iframe={scripts_to_wait:0,time_to_call:!1,ajax:!1,activities_list:[],scripts_to_load:!1,loaded_script:{},loaded_styles:{},inline_scripts:[],inline_scripts_body:[]},function($){"use strict";window.vc_iframe.showNoContent=function(show){var $vc_no_content_helper_el=$("#vc_no-content-helper");!1===show?$vc_no_content_helper_el.addClass("vc_not-empty"):$vc_no_content_helper_el.removeClass("vc_not-empty")},window.vc_iframe.scrollTo=function(position_y){var $el,el_height,window_height=$(window).height(),window_scroll_top=$(window).scrollTop();if(position_y&&($el=$("[data-model-id="+position_y+"]"))){if(!1===(position_y=!!(el_height=$el.offset())&&el_height.top))return!1;el_height=$el.height(),(window_scroll_top+window_height "+parent.vc.map[tag].name+"").prependTo("body")},window.vc_iframe.setSortable=function(app){var setSectionSortable,setRowSortable,setElementsSortable,$rowSortable,$elementsSortable,_this=window.vc_iframe;parent.vc.$page.addClass("vc-main-sortable-container");var $sectionSortables,$main=$(parent.vc.$page);$main.sortable({forcePlaceholderSize:!1,connectWith:!1,items:"> [data-tag=vc_row], > [data-tag=vc_section]",handle:" > .vc_row .vc_move-vc_row, > .vc_controls .vc_element-move",cursor:"move",cursorAt:{top:20,left:16},placeholder:"vc_placeholder-row",cancel:".vc-non-draggable-row",helper:_this.renderPlaceholder,start:function(event,ui){window.vc_iframe.startSorting(),ui.placeholder.height(30),"vc_section"===ui.item.data("tag")?($sectionSortables&&$sectionSortables.sortable("destroy"),$rowSortable&&$rowSortable.sortable("destroy"),$elementsSortable&&$elementsSortable.sortable("destroy"),$main.sortable("option","connectWith",!1)):$main.sortable("option","connectWith",['[data-tag="vc_section"] > .vc_element-container']),$main.sortable("refresh")},stop:function(event,ui){var tag,vc_map,parent_tag,trig_changed,allowed_container_element;_this.stopSorting(),"vc_section"===(tag=ui.item.data("tag"))&&(setSectionSortable(),setRowSortable(),setElementsSortable()),$main.sortable("option","connectWith",!1),$main.sortable("refresh"),vc_map=window.parent.vc.map||!1,trig_changed=!0,(parent_tag=ui.item.parents("[data-tag]:first").data("tag"))&&(allowed_container_element=vc_map[parent_tag].allowed_container_element||!0,window.parent.vc.checkRelevance(parent_tag,tag)||(ui.placeholder.removeClass("vc_hidden-placeholder"),$(this).sortable("cancel"),trig_changed=!1),vc_map[tag]===Object(vc_map[tag])&&((!0===vc_map[tag].is_container||!1===vc_map[tag].is_container||"[object Boolean]"===toString.call(vc_map[tag].is_container))&&!0===vc_map[tag].is_container||null!=vc_map[tag].as_parent&&"[object Array]"===Object.prototype.toString.call(vc_map[tag].as_parent)&&0!=vc_map[tag].as_parent)&&!0!==allowed_container_element&&allowed_container_element!==tag.replace(/_inner$/,"")&&(ui.placeholder.removeClass("vc_hidden-placeholder"),$(this).sortable("cancel"),trig_changed=!1)),trig_changed&&parent.vc.shortcodes.get(ui.item.data("modelId")).view.parentChanged()},tolerance:"pointer",update:function(event,ui){parent.vc.app.saveRowOrder(event,ui)}}),setElementsSortable=function(){$elementsSortable=$(".vc_element-container:not(.vc_section)").sortable({forcePlaceholderSize:!0,helper:_this.renderPlaceholder,distance:3,scroll:!0,scrollSensitivity:70,cursor:"move",cursorAt:{top:20,left:16},connectWith:".vc_element-container:not(.vc_section)",items:"> [data-model-id]",cancel:".vc-non-draggable",handle:".vc_element-move",start:_this.startSorting,update:app.saveElementOrder,change:function(event,ui){ui.placeholder.height(30),ui.placeholder.width(ui.placeholder.parent().width())},placeholder:"vc_placeholder",tolerance:"pointer",over:function(event,ui){var tag=ui.item.data("tag"),vc_map=window.parent.vc.map||!1,$sender_column=ui.placeholder.closest("[data-tag]").data("tag"),allowed_container_element=void 0===vc_map[$sender_column].allowed_container_element||vc_map[$sender_column].allowed_container_element;ui.placeholder.removeClass("vc_hidden-placeholder"),ui.placeholder.css({maxWidth:ui.placeholder.parent().width()}),tag&&vc_map&&(window.parent.vc.checkRelevance($sender_column,tag)||ui.placeholder.addClass("vc_hidden-placeholder"),!ui.sender||($sender_column=ui.sender.closest(".vc_element").removeClass("vc_sorting-over")).find(".vc_element").length<1&&$sender_column.addClass("vc_empty"),ui.placeholder.closest(".vc_element").addClass("vc_sorting-over"),vc_map[tag]===Object(vc_map[tag])&&((!0===vc_map[tag].is_container||!1===vc_map[tag].is_container||"[object Boolean]"===toString.call(vc_map[tag].is_container))&&!0===vc_map[tag].is_container||null!=vc_map[tag].as_parent&&"[object Array]"===Object.prototype.toString.call(vc_map[tag].as_parent)&&0!=vc_map[tag].as_parent)&&!0!==allowed_container_element&&allowed_container_element!==tag.replace(/_inner$/,"")&&ui.placeholder.addClass("vc_hidden-placeholder"))},out:function(event,ui){ui.placeholder.removeClass("vc_hidden-placeholder"),ui.placeholder.closest(".vc_element").removeClass("vc_sorting-over")},stop:function(event,ui){var tag=ui.item.data("tag"),vc_map=window.parent.vc.map||!1,parent_tag=ui.item.parents("[data-tag]:first").data("tag"),allowed_container_element=vc_map[parent_tag].allowed_container_element||!0,trig_changed=!0;window.parent.vc.checkRelevance(parent_tag,tag)||(ui.placeholder.removeClass("vc_hidden-placeholder"),$(this).sortable("cancel"),trig_changed=!1),vc_map[tag]===Object(vc_map[tag])&&((!0===vc_map[tag].is_container||!1===vc_map[tag].is_container||"[object Boolean]"===toString.call(vc_map[tag].is_container))&&!0===vc_map[tag].is_container||null!=vc_map[tag].as_parent&&"[object Array]"===Object.prototype.toString.call(vc_map[tag].as_parent)&&0!=vc_map[tag].as_parent)&&!0!==allowed_container_element&&allowed_container_element!==tag.replace(/_inner$/,"")&&(ui.placeholder.removeClass("vc_hidden-placeholder"),$(this).sortable("cancel"),trig_changed=!1),trig_changed&&parent.vc.shortcodes.get(ui.item.data("modelId")).view.parentChanged(),window.vc_iframe.stopSorting()}})},setRowSortable=function(){$rowSortable=$(".wpb_row").sortable({forcePlaceholderSize:!0,tolerance:"pointer",items:"> [data-tag=vc_column], > [data-tag=vc_column_inner]",handle:"> .vc_controls .vc_move-vc_column",start:function(event,ui){window.vc_iframe.startSorting();var css_class=ui.item.data("modelId"),css_class=parent.vc.shortcodes.get(css_class),css_class=css_class.view.convertSize(css_class.getParam("width"));ui.item.appendTo(ui.item.parent().parent()),ui.placeholder.addClass(css_class),ui.placeholder.width(ui.placeholder.width()-4)},cursor:"move",cursorAt:{top:20,left:16},stop:function(event,ui){window.vc_iframe.stopSorting(event,ui)},update:app.saveColumnOrder,placeholder:"vc_placeholder-column",helper:_this.renderPlaceholder})},(setSectionSortable=function(){$sectionSortables=$('[data-tag="vc_section"] > .vc_element-container').sortable({forcePlaceholderSize:!1,connectWith:[".vc-main-sortable-container",'[data-tag="vc_section"] > .vc_element-container'],items:'[data-tag="vc_row"]',handle:"> .vc_row .vc_move-vc_row",cursor:"move",cursorAt:{top:20,left:16},placeholder:"vc_placeholder-row",cancel:".vc-non-draggable-row",helper:_this.renderPlaceholder,start:function(event,ui){window.vc_iframe.startSorting(),ui.placeholder.height(30)},stop:function(event,ui){var allowed_container_element,tag=ui.item.data("tag"),vc_map=window.parent.vc.map||!1,parent_tag=ui.item.parents("[data-tag]:first").data("tag"),trig_changed=!0;parent_tag&&(allowed_container_element=vc_map[parent_tag].allowed_container_element||!0,window.parent.vc.checkRelevance(parent_tag,tag)||(ui.placeholder.removeClass("vc_hidden-placeholder"),$(this).sortable("cancel"),trig_changed=!1),vc_map[tag]===Object(vc_map[tag])&&((!0===vc_map[tag].is_container||!1===vc_map[tag].is_container||"[object Boolean]"===toString.call(vc_map[tag].is_container))&&!0===vc_map[tag].is_container||null!=vc_map[tag].as_parent&&"[object Array]"===Object.prototype.toString.call(vc_map[tag].as_parent)&&0!=vc_map[tag].as_parent)&&!0!==allowed_container_element&&allowed_container_element!==tag.replace(/_inner$/,"")&&(ui.placeholder.removeClass("vc_hidden-placeholder"),$(this).sortable("cancel"),trig_changed=!1)),trig_changed&&parent.vc.shortcodes.get(ui.item.data("modelId")).view.parentChanged(),_this.stopSorting()},tolerance:"pointer",update:function(event,ui){parent.vc.app.saveRowOrder(event,ui)},over:function(event,ui){var tag=ui.item.data("tag"),vc_map=window.parent.vc.map||!1,$sender_column=ui.placeholder.closest("[data-tag]").data("tag"),allowed_container_element=void 0===vc_map[$sender_column].allowed_container_element||vc_map[$sender_column].allowed_container_element;ui.placeholder.removeClass("vc_hidden-placeholder"),ui.placeholder.css({maxWidth:ui.placeholder.parent().width()}),tag&&vc_map&&(window.parent.vc.checkRelevance($sender_column,tag)||ui.placeholder.addClass("vc_hidden-placeholder"),!ui.sender||($sender_column=ui.sender.closest(".vc_element").removeClass("vc_sorting-over")).find(".vc_element").length<1&&$sender_column.addClass("vc_empty"),ui.placeholder.closest(".vc_element").addClass("vc_sorting-over"),vc_map[tag]===Object(vc_map[tag])&&((!0===vc_map[tag].is_container||!1===vc_map[tag].is_container||"[object Boolean]"===toString.call(vc_map[tag].is_container))&&!0===vc_map[tag].is_container||null!=vc_map[tag].as_parent&&"[object Array]"===Object.prototype.toString.call(vc_map[tag].as_parent)&&0!=vc_map[tag].as_parent)&&!0!==allowed_container_element&&allowed_container_element!==tag.replace(/_inner$/,"")&&ui.placeholder.addClass("vc_hidden-placeholder"))},out:function(event,ui){ui.placeholder.removeClass("vc_hidden-placeholder"),ui.placeholder.closest(".vc_element").removeClass("vc_sorting-over")}})})(),setElementsSortable(),setRowSortable(),$main.disableSelection(),$main.on("mouseenter","select",function(){$main.enableSelection()}),$main.on("mouseleave","select",function(){$main.disableSelection()}),$main.on("focus",'input[type="text"],textarea',function(){$main.enableSelection()}),$main.on("blur",'input[type="text"],textarea',function(){$main.disableSelection()}),app.setFrameSize(),$("#vc_load-new-js-block").appendTo("body")},window.vc_iframe.loadCustomCss=function(css){vc_iframe.$custom_style||($("[data-type=vc_custom-css]").remove(),window.vc_iframe.$custom_style=$('').appendTo("body")),window.vc_iframe.$custom_style.html(css.replace(/(<([^>]+)>)/gi,""))},window.vc_iframe.setCustomShortcodeCss=function(css){this.$shortcodes_custom_css=$("body > [data-type=vc_shortcodes-custom-css]"),this.$shortcodes_custom_css.length||(this.$shortcodes_custom_css=$('').prependTo("body")),this.$shortcodes_custom_css.append(css)},window.vc_iframe.addInlineScript=function(script){return this.inline_scripts.push(script)-1},window.vc_iframe.addInlineScriptBody=function(script){return this.inline_scripts_body.push(script)-1},window.vc_iframe.loadInlineScripts=function(){for(var i=0;this.inline_scripts[i];)$(this.inline_scripts[i]).insertAfter(".js_placeholder_"+i),$(".js_placeholder_"+i).remove(),i++;this.inline_scripts=[]},window.vc_iframe.loadInlineScriptsBody=function(){for(var i=0;this.inline_scripts_body[i];)$(this.inline_scripts_body[i]).insertAfter(".js_placeholder_inline_"+i),$(".js_placeholder_inline_"+i).remove(),i++;this.inline_scripts_body=[]},window.vc_iframe.allowedLoadScript=function(src){var i,scripts_string,ls_rc,scripts=[],scripts_to_add=[];if(src.match(/load\-scripts\.php/)){for(i in(scripts_string=src.match(/load%5B%5D=([^&]+)/)[1])&&(scripts=scripts_string.split(",")),scripts)ls_rc="load-script:"+scripts[i],vc_iframe.loaded_script[window.parent.vc_globalHashCode(ls_rc)]||(window.vc_iframe.loaded_script[window.parent.vc_globalHashCode(ls_rc)]=ls_rc,scripts_to_add.push(scripts[i]));return!!scripts_to_add.length&&src.replace(/load%5B%5D=[^&]+/,"load%5B%5D="+scripts_to_add.join(","))}return!vc_iframe.loaded_script[window.parent.vc_globalHashCode(src)]&&((0=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)):(index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length,index=$(this).parent().hasClass("wpb_next_slide")?length<=index+1?0:index+1:index-1<0?length-1:index-1,$tabs.tabs("option","active",index))})}),!0},window.vc_iframe.setActiveTab=function($tabs,index){$tabs.each(function(){$(this).find(".wpb_tour_tabs_wrapper").tabs("refresh"),$(this).find(".wpb_tour_tabs_wrapper").tabs("option","active",index)})},window.vc_iframe.setTabsSorting=function(view){var $controls=$(view.tabsControls().get(0));$controls.hasClass("ui-sortable")&&$controls.sortable("destroy"),$controls.sortable({axis:"vc_tour"===view.model.get("shortcode")?"y":"x",update:view.stopSorting,items:"> li:not(.add_tab_block)"}),navigator.userAgent.toLowerCase().match(/firefox/)&&($controls.bind("sortstart",function(event,ui){ui.helper.css("margin-top",$(window).scrollTop())}),$controls.bind("sortbeforestop",function(event,ui){ui.helper.css("margin-top",0)}))},window.vc_iframe.buildAccordion=function($el,active){$el.each(function(index){var $this=$(this),$wrapper=$this.find(".wpb_accordion_wrapper"),active_tab=($this.attr("data-interval"),!isNaN($this.data("active-tab"))&&0 .vc_element > div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:function(event,ui){vc_accordionActivate(event,ui),ui.oldPanel.parent().parent().removeClass("vc_active-accordion-tab"),ui.newPanel.parent().parent().addClass("vc_active-accordion-tab")},change:function(event,ui){void 0!==$.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),window.vc_carouselBehaviour()}})})},window.vc_iframe.setAccordionSorting=function(view){$(view.$accordion.find("> .wpb_accordion_wrapper").get(0)).sortable({handle:".vc_move-vc_accordion_tab",update:view.stopSorting})},window.vc_iframe.vc_imageCarousel=function(model_id){var $carousel=$("[data-model-id="+model_id+"]"),$carousel=($carousel.find("img").length,$carousel.find('[data-ride="vc_carousel"]'));!$carousel.find("img:first").length||$carousel.find("img:first").prop("complete")?$carousel.carousel($carousel.data()):window.setTimeout(function(){window.vc_iframe.vc_imageCarousel(model_id)},500)},window.vc_iframe.vc_gallery=function(model_id){var $gallery=$("[data-model-id="+model_id+"]").find(".wpb_gallery_slides");$gallery.find("img:first").prop("complete")?this.gallerySlider($gallery):window.setTimeout(function(){window.vc_iframe.vc_gallery(model_id)},500)},window.vc_iframe.vc_postsSlider=function($gallery){$gallery=$("[data-model-id="+$gallery+"]").find(".wpb_gallery_slides");this.gallerySlider($gallery)},window.vc_iframe.gallerySlider=function($gallery){var sliderTimeout,sliderFx,slideshow,$imagesGrid;$gallery.hasClass("wpb_flexslider")?(sliderTimeout=1e3*parseInt($gallery.attr("data-interval"),10),sliderFx=$gallery.attr("data-flex_fx"),slideshow=0===sliderTimeout?!1:!0,$gallery.flexslider({animation:sliderFx,slideshow:slideshow,slideshowSpeed:sliderTimeout,sliderSpeed:800,smoothHeight:!0}),$gallery.addClass("loaded")):$gallery.hasClass("wpb_slider_nivo")?(0===(sliderTimeout=1e3*$gallery.attr("data-interval"))&&(sliderTimeout=9999999999),$gallery.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):$gallery.hasClass("wpb_image_grid")&&($.fn.imagesLoaded?$imagesGrid=$gallery.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):$gallery.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))},window.vc_iframe.vc_toggle=function($el){$el=$("[data-model-id="+$el+"]");window.vc_toggleBehaviour($el)},window.vc_iframe.gridInit=function(vcGrid){var $grid=$("[data-model-id="+vcGrid+"] [data-vc-grid-settings]");$grid.find(".vc_grid-loading:visible").length||((vcGrid=$grid.data("vcGrid"))?($grid.empty(),vcGrid.init()):$grid.vcGrid())},window.vc_iframe.updateChildGrids=function(model_id){$("[data-model-id="+model_id+"] [data-vc-grid-settings]").each(function(){var $grid=$(this),vcGrid=$(this).data("vcGrid");!$grid.find(".vc_grid-loading:visible").length&&vcGrid&&($grid.empty(),vcGrid.init())})},window.vc_iframe.buildTTA=function(){$("[data-vc-accordion]:not(.vc_is-ready-fe)").on("show.vc.accordion",function(e){var ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)}).addClass("vc_is-ready-fe")},window.vc_iframe.vc_pieChart=function(){window.vc_pieChart(),window.setTimeout(function(){$(window).off("resize.vcPieChartEditable").on("resize.vcPieChartEditable",function(){$(".vc_pie_chart.vc_ready").vcChat()})},500)},$(document).ready(function(){parent&&parent.vc&&!parent.vc.loaded&&window.setTimeout(function(){parent.vc.build()},10)})}(window.jQuery),function($){"use strict";var vcPointerMessage=function(target,pointerOptions,texts){this.target=target,this.$pointer=null,this.texts=texts,this.pointerOptions=pointerOptions,this.init()};vcPointerMessage.prototype={init:function(){_.bindAll(this,"openedEvent","reposition")},show:function(){this.$pointer=$(this.target),this.$pointer.data("vcPointerMessage",this),this.pointerOptions.opened=this.openedEvent,this.$pointer.addClass("vc-with-vc-pointer").pointer(this.pointerOptions).pointer("open"),$(window).on("resize.vcPointer",this.reposition)},domButtonsWrapper:function(){return $('
')},domCloseBtn:function(){return $(''+this.texts.finish+"")},domNextBtn:function(){return $('')},domPrevBtn:function(){return $(' ")},openedEvent:function(a,b){var offset=b.pointer.offset();b.pointer.css("z-index",1e5),offset&&offset.top&&$("body").scrollTop(801024)return!1;var e=a("#wpadminbar").length&&a(window).width()>480?a("#wpadminbar").height():0;return a(".penci-header-mobile").sticky({topSpacing:e,className:"mobile-is-sticky",wrapperClassName:"mobile-sticky-wrapper"}),!1},stickySidebar:function(){if(!a("body").hasClass("penci_sticky_content_sidebar")||!a().theiaStickySidebar||a(window).width()<992)return!1;var e=a(".site-header").data("height");a(".penci-sticky-sidebar, .penci-sticky-content, .penci_vc_sticky_sidebar .penci-content-main, .penci_vc_sticky_sidebar .widget-area").theiaStickySidebar({additionalMarginTop:e,additionalMarginBottom:0})}},e.penciVideo=function(){a().magnificPopup&&a(".penci-popup-video").magnificPopup({type:"iframe",mainClass:"mfp-fade"})},e.toggleSocialMedia=function(){var e=a(".social-buttons__toggle"),t=a(".penci-block-vc .social-buttons");e.on("click",function(e){e.preventDefault(),t.removeClass("active");var i=a(this).closest(".social-buttons");i.hasClass("active")&&(i.addClass("pbutton_close_click").removeClass("active"),setTimeout(function(){i.removeClass("pbutton_close_click")},400))}),a("#page").on("click",function(a){t.hasClass("active")&&t.removeClass("active")}),e.on("mouseover touchstart",function(){var e=a(this),i=e.parent();return!i.hasClass("active")&&(t.removeClass("active"),void i.addClass("active"))})},e.popupGallery=function(){return!!a().magnificPopup&&(a(".penci-image-popup-no-margins").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-with-zoom",image:{verticalFit:!0},zoom:{enabled:!0,duration:300}}),a(".popup-gallery-slider a").magnificPopup({type:"image"}),void a(".penci-popup-gallery").each(function(){var e=a(this),t=e.attr("id");a("#"+t+" a").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,image:{verticalFit:!0},gallery:{enabled:!0},zoom:{enabled:!1,duration:300}})}))},e.ajaxDoBlockRequest={init:function(){e.ajaxDoBlockRequest.link(),e.ajaxDoBlockRequest.nextPrev(),e.ajaxDoBlockRequest.loadMore(),e.ajaxDoBlockRequest.infinityScroll(),e.ajaxDoBlockRequest.megamenu()},megamenu:function(){a("body").on("click",".penci-mega-pag",function(t){if(t.preventDefault(),a(this).hasClass("penci-pag-disabled"))return!1;var i=a(this).data("block_id"),n=a("#"+i),o=n.closest(".penci-mega-row"),s=o.data("atts_json"),c=o.attr("data-current"),l=n.height(),r=!1,d=e.ajaxDoBlockRequest.getOBjBlockData(o.attr("data-blockUid"));s=d.atts_json?JSON.parse(d.atts_json):d.atts_json,a(this).hasClass("penci-slider-next")&&c++,a(this).hasClass("penci-slider-prev")&&c--,o.find(".penci-block-pag").removeClass("penci-pag-disabled"),n.css("min-height",l+"px");var p={action:"penci_ajax_mega_menu",datafilter:s,paged:c.toString(),styleAction:"next_prev",nonce:PENCILOCALIZE.nonce},u=JSON.stringify(p);if(PENCILOCALCACHE.exist(u)){var m=PENCILOCALCACHE.get(u);return r=!0,setTimeout(function(){o.attr("data-current",c),n.html(m.items).removeClass("ajax-loading"),e.ajaxDoBlockRequest.animateMegaLoadITems(n,r),e.ajaxDoBlockRequest.hidePag(o,m)},300),!1}if(n.addClass("ajax-loading"),a.post(PENCILOCALIZE.ajaxUrl,p,function(a){o.attr("data-current",c),n.html(a.data.items),e.ajaxDoBlockRequest.animateMegaLoadITems(n,r),e.ajaxDoBlockRequest.hidePag(o,a.data),e.ajaxDoBlockRequest.saveAjaxData(u,a.data)}),1===c-1){var f={action:"penci_ajax_mega_menu",datafilter:s,paged:"1",styleAction:"next_prev",nonce:PENCILOCALIZE.nonce};a.post(PENCILOCALIZE.ajaxUrl,f,function(a){e.ajaxDoBlockRequest.saveAjaxData(JSON.stringify(f),a.data)})}})},link:function(){a(".penci-subcat-link").click(function(t){if(t.preventDefault(),a(this).hasClass("active"))return!1;var i=a(this).data("block_id"),n=a("#"+i),o=n.closest(".penci-block-vc"),s=n.height(),c=!1;o.find(".penci-subcat-link").removeClass("active"),a(this).addClass("active clicked");var l=o.data("atts_json"),r=o.data("content"),d=a(this).data("filter_value"),p=e.ajaxDoBlockRequest.getOBjBlockData(o.attr("data-blockUid"));l=JSON.parse(p.atts_json),r=p.content,d&&(l.category_ids=d.toString());var u={action:"penci_ajax_block",datafilter:l,datacontent:r,styleAction:"link",nonce:PENCILOCALIZE.nonce};n.css("min-height",s+"px");var m=JSON.stringify(u);if(PENCILOCALCACHE.exist(m)){var f=PENCILOCALCACHE.get(m);return c=!0,setTimeout(function(){o.attr("data-atts_json",JSON.stringify(l)).attr("data-current",1),n.html(f.items).removeClass("ajax-loading"),e.ajaxDoBlockRequest.animateLoadITems(n,"1",c),e.ajaxDoBlockRequest.hidePag(o,f)},300),!1}n.addClass("ajax-loading"),a.post(PENCILOCALIZE.ajaxUrl,u,function(a){o.attr("data-atts_json",JSON.stringify(l)).attr("data-current",1),n.html(a.data.items).removeClass("ajax-loading"),e.ajaxDoBlockRequest.animateLoadITems(n,"1",c),e.ajaxDoBlockRequest.hidePag(o,a.data),e.ajaxDoBlockRequest.saveAjaxData(m,a.data)});var v=o.find(".penci-subcat-item-1").data("filter_value");l.category_ids=v?v.toString():"";var g={action:"penci_ajax_block",datafilter:l,datacontent:r,styleAction:"link",nonce:PENCILOCALIZE.nonce},h=JSON.stringify(g);d&&!PENCILOCALCACHE.exist(h)&&a.post(PENCILOCALIZE.ajaxUrl,g,function(a){e.ajaxDoBlockRequest.saveAjaxData(h,a.data)})})},nextPrev:function(){a("body").on("click",".penci-block-pag",function(t){t.preventDefault();var i=(new Date).getTime();if(a(this).hasClass("penci-pag-disabled"))return!1;var n=a(this).data("block_id"),o=a("#"+n),s=o.closest(".penci-block-vc"),c=s.data("content"),l=s.data("atts_json"),r=s.attr("data-current"),d=s.find(".penci-subcat-link.active").data("filter_value"),p=o.height(),u=!1,m=e.ajaxDoBlockRequest.getOBjBlockData(s.attr("data-blockUid"));l=m.atts_json?JSON.parse(m.atts_json):m.atts_json,c=m.content,d&&(l.category_ids=d.toString()),a(this).hasClass("penci-slider-next")&&r++,a(this).hasClass("penci-slider-prev")&&r--,s.find(".penci-block-pag").removeClass("penci-pag-disabled"),o.css("min-height",p+"px");var f={action:"penci_ajax_block",datafilter:l,paged:r.toString(),styleAction:"next_prev",datacontent:c,nonce:PENCILOCALIZE.nonce},v=JSON.stringify(f);if(PENCILOCALCACHE.exist(v)){var g=PENCILOCALCACHE.get(v);u=!0,s.attr("data-current",r);var h=jQuery(g.items);return o.html(h),e.ajaxDoBlockRequest.animateLoadITems(o,r,u),e.ajaxDoBlockRequest.hidePag(s,g),!1}if(o.addClass("ajax-loading"),a.post(PENCILOCALIZE.ajaxUrl,f,function(a){s.attr("data-current",r);var t=jQuery(a.data.items);o.html(t),e.ajaxDoBlockRequest.animateLoadITems(o,r,u),e.ajaxDoBlockRequest.hidePag(s,a.data),e.ajaxDoBlockRequest.saveAjaxData(v,a.data)}),1===r-1){var C={action:"penci_ajax_block",datafilter:l,paged:"1",styleAction:"next_prev",datacontent:c,nonce:PENCILOCALIZE.nonce};a.post(PENCILOCALIZE.ajaxUrl,C,function(a){e.ajaxDoBlockRequest.saveAjaxData(JSON.stringify(C),a.data)})}})},loadMore:function(){a("body").on("click",".penci-block-ajax-more-button",function(t){e.ajaxDoBlockRequest.actionLoadMore(a(this))})},infinityScroll:function(){var t=a(".penci-block-ajax-more-button.infinite_scroll");return!!t.length&&void a(window).on("scroll",function(){var i=t.offset().top,n=t.outerHeight(),o=a(window).height(),s=a(this).scrollTop();s>i+n-o&&e.ajaxDoBlockRequest.actionLoadMore(t)}).scroll()},getOBjBlockData:function(e){var t=new penciBlock;return a.each(penciBlocksArray,function(a,i){i.blockID===e&&(t=penciBlocksArray[a])}),t},actionLoadMore:function(t){if(t.hasClass("loading-posts"))return!1;var i=t.data("mes"),n=t.data("block_id"),o=a("#"+n),s=o.find(".penci-loader-effect"),c=o.closest(".penci-block-vc"),l=o.find(".penci-block_content__items"),r=c.data("atts_json"),d=c.data("content"),p=c.find(".penci-subcat-link.active").data("filter_value"),u=c.attr("data-current"),m=!1,f=e.ajaxDoBlockRequest.getOBjBlockData(c.attr("data-blockUid"));r=JSON.parse(f.atts_json),d=f.content,p&&(r.category_ids=p.toString()),u++,t.addClass("loading-posts");var v={action:"penci_ajax_block",datafilter:r,styleAction:"load_more",paged:u,datacontent:d,nonce:PENCILOCALIZE.nonce};a.post(PENCILOCALIZE.ajaxUrl,v,function(a){a.data.items?(s.remove(),o.append(a.data.items).removeClass("ajax-loading"),t.removeClass("loading-posts")):(t.find(".ajax-more-text").text(i),t.find("i").remove(),t.removeClass("loading-posts"),setTimeout(function(){t.parent(".penci-ajax-more").remove()},1200)),c.attr("data-current",u),e.ajaxDoBlockRequest.animateLoadITems(o,u,m)})},animateLoadITems:function(a,t,i){var n=a.find(".penci-block-items__"+t);n.find(".penci-post-item").velocity({opacity:0}),a.removeClass("ajax-loading"),n.find(".penci-post-item").velocity("stop").velocity("transition.slideUpIn",{stagger:100,duration:500,complete:function(){a.attr("style",""),e.ajaxDoBlockRequest.ajaxSuccess(a,i)}})},animateMegaLoadITems:function(a,t){a.find(".penci-mega-post").velocity({opacity:0}),a.removeClass("ajax-loading"),a.find(".penci-mega-post").velocity("stop").velocity("transition.slideUpIn",{stagger:100,duration:200,complete:function(){e.ajaxDoBlockRequest.ajaxSuccess(a,t),a.attr("style","")}})},hidePag:function(a,e){var t=a.find(".penci-slider-next"),i=a.find(".penci-slider-prev"),n=a.find(".penci-pagination");e.hidePagNext?(t.addClass("penci-pag-disabled"),n.addClass("penci-ajax-more-disabled")):(t.removeClass("penci-pag-disabled"),n.removeClass("penci-ajax-more-disabled")),e.hidePagPrev?i.addClass("penci-pag-disabled"):i.removeClass("penci-pag-disabled")},ajaxSuccess:function(a,t){t||e.penciLazy(),e.general.fitvids(a),e.toggleSocialMedia(),e.popupGallery(),e.penciVideo(),e.sticky.stickySidebar(),e.EasyPieChart()},saveAjaxData:function(e,t){var i=t.items;i=i.replace(/data-src="/g,'style="background-image: url('),i=i.replace(/" data-delay/g,');" data-delay'),a.each(t,function(a,e){"items"===a&&(t[a]=i)}),PENCILOCALCACHE.set(e,t)}},e.penciLazy=function(){a(".penci-lazy").Lazy({effect:"fadeIn",effectTime:300,scrollDirection:"both"})},e.sliderOwl=function(t){t.each(function(){var t=a(this),i=t.closest(".penci-block-vc"),n=i.find(".penci-slider-nav"),o=i.find(".penci-slider-next"),s=i.find(".penci-slider-prev"),c=t.data("style"),l=t.data("items"),r=t.data("autowidth"),d=t.data("auto"),p=t.data("autotime"),u=t.data("speed"),m=t.data("loop"),f=t.data("dots"),v=t.data("nav"),g=t.data("center"),h=t.data("video"),C=t.data("vertical"),y=t.data("magrin"),k=!0,x={};2===l&&(x={0:{items:1,autoWidth:!1},480:{items:2}}),3!==l&&!t.hasClass("penci-related-carousel")||"style-27"===c||(x={0:{items:1,autoWidth:!1},480:{items:2,autoWidth:!1},992:{items:3}}),4===l&&(x={0:{items:1,autoWidth:!1},480:{items:2,autoWidth:!1},960:{items:3},1100:{items:4}}),"style-7"===c&&(x={0:{items:1,autoWidth:!1},900:{items:1,autoWidth:!0}}),"style-18"===c&&(x={0:{items:1,autoWidth:!1},768:{items:2,autoWidth:!1}}),"style-10"===c&&(x={0:{items:1,autoWidth:!1},768:{items:1,autoWidth:!1},690:{items:2}}),1===r&&"style-27"!==c&&"style-7"!==c&&(x={0:{items:1,autoWidth:!1},480:{items:2},768:{items:2},992:{items:3}});var j={loop:1!==m,margin:y,items:l?l:3,navSpeed:u,dotsSpeed:u,nav:1===v,dots:1===f,navText:['',''],autoplay:1===d,autoplayTimeout:p,autoHeight:!1,center:1===g,autoWidth:1===r,autoplayHoverPause:!0,autoplaySpeed:u,video:1===h,animateOut:1===C&&"fadeOutRightNewsTicker",animateIn:1===C&&"fadeInRightNewsTicker",lazyLoad:k,responsive:x};if(t.hasClass("penci-slider-fullscreen")){var b=parseFloat(a(window).height()),w=parseFloat(a(window).width()),_=b/w*100,_=_.toFixed(2)+"%";t.find(".penci-slider__item").css("padding-top",_)}t.imagesLoaded({background:".penci-slider__item"},function(){t.owlCarousel(j)}),t.on("initialized.owl.carousel",function(a){e.penciLazy();var i=t.find(".penci-jarallax-slider");i.length&&i.jarallax({elementInViewport:t,imgPosition:"30% 50%"})}),o.click(function(a){return a.preventDefault(),t.trigger("next.owl.carousel"),!1}),s.click(function(a){return a.preventDefault(),t.trigger("prev.owl.carousel"),!1})})},e.Jarallax=function(){return!(!a.fn.jarallax||!a(".penci-jarallax").length)&&void a(".penci-jarallax").each(function(){var e=a(this),t={};if(e.hasClass("penci-jarallax-inviewport")){var i=e.closest(".penci-owl-featured-area");t={elementInViewport:i,imgPosition:"30% 50%"}}e.imagesLoaded({background:!0},function(){jarallax(e,t)})})},e.sliderSync=function(){return!!a().owlCarousel&&void a(".penci-slider-sync").each(function(){function t(a){var e=a.item.count-1,t=Math.round(a.item.index-a.item.count/2-.5);t<0&&(t=e),t>e&&(t=0),g.find(".owl-item").removeClass("current").eq(t).addClass("current");var i=g.find(".owl-item.active").length-1,n=g.find(".owl-item.active").first().index(),o=g.find(".owl-item.active").last().index();t>o&&g.data("owl.carousel").to(t,700,!0),t0&&(g.find(".owl-item").removeClass("item-active-1").removeClass("item-active-2").removeClass("item-active-3"),g.find(".owl-item.active").eq(0).addClass("item-active-1"),g.find(".owl-item.active").eq(1).addClass("item-active-2"),g.find(".owl-item.active").eq(2).addClass("item-active-3"))}var i=a(this),n=i.data("auto"),o=i.data("autotime"),s=i.data("speed"),c=i.data("loop"),l=i.data("nav"),r=i.data("autowidth"),d=i.data("style"),p=i.data("items"),u=i.data("autoheight1"),m=i.data("autoheight2"),f={};"style-12"===d?f={0:{items:1},1e3:{items:2},1400:{items:3}}:"style-13"===d&&(f={0:{items:1},1e3:{items:2},1200:{items:3},1400:{items:4}});var v=i.find(".penci-big_items"),g=i.find(".penci-small_items");v.hasClass("popup-gallery")&&v.magnificPopup({delegate:"a",type:"image",closeOnContentClick:!1,closeBtnInside:!1,mainClass:"penci-with-zoom",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]}}),v.imagesLoaded(function(){v.owlCarousel({items:1,autoplayTimeout:o,nav:1===l,autoplay:1===n,loop:1!==c,responsiveRefreshRate:200,smartSpeed:s,navSpeed:s,autoplaySpeed:s,dots:!1,mouseDrag:!1,lazyLoad:!0,autoplayHoverPause:!0,autoHeight:1!==u,navText:['','']}).on("changed.owl.carousel",t)}),v.on("changed.owl.carousel",function(a){e.penciLazy()}),g.imagesLoaded(function(){g.on("initialized.owl.carousel",function(){g.find(".owl-item").eq(0).addClass("current")}).owlCarousel({autoplay:!1,items:p?p:3,dots:!1,nav:!1,autoWidth:1===r,smartSpeed:s,navSpeed:s,slideSpeed:s,slideBy:1,autoplayTimeout:o,responsiveRefreshRate:200,lazyLoad:!0,autoplayHoverPause:!0,responsive:f,autoHeight:1!==m})}),g.on("changed.owl.carousel",function(){g.find(".owl-item").eq(0).addClass("item-active-1"),g.find(".owl-item").eq(1).addClass("item-active-2"),g.find(".owl-item").eq(2).addClass("item-active-3")}),g.on("click",".owl-item",function(e){e.preventDefault();var t=a(this).index();v.data("owl.carousel").to(t,700,!0)})})},e.postLike=function(){a("body").on("click",".penci-post-like",function(e){e.preventDefault();var t=a(this),i=t.data("post_id"),n=t.data("like"),o=t.data("unlike"),s=t.children(".penci-share-number"),c=parseInt(s.text());t.hasClass("single-like-button")&&(s=a(".single-like-button .penci-share-number"),t=a(".single-like-button")),t.hasClass("liked")?(t.removeClass("liked"),t.prop("title",n),s.html(c-1)):(t.addClass("liked"),t.prop("title",o),s.html(c+1));var l={action:"penci_post_like",post_id:i,penci_post_like:"",nonce:PENCILOCALIZE.nonce};a.post(PENCILOCALIZE.ajaxUrl,l,function(a){})})},e.gallery=function(){var e=a(".penci-post-gallery-container.justified"),t=a(".penci-post-gallery-container.masonry");a().justifiedGallery&&e.length&&a(".penci-post-gallery-container.justified").each(function(){var e=a(this);e.justifiedGallery({rowHeight:e.data("height"),lastRow:"nojustify",margins:e.data("margin"),randomize:!1})}),a().isotope&&t.length&&(a(".penci-post-gallery-container.masonry .item-gallery-masonry").each(function(){var e=a(this);if(e.attr("title")){var t=e.attr("title");e.children().append('
'+t+"
")}}),a(window).load(function(){t.length&&t.each(function(){var e=a(this);e.isotope({itemSelector:".item-gallery-masonry",transitionDuration:".55s",layoutMode:"masonry"}),e.addClass("loaded"),a(".penci-post-gallery-container.masonry .item-gallery-masonry").each(function(){var e=a(this);e.one("inview",function(a,t,i,n){e.addClass("animated")})})})}))},e.EasyPieChart=function(){return a(".penci-review-process").each(function(){var e=a(this),t=e.children(),i=10*t.data("width");e.one("inview",function(a,e,n,o){t.animate({width:i+"%"},1e3)})}),!(!a.fn.easyPieChart||!a(".penci-piechart").length)&&void a(".penci-piechart").each(function(){var e=a(this);e.one("inview",function(a,t,i,n){var o={barColor:e.data("color"),trackColor:e.data("trackcolor"),scaleColor:!1,lineWidth:e.data("thickness"),size:e.data("size"),animate:1e3};e.easyPieChart(o)})})},vc_iframe.penciSliders=function(t){var i=a("[data-model-id="+t+"]"),n=(i.find("img").length,i.find('[data-ride="penci_sliders"]'));return n.find("img:first").length?n.find("img:first").prop("complete")?void e.sliderOwl(n):void window.setTimeout(function(){vc_iframe.penciSliders(t)},500):e.sliderOwl(n)}}(window.jQuery);x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586