// source --> http://www.caddetesisat.com/wp-includes/js/jquery/jquery.min.js?ver=3.5.1 /*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0 http://www.caddetesisat.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1 /*! jQuery Migrate v1.4.1 | (c) jQuery Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(a,b,c){function d(c){var d=b.console;f[c]||(f[c]=!0,a.migrateWarnings.push(c),d&&d.warn&&!a.migrateMute&&(d.warn("JQMIGRATE: "+c),a.migrateTrace&&d.trace&&d.trace()))}function e(b,c,e,f){if(Object.defineProperty)try{return void Object.defineProperty(b,c,{configurable:!0,enumerable:!0,get:function(){return d(f),e},set:function(a){d(f),e=a}})}catch(g){}a._definePropertyBroken=!0,b[c]=e}a.migrateVersion="1.4.1";var f={};a.migrateWarnings=[],b.console&&b.console.log&&b.console.log("JQMIGRATE: Migrate is installed"+(a.migrateMute?"":" with logging active")+", version "+a.migrateVersion),a.migrateTrace===c&&(a.migrateTrace=!0),a.migrateReset=function(){f={},a.migrateWarnings.length=0},"BackCompat"===document.compatMode&&d("jQuery is not compatible with Quirks Mode");var g=a("",{size:1}).attr("size")&&a.attrFn,h=a.attr,i=a.attrHooks.value&&a.attrHooks.value.get||function(){return null},j=a.attrHooks.value&&a.attrHooks.value.set||function(){return c},k=/^(?:input|button)$/i,l=/^[238]$/,m=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,n=/^(?:checked|selected)$/i;e(a,"attrFn",g||{},"jQuery.attrFn is deprecated"),a.attr=function(b,e,f,i){var j=e.toLowerCase(),o=b&&b.nodeType;return i&&(h.length<4&&d("jQuery.fn.attr( props, pass ) is deprecated"),b&&!l.test(o)&&(g?e in g:a.isFunction(a.fn[e])))?a(b)[e](f):("type"===e&&f!==c&&k.test(b.nodeName)&&b.parentNode&&d("Can't change the 'type' of an input or button in IE 6/7/8"),!a.attrHooks[j]&&m.test(j)&&(a.attrHooks[j]={get:function(b,d){var e,f=a.prop(b,d);return f===!0||"boolean"!=typeof f&&(e=b.getAttributeNode(d))&&e.nodeValue!==!1?d.toLowerCase():c},set:function(b,c,d){var e;return c===!1?a.removeAttr(b,d):(e=a.propFix[d]||d,e in b&&(b[e]=!0),b.setAttribute(d,d.toLowerCase())),d}},n.test(j)&&d("jQuery.fn.attr('"+j+"') might use property instead of attribute")),h.call(a,b,e,f))},a.attrHooks.value={get:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?i.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value') no longer gets properties"),b in a?a.value:null)},set:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?j.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value', val) no longer sets properties"),void(a.value=b))}};var o,p,q=a.fn.init,r=a.find,s=a.parseJSON,t=/^\s*)([^>]*)$/;a.fn.init=function(b,e,f){var g,h;return b&&"string"==typeof b&&!a.isPlainObject(e)&&(g=w.exec(a.trim(b)))&&g[0]&&(t.test(b)||d("$(html) HTML strings must start with '<' character"),g[3]&&d("$(html) HTML text after last tag is ignored"),"#"===g[0].charAt(0)&&(d("HTML string cannot start with a '#' character"),a.error("JQMIGRATE: Invalid selector string (XSS)")),e&&e.context&&e.context.nodeType&&(e=e.context),a.parseHTML)?q.call(this,a.parseHTML(g[2],e&&e.ownerDocument||e||document,!0),e,f):(h=q.apply(this,arguments),b&&b.selector!==c?(h.selector=b.selector,h.context=b.context):(h.selector="string"==typeof b?b:"",b&&(h.context=b.nodeType?b:e||document)),h)},a.fn.init.prototype=a.fn,a.find=function(a){var b=Array.prototype.slice.call(arguments);if("string"==typeof a&&u.test(a))try{document.querySelector(a)}catch(c){a=a.replace(v,function(a,b,c,d){return"["+b+c+'"'+d+'"]'});try{document.querySelector(a),d("Attribute selector with '#' must be quoted: "+b[0]),b[0]=a}catch(e){d("Attribute selector with '#' was not fixed: "+b[0])}}return r.apply(this,b)};var x;for(x in r)Object.prototype.hasOwnProperty.call(r,x)&&(a.find[x]=r[x]);a.parseJSON=function(a){return a?s.apply(this,arguments):(d("jQuery.parseJSON requires a valid JSON string"),null)},a.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a.browser||(o=a.uaMatch(navigator.userAgent),p={},o.browser&&(p[o.browser]=!0,p.version=o.version),p.chrome?p.webkit=!0:p.webkit&&(p.safari=!0),a.browser=p),e(a,"browser",a.browser,"jQuery.browser is deprecated"),a.boxModel=a.support.boxModel="CSS1Compat"===document.compatMode,e(a,"boxModel",a.boxModel,"jQuery.boxModel is deprecated"),e(a.support,"boxModel",a.support.boxModel,"jQuery.support.boxModel is deprecated"),a.sub=function(){function b(a,c){return new b.fn.init(a,c)}a.extend(!0,b,this),b.superclass=this,b.fn=b.prototype=this(),b.fn.constructor=b,b.sub=this.sub,b.fn.init=function(d,e){var f=a.fn.init.call(this,d,e,c);return f instanceof b?f:b(f)},b.fn.init.prototype=b.fn;var c=b(document);return d("jQuery.sub() is deprecated"),b},a.fn.size=function(){return d("jQuery.fn.size() is deprecated; use the .length property"),this.length};var y=!1;a.swap&&a.each(["height","width","reliableMarginRight"],function(b,c){var d=a.cssHooks[c]&&a.cssHooks[c].get;d&&(a.cssHooks[c].get=function(){var a;return y=!0,a=d.apply(this,arguments),y=!1,a})}),a.swap=function(a,b,c,e){var f,g,h={};y||d("jQuery.swap() is undocumented and deprecated");for(g in b)h[g]=a.style[g],a.style[g]=b[g];f=c.apply(a,e||[]);for(g in b)a.style[g]=h[g];return f},a.ajaxSetup({converters:{"text json":a.parseJSON}});var z=a.fn.data;a.fn.data=function(b){var e,f,g=this[0];return!g||"events"!==b||1!==arguments.length||(e=a.data(g,b),f=a._data(g,b),e!==c&&e!==f||f===c)?z.apply(this,arguments):(d("Use of jQuery.fn.data('events') is deprecated"),f)};var A=/\/(java|ecma)script/i;a.clean||(a.clean=function(b,c,e,f){c=c||document,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,d("jQuery.clean() is deprecated");var g,h,i,j,k=[];if(a.merge(k,a.buildFragment(b,c).childNodes),e)for(i=function(a){return!a.type||A.test(a.type)?f?f.push(a.parentNode?a.parentNode.removeChild(a):a):e.appendChild(a):void 0},g=0;null!=(h=k[g]);g++)a.nodeName(h,"script")&&i(h)||(e.appendChild(h),"undefined"!=typeof h.getElementsByTagName&&(j=a.grep(a.merge([],h.getElementsByTagName("script")),i),k.splice.apply(k,[g+1,0].concat(j)),g+=j.length));return k});var B=a.event.add,C=a.event.remove,D=a.event.trigger,E=a.fn.toggle,F=a.fn.live,G=a.fn.die,H=a.fn.load,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",J=new RegExp("\\b(?:"+I+")\\b"),K=/(?:^|\s)hover(\.\S+|)\b/,L=function(b){return"string"!=typeof b||a.event.special.hover?b:(K.test(b)&&d("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),b&&b.replace(K,"mouseenter$1 mouseleave$1"))};a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a.event.dispatch&&e(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),a.event.add=function(a,b,c,e,f){a!==document&&J.test(b)&&d("AJAX events should be attached to document: "+b),B.call(this,a,L(b||""),c,e,f)},a.event.remove=function(a,b,c,d,e){C.call(this,a,L(b)||"",c,d,e)},a.each(["load","unload","error"],function(b,c){a.fn[c]=function(){var a=Array.prototype.slice.call(arguments,0);return"load"===c&&"string"==typeof a[0]?H.apply(this,a):(d("jQuery.fn."+c+"() is deprecated"),a.splice(0,0,c),arguments.length?this.bind.apply(this,a):(this.triggerHandler.apply(this,a),this))}}),a.fn.toggle=function(b,c){if(!a.isFunction(b)||!a.isFunction(c))return E.apply(this,arguments);d("jQuery.fn.toggle(handler, handler...) is deprecated");var e=arguments,f=b.guid||a.guid++,g=0,h=function(c){var d=(a._data(this,"lastToggle"+b.guid)||0)%g;return a._data(this,"lastToggle"+b.guid,d+1),c.preventDefault(),e[d].apply(this,arguments)||!1};for(h.guid=f;g http://www.caddetesisat.com/wp-content/plugins/otw-popping-content//include/otw_components/otw_overlay/js/mfp-core-inline-0.9.9.js?ver=1.4 // Magnific Popup v0.9.9 by Dmitry Semenov // http://bit.ly/magnific-popup#build=inline+ajax (function(a){var b="Close",c="BeforeClose",d="AfterClose",e="BeforeAppend",f="MarkupParse",g="Open",h="Change",i="mfp",j="."+i,k="mfp-ready",l="mfp-removing",m="mfp-prevent-close",n,o=function(){},p=!!window.jQuery,q,r=a(window),s,t,u,v,w,x=function(a,b){n.ev.on(i+a+j,b)},y=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},z=function(b,c){n.ev.triggerHandler(i+b,c),n.st.callbacks&&(b=b.charAt(0).toLowerCase()+b.slice(1),n.st.callbacks[b]&&n.st.callbacks[b].apply(n,a.isArray(c)?c:[c]))},A=function(b){if(b!==w||!n.currTemplate.closeBtn)n.currTemplate.closeBtn=a(n.st.closeMarkup.replace("%title%",n.st.tClose)),w=b;return n.currTemplate.closeBtn},B=function(){a.magnificPopup.instance||(n=new o,n.init(),a.magnificPopup.instance=n)},C=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(a.transition!==undefined)return!0;while(b.length)if(b.pop()+"Transition"in a)return!0;return!1};o.prototype={constructor:o,init:function(){var b=navigator.appVersion;n.isIE7=b.indexOf("MSIE 7.")!==-1,n.isIE8=b.indexOf("MSIE 8.")!==-1,n.isLowIE=n.isIE7||n.isIE8,n.isAndroid=/android/gi.test(b),n.isIOS=/iphone|ipad|ipod/gi.test(b),n.supportsTransition=C(),n.probablyMobile=n.isAndroid||n.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),t=a(document),n.popupsCache={}},open:function(b){s||(s=a(document.body));var c;if(b.isObj===!1){n.items=b.items.toArray(),n.index=0;var d=b.items,e;for(c=0;c(a||r.height())},_setFocus:function(){(n.st.focus?n.content.find(n.st.focus).eq(0):n.wrap).focus()},_onFocusIn:function(b){if(b.target!==n.wrap[0]&&!a.contains(n.wrap[0],b.target))return n._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),z(f,[b,c,d]),a.each(c,function(a,c){if(c===undefined||c===!1)return!0;e=a.split("_");if(e.length>1){var d=b.find(j+"-"+e[0]);if(d.length>0){var f=e[1];f==="replaceWith"?d[0]!==c[0]&&d.replaceWith(c):f==="img"?d.is("img")?d.attr("src",c):d.replaceWith(''):d.attr(e[1],c)}}else b.find(j+"-"+a).html(c)})},_getScrollbarSize:function(){if(n.scrollbarSize===undefined){var a=document.createElement("div");a.id="mfp-sbm",a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),n.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return n.scrollbarSize}},a.magnificPopup={instance:null,proto:o.prototype,modules:[],open:function(b,c){return B(),b?b=a.extend(!0,{},b):b={},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(b){B();var c=a(this);if(typeof b=="string")if(b==="open"){var d,e=p?c.data("magnificPopup"):c[0].magnificPopup,f=parseInt(arguments[1],10)||0;e.items?d=e.items[f]:(d=c,e.delegate&&(d=d.find(e.delegate)),d=d.eq(f)),n._openClick({mfpEl:d},c,e)}else n.isOpen&&n[b].apply(n,Array.prototype.slice.call(arguments,1));else b=a.extend(!0,{},b),p?c.data("magnificPopup",b):c[0].magnificPopup=b,n.addGroup(c,b);return c};var D="inline",E,F,G,H=function(){G&&(F.after(G.addClass(E)).detach(),G=null)};a.magnificPopup.registerModule(D,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){n.types.push(D),x(b+"."+D,function(){H()})},getInline:function(b,c){H();if(b.src){var d=n.st.inline,e=a(b.src);if(e.length){var f=e[0].parentNode;f&&f.tagName&&(F||(E=d.hiddenClass,F=y(E),E="mfp-"+E),G=e.after(F).detach().removeClass(E)),n.updateStatus("ready")}else n.updateStatus("error",d.tNotFound),e=a("
");return b.inlineElement=e,e}return n.updateStatus("ready"),n._parseMarkup(c,{},b),c}}});var I="ajax",J,K=function(){J&&s.removeClass(J)},L=function(){K(),n.req&&n.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){n.types.push(I),J=n.st.ajax.cursor,x(b+"."+I,L),x("BeforeChange."+I,L)},getAjax:function(b){J&&s.addClass(J),n.updateStatus("loading");var c=a.extend({url:b.src,success:function(c,d,e){var f={data:c,xhr:e};z("ParseAjax",f),n.appendContent(a(f.data),I),b.finished=!0,K(),n._setFocus(),setTimeout(function(){n.wrap.addClass(k)},16),n.updateStatus("ready"),z("AjaxContentAdded")},error:function(){K(),b.finished=b.loadError=!0,n.updateStatus("error",n.st.ajax.tError.replace("%url%",b.src))}},n.st.ajax.settings);return n.req=a.ajax(c),""}}});var M,N=function(){return M===undefined&&(M=document.createElement("p").style.MozTransform!==undefined),M};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a=n.st.zoom,d=".zoom",e;if(!a.enabled||!n.supportsTransition)return;var f=a.duration,g=function(b){var c=b.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+a.duration/1e3+"s "+a.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,c.css(e),c},h=function(){n.content.css("visibility","visible")},i,j;x("BuildControls"+d,function(){if(n._allowZoom()){clearTimeout(i),n.content.css("visibility","hidden"),e=n._getItemToZoom();if(!e){h();return}j=g(e),j.css(n._getOffset()),n.wrap.append(j),i=setTimeout(function(){j.css(n._getOffset(!0)),i=setTimeout(function(){h(),setTimeout(function(){j.remove(),e=j=null,z("ZoomAnimationEnded")},16)},f)},16)}}),x(c+d,function(){if(n._allowZoom()){clearTimeout(i),n.st.removalDelay=f;if(!e){e=n._getItemToZoom();if(!e)return;j=g(e)}j.css(n._getOffset(!0)),n.wrap.append(j),n.content.css("visibility","hidden"),setTimeout(function(){j.css(n._getOffset())},16)}}),x(b+d,function(){n._allowZoom()&&(h(),j&&j.remove(),e=null)})},_allowZoom:function(){return n.currItem.type==="image"},_getItemToZoom:function(){return n.currItem.hasSize?n.currItem.img:!1},_getOffset:function(b){var c;b?c=n.currItem.img:c=n.st.zoom.opener(n.currItem.el||n.currItem);var d=c.offset(),e=parseInt(c.css("padding-top"),10),f=parseInt(c.css("padding-bottom"),10);d.top-=a(window).scrollTop()-e;var g={width:c.width(),height:(p?c.innerHeight():c[0].offsetHeight)-f-e};return N()?g["-moz-transform"]=g.transform="translate("+d.left+"px,"+d.top+"px)":(g.left=d.left,g.top=d.top),g}}}),B()})(window.jQuery||window.Zepto); // source --> http://www.caddetesisat.com/wp-content/plugins/otw-popping-content//include/otw_components/otw_overlay/js/otw-sticky.js?ver=1.4 otw_sticky = function( node ){ this.type = ''; this.position = ''; this.effect = 'slide'; this.effect_speed = 1000; this.node = node; this.wrapper = node.parents( '.otw-sticky-wrapoer' ); this.admin_bar_size = 0; this.hide_value = 0; this.show_value = 0; this.push_content = false; this.push_show_value = 0; this.push_hide_value = 0; this.background = false; this.fixed = ''; this.show_button = ''; this.show_button_pos = 0; this.hide_button = ''; this.hide_button_pos = 0; this.disabled = false; this.visible = true; with( this ){ setTimeout( function(){ init(); }, 1000 ); }; } otw_sticky.prototype.init = function(){ if( this.node.hasClass( 'otw-full-bar' ) ){ this.type = 'full-bar'; }; if( this.node.hasClass( 'otw-top-sticky' ) ){ this.position = 'top'; }; if( this.node.hasClass( 'otw-bottom-sticky' ) ){ this.position = 'bottom'; }; if( this.node.hasClass( 'otw-left-sticky' ) ){ this.position = 'left'; }; if( this.node.hasClass( 'otw-right-sticky' ) ){ this.position = 'right'; }; if( this.node.hasClass( 'otw-push-content' ) ){ this.push_content = true; } if( this.node.hasClass( 'otw-with-ovbackground' ) ){ this.background = true; } if( this.node.hasClass( 'scrolling-position' ) ){ this.fixed = 'scrolling'; } if( this.wrapper.hasClass( 'otw-show-sticky-delay' ) || this.wrapper.hasClass( 'otw-show-sticky-loads' ) || this.wrapper.hasClass( 'otw-show-sticky-seconds' ) || this.node.hasClass( 'otw-show-sticky-mouse' ) || this.node.hasClass( 'otw-show-sticky-wooab' ) || this.node.hasClass( 'otw-show-sticky-scroll' ) || this.node.hasClass( 'otw-show-sticky-scrollto' ) || this.node.hasClass( 'otw-show-sticky-clickon' ) ){ this.visible = false; } if( this.node.hasClass( 'otw-fade-animation' ) ){ this.effect = 'fade'; } this.show_button = this.node.find( '.otw-show-man-label' ); this.hide_button = this.node.find( '.otw-hide-man-label' ); var admin_bar = jQuery( '#wpadminbar' ); if( admin_bar.size() ){ this.admin_bar_size = admin_bar.height(); } switch( this.position ){ case 'left': this.node.css( 'visibility', 'hidden' ); this.node.css( 'display', 'block' ); this.node.css( 'top', this.admin_bar_size ); this.recalculate_settings(); if( this.show_button && this.show_button.size() && this.show_button.hasClass( 'otw-btn-vertical' ) ){ this.show_button.css( 'top', - ( this.show_button.height() ) ); } if( this.visible ){ this.node.css( 'visibility', 'visible' ); } break; case 'right': this.node.css( 'visibility', 'hidden' ); this.node.css( 'display', 'block' ); this.node.css( 'top', this.admin_bar_size ); this.recalculate_settings(); this.node.css( 'right', this.hide_value ); if( this.visible ){ this.node.css( 'visibility', 'visible' ); } break; case 'top': this.node.css( 'visibility', 'hidden' ); this.node.css( 'display', 'block' ); this.recalculate_settings(); this.node.css( 'top', this.hide_value ); if( this.show_button && this.show_button.size() && this.show_button.hasClass( 'otw-btn-vertical' ) ){ this.show_button.css( 'right', -( this.show_button.width() ) ); } if( this.visible ){ this.node.css( 'visibility', 'visible' ); } break; case 'bottom': this.node.css( 'visibility', 'hidden' ); this.node.css( 'display', 'block' ); this.recalculate_settings(); this.node.css( 'bottom', this.hide_value ); if( this.show_button && this.show_button.size() && this.show_button.hasClass( 'otw-btn-vertical' ) ){ this.show_button.css( 'right', this.show_button.outerHeight() + 30 ); } if( this.show_button && this.show_button.size() ){ this.show_button.css( 'margin-top', this.show_button_pos ); } if( this.hide_button && this.hide_button.size() ){ this.hide_button.css( 'margin-top', this.hide_button_pos ); } if( this.visible ){ this.node.css( 'visibility', 'visible' ); } break; } with( this ){ node.find( '.otw-show-man-label' ).click( function(){ open_sticky(); } ); node.find( '.otw-hide-man-label' ).click( function(){ close_sticky(); } ); }; if( this.node.hasClass( 'otw_no_device_large' ) && ( jQuery( 'html, body' ).width() > 767 ) ){ this.node.css( 'display', 'none' ); this.disabled = true; } if( this.node.hasClass( 'otw_no_device_small' ) && ( jQuery( 'html, body' ).width() <= 767 ) ){ this.node.css( 'display', 'none' ); this.disabled = true; } } otw_sticky.prototype.open_sticky = function(){ if( this.disabled ){ return; } if( this.node.css( 'visibility' ) == 'hidden' ){ this.node.css( 'visibility', 'visible' ); } with( this ){ recalculate_settings(); if( push_content ){ prepare_push_content(); } if( background ){ show_background(); } switch( this.position ){ case 'left': switch( this.effect ){ case 'slide': this.open_left = function(){ hide_button.css( 'margin-left', - ( hide_button_pos + node.width() ) ); node.addClass( 'otw-opening-sticky' ); node.removeClass( 'otw-hide-sticky' ); hide_button.animate( { 'margin-left': hide_button_pos }, this.effect_speed ); this.node.animate( { right: this.show_value }, this.effect_speed, function(){ opened_sticky(); } ); if( push_content ){ jQuery( '#otw-push-wrapper' ).animate( { 'margin-left': this.push_show_value }, effect_speed ); } } show_button.animate( { 'margin-left': -( show_button_pos + node.width() ) }, this.effect_speed / 2, function(){ open_left() } ); break; case 'fade': node.css( 'display', 'none' ); node.css( 'right', show_value ); node.fadeIn( effect_speed ); opened_sticky(); if( push_content ){ jQuery( '#otw-push-wrapper' ).css( 'margin-left', this.push_show_value ); } break; default: this.node.css( 'right', this.show_value ); opened_sticky(); break; } break; case 'right': switch( this.effect ){ case 'slide': this.open_right = function(){ hide_button.css( 'margin-right', - ( hide_button_pos + node.width() ) ); node.addClass( 'otw-opening-sticky' ); node.removeClass( 'otw-hide-sticky' ); hide_button.animate( { 'margin-right': hide_button_pos }, this.effect_speed ); node.animate( { right: this.show_value }, this.effect_speed, function(){ opened_sticky(); } ); if( push_content ){ jQuery( '#otw-push-wrapper' ).animate( { 'margin-left': this.push_show_value }, effect_speed ); }; } if( show_button.hasClass( 'otw-btn-vertical' ) ){ show_button.animate( { 'margin-left': ( show_button_pos + node.width() ) }, this.effect_speed / 2, function(){ open_right() } ); }else{ show_button.animate( { 'margin-right': -( show_button_pos + node.width() ) }, this.effect_speed / 2, function(){ open_right() } ); } break; case 'fade': node.css( 'display', 'none' ); node.css( 'right', show_value ); node.fadeIn( effect_speed ); opened_sticky(); if( push_content ){ jQuery( '#otw-push-wrapper' ).css( 'margin-left', this.push_show_value ); } break; default: this.node.css( 'right', this.show_value ); opened_sticky(); break; } break; case 'top': switch( this.effect ){ case 'slide': this.open_top = function(){ hide_button.css( 'margin-top', - ( hide_button_pos + node.height() ) ); node.addClass( 'otw-opening-sticky' ); node.removeClass( 'otw-hide-sticky' ); hide_button.animate( { 'margin-top': hide_button_pos }, this.effect_speed ); this.node.animate( { top: this.show_value }, this.effect_speed, function(){ opened_sticky(); } ); if( push_content ){ jQuery( '#otw-push-wrapper' ).animate( { 'margin-top': this.push_show_value }, effect_speed ); } } show_button.animate( { 'margin-top': - ( show_button_pos + node.height() ) }, this.effect_speed / 2, function(){ open_top() } ); break; case 'fade': node.css( 'display', 'none' ); node.css( 'top', show_value ); node.fadeIn( effect_speed ); opened_sticky(); if( push_content ){ jQuery( '#otw-push-wrapper' ).css( 'margin-top', this.push_show_value ); } break; default: this.node.css( 'top', this.show_value ); opened_sticky(); break; } break; case 'bottom': var show_value = this.show_value; if( this.fixed == 'scrolling' ){ jQuery( 'body' ).scrollTop( jQuery(document).height() ); setTimeout(function() { jQuery( 'body' ).scrollTop( jQuery(document).height() ); }, 20 ); this.node.css( 'visibility', 'hidden' ); this.node.css( 'position', 'absolute' ); show_value = - node.height(); } switch( this.effect ){ case 'slide': this.open_bottom = function(){ if( this.fixed == 'scrolling' ){ this.node.css( 'visibility', 'visible' ); } hide_button.css( 'margin-top', hide_button_pos + node.height() ); node.addClass( 'otw-opening-sticky' ); node.removeClass( 'otw-hide-sticky' ); hide_button.animate( { 'margin-top': hide_button_pos }, this.effect_speed ); node.animate( { bottom: show_value }, this.effect_speed, function(){ opened_sticky(); } ); if( push_content ){ jQuery( '#otw-push-wrapper' ).css( 'position', 'relative' ); jQuery( '#otw-push-wrapper' ).height( jQuery( '#otw-push-wrapper-inner' ).height() ); jQuery( '#otw-push-wrapper-inner' ).css( 'position', 'absolute' ); jQuery( '#otw-push-wrapper-inner' ).animate( { 'top': - push_show_value }, effect_speed ); } } show_button.animate( { 'margin-top': show_button_pos + node.height() }, this.effect_speed / 2, function(){ open_bottom() } ); break; case 'fade': this.node.css( 'display', 'none' ); if( this.fixed == 'scrolling' ){ this.node.css( 'visibility', 'visible' ); } this.node.css( 'bottom', this.show_value ); this.node.fadeIn( this.effect_speed ); if( push_content ){ jQuery( '#otw-push-wrapper' ).css( 'position', 'relative' ); jQuery( '#otw-push-wrapper' ).height( jQuery( '#otw-push-wrapper-inner' ).height() ); jQuery( '#otw-push-wrapper-inner' ).css( 'position', 'absolute' ); jQuery( '#otw-push-wrapper-inner' ).css( 'top', - push_show_value ); } opened_sticky(); break; default: this.node.css( 'bottom', this.show_value ); opened_sticky(); break; } break; } }; }; otw_sticky.prototype.opened_sticky = function(){ this.node.removeClass( 'otw-opening-sticky' ); this.node.removeClass( 'otw-hide-sticky' ); this.node.addClass( 'otw-show-sticky' ); if( this.fixed == 'scrolling' ){ this.node.css( 'position', 'absolute' ); } } otw_sticky.prototype.recalculate_settings = function(){ switch( this.position ){ case 'left': this.hide_value = '100%'; this.push_show_value = this.node.width(); this.show_value = jQuery( 'body' ).width() - this.node.width(); break; case 'right': this.hide_value = - this.node.width(); this.push_show_value = - this.node.width(); break; case 'top': this.hide_value = - ( this.node.height() - this.admin_bar_size + 2 ); this.show_value = this.admin_bar_size; this.push_show_value = ( this.node.outerHeight() ); break; case 'bottom': this.hide_value = - ( this.node.height() ); this.push_show_value = ( this.node.height() ); if( this.show_button && this.show_button.size() ){ this.show_button_pos = this.hide_value - this.show_button.outerHeight(); } if( this.hide_button && this.hide_button.size() ){ this.hide_button_pos = this.hide_value - this.hide_button.outerHeight(); } break; } } otw_sticky.prototype.close_sticky = function(){ with( this ){ recalculate_settings(); switch( this.position ){ case 'left': switch( this.effect ){ case 'slide': hide_button.animate( { 'margin-left': -( hide_button_pos + node.height() + hide_button.outerHeight() ) }, effect_speed ); this.node.animate( { right: this.hide_value }, this.effect_speed, function(){ closed_sticky(); show_button.animate( { 'margin-left': show_button_pos }, this.effect_speed ); } ); if( push_content ){ jQuery( '#otw-push-wrapper' ).animate( { 'margin-left': this.push_hide_value }, effect_speed ); } break; case 'fade': this.node.fadeOut( this.effect_speed, function(){ node.css( 'right', hide_value ); node.css( 'display', 'block' ); closed_sticky(); if( push_content ){ jQuery( '#otw-push-wrapper' ).css( 'margin-left', push_hide_value ); } } ); break; default: this.node.css( 'right', this.hide_value ); closed_sticky(); break; } break; case 'right': switch( this.effect ){ case 'slide': hide_button.animate( { 'margin-right': -( hide_button_pos + node.height() + hide_button.outerHeight() ) }, effect_speed ); this.node.animate( { right: this.hide_value }, this.effect_speed, function(){ closed_sticky(); if( show_button.hasClass( 'otw-btn-vertical' ) ){ show_button.animate( { 'margin-left': show_button_pos }, this.effect_speed ); }else{ show_button.animate( { 'margin-right': show_button_pos }, this.effect_speed ); } } ); if( push_content ){ jQuery( '#otw-push-wrapper' ).animate( { 'margin-left': this.push_hide_value }, effect_speed ); } break; case 'fade': this.node.fadeOut( this.effect_speed, function(){ node.css( 'right', hide_value ); node.css( 'display', 'block' ); closed_sticky(); if( push_content ){ jQuery( '#otw-push-wrapper' ).css( 'margin-left', push_hide_value ); } } ); break; default: this.node.css( 'right', this.hide_value ); closed_sticky(); break; } break; case 'top': switch( this.effect ){ case 'slide': hide_button.animate( { 'margin-top': -( hide_button_pos + node.height() + hide_button.outerHeight() ) }, effect_speed ); this.node.animate( { top: this.hide_value }, this.effect_speed, function(){ closed_sticky(); show_button.animate( { 'margin-top': show_button_pos }, this.effect_speed ); } ); if( push_content ){ jQuery( '#otw-push-wrapper' ).animate( { 'margin-top': this.push_hide_value }, effect_speed ); } break; case 'fade': this.node.fadeOut( this.effect_speed, function(){ node.css( 'top', hide_value ); node.css( 'display', 'block' ); closed_sticky(); if( push_content ){ jQuery( '#otw-push-wrapper' ).css( 'margin-top', push_hide_value ); } } ); break; default: this.node.css( 'top', this.hide_value ); closed_sticky(); break; } break; case 'bottom': switch( this.effect ){ case 'slide': hide_button.animate( { 'margin-top': hide_button_pos + node.height() + hide_button.outerHeight() }, effect_speed ); this.node.animate( { bottom: this.hide_value }, this.effect_speed, function(){ closed_sticky(); show_button.animate( { 'margin-top': show_button_pos }, this.effect_speed ); } ); if( push_content ){ jQuery( '#otw-push-wrapper' ).height( 'auto' ); jQuery( '#otw-push-wrapper-inner' ).css( 'position', 'inherit' ); jQuery( '#otw-push-wrapper-inner' ).animate( { 'top': this.push_hide_value }, effect_speed ); } break; case 'fade': this.node.fadeOut( this.effect_speed, function(){ node.css( 'bottom', hide_value ); node.css( 'display', 'block' ); closed_sticky(); if( push_content ){ jQuery( '#otw-push-wrapper' ).height( 'auto' ); jQuery( '#otw-push-wrapper-inner' ).css( 'position', 'inherit' ); jQuery( '#otw-push-wrapper-inner' ).css( 'top', push_hide_value ); } } ); break; default: this.node.css( 'bottom', this.hide_value ); closed_sticky(); break; } break; } if( background ){ hide_background(); } } } otw_sticky.prototype.closed_sticky = function(){ this.node.removeClass( 'otw-show-sticky' ); this.node.addClass( 'otw-hide-sticky' ); if( this.fixed == 'scrolling' ){ this.node.css( 'position', 'fixed' ); } } otw_sticky.prototype.show_background = function(){ var background_class = ''; var background_style = ''; var classes = this.node.attr( 'class' ).split( /\s+/ ); for( var cC = 0; cC < classes.length; cC++ ){ if( classes[cC].match( /^otw\-overlay\-pattern\-([0-9]+)$/ ) ){ background_class = classes[cC]; break; } }; if( this.node.attr( 'data-style' ) && this.node.attr( 'data-style' ).length ){ background_style = node.attr( 'data-style' ); }; if( jQuery( '#otw-overwray-background-wrapper' ).size() == 0 ){ jQuery( 'body' ).append( '
' ); } jQuery( '#otw-overwray-background-wrapper' ).show(); if( background_class.length ){ jQuery( '#otw-overwray-background-wrapper' ).attr( 'class', background_class ); }else{ jQuery( '#otw-overwray-background-wrapper' ).removeAttr( 'class' ); } if( background_style.length ){ jQuery( '#otw-overwray-background-wrapper' ).attr( 'style', background_style ); }else{ jQuery( '#otw-overwray-background-wrapper' ).removeAttr( 'style' ); } } otw_sticky.prototype.hide_background = function(){ if( jQuery( '#otw-overwray-background-wrapper' ).size() > 0 ){ jQuery( '#otw-overwray-background-wrapper' ).hide(); } }; otw_sticky.prototype.prepare_push_content = function(){ if( jQuery( '#otw-push-wrapper' ).size() == 0 ){ jQuery( 'body' ).wrapInner( '
' ); jQuery( '#otw-push-wrapper-inner' ).css( 'width', jQuery( 'body' ).width() + 'px' ); }; }; // source --> http://www.caddetesisat.com/wp-content/plugins/otw-popping-content//include/otw_components/otw_overlay/js/otw-overlay.js?ver=1.4 jQuery(document).ready(function(){ otw_init_man_bars(); otw_set_full_bar_height(); otw_set_scrolling_content(); otw_set_up_show_hide_buttons(); // Switch stickies jQuery('.otw-hide-label').click(function(){ if( jQuery(this).parent().hasClass( 'otw-bottom-sticky' ) && jQuery(this).parent().hasClass( 'scrolling-position' ) ){ var node = jQuery( this ); node.parent().find( '.otw-show-label' ).hide(); setTimeout( function(){ node.parent().css( 'top', 'auto' ); node.parent().css( 'position', 'fixed' ); node.parent().find( '.otw-show-label' ).show(); }, 1000 ); } if( jQuery(this).parent().hasClass( 'otw-right-sticky' ) && jQuery(this).parent().hasClass( 'scrolling-position' ) ){ var node = jQuery( this ); node.parent().find( '.otw-show-label' ).hide(); setTimeout( function(){ node.parent().css( 'top', node.parent()[0].initial_top ); node.parent().css( 'position', 'fixed' ); node.parent().find( '.otw-show-label' ).show(); }, 1000 ); } jQuery(this).parent().toggleClass("otw-hide-sticky"); jQuery(this).parent().toggleClass("otw-show-sticky"); otw_overlay_background( jQuery(this).parent(), 'hide' ); if( jQuery(this).parent().hasClass( 'otw-first-show-sticky') ){ jQuery(this).parent().removeClass( 'otw-first-show-sticky'); } }); jQuery('.otw-show-label').click(function(){ if( jQuery(this).parent().hasClass( 'otw-bottom-sticky' ) && jQuery(this).parent().hasClass( 'scrolling-position' ) ){ var node = jQuery( this ); node.parent().find( '.otw-show-label' ).slideDown({ duration: 1000, easing: "easeInQuad", complete: function(){ } }); setTimeout( function(){ node.parent().find( '.otw-show-label' ).hide(); node.parent().css( 'top', jQuery(document).scrollTop() + jQuery( window ).height() - node.parent().height() ); node.parent().css( 'position', 'absolute' ); }, 1000 ); } if( jQuery(this).parent().hasClass( 'otw-right-sticky' ) && jQuery(this).parent().hasClass( 'scrolling-position' ) ){ var node = jQuery( this ); node.parent().css( 'position', 'fixed' ); if( typeof( node.parent()[0].initial_top ) == 'undefined' ){ node.parent()[0].initial_top = node.parent().position().top; } setTimeout( function(){ node.parent().css( 'top', jQuery(document).scrollTop() + node.parent().position().top ); node.parent().css( 'position', 'absolute' ); }, 1000 ); } jQuery(this).parent().toggleClass("otw-hide-sticky"); jQuery(this).parent().toggleClass("otw-show-sticky"); otw_overlay_background( jQuery(this).parent(), 'show' ); otw_set_scrolling(); }); //open events if( jQuery( '.otw-first-show-sticky' ).size() ){ jQuery( '.otw-first-show-sticky' ).each( function(){ var node = jQuery( this ); if( node.parents( '.otw-show-sticky-delay' ).size() ){ setTimeout( function(){ node.parents( '.otw-show-sticky-delay' ).removeClass( 'otw-show-sticky-delay' ); if( node.hasClass( 'otw-sticky-man' ) ){ node.find( '.otw-show-man-label' ).click(); node.find( '.otw-hide-man-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); } ); }else{ node.find( '.otw-show-label' ).click(); node.find( '.otw-hide-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); } ); } }, node.parents( '.otw-show-sticky-delay' ).attr( 'data-param' ) ); }else if( node.parents( '.otw-show-sticky-loads' ).size() ){ var parent_node = node.parents( '.otw-show-sticky-loads' ).first(); jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'open_loads', overlay_id: node.attr( 'id' ) }, success: function( response ){ if( response == 'open' ){ if( node.hasClass( 'otw-sticky-man' ) ){ node.find( '.otw-show-man-label' ).click(); }else{ node.find( '.otw-show-label' ).click(); } parent_node.removeClass( 'otw-show-sticky-loads' ); } } }); }else if( node.parents( '.otw-show-sticky-seconds' ).size() ){ var parent_node = node.parents( '.otw-show-sticky-seconds' ).first(); otw_show_sticky_by_seconds( parent_node, true, 1 ); }else if( node.hasClass( 'otw-show-sticky-mouse' ) ){ node.find( '.otw-hide-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-mouse' ).first().removeClass( 'otw-show-sticky-mouse' ); } ); node.find( '.otw-hide-man-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-mouse' ).first().removeClass( 'otw-show-sticky-mouse' ); } ); }else if( node.hasClass( 'otw-show-sticky-wooab' ) ){ node.find( '.otw-hide-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-wooab' ).first().removeClass( 'otw-show-sticky-wooab' ); } ); node.find( '.otw-hide-man-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-wooab' ).first().removeClass( 'otw-show-sticky-wooab' ); } ); }else if( node.hasClass( 'otw-show-sticky-scroll' ) ){ node.find( '.otw-hide-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-scroll' ).first().removeClass( 'otw-show-sticky-scroll' ); } ); node.find( '.otw-hide-man-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-scroll' ).first().removeClass( 'otw-show-sticky-scroll' ); } ); }else if( node.hasClass( 'otw-show-sticky-scrollto' ) ){ node.find( '.otw-hide-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-scrollto' ).first().removeClass( 'otw-show-sticky-scrollto' ); } ); node.find( '.otw-hide-man-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-scrollto' ).first().removeClass( 'otw-show-sticky-scrollto' ); } ); }else if( node.hasClass( 'otw-show-sticky-clickon' ) ){ node.find( '.otw-hide-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-clickon' ).first().removeClass( 'otw-show-sticky-clickon' ); } ); node.find( '.otw-hide-man-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-clickon' ).first().removeClass( 'otw-show-sticky-clickon' ); } ); }else if( node.hasClass( 'otw-show-sticky-link' ) ){ node.find( '.otw-hide-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-link' ).first().removeClass( 'otw-show-sticky-link' ); } ); node.find( '.otw-hide-man-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); jQuery( this ).parents( '.otw-show-sticky-link' ).first().removeClass( 'otw-show-sticky-link' ); } ); }else{ if( node.find( '.otw-show-man-label' ).size() ){ node.find( '.otw-show-man-label' ).click(); }else{ node.find( '.otw-show-label' ).click(); } node.find( '.otw-hide-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); } ); node.find( '.otw-hide-man-label' ).click( function(){ jQuery( this ).parents( '.otw-first-show-sticky' ).first().removeClass( 'otw-first-show-sticky' ); } ); } } ); } if( jQuery( '.otw-show-sticky-scroll, .lh-otw-show-sticky-scroll, .otw-show-sticky-scrollto, .lh-otw-show-sticky-scrollto' ).size() ){ var scroll_nodes = jQuery( '.otw-show-sticky-scroll' ); var scroll_lh_nodes = jQuery( '.lh-otw-show-sticky-scroll' ); var scrollto_nodes = jQuery( '.otw-show-sticky-scrollto' ); var scrollto_lh_nodes = jQuery( '.lh-otw-show-sticky-scrollto' ); jQuery( window ).scroll( function(){ var percentige = Math.floor( ( jQuery(window).scrollTop() / jQuery(document).height() ) * 100 ); scroll_nodes.each( function(){ var node = jQuery( this ); var settingValue = node.parent().attr( 'data-param' ); if( settingValue <= percentige ){ if( node.hasClass( 'otw-first-show-sticky' ) ){ if( node.find( '.otw-show-man-label' ).size() ){ node.find( '.otw-show-man-label' ).click(); }else{ node.find( '.otw-show-label' ).click(); } }else{ if( node.hasClass( 'otw-sticky-man' ) ){ node.css( 'visibility', 'visible' ); } } node.removeClass( 'otw-show-sticky-scroll' ); scroll_nodes = jQuery( '.otw-show-sticky-scroll' ); } }); scroll_lh_nodes.each( function(){ var node = jQuery( this ); var settingValue = node.attr( 'data-param' ); if( settingValue <= percentige ){ if( node.hasClass( 'mfp-hide') ){ otwOpenMagnificPopup( node ); node.removeClass( 'lh-otw-show-sticky-scroll' ); scroll_lh_nodes = jQuery( '.lh-otw-show-sticky-scroll' ); } } }); scrollto_nodes.each( function(){ var node = jQuery( this ); var settingValue = otw_format_element_selector( node.parent().attr( 'data-param' ) ); if( jQuery( settingValue ).size() ){ if( jQuery( settingValue ).position().top <= jQuery(window).scrollTop() ){ if( node.hasClass( 'otw-first-show-sticky' ) ){ if( node.find( '.otw-show-man-label' ).size() ){ node.find( '.otw-show-man-label' ).click(); }else{ node.find( '.otw-show-label' ).click(); } }else{ if( node.hasClass( 'otw-sticky-man' ) ){ node.css( 'visibility', 'visible' ); } } node.removeClass( 'otw-show-sticky-scrollto' ); scrollto_nodes = jQuery( '.otw-show-sticky-scrollto' ); }; }; }); scrollto_lh_nodes.each( function(){ var node = jQuery( this ); var settingValue = otw_format_element_selector( node.attr( 'data-param' ) ); if( jQuery( settingValue ).size() ){ if( jQuery( settingValue ).position().top <= jQuery(window).scrollTop() ){ if( node.hasClass( 'mfp-hide') ){ otwOpenMagnificPopup( node ); node.removeClass( 'lh-otw-show-sticky-scrollto' ); scrollto_lh_nodes = jQuery( '.lh-otw-show-sticky-scrollto' ); } }; }; }); } ); } if( jQuery( '.otw-show-sticky-clickon' ).size() || jQuery( '.lh-otw-show-sticky-clickon' ).size() ){ var clickon_nodes = jQuery( '.otw-show-sticky-clickon' ); var clickon_lh_nodes = jQuery( '.lh-otw-show-sticky-clickon' ); clickon_nodes.each( function(){ var node = jQuery( this ); var settingValue = otw_format_element_selector( node.parent().attr( 'data-param' ) ); if( jQuery( settingValue ).size() ){ jQuery( settingValue ).click( function(){ if( node.hasClass( 'otw-first-show-sticky' ) ){ if( node.find( '.otw-show-man-label' ).size() ){ node.find( '.otw-show-man-label' ).click(); }else{ node.find( '.otw-show-label' ).click(); } }else{ if( node.hasClass( 'otw-sticky-man' ) ){ node.css( 'visibility', 'visible' ); } } node.removeClass( 'otw-show-sticky-clickon' ); }); }; }); clickon_lh_nodes.each( function(){ var node = jQuery( this ); var settingValue = otw_format_element_selector( node.attr( 'data-param' ) ); if( jQuery( settingValue ).size() ){ jQuery( settingValue ).click( function(){ if( node.hasClass( 'mfp-hide') ){ otwOpenMagnificPopup( node ); node.removeClass( 'lh-otw-show-sticky-clickon' ); scrollto_lh_nodes = jQuery( '.lh-otw-show-sticky-clickon' ); } }); }; }); } if( jQuery( '.otw-show-sticky-mouse' ).size() || jQuery( '.lh-otw-show-sticky-mouse' ).size() || jQuery( '.otw-show-sticky-wooab' ).size() || jQuery( '.lh-otw-show-sticky-wooab' ).size() ){ jQuery( document ).mouseout( function( e ){ if( e.relatedTarget == null && ( e.clientY < 0 ) ){ jQuery( '.otw-show-sticky-mouse' ).each( function(){ if( !jQuery( this ).hasClass( 'otw-show-sticky') ){ var node = jQuery( this ); if( node.hasClass( 'otw-first-show-sticky' ) ){ if( node.find( '.otw-show-man-label' ).size() ){ node.find( '.otw-show-man-label' ).click(); }else{ node.find( '.otw-show-label' ).click(); } }else{ if( node.hasClass( 'otw-sticky-man' ) ){ node.css( 'visibility', 'visible' ); } node.removeClass( 'otw-show-sticky-mouse' ); } jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'open_mouse', overlay_id: jQuery( this ).attr( 'id' ) } }); }; }); jQuery( '.lh-otw-show-sticky-mouse' ).each( function(){ if( jQuery( this ).hasClass( 'mfp-hide') ){ otwOpenMagnificPopup( jQuery( this ) ); jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'open_mouse', overlay_id: jQuery( this ).attr( 'id' ) } }); jQuery( this ).removeClass( 'lh-otw-show-sticky-mouse' ); }; }); jQuery( '.otw-show-sticky-wooab' ).each( function(){ if( !jQuery( this ).hasClass( 'otw-show-sticky') ){ var node = jQuery( this ); jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'open_wooab', overlay_id: jQuery( this ).attr( 'id' ), }, success: function( response ){ if( response == 'open' ){ if( node.hasClass( 'otw-first-show-sticky' ) ){ if( node.find( '.otw-show-man-label' ).size() ){ node.find( '.otw-show-man-label' ).click(); }else{ node.find( '.otw-show-label' ).click(); } }else{ if( node.hasClass( 'otw-sticky-man' ) ){ node.css( 'visibility', 'visible' ); } node.removeClass( 'otw-show-sticky-wooab' ); } } } }); } }); jQuery( '.lh-otw-show-sticky-wooab' ).each( function(){ if( jQuery( this ).hasClass( 'mfp-hide') ){ var node = jQuery( this ); jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'open_wooab', overlay_id: jQuery( this ).attr( 'id' ) }, success: function( response ){ if( response == 'open' ){ otwOpenMagnificPopup( node ); node.removeClass( 'lh-otw-show-sticky-wooab' ); } } }); }; }); }; } ); }; set_up_close_button_events( false ); //decriment page loads session if( jQuery( '.otcl_track' ).size() ){ jQuery( '.otcl_track' ).each( function(){ var matches = false; if( matches = this.id.match( /^(ovcl|ovcf)_otw\-(.*)$/ ) ){ var track_method = ''; switch( matches[1] ){ case 'ovcl': track_method = 'close_loaded'; break; case 'ovcf': track_method = 'close_forever'; break; } jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: track_method, overlay_id: 'otw-' + matches[2] } }); } } ); } //open after click on link if( jQuery( '.otw-open-overlay' ).size() ){ jQuery( '.otw-open-overlay' ).click( function(){ var ov_id = jQuery( this ).attr( 'href' ) || jQuery( this ).attr( 'data-id' ); var overlay = jQuery( ov_id ); if( overlay.size() ){ if( overlay.hasClass( 'otw-first-show-sticky' ) ){ overlay.addClass( 'otw-link-opened' ); if( overlay.find( '.otw-show-man-label' ).size() ){ overlay.find( '.otw-show-man-label' ).click(); }else{ overlay.find( '.otw-show-label' ).click(); } }else if( overlay.hasClass( 'otw-link-opened' ) ){ if( overlay.find( '.otw-show-man-label' ).size() ){ overlay.find( '.otw-show-man-label' ).click(); }else{ overlay.find( '.otw-show-label' ).click(); } }else{ overlay.addClass( 'otw-link-opened' ); overlay.removeClass( 'otw-show-sticky-link' ); } }; } ); } //open after page loads if( jQuery( '.otw-show-sticky-loads' ).size() ){ jQuery( '.otw-show-sticky-loads' ).each( function(){ var node = jQuery( this ); if( node.find( '.otw-first-show-sticky' ).size() > 0 ){ return; } var sticky_id = 0; if( node.find( '.otw-sticky-man' ).size() ){ sticky_id = node.find( '.otw-sticky-man' ).attr( 'id' ); }else{ sticky_id = node.find( '.otw-sticky' ).attr( 'id' ); } jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'open_loads', overlay_id: sticky_id }, success: function( response ){ if( response == 'open' ){ node.removeClass( 'otw-show-sticky-loads' ); if( node.find( '.otw-sticky-man' ).size() ){ node.find( '.otw-sticky-man' ).css( 'visibility', 'visible' ); } } } }); } ); }; //open after seconds on site if( jQuery( '.otw-show-sticky-seconds' ).size() ){ jQuery( '.otw-show-sticky-seconds' ).each( function(){ var node = jQuery( this ); if( node.find( '.otw-first-show-sticky' ).size() > 0 ){ return; } otw_show_sticky_by_seconds( node, false, 1 ); } ); }; if( jQuery( '.lh-otw-show-sticky-seconds' ).size() ){ jQuery( '.lh-otw-show-sticky-seconds' ).each( function(){ var node = jQuery( this ); otw_show_sticky_by_seconds( node, false, 2 ); } ); }; //open after page delay if( jQuery( '.otw-show-sticky-delay' ).size() ){ jQuery( '.otw-show-sticky-delay' ).each( function(){ var node = jQuery( this ); setTimeout( function(){ node.removeClass( 'otw-show-sticky-delay' ); if( node.find( '.otw-sticky-man' ).size() ){ node.find( '.otw-sticky-man' ).css( 'visibility', 'visible' ); } }, node.attr( 'data-param' ) ); } ); }; //open light boxes if( jQuery( '.lh-otw-show-sticky-load' ).size() ){ jQuery( '.lh-otw-show-sticky-load' ).each( function(){ var node = jQuery( this ); otwOpenMagnificPopup( node ); } ); }; //lilght open after page delay if( jQuery( '.lh-otw-show-sticky-delay' ).size() ){ jQuery( '.lh-otw-show-sticky-delay' ).each( function(){ var node = jQuery( this ); setTimeout( function(){ node.removeClass( 'lh-otw-show-sticky-delay' ); otwOpenMagnificPopup( node ); }, node.attr( 'data-param' ) ); } ); }; //open light box after page loads if( jQuery( '.lh-otw-show-sticky-loads' ).size() ){ jQuery( '.lh-otw-show-sticky-loads' ).each( function(){ var node = jQuery( this ); jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'open_loads', overlay_id: node.attr( 'id' ) }, success: function( response ){ if( response == 'open' ){ otwOpenMagnificPopup( node ); } } }); } ); }; //open from links // Inline popups jQuery('.otw-display-overlay').click( function(){ var ov_id_code = jQuery( this ).attr( 'href' ) || jQuery( this ).attr( 'data-id' ); var ov_id = ov_id_code.replace( /^#/, '' ); if( jQuery( '#' + ov_id ).size() == 0 ){ jQuery.ajax({ type: 'post', data: '&otwcalloverlay=' + ov_id, success: function( response ){ jQuery( 'body' ).append( response ); if( jQuery( '#' + ov_id ).hasClass( 'otw-sticky-man' ) ){ otw_init_man_sticky( jQuery( '#' + ov_id ) ); }else{ otw_set_scrolling(); jQuery( '#' + ov_id ).find('.otw-hide-label').click(function(){ jQuery(this).parent().toggleClass("otw-hide-sticky"); jQuery(this).parent().toggleClass("otw-show-sticky"); otw_overlay_background( jQuery(this).parent(), 'hide' ); }); jQuery( '#' + ov_id ).find('.otw-show-label').click(function(){ jQuery(this).parent().toggleClass("otw-hide-sticky"); jQuery(this).parent().toggleClass("otw-show-sticky"); otw_overlay_background( jQuery(this).parent(), 'show' ); }); otw_set_scrolling(); otw_overlay_with_admin_bar(); otw_set_up_show_hide_buttons(); set_up_close_button_events( jQuery( '#' + ov_id ) ); setTimeout( function(){ jQuery( '#' + ov_id ).find('.otw-show-label').click(); }, 100 ); } } }); }else{ if( jQuery( '#' + ov_id ).hasClass( 'otw-sticky-man' ) ){ jQuery( '#' + ov_id ).find( '.otw-show-man-label' ).click(); }else{ jQuery( '#' + ov_id ).find( '.otw-show-label' ).click(); } } }); jQuery('.otw-display-popup-link').each( function(){ var ov_data_id = jQuery( this ).attr( 'href' ) || jQuery( this ).attr( 'data-id' ); var ov_id = ov_data_id.replace( /^#/, '' ); var effects = jQuery( this ).attr( 'data-effect' ); if( jQuery( '#' + ov_id ).size() ){ var params = { callbacks: { beforeOpen: function() { this.st.mainClass = this.st.el.attr('data-effect'); }, open: function(){ if( this.content.hasClass( 'hide-overlay-for-small' ) ){ this.bgOverlay.addClass( 'hide-overlay-for-small' ); this.container.addClass( 'hide-overlay-for-small' ); this.container.parents('.mfp-wrap').addClass( 'hide-overlay-for-small' ); } if( this.content.hasClass( 'otw_no_device_large' ) ){ this.bgOverlay.addClass( 'otw_no_device_large' ); this.container.addClass( 'otw_no_device_large' ); this.container.parents('.mfp-wrap').addClass( 'otw_no_device_large' ); } if( this.content.hasClass( 'otw_no_device_small' ) ){ this.bgOverlay.addClass( 'otw_no_device_small' ); this.container.addClass( 'otw_no_device_small' ); this.container.parents('.mfp-wrap').addClass( 'otw_no_device_small' ); } } }, removalDelay: 500, //delay removal by X to allow out-animation midClick: true }; params = otw_magnificPopup_params( jQuery( '#' + ov_id ), params ); jQuery( this ).magnificPopup( params ); }else{ var params = { type: 'ajax', ajax: { settings: { method: 'post', data: '&otwcalloverlay=' + ov_id } }, callbacks: { ajaxContentAdded: function(){ if( jQuery( this.content[2] ).hasClass( 'hide-overlay-for-small' ) ){ this.bgOverlay.addClass( 'hide-overlay-for-small' ); this.container.addClass( 'hide-overlay-for-small' ); this.container.parents('.mfp-wrap').addClass( 'hide-overlay-for-small' ); } if( jQuery( this.content[2] ).hasClass( 'otw_no_device_large' ) ){ this.bgOverlay.addClass( 'otw_no_device_large' ); this.container.addClass( 'otw_no_device_large' ); this.container.parents('.mfp-wrap').addClass( 'otw_no_device_large' ); } if( jQuery( this.content[2] ).hasClass( 'otw_no_device_small' ) ){ this.bgOverlay.addClass( 'otw_no_device_small' ); this.container.addClass( 'otw_no_device_small' ); this.container.parents('.mfp-wrap').addClass( 'otw_no_device_small' ); } otw_set_scrolling(); } }, mainClass: effects, removalDelay: 500, //delay removal by X to allow out-animation midClick: true } params = otw_magnificPopup_params( effects, params ); jQuery( this ).magnificPopup( params ); }; } ); jQuery('.otw-display-hinge').each( function(){ var ov_id = jQuery( this ).attr( 'href' ).replace( /^#/, '' ); var effects = 'mfp-with-fade'; if( jQuery( this ).attr( 'data-effect' ).length ){ effects = effects + ' '+ jQuery( this ).attr( 'data-effect' ); } if( jQuery( '#' + ov_id ).size() ){ var params = { mainClass: 'mfp-with-fade', callbacks: { beforeOpen: function() { this.st.mainClass = this.st.el.attr('data-effect'); }, beforeClose: function() { this.content.addClass('hinge'); }, close: function() { this.content.removeClass('hinge'); }, open: function(){ if( this.content.hasClass( 'hide-overlay-for-small' ) ){ this.bgOverlay.addClass( 'hide-overlay-for-small' ); this.container.addClass( 'hide-overlay-for-small' ); this.container.parents('.mfp-wrap').addClass( 'hide-overlay-for-small' ); } if( this.content.hasClass( 'otw_no_device_large' ) ){ this.bgOverlay.addClass( 'otw_no_device_large' ); this.container.addClass( 'otw_no_device_large' ); this.container.parents('.mfp-wrap').addClass( 'otw_no_device_large' ); } if( this.content.hasClass( 'otw_no_device_small' ) ){ this.bgOverlay.addClass( 'otw_no_device_small' ); this.container.addClass( 'otw_no_device_small' ); this.container.parents('.mfp-wrap').addClass( 'otw_no_device_small' ); } } }, removalDelay: 1000, //delay removal by X to allow out-animation midClick: true } params = otw_magnificPopup_params( jQuery( '#' + ov_id ), params ); jQuery( this ).magnificPopup( params ); }else{ var params = { type: 'ajax', ajax: { settings: { method: 'post', data: '&otwcalloverlay=' + ov_id } }, mainClass: effects, removalDelay: 1000, //delay removal by X to allow out-animation callbacks: { ajaxContentAdded: function(){ if( jQuery( this.content[2] ).hasClass( 'hide-overlay-for-small' ) ){ this.bgOverlay.addClass( 'hide-overlay-for-small' ); this.container.addClass( 'hide-overlay-for-small' ); this.container.parents('.mfp-wrap').addClass( 'hide-overlay-for-small' ); } if( jQuery( this.content[2] ).hasClass( 'otw_no_device_large' ) ){ this.bgOverlay.addClass( 'otw_no_device_large' ); this.container.addClass( 'otw_no_device_large' ); this.container.parents('.mfp-wrap').addClass( 'otw_no_device_large' ); } if( jQuery( this.content[2] ).hasClass( 'otw_no_device_small' ) ){ this.bgOverlay.addClass( 'otw_no_device_small' ); this.container.addClass( 'otw_no_device_small' ); this.container.parents('.mfp-wrap').addClass( 'otw_no_device_small' ); } otw_set_scrolling(); }, beforeClose: function() { this.content.addClass('hinge'); }, close: function() { this.content.removeClass('hinge'); } }, midClick: true }; params = otw_magnificPopup_params( effects, params ); jQuery( this ).magnificPopup( params ); } } ); otw_overlay_with_admin_bar(); } ); otw_format_element_selector = function( selector ){ if( selector.match( /^\#/ ) ){ return selector; } if( selector.match( /^\./ ) ){ return selector; } return '#' + selector + ', .' + selector; } otw_overlay_background = function( node, type ){ if( node.hasClass( 'otw-full-bar' ) && node.hasClass( 'otw-with-ovbackground' ) ){ var background_class = ''; var background_style = ''; var classes = node.attr( 'class' ).split( /\s+/ ); for( var cC = 0; cC < classes.length; cC++ ){ if( classes[cC].match( /^otw\-overlay\-pattern\-([0-9]+)$/ ) ){ background_class = classes[cC]; break; } }; if( node.attr( 'data-style' ) && node.attr( 'data-style' ).length ){ var background_style = node.attr( 'data-style' ); } if( type == 'show' ){ if( jQuery( '#otw-overwray-background-wrapper' ).size() == 0 ){ jQuery( 'body' ).append( '
' ); } jQuery( '#otw-overwray-background-wrapper' ).show(); if( background_class.length ){ jQuery( '#otw-overwray-background-wrapper' ).attr( 'class', background_class ); }else{ jQuery( '#otw-overwray-background-wrapper' ).removeAttr( 'class' ); } if( background_style.length ){ jQuery( '#otw-overwray-background-wrapper' ).attr( 'style', background_style ); }else{ jQuery( '#otw-overwray-background-wrapper' ).removeAttr( 'style' ); } }else{ if( jQuery( '#otw-overwray-background-wrapper' ).size() > 0 ){ jQuery( '#otw-overwray-background-wrapper' ).hide(); } } } } otw_init_man_bars = function(){ jQuery( '.otw-sticky-man' ).each( function(){ otw_init_man_sticky( jQuery( this ) ); } ); } otw_init_man_sticky = function( node ){ var otw_man_sticky = new otw_sticky( node ); } otw_show_sticky_by_seconds = function( node, open_on_load, type ){ if( type == 2 ){ var sticky_id = node.attr( 'id' ); }else{ if( node.find( '.otw-sticky-man' ).size() ){ var sticky_id = node.find( '.otw-sticky-man' ).attr( 'id' ); }else{ var sticky_id = node.find( '.otw-sticky' ).attr( 'id' ); } } try{ clearTimeout( window[ 'ssec_' + sticky_id ] ); }catch( e ){}; jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'open_seconds', overlay_id: sticky_id }, success: function( response ){ if( response.match( /^\d+$/ ) ){ window[ 'ssec_' + sticky_id ] = setTimeout( function(){ if( type == 2 ){ otwOpenMagnificPopup( node ); }else{ if( open_on_load ){ if( node.find( '.otw-show-man-label' ).size() ){ node.find( '.otw-show-man-label' ).click(); }else{ node.find( '.otw-show-label' ).click(); } } } if( node.find( '.otw-sticky-man' ).size() ){ node.find( '.otw-sticky-man' ).css( 'visibility', 'visible' ); } node.removeClass( 'otw-show-sticky-seconds' ); }, response * 1000 ); }; } }); }; set_up_close_button_events = function( selector ){ //close forever events var links = false; if( selector ){ if( selector.hasClass( 'otw-close-forever' ) ){ var links = jQuery( selector ); } }else{ var links = jQuery( '.otw-close-forever' ); } if( links && links.size() ){ links.each( function(){ var node = jQuery( this ); if( jQuery( this ).find( '.otw-hide-label' ).size() ){ jQuery( this ).find( '.otw-hide-label' ).click( function(){ node.find( '.otw-show-label' ).hide(); jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'close_forever', overlay_id: node.attr( 'id' ) } }); } ); }; if( jQuery( this ).find( '.otw-hide-man-label' ).size() ){ jQuery( this ).find( '.otw-hide-man-label' ).click( function(){ node.find( '.otw-show-man-label' ).hide(); jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'close_forever', overlay_id: node.attr( 'id' ) } }); } ); }; } ); }; //close for number of page loads var links = false; if( selector ){ if( selector.hasClass( 'otw-close-loads' ) ){ var links = jQuery( selector ); } }else{ var links = jQuery( '.otw-close-loads' ); } if( links && links.size() ){ links.each( function(){ var node = jQuery( this ); jQuery( this ).find( '.otw-hide-label' ).click( function(){ node.find( '.otw-show-label' ).hide(); jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'close_loads', overlay_id: node.attr( 'id' ) } }); } ); jQuery( this ).find( '.otw-hide-man-label' ).click( function(){ node.find( '.otw-show-man-label' ).hide(); jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'close_loads', overlay_id: node.attr( 'id' ) } }); } ); } ); }; //close for number of days var links = false; if( selector ){ if( selector.hasClass( 'otw-close-days' ) ){ var links = jQuery( selector ); } }else{ var links = jQuery( '.otw-close-days' ); } if( links && links.size() ){ links.each( function(){ var node = jQuery( this ); jQuery( this ).find( '.otw-hide-label' ).click( function(){ node.find( '.otw-show-label' ).hide(); jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'close_days', overlay_id: node.attr( 'id' ) } }); } ); jQuery( this ).find( '.otw-hide-man-label' ).click( function(){ node.find( '.otw-show-man-label' ).hide(); jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'close_days', overlay_id: node.attr( 'id' ) } }); } ); } ); }; //close until page reload var links = false; if( selector ){ if( selector.hasClass( 'otw-close-page' ) ){ var links = jQuery( selector ); } }else{ var links = jQuery( '.otw-close-page' ); } if( links && links.size() ){ links.each( function(){ var node = jQuery( this ); jQuery( this ).find( '.otw-hide-label' ).click( function(){ node.find( '.otw-show-label' ).hide(); } ); jQuery( this ).find( '.otw-hide-man-label' ).click( function(){ node.find( '.otw-show-man-label' ).hide(); } ); } ); }; } otw_set_scrolling_content = function(){ jQuery( '.otw-small-csr.fixed-position' ).each( function(){ var section = jQuery( this ).find( '.otw-sticky-content' ); var section_height = jQuery( this ).outerHeight(); var section_position = jQuery( this ).position(); var window_height = jQuery( window ).height(); var end_point = Number( section_position.top ) + Number( section_height ); if( end_point > window_height ){ section.css( 'height', ( section.height() - ( end_point - window_height ) - 20 ) + 'px' ); section.css( 'overflow', 'auto' ); } }); } otw_set_full_bar_height = function(){ jQuery( '.otw-full-bar' ).each( function(){ var node = jQuery( this ); if( node.hasClass( 'otw-left-sticky' ) || node.hasClass( 'otw-right-sticky' ) ){ var new_height = jQuery( 'body' ).height(); node.css( 'height', new_height + 'px' ); }; }); }; otw_set_scrolling = function(){ if( jQuery( window ).width() <= 767 ){ jQuery( '.otw-small-csr' ).each( function(){ var node = jQuery( this ); if( node.hasClass( 'fixed-position' ) ){ if( node.find( 'section' ).height() > jQuery( window ).height() ){ if( node.hasClass( 'otw-top-sticky' ) || node.hasClass( 'otw-bottom-sticky' ) ){ node.find( 'section' ).css( 'height', ( jQuery( window ).height() - node.find( '.otw-hide-label' ).height() - 100 ) + 'px' ); }else{ node.find( 'section' ).css( 'height', ( jQuery( window ).height() - 100 ) + 'px' ); } node.find( 'section' ).css( 'overflow', 'auto' ); } if( node.find( 'section' ).width() > jQuery( window ).width() ){ if( node.hasClass( 'otw-left-sticky' ) || node.hasClass( 'otw-right-sticky' ) ){ node.find( 'section' ).css( 'width', ( jQuery( window ).width() - node.find( '.otw-hide-label' ).width() - 100 ) + 'px' ); }else{ node.find( 'section' ).css( 'width', ( jQuery( window ).width() ) + 'px' ); } node.find( 'section' ).css( 'overflow', 'auto' ); } }else if( node.parents( '.mfp-content' ).size() ){ if( node.parents( '.mfp-content' ).width() > jQuery( window ).width() ){ node.parents( '.mfp-content' ).css( 'width', ( jQuery( window ).width() - 100 )+ 'px' ); node.parents( '.mfp-content' ).css( 'overflow', 'auto' ); } if( node.parents( '.mfp-content' ).height() > jQuery( window ).height() ){ node.parents( '.mfp-content' ).css( 'height', ( jQuery( window ).height() - 100 ) + 'px' ); node.parents( '.mfp-content' ).css( 'overflow', 'auto' ); } } } ); } }; otw_set_up_show_hide_buttons = function(){ jQuery( '.otw-sticky.otw-left-sticky .otw-btn-vertical' ).each( function(){ jQuery( this ).css( 'margin-left', ( jQuery( this ).outerHeight() ) + 'px' ); } ); }; otw_overlay_with_admin_bar = function(){ var admin_bar = jQuery( '#wpadminbar' ); if( admin_bar.size() ){ jQuery( '.otw-sticky.otw-top-sticky, .otw-sticky.otw-left-sticky, .otw-sticky.otw-right-sticky ' ).each( function(){ // if( jQuery( 'body' ).css( 'position') != 'relative' ){ if( typeof( this.wpadminbar_fixed ) == 'undefined' ){ jQuery( this ).css( 'top', jQuery( this ).position().top + admin_bar.height() ); this.wpadminbar_fixed = 1; } // } } ) } } otwOpenMagnificPopup = function( node ){ var is_hinge = false; var close_delay = 500; var main_class = ''; if( node.attr( 'data-ceffect' ) && ( node.attr( 'data-ceffect' ) == 'hinge' ) ){ is_hinge = true; } var ppCallbacks = { beforeOpen: function() { this.st.mainClass = node.attr('data-effect'); }, open: function(){ otw_init_magnificPopup( this ); } }; if( is_hinge ){ ppCallbacks.beforeClose = function() { this.content.addClass('hinge'); } ppCallbacks.close = function() { this.content.removeClass('hinge'); } close_delay = 1000; main_class = 'mfp-with-fade'; }; var params = { mainClass: main_class, removalDelay: close_delay, items: { src: node, type: 'inline' }, callbacks: ppCallbacks } params = otw_magnificPopup_params( node, params ); jQuery.magnificPopup.open( params ); } otw_magnificPopup_params = function( node, params ){ params.closeBtnInside = true; params.closeOnContentClick = false; params.closeOnBgClick = true; params.showCloseBtn = true; if( typeof( node ) == 'string' ){ if( node.match( /otw\-no\-close\-button/ ) ){ params.closeBtnInside = false; params.showCloseBtn = false; } if( node.match( /otw\-close\-on\-content/ ) ){ params.closeOnContentClick = true; } if( node.match( /otw\-no\-close\-bkg/ ) ){ params.closeOnBgClick = false; } }else{ if( node.hasClass( 'otw-no-close-button' ) ){ params.closeBtnInside = false; params.showCloseBtn = false; } if( node.hasClass( 'otw-close-on-content' ) ){ params.closeOnContentClick = true; } if( node.hasClass( 'otw-no-close-bkg' ) ){ params.closeOnBgClick = false; } } return params; } otw_init_magnificPopup = function( popupObject ){ if( popupObject.content.attr( 'data-index' ) && Number( popupObject.content.attr( 'data-index' ) ) > 0 ){ popupObject.bgOverlay.zIndex( Number( popupObject.content.attr( 'data-index' ) ) ); popupObject.container.parents( '.mfp-wrap' ).zIndex( Number( popupObject.content.attr( 'data-index' ) ) + 1 ); } if( popupObject.content.hasClass( 'otw-close-forever' ) ){ if( popupObject.content.find( '.mfp-close' ).size() ){ popupObject.content.find( '.mfp-close' ).click( function(){ jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'close_forever', overlay_id: popupObject.content.attr( 'id' ) } }); }); } }else if( popupObject.content.hasClass( 'otw-close-loads' ) ){ if( popupObject.content.find( '.mfp-close' ).size() ){ popupObject.content.find( '.mfp-close' ).click( function(){ jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'close_loads', overlay_id: popupObject.content.attr( 'id' ) } }); }); } }else if( popupObject.content.hasClass( 'otw-close-days' ) ){ if( popupObject.content.find( '.mfp-close' ).size() ){ popupObject.content.find( '.mfp-close' ).click( function(){ jQuery.ajax({ type: 'post', data: { otw_overlay_action: 'otw-overlay-tracking', method: 'close_days', overlay_id: popupObject.content.attr( 'id' ) } }); }); } } if( popupObject.content.hasClass( 'hide-overlay-for-small' ) ){ popupObject.bgOverlay.addClass( 'hide-overlay-for-small' ); popupObject.container.addClass( 'hide-overlay-for-small' ); popupObject.container.parents('.mfp-wrap').addClass( 'hide-overlay-for-small' ); } if( popupObject.content.hasClass( 'otw_no_device_large' ) ){ popupObject.bgOverlay.addClass( 'otw_no_device_large' ); popupObject.container.addClass( 'otw_no_device_large' ); popupObject.container.parents('.mfp-wrap').addClass( 'otw_no_device_large' ); } if( popupObject.content.hasClass( 'otw_no_device_small' ) ){ popupObject.bgOverlay.addClass( 'otw_no_device_small' ); popupObject.container.addClass( 'otw_no_device_small' ); popupObject.container.parents('.mfp-wrap').addClass( 'otw_no_device_small' ); } if( popupObject.content.attr( 'data-style' ) && popupObject.content.attr( 'data-style' ).length ){ popupObject.bgOverlay.css( 'cssText', popupObject.content.attr( 'data-style' ) ); } otw_set_scrolling(); }; // source --> http://www.caddetesisat.com/wp-content/plugins/revslider/rs-plugin/js/jquery.themepunch.tools.min.js?ver=4.6.93 /******************************************** - THEMEPUNCH TOOLS Ver. 1.0 - Last Update of Tools 27.02.2015 *********************************************/ /* * @fileOverview TouchSwipe - jQuery Plugin * @version 1.6.6 * * @author Matt Bryson http://www.github.com/mattbryson * @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin * @see http://labs.skinkers.com/touchSwipe/ * @see http://plugins.jquery.com/project/touchSwipe * * Copyright (c) 2010 Matt Bryson * Dual licensed under the MIT or GPL Version 2 licenses. * */ (function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var p="left",o="right",e="up",x="down",c="in",z="out",m="none",s="auto",l="swipe",t="pinch",A="tap",j="doubletap",b="longtap",y="hold",D="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,B="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:true};f.fn.swipe=function(G){var F=f(this),E=F.data(B);if(E&&typeof G==="string"){if(E[G]){return E[G].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+G+" does not exist on jQuery.swipe")}}else{if(!E&&(typeof G==="object"||!G)){return w.apply(this,arguments)}}return F};f.fn.swipe.defaults=n;f.fn.swipe.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipe.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:z};f.fn.swipe.pageScroll={NONE:m,HORIZONTAL:D,VERTICAL:u,AUTO:s};f.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:i};function w(E){if(E&&(E.allowPageScroll===undefined&&(E.swipe!==undefined||E.swipeStatus!==undefined))){E.allowPageScroll=m}if(E.click!==undefined&&E.tap===undefined){E.tap=E.click}if(!E){E={}}E=f.extend({},f.fn.swipe.defaults,E);return this.each(function(){var G=f(this);var F=G.data(B);if(!F){F=new C(this,E);G.data(B,F)}})}function C(a4,av){var az=(a||d||!av.fallbackToMouseEvents),J=az?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",ay=az?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",U=az?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",S=az?null:"mouseleave",aD=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ag=0,aP=null,ab=0,a1=0,aZ=0,G=1,aq=0,aJ=0,M=null;var aR=f(a4);var Z="start";var W=0;var aQ=null;var T=0,a2=0,a5=0,ad=0,N=0;var aW=null,af=null;try{aR.bind(J,aN);aR.bind(aD,a9)}catch(ak){f.error("events not supported "+J+","+aD+" on jQuery.swipe")}this.enable=function(){aR.bind(J,aN);aR.bind(aD,a9);return aR};this.disable=function(){aK();return aR};this.destroy=function(){aK();aR.data(B,null);aR=null};this.option=function(bc,bb){if(av[bc]!==undefined){if(bb===undefined){return av[bc]}else{av[bc]=bb}}else{f.error("Option "+bc+" does not exist on jQuery.swipe.options")}return null};function aN(bd){if(aB()){return}if(f(bd.target).closest(av.excludedElements,aR).length>0){return}var be=bd.originalEvent?bd.originalEvent:bd;var bc,bb=a?be.touches[0]:be;Z=g;if(a){W=be.touches.length}else{bd.preventDefault()}ag=0;aP=null;aJ=null;ab=0;a1=0;aZ=0;G=1;aq=0;aQ=aj();M=aa();R();if(!a||(W===av.fingers||av.fingers===i)||aX()){ai(0,bb);T=at();if(W==2){ai(1,be.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}if(av.swipeStatus||av.pinchStatus){bc=O(be,Z)}}else{bc=false}if(bc===false){Z=q;O(be,Z);return bc}else{if(av.hold){af=setTimeout(f.proxy(function(){aR.trigger("hold",[be.target]);if(av.hold){bc=av.hold.call(aR,be,be.target)}},this),av.longTapThreshold)}ao(true)}return null}function a3(be){var bh=be.originalEvent?be.originalEvent:be;if(Z===h||Z===q||am()){return}var bd,bc=a?bh.touches[0]:bh;var bf=aH(bc);a2=at();if(a){W=bh.touches.length}if(av.hold){clearTimeout(af)}Z=k;if(W==2){if(a1==0){ai(1,bh.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}else{aH(bh.touches[1]);aZ=au(aQ[0].end,aQ[1].end);aJ=ar(aQ[0].end,aQ[1].end)}G=a7(a1,aZ);aq=Math.abs(a1-aZ)}if((W===av.fingers||av.fingers===i)||!a||aX()){aP=aL(bf.start,bf.end);al(be,aP);ag=aS(bf.start,bf.end);ab=aM();aI(aP,ag);if(av.swipeStatus||av.pinchStatus){bd=O(bh,Z)}if(!av.triggerOnTouchEnd||av.triggerOnTouchLeave){var bb=true;if(av.triggerOnTouchLeave){var bg=aY(this);bb=E(bf.end,bg)}if(!av.triggerOnTouchEnd&&bb){Z=aC(k)}else{if(av.triggerOnTouchLeave&&!bb){Z=aC(h)}}if(Z==q||Z==h){O(bh,Z)}}}else{Z=q;O(bh,Z)}if(bd===false){Z=q;O(bh,Z)}}function L(bb){var bc=bb.originalEvent;if(a){if(bc.touches.length>0){F();return true}}if(am()){W=ad}a2=at();ab=aM();if(ba()||!an()){Z=q;O(bc,Z)}else{if(av.triggerOnTouchEnd||(av.triggerOnTouchEnd==false&&Z===k)){bb.preventDefault();Z=h;O(bc,Z)}else{if(!av.triggerOnTouchEnd&&a6()){Z=h;aF(bc,Z,A)}else{if(Z===k){Z=q;O(bc,Z)}}}}ao(false);return null}function a9(){W=0;a2=0;T=0;a1=0;aZ=0;G=1;R();ao(false)}function K(bb){var bc=bb.originalEvent;if(av.triggerOnTouchLeave){Z=aC(h);O(bc,Z)}}function aK(){aR.unbind(J,aN);aR.unbind(aD,a9);aR.unbind(ay,a3);aR.unbind(U,L);if(S){aR.unbind(S,K)}ao(false)}function aC(bf){var be=bf;var bd=aA();var bc=an();var bb=ba();if(!bd||bb){be=q}else{if(bc&&bf==k&&(!av.triggerOnTouchEnd||av.triggerOnTouchLeave)){be=h}else{if(!bc&&bf==h&&av.triggerOnTouchLeave){be=q}}}return be}function O(bd,bb){var bc=undefined;if((I()||V())||(P()||aX())){if(I()||V()){bc=aF(bd,bb,l)}if((P()||aX())&&bc!==false){bc=aF(bd,bb,t)}}else{if(aG()&&bc!==false){bc=aF(bd,bb,j)}else{if(ap()&&bc!==false){bc=aF(bd,bb,b)}else{if(ah()&&bc!==false){bc=aF(bd,bb,A)}}}}if(bb===q){a9(bd)}if(bb===h){if(a){if(bd.touches.length==0){a9(bd)}}else{a9(bd)}}return bc}function aF(be,bb,bd){var bc=undefined;if(bd==l){aR.trigger("swipeStatus",[bb,aP||null,ag||0,ab||0,W,aQ]);if(av.swipeStatus){bc=av.swipeStatus.call(aR,be,bb,aP||null,ag||0,ab||0,W,aQ);if(bc===false){return false}}if(bb==h&&aV()){aR.trigger("swipe",[aP,ag,ab,W,aQ]);if(av.swipe){bc=av.swipe.call(aR,be,aP,ag,ab,W,aQ);if(bc===false){return false}}switch(aP){case p:aR.trigger("swipeLeft",[aP,ag,ab,W,aQ]);if(av.swipeLeft){bc=av.swipeLeft.call(aR,be,aP,ag,ab,W,aQ)}break;case o:aR.trigger("swipeRight",[aP,ag,ab,W,aQ]);if(av.swipeRight){bc=av.swipeRight.call(aR,be,aP,ag,ab,W,aQ)}break;case e:aR.trigger("swipeUp",[aP,ag,ab,W,aQ]);if(av.swipeUp){bc=av.swipeUp.call(aR,be,aP,ag,ab,W,aQ)}break;case x:aR.trigger("swipeDown",[aP,ag,ab,W,aQ]);if(av.swipeDown){bc=av.swipeDown.call(aR,be,aP,ag,ab,W,aQ)}break}}}if(bd==t){aR.trigger("pinchStatus",[bb,aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchStatus){bc=av.pinchStatus.call(aR,be,bb,aJ||null,aq||0,ab||0,W,G,aQ);if(bc===false){return false}}if(bb==h&&a8()){switch(aJ){case c:aR.trigger("pinchIn",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchIn){bc=av.pinchIn.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break;case z:aR.trigger("pinchOut",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchOut){bc=av.pinchOut.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break}}}if(bd==A){if(bb===q||bb===h){clearTimeout(aW);clearTimeout(af);if(Y()&&!H()){N=at();aW=setTimeout(f.proxy(function(){N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}},this),av.doubleTapThreshold)}else{N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}}}}else{if(bd==j){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("doubletap",[be.target]);if(av.doubleTap){bc=av.doubleTap.call(aR,be,be.target)}}}else{if(bd==b){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("longtap",[be.target]);if(av.longTap){bc=av.longTap.call(aR,be,be.target)}}}}}return bc}function an(){var bb=true;if(av.threshold!==null){bb=ag>=av.threshold}return bb}function ba(){var bb=false;if(av.cancelThreshold!==null&&aP!==null){bb=(aT(aP)-ag)>=av.cancelThreshold}return bb}function ae(){if(av.pinchThreshold!==null){return aq>=av.pinchThreshold}return true}function aA(){var bb;if(av.maxTimeThreshold){if(ab>=av.maxTimeThreshold){bb=false}else{bb=true}}else{bb=true}return bb}function al(bb,bc){if(av.preventDefaultEvents===false){return}if(av.allowPageScroll===m){bb.preventDefault()}else{var bd=av.allowPageScroll===s;switch(bc){case p:if((av.swipeLeft&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case o:if((av.swipeRight&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case e:if((av.swipeUp&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break;case x:if((av.swipeDown&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break}}}function a8(){var bc=aO();var bb=X();var bd=ae();return bc&&bb&&bd}function aX(){return !!(av.pinchStatus||av.pinchIn||av.pinchOut)}function P(){return !!(a8()&&aX())}function aV(){var be=aA();var bg=an();var bd=aO();var bb=X();var bc=ba();var bf=!bc&&bb&&bd&&bg&&be;return bf}function V(){return !!(av.swipe||av.swipeStatus||av.swipeLeft||av.swipeRight||av.swipeUp||av.swipeDown)}function I(){return !!(aV()&&V())}function aO(){return((W===av.fingers||av.fingers===i)||!a)}function X(){return aQ[0].end.x!==0}function a6(){return !!(av.tap)}function Y(){return !!(av.doubleTap)}function aU(){return !!(av.longTap)}function Q(){if(N==null){return false}var bb=at();return(Y()&&((bb-N)<=av.doubleTapThreshold))}function H(){return Q()}function ax(){return((W===1||!a)&&(isNaN(ag)||agav.longTapThreshold)&&(ag=0)){return p}else{if((bd<=360)&&(bd>=315)){return p}else{if((bd>=135)&&(bd<=225)){return o}else{if((bd>45)&&(bd<135)){return x}else{return e}}}}}function at(){var bb=new Date();return bb.getTime()}function aY(bb){bb=f(bb);var bd=bb.offset();var bc={left:bd.left,right:bd.left+bb.outerWidth(),top:bd.top,bottom:bd.top+bb.outerHeight()};return bc}function E(bb,bc){return(bb.x>bc.left&&bb.xbc.top&&bb.ye;e++)r[s[e]]=r=r[s[e]]||{};return r},h=l("com.greensock"),_=1e-10,u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=function(){},f=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),c={},p=function(s,r,n,a){this.sc=c[s]?c[s].sc:[],c[s]=this,this.gsClass=null,this.func=n;var o=[];this.check=function(h){for(var _,u,m,f,d=r.length,v=d;--d>-1;)(_=c[r[d]]||new p(r[d],[])).gsClass?(o[d]=_.gsClass,v--):h&&_.sc.push(this);if(0===v&&n)for(u=("com.greensock."+s).split("."),m=u.pop(),f=l(u.join("."))[m]=this.gsClass=n.apply(n,o),a&&(i[m]=f,"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return f}):s===e&&"undefined"!=typeof module&&module.exports&&(module.exports=f)),d=0;this.sc.length>d;d++)this.sc[d].check()},this.check(!0)},d=t._gsDefine=function(t,e,i,s){return new p(t,e,i,s)},v=h._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=i;var g=[0,0,1,1],T=[],y=v("easing.Ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),w=y.map={},P=y.register=function(t,e,i,s){for(var r,n,a,o,l=e.split(","),_=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");--_>-1;)for(n=l[_],r=s?v("easing."+n,null,!0):h.easing[n]||{},a=u.length;--a>-1;)o=u[a],w[n+"."+o]=w[o+n]=r[o]=t.getRatio?t:t[o]||new t};for(n=y.prototype,n._calcEnd=!1,n.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},s=["Linear","Quad","Cubic","Quart","Quint,Strong"],r=s.length;--r>-1;)n=s[r]+",Power"+r,P(new y(null,null,1,r),n,"easeOut",!0),P(new y(null,null,2,r),n,"easeIn"+(0===r?",easeNone":"")),P(new y(null,null,3,r),n,"easeInOut");w.linear=h.easing.Linear.easeIn,w.swing=h.easing.Quad.easeInOut;var b=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});n=b.prototype,n.addEventListener=function(t,e,i,s,r){r=r||0;var n,l,h=this._listeners[t],_=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)n=h[l],n.c===e&&n.s===i?h.splice(l,1):0===_&&r>n.pr&&(_=l+1);h.splice(_,0,{c:e,s:i,up:s,pr:r}),this!==a||o||a.wake()},n.removeEventListener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},n.dispatchEvent=function(t){var e,i,s,r=this._listeners[t];if(r)for(e=r.length,i=this._eventTarget;--e>-1;)s=r[e],s&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var k=t.requestAnimationFrame,S=t.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},x=A();for(s=["ms","moz","webkit","o"],r=s.length;--r>-1&&!k;)k=t[s[r]+"RequestAnimationFrame"],S=t[s[r]+"CancelAnimationFrame"]||t[s[r]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,s,r,n,l,h=this,u=A(),f=e!==!1&&k,c=500,p=33,d="tick",v=function(t){var e,a,o=A()-x;o>c&&(u+=o-p),x+=o,h.time=(x-u)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=n?.004:n-e),a=!0),t!==!0&&(r=s(v)),a&&h.dispatchEvent(d)};b.call(h),h.time=h.frame=0,h.tick=function(){v(!0)},h.lagSmoothing=function(t,e){c=t||1/_,p=Math.min(e,c,0)},h.sleep=function(){null!=r&&(f&&S?S(r):clearTimeout(r),s=m,r=null,h===a&&(o=!1))},h.wake=function(){null!==r?h.sleep():h.frame>10&&(x=A()-c+5),s=0===i?m:f&&k?k:function(t){return setTimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),v(2)},h.fps=function(t){return arguments.length?(i=t,n=1/(i||60),l=this.time+n,h.wake(),void 0):i},h.useRAF=function(t){return arguments.length?(h.sleep(),f=t,h.fps(i),void 0):f},h.fps(t),setTimeout(function(){f&&(!r||5>h.frame)&&h.useRAF(!1)},1500)}),n=h.Ticker.prototype=new h.events.EventDispatcher,n.constructor=h.Ticker;var R=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,B){o||a.wake();var i=this.vars.useFrames?q:B;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=R.ticker=new h.Ticker,n=R.prototype,n._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1;var C=function(){o&&A()-x>2e3&&a.wake(),setTimeout(C,2e3)};C(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},n.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t},n._enabled=function(t,e){return o||a.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},n.eventCallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=f(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=s),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,i){if(o||a.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,r=this._timeline;if(t>s&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?s-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(this.render(t,e,!1),z.length&&$())}return this},n.progress=n.totalProgress=function(t,e){return arguments.length?this.totalTime(this.duration()*t,e):this._time/this.duration()},n.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},n.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||_,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(t){if(!arguments.length)return this._paused;var e,i,s=this._timeline;return t!=this._paused&&s&&(o||t||a.wake(),e=s.rawTime(),i=e-this._pauseTime,!t&&s.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&this.render(s.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,!0,!0)),this._gc&&!t&&this._enabled(!0,!1),this};var D=v("core.SimpleTimeline",function(t){R.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});n=D.prototype=new R,n.constructor=D,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(t,e){var i,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortChildren)for(s=t._startTime;i&&i._startTime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._recent=t,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},n.render=function(t,e,i){var s,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)s=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s},n.rawTime=function(){return o||a.wake(),this._totalTime};var I=v("TweenLite",function(e,i,s){if(R.call(this,i,s),this.render=I.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:I.selector(e)||e;var r,n,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?Q[I.defaultOverwrite]:"number"==typeof l?l>>0:Q[l],(o||e instanceof Array||e.push&&f(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._propLookup=[],this._siblings=[],r=0;a.length>r;r++)n=a[r],n?"string"!=typeof n?n.length&&n!==t&&n[0]&&(n[0]===t||n[0].nodeType&&n[0].style&&!n.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(u(n))):(this._siblings[r]=K(n,this,!1),1===l&&this._siblings[r].length>1&&J(n,this,null,1,this._siblings[r])):(n=a[r--]=I.selector(n),"string"==typeof n&&a.splice(r+1,1)):a.splice(r--,1);else this._propLookup={},this._siblings=K(e,this,!1),1===l&&this._siblings.length>1&&J(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-_,this.render(-this._delay))},!0),E=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},O=function(t,e){var i,s={};for(i in t)G[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!U[i]||U[i]&&U[i]._autoCSS)||(s[i]=t[i],delete t[i]);t.css=s};n=I.prototype=new R,n.constructor=I,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,I.version="1.16.0",I.defaultEase=n._ease=new y(null,null,1,1),I.defaultOverwrite="auto",I.ticker=a,I.autoSleep=120,I.lagSmoothing=function(t,e){a.lagSmoothing(t,e)},I.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(I.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var z=[],L={},N=I._internals={isArray:f,isSelector:E,lazyTweens:z},U=I._plugins={},F=N.tweenLookup={},j=0,G=N.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1},Q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},q=R._rootFramesTimeline=new D,B=R._rootTimeline=new D,M=30,$=N.lazyRender=function(){var t,e=z.length;for(L={};--e>-1;)t=z[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);z.length=0};B._startTime=a.time,q._startTime=a.frame,B._active=q._active=!0,setTimeout($,1),R._updateRoot=I.render=function(){var t,e,i;if(z.length&&$(),B.render((a.time-B._startTime)*B._timeScale,!1,!1),q.render((a.frame-q._startTime)*q._timeScale,!1,!1),z.length&&$(),a.frame>=M){M=a.frame+(parseInt(I.autoSleep,10)||120);for(i in F){for(e=F[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete F[i]}if(i=B._first,(!i||i._paused)&&I.autoSleep&&!q._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addEventListener("tick",R._updateRoot);var K=function(t,e,i){var s,r,n=t._gsTweenID;if(F[n||(t._gsTweenID=n="t"+j++)]||(F[n]={target:t,tweens:[]}),e&&(s=F[n].tweens,s[r=s.length]=e,i))for(;--r>-1;)s[r]===e&&s.splice(r,1);return F[n].tweens},H=function(t,e,i,s){var r,n,a=t.vars.onOverwrite;return a&&(r=a(t,e,i,s)),a=I.onOverwrite,a&&(n=a(t,e,i,s)),r!==!1&&n!==!1},J=function(t,e,i,s,r){var n,a,o,l;if(1===s||s>=4){for(l=r.length,n=0;l>n;n++)if((o=r[n])!==e)o._gc||H(o,e)&&o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var h,u=e._startTime+_,m=[],f=0,c=0===e._duration;for(n=r.length;--n>-1;)(o=r[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||V(e,0,c),0===V(o,h,c)&&(m[f++]=o)):u>=o._startTime&&o._startTime+o.totalDuration()/o._timeScale>u&&((c||!o._initted)&&2e-10>=u-o._startTime||(m[f++]=o)));for(n=f;--n>-1;)if(o=m[n],2===s&&o._kill(i,t,e)&&(a=!0),2!==s||!o._firstPT&&o._initted){if(2!==s&&!H(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},V=function(t,e,i){for(var s=t._timeline,r=s._timeScale,n=t._startTime;s._timeline;){if(n+=s._startTime,r*=s._timeScale,s._paused)return-100;s=s._timeline}return n/=r,n>e?n-e:i&&n===e||!t._initted&&2*_>n-e?_:(n+=t.totalDuration()/t._timeScale/r)>e+_?0:n-e-_};n._init=function(){var t,e,i,s,r,n=this.vars,a=this._overwrittenProps,o=this._duration,l=!!n.immediateRender,h=n.ease;if(n.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={};for(s in n.startAt)r[s]=n.startAt[s];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=l&&n.lazy!==!1,r.startAt=r.delay=null,this._startAt=I.to(this.target,0,r),l)if(this._time>0)this._startAt=null;else if(0!==o)return}else if(n.runBackwards&&0!==o)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(l=!1),i={};for(s in n)G[s]&&"autoCSS"!==s||(i[s]=n[s]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&n.lazy!==!1,i.immediateRender=l,this._startAt=I.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=h=h?h instanceof y?h:"function"==typeof h?new y(h,n.easeParams):w[h]||I.defaultEase:I.defaultEase,n.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,n.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a);if(e&&I._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),n.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=n.onUpdate,this._initted=!0},n._initProps=function(e,i,s,r){var n,a,o,l,h,_;if(null==e)return!1;L[e._gsTweenID]&&$(),this.vars.css||e.style&&e!==t&&e.nodeType&&U.css&&this.vars.autoCSS!==!1&&O(this.vars,e);for(n in this.vars){if(_=this.vars[n],G[n])_&&(_ instanceof Array||_.push&&f(_))&&-1!==_.join("").indexOf("{self}")&&(this.vars[n]=_=this._swapSelfInParams(_,this));else if(U[n]&&(l=new U[n])._onInitTween(e,this.vars[n],this)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:!0,n:n,pg:!0,pr:l._priority},a=l._overwriteProps.length;--a>-1;)i[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[n]=h={_next:this._firstPT,t:e,p:n,f:"function"==typeof e[n],n:n,pg:!1,pr:0},h.s=h.f?e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(e[n]),h.c="string"==typeof _&&"="===_.charAt(1)?parseInt(_.charAt(0)+"1",10)*Number(_.substr(2)):Number(_)-h.s||0;h&&h._next&&(h._next._prev=h)}return r&&this._kill(r,e)?this._initProps(e,i,s,r):this._overwrite>1&&this._firstPT&&s.length>1&&J(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initProps(e,i,s,r)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(L[e._gsTweenID]=!0),o)},n.render=function(t,e,i){var s,r,n,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,r="onComplete"),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>h||h===_&&"isPause"!==this.data)&&h!==t&&(i=!0,h>_&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:_);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0)&&(r="onReverseComplete",s=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(h!==_||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:_)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/l,m=this._easeType,f=this._easePower;(1===m||3===m&&u>=.5)&&(u=1-u),3===m&&(u*=2),1===f?u*=u:2===f?u*=u*u:3===f?u*=u*u*u:4===f&&(u*=u*u*u*u),this.ratio=1===m?1-u:2===m?u:.5>t/l?u/2:1-u/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,z.push(this),this._lazy=[t,e],void 0;this._time&&!s?this.ratio=this._ease.getRatio(this._time/l):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||T))),n=this._firstPT;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onUpdate&&(0>t&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,i),e||(this._time!==o||s)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||T)),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||T),0===l&&this._rawPrevTime===_&&a!==_&&(this._rawPrevTime=0))}},n._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:I.selector(e)||e;var s,r,n,a,o,l,h,_,u;if((f(e)||E(e))&&"number"!=typeof e[0])for(s=e.length;--s>-1;)this._kill(t,e[s])&&(l=!0);else{if(this._targets){for(s=this._targets.length;--s>-1;)if(e===this._targets[s]){o=this._propLookup[s]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[s]=t?this._overwrittenProps[s]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,_=t!==r&&"all"!==r&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(I.onOverwrite||this.vars.onOverwrite)){for(n in h)o[n]&&(u||(u=[]),u.push(n));if(!H(this,i,e,u))return!1}for(n in h)(a=o[n])&&(a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[n]),_&&(r[n]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},n.invalidate=function(){return this._notifyPluginsOfEnabled&&I._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],R.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-_,this.render(-this._delay)),this},n._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=K(s[i],this,!0);else this._siblings=K(this.target,this,!0)}return R.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT?I._onPluginEvent(t?"_onEnable":"_onDisable",this):!1},I.to=function(t,e,i){return new I(t,e,i)},I.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new I(t,e,i)},I.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new I(t,e,s)},I.delayedCall=function(t,e,i,s,r){return new I(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:s,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:s,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},I.set=function(t,e){return new I(t,0,e)},I.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:I.selector(t)||t;var i,s,r,n;if((f(t)||E(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(I.getTweensOf(t[i],e));for(i=s.length;--i>-1;)for(n=s[i],r=i;--r>-1;)n===s[r]&&s.splice(i,1)}else for(s=K(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s},I.killTweensOf=I.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=I.getTweensOf(t,e),r=s.length;--r>-1;)s[r]._kill(i,t)};var W=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=W.prototype},!0);if(n=W.prototype,W.version="1.10.1",W.API=2,n._firstPT=null,n._addTween=function(t,e,i,s,r,n){var a,o;return null!=s&&(a="number"==typeof s||"="!==s.charAt(1)?Number(s)-i:parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)))?(this._firstPT=o={_next:this._firstPT,t:t,p:e,s:i,c:a,f:"function"==typeof t[e],n:r||e,r:n},o._next&&(o._next._prev=o),o):void 0},n.setRatio=function(t){for(var e,i=this._firstPT,s=1e-6;i;)e=i.c*t+i.s,i.r?e=Math.round(e):s>e&&e>-s&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},n._kill=function(t){var e,i=this._overwriteProps,s=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},n._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},I._onPluginEvent=function(t,e){var i,s,r,n,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,s=r;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:n)?o._prev._next=o:r=o,(o._next=s)?s._prev=o:n=o,o=a}o=e._firstPT=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},W.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===W.API&&(U[(new t[e])._propName]=t[e]);return!0},d.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,s=t.priority||0,r=t.overwriteProps,n={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},a=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){W.call(this,i,s),this._overwriteProps=r||[]},t.global===!0),o=a.prototype=new W(i);o.constructor=a,a.API=t.API;for(e in n)"function"==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,W.activate([a]),a},s=t._gsQueue){for(r=0;s.length>r;r++)s[r]();for(n in c)c[n].func||t.console.log("GSAP encountered missing dependency: com.greensock."+n)}o=!1}})("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite"); /*! * VERSION: 1.16.0 * DATE: 2015-03-01 * UPDATES AND DOCS AT: http://greensock.com * * @license Copyright (c) 2008-2015, GreenSock. All rights reserved. * This work is subject to the terms at http://greensock.com/standard-license or for * Club GreenSock members, the software agreement that was issued with your membership. * * @author: Jack Doyle, jack@greensock.com */ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,s,r=this.vars;for(s in r)i=r[s],h(i)&&-1!==i.join("").indexOf("{self}")&&(r[s]=this._swapSelfInParams(i));h(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals,a=s._internals={},o=n.isSelector,h=n.isArray,l=n.lazyTweens,_=n.lazyRender,u=[],f=_gsScope._gsDefine.globals,p=function(t){var e,i={};for(e in t)i[e]=t[e];return i},c=a.pauseCallback=function(t,e,i,s){var n,a=t._timeline,o=a._totalTime,h=t._startTime,l=t.ratio?r:0,_=t.ratio?0:r;if(e||!this._forcingPlayhead){for(a.pause(h),n=t._prev;n&&n._startTime===h;)n._rawPrevTime=_,n=n._prev;for(n=t._next;n&&n._startTime===h;)n._rawPrevTime=l,n=n._next;e&&e.apply(s||a,i||u),this._forcingPlayhead&&a.seek(o)}},m=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},d=s.prototype=new e;return s.version="1.16.0",d.constructor=s,d.kill()._gc=d._forcingPlayhead=!1,d.to=function(t,e,s,r){var n=s.repeat&&f.TweenMax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},d.from=function(t,e,s,r){return this.add((s.repeat&&f.TweenMax||i).from(t,e,s),r)},d.fromTo=function(t,e,s,r,n){var a=r.repeat&&f.TweenMax||i;return e?this.add(a.fromTo(t,e,s,r),n):this.set(t,r,n)},d.staggerTo=function(t,e,r,n,a,h,l,_){var u,f=new s({onComplete:h,onCompleteParams:l,onCompleteScope:_,smoothChildTiming:this.smoothChildTiming});for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=m(t)),n=n||0,0>n&&(t=m(t),t.reverse(),n*=-1),u=0;t.length>u;u++)r.startAt&&(r.startAt=p(r.startAt)),f.to(t[u],e,p(r),u*n);return this.add(f,a)},d.staggerFrom=function(t,e,i,s,r,n,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,s,r,n,a,o)},d.staggerFromTo=function(t,e,i,s,r,n,a,o,h){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,s,r,n,a,o,h)},d.call=function(t,e,s,r){return this.add(i.delayedCall(0,t,e,s),r)},d.set=function(t,e,s){return s=this._parseTimeOrLabel(s,0,!0),null==e.immediateRender&&(e.immediateRender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=n;return o.add(a,0),a},d.add=function(r,n,a,o){var l,_,u,f,p,c;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&h(r)){for(a=a||"normal",o=o||0,l=n,_=r.length,u=0;_>u;u++)h(f=r[u])&&(f=new s({tweens:f})),this.add(f,l),"string"!=typeof f&&"function"!=typeof f&&("sequence"===a?l=f._startTime+f.totalDuration()/f._timeScale:"start"===a&&(f._startTime-=f.delay())),l+=o;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,n);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._durationr._startTime;p._timeline;)c&&p._timeline.smoothChildTiming?p.totalTime(p._totalTime,!0):p._gc&&p._enabled(!0,!1),p=p._timeline;return this},d.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof Array||e&&e.push&&h(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},d._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._startTime+s._totalDuration/s._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},d.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},d.insert=d.insertMultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},d.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},d.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},d.addPause=function(t,e,s,r){var n=i.delayedCall(0,c,["{self}",e,s,r],this);return n.data="isPause",this.add(n,t)},d.removeLabel=function(t){return delete this._labels[t],this},d.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},d._parseTimeOrLabel=function(e,i,s,r){var n;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&h(r)))for(n=r.length;--n>-1;)r[n]instanceof t&&r[n].timeline===this&&this.remove(r[n]);if("string"==typeof i)return this._parseTimeOrLabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(n=e.indexOf("="),-1===n)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(n-1)+"1",10)*Number(e.substr(n+1)),e=n>1?this._parseTimeOrLabel(e.substr(0,n-1),0,s):this.duration()}return Number(e)+i},d.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},d.stop=function(){return this.paused(!0)},d.gotoAndPlay=function(t,e){return this.play(t,e)},d.gotoAndStop=function(t,e){return this.pause(t,e)},d.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,o,h,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,c=this._startTime,m=this._timeScale,d=this._paused;if(t>=f)this._totalTime=this._time=f,this._reversed||this._hasPausedChild()||(n=!0,o="onComplete",0===this._duration&&(0===t||0>this._rawPrevTime||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(h=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=f+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",n=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(h=n=!0,o="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(h=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,0===t&&n)for(s=this._first;s&&0===s._startTime;)s._duration||(n=!1),s=s._next;t=0,this._initted||(h=!0)}else this._totalTime=this._time=this._rawPrevTime=t;if(this._time!==p&&this._first||i||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&0!==this._time&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||u)),this._time>=p)for(s=this._first;s&&(a=s._next,!this._paused||d);)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;else for(s=this._last;s&&(a=s._prev,!this._paused||d);)(s._active||p>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;this._onUpdate&&(e||(l.length&&_(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||u))),o&&(this._gc||(c===this._startTime||m!==this._timeScale)&&(0===this._time||f>=this.totalDuration())&&(n&&(l.length&&_(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this.vars[o].apply(this.vars[o+"Scope"]||this,this.vars[o+"Params"]||u)))}},d._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._hasPausedChild())return!0;t=t._next}return!1},d.getChildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)r>a._startTime||(a instanceof i?e!==!1&&(n[o++]=a):(s!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getChildren(!0,e,s)),o=n.length))),a=a._next;return n},d.getTweensOf=function(t,e){var s,r,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),s=i.getTweensOf(t),r=s.length;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(a[o++]=s[r]);return n&&this._enabled(!1,!0),a},d.recent=function(){return this._recent},d._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},d.shiftChildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},d._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),s=i.length,r=!1;--s>-1;)i[s]._kill(t,e)&&(r=!0);return r},d.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},d.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},d._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},d.totalTime=function(){this._forcingPlayhead=!0;var e=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},d.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},d.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>n&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):n=r._startTime,0>r._startTime&&!r._paused&&(s-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),n=0),i=r._startTime+r._totalDuration/r._timeScale,i>s&&(s=i),r=e;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this},d.paused=function(e){if(!e)for(var i=this._first,s=this._time;i;)i._startTime===s&&"isPause"===i.data&&(i._rawPrevTime=s),i=i._next;return t.prototype.paused.apply(this,arguments)},d.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},d.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},s},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=e())}("TimelineLite"); /*! /*! * VERSION: beta 1.15.2 * DATE: 2015-01-27 * UPDATES AND DOCS AT: http://greensock.com * * @license Copyright (c) 2008-2015, GreenSock. All rights reserved. * This work is subject to the terms at http://greensock.com/standard-license or for * Club GreenSock members, the software agreement that was issued with your membership. * * @author: Jack Doyle, jack@greensock.com **/ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,s,r=_gsScope.GreenSockGlobals||_gsScope,n=r.com.greensock,a=2*Math.PI,o=Math.PI/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new s},!0);return _(r,t),r},c=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},f=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,r.config=function(t){return new s(t)},s},p=u("Back",f("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),f("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),f("BackInOut",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getRatio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.RoughEase",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),f=u,p=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--f>-1;)i=p?Math.random():1/u*f,s=d?d.getRatio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),p?s+=Math.random()*r-.5*r:f%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),f=u;--f>-1;)a=l[f],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("Bounce",l("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("BounceIn",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("Circ",l("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),l("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),l("CircInOut",function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||s)/(1>t?t:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t,e){return new r(t,e)},r},u("Elastic",s("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),s("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2))},.3),s("ElasticInOut",function(t){return 1>(t*=2)?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)+1},.45)),u("Expo",l("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),l("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),l("ExpoInOut",function(t){return 1>(t*=2)?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),u("Sine",l("SineOut",function(t){return Math.sin(t*o)}),l("SineIn",function(t){return-Math.cos(t*o)+1}),l("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),h("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),_(r.SlowMo,"SlowMo","ease,"),_(i,"RoughEase","ease,"),_(e,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(); /*! * VERSION: 1.16.0 * DATE: 2015-03-01 * UPDATES AND DOCS AT: http://www.greensock.com * * @license Copyright (c) 2008-2015, GreenSock. All rights reserved. * This work is subject to the terms at http://greensock.com/standard-license or for * Club GreenSock members, the software agreement that was issued with your membership. * * @author: Jack Doyle, jack@greensock.com */ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,r,s,n,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o=_gsScope._gsDefine.globals,l={},h=a.prototype=new t("css");h.constructor=a,a.version="1.16.0",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",h="px",a.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var u,f,p,c,_,d,m=/(?:\d|\-\d|\.\d|\-\.\d)+/g,g=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,v=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,y=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,x=/(?:\d|\-|\+|=|#|\.)*/g,T=/opacity *= *([^)]*)/i,w=/opacity:([^;]*)/i,b=/alpha\(opacity *=.+?\)/i,P=/^(rgb|hsl)/,S=/([A-Z])/g,C=/-([a-z])/gi,O=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,k=function(t,e){return e.toUpperCase()},R=/(?:Left|Right|Width)/i,A=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,D=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,M=/,(?=[^\)]*(?:\(|$))/gi,N=Math.PI/180,L=180/Math.PI,X={},z=document,F=function(t){return z.createElementNS?z.createElementNS("http://www.w3.org/1999/xhtml",t):z.createElement(t)},I=F("div"),E=F("img"),Y=a._internals={_specialProps:l},B=navigator.userAgent,U=function(){var t=B.indexOf("Android"),e=F("a");return p=-1!==B.indexOf("Safari")&&-1===B.indexOf("Chrome")&&(-1===t||Number(B.substr(t+8,1))>3),_=p&&6>Number(B.substr(B.indexOf("Version/")+8,1)),c=-1!==B.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(B)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(B))&&(d=parseFloat(RegExp.$1)),e?(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity)):!1}(),j=function(t){return T.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},V=function(t){window.console&&console.log(t)},W="",q="",G=function(t,e){e=e||I;var i,r,s=e.style;if(void 0!==s[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===s[i[r]+t];);return r>=0?(q=3===r?"ms":i[r],W="-"+q.toLowerCase()+"-",q+t):null},H=z.defaultView?z.defaultView.getComputedStyle:function(){},Q=a.getStyle=function(t,e,i,r,s){var n;return U||"opacity"!==e?(!r&&t.style[e]?n=t.style[e]:(i=i||H(t))?n=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(S,"-$1").toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):j(t)},Z=Y.convertToPixels=function(t,i,r,s,n){if("px"===s||!s)return r;if("auto"===s||!r)return 0;var o,l,h,u=R.test(i),f=t,p=I.style,c=0>r;if(c&&(r=-r),"%"===s&&-1!==i.indexOf("border"))o=r/100*(u?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+Q(t,"position")+";line-height:0;","%"!==s&&f.appendChild)p[u?"borderLeftWidth":"borderTopWidth"]=r+s;else{if(f=t.parentNode||z.body,l=f._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;p[u?"width":"height"]=r+s}f.appendChild(I),o=parseFloat(I[u?"offsetWidth":"offsetHeight"]),f.removeChild(I),u&&"%"===s&&a.cacheWidths!==!1&&(l=f._gsCache=f._gsCache||{},l.time=h,l.width=100*(o/r)),0!==o||n||(o=Z(t,i,r,s,!0))}return c?-o:o},$=Y.calculateOffset=function(t,e,i){if("absolute"!==Q(t,"position",i))return 0;var r="left"===e?"Left":"Top",s=Q(t,"margin"+r,i);return t["offset"+r]-(Z(t,e,parseFloat(s),s.replace(x,""))||0)},K=function(t,e){var i,r,s,n={};if(e=e||H(t,null))if(i=e.length)for(;--i>-1;)s=e[i],(-1===s.indexOf("-transform")||be===s)&&(n[s.replace(C,k)]=e.getPropertyValue(s));else for(i in e)(-1===i.indexOf("Transform")||we===i)&&(n[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===n[i]&&(n[i.replace(C,k)]=e[i]);return U||(n.opacity=j(t)),r=Me(t,e,!1),n.rotation=r.rotation,n.skewX=r.skewX,n.scaleX=r.scaleX,n.scaleY=r.scaleY,n.x=r.x,n.y=r.y,Se&&(n.z=r.z,n.rotationX=r.rotationX,n.rotationY=r.rotationY,n.scaleZ=r.scaleZ),n.filters&&delete n.filters,n},J=function(t,e,i,r,s){var n,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(n=i[a])||s&&s[a])&&-1===a.indexOf("Origin")&&("number"==typeof n||"string"==typeof n)&&(l[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(y,"")?n:0:$(t,a),void 0!==h[a]&&(o=new ce(h,a,h[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}},te={width:["Left","Right"],height:["Top","Bottom"]},ee=["marginLeft","marginRight","marginTop","marginBottom"],ie=function(t,e,i){var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),s=te[e],n=s.length;for(i=i||H(t,null);--n>-1;)r-=parseFloat(Q(t,"padding"+s[n],i,!0))||0,r-=parseFloat(Q(t,"border"+s[n]+"Width",i,!0))||0;return r},re=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==s?s="center"===r?"50%":"0":"center"===s&&(s="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(r.replace(y,"")),e.oy=parseFloat(s.replace(y,""))),r+" "+s+(i.length>2?" "+i[2]:"")},se=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},ne=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)},ae=function(t,e,i,r){var s,n,a,o,l,h=1e-6;return null==t?o=e:"number"==typeof t?o=t:(s=360,n=t.split("_"),l="="===t.charAt(1),a=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===t.indexOf("rad")?1:L)-(l?0:e),n.length&&(r&&(r[i]=e+a),-1!==t.indexOf("short")&&(a%=s,a!==a%(s/2)&&(a=0>a?a+s:a-s)),-1!==t.indexOf("_cw")&&0>a?a=(a+9999999999*s)%s-(0|a/s)*s:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*s)%s-(0|a/s)*s)),o=e+a),h>o&&o>-h&&(o=0),o},oe={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},le=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,0|255*(1>6*t?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},he=a.parseColor=function(t){var e,i,r,s,n,a;return t&&""!==t?"number"==typeof t?[t>>16,255&t>>8,255&t]:(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),oe[t]?oe[t]:"#"===t.charAt(0)?(4===t.length&&(e=t.charAt(1),i=t.charAt(2),r=t.charAt(3),t="#"+e+e+i+i+r+r),t=parseInt(t.substr(1),16),[t>>16,255&t>>8,255&t]):"hsl"===t.substr(0,3)?(t=t.match(m),s=Number(t[0])%360/360,n=Number(t[1])/100,a=Number(t[2])/100,i=.5>=a?a*(n+1):a+n-a*n,e=2*a-i,t.length>3&&(t[3]=Number(t[3])),t[0]=le(s+1/3,e,i),t[1]=le(s,e,i),t[2]=le(s-1/3,e,i),t):(t=t.match(m)||oe.transparent,t[0]=Number(t[0]),t[1]=Number(t[1]),t[2]=Number(t[2]),t.length>3&&(t[3]=Number(t[3])),t)):oe.black},ue="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(h in oe)ue+="|"+h+"\\b";ue=RegExp(ue+")","gi");var fe=function(t,e,i,r){if(null==t)return function(t){return t};var s,n=e?(t.match(ue)||[""])[0]:"",a=t.split(n).join("").match(v)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",u=a.length,f=u>0?a[0].replace(m,""):"";return u?s=e?function(t){var e,p,c,_;if("number"==typeof t)t+=f;else if(r&&M.test(t)){for(_=t.replace(M,"|").split("|"),c=0;_.length>c;c++)_[c]=s(_[c]);return _.join(",")}if(e=(t.match(ue)||[n])[0],p=t.split(e).join("").match(v)||[],c=p.length,u>c--)for(;u>++c;)p[c]=i?p[0|(c-1)/2]:a[c];return o+p.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,n,p;if("number"==typeof t)t+=f;else if(r&&M.test(t)){for(n=t.replace(M,"|").split("|"),p=0;n.length>p;p++)n[p]=s(n[p]);return n.join(",")}if(e=t.match(v)||[],p=e.length,u>p--)for(;u>++p;)e[p]=i?e[0|(p-1)/2]:a[p];return o+e.join(h)+l}:function(t){return t}},pe=function(t){return t=t.split(","),function(e,i,r,s,n,a,o){var l,h=(i+"").split(" ");for(o={},l=0;4>l;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return s.parse(e,o,n,a)}},ce=(Y._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,s,n=this.data,a=n.proxy,o=n.firstMPT,l=1e-6;o;)e=a[o.v],o.r?e=Math.round(e):l>e&&e>-l&&(e=0),o.t[o.p]=e,o=o._next;if(n.autoRotate&&(n.autoRotate.rotation=a.rotation),1===t)for(o=n.firstMPT;o;){if(i=o.t,i.type){if(1===i.type){for(s=i.xs0+i.s+i.xs1,r=1;i.l>r;r++)s+=i["xn"+r]+i["xs"+(r+1)];i.e=s}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,r,s){this.t=t,this.p=e,this.v=i,this.r=s,r&&(r._prev=this,this._next=r)}),_e=(Y._parseToProxy=function(t,e,i,r,s,n){var a,o,l,h,u,f=r,p={},c={},_=i._transform,d=X;for(i._transform=null,X=e,r=u=i.parse(t,e,r,s),X=d,n&&(i._transform=_,f&&(f._prev=null,f._prev&&(f._prev._next=null)));r&&r!==f;){if(1>=r.type&&(o=r.p,c[o]=r.s+r.c,p[o]=r.s,n||(h=new ce(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;--a>0;)l="xn"+a,o=r.p+"_"+l,c[o]=r.data[l],p[o]=r[l],n||(h=new ce(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:p,end:c,firstMPT:h,pt:u}},Y.CSSPropTween=function(t,e,r,s,a,o,l,h,u,f,p){this.t=t,this.p=e,this.s=r,this.c=s,this.n=l||e,t instanceof _e||n.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===f?r:f,this.e=void 0===p?r+s:p,a&&(this._next=a,a._prev=this)}),de=a.parseComplex=function(t,e,i,r,s,n,a,o,l,h){i=i||n||"",a=new _e(t,e,0,0,a,h?2:1,null,!1,o,i,r),r+="";var f,p,c,_,d,v,y,x,T,w,b,S,C=i.split(", ").join(",").split(" "),O=r.split(", ").join(",").split(" "),k=C.length,R=u!==!1;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(C=C.join(" ").replace(M,", ").split(" "),O=O.join(" ").replace(M,", ").split(" "),k=C.length),k!==O.length&&(C=(n||"").split(" "),k=C.length),a.plugin=l,a.setRatio=h,f=0;k>f;f++)if(_=C[f],d=O[f],x=parseFloat(_),x||0===x)a.appendXtra("",x,se(d,x),d.replace(g,""),R&&-1!==d.indexOf("px"),!0);else if(s&&("#"===_.charAt(0)||oe[_]||P.test(_)))S=","===d.charAt(d.length-1)?"),":")",_=he(_),d=he(d),T=_.length+d.length>6,T&&!U&&0===d[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(O[f]).join("transparent")):(U||(T=!1),a.appendXtra(T?"rgba(":"rgb(",_[0],d[0]-_[0],",",!0,!0).appendXtra("",_[1],d[1]-_[1],",",!0).appendXtra("",_[2],d[2]-_[2],T?",":S,!0),T&&(_=4>_.length?1:_[3],a.appendXtra("",_,(4>d.length?1:d[3])-_,S,!1)));else if(v=_.match(m)){if(y=d.match(g),!y||y.length!==v.length)return a;for(c=0,p=0;v.length>p;p++)b=v[p],w=_.indexOf(b,c),a.appendXtra(_.substr(c,w-c),Number(b),se(y[p],b),"",R&&"px"===_.substr(w+b.length,2),0===p),c=w+b.length;a["xs"+a.l]+=_.substr(c)}else a["xs"+a.l]+=a.l?" "+_:_;if(-1!==r.indexOf("=")&&a.data){for(S=a.xs0+a.data.s,f=1;a.l>f;f++)S+=a["xs"+f]+a.data["xn"+f];a.e=S+a["xs"+f]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},me=9;for(h=_e.prototype,h.l=h.pr=0;--me>0;)h["xn"+me]=0,h["xs"+me]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(t,e,i,r,s,n){var a=this,o=a.l;return a["xs"+o]+=n&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=s,a["xn"+o]=e,a.plugin||(a.xfirst=new _e(a,"xn"+o,e,i,a.xfirst||a,0,a.n,s,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=s,a)):(a["xs"+o]+=e+(r||""),a)};var ge=function(t,e){e=e||{},this.p=e.prefix?G(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||fe(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},ve=Y._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,s,n=t.split(","),a=e.defaultValue;for(i=i||[a],r=0;n.length>r;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||a,s=new ge(n[r],e)},ye=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";ve(t,{parser:function(t,i,r,s,n,a,h){var u=o.com.greensock.plugins[e];return u?(u._cssRegister(),l[r].parse(t,i,r,s,n,a,h)):(V("Error: "+e+" js file not loaded."),n)}})}};h=ge.prototype,h.parseComplex=function(t,e,i,r,s,n){var a,o,l,h,u,f,p=this.keyword;if(this.multi&&(M.test(i)||M.test(e)?(o=e.replace(M,"|").split("|"),l=i.replace(M,"|").split("|")):p&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;h>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,p&&(u=e.indexOf(p),f=i.indexOf(p),u!==f&&(-1===f?o[a]=o[a].split(p).join(""):-1===u&&(o[a]+=" "+p)));e=o.join(", "),i=l.join(", ")}return de(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,s,n)},h.parse=function(t,e,i,r,n,a){return this.parseComplex(t.style,this.format(Q(t,this.p,s,!1,this.dflt)),this.format(e),n,a)},a.registerSpecialProp=function(t,e,i){ve(t,{parser:function(t,r,s,n,a,o){var l=new _e(t,s,0,0,a,2,s,!1,i);return l.plugin=o,l.setRatio=e(t,r,n._tween,s),l},priority:i})},a.useSVGTransformAttr=p;var xe,Te="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),we=G("transform"),be=W+"transform",Pe=G("transformOrigin"),Se=null!==G("perspective"),Ce=Y.Transform=function(){this.perspective=parseFloat(a.defaultTransformPerspective)||0,this.force3D=a.defaultForce3D!==!1&&Se?a.defaultForce3D||"auto":!1},Oe=window.SVGElement,ke=function(t,e,i){var r,s=z.createElementNS("http://www.w3.org/2000/svg",t),n=/([a-z])([A-Z])/g;for(r in i)s.setAttributeNS(null,r.replace(n,"$1-$2").toLowerCase(),i[r]);return e.appendChild(s),s},Re=z.documentElement,Ae=function(){var t,e,i,r=d||/Android/i.test(B)&&!window.chrome;return z.createElementNS&&!r&&(t=ke("svg",Re),e=ke("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().width,e.style[Pe]="50% 50%",e.style[we]="scaleX(0.5)",r=i===e.getBoundingClientRect().width&&!(c&&Se),Re.removeChild(t)),r}(),De=function(t,e,i,r){var s,n;r&&(n=r.split(" ")).length||(s=t.getBBox(),e=re(e).split(" "),n=[(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*s.width:parseFloat(e[0]))+s.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*s.height:parseFloat(e[1]))+s.y]),i.xOrigin=parseFloat(n[0]),i.yOrigin=parseFloat(n[1]),t.setAttribute("data-svg-origin",n.join(" "))},Me=Y.getTransform=function(t,e,i,r){if(t._gsTransform&&i&&!r)return t._gsTransform;var n,o,l,h,u,f,p,c,_,d,m=i?t._gsTransform||new Ce:new Ce,g=0>m.scaleX,v=2e-5,y=1e5,x=Se?parseFloat(Q(t,Pe,e,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,T=parseFloat(a.defaultTransformPerspective)||0;if(we?o=Q(t,be,e,!0):t.currentStyle&&(o=t.currentStyle.filter.match(A),o=o&&4===o.length?[o[0].substr(4),Number(o[2].substr(4)),Number(o[1].substr(4)),o[3].substr(4),m.x||0,m.y||0].join(","):""),n=!o||"none"===o||"matrix(1, 0, 0, 1, 0, 0)"===o,m.svg=!!(Oe&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM)),m.svg&&(n&&-1!==(t.style[we]+"").indexOf("matrix")&&(o=t.style[we],n=!1),De(t,Q(t,Pe,s,!1,"50% 50%")+"",m,t.getAttribute("data-svg-origin")),xe=a.useSVGTransformAttr||Ae,l=t.getAttribute("transform"),n&&l&&-1!==l.indexOf("matrix")&&(o=l,n=0)),!n){for(l=(o||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],h=l.length;--h>-1;)u=Number(l[h]),l[h]=(f=u-(u|=0))?(0|f*y+(0>f?-.5:.5))/y+u:u;if(16===l.length){var w,b,P,S,C,O=l[0],k=l[1],R=l[2],D=l[3],M=l[4],N=l[5],X=l[6],z=l[7],F=l[8],I=l[9],E=l[10],Y=l[12],B=l[13],U=l[14],j=l[11],V=Math.atan2(X,E);m.zOrigin&&(U=-m.zOrigin,Y=F*U-l[12],B=I*U-l[13],U=E*U+m.zOrigin-l[14]),m.rotationX=V*L,V&&(S=Math.cos(-V),C=Math.sin(-V),w=M*S+F*C,b=N*S+I*C,P=X*S+E*C,F=M*-C+F*S,I=N*-C+I*S,E=X*-C+E*S,j=z*-C+j*S,M=w,N=b,X=P),V=Math.atan2(F,E),m.rotationY=V*L,V&&(S=Math.cos(-V),C=Math.sin(-V),w=O*S-F*C,b=k*S-I*C,P=R*S-E*C,I=k*C+I*S,E=R*C+E*S,j=D*C+j*S,O=w,k=b,R=P),V=Math.atan2(k,O),m.rotation=V*L,V&&(S=Math.cos(-V),C=Math.sin(-V),O=O*S+M*C,b=k*S+N*C,N=k*-C+N*S,X=R*-C+X*S,k=b),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY+=180),m.scaleX=(0|Math.sqrt(O*O+k*k)*y+.5)/y,m.scaleY=(0|Math.sqrt(N*N+I*I)*y+.5)/y,m.scaleZ=(0|Math.sqrt(X*X+E*E)*y+.5)/y,m.skewX=0,m.perspective=j?1/(0>j?-j:j):0,m.x=Y,m.y=B,m.z=U,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*O-m.yOrigin*M),m.y-=m.yOrigin-(m.yOrigin*k-m.xOrigin*N))}else if(!(Se&&!r&&l.length&&m.x===l[4]&&m.y===l[5]&&(m.rotationX||m.rotationY)||void 0!==m.x&&"none"===Q(t,"display",e))){var W=l.length>=6,q=W?l[0]:1,G=l[1]||0,H=l[2]||0,Z=W?l[3]:1;m.x=l[4]||0,m.y=l[5]||0,p=Math.sqrt(q*q+G*G),c=Math.sqrt(Z*Z+H*H),_=q||G?Math.atan2(G,q)*L:m.rotation||0,d=H||Z?Math.atan2(H,Z)*L+_:m.skewX||0,Math.abs(d)>90&&270>Math.abs(d)&&(g?(p*=-1,d+=0>=_?180:-180,_+=0>=_?180:-180):(c*=-1,d+=0>=d?180:-180)),m.scaleX=p,m.scaleY=c,m.rotation=_,m.skewX=d,Se&&(m.rotationX=m.rotationY=m.z=0,m.perspective=T,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*q-m.yOrigin*G),m.y-=m.yOrigin-(m.yOrigin*Z-m.xOrigin*H))}m.zOrigin=x;for(h in m)v>m[h]&&m[h]>-v&&(m[h]=0)}return i&&(t._gsTransform=m,m.svg&&(xe&&t.style[we]?Fe(t.style,we):!xe&&t.getAttribute("transform")&&t.removeAttribute("transform"))),m},Ne=function(t){var e,i,r=this.data,s=-r.rotation*N,n=s+r.skewX*N,a=1e5,o=(0|Math.cos(s)*r.scaleX*a)/a,l=(0|Math.sin(s)*r.scaleX*a)/a,h=(0|Math.sin(n)*-r.scaleY*a)/a,u=(0|Math.cos(n)*r.scaleY*a)/a,f=this.t.style,p=this.t.currentStyle;if(p){i=l,l=-h,h=-i,e=p.filter,f.filter="";var c,_,m=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==p.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,w=r.x+m*r.xPercent/100,b=r.y+g*r.yPercent/100;if(null!=r.ox&&(c=(r.oxp?.01*m*r.ox:r.ox)-m/2,_=(r.oyp?.01*g*r.oy:r.oy)-g/2,w+=c-(c*o+_*l),b+=_-(c*h+_*u)),v?(c=m/2,_=g/2,y+=", Dx="+(c-(c*o+_*l)+w)+", Dy="+(_-(c*h+_*u)+b)+")"):y+=", sizingMethod='auto expand')",f.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(D,y):y+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===y.indexOf("Dx=0, Dy=0")||T.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf("gradient("&&e.indexOf("Alpha"))&&f.removeAttribute("filter")),!v){var P,S,C,O=8>d?1:-1;for(c=r.ieOffsetX||0,_=r.ieOffsetY||0,r.ieOffsetX=Math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*g))/2+w),r.ieOffsetY=Math.round((g-((0>u?-u:u)*g+(0>h?-h:h)*m))/2+b),me=0;4>me;me++)S=ee[me],P=p[S],i=-1!==P.indexOf("px")?parseFloat(P):Z(this.t,S,parseFloat(P),P.replace(x,""))||0,C=i!==r[S]?2>me?-r.ieOffsetX:-r.ieOffsetY:2>me?c-r.ieOffsetX:_-r.ieOffsetY,f[S]=(r[S]=Math.round(i-C*(0===me||2===me?1:O)))+"px"}}},Le=Y.set3DTransformRatio=function(t){var e,i,r,s,n,a,o,l,h,u,f,p,_,d,m,g,v,y,x,T,w,b=this.data,P=this.t.style,S=b.rotation*N,C=b.scaleX,O=b.scaleY,k=b.scaleZ,R=b.x,A=b.y,D=b.z,M=b.perspective;if(!(1!==t&&0!==t&&b.force3D||b.force3D===!0||b.rotationY||b.rotationX||1!==k||M||D||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime))return Xe.call(this,t),void 0;if(c&&(d=1e-4,d>C&&C>-d&&(C=k=2e-5),d>O&&O>-d&&(O=k=2e-5),!M||b.z||b.rotationX||b.rotationY||(M=0)),S||b.skewX)m=e=Math.cos(S),g=s=Math.sin(S),b.skewX&&(S-=b.skewX*N,m=Math.cos(S),g=Math.sin(S),"simple"===b.skewType&&(v=Math.tan(b.skewX*N),v=Math.sqrt(1+v*v),m*=v,g*=v)),i=-g,n=m;else{if(!(b.rotationY||b.rotationX||1!==k||M||b.svg))return P[we]=(b.xPercent||b.yPercent?"translate("+b.xPercent+"%,"+b.yPercent+"%) translate3d(":"translate3d(")+R+"px,"+A+"px,"+D+"px)"+(1!==C||1!==O?" scale("+C+","+O+")":""),void 0;e=n=1,i=s=0}h=1,r=a=o=l=u=f=0,p=M?-1/M:0,_=b.zOrigin,d=1e-6,T=",",w="0",S=b.rotationY*N,S&&(m=Math.cos(S),g=Math.sin(S),o=-g,u=p*-g,r=e*g,a=s*g,h=m,p*=m,e*=m,s*=m),S=b.rotationX*N,S&&(m=Math.cos(S),g=Math.sin(S),v=i*m+r*g,y=n*m+a*g,l=h*g,f=p*g,r=i*-g+r*m,a=n*-g+a*m,h*=m,p*=m,i=v,n=y),1!==k&&(r*=k,a*=k,h*=k,p*=k),1!==O&&(i*=O,n*=O,l*=O,f*=O),1!==C&&(e*=C,s*=C,o*=C,u*=C),(_||b.svg)&&(_&&(R+=r*-_,A+=a*-_,D+=h*-_+_),b.svg&&(R+=b.xOrigin-(b.xOrigin*e+b.yOrigin*i),A+=b.yOrigin-(b.xOrigin*s+b.yOrigin*n)),d>R&&R>-d&&(R=w),d>A&&A>-d&&(A=w),d>D&&D>-d&&(D=0)),x=b.xPercent||b.yPercent?"translate("+b.xPercent+"%,"+b.yPercent+"%) matrix3d(":"matrix3d(",x+=(d>e&&e>-d?w:e)+T+(d>s&&s>-d?w:s)+T+(d>o&&o>-d?w:o),x+=T+(d>u&&u>-d?w:u)+T+(d>i&&i>-d?w:i)+T+(d>n&&n>-d?w:n),b.rotationX||b.rotationY?(x+=T+(d>l&&l>-d?w:l)+T+(d>f&&f>-d?w:f)+T+(d>r&&r>-d?w:r),x+=T+(d>a&&a>-d?w:a)+T+(d>h&&h>-d?w:h)+T+(d>p&&p>-d?w:p)+T):x+=",0,0,0,0,1,0,",x+=R+T+A+T+D+T+(M?1+-D/M:1)+")",P[we]=x},Xe=Y.set2DTransformRatio=function(t){var e,i,r,s,n,a,o,l,h,u,f,p,c=this.data,_=this.t,d=_.style,m=c.x,g=c.y;return!(c.rotationX||c.rotationY||c.z||c.force3D===!0||"auto"===c.force3D&&1!==t&&0!==t)||c.svg&&xe||!Se?(s=c.scaleX,n=c.scaleY,c.rotation||c.skewX||c.svg?(e=c.rotation*N,i=c.skewX*N,r=1e5,a=Math.cos(e)*s,o=Math.sin(e)*s,l=Math.sin(e-i)*-n,h=Math.cos(e-i)*n,i&&"simple"===c.skewType&&(p=Math.tan(i),p=Math.sqrt(1+p*p),l*=p,h*=p),c.svg&&(m+=c.xOrigin-(c.xOrigin*a+c.yOrigin*l),g+=c.yOrigin-(c.xOrigin*o+c.yOrigin*h),f=1e-6,f>m&&m>-f&&(m=0),f>g&&g>-f&&(g=0)),u=(0|a*r)/r+","+(0|o*r)/r+","+(0|l*r)/r+","+(0|h*r)/r+","+m+","+g+")",c.svg&&xe?_.setAttribute("transform","matrix("+u):d[we]=(c.xPercent||c.yPercent?"translate("+c.xPercent+"%,"+c.yPercent+"%) matrix(":"matrix(")+u):d[we]=(c.xPercent||c.yPercent?"translate("+c.xPercent+"%,"+c.yPercent+"%) matrix(":"matrix(")+s+",0,0,"+n+","+m+","+g+")",void 0):(this.setRatio=Le,Le.call(this,t),void 0)};h=Ce.prototype,h.x=h.y=h.z=h.skewX=h.skewY=h.rotation=h.rotationX=h.rotationY=h.zOrigin=h.xPercent=h.yPercent=0,h.scaleX=h.scaleY=h.scaleZ=1,ve("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(t,e,i,r,n,o,l){if(r._lastParsedTransform===l)return n;r._lastParsedTransform=l;var h,u,f,p,c,_,d,m=r._transform=Me(t,s,!0,l.parseTransform),g=t.style,v=1e-6,y=Te.length,x=l,T={};if("string"==typeof x.transform&&we)f=I.style,f[we]=x.transform,f.display="block",f.position="absolute",z.body.appendChild(I),h=Me(I,null,!1),z.body.removeChild(I);else if("object"==typeof x){if(h={scaleX:ne(null!=x.scaleX?x.scaleX:x.scale,m.scaleX),scaleY:ne(null!=x.scaleY?x.scaleY:x.scale,m.scaleY),scaleZ:ne(x.scaleZ,m.scaleZ),x:ne(x.x,m.x),y:ne(x.y,m.y),z:ne(x.z,m.z),xPercent:ne(x.xPercent,m.xPercent),yPercent:ne(x.yPercent,m.yPercent),perspective:ne(x.transformPerspective,m.perspective)},d=x.directionalRotation,null!=d)if("object"==typeof d)for(f in d)x[f]=d[f];else x.rotation=d;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(h.x=0,h.xPercent=ne(x.x,m.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(h.y=0,h.yPercent=ne(x.y,m.yPercent)),h.rotation=ae("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":"rotationZ"in x?x.rotationZ:m.rotation,m.rotation,"rotation",T),Se&&(h.rotationX=ae("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":m.rotationX||0,m.rotationX,"rotationX",T),h.rotationY=ae("rotationY"in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":m.rotationY||0,m.rotationY,"rotationY",T)),h.skewX=null==x.skewX?m.skewX:ae(x.skewX,m.skewX),h.skewY=null==x.skewY?m.skewY:ae(x.skewY,m.skewY),(u=h.skewY-m.skewY)&&(h.skewX+=u,h.rotation+=u)}for(Se&&null!=x.force3D&&(m.force3D=x.force3D,_=!0),m.skewType=x.skewType||m.skewType||a.defaultSkewType,c=m.force3D||m.z||m.rotationX||m.rotationY||h.z||h.rotationX||h.rotationY||h.perspective,c||null==x.scale||(h.scaleZ=1);--y>-1;)i=Te[y],p=h[i]-m[i],(p>v||-v>p||null!=x[i]||null!=X[i])&&(_=!0,n=new _e(m,i,m[i],p,n),i in T&&(n.e=T[i]),n.xs0=0,n.plugin=o,r._overwriteProps.push(n.n));return p=x.transformOrigin,m.svg&&(p||x.svgOrigin)&&(De(t,re(p),h,x.svgOrigin),n=new _e(m,"xOrigin",m.xOrigin,h.xOrigin-m.xOrigin,n,-1,"transformOrigin"),n.b=m.xOrigin,n.e=n.xs0=h.xOrigin,n=new _e(m,"yOrigin",m.yOrigin,h.yOrigin-m.yOrigin,n,-1,"transformOrigin"),n.b=m.yOrigin,n.e=n.xs0=h.yOrigin,p=xe?null:"0px 0px"),(p||Se&&c&&m.zOrigin)&&(we?(_=!0,i=Pe,p=(p||Q(t,i,s,!1,"50% 50%"))+"",n=new _e(g,i,0,0,n,-1,"transformOrigin"),n.b=g[i],n.plugin=o,Se?(f=m.zOrigin,p=p.split(" "),m.zOrigin=(p.length>2&&(0===f||"0px"!==p[2])?parseFloat(p[2]):f)||0,n.xs0=n.e=p[0]+" "+(p[1]||"50%")+" 0px",n=new _e(m,"zOrigin",0,0,n,-1,n.n),n.b=f,n.xs0=n.e=m.zOrigin):n.xs0=n.e=p):re(p+"",m)),_&&(r._transformType=m.svg&&xe||!c&&3!==this._transformType?2:3),n},prefix:!0}),ve("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),ve("borderRadius",{defaultValue:"0px",parser:function(t,e,i,n,a){e=this.format(e);var o,l,h,u,f,p,c,_,d,m,g,v,y,x,T,w,b=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],P=t.style;for(d=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),o=e.split(" "),l=0;b.length>l;l++)this.p.indexOf("border")&&(b[l]=G(b[l])),f=u=Q(t,b[l],s,!1,"0px"),-1!==f.indexOf(" ")&&(u=f.split(" "),f=u[0],u=u[1]),p=h=o[l],c=parseFloat(f),v=f.substr((c+"").length),y="="===p.charAt(1),y?(_=parseInt(p.charAt(0)+"1",10),p=p.substr(2),_*=parseFloat(p),g=p.substr((_+"").length-(0>_?1:0))||""):(_=parseFloat(p),g=p.substr((_+"").length)),""===g&&(g=r[i]||v),g!==v&&(x=Z(t,"borderLeft",c,v),T=Z(t,"borderTop",c,v),"%"===g?(f=100*(x/d)+"%",u=100*(T/m)+"%"):"em"===g?(w=Z(t,"borderLeft",1,"em"),f=x/w+"em",u=T/w+"em"):(f=x+"px",u=T+"px"),y&&(p=parseFloat(f)+_+g,h=parseFloat(u)+_+g)),a=de(P,b[l],f+" "+u,p+" "+h,!1,"0px",a);return a},prefix:!0,formatter:fe("0px 0px 0px 0px",!1,!0)}),ve("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,n,a){var o,l,h,u,f,p,c="background-position",_=s||H(t,null),m=this.format((_?d?_.getPropertyValue(c+"-x")+" "+_.getPropertyValue(c+"-y"):_.getPropertyValue(c):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),g=this.format(e);if(-1!==m.indexOf("%")!=(-1!==g.indexOf("%"))&&(p=Q(t,"backgroundImage").replace(O,""),p&&"none"!==p)){for(o=m.split(" "),l=g.split(" "),E.setAttribute("src",p),h=2;--h>-1;)m=o[h],u=-1!==m.indexOf("%"),u!==(-1!==l[h].indexOf("%"))&&(f=0===h?t.offsetWidth-E.width:t.offsetHeight-E.height,o[h]=u?parseFloat(m)/100*f+"px":100*(parseFloat(m)/f)+"%");m=o.join(" ")}return this.parseComplex(t.style,m,g,n,a)},formatter:re}),ve("backgroundSize",{defaultValue:"0 0",formatter:re}),ve("perspective",{defaultValue:"0px",prefix:!0}),ve("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),ve("transformStyle",{prefix:!0}),ve("backfaceVisibility",{prefix:!0}),ve("userSelect",{prefix:!0}),ve("margin",{parser:pe("marginTop,marginRight,marginBottom,marginLeft")}),ve("padding",{parser:pe("paddingTop,paddingRight,paddingBottom,paddingLeft")}),ve("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,a){var o,l,h;return 9>d?(l=t.currentStyle,h=8>d?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(Q(t,this.p,s,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,n,a)}}),ve("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),ve("autoRound,strictUnits",{parser:function(t,e,i,r,s){return s}}),ve("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,n,a){return this.parseComplex(t.style,this.format(Q(t,"borderTopWidth",s,!1,"0px")+" "+Q(t,"borderTopStyle",s,!1,"solid")+" "+Q(t,"borderTopColor",s,!1,"#000")),this.format(e),n,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(ue)||["#000"])[0]}}),ve("borderWidth",{parser:pe("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),ve("float,cssFloat,styleFloat",{parser:function(t,e,i,r,s){var n=t.style,a="cssFloat"in n?"cssFloat":"styleFloat";return new _e(n,a,0,0,s,-1,i,!1,0,n[a],e)}});var ze=function(t){var e,i=this.t,r=i.filter||Q(this.data,"filter")||"",s=0|this.s+this.c*t;100===s&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),e=!Q(this.data,"filter")):(i.filter=r.replace(b,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+s+")"),-1===r.indexOf("pacity")?0===s&&this.xn1||(i.filter=r+" alpha(opacity="+s+")"):i.filter=r.replace(T,"opacity="+s))};ve("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,n,a){var o=parseFloat(Q(t,"opacity",s,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),h&&1===o&&"hidden"===Q(t,"visibility",s)&&0!==e&&(o=0),U?n=new _e(l,"opacity",o,e-o,n):(n=new _e(l,"opacity",100*o,100*(e-o),n),n.xn1=h?1:0,l.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setRatio=ze),h&&(n=new _e(l,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),n.xs0="inherit",r._overwriteProps.push(n.n),r._overwriteProps.push(i)),n}});var Fe=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(S,"-$1").toLowerCase())):t.removeAttribute(e))},Ie=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Fe(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};ve("className",{parser:function(t,e,r,n,a,o,l){var h,u,f,p,c,_=t.getAttribute("class")||"",d=t.style.cssText;if(a=n._classNamePT=new _e(t,r,0,0,a,2),a.setRatio=Ie,a.pr=-11,i=!0,a.b=_,u=K(t,s),f=t._gsClassPT){for(p={},c=f.data;c;)p[c.p]=1,c=c._next;f.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:_.replace(RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),n._tween._duration&&(t.setAttribute("class",a.e),h=J(t,u,K(t),l,p),t.setAttribute("class",_),a.data=h.firstMPT,t.style.cssText=d,a=a.xfirst=n.parse(t,h.difs,a,o)),a}});var Ee=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,s,n=this.t.style,a=l.transform.parse;if("all"===this.e)n.cssText="",s=!0;else for(e=this.e.split(" ").join("").split(","),r=e.length;--r>-1;)i=e[r],l[i]&&(l[i].parse===a?s=!0:i="transformOrigin"===i?Pe:l[i].p),Fe(n,i);s&&(Fe(n,we),this.t._gsTransform&&delete this.t._gsTransform)}};for(ve("clearProps",{parser:function(t,e,r,s,n){return n=new _e(t,r,0,0,n,2),n.setRatio=Ee,n.e=e,n.pr=-10,n.data=s._tween,i=!0,n}}),h="bezier,throwProps,physicsProps,physics2D".split(","),me=h.length;me--;)ye(h[me]);h=a.prototype,h._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(t,e,o){if(!t.nodeType)return!1;this._target=t,this._tween=o,this._vars=e,u=e.autoRound,i=!1,r=e.suffixMap||a.suffixMap,s=H(t,""),n=this._overwriteProps;var l,h,c,d,m,g,v,y,x,T=t.style;if(f&&""===T.zIndex&&(l=Q(t,"zIndex",s),("auto"===l||""===l)&&this._addLazySet(T,"zIndex",0)),"string"==typeof e&&(d=T.cssText,l=K(t,s),T.cssText=d+";"+e,l=J(t,l,K(t)).difs,!U&&w.test(e)&&(l.opacity=parseFloat(RegExp.$1)),e=l,T.cssText=d),this._firstPT=h=this.parse(t,e,null),this._transformType){for(x=3===this._transformType,we?p&&(f=!0,""===T.zIndex&&(v=Q(t,"zIndex",s),("auto"===v||""===v)&&this._addLazySet(T,"zIndex",0)),_&&this._addLazySet(T,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(x?"visible":"hidden"))):T.zoom=1,c=h;c&&c._next;)c=c._next;y=new _e(t,"transform",0,0,null,2),this._linkCSSP(y,null,c),y.setRatio=x&&Se?Le:we?Xe:Ne,y.data=this._transform||Me(t,s,!0),y.tween=o,n.pop()}if(i){for(;h;){for(g=h._next,c=d;c&&c.pr>h.pr;)c=c._next;(h._prev=c?c._prev:m)?h._prev._next=h:d=h,(h._next=c)?c._prev=h:m=h,h=g}this._firstPT=d}return!0},h.parse=function(t,e,i,n){var a,o,h,f,p,c,_,d,m,g,v=t.style; for(a in e)c=e[a],o=l[a],o?i=o.parse(t,c,a,this,i,n,e):(p=Q(t,a,s)+"",m="string"==typeof c,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||m&&P.test(c)?(m||(c=he(c),c=(c.length>3?"rgba(":"rgb(")+c.join(",")+")"),i=de(v,a,p,c,!0,"transparent",i,0,n)):!m||-1===c.indexOf(" ")&&-1===c.indexOf(",")?(h=parseFloat(p),_=h||0===h?p.substr((h+"").length):"",(""===p||"auto"===p)&&("width"===a||"height"===a?(h=ie(t,a,s),_="px"):"left"===a||"top"===a?(h=$(t,a,s),_="px"):(h="opacity"!==a?0:1,_="")),g=m&&"="===c.charAt(1),g?(f=parseInt(c.charAt(0)+"1",10),c=c.substr(2),f*=parseFloat(c),d=c.replace(x,"")):(f=parseFloat(c),d=m?c.replace(x,""):""),""===d&&(d=a in r?r[a]:_),c=f||0===f?(g?f+h:f)+d:e[a],_!==d&&""!==d&&(f||0===f)&&h&&(h=Z(t,a,h,_),"%"===d?(h/=Z(t,a,100,"%")/100,e.strictUnits!==!0&&(p=h+"%")):"em"===d?h/=Z(t,a,1,"em"):"px"!==d&&(f=Z(t,a,f,d),d="px"),g&&(f||0===f)&&(c=f+h+d)),g&&(f+=h),!h&&0!==h||!f&&0!==f?void 0!==v[a]&&(c||"NaN"!=c+""&&null!=c)?(i=new _e(v,a,f||h||0,0,i,-1,a,!1,0,p,c),i.xs0="none"!==c||"display"!==a&&-1===a.indexOf("Style")?c:p):V("invalid "+a+" tween value: "+e[a]):(i=new _e(v,a,h,f-h,i,0,a,u!==!1&&("px"===d||"zIndex"===a),0,p,c),i.xs0=d)):i=de(v,a,p,c,!0,null,i,0,n)),n&&i&&!i.plugin&&(i.plugin=n);return i},h.setRatio=function(t){var e,i,r,s=this._firstPT,n=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;s;){if(e=s.c*t+s.s,s.r?e=Math.round(e):n>e&&e>-n&&(e=0),s.type)if(1===s.type)if(r=s.l,2===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(i=s.xs0+e+s.xs1,r=1;s.l>r;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}else-1===s.type?s.t[s.p]=s.xs0:s.setRatio&&s.setRatio(t);else s.t[s.p]=e+s.xs0;s=s._next}else for(;s;)2!==s.type?s.t[s.p]=s.b:s.setRatio(t),s=s._next;else for(;s;)2!==s.type?s.t[s.p]=s.e:s.setRatio(t),s=s._next},h._enableTransforms=function(t){this._transform=this._transform||Me(this._target,s,!0),this._transformType=this._transform.svg&&xe||!t&&3!==this._transformType?2:3};var Ye=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};h._addLazySet=function(t,e,i){var r=this._firstPT=new _e(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=Ye,r.data=this},h._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},h._kill=function(e){var i,r,s,n=e;if(e.autoAlpha||e.alpha){n={};for(r in e)n[r]=e[r];n.opacity=1,n.autoAlpha&&(n.visibility=1)}return e.className&&(i=this._classNamePT)&&(s=i.xfirst,s&&s._prev?this._linkCSSP(s._prev,i._next,s._prev._prev):s===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,s._prev),this._classNamePT=null),t.prototype._kill.call(this,n)};var Be=function(t,e,i){var r,s,n,a;if(t.slice)for(s=t.length;--s>-1;)Be(t[s],e,i);else for(r=t.childNodes,s=r.length;--s>-1;)n=r[s],a=n.type,n.style&&(e.push(K(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childNodes.length||Be(n,e,i)};return a.cascadeTo=function(t,i,r){var s,n,a,o,l=e.to(t,i,r),h=[l],u=[],f=[],p=[],c=e._internals.reservedProps;for(t=l._targets||l.target,Be(t,u,p),l.render(i,!0,!0),Be(t,f),l.render(0,!0,!0),l._enabled(!0),s=p.length;--s>-1;)if(n=J(p[s],u[s],f[s]),n.firstMPT){n=n.difs;for(a in r)c[a]&&(n[a]=r[a]);o={};for(a in n)o[a]=u[s][a];h.push(e.fromTo(p[s],i,o,n))}return h},t.activate([a]),a},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("CSSPlugin"); /*! * VERSION: beta 0.3.3 * DATE: 2014-10-29 * UPDATES AND DOCS AT: http://greensock.com * * @license Copyright (c) 2008-2015, GreenSock. All rights reserved. * SplitText is a Club GreenSock membership benefit; You must have a valid membership to use * this code without violating the terms of use. Visit http://www.greensock.com/club/ to sign up or get more details. * This work is subject to the software agreement that was issued with your membership. * * @author: Jack Doyle, jack@greensock.com */ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(function(t){"use strict";var e=t.GreenSockGlobals||t,i=function(t){var i,s=t.split("."),r=e;for(i=0;s.length>i;i++)r[s[i]]=r=r[s[i]]||{};return r},s=i("com.greensock.utils"),r=function(t){var e=t.nodeType,i="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===e||4===e)return t.nodeValue;return i},n=document,a=n.defaultView?n.defaultView.getComputedStyle:function(){},o=/([A-Z])/g,h=function(t,e,i,s){var r;return(i=i||a(t,null))?(t=i.getPropertyValue(e.replace(o,"-$1").toLowerCase()),r=t||i.length?t:i[e]):t.currentStyle&&(i=t.currentStyle,r=i[e]),s?r:parseInt(r,10)||0},l=function(t){return t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0])?!0:!1},_=function(t){var e,i,s,r=[],n=t.length;for(e=0;n>e;e++)if(i=t[e],l(i))for(s=i.length,s=0;i.length>s;s++)r.push(i[s]);else r.push(i);return r},u=")eefec303079ad17405c",c=/(?:
||
)/gi,p=n.all&&!n.addEventListener,f="
":">")}},d=s.SplitText=e.SplitText=function(t,e){if("string"==typeof t&&(t=d.selector(t)),!t)throw"cannot split a null element.";this.elements=l(t)?_(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},g=function(t,e,i){var s=t.nodeType;if(1===s||9===s||11===s)for(t=t.firstChild;t;t=t.nextSibling)g(t,e,i);else(3===s||4===s)&&(t.nodeValue=t.nodeValue.split(e).join(i))},v=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},y=function(t,e,i,s,o){c.test(t.innerHTML)&&(t.innerHTML=t.innerHTML.replace(c,u));var l,_,p,f,d,y,T,w,x,b,P,S,C,k,R=r(t),A=e.type||e.split||"chars,words,lines",O=-1!==A.indexOf("lines")?[]:null,D=-1!==A.indexOf("words"),M=-1!==A.indexOf("chars"),L="absolute"===e.position||e.absolute===!0,z=L?"­ ":" ",I=-999,E=a(t),N=h(t,"paddingLeft",E),F=h(t,"borderBottomWidth",E)+h(t,"borderTopWidth",E),X=h(t,"borderLeftWidth",E)+h(t,"borderRightWidth",E),U=h(t,"paddingTop",E)+h(t,"paddingBottom",E),B=h(t,"paddingLeft",E)+h(t,"paddingRight",E),j=h(t,"textAlign",E,!0),Y=t.clientHeight,q=t.clientWidth,V="
",G=m(e.wordsClass),Q=m(e.charsClass),W=-1!==(e.linesClass||"").indexOf("++"),Z=e.linesClass,H=-1!==R.indexOf("<"),$=!0,K=[],J=[],te=[];for(W&&(Z=Z.split("++").join("")),H&&(R=R.split("<").join("{{LT}}")),l=R.length,f=G(),d=0;l>d;d++)if(T=R.charAt(d),")"===T&&R.substr(d,20)===u)f+=($?V:"")+"
",$=!1,d!==l-20&&R.substr(d+20,20)!==u&&(f+=" "+G(),$=!0),d+=19;else if(" "===T&&" "!==R.charAt(d-1)&&d!==l-1&&R.substr(d-20,20)!==u){for(f+=$?V:"",$=!1;" "===R.charAt(d+1);)f+=z,d++;(")"!==R.charAt(d+1)||R.substr(d+1,20)!==u)&&(f+=z+G(),$=!0)}else f+=M&&" "!==T?Q()+T+"
":T;for(t.innerHTML=f+($?V:""),H&&g(t,"{{LT}}","<"),y=t.getElementsByTagName("*"),l=y.length,w=[],d=0;l>d;d++)w[d]=y[d];if(O||L)for(d=0;l>d;d++)x=w[d],p=x.parentNode===t,(p||L||M&&!D)&&(b=x.offsetTop,O&&p&&b!==I&&"BR"!==x.nodeName&&(_=[],O.push(_),I=b),L&&(x._x=x.offsetLeft,x._y=b,x._w=x.offsetWidth,x._h=x.offsetHeight),O&&(D!==p&&M||(_.push(x),x._x-=N),p&&d&&(w[d-1]._wordEnd=!0),"BR"===x.nodeName&&x.nextSibling&&"BR"===x.nextSibling.nodeName&&O.push([])));for(d=0;l>d;d++)x=w[d],p=x.parentNode===t,"BR"!==x.nodeName?(L&&(S=x.style,D||p||(x._x+=x.parentNode._x,x._y+=x.parentNode._y),S.left=x._x+"px",S.top=x._y+"px",S.position="absolute",S.display="block",S.width=x._w+1+"px",S.height=x._h+"px"),D?p&&""!==x.innerHTML?J.push(x):M&&K.push(x):p?(t.removeChild(x),w.splice(d--,1),l--):!p&&M&&(b=!O&&!L&&x.nextSibling,t.appendChild(x),b||t.appendChild(n.createTextNode(" ")),K.push(x))):O||L?(t.removeChild(x),w.splice(d--,1),l--):D||t.appendChild(x);if(O){for(L&&(P=n.createElement("div"),t.appendChild(P),C=P.offsetWidth+"px",b=P.offsetParent===t?0:t.offsetLeft,t.removeChild(P)),S=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(k=!L||!D&&!M,d=0;O.length>d;d++){for(_=O[d],P=n.createElement("div"),P.style.cssText="display:block;text-align:"+j+";position:"+(L?"absolute;":"relative;"),Z&&(P.className=Z+(W?d+1:"")),te.push(P),l=_.length,y=0;l>y;y++)"BR"!==_[y].nodeName&&(x=_[y],P.appendChild(x),k&&(x._wordEnd||D)&&P.appendChild(n.createTextNode(" ")),L&&(0===y&&(P.style.top=x._y+"px",P.style.left=N+b+"px"),x.style.top="0px",b&&(x.style.left=x._x-b+"px")));0===l&&(P.innerHTML=" "),D||M||(P.innerHTML=r(P).split(String.fromCharCode(160)).join(" ")),L&&(P.style.width=C,P.style.height=x._h+"px"),t.appendChild(P)}t.style.cssText=S}L&&(Y>t.clientHeight&&(t.style.height=Y-U+"px",Y>t.clientHeight&&(t.style.height=Y+F+"px")),q>t.clientWidth&&(t.style.width=q-B+"px",q>t.clientWidth&&(t.style.width=q+X+"px"))),v(i,K),v(s,J),v(o,te)},T=d.prototype;T.split=function(t){this.isSplit&&this.revert(),this.vars=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e=this.elements.length;--e>-1;)this._originals[e]=this.elements[e].innerHTML,y(this.elements[e],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},T.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;--t>-1;)this.elements[t].innerHTML=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},d.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(d.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)},d.version="0.3.3"})(_gsScope),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(module.exports=e())}("SplitText"); try{ window.GreenSockGlobals = null; window._gsQueue = null; window._gsDefine = null; delete(window.GreenSockGlobals); delete(window._gsQueue); delete(window._gsDefine); } catch(e) {} try{ window.GreenSockGlobals = oldgs; window._gsQueue = oldgs_queue; } catch(e) {} if (window.tplogs==true) try { console.groupEnd(); } catch(e) {} (function(e,t){ e.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};e.expr[":"].uncached=function(t){var n=document.createElement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitForImages=function(t,n,r){if(e.isPlainObject(arguments[0])){n=t.each;r=t.waitForAll;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isFunction(t)||!e.isFunction(n)){throw new TypeError("An invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitForImages.hasImageProperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return true}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new Image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return false}});o.src=s.src})})}; })(jQuery); // source --> http://www.caddetesisat.com/wp-content/plugins/revslider/rs-plugin/js/jquery.themepunch.revolution.min.js?ver=4.6.93 /************************************************************************** * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider * @version: 4.6.8 (27.02.2015) * @requires jQuery v1.7 or later (tested on 1.9) * @author ThemePunch **************************************************************************/ function revslider_showDoubleJqueryError(t){var e="Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.";e+="
This includes make eliminates the revolution slider libraries, and make it not work.",e+="

