function notificationBoxOutput(type, message)
{
	var $notice = $('.notificationBox');
	if (type == "Sucesso" || type=="Success") { 
		$notice
			.removeClass('Aviso')
			.addClass('Sucesso'); 
	}
	if (type == "Aviso" || type== "Warning") { 
		$notice
			.removeClass('Sucesso')
			.addClass('Aviso'); 
	}
	
	$notice
		.html('<b>' + type + ':</b>&nbsp;' + message)
		.slideDown()
		.delay(3000)
		.slideUp();
}
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/

(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}: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},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?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},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===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]||at.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]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t
}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Ct=/^(?:checkbox|radio)$/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle);
u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),Pt.detach()),Gt[e]=n),n}function un(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(x.css(e,"display"))?x.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,n){return n?x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,n){x.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?x(e).position()[n]+"px":r):t}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!x.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(x.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],o=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},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)}});var mn,yn,vn=x.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=x.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=o.href}catch(Ln){yn=a.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(l){var u;return o[l]=!0,x.each(e[l]||[],function(e,l){var c=l(n,r,i);return"string"!=typeof c||a||o[c]?a?!(u=c):t:(n.dataTypes.unshift(c),s(c),!1)}),u}return s(n.dataTypes[0])||!o["*"]&&s("*")}function _n(e,n){var r,i,o=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,l=e.indexOf(" ");return l>=0&&(i=e.slice(l,e.length),e=e.slice(0,l)),x.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&x.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);

