;var jquery_1_11_3=function(){};!function(e,t){'object'==typeof module&&'object'==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error('jQuery requires a window with a document');return t(e)}:t(e)}('undefined'!=typeof window?window:this,function(e,i){var p=[],m=p.slice,Te=p.concat,Y=p.push,je=p.indexOf,O={},Ut=O.toString,z=O.hasOwnProperty,n={},ke='1.11.3',t=function(e,i){return new t.fn.init(e,i)},Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Vt=/^-ms-/,Yt=/-([\da-z])/gi,Zt=function(e,t){return t.toUpperCase()};t.fn=t.prototype={jquery:ke,constructor:t,selector:'',length:0,toArray:function(){return m.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:m.call(this)},pushStack:function(e){var i=t.merge(this.constructor(),e);return i.prevObject=this,i.context=this.context,i},each:function(e,i){return t.each(this,e,i)},map:function(e){return this.pushStack(t.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(m.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var i=this.length,t=+e+(0>e?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Y,sort:p.sort,splice:p.splice},t.extend=t.fn.extend=function(){var n,s,i,r,a,l,e=arguments[0]||{},o=1,c=arguments.length,u=!1;for('boolean'==typeof e&&(u=e,e=arguments[o]||{},o++),'object'==typeof e||t.isFunction(e)||(e={}),o===c&&(e=this,o--);c>o;o++)if(null!=(a=arguments[o]))for(r in a)n=e[r],i=a[r],e!==i&&(u&&i&&(t.isPlainObject(i)||(s=t.isArray(i)))?(s?(s=!1,l=n&&t.isArray(n)?n:[]):l=n&&t.isPlainObject(n)?n:{},e[r]=t.extend(u,l,i)):void 0!==i&&(e[r]=i));return e},t.extend({expando:'jQuery'+(ke+Math.random()).replace(/\D/g,''),isReady:!0,error:function(e){throw new Error(e);},noop:function(){},isFunction:function(e){return'function'===t.type(e)},isArray:Array.isArray||function(e){return'array'===t.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!t.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var o;if(!e||'object'!==t.type(e)||e.nodeType||t.isWindow(e))return!1;try{if(e.constructor&&!z.call(e,'constructor')&&!z.call(e.constructor.prototype,'isPrototypeOf'))return!1}catch(i){return!1};if(n.ownLast)for(o in e)return z.call(e,o);for(o in e);return void 0===o||z.call(e,o)},type:function(e){return null==e?e+'':'object'==typeof e||'function'==typeof e?O[Ut.call(e)]||'object':typeof e},globalEval:function(i){i&&t.trim(i)&&(e.execScript||function(t){e.eval.call(e,t)})(i)},camelCase:function(e){return e.replace(Vt,'ms-').replace(Yt,Zt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var o,n=0,r=e.length,s=oe(e);if(i){if(s){for(;r>n;n++)if(o=t.apply(e[n],i),o===!1)break}else for(n in e)if(o=t.apply(e[n],i),o===!1)break}else if(s){for(;r>n;n++)if(o=t.call(e[n],n,e[n]),o===!1)break}else for(n in e)if(o=t.call(e[n],n,e[n]),o===!1)break;return e},trim:function(e){return null==e?'':(e+'').replace(Gt,'')},makeArray:function(e,i){var n=i||[];return null!=e&&(oe(Object(e))?t.merge(n,'string'==typeof e?[e]:e):Y.call(n,e)),n},inArray:function(e,t,i){var n;if(t){if(je)return je.call(t,e,i);for(n=t.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in t&&t[i]===e)return i};return-1},merge:function(e,t){var n=+t.length,i=0,o=e.length;while(n>i)e[o++]=t[i++];if(n!==n)while(void 0!==t[i])e[o++]=t[i++];return e.length=o,e},grep:function(e,t,i){for(var o,r=[],n=0,s=e.length,a=!i;s>n;n++)o=!t(e[n],n),o!==a&&r.push(e[n]);return r},map:function(e,t,i){var o,n=0,s=e.length,a=oe(e),r=[];if(a)for(;s>n;n++)o=t(e[n],n,i),null!=o&&r.push(o);else for(n in e)o=t(e[n],n,i),null!=o&&r.push(o);return Te.apply([],r)},guid:1,proxy:function(e,i){var o,n,r;return'string'==typeof i&&(r=e[i],i=e,e=r),t.isFunction(e)?(o=m.call(arguments,2),n=function(){return e.apply(i||this,o.concat(m.call(arguments)))},n.guid=e.guid=e.guid||t.guid++,n):void 0},now:function(){return+new Date},support:n}),t.each('Boolean Number String Function Array Date RegExp Object Error'.split(' '),function(e,t){O['[object '+t+']']=t.toLowerCase()});function oe(e){var i='length'in e&&e.length,n=t.type(e);return'function'===n||t.isWindow(e)?!1:1===e.nodeType&&i?!0:'array'===n||0===i||'number'==typeof i&&i>0&&i-1 in e};var j=function(e){var C,r,t,R,ae,W,V,se,E,v,j,w,l,d,p,a,x,A,L,s='sizzle'+1*new Date,c=e.document,f=0,ce=0,re=B(),ne=B(),J=B(),Y=function(e,t){return e===t&&(j=!0),0},K=1<<31,Ce={}.hasOwnProperty,T=[],ge=T.pop,ve=T.push,y=T.push,te=T.slice,z=function(e,t){for(var i=0,n=e.length;n>i;i++)if(e[i]===t)return i;return-1},Z='checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped',n='[\\x20\\t\\r\\n\\f]',S='(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+',G=S.replace('w','w#'),oe='\\['+n+'*('+S+')(?:'+n+'*([*^$|!~]?=)'+n+'*(?:\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)"|('+G+'))|)'+n+'*\\]',U=':('+S+')(?:\\(((\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|'+oe+')*)|.*)\\)|)',we=new RegExp(n+'+','g'),O=new RegExp('^'+n+'+|((?:^|[^\\\\])(?:\\\\.)*)'+n+'+$','g'),xe=new RegExp('^'+n+'*,'+n+'*'),je=new RegExp('^'+n+'*([>+~]|'+n+')'+n+'*'),pe=new RegExp('='+n+'*([^\\]\'"]*?)'+n+'*\\]','g'),me=new RegExp(U),Se=new RegExp('^'+G+'$'),Q={ID:new RegExp('^#('+S+')'),CLASS:new RegExp('^\\.('+S+')'),TAG:new RegExp('^('+S.replace('w','w*')+')'),ATTR:new RegExp('^'+oe),PSEUDO:new RegExp('^'+U),CHILD:new RegExp('^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\('+n+'*(even|odd|(([+-]|)(\\d*)n|)'+n+'*(?:([+-]|)'+n+'*(\\d+)|))'+n+'*\\)|)','i'),bool:new RegExp('^(?:'+Z+')$','i'),needsContext:new RegExp('^'+n+'*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\('+n+'*((?:-\\d)?\\d*)'+n+'*\\)|)(?=[^-]|$)','i')},Te=/^(?:input|select|textarea|button)$/i,ze=/^h\d$/i,k=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,N=/[+~]/,ye=/'|\\/g,m=new RegExp('\\\\([\\da-f]{1,6}'+n+'?|('+n+')|.)','ig'),g=function(e,t,i){var n='0x'+t-65536;return n!==n||i?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ie=function(){w()};try{y.apply(T=te.call(c.childNodes),c.childNodes),T[c.childNodes.length].nodeType}catch(i){y={apply:T.length?function(e,t){ve.apply(e,te.call(t))}:function(e,t){var i=e.length,n=0;while(e[i++]=t[n++]);e.length=i-1}}};function o(e,t,i,n){var g,u,f,d,v,m,b,h,z,x;if((t?t.ownerDocument||t:c)!==l&&w(t),t=t||l,i=i||[],d=t.nodeType,'string'!=typeof e||!e||1!==d&&9!==d&&11!==d)return i;if(!n&&p){if(11!==d&&(g=be.exec(e)))if(f=g[1]){if(9===d){if(u=t.getElementById(f),!u||!u.parentNode)return i;if(u.id===f)return i.push(u),i}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&L(t,u)&&u.id===f)return i.push(u),i}else{if(g[2])return y.apply(i,t.getElementsByTagName(e)),i;if((f=g[3])&&r.getElementsByClassName)return y.apply(i,t.getElementsByClassName(f)),i};if(r.qsa&&(!a||!a.test(e))){if(h=b=s,z=t,x=1!==d&&e,1===d&&'object'!==t.nodeName.toLowerCase()){m=W(e),(b=t.getAttribute('id'))?h=b.replace(ye,'\\$&'):t.setAttribute('id',h),h='[id=\''+h+'\'] ',v=m.length;while(v--)m[v]=h+H(m[v]);z=N.test(e)&&M(t.parentNode)||t,x=m.join(',')};if(x)try{return y.apply(i,z.querySelectorAll(x)),i}catch(o){}finally{b||t.removeAttribute('id')}}};return se(e.replace(O,'$1'),t,i,n)};function B(){var i=[];function e(n,o){return i.push(n+' ')>t.cacheLength&&delete e[i.shift()],e[n+' ']=o};return e};function u(e){return e[s]=!0,e};function h(e){var i=l.createElement('div');try{return!!e(i)}catch(t){return!1}finally{i.parentNode&&i.parentNode.removeChild(i),i=null}};function D(e,i){var o=e.split('|'),n=e.length;while(n--)t.attrHandle[o[n]]=i};function le(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||K)-(~e.sourceIndex||K);if(n)return n;if(i)while(i=i.nextSibling)if(i===t)return-1;return e?1:-1};function he(e){return function(t){var i=t.nodeName.toLowerCase();return'input'===i&&t.type===e}};function ue(e){return function(t){var i=t.nodeName.toLowerCase();return('input'===i||'button'===i)&&t.type===e}};function b(e){return u(function(t){return t=+t,u(function(i,n){var o,r=e([],i.length,t),s=r.length;while(s--)i[o=r[s]]&&(i[o]=!(n[o]=i[o]))})})};function M(e){return e&&'undefined'!=typeof e.getElementsByTagName&&e};r=o.support={},ae=o.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?'HTML'!==t.nodeName:!1},w=o.setDocument=function(e){var u,o,i=e?e.ownerDocument||e:c;return i!==l&&9===i.nodeType&&i.documentElement?(l=i,d=i.documentElement,o=i.defaultView,o&&o!==o.top&&(o.addEventListener?o.addEventListener('unload',ie,!1):o.attachEvent&&o.attachEvent('onunload',ie)),p=!ae(i),r.attributes=h(function(e){return e.className='i',!e.getAttribute('className')}),r.getElementsByTagName=h(function(e){return e.appendChild(i.createComment('')),!e.getElementsByTagName('*').length}),r.getElementsByClassName=k.test(i.getElementsByClassName),r.getById=h(function(e){return d.appendChild(e).id=s,!i.getElementsByName||!i.getElementsByName(s).length}),r.getById?(t.find.ID=function(e,t){if('undefined'!=typeof t.getElementById&&p){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(e){var t=e.replace(m,g);return function(e){return e.getAttribute('id')===t}}):(delete t.find.ID,t.filter.ID=function(e){var t=e.replace(m,g);return function(e){var i='undefined'!=typeof e.getAttributeNode&&e.getAttributeNode('id');return i&&i.value===t}}),t.find.TAG=r.getElementsByTagName?function(e,t){return'undefined'!=typeof t.getElementsByTagName?t.getElementsByTagName(e):r.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,o=t.getElementsByTagName(e);if('*'===e){while(i=o[r++])1===i.nodeType&&n.push(i);return n};return o},t.find.CLASS=r.getElementsByClassName&&function(e,t){return p?t.getElementsByClassName(e):void 0},x=[],a=[],(r.qsa=k.test(i.querySelectorAll))&&(h(function(e){d.appendChild(e).innerHTML='',e.querySelectorAll('[msallowcapture^=\'\']').length&&a.push('[*^$]='+n+'*(?:\'\'|"")'),e.querySelectorAll('[selected]').length||a.push('\\['+n+'*(?:value|'+Z+')'),e.querySelectorAll('[id~='+s+'-]').length||a.push('~='),e.querySelectorAll(':checked').length||a.push(':checked'),e.querySelectorAll('a#'+s+'+*').length||a.push('.#.+[+~]')}),h(function(e){var t=i.createElement('input');t.setAttribute('type','hidden'),e.appendChild(t).setAttribute('name','D'),e.querySelectorAll('[name=d]').length&&a.push('name'+n+'*[*^$|!~]?='),e.querySelectorAll(':enabled').length||a.push(':enabled',':disabled'),e.querySelectorAll('*,:x'),a.push(',.*:')})),(r.matchesSelector=k.test(A=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&h(function(e){r.disconnectedMatch=A.call(e,'div'),A.call(e,'[s!=\'\']:x'),x.push('!=',U)}),a=a.length&&new RegExp(a.join('|')),x=x.length&&new RegExp(x.join('|')),u=k.test(d.compareDocumentPosition),L=u||k.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},Y=u?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!r.sortDetached&&t.compareDocumentPosition(e)===n?e===i||e.ownerDocument===c&&L(c,e)?-1:t===i||t.ownerDocument===c&&L(c,t)?1:v?z(v,e)-z(v,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,o=0,a=e.parentNode,l=t.parentNode,r=[e],s=[t];if(!a||!l)return e===i?-1:t===i?1:a?-1:l?1:v?z(v,e)-z(v,t):0;if(a===l)return le(e,t);n=e;while(n=n.parentNode)r.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(r[o]===s[o])o++;return o?le(r[o],s[o]):r[o]===c?-1:s[o]===c?1:0},i):l},o.matches=function(e,t){return o(e,null,null,t)},o.matchesSelector=function(e,t){if((e.ownerDocument||e)!==l&&w(e),t=t.replace(pe,'=\'$1\']'),!(!r.matchesSelector||!p||x&&x.test(t)||a&&a.test(t)))try{var n=A.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){};return o(t,l,null,[e]).length>0},o.contains=function(e,t){return(e.ownerDocument||e)!==l&&w(e),L(e,t)},o.attr=function(e,i){(e.ownerDocument||e)!==l&&w(e);var o=t.attrHandle[i.toLowerCase()],n=o&&Ce.call(t.attrHandle,i.toLowerCase())?o(e,i,!p):void 0;return void 0!==n?n:r.attributes||!p?e.getAttribute(i):(n=e.getAttributeNode(i))&&n.specified?n.value:null},o.error=function(e){throw new Error('Syntax error, unrecognized expression: '+e);},o.uniqueSort=function(e){var n,o=[],t=0,i=0;if(j=!r.detectDuplicates,v=!r.sortStable&&e.slice(0),e.sort(Y),j){while(n=e[i++])n===e[i]&&(t=o.push(i));while(t--)e.splice(o[t],1)};return v=null,e},R=o.getText=function(e){var n,i='',o=0,t=e.nodeType;if(t){if(1===t||9===t||11===t){if('string'==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=R(e)}else if(3===t||4===t)return e.nodeValue}else while(n=e[o++])i+=R(n);return i},t=o.selectors={cacheLength:50,createPseudo:u,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(m,g),e[3]=(e[3]||e[4]||e[5]||'').replace(m,g),'~='===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]||o.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]&&o.error(e[0]),e},PSEUDO:function(e){var i,t=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||'':t&&me.test(t)&&(i=W(t,!0))&&(i=t.indexOf(')',t.length-i)-t.length)&&(e[0]=e[0].slice(0,i),e[2]=t.slice(0,i)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(m,g).toLowerCase();return'*'===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=re[e+' '];return t||(t=new RegExp('(^|'+n+')'+e+'('+n+'|$)'))&&re(e,function(e){return t.test('string'==typeof e.className&&e.className||'undefined'!=typeof e.getAttribute&&e.getAttribute('class')||'')})},ATTR:function(e,t,i){return function(n){var r=o.attr(n,e);return null==r?'!='===t:t?(r+='','='===t?r===i:'!='===t?r!==i:'^='===t?i&&0===r.indexOf(i):'*='===t?i&&r.indexOf(i)>-1:'$='===t?i&&r.slice(-i.length)===i:'~='===t?(' '+r.replace(we,' ')+' ').indexOf(i)>-1:'|='===t?r===i||r.slice(0,i.length+1)===i+'-':!1):!0}},CHILD:function(e,t,i,n,o){var l='nth'!==e.slice(0,3),a='last'!==e.slice(-4),r='of-type'===t;return 1===n&&0===o?function(e){return!!e.parentNode}:function(t,i,u){var p,y,c,d,h,g,v=l!==a?'nextSibling':'previousSibling',m=t.parentNode,b=r&&t.nodeName.toLowerCase(),w=!u&&!r;if(m){if(l){while(v){c=t;while(c=c[v])if(r?c.nodeName.toLowerCase()===b:1===c.nodeType)return!1;g=v='only'===e&&!g&&'nextSibling'};return!0};if(g=[a?m.firstChild:m.lastChild],a&&w){y=m[s]||(m[s]={}),p=y[e]||[],h=p[0]===f&&p[1],d=p[0]===f&&p[2],c=h&&m.childNodes[h];while(c=++h&&c&&c[v]||(d=h=0)||g.pop())if(1===c.nodeType&&++d&&c===t){y[e]=[f,h,d];break}}else if(w&&(p=(t[s]||(t[s]={}))[e])&&p[0]===f)d=p[1];else while(c=++h&&c&&c[v]||(d=h=0)||g.pop())if((r?c.nodeName.toLowerCase()===b:1===c.nodeType)&&++d&&(w&&((c[s]||(c[s]={}))[e]=[f,d]),c===t))break;return d-=o,d===n||d%n===0&&d/n>=0}}},PSEUDO:function(e,i){var r,n=t.pseudos[e]||t.setFilters[e.toLowerCase()]||o.error('unsupported pseudo: '+e);return n[s]?n(i):n.length>1?(r=[e,e,'',i],t.setFilters.hasOwnProperty(e.toLowerCase())?u(function(e,t){var o,r=n(e,i),s=r.length;while(s--)o=z(e,r[s]),e[o]=!(t[o]=r[s])}):function(e){return n(e,0,r)}):n}},pseudos:{not:u(function(e){var t=[],n=[],i=V(e.replace(O,'$1'));return i[s]?u(function(e,t,n,o){var s,a=i(e,null,o,[]),r=e.length;while(r--)(s=a[r])&&(e[r]=!(t[r]=s))}):function(e,o,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}}),has:u(function(e){return function(t){return o(e,t).length>0}}),contains:u(function(e){return e=e.replace(m,g),function(t){return(t.textContent||t.innerText||R(t)).indexOf(e)>-1}}),lang:u(function(e){return Se.test(e||'')||o.error('unsupported lang: '+e),e=e.replace(m,g).toLowerCase(),function(t){var i;do if(i=p?t.lang:t.getAttribute('xml:lang')||t.getAttribute('lang'))return i=i.toLowerCase(),i===e||0===i.indexOf(e+'-');while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===l.activeElement&&(!l.hasFocus||l.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.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return ze.test(e.nodeName)},input:function(e){return Te.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'))||'text'===t.toLowerCase())},first:b(function(){return[0]}),last:b(function(e,t){return[t-1]}),eq:b(function(e,t,i){return[0>i?i+t:i]}),even:b(function(e,t){for(var i=0;t>i;i+=2)e.push(i);return e}),odd:b(function(e,t){for(var i=1;t>i;i+=2)e.push(i);return e}),lt:b(function(e,t,i){for(var n=0>i?i+t:i;--n>=0;)e.push(n);return e}),gt:b(function(e,t,i){for(var n=0>i?i+t:i;++nt;t++)i+=e[t].value;return i};function X(e,t,i){var n=t.dir,o=i&&'parentNode'===n,r=ce++;return t.first?function(t,i,r){while(t=t[n])if(1===t.nodeType||o)return e(t,i,r)}:function(t,i,a){var l,u,c=[f,r];if(a){while(t=t[n])if((1===t.nodeType||o)&&e(t,i,a))return!0}else while(t=t[n])if(1===t.nodeType||o){if(u=t[s]||(t[s]={}),(l=u[n])&&l[0]===f&&l[1]===r)return c[2]=l[2];if(u[n]=c,c[2]=e(t,i,a))return!0}}};function F(e){return e.length>1?function(t,i,n){var o=e.length;while(o--)if(!e[o](t,i,n))return!1;return!0}:e[0]};function de(e,t,i){for(var n=0,r=t.length;r>n;n++)o(e,t[n],i);return i};function I(e,t,i,n,o){for(var s,a=[],r=0,l=e.length,u=null!=t;l>r;r++)(s=e[r])&&(!i||i(s,n,o))&&(a.push(s),u&&t.push(r));return a};function q(e,t,i,n,o,r){return n&&!n[s]&&(n=q(n)),o&&!o[s]&&(o=q(o,r)),u(function(r,s,a,l){var d,c,f,m=[],h=[],g=s.length,v=r||de(t||'*',a.nodeType?[a]:a,[]),p=!e||!r&&t?v:I(v,m,e,a,l),u=i?o||(r?e:g||n)?[]:s:p;if(i&&i(p,u,a,l),n){d=I(u,h),n(d,[],a,l),c=d.length;while(c--)(f=d[c])&&(u[h[c]]=!(p[h[c]]=f))};if(r){if(o||e){if(o){d=[],c=u.length;while(c--)(f=u[c])&&d.push(p[c]=f);o(null,u=[],d,l)};c=u.length;while(c--)(f=u[c])&&(d=o?z(r,f):m[c])>-1&&(r[d]=!(s[d]=f))}}else u=I(u===s?u.splice(g,u.length):u),o?o(null,s,u,l):y.apply(s,u)})};function P(e){for(var a,o,n,l=e.length,u=t.relative[e[0].type],c=u||t.relative[' '],i=u?1:0,d=X(function(e){return e===a},c,!0),f=X(function(e){return z(a,e)>-1},c,!0),r=[function(e,t,i){var n=!u&&(i||t!==E)||((a=t).nodeType?d(e,t,i):f(e,t,i));return a=null,n}];l>i;i++)if(o=t.relative[e[i].type])r=[X(F(r),o)];else{if(o=t.filter[e[i].type].apply(null,e[i].matches),o[s]){for(n=++i;l>n;n++)if(t.relative[e[n].type])break;return q(i>1&&F(r),i>1&&H(e.slice(0,i-1).concat({value:' '===e[i-2].type?'*':''})).replace(O,'$1'),o,n>i&&P(e.slice(i,n)),l>n&&P(e=e.slice(n)),l>n&&H(e))};r.push(o)};return F(r)};function fe(e,i){var n=i.length>0,r=e.length>0,s=function(s,a,u,c,d){var h,w,g,v=0,p='0',b=s&&[],m=[],x=E,z=s||r&&t.find.TAG('*',d),T=f+=null==x?1:Math.random()||.1,j=z.length;for(d&&(E=a!==l&&a);p!==j&&null!=(h=z[p]);p++){if(r&&h){w=0;while(g=e[w++])if(g(h,a,u)){c.push(h);break};d&&(f=T)};n&&((h=!g&&h)&&v--,s&&b.push(h))};if(v+=p,n&&p!==v){w=0;while(g=i[w++])g(b,m,a,u);if(s){if(v>0)while(p--)b[p]||m[p]||(m[p]=ge.call(c));m=I(m)};y.apply(c,m),d&&!s&&m.length>0&&v+i.length>1&&o.uniqueSort(c)};return d&&(f=T,E=x),b};return n?u(s):s};return V=o.compile=function(e,t){var n,o=[],r=[],i=J[e+' '];if(!i){t||(t=W(e)),n=t.length;while(n--)i=P(t[n]),i[s]?o.push(i):r.push(i);i=J(e,fe(r,o)),i.selector=e};return i},se=o.select=function(e,i,n,o){var l,s,a,d,f,c='function'==typeof e&&e,u=!o&&W(e=c.selector||e);if(n=n||[],1===u.length){if(s=u[0]=u[0].slice(0),s.length>2&&'ID'===(a=s[0]).type&&r.getById&&9===i.nodeType&&p&&t.relative[s[1].type]){if(i=(t.find.ID(a.matches[0].replace(m,g),i)||[])[0],!i)return n;c&&(i=i.parentNode),e=e.slice(s.shift().value.length)};l=Q.needsContext.test(e)?0:s.length;while(l--){if(a=s[l],t.relative[d=a.type])break;if((f=t.find[d])&&(o=f(a.matches[0].replace(m,g),N.test(s[0].type)&&M(i.parentNode)||i))){if(s.splice(l,1),e=o.length&&H(s),!e)return y.apply(n,o),n;break}}};return(c||V(e,u))(o,i,!p,n,N.test(e)&&M(i.parentNode)||i),n},r.sortStable=s.split('').sort(Y).join('')===s,r.detectDuplicates=!!j,w(),r.sortDetached=h(function(e){return 1&e.compareDocumentPosition(l.createElement('div'))}),h(function(e){return e.innerHTML='','#'===e.firstChild.getAttribute('href')})||D('type|href|height|width',function(e,t,i){return i?void 0:e.getAttribute(t,'type'===t.toLowerCase()?1:2)}),r.attributes&&h(function(e){return e.innerHTML='',e.firstChild.setAttribute('value',''),''===e.firstChild.getAttribute('value')})||D('value',function(e,t,i){return i||'input'!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),h(function(e){return null==e.getAttribute('disabled')})||D(Z,function(e,t,i){var n;return i?void 0:e[t]===!0?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),o}(e);t.find=j,t.expr=j.selectors,t.expr[':']=t.expr.pseudos,t.unique=j.uniqueSort,t.text=j.getText,t.isXMLDoc=j.isXML,t.contains=j.contains;var we=t.expr.match.needsContext,be=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,di=/^.[^:#\[\.,]*$/;function se(e,i,n){if(t.isFunction(i))return t.grep(e,function(e,t){return!!i.call(e,t,e)!==n});if(i.nodeType)return t.grep(e,function(e){return e===i!==n});if('string'==typeof i){if(di.test(i))return t.filter(i,e,n);i=t.filter(i,e)};return t.grep(e,function(e){return t.inArray(e,i)>=0!==n})};t.filter=function(e,i,n){var o=i[0];return n&&(e=':not('+e+')'),1===i.length&&1===o.nodeType?t.find.matchesSelector(o,e)?[o]:[]:t.find.matches(e,t.grep(i,function(e){return 1===e.nodeType}))},t.fn.extend({find:function(e){var i,n=[],o=this,r=o.length;if('string'!=typeof e)return this.pushStack(t(e).filter(function(){for(i=0;r>i;i++)if(t.contains(o[i],this))return!0}));for(i=0;r>i;i++)t.find(e,o[i],n);return n=this.pushStack(r>1?t.unique(n):n),n.selector=this.selector?this.selector+' '+e:e,n},filter:function(e){return this.pushStack(se(this,e||[],!1))},not:function(e){return this.pushStack(se(this,e||[],!0))},is:function(e){return!!se(this,'string'==typeof e&&we.test(e)?t(e):e||[],!1).length}});var W,o=e.document,si=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ri=t.fn.init=function(e,i){var n,r;if(!e)return this;if('string'==typeof e){if(n='<'===e.charAt(0)&&'>'===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:si.exec(e),!n||!n[1]&&i)return!i||i.jquery?(i||W).find(e):this.constructor(i).find(e);if(n[1]){if(i=i instanceof t?i[0]:i,t.merge(this,t.parseHTML(n[1],i&&i.nodeType?i.ownerDocument||i:o,!0)),be.test(n[1])&&t.isPlainObject(i))for(n in i)t.isFunction(this[n])?this[n](i[n]):this.attr(n,i[n]);return this};if(r=o.getElementById(n[2]),r&&r.parentNode){if(r.id!==n[2])return W.find(e);this.length=1,this[0]=r};return this.context=o,this.selector=e,this};return e.nodeType?(this.context=this[0]=e,this.length=1,this):t.isFunction(e)?'undefined'!=typeof W.ready?W.ready(e):e(t):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),t.makeArray(e,this))};ri.prototype=t.fn,W=t(o);var ui=/^(?:parents|prev(?:Until|All))/,li={children:!0,contents:!0,next:!0,prev:!0};t.extend({dir:function(e,i,n){var r=[],o=e[i];while(o&&9!==o.nodeType&&(void 0===n||1!==o.nodeType||!t(o).is(n)))1===o.nodeType&&r.push(o),o=o[i];return r},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}}),t.fn.extend({has:function(e){var i,n=t(e,this),o=n.length;return this.filter(function(){for(i=0;o>i;i++)if(t.contains(this,n[i]))return!0})},closest:function(e,i){for(var n,r=0,a=this.length,o=[],s=we.test(e)||'string'!=typeof e?t(e,i||this.context):0;a>r;r++)for(n=this[r];n&&n!==i;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&t.find.matchesSelector(n,e))){o.push(n);break};return this.pushStack(o.length>1?t.unique(o):o)},index:function(e){return e?'string'==typeof e?t.inArray(this[0],t(e)):t.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,i){return this.pushStack(t.unique(t.merge(this.get(),t(e,i))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function Qe(e,t){do e=e[t];while(e&&1!==e.nodeType);return e};t.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return t.dir(e,'parentNode')},parentsUntil:function(e,i,n){return t.dir(e,'parentNode',n)},next:function(e){return Qe(e,'nextSibling')},prev:function(e){return Qe(e,'previousSibling')},nextAll:function(e){return t.dir(e,'nextSibling')},prevAll:function(e){return t.dir(e,'previousSibling')},nextUntil:function(e,i,n){return t.dir(e,'nextSibling',n)},prevUntil:function(e,i,n){return t.dir(e,'previousSibling',n)},siblings:function(e){return t.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return t.sibling(e.firstChild)},contents:function(e){return t.nodeName(e,'iframe')?e.contentDocument||e.contentWindow.document:t.merge([],e.childNodes)}},function(e,i){t.fn[e]=function(n,o){var r=t.map(this,i,n);return'Until'!==e.slice(-5)&&(o=n),o&&'string'==typeof o&&(r=t.filter(o,r)),this.length>1&&(li[e]||(r=t.unique(r)),ui.test(e)&&(r=r.reverse())),this.pushStack(r)}});var c=/\S+/g,he={};function Xt(e){var i=he[e]={};return t.each(e.match(c)||[],function(e,t){i[t]=!0}),i};t.Callbacks=function(e){e='string'==typeof e?he[e]||Xt(e):t.extend({},e);var a,o,u,r,s,c,i=[],n=!e.once&&[],d=function(t){for(o=e.memory&&t,u=!0,s=c||0,c=0,r=i.length,a=!0;i&&r>s;s++)if(i[s].apply(t[0],t[1])===!1&&e.stopOnFalse){o=!1;break};a=!1,i&&(n?n.length&&d(n.shift()):o?i=[]:l.disable())},l={add:function(){if(i){var n=i.length;!function s(n){t.each(n,function(n,o){var r=t.type(o);'function'===r?e.unique&&l.has(o)||i.push(o):o&&o.length&&'string'!==r&&s(o)})}(arguments),a?r=i.length:o&&(c=n,d(o))};return this},remove:function(){return i&&t.each(arguments,function(e,n){var o;while((o=t.inArray(n,i,o))>-1)i.splice(o,1),a&&(r>=o&&r--,s>=o&&s--)}),this},has:function(e){return e?t.inArray(e,i)>-1:!(!i||!i.length)},empty:function(){return i=[],r=0,this},disable:function(){return i=n=o=void 0,this},disabled:function(){return!i},lock:function(){return n=void 0,o||l.disable(),this},locked:function(){return!n},fireWith:function(e,t){return!i||u&&!n||(t=t||[],t=[e,t.slice?t.slice():t],a?n.push(t):d(t)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!u}};return l},t.extend({Deferred:function(e){var o=[['resolve','done',t.Callbacks('once memory'),'resolved'],['reject','fail',t.Callbacks('once memory'),'rejected'],['notify','progress',t.Callbacks('memory')]],r='pending',n={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return t.Deferred(function(r){t.each(o,function(o,s){var a=t.isFunction(e[o])&&e[o];i[s[1]](function(){var e=a&&a.apply(this,arguments);e&&t.isFunction(e.promise)?e.promise().done(r.resolve).fail(r.reject).progress(r.notify):r[s[0]+'With'](this===n?r.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?t.extend(e,n):n}},i={};return n.pipe=n.then,t.each(o,function(e,t){var s=t[2],a=t[3];n[t[1]]=s.add,a&&s.add(function(){r=a},o[1^e][2].disable,o[2][2].lock),i[t[0]]=function(){return i[t[0]+'With'](this===i?n:this,arguments),this},i[t[0]+'With']=s.fireWith}),n.promise(i),e&&e.call(i,i),i},when:function(e){var i=0,o=m.call(arguments),n=o.length,s=1!==n||e&&t.isFunction(e.promise)?n:0,r=1===s?e:t.Deferred(),u=function(e,t,i){return function(n){t[e]=this,i[e]=arguments.length>1?m.call(arguments):n,i===a?r.notifyWith(t,i):--s||r.resolveWith(t,i)}},a,c,l;if(n>1)for(a=new Array(n),c=new Array(n),l=new Array(n);n>i;i++)o[i]&&t.isFunction(o[i].promise)?o[i].promise().done(u(i,l,o)).fail(r.reject).progress(u(i,c,a)):--s;return s||r.resolveWith(l,o),r.promise()}});var Q;t.fn.ready=function(e){return t.ready.promise().done(e),this},t.extend({isReady:!1,readyWait:1,holdReady:function(e){e?t.readyWait++:t.ready(!0)},ready:function(e){if(e===!0?!--t.readyWait:!t.isReady){if(!o.body)return setTimeout(t.ready);t.isReady=!0,e!==!0&&--t.readyWait>0||(Q.resolveWith(o,[t]),t.fn.triggerHandler&&(t(o).triggerHandler('ready'),t(o).off('ready')))}}});function ct(){o.addEventListener?(o.removeEventListener('DOMContentLoaded',h,!1),e.removeEventListener('load',h,!1)):(o.detachEvent('onreadystatechange',h),e.detachEvent('onload',h))};function h(){(o.addEventListener||'load'===event.type||'complete'===o.readyState)&&(ct(),t.ready())};t.ready.promise=function(i){if(!Q)if(Q=t.Deferred(),'complete'===o.readyState)setTimeout(t.ready);else if(o.addEventListener)o.addEventListener('DOMContentLoaded',h,!1),e.addEventListener('load',h,!1);else{o.attachEvent('onreadystatechange',h),e.attachEvent('onload',h);var r=!1;try{r=null==e.frameElement&&o.documentElement}catch(n){};r&&r.doScroll&&!function s(){if(!t.isReady){try{r.doScroll('left')}catch(e){return setTimeout(s,50)};ct(),t.ready()}}()};return Q.promise(i)};var u='undefined',ue;for(ue in t(n))break;n.ownLast='0'!==ue,n.inlineBlockNeedsLayout=!1,t(function(){var r,t,e,i;e=o.getElementsByTagName('body')[0],e&&e.style&&(t=o.createElement('div'),i=o.createElement('div'),i.style.cssText='position:absolute;border:0;width:0;height:0;top:0;left:-9999px',e.appendChild(i).appendChild(t),typeof t.style.zoom!==u&&(t.style.cssText='display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1',n.inlineBlockNeedsLayout=r=3===t.offsetWidth,r&&(e.style.zoom=1)),e.removeChild(i))}),function(){var t=o.createElement('div');if(null==n.deleteExpando){n.deleteExpando=!0;try{delete t.test}catch(e){n.deleteExpando=!1}};t=null}(),t.acceptData=function(e){var i=t.noData[(e.nodeName+' ').toLowerCase()],n=+e.nodeType||1;return 1!==n&&9!==n?!1:!i||i!==!0&&e.getAttribute('classid')===i};var ii=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ci=/([A-Z])/g;function tt(e,i,n){if(void 0===n&&1===e.nodeType){var r='data-'+i.replace(ci,'-$1').toLowerCase();if(n=e.getAttribute(r),'string'==typeof n){try{n='true'===n?!0:'false'===n?!1:'null'===n?null:+n+''===n?+n:ii.test(n)?t.parseJSON(n):n}catch(o){};t.data(e,i,n)}else n=void 0};return n};function le(e){var i;for(i in e)if(('data'!==i||!t.isEmptyObject(e[i]))&&'toJSON'!==i)return!1;return!0};function He(e,i,n,o){if(t.acceptData(e)){var l,s,u=t.expando,c=e.nodeType,a=c?t.cache:e,r=c?e[u]:e[u]&&u;if(r&&a[r]&&(o||a[r].data)||void 0!==n||'string'!=typeof i)return r||(r=c?e[u]=p.pop()||t.guid++:u),a[r]||(a[r]=c?{}:{toJSON:t.noop}),('object'==typeof i||'function'==typeof i)&&(o?a[r]=t.extend(a[r],i):a[r].data=t.extend(a[r].data,i)),s=a[r],o||(s.data||(s.data={}),s=s.data),void 0!==n&&(s[t.camelCase(i)]=n),'string'==typeof i?(l=s[i],null==l&&(l=s[t.camelCase(i)])):l=s,l}};function Ee(e,i,o){if(t.acceptData(e)){var a,l,u=e.nodeType,r=u?t.cache:e,s=u?e[t.expando]:t.expando;if(r[s]){if(i&&(a=o?r[s]:r[s].data)){t.isArray(i)?i=i.concat(t.map(i,t.camelCase)):i in a?i=[i]:(i=t.camelCase(i),i=i in a?[i]:i.split(' ')),l=i.length;while(l--)delete a[i[l]];if(o?!le(a):!t.isEmptyObject(a))return}(o||(delete r[s].data,le(r[s])))&&(u?t.cleanData([e],!0):n.deleteExpando||r!=r.window?delete r[s]:r[s]=null)}}};t.extend({cache:{},noData:{'applet ':!0,'embed ':!0,'object ':'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'},hasData:function(e){return e=e.nodeType?t.cache[e[t.expando]]:e[t.expando],!!e&&!le(e)},data:function(e,t,i){return He(e,t,i)},removeData:function(e,t){return Ee(e,t)},t$:function(e,t,i){return He(e,t,i,!0)},r$:function(e,t){return Ee(e,t,!0)}}),t.fn.extend({data:function(e,i){var r,o,s,n=this[0],a=n&&n.attributes;if(void 0===e){if(this.length&&(s=t.data(n),1===n.nodeType&&!t.t$(n,'parsedAttrs'))){r=a.length;while(r--)a[r]&&(o=a[r].name,0===o.indexOf('data-')&&(o=t.camelCase(o.slice(5)),tt(n,o,s[o])));t.t$(n,'parsedAttrs',!0)};return s};return'object'==typeof e?this.each(function(){t.data(this,e)}):arguments.length>1?this.each(function(){t.data(this,e,i)}):n?tt(n,e,t.data(n,e)):void 0},removeData:function(e){return this.each(function(){t.removeData(this,e)})}}),t.extend({queue:function(e,i,n){var o;return e?(i=(i||'fx')+'queue',o=t.t$(e,i),n&&(!o||t.isArray(n)?o=t.t$(e,i,t.makeArray(n)):o.push(n)),o||[]):void 0},dequeue:function(e,i){i=i||'fx';var n=t.queue(e,i),s=n.length,o=n.shift(),r=t.a$(e,i),a=function(){t.dequeue(e,i)};'inprogress'===o&&(o=n.shift(),s--),o&&('fx'===i&&n.unshift('inprogress'),delete r.stop,o.call(e,a,r)),!s&&r&&r.empty.fire()},a$:function(e,i){var n=i+'queueHooks';return t.t$(e,n)||t.t$(e,n,{empty:t.Callbacks('once memory').add(function(){t.r$(e,i+'queue'),t.r$(e,n)})})}}),t.fn.extend({queue:function(e,i){var n=2;return'string'!=typeof e&&(i=e,e='fx',n--),arguments.lengths;s++)i(e[s],n,l?o:o.call(e[s],s,i(e[s],n)));return r?e:u?i.call(e):c?i(e[0],n):a},ae=/^(?:checkbox|radio)$/i;!function(){var i=o.createElement('input'),t=o.createElement('div'),r=o.createDocumentFragment();if(t.innerHTML='
a',n.leadingWhitespace=3===t.firstChild.nodeType,n.tbody=!t.getElementsByTagName('tbody').length,n.htmlSerialize=!!t.getElementsByTagName('link').length,n.html5Clone='<:nav>'!==o.createElement('nav').cloneNode(!0).outerHTML,i.type='checkbox',i.checked=!0,r.appendChild(i),n.appendChecked=i.checked,t.innerHTML='',n.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,r.appendChild(t),t.innerHTML='',n.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,n.noCloneEvent=!0,t.attachEvent&&(t.attachEvent('onclick',function(){n.noCloneEvent=!1}),t.cloneNode(!0).click()),null==n.deleteExpando){n.deleteExpando=!0;try{delete t.test}catch(e){n.deleteExpando=!1}}}(),function(){var t,i,r=o.createElement('div');for(t in{submit:!0,change:!0,focusin:!0})i='on'+t,(n[t+'Bubbles']=i in e)||(r.setAttribute(i,'t'),n[t+'Bubbles']=r.attributes[i].expando===!1);r=null}();var ee=/^(?:input|select|textarea)$/i,Ot=/^key/,Bt=/^(?:mouse|pointer|contextmenu)|click/,it=/^(?:focusinfocus|focusoutblur)$/,Ae=/^([^.]*)(?:\.(.+)|)$/;function R(){return!0};function C(){return!1};function Le(){try{return o.activeElement}catch(e){}};t.event={global:{},add:function(e,i,n,o,r){var v,h,g,m,a,l,f,d,s,y,w,p=t.t$(e);if(p){n.handler&&(m=n,n=m.handler,r=m.selector),n.guid||(n.guid=t.guid++),(h=p.events)||(h=p.events={}),(l=p.handle)||(l=p.handle=function(e){return typeof t===u||e&&t.event.triggered===e.type?void 0:t.event.dispatch.apply(l.elem,arguments)},l.elem=e),i=(i||'').match(c)||[''],g=i.length;while(g--)v=Ae.exec(i[g])||[],s=w=v[1],y=(v[2]||'').split('.').sort(),s&&(a=t.event.special[s]||{},s=(r?a.delegateType:a.bindType)||s,a=t.event.special[s]||{},f=t.extend({type:s,origType:w,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&t.expr.match.needsContext.test(r),namespace:y.join('.')},m),(d=h[s])||(d=h[s]=[],d.delegateCount=0,a.setup&&a.setup.call(e,o,y,l)!==!1||(e.addEventListener?e.addEventListener(s,l,!1):e.attachEvent&&e.attachEvent('on'+s,l))),a.add&&(a.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,f):d.push(f),t.event.global[s]=!0);e=null}},remove:function(e,i,n,o,r){var m,a,u,y,h,p,l,d,s,g,v,f=t.hasData(e)&&t.t$(e);if(f&&(p=f.events)){i=(i||'').match(c)||[''],h=i.length;while(h--)if(u=Ae.exec(i[h])||[],s=v=u[1],g=(u[2]||'').split('.').sort(),s){l=t.event.special[s]||{},s=(o?l.delegateType:l.bindType)||s,d=p[s]||[],u=u[2]&&new RegExp('(^|\\.)'+g.join('\\.(?:.*\\.|)')+'(\\.|$)'),y=m=d.length;while(m--)a=d[m],!r&&v!==a.origType||n&&n.guid!==a.guid||u&&!u.test(a.namespace)||o&&o!==a.selector&&('**'!==o||!a.selector)||(d.splice(m,1),a.selector&&d.delegateCount--,l.remove&&l.remove.call(e,a));y&&!d.length&&(l.teardown&&l.teardown.call(e,g,f.handle)!==!1||t.removeEvent(e,s,f.handle),delete p[s])}else for(s in p)t.event.remove(e,s+i[h],n,o,!0);t.isEmptyObject(p)&&(delete f.handle,t.r$(e,'events'))}},trigger:function(i,n,r,s){var f,p,l,g,d,c,v,m=[r||o],u=z.call(i,'type')?i.type:i,h=z.call(i,'namespace')?i.namespace.split('.'):[];if(l=c=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!it.test(u+t.event.triggered)&&(u.indexOf('.')>=0&&(h=u.split('.'),u=h.shift(),h.sort()),p=u.indexOf(':')<0&&'on'+u,i=i[t.expando]?i:new t.Event(u,'object'==typeof i&&i),i.isTrigger=s?2:3,i.namespace=h.join('.'),i.namespace_re=i.namespace?new RegExp('(^|\\.)'+h.join('\\.(?:.*\\.|)')+'(\\.|$)'):null,i.result=void 0,i.target||(i.target=r),n=null==n?[i]:t.makeArray(n,[i]),d=t.event.special[u]||{},s||!d.trigger||d.trigger.apply(r,n)!==!1)){if(!s&&!d.noBubble&&!t.isWindow(r)){for(g=d.delegateType||u,it.test(g+u)||(l=l.parentNode);l;l=l.parentNode)m.push(l),c=l;c===(r.ownerDocument||o)&&m.push(c.defaultView||c.parentWindow||e)};v=0;while((l=m[v++])&&!i.isPropagationStopped())i.type=v>1?g:d.bindType||u,f=(t.t$(l,'events')||{})[i.type]&&t.t$(l,'handle'),f&&f.apply(l,n),f=p&&l[p],f&&f.apply&&t.acceptData(l)&&(i.result=f.apply(l,n),i.result===!1&&i.preventDefault());if(i.type=u,!s&&!i.isDefaultPrevented()&&(!d.n$||d.n$.apply(m.pop(),n)===!1)&&t.acceptData(r)&&p&&r[u]&&!t.isWindow(r)){c=r[p],c&&(r[p]=null),t.event.triggered=u;try{r[u]()}catch(a){};t.event.triggered=void 0,c&&(r[p]=c)};return i.result}},dispatch:function(e){e=t.event.fix(e);var s,r,i,n,a,l=[],u=m.call(arguments),c=(t.t$(this,'events')||{})[e.type]||[],o=t.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,e)!==!1){l=t.event.handlers.call(this,e,c),s=0;while((n=l[s++])&&!e.isPropagationStopped()){e.currentTarget=n.elem,a=0;while((i=n.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((t.event.special[i.origType]||{}).handle||i.handler).apply(n.elem,u),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))};return o.postDispatch&&o.postDispatch.call(this,e),e.result}},handlers:function(e,i){var r,s,o,a,u=[],l=i.delegateCount,n=e.target;if(l&&n.nodeType&&(!e.button||'click'!==e.type))for(;n!=this;n=n.parentNode||this)if(1===n.nodeType&&(n.disabled!==!0||'click'!==e.type)){for(o=[],a=0;l>a;a++)s=i[a],r=s.selector+' ',void 0===o[r]&&(o[r]=s.needsContext?t(r,this).index(n)>=0:t.find(r,this,null,[n]).length),o[r]&&o.push(s);o.length&&u.push({elem:n,handlers:o})};return l]','i'),U=/^\s+/,Ie=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Je=/<([\w:]+)/,et=/\s*$/g,l={option:[1,''],legend:[1,'
','
'],area:[1,'',''],param:[1,'',''],thead:[1,'','
'],tr:[2,'','
'],col:[2,'','
'],td:[3,'','
'],n$:n.htmlSerialize?[0,'','']:[1,'X
','
']},Ft=Ce(o),K=Ft.appendChild(o.createElement('div'));l.optgroup=l.option,l.tbody=l.tfoot=l.colgroup=l.caption=l.thead,l.th=l.td;function s(e,i){var r,o,a=0,n=typeof e.getElementsByTagName!==u?e.getElementsByTagName(i||'*'):typeof e.querySelectorAll!==u?e.querySelectorAll(i||'*'):void 0;if(!n)for(n=[],r=e.childNodes||e;null!=(o=r[a]);a++)!i||t.nodeName(o,i)?n.push(o):t.merge(n,s(o,i));return void 0===i||i&&t.nodeName(e,i)?t.merge([e],n):n};function dt(e){ae.test(e.type)&&(e.defaultChecked=e.checked)};function ze(e,i){return t.nodeName(e,'table')&&t.nodeName(11!==i.nodeType?i:i.firstChild,'tr')?e.getElementsByTagName('tbody')[0]||e.appendChild(e.ownerDocument.createElement('tbody')):e};function Oe(e){return e.type=(null!==t.find.attr(e,'type'))+'/'+e.type,e};function xe(e){var t=Ct.exec(e.type);return t?e.type=t[1]:e.removeAttribute('type'),e};function J(e,i){for(var o,n=0;null!=(o=e[n]);n++)t.t$(o,'globalEval',!i||t.t$(i[n],'globalEval'))};function ye(e,i){if(1===i.nodeType&&t.hasData(e)){var o,r,a,l=t.t$(e),n=t.t$(i,l),s=l.events;if(s){delete n.handle,n.events={};for(o in s)for(r=0,a=s[o].length;a>r;r++)t.event.add(i,o,s[o][r])};n.data&&(n.data=t.extend({},n.data))}};function ht(e,i){var o,s,r;if(1===i.nodeType){if(o=i.nodeName.toLowerCase(),!n.noCloneEvent&&i[t.expando]){r=t.t$(i);for(s in r.events)t.removeEvent(i,s,r.handle);i.removeAttribute(t.expando)};'script'===o&&i.text!==e.text?(Oe(i).text=e.text,xe(i)):'object'===o?(i.parentNode&&(i.outerHTML=e.outerHTML),n.html5Clone&&e.innerHTML&&!t.trim(i.innerHTML)&&(i.innerHTML=e.innerHTML)):'input'===o&&ae.test(e.type)?(i.defaultChecked=i.checked=e.checked,i.value!==e.value&&(i.value=e.value)):'option'===o?i.defaultSelected=i.selected=e.defaultSelected:('input'===o||'textarea'===o)&&(i.defaultValue=e.defaultValue)}};t.extend({clone:function(e,i,o){var r,c,l,a,u,d=t.contains(e.ownerDocument,e);if(n.html5Clone||t.isXMLDoc(e)||!Ge.test('<'+e.nodeName+'>')?l=e.cloneNode(!0):(K.innerHTML=e.outerHTML,K.removeChild(l=K.firstChild)),!(n.noCloneEvent&&n.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||t.isXMLDoc(e)))for(r=s(l),u=s(e),a=0;null!=(c=u[a]);++a)r[a]&&ht(c,r[a]);if(i)if(o)for(u=u||s(e),r=r||s(l),a=0;null!=(c=u[a]);a++)ye(c,r[a]);else ye(e,l);return r=s(l,'script'),r.length>0&&J(r,!d&&s(e,'script')),r=u=c=null,l},buildFragment:function(e,i,o,r){for(var c,a,v,u,m,g,f,y=e.length,p=Ce(i),d=[],h=0;y>h;h++)if(a=e[h],a||0===a)if('object'===t.type(a))t.merge(d,a.nodeType?[a]:a);else if(Wt.test(a)){u=u||p.appendChild(i.createElement('div')),m=(Je.exec(a)||['',''])[1].toLowerCase(),f=l[m]||l.n$,u.innerHTML=f[1]+a.replace(Ie,'<$1>')+f[2],c=f[0];while(c--)u=u.lastChild;if(!n.leadingWhitespace&&U.test(a)&&d.push(i.createTextNode(U.exec(a)[0])),!n.tbody){a='table'!==m||et.test(a)?''!==f[1]||et.test(a)?0:u:u.firstChild,c=a&&a.childNodes.length;while(c--)t.nodeName(g=a.childNodes[c],'tbody')&&!g.childNodes.length&&a.removeChild(g)};t.merge(d,u.childNodes),u.textContent='';while(u.firstChild)u.removeChild(u.firstChild);u=p.lastChild}else d.push(i.createTextNode(a));u&&p.removeChild(u),n.appendChecked||t.grep(s(d,'input'),dt),h=0;while(a=d[h++])if((!r||-1===t.inArray(a,r))&&(v=t.contains(a.ownerDocument,a),u=s(p.appendChild(a),'script'),v&&J(u),o)){c=0;while(a=u[c++])at.test(a.type||'')&&o.push(a)};return u=null,p},cleanData:function(e,i){for(var o,s,r,a,d=0,l=t.expando,c=t.cache,f=n.deleteExpando,h=t.event.special;null!=(o=e[d]);d++)if((i||t.acceptData(o))&&(r=o[l],a=r&&c[r])){if(a.events)for(s in a.events)h[s]?t.event.remove(o,s):t.removeEvent(o,s,a.handle);c[r]&&(delete c[r],f?delete o[l]:typeof o.removeAttribute!==u?o.removeAttribute(l):o[l]=null,p.push(r))}}}),t.fn.extend({text:function(e){return y(this,function(e){return void 0===e?t.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).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=ze(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=ze(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,i){for(var n,r=e?t.filter(e,this):this,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||t.cleanData(s(n)),n.parentNode&&(i&&t.contains(n.ownerDocument,n)&&J(s(n,'script')),n.parentNode.removeChild(n));return this},empty:function(){for(var e,i=0;null!=(e=this[i]);i++){1===e.nodeType&&t.cleanData(s(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&t.nodeName(e,'select')&&(e.options.length=0)};return this},clone:function(e,i){return e=null==e?!1:e,i=null==i?e:i,this.map(function(){return t.clone(this,e,i)})},html:function(e){return y(this,function(e){var o=this[0]||{},r=0,a=this.length;if(void 0===e)return 1===o.nodeType?o.innerHTML.replace(Et,''):void 0;if(!('string'!=typeof e||Lt.test(e)||!n.htmlSerialize&&Ge.test(e)||!n.leadingWhitespace&&U.test(e)||l[(Je.exec(e)||['',''])[1].toLowerCase()])){e=e.replace(Ie,'<$1>');try{for(;a>r;r++)o=this[r]||{},1===o.nodeType&&(t.cleanData(s(o,!1)),o.innerHTML=e);o=0}catch(i){}};o&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(i){e=this.parentNode,t.cleanData(s(this)),e&&e.replaceChild(i,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,i){e=Te.apply([],e);var u,o,c,a,p,l,r=0,d=this.length,m=this,g=d-1,f=e[0],h=t.isFunction(f);if(h||d>1&&'string'==typeof f&&!n.checkClone&&kt.test(f))return this.each(function(t){var n=m.eq(t);h&&(e[0]=f.call(this,t,n.html())),n.domManip(e,i)});if(d&&(l=t.buildFragment(e,this[0].ownerDocument,!1,this),u=l.firstChild,1===l.childNodes.length&&(l=u),u)){for(a=t.map(s(l,'script'),Oe),c=a.length;d>r;r++)o=l,r!==g&&(o=t.clone(o,!0,!0),c&&t.merge(a,s(o,'script'))),i.call(this[r],o,r);if(c)for(p=a[a.length-1].ownerDocument,t.map(a,xe),r=0;c>r;r++)o=a[r],at.test(o.type||'')&&!t.t$(o,'globalEval')&&t.contains(p,o)&&(o.src?t.h$&&t.h$(o.src):t.globalEval((o.text||o.textContent||o.innerHTML||'').replace(St,'')));l=u=null};return this}}),t.each({appendTo:'append',prependTo:'prepend',insertBefore:'before',insertAfter:'after',replaceAll:'replaceWith'},function(e,i){t.fn[e]=function(e){for(var o,n=0,r=[],s=t(e),a=s.length-1;a>=n;n++)o=n===a?this:this.clone(!0),t(s[n])[i](o),Y.apply(r,o.get());return this.pushStack(r)}});var L,Ye={};function me(i,n){var r,o=t(n.createElement(i)).appendTo(n.body),s=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(o[0]))?r.display:t.css(o[0],'display');return o.detach(),s};function I(e){var n=o,i=Ye[e];return i||(i=me(e,n),'none'!==i&&i||(L=(L||t(''}else{a+='
'};a+='
'+o.closeText+'
';r.jqib=e(a).appendTo(f);r.jqi=r.jqib.children('.'+o.prefix);r.jqif=r.jqib.children('.'+o.prefix+'fade');if(i.constructor===String){i={state0:{title:o.title,html:i,buttons:o.buttons,position:o.position,focus:o.focus,defaultButton:o.defaultButton,submit:o.submit}}};r.options.states={};var l,s;for(l in i){s=e.extend({},t.defaults.state,{name:l},i[l]);r.addState(s.name,s);if(r.currentStateName===''){r.currentStateName=s.name}};r.jqi.on('click','.'+o.prefix+'buttons button',function(t){var s=e(this),l=s.parents('.'+o.prefix+'state'),d=l.data('jqi-name'),n=r.options.states[d],f=l.children('.'+o.prefix+'message'),u=n.buttons[s.text()]||n.buttons[s.html()],i={};if(r.options.buttonTimeout>0){r.disableStateButtons(d);setTimeout(function(){r.enableStateButtons(d)},r.options.buttonTimeout)};if(u===undefined){for(var c in n.buttons){if(n.buttons[c].title===s.text()||n.buttons[c].title===s.html()){u=n.buttons[c].value}}};e.each(r.jqi.children('form').serializeArray(),function(e,t){if(i[t.name]===undefined){i[t.name]=t.value}else if(typeof i[t.name]===Array||typeof i[t.name]==='object'){i[t.name].push(t.value)}else{i[t.name]=[i[t.name],t.value]}});var a=new e.Event('impromptu:submit');a.stateName=n.name;a.state=l;l.trigger(a,[u,f,i]);if(!a.isDefaultPrevented()){r.close(!0,u,f,i)}});var u=function(){if(o.persistent){var t=(o.top.toString().indexOf('%')>=0?(c.height()*(parseInt(o.top,10)/100)):parseInt(o.top,10)),i=parseInt(r.jqi.css('top').replace('px',''),10)-t;e('html,body').animate({scrollTop:i},'fast',function(){var t=0;r.jqib.addClass(o.prefix+'warning');var e=setInterval(function(){r.jqib.toggleClass(o.prefix+'warning');if(t++>1){clearInterval(e);r.jqib.removeClass(o.prefix+'warning')}},100)})}else{r.close(!0)}},d=function(t){var n=(window.event)?event.keyCode:t.keyCode;if(n===27){u()};if(n===13){var a=r.getCurrentState().find('.'+o.prefix+'defaultbutton'),c=e(t.target);if(c.is('textarea,.'+o.prefix+'button')===!1&&a.length>0){t.preventDefault();a.click()}};if(n===9){var i=e('input,select,textarea,button',r.getCurrentState()),l=!t.shiftKey&&t.target===i[i.length-1],s=t.shiftKey&&t.target===i[0];if(l||s){setTimeout(function(){if(!i){return};var e=i[s===!0?i.length-1:0];if(e){e.focus()}},10);return!1}}};r.position();r.style();r.c$=function(e){r.position(e)};c.resize({animate:!1},r.c$);r.jqif.click(u);r.jqi.find('.'+o.prefix+'close').click(function(){r.close()});r.jqi.find('.'+o.prefix+'form').submit(function(){return!1});r.jqib.on('keydown',d).on('impromptu:loaded',o.loaded).on('impromptu:close',o.close).on('impromptu:statechanging',o.statechanging).on('impromptu:statechanged',o.statechanged);r.jqif[o.show](o.overlayspeed);r.jqi[o.show](o.promptspeed,function(){r.goToState(isNaN(o.initialState)?o.initialState:r.jqi.find('.'+o.prefix+'states .'+o.prefix+'state').eq(o.initialState).data('jqi-name'));r.jqib.trigger('impromptu:loaded')});if(o.timeout>0){r.timeout=setTimeout(function(){r.close(!0)},o.timeout)};return r},close:function(i,n,o,r){var s=this;t.removeFromStack(s.id);if(s.timeout){clearTimeout(s.timeout);s.timeout=!1};if(s.jqib){s.jqib[s.options.hide]('fast',function(){s.jqib.trigger('impromptu:close',[n,o,r]);s.jqib.remove();e(window).off('resize',s.c$);if(typeof i==='function'){i()}})};s.currentStateName='';return s},addState:function(i,n,o){var f=this,l='',u=null,m='',g='',r=f.options,h=e.isFunction(n.position)?n.position():n.position,w=f.jqi.find('.'+r.prefix+'states'),c=[],p,v,d,s,y,a=0;n=e.extend({},t.defaults.state,{name:i},n);if(e.isPlainObject(h)&&h.arrow!==null){m='
'};if(n.title&&n.title!==''){g='
'+n.title+'
'};p=n.html;if(typeof n.html==='function'){p='Error: html function must return text'};l+='
'+m+g+'
'+p+'
';if(e.isArray(n.buttons)){c=n.buttons}else if(e.isPlainObject(n.buttons)){for(d in n.buttons){if(n.buttons.hasOwnProperty(d)){c.push({title:d,value:n.buttons[d]})}}};for(a=0,y=c.length;a'+s.title+''};l+='
';u=e(l).css({display:'none'});u.on('impromptu:submit',n.submit);if(o!==undefined){f.getState(o).after(u)}else{w.append(u)};f.options.states[i]=n;return u},removeState:function(e,t){var i=this,n=i.getState(e),o=function(){n.remove()};if(n.length===0){return!1};if(n.css('display')!=='none'){if(t!==undefined&&i.getState(t).length>0){i.goToState(t,!1,o)}else if(n.next().length>0){i.nextState(o)}else if(n.prev().length>0){i.prevState(o)}else{i.close()}}else{n.slideUp('slow',o)};return!0},getApi:function(){return this},getBox:function(){return this.jqib},getPrompt:function(){return this.jqi},getState:function(e){return this.jqi.find('[data-jqi-name="'+e+'"]')},getCurrentState:function(){return this.getState(this.getCurrentStateName())},getCurrentStateName:function(){return this.currentStateName},disableStateButtons:function(t,i,n){var o=this;if(e.isArray(t)){i=t;t=null};o.getState(t||o.getCurrentStateName()).find('.'+o.options.prefix+'button').each(function(t,o){if(i===undefined||e.inArray(o.value,i)!==-1){o.disabled=!n}})},enableStateButtons:function(e,t){this.disableStateButtons(e,t,!0)},position:function(t){var i=this,f=e.fx.off,p=i.getCurrentState(),a=i.options.states[p.data('jqi-name')],n=a?e.isFunction(a.position)?a.position():a.position:undefined,h=e(window),c=document.body.scrollHeight,s=e(window).height(),m=e(document).height(),d=(c>s)?c:s,l=parseInt(h.scrollTop(),10),o=l+(i.options.top.toString().indexOf('%')>=0?(s*(parseInt(i.options.top,10)/100)):parseInt(i.options.top,10));if(t!==undefined&&t.data.animate===!1){e.fx.off=!0};i.jqib.css({position:'absolute',height:d,width:'100%',top:0,left:0,right:0,bottom:0});i.jqif.css({position:'fixed',height:d,width:'100%',top:0,left:0,right:0,bottom:0});if(n&&n.container){var r=e(n.container).offset(),u=!1;if(e.isPlainObject(r)&&r.top!==undefined){o=(r.top+n.y)-(i.options.top.toString().indexOf('%')>=0?(s*(parseInt(i.options.top,10)/100)):parseInt(i.options.top,10));i.jqi.css({position:'absolute'});i.jqi.animate({top:r.top+n.y,left:r.left+n.x,marginLeft:0,width:(n.width!==undefined)?n.width:null},function(){if(!u&&(r.top+n.y+i.jqi.outerHeight(!0))>(l+s)){e('html,body').animate({scrollTop:o},'slow','swing',function(){});u=!0}});if(ol+s){e('html,body').animate({scrollTop:o},'slow','swing',function(){});u=!0}}}else if(n&&n.width){i.jqi.css({position:'absolute',left:'50%'});i.jqi.animate({top:n.y||o,left:n.x||'50%',marginLeft:((n.width/2)*-1),width:n.width})}else{i.jqi.css({position:'absolute',top:o,left:'50%',marginLeft:((i.jqi.outerWidth(!1)/2)*-1)})};if(t!==undefined&&t.data.animate===!1){e.fx.off=f}},style:function(){var e=this;e.jqif.css({zIndex:e.options.zIndex,display:'none',opacity:e.options.opacity});e.jqi.css({zIndex:e.options.zIndex+1,display:'none'});e.jqib.css({zIndex:e.options.zIndex})},goToState:function(t,i,n){var o=this,d=o.jqi,l=o.options,s=o.getState(t),a=l.states[s.data('jqi-name')],u=new e.Event('impromptu:statechanging'),r=o.options;if(a!==undefined){if(typeof a.html==='function'){var c=a.html;s.find('.'+r.prefix+'message ').html(c())};if(typeof i==='function'){n=i;i=!1};o.jqib.trigger(u,[o.getCurrentStateName(),t]);if(!u.isDefaultPrevented()&&s.length>0){o.jqi.find('.'+r.prefix+'parentstate').removeClass(r.prefix+'parentstate');if(i){o.jqi.find('.'+r.prefix+'substate').not(s).slideUp(l.promptspeed).removeClass('.'+r.prefix+'substate').find('.'+r.prefix+'arrow').hide();o.jqi.find('.'+r.prefix+'state:visible').addClass(r.prefix+'parentstate');s.addClass(r.prefix+'substate')}else{o.jqi.find('.'+r.prefix+'state').not(s).slideUp(l.promptspeed).find('.'+r.prefix+'arrow').hide()};o.currentStateName=a.name;s.slideDown(l.promptspeed,function(){var i=e(this);o.enableStateButtons();if(typeof(a.focus)==='string'){i.find(a.focus).eq(0).focus()}else{i.find('.'+r.prefix+'defaultbutton').focus()};i.find('.'+r.prefix+'arrow').show(l.promptspeed);if(typeof n==='function'){o.jqib.on('impromptu:statechanged',n)};o.jqib.trigger('impromptu:statechanged',[t]);if(typeof n==='function'){o.jqib.off('impromptu:statechanged',n)}});if(!i){o.position()}}};return s},nextState:function(e){var i=this,t=i.getCurrentState().next();if(t.length>0){i.goToState(t.data('jqi-name'),e)};return t},prevState:function(e){var i=this,t=i.getCurrentState().prev();if(t.length>0){i.goToState(t.data('jqi-name'),e)};return t}};e.prompt=function(e,i){var n=new t(e,i);return n.jqi};e.each(t,function(t,i){e.prompt[t]=i});e.each(t.prototype,function(i,n){e.prompt[i]=function(){var e=t.getLast();if(e&&typeof e[i]==='function'){return e[i].apply(e,arguments)}}});e.fn.prompt=function(t){if(t===undefined){t={}};if(t.withDataAndEvents===undefined){t.withDataAndEvents=!1};e.prompt(e(this).clone(t.withDataAndEvents).html(),t)};window.Impromptu=t})),interface=function(){};jQuery.iUtil={getPosition:function(e){var n=0,o=0,i=e.style,r=!1;if(jQuery(e).css('display')=='none'){var s=i.visibility,a=i.position;r=!0;i.visibility='hidden';i.display='block';i.position='absolute'};var t=e;while(t){n+=t.offsetLeft+(t.currentStyle&&!jQuery.browser.opera?parseInt(t.currentStyle.borderLeftWidth)||0:0);o+=t.offsetTop+(t.currentStyle&&!jQuery.browser.opera?parseInt(t.currentStyle.borderTopWidth)||0:0);t=t.offsetParent};t=e;while(t&&t.tagName&&t.tagName.toLowerCase()!='body'){n-=t.scrollLeft||0;o-=t.scrollTop||0;t=t.parentNode};if(r==!0){i.display='none';i.position=a;i.visibility=s};return{x:n,y:o}},getPositionLite:function(e){var t=0,i=0;while(e){t+=e.offsetLeft||0;i+=e.offsetTop||0;e=e.offsetParent};return{x:t,y:i}},getSize:function(e){var s=jQuery.css(e,'width'),a=jQuery.css(e,'height'),i=0,n=0,t=e.style;if(jQuery(e).css('display')!='none'){i=e.offsetWidth;n=e.offsetHeight}else{var o=t.visibility,r=t.position;t.visibility='hidden';t.display='block';t.position='absolute';i=e.offsetWidth;n=e.offsetHeight;t.display='none';t.position=r;t.visibility=o};return{w:s,h:a,wb:i,hb:n}},getSizeLite:function(e){return{wb:e.offsetWidth||0,hb:e.offsetHeight||0}},getClient:function(e){var i,n,t;if(e){n=e.clientWidth;i=e.clientHeight}else{t=document.documentElement;n=window.innerWidth||self.innerWidth||(t&&t.clientWidth)||document.body.clientWidth;i=window.innerHeight||self.innerHeight||(t&&t.clientHeight)||document.body.clientHeight};return{w:n,h:i}},getScroll:function(e){var t=0,i=0,n=0,o=0,r=0,s=0;if(e&&e.nodeName.toLowerCase()!='body'){t=e.scrollTop;i=e.scrollLeft;n=e.scrollWidth;o=e.scrollHeight;r=0;s=0}else{if(document.documentElement){t=document.documentElement.scrollTop;i=document.documentElement.scrollLeft;n=document.documentElement.scrollWidth;o=document.documentElement.scrollHeight}else if(document.body){t=document.body.scrollTop;i=document.body.scrollLeft;n=document.body.scrollWidth;o=document.body.scrollHeight};r=self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;s=self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0};return{t:t,l:i,w:n,h:o,iw:r,ih:s}},getMargins:function(e,t){var i=jQuery(e),n=i.css('marginTop')||'',o=i.css('marginRight')||'',r=i.css('marginBottom')||'',s=i.css('marginLeft')||'';if(t)return{t:parseInt(n)||0,r:parseInt(o)||0,b:parseInt(r)||0,l:parseInt(s)};else return{t:n,r:o,b:r,l:s}},getPadding:function(e,t){var i=jQuery(e),n=i.css('paddingTop')||'',o=i.css('paddingRight')||'',r=i.css('paddingBottom')||'',s=i.css('paddingLeft')||'';if(t)return{t:parseInt(n)||0,r:parseInt(o)||0,b:parseInt(r)||0,l:parseInt(s)};else return{t:n,r:o,b:r,l:s}},getBorder:function(e,t){var i=jQuery(e),n=i.css('borderTopWidth')||'',o=i.css('borderRightWidth')||'',r=i.css('borderBottomWidth')||'',s=i.css('borderLeftWidth')||'';if(t)return{t:parseInt(n)||0,r:parseInt(o)||0,b:parseInt(r)||0,l:parseInt(s)||0};else return{t:n,r:o,b:r,l:s}},getPointer:function(e){var t=e.pageX||(e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))||0,i=e.pageY||(e.clientY+(document.documentElement.scrollTop||document.body.scrollTop))||0;return{x:t,y:i}},traverseDOM:function(e,t){t(e);e=e.firstChild;while(e){jQuery.iUtil.traverseDOM(e,t);e=e.nextSibling}},purgeEvents:function(e){jQuery.iUtil.traverseDOM(e,function(e){for(var t in e){if(typeof e[t]==='function'){e[t]=null}}})},centerEl:function(e,t){var i=jQuery.iUtil.getScroll(),n=jQuery.iUtil.getSize(e);if(!t||t=='vertically')jQuery(e).css({top:i.t+((Math.max(i.h,i.ih)-i.t-n.hb)/2)+'px'});if(!t||t=='horizontally')jQuery(e).css({left:i.l+((Math.max(i.w,i.iw)-i.l-n.wb)/2)+'px'})},fixPNG:function(e,t){var n=jQuery('img[@src*="png"]',e||document),i;n.each(function(){i=this.src;this.src=t;this.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+i+'\')'})}};[].indexOf||(Array.prototype.indexOf=function(e,t){t=(t==null)?0:t;var n=this.length;for(var i=t;ijQuery.iResize.resizeElement.resizeOptions.maxBottom){newSizes.height=jQuery.iResize.resizeElement.resizeOptions.maxBottom-newPosition.top;if(jQuery.iResize.resizeElement.resizeOptions.ratio){newSizes.width=newSizes.height/jQuery.iResize.resizeElement.resizeOptions.ratio}};if(newPosition.left+newSizes.width>jQuery.iResize.resizeElement.resizeOptions.maxRight){newSizes.width=jQuery.iResize.resizeElement.resizeOptions.maxRight-newPosition.left;if(jQuery.iResize.resizeElement.resizeOptions.ratio){newSizes.height=newSizes.width*jQuery.iResize.resizeElement.resizeOptions.ratio}};var t=!1;if(jQuery.iResize.resizeElement.resizeOptions.onResize){t=jQuery.iResize.resizeElement.resizeOptions.onResize.apply(jQuery.iResize.resizeElement,[newSizes,newPosition]);if(t){if(t.sizes){jQuery.extend(newSizes,t.sizes)};if(t.position){jQuery.extend(newPosition,t.position)}}};elS=jQuery.iResize.resizeElement.style;elS.left=newPosition.left+'px';elS.top=newPosition.top+'px';elS.width=newSizes.width+'px';elS.height=newSizes.height+'px';return!1},build:function(e){if(!e||!e.handlers||e.handlers.constructor!=Object){return};return this.each(function(){var t=this;t.resizeOptions=e;t.resizeOptions.minWidth=e.minWidth||10;t.resizeOptions.minHeight=e.minHeight||10;t.resizeOptions.maxWidth=e.maxWidth||3000;t.resizeOptions.maxHeight=e.maxHeight||3000;t.resizeOptions.minTop=e.minTop||-1000;t.resizeOptions.minLeft=e.minLeft||-1000;t.resizeOptions.maxRight=e.maxRight||3000;t.resizeOptions.maxBottom=e.maxBottom||3000;elPosition=jQuery(t).css('position');if(!(elPosition=='relative'||elPosition=='absolute')){t.style.position='relative'};directions=/n|ne|e|se|s|sw|w|nw/g;for(i in t.resizeOptions.handlers){if(i.toLowerCase().match(directions)!=null){if(t.resizeOptions.handlers[i].constructor==String){handle=jQuery(t.resizeOptions.handlers[i]);if(handle.size()>0){t.resizeOptions.handlers[i]=handle.get(0)}};if(t.resizeOptions.handlers[i].tagName){t.resizeOptions.handlers[i].resizeElement=t;t.resizeOptions.handlers[i].resizeDirection=i;jQuery(t.resizeOptions.handlers[i]).bind('mousedown',jQuery.iResize.start)}}};if(t.resizeOptions.dragHandle){if(typeof t.resizeOptions.dragHandle==='string'){handleEl=jQuery(t.resizeOptions.dragHandle);if(handleEl.size()>0){handleEl.each(function(){this.dragEl=t});handleEl.bind('mousedown',jQuery.iResize.startDrag)}}else if(t.resizeOptions.dragHandle==!0){jQuery(this).bind('mousedown',jQuery.iResize.startDrag)}}})},destroy:function(){return this.each(function(){var e=this;for(i in e.resizeOptions.handlers){e.resizeOptions.handlers[i].resizeElement=null;e.resizeOptions.handlers[i].resizeDirection=null;jQuery(e.resizeOptions.handlers[i]).unbind('mousedown',jQuery.iResize.start)};if(e.resizeOptions.dragHandle){if(typeof e.resizeOptions.dragHandle==='string'){handle=jQuery(e.resizeOptions.dragHandle);if(handle.size()>0){handle.unbind('mousedown',jQuery.iResize.startDrag)}}else if(e.resizeOptions.dragHandle==!0){jQuery(this).unbind('mousedown',jQuery.iResize.startDrag)}};e.resizeOptions=null})}};jQuery.fn.extend({Resizable:jQuery.iResize.build,ResizableDestroy:jQuery.iResize.destroy});jQuery.fxCheckTag=function(e){if(/^tr$|^td$|^tbody$|^caption$|^thead$|^tfoot$|^col$|^colgroup$|^th$|^body$|^header$|^script$|^frame$|^frameset$|^option$|^optgroup$|^meta$/i.test(e.nodeName))return!1;else return!0};jQuery.fx.destroyWrapper=function(e,t){var n=e.firstChild,i=n.style;i.position=t.position;i.marginTop=t.margins.t;i.marginLeft=t.margins.l;i.marginBottom=t.margins.b;i.marginRight=t.margins.r;i.top=t.top+'px';i.left=t.left+'px';e.parentNode.insertBefore(n,e);e.parentNode.removeChild(e)};jQuery.fx.buildWrapper=function(e){if(!jQuery.fxCheckTag(e))return!1;var o=jQuery(e),n=e.style,u=!1;if(o.css('display')=='none'){oldVisibility=o.css('visibility');o.css('visibility','hidden').show();u=!0};var t={};t.position=o.css('position');t.sizes=jQuery.iUtil.getSize(e);t.margins=jQuery.iUtil.getMargins(e);var l=e.currentStyle?e.currentStyle.styleFloat:o.css('float');t.top=parseInt(o.css('top'))||0;t.left=parseInt(o.css('left'))||0;var c='w_'+parseInt(Math.random()*10000),r=document.createElement(/^img$|^br$|^input$|^hr$|^select$|^textarea$|^object$|^iframe$|^button$|^form$|^table$|^ul$|^dl$|^ol$/i.test(e.nodeName)?'div':e.nodeName);jQuery.attr(r,'id',c);var d=jQuery(r).addClass('fxWrapper'),i=r.style,s=0,a=0;if(t.position=='relative'||t.position=='absolute'){s=t.top;a=t.left};i.top=s+'px';i.left=a+'px';i.position=t.position!='relative'&&t.position!='absolute'?'relative':t.position;i.height=t.sizes.hb+'px';i.width=t.sizes.wb+'px';i.marginTop=t.margins.t;i.marginRight=t.margins.r;i.marginBottom=t.margins.b;i.marginLeft=t.margins.l;i.overflow='hidden';if(jQuery.browser.msie){i.styleFloat=l}else{i.cssFloat=l};if(jQuery.browser=='msie'){n.filter='alpha(opacity='+0.999*100+')'};n.opacity=0.999;e.parentNode.insertBefore(r,e);r.appendChild(e);n.marginTop='0px';n.marginRight='0px';n.marginBottom='0px';n.marginLeft='0px';n.position='absolute';n.listStyle='none';n.top='0px';n.left='0px';if(u){o.hide();n.visibility=oldVisibility};return{oldStyle:t,wrapper:jQuery(r)}};jQuery.fx.namedColors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};jQuery.fx.parseColor=function(e,t){if(jQuery.fx.namedColors[e])return{r:jQuery.fx.namedColors[e][0],g:jQuery.fx.namedColors[e][1],b:jQuery.fx.namedColors[e][2]};else if(result=/^rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)$/.exec(e))return{r:parseInt(result[1]),g:parseInt(result[2]),b:parseInt(result[3])};else if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)$/.exec(e))return{r:parseFloat(result[1])*2.55,g:parseFloat(result[2])*2.55,b:parseFloat(result[3])*2.55};else if(result=/^#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/.exec(e))return{r:parseInt('0x'+result[1]+result[1]),g:parseInt('0x'+result[2]+result[2]),b:parseInt('0x'+result[3]+result[3])};else if(result=/^#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/.exec(e))return{r:parseInt('0x'+result[1]),g:parseInt('0x'+result[2]),b:parseInt('0x'+result[3])};else return t==!0?!1:{r:255,g:255,b:255}};jQuery.fx.cssProps={borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:1,borderTopWidth:1,bottom:1,fontSize:1,height:1,left:1,letterSpacing:1,lineHeight:1,marginBottom:1,marginLeft:1,marginRight:1,marginTop:1,maxHeight:1,maxWidth:1,minHeight:1,minWidth:1,opacity:1,outlineOffset:1,outlineWidth:1,paddingBottom:1,paddingLeft:1,paddingRight:1,paddingTop:1,right:1,textIndent:1,top:1,width:1,zIndex:1};jQuery.fx.colorCssProps={backgroundColor:1,borderBottomColor:1,borderLeftColor:1,borderRightColor:1,borderTopColor:1,color:1,outlineColor:1};jQuery.fx.cssSides=['Top','Right','Bottom','Left'];jQuery.fx.cssSidesEnd={'borderWidth':['border','Width'],'borderColor':['border','Color'],'margin':['margin',''],'padding':['padding','']};jQuery.fn.extend({animate:function(e,t,i,n){return this.queue(function(){var o=jQuery.speed(t,i,n),r=new jQuery.fxe(this,o,e)})},pause:function(e,t){return this.queue(function(){var i=jQuery.speed(e,t),n=new jQuery.pause(this,i)})},stop:function(e){return this.each(function(){if(this.animationHandler)jQuery.stopAnim(this,e)})},stopAll:function(e){return this.each(function(){if(this.animationHandler)jQuery.stopAnim(this,e);if(this.queue&&this.queue['fx'])this.queue.fx=[]})}});jQuery.extend({pause:function(e,t){var i=this,n;i.step=function(){if(jQuery.isFunction(t.complete))t.complete.apply(e)};i.timer=setInterval(function(){i.step()},t.duration);e.animationHandler=i},easing:{linear:function(e,t,i,n,o){return((-Math.cos(e*Math.PI)/2)+0.5)*n+i}},fxe:function(e,t,i){var r=this,m,o=e.style,h=jQuery.css(e,'overflow'),c=jQuery.css(e,'display'),n={};r.startTime=(new Date()).getTime();t.easing=t.easing&&jQuery.easing[t.easing]?t.easing:'linear';r.getValues=function(i,r){if(jQuery.fx.cssProps[i]){if(r=='show'||r=='hide'||r=='toggle'){if(!e.orig)e.orig={};var f=parseFloat(jQuery.css(e,i));e.orig[i]=f&&f>-10000?f:(parseFloat(jQuery.css(e,i))||0);r=r=='toggle'?(c=='none'?'show':'hide'):r;t[r]=!0;n[i]=r=='show'?[0,e.orig[i]]:[e.orig[i],0];if(i!='opacity')o[i]=n[i][0]+(i!='zIndex'&&i!='fontWeight'?'px':'');else jQuery.attr(o,'opacity',n[i][0])}else{n[i]=[parseFloat(jQuery.css(e,i)),parseFloat(r)||0]}}else if(jQuery.fx.colorCssProps[i])n[i]=[jQuery.fx.parseColor(jQuery.css(e,i)),jQuery.fx.parseColor(r)];else if(/^margin$|padding$|border$|borderColor$|borderWidth$/i.test(i)){var s=r.replace(/\s+/g,' ').replace(/rgb\s*\(\s*/g,'rgb(').replace(/\s*,\s*/g,',').replace(/\s*\)/g,')').match(/([^\s]+)/g);switch(i){case'margin':case'padding':case'borderWidth':case'borderColor':s[3]=s[3]||s[1]||s[0];s[2]=s[2]||s[0];s[1]=s[1]||s[0];for(var a=0;at.duration+r.startTime){clearInterval(r.timer);r.timer=null;for(i in n){if(i=='opacity')jQuery.attr(o,'opacity',n[i][1]);else if(typeof n[i][1]=='object')o[i]='rgb('+n[i][1].r+','+n[i][1].g+','+n[i][1].b+')';else o[i]=n[i][1]+(i!='zIndex'&&i!='fontWeight'?'px':'')};if(t.hide||t.show)for(var i in e.orig)if(i=='opacity')jQuery.attr(o,i,e.orig[i]);else o[i]='';o.display=t.hide?'none':(c!='none'?c:'block');o.overflow=h;e.animationHandler=null;if(jQuery.isFunction(t.complete))t.complete.apply(e)}else{var s=u-this.startTime,a=s/t.duration;for(i in n){if(typeof n[i][1]=='object'){o[i]='rgb('+parseInt(jQuery.easing[t.easing](a,s,n[i][0].r,(n[i][1].r-n[i][0].r),t.duration))+','+parseInt(jQuery.easing[t.easing](a,s,n[i][0].g,(n[i][1].g-n[i][0].g),t.duration))+','+parseInt(jQuery.easing[t.easing](a,s,n[i][0].b,(n[i][1].b-n[i][0].b),t.duration))+')'}else{var l=jQuery.easing[t.easing](a,s,n[i][0],(n[i][1]-n[i][0]),t.duration);if(i=='opacity')jQuery.attr(o,'opacity',l);else o[i]=l+(i!='zIndex'&&i!='fontWeight'?'px':'')}}}};r.timer=setInterval(function(){r.step()},13);e.animationHandler=r},stopAnim:function(e,t){if(t)e.animationHandler.startTime-=100000000;else{window.clearInterval(e.animationHandler.timer);e.animationHandler=null;jQuery.dequeue(e,'fx')}}});jQuery.parseStyle=function(e){var i={};if(typeof e=='string'){e=e.toLowerCase().split(';');for(var t=0;t');jQuery.transferHelper=jQuery('#transferHelper')};jQuery.transferHelper.css('display','block').css('position','absolute');var i=this;i.el=jQuery(e);if(!t||!t.to){return};if(t.to.constructor==String&&document.getElementById(t.to)){t.to=document.getElementById(t.to)}else if(!t.to.childNodes){return};if(!t.duration){t.duration=500};i.duration=t.duration;i.to=t.to;i.classname=t.className;i.complete=t.complete;if(i.classname){jQuery.transferHelper.addClass(i.classname)};i.diffWidth=0;i.diffHeight=0;if(jQuery.boxModel){i.diffWidth=(parseInt(jQuery.transferHelper.css('borderLeftWidth'))||0)+(parseInt(jQuery.transferHelper.css('borderRightWidth'))||0)+(parseInt(jQuery.transferHelper.css('paddingLeft'))||0)+(parseInt(jQuery.transferHelper.css('paddingRight'))||0);i.diffHeight=(parseInt(jQuery.transferHelper.css('borderTopWidth'))||0)+(parseInt(jQuery.transferHelper.css('borderBottomWidth'))||0)+(parseInt(jQuery.transferHelper.css('paddingTop'))||0)+(parseInt(jQuery.transferHelper.css('paddingBottom'))||0)};i.start=jQuery.extend(jQuery.iUtil.getPosition(i.el.get(0)),jQuery.iUtil.getSize(i.el.get(0)));i.end=jQuery.extend(jQuery.iUtil.getPosition(i.to),jQuery.iUtil.getSize(i.to));i.start.wb-=i.diffWidth;i.start.hb-=i.diffHeight;i.end.wb-=i.diffWidth;i.end.hb-=i.diffHeight;i.callback=t.complete;jQuery.transferHelper.css('width',i.start.wb+'px').css('height',i.start.hb+'px').css('top',i.start.y+'px').css('left',i.start.x+'px').animate({top:i.end.y,left:i.end.x,width:i.end.wb,height:i.end.hb},i.duration,function(){if(i.classname)jQuery.transferHelper.removeClass(i.classname);jQuery.transferHelper.css('display','none');if(i.complete&&i.complete.constructor==Function){i.complete.apply(i.el.get(0),[i.to])};jQuery.dequeue(i.el.get(0),'interfaceFX')})};jQuery.fn.extend({SlideInUp:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'up','in',i)})},SlideOutUp:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'up','out',i)})},SlideToggleUp:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'up','toggle',i)})},SlideInDown:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'down','in',i)})},SlideOutDown:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'down','out',i)})},SlideToggleDown:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'down','toggle',i)})},SlideInLeft:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'left','in',i)})},SlideOutLeft:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'left','out',i)})},SlideToggleLeft:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'left','toggle',i)})},SlideInRight:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'right','in',i)})},SlideOutRight:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'right','out',i)})},SlideToggleRight:function(e,t,i){return this.queue('interfaceFX',function(){new jQuery.fx.slide(this,e,t,'right','toggle',i)})}});jQuery.fx.slide=function(e,t,i,o,r,s){if(!jQuery.fxCheckTag(e)){jQuery.dequeue(e,'interfaceFX');return!1};var n=this;n.el=jQuery(e);n.easing=typeof i=='string'?i:s||null;n.callback=typeof i=='function'?i:null;if(r=='toggle'){r=n.el.css('display')=='none'?'in':'out'};if(!e.ifxFirstDisplay)e.ifxFirstDisplay=n.el.css('display');n.el.show();n.speed=t;n.fx=jQuery.fx.buildWrapper(e);n.type=r;n.direction=o;n.complete=function(){if(n.type=='out')n.el.css('visibility','hidden');jQuery.fx.destroyWrapper(n.fx.wrapper.get(0),n.fx.oldStyle);if(n.type=='in'){n.el.css('display',n.el.get(0).ifxFirstDisplay=='none'?'block':n.el.get(0).ifxFirstDisplay)}else{n.el.css('display','none');n.el.css('visibility','visible')};if(n.callback&&n.callback.constructor==Function){n.callback.apply(n.el.get(0))};jQuery.dequeue(n.el.get(0),'interfaceFX')};switch(n.direction){case'up':n.ef=new jQuery.fx(n.el.get(0),jQuery.speed(n.speed,n.easing,n.complete),'top');n.efx=new jQuery.fx(n.fx.wrapper.get(0),jQuery.speed(n.speed,n.easing),'height');if(n.type=='in'){n.ef.custom(-n.fx.oldStyle.sizes.hb,0);n.efx.custom(0,n.fx.oldStyle.sizes.hb)}else{n.ef.custom(0,-n.fx.oldStyle.sizes.hb);n.efx.custom(n.fx.oldStyle.sizes.hb,0)};break;case'down':n.ef=new jQuery.fx(n.el.get(0),jQuery.speed(n.speed,n.easing,n.complete),'top');if(n.type=='in'){n.ef.custom(n.fx.oldStyle.sizes.hb,0)}else{n.ef.custom(0,n.fx.oldStyle.sizes.hb)};break;case'left':n.ef=new jQuery.fx(n.el.get(0),jQuery.speed(n.speed,n.easing,n.complete),'left');n.efx=new jQuery.fx(n.fx.wrapper.get(0),jQuery.speed(n.speed,n.easing),'width');if(n.type=='in'){n.ef.custom(-n.fx.oldStyle.sizes.wb,0);n.efx.custom(0,n.fx.oldStyle.sizes.wb)}else{n.ef.custom(0,-n.fx.oldStyle.sizes.wb);n.efx.custom(n.fx.oldStyle.sizes.wb,0)};break;case'right':n.ef=new jQuery.fx(n.el.get(0),jQuery.speed(n.speed,n.easing,n.complete),'left');if(n.type=='in'){n.ef.custom(n.fx.oldStyle.sizes.wb,0)}else{n.ef.custom(0,n.fx.oldStyle.sizes.wb)};break}};var elevateZoom=function(){};if(typeof Object.create!=='function'){Object.create=function(e){function t(){};t.prototype=e;return new t()}}(function(e,t,i,n){var o={init:function(t,i){var n=this;n.elem=i;n.e$=e(i);n.imageSrc=n.e$.data('zoom-image')?n.e$.data('zoom-image'):n.e$.attr('src');n.options=e.extend({},e.fn.elevateZoom.options,t);if(n.options.tint){n.options.lensColour='none',n.options.lensOpacity='1'};if(n.options.zoomType=='inner'){n.options.showLens=!1};n.e$.parent().removeAttr('title').removeAttr('alt');n.zoomImage=n.imageSrc;n.refresh(1);e('#'+n.options.gallery+' a').click(function(t){if(n.options.galleryActiveClass){e('#'+n.options.gallery+' a').removeClass(n.options.galleryActiveClass);e(this).addClass(n.options.galleryActiveClass)};t.preventDefault();if(e(this).data('zoom-image')){n.zoomImagePre=e(this).data('zoom-image')}else{n.zoomImagePre=e(this).data('image')};n.swaptheimage(e(this).data('image'),n.zoomImagePre);return!1})},refresh:function(e){var t=this;setTimeout(function(){t.fetch(t.imageSrc)},e||t.options.refresh)},fetch:function(e){var t=this,i=new Image();i.onload=function(){t.largeWidth=i.width;t.largeHeight=i.height;t.startZoom();t.currentImage=t.imageSrc;t.options.onZoomedImageLoaded(t.e$)};i.src=e;return},startZoom:function(){var t=this;t.nzWidth=t.e$.width();t.nzHeight=t.e$.height();t.isWindowActive=!1;t.isLensActive=!1;t.isTintActive=!1;t.overWindow=!1;if(t.options.imageCrossfade){t.zoomWrap=t.e$.wrap('
');t.e$.css('position','absolute')};t.zoomLock=1;t.scrollingLock=!1;t.changeBgSize=!1;t.currentZoomLevel=t.options.zoomLevel;t.nzOffset=t.e$.offset();t.widthRatio=(t.largeWidth/t.currentZoomLevel)/t.nzWidth;t.heightRatio=(t.largeHeight/t.currentZoomLevel)/t.nzHeight;if(t.options.zoomType=='window'){t.zoomWindowStyle='overflow: hidden;background-position: 0px 0px;text-align:center;background-color: '+String(t.options.zoomWindowBgColour)+';width: '+String(t.options.zoomWindowWidth)+'px;height: '+String(t.options.zoomWindowHeight)+'px;float: left;background-size: '+t.largeWidth/t.currentZoomLevel+'px '+t.largeHeight/t.currentZoomLevel+'px;display: none;z-index:100;border: '+String(t.options.borderSize)+'px solid '+t.options.borderColour+';background-repeat: no-repeat;position: absolute;'};if(t.options.zoomType=='inner'){var i=t.e$.css('border-left-width');t.zoomWindowStyle='overflow: hidden;margin-left: '+String(i)+';margin-top: '+String(i)+';background-position: 0px 0px;width: '+String(t.nzWidth)+'px;height: '+String(t.nzHeight)+'px;float: left;display: none;cursor:'+(t.options.cursor)+';px solid '+t.options.borderColour+';background-repeat: no-repeat;position: absolute;'};if(t.options.zoomType=='window'){if(t.nzHeight
');e('body').append(t.zoomContainer);if(t.options.containLensZoom&&t.options.zoomType=='lens'){t.zoomContainer.css('overflow','hidden')};if(t.options.zoomType!='inner'){t.zoomLens=e('
 
').appendTo(t.zoomContainer).click(function(){t.e$.trigger('click')});if(t.options.tint){t.tintContainer=e('
').addClass('tintContainer');t.zoomTint=e('
');t.zoomLens.wrap(t.tintContainer);t.zoomTintcss=t.zoomLens.after(t.zoomTint);t.zoomTintImage=e('').appendTo(t.zoomLens).click(function(){t.e$.trigger('click')})}};if(isNaN(t.options.zoomWindowPosition)){t.zoomWindow=e('
 
').appendTo('body').click(function(){t.e$.trigger('click')})}else{t.zoomWindow=e('
 
').appendTo(t.zoomContainer).click(function(){t.e$.trigger('click')})};t.zoomWindowContainer=e('
').addClass('zoomWindowContainer').css('width',t.options.zoomWindowWidth);t.zoomWindow.wrap(t.zoomWindowContainer);if(t.options.zoomType=='lens'){t.zoomLens.css({backgroundImage:'url(\''+t.imageSrc+'\')'})};if(t.options.zoomType=='window'){t.zoomWindow.css({backgroundImage:'url(\''+t.imageSrc+'\')'})};if(t.options.zoomType=='inner'){t.zoomWindow.css({backgroundImage:'url(\''+t.imageSrc+'\')'})};t.e$.bind('touchmove',function(e){e.preventDefault();var i=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];t.setPosition(i)});t.zoomContainer.bind('touchmove',function(e){if(t.options.zoomType=='inner'){t.showHideWindow('show')};e.preventDefault();var i=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];t.setPosition(i)});t.zoomContainer.bind('touchend',function(e){t.showHideWindow('hide');if(t.options.showLens){t.showHideLens('hide')};if(t.options.tint&&t.options.zoomType!='inner'){t.showHideTint('hide')}});t.e$.bind('touchend',function(e){t.showHideWindow('hide');if(t.options.showLens){t.showHideLens('hide')};if(t.options.tint&&t.options.zoomType!='inner'){t.showHideTint('hide')}});if(t.options.showLens){t.zoomLens.bind('touchmove',function(e){e.preventDefault();var i=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];t.setPosition(i)});t.zoomLens.bind('touchend',function(e){t.showHideWindow('hide');if(t.options.showLens){t.showHideLens('hide')};if(t.options.tint&&t.options.zoomType!='inner'){t.showHideTint('hide')}})};t.e$.bind('mousemove',function(e){if(t.overWindow==!1){t.setElements('show')};if(t.lastX!==e.clientX||t.lastY!==e.clientY){t.setPosition(e);t.currentLoc=e};t.lastX=e.clientX;t.lastY=e.clientY});t.zoomContainer.bind('mousemove',function(e){if(t.overWindow==!1){t.setElements('show')};if(t.lastX!==e.clientX||t.lastY!==e.clientY){t.setPosition(e);t.currentLoc=e};t.lastX=e.clientX;t.lastY=e.clientY});if(t.options.zoomType!='inner'){t.zoomLens.bind('mousemove',function(e){if(t.lastX!==e.clientX||t.lastY!==e.clientY){t.setPosition(e);t.currentLoc=e};t.lastX=e.clientX;t.lastY=e.clientY})};if(t.options.tint&&t.options.zoomType!='inner'){t.zoomTint.bind('mousemove',function(e){if(t.lastX!==e.clientX||t.lastY!==e.clientY){t.setPosition(e);t.currentLoc=e};t.lastX=e.clientX;t.lastY=e.clientY})};if(t.options.zoomType=='inner'){t.zoomWindow.bind('mousemove',function(e){if(t.lastX!==e.clientX||t.lastY!==e.clientY){t.setPosition(e);t.currentLoc=e};t.lastX=e.clientX;t.lastY=e.clientY})};t.zoomContainer.add(t.e$).mouseenter(function(){if(t.overWindow==!1){t.setElements('show')}}).mouseleave(function(){if(!t.scrollLock){t.setElements('hide')}});if(t.options.zoomType!='inner'){t.zoomWindow.mouseenter(function(){t.overWindow=!0;t.setElements('hide')}).mouseleave(function(){t.overWindow=!1})};if(t.options.zoomLevel!=1){};if(t.options.minZoomLevel){t.minZoomLevel=t.options.minZoomLevel}else{t.minZoomLevel=t.options.scrollZoomIncrement*2};if(t.options.scrollZoom){t.zoomContainer.add(t.e$).bind('mousewheel DOMMouseScroll MozMousePixelScroll',function(i){t.scrollLock=!0;clearTimeout(e.data(this,'timer'));e.data(this,'timer',setTimeout(function(){t.scrollLock=!1},250));var n=i.originalEvent.wheelDelta||i.originalEvent.detail*-1;i.stopImmediatePropagation();i.stopPropagation();i.preventDefault();if(n/120>0){if(t.currentZoomLevel>=t.minZoomLevel){t.changeZoomLevel(t.currentZoomLevel-t.options.scrollZoomIncrement)}}else{if(t.options.maxZoomLevel){if(t.currentZoomLevel<=t.options.maxZoomLevel){t.changeZoomLevel(parseFloat(t.currentZoomLevel)+t.options.scrollZoomIncrement)}}else{t.changeZoomLevel(parseFloat(t.currentZoomLevel)+t.options.scrollZoomIncrement)}};return!1})}},setElements:function(e){var t=this;if(!t.options.zoomEnabled){return!1};if(e=='show'){if(t.isWindowSet){if(t.options.zoomType=='inner'){t.showHideWindow('show')};if(t.options.zoomType=='window'){t.showHideWindow('show')};if(t.options.showLens){t.showHideLens('show')};if(t.options.tint&&t.options.zoomType!='inner'){t.showHideTint('show')}}};if(e=='hide'){if(t.options.zoomType=='window'){t.showHideWindow('hide')};if(!t.options.tint){t.showHideWindow('hide')};if(t.options.showLens){t.showHideLens('hide')};if(t.options.tint){t.showHideTint('hide')}}},setPosition:function(e){var t=this;if(!t.options.zoomEnabled){return!1};t.nzHeight=t.e$.height();t.nzWidth=t.e$.width();t.nzOffset=t.e$.offset();if(t.options.tint&&t.options.zoomType!='inner'){t.zoomTint.css({top:0});t.zoomTint.css({left:0})};if(t.options.responsive&&!t.options.scrollZoom){if(t.options.showLens){if(t.nzHeightt.nzHeight-(t.zoomLens.height()/2)-(t.options.lensBorderSize*2));t.Eloppos=(t.mouseLeft<0+((t.zoomLens.width()/2)));t.Eroppos=(t.mouseLeft>(t.nzWidth-(t.zoomLens.width()/2)-(t.options.lensBorderSize*2)))};if(t.options.zoomType=='inner'){t.Etoppos=(t.mouseTop<((t.nzHeight/2)/t.heightRatio));t.Eboppos=(t.mouseTop>(t.nzHeight-((t.nzHeight/2)/t.heightRatio)));t.Eloppos=(t.mouseLeft<0+(((t.nzWidth/2)/t.widthRatio)));t.Eroppos=(t.mouseLeft>(t.nzWidth-(t.nzWidth/2)/t.widthRatio-(t.options.lensBorderSize*2)))};if(t.mouseLeft<=0||t.mouseTop<0||t.mouseLeft>t.nzWidth||t.mouseTop>t.nzHeight){t.setElements('hide');return}else{if(t.options.showLens){t.lensLeftPos=String(t.mouseLeft-t.zoomLens.width()/2);t.lensTopPos=String(t.mouseTop-t.zoomLens.height()/2)};if(t.Etoppos){t.lensTopPos=0};if(t.Eloppos){t.windowLeftPos=0;t.lensLeftPos=0;t.tintpos=0};if(t.options.zoomType=='window'){if(t.Eboppos){t.lensTopPos=Math.max((t.nzHeight)-t.zoomLens.height()-(t.options.lensBorderSize*2),0)};if(t.Eroppos){t.lensLeftPos=(t.nzWidth-(t.zoomLens.width())-(t.options.lensBorderSize*2))}};if(t.options.zoomType=='inner'){if(t.Eboppos){t.lensTopPos=Math.max(((t.nzHeight)-(t.options.lensBorderSize*2)),0)};if(t.Eroppos){t.lensLeftPos=(t.nzWidth-(t.nzWidth)-(t.options.lensBorderSize*2))}};if(t.options.zoomType=='lens'){t.windowLeftPos=String(((e.pageX-t.nzOffset.left)*t.widthRatio-t.zoomLens.width()/2)*(-1));t.windowTopPos=String(((e.pageY-t.nzOffset.top)*t.heightRatio-t.zoomLens.height()/2)*(-1));t.zoomLens.css({backgroundPosition:t.windowLeftPos+'px '+t.windowTopPos+'px'});if(t.changeBgSize){if(t.nzHeight>t.nzWidth){if(t.options.zoomType=='lens'){t.zoomLens.css({'background-size':t.largeWidth/t.newvalueheight+'px '+t.largeHeight/t.newvalueheight+'px'})};t.zoomWindow.css({'background-size':t.largeWidth/t.newvalueheight+'px '+t.largeHeight/t.newvalueheight+'px'})}else{if(t.options.zoomType=='lens'){t.zoomLens.css({'background-size':t.largeWidth/t.newvaluewidth+'px '+t.largeHeight/t.newvaluewidth+'px'})};t.zoomWindow.css({'background-size':t.largeWidth/t.newvaluewidth+'px '+t.largeHeight/t.newvaluewidth+'px'})};t.changeBgSize=!1};t.setWindowPostition(e)};if(t.options.tint&&t.options.zoomType!='inner'){t.setTintPosition(e)};if(t.options.zoomType=='window'){t.setWindowPostition(e)};if(t.options.zoomType=='inner'){t.setWindowPostition(e)};if(t.options.showLens){if(t.fullwidth&&t.options.zoomType!='lens'){t.lensLeftPos=0};t.zoomLens.css({left:t.lensLeftPos+'px',top:t.lensTopPos+'px'})}}},showHideWindow:function(e){var t=this;if(e=='show'){if(!t.isWindowActive){if(t.options.zoomWindowFadeIn){t.zoomWindow.stop(!0,!0,!1).fadeIn(t.options.zoomWindowFadeIn)}else{t.zoomWindow.show()};t.isWindowActive=!0}};if(e=='hide'){if(t.isWindowActive){if(t.options.zoomWindowFadeOut){t.zoomWindow.stop(!0,!0).fadeOut(t.options.zoomWindowFadeOut)}else{t.zoomWindow.hide()};t.isWindowActive=!1}}},showHideLens:function(e){var t=this;if(e=='show'){if(!t.isLensActive){if(t.options.lensFadeIn){t.zoomLens.stop(!0,!0,!1).fadeIn(t.options.lensFadeIn)}else{t.zoomLens.show()};t.isLensActive=!0}};if(e=='hide'){if(t.isLensActive){if(t.options.lensFadeOut){t.zoomLens.stop(!0,!0).fadeOut(t.options.lensFadeOut)}else{t.zoomLens.hide()};t.isLensActive=!1}}},showHideTint:function(e){var t=this;if(e=='show'){if(!t.isTintActive){if(t.options.zoomTintFadeIn){t.zoomTint.css({opacity:t.options.tintOpacity}).animate().stop(!0,!0).fadeIn('slow')}else{t.zoomTint.css({opacity:t.options.tintOpacity}).animate();t.zoomTint.show()};t.isTintActive=!0}};if(e=='hide'){if(t.isTintActive){if(t.options.zoomTintFadeOut){t.zoomTint.stop(!0,!0).fadeOut(t.options.zoomTintFadeOut)}else{t.zoomTint.hide()};t.isTintActive=!1}}},setLensPostition:function(e){},setWindowPostition:function(t){var i=this;if(!isNaN(i.options.zoomWindowPosition)){switch(i.options.zoomWindowPosition){case 1:i.windowOffsetTop=(i.options.zoomWindowOffety);i.windowOffsetLeft=(+i.nzWidth);break;case 2:if(i.options.zoomWindowHeight>i.nzHeight){i.windowOffsetTop=((i.options.zoomWindowHeight/2)-(i.nzHeight/2))*(-1);i.windowOffsetLeft=(i.nzWidth)}else{};break;case 3:i.windowOffsetTop=(i.nzHeight-i.zoomWindow.height()-(i.options.borderSize*2));i.windowOffsetLeft=(i.nzWidth);break;case 4:i.windowOffsetTop=(i.nzHeight);i.windowOffsetLeft=(i.nzWidth);break;case 5:i.windowOffsetTop=(i.nzHeight);i.windowOffsetLeft=(i.nzWidth-i.zoomWindow.width()-(i.options.borderSize*2));break;case 6:if(i.options.zoomWindowHeight>i.nzHeight){i.windowOffsetTop=(i.nzHeight);i.windowOffsetLeft=((i.options.zoomWindowWidth/2)-(i.nzWidth/2)+(i.options.borderSize*2))*(-1)}else{};break;case 7:i.windowOffsetTop=(i.nzHeight);i.windowOffsetLeft=0;break;case 8:i.windowOffsetTop=(i.nzHeight);i.windowOffsetLeft=(i.zoomWindow.width()+(i.options.borderSize*2))*(-1);break;case 9:i.windowOffsetTop=(i.nzHeight-i.zoomWindow.height()-(i.options.borderSize*2));i.windowOffsetLeft=(i.zoomWindow.width()+(i.options.borderSize*2))*(-1);break;case 10:if(i.options.zoomWindowHeight>i.nzHeight){i.windowOffsetTop=((i.options.zoomWindowHeight/2)-(i.nzHeight/2))*(-1);i.windowOffsetLeft=(i.zoomWindow.width()+(i.options.borderSize*2))*(-1)}else{};break;case 11:i.windowOffsetTop=(i.options.zoomWindowOffety);i.windowOffsetLeft=(i.zoomWindow.width()+(i.options.borderSize*2))*(-1);break;case 12:i.windowOffsetTop=(i.zoomWindow.height()+(i.options.borderSize*2))*(-1);i.windowOffsetLeft=(i.zoomWindow.width()+(i.options.borderSize*2))*(-1);break;case 13:i.windowOffsetTop=(i.zoomWindow.height()+(i.options.borderSize*2))*(-1);i.windowOffsetLeft=(0);break;case 14:if(i.options.zoomWindowHeight>i.nzHeight){i.windowOffsetTop=(i.zoomWindow.height()+(i.options.borderSize*2))*(-1);i.windowOffsetLeft=((i.options.zoomWindowWidth/2)-(i.nzWidth/2)+(i.options.borderSize*2))*(-1)}else{};break;case 15:i.windowOffsetTop=(i.zoomWindow.height()+(i.options.borderSize*2))*(-1);i.windowOffsetLeft=(i.nzWidth-i.zoomWindow.width()-(i.options.borderSize*2));break;case 16:i.windowOffsetTop=(i.zoomWindow.height()+(i.options.borderSize*2))*(-1);i.windowOffsetLeft=(i.nzWidth);break;default:i.windowOffsetTop=(i.options.zoomWindowOffety);i.windowOffsetLeft=(i.nzWidth)}}else{i.externalContainer=e('#'+i.options.zoomWindowPosition);i.externalContainerWidth=i.externalContainer.width();i.externalContainerHeight=i.externalContainer.height();i.externalContainerOffset=i.externalContainer.offset();i.windowOffsetTop=i.externalContainerOffset.top;i.windowOffsetLeft=i.externalContainerOffset.left};i.isWindowSet=!0;i.windowOffsetTop=i.windowOffsetTop+i.options.zoomWindowOffety;i.windowOffsetLeft=i.windowOffsetLeft+i.options.zoomWindowOffetx;i.zoomWindow.css({top:i.windowOffsetTop});i.zoomWindow.css({left:i.windowOffsetLeft});if(i.options.zoomType=='inner'){i.zoomWindow.css({top:0});i.zoomWindow.css({left:0})};i.windowLeftPos=String(((t.pageX-i.nzOffset.left)*i.widthRatio-i.zoomWindow.width()/2)*(-1));i.windowTopPos=String(((t.pageY-i.nzOffset.top)*i.heightRatio-i.zoomWindow.height()/2)*(-1));if(i.Etoppos){i.windowTopPos=0};if(i.Eloppos){i.windowLeftPos=0};if(i.Eboppos){i.windowTopPos=(i.largeHeight/i.currentZoomLevel-i.zoomWindow.height())*(-1)};if(i.Eroppos){i.windowLeftPos=((i.largeWidth/i.currentZoomLevel-i.zoomWindow.width())*(-1))};if(i.fullheight){i.windowTopPos=0};if(i.fullwidth){i.windowLeftPos=0};if(i.options.zoomType=='window'||i.options.zoomType=='inner'){if(i.zoomLock==1){if(i.widthRatio<=1){i.windowLeftPos=0};if(i.heightRatio<=1){i.windowTopPos=0}};if(i.largeHeighti.nzWidth){if(i.options.zoomType=='lens'){i.zoomLens.css({'background-size':i.largeWidth/i.newvalueheight+'px '+i.largeHeight/i.newvalueheight+'px'})};i.zoomWindow.css({'background-size':i.largeWidth/i.newvalueheight+'px '+i.largeHeight/i.newvalueheight+'px'})}else{if(i.options.zoomType!='lens'){i.zoomLens.css({'background-size':i.largeWidth/i.newvaluewidth+'px '+i.largeHeight/i.newvalueheight+'px'})};i.zoomWindow.css({'background-size':i.largeWidth/i.newvaluewidth+'px '+i.largeHeight/i.newvaluewidth+'px'})};i.changeBgSize=!1};i.zoomWindow.css({backgroundPosition:i.windowLeftPos+'px '+i.windowTopPos+'px'});i.scrollingLock=!1;i.loop=!1}else{if(i.changeBgSize){if(i.nzHeight>i.nzWidth){if(i.options.zoomType=='lens'){i.zoomLens.css({'background-size':i.largeWidth/i.newvalueheight+'px '+i.largeHeight/i.newvalueheight+'px'})};i.zoomWindow.css({'background-size':i.largeWidth/i.newvalueheight+'px '+i.largeHeight/i.newvalueheight+'px'})}else{if(i.options.zoomType!='lens'){i.zoomLens.css({'background-size':i.largeWidth/i.newvaluewidth+'px '+i.largeHeight/i.newvaluewidth+'px'})};i.zoomWindow.css({'background-size':i.largeWidth/i.newvaluewidth+'px '+i.largeHeight/i.newvaluewidth+'px'})};i.changeBgSize=!1};i.zoomWindow.css({backgroundPosition:i.xp+'px '+i.yp+'px'})}},16)}}else{if(i.changeBgSize){if(i.nzHeight>i.nzWidth){if(i.options.zoomType=='lens'){i.zoomLens.css({'background-size':i.largeWidth/i.newvalueheight+'px '+i.largeHeight/i.newvalueheight+'px'})};i.zoomWindow.css({'background-size':i.largeWidth/i.newvalueheight+'px '+i.largeHeight/i.newvalueheight+'px'})}else{if(i.options.zoomType=='lens'){i.zoomLens.css({'background-size':i.largeWidth/i.newvaluewidth+'px '+i.largeHeight/i.newvaluewidth+'px'})};if((i.largeHeight/i.newvaluewidth)
');n.e$.after(n.spinner)};n.options.onImageSwap(n.e$);o.onload=function(){n.largeWidth=o.width;n.largeHeight=o.height;n.zoomImage=i;n.zoomWindow.css({'background-size':n.largeWidth+'px '+n.largeHeight+'px'});n.zoomWindow.css({'background-size':n.largeWidth+'px '+n.largeHeight+'px'});n.swapAction(t,i);return};o.src=i},swapAction:function(t,i){var n=this,o=new Image();o.onload=function(){n.nzHeight=o.height;n.nzWidth=o.width;n.options.onImageSwapComplete(n.e$);n.doneCallback();return};o.src=t;n.currentZoomLevel=n.options.zoomLevel;n.options.maxZoomLevel=!1;if(n.options.zoomType=='lens'){n.zoomLens.css({backgroundImage:'url(\''+i+'\')'})};if(n.options.zoomType=='window'){n.zoomWindow.css({backgroundImage:'url(\''+i+'\')'})};if(n.options.zoomType=='inner'){n.zoomWindow.css({backgroundImage:'url(\''+i+'\')'})};n.currentImage=i;if(n.options.imageCrossfade){var a=n.e$,l=a.clone();n.e$.attr('src',t);n.e$.after(l);l.stop(!0).fadeOut(n.options.imageCrossfade,function(){e(this).remove()});n.e$.width('auto').removeAttr('width');n.e$.height('auto').removeAttr('height');a.fadeIn(n.options.imageCrossfade);if(n.options.tint&&n.options.zoomType!='inner'){var r=n.zoomTintImage,s=r.clone();n.zoomTintImage.attr('src',i);n.zoomTintImage.after(s);s.stop(!0).fadeOut(n.options.imageCrossfade,function(){e(this).remove()});r.fadeIn(n.options.imageCrossfade);n.zoomTint.css({height:n.e$.height()});n.zoomTint.css({width:n.e$.width()})};n.zoomContainer.css('height',n.e$.height());n.zoomContainer.css('width',n.e$.width());if(n.options.zoomType=='inner'){if(!n.options.constrainType){n.zoomWrap.parent().css('height',n.e$.height());n.zoomWrap.parent().css('width',n.e$.width());n.zoomWindow.css('height',n.e$.height());n.zoomWindow.css('width',n.e$.width())}};if(n.options.imageCrossfade){n.zoomWrap.css('height',n.e$.height());n.zoomWrap.css('width',n.e$.width())}}else{n.e$.attr('src',t);if(n.options.tint){n.zoomTintImage.attr('src',i);n.zoomTintImage.attr('height',n.e$.height());n.zoomTintImage.css({height:n.e$.height()});n.zoomTint.css({height:n.e$.height()})};n.zoomContainer.css('height',n.e$.height());n.zoomContainer.css('width',n.e$.width());if(n.options.imageCrossfade){n.zoomWrap.css('height',n.e$.height());n.zoomWrap.css('width',n.e$.width())}};if(n.options.constrainType){if(n.options.constrainType=='height'){n.zoomContainer.css('height',n.options.constrainSize);n.zoomContainer.css('width','auto');if(n.options.imageCrossfade){n.zoomWrap.css('height',n.options.constrainSize);n.zoomWrap.css('width','auto');n.constwidth=n.zoomWrap.width()}else{n.e$.css('height',n.options.constrainSize);n.e$.css('width','auto');n.constwidth=n.e$.width()};if(n.options.zoomType=='inner'){n.zoomWrap.parent().css('height',n.options.constrainSize);n.zoomWrap.parent().css('width',n.constwidth);n.zoomWindow.css('height',n.options.constrainSize);n.zoomWindow.css('width',n.constwidth)};if(n.options.tint){n.tintContainer.css('height',n.options.constrainSize);n.tintContainer.css('width',n.constwidth);n.zoomTint.css('height',n.options.constrainSize);n.zoomTint.css('width',n.constwidth);n.zoomTintImage.css('height',n.options.constrainSize);n.zoomTintImage.css('width',n.constwidth)}};if(n.options.constrainType=='width'){n.zoomContainer.css('height','auto');n.zoomContainer.css('width',n.options.constrainSize);if(n.options.imageCrossfade){n.zoomWrap.css('height','auto');n.zoomWrap.css('width',n.options.constrainSize);n.constheight=n.zoomWrap.height()}else{n.e$.css('height','auto');n.e$.css('width',n.options.constrainSize);n.constheight=n.e$.height()};if(n.options.zoomType=='inner'){n.zoomWrap.parent().css('height',n.constheight);n.zoomWrap.parent().css('width',n.options.constrainSize);n.zoomWindow.css('height',n.constheight);n.zoomWindow.css('width',n.options.constrainSize)};if(n.options.tint){n.tintContainer.css('height',n.constheight);n.tintContainer.css('width',n.options.constrainSize);n.zoomTint.css('height',n.constheight);n.zoomTint.css('width',n.options.constrainSize);n.zoomTintImage.css('height',n.constheight);n.zoomTintImage.css('width',n.options.constrainSize)}}}},doneCallback:function(){var e=this;if(e.options.loadingIcon){e.spinner.hide()};e.nzOffset=e.e$.offset();e.nzWidth=e.e$.width();e.nzHeight=e.e$.height();e.currentZoomLevel=e.options.zoomLevel;e.widthRatio=e.largeWidth/e.nzWidth;e.heightRatio=e.largeHeight/e.nzHeight;if(e.options.zoomType=='window'){if(e.nzHeightmaxheightnewvalue){newvalue=maxheightnewvalue};if(newvalue>maxwidthtnewvalue){newvalue=maxwidthtnewvalue};if(maxheightnewvalue<=newvalue){t.heightRatio=(t.largeHeight/newvalue)/t.nzHeight;if(newvalue>maxheightnewvalue){t.newvalueheight=maxheightnewvalue}else{t.newvalueheight=newvalue};t.fullheight=!0}else{t.heightRatio=(t.largeHeight/newvalue)/t.nzHeight;if(newvalue>maxheightnewvalue){t.newvalueheight=maxheightnewvalue}else{t.newvalueheight=newvalue};t.fullheight=!1};if(maxwidthtnewvalue<=newvalue){t.widthRatio=(t.largeWidth/newvalue)/t.nzWidth;if(newvalue>maxwidthtnewvalue){t.newvaluewidth=maxwidthtnewvalue}else{t.newvaluewidth=newvalue};t.fullwidth=!0}else{t.widthRatio=(t.largeWidth/newvalue)/t.nzWidth;t.newvaluewidth=newvalue;t.fullwidth=!1}};scrcontinue=!1;if(t.options.zoomType=='inner'){if(t.nzWidth>=t.nzHeight){if(t.newvaluewidth<=maxwidthtnewvalue){scrcontinue=!0}else{scrcontinue=!1;t.fullheight=!0;t.fullwidth=!0}};if(t.nzHeight>t.nzWidth){if(t.newvaluewidth<=maxwidthtnewvalue){scrcontinue=!0}else{scrcontinue=!1;t.fullheight=!0;t.fullwidth=!0}}};if(t.options.zoomType!='inner'){scrcontinue=!0};if(scrcontinue){t.zoomLock=0;t.changeZoom=!0;if(((t.options.zoomWindowHeight)/t.heightRatio)<=t.nzHeight){t.currentZoomLevel=t.newvalueheight;if(t.options.zoomType!='lens'&&t.options.zoomType!='inner'){t.changeBgSize=!0;t.zoomLens.css({height:String((t.options.zoomWindowHeight)/t.heightRatio)+'px'})};if(t.options.zoomType=='lens'||t.options.zoomType=='inner'){t.changeBgSize=!0}};if((t.options.zoomWindowWidth/t.widthRatio)<=t.nzWidth){if(t.options.zoomType!='inner'){if(t.newvaluewidth>t.newvalueheight){t.currentZoomLevel=t.newvaluewidth}};if(t.options.zoomType!='lens'&&t.options.zoomType!='inner'){t.changeBgSize=!0;t.zoomLens.css({width:String((t.options.zoomWindowWidth)/t.widthRatio)+'px'})};if(t.options.zoomType=='lens'||t.options.zoomType=='inner'){t.changeBgSize=!0}};if(t.options.zoomType=='inner'){t.changeBgSize=!0;if(t.nzWidth>t.nzHeight){t.currentZoomLevel=t.newvaluewidth};if(t.nzHeight>t.nzWidth){t.currentZoomLevel=t.newvaluewidth}}};t.setPosition(t.currentLoc)},closeAll:function(){if(self.zoomWindow){self.zoomWindow.hide()};if(self.zoomLens){self.zoomLens.hide()};if(self.zoomTint){self.zoomTint.hide()}},changeState:function(e){var t=this;if(e=='enable'){t.options.zoomEnabled=!0};if(e=='disable'){t.options.zoomEnabled=!1}}};e.fn.elevateZoom=function(t){return this.each(function(){var i=Object.create(o);i.init(t,this);e.data(this,'elevateZoom',i)})};e.fn.elevateZoom.options={zoomActivation:'hover',zoomEnabled:!0,preloading:1,zoomLevel:1,scrollZoom:!1,scrollZoomIncrement:0.1,minZoomLevel:!1,maxZoomLevel:!1,easing:!1,easingAmount:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:400,zoomWindowOffetx:0,zoomWindowOffety:0,zoomWindowPosition:1,zoomWindowBgColour:'#fff',lensFadeIn:!1,lensFadeOut:!1,debug:!1,zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowAlwaysShow:!1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,borderSize:4,showLens:!0,borderColour:'#888',lensBorderSize:1,lensBorderColour:'#000',lensShape:'square',zoomType:'window',containLensZoom:!1,lensColour:'white',lensOpacity:0.4,lenszoom:!1,tint:!1,tintColour:'#333',tintOpacity:0.4,gallery:!1,galleryActiveClass:'zoomGalleryActive',imageCrossfade:!1,constrainType:!1,constrainSize:!1,loadingIcon:!1,cursor:'default',responsive:!0,onComplete:e.noop,onZoomedImageLoaded:function(){},onImageSwap:e.noop,onImageSwapComplete:e.noop}})(jQuery,window,document);var optO=function(){};optO.save=function(){var s,r='',t='',n='',i='',o='';jQuery.each(jQuery('input, select ,textarea','#optOut'),function(e){var s=this;if(s.name=='destinys'){r='destino='+s.value}else{if(s.name.substring(0,2)=='r_'&&s.value==''){if(o=='')o=s;if(i=='')i=s;t+=s.id+' , '}else if(s.name.substring(0,2)=='e_'){if(s.value==''){t+=s.id+' , ';if(i=='')i=s}else if(s.value.indexOf('@',1)==-1){t+=s.id+' (inválido), ';if(i=='')i=s}else{n+=s.name+'='+cfe.escapeSpecial(s.value)+'&'}}else if(s.name.substring(0,2)=='n_'){n+=s.name+'='+cfe.escapeSpecial(s.value)+'&'}else{n+=s.name+'='+cfe.escapeSpecial(s.value)+'&'}}});if(t==''){cfe.cfejs_cfe('optOut','form_save',n);cfe.prompt('Seu email nao esta mais na nossa lista ! ')}else{t='
Os campos abaixo precisam ser digitados:\n'+t+'
';cfe.prompt(t);try{Field.focus(o)}catch(e){}}};var galleriffic=function(){};(function(e){var t={};var n=0;e.galleriffic={version:'2.0.1',normalizeHash:function(e){return e.replace(/^.*#/,'').replace(/\?.*$/,'')},getImage:function(i){if(!i)return undefined;i=e.galleriffic.normalizeHash(i);return t[i]},gotoImage:function(t){var i=e.galleriffic.getImage(t);if(!i)return!1;var n=i.gallery;n.gotoImage(i);return!0},removeImageByHash:function(t,i){var n=e.galleriffic.getImage(t);if(!n)return!1;var o=n.gallery;if(i&&i!=o)return!1;return o.removeImageByIndex(n.index)}};var o={delay:3000,numThumbs:20,preloadAhead:40,enableTopPager:!1,enableBottomPager:!0,maxPagesToShow:7,imageContainerSel:'',captionContainerSel:'',controlsContainerSel:'',loadingContainerSel:'',renderSSControls:!0,renderNavControls:!0,playLinkText:'Play',pauseLinkText:'Pause',prevLinkText:'Previous',nextLinkText:'Next',nextPageLinkText:'Next ›',prevPageLinkText:'‹ Prev',enableHistory:!1,enableKeyboardNavigation:!0,autoStart:!0,syncTransitions:!1,defaultTransitionDuration:1000,onSlideChange:undefined,onTransitionOut:undefined,onTransitionIn:undefined,onPageTransitionOut:undefined,onPageTransitionIn:undefined,onImageAdded:undefined,onImageRemoved:undefined};e.fn.galleriffic=function(r){e.extend(this,{version:e.galleriffic.version,isSlideshowRunning:!1,slideshowTimeout:undefined,clickHandler:function(t,i){this.pause();if(!this.enableHistory){var n=e.galleriffic.normalizeHash(e(i).attr('href'));e.galleriffic.gotoImage(n);t.preventDefault()}},appendImage:function(e){this.addImage(e,!1,!1);return this},insertImage:function(e,t){this.addImage(e,!1,!0,t);return this},addImage:function(i,o,r,s){var l=(typeof i==='string')?e(i):i,d=l.find('a.thumb'),f=d.attr('href'),p=d.attr('title'),h=l.find('.caption').remove(),a=d.attr('name');n++;if(!a||t[''+a]){a=n};if(!r)s=this.data.length;var c={title:p,slideUrl:f,caption:h,hash:a,gallery:this,index:s};if(r){this.data.splice(s,0,c);this.updateIndices(s)}else{this.data.push(c)};var u=this;if(!o){this.updateThumbs(function(){var e=u.find('ul.thumbs');if(r)e.children(':eq('+s+')').before(l);else e.append(l);if(u.onImageAdded)u.onImageAdded(c,l)})};t[''+a]=c;d.attr('rel','history').attr('href','#'+a).removeAttr('name').click(function(e){u.clickHandler(e,this)});return this},removeImageByIndex:function(e){if(e<0||e>=this.data.length)return!1;var t=this.data[e];if(!t)return!1;this.removeImage(t);return!0},removeImageByHash:function(t){return e.galleriffic.removeImageByHash(t,this)},removeImage:function(e){var i=e.index;this.data.splice(i,1);delete t[''+e.hash];this.updateThumbs(function(){var t=s.find('ul.thumbs').children(':eq('+i+')').remove();if(s.onImageRemoved)s.onImageRemoved(e,t)});this.updateIndices(i);return this},updateIndices:function(e){for(i=e;i li').each(function(i){t.addImage(e(this),!0,!1)});return this},isPreloadComplete:!1,preloadInit:function(){if(this.preloadAhead==0)return this;this.preloadStartIndex=this.currentImage.index;var e=this.getNextIndex(this.preloadStartIndex);return this.preloadRecursive(this.preloadStartIndex,e)},preloadRelocate:function(e){this.preloadStartIndex=e;return this},preloadRecursive:function(e,t){if(e!=this.preloadStartIndex){var s=this.getNextIndex(this.preloadStartIndex);return this.preloadRecursive(this.preloadStartIndex,s)};var r=this,o=t-e;if(o<0)o=this.data.length-1-e+t;if(this.preloadAhead>=0&&o>this.preloadAhead){setTimeout(function(){r.preloadRecursive(e,t)},500);return this};var i=this.data[t];if(!i)return this;if(i.image)return this.preloadNext(e,t);var n=new Image();n.onload=function(){i.image=this;r.preloadNext(e,t)};n.alt=i.title;n.src=i.slideUrl;n.id='imgZoom';return this},preloadNext:function(e,t){var i=this.getNextIndex(t);if(i==e){this.isPreloadComplete=!0}else{var n=this;setTimeout(function(){n.preloadRecursive(e,i)},100)};return this},getNextIndex:function(e){var t=e+1;if(t>=this.data.length)t=0;return t},getPrevIndex:function(e){var t=e-1;if(t<0)t=this.data.length-1;return t},pause:function(){this.isSlideshowRunning=!1;if(this.slideshowTimeout){clearTimeout(this.slideshowTimeout);this.slideshowTimeout=undefined};if(this.i$){this.i$.find('div.ss-controls a').removeClass().addClass('play').attr('title',this.playLinkText).attr('href','#play').html(this.playLinkText)};return this},play:function(){this.isSlideshowRunning=!0;if(this.i$){this.i$.find('div.ss-controls a').removeClass().addClass('pause').attr('title',this.pauseLinkText).attr('href','#pause').html(this.pauseLinkText)};if(!this.slideshowTimeout){var e=this;this.slideshowTimeout=setTimeout(function(){e.ssAdvance()},this.delay)};return this},toggleSlideshow:function(){if(this.isSlideshowRunning)this.pause();else this.play();return this},ssAdvance:function(){if(this.isSlideshowRunning)this.next(!0);return this},next:function(e,t){this.gotoIndex(this.getNextIndex(this.currentImage.index),e,t);return this},previous:function(e,t){this.gotoIndex(this.getPrevIndex(this.currentImage.index),e,t);return this},nextPage:function(e,t){var i=this.getCurrentPage(),r=this.getNumPages()-1;if(i0){var n=i*this.numThumbs,o=n-this.numThumbs;this.gotoIndex(o,e,t)};return this},gotoIndex:function(t,i,n){if(!i)this.pause();if(t<0)t=0;else if(t>=this.data.length)t=this.data.length-1;var o=this.data[t];if(!n&&this.enableHistory)e.historyLoad(String(o.hash));else this.gotoImage(o);return this},gotoImage:function(e){var t=e.index;if(this.onSlideChange)this.onSlideChange(this.currentImage.index,t);this.currentImage=e;this.preloadRelocate(t);this.refresh();return this},getDefaultTransitionDuration:function(e){if(e)return this.defaultTransitionDuration;return this.defaultTransitionDuration/2},refresh:function(){var e=this.currentImage;if(!e)return this;var l=e.index;if(this.i$){this.i$.find('div.nav-controls a.prev').attr('href','#'+this.data[this.getPrevIndex(l)].hash).end().find('div.nav-controls a.next').attr('href','#'+this.data[this.getNextIndex(l)].hash)};var r=this.l$.find('span.current').addClass('previous').removeClass('current'),n=0;if(this.s$){n=this.s$.find('span.current').addClass('previous').removeClass('current')};var t=this.syncTransitions&&e.image,a=!0,i=this,s=function(){a=!1;r.remove();if(n)n.remove();if(!t){if(e.image&&e.hash==i.data[i.currentImage.index].hash){i.buildImage(e,t)}else{if(i.o$){i.o$.show()}}}};if(r.length==0){s()}else{if(this.onTransitionOut){this.onTransitionOut(r,n,t,s)}else{r.fadeTo(this.getDefaultTransitionDuration(t),0.0,s);if(n)n.fadeTo(this.getDefaultTransitionDuration(t),0.0)}};if(t)this.buildImage(e,t);if(!e.image){var o=new Image();o.onload=function(){e.image=this;if(!a&&e.hash==i.data[i.currentImage.index].hash){i.buildImage(e,t)}};o.alt=e.title;o.src=e.slideUrl;o.id='imgZoom'};this.relocatePreload=!0;return this.syncThumbs()},buildImage:function(e,t){var o=this,r=this.getNextIndex(e.index),n=this.l$.append(' ').find('span.current').css('opacity','0');n.find('a').append(e.image).click(function(e){o.clickHandler(e,this)});var i=0;if(this.s$){i=this.s$.append('').find('span.current').css('opacity','0').append(e.caption)};if(this.o$){this.o$.hide()};if(this.onTransitionIn){this.onTransitionIn(n,i,t)}else{n.fadeTo(this.getDefaultTransitionDuration(t),1.0);if(i)i.fadeTo(this.getDefaultTransitionDuration(t),1.0)};if(this.isSlideshowRunning){if(this.slideshowTimeout)clearTimeout(this.slideshowTimeout);this.slideshowTimeout=setTimeout(function(){o.ssAdvance()},this.delay)};return this},getCurrentPage:function(){return Math.floor(this.currentImage.index/this.numThumbs)},syncThumbs:function(){var t=this.getCurrentPage();if(t!=this.displayedPage)this.updateThumbs();var e=this.find('ul.thumbs').children();e.filter('.selected').removeClass('selected');e.eq(this.currentImage.index).addClass('selected');return this},updateThumbs:function(e){var t=this,i=function(){if(e)e();t.rebuildThumbs();if(t.onPageTransitionIn)t.onPageTransitionIn();else t.show()};if(this.onPageTransitionOut){this.onPageTransitionOut(i)}else{this.hide();i()};return this},rebuildThumbs:function(){var a=this.data.length>this.numThumbs;if(this.enableTopPager){var i=this.find('div.top');if(i.length==0)i=this.prepend('').find('div.top');else i.empty();if(a)this.buildPager(i)};if(this.enableBottomPager){var t=this.find('div.bottom');if(t.length==0)t=this.append('').find('div.bottom');else t.empty();if(a)this.buildPager(t)};var r=this.getCurrentPage(),s=r*this.numThumbs,n=s+this.numThumbs-1;if(n>=this.data.length)n=this.data.length-1;var o=this.find('ul.thumbs');o.find('li').each(function(t){var i=e(this);if(t>=s&&t<=n){i.show()}else{i.hide()}});this.displayedPage=r;o.removeClass('noscript');return this},getNumPages:function(){return Math.ceil(this.data.length/this.numThumbs)},buildPager:function(e){var c=this,i=this.getNumPages(),o=this.getCurrentPage(),l=o*this.numThumbs,n=this.maxPagesToShow-1,t=o-Math.floor((this.maxPagesToShow-1)/2)+1;if(t>0){var a=i-t;if(a0){var u=l-this.numThumbs;e.append(''+this.prevPageLinkText+'')};if(t>0){this.buildPageLink(e,0,i);if(t>1)e.append('');n--}while(n>0){this.buildPageLink(e,t,i);n--;t++};if(t…');this.buildPageLink(e,s,i)};var r=l+this.numThumbs;if(r'+this.nextPageLinkText+'')};e.find('a').click(function(e){c.clickHandler(e,this)});return this},buildPageLink:function(e,t,i){var n=t+1,r=this.getCurrentPage();if(t==r)e.append(''+n+'');else if(t'+n+'')};return this}});e.extend(this,o,r);if(this.enableHistory&&!e.historyInit)this.enableHistory=!1;if(this.imageContainerSel)this.l$=e(this.imageContainerSel);if(this.captionContainerSel)this.s$=e(this.captionContainerSel);if(this.loadingContainerSel)this.o$=e(this.loadingContainerSel);this.initializeThumbs();if(this.maxPagesToShow<3)this.maxPagesToShow=3;this.displayedPage=-1;this.currentImage=this.data[0];var s=this;if(this.o$)this.o$.hide();if(this.controlsContainerSel){this.i$=e(this.controlsContainerSel).empty();if(this.renderSSControls){if(this.autoStart){this.i$.append('')}else{this.i$.append('')};this.i$.find('div.ss-controls a').click(function(e){s.toggleSlideshow();e.preventDefault();return!1})};if(this.renderNavControls){this.i$.append('').find('div.nav-controls a').click(function(e){s.clickHandler(e,this)})}};var a=!this.enableHistory||!location.hash;if(this.enableHistory&&location.hash){var l=e.galleriffic.normalizeHash(location.hash),u=t[l];if(!u)a=!0};if(a)this.gotoIndex(0,!1,!0);if(this.enableKeyboardNavigation){e(document).keydown(function(e){var t=e.charCode?e.charCode:e.keyCode?e.keyCode:0;switch(t){case 33:s.previousPage();e.preventDefault();break;case 34:s.nextPage();e.preventDefault();break;case 35:s.gotoIndex(s.data.length-1);e.preventDefault();break;case 36:s.gotoIndex(0);e.preventDefault();break;case 37:s.previous();e.preventDefault();break;case 39:s.next();e.preventDefault();break}})};if(this.autoStart)this.play();setTimeout(function(){s.preloadInit()},1000);return this}})(jQuery),FlexSlider=function(){};(function(e){e.flexslider=function(t,n){var i=e(t);e.data(t,'flexslider',i);i.init=function(){i.vars=e.extend({},e.flexslider.defaults,n);e.data(t,'flexsliderInit',!0);i.container=e('.slides',i).eq(0);i.slides=e('.slides:first > li',i);i.count=i.slides.length;i.animating=!1;i.currentSlide=i.vars.slideToStart;i.animatingTo=i.currentSlide;i.atEnd=(i.currentSlide==0)?!0:!1;i.eventType=('ontouchstart' in document.documentElement)?'touchstart':'click';i.cloneCount=0;i.cloneOffset=0;i.manualPause=!1;i.vertical=(i.vars.slideDirection=='vertical');i.prop=(i.vertical)?'top':'marginLeft';i.args={};i.transitions='webkitTransition' in document.body.style&&i.vars.useCSS;if(i.transitions){i.prop='-webkit-transform'};if(i.vars.controlsContainer!=''){i.controlsContainer=e(i.vars.controlsContainer).eq(e('.slides').index(i.container));i.containerExists=i.controlsContainer.length>0};if(i.vars.manualControls!=''){i.manualControls=e(i.vars.manualControls,((i.containerExists)?i.controlsContainer:i));i.manualExists=i.manualControls.length>0};if(i.vars.randomize){i.slides.sort(function(){return(Math.round(Math.random())-0.5)});i.container.empty().append(i.slides)};if(i.vars.animation.toLowerCase()=='slide'){if(i.transitions){i.setTransition(0)};i.css({overflow:'hidden'});if(i.vars.animationLoop){i.cloneCount=2;i.cloneOffset=1;i.container.append(i.slides.filter(':first').clone().addClass('clone')).prepend(i.slides.filter(':last').clone().addClass('clone'))};i.newSlides=e('.slides:first > li',i);var l=(-1*(i.currentSlide+i.cloneOffset));if(i.vertical){i.newSlides.css({display:'block',width:'100%','float':'left'});i.container.height((i.count+i.cloneCount)*200+'%').css('position','absolute').width('100%');setTimeout(function(){i.css({position:'relative'}).height(i.slides.filter(':first').height());i.args[i.prop]=(i.transitions)?'translate3d(0,'+l*i.height()+'px,0)':l*i.height()+'px';i.container.css(i.args)},100)}else{i.args[i.prop]=(i.transitions)?'translate3d('+l*i.width()+'px,0,0)':l*i.width()+'px';i.container.width((i.count+i.cloneCount)*200+'%').css(i.args);setTimeout(function(){i.newSlides.width(i.width()).css({'float':'left',display:'block'})},100)}}else{i.transitions=!1;i.slides.css({width:'100%','float':'left',marginRight:'-100%'}).eq(i.currentSlide).fadeIn(i.vars.animationDuration);jQuery('.caption').animate({right:'0'},350)};if(i.vars.controlNav){if(i.manualExists){i.controlNav=i.manualControls}else{var s=e('
    '),p=1;for(var m=0;m'+p+'');p++};if(i.containerExists){e(i.controlsContainer).append(s);i.controlNav=e('.flex-control-nav li a',i.controlsContainer)}else{i.append(s);i.controlNav=e('.flex-control-nav li a',i)};s.wrap('
    ')};i.controlNav.eq(i.currentSlide).addClass('active');i.controlNav.bind(i.eventType,function(t){t.preventDefault();if(!e(this).hasClass('active')){(i.controlNav.index(e(this))>i.currentSlide)?i.direction='next':i.direction='prev';i.flexAnimate(i.controlNav.index(e(this)),i.vars.pauseOnAction)}})};if(i.vars.directionNav){var h=e('');if(i.containerExists){e(i.controlsContainer).append(h);i.directionNav=e('.flex-direction-nav li a',i.controlsContainer)}else{i.append(h);i.directionNav=e('.flex-direction-nav li a',i)};if(!i.vars.animationLoop){if(i.currentSlide==0){i.directionNav.filter('.prev').addClass('disabled')}else{if(i.currentSlide==i.count-1){i.directionNav.filter('.next').addClass('disabled')}}};i.directionNav.bind(i.eventType,function(t){t.preventDefault();var n=(e(this).hasClass('next'))?i.getTarget('next'):i.getTarget('prev');if(i.canAdvance(n)){i.flexAnimate(n,i.vars.pauseOnAction)}})};if(i.vars.keyboardNav&&e('ul.slides').length==1){function b(e){if(i.animating){return}else{if(e.keyCode!=39&&e.keyCode!=37){return}else{if(e.keyCode==39){var t=i.getTarget('next')}else{if(e.keyCode==37){var t=i.getTarget('prev')}};if(i.canAdvance(t)){i.flexAnimate(t,i.vars.pauseOnAction)}}}};e(document).bind('keyup',b)};if(i.vars.mousewheel){i.mousewheelEvent=(/Firefox/i.test(navigator.userAgent))?'DOMMouseScroll':'mousewheel';i.bind(i.mousewheelEvent,function(e){e.preventDefault();e=e?e:window.event;var n=e.detail?e.detail*-1:e.originalEvent.wheelDelta/40,t=(n<0)?i.getTarget('next'):i.getTarget('prev');if(i.canAdvance(t)){i.flexAnimate(t,i.vars.pauseOnAction)}})};if(i.vars.slideshow){if(i.vars.pauseOnHover&&i.vars.slideshow){i.hover(function(){i.pause()},function(){if(!i.manualPause){i.resume()}})};i.animatedSlides=setInterval(i.animateSlides,i.vars.slideshowSpeed)};if(i.vars.pausePlay){var g=e('
    ');if(i.containerExists){i.controlsContainer.append(g);i.pausePlay=e('.flex-pauseplay span',i.controlsContainer)}else{i.append(g);i.pausePlay=e('.flex-pauseplay span',i)};var v=(i.vars.slideshow)?'pause':'play';i.pausePlay.addClass(v).text((v=='pause')?i.vars.pauseText:i.vars.playText);i.pausePlay.bind(i.eventType,function(t){t.preventDefault();if(e(this).hasClass('pause')){i.pause();i.manualPause=!0}else{i.resume();i.manualPause=!1}})};if('ontouchstart' in document.documentElement&&i.vars.touch){var r,u,a,c,o,y,d=!1;i.each(function(){if('ontouchstart' in document.documentElement){this.addEventListener('touchstart',x,!1)}});function x(e){if(i.animating){e.preventDefault()}else{if(e.touches.length==1){i.pause();c=(i.vertical)?i.height():i.width();y=Number(new Date());a=(i.vertical)?(i.currentSlide+i.cloneOffset)*i.height():(i.currentSlide+i.cloneOffset)*i.width();r=(i.vertical)?e.touches[0].pageY:e.touches[0].pageX;u=(i.vertical)?e.touches[0].pageX:e.touches[0].pageY;i.setTransition(0);this.addEventListener('touchmove',f,!1);this.addEventListener('touchend',w,!1)}}};function f(e){o=(i.vertical)?r-e.touches[0].pageY:r-e.touches[0].pageX;d=(i.vertical)?(Math.abs(o)0)?(Math.abs(o)/c+2):1)};i.args[i.prop]=(i.vertical)?'translate3d(0,'+(-a-o)+'px,0)':'translate3d('+(-a-o)+'px,0,0)';i.container.css(i.args)}}};function w(e){i.animating=!1;if(i.animatingTo==i.currentSlide&&!d&&!(o==null)){var t=(o>0)?i.getTarget('next'):i.getTarget('prev');if(i.canAdvance(t)&&Number(new Date())-y<550&&Math.abs(o)>20||Math.abs(o)>c/2){i.flexAnimate(t,i.vars.pauseOnAction)}else{if(i.vars.animation!=='fade'){i.flexAnimate(i.currentSlide,i.vars.pauseOnAction)}}};this.removeEventListener('touchmove',f,!1);this.removeEventListener('touchend',w,!1);r=null;u=null;o=null;a=null}};if(i.vars.animation.toLowerCase()=='slide'){e(window).resize(function(){if(!i.animating&&i.is(':visible')){if(i.vertical){i.height(i.slides.filter(':first').height());i.args[i.prop]=(-1*(i.currentSlide+i.cloneOffset))*i.slides.filter(':first').height()+'px';if(i.transitions){i.setTransition(0);i.args[i.prop]=(i.vertical)?'translate3d(0,'+i.args[i.prop]+',0)':'translate3d('+i.args[i.prop]+',0,0)'};i.container.css(i.args)}else{i.newSlides.width(i.width());i.args[i.prop]=(-1*(i.currentSlide+i.cloneOffset))*i.width()+'px';if(i.transitions){i.setTransition(0);i.args[i.prop]=(i.vertical)?'translate3d(0,'+i.args[i.prop]+',0)':'translate3d('+i.args[i.prop]+',0,0)'};i.container.css(i.args)}}})};i.vars.start(i)};i.flexAnimate=function(e,t){if(!i.animating&&i.is(':visible')){i.animating=!0;i.animatingTo=e;i.vars.before(i);if(t){i.pause()};if(i.vars.controlNav){i.controlNav.removeClass('active').eq(e).addClass('active')};i.atEnd=(e==0||e==i.count-1)?!0:!1;if(!i.vars.animationLoop&&i.vars.directionNav){if(e==0){i.directionNav.removeClass('disabled').filter('.prev').addClass('disabled')}else{if(e==i.count-1){i.directionNav.removeClass('disabled').filter('.next').addClass('disabled')}else{i.directionNav.removeClass('disabled')}}};if(!i.vars.animationLoop&&e==i.count-1){i.pause();i.vars.end(i)};if(i.vars.animation.toLowerCase()=='slide'){var n=(i.vertical)?i.slides.filter(':first').height():i.slides.filter(':first').width();if(i.currentSlide==0&&e==i.count-1&&i.vars.animationLoop&&i.direction!='next'){i.slideString='0px'}else{if(i.currentSlide==i.count-1&&e==0&&i.vars.animationLoop&&i.direction!='prev'){i.slideString=(-1*(i.count+1))*n+'px'}else{i.slideString=(-1*(e+i.cloneOffset))*n+'px'}};i.args[i.prop]=i.slideString;if(i.transitions){i.setTransition(i.vars.animationDuration);i.args[i.prop]=(i.vertical)?'translate3d(0,'+i.slideString+',0)':'translate3d('+i.slideString+',0,0)';i.container.css(i.args).one('webkitTransitionEnd transitionend',function(){i.wrapup(n)})}else{i.container.animate(i.args,i.vars.animationDuration,function(){i.wrapup(n)})}}else{i.slides.eq(i.currentSlide).fadeOut(i.vars.animationDuration,function(){});i.slides.eq(e).fadeIn(i.vars.animationDuration,function(){i.wrapup()})}}};i.wrapup=function(e){if(i.vars.animation=='slide'){if(i.currentSlide==0&&i.animatingTo==i.count-1&&i.vars.animationLoop){i.args[i.prop]=(-1*i.count)*e+'px';if(i.transitions){i.setTransition(0);i.args[i.prop]=(i.vertical)?'translate3d(0,'+i.args[i.prop]+',0)':'translate3d('+i.args[i.prop]+',0,0)'};i.container.css(i.args)}else{if(i.currentSlide==i.count-1&&i.animatingTo==0&&i.vars.animationLoop){i.args[i.prop]=-1*e+'px';if(i.transitions){i.setTransition(0);i.args[i.prop]=(i.vertical)?'translate3d(0,'+i.args[i.prop]+',0)':'translate3d('+i.args[i.prop]+',0,0)'};i.container.css(i.args)}}};i.animating=!1;i.currentSlide=i.animatingTo;i.vars.after(i)};i.animateSlides=function(){if(!i.animating){i.flexAnimate(i.getTarget('next'))}};i.pause=function(){clearInterval(i.animatedSlides);if(i.vars.pausePlay){i.pausePlay.removeClass('pause').addClass('play').text(i.vars.playText)}};i.resume=function(){i.animatedSlides=setInterval(i.animateSlides,i.vars.slideshowSpeed);if(i.vars.pausePlay){i.pausePlay.removeClass('play').addClass('pause').text(i.vars.pauseText)}};i.canAdvance=function(e){if(!i.vars.animationLoop&&i.atEnd){if(i.currentSlide==0&&e==i.count-1&&i.direction!='next'){return!1}else{if(i.currentSlide==i.count-1&&e==0&&i.direction=='next'){return!1}else{return!0}}}else{return!0}};i.getTarget=function(e){i.direction=e;if(e=='next'){return(i.currentSlide==i.count-1)?0:i.currentSlide+1}else{return(i.currentSlide==0)?i.count-1:i.currentSlide-1}};i.setTransition=function(e){i.container.css({'-webkit-transition-duration':(e/1000)+'s'})};i.init()};e.flexslider.defaults={animation:'fade',slideDirection:'horizontal',slideshow:!0,slideshowSpeed:7000,animationDuration:600,directionNav:!0,controlNav:!0,keyboardNav:!0,mousewheel:!1,prevText:'Previous',nextText:'Next',pausePlay:!1,pauseText:'Pause',playText:'Play',randomize:!1,slideToStart:0,animationLoop:!0,pauseOnAction:!0,pauseOnHover:!1,useCSS:!0,touch:!0,controlsContainer:'',manualControls:'',start:function(){},before:function(){},after:function(){},end:function(){}};e.fn.flexslider=function(t){return this.each(function(){if(e(this).find('.slides > li').length==1){e(this).find('.slides > li').fadeIn(400)}else{if(e(this).data('flexsliderInit')!=!0){new e.flexslider(this,t)}}})}})(jQuery),custom=function(){};jQuery(document).ready(function(e){(function(){var o={down:'downarrowclass',right:'rightarrowclass'};var t=e('#navigation').find('> ul'),i='',n=t.find('ul').parent();n.each(function(t){var i=e(this);this.istopheader=i.parents('ul').length==1?!0:!1});t.on('mouseenter','li',function(){var t=e(this),i=t.children('ul');if(i.length)t.addClass('hover');i.hide().stop(!0,!0).fadeIn(200)}).on('mouseleave','li',function(){e(this).removeClass('hover').children('ul').stop(!0,!0).fadeOut(50)});t.find('li').each(function(){var n=e(this),o=n.children('a'),t=n.parents('ul').length-1,r='';if(t){while(t>0){r+='--';t--}};i+=''}).end().after('');e('.nav-responsive').on('change',function(){window.location=e(this).val()})})();e.cookie=function(t,i,n){if(typeof i!='undefined'){n=n||{};if(i===null){i='';n.expires=-1};var u='';if(n.expires&&(typeof n.expires=='number'||n.expires.toUTCString)){var o;if(typeof n.expires=='number'){o=new Date();o.setTime(o.getTime()+(n.expires*24*60*60*1000))}else{o=n.expires};u='; expires='+o.toUTCString()};var c=n.path?'; path='+(n.path):'',d=n.domain?'; domain='+(n.domain):'',f=n.secure?'; secure':'';document.cookie=[t,'=',encodeURIComponent(i),u,c,d,f].join('')}else{var l=null;if(document.cookie&&document.cookie!=''){var a=document.cookie.split(';');for(var r=0;r'+n+' '+t.join(' '))})})();(function(){if(e('.toggle-container').length){var i=e('.toggle-container'),t=e('.trigger');i.hide();t.first().addClass('active').next().show();t.on('click',function(i){if(e(this).next().is(':hidden')){t.removeClass('active').next().slideUp(300);e(this).toggleClass('active').next().slideDown(300)};i.preventDefault()})}})();(function(){if(e('.entry-tabs').length){var t=e('.entry-tabs');e.fn.tabs=function(t){m$=t.find('.tabs-nav').children('li'),u$=t.find('.tab-content');u$.hide();m$.first().addClass('active').show();u$.first().show();t.find('ul.tabs-nav li').on('click',function(i){var n=e(this);t.find('ul.tabs-nav li').removeClass('active');n.addClass('active');t.find('.tab-content').hide();e(n.find('a').attr('href')).fadeIn();i.preventDefault()})};t.tabs(t)}})();(function(){var t=e('.layout-switcher'),i=e('#change-items');if(t.length){e.fn.tabsEntry=function(t){var r=e.cookie('nav'),o=e.cookie('href'),n=t.find('a');if(r&&o){n.removeClass('active');n.filter('.'+r).addClass('active');i.removeClass().addClass(o)}else{n.removeClass('active');n.first().addClass('active')};n.on('click',function(t){var s=e(this);r=e(this).attr('class'),o=e(this).attr('href').substring(1);e.cookie('nav',r);e.cookie('href',o);i.removeClass().addClass(o);n.removeClass('active');s.addClass('active');t.preventDefault()})};t.tabsEntry(t)}})();(function(){if(e('.single-image').length||e('.video-image').length){(function(){e('.video-image').each(function(){e(this).append(' ')});e('.single-image').each(function(){e(this).append('  ')})})();if(e('a.video-image').length){(function(){e('a.video-image').on('click',function(){e.fancybox({'type':'iframe','href':this.href.replace(new RegExp('watch\\?v=','i'),'embed/')+'&autoplay=1','overlayShow':!0,'centerOnScroll':!0,'speedIn':100,'speedOut':50,'width':640,'height':480});return!1})})()}}})()});var cont=function(){};cont.save=function(){var s,r='',t='',n='',i='',o='';jQuery.each(jQuery('input, select ,textarea','#contato'),function(e){var s=this;if(s.name=='destinys'){r='destino='+s.value}else{if(s.name.substring(0,2)=='r_'&&s.value==''){if(o=='')o=s;if(i=='')i=s;t+=s.id+' , '}else if(s.name.substring(0,2)=='e_'){if(s.value==''){t+=s.id+' , ';if(i=='')i=s}else if(s.value.indexOf('@',1)==-1){t+=s.id+' (inválido), ';if(i=='')i=s}else{n+=s.name+'='+cfe.escapeSpecial(s.value)+'&'}}else if(s.name.substring(0,2)=='n_'){n+=s.name+'='+cfe.escapeSpecial(s.value)+'&'}else{n+=s.name+'='+cfe.escapeSpecial(s.value)+'&'}}});if(t==''){jQuery('#submit').html('Aguarde...');cfe.cfejs_cfe('compro','form_save',n)}else{t='
    Os campos abaixo precisam ser digitados:\n'+t+'
    ';cfe.prompt(t);try{Field.focus(o)}catch(e){}}};var news=function(){};news.save=function(){var a,o='',e='',i='',t='',n='',r=jQuery('#e-mail').val(),s=jQuery('#e-mail2').val();if(r!=s){jQuery('#e-mail').val('');jQuery('#e-mail2').val('');jQuery('#e-mail').focus();cfe.prompt('Os dois campos de e-mail precisam ser digitados igualmente, por favor redigite.');return!1};jQuery.each(jQuery('input, select ,textarea','#newsletter3'),function(r){var s=this;if(s.name=='destinys'){o='destino='+s.value}else{if(s.name.substring(0,2)=='r_'&&s.value==''){if(n=='')n=s;e+=s.id+' , ';if(t=='')t=s}else if(s.name.substring(0,2)=='e_'){if(s.value==''){e+=s.id+' , ';if(t=='')t=s}else if(s.value.indexOf('@',1)==-1){e+=s.id+' (inválido), ';if(t=='')t=s}else{i+=s.name+'='+cfe.escapeSpecial(s.value)+'&'}}else if(s.name.substring(0,2)=='n_'){i+=s.name+'='+cfe.escapeSpecial(s.value)+'&'}else{i+=s.name+'='+cfe.escapeSpecial(s.value)+'&'}}});if(e==''){jQuery('#submit').html('Aguarde...');cfe.cfejs_cfe('newsLetter','form_save',i)}else{e='
    Os campos abaixo precisam ser digitados:\n\n'+e+'
    ';cfe.prompt(e)}};var prod=function(){};prod.indicar=function(e){var c,d='',n='',i='',f='',o='',r=$F('r_nome'),s=$F('e_email'),a=$F('n_mensagem'),l=$F('n_remetente'),u=$F('n_email_remetente');if(r==''){if(o=='')o='r_nome';n='\nnome do amigo - é necessário'};if(s==''){if(o=='')o='e_email';n+='\n email do amigo - é necessário'};if(a==''){if(o=='')o='n_mensagem';n+='\n mensagem - é necessário'};i+='prodind='+e+' &';i+='nome='+r+'&';i+='email='+s+'&';i+='mensagem='+a+'&';i+='remetente='+l+'&';i+='mailremetente='+u+'&';i+='prod_ind='+e+'&';if(n==''){cfe.obj.div('indicar','produto','indicar_send',i,0)}else{n='Os campos abaixo precisam ser digitados:\n\n'+n;cfe.prompt(n);try{Field.focus(o)}catch(t){}}};var lazy=function(){};!function(e,t){'use strict';function s(n,r,s,a,l){function S(){T=e.devicePixelRatio>1,s=C(s),r.delay>=0&&setTimeout(function(){g(!0)},r.delay),(r.delay<0||r.combined)&&(a.e=Q(r.throttle,function(e){'resize'===e.type&&(y=v=-1),g(e.all)}),a.a=function(e){e=C(e),s.push.apply(s,e)},a.g=function(){return s=i(s).filter(function(){return!i(this).data(r.loadedName)})},a.f=function(e){for(var t=0;tt.top&&-it.left&&-i=0?y:y=i(e).width()};function E(){return v>=0?v:v=i(e).height()};function z(e){return e.tagName.toLowerCase()};function H(e,t){if(t){var o=e.split(',');e='';for(var i=0,n=o.length;ie||!r.enableThrottle||a?u():i=setTimeout(u,e-l)}};function x(){--b,s.length||b||d('onFinishedAll')};function d(e,t,i){return!!(e=r[e])&&(e.apply(n,[].slice.call(arguments,1)),!0)};var b=0,y=-1,v=-1,T=!1,j='afterLoad',f='load',p='error',c='img',u='src',m='srcset',w='sizes',h='background-image';'event'===r.bind||o?S():i(e).on(f+'.'+l,S)};function n(n,o){var a=this,u=i.extend({},a.config,o),l={},c=u.name+'-'+ ++r;return a.config=function(e,i){return i===t?u[e]:(u[e]=i,a)},a.addItems=function(e){return l.a&&l.a('string'===i.type(e)?i(e):e),a},a.getItems=function(){return l.g?l.g():{}},a.update=function(e){return l.e&&l.e({},!e),a},a.force=function(e){return l.f&&l.f('string'===i.type(e)?i(e):e),a},a.loadAll=function(){return l.e&&l.e({all:!0},!0),a},a.destroy=function(){return i(u.appendScroll).off('.'+c,l.e),i(e).off('.'+c),l={},t},s(a,u,n,l,c),u.chainable?n:a};var i=e.jQuery||e.Zepto,r=0,o=!1;i.fn.Lazy=i.fn.lazy=function(e){return new n(this,e)},i.Lazy=i.lazy=function(e,o,r){if(i.isFunction(o)&&(r=o,o=[]),i.isFunction(r)){e=i.isArray(e)?e:[e],o=i.isArray(o)?o:[o];for(var s=n.prototype.config,c=s._f||(s._f={}),a=0,d=e.length;aconjunto1){r=separacao1;sep1=!0};if(n==conjunto2+conjunto1+1&&c!=!0&&o>conjunto2+conjunto1+2){r=separacao2;c=!0};if(n==conjunto3+conjunto2+conjunto1+2&&d!=!0&&o>conjunto3+conjunto2+conjunto1+4){r=separacao3;d=!0};l=l+r+a.substr(n,1);r=''};for(var n=0;n<=o;n++){u=u+l.substr(o-n,1)};campo.value=u}else{campo.value=campo.value.substr(0,(campo.value.length-1))}};if(e=='cnpj'){caracteres='01234567890abcdefghi`';separacoes=4;separacao1='.';separacao2='.';separacao3='/';separacao4='-';conjuntos=5;conjunto1=3;conjunto2=3;conjunto3=3;conjunto4=4;conjunto5=2;if((caracteres.search(String.fromCharCode(keypress))!=-1)&&(campo.value.length<=(conjunto1+conjunto2+conjunto3+conjunto4+conjunto5+separacoes-1))){if(campo.value.length==conjunto1){campo.value=campo.value+separacao1};if(campo.value.length==conjunto1+conjunto2+1){campo.value=campo.value+separacao2};if(campo.value.length==conjunto1+conjunto2+conjunto3+2){campo.value=campo.value+separacao3};if(campo.value.length==conjunto1+conjunto2+conjunto3+conjunto4+3){campo.value=campo.value+separacao4}}else{campo.value=campo.value.substr(0,(campo.value.length-1))}}};cleanParameter=function(e){e=e.replace('home','chome');e=e.replace('tag_template','ctag_template');e=e.replace('init','cinit');e=e.replace('?','');return e};tr_spaces=function(e){parameteres=url_encode(e);return e};evalResponse=function(e){eval(e.responseText)};url_encode=function(e){var o='0123456789ABCDEF',a=/^([a-zA-Z0-9\_\-\.])$/,t,i,r,s,n='';for(t=0;t