To fix it you can:
    1. In the Slider Settings -> Troubleshooting set option: Put JS Includes To Body option to true.",e+="
    2. Find the double jquery.js include and remove it.",e=""+e+"",jQuery(t).show().html(e)}!function(t,e){function a(){var t=!1;return navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)?navigator.userAgent.match(/OS 4_\d like Mac OS X/i)&&(t=!0):t=!1,t}function i(i,d){if(i==e)return!1;if(i.data("aimg")!=e&&("enabled"==i.data("aie8")&&s(8)||"enabled"==i.data("amobile")&&Z())&&i.html(''),("preview1"==d.navigationStyle||"preview3"==d.navigationStyle||"preview4"==d.navigationStyle)&&(d.soloArrowLeftHalign="left",d.soloArrowLeftValign="center",d.soloArrowLeftHOffset=0,d.soloArrowLeftVOffset=0,d.soloArrowRightHalign="right",d.soloArrowRightValign="center",d.soloArrowRightHOffset=0,d.soloArrowRightVOffset=0,d.navigationArrows="solo"),"on"==d.simplifyAll&&(s(8)||a())&&(i.find(".tp-caption").each(function(){var e=t(this);e.removeClass("customin").removeClass("customout").addClass("fadein").addClass("fadeout"),e.data("splitin",""),e.data("speed",400)}),i.find(">ul>li").each(function(){var e=t(this);e.data("transition","fade"),e.data("masterspeed",500),e.data("slotamount",1);var a=e.find(">img").first();a.data("kenburns","off")})),d.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),"on"!=d.fullWidth&&"on"!=d.fullScreen&&(d.autoHeight="off"),"on"==d.fullScreen&&(d.autoHeight="on"),"on"!=d.fullWidth&&"on"!=d.fullScreen&&(forceFulWidth="off"),"on"==d.fullWidth&&"off"==d.autoHeight&&i.css({maxHeight:d.startheight+"px"}),Z()&&"on"==d.hideThumbsOnMobile&&"thumb"==d.navigationType&&(d.navigationType="none"),Z()&&"on"==d.hideBulletsOnMobile&&"bullet"==d.navigationType&&(d.navigationType="none"),Z()&&"on"==d.hideBulletsOnMobile&&"both"==d.navigationType&&(d.navigationType="none"),Z()&&"on"==d.hideArrowsOnMobile&&(d.navigationArrows="none"),"on"==d.forceFullWidth&&0==i.closest(".forcefullwidth_wrapper_tp_banner").length){var f=i.parent().offset().left,g=i.parent().css("marginBottom"),m=i.parent().css("marginTop");g==e&&(g=0),m==e&&(m=0),i.parent().wrap('