if(function(t){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],t):t(jQuery)}(function(t){function e(e){return!e||void 0!==e.allowPageScroll||void 0===e.swipe&&void 0===e.swipeStatus||(e.allowPageScroll=h),void 0!==e.click&&void 0===e.tap&&(e.tap=e.click),e||(e={}),e=t.extend({},t.fn.swipe.defaults,e),this.each(function(){var n=t(this),r=n.data(O);r||(r=new i(this,e),n.data(O,r))})}function i(e,i){function C(e){if(!(ht()||t(e.target).closest(i.excludedElements,Gt).length>0)){var n,r=e.originalEvent?e.originalEvent:e,s=P?r.touches[0]:r;return Vt=x,P?Wt=r.touches.length:e.preventDefault(),It=0,Xt=null,Bt=null,zt=0,Nt=0,Ft=0,Yt=1,jt=0,Ht=dt(),Ut=gt(),ot(),!P||Wt===i.fingers||i.fingers===v||U()?(pt(0,s),Qt=kt(),2==Wt&&(pt(1,r.touches[1]),Nt=Ft=xt(Ht[0].start,Ht[1].start)),(i.swipeStatus||i.pinchStatus)&&(n=I(r,Vt))):n=!1,n===!1?(Vt=b,I(r,Vt),n):(i.hold&&(te=setTimeout(t.proxy(function(){Gt.trigger("hold",[r.target]),i.hold&&(n=i.hold.call(Gt,r,r.target))},this),i.longTapThreshold)),ut(!0),null)}}function R(t){var e=t.originalEvent?t.originalEvent:t;if(Vt!==T&&Vt!==b&&!lt()){var n,r=P?e.touches[0]:e,s=ct(r);if(qt=kt(),P&&(Wt=e.touches.length),i.hold&&clearTimeout(te),Vt=w,2==Wt&&(0==Nt?(pt(1,e.touches[1]),Nt=Ft=xt(Ht[0].start,Ht[1].start)):(ct(e.touches[1]),Ft=xt(Ht[0].end,Ht[1].end),Bt=Tt(Ht[0].end,Ht[1].end)),Yt=wt(Nt,Ft),jt=Math.abs(Nt-Ft)),Wt===i.fingers||i.fingers===v||!P||U()){if(Xt=St(s.start,s.end),j(t,Xt),It=bt(s.start,s.end),zt=yt(),_t(Xt,It),(i.swipeStatus||i.pinchStatus)&&(n=I(e,Vt)),!i.triggerOnTouchEnd||i.triggerOnTouchLeave){var a=!0;if(i.triggerOnTouchLeave){var o=Ot(this);a=Ct(s.end,o)}!i.triggerOnTouchEnd&&a?Vt=D(w):i.triggerOnTouchLeave&&!a&&(Vt=D(T)),(Vt==b||Vt==T)&&I(e,Vt)}}else Vt=b,I(e,Vt);n===!1&&(Vt=b,I(e,Vt))}}function A(t){var e=t.originalEvent;return P&&e.touches.length>0?(at(),!0):(lt()&&(Wt=$t),qt=kt(),zt=yt(),N()||!z()?(Vt=b,I(e,Vt)):i.triggerOnTouchEnd||0==i.triggerOnTouchEnd&&Vt===w?(t.preventDefault(),Vt=T,I(e,Vt)):!i.triggerOnTouchEnd&&Z()?(Vt=T,X(e,Vt,f)):Vt===w&&(Vt=b,I(e,Vt)),ut(!1),null)}function M(){Wt=0,qt=0,Qt=0,Nt=0,Ft=0,Yt=1,ot(),ut(!1)}function E(t){var e=t.originalEvent;i.triggerOnTouchLeave&&(Vt=D(T),I(e,Vt))}function L(){Gt.unbind(At,C),Gt.unbind(Dt,M),Gt.unbind(Mt,R),Gt.unbind(Et,A),Lt&&Gt.unbind(Lt,E),ut(!1)}function D(t){var e=t,n=Y(),r=z(),s=N();return!n||s?e=b:!r||t!=w||i.triggerOnTouchEnd&&!i.triggerOnTouchLeave?!r&&t==T&&i.triggerOnTouchLeave&&(e=b):e=T,e}function I(t,e){var i=void 0;return H()||W()?i=X(t,e,p):(G()||U())&&i!==!1&&(i=X(t,e,c)),rt()&&i!==!1?i=X(t,e,d):st()&&i!==!1?i=X(t,e,_):nt()&&i!==!1&&(i=X(t,e,f)),e===b&&M(t),e===T&&(P?0==t.touches.length&&M(t):M(t)),i}function X(e,h,u){var m=void 0;if(u==p){if(Gt.trigger("swipeStatus",[h,Xt||null,It||0,zt||0,Wt,Ht]),i.swipeStatus&&(m=i.swipeStatus.call(Gt,e,h,Xt||null,It||0,zt||0,Wt,Ht),m===!1))return!1;if(h==T&&V()){if(Gt.trigger("swipe",[Xt,It,zt,Wt,Ht]),i.swipe&&(m=i.swipe.call(Gt,e,Xt,It,zt,Wt,Ht),m===!1))return!1;switch(Xt){case n:Gt.trigger("swipeLeft",[Xt,It,zt,Wt,Ht]),i.swipeLeft&&(m=i.swipeLeft.call(Gt,e,Xt,It,zt,Wt,Ht));break;case r:Gt.trigger("swipeRight",[Xt,It,zt,Wt,Ht]),i.swipeRight&&(m=i.swipeRight.call(Gt,e,Xt,It,zt,Wt,Ht));break;case s:Gt.trigger("swipeUp",[Xt,It,zt,Wt,Ht]),i.swipeUp&&(m=i.swipeUp.call(Gt,e,Xt,It,zt,Wt,Ht));break;case a:Gt.trigger("swipeDown",[Xt,It,zt,Wt,Ht]),i.swipeDown&&(m=i.swipeDown.call(Gt,e,Xt,It,zt,Wt,Ht))}}}if(u==c){if(Gt.trigger("pinchStatus",[h,Bt||null,jt||0,zt||0,Wt,Yt,Ht]),i.pinchStatus&&(m=i.pinchStatus.call(Gt,e,h,Bt||null,jt||0,zt||0,Wt,Yt,Ht),m===!1))return!1;if(h==T&&B())switch(Bt){case o:Gt.trigger("pinchIn",[Bt||null,jt||0,zt||0,Wt,Yt,Ht]),i.pinchIn&&(m=i.pinchIn.call(Gt,e,Bt||null,jt||0,zt||0,Wt,Yt,Ht));break;case l:Gt.trigger("pinchOut",[Bt||null,jt||0,zt||0,Wt,Yt,Ht]),i.pinchOut&&(m=i.pinchOut.call(Gt,e,Bt||null,jt||0,zt||0,Wt,Yt,Ht))}}return u==f?(h===b||h===T)&&(clearTimeout(Jt),clearTimeout(te),$()&&!tt()?(Kt=kt(),Jt=setTimeout(t.proxy(function(){Kt=null,Gt.trigger("tap",[e.target]),i.tap&&(m=i.tap.call(Gt,e,e.target))},this),i.doubleTapThreshold)):(Kt=null,Gt.trigger("tap",[e.target]),i.tap&&(m=i.tap.call(Gt,e,e.target)))):u==d?(h===b||h===T)&&(clearTimeout(Jt),Kt=null,Gt.trigger("doubletap",[e.target]),i.doubleTap&&(m=i.doubleTap.call(Gt,e,e.target))):u==_&&(h===b||h===T)&&(clearTimeout(Jt),Kt=null,Gt.trigger("longtap",[e.target]),i.longTap&&(m=i.longTap.call(Gt,e,e.target))),m}function z(){var t=!0;return null!==i.threshold&&(t=It>=i.threshold),t}function N(){var t=!1;return null!==i.cancelThreshold&&null!==Xt&&(t=mt(Xt)-It>=i.cancelThreshold),t}function F(){return null!==i.pinchThreshold?jt>=i.pinchThreshold:!0}function Y(){var t;return t=i.maxTimeThreshold&&zt>=i.maxTimeThreshold?!1:!0}function j(t,e){if(i.allowPageScroll===h||U())t.preventDefault();else{var o=i.allowPageScroll===u;switch(e){case n:(i.swipeLeft&&o||!o&&i.allowPageScroll!=m)&&t.preventDefault();break;case r:(i.swipeRight&&o||!o&&i.allowPageScroll!=m)&&t.preventDefault();break;case s:(i.swipeUp&&o||!o&&i.allowPageScroll!=g)&&t.preventDefault();break;case a:(i.swipeDown&&o||!o&&i.allowPageScroll!=g)&&t.preventDefault()}}}function B(){var t=Q(),e=q(),i=F();return t&&e&&i}function U(){return!!(i.pinchStatus||i.pinchIn||i.pinchOut)}function G(){return!(!B()||!U())}function V(){var t=Y(),e=z(),i=Q(),n=q(),r=N(),s=!r&&n&&i&&e&&t;return s}function W(){return!!(i.swipe||i.swipeStatus||i.swipeLeft||i.swipeRight||i.swipeUp||i.swipeDown)}function H(){return!(!V()||!W())}function Q(){return Wt===i.fingers||i.fingers===v||!P}function q(){return 0!==Ht[0].end.x}function Z(){return!!i.tap}function $(){return!!i.doubleTap}function K(){return!!i.longTap}function J(){if(null==Kt)return!1;var t=kt();return $()&&t-Kt<=i.doubleTapThreshold}function tt(){return J()}function et(){return(1===Wt||!P)&&(isNaN(It)||It<i.threshold)}function it(){return zt>i.longTapThreshold&&y>It}function nt(){return!(!et()||!Z())}function rt(){return!(!J()||!$())}function st(){return!(!it()||!K())}function at(){Zt=kt(),$t=event.touches.length+1}function ot(){Zt=0,$t=0}function lt(){var t=!1;if(Zt){var e=kt()-Zt;e<=i.fingerReleaseThreshold&&(t=!0)}return t}function ht(){return!(Gt.data(O+"_intouch")!==!0)}function ut(t){t===!0?(Gt.bind(Mt,R),Gt.bind(Et,A),Lt&&Gt.bind(Lt,E)):(Gt.unbind(Mt,R,!1),Gt.unbind(Et,A,!1),Lt&&Gt.unbind(Lt,E,!1)),Gt.data(O+"_intouch",t===!0)}function pt(t,e){var i=void 0!==e.identifier?e.identifier:0;return Ht[t].identifier=i,Ht[t].start.x=Ht[t].end.x=e.pageX||e.clientX,Ht[t].start.y=Ht[t].end.y=e.pageY||e.clientY,Ht[t]}function ct(t){var e=void 0!==t.identifier?t.identifier:0,i=ft(e);return i.end.x=t.pageX||t.clientX,i.end.y=t.pageY||t.clientY,i}function ft(t){for(var e=0;e<Ht.length;e++)if(Ht[e].identifier==t)return Ht[e]}function dt(){for(var t=[],e=0;5>=e;e++)t.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return t}function _t(t,e){e=Math.max(e,mt(t)),Ut[t].distance=e}function mt(t){return Ut[t]?Ut[t].distance:void 0}function gt(){var t={};return t[n]=vt(n),t[r]=vt(r),t[s]=vt(s),t[a]=vt(a),t}function vt(t){return{direction:t,distance:0}}function yt(){return qt-Qt}function xt(t,e){var i=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);return Math.round(Math.sqrt(i*i+n*n))}function wt(t,e){var i=e/t*1;return i.toFixed(2)}function Tt(){return 1>Yt?l:o}function bt(t,e){return Math.round(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)))}function Pt(t,e){var i=t.x-e.x,n=e.y-t.y,r=Math.atan2(n,i),s=Math.round(180*r/Math.PI);return 0>s&&(s=360-Math.abs(s)),s}function St(t,e){var i=Pt(t,e);return 45>=i&&i>=0?n:360>=i&&i>=315?n:i>=135&&225>=i?r:i>45&&135>i?a:s}function kt(){var t=new Date;return t.getTime()}function Ot(e){e=t(e);var i=e.offset(),n={left:i.left,right:i.left+e.outerWidth(),top:i.top,bottom:i.top+e.outerHeight()};return n}function Ct(t,e){return t.x>e.left&&t.x<e.right&&t.y>e.top&&t.y<e.bottom}var Rt=P||k||!i.fallbackToMouseEvents,At=Rt?k?S?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Mt=Rt?k?S?"MSPointerMove":"pointermove":"touchmove":"mousemove",Et=Rt?k?S?"MSPointerUp":"pointerup":"touchend":"mouseup",Lt=Rt?null:"mouseleave",Dt=k?S?"MSPointerCancel":"pointercancel":"touchcancel",It=0,Xt=null,zt=0,Nt=0,Ft=0,Yt=1,jt=0,Bt=0,Ut=null,Gt=t(e),Vt="start",Wt=0,Ht=null,Qt=0,qt=0,Zt=0,$t=0,Kt=0,Jt=null,te=null;try{Gt.bind(At,C),Gt.bind(Dt,M)}catch(ee){t.error("events not supported "+At+","+Dt+" on jQuery.swipe")}this.enable=function(){return Gt.bind(At,C),Gt.bind(Dt,M),Gt},this.disable=function(){return L(),Gt},this.destroy=function(){return L(),Gt.data(O,null),Gt},this.option=function(e,n){if(void 0!==i[e]){if(void 0===n)return i[e];i[e]=n}else t.error("Option "+e+" does not exist on jQuery.swipe.options");return null}}var n="left",r="right",s="up",a="down",o="in",l="out",h="none",u="auto",p="swipe",c="pinch",f="tap",d="doubletap",_="longtap",m="horizontal",g="vertical",v="all",y=10,x="start",w="move",T="end",b="cancel",P="ontouchstart"in window,S=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,k=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,O="TouchSwipe",C={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:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};t.fn.swipe=function(i){var n=t(this),r=n.data(O);if(r&&"string"==typeof i){if(r[i])return r[i].apply(this,Array.prototype.slice.call(arguments,1));t.error("Method "+i+" does not exist on jQuery.swipe")}else if(!(r||"object"!=typeof i&&i))return e.apply(this,arguments);return n},t.fn.swipe.defaults=C,t.fn.swipe.phases={PHASE_START:x,PHASE_MOVE:w,PHASE_END:T,PHASE_CANCEL:b},t.fn.swipe.directions={LEFT:n,RIGHT:r,UP:s,DOWN:a,IN:o,OUT:l},t.fn.swipe.pageScroll={NONE:h,HORIZONTAL:m,VERTICAL:g,AUTO:u},t.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:v}}),"undefined"==typeof console){var console={};console.log=console.error=console.info=console.debug=console.warn=console.trace=console.dir=console.dirxml=console.group=console.groupEnd=console.time=console.timeEnd=console.assert=console.profile=console.groupCollapsed=function(){}}if(1==window.tplogs)try{console.groupCollapsed("ThemePunch GreenSocks Logs")}catch(e){}var oldgs=window.GreenSockGlobals;oldgs_queue=window._gsQueue;var punchgs=window.GreenSockGlobals={};if(1==window.tplogs)try{console.info("Build GreenSock SandBox for ThemePunch Plugins"),console.info("GreenSock TweenLite Engine Initalised by ThemePunch Plugin")}catch(e){}!function(t,e){"use strict";var i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!i.TweenLite){var n,r,s,a,o,l=function(t){var e,n=t.split("."),r=i;for(e=0;n.length>e;e++)r[n[e]]=r=r[n[e]]||{};return r},h=l("com.greensock"),u=1e-10,p=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},c=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)}}(),d={},_=function(n,r,s,a){this.sc=d[n]?d[n].sc:[],d[n]=this,this.gsClass=null,this.func=s;var o=[];this.check=function(h){for(var u,p,c,f,m=r.length,g=m;--m>-1;)(u=d[r[m]]||new _(r[m],[])).gsClass?(o[m]=u.gsClass,g--):h&&u.sc.push(this);if(0===g&&s)for(p=("com.greensock."+n).split("."),c=p.pop(),f=l(p.join("."))[c]=this.gsClass=s.apply(s,o),a&&(i[c]=f,"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+n.split(".").pop(),[],function(){return f}):n===e&&"undefined"!=typeof module&&module.exports&&(module.exports=f)),m=0;this.sc.length>m;m++)this.sc[m].check()},this.check(!0)},m=t._gsDefine=function(t,e,i,n){return new _(t,e,i,n)},g=h._class=function(t,e,i){return e=e||function(){},m(t,[],function(){return e},i),e};m.globals=i;var v=[0,0,1,1],y=[],x=g("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?v.concat(e):v},!0),w=x.map={},T=x.register=function(t,e,i,n){for(var r,s,a,o,l=e.split(","),u=l.length,p=(i||"easeIn,easeOut,easeInOut").split(",");--u>-1;)for(s=l[u],r=n?g("easing."+s,null,!0):h.easing[s]||{},a=p.length;--a>-1;)o=p[a],w[s+"."+o]=w[o+s]=r[o]=t.getRatio?t:t[o]||new t};for(s=x.prototype,s._calcEnd=!1,s.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:.5>t?n/2:1-n/2},n=["Linear","Quad","Cubic","Quart","Quint,Strong"],r=n.length;--r>-1;)s=n[r]+",Power"+r,T(new x(null,null,1,r),s,"easeOut",!0),T(new x(null,null,2,r),s,"easeIn"+(0===r?",easeNone":"")),T(new x(null,null,3,r),s,"easeInOut");w.linear=h.easing.Linear.easeIn,w.swing=h.easing.Quad.easeInOut;var b=g("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});s=b.prototype,s.addEventListener=function(t,e,i,n,r){r=r||0;var s,l,h=this._listeners[t],u=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)s=h[l],s.c===e&&s.s===i?h.splice(l,1):0===u&&r>s.pr&&(u=l+1);h.splice(u,0,{c:e,s:i,up:n,pr:r}),this!==a||o||a.wake()},s.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},s.dispatchEvent=function(t){var e,i,n,r=this._listeners[t];if(r)for(e=r.length,i=this._eventTarget;--e>-1;)n=r[e],n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i)};var P=t.requestAnimationFrame,S=t.cancelAnimationFrame,k=Date.now||function(){return(new Date).getTime()},O=k();for(n=["ms","moz","webkit","o"],r=n.length;--r>-1&&!P;)P=t[n[r]+"RequestAnimationFrame"],S=t[n[r]+"CancelAnimationFrame"]||t[n[r]+"CancelRequestAnimationFrame"];g("Ticker",function(t,e){var i,n,r,s,l,h=this,p=k(),f=e!==!1&&P,d=500,_=33,m=function(t){var e,a,o=k()-O;o>d&&(p+=o-_),O+=o,h.time=(O-p)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=s?.004:s-e),a=!0),t!==!0&&(r=n(m)),a&&h.dispatchEvent("tick")};b.call(h),h.time=h.frame=0,h.tick=function(){m(!0)},h.lagSmoothing=function(t,e){d=t||1/u,_=Math.min(e,d,0)},h.sleep=function(){null!=r&&(f&&S?S(r):clearTimeout(r),n=c,r=null,h===a&&(o=!1))},h.wake=function(){null!==r?h.sleep():h.frame>10&&(O=k()-d+5),n=0===i?c:f&&P?P:function(t){return setTimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),m(2)},h.fps=function(t){return arguments.length?(i=t,s=1/(i||60),l=this.time+s,void h.wake()):i},h.useRAF=function(t){return arguments.length?(h.sleep(),f=t,void h.fps(i)):f},h.fps(t),setTimeout(function(){f&&(!r||5>h.frame)&&h.useRAF(!1)},1500)}),s=h.Ticker.prototype=new h.events.EventDispatcher,s.constructor=h.Ticker;var C=g("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,U){o||a.wake();var i=this.vars.useFrames?B:U;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=C.ticker=new h.Ticker,s=C.prototype,s._dirty=s._gc=s._initted=s._paused=!1,s._totalTime=s._time=0,s._rawPrevTime=-1,s._next=s._last=s._onUpdate=s._timeline=s.timeline=null,s._paused=!1;var R=function(){o&&k()-O>2e3&&a.wake(),setTimeout(R,2e3)};R(),s.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},s.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},s.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},s.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},s.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},s.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},s.render=function(){},s.invalidate=function(){return this},s.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},s._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},s._kill=function(){return this._enabled(!1,!1)},s.kill=function(t,e){return this._kill(t,e),this},s._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},s._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},s.eventCallback=function(t,e,i,n){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"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},s.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},s.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},s.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},s.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},s.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 n=this._totalDuration,r=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-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),D.length&&G())}return this},s.progress=s.totalProgress=function(t,e){return arguments.length?this.totalTime(this.duration()*t,e):this._time/this.duration()},s.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},s.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||u,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)},s.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},s.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){o||t||a.wake();var e=this._timeline,i=e.rawTime(),n=i-this._pauseTime;!t&&e.smoothChildTiming&&(this._startTime+=n,this._uncache(!1)),this._pauseTime=t?i:null,this._paused=t,this._active=this.isActive(),!t&&0!==n&&this._initted&&this.duration()&&this.render(e.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var A=g("core.SimpleTimeline",function(t){C.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});s=A.prototype=new C,s.constructor=A,s.kill()._gc=!1,s._first=s._last=null,s._sortChildren=!1,s.add=s.insert=function(t,e){var i,n;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(n=t._startTime;i&&i._startTime>n;)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._timeline&&this._uncache(!0),this},s._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,this._timeline&&this._uncache(!0)),this},s.render=function(t,e,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)n=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=n},s.rawTime=function(){return o||a.wake(),this._totalTime};var M=g("TweenLite",function(e,i,n){if(C.call(this,i,n),this.render=M.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:M.selector(e)||e;var r,s,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?j[M.defaultOverwrite]:"number"==typeof l?l>>0:j[l],(o||e instanceof Array||e.push&&f(e))&&"number"!=typeof e[0])for(this._targets=a=p(e),this._propLookup=[],this._siblings=[],r=0;a.length>r;r++)s=a[r],s?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(p(s))):(this._siblings[r]=V(s,this,!1),1===l&&this._siblings[r].length>1&&W(s,this,null,1,this._siblings[r])):(s=a[r--]=M.selector(s),"string"==typeof s&&a.splice(r+1,1)):a.splice(r--,1);else this._propLookup={},this._siblings=V(e,this,!1),1===l&&this._siblings.length>1&&W(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-u,this.render(-this._delay))},!0),E=function(e){return e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},L=function(t,e){var i,n={};for(i in t)Y[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!z[i]||z[i]&&z[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n};s=M.prototype=new C,s.constructor=M,s.kill()._gc=!1,s.ratio=0,s._firstPT=s._targets=s._overwrittenProps=s._startAt=null,s._notifyPluginsOfEnabled=s._lazy=!1,M.version="1.13.1",M.defaultEase=s._ease=new x(null,null,1,1),M.defaultOverwrite="auto",M.ticker=a,M.autoSleep=!0,M.lagSmoothing=function(t,e){a.lagSmoothing(t,e)},M.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(M.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var D=[],I={},X=M._internals={isArray:f,isSelector:E,lazyTweens:D},z=M._plugins={},N=X.tweenLookup={},F=0,Y=X.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},j={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},B=C._rootFramesTimeline=new A,U=C._rootTimeline=new A,G=X.lazyRender=function(){var t=D.length;for(I={};--t>-1;)n=D[t],n&&n._lazy!==!1&&(n.render(n._lazy,!1,!0),n._lazy=!1);D.length=0};U._startTime=a.time,B._startTime=a.frame,U._active=B._active=!0,setTimeout(G,1),C._updateRoot=M.render=function(){var t,e,i;if(D.length&&G(),U.render((a.time-U._startTime)*U._timeScale,!1,!1),B.render((a.frame-B._startTime)*B._timeScale,!1,!1),D.length&&G(),!(a.frame%120)){for(i in N){for(e=N[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete N[i]}if(i=U._first,(!i||i._paused)&&M.autoSleep&&!B._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addEventListener("tick",C._updateRoot);var V=function(t,e,i){var n,r,s=t._gsTweenID;if(N[s||(t._gsTweenID=s="t"+F++)]||(N[s]={target:t,tweens:[]}),e&&(n=N[s].tweens,n[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return N[s].tweens},W=function(t,e,i,n,r){var s,a,o,l;if(1===n||n>=4){for(l=r.length,s=0;l>s;s++)if((o=r[s])!==e)o._gc||o._enabled(!1,!1)&&(a=!0);else if(5===n)break;return a}var h,p=e._startTime+u,c=[],f=0,d=0===e._duration;for(s=r.length;--s>-1;)(o=r[s])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||H(e,0,d),0===H(o,h,d)&&(c[f++]=o)):p>=o._startTime&&o._startTime+o.totalDuration()/o._timeScale>p&&((d||!o._initted)&&2e-10>=p-o._startTime||(c[f++]=o)));for(s=f;--s>-1;)o=c[s],2===n&&o._kill(i,t)&&(a=!0),(2!==n||!o._firstPT&&o._initted)&&o._enabled(!1,!1)&&(a=!0);return a},H=function(t,e,i){for(var n=t._timeline,r=n._timeScale,s=t._startTime;n._timeline;){if(s+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return s/=r,s>e?s-e:i&&s===e||!t._initted&&2*u>s-e?u:(s+=t.totalDuration()/t._timeScale/r)>e+u?0:s-e-u};s._init=function(){var t,e,i,n,r,s=this.vars,a=this._overwrittenProps,o=this._duration,l=!!s.immediateRender,h=s.ease;if(s.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={};for(n in s.startAt)r[n]=s.startAt[n];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=l&&s.lazy!==!1,r.startAt=r.delay=null,this._startAt=M.to(this.target,0,r),l)if(this._time>0)this._startAt=null;else if(0!==o)return}else if(s.runBackwards&&0!==o)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{i={};for(n in s)Y[n]&&"autoCSS"!==n||(i[n]=s[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&s.lazy!==!1,i.immediateRender=l,this._startAt=M.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1)}if(this._ease=h=h?h instanceof x?h:"function"==typeof h?new x(h,s.easeParams):w[h]||M.defaultEase:M.defaultEase,s.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,s.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&&M._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),s.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=s.onUpdate,this._initted=!0},s._initProps=function(e,i,n,r){var s,a,o,l,h,u;if(null==e)return!1;I[e._gsTweenID]&&G(),this.vars.css||e.style&&e!==t&&e.nodeType&&z.css&&this.vars.autoCSS!==!1&&L(this.vars,e);for(s in this.vars){if(u=this.vars[s],Y[s])u&&(u instanceof Array||u.push&&f(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[s]=u=this._swapSelfInParams(u,this));else if(z[s]&&(l=new z[s])._onInitTween(e,this.vars[s],this)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:!0,n:s,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[s]=h={_next:this._firstPT,t:e,p:s,f:"function"==typeof e[s],n:s,pg:!1,pr:0},h.s=h.f?e[s.indexOf("set")||"function"!=typeof e["get"+s.substr(3)]?s:"get"+s.substr(3)]():parseFloat(e[s]),h.c="string"==typeof u&&"="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*Number(u.substr(2)):Number(u)-h.s||0;h&&h._next&&(h._next._prev=h)}return r&&this._kill(r,e)?this._initProps(e,i,n,r):this._overwrite>1&&this._firstPT&&n.length>1&&W(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,r)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(I[e._gsTweenID]=!0),o)},s.render=function(t,e,i){var n,r,s,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||(n=!0,r="onComplete"),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>h||h===u)&&h!==t&&(i=!0,h>u&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:u);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&&h!==u)&&(r="onReverseComplete",n=this._reversed),0>t?(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:u)):this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var p=t/l,c=this._easeType,f=this._easePower;(1===c||3===c&&p>=.5)&&(p=1-p),3===c&&(p*=2),1===f?p*=p:2===f?p*=p*p:3===f?p*=p*p*p:4===f&&(p*=p*p*p*p),this.ratio=1===c?1-p:2===c?p:.5>t/l?p/2:1-p/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,D.push(this),void(this._lazy=t);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&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||y))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._time!==o||n)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||y)),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),n&&(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"]||y),0===l&&this._rawPrevTime===u&&a!==u&&(this._rawPrevTime=0))}},s._kill=function(t,e){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:M.selector(e)||e;var i,n,r,s,a,o,l,h;if((f(e)||E(e))&&"number"!=typeof e[0])for(i=e.length;--i>-1;)this._kill(t,e[i])&&(o=!0);else{if(this._targets){for(i=this._targets.length;--i>-1;)if(e===this._targets[i]){a=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[i]=t?this._overwrittenProps[i]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){l=t||a,h=t!==n&&"all"!==n&&t!==a&&("object"!=typeof t||!t._tempKill);for(r in l)(s=a[r])&&(s.pg&&s.t._kill(l)&&(o=!0),s.pg&&0!==s.t._overwriteProps.length||(s._prev?s._prev._next=s._next:s===this._firstPT&&(this._firstPT=s._next),s._next&&(s._next._prev=s._prev),s._next=s._prev=null),delete a[r]),h&&(n[r]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return o},s.invalidate=function(){return this._notifyPluginsOfEnabled&&M._onPluginEvent("_onDisable",this),this._firstPT=null,this._overwrittenProps=null,this._onUpdate=null,this._startAt=null,this._initted=this._active=this._notifyPluginsOfEnabled=this._lazy=!1,this._propLookup=this._targets?{}:[],this},s._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=V(n[i],this,!0);else this._siblings=V(this.target,this,!0);
}return C.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT?M._onPluginEvent(t?"_onEnable":"_onDisable",this):!1},M.to=function(t,e,i){return new M(t,e,i)},M.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new M(t,e,i)},M.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new M(t,e,n)},M.delayedCall=function(t,e,i,n,r){return new M(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:n,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:n,immediateRender:!1,useFrames:r,overwrite:0})},M.set=function(t,e){return new M(t,0,e)},M.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:M.selector(t)||t;var i,n,r,s;if((f(t)||E(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(M.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(s=n[i],r=i;--r>-1;)s===n[r]&&n.splice(i,1)}else for(n=V(t).concat(),i=n.length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n},M.killTweensOf=M.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=M.getTweensOf(t,e),r=n.length;--r>-1;)n[r]._kill(i,t)};var Q=g("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=Q.prototype},!0);if(s=Q.prototype,Q.version="1.10.1",Q.API=2,s._firstPT=null,s._addTween=function(t,e,i,n,r,s){var a,o;return null!=n&&(a="number"==typeof n||"="!==n.charAt(1)?Number(n)-i:parseInt(n.charAt(0)+"1",10)*Number(n.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:s},o._next&&(o._next._prev=o),o):void 0},s.setRatio=function(t){for(var e,i=this._firstPT,n=1e-6;i;)e=i.c*t+i.s,i.r?e=Math.round(e):n>e&&e>-n&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},s._kill=function(t){var e,i=this._overwriteProps,n=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(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},s._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},M._onPluginEvent=function(t,e){var i,n,r,s,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:s)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:s=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},Q.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===Q.API&&(z[(new t[e])._propName]=t[e]);return!0},m.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,r=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},a=g("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){Q.call(this,i,n),this._overwriteProps=r||[]},t.global===!0),o=a.prototype=new Q(i);o.constructor=a,a.API=t.API;for(e in s)"function"==typeof t[e]&&(o[s[e]]=t[e]);return a.version=t.version,Q.activate([a]),a},n=t._gsQueue){for(r=0;n.length>r;r++)n[r]();for(s in d)d[s].func||t.console.log("GSAP encountered missing dependency: com.greensock."+s)}o=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite");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 n=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,n,r=this.vars;for(n in r)i=r[n],o(i)&&-1!==i.join("").indexOf("{self}")&&(r[n]=this._swapSelfInParams(i));o(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,s=i._internals,a=s.isSelector,o=s.isArray,l=s.lazyTweens,h=s.lazyRender,u=[],p=_gsScope._gsDefine.globals,c=function(t){var e,i={};for(e in t)i[e]=t[e];return i},f=function(t,e,i,n){t._timeline.pause(t._startTime),e&&e.apply(n||t._timeline,i||u)},d=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},_=n.prototype=new e;return n.version="1.13.1",_.constructor=n,_.kill()._gc=!1,_.to=function(t,e,n,r){var s=n.repeat&&p.TweenMax||i;return e?this.add(new s(t,e,n),r):this.set(t,n,r)},_.from=function(t,e,n,r){return this.add((n.repeat&&p.TweenMax||i).from(t,e,n),r)},_.fromTo=function(t,e,n,r,s){var a=r.repeat&&p.TweenMax||i;return e?this.add(a.fromTo(t,e,n,r),s):this.set(t,r,s)},_.staggerTo=function(t,e,r,s,o,l,h,u){var p,f=new n({onComplete:l,onCompleteParams:h,onCompleteScope:u,smoothChildTiming:this.smoothChildTiming});for("string"==typeof t&&(t=i.selector(t)||t),a(t)&&(t=d(t)),s=s||0,p=0;t.length>p;p++)r.startAt&&(r.startAt=c(r.startAt)),f.to(t[p],e,c(r),p*s);return this.add(f,o)},_.staggerFrom=function(t,e,i,n,r,s,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,r,s,a,o)},_.staggerFromTo=function(t,e,i,n,r,s,a,o,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,r,s,a,o,l)},_.call=function(t,e,n,r){return this.add(i.delayedCall(0,t,e,n),r)},_.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new i(t,0,e),n)},n.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,s,a=new n(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;)s=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=s;return o.add(a,0),a},_.add=function(r,s,a,l){var h,u,p,c,f,d;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&o(r)){for(a=a||"normal",l=l||0,h=s,u=r.length,p=0;u>p;p++)o(c=r[p])&&(c=new n({tweens:c})),this.add(c,h),"string"!=typeof c&&"function"!=typeof c&&("sequence"===a?h=c._startTime+c.totalDuration()/c._timeScale:"start"===a&&(c._startTime-=c.delay())),h+=l;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,s);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,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(f=this,d=f.rawTime()>r._startTime;f._timeline;)d&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},_.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof Array||e&&e.push&&o(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)},_._remove=function(t,i){e.prototype._remove.call(this,t,i);var n=this._last;return n?this._time>n._startTime+n._totalDuration/n._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},_.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},_.insert=_.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},_.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},_.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},_.addPause=function(t,e,i,n){return this.call(f,["{self}",e,i,n],this,t)},_.removeLabel=function(t){return delete this._labels[t],this},_.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},_._parseTimeOrLabel=function(e,i,n,r){var s;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&o(r)))for(s=r.length;--s>-1;)r[s]instanceof t&&r[s].timeline===this&&this.remove(r[s]);if("string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(s=e.indexOf("="),-1===s)return null==this._labels[e]?n?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,n):this.duration()}return Number(e)+i},_.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},_.stop=function(){return this.paused(!0)},_.gotoAndPlay=function(t,e){return this.play(t,e)},_.gotoAndStop=function(t,e){return this.pause(t,e)},_.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,a,o,p,c=this._dirty?this.totalDuration():this._totalDuration,f=this._time,d=this._startTime,_=this._timeScale,m=this._paused;if(t>=c?(this._totalTime=this._time=c,this._reversed||this._hasPausedChild()||(s=!0,o="onComplete",0===this._duration&&(0===t||0>this._rawPrevTime||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(p=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=c+1e-4):1e-7>t?(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",s=this._reversed),0>t?(this._active=!1,this._rawPrevTime>=0&&this._first&&(p=!0),this._rawPrevTime=t):(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=0,this._initted||(p=!0))):this._totalTime=this._time=this._rawPrevTime=t,this._time!==f&&this._first||i||p){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&t>0&&(this._active=!0),0===f&&this.vars.onStart&&0!==this._time&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||u)),this._time>=f)for(n=this._first;n&&(a=n._next,!this._paused||m);)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=a;else for(n=this._last;n&&(a=n._prev,!this._paused||m);)(n._active||f>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=a;this._onUpdate&&(e||(l.length&&h(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||u))),o&&(this._gc||(d===this._startTime||_!==this._timeScale)&&(0===this._time||c>=this.totalDuration())&&(s&&(l.length&&h(),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)))}},_._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof n&&t._hasPausedChild())return!0;t=t._next}return!1},_.getChildren=function(t,e,n,r){r=r||-9999999999;for(var s=[],a=this._first,o=0;a;)r>a._startTime||(a instanceof i?e!==!1&&(s[o++]=a):(n!==!1&&(s[o++]=a),t!==!1&&(s=s.concat(a.getChildren(!0,e,n)),o=s.length))),a=a._next;return s},_.getTweensOf=function(t,e){var n,r,s=this._gc,a=[],o=0;for(s&&this._enabled(!0,!0),n=i.getTweensOf(t),r=n.length;--r>-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(a[o++]=n[r]);return s&&this._enabled(!1,!0),a},_._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},_.shiftChildren=function(t,e,i){i=i||0;for(var n,r=this._first,s=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return this._uncache(!0)},_._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,r=!1;--n>-1;)i[n]._kill(t,e)&&(r=!0);return r},_.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)},_.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return this},_._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},_.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},_.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,r=this._last,s=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):s=r._startTime,0>r._startTime&&!r._paused&&(n-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),s=0),i=r._startTime+r._totalDuration/r._timeScale,i>n&&(n=i),r=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this},_.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},_.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},n},!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");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,n,r=_gsScope.GreenSockGlobals||_gsScope,s=r.com.greensock,a=2*Math.PI,o=Math.PI/2,l=s._class,h=function(e,i){var n=l("easing."+e,function(){},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,n},u=t.register||function(){},p=function(t,e,i,n){var r=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0);return u(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 n=l("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,r.config=function(t){return new n(t)},n},d=p("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)})),_=l("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),m=_.prototype=new t;return m.constructor=_,m.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},_.ease=new _(.7,.7),m.config=_.config=function(t,e,i){return new _(t,e,i)},e=l("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),m=e.prototype=new t,m.constructor=e,m.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},m.config=e.config=function(t){return new e(t)},i=l("easing.RoughEase",function(e){e=e||{};for(var i,n,r,s,a,o,l=e.taper||"none",h=[],u=0,p=0|(e.points||20),f=p,d=e.randomize!==!1,_=e.clamp===!0,m=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--f>-1;)i=d?Math.random():1/p*f,n=m?m.getRatio(i):i,"none"===l?r=g:"out"===l?(s=1-i,r=s*s*g):"in"===l?r=i*i*g:.5>i?(s=2*i,r=.5*s*s*g):(s=2*(1-i),r=.5*s*s*g),d?n+=Math.random()*r-.5*r:f%2?n+=.5*r:n-=.5*r,_&&(n>1?n=1:0>n&&(n=0)),h[u++]={x:i,y:n};for(h.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),f=p;--f>-1;)a=h[f],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),m=i.prototype=new t,m.constructor=i,m.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},m.config=function(t){return new i(t)},i.ease=new i,p("Bounce",h("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}),h("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)}),h("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})),p("Circ",h("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),h("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),h("CircInOut",function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),n=function(e,i,n){var r=l("easing."+e,function(t,e){this._p1=t||1,this._p2=e||n,this._p3=this._p2/a*(Math.asin(1/this._p1)||0)},!0),s=r.prototype=new t;return s.constructor=r,s.getRatio=i,s.config=function(t,e){return new r(t,e)},r},p("Elastic",n("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*a/this._p2)+1},.3),n("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2))},.3),n("ElasticInOut",function(t){return 1>(t*=2)?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*a/this._p2)+1},.45)),p("Expo",h("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),h("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),h("ExpoInOut",function(t){return 1>(t*=2)?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),p("Sine",h("SineOut",function(t){return Math.sin(t*o)}),h("SineIn",function(t){return-Math.cos(t*o)+1}),h("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),u(r.SlowMo,"SlowMo","ease,"),u(i,"RoughEase","ease,"),u(e,"SteppedEase","ease,"),d},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();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,n,r,s,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o={},l=a.prototype=new t("css");l.constructor=a,a.version="1.13.0",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",l="px",a.suffixMap={top:l,right:l,bottom:l,left:l,width:l,height:l,fontSize:l,padding:l,margin:l,perspective:l,lineHeight:""};var h,u,p,c,f,d,_=/(?:\d|\-\d|\.\d|\-\.\d)+/g,m=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,g=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/[^\d\-\.]/g,y=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,w=/opacity:([^;]*)/i,T=/alpha\(opacity *=.+?\)/i,b=/^(rgb|hsl)/,P=/([A-Z])/g,S=/-([a-z])/gi,k=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,O=function(t,e){return e.toUpperCase()},C=/(?:Left|Right|Width)/i,R=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,A=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,M=/,(?=[^\)]*(?:\(|$))/gi,E=Math.PI/180,L=180/Math.PI,D={},I=document,X=I.createElement("div"),z=I.createElement("img"),N=a._internals={_specialProps:o},F=navigator.userAgent,Y=function(){var t,e=F.indexOf("Android"),i=I.createElement("div");return p=-1!==F.indexOf("Safari")&&-1===F.indexOf("Chrome")&&(-1===e||Number(F.substr(e+8,1))>3),f=p&&6>Number(F.substr(F.indexOf("Version/")+8,1)),c=-1!==F.indexOf("Firefox"),/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(F)&&(d=parseFloat(RegExp.$1)),i.innerHTML="<a style='top:1px;opacity:.55;'>a</a>",t=i.getElementsByTagName("a")[0],t?/^0.55/.test(t.style.opacity):!1}(),j=function(t){return x.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},B=function(t){window.console&&console.log(t)},U="",G="",V=function(t,e){e=e||X;var i,n,r=e.style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===r[i[n]+t];);return n>=0?(G=3===n?"ms":i[n],U="-"+G.toLowerCase()+"-",G+t):null},W=I.defaultView?I.defaultView.getComputedStyle:function(){},H=a.getStyle=function(t,e,i,n,r){var s;return Y||"opacity"!==e?(!n&&t.style[e]?s=t.style[e]:(i=i||W(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(P,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==r||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:r):j(t)},Q=N.convertToPixels=function(t,i,n,r,s){if("px"===r||!r)return n;if("auto"===r||!n)return 0;var o,l,h,u=C.test(i),p=t,c=X.style,f=0>n;if(f&&(n=-n),"%"===r&&-1!==i.indexOf("border"))o=n/100*(u?t.clientWidth:t.clientHeight);else{if(c.cssText="border:0 solid red;position:"+H(t,"position")+";line-height:0;","%"!==r&&p.appendChild)c[u?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(p=t.parentNode||I.body,l=p._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*n/100;c[u?"width":"height"]=n+r}p.appendChild(X),o=parseFloat(X[u?"offsetWidth":"offsetHeight"]),p.removeChild(X),u&&"%"===r&&a.cacheWidths!==!1&&(l=p._gsCache=p._gsCache||{},l.time=h,l.width=100*(o/n)),0!==o||s||(o=Q(t,i,n,r,!0))}return f?-o:o},q=N.calculateOffset=function(t,e,i){if("absolute"!==H(t,"position",i))return 0;var n="left"===e?"Left":"Top",r=H(t,"margin"+n,i);return t["offset"+n]-(Q(t,e,parseFloat(r),r.replace(y,""))||0)},Z=function(t,e){var i,n,r={};if(e=e||W(t,null))if(i=e.length)for(;--i>-1;)r[e[i].replace(S,O)]=e.getPropertyValue(e[i]);else for(i in e)r[i]=e[i];else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===r[i]&&(r[i.replace(S,O)]=e[i]);return Y||(r.opacity=j(t)),n=Pt(t,e,!1),r.rotation=n.rotation,r.skewX=n.skewX,r.scaleX=n.scaleX,r.scaleY=n.scaleY,r.x=n.x,r.y=n.y,Tt&&(r.z=n.z,r.rotationX=n.rotationX,r.rotationY=n.rotationY,r.scaleZ=n.scaleZ),r.filters&&delete r.filters,r},$=function(t,e,i,n,r){var s,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(s=i[a])||r&&r[a])&&-1===a.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[a]="auto"!==s||"left"!==a&&"top"!==a?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[a]||""===e[a].replace(v,"")?s:0:q(t,a),void 0!==h[a]&&(o=new pt(h,a,h[a],o)));if(n)for(a in n)"className"!==a&&(l[a]=n[a]);return{difs:l,firstMPT:o}},K={width:["Left","Right"],height:["Top","Bottom"]},J=["marginLeft","marginRight","marginTop","marginBottom"],tt=function(t,e,i){var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=K[e],s=r.length;for(i=i||W(t,null);--s>-1;)n-=parseFloat(H(t,"padding"+r[s],i,!0))||0,n-=parseFloat(H(t,"border"+r[s]+"Width",i,!0))||0;return n},et=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],r=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==r?r="0":"center"===r&&(r="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==r.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===r.charAt(1),e.ox=parseFloat(n.replace(v,"")),e.oy=parseFloat(r.replace(v,""))),n+" "+r+(i.length>2?" "+i[2]:"")},it=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},nt=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*Number(t.substr(2))+e:parseFloat(t)},rt=function(t,e,i,n){var r,s,a,o,l=1e-6;return null==t?o=e:"number"==typeof t?o=t:(r=360,s=t.split("_"),a=Number(s[0].replace(v,""))*(-1===t.indexOf("rad")?1:L)-("="===t.charAt(1)?0:e),s.length&&(n&&(n[i]=e+a),-1!==t.indexOf("short")&&(a%=r,a!==a%(r/2)&&(a=0>a?a+r:a-r)),-1!==t.indexOf("_cw")&&0>a?a=(a+9999999999*r)%r-(0|a/r)*r:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*r)%r-(0|a/r)*r)),o=e+a),l>o&&o>-l&&(o=0),o},st={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]},at=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},ot=function(t){var e,i,n,r,s,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)),st[t]?st[t]:"#"===t.charAt(0)?(4===t.length&&(e=t.charAt(1),i=t.charAt(2),n=t.charAt(3),t="#"+e+e+i+i+n+n),t=parseInt(t.substr(1),16),[t>>16,255&t>>8,255&t]):"hsl"===t.substr(0,3)?(t=t.match(_),r=Number(t[0])%360/360,s=Number(t[1])/100,a=Number(t[2])/100,i=.5>=a?a*(s+1):a+s-a*s,e=2*a-i,t.length>3&&(t[3]=Number(t[3])),t[0]=at(r+1/3,e,i),t[1]=at(r,e,i),t[2]=at(r-1/3,e,i),t):(t=t.match(_)||st.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)):st.black},lt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(l in st)lt+="|"+l+"\\b";lt=RegExp(lt+")","gi");var ht=function(t,e,i,n){if(null==t)return function(t){return t};var r,s=e?(t.match(lt)||[""])[0]:"",a=t.split(s).join("").match(g)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",u=a.length,p=u>0?a[0].replace(_,""):"";return u?r=e?function(t){var e,c,f,d;if("number"==typeof t)t+=p;else if(n&&M.test(t)){for(d=t.replace(M,"|").split("|"),f=0;d.length>f;f++)d[f]=r(d[f]);return d.join(",")}if(e=(t.match(lt)||[s])[0],c=t.split(e).join("").match(g)||[],f=c.length,u>f--)for(;u>++f;)c[f]=i?c[0|(f-1)/2]:a[f];return o+c.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,s,c;if("number"==typeof t)t+=p;else if(n&&M.test(t)){for(s=t.replace(M,"|").split("|"),c=0;s.length>c;c++)s[c]=r(s[c]);return s.join(",")}if(e=t.match(g)||[],c=e.length,u>c--)for(;u>++c;)e[c]=i?e[0|(c-1)/2]:a[c];return o+e.join(h)+l}:function(t){return t}},ut=function(t){return t=t.split(","),function(e,i,n,r,s,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 r.parse(e,o,s,a)}},pt=(N._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,r,s=this.data,a=s.proxy,o=s.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(s.autoRotate&&(s.autoRotate.rotation=a.rotation),1===t)for(o=s.firstMPT;o;){if(i=o.t,i.type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,n=1;i.l>n;n++)r+=i["xn"+n]+i["xs"+(n+1)];i.e=r}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,n,r){this.t=t,this.p=e,this.v=i,this.r=r,n&&(n._prev=this,this._next=n)}),ct=(N._parseToProxy=function(t,e,i,n,r,s){var a,o,l,h,u,p=n,c={},f={},d=i._transform,_=D;for(i._transform=null,D=e,n=u=i.parse(t,e,n,r),D=_,s&&(i._transform=d,p&&(p._prev=null,p._prev&&(p._prev._next=null)));n&&n!==p;){if(1>=n.type&&(o=n.p,f[o]=n.s+n.c,c[o]=n.s,s||(h=new pt(n,"s",o,h,n.r),n.c=0),1===n.type))for(a=n.l;--a>0;)l="xn"+a,o=n.p+"_"+l,f[o]=n.data[l],c[o]=n[l],s||(h=new pt(n,l,o,h,n.rxp[l]));n=n._next}return{proxy:c,end:f,firstMPT:h,pt:u}},N.CSSPropTween=function(t,e,n,r,a,o,l,h,u,p,c){this.t=t,this.p=e,this.s=n,this.c=r,this.n=l||e,t instanceof ct||s.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===p?n:p,this.e=void 0===c?n+r:c,a&&(this._next=a,a._prev=this)}),ft=a.parseComplex=function(t,e,i,n,r,s,a,o,l,u){i=i||s||"",a=new ct(t,e,0,0,a,u?2:1,null,!1,o,i,n),n+="";var p,c,f,d,g,v,y,x,w,T,P,S,k=i.split(", ").join(",").split(" "),O=n.split(", ").join(",").split(" "),C=k.length,R=h!==!1;for((-1!==n.indexOf(",")||-1!==i.indexOf(","))&&(k=k.join(" ").replace(M,", ").split(" "),O=O.join(" ").replace(M,", ").split(" "),C=k.length),C!==O.length&&(k=(s||"").split(" "),C=k.length),a.plugin=l,a.setRatio=u,p=0;C>p;p++)if(d=k[p],g=O[p],x=parseFloat(d),x||0===x)a.appendXtra("",x,it(g,x),g.replace(m,""),R&&-1!==g.indexOf("px"),!0);else if(r&&("#"===d.charAt(0)||st[d]||b.test(d)))S=","===g.charAt(g.length-1)?"),":")",d=ot(d),g=ot(g),w=d.length+g.length>6,w&&!Y&&0===g[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(O[p]).join("transparent")):(Y||(w=!1),a.appendXtra(w?"rgba(":"rgb(",d[0],g[0]-d[0],",",!0,!0).appendXtra("",d[1],g[1]-d[1],",",!0).appendXtra("",d[2],g[2]-d[2],w?",":S,!0),w&&(d=4>d.length?1:d[3],a.appendXtra("",d,(4>g.length?1:g[3])-d,S,!1)));else if(v=d.match(_)){if(y=g.match(m),!y||y.length!==v.length)return a;for(f=0,c=0;v.length>c;c++)P=v[c],T=d.indexOf(P,f),a.appendXtra(d.substr(f,T-f),Number(P),it(y[c],P),"",R&&"px"===d.substr(T+P.length,2),0===c),f=T+P.length;a["xs"+a.l]+=d.substr(f)}else a["xs"+a.l]+=a.l?" "+d:d;if(-1!==n.indexOf("=")&&a.data){for(S=a.xs0+a.data.s,p=1;a.l>p;p++)S+=a["xs"+p]+a.data["xn"+p];a.e=S+a["xs"+p]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},dt=9;for(l=ct.prototype,l.l=l.pr=0;--dt>0;)l["xn"+dt]=0,l["xs"+dt]="";l.xs0="",l._next=l._prev=l.xfirst=l.data=l.plugin=l.setRatio=l.rxp=null,l.appendXtra=function(t,e,i,n,r,s){var a=this,o=a.l;return a["xs"+o]+=s&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=n||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=r,a["xn"+o]=e,a.plugin||(a.xfirst=new ct(a,"xn"+o,e,i,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=r,a)):(a["xs"+o]+=e+(n||""),a)};var _t=function(t,e){e=e||{},this.p=e.prefix?V(t)||t:t,o[t]=o[this.p]=this,this.format=e.formatter||ht(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},mt=N._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var n,r,s=t.split(","),a=e.defaultValue;for(i=i||[a],n=0;s.length>n;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||a,r=new _t(s[n],e)},gt=function(t){if(!o[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";mt(t,{parser:function(t,i,n,r,s,a,l){var h=(_gsScope.GreenSockGlobals||_gsScope).com.greensock.plugins[e];return h?(h._cssRegister(),o[n].parse(t,i,n,r,s,a,l)):(B("Error: "+e+" js file not loaded."),s)}})}};l=_t.prototype,l.parseComplex=function(t,e,i,n,r,s){var a,o,l,h,u,p,c=this.keyword;if(this.multi&&(M.test(i)||M.test(e)?(o=e.replace(M,"|").split("|"),l=i.replace(M,"|").split("|")):c&&(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,c&&(u=e.indexOf(c),p=i.indexOf(c),u!==p&&(i=-1===p?l:o,i[a]+=" "+c));e=o.join(", "),i=l.join(", ")}return ft(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,r,s)},l.parse=function(t,e,i,n,s,a){return this.parseComplex(t.style,this.format(H(t,this.p,r,!1,this.dflt)),this.format(e),s,a)},a.registerSpecialProp=function(t,e,i){mt(t,{parser:function(t,n,r,s,a,o){var l=new ct(t,r,0,0,a,2,r,!1,i);return l.plugin=o,l.setRatio=e(t,n,s._tween,r),l},priority:i})};var vt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),yt=V("transform"),xt=U+"transform",wt=V("transformOrigin"),Tt=null!==V("perspective"),bt=N.Transform=function(){this.skewY=0},Pt=N.getTransform=function(t,e,i,n){if(t._gsTransform&&i&&!n)return t._gsTransform;
var r,s,o,l,h,u,p,c,f,d,_,m,g,v=i?t._gsTransform||new bt:new bt,y=0>v.scaleX,x=2e-5,w=1e5,T=179.99,b=T*E,P=Tt?parseFloat(H(t,wt,e,!1,"0 0 0").split(" ")[2])||v.zOrigin||0:0;if(yt?r=H(t,xt,e,!0):t.currentStyle&&(r=t.currentStyle.filter.match(R),r=r&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),v.x||0,v.y||0].join(","):""),r&&"none"!==r&&"matrix(1, 0, 0, 1, 0, 0)"!==r){for(s=(r||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],o=s.length;--o>-1;)l=Number(s[o]),s[o]=(h=l-(l|=0))?(0|h*w+(0>h?-.5:.5))/w+l:l;if(16===s.length){var S=s[8],k=s[9],O=s[10],C=s[12],A=s[13],M=s[14];if(v.zOrigin&&(M=-v.zOrigin,C=S*M-s[12],A=k*M-s[13],M=O*M+v.zOrigin-s[14]),!i||n||null==v.rotationX){var D,I,X,z,N,F,Y,j=s[0],B=s[1],U=s[2],G=s[3],V=s[4],W=s[5],Q=s[6],q=s[7],Z=s[11],$=Math.atan2(Q,O),K=-b>$||$>b;v.rotationX=$*L,$&&(z=Math.cos(-$),N=Math.sin(-$),D=V*z+S*N,I=W*z+k*N,X=Q*z+O*N,S=V*-N+S*z,k=W*-N+k*z,O=Q*-N+O*z,Z=q*-N+Z*z,V=D,W=I,Q=X),$=Math.atan2(S,j),v.rotationY=$*L,$&&(F=-b>$||$>b,z=Math.cos(-$),N=Math.sin(-$),D=j*z-S*N,I=B*z-k*N,X=U*z-O*N,k=B*N+k*z,O=U*N+O*z,Z=G*N+Z*z,j=D,B=I,U=X),$=Math.atan2(B,W),v.rotation=$*L,$&&(Y=-b>$||$>b,z=Math.cos(-$),N=Math.sin(-$),j=j*z+V*N,I=B*z+W*N,W=B*-N+W*z,Q=U*-N+Q*z,B=I),Y&&K?v.rotation=v.rotationX=0:Y&&F?v.rotation=v.rotationY=0:F&&K&&(v.rotationY=v.rotationX=0),v.scaleX=(0|Math.sqrt(j*j+B*B)*w+.5)/w,v.scaleY=(0|Math.sqrt(W*W+k*k)*w+.5)/w,v.scaleZ=(0|Math.sqrt(Q*Q+O*O)*w+.5)/w,v.skewX=0,v.perspective=Z?1/(0>Z?-Z:Z):0,v.x=C,v.y=A,v.z=M}}else if(!(Tt&&!n&&s.length&&v.x===s[4]&&v.y===s[5]&&(v.rotationX||v.rotationY)||void 0!==v.x&&"none"===H(t,"display",e))){var J=s.length>=6,tt=J?s[0]:1,et=s[1]||0,it=s[2]||0,nt=J?s[3]:1;v.x=s[4]||0,v.y=s[5]||0,u=Math.sqrt(tt*tt+et*et),p=Math.sqrt(nt*nt+it*it),c=tt||et?Math.atan2(et,tt)*L:v.rotation||0,f=it||nt?Math.atan2(it,nt)*L+c:v.skewX||0,d=u-Math.abs(v.scaleX||0),_=p-Math.abs(v.scaleY||0),Math.abs(f)>90&&270>Math.abs(f)&&(y?(u*=-1,f+=0>=c?180:-180,c+=0>=c?180:-180):(p*=-1,f+=0>=f?180:-180)),m=(c-v.rotation)%180,g=(f-v.skewX)%180,(void 0===v.skewX||d>x||-x>d||_>x||-x>_||m>-T&&T>m&&!1|m*w||g>-T&&T>g&&!1|g*w)&&(v.scaleX=u,v.scaleY=p,v.rotation=c,v.skewX=f),Tt&&(v.rotationX=v.rotationY=v.z=0,v.perspective=parseFloat(a.defaultTransformPerspective)||0,v.scaleZ=1)}v.zOrigin=P;for(o in v)x>v[o]&&v[o]>-x&&(v[o]=0)}else v={x:0,y:0,z:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,perspective:0,rotation:0,rotationX:0,rotationY:0,zOrigin:0};return i&&(t._gsTransform=v),v.xPercent=v.yPercent=0,v},St=function(t){var e,i,n=this.data,r=-n.rotation*E,s=r+n.skewX*E,a=1e5,o=(0|Math.cos(r)*n.scaleX*a)/a,l=(0|Math.sin(r)*n.scaleX*a)/a,h=(0|Math.sin(s)*-n.scaleY*a)/a,u=(0|Math.cos(s)*n.scaleY*a)/a,p=this.t.style,c=this.t.currentStyle;if(c){i=l,l=-h,h=-i,e=c.filter,p.filter="";var f,_,m=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==c.position,w="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,T=n.x+m*n.xPercent/100,b=n.y+g*n.yPercent/100;if(null!=n.ox&&(f=(n.oxp?.01*m*n.ox:n.ox)-m/2,_=(n.oyp?.01*g*n.oy:n.oy)-g/2,T+=f-(f*o+_*l),b+=_-(f*h+_*u)),v?(f=m/2,_=g/2,w+=", Dx="+(f-(f*o+_*l)+T)+", Dy="+(_-(f*h+_*u)+b)+")"):w+=", sizingMethod='auto expand')",p.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(A,w):w+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===w.indexOf("Dx=0, Dy=0")||x.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&p.removeAttribute("filter")),!v){var P,S,k,O=8>d?1:-1;for(f=n.ieOffsetX||0,_=n.ieOffsetY||0,n.ieOffsetX=Math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*g))/2+T),n.ieOffsetY=Math.round((g-((0>u?-u:u)*g+(0>h?-h:h)*m))/2+b),dt=0;4>dt;dt++)S=J[dt],P=c[S],i=-1!==P.indexOf("px")?parseFloat(P):Q(this.t,S,parseFloat(P),P.replace(y,""))||0,k=i!==n[S]?2>dt?-n.ieOffsetX:-n.ieOffsetY:2>dt?f-n.ieOffsetX:_-n.ieOffsetY,p[S]=(n[S]=Math.round(i-k*(0===dt||2===dt?1:O)))+"px"}}},kt=N.set3DTransformRatio=function(t){var e,i,n,r,s,a,o,l,h,u,p,f,d,_,m,g,v,y,x,w,T,b,P,S=this.data,k=this.t.style,O=S.rotation*E,C=S.scaleX,R=S.scaleY,A=S.scaleZ,M=S.x,L=S.y,D=S.z,I=S.perspective;if(!(1!==t&&0!==t||"auto"!==S.force3D||S.rotationY||S.rotationX||1!==A||I||D))return void Ot.call(this,t);if(c){var X=1e-4;X>C&&C>-X&&(C=A=2e-5),X>R&&R>-X&&(R=A=2e-5),!I||S.z||S.rotationX||S.rotationY||(I=0)}if(O||S.skewX)y=Math.cos(O),x=Math.sin(O),e=y,s=x,S.skewX&&(O-=S.skewX*E,y=Math.cos(O),x=Math.sin(O),"simple"===S.skewType&&(w=Math.tan(S.skewX*E),w=Math.sqrt(1+w*w),y*=w,x*=w)),i=-x,a=y;else{if(!(S.rotationY||S.rotationX||1!==A||I))return void(k[yt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) translate3d(":"translate3d(")+M+"px,"+L+"px,"+D+"px)"+(1!==C||1!==R?" scale("+C+","+R+")":""));e=a=1,i=s=0}p=1,n=r=o=l=h=u=f=d=_=0,m=I?-1/I:0,g=S.zOrigin,v=1e5,O=S.rotationY*E,O&&(y=Math.cos(O),x=Math.sin(O),h=p*-x,d=m*-x,n=e*x,o=s*x,p*=y,m*=y,e*=y,s*=y),O=S.rotationX*E,O&&(y=Math.cos(O),x=Math.sin(O),w=i*y+n*x,T=a*y+o*x,b=u*y+p*x,P=_*y+m*x,n=i*-x+n*y,o=a*-x+o*y,p=u*-x+p*y,m=_*-x+m*y,i=w,a=T,u=b,_=P),1!==A&&(n*=A,o*=A,p*=A,m*=A),1!==R&&(i*=R,a*=R,u*=R,_*=R),1!==C&&(e*=C,s*=C,h*=C,d*=C),g&&(f-=g,r=n*f,l=o*f,f=p*f+g),r=(w=(r+=M)-(r|=0))?(0|w*v+(0>w?-.5:.5))/v+r:r,l=(w=(l+=L)-(l|=0))?(0|w*v+(0>w?-.5:.5))/v+l:l,f=(w=(f+=D)-(f|=0))?(0|w*v+(0>w?-.5:.5))/v+f:f,k[yt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix3d(":"matrix3d(")+[(0|e*v)/v,(0|s*v)/v,(0|h*v)/v,(0|d*v)/v,(0|i*v)/v,(0|a*v)/v,(0|u*v)/v,(0|_*v)/v,(0|n*v)/v,(0|o*v)/v,(0|p*v)/v,(0|m*v)/v,r,l,f,I?1+-f/I:1].join(",")+")"},Ot=N.set2DTransformRatio=function(t){var e,i,n,r,s,a=this.data,o=this.t,l=o.style,h=a.x,u=a.y;return a.rotationX||a.rotationY||a.z||a.force3D===!0||"auto"===a.force3D&&1!==t&&0!==t?(this.setRatio=kt,void kt.call(this,t)):void(a.rotation||a.skewX?(e=a.rotation*E,i=e-a.skewX*E,n=1e5,r=a.scaleX*n,s=a.scaleY*n,l[yt]=(a.xPercent||a.yPercent?"translate("+a.xPercent+"%,"+a.yPercent+"%) matrix(":"matrix(")+(0|Math.cos(e)*r)/n+","+(0|Math.sin(e)*r)/n+","+(0|Math.sin(i)*-s)/n+","+(0|Math.cos(i)*s)/n+","+h+","+u+")"):l[yt]=(a.xPercent||a.yPercent?"translate("+a.xPercent+"%,"+a.yPercent+"%) matrix(":"matrix(")+a.scaleX+",0,0,"+a.scaleY+","+h+","+u+")")};mt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(t,e,i,n,s,o,l){if(n._transform)return s;var h,u,p,c,f,d,_,m=n._transform=Pt(t,r,!0,l.parseTransform),g=t.style,v=1e-6,y=vt.length,x=l,w={};if("string"==typeof x.transform&&yt)p=X.style,p[yt]=x.transform,p.display="block",p.position="absolute",I.body.appendChild(X),h=Pt(X,null,!1),I.body.removeChild(X);else if("object"==typeof x){if(h={scaleX:nt(null!=x.scaleX?x.scaleX:x.scale,m.scaleX),scaleY:nt(null!=x.scaleY?x.scaleY:x.scale,m.scaleY),scaleZ:nt(x.scaleZ,m.scaleZ),x:nt(x.x,m.x),y:nt(x.y,m.y),z:nt(x.z,m.z),xPercent:nt(x.xPercent,m.xPercent),yPercent:nt(x.yPercent,m.yPercent),perspective:nt(x.transformPerspective,m.perspective)},_=x.directionalRotation,null!=_)if("object"==typeof _)for(p in _)x[p]=_[p];else x.rotation=_;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(h.x=0,h.xPercent=nt(x.x,m.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(h.y=0,h.yPercent=nt(x.y,m.yPercent)),h.rotation=rt("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":"rotationZ"in x?x.rotationZ:m.rotation,m.rotation,"rotation",w),Tt&&(h.rotationX=rt("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":m.rotationX||0,m.rotationX,"rotationX",w),h.rotationY=rt("rotationY"in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":m.rotationY||0,m.rotationY,"rotationY",w)),h.skewX=null==x.skewX?m.skewX:rt(x.skewX,m.skewX),h.skewY=null==x.skewY?m.skewY:rt(x.skewY,m.skewY),(u=h.skewY-m.skewY)&&(h.skewX+=u,h.rotation+=u)}for(Tt&&null!=x.force3D&&(m.force3D=x.force3D,d=!0),m.skewType=x.skewType||m.skewType||a.defaultSkewType,f=m.force3D||m.z||m.rotationX||m.rotationY||h.z||h.rotationX||h.rotationY||h.perspective,f||null==x.scale||(h.scaleZ=1);--y>-1;)i=vt[y],c=h[i]-m[i],(c>v||-v>c||null!=D[i])&&(d=!0,s=new ct(m,i,m[i],c,s),i in w&&(s.e=w[i]),s.xs0=0,s.plugin=o,n._overwriteProps.push(s.n));return c=x.transformOrigin,(c||Tt&&f&&m.zOrigin)&&(yt?(d=!0,i=wt,c=(c||H(t,i,r,!1,"50% 50%"))+"",s=new ct(g,i,0,0,s,-1,"transformOrigin"),s.b=g[i],s.plugin=o,Tt?(p=m.zOrigin,c=c.split(" "),m.zOrigin=(c.length>2&&(0===p||"0px"!==c[2])?parseFloat(c[2]):p)||0,s.xs0=s.e=c[0]+" "+(c[1]||"50%")+" 0px",s=new ct(m,"zOrigin",0,0,s,-1,s.n),s.b=p,s.xs0=s.e=m.zOrigin):s.xs0=s.e=c):et(c+"",m)),d&&(n._transformType=f||3===this._transformType?3:2),s},prefix:!0}),mt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),mt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,a){e=this.format(e);var o,l,h,u,p,c,f,d,_,m,g,v,y,x,w,T,b=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],P=t.style;for(_=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),o=e.split(" "),l=0;b.length>l;l++)this.p.indexOf("border")&&(b[l]=V(b[l])),p=u=H(t,b[l],r,!1,"0px"),-1!==p.indexOf(" ")&&(u=p.split(" "),p=u[0],u=u[1]),c=h=o[l],f=parseFloat(p),v=p.substr((f+"").length),y="="===c.charAt(1),y?(d=parseInt(c.charAt(0)+"1",10),c=c.substr(2),d*=parseFloat(c),g=c.substr((d+"").length-(0>d?1:0))||""):(d=parseFloat(c),g=c.substr((d+"").length)),""===g&&(g=n[i]||v),g!==v&&(x=Q(t,"borderLeft",f,v),w=Q(t,"borderTop",f,v),"%"===g?(p=100*(x/_)+"%",u=100*(w/m)+"%"):"em"===g?(T=Q(t,"borderLeft",1,"em"),p=x/T+"em",u=w/T+"em"):(p=x+"px",u=w+"px"),y&&(c=parseFloat(p)+d+g,h=parseFloat(u)+d+g)),a=ft(P,b[l],p+" "+u,c+" "+h,!1,"0px",a);return a},prefix:!0,formatter:ht("0px 0px 0px 0px",!1,!0)}),mt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,s,a){var o,l,h,u,p,c,f="background-position",_=r||W(t,null),m=this.format((_?d?_.getPropertyValue(f+"-x")+" "+_.getPropertyValue(f+"-y"):_.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),g=this.format(e);if(-1!==m.indexOf("%")!=(-1!==g.indexOf("%"))&&(c=H(t,"backgroundImage").replace(k,""),c&&"none"!==c)){for(o=m.split(" "),l=g.split(" "),z.setAttribute("src",c),h=2;--h>-1;)m=o[h],u=-1!==m.indexOf("%"),u!==(-1!==l[h].indexOf("%"))&&(p=0===h?t.offsetWidth-z.width:t.offsetHeight-z.height,o[h]=u?parseFloat(m)/100*p+"px":100*(parseFloat(m)/p)+"%");m=o.join(" ")}return this.parseComplex(t.style,m,g,s,a)},formatter:et}),mt("backgroundSize",{defaultValue:"0 0",formatter:et}),mt("perspective",{defaultValue:"0px",prefix:!0}),mt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),mt("transformStyle",{prefix:!0}),mt("backfaceVisibility",{prefix:!0}),mt("userSelect",{prefix:!0}),mt("margin",{parser:ut("marginTop,marginRight,marginBottom,marginLeft")}),mt("padding",{parser:ut("paddingTop,paddingRight,paddingBottom,paddingLeft")}),mt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,s,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(H(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,s,a)}}),mt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),mt("autoRound,strictUnits",{parser:function(t,e,i,n,r){return r}}),mt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,s,a){return this.parseComplex(t.style,this.format(H(t,"borderTopWidth",r,!1,"0px")+" "+H(t,"borderTopStyle",r,!1,"solid")+" "+H(t,"borderTopColor",r,!1,"#000")),this.format(e),s,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(lt)||["#000"])[0]}}),mt("borderWidth",{parser:ut("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),mt("float,cssFloat,styleFloat",{parser:function(t,e,i,n,r){var s=t.style,a="cssFloat"in s?"cssFloat":"styleFloat";return new ct(s,a,0,0,r,-1,i,!1,0,s[a],e)}});var Ct=function(t){var e,i=this.t,n=i.filter||H(this.data,"filter"),r=0|this.s+this.c*t;100===r&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),e=!H(this.data,"filter")):(i.filter=n.replace(T,""),e=!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+r+")"),-1===n.indexOf("pacity")?0===r&&this.xn1||(i.filter=n+" alpha(opacity="+r+")"):i.filter=n.replace(x,"opacity="+r))};mt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,s,a){var o=parseFloat(H(t,"opacity",r,!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"===H(t,"visibility",r)&&0!==e&&(o=0),Y?s=new ct(l,"opacity",o,e-o,s):(s=new ct(l,"opacity",100*o,100*(e-o),s),s.xn1=h?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=a,s.setRatio=Ct),h&&(s=new ct(l,"visibility",0,0,s,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),s.xs0="inherit",n._overwriteProps.push(s.n),n._overwriteProps.push(i)),s}});var Rt=function(t,e){e&&(t.removeProperty?("ms"===e.substr(0,2)&&(e="M"+e.substr(1)),t.removeProperty(e.replace(P,"-$1").toLowerCase())):t.removeAttribute(e))},At=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:Rt(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)};mt("className",{parser:function(t,e,n,s,a,o,l){var h,u,p,c,f,d=t.getAttribute("class")||"",_=t.style.cssText;if(a=s._classNamePT=new ct(t,n,0,0,a,2),a.setRatio=At,a.pr=-11,i=!0,a.b=d,u=Z(t,r),p=t._gsClassPT){for(c={},f=p.data;f;)c[f.p]=1,f=f._next;p.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:d.replace(RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),s._tween._duration&&(t.setAttribute("class",a.e),h=$(t,u,Z(t),l,c),t.setAttribute("class",d),a.data=h.firstMPT,t.style.cssText=_,a=a.xfirst=s.parse(t,h.difs,a,o)),a}});var Mt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,r,s=this.t.style,a=o.transform.parse;if("all"===this.e)s.cssText="",r=!0;else for(e=this.e.split(","),n=e.length;--n>-1;)i=e[n],o[i]&&(o[i].parse===a?r=!0:i="transformOrigin"===i?wt:o[i].p),Rt(s,i);r&&(Rt(s,yt),this.t._gsTransform&&delete this.t._gsTransform)}};for(mt("clearProps",{parser:function(t,e,n,r,s){return s=new ct(t,n,0,0,s,2),s.setRatio=Mt,s.e=e,s.pr=-10,s.data=r._tween,i=!0,s}}),l="bezier,throwProps,physicsProps,physics2D".split(","),dt=l.length;dt--;)gt(l[dt]);l=a.prototype,l._firstPT=null,l._onInitTween=function(t,e,o){if(!t.nodeType)return!1;this._target=t,this._tween=o,this._vars=e,h=e.autoRound,i=!1,n=e.suffixMap||a.suffixMap,r=W(t,""),s=this._overwriteProps;var l,c,d,_,m,g,v,y,x,T=t.style;if(u&&""===T.zIndex&&(l=H(t,"zIndex",r),("auto"===l||""===l)&&this._addLazySet(T,"zIndex",0)),"string"==typeof e&&(_=T.cssText,l=Z(t,r),T.cssText=_+";"+e,l=$(t,l,Z(t)).difs,!Y&&w.test(e)&&(l.opacity=parseFloat(RegExp.$1)),e=l,T.cssText=_),this._firstPT=c=this.parse(t,e,null),this._transformType){for(x=3===this._transformType,yt?p&&(u=!0,""===T.zIndex&&(v=H(t,"zIndex",r),("auto"===v||""===v)&&this._addLazySet(T,"zIndex",0)),f&&this._addLazySet(T,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(x?"visible":"hidden"))):T.zoom=1,d=c;d&&d._next;)d=d._next;y=new ct(t,"transform",0,0,null,2),this._linkCSSP(y,null,d),y.setRatio=x&&Tt?kt:yt?Ot:St,y.data=this._transform||Pt(t,r,!0),s.pop()}if(i){for(;c;){for(g=c._next,d=_;d&&d.pr>c.pr;)d=d._next;(c._prev=d?d._prev:m)?c._prev._next=c:_=c,(c._next=d)?d._prev=c:m=c,c=g}this._firstPT=_}return!0},l.parse=function(t,e,i,s){var a,l,u,p,c,f,d,_,m,g,v=t.style;for(a in e)f=e[a],l=o[a],l?i=l.parse(t,f,a,this,i,s,e):(c=H(t,a,r)+"",m="string"==typeof f,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||m&&b.test(f)?(m||(f=ot(f),f=(f.length>3?"rgba(":"rgb(")+f.join(",")+")"),i=ft(v,a,c,f,!0,"transparent",i,0,s)):!m||-1===f.indexOf(" ")&&-1===f.indexOf(",")?(u=parseFloat(c),d=u||0===u?c.substr((u+"").length):"",(""===c||"auto"===c)&&("width"===a||"height"===a?(u=tt(t,a,r),d="px"):"left"===a||"top"===a?(u=q(t,a,r),d="px"):(u="opacity"!==a?0:1,d="")),g=m&&"="===f.charAt(1),g?(p=parseInt(f.charAt(0)+"1",10),f=f.substr(2),p*=parseFloat(f),_=f.replace(y,"")):(p=parseFloat(f),_=m?f.substr((p+"").length)||"":""),""===_&&(_=a in n?n[a]:d),f=p||0===p?(g?p+u:p)+_:e[a],d!==_&&""!==_&&(p||0===p)&&u&&(u=Q(t,a,u,d),"%"===_?(u/=Q(t,a,100,"%")/100,e.strictUnits!==!0&&(c=u+"%")):"em"===_?u/=Q(t,a,1,"em"):"px"!==_&&(p=Q(t,a,p,_),_="px"),g&&(p||0===p)&&(f=p+u+_)),g&&(p+=u),!u&&0!==u||!p&&0!==p?void 0!==v[a]&&(f||"NaN"!=f+""&&null!=f)?(i=new ct(v,a,p||u||0,0,i,-1,a,!1,0,c,f),i.xs0="none"!==f||"display"!==a&&-1===a.indexOf("Style")?f:c):B("invalid "+a+" tween value: "+e[a]):(i=new ct(v,a,u,p-u,i,0,a,h!==!1&&("px"===_||"zIndex"===a),0,c,f),i.xs0=_)):i=ft(v,a,c,f,!0,null,i,0,s)),s&&i&&!i.plugin&&(i.plugin=s);return i},l.setRatio=function(t){var e,i,n,r=this._firstPT,s=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(;r;){if(e=r.c*t+r.s,r.r?e=Math.round(e):s>e&&e>-s&&(e=0),r.type)if(1===r.type)if(n=r.l,2===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,n=1;r.l>n;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;)2!==r.type?r.t[r.p]=r.e:r.setRatio(t),r=r._next},l._enableTransforms=function(t){this._transformType=t||3===this._transformType?3:2,this._transform=this._transform||Pt(this._target,r,!0)};var Et=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};l._addLazySet=function(t,e,i){var n=this._firstPT=new ct(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=Et,n.data=this},l._linkCSSP=function(t,e,i,n){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,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},l._kill=function(e){var i,n,r,s=e;if(e.autoAlpha||e.alpha){s={};for(n in e)s[n]=e[n];s.opacity=1,s.autoAlpha&&(s.visibility=1)}return e.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),t.prototype._kill.call(this,s)};var Lt=function(t,e,i){var n,r,s,a;if(t.slice)for(r=t.length;--r>-1;)Lt(t[r],e,i);else for(n=t.childNodes,r=n.length;--r>-1;)s=n[r],a=s.type,s.style&&(e.push(Z(s)),i&&i.push(s)),1!==a&&9!==a&&11!==a||!s.childNodes.length||Lt(s,e,i)};return a.cascadeTo=function(t,i,n){var r,s,a,o=e.to(t,i,n),l=[o],h=[],u=[],p=[],c=e._internals.reservedProps;for(t=o._targets||o.target,Lt(t,h,p),o.render(i,!0),Lt(t,u),o.render(0,!0),o._enabled(!0),r=p.length;--r>-1;)if(s=$(p[r],h[r],u[r]),s.firstMPT){s=s.difs;for(a in n)c[a]&&(s[a]=n[a]);l.push(e.to(p[r],i,s))}return l},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");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,n=t.split("."),r=e;for(i=0;n.length>i;i++)r[n[i]]=r=r[n[i]]||{};return r},n=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},s=document,a=s.defaultView?s.defaultView.getComputedStyle:function(){},o=/([A-Z])/g,l=function(t,e,i,n){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]),n?r:parseInt(r,10)||0},h=function(t){return t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0])?!0:!1},u=function(t){var e,i,n,r=[],s=t.length;for(e=0;s>e;e++)if(i=t[e],h(i))for(n=i.length,n=0;i.length>n;n++)r.push(i[n]);else r.push(i);return r},p=")eefec303079ad17405c",c=/(?:<br>|<br\/>|<br \/>)/gi,f=s.all&&!s.addEventListener,d="<div style='position:relative;display:inline-block;"+(f?"*display:inline;*zoom:1;'":"'"),_=function(t){t=t||"";var e=-1!==t.indexOf("++"),i=1;return e&&(t=t.split("++").join("")),function(){return d+(t?" class='"+t+(e?i++:"")+"'>":">")}},m=n.SplitText=e.SplitText=function(t,e){if("string"==typeof t&&(t=m.selector(t)),!t)throw"cannot split a null element.";this.elements=h(t)?u(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},g=function(t,e,i,n,o){c.test(t.innerHTML)&&(t.innerHTML=t.innerHTML.replace(c,p));var h,u,f,d,m,g,v,y,x,w,T,b,P,S=r(t),k=e.type||e.split||"chars,words,lines",O=-1!==k.indexOf("lines")?[]:null,C=-1!==k.indexOf("words"),R=-1!==k.indexOf("chars"),A="absolute"===e.position||e.absolute===!0,M=A?"&#173; ":" ",E=-999,L=a(t),D=l(t,"paddingLeft",L),I=l(t,"borderBottomWidth",L)+l(t,"borderTopWidth",L),X=l(t,"borderLeftWidth",L)+l(t,"borderRightWidth",L),z=l(t,"paddingTop",L)+l(t,"paddingBottom",L),N=l(t,"paddingLeft",L)+l(t,"paddingRight",L),F=l(t,"textAlign",L,!0),Y=t.clientHeight,j=t.clientWidth,B=S.length,U="</div>",G=_(e.wordsClass),V=_(e.charsClass),W=-1!==(e.linesClass||"").indexOf("++"),H=e.linesClass;for(W&&(H=H.split("++").join("")),f=G(),d=0;B>d;d++)g=S.charAt(d),")"===g&&S.substr(d,20)===p?(f+=U+"<BR/>",d!==B-1&&(f+=" "+G()),d+=19):" "===g&&" "!==S.charAt(d-1)&&d!==B-1?(f+=U,d!==B-1&&(f+=M+G())):f+=R&&" "!==g?V()+g+"</div>":g;for(t.innerHTML=f+U,m=t.getElementsByTagName("*"),B=m.length,v=[],d=0;B>d;d++)v[d]=m[d];if(O||A)for(d=0;B>d;d++)y=v[d],u=y.parentNode===t,(u||A||R&&!C)&&(x=y.offsetTop,O&&u&&x!==E&&"BR"!==y.nodeName&&(h=[],O.push(h),E=x),A&&(y._x=y.offsetLeft,y._y=x,y._w=y.offsetWidth,y._h=y.offsetHeight),O&&(C!==u&&R||(h.push(y),y._x-=D),u&&d&&(v[d-1]._wordEnd=!0)));for(d=0;B>d;d++)y=v[d],u=y.parentNode===t,"BR"!==y.nodeName?(A&&(T=y.style,C||u||(y._x+=y.parentNode._x,y._y+=y.parentNode._y),T.left=y._x+"px",T.top=y._y+"px",T.position="absolute",T.display="block",T.width=y._w+1+"px",T.height=y._h+"px"),C?u?n.push(y):R&&i.push(y):u?(t.removeChild(y),v.splice(d--,1),B--):!u&&R&&(x=!O&&!A&&y.nextSibling,t.appendChild(y),x||t.appendChild(s.createTextNode(" ")),i.push(y))):O||A?(t.removeChild(y),v.splice(d--,1),B--):C||t.appendChild(y);if(O){for(A&&(w=s.createElement("div"),t.appendChild(w),b=w.offsetWidth+"px",x=w.offsetParent===t?0:t.offsetLeft,t.removeChild(w)),T=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(P=!A||!C&&!R,d=0;O.length>d;d++){for(h=O[d],w=s.createElement("div"),w.style.cssText="display:block;text-align:"+F+";position:"+(A?"absolute;":"relative;"),H&&(w.className=H+(W?d+1:"")),o.push(w),B=h.length,m=0;B>m;m++)"BR"!==h[m].nodeName&&(y=h[m],w.appendChild(y),P&&(y._wordEnd||C)&&w.appendChild(s.createTextNode(" ")),A&&(0===m&&(w.style.top=y._y+"px",w.style.left=D+x+"px"),y.style.top="0px",x&&(y.style.left=y._x-x+"px")));C||R||(w.innerHTML=r(w).split(String.fromCharCode(160)).join(" ")),A&&(w.style.width=b,w.style.height=y._h+"px"),t.appendChild(w)}t.style.cssText=T}A&&(Y>t.clientHeight&&(t.style.height=Y-z+"px",Y>t.clientHeight&&(t.style.height=Y+I+"px")),j>t.clientWidth&&(t.style.width=j-N+"px",j>t.clientWidth&&(t.style.width=j+X+"px")))},v=m.prototype;v.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=0;this.elements.length>e;e++)this._originals[e]=this.elements[e].innerHTML,g(this.elements[e],this.vars,this.chars,this.words,this.lines);return this.isSplit=!0,this},v.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},m.selector=t.$||t.jQuery||function(e){return t.$?(m.selector=t.$,t.$(e)):s?s.getElementById("#"===e.charAt(0)?e.substr(1):e):e},m.version="0.2.4"}(_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.GreenSockGobals=null,window._gsQueue=null,delete window.GreenSockGlobals,delete window._gsQueue}catch(e){}try{window.GreenSockGlobals=oldgs,window._gsQueue=oldgs_queue}catch(e){}if(1==window.tplogs)try{console.groupEnd()}catch(e){}!function(t,e){t.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]},t.expr[":"].uncached=function(e){var i=document.createElement("img");return i.src=e.src,t(e).is('img[src!=""]')&&!i.complete},t.fn.waitForImages=function(e,i,n){if(t.isPlainObject(arguments[0])&&(i=e.each,n=e.waitForAll,e=e.finished),e=e||t.noop,i=i||t.noop,n=!!n,!t.isFunction(e)||!t.isFunction(i))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var r=t(this),s=[];if(n){var a=t.waitForImages.hasImageProperties||[],o=/url\((['"]?)(.*?)\1\)/g;r.find("*").each(function(){var e=t(this);e.is("img:uncached")&&s.push({src:e.attr("src"),element:e[0]}),t.each(a,function(t,i){var n=e.css(i);if(!n)return!0;for(var r;r=o.exec(n);)s.push({src:r[2],element:e[0]})})})}else r.find("img:uncached").each(function(){s.push({src:this.src,element:this})});var l=s.length,h=0;0==l&&e.call(r[0]),t.each(s,function(n,s){var a=new Image;t(a).bind("load error",function(t){return h++,i.call(s.element,h,l,"load"==t.type),h==l?(e.call(r[0]),!1):void 0}),a.src=s.src})})}}(jQuery);
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+="<br> This includes make eliminates the revolution slider libraries, and make it not work.",e+="<br><br> To fix it you can:<br>&nbsp;&nbsp;&nbsp; 1. In the Slider Settings -> Troubleshooting set option:  <strong><b>Put JS Includes To Body</b></strong> option to true.",e+="<br>&nbsp;&nbsp;&nbsp; 2. Find the double jquery.js include and remove it.",e="<span style='font-size:16px;color:#BC0C06;'>"+e+"</span>",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 o(i,o){if(("preview1"==o.navigationStyle||"preview3"==o.navigationStyle||"preview4"==o.navigationStyle)&&(o.soloArrowLeftHalign="left",o.soloArrowLeftValign="center",o.soloArrowLeftHOffset=0,o.soloArrowLeftVOffset=0,o.soloArrowRightHalign="right",o.soloArrowRightValign="center",o.soloArrowRightHOffset=0,o.soloArrowRightVOffset=0,o.navigationArrows="solo"),"on"==o.simplifyAll&&(d(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")})),o.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),"on"!=o.fullWidth&&"on"!=o.fullScreen&&(o.autoHeight="off"),"on"==o.fullScreen&&(o.autoHeight="on"),"on"!=o.fullWidth&&"on"!=o.fullScreen&&(forceFulWidth="off"),"on"==o.fullWidth&&"off"==o.autoHeight&&i.css({maxHeight:o.startheight+"px"}),N()&&"on"==o.hideThumbsOnMobile&&"thumb"==o.navigationType&&(o.navigationType="none"),N()&&"on"==o.hideBulletsOnMobile&&"bullet"==o.navigationType&&(o.navigationType="none"),N()&&"on"==o.hideBulletsOnMobile&&"both"==o.navigationType&&(o.navigationType="none"),N()&&"on"==o.hideArrowsOnMobile&&(o.navigationArrows="none"),"on"==o.forceFullWidth&&0==i.closest(".forcefullwidth_wrapper_tp_banner").length){var l=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('<div style="position:relative;width:100%;height:auto;margin-top:'+m+";margin-bottom:"+g+'" class="forcefullwidth_wrapper_tp_banner"></div>'),i.closest(".forcefullwidth_wrapper_tp_banner").append('<div class="tp-fullwidth-forcer" style="width:100%;height:'+i.height()+'px"></div>'),i.css({backgroundColor:i.parent().css("backgroundColor"),backgroundImage:i.parent().css("backgroundImage")}),i.parent().css({left:0-l+"px",position:"absolute",width:t(window).width()}),o.width=t(window).width()}try{o.hideThumbsUnderResolution>t(window).width()&&0!=o.hideThumbsUnderResolution?i.parent().find(".tp-bullets.tp-thumbs").css({display:"none"}):i.parent().find(".tp-bullets.tp-thumbs").css({display:"block"})}catch(v){}if(!i.hasClass("revslider-initialised")){i.addClass("revslider-initialised"),i.attr("id")==e&&i.attr("id","revslider-"+Math.round(1e3*Math.random()+5)),o.firefox13=!1,o.ie=!t.support.opacity,o.ie9=9==document.documentMode,o.origcd=o.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('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+b+" <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>"),y>1&&(o.ie=!1),t.support.transition||(t.fn.transition=t.fn.animate),i.find(".caption").each(function(){t(this).addClass("tp-caption")}),N()&&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,C=0,L="http";if("https:"===location.protocol&&(L="https"),i.find(".tp-caption").each(function(a){try{if((t(this).data("ytid")!=e||t(this).find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&0==T){T=1;var i=document.createElement("script"),o="https";i.src=o+"://www.youtube.com/iframe_api";var n=document.getElementsByTagName("script")[0],s=!0;t("head").find("*").each(function(){t(this).attr("src")==o+"://www.youtube.com/iframe_api"&&(s=!1)}),s&&n.parentNode.insertBefore(i,n)}}catch(r){}try{if((t(this).data("vimeoid")!=e||t(this).find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&0==C){C=1;var d=document.createElement("script");d.src=L+"://a.vimeocdn.com/js/froogaloop2.min.js";var n=document.getElementsByTagName("script")[0],s=!0;t("head").find("*").each(function(){t(this).attr("src")==L+"://a.vimeocdn.com/js/froogaloop2.min.js"&&(s=!1)}),s&&n.parentNode.insertBefore(d,n)}}catch(r){}try{t(this).data("videomp4")!=e||t(this).data("videowebm")!=e}catch(r){}}),i.find(".tp-caption video").each(function(e){t(this).removeClass("video-js").removeClass("vjs-default-skin"),t(this).attr("preload",""),t(this).css({display:"none"})}),"on"==o.shuffle){var k=new Object,O=i.find(">ul:first-child >li:first-child");k.fstransition=O.data("fstransition"),k.fsmasterspeed=O.data("fsmasterspeed"),k.fsslotamount=O.data("fsslotamount");for(var A=0;A<i.find(">ul:first-child >li").length;A++){var I=Math.round(Math.random()*i.find(">ul:first-child >li").length);i.find(">ul:first-child >li:eq("+I+")").prependTo(i.find(">ul:first-child"))}var M=i.find(">ul:first-child >li:first-child");M.data("fstransition",k.fstransition),M.data("fsmasterspeed",k.fsmasterspeed),M.data("fsslotamount",k.fsslotamount)}o.slots=4,o.act=-1,o.next=0,o.startWithSlide!=e&&(o.next=o.startWithSlide);var S=s("#")[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),o.next=P-1}o.firststart=1,o.navigationHOffset==e&&(o.navOffsetHorizontal=0),o.navigationVOffset==e&&(o.navOffsetVertical=0),i.append('<div class="tp-loader '+o.spinner+'"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>'),0==i.find(".tp-bannertimer").length&&i.append('<div class="tp-bannertimer" style="visibility:hidden"></div>');var H=i.find(".tp-bannertimer");if(H.length>0&&H.css({width:"0%"}),i.addClass("tp-simpleresponsive"),o.container=i,o.slideamount=i.find(">ul:first >li").length,0==i.height()&&i.height(o.startheight),(o.startwidth==e||0==o.startwidth)&&(o.startwidth=i.width()),(o.startheight==e||0==o.startheight)&&(o.startheight=i.height()),o.width=i.width(),o.height=i.height(),o.bw=o.startwidth/i.width(),o.bh=o.startheight/i.height(),o.width!=o.startwidth&&(o.height=Math.round(o.startheight*(o.width/o.startwidth)),i.height(o.height)),0!=o.shadow){i.parent().append('<div class="tp-bannershadow tp-shadow'+o.shadow+'"></div>');var l=0;"on"==o.forceFullWidth&&(l=0-o.container.parent().offset().left),i.parent().find(".tp-bannershadow").css({width:o.width,left:l})}i.find("ul").css({display:"none"});i.find("ul").css({display:"block"}),w(i,o),"off"!=o.parallax&&K(i,o),o.slideamount>1&&h(i,o),o.slideamount>1&&"thumb"==o.navigationType&&et(i,o),o.slideamount>1&&c(i,o),"on"==o.keyboardNavigation&&p(i,o),f(i,o),o.hideThumbs>0&&u(i,o),z(i,o),o.slideamount>1&&Z(i,o),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)}),t(window).resize(function(){if(0!=t("body").find(i)&&"on"==o.forceFullWidth){var e=o.container.closest(".forcefullwidth_wrapper_tp_banner").offset().left;o.container.parent().css({left:0-e+"px",width:t(window).width()})}(i.outerWidth(!0)!=o.width||i.is(":hidden"))&&r(i,o)});try{0!=o.hideThumbsUnderResoluition&&"thumb"==o.navigationType&&(o.hideThumbsUnderResoluition>t(window).width()?t(".tp-bullets").css({display:"none"}):t(".tp-bullets").css({display:"block"}))}catch(v){}i.find(".tp-scrollbelowslider").on("click",function(){var e=0;try{e=t("body").find(o.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 D=i.parent();t(window).width()<o.hideSliderAtLimit&&(i.trigger("stoptimer"),"none"!=D.css("display")&&D.data("olddisplay",D.css("display")),D.css({display:"none"})),n(i,o)}}t.fn.extend({revolution:function(a){return defaults={delay:9e3,startheight:500,startwidth:960,fullScreenAlignForce:"off",autoHeight:"off",hideTimerBar:"off",hideThumbs:200,hideNavDelayOnMobile:1500,thumbWidth:100,thumbHeight:50,thumbAmount:3,navigationType:"bullet",navigationArrows:"solo",navigationInGrid:"off",hideThumbsOnMobile:"off",hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResoluition:0,navigationStyle:"round",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,keyboardNavigation:"on",touchenabled:"on",onHoverStop:"on",stopAtSlide:-1,stopAfterLoops:-1,hideCaptionAtLimit:0,hideAllCaptionAtLimit:0,hideSliderAtLimit:0,shadow:0,fullWidth:"off",fullScreen:"off",minFullScreenHeight:0,fullScreenOffsetContainer:"",fullScreenOffset:"0",dottedOverlay:"none",forceFullWidth:"off",spinner:"spinner0",swipe_treshold:75,swipe_min_touches:1,drag_block_vertical:!1,isJoomla:!1,parallax:"off",parallaxLevels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],parallaxBgFreeze:"off",parallaxOpacity:"on",parallaxDisableOnMobile:"off",panZoomDisableOnMobile:"off",simplifyAll:"on",minHeight:0,nextSlideOnWindowFocus:"off"},a=t.extend({},defaults,a),this.each(function(){if(1==window.tplogs)try{console.groupCollapsed("Slider Revolution 4.6.0 Initialisation on "+t(this).attr("id")),console.groupCollapsed("Used Options:"),console.info(a),console.groupEnd(),console.groupCollapsed("Tween Engine:")}catch(i){}if(punchgs.TweenLite==e){if(1==window.tplogs)try{console.error("GreenSock Engine Does not Exist!")}catch(i){}return!1}if(punchgs.force3D=!0,1==window.tplogs)try{console.info("GreenSock Engine Version in Slider Revolution:"+punchgs.TweenLite.version)}catch(i){}if("on"==a.simplifyAll||(punchgs.TweenLite.lagSmoothing(1e3,16),punchgs.force3D="true"),1==window.tplogs)try{console.groupEnd(),console.groupEnd()}catch(i){}o(t(this),a)})},revscroll:function(e){return this.each(function(){var a=t(this);t("body,html").animate({scrollTop:a.offset().top+a.find(">ul >li").height()-e+"px"},{duration:400})})},revredraw:function(e){return this.each(function(){var e=t(this),a=e.parent().find(".tp-bannertimer"),i=a.data("opt");r(e,i)})},revpause:function(e){return this.each(function(){var e=t(this);e.data("conthover",1),e.data("conthover-changed",1),e.trigger("revolution.slide.onpause");var a=e.parent().find(".tp-bannertimer"),i=a.data("opt");i.bannertimeronpause=!0,e.trigger("stoptimer")})},revresume:function(e){return this.each(function(){var e=t(this);e.data("conthover",0),e.data("conthover-changed",1),e.trigger("revolution.slide.onresume");var a=e.parent().find(".tp-bannertimer"),i=a.data("opt");i.bannertimeronpause=!1,e.trigger("starttimer")})},revnext:function(e){return this.each(function(){var e=t(this);e.parent().find(".tp-rightarrow").click()})},revprev:function(e){return this.each(function(){var e=t(this);e.parent().find(".tp-leftarrow").click()})},revmaxslide:function(e){return t(this).find(">ul:first-child >li").length},revcurrentslide:function(e){var a=t(this),i=a.parent().find(".tp-bannertimer"),o=i.data("opt");return o.act},revlastslide:function(e){var a=t(this),i=a.parent().find(".tp-bannertimer"),o=i.data("opt");return o.lastslide},revshowslide:function(e){return this.each(function(){var a=t(this);a.data("showus",e),a.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 o=document.documentMode===e,n=window.chrome;o&&!n?t(window).on("focusin",function(){setTimeout(function(){"on"==i.nextSlideOnWindowFocus&&a.revnext(),a.revredraw()},300)}).on("focusout",function(){}):window.addEventListener?(window.addEventListener("focus",function(t){setTimeout(function(){"on"==i.nextSlideOnWindowFocus&&a.revnext(),a.revredraw()},300)},!1),window.addEventListener("blur",function(t){},!1)):(window.attachEvent("focus",function(t){setTimeout(function(){"on"==i.nextSlideOnWindowFocus&&a.revnext(),a.revredraw()},300)}),window.attachEvent("blur",function(t){}))}),s=function(t){for(var e,a=[],i=window.location.href.slice(window.location.href.indexOf(t)+1).split("_"),o=0;o<i.length;o++)i[o]=i[o].replace("%3D","="),e=i[o].split("="),a.push(e[0]),a[e[0]]=e[1];return a},r=function(a,i){try{0!=i.hideThumbsUnderResoluition&&"thumb"==i.navigationType&&(i.hideThumbsUnderResoluition>t(window).width()?t(".tp-bullets").css({display:"none"}):t(".tp-bullets").css({display:"block"}))}catch(o){}a.find(".defaultimg").each(function(e){v(t(this),i)});var n=a.parent();t(window).width()<i.hideSliderAtLimit?(a.trigger("stoptimer"),"none"!=n.css("display")&&n.data("olddisplay",n.css("display")),n.css({display:"none"})):a.is(":hidden")&&(n.data("olddisplay")!=e&&"undefined"!=n.data("olddisplay")&&"none"!=n.data("olddisplay")?n.css({display:n.data("olddisplay")}):n.css({display:"block"}),a.trigger("restarttimer"),setTimeout(function(){r(a,i)},150));var s=0;"on"==i.forceFullWidth&&(s=0-i.container.parent().offset().left);try{a.parent().find(".tp-bannershadow").css({width:i.width,left:s})}catch(o){}var d=a.find(">ul >li:eq("+i.act+") .slotholder"),l=a.find(">ul >li:eq("+i.next+") .slotholder");T(a,i,a),punchgs.TweenLite.set(l.find(".defaultimg"),{opacity:0}),d.find(".defaultimg").css({opacity:1}),l.find(".defaultimg").each(function(){var o=t(this);"on"==i.panZoomDisableOnMobile&&N()||o.data("kenburn")!=e&&(o.data("kenburn").restart(),G(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)}),R(h,i,!0),g(a,i)},d=function(e,a){var i=t('<div style="display:none;"/>').appendTo(t("body"));i.html("<!--[if "+(a||"")+" IE "+(e||"")+"]><a>&nbsp;</a><![endif]-->");var o=i.find("a").length;return i.remove(),o},l=function(t,e){t.next==e.find(">ul >li").length-1&&(t.looptogo=t.looptogo-1,t.looptogo<=0&&(t.stopLoop="on")),z(e,t)},h=function(e,a){var i="hidebullets";0==a.hideThumbs&&(i=""),("bullet"==a.navigationType||"both"==a.navigationType)&&e.parent().append('<div class="tp-bullets '+i+" simplebullets "+a.navigationStyle+'"></div>');var o=e.parent().find(".tp-bullets");e.find(">ul:first >li").each(function(t){e.find(">ul:first >li:eq("+t+") img:first").attr("src");o.append('<div class="bullet"></div>');o.find(".bullet:first")}),o.find(".bullet").each(function(i){var o=t(this);i==a.slideamount-1&&o.addClass("last"),0==i&&o.addClass("first"),o.click(function(){var t=!1;"withbullet"==a.navigationArrows||"nexttobullets"==a.navigationArrows?o.index()-1==a.act&&(t=!0):o.index()==a.act&&(t=!0),0!=a.transition||t||("withbullet"==a.navigationArrows||"nexttobullets"==a.navigationArrows?a.next=o.index()-1:a.next=o.index(),l(a,e))})}),o.append('<div class="tpclear"></div>'),g(e,a)},c=function(t,a){function i(e){t.parent().append('<div style="'+o+'" class="tp-'+e+"arrow "+n+" tparrows "+s+'"><div class="tp-arr-allwrapper"><div class="tp-arr-iwrapper"><div class="tp-arr-imgholder"></div><div class="tp-arr-imgholder2"></div><div class="tp-arr-titleholder"></div><div class="tp-arr-subtitleholder"></div></div></div></div>')}var o=(t.find(".tp-bullets"),""),n="hidearrows";0==a.hideThumbs&&(n="");var s=a.navigationStyle;"none"==a.navigationArrows&&(o="visibility:hidden;display:none"),a.soloArrowStyle="default "+a.navigationStyle,"none"!=a.navigationArrows&&"nexttobullets"!=a.navigationArrows&&(s=a.soloArrowStyle),i("left"),i("right"),t.parent().find(".tp-rightarrow").click(function(){0==a.transition&&(t.data("showus")!=e&&-1!=t.data("showus")?a.next=t.data("showus")-1:a.next=a.next+1,t.data("showus",-1),a.next>=a.slideamount&&(a.next=0),a.next<0&&(a.next=0),a.act!=a.next&&l(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),l(a,t))}),g(t,a)},p=function(a,i){t(document).keydown(function(t){0==i.transition&&39==t.keyCode&&(a.data("showus")!=e&&-1!=a.data("showus")?i.next=a.data("showus")-1:i.next=i.next+1,a.data("showus",-1),i.next>=i.slideamount&&(i.next=0),i.next<0&&(i.next=0),i.act!=i.next&&l(i,a)),0==i.transition&&37==t.keyCode&&(i.next=i.next-1,i.leftarrowpressed=1,i.next<0&&(i.next=i.slideamount-1),l(i,a))}),g(a,i)},f=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(o,n,s,r,d,h){switch(n){case"left":0==a.transition&&(a.next=a.next+1,a.next==a.slideamount&&(a.next=0),l(a,e));break;case"right":0==a.transition&&(a.next=a.next-1,a.leftarrowpressed=1,a.next<0&&(a.next=a.slideamount-1),l(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('<div class=".tp-bullets"></div>');var a=t.parent().find(".tp-bullets")}if(null==i){t.append('<div class=".tparrows"></div>');var i=t.parent().find(".tparrows")}if(t.data("hideThumbs",e.hideThumbs),a.addClass("hidebullets"),i.addClass("hidearrows"),N())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(o){}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))})},g=function(e,a){var i=e.parent(),o=i.find(".tp-bullets");if("thumb"==a.navigationType){o.find(".thumb").each(function(e){var i=t(this);i.css({width:a.thumbWidth*a.bw+"px",height:a.thumbHeight*a.bh+"px"})});var n=o.find(".tp-mask");n.width(a.thumbWidth*a.thumbAmount*a.bw),n.height(a.thumbHeight*a.bh),n.parent().width(a.thumbWidth*a.thumbAmount*a.bw),n.parent().height(a.thumbHeight*a.bh)}var s=i.find(".tp-leftarrow"),r=i.find(".tp-rightarrow");"thumb"==a.navigationType&&"nexttobullets"==a.navigationArrows&&(a.navigationArrows="solo"),"nexttobullets"==a.navigationArrows&&(s.prependTo(o).css({"float":"left"}),r.insertBefore(o.find(".tpclear")).css({"float":"left"}));var d=0;"on"==a.forceFullWidth&&(d=0-a.container.parent().offset().left);var l=0,h=0;"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&&(s.css({position:"absolute"}),r.css({position:"absolute"}),"center"==a.soloArrowLeftValign&&s.css({top:"50%",marginTop:a.soloArrowLeftVOffset-Math.round(s.innerHeight()/2)+"px"}),"bottom"==a.soloArrowLeftValign&&s.css({top:"auto",bottom:0+a.soloArrowLeftVOffset+"px"}),"top"==a.soloArrowLeftValign&&s.css({bottom:"auto",top:0+a.soloArrowLeftVOffset+"px"}),"center"==a.soloArrowLeftHalign&&s.css({left:"50%",marginLeft:d+a.soloArrowLeftHOffset-Math.round(s.innerWidth()/2)+"px"}),"left"==a.soloArrowLeftHalign&&s.css({left:l+a.soloArrowLeftHOffset+d+"px"}),"right"==a.soloArrowLeftHalign&&s.css({right:l+a.soloArrowLeftHOffset-d+"px"}),"center"==a.soloArrowRightValign&&r.css({top:"50%",marginTop:a.soloArrowRightVOffset-Math.round(r.innerHeight()/2)+"px"}),"bottom"==a.soloArrowRightValign&&r.css({top:"auto",bottom:0+a.soloArrowRightVOffset+"px"}),"top"==a.soloArrowRightValign&&r.css({bottom:"auto",top:0+a.soloArrowRightVOffset+"px"}),"center"==a.soloArrowRightHalign&&r.css({left:"50%",marginLeft:d+a.soloArrowRightHOffset-Math.round(r.innerWidth()/2)+"px"}),"left"==a.soloArrowRightHalign&&r.css({left:l+a.soloArrowRightHOffset+d+"px"}),"right"==a.soloArrowRightHalign&&r.css({right:l+a.soloArrowRightHOffset-d+"px"}),null!=s.position()&&s.css({top:Math.round(parseInt(s.position().top,0))+"px"}),null!=r.position()&&r.css({top:Math.round(parseInt(r.position().top,0))+"px"})),"none"==a.navigationArrows&&(s.css({visibility:"hidden"}),r.css({visibility:"hidden"})),"center"==a.navigationVAlign&&o.css({top:"50%",marginTop:a.navigationVOffset-Math.round(o.innerHeight()/2)+"px"}),"bottom"==a.navigationVAlign&&o.css({bottom:0+a.navigationVOffset+"px"}),"top"==a.navigationVAlign&&o.css({top:0+a.navigationVOffset+"px"}),"center"==a.navigationHAlign&&o.css({left:"50%",marginLeft:d+a.navigationHOffset-Math.round(o.innerWidth()/2)+"px"}),"left"==a.navigationHAlign&&o.css({left:0+a.navigationHOffset+d+"px"}),"right"==a.navigationHAlign&&o.css({right:0+a.navigationHOffset-d+"px"})},m=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 o=i.find(">ul:first-child >li:eq("+a.comingli+")"),n=i.find(">ul:first-child >li:eq("+a.beforli+")"),s=n.find(".defaultimg").attr("src"),r=o.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,f=a.raimg_b,u=a.laimg_b,g=a.ratit,m=a.latit;if(o.data("title")!=e&&g.html(o.data("title")),n.data("title")!=e&&m.html(n.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"),N()){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")});n.data("thumb")!=e&&(s=n.data("thumb")),o.data("thumb")!=e&&(r=o.data("thumb")),d.hasClass("preview4")?(f.css({backgroundImage:"url("+r+")"}),u.css({backgroundImage:"url("+s+")"}),punchgs.TweenLite.fromTo(f,.8,{force3D:punchgs.force3d,x:0},{x:-c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){c.css({backgroundImage:"url("+r+")"}),punchgs.TweenLite.set(f,{x:0})}}),punchgs.TweenLite.fromTo(u,.8,{force3D:punchgs.force3d,x:0},{x:c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){p.css({backgroundImage:"url("+s+")"}),punchgs.TweenLite.set(u,{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("+r+")"}),p.css({backgroundImage:"url("+s+")"})}}),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"})}))},v=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.bh<i.bw&&(i.bw=i.bh),i.bw<i.bh&&(i.bh=i.bw),i.bh>1&&(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 o=(i.container.parent().width(),t(window).height());if(i.fullScreenOffsetContainer!=e){try{var n=i.fullScreenOffsetContainer.split(",");t.each(n,function(e,a){o-=t(a).outerHeight(!0),o<i.minFullScreenHeight&&(o=i.minFullScreenHeight)})}catch(s){}try{i.fullScreenOffset.split("%").length>1&&i.fullScreenOffset!=e&&i.fullScreenOffset.length>0?o-=t(window).height()*parseInt(i.fullScreenOffset,0)/100:i.fullScreenOffset!=e&&i.fullScreenOffset.length>0&&(o-=parseInt(i.fullScreenOffset,0)),o<i.minFullScreenHeight&&(o=i.minFullScreenHeight)}catch(s){}}i.container.parent().height(o),i.container.closest(".rev_slider_wrapper").height(o),i.container.css({height:"100%"}),i.height=o,i.minHeight!=e&&i.height<i.minHeight&&(i.height=i.minHeight)}else i.minHeight!=e&&i.height<i.minHeight&&(i.height=i.minHeight),i.container.height(i.height);i.slotw=Math.ceil(i.width/i.slots),"on"==i.fullScreen?i.sloth=Math.ceil(t(window).height()/i.slots):i.sloth=Math.ceil(i.height/i.slots),"on"==i.autoHeight&&(i.sloth=Math.ceil(a.height()/i.slots))},w=function(a,i){a.find(".tp-caption").each(function(){t(this).addClass(t(this).data("transition")),t(this).addClass("start")}),a.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:a.parent().css("maxHeight")}),"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(a){var i=t(this);if(i.css({width:"100%",height:"100%",overflow:"hidden"}),i.data("link")!=e){var o=i.data("link"),n="_self",s=60;"back"==i.data("slideindex")&&(s=0);var r=i.data("linktoslide");i.data("target")!=e&&(n=i.data("target")),"slide"==o?i.append('<div class="tp-caption sft slidelink" style="width:100%;height:100%;z-index:'+s+';" data-x="center" data-y="center" data-linktoslide="'+r+'" data-start="0"><a style="width:100%;height:100%;display:block"><span style="width:100%;height:100%;display:block"></span></a></div>'):(r="no",i.append('<div class="tp-caption sft slidelink" style="width:100%;height:100%;z-index:'+s+';" data-x="center" data-y="center" data-linktoslide="'+r+'" data-start="0"><a style="width:100%;height:100%;display:block" target="'+n+'" href="'+o+'"><span style="width:100%;height:100%;display:block"></span></a></div>'))}}),a.parent().css({overflow:"visible"}),a.find(">ul:first >li >img").each(function(a){var o=t(this);o.addClass("defaultimg"),o.data("lazyload")!=e&&1!=o.data("lazydone")||v(o,i),o.wrap('<div class="slotholder" style="width:100%;height:100%;"data-duration="'+o.data("duration")+'"data-zoomstart="'+o.data("zoomstart")+'"data-zoomend="'+o.data("zoomend")+'"data-rotationstart="'+o.data("rotationstart")+'"data-rotationend="'+o.data("rotationend")+'"data-ease="'+o.data("ease")+'"data-duration="'+o.data("duration")+'"data-bgpositionend="'+o.data("bgpositionend")+'"data-bgposition="'+o.data("bgposition")+'"data-duration="'+o.data("duration")+'"data-kenburns="'+o.data("kenburns")+'"data-easeme="'+o.data("ease")+'"data-bgfit="'+o.data("bgfit")+'"data-bgfitend="'+o.data("bgfitend")+'"data-owidth="'+o.data("owidth")+'"data-oheight="'+o.data("oheight")+'"></div>'),"none"!=i.dottedOverlay&&i.dottedOverlay!=e&&o.closest(".slotholder").append('<div class="tp-dottedoverlay '+i.dottedOverlay+'"></div>');var n=o.attr("src"),s=(o.data("lazyload"),o.data("bgfit")),r=o.data("bgrepeat"),l=o.data("bgposition");s==e&&(s="cover"),r==e&&(r="no-repeat"),l==e&&(l="center center");var h=o.closest(".slotholder");o.replaceWith('<div class="tp-bgimg defaultimg" data-lazyload="'+o.data("lazyload")+'" data-bgfit="'+s+'"data-bgposition="'+l+'" data-bgrepeat="'+r+'" data-lazydone="'+o.data("lazydone")+'" src="'+n+'" data-src="'+n+'" style="background-color:'+o.css("backgroundColor")+";background-repeat:"+r+";background-image:url("+n+");background-size:"+s+";background-position:"+l+';width:100%;height:100%;"></div>'),d(8)&&(h.find(".tp-bgimg").css({backgroundImage:"none","background-image":"none"}),h.find(".tp-bgimg").append('<img class="ieeightfallbackimage defaultimg" src="'+n+'" style="width:100%">')),o.css({opacity:0}),o.data("li-id",a)})},b=function(t,a,i,o){var n=t,s=n.find(".defaultimg"),r=n.data("zoomstart"),l=n.data("rotationstart");s.data("currotate")!=e&&(l=s.data("currotate")),s.data("curscale")!=e&&(r=s.data("curscale")),v(s,a);var h=s.data("src"),c=s.css("background-color"),p=a.width,f=a.height,u=s.data("fxof");
"on"==a.autoHeight&&(f=a.container.height()),u==e&&(u=0),fullyoff=0;var g=0,m=s.data("bgfit"),w=s.data("bgrepeat"),b=s.data("bgposition");if(m==e&&(m="cover"),w==e&&(w="no-repeat"),b==e&&(b="center center"),d(8)){n.data("kenburns","off");var y=h;h=""}if("on"==a.panZoomDisableOnMobile&&N()&&n.data("kenburns","off"),"on"==n.data("kenburns")&&(m=r,m.toString().length<4&&(m=U(m,n,a))),"horizontal"==o){if(!i)var g=0-a.slotw;for(var T=0;T<a.slots;T++)n.append('<div class="slot" style="position:absolute;top:'+(0+fullyoff)+"px;left:"+(u+T*a.slotw)+"px;overflow:hidden;width:"+(a.slotw+.6)+"px;height:"+f+'px"><div class="slotslide" style="position:absolute;top:0px;left:'+g+"px;width:"+(a.slotw+.6)+"px;height:"+f+'px;overflow:hidden;"><div style="background-color:'+c+";position:absolute;top:0px;left:"+(0-T*a.slotw)+"px;width:"+p+"px;height:"+f+"px;background-image:url("+h+");background-repeat:"+w+";background-size:"+m+";background-position:"+b+';"></div></div></div>'),r!=e&&l!=e&&punchgs.TweenLite.set(n.find(".slot").last(),{rotationZ:l}),d(8)&&(n.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+y+'" style="width:100%;height:auto">'),x(n,a))}else{if(!i)var g=0-a.sloth;for(var T=0;T<a.slots+2;T++)n.append('<div class="slot" style="position:absolute;top:'+(fullyoff+T*a.sloth)+"px;left:"+u+"px;overflow:hidden;width:"+p+"px;height:"+a.sloth+'px"><div class="slotslide" style="position:absolute;top:'+g+"px;left:0px;width:"+p+"px;height:"+a.sloth+'px;overflow:hidden;"><div style="background-color:'+c+";position:absolute;top:"+(0-T*a.sloth)+"px;left:0px;width:"+p+"px;height:"+f+"px;background-image:url("+h+");background-repeat:"+w+";background-size:"+m+";background-position:"+b+';"></div></div></div>'),r!=e&&l!=e&&punchgs.TweenLite.set(n.find(".slot").last(),{rotationZ:l}),d(8)&&(n.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+y+'" style="width:100%;height:auto;">'),x(n,a))}},y=function(t,a,i){var o=t,n=o.find(".defaultimg"),s=o.data("zoomstart"),r=o.data("rotationstart");n.data("currotate")!=e&&(r=n.data("currotate")),n.data("curscale")!=e&&(s=100*n.data("curscale")),v(n,a);var l=n.data("src"),h=n.css("backgroundColor"),c=a.width,p=a.height;"on"==a.autoHeight&&(p=a.container.height());var f=n.data("fxof");f==e&&(f=0),fullyoff=0;if(d(8)){var u=l;l=""}var g=0;if(g=a.sloth>a.slotw?a.sloth:a.slotw,!i);a.slotw=g,a.sloth=g;var m=0,w=0,b=n.data("bgfit"),y=n.data("bgrepeat"),T=n.data("bgposition");b==e&&(b="cover"),y==e&&(y="no-repeat"),T==e&&(T="center center"),"on"==o.data("kenburns")&&(b=s,b.toString().length<4&&(b=U(b,o,a)));for(var C=0;C<a.slots;C++){w=0;for(var L=0;L<a.slots;L++)o.append('<div class="slot" style="position:absolute;top:'+(fullyoff+w)+"px;left:"+(f+m)+"px;width:"+g+"px;height:"+g+'px;overflow:hidden;"><div class="slotslide" data-x="'+m+'" data-y="'+w+'" style="position:absolute;top:0px;left:0px;width:'+g+"px;height:"+g+'px;overflow:hidden;"><div style="position:absolute;top:'+(0-w)+"px;left:"+(0-m)+"px;width:"+c+"px;height:"+p+"px;background-color:"+h+";background-image:url("+l+");background-repeat:"+y+";background-size:"+b+";background-position:"+T+';"></div></div></div>'),w+=g,d(8)&&(o.find(".slot ").last().find(".slotslide").append('<img src="'+u+'">'),x(o,a)),s!=e&&r!=e&&punchgs.TweenLite.set(o.find(".slot").last(),{rotationZ:r});m+=g}},x=function(t,e){if(d(8)){var a=t.find(".ieeightfallbackimage");a.width(),a.height();e.startwidth/e.startheight<t.data("owidth")/t.data("oheight")?a.css({width:"auto",height:"100%"}):a.css({width:"100%",height:"auto"}),setTimeout(function(){var i=a.width(),o=a.height();"center center"==t.data("bgposition")&&a.css({position:"absolute",top:e.height/2-o/2+"px",left:e.width/2-i/2+"px"}),("center top"==t.data("bgposition")||"top center"==t.data("bgposition"))&&a.css({position:"absolute",top:"0px",left:e.width/2-i/2+"px"}),("center bottom"==t.data("bgposition")||"bottom center"==t.data("bgposition"))&&a.css({position:"absolute",bottom:"0px",left:e.width/2-i/2+"px"}),("right top"==t.data("bgposition")||"top right"==t.data("bgposition"))&&a.css({position:"absolute",top:"0px",right:"0px"}),("right bottom"==t.data("bgposition")||"bottom right"==t.data("bgposition"))&&a.css({position:"absolute",bottom:"0px",right:"0px"}),("right center"==t.data("bgposition")||"center right"==t.data("bgposition"))&&a.css({position:"absolute",top:e.height/2-o/2+"px",right:"0px"}),("left bottom"==t.data("bgposition")||"bottom left"==t.data("bgposition"))&&a.css({position:"absolute",bottom:"0px",left:"0px"}),("left center"==t.data("bgposition")||"center left"==t.data("bgposition"))&&a.css({position:"absolute",top:e.height/2-o/2+"px",left:"0px"})},20)}},T=function(e,a,i){i.find(".slot").each(function(){t(this).remove()}),a.transition=0},C=function(a,i){a.find("img, .defaultimg").each(function(a){var o=t(this);if(o.data("lazyload")!=o.attr("src")&&3>i&&o.data("lazyload")!=e&&"undefined"!=o.data("lazyload")){if(o.data("lazyload")!=e&&"undefined"!=o.data("lazyload")){o.attr("src",o.data("lazyload"));var n=new Image;n.onload=function(t){o.data("lazydone",1),o.hasClass("defaultimg")&&L(o,n)},n.error=function(){o.data("lazydone",1)},n.src=o.attr("src"),n.complete&&(o.hasClass("defaultimg")&&L(o,n),o.data("lazydone",1))}}else if((o.data("lazyload")===e||"undefined"===o.data("lazyload"))&&1!=o.data("lazydone")){var n=new Image;n.onload=function(){o.hasClass("defaultimg")&&L(o,n),o.data("lazydone",1)},n.error=function(){o.data("lazydone",1)},o.attr("src")!=e&&"undefined"!=o.attr("src")?n.src=o.attr("src"):n.src=o.data("src"),n.complete&&(o.hasClass("defaultimg")&&L(o,n),o.data("lazydone",1))}})},L=function(t,e){var a=t.closest("li"),i=e.width,o=e.height;a.data("owidth",i),a.data("oheight",o),a.find(".slotholder").data("owidth",i),a.find(".slotholder").data("oheight",o),a.data("loadeddone",1)},k=function(a,i,o){C(a,0);var n=setInterval(function(){o.bannertimeronpause=!0,o.container.trigger("stoptimer"),o.cd=0;var s=0;a.find("img, .defaultimg").each(function(e){1!=t(this).data("lazydone")&&s++}),s>0?C(a,s):(clearInterval(n),i!=e&&i())},100)},z=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 o=t.find(">ul:first-child >li:eq("+a.next+")"),n=o.find(".defaultimg");a.bannertimeronpause=!0,t.trigger("stoptimer"),a.cd=0,n.data("lazyload")!=e&&"undefined"!=n.data("lazyload")&&1!=n.data("lazydone")?(d(8)?n.attr("src",o.find(".defaultimg").data("lazyload")):n.css({backgroundImage:'url("'+o.find(".defaultimg").data("lazyload")+'")'}),n.data("src",o.find(".defaultimg").data("lazyload")),n.data("lazydone",1),n.data("orgw",0),o.data("loadeddone",1),t.find(".tp-loader").css({display:"block"}),k(t.find(".tp-static-layers"),function(){k(o,function(){var e=o.find(".slotholder");if("on"==e.data("kenburns"))var i=setInterval(function(){var o=e.data("owidth");o>=0&&(clearInterval(i),O(a,n,t))},10);else O(a,n,t)},a)},a)):o.data("loadeddone")===e?(o.data("loadeddone",1),k(o,function(){O(a,n,t)},a)):O(a,n,t)},O=function(t,e,a){t.bannertimeronpause=!1,t.cd=0,a.trigger("nulltimer"),a.find(".tp-loader").css({display:"none"}),v(e,t),g(a,t),v(e,t),A(a,t)},A=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(o){var i=t.find(">ul:first-child >li:eq(1)")}a.lastslide=a.act;var n=t.find(">ul:first-child >li:eq("+a.next+")");setTimeout(function(){m(a)},200);var s=i.find(".slotholder"),r=n.find(".slotholder");("on"==r.data("kenburns")||"on"==s.data("kenburns"))&&(Q(t,a),t.find(".kenburnimg").remove()),n.data("delay")!=e?(a.cd=0,a.delay=n.data("delay")):a.delay=a.origcd,1==a.firststart&&punchgs.TweenLite.set(i,{autoAlpha:0}),punchgs.TweenLite.set(i,{zIndex:18}),punchgs.TweenLite.set(n,{autoAlpha:0,zIndex:20});var d=0;i.index()!=n.index()&&1!=a.firststart&&(d=B(i,a)),"on"!=i.data("saveperformance")&&(d=0),setTimeout(function(){t.trigger("restarttimer"),I(t,a,n,i,s,r)},d)},I=function(a,i,o,n,s,r){function l(){t.each(g,function(t,e){(e[0]==f||e[8]==f)&&(h=e[1],u=e[2],w=x),x+=1})}"prepared"==o.data("differentissplayed")&&(o.data("differentissplayed","done"),o.data("transition",o.data("savedtransition")),o.data("slotamount",o.data("savedslotamount")),o.data("masterspeed",o.data("savedmasterspeed"))),o.data("fstransition")!=e&&"done"!=o.data("differentissplayed")&&(o.data("savedtransition",o.data("transition")),o.data("savedslotamount",o.data("slotamount")),o.data("savedmasterspeed",o.data("masterspeed")),o.data("transition",o.data("fstransition")),o.data("slotamount",o.data("fsslotamount")),o.data("masterspeed",o.data("fsmasterspeed")),o.data("differentissplayed","prepared")),a.find(".active-revslide").removeClass(".active-revslide"),o.addClass("active-revslide"),o.data("transition")==e&&o.data("transition","random");var h=0,c=o.data("transition").split(","),p=o.data("nexttransid")==e?-1:o.data("nexttransid");"on"==o.data("randomtransition")?p=Math.round(Math.random()*c.length):p+=1,p==c.length&&(p=0),o.data("nexttransid",p);var f=c[p];i.ie&&("boxfade"==f&&(f="boxslide"),"slotfade-vertical"==f&&(f="slotzoom-vertical"),"slotfade-horizontal"==f&&(f="slotzoom-horizontal")),d(8)&&(f=11);var u=0;"scroll"==i.parallax&&i.parallaxFirstGo==e&&(i.parallaxFirstGo=!0,tt(a,i),setTimeout(function(){tt(a,i)},210),setTimeout(function(){tt(a,i)},420)),("boxslide"==f||"boxfade"==f||"papercut"==f||0==f||1==f||16==f)&&(f=9),"slidehorizontal"==f&&(f="slideleft",1==i.leftarrowpressed&&(f="slideright")),"slidevertical"==f&&(f="slideup",1==i.leftarrowpressed&&(f="slidedown")),"parallaxhorizontal"==f&&(f="parallaxtoleft",1==i.leftarrowpressed&&(f="parallaxtoright")),"parallaxvertical"==f&&(f="parallaxtotop",1==i.leftarrowpressed&&(f="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,u=1,w=0,x=0,T=new Array;"on"==r.data("kenburns")&&(("boxslide"==f||0==f||"boxfade"==f||1==f||"papercut"==f||16==f)&&(f=11),G(a,i,!0,!0)),"random"==f&&(f=Math.round(Math.random()*g.length-1),f>g.length-1&&(f=g.length-1)),"random-static"==f&&(f=Math.round(Math.random()*m.length-1),f>m.length-1&&(f=m.length-1),f=m[f]),"random-premium"==f&&(f=Math.round(Math.random()*v.length-1),f>v.length-1&&(f=v.length-1),f=v[f]);var C=[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!=C.indexOf(f)){var L=Math.round(Math.random()*(v.length-2))+1;L>v.length-1&&(L=v.length-1),0==L&&(L=1),f=v[L]}l(),d(8)&&h>15&&28>h&&(f=Math.round(Math.random()*m.length-1),f>m.length-1&&(f=m.length-1),f=m[f],x=0,l());var k=-1;(1==i.leftarrowpressed||i.act>i.next)&&(k=1),i.leftarrowpressed=0,h>26&&(h=26),0>h&&(h=0);var z=300;o.data("masterspeed")!=e&&o.data("masterspeed")>99&&o.data("masterspeed")<4001&&(z=o.data("masterspeed")),T=g[w],a.parent().find(".bullet").each(function(){var e=t(this);e.removeClass("selected"),"withbullet"==i.navigationArrows||"nexttobullets"==i.navigationArrows?e.index()-1==i.next&&e.addClass("selected"):e.index()==i.next&&e.addClass("selected")});var O=new punchgs.TimelineLite({onComplete:function(){M(a,i,r,s,o,n,O)}});if(O.add(punchgs.TweenLite.set(r.find(".defaultimg"),{opacity:0})),O.pause(),o.data("slotamount")==e||o.data("slotamount")<1?(i.slots=Math.round(12*Math.random()+4),"boxslide"==f?i.slots=Math.round(6*Math.random()+3):"flyin"==f&&(i.slots=Math.round(4*Math.random()+1))):i.slots=o.data("slotamount"),o.data("rotate")==e?i.rotate=0:999==o.data("rotate")?i.rotate=Math.round(360*Math.random()):i.rotate=o.data("rotate"),(!t.support.transition||i.ie||i.ie9)&&(i.rotate=0),1==i.firststart&&(i.firststart=0),z+=T[4],(4==h||5==h||6==h)&&i.slots<3&&(i.slots=3),0!=T[3]&&(i.slots=Math.min(i.slots,T[3])),9==h&&(i.slots=i.width/20),10==h&&(i.slots=i.height/20),"box"==T[5]?(null!=T[7]&&y(s,i,T[7]),null!=T[6]&&y(r,i,T[6])):("vertical"==T[5]||"horizontal"==T[5])&&(null!=T[7]&&b(s,i,T[7],T[5]),null!=T[6]&&b(r,i,T[6],T[5])),0==h){var A=Math.ceil(i.height/i.sloth),I=0;r.find(".slotslide").each(function(e){var a=t(this);I+=1,I==A&&(I=0),O.add(punchgs.TweenLite.from(a,z/600,{opacity:0,top:0-i.sloth,left:0-i.slotw,rotation:i.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),(15*e+30*I)/1500)})}if(1==h){var S,P=0;r.find(".slotslide").each(function(e){var a=t(this);rand=Math.random()*z+300,rand2=500*Math.random()+200,rand+rand2>S&&(S=rand2+rand2,P=e),O.add(punchgs.TweenLite.from(a,rand/1e3,{autoAlpha:0,force3D:"auto",rotation:i.rotate,ease:punchgs.Power2.easeInOut}),rand2/1e3)})}if(2==h){var H=new punchgs.TimelineLite;s.find(".slotslide").each(function(){var e=t(this);H.add(punchgs.TweenLite.to(e,z/1e3,{left:i.slotw,force3D:"auto",rotation:0-i.rotate}),0),O.add(H,0)}),r.find(".slotslide").each(function(){var e=t(this);H.add(punchgs.TweenLite.from(e,z/1e3,{left:0-i.slotw,force3D:"auto",rotation:i.rotate}),0),O.add(H,0)})}if(3==h){var H=new punchgs.TimelineLite;s.find(".slotslide").each(function(){var e=t(this);H.add(punchgs.TweenLite.to(e,z/1e3,{top:i.sloth,rotation:i.rotate,force3D:"auto",transformPerspective:600}),0),O.add(H,0)}),r.find(".slotslide").each(function(){var e=t(this);H.add(punchgs.TweenLite.from(e,z/1e3,{top:0-i.sloth,rotation:i.rotate,ease:punchgs.Power2.easeOut,force3D:"auto",transformPerspective:600}),0),O.add(H,0)})}if(4==h||5==h){setTimeout(function(){s.find(".defaultimg").css({opacity:0})},100);var D=z/1e3,H=new punchgs.TimelineLite;s.find(".slotslide").each(function(e){var a=t(this),o=e*D/i.slots;5==h&&(o=(i.slots-e-1)*D/i.slots/1.5),H.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:o}),0),O.add(H,0)}),r.find(".slotslide").each(function(e){var a=t(this),o=e*D/i.slots;5==h&&(o=(i.slots-e-1)*D/i.slots/1.5),H.add(punchgs.TweenLite.from(a,3*D,{top:0-i.height,opacity:.5,rotation:i.rotate,force3D:"auto",ease:punchgs.Power2.easeInOut,delay:o}),0),O.add(H,0)})}if(6==h){i.slots<2&&(i.slots=2),i.slots%2&&(i.slots=i.slots+1);var H=new punchgs.TimelineLite;setTimeout(function(){s.find(".defaultimg").css({opacity:0})},100),s.find(".slotslide").each(function(e){var a=t(this);if(e+1<i.slots/2)var o=90*(e+2);else var o=90*(2+i.slots-e);H.add(punchgs.TweenLite.to(a,(z+o)/1e3,{top:0+i.height,opacity:1,force3D:"auto",rotation:i.rotate,ease:punchgs.Power2.easeInOut}),0),O.add(H,0)}),r.find(".slotslide").each(function(e){var a=t(this);if(e+1<i.slots/2)var o=90*(e+2);else var o=90*(2+i.slots-e);H.add(punchgs.TweenLite.from(a,(z+o)/1e3,{top:0-i.height,opacity:1,force3D:"auto",rotation:i.rotate,ease:punchgs.Power2.easeInOut}),0),O.add(H,0)})}if(7==h){z=2*z;var H=new punchgs.TimelineLite;setTimeout(function(){s.find(".defaultimg").css({opacity:0})},100),s.find(".slotslide").each(function(){var e=t(this).find("div");H.add(punchgs.TweenLite.to(e,z/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),O.add(H,0)}),r.find(".slotslide").each(function(e){var a=t(this).find("div");H.add(punchgs.TweenLite.fromTo(a,z/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),O.add(H,0)})}if(8==h){z=3*z;var H=new punchgs.TimelineLite;s.find(".slotslide").each(function(){var e=t(this).find("div");H.add(punchgs.TweenLite.to(e,z/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),O.add(H,0)}),r.find(".slotslide").each(function(e){var a=t(this).find("div");H.add(punchgs.TweenLite.fromTo(a,z/1e3,{left:0,top:0,opacity:0,force3D:"auto"},{left:"0px",top:0-e*i.sloth+"px",width:r.find(".defaultimg").data("neww")+"px",height:r.find(".defaultimg").data("newh")+"px",opacity:1,rotation:0}),0),O.add(H,0)})}if(9==h||10==h){var W=0;r.find(".slotslide").each(function(e){var a=t(this);W++,O.add(punchgs.TweenLite.fromTo(a,z/1e3,{autoAlpha:0,force3D:"auto",transformPerspective:600},{autoAlpha:1,ease:punchgs.Power2.easeInOut,delay:5*e/1e3}),0)})}if(11==h||26==h){var W=0;26==h&&(z=0),r.find(".slotslide").each(function(e){var a=t(this);O.add(punchgs.TweenLite.from(a,z/1e3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power2.easeInOut}),0)})}if(12==h||13==h||14==h||15==h){z=1e3,setTimeout(function(){punchgs.TweenLite.set(s.find(".defaultimg"),{autoAlpha:0})},100);var V=i.width,X=i.height,Y=r.find(".slotslide");("on"==i.fullWidth||"on"==i.fullScreen)&&(V=Y.width(),X=Y.height());var _=0,E=0;12==h?_=V:15==h?_=0-V:13==h?E=X:14==h&&(E=0-X);var B=1,F=1,j=1,q=punchgs.Power2.easeInOut,Z=punchgs.Power2.easeInOut,N=z/1e3,U=N;1==u&&(B=0),2==u&&(B=0),3==u&&(q=punchgs.Power2.easeInOut,Z=punchgs.Power1.easeInOut,N=z/1200),(4==u||5==u)&&(F=.6),6==u&&(F=1.4),(5==u||6==u)&&(j=1.4,B=0,V=0,X=0,_=0,E=0),6==u&&(j=.6);O.add(punchgs.TweenLite.from(Y,N,{left:_,top:E,scale:j,opacity:B,rotation:i.rotate,ease:Z,force3D:"auto"}),0);var $=s.find(".slotslide");(4==u||5==u)&&(V=0,X=0),1!=u&&(12==h?O.add(punchgs.TweenLite.to($,U,{left:0-V+"px",force3D:"auto",scale:F,opacity:B,rotation:i.rotate,ease:q}),0):15==h?O.add(punchgs.TweenLite.to($,U,{left:V+"px",force3D:"auto",scale:F,opacity:B,rotation:i.rotate,ease:q}),0):13==h?O.add(punchgs.TweenLite.to($,U,{top:0-X+"px",force3D:"auto",scale:F,opacity:B,rotation:i.rotate,ease:q}),0):14==h&&O.add(punchgs.TweenLite.to($,U,{top:X+"px",force3D:"auto",scale:F,opacity:B,rotation:i.rotate,ease:q}),0))}if(16==h){var H=new punchgs.TimelineLite;O.add(punchgs.TweenLite.set(n,{position:"absolute","z-index":20}),0),O.add(punchgs.TweenLite.set(o,{position:"absolute","z-index":15}),0),n.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"></div>'),n.find(".tp-half-one").clone(!0).appendTo(n).addClass("tp-half-two"),n.find(".tp-half-two").removeClass("tp-half-one");var V=i.width,X=i.height;"on"==i.autoHeight&&(X=a.height()),n.find(".tp-half-one .defaultimg").wrap('<div class="tp-papercut" style="width:'+V+"px;height:"+X+'px;"></div>'),n.find(".tp-half-two .defaultimg").wrap('<div class="tp-papercut" style="width:'+V+"px;height:"+X+'px;"></div>'),n.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"}),n.find(".tp-half-two .tp-caption").wrapAll('<div style="position:absolute;top:-50%;left:0px;"></div>'),O.add(punchgs.TweenLite.set(n.find(".tp-half-two"),{width:V,height:X,overflow:"hidden",zIndex:15,position:"absolute",top:X/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0),O.add(punchgs.TweenLite.set(n.find(".tp-half-one"),{width:V,height:X/2,overflow:"visible",zIndex:10,position:"absolute",top:"0px",left:"0px",transformPerspective:600,transformOrigin:"center top"}),0);var J=(n.find(".defaultimg"),Math.round(20*Math.random()-10)),Q=Math.round(20*Math.random()-10),K=Math.round(20*Math.random()-10),et=.4*Math.random()-.2,at=.4*Math.random()-.2,it=1*Math.random()+1,ot=1*Math.random()+1,nt=.3*Math.random()+.3;O.add(punchgs.TweenLite.set(n.find(".tp-half-one"),{overflow:"hidden"}),0),O.add(punchgs.TweenLite.fromTo(n.find(".tp-half-one"),z/800,{width:V,height:X/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:it,rotation:J,y:0-X-X/4,autoAlpha:0,ease:punchgs.Power2.easeInOut}),0),O.add(punchgs.TweenLite.fromTo(n.find(".tp-half-two"),z/800,{width:V,height:X,overflow:"hidden",position:"absolute",top:X/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:ot,rotation:Q,y:X+X/4,ease:punchgs.Power2.easeInOut,autoAlpha:0,onComplete:function(){punchgs.TweenLite.set(n,{position:"absolute","z-index":15}),punchgs.TweenLite.set(o,{position:"absolute","z-index":20}),n.find(".tp-half-one").length>0&&(n.find(".tp-half-one .defaultimg").unwrap(),n.find(".tp-half-one .slotholder").unwrap()),n.find(".tp-half-two").remove()}}),0),H.add(punchgs.TweenLite.set(r.find(".defaultimg"),{autoAlpha:1}),0),null!=n.html()&&O.add(punchgs.TweenLite.fromTo(o,(z-200)/1e3,{scale:nt,x:i.width/4*et,y:X/4*at,rotation:K,force3D:"auto",transformOrigin:"center center",ease:punchgs.Power2.easeOut},{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0),O.add(H,0)}if(17==h&&r.find(".slotslide").each(function(e){var a=t(this);O.add(punchgs.TweenLite.fromTo(a,z/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&&r.find(".slotslide").each(function(e){var a=t(this);O.add(punchgs.TweenLite.fromTo(a,z/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 H=new punchgs.TimelineLite;O.add(punchgs.TweenLite.set(n,{zIndex:20}),0),O.add(punchgs.TweenLite.set(o,{zIndex:20}),0),setTimeout(function(){s.find(".defaultimg").css({opacity:0})},100);var st=(o.css("z-index"),n.css("z-index"),90),B=1;if(1==k&&(st=-90),19==h){var rt="center center -"+i.height/2;B=0}else var rt="center center "+i.height/2;punchgs.TweenLite.set(a,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}),r.find(".slotslide").each(function(e){var a=t(this);H.add(punchgs.TweenLite.fromTo(a,z/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:i.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationX:st},{left:0,rotationY:0,top:0,z:0,scale:1,force3D:"auto",rotationX:0,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),H.add(punchgs.TweenLite.to(a,.1,{autoAlpha:1,delay:50*e/1e3}),0),O.add(H)}),s.find(".slotslide").each(function(e){var a=t(this),o=-90;1==k&&(o=90),H.add(punchgs.TweenLite.fromTo(a,z/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationX:0},{autoAlpha:1,rotationY:i.rotate,top:0,z:10,scale:1,rotationX:o,delay:50*e/1e3,force3D:"auto",ease:punchgs.Power2.easeInOut}),0),O.add(H)})}if(20==h){setTimeout(function(){s.find(".defaultimg").css({opacity:0})},100);o.css("z-index"),n.css("z-index");if(1==k)var dt=-i.width,st=70,rt="left center -"+i.height/2;else var dt=i.width,st=-70,rt="right center -"+i.height/2;r.find(".slotslide").each(function(e){var a=t(this);O.add(punchgs.TweenLite.fromTo(a,z/1500,{left:dt,rotationX:40,z:-600,opacity:B,top:0,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationY:st},{left:0,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),O.add(punchgs.TweenLite.fromTo(a,z/1e3,{rotationX:40,z:-600,opacity:B,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationY:st},{rotationX:0,opacity:1,top:0,z:0,scale:1,rotationY:0,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),O.add(punchgs.TweenLite.to(a,.1,{opacity:1,force3D:"auto",delay:50*e/1e3+z/2e3}),0)}),s.find(".slotslide").each(function(e){var a=t(this);if(1!=k)var o=-i.width,n=70,s="left center -"+i.height/2;else var o=i.width,n=-70,s="right center -"+i.height/2;O.add(punchgs.TweenLite.fromTo(a,z/1e3,{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0,force3D:"auto",transformPerspective:600,transformOrigin:s,rotationY:0},{opacity:1,rotationX:40,top:0,z:-600,left:o,force3D:"auto",scale:.8,rotationY:n,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),O.add(punchgs.TweenLite.to(a,.1,{force3D:"auto",opacity:0,delay:50*e/1e3+(z/1e3-z/1e4)}),0)})}if(21==h||25==h){setTimeout(function(){s.find(".defaultimg").css({opacity:0})},100);o.css("z-index"),n.css("z-index");if(1==k){var dt=-i.width,st=90;if(25==h){var rt="center top 0";rot2=-st,st=i.rotate}else{var rt="left center 0";rot2=i.rotate}}else{var dt=i.width,st=-90;if(25==h){var rt="center bottom 0";rot2=-st,st=i.rotate}else{var rt="right center 0";rot2=i.rotate}}if(r.find(".slotslide").each(function(e){var a=t(this);O.add(punchgs.TweenLite.fromTo(a,z/1e3,{left:0,transformStyle:"flat",rotationX:rot2,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationY:st},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),0)}),1!=k){var dt=-i.width,st=90;if(25==h){var rt="center top 0";rot2=-st,st=i.rotate}else{var rt="left center 0";rot2=i.rotate}}else{var dt=i.width,st=-90;if(25==h){var rt="center bottom 0";rot2=-st,st=i.rotate}else{var rt="right center 0";rot2=i.rotate}}s.find(".slotslide").each(function(e){var a=t(this);O.add(punchgs.TweenLite.fromTo(a,z/1e3,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationY:0},{left:0,rotationX:rot2,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:st,ease:punchgs.Power1.easeInOut}),0)})}if(23==h||24==h){setTimeout(function(){s.find(".defaultimg").css({opacity:0})},100);var st=(o.css("z-index"),n.css("z-index"),-90);1==k&&(st=90);var B=1;if(23==h){var rt="center center -"+i.width/2;B=0}else var rt="center center "+i.width/2;var lt=0;punchgs.TweenLite.set(a,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500}),r.find(".slotslide").each(function(e){var a=t(this);O.add(punchgs.TweenLite.fromTo(a,z/1e3,{left:lt,rotationX:i.rotate,force3D:"auto",opacity:B,top:0,scale:1,transformPerspective:600,transformOrigin:rt,rotationY:st},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:50*e/500,ease:punchgs.Power2.easeInOut}),0)}),st=90,1==k&&(st=-90),s.find(".slotslide").each(function(e){var a=t(this);O.add(punchgs.TweenLite.fromTo(a,z/1e3,{left:0,autoAlpha:1,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationY:0},{left:lt,autoAlpha:1,rotationX:i.rotate,top:0,scale:1,rotationY:st,delay:50*e/500,ease:punchgs.Power2.easeInOut}),0)})}O.pause(),R(o,i,null,O),punchgs.TweenLite.to(o,.001,{autoAlpha:1});var ht={};ht.slideIndex=i.next+1,ht.slide=o,a.trigger("revolution.slide.onchange",ht),setTimeout(function(){a.trigger("revolution.slide.onafterswap")},z),a.trigger("revolution.slide.onvideostop")},M=function(t,e,a,i,o,n,s){punchgs.TweenLite.to(a.find(".defaultimg"),.001,{autoAlpha:1,onComplete:function(){T(t,e,o)}}),o.index()!=n.index()&&punchgs.TweenLite.to(n,.2,{autoAlpha:0,onComplete:function(){T(t,e,n)}}),e.act=e.next,"thumb"==e.navigationType&&at(t),"on"==a.data("kenburns")&&G(t,e),t.find(".current-sr-slide-visible").removeClass("current-sr-slide-visible"),o.addClass("current-sr-slide-visible"),("scroll"==e.parallax||"scroll+mouse"==e.parallax||"mouse+scroll"==e.parallax)&&tt(t,e),s.clear()},S=function(e){var a=e.target.getVideoEmbedCode(),i=t("#"+a.split('id="')[1].split('"')[0]),o=i.closest(".tp-simpleresponsive"),n=i.parent().data("player");if(e.data==YT.PlayerState.PLAYING){var s=o.find(".tp-bannertimer"),r=s.data("opt");"mute"==i.closest(".tp-caption").data("volume")&&n.mute(),r.videoplaying=!0,o.trigger("stoptimer"),o.trigger("revolution.slide.onvideoplay")}else{var s=o.find(".tp-bannertimer"),r=s.data("opt");-1!=e.data&&3!=e.data&&(r.videoplaying=!1,o.trigger("starttimer"),o.trigger("revolution.slide.onvideostop")),0==e.data&&1==r.nextslideatend?r.container.revnext():(r.videoplaying=!1,o.trigger("starttimer"),o.trigger("revolution.slide.onvideostop"))}},P=function(e,a){var i=$f(e),o=t("#"+e),n=o.closest(".tp-simpleresponsive"),s=o.closest(".tp-caption");setTimeout(function(){i.addEvent("ready",function(e){a&&i.api("play"),i.addEvent("play",function(t){var e=n.find(".tp-bannertimer"),a=e.data("opt");a.videoplaying=!0,n.trigger("stoptimer"),"mute"==s.data("volume")&&i.api("setVolume","0")}),i.addEvent("finish",function(t){var e=n.find(".tp-bannertimer"),a=e.data("opt");a.videoplaying=!1,n.trigger("starttimer"),n.trigger("revolution.slide.onvideoplay"),1==a.nextslideatend&&a.container.revnext()}),i.addEvent("pause",function(t){var e=n.find(".tp-bannertimer"),a=e.data("opt");a.videoplaying=!1,n.trigger("starttimer"),n.trigger("revolution.slide.onvideostop")}),s.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(t(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),i.api("play")})})},150)},H=function(t,a){var i=a.width(),o=a.height(),n=t.data("mediaAspect");n==e&&(n=1);var s=i/o;t.css({position:"absolute"});t.find("video");n>s?punchgs.TweenLite.to(t,1e-4,{width:o*n,force3D:"auto",top:0,left:0-(o*n-i)/2,height:o}):punchgs.TweenLite.to(t,1e-4,{width:i,force3D:"auto",top:0-(i/n-o)/2,left:0,height:i/n})},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},W=function(e,a){var i=a.split(";");return t.each(i,function(t,a){a=a.split(":");var i=a[0],o=a[1];"rotationX"==i&&(e.rotationX=parseInt(o,0)),"rotationY"==i&&(e.rotationY=parseInt(o,0)),"rotationZ"==i&&(e.rotationZ=parseInt(o,0)),"rotationZ"==i&&(e.rotation=parseInt(o,0)),"scaleX"==i&&(e.scaleX=parseFloat(o)),"scaleY"==i&&(e.scaleY=parseFloat(o)),"opacity"==i&&(e.opacity=parseFloat(o)),"skewX"==i&&(e.skewX=parseInt(o,0)),"skewY"==i&&(e.skewY=parseInt(o,0)),"x"==i&&(e.x=parseInt(o,0)),"y"==i&&(e.y=parseInt(o,0)),"z"==i&&(e.z=parseInt(o,0)),"transformOrigin"==i&&(e.transformOrigin=o.toString()),"transformPerspective"==i&&(e.transformPerspective=parseInt(o,0))}),e},V=function(e){var a=e.split("animation:"),i=new Object;
i.animation=W(D(),a[1]);var o=a[0].split(";");return t.each(o,function(t,e){e=e.split(":");var a=e[0],o=e[1];"typ"==a&&(i.typ=o),"speed"==a&&(i.speed=parseInt(o,0)/1e3),"start"==a&&(i.start=parseInt(o,0)/1e3),"elementdelay"==a&&(i.elementdelay=parseFloat(o)),"ease"==a&&(i.ease=o)}),i},R=function(a,i,o,n){a.data("ctl")==e&&a.data("ctl",new punchgs.TimelineLite);var s=a.data("ctl"),r=0,d=0,l=a.find(".tp-caption"),h=i.container.find(".tp-static-layers").find(".tp-caption");s.pause(),t.each(h,function(t,e){l.push(e)}),l.each(function(a){function n(){}function s(){}var l=o,h=-1,c=t(this);if(c.hasClass("tp-static-layer")){var p=c.data("startslide"),f=c.data("endslide");(-1==p||"-1"==p)&&c.data("startslide",0),(-1==f||"-1"==f)&&c.data("endslide",i.slideamount),0==p&&f==i.slideamount-1&&c.data("endslide",i.slideamount+1),p=c.data("startslide"),f=c.data("endslide"),c.hasClass("tp-is-shown")?h=f==i.next||p>i.next||f<i.next?2:0:p<=i.next&&f>=i.next||p==i.next||f==i.next?(c.addClass("tp-is-shown"),h=1):h=0}r=i.width/2-i.startwidth*i.bw/2;var u=i.bw;i.bh;"on"==i.fullScreen&&(d=i.height/2-i.startheight*i.bh/2),("on"==i.autoHeight||i.minHeight!=e&&i.minHeight>0)&&(d=i.container.height()/2-i.startheight*i.bh/2),0>d&&(d=0);var g=0;if(i.width<i.hideCaptionAtLimit&&"on"==c.data("captionhidden")?(c.addClass("tp-hidden-caption"),g=1):i.width<i.hideAllCaptionAtLimit||i.width<i.hideAllCaptionAtLilmit?(c.addClass("tp-hidden-caption"),g=1):c.removeClass("tp-hidden-caption"),0==g){if(c.data("linktoslide")==e||c.hasClass("hasclicklistener")||(c.addClass("hasclicklistener"),c.css({cursor:"pointer"}),"no"!=c.data("linktoslide")&&c.click(function(){var e=t(this),a=e.data("linktoslide");"next"!=a&&"prev"!=a?(i.container.data("showus",a),i.container.parent().find(".tp-rightarrow").click()):"next"==a?i.container.parent().find(".tp-rightarrow").click():"prev"==a&&i.container.parent().find(".tp-leftarrow").click()})),0>r&&(r=0),c.hasClass("tp-videolayer")||c.find("iframe").length>0||c.find("video").length>0){var m="iframe"+Math.round(1e5*Math.random()+1),v=c.data("videowidth"),w=c.data("videoheight"),b=c.data("videoattributes"),y=c.data("ytid"),x=c.data("vimeoid"),T=c.data("videpreload"),C=c.data("videomp4"),L=c.data("videowebm"),k=c.data("videocontrols"),z="http",O="loop"==c.data("videoloop")?"loop":"loopandnoslidestop"==c.data("videoloop")?"loop":"";c.data("thumbimage")!=e&&c.data("videoposter")==e&&c.data("videoposter",c.data("thumbimage")),y!=e&&String(y).length>1&&0==c.find("iframe").length&&(z="https","none"==k&&(b=b.replace("controls=1","controls=0"),-1==b.toLowerCase().indexOf("controls")&&(b+="&controls=0")),c.append('<iframe style="visible:hidden" src="'+z+"://www.youtube.com/embed/"+y+"?"+b+'" width="'+v+'" height="'+w+'" style="width:'+v+"px;height:"+w+'px"></iframe>')),x!=e&&String(x).length>1&&0==c.find("iframe").length&&c.append('<iframe style="visible:hidden" src="'+z+"://player.vimeo.com/video/"+x+"?"+b+'" width="'+v+'" height="'+w+'" style="width:'+v+"px;height:"+w+'px"></iframe>'),C==e&&L==e||0!=c.find("video").length||("controls"!=k&&(k=""),c.append('<video style="visible:hidden" class="" '+O+" "+k+' preload="'+T+'" width="'+v+'" height="'+w+'"poster="'+c.data("videoposter")+'"><source src="'+C+'" type="video/mp4"" /><source src="'+L+'" type="video/webm"" /></video>'));var A=!1;(1==c.data("autoplayonlyfirsttime")||"true"==c.data("autoplayonlyfirsttime")||1==c.data("autoplay"))&&(c.data("autoplay",!0),A=!0),c.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"}),N()){var o=a.attr("src");a.attr("src",""),a.attr("src",o)}if(i.nextslideatend=c.data("nextslideatend"),c.data("videoposter")!=e&&c.data("videoposter").length>2&&1!=c.data("autoplay")&&!l&&(0==c.find(".tp-thumb-image").length?c.append('<div class="tp-thumb-image" style="cursor:pointer; position:absolute;top:0px;left:0px;width:100%;height:100%;background-image:url('+c.data("videoposter")+'); background-size:cover"></div>'):punchgs.TweenLite.set(c.find(".tp-thumb-image"),{autoAlpha:1})),a.attr("src").toLowerCase().indexOf("youtube")>=0)if(a.hasClass("HasListener")){var n=c.data("player");"on"!=c.data("forcerewind")||N()||n.seekTo(0),(!N()&&1==c.data("autoplay")||A)&&c.data("timerplay",setTimeout(function(){n.playVideo()},c.data("start")))}else try{a.attr("id",m);var n,s=setInterval(function(){YT!=e&&typeof YT.Player!=e&&"undefined"!=typeof YT.Player&&(n=new YT.Player(m,{events:{onStateChange:S,onReady:function(a){var i=a.target.getVideoEmbedCode(),o=t("#"+i.split('id="')[1].split('"')[0]),s=o.closest(".tp-caption"),r=s.data("videorate");s.data("videostart");r!=e&&a.target.setPlaybackRate(parseFloat(r)),(1==s.data("autoplay")||A)&&a.target.playVideo(),s.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(t(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),N()||n.playVideo()})}}})),a.addClass("HasListener"),c.data("player",n),clearInterval(s)},100)}catch(r){}else if(a.attr("src").toLowerCase().indexOf("vimeo")>=0)if(a.hasClass("HasListener")){if(!N()&&(1==c.data("autoplay")||"on"==c.data("forcerewind"))){var a=c.find("iframe"),d=a.attr("id"),h=$f(d);"on"==c.data("forcerewind")&&h.api("seekTo",0),c.data("timerplay",setTimeout(function(){1==c.data("autoplay")&&h.api("play")},c.data("start")))}}else{a.addClass("HasListener"),a.attr("id",m);for(var p,f=a.attr("src"),u={},g=f,v=/([^&=]+)=([^&]*)/g;p=v.exec(g);)u[decodeURIComponent(p[1])]=decodeURIComponent(p[2]);f=u.player_id!=e?f.replace(u.player_id,m):f+"&player_id="+m;try{f=f.replace("api=0","api=1")}catch(r){}f+="&api=1",a.attr("src",f);var n=c.find("iframe")[0],w=setInterval(function(){$f!=e&&typeof $f(m).api!=e&&"undefined"!=typeof $f(m).api&&($f(n).addEvent("ready",function(){P(m,A)}),clearInterval(w))},100)}}),N()&&1==c.data("disablevideoonmobile")&&c.find("video").remove(),N()&&t(window).width()<569&&c.find("video").remove(),c.find("video").length>0&&c.find("video").each(function(a){var o=this,n=t(this);n.parent().hasClass("html5vid")||n.wrap('<div class="html5vid" style="position:relative;top:0px;left:0px;width:auto;height:auto"></div>');var s=n.parent();o.addEventListener?o.addEventListener("loadedmetadata",function(){s.data("metaloaded",1)}):o.attachEvent("loadedmetadata",function(){s.data("metaloaded",1)}),clearInterval(s.data("interval")),s.data("interval",setInterval(function(){if(1==s.data("metaloaded")||NaN!=o.duration){clearInterval(s.data("interval")),s.hasClass("HasListener")||(s.addClass("HasListener"),"none"!=c.data("dottedoverlay")&&c.data("dottedoverlay")!=e&&1!=c.find(".tp-dottedoverlay").length&&s.append('<div class="tp-dottedoverlay '+c.data("dottedoverlay")+'"></div>'),n.attr("control")==e&&(0==s.find(".tp-video-play-button").length&&s.append('<div class="tp-video-play-button"><i class="revicon-right-dir"></i><div class="tp-revstop"></div></div>'),s.find("video, .tp-poster, .tp-video-play-button").click(function(){s.hasClass("videoisplaying")?o.pause():o.play()})),(1==c.data("forcecover")||c.hasClass("fullscreenvideo"))&&(1==c.data("forcecover")&&(H(s,i.container),s.addClass("fullcoveredvideo"),c.addClass("fullcoveredvideo")),s.css({width:"100%",height:"100%"})),o.addEventListener?o.addEventListener("play",function(){"mute"==c.data("volume")&&(o.muted=!0),s.addClass("videoisplaying"),"loopandnoslidestop"==c.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"))}):o.attachEvent("play",function(){"mute"==c.data("volume")&&(o.muted=!0),s.addClass("videoisplaying"),"loopandnoslidestop"==c.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"))}),o.addEventListener?o.addEventListener("pause",function(){s.removeClass("videoisplaying"),i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop")}):o.attachEvent("pause",function(){s.removeClass("videoisplaying"),i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop")}),o.addEventListener?o.addEventListener("ended",function(){s.removeClass("videoisplaying"),i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop"),1==i.nextslideatend&&i.container.revnext()}):o.attachEvent("ended",function(){s.removeClass("videoisplaying"),i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop"),1==i.nextslideatend&&i.container.revnext()}));var t=!1;(1==c.data("autoplayonlyfirsttime")||"true"==c.data("autoplayonlyfirsttime"))&&(t=!0);var a=16/9;if("4:3"==c.data("aspectratio")&&(a=4/3),s.data("mediaAspect",a),1==s.closest(".tp-caption").data("forcecover")&&(H(s,i.container),s.addClass("fullcoveredvideo")),n.css({display:"block"}),i.nextslideatend=c.data("nextslideatend"),(1==c.data("autoplay")||1==t)&&("loopandnoslidestop"==c.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"!=c.data("forcerewind")||s.hasClass("videoisplaying")||o.currentTime>0&&(o.currentTime=0),"mute"==c.data("volume")&&(o.muted=!0),s.data("timerplay",setTimeout(function(){"on"!=c.data("forcerewind")||s.hasClass("videoisplaying")||o.currentTime>0&&(o.currentTime=0),"mute"==c.data("volume")&&(o.muted=!0),o.play()},10+c.data("start")))),s.data("ww")==e&&s.data("ww",n.attr("width")),s.data("hh")==e&&s.data("hh",n.attr("height")),!c.hasClass("fullscreenvideo")&&1==c.data("forcecover"))try{s.width(s.data("ww")*i.bw),s.height(s.data("hh")*i.bh)}catch(r){}clearInterval(s.data("interval"))}}),100)}),1==c.data("autoplay")&&(setTimeout(function(){"loopandnoslidestop"!=c.data("videoloop")&&(i.videoplaying=!0,i.container.trigger("stoptimer"))},200),"loopandnoslidestop"!=c.data("videoloop")&&(i.videoplaying=!0,i.container.trigger("stoptimer")),(1==c.data("autoplayonlyfirsttime")||"true"==c.data("autoplayonlyfirsttime"))&&(c.data("autoplay",!1),c.data("autoplayonlyfirsttime",!1)))}var I=0,M=0;if(c.find("img").length>0){var R=c.find("img");0==R.width()&&R.css({width:"auto"}),0==R.height()&&R.css({height:"auto"}),R.data("ww")==e&&R.width()>0&&R.data("ww",R.width()),R.data("hh")==e&&R.height()>0&&R.data("hh",R.height());var B=R.data("ww"),q=R.data("hh");B==e&&(B=0),q==e&&(q=0),R.width(B*i.bw),R.height(q*i.bh),I=R.width(),M=R.height()}else if(c.find("iframe").length>0||c.find("video").length>0){var Z=!1,R=c.find("iframe");0==R.length&&(R=c.find("video"),Z=!0),R.css({display:"block"}),c.data("ww")==e&&c.data("ww",R.width()),c.data("hh")==e&&c.data("hh",R.height());var B=c.data("ww"),q=c.data("hh"),U=c;U.data("fsize")==e&&U.data("fsize",parseInt(U.css("font-size"),0)||0),U.data("pt")==e&&U.data("pt",parseInt(U.css("paddingTop"),0)||0),U.data("pb")==e&&U.data("pb",parseInt(U.css("paddingBottom"),0)||0),U.data("pl")==e&&U.data("pl",parseInt(U.css("paddingLeft"),0)||0),U.data("pr")==e&&U.data("pr",parseInt(U.css("paddingRight"),0)||0),U.data("mt")==e&&U.data("mt",parseInt(U.css("marginTop"),0)||0),U.data("mb")==e&&U.data("mb",parseInt(U.css("marginBottom"),0)||0),U.data("ml")==e&&U.data("ml",parseInt(U.css("marginLeft"),0)||0),U.data("mr")==e&&U.data("mr",parseInt(U.css("marginRight"),0)||0),U.data("bt")==e&&U.data("bt",parseInt(U.css("borderTop"),0)||0),U.data("bb")==e&&U.data("bb",parseInt(U.css("borderBottom"),0)||0),U.data("bl")==e&&U.data("bl",parseInt(U.css("borderLeft"),0)||0),U.data("br")==e&&U.data("br",parseInt(U.css("borderRight"),0)||0),U.data("lh")==e&&U.data("lh",parseInt(U.css("lineHeight"),0)||0);var G=i.width,$=i.height;if(G>i.startwidth&&(G=i.startwidth),$>i.startheight&&($=i.startheight),c.hasClass("fullscreenvideo")){r=0,d=0,c.data("x",0),c.data("y",0);var J=i.height;"on"==i.autoHeight&&(J=i.container.height()),c.css({width:i.width,height:J})}else c.css({"font-size":U.data("fsize")*i.bw+"px","padding-top":U.data("pt")*i.bh+"px","padding-bottom":U.data("pb")*i.bh+"px","padding-left":U.data("pl")*i.bw+"px","padding-right":U.data("pr")*i.bw+"px","margin-top":U.data("mt")*i.bh+"px","margin-bottom":U.data("mb")*i.bh+"px","margin-left":U.data("ml")*i.bw+"px","margin-right":U.data("mr")*i.bw+"px","border-top":U.data("bt")*i.bh+"px","border-bottom":U.data("bb")*i.bh+"px","border-left":U.data("bl")*i.bw+"px","border-right":U.data("br")*i.bw+"px","line-height":U.data("lh")*i.bh+"px",height:q*i.bh+"px"});0==Z?(R.width(B*i.bw),R.height(q*i.bh)):1==c.data("forcecover")||c.hasClass("fullscreenvideo")||(R.width(B*i.bw),R.height(q*i.bh)),I=R.width(),M=R.height()}else{c.find(".tp-resizeme, .tp-resizeme *").each(function(){Y(t(this),i)}),c.hasClass("tp-resizeme")&&c.find("*").each(function(){Y(t(this),i)}),Y(c,i),M=c.outerHeight(!0),I=c.outerWidth(!0);var Q=c.outerHeight(),K=c.css("backgroundColor");c.find(".frontcorner").css({borderWidth:Q+"px",left:0-Q+"px",borderRight:"0px solid transparent",borderTopColor:K}),c.find(".frontcornertop").css({borderWidth:Q+"px",left:0-Q+"px",borderRight:"0px solid transparent",borderBottomColor:K}),c.find(".backcorner").css({borderWidth:Q+"px",right:0-Q+"px",borderLeft:"0px solid transparent",borderBottomColor:K}),c.find(".backcornertop").css({borderWidth:Q+"px",right:0-Q+"px",borderLeft:"0px solid transparent",borderTopColor:K})}"on"==i.fullScreenAlignForce&&(r=0,d=0),c.data("voffset")==e&&c.data("voffset",0),c.data("hoffset")==e&&c.data("hoffset",0);var tt=c.data("voffset")*u,et=c.data("hoffset")*u,at=i.startwidth*u,it=i.startheight*u;"on"==i.fullScreenAlignForce&&(at=i.container.width(),it=i.container.height()),("center"==c.data("x")||"center"==c.data("xcenter"))&&(c.data("xcenter","center"),c.data("x",at/2-c.outerWidth(!0)/2+et)),("left"==c.data("x")||"left"==c.data("xleft"))&&(c.data("xleft","left"),c.data("x",0/u+et)),("right"==c.data("x")||"right"==c.data("xright"))&&(c.data("xright","right"),c.data("x",(at-c.outerWidth(!0)+et)/u)),("center"==c.data("y")||"center"==c.data("ycenter"))&&(c.data("ycenter","center"),c.data("y",it/2-c.outerHeight(!0)/2+tt)),("top"==c.data("y")||"top"==c.data("ytop"))&&(c.data("ytop","top"),c.data("y",0/i.bh+tt)),("bottom"==c.data("y")||"bottom"==c.data("ybottom"))&&(c.data("ybottom","bottom"),c.data("y",(it-c.outerHeight(!0)+tt)/u)),c.data("start")==e&&c.data("start",1e3);var ot=c.data("easing");ot==e&&(ot="punchgs.Power1.easeOut");var nt=c.data("start")/1e3,st=c.data("speed")/1e3;if("center"==c.data("x")||"center"==c.data("xcenter"))var rt=c.data("x")+r;else var rt=u*c.data("x")+r;if("center"==c.data("y")||"center"==c.data("ycenter"))var dt=c.data("y")+d;else var dt=i.bh*c.data("y")+d;if(punchgs.TweenLite.set(c,{top:dt,left:rt,overwrite:"auto"}),0==h&&(l=!0),c.data("timeline")==e||l||(2!=h&&c.data("timeline").gotoAndPlay(0),l=!0),!l){c.data("timeline")!=e;var lt=new punchgs.TimelineLite({smoothChildTiming:!0,onStart:s});lt.pause(),"on"==i.fullScreenAlignForce;var ht=c;c.data("mySplitText")!=e&&c.data("mySplitText").revert(),("chars"==c.data("splitin")||"words"==c.data("splitin")||"lines"==c.data("splitin")||"chars"==c.data("splitout")||"words"==c.data("splitout")||"lines"==c.data("splitout"))&&(c.find("a").length>0?c.data("mySplitText",new punchgs.SplitText(c.find("a"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):c.find(".tp-layer-inner-rotation").length>0?c.data("mySplitText",new punchgs.SplitText(c.find(".tp-layer-inner-rotation"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):c.data("mySplitText",new punchgs.SplitText(c,{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})),c.addClass("splitted")),"chars"==c.data("splitin")&&(ht=c.data("mySplitText").chars),"words"==c.data("splitin")&&(ht=c.data("mySplitText").words),"lines"==c.data("splitin")&&(ht=c.data("mySplitText").lines);var ct=D(),pt=D();c.data("repeat")!=e&&(repeatV=c.data("repeat")),c.data("yoyo")!=e&&(yoyoV=c.data("yoyo")),c.data("repeatdelay")!=e&&(repeatdelayV=c.data("repeatdelay")),c.hasClass("customin")?ct=W(ct,c.data("customin")):c.hasClass("randomrotate")?(ct.scale=3*Math.random()+1,ct.rotation=Math.round(200*Math.random()-100),ct.x=Math.round(200*Math.random()-100),ct.y=Math.round(200*Math.random()-100)):c.hasClass("lfr")||c.hasClass("skewfromright")?ct.x=15+i.width:c.hasClass("lfl")||c.hasClass("skewfromleft")?ct.x=-15-I:c.hasClass("sfl")||c.hasClass("skewfromleftshort")?ct.x=-50:c.hasClass("sfr")||c.hasClass("skewfromrightshort")?ct.x=50:c.hasClass("lft")?ct.y=-25-M:c.hasClass("lfb")?ct.y=25+i.height:c.hasClass("sft")?ct.y=-50:c.hasClass("sfb")&&(ct.y=50),c.hasClass("skewfromright")||c.hasClass("skewfromrightshort")?ct.skewX=-85:(c.hasClass("skewfromleft")||c.hasClass("skewfromleftshort"))&&(ct.skewX=85),(c.hasClass("fade")||c.hasClass("sft")||c.hasClass("sfl")||c.hasClass("sfb")||c.hasClass("skewfromleftshort")||c.hasClass("sfr")||c.hasClass("skewfromrightshort"))&&(ct.opacity=0),"safari"==X().toLowerCase();var ft=c.data("elementdelay")==e?0:c.data("elementdelay");pt.ease=ct.ease=c.data("easing")==e?punchgs.Power1.easeInOut:c.data("easing"),ct.data=new Object,ct.data.oldx=ct.x,ct.data.oldy=ct.y,pt.data=new Object,pt.data.oldx=pt.x,pt.data.oldy=pt.y,ct.x=ct.x*u,ct.y=ct.y*u;var ut=new punchgs.TimelineLite;if(2!=h)if(c.hasClass("customin"))ht!=c&&lt.add(punchgs.TweenLite.set(c,{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",opacity:1,delay:0,overwrite:"all"})),ct.visibility="hidden",pt.visibility="visible",pt.overwrite="all",pt.opacity=1,pt.onComplete=n(),pt.delay=nt,pt.force3D="auto",lt.add(ut.staggerFromTo(ht,st,ct,pt,ft),"frame0");else if(ct.visibility="visible",ct.transformPerspective=600,ht!=c&&lt.add(punchgs.TweenLite.set(c,{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",opacity:1,delay:0,overwrite:"all"})),pt.visibility="visible",pt.delay=nt,pt.onComplete=n(),pt.opacity=1,pt.force3D="auto",c.hasClass("randomrotate")&&ht!=c)for(var a=0;a<ht.length;a++){var gt=new Object,mt=new Object;t.extend(gt,ct),t.extend(mt,pt),ct.scale=3*Math.random()+1,ct.rotation=Math.round(200*Math.random()-100),ct.x=Math.round(200*Math.random()-100),ct.y=Math.round(200*Math.random()-100),0!=a&&(mt.delay=nt+a*ft),lt.append(punchgs.TweenLite.fromTo(ht[a],st,gt,mt),"frame0")}else lt.add(ut.staggerFromTo(ht,st,ct,pt,ft),"frame0");c.data("timeline",lt);new Array;if(c.data("frames")!=e){var vt=c.data("frames");vt=vt.replace(/\s+/g,""),vt=vt.replace("{","");var wt=vt.split("}");t.each(wt,function(t,e){if(e.length>0){var a=V(e);F(c,i,a,"frame"+(t+10),u)}})}lt=c.data("timeline"),c.data("end")==e||-1!=h&&2!=h?-1==h||2==h?j(c,i,999999,ct,"frame99",u):j(c,i,200,ct,"frame99",u):j(c,i,c.data("end")/1e3,ct,"frame99",u),lt=c.data("timeline"),c.data("timeline",lt),_(c,u),lt.resume()}}if(l&&(E(c),_(c,u),c.data("timeline")!=e)){var bt=c.data("timeline").getTweensOf();t.each(bt,function(t,a){if(a.vars.data!=e){var i=a.vars.data.oldx*u,o=a.vars.data.oldy*u;if(1!=a.progress()&&0!=a.progress())try{a.vars.x=i,a.vary.y=o}catch(n){}else 1==a.progress()&&punchgs.TweenLite.set(a.target,{x:i,y:o})}})}});var c=t("body").find("#"+i.container.attr("id")).find(".tp-bannertimer");c.data("opt",i),n!=e&&setTimeout(function(){n.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]},Y=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")),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"}))},_=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 o=a.data("startdeg")==e?-20:a.data("startdeg"),n=a.data("enddeg")==e?20: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("ease")==e?punchgs.Power2.easeInOut:a.data("ease"),o*=i,n*=i,a.data("timeline").append(new punchgs.TweenLite.fromTo(a,speed,{force3D:"auto",rotation:o,transformOrigin:origin},{rotation:n,ease:easing})),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 o=a.data("xs")==e?0:a.data("xs"),n=a.data("ys")==e?0:a.data("ys");xe=a.data("xe")==e?0:a.data("xe"),ye=a.data("ye")==e?0:a.data("ye"),speed=a.data("speed")==e?2:a.data("speed"),easing=a.data("ease")==e?punchgs.Power2.easeInOut:a.data("ease"),o*=i,n*=i,xe*=i,ye*=i,a.data("timeline").append(new punchgs.TweenLite.fromTo(a,speed,{force3D:"auto",x:o,y:n},{x:xe,y:ye,ease:easing})),a.data("timeline").append(new punchgs.TweenLite.fromTo(a,speed,{force3D:"auto",x:xe,y:ye},{x:o,y:n,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"),o=a.data("zoomend")==e?0:a.data("zoomend");speed=a.data("speed")==e?2:a.data("speed"),easing=a.data("ease")==e?punchgs.Power2.easeInOut:a.data("ease"),a.data("timeline").append(new punchgs.TweenLite.fromTo(a,speed,{force3D:"auto",scale:i},{scale:o,ease:easing})),a.data("timeline").append(new punchgs.TweenLite.fromTo(a,speed,{force3D:"auto",scale:o},{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 o=a.data("angle")==e?10:a.data("angle"),n=a.data("radius")==e?10:a.data("radius"),s=a.data("speed")==e?-20:a.data("speed");a.data("origin")==e?-20:a.data("origin");o*=i,n*=i;var r={a:0,ang:o,element:a,unit:n};a.data("timeline").append(new punchgs.TweenLite.fromTo(r,s,{a:360},{a:0,force3D:"auto",ease:punchgs.Linear.easeNone,onUpdate:function(){var t=r.a*(Math.PI/180);punchgs.TweenLite.to(r.element,.1,{force3D:"auto",x:Math.cos(t)*r.unit,y:r.unit*(1-Math.sin(t))})},onComplete:function(){a.data("timeline").restart()}}))}})},E=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 o=0,n=a.find(".tp-caption"),s=i.container.find(".tp-static-layers").find(".tp-caption");return t.each(s,function(t,e){n.push(e)}),n.each(function(a){var n=-1,s=t(this);if(s.hasClass("tp-static-layer")&&((-1==s.data("startslide")||"-1"==s.data("startslide"))&&s.data("startslide",0),(-1==s.data("endslide")||"-1"==s.data("endslide"))&&s.data("endslide",i.slideamount),s.hasClass("tp-is-shown")?s.data("startslide")>i.next||s.data("endslide")<i.next?(n=2,s.removeClass("tp-is-shown")):n=0:n=2),0!=n){if(E(s),s.find("iframe").length>0){punchgs.TweenLite.to(s.find("iframe"),.2,{autoAlpha:0}),N()&&s.find("iframe").remove();try{var r=s.find("iframe"),d=r.attr("id"),l=$f(d);l.api("pause"),clearTimeout(s.data("timerplay"))}catch(h){}try{var c=s.data("player");c.stopVideo(),clearTimeout(s.data("timerplay"))}catch(h){}}if(s.find("video").length>0)try{s.find("video").each(function(e){var a=t(this).parent();a.attr("id");clearTimeout(a.data("timerplay"));var i=this;i.pause()})}catch(h){}try{var p=s.data("timeline"),f=p.getLabelTime("frame99"),u=p.time();if(f>u){var g=p.getTweensOf(s);if(t.each(g,function(t,e){0!=t&&e.pause()}),0!=s.css("opacity")){var m=s.data("endspeed")==e?s.data("speed"):s.data("endspeed");m>o&&(o=m),p.play("frame99")}else p.progress(1,!1)}}catch(h){}}}),o},F=function(t,a,i,o,n){var s=t.data("timeline"),r=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*n,i.animation.y=i.animation.y*n,s.add(r.staggerTo(d,i.speed,i.animation,i.elementdelay),i.start),s.addLabel(o,i.start),t.data("timeline",s)},j=function(t,a,i,o,n,s){var r=t.data("timeline"),d=new punchgs.TimelineLite,l=D(),h=t.data("endspeed")==e?t.data("speed"):t.data("endspeed");if(l.ease=t.data("endeasing")==e?punchgs.Power1.easeInOut:t.data("endeasing"),h/=1e3,t.hasClass("ltr")||t.hasClass("ltl")||t.hasClass("str")||t.hasClass("stl")||t.hasClass("ltt")||t.hasClass("ltb")||t.hasClass("stt")||t.hasClass("stb")||t.hasClass("skewtoright")||t.hasClass("skewtorightshort")||t.hasClass("skewtoleft")||t.hasClass("skewtoleftshort")||t.hasClass("fadeout")||t.hasClass("randomrotateout")){t.hasClass("skewtoright")||t.hasClass("skewtorightshort")?l.skewX=35:(t.hasClass("skewtoleft")||t.hasClass("skewtoleftshort"))&&(l.skewX=-35),t.hasClass("ltr")||t.hasClass("skewtoright")?l.x=a.width+60:t.hasClass("ltl")||t.hasClass("skewtoleft")?l.x=0-(a.width+60):t.hasClass("ltt")?l.y=0-(a.height+60):t.hasClass("ltb")?l.y=a.height+60:t.hasClass("str")||t.hasClass("skewtorightshort")?(l.x=50,l.opacity=0):t.hasClass("stl")||t.hasClass("skewtoleftshort")?(l.x=-50,l.opacity=0):t.hasClass("stt")?(l.y=-50,l.opacity=0):t.hasClass("stb")?(l.y=50,l.opacity=0):t.hasClass("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):t.hasClass("fadeout")&&(l.opacity=0),t.hasClass("skewtorightshort")?l.x=270:t.hasClass("skewtoleftshort")&&(l.x=-270),l.data=new Object,l.data.oldx=l.x,l.data.oldy=l.y,l.x=l.x*s,l.y=l.y*s,l.overwrite="auto";var c=t,c=t;"chars"==t.data("splitout")?c=t.data("mySplitText").chars:"words"==t.data("splitout")?c=t.data("mySplitText").words:"lines"==t.data("splitout")&&(c=t.data("mySplitText").lines);var p=t.data("endelementdelay")==e?0:t.data("endelementdelay");r.add(d.staggerTo(c,h,l,p),i)}else if(t.hasClass("customout")){l=W(l,t.data("customout"));var c=t;"chars"==t.data("splitout")?c=t.data("mySplitText").chars:"words"==t.data("splitout")?c=t.data("mySplitText").words:"lines"==t.data("splitout")&&(c=t.data("mySplitText").lines);var p=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*s,l.y=l.y*s,r.add(d.staggerTo(c,h,l,p),i)}else o.delay=0,r.add(punchgs.TweenLite.to(t,h,o),i);r.addLabel(n,i),t.data("timeline",r)},q=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},Z=function(a,i){if(i.cd=0,i.loop=0,i.stopAfterLoops!=e&&i.stopAfterLoops>-1?i.looptogo=i.stopAfterLoops:i.looptogo=9999999,i.stopAtSlide!=e&&i.stopAtSlide>-1?i.lastslidetoshow=i.stopAtSlide:i.lastslidetoshow=999,i.stopLoop="off",0==i.looptogo&&(i.stopLoop="on"),i.slideamount>1&&(0!=i.stopAfterLoops||1!=i.stopAtSlide)){var o=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:(o.css({visibility:"visible"}),o.data("tween").resume())),"on"==i.hideTimerBar&&o.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:n,delay:1}))),"on"==i.hideTimerBar&&e.css({visibility:"hidden"})}),a.on("nulltimer",function(){o.data("tween").pause(0),"on"==i.hideTimerBar&&o.css({visibility:"hidden"})});var n=function(){0==t("body").find(a).length&&(q(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):o.data("tween").restart(),z(a,i)};o.data("tween",punchgs.TweenLite.fromTo(o,i.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:n,delay:1})),o.data("opt",i),a.hover(function(){if("on"==i.onHoverStop&&!N()){a.trigger("stoptimer"),a.trigger("revolution.slide.onpause");var o=a.find(">ul >li:eq("+i.next+") .slotholder");o.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 o=a.find(">ul >li:eq("+i.next+") .slotholder");o.find(".defaultimg").each(function(){var a=t(this);a.data("kenburn")!=e&&a.data("kenburn").play()})}})}},N=function(){var t=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"],e=!1;for(i in t)navigator.userAgent.split(t[i]).length>1&&(e=!0);return e},U=function(t,e,a){var i=e.data("owidth"),o=e.data("oheight");if(i/o>a.width/a.height){var n=a.container.width()/i,s=o*n,r=s/a.container.height()*t;return t*=100/r,r=100,t=t,t+"% "+r+"% 1"}var n=a.container.width()/i,s=o*n,r=s/a.container.height()*t;return t+"% "+r+"%"},G=function(a,i,o,n){try{a.find(">ul:first-child >li:eq("+i.act+")")}catch(s){a.find(">ul:first-child >li:eq(1)")}i.lastslide=i.act;var r=a.find(">ul:first-child >li:eq("+i.next+")"),l=r.find(".slotholder"),h=l.data("bgposition"),c=l.data("bgpositionend"),p=l.data("zoomstart")/100,f=l.data("zoomend")/100,u=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),f==e&&(f=1),u==e&&(u=0),g==e&&(g=0),1>p&&(p=1),1>f&&(f=1);var C=new Object;C.w=parseInt(y.split(" ")[0],0),C.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('<div class="kenburnimg" style="position:absolute;z-index:1;width:100%;height:100%;top:0px;left:0px;"><img src="'+e.attr("src")+'" style="-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position:absolute;width:'+C.w+"%;height:"+C.h+'%;"></div>'):l.find(".kenburnimg img").css({width:C.w+"%",height:C.h+"%"});var a=l.find(".kenburnimg img"),o=$(i,h,m,a,L),s=$(i,c,v,a,L);if(L&&(o.w=x/100,s.w=T/100),n){punchgs.TweenLite.set(a,{autoAlpha:0,transformPerspective:1200,transformOrigin:"0% 0%",top:0,left:0,scale:o.w,x:o.x,y:o.y});var r=o.w,p=r*a.width()-i.width,f=r*a.height()-i.height,u=Math.abs(o.x/p*100),y=Math.abs(o.y/f*100);0==f&&(y=0),0==p&&(u=0),e.data("bgposition",u+"% "+y+"%"),d(8)||e.data("currotate",J(a)),d(8)||e.data("curscale",C.w*r+"%  "+(C.h*r+"%")),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:o.w,x:o.x,y:o.y},{autoAlpha:1,rotationZ:g,ease:w,x:s.x,y:s.y,scale:s.w,onUpdate:function(){var t=a[0]._gsTransform.scaleX,o=t*a.width()-i.width,n=t*a.height()-i.height,s=Math.abs(a[0]._gsTransform.x/o*100),r=Math.abs(a[0]._gsTransform.y/n*100);0==n&&(r=0),0==o&&(s=0),e.data("bgposition",s+"% "+r+"%"),d(8)||e.data("currotate",J(a)),d(8)||e.data("curscale",C.w*t+"%  "+(C.h*t+"%"))}}))})},$=function(t,e,a,i,o){var n=new Object;switch(o?n.w=parseInt(a.split(" ")[1],0)/100:n.w=parseInt(a.split(" ")[0],0)/100,e){case"left top":case"top left":n.x=0,n.y=0;break;case"center top":case"top center":n.x=((0-i.width())*n.w+parseInt(t.width,0))/2,n.y=0;break;case"top right":case"right top":n.x=(0-i.width())*n.w+parseInt(t.width,0),n.y=0;break;case"center left":case"left center":n.x=0,n.y=((0-i.height())*n.w+parseInt(t.height,0))/2;break;case"center center":n.x=((0-i.width())*n.w+parseInt(t.width,0))/2,n.y=((0-i.height())*n.w+parseInt(t.height,0))/2;break;case"center right":case"right center":n.x=(0-i.width())*n.w+parseInt(t.width,0),n.y=((0-i.height())*n.w+parseInt(t.height,0))/2;break;case"bottom left":case"left bottom":n.x=0,n.y=(0-i.height())*n.w+parseInt(t.height,0);break;case"bottom center":case"center bottom":n.x=((0-i.width())*n.w+parseInt(t.width,0))/2,n.y=(0-i.height())*n.w+parseInt(t.height,0);break;case"bottom right":case"right bottom":n.x=(0-i.width())*n.w+parseInt(t.width,0),n.y=(0-i.height())*n.w+parseInt(t.height,0)}return n},J=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],o=a[1],n=Math.round(Math.atan2(o,i)*(180/Math.PI));else var n=0;return 0>n?n+=360:n},Q=function(a,i){try{var o=a.find(">ul:first-child >li:eq("+i.act+")")}catch(n){var o=a.find(">ul:first-child >li:eq(1)")}i.lastslide=i.act;var s=a.find(">ul:first-child >li:eq("+i.next+")");o.find(".slotholder"),s.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})})},K=function(e,a){return N()&&"on"==a.parallaxDisableOnMobile?!1:(e.find(">ul:first-child >li").each(function(){for(var e=t(this),i=1;10>=i;i++)e.find(".rs-parallaxlevel-"+i).each(function(){var e=t(this);e.wrap('<div style="position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:'+e.css("zIndex")+'" class="tp-parallax-container" data-parallaxlevel="'+a.parallaxLevels[i-1]+'"></div>')})}),("mouse"==a.parallax||"scroll+mouse"==a.parallax||"mouse+scroll"==a.parallax)&&(e.mouseenter(function(t){var a=e.find(".current-sr-slide-visible"),i=e.offset().top,o=e.offset().left,n=t.pageX-o,s=t.pageY-i;a.data("enterx",n),a.data("entery",s)}),e.on("mousemove.hoverdir, mouseleave.hoverdir",function(i){var o=e.find(".current-sr-slide-visible");switch(i.type){case"mousemove":var n=e.offset().top,s=e.offset().left,r=o.data("enterx"),d=o.data("entery"),l=r-(i.pageX-s),h=d-(i.pageY-n);o.find(".tp-parallax-container").each(function(){var e=t(this),i=parseInt(e.data("parallaxlevel"),0)/100,o=l*i,n=h*i;"scroll+mouse"==a.parallax||"mouse+scroll"==a.parallax?punchgs.TweenLite.to(e,.4,{force3D:"auto",x:o,ease:punchgs.Power3.easeOut,overwrite:"all"}):punchgs.TweenLite.to(e,.4,{force3D:"auto",x:o,y:n,ease:punchgs.Power3.easeOut,overwrite:"all"})});break;case"mouseleave":o.find(".tp-parallax-container").each(function(){var e=t(this);"scroll+mouse"==a.parallax||"mouse+scroll"==a.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})})}}),N()&&(window.ondeviceorientation=function(a){var i=Math.round(a.beta||0),o=Math.round(a.gamma||0),n=e.find(".current-sr-slide-visible");if(t(window).width()>t(window).height()){var s=o;o=i,i=s}var r=360/e.width()*o,d=180/e.height()*i;n.find(".tp-parallax-container").each(function(){var e=t(this),a=parseInt(e.data("parallaxlevel"),0)/100,i=r*a,o=d*a;punchgs.TweenLite.to(e,.2,{force3D:"auto",x:i,y:o,ease:punchgs.Power3.easeOut})})})),void(("scroll"==a.parallax||"scroll+mouse"==a.parallax||"mouse+scroll"==a.parallax)&&t(window).on("scroll",function(t){tt(e,a)})))},tt=function(e,a){if(N()&&"on"==a.parallaxDisableOnMobile)return!1;var i=e.offset().top,o=t(window).scrollTop(),n=i+e.height()/2,s=i+e.height()/2-o,r=t(window).height()/2,d=r-s;r>n&&(d-=r-n);e.find(".current-sr-slide-visible");if(e.find(".tp-parallax-container").each(function(e){var a=t(this),i=parseInt(a.data("parallaxlevel"),0)/100,o=d*i;a.data("parallaxoffset",o),punchgs.TweenLite.to(a,.2,{force3D:"auto",y:o,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})}},et=function(a,i){var o=a.parent();("thumb"==i.navigationType||"both"==i.navsecond)&&o.append('<div class="tp-bullets tp-thumbs '+i.navigationStyle+'"><div class="tp-mask"><div class="tp-thumbcontainer"></div></div></div>');var n=o.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),s=n.parent();s.width(i.thumbWidth*i.thumbAmount),s.height(i.thumbHeight),s.parent().width(i.thumbWidth*i.thumbAmount),s.parent().height(i.thumbHeight),a.find(">ul:first >li").each(function(t){var o=a.find(">ul:first >li:eq("+t+")"),s=o.find(".defaultimg").css("backgroundColor");if(o.data("thumb")!=e)var r=o.data("thumb");else var r=o.find("img:first").attr("src");n.append('<div class="bullet thumb" style="background-color:'+s+";position:relative;width:"+i.thumbWidth+"px;height:"+i.thumbHeight+"px;background-image:url("+r+') !important;background-size:cover;background-position:center center;"></div>');n.find(".bullet:first")});var r=10;n.find(".bullet").each(function(e){var o=t(this);e==i.slideamount-1&&o.addClass("last"),0==e&&o.addClass("first"),o.width(i.thumbWidth),o.height(i.thumbHeight),r<o.outerWidth(!0)&&(r=o.outerWidth(!0)),o.click(function(){0==i.transition&&o.index()!=i.act&&(i.next=o.index(),l(i,a))})});var d=r*a.find(">ul:first >li").length,h=n.parent().width();i.thumbWidth=r,d>h&&(t(document).mousemove(function(e){t("body").data("mousex",e.pageX)}),n.parent().mouseenter(function(){var e=t(this);e.addClass("over");var i=e.offset(),o=t("body").data("mousex")-i.left,n=e.width(),s=e.find(".bullet:first").outerWidth(!0),r=s*a.find(">ul:first >li").length,d=r-n+15,l=d/n;o-=30;var h=0-o*l;h>0&&(h=0),0-r+n>h&&(h=0-r+n),it(e,h,200)}),n.parent().mousemove(function(){var e=t(this),i=e.offset(),o=t("body").data("mousex")-i.left,n=e.width(),s=e.find(".bullet:first").outerWidth(!0),r=s*a.find(">ul:first >li").length-1,d=r-n+15,l=d/n;o-=3,6>o&&(o=0),o+3>n-6&&(o=n);var h=0-o*l;h>0&&(h=0),0-r+n>h&&(h=0-r+n),it(e,h,0)}),n.parent().mouseleave(function(){var e=t(this);e.removeClass("over"),at(a)}))},at=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)),o=a.find(".bullet.selected").index()*i,n=a.width(),i=a.find(".bullet:first").outerWidth(!0),s=i*t.find(">ul:first >li").length,r=0-o;r>0&&(r=0),0-s+n>r&&(r=0-s+n),a.hasClass("over")||it(a,r,200)},it=function(t,e,a){punchgs.TweenLite.to(t.find(".tp-thumbcontainer"),.2,{force3D:"auto",left:e,ease:punchgs.Power3.easeOut,overwrite:"auto"})}}(jQuery);
// Generated by CoffeeScript 1.6.2
/*
jQuery Waypoints - v2.0.4
Copyright (c) 2011-2014 Caleb Troughton
Dual licensed under the MIT license and GPL license.
https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt
*/
(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++){if(e in this&&this[e]===t)return e}return-1},e=[].slice;(function(t,e){if(typeof define==="function"&&define.amd){return define("waypoints",["jquery"],function(n){return e(n,t)})}else{return e(t.jQuery,t)}})(this,function(n,r){var i,o,l,s,f,u,c,a,h,d,p,y,v,w,g,m;i=n(r);a=t.call(r,"ontouchstart")>=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;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=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;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=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(e<n.length-1){return t.push(n[e+1])}})},_traverse:function(t,e,i){var o,l;if(t==null){t="vertical"}if(e==null){e=r}l=h.aggregate(e);o=[];this.each(function(){var e;e=n.inArray(this,l[t]);return i(o,e,l[t])});return this.pushStack(o)},_invoke:function(t){this.each(function(){var e;e=l.getWaypointsByElement(this);return n.each(e,function(e,n){n[t]();return true})});return this}};n.fn[g]=function(){var t,r;r=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(d[r]){return d[r].apply(this,t)}else if(n.isFunction(r)){return d.init.apply(this,arguments)}else if(n.isPlainObject(r)){return d.init.apply(this,[null,r])}else if(!r){return n.error("jQuery Waypoints needs a callback function or handler option.")}else{return n.error("The "+r+" method does not exist in jQuery Waypoints.")}};n.fn[g].defaults={context:r,continuous:true,enabled:true,horizontal:false,offset:0,triggerOnce:false};h={refresh:function(){return n.each(c,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return(t=r.innerHeight)!=null?t:i.height()},aggregate:function(t){var e,r,i;e=s;if(t){e=(i=c[n(t)[0][u]])!=null?i.waypoints:void 0}if(!e){return[]}r={horizontal:[],vertical:[]};n.each(r,function(t,i){n.each(e[t],function(t,e){return i.push(e)});i.sort(function(t,e){return t.offset-e.offset});r[t]=n.map(i,function(t){return t.element});return r[t]=n.unique(r[t])});return r},above:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset>t.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.load(function(){return n[m]("refresh")})})}).call(this);
/*! WOW - v0.1.6 - 2014-03-19
* Copyright (c) 2014 Matthieu Aussaguel; Licensed MIT */(function(){var a,b=function(a,b){return function(){return a.apply(b,arguments)}};a=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in a)d=a[c],null!=d&&(b[c]=d);return b},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a}(),this.WOW=function(){function c(a){null==a&&(a={}),this.scrollCallback=b(this.scrollCallback,this),this.scrollHandler=b(this.scrollHandler,this),this.start=b(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults)}return c.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0},c.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():document.addEventListener("DOMContentLoaded",this.start)},c.prototype.start=function(){var a,b,c,d;if(this.boxes=this.element.getElementsByClassName(this.config.boxClass),this.boxes.length){if(this.disabled())return this.resetStyle();for(d=this.boxes,b=0,c=d.length;c>b;b++)a=d[b],this.applyStyle(a,!0);return window.addEventListener("scroll",this.scrollHandler,!1),window.addEventListener("resize",this.scrollHandler,!1),this.interval=setInterval(this.scrollCallback,50)}},c.prototype.stop=function(){return window.removeEventListener("scroll",this.scrollHandler,!1),window.removeEventListener("resize",this.scrollHandler,!1),null!=this.interval?clearInterval(this.interval):void 0},c.prototype.show=function(a){return this.applyStyle(a),a.className=""+a.className+" "+this.config.animateClass},c.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),a.setAttribute("style",this.customStyle(b,d,c,e))},c.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.setAttribute("style","visibility: visible;"));return e},c.prototype.customStyle=function(a,b,c,d){var e;return e=a?"visibility: hidden; -webkit-animation-name: none; -moz-animation-name: none; animation-name: none;":"visibility: visible;",b&&(e+="-webkit-animation-duration: "+b+"; -moz-animation-duration: "+b+"; animation-duration: "+b+";"),c&&(e+="-webkit-animation-delay: "+c+"; -moz-animation-delay: "+c+"; animation-delay: "+c+";"),d&&(e+="-webkit-animation-iteration-count: "+d+"; -moz-animation-iteration-count: "+d+"; animation-iteration-count: "+d+";"),e},c.prototype.scrollHandler=function(){return this.scrolled=!0},c.prototype.scrollCallback=function(){var a;return this.scrolled&&(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),!this.boxes.length)?this.stop():void 0},c.prototype.offsetTop=function(a){var b;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},c.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+this.element.clientHeight-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},c.prototype.util=function(){return this._util||(this._util=new a)},c.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},c}()}).call(this);
/*!
 * Bootstrap v3.1.0 (http://getbootstrap.com)
 * Copyright 2011-2014 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.isLoading=!1};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",f.resetText||d.data("resetText",d[e]()),d[e](f[b]||this.options[b]),setTimeout(a.proxy(function(){"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},b.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}a&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});return this.$element.trigger(j),j.isDefaultPrevented()?void 0:(this.sliding=!0,f&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),f&&this.cycle(),this)};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);!e&&f.toggle&&"show"==c&&(c=!c),e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(b){a(d).remove(),a(e).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",b);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;f.toggleClass("open").trigger("shown.bs.dropdown",h),e.focus()}return!1}},f.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var f=c(d),g=f.hasClass("open");if(!g||g&&27==b.keyCode)return 27==b.which&&f.find(e).focus(),d.click();var h=" li:not(.divider):visible a",i=f.find("[role=menu]"+h+", [role=listbox]"+h);if(i.length){var j=i.index(i.filter(":focus"));38==b.keyCode&&j>0&&j--,40==b.keyCode&&j<i.length-1&&j++,~j||(j=0),i.eq(j).focus()}}}};var g=a.fn.dropdown;a.fn.dropdown=function(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new f(this)),"string"==typeof b&&d[b].call(c)})},a.fn.dropdown.Constructor=f,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=g,this},a(document).on("click.bs.dropdown.data-api",b).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",e,f.prototype.toggle).on("keydown.bs.dropdown.data-api",e+", [role=menu], [role=listbox]",f.prototype.keydown)}(jQuery),+function(a){"use strict";var b=function(b,c){this.options=c,this.$element=a(b),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this[this.isShown?"hide":"show"](a)},b.prototype.show=function(b){var c=this,d=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(d),this.isShown||d.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass("fade");c.$element.parent().length||c.$element.appendTo(document.body),c.$element.show().scrollTop(0),d&&c.$element[0].offsetWidth,c.$element.addClass("in").attr("aria-hidden",!1),c.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:b});d?c.$element.find(".modal-dialog").one(a.support.transition.end,function(){c.$element.focus().trigger(e)}).emulateTransitionEnd(300):c.$element.focus().trigger(e)}))},b.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one(a.support.transition.end,a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},b.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.focus()},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.removeBackdrop(),a.$element.trigger("hidden.bs.modal")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(b){var c=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var d=a.support.transition&&c;if(this.$backdrop=a('<div class="modal-backdrop '+c+'" />').appendTo(document.body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),d&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;d?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},b.DEFAULTS,e.data(),"object"==typeof c&&c);f||e.data("bs.modal",f=new b(this,g)),"string"==typeof c?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());c.is("a")&&b.preventDefault(),e.modal(f,this).one("hide",function(){c.is(":visible")&&c.focus()})}),a(document).on("show.bs.modal",".modal",function(){a(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){a(document.body).removeClass("modal-open")})}(jQuery),+function(a){"use strict";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};b.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show()},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(b),b.isDefaultPrevented())return;var c=this,d=this.tip();this.setContent(),this.options.animation&&d.addClass("fade");var e="function"==typeof this.options.placement?this.options.placement.call(this,d[0],this.$element[0]):this.options.placement,f=/\s?auto?\s?/i,g=f.test(e);g&&(e=e.replace(f,"")||"top"),d.detach().css({top:0,left:0,display:"block"}).addClass(e),this.options.container?d.appendTo(this.options.container):d.insertAfter(this.$element);var h=this.getPosition(),i=d[0].offsetWidth,j=d[0].offsetHeight;if(g){var k=this.$element.parent(),l=e,m=document.documentElement.scrollTop||document.body.scrollTop,n="body"==this.options.container?window.innerWidth:k.outerWidth(),o="body"==this.options.container?window.innerHeight:k.outerHeight(),p="body"==this.options.container?0:k.offset().left;e="bottom"==e&&h.top+h.height+j-m>o?"top":"top"==e&&h.top-m-j<0?"bottom":"right"==e&&h.right+i>n?"left":"left"==e&&h.left-i<p?"right":e,d.removeClass(l).addClass(e)}var q=this.getCalculatedOffset(e,h,i,j);this.applyPlacement(q,e),this.hoverState=null;var r=function(){c.$element.trigger("shown.bs."+c.type)};a.support.transition&&this.$tip.hasClass("fade")?d.one(a.support.transition.end,r).emulateTransitionEnd(150):r()}},b.prototype.applyPlacement=function(b,c){var d,e=this.tip(),f=e[0].offsetWidth,g=e[0].offsetHeight,h=parseInt(e.css("margin-top"),10),i=parseInt(e.css("margin-left"),10);isNaN(h)&&(h=0),isNaN(i)&&(i=0),b.top=b.top+h,b.left=b.left+i,a.offset.setOffset(e[0],a.extend({using:function(a){e.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),e.addClass("in");var j=e[0].offsetWidth,k=e[0].offsetHeight;if("top"==c&&k!=g&&(d=!0,b.top=b.top+g-k),/bottom|top/.test(c)){var l=0;b.left<0&&(l=-2*b.left,b.left=0,e.offset(b),j=e[0].offsetWidth,k=e[0].offsetHeight),this.replaceArrow(l-f+j,j,"left")}else this.replaceArrow(k-g,k,"top");d&&e.offset(b)},b.prototype.replaceArrow=function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+"%":"")},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},b.prototype.hide=function(){function b(){"in"!=c.hoverState&&d.detach(),c.$element.trigger("hidden.bs."+c.type)}var c=this,d=this.tip(),e=a.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(d.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d.one(a.support.transition.end,b).emulateTransitionEnd(150):b(),this.hoverState=null,this)},b.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},b.prototype.hasContent=function(){return this.getTitle()},b.prototype.getPosition=function(){var b=this.$element[0];return a.extend({},"function"==typeof b.getBoundingClientRect?b.getBoundingClientRect():{width:b.offsetWidth,height:b.offsetHeight},this.$element.offset())},b.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},b.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},b.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},b.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},b.prototype.enable=function(){this.enabled=!0},b.prototype.disable=function(){this.enabled=!1},b.prototype.toggleEnabled=function(){this.enabled=!this.enabled},b.prototype.toggle=function(b){var c=b?a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;c.tip().hasClass("in")?c.leave(c):c.enter(c)},b.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof c&&c;(e||"destroy"!=c)&&(e||d.data("bs.tooltip",e=new b(this,f)),"string"==typeof c&&e[c]())})},a.fn.tooltip.Constructor=b,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(jQuery),+function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");b.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;(e||"destroy"!=c)&&(e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]())})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(a(c).is("body")?window:c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);{var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})}},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);if(g&&b<=e[0])return g!=(a=f[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(b.RESET).addClass("affix");var a=this.$window.scrollTop(),c=this.$element.offset();return this.pinnedOffset=c.top-a},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"top"==this.affixed&&(e.top+=d),"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top(this.$element)),"function"==typeof h&&(h=f.bottom(this.$element));var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;if(this.affixed!==i){this.unpin&&this.$element.css("top","");var j="affix"+(i?"-"+i:""),k=a.Event(j+".bs.affix");this.$element.trigger(k),k.isDefaultPrevented()||(this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(b.RESET).addClass(j).trigger(a.Event(j.replace("affix","affixed"))),"bottom"==i&&this.$element.offset({top:c-h-this.$element.height()}))}}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(jQuery);
/**
 * BxSlider v4.1.1 - Fully loaded, responsive content slider
 * http://bxslider.com
 *
 * Copyright 2013, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com
 * Written while drinking Belgian ales and listening to jazz
 *
 * Released under the MIT license - http://opensource.org/licenses/MIT
 */