'),i.closest(".forcefullwidth_wrapper_tp_banner").append('
'),i.css({backgroundColor:i.parent().css("backgroundColor"),backgroundImage:i.parent().css("backgroundImage")}),i.parent().css({left:0-f+"px",position:"absolute",width:t(window).width()}),d.width=t(window).width()}try{i.parent().find(".tp-bullets.tp-thumbs").css(d.hideThumbsUnderResolution>t(window).width()&&0!=d.hideThumbsUnderResolution?{display:"none"}:{display:"block"})}catch(w){}if(!i.hasClass("revslider-initialised")){i.addClass("revslider-initialised"),i.attr("id")==e&&i.attr("id","revslider-"+Math.round(1e3*Math.random()+5)),d.firefox13=!1,d.ie=!t.support.opacity,d.ie9=9==document.documentMode,d.origcd=d.delay;{var b=t.fn.jquery.split("."),y=parseFloat(b[0]),x=parseFloat(b[1]);parseFloat(b[2]||"0")}1==y&&7>x&&i.html('
The Current Version of jQuery:'+b+"
Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin
"),y>1&&(d.ie=!1),t.support.transition||(t.fn.transition=t.fn.animate),i.find(".caption").each(function(){t(this).addClass("tp-caption")}),Z()&&i.find(".tp-caption").each(function(){var e=t(this);(1==e.data("autoplayonlyfirsttime")||"true"==e.data("autoplayonlyfirsttime"))&&e.data("autoplayonlyfirsttime","false"),(1==e.data("autoplay")||"true"==e.data("autoplay"))&&e.data("autoplay",!1)});var T=0,k=0,C="http";if("https:"===location.protocol&&(C="https"),i.find(".tp-caption").each(function(){try{if((t(this).data("ytid")!=e||t(this).find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&0==T){T=1;var a=document.createElement("script"),i="https";a.src=i+"://www.youtube.com/iframe_api";var n=document.getElementsByTagName("script")[0],o=!0;t("head").find("*").each(function(){t(this).attr("src")==i+"://www.youtube.com/iframe_api"&&(o=!1)}),o&&n.parentNode.insertBefore(a,n)}}catch(r){}try{if((t(this).data("vimeoid")!=e||t(this).find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&0==k){k=1;var s=document.createElement("script");s.src=C+"://a.vimeocdn.com/js/froogaloop2.min.js";var n=document.getElementsByTagName("script")[0],o=!0;t("head").find("*").each(function(){t(this).attr("src")==C+"://a.vimeocdn.com/js/froogaloop2.min.js"&&(o=!1)}),o&&n.parentNode.insertBefore(s,n)}}catch(r){}try{t(this).data("videomp4")!=e||t(this).data("videowebm")!=e}catch(r){}}),i.find(".tp-caption video").each(function(){t(this).removeClass("video-js").removeClass("vjs-default-skin"),t(this).attr("preload",""),t(this).css({display:"none"})}),i.find(">ul:first-child >li").each(function(){var e=t(this);e.data("origindex",e.index())}),"on"==d.shuffle){var z=new Object,O=i.find(">ul:first-child >li:first-child");z.fstransition=O.data("fstransition"),z.fsmasterspeed=O.data("fsmasterspeed"),z.fsslotamount=O.data("fsslotamount");for(var I=0;Iul:first-child >li").length;I++){var A=Math.round(Math.random()*i.find(">ul:first-child >li").length);i.find(">ul:first-child >li:eq("+A+")").prependTo(i.find(">ul:first-child"))}var M=i.find(">ul:first-child >li:first-child");M.data("fstransition",z.fstransition),M.data("fsmasterspeed",z.fsmasterspeed),M.data("fsslotamount",z.fsslotamount)}d.slots=4,d.act=-1,d.next=0,d.startWithSlide!=e&&(d.next=d.startWithSlide);var S=o("#")[0];if(S.length<9&&S.split("slide").length>1){var P=parseInt(S.split("slide")[1],0);1>P&&(P=1),P>i.find(">ul:first >li").length&&(P=i.find(">ul:first >li").length),d.next=P-1}d.firststart=1,d.navigationHOffset==e&&(d.navOffsetHorizontal=0),d.navigationVOffset==e&&(d.navOffsetVertical=0),i.append('
'),0==i.find(".tp-bannertimer").length&&i.append('');var D=i.find(".tp-bannertimer");if(D.length>0&&D.css({width:"0%"}),i.addClass("tp-simpleresponsive"),d.container=i,d.slideamount=i.find(">ul:first >li").length,0==i.height()&&i.height(d.startheight),(d.startwidth==e||0==d.startwidth)&&(d.startwidth=i.width()),(d.startheight==e||0==d.startheight)&&(d.startheight=i.height()),d.width=i.width(),d.height=i.height(),d.bw=d.startwidth/i.width(),d.bh=d.startheight/i.height(),d.width!=d.startwidth&&(d.height=Math.round(d.startheight*(d.width/d.startwidth)),i.height(d.height)),0!=d.shadow){i.parent().append('
');var f=0;"on"==d.forceFullWidth&&(f=0-d.container.parent().offset().left),i.parent().find(".tp-bannershadow").css({width:d.width,left:f})}i.find("ul").css({display:"none"});i.find("ul").css({display:"block"}),v(i,d),"off"!=d.parallax&&Q(i,d),d.slideamount>1&&l(i,d),d.slideamount>1&&"thumb"==d.navigationType&&te(i,d),d.slideamount>1&&h(i,d),"on"==d.keyboardNavigation&&c(i,d),p(i,d),d.hideThumbs>0&&u(i,d),setTimeout(function(){L(i,d)},d.startDelay),d.startDelay=0,d.slideamount>1&&j(i,d),setTimeout(function(){i.trigger("revolution.slide.onloaded")},500),t("body").data("rs-fullScreenMode",!1),t(window).on("mozfullscreenchange webkitfullscreenchange fullscreenchange",function(){t("body").data("rs-fullScreenMode",!t("body").data("rs-fullScreenMode")),t("body").data("rs-fullScreenMode")&&setTimeout(function(){t(window).trigger("resize")},200)});var H="resize.revslider-"+i.attr("id");t(window).on(H,function(){if(i==e)return!1;if(0!=t("body").find(i)&&"on"==d.forceFullWidth){var a=d.container.closest(".forcefullwidth_wrapper_tp_banner").offset().left;d.container.parent().css({left:0-a+"px",width:t(window).width()})}(i.outerWidth(!0)!=d.width||i.is(":hidden"))&&r(i,d)});try{0!=d.hideThumbsUnderResoluition&&"thumb"==d.navigationType&&t(".tp-bullets").css(d.hideThumbsUnderResoluition>t(window).width()?{display:"none"}:{display:"block"})}catch(w){}i.find(".tp-scrollbelowslider").on("click",function(){var e=0;try{e=t("body").find(d.fullScreenOffsetContainer).height()}catch(a){}try{e-=parseInt(t(this).data("scrolloffset"),0)}catch(a){}t("body,html").animate({scrollTop:i.offset().top+i.find(">ul >li").height()-e+"px"},{duration:400})});var W=i.parent();t(window).width()0&&t("body").find("#"+i.attr("id")).length>0&&t("body,html").animate({scrollTop:i.offset().top+i.find(">ul >li").height()-a+"px"},{duration:400})})},revredraw:function(){return this.each(function(){var a=t(this);if(a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0){var i=a.parent().find(".tp-bannertimer"),n=i.data("opt");r(a,n)}})},revkill:function(){var a=this,i=t(this);if(i!=e&&i.length>0&&t("body").find("#"+i.attr("id")).length>0){i.data("conthover",1),i.data("conthover-changed",1),i.trigger("revolution.slide.onpause");var n=i.parent().find(".tp-bannertimer"),o=n.data("opt");o.bannertimeronpause=!0,i.trigger("stoptimer"),punchgs.TweenLite.killTweensOf(i.find("*"),!1),punchgs.TweenLite.killTweensOf(i,!1),i.unbind("hover, mouseover, mouseenter,mouseleave, resize");var r="resize.revslider-"+i.attr("id");t(window).off(r),i.find("*").each(function(){var a=t(this);a.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"),a.off("on, hover, mouseenter,mouseleave,mouseover, resize"),a.data("mySplitText",null),a.data("ctl",null),a.data("tween")!=e&&a.data("tween").kill(),a.data("kenburn")!=e&&a.data("kenburn").kill(),a.remove(),a.empty(),a=null}),punchgs.TweenLite.killTweensOf(i.find("*"),!1),punchgs.TweenLite.killTweensOf(i,!1),n.remove();try{i.closest(".forcefullwidth_wrapper_tp_banner").remove()}catch(s){}try{i.closest(".rev_slider_wrapper").remove()}catch(s){}try{i.remove()}catch(s){}return i.empty(),i.html(),i=null,o=null,delete a.container,delete a.opt,!0}return!1},revpause:function(){return this.each(function(){var a=t(this);if(a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0){a.data("conthover",1),a.data("conthover-changed",1),a.trigger("revolution.slide.onpause");var i=a.parent().find(".tp-bannertimer"),n=i.data("opt");n.bannertimeronpause=!0,a.trigger("stoptimer")}})},revresume:function(){return this.each(function(){var a=t(this);if(a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0){a.data("conthover",0),a.data("conthover-changed",1),a.trigger("revolution.slide.onresume");var i=a.parent().find(".tp-bannertimer"),n=i.data("opt");n.bannertimeronpause=!1,a.trigger("starttimer")}})},revnext:function(){return this.each(function(){var a=t(this);a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0&&a.parent().find(".tp-rightarrow").click()})},revprev:function(){return this.each(function(){var a=t(this);a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0&&a.parent().find(".tp-leftarrow").click()})},revmaxslide:function(){return t(this).find(">ul:first-child >li").length},revcurrentslide:function(){var a=t(this);if(a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0){var i=a.parent().find(".tp-bannertimer"),n=i.data("opt");return n.act}},revlastslide:function(){var a=t(this);if(a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0){var i=a.parent().find(".tp-bannertimer"),n=i.data("opt");return n.lastslide}},revshowslide:function(a){return this.each(function(){var i=t(this);i!=e&&i.length>0&&t("body").find("#"+i.attr("id")).length>0&&(i.data("showus",a),i.parent().find(".tp-rightarrow").click())})}});var n=(function(){var t,e,a={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(t in a)if(t in document){e=a[t];break}return function(a){return a&&document.addEventListener(e,a),!document[t]}}(),function(a,i){var n=document.documentMode===e,o=window.chrome;n&&!o?t(window).on("focusin",function(){return a==e?!1:void setTimeout(function(){"on"==i.nextSlideOnWindowFocus&&a.revnext(),a.revredraw()},300)}).on("focusout",function(){}):window.addEventListener?(window.addEventListener("focus",function(){return a==e?!1:void setTimeout(function(){"on"==i.nextSlideOnWindowFocus&&a.revnext(),a.revredraw()},300)},!1),window.addEventListener("blur",function(){},!1)):(window.attachEvent("focus",function(){setTimeout(function(){return a==e?!1:("on"==i.nextSlideOnWindowFocus&&a.revnext(),void a.revredraw())},300)}),window.attachEvent("blur",function(){}))}),o=function(t){for(var e,a=[],i=window.location.href.slice(window.location.href.indexOf(t)+1).split("_"),n=0;nt(window).width()?{display:"none"}:{display:"block"})}catch(n){}a.find(".defaultimg").each(function(){m(t(this),i)});var o=a.parent();t(window).width()ul >li:eq("+i.act+") .slotholder"),l=a.find(">ul >li:eq("+i.next+") .slotholder");y(a,i,a),punchgs.TweenLite.set(l.find(".defaultimg"),{opacity:0}),d.find(".defaultimg").css({opacity:1}),l.find(".defaultimg").each(function(){var n=t(this);"on"==i.panZoomDisableOnMobile||n.data("kenburn")!=e&&(n.data("kenburn").restart(),N(a,i,!0))});var h=a.find(">ul >li:eq("+i.next+")"),c=a.parent().find(".tparrows");c.hasClass("preview2")&&c.css({width:parseInt(c.css("minWidth"),0)}),_(h,i,!0),f(a,i)},s=function(e,a){var i=t('
').appendTo(t("body"));i.html("");var n=i.find("a").length;return i.remove(),n},d=function(t,e){t.next==e.find(">ul >li").length-1&&(t.looptogo=t.looptogo-1,t.looptogo<=0&&(t.stopLoop="on")),L(e,t)},l=function(e,a){var i="hidebullets";0==a.hideThumbs&&(i=""),("bullet"==a.navigationType||"both"==a.navigationType)&&e.parent().append('
');var n=e.parent().find(".tp-bullets");e.find(">ul:first >li").each(function(t){e.find(">ul:first >li:eq("+t+") img:first").attr("src");n.append('
');n.find(".bullet:first")}),n.find(".bullet").each(function(i){var n=t(this);i==a.slideamount-1&&n.addClass("last"),0==i&&n.addClass("first"),n.click(function(){var t=!1,i=n.index();("withbullet"==a.navigationArrows||"nexttobullets"==a.navigationArrows)&&(i=n.index()-1),i==a.act&&(t=!0),0!=a.transition||t||(a.next=i,d(a,e))})}),n.append('
'),f(e,a)},h=function(t,a){function i(e){t.parent().append('
')}var n=(t.find(".tp-bullets"),""),o="hidearrows",r=a.navigationStyle;0==a.hideThumbs&&(o=""),"none"==a.navigationArrows&&(n="visibility:hidden;display:none"),a.soloArrowStyle="default "+a.navigationStyle,"none"!=a.navigationArrows&&"nexttobullets"!=a.navigationArrows&&(r=a.soloArrowStyle),i("left"),i("right"),t.parent().find(".tp-rightarrow").click(function(){0==a.transition&&(a.next=t.data("showus")!=e&&-1!=t.data("showus")?t.data("showus")-1:a.next+1,t.data("showus",-1),a.next>=a.slideamount&&(a.next=0),a.next<0&&(a.next=0),a.act!=a.next&&d(a,t))}),t.parent().find(".tp-leftarrow").click(function(){0==a.transition&&(a.next=a.next-1,a.leftarrowpressed=1,a.next<0&&(a.next=a.slideamount-1),d(a,t))}),f(t,a)},c=function(a,i){t(document).keydown(function(t){0==i.transition&&39==t.keyCode&&(i.next=a.data("showus")!=e&&-1!=a.data("showus")?a.data("showus")-1:i.next+1,a.data("showus",-1),i.next>=i.slideamount&&(i.next=0),i.next<0&&(i.next=0),i.act!=i.next&&d(i,a)),0==i.transition&&37==t.keyCode&&(i.next=i.next-1,i.leftarrowpressed=1,i.next<0&&(i.next=i.slideamount-1),d(i,a))}),f(a,i)},p=function(e,a){var i="vertical";"on"==a.touchenabled&&(1==a.drag_block_vertical&&(i="none"),e.swipe({allowPageScroll:i,fingers:a.swipe_min_touches,treshold:a.swipe_treshold,swipe:function(n,o){switch(o){case"left":0==a.transition&&(a.next=a.next+1,a.next==a.slideamount&&(a.next=0),d(a,e));break;case"right":0==a.transition&&(a.next=a.next-1,a.leftarrowpressed=1,a.next<0&&(a.next=a.slideamount-1),d(a,e));break;case"up":"none"==i&&t("html, body").animate({scrollTop:e.offset().top+e.height()+"px"});break;case"down":"none"==i&&t("html, body").animate({scrollTop:e.offset().top-t(window).height()+"px"})}}}))},u=function(t,e){var a=t.parent().find(".tp-bullets"),i=t.parent().find(".tparrows");if(null==a){t.append('
');var a=t.parent().find(".tp-bullets")}if(null==i){t.append('
');var i=t.parent().find(".tparrows")}if(t.data("hideThumbs",e.hideThumbs),a.addClass("hidebullets"),i.addClass("hidearrows"),Z())try{t.hammer().on("touch",function(){t.addClass("hovered"),"on"==e.onHoverStop&&t.trigger("stoptimer"),clearTimeout(t.data("hideThumbs")),a.removeClass("hidebullets"),i.removeClass("hidearrows")}),t.hammer().on("release",function(){t.removeClass("hovered"),t.trigger("starttimer"),t.hasClass("hovered")||a.hasClass("hovered")||t.data("hideThumbs",setTimeout(function(){a.addClass("hidebullets"),i.addClass("hidearrows"),t.trigger("starttimer")},e.hideNavDelayOnMobile))})}catch(n){}else a.hover(function(){e.overnav=!0,"on"==e.onHoverStop&&t.trigger("stoptimer"),a.addClass("hovered"),clearTimeout(t.data("hideThumbs")),a.removeClass("hidebullets"),i.removeClass("hidearrows")},function(){e.overnav=!1,t.trigger("starttimer"),a.removeClass("hovered"),t.hasClass("hovered")||a.hasClass("hovered")||t.data("hideThumbs",setTimeout(function(){a.addClass("hidebullets"),i.addClass("hidearrows")},e.hideThumbs))}),i.hover(function(){e.overnav=!0,"on"==e.onHoverStop&&t.trigger("stoptimer"),a.addClass("hovered"),clearTimeout(t.data("hideThumbs")),a.removeClass("hidebullets"),i.removeClass("hidearrows")},function(){e.overnav=!1,t.trigger("starttimer"),a.removeClass("hovered")}),t.on("mouseenter",function(){t.addClass("hovered"),"on"==e.onHoverStop&&t.trigger("stoptimer"),clearTimeout(t.data("hideThumbs")),a.removeClass("hidebullets"),i.removeClass("hidearrows")}),t.on("mouseleave",function(){t.removeClass("hovered"),t.trigger("starttimer"),t.hasClass("hovered")||a.hasClass("hovered")||t.data("hideThumbs",setTimeout(function(){a.addClass("hidebullets"),i.addClass("hidearrows")},e.hideThumbs))})},f=function(e,a){var i=e.parent(),n=i.find(".tp-bullets");if("thumb"==a.navigationType){n.find(".thumb").each(function(){var e=t(this);e.css({width:a.thumbWidth*a.bw+"px",height:a.thumbHeight*a.bh+"px"})});var o=n.find(".tp-mask");o.width(a.thumbWidth*a.thumbAmount*a.bw),o.height(a.thumbHeight*a.bh),o.parent().width(a.thumbWidth*a.thumbAmount*a.bw),o.parent().height(a.thumbHeight*a.bh)}var r=i.find(".tp-leftarrow"),s=i.find(".tp-rightarrow");"thumb"==a.navigationType&&"nexttobullets"==a.navigationArrows&&(a.navigationArrows="solo"),"nexttobullets"==a.navigationArrows&&(r.prependTo(n).css({"float":"left"}),s.insertBefore(n.find(".tpclear")).css({"float":"left"}));var d=0;"on"==a.forceFullWidth&&(d=0-a.container.parent().offset().left);var l=0,h=0;if("on"==a.navigationInGrid&&(l=e.width()>a.startwidth?(e.width()-a.startwidth)/2:0,h=e.height()>a.startheight?(e.height()-a.startheight)/2:0),"none"!=a.navigationArrows&&"nexttobullets"!=a.navigationArrows){var c=a.soloArrowLeftValign,p=a.soloArrowLeftHalign,u=a.soloArrowRightValign,f=a.soloArrowRightHalign,g=a.soloArrowLeftVOffset,m=a.soloArrowLeftHOffset,v=a.soloArrowRightVOffset,w=a.soloArrowRightHOffset;r.css({position:"absolute"}),s.css({position:"absolute"}),"center"==c?r.css({top:"50%",marginTop:g-Math.round(r.innerHeight()/2)+"px"}):"bottom"==c?r.css({top:"auto",bottom:0+g+"px"}):"top"==c&&r.css({bottom:"auto",top:0+g+"px"}),"center"==p?r.css({left:"50%",marginLeft:d+m-Math.round(r.innerWidth()/2)+"px"}):"left"==p?r.css({left:l+m+d+"px"}):"right"==p&&r.css({right:l+m-d+"px"}),"center"==u?s.css({top:"50%",marginTop:v-Math.round(s.innerHeight()/2)+"px"}):"bottom"==u?s.css({top:"auto",bottom:0+v+"px"}):"top"==u&&s.css({bottom:"auto",top:0+v+"px"}),"center"==f?s.css({left:"50%",marginLeft:d+w-Math.round(s.innerWidth()/2)+"px"}):"left"==f?s.css({left:l+w+d+"px"}):"right"==f&&s.css({right:l+w-d+"px"}),null!=r.position()&&r.css({top:Math.round(parseInt(r.position().top,0))+"px"}),null!=s.position()&&s.css({top:Math.round(parseInt(s.position().top,0))+"px"})}"none"==a.navigationArrows&&(r.css({visibility:"hidden"}),s.css({visibility:"hidden"}));var b=a.navigationVAlign,y=a.navigationHAlign,x=a.navigationVOffset*a.bh,T=a.navigationHOffset*a.bw;"center"==b&&n.css({top:"50%",marginTop:x-Math.round(n.innerHeight()/2)+"px"}),"bottom"==b&&n.css({bottom:0+x+"px"}),"top"==b&&n.css({top:0+x+"px"}),"center"==y&&n.css({left:"50%",marginLeft:d+T-Math.round(n.innerWidth()/2)+"px"}),"left"==y&&n.css({left:0+T+d+"px"}),"right"==y&&n.css({right:0+T-d+"px"})},g=function(a){var i=a.container;a.beforli=a.next-1,a.comingli=a.next+1,a.beforli<0&&(a.beforli=a.slideamount-1),a.comingli>=a.slideamount&&(a.comingli=0);var n=i.find(">ul:first-child >li:eq("+a.comingli+")"),o=i.find(">ul:first-child >li:eq("+a.beforli+")"),r=o.find(".defaultimg").attr("src"),s=n.find(".defaultimg").attr("src");a.arr==e&&(a.arr=i.parent().find(".tparrows"),a.rar=i.parent().find(".tp-rightarrow"),a.lar=i.parent().find(".tp-leftarrow"),a.raimg=a.rar.find(".tp-arr-imgholder"),a.laimg=a.lar.find(".tp-arr-imgholder"),a.raimg_b=a.rar.find(".tp-arr-imgholder2"),a.laimg_b=a.lar.find(".tp-arr-imgholder2"),a.ratit=a.rar.find(".tp-arr-titleholder"),a.latit=a.lar.find(".tp-arr-titleholder"));var d=a.arr,l=a.rar,h=a.lar,c=a.raimg,p=a.laimg,u=a.raimg_b,f=a.laimg_b,g=a.ratit,m=a.latit;if(n.data("title")!=e&&g.html(n.data("title")),o.data("title")!=e&&m.html(o.data("title")),l.hasClass("itishovered")&&l.width(g.outerWidth(!0)+parseInt(l.css("minWidth"),0)),h.hasClass("itishovered")&&h.width(m.outerWidth(!0)+parseInt(h.css("minWidth"),0)),d.hasClass("preview2")&&!d.hasClass("hashoveralready"))if(d.addClass("hashoveralready"),Z()){var d=t(this),v=d.find(".tp-arr-titleholder");v.addClass("alwayshidden"),punchgs.TweenLite.set(v,{autoAlpha:0})}else d.hover(function(){var e=t(this),a=e.find(".tp-arr-titleholder");t(window).width()>767&&e.width(a.outerWidth(!0)+parseInt(e.css("minWidth"),0)),e.addClass("itishovered")},function(){{var e=t(this);e.find(".tp-arr-titleholder")}e.css({width:parseInt(e.css("minWidth"),0)}),e.removeClass("itishovered")});o.data("thumb")!=e&&(r=o.data("thumb")),n.data("thumb")!=e&&(s=n.data("thumb")),d.hasClass("preview4")?(u.css({backgroundImage:"url("+s+")"}),f.css({backgroundImage:"url("+r+")"}),punchgs.TweenLite.fromTo(u,.8,{force3D:punchgs.force3d,x:0},{x:-c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){c.css({backgroundImage:"url("+s+")"}),punchgs.TweenLite.set(u,{x:0})}}),punchgs.TweenLite.fromTo(f,.8,{force3D:punchgs.force3d,x:0},{x:c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){p.css({backgroundImage:"url("+r+")"}),punchgs.TweenLite.set(f,{x:0})}}),punchgs.TweenLite.fromTo(c,.8,{x:0},{force3D:punchgs.force3d,x:-c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(c,{x:0})}}),punchgs.TweenLite.fromTo(p,.8,{x:0},{force3D:punchgs.force3d,x:c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(p,{x:0})}})):(punchgs.TweenLite.to(c,.5,{autoAlpha:0,onComplete:function(){c.css({backgroundImage:"url("+s+")"}),p.css({backgroundImage:"url("+r+")"})}}),punchgs.TweenLite.to(p,.5,{autoAlpha:0,onComplete:function(){punchgs.TweenLite.to(c,.5,{autoAlpha:1,delay:.2}),punchgs.TweenLite.to(p,.5,{autoAlpha:1,delay:.2})}})),l.hasClass("preview4")&&!l.hasClass("hashoveralready")&&(l.addClass("hashoveralready"),l.hover(function(){var e=t(this).find(".tp-arr-iwrapper"),a=t(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(e,.4,{x:e.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"}),punchgs.TweenLite.to(a,.2,{autoAlpha:1,overwrite:"all"})},function(){var e=t(this).find(".tp-arr-iwrapper"),a=t(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(e,.4,{x:e.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"}),punchgs.TweenLite.to(a,.2,{delay:.6,autoAlpha:0,overwrite:"all"})}),h.hover(function(){var e=t(this).find(".tp-arr-iwrapper"),a=t(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(e,.4,{x:0-e.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"}),punchgs.TweenLite.to(a,.2,{autoAlpha:1,overwrite:"all"})},function(){var e=t(this).find(".tp-arr-iwrapper"),a=t(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(e,.4,{x:0-e.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"}),punchgs.TweenLite.to(a,.2,{delay:.6,autoAlpha:0,overwrite:"all"})}))},m=function(a,i){if(i.container.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css({height:i.container.height()}),i.container.closest(".rev_slider_wrapper").css({height:i.container.height()}),i.width=parseInt(i.container.width(),0),i.height=parseInt(i.container.height(),0),i.bw=i.width/i.startwidth,i.bh=i.height/i.startheight,i.bh>i.bw&&(i.bh=i.bw),i.bh1&&(i.bw=1,i.bh=1),i.bw>1&&(i.bw=1,i.bh=1),i.height=Math.round(i.startheight*(i.width/i.startwidth)),i.height>i.startheight&&"on"!=i.autoHeight&&(i.height=i.startheight),"on"==i.fullScreen){i.height=i.bw*i.startheight;var n=(i.container.parent().width(),t(window).height());if(i.fullScreenOffsetContainer!=e){try{var o=i.fullScreenOffsetContainer.split(",");t.each(o,function(e,a){n-=t(a).outerHeight(!0),n1&&i.fullScreenOffset!=e&&i.fullScreenOffset.length>0?n-=t(window).height()*parseInt(i.fullScreenOffset,0)/100:i.fullScreenOffset!=e&&i.fullScreenOffset.length>0&&(n-=parseInt(i.fullScreenOffset,0)),nul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:a.parent().css("maxHeight")}).addClass("tp-revslider-mainul"),"on"==i.autoHeight&&(a.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:"none"}),a.css({maxHeight:"none"}),a.parent().css({maxHeight:"none"})),a.find(">ul:first >li").each(function(){var i=t(this);if(i.addClass("tp-revslider-slidesli"),i.css({width:"100%",height:"100%",overflow:"hidden"}),i.data("link")!=e){var n=i.data("link"),o="_self",r=60;"back"==i.data("slideindex")&&(r=0);var s=checksl=i.data("linktoslide");s!=e&&"next"!=s&&"prev"!=s&&a.find(">ul:first-child >li").each(function(){var e=t(this);e.data("origindex")+1==checksl&&(s=e.index()+1)}),i.data("target")!=e&&(o=i.data("target")),"slide"!=n&&(s="no");var d=''),C+=k,s(8)&&(o.find(".slot ").last().find(".slotslide").append(''),b(o,a)),d!=e&&l!=e&&punchgs.TweenLite.set(o.find(".slot").last(),{rotationZ:l});L+=k}break;case"vertical":case"horizontal":if("on"==o.data("kenburns")&&(w=d,w.toString().length<4&&(w=U(w,o,a))),"horizontal"==n){if(!i)var v=0-a.slotw;for(var O=0;O
'),d!=e&&l!=e&&punchgs.TweenLite.set(o.find(".slot").last(),{rotationZ:l}),s(8)&&(o.find(".slot ").last().find(".slotslide").append(''),b(o,a))}else{if(!i)var v=0-a.sloth;for(var O=0;O
'),d!=e&&l!=e&&punchgs.TweenLite.set(o.find(".slot").last(),{rotationZ:l}),s(8)&&(o.find(".slot ").last().find(".slotslide").append(''),b(o,a))}}},b=function(t,e){if(s(8)){{var a=t.find(".ieeightfallbackimage");a.width(),a.height()}a.css(e.startwidth/e.startheighti&&n!=e&&"undefined"!=n){if(n!=e&&"undefined"!=n){a.attr("src",n);var o=new Image;o.onload=function(){a.data("lazydone",1),a.hasClass("defaultimg")&&T(a,o)},o.error=function(){a.data("lazydone",1)},o.src=a.attr("src"),o.complete&&(a.hasClass("defaultimg")&&T(a,o),a.data("lazydone",1))}}else if((n===e||"undefined"===n)&&1!=a.data("lazydone")){var o=new Image;o.onload=function(){a.hasClass("defaultimg")&&T(a,o),a.data("lazydone",1)},o.error=function(){a.data("lazydone",1)},o.src=a.attr("src")!=e&&"undefined"!=a.attr("src")?a.attr("src"):a.data("src"),o.complete&&(a.hasClass("defaultimg")&&T(a,o),a.data("lazydone",1))}})},T=function(t,e){var a=t.closest("li"),i=e.width,n=e.height;a.data("owidth",i),a.data("oheight",n),a.find(".slotholder").data("owidth",i),a.find(".slotholder").data("oheight",n),a.data("loadeddone",1)},k=function(a,i,n){x(a,0);var o=setInterval(function(){n.bannertimeronpause=!0,n.container.trigger("stoptimer"),n.cd=0;var r=0;a.find("img, .defaultimg").each(function(){1!=t(this).data("lazydone")&&r++}),r>0?x(a,r):(clearInterval(o),i!=e&&i())},100)},L=function(t,a){try{{t.find(">ul:first-child >li:eq("+a.act+")")}}catch(i){{t.find(">ul:first-child >li:eq(1)")}}a.lastslide=a.act;var n=t.find(">ul:first-child >li:eq("+a.next+")"),o=n.find(".defaultimg");a.bannertimeronpause=!0,t.trigger("stoptimer"),a.cd=0,o.data("lazyload")!=e&&"undefined"!=o.data("lazyload")&&1!=o.data("lazydone")?(s(8)?o.attr("src",n.find(".defaultimg").data("lazyload")):o.css({backgroundImage:'url("'+n.find(".defaultimg").data("lazyload")+'")'}),o.data("src",n.find(".defaultimg").data("lazyload")),o.data("lazydone",0),o.data("orgw",0),n.data("loadeddone",1),t.find(".tp-loader").css({display:"block"}),k(t.find(".tp-static-layers"),function(){k(n,function(){var e=n.find(".slotholder");if("on"==e.data("kenburns"))var i=setInterval(function(){var n=e.data("owidth");n>=0&&(clearInterval(i),C(a,o,t))},10);else C(a,o,t)},a)},a)):n.data("loadeddone")===e?(n.data("loadeddone",1),k(n,function(){C(a,o,t)},a)):C(a,o,t)},C=function(t,e,a){t.bannertimeronpause=!1,t.cd=0,a.trigger("nulltimer"),a.find(".tp-loader").css({display:"none"}),m(e,t),f(a,t),m(e,t),z(a,t)},z=function(t,a){t.trigger("revolution.slide.onbeforeswap"),a.transition=1,a.videoplaying=!1;try{var i=t.find(">ul:first-child >li:eq("+a.act+")")}catch(n){var i=t.find(">ul:first-child >li:eq(1)")}a.lastslide=a.act;var o=t.find(">ul:first-child >li:eq("+a.next+")");setTimeout(function(){g(a)},200);var r=i.find(".slotholder"),s=o.find(".slotholder");("on"==s.data("kenburns")||"on"==r.data("kenburns"))&&(J(t,a),t.find(".kenburnimg").remove()),o.data("delay")!=e?(a.cd=0,a.delay=o.data("delay")):a.delay=a.origcd,1==a.firststart&&punchgs.TweenLite.set(i,{autoAlpha:0}),punchgs.TweenLite.set(i,{zIndex:18}),punchgs.TweenLite.set(o,{autoAlpha:0,zIndex:20});var d=0;i.index()!=o.index()&&1!=a.firststart&&(d=B(i,a)),"on"!=i.data("saveperformance")&&(d=0),setTimeout(function(){t.trigger("restarttimer"),O(t,a,o,i,r,s)},d)},O=function(a,i,n,o,r,d){function l(){t.each(g,function(t,e){(e[0]==u||e[8]==u)&&(h=e[1],f=e[2],b=y),y+=1})}"prepared"==n.data("differentissplayed")&&(n.data("differentissplayed","done"),n.data("transition",n.data("savedtransition")),n.data("slotamount",n.data("savedslotamount")),n.data("masterspeed",n.data("savedmasterspeed"))),n.data("fstransition")!=e&&"done"!=n.data("differentissplayed")&&(n.data("savedtransition",n.data("transition")),n.data("savedslotamount",n.data("slotamount")),n.data("savedmasterspeed",n.data("masterspeed")),n.data("transition",n.data("fstransition")),n.data("slotamount",n.data("fsslotamount")),n.data("masterspeed",n.data("fsmasterspeed")),n.data("differentissplayed","prepared")),a.find(".active-revslide").removeClass(".active-revslide"),n.addClass("active-revslide"),n.data("transition")==e&&n.data("transition","random");var h=0,c=n.data("transition").split(","),p=n.data("nexttransid")==e?-1:n.data("nexttransid");"on"==n.data("randomtransition")?p=Math.round(Math.random()*c.length):p+=1,p==c.length&&(p=0),n.data("nexttransid",p);var u=c[p];i.ie&&("boxfade"==u&&(u="boxslide"),"slotfade-vertical"==u&&(u="slotzoom-vertical"),"slotfade-horizontal"==u&&(u="slotzoom-horizontal")),s(8)&&(u=11);var f=0;"scroll"==i.parallax&&i.parallaxFirstGo==e&&(i.parallaxFirstGo=!0,K(a,i),setTimeout(function(){K(a,i)},210),setTimeout(function(){K(a,i)},420)),"slidehorizontal"==u&&(u="slideleft",1==i.leftarrowpressed&&(u="slideright")),"slidevertical"==u&&(u="slideup",1==i.leftarrowpressed&&(u="slidedown")),"parallaxhorizontal"==u&&(u="parallaxtoleft",1==i.leftarrowpressed&&(u="parallaxtoright")),"parallaxvertical"==u&&(u="parallaxtotop",1==i.leftarrowpressed&&(u="parallaxtobottom"));var g=[["boxslide",0,1,10,0,"box",!1,null,0],["boxfade",1,0,10,0,"box",!1,null,1],["slotslide-horizontal",2,0,0,200,"horizontal",!0,!1,2],["slotslide-vertical",3,0,0,200,"vertical",!0,!1,3],["curtain-1",4,3,0,0,"horizontal",!0,!0,4],["curtain-2",5,3,0,0,"horizontal",!0,!0,5],["curtain-3",6,3,25,0,"horizontal",!0,!0,6],["slotzoom-horizontal",7,0,0,400,"horizontal",!0,!0,7],["slotzoom-vertical",8,0,0,0,"vertical",!0,!0,8],["slotfade-horizontal",9,0,0,500,"horizontal",!0,null,9],["slotfade-vertical",10,0,0,500,"vertical",!0,null,10],["fade",11,0,1,300,"horizontal",!0,null,11],["slideleft",12,0,1,0,"horizontal",!0,!0,12],["slideup",13,0,1,0,"horizontal",!0,!0,13],["slidedown",14,0,1,0,"horizontal",!0,!0,14],["slideright",15,0,1,0,"horizontal",!0,!0,15],["papercut",16,0,0,600,"",null,null,16],["3dcurtain-horizontal",17,0,20,100,"vertical",!1,!0,17],["3dcurtain-vertical",18,0,10,100,"horizontal",!1,!0,18],["cubic",19,0,20,600,"horizontal",!1,!0,19],["cube",19,0,20,600,"horizontal",!1,!0,20],["flyin",20,0,4,600,"vertical",!1,!0,21],["turnoff",21,0,1,1600,"horizontal",!1,!0,22],["incube",22,0,20,200,"horizontal",!1,!0,23],["cubic-horizontal",23,0,20,500,"vertical",!1,!0,24],["cube-horizontal",23,0,20,500,"vertical",!1,!0,25],["incube-horizontal",24,0,20,500,"vertical",!1,!0,26],["turnoff-vertical",25,0,1,200,"horizontal",!1,!0,27],["fadefromright",12,1,1,0,"horizontal",!0,!0,28],["fadefromleft",15,1,1,0,"horizontal",!0,!0,29],["fadefromtop",14,1,1,0,"horizontal",!0,!0,30],["fadefrombottom",13,1,1,0,"horizontal",!0,!0,31],["fadetoleftfadefromright",12,2,1,0,"horizontal",!0,!0,32],["fadetorightfadetoleft",15,2,1,0,"horizontal",!0,!0,33],["fadetobottomfadefromtop",14,2,1,0,"horizontal",!0,!0,34],["fadetotopfadefrombottom",13,2,1,0,"horizontal",!0,!0,35],["parallaxtoright",12,3,1,0,"horizontal",!0,!0,36],["parallaxtoleft",15,3,1,0,"horizontal",!0,!0,37],["parallaxtotop",14,3,1,0,"horizontal",!0,!0,38],["parallaxtobottom",13,3,1,0,"horizontal",!0,!0,39],["scaledownfromright",12,4,1,0,"horizontal",!0,!0,40],["scaledownfromleft",15,4,1,0,"horizontal",!0,!0,41],["scaledownfromtop",14,4,1,0,"horizontal",!0,!0,42],["scaledownfrombottom",13,4,1,0,"horizontal",!0,!0,43],["zoomout",13,5,1,0,"horizontal",!0,!0,44],["zoomin",13,6,1,0,"horizontal",!0,!0,45],["notransition",26,0,1,0,"horizontal",!0,null,46]],m=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],v=[16,17,18,19,20,21,22,23,24,25,26,27],h=0,f=1,b=0,y=0,x=new Array;"on"==d.data("kenburns")&&(("boxslide"==u||0==u||"boxfade"==u||1==u||"papercut"==u||16==u)&&(u=11),N(a,i,!0,!0)),"random"==u&&(u=Math.round(Math.random()*g.length-1),u>g.length-1&&(u=g.length-1)),"random-static"==u&&(u=Math.round(Math.random()*m.length-1),u>m.length-1&&(u=m.length-1),u=m[u]),"random-premium"==u&&(u=Math.round(Math.random()*v.length-1),u>v.length-1&&(u=v.length-1),u=v[u]);var T=[12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45];if(1==i.isJoomla&&window.MooTools!=e&&-1!=T.indexOf(u)){var k=Math.round(Math.random()*(v.length-2))+1;k>v.length-1&&(k=v.length-1),0==k&&(k=1),u=v[k]}l(),s(8)&&h>15&&28>h&&(u=Math.round(Math.random()*m.length-1),u>m.length-1&&(u=m.length-1),u=m[u],y=0,l());var L=-1;(1==i.leftarrowpressed||i.act>i.next)&&(L=1),i.leftarrowpressed=0,h>26&&(h=26),0>h&&(h=0);var C=300;n.data("masterspeed")!=e&&n.data("masterspeed")>99&&n.data("masterspeed")i.delay&&(C=i.delay),x=g[b],a.parent().find(".bullet").each(function(){var e=t(this),a=e.index();e.removeClass("selected"),("withbullet"==i.navigationArrows||"nexttobullets"==i.navigationArrows)&&(a=e.index()-1),a==i.next&&e.addClass("selected")});var z=new punchgs.TimelineLite({onComplete:function(){I(a,i,d,r,n,o,z)}});if(z.add(punchgs.TweenLite.set(d.find(".defaultimg"),{opacity:0})),z.pause(),n.data("slotamount")==e||n.data("slotamount")<1?(i.slots=Math.round(12*Math.random()+4),"boxslide"==u?i.slots=Math.round(6*Math.random()+3):"flyin"==u&&(i.slots=Math.round(4*Math.random()+1))):i.slots=n.data("slotamount"),i.rotate=n.data("rotate")==e?0:999==n.data("rotate")?Math.round(360*Math.random()):n.data("rotate"),(!t.support.transition||i.ie||i.ie9)&&(i.rotate=0),1==i.firststart&&(i.firststart=0),C+=x[4],(4==h||5==h||6==h)&&i.slots<3&&(i.slots=3),0!=x[3]&&(i.slots=Math.min(i.slots,x[3])),9==h&&(i.slots=i.width/20),10==h&&(i.slots=i.height/20),null!=x[7]&&w(r,i,x[7],x[5]),null!=x[6]&&w(d,i,x[6],x[5]),0==h){var O=Math.ceil(i.height/i.sloth),A=0;d.find(".slotslide").each(function(e){var a=t(this);A+=1,A==O&&(A=0),z.add(punchgs.TweenLite.from(a,C/600,{opacity:0,top:0-i.sloth,left:0-i.slotw,rotation:i.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),(15*e+30*A)/1500)})}if(1==h){var M,S=0;d.find(".slotslide").each(function(e){var a=t(this),n=Math.random()*C+300,o=500*Math.random()+200;n+o>M&&(M=o+o,S=e),z.add(punchgs.TweenLite.from(a,n/1e3,{autoAlpha:0,force3D:"auto",rotation:i.rotate,ease:punchgs.Power2.easeInOut}),o/1e3)})}if(2==h){var P=new punchgs.TimelineLite;r.find(".slotslide").each(function(){var e=t(this);P.add(punchgs.TweenLite.to(e,C/1e3,{left:i.slotw,force3D:"auto",rotation:0-i.rotate}),0),z.add(P,0)}),d.find(".slotslide").each(function(){var e=t(this);P.add(punchgs.TweenLite.from(e,C/1e3,{left:0-i.slotw,force3D:"auto",rotation:i.rotate}),0),z.add(P,0)})}if(3==h){var P=new punchgs.TimelineLite;r.find(".slotslide").each(function(){var e=t(this);P.add(punchgs.TweenLite.to(e,C/1e3,{top:i.sloth,rotation:i.rotate,force3D:"auto",transformPerspective:600}),0),z.add(P,0)}),d.find(".slotslide").each(function(){var e=t(this);P.add(punchgs.TweenLite.from(e,C/1e3,{top:0-i.sloth,rotation:i.rotate,ease:punchgs.Power2.easeOut,force3D:"auto",transformPerspective:600}),0),z.add(P,0)})}if(4==h||5==h){setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);var D=C/1e3,P=new punchgs.TimelineLite;r.find(".slotslide").each(function(e){var a=t(this),n=e*D/i.slots;5==h&&(n=(i.slots-e-1)*D/i.slots/1.5),P.add(punchgs.TweenLite.to(a,3*D,{transformPerspective:600,force3D:"auto",top:0+i.height,opacity:.5,rotation:i.rotate,ease:punchgs.Power2.easeInOut,delay:n}),0),z.add(P,0)}),d.find(".slotslide").each(function(e){var a=t(this),n=e*D/i.slots;5==h&&(n=(i.slots-e-1)*D/i.slots/1.5),P.add(punchgs.TweenLite.from(a,3*D,{top:0-i.height,opacity:.5,rotation:i.rotate,force3D:"auto",ease:punchgs.Power2.easeInOut,delay:n}),0),z.add(P,0)})}if(6==h){i.slots<2&&(i.slots=2),i.slots%2&&(i.slots=i.slots+1);var P=new punchgs.TimelineLite;setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100),r.find(".slotslide").each(function(e){var a=t(this);if(e+1i.delay&&(C=i.delay);var P=new punchgs.TimelineLite;setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100),r.find(".slotslide").each(function(){var e=t(this).find("div");P.add(punchgs.TweenLite.to(e,C/1e3,{left:0-i.slotw/2+"px",top:0-i.height/2+"px",width:2*i.slotw+"px",height:2*i.height+"px",opacity:0,rotation:i.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),0),z.add(P,0)}),d.find(".slotslide").each(function(e){var a=t(this).find("div");P.add(punchgs.TweenLite.fromTo(a,C/1e3,{left:0,top:0,opacity:0,transformPerspective:600},{left:0-e*i.slotw+"px",ease:punchgs.Power2.easeOut,force3D:"auto",top:"0px",width:i.width,height:i.height,opacity:1,rotation:0,delay:.1}),0),z.add(P,0)})}if(8==h){C=3*C,C>i.delay&&(C=i.delay);var P=new punchgs.TimelineLite;r.find(".slotslide").each(function(){var e=t(this).find("div");P.add(punchgs.TweenLite.to(e,C/1e3,{left:0-i.width/2+"px",top:0-i.sloth/2+"px",width:2*i.width+"px",height:2*i.sloth+"px",force3D:"auto",opacity:0,rotation:i.rotate}),0),z.add(P,0)}),d.find(".slotslide").each(function(e){var a=t(this).find("div");P.add(punchgs.TweenLite.fromTo(a,C/1e3,{left:0,top:0,opacity:0,force3D:"auto"},{left:"0px",top:0-e*i.sloth+"px",width:d.find(".defaultimg").data("neww")+"px",height:d.find(".defaultimg").data("newh")+"px",opacity:1,rotation:0}),0),z.add(P,0)})}if(9==h||10==h){var H=0;d.find(".slotslide").each(function(e){var a=t(this);H++,z.add(punchgs.TweenLite.fromTo(a,C/1e3,{autoAlpha:0,force3D:"auto",transformPerspective:600},{autoAlpha:1,ease:punchgs.Power2.easeInOut,delay:5*e/1e3}),0)})}if(11==h||26==h){var H=0;26==h&&(C=0),d.find(".slotslide").each(function(){var e=t(this);z.add(punchgs.TweenLite.from(e,C/1e3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power2.easeInOut}),0)})}if(12==h||13==h||14==h||15==h){C=C,C>i.delay&&(C=i.delay),setTimeout(function(){punchgs.TweenLite.set(r.find(".defaultimg"),{autoAlpha:0})},100);var W=i.width,X=i.height,F=d.find(".slotslide"),Y=0,R=0,B=1,V=1,q=1,E=punchgs.Power2.easeInOut,j=punchgs.Power2.easeInOut,Z=C/1e3,U=Z;("on"==i.fullWidth||"on"==i.fullScreen)&&(W=F.width(),X=F.height()),12==h?Y=W:15==h?Y=0-W:13==h?R=X:14==h&&(R=0-X),1==f&&(B=0),2==f&&(B=0),3==f&&(E=punchgs.Power2.easeInOut,j=punchgs.Power1.easeInOut,Z=C/1200),(4==f||5==f)&&(V=.6),6==f&&(V=1.4),(5==f||6==f)&&(q=1.4,B=0,W=0,X=0,Y=0,R=0),6==f&&(q=.6);z.add(punchgs.TweenLite.from(F,Z,{left:Y,top:R,scale:q,opacity:B,rotation:i.rotate,ease:j,force3D:"auto"}),0);var G=r.find(".slotslide");if((4==f||5==f)&&(W=0,X=0),1!=f)switch(h){case 12:z.add(punchgs.TweenLite.to(G,U,{left:0-W+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:E}),0);break;case 15:z.add(punchgs.TweenLite.to(G,U,{left:W+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:E}),0);break;case 13:z.add(punchgs.TweenLite.to(G,U,{top:0-X+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:E}),0);break;case 14:z.add(punchgs.TweenLite.to(G,U,{top:X+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:E}),0)}}if(16==h){var P=new punchgs.TimelineLite;z.add(punchgs.TweenLite.set(o,{position:"absolute","z-index":20}),0),z.add(punchgs.TweenLite.set(n,{position:"absolute","z-index":15}),0),o.wrapInner('
'),o.find(".tp-half-one").clone(!0).appendTo(o).addClass("tp-half-two"),o.find(".tp-half-two").removeClass("tp-half-one");var W=i.width,X=i.height;"on"==i.autoHeight&&(X=a.height()),o.find(".tp-half-one .defaultimg").wrap('
'),o.find(".tp-half-two .defaultimg").wrap('
'),o.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"}),o.find(".tp-half-two .tp-caption").wrapAll('
'),z.add(punchgs.TweenLite.set(o.find(".tp-half-two"),{width:W,height:X,overflow:"hidden",zIndex:15,position:"absolute",top:X/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0),z.add(punchgs.TweenLite.set(o.find(".tp-half-one"),{width:W,height:X/2,overflow:"visible",zIndex:10,position:"absolute",top:"0px",left:"0px",transformPerspective:600,transformOrigin:"center top"}),0);var $=(o.find(".defaultimg"),Math.round(20*Math.random()-10)),J=Math.round(20*Math.random()-10),Q=Math.round(20*Math.random()-10),te=.4*Math.random()-.2,ee=.4*Math.random()-.2,ae=1*Math.random()+1,ie=1*Math.random()+1,ne=.3*Math.random()+.3;z.add(punchgs.TweenLite.set(o.find(".tp-half-one"),{overflow:"hidden"}),0),z.add(punchgs.TweenLite.fromTo(o.find(".tp-half-one"),C/800,{width:W,height:X/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:ae,rotation:$,y:0-X-X/4,autoAlpha:0,ease:punchgs.Power2.easeInOut}),0),z.add(punchgs.TweenLite.fromTo(o.find(".tp-half-two"),C/800,{width:W,height:X,overflow:"hidden",position:"absolute",top:X/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:ie,rotation:J,y:X+X/4,ease:punchgs.Power2.easeInOut,autoAlpha:0,onComplete:function(){punchgs.TweenLite.set(o,{position:"absolute","z-index":15}),punchgs.TweenLite.set(n,{position:"absolute","z-index":20}),o.find(".tp-half-one").length>0&&(o.find(".tp-half-one .defaultimg").unwrap(),o.find(".tp-half-one .slotholder").unwrap()),o.find(".tp-half-two").remove()}}),0),P.add(punchgs.TweenLite.set(d.find(".defaultimg"),{autoAlpha:1}),0),null!=o.html()&&z.add(punchgs.TweenLite.fromTo(n,(C-200)/1e3,{scale:ne,x:i.width/4*te,y:X/4*ee,rotation:Q,force3D:"auto",transformOrigin:"center center",ease:punchgs.Power2.easeOut},{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0),z.add(P,0)}if(17==h&&d.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/800,{opacity:0,rotationY:0,scale:.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:.06*e}),0)}),18==h&&d.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/500,{autoAlpha:0,rotationY:310,scale:.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:.06*e}),0)}),19==h||22==h){var P=new punchgs.TimelineLite;z.add(punchgs.TweenLite.set(o,{zIndex:20}),0),z.add(punchgs.TweenLite.set(n,{zIndex:20}),0),setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);var oe=(n.css("z-index"),o.css("z-index"),90),B=1,re="center center ";1==L&&(oe=-90),19==h?(re=re+"-"+i.height/2,B=0):re+=i.height/2,punchgs.TweenLite.set(a,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}),d.find(".slotslide").each(function(e){var a=t(this);P.add(punchgs.TweenLite.fromTo(a,C/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:i.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:re,rotationX:oe},{left:0,rotationY:0,top:0,z:0,scale:1,force3D:"auto",rotationX:0,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),P.add(punchgs.TweenLite.to(a,.1,{autoAlpha:1,delay:50*e/1e3}),0),z.add(P)}),r.find(".slotslide").each(function(e){var a=t(this),n=-90;1==L&&(n=90),P.add(punchgs.TweenLite.fromTo(a,C/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:re,rotationX:0},{autoAlpha:1,rotationY:i.rotate,top:0,z:10,scale:1,rotationX:n,delay:50*e/1e3,force3D:"auto",ease:punchgs.Power2.easeInOut}),0),z.add(P)})}if(20==h){setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);{n.css("z-index"),o.css("z-index")}if(1==L)var se=-i.width,oe=70,re="left center -"+i.height/2;else var se=i.width,oe=-70,re="right center -"+i.height/2;d.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/1500,{left:se,rotationX:40,z:-600,opacity:B,top:0,force3D:"auto",transformPerspective:600,transformOrigin:re,rotationY:oe},{left:0,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),z.add(punchgs.TweenLite.fromTo(a,C/1e3,{rotationX:40,z:-600,opacity:B,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:re,rotationY:oe},{rotationX:0,opacity:1,top:0,z:0,scale:1,rotationY:0,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),z.add(punchgs.TweenLite.to(a,.1,{opacity:1,force3D:"auto",delay:50*e/1e3+C/2e3}),0)}),r.find(".slotslide").each(function(e){var a=t(this);if(1!=L)var n=-i.width,o=70,r="left center -"+i.height/2;else var n=i.width,o=-70,r="right center -"+i.height/2;z.add(punchgs.TweenLite.fromTo(a,C/1e3,{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0,force3D:"auto",transformPerspective:600,transformOrigin:r,rotationY:0},{opacity:1,rotationX:40,top:0,z:-600,left:n,force3D:"auto",scale:.8,rotationY:o,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),z.add(punchgs.TweenLite.to(a,.1,{force3D:"auto",opacity:0,delay:50*e/1e3+(C/1e3-C/1e4)}),0)})}if(21==h||25==h){setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);var oe=(n.css("z-index"),o.css("z-index"),90),se=-i.width,de=-oe;if(1==L)if(25==h){var re="center top 0";oe=i.rotate}else{var re="left center 0";de=i.rotate}else if(se=i.width,oe=-90,25==h){var re="center bottom 0";de=-oe,oe=i.rotate}else{var re="right center 0";de=i.rotate}d.find(".slotslide").each(function(){var e=t(this);z.add(punchgs.TweenLite.fromTo(e,C/1e3,{left:0,transformStyle:"flat",rotationX:de,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:re,rotationY:oe},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),0)}),1!=L?(se=-i.width,oe=90,25==h?(re="center top 0",de=-oe,oe=i.rotate):(re="left center 0",de=i.rotate)):(se=i.width,oe=-90,25==h?(re="center bottom 0",de=-oe,oe=i.rotate):(re="right center 0",de=i.rotate)),r.find(".slotslide").each(function(){var e=t(this);z.add(punchgs.TweenLite.fromTo(e,C/1e3,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:re,rotationY:0},{left:0,rotationX:de,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:oe,ease:punchgs.Power1.easeInOut}),0)})}if(23==h||24==h){setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);var oe=(n.css("z-index"),o.css("z-index"),-90),B=1,le=0;if(1==L&&(oe=90),23==h){var re="center center -"+i.width/2;B=0}else var re="center center "+i.width/2;punchgs.TweenLite.set(a,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500}),d.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/1e3,{left:le,rotationX:i.rotate,force3D:"auto",opacity:B,top:0,scale:1,transformPerspective:600,transformOrigin:re,rotationY:oe},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:50*e/500,ease:punchgs.Power2.easeInOut}),0)}),oe=90,1==L&&(oe=-90),r.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/1e3,{left:0,autoAlpha:1,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:re,rotationY:0},{left:le,autoAlpha:1,rotationX:i.rotate,top:0,scale:1,rotationY:oe,delay:50*e/500,ease:punchgs.Power2.easeInOut}),0)})}z.pause(),_(n,i,null,z),punchgs.TweenLite.to(n,.001,{autoAlpha:1});var he={};he.slideIndex=i.next+1,he.slide=n,a.trigger("revolution.slide.onchange",he),setTimeout(function(){a.trigger("revolution.slide.onafterswap")},C),a.trigger("revolution.slide.onvideostop")},I=function(t,e,a,i,n,o,r){punchgs.TweenLite.to(a.find(".defaultimg"),.001,{autoAlpha:1,onComplete:function(){y(t,e,n)}}),n.index()!=o.index()&&punchgs.TweenLite.to(o,.2,{autoAlpha:0,onComplete:function(){y(t,e,o)}}),e.act=e.next,"thumb"==e.navigationType&&ee(t),"on"==a.data("kenburns")&&N(t,e),t.find(".current-sr-slide-visible").removeClass("current-sr-slide-visible"),n.addClass("current-sr-slide-visible"),("scroll"==e.parallax||"scroll+mouse"==e.parallax||"mouse+scroll"==e.parallax)&&K(t,e),r.clear()},A=function(e){var a=e.target.getVideoEmbedCode(),i=t("#"+a.split('id="')[1].split('"')[0]),n=i.closest(".tp-simpleresponsive"),o=i.parent().data("player");if(e.data==YT.PlayerState.PLAYING){var r=n.find(".tp-bannertimer"),s=r.data("opt");"mute"==i.closest(".tp-caption").data("volume")&&o.mute(),s.videoplaying=!0,n.trigger("stoptimer"),n.trigger("revolution.slide.onvideoplay")}else{var r=n.find(".tp-bannertimer"),s=r.data("opt");-1!=e.data&&3!=e.data&&(s.videoplaying=!1,n.trigger("starttimer"),n.trigger("revolution.slide.onvideostop")),0==e.data&&1==s.nextslideatend?s.container.revnext():(s.videoplaying=!1,n.trigger("starttimer"),n.trigger("revolution.slide.onvideostop"))}},M=function(t,e,a){t.addEventListener?t.addEventListener(e,a,!1):t.attachEvent(e,a,!1)},S=function(e,a){var i=$f(e),n=t("#"+e),o=n.closest(".tp-simpleresponsive"),r=n.closest(".tp-caption");setTimeout(function(){i.addEvent("ready",function(){a&&i.api("play"),i.addEvent("play",function(){var t=o.find(".tp-bannertimer"),e=t.data("opt");e.videoplaying=!0,o.trigger("stoptimer"),o.trigger("revolution.slide.onvideoplay"),"mute"==r.data("volume")&&i.api("setVolume","0")}),i.addEvent("finish",function(){var t=o.find(".tp-bannertimer"),e=t.data("opt");e.videoplaying=!1,o.trigger("starttimer"),o.trigger("revolution.slide.onvideoplay"),1==e.nextslideatend&&e.container.revnext()}),i.addEvent("pause",function(){var t=o.find(".tp-bannertimer"),e=t.data("opt");e.videoplaying=!1,o.trigger("starttimer"),o.trigger("revolution.slide.onvideostop")}),r.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(t(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),i.api("play")})})},150)},P=function(t,a){var i=a.width(),n=a.height(),o=t.data("mediaAspect");o==e&&(o=1);var r=i/n;t.css({position:"absolute"});t.find("video");o>r?punchgs.TweenLite.to(t,1e-4,{width:n*o,force3D:"auto",top:0,left:0-(n*o-i)/2,height:n}):punchgs.TweenLite.to(t,1e-4,{width:i,force3D:"auto",top:0-(i/o-n)/2,left:0,height:i/o})},D=function(){var t=new Object;return t.x=0,t.y=0,t.rotationX=0,t.rotationY=0,t.rotationZ=0,t.scale=1,t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.opacity=0,t.transformOrigin="center, center",t.transformPerspective=400,t.rotation=0,t},H=function(e,a){var i=a.split(";");return t.each(i,function(t,a){a=a.split(":");var i=a[0],n=a[1];"rotationX"==i&&(e.rotationX=parseInt(n,0)),"rotationY"==i&&(e.rotationY=parseInt(n,0)),"rotationZ"==i&&(e.rotationZ=parseInt(n,0)),"rotationZ"==i&&(e.rotation=parseInt(n,0)),"scaleX"==i&&(e.scaleX=parseFloat(n)),"scaleY"==i&&(e.scaleY=parseFloat(n)),"opacity"==i&&(e.opacity=parseFloat(n)),"skewX"==i&&(e.skewX=parseInt(n,0)),"skewY"==i&&(e.skewY=parseInt(n,0)),"x"==i&&(e.x=parseInt(n,0)),"y"==i&&(e.y=parseInt(n,0)),"z"==i&&(e.z=parseInt(n,0)),"transformOrigin"==i&&(e.transformOrigin=n.toString()),"transformPerspective"==i&&(e.transformPerspective=parseInt(n,0)) }),e},W=function(e){var a=e.split("animation:"),i=new Object;i.animation=H(D(),a[1]);var n=a[0].split(";");return t.each(n,function(t,e){e=e.split(":");var a=e[0],n=e[1];"typ"==a&&(i.typ=n),"speed"==a&&(i.speed=parseInt(n,0)/1e3),"start"==a&&(i.start=parseInt(n,0)/1e3),"elementdelay"==a&&(i.elementdelay=parseFloat(n)),"ease"==a&&(i.ease=n)}),i},_=function(a,i,n,o){function r(){}function d(){}a.data("ctl")==e&&a.data("ctl",new punchgs.TimelineLite);var l=a.data("ctl"),h=0,c=0,p=a.find(".tp-caption"),u=i.container.find(".tp-static-layers").find(".tp-caption");l.pause(),t.each(u,function(t,e){p.push(e)}),p.each(function(a){var o=n,l=-1,p=t(this);if(p.hasClass("tp-static-layer")){var u=p.data("startslide"),f=p.data("endslide");(-1==u||"-1"==u)&&p.data("startslide",0),(-1==f||"-1"==f)&&p.data("endslide",i.slideamount),0==u&&f==i.slideamount-1&&p.data("endslide",i.slideamount+1),u=p.data("startslide"),f=p.data("endslide"),p.hasClass("tp-is-shown")?l=f==i.next||u>i.next||f=i.next||u==i.next||f==i.next?(p.addClass("tp-is-shown"),l=1):l=0}h=i.width/2-i.startwidth*i.bw/2;{var g=i.bw;i.bh}"on"==i.fullScreen&&(c=i.height/2-i.startheight*i.bh/2),("on"==i.autoHeight||i.minHeight!=e&&i.minHeight>0)&&(c=i.container.height()/2-i.startheight*i.bh/2),0>c&&(c=0);var m=0;if(i.widthh&&(h=0),p.hasClass("tp-videolayer")||p.find("iframe").length>0||p.find("video").length>0){var v="iframe"+Math.round(1e5*Math.random()+1),w=p.data("videowidth"),b=p.data("videoheight"),y=p.data("videoattributes"),x=p.data("ytid"),T=p.data("vimeoid"),k=p.data("videpreload"),L=p.data("videomp4"),C=p.data("videowebm"),z=p.data("videoogv"),O=p.data("videocontrols"),I="http",_="loop"==p.data("videoloop")?"loop":"loopandnoslidestop"==p.data("videoloop")?"loop":"";if(p.data("thumbimage")!=e&&p.data("videoposter")==e&&p.data("videoposter",p.data("thumbimage")),x!=e&&String(x).length>1&&0==p.find("iframe").length&&(I="https","none"==O&&(y=y.replace("controls=1","controls=0"),-1==y.toLowerCase().indexOf("controls")&&(y+="&controls=0")),p.append('')),T!=e&&String(T).length>1&&0==p.find("iframe").length&&("https:"===location.protocol&&(I="https"),p.append('')),(L!=e||C!=e)&&0==p.find("video").length){"controls"!=O&&(O="");var B="";(100==w||"100%"==w)&&(B=";width:100% !important; height:100% !important");var E='",p.append(E),"controls"==O&&p.append('
')}var j=!1;(1==p.data("autoplayonlyfirsttime")||"true"==p.data("autoplayonlyfirsttime")||1==p.data("autoplay"))&&(p.data("autoplay",!0),j=!0),p.data("videoposter")!=e&&p.data("videoposter").length>2&&1!=p.data("autoplay")&&!o&&(0==p.find(".tp-thumb-image").length?p.append('
'):punchgs.TweenLite.set(p.find(".tp-thumb-image"),{autoAlpha:1})),p.find("iframe").each(function(){var a=t(this);if(punchgs.TweenLite.to(a,.1,{autoAlpha:1,zIndex:0,transformStyle:"preserve-3d",z:0,rotationX:0,force3D:"auto"}),Z()){var o=a.attr("src");a.attr("src",""),a.attr("src",o)}if(i.nextslideatend=p.data("nextslideatend"),a.attr("src").toLowerCase().indexOf("youtube")>=0)if(a.hasClass("HasListener")){if(!n){var r=p.data("player");"on"!=p.data("forcerewind")||Z()||r.seekTo(0),(!Z()&&1==p.data("autoplay")||j)&&p.data("timerplay",setTimeout(function(){r.playVideo()},p.data("start")))}}else try{a.attr("id",v);var r,s=setInterval(function(){YT!=e&&typeof YT.Player!=e&&"undefined"!=typeof YT.Player&&(r=new YT.Player(v,{events:{onStateChange:A,onReady:function(a){{var i=a.target.getVideoEmbedCode(),n=t("#"+i.split('id="')[1].split('"')[0]),o=n.closest(".tp-caption"),s=o.data("videorate");o.data("videostart")}s!=e&&a.target.setPlaybackRate(parseFloat(s)),(!Z()&&1==o.data("autoplay")||j)&&o.data("timerplay",setTimeout(function(){a.target.playVideo()},o.data("start"))),o.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(t(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),Z()||r.playVideo()})}}})),a.addClass("HasListener"),p.data("player",r),clearInterval(s)},100)}catch(d){}else if(a.attr("src").toLowerCase().indexOf("vimeo")>=0)if(a.hasClass("HasListener")){if(!(n||Z()||1!=p.data("autoplay")&&"on"!=p.data("forcerewind"))){var a=p.find("iframe"),l=a.attr("id"),h=$f(l);"on"==p.data("forcerewind")&&h.api("seekTo",0),p.data("timerplay",setTimeout(function(){1==p.data("autoplay")&&h.api("play")},p.data("start")))}}else{a.addClass("HasListener"),a.attr("id",v);for(var c,u=a.attr("src"),f={},g=u,m=/([^&=]+)=([^&]*)/g;c=m.exec(g);)f[decodeURIComponent(c[1])]=decodeURIComponent(c[2]);u=f.player_id!=e?u.replace(f.player_id,v):u+"&player_id="+v;try{u=u.replace("api=0","api=1")}catch(d){}u+="&api=1",a.attr("src",u);var r=p.find("iframe")[0],w=setInterval(function(){$f!=e&&typeof $f(v).api!=e&&"undefined"!=typeof $f(v).api&&($f(r).addEvent("ready",function(){S(v,j)}),clearInterval(w))},100)}}),(Z()&&1==p.data("disablevideoonmobile")||s(8))&&p.find("video").remove(),p.find("video").length>0&&p.find("video").each(function(){var a=this,n=t(this);n.parent().hasClass("html5vid")||n.wrap('
');var o=n.parent();M(a,"loadedmetadata",function(t){t.data("metaloaded",1)}(o)),clearInterval(o.data("interval")),o.data("interval",setInterval(function(){if(1==o.data("metaloaded")||0/0!=a.duration){if(clearInterval(o.data("interval")),!o.hasClass("HasListener")){o.addClass("HasListener"),"none"!=p.data("dottedoverlay")&&p.data("dottedoverlay")!=e&&1!=p.find(".tp-dottedoverlay").length&&o.append('
'),n.attr("control")==e&&(0==o.find(".tp-video-play-button").length&&o.append('
'),o.parent().find("video, .tp-poster, .tp-thumb-image, .tp-video-play-button").click(function(){o.hasClass("videoisplaying")?a.pause():(a.play(),punchgs.TweenLite.to(o.parent().find(".tp-poster, .tp-thumb-image"),.2,{autoAlpha:0}))})),(1==p.data("forcecover")||p.hasClass("fullscreenvideo"))&&(1==p.data("forcecover")&&(P(o,i.container),o.addClass("fullcoveredvideo"),p.addClass("fullcoveredvideo")),o.css({width:"100%",height:"100%"}));var t=p.find(".tp-vid-play-pause")[0],r=p.find(".tp-vid-mute")[0],s=p.find(".tp-vid-full-screen")[0],d=p.find(".tp-seek-bar")[0],l=p.find(".tp-volume-bar")[0];t!=e&&(M(t,"click",function(){1==a.paused?a.play():a.pause()}),M(r,"click",function(){0==a.muted?(a.muted=!0,r.innerHTML="Unmute"):(a.muted=!1,r.innerHTML="Mute")}),M(s,"click",function(){a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen()}),M(d,"change",function(){var t=a.duration*(d.value/100);a.currentTime=t}),M(a,"timeupdate",function(){var t=100/a.duration*a.currentTime;d.value=t}),M(d,"mousedown",function(){a.pause()}),M(d,"mouseup",function(){a.play()}),M(l,"change",function(){a.volume=l.value})),M(a,"play",function(){"mute"==p.data("volume")&&(a.muted=!0),o.addClass("videoisplaying"),"loopandnoslidestop"==p.data("videoloop")?(i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop")):(i.videoplaying=!0,i.container.trigger("stoptimer"),i.container.trigger("revolution.slide.onvideoplay"));var t=p.find(".tp-vid-play-pause")[0],n=p.find(".tp-vid-mute")[0];t!=e&&(t.innerHTML="Pause"),n!=e&&a.muted&&(n.innerHTML="Unmute")}),M(a,"pause",function(){o.removeClass("videoisplaying"),i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop");var t=p.find(".tp-vid-play-pause")[0];t!=e&&(t.innerHTML="Play")}),M(a,"ended",function(){o.removeClass("videoisplaying"),i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop"),1==i.nextslideatend&&i.container.revnext()})}var h=!1;(1==p.data("autoplayonlyfirsttime")||"true"==p.data("autoplayonlyfirsttime"))&&(h=!0);var c=16/9;if("4:3"==p.data("aspectratio")&&(c=4/3),o.data("mediaAspect",c),1==o.closest(".tp-caption").data("forcecover")&&(P(o,i.container),o.addClass("fullcoveredvideo")),n.css({display:"block"}),i.nextslideatend=p.data("nextslideatend"),"on"!=p.data("forcerewind")||o.hasClass("videoisplaying")||a.currentTime>0&&(a.currentTime=0),(1==p.data("autoplay")||1==h)&&("loopandnoslidestop"==p.data("videoloop")?(i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop")):(i.videoplaying=!0,i.container.trigger("stoptimer"),i.container.trigger("revolution.slide.onvideoplay")),"on"!=p.data("forcerewind")||o.hasClass("videoisplaying")||a.currentTime>0&&(a.currentTime=0),"mute"==p.data("volume")&&(a.muted=!0),o.data("timerplay",setTimeout(function(){"on"!=p.data("forcerewind")||o.hasClass("videoisplaying")||a.currentTime>0&&(a.currentTime=0),"mute"==p.data("volume")&&(a.muted=!0),a.play()},10+p.data("start")))),o.data("ww")==e&&o.data("ww",n.attr("width")),o.data("hh")==e&&o.data("hh",n.attr("height")),!p.hasClass("fullscreenvideo")&&1==p.data("forcecover"))try{o.width(o.data("ww")*i.bw),o.height(o.data("hh")*i.bh)}catch(u){}clearInterval(o.data("interval"))}}),100)}),1==p.data("autoplay")&&(setTimeout(function(){"loopandnoslidestop"!=p.data("videoloop")&&(i.videoplaying=!0,i.container.trigger("stoptimer"))},200),"loopandnoslidestop"!=p.data("videoloop")&&(i.videoplaying=!0,i.container.trigger("stoptimer")),(1==p.data("autoplayonlyfirsttime")||"true"==p.data("autoplayonlyfirsttime"))&&(p.data("autoplay",!1),p.data("autoplayonlyfirsttime",!1)))}var U=0,N=0;if(p.find("img").length>0){var G=p.find("img");0==G.width()&&G.css({width:"auto"}),0==G.height()&&G.css({height:"auto"}),G.data("ww")==e&&G.width()>0&&G.data("ww",G.width()),G.data("hh")==e&&G.height()>0&&G.data("hh",G.height());var $=G.data("ww"),J=G.data("hh");$==e&&($=0),J==e&&(J=0),G.width($*i.bw),G.height(J*i.bh),U=G.width(),N=G.height()}else if(p.find("iframe").length>0||p.find("video").length>0){var Q=!1,G=p.find("iframe");0==G.length&&(G=p.find("video"),Q=!0),G.css({display:"block"}),p.data("ww")==e&&p.data("ww",G.width()),p.data("hh")==e&&p.data("hh",G.height());var $=p.data("ww"),J=p.data("hh"),K=p;K.data("fsize")==e&&K.data("fsize",parseInt(K.css("font-size"),0)||0),K.data("pt")==e&&K.data("pt",parseInt(K.css("paddingTop"),0)||0),K.data("pb")==e&&K.data("pb",parseInt(K.css("paddingBottom"),0)||0),K.data("pl")==e&&K.data("pl",parseInt(K.css("paddingLeft"),0)||0),K.data("pr")==e&&K.data("pr",parseInt(K.css("paddingRight"),0)||0),K.data("mt")==e&&K.data("mt",parseInt(K.css("marginTop"),0)||0),K.data("mb")==e&&K.data("mb",parseInt(K.css("marginBottom"),0)||0),K.data("ml")==e&&K.data("ml",parseInt(K.css("marginLeft"),0)||0),K.data("mr")==e&&K.data("mr",parseInt(K.css("marginRight"),0)||0),K.data("bt")==e&&K.data("bt",parseInt(K.css("borderTop"),0)||0),K.data("bb")==e&&K.data("bb",parseInt(K.css("borderBottom"),0)||0),K.data("bl")==e&&K.data("bl",parseInt(K.css("borderLeft"),0)||0),K.data("br")==e&&K.data("br",parseInt(K.css("borderRight"),0)||0),K.data("lh")==e&&K.data("lh",parseInt(K.css("lineHeight"),0)||0),"auto"==K.data("lh")&&K.data("lh",K.data("fsize")+4);var te=i.width,ee=i.height;if(te>i.startwidth&&(te=i.startwidth),ee>i.startheight&&(ee=i.startheight),p.hasClass("fullscreenvideo")){h=0,c=0,p.data("x",0),p.data("y",0);var ae=i.height;"on"==i.autoHeight&&(ae=i.container.height()),p.css({width:i.width,height:ae})}else p.css({"font-size":K.data("fsize")*i.bw+"px","padding-top":K.data("pt")*i.bh+"px","padding-bottom":K.data("pb")*i.bh+"px","padding-left":K.data("pl")*i.bw+"px","padding-right":K.data("pr")*i.bw+"px","margin-top":K.data("mt")*i.bh+"px","margin-bottom":K.data("mb")*i.bh+"px","margin-left":K.data("ml")*i.bw+"px","margin-right":K.data("mr")*i.bw+"px","border-top":K.data("bt")*i.bh+"px","border-bottom":K.data("bb")*i.bh+"px","border-left":K.data("bl")*i.bw+"px","border-right":K.data("br")*i.bw+"px","line-height":K.data("lh")*i.bh+"px",height:J*i.bh+"px"});0==Q?(G.width($*i.bw),G.height(J*i.bh)):1==p.data("forcecover")||p.hasClass("fullscreenvideo")||(G.width($*i.bw),G.height(J*i.bh)),U=G.width(),N=G.height()}else{p.find(".tp-resizeme, .tp-resizeme *").each(function(){F(t(this),i)}),p.hasClass("tp-resizeme")&&p.find("*").each(function(){F(t(this),i)}),F(p,i),N=p.outerHeight(!0),U=p.outerWidth(!0);var ie=p.outerHeight(),ne=p.css("backgroundColor");p.find(".frontcorner").css({borderWidth:ie+"px",left:0-ie+"px",borderRight:"0px solid transparent",borderTopColor:ne}),p.find(".frontcornertop").css({borderWidth:ie+"px",left:0-ie+"px",borderRight:"0px solid transparent",borderBottomColor:ne}),p.find(".backcorner").css({borderWidth:ie+"px",right:0-ie+"px",borderLeft:"0px solid transparent",borderBottomColor:ne}),p.find(".backcornertop").css({borderWidth:ie+"px",right:0-ie+"px",borderLeft:"0px solid transparent",borderTopColor:ne})}"on"==i.fullScreenAlignForce&&(h=0,c=0),p.data("voffset")==e&&p.data("voffset",0),p.data("hoffset")==e&&p.data("hoffset",0);var oe=p.data("voffset")*g,re=p.data("hoffset")*g,se=i.startwidth*g,de=i.startheight*g;"on"==i.fullScreenAlignForce&&(se=i.container.width(),de=i.container.height()),("center"==p.data("x")||"center"==p.data("xcenter"))&&(p.data("xcenter","center"),p.data("x",se/2-p.outerWidth(!0)/2+re)),("left"==p.data("x")||"left"==p.data("xleft"))&&(p.data("xleft","left"),p.data("x",0/g+re)),("right"==p.data("x")||"right"==p.data("xright"))&&(p.data("xright","right"),p.data("x",(se-p.outerWidth(!0)+re)/g)),("center"==p.data("y")||"center"==p.data("ycenter"))&&(p.data("ycenter","center"),p.data("y",de/2-p.outerHeight(!0)/2+oe)),("top"==p.data("y")||"top"==p.data("ytop"))&&(p.data("ytop","top"),p.data("y",0/i.bh+oe)),("bottom"==p.data("y")||"bottom"==p.data("ybottom"))&&(p.data("ybottom","bottom"),p.data("y",(de-p.outerHeight(!0)+oe)/g)),p.data("start")==e&&p.data("start",1e3);var le=p.data("easing");le==e&&(le="punchgs.Power1.easeOut");var he=p.data("start")/1e3,ce=p.data("speed")/1e3;if("center"==p.data("x")||"center"==p.data("xcenter"))var pe=p.data("x")+h;else var pe=g*p.data("x")+h;if("center"==p.data("y")||"center"==p.data("ycenter"))var ue=p.data("y")+c;else var ue=i.bh*p.data("y")+c;if(punchgs.TweenLite.set(p,{top:ue,left:pe,overwrite:"auto"}),0==l&&(o=!0),p.data("timeline")==e||o||(2!=l&&p.data("timeline").gotoAndPlay(0),o=!0),!o){p.data("timeline")!=e;var fe=new punchgs.TimelineLite({smoothChildTiming:!0,onStart:d});fe.pause(),"on"==i.fullScreenAlignForce;var ge=p;p.data("mySplitText")!=e&&p.data("mySplitText").revert(),("chars"==p.data("splitin")||"words"==p.data("splitin")||"lines"==p.data("splitin")||"chars"==p.data("splitout")||"words"==p.data("splitout")||"lines"==p.data("splitout"))&&(p.find("a").length>0?p.data("mySplitText",new punchgs.SplitText(p.find("a"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):p.find(".tp-layer-inner-rotation").length>0?p.data("mySplitText",new punchgs.SplitText(p.find(".tp-layer-inner-rotation"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):p.data("mySplitText",new punchgs.SplitText(p,{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})),p.addClass("splitted")),"chars"==p.data("splitin")&&(ge=p.data("mySplitText").chars),"words"==p.data("splitin")&&(ge=p.data("mySplitText").words),"lines"==p.data("splitin")&&(ge=p.data("mySplitText").lines);var me=D(),ve=D();p.data("repeat")!=e&&(repeatV=p.data("repeat")),p.data("yoyo")!=e&&(yoyoV=p.data("yoyo")),p.data("repeatdelay")!=e&&(repeatdelayV=p.data("repeatdelay"));var we=p.attr("class");we.match("customin")?me=H(me,p.data("customin")):we.match("randomrotate")?(me.scale=3*Math.random()+1,me.rotation=Math.round(200*Math.random()-100),me.x=Math.round(200*Math.random()-100),me.y=Math.round(200*Math.random()-100)):we.match("lfr")||we.match("skewfromright")?me.x=15+i.width:we.match("lfl")||we.match("skewfromleft")?me.x=-15-U:we.match("sfl")||we.match("skewfromleftshort")?me.x=-50:we.match("sfr")||we.match("skewfromrightshort")?me.x=50:we.match("lft")?me.y=-25-N:we.match("lfb")?me.y=25+i.height:we.match("sft")?me.y=-50:we.match("sfb")&&(me.y=50),we.match("skewfromright")||p.hasClass("skewfromrightshort")?me.skewX=-85:(we.match("skewfromleft")||p.hasClass("skewfromleftshort"))&&(me.skewX=85),(we.match("fade")||we.match("sft")||we.match("sfl")||we.match("sfb")||we.match("skewfromleftshort")||we.match("sfr")||we.match("skewfromrightshort"))&&(me.opacity=0),"safari"==X().toLowerCase();var be=p.data("elementdelay")==e?0:p.data("elementdelay");ve.ease=me.ease=p.data("easing")==e?punchgs.Power1.easeInOut:p.data("easing"),me.data=new Object,me.data.oldx=me.x,me.data.oldy=me.y,ve.data=new Object,ve.data.oldx=ve.x,ve.data.oldy=ve.y,me.x=me.x*g,me.y=me.y*g;var ye=new punchgs.TimelineLite;if(2!=l)if(we.match("customin"))ge!=p&&fe.add(punchgs.TweenLite.set(p,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",delay:0,overwrite:"all"})),me.visibility="hidden",ve.visibility="visible",ve.overwrite="all",ve.opacity=1,ve.onComplete=r(),ve.delay=he,ve.force3D="auto",fe.add(ye.staggerFromTo(ge,ce,me,ve,be),"frame0");else if(me.visibility="visible",me.transformPerspective=600,ge!=p&&fe.add(punchgs.TweenLite.set(p,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",delay:0,overwrite:"all"})),ve.visibility="visible",ve.delay=he,ve.onComplete=r(),ve.opacity=1,ve.force3D="auto",we.match("randomrotate")&&ge!=p)for(var a=0;a0){var a=W(e);V(p,i,a,"frame"+(t+10),g)}})}fe=p.data("timeline"),p.data("end")==e||-1!=l&&2!=l?-1==l||2==l?q(p,i,999999,me,"frame99",g):q(p,i,999999,me,"frame99",g):q(p,i,p.data("end")/1e3,me,"frame99",g),fe=p.data("timeline"),p.data("timeline",fe),Y(p,g),fe.resume()}}if(o&&(R(p),Y(p,g),p.data("timeline")!=e)){var Ce=p.data("timeline").getTweensOf();t.each(Ce,function(t,a){if(a.vars.data!=e){var i=a.vars.data.oldx*g,n=a.vars.data.oldy*g;if(1!=a.progress()&&0!=a.progress())try{a.vars.x=i,a.vary.y=n}catch(o){}else 1==a.progress()&&punchgs.TweenLite.set(a.target,{x:i,y:n})}})}});var f=t("body").find("#"+i.container.attr("id")).find(".tp-bannertimer");f.data("opt",i),o!=e&&setTimeout(function(){o.resume()},30)},X=function(){var t,e=navigator.appName,a=navigator.userAgent,i=a.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return i&&null!=(t=a.match(/version\/([\.\d]+)/i))&&(i[2]=t[1]),i=i?[i[1],i[2]]:[e,navigator.appVersion,"-?"],i[0]},F=function(t,a){t.data("fsize")==e&&t.data("fsize",parseInt(t.css("font-size"),0)||0),t.data("pt")==e&&t.data("pt",parseInt(t.css("paddingTop"),0)||0),t.data("pb")==e&&t.data("pb",parseInt(t.css("paddingBottom"),0)||0),t.data("pl")==e&&t.data("pl",parseInt(t.css("paddingLeft"),0)||0),t.data("pr")==e&&t.data("pr",parseInt(t.css("paddingRight"),0)||0),t.data("mt")==e&&t.data("mt",parseInt(t.css("marginTop"),0)||0),t.data("mb")==e&&t.data("mb",parseInt(t.css("marginBottom"),0)||0),t.data("ml")==e&&t.data("ml",parseInt(t.css("marginLeft"),0)||0),t.data("mr")==e&&t.data("mr",parseInt(t.css("marginRight"),0)||0),t.data("bt")==e&&t.data("bt",parseInt(t.css("borderTopWidth"),0)||0),t.data("bb")==e&&t.data("bb",parseInt(t.css("borderBottomWidth"),0)||0),t.data("bl")==e&&t.data("bl",parseInt(t.css("borderLeftWidth"),0)||0),t.data("br")==e&&t.data("br",parseInt(t.css("borderRightWidth"),0)||0),t.data("ls")==e&&t.data("ls",parseInt(t.css("letterSpacing"),0)||0),t.data("lh")==e&&t.data("lh",parseInt(t.css("lineHeight"),0)||"auto"),t.data("minwidth")==e&&t.data("minwidth",parseInt(t.css("minWidth"),0)||0),t.data("minheight")==e&&t.data("minheight",parseInt(t.css("minHeight"),0)||0),t.data("maxwidth")==e&&t.data("maxwidth",parseInt(t.css("maxWidth"),0)||"none"),t.data("maxheight")==e&&t.data("maxheight",parseInt(t.css("maxHeight"),0)||"none"),t.data("wii")==e&&t.data("wii",parseInt(t.css("width"),0)||0),t.data("hii")==e&&t.data("hii",parseInt(t.css("height"),0)||0),t.data("wan")==e&&t.data("wan",t.css("-webkit-transition")),t.data("moan")==e&&t.data("moan",t.css("-moz-animation-transition")),t.data("man")==e&&t.data("man",t.css("-ms-animation-transition")),t.data("ani")==e&&t.data("ani",t.css("transition")),"auto"==t.data("lh")&&t.data("lh",t.data("fsize")+4),t.hasClass("tp-splitted")||(t.css("-webkit-transition","none"),t.css("-moz-transition","none"),t.css("-ms-transition","none"),t.css("transition","none"),punchgs.TweenLite.set(t,{fontSize:Math.round(t.data("fsize")*a.bw)+"px",letterSpacing:Math.floor(t.data("ls")*a.bw)+"px",paddingTop:Math.round(t.data("pt")*a.bh)+"px",paddingBottom:Math.round(t.data("pb")*a.bh)+"px",paddingLeft:Math.round(t.data("pl")*a.bw)+"px",paddingRight:Math.round(t.data("pr")*a.bw)+"px",marginTop:t.data("mt")*a.bh+"px",marginBottom:t.data("mb")*a.bh+"px",marginLeft:t.data("ml")*a.bw+"px",marginRight:t.data("mr")*a.bw+"px",borderTopWidth:Math.round(t.data("bt")*a.bh)+"px",borderBottomWidth:Math.round(t.data("bb")*a.bh)+"px",borderLeftWidth:Math.round(t.data("bl")*a.bw)+"px",borderRightWidth:Math.round(t.data("br")*a.bw)+"px",lineHeight:Math.round(t.data("lh")*a.bh)+"px",minWidth:t.data("minwidth")*a.bw+"px",minHeight:t.data("minheight")*a.bh+"px",overwrite:"auto"}),setTimeout(function(){t.css("-webkit-transition",t.data("wan")),t.css("-moz-transition",t.data("moan")),t.css("-ms-transition",t.data("man")),t.css("transition",t.data("ani"))},30),"none"!=t.data("maxheight")&&t.css({maxHeight:t.data("maxheight")*a.bh+"px"}),"none"!=t.data("maxwidth")&&t.css({maxWidth:t.data("maxwidth")*a.bw+"px"}))},Y=function(a,i){a.find(".rs-pendulum").each(function(){var a=t(this);if(a.data("timeline")==e){a.data("timeline",new punchgs.TimelineLite);var n=a.data("startdeg")==e?-20:a.data("startdeg"),o=a.data("enddeg")==e?20:a.data("enddeg"),r=a.data("speed")==e?2:a.data("speed"),s=a.data("origin")==e?"50% 50%":a.data("origin"),d=a.data("easing")==e?punchgs.Power2.easeInOut:a.data("ease");n*=i,o*=i,a.data("timeline").append(new punchgs.TweenLite.fromTo(a,r,{force3D:"auto",rotation:n,transformOrigin:s},{rotation:o,ease:d})),a.data("timeline").append(new punchgs.TweenLite.fromTo(a,r,{force3D:"auto",rotation:o,transformOrigin:s},{rotation:n,ease:d,onComplete:function(){a.data("timeline").restart()}}))}}),a.find(".rs-rotate").each(function(){var a=t(this);if(a.data("timeline")==e){a.data("timeline",new punchgs.TimelineLite);var n=a.data("startdeg")==e?0:a.data("startdeg"),o=a.data("enddeg")==e?360:a.data("enddeg");speed=a.data("speed")==e?2:a.data("speed"),origin=a.data("origin")==e?"50% 50%":a.data("origin"),easing=a.data("easing")==e?punchgs.Power2.easeInOut:a.data("easing"),n*=i,o*=i,a.data("timeline").append(new punchgs.TweenLite.fromTo(a,speed,{force3D:"auto",rotation:n,transformOrigin:origin},{rotation:o,ease:easing,onComplete:function(){a.data("timeline").restart()}}))}}),a.find(".rs-slideloop").each(function(){var a=t(this);if(a.data("timeline")==e){a.data("timeline",new punchgs.TimelineLite);var n=a.data("xs")==e?0:a.data("xs"),o=a.data("ys")==e?0:a.data("ys"),r=a.data("xe")==e?0:a.data("xe"),s=a.data("ye")==e?0:a.data("ye"),d=a.data("speed")==e?2:a.data("speed"),l=a.data("easing")==e?punchgs.Power2.easeInOut:a.data("easing");n*=i,o*=i,r*=i,s*=i,a.data("timeline").append(new punchgs.TweenLite.fromTo(a,d,{force3D:"auto",x:n,y:o},{x:r,y:s,ease:l})),a.data("timeline").append(new punchgs.TweenLite.fromTo(a,d,{force3D:"auto",x:r,y:s},{x:n,y:o,onComplete:function(){a.data("timeline").restart()}}))}}),a.find(".rs-pulse").each(function(){var a=t(this);if(a.data("timeline")==e){a.data("timeline",new punchgs.TimelineLite);var i=a.data("zoomstart")==e?0:a.data("zoomstart"),n=a.data("zoomend")==e?0:a.data("zoomend"),o=a.data("speed")==e?2:a.data("speed"),r=a.data("easing")==e?punchgs.Power2.easeInOut:a.data("easing");a.data("timeline").append(new punchgs.TweenLite.fromTo(a,o,{force3D:"auto",scale:i},{scale:n,ease:r})),a.data("timeline").append(new punchgs.TweenLite.fromTo(a,o,{force3D:"auto",scale:n},{scale:i,onComplete:function(){a.data("timeline").restart()}}))}}),a.find(".rs-wave").each(function(){var a=t(this);if(a.data("timeline")==e){a.data("timeline",new punchgs.TimelineLite);{var n=a.data("angle")==e?10:a.data("angle"),o=a.data("radius")==e?10:a.data("radius"),r=a.data("speed")==e?-20:a.data("speed");a.data("origin")==e?-20:a.data("origin")}n*=i,o*=i;var s={a:0,ang:n,element:a,unit:o};a.data("timeline").append(new punchgs.TweenLite.fromTo(s,r,{a:360},{a:0,force3D:"auto",ease:punchgs.Linear.easeNone,onUpdate:function(){var t=s.a*(Math.PI/180);punchgs.TweenLite.to(s.element,.1,{force3D:"auto",x:Math.cos(t)*s.unit,y:s.unit*(1-Math.sin(t))})},onComplete:function(){a.data("timeline").restart()}}))}})},R=function(a){a.find(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function(){var a=t(this);a.data("timeline")!=e&&(a.data("timeline").pause(),a.data("timeline",null))})},B=function(a,i){var n=0,o=a.find(".tp-caption"),r=i.container.find(".tp-static-layers").find(".tp-caption");return t.each(r,function(t,e){o.push(e)}),o.each(function(){var a=-1,o=t(this);if(o.hasClass("tp-static-layer")&&((-1==o.data("startslide")||"-1"==o.data("startslide"))&&o.data("startslide",0),(-1==o.data("endslide")||"-1"==o.data("endslide"))&&o.data("endslide",i.slideamount),o.hasClass("tp-is-shown")?o.data("startslide")>i.next||o.data("endslide")0){punchgs.TweenLite.to(o.find("iframe"),.2,{autoAlpha:0}),Z()&&o.find("iframe").remove();try{var r=o.find("iframe"),s=r.attr("id"),d=$f(s);d.api("pause"),clearTimeout(o.data("timerplay"))}catch(l){}try{var h=o.data("player");h.stopVideo(),clearTimeout(o.data("timerplay"))}catch(l){}}if(o.find("video").length>0)try{o.find("video").each(function(){{var e=t(this).parent();e.attr("id")}clearTimeout(e.data("timerplay"));var a=this;a.pause()})}catch(l){}try{var c=o.data("timeline"),p=c.getLabelTime("frame99"),u=c.time();if(p>u){var f=c.getTweensOf(o);if(t.each(f,function(t,e){0!=t&&e.pause()}),0!=o.css("opacity")){var g=o.data(o.data("endspeed")==e?"speed":"endspeed");g>n&&(n=g),c.play("frame99")}else c.progress(1,!1)}}catch(l){}}}),n},V=function(t,a,i,n,o){var r=t.data("timeline"),s=new punchgs.TimelineLite,d=t;"chars"==i.typ?d=t.data("mySplitText").chars:"words"==i.typ?d=t.data("mySplitText").words:"lines"==i.typ&&(d=t.data("mySplitText").lines),i.animation.ease=i.ease,i.animation.rotationZ!=e&&(i.animation.rotation=i.animation.rotationZ),i.animation.data=new Object,i.animation.data.oldx=i.animation.x,i.animation.data.oldy=i.animation.y,i.animation.x=i.animation.x*o,i.animation.y=i.animation.y*o,r.add(s.staggerTo(d,i.speed,i.animation,i.elementdelay),i.start),r.addLabel(n,i.start),t.data("timeline",r)},q=function(t,a,i,n,o,r){var s=t.data("timeline"),d=new punchgs.TimelineLite,l=D(),h=t.data(t.data("endspeed")==e?"speed":"endspeed"),c=t.attr("class");if(l.ease=t.data("endeasing")==e?punchgs.Power1.easeInOut:t.data("endeasing"),h/=1e3,c.match("ltr")||c.match("ltl")||c.match("str")||c.match("stl")||c.match("ltt")||c.match("ltb")||c.match("stt")||c.match("stb")||c.match("skewtoright")||c.match("skewtorightshort")||c.match("skewtoleft")||c.match("skewtoleftshort")||c.match("fadeout")||c.match("randomrotateout")){c.match("skewtoright")||c.match("skewtorightshort")?l.skewX=35:(c.match("skewtoleft")||c.match("skewtoleftshort"))&&(l.skewX=-35),c.match("ltr")||c.match("skewtoright")?l.x=a.width+60:c.match("ltl")||c.match("skewtoleft")?l.x=0-(a.width+60):c.match("ltt")?l.y=0-(a.height+60):c.match("ltb")?l.y=a.height+60:c.match("str")||c.match("skewtorightshort")?(l.x=50,l.opacity=0):c.match("stl")||c.match("skewtoleftshort")?(l.x=-50,l.opacity=0):c.match("stt")?(l.y=-50,l.opacity=0):c.match("stb")?(l.y=50,l.opacity=0):c.match("randomrotateout")?(l.x=Math.random()*a.width,l.y=Math.random()*a.height,l.scale=2*Math.random()+.3,l.rotation=360*Math.random()-180,l.opacity=0):c.match("fadeout")&&(l.opacity=0),c.match("skewtorightshort")?l.x=270:c.match("skewtoleftshort")&&(l.x=-270),l.data=new Object,l.data.oldx=l.x,l.data.oldy=l.y,l.x=l.x*r,l.y=l.y*r,l.overwrite="auto";var p=t,p=t;"chars"==t.data("splitout")?p=t.data("mySplitText").chars:"words"==t.data("splitout")?p=t.data("mySplitText").words:"lines"==t.data("splitout")&&(p=t.data("mySplitText").lines);var u=t.data("endelementdelay")==e?0:t.data("endelementdelay");s.add(d.staggerTo(p,h,l,u),i)}else if(t.hasClass("customout")){l=H(l,t.data("customout"));var p=t;"chars"==t.data("splitout")?p=t.data("mySplitText").chars:"words"==t.data("splitout")?p=t.data("mySplitText").words:"lines"==t.data("splitout")&&(p=t.data("mySplitText").lines);var u=t.data("endelementdelay")==e?0:t.data("endelementdelay");l.onStart=function(){punchgs.TweenLite.set(t,{transformPerspective:l.transformPerspective,transformOrigin:l.transformOrigin,overwrite:"auto"})},l.data=new Object,l.data.oldx=l.x,l.data.oldy=l.y,l.x=l.x*r,l.y=l.y*r,s.add(d.staggerTo(p,h,l,u),i)}else n.delay=0,s.add(punchgs.TweenLite.to(t,h,n),i);s.addLabel(o,i),t.data("timeline",s)},E=function(e,a){e.children().each(function(){try{t(this).die("click")}catch(e){}try{t(this).die("mouseenter") }catch(e){}try{t(this).die("mouseleave")}catch(e){}try{t(this).unbind("hover")}catch(e){}});try{e.die("click","mouseenter","mouseleave")}catch(i){}clearInterval(a.cdint),e=null},j=function(a,i){if(i.cd=0,i.loop=0,i.looptogo=i.stopAfterLoops!=e&&i.stopAfterLoops>-1?i.stopAfterLoops:9999999,i.lastslidetoshow=i.stopAtSlide!=e&&i.stopAtSlide>-1?i.stopAtSlide:999,i.stopLoop="off",0==i.looptogo&&(i.stopLoop="on"),i.slideamount>1&&(0!=i.stopAfterLoops||1!=i.stopAtSlide)){var n=a.find(".tp-bannertimer");a.on("stoptimer",function(){var e=t(this).find(".tp-bannertimer");e.data("tween").pause(),"on"==i.hideTimerBar&&e.css({visibility:"hidden"})}),a.on("starttimer",function(){1!=i.conthover&&1!=i.videoplaying&&i.width>i.hideSliderAtLimit&&1!=i.bannertimeronpause&&1!=i.overnav&&("on"==i.stopLoop&&i.next==i.lastslidetoshow-1||1==i.noloopanymore?i.noloopanymore=1:(n.css({visibility:"visible"}),n.data("tween").resume())),"on"==i.hideTimerBar&&n.css({visibility:"hidden"})}),a.on("restarttimer",function(){var e=t(this).find(".tp-bannertimer");"on"==i.stopLoop&&i.next==i.lastslidetoshow-1||1==i.noloopanymore?i.noloopanymore=1:(e.css({visibility:"visible"}),e.data("tween").kill(),e.data("tween",punchgs.TweenLite.fromTo(e,i.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:o,delay:1}))),"on"==i.hideTimerBar&&e.css({visibility:"hidden"})}),a.on("nulltimer",function(){n.data("tween").pause(0),"on"==i.hideTimerBar&&n.css({visibility:"hidden"})});var o=function(){0==t("body").find(a).length&&(E(a,i),clearInterval(i.cdint)),a.trigger("revolution.slide.slideatend"),1==a.data("conthover-changed")&&(i.conthover=a.data("conthover"),a.data("conthover-changed",0)),i.act=i.next,i.next=i.next+1,i.next>a.find(">ul >li").length-1&&(i.next=0,i.looptogo=i.looptogo-1,i.looptogo<=0&&(i.stopLoop="on")),"on"==i.stopLoop&&i.next==i.lastslidetoshow-1?(a.find(".tp-bannertimer").css({visibility:"hidden"}),a.trigger("revolution.slide.onstop"),i.noloopanymore=1):n.data("tween").restart(),L(a,i)};n.data("tween",punchgs.TweenLite.fromTo(n,i.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:o,delay:1})),n.data("opt",i),a.hover(function(){if("on"==i.onHoverStop&&!Z()){a.trigger("stoptimer"),a.trigger("revolution.slide.onpause");var n=a.find(">ul >li:eq("+i.next+") .slotholder");n.find(".defaultimg").each(function(){var a=t(this);a.data("kenburn")!=e&&a.data("kenburn").pause()})}},function(){if(1!=a.data("conthover")){a.trigger("revolution.slide.onresume"),a.trigger("starttimer");var n=a.find(">ul >li:eq("+i.next+") .slotholder");n.find(".defaultimg").each(function(){var a=t(this);a.data("kenburn")!=e&&a.data("kenburn").play()})}})}},Z=function(){var t=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"],e=!1;for(var a in t)navigator.userAgent.split(t[a]).length>1&&(e=!0);return e},U=function(t,e,a){var i=e.data("owidth"),n=e.data("oheight");if(i/n>a.width/a.height){var o=a.container.width()/i,r=n*o,s=r/a.container.height()*t;return t*=100/s,s=100,t=t,t+"% "+s+"% 1"}var o=a.container.width()/i,r=n*o,s=r/a.container.height()*t;return t+"% "+s+"%"},N=function(a,i,n,o){try{{a.find(">ul:first-child >li:eq("+i.act+")")}}catch(r){{a.find(">ul:first-child >li:eq(1)")}}i.lastslide=i.act;var d=a.find(">ul:first-child >li:eq("+i.next+")"),l=d.find(".slotholder"),h=l.data("bgposition"),c=l.data("bgpositionend"),p=l.data("zoomstart")/100,u=l.data("zoomend")/100,f=l.data("rotationstart"),g=l.data("rotationend"),m=l.data("bgfit"),v=l.data("bgfitend"),w=l.data("easeme"),b=l.data("duration")/1e3,y=100;m==e&&(m=100),v==e&&(v=100);var x=m,T=v;m=U(m,l,i),v=U(v,l,i),y=U(100,l,i),p==e&&(p=1),u==e&&(u=1),f==e&&(f=0),g==e&&(g=0),1>p&&(p=1),1>u&&(u=1);var k=new Object;k.w=parseInt(y.split(" ")[0],0),k.h=parseInt(y.split(" ")[1],0);var L=!1;"1"==y.split(" ")[2]&&(L=!0),l.find(".defaultimg").each(function(){var e=t(this);0==l.find(".kenburnimg").length?l.append('
'):l.find(".kenburnimg img").css({width:k.w+"%",height:k.h+"%"});var a=l.find(".kenburnimg img"),n=G(i,h,m,a,L),r=G(i,c,v,a,L);if(L&&(n.w=x/100,r.w=T/100),o){punchgs.TweenLite.set(a,{autoAlpha:0,transformPerspective:1200,transformOrigin:"0% 0%",top:0,left:0,scale:n.w,x:n.x,y:n.y});var d=n.w,p=d*a.width()-i.width,u=d*a.height()-i.height,f=Math.abs(n.x/p*100),y=Math.abs(n.y/u*100);0==u&&(y=0),0==p&&(f=0),e.data("bgposition",f+"% "+y+"%"),s(8)||e.data("currotate",$(a)),s(8)||e.data("curscale",k.w*d+"% "+(k.h*d+"%")),l.find(".kenburnimg").remove()}else e.data("kenburn",punchgs.TweenLite.fromTo(a,b,{autoAlpha:1,force3D:punchgs.force3d,transformOrigin:"0% 0%",top:0,left:0,scale:n.w,x:n.x,y:n.y},{autoAlpha:1,rotationZ:g,ease:w,x:r.x,y:r.y,scale:r.w,onUpdate:function(){var t=a[0]._gsTransform.scaleX,n=t*a.width()-i.width,o=t*a.height()-i.height,r=Math.abs(a[0]._gsTransform.x/n*100),d=Math.abs(a[0]._gsTransform.y/o*100);0==o&&(d=0),0==n&&(r=0),e.data("bgposition",r+"% "+d+"%"),s(8)||e.data("currotate",$(a)),s(8)||e.data("curscale",k.w*t+"% "+(k.h*t+"%"))}}))})},G=function(t,e,a,i,n){var o=new Object;switch(o.w=n?parseInt(a.split(" ")[1],0)/100:parseInt(a.split(" ")[0],0)/100,e){case"left top":case"top left":o.x=0,o.y=0;break;case"center top":case"top center":o.x=((0-i.width())*o.w+parseInt(t.width,0))/2,o.y=0;break;case"top right":case"right top":o.x=(0-i.width())*o.w+parseInt(t.width,0),o.y=0;break;case"center left":case"left center":o.x=0,o.y=((0-i.height())*o.w+parseInt(t.height,0))/2;break;case"center center":o.x=((0-i.width())*o.w+parseInt(t.width,0))/2,o.y=((0-i.height())*o.w+parseInt(t.height,0))/2;break;case"center right":case"right center":o.x=(0-i.width())*o.w+parseInt(t.width,0),o.y=((0-i.height())*o.w+parseInt(t.height,0))/2;break;case"bottom left":case"left bottom":o.x=0,o.y=(0-i.height())*o.w+parseInt(t.height,0);break;case"bottom center":case"center bottom":o.x=((0-i.width())*o.w+parseInt(t.width,0))/2,o.y=(0-i.height())*o.w+parseInt(t.height,0);break;case"bottom right":case"right bottom":o.x=(0-i.width())*o.w+parseInt(t.width,0),o.y=(0-i.height())*o.w+parseInt(t.height,0)}return o},$=function(t){var e=t.css("-webkit-transform")||t.css("-moz-transform")||t.css("-ms-transform")||t.css("-o-transform")||t.css("transform");if("none"!==e)var a=e.split("(")[1].split(")")[0].split(","),i=a[0],n=a[1],o=Math.round(Math.atan2(n,i)*(180/Math.PI));else var o=0;return 0>o?o+=360:o},J=function(a,i){try{var n=a.find(">ul:first-child >li:eq("+i.act+")")}catch(o){var n=a.find(">ul:first-child >li:eq(1)")}i.lastslide=i.act;{var r=a.find(">ul:first-child >li:eq("+i.next+")");n.find(".slotholder"),r.find(".slotholder")}a.find(".defaultimg").each(function(){var a=t(this);punchgs.TweenLite.killTweensOf(a,!1),punchgs.TweenLite.set(a,{scale:1,rotationZ:0}),punchgs.TweenLite.killTweensOf(a.data("kenburn img"),!1),a.data("kenburn")!=e&&a.data("kenburn").pause(),a.data("currotate")!=e&&a.data("bgposition")!=e&&a.data("curscale")!=e&&punchgs.TweenLite.set(a,{rotation:a.data("currotate"),backgroundPosition:a.data("bgposition"),backgroundSize:a.data("curscale")}),a!=e&&a.data("kenburn img")!=e&&a.data("kenburn img").length>0&&punchgs.TweenLite.set(a.data("kenburn img"),{autoAlpha:0})})},Q=function(a,i){return Z()&&"on"==i.parallaxDisableOnMobile?!1:(a.find(".tp-revslider-mainul >li").each(function(){for(var e=t(this),a=1;10>=a;a++)e.find(".rs-parallaxlevel-"+a).each(function(){var e=t(this);e.wrapInner('
')})}),("mouse"==i.parallax||"scroll+mouse"==i.parallax||"mouse+scroll"==i.parallax)&&(a.mouseenter(function(t){var e=a.find(".current-sr-slide-visible"),i=a.offset().top,n=a.offset().left,o=t.pageX-n,r=t.pageY-i;e.data("enterx",o),e.data("entery",r)}),a.on("mousemove.hoverdir, mouseleave.hoverdir",function(n){var o=a.find(".current-sr-slide-visible");switch(n.type){case"mousemove":var r=a.offset().top,s=a.offset().left;o.data("enterx")==e&&o.data("enterx",n.pageX-s),o.data("entery")==e&&o.data("entery",n.pageY-r);var d=o.data("enterx"),l=o.data("entery"),h=d-(n.pageX-s),c=l-(n.pageY-r);o.find(".tp-parallax-container").each(function(){var e=t(this),a=parseInt(e.data("parallaxlevel"),0)/100,n=h*a,o=c*a;"scroll+mouse"==i.parallax||"mouse+scroll"==i.parallax?punchgs.TweenLite.to(e,.4,{force3D:"auto",x:n,ease:punchgs.Power3.easeOut,overwrite:"all"}):punchgs.TweenLite.to(e,.4,{force3D:"auto",x:n,y:o,ease:punchgs.Power3.easeOut,overwrite:"all"})});break;case"mouseleave":o.find(".tp-parallax-container").each(function(){var e=t(this);"scroll+mouse"==i.parallax||"mouse+scroll"==i.parallax?punchgs.TweenLite.to(e,1.5,{force3D:"auto",x:0,ease:punchgs.Power3.easeOut}):punchgs.TweenLite.to(e,1.5,{force3D:"auto",x:0,y:0,ease:punchgs.Power3.easeOut})})}}),Z()&&(window.ondeviceorientation=function(e){var i=Math.round(e.beta||0),n=Math.round(e.gamma||0),o=a.find(".current-sr-slide-visible");if(t(window).width()>t(window).height()){var r=n;n=i,i=r}var s=360/a.width()*n,d=180/a.height()*i;o.find(".tp-parallax-container").each(function(){var e=t(this),a=parseInt(e.data("parallaxlevel"),0)/100,i=s*a,n=d*a;punchgs.TweenLite.to(e,.2,{force3D:"auto",x:i,y:n,ease:punchgs.Power3.easeOut})})})),void(("scroll"==i.parallax||"scroll+mouse"==i.parallax||"mouse+scroll"==i.parallax)&&t(window).on("scroll",function(){K(a,i)})))},K=function(e,a){if(Z()&&"on"==a.parallaxDisableOnMobile)return!1;var i=e.offset().top,n=t(window).scrollTop(),o=i+e.height()/2,r=i+e.height()/2-n,s=t(window).height()/2,d=s-r;s>o&&(d-=s-o);e.find(".current-sr-slide-visible");if(e.find(".tp-parallax-container").each(function(){var e=t(this),a=parseInt(e.data("parallaxlevel"),0)/100,i=d*a;e.data("parallaxoffset",i),punchgs.TweenLite.to(e,.2,{force3D:"auto",y:i,ease:punchgs.Power3.easeOut})}),"on"!=a.parallaxBgFreeze){var l=a.parallaxLevels[0]/100,h=d*l;punchgs.TweenLite.to(e,.2,{force3D:"auto",y:h,ease:punchgs.Power3.easeOut})}},te=function(a,i){var n=a.parent();("thumb"==i.navigationType||"both"==i.navsecond)&&n.append('
');var o=n.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),r=o.parent();r.width(i.thumbWidth*i.thumbAmount),r.height(i.thumbHeight),r.parent().width(i.thumbWidth*i.thumbAmount),r.parent().height(i.thumbHeight),a.find(">ul:first >li").each(function(t){var n=a.find(">ul:first >li:eq("+t+")"),r=n.find(".defaultimg").css("backgroundColor");if(n.data("thumb")!=e)var s=n.data("thumb");else var s=n.find("img:first").attr("src");o.append('
');o.find(".bullet:first")});var s=10;o.find(".bullet").each(function(e){var n=t(this);e==i.slideamount-1&&n.addClass("last"),0==e&&n.addClass("first"),n.width(i.thumbWidth),n.height(i.thumbHeight),sul:first >li").length,h=o.parent().width();i.thumbWidth=s,l>h&&(t(document).mousemove(function(e){t("body").data("mousex",e.pageX)}),o.parent().mouseenter(function(){var e=t(this),i=e.offset(),n=t("body").data("mousex")-i.left,o=e.width(),r=e.find(".bullet:first").outerWidth(!0),s=r*a.find(">ul:first >li").length,d=s-o+15,l=d/o;e.addClass("over"),n-=30;var h=0-n*l;h>0&&(h=0),0-s+o>h&&(h=0-s+o),ae(e,h,200)}),o.parent().mousemove(function(){var e=t(this),i=e.offset(),n=t("body").data("mousex")-i.left,o=e.width(),r=e.find(".bullet:first").outerWidth(!0),s=r*a.find(">ul:first >li").length-1,d=s-o+15,l=d/o;n-=3,6>n&&(n=0),n+3>o-6&&(n=o);var h=0-n*l;h>0&&(h=0),0-s+o>h&&(h=0-s+o),ae(e,h,0)}),o.parent().mouseleave(function(){var e=t(this);e.removeClass("over"),ee(a)}))},ee=function(t){var e=t.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),a=e.parent(),i=(a.offset(),a.find(".bullet:first").outerWidth(!0)),n=a.find(".bullet.selected").index()*i,o=a.width(),i=a.find(".bullet:first").outerWidth(!0),r=i*t.find(">ul:first >li").length,s=0-n;s>0&&(s=0),0-r+o>s&&(s=0-r+o),a.hasClass("over")||ae(a,s,200)},ae=function(t,e){punchgs.TweenLite.to(t.find(".tp-thumbcontainer"),.2,{force3D:"auto",left:e,ease:punchgs.Power3.easeOut,overwrite:"auto"})}}(jQuery); // source --> http://www.caddetesisat.com/wp-content/plugins/wp-date-remover/public/js/wp-date-remover-public.js?ver=1.0.0 (function( $ ) { 'use strict'; /** * All of the code for your public-facing JavaScript source * should reside in this file. * * Note: It has been assumed you will write jQuery code here, so the * $ function reference has been prepared for usage within the scope * of this function. * * This enables you to define handlers, for when the DOM is ready: * * $(function() { * * }); * * When the window is loaded: * * $( window ).load(function() { * * }); * * ...and/or other possibilities. * * Ideally, it is not considered best practise to attach more than a * single DOM-ready or window-load handler for a particular page. * Although scripts in the WordPress core, Plugins and Themes may be * practising this, we should strive to set a better example in our own work. */ })( jQuery ); // source --> http://www.caddetesisat.com/wp-content/plugins/otw-popping-content//include/otw_components/otw_overlay_shortcode/js/footable-0.1.js?ver=4.9 /*! * FooTable - Awesome Responsive Tables * http://themergency.com/footable * * Requires jQuery - http://jquery.com/ * * Copyright 2012 Steven Usher & Brad Vincent * Released under the MIT license * You are free to use FooTable in commercial projects as long as this copyright header is left intact. * * Date: 15 Nov 2012 */ (function ($, w, undefined) { w.footable = { options: { delay: 100, // The number of millseconds to wait before triggering the react event breakpoints: { // The different screen resolution breakpoints phone: 480, tablet: 1024 }, parsers: { // The default parser to parse the value out of a cell (values are used in building up row detail) alpha: function (cell) { return $(cell).data('value') || $.trim($(cell).text()); } }, toggleSelector: ' > tbody > tr:not(.footable-row-detail)', //the selector to show/hide the detail row createDetail: function (element, data) { //creates the contents of the detail row for (var i = 0; i < data.length; i++) { element.append('
' + data[i].name + ' : ' + data[i].display + '
'); } }, debug: false // Whether or not to log information to the console. }, version: { major: 0, minor: 1, toString: function () { return w.footable.version.major + '.' + w.footable.version.minor; }, parse: function (str) { version = /(\d+)\.?(\d+)?\.?(\d+)?/.exec(str); return { major: parseInt(version[1]) || 0, minor: parseInt(version[2]) || 0, patch: parseInt(version[3]) || 0 }; } }, plugins: { _validate: function (plugin) { ///Simple validation of the to make sure any members called by Foobox actually exist. ///The object defining the plugin, this should implement a string property called "name" and a function called "init". if (typeof plugin['name'] !== 'string') { if (w.footable.options.debug == true) console.error('Validation failed, plugin does not implement a string property called "name".', plugin); return false; } if (!$.isFunction(plugin['init'])) { if (w.footable.options.debug == true) console.error('Validation failed, plugin "' + plugin['name'] + '" does not implement a function called "init".', plugin); return false; } if (w.footable.options.debug == true) console.log('Validation succeeded for plugin "' + plugin['name'] + '".', plugin); return true; }, registered: [], // An array containing all registered plugins. register: function (plugin, options) { ///Registers a and its default with Foobox. ///The plugin that should implement a string property called "name" and a function called "init". ///The default options to merge with the Foobox's base options. if (w.footable.plugins._validate(plugin)) { w.footable.plugins.registered.push(plugin); if (options != undefined && typeof options === 'object') $.extend(true, w.footable.options, options); if (w.footable.options.debug == true) console.log('Plugin "' + plugin['name'] + '" has been registered with the Foobox.', plugin); } }, init: function (instance) { ///Loops through all registered plugins and calls the "init" method supplying the current of the Foobox as the first parameter. ///The current instance of the Foobox that the plugin is being initialized for. for(var i = 0; i < w.footable.plugins.registered.length; i++){ try { w.footable.plugins.registered[i]['init'](instance); } catch(err) { if (w.footable.options.debug == true) console.error(err); } } } } }; var instanceCount = 0; $.fn.footable = function(options) { ///The main constructor call to initialize the plugin using the supplied . /// ///A JSON object containing user defined options for the plugin to use. Any options not supplied will have a default value assigned. ///Check the documentation or the default options object above for more information on available options. /// options=options||{}; var o=$.extend(true,{},w.footable.options,options); //merge user and default options return this.each(function () { instanceCount++; this.footable = new Footable(this, o, instanceCount); }); }; //helper for using timeouts function Timer() { ///Simple timer object created around a timeout. var t=this; t.id=null; t.busy=false; t.start=function (code,milliseconds) { ///Starts the timer and waits the specified amount of before executing the supplied . ///The code to execute once the timer runs out. ///The time in milliseconds to wait before executing the supplied . if (t.busy) {return;} t.stop(); t.id=setTimeout(function () { code(); t.id=null; t.busy=false; },milliseconds); t.busy=true; }; t.stop=function () { ///Stops the timer if its runnning and resets it back to its starting state. if(t.id!=null) { clearTimeout(t.id); t.id=null; t.busy=false; } }; }; function Footable(t, o, id) { ///Inits a new instance of the plugin. ///The main table element to apply this plugin to. ///The options supplied to the plugin. Check the defaults object to see all available options. ///The id to assign to this instance of the plugin. var ft = this; ft.id = id; ft.table = t; ft.options = o; ft.breakpoints = []; ft.breakpointNames = ''; ft.columns = { }; // This object simply houses all the timers used in the footable. ft.timers = { resize: new Timer(), register: function (name) { ft.timers[name] = new Timer(); return ft.timers[name]; } }; w.footable.plugins.init(ft); ft.init = function() { var $window = $(w), $table = $(ft.table).addClass('footable-loading'); // Get the column data once for the life time of the plugin $table.find('> thead > tr > th').each(function() { var data = ft.getColumnData(this); ft.columns[data.index] = data; }); // Create a nice friendly array to work with out of the breakpoints object. for(var name in ft.options.breakpoints) { ft.breakpoints.push({ 'name': name, 'width': ft.options.breakpoints[name] }); ft.breakpointNames += (name + ' '); } // Sort the breakpoints so the smallest is checked first ft.breakpoints.sort(function(a, b) { return a['width'] - b['width']; }); $table.on('click', ft.options.toggleSelector, function (e) { if ($table.is('.breakpoint')) { var $row = $(this).is('tr') ? $(this) : $(this).parents('tr:first'); ft.toggleDetail($row.get(0)); } }); ft.raise('footable_initializing'); $table.on('footable_initialized', function (e) { //resize the footable onload ft.resize(); //remove the loading class $table.removeClass('footable-loading'); //hides all elements within the table that have the attribute data-hide="init" $table.find('[data-init="hide"]').hide(); $table.find('[data-init="show"]').show(); }); $window .bind('resize.footable', function () { ft.timers.resize.stop(); ft.timers.resize.start(function() { ft.raise('footable_resizing'); ft.resize(); ft.raise('footable_resized'); }, ft.options.delay); }); ft.raise('footable_initialized'); }; ft.parse = function(cell, column) { var parser = ft.options.parsers[column.type] || ft.options.parsers.alpha; return parser(cell); }; ft.getColumnData = function(th) { var $th = $(th), hide = $th.data('hide'); hide = hide || ''; hide = hide.split(','); var data = { 'index': $th.index(), 'hide': { }, 'type': $th.data('type') || 'alpha', 'name': $th.data('name') || $.trim($th.text()), 'ignore': $th.data('ignore') || false, 'className': $th.data('class') || null }; data.hide['default'] = ($.inArray('default', hide) >= 0); for(var name in ft.options.breakpoints) { data.hide[name] = ($.inArray(name, hide) >= 0); } var e = ft.raise('footable_column_data', { 'column': { 'data': data, 'th': th } }); return e.column.data; }; ft.resize = function() { var $table = $(ft.table); var info = { 'width': $table.width(), //no longer looks at the window width 'height': $table.height(), //no longer looks at the window height 'orientation': null }; info.orientation = info.width > info.height ? 'landscape' : 'portrait'; var pinfo = $table.data('footable_info'); $table.data('footable_info', info); // This (if) statement is here purely to make sure events aren't raised twice as mobile safari seems to do if (!pinfo || ((pinfo && pinfo.width && pinfo.width != info.width) || (pinfo && pinfo.height && pinfo.height != info.height))) { var current = null, breakpoint; for (var i = 0; i < ft.breakpoints.length; i++) { breakpoint = ft.breakpoints[i]; if (breakpoint && breakpoint.width && info.width <= breakpoint.width) { current = breakpoint; break; } } var breakpointName = (current == null ? 'default' : current['name']); $table .removeClass('default breakpoint').removeClass(ft.breakpointNames) .addClass(breakpointName + (current == null ? '' : ' breakpoint')) .find('> thead > tr > th').each(function() { var data = ft.columns[$(this).index()]; var count = data.index + 1; //get all the cells in the column var $column = $table.find('> tbody > tr > td:nth-child(' + count + ')').add(this); if (data.className != null) $column.not(this).not('.footable-cell-detail').addClass(data.className); if (data.hide[breakpointName] == false) $column.show(); else $column.hide(); }) .end() .find('> tbody > tr.footable-detail-show').each(function() { ft.createOrUpdateDetailRow(this); }); $table.find('> tbody > tr.footable-detail-show').each(function() { var $next = $(this).next(); if ($next.hasClass('footable-row-detail')) { if (breakpointName == 'default') $next.hide(); else $next.show(); } }); ft.raise('footable_breakpoint_' + breakpointName, { 'info': info }); } }; ft.toggleDetail = function(actualRow) { var $row = $(actualRow), created = ft.createOrUpdateDetailRow($row.get(0)), $next = $row.next(); if (!created && $next.is(':visible')) { $row.removeClass('footable-detail-show'); $next.hide(); } else { $row.addClass('footable-detail-show'); $next.show(); } }; ft.createOrUpdateDetailRow = function (actualRow) { var $row = $(actualRow), $next = $row.next(), $detail, values = []; $row.find('> td:hidden').each(function () { var column = ft.columns[$(this).index()]; if (column.ignore == true) return true; values.push({ 'name': column.name, 'value': ft.parse(this, column), 'display': $.trim($(this).html()) }); }); var colspan = $row.find('> td:visible').length; var exists = $next.hasClass('footable-row-detail'); if (!exists) { // Create $next = $('
'); $row.after($next); } $next.find('> td:first').attr('colspan', colspan); $detail = $next.find('.footable-row-detail-inner').empty(); ft.options.createDetail($detail, values); return !exists; }; ft.raise = function(eventName, args) { args = args || { }; var def = { 'ft': ft }; $.extend(true, def, args); var e = $.Event(eventName, def); $(ft.table).trigger(e); return e; }; ft.init(); return ft; }; })(jQuery, window); // source --> http://www.caddetesisat.com/wp-content/plugins/otw-popping-content//include/otw_components/otw_overlay_shortcode/js/footable.sortable.js?ver=4.9 (function ($, w, undefined) { if (w.footable == undefined || w.footable == null) throw new Error('Please check and make sure footable.js is included in the page and is loaded prior to this script.'); var defaults = { sort: true, sorters: { alpha: function (a, b) { if (a[0] == b[0]) return 0; if (a[0] < b[0]) return -1; return 1; }, numeric: function (a, b) { return a - b; } }, parsers: { numeric: function (cell) { var val = $(cell).data('value') || $(cell).text().replace(/[^0-9.-]/g, ''); val = parseFloat(val); if (isNaN(val)) val = 0; return val; } }, classes: { sort: { sortable : 'footable-sortable', sorted : 'footable-sorted', descending : 'footable-sorted-desc', indicator : 'footable-sort-indicator' } } }; function Sortable() { var p = this; p.name = 'Footable Sortable'; p.init = function(ft) { if (ft.options.sort == true) { $(ft.table).bind({ 'footable_initialized': function(e) { var cls = ft.options.classes.sort; var $table = $(e.ft.table), $tbody = $table.find('> tbody'); $(e.ft.table).find('tr th').each(function (ec) { var $th = $(this); var column = e.ft.columns[$th.index()]; if (column.sort.ignore != true) { $th.addClass(cls.sortable); $('').addClass(cls.indicator).appendTo($th); } }); $(e.ft.table).find('tr th.' + cls.sortable).click(function (ec) { var $th = $(this), index = $th.index(); var column = e.ft.columns[index]; if (column.sort.ignore == true) return true; ec.preventDefault(); $table.find('> thead > tr > th').not($th).removeClass(cls.sorted + ' ' + cls.descending); //.find('> span.' + cls.indicator).remove(); // if ($th.find('> span.'+cls.indicator).length == 0) { // $('').addClass(cls.indicator).appendTo($th); // } if ($th.hasClass(cls.sorted)) { p.reverse(e.ft, $tbody); $th.removeClass(cls.sorted).addClass(cls.descending); } else if ($th.hasClass(cls.descending)) { p.reverse(e.ft, $tbody); $th.removeClass(cls.descending).addClass(cls.sorted); } else { p.sort(e.ft, $tbody, column); $th.removeClass(cls.descending).addClass(cls.sorted); } return false; }); for(var c in e.ft.columns) { var column = e.ft.columns[c]; if (column.sort.initial) { p.sort(e.ft, $tbody, column); var $th = $table.find('thead th:eq(' + c + ')'); if (column.sort.initial == "descending") { p.reverse(e.ft, $tbody); $th.addClass(cls.descending); } else { $th.addClass(cls.sorted); } // if ($th.find('> span.'+cls.indicator).length == 0) { // $('').addClass(cls.indicator).appendTo($th); // } break; } else if (column.sort.ignore != true) { } } }, 'footable_column_data': function(e) { var $th = $(e.column.th); e.column.data.sort = e.column.data.sort || { }; e.column.data.sort.initial = $th.data('sort-initial') || false; e.column.data.sort.ignore = $th.data('sort-ignore') || false; e.column.data.sort.selector = $th.data('sort-selector') || null; } }); } }; p.rows = function(ft, tbody, column) { var rows = []; tbody.find('> tr').each(function () { var $row = $(this), $next = null; if ($row.hasClass('footable-row-detail')) return true; if ($row.next().hasClass('footable-row-detail')) { $next = $row.next().get(0); } var row = { 'row': $row, 'detail': $next }; if (column != undefined && column.index != undefined) { row.value = ft.parse(this.cells[column.index], column); } rows.push(row); return true; }).remove(); return rows; }; p.sort = function(ft, tbody, column) { var rows = p.rows(ft, tbody, column); var sorter = ft.options.sorters[column.type] || ft.options.sorters.alpha; rows.sort(function(a, b) { return sorter(a.value, b.value); }); for (var j = 0; j < rows.length; j++) { tbody.append(rows[j].row); if (rows[j].detail != null) { tbody.append(rows[j].detail); } } }; p.reverse = function(ft, tbody) { var rows = p.rows(ft, tbody); for (var i = rows.length - 1; i >= 0; i--) { tbody.append(rows[i].row); if (rows[i].detail != null) { tbody.append(rows[i].detail); } } }; }; w.footable.plugins.register(new Sortable(), defaults); })(jQuery, window); // source --> http://www.caddetesisat.com/wp-content/plugins/otw-popping-content//include/otw_components/otw_overlay_shortcode/js/jquery.plugin.min.js?ver=4.9 /** Abstract base class for collection plugins v1.0.1. Written by Keith Wood (kbwood{at}iinet.com.au) December 2013. Licensed under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license. */ (function(){var j=false;window.JQClass=function(){};JQClass.classes={};JQClass.extend=function extender(f){var g=this.prototype;j=true;var h=new this();j=false;for(var i in f){h[i]=typeof f[i]=='function'&&typeof g[i]=='function'?(function(d,e){return function(){var b=this._super;this._super=function(a){return g[d].apply(this,a||[])};var c=e.apply(this,arguments);this._super=b;return c}})(i,f[i]):f[i]}function JQClass(){if(!j&&this._init){this._init.apply(this,arguments)}}JQClass.prototype=h;JQClass.prototype.constructor=JQClass;JQClass.extend=extender;return JQClass}})();(function($){JQClass.classes.JQPlugin=JQClass.extend({name:'plugin',defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return'is-'+this.name},_init:function(){$.extend(this.defaultOptions,(this.regionalOptions&&this.regionalOptions[''])||{});var c=camelCase(this.name);$[c]=this;$.fn[c]=function(a){var b=Array.prototype.slice.call(arguments,1);if($[c]._isNotChained(a,b)){return $[c][a].apply($[c],[this[0]].concat(b))}return this.each(function(){if(typeof a==='string'){if(a[0]==='_'||!$[c][a]){throw'Unknown method: '+a;}$[c][a].apply($[c],[this].concat(b))}else{$[c]._attach(this,a)}})}},setDefaults:function(a){$.extend(this.defaultOptions,a||{})},_isNotChained:function(a,b){if(a==='option'&&(b.length===0||(b.length===1&&typeof b[0]==='string'))){return true}return $.inArray(a,this._getters)>-1},_attach:function(a,b){a=$(a);if(a.hasClass(this._getMarker())){return}a.addClass(this._getMarker());b=$.extend({},this.defaultOptions,this._getMetadata(a),b||{});var c=$.extend({name:this.name,elem:a,options:b},this._instSettings(a,b));a.data(this.name,c);this._postAttach(a,c);this.option(a,b)},_instSettings:function(a,b){return{}},_postAttach:function(a,b){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||'';f=f.replace(/'/g,'"');f=f.replace(/([a-zA-Z0-9]+):/g,function(a,b,i){var c=f.substring(0,i).match(/"/g);return(!c||c.length%2===0?'"'+b+'":':b+':')});f=$.parseJSON('{'+f+'}');for(var g in f){var h=f[g];if(typeof h==='string'&&h.match(/^new Date\((.*)\)$/)){f[g]=eval(h)}}return f}catch(e){return{}}},_getInst:function(a){return $(a).data(this.name)||{}},option:function(a,b,c){a=$(a);var d=a.data(this.name);if(!b||(typeof b==='string'&&c==null)){var e=(d||{}).options;return(e&&b?e[b]:e)}if(!a.hasClass(this._getMarker())){return}var e=b||{};if(typeof b==='string'){e={};e[b]=c}this._optionsChanged(a,d,e);$.extend(d.options,e)},_optionsChanged:function(a,b,c){},destroy:function(a){a=$(a);if(!a.hasClass(this._getMarker())){return}this._preDestroy(a,this._getInst(a));a.removeData(this.name).removeClass(this._getMarker())},_preDestroy:function(a,b){}});function camelCase(c){return c.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()})}$.JQPlugin={createPlugin:function(a,b){if(typeof a==='object'){b=a;a='JQPlugin'}a=camelCase(a);var c=camelCase(b.name);JQClass.classes[c]=JQClass.classes[a].extend(b);new JQClass.classes[c]()}}})(jQuery); // source --> http://www.caddetesisat.com/wp-content/plugins/otw-popping-content//include/otw_components/otw_overlay_shortcode/js/jquery.animate-shadow-min.js?ver=4.9 /* Shadow animation 20120928 http://www.bitstorm.org/jquery/shadow-animation/ Copyright 2011, 2012 Edwin Martin Contributors: Mark Carver, Xavier Lepretre Released under the MIT and GPL licenses. */ jQuery(function(e,i){function j(){var b=e("script:first"),a=b.css("color"),c=false;if(/^rgba/.test(a))c=true;else try{c=a!=b.css("color","rgba(0, 0, 0, 0.5)").css("color");b.css("color",a)}catch(d){}return c}function k(b,a,c){var d=[];b.b&&d.push("inset");typeof a.left!="undefined"&&d.push(parseInt(b.left+c*(a.left-b.left),10)+"px "+parseInt(b.top+c*(a.top-b.top),10)+"px");typeof a.blur!="undefined"&&d.push(parseInt(b.blur+c*(a.blur-b.blur),10)+"px");typeof a.a!="undefined"&&d.push(parseInt(b.a+c* (a.a-b.a),10)+"px");if(typeof a.color!="undefined"){var g="rgb"+(e.support.rgba?"a":"")+"("+parseInt(b.color[0]+c*(a.color[0]-b.color[0]),10)+","+parseInt(b.color[1]+c*(a.color[1]-b.color[1]),10)+","+parseInt(b.color[2]+c*(a.color[2]-b.color[2]),10);if(e.support.rgba)g+=","+parseFloat(b.color[3]+c*(a.color[3]-b.color[3]));g+=")";d.push(g)}return d.join(" ")}function h(b){var a,c,d={};if(a=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(b))c=[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3], 16),1];else if(a=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(b))c=[parseInt(a[1],16)*17,parseInt(a[2],16)*17,parseInt(a[3],16)*17,1];else if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))c=[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),1];else if(a=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(b))c=[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),parseFloat(a[4])];d=(a=/(-?[0-9]+)(?:px)?\s+(-?[0-9]+)(?:px)?(?:\s+(-?[0-9]+)(?:px)?)?(?:\s+(-?[0-9]+)(?:px)?)?/.exec(b))? {left:parseInt(a[1],10),top:parseInt(a[2],10),blur:a[3]?parseInt(a[3],10):0,a:a[4]?parseInt(a[4],10):0}:{left:0,top:0,blur:0,a:0};d.b=/inset/.test(b);d.color=c;return d}e.extend(true,e,{support:{rgba:j()}});var f;e.each(["boxShadow","MozBoxShadow","WebkitBoxShadow"],function(b,a){b=e("html").css(a);if(typeof b=="string"&&b!=""){f=a;return false}});if(f)e.Tween.propHooks.boxShadow={get:function(b){return e(b.elem).css(f)},set:function(b){var a=b.elem.style,c=h(e(b.elem).get(0).style[f]||e(b.elem).css(f)), d=e.extend({},c,h(b.end));if(c.color==i)c.color=d.color||[0,0,0];b.run=function(g){a[f]=k(c,d,g)}}}}); // source --> http://www.caddetesisat.com/wp-content/plugins/otw-popping-content//include/otw_components/otw_overlay_shortcode/js/otw_shortcode_core.js?ver=4.9 function otw_shortcode_tabs(selectors) { for (var cS = 0; cS < selectors.size(); cS++) { var selector = jQuery(selectors[cS]); var links = selector.find('ul.ui-tabs-nav>li a'); var active_tab = 0; for (var cA = 0; cA < links.length; cA++) { if (jQuery(links[cA]).parent().hasClass('ui-tabs-active ui-state-active')) { active_tab = cA; break; } } for (var cA = 0; cA < links.length; cA++) { if (active_tab == cA) { jQuery(links[cA]).parent().addClass('ui-tabs-active ui-state-active'); selector.find(jQuery(links[cA]).attr('href')).show(); } else { jQuery(links[cA]).parent().removeClass('ui-tabs-active ui-state-active'); selector.find(jQuery(links[cA]).attr('href')).hide(); } ; } ; selector.find('ul.ui-tabs-nav>li a').click(function (event) { event.preventDefault(); jQuery(this).parents('li').siblings().removeClass("ui-tabs-active ui-state-active"); jQuery(this).parents('li').addClass("ui-tabs-active ui-state-active"); var tab = jQuery(this).attr("href"); jQuery(this).parents('li').parent().parent().children(".ui-widget-content").not(tab).hide(); jQuery(this).parents('li').parent().parent().children(tab).show(); }); } ; } ; function otw_shortcode_content_toggle(selector, closed) { selector.unbind('click'); selector.click(function () { jQuery(this).toggleClass('closed').next('.toggle-content').slideToggle(350); }); closed.next('.toggle-content').hide(); } ; function otw_shortcode_accordions(accordions) { for (var cA = 0; cA < accordions.size(); cA++) { var headers = jQuery(accordions[ cA ]).find('h3.accordion-title'); var contents = jQuery(accordions[ cA ]).find('.ui-accordion-content'); var has_open = false; for (var cH = 0; cH < headers.size(); cH++) { if (jQuery(headers[cH]).hasClass('closed') || has_open) { jQuery(contents[cH]).hide(); } else { has_open = true; jQuery(headers[cH]).addClass('ui-accordion-header-active ui-state-active'); } ; } ; headers.unbind('click'); headers.click(function () { jQuery(this).parent().find('h3.accordion-title').not(jQuery(this)).removeClass('ui-accordion-header-active ui-state-active'); jQuery(this).parent().find('.ui-accordion-content').not(jQuery(this).next()).slideUp(); jQuery(this).next().slideToggle(); jQuery(this).toggleClass('ui-accordion-header-active ui-state-active'); }); } ; } ; function otw_shortcode_faq(faqs) { faqs.find('dl > dt').unbind('click'); faqs.find('dl > dt').click(function () { jQuery(this).toggleClass('open-faq').next().slideToggle(350); }); } ; function otw_shortcode_shadow_overlay(selectors) { selectors.hover(function () { jQuery(this).css({boxShadow: '0 0 20px 0 rgba(0,0,0,0.7) inset'}); }, function () { jQuery(this).css({boxShadow: '0 0 0 0'}); }); } ; function otw_shortcode_testimonials(selectors) { selectors.find(".testimonials-prev").click(function () { selectors.find(".testimonials-slide.active").hide().toggleClass('active').otwPrevOrLast().animate({"opacity": "toggle"}).toggleClass('active'); }); selectors.find(".testimonials-next").click(function () { selectors.find(".testimonials-slide.active").hide().toggleClass('active').otwNextOrFirst().animate({"opacity": "toggle"}).toggleClass('active'); }); } ; function otw_shortcode_scroll_to_top(selectors) { selectors.click(function () { jQuery('html, body').animate({scrollTop: '0px'}, 700); return false; }); }; function otw_shortcode_sortable_table(selectors) { selectors.each( function(){ if( ( typeof( this.sortable_inited ) == undefined ) || !this.sortable_inited ){ jQuery( this ).footable({ breakpoints: { phone: 480, tablet: 767 } }); this.sortable_inited = 1; } } ); }; function otw_shortcode_count_down(selector) { var time = selector.data('time'); var newDate = new Date(time); selector.otw_b_countdown({until: newDate}); } jQuery.fn.otwNextOrFirst = function (selector) { var next = this.next(selector); return (next.length) ? next : this.prevAll(selector).last(); }; jQuery.fn.otwPrevOrLast = function (selector) { var prev = this.prev(selector); return (prev.length) ? prev : this.nextAll(selector).last(); }; //function animate progress bar function animate_progressbar(selector){ if( ( typeof( selector[0].inited ) == undefined ) || !selector[0].inited ){ selector.data("origWidth", selector.width()).width(0).animate({ width: selector.data("origWidth") }, 1200); selector[0].inited = true; } } function otw_start_animated_image(container) { container.delay(1000).waypoint(function () { jQuery(this).find('.otw-b-animate-in').addClass('otw-b-animation-start'); }, {offset: 350}); } /** * make client slider caroucel * @param {DOM} container * @returns {void} */ function otw_start_client_caroucel(container) { var nav = jQuery(container).data('nav'); var autoloop = jQuery(container).data('autoloop'); jQuery(container).owlCarousel({ loop: true, margin: 10, nav: nav, autoplay: autoloop, autoplayTimeout: 3000, autoplayHoverPause: true, navText: ['', ''], responsiveBaseElement: jQuery(container), responsive: { 0: { items: 1 }, 150: { items: 2 }, 320: { items: 3 }, 480: { items: 3 }, 768: { items: 4 }, 1000: { items: 5 } } }); } function otw_start_client_caroucel_preview(container) { var nav = jQuery(container).data('nav'); var autoloop = jQuery(container).data('autoloop'); jQuery(container).owlCarousel({ loop: false, items: 1, margin: 10, nav: nav, autoplay: true, navText: ['', ''], }); } /** * Init the slider for testimonials * @param {DOM} container * @returns {DOM} */ function otw_testimonials_start(container) { var nav = jQuery(container).data('nav'); var autoloop = jQuery(container).data('autoloop'); container.owlCarousel({ loop: true, margin: 10, autoplay: autoloop, autoplayTimeout: 2000, //autoplayHoverPause: true, smartSpeed: 1000, items: 1, nav: nav, navText: ['', ''], }); return container; } /** * Generate gallety * @param {type} e * @returns {undefined} void */ function generateGallery(e) { var g = '.otw-b-gallery'; var a_c = 'otw-b-active'; var t = '.otw-b-gallery-thumbs'; var c = '.otw-b-gallery-content-inner.otw-lightbox'; var c_p = '.otw-b-gallery-content'; var f = jQuery('.otw-b-gallery-thumbs li:first-child'); var object = null; if (e === false || e === 'undefined') { object = f; } else { object = e; } var src_m = jQuery('a', object).attr('href'); var src_l = jQuery('a', object).attr('data-href'); jQuery(object).siblings().removeClass(a_c); jQuery(object).addClass(a_c); jQuery(object).parent().siblings(c_p).find('img').hide().attr('src', src_m).fadeIn(200); jQuery(object).parent().siblings(c_p).children(c).attr('href', src_l); jQuery(c).nivoLightbox(); }; // source --> http://www.caddetesisat.com/wp-content/plugins/otw-popping-content//include/otw_components/otw_overlay_shortcode/js/jquery.animate-shadow-min.js?ver=4.9 /* Shadow animation 20120928 http://www.bitstorm.org/jquery/shadow-animation/ Copyright 2011, 2012 Edwin Martin Contributors: Mark Carver, Xavier Lepretre Released under the MIT and GPL licenses. */ jQuery(function(e,i){function j(){var b=e("script:first"),a=b.css("color"),c=false;if(/^rgba/.test(a))c=true;else try{c=a!=b.css("color","rgba(0, 0, 0, 0.5)").css("color");b.css("color",a)}catch(d){}return c}function k(b,a,c){var d=[];b.b&&d.push("inset");typeof a.left!="undefined"&&d.push(parseInt(b.left+c*(a.left-b.left),10)+"px "+parseInt(b.top+c*(a.top-b.top),10)+"px");typeof a.blur!="undefined"&&d.push(parseInt(b.blur+c*(a.blur-b.blur),10)+"px");typeof a.a!="undefined"&&d.push(parseInt(b.a+c* (a.a-b.a),10)+"px");if(typeof a.color!="undefined"){var g="rgb"+(e.support.rgba?"a":"")+"("+parseInt(b.color[0]+c*(a.color[0]-b.color[0]),10)+","+parseInt(b.color[1]+c*(a.color[1]-b.color[1]),10)+","+parseInt(b.color[2]+c*(a.color[2]-b.color[2]),10);if(e.support.rgba)g+=","+parseFloat(b.color[3]+c*(a.color[3]-b.color[3]));g+=")";d.push(g)}return d.join(" ")}function h(b){var a,c,d={};if(a=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(b))c=[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3], 16),1];else if(a=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(b))c=[parseInt(a[1],16)*17,parseInt(a[2],16)*17,parseInt(a[3],16)*17,1];else if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))c=[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),1];else if(a=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(b))c=[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),parseFloat(a[4])];d=(a=/(-?[0-9]+)(?:px)?\s+(-?[0-9]+)(?:px)?(?:\s+(-?[0-9]+)(?:px)?)?(?:\s+(-?[0-9]+)(?:px)?)?/.exec(b))? {left:parseInt(a[1],10),top:parseInt(a[2],10),blur:a[3]?parseInt(a[3],10):0,a:a[4]?parseInt(a[4],10):0}:{left:0,top:0,blur:0,a:0};d.b=/inset/.test(b);d.color=c;return d}e.extend(true,e,{support:{rgba:j()}});var f;e.each(["boxShadow","MozBoxShadow","WebkitBoxShadow"],function(b,a){b=e("html").css(a);if(typeof b=="string"&&b!=""){f=a;return false}});if(f)e.Tween.propHooks.boxShadow={get:function(b){return e(b.elem).css(f)},set:function(b){var a=b.elem.style,c=h(e(b.elem).get(0).style[f]||e(b.elem).css(f)), d=e.extend({},c,h(b.end));if(c.color==i)c.color=d.color||[0,0,0];b.run=function(g){a[f]=k(c,d,g)}}}}); // source --> http://www.caddetesisat.com/wp-content/plugins/otw-popping-content//include/otw_components/otw_overlay_shortcode/js/otw_shortcode.js?ver=4.9 jQuery(document).ready(function () { //tabs otw_shortcode_tabs(jQuery('.otw-sc-tabs')); //content toggle otw_shortcode_content_toggle(jQuery('.toggle-trigger'), jQuery('.toggle-trigger.closed')); //accordions otw_shortcode_accordions(jQuery('.otw-sc-accordion')); //faqs otw_shortcode_faq(jQuery('.otw-sc-faq')); //shadow overlay otw_shortcode_shadow_overlay(jQuery('.shadow-overlay')); //messages jQuery(".otw-sc-message.closable-message").find(".close-message").click(function () { jQuery(this).parent(".otw-sc-message").fadeOut("fast"); }); //testimonials otw_shortcode_testimonials(jQuery('.otw-sc-testimonials')); //scroll to top otw_shortcode_scroll_to_top(jQuery('.scroll-top a')); //tables otw_shortcode_sortable_table(jQuery('.footable')); /* * Init the count down script for front mode */ jQuery('.otw-countdown').each(function (index) { otw_shortcode_count_down(jQuery(this)); }); /* * Init the progress bar in front mode */ jQuery(".otw-b-meter > span").each(function () { animate_progressbar(jQuery(this)); }); /* *Init the animation images in front mode */ otw_start_animated_image(jQuery(".otw-b-animated-image")); /** * Clients slider init in front mode */ jQuery(".otw-b-carousel:not(.otw-b-testimonials-slider)").each(function () { otw_start_client_caroucel(jQuery(this)); }); /* * Init of testimonials in front mode */ jQuery(".otw-b-testimonials-slider").each(function () { otw_testimonials_start(jQuery(this)); }); //init gallery callbacks jQuery(".otw-b-gallery").each(function () { jQuery('a', jQuery(this)).click(function (e) { if (jQuery(this).hasClass('otw-external') === false) { e.preventDefault(); jQuery(this).removeClass('otw-b-active'); } }); jQuery('li', jQuery(this).find('.otw-b-gallery-thumbs')).click(function () { generateGallery(this); }); generateGallery(this); }); }); // source --> http://www.caddetesisat.com/wp-content/plugins/otw-popping-content//include/otw_components/otw_overlay_shortcode/js/waypoints.min.js?ver=4.9 // Generated by CoffeeScript 1.6.2 /*! jQuery Waypoints - v2.0.5 Copyright (c) 2011-2014 Caleb Troughton Licensed under the MIT license. https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt */ (function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e=0;s={horizontal:{},vertical:{}};f=1;c={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};this.element[u]=this.id;c[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||a)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(a&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete c[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=this.element[w])!=null?o:[];i.push(this.id);this.element[w]=i}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=t[w];if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;e=n.extend({},n.fn[g].defaults,e);if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=c[i[0][u]];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke.call(this,"disable")},enable:function(){return d._invoke.call(this,"enable")},destroy:function(){return d._invoke.call(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(et.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=c[n(t)[0][u]];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.on("load.waypoints",function(){return n[m]("refresh")})})}).call(this);