!function(t){var e={},s={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){}};t.fn.bxSlider=function(n){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},s,n),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=r.children(o.settings.slideSelector),o.children.length<o.settings.minSlides&&(o.settings.minSlides=o.children.length),o.children.length<o.settings.maxSlides&&(o.settings.maxSlides=o.children.length),o.settings.randomStart&&(o.settings.startSlide=Math.floor(Math.random()*o.children.length)),o.active={index:o.settings.startSlide},o.carousel=o.settings.minSlides>1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages="all"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp="vertical"==o.settings.mode?"top":"left",o.usingCSS=o.settings.useCSS&&"fade"!=o.settings.mode&&function(){var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssPrefix=e[i].replace("Perspective","").toLowerCase(),o.animProp="-"+o.cssPrefix+"-transform",!0;return!1}(),"vertical"==o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),r.data("origStyle",r.attr("style")),r.children(o.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),c()},c=function(){r.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),o.viewport=r.parent(),o.loader=t('<div class="bx-loading" />'),o.viewport.prepend(o.loader),r.css({width:"horizontal"==o.settings.mode?100*o.children.length+215+"%":"auto",position:"relative"}),o.usingCSS&&o.settings.easing?r.css("-"+o.cssPrefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),f(),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxWidth:v()}),o.settings.pager||o.viewport.parent().css({margin:"0 auto 0px"}),o.children.css({"float":"horizontal"==o.settings.mode?"left":"none",listStyle:"none",position:"relative"}),o.children.css("width",u()),"horizontal"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginRight",o.settings.slideMargin),"vertical"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginBottom",o.settings.slideMargin),"fade"==o.settings.mode&&(o.children.css({position:"absolute",zIndex:0,display:"none"}),o.children.eq(o.settings.startSlide).css({zIndex:50,display:"block"})),o.controls.el=t('<div class="bx-controls" />'),o.settings.captions&&P(),o.active.last=o.settings.startSlide==x()-1,o.settings.video&&r.fitVids();var e=o.children.eq(o.settings.startSlide);"all"==o.settings.preloadImages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&T(),o.settings.controls&&C(),o.settings.auto&&o.settings.autoControls&&E(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var s=e.find("img, iframe").length;if(0==s)return i(),void 0;var n=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++n==s&&i()}).each(function(){this.complete&&t(this).load()})})},h=function(){if(o.settings.infiniteLoop&&"fade"!=o.settings.mode&&!o.settings.ticker){var e="vertical"==o.settings.mode?o.settings.minSlides:o.settings.maxSlides,i=o.children.slice(0,e).clone().addClass("bx-clone"),s=o.children.slice(-e).clone().addClass("bx-clone");r.append(i).prepend(s)}o.loader.remove(),S(),"vertical"==o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(p()),r.redrawSlider(),o.settings.onSliderLoad(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind("resize",B),o.settings.auto&&o.settings.autoStart&&H(),o.settings.ticker&&L(),o.settings.pager&&I(o.settings.startSlide),o.settings.controls&&W(),o.settings.touchEnabled&&!o.settings.ticker&&O()},p=function(){var e=0,s=t();if("vertical"==o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var n=1==o.settings.moveSlides?o.active.index:o.active.index*m();for(s=o.children.eq(n),i=1;i<=o.settings.maxSlides-1;i++)s=n+i>=o.children.length?s.add(o.children.eq(i-1)):s.add(o.children.eq(n+i))}else s=o.children.eq(o.active.index);else s=o.children;return"vertical"==o.settings.mode?(s.each(function(){e+=t(this).outerHeight()}),o.settings.slideMargin>0&&(e+=o.settings.slideMargin*(o.settings.minSlides-1))):e=Math.max.apply(Math,s.map(function(){return t(this).outerHeight(!1)}).get()),e},v=function(){var t="100%";return o.settings.slideWidth>0&&(t="horizontal"==o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),t},u=function(){var t=o.settings.slideWidth,e=o.viewport.width();return 0==o.settings.slideWidth||o.settings.slideWidth>e&&!o.carousel||"vertical"==o.settings.mode?t=e:o.settings.maxSlides>1&&"horizontal"==o.settings.mode&&(e>o.maxThreshold||e<o.minThreshold&&(t=(e-o.settings.slideMargin*(o.settings.minSlides-1))/o.settings.minSlides)),t},f=function(){var t=1;if("horizontal"==o.settings.mode&&o.settings.slideWidth>0)if(o.viewport.width()<o.minThreshold)t=o.settings.minSlides;else if(o.viewport.width()>o.maxThreshold)t=o.settings.maxSlides;else{var e=o.children.first().width();t=Math.floor(o.viewport.width()/e)}else"vertical"==o.settings.mode&&(t=o.settings.minSlides);return t},x=function(){var t=0;if(o.settings.moveSlides>0)if(o.settings.infiniteLoop)t=o.children.length/m();else for(var e=0,i=0;e<o.children.length;)++t,e=i+f(),i+=o.settings.moveSlides<=f()?o.settings.moveSlides:f();else t=Math.ceil(o.children.length/f());return t},m=function(){return o.settings.moveSlides>0&&o.settings.moveSlides<=f()?o.settings.moveSlides:f()},S=function(){if(o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop){if("horizontal"==o.settings.mode){var t=o.children.last(),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),"reset",0)}else if("vertical"==o.settings.mode){var i=o.children.length-o.settings.minSlides,e=o.children.eq(i).position();b(-e.top,"reset",0)}}else{var e=o.children.eq(o.active.index*m()).position();o.active.index==x()-1&&(o.active.last=!0),void 0!=e&&("horizontal"==o.settings.mode?b(-e.left,"reset",0):"vertical"==o.settings.mode&&b(-e.top,"reset",0))}},b=function(t,e,i,s){if(o.usingCSS){var n="vertical"==o.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";r.css("-"+o.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==e?(r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),D()})):"reset"==e?r.css(o.animProp,n):"ticker"==e&&(r.css("-"+o.cssPrefix+"-transition-timing-function","linear"),r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(s.resetValue,"reset",0),N()}))}else{var a={};a[o.animProp]=t,"slide"==e?r.animate(a,i,o.settings.easing,function(){D()}):"reset"==e?r.css(o.animProp,t):"ticker"==e&&r.animate(a,speed,"linear",function(){b(s.resetValue,"reset",0),N()})}},w=function(){for(var e="",i=x(),s=0;i>s;s++){var n="";o.settings.buildPager&&t.isFunction(o.settings.buildPager)?(n=o.settings.buildPager(s),o.pagerEl.addClass("bx-custom-pager")):(n=s+1,o.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+s+'" class="bx-pager-link">'+n+"</a></div>"}o.pagerEl.html(e)},T=function(){o.settings.pagerCustom?o.pagerEl=t(o.settings.pagerCustom):(o.pagerEl=t('<div class="bx-pager" />'),o.settings.pagerSelector?t(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass("bx-has-pager").append(o.pagerEl),w()),o.pagerEl.delegate("a","click",q)},C=function(){o.controls.next=t('<a class="bx-next" href="">'+o.settings.nextText+"</a>"),o.controls.prev=t('<a class="bx-prev" href="">'+o.settings.prevText+"</a>"),o.controls.next.bind("click",y),o.controls.prev.bind("click",z),o.settings.nextSelector&&t(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&t(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=t('<div class="bx-controls-direction" />'),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))},E=function(){o.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+o.settings.startText+"</a></div>"),o.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+o.settings.stopText+"</a></div>"),o.controls.autoEl=t('<div class="bx-controls-auto" />'),o.controls.autoEl.delegate(".bx-start","click",k),o.controls.autoEl.delegate(".bx-stop","click",M),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?t(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),A(o.settings.autoStart?"stop":"start")},P=function(){o.children.each(function(){var e=t(this).find("img:first").attr("title");void 0!=e&&(""+e).length&&t(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},y=function(t){o.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},z=function(t){o.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},k=function(t){r.startAuto(),t.preventDefault()},M=function(t){r.stopAuto(),t.preventDefault()},q=function(e){o.settings.auto&&r.stopAuto();var i=t(e.currentTarget),s=parseInt(i.attr("data-slide-index"));s!=o.active.index&&r.goToSlide(s),e.preventDefault()},I=function(e){var i=o.children.length;return"short"==o.settings.pagerType?(o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i),void 0):(o.pagerEl.find("a").removeClass("active"),o.pagerEl.each(function(i,s){t(s).find("a").eq(e).addClass("active")}),void 0)},D=function(){if(o.settings.infiniteLoop){var t="";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),"horizontal"==o.settings.mode?b(-t.left,"reset",0):"vertical"==o.settings.mode&&b(-t.top,"reset",0)}o.working=!1,o.settings.onSlideAfter(o.children.eq(o.active.index),o.oldIndex,o.active.index)},A=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find("a").removeClass("active"),o.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},W=function(){1==x()?(o.controls.prev.addClass("disabled"),o.controls.next.addClass("disabled")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0==o.active.index?(o.controls.prev.addClass("disabled"),o.controls.next.removeClass("disabled")):o.active.index==x()-1?(o.controls.next.addClass("disabled"),o.controls.prev.removeClass("disabled")):(o.controls.prev.removeClass("disabled"),o.controls.next.removeClass("disabled")))},H=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):r.startAuto(),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},L=function(){var e=0;if("next"==o.settings.autoDirection)r.append(o.children.clone().addClass("bx-clone"));else{r.prepend(o.children.clone().addClass("bx-clone"));var i=o.children.first().position();e="horizontal"==o.settings.mode?-i.left:-i.top}b(e,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&!o.usingCSS&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+="horizontal"==o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});var i=o.settings.speed/e,s="horizontal"==o.settings.mode?"left":"top",n=i*(e-Math.abs(parseInt(r.css(s))));N(n)}),N()},N=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};"next"==o.settings.autoDirection?e=r.find(".bx-clone").first().position():i=o.children.first().position();var s="horizontal"==o.settings.mode?-e.left:-e.top,n="horizontal"==o.settings.mode?-i.left:-i.top,a={resetValue:n};b(s,"ticker",speed,a)},O=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart",X)},X=function(t){if(o.working)t.preventDefault();else{o.touch.originalPos=r.position();var e=t.originalEvent;o.touch.start.x=e.changedTouches[0].pageX,o.touch.start.y=e.changedTouches[0].pageY,o.viewport.bind("touchmove",Y),o.viewport.bind("touchend",V)}},Y=function(t){var e=t.originalEvent,i=Math.abs(e.changedTouches[0].pageX-o.touch.start.x),s=Math.abs(e.changedTouches[0].pageY-o.touch.start.y);if(3*i>s&&o.settings.preventDefaultSwipeX?t.preventDefault():3*s>i&&o.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!=o.settings.mode&&o.settings.oneToOneTouch){var n=0;if("horizontal"==o.settings.mode){var r=e.changedTouches[0].pageX-o.touch.start.x;n=o.touch.originalPos.left+r}else{var r=e.changedTouches[0].pageY-o.touch.start.y;n=o.touch.originalPos.top+r}b(n,"reset",0)}},V=function(t){o.viewport.unbind("touchmove",Y);var e=t.originalEvent,i=0;if(o.touch.end.x=e.changedTouches[0].pageX,o.touch.end.y=e.changedTouches[0].pageY,"fade"==o.settings.mode){var s=Math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto())}else{var s=0;"horizontal"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,"reset",200):Math.abs(s)>=o.settings.swipeThreshold?(0>s?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,"reset",200)}o.viewport.unbind("touchend",V)},B=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawSlider())};return r.goToSlide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldIndex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onSlideBefore(o.children.eq(o.active.index),o.oldIndex,o.active.index),"next"==i?o.settings.onSlideNext(o.children.eq(o.active.index),o.oldIndex,o.active.index):"prev"==i&&o.settings.onSlidePrev(o.children.eq(o.active.index),o.oldIndex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&I(o.active.index),o.settings.controls&&W(),"fade"==o.settings.mode)o.settings.adaptiveHeight&&o.viewport.height()!=p()&&o.viewport.animate({height:p()},o.settings.adaptiveHeightSpeed),o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css("zIndex",51).fadeIn(o.settings.speed,function(){t(this).css("zIndex",50),D()});else{o.settings.adaptiveHeight&&o.viewport.height()!=p()&&o.viewport.animate({height:p()},o.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteLoop&&o.carousel&&o.active.last)if("horizontal"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerWidth()}else{var l=o.children.length-o.settings.minSlides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&"prev"==i){var d=1==o.settings.moveSlides?o.settings.maxSlides-m():(x()-1)*m()-(o.children.length-o.settings.maxSlides),a=r.children(".bx-clone").eq(d);n=a.position()}else if("next"==i&&0==o.active.index)n=r.find("> .bx-clone").eq(o.settings.maxSlides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if("undefined"!=typeof n){var g="horizontal"==o.settings.mode?-(n.left-s):-n.top;b(g,"slide",o.settings.speed)}}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var t=parseInt(o.active.index)+1;r.goToSlide(t,"next")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!=o.active.index){var t=parseInt(o.active.index)-1;r.goToSlide(t,"prev")}},r.startAuto=function(t){o.interval||(o.interval=setInterval(function(){"next"==o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&1!=t&&A("stop"))},r.stopAuto=function(t){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&1!=t&&A("start"))},r.getCurrentSlide=function(){return o.active.index},r.getSlideCount=function(){return o.children.length},r.redrawSlider=function(){o.children.add(r.find(".bx-clone")).outerWidth(u()),o.viewport.css("height",p()),o.settings.ticker||S(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),I(o.active.index))},r.destroySlider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.children.each(function(){void 0!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.pagerEl.remove(),t(".bx-caption",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).unbind("resize",B))},r.reloadSlider=function(t){void 0!=t&&(n=t),r.destroySlider(),d()},d(),this}}(jQuery);
/*!
	Colorbox v1.4.36 - 2014-02-01
	jQuery lightbox and modal window plugin
	(c) 2014 Jack Moore - http://www.jacklmoore.com/colorbox
	license: http://www.opensource.org/licenses/mit-license.php
*/
(function(e,t,i){function o(i,o,n){var r=t.createElement(i);return o&&(r.id=Z+o),n&&(r.style.cssText=n),e(r)}function n(){return i.innerHeight?i.innerHeight:e(i).height()}function r(e){var t=k.length,i=(z+e)%t;return 0>i?t+i:i}function h(e,t){return Math.round((/%/.test(e)?("x"===t?E.width():n())/100:1)*parseInt(e,10))}function l(e,t){return e.photo||e.photoRegex.test(t)}function s(e,t){return e.retinaUrl&&i.devicePixelRatio>1?t.replace(e.photoRegex,e.retinaSuffix):t}function a(e){"contains"in g[0]&&!g[0].contains(e.target)&&(e.stopPropagation(),g.focus())}function d(){var t,i=e.data(N,Y);null==i?(B=e.extend({},X),console&&console.log&&console.log("Error: cboxElement missing settings object")):B=e.extend({},i);for(t in B)e.isFunction(B[t])&&"on"!==t.slice(0,2)&&(B[t]=B[t].call(N));B.rel=B.rel||N.rel||e(N).data("rel")||"nofollow",B.href=B.href||e(N).attr("href"),B.title=B.title||N.title,"string"==typeof B.href&&(B.href=e.trim(B.href))}function c(i,o){e(t).trigger(i),lt.triggerHandler(i),e.isFunction(o)&&o.call(N)}function u(i){q||(N=i,d(),k=e(N),z=0,"nofollow"!==B.rel&&(k=e("."+et).filter(function(){var t,i=e.data(this,Y);return i&&(t=e(this).data("rel")||i.rel||this.rel),t===B.rel}),z=k.index(N),-1===z&&(k=k.add(N),z=k.length-1)),w.css({opacity:parseFloat(B.opacity),cursor:B.overlayClose?"pointer":"auto",visibility:"visible"}).show(),J&&g.add(w).removeClass(J),B.className&&g.add(w).addClass(B.className),J=B.className,B.closeButton?K.html(B.close).appendTo(y):K.appendTo("<div/>"),U||(U=$=!0,g.css({visibility:"hidden",display:"block"}),H=o(st,"LoadedContent","width:0; height:0; overflow:hidden"),y.css({width:"",height:""}).append(H),O=x.height()+C.height()+y.outerHeight(!0)-y.height(),_=b.width()+T.width()+y.outerWidth(!0)-y.width(),D=H.outerHeight(!0),A=H.outerWidth(!0),B.w=h(B.initialWidth,"x"),B.h=h(B.initialHeight,"y"),H.css({width:"",height:B.h}),Q.position(),c(tt,B.onOpen),P.add(L).hide(),g.focus(),B.trapFocus&&t.addEventListener&&(t.addEventListener("focus",a,!0),lt.one(rt,function(){t.removeEventListener("focus",a,!0)})),B.returnFocus&&lt.one(rt,function(){e(N).focus()})),m())}function f(){!g&&t.body&&(V=!1,E=e(i),g=o(st).attr({id:Y,"class":e.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),w=o(st,"Overlay").hide(),F=e([o(st,"LoadingOverlay")[0],o(st,"LoadingGraphic")[0]]),v=o(st,"Wrapper"),y=o(st,"Content").append(L=o(st,"Title"),S=o(st,"Current"),I=e('<button type="button"/>').attr({id:Z+"Previous"}),R=e('<button type="button"/>').attr({id:Z+"Next"}),M=o("button","Slideshow"),F),K=e('<button type="button"/>').attr({id:Z+"Close"}),v.append(o(st).append(o(st,"TopLeft"),x=o(st,"TopCenter"),o(st,"TopRight")),o(st,!1,"clear:left").append(b=o(st,"MiddleLeft"),y,T=o(st,"MiddleRight")),o(st,!1,"clear:left").append(o(st,"BottomLeft"),C=o(st,"BottomCenter"),o(st,"BottomRight"))).find("div div").css({"float":"left"}),W=o(st,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),P=R.add(I).add(S).add(M),e(t.body).append(w,g.append(v,W)))}function p(){function i(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),u(this))}return g?(V||(V=!0,R.click(function(){Q.next()}),I.click(function(){Q.prev()}),K.click(function(){Q.close()}),w.click(function(){B.overlayClose&&Q.close()}),e(t).bind("keydown."+Z,function(e){var t=e.keyCode;U&&B.escKey&&27===t&&(e.preventDefault(),Q.close()),U&&B.arrowKey&&k[1]&&!e.altKey&&(37===t?(e.preventDefault(),I.click()):39===t&&(e.preventDefault(),R.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+Z,"."+et,i):e("."+et).live("click."+Z,i)),!0):!1}function m(){var n,r,a,u=Q.prep,f=++at;$=!0,j=!1,N=k[z],d(),c(ht),c(it,B.onLoad),B.h=B.height?h(B.height,"y")-D-O:B.innerHeight&&h(B.innerHeight,"y"),B.w=B.width?h(B.width,"x")-A-_:B.innerWidth&&h(B.innerWidth,"x"),B.mw=B.w,B.mh=B.h,B.maxWidth&&(B.mw=h(B.maxWidth,"x")-A-_,B.mw=B.w&&B.w<B.mw?B.w:B.mw),B.maxHeight&&(B.mh=h(B.maxHeight,"y")-D-O,B.mh=B.h&&B.h<B.mh?B.h:B.mh),n=B.href,G=setTimeout(function(){F.show()},100),B.inline?(a=o(st).hide().insertBefore(e(n)[0]),lt.one(ht,function(){a.replaceWith(H.children())}),u(e(n))):B.iframe?u(" "):B.html?u(B.html):l(B,n)?(n=s(B,n),j=t.createElement("img"),e(j).addClass(Z+"Photo").bind("error",function(){B.title=!1,u(o(st,"Error").html(B.imgError))}).one("load",function(){var t;f===at&&(e.each(["alt","longdesc","aria-describedby"],function(t,i){var o=e(N).attr(i)||e(N).attr("data-"+i);o&&j.setAttribute(i,o)}),B.retinaImage&&i.devicePixelRatio>1&&(j.height=j.height/i.devicePixelRatio,j.width=j.width/i.devicePixelRatio),B.scalePhotos&&(r=function(){j.height-=j.height*t,j.width-=j.width*t},B.mw&&j.width>B.mw&&(t=(j.width-B.mw)/j.width,r()),B.mh&&j.height>B.mh&&(t=(j.height-B.mh)/j.height,r())),B.h&&(j.style.marginTop=Math.max(B.mh-j.height,0)/2+"px"),k[1]&&(B.loop||k[z+1])&&(j.style.cursor="pointer",j.onclick=function(){Q.next()}),j.style.width=j.width+"px",j.style.height=j.height+"px",setTimeout(function(){u(j)},1))}),setTimeout(function(){j.src=n},1)):n&&W.load(n,B.data,function(t,i){f===at&&u("error"===i?o(st,"Error").html(B.xhrError):e(this).contents())})}var w,g,v,y,x,b,T,C,k,E,H,W,F,L,S,M,R,I,K,P,B,O,_,D,A,N,z,j,U,$,q,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1},Y="colorbox",Z="cbox",et=Z+"Element",tt=Z+"_open",it=Z+"_load",ot=Z+"_complete",nt=Z+"_cleanup",rt=Z+"_closed",ht=Z+"_purge",lt=e("<a/>"),st="div",at=0,dt={},ct=function(){function e(){clearTimeout(h)}function t(){(B.loop||k[z+1])&&(e(),h=setTimeout(Q.next,B.slideshowSpeed))}function i(){M.html(B.slideshowStop).unbind(s).one(s,o),lt.bind(ot,t).bind(it,e),g.removeClass(l+"off").addClass(l+"on")}function o(){e(),lt.unbind(ot,t).unbind(it,e),M.html(B.slideshowStart).unbind(s).one(s,function(){Q.next(),i()}),g.removeClass(l+"on").addClass(l+"off")}function n(){r=!1,M.hide(),e(),lt.unbind(ot,t).unbind(it,e),g.removeClass(l+"off "+l+"on")}var r,h,l=Z+"Slideshow_",s="click."+Z;return function(){r?B.slideshow||(lt.unbind(nt,n),n()):B.slideshow&&k[1]&&(r=!0,lt.one(nt,n),B.slideshowAuto?i():o(),M.show())}}();e.colorbox||(e(f),Q=e.fn[Y]=e[Y]=function(t,i){var o=this;if(t=t||{},f(),p()){if(e.isFunction(o))o=e("<a/>"),t.open=!0;else if(!o[0])return o;i&&(t.onComplete=i),o.each(function(){e.data(this,Y,e.extend({},e.data(this,Y)||X,t))}).addClass(et),(e.isFunction(t.open)&&t.open.call(o)||t.open)&&u(o[0])}return o},Q.position=function(t,i){function o(){x[0].style.width=C[0].style.width=y[0].style.width=parseInt(g[0].style.width,10)-_+"px",y[0].style.height=b[0].style.height=T[0].style.height=parseInt(g[0].style.height,10)-O+"px"}var r,l,s,a=0,d=0,c=g.offset();if(E.unbind("resize."+Z),g.css({top:-9e4,left:-9e4}),l=E.scrollTop(),s=E.scrollLeft(),B.fixed?(c.top-=l,c.left-=s,g.css({position:"fixed"})):(a=l,d=s,g.css({position:"absolute"})),d+=B.right!==!1?Math.max(E.width()-B.w-A-_-h(B.right,"x"),0):B.left!==!1?h(B.left,"x"):Math.round(Math.max(E.width()-B.w-A-_,0)/2),a+=B.bottom!==!1?Math.max(n()-B.h-D-O-h(B.bottom,"y"),0):B.top!==!1?h(B.top,"y"):Math.round(Math.max(n()-B.h-D-O,0)/2),g.css({top:c.top,left:c.left,visibility:"visible"}),v[0].style.width=v[0].style.height="9999px",r={width:B.w+A+_,height:B.h+D+O,top:a,left:d},t){var u=0;e.each(r,function(e){return r[e]!==dt[e]?(u=t,void 0):void 0}),t=u}dt=r,t||g.css(r),g.dequeue().animate(r,{duration:t||0,complete:function(){o(),$=!1,v[0].style.width=B.w+A+_+"px",v[0].style.height=B.h+D+O+"px",B.reposition&&setTimeout(function(){E.bind("resize."+Z,Q.position)},1),i&&i()},step:o})},Q.resize=function(e){var t;U&&(e=e||{},e.width&&(B.w=h(e.width,"x")-A-_),e.innerWidth&&(B.w=h(e.innerWidth,"x")),H.css({width:B.w}),e.height&&(B.h=h(e.height,"y")-D-O),e.innerHeight&&(B.h=h(e.innerHeight,"y")),e.innerHeight||e.height||(t=H.scrollTop(),H.css({height:"auto"}),B.h=H.height()),H.css({height:B.h}),t&&H.scrollTop(t),Q.position("none"===B.transition?0:B.speed))},Q.prep=function(i){function n(){return B.w=B.w||H.width(),B.w=B.mw&&B.mw<B.w?B.mw:B.w,B.w}function h(){return B.h=B.h||H.height(),B.h=B.mh&&B.mh<B.h?B.mh:B.h,B.h}if(U){var a,d="none"===B.transition?0:B.speed;H.empty().remove(),H=o(st,"LoadedContent").append(i),H.hide().appendTo(W.show()).css({width:n(),overflow:B.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(y),W.hide(),e(j).css({"float":"none"}),a=function(){function i(){e.support.opacity===!1&&g[0].style.removeAttribute("filter")}var n,h,a=k.length,u="frameBorder",f="allowTransparency";U&&(h=function(){clearTimeout(G),F.hide(),c(ot,B.onComplete)},L.html(B.title).add(H).show(),a>1?("string"==typeof B.current&&S.html(B.current.replace("{current}",z+1).replace("{total}",a)).show(),R[B.loop||a-1>z?"show":"hide"]().html(B.next),I[B.loop||z?"show":"hide"]().html(B.previous),ct(),B.preloading&&e.each([r(-1),r(1)],function(){var i,o,n=k[this],r=e.data(n,Y);r&&r.href?(i=r.href,e.isFunction(i)&&(i=i.call(n))):i=e(n).attr("href"),i&&l(r,i)&&(i=s(r,i),o=t.createElement("img"),o.src=i)})):P.hide(),B.iframe?(n=o("iframe")[0],u in n&&(n[u]=0),f in n&&(n[f]="true"),B.scrolling||(n.scrolling="no"),e(n).attr({src:B.href,name:(new Date).getTime(),"class":Z+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",h).appendTo(H),lt.one(ht,function(){n.src="//about:blank"}),B.fastIframe&&e(n).trigger("load")):h(),"fade"===B.transition?g.fadeTo(d,1,i):i())},"fade"===B.transition?g.fadeTo(d,0,function(){Q.position(0,a)}):Q.position(d,a)}},Q.next=function(){!$&&k[1]&&(B.loop||k[z+1])&&(z=r(1),u(k[z]))},Q.prev=function(){!$&&k[1]&&(B.loop||z)&&(z=r(-1),u(k[z]))},Q.close=function(){U&&!q&&(q=!0,U=!1,c(nt,B.onCleanup),E.unbind("."+Z),w.fadeTo(B.fadeOut||0,0),g.stop().fadeTo(B.fadeOut||0,0,function(){g.add(w).css({opacity:1,cursor:"auto"}).hide(),c(ht),H.empty().remove(),setTimeout(function(){q=!1,c(rt,B.onClosed)},1)}))},Q.remove=function(){g&&(g.stop(),e.colorbox.close(),g.stop().remove(),w.remove(),q=!1,g=null,e("."+et).removeData(Y).removeClass(et),e(t).unbind("click."+Z))},Q.element=function(){return e(N)},Q.settings=X)})(jQuery,document,window);
/*!
* Animo JavaScript Library v1.0.0
* @author      : Rise Ledger
* @site        : http://riseledger.com
* @download    : http://riseledger.com/animation/animo.min.js
* @license     : Released under the MIT license
* @version     : 1.0.0 Official Release
* @copyright   : 2013
* @description : Use this library to animate the elements on page.
*/

function Animo() {
	
	rl = this;
	rl._addSupport(); // for older browsers

	arguments = arguments[0]; // for beta

	rl.opt = arguments; // passed object
	
	// default values
	rl.len = arguments.length; // object length
	rl._objInfo = new Array( rl.len ); // hold all info of each object
	rl._globalInfo = {
		delay : 0,
		length : 0,
		isDone : 0
	}; // hold global information, when to start animation, for how long
	
	// browser vendor
	rl.vendor = rl._setVendor();
	
	// 18 css3 properties, 2D || 3D Transform
	rl._css3Transforms = ["translate", "translateX", "translateY", "translateZ", "translate3d", "scale", "scaleX", "scaleY", "scaleZ", "scale3d", "rotate", "rotateX", "rotateY", "rotateZ", "rotate3d", "skew", "skewX", "skewY"];
	rl._specialProp = ["color", "background"]; // text-fade to be included in future
	
	for(var i = 0; i < rl.len; i++)
	{
		rl._objInfo[i] = {};
		rl._objInfo[i].isEnd = false;
		rl._objInfo[i].isDone = 0;
		rl._objInfo[i].isObj = (rl.opt[i].el.length == void 0) ? false : true;
		rl._objInfo[i].easing = rl.opt[i].easing || "linear";
		rl._objInfo[i].delay = rl.opt[i].delay || 0;
		rl._objInfo[i].loop = rl.opt[i].loop || 1; // -1 for infinite loop
		rl._objInfo[i].gap = rl.opt[i].gap || 0; // gap between stack execution in percentage
		rl._objInfo[i].callback = rl.opt[i].callback || false;	
		rl._objInfo[i].duration = rl.opt[i].duration || 1000;
		rl._objInfo[i].template = rl.opt[i].template;

		// objects info push, when start, end of animation for each element
		rl._objInfo[i].length = rl.opt[i].el.length || 1;	
		rl._objInfo[i].els = new Array( rl._objInfo[i].length );
		for(var j = 0; j < rl._objInfo[i].length; j++)
		{
			rl._objInfo[i].els[j] = {};
			rl._objInfo[i].els[j].el	= (rl._objInfo[i].isObj) ? rl.opt[i].el[j] : rl.opt[i].el;
			
			if(j == 0)
			{
				rl._objInfo[i].els[j].startTime = new Date().getTime() + rl._objInfo[i].delay;
			}
			else
			{
				rl._objInfo[i].els[j].startTime = rl._objInfo[i].els[j - 1].startTime + ( rl._objInfo[i].duration + rl._getGap(rl._objInfo[i].duration, rl._objInfo[i].gap) );
			}
			rl._objInfo[i].els[j].isEnd = false;
		}
		
		// set global delay
		if(i == 0)
		{
			rl._globalInfo.delay = rl._objInfo[i].delay;
		}
		else
		{
			rl._globalInfo.delay = (rl._globalInfo.delay <= rl._objInfo[i].delay) ? rl._globalInfo.delay : rl._objInfo[i].delay;
		}
		
		rl._globalInfo.length += rl._objInfo[i].length;
	}
	
	// call the animation
	rl._animo();
}

Animo.prototype = {
	_animo : function() {
	
		var objInfo = rl._objInfo,
			globalInfo = rl._globalInfo;
		
		// call animation first time
		setTimeout(function() {
			_raf(step);
		}, globalInfo.delay);
		
		function step() {
			var currentTime = new Date().getTime();
			
			for(var i = 0; i < objInfo.length; i++) // implement another loop for each individual element to check when to start !!!
			{
				for(var j = 0; j < objInfo[i].els.length; j++)
				{
					if(currentTime < objInfo[i].els[j].startTime) // waiting for animation start
						continue;
					
					if(objInfo[i].els[j].isEnd) // skip elements animation if it is already done
						continue;
					
					var passTime = currentTime - objInfo[i].els[j].startTime;
					var p = passTime / objInfo[i].duration;
					
					if (p > 1) 
					{
						p = 1;
					}
					
					if(p == 1)
					{
						var delta = 1;
					}
					else
						var delta = rl.Easing[objInfo[i].easing](p, passTime, 0, 1, objInfo[i].duration); // calculate delta
					
					// new style
					// (to-from) * delta + from + unit
					var newStyle = rl.getStyle( objInfo[i].template, delta );
					objInfo[i].els[j].el.cssText != void 0 ? objInfo[i].els[j].el.style.cssText = newStyle : objInfo[i].els[j].el.setAttribute('style',newStyle); // add style to the element
					
					if (p == 1) {
						objInfo[i].els[j].isEnd = true;
						objInfo[i].isDone++;
						globalInfo.isDone++;
						
						if(objInfo[i].isDone == objInfo[i].length)
						{
							objInfo[i].isEnd = true;
							
							if(objInfo[i].callback)
								objInfo[i].callback();							
						}
					}
				}
			}
			
			globalInfo.isDone == globalInfo.length ? _caf(step) : _raf(step);
		};
	},
	
	// return element style that need to be applied
	getStyle : function( template, delta ) {
		var style = "";
		var css3prefix = rl.vendor + "transform:"; 
		var css3style = "";
		if(typeof Object.keys == "function") // use this version for speed acceleration
		{
			Object.keys(template).forEach(function(key) {
				
				var buildStyle = rl._buildStyle(template, key, style, css3style, delta);	
				style = buildStyle[0];
				css3style = buildStyle[1];
				
			});
		}
		else
		{
			for(var key in template)
			{		
				var buildStyle = rl._buildStyle(template, key, style, css3style, delta);	
				style = buildStyle[0];
				css3style = buildStyle[1];
			}
		}
		
		// if css3 transform exists add it to the style
		if(css3style.length > 0)
		{
			style += css3prefix + css3style + ";";
		}
		
		return style;
	},
	
	// build style function
	_buildStyle : function(template, key, style, css3style, delta) {
			
		if(typeof template[key][0].length == "undefined")
		{
			var from = template[key][0], 
				to = template[key][1],
				unit = template[key][2] == void 0 ? "" : template[key][2],
				newValue = (to-from) * delta + from + unit;
		}
		else // for array from - to values
		{
			var len = template[key][0].length;
			var last = len - 1;
			var unit = template[key][2] == void 0 ? "" : template[key][2];
			var newValue = "";
			var tempUnit = "";
			
			if(key == "rotate3d")
			{
				var tempUnit = unit;
				unit = "";
			}
			
			for(var z = 0; z < len; z++)
			{
				if(last == z)
					newValue += (template[key][1][z] - template[key][0][z]) * delta + template[key][0][z] + unit;
				else
					newValue += (template[key][1][z] - template[key][0][z]) * delta + template[key][0][z] + unit + ",";
			}
			
			if(key == "rotate3d")
			{
				newValue += "," + tempUnit;
			}
		}
				
		if(rl._inArray(key, rl._css3Transforms)) // css3 property
		{
			css3style += key + "("+ newValue +") ";
		}
		else if(rl._inArray(key, rl._specialProp)) // special properties animation
		{
			switch(key)
			{
				case "background":
					var bgColor = rl._backgroundAnimo(template[key], delta);
					style += "background-color:" + bgColor + ";";
					break;
				case "color":
					var color = rl._colorAnimo(template[key], delta);
					style += "color:" + color + ";";
					break;
			}
		}
		else // simple property
		{
			style += key + ":" + newValue + ";";
		}
		
		return [style, css3style];
	},
	
	/*
		Return gap value
	*/
	_getGap : function(duration, gapValue) {
		return (duration * gapValue) / 100;
	},
	
	// check if a value is in array
	_inArray : function(value, arr) {
		return (arr.indexOf(value) != -1);
	},
	
	// add different support for old browser
	_addSupport : function() {
		// Add ECMA262-5 Array methods if not supported natively
		// indexOf support add
		if (!('indexOf' in Array.prototype)) {
			Array.prototype.indexOf= function(find, i /*opt*/) {
				if (i===undefined) i= 0;
				if (i<0) i+= this.length;
				if (i<0) i= 0;
				for (var n= this.length; i<n; i++)
					if (i in this && this[i]===find)
						return i;
				return -1;
			};
		}
	},
	
	_getBrowser : function() {
		var N= navigator.appName, ua= navigator.userAgent, tem;
		var M= ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);
		if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1];
		M= M? [M[1], M[2]]: [N, navigator.appVersion,'-?'];
		return M;
	},
	
	_setVendor : function() {
		var v = "";
		var browser = rl._getBrowser();
		switch(browser[0])
		{
			case "Chrome":
				v = "-webkit-";
				break;
			case "MSIE":
				v = (browser[1] == 9.0) ? "-ms-" : ""; 
				break;
			default:
				v = "";
				break
		}
		
		return v;
	},
	
	// hex to rgb
	_toRgb : function( hex ) {		
		var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
		hex = hex.replace(shorthandRegex, function(m, r, g, b) {
			return r + r + g + g + b + b;
		});

		var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
		return result ? [parseInt(result[1], 16),parseInt(result[2], 16),parseInt(result[3], 16)] : null;
	},
	
	// special animation are defined below
	_colorAnimo : function(values, delta) {
		var from = typeof values[0] == "string" ? rl._toRgb( values[0] ) : values[0],
			to = typeof values[1] == "string" ? rl._toRgb( values[1] ) : values[1];

		return 'rgb(' +
			Math.max(Math.min(parseInt((delta * (to[0]-from[0])) + from[0], 10), 255), 0) + ',' +
			Math.max(Math.min(parseInt((delta * (to[1]-from[1])) + from[1], 10), 255), 0) + ',' +
			Math.max(Math.min(parseInt((delta * (to[2]-from[2])) + from[2], 10), 255), 0) + ')';
	},
	
	_backgroundAnimo : function(values, delta) {
		var from = typeof values[0] == "string" ? rl._toRgb( values[0] ) : values[0],
			to = typeof values[1] == "string" ? rl._toRgb( values[1] ) : values[1];
			
		return 'rgb(' +
			Math.max(Math.min(parseInt((delta * (to[0]-from[0])) + from[0], 10), 255), 0) + ',' +
			Math.max(Math.min(parseInt((delta * (to[1]-from[1])) + from[1], 10), 255), 0) + ',' +
			Math.max(Math.min(parseInt((delta * (to[2]-from[2])) + from[2], 10), 255), 0) + ')';
	},
	
	Easing : {
		linear : function(p, t, a, b, d) {
			return a + b * p;
		},
		
		swing : function(p, t, a, b, d) {
			return (-Math.cos(p * Math.PI) / 2 + 0.5) * b + a;
		},
		
		easeInQuad : function(p, t, a, b, d) {
			return b * (t /= d) * t + a;
		},
		
		easeOutQuad : function(p, t, a, b, d) {
			return -b * (t /= d) * (t - 2) + a;
		},
		
		easeInOutQuad : function(p, t, a, b, d) {
			if ((t /= d / 2) < 1) return b / 2 * t * t + a;
            return -b / 2 * (--t * (t - 2) - 1) + a;
		},
		
		easeInCubic : function(p, t, a, b, d) {
			return b * (t /= d) * t * t + a;
		},
		
		easeOutCubic : function(p, t, a, b, d) {
			return b * ((t = t / d - 1) * t * t + 1) + a;
		},
		
		easeInOutCubic : function (p, t, a, b, d) {
            if ((t /= d / 2) < 1) return b / 2 * t * t * t + a;
            return b / 2 * ((t -= 2) * t * t + 2) + a;
        },
		
		easeInQuart : function(p, t, a, b, d) {
			return b * (t /= d) * t * t * t + a;
		},
		
		easeOutQuart : function(p, t, a, b, d) {
			return -b * ((t = t / d - 1) * t * t * t - 1) + a;
		},
		
		easeInOutQuart : function(p, t, a, b, d) {
			if ((t /= d / 2) < 1) return b / 2 * t * t * t * t + a;
            return -b / 2 * ((t -= 2) * t * t * t - 2) + a;
		},
		
		easeInQuint : function(p, t, a, b, d) {
			return b * (t /= d) * t * t * t * t + a;
		},
		
		easeOutQuint : function(p, t, a, b, d) {
			return b * ((t = t / d - 1) * t * t * t * t + 1) + a;
		},
		
		easeInOutQuint : function(p, t, a, b, d) {
			if ((t /= d / 2) < 1) return b / 2 * t * t * t * t * t + a;
            return b / 2 * ((t -= 2) * t * t * t * t + 2) + a;
		},
		
		easeInSine : function(p, t, a, b, d) {
			return -b * Math.cos(t / d * (Math.PI / 2)) + b + a;
		},
		
		easeOutSine : function(p, t, a, b, d) {
			return b * Math.sin(t / d * (Math.PI / 2)) + a;
		},
		
		easeInOutSine : function(p, t, a, b, d) {
			return -b / 2 * (Math.cos(Math.PI * t / d) - 1) + a;
		},
		
		easeInExpo : function(p, t, a, b, d) {
			return t == 0 ? a : b * Math.pow(2, 10 * (t / d - 1)) + a;
		},
		
		easeOutExpo : function(p, t, a, b, d) {
			return t == d ? a + b : b * (-Math.pow(2, -10 * t / d) + 1) + a;
		},
		
		easeInOutExpo : function(p, t, a, b, d) {
			if (t == 0) return a;
            if (t == d) return a + b;
            if ((t /= d / 2) < 1) return b / 2 * Math.pow(2, 10 * (t - 1)) + a;
            return b / 2 * (-Math.pow(2, -10 * --t) + 2) + a;
		},
		
		easeInCirc : function(p, t, a, b, d) {
			return -b * (Math.sqrt(1 - (t /= d) * t) - 1) + a;
		},
		
		easeOutCirc : function(p, t, a, b, d) {
			return b * Math.sqrt(1 - (t = t / d - 1) * t) + a;
		},
		
		easeInOutCirc : function(p, t, a, b, d) {
			if ((t /= d / 2) < 1) return -b / 2 * (Math.sqrt(1 - t * t) - 1) + a;
            return b / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + a;
		},
		
		easeInElastic : function(p, t, a, b, d) {
			var p = 1.70158, n = 0, m = b;
            if (t == 0) return a;
            if ((t /= d) == 1) return a + b;
            n || (n = d * 0.3);
            m < Math.abs(b) ? (m = b, p = n / 4) : p = n / (2 * Math.PI) * Math.asin(b / m);
            return -(m * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - p) * 2 * Math.PI / n)) + a;
		},
		
		easeOutElastic : function(p, t, a, b, d) {
			var p = 1.70158, n = 0, m = b;
            if (t == 0) return a;
            if ((t /= d) == 1) return a + b;
            n || (n = d * 0.3);
            m < Math.abs(b) ? (m = b, p = n / 4) : p = n / (2 * Math.PI) * Math.asin(b / m);
            return m * Math.pow(2, -10 * t) * Math.sin((t * d - p) * 2 * Math.PI / n) + b + a;
		},
		
		easeInOutElastic : function(p, t, a, b, d) {
			var p = 1.70158, n = 0, m = b;
            if (t == 0) return a;
            if ((t /= d / 2) == 2) return a + b;
            n || (n = d * 0.3 * 1.5);
            m < Math.abs(b) ? (m = b, p = n / 4) : p = n / (2 * Math.PI) * Math.asin(b / m);
            if (t < 1) return -0.5 * m * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - p) * 2 * Math.PI / n) + a;
            return m * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - p) * 2 * Math.PI / n) * 0.5 + b + a;
		},
		
		easeInBack : function(p, t, a, b, d) {
			var n = 1.70158;
			return b * (t /= d) * t * ((n + 1) * t - n) + a;
		},
		
		easeOutBack : function(p, t, a, b, d) {
			var n = 1.70158;
			return b * ((t = t / d - 1) * t * ((n + 1) * t + n) + 1) + a;
		},
		
		easeInOutBack : function(p, t, a, b, d) {
			var n = 1.70158;
            if ((t /= d / 2) < 1) return b / 2 * t * t * (((n *= 1.525) + 1) * t - n) + a;
            return b / 2 * ((t -= 2) * t * (((n *= 1.525) + 1) * t + n) + 2) + a;
		},
		
		easeInBounce : function(p, t, a, b, d) {
			return b - this.easeOutBounce(p, d - t, 0, b, d) + a;
		},
		
		easeOutBounce : function(p, t, a, b, d) {
			return (t /= d) < 1 / 2.75 ? b * 7.5625 * t * t + a : t < 2 / 2.75 ? b * (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) + a : t < 2.5 / 2.75 ? b * (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) + a : b * (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375) + a;
		},
		
		easeInOutBounce : function(p, t, a, b, d) {
			if (t < d / 2) return this.easeInBounce(p, t * 2, 0, b, d) * 0.5 + a;
            return this.easeOutBounce(p, t * 2 - d, 0, b, d) * 0.5 + b * 0.5 + a;
		}
	}
}

var animo = { Template : {} };

// Animation Heart
var _raf = window.requestAnimationFrame, 
	_caf = window.cancelAnimationFrame,
	_p = ["webkit","moz","ms","o"];
var i = _p.length;
while (--i > -1 && !_raf) 
{
	_raf = window[_p[i] + "RequestAnimationFrame"];
	_caf = window[_p[i] + "CancelAnimationFrame"] || window[_p[i] + "CancelRequestAnimationFrame"];
}

// for no requestAnimationFrame support
if(!_raf)
{
	_raf = (function() { return function(cb){ window.setTimeout(cb, 1000 / 60); } })();
	_caf = function(id) { clearTimeout(id) };
}
/*

 @name		 Dug.js — A JSONP to HTML Script
 @author     Rogie King <rogiek@gmail.com>
 @version	 1.0
 @license    WTFPL — http://en.wikipedia.org/wiki/WTFPL
 @donate	 My paypal email is rogiek@gmail.com if you want to buy me a brew.

*/

var dug = function( opts ){

	if(this.constructor != dug ){
		dug.instance = new dug( opts ).show();
		return dug.instance;
	}

	var options = {
			target: null,
			endpoint: '',
			templateDelimiters: ['{{','}}'],
			callbackParam: 'callback',
			cacheExpire: 1000 * 60 * 2,
			beforeRender: function(){},
			afterRender: function(){},
			success: function(){},
			error: function(){},
			template: 'You need a template, silly :P'
		},
		getTemplate = function( template ){
			var template = template || options.template,
				tpl;
			if( template.match(/^(#|\.)\w/) ){
				if( 'querySelectorAll' in document ){
					tpl = document.querySelectorAll( template );
					if( tpl.length > 0 ){
						tpl = tpl[0];
					}
				} else {
					tpl = document.getElementById( template.replace(/^#/,'') );
				}
				if( tpl && 'tagName' in tpl ){
					template = tpl.innerHTML;
				}
			}
			return template;
		},
		ext = function(o1,o2){
			for(var key in o2){
				if( key in o1 ){
					if( o1[key] && o1[key].constructor == Object ){
						ext(o1[key],o2[key]);
					}else{
						o1[key] = o2[key];
					}
				}
			}
		},
		ago = function(time){
			var date = new Date((time || "")),
				diff = (((new Date()).getTime() - date.getTime()) / 1000),
				day_diff = Math.floor(diff / 86400);
			if ( isNaN(day_diff) || day_diff < 0)
				return;
			return day_diff == 0 && (
					diff < 60 && "just now" ||
					diff < 120 && "1 minute ago" ||
					diff < 3600 && Math.floor(diff/60) + " minutes ago" ||
					diff < 7200 && "1 hour ago" ||
					diff < 86400 && Math.floor(diff/3600) + " hours ago") ||
				  day_diff == 1 && "Yesterday" ||
				  day_diff < 7 && day_diff + " days ago" ||
				  day_diff < 31 && Math.ceil(day_diff/7) + " week" + (Math.ceil(day_diff/7) > 1? 's' : '') + " ago" ||
				  day_diff < 365 && Math.ceil(day_diff/30) + " months ago" ||
				  day_diff >= 365 && Math.ceil(day_diff/365) + " year" + (Math.ceil(day_diff/365)>1?"s":"") + " ago";
		},
		cache = function( key, json ){
			if( (typeof localStorage !== undefined) && (typeof JSON !== undefined) ){
				var now = new Date().getTime(),
					cachedData = null;
				if( json == undefined ){
					try{ cachedData = JSON.parse(unescape(localStorage.getItem(key))); }catch(e){}
					if( cachedData ){
						if( (now - cachedData.time) < options.cacheExpire ){
							cachedData = cachedData.data;
						} else {
							localStorage.removeItem(key);
							cachedData = null;
						}
					}else{
						cachedData = null;
					}
					return cachedData;
				}else{
					try{
						localStorage.setItem(key, escape(JSON.stringify({time:now,data:json})));
					}catch(e){
						console.log(e);
					}
				}
			}else{
				return null;
			}
		},
		get = function(){
			dug.requests = (dug.requests == undefined? 1:dug.requests+1);
			var get = document.createElement('script');
			var	callkey = 'callback' + dug.requests,
				kids = document.body.children,
				script = document.scripts[document.scripts.length-1],
				url = render(options.endpoint),
				scriptInBody = script.parentNode.nodeName != 'head';
				dug[callkey] = function(json,cached){
					json = json.results? json.results : json;
					if( cached !== true ){
						cache(url,json);
					}
					var vessel = document.createElement('div');
					options.beforeRender.call(this,json);
					vessel.innerHTML = render( getTemplate() ,json, options.templateDelimiters);
					if( options.target == null ){
						script.parentNode.insertBefore(vessel,script);
						options.target = vessel;
					}else{
						if( options.target.nodeName ){
							options.target.innerHTML = vessel.innerHTML;
						}else if (typeof options.target == 'string' ){
							document.getElementById(options.target).innerHTML = vessel.innerHTML;
						}
					}
					options.afterRender.call(this,options.target);
					options.success.call(this,json);
				}
				get.onerror = options.error;
			if( cachedData = cache(url) ){
				dug[callkey](cachedData,true);
			}else{
				get.src = url + (url.indexOf('?') > -1? '&': '?') + options.callbackParam + '=dug.' + callkey;
				document.getElementsByTagName('head')[0].appendChild(get);
			}
		},
		init = function( opts ){
			if( opts && opts != undefined ){
				if (opts.constructor == Object) {
					ext(options,opts);
				}
			}
		};

	//private methods
	function render( tpl, data, delims ){

		tpl = unescape(tpl);

		function dotData( d,dotKey ){
   	   		var invert = '';

   	   		//run filters
   	   		var filters = dotKey.split('|'),
   	   			name 	= filters.shift();

   	   		if( name.indexOf("!") > -1 ){
   	   			name = name.replace(/!/ig,'');
   	   			invert = '!';
   	   		}
   	   		try{
   	   			val = eval(invert + "d['" + name.split('.').join("']['") + "']");
   	   			if( filters ){
   	   				for( var i =0, max = filters.length; i < max; ++i ){
   	   					var chunks = filters[i].split(':'),
   	   						filter = chunks.shift(),
   	   						params = chunks;

   	   					f = eval(filter);

	   	   				if( typeof f == 'function' ){
	   	   					newval = f.apply(d,[val].concat(params) );
	   	   				}
	   	   				val = newval;
	   	   			}
   	   			}
   	   		}catch(e){
   	   			val = '';
   	   		}
   	   		return val;
   		}
   		var delims = delims || ['{{','}}'];
   		var scopeMatch = new RegExp(delims[0] + '[^' + delims[1] + ']*' + delims[1], 'igm' );
                var matches = tpl.match(scopeMatch);

                if (!matches)
                    return tpl;

                matches.forEach(function(m) {
                        tagMatch 	= new RegExp(delims[0] + '|' + delims[1],'ig'),
                        scopeName 	= m.replace(tagMatch,'');

		   	// # = scope iterator
		   	if( scopeName[0] == '#' ){
		   		name = scopeName.slice(1,scopeName.length);
		   		startFrag 	= tpl.indexOf( m );
		   		endFrag 	= tpl.indexOf( m.replace('#','/') ) + m.length;
		   		frag 		= tpl.substring( startFrag + m.length , endFrag - m.length );
		   		dataFrag    = dotData( data, name );
		   		rendered    = '';

		   		//loop over the scope
		   		if( dataFrag ){
			   		if( dataFrag.constructor == Array ){
			   			for( var i = 0, max = dataFrag.length; i < max; ++i ){
			   				rendered += render( frag, dataFrag[i] );
			   			}
			   		}else{
			   			rendered = render( frag, dataFrag, delims );
			   		}
			   		//recalculate fragment position (as contents may have shifted in flight)
			   		startFrag 	= tpl.indexOf( m );
		   			endFrag 	= tpl.indexOf( m.replace('#','/') ) + m.length;
			   		tpl = tpl.slice(0,startFrag) + rendered + tpl.slice(endFrag,tpl.length);
		   		}

		   	// regular variable
		   	} else {

		   		val = dotData(data,scopeName) || '';
		   		tpl = tpl.replace( m, val );
		   	}
		});
	   return tpl;
	}

	//public methods (getter/setters)
	for( var o in options ){
		(function(methodName){
			this[methodName] = function( arg ){
			if( arguments.length ){
				options[methodName] = arg;
			} else {
				return options[methodName];
			}
		}
		}).call(this,o);
	}

	this.show = function( opts ){
		init( opts );
		get();
		return this;
	}

	//utility methods
	dug.render = render;
	dug.extend = ext;
	dug.cache  = cache;
	dug.ago    = ago;

	init( opts );
}
//so that we can read vars
dug._script = document.scripts[document.scripts.length-1];


/**
 * jQuery Roundabout - v2.4.2
 * http://fredhq.com/projects/roundabout
 *
 * Moves list-items of enabled ordered and unordered lists long
 * a chosen path. Includes the default "lazySusan" path, that
 * moves items long a spinning turntable.
 *
 * Terms of Use // jQuery Roundabout
 *
 * Open source under the BSD license
 *
 * Copyright (c) 2011-2012, Fred LeBlanc
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *   - Redistributions in binary form must reproduce the above
 *     copyright notice, this list of conditions and the following
 *     disclaimer in the documentation and/or other materials provided
 *     with the distribution.
 *   - Neither the name of the author nor the names of its contributors
 *     may be used to endorse or promote products derived from this
 *     software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
(function(a){"use strict";var b,c,d;a.extend({roundaboutShapes:{def:"lazySusan",lazySusan:function(a,b,c){return{x:Math.sin(a+b),y:Math.sin(a+3*Math.PI/2+b)/8*c,z:(Math.cos(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+.5}}}});b={bearing:0,tilt:0,minZ:100,maxZ:280,minOpacity:.4,maxOpacity:1,minScale:.4,maxScale:1,duration:600,btnNext:null,btnNextCallback:function(){},btnPrev:null,btnPrevCallback:function(){},btnToggleAutoplay:null,btnStartAutoplay:null,btnStopAutoplay:null,easing:"swing",clickToFocus:true,clickToFocusCallback:function(){},focusBearing:0,shape:"lazySusan",debug:false,childSelector:"li",startingChild:null,reflect:false,floatComparisonThreshold:.001,autoplay:false,autoplayDuration:1e3,autoplayPauseOnHover:false,autoplayCallback:function(){},autoplayInitialDelay:0,enableDrag:false,dropDuration:600,dropEasing:"swing",dropAnimateTo:"nearest",dropCallback:function(){},dragAxis:"x",dragFactor:4,triggerFocusEvents:true,triggerBlurEvents:true,responsive:false};c={autoplayInterval:null,autoplayIsRunning:false,autoplayStartTimeout:null,animating:false,childInFocus:-1,touchMoveStartPosition:null,stopAnimation:false,lastAnimationStep:false};d={init:function(e,f,g){var h,i=(new Date).getTime();e=typeof e==="object"?e:{};f=a.isFunction(f)?f:function(){};f=a.isFunction(e)?e:f;h=a.extend({},b,e,c);return this.each(function(){var b=a(this),c=b.children(h.childSelector).length,e=360/c,i=h.startingChild&&h.startingChild>c-1?c-1:h.startingChild,j=h.startingChild===null?h.bearing:360-i*e,k=b.css("position")!=="static"?b.css("position"):"relative";b.css({padding:0,position:k}).addClass("roundabout-holder").data("roundabout",a.extend({},h,{startingChild:i,bearing:j,oppositeOfFocusBearing:d.normalize.apply(null,[h.focusBearing-180]),dragBearing:j,period:e}));if(g){b.unbind(".roundabout").children(h.childSelector).unbind(".roundabout")}else{if(h.responsive){a(window).bind("resize",function(){d.stopAutoplay.apply(b);d.relayoutChildren.apply(b)})}}if(h.clickToFocus){b.children(h.childSelector).each(function(c){a(this).bind("click.roundabout",function(){var e=d.getPlacement.apply(b,[c]);if(!d.isInFocus.apply(b,[e])){d.stopAnimation.apply(a(this));if(!b.data("roundabout").animating){d.animateBearingToFocus.apply(b,[e,b.data("roundabout").clickToFocusCallback])}return false}})})}if(h.btnNext){a(h.btnNext).bind("click.roundabout",function(){if(!b.data("roundabout").animating){d.animateToNextChild.apply(b,[b.data("roundabout").btnNextCallback])}return false})}if(h.btnPrev){a(h.btnPrev).bind("click.roundabout",function(){d.animateToPreviousChild.apply(b,[b.data("roundabout").btnPrevCallback]);return false})}if(h.btnToggleAutoplay){a(h.btnToggleAutoplay).bind("click.roundabout",function(){d.toggleAutoplay.apply(b);return false})}if(h.btnStartAutoplay){a(h.btnStartAutoplay).bind("click.roundabout",function(){d.startAutoplay.apply(b);return false})}if(h.btnStopAutoplay){a(h.btnStopAutoplay).bind("click.roundabout",function(){d.stopAutoplay.apply(b);return false})}if(h.autoplayPauseOnHover){b.bind("mouseenter.roundabout.autoplay",function(){d.stopAutoplay.apply(b,[true])}).bind("mouseleave.roundabout.autoplay",function(){d.startAutoplay.apply(b)})}if(h.enableDrag){if(!a.isFunction(b.drag)){if(h.debug){alert("You do not have the drag plugin loaded.")}}else if(!a.isFunction(b.drop)){if(h.debug){alert("You do not have the drop plugin loaded.")}}else{b.drag(function(a,c){var e=b.data("roundabout"),f=e.dragAxis.toLowerCase()==="x"?"deltaX":"deltaY";d.stopAnimation.apply(b);d.setBearing.apply(b,[e.dragBearing+c[f]/e.dragFactor])}).drop(function(a){var c=b.data("roundabout"),e=d.getAnimateToMethod(c.dropAnimateTo);d.allowAnimation.apply(b);d[e].apply(b,[c.dropDuration,c.dropEasing,c.dropCallback]);c.dragBearing=c.period*d.getNearestChild.apply(b)})}b.each(function(){var b=a(this).get(0),c=a(this).data("roundabout"),e=c.dragAxis.toLowerCase()==="x"?"pageX":"pageY",f=d.getAnimateToMethod(c.dropAnimateTo);if(b.addEventListener){b.addEventListener("touchstart",function(a){c.touchMoveStartPosition=a.touches[0][e]},false);b.addEventListener("touchmove",function(b){var f=(b.touches[0][e]-c.touchMoveStartPosition)/c.dragFactor;b.preventDefault();d.stopAnimation.apply(a(this));d.setBearing.apply(a(this),[c.dragBearing+f])},false);b.addEventListener("touchend",function(b){b.preventDefault();d.allowAnimation.apply(a(this));f=d.getAnimateToMethod(c.dropAnimateTo);d[f].apply(a(this),[c.dropDuration,c.dropEasing,c.dropCallback]);c.dragBearing=c.period*d.getNearestChild.apply(a(this))},false)}})}d.initChildren.apply(b,[f,g])})},initChildren:function(b,c){var e=a(this),f=e.data("roundabout");b=b||function(){};e.children(f.childSelector).each(function(b){var f,g,h,i=d.getPlacement.apply(e,[b]);if(c&&a(this).data("roundabout")){f=a(this).data("roundabout").startWidth;g=a(this).data("roundabout").startHeight;h=a(this).data("roundabout").startFontSize}a(this).addClass("roundabout-moveable-item").css("position","absolute");a(this).data("roundabout",{startWidth:f||a(this).width(),startHeight:g||a(this).height(),startFontSize:h||parseInt(a(this).css("font-size"),10),degrees:i,backDegrees:d.normalize.apply(null,[i-180]),childNumber:b,currentScale:1,parent:e})});d.updateChildren.apply(e);if(f.autoplay){f.autoplayStartTimeout=setTimeout(function(){d.startAutoplay.apply(e)},f.autoplayInitialDelay)}e.trigger("ready");b.apply(e);return e},updateChildren:function(){return this.each(function(){var b=a(this),c=b.data("roundabout"),e=-1,f={bearing:c.bearing,tilt:c.tilt,stage:{width:Math.floor(a(this).width()*.9),height:Math.floor(a(this).height()*.9)},animating:c.animating,inFocus:c.childInFocus,focusBearingRadian:d.degToRad.apply(null,[c.focusBearing]),shape:a.roundaboutShapes[c.shape]||a.roundaboutShapes[a.roundaboutShapes.def]};f.midStage={width:f.stage.width/2,height:f.stage.height/2};f.nudge={width:f.midStage.width+f.stage.width*.05,height:f.midStage.height+f.stage.height*.05};f.zValues={min:c.minZ,max:c.maxZ,diff:c.maxZ-c.minZ};f.opacity={min:c.minOpacity,max:c.maxOpacity,diff:c.maxOpacity-c.minOpacity};f.scale={min:c.minScale,max:c.maxScale,diff:c.maxScale-c.minScale};b.children(c.childSelector).each(function(g){if(d.updateChild.apply(b,[a(this),f,g,function(){a(this).trigger("ready")}])&&(!f.animating||c.lastAnimationStep)){e=g;a(this).addClass("roundabout-in-focus")}else{a(this).removeClass("roundabout-in-focus")}});if(e!==f.inFocus){if(c.triggerBlurEvents){b.children(c.childSelector).eq(f.inFocus).trigger("blur")}c.childInFocus=e;if(c.triggerFocusEvents&&e!==-1){b.children(c.childSelector).eq(e).trigger("focus")}}b.trigger("childrenUpdated")})},updateChild:function(b,c,e,f){var g,h=this,i=a(b),j=i.data("roundabout"),k=[],l=d.degToRad.apply(null,[360-j.degrees+c.bearing]);f=f||function(){};l=d.normalizeRad.apply(null,[l]);g=c.shape(l,c.focusBearingRadian,c.tilt);g.scale=g.scale>1?1:g.scale;g.adjustedScale=(c.scale.min+c.scale.diff*g.scale).toFixed(4);g.width=(g.adjustedScale*j.startWidth).toFixed(4);g.height=(g.adjustedScale*j.startHeight).toFixed(4);i.css({left:(g.x*c.midStage.width+c.nudge.width-g.width/2).toFixed(0)+"px",top:(g.y*c.midStage.height+c.nudge.height-g.height/2).toFixed(0)+"px",width:g.width+"px",height:g.height+"px",opacity:(c.opacity.min+c.opacity.diff*g.scale).toFixed(2),zIndex:Math.round(c.zValues.min+c.zValues.diff*g.z),fontSize:(g.adjustedScale*j.startFontSize).toFixed(1)+"px"});j.currentScale=g.adjustedScale;if(h.data("roundabout").debug){k.push('<div style="font-weight: normal; font-size: 10px; padding: 2px; width: '+i.css("width")+'; background-color: #ffc;">');k.push('<strong style="font-size: 12px; white-space: nowrap;">Child '+e+"</strong><br />");k.push("<strong>left:</strong> "+i.css("left")+"<br />");k.push("<strong>top:</strong> "+i.css("top")+"<br />");k.push("<strong>width:</strong> "+i.css("width")+"<br />");k.push("<strong>opacity:</strong> "+i.css("opacity")+"<br />");k.push("<strong>height:</strong> "+i.css("height")+"<br />");k.push("<strong>z-index:</strong> "+i.css("z-index")+"<br />");k.push("<strong>font-size:</strong> "+i.css("font-size")+"<br />");k.push("<strong>scale:</strong> "+i.data("roundabout").currentScale);k.push("</div>");i.html(k.join(""))}i.trigger("reposition");f.apply(h);return d.isInFocus.apply(h,[j.degrees])},setBearing:function(b,c){c=c||function(){};b=d.normalize.apply(null,[b]);this.each(function(){var c,e,f,g=a(this),h=g.data("roundabout"),i=h.bearing;h.bearing=b;g.trigger("bearingSet");d.updateChildren.apply(g);c=Math.abs(i-b);if(!h.animating||c>180){return}c=Math.abs(i-b);g.children(h.childSelector).each(function(c){var e;if(d.isChildBackDegreesBetween.apply(a(this),[b,i])){e=i>b?"Clockwise":"Counterclockwise";a(this).trigger("move"+e+"ThroughBack")}})});c.apply(this);return this},adjustBearing:function(b,c){c=c||function(){};if(b===0){return this}this.each(function(){d.setBearing.apply(a(this),[a(this).data("roundabout").bearing+b])});c.apply(this);return this},setTilt:function(b,c){c=c||function(){};this.each(function(){a(this).data("roundabout").tilt=b;d.updateChildren.apply(a(this))});c.apply(this);return this},adjustTilt:function(b,c){c=c||function(){};this.each(function(){d.setTilt.apply(a(this),[a(this).data("roundabout").tilt+b])});c.apply(this);return this},animateToBearing:function(b,c,e,f,g){var h=(new Date).getTime();g=g||function(){};if(a.isFunction(f)){g=f;f=null}else if(a.isFunction(e)){g=e;e=null}else if(a.isFunction(c)){g=c;c=null}this.each(function(){var i,j,k,l=a(this),m=l.data("roundabout"),n=!c?m.duration:c,o=e?e:m.easing||"swing";if(!f){f={timerStart:h,start:m.bearing,totalTime:n}}i=h-f.timerStart;if(m.stopAnimation){d.allowAnimation.apply(l);m.animating=false;return}if(i<n){if(!m.animating){l.trigger("animationStart")}m.animating=true;if(typeof a.easing.def==="string"){j=a.easing[o]||a.easing[a.easing.def];k=j(null,i,f.start,b-f.start,f.totalTime)}else{k=a.easing[o](i/f.totalTime,i,f.start,b-f.start,f.totalTime)}if(d.compareVersions.apply(null,[a().jquery,"1.7.2"])>=0&&!a.easing["easeOutBack"]){k=f.start+(b-f.start)*k}k=d.normalize.apply(null,[k]);m.dragBearing=k;d.setBearing.apply(l,[k,function(){setTimeout(function(){d.animateToBearing.apply(l,[b,n,o,f,g])},0)}])}else{m.lastAnimationStep=true;b=d.normalize.apply(null,[b]);d.setBearing.apply(l,[b,function(){l.trigger("animationEnd")}]);m.animating=false;m.lastAnimationStep=false;m.dragBearing=b;g.apply(l)}});return this},animateToNearbyChild:function(b,c){var e=b[0],f=b[1],g=b[2]||function(){};if(a.isFunction(f)){g=f;f=null}else if(a.isFunction(e)){g=e;e=null}return this.each(function(){var b,h,i=a(this),j=i.data("roundabout"),k=!j.reflect?j.bearing%360:j.bearing,l=i.children(j.childSelector).length;if(!j.animating){if(j.reflect&&c==="previous"||!j.reflect&&c==="next"){k=Math.abs(k)<j.floatComparisonThreshold?360:k;for(b=0;b<l;b+=1){h={lower:j.period*b,upper:j.period*(b+1)};h.upper=b===l-1?360:h.upper;if(k<=Math.ceil(h.upper)&&k>=Math.floor(h.lower)){if(l===2&&k===360){d.animateToDelta.apply(i,[-180,e,f,g])}else{d.animateBearingToFocus.apply(i,[h.lower,e,f,g])}break}}}else{k=Math.abs(k)<j.floatComparisonThreshold||360-Math.abs(k)<j.floatComparisonThreshold?0:k;for(b=l-1;b>=0;b-=1){h={lower:j.period*b,upper:j.period*(b+1)};h.upper=b===l-1?360:h.upper;if(k>=Math.floor(h.lower)&&k<Math.ceil(h.upper)){if(l===2&&k===360){d.animateToDelta.apply(i,[180,e,f,g])}else{d.animateBearingToFocus.apply(i,[h.upper,e,f,g])}break}}}}})},animateToNearestChild:function(b,c,e){e=e||function(){};if(a.isFunction(c)){e=c;c=null}else if(a.isFunction(b)){e=b;b=null}return this.each(function(){var f=d.getNearestChild.apply(a(this));d.animateToChild.apply(a(this),[f,b,c,e])})},animateToChild:function(b,c,e,f){f=f||function(){};if(a.isFunction(e)){f=e;e=null}else if(a.isFunction(c)){f=c;c=null}return this.each(function(){var g,h=a(this),i=h.data("roundabout");if(i.childInFocus!==b&&!i.animating){g=h.children(i.childSelector).eq(b);d.animateBearingToFocus.apply(h,[g.data("roundabout").degrees,c,e,f])}})},animateToNextChild:function(a,b,c){return d.animateToNearbyChild.apply(this,[arguments,"next"])},animateToPreviousChild:function(a,b,c){return d.animateToNearbyChild.apply(this,[arguments,"previous"])},animateToDelta:function(b,c,e,f){f=f||function(){};if(a.isFunction(e)){f=e;e=null}else if(a.isFunction(c)){f=c;c=null}return this.each(function(){var g=a(this).data("roundabout").bearing+b;d.animateToBearing.apply(a(this),[g,c,e,f])})},animateBearingToFocus:function(b,c,e,f){f=f||function(){};if(a.isFunction(e)){f=e;e=null}else if(a.isFunction(c)){f=c;c=null}return this.each(function(){var g=a(this).data("roundabout").bearing-b;g=Math.abs(360-g)<Math.abs(g)?360-g:-g;g=g>180?-(360-g):g;if(g!==0){d.animateToDelta.apply(a(this),[g,c,e,f])}})},stopAnimation:function(){return this.each(function(){a(this).data("roundabout").stopAnimation=true})},allowAnimation:function(){return this.each(function(){a(this).data("roundabout").stopAnimation=false})},startAutoplay:function(b){return this.each(function(){var c=a(this),e=c.data("roundabout");b=b||e.autoplayCallback||function(){};clearInterval(e.autoplayInterval);e.autoplayInterval=setInterval(function(){d.animateToNextChild.apply(c,[b])},e.autoplayDuration);e.autoplayIsRunning=true;c.trigger("autoplayStart")})},stopAutoplay:function(b){return this.each(function(){clearInterval(a(this).data("roundabout").autoplayInterval);a(this).data("roundabout").autoplayInterval=null;a(this).data("roundabout").autoplayIsRunning=false;if(!b){a(this).unbind(".autoplay")}a(this).trigger("autoplayStop")})},toggleAutoplay:function(b){return this.each(function(){var c=a(this),e=c.data("roundabout");b=b||e.autoplayCallback||function(){};if(!d.isAutoplaying.apply(a(this))){d.startAutoplay.apply(a(this),[b])}else{d.stopAutoplay.apply(a(this),[b])}})},isAutoplaying:function(){return this.data("roundabout").autoplayIsRunning},changeAutoplayDuration:function(b){return this.each(function(){var c=a(this),e=c.data("roundabout");e.autoplayDuration=b;if(d.isAutoplaying.apply(c)){d.stopAutoplay.apply(c);setTimeout(function(){d.startAutoplay.apply(c)},10)}})},normalize:function(a){var b=a%360;return b<0?360+b:b},normalizeRad:function(a){while(a<0){a+=Math.PI*2}while(a>Math.PI*2){a-=Math.PI*2}return a},isChildBackDegreesBetween:function(b,c){var d=a(this).data("roundabout").backDegrees;if(b>c){return d>=c&&d<b}else{return d<c&&d>=b}},getAnimateToMethod:function(a){a=a.toLowerCase();if(a==="next"){return"animateToNextChild"}else if(a==="previous"){return"animateToPreviousChild"}return"animateToNearestChild"},relayoutChildren:function(){return this.each(function(){var b=a(this),c=a.extend({},b.data("roundabout"));c.startingChild=b.data("roundabout").childInFocus;d.init.apply(b,[c,null,true])})},getNearestChild:function(){var b=a(this),c=b.data("roundabout"),d=b.children(c.childSelector).length;if(!c.reflect){return(d-Math.round(c.bearing/c.period)%d)%d}else{return Math.round(c.bearing/c.period)%d}},degToRad:function(a){return d.normalize.apply(null,[a])*Math.PI/180},getPlacement:function(a){var b=this.data("roundabout");return!b.reflect?360-b.period*a:b.period*a},isInFocus:function(a){var b,c=this,e=c.data("roundabout"),f=d.normalize.apply(null,[e.bearing]);a=d.normalize.apply(null,[a]);b=Math.abs(f-a);return b<=e.floatComparisonThreshold||b>=360-e.floatComparisonThreshold},getChildInFocus:function(){var b=a(this).data("roundabout");return b.childInFocus>-1?b.childInFocus:false},compareVersions:function(a,b){var c,d=a.split(/\./i),e=b.split(/\./i),f=d.length>e.length?d.length:e.length;for(c=0;c<=f;c++){if(d[c]&&!e[c]&&parseInt(d[c],10)!==0){return 1}else if(e[c]&&!d[c]&&parseInt(e[c],10)!==0){return-1}else if(d[c]===e[c]){continue}if(d[c]&&e[c]){if(parseInt(d[c],10)>parseInt(e[c],10)){return 1}else{return-1}}}return 0}};a.fn.roundabout=function(b){if(d[b]){return d[b].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof b==="object"||a.isFunction(b)||!b){return d.init.apply(this,arguments)}else{a.error("Method "+b+" does not exist for jQuery.roundabout.")}}})(jQuery)
!function(a){a.fn.betaSelect=function(b){var c={text:"",value:"","class":""},d=a.extend({},c,b);return this.each(function(){var b=a(this),c=b.wrap("<div class='beta-select "+d.class+"'></div>").closest(".beta-select");c.append("<i class='fa fa-chevron-down'></i>"),c.prepend("<span class='beta-select-title'>"+d.text+"</span><span class='beta-select-value'>"+d.value+"</span>"),b.change(function(){var b=a(this).find("option:selected").text();c.find(".beta-select-value").text(b)})})}}(jQuery),!function(){var a=function(){beta=this,beta.init()};a.prototype={init:function(){beta.initFilter(),beta.initCalendar(),beta.initRevolutionSlider(),beta.initRoundabout(),beta.initSlider(),beta.initHistorySlider(),beta.initCircliful(),beta.initMedia(),beta.initTooltip(),beta.initProgressBar(),beta.initColorbox(),beta.onCart(),beta.setSelect(),beta.animateBanners(),beta.absFullwidth(),beta.filterItems(),beta.accordionHandler()},initInstragram:function(){dug({endpoint:"https://api.instagram.com/v1/users/1140781/media/recent/?client_id=01a35e4dd4bf4d2681e48c88d006636e&count=6"})},initFilter:function(){jQuery.fn.slider&&(jQuery("#price-filter-range").slider({range:!0,min:0,max:1e3,values:[0,300],slide:function(a,b){jQuery("#price-filter-amount").text("$"+b.values[0]+" - $"+b.values[1])}}),jQuery("#price-filter-amount").text("$"+jQuery("#price-filter-range").slider("values",0)+" - $"+jQuery("#price-filter-range").slider("values",1)))},initCalendar:function(){jQuery.fn.datepicker&&jQuery(".beta-calendar").datepicker()},initRevolutionSlider:function(){if(jQuery.fn.revolution){var a={delay:9e3,startwidth:1140,startheight:480,navigationType:"none"};jQuery(".tp-banner").hasClass("fullwidth")&&(a.fullWidth="on",a.forceFullWidth="on",a.startheight=530),jQuery(".tp-banner").revolution(a)}},initRoundabout:function(){jQuery.fn.roundabout&&jQuery(".beta-roundabout").roundabout({responsive:!0})},initCircliful:function(){if(jQuery.fn.circliful){var a=window.matchMedia("(max-width: 1200px)"),b=window.matchMedia("(max-width: 993px)"),c=window.matchMedia("(max-width: 768px)");jQuery(".beta-rotator").circliful(c.matches?{dimension:"370px"}:b.matches?{dimension:"158px"}:a.matches?{dimension:"213px"}:{dimension:"260px"})}},initMedia:function(){if(jQuery.fn.mediaelementplayer){var a=jQuery(".beta-audio").parent().width();jQuery("audio,video").mediaelementplayer({audioWidth:a})}},initTooltip:function(){jQuery("[data-toggle='tooltip']").tooltip()},initProgressBar:function(){jQuery(".progress-bar").each(function(a,b){var c=jQuery(b).attr("aria-valuenow"),d=parseInt(c)/100*5e3;jQuery(b).animate({width:c+"%"},d)})},initSlider:function(){jQuery(".beta-slider").each(function(a,b){var c=jQuery(b),d=c.find(".beta-slider-items"),e=c.find(".beta-arrow-right"),f=c.find(".beta-arrow-left"),g=c.find(".beta-pager"),h=c.find(".beta-pager-gallery"),i={auto:!0,autoHover:!0,controls:!1,pager:!1};g.length>0&&(i.pager=!0,i.pagerCustom=g),h.length>0&&(i.pager=!0,i.pagerCustom=h);var j=d.bxSlider(i);e.on("click",function(){return j.goToNextSlide(),!1}),f.on("click",function(){return j.goToPrevSlide(),!1})})},initHistorySlider:function(){jQuery(".history-slider").each(function(a,b){var c=jQuery(b),d=c.find(".history-slides"),e=c.find(".history-navigation");d.bxSlider({auto:!0,autoHover:!0,controls:!1,pager:!0,pagerCustom:e})})},initColorbox:function(){jQuery(".colorbox").colorbox({maxWidth:"95%",maxHeight:"95%",rel:"gal"})},setSelect:function(){jQuery(".beta-select-primary").betaSelect({value:"Select","class":"beta-select-primary"})},onCart:function(){jQuery(".cart .beta-select").on("click",function(){return jQuery(".cart-body").slideToggle(),!1});var a=jQuery(".cart");jQuery(document).mouseup(function(b){a.is(b.target)||0!==a.has(b.target).length||jQuery(".cart-body").slideUp()})},animateBanners:function(){jQuery(".beta-banner").each(function(a,b){for(var c=jQuery(b).find("[data-animo]"),d=[],e=0;e<c.length;e++){var f=JSON.parse(jQuery(c[e]).attr("data-animo"));f.el=jQuery(c[e]),d.push(f)}new Animo(d)})},absFullwidth:function(){jQuery(".abs-fullwidth").each(function(a,b){var c=jQuery(b).height(),d=jQuery(b).find("img");jQuery(b).after("<div class='abs-fullwidth-height' style='height:"+c+"px'></div>"),d.length>0&&d.on("load",function(){c=jQuery(b).height(),jQuery(b).next(".abs-fullwidth-height").height(c+"px")})})},filterItems:function(){jQuery(".beta-filter-container").each(function(a,b){var c=jQuery(b),d=c.find(".beta-filter a"),e=c.find(".beta-filter-body li");d.on("click",function(){var a=jQuery(this),b=a.data("filter");a.addClass("is-active").siblings().removeClass("is-active");for(var c=0;c<e.length;c++)jQuery(e[c]).hasClass(b)?jQuery(e[c]).removeClass("is-item-hidden"):jQuery(e[c]).addClass("is-item-hidden");return!1})})},accordionHandler:function(){jQuery(".panel-group").on("hidden.bs.collapse",function(a){var b=jQuery(a.target).prev();b.removeClass("beta-active-tab"),b.find(".accordion-circle .fa").removeClass("fa-minus").addClass("fa-plus")}),jQuery(".panel-group").on("show.bs.collapse",function(a){var b=jQuery(a.target).prev();b.addClass("beta-active-tab"),b.find(".accordion-circle .fa").removeClass("fa-plus").addClass("fa-minus")})}};var b={init:function(){this.initTabs()},initTabs:function(){jQuery(".woocommerce-tabs .panel").hide(),jQuery(".woocommerce-tabs ul.tabs li a").click(function(){var a=jQuery(this),b=a.closest(".woocommerce-tabs");return jQuery("ul.tabs li",b).removeClass("active"),jQuery("div.panel",b).hide(),jQuery("div"+a.attr("href"),b).show(),a.parent().addClass("active"),!1}),jQuery(".woocommerce-tabs").each(function(){var a=window.location.hash,b=window.location.href,c=jQuery(this);a.toLowerCase().indexOf("comment-")>=0?jQuery("ul.tabs li.reviews_tab a",c).click():b.indexOf("comment-page-")>0||b.indexOf("cpage=")>0?jQuery("ul.tabs li.reviews_tab a",jQuery(this)).click():jQuery("ul.tabs li:first a",c).click()}),jQuery("a.woocommerce-review-link").click(function(){return jQuery(".reviews_tab a").click(),!0})}};jQuery(function(){new a;"undefined"!=typeof BetaUtils&&BetaUtils.setMap(jQuery("#beta-map")[0],{latitude:40.722803,longitude:-74.00882,zoom:10,content:"BetaDesign",title:"Beta Design"}),b.init(),jQuery(".shipping-calculator-button").on("click",function(){return jQuery(".shipping-calculator-form ").slideToggle(),!1}),jQuery("input[name='payment_method']").on("click",function(){var a=jQuery(this).attr("id");jQuery(".payment_box").each(function(b,c){jQuery(c).hasClass(a)?jQuery(c).show():jQuery(c).hide()})}),jQuery(".beta-menu-toggle").on("click",function(){return jQuery(".main-menu > ul").slideToggle(),!1});var c=window.matchMedia("(max-width: 1200px)");c.matches&&jQuery(".beta-banner .beta-fallback").each(function(a,b){var c=jQuery(b).data("fallback");jQuery(b).siblings(".beta-banner-layer").remove().end().attr("src",c)})})}();
(function ($) {
	$.fn.countTo = function (options) {
		options = options || {};
		
		return $(this).each(function () {
			// set options for current element
			var settings = $.extend({}, $.fn.countTo.defaults, {
				from:            $(this).data('from'),
				to:              $(this).data('to'),
				speed:           $(this).data('speed'),
				refreshInterval: $(this).data('refresh-interval'),
				decimals:        $(this).data('decimals')
			}, options);
			
			// how many times to update the value, and how much to increment the value on each update
			var loops = Math.ceil(settings.speed / settings.refreshInterval),
				increment = (settings.to - settings.from) / loops;
			
			// references & variables that will change with each update
			var self = this,
				$self = $(this),
				loopCount = 0,
				value = settings.from,
				data = $self.data('countTo') || {};
			
			$self.data('countTo', data);
			
			// if an existing interval can be found, clear it first
			if (data.interval) {
				clearInterval(data.interval);
			}
			data.interval = setInterval(updateTimer, settings.refreshInterval);
			
			// initialize the element with the starting value
			render(value);
			
			function updateTimer() {
				value += increment;
				loopCount++;
				
				render(value);
				
				if (typeof(settings.onUpdate) == 'function') {
					settings.onUpdate.call(self, value);
				}
				
				if (loopCount >= loops) {
					// remove the interval
					$self.removeData('countTo');
					clearInterval(data.interval);
					value = settings.to;
					
					if (typeof(settings.onComplete) == 'function') {
						settings.onComplete.call(self, value);
					}
				}
			}
			
			function render(value) {
				var formattedValue = settings.formatter.call(self, value, settings);
				$self.html(formattedValue);
			}
		});
	};
	
	$.fn.countTo.defaults = {
		from: 0,               // the number the element should start at
		to: 0,                 // the number the element should end at
		speed: 1000,           // how long it should take to count between the target numbers
		refreshInterval: 100,  // how often the element should be updated
		decimals: 0,           // the number of decimal places to show
		formatter: formatter,  // handler for formatting the value before rendering
		onUpdate: null,        // callback method for every time the element is updated
		onComplete: null       // callback method for when the element finishes updating
	};
	
	function formatter(value, settings) {
		return value.toFixed(settings.decimals);
	}
}(jQuery));

/* <![CDATA[ */
            jQuery(document).ready(function($) {
                'use strict';
			$(function() {
        // this will get the full URL at the address bar
        var url = window.location.href;

        // passes on every "a" tag
        $(".main-menu a").each(function() {
            // checks if its the same on the address bar
            if (url == (this.href)) {
                $(this).closest("li").addClass("active");
				 $(this).parents('li').addClass('parent-active');
            }
        });
    }); 
	 
				
			// NUMBERS COUNTER START
                $('.numbers').data('countToOptions', {
                    formatter: function(value, options) {
                        return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');
                    }
                });

                // start timer
                $('.timer').each(count);

                function count(options) {
                    var $this = $(this);
                    options = $.extend({}, options || {}, $this.data('countToOptions') || {});
                    $this.countTo(options);
                } // NUMBERS COUNTER END
		

				//var tpj=jQuery;
				//tpj.noConflict();

				//document.ready(function() {

				//if (tpj.fn.cssOriginal!=undefined)
					//tpj.fn.css = tpj.fn.cssOriginal;

					$('.banner').revolution(
						{
							delay:9000,
							startheight:500,
							startwidth:1200,


							hideThumbs:200,

							thumbWidth:100,							// Thumb With and Height and Amount (only if navigation Tyope set to thumb !)
							thumbHeight:50,
							thumbAmount:5,

							navigationType:"bullet",				// bullet, thumb, none
							navigationArrows:"nexttobullets",				// nexttobullets, solo (old name verticalcentered), none

							navigationStyle:"navbar",				// round,square,navbar,round-old,square-old,navbar-old, or any from the list in the docu (choose between 50+ different item), custom


							navigationHAlign:"center",				// Vertical Align top,center,bottom
							navigationVAlign:"bottom",					// Horizontal Align left,center,right
							navigationHOffset:0,
							navigationVOffset:20,

							soloArrowLeftHalign:"left",
							soloArrowLeftValign:"center",
							soloArrowLeftHOffset:20,
							soloArrowLeftVOffset:0,

							soloArrowRightHalign:"right",
							soloArrowRightValign:"center",
							soloArrowRightHOffset:20,
							soloArrowRightVOffset:0,

							touchenabled:"on",						// Enable Swipe Function : on/off
							onHoverStop:"on",						// Stop Banner Timet at Hover on Slide on/off

							stopAtSlide:-1,							// Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case.
							stopAfterLoops:-1,						// Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic

							hideCaptionAtLimit:0,					// It Defines if a caption should be shown under a Screen Resolution ( Basod on The Width of Browser)
							hideAllCaptionAtLilmit:0,				// Hide all The Captions if Width of Browser is less then this value
							hideSliderAtLimit:0,					// Hide the whole slider, and stop also functions if Width of Browser is less than this value

							shadow:1,								//0 = no Shadow, 1,2,3 = 3 Different Art of Shadows  (No Shadow in Fullwidth Version !)
							fullWidth:"off"							// Turns On or Off the Fullwidth Image Centering in FullWidth Modus


						});



					//});



			
			

try {		
		if ($(".animated")[0]) {
            $('.animated').css('opacity', '0');
			}
			$('.triggerAnimation').waypoint(function() {
            var animation = $(this).attr('data-animate');
            $(this).css('opacity', '');
            $(this).addClass("animated " + animation);

			},
                {
                    offset: '80%',
                    triggerOnce: true
                }
			);
	} catch(err) {

		}
		
var wow = new WOW(
  {
    boxClass:     'wow',      // animated element css class (default is wow)
    animateClass: 'animated', // animation css class (default is animated)
    offset:       150,          // distance to the element when triggering the animation (default is 0)
    mobile:       false        // trigger animations on mobile devices (true is default)
  }
);
wow.init();
// color box

//color
      jQuery('#style-selector').animate({
      left: '-213px'
    });

    jQuery('#style-selector a.close').click(function(e){
      e.preventDefault();
      var div = jQuery('#style-selector');
      if (div.css('left') === '-213px') {
        jQuery('#style-selector').animate({
          left: '0'
        });
        jQuery(this).removeClass('icon-angle-left');
        jQuery(this).addClass('icon-angle-right');
      } else {
        jQuery('#style-selector').animate({
          left: '-213px'
        });
        jQuery(this).removeClass('icon-angle-right');
        jQuery(this).addClass('icon-angle-left');
      }
    });
	

	});

	

            /* ]]> */

function htmlDecode(value){
    return $('<div/>').html(value).text();
}
/*! Divas Cookies jQuery plugin v0.2 2014.10.27 - jquery.divascookies-0.2.js by Federica Sibella (@musingspuntoit) and Michela Chiucini (@webislove) - Coding Divas (@CodingDivas) */
!function(e){e.DivasCookies=function(t){function o(e){var t=new Date;t.setFullYear(t.getFullYear()+1),document.cookie=e+"=yes; expires="+t.toGMTString()}function c(e){return!document.cookie.match(new RegExp(e+"=([^;]+)"))}var i={bannerText:"This website uses cookies.",cookiePolicyLink:"",cookiePolicyLinkText:"Read our cookie policy.",thirdPartyPolicyWidget:"",acceptButtonText:"Ok",acceptButtonSrc:"",declineButtonText:"No cookies, please",declineButtonSrc:"",openEffect:"",openEffectDuration:600,openEffectEasing:"swing",closeEffect:"",closeEffectDuration:600,closeEffectEasing:"swing",debugMode:!1,saveUserPreferences:!0},n=e.extend({},i,t),a=e(),s=e(),f="",l=e(),r=e(),u=e(),p="DisplayDivasCookiesBanner";if(a=e("<div class='divascookies'></div>"),a.data("divascookies",{cookieName:p}),n.debugMode===!0&&(""===n.bannerText&&alert("Divas Cookies plugin warning!\nNo text for the banner: please check bannerText value"),""===n.cookiePolicyLink&&alert("Divas Cookies plugin warning!\nNo link to the extended cookie policy: please check cookiePolicyLink value"),""===n.cookiePolicyLinkText&&alert("Divas Cookies plugin warning!\nNo text for extended cookie policy link: please check cookiePolicyLinkText value"),""===n.acceptButtonText&&alert("Divas Cookies plugin warning!\nNo text for accept button: please check acceptButtonText value"),""===n.acceptButtonSrc&&alert("Divas Cookies plugin warning!\nNo source for accept button image: please check acceptButtonSrc value")),s=e("<div class='divascookies-banner-container'></div>"),f="<span class='divascookies-policy-link'><a href='"+n.cookiePolicyLink+"' >"+n.cookiePolicyLinkText+"</a></span>","iubenda"===n.thirdPartyPolicyWidget&&(f="<span class='divascookies-policy-link'><a href='"+n.cookiePolicyLink+"' class='iubenda-white iubenda-embed'>"+n.cookiePolicyLinkText+"</a></span>"),l=e("<p class='divascookies-banner-text'>"+n.bannerText+" "+f+"</p>"),r=e("<div class='divascookies-accept-button-container'></div>"),u=e(""!==n.acceptButtonSrc?"<img class='divascookies-accept-button-img' src='"+n.acceptButtonSrc+"' alt='"+n.acceptButtonText+"' title='"+n.acceptButtonText+"' />":"<p class='divascookies-accept-button-text'>"+n.acceptButtonText+"</p>"),a.append(s),s.append(l),s.append(r),r.append(u),!n.saveUserPreferences||c(p))switch(e("body").append(a),n.openEffect){case"fade":a.fadeIn(n.openEffectDuration,n.openEffectEasing);break;case"slideUp":a.css({bottom:"-100%",top:"auto"}).show(function(){a.animate({bottom:0},n.openEffectDuration,n.openEffectEasing)});break;case"slideDown":a.css({top:"-100%",bottom:"auto"}).show(function(){a.animate({top:0},n.openEffectDuration,n.openEffectEasing)});break;case"slideLeft":a.css({left:"-100%",right:"auto"}).show(function(){a.animate({left:0},n.openEffectDuration,n.openEffectEasing)});break;case"slideRight":a.css({left:"100%",right:"auto"}).show(function(){a.animate({left:0},n.openEffectDuration,n.openEffectEasing)});break;default:a.show()}return r.on("click",function(){switch(n.saveUserPreferences&&o(p),n.closeEffect){case"fade":a.fadeOut(n.closeEffectDuration,n.closeEffectEasing);break;case"slideUp":a.animate({top:"-100%"},n.closeEffectDuration,n.closeEffectEasing,function(){a.hide()});break;case"slideDown":a.animate({bottom:"-100%"},n.closeEffectDuration,n.closeEffectEasing,function(){a.hide()});break;case"slideLeft":a.animate({left:"-100%"},n.closeEffectDuration,n.closeEffectEasing,function(){a.hide()});break;case"slideRight":a.animate({left:"100%"},n.closeEffectDuration,n.closeEffectEasing,function(){a.hide()});break;default:a.hide()}}),a}}(jQuery);
