vendor: 4,396 bytes, line 1
1!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s
vendor: 18,080 bytes, line 1
1=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")}
vendor: 16,843 bytes, lines 1-2
1)||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1; 2return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{}
vendor: 1,726 bytes, line 2
2,e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>
vendor: 54,827 bytes, lines 2-3
2=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ca()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ca()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?aa:ba):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=aa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=aa,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=aa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=ba;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=ba),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function da(a){var b=ea.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var ea="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fa=/ jQuery\d+="(?:null|\d+)"/g,ga=new RegExp("<(?:"+ea+")[\\s/>]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/<tbody/i,la=/<|&#?\w+;/,ma=/<(?:script|style|link)/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=/^$|\/(?:java|ecma)script/i,pa=/^true\/(.*)/,qa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ra={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g)d[g]&&Ba(e,d[g]);if(b)if(c)for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++)Aa(e,d[g]);else Aa(a,f);return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1></$2>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?"<table>"!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++])oa.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++)d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ca[0].contentWindow||Ca[0].contentDocument).document,b.write(),b.close(),c=Ea(a,b),Ca.detach()),Da[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=y.getElementsByTagName("body")[0],c&&c.style?(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Ga=/^margin/,Ha=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ia,Ja,Ka=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ia=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Ha.test(g)&&Ga.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ia=function(a){return a.currentStyle},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ha.test(g)&&!Ka.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function La(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Ma=/alpha\([^)]*\)/i,Na=/opacity\s*=\s*([^)]*)/,Oa=/^(none|table(?!-c[ea]).+)/,Pa=new RegExp("^("+S+")(.*)$","i"),Qa=new RegExp("^([+-])=("+S+")","i"),Ra={position:"absolute",visibility:"hidden",display:"block"},Sa={letterSpacing:"0",fontWeight:"400"},Ta=["Webkit","O","Moz","ms"];function Ua(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ta.length;while(e--)if(b=Ta[e]+c,b in a)return b;return d}function Va(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fa(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Wa(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)));return g}function Ya(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ia(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Ja(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ha.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xa(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ja(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ua(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Qa.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ua(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ja(a,b,d)),"normal"===f&&b in Sa&&(f=Sa[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Oa.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Ra,function(){return Ya(a,b,d)}):Ya(a,b,d):void 0},set:function(a,c,d){var e=d&&Ia(a);return Wa(a,c,d?Xa(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Na.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Ma,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ma.test(f)?f.replace(Ma,e):f+" "+e)}}),m.cssHooks.marginRight=La(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Ja,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Ga.test(a)||(m.cssHooks[a+b].set=Wa)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ia(a),e=b.length;e>g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Va(this,!0)},hide:function(){return Va(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Za(a,b,c,d,e){ 3return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[c]=eb[c]||[],eb[c].unshift(b)},prefilter:function(a,b){b?db.unshift(a):db.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kb(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&cb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),m.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($a=m.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$a=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_a||(_a=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_a),_a=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lb=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lb,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mb,nb,ob=m.expr.attrHandle,pb=/^(?:checked|selected)$/i,qb=k.getSetAttribute,rb=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nb:mb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rb&&qb||!pb.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qb?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nb={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rb&&qb||!pb.test(c)?a.setAttribute(!qb&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ob[b]||m.find.attr;ob[b]=rb&&qb||!pb.test(b)?function(a,b,d){var e,f;return d||(f=ob[b],ob[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ob[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rb&&qb||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void(a.defaultValue=b):mb&&mb.set(a,b,c)}}),qb||(mb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},ob.id=ob.name=ob.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mb.set},m.attrHooks.contenteditable={set:function(a,b,c){mb.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sb=/^(?:input|select|textarea|button|object)$/i,tb=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var ub=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=m.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?m.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ub," ").indexOf(b)>=0)return!0;return!1}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vb=m.now(),wb=/\?/,xb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yb,zb,Ab=/#.*$/,Bb=/([?&])_=[^&]*/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Db=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//,Gb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hb={},Ib={},Jb="*/".concat("*");try{zb=location.href}catch(Kb){zb=y.createElement("a"),zb.href="",zb=zb.href}yb=Gb.exec(zb.toLowerCase())||[];function Lb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mb(a,b,c,d){var e={},f=a===Ib;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nb(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&m.extend(!0,a,c),a}function Ob(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zb,type:"GET",isLocal:Db.test(yb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nb(Nb(a,m.ajaxSettings),b):Nb(m.ajaxSettings,a)},ajaxPrefilter:Lb(Hb),ajaxTransport:Lb(Ib),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cb.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zb)+"").replace(Ab,"").replace(Fb,yb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gb.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yb[1]&&c[2]===yb[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yb[3]||("http:"===yb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mb(Hb,k,b,v),2===t)return v;h=m.event&&k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Eb.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wb.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bb.test(e)?e.replace(Bb,"$1_="+vb++):e+(wb.test(e)?"&":"?")+"_="+vb++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jb+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mb(Ib,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Ob(k,v,c)),u=Pb(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qb=/%20/g,Rb=/\[\]$/,Sb=/\r?\n/g,Tb=/^(?:submit|button|image|reset|file)$/i,Ub=/^(?:input|select|textarea|keygen)/i;function Vb(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rb.test(a)?d(a,e):Vb(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==m.type(b))d(a,b);else for(e in b)Vb(a+"["+e+"]",b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vb(c,a[c],b,e);return d.join("&").replace(Qb,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Ub.test(this.nodeName)&&!Tb.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sb,"\r\n")}}):{name:b.name,value:c.replace(Sb,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zb()||$b()}:Zb;var Wb=0,Xb={},Yb=m.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Xb)Xb[a](void 0,!0)}),k.cors=!!Yb&&"withCredentials"in Yb,Yb=k.ajax=!!Yb,Yb&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Xb[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xb[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zb(){try{return new a.XMLHttpRequest}catch(b){}}function $b(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _b=[],ac=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_b.pop()||m.expando+"_"+vb++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ac.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ac.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ac,"$1"+e):b.jsonp!==!1&&(b.url+=(wb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_b.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bc=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bc)return bc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});
4function $JssorObject$(){function u(n,i){$JssorDebug$.$Execute(function(){if(n==undefined||n==null)throw new Error("param 'eventName' is null or empty.");if(typeof i!="function")throw"param 'handler' must be a function.";$Jssor$.$Each(t,function(t){if(t.$EventName==n&&t.$Handler===i)throw new Error("The handler listened to the event already, cannot listen to the same event of the same object with the same handler twice.");})});t.push({$EventName:n,$Handler:i})}function f(n,i){$JssorDebug$.$Execute(function(){if(n==undefined||n==null)throw new Error("param 'eventName' is null or empty.");if(typeof i!="function")throw"param 'handler' must be a function.";});$Jssor$.$Each(t,function(r,u){r.$EventName==n&&r.$Handler===i&&t.splice(u,1)})}function e(){t=[]}function r(){$Jssor$.$Each(i,function(n){$Jssor$.$RemoveEvent(n.$Obj,n.$EventName,n.$Handler)});i=[]}var n=this,t=[],i=[];n.$Listen=function(n,t,r,u){$JssorDebug$.$Execute(function(){if(!n)throw new Error("param 'obj' is null or empty.");if(t==undefined||t==null)throw new Error("param 'eventName' is null or empty.");if(typeof r!="function")throw"param 'handler' must be a function.";$Jssor$.$Each(i,function(i){if(i.$Obj===n&&i.$EventName==t&&i.$Handler===r)throw new Error("The handler listened to the event already, cannot listen to the same event of the same object with the same handler twice.");})});$Jssor$.$AddEvent(n,t,r,u);i.push({$Obj:n,$EventName:t,$Handler:r})};n.$Unlisten=function(n,t,r){$JssorDebug$.$Execute(function(){if(!n)throw new Error("param 'obj' is null or empty.");if(t==undefined||t==null)throw new Error("param 'eventName' is null or empty.");if(typeof r!="function")throw"param 'handler' must be a function.";});$Jssor$.$Each(i,function(u,f){u.$Obj===n&&u.$EventName==t&&u.$Handler===r&&($Jssor$.$RemoveEvent(n,t,r),i.splice(f,1))})};n.$UnlistenAll=r;n.$On=n.addEventListener=u;n.$Off=n.removeEventListener=f;n.$TriggerEvent=function(n){var i=[].slice.call(arguments,1);$Jssor$.$Each(t,function(t){t.$EventName==n&&t.$Handler.apply(window,i)})};n.$Destroy=function(){r();e();for(var t in n)delete n[t]};$JssorDebug$.$C_AbstractClass(n)}function $JssorAnimator$(n,t,i,r,u,f){function lt(n){o+=n;s+=n;c+=n;k+=n;h+=n;l+=n;nt=n}function pt(t,i){var r=t-o+n*i;return lt(r),s}function d(n,a){var v=n,y,w,k,d,g;p&&(v>=s||v<=o)&&(v=((v-o)%p+p)%p+o);(!ut||b||a||h!=v)&&(y=Math.min(v,s),y=Math.max(y,o),(!ut||b||a||y!=l)&&(f&&(w=(y-c)/(t||1),i.$Reverse&&(w=1-w),k=$Jssor$.$Cast(u,f,w,ot,ht,st,i),$Jssor$.$Each(k,function(n,t){ft[t]&&ft[t](r,n)})),e.$OnInnerOffsetChange(l-c,y-c),l=y,$Jssor$.$Each(tt,function(t,i){var r=n<h?tt[tt.length-i-1]:t;r.$GoToPosition(l-nt,a)}),d=h,g=l,h=v,ut=!0,e.$OnPositionChange(d,g)))}function et(n,t,i){$JssorDebug$.$Execute(function(){t!==0&&t!==1&&$JssorDebug$.$Fail("Argument out of range, the value of 'combineMode' should be either 0 or 1.")});t&&n.$Locate(s,1);i||(o=Math.min(o,n.$GetPosition_OuterBegin()+nt),s=Math.max(s,n.$GetPosition_OuterEnd()+nt));tt.push(n)}function at(){if(a){var t=$Jssor$.$GetNow(),r=Math.min(t-it,i.$IntervalMax),n=h+r*y;it=t;n*y>=v*y&&(n=v);d(n);!b&&n*y>=v*y?vt(rt):w(at)}}function g(n,t,i){a||(a=!0,b=i,rt=t,n=Math.max(n,o),n=Math.min(n,s),v=n,y=v<h?-1:1,e.$OnStart(),it=$Jssor$.$GetNow(),w(at))}function vt(n){a&&(b=a=rt=!1,e.$OnStop(),n&&n())}var w;n=n||0;var e=this,a,yt,v,y,b,it=0,ot,st,ht,rt,nt=0,h=0,l=0,ut,c=n,k=n+t,o,s,p,tt=[],ft;w=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame;$Jssor$.$IsBrowserSafari()&&$Jssor$.$BrowserVersion()<7&&(w=null);w=w||function(n){$Jssor$.$Delay(n,i.$Interval)};e.$Play=function(n,t,i){g(n?h+n:s,t,i)};e.$PlayToPosition=g;e.$PlayToBegin=function(n,t){g(o,n,t)};e.$PlayToEnd=function(n,t){g(s,n,t)};e.$Stop=vt;e.$Continue=function(n){g(n)};e.$GetPosition=function(){return h};e.$GetPlayToPosition=function(){return v};e.$GetPosition_Display=function(){return l};e.$GoToPosition=d;e.$GoToBegin=function(){d(o,!0)};e.$GoToEnd=function(){d(s,!0)};e.$Move=function(n){d(h+n)};e.$CombineMode=function(){return yt};e.$GetDuration=function(){return t};e.$IsPlaying=function(){return a};e.$IsOnTheWay=function(){return h>c&&h<=k};e.$SetLoopLength=function(n){p=n};e.$Locate=pt;e.$Shift=lt;e.$Join=et;
4e.$Combine=function(n){et(n,0)};e.$Chain=function(n){et(n,1)};e.$GetPosition_InnerBegin=function(){return c};e.$GetPosition_InnerEnd=function(){return k};e.$GetPosition_OuterBegin=function(){return o};e.$GetPosition_OuterEnd=function(){return s};e.$OnPositionChange=e.$OnStart=e.$OnStop=e.$OnInnerOffsetChange=$Jssor$.$EmptyFunction;e.$Version=$Jssor$.$GetNow();i=$Jssor$.$Extend({$Interval:16,$IntervalMax:50},i);$JssorDebug$.$Execute(function(){i=$Jssor$.$Extend({$LoopLength:undefined,$Setter:undefined,$Easing:undefined},i)});p=i.$LoopLength;ft=$Jssor$.$Extend({},$Jssor$.$StyleSetter(),i.$Setter);o=c=n;s=k=n+t;st=i.$Round||{};ht=i.$During||{};ot=$Jssor$.$Extend({$Default:$Jssor$.$IsFunction(i.$Easing)&&i.$Easing||$JssorEasing$.$EaseSwing},i.$Easing)}function $JssorPlayerClass$(){function i(n){function r(u){var f=$Jssor$.$EvtSrc(u);t=f.pInstance;$Jssor$.$RemoveEvent(f,"dataavailable",r);$Jssor$.$Each(i,function(n){n!=t&&n.$Remove()});n.pTagName=t.tagName;i=null}function u(t){var u,f;return t.pInstance||(f=$Jssor$.$AttributeEx(t,"pHandler"),$JssorPlayer$[f]&&($Jssor$.$AddEvent(t,"dataavailable",r),u=new $JssorPlayer$[f](n,t),i.push(u),$JssorDebug$.$Execute(function(){$Jssor$.$Type(u.$Remove)!="function"&&$JssorDebug$.$Fail("'pRemove' interface not implemented for player handler '"+f+"'.")}))),u}var f=this,t,i=[];f.$InitPlayerController=function(){if(!n.pInstance&&!u(n)){var t=$Jssor$.$Children(n);$Jssor$.$Each(t,function(n){u(n)})}}}var t=this,n=[];t.$EVT_SWITCH=21;t.$FetchPlayers=function(t){t=t||document.body;var r=$Jssor$.$FindChildren(t,"player");$Jssor$.$Each(r,function(t){n[t.pId]||(t.pId=n.length,n.push(new i(t)));var r=n[t.pId];r.$InitPlayerController()})}}var $JssorDebug$=new function(){function n(t){if(t.constructor===n.caller)throw new Error("Cannot create instance of an abstract class.");}this.$DebugMode=!1;this.$Log=function(n,t){var i=window.console||{},r=this.$DebugMode;r&&i.log?i.log(n):r&&t&&alert(n)};this.$Error=function(n,t){var r=window.console||{},i=this.$DebugMode;if(i&&r.error?r.error(n):i&&alert(n),i)throw t||new Error(n);};this.$Fail=function(n){throw new Error(n);};this.$Assert=function(n,t){var i=this.$DebugMode;if(i&&!n)throw new Error("Assert failed "+t||"");};this.$Trace=function(n){var t=window.console||{},i=this.$DebugMode;i&&t.log&&t.log(n)};this.$Execute=function(n){var t=this.$DebugMode;t&&n()};this.$LiveStamp=function(n,t){var r=this.$DebugMode,i;r&&(i=document.createElement("DIV"),i.setAttribute("id",t),n.$Live=i)};this.$C_AbstractProperty=function(){throw new Error("The property is abstract, it should be implemented by subclass.");};this.$C_AbstractMethod=function(){throw new Error("The method is abstract, it should be implemented by subclass.");};this.$C_AbstractClass=n},$JssorEasing$=window.$JssorEasing$={$EaseSwing:function(n){return-Math.cos(n*Math.PI)/2+.5},$EaseLinear:function(n){return n},$EaseInQuad:function(n){return n*n},$EaseOutQuad:function(n){return-n*(n-2)},$EaseInOutQuad:function(n){return(n*=2)<1?1/2*n*n:-1/2*(--n*(n-2)-1)},$EaseInCubic:function(n){return n*n*n},$EaseOutCubic:function(n){return(n-=1)*n*n+1},$EaseInOutCubic:function(n){return(n*=2)<1?1/2*n*n*n:1/2*((n-=2)*n*n+2)},$EaseInQuart:function(n){return n*n*n*n},$EaseOutQuart:function(n){return-((n-=1)*n*n*n-1)},$EaseInOutQuart:function(n){return(n*=2)<1?1/2*n*n*n*n:-1/2*((n-=2)*n*n*n-2)},$EaseInQuint:function(n){return n*n*n*n*n},$EaseOutQuint:function(n){return(n-=1)*n*n*n*n+1},$EaseInOutQuint:function(n){return(n*=2)<1?1/2*n*n*n*n*n:1/2*((n-=2)*n*n*n*n+2)},$EaseInSine:function(n){return 1-Math.cos(n*Math.PI/2)},$EaseOutSine:function(n){return Math.sin(n*Math.PI/2)},$EaseInOutSine:function(n){return-1/2*(Math.cos(Math.PI*n)-1)},$EaseInExpo:function(n){return n==0?0:Math.pow(2,10*(n-1))},$EaseOutExpo:function(n){return n==1?1:-Math.pow(2,-10*n)+1},$EaseInOutExpo:function(n){return n==0||n==1?n:(n*=2)<1?1/2*Math.pow(2,10*(n-1)):1/2*(-Math.pow(2,-10*--n)+2)},$EaseInCirc:function(n){return-(Math.sqrt(1-n*n)-1)},$EaseOutCirc:function(n){return Math.sqrt(1-(n-=1)*n)},$EaseInOutCirc:function(n){return(n*=2)<1?-1/2*(Math.sqrt(1-n*n)-1):1/2*(Math.sqrt(1-(n-=2)*n)+1)},$EaseInElastic:function(n){if(!n||n==1)return n;return-(Math.pow(2,10*(n-=1))*Math.sin((n-.075)*2*Math.PI/.3))},$EaseOutElastic:function(n){if(!n||n==1)return n;return Math.pow(2,-10*n)*Math.sin((n-.075)*2*Math.PI/.3)+1},$EaseInOutElastic:function(n){if(!n||n==1)return n;var t=.45,i=.1125;return(n*=2)<1?-.5*Math.pow(2,10*(n-=1))*Math.sin((n-i)*2*Math.PI/t):Math.pow(2,-10*(n-=1))*Math.sin((n-i)*2*Math.PI/t)*.5+1},$EaseInBack:function(n){var t=1.70158;return n*n*((t+1)*n-t)},$EaseOutBack:function(n){var t=1.70158;
4return(n-=1)*n*((t+1)*n+t)+1},$EaseInOutBack:function(n){var t=1.70158;return(n*=2)<1?1/2*n*n*(((t*=1.525)+1)*n-t):1/2*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},$EaseInBounce:function(n){return 1-$JssorEasing$.$EaseOutBounce(1-n)},$EaseOutBounce:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},$EaseInOutBounce:function(n){return n<1/2?$JssorEasing$.$EaseInBounce(n*2)*.5:$JssorEasing$.$EaseOutBounce(n*2-1)*.5+.5},$EaseGoBack:function(n){return 1-Math.abs((n*=2)-1)},$EaseInWave:function(n){return 1-Math.cos(n*Math.PI*2)},$EaseOutWave:function(n){return Math.sin(n*Math.PI*2)},$EaseOutJump:function(n){return 1-((n*=2)<1?(n=1-n)*n*n:(n-=1)*n*n)},$EaseInJump:function(n){return(n*=2)<1?n*n*n:(n=2-n)*n*n}},$JssorDirection$=window.$JssorDirection$={$TO_LEFT:1,$TO_RIGHT:2,$TO_TOP:4,$TO_BOTTOM:8,$HORIZONTAL:3,$VERTICAL:12,$GetDirectionHorizontal:function(n){return n&3},$GetDirectionVertical:function(n){return n&12},$IsHorizontal:function(n){return n&3},$IsVertical:function(n){return n&12}},$JssorKeyCode$={$BACKSPACE:8,$COMMA:188,$DELETE:46,$DOWN:40,$END:35,$ENTER:13,$ESCAPE:27,$HOME:36,$LEFT:37,$NUMPAD_ADD:107,$NUMPAD_DECIMAL:110,$NUMPAD_DIVIDE:111,$NUMPAD_ENTER:108,$NUMPAD_MULTIPLY:106,$NUMPAD_SUBTRACT:109,$PAGE_DOWN:34,$PAGE_UP:33,$PERIOD:190,$RIGHT:39,$SPACE:32,$TAB:9,$UP:38},$Jssor$=window.$Jssor$=new function(){function ur(){if(!it){it={$Touchable:"ontouchstart"in window||"createTouch"in document};var n;(b.pointerEnabled||(n=b.msPointerEnabled))&&(it.$TouchActionAttr=n?"msTouchAction":"touchAction")}return it}function a(n){var f,l,r;if(!e)if(e=-1,oi!="Microsoft Internet Explorer"||!window.attachEvent||!window.ActiveXObject)if(oi!="Netscape"||!window.addEventListener)r=/(opera)(?:.*version|)[ \/]([\w.]+)/i.exec(t),r&&(e=ei,i=u(r[2]));else{var h=t.indexOf("Firefox"),s=t.indexOf("Safari"),a=t.indexOf("Chrome"),c=t.indexOf("AppleWebKit");h>=0?(e=ri,i=u(t.substring(h+8))):s>=0?(l=t.substring(0,s).lastIndexOf("/"),e=a>=0?fi:ui,i=u(t.substring(l+1,s))):(r=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/i.exec(t),r&&(e=ht,i=o=u(r[1])));c>=0&&(w=u(t.substring(c+12)))}else f=t.indexOf("MSIE"),e=ht,o=u(t.substring(f+5,t.indexOf(";",f))),i=document.documentMode||o;return n==e}function s(){return a(ht)}function ct(){return s()&&(i<6||document.compatMode=="BackCompat")}function fr(){return a(ri)}function si(){return a(ui)}function hi(){return a(fi)}function ci(){return a(ei)}function li(){return si()&&w>534&&w<535}function lt(){return s()&&i<9}function c(n){return k||(r(["transform","WebkitTransform","msTransform","MozTransform","OTransform"],function(t){if(n.style[t]!=undefined)return k=t,!0}),k=k||"transform"),k}function ai(n){return{}.toString.call(n)}function er(){return rt||(rt={},r(["Boolean","Number","String","Function","Array","Date","RegExp","Object"],function(n){rt["[object "+n+"]"]=n.toLowerCase()})),rt}function r(n,t){var i,r;if(ai(n)=="[object Array]"){for(i=0;i<n.length;i++)if(t(n[i],i,n))return!0}else for(r in n)if(t(n[r],r,n))return!0}function d(n){return n==null?String(n):er()[ai(n)]||"object"}function vi(n){for(var t in n)return!0}function ut(n){try{return d(n)=="object"&&!n.nodeType&&n!=n.window&&(!n.constructor||{}.hasOwnProperty.call(n.constructor.prototype,"isPrototypeOf"))}catch(t){}}function v(n,t){return{x:n,y:t}}function yi(n,t){setTimeout(n,t||0)}function ft(n,t,i){var u=!n||n=="inherit"?"":n;return r(t,function(n){var t=n.exec(u),i,r;t&&(i=u.substr(0,t.index),r=u.substr(t.lastIndex+1,u.length-(t.lastIndex+1)),u=i+r)}),u=i+(u.indexOf(" ")!=0?" ":"")+u}function pi(n,t){i<9&&(n.style.filter=t)}function or(t,i,r){if(rr<9){var u=t.style.filter,f=new RegExp(/[\s]*progid:DXImageTransform\.Microsoft\.Matrix\([^\)]*\)/g),e=i?"progid:DXImageTransform.Microsoft.Matrix(M11="+i[0][0]+", M12="+i[0][1]+", M21="+i[1][0]+", M22="+i[1][1]+", SizingMethod='auto expand')":"",o=ft(u,[f],e);pi(t,o);n.$CssMarginTop(t,r.y);n.$CssMarginLeft(t,r.x)}}function at(n){n.constructor===at.caller&&n.$Construct&&n.$Construct.apply(n,at.caller.arguments)}function h(n){return n||window.event}function g(n,t,i){if(i!=undefined)n.style[t]=i;else{var r=n.currentStyle||n.style;return i=r[t],i==""&&window.getComputedStyle&&(r=n.ownerDocument.defaultView.getComputedStyle(n,null),r&&(i=r.getPropertyValue(t)||r[t])),i}}
4function vt(n,t,i,r){if(i!=undefined)r&&(i+="px"),g(n,t,i);else return u(g(n,t))}function sr(n,t,i){return vt(n,t,i,!0)}function f(n,t){var i=t&2,r=t?vt:g;return function(t,u){return r(t,n,u,i)}}function hr(n){if(s()&&o<9){var t=/opacity=([^)]*)/.exec(n.style.filter||"");return t?u(t[1])/100:1}return u(n.style.opacity||"1")}function cr(n,t,i){var f;if(s()&&o<9){var e=n.style.filter||"",h=new RegExp(/[\s]*alpha\([^\)]*\)/g),r=Math.round(100*t),u="";(r<100||i)&&(u="alpha(opacity="+r+") ");f=ft(e,[h],u);pi(n,f)}else n.style.opacity=t==1?"":Math.round(t*100)/100}function wi(t,i){var u=i.$Rotate||0,r=i.$Scale==undefined?1:i.$Scale,f,e,o;lt()?(f=n.$CreateMatrix(u/180*Math.PI,r,r),or(t,!u&&r==1?null:f,n.$GetMatrixOffset(f,i.$OriginalWidth,i.$OriginalHeight))):(e=c(t),e&&(o="rotate("+u%360+"deg) scale("+r+")",hi()&&w>535&&"ontouchstart"in window&&(o+=" perspective(2000px)"),t.style[e]=o))}function bi(n,t,i,r){for(r=r||"u",n=n?n.firstChild:null;n;n=n.nextSibling)if(n.nodeType==1){if(gt(n,r)==t)return n;if(!i){var u=bi(n,t,i,r);if(u)return u}}}function wt(n,t,i,r){var u,f;for(r=r||"u",u=[],n=n?n.firstChild:null;n;n=n.nextSibling)n.nodeType==1&&(gt(n,r)==t&&u.push(n),i||(f=wt(n,t,i,r),f.length&&(u=u.concat(f))));return u}function ki(n,t,i){for(n=n?n.firstChild:null;n;n=n.nextSibling)if(n.nodeType==1){if(n.tagName==t)return n;if(!i){var r=ki(n,t,i);if(r)return r}}}function di(n,t,i){var r=[],u;for(n=n?n.firstChild:null;n;n=n.nextSibling)n.nodeType==1&&(t&&n.tagName!=t||r.push(n),i||(u=di(n,t,i),u.length&&(r=r.concat(u))));return r}function nt(){for(var i=arguments,u,n,t,e=1&i[0],f=1+e,r=i[f-1]||{};f<i.length;f++)if(u=i[f])for(n in u)t=u[n],t!==undefined&&(t=u[n],r[n]=e&&ut(r[n])?nt(e,{},t):t);return r}function bt(n,t){var f,r,i,u,e;$JssorDebug$.$Assert(t);f={};for(r in n)i=n[r],u=t[r],i!==u&&(ut(i)&&ut(u)&&(i=bt(u),e=!vi(i)),e||(f[r]=i));return f}function kt(n){return document.createElement(n)}function dt(n,t,i){if(typeof n!="undefined"){if(i==undefined)return n.getAttribute(t);n.setAttribute(t,i)}}function gt(n,t){return dt(n,t)||dt(n,"data-"+t)}function y(n,t){if(t==undefined)return n.className;n.className=t}function gi(n){var t={};return r(n,function(n){t[n]=n}),t}function nr(n,t){return n.match(t||ir)}function ni(n,t){return gi(nr(n||"",t))}function ti(n,t){var i="";return r(t,function(t){i&&(i+=n);i+=t}),i}function et(n,t,i){y(n,ti(" ",nt(bt(ni(y(n)),ni(t)),ni(i))))}function ii(t,i,r){var u=t.cloneNode(!i);return r||n.$RemoveAttribute(u,"id"),u}function lr(t){function o(){et(t,a,u[e||s||f&2||f])}function i(){s=0;o();n.$RemoveEvent(document,"mouseup",i);n.$RemoveEvent(document,"touchend",i);n.$RemoveEvent(document,"touchcancel",i)}function v(t){e?n.$CancelEvent(t):(s=4,o(),n.$AddEvent(document,"mouseup",i),n.$AddEvent(document,"touchend",i),n.$AddEvent(document,"touchcancel",i))}var c=this,l="",u=[],a,s=0,f=0,e=0,h;c.$Selected=function(n){if(n!=undefined)f=n&2||n&1,o();else return f};c.$Enable=function(n){if(n==undefined)return!e;e=n?0:3;o()};t=n.$GetElement(t);h=$Jssor$.$Split(y(t));h&&(l=h.shift());r(["av","pv","ds","dn"],function(n){u.push(l+n)});a=ti(" ",u);u.unshift("");n.$AddEvent(t,"mousedown",v);n.$AddEvent(t,"touchstart",v)}function st(){return p||(p=nt({$MarginTop:n.$CssMarginTop,$MarginLeft:n.$CssMarginLeft,$Clip:n.$SetStyleClip,$Transform:n.$SetStyleTransform},ot)),p}function tr(){return st(),p.$Transform=p.$Transform,p}var n=this,ir=/\S+/g,ht=1,ri=2,ui=3,fi=4,ei=5,it,e=0,i=0,o=0,rr=0,w=0,b=navigator,oi=b.appName,ar=b.appVersion,t=b.userAgent,l=document.documentElement,k,rt,yt,pt,u,ot,p,tt;n.$Device=ur;n.$IsBrowserIE=s;n.$IsBrowserIeQuirks=ct;n.$IsBrowserFireFox=fr;n.$IsBrowserSafari=si;n.$IsBrowserChrome=hi;n.$IsBrowserOpera=ci;n.$IsBrowserBadTransform=li;n.$IsBrowserIe9Earlier=lt;n.$BrowserVersion=function(){return i};n.$BrowserEngineVersion=function(){return o||i};n.$WebKitVersion=function(){return a(),w};n.$Delay=yi;n.$Inherit=function(n,t){return t.call(n),nt({},n)};n.$Construct=at;n.$GetElement=function(t){return n.$IsString(t)&&(t=document.getElementById(t)),t};n.$GetEvent=h;n.$EvtSrc=function(n){return n=h(n),n.target||n.srcElement||document};n.$EvtTarget=function(n){return n=h(n),n.relatedTarget||n.toElement};n.$EvtWhich=function(n){return n=h(n),n.which||[0,1,3,0,2][n.button]||n.charCo
4de||n.keyCode};n.$MousePosition=function(n){return n=h(n),{x:n.pageX||n.clientX||0,y:n.pageY||n.clientY||0}};n.$PageScroll=function(){var n=document.body;return{x:(window.pageXOffset||l.scrollLeft||n.scrollLeft||0)-(l.clientLeft||n.clientLeft||0),y:(window.pageYOffset||l.scrollTop||n.scrollTop||0)-(l.clientTop||n.clientTop||0)}};n.$WindowSize=function(){var n=document.body;return{x:n.clientWidth||l.clientWidth,y:n.clientHeight||l.clientHeight}};n.$SetStyleTransform=function(t,i){li()?yi(n.$CreateCallback(null,wi,t,i)):wi(t,i)};n.$SetStyleTransformOrigin=function(n,t){var i=c(n);i&&(n.style[i+"Origin"]=t)};n.$CssScale=function(n,t){var i;if(s()&&o<9||o<10&&ct())n.style.zoom=t==1?"":t;else if(i=c(n),i){var r="scale("+t+")",u=n.style[i],f=new RegExp(/[\s]*scale\(.*?\)/g),e=ft(u,[f],r);n.style[i]=e}};n.$EnableHWA=function(n){n.style[c(n)]&&n.style[c(n)]!="none"||(n.style[c(n)]="perspective(2000px)")};n.$DisableHWA=function(n){n.style[c(n)]="none"};yt=0;pt=0;n.$WindowResizeFilter=function(n,t){return lt()?function(){var f=!0,i=ct()?n.document.body:n.document.documentElement,r,u;i&&(r=i.offsetWidth-yt,u=i.offsetHeight-pt,r||u?(yt+=r,pt+=u):f=!1);f&&t()}:t};n.$MouseOverOutFilter=function(t,i){return $JssorDebug$.$Execute(function(){if(!i)throw new Error('Null reference, parameter "target".');}),function(r){r=h(r);var f=r.type,u=r.relatedTarget||(f=="mouseout"?r.toElement:r.fromElement);u&&(u===i||n.$IsChild(i,u))||t(r)}};n.$AddEvent=function(t,i,r,u){t=n.$GetElement(t);$JssorDebug$.$Execute(function(){t||$JssorDebug$.$Fail("Parameter 'elmt' not specified.");r||$JssorDebug$.$Fail("Parameter 'handler' not specified.");t.addEventListener||t.attachEvent||$JssorDebug$.$Fail("Unable to attach event handler, no known technique.")});t.addEventListener?(i=="mousewheel"&&t.addEventListener("DOMMouseScroll",r,u),t.addEventListener(i,r,u)):t.attachEvent&&(t.attachEvent("on"+i,r),u&&t.setCapture&&t.setCapture())};n.$RemoveEvent=function(t,i,r,u){t=n.$GetElement(t);t.removeEventListener?(i=="mousewheel"&&t.removeEventListener("DOMMouseScroll",r,u),t.removeEventListener(i,r,u)):t.detachEvent&&(t.detachEvent("on"+i,r),u&&t.releaseCapture&&t.releaseCapture())};n.$FireEvent=function(n,t){var i,r;$JssorDebug$.$Execute(function(){document.createEvent||document.createEventObject||$JssorDebug$.$Fail("Unable to fire event, no known technique.");n.dispatchEvent||n.fireEvent||$JssorDebug$.$Fail("Unable to fire event, no known technique.")});document.createEvent?(i=document.createEvent("HTMLEvents"),i.initEvent(t,!1,!1),n.dispatchEvent(i)):(r="on"+t,i=document.createEventObject(),n.fireEvent(r,i))};n.$CancelEvent=function(n){n=h(n);n.preventDefault&&n.preventDefault();n.cancel=!0;n.returnValue=!1};n.$StopEvent=function(n){n=h(n);n.stopPropagation&&n.stopPropagation();n.cancelBubble=!0};n.$CreateCallback=function(n,t){var i=[].slice.call(arguments,2);return function(){var r=i.concat([].slice.call(arguments,0));return t.apply(n,r)}};n.$InnerText=function(t,i){if(i==undefined)return t.textContent||t.innerText;var r=document.createTextNode(i);n.$Empty(t);t.appendChild(r)};n.$InnerHtml=function(n,t){if(t==undefined)return n.innerHTML;n.innerHTML=t};n.$GetClientRect=function(n){var t=n.getBoundingClientRect();return{x:t.left,y:t.top,w:t.right-t.left,h:t.bottom-t.top}};n.$ClearInnerHtml=function(n){n.innerHTML=""};n.$EncodeHtml=function(t){var i=n.$CreateDiv();return n.$InnerText(i,t),n.$InnerHtml(i)};n.$DecodeHtml=function(t){var i=n.$CreateDiv();return n.$InnerHtml(i,t),n.$InnerText(i)};n.$SelectElement=function(n){var i,t;window.getSelection&&(i=window.getSelection());t=null;document.createRange?(t=document.createRange(),t.selectNode(n)):(t=document.body.createTextRange(),t.moveToElementText(n),t.select());i&&i.addRange(t)};n.$DeselectElements=function(){document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()};n.$Children=function(n,t){for(var r=[],i=n.firstChild;i;i=i.nextSibling)(t||i.nodeType==1)&&r.push(i);return r};n.$FindChild=bi;n.$FindChildren=wt;n.$FindChildByTag=ki;n.$FindChildrenByTag=di;n.$GetElementsByTag=function(n,t){return n.getElementsByTagName(t)};n.$Extend=nt;n.$Unextend=bt;n.$IsFunction=function(n){return d(n)=="function"};n.$IsArray=function(n){return d(n)=="array"};n.$IsString=function(n){return d(n)=="string"};n.$IsNumeric=function(n){return!isNaN(u(n))&&isFinite(n)};n.$Type=d;n.$Each=r;
4n.$IsNotEmpty=vi;n.$IsPlainObject=ut;n.$CreateElement=kt;n.$CreateDiv=function(){return kt("DIV")};n.$CreateSpan=function(){return kt("SPAN")};n.$EmptyFunction=function(){};n.$Attribute=dt;n.$AttributeEx=gt;n.$ClassName=y;n.$ToHash=gi;n.$Split=nr;n.$Join=ti;n.$AddClass=function(n,t){et(n,null,t)};n.$RemoveClass=et;n.$ReplaceClass=et;n.$ParentNode=function(n){return n.parentNode};n.$HideElement=function(t){n.$CssDisplay(t,"none")};n.$EnableElement=function(t,i){i?n.$Attribute(t,"disabled",!0):n.$RemoveAttribute(t,"disabled")};n.$HideElements=function(t){for(var i=0;i<t.length;i++)n.$HideElement(t[i])};n.$ShowElement=function(t,i){n.$CssDisplay(t,i?"none":"")};n.$ShowElements=function(t,i){for(var r=0;r<t.length;r++)n.$ShowElement(t[r],i)};n.$RemoveAttribute=function(n,t){n.removeAttribute(t)};n.$CanClearClip=function(){return s()&&i<10};n.$SetStyleClip=function(n,t){if(t)n.style.clip="rect("+Math.round(t.$Top)+"px "+Math.round(t.$Right)+"px "+Math.round(t.$Bottom)+"px "+Math.round(t.$Left)+"px)";else{var i=n.style.cssText,r=[new RegExp(/[\s]*clip: rect\(.*?\)[;]?/i),new RegExp(/[\s]*cliptop: .*?[;]?/i),new RegExp(/[\s]*clipright: .*?[;]?/i),new RegExp(/[\s]*clipbottom: .*?[;]?/i),new RegExp(/[\s]*clipleft: .*?[;]?/i)],u=ft(i,r,"");$Jssor$.$CssCssText(n,u)}};n.$GetNow=function(){return(new Date).getTime()};n.$AppendChild=function(n,t){n.appendChild(t)};n.$AppendChildren=function(t,i){r(i,function(i){n.$AppendChild(t,i)})};n.$InsertBefore=function(n,t,i){(i||t.parentNode).insertBefore(n,t)};n.$InsertAfter=function(t,i,r){n.$InsertBefore(t,i.nextSibling,r||i.parentNode)};n.$InsertAdjacentHtml=function(n,t,i){n.insertAdjacentHTML(t,i)};n.$RemoveElement=function(n,t){(t||n.parentNode).removeChild(n)};n.$RemoveElements=function(t,i){r(t,function(t){n.$RemoveElement(t,i)})};n.$Empty=function(t){n.$RemoveElements(n.$Children(t,!0),t)};n.$ParseInt=function(n,t){return parseInt(n,t||10)};u=parseFloat;n.$ParseFloat=u;n.$IsChild=function(n,t){for(var i=document.body;t&&n!==t&&i!==t;)try{t=t.parentNode}catch(r){return!1}return n===t};n.$CloneNode=ii;n.$LoadImage=function(t,r){function f(t,i){n.$RemoveEvent(u,"load",f);n.$RemoveEvent(u,"abort",e);n.$RemoveEvent(u,"error",e);r&&r(u,i)}function e(n){f(n,!0)}var u=new Image;ci()&&i<11.6||!t?f(!t):(n.$AddEvent(u,"load",f),n.$AddEvent(u,"abort",e),n.$AddEvent(u,"error",e),u.src=t)};n.$LoadImages=function(t,i,u){function e(n){f--;i&&n&&n.src==i.src&&(i=n);!f&&u&&u(i)}var f=t.length+1;r(t,function(t){n.$LoadImage(t.src,e)});e()};n.$BuildElement=function(n,t,i,r){var u,e,f,o;for(r&&(n=ii(n)),u=wt(n,t),u.length||(u=$Jssor$.$GetElementsByTag(n,t)),e=u.length-1;e>-1;e--)f=u[e],o=ii(i),y(o,y(f)),$Jssor$.$CssCssText(o,f.style.cssText),$Jssor$.$InsertBefore(o,f),$Jssor$.$RemoveElement(f);return n};n.$Buttonize=function(n){return new lr(n)};n.$Css=g;n.$CssN=vt;n.$CssP=sr;n.$CssOverflow=f("overflow");n.$CssTop=f("top",2);n.$CssLeft=f("left",2);n.$CssWidth=f("width",2);n.$CssHeight=f("height",2);n.$CssMarginLeft=f("marginLeft",2);n.$CssMarginTop=f("marginTop",2);n.$CssPosition=f("position");n.$CssDisplay=f("display");n.$CssZIndex=f("zIndex",1);n.$CssFloat=function(n,t){return g(n,s()?"styleFloat":"cssFloat",t)};n.$CssOpacity=function(n,t,i){if(t!=undefined)cr(n,t,i);else return hr(n)};n.$CssCssText=function(n,t){if(t!=undefined)n.style.cssText=t;else return n.style.cssText};ot={$Opacity:n.$CssOpacity,$Top:n.$CssTop,$Left:n.$CssLeft,$Width:n.$CssWidth,$Height:n.$CssHeight,$Position:n.$CssPosition,$Display:n.$CssDisplay,$ZIndex:n.$CssZIndex};n.$StyleSetter=st;n.$StyleSetterEx=tr;n.$GetStyles=function(n,t){st();var i={};return r(t,function(t,r){ot[r]&&(i[r]=ot[r](n))}),i};n.$SetStyles=function(n,t){var i=st();r(t,function(t,r){i[r]&&i[r](n,t)})};n.$SetStylesEx=function(t,i){tr();n.$SetStyles(t,i)};tt=new function(){function t(n,t){for(var o,i,f,r,s=n[0].length,h=n.length,c=t[0].length,e=[],u=0;u<h;u++)for(o=e[u]=[],i=0;i<c;i++){for(f=0,r=0;r<s;r++)f+=n[u][r]*t[r][i];o[i]=f}return e}var n=this;n.$ScaleX=function(t,i){return n.$ScaleXY(t,i,0)};n.$ScaleY=function(t,i){return n.$ScaleXY(t,0,i)};n.$ScaleXY=function(n,i,r){return t(n,[[i,0],[0,r]])};n.$TransformPoint=function(n,i){var r=t(n,[[i.x],[i.y]]);return v(r[0][0],r[1][0])}};n.$CreateMatrix=function(n,t,i){var r=Math.cos(n),u=Math.sin(n);return[[r*t,-u*i],[u*t,r*i]]};n.$GetMatrixOffset=function(n,t,i){var r=tt.$TransformPoint(n,v(-t/2,-i/2)),u=tt.$TransformPoint(n,v(t/2,-i/2)),f=tt.$TransformPoint(n,v(t/2,i/2)),e=tt.$TransformPoint(n,v(-t/2,i/2));return v(Math.min(r.x,u.x,f.x,e.x)+t/2,Math.min(r.y,u.y,f.y,e.y)+i/2)};n.$Cast=function(n,t,i,r,u,f,e){var o=t,s,a;if(n){o={};for(s in t){var k=f[s]||1,w=u[s]||[0,1],h=(i-w[0])/w[1];h=Math.min(Math.max(h,0),1);h=h*k;a=Math.floor(h);h!=a&&(h-=a);var d=r[s]||r.$Default||$JssorEasing$.$EaseSwing,b=d(h),c,g=n[s],nt=t[s],v=t[s];$Jssor$.$IsNumeric(v)?c=g+v*b:(c=$Jssor$.$Extend({$Offset:{}},n[s]),$Jssor$.$Each(v.$Offset,function(n,t){var i=n*b;c.$Offset[t]=i;c[t]+=i}));o[s]=c}(t.$Zoom||t.$Rotate)&&(o.$Transform={$Rotate:o.$Rotate||0,$Scale:o.$Zoom,$OriginalWidth:e.$OriginalWidth,$OriginalHeight:e.$OriginalHeight})}if(t.$Clip&&e.$Move){var l=o.$Clip.$Offset,y=(l.$Top||0)+(l.$Bottom||0),p=(l.$Left||0)+(l.$Right||0);o.$Left=(o.$Left||0)+p;o.$Top=(o.$Top||0)+y;o.$Clip.$Left-=p;o.$Clip.$Right-=p;o.$Clip.$Top-=y;o.$Clip.$Bottom-=y}return o.$Clip&&$Jssor$.$CanClearClip()&&!o.$Clip.$Top&&!o.$Clip.$Left&&o.$Clip.$Right==e.$OriginalWidth&&o.$Clip.$Bottom==e.$OriginalHeight&&(o.$Clip=null),o}};function $JssorCaptionSliderBase$(){$JssorAnimator$.call(this,0,0);this.$Revert=$Jssor$.$EmptyFunction}var $JssorSlideshowFormations$=window.$JssorSlideshowFormations$=new function(){function tt(n){return(n&p)==p}function it(n){return(n&w)==w}function u(n,t,i){i.push(t);n[t]=n[t]||[];n[t].push(i)}var f=this,n=0,t=1,i=2,r=3,y=1,p=2,w=4,b=8,k=256,d=512,g=1024,nt=2048,e=nt+y,o=nt+p,s=d+y,h=d+p,c=k+w,l=k+b,a=g+w,v=g+b;f.$FormationStraight=function(n){for(var f=n.$Cols,v=n.$Rows,k=n.$Assembly,d=n.$Count,p=[],t=0,i=0,w=f-1,b=v-1,y=d-1,g,r,i=0;i<v;i++)for(t=0;t<f;t++){g=i+","+t;switch(k){case e:r=y-(t*v+(b-i));break;case a:r=y-(i*f+(w-t));break;case s:r=y-(t*v+i);case c:r=y-(i*f+t);break;case o:r=t*v+i;break;case l:r=i*f+(w-t);break;case h:r=t*v+(b-i);break;default:r=i*f+t}u(p,r,[i,t])}return p};f.$FormationSwirl=function(f){var g=f.$Cols,nt=f.$Rows,ft=f.$Assembly,tt=f.$Count,it=[],rt=[],k=0,v=0,y=0,w=g-1,b=nt-1,et=tt-1,d,p,ut=0;switch(ft){case e:v=w;y=0;p=[i,t,r,n];break;case a:v=0;y=b;p=[n,r,t,i];break;case s:v=w;y=b;p=[r,t,i,n];break;case c:v=w;y=b;p=[t,r,n,i];break;case o:v=0;y=0;p=[i,n,r,t];break;case l:v=w;y=0;p=[t,i,n,r];break;case h:v=0;y=b;p=[r,n,i,t];break;default:v=0;y=0;p=[n,i,t,r]}for(k=0;k<tt;){if(d=y+","+v,v>=0&&v<g&&y>=0&&y<nt&&!rt[d])rt[d]=!0,u(it,k++,[y,v]);else switch(p[ut++%p.length]){case n:v--;break;case i:y--;break;case t:v++;break;case r:y++}switch(p[ut%p.length]){case n:v++;break;case i:y++;break;case t:v--;break;case r:y--}}return it};f.$FormationZigZag=function(f){var nt=f.$Cols,tt=f.$Rows,ut=f.$Assembly,it=f.$Count,k=[],d=0,v=0,y=0,w=nt-1,b=tt-1,ft=it-1,rt,p,g=0;switch(ut){case e:v=w;y=0;p=[i,t,r,t];break;case a:v=0;y=b;p=[n,r,t,r];break;case s:v=w;y=b;p=[r,t,i,t];break;case c:v=w;y=b;p=[t,r,n,r];break;case o:v=0;y=0;p=[i,n,r,n];break;case l:v=w;y=0;p=[t,i,n,i];break;case h:v=0;y=b;p=[r,n,i,n];break;default:v=0;y=0;p=[n,i,t,i]}for(d=0;d<it;)if(rt=y+","+v,v>=0&&v<nt&&y>=0&&y<tt&&typeof k[rt]=="undefined"){u(k,d++,[y,v]);switch(p[g%p.length]){case n:v++;break;case i:y++;break;case t:v--;break;case r:y--}}else{switch(p[g++%p.length]){case n:v--;break;case i:y--;break;case t:v++;break;case r:y++}switch(p[g++%p.length]){case n:v++;break;case i:y++;break;case t:v--;break;case r:y--}}return k};f.$FormationStraightStairs=function(n){var g=n.$Cols,nt=n.$Rows,y=n.$Assembly,d=n.$Count,b=[],k=0,r=0,f=0,p=g-1,w=nt-1,rt=d-1,ut,t,i;switch(y){case e:case h:case s:case o:t=0;i=0;break;case l:case a:case c:case v:t=p;i=0;break;default:y=v;t=p;i=0}for(r=t,f=i;k<d;){ut=f+","+r;it(y)||tt(y)?u(b,rt-k++,[f,r]):u(b,k++,[f,r]);switch(y){case e:case h:r--;f++;break;case s:case o:r++;f--;break;case l:case a:r--;f--;break;case v:case c:default:r++;f++}if(r<0||f<0||r>p||f>w){switch(y){case e:case h:t++;break;case l:case a:case s:case o:i++;break;case v:case c:default:t--}if(t<0||i<0||t>p||i>w){switch(y){case e:case h:t=p;i++;break;case s:case o:i=w;t++;break;case l:case a:i=w;t--;break;case v:case c:default:t=0;i++}i>w?i=w:i<0?i=0:t>p?t=p:t<0&&(t=0)}f=i;r=t}}return b};f.$FormationSquare=function(n){var t=n.$Cols||1,i=n.$Rows||1,s=[],r,f,e,o,h;for(e=t<i?(i-t)/2:0,o=t>i?(t-i)/2:0,h=Math.round(Math.max(t/2,i/2))+1,r=0;r<t;r++)for(f=0;f<i;f++)u(s,h-Math.min(r+1+e,f+1+o,t-r+e,i-f+o),[f,r]);return s};f.$FormationRectangle=function(n){for(var r=n.$Cols||1,f=n.$Rows||1,e=[],i,o=Math.round(Math.min(r/2,f/2))+1,t=0;t<r;t++)for(i=0;i<f;i++)u(e,o-Math.min(t+1,i+1,r-t,f-i),[i,t]);return e};f.$FormationRandom=function(n){for(var r=[],i,t=0;t<n.$Rows;t++)for(i=0;i<n.$Cols;i++)u(r,Math.ceil(1e5*Math.random())%13,[t,i]);return r};f.$FormationCircle=function(n){for(var r=n.$Cols||1,f=n.$Rows||1,e=[],i,o=r/2-.5,s=f/2-.5,t=0;t<r;t++)for(i=0;i<f;i++)u(e,Math.round(Math.sqrt(Math.pow(t-o,2)+Math.pow(i-s,2))),[i,t]);return e};f.$FormationCross=function(n){for(var r=n.$Cols||1,f=n.$Rows||1,e=[],i,o=r/2-.5,s=f/2-.5,t=0;t<r;t++)for(i=0;i<f;i++)u(e,Math.round(Math.min(Math.abs(t-o),Math.abs(i-s))),[i,t]);return e};f.$FormationRectangleCross=function(n){for(var e=n.$Cols||1,o=n.$Rows||1,s=[],i,r=e/2-.5,f=o/2-.5,h=Math.max(r,f)+1,t=0;t<e;t++)for(i=0;i<o;i++)u(s,Math.round(h-Math.max(r-Math.abs(t-r),f-Math.abs(i-f)))-1,[i,t]);return s}},$JssorSlideshowRunner$=window.$JssorSlideshowRunner$=function(n,t,i,r,u){function h(n,t){var i={$Interval:t,$Duration:1,$Delay:0,$Cols:1,$Rows:1,$Opacity:0,$Zoom:0,$Clip:0,$Move:!1,$SlideOut:!1,$Reverse:!1,$Formation:$JssorSlideshowFormations$.$FormationRandom,$Assembly:1032,$ChessMode:{$Column:0,$Row:0},$Easing:$JssorEasing$.$EaseSwing,$Round:{},$Blocks:[],$During:{}};return $Jssor$.$Extend(i,n),i.$Count=i.$Cols*i.$Rows,$Jssor$.$IsFunction(i.$E
4asing)&&(i.$Easing={$Default:i.$Easing}),i.$FramesCount=Math.ceil(i.$Duration/i.$Interval),i.$GetBlocks=function(n,t){var f,r,u;if(n/=i.$Cols,t/=i.$Rows,f=n+"x"+t,!i.$Blocks[f])for(i.$Blocks[f]={$Width:n,$Height:t},r=0;r<i.$Cols;r++)for(u=0;u<i.$Rows;u++)i.$Blocks[f][u+","+r]={$Top:u*t,$Right:r*n+n,$Bottom:u*t+t,$Left:r*n};return i.$Blocks[f]},i.$Brother&&(i.$Brother=h(i.$Brother,t),i.$SlideOut=!0),i}function a(n,t,i,r,u,f){function ut(n){var t=n.$Formation(n);return n.$Reverse?t.reverse():t}var k=this,w,d={},h={},l=[],o,e,a,v=i.$ChessMode.$Column||0,y=i.$ChessMode.$Row||0,s=i.$GetBlocks(u,f),p=ut(i),rt=p.length-1,b=i.$Duration+i.$Delay*rt,g=r+b,c=i.$SlideOut,nt,tt,it;g+=50;k.$EndTime=g;k.$ShowFrame=function(n){var t,u;n-=r;t=n<b;(t||nt)&&(nt=t,c||(n=b-n),u=Math.ceil(n/i.$Interval),$Jssor$.$Each(h,function(n,t){var i=Math.max(u,n.$Min);i=Math.min(i,n.length-1);n.$LastFrameIndex!=i&&(n.$LastFrameIndex||c?i==n.$Max&&c&&$Jssor$.$HideElement(l[t]):$Jssor$.$ShowElement(l[t]),n.$LastFrameIndex=i,$Jssor$.$SetStylesEx(l[t],n[i]))}))};t=$Jssor$.$CloneNode(t);$Jssor$.$IsBrowserIe9Earlier()&&(tt=!t["no-image"],it=$Jssor$.$FindChildrenByTag(t),$Jssor$.$Each(it,function(n){(tt||n["jssor-slider"])&&$Jssor$.$CssOpacity(n,$Jssor$.$CssOpacity(n),!0)}));$Jssor$.$Each(p,function(n,t){$Jssor$.$Each(n,function(n){var ct=n[0],lt=n[1],l=ct+","+lt,p=!1,b=!1,g=!1,et,ot,at,k,r,vt,yt,nt,tt;v&<%2&&(v&3&&(p=!p),v&12&&(b=!b),v&16&&(g=!g));y&&ct%2&&(y&3&&(p=!p),y&12&&(b=!b),y&16&&(g=!g));i.$Top=i.$Top||i.$Clip&4;i.$Bottom=i.$Bottom||i.$Clip&8;i.$Left=i.$Left||i.$Clip&1;i.$Right=i.$Right||i.$Clip&2;var it=b?i.$Bottom:i.$Top,rt=b?i.$Top:i.$Bottom,ut=p?i.$Right:i.$Left,ft=p?i.$Left:i.$Right;i.$Clip=it||rt||ut||ft;a={};e={$Top:0,$Left:0,$Opacity:1,$Width:u,$Height:f};o=$Jssor$.$Extend({},e);w=$Jssor$.$Extend({},s[l]);i.$Opacity&&(e.$Opacity=2-i.$Opacity);i.$ZIndex&&(e.$ZIndex=i.$ZIndex,o.$ZIndex=0);et=i.$Cols*i.$Rows>1||i.$Clip;(i.$Zoom||i.$Rotate)&&(ot=!0,$Jssor$.$IsBrowserIe9Earlier()&&(i.$Cols*i.$Rows>1?ot=!1:et=!1),ot&&(e.$Zoom=i.$Zoom?i.$Zoom-1:1,o.$Zoom=1,($Jssor$.$IsBrowserIe9Earlier()||$Jssor$.$IsBrowserOpera())&&(e.$Zoom=Math.min(e.$Zoom,2)),at=i.$Rotate,e.$Rotate=at*360*(g?-1:1),o.$Rotate=0));et&&(i.$Clip&&(k=i.$ScaleClip||1,r=w.$Offset={},it&&rt?(r.$Top=s.$Height/2*k,r.$Bottom=-r.$Top):it?r.$Bottom=-s.$Height*k:rt&&(r.$Top=s.$Height*k),ut&&ft?(r.$Left=s.$Width/2*k,r.$Right=-r.$Left):ut?r.$Right=-s.$Width*k:ft&&(r.$Left=s.$Width*k)),a.$Clip=w,o.$Clip=s[l]);vt=p?1:-1;yt=b?1:-1;i.x&&(e.$Left+=u*i.x*vt);i.y&&(e.$Top+=f*i.y*yt);$Jssor$.$Each(e,function(n,t){$Jssor$.$IsNumeric(n)&&n!=o[t]&&(a[t]=n-o[t])});d[l]=c?o:e;var st=i.$FramesCount,ht=Math.round(t*i.$Delay/i.$Interval);for(h[l]=new Array(ht),h[l].$Min=ht,h[l].$Max=ht+st-1,nt=0;nt<=st;nt++)tt=$Jssor$.$Cast(o,a,nt/st,i.$Easing,i.$During,i.$Round,{$Move:i.$Move,$OriginalWidth:u,$OriginalHeight:f}),tt.$ZIndex=tt.$ZIndex||1,h[l].push(tt)})});p.reverse();$Jssor$.$Each(p,function(i){$Jssor$.$Each(i,function(i){var u=i[0],f=i[1],e=u+","+f,r=t;(f||u)&&(r=$Jssor$.$CloneNode(t));$Jssor$.$SetStyles(r,d[e]);$Jssor$.$CssOverflow(r,"hidden");$Jssor$.$CssPosition(r,"absolute");n.$AddClipElement(r);l[e]=r;$Jssor$.$ShowElement(r,!c)})})}function b(){var n=this,t=0;$JssorAnimator$.call(n,0,c);n.$OnPositionChange=function(n,i){i-t>s&&(t=i,o&&o.$ShowFrame(i),e&&e.$ShowFrame(i))};n.$Transition=l}var f=this,c,e,o,v,y,p=0,w=r.$TransitionsOrder,l,s=8;f.$GetTransition=function(){var n=0,t=r.$Transitions,i=t.length;return n=w?p++%i:Math.floor(Math.random()*i),t[n]&&(t[n].$Index=n),t[n]};f.$Initialize=function(r,u,p,w,b){var k,d,nt;$JssorDebug$.$Execute(function(){e&&$JssorDebug$.$Fail("slideshow runner has not been cleared.")});l=b;b=h(b,s);y=p;v=w;k=w.$Item;d=p.$Item;k["no-image"]=!w.$Image;d["no-image"]=!p.$Image;var tt=k,it=d,rt=b,g=b.$Brother||h({},s);b.$SlideOut||(tt=d,it=k);nt=g.$Shift||0;e=new a(n,it,g,Math.max(nt-g.$Interval,0),t,i);o=new a(n,tt,rt,Math.max(g.$Interval-nt,0),t,i);e.$ShowFrame(0);o.$ShowFrame(0);c=Math.max(e.$EndTime,o.$EndTime);f.$Index=r};f.$Clear=function(){n.$Clear();e=null;o=null};f.$GetProcessor=function(){var n=null;return o&&(n=new b),n};($Jssor$.$IsBrowserIe9Earlier()||$Jssor$.$IsBrowserOpera()||u&&$Jssor$.$WebKitVersion()<537)&&(s=16);$JssorObject$.call(f);$JssorAnimator$.call(f,-1e7,1e7)},$JssorSlider$=window.$JssorSlider$=function(n,t){function gu(){var n=this;$JssorAnimator$.call(n,-1e8,2e8);n.$GetCurrentSlideInfo=function(){var t=n.$GetPosition_Display(),i=Math.floor(t),r=e(i),u=t-Math.floor(t);return{$Index:r,$VirtualIndex:i,$Position:u}};n.$OnPositionChange=function(n,t){var i=Math.floor(t);i!=t&&t>n&&i++;iu(i,!0);r.$TriggerEvent($JssorSlider$.$EVT_POSITION_CHANGE,e(t),e(n),t,n)}}function nf(){var n=this;$JssorAnimator$.call(n,0,0,{$LoopLength:f});$Jssor$.$Each(v,function(t){y&1&&t.$SetLoopLength(f);n.$Chain(t);t.$Shift(wi/hu)})}function tf(){var n=this,t=vr.$Elmt;$JssorAnimator$.call(n,-1,2,{$Easing:$JssorEasing$.$EaseLinear,$Setter:{$Position:br},$LoopLength:f},t,{$Position:1},{$Position:-2});n.$Wrapper=t;$JssorDebug$.$Execute(function(){$Jssor$.$Attribute(vr.$Elmt,"debug-id","slide_container")})}function rf(n,t){var f=this,o,s,h,c,a;$JssorAnimator$.call(f,-1e8,2e8,{$IntervalMax:100});f.$OnStart=function(){at=!0;kt=null;r.$TriggerEvent($JssorSlider$.$EVT_SWIPE_START,e(l.$GetPosition()),l.$GetPosition())};f.$OnStop=function(){at=!1;c=!1;var n=l.$GetCurrentSlideInfo();r.$TriggerEvent($JssorSlider$.$EVT_SWIPE_END,e(l.$GetPosition()),l.$GetPosition());n.$Position||cf(n.$VirtualIndex,u)};f.$OnPositionChange=function(n,t){var r,u;c?r=a:(r=s,h&&(u=t/h,r=i.$SlideEasing(u)*(s-o)+o));l.$GoToPosition(r)};f.$PlayCarousel=function(n,t,i,r){$JssorDebug$.$Execute(function(){f.$IsPlaying()&&$JssorDebug$.$Fail("The carousel is already playing.")});o=n;s=t;h=i;l.$GoToPosition(n);f.$GoToPosition(0);f.$PlayToPosition(i,r)};
4f.$StandBy=function(n){c=!0;a=n;f.$Play(n,null,!0)};f.$SetStandByPosition=function(n){a=n};f.$MoveCarouselTo=function(n){l.$GoToPosition(n)};l=new gu;l.$Combine(n);l.$Combine(t)}function uf(){var t=this,n=ru();$Jssor$.$CssZIndex(n,0);$Jssor$.$Css(n,"pointerEvents","none");t.$Elmt=n;t.$AddClipElement=function(t){$Jssor$.$AppendChild(n,t);$Jssor$.$ShowElement(n)};t.$Clear=function(){$Jssor$.$HideElement(n);$Jssor$.$Empty(n)}}function ff(n,t){function at(t){b&&b.$Revert();p&&p.$Revert();ni(n,t);ht=!0;p=new ft.$Class(n,ft,1);$JssorDebug$.$LiveStamp(p,"caption_slider_"+ci+"_in");b=new ft.$Class(n,ft);$JssorDebug$.$LiveStamp(b,"caption_slider_"+ci+"_out");$JssorDebug$.$Execute(function(){ci++});b.$GoToPosition(0);p.$GoToPosition(0)}function ii(){p.$Version<ft.$Version&&at()}function wt(n,u,f){var c,v;if(!st&&(st=!0,h&&f)){var e=f.width,s=f.height,l=e,a=s;e&&s&&i.$FillMode&&(i.$FillMode&3&&(!(i.$FillMode&4)||e>rt||s>ut)&&(c=!1,v=rt/ut*s/e,i.$FillMode&1?c=v>1:i.$FillMode&2&&(c=v<1),l=c?e*ut/s:rt,a=c?ut:s*rt/e),$Jssor$.$CssWidth(h,l),$Jssor$.$CssHeight(h,a),$Jssor$.$CssTop(h,(ut-a)/2),$Jssor$.$CssLeft(h,(rt-l)/2));$Jssor$.$CssPosition(h,"absolute");r.$TriggerEvent($JssorSlider$.$EVT_LOAD_END,t)}$Jssor$.$HideElement(u);n&&n(o)}function ri(n,i,r,f){if(f==kt&&u==t&&ct&&!gf){var s=e(n);w.$Initialize(s,t,i,o,r);i.$HideContentForSlideshow();ui.$Locate(s,1);ui.$GoToPosition(s);a.$PlayCarousel(n,n,0)}}function fi(i){if(i==kt&&u==t){if(!c){var r=null;w&&(w.$Index==t?r=w.$GetProcessor():w.$Clear());ii();c=new ef(n,t,r,o.$GetCaptionSliderIn(),o.$GetCaptionSliderOut());c.$SetPlayer(l)}c.$IsPlaying()||c.$Replay()}}function bt(n,r,u){var f,e,h;n==t?(n!=r?v[r]&&v[r].$ParkOut():!u&&c&&c.$AdjustIdleOnPark(),l&&l.$Enable(),f=kt=$Jssor$.$GetNow(),o.$LoadImage($Jssor$.$CreateCallback(null,fi,f))):(e=Math.abs(t-n),h=s+i.$LazyLoading-1,(!yt||e<=h)&&o.$LoadImage())}function ei(){u==t&&c&&(c.$Stop(),l&&l.$Quit(),l&&l.$Disable(),c.$OpenSlideshowPanel())}function oi(){u==t&&c&&c.$Stop()}function si(n){lt||r.$TriggerEvent($JssorSlider$.$EVT_CLICK,t,n)}function dt(){l=nt.pInstance;c&&c.$SetPlayer(l)}function ni(n,t,r){if($JssorDebug$.$Execute(function(){$Jssor$.$Attribute(n,"jssor-slider")&&$JssorDebug$.$Log("Child slider found.")}),!$Jssor$.$Attribute(n,"jssor-slider")){r=r||0;ht||(n.tagName=="IMG"&&(it.push(n),$Jssor$.$Attribute(n,"src")||(yt=!0,n["display-origin"]=$Jssor$.$CssDisplay(n),$Jssor$.$HideElement(n))),$Jssor$.$IsBrowserIe9Earlier()&&$Jssor$.$CssZIndex(n,($Jssor$.$CssZIndex(n)||0)+1),i.$HWA&&$Jssor$.$WebKitVersion()&&($Jssor$.$WebKitVersion()<534||!pi&&!$Jssor$.$IsBrowserChrome())&&$Jssor$.$EnableHWA(n));var u=$Jssor$.$Children(n);$Jssor$.$Each(u,function(i){var f=i.tagName,e=$Jssor$.$AttributeEx(i,"u"),u;e!="player"||nt||(nt=i,nt.pInstance?dt():$Jssor$.$AddEvent(nt,"dataavailable",dt));e=="caption"?$Jssor$.$IsBrowserIE()||t||(u=$Jssor$.$CloneNode(i,!1,!0),$Jssor$.$InsertBefore(u,i,n),$Jssor$.$RemoveElement(i,n),i=u,t=!0):ht||r||h||(f=="A"?($Jssor$.$AttributeEx(i,"u")=="image"?(h=$Jssor$.$FindChildByTag(i,"IMG"),$JssorDebug$.$Execute(function(){h||$JssorDebug$.$Error("slide html code definition error, no 'IMG' found in a 'image with link' slide.\r\n"+n.outerHTML)})):h=$Jssor$.$FindChild(i,"image",!0),h&&(et=i,$Jssor$.$SetStyles(et,ot),d=$Jssor$.$CloneNode(et,!0),$Jssor$.$CssDisplay(d,"block"),$Jssor$.$SetStyles(d,ot),$Jssor$.$CssOpacity(d,0),$Jssor$.$Css(d,"backgroundColor","#000"))):f=="IMG"&&$Jssor$.$AttributeEx(i,"u")=="image"&&(h=i),h&&(h.border=0,$Jssor$.$SetStyles(h,ot)));ni(i,t,r+1)})}}var o=this,p,b,g,hi=n,k,h,it=[],et,d,vt,st,yt,ht,c,nt,l,pt,tt;$JssorAnimator$.call(o,-s,s+1,{$SlideItemAnimator:!0});o.$LoadImage=function(n,i){i=i||k;it.length&&!st?($Jssor$.$ShowElement(i),vt||(vt=!0,r.$TriggerEvent($JssorSlider$.$EVT_LOAD_START,t),$Jssor$.$Each(it,function(n){$Jssor$.$Attribute(n,"src")||(n.src=$Jssor$.$AttributeEx(n,"src2"),$Jssor$.$CssDisplay(n,n["display-origin"]))})),$Jssor$.$LoadImages(it,h,$Jssor$.$CreateCallback(null,wt,n,i))):wt(n,i)};o.$GoForNextSlide=function(){var o=t,n,r,h,u;if(i.$AutoPlaySteps<0&&(o-=f),n=o+i.$AutoPlaySteps*bf,y&2&&(n=e(n)),y&1||(n=Math.max(0,Math.min(n,f-s))),n!=t){if(w&&(r=w.$GetTransition(f),r))return h=kt=$Jssor$.$GetNow(),u=v[e(n)],u.$LoadImage($Jssor$.$CreateCallback(null,ri,n,u,r,h),k);gt(n)}};o.$TryActivate=function(){bt(t,t,!0)};o.$ParkOut=function(){l&&l.$Quit();l&&l.$Disable();o.$UnhideContentForSlideshow();c&&c.$Abort();c=null;at()};
4o.$StampSlideItemElements=function(t){t=pt+"_"+t;$JssorDebug$.$Execute(function(){h&&$Jssor$.$Attribute(h,"debug-id",t+"_slide_item_image_id");$Jssor$.$Attribute(n,"debug-id",t+"_slide_item_item_id")});$JssorDebug$.$Execute(function(){$Jssor$.$Attribute(g,"debug-id",t+"_slide_item_wrapper_id")});$JssorDebug$.$Execute(function(){$Jssor$.$Attribute(k,"debug-id",t+"_loading_container_id")})};o.$HideContentForSlideshow=function(){$Jssor$.$HideElement(n)};o.$UnhideContentForSlideshow=function(){$Jssor$.$ShowElement(n)};o.$EnablePlayer=function(){l&&l.$Enable()};o.$OnInnerOffsetChange=function(n,t){var i=s-t;br(g,i)};o.$GetCaptionSliderIn=function(){return p};o.$GetCaptionSliderOut=function(){return b};o.$Index=t;$JssorObject$.call(o);tt=$Jssor$.$FindChild(n,"thumb",!0);tt&&(o.$Thumb=$Jssor$.$CloneNode(tt),$Jssor$.$RemoveAttribute(tt,"id"),$Jssor$.$HideElement(tt));$Jssor$.$ShowElement(n);k=$Jssor$.$CloneNode(ti);$Jssor$.$CssZIndex(k,1e3);$Jssor$.$AddEvent(n,"click",si);at(!0);o.$Image=h;o.$Link=d;o.$Item=n;o.$Wrapper=g=n;$Jssor$.$AppendChild(g,k);r.$On(203,bt);r.$On(28,oi);r.$On(24,ei);$JssorDebug$.$Execute(function(){pt=kf++});$JssorDebug$.$Execute(function(){$Jssor$.$Attribute(g,"debug-id","slide-"+t)})}function ef(n,t,i,f,e){function rt(){$Jssor$.$Empty(vt);vu&&a&&d.$Link&&$Jssor$.$AppendChild(vt,d.$Link);$Jssor$.$ShowElement(vt,!a&&d.$Image)}function ft(){g&&(g=!1,r.$TriggerEvent($JssorSlider$.$EVT_ROLLBACK_END,t,s,l,c,s,h),o.$GoToPosition(c));o.$Replay()}function et(n){it=n;o.$Stop();o.$Replay()}var o=this,l=0,nt=0,y,ut,c,s,h,a,g,tt,it,d=v[t];$JssorAnimator$.call(o,0,0);o.$Replay=function(){var n=o.$GetPosition_Display(),i,f,e;p||at||it||u!=t||(n||(y&&!a&&(a=!0,o.$OpenSlideshowPanel(!0),r.$TriggerEvent($JssorSlider$.$EVT_SLIDESHOW_START,t,l,nt,y,h)),rt()),f=$JssorSlider$.$EVT_STATE_CHANGE,n!=h&&(n==s?i=h:n==c?i=s:n?n>s?(g=!0,i=s,f=$JssorSlider$.$EVT_ROLLBACK_START):i=o.$GetPlayToPosition():i=c),r.$TriggerEvent(f,t,n,l,c,s,h),e=ct&&(!b||k),n==h?(s==h||b&12)&&!e||d.$GoForNextSlide():(e||n!=s)&&o.$PlayToPosition(i,ft))};o.$AdjustIdleOnPark=function(){s==h&&s==o.$GetPosition_Display()&&o.$GoToPosition(c)};o.$Abort=function(){w&&w.$Index==t&&w.$Clear();var n=o.$GetPosition_Display();n<h&&r.$TriggerEvent($JssorSlider$.$EVT_STATE_CHANGE,t,-n-1,l,c,s,h)};o.$OpenSlideshowPanel=function(n){i&&$Jssor$.$CssOverflow(yi,n&&i.$Transition.$Outside?"":"hidden")};o.$OnInnerOffsetChange=function(n,i){a&&i>=y&&(a=!1,rt(),d.$UnhideContentForSlideshow(),w.$Clear(),r.$TriggerEvent($JssorSlider$.$EVT_SLIDESHOW_END,t,l,nt,y,h));r.$TriggerEvent($JssorSlider$.$EVT_PROGRESS_CHANGE,t,i,l,c,s,h)};o.$SetPlayer=function(n){n&&!tt&&(tt=n,n.$On($JssorPlayer$.$EVT_SWITCH,et))};i&&o.$Chain(i);y=o.$GetPosition_OuterEnd();ut=o.$GetPosition_OuterEnd();o.$Chain(f);c=f.$GetPosition_OuterEnd();s=c+($Jssor$.$ParseFloat($Jssor$.$AttributeEx(n,"idle"))||ne);e.$Shift(s);o.$Combine(e);h=o.$GetPosition_OuterEnd()}function br(n,t){var u=c>0?c:yt,i=er*t*(u&1),r=or*t*(u>>1&1);i=Math.round(i);r=Math.round(r);$Jssor$.$CssLeft(n,i);$Jssor$.$CssTop(n,r)}function kr(){pr=at;bu=a.$GetPlayToPosition();g=l.$GetPosition()}function dr(){kr();(p||!k&&b&12)&&(a.$Stop(),r.$TriggerEvent($JssorSlider$.$EVT_FREEZE))}function gr(n){var r,t,u;p||!k&&b&12||a.$IsPlaying()||(r=l.$GetPosition(),t=Math.ceil(g),n&&Math.abs(d)>=i.$MinDragOffsetToSlide&&(t=Math.ceil(r)+ki),y&1||(t=Math.min(f-s,Math.max(t,0))),u=Math.abs(t-r),u=1-Math.pow(1-u,5),!lt&&pr?a.$Continue(bu):r==t?(fr.$EnablePlayer(),fr.$TryActivate()):a.$PlayCarousel(r,t,u*yu))}function nu(n){$Jssor$.$AttributeEx($Jssor$.$EvtSrc(n),"nodrag")||$Jssor$.$CancelEvent(n)}function of(n){tu(n,1)}function tu(n,t){var f,i,u;n=$Jssor$.$GetEvent(n);f=$Jssor$.$EvtSrc(n);st||$Jssor$.$AttributeEx(f,"nodrag")||!lf()||t&&n.touches.length!=1||(p=!0,sr=!1,kt=null,$Jssor$.$AddEvent(document,t?"touchmove":"mousemove",nr),wu=$Jssor$.$GetNow()-50,lt=0,dr(),pr||(c=0),t?(i=n.touches[0],cr=i.clientX,lr=i.clientY):(u=$Jssor$.$MousePosition(n),cr=u.x,lr=u.y),d=0,bi=0,ki=0,r.$TriggerEvent($JssorSlider$.$EVT_DRAG_START,e(g),g,n))}function nr(n){var e,v,o,h,t,l,i,r;p&&(n=$Jssor$.$GetEvent(n),n.type!="mousemove"?(v=n.touches[0],e={x:v.clientX,y:v.clientY}
4):e=$Jssor$.$MousePosition(n),e&&(o=e.x-cr,h=e.y-lr,Math.floor(g)!=g&&(c=c||yt&st),(o||h)&&!c&&(c=st==3?Math.abs(h)>Math.abs(o)?2:1:st,gi&&c==1&&Math.abs(h)-Math.abs(o)>3&&(sr=!0)),c&&(t=h,l=or,c==1&&(t=o,l=er),y&1||(t>0&&(i=l*u,r=t-i,r>0&&(t=i+Math.sqrt(r)*5)),t<0&&(i=l*(f-s-u),r=-t-i,r>0&&(t=-i-Math.sqrt(r)*5))),d-bi<-2?ki=0:d-bi>2&&(ki=-1),bi=d,d=t,wr=g-d/l/(fi||1),d&&c&&!sr&&($Jssor$.$CancelEvent(n),at?a.$SetStandByPosition(wr):a.$StandBy(wr)))))}function si(){if(af(),p){p=!1;wu=$Jssor$.$GetNow();$Jssor$.$RemoveEvent(document,"mousemove",nr);$Jssor$.$RemoveEvent(document,"touchmove",nr);lt=d;a.$Stop();var n=l.$GetPosition();r.$TriggerEvent($JssorSlider$.$EVT_DRAG_END,e(n),n,e(g),g);b&12&&kr();gr(!0)}}function sf(n){if(lt){$Jssor$.$StopEvent(n);for(var t=$Jssor$.$EvtSrc(n);t&&o!==t;){t.tagName=="A"&&$Jssor$.$CancelEvent(n);try{t=t.parentNode}catch(i){break}}}}function hf(n){return df=v[u],eu=u,u=e(n),fr=v[u],typeof v[u]!="undefined"&&(ou=$Jssor$.$AttributeEx(v[u].$Image,"d")),iu(n),u}function cf(n,t){c=0;hf(n);r.$TriggerEvent($JssorSlider$.$EVT_PARK,e(n),t)}function iu(n,t){ur=n;$Jssor$.$Each(ht,function(i){i.$SetCurrentIndex(e(n),n,t)})}function lf(){var t=$JssorSlider$.$DragRegistry||0,n=ri;return gi&&n&1&&(n&=1),$JssorSlider$.$DragRegistry|=n,st=n&~t}function af(){st&&($JssorSlider$.$DragRegistry&=~ri,st=0)}function ru(){var n=$Jssor$.$CreateDiv();return $Jssor$.$SetStyles(n,ot),$Jssor$.$CssPosition(n,"absolute"),n}function e(n){return(n%f+f)%f}function vf(n,t){t&&(y?y&2&&(n=e(n+ur),t=!1):(n=Math.min(Math.max(n+ur,0),f-s),t=!1));gt(n,i.$SlideDuration,t)}function tr(){$Jssor$.$Each(ht,function(n){n.$Show(n.$Options.$ChanceToShow<=k)})}function yf(){k||(k=1,tr(),p||(b&12&&gr(),b&3&&v[u].$TryActivate()))}function pf(){k&&(k=0,tr(),!p&&b&12&&dr())}function wf(){ot={$Width:rt,$Height:ut,$Top:0,$Left:0};$Jssor$.$Each(it,function(n){$Jssor$.$SetStyles(n,ot);$Jssor$.$CssPosition(n,"absolute");$Jssor$.$CssOverflow(n,"hidden");$Jssor$.$HideElement(n)});$Jssor$.$SetStyles(ti,ot)}function dt(n,t){gt(n,t,!0)}function gt(n,t,r){var o,u,c,h;pu&&(!p||i.$NaviQuitDrag)&&(at=!0,p=!1,a.$Stop(),t==undefined&&(t=yu),o=ar.$GetPosition_Display(),u=n,r&&(u=
4o+n,u=n>0?Math.ceil(u):Math.floor(u)),y&2&&(u=e(u)),y&1||(u=Math.max(0,Math.min(u,f-s))),c=(u-o)%f,u=o+c,h=o==u?0:t*Math.abs(c),h=Math.min(h,t*s*1.5),a.$PlayCarousel(o,u,h||1))}function ni(){return $Jssor$.$CssWidth(h||n)}function hi(){return $Jssor$.$CssHeight(h||n)}function ir(t,i){var u,o,f,e;if(t==undefined)return $Jssor$.$CssWidth(n);h||($JssorDebug$.$Execute(function(){var t=$Jssor$.$Css(n,"width"),i=$Jssor$.$Css(n,"height"),r=$Jssor$.$CssP(n,"width"),u=$Jssor$.$CssP(n,"height");t&&t.indexOf("px")!=-1||$JssorDebug$.$Fail("Cannot scale jssor slider, 'width' of 'outer container' not specified. Please specify 'width' in pixel. e.g. 'width: 600px;'");i&&i.indexOf("px")!=-1||$JssorDebug$.$Fail("Cannot scale jssor slider, 'height' of 'outer container' not specified. Please specify 'height' in pixel. e.g. 'height: 300px;'");t.indexOf("%")!=-1&&$JssorDebug$.$Fail("Cannot scale jssor slider, 'width' of 'outer container' not valid. Please specify 'width' in pixel. e.g. 'width: 600px;'");i.indexOf("%")!=-1&&$JssorDebug$.$Fail("Cannot scale jssor slider, 'height' of 'outer container' not valid. Please specify 'height' in pixel. e.g. 'height: 300px;'");r||$JssorDebug$.$Fail("Cannot scale jssor slider, 'width' of 'outer container' not valid. 'width' of 'outer container' should be positive number. e.g. 'width: 600px;'");u||$JssorDebug$.$Fail("Cannot scale jssor slider, 'height' of 'outer container' not valid. 'height' of 'outer container' should be positive number. e.g. 'height: 300px;'")}),u=$Jssor$.$CreateDiv(document),$Jssor$.$ClassName(u,$Jssor$.$ClassName(n)),$Jssor$.$CssCssText(u,$Jssor$.$CssCssText(n)),$Jssor$.$CssDisplay(u,"block"),$Jssor$.$CssPosition(u,"relative"),$Jssor$.$CssTop(u,0),$Jssor$.$CssLeft(u,0),$Jssor$.$CssOverflow(u,"visible"),h=$Jssor$.$CreateDiv(document),$Jssor$.$CssPosition(h,"absolute"),$Jssor$.$CssTop(h,0),$Jssor$.$CssLeft(h,0),$Jssor$.$CssWidth(h,$Jssor$.$CssWidth(n)),$Jssor$.$CssHeight(h,$Jssor$.$CssHeight(n)),$Jssor$.$SetStyleTransformOrigin(h,"0 0"),$Jssor$.$AppendChild(h,u),o=$Jssor$.$Children(n),$Jssor$.$AppendChild(n,h),$Jssor$.$Css(n,"backgroundImage",""),$Jssor$.$Each(o,function(t){$Jssor$.$AppendChild($Jssor$.$AttributeEx(t,"noscale")?n:u,t)}));$JssorDebug$.$Execute(function(){(!t||t<0)&&$JssorDebug$.$Fail("'$ScaleWidth' error, 'dimension' should be positive value.")});$JssorDebug$.$Execute(function(){uu||(uu=r.$Elmt.scrollWidth)});fi=t/(i?$Jssor$.$CssHeight:$Jssor$.$CssWidth)(h);$Jssor$.$CssScale(h,fi);f=i?fi*ni():t;e=i?t:fi*hi();$Jssor$.$CssWidth(n,f);$Jssor$.$CssHeight(n,e);$Jssor$.$Each(ht,function(n){n.$Relocate(f,e)})}var r=this,uu,ci,i,bt,li,ai,vi,ot,it,fu,ei,ku,du,oi;r.$PlayTo=gt;r.$PlayToOffset=dt;r.$GetRealIndex=e;r.$GoTo=function(n){gt(n,1)};r.$Next=function(){dt(1)};r.$Prev=function(){dt(-1)};r.$Pause=function(){ct=!1};r.$PauseCustom=function(){a.$Stop()};r.$Play=function(){ct||(ct=!0,v[u]&&v[u].$TryActivate())};r.$SetSlideshowTransitions=function(n){$JssorDebug$.$Execute(function(){n&&n.length||$JssorDebug$.$Error("Can not set slideshow transitions, no transitions specified.")});i.$SlideshowOptions.$Transitions=n};r.$SetCaptionTransitions=function(n){$JssorDebug$.$Execute(function(){n&&n.length||$JssorDebug$.$Error("Can not set caption transitions, no transitions specified")});ft.$CaptionTransitions=n;ft.$Version=$Jssor$.$GetNow()};r.$SlidesCount=function(){return it.length};r.$CurrentIndex=function(){return u};r.$SlidesDescription=function(){return ou};r.$IsAutoPlaying=function(){return ct};r.$IsDragging=function(){return p};r.$IsSliding=function(){return at};r.$IsMouseOver=function(){return!k};r.$LastDragSucceded=function(){return lt};r.$OriginalWidth=r.$GetOriginalWidth=ni;r.$OriginalHeight=r.$GetOriginalHeight=hi;r.$ScaleHeight=r.$GetScaleHeight=function(t){if(t==undefined)return $Jssor$.$CssHeight(n);ir(t,!0)};r.$ScaleWidth=r.$SetScaleWidth=r.$GetScaleWidth=ir;r.$GetVirtualIndex=function(n){var t=Math.ceil(e(wi/hu)),i=e(n-u+t);return i>s?n-u>f/2?n-=f:n-u<=-f/2&&(n+=f):n=u+i-t,n};$JssorObject$.call(r);$JssorDebug$.$Execute(function(){var t=$Jssor$.$GetElement(n);t||$JssorDebug$.$Fail("Outer container '"+n+"' not found.")});r.$Elmt=n=$Jssor$.$GetElement(n);ci=1;i=$Jssor$.$Extend({$FillMode:0,$LazyLoading:1,$StartIndex:0,$AutoPlay:!1,$Loop:1,$HWA:!0,$NaviQuitDrag:!0,$AutoPlaySteps:1,$AutoPlayInterval:3e3,$PauseOnHover:1,$SlideDuration:500,$SlideEasing:$JssorEasing$.$EaseOutQuad,$MinDragOffsetToSlide:20,$SlideSpacing:0,$DisplayPieces:1,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:1},t);i.$Idle!=undefined&&(i.$AutoPlayInterval=i.$Idle);i.$Cols!=undefined&&(i.$DisplayPieces=i.$Cols);$JssorDebug$.$Execute(function(){i=$Jssor$.$Extend({$ArrowKeyNavigation:undefined,$SlideWidth:undefined,$SlideHeight:undefined,$SlideshowOptions:undefined,$CaptionSliderOptions:undefined,$BulletNavigatorOptions:undefined,$ArrowNavigatorOptions:undefined,$ThumbnailNavigatorOptions:undefined},i)});
4var yt=i.$PlayOrientation&3,bf=(i.$PlayOrientation&4)/-4||1,nt=i.$SlideshowOptions,ft=$Jssor$.$Extend({$Class:$JssorCaptionSliderBase$,$PlayInMode:1,$PlayOutMode:1},i.$CaptionSliderOptions),pt=i.$BulletNavigatorOptions,tt=i.$ArrowNavigatorOptions,et=i.$ThumbnailNavigatorOptions;$JssorDebug$.$Execute(function(){nt&&!nt.$Class&&$JssorDebug$.$Fail("Option $SlideshowOptions error, class not specified.")});$JssorDebug$.$Execute(function(){i.$CaptionSliderOptions&&!i.$CaptionSliderOptions.$Class&&$JssorDebug$.$Fail("Option $CaptionSliderOptions error, class not specified.")});$JssorDebug$.$Execute(function(){pt&&!pt.$Class&&$JssorDebug$.$Fail("Option $BulletNavigatorOptions error, class not specified.")});$JssorDebug$.$Execute(function(){tt&&!tt.$Class&&$JssorDebug$.$Fail("Option $ArrowNavigatorOptions error, class not specified.")});$JssorDebug$.$Execute(function(){et&&!et.$Class&&$JssorDebug$.$Fail("Option $ThumbnailNavigatorOptions error, class not specified.")});var wt=!i.$UISearchMode,h,o=$Jssor$.$FindChild(n,"slides",wt),ti=$Jssor$.$FindChild(n,"loading",wt)||$Jssor$.$CreateDiv(document),rr=$Jssor$.$FindChild(n,"navigator",wt),ii=$Jssor$.$FindChild(n,"arrowleft",wt);typeof ii=="undefined"&&(ii=document.getElementById("imgSPPrev"));bt=$Jssor$.$FindChild(n,"arrowright",wt);typeof bt=="undefined"&&(bt=document.getElementById("imgSPNext"));li=$Jssor$.$FindChild(n,"thumbnavigator",wt);$JssorDebug$.$Execute(function(){if(rr&&!pt)throw new Error("Bullet navigator container defined but $BulletNavigatorOptions not specified.");if((ii||bt)&&!tt)throw new Error("arrowleft or arrowright defined, but $ArrowNavigatorOptions not specified.");
4if(li&&!et)throw new Error("Thumbnail navigator container defined, but $ThumbnailNavigatorOptions not specified.");});ai=$Jssor$.$CssWidth(o);vi=$Jssor$.$CssHeight(o);$JssorDebug$.$Execute(function(){isNaN(ai)&&$JssorDebug$.$Fail("Width of slides container wrong specification, it should be specified in pixel (like style='width:1850px;').");ai==undefined&&$JssorDebug$.$Fail("Width of slides container not specified, it should be specified in pixel (like style='width:1850px;').");isNaN(vi)&&$JssorDebug$.$Fail("Height of slides container wrong specification, it should be specified in pixel (like style='height:455px;').");vi==undefined&&$JssorDebug$.$Fail("Height of slides container not specified, it should be specified in pixel (like style='height:455px;').");var n=$Jssor$.$CssOverflow(o),t=$Jssor$.$Css(o,"overflowX"),i=$Jssor$.$Css(o,"overflowY");n!="hidden"&&(t!="hidden"||i!="hidden")&&$JssorDebug$.$Fail("Overflow of slides container wrong specification, it should be specified as 'hidden' (style='overflow:hidden;').")});$JssorDebug$.$Execute(function(){$Jssor$.$IsNumeric(i.$DisplayPieces)||$JssorDebug$.$Fail("Option $DisplayPieces error, it should be a numeric value and greater than or equal to 1.");i.$DisplayPieces<1&&$JssorDebug$.$Fail("Option $DisplayPieces error, it should be greater than or equal to 1.");i.$DisplayPieces>1&&i.$DragOrientation&&i.$DragOrientation!=yt&&$JssorDebug$.$Fail("Option $DragOrientation error, it should be 0 or the same of $PlayOrientation when $DisplayPieces is greater than 1.");$Jssor$.$IsNumeric(i.$ParkingPosition)||$JssorDebug$.$Fail("Option $ParkingPosition error, it should be a numeric value.");i.$ParkingPosition&&i.$DragOrientation&&i.$DragOrientation!=yt&&$JssorDebug$.$Fail("Option $DragOrientation error, it should be 0 or the same of $PlayOrientation when $ParkingPosition is not equal to 0.")});it=[];fu=$Jssor$.$Children(o);$Jssor$.$Each(fu,function(n){n.tagName!="DIV"||$Jssor$.$AttributeEx(n,"u")?$Jssor$.$IsBrowserIe9Earlier()&&$Jssor$.$CssZIndex(n,($Jssor$.$CssZIndex(n)||0)+1):it.push(n)});$JssorDebug$.$Execute(function(){it.length<1&&$JssorDebug$.$Error("Slides html code definition error, there must be at least 1 slide to initialize a slider.")});var kf=0,eu,u=-1,ou="",ur,df,fr,f=it.length,rt=i.$SlideWidth||ai,ut=i.$SlideHeight||vi,su=i.$SlideSpacing,er=rt+su,or=ut+su,hu=yt&1?er:or,s=Math.min(i.$DisplayPieces,f),yi,c,st,sr,ht=[],cu,lu,au,vu,gf,ct,re=i.$AutoPlaySteps,b=i.$PauseOnHover,ne=i.$AutoPlayInterval,yu=i.$SlideDuration,hr,pi,wi,pu=s<f,y=pu?i.$Loop:0,ri,lt,k=1,at,p,kt,cr=0,lr=0,d,bi,ki,ar,l,ui,a,vr=new uf,fi;ct=i.$AutoPlay;r.$Options=t;wf();$Jssor$.$Attribute(n,"jssor-slider",!0);$Jssor$.$CssZIndex(o,$Jssor$.$CssZIndex(o)||0);$Jssor$.$CssPosition(o,"absolute");yi=$Jssor$.$CloneNode(o,!0);$Jssor$.$InsertBefore(yi,o);nt&&(vu=nt.$ShowLink,hr=nt.$Class,$JssorDebug$.$Execute(function(){nt.$Transitions&&nt.$Transitions.length||$JssorDebug$.$Error("Invalid '$SlideshowOptions', no '$Transitions' specified.")}),pi=s==1&&f>1&&hr&&(!$Jssor$.$IsBrowserIE()||$Jssor$.$BrowserVersion()>=8));wi=pi||s>=f||!(y&1)?0:i.$ParkingPosition;ri=(s>1||wi?yt:-1)&i.$DragOrientation;var di=o,v=[],w,vt,yr=$Jssor$.$Device(),gi=yr.$Touchable,wu,g,pr,bu,wr;for(yr.$TouchActionAttr&&$Jssor$.$Css(di,yr.$TouchActionAttr,[null,"pan-y","pan-x","none"][ri]||""),ui=new tf,pi&&(w=new hr(vr,rt,ut,nt,gi)),$Jssor$.$AppendChild(yi,ui.$Wrapper),$Jssor$.$CssOverflow(o,"hidden"),vt=ru(),$Jssor$.$Css(vt,"backgroundColor","#000"),$Jssor$.$CssOpacity(vt,0),$Jssor$.$InsertBefore(vt,di.firstChild,di),ei=0;ei<it.length;ei++)ku=it[ei],du=new ff(ku,ei),v.push(du);$Jssor$.$HideElement(ti);$JssorDebug$.$Execute(function(){$Jssor$.$Attribute(ti,"debug-id","loading-container")});ar=new nf;a=new rf(ar,ui);$JssorDebug$.$Execute(function(){$Jssor$.$Attribute(di,"debug-id","slide-board")});ri&&($Jssor$.$AddEvent(o,"mousedown",tu),$Jssor$.$AddEvent(o,"touchstart",of),$Jssor$.$AddEvent(o,"dragstart",nu),$Jssor$.$AddEvent(o,"selectstart",nu),$Jssor$.$AddEvent(document,"mouseup",si),$Jssor$.$AddEvent(document,"touchend",si),$Jssor$.$AddEvent(document,"touchcancel",si),$Jssor$.$AddEvent(window,"blur",si));b&=gi?10:5;rr&&pt&&(cu=new pt.$Class(rr,pt,ni(),hi()),ht.push(cu));tt&&ii&&bt&&(tt.$Loop=y,tt.$DisplayPieces=s,lu=new tt.$Class(ii,bt,tt,ni(),hi()),ht.push(lu));li&&et&&(et.$StartIndex=i.$StartIndex,au=new et.$Class(li,et),ht.push(au));$Jssor$.$Each(ht,function(n){n.$Reset(f,v,ti);n.$On($JssorNavigatorEvents$.$NAVIGATIONREQUEST,vf)}
4);ir(ni());$Jssor$.$AddEvent(o,"click",sf);$Jssor$.$AddEvent(n,"mouseout",$Jssor$.$MouseOverOutFilter(yf,n));$Jssor$.$AddEvent(n,"mouseover",$Jssor$.$MouseOverOutFilter(pf,n));tr();i.$ArrowKeyNavigation&&$Jssor$.$AddEvent(document,"keydown",function(n){n.keyCode==37?dt(-1):n.keyCode==39&&dt(1)});oi=i.$StartIndex;y&1||(oi=Math.max(0,Math.min(oi,f-s)));a.$PlayCarousel(oi,oi,0)},$JssorSlideo$=window.$JssorSlideo$=$JssorSlider$,$JssorCaptionSlider$,$JssorCaptionSlideo$;$JssorSlider$.$EVT_CLICK=21;$JssorSlider$.$EVT_DRAG_START=22;$JssorSlider$.$EVT_DRAG_END=23;$JssorSlider$.$EVT_SWIPE_START=24;$JssorSlider$.$EVT_SWIPE_END=25;$JssorSlider$.$EVT_LOAD_START=26;$JssorSlider$.$EVT_LOAD_END=27;$JssorSlider$.$EVT_FREEZE=28;$JssorSlider$.$EVT_POSITION_CHANGE=202;$JssorSlider$.$EVT_PARK=203;$JssorSlider$.$EVT_SLIDESHOW_START=206;$JssorSlider$.$EVT_SLIDESHOW_END=207;$JssorSlider$.$EVT_PROGRESS_CHANGE=208;$JssorSlider$.$EVT_STATE_CHANGE=209;$JssorSlider$.$EVT_ROLLBACK_START=210;$JssorSlider$.$EVT_ROLLBACK_END=211;var $JssorNavigatorEvents$={$NAVIGATIONREQUEST:1,$INDEXCHANGE:2,$RESET:3},$JssorBulletNavigator$=window.$JssorBulletNavigator$=function(n,t){function k(n){n!=-1&&b[n].$Selected(n==o)}function d(n){r.$TriggerEvent($JssorNavigatorEvents$.$NAVIGATIONREQUEST,n*s)}var r=this,g,nt;$JssorObject$.call(r);n=$Jssor$.$GetElement(n);var h,tt,c,l,a,o=0,i,s,f,p,w,e,u,v,y,it=[],b=[];r.$Elmt=n;r.$GetCurrentIndex=function(){return a};r.$SetCurrentIndex=function(n){if(n!=a){var i=o,t=Math.floor(n/s);o=t;a=n;k(i);k(t)}};r.$Show=function(t){$Jssor$.$ShowElement(n,t)};r.$Relocate=function(t,r){if(!g||i.$Scale==!1){var t=$Jssor$.$ParentNode(n).clientWidth,r=$Jssor$.$ParentNode(n).clientHeight;i.$AutoCenter&1&&$Jssor$.$CssLeft(n,(t-c)/2);i.$AutoCenter&2&&$Jssor$.$CssTop(n,(r-l)/2);g=!0}};r.$Reset=function(t){var r,ut,a,ft;if(!nt){tt=t;h=Math.ceil(t/s);o=0;var g=v+p,rt=y+w,k=Math.ceil(h/f)-1;for(c=v+g*(e?f-1:k),l=y+rt*(e?k:f-1),$Jssor$.$CssWidth(n,c),$Jssor$.$CssHeight(n,l),r=0;r<h;r++)ut=$Jssor$.$CreateSpan(),$Jssor$.$InnerText(ut,r+1),a=$Jssor$.$BuildElement(u,"numbertemplate",ut,!0),$Jssor$.$CssPosition(a,"absolute"),ft=r%(k+1),$Jssor$.$CssLeft(a,e?r%f*g:g*ft),$Jssor$.$CssTop(a,e?rt*ft:Math.floor(r/(k+1))*rt),$Jssor$.$AppendChild(n,a),it[r]=a,i.$ActionMode&1&&$Jssor$.$AddEvent(a,"click",$Jssor$.$CreateCallback(null,d,r)),i.$ActionMode&2&&$Jssor$.$AddEvent(a,"mouseover",$Jssor$.$MouseOverOutFilter($Jssor$.$CreateCallback(null,d,r),a)),b[r]=$Jssor$.$Buttonize(a);nt=!0}};r.$Options=i=$Jssor$.$Extend({$SpacingX:0,$SpacingY:0,$Orientation:1,$ActionMode:1},t);$JssorDebug$.$Execute(function(){i=$Jssor$.$Extend({$Steps:undefined,$Lanes:undefined},i)});u=$Jssor$.$FindChild(n,"prototype");$JssorDebug$.$Execute(function(){u||$JssorDebug$.$Fail("Navigator item prototype not defined.");isNaN($Jssor$.$CssWidth(u))&&$JssorDebug$.$Fail("Width of 'navigator item prototype' not specified.");isNaN($Jssor$.$CssHeight(u))&&$JssorDebug$.$Fail("Height of 'navigator item prototype' not specified.")});v=$Jssor$.$CssWidth(u);y=$Jssor$.$CssHeight(u);$Jssor$.$RemoveElement(u,n);s=i.$Steps||1;f=i.$Lanes||1;p=i.$SpacingX;w=i.$SpacingY;e=i.$Orientation-1;i.$Scale==!1&&$Jssor$.$Attribute(n,"noscale",!0)},$JssorArrowNavigator$=window.$JssorArrowNavigator$=function(n,t,i){function l(n){r.$TriggerEvent($JssorNavigatorEvents$.$NAVIGATIONREQUEST,n,!0)}function a(r){$Jssor$.$ShowElement(n,r||!i.$Loop&&u==0);$Jssor$.$ShowElement(t,r||!i.$Loop&&u>=c-i.$DisplayPieces);h=r}var r=this,h,c,u,f,e,o,s,v,y;$JssorObject$.call(r);$JssorDebug$.$Execute(function(){n||$JssorDebug$.$Fail("Option '$ArrowNavigatorOptions' spepcified, but UI 'arrowleft' not defined. Define 'arrowleft' to enable direct navigation, or remove option '$ArrowNavigatorOptions' to disable direct navigation.");t||$JssorDebug$.$Fail("Option '$ArrowNavigatorOptions' spepcified, but UI 'arrowright' not defined. Define 'arrowright' to enable direct navigation, or remove option '$ArrowNavigatorOptions' to disable direct navigation.");isNaN($Jssor$.$CssWidth(n))&&$JssorDebug$.$Fail("Width of 'arrow left' not specified.");isNaN($Jssor$.$CssWidth(t))&&$JssorDebug$.$Fail("Width of 'arrow right' not specified.");isNaN($Jssor$.$CssHeight(n))&&$JssorDebug$.$Fail("Height of 'arrow left' not specified.");isNaN($Jssor$.$CssHeight(t))&&$JssorDebug$.$Fail("Height of 'arrow right' not specified.")});o=$Jssor$.$CssWidth(n);s=$Jssor$.$CssHeight(n);r.$GetCurrentIndex=function(){return u};r.$SetCurrentIndex=function(n,t,i){i?u=t:(u=n,a(h))};r.$Show=a;r.$Relocate=function(i,r){if(!v||f.$Scale==!1){var u=$Jssor$.$ParentNode(n).clientWidth,r=$Jssor$.$ParentNode(n).clientHeight;f.$AutoCenter&1&&($Jssor$.$CssLeft(n,(u-o)/2),$Jssor$.$CssLeft(t,(u-o)/2));f.$AutoCenter&2&&($Jssor$.$CssTop(n,(r-s)/2),$Jssor$.$CssTop(t,(r-s)/2));v=!0}};r.$Reset=function(i){c=i;u=0;y||($Jssor$.$AddEvent(n,"click",$Jssor$.$CreateCallback(null,l,-e)),$Jssor$.$AddEvent(t,"click",$Jssor$.$CreateCallback(null,l,e)),$Jssor$.$Buttonize(n),$Jssor$.$Buttonize(t),y=!0)};r.$Options=f=$Jssor$.$Extend({$Steps:1},i);e=f.$Steps;f.$Scale==!1&&($Jssor$.$Attribute(n,"noscale",!0),$Jssor$.$Attribute(t,"noscale",!0))},$JssorThumbnailNavigator$=window.$JssorThumbnailNavigator$=function(n,t){function g(n,t){function v(){h.$Selected(o==t)}function a(){if(!l.$LastDragSucceded()){var n=r-t%r,i=l.$GetVirtualIndex((t+n)/r-1),u=i*r+r-n;f.$TriggerEvent($JssorNavigatorEvents$.$NAVIGATIONREQUEST,u)}}var s=this,u,h,c;$JssorDebug$.$Execute(function(){s.$Wrapper=undefined});s.$Index=t;s.$Highlight=v;c=n.$Thumb||n.$Image||$Jssor$.$CreateDiv();
4s.$Wrapper=u=$Jssor$.$BuildElement(e,"thumbnailtemplate",c,!0);h=$Jssor$.$Buttonize(u);i.$ActionMode&1&&$Jssor$.$AddEvent(u,"click",a);i.$ActionMode&2&&$Jssor$.$AddEvent(u,"mouseover",$Jssor$.$MouseOverOutFilter(a,u))}var f=this,b,d,o,i,y=[],p,w,r,s,h,a,v,c,l,u,e,k;$JssorObject$.call(f);n=$Jssor$.$GetElement(n);f.$GetCurrentIndex=function(){return o};f.$SetCurrentIndex=function(n,t,i){var u=o;o=n;u!=-1&&y[u].$Highlight();y[n].$Highlight();i||l.$PlayTo(l.$GetVirtualIndex(Math.floor(t/r)))};f.$Show=function(t){$Jssor$.$ShowElement(n,t)};f.$Relocate=$Jssor$.$EmptyFunction;f.$Reset=function(t,f){var nt,ft;if(!k){b=t;d=Math.ceil(b/r);o=-1;c=Math.min(c,f.length);var e=i.$Orientation&1,tt=a+(a+s)*(r-1)*(1-e),it=v+(v+h)*(r-1)*e,rt=tt+(tt+s)*(c-1)*e,ut=it+(it+h)*(c-1)*(1-e);$Jssor$.$CssPosition(u,"absolute");$Jssor$.$CssOverflow(u,"hidden");i.$AutoCenter&1&&$Jssor$.$CssLeft(u,(p-rt)/2);i.$AutoCenter&2&&$Jssor$.$CssTop(u,(w-ut)/2);$Jssor$.$CssWidth(u,rt);$Jssor$.$CssHeight(u,ut);nt=[];$Jssor$.$Each(f,function(n,t){var o=new g(n,t),f=o.$Wrapper,i=Math.floor(t/r),c=t%r;$Jssor$.$CssLeft(f,(a+s)*c*(1-e));$Jssor$.$CssTop(f,(v+h)*c*e);nt[i]||(nt[i]=$Jssor$.$CreateDiv(),$Jssor$.$AppendChild(u,nt[i]));$Jssor$.$AppendChild(nt[i],f);y.push(o)});ft=$Jssor$.$Extend({$HWA:!1,$AutoPlay:!1,$NaviQuitDrag:!1,$SlideWidth:tt,$SlideHeight:it,$SlideSpacing:s*e+h*(1-e),$MinDragOffsetToSlide:12,$SlideDuration:200,$PauseOnHover:1,$PlayOrientation:i.$Orientation,$DragOrientation:i.$DisableDrag?0:i.$Orientation},i);l=new $JssorSlider$(n,ft);k=!0}};f.$Options=i=$Jssor$.$Extend({$SpacingX:3,$SpacingY:3,$DisplayPieces:1,$Orientation:1,$AutoCenter:3,$ActionMode:1},t);i.$Rows!=undefined&&(i.$Lanes=i.$Rows);$JssorDebug$.$Execute(function(){i=$Jssor$.$Extend({$Lanes:undefined,$Width:undefined,$Height:undefined},i)});p=$Jssor$.$CssWidth(n);w=$Jssor$.$CssHeight(n);$JssorDebug$.$Execute(function(){p||$JssorDebug$.$Fail("width of 'thumbnavigator' container not specified.");w||$JssorDebug$.$Fail("height of 'thumbnavigator' container not specified.")});u=$Jssor$.$FindChild(n,"slides",!0);e=$Jssor$.$FindChild(u,"prototype");$JssorDebug$.$Execute(function(){e||$JssorDebug$.$Fail("prototype of 'thumbnavigator' not defined.")});a=$Jssor$.$CssWidth(e);v=$Jssor$.$CssHeight(e);$Jssor$.$RemoveElement(e,u);r=i.$Lanes||1;s=i.$SpacingX;h=i.$SpacingY;c=i.$DisplayPieces;i.$Scale==!1&&$Jssor$.$Attribute(n,"noscale",!0)};$JssorCaptionSlider$=window.$JssorCaptionSlider$=function(n,t,i){function s(n,t){function a(n,t){var i={};return $Jssor$.$Each(l,function(r,u){var f=$Jssor$.$AttributeEx(n,r+(t||"")),e;f&&(e={},r=="t"?e.$Value=f:f.indexOf("%")+1?e.$Percent=$Jssor$.$ParseFloat(f)/100:e.$Value=$Jssor$.$ParseFloat(f),i[u]=e)}),i}function y(){return f[Math.floor(Math.random()*f.length)]}function v(n){var i,t;return n=="*"?i=y():n&&(t=f[$Jssor$.$ParseInt(n)]||f[n],$Jssor$.$IsArray(t)&&(n!=h?(h=n,r[n]=0,c[n]=t[Math.floor(Math.random()*t.length)]):r[n]++,t=c[n],$Jssor$.$IsArray(t)&&(t=t.length&&t[r[n]%t.length],$Jssor$.$IsArray(t)&&(t=t[Math.floor(Math.random()*t.length)]))),i=t,$Jssor$.$IsString(i)&&(i=v(i))),i}var e=[],h,c=[],r=[],p=$Jssor$.$Children(n);return $Jssor$.$Each(p,function(n){var r=[],f;r.$Elmt=n;f=$Jssor$.$AttributeEx(n,"u")=="caption";$Jssor$.$Each(i?[0,3]:[2],function(i,e){var l,h,c;f&&(i==2&&$Jssor$.$AttributeEx(n,"t3")||(h=a(n,i),i!=2||h.$Transition||(h.$Delay=h.$Delay||{$Value:0},h=$Jssor$.$Extend(a(n,0),h))),h&&h.$Transition&&(l=v(h.$Transition.$Value),l&&(c=$Jssor$.$Extend({$Delay:0},l),$Jssor$.$Each(h,function(n,t){var i=(u[t]||u.$Default).apply(u,[c[t],h[t]]);isNaN(i)||(c[t]=i)}),e||(h.$BeginTime?c.$BeginTime=h.$BeginTime.$Value||0:o&2&&(c.$BeginTime=0)))),r.push(c));t%2&&!e&&(r.$Children=s(n,t+1))});e.push(r)}),e}function h(n,t,r){var e={$Easing:t.$Easing,$Round:t.$Round,$During:t.$During,$Reverse:i&&!r},p,a,v,tt;$JssorDebug$.$Execute(function(){e.$CaptionAnimator=!0});var l=n,y=$Jssor$.$ParentNode(n),h=$Jssor$.$CssWidth(l),c=$Jssor$.$CssHeight(l),it=$Jssor$.$CssWidth(y),rt=$Jssor$.$CssHeight(y),o={},u={},s=t.$ScaleClip||1;if(t.$Opacity&&(u.$Opacity=1-t.$Opacity),e.$OriginalWidth=h,e.$OriginalHeight=c,t.$Zoom||t.$Rotate)u.$Zoom=(t.$Zoom||2)-2,($Jssor$.$IsBrowserIe9Earlier()||$Jssor$.$IsBrowserOpera())&&(u.$Zoom=Math.min(u.$Zoom,1)),o.$Zoom=1,p=t.$Rotate||0,u.$Rotate=p*360,o.$Rotate=0;else if(t.$Clip){var w={$Top:0,$Right:h,$Bottom:c,$Left:0},b=$Jssor$.$Extend({},w),f=b.$Offset={},k=t.$Clip&4,d=t.$Clip&8,g=t.$Clip&1,nt=t.$Clip&2;k&&d?(f.$Top=c/2*s,f.$Bottom=-f.$Top):k?f.$Bottom=-c*s:d&&(f.$Top=c*s);g&&nt?(f.$Left=h/2*s,f.$Right=-f.$Left):g?f.$Right=-h*s:nt&&(f.$Left=h*s);e.$Move=t.$Move;u.$Clip=b;o.$Clip=w}return a=0,v=0,t.x&&(a-=it*t.x),t.y&&(v-=rt*t.y),(a||v||e.$Move)&&(u.$Left=a,u.$Top=v),tt=t.$Duration,o=$Jssor$.$Extend(o,$Jssor$.$GetStyles(l,u)),e.$Setter=$Jssor$.$StyleSetterEx(),new $JssorAnimator$(t.$Delay,tt,e,l,o,u)}function c(n,t){return $Jssor$.$Each(t,function(t,i){var o;$JssorDebug$.$Execute(function(){if(t.length){var r=$Jssor$.$CssTop(t.$Elmt),u=$Jssor$.$CssLeft(t.$Elmt),f=$Jssor$.$CssWidth(t.$Elmt),e=$Jssor$.$CssHeight(t.$Elmt),n=null;isNaN(r)?n="Style 'top' for caption not specified. Please always specify caption like 'position: absolute; top: ...px; left: ...px; width: ...px; height: ...px;'.":isNaN(u)?n="Style 'left' not specified. Please always specify caption like 'position: absolute; top: ...px; left: ...px; width: ...px; height: ...px;'.":isNaN(f)?n="Style 'width' not specified. Please always specify caption like 'position: absolute; top: ...px; left: ...px; width: ...px; height: ...px;'.":isNaN(e)&&(n="Style 'height' not specified. Please always specify caption like 'position: absolute; top: ...px; left: ...px; width: ...px; height: ...px;'.");n&&$JssorDebug$.$Error("Caption "+(i+1)+" definition error, \r\n"+n+"\r\n"+t.$Elmt.outerHTML)}});var u,s=t.$Elmt,f=t[0],l=t[1];f&&(u=h(s,f),n=u.$Locate(f.$BeginTime==undefined?n:f.$BeginTime,1));n=c(n,t.$Children);
4l&&(o=h(s,l,1),o.$Locate(n,1),r.$Combine(o),e.$Combine(o));u&&r.$Combine(u)}),n}$JssorDebug$.$Execute(function(){t.$CaptionTransitions||$JssorDebug$.$Error("'$CaptionSliderOptions' option error, '$CaptionSliderOptions.$CaptionTransitions' not specified.")});var r=this,e,o=i?t.$PlayInMode:t.$PlayOutMode,f=t.$CaptionTransitions,l={$Transition:"t",$Delay:"d",$Duration:"du",x:"x",y:"y",$Rotate:"r",$Zoom:"z",$Opacity:"f",$BeginTime:"b"},u={$Default:function(n,t){return isNaN(t.$Value)?n*=t.$Percent:n=t.$Value,n},$Opacity:function(n,t){return this.$Default(n-1,t)}};u.$Zoom=u.$Opacity;$JssorAnimator$.call(r,0,0);r.$Revert=function(){r.$GoToPosition(r.$GetPosition_OuterEnd()*(i||0));e.$GoToPosition(0)};e=new $JssorAnimator$(0,0);c(0,o?s(n,1):[])};$JssorCaptionSlideo$=function(n,t,i){function o(n,t){$Jssor$.$Each(n,function(i,r){var u=e[r];u&&((t||r=="e")&&($Jssor$.$IsNumeric(i)?i=f[i]:$Jssor$.$IsPlainObject(i)&&o(i,!0)),n[u]=i,delete n[r])})}function s(n,t){var i=[],r=$Jssor$.$Children(n);return $Jssor$.$Each(r,function(n){var e=$Jssor$.$AttributeEx(n,"u")=="caption";if(e){var r=$Jssor$.$AttributeEx(n,"t"),o=u[$Jssor$.$ParseInt(r)]||u[r],f=$Jssor$.$AttributeEx(n,"t2"),h=u[$Jssor$.$ParseInt(f)]||u[f],c={$Elmt:n,$Transition:o,$Transition2:h};t<3&&i.concat(s(n,t+1));i.push(c)}}),i}function h(n,t,u,f){return $Jssor$.$Each(t,function(t){var c;o(t);var e={$Easing:t.$Easing,$Round:t.$Round,$During:t.$During,$Setter:$Jssor$.$StyleSetterEx()},s=$Jssor$.$Extend($Jssor$.$GetStyles(captionItem,t),u),h=new $JssorAnimator$(t.b||0,t.d,e,n,s,t);!f==!i&&r.$Combine(h);u=$Jssor$.$Extend(u,$Jssor$.$Cast(s,t,1,e.$Easing,e.$During,e.$Round,e,c))}),u}function l(n){$Jssor$.$Each(n,function(n,t){$JssorDebug$.$Execute(function(){if(n.length){var r=$Jssor$.$CssTop(n.$Elmt),u=$Jssor$.$CssLeft(n.$Elmt),f=$Jssor$.$CssWidth(n.$Elmt),e=$Jssor$.$CssHeight(n.$Elmt),i=null;if(isNaN(r)?i="style 'top' not specified":isNaN(u)?i="style 'left' not specified":isNaN(f)?i="style 'width' not specified":isNaN(e)&&(i="style 'height' not specified"),i)throw new Error("Caption "+(t+1)+" definition error, "+i+".\r\n"+n.$Elmt.outerHTML);}});var r=n.$Elmt,u=$Jssor$.$CssWidth(n),f=$Jssor$.$CssHeight(n),e=$Jssor$.$CssWidth(captionParent),o=$Jssor$.$CssHeight(captionParent),i={$Zoom:1,$Rotate:0,$Clip:{$Top:0,$Right:u,$Bottom:f,$Left:0}};i=h(r,n.$Transition,i,!0);h(r,n.$Transition2,i,!1)})}var c;$JssorDebug$.$Execute(function(){t.$CaptionTransitions?$Jssor$.$IsArray(t.$CaptionTransitions)||$JssorDebug$.$Error("'$CaptionSlideoOptions' option error, '$CaptionSlideoOptions.$CaptionTransitions' is not an array."):$JssorDebug$.$Error("'$CaptionSlideoOptions' option error, '$CaptionSlideoOptions.$CaptionTransitions' not specified.")});var r=this,f,e={},u=t.$CaptionTransitions;$JssorAnimator$.call(r,0,0);r.$Revert=function(){r.$GoToPosition(-1,!0)};f=[$JssorEasing$.$EaseSwing,$JssorEasing$.$EaseLinear,$JssorEasing$.$EaseInQuad,$JssorEasing$.$EaseOutQuad,$JssorEasing$.$EaseInOutQuad,$JssorEasing$.$EaseInCubic,$JssorEasing$.$EaseOutCubic,$JssorEasing$.$EaseInOutCubic,$JssorEasing$.$EaseInQuart,$JssorEasing$.$EaseOutQuart,$JssorEasing$.$EaseInOutQuart,$JssorEasing$.$EaseInQuint,$JssorEasing$.$EaseOutQuint,$JssorEasing$.$EaseInOutQuint,$JssorEasing$.$EaseInSine,$JssorEasing$.$EaseOutSine,$JssorEasing$.$EaseInOutSine,$JssorEasing$.$EaseInExpo,$JssorEasing$.$EaseOutExpo,$JssorEasing$.$EaseInOutExpo,$JssorEasing$.$EaseInCirc,$JssorEasing$.$EaseOutCirc,$JssorEasing$.$EaseInOutCirc,$JssorEasing$.$EaseInElastic,$JssorEasing$.$EaseOutElastic,$JssorEasing$.$EaseInOutElastic,$JssorEasing$.$EaseInBack,$JssorEasing$.$EaseOutBack,$JssorEasing$.$EaseInOutBack,$JssorEasing$.$EaseInBounce,$JssorEasing$.$EaseOutBounce,$JssorEasing$.$EaseInOutBounce];c={$Top:"y",$Left:"x",$Bottom:"m",$Right:"t",$Zoom:"s",$Rotate:"r",$Opacity:"o",$Easing:"e",$ZIndex:"i",$Round:"rd",$During:"du",$Duration:"d"};$Jssor$.$Each(c,function(n,t){e[n]=t});l(s(n,1))};function initContentManagement(){typeof ManagePrivacy!="undefined"&&ManagePrivacy===!0&&(blnManagePrivacy=!0,ContentManagement_DW())}function ContentManagement_DW(){isGPCActive();initCookieBannerAfterGPC();initializeGPC();$("#dw-donotsellorshare").removeClass("dw-none")}function isGPCActive(){try{var n=typeof navigator.globalPrivacyControl!="undefined"&&navigator.globalPrivacyControl
4===!0;localStorage.setItem("dw_IsGPC",n?"true":"false")}catch(t){localStorage.setItem("dw_IsGPC","false")}}function initializeGPC(){IsFramePage||isGPCActive();var n=getIsGPC(),t=!!localStorage.getItem("dw_cookieConsentShown");t&&!n&&(appendTrackingExternalScripts(),document.dispatchEvent(new CustomEvent("dw_consent_given")));IsFramePage||blnManagePrivacy!=!0||n!=!0||CurrentPN=="finance"?$("#fb-customerchat").length>0&&$("#fb-customerchat").removeClass("dw-none"):($("#fb-customerchat").length>0&&$("#fb-customerchat").addClass("dw-none"),showGPCNotice(),setTimeout(function(){$("#dw-gpc-notice").css("margin-top","-240px")},4500),setTimeout(function(){$("#dw-gpc-notice").parent().remove()},5e3))}function getIsGPC(){var n=localStorage.getItem("dw_IsGPC");return n!==null?n==="true":!1}function getAnalyticsCheckbox(){return document.getElementById("dw_analyticsandmarketing")}function setCookieContainer(n){var i=document.getElementById("dw-cookieContainer"),t;i&&(n?(i.classList.add("dw-none"),t=i.querySelector(".cookie-consent"),t&&t.classList.remove("visible")):(i.classList.remove("dw-none"),t=i.querySelector(".cookie-consent"),t&&t.classList.add("visible")))}function setConsentExpiry(){var n=new Date;n.setDate(n.getDate()+CONSENT_EXPIRY_DAYS);localStorage.setItem(CONSENT_EXPIRY_KEY,n.getTime().toString())}function isConsentExpired(){var n=localStorage.getItem(CONSENT_EXPIRY_KEY),t,i;return n?(t=new Date(parseInt(n)),i=new Date,i>t):!0}function setCookieConsent(n){localStorage.setItem(ESSENTIAL_KEY,"true");localStorage.setItem(ANALYTICS_KEY,n?"true":"false");localStorage.setItem(CONSENT_KEY,"true");setConsentExpiry();setCookieContainer(!0);n===!0&&(appendTrackingExternalScripts(),triggerGoogleTranslatorOnConsent());document.dispatchEvent(new CustomEvent("dw_consent_given"));n===!0?($("#_ChatChasersAppContainer").show(),$("#fb-customerchat").removeClass("dw-none"),$("#_ChatChasersAppFrameContent").hide(),$("#iframeDirectionsCnt").hide(),$("#contactPage_direction").hide(),$(".dw-directions").hide()):($(".dw-directions").show(),$("#iframeDirectionsCnt").show(),$("#contactPage_direction").show(),$("#_ChatChasersAppFrameContent").show(),$("#_ChatChasersAppContainer").hide(),$("#fb-customerchat").addClass("dw-none"))}function toggleSettings(){var n=document.getElementById("cookieSettings");n&&(n.style.display=n.style.display==="none"?"block":"none")}function savePreferences(){var n=getAnalyticsCheckbox();setCookieConsent(n?n.checked:!1);n&&n.checked||(window.dataLayer=window.dataLayer||[],window.dataLayer.push("consent","update",{analytics_storage:"denied",ad_storage:"denied"}),removeTrackingScripts(),deleteAllCookies(),location.reload())}function acceptAll(){var t=getAnalyticsCheckbox(),n;t&&(t.checked=!0);n=$(".accept-all");n.length>0&&n.prop("disabled",!0).addClass("disabled").attr("aria-disabled","true");setCookieConsent(!0);appendDrivingDirections();blnManagePrivacy==!0&&($("#_ChatChasersAppContainer").show(),$("#_ChatChasersAppFrameContent").hide());triggerGoogleTranslatorOnConsent()}function triggerGoogleTranslatorOnConsent(){var t,n;try{t=typeof ShowGoogleTranslator!="undefined"?ShowGoogleTranslator:!1;IsFramePage||!t||_translatorScriptLoaded||(_translatorScriptLoaded=!0,n=!1,n=blnManagePrivacy?getIsGPC()===!1&&getIsAnalyticsAndMarketing()===!0&&CurrentPN!=="finance":!0,n&&(viewportWidth()>767||$("#Transilator_top").length>0?LoadGoogleTranslatorJs():LoadGoogleTranslatorJs(),$("#Transilator_top").length>0&&($("#google_translate_element").remove(),$("#Transilator_top").html("<span id='google_translate_element'><\/span>"),$("#Transilator_top").parent("a.dropdown-toggle").removeAttr("href"))))}catch(i){console.error("Error loading Google Translator after consent:",i)}}function rejectAll(){var n=getAnalyticsCheckbox();if(n&&(n.checked=!1),window.dataLayer=window.dataLayer||[],window.dataLayer.push("consent","update",{analytics_storage:"denied",ad_storage:"denied"}),removeTrackingScripts(),setCookieConsent(!1),deleteAllCookies(),typeof $!="undefined"&&typeof $.fn.animate=="function")$("html, body").animate({scrollTop:0},250,function(){location.reload()});else{try{window.scrollTo(0,0)}catch(t){}location.reload()}_trackingScriptsInjected=!1}function removeTrackingScripts(){var n=["googletagmanager.com","google-analytics.com","connect.facebook.net","fbevents.js"];$("script").each(function(){for(var i=$(this).attr("src")||"",t=0;t<n.length;t++)if(i.indexOf(n[t])>-1){$(this).remove();break}});$('iframe[src*="googletagmanager.com"]').remove();typeof google_tag_manager!="undefined"&&(google_tag_manager=undefined);typeof ga!="undefined"&&(ga=undefined);typeof fbq!="undefined"&&(fbq=undefined)}function initCookieBanner(){var n=!!localStorage.getItem(CONSENT_KEY);n&&isConsentExpired()&&(localStorage.removeItem(ESSENTIAL_KEY),localStorage.removeItem(ANALYTICS_KEY),localStorage.removeItem(CONSENT_KEY),localStorage.removeItem(CONSENT_EXPIRY_KEY),n=!1);setCookieContainer(n)}function initCookieBannerAfterGPC(){blnManagePrivacy==!0&&getIsGPC()==!1&&CurrentPN!="finance"&&($("#dw-contentmanage").removeClass("dw-none"),initCookieBanner())}function checkAndInjectFakeChatButton(){var n=getIsAnalyticsAndMarketing();n===!1?($("#_ChatChasersAppContainer").hide(),$("#fb-customerchat").hide(),IsChatActive==!0&&getIsGPC()==!1&&CurrentPN!="finance"&&_cc_injectFakeCCButton(),$("#_ChatChasersAppFrameContent").show()):n===!0&&($("#_ChatChasersAppContainer").show(),$("#fb-customerchat").show(),$("#_ChatChasersAppFrameContent").hide())}function clearCookieConsent(){deleteAllCookies();localStorage.removeItem("dw_Essential");localStorage.removeItem("dw_AnalyticsandMarketing");localStorage.removeItem("dw_cookieConsentShown");localStorage.removeItem("dw_cookieConsentExpiry");initCookieBanner()}function deleteAllCookies(){var f=document.cookie.split(";"),n=window.location.hostname,i=n.split("."),r=[n,"."+n],u,t;i.length>2&&(u="."+i.slice(-2).join("."),r.push(u));t=["/","/2","/1","/0"];f.forEach(function(n){var i=n.split("=")[0].trim();r.forEach(function(n){t.forEach(function(t){document.cookie=i+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path="+t+"; domain="+n+";"})});t.forEach(function(n){document.cookie=i+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path="+n+";"})})}function getIsAnalyticsAndMarketing(){return localStorage.getItem("dw_AnalyticsandMarketing")==="true"?!0:!1}function JqueryAjaxCall(n,t,i,r){$.ajax({type:n,url:"/0/DealerWebLib/DealerWebService.asmx/"+t,data:i,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){typeof r!="undefined"&&typeof r=="function"?r(n.d):t=="GetFinanceSettings"||t=="GetStatesByCountry"?CurrentPN=="carfinder"?icomplete_carfinder(n.d,null,t):icomplete_finance(n.d,null,t):OnDWCallComplete(n.d,null,t)},error:function(n){n.readyState!=0?t=="GetFinanceSettings"||t=="GetStatesByCountry"?CurrentPN=="carfinder"?itimeout_carfinder(n.responseText):itimeout_finance(n.responseText):OnDWCallTimeOut(n.responseText):console.log("The request is not initialized")},failure:function(n){n.readyState!=0?t=="GetFinanceSettings"||t=="GetStatesByCountry"?CurrentPN=="carfinder"?ierror_carfinder(n.responseText):ierror_finance(n.responseText):OnDWCallError(n.responseText):console.log("The request is not initialized")}})}function viewportWidth(){var n=window,t="inner";
4return"innerWidth"in window||(t="client",n=document.documentElement||document.body),n[t+"Width"]}function showHomeModel(n){$("#DwHomeModelContainer_"+n).slideToggle("fast")}function ShowWelcomeTextMore(){$("#divWelcomeText2").slideDown("slow");$("#divWelcomeText3").slideDown("slow");$("#divWelcomeTextMore").hide()}function trim(n){return n.replace(/^\s*/,"").replace(/\s*$/,"")}function isInIframe(){return window.location!=window.parent.location?!0:!1}function getQueryParam(n){var t=new URLSearchParams(window.location.search);return t.get(n)||""}function getUTMValue(n){var i,t;if(blnManagePrivacy===!0&&getIsAnalyticsAndMarketing()!==!0)return"";if(i=getQueryParam(n),i)return i;try{if(t=JSON.parse(localStorage.getItem("utm_params")),t&&t.value&&t.value[n]&&(!t.expiryDate||(new Date).getTime()<t.expiryDate))return t.value[n]}catch(r){}return""}function buildUTM(){htmlUTM="";["utm_source","utm_medium","utm_campaign","utm_content"].forEach(function(n){var t=getUTMValue(n);t&&(htmlUTM+="&"+n+"="+encodeURIComponent(t))})}function setUTMHiddenFields(){[{id:"hdnUTMSource",param:"utm_source"},{id:"hdnUTMMedium",param:"utm_medium"},{id:"hdnUTMCampaign",param:"utm_campaign"},{id:"hdnUTMContent",param:"utm_content"}].forEach(function(n){var t=document.getElementById(n.id);t&&(t.value=getUTMValue(n.param))})}function fixAllIframeUTM(){document.querySelectorAll("iframe").forEach(function(n){n.src&&n.src.indexOf("?")!==-1&&["utm_source","utm_medium","utm_campaign","utm_content"].forEach(function(t){var i=getUTMValue(t);i&&n.src.indexOf(t)===-1&&(n.src+="&"+t+"="+encodeURIComponent(i))})})}function hasConsentBeenDecided(){return!!localStorage.getItem("dw_cookieConsentShown")}function initUTM(){blnManagePrivacy===!0?hasConsentBeenDecided()&&getIsAnalyticsAndMarketing()===!0&&(buildUTM(),setUTMHiddenFields(),fixAllIframeUTM()):(buildUTM(),setUTMHiddenFields(),fixAllIframeUTM())}function loadExternalScriptsAfterInit(){_externalScriptsLoaded||(_externalScriptsLoaded=!0,setTimeout(function(){var n=blnManagePrivacy===!1;n&&CurrentPN!="finance"&&appendExternalScripts()},3e3))}function _maybeLoadDirections(){$("#iframeDirectionsCnt").html().indexOf("OcircleGO")>-1&&(htmlIframe='<iframe title="Directions" id="iframeDirections" class="dw-iframe" src="'+directionsEmbedurl+'"><\/iframe>',typeof custom_directions_Embedurl!="undefined"&&(htmlIframe='<iframe title="Directions" id="iframeDirections" class="dw-iframe" src="'+custom_directions_Embedurl+'"><\/iframe>'),$("#iframeDirectionsCnt").html(htmlIframe),$("#iframeDirectionsCnt").click(function(){$("#iframeDirections").css("pointer-events","auto")}),$("#iframeDirectionsCnt").mouseleave(function(){$("#iframeDirections").css("pointer-events","none")}))}function _maybeLoadShowroomContact(){if($("#divContactFrm").length>0&&$("#divContactFrm").html().length==0){var n=0;_externalScriptsLoaded=!1;typeof setSendContactEmail!="undefined"&&(n=setSendContactEmail);loadExternalScriptsAfterInit();htmlIframe=ContactReferralSetting==0?'<iframe title="Contact Us" class="iframcont1 dw-iframe" src="/2/includes/contactus_home.aspx?from=home&nr=1&SendEmail='+n+"&cpage="+CurrentPN+htmlGCLID+htmlUTM+'"><\/iframe>':'<iframe title="Contact Us" class="iframcont2 dw-iframe" src="/2/includes/contactus_home.aspx?from=home&nr=1&SendEmail='+n+"&cpage="+CurrentPN+htmlGCLID+htmlUTM+'"><\/iframe>';$("#divContactFrm").html(htmlIframe)}}function appendDrivingDirections(){var n=$(window).height(),t=$(this).scrollTop();if(blnManagePrivacy===!0)if(getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&CurrentPN!="finance"){if($("#iframeDirectionsCnt").show(),$("#contactPage_direction").show(),$(".dw-directions").show(),$("#iframeDirectionsCnt").length>0&&$("#iframeDirectionsCnt").is(":visible")){var i=$("#iframeDirectionsCnt").offset().top,r=$("#iframeDirectionsCnt").outerHeight(),u="";t>i+r-n&&_maybeLoadDirections()}}else $("#iframeDirectionsCnt").hide(),$("#contactPage_direction").hide(),$(".dw-directions").hide();else if($("#iframeDirectionsCnt").length>0&&$("#iframeDirectionsCnt").is(":visible")){var i=$("#iframeDirectionsCnt").offset().top,r=$("#iframeDirectionsCnt").outerHeight(),u="";t>i+r-n&&_maybeLoadDirections()}}function SetSocialIconsOnMenu(){$("#dw-social-append-c").length>0&&$("#dw-social-append-c").html($("#DWSocialContainer").html())}function SetWriteAReviewForm(){function i(){$(".mbsc-checkbox-box").length>0&&($(".mbsc-checkbox-box").css("background-color",n),clearInterval(t))}$(".RatingContainer").rating();var n=$(".btn-primary").css("background-color"),t=setInterval(i,100)}function SetWriteAReviewFormTitle(){try{window.parent.document.getElementById("hdnTestimonialTitle")&&(Testimonialtype=window.parent.document.getElementById("hdnTestimonialTitle").value,$("#divTBR_Title label").html('<i class="fa fa-pencil"><\/i>'+Testimonialtype+" Title"),$("#divTBR_Review label").html('<i class="fa fa-comment"><\/i>'+Testimonialtype),$("#span_Popup-NewTestimonial_Review_footer_text").html(Testimonialtype))}catch(n){console.log("cross-origin frame error:",n.message)}}function SetBottomToTop(){var n=$(window).scrollTop();n>100?$(".overlayST").hasClass("hideST")&&$(".overlayST").removeClass("hideST"):$(".overlayST").hasClass("hideST")||$(".overlayST").addClass("hideST")}function SetContactUsBox(){(ContactReferralSetting==1||ContactReferralSetting==2)&&($("#col-contact").length>0&&$("#col-contact").css("height","700px"),$("#col-showroom").length>0&&($("#col-showroom").css("height","700px"),$("#col-showroom-cover").css("height","700px")),$("#ContactUs3col_TD2").length>0&&($("#ContactUs3col_TD2").css("height","700px"),$("#col-address-cover").css("height","700px")))}function ShowMobileMenu(){var n=$("#DWnavigation").css("right");n=="15px"?($("#DWnavigation").animate({right:"-100%"},400),$("#disablingDiv").hide(),$("body").removeClass("noscroll")):($("#DWnavigation").animate({right:"15"},400),$("#disablingDiv").show(),$("body").addClass("noscroll"))}function ShowMobileMenuTopToBottom(){var n=$("#DWnavigation").css("max-height"),t=af$("DWnavigation").style.height;n=="0px"?($("#DWnavigation").animate({maxHeight:t},400),$("body").addClass("noscroll")):($("#DWnavigation").animate({maxHeight:"0px"},400),$("body").removeClass("noscroll"))}function SetReviewPopup(){$(".YelpReadMore").length>0&&$(".YelpReadMore").click(function(n){n.preventDefault();$("#myPopup_YelpTestimonial_Body").html('<iframe src="'+$(this).attr("href")+'" frameborder="0" scrolling="yes" style="width:100%; height:610px;"><\/iframe>');
4GE_DW_Set_myPopup_invoked_function("myPopup_YelpTestimonial_Show")})}function SetReviewContent(){$(".reviewsPageContent2").length>0&&$(".reviewsCont").mouseover(function(){$(this).find(".Testitxt").stop().show(500)}).mouseout(function(){$(this).find(".Testitxt").stop().hide(500)})}function SetMobiscroll(){$("#divScheduleTestDrive").length>0&&($("#DP_Date_TestDrive").mobiscroll().calendar(Gblmobioptions),$("#DP_Date_TestDrive").click(function(){$("#DP_Date_TestDrive").mobiscroll("show")}),$("#DP_Time_TestDrive").mobiscroll().time({display:"modal",mode:"scroller",animate:"swing",dateOrder:"mm-Mddyy",dateFormat:"mm/dd/yy",defaultValue:new Date,steps:{minute:15}}),$("#DP_Time_TestDrive").removeAttr("readonly"))}function SetFinanceApp(){if($("#DIV_Af_ContentMain").length>0||$("#DIV_Af_ContentMain_Simple").length>0){var n=null,t=null;IsMobile==!0?(n={showOnTap:!1,theme:"material",display:"modal",animate:"pop",controls:["date","calendar"],confirmOnTap:!1},t={showOnTap:!1,theme:"material",display:"modal",animate:"pop",controls:["date","calendar"],confirmOnTap:!1,endYear:(new Date).getFullYear()+20}):(n={showOnTap:!1,theme:"material",display:"modal",controls:["date","calendar"],confirmOnTap:!1},t={showOnTap:!1,theme:"material",display:"modal",controls:["date","calendar"],confirmOnTap:!1,endYear:(new Date).getFullYear()+20});$("#cus_bdate").mobiscroll().calendar(n);$("#btnDOB").click(function(){$("#cus_bdate").mobiscroll("show")});$("#cus_bdate").blur(function(){$("#cus_bdate_star").css("display")=="none"&&(this.style.backgroundColor="#FFF")});$("#license_expdate").mobiscroll().calendar(t);$("#btnLicenseExpDate").click(function(){$("#license_expdate").mobiscroll("show")});$("#license_expdate").blur(function(){$("#license_expdate_star").css("display")=="none"&&(this.style.backgroundColor="#FFF")});$("#Autoloan_Date").mobiscroll().calendar(n);$("#Autoloan_Date_Calendar").click(function(){$("#Autoloan_Date").mobiscroll("show")});$("#Autoloan_Date").blur(function(){$("#Autoloan_Date_star").css("display")=="none"&&(this.style.backgroundColor="#FFF")});$("#Bankruptcy_Date").mobiscroll().calendar(n);$("#Bankruptcy_Date_Calender").click(function(){$("#Bankruptcy_Date").mobiscroll("show")});$("#Bankruptcy_Date").blur(function(){$("#Bankruptcy_Date_star").css("display")=="none"&&(this.style.backgroundColor="#FFF")});af$("cus_homephone").value!=""&&formatPhone_onKeyUp(af$("cus_homephone"),af$("cus_country").value);$("#cob_cus_bdate").mobiscroll().calendar(n);$("#cob_btnDOB").click(function(){$("#cob_cus_bdate").mobiscroll("show")});$("#cob_cus_bdate").blur(function(){$("#cob_cus_bdate_star").css("display")=="none"&&(this.style.backgroundColor="#FFF")});$("#cob_license_expdate").mobiscroll().calendar(t);$("#cob_btnLicenseExpDate").click(function(){$("#cob_license_expdate").mobiscroll("show")});$("#cob_license_expdate").blur(function(){$("#cob_license_expdate_star").css("display")=="none"&&(this.style.backgroundColor="#FFF")})}}function SetMobileNavSize(){$("#DWnavigation").css("height",$(window).height()-50+"px");$("#disablingDiv").css("height",$(window).height()+"px")}function SetMobileTopShare(){$("#aIconShare").on("click",function(){blnManagePrivacy==!0?getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&CurrentPN!="finance"&&LoadshareIcons():LoadshareIcons();$("#DWshareDiv").slideToggle()});$("#divIconShare,#DWshareDiv").on("click touchend",function(n){n.stopPropagation()});$("body").on("click touchend",function(){$("#DWshareDiv").slideUp("slow")})}function DWLoadBottomBar(){if(window.location.href.indexOf("secure.autofunds")>-1)GetRecentlyViewedInventoryList_Callback(null);else{var n=new Date;$.ajax({url:"/1/common/bottombar.aspx?tm="+n.getTime(),success:function(n){var t=eval("("+n+")");GetRecentlyViewedInventoryList_Callback(t)}})}}function extractDWPriceValues(n){var i=document.createElement("div"),t,r,u;return i.innerHTML=n,t=i.querySelector(".DWPrice"),r=0,t?(u=t.textContent.trim(),u.replace(/[^0-9.]/g,"")):r}function GetRecentlyViewedInventoryList_Callback(n){var h="",i="",t=0,r="",o,s;if(n!=null){if($("#dw-recently-bar span").html("("+n.length+")"),n.length>0)$("#dw-recently-bar").on("click",function(){DWBottomBarRecentlyViewedClick()});for(n.reverse(),t=0;t<n.length;++t){var u="",f="",e="";n[t].NewOrUsed==!0?(u="<span class='redcol'>New<\/span>",e="New"):e="Used";f=n[t].TrueMileageFlag==!0?"<span class='dw-truemlg_Recently'>* (true mileage unknown)<\/span>":"";n[t].PriceHtml=="0.00"?r="":(r=n[t].PriceHtml,o=extractDWPriceValues(r));r=n[t].PriceHtml.length==0||n[t].PriceHtml=="0.00"||HidePrices==!0?"<span class='callprice_RecentlyViewed' id='callprice_RecentlyViewed_"+t+"'>CALL FOR PRICE! "+DealerPhone+"<\/span>":n[t].PriceHtml;h+='<div class="DWBottomBarPopupImage" id="DWBottomBarPopupImage_'+t+'" onmouseover="DWBottomBarRecentlyShowText('+t+',1);" onmouseout="DWBottomBarRecentlyShowText('+t+',0);" onfocus="DWBottomBarRecentlyShowText('+t+',1);
4" onblur="DWBottomBarRecentlyShowText('+t+',0);"><a target="_blank" href="'+n[t].InventoryDetailURL+'"><img alt="noimage" src="'+n[t].ImagePath.replace("_sm","")+'" onerror="this.onerror=null;this.src=\'/1/images/InvnoImage/noimage.jpg\' " class="DWBottomBarPopupImgTag" /><div class="DWBottomBarPopupText" id="DWBottomBarPopupRecentlyViewedText_'+t+'"><div class="recentitem"><div class="itm">'+u+" "+n[t].Year+" "+n[t].Make+'<\/div><div class="itm">'+n[t].Model+'<\/div><div class="itm">'+formatNumInt(n[t].Miles)+" Miles"+f+'<\/div><div id="spnBottomRecent">'+r+"<\/div><\/div><\/div><\/a><\/div>";af$("hdInvID")?af$("hdInvID").value!=n[t].EncryptedInvID&&(i+='<div class="RV_con" id="RV_con'+t+'"><a target="_blank" href="'+n[t].InventoryDetailURL+'">'+n[t].ImageHtml+'<\/a><span class="recently_head">'+u+" "+n[t].Year+" "+n[t].Make+" "+n[t].Model+'<span class="recently_trim"><br />'+n[t].Trim+'<\/span><span class="recently_mileage"><br />'+formatNumInt(n[t].Miles)+" Miles "+f+"<\/span><\/span>",i+='<input type="hidden" class="DWNadaValueRecently" id="DWNadaValueRecently_'+t+'" value="'+n[t].NadaVechRetailValue+'" />',i+='<input type="hidden" class="DWNadaValueAdjRecently" id="DWNadaValueAdjRecently_'+t+'" value="'+n[t].NadaVechRetailValueAdj+'" />',i+='<input type="hidden" class="DWLotId" id="DWLotId_'+t+'" value="'+n[t].LotId+'" />',i+='<input type="hidden" class="DW_WPprice" id="DW_WPprice_'+t+'" value="'+n[t].WholeSalePrice+'" />',i+='<i class="Recentlyviewed" id="Recentlyviewed_'+t+'">'+r+" <\/i>",i+='<a id="testdriveschedule_'+t+'" href="javascript:void(0)" onclick=\'GE_DW_Set_myPopup_invoked_function("myPopup_Book_TestDrive","center","'+n[t].URLEncodedEncrInvID+'","'+n[t].Vin+'","'+o+'","'+encodeURIComponent(n[t].Make)+'","'+encodeURIComponent(n[t].Model)+'","'+n[t].Year+'","'+encodeURIComponent(n[t].Transmission)+'","'+encodeURIComponent(n[t].BodyType)+'","'+e+'","'+encodeURIComponent(n[t].ExteriorColor)+'")\'><div class="col-item DWTestDrive"><div class="infodrive info">Schedule a test drive<\/div><\/div><\/a><\/div>',i+="<\/div>"):(i+='<div class="RV_con" id="RV_con'+t+'"><a target="_blank" href="'+n[t].InventoryDetailURL+'">'+n[t].ImageHtml+'<\/a><span class="recently_head">'+u+" "+n[t].Year+" "+n[t].Make+" "+n[t].Model+'<span class="recently_trim"><br />'+n[t].Trim+'<\/span><span class="recently_mileage"><br />'+formatNumInt(n[t].Miles)+" Miles "+f+"<\/span><\/span>",i+='<input type="hidden" class="DWNadaValueRecently" id="DWNadaValueRecently_'+t+'" value="'+n[t].NadaVechRetailValue+'" />',i+='<input type="hidden" class="DWNadaValueAdjRecently" id="DWNadaValueAdjRecently_'+t+'" value="'+n[t].NadaVechRetailValueAdj+'" />',i+='<input type="hidden" class="DWLotId" id="DWLotId_'+t+'" value="'+n[t].LotId+'" />',i+='<input type="hidden" class="DW_WPprice" id="DW_WPprice_'+t+'" value="'+n[t].WholeSalePrice+'" />',i+='<i class="Recentlyviewed" id="Recentlyviewed_'+t+'">'+r+" <\/i>",i+='<a id="testdriveschedule_'+t+'" href="javascript:void(0)" onclick=\'GE_DW_Set_myPopup_invoked_function("myPopup_Book_TestDrive","center","'+n[t].URLEncodedEncrInvID+'","'+n[t].Vin+'","'+o+'","'+encodeURIComponent(n[t].Make)+'","'+encodeURIComponent(n[t].Model)+'","'+n[t].Year+'","'+encodeURIComponent(n[t].Transmission)+'","'+encodeURIComponent(n[t].BodyType)+'","'+e+'","'+encodeURIComponent(n[t].ExteriorColor)+'")\'><div class="col-item DWTestDrive"><div class="infodrive info">Schedule a test drive<\/div><\/div><\/a><\/div>',i+="<\/div>")}$("#dw-recently-bar-cont").html(h);$("#dw-recently-bar-outer-cont").on("mouseenter",function(){}).on("mouseleave",function(){$("#dw-recently-bar-outer-cont").css("display")=="block"&&$("#dw-recently-bar-outer-cont").slideUp()})}af$("DWRecentlyViewed")&&(s=!0,typeof showRecentlyViewed!="undefined"&&showRecentlyViewed==!1&&(s=!1),i.length>0&&s==!0?(af$("DWRecentlyViewed").innerHTML=i,SlideRecentVehicles(),$("#DWContentDP .grid-group-item").addClass("griditem"),$("#recently_Viewed_Cov").length>0&&$("#recently_Viewed_Cov").show()):($("#DWRecentViewRight").hide(),$("#DWContentDP").removeClass("contentbgDP"),$("#DWContentDP").addClass("contentbgDP1"),$("#DWContentDP .grid-group-item").removeClass("griditem")));$(window).trigger("resize")}function SlideRecentVehicles(){if(af$("DWRecentlyViewed")){var n=viewportWidth();n>1300?typeof $("#DWRecentlyViewed").data("owlCarousel")!="undefined"&&($("#DWRecentlyViewed").data("owlCarousel").destroy(),$("#DWRecentlyViewed").removeClass("owl-carousel")):$owlRecent=$("#DWRecentlyViewed").owlCarousel(getOptionsRecently())}}function DWBottomBarRecentlyViewedClick(){$("#dw-recently-bar-outer-cont").slideToggle("slow")}function DWBottomBarRecentlyShowText(n,t){af$("DWBottomBarPopupRecentlyViewedText_"+n).style.visibility=t?"visible":"hidden"}function appendTrackingExternalScripts(){if(!_trackingScriptsInjected&&blnManagePrivacy==!0&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&CurrentPN!="finance"){!function(n,t,i,r,u,f,e){n.fbq||(u=n.fbq=function(){u.callMethod?u.callMethod.apply(u,arguments):u.queue.push(arguments)}
4,n._fbq||(n._fbq=u),u.push=u,u.loaded=!0,u.version="2.0",u.queue=[],f=t.createElement(i),f.async=!0,f.src=r,e=t.getElementsByTagName(i)[0],e.parentNode.insertBefore(f,e))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js");fbq("init","171808093741209");for(var n=0;n<arrPixelIDs.length;n++)fbq("init",arrPixelIDs[n]);IsFramePageExTracking==!1&&fbq("track","PageView");SetFaceBookPixelTracking();GoogleTagManagerID.length>0&&IsFramePageExTracking==!1&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push("consent","update",{analytics_storage:"granted",ad_storage:"granted"}),function(n,t,i,r,u){n[r]=n[r]||[];n[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var e=t.getElementsByTagName(i)[0],f=t.createElement(i),o=r!="dataLayer"?"&l="+r:"";f.async=!0;f.src="https://www.googletagmanager.com/gtm.js?id="+u+o;e.parentNode.insertBefore(f,e)}(window,document,"script","dataLayer",GoogleTagManagerID));GoogleTrackingID.length>0&&(function(n,t,i,r,u,f,e){n.GoogleAnalyticsObject=u;n[u]=n[u]||function(){(n[u].q=n[u].q||[]).push(arguments)};n[u].l=1*new Date;f=t.createElement(i);e=t.getElementsByTagName(i)[0];f.async=1;f.src=r;e.parentNode.insertBefore(f,e)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create",GoogleTrackingID,DealerSiteUrl.replace("https","").replace("http","").replace('"www.',"")),ga("require","displayfeatures"),ga("send","pageview"));IsFramePage||_cc_injectFetchScript();typeof SetCustomAppendTrackingExternalScripts!="undefined"&&typeof SetCustomAppendTrackingExternalScripts=="function"&&SetCustomAppendTrackingExternalScripts();IsFramePage||UserWayWidgetCode.length>0&&CurrentPN!="WindowSticker"&&!function(n,t,i){(i=n.createElement(t)).async=!0;i.src="https://cdn.userway.org/widget.js";(n=n.getElementsByTagName(t)[0]).parentNode.insertBefore(i,n)}(document,"script");LoadshareIcons();_trackingScriptsInjected=!0}}function appendExternalScripts(){var n,t;for(!function(n,t,i,r,u,f,e){n.fbq||(u=n.fbq=function(){u.callMethod?u.callMethod.apply(u,arguments):u.queue.push(arguments)},n._fbq||(n._fbq=u),u.push=u,u.loaded=!0,u.version="2.0",u.queue=[],f=t.createElement(i),f.async=!0,f.src=r,e=t.getElementsByTagName(i)[0],e.parentNode.insertBefore(f,e))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js"),fbq("init","171808093741209"),n=0;n<arrPixelIDs.length;n++)fbq("init",arrPixelIDs[n]);IsFramePageExTracking==!1&&fbq("track","PageView");SetFaceBookPixelTracking();GoogleTagManagerID.length>0&&IsFramePageExTracking==!1&&function(n,t,i,r,u){n[r]=n[r]||[];n[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var e=t.getElementsByTagName(i)[0],f=t.createElement(i),o=r!="dataLayer"?"&l="+r:"";f.async=!0;f.src="https://www.googletagmanager.com/gtm.js?id="+u+o;e.parentNode.insertBefore(f,e)}(window,document,"script","dataLayer",GoogleTagManagerID);GoogleTrackingID.length>0&&(function(n,t,i,r,u,f,e){n.GoogleAnalyticsObject=u;n[u]=n[u]||function(){(n[u].q=n[u].q||[]).push(arguments)};n[u].l=1*new Date;f=t.createElement(i);e=t.getElementsByTagName(i)[0];f.async=1;f.src=r;e.parentNode.insertBefore(f,e)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create",GoogleTrackingID,DealerSiteUrl.replace("https","").replace("http","").replace('"www.',"")),ga("require","displayfeatures"),ga("send","pageview"));IsFramePage||(UserWayWidgetCode.length>0&&!function(n,t,i){(i=n.createElement(t)).async=!0;i.src="https://cdn.userway.org/widget.js";(n=n.getElementsByTagName(t)[0]).parentNode.insertBefore(i,n)}(document,"script"),CurrentPN=="repairs"&&DWDealerID==2872?!function(n,t,i){(i=n.createElement(t)).async=!0;i.src="//msportmotor."+CCProductionDomain+"/fetch.min.js?fGEmrdefVOg=";(n=n.getElementsByTagName(t)[0]).parentNode.insertBefore(i,n)}(document,"script"):IsChatActive==!0&&DWDealerID!=4161&&(t="https://"+DealerSiteUrl.replace("http://","").replace("https://","").replace("www.","").replace(".autofunds","").split(".")[0]+"."+CCProductionDomain+"/fetch.min.js?"+ChatEncryptedID+"&v=3",!function(n,i,r){(r=n.createElement(i)).async=!0;r.src=t;(n=n.getElementsByTagName(i)[0]).parentNode.insertBefore(r,n)}(document,"script")));LoadshareIcons()}function _cc_injectFetchScript(){if(CurrentPN=="repairs"&&DWDealerID==2872)!function(n,t,i){(i=n.createElement(t)).async=!0;i.src="//msportmotor."+CCProductionDomain+"/fetch.min.js?fGEmrdefVOg=";(n=n.getElementsByTagName(t)[0]).parentNode.insertBefore(i,n)}(document,"script");else if(IsChatActive==!0&&DWDealerID!=4161){var n="https://"+DealerSiteUrl.replace("http://","").replace("https://","").replace("www.","").replace(".autofunds","").split(".")[0]+"."+CCProductionDomain+"/fetch.min.js?"+ChatEncryptedID+"&v=3";!function(t,i,r){(r=t.createElement(i)).async=!0;r.src=n;(t=t.getElementsByTagName(i)[0]).parentNode.insertBefore(r,t)}(document,"script")}}function _cc_injectFakeCCButton(){var t='<a class="CChasersSMSButtonContent" aria-label="Text Us" id="CChasersSMSButtonContent" href="javascript:void(0)"><div class="CChasersAppChatBtnTextContent"><div class="CChasersAppChatBtnTextContnet"><span class="CChasersBtnTxtIconContnet"><svg class="cc-ico-svg" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 9h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z" /><\/svg><\/span><span class="CChasersBtnTxtIconContnetTxt">Text Us!<\/span><\/div><\/div><\/a>',i='<a class="CChasersChatButtonContent" aria-label="Chat with Us" id="CChasersChatButtonContent" href="javascript:void(0)"><div class="CChasersAppChatBtnTextContent"><div class="CChasersAppChatBtnTextContnet"><span class="CChasersBtnTxtIconContnet"><svg class="cc-ico-svg" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 8h6v2H7zm0 3h10v2H7zm0-6h10v2H7z" /><\/svg><\/span><span class="CChasersBtnTxtIconContnetTxt">Chat with Us!<\/span><\/div><\/div><\/a>',r='<section id="_ChatChasersAppFrameContent"><nav class="cc-btn-row">'+t+"<\/nav><\/section>",u='<section id="_ChatChasersAppFrameContent"><nav class="cc-btn-row">'+i+"<\/nav><\/section>",f='<section id="_ChatChasersAppFrameContent"><nav class="cc-btn-row">'+t+i+"<\/nav><\/section>",n="";IsFramePage||(n=IsCombineChatandText==!0?'<section id="_ChatChasersAppFrameContent"><nav class="cc-btn-row"><a class="CChasersChatTextButtonContent" aria-label="Chat/Text Us" id="CChasersChatTextButtonContent" href="javascript:void(0)"><div class="CChasersAppChatBtnTextContent"><div class="CChasersAppChatBtnTextContnet"><span class="CChasersBtnTxtIconContnet"><svg class="cc-ico-svg" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 8h6v2H7zm0 3h10v2H7zm0-6h10v2H7z" /><\/svg><\/span><span class="CChasersBtnTxtIconContnetTxt">Chat/Text Us<\/span><\/div><\/div><\/a><\/nav><\/section>':IsTextUsOnly==!0?r:IsSubscribedSMSProduct!=!0?u:f,n.length>0&&$("#_ChatChasersAppFrameContent").length==0&&$("body").append(n))}function SetFaceBookPixelTracking(){var n,t;typeof fbq!="undefined"&&(CurrentPN=="viewinventorydetails"&&af$("hdnShowVehicleNotAvilable").value=="False"?(n={content_type:"vehicle",content_name:af$("hdnInventoryYear").value+" "+af$("hdnInventoryMake").value+" "+af$("hdnInventoryModel").value,postal_code:af$("hdnDealerZip").value,country:af$("hdnCountry").value==="USA"?"United States":af$("hdnCountry").value,make:af$("hdnInventoryMake").value,model:af$("hdnInventoryModel").value,year:af$("hdnInventoryYear").value,state_of_vehicle:af$("hdnInventoryNewOrUsed").value==="false"?"Used":"New",exterior_color:af$("hdnExteriorColor").value,transmission:af$("hdnTransmission").value,body_style:af$("hdnBodyType").value,fuel_type:af$("hdnFuelType").value,drivetrain:af$("hdnDriveTrain").value,vin:af$("hdnInventoryVin").value,trim:af$("hdnInventoryTrim").value},n.content_ids=DWDealerID==813?[af$("hdnInventoryVin").value]:[af$("hdnInventoryVin").value],t=0,ShowPrice==!0&&HidePrices==!1&&(t=invShowReducedPrice==!0?invDetailsReducedPrice>0&&invDetailsReducedPrice<invDetailsInternetPrice?invDetailsReducedPrice:invDetailsInternetPrice:invDetailsInternetPrice),t>0&&(n.price=t,n.currency="USD"),DWDealerID==50?(fbq("trackSingle","256628445039980","ViewContent",n),fbq("trackSingle","171808093741209","ViewContent",n)):(fbq("track","Vie
4wContent",n),DWDealerID==4157&&fbq("track","AddToWishlist",n))):CurrentPN=="directions"?DWDealerID==50?(fbq("trackSingle","256628445039980","FindLocation"),fbq("trackSingle","171808093741209","FindLocation")):DWDealerID==4157?(fbq("trackSingle","340556106381781","FindLocation"),fbq("trackSingle","171808093741209","FindLocation")):fbq("track","FindLocation"):CurrentPN=="inventory"&&setFacebookpixelInvlist(),$("#aGoogleLink1").click(function(){DWDealerID==50?(fbq("trackSingle","256628445039980","FindLocation"),fbq("trackSingle","171808093741209","FindLocation")):DWDealerID==4157?(fbq("trackSingle","340556106381781","FindLocation"),fbq("trackSingle","171808093741209","FindLocation")):fbq("track","FindLocation")}),typeof SetCustomFaceBookPixelTracking!="undefined"&&typeof SetCustomFaceBookPixelTracking=="function"&&SetCustomFaceBookPixelTracking())}function setFacebookpixelInvlist(){var a=[],t=[],i=[],r=[],u=[],f=[],e=[],o=[],s=[],h=[],c=[],n,ut;if(objDWInventoryList!=null){for(n=0;n<objDWInventoryList.InvPageList.length;++n){var v="",y="",p="",w="",b="",k="",d="",g="",nt="",tt="",it=objDWInventoryList.InvPageList[n].InternetPrice,l=objDWInventoryList.InvPageList[n].ReducedPrice,ft=objDWInventoryList.InvPageList[n].Make,et=objDWInventoryList.InvPageList[n].Model,ot=objDWInventoryList.InvPageList[n].Year,st=objDWInventoryList.InvPageList[n].ExteriorColor,ht=objDWInventoryList.InvPageList[n].Transmission,ct=objDWInventoryList.InvPageList[n].BodyType,lt=objDWInventoryList.InvPageList[n].FuelType,at=objDWInventoryList.InvPageList[n].DriveTrain,vt=objDWInventoryList.InvPageList[n].Vin,rt="";PriceFin1=l>0&&l<it?l:it;rt=objDWInventoryList.InvPageList[n].NewOrUsed==!0?"New":"Used";h.push(PriceFin1);t.push(ft);i.push(et);s.push(ot);r.push(st);u.push(ht);f.push(ct);e.push(lt);o.push(at);a.push(vt);c.push(rt)}var yt=c.every(function(n){return n==c[0]}
4),pt=h.every(function(n){return n==h[0]}),wt=t.every(function(n){return n==t[0]}),bt=i.every(function(n){return n==i[0]}),kt=s.every(function(n){return n==s[0]}),dt=r.every(function(n){return n==r[0]}),gt=u.every(function(n){return n==u[0]}),ni=f.every(function(n){return n==f[0]}),ti=e.every(function(n){return n==e[0]}),ii=o.every(function(n){return n==o[0]});tt=yt?"'"+c[0]+"'":"";nt=pt?"'"+h[0]+"'":"";v=wt?"'"+t[0]+"'":"";y=bt?"'"+i[0]+"'":"";p=kt?"'"+s[0]+"'":"";w=dt?"'"+r[0]+"'":"";b=gt?"'"+u[0]+"'":"";k=ni?"'"+f[0]+"'":"";d=ti?"'"+e[0]+"'":"";g=ii?"'"+o[0]+"'":"";ut={content_type:"Vehicle Search",content_ids:[...new Set(a)],postal_code:"'"+af$("hdnDealerZip").value+"'",country:"'"+af$("hdnCountry").value+"'",make:v,model:y,year:p,state_of_vehicle:tt,exterior_color:w,transmission:b,body_style:k,fuel_type:d,drivetrain:g,price:nt,currency:"USD"};fbq("track","Search",ut)}}function fireAFTagEvents(){$(".logoparadebg").click(function(){_AF_Tag.send("ButtonClick",{Name:"Logo Parade"})});$(".DWAdvSearch a").click(function(){_AF_Tag.send("ButtonClick",{Name:"Advanced Search"})});$(".MakesDivision h2 a").click(function(){_AF_Tag.send("ButtonClick",{Name:"Home Make"})});$(".MakesDivision h3 a").click(function(){_AF_Tag.send("ButtonClick",{Name:"Home Model"})});typeof UrlEncodedInventoryEncryptID!="undefined"&&(_AF_Tag.send("PageLoad",{AFInventoryID:UrlEncodedInventoryEncryptID}),$("#Tab_Galary").click(function(){_AF_Tag.send("ButtonClick",{Name:"Gallery"})}),$("#Tab_CarFax").click(function(){_AF_Tag.send("ButtonClick",{Name:"Vehicle History Reports"})}),$("#tab_specification").click(function(){_AF_Tag.send("ButtonClick",{Name:"Specifications"})}),$("#dwOverview").click(function(){_AF_Tag.send("ButtonClick",{Name:"EPA Rating"})}),$("#LI_Additional_Feature").click(function(){_AF_Tag.send("ButtonClick",{Name:"Additional Features"})}),$("#dwSimilarCars").click(function(){_AF_Tag.send("ButtonClick",{Name:"Similar cars"})}),$("#Tab_Edmunds_Reviews").click(function(){_AF_Tag.send("ButtonClick",{Name:"Editorial Reviews"})}),$("#Tab_Owner_Reviews").click(function(){_AF_Tag.send("ButtonClick",{Name:"Owner Reviews"})}))}function getBrowserAndVersion(){var o=navigator.appVersion,n=navigator.userAgent,r=navigator.appName,i=""+parseFloat(navigator.appVersion),f=parseInt(navigator.appVersion,10),e,t,u;return n.indexOf("Edge")>-1||n.indexOf("Edg")>-1?(r="Edge",i=""):(t=n.indexOf("OPR/"))!=-1?(r="Opera",i=n.substring(t+4)):(t=n.indexOf("Opera"))!=-1?(r="Opera",i=n.substring(t+6),(t=n.indexOf("Version"))!=-1&&(i=n.substring(t+8))):(t=n.indexOf("MSIE"))!=-1||(t=n.indexOf("Trident"))!=-1?(r="Microsoft Internet Explorer",i=n.substring(t+5)):(t=n.indexOf("Chrome"))!=-1?(r="Chrome",i=n.substring(t+7)):(t=n.indexOf("Safari"))!=-1?(r="Safari",i=n.substring(t+7),(t=n.indexOf("Version"))!=-1&&(i=n.substring(t+8))):(t=n.indexOf("Firefox"))!=-1?(r="Firefox",i=n.substring(t+8)):(e=n.lastIndexOf(" ")+1)<(t=n.lastIndexOf("/"))&&(r=n.substring(e,t),i=n.substring(t+1),r.toLowerCase()==r.toUpperCase()&&(r=navigator.appName)),(u=i.indexOf(";"))!=-1&&(i=i.substring(0,u)),(u=i.indexOf(" "))!=-1&&(i=i.substring(0,u)),f=parseInt(""+i,10),isNaN(f)&&(i=""+parseFloat(navigator.appVersion),f=parseInt(navigator.appVersion,10)),{browser:r,fullVersion:i}}function clog(n){if(isInDebugMode){var i=getBrowserAndVersion(),t=i.browser;t.match(/safari/gi)||t.match(/Microsoft Internet Explorer/gi)||t.match(/Edge/gi)?console.log(n):console.log.apply(this,arguments)}}function unFormatPhone(n){return n.replace("(","").replace(")","").replace("-","").replace(" ","")}function SetSearchBoxEvents(){$("#dw-searchbox").length>0&&($("#dw-searchbox").autoComplete({minChars:2,cache:!1,delay:1,menuClass:"vehSearchResults",source:function(n,t){$.getJSON("/PredictiveTyper.aspx",{type:"1",param:n,dealerID:DWDealerID,extra:""},function(n){t(n)})}}),$("#dw-searchbox").keypress(function(n){var t=n.keyCode?n.keyCode:n.which;t=="13"&&SearchDWInventory()}))}function SetCustomSearchBoxEvents(){$("#dw-custom-searchbox").length>0&&($("#dw-custom-searchbox").autoComplete({minChars:2,cache:!1,delay:1,menuClass:"vehSearchResults",source:function(n,t){$.getJSON("/PredictiveTyper.aspx",{type:"1",param:n,dealerID:DWDealerID,extra:""},function(n){t(n)})}}),$("#dw-custom-searchbox").keypress(function(n){var t=n.keyCode?n.keyCode:n.which;t=="13"&&CustomSearchDWInventory()}))}function SetlogoParadeTop(){if($("#divlogoParade.canadjusttop").length>0&&$(window).width()>767&&IsMobile==!1){$("#divlogoParade").addClass("lp-2");var n=$("#dw-topbar-container").height();$(window).bind("scroll",function(){$(window).scrollTop()>n?af$("divlogoParade")!=null&&($("#divlogoParade").addClass("lp-1"),$("#divlogoParade").removeClass("lp-2"),$("body").removeClass("logo-parade-adj-2"),$("body").addClass("logo-parade-adj-1")):af$("divlogoParade")!=null&&($("#divlogoParade").addClass("lp-2"),$("#divlogoParade").removeClass("lp-1"),$("body").removeClass("logo-parade-adj-1"),$("body").addClass("logo-parade-adj-2"))})}}function setLandingPagePopup(){if(blnShowLandingPagePopup==!0&&CurrentPN=="index"){var n="{intDealerID: "+DWDealerID+" }";JqueryAjaxCall("POST","GetLandingPagePopupContent",n)}}function getLandingPagePopupContent_Callback(n){if(n!=null&&n.length>0&&n[0]!==""&&n[1]!==""){var t='<div class="modal fade" id="PopupMainLandingPage" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog popupmainlandingDiv"><div class="modal-content"><div class="modal-header" id="popup-header-landing"><button type="button" class="close" data-dismiss="modal" aria-hidden="true" tabindex="-1">x<\/button>
4<h4>'+n[0]+'<\/h4><\/div><div class="modal-body" id="popup-body-landing" ><div>'+n[1]+"<\/div><\/div><\/div><\/div><\/div>";af$("body_index")!=null&&$("#body_index").prepend(t);setTimeout(function(){openLandingPagePopup()},100)}}function openLandingPagePopup(){GE_DW_Set_myPopup_invoked_function("PopupMainLandingPage");setTimeout(function(){$("#PopupMainLandingPage").modal("hide")},3e4)}function SetAffixHeader(){if(typeof isVDP=="undefined"||isVDP!=!0){var n=$("#dw-topbar-container").outerHeight();$("#dw-affix-container").affix({offset:{top:n}})}}function triggerCustomFunction(n){var t=!0;typeof affixTopAppendHtml!="undefined"&&(t=affixTopAppendHtml);n=="affix"?($("body").removeClass("affix-top-dw"),$("body").addClass("affix-dw"),htmlSocial=$(window).width()>1300?"<div class='dw-scroll-fb'>"+$("#dw-append-fb").html()+"<\/div>":"",t==!0&&($(".dw-container-3").length>0?$("#dw-searchbar-append").length>0&&$("#dw-searchbar-c").appendTo("#dw-scroll-header-2"):($("#dw-scroll-header").html("<div class='dw-scroll-c dw-table'><div class='dw-row'><div class='dw-scroll-address dw-cell'>"+$("#dw-append-address").html()+"<\/div><div class='dw-scroll-logo dw-cell'><div class='dw-logo-fb'><div class='dw-scroll-logo-sub'>"+$("#dw-logo").html()+"<\/div>"+htmlSocial+"<\/div><\/div><div class='dw-scroll-dealerinfo dw-cell'>"+$("#dw-append-dealerinfo").html()+"<\/div><\/div><\/div>"),$("#dw-searchbar-append").length>0&&$("#dw-searchbar-c").appendTo("#dw-scroll-header")),SetUserWayWidget())):n=="affix-top"&&($("body").removeClass("affix-dw"),$("body").addClass("affix-top-dw"),t==!0&&($("#dw-searchbar-append").length>0&&$("#dw-searchbar-c").appendTo("#dw-searchbar-append"),SetUserWayWidget()))}function SetUserWayWidget(){$(window).width()>767&&IsMobile==!1&&setTimeout(function(){var n=0,t;$("#dw-searchbar-c").length>0&&($("#dw-searchbar-c").position().top>0?n=$("#dw-searchbar-c").position().top:$("#dw-searchbar-c").offset().top>0&&(n=$("#dw-searchbar-c").offset().top));t=setInterval(function(){$(".userway_dark").length>0&&($(".userway_dark").css("top",n+4),clearInterval(t))},500)},100)}function SearchDWInventory(){var n=$("#dw-searchbox").val(),t;n=n.replace(/ +/g," ");logInventorySearchPhrase(n);trim(n).length>0?(t=DealerSiteUrl+"/inventory.aspx?S="+n,window.location=t):AlertModel("Please enter Search value")}function CustomSearchDWInventory(){var n=$("#dw-custom-searchbox").val(),t;n=n.replace(/ +/g," ");logInventorySearchPhrase(n);trim(n).length>0?(t=DealerSiteUrl+"/inventory.aspx?S="+n,window.location=t):AlertModel("Please enter Search value")}function logInventorySearchPhrase(n){if(!GV_IFTS_AutoComp_Status&&n.length!==0){var t='{ strAppID: "WB", strFeatureID: "IFTS", strAddlInfo: "'+n+'" ,intDealerID: '+DWDealerID+" }";JqueryAjaxCall("POST","LogInventorySearchPhrase",t);GV_IFTS_AutoComp_Status=!0}}function GE_DW_Set_myPopup_invoked_function(n,t,i,r,u,f,e,o,s,h,c,l){typeof i=="undefined"&&(i=0);typeof r=="undefined"&&(r="");typeof u=="undefined"&&(u="");typeof f=="undefined"&&(f="");typeof e=="undefined"&&(e="");typeof o=="undefined"&&(o="");typeof s=="undefined"&&(s="");typeof h=="undefined"&&(h="");typeof c=="undefined"&&(c="");typeof l=="undefined"&&(l="");$("#"+n).modal("show");n=="myPopup_Book_TestDrive"?DWDealerID==1?$("#myPopup_Book_TestDrive_Body").html('<iframe id="iframe_myPopup_Shedule_Appointment" src="'+DealerSiteUrl+"/2/common/ContactUsPages/ScheduleTestDrive.aspx?DWSource=TD&invid="+i+"&vin="+r+htmlGCLID+htmlUTM+"&Price="+u+"&make="+encodeURIComponent(f)+"&model="+encodeURIComponent(e)+"&year="+o+"&transmission="+encodeURIComponent(s)+"&body="+encodeURIComponent(h)+"&stateofvehicle="+c+"&exteriorcolor="+encodeURIComponent(l)+'&content_name=Schedule Test Drive" frameborder="0" scrolling="no" style="width:100%; height:610px;"><\/iframe>'):ContactReferralSetting==0?$("#myPopup_Book_TestDrive_Body").html('<iframe id="iframe_myPopup_Shedule_Appointment" src="'+DealerSiteUrl+"/2/common/ContactUsPages/ScheduleTestDrive.aspx?DWSource=TD&invid="+i+"&vin="+r+htmlGCLID+htmlUTM+"&Price="+u+"&make="+encodeURIComponent(f)+"&model="+encodeURIComponent(e)+"&year="+o+"&transmission="+encodeURIComponent(s)+"&body="+encodeURIComponent(h)+"&stateofvehicle="+c+"&exteriorcolor="+encodeURIComponent(l)+'&content_name=Schedule Test Drive" frameborder="0" scrolling="no" style="width:100%; height:535px;"><\/iframe>'):$("#myPopup_Book_TestDrive_Body").html('<iframe id="iframe_myPopup_Shedule_Appointment" src="'+DealerSiteUrl+"/2/common/ContactUsPages/ScheduleTestDrive.aspx?DWSource=TD&invid="+i+"&vin="+r+htmlGCLID+htmlUTM+"&Price="+u+"&make="+encodeURIComponent(f)+"&model="+encodeURIComponent(e)+"&year="+o+"&transmission="+encodeURIComponent(s)+"&body="+encodeURIComponent(h)+"&stateofvehicle="+c+"&exteriorcolor="+encodeURIComponent(l)+'&content_name=Schedule Test Drive" frameborder="0" scrolling="no" style="width:100%; height:830px !important;"><\/iframe>'):n=="myPopup_Shedule_Appointment"?DWDealerID==1?$("#myPopup_Shedule_Appointment_Body").html('<iframe id="iframe_myPopup_Shedule_Appointment" src="'+DealerSiteUrl+"/2/common/ContactUsPages/ScheduleTestDrive.aspx?DWSource=TD&invid="+i+"&vin="+r+htmlGCLID+htmlUTM+'&content_name=Schedule Appointment" frameborder="0" scrolling="no" style="width:100%; height:610px;"><\/iframe>'):ContactReferralSetting==0?$("#myPopup_Shedule_Appointment_Body").html('<iframe id="iframe_myPopup_Shedule_Appointment" src="'+DealerSiteUrl+"/2/common/ContactUsPages/ScheduleTestDrive.aspx?DWSource=AP&inv
4id="+i+"&vin="+r+htmlGCLID+htmlUTM+'&content_name=Schedule Appointment" frameborder="0" scrolling="no" style="width:100%; height:535px;"><\/iframe>'):$("#myPopup_Shedule_Appointment_Body").html('<iframe id="iframe_myPopup_Shedule_Appointment" src="'+DealerSiteUrl+"/2/common/ContactUsPages/ScheduleTestDrive.aspx?DWSource=AP&invid="+i+"&vin="+r+htmlGCLID+htmlUTM+'&content_name=Schedule Appointment" frameborder="0" scrolling="no" style="width:100%; height:890px !important;"><\/iframe>'):n=="myPopup_Shedule_Service_Appointment"?DWDealerID==1?$("#myPopup_Shedule_Service_Appointment_Body").html('<iframe id="iframe_myPopup_Shedule_Appointment" src="'+DealerSiteUrl+"/2/common/ContactUsPages/ScheduleTestDrive.aspx?DWSource=TD&invid="+i+"&vin="+r+htmlGCLID+htmlUTM+'&content_name=Schedule Service Appointment" frameborder="0" scrolling="no" style="width:100%; height:610px;"><\/iframe>'):ContactReferralSetting==0?$("#myPopup_Shedule_Service_Appointment_Body").html('<iframe id="iframe_myPopup_Shedule_Appointment" src="'+DealerSiteUrl+"/2/common/ContactUsPages/ScheduleTestDrive.aspx?DWSource=SRAP&invid="+i+"&vin="+r+htmlGCLID+htmlUTM+'&content_name=Schedule Service Appointment" frameborder="0" scrolling="no" style="width:100%; height:535px;"><\/iframe>'):$("#myPopup_Shedule_Service_Appointment_Body").html('<iframe id="iframe_myPopup_Shedule_Appointment" src="'+DealerSiteUrl+"/2/common/ContactUsPages/ScheduleTestDrive.aspx?DWSource=SRAP&invid="+i+"&vin="+r+htmlGCLID+htmlUTM+'&content_name=Schedule Service Appointment" frameborder="0" scrolling="no" style="width:100%; height:830px !important;"><\/iframe>'):n=="myPopup_Shedule_Lease_Appointment"?ContactReferralSetting==0?$("#myPopup_Shedule_Lease_Appointment_Body").html('<iframe id="iframe_myPopup_Shedule_Appointment" src="'+DealerSiteUrl+"/2/common/ContactUsPages/ScheduleTestDrive.aspx?DWSource=LA&invid="+i+"&vin="+r+htmlGCLID+htmlUTM+'&content_name=Shedule Lease Appointment" frameborder="0" scrolling="no" style="width:100%; height:535px;"><\/iframe>'):$("#myPopup_Shedule_Lease_Appointment_Body").html('<iframe id="iframe_myPopup_Shedule_Appointment" src="'+DealerSiteUrl+"/2/common/ContactUsPages/ScheduleTestDrive.aspx?DWSource=LA&invid="+i+"&vin="+r+htmlGCLID+htmlUTM+'&content_name=Shedule Lease Appointment" frameborder="0" scrolling="no" style="width:100%; height:830px !important;"><\/iframe>'):n=="myPopup_SendToFriend"?$("#myPopup_SendToFriend_body").html('<iframe src="'+DealerSiteUrl+"/2/common/ContactUsPages/MailFriend.aspx?vin="+r+" &Price="+u+"&make="+encodeURIComponent(f)+"&model="+encodeURIComponent(e)+"&year="+o+"&transmission="+encodeURIComponent(s)+"&body="+encodeURIComponent(h)+"&stateofvehicle="+c+"&exteriorcolor="+encodeURIComponent(l)+'" frameborder="0" scrolling="no" style="width:100%; height:540px;"><\/iframe>'):n=="myPopup_Testimonial_Show"?$("#myPopup_Testimonial_Body").html('<iframe id="DWTestimonialFrame" onload="LoadTestimonialiFrame()" src="'+DealerSiteUrl+'/2/includes/write_reviews.aspx" frameborder="0" scrolling="no" style="width:100%; height:620px;"><\/iframe>'):n=="myPopup_Refer_Friend"?$("#myPopup_Refer_Friend_Body").html('<iframe src="'+DealerSiteUrl+'/2/common/ContactUsPages/ReferFriend.aspx" frameborder="0" scrolling="no" style="width:100%; height:705px;"><\/iframe>'):n=="myPopup_Make_Offer"?ContactReferralSetting==0?$("#myPopup_Make_Offer_Body_Cnt").html('<iframe id="iframe_Make_Offer" src="'+DealerSiteUrl+"/2/common/ContactUsPages/DetailsPageOffer.aspx?invid="+i+"&vin="+r+htmlGCLID+htmlUTM+"&Price="+u+"&make="+encodeURIComponent(f)+"&model="+encodeURIComponent(e)+"&year="+o+"&transmission="+encodeURIComponent(s)+"&body="+encodeURIComponent(h)+"&stateofvehicle="+c+"&exteriorcolor="+encodeURIComponent(l)+'" frameborder="0" scrolling="no" style="width:100%; height:400px;"><\/iframe>'):$("#myPopup_Make_Offer_Body_Cnt").html('<iframe id="iframe_Make_Offer" src="'+DealerSiteUrl+"/2/common/ContactUsPages/DetailsPageOffer.aspx?invid="+i+"&vin="+r+htmlGCLID+htmlUTM+"&Price="+u+"&make="+encodeURIComponent(f)+"&model="+encodeURIComponent(e)+"&year="+o+"&transmission="+encodeURIComponent(s)+"&body="+encodeURIComponent(h)+"&stateofvehicle="+c+"&exteriorcolor="+encodeURIComponent(l)+'" frameborder="0" scrolling="no" style="width:100%; height:680px !important;"><\/iframe>'):n=="myPopup_Request_ConfirmAvail"&&(ContactReferralSetting==0?$("#myPopup_ConfirmAvail_body").html('<iframe id="iframe_Confirm_Availability" src="'+DealerSiteUrl+"/2/common/ContactUsPages/DetailsPageContactUs.aspx?invid="+i+"&Pos=InvList&vin="+r+htmlGCLID+htmlUTM+'" frameborder="0" scrolling="no" style="width:100%; height:400px;"><\/iframe>'):$("#myPopup_ConfirmAvail_body").html('<iframe id="iframe_Confirm_Availability" src="'+DealerSiteUrl+"/2/common/ContactUsPages/DetailsPageContactUs.aspx?invid="+i+"&Pos=InvList&vin="+r+htmlGCLID+htmlUTM+'" frameborder="0" scrolling="no" style="width:100%; height:470px;"><\/iframe>'));IsMobile==!0&&navigator.userAgent.match(/iPhone/i)&&$(window).scrollTop(0);setTimeout(function(){IsMobile==!0&&n!="PopupDisclosure"?$("#"+n+" .modal
4-dialog .modal-content").css({top:0}):typeof t=="undefined"?$("#"+n+" .modal-dialog .modal-content").css({top:($(window).height()-$("#"+n+" .modal-dialog .modal-content").outerHeight()-94)/2}):t=="center"&&$("#"+n+" .modal-dialog .modal-content").css({top:($(window).height()-$("#"+n+" .modal-dialog .modal-content").outerHeight()-94)/2})},300)}function LoadTestimonialiFrame(){typeof LoadCustomTestimonialiFrame!="undefined"&&typeof LoadCustomTestimonialiFrame=="function"&&LoadCustomTestimonialiFrame()}function makesListing(){var i,u,e,o,n,t;if(typeof doMakeListSort=="undefined"||doMakeListSort!=!1){if(MM_temp_makes_list!=null){for(resize_cols=MM_colsNum,resize_rows=MM_rowsTemp,MM_colsNum=checkWidth(),MM_colsTemp=MM_colsNum,MM_rows=Math.ceil(parseInt(MM_temp_makes_list.length)/parseInt(MM_colsNum)),MM_rowsTemp=MM_rows,MM_temp=MultiDimensionalArray(MM_rows,MM_colsNum),MM_SwapDiv=MultiDimensionalArray(MM_rows,MM_colsNum),n=0;n<MM_rowsTemp;n++)for(t=0;t<MM_colsTemp;t++)if(MM_m<MM_temp_makes_list.length)if(MM_temp_makes_list[MM_m].innerHTML!="")MM_temp[n][t]=MM_temp_makes_list[MM_m],MM_m++;else{i="";$(".MakesDivision").length>0?i=$(".MakesDivision"):$(".MakesDiv").length>0&&(i=$(".MakesDiv"));var r=0,f=0,s=0;for(u=0;u<resize_rows;u++)f<i.length&&(i[r]!=null&&(MM_temp_makes_list[f]=i[r],f++),r=r+(resize_cols+1),u+1>=resize_rows&&(u=-1,r=s+1,s++));MM_temp[n][t]=MM_temp_makes_list[MM_m];MM_m++}for(e=MM_temp[MM_rows-1],o=0,n=0;n<e.length;n++)e[n]!=""&&o++;for(MM_m=0,c=0,k=0,n=0;n<=MM_colsNum;n++)for(t=0;t<MM_rows;t++)c<MM_rowsTemp&&MM_temp[c][k]!=""&&(MM_SwapDiv[t][n]=MM_temp[c][k],k++,k==MM_colsTemp&&(k=0,c++),MM_SwapDiv[t][n]==MM_SwapDiv[MM_rows-1][o-1]&&(MM_colsNum=MM_colsNum-1,MM_rows=MM_rows-1));for(n=0;n<MM_rowsTemp;n++)for(t=0;t<MM_colsTemp;t++)MM_m<MM_temp_makes_list.length&&MM_SwapDiv[n][t]!=""&&(MM_tempDiv+=MM_SwapDiv[n][t].outerHTML);MM_tempDiv!=""&&($("#dw-make-model").length>0&&$("#dw-make-model").html(MM_tempDiv),$("#divMakeListing").length>0&&$("#divMakeListing").html(MM_tempDiv),MM_tempDiv="")}autoFillMultiSelectMakes()}}function checkWidth(){var n=0,t=window.innerWidth;return t<1e3?n=4:t>=1e3&&t<=1117?n=5:t>1117&&(n=6),n}function MultiDimensionalArray(n,t){for(var r,u=new Array(n),i=0;i<n;i++)for(u[i]=new Array(t),r=0;r<t;r++)u[i][r]="";return u}function openFinancePage(n,t,i){arguments.length>2&&t.length==0&&(i="&Inventorys="+i,n=n+i);t=="_blank"?window.open(n):window.location=n}function getQuerystring(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+n+"=([^&#]*)",r=new RegExp(i),t=r.exec(window.location.href);return t==null?undefined:unescape(t[1])}function getOptionsRecently(){var n=0,t=0,i,r;return IsMobile==!0?(n=2e3,t=500):(n=3e3,t=4e3),i=4,r=$("#recently_Viewed_Cov").innerWidth(),i=parseInt(r/317),{autoPlay:n,items:i,loop:!0,stopOnHover:!0,pullDrag:!1,freeDrag:!1,slideSpeed:t}}function fireOnClickEvent(n,t){t.keyCode==13&&$(n).trigger("click")}function ResizeFeaturedCars(){if($("#DWFeaturedCars").length>0){var r=document.getElementById("DWFeaturedCars"),t=parseFloat(window.getComputedStyle(r).width),n=317,u=parseInt(t/n);n=t/u-.11;$(".itemfeatured").outerWidth(n);var f=$(".itemfeatured img.imgClsCom").innerWidth(),e=f/900,i=675*e;$(".photo").height(i);$(".cssoverlay").height(i)}}function MakeVerticalAlignCenter(n,t,i){var u=$("#"+n).height(),f=$("#"+t).height(),r=(u-f-i)/2;r>0&&$("#"+t).css("margin-top",r)}function LoadshareIcons(){var n,t,i;!function(n,t,i){i=n.createElement(t);i.src="//static.addtoany.com/menu/page.js";(n=n.getElementsByTagName(t)[0]).parentNode.insertBefore(i,n)}(document,"script");n=af$("SMSTag");n&&n.getAttribute("href")&&(t=n.getAttribute("href"),i=af$("hdnSMSTag"),i&&(i.value=t),$(".a2a_button_sms_custom").attr("href",t))}function ValidatePhoneNumber(n,t){var i=!0;return!isPhoneFormat(n,1)&&n.length>0&&(i=!1),i?"":t}function displayErrorSpan(n,t){t.length>0?($(n).parent().find("span.required").text(""),$(n).parent().attr("class","group")):n.className=="email_inputfield"||n.className=="phn_inputfield"?ContactFieldSetting==0?($(n).parent().find("span.required").text("*Required"),$(n).parent().attr("class","group-req"),$("input.phn_inputfield").parent().find("span.required").text(""),$("input.phn_inputfield").parent().attr("class","group")):ContactFieldSetting==1?($(n).parent().find("span.required").text("*Required"),$(n).parent().attr("class","group-req"),$("input.email_inputfield").parent().find("span.required").text(""),$("input.email_inputfield").parent().attr("class","group")):ContactFieldSetting==2?($(n).parent().find("span.required").text(""),$(n).parent().attr("class","group")):ContactFieldSetting==3&&($(n).parent().find("span.required").text("*Required"),$(n).parent().attr("class","group-req")):n.className=="referal_inputfield"?ContactReferralSetting==2?($(n).parent().find("span.required").text("*Required"),$(n).parent().attr("class","group-req"),$("select.referal_inputfield").parent().find("span.required").text(""),$("select.referal_inputfield").parent().attr("class","group"),n=="input#TB_HowHeared_TestDrive.referal_inputfield"!=null&&($("input.referal_inputfield").parent().find("span.required").text(""),$("input.referal_inputfield").parent().attr("class","group"))):($(n).parent().find("span.required").text("*Required"),$(n).parent().attr("class","group-req")):($(n).parent().find("span.required").text("*Required"),$(n).parent().attr("class","group-req"))}
4function validate_email(n){if(/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i.test(n)==!1)return!1}function IsEmail(n){return/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i.test(n)==!1?!1:!0}function SelectAddOption(n,t,i){var r=document.createElement("option");r.text=typeof i=="undefined"?t:i;r.value=t;try{n.add(r,null)}catch(u){n.add(r)}}function validateCheckAvailability(){var t,n,h,c,g,r,y,i,s;if(addGclid(),$("input#TB_Website_Hide").length>0&&$("input#TB_Website_Hide").val().length!=0)return!1;if(t="",n=trim(af$("txtFirstName").value),n==""?(t+="Please enter My first name\n",$("#divFirstName span.required").html("*Required"),$("#divFirstName").attr("class","group-req"),$("#txtFirstName").attr("aria-invalid","true")):($("#divFirstName span.required").html(""),$("#divFirstName").attr("class","group"),$("#txtFirstName").attr("aria-invalid","false")),n=trim(af$("txtLastName").value),n==""?(t+="Please enter Last name\n",$("#divLastName span.required").html("*Required"),$("#divLastName").attr("class","group-req"),$("#txtLastName").attr("aria-invalid","true")):($("#divLastName span.required").html(""),$("#divLastName").attr("class","group"),$("#txtLastName").attr("aria-invalid","false")),h=trim(af$("txtFirstName").value),c=trim(af$("txtLastName").value),h.length>0&&c.length>0&&h==c?(t+="You cannot repeat entries in First name and Last name fields\n",$("#divFirstName span.required").html("*Required"),$("#divFirstName").attr("class","group-req"),$("#txtFirstName").attr("aria-invalid","true"),$("#divLastName span.required").html("*Required"),$("#divLastName").attr("class","group-req"),$("#txtLastName").attr("aria-invalid","true")):($("#divFirstName span.required").html(""),$("#divFirstName").attr("class","group"),$("#txtFirstName").attr("aria-invalid","false"),$("#divLastName span.required").html(""),$("#divLastName").attr("class","group"),$("#txtLastName").attr("aria-invalid","false")),ContactFieldSetting==0?(n=trim(af$("txtEmail").value),n==""?(t+="Please enter Email\n",$("#divEmail span.required").html("*Required"),$("#divEmail").attr("class","group-req"),$("#txtEmail").attr("aria-invalid","true")):validate_email(trim(af$("txtEmail").value))==!1?(t+="Invalid email\n",$("#divEmail span.required").html("*Invalid"),$("#divEmail").attr("class","group-req"),$("#txtEmail").attr("aria-invalid","true")):($("#divEmail span.required").html(""),$("#divEmail").attr("class","group"),$("#txtEmail").attr("aria-invalid","false"))):ContactFieldSetting==1?(n=trim(af$("txtPhone").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#txtPhone").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#txtPhone").attr("aria-invalid","false"))):ContactFieldSetting==3&&(n=trim(af$("txtEmail").value),n==""?(t+="Please enter Email\n",$("#divEmail span.required").html("*Required"),$("#divEmail").attr("class","group-req"),$("#txtEmail").attr("aria-invalid","true")):validate_email(trim(af$("txtEmail").value))==!1?(t+="Invalid email\n",$("#divEmail span.required").html("*Invalid"),$("#divEmail").attr("class","group-req"),$("#txtEmail").attr("aria-invalid","true")):($("#divEmail span.required").html(""),$("#divEmail").attr("class","group"),$("#txtEmail").attr("aria-invalid","false")),n=trim(af$("txtPhone").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#txtPhone").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#txtPhone").attr("aria-invalid","false"))),t+=ValidatePhoneNumber(trim(af$("txtPhone").value),"Phone is not valid\n"),ContactReferralSetting==1&&(n=trim(af$("txt_Referral").value),n==""?(t+="How did you hear about us?\n",$("#divtxt_Referral span.required").html("*Required"),$("#divtxt_Referral").attr("class","group-req"),$("#txt_Referral").attr("aria-invalid","true")):($("#divtxt_Referral span.required").html(""),$("#divtxt_Referral").attr("class","group"),$("#txt_Referral").attr("aria-invalid","false"),n=trim(af$("txt_HowHeared").value),n==""?(t+=trim(af$("txt_HowHeared_label").innerHTML)+"\n",$("#divtxt_HowHeared span.required").html("*Required"),$("#divtxt_HowHeared").attr("class","group-req"),$("#txt_HowHeared").attr("aria-invalid","true")):($("#divtxt_HowHeared span.required").html(""),$("#divtxt_HowHeared").attr("class","group"),$("#txt_HowHeared").attr("aria-invalid","false")))),(DWDealerID==2792||DWDealerID==5169)&&(n=trim(af$("TB_location").value),n==""?(t+="Please enter Location\n",$("#divTB_location span.required").html("*Required"),$("#divTB_location").attr("class","group-req"),$("#TB_location").attr("aria-invalid","true")):($("#divTB_location span.required").html(""),$("#divTB_location").attr("class","group"),$("#TB_location").attr("aria-invalid","false"))),(DWDealerID==654||DWDealerID==2687)&&(n=trim(af$("txtMessage").value),n==""?(t+="Please enter Message\n",$("#divMessage span.required").html("*Required"),$("#divMessage").attr("class","group-req"),$("#txtMessage").attr("aria-invalid","true")):($("#divMessage span.required").html(""),$("#divMessage").attr("class","group"),$("#txtMessage").attr("aria-invalid","false"))),DWDealerID==4816||DWDealerID==621||DWDealerID==2399||DWDealerID==1028||DWDealerID==4867||DWDealerID==5012||DWDealerID==4984||DWDealerID==5097||DWDealerID==4494||DWDealerID==5451||DWDealerID==4144||DWDealerID==5445||DWDealerID==3631){var p=af$("customCheckbox"),e=af$("
4customCheckboxsec"),w=p&&p.checked,nt=e&&e.checked;(!e||w&&nt)&&(e||w)||(t+=" You must agree to the terms of this form. Please check the box to continue.\n")}if(DWDealerID==4952){var l=$("#customCheckbox").is(":checked"),a=$("#customCheckbox1").is(":checked"),v=$("#customCheckbox2").is(":checked");l||a||v||(t+="Please select at least one SMS preference to continue.\n");var i="",u="",b="",k="",l=af$("customCheckbox"),a=af$("customCheckbox1"),v=af$("customCheckbox2"),d=af$("customCheckbox3");v&&v.checked?b="This customer has not consented to receive SMS":(l&&l.checked&&(i="Customer agree to receive marketing/promotional SMS messages from Speedway Motors"),a&&a.checked&&(u="Customer agree to receive informational/transactional SMS messages from Speedway Motors"));d&&d.checked&&(k="Customer like to receive email promotions, surveys, and offers from Speedway Motors");t===""&&af$("txtMessage")&&(af$("txtMessage").value+="\n"+i+"\n"+u+"\n"+b+"\n"+k+"\n"+`${dateStr} at ${timeStr}`)}if(DWDealerID==5127||DWDealerID==5293||DWDealerID==4044||DWDealerID==5501||DWDealerID==5461||DWDealerID==4872||DWDealerID==5205||DWDealerID==5031){var f=af$("customCheckbox")&&af$("customCheckbox").checked,o=af$("customCheckboxsec")&&af$("customCheckboxsec").checked,i="",u="";(f||o)&&(n=trim(af$("txtPhone").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#txtPhone").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#txtPhone").attr("aria-invalid","false")));f&&(i="Customer consented to receive marketing text messages on the phone number provided.");o&&(u="Customer consented to receive non marketing messages, including updates and news, on the phone number provided.");(i||u)&&af$("TA_AddMessage")&&(r=af$("TA_AddMessage").value||"",r=r.replace(/\n?Customer consented to receive marketing text messages on the phone number provided\./g,""),r=r.replace(/\n?Customer consented to receive non marketing messages, including updates and news, on the phone number provided\./g,""),i&&(r+="\n"+i),u&&(r+="\n"+u),af$("TA_AddMessage").value=r.trimStart())}if(g=[5031,5205,4872,5461,5293,5127,2687,2792,654,5169,2792,4188,4934,4816,621,4434,2399,1028,5076,4867,4653,5012,4984,5097,4990,4494,5451,4144,5445,3631,4952,4044,5501],g.indexOf(Number(DWDealerID))===-1){var f=af$("customCheckbox")&&af$("customCheckbox").checked,o=af$("customCheckboxsec")&&af$("customCheckboxsec").checked,i="",u="";f||(t+="You must agree to the term of this form, please check the box to continue.\n");(f||o)&&(n=trim(af$("txtPhone").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#txtPhone").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#txtPhone").attr("aria-invalid","false")));f&&(i="Customer consented to receive marketing text messages on the phone number provided.");o&&(u="Customer consented to receive non marketing messages, including updates and news, on the phone number provided.");(i||u)&&af$("TA_AddMessage")&&(r=af$("TA_AddMessage").value||"",r=r.replace(/\n?Customer consented to receive marketing text messages on the phone number provided\./g,""),r=r.replace(/\n?Customer consented to receive non marketing messages, including updates and news, on the phone number provided\./g,""),i&&(r+="\n"+i),u&&(r+="\n"+u),af$("TA_AddMessage").value=r.trimStart())}blnShowCaptchaCode==!0&&(n=trim(af$("txtMSCaptchaCode").value),n==""?(t+="Please enter Code\n",$("#divMSCaptchaCode span.required").html("*Required"),$("#divMSCaptchaCode").attr("class","group-req"),$("#txtMSCaptchaCode").attr("aria-invalid","true")):($("#divMSCaptchaCode span.required").html(""),$("#divMSCaptchaCode").attr("class","group"),$("#txtMSCaptchaCode").attr("aria-invalid","false")));t==""?(blnManagePrivacy==!0?(getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&typeof fbq!="undefined"&&fbq("track","Lead",{content_category:"Lead",content_ids:getQuerystring("vin"),content_name:"Check availability",make:getQuerystring("make"),model:getQuerystring("model"),year:getQuerystring("year"),vin:getQuerystring("vin"),transmission:getQuerystring("transmission"),body_style:getQuerystring("body"),state_of_vehicle:getQuerystring("stateofvehicle"),exterior_color:getQuerystring("exteriorcolor"),price:getQuerystring("Price"),currency:"USD"}),DWDealerID==1299&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("txtEmail").value}}))):(typeof fbq!="undefined"&&fbq("track","Lead",{content_category:"Lead",content_ids:getQuerystring("vin"),content_name:"Check availability",make:getQuerystring("make"),model:getQuerystring("model"),year:getQuerystring("year"),vin:getQuerystring("vin"),transmission:getQuerystring("transmission"),body_style:getQuerystring("body"),state_of_vehicle:getQuerystring("stateofvehicle"),exterior_color:getQuerystring("exteriorcolor"),price:getQuerystring("Price"),currency:"USD"}),DWDealerID==1299&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("txtEmail").value}}))),parent.$("#hdnSpinCarLeadReportUrl").length>0&&(y=parent.$("#hdnSpinCarLeadReportUrl").val(),y.length>0&&(af$("txtMessage").value=af$("txtMessage").value+"<br/>This customer interacted with SpinCar. To view their interaction on your website, click <a target='_blank' href='"+y+"'>here<\/a>.")),parent.$("#hdnAdditionalQuote").length>0&&(af$("txtMessage").value+="\n"+parent.$("#hdnAdditionalQuote").val()),(DWDealerID==2792||DWDealerID==5169)&&(af$("txtMessage").value+="\n Location: "+af$("TB_location").value),typeof validateCheckAvailabilityCustom!="undefined"&&typeof validateCheckAvailabilityCustom=="function"&&validateCheckAvailabilityCustom(),DWDealerID==4726&&(i="This customer has not consented to receive SMS",s=af$("customCheckbox"),i=s.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("txtMessage").value+="\n"+i+"\n"+`${dateStr} at ${timeStr}`),DWDealerID==4950&&(i="This customer has not consented to receive SMS",s=af$("customCheckbox"),i=s.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("txtMessage").value+="\n"+i+"\n"+`${dateStr} at ${timeStr}`),$("#recaptcha.g-recaptcha").length==0?($("#checkavailability").removeAttr("onclick"),document.forms[0].submit()):grecaptcha.execute()):AlertModel(t)}function validateOfferContact(){var t,n,h,c,v,i,r,s;if($("input#TB_Website_Hide").length>0&&$("input#TB_Website_Hide").val().length!=0)return!1;if(t="",n=trim(af$("txtFirstName").value),n==""?(t+="Please enter My first name\n",$("#divFirstName span.required").html("*Required"),$("#divFirstName").attr("class","group-req"),$("#txtFirstName").attr("aria-invalid","true")):($("#divFirstName span.required").html(""),$("#divFirstName").attr("class","group"),$("#txtFirstName").attr("aria-invalid","false")),n=trim(af$("txtLastName").value),n==""?(t+="Please enter Last name\n",$("#divLastName span.required").html("*Required"),$("#div
4LastName").attr("class","group-req"),$("#txtFirstName").attr("aria-invalid","true")):($("#divLastName span.required").html(""),$("#divLastName").attr("class","group"),$("#txtFirstName").attr("aria-invalid","false")),h=trim(af$("txtFirstName").value),c=trim(af$("txtLastName").value),h.length>0&&c.length>0&&h==c?(t+="You cannot repeat entries in First name and Last name fields\n",$("#divFirstName span.required").html("*Required"),$("#divFirstName").attr("class","group-req"),$("#txtFirstName").attr("aria-invalid","true"),$("#divLastName span.required").html("*Required"),$("#divLastName").attr("class","group-req"),$("#txtLastName").attr("aria-invalid","true")):($("#divFirstName span.required").html(""),$("#divFirstName").attr("class","group"),$("#txtFirstName").attr("aria-invalid","false"),$("#divLastName span.required").html(""),$("#divLastName").attr("class","group"),$("#txtLastName").attr("aria-invalid","false")),ContactFieldSetting==0?(n=trim(af$("txtEmail").value),n==""?(t+="Please enter Email\n",$("#divEmail span.required").html("*Required"),$("#divEmail").attr("class","group-req"),$("#txtEmail").attr("aria-invalid","true")):validate_email(trim(af$("txtEmail").value))==!1?(t+="Invalid email\n",$("#divEmail span.required").html("*Invalid"),$("#divEmail").attr("class","group-req"),$("#txtEmail").attr("aria-invalid","true")):($("#divEmail span.required").html(""),$("#divEmail").attr("class","group"),$("#txtEmail").attr("aria-invalid","false"))):ContactFieldSetting==1?(n=trim(af$("txtPhone").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#txtPhone").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#txtPhone").attr("aria-invalid","false"))):ContactFieldSetting==3&&(n=trim(af$("txtEmail").value),n==""?(t+="Please enter Email\n",$("#divEmail span.required").html("*Required"),$("#divEmail").attr("class","group-req"),$("#txtEmail").attr("aria-invalid","true")):validate_email(trim(af$("txtEmail").value))==!1?(t+="Invalid email\n",$("#divEmail span.required").html("*Invalid"),$("#divEmail").attr("class","group-req"),$("#txtEmail").attr("aria-invalid","true")):($("#divEmail span.required").html(""),$("#divEmail").attr("class","group"),$("#txtEmail").attr("aria-invalid","false")),n=trim(af$("txtPhone").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#txtPhone").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#txtPhone").attr("aria-invalid","false"))),t+=ValidatePhoneNumber(trim(af$("txtPhone").value),"Phone is not valid\n"),ContactReferralSetting==1&&(n=trim(af$("TB_Referral_Offer").value),n==""?(t+="How did you hear about us?\n",$("#divReferal_offer span.required").html("*Required"),$("#divReferal_offer").attr("class","group-req"),$("#TB_Referral_Offer").attr("aria-invalid","true")):($("#divReferal_offer span.required").html(""),$("#divReferal_offer").attr("class","group"),$("#TB_Referral_Offer").attr("aria-invalid","false"),n=trim(af$("TB_HowHeared_Offer").value),n==""?(t+=trim(af$("HowHeared_label_Offer").innerHTML)+"\n",$("#divHowHeared_Offer span.required").html("*Required"),$("#divHowHeared_Offer").attr("class","group-req"),$("#TB_HowHeared_Offer").attr("aria-invalid","true")):($("#divHowHeared_Offer span.required").html(""),$("#divHowHeared_Offer").attr("class","group"),$("#TB_HowHeared_Offer").attr("aria-invalid","false")))),DWDealerID==4816||DWDealerID==621||DWDealerID==2399||DWDealerID==4952||DWDealerID==1028||DWDealerID==4867||DWDealerID==5012||DWDealerID==4984||DWDealerID==5097||DWDealerID==4494||DWDealerID==5451||DWDealerID==4144||DWDealerID==5445||DWDealerID==3631){var l=af$("customCheckbox"),e=af$("customCheckboxsec"),a=l&&l.checked,y=e&&e.checked;(!e||a&&y)&&(e||a)||(t+=" You must agree to the terms of this form. Please check the box to continue.\n")}if(DWDealerID==5127||DWDealerID==5293||DWDealerID==4044||DWDealerID==5501||DWDealerID==5461||DWDealerID==4872||DWDealerID==5205||DWDealerID==5031){var f=af$("customCheckbox")&&af$("customCheckbox").checked,o=af$("customCheckboxsec")&&af$("customCheckboxsec").checked,r="",u="";(f||o)&&(n=trim(af$("txtPhone").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#txtPhone").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#txtPhone").attr("aria-invalid","false")));f&&(r="Customer consented to receive marketing text messages on the phone number provided.");o&&(u="Customer consented to receive non marketing messages, including updates and news, on the phone number provided.");(r||u)&&af$("AddtxtOffer")&&(i=af$("AddtxtOffer").value||"",i=i.replace(/\n?Customer consented to receive marketing text messages on the phone number provided\./g,""),i=i.replace(/\n?Customer consented to receive non marketing messages, including updates and news, on the phone number provided\./g,""),r&&(i+="\n"+r),u&&(i+="\n"+u),af$("AddtxtOffer").value=i.trimStart())}if(v=[5031,5205,4872,5461,5293,5127,2792,654,5169,2792,4188,4934,4816,621,4434,2399,1028,5076,4867,4653,5012,4984,5097,4990,4494,5451,4144,5445,3631,4952,4044,5501],v.indexOf(Number(DWDealerID))===-1){var f=af$("customCheckbox")&&af$("customCheckbox").checked,o=af$("customCheckboxsec")&&af$("customCheckboxsec").checked,r="",u="";f||(t+="You must agree to the term of this form, please check the box to continue.\n");(f||o)&&(n=trim(af$("txtPhone").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#txtPhone").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#txtPhone").attr("aria-invalid","false")));f&&(r="Customer consented to receive marketing text messages on the phone number provided.");o&&(u="Customer consented to receive non marketing messages, including updates and news, on the phone number provided.");(r||u)&&af$("AddtxtOffer")&&(i=af$("AddtxtOffer").value||"",i=i.replace(/\n?Customer consented to receive marketing text messages on the phone number provided\./g,""),i=i.replace(/\n?Customer consented to receive non marketing messages, including updates and news, on the phone number provided\./g,""),r&&(i+="\n"+r),u&&(i+="\n"+u),af$("AddtxtOffer").value=i.trimStart())}blnShowCaptchaCode==!0&&(n=trim(af$("txtMSCaptchaCode").value),n==""?(t+="Please enter Code\n",$("#divMSCaptchaCode span.required").html("*Required"),$("#divMSCaptchaCode").attr("class","group-req"),$("#txtMSCaptchaCode").attr("aria-invalid","true")):($("#divMSCaptchaCode span.required").html(""),$("#divMSCaptchaCode").attr("class","group"),$("#txtMSCaptchaCode").attr("aria-invalid","false")));t==""?(blnManagePrivacy==!0?(getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&typeof fbq!="undefined"&&fbq("track","Lead",{content_category:"Lead",content_ids:getQuerystring("vin"),content_name:"Make an offer",make:getQuerystring("make"),model:getQuerystring("model"),year:getQuerystring("year"),vin:getQuerystring("vin"),transmission:getQuerystring("transmission"),body_style:getQuerystring("body"),state_of_vehicle:getQuerystring("stateofvehicle"),exterior_color:getQuerystring("exteriorcolor"),price:getQuerystring("Price"),currency:"USD"}),DWDealerID==1299&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("txtEmail").value}}))):(typeof fbq!="undefined"&&fbq("track","Lead",{content_category:"Lead",content_ids:getQuerystring("vin"),content_name:"Make an offer",make:getQuerystring("make"),model:getQuerystring("model"),year:getQuerystring("year"),vin:getQuerystring("vin"),transmission:getQuerystring("transmission"),body_style:getQuerystring("body"),state_of_vehicle:getQuerystring("stateofvehicle"),exterior_color:getQuerystring("exteriorcolor"),price:getQuerystring("Price"),currency:"USD"}),DWDealerID==1299&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("txtEmail").value}}))),DWDealerID==4726&&(r="This customer has not consented to receive SMS",s=af$("customCheckbox"),r=s.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("txtOffer").value+="\n"+r+"\n"+`${dateStr} at ${timeStr}`),DWDealerID==4950&&(r="This customer has not consented to receive SMS",s=af$("customCheckbox"),r=s.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("txtOffer").value+="\n"+r+"\n"+`${dateStr} at ${timeStr}`),$("#recaptcha.g-recaptcha").length==0?($("#btnSend").removeAttr("onclick"),document.forms[0].submit()):grecaptcha.execute()):AlertModel(t)}function submitSendToFriend(){var t,r,u,n;if($("input#TB_Website_Hide").length>0&&$("input#TB_Website_Hide").val().length!=0)return!1;if(t="",trim(af$("TB_FName_Friend").value).length==0?(t="Please enter My first name\n",$("#divTB_FName_Friend span.required").html("*Required"),$("#divTB_FName_Friend").attr("class","group-req"),$("#TB_FName_Friend").attr("aria-invalid","true")):($("#divTB_FName_Friend span.required").html(""),$("#divTB_FName_Friend").attr("class","group"),$("#TB_FName_Friend").attr("aria-invalid","false")),trim(af$("TB_LName_Friend").value).length==0?(t+="Please enter Last name\n",$("#divTB_LName_Friend span.required").html("*Required"),$("#divTB_LName_Friend").attr("class","group-req"),$("#TB_LName_Friend").attr("aria-invalid","true")):($("#divTB_LName_Friend span.required").html(""),$("#divTB_LName_Friend").attr("class","group"),$("#TB_LName_Friend").attr("aria-invalid","false")),r=trim(af$("TB_FName_Friend").value),u=trim(af$("TB_LName_Friend").value),r.length>0&&u.length>0&&r==u?(t+="You cannot repeat entries in First name and Last name fields\n",$("#divTB_FName_Friend span.required").html("*Required"),$("#divTB_FName_Friend").attr("class","group-req"),$("#TB_FName_Friend").attr("aria-invalid","true"),$("#divTB_LName_Friend span.required").html("*Required"),$("#divTB_LName_Friend").attr("class","group-req"),$("#TB_LName_Friend").attr("aria-invalid","true")):($("#divTB_FName_Friend span.required").html(""),$("#divTB_FName_Friend").attr("class","group"),$("#TB_FName_Friend").attr("aria-invalid","false"),$("#divTB_LName_Friend span.required").html(""),$("#divTB_LName_Friend").attr("class","group"),$("#TB_LName_Friend").attr("aria-invalid","false")),n=trim(af$("TB_Email_Friend").value),n==""?(t+="Please enter My email\n",$("#divTB_Email_Friend span.required").html("*Required"),$("#divTB_Email_Friend").attr("class","group-req"),$("#TB_Email_Friend").attr("aria-invalid","true")):isValidEmail(n)==!1?(t+="Invalid My email\n",$("#divTB_Email_Friend span.required").html("*Invalid"),$("#divTB_Email_Friend").attr("class","group-req"),$("#TB_Email_Friend").attr("aria-invalid","true")):($("#divTB_Email_Friend span.required").html(""),$("#divTB_Email_Friend").attr("class","group"),$("#TB_Email_Friend").attr("aria-invalid","false")),n=trim(af$("TB_Email_Friend1").value),n==""?(t+="Please enter First friend's email\n",$("#divTB_Email_Friend1 span.required").html("*Required"),$("#divTB_Email_Friend1").attr("class","group-req"),$("#TB_Email_Friend1").attr("aria-invalid","true")):isValidEmail(n)==!1?(t+="Invalid First friend's email\n",$("#divTB_Email_Friend1 span.required").html("*Invalid"),$("#divTB_Email_Friend1").attr("class","group-req"),$("#TB_Email_Friend1").attr("aria-invalid","true")):($("#divTB_Email_Friend1 span.required").html(""),$("#divTB_Email_Friend1").attr("class","group"),$("#TB_Email_Friend1").attr("aria-invalid","false")),n=trim(af$("TB_Email_Friend2").value),n!=""&&isValidEmail(n)==!1?(t+="Invalid Second friend's email\n",$("#divTB_Email_Friend2 span.required").html("*Required"),$("#divTB_Email_Friend2").attr("class","group-req"),$("#TB_Email_Friend2").attr("aria-invalid","true")):($("#divTB_Email_Friend2 span.required").html(""),$("#divTB_Email_Friend2").attr("class","group"),$("#TB_Email_Friend2").attr("aria-invalid","false")),n=trim(af$("TB_Email_Friend3").value),n!=""&&isValidEmail(n)==!1?(t+="Invalid Third friend's email\n",$("#divTB_Email_Friend3 span.required").html("*Required"),$("#divTB_Email_Friend3").attr("class","group-req"),$("#TB_Email_Friend3").attr("aria-invalid","true")):($("#divTB_Email_Friend3 span.required").html(""),$("#divTB_Email_Friend3").attr("class","group"),$("#TB_Email_Friend3").attr("aria-invalid","false")),DWDealerID==654&&(n=trim(af$("TB_Message_Friend").value),n==""?(t+="Please enter Message\n",$("#divTB_Message_Friend span.required").html("*Required"),$("#divTB_Message_Friend").attr("class","group-req"),$("#TB_Message_Friend").attr("aria-invalid","true")):($("#divTB_Message_Friend span.required").html(""),$("#divTB_Message_Friend").attr("class","group"),$("#TB_Message_Friend").attr("aria-invalid","false"))),DWDealerID==4816||DWDealerID==621||DWDealerID==2399||DWDealerID==1028||DWDealerID==4867||DWDealerID==4984||DWDealerID==5097){var f=af$("customCheckbox"),i=af$("customCheckboxsec"),e=f&&f.checked,o=i&&i.checked;(!i||e&&o)&&(i||e)||(t+=" You must agree to the terms of this form. Please check the box to continue.\n")}blnShowCaptchaCode==!0&&(n=trim(af$("txtMSCaptchaCode").value),n==""?(t+="Please enter Code\n",$("#divMSCaptchaCode span.required").html("*Required"),$("#divMSCaptchaCode").attr("class","group-req"),$("#txtMSCaptchaCode").attr("aria-invalid","true")):($("#divMSCaptchaCode span.required").html(""),$("#divMSCaptchaCode").attr("class","group"),$("#txtMSCaptchaCode").attr("aria-invalid","false")));t==""?(blnManagePrivacy==!0?(DWDealerID==3538&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&typeof fbq!="undefined"&&fbq("track","Lead",{content_category:"Lead",content_ids:getQuerystring("vin"),content_name:"Send to friend",make:getQuerystring("make"),model:getQuerystring("model"),year:getQuerystring("year"),vin:getQuerystring("vin"),transmission:getQuerystring("transmission"),body_style:getQuerystring("body"),state_of_vehicle:getQuerystring("stateofvehicle"),exterior_color:getQuerystring("exteriorcolor"),price:getQuerystring("Price"),currency:"USD"}),DWDealerID==1299&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TB_Email_Friend").value}}))):(DWDealerID==3538&&typeof fbq!="undefined"&&fbq("track","Lead",{content_category:"Lead",content_ids:getQuerystring("vin"),content_name:"Send to friend",make:getQuerystring("make"),model:getQuerystring("model"),year:getQuerystring("year"),vin:getQuerystring("vin"),transmission:getQuerystring("transmission"),body_style:getQuerystring("body"),state_of_vehicle:getQuerystring("stateofvehicle"),exterior_color:getQuerystring("exteriorcolor"),price:getQuerystring("Price"),currency:"USD"}),DWDealerID==1299&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TB_Email_Friend").value}}))),$("#btnSend").removeAttr("onclick"),document.forms[0].submit()):AlertModel(t)}function validateScheduleTestDrive(){var t,n,h,c,d,r,i,s;if($("input#TB_Website_Hide").length>0&&$("input#TB_Website_Hide").val().length!=0)return!1;if(t="",n=trim(af$("TB_FName_TestDrive").value),n==""?(t+="Please enter My first name\n",$("#divFirstName span.required").html("*Required"),$("#divFirstName").attr("class","group-req"),$("#TB_FName_TestDrive").attr("aria-invalid","true")):($("#divFirstName span.required").html(""),$("#divFirstName").attr("class","group"),$("#TB_FName_TestDrive").attr("aria-invalid","false")),n=trim(af$("TB_LName_TestDrive").value),n==""?(t+="Please enter Last name\n",$("#divLastName span.required").html("*Required"),$("#div
4LastName").attr("class","group-req"),$("#TB_LName_TestDrive").attr("aria-invalid","true")):($("#divLastName span.required").html(""),$("#divLastName").attr("class","group"),$("#TB_LName_TestDrive").attr("aria-invalid","false")),h=trim(af$("TB_FName_TestDrive").value),c=trim(af$("TB_LName_TestDrive").value),h.length>0&&c.length>0&&h==c?(t+="You cannot repeat entries in First name and Last name fields\n",$("#divFirstName span.required").html("*Required"),$("#divFirstName").attr("class","group-req"),$("#divLastName span.required").html("*Required"),$("#divLastName").attr("class","group-req"),$("#TB_LName_TestDrive").attr("aria-invalid","true"),$("#TB_FName_TestDrive").attr("aria-invalid","true")):($("#divFirstName span.required").html(""),$("#divFirstName").attr("class","group"),$("#TB_FName_TestDrive").attr("aria-invalid","false"),$("#divLastName span.required").html(""),$("#divLastName").attr("class","group"),$("#TB_LName_TestDrive").attr("aria-invalid","false")),ContactFieldSetting==0?(n=trim(af$("TB_Email_TestDrive").value),n==""?(t+="Please enter Email\n",$("#divEmail span.required").html("*Required"),$("#divEmail").attr("class","group-req"),$("#TB_Email_TestDrive").attr("aria-invalid","true")):validate_email(trim(af$("TB_Email_TestDrive").value))==!1?(t+="Invalid email\n",$("#divEmail span.required").html("*Invalid"),$("#divEmail").attr("class","group-req"),$("#TB_Email_TestDrive").attr("aria-invalid","true")):($("#divEmail span.required").html(""),$("#divEmail").attr("class","group"),$("#TB_Email_TestDrive").attr("aria-invalid","false"))):ContactFieldSetting==1?(n=trim(af$("TB_Phone_TestDrive").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#TB_Phone_TestDrive").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#TB_Phone_TestDrive").attr("aria-invalid","false"))):ContactFieldSetting==3&&(n=trim(af$("TB_Email_TestDrive").value),n==""?(t+="Please enter Email\n",$("#divEmail span.required").html("*Required"),$("#divEmail").attr("class","group-req"),$("#TB_Email_TestDrive").attr("aria-invalid","true")):validate_email(trim(af$("TB_Email_TestDrive").value))==!1?(t+="Invalid email\n",$("#divEmail span.required").html("*Invalid"),$("#divEmail").attr("class","group-req"),$("#TB_Email_TestDrive").attr("aria-invalid","true")):($("#divEmail span.required").html(""),$("#divEmail").attr("class","group"),$("#TB_Email_TestDrive").attr("aria-invalid","false")),n=trim(af$("TB_Phone_TestDrive").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#TB_Phone_TestDrive").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#TB_Phone_TestDrive").attr("aria-invalid","false"))),t+=ValidatePhoneNumber(trim(af$("TB_Phone_TestDrive").value),"Phone is not valid\n"),n=trim(af$("DP_Date_TestDrive").value),n==""?(t+="Please enter Preferred date\n",$("#divDate span.required").html("*Required"),$("#divDate").attr("class","group-req"),$("#DP_Date_TestDrive").attr("aria-invalid","true")):($("#divDate span.required").html(""),$("#divDate").attr("class","group"),$("#DP_Date_TestDrive").attr("aria-invalid","false")),n=trim(af$("DP_Time_TestDrive").value),n==""?(t+="Please enter Preferred time\n",$("#divTime span.required").html("*Required"),$("#divTime").attr("class","group-req"),$("#DP_Time_TestDrive").attr("aria-invalid","true")):($("#divTime span.required").html(""),$("#divTime").attr("class","group"),$("#DP_Time_TestDrive").attr("aria-invalid","false")),ContactReferralSetting==1&&(n=trim(af$("TB_Referral_TestDrive").value),n==""?(t+="How did you hear about us?\n",$("#divReferal span.required").html("*Required"),$("#divReferal").attr("class","group-req"),$("#TB_Referral_TestDrive").attr("aria-invalid","true")):($("#divReferal span.required").html(""),$("#divReferal").attr("class","group"),$("#TB_Referral_TestDrive").attr("aria-invalid","false"),n=trim(af$("TB_HowHeared_TestDrive").value),n==""?(t+=trim(af$("HowHeared_label").innerHTML)+"\n",$("#divHowHeared span.required").html("*Required"),$("#divHowHeared").attr("class","group-req"),$("#TB_HowHeared_TestDrive").attr("aria-invalid","true")):($("#divHowHeared span.required").html(""),$("#divHowHeared").attr("class","group"),$("#TB_HowHeared_TestDrive").attr("aria-invalid","false")))),DWDealerID==654&&(n=trim(af$("TB_Reason_TestDrive").value),n==""?(t+="Please enter Message\n",$("#divMessage span.required").html("*Required"),$("#divMessage").attr("class","group-req"),$("#TB_Reason_TestDrive").attr("aria-invalid","true")):($("#divMessage span.required").html(""),$("#divMessage").attr("class","group"),$("#TB_Reason_TestDrive").attr("aria-invalid","false"))),(DWDealerID==2792||DWDealerID==5169)&&(n=trim(af$("TB_location").value),n==""?(t+="Please enter Location\n",$("#divTB_location span.required").html("*Required"),$("#divTB_location").attr("class","group-req"),$("#TB_location").attr("aria-invalid","true")):($("#divTB_location span.required").html(""),$("#divTB_location").attr("class","group"),$("#TB_location").attr("aria-invalid","false"))),DWDealerID==4816||DWDealerID==621||DWDealerID==2399||DWDealerID==1028||DWDealerID==4867||DWDealerID==5012||DWDealerID==4984||DWDealerID==5097||DWDealerID==4494||DWDealerID==5451||DWDealerID==4144||DWDealerID==5445||DWDealerID==3631){var y=af$("customCheckbox"),e=af$("
4customCheckboxsec"),p=y&&y.checked,g=e&&e.checked;(!e||p&&g)&&(e||p)||(t+=" You must agree to the terms of this form. Please check the box to continue.\n")}if(DWDealerID==4952){var l=$("#customCheckbox").is(":checked"),a=$("#customCheckbox1").is(":checked"),v=$("#customCheckbox2").is(":checked");l||a||v||(t+="Please select at least one SMS preference to continue.\n");var i="",u="",w="",b="",l=af$("customCheckbox"),a=af$("customCheckbox1"),v=af$("customCheckbox2"),k=af$("customCheckbox3");v&&v.checked?w="This customer has not consented to receive SMS":(l&&l.checked&&(i="Customer agree to receive marketing/promotional SMS messages from Speedway Motors"),a&&a.checked&&(u="Customer agree to receive informational/transactional SMS messages from Speedway Motors"));k&&k.checked&&(b="Customer like to receive email promotions, surveys, and offers from Speedway Motors");t===""&&af$("TB_Reason_TestDrive")&&(af$("TB_Reason_TestDrive").value+="\n"+i+"\n"+u+"\n"+w+"\n"+b+"\n"+`${dateStr} at ${timeStr}`)}if(DWDealerID==5127||DWDealerID==5293||DWDealerID==4044||DWDealerID==5501||DWDealerID==5461||DWDealerID==4872||DWDealerID==5205||DWDealerID==5031){var f=af$("customCheckbox")&&af$("customCheckbox").checked,o=af$("customCheckboxsec")&&af$("customCheckboxsec").checked,i="",u="";(f||o)&&(n=trim(af$("TB_Phone_TestDrive").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#TB_Phone_TestDrive").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#TB_Phone_TestDrive").attr("aria-invalid","false")));f&&(i="Customer consented to receive marketing text messages on the phone number provided.");o&&(u="Customer consented to receive non marketing messages, including updates and news, on the phone number provided.");(i||u)&&af$("TB_AdditionalReason_TestDrive")&&(r=af$("TB_AdditionalReason_TestDrive").value||"",r=r.replace(/\n?Customer consented to receive marketing text messages on the phone number provided\./g,""),r=r.replace(/\n?Customer consented to receive non marketing messages, including updates and news, on the phone number provided\./g,""),i&&(r+="\n"+i),u&&(r+="\n"+u),af$("TB_AdditionalReason_TestDrive").value=r.trimStart())}if(d=[5031,5205,4872,5461,5293,5127,2792,654,5169,2792,4188,4934,4816,621,4434,2399,1028,5076,4867,4653,5012,4984,5097,4990,4494,5451,4144,5445,3631,4952,4044,5501],d.indexOf(Number(DWDealerID))===-1){var f=af$("customCheckbox")&&af$("customCheckbox").checked,o=af$("customCheckboxsec")&&af$("customCheckboxsec").checked,i="",u="";f||(t+="You must agree to the term of this form, please check the box to continue.\n");(f||o)&&(n=trim(af$("TB_Phone_TestDrive").value),n==""?(t+="Please enter Phone\n",$("#divPhone span.required").html("*Required"),$("#divPhone").attr("class","group-req"),$("#TB_Phone_TestDrive").attr("aria-invalid","true")):($("#divPhone span.required").html(""),$("#divPhone").attr("class","group"),$("#TB_Phone_TestDrive").attr("aria-invalid","false")));f&&(i="Customer consented to receive marketing text messages on the phone number provided.");o&&(u="Customer consented to receive non marketing messages, including updates and news, on the phone number provided.");(i||u)&&af$("TB_AdditionalReason_TestDrive")&&(r=af$("TB_AdditionalReason_TestDrive").value||"",r=r.replace(/\n?Customer consented to receive marketing text messages on the phone number provided\./g,""),r=r.replace(/\n?Customer consented to receive non marketing messages, including updates and news, on the phone number provided\./g,""),i&&(r+="\n"+i),u&&(r+="\n"+u),af$("TB_AdditionalReason_TestDrive").value=r.trimStart())}blnShowCaptchaCode==!0&&(n=trim(af$("txtMSCaptchaCode").value),n==""?(t+="Please enter Code\n",$("#divMSCaptchaCode span.required").html("*Required"),$("#divMSCaptchaCode").attr("class","group-req"),$("#txtMSCaptchaCode").attr("aria-invalid","true")):($("#divMSCaptchaCode span.required").html(""),$("#divMSCaptchaCode").attr("class","group"),$("#txtMSCaptchaCode").attr("aria-invalid","false")));t==""?(blnManagePrivacy==!0?(getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&typeof fbq!="undefined"&&(fbq("track","Schedule",{content_category:"Lead",content_ids:getQuerystring("vin"),content_name:getQuerystring("content_name"),make:getQuerystring("make"),model:getQuerystring("model"),year:getQuerystring("year"),vin:getQuerystring("vin"),transmission:getQuerystring("transmission"),body_style:getQuerystring("body"),state_of_vehicle:getQuerystring("stateofvehicle"),exterior_color:getQuerystring("exteriorcolor"),price:getQuerystring("Price"),currency:"USD"}),fbq("track","Lead",{content_category:"Lead",content_ids:getQuerystring("vin"),content_name:getQuerystring("content_name"),make:getQuerystring("make"),model:getQuerystring("model"),year:getQuerystring("year"),vin:getQuerystring("vin"),transmission:getQuerystring("transmission"),body_style:getQuerystring("body"),state_of_vehicle:getQuerystring("stateofvehicle"),exterior_color:getQuerystring("exteriorcolor"),price:getQuerystring("Price"),currency:"USD"})),DWDealerID==1299&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TB_Email_TestDrive").value}}))):(typeof fbq!="undefined"&&(fbq("track","Schedule",{content_category:"Lead",content_ids:getQuerystring("vin"),content_name:getQuerystring("content_name"),make:getQuerystring("make"),model:getQuerystring("model"),year:getQuerystring("year"),vin:getQuerystring("vin"),transmission:getQuerystring("transmission"),body_style:getQuerystring("body"),state_of_vehicle:getQuerystring("stateofvehicle"),exterior_color:getQuerystring("exteriorcolor"),price:getQuerystring("Price"),currency:"USD"}),fbq("track","Lead",{content_category:"Lead",content_ids:getQuerystring("vin"),content_name:getQuerystring("content_name"),make:getQuerystring("make"),model:getQuerystring("model"),year:getQuerystring("year"),vin:getQuerystring("vin"),transmission:getQuerystring("transmission"),body_style:getQuerystring("body"),state_of_vehicle:getQuerystring("stateofvehicle"),exterior_color:getQuerystring("exteriorcolor"),price:getQuerystring("Price"),currency:"USD"})),DWDealerID==1299&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TB_Email_TestDrive").value}}))),(DWDealerID==2792||DWDealerID==5169)&&(af$("TB_Reason_TestDrive").value+="\n Location: "+af$("TB_location").value),DWDealerID==4726&&(i="This customer has not consented to receive SMS",s=af$("customCheckbox"),i=s.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("TB_Reason_TestDrive").value+="\n"+i+"\n"+`${dateStr} at ${timeStr}`),DWDealerID==4950&&(i="This customer has not consented to receive SMS",s=af$("customCheckbox"),i=s.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("TB_Reason_TestDrive").value+="\n"+i+"\n"+`${dateStr} at ${timeStr}`),$("#testdrivesend").removeAttr("onclick"),document.forms[0].submit()):AlertModel(t)}function display_Referral(){af$("TB_HowHeared_TestDrive").value="";af$("TB_Referral_TestDrive").value.length>0?(af$("divHowHeared").style.display="block",window.parent.document.getElementById("iframe_myPopup_Shedule_Appointment").style.setProperty("height","890px","important"),af$("TB_Referral_TestDrive").value=="Referral"?af$("HowHeared_label").innerHTML="Name of Referrer":af$("TB_Referral_TestDrive").value=="Past customer"?af$("HowHeared_label").innerHTML="Name of salesperson":af$("TB_Referral_TestDrive").value=="Website"?af$("HowHeared_label").innerHTML="Which website":af$("TB_Referral_TestDrive").value=="Other"&&(af$("HowHeared_label").innerHTML="Please describe")):(af$("divHowHeared").style.display="none",window.parent.document.getElementById("iframe_myPopup_Shedule_Appointment").style.setProperty("height","830px","important"))}function submitReferAFriend(){var n,t,i,u;if($("input#TB_Website_Hide").length>0&&$("input#TB_Website_Hide").val().length!=0)return!1;if(n="",trim(af$("TB_FName").value).length==0?(n="Please enter My first name\n",$("#divTB_FName span.required").html("*Required"),$("#divTB_FName").attr("class","group-req"),$("#TB_FName").attr("aria-invalid","true")):($("#divTB_FName span.required").html(""),$("#divTB_FName").attr("class","group"),$("#TB_FName").attr("aria-invalid","false")),trim(af$("TB_LName").value).length==0?(n+="Please enter Last name\n",$("#divTB_LName span.required").html("*Required"),$("#divTB_LName").attr("class","group-req"),$("#TB_LName").attr("aria-invalid","true")):($("#divTB_LName span.required").html(""),$("#divTB_LName").attr("class","group"),$("#TB_LName").attr("aria-invalid","false")),ContactFieldSetting==0?(t=trim(af$("TB_Email").value),t==""?(n+="Please enter Email\n",$("#divTB_Email span.required").html("*Required"),$("#divTB_Email").attr("class","group-req"),$("#TB_Email").attr("aria-invalid","true")):isValidEmail(t)==!1?(n+="Invalid Email\n",$("#divTB_Email span.required").html("*Invalid"),$("#divTB_Email").attr("class","group-req"),$("#TB_Email").attr("aria-invalid","true")):($("#divTB_Email span.required").html(""),$("#divTB_Email").attr("class","group"),$("#TB_Email").attr("aria-invalid","false"))):ContactFieldSetting==1?(t=trim(af$("TB_Phone").value),t==""?(n+="Please enter Phone\n",$("#divTB_Phone span.required").html("*Required"),$("#divTB_Phone").attr("class","group-req"),$("#TB_Phone").attr("aria-invalid","true")):($("#divTB_Phone span.required").html(""),$("#divTB_Phone").attr("class","group"),$("#TB_Phone").attr("aria-invalid","false"))):ContactFieldSetting==3&&(t=trim(af$("TB_Email").value),t==""?(n+="Please enter Email\n",$("#divTB_Email span.required").html("*Required"),$("#divTB_Email").attr("class","group-req"),$("#TB_Email").attr("aria-invalid","true")):isValidEmail(t)==!1?(n+="Invalid Email\n",$("#divTB_Email span.required").html("*Invalid"),$("#divTB_Email").attr("class","group-req"),$("#TB_Email").attr("aria-invalid","true")):($("#divTB_Email span.required").html(""),$("#divTB_Email").attr("class","group"),$("#TB_Email").attr("aria-invalid","false")),t=trim(af$("TB_Phone").value),t==""?(n+="Please enter Phone\n",$("#divTB_Phone span.required").html("*Required"),$("#divTB_Phone").attr("class","group-req"),$("#TB_Phone").attr("aria-invalid","true")):($("#divTB_Phone span.required").html(""),$("#divTB_Phone").attr("class","group"),$("#TB_Phone").attr("aria-invalid","false"))),n+=ValidatePhoneNumber(trim(af$("TB_Phone").value),"Phone is not val
4id\n"),trim(af$("TB_FName_Friend").value).length==0?(n+="Please enter Friend first name\n",$("#divTB_FName_Friend span.required").html("*Required"),$("#divTB_FName_Friend").attr("class","group-req"),$("#TB_FName_Friend").attr("aria-invalid","true")):($("#divTB_FName_Friend span.required").html(""),$("#divTB_FName_Friend").attr("class","group"),$("#TB_FName_Friend").attr("aria-invalid","false")),trim(af$("TB_LName_Friend").value).length==0?(n+="Please enter Friend last name\n",$("#divTB_LName_Friend span.required").html("*Required"),$("#divTB_LName_Friend").attr("class","group-req"),$("#TB_LName_Friend").attr("aria-invalid","true")):($("#divTB_LName_Friend span.required").html(""),$("#divTB_LName_Friend").attr("class","group"),$("#TB_LName_Friend").attr("aria-invalid","false")),ContactFieldSetting==0?(t=trim(af$("TB_Email_Friend").value),t==""?(n+="Please enter Friend email\n",$("#divTB_Email_Friend span.required").html("*Required"),$("#divTB_Email_Friend").attr("class","group-req"),$("#TB_Email_Friend").attr("aria-invalid","true")):isValidEmail(t)==!1?(n+="Invalid Friend email\n",$("#divTB_Email_Friend span.required").html("*Invalid"),$("#divTB_Email_Friend").attr("class","group-req"),$("#TB_Email_Friend").attr("aria-invalid","true")):($("#divTB_Email_Friend span.required").html(""),$("#divTB_Email_Friend").attr("class","group"),$("#TB_Email_Friend").attr("aria-invalid","false"))):ContactFieldSetting==1?(t=trim(af$("TB_Phone_Friend").value),t==""?(n+="Please enter Friend Phone\n",$("#divTB_Phone_Friend span.required").html("*Required"),$("#divTB_Phone_Friend").attr("class","group-req"),$("#TB_Phone_Friend").attr("aria-invalid","true")):($("#divTB_Phone_Friend span.required").html(""),$("#divTB_Phone_Friend").attr("class","group"),$("#TB_Phone_Friend").attr("aria-invalid","false"))):ContactFieldSetting==3&&(t=trim(af$("TB_Email_Friend").value),t==""?(n+="Please enter Friend email\n",$("#divTB_Email_Friend span.required").html("*Required"),$("#divTB_Email_Friend").attr("class","group-req"),$("#TB_Email_Friend").attr("aria-invalid","true")):isValidEmail(t)==!1?(n+="Invalid Friend email\n",$("#divTB_Email_Friend span.required").html("*Invalid"),$("#divTB_Email_Friend").attr("class","group-req"),$("#TB_Email_Friend").attr("aria-invalid","true")):($("#divTB_Email_Friend span.required").html(""),$("#divTB_Email_Friend").attr("class","group"),$("#TB_Email_Friend").attr("aria-invalid","false")),t=trim(af$("TB_Phone_Friend").value),t==""?(n+="Please enter Friend Phone\n",$("#divTB_Phone_Friend span.required").html("*Required"),$("#divTB_Phone_Friend").attr("class","group-req"),$("#TB_Phone_Friend").attr("aria-invalid","true")):($("#divTB_Phone_Friend span.required").html(""),$("#divTB_Phone_Friend").attr("class","group"),$("#TB_Phone_Friend").attr("aria-invalid","false"))),n+=ValidatePhoneNumber(trim(af$("TB_Phone_Friend").value),"Phone is not valid\n"),DWDealerID==654&&(t=trim(af$("TB_Message_Friend").value),t==""?(n+="Please enter Message\n",$("#divTB_Message_Friend span.required").html("*Required"),$("#divTB_Message_Friend").attr("class","group-req"),$("#TB_Message_Friend").attr("aria-invalid","true")):($("#divTB_Message_Friend span.required").html(""),$("#divTB_Message_Friend").attr("class","group"),$("#TB_Message_Friend").attr("aria-invalid","false"))),DWDealerID==4816||DWDealerID==2399||DWDealerID==1028||DWDealerID==4867||DWDealerID==5012||DWDealerID==4984||DWDealerID==5097||DWDealerID==4494||DWDealerID==5451||DWDealerID==4144||DWDealerID==5445||DWDealerID==3631){var f=af$("customCheckbox"),r=af$("customCheckboxsec"),e=f&&f.checked,o=r&&r.checked;(!r||e&&o)&&(r||e)||(n+=" You must agree to the terms of this form. Please check the box to continue.\n")}blnShowCaptchaCode==!0&&(t=trim(af$("txtMSCaptchaCode").value),t==""?(n+="Please enter Code\n",$("#divMSCaptchaCode span.required").html("*Required"),$("#divMSCaptchaCode").attr("class","group-req"),$("#txtMSCaptchaCode").attr("aria-invalid","true")):($("#divMSCaptchaCode span.required").html(""),$("#divMSCaptchaCode").attr("class","group"),$("#txtMSCaptchaCode").attr("aria-invalid","false")));n==""?(blnManagePrivacy==!0?DWDealerID==1299&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TB_Email").value}})):DWDealerID==1299&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TB_Email").value}})),DWDealerID==4726&&(i="This customer has not consented to receive SMS",u=af$("customCheckbox"),i=u.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("TB_Message_Friend").value+="\n"+i+"\n"+`${dateStr} at ${timeStr}`),DWDealerID==4950&&(i="This customer has not consented to receive SMS",u=af$("customCheckbox"),i=u.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("TB_Message_Friend").value+="\n"+i+"\n"+`${dateStr} at ${timeStr}`),$("#recaptcha.g-recaptcha").length==0?($("#btnSend").removeAttr("onclick"),document.forms[0].submit()):grecaptcha.execute()):AlertModel(n)}function display_Ref_CheckAvailability(n){af$("txt_HowHeared").value="";af$("txt_Referral").value.length>0?(af$("divtxt_HowHeared").style.display="block",n=="Top"&&window.parent.document.getElementById("ContactUsFrame_MoreInfo").style.setProperty("height","785px","important"),n=="Right"&&window.parent.document.getElementById("ContactUsFrame").style.setProperty("height","785px","important"),n=="InvList"&&(window.parent.document.getElementById("iframe_Confirm_Availability").style.height="515px",window.parent.document.getElementById("myPopup_Request_ConfirmAvail").getElementsByClassName("modal-content")[0].style.top="0px"),af$("txt_Referral").value=="Referral"?af$("txt_HowHeared_label").innerHTML="Name of Referrer":af$("txt_Referral").value=="Past customer"?af$("txt_HowHeared_label").innerHTML="Name of salesperson":af$("txt_Referral").value=="Website"?af$("txt_HowHeared_label").innerHTML="Which website":af$("txt_Referral").value=="Other"&&(af$("txt_HowHeared_label").innerHTML="Please describe")):(af$("divtxt_HowHeared").style.display="none",n=="Top"&&window.parent.document.getElementById("ContactUsFrame_MoreInfo").style.setProperty("height","725px","important"),n=="Right"&&window.parent.document.getElementById("ContactUsFrame").style.setProperty("height","725px","important"),n=="InvList"&&(window.parent.document.getElementById("iframe_Confirm_Availability").style.height="470px",window.parent.document.getElementById("myPopup_Request_ConfirmAvail").getElementsByClassName("modal-content")[0].style.top="20.5px"))}function LoadGoogleTranslatorJs(){viewportWidth()>767||$("#Transilator_top").length>0?!function(n,t,i){(i=n.createElement(t)).async=!0;i.src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInitDW";(n=n.getElementsByTagName(t)[0]).parentNode.insertBefore(i,n)}(document,"script"):!function(n,t,i){(i=n.createElement(t)).async=!0;i.src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInitDWMob";(n=n.getElementsByTagName(t)[0]).parentNode.insertBefore(i,n)}(document,"script")}function loadScriptOnLoadGoogleTransDW(n){var t=!1;typeof ShowGoogleTranslator!="undefined"&&(t=ShowGoogleTranslator);IsFramePage||t!=!0||(n=="load"&&(setTimeout(function(){blnManagePrivacy==!0?getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&CurrentPN!="finance"&&LoadGoogleTranslatorJs():LoadGoogleTranslatorJs()},3e3),$("#Transilator_top").length>0&&($("#google_translate_element").remove(),$("#Transilator_top").html("<span id='google_translate_element'><\/span>"),$("#Transilator_top").parent("a.dropdown-toggle").removeAttr("href"))),$("#Transilator_top").length==0&&af$("google_translate_element_mob")!=null&&af$("google_translate_element")!=null&&(viewportWidth()>767?$("#google_translate_element_mob").html().length>0&&$("#google_translate_element").html().length==0&&$("#google_translate_element_mob").children().appendTo("#google_translate_element"):$("#google_translate_element").html().length>0&&$("#google_translate_element_mob").html().length==0&&$("#google_translate_element").children().appendTo("#google_translate_element_mob")))}
4function googleTranslateElementInitDW(){new google.translate.TranslateElement({pageLanguage:"en",layout:google.translate.TranslateElement.InlineLayout.HORIZONTAL,multilanguagePage:!0},"google_translate_element");htmlGenerateGoogleTran=!0}function googleTranslateElementInitDWMob(){new google.translate.TranslateElement({pageLanguage:"en",layout:google.translate.TranslateElement.InlineLayout.HORIZONTAL,multilanguagePage:!0},"google_translate_element_mob");htmlGenerateGoogleTranMob=!0}function LazyLoadingImg(){bLazy=new Blazy({breakpoints:[{width:420,src:"data-src-small"}],success:function(n){setTimeout(function(){var t=n.parentNode;t.className=t.className.replace(/\bloading\b/,"")},200)}})}function SetHtmlOverlayInterval(){OverlayimgUrl!=""&&(CurrentPN=="inventory"||CurrentPN=="inventorysearch"?SetHtmlOverlayRecentlyView():SetHtmlOverlay())}function SetHtmlOverlayRecentlyView(){var t,n,i=0,r,u,f;OverlayimgUrl!=""&&$("img.DWBottomBarPopupImgTag,.photo_Viewed img,.RV_con img").each(function(){if(t=this.src,n=this,u="0px",imgheight=$(n).outerHeight(),f=$(n).css("top"),t.indexOf("InventoryImages")>=0||t.indexOf("stockPhotos")>=0||t.indexOf("InvnoImage")>=0){r="auto";i=i+1;$(n).outerHeight()=="0"&&(imgheight=$(n).clientHeight,imgheight=="undefined"&&(imgheight="auto"));$(n).parents("div").hasClass("stock")&&(imgheight=$(n).parent().height());$(n).parents("div").hasClass("stockbox")&&(imgheight=$(n).parent().height());var e=$('<img class="imgOverlayS" id="imgOverlaySR_'+i+'" src="'+OverlayimgUrl+'"/>');e.css({position:"absolute",left:r,width:$(n).outerWidth(),height:imgheight,margin:"0",padding:u,display:"grid",zIndex:"11",top:f});$("#imgOverlaySR_"+i).remove();e.insertBefore($(n))}})}function SetHtmlOverlay(){var i,n,r=0,s=0,h=0,c=0,l=0,u=1,t,f,o,e=0,a;OverlayimgUrl!=""&&(OverlayOnFirstImageOnly==!0?(typeof OverlayImageCount!="undefined"&&(u=OverlayImageCount),$("img.DWBottomBarPopupImgTag,.photo_Viewed img,.dwSimilarImg,#slider_inv_container img,#slider_inv_container_1 img,#DL_BigImages img,#body_VDP_Print img,#jssor_inv_img img,.jssort01-99-66 img,.dwNormalImgBox img,.slick-track img,.dwBoxSpecialImg img,.dwBoxInvList img,#DWFeaturedContainer img,img.dwBoxInvImgTag,.divMobileViewOnDesk img.dwnormal,.RV_con img").each(function(){var v,y;if(i=this.src,n=this,f="0px",a=!1,v=$(n).outerHeight(),o=$(n).css("top"),i.indexOf("InventoryImages")>=0||i.indexOf("stockPhotos")>=0||i.indexOf("InvnoImage")>=0){if(t="auto",$("#slider_inv_container").find($(n)).length==1){if($(".slides").find($(n)).length==1&&(v=$(n).outerHeight(),$(n).attr("data-u")!="thumb"?h=h+1:a=!0,h>u))return;if($(".jssorVDP").find($(n)).length==1&&(v=$(n).parent().parent().height(),e=e+1,e>u))return;t=$(n).css("left")}if($("#slider_inv_container_1").find($(n)).length==1){if(c=c+1,c>u)return;t=$(n).css("left")}if($("#DL_BigImages").find($(n)).length==1&&(f="4px",s=s+1,s>u))return;if($("#jssor_inv_img").find($(n)).length==1){if($("#div_myPopup_AFDWPhotoSlide").find($(n)).length==1){if($(n).attr("data-u")!="thumb"&&(l=l+1),l>u)return;$(".slides").find($(n)).length==1&&(v=$(n).parent().parent().height())}if($(".jssort01-99-66").find($(n)).length==1&&(v=$(n).parent().parent().height(),e=e+1,e>u))return;t=$(n).css("left")}r=r+1;$(n).outerHeight()=="0"&&(v=$(n).height,v=="undefined"&&(v="auto"));$(n).parents("div").hasClass("stock")&&(v=$(n).parent().height());$(n).parents("div").hasClass("stockbox")&&(v=$(n).parent().height());y=$('<img class="imgOverlayS" id="imgOverlayS_'+r+'" src="'+OverlayimgUrl+'"/>');y.css({position:"absolute",left:t,width:$(n).outerWidth(),height:v,margin:"0",padding:f,display:"grid",zIndex:"11",top:o});$("#imgOverlayS_"+r).remove();a==!1&&y.insertBefore($(n))}})):$("img.DWBottomBarPopupImgTag,.photo_Viewed img,.dwSimilarImg,#slider_inv_container img,#slider_inv_container_1 img,#DL_BigImages img,#body_VDP_Print img,#jssor_inv_img img,.jssort01-99-66 img,.dwNormalImgBox img,.slick-track img,.dwBoxSpecialImg img,.dwBoxInvList img,#DWFeaturedContainer img,img.dwBoxInvImgTag,.divMobileViewOnDesk img.dwnormal,.RV_con img").each(function(){if(i=this.src,n=this,f="0px",imgheight=$(n).outerHeight(),o=$(n).css("top"),i.indexOf("InventoryImages")>=0||i.indexOf("stockPhotos")>=0||i.indexOf("InvnoImage")>=0){if(t="auto",$("#slider_inv_container").find($(n)).length==1){if($(".slides").find($(n)).length==1&&(imgheight=$(n).outerHeight()),$(".jssorVDP").find($(n)).length==1&&(imgheight=$(n).parent().parent().height()),$("#slider_inv_container").find($(n.imgOverlayS)).length==1||$(n).css("display")=="none")return;t=$(n).css("left")}if($("#slider_inv_container_1").find($(n)).length==1){if($(".slides").find($(n)).length==1&&(imgheight=$(n).outerHeight()),$(".jssorVDP").find($(n)).length==1&&(imgheight=$(n).parent().parent().height()),$("#slider_inv_container_1").find($(n.imgOverlayS)).length==1||$(n).css("display")=="none")return;t=$(n).css("left")}if($("#DL_BigImages").find($(n)).length==1&&(f="4px"),$("#jssor_inv_img").find($(n)).length==1){if($(".slides").find($(n)).length==1&&(imgheight=$(n).parent().parent().height()),$(".jssort01-99-66").find($(n)).length==1&&(imgheight=$(n).parent().parent().height()),$("#jssor_inv_img").find($(n.imgOverlayS)).length==1||$(n).css("display")=="none")return;t=$(n).css("left")}r=r+1;$(n).outerHeight()=="0"&&(imgheight=$(n).clientHeight,imgheight=="undefined"&&(imgheight="auto"));$(n).parents("div").hasClass("stock")&&(imgheight=$(n).parent().height());$(n).parents("div").hasClass("stockbox")&&(imgheight=$(n).parent().height());var u=$('<img class="imgOverlayS" id="imgOverlayS_'+r+'" src="'+OverlayimgUrl+'"/>');u.css({position:"absolute",left:t,width:$(n).outerWidth(),height:imgheight,margin:"0",padding:f,display:"grid",zIndex:"11",top:o});$("#imgOverlayS_"+r).remove();u.insertBefore($(n))}}),CurrentPN=="inventory"&&$(window).bind("load",function(){window.setTimeout(function(){DwReArrangeHTML("INV");resizeGridImg()},100)}));typeof Cust_SetHtmlImageForDW!="undefined"&&typeof Cust_SetHtmlImageForDW=="function"&&Cust_SetHtmlImageForDW()}function DWSearchSetObjFilter(){objSearchFilter.DealerID=DWDealerID;objSearchFilter.Year="%";objSearchFilter.Make="%";objSearchFilter.Model="%";objSearchFilter.Color="%";objSearchFilter.BodyType="%";objSearchFilter.Price="-1,200000000";objSearchFilter.Mileage="0,200000000";objSearchFilter.NewVehiclePage=2;objSearchFilter.VehicleType="%";objSearchFilter.VehicleTypeExclude="-1";objSearchFilter.Stock="%";objSearchFilter.Lot=-1;objSearchFilter.Special=2;objSearchFilter.PriceReduced=2;objSearchFilter.Cylinders=-1;objSearchFilter.FuelType="%";objSearchFilter.DriveTrain="%";objSearchFilter.Transmission="%"}function RegisterSearchFilterElements(n,t,i,r){DWInventorySearchFilterElements.YearFrom
4=af$(i);DWInventorySearchFilterElements.Make=af$(n);DWInventorySearchFilterElements.Model=af$(t);DWInventorySearchFilterElements.PriceFrom=af$(r)}function RegisterSearchFilterElementsAll(n,t,i,r,u,f,e,o,s,h){DWInventorySearchFilterElements.YearFrom=af$(i);DWInventorySearchFilterElements.Make=af$(n);DWInventorySearchFilterElements.Model=af$(t);DWInventorySearchFilterElements.PriceFrom=af$(r);DWInventorySearchFilterElements.Color=af$(u);DWInventorySearchFilterElements.BodyType=af$(f);DWInventorySearchFilterElements.Cylinder=af$(e);DWInventorySearchFilterElements.FuelType=af$(o);DWInventorySearchFilterElements.DriveTrain=af$(s);DWInventorySearchFilterElements.Transmission=af$(h)}function DWFillSearchFilterObjValues(){var n=DWInventorySearchFilterElements;objSearchFilter.Make=af$($(n.Make).attr("id")).value;objSearchFilter.Model=af$($(n.Model).attr("id")).value;objSearchFilter.Year=af$($(n.YearFrom).attr("id")).value;objSearchFilter.Price=af$($(n.PriceFrom.value).attr("id"))=="%"?"-1,200000000":af$($(n.PriceFrom).attr("id")).value}function DWFillSearchFilterObjValuesAll(){var n=DWInventorySearchFilterElements;objSearchFilter.Make=af$($(n.Make).attr("id")).value;objSearchFilter.Model=af$($(n.Model).attr("id")).value;objSearchFilter.Year=af$($(n.YearFrom).attr("id")).value;objSearchFilter.Price=af$($(n.PriceFrom.value).attr("id"))=="%"?"-1,200000000":af$($(n.PriceFrom).attr("id")).value;objSearchFilter.Color=af$($(n.Color).attr("id")).value;objSearchFilter.BodyType=af$($(n.BodyType).attr("id")).value;objSearchFilter.Cylinders=af$($(n.Cylinder).attr("id")).value;objSearchFilter.FuelType=af$($(n.FuelType).attr("id")).value;objSearchFilter.DriveTrain=af$($(n.DriveTrain).attr("id")).value;objSearchFilter.Transmission=af$($(n.Transmission).attr("id")).value}function DWGetInitialSearchFilterValues(){DWInitialSearchListCall=this;var n="{ params: "+JSON.stringify(objSearchFilter)+"}";JqueryAjaxCall("POST","GetInventorySearchFilterList",n)}function DWGetSearchFilterValues(n){DWInitialSearchListCall=!1;DWSearchFilterListSelected=n;DWDealerID==4494?DWFillSearchFilterObjValuesAll(n):DWFillSearchFilterObjValues(n);var t="{ params: "+JSON.stringify(objSearchFilter)+"}";JqueryAjaxCall("POST","GetInventorySearchFilterList",t)}function GetInventorySearchFilterList_Callback(n){var i,t,r;if(DWDealerID==4494){if(n){if(i=0,t=DWInventorySearchFilterElements,DWSearchFilterListSelected!="make"&&t.Make&&n.Makes){for(af$($(t.Make).attr("id")).innerHTML="",SelectAddOption(af$($(t.Make).attr("id")),"%","Make"),i=0;i<n.Makes.length;i++)SelectAddOption(af$($(t.Make).attr("id")),n.Makes[i].Make);$("#"+$(t.Make).attr("id")).val(objSearchFilter.Make)}if(DWSearchFilterListSelected!="model"&&t.Model&&n.Models){for(af$($(t.Model).attr("id")).innerHTML="",SelectAddOption(af$($(t.Model).attr("id")),"%","Model"),i=0;i<n.Models.length;i++)SelectAddOption(af$($(t.Model).attr("id")),n.Models[i].Model);$("#"+$(t.Model).attr("id")).val(objSearchFilter.Model)}if(DWSearchFilterListSelected!="year"&&t.YearFrom&&n.Years){for(af$($(t.YearFrom).attr("id")).innerHTML="",SelectAddOption(af$($(t.YearFrom).attr("id")),"%","Year"),i=0;i<n.Years.length;i++)SelectAddOption(af$($(t.YearFrom).attr("id")),n.Years[i].Year);$("#"+$(t.YearFrom).attr("id")).val(objSearchFilter.Year)}if(DWSearchFilterListSelected!="price"&&(r=p5_10=p10_15=p15_20=p20_25=pgreater=0,t.PriceFrom&&n.Prices)){for(af$($(t.PriceFrom).attr("id")).innerHTML="",SelectAddOption(af$($(t.PriceFrom).attr("id")),"-1,200000000","Price Range"),i=0;i<n.Prices.length;i++)n.Prices[i].Price<=5e3&&!r&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"-1,5000","Less than $5,000"),r=1),n.Prices[i].Price>=5e3&&n.Prices[i].Price<=1e4&&!p5_10&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"5000,10000","$5,000 - $10,000"),p5_10=1),n.Prices[i].Price>=1e4&&n.Prices[i].Price<=15e3&&!p10_15&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"10000,15000","$10,000 - $15,000"),p10_15=1),n.Prices[i].Price>=15e3&&n.Prices[i].Price<=2e4&&!p15_20&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"15000,20000","$15,000 - $20,000"),p15_20=1),n.Prices[i].Price>=2e4&&n.Prices[i].Price<=25e3&&!p20_25&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"20000,25000","$20,000 - $25,000"),p20_25=1),n.Prices[i].Price>=25e3&&!pgreater&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"25000,200000000","Over $25,000"),pgreater=1);$("#"+$(t.PriceFrom).attr("id")).val(objSearchFilter.Price)}if(DWSearchFilterListSelected!="color"&&t.Color&&n.Colors){for(af$($(t.Color).attr("id")).innerHTML="",SelectAddOption(af$($(t.Color).attr("id")),"%","Colors"),i=0;i<n.Colors.length;
4i++)SelectAddOption(af$($(t.Color).attr("id")),n.Colors[i].Color);$("#"+$(t.Color).attr("id")).val(objSearchFilter.Color)}if(DWSearchFilterListSelected!="bodytype"&&t.BodyType&&n.BodyTypes){for(af$($(t.BodyType).attr("id")).innerHTML="",SelectAddOption(af$($(t.BodyType).attr("id")),"%","Body Style"),i=0;i<n.BodyTypes.length;i++)SelectAddOption(af$($(t.BodyType).attr("id")),n.BodyTypes[i].BodyType);$("#"+$(t.BodyType).attr("id")).val(objSearchFilter.BodyType)}if(DWSearchFilterListSelected!="cylinder"&&t.Cylinder&&n.Cylinders){for(af$($(t.Cylinder).attr("id")).innerHTML="",SelectAddOption(af$($(t.Cylinder).attr("id")),-1,"Cylinder"),i=0;i<n.Cylinders.length;i++)SelectAddOption(af$($(t.Cylinder).attr("id")),n.Cylinders[i].FieldName);$("#"+$(t.Cylinder).attr("id")).val(objSearchFilter.Cylinders)}if(DWSearchFilterListSelected!="fuletype"&&t.FuelType&&n.FuelType){for(af$($(t.FuelType).attr("id")).innerHTML="",SelectAddOption(af$($(t.FuelType).attr("id")),"%","Fuel Type"),i=0;i<n.FuelType.length;i++)SelectAddOption(af$($(t.FuelType).attr("id")),n.FuelType[i].FieldName);$("#"+$(t.FuelType).attr("id")).val(objSearchFilter.FuelType)}if(DWSearchFilterListSelected!="drivetrain"&&t.DriveTrain&&n.Drivetrain){for(af$($(t.DriveTrain).attr("id")).innerHTML="",SelectAddOption(af$($(t.DriveTrain).attr("id")),"%","DriveTrain"),i=0;i<n.Drivetrain.length;i++)SelectAddOption(af$($(t.DriveTrain).attr("id")),n.Drivetrain[i].FieldName);$("#"+$(t.DriveTrain).attr("id")).val(objSearchFilter.DriveTrain)}if(DWSearchFilterListSelected!="transmission"&&t.Transmission&&n.Transmission){for(af$($(t.Transmission).attr("id")).innerHTML="",SelectAddOption(af$($(t.Transmission).attr("id")),"%","Transmission"),i=0;i<n.Transmission.length;i++)SelectAddOption(af$($(t.Transmission).attr("id")),n.Transmission[i].FieldName);$("#"+$(t.Transmission).attr("id")).val(objSearchFilter.Transmission)}}}else if(n){if(i=0,t=DWInventorySearchFilterElements,DWSearchFilterListSelected!="make"&&t.Make&&n.Makes){for(af$($(t.Make).attr("id")).innerHTML="",SelectAddOption(af$($(t.Make).attr("id")),"%","All Makes"),i=0;i<n.Makes.length;i++)SelectAddOption(af$($(t.Make).attr("id")),n.Makes[i].Make);$("#"+$(t.Make).attr("id")).val(objSearchFilter.Make)}if(DWSearchFilterListSelected!="model"&&t.Model&&n.Models){for(af$($(t.Model).attr("id")).innerHTML="",SelectAddOption(af$($(t.Model).attr("id")),"%","All Models"),i=0;i<n.Models.length;i++)SelectAddOption(af$($(t.Model).attr("id")),n.Models[i].Model);$("#"+$(t.Model).attr("id")).val(objSearchFilter.Model)}if(DWSearchFilterListSelected!="year"&&t.YearFrom&&n.Years){for(af$($(t.YearFrom).attr("id")).innerHTML="",SelectAddOption(af$($(t.YearFrom).attr("id")),"%","All Years"),i=0;i<n.Years.length;i++)SelectAddOption(af$($(t.YearFrom).attr("id")),n.Years[i].Year);$("#"+$(t.YearFrom).attr("id")).val(objSearchFilter.Year)}if(DWSearchFilterListSelected!="price"&&(r=p5_10=p10_15=p15_20=p20_25=pgreater=0,t.PriceFrom&&n.Prices)){for(af$($(t.PriceFrom).attr("id")).innerHTML="",SelectAddOption(af$($(t.PriceFrom).attr("id")),"-1,200000000","All Prices"),i=0;i<n.Prices.length;i++)n.Prices[i].Price<=5e3&&!r&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"-1,5000","Less than $5,000"),r=1),n.Prices[i].Price>=5e3&&n.Prices[i].Price<=1e4&&!p5_10&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"5000,10000","$5,000 - $10,000"),p5_10=1),n.Prices[i].Price>=1e4&&n.Prices[i].Price<=15e3&&!p10_15&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"10000,15000","$10,000 - $15,000"),p10_15=1),n.Prices[i].Price>=15e3&&n.Prices[i].Price<=2e4&&!p15_20&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"15000,20000","$15,000 - $20,000"),p15_20=1),n.Prices[i].Price>=2e4&&n.Prices[i].Price<=25e3&&!p20_25&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"20000,25000","$20,000 - $25,000"),p20_25=1),n.Prices[i].Price>=25e3&&!pgreater&&(SelectAddOption(af$($(t.PriceFrom).attr("id")),"25000,200000000","Over $25,000"),pgreater=1);$("#"+$(t.PriceFrom).attr("id")).val(objSearchFilter.Price)}}DWInitialSearchListCall=!1}function DWApplySearchFilter(){var n=make=model="All";objSearchFilter.Year!="%"&&(n=objSearchFilter.Year);objSearchFilter.Make!="%"&&(make=encodeURIComponent(MakeUrlRewriterFriendly(objSearchFilter.Make)));objSearchFilter.Model!="%"&&(model=encodeURIComponent(MakeUrlRewriterFriendly(objSearchFilter.Model)));window.location=DealerSiteUrl+"/inventory.aspx?make="+make+"&model="+model+"&year="+n+"&price="+objSearchFilter.Price}function DWApplySearchFilterAll(){var n=make=model=color=bodytype=fueltype=drivetrain=transmission="All";objSearchFilter.Year!="%"&&(n=objSearchFilter.Year);objSearchFilter.Make!="%"&&(make=encodeURIComponent(MakeUrlRewriterFriendly(objSearchFilter.Make)));objSearchFilter.Model!="%"&&(model=encodeURIComponent(MakeUrlRewriterFriendly(objSearchFilter.Model)));objSearchFilter.Color!="%"&&(color=encodeURIComponent(MakeUrlRewriterFriendly(objSearchFilter.Color)));objSearchFilter.BodyType!="%"&&(bodytype=encodeURIComponent(MakeUrlRewriterFriendly(objSearchFilter.BodyType)));objSearchFilter.FuelType!="%"&&(fueltype=encodeURIComponent(MakeUrlRewriterFriendly(objSearchFilter.FuelType)));objSearchFilter.DriveTrain!="%"&&(drivetrain=encodeURIComponent(MakeUrlRewriterFriendly(objSearchFilter.DriveTrain)));objSearchFilter.Transmission!="%"&&(transmission=encodeURIComponent(MakeUrlRewriterFriendly(objSearchFilter.Transmission)));window.location=DealerSiteUrl+"/inventory.aspx?make="+make+"&model="+model+"&year="+n+"&price="+objSearchFilter.Price+"&color="+color+"&body="+bodytype+"&cylinders="+objSearchFilter.Cylinders+"&fueltype="+fueltype+"&drivetrain="+drivetrain+"&transmission="+transmission}function SetAdvanceSearchBox(){$("#dw-advserach-1").length>0&&(RegisterSearchFilterElements("SearchMake","SearchModel","SearchYearFrom","SearchPriceRange"),DWGetInitialSearchFilterValues())}function SetAdvanceSearchBoxAll(){$("#dw-advsearch-all").length>0&&(RegisterSearchFilterElementsAll("SearchMake","SearchModel","SearchYearFrom","SearchPriceRange","SearchColor","SearchBody","SearchCylinder","SearchFuelType","SearchDriveTrain","SearchTransmission"),DWGetInitialSearchFilterValues())}function validateWriteAReviewFields(){var n="";return trim(af$("TBR_FName").value).length==0?(n="Please enter My first name\n",$("#divTBR_FName span.required").html("*Required"),$("#divTBR_FName").attr("class","group-req")):($("#divTBR_FName span.required").html(""),$("#divTBR_FName").attr("class","group")),trim(af$("TBR_LName").value).length==0?(n+="Please enter Last name\n",$("#divTBR_LName span.required").html("*Required"),$("#divTBR_LName").attr("class","group-req")):($("#divTBR_LName span.required").html(""),$("#divTBR_LName").attr("class","group")),DWDealerID==467?trim(af$("TBR_Email").value).length==0?(n+="Please enter Email\n",$("#divTBR_Email span.required").html("*Required"),$("#divTBR_Email").attr("class","group-req")):isValidEmail(af$("TBR_Email").value)?($("#divTBR_Email span.required").html(""),$("#divTBR_Email").attr("class","group")):(n+="Invalid Email address\n",$("#divTBR_Email span.required").html("*Invalid"),$("#divTBR_Email").attr("class","group-req")):DWDealerID==1870?(trim(af$("TBR_Email").value).length==0?(n+="Please enter Email\n",$("#divTBR_Email span.required").html("*Required"),$("#divTBR_Email").attr("class","group-req")):isValidEmail(af$("TBR_Email").value)?($("#divTBR_Email span.required").html(""),$("#divTBR_Email").attr("class","group")):(n+="Invalid Email address\n",$("#divTBR_Email span.required").html("*Invalid"),$("#divTBR_Email").attr("class","group-req")),val=trim(af$("TBR_Phone").value),val==""?(n+="Please enter Phone\n",$("#divTBR_Phone span.required").html("*Required"),$("#divTBR_Phone").attr("class","group-req")):($("#divTBR_Phone span.required").html(""),$("#divTBR_Phone").attr("class","group"))):trim(af$("TBR_Email").value).length>0&&!isValidEmail(af$("TBR_Email").value)?(n+="Invalid Email address\n",$("#divTBR_Email span.required").html("*Invalid"),$("#divTBR_Email").attr("class","group-req")):($("#divTBR_Email span.required").html(""),$("#divTBR_Email").attr("class","group")),n+=ValidatePhoneNumber(trim(af$("TBR_Phone").value),"Phone is not val
4id\n"),trim(af$("TBR_Review").value).length==0?(n+="Please enter Review\n",$("#divTBR_Review span.required").html("*Required"),$("#divTBR_Review").attr("class","group-req")):($("#divTBR_Review span.required").html(""),$("#divTBR_Review").attr("class","group")),$("input[name='RatingReview']:checked").val()||(n+="Please Rate us\n"),af$("htmChk_myPopup_Testimonial_Authorise").checked==!1&&(n+="Please authorize us\n"),n}function resetReviewForm(){af$("TBR_FName").value="";af$("TBR_LName").value="";af$("TBR_Phone").value="";af$("TBR_Email").value="";af$("TBR_Title").value="";af$("TBR_Review").value="";af$("htmChk_myPopup_Testimonial_Authorise").checked=!0}function submitReview(){var t,n,i;if($("input#TB_Website_Hide").length>0&&$("input#TB_Website_Hide").val().length!=0)return!1;if(t=validateWriteAReviewFields(),t.length>0){Testimonialtype.length>0&&(t=t.replace("Review",Testimonialtype));AlertModel(t);return}n={};n.FName=af$("TBR_FName").value;n.LName=af$("TBR_LName").value;n.Phone=getIntegersOnly(af$("TBR_Phone").value,0);n.Email=af$("TBR_Email").value;n.Title=af$("TBR_Title").value;n.Review=af$("TBR_Review").value;n.Rating=$("input[name='RatingReview']:checked").val();i="{ intDealerId: "+af$("hdnDealerID").value+", objTestimonial: "+JSON.stringify(n)+"}";JqueryAjaxCall("POST","SaveTestimonial",i)}function SaveTestimonial_Callback(n){if(n&&n>0){var t="Your review has been saved.";Testimonialtype.length>0?t=t.replace("review",Testimonialtype):Testimonialtype="Review";AlertModel(t);parent.$("#DivAlertPopup #DivHeader div").html(parent.$("#DivAlertPopup #DivHeader div").html().replace("Missing information",Testimonialtype));resetReviewForm();blnManagePrivacy==!0?(DWDealerID==813&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&(window._pxaFormTrack=window._pxaFormTrack||[],_pxaFormTrack.push({formSub:"track"})),DWDealerID==1299&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TBR_Email").value}}))):(DWDealerID==813&&(window._pxaFormTrack=window._pxaFormTrack||[],_pxaFormTrack.push({formSub:"track"})),DWDealerID==1299&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TBR_Email").value}})))}else n&&n==-1?AlertModel("Invalid Email address"):AlertModel("Error in saving testimonial. Please retry.")}function LoadVideoiFrame(n){typeof LoadCustomVideoiFrame!="undefined"&&typeof LoadCustomVideoiFrame=="function"&&LoadCustomVideoiFrame(n)}function GetRegionsAndCounty(n){var i=trim($("#hdnRegion1").val()),r=trim($("#hdnRegion2").val()),u=trim($("#hdnRegion3").val()),f=trim($("#hdnCounty").val()),t="";return i!=""&&(t+="/"+hyphenize(i)),r!=""&&(t+="/"+hyphenize(r)),u!=""&&(t+="/"+hyphenize(u)),typeof n!="undefined"?t+="/"+hyphenize(n):f!=""&&(t+="/"+hyphenize(f)),t}function ShowMultiSelectLayer(n){$(".DivMultiselect").each(function(){$(this).is("#DivMultiselect_"+n+"")?$(this).slideToggle("slow"):$(this).hide()})}function validateMakePayment(){var t="",n=trim(af$("firstName").value);n==""&&(t+="Please enter My first name\n");n=trim(af$("lastName").value);n==""&&(t+="Please enter Last name\n");n=trim(af$("DayPhone").value);n==""&&(t+="Please enter Day phone\n");n=trim(af$("emailAddress").value);n==""?t+="Please enter Email\n":validate_email(trim(af$("emailAddress").value))==!1&&(t+="Invalid email\n");n=trim(af$("AddressLine1").value);n==""&&(t+="Please enter Address\n");n=trim(af$("City").value);n==""&&(t+="Please enter City\n");n=trim(af$("State").value);n==""&&(t+="Please enter State\n");n=trim(af$("ZipCode").value);n==""&&(t+="Please enter Zip\n");n=trim(af$("Comments").value);n==""&&(t+="Please enter Comments\n");n=trim(af$("ccNumber").value);n==""&&(t+="Please enter Card Number\n");n=trim(af$("ccMonth").value);n=="-1"&&(t+="Please select Expiration Month\n");n=trim(af$("ccYear").value);n=="-1"&&(t+="Please select Expiration Year\n");n=trim(af$("cvv2").value);n==""&&(t+="Please enter Security Code\n");n=trim(af$("amount").value);n==""&&(t+="Please enter Amount\n");!af$("htmCB_Terms").checked&&$("#dw-terms").is(":visible")&&(t+=" You must agree to the term of this form, please check the box to continue. \n");t==""?(blnManagePrivacy==!0?DWDealerID==1299&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("emailAddress").value}})):DWDealerID==1299&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("emailAddress").value}})),$("#btnMakePayment").removeAttr("onclick"),af$("IsPosted").value="1",af$("paymentForm").submit()):AlertModel(t)}function setRandomNumber(){document.getElementById("TransactionGUID").value==""&&(document.getElementById("TransactionGUID").value=Math.random())}function UnhappyReview(){if(CurrentPN=="unhappyreview"){var n=$("#hdnIsPagePostBack").val(),t=$("#hdnDisableSubmit").val();t>0&&$("#hrefSubmit").addClass("disabled");n>0&&(af$("divCap").innerHTML="Your feedback has been submitted successfully.",af$("divCap").style.textAlign="center",af$("divCont").style.display="none")}}function validatefieldsUnhappyReview(){af$("TA_Message").value.length>0?af$("unhappyreview").submit():(AlertModel("Please enter Message"),af$("TA_Message").focus())}function RequestReview(){if(CurrentPN=="requestreview"){refreshReCAPTCHA();af$("hdnCustomerID").value.length<=0?(af$("txtCustomerName").removeAttribute("readonly"),af$("txtCustomerEmailID").removeAttribute("readonly"),af$("txtCustomerCellPhone").removeAttribute("readonly")):(af$("txtCustomerCellPhone").value.length>0&&(af$("txtCustomerCellPhone").value=makePhoneFormat(af$("txtCustomerCellPhone").value,!1),af$("hrefSendSMSInvitation").classList.remove("disabled")),af$("txtCustomerEmailID").value.length>0&&af$("hrefSendEmailInvitation").classList.remove("disabled"));var n=setInterval("refreshReCAPTCHA()",6e4)}}
4function refreshReCAPTCHA(){grecaptcha.ready(function(){grecaptcha.execute(hdnCaptchaSiteKey,{action:grAction}).then(function(n){grToken=n})})}function enabledisableBtnSendEmailInvitation(){af$("txtCustomerEmailID").value.length>0?af$("hrefSendEmailInvitation").classList.remove("disabled"):af$("hrefSendEmailInvitation").classList.add("disabled")}function enabledisableBtnSendSMSInvitation(){af$("txtCustomerCellPhone").value.length>0?af$("hrefSendSMSInvitation").classList.remove("disabled"):af$("hrefSendSMSInvitation").classList.add("disabled")}function sendEmailInvitation(){var n="",t=trim(af$("txtCustomerName").value),i;t==""&&(n="Please enter Name\n");t=trim(af$("txtCustomerEmailID").value);t==""?n+="Please enter Email\n":validate_email(trim(af$("txtCustomerEmailID").value))==!1&&(n+="Invalid email\n");n.length<=0?(af$("hrefSendEmailInvitation").classList.add("disabled"),i=JSON.stringify({strToken:grToken}),JqueryAjaxCallRequestReview("POST","sendEmailInvitation",i)):AlertModel(n)}function sendSMSInvitation(){var n="",i=trim(af$("txtCustomerName").value),t;i==""&&(n="Please enter Name\n");n+=ValidatePhoneNumber(trim(af$("txtCustomerCellPhone").value),"Mobile number is not valid\n");n.length<=0?(af$("hrefSendSMSInvitation").classList.add("disabled"),t=JSON.stringify({strToken:grToken}),JqueryAjaxCallRequestReview("POST","sendSMSInvitation",t)):AlertModel(n)}function sendSMSInvitation_CallBack(n){n!=null&&n==""?($("#status").removeClass("text-error").addClass("text-success"),$("#status").text("SMS invitation has been sent to "+af$("txtCustomerName").value),setTimeout(clearStatus,5e3)):($("#status").removeClass("text-info").addClass("text-danger"),$("#status").text("An unexpected error occured while sending the SMS invitation. "+n));af$("hrefSendSMSInvitation").classList.remove("disabled");refreshReCAPTCHA()}function sendEmailInvitation_CallBack(n){n!=null&&n>0?($("#status").removeClass("text-error").addClass("text-success"),$("#status").text("Email invitation has been sent to "+af$("txtCustomerName").value),setTimeout(clearStatus,5e3)):($("#status").removeClass("text-info").addClass("text-danger"),$("#status").text("Error in sending SMS invitation."));af$("hrefSendEmailInvitation").classList.remove("disabled");refreshReCAPTCHA()}function clearStatus(){af$("status").innerHTML=""}function JqueryAjaxCallRequestReview(n,t,i){$.ajax({type:n,url:"/0/DealerWebLib/DealerWebService.asmx/CaptchaVerify",data:i,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var u=JSON.parse(n.d),i,r;u.Score<.5||u.action!=grAction?($("#status").text("The request is invalid or malformed."),$("#status").removeClass("text-info").addClass("text-danger")):(i=af$("hdnUserID").value==""?0:af$("hdnUserID").value,r=af$("hdnCustomerID").value==""?0:af$("hdnCustomerID").value,t=="sendEmailInvitation"?($("#status").removeClass("text-error").addClass("text-success"),dataval="{ intDealerId: "+DWDealerID+", intUserID: "+i+", intCustomerID: "+r+', strCustomerEmail: "'+af$("txtCustomerEmailID").value+'", strDealershipName: "'+DealerName+'", strDealerEmail: "'+DealerEmail+'", strWebsiteURL: "'+af$("hdnURL").value+'", strCustomerName: "'+af$("txtCustomerName").value+'"}',JqueryAjaxCall("POST","SendEmailInvitation",dataval)):($("#status").removeClass("text-error").addClass("text-success"),dataval="{ intDealerId: "+DWDealerID+", intUserID: "+i+", intCustomerID: "+r+', strPhoneNumber: "'+af$("txtCustomerCellPhone").value+'", strDealershipName: "'+DealerName+'", strWebsiteURL: "'+af$("hdnURL").value+'"}',JqueryAjaxCall("POST","SendSMSInvitation",dataval)))},failure:function(){$("#status").text("Error on Server!")}})}function getNumeric(n){for(var t,i,u="",r=0;r<n.length;++r)t=n.charAt(r),i=t.charCodeAt(0),i>47&&i<58&&(u+=t);return u}function SetCustomDrivingDirections(){var n=Directionsurl;typeof custom_directionsurl!="undefined"&&(n=custom_directionsurl,af$("dw-append-address")!=null&&$("#aGoogleLink1").attr("href",n),af$("contactAdd_Direction")!=null&&$("#contactAdd_Direction").attr("href",n),af$("aIconDirection")!=null&&$("#aIconDirection").attr("href",n),af$("invdGoogLink")!=null&&$("#invdGoogLink").attr("href",n),af$("dw-contGoogLinkFoot01")!=null&&$("#dw-contGoogLinkFoot01").attr("href",n))}function MakeUrlRewriterFriendly(n){return n.replace(/\+/g,"[").replace(/\//g,"]").replace(/\&/g,"-and-").replace(/\./g,"-dot-")}function MakeUrlRewriterUnFriendly(n){return n.replace(/\[/g,"+").replace(/\]/g,"/").replace(/-and-/g,"&").replace(/-dot-/g,".")}
4function getPopupValues_GetMoreInfo(n,t,i,r){GE_DW_Set_myPopup_invoked_function("myPopup_Get_MoreInfo","center",i,r);$("#myPopup_Get_More_Info_bodyText").html("Please contact me about this "+n+" "+t);ContactReferralSetting==0?$("#myPopup_Get_More_Info_body").html('<iframe id="iframe_Get_More_Info" src="'+DealerSiteUrl+"/2/common/ContactUsPages/DetailsPageContactUs.aspx?invid="+i+"&Pos=Top&vin="+r+'" frameborder="0" scrolling="no" style="width:100%; height:400px;"><\/iframe>'):$("#myPopup_Get_More_Info_body").html('<iframe id="iframe_Get_More_Info" src="'+DealerSiteUrl+"/2/common/ContactUsPages/DetailsPageContactUs.aspx?invid="+i+"&Pos=Top&vin="+r+'" frameborder="0" scrolling="no" style="width:100%; height:470px;"><\/iframe>')}function submitGoogleMap(){var n=document.getElementById("saddr").value.trim(),t,i;n&&(t=(DealerAddress1||"")+", "+(DealerCity||"")+", "+(DealerState||"")+" "+(DealerZip||""),i="https://www.google.com/maps/dir/"+encodeURIComponent(n)+"/"+encodeURIComponent(t),window.open(i,"_blank"))}function myPopup_MakeUsAnOffer_invoked_function(n,t,i,r){af$("myPopup_Make_Offer_MakeModel").innerHTML=i+" "+r;GE_DW_Set_myPopup_invoked_function("myPopup_Make_Offer","center",n,t)}function getParam(n){var t=RegExp("[?&]"+n+"=([^&]*)").exec(window.location.search);return t&&decodeURIComponent(t[1].replace(/\+/g," "))}function getExpiryRecord(n){var t=(new Date).getTime()+7776e6;return{value:n,expiryDate:t}}function addGclid(){var i=null,n=getParam("gclid"),r,f,e,u,t,o;n==null&&(n=getParam("GCLID"));r=getParam("gclsrc");f=!r||r.indexOf("aw")!==-1;n&&f&&(i=getExpiryRecord(n),localStorage.setItem("gclid",JSON.stringify(i)));document.getElementById("gclid_field")&&(e=["gclid_field"],e.forEach(function(n){document.getElementById(n)&&(u=document.getElementById(n))}),t=i||JSON.parse(localStorage.getItem("gclid")),o=t&&(new Date).getTime()<t.expiryDate,u&&o&&(u.value=t.value))}function ShowLoadingIconsfinance(){if($("#DW-CircleLoader").length==0){$('<div id="DW-CircleLoader" class="DW-CircleLoader"><div class="CircleLoader"><img src="/2/images/loadingcircle.gif"/><\/div><\/div>').appendTo("body");$("#DW-CircleLoader").css("height",$(window).height()+$(window).scrollTop());$("body").css("overflow","hidden");$("#DW-CircleLoader").on("click",function(){$(this).remove();$("body").css("overflow","auto")})}}function GetInventoryMoreImage_Callback(n){for(var t,i,r=[],u=0;u<objDWInventoryList.InvPageList.length;++u){for(r=[],t=0;t<n.length;++t)objDWInventoryList.InvPageList[u].EncryptedInvID==n[t].EncryptedInvID&&r.push(n[t].ImagePath);for(i=0;i<r.length;i++)$("#DwInvListImage"+(i+2)+"_"+u)[0].attributes.src.value=r[i]}}function focusOutFinance(n){var t=n.id;t=="cus_firstname"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"#fff");t=="cus_lastname"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"#fff");t=="TB_Phone"&&(af$(t).value==""||af$(t).value.length<14?(af$(t).style.backgroundColor="#FFD8D8",af$(t).title="Please provide valid number"):af$(t).style.backgroundColor="white");t=="TB_Email"&&(af$(t).value==""?af$(t).style.backgroundColor="#FFD8D8":af$(t).value.length>0&&isValidEmail(af$(t).value)==!1?(af$(t).style.backgroundColor="#FFD8D8",af$(t).title="Please provide valid email ID"):af$(t).style.backgroundColor="white");t=="txtMSCaptchaCode"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"#fff")}function validateFinanceApplication(){var n="",t=trim(af$("cus_firstname").value),i;t==""?(af$("cus_firstname").style.backgroundColor="#FFD8D8",n+="Please provide first name\n"):af$("cus_firstname").style.backgroundColor="#fff";t=trim(af$("cus_lastname").value);t==""?(af$("cus_lastname").style.backgroundColor="#FFD8D8",n+="Please provide last name\n"):af$("cus_lastname").style.backgroundColor="#fff";trim(af$("cus_firstname").value).length>0&&trim(af$("cus_lastname").value).length>0&&trim(af$("cus_firstname").value)==trim(af$("cus_lastname").value)&&(n+="You cannot repeat entries in First name and Last name fields\n");t=trim(af$("TB_Phone").value);t==""?(af$("TB_Phone").style.backgroundColor="#FFD8D8",n+="Please provide phone number\n"):af$("TB_Phone").style.backgroundColor="#fff";i=ValidatePhoneNumber(trim(af$("TB_Phone").value),"Please provide a valid phone number\n");i.length>0&&(af$("TB_Phone").style.backgroundColor="#FFD8D8",n+="Homephone # is not val
4id\n");t=trim(af$("TB_Email").value);t==""?(af$("TB_Email").style.backgroundColor="#FFD8D8",n+="Please provide Email\n"):validate_email(trim(af$("TB_Email").value))==!1?(af$("TB_Email").style.backgroundColor="#FFD8D8",n+="Invalid email\n"):af$("TB_Email").style.backgroundColor="#fff";t=trim(af$("txtMSCaptchaCode").value);t==""?(af$("txtMSCaptchaCode").style.backgroundColor="#FFD8D8",n+="Please provide captcha code\n"):af$("txtMSCaptchaCode").style.backgroundColor="#fff";n==""?(DWDealerID==1299&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TB_Email").value}})),typeof fbq!="undefined"&&fbq("track","Lead",{content_category:"Lead",content_name:"Finance",lead_type:"Finance Quote"}),$("#btnSend").removeAttr("onclick"),$("#btnSend").addClass("disabled"),af$("IsPosted").value="1",af$("getAQuote").submit(),ShowLoadingIconsfinance()):AlertModel(n)}function onSubmit(){console.log("Verification success.");CurrentPN=="finance"&&($("#creditappsubmit").attr("disabled",!0),document.finance.hdaddCusPageMode.value="saveCusAdd",document.finance.submit());(CurrentPN=="DetailsPageContactUs"||CurrentPN=="ReferFriend"||CurrentPN=="DetailsPageOffer"||CurrentPN=="ScheduleTestDrive")&&($("#btnSend").removeAttr("onclick"),document.forms[0].submit());CurrentPN=="contactus"&&($("#btnSend").removeAttr("onclick"),af$("HD_pagestatus").value="add",af$("ContactusQueries").submit());CurrentPN=="contactus_home"&&($("#contactform").removeAttr("onclick"),af$("HD_pagestatus").value="add",af$("ContactusQueries").submit())}function SetGoogleReCaptchaScript(){$("#recaptcha.g-recaptcha").length>0&&!function(n,t,i){(i=n.createElement(t)).async=!0;i.src="https://www.google.com/recaptcha/api.js";(n=n.getElementsByTagName(t)[0]).parentNode.insertBefore(i,n)}(document,"script")}function showGPCNotice(){$("body").append('<div style="display:flex;align-items:flex-start;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;z-index:99999;pointer-events:none;"><div id="dw-gpc-notice" style="width:auto;max-width:500px;margin-top:-200px;background-color:#1a1a1a;color:#fff;padding:16px 20px;font-size:13px;box-sizing:border-box;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,0.3);transition:margin-top 0.5s ease-in-out;display:flex;align-items:center;pointer-events:auto;"><span><strong>We have detected that your browser has Global Privacy Control (GPC) enabled. Some features may not work because GPC is enabled.<\/strong> <\/span> <button onclick="hideGPCNotice();" style="background:#fff;color:#1a1a1a;border:none;padding:6px 14px;cursor:pointer;font-size:13px;border-radius:4px;margin-left:10px;font-weight:bold;">Close<\/button><\/div><\/div>');setTimeout(function(){$("#dw-gpc-notice").css("margin-top","40px")},100)}function hideGPCNotice(){$("#dw-gpc-notice").css("margin-top","-240px");setTimeout(function(){$("#dw-gpc-notice").parent().remove()},500)}var GoogleMapApiKey,Gblmobioptions,blnManagePrivacy,_trackingScriptsInjected,_translatorScriptLoaded,objDWInventoryList,hdnDWInventoryList,htmlUTM,strRemoteAgent,_externalScriptsLoaded,$owlRecent,htmlSocial,GV_IFTS_AutoComp_Status,htmlGenerateGoogleTran,htmlGenerateGoogleTranMob,bLazy,DWInventorySearchFilterElements,Testimonialtype,viewType;window.dataLayer=window.dataLayer||[];window.dataLayer.push("consent","default",{analytics_storage:"denied",ad_storage:"denied"});var ContactReferralSetting=parseInt($("#hdnContactReferralSetting").val()),ContactFieldSetting=parseInt($("#hdnContactFieldSetting").val()),blnShowCaptchaCode=$("#hdnShowCaptchaCode").val()==="true",blnShowLandingPagePopup=$("#hdnShowLandingPagePopup").val()==="true",CurrentPN=$("#hdnCurrentPN").val(),directionsEmbedurl=$("#hdnDirectionsEmbedurl").val(),IsMobile=$("#hdnIsMobile").val()==="true",HidePrices=$("#hdnHidePrices").val()==="true",arrPixelIDs=$("#hdnPixelID").val().split(","),GoogleTagManagerID=$("#hdnGoogleTagManagerID").val(),GoogleTrackingID=$("#hdnGoogleTrackingID").val(),DealerSiteUrl=$("#hdnDealerSiteUrl").val(),InventoryUrl=$("#hdnInventoryUrl").val(),FinanceUrl=$
4("#hdnFinanceUrl").val(),FinanceURLTarget=$("#hdnFinanceURLTarget").val(),DealersiteFolder=$("#hdnDealersiteFolder").val(),DealerName=$("#hdnDealerName").val(),isInDebugMode=$("#hdnIsDebug").val()==="true",DWDealerID=parseInt($("#hdnDealerID").val()),UserWayWidgetCode=$("#hdnUserWayWidgetCode").val(),IsChatActive=$("#hdnIsChatActive").val()==="true",IsCombineChatandText=$("#hdnIsCombineChatandText").val()==="true",IsTextUsOnly=$("#hdnIsTextUsOnly").val()==="true",IsSubscribedSMSProduct=$("#hdnIsSubscribedSMSProduct").val()==="true",IsFBChatActive=$("#hdnIsFBChatActive").val()==="true",FacebookPageID=$("#hdnFacebookPageID").val(),FBChatSkinColor=$("#hdnFBChatSkinColor").val(),ChatEncryptedID=$("#hdnChatEncryptedID").val(),DealerPhone=$("#hdnDealerPhone").val(),isVDP=$("#hdnStopAffix").val()==="true",IsFramePage=$("#hdnIsFramePage").val()==="true",IsFramePageExTracking=$("#hdnIsFramePageExTracking").val()==="true",DealerEmail=$("#hdnDealerEmail").val(),DealerCity=$("#hdnDealerCity").val(),GCLID=$("#hdnGCLID").val(),DealerFax=$("#hdnDealerFax").val(),InventoryStatus=$("#hdnInventoryStatus").val(),DWTextUsNumber=$("#hdnDWTextUsNumber").val(),isDWBot=parseInt($("#hdnDWIsBot").val()),InventoryNewOrUsed=$("#hdnInventoryNewOrUsed").val()==="true",InventoryLotId=isNaN(parseInt($("#hdnInventoryLotId").val()))?0:parseInt($("#hdnInventoryLotId").val()),BodyType=$("#hdnBodyType").val(),Stock=$("#hdnStock").val(),DriveTrain=$("#hdnDriveTrain").val(),FuelType=$("#hdnFuelType").val(),InventoryItemView=$("#hdnInventoryItemView").val(),InventoryYear=isNaN(parseInt($("#hdnInventoryYear").val()))?0:parseInt($("#hdnInventoryYear").val()),InventoryMake=$("#hdnInventoryMake").val(),InventoryModel=$("#hdnInventoryModel").val(),InventoryTrim=$("#hdnInventoryTrim").val(),ExteriorColor=$("#hdnExteriorColor").val(),DealerAPR=isNaN(parseFloat($("#hdnDealerAPR").val()))?0:parseFloat($("#hdnDealerAPR").val()),EncryptedId=$("#hdInvID").val(),InventoryEncryptID=$("#hdnInventoryEncryptID").val(),UrlEncodedInventoryEncryptID=$("#hdnUrlEncodedInventoryEncryptID").val(),invDetailsVideoUrl=$("#hdnDealerVideoUrl").val(),invDetailsVideoType=$("#hdnDealerVideoType").val(),invDetailsVideoId=$("#hdnDealerVideoId").val(),invDetailsVin=$("#hdnInventoryVin").val(),invDealerUrlImage360=$("#hdnDealerUrlImage360").val(),invDetailsInternetPrice=isNaN(parseFloat($("#hdnInternetPrice").val()))?0:parseFloat($("#hdnInternetPrice").val()),invDetailsReducedPrice=isNaN(parseFloat($("#hdnReducedPrice").val()))?0:parseFloat($("#hdnReducedPrice").val()),invDetailsInstorePrice=isNaN(parseFloat($("#hdnInstorePrice").val()))?0:parseFloat($("#hdnInstorePrice").val()),invDetailsWholeSalePrice=isNaN(parseFloat($("#hdnWholeSalePrice").val()))?0:parseFloat($("#hdnWholeSalePrice").val()),invNadaPrice=isNaN(parseFloat($("#hdnNadaPrice").val()))?0:parseFloat($("#hdnNadaPrice").val()),invVisitorsCount=isNaN(parseInt($("#hdnVisitorsCount").val()))?0:parseInt($("#hdnVisitorsCount").val()),MilesOut=isNaN(parseInt($("#hdnMilesOut").val()))?0:parseInt($("#hdnMilesOut").val()),invShowReducedPrice=$("#hdnShowReducedPrice").val()==="true",InventoryLotName=$("#hdnInventoryLotName").val(),MpgCity=$("#hdnMpgCity").val(),MpgHwy=$("#hdnMpghwy").val(),MpgDisplay=$("#hdnMpgDisplay").val(),ShowPrice=isNaN(parseInt($("#hdnShowPrice ").val()))?0:parseInt($("#hdnShowPrice").val()),invDetailsTitleType=$("#hdnTitleType").val(),invDetailsCylinder=$("#hdnCylinder").val(),invDetailsTransmission=$("#hdnTransmission").val(),invDetailsInteriorColor=$("#hdnInteriorColor").val(),AFTagProductionURL=$("#hdnAFTagProductionURL").val(),AFTagVersion=$("#hdnAFTagVersion").val(),AFTagDecryptedId=$("#hdnAFTagDecryptedId").val(),OverlayimgUrl=$("#hdnOverlayURL").val(),OverlayOnFirstImageOnly=$("#hdnOverlayOnFirstImageOnly").val()==="true",VegasSlides=$("#hdnVegasSlides").val(),DealerAddress1=$("#hdnDealerAddress1").val(),DealerAddress2=$("#hdnDealerAddress2").val(),DealerStateFull=$("#hdnDealerStateFull").val(),DealerState=$("#hdnDealerState").val(),DealerZip=$("#hdnDealerZip").val(),Directionsurl=$("#hdnDirectionsurl").val(),ContactusUrl=$("#hdnContactusUrl").val(),CCProductionDomain=$("#hdnCCProductionDomain").val(),InventoryNoImageURL=$("#hdnInventoryNoImageURL").val(),InventoryOverlayImageURL=$("#hdnInventoryOverlayImageURL").val(),ShowAsSold=$("#hdnS
4howAsSold").val()==="true",IsDWCustomerCookies=$("#hdnDealerWebsitesCustomer").val()==="true",_userway_config={account:UserWayWidgetCode},a2a_config=a2a_config||{};a2a_config.linkname=$(document).attr("title");a2a_config.linkurl=$(location).attr("href");a2a_config.onclick=1;a2a_config.onkeyup=1;a2a_config.color_main="undefined";a2a_config.color_border="undefined";a2a_config.color_link_text="undefined";a2a_config.color_link_text_hover="undefined";a2a_config.color_bg="undefined";a2a_config.color_arrow="undefined";a2a_config.color_arrow_hover="undefined";GoogleMapApiKey="";Gblmobioptions=null;Gblmobioptions=IsMobile?{showOnTap:!1,theme:"material",display:"modal",animate:"pop",controls:["date","calendar"],confirmOnTap:!1}:{showOnTap:!1,theme:"material",display:"modal",controls:["date","calendar"],confirmOnTap:!1};blnManagePrivacy=!1;var ESSENTIAL_KEY="dw_Essential",ANALYTICS_KEY="dw_AnalyticsandMarketing",CONSENT_KEY="dw_cookieConsentShown",CONSENT_EXPIRY_KEY="dw_cookieConsentExpiry",CONSENT_EXPIRY_DAYS=365;_trackingScriptsInjected=!1;_translatorScriptLoaded=!1;window.toggleSettings=toggleSettings;window.savePreferences=savePreferences;window.acceptAll=acceptAll;window.rejectAll=rejectAll;document.addEventListener("dw_consent_given",function(){blnManagePrivacy==!0&&getIsGPC()==!1&&checkAndInjectFakeChatButton()});$(document).on("click","#_ChatChasersAppFrameContent",function(){clearCookieConsent()});$(document).on("click","#CChasersSMSButtonContent",function(){clearCookieConsent()});$(document).on("click","#CChasersChatButtonContent",function(){clearCookieConsent()});$(document).on("click","#CChasersChatTextButtonContent",function(){clearCookieConsent()});$(document).on("click","#dw-contentmanage",function(){clearCookieConsent()});objDWInventoryList=null;$("#hdnDWInventoryList").length>0&&(hdnDWInventoryList=$("#hdnDWInventoryList").val(),objDWInventoryList=JSON.parse(hdnDWInventoryList));var MM_temp_makes_list=null,MM_cols=0,MM_rows=0,MM_colsNum=0,MM_m=0,k=0,c=0,MM_tempDiv="",MM_temp="",MM_SwapDiv="",MM_colsTemp="",MM_rowsTemp="",resize_cols="",resize_rows="",htmlGCLID="";GCLID.length>0&&(htmlGCLID="&gclid="+GCLID);htmlUTM="";document.addEventListener("dw_consent_given",function(){getIsAnalyticsAndMarketing()===!0?(buildUTM(),setUTMHiddenFields(),fixAllIframeUTM()):htmlUTM=""});document.readyState==="loading"?document.addEventListener("DOMContentLoaded",function(){setTimeout(initUTM,1100)}):setTimeout(initUTM,1100);strRemoteAgent="";typeof window!="undefined"&&window.navigator.userAgent!==undefined&&(strRemoteAgent=window.navigator.userAgent);$(document).ready(function(){$(window).scroll();isInIframe()||IsMobile!=!1||IsDWCustomerCookies!==!0?($("#DWRecentViewRight").hide(),$("#DWContentDP").removeClass("contentbgDP"),$("#DWContentDP").addClass("contentbgDP1"),$("#DWContentDP .grid-group-item").removeClass("griditem")):strRemoteAgent.toLowerCase().includes("bot")||strRemoteAgent.toLowerCase().includes("crawler")||strRemoteAgent.toLowerCase().includes("spider")||strRemoteAgent.toLowerCase().includes("webindexer")||strRemoteAgent.toLowerCase().includes("amazon")||strRemoteAgent.toLowerCase().includes("google")||strRemoteAgent.toLowerCase().includes("external")?($("#DWRecentViewRight").hide(),$("#DWContentDP").removeClass("contentbgDP"),$("#DWContentDP").addClass("contentbgDP1"),$("#DWContentDP .grid-group-item").removeClass("griditem")):DWLoadBottomBar();SetMobileTopShare();SetMobileNavSize();SetSearchBoxEvents();SetAffixHeader();SetUserWayWidget();SetBottomToTop();SetContactUsBox();SetFinanceApp();SetReviewPopup();SetReviewContent();SetMobiscroll();SetlogoParadeTop();SetHtmlOverlayInterval();SetAdvanceSearchBox();SetAdvanceSearchBoxAll();SetWriteAReviewForm();SetSocialIconsOnMenu();UnhappyReview();RequestReview();SetCustomDrivingDirections();SetGoogleReCaptchaScript();$("#DWnavigation").css("display","block");$("#divMenuButton").on("click",function(n){n.preventDefault();ShowMobileMenu()});$("#Transilator_top").length>0&&$("#Transilator_top").parents("li.dropdown").addClass("dw-google-translator-container");$("#hdnIncludeFile").length>0&&$("#body_employment").length>0&&$("#body_employment").addClass("hasDefaultForm");$("#DWnavigation > ul > li > span.droparrow").click(function(){$("#DWnavigation > ul > li").css("border-bottom-width","1px");!1==$(this).next("ul").is(":visible")?($("ul.dropdown-menu").slideUp(300),$(this).parents("li").css("border-bottom-width","0")):$(this).parents("li").css("border-bottom-width","1px");$(this).next("ul").slideToggle(300)});$("#dw-back-to-top").on("click",function(n){n.preventDefault();$("html,body").animate({scrollTop:0},700)});$("#divWelcomeTextMore").on("click",function(){ShowWelcomeTextMore()});MM_temp_makes_list==null&&($(".MakesDivision").length>0?MM_temp_makes_list=$(".MakesDivision"):$(".MakesDiv").length>0&&(MM_temp_makes_list=$(".MakesDiv")));makesListing();$(window).on("load",function(){if(IsMobile==!0&&SetMobileNavSize(),SetlogoParadeTop(),SetHtmlOverlayInterval(),CurrentPN==="viewinventorydetails")var n=0,t=setInterval(function(){SetHtmlOverlayInterval();++n==4&&window.clearInterval(t)},500);ResizeFeaturedCars();loadScriptOnLoadGoogleTransDW("load");SetWriteAReviewFormTitle();addGclid();setTimeout(function(){$(".dw-banner-slides .dw-desk-hide").removeClass("dw-desk-hide")},100);setLandingPagePopup()});$(window).on("resize",function(){IsMobile==!0?SetMobileNavSize():makesListing();SetlogoParadeTop();SetHtmlOverlayInterval();SetUserWayWidget();ResizeFeaturedCars();loadScriptOnLoadGoogleTransDW("resize")});$(window).on("orientationchange",function(){IsMobile==!0?SetMobileNavSize():makesListing();SetlogoParadeTop();SetHtmlOverlayInterval();SetUserWayWidget();ResizeFeaturedCars();loadScriptOnLoadGoogleTransDW("orientationchange")});blnManagePrivacy==!0?typeof _AF_Tag!="undefined"&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&fireAFTagEvents():typeof _AF_Tag!="undefined"&&fireAFTagEvents();$("img.lazy").Lazy({scrollDirection:"vertical",effect:"fadeIn",visibleOnly:!0,onError:function(n){console.log("error loading "+n.data("src"));n.data("src").indexOf("stockPhotos")!==-1?$(n).attr("src","/1/images/InvnoImage/noimage_stock.jpg"):$(n).attr("src","/1/images/InvnoImage/noimage.jpg")},afterLoad:function(){DwReArrangeHTML("INV");typeof Cust_SetHtmlImageForDW!="undefined"&&typeof Cust_SetHtmlImageForDW=="function"&&Cust_SetHtmlImageForDW()}})});$(window).on("load",function(){setTimeout(function(){loadExternalScriptsAfterInit()},3e3)});_externalScriptsLoaded=!1;$(window).scroll(function(){var n=$(window).height(),t=$(this).scrollTop();if(setTimeout(function(){appendDrivingDirections()},2e3),$("#showroomcontact").length>0&&$("#showroomcontact").is(":visible")){var i=$("#showroomcontact").offset().top;t>i+0-n&&_maybeLoadShowroomContact()}SetBottomToTop()});$("#disablingDiv").on("click",function(n){n.preventDefault();ShowMobileMenu()});htmlSocial="";GV_IFTS_AutoComp_Status=!1;document.addEventListener("dw_consent_given",function(){blnManagePrivacy==!0&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&LoadshareIcons()});var currentDateTime=new Date,timeStr=currentDateTime.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"}),dateStr=currentDateTime.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),[time,tzAbbr]=timeStr.split(" "),timeAbbr=tzAbbr.includes("GMT")?"":tzAbbr;htmlGenerateGoogleTran=!1;htmlGenerateGoogleTranMob=!1;bLazy=null;var objSearchFilter={},DWInitialSearchListCall=!0,DWSearchFilterListSelected="";DWSearchSetObjFilter();DWInventorySearchFilterElements={YearFrom:null,YearTo:null,Make:null,Model:null,Color:null,PriceFrom:null,PriceTo:null,BodyType:null,Cylinder:null,FuelType:null,DriveTrain:null,Transmission:null};Testimonialtype="";var grAction="requestreview",grToken="",hdnCaptchaSiteKey=$("#hdnCaptchaSiteKey").val();$("#saddr").on("keydown",function(n){n.key==="Enter"&&(n.preventDefault(),submitGoogleMap())});af$("hdnDwInvView")!=null&&(viewType=af$("hdnDwInvView").value,viewType=="list"&&$(".DW_Contentbg_Theme5").length>
40&&$(window).load(function(){var n="{strInventorys:'"+$("#hdnSerializeInvID").val()+"'}";JqueryAjaxCall("POST","GetInventoryMoreImage",n)}));$(document).ready(function(n){function f(){n("#owl-demo .priceRV").each(function(){af$("owl-demo")!=null&&(n("#owl-demo .priceRV .txtOvrF2").addClass("notranslate"),clearInterval(r))})}function u(){n("#DWRecentlyViewed .RV_con ").each(function(){af$("DWRecentlyViewed")!=null&&n("#DWRecentlyViewed .recently_head").addClass("notranslate");af$("DWRecentlyViewed")!=null&&n("#DWRecentlyViewed .recently_trim").addClass("notranslate");clearInterval(t)})}function e(){n("#DWsimilatvehicles .RV_con ").each(function(){n(".RV_con .txtOvrF2").addClass("notranslate")});clearInterval(i)}var r,t,i;af$("divMake")!=null&&n("#divMake a").addClass("notranslate");af$("divModel")!=null&&n("#divModel a").addClass("notranslate");af$("Dw_strMake")!=null&&n("#Dw_strMake").addClass("notranslate");af$("DW_strModel")!=null&&n("#DW_strModel").addClass("notranslate");af$("Dw_strTrim")!=null&&n("#Dw_strTrim").addClass("notranslate");af$("divMakeListing")!=null&&n("#divMakeListing").addClass("notranslate");af$("Div_CarInfo")!=null&&n("#Div_CarInfo .MakeRt").addClass("notranslate");af$("Div_CarInfo")!=null&&n("#Div_CarInfo .ModelRt").addClass("notranslate");af$("dw-make-model")!=null&&n("#dw-make-model").addClass("notranslate");af$("divMakeModel")!=null&&n("#divMakeModel").addClass("notranslate");n(".product_name span").addClass("notranslate");n(".ftrTrim").addClass("notranslate");n(".listitemlink span").addClass("notranslate");n(".bdy-t").addClass("notranslate");CurrentPN=="inventorysearch"&&n(".priceRV h3 span").addClass("notranslate");r=setInterval(function(){f()},50);t=null;CurrentPN=="inventory"&&(t=setInterval(function(){u()},50));i=null;CurrentPN=="viewinventorydetails"&&(t=setInterval(function(){u()},50),i=setInterval(function(){e()},100))});function OnDWCallComplete(n,t,i){switch(i){case"GetRecentlyViewedInventoryList":GetRecentlyViewedInventoryList_Callback(n);break;case"GetInventorySearchFilterList":GetInventorySearchFilterList_Callback(n);break;case"GetInventorySearchFilterListMakeModelColor":GetInventorySearchFilterListMakeModelColor_Callback(n);break;case"GetInventoryIntegrationProducts":GetInventoryIntegrationProducts_Callback(n);break;case"SaveTestimonial":SaveTestimonial_Callback(n);break;case"GetInventoryImageList":GetInventoryImageList_Callback(n);break;case"GetInventoryImageListByEncryptedID":GetInventoryImageListByEncryptedID_Callback(n);break;case"SendMailAFriend":SendMailAFriend_Callback(n);break;case"GetInventoryObj":GetInventoryObj_Callback(n);break;case"GetModelByMake":GetModelByMake_Callback(n);break;case"GetSimilarVehicles":GetSimilarVehicles_Callback(n);break;case"GetInventorySpecials":GetInventorySpecials_Callback(n);break;case"GetInventorySpecials_LazyLoading":GetInventorySpecials_LazyLoading_Callback(n);break;case"GetInventoryAjax_LazyLoading":GetInventoryAjax_LazyLoading_Callback(n);break;case"GetInventorySpecialsTheme1":GetInventorySpecialsTheme1_Callback(n);break;case"GetInventorySpecialsAjax_LazyLoadingGrid":GetInventorySpecialsAjax_LazyLoading_CallbackGrid(n);break;case"GetInventoryGridAjax_LazyLoading":GetInventoryGridAjax_LazyLoading_Callback(n);break;case"GetInventoryReview":GetInventoryReview_Callback(n);break;case"GetInventoryReviewList":GetInventoryReviewList_Callback(n);break;case"GetVehiclesByVinAndPeriod":GetVehiclesByVinAndPeriod_Callback(n);break;case"GetGalvesVehiclesByVIN":GetGalvesVehiclesByVIN_Callback(n);break;case"GetNadaInfoByType":GetNadaInfoByType_Callback(n);break;case"GetNadaItemsByYear":GetNadaItemsByYear_Callback(n);break;case"GetNadaItemsByMake":GetNadaItemsByMake_Callback(n);break;case"GetNadaItemsByModel":GetNadaItemsByModel_Callback(n);break;case"GetVehicleByVehicleDetail":GetVehicleByVehicleDetail_Callback(n);break;case"GetMileageAdjustment":GetMileageAdjustment_Callback(n);break;case"GetInventoryPaging":GetInventoryPaging_Callback(n);break;case"GetInventoryMoreImage":GetInventoryMoreImage_Callback(n);break;case"SendSMSInvitation":sendSMSInvitation_CallBack(n);break;case"SendEmailInvitation":sendEmailInvitation_CallBack(n);break;case"GetLandingPagePopupContent":getLandingPagePopupContent_Callback(n)}}function OnDWCallTimeOut(){AlertModel("There was an error while processing your request. The Technical Support Team has been notified. Please try the request later.")}function OnDWCallError(){AlertModel("There was an error while processing your request. The Technical Support Team has been notified. Please try the request later.")}if(typeof Object.create!=="function")Object.create=function(b){function a(){}a.prototype=b;return new a};(function(a,b,c){var d={init:function(c,d){var b=this;b.$elem=a(d);b.options=a.extend({},a.fn.owlCarousel.options,b.$elem.data(),c);b.userOptions=c;b.loadContent()},loadContent:function(){var b=this,c;function d(a){var c,d="";if(typeof b.options.jsonSuccess==="function")b.options.jsonSuccess.apply(this,[a]);else{for(c in a.owl)if(a.owl.hasOwnProperty(c))d+=a.owl[c].item;b.$elem.html(d)}b.logIn()}typeof b.options.beforeInit==="function"&&b.options.beforeInit.apply(this,[b.$elem]);if(typeof b.options.jsonPath==="string"){c=b.options.jsonPath;a.getJSON(c,d)}else b.logIn()},logIn:function(){var a=this;a.$elem.data("owl-originalStyles",a.$elem.attr("style"));a.$elem.data("owl-originalClasses",a.$elem.attr("class"));a.$elem.css({opacity:0}
4);a.orignalItems=a.options.items;a.checkBrowser();a.wrapperWidth=0;a.checkVisible=null;a.setVars()},setVars:function(){var a=this;if(a.$elem.children().length===0)return false;a.baseClass();a.eventTypes();a.$userItems=a.$elem.children();a.itemsAmount=a.$userItems.length;a.wrapItems();a.$owlItems=a.$elem.find(".owl-item");a.$owlWrapper=a.$elem.find(".owl-wrapper");a.playDirection="next";a.prevItem=0;a.prevArr=[0];a.currentItem=0;a.customEvents();a.onStartup()},onStartup:function(){var a=this;a.updateItems();a.calculateAll();a.buildControls();a.updateControls();a.response();a.moveEvents();a.stopOnHover();a.owlStatus();a.options.transitionStyle!==false&&a.transitionTypes(a.options.transitionStyle);if(a.options.autoPlay===true)a.options.autoPlay=5e3;a.play();a.$elem.find(".owl-wrapper").css("display","block");if(!a.$elem.is(":visible"))a.watchVisibility();else a.$elem.css("opacity",1);a.onstartup=false;a.eachMoveUpdate();typeof a.options.afterInit==="function"&&a.options.afterInit.apply(this,[a.$elem])},eachMoveUpdate:function(){var a=this;a.options.lazyLoad===true&&a.lazyLoad();a.options.autoHeight===true&&a.autoHeight();a.onVisibleItems();typeof a.options.afterAction==="function"&&a.options.afterAction.apply(this,[a.$elem])},updateVars:function(){var a=this;typeof a.options.beforeUpdate==="function"&&a.options.beforeUpdate.apply(this,[a.$elem]);a.watchVisibility();a.updateItems();a.calculateAll();a.updatePosition();a.updateControls();a.eachMoveUpdate();typeof a.options.afterUpdate==="function"&&a.options.afterUpdate.apply(this,[a.$elem])},reload:function(){var a=this;b.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;if(a.$elem.is(":visible")===false){a.$elem.css({opacity:0});b.clearInterval(a.autoPlayInterval);b.clearInterval(a.checkVisible)}else return false;a.checkVisible=b.setInterval(function(){if(a.$elem.is(":visible")){a.reload();a.$elem.animate({opacity:1},200);b.clearInterval(a.checkVisible)}},500)},wrapItems:function(){var a=this;a.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>');a.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">');a.wrapperOuter=a.$elem.find(".owl-wrapper-outer");a.$elem.css("display","block")},baseClass:function(){var a=this,c=a.$elem.hasClass(a.options.baseClass),b=a.$elem.hasClass(a.options.theme);!c&&a.$elem.addClass(a.options.baseClass);!b&&a.$elem.addClass(a.options.theme)},updateItems:function(){var b=this,c,d;if(b.options.responsive===false)return false;if(b.options.singleItem===true){b.options.items=b.orignalItems=1;b.options.itemsCustom=false;b.options.itemsDesktop=false;b.options.itemsDesktopSmall=false;b.options.itemsTablet=false;b.options.itemsTabletSmall=false;b.options.itemsMobile=false;return false}c=a(b.options.responsiveBaseWidth).width();if(c>(b.options.itemsDesktop[0]||b.orignalItems))b.options.items=b.orignalItems;if(b.options.itemsCustom!==false){b.options.itemsCustom.sort(function(a,b){return a[0]-b[0]});for(d=0;d<b.options.itemsCustom.length;d+=1)if(b.options.itemsCustom[d][0]<=c)b.options.items=b.options.itemsCustom[d][1]}else{if(c<=b.options.itemsDesktop[0]&&b.options.itemsDesktop!==false)b.options.items=b.options.itemsDesktop[1];if(c<=b.options.itemsDesktopSmall[0]&&b.options.itemsDesktopSmall!==false)b.options.items=b.options.itemsDesktopSmall[1];if(c<=b.options.itemsTablet[0]&&b.options.itemsTablet!==false)b.options.items=b.options.itemsTablet[1];if(c<=b.options.itemsTabletSmall[0]&&b.options.itemsTabletSmall!==false)b.options.items=b.options.itemsTabletSmall[1];if(c<=b.options.itemsMobile[0]&&b.options.itemsMobile!==false)b.options.items=b.options.itemsMobile[1]}if(b.options.items>b.itemsAmount&&b.options.itemsScaleUp===true)b.options.items=b.itemsAmount},response:function(){var c=this,e,d;if(c.options.responsive!==true)return false;d=a(b).width();c.resizer=function(){if(a(b).width()!==d){c.options.autoPlay!==false&&b.clearInterval(c.autoPlayInterval);b.clearTimeout(e);e=b.setTimeout(function(){d=a(b).width();c.updateVars()},c.options.responsiveRefreshRate)}};a(b).resize(c.resizer)},updatePosition:function(){var a=this;a.jumpTo(a.currentItem);a.options.autoPlay!==false&&a.checkAp()},appendItemsSizes:function(){var b=this,c=0,d=b.itemsAmount-b.options.items;b.$owlItems.each(function(e){var f=a(this);f.css({width:b.itemWidth}).data("owl-item",Number(e));if(e%b.options.items===0||e===d)if(!(e>d))c+=1;f.data("owl-roundPages",c)})},appendWrapperSizes:function(){var a=this,b=a.$owlItems.length*a.itemWidth;a.$owlWrapper.css({width:b*2,left:0});a.appendItemsSizes()},calculateAll:function(){var a=this;a.calculateWidth();a.appendWrapperSizes();a.loops();a.max()},calculateWidth:function(){var a=this;a.itemWidth=Math.round(a.$elem.width()/a.options.items)},max:function(){var a=this,b=(a.itemsAmount*a.itemWidth-a.options.items*a.itemWidth)*-1;if(a.options.items>a.itemsAmount){a.maximumItem=0;
4b=0;a.maximumPixels=0}else{a.maximumItem=a.itemsAmount-a.options.items;a.maximumPixels=b}return b},min:function(){return 0},loops:function(){var b=this,e=0,f=0,c,g,d;b.positionsInArray=[0];b.pagesInArray=[];for(c=0;c<b.itemsAmount;c+=1){f+=b.itemWidth;b.positionsInArray.push(-f);if(b.options.scrollPerPage===true){g=a(b.$owlItems[c]);d=g.data("owl-roundPages");if(d!==e){b.pagesInArray[e]=b.positionsInArray[c];e=d}}}},buildControls:function(){var b=this;if(b.options.navigation===true||b.options.pagination===true)b.owlControls=a('<div class="owl-controls"/>').toggleClass("clickable",!b.browser.isTouch).appendTo(b.$elem);b.options.pagination===true&&b.buildPagination();b.options.navigation===true&&b.buildButtons()},buildButtons:function(){var b=this,c=a('<div class="owl-buttons"/>');b.owlControls.append(c);b.buttonPrev=a("<div/>",{"class":"owl-prev",html:b.options.navigationText[0]||""});b.buttonNext=a("<div/>",{"class":"owl-next",html:b.options.navigationText[1]||""});c.append(b.buttonPrev).append(b.buttonNext);c.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()});c.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(c){c.preventDefault();if(a(this).hasClass("owl-next"))b.next();else b.prev()})},buildPagination:function(){var b=this;b.paginationWrapper=a('<div class="owl-pagination"/>');b.owlControls.append(b.paginationWrapper);b.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(c){c.preventDefault();Number(a(this).data("owl-page"))!==b.currentItem&&b.goTo(Number(a(this).data("owl-page")),true)})},updatePagination:function(){var b=this,e,f,h,c,d,g;if(b.options.pagination===false)return false;b.paginationWrapper.html("");e=0;f=b.itemsAmount-b.itemsAmount%b.options.items;for(c=0;c<b.itemsAmount;c+=1)if(c%b.options.items===0){e+=1;if(f===c)h=b.itemsAmount-b.options.items;d=a("<div/>",{"class":"owl-page"});g=a("<span></span>",{text:b.options.paginationNumbers===true?e:"","class":b.options.paginationNumbers===true?"owl-numbers":""});d.append(g);d.data("owl-page",f===c?h:c);d.data("owl-roundPages",e);b.paginationWrapper.append(d)}b.checkPagination()},checkPagination:function(){var b=this;if(b.options.pagination===false)return false;b.paginationWrapper.find(".owl-page").each(function(){if(a(this).data("owl-roundPages")===a(b.$owlItems[b.currentItem]).data("owl-roundPages")){b.paginationWrapper.find(".owl-page").removeClass("active");a(this).addClass("active")}})},checkNavigation:function(){var a=this;if(a.options.navigation===false)return false;if(a.options.rewindNav===false)if(a.currentItem===0&&a.maximumItem===0){a.buttonPrev.addClass("disabled");a.buttonNext.addClass("disabled")}else if(a.currentItem===0&&a.maximumItem!==0){a.buttonPrev.addClass("disabled");a.buttonNext.removeClass("disabled")}else if(a.currentItem===a.maximumItem){a.buttonPrev.removeClass("disabled");a.buttonNext.addClass("disabled")}else if(a.currentItem!==0&&a.currentItem!==a.maximumItem){a.buttonPrev.removeClass("disabled");a.buttonNext.removeClass("disabled")}},updateControls:function(){var a=this;a.updatePagination();a.checkNavigation();if(a.owlControls)if(a.options.items>=a.itemsAmount)a.owlControls.hide();else a.owlControls.show()},destroyControls:function(){var a=this;a.owlControls&&a.owlControls.remove()},next:function(b){var a=this;if(a.isTransition)return false;a.currentItem+=a.options.scrollPerPage===true?a.options.items:1;if(a.currentItem>a.maximumItem+(a.options.scrollPerPage===true?a.options.items-1:0))if(a.options.rewindNav===true){a.currentItem=0;b="rewind"}else{a.currentItem=a.maximumItem;return false}a.goTo(a.currentItem,b)},prev:function(b){var a=this;if(a.isTransition)return false;if(a.options.scrollPerPage===true&&a.currentItem>0&&a.currentItem<a.options.items)a.currentItem=0;else a.currentItem-=a.options.scrollPerPage===true?a.options.items:1;if(a.currentItem<0)if(a.options.rewindNav===true){a.currentItem=a.maximumItem;b="rewind"}else{a.currentItem=0;return false}a.goTo(a.currentItem,b)},goTo:function(c,e,f){var a=this,d;if(a.isTransition)return false;typeof a.options.beforeMove==="function"&&a.options.beforeMove.apply(this,[a.$elem]);if(c>=a.maximumItem)c=a.maximumItem;else if(c<=0)c=0;a.currentItem=a.owl.currentItem=c;if(a.options.transitionStyle!==false&&f!=="drag"&&a.options.items===1&&a.browser.support3d===true){a.swapSpeed(0);if(a.browser.support3d===true)a.transition3d(a.positionsInArray[c]);
4else a.css2slide(a.positionsInArray[c],1);a.afterGo();a.singleItemTransition();return false}d=a.positionsInArray[c];if(a.browser.support3d===true){a.isCss3Finish=false;if(e===true){a.swapSpeed("paginationSpeed");b.setTimeout(function(){a.isCss3Finish=true},a.options.paginationSpeed)}else if(e==="rewind"){a.swapSpeed(a.options.rewindSpeed);b.setTimeout(function(){a.isCss3Finish=true},a.options.rewindSpeed)}else{a.swapSpeed("slideSpeed");b.setTimeout(function(){a.isCss3Finish=true},a.options.slideSpeed)}a.transition3d(d)}else if(e===true)a.css2slide(d,a.options.paginationSpeed);else if(e==="rewind")a.css2slide(d,a.options.rewindSpeed);else a.css2slide(d,a.options.slideSpeed);a.afterGo()},jumpTo:function(b){var a=this;typeof a.options.beforeMove==="function"&&a.options.beforeMove.apply(this,[a.$elem]);if(b>=a.maximumItem||b===-1)b=a.maximumItem;else if(b<=0)b=0;a.swapSpeed(0);if(a.browser.support3d===true)a.transition3d(a.positionsInArray[b]);else a.css2slide(a.positionsInArray[b],1);a.currentItem=a.owl.currentItem=b;a.afterGo()},afterGo:function(){var a=this;a.prevArr.push(a.currentItem);a.prevItem=a.owl.prevItem=a.prevArr[a.prevArr.length-2];a.prevArr.shift(0);if(a.prevItem!==a.currentItem){a.checkPagination();a.checkNavigation();a.eachMoveUpdate();a.options.autoPlay!==false&&a.checkAp()}typeof a.options.afterMove==="function"&&a.prevItem!==a.currentItem&&a.options.afterMove.apply(this,[a.$elem])},stop:function(){var a=this;a.apStatus="stop";b.clearInterval(a.autoPlayInterval)},checkAp:function(){var a=this;a.apStatus!=="stop"&&a.play()},play:function(){var a=this;a.apStatus="play";if(a.options.autoPlay===false)return false;b.clearInterval(a.autoPlayInterval);a.autoPlayInterval=b.setInterval(function(){a.next(true)},a.options.autoPlay)},swapSpeed:function(b){var a=this;if(b==="slideSpeed")a.$owlWrapper.css(a.addCssSpeed(a.options.slideSpeed));else if(b==="paginationSpeed")a.$owlWrapper.css(a.addCssSpeed(a.options.paginationSpeed));else typeof b!=="string"&&a.$owlWrapper.css(a.addCssSpeed(b))},addCssSpeed:function(a){return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},transition3d:function(b){var a=this;a.$owlWrapper.css(a.doTranslate(b))},css2move:function(a){var b=this;b.$owlWrapper.css({left:a})},css2slide:function(c,b){var a=this;a.isCssFinish=false;a.$owlWrapper.stop(true,true).animate({left:c},{duration:b||a.options.slideSpeed,complete:function(){a.isCssFinish=true}})},checkBrowser:function(){var i=this,a="translate3d(0px, 0px, 0px)",f=c.createElement("div"),h,d,e,g;f.style.cssText=" -moz-transform:"+a+"; -ms-transform:"+a+"; -o-transform:"+a+"; -webkit-transform:"+a+"; transform:"+a;h=/translate3d\(0px, 0px, 0px\)/g;d=f.style.cssText.match(h);e=d!==null&&d.length===1;g="ontouchstart"in b||b.navigator.msMaxTouchPoints;i.browser={support3d:e,isTouch:g}},moveEvents:function(){var a=this;if(a.options.mouseDrag!==false||a.options.touchDrag!==false){a.gestures();a.disabledEvents()}},eventTypes:function(){var a=this,b=["s","e","x"];a.ev_types={};if(a.options.mouseDrag===true&&a.options.touchDrag===true)b=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"];else if(a.options.mouseDrag===false&&a.options.touchDrag===true)b=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"];else if(a.options.mouseDrag===true&&a.options.touchDrag===false)b=["mousedown.owl","mousemove.owl","mouseup.owl"];a.ev_types.start=b[0];a.ev_types.move=b[1];a.ev_types.end=b[2]},disabledEvents:function(){var b=this;b.$elem.on("dragstart.owl",function(a){a.preventDefault()});b.$elem.on("mousedown.disableTextSelect",function(b){return a(b.target).is("input, textarea, select, option")})},gestures:function(){var d=this,e={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};d.isCssFinish=true;function f(a){if(a.touches!==undefined)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(a.touches===undefined){if(a.pageX!==undefined)return{x:a.pageX,y:a.pageY};if(a.pageX===undefined)return{x:a.clientX,y:a.clientY}}}function g(b){if(b==="on"){a(c).on(d.ev_types.move,i);a(c).on(d.ev_types.end,j)}else if(b==="off"){a(c).off(d.ev_types.move);a(c).off(d.ev_types.end)}}function h(i){var c=i.originalEvent||i||b.event,h;if(c.which===3)return false;
4if(d.itemsAmount<=d.options.items)return;if(d.isCssFinish===false&&!d.options.dragBeforeAnimFinish)return false;if(d.isCss3Finish===false&&!d.options.dragBeforeAnimFinish)return false;d.options.autoPlay!==false&&b.clearInterval(d.autoPlayInterval);d.browser.isTouch!==true&&!d.$owlWrapper.hasClass("grabbing")&&d.$owlWrapper.addClass("grabbing");d.newPosX=0;d.newRelativeX=0;a(this).css(d.removeTransition());h=a(this).position();e.relativePos=h.left;e.offsetX=f(c).x-h.left;e.offsetY=f(c).y-h.top;g("on");e.sliding=false;e.targetElement=c.target||c.srcElement}function i(j){var g=j.originalEvent||j||b.event,i,h;d.newPosX=f(g).x-e.offsetX;d.newPosY=f(g).y-e.offsetY;d.newRelativeX=d.newPosX-e.relativePos;if(typeof d.options.startDragging==="function"&&e.dragging!==true&&d.newRelativeX!==0){e.dragging=true;d.options.startDragging.apply(d,[d.$elem])}if((d.newRelativeX>8||d.newRelativeX<-8)&&d.browser.isTouch===true){if(g.preventDefault!==undefined)g.preventDefault();else g.returnValue=false;e.sliding=true}(d.newPosY>10||d.newPosY<-10)&&e.sliding===false&&a(c).off("touchmove.owl");i=function(){return d.newRelativeX/5};h=function(){return d.maximumPixels+d.newRelativeX/5};d.newPosX=Math.max(Math.min(d.newPosX,i()),h());if(d.browser.support3d===true)d.transition3d(d.newPosX);else d.css2move(d.newPosX)}function j(j){var c=j.originalEvent||j||b.event,i,f,h;c.target=c.target||c.srcElement;e.dragging=false;d.browser.isTouch!==true&&d.$owlWrapper.removeClass("grabbing");if(d.newRelativeX<0)d.dragDirection=d.owl.dragDirection="left";else d.dragDirection=d.owl.dragDirection="right";if(d.newRelativeX!==0){i=d.getNewPosition();d.goTo(i,false,"drag");if(e.targetElement===c.target&&d.browser.isTouch!==true){a(c.target).on("click.disable",function(b){b.stopImmediatePropagation();b.stopPropagation();b.preventDefault();a(b.target).off("click.disable")});f=a._data(c.target,"events").click;h=f.pop();f.splice(0,0,h)}}g("off")}d.$elem.on(d.ev_types.start,".owl-wrapper",h)},getNewPosition:function(){var a=this,b=a.closestItem();if(b>a.maximumItem){a.currentItem=a.maximumItem;b=a.maximumItem}else if(a.newPosX>=0){b=0;a.currentItem=0}return b},closestItem:function(){var b=this,c=b.options.scrollPerPage===true?b.pagesInArray:b.positionsInArray,e=b.newPosX,d=null;a.each(c,function(f,g){if(e-b.itemWidth/20>c[f+1]&&e-b.itemWidth/20<g&&b.moveDirection()==="left"){d=g;if(b.options.scrollPerPage===true)b.currentItem=a.inArray(d,b.positionsInArray);else b.currentItem=f}else if(e+b.itemWidth/20<g&&e+b.itemWidth/20>(c[f+1]||c[f]-b.itemWidth)&&b.moveDirection()==="right")if(b.options.scrollPerPage===true){d=c[f+1]||c[c.length-1];b.currentItem=a.inArray(d,b.positionsInArray)}else{d=c[f+1];b.currentItem=f+1}});return b.currentItem},moveDirection:function(){var b=this,a;if(b.newRelativeX<0){a="right";b.playDirection="next"}else{a="left";b.playDirection="prev"}return a},customEvents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()});a.$elem.on("owl.prev",function(){a.prev()});a.$elem.on("owl.play",function(c,b){a.options.autoPlay=b;a.play();a.hoverStatus="play"});a.$elem.on("owl.stop",function(){a.stop();a.hoverStatus="stop"});a.$elem.on("owl.goTo",function(c,b){a.goTo(b)});a.$elem.on("owl.jumpTo",function(c,b){a.jumpTo(b)})},stopOnHover:function(){var a=this;if(a.options.stopOnHover===true&&a.browser.isTouch!==true&&a.options.autoPlay!==false){a.$elem.on("mouseover",function(){a.stop()});a.$elem.on("mouseout",function(){a.hoverStatus!=="stop"&&a.play()})}},lazyLoad:function(){var c=this,e,b,f,d,g;if(c.options.lazyLoad===false)return false;for(e=0;e<c.itemsAmount;e+=1){b=a(c.$owlItems[e]);if(b.data("owl-loaded")==="loaded")continue;f=b.data("owl-item");d=b.find(".lazyOwl");if(typeof d.data("src")!=="string"){b.data("owl-loaded","loaded");continue}if(b.data("owl-loaded")===undefined){d.hide();b.addClass("loading").data("owl-loaded","checked")}if(c.options.lazyFollow===true)g=f>=c.currentItem;else g=true;g&&f<c.currentItem+c.options.items&&d.length&&c.lazyPreload(b,d)}},lazyPreload:function(h,a){var c=this,f=0,d;if(a.prop("tagName")==="DIV"){a.css("background-image","url("+a.data("src")+")");d=true}else a[0].src=a.data("src");function g(){h.data("owl-loaded","loaded").removeClass("loading");a.removeAttr("data-src");if(c.options.lazyEffect==="fade")a.fadeIn(400);else a.show();typeof c.options.afterLazyLoad==="function"&&c.options.afterLazyLoad.apply(this,[c.$elem])}function e(){f+=1;if(c.completeImg(a.get(0))||d===true)g();else if(f<=100)b.setTimeout(e,100);else g()}e()},autoHeight:function(){var c=this,e=a(c.$owlItems[c.currentItem]).find("img"),d;function g(){var d=a(c.$owlItems[c.currentItem]).height();c.wrapperOuter.css("height",d+"px");!c.wrapperOuter.hasClass("autoHeight")&&b.setTimeout(function(){c.wrapperOuter.addClass("autoHeight")},0)}function f(){d+=1;if(c.completeImg(e.get(0)))g();else if(d<=100)b.setTimeout(f,100);else c.wrapperOuter.css("height","")}if(e.get(0)!==undefined){d=0;f()}else g()},completeImg:function(a){var b;if(!a.complete)return false;
4b=typeof a.naturalWidth;return b!=="undefined"&&a.naturalWidth===0?false:true},onVisibleItems:function(){var b=this,c;b.options.addClassActive===true&&b.$owlItems.removeClass("active");b.visibleItems=[];for(c=b.currentItem;c<b.currentItem+b.options.items;c+=1){b.visibleItems.push(c);b.options.addClassActive===true&&a(b.$owlItems[c]).addClass("active")}b.owl.visibleItems=b.visibleItems},transitionTypes:function(a){var b=this;b.outClass="owl-"+a+"-out";b.inClass="owl-"+a+"-in"},singleItemTransition:function(){var a=this,f=a.outClass,g=a.inClass,c=a.$owlItems.eq(a.currentItem),d=a.$owlItems.eq(a.prevItem),i=Math.abs(a.positionsInArray[a.currentItem])+a.positionsInArray[a.prevItem],e=Math.abs(a.positionsInArray[a.currentItem])+a.itemWidth/2,b="webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend";a.isTransition=true;a.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":e+"px","-moz-perspective-origin":e+"px","perspective-origin":e+"px"});function h(a){return{position:"relative",left:a+"px"}}d.css(h(i,10)).addClass(f).on(b,function(){a.endPrev=true;d.off(b);a.clearTransStyle(d,f)});c.addClass(g).on(b,function(){a.endCurrent=true;c.off(b);a.clearTransStyle(c,g)})},clearTransStyle:function(c,b){var a=this;c.css({position:"",left:""}).removeClass(b);if(a.endPrev&&a.endCurrent){a.$owlWrapper.removeClass("owl-origin");a.endPrev=false;a.endCurrent=false;a.isTransition=false}},owlStatus:function(){var a=this;a.owl={userOptions:a.userOptions,baseElement:a.$elem,userItems:a.$userItems,owlItems:a.$owlItems,currentItem:a.currentItem,prevItem:a.prevItem,visibleItems:a.visibleItems,isTouch:a.browser.isTouch,browser:a.browser,dragDirection:a.dragDirection}},clearEvents:function(){var d=this;d.$elem.off(".owl owl mousedown.disableTextSelect");a(c).off(".owl owl");a(b).off("resize",d.resizer)},unWrap:function(){var a=this;if(a.$elem.children().length!==0){a.$owlWrapper.unwrap();a.$userItems.unwrap().unwrap();a.owlControls&&a.owlControls.remove()}a.clearEvents();a.$elem.attr("style",a.$elem.data("owl-originalStyles")||"").attr("class",a.$elem.data("owl-originalClasses"))},destroy:function(){var a=this;a.stop();b.clearInterval(a.checkVisible);a.unWrap();a.$elem.removeData()},reinit:function(c){var b=this,d=a.extend({},b.userOptions,c);b.unWrap();b.init(d,b.$elem)},addItem:function(c,d){var a=this,b;if(!c)return false;if(a.$elem.children().length===0){a.$elem.append(c);a.setVars();return false}a.unWrap();if(d===undefined||d===-1)b=-1;else b=d;if(b>=a.$userItems.length||b===-1)a.$userItems.eq(-1).after(c);else a.$userItems.eq(b).before(c);a.setVars()},removeItem:function(b){var a=this,c;if(a.$elem.children().length===0)return false;if(b===undefined||b===-1)c=-1;else c=b;a.unWrap();a.$userItems.eq(c).remove();a.setVars()}};a.fn.owlCarousel=function(b){return this.each(function(){if(a(this).data("owl-init")===true)return false;a(this).data("owl-init",true);var c=Object.create(d);c.init(b,this);a.data(this,"owlCarousel",c)})};a.fn.owlCarousel.options={items:5,itemsCustom:false,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:false,itemsMobile:[479,1],singleItem:false,itemsScaleUp:false,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:false,stopOnHover:false,navigation:false,navigationText:["prev","next"],rewindNav:true,scrollPerPage:false,pagination:true,paginationNumbers:false,responsive:true,responsiveRefreshRate:200,responsiveBaseWidth:b,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:false,lazyFollow:true,lazyEffect:"fade",autoHeight:false,jsonPath:false,jsonSuccess:false,dragBeforeAnimFinish:true,mouseDrag:true,touchDrag:true,addClassActive:false,transitionStyle:false,beforeUpdate:false,afterUpdate:false,beforeInit:false,afterInit:false,beforeMove:false,afterMove:false,afterAction:false,startDragging:false,afterLazyLoad:false}})(jQuery,window,document);function af$(n){return document.getElementById(n)}function AF_getEvent(n){if(window.event)var n=window.event;return n}function addEvent(n,t,i){n!=null&&(n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent&&(typeof n["e"+t+i]!="undefined"?(n["e"+t+i]=i,n[t+i]=function(){n["e"+t+i](window.event)},n.attachEvent("on"+t,n[t+i])):n.attachEvent("on"+t,i)))}function removeEvent(n,t,i){n!=null&&(n.removeEventListener?n.removeEventListener(t,i,!1):n.detachEvent&&(typeof n["e"+t+i]!="undefined"?(n.detachEvent("on"+t,n[t+i]),n[t+i]=null):n.detachEvent("on"+t,i)))}function getClientWidthHeight(){var n=0,t=0;return typeof innerWidth=="number"?(n=window.innerWidth,t=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(n=document.documentElement.clientWidth,t=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(n=document.body.clientWidth,t=document.body.clientHeight),[n,t]}function getScrollXY(){var n=0,t=0;return typeof pageYOffset=="number"?(t=window.pageYOffset,n=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(t=document.body.scrollTop,n=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(t=document.documentElement.scrollTop,n=document.documentElement.scrollLeft),[n,t]}function gotoFocus(n){n.length>0&&document.getElementById(n)&&document.getElementById(n).focus()}function isValidDate(n,t,i){function u(n){n=parseInt(n);var t=new Array(2);for(t[0]=[1,2,3,4,5,6,7,8,9,10,11,12],t[1]=["January","Febuary","March","April","May","June","July","August","September","October","November","December"],q=1;q!=12;++q)if(n==t[0][q])return t[1][q];return""}if(n=parseInt(n,10),t=parseInt(t,10),i=parseInt(i,10),n==""||t==""||i==""||isNaN(n)||isNaN(t)||isNaN(i))return"Not a valid date -->\n";if(n>12||isNaN(n))return"Not a valid month \n";if(t>31||isNaN(t))return"Not a valid date \n";if(i<1900||i>2080)return"Not a valid year \n";var r=["0","31","28","31","30","31","30","31","31","30","31","30","31"];if(n!=2){if(t>parseInt(r[n]))return"The date selected should be less than or equal to "+r[n].toString()+" in "+u(n).toString()+"--> \n"}else if(i%4==0){if(t>29)return"The date selected should be less than or equal to 29 in February, "+i+" -->\n"}else if(t>28)return" The date selected should be less than or equal to 28 in February, "+i+" -->\n";return!0}
4function onlyNumbers(n){if(isNaN(n.value))for(var t=0,i,r;t<n.value.length;)i=n.value.charAt(t)>="0"&&n.value.charAt(t)<="9",r=n.value.charAt(t)==".",i||r?++t:n.value=t==0?n.value.slice(t+1,n.value.length):t==n.value.length?n.value.slice(0,t-1):n.value.slice(0,t)+n.value.slice(t+1,n.value.length)}function onlyNumbersNoDec(n){if(isNaN(n.value))for(var t=0,i;t<n.value.length;)i=n.value.charAt(t)>="0"&&n.value.charAt(t)<="9",i?++t:n.value=t==0?n.value.slice(t+1,n.value.length):t==n.value.length?n.value.slice(0,t-1):n.value.slice(0,t)+n.value.slice(t+1,n.value.length)}function onKeyPressOnlyNumbersWithPeriod(){var n=AF_getEvent(window.event);if((n.keyCode<48||n.keyCode>57)&&n.keyCode!=46)return n.returnValue=!1}function onKeyPressOnlyNumbers(){var n=AF_getEvent(window.event);if(n.keyCode<48||n.keyCode>57)return n.returnValue=!1}function hyphenize(n){for(var i="",t=0;t<n.length;++t)i+=n.charCodeAt(t)>=48&&n.charCodeAt(t)<=57||n.charCodeAt(t)>=65&&n.charCodeAt(t)<=90||n.charCodeAt(t)>=97&&n.charCodeAt(t)<=122?String.fromCharCode(n.charCodeAt(t)):n.charCodeAt(t)==38?"and":n.charCodeAt(t)==32||n.charCodeAt(t)==45?"-":"_";return i}$(document).ready(function(){function c(){var n=ct.$Elmt.parentNode.clientWidth,t=$(window).width();n?ct.$ScaleWidth(t):window.setTimeout(c,30)}function ut(){var n=lt.$Elmt.parentNode.clientWidth;n?lt.$SetScaleWidth(n):window.setTimeout(ScaleSlider,30)}function a(){var n=at.$Elmt.parentNode.clientWidth;n?at.$SetScaleWidth(n):window.setTimeout(a,30)}function v(){var n=vt.$Elmt.parentNode.clientWidth,t=$(window).width();n?vt.$ScaleWidth(t):window.setTimeout(v,30)}function ft(){var n=yt.$Elmt.parentNode.clientWidth;n?yt.$SetScaleWidth(n):window.setTimeout(ScaleSlider,30)}var t,b,y,k,d,g,n,et,w,nt,tt,it,i,rt;if($("#dw-jssor-slider").length>0){t=[{$Duration:800,$Delay:30,$Cols:8,$Rows:4,$Formation:$JssorSlideshowFormations$.$FormationStraightStairs,$Assembly:2050,$Opacity:2}];typeof CusSlideshowTransitions!="undefined"&&(t=CusSlideshowTransitions);b=!0;typeof Autoplay!="undefined"&&(b=Autoplay);y=4e3;typeof ExtraAutoPlayInterval!="undefined"&&(y=ExtraAutoPlayInterval);k=500;typeof ExtraSlideDuration!="undefined"&&(k=ExtraSlideDuration);n={$AutoPlay:b,$AutoPlaySteps:1,$AutoPlayInterval:y,$Idle:y,$PauseOnHover:1,$ArrowKeyNavigation:!0,$SlideDuration:k,$MinDragOffsetToSlide:20,$SlideSpacing:0,$DisplayPieces:1,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:3,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:t,$TransitionsOrder:1,$ShowLink:!0},$BulletNavigatorOptions:{$Class:$JssorBulletNavigator$,$ChanceToShow:2,$AutoCenter:0,$Steps:1,$Lanes:1,$SpacingX:10,$SpacingY:10,$Orientation:1},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2}};$("#dw-jssor-slider.theme2").length>0&&(t=[{$Duration:800,$Delay:30,$Cols:8,$Rows:4,$Formation:$JssorSlideshowFormations$.$FormationStraightStairs,$Assembly:2050,$Opacity:2}],n={$AutoPlay:!0,$AutoPlaySteps:1,$AutoPlayInterval:4e3,$PauseOnHover:1,$ArrowKeyNavigation:!0,$SlideDuration:500,$MinDragOffsetToSlide:20,$SlideSpacing:0,$DisplayPieces:1,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:3,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:t,$TransitionsOrder:1,$ShowLink:!0},$BulletNavigatorOptions:{$Class:$JssorBulletNavigator$,$ChanceToShow:2,$AutoCenter:0,$Steps:1,$Lanes:1,$SpacingX:10,$SpacingY:10,$Orientation:1},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2}});d=new $JssorSlider$("dw-jssor-slider",n);r();$(window).bind("load",r);$(window).bind("resize",r);$(window).bind("orientationchange",r);function r(){var n=d.$Elmt.parentNode.clientWidth,t=$(window).width();n?d.$ScaleWidth(t):window.setTimeout(r,30)}if($("#dw-jssor-slider2").length>0){g=new $JssorSlider$("dw-jssor-slider2",n);$(window).bind("load",p);$(window).bind("resize",p);$(window).bind("orientationchange",p);function p(){var n=g.$Elmt.parentNode.clientWidth,t=$(window).width();n?g.$ScaleWidth(t):window.setTimeout(p,30)}}}if($("#dw-jssor-slider3").length>0){n={$AutoPlay:!0,$AutoPlaySteps:3,$AutoPlayInterval:0,$PauseOnHover:3,$ArrowKeyNavigation:!1,$SlideEasing:$JssorEasing$.$EaseLinear,$SlideDuration:6e3,$MinDragOffsetToSlide:20,$SlideWidth:630,$SlideSpacing:0,$DisplayPieces:4,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:1,$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2}};et=new $JssorSlider$("dw-jssor-slider3",n);function u(){var n=$(window).width();n?et.$ScaleWidth(n):window.setTimeout(u,30)}u();$(window).bind("load",u);$(window).bind("resize",u);$(window).bind("orientationchange",u)}if($("#dw-videoslider").length>0&&(IsMobile?$(".player").css("display","none"):($(".player").css("display","block"),$(".player").YTPlayer())),$("#dw-jssor-slider4").length>0){var t=[{$Duration:1200,$During:{$Left:[.3,.7]}
4,$FlyDirection:2,$Easing:{$Left:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseLinear},$ScaleHorizontal:.3,$Opacity:2}],n={$AutoPlay:!0,$AutoPlaySteps:1,$AutoPlayInterval:4e3,$PauseOnHover:1,$ArrowKeyNavigation:!0,$SlideDuration:500,$MinDragOffsetToSlide:20,$SlideSpacing:0,$DisplayPieces:1,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:3},ot=new $JssorSlider$("dw-jssor-slider4",n);function f(){var n=ot.$Elmt.parentNode.clientWidth;n?ot.$SetScaleWidth(n):window.setTimeout(f,30)}f();$(window).bind("load",f);$(window).bind("resize",f);$(window).bind("orientationchange",f)}if($("#dw-jssor-slider5").length>0){var t=[{$Duration:800,$Delay:30,$Cols:8,$Rows:4,$Formation:$JssorSlideshowFormations$.$FormationStraightStairs,$Assembly:2050,$Opacity:2}],n={$AutoPlay:!0,$AutoPlaySteps:1,$AutoPlayInterval:4e3,$PauseOnHover:1,$ArrowKeyNavigation:!0,$SlideDuration:500,$MinDragOffsetToSlide:20,$SlideSpacing:0,$DisplayPieces:1,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:3,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:t,$TransitionsOrder:1,$ShowLink:!0},$BulletNavigatorOptions:{$Class:$JssorBulletNavigator$,$ChanceToShow:2,$AutoCenter:0,$Steps:1,$Lanes:1,$SpacingX:10,$SpacingY:10,$Orientation:1},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2}},st=new $JssorSlider$("dw-jssor-slider5",n);function e(){var n=st.$Elmt.parentNode.clientWidth;n?st.$SetScaleWidth(n):window.setTimeout(e,30)}e();$(window).bind("load",e);$(window).bind("resize",e);$(window).bind("orientationchange",e)}if($("#dw-jssor-slider7").length>0)var w={$AutoPlay:!0,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:[{$Duration:700,$Fade:!0,$Opacity:2}]},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2}},nt=new $JssorSlider$("dw-fade_slider1",w),ri=new $JssorSlider$("dw-fade_slider2",w);if($("#dw-jssor-slider6").length>0){var t=[{$Duration:1200,$During:{$Left:[.3,.7]},$FlyDirection:2,$Easing:{$Left:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseLinear},$ScaleHorizontal:.3,$Opacity:2}],n={$AutoPlay:!0,$AutoPlaySteps:1,$AutoPlayInterval:4e3,$PauseOnHover:1,$ArrowKeyNavigation:!0,$SlideDuration:500,$MinDragOffsetToSlide:20,$SlideSpacing:0,$DisplayPieces:1,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:3},ht=new $JssorSlider$("dw-jssor-slider6",n);function o(){var n=ht.$Elmt.parentNode.clientWidth;n?ht.$SetScaleWidth(n):window.setTimeout(o,30)}o();$(window).bind("load",o);$(window).bind("resize",o);$(window).bind("orientationchange",o)}if($("#dw-jssor-sliderReview").length>0){w={$AutoPlay:!0,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:[{$Duration:700,$Fade:!0,$Opacity:2}]},$ArrowKeyNavigation:!0,$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2}};nt=new $JssorSlider$("dw-jssor-sliderReview",w);function ScaleSlider(){var t=$(window).width(),n=nt.$Elmt.parentNode.clientWidth;n?nt.$ScaleWidth(n):window.setTimeout(ScaleSlider,30)}ScaleSlider();$(window).bind("load",ScaleSlider);$(window).bind("resize",ScaleSlider);$(window).bind("orientationchange",ScaleSlider);window.onresize=function(){ScaleSlider()}}if($("#dw-jssor-slider8").length>0){i={$AutoPlay:!0,$AutoPlaySteps:3,$AutoPlayInterval:0,$PauseOnHover:3,$ArrowKeyNavigation:!1,$SlideEasing:$JssorEasing$.$EaseLinear,$SlideDuration:6e3,$MinDragOffsetToSlide:20,$SlideWidth:240,$SlideSpacing:0,$DisplayPieces:7,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:1,$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2}};tt=new $JssorSlider$("dw-jssor-slider8",i);function s(){var n=tt.$Elmt.parentNode.clientWidth;n?tt.$SetScaleWidth(n):window.setTimeout(s,30)}s();$(window).bind("load",s);$(window).bind("resize",s);$(window).bind("orientationchange",s)}if($("#dw-jssor-slider9").length>0){i={$AutoPlay:!0,$AutoPlaySteps:3,$AutoPlayInterval:0,$PauseOnHover:3,$ArrowKeyNavigation:!1,$SlideEasing:$JssorEasing$.$EaseLinear,$SlideDuration:6e3,$MinDragOffsetToSlide:20,$SlideWidth:240,$SlideSpacing:0,$DisplayPieces:8,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:1,$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2}};it=new $JssorSlider$("dw-jssor-slider9",i);function h(){var n=it.$Elmt.parentNode.clientWidth;n?it.$SetScaleWidth(n):window.setTimeout(h,30)}h();$(window).bind("load",h);$(window).bind("resize",h);$(window).bind("orientationchange",h)}if($("#dw-jssor-slider11").length>0){var pt=[{$Duration:1e3,$Delay:80,$Cols:8,$Rows:4,$Clip:15,$SlideOut:!0,$E
4asing:$JssorEasing$.$EaseOutQuad}],wt={$AutoPlay:!0,$AutoPlaySteps:1,$AutoPlayInterval:4e3,$PauseOnHover:1,$ArrowKeyNavigation:!0,$SlideDuration:500,$MinDragOffsetToSlide:20,$SlideSpacing:0,$DisplayPieces:1,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:3,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:pt,$TransitionsOrder:1,$ShowLink:!0},$BulletNavigatorOptions:{$Class:$JssorBulletNavigator$,$ChanceToShow:2,$AutoCenter:0,$Steps:1,$Lanes:1,$SpacingX:10,$SpacingY:10,$Orientation:1},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2}},ct=new $JssorSlider$("dw-jssor-slider11",wt);c();$(window).bind("load",c);$(window).bind("resize",c);$(window).bind("orientationchange",c)}if($("#dw-jssor-slider10").length>0){i={$AutoPlay:0,$SlideDuration:3e3,$SlideWidth:400,$SlideHeight:200,$SlideSpacing:10,$Cols:4,$Align:0,$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$Steps:4},$BulletNavigatorOptions:{$Class:$JssorBulletNavigator$}};rt=new $JssorSlider$("dw-jssor-slider10",i);function l(){var n=rt.$Elmt.parentNode.clientWidth;n?rt.$SetScaleWidth(n):window.setTimeout(l,30)}l();$(window).bind("load",l);$(window).bind("resize",l);$(window).bind("orientationchange",l)}if($("#dw-jssor-slider12").length>0){var bt=[{$Duration:1200,$During:{$Left:[.3,.7]},$FlyDirection:2,$Easing:{$Left:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseLinear},$ScaleHorizontal:.3,$Opacity:2}],kt={$AutoPlay:!0,$AutoPlaySteps:1,$AutoPlayInterval:4e3,$PauseOnHover:1,$ArrowKeyNavigation:!0,$SlideDuration:500,$MinDragOffsetToSlide:20,$SlideSpacing:0,$DisplayPieces:1,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:3,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:bt,$TransitionsOrder:1,$ShowLink:!0},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:1},$ThumbnailNavigatorOptions:{$Class:$JssorThumbnailNavigator$,$ChanceToShow:2,$ActionMode:1,$SpacingX:3,$DisplayPieces:8,$ParkingPosition:47}},lt=new $JssorSlider$("dw-jssor-slider12",kt);ut();$(window).bind("load",function(){ut()});$(window).bind("resize",ScaleSlider);$(window).bind("orientationchange",ScaleSlider);window.onresize=function(){ut()}}if($("#dw-jssor-slider13").length>0){var t=[{$Duration:1200,$During:{$Left:[.3,.7]},$FlyDirection:2,$Easing:{$Left:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseLinear},$ScaleHorizontal:.3,$Opacity:2}],dt={$AutoPlay:!0,$AutoPlaySteps:1,$AutoPlayInterval:4e3,$PauseOnHover:1,$ArrowKeyNavigation:!0,$SlideDuration:500,$MinDragOffsetToSlide:20,$SlideSpacing:0,$DisplayPieces:1,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:0,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:t,$TransitionsOrder:1,$ShowLink:!0},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:1},$ThumbnailNavigatorOptions:{$Class:$JssorThumbnailNavigator$,$ChanceToShow:2,$ActionMode:1,$SpacingX:3,$DisplayPieces:8,$ParkingPosition:47,$DisableDrag:!0}},at=new $JssorSlider$("dw-jssor-slider13",dt);a();$(window).bind("load",function(){a()});$(window).bind("resize",a);$(window).bind("orientationchange",a)}if($("#dw-jssor-slider14").length>0){var gt={$Duration:900,y:.3,$During:{$Top:[.3,.7]},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},ni={$AutoPlay:1,$DragOrientation:2,$PlayOrientation:2,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:gt,$TransitionsOrder:1,$ShowLink:!0},$BulletNavigatorOptions:{$Class:$JssorBulletNavigator$,$Orientation:2},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2}},vt=new $JssorSlider$("dw-jssor-slider14",ni);v();$(window).bind("load",v);$(window).bind("resize",v);$(window).bind("orientationchange",v)}if($("#dw-jssor-slider15").length>0){var ti={$Duration:800,x:-.3,$During:{$Left:[.3,.7]},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},ii={$AutoPlay:!0,$AutoPlaySteps:1,$AutoPlayInterval:4e3,$PauseOnHover:1,$ArrowKeyNavigation:!0,$SlideDuration:500,$MinDragOffsetToSlide:20,$SlideSpacing:0,$DisplayPieces:1,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:3,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:ti,$TransitionsOrder:1,$ShowLink:!0},$BulletNavigatorOptions:{$Class:$JssorBulletNavigator$,$SpacingX:16,$SpacingY:16},$ThumbnailNavigatorOptions:{$Class:$JssorThumbnailNavigator$,$ChanceToShow:2,$ActionMode:1,$SpacingX:3,$DisplayPieces:8,$ParkingPosition:47}},yt=new $JssorSlider$("dw-jssor-slider15",ii);ft();$(window).bind("load",function(){ft()});$(window).bind("resize",ScaleSlider);$(window).bind("orientationchange",ScaleSlider);window.onresize=function(){ft()}}});function SlideLogoParade(){var i=$(window).width(),n=parseInt(i/100),r,t,u,f;$("#htmDiv_CarLogo").length>0&&(r=$("#LogoParadeSlide").children().length,r<=n&&i>1200&&($("#logoParade").css("max-Width","1200px"),n=12),$("#htmDiv_CarLogo").width($("#logoParade").width()),$("#htmDiv_CarLogo").height($("#logoParade").height()),t=3e3,typeof ExtraDuration_HLogo!="undefined"&&(t=ExtraDuration_HLogo),u={$AutoPlay:!0,$AutoPlaySteps:1,$AutoPlayInterval:0,$PauseOnHover:3,$ArrowKeyNavigation:!1,$SlideEasing:$JssorEasing$.$EaseLinear,$SlideDuration:t,$MinDragOffsetToSlide:20,$SlideWidth:100,$SlideSpacing:0,$DisplayPieces:n,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:1},f=new $JssorSlider$("htmDiv_CarLogo",u))}jQuery(document).ready(function(){IsMobile==!1&&setTimeout(function(){SlideLogoParade()},10)});function GetInventorySpecials_LazyLoading_Callback(n){n!=null&&n.length>0?($("#owl-demo").html(n),SlideFeaturedVehicles(),ResizeSpecialImg(),OverlayimgUrl.length>0&&$("img.imgClsCom").each(function(n){var t=$('<div class="dwInvHTMLOverlay" style="background-image: url('+OverlayimgUrl+');" id="dwInvHTMLOverlay_'+n+'"><\/div>'),i=this;t.insertAfter($(i))}),addEvent(window,"resize",function(){SlideFeaturedVehicles();ResizeSpecialImg()}),$(window).bind("orientationchange",function(){SlideFeaturedVehicles();ResizeSpecialImg()})):$("#divFeaturedbg").hide()}function ResizeSpecialImg(){var n=$(".owl-item img.imgClsCom").innerWidth(),t=n/900,i=675*t;$(".dwBoxSpecialImg").height(i)}function SlideFeaturedVehicles(){typeof $("#owl-demo").data("owlCarousel")!="undefined"&&($("#owl-demo").data("owlCarousel").destroy(),$("#owl-demo").removeClass("owl-carousel"));$("#divFeaturedbg").show();var n=$("#owl-demo").owlCarousel(getOptions());
4$(".owl-controls").css("display")=="none"?$("#divFeaturedbg").css("padding-bottom","10px"):$("#divFeaturedbg").css("padding-bottom","0px")}function getOptions(){var n=300;typeof FeaturedItemMaxHWidth!="undefined"&&(n=FeaturedItemMaxHWidth);var t=4,i=viewportWidth(),r=$("#owl-demo")[0].clientWidth;return t=r<i?parseInt(r/n):parseInt(i/n),{autoPlay:IsMobile==!0?2e3:3e3,items:t,loop:!0,stopOnHover:!0,pullDrag:!1,freeDrag:!1,slideSpeed:IsMobile==!0?500:4e3,lazyLoad:!0}}$(window).on("load",function(){var n,t;$("#owl-demo").length>0&&(n=0,typeof hideFeaturedCars!="undefined"&&(n=hideFeaturedCars),n!=1?(t=3e3,typeof FeaturedCarsTimeOutVal!="undefined"&&(t=FeaturedCarsTimeOutVal),setTimeout(function(){var n="{intDealerId: "+$("#hdnDealerID").val()+', strDealerWebsite: "'+$("#hdnDealerSiteUrl").val()+'", strName: "'+$("#hdnDealerName").val()+'", strPhone: "'+$("#hdnDealerPhone").val()+'", strCity: "'+$("#hdnDealerCity").val()+'", strState: "'+$("#hdnDealerState").val()+'", strRegion: "'+$("#hdnRegion1").val()+'", strRegion2: "'+$("#hdnRegion2").val()+'", strRegion3: "'+$("#hdnRegion3").val()+'", strCounty: "'+$("#hdnCounty").val()+'", blnIsSecureURL: "'+$("#hdnIsSecureURL").val()+'", blnHidePrices: "'+$("#hdnHidePrices").val()+'", intInventoryUrlType: "'+$("#hdnInventoryUrlType").val()+'"}';JqueryAjaxCall("POST","GetInventorySpecials_LazyLoading",n)},t)):$("#divFeaturedbg").hide())});(function(n){n.fn.autoComplete=function(t){var i=n.extend({},n.fn.autoComplete.defaults,t);return typeof t=="string"?(this.each(function(){var i=n(this);t=="destroy"&&(n(window).off("resize.autocomplete",i.updateSC),i.off("blur.autocomplete focus.autocomplete keydown.autocomplete keyup.autocomplete"),i.data("autocomplete")?i.attr("autocomplete",i.data("autocomplete")):i.removeAttr("autocomplete"),n(i.data("sc")).remove(),i.removeData("sc").removeData("autocomplete"))}),this):this.each(function(){function r(n){var u=t.val(),f,r;if(t.cache[u]=n,n.length&&u.length>=i.minChars){for(f="",r=0;r<n.length;r++)f+=i.renderItem(n[r],u);t.sc.html(f);t.updateSC(0)}else t.sc.hide()}var t=n(this);t.sc=n('<div class="autocomplete-suggestions '+i.menuClass+'"><\/div>');t.data("sc",t.sc).data("autocomplete",t.attr("autocomplete"));t.attr("autocomplete","off");t.cache={};t.last_val="";t.updateSC=function(i,r){if(t.sc.css({top:t.offset().top+t.outerHeight(),left:t.offset().left,width:t.outerWidth()}),!i&&(t.sc.show(),t.sc.maxHeight||(t.sc.maxHeight=parseInt(t.sc.css("max-height"))),t.sc.suggestionHeight||(t.sc.suggestionHeight=n(".autocomplete-suggestion",t.sc).first().outerHeight()),t.sc.suggestionHeight))if(r){var f=t.sc.scrollTop(),u=r.offset().top-t.sc.offset().top;u+t.sc.suggestionHeight-t.sc.maxHeight>0?t.sc.scrollTop(u+t.sc.suggestionHeight+f-t.sc.maxHeight):u<0&&t.sc.scrollTop(u+f)}else t.sc.scrollTop(0)};n(window).on("resize.autocomplete",t.updateSC);t.sc.appendTo("body");t.sc.on("mouseleave",".autocomplete-suggestion",function(){n(".autocomplete-suggestion.selected").removeClass("selected")});t.sc.on("mouseenter",".autocomplete-suggestion",function(){n(".autocomplete-suggestion.selected").removeClass("selected");n(this).addClass("selected")});t.sc.on("mousedown click",".autocomplete-suggestion",function(r){logInventorySearchPhrase(t.val());var u=n(this),f=u.data("val");if(f||u.hasClass("autocomplete-suggestion")){t.val(f);i.onSelect(r,f,u);t.sc.hide()}return!1});t.on("blur.autocomplete",function(){try{over_sb=n(".autocomplete-suggestions:hover").length}catch(i){over_sb=0}over_sb?t.is(":focus")||setTimeout(function(){t.focus()},20):(t.last_val=t.val(),t.sc.hide(),setTimeout(function(){t.sc.hide()},350))});if(!i.minChars)t.on("focus.autocomplete",function(){t.last_val="\n";t.trigger("keyup.autocomplete")}
4);t.on("keydown.autocomplete",function(r){var f,u;if((r.which==40||r.which==38)&&t.sc.html())return logInventorySearchPhrase(t.val()),u=n(".autocomplete-suggestion.selected",t.sc),u.length?(f=r.which==40?u.next(".autocomplete-suggestion"):u.prev(".autocomplete-suggestion"),f.length?(u.removeClass("selected"),t.val(f.addClass("selected").data("val"))):(u.removeClass("selected"),t.val(t.last_val),f=0)):(f=r.which==40?n(".autocomplete-suggestion",t.sc).first():n(".autocomplete-suggestion",t.sc).last(),t.val(f.addClass("selected").data("val"))),t.updateSC(0,f),!1;if(r.which==27)t.val(t.last_val).sc.hide();else if(r.which==13||r.which==9){if(u=n(".autocomplete-suggestion.selected",t.sc),u.length&&t.sc.is(":visible")){i.onSelect(r,u.data("val"),u);setTimeout(function(){t.sc.hide()},20)}}else GV_IFTS_AutoComp_Status=!1});t.on("keyup.autocomplete",debounce(function(u){var f,e,o;if(!~n.inArray(u.which,[13,27,35,36,37,38,39,40]))if(f=t.val(),f.length>=i.minChars){if(f!=t.last_val){if(t.last_val=f,clearTimeout(t.timer),i.cache){if(f in t.cache){r(t.cache[f]);return}for(e=1;e<f.length-i.minChars;e++)if(o=f.slice(0,f.length-e),o in t.cache&&!t.cache[o].length){r([]);return}}t.timer=setTimeout(function(){i.source(f,r)},i.delay)}}else t.last_val=f,t.sc.hide()},300,!1))})};n.fn.autoComplete.defaults={source:0,minChars:3,delay:150,cache:1,menuClass:"",renderItem:function(n,t){t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var i=new RegExp("("+t.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+n+'">'+n.replace(i,"<b>$1<\/b>")+"<\/div>"},onSelect:function(){}}})(jQuery);var debounce=function(n,t,i){var r;return function(){function e(){i||n.apply(u,f);r=null}var u=this,f=arguments;r?clearTimeout(r):i&&n.apply(u,f);r=setTimeout(e,t||100)}};function AlertModel(n){var u="<div class='modal-overlay js-modal-close'><\/div>",t="<ul>",r=n.split("\n"),i;$.each(r,function(n){r[n].length>0&&(t+="<li>"+r[n]+"<\/li>")});i=!0;try{parent.$}catch(f){i=!1}$("#hdnIsAMP").length&&(i=!1);t+="<\/ul>";isInIframe()&&i?(parent.$("body").append(u),parent.$("#modal-item").html(t),parent.$(".modal-overlay").fadeTo(300,.7),parent.$("#DivAlertPopup").fadeIn($(this).data()),addEventListener("keydown",function(n){n.keyCode==13&&parent.$(".modal-overlay").is(":visible")&&parent.$(".modal-overlay").fadeTo(300,.7,function(){parent.$(".modal-overlay").remove();parent.$(".modal-overlay")!=null&&parent.$(".modal-overlay").css("display","none");parent.$("#DivAlertPopup")!=null&&parent.$("#DivAlertPopup").css("display","none");parent.$("#searchBox").focus()})}),SetAlertMsgPosition()):($("body").append(u),$("#modal-item").html(t),$(".modal-overlay").fadeTo(300,.7),$("#DivAlertPopup").fadeIn($(this).data()),addEventListener("keydown",function(n){n.keyCode==13&&$(".modal-overlay").is(":visible")&&$(".modal-overlay").fadeTo(300,.7,function(){$(".modal-overlay").remove();$(".modal-overlay")!=null&&$(".modal-overlay").css("display","none");$("#DivAlertPopup")!=null&&$("#DivAlertPopup").css("display","none");$("#searchBox").focus()})}),$(window).resize())}function SetAlertMsgPosition(){var i=parseInt(parent.$("body").css("padding-right")),n=($(parent.window).height()-parent.$(".modal-box").outerHeight()-126)/2+"px",t;parseInt(n)<0&&(n="0px");t=($(parent.window).width()-parent.$(".modal-box").outerWidth()-i)/2;parent.$(".modal-box").css({top:n,left:t})}$(document).ready(function(){$(".js-modal-close, .modal-overlay").click(function(){$(".modal-box, .modal-overlay").fadeOut(300,function(){$(".modal-overlay").remove()})});$(window).resize(function(){var n=($(window).height()-$(".modal-box").outerHeight()-126)/2+"px",t;parseInt(n)<0&&(n="0px");t=($(window).width()-$(".modal-box").outerWidth())/2+"px";$(".modal-box").css({top:n,left:t})});$(window).resize()});function formatNumInt(n){var i,t;if(n=n.toString().replace(/,/g,""),isNaN(n))n="";else{i=!1;n=parseInt(n).toString();n<0&&(i=!0,n=0-n);t=n.length;switch(n.length){case 4:case 5:case 6:n=n.substring(0,t-3)+","+n.substring(t-3,t);break;case 7:case 8:case 9:n=n.substring(0,t-6)+","+n.substring(t-6,t-3)+","+n.substring(t-3,t);break;case 10:case 11:case 12:n=n.substring(0,t-9)+","+n.substring(t-9,t-6)+","+n.substring(t-6,t-3)+","+n.substring(t-3,t)}i&&(n="-"+n)}return n}function formatNumC(n){var t=decRound(n),i=t.length;if(t.indexOf(".")==t.length-3)switch(t.length){case 7:case 8:case 9:t=t.substring(0,i-6)+","+t.substring(i-6,i);break;case 10:case 11:case 12:t=t.substring(0,i-9)+","+t.substring(i-9,i-6)+","+t.substring(i-6,i);break;case 13:case 14:case 15:t=t.substring(0,i-12)+","+t.substring(i-12,i-9)+","+t.substring(i-9,i-6)+","+t.substring(i-6,i)}return t}
4function formatNum(n){return isNaN(n)?" 0 ":n>=0?" "+formatNumC(n)+" ":"("+formatNumC(0-n)+")"}function decRound(n){return decRound1(n)}function decRound1(n){var t,i;return isNaN(n)?"0.00":Math.abs(n)<.0049?"0.00":(t=n.toString().split("."),t.length==1?isNaN(parseInt(t[0]))?"0.00":t[0]+".00":t[1].length==0?t[0]+".00":t[1].length==1?t[0].toString()+"."+t[1].toString()+"0":t[1].length==2?t[0].toString()+"."+t[1].toString():(i=t[1].slice(0,2),t[1].charAt(2)>=5?i=="99"?t[0].toString().charAt(0)=="-"?(--t[0]).toString()+".00":(++t[0]).toString()+".00":i<9?t[0].toString()+".0"+(++i).toString():t[0].toString()+"."+(++i).toString():t[0].toString()+"."+i.toString()))}function isPhoneFormat(n){if(arguments.length==1)return getIntegersOnly(n).length==10&&n.length==14&&n.substring(0,1)=="("&&n.substring(4,6)==") "&&n.substring(9,10)=="-"?!0:!1;switch(parseInt(arguments[1])){case 1:return isPhoneFormat(n);case 3:return getIntegersOnly(n).length==10&&n.length==12&&n.substring(3,4)=="-"&&n.substring(7,8)=="-"?!0:!1;case 4:return isPhoneFormat(n);default:return!0}}function getIntegersOnly(n){function t(n){return n>="0"&&n<="9"?n:""}return n.length>1?t(n.charAt(0))+getIntegersOnly(n.substring(1,n.length)):n.length<=1?t(n):""}function isDateFormat(n){return getIntegersOnly(n).length==8&&n.length==10&&n.substring(2,3)=="/"&&n.substring(5,6)=="/"?!0:!1}function formatPhone_onKeyUp(){var t=arguments[0],n;trim(t.value).length>0&&(n=1,typeof GEF_country!="undefined"&&GEF_country!=null&&(n=GEF_country[0].Id),arguments.length>1&&trim(arguments[1]).length>0&&(n=arguments[1]),keyCodeOK()&&(isPhoneFormat(t.value,n)||(t.value=makePhoneFormat(getIntegersOnly(t.value),!1,n))))}function formatPhone_onBlur(n,t,i){if(trim(n.value).length>0){var r=1;typeof GEF_country!="undefined"&&GEF_country!=null&&(r=GEF_country[0].Id);arguments.length>3&&trim(arguments[3]).length>0&&(r=arguments[3]);n.value=makePhoneFormat(getIntegersOnly(n.value),!1,r);!isPhoneFormat(n.value,r)&&n.value.length>0?document.getElementById(t)&&(document.getElementById(t).style.visibility="visible",document.getElementById(t).title="Number not vaild"):i&&n.value.length==0?document.getElementById(t)&&(document.getElementById(t).style.visibility="visible",document.getElementById(t).title="Required Field"):document.getElementById(t)&&(document.getElementById(t).style.visibility="hidden")}}function keyCodeOK(){var n=AF_getEvent(window.event);return n&&(n.keyCode==9||n.keyCode==16)?!1:!0}function onlyAmounts_KC(){try{var n=AF_getEvent(window.event);if((n.keyCode<48||n.keyCode>57)&&n.keyCode!=46)return n.returnValue=!1}catch(t){}}function onlyNumbers_KC(n){var t=AF_getEvent(n);t.keyCode<=57&&t.keyCode>=48||(t.returnValue=!1)}function onlyNumbersPlusA_KC(n){var t=AF_getEvent(n);t.keyCode<=57&&t.keyCode>=48||t.keyCode==32||t.keyCode==45||t.keyCode==47||t.keyCode==40||t.keyCode==41||(t.returnValue=!1)}function makePhoneFormat(n,t){if(arguments.length==2)return n.length>10&&t?"("+n.substring(0,3)+") "+n.substring(3,6)+"-"+n.substring(6,10)+" Extn."+n.substring(10,n.length):n.length>10?"("+n.substring(0,3)+") "+n.substring(3,6)+"-"+n.substring(6,10):n.length>6?"("+n.substring(0,3)+") "+n.substring(3,6)+"-"+n.substring(6,n.length):n.length>3?"("+n.substring(0,3)+") "+n.substring(3,n.length):n;switch(parseInt(arguments[2])){case 1:return makePhoneFormat(n,t);case 3:return n.length>10&&t?n.substring(0,3)+"-"+n.substring(3,6)+"-"+n.substring(6,10)+" Extn."+n.substring(11,n.length):n.length>10?n.substring(0,3)+"-"+n.substring(3,6)+"-"+n.substring(6,10):n.length>7?n.substring(0,3)+"-"+n.substring(3,6)+"-"+n.substring(6,n.length):n.length>4?n.substring(0,3)+"-"+n.substring(3,6)+"-"+n.substring(6,n.length):n.length>3?n.substring(0,3)+"-"+n.substring(3,n.length):n;case 4:return makePhoneFormat(n,t);default:return n}}function makeSSNFormat(n){var t=Math.min(n.length,9);return n.length>5?n.substring(0,3)+"-"+n.substring(3,5)+"-"+n.substring(5,t):n.length>3?n.substring(0,3)+"-"+n.substring(3,n.length):n}function isSSNFormat(n){return getIntegersOnly(n).length==9&&n.length==11&&n.substring(3,4)=="-"&&n.substring(6,7)=="-"?!0:!1}
4function preDateFormat(n){return n.indexOf("/")==1&&getIntegersOnly(n.charAt(0)).length==1&&(n="0"+n),n.indexOf("/")==2&&n.indexOf("/",3)==4&&(n=n.substring(0,2)+"/0"+n.substring(3)),n}function makeDateFormat(n){return n=getIntegersOnly(preDateFormat(n)),n.length>8?n.substring(0,2)+"/"+n.substring(2,4)+"/"+n.substring(4,8):n.length>4?n.substring(0,2)+"/"+n.substring(2,4)+"/"+n.substring(4,n.length):n.length>2?n.substring(0,2)+"/"+n.substring(2,n.length):n}function fieldRequired_onBlur(n,t,i){var r="";switch(t){case"ZIP":n.value.length==0||fieldRequired_onBlur_Zip(n,arguments[3])||(r="Zip is not complete");break;case"ZIP-r":case"ZIP-R":n.value.length==0?r="This field is required":fieldRequired_onBlur_Zip(n,arguments[3])||(r="Zip is not complete");break;case"DDL1":n.options[n.selectedIndex].value==""&&(r="Required field");break;default:n.value.length==0&&(r="This field is required")}r.length>0&&document.getElementById(i)?af$("htmHdnResponsive_page")!=null?(document.getElementById(i).style.backgroundColor="#EFF4FA",document.getElementById(i).title=r):(document.getElementById(i).style.visibility="visible",document.getElementById(i).title=r):document.getElementById(i)?af$("htmHdnResponsive_page")!=null?(document.getElementById(i).style.backgroundColor="#FFF",document.getElementById(i).title=""):(document.getElementById(i).style.visibility="hidden",document.getElementById(i).alt="",document.getElementById(i).title=""):alert(i+"\n errIMGid does NOT exist")}function fieldRequired_onBlur_Zip(n,t){typeof t=="undefined"&&(t=1);switch(t){case 1:if(getIntegersOnly(n.value).length!=5)return!1;break;case 3:if(getIntegersOnly(n.value).length!=6)return!1;break;default:if(getIntegersOnly(n.value).length!=5)return!1}return!0}function OnlyNumbers_Zip(n,t){switch(parseInt(t)){case 1:onlyNumbers_KC(n)}}function autoTab_numOnly_Zip(n,t){trim(t).length==0&&(t=typeof GEF_country!="undefined"&&GEF_country!=null?GEF_country[0].Id:1);switch(parseInt(t)){case 1:autoTab_numOnly(autoTab_numOnly_SetMaxLength(n,5),5);break;case 3:autoTab(autoTab_numOnly_SetMaxLength(n,6),6)}}function autoTab_numOnly_SetMaxLength(n,t){return n.value.length>t&&(n.value=n.value.substring(0,t)),n.value=n.value.toUpperCase(),n}function autoTab_numOnly_ZipExt(n,t){trim(t).length==0&&(t=typeof GEF_country!="undefined"&&GEF_country!=null?GEF_country[0].Id:1);switch(parseInt(t)){case 1:autoTab_numOnly(autoTab_numOnly_SetMaxLength(n,4),4)}}function autoTab_numOnly(n,t){var i=AF_getEvent(n);filter=[0,8,9,16,17,18,37,38,39,40,46];n.value.length>=t&&!containsElement(filter,i.keyCode)&&i.ctrlKey!=!0&&i.button==0?n.form[(getIndex(n)+1)%n.form.length].focus():onlyNumbers(n);return}function onlyNumbers(n){if(isNaN(n.value))for(var t=0,i,r;t<n.value.length;)i=n.value.charAt(t)>="0"&&n.value.charAt(t)<="9",r=n.value.charAt(t)==".",i||r?++t:n.value=t==0?n.value.slice(t+1,n.value.length):t==n.value.length?n.value.slice(0,t-1):n.value.slice(0,t)+n.value.slice(t+1,n.value.length)}function onlyNumbersNoDec(n){if(isNaN(n.value))for(var t=0,i;t<n.value.length;)i=n.value.charAt(t)>="0"&&n.value.charAt(t)<="9",i?++t:n.value=t==0?n.value.slice(t+1,n.value.length):t==n.value.length?n.value.slice(0,t-1):n.value.slice(0,t)+n.value.slice(t+1,n.value.length)}function formatTextBox(n,t){typeof t=="undefined"&&(t=!1);var i=n.value;i!=""&&(isNaN(i)&&(i=""),i=t?decRound(i):i>=0?decRound(i):decRound(0-i),n.value=i)}function formatDate_onKeyUp(n){keyCodeOK()&&(n.value.length==3&&getIntegersOnly(n.value).length==2?n.value=makeDateFormat(n.value)+"/":n.value.length==6&&getIntegersOnly(n.value).length==4?n.value=makeDateFormat(n.value)+"/":isDateFormat(n.value)||(n.value=makeDateFormat(n.value)))}function formatDate_onBlur(n,t,i){var r,u,f;n.value=preDateFormat(n.value);r=getIntegersOnly(n.value);r.length==6&&(n.value=parseInt(r.substring(4,8))<51?makeDateFormat(r.substring(0,4)+"20"+r.substring(4,8)):makeDateFormat(r.substring(0,4)+"19"+r.substring(4,8)));n.value=makeDateFormat(n.value);u=getIntegersOnly(n.value);f=isValidDate(u.substring(0,2),u.substring(2,4),u.substring(4,8));f==!0&&n.value.length==10?document.getElementById(t)&&(af$("htmHdnResponsive_page")!=null?(document.getElementById(t).style.backgroundColor="#FFF",document.getElementById(t).title=""):document.getElementById(t).style.visibility="hidden"):n.value.length>0?document.getElementById(t)&&(document.getElementById(t).title=n.value.length==10?f:"Date not vaild",af$("htmHdnResponsive_page")!=null?document.getElementById(t).style.backgroundColor="#EFF4FA":document.getElementById(t).style.visibility="visible"):i&&n.value.length==0?document.getElementById(t)&&(af$("htmHdnResponsive_page")!=null?(document.getElementById(t).style.backgroundColor="#EFF4FA",document.getElementById(t).title="Required Field"):(document.getElementById(t).style.visibility="visible",document.getElementById(t).title="Required Field")):(n.value="",af$("htmHdnResponsive_page")!=null?(document.getElementById(t).style.backgroundColor="#FFF",document.getElementById(t).title=""):document.getElementById(t).style.visibility="hidden")}function toTitleCase(n){var t=n.value;n.value=t.replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()})}function formatSSN_onKeyUp(n){keyCodeOK()&&(n.value.length==4&&getIntegersOnly(n.value).length==3?n.value=makeSSNFormat(getIntegersOnly(n.value))+"-":n.value.length==7&&getIntegersOnly(n.value).length==5?n.value=makeSSNFormat(getIntegersOnly(n.value))+"-":isSSNFormat(n.value)||(n.value=makeSSNFormat(getIntegersOnly(n.value))))}function formatSSN_onBlur(n,t,i){n.value=makeSSNFormat(getIntegersOnly(n.value));!isSSNFormat(n.value)&&n.value.length>0?document.getElementById(t)&&(af$("htmHdnResponsive_page")!=null?(document.getElementById(t).style.backgroundColor="#EFF4FA",document.getElementById(t).title="Number not valid"):(document.getElementById(t).style.visibility="visible",document.getElementById(t).title="Number not valid")):i&&n.value.length==0?document.getElementById(t)&&(af$("htmHdnResponsive_page")!=null?(document.getElementById(t).style.backgroundColor="#EFF4FA",document.getElementById(t).title="Required Field"):(document.getElementById(t).style.visibility="visible",document.getElementById(t).title="Required Field")):document.getElementById(t)&&(af$("htmHdnResponsive_page")!=null?(document.getElementById(t).style.backgroundColor="#FFF",document.getElementById(t).title=""):document.getElementById(t).style.visibility="hidden")}function isValidEmail(n){return n.toLowerCase().search(/^[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/)!=-1?!0:!1}function getIndex(n){for(var i=-1,t=0;t<n.form.length&&i==-1;)n.form[t]==n?i=t:t++;return i}function containsElement(n,t){for(var i=!1,r=0;!i&&r<n.length;)n[r]==t?i=!0:r++;return i}(function(n,t,i,r){"use strict";var e=0,u=function(){var i=r.userAgent,u=/msie\s\d+/i,t;return i.search(u)>0&&(t=u.exec(i).toString(),t=t.split(" ")[1],t<9)?(n("html").addClass("lt-ie9"),!0):!1}();Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i=[].slice,r,u;if(typeof t!="function")throw new TypeError;
4return r=i.call(arguments,1),u=function(){var e,o,f;return this instanceof u?(e=function(){},e.prototype=t.prototype,o=new e,f=t.apply(o,r.concat(i.call(arguments))),Object(f)===f)?f:o:t.apply(n,r.concat(i.call(arguments)))},u});Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){var r,f,u,i;if(this==null)throw new TypeError('"this" is null or not defined');if((f=Object(this),u=f.length>>>0,u===0)||(i=+t||0,Math.abs(i)===Infinity&&(i=0),i>=u))return-1;for(r=Math.max(i>=0?i:u-Math.abs(i),0);r<u;){if(r in f&&f[r]===n)return r;r++}return-1});var o='<span class="irs"><span class="irs-line" tabindex="-1"><span class="irs-line-left"><\/span><span class="irs-line-mid"><\/span><span class="irs-line-right"><\/span><\/span><span class="irs-min">0<\/span><span class="irs-max">1<\/span><span class="irs-from">0<\/span><span class="irs-to">0<\/span><span class="irs-single">0<\/span><\/span><span class="irs-grid"><\/span><span class="irs-bar"><\/span>',s='<span class="irs-bar-edge"><\/span><span class="irs-shadow shadow-single"><\/span><span class="irs-slider single"><\/span>',h='<span class="irs-shadow shadow-from"><\/span><span class="irs-shadow shadow-to"><\/span><span class="irs-slider from"><\/span><span class="irs-slider to"><\/span>',c='<span class="irs-disable-mask"><\/span>',f=function(r,u,f){this.VERSION="2.1.2";this.input=r;this.plugin_count=f;this.current_plugin=0;this.calc_count=0;this.update_tm=0;this.old_from=0;this.old_to=0;this.old_min_interval=null;this.raf_id=null;this.dragging=!1;this.force_redraw=!1;this.no_diapason=!1;this.is_key=!1;this.is_update=!1;this.is_start=!0;this.is_finish=!1;this.is_active=!1;this.is_resize=!1;this.is_click=!1;this.$cache={win:n(i),body:n(t.body),input:n(r),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]};this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]};this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var e=this.$cache.input,o=e.prop("value"),h,s,c;h={type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!1,keyboard_step:5,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" � ",input_values_separator:";",disable:!1,onStart:null,onChange:null,onFinish:null,onUpdate:null};s={type:e.data("type"),min:e.data("min"),max:e.data("max"),from:e.data("from"),to:e.data("to"),step:e.data("step"),min_interval:e.data("minInterval"),max_interval:e.data("maxInterval"),drag_interval:e.data("dragInterval"),values:e.data("values"),from_fixed:e.data("fromFixed"),from_min:e.data("fromMin"),from_max:e.data("fromMax"),from_shadow:e.data("fromShadow"),to_fixed:e.data("toFixed"),to_min:e.data("toMin"),to_max:e.data("toMax"),to_shadow:e.data("toShadow"),prettify_enabled:e.data("prettifyEnabled"),prettify_separator:e.data("prettifySeparator"),force_edges:e.data("forceEdges"),keyboard:e.data("keyboard"),keyboard_step:e.data("keyboardStep"),grid:e.data("grid"),grid_margin:e.data("gridMargin"),grid_num:e.data("gridNum"),grid_snap:e.data("gridSnap"),hide_min_max:e.data("hideMinMax"),hide_from_to:e.data("hideFromTo"),prefix:e.data("prefix"),postfix:e.data("postfix"),max_postfix:e.data("maxPostfix"),decorate_both:e.data("decorateBoth"),values_separator:e.data("valuesSeparator"),input_values_separator:e.data("inputValuesSeparator"),disable:e.data("disable")};s.values=s.values&&s.values.split(",");for(c in s)s.hasOwnProperty(c)&&(s[c]||s[c]===0||delete s[c]);o&&(o=o.split(s.input_values_separator||u.input_values_separator||";"),o[0]&&o[0]==+o[0]&&(o[0]=+o[0]),o[1]&&o[1]==+o[1]&&(o[1]=+o[1]),u&&u.values&&u.values.length?(h.from=o[0]&&u.values.indexOf(o[0]),h.to=o[1]&&u.values.indexOf(o[1])):(h.from=o[0]&&+o[0],h.to=o[1]&&+o[1]));n.extend(h,u);n.extend(h,s);this.options=h;this.validate();this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null};this.init()};f.prototype={init:function(n){this.no_diapason=!1;this.coords.p_step=this.convertToPercent(this.options.step,!0);this.target="base";this.toggleInput();this.append();this.setMinMax();n?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart());this.updateScene()},append:function(){var n='<span class="irs js-irs-'+this.plugin_count+'"><\/span>';this.$cache.input.before(n);this.$cache.input.prop("readonly",!0);this.$cache.cont=this.$cache.input.prev();this.result.slider=this.$cache.cont;this.$cache.cont.html(o);
4this.$cache.rs=this.$cache.cont.find(".irs");this.$cache.min=this.$cache.cont.find(".irs-min");this.$cache.max=this.$cache.cont.find(".irs-max");this.$cache.from=this.$cache.cont.find(".irs-from");this.$cache.to=this.$cache.cont.find(".irs-to");this.$cache.single=this.$cache.cont.find(".irs-single");this.$cache.bar=this.$cache.cont.find(".irs-bar");this.$cache.line=this.$cache.cont.find(".irs-line");this.$cache.grid=this.$cache.cont.find(".irs-grid");this.options.type==="single"?(this.$cache.cont.append(s),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append(h),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler());this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none");this.appendGrid();this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass("irs-disabled"),this.$cache.input[0].disabled=!1,this.bindEvents());this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var i=this.options.min,n=this.options.max,r=this.options.from,t=this.options.to;r>i&&t===n?this.$cache.s_from.addClass("type_last"):t<n&&this.$cache.s_to.addClass("type_last")},changeLevel:function(n){switch(n){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake);break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake);this.$cache.s_from.addClass("state_hover");this.$cache.s_from.addClass("type_last");this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake);this.$cache.s_to.addClass("state_hover");this.$cache.s_to.addClass("type_last");this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake);this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer);this.$cache.s_to.removeClass("type_last");this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append(c);this.$cache.cont.addClass("irs-disabled")},remove:function(){this.$cache.cont.remove();this.$cache.cont=null;this.$cache.line.off("keydown.irs_"+this.plugin_count);this.$cache.body.off("touchmove.irs_"+this.plugin_count);this.$cache.body.off("mousemove.irs_"+this.plugin_count);this.$cache.win.off("touchend.irs_"+this.plugin_count);this.$cache.win.off("mouseup.irs_"+this.plugin_count);u&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count));this.$cache.grid_labels=[];this.coords.big=[];this.coords.big_w=[];this.coords.big_p=[];this.coords.big_x=[];cancelAnimationFrame(this.raf_id)},bindEvents:function(){if(!this.no_diapason){this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this));this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this));this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this));this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this));this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));if(this.options.drag_interval&&this.options.type==="double"){this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"));this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))}else{this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))}if(this.options.type==="single"){this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single"));this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single"));this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single"));this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single"));this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))}else{this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null));this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null));this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from"));this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from"));this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to"));this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to"));this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from"));this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from"));this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to"));this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to"));this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))}
4if(this.options.keyboard)this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard"));if(u){this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this));this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))}}},pointerMove:function(n){if(this.dragging){var t=n.pageX||n.originalEvent.touches&&n.originalEvent.touches[0].pageX;this.coords.x_pointer=t-this.coords.x_gap;this.calc()}},pointerUp:function(t){if(this.current_plugin===this.plugin_count){if(this.is_active)this.is_active=!1;else return;this.$cache.cont.find(".state_hover").removeClass("state_hover");this.force_redraw=!0;u&&n("*").prop("unselectable",!1);this.updateScene();this.restoreOriginalMinInterval();(n.contains(this.$cache.cont[0],t.target)||this.dragging)&&(this.is_finish=!0,this.callOnFinish());this.dragging=!1}},pointerDown:function(t,i){i.preventDefault();var r=i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX;i.button!==2&&(t==="both"&&this.setTempMinInterval(),t||(t=this.target),this.current_plugin=this.plugin_count,this.target=t,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=r-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(t),u&&n("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(n,t){t.preventDefault();var i=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;t.button!==2&&(this.current_plugin=this.plugin_count,this.target=n,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(i-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(n,t){if(this.current_plugin===this.plugin_count&&!t.altKey&&!t.ctrlKey&&!t.shiftKey&&!t.metaKey){switch(t.which){case 83:case 65:case 40:case 37:t.preventDefault();this.moveByKey(!1);break;case 87:case 68:case 38:case 39:t.preventDefault();this.moveByKey(!0)}return!0}},moveByKey:function(n){var t=this.coords.p_pointer;n?t+=this.options.keyboard_step:t-=this.options.keyboard_step;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*t);this.is_key=!0;this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max){this.$cache.min[0].style.display="none";this.$cache.max[0].style.display="none";return}this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max)));this.labels.w_min=this.$cache.min.outerWidth(!1);this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var n=this.result.to-this.result.from;this.old_min_interval===null&&(this.old_min_interval=this.options.min_interval);this.options.min_interval=n},restoreOriginalMinInterval:function(){this.old_min_interval!==null&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(n){var t;if(this.options&&(this.calc_count++,(this.calc_count===10||n)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();t=this.getHandleX();this.target==="click"&&(this.coords.p_gap=this.coords.p_handle/2,t=this.getHandleX(),this.target=this.options.drag_interval?"both_one":this.chooseHandle(t));switch(this.target){case"base":var f=(this.options.max-this.options.min)/100,e=(this.result.from-this.options.min)/f,h=(this.result.to-this.options.min)/f;this.coords.p_single_real=this.toFixed(e);this.coords.p_from_real=this.toFixed(e);this.coords.p_to_real=this.toFixed(h);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(t);this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(t);this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real);this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from");this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from");this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(t);this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real);this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to");this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to");this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;t=this.toFixed(t+this.coords.p_handle*.1);this.coords.p_from_real=this.convertToRealPercent(t)-this.coords.p_gap_left;this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from");this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_real=this.convertToRealPercent(t)+this.coords.p_gap_right;this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to");this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(this.options.from_fixed||this.options.to_fixed)break;var o=this.convertToRealPercent(t),c=this.result.from_percent,l=this.result.to_percent,u=l-c,s=u/2,i=o-s,r=o+s;i<0&&(i=0,r=i+u);r>100&&(r=100,i=r-u);this.coords.p_from_real=this.calcWithStep(i);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_real=this.calcWithStep(r);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}this.options.type==="single"?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to]));this.calcMinMax();this.calcLabels()}}
4,calcPointerPercent:function(){if(!this.coords.w_rs){this.coords.p_pointer=0;return}this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs);this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)},convertToRealPercent:function(n){var t=100-this.coords.p_handle;return n/t*100},convertToFakePercent:function(n){var t=100-this.coords.p_handle;return n/100*t},getHandleX:function(){var t=100-this.coords.p_handle,n=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return n<0?n=0:n>t&&(n=t),n},calcHandlePercent:function(){this.coords.w_handle=this.options.type==="single"?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1);this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(n){if(this.options.type==="single")return"single";var t=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2;return n>=t?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&(this.options.type==="single"?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)))},updateScene:function(){(this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options)&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs)&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs)&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%",this.options.type==="single"?(this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%"),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to)),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||this.$cache.input.trigger("change"),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_key=!1,this.is_click=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1)},drawLabels:function(){var u,t,n,i,r;if(this.options&&(u=this.options.values.length,t=this.options.p_values,!this.options.hide_from_to))if(this.options.type==="single")u?(n=this.decorate(t[this.result.from]),this.$cache.single.html(n)):(n=this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(n)),this.calcLabels(),this.$cache.min[0].style.visibility=this.labels.p_single_left<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=this.labels.p_single_left+this.labels.p_single_fake>99-this.labels.p_max?"hidden":"visible";else{u?(this.options.decorate_both?(n=this.decorate(t[this.result.from]),n+=this.options.values_separator,n+=this.decorate(t[this.result.to])):n=this.decorate(t[this.result.from]+this.options.values_separator+t[this.result.to]),i=this.decorate(t[this.result.from]),r=this.decorate(t[this.result.to]),this.$cache.single.html(n),this.$cache.from.html(i),this.$cache.to.html(r)):(this.options.decorate_both?(n=this.decorate(this._prettify(this.result.from),this.result.from),n+=this.options.values_separator,n+=this.decorate(this._prettify(this.result.to),this.result.to)):n=this.decorate(this._prettify(this.result.from)+this.options.values_separator+this._prettify(this.result.to),this.result.to),i=this.decorate(this._prettify(this.result.from),this.result.from),r=this.decorate(this._prettify(this.result.to),this.result.to),this.$cache.single.html(n),this.$cache.from.html(i),this.$cache.to.html(r));this.calcLabels();var s=Math.min(this.labels.p_single_left,this.labels.p_from_left),o=this.labels.p_single_left+this.labels.p_single_fake,f=this.labels.p_to_left+this.labels.p_to_fake,e=Math.max(o,f);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?(this.target==="from"?this.$cache.from[0].style.visibility="visible":this.target==="to"&&(this.$cache.to[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",e=f):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",e=Math.max(o,f))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden");this.$cache.min[0].style.visibility=s<this.labels.p_min+1?"hidden":"visible";this.$cache.max[0].style.visibility=e>99-this.labels.p_max?"hidden":"visible"}},drawShadow:function(){var n=this.options,i=this.$cache,e=typeof n.from_min=="number"&&!isNaN(n.from_min),o=typeof n.from_max=="number"&&!isNaN(n.from_max),s=typeof n.to_min=="number"&&!isNaN(n.to_min),h=typeof n.to_max=="number"&&!isNaN(n.to_max),t,r,u,f;n.type==="single"?n.from_shadow&&(e||o)?(t=this.convertToPercent(e?n.from_min:n.min),r=this.convertToPercent(o?n.from_max:n.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),r=this.toFixed(r-this.coords.p_handle/100*r),t=t+this.coords.p_handle/2,i.shad_single[0].style.display="block",i.shad_single[0].style.left=t+"%",i.shad_single[0].style.width=r+"%"):i.shad_single[0].style.display="none":(n.from_shadow&&(e||o)?(t=this.convertToPercent(e?n.from_min:n.min),r=this.convertToPercent(o?n.from_max:n.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),r=this.toFixed(r-this.coords.p_handle/100*r),t=t+this.coords.p_handle/2,i.shad_from[0].style.display="block",i.shad_from[0].style.left=t+"%",i.shad_from[0].style.width=r+"%"):i.shad_from[0].style.display="none",n.to_shadow&&(s||h)?(u=this.convertToPercent(s?n.to_min:n.min),f=this.convertToPercent(h?n.to_max:n.max)-u,u=this.toFixed(u-this.coords.p_handle/100*u),f=this.toFixed(f-this.coords.p_handle/100*f),u=u+this.coords.p_handle/2,i.shad_to[0].style.display="block",i.shad_to[0].style.left=u+"%",i.shad_to[0].style.width=f+"%"):i.shad_to[0].style.display="none")},callOnStart:function(){if(this.options.onStart&&typeof this.options.onStart=="function")this.options.onStart(this.result)},callOnChange:function(){if(this.options.onChange&&typeof this.options.onChange=="function")this.options.onChange(this.result)},callOnFinish:function(){if(this.options.onFinish&&typeof this.options.onFinish=="function")this.options.onFinish(this.result)},callOnUpdate:function(){if(this.options.onUpdate&&typeof this.options.onUpdate=="function")this.options.onUpdate(this.result)},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input")},convertToPercent:function(n,t){var i=this.options.max-this.options.min,f=i/100,r,u;return i?(r=t?n:n-this.options.min,u=r/f,this.toFixed(u)):(this.no_diapason=!0,0)},convertToValue:function(n){var i=this.options.min,h=this.options.max,c=i.toString().split(".")[1],l=h.toString().split(".")[1],u,f,e=0,o=0,t,s,r;return n===0?this.options.min:n===100?this.options.max:(c&&(u=c.length,e=u),l&&(f=l.length,e=f),u&&f&&(e=u>=f?u:f),i<0&&(o=Math.abs(i),i=+(i+o).toFixed(e),h=+(h+o).toFixed(e)),t=(h-i)/100*n+i,s=this.options.step.toString().split(".")[1],s?t=+t.toFixed(s.length):(t=t/this.options.step,t=t*this.options.step,t=+t.toFixed(0)),o&&(t-=o),r=s?+t.toFixed(s.length):this.toFixed(t),r<this.options.min?r=this.options.min:r>this.options.max&&(r=this.options.max),r)},calcWithStep:function(n){var t=Math.round(n/this.coords.p_step)*this.coords.p_step;return t>100&&(t=100),n===100&&(t=100),this.toFixed(t)},checkMinInterval:function(n,t,i){var u=this.options,r,f;return u.min_interval?(r=this.convertToValue(n),f=this.convertToValue(t),i==="from"?f-r<u.min_interval&&(r=f-u.min_interval):r-f<u.min_interval&&(r=f+u.min_interval),this.convertToPercent(r)):n},checkMaxInterval:function(n,t,i){var u=this.options,r,f;return u.max_interval?(r=this.convertToValue(n),f=this.convertToValue(t),i==="from"?f-r>u.max_interval&&(r=f-u.max_interval):r-f>u.max_interval&&(r=f+u.max_interval),this.convertToPercent(r)):n},checkDiapason:function(n,t,i){var r=this.convertToValue(n),u=this.options;return typeof t!="number"&&(t=u.min),typeof i!="number"&&(i=u.max),r<t&&(r=t),r>i&&(r=i),this.convertToPercent(r)},toFixed:function(n){return n=n.toFixed(9),+n},_prettify:function(n){return this.options.prettify_enabled?this.options.prettify&&typeof this.options.prettify=="function"?this.options.prettify(n):this.prettify(n):n},prettify:function(n){var t=n.toString();return t.replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(n,t){return this.options.force_edges?(n<0?n=0:n>100-t&&(n=100-t),this.toFixed(n)):this.toFixed(n)},validate:function(){var n=this.options,t=this.result,u=n.values,f=u.length,i,r;
4if(typeof n.min=="string"&&(n.min=+n.min),typeof n.max=="string"&&(n.max=+n.max),typeof n.from=="string"&&(n.from=+n.from),typeof n.to=="string"&&(n.to=+n.to),typeof n.step=="string"&&(n.step=+n.step),typeof n.from_min=="string"&&(n.from_min=+n.from_min),typeof n.from_max=="string"&&(n.from_max=+n.from_max),typeof n.to_min=="string"&&(n.to_min=+n.to_min),typeof n.to_max=="string"&&(n.to_max=+n.to_max),typeof n.keyboard_step=="string"&&(n.keyboard_step=+n.keyboard_step),typeof n.grid_num=="string"&&(n.grid_num=+n.grid_num),n.max<n.min&&(n.max=n.min),f)for(n.p_values=[],n.min=0,n.max=f-1,n.step=1,n.grid_num=n.max,n.grid_snap=!0,r=0;r<f;r++)i=+u[r],isNaN(i)?i=u[r]:(u[r]=i,i=this._prettify(i)),n.p_values.push(i);(typeof n.from!="number"||isNaN(n.from))&&(n.from=n.min);(typeof n.to!="number"||isNaN(n.from))&&(n.to=n.max);n.type==="single"?(n.from<n.min&&(n.from=n.min),n.from>n.max&&(n.from=n.max)):((n.from<n.min||n.from>n.max)&&(n.from=n.min),(n.to>n.max||n.to<n.min)&&(n.to=n.max),n.from>n.to&&(n.from=n.to));(typeof n.step!="number"||isNaN(n.step)||!n.step||n.step<0)&&(n.step=1);(typeof n.keyboard_step!="number"||isNaN(n.keyboard_step)||!n.keyboard_step||n.keyboard_step<0)&&(n.keyboard_step=5);typeof n.from_min=="number"&&n.from<n.from_min&&(n.from=n.from_min);typeof n.from_max=="number"&&n.from>n.from_max&&(n.from=n.from_max);typeof n.to_min=="number"&&n.to<n.to_min&&(n.to=n.to_min);typeof n.to_max=="number"&&n.from>n.to_max&&(n.to=n.to_max);t&&(t.min!==n.min&&(t.min=n.min),t.max!==n.max&&(t.max=n.max),(t.from<t.min||t.from>t.max)&&(t.from=n.from),(t.to<t.min||t.to>t.max)&&(t.to=n.to));(typeof n.min_interval!="number"||isNaN(n.min_interval)||!n.min_interval||n.min_interval<0)&&(n.min_interval=0);(typeof n.max_interval!="number"||isNaN(n.max_interval)||!n.max_interval||n.max_interval<0)&&(n.max_interval=0);n.min_interval&&n.min_interval>n.max-n.min&&(n.min_interval=n.max-n.min);n.max_interval&&n.max_interval>n.max-n.min&&(n.max_interval=n.max-n.min)},decorate:function(n,t){var r="",i=this.options;return i.prefix&&(r+=i.prefix),r+=n,i.max_postfix&&(i.values.length&&n===i.p_values[i.max]?(r+=i.max_postfix,i.postfix&&(r+=" ")):t===i.max&&(r+=i.max_postfix,i.postfix&&(r+=" "))),i.postfix&&(r+=i.postfix),r},updateFrom:function(){this.result.from=this.options.from;this.result.from_percent=this.convertToPercent(this.result.from);this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to;this.result.to_percent=this.convertToPercent(this.result.to);this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min;this.result.max=this.options.max;this.updateFrom();this.updateTo()},appendGrid:function(){if(this.options.grid){var t=this.options,r,o,c=t.max-t.min,i=t.grid_num,s=0,n=0,f=4,u,l,a=0,e,h="";for(this.calcGridMargin(),t.grid_snap?(i=c/t.step,s=this.toFixed(t.step/(c/100))):s=this.toFixed(100/i),i>4&&(f=3),i>7&&(f=2),i>14&&(f=1),i>28&&(f=0),r=0;r<i+1;r++){for(u=f,n=this.toFixed(s*r),n>100&&(n=100,u-=2,u<0&&(u=0)),this.coords.big[r]=n,l=(n-s*(r-1))/(u+1),o=1;o<=u;o++){if(n===0)break;a=this.toFixed(n-l*o);h+='<span class="irs-grid-pol small" style="left: '+a+'%"><\/span>'}h+='<span class="irs-grid-pol" style="left: '+n+'%"><\/span>';e=this.convertToValue(n);e=t.values.length?t.p_values[e]:this._prettify(e);h+='<span class="irs-grid-text js-grid-text-'+r+'" style="left: '+n+'%">'+e+"<\/span>"}this.coords.big_num=Math.ceil(i+1);this.$cache.cont.addClass("irs-with-grid");this.$cache.grid.html(h);this.cacheGridLabels()}},cacheGridLabels:function(){for(var t,i=this.coords.big_num,n=0;n<i;n++)t=this.$cache.grid.find(".js-grid-text-"+n),this.$cache.grid_labels.push(t);this.calcGridLabels()},calcGridLabels:function(){for(var u,i=[],r=[],t=this.coords.big_num,n=0;n<t;n++)this.coords.big_w[n]=this.$cache.grid_labels[n].outerWidth(!1),this.coords.big_p[n]=this.toFixed(this.coords.big_w[n]/this.coords.w_rs*100),this.coords.big_x[n]=this.toFixed(this.coords.big_p[n]/2),i[n]=this.toFixed(this.coords.big[n]-this.coords.big_x[n]),r[n]=this.toFixed(i[n]+this.coords.big_p[n]);for(this.options.force_edges&&(i[0]<-this.coords.grid_gap&&(i[0]=-this.coords.grid_gap,r[0]=this.toFixed(i[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),r[t-1]>100+this.coords.grid_gap&&(r[t-1]=100+this.coords.grid_gap,i[t-1]=this.toFixed(r[t-1]-this.coords.big_p[t-1]),this.coords.big_x[t-1]=this.toFixed(this.coords.big_p[t-1]-this.coords.grid_gap))),this.calcGridCollision(2,i,r),this.calcGridCollision(4,i,r),n=0;n<t;n++)u=this.$cache.grid_labels[n][0],u.style.marginLeft=-this.coords.big_x[n]+"%"},calcGridCollision:function(n,t,i){for(var u,f,e=this.coords.big_num,r=0;r<e;r+=n){if(u=r+n/2,u>=e)break;f=this.$cache.grid_labels[u][0];f.style.visibility=i[r]<=t[u]?"visible":"hidden"}},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs)&&(this.coords.w_handle=this.options.type==="single"?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[
40].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%")},update:function(t){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.options=n.extend(this.options,t),this.validate(),this.updateResult(t),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),n.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}};n.fn.ionRangeSlider=function(t){return this.each(function(){n.data(this,"ionRangeSlider")||n.data(this,"ionRangeSlider",new f(this,t,e++))})},function(){for(var r=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!i.requestAnimationFrame;++n)i.requestAnimationFrame=i[t[n]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[t[n]+"CancelAnimationFrame"]||i[t[n]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(n){var t=(new Date).getTime(),u=Math.max(0,16-(t-r)),f=i.setTimeout(function(){n(t+u)},u);return r=t+u,f});i.cancelAnimationFrame||(i.cancelAnimationFrame=function(n){clearTimeout(n)})}()})(jQuery,document,window,navigator);!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});(function(n){typeof module!="undefined"&&module.exports?module.exports=n:n(jQuery,window,document)})(function(n){(function(t){var i=typeof define=="function"&&define.amd,r=typeof module!="undefined"&&module.exports,u="https:"==document.location.protocol?"https:":"http:";i||r&&require("jquery-mousewheel")(n);t()})(function(){var h="mCustomScrollbar",t="mCS",it=".mCustomScrollbar",et={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver
4:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},vt=0,b={},p=window.attachEvent&&!window.addEventListener?1:0,f=!1,c,i=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],s={init:function(r){var r=n.extend(!0,{},et,r),e=v.call(this),u,f;if(r.live){if(u=r.liveSelector||this.selector||it,f=n(u),r.live==="off"){k(u);return}b[u]=setTimeout(function(){f.mCustomScrollbar(r);r.live==="once"&&f.length&&k(u)},500)}else k(u);return r.setWidth=r.set_width?r.set_width:r.setWidth,r.setHeight=r.set_height?r.set_height:r.setHeight,r.axis=r.horizontalScroll?"x":yt(r.axis),r.scrollInertia=r.scrollInertia>0&&r.scrollInertia<17?17:r.scrollInertia,typeof r.mouseWheel!="object"&&r.mouseWheel==!0&&(r.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),r.mouseWheel.scrollAmount=r.mouseWheelPixels?r.mouseWheelPixels:r.mouseWheel.scrollAmount,r.mouseWheel.normalizeDelta=r.advanced.normalizeMouseWheelDelta?r.advanced.normalizeMouseWheelDelta:r.mouseWheel.normalizeDelta,r.scrollButtons.scrollType=pt(r.scrollButtons.scrollType),ot(r),n(e).each(function(){var u=n(this);if(!u.data(t)){u.data(t,{idx:++vt,opt:r,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:u.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var e=u.data(t),f=e.opt,o=u.data("mcs-axis"),h=u.data("mcs-scrollbar-position"),c=u.data("mcs-theme");o&&(f.axis=o);h&&(f.scrollbarPosition=h);c&&(f.theme=c,ot(f));wt.call(this);e&&f.callbacks.onCreate&&typeof f.callbacks.onCreate=="function"&&f.callbacks.onCreate.call(this);n("#mCSB_"+e.idx+"_container img:not(."+i[2]+")").addClass(i[2]);s.update.call(null,u)}})},update:function(r,f){var e=r||v.call(this);return n(e).each(function(){var s=n(this),c;if(s.data(t)){var e=s.data(t),r=e.opt,h=n("#mCSB_"+e.idx+"_container"),a=n("#mCSB_"+e.idx),l=[n("#mCSB_"+e.idx+"_dragger_vertical"),n("#mCSB_"+e.idx+"_dragger_horizontal")];if(!h.length)return;e.tweenRunning&&o(s);f&&e&&r.callbacks.onBeforeUpdate&&typeof r.callbacks.onBeforeUpdate=="function"&&r.callbacks.onBeforeUpdate.call(this);s.hasClass(i[3])&&s.removeClass(i[3]);s.hasClass(i[4])&&s.removeClass(i[4]);a.css("max-height","none");a.height()!==s.height()&&a.css("max-height",s.height());bt.call(this);r.axis==="y"||r.advanced.autoExpandHorizontalScroll||h.css("width",st(h));e.overflowed=ni.call(this);ht.call(this);r.autoDraggerLength&&dt.call(this);gt.call(this);ti.call(this);c=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)];r.axis!=="x"&&(e.overflowed[0]?l[0].height()>l[0].parent().height()?y.call(this):(u(s,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(y.call(this),r.axis==="y"?g.call(this):r.axis==="yx"&&e.overflowed[1]&&u(s,c[1].toString(),{dir:"x",dur:0,overwrite:"none"})));r.axis!=="y"&&(e.overflowed[1]?l[1].width()>l[1].parent().width()?y.call(this):(u(s,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(y.call(this),r.axis==="x"?g.call(this):r.axis==="yx"&&e.overflowed[0]&&u(s,c[0].toString(),{dir:"y",dur:0,overwrite:"none"})));f&&e&&(f===2&&r.callbacks.onImageLoad&&typeof r.callbacks.onImageLoad=="function"?r.callbacks.onImageLoad.call(this):f===3&&r.callbacks.onSelectorChange&&typeof r.callbacks.onSelectorChange=="function"?r.callbacks.onSelectorChange.call(this):r.callbacks.onUpdate&&typeof r.callbacks.onUpdate=="function"&&r.callbacks.onUpdate.call(this));ft.call(this)}})},scrollTo:function(i,r){if(typeof i!="undefined"&&i!=null){var f=v.call(this);return n(f).each(function(){var s=n(this);if(s.data(t)){var o=s.data(t),h=o.opt,c={trigger:"external",scrollInertia:h.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},f=n.extend(!0,{},c,r),e=ut.call(this,i),l=f.scrollInertia>0&&f.scrollInertia<17?17:f.scrollInertia;e[0]=ct.call(this,e[0],"y");e[1]=ct.call(this,e[1],"x");f.moveDragger&&(e[0]*=o.scrollRatio.y,e[1]*=o.scrollRatio.x);f.dur=yi()?0:l;setTimeout(function(){e[0]!==null&&typeof e[0]!="undefined"&&h.axis!=="x"&&o.overflowed[0]&&(f.dir="y",f.overwrite="all",u(s,e[0].toString(),f));e[1]!==null&&typeof e[1]!="undefined"&&h.axis!=="y"&&o.overflowed[1]&&(f.dir="x",f.overwrite="none",u(s,e[1].toString(),f))},f.timeout)}})}},stop:function(){var i=v.call(this);return n(i).each(function(){var i=n(this);i.data(t)&&o(i)})},disable:function(r){var u=v.call(this);return n(u).each(function(){var u=n(this),f;u.data(t)&&(f=u.data(t),ft.call(this,"remove"),g.call(this),r&&y.call(this),ht.call(this,!0),u.addClass(i[3]))})},destroy:function(){var r=v.call(this);return n(r).each(function(){var f=n(this);if(f.data(t)){var u=f.data(t),e=u.opt,s=n("#mCSB_"+u.idx),o=n("#mCSB_"+u.idx+"_container"),c=n(".mCSB_"+u.idx+"_scrollbar");e.live&&k(e.liveSelector||n(r).selector);ft.call(this,"remove");g.call(this);y.call(this);f.removeData(t);a(this,"mcs");c.remove();o.find("img."+i[2]).removeClass(i[2]);s.replaceWith(o.contents());f.removeClass(h+" _"+t+"_"+u.idx+" "+i[6]+" "+i[7]+" "+i[5]+" "+i[3]).addClass(i[4])}})}},v=function(){return typeof n(this)!="object"||n(this).length<1?it:this},ot=function(t){t.autoDraggerLength=n.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1?!1:t.autoDraggerLength;t.autoExpandScrollbar=n.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1?!1:t.autoExpandScrollbar;t.scrollButtons.enable=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!1:t.scrollButtons.enable;t.autoHideScrollbar=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!0:t.autoHideScrollbar;t.scrollbarPosition=n.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},k=function(n){b[n]&&(clearTimeout(b[n]),a(b,n))},yt=function(n){return n==="yx"||n==="xy"||n==="auto"?"yx":n==="x"||n==="horizontal"?"x":"y"},pt=function(n){return n==="stepped"||n==="pixels"||n==="step"||n==="click"?"stepped":"stepless"},wt=function(){var f=n(this),u=f.data(t),r=u.opt,l=r.autoExpandScrollbar?" "+i[1]+"_expand":"",o=["<div id='m
4CSB_"+u.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_vertical"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>","<div id='mCSB_"+u.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_horizontal"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>"],v=r.axis==="yx"?"mCSB_vertical_horizontal":r.axis==="x"?"mCSB_horizontal":"mCSB_vertical",a=r.axis==="yx"?o[0]+o[1]:r.axis==="x"?o[1]:o[0],y=r.axis==="yx"?"<div id='mCSB_"+u.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",p=r.autoHideScrollbar?" "+i[6]:"",w=r.axis!=="x"&&u.langDir==="rtl"?" "+i[7]:"",c,s,e;r.setWidth&&f.css("width",r.setWidth);r.setHeight&&f.css("max-height",r.setHeight);r.setLeft=r.axis!=="y"&&u.langDir==="rtl"?"989999px":r.setLeft;f.addClass(h+" _"+t+"_"+u.idx+p+w).wrapInner("<div id='mCSB_"+u.idx+"' class='mCustomScrollBox mCS-"+r.theme+" "+v+"'><div id='mCSB_"+u.idx+"_container' class='mCSB_container' style='position:relative; top:"+r.setTop+"; left:"+r.setLeft+";' dir="+u.langDir+" /><\/div>");c=n("#mCSB_"+u.idx);s=n("#mCSB_"+u.idx+"_container");r.axis==="y"||r.advanced.autoExpandHorizontalScroll||s.css("width",st(s));r.scrollbarPosition==="outside"?(f.css("position")==="static"&&f.css("position","relative"),f.css("overflow","visible"),c.addClass("mCSB_outside").after(a)):(c.addClass("mCSB_inside").append(a),s.wrap(y));kt.call(this);e=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")];e[0].css("min-height",e[0].height());e[1].css("min-width",e[1].width())},st=function(t){var i=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return n(this).outerWidth(!0)}).get())],r=t.parent().width();return i[0]>r?i[0]:i[1]>r?i[1]:"100%"},bt=function(){var e=n(this),f=e.data(t),r=f.opt,i=n("#mCSB_"+f.idx+"_container"),u;r.advanced.autoExpandHorizontalScroll&&r.axis!=="y"&&(i.css({width:"auto","min-width":0,"overflow-x":"scroll"}),u=Math.ceil(i[0].scrollWidth),r.advanced.autoExpandHorizontalScroll===3||r.advanced.autoExpandHorizontalScroll!==2&&u>i.parent().width()?i.css({width:u,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap())},kt=function(){var s=n(this),o=s.data(t),u=o.opt,h=n(".mCSB_"+o.idx+"_scrollbar:first"),f=tt(u.scrollButtons.tabindex)?"tabindex='"+u.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+i[13]+"' oncontextmenu='return false;' "+f+" />","<a href='#' class='"+i[14]+"' oncontextmenu='return false;' "+f+" />","<a href='#' class='"+i[15]+"' oncontextmenu='return false;' "+f+" />","<a href='#' class='"+i[16]+"' oncontextmenu='return false;' "+f+" />"],e=[u.axis==="x"?r[2]:r[0],u.axis==="x"?r[3]:r[1],r[2],r[3]];u.scrollButtons.enable&&h.prepend(e[0]).append(e[1]).next(".mCSB_scrollTools").prepend(e[2]).append(e[3])},dt=function(){var s=n(this),u=s.data(t),f=n("#mCSB_"+u.idx),e=n("#mCSB_"+u.idx+"_container"),r=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")],o=[f.height()/e.outerHeight(!1),f.width()/e.outerWidth(!1)],i=[parseInt(r[0].css("min-height")),Math.round(o[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(o[1]*r[1].parent().width())],h=p&&i[1]<i[0]?i[0]:i[1],c=p&&i[3]<i[2]?i[2]:i[3];r[0].css({height:h,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":i[0]+"px"});r[1].css({width:c,"max-width":r[1].parent().width()-10})},gt=function(){var s=n(this),i=s.data(t),u=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),r=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e=[f.outerHeight(!1)-u.height(),f.outerWidth(!1)-u.width()],o=[e[0]/(r[0].parent().height()-r[0].height()),e[1]/(r[1].parent().width()-r[1].width())];i.scrollRatio={y:o[0],x:o[1]}},d=function(n,t,r){var f=r?i[0]+"_expanded":"",u=n.closest(".mCSB_scrollTools");t==="active"?(n.toggleClass(i[0]+" "+f),u.toggleClass(i[1]),n[0]._draggable=n[0]._draggable?0:1):n[0]._draggable||(t==="hide"?(n.removeClass(i[0]),u.removeClass(i[1])):(n.addClass(i[0]),u.addClass(i[1])))},ni=function(){var h=n(this),r=h.data(t),e=n("#mCSB_"+r.idx),i=n("#mCSB_"+r.idx+"_container"),u=r.overflowed==null?i.height():i.outerHeight(!1),f=r.overflowed==null?i.width():i.outerWidth(!1),o=i[0].scrollHeight,s=i[0].scrollWidth;return o>u&&(u=o),s>f&&(f=s),[u>e.height(),f>e.width()]},y=function(){var r=n(this),i=r.data(t),f=i.opt,c=n("#mCSB_"+i.idx),s=n("#mCSB_"+i.idx+"_container"),h=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e;o(r);(f.axis!=="x"&&!i.overflowed[0]||f.axis==="y"&&i.overflowed[0])&&(h[0].add(s).css("top",0),u(r,"_resetY"));(f.axis!=="y"&&!i.overflowed[1]||f.axis==="x"&&i.overflowed[1])&&(e=dx=0,i.langDir==="rtl"&&(e=c.width()-s.outerWidth(!1),dx=Math.abs(e/i.scrollRatio.x)),s.css("left",e),h[1].css("left",dx),u(r,"_resetX"))},ti=function(){var u=n(this),r=u.data(t),i=r.opt,e;
4if(!r.bindEvents){if(ii.call(this),i.contentTouchScroll&&ri.call(this),ui.call(this),i.mouseWheel.enable){function f(){e=setTimeout(function(){n.event.special.mousewheel?(clearTimeout(e),fi.call(u[0])):f()},100)}f()}oi.call(this);hi.call(this);i.advanced.autoScrollOnFocus&&si.call(this);i.scrollButtons.enable&&ci.call(this);i.keyboard.enable&&li.call(this);r.bindEvents=!0}},g=function(){var f=n(this),r=f.data(t),u=r.opt,o=t+"_"+r.idx,s=".mCSB_"+r.idx+"_scrollbar",e=n("#mCSB_"+r.idx+",#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,"+s+" ."+i[12]+",#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal,"+s+">a"),h=n("#mCSB_"+r.idx+"_container");u.advanced.releaseDraggableSelectors&&e.add(n(u.advanced.releaseDraggableSelectors));u.advanced.extraDraggableSelectors&&e.add(n(u.advanced.extraDraggableSelectors));r.bindEvents&&(n(document).add(n(!l()||top.document)).unbind("."+o),e.each(function(){n(this).unbind("."+o)}),clearTimeout(f[0]._focusTimeout),a(f[0],"_focusTimeout"),clearTimeout(r.sequential.step),a(r.sequential,"step"),clearTimeout(h[0].onCompleteTimeout),a(h[0],"onCompleteTimeout"),r.bindEvents=!1)},ht=function(r){var h=n(this),u=h.data(t),o=u.opt,c=n("#mCSB_"+u.idx+"_container_wrapper"),f=c.length?c:n("#mCSB_"+u.idx+"_container"),e=[n("#mCSB_"+u.idx+"_scrollbar_vertical"),n("#mCSB_"+u.idx+"_scrollbar_horizontal")],s=[e[0].find(".mCSB_dragger"),e[1].find(".mCSB_dragger")];o.axis!=="x"&&(u.overflowed[0]&&!r?(e[0].add(s[0]).add(e[0].children("a")).css("display","block"),f.removeClass(i[8]+" "+i[10])):(o.alwaysShowScrollbar?(o.alwaysShowScrollbar!==2&&s[0].css("display","none"),f.removeClass(i[10])):(e[0].css("display","none"),f.addClass(i[10])),f.addClass(i[8])));o.axis!=="y"&&(u.overflowed[1]&&!r?(e[1].add(s[1]).add(e[1].children("a")).css("display","block"),f.removeClass(i[9]+" "+i[11])):(o.alwaysShowScrollbar?(o.alwaysShowScrollbar!==2&&s[1].css("display","none"),f.removeClass(i[11])):(e[1].css("display","none"),f.addClass(i[11])),f.addClass(i[9])));u.overflowed[0]||u.overflowed[1]?h.removeClass(i[5]):h.addClass(i[5])},r=function(t){var e=t.type,i=t.target.ownerDocument!==document?[n(frameElement).offset().top,n(frameElement).offset().left]:null,u=l()&&t.target.ownerDocument!==top.document?[n(t.view.frameElement).offset().top,n(t.view.frameElement).offset().left]:[0,0],r,f;switch(e){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[t.originalEvent.pageY-i[0]+u[0],t.originalEvent.pageX-i[1]+u[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":return r=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],f=t.originalEvent.touches.length||t.originalEvent.changedTouches.length,t.target.ownerDocument!==document?[r.screenY,r.screenX,f>1]:[r.pageY,r.pageX,f>1];default:return i?[t.pageY-i[0]+u[0],t.pageX-i[1]+u[1],!1]:[t.pageY,t.pageX,!1]}},ii=function(){function k(n){var t=b.find("iframe"),i;t.length&&(i=n?"auto":"none",t.css("pointer-events",i))}function g(n,t,r,f){var e,o;b[0].idleTimer=h.scrollInertia<233?250:0;i.attr("id")===y[1]?(e="x",o=(i[0].offsetLeft-t+f)*s.scrollRatio.x):(e="y",o=(i[0].offsetTop-n+r)*s.scrollRatio.y);u(v,o.toString(),{dir:e,drag:!0})}var v=n(this),s=v.data(t),h=s.opt,e=t+"_"+s.idx,y=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],b=n("#mCSB_"+s.idx+"_container"),w=n("#"+y[0]+",#"+y[1]),i,c,a,nt=h.advanced.releaseDraggableSelectors?w.add(n(h.advanced.releaseDraggableSelectors)):w,tt=h.advanced.extraDraggableSelectors?n(!l()||top.document).add(n(h.advanced.extraDraggableSelectors)):n(!l()||top.document);w.bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),at(t)){f=!0;p&&(document.onselectstart=function(){return!1});k(!1);o(v);i=n(this);var u=i.offset(),e=r(t)[0]-u.top,s=r(t)[1]-u.left,l=i.height()+u.top,y=i.width()+u.left;e<l&&e>0&&s<y&&s>0&&(c=e,a=s);d(i,"active",h.autoExpandScrollbar)}}).bind("touchmove."+e,function(n){n.stopImmediatePropagation();n.preventDefault();var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;g(c,a,u,f)});n(document).add(tt).bind("mousemove."+e+" pointermove."+e+" MSPointerMove."+e,function(n){if(i){var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;if(c===u&&a===f)return;g(c,a,u,f)}}).add(nt).bind("mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){i&&(d(i,"active",h.autoExpandScrollbar),i=null);f=!1;p&&(document.onselectstart=null);k(!0)})},ri=function(){function dt(n){if(!nt(n)||f||r(n)[2]){c=0;return}c=1;ft=0;et=0;st=1;k.removeClass("mCS_touch_action");var t=b.offset();d=r(n)[0]-t.top;g=r(n)[1]-t.left;v=[r(n)[0],r(n)[1]]}function gt(n){var c,l,a,y;if(nt(n)&&!f&&!r(n)[2]&&(e.documentTouchScroll||n.preventDefault(),n.stopImmediatePropagation(),!et||ft)&&st){pt=w();var o=tt.offset(),t=r(n)[0]-o.top,u=r(n)[1]-o.left,h="mcsLinearOut";rt.push(t);ut.push(u);v[2]=Math.abs(r(n)[0]-v[0]);v[3]=Math.abs(r(n)[1]-v[1]);i.overflowed[0]&&(c=it[0].parent().height()-it[0].height(),l=d-t>0&&t-d>-(c*i.scrollRatio.y)&&(v[3]*2<v[2]||e.axis==="yx"));i.overflowed[1]&&(a=it[1].parent().width()-it[1].width(),y=g-u>0&&u-g>-(a*i.scrollRatio.x)&&(v[2]*2<v[3]||e.axis==="yx"));l||y?(kt||n.preventDefault(),ft=1):(et=1,k.addClass("mCS_touch_action"));kt&&n.preventDefault();s=e.axis==="yx"?[d-t,g-u]:e.axis==="x"?[null,g-u]:[d-t,null];b[0].idleTimer=250;i.overflowed[0]&&ot(s[0],wt,h,"y","all",!0);i.overflowed[1]&&ot(s[1],wt,h,"x",lt,!0)}}function ni(n){if(!nt(n)||f||r(n)[2]){c=0;return}c=1;n.stopImmediatePropagation();o(k);yt=w();var t=tt.offset();at=r(n)[0]-t.top;vt=r(n)[1]-t.left;rt=[];ut=[]}function ti(n){var t,u,h;if(nt(n)&&!f&&!r(n)[2]){st=0;n.stopImmediatePropagation();ft=0;et=0;ht=w();var c=tt.offset(),l=r(n)[0]-c.top,v=r(n)[1]-c.left;if(!(ht-pt>30)){a=1e3/(ht-yt);var p="mcsEaseOut",o=a<2.5,k=o?[rt[rt.length-2],ut[ut.length-2]]:[0,0];y=o?[l-k[0],v-k[1]]:[l-at,v-vt];t=[Math.abs(y[0]),Math.abs(y[1])];a=o?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[a,a];u=[Math.abs(b[0].offsetTop)-y[0]*ii(t[0]/a[0],a[0]),Math.abs(b[0].offsetLeft)-y[1]*ii(t[1]/a[1],a[1])];s=e.axis==="yx"?[u[0],u[1]]:e.axis==="x"?[null,u[1]]:[u[0],null];ct=[t[0]*4+e.scrollInertia,t[1]*4+e.scrollInertia];h=parseInt(e.contentTouchScroll)||0;s[0]=t[0]>h?s[0]:0;s[1]=t[1]>h?s[1]:0;i.overflowed[0]&&ot(s[0],ct[0],p,"y",lt,!1);i.overflowed[1]&&ot(s[1],ct[1],p,"x",lt,!1)}}}function ii(n,t){var i=[t*1.5,t*2,t/1.5,t/2];return n>90?t>4?i[0]:i[3]:n>60?t>3?i[3]:i[2]:n>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function ot(n,t,i,r,f,e){n&&u(k,n.toString(),{dur:t,scrollEasing:i,dir:r,overwrite:f,drag:e})}var k=n(this),i=k.data(t),e=i.opt,h=t+"_"+i.idx,tt=n("#mCSB_"+i.idx),b=n("#mCSB_"+i.idx+"_container"),it=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],st,d,g,at,vt,rt=[],ut=[],yt,pt,ht,y,a,s,wt=0,ct,lt=e.axis==="yx"?"none":"all",v=[],ft,et,bt=b.find("iframe"),p=["touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,"touchmove."+h+" pointermove."+h+" MSPointerMove."+h,"touchend."+h+" pointerup."+h+" MSPointerUp."+h],kt=document.body.style.touchAction!==un
4defined;b.bind(p[0],function(n){dt(n)}).bind(p[1],function(n){gt(n)});tt.bind(p[0],function(n){ni(n)}).bind(p[2],function(n){ti(n)});bt.length&&bt.each(function(){n(this).load(function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(p[0],function(n){dt(n);ni(n)}).bind(p[1],function(n){gt(n)}).bind(p[2],function(n){ti(n)})})})},ui=function(){function y(){return window.getSelection?window.getSelection().toString():document.selection&&document.selection.type!="Control"?document.selection.createRange().text:0}function e(n,t,i){l.type=i&&u?"stepped":"stepless";l.scrollAmount=10;rt(a,n,t,"mcsLinearOut",i?60:null)}var a=n(this),i=a.data(t),v=i.opt,l=i.sequential,s=t+"_"+i.idx,o=n("#mCSB_"+i.idx+"_container"),h=o.parent(),u;o.bind("mousedown."+s,function(){c||u||(u=1,f=!0)}).add(document).bind("mousemove."+s,function(n){if(!c&&u&&y()){var s=o.offset(),t=r(n)[0]-s.top+o[0].offsetTop,f=r(n)[1]-s.left+o[0].offsetLeft;t>0&&t<h.height()&&f>0&&f<h.width()?l.step&&e("off",null,"stepped"):(v.axis!=="x"&&i.overflowed[0]&&(t<0?e("on",38):t>h.height()&&e("on",40)),v.axis!=="y"&&i.overflowed[1]&&(f<0?e("on",37):f>h.width()&&e("on",39)))}}).bind("mouseup."+s+" dragend."+s,function(){c||(u&&(u=0,e("off",null)),f=!1)})},fi=function(){function a(t,h){var a,v;if(o(s),!ei(s,t.target)){if(a=i.mouseWheel.deltaFactor!=="auto"?parseInt(i.mouseWheel.deltaFactor):p&&t.deltaFactor<100?100:t.deltaFactor||100,v=i.scrollInertia,i.axis==="x"||i.mouseWheel.axis==="x")var y="x",l=[Math.round(a*r.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],w=i.mouseWheel.scrollAmount!=="auto"?l[1]:l[0]>=e.width()?e.width()*.9:l[0],k=Math.abs(n("#mCSB_"+r.idx+"_container")[0].offsetLeft),b=f[1][0].offsetLeft,d=f[1].parent().width()-f[1].width(),c=t.deltaX||t.deltaY||h;else var y="y",l=[Math.round(a*r.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],w=i.mouseWheel.scrollAmount!=="auto"?l[1]:l[0]>=e.height()?e.height()*.9:l[0],k=Math.abs(n("#mCSB_"+r.idx+"_container")[0].offsetTop),b=f[0][0].offsetTop,d=f[0].parent().height()-f[0].height(),c=t.deltaY||h;(y!=="y"||r.overflowed[0])&&(y!=="x"||r.overflowed[1])&&((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(c=-c),i.mouseWheel.normalizeDelta&&(c=c<0?-1:1),(c>0&&b!==0||c<0&&b!==d||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<2&&!i.mouseWheel.normalizeDelta&&(w=t.deltaFactor,v=17),u(s,(k-c*w).toString(),{dir:y,dur:v}))}}if(n(this).data(t)){var s=n(this),r=s.data(t),i=r.opt,h=t+"_"+r.idx,e=n("#mCSB_"+r.idx),f=[n("#mCSB_"+r.idx+"_dragger_vertical"),n("#mCSB_"+r.idx+"_dragger_horizontal")],c=n("#mCSB_"+r.idx+"_container").find("iframe");c.length&&c.each(function(){n(this).load(function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind("mousewheel."+h,function(n,t){a(n,t)})})});e.bind("mousewheel."+h,function(n,t){a(n,t)})}},l=function(n){var t=null,i;if(n){try{i=n.contentDocument||n.contentWindow.document;t=i.body.innerHTML}catch(r){}return t!==null}try{i=top.document;t=i.body.innerHTML}catch(r){}return t!==null},ei=function(i,r){var u=r.nodeName.toLowerCase(),f=i.data(t).opt.mouseWheel.disableOver;return n.inArray(u,f)>-1&&!(n.inArray(u,["select","textarea"])>-1&&!n(r).is(":focus"))},oi=function(){var s=n(this),e=s.data(t),r=t+"_"+e.idx,h=n("#mCSB_"+e.idx+"_container"),l=h.parent(),a=n(".mCSB_"+e.idx+"_scrollbar ."+i[12]),c;a.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(t){f=!0;n(t.target).hasClass("mCSB_dragger")||(c=1)}).bind("touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(){f=!1}).bind("click."+r,function(t){var r,f;if(c&&(c=0,n(t.target).hasClass(i[12])||n(t.target).hasClass("mCSB_draggerRail"))){if(o(s),r=n(this),f=r.find(".mCSB_dragger"),r.parent(".mCSB_scrollTools_horizontal").length>0){if(!e.overflowed[1])return;var v="x",a=t.pageX>f.offset().left?-1:1,y=Math.abs(h[0].offsetLeft)-a*l.width()*.9}else{if(!e.overflowed[0])return;var v="y",a=t.pageY>f.offset().top?-1:1,y=Math.abs(h[0].offsetTop)-a*l.height()*.9}u(s,y.toString(),{dir:v,scrollEasing:"mcsEaseInOut"})}})},si=function(){var i=n(this),s=i.data(t),f=s.opt,c=t+"_"+s.idx,r=n("#mCSB_"+s.idx+"_container"),h=r.parent();r.bind("focusin."+c,function(){var t=n(document.activeElement),c=r.find(".mCustomScrollBox").length,s=0;t.is(f.advanced.autoScrollOnFocus)&&(o(i),clearTimeout(i[0]._focusTimeout),i[0]._focusTimer=c?(s+17)*c:0,i[0]._focusTimeout=setTimeout(function(){var n=[e(t)[0],e(t)[1]],o=[r[0].offsetTop,r[0].offsetLeft],c=[o[0]+n[0]>=0&&o[0]+n[0]<h.height()-t.outerHeight(!1),o[1]+n[1]>=0&&o[0]+n[1]<h.width()-t.outerWidth(!1)],l=f.axis==="yx"&&!c[0]&&!c[1]?"none":"all";f.axis==="x"||c[0]||u(i,n[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s});f.axis==="y"||c[1]||u(i,n[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s})},i[0]._focusTimer))})},hi=function(){var u=n(this),i=u.data(t),f=t+"_"+i.idx,r=n("#mCSB_"+i.idx+"_container").parent();r.bind("scroll."+f,function(){(r.scrollTop()!==0||r.scrollLeft()!==0)&&n(".mCSB_"+i.idx+"_scrollbar").css("visibility","hidden")})},ci=function(){var e=n(this),r=e.data(t),o=r.opt,u=r.sequential,i=t+"_"+r.idx,s=".mCSB_"+r.idx+"_scrollbar",h=n(s+">a");h.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(t){function s(n,t){u.scrollAmount=o.scrollButtons.scrollAmount;rt(e,n,t)}if(t.preventDefault(),at(t)){var i=n(this).attr("class");u.type=o.scrollButtons.scrollType;switch(t.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if(u.type==="stepped")return;f=!0;r.tweenRunning=!1;s("on",i);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if(u.type==="stepped")return;f=!1;u.dir&&s("off",i);break;case"click":if(u.type!=="stepped"||r.tweenRunning)return;s("on",i)}}})},li=function(){function p(t){function w(n,t){(s.type=r.keyboard.scrollType,s.scrollAmount=r.keyboard.scrollAmount,s.type==="stepped"&&i.tweenRunning)||rt(e,n,t)}var c,y,p,l,v;switch(t.type){case"blur":i.tweenRunning&&s.dir&&w("off",null);break;case"keydown":case"keyup":if(c=t.keyCode?t.keyCode:t.which,y="on",r.axis!=="x"&&(c===38||c===40)||r.axis!=="y"&&(c===37||c===39)){if((c===38||c===40)&&!i.overflowed[0]||(c===37||c===39)&&!i.overflowed[1])return;
4t.type==="keyup"&&(y="off");n(document.activeElement).is(a)||(t.preventDefault(),t.stopImmediatePropagation(),w(y,c))}else c===33||c===34?((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),t.type==="keyup"&&(o(e),p=c===34?-1:1,r.axis==="x"||r.axis==="yx"&&i.overflowed[1]&&!i.overflowed[0]?(l="x",v=Math.abs(f[0].offsetLeft)-p*h.width()*.9):(l="y",v=Math.abs(f[0].offsetTop)-p*h.height()*.9),u(e,v.toString(),{dir:l,scrollEasing:"mcsEaseInOut"}))):(c===35||c===36)&&(n(document.activeElement).is(a)||((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),t.type==="keyup"&&(r.axis==="x"||r.axis==="yx"&&i.overflowed[1]&&!i.overflowed[0]?(l="x",v=c===35?Math.abs(h.width()-f.outerWidth(!1)):0):(l="y",v=c===35?Math.abs(h.height()-f.outerHeight(!1)):0),u(e,v.toString(),{dir:l,scrollEasing:"mcsEaseInOut"}))))}}var e=n(this),i=e.data(t),r=i.opt,s=i.sequential,c=t+"_"+i.idx,w=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),h=f.parent(),a="input,textarea,select,datalist,keygen,[contenteditable='true']",v=f.find("iframe"),y=["blur."+c+" keydown."+c+" keyup."+c];v.length&&v.each(function(){n(this).load(function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(y[0],function(n){p(n)})})});w.attr("tabindex","0").bind(y[0],function(n){p(n)})},rt=function(r,f,e,s,h){function y(n){l.snapAmount&&(c.scrollAmount=(l.snapAmount instanceof Array)?c.dir[0]==="x"?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount);var i=c.type!=="stepped",f=h?h:n?i?b/1.5:k:1e3/60,e=n?i?7.5:40:2.5,t=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],o=[v.scrollRatio.y>10?10:v.scrollRatio.y,v.scrollRatio.x>10?10:v.scrollRatio.x],w=c.dir[0]==="x"?t[1]+c.dir[1]*o[1]*e:t[0]+c.dir[1]*o[0]*e,d=c.dir[0]==="x"?t[1]+c.dir[1]*parseInt(c.scrollAmount):t[0]+c.dir[1]*parseInt(c.scrollAmount),a=c.scrollAmount!=="auto"?d:w,g=s?s:n?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",nt=n?!0:!1;if(n&&f<17&&(a=c.dir[0]==="x"?t[1]:t[0]),u(r,a.toString(),{dir:c.dir[0],scrollEasing:g,dur:f,onComplete:nt}),n){c.dir=!1;return}clearTimeout(c.step);c.step=setTimeout(function(){y()},f)}function d(){clearTimeout(c.step);a(c,"step");o(r)}var v=r.data(t),l=v.opt,c=v.sequential,p=n("#mCSB_"+v.idx+"_container"),w=c.type==="stepped"?!0:!1,b=l.scrollInertia<26?26:l.scrollInertia,k=l.scrollInertia<1?17:l.scrollInertia;switch(f){case"on":if(c.dir=[e===i[16]||e===i[15]||e===39||e===37?"x":"y",e===i[13]||e===i[15]||e===38||e===37?-1:1],o(r),tt(e)&&c.type==="stepped")return;y(w);break;case"off":d();(w||v.tweenRunning&&c.dir)&&y(!0)}},ut=function(i){var u=n(this).data(t).opt,r=[];return typeof i=="function"&&(i=i()),i instanceof Array?r=i.length>1?[i[0],i[1]]:u.axis==="x"?[null,i[0]]:[i[0],null]:(r[0]=i.y?i.y:i.x||u.axis==="x"?null:i,r[1]=i.x?i.x:i.y||u.axis==="y"?null:i),typeof r[0]=="function"&&(r[0]=r[0]()),typeof r[1]=="function"&&(r[1]=r[1]()),r},ct=function(i,r){var o,f;if(i!=null&&typeof i!="undefined"){var h=n(this),c=h.data(t),v=c.opt,u=n("#mCSB_"+c.idx+"_container"),l=u.parent(),y=typeof i;r||(r=v.axis==="x"?"x":"y");var p=r==="x"?u.outerWidth(!1):u.outerHeight(!1),a=r==="x"?u[0].offsetLeft:u[0].offsetTop,w=r==="x"?"left":"top";switch(y){case"function":return i();case"object":return(f=i.jquery?i:n(i),!f.length)?void 0:r==="x"?e(f)[1]:e(f)[0];case"string":case"number":if(tt(i))return Math.abs(i);if(i.indexOf("%")!==-1)return Math.abs(p*parseInt(i)/100);if(i.indexOf("-=")!==-1)return Math.abs(a-parseInt(i.split("-=")[1]));if(i.indexOf("+=")!==-1)return o=a+parseInt(i.split("+=")[1]),o>=0?0:Math.abs(o);if(i.indexOf("px")!==-1&&tt(i.split("px")[0]))return Math.abs(i.split("px")[0]);if(i==="top"||i==="left")return 0;if(i==="bottom")return Math.abs(l.height()-u.outerHeight(!1));if(i==="right")return Math.abs(l.width()-u.outerWidth(!1));if(i==="first"||i==="last")return f=u.find(":"+i),r==="x"?e(f)[1]:e(f)[0];if(n(i).length)return r==="x"?e(n(i))[1]:e(n(i))[0];u.css(w,i);s.update.call(null,h[0]);return}}},ft=function(r){function c(){if(clearTimeout(e[0].autoUpdate),o.parents("html").length===0){o=null;return}e[0].autoUpdate=setTimeout(function(){if(f.advanced.updateOnSelectorChange&&(u.poll.change.n=v(),u.poll.change.n!==u.poll.change.o)){u.poll.change.o=u.poll.change.n;h(3);return}if(f.advanced.updateOnContentResize&&(u.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+e[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,u.poll.size.n!==u.poll.size.o)){u.poll.size.o=u.poll.size.n;h(1);return}if(f.advanced.updateOnImageLoad&&!(f.advanced.updateOnImageLoad==="auto"&&f.axis==="y")&&(u.poll.img.n=e.find("img").length,u.poll.img.n!==u.poll.img.o)){u.poll.img.o=u.poll.img.n;e.find("img").each(function(){l(this)});return}(f.advanced.updateOnSelectorChange||f.advanced.updateOnContentResize||f.advanced.updateOnImageLoad)&&c()},f.advanced.autoUpdateTimeout)}function l(t){function u(n,t){return function(){return t.apply(n,arguments)}}function f(){this.onload=null;n(t).addClass(i[2]);h(2)}if(n(t).hasClass(i[2])){h();return}var r=new Image;r.onload=u(r,f);r.src=t.src}function v(){f.advanced.updateOnSelectorChange===!0&&(f.advanced.updateOnSelectorChange="*");var n=0,t=e.find(f.advanced.updateOnSelectorChange);return f.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){n+=this.offsetHeight+this.offsetWidth}),n}function h(n){clearTimeout(e[0].autoUpdate);s.update.call(null,o[0],n)}var o=n(this),u=o.data(t),f=u.opt,e=n("#mCSB_"+u.idx+"_container");if(r){clearTimeout(e[0].autoUpdate);a(e[0],"autoUpdate");return}c()},ai=function(n,t,i){return Math.round(n/t)*t-i},o=function(i){var r=i.data(t),u=n("#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal");u.each(function(){vi.call(this)})},u=function(i,r,u){function h(n){return f&&e.callbacks[n]&&typeof e.callbacks[n]=="function"}function ot(){return[e.callbacks.alwaysTriggerOffsets||w>=l[0]+v,e.callbacks.alwaysTriggerOffsets||w<=-y]}function a(){var n=[o[0].offsetTop,o[0].offsetLeft],t=[c[0].offsetTop,c[0].offsetLeft],r=[o.outerHeight(!1),o.outerWidth(!1)],f=[p.height(),p.width()];i[0].mcs={content:o,top:n[0],left:n[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(n[0])/(Math.abs(r[0])-f[0])),leftPct:Math.round(100*Math.abs(n[1])/(Math.abs(r[1])-f[1])),direction:u.dir}}var f=i.data(t),e=f.opt,rt={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:e.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},u=n.extend(rt,u),k=[u.dur,u.drag?0:u.dur],p=n("#mCSB_"+f.idx),o=n("#mCSB_"+f.idx+"_container"),b=o.parent(),g=e.callbacks.onTotalScrollOffset?ut.call(i,e.callbacks.onTotalScrollOffset):[0,0],nt=e.callbacks.onTotalScrollBackOffset?ut.call(i,e.callbacks.onTotalScrollBackOffset):[0,0],tt;if(f.trigger=u.trigger,(b.scrollTop()!==0||b.scrollLeft()!==0)&&(n(".mCSB_"+f.idx+"_scrollbar").css("visibility","visible"),b.scrollTop(0).scrollLeft(0)),r!=="_resetY"||f.contentReset.
4y||(h("onOverflowYNone")&&e.callbacks.onOverflowYNone.call(i[0]),f.contentReset.y=1),r!=="_resetX"||f.contentReset.x||(h("onOverflowXNone")&&e.callbacks.onOverflowXNone.call(i[0]),f.contentReset.x=1),r!=="_resetY"&&r!=="_resetX"){(f.contentReset.y||!i[0].mcs)&&f.overflowed[0]&&(h("onOverflowY")&&e.callbacks.onOverflowY.call(i[0]),f.contentReset.x=null);(f.contentReset.x||!i[0].mcs)&&f.overflowed[1]&&(h("onOverflowX")&&e.callbacks.onOverflowX.call(i[0]),f.contentReset.x=null);e.snapAmount&&(tt=(e.snapAmount instanceof Array)?u.dir==="x"?e.snapAmount[1]:e.snapAmount[0]:e.snapAmount,r=ai(r,tt,e.snapOffset));switch(u.dir){case"x":var c=n("#mCSB_"+f.idx+"_dragger_horizontal"),it="left",w=o[0].offsetLeft,l=[p.width()-o.outerWidth(!1),c.parent().width()-c.width()],s=[r,r===0?0:r/f.scrollRatio.x],v=g[1],y=nt[1],ft=v>0?v/f.scrollRatio.x:0,et=y>0?y/f.scrollRatio.x:0;break;case"y":var c=n("#mCSB_"+f.idx+"_dragger_vertical"),it="top",w=o[0].offsetTop,l=[p.height()-o.outerHeight(!1),c.parent().height()-c.height()],s=[r,r===0?0:r/f.scrollRatio.y],v=g[0],y=nt[0],ft=v>0?v/f.scrollRatio.y:0,et=y>0?y/f.scrollRatio.y:0}(s[1]<0||s[0]===0&&s[1]===0?s=[0,0]:s[1]>=l[1]?s=[l[0],l[1]]:s[0]=-s[0],i[0].mcs||(a(),h("onInit")&&e.callbacks.onInit.call(i[0])),clearTimeout(o[0].onCompleteTimeout),lt(c[0],it,Math.round(s[1]),k[1],u.scrollEasing),!f.tweenRunning&&(w===0&&s[0]>=0||w===l[0]&&s[0]<=l[0]))||lt(o[0],it,Math.round(s[0]),k[0],u.scrollEasing,u.overwrite,{onStart:function(){u.callbacks&&u.onStart&&!f.tweenRunning&&(h("onScrollStart")&&(a(),e.callbacks.onScrollStart.call(i[0])),f.tweenRunning=!0,d(c),f.cbOffsets=ot())},onUpdate:function(){u.callbacks&&u.onUpdate&&h("whileScrolling")&&(a(),e.callbacks.whileScrolling.call(i[0]))},onComplete:function(){if(u.callbacks&&u.onComplete){e.axis==="yx"&&clearTimeout(o[0].onCompleteTimeout);var n=o[0].idleTimer||0;o[0].onCompleteTimeout=setTimeout(function(){h("onScroll")&&(a(),e.callbacks.onScroll.call(i[0]));h("onTotalScroll")&&s[1]>=l[1]-ft&&f.cbOffsets[0]&&(a(),e.callbacks.onTotalScroll.call(i[0]));h("onTotalScrollBack")&&s[1]<=et&&f.cbOffsets[1]&&(a(),e.callbacks.onTotalScrollBack.call(i[0]));f.tweenRunning=!1;o[0].idleTimer=0;d(c,"hide")},n)}}})}},lt=function(n,t,i,r,u,f,e){function y(){o.stop||(s||b.call(),s=w()-g,p(),s>=o.time&&(o.time=s>o.time?s+h-(s-o.time):s+h-1,o.time<s+1&&(o.time=s+1)),o.time<r?o.id=l(y):d.call())}function p(){r>0?(o.currVal=it(o.time,c,v,r,u),a[t]=Math.round(o.currVal)+"px"):a[t]=i+"px";k.call()}function nt(){h=1e3/60;o.time=s+h;l=window.requestAnimationFrame?window.requestAnimationFrame:function(n){return p(),setTimeout(n,.01)};o.id=l(y)}function tt(){o.id!=null&&(window.requestAnimationFrame?window.cancelAnimationFrame(o.id):clearTimeout(o.id),o.id=null)}function it(n,t,i,r,u){switch(u){case"linear":case"mcsLinear":return i*n/r+t;case"mcsLinearOut":return n/=r,n--,i*Math.sqrt(1-n*n)+t;case"easeInOutSmooth":return(n/=r/2,n<1)?i/2*n*n+t:(n--,-i/2*(n*(n-2)-1)+t);case"easeInOutStrong":return(n/=r/2,n<1)?i/2*Math.pow(2,10*(n-1))+t:(n--,i/2*(-Math.pow(2,-10*n)+2)+t);case"easeInOut":case"mcsEaseInOut":return(n/=r/2,n<1)?i/2*n*n*n+t:(n-=2,i/2*(n*n*n+2)+t);case"easeOutSmooth":return n/=r,n--,-i*(n*n*n*n-1)+t;case"easeOutStrong":return i*(-Math.pow(2,-10*n/r)+1)+t;case"easeOut":case"mcsEaseOut":default:var f=(n/=r)*n,e=f*n;return t+i*(.499999999999997*e*f+-2.5*f*f+5.5*e+-6.5*f+4*n)}}var v;n._mTween||(n._mTween={top:{},left:{}});var e=e||{},b=e.onStart||function(){},k=e.onUpdate||function(){},d=e.onComplete||function(){},g=w(),h,s=0,c=n.offsetTop,a=n.style,l,o=n._mTween[t];t==="left"&&(c=n.offsetLeft);v=i-c;o.stop=0;f!=="none"&&tt();nt()},w=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},vi=function(){var n=this,r,i,t;for(n._mTween||(n._mTween={top:{},left:{}}),r=["top","left"],i=0;i<r.length;i++)t=r[i],n._mTween[t].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(n._mTween[t].id):clearTimeout(n._mTween[t].id),n._mTween[t].id=null,n._mTween[t].stop=1)},a=function(n,t){try{delete n[t]}catch(i){n[t]=null}},at=function(n){return!(n.which&&n.which!==1)},nt=function(n){var t=n.originalEvent.pointerType;return!(t&&t!=="touch"&&t!==2)},tt=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},e=function(n){var t=n.parents(".mCSB_container");return[n.offset().top-t.offset().top,n.offset().left-t.offset().left]},yi=function(){function t(){var t=["webkit","moz","ms","o"],n;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}var n=t();return n?document[n]:!1};n.fn[h]=function(t){if(s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1
4));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist");else return s.init.apply(this,arguments)};n[h]=function(t){if(s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist");else return s.init.apply(this,arguments)};n[h].defaults=et;window[h]=!0;n(window).load(function(){n(it)[h]();n.extend(n.expr[":"],{mcsInView:n.expr[":"].mcsInView||function(t){var i=n(t),u=i.parents(".mCSB_container"),f,r;if(u.length)return f=u.parent(),r=[u[0].offsetTop,u[0].offsetLeft],r[0]+e(i)[0]>=0&&r[0]+e(i)[0]<f.height()-i.outerHeight(!1)&&r[1]+e(i)[1]>=0&&r[1]+e(i)[1]<f.width()-i.outerWidth(!1)},mcsOverflow:n.expr[":"].mcsOverflow||function(i){var r=n(i).data(t);if(r)return r.overflowed[0]||r.overflowed[1]}})})})});(function(n,t,i,r,u,f,e){function v(){function r(n,t){i.push({uc:n,tc:t})}function u(n,t){o.c(i,function(r,u){r.uc==n&&r.tc===t&&i.splice(u,1)})}var t=this,i=[];t.$On=t.addEventListener=r;t.$Off=t.removeEventListener=u;t.n=function(t){var r=[].slice.call(arguments,1);o.c(i,function(i){i.uc==t&&i.tc.apply(n,r)})}}function w(n,t,i){var r=this;l.call(r,0,i);r.wb=o.ld;r.bc=0;r.lc=i}var l,p,c,y;new function(){};
4var s=n.$JssorEasing$={$EaseSwing:function(n){return-i.cos(n*i.PI)/2+.5},$EaseLinear:function(n){return n},$EaseInQuad:function(n){return n*n},$EaseOutQuad:function(n){return-n*(n-2)},$EaseInOutQuad:function(n){return(n*=2)<1?1/2*n*n:-1/2*(--n*(n-2)-1)},$EaseInCubic:function(n){return n*n*n},$EaseOutCubic:function(n){return(n-=1)*n*n+1},$EaseInOutCubic:function(n){return(n*=2)<1?1/2*n*n*n:1/2*((n-=2)*n*n+2)},$EaseInQuart:function(n){return n*n*n*n},$EaseOutQuart:function(n){return-((n-=1)*n*n*n-1)},$EaseInOutQuart:function(n){return(n*=2)<1?1/2*n*n*n*n:-1/2*((n-=2)*n*n*n-2)},$EaseInQuint:function(n){return n*n*n*n*n},$EaseOutQuint:function(n){return(n-=1)*n*n*n*n+1},$EaseInOutQuint:function(n){return(n*=2)<1?1/2*n*n*n*n*n:1/2*((n-=2)*n*n*n*n+2)},$EaseInSine:function(n){return 1-i.cos(n*i.PI/2)},$EaseOutSine:function(n){return i.sin(n*i.PI/2)},$EaseInOutSine:function(n){return-1/2*(i.cos(i.PI*n)-1)},$EaseInExpo:function(n){return n==0?0:i.pow(2,10*(n-1))},$EaseOutExpo:function(n){return n==1?1:-i.pow(2,-10*n)+1},$EaseInOutExpo:function(n){return n==0||n==1?n:(n*=2)<1?1/2*i.pow(2,10*(n-1)):1/2*(-i.pow(2,-10*--n)+2)},$EaseInCirc:function(n){return-(i.sqrt(1-n*n)-1)},$EaseOutCirc:function(n){return i.sqrt(1-(n-=1)*n)},$EaseInOutCirc:function(n){return(n*=2)<1?-1/2*(i.sqrt(1-n*n)-1):1/2*(i.sqrt(1-(n-=2)*n)+1)},$EaseInElastic:function(n){if(!n||n==1)return n;return-(i.pow(2,10*(n-=1))*i.sin((n-.075)*2*i.PI/.3))},$EaseOutElastic:function(n){if(!n||n==1)return n;return i.pow(2,-10*n)*i.sin((n-.075)*2*i.PI/.3)+1},$EaseInOutElastic:function(n){if(!n||n==1)return n;var t=.45,r=.1125;return(n*=2)<1?-.5*i.pow(2,10*(n-=1))*i.sin((n-r)*2*i.PI/t):i.pow(2,-10*(n-=1))*i.sin((n-r)*2*i.PI/t)*.5+1},$EaseInBack:function(n){var t=1.70158;return n*n*((t+1)*n-t)},$EaseOutBack:function(n){var t=1.70158;return(n-=1)*n*((t+1)*n+t)+1},$EaseInOutBack:function(n){var t=1.70158;return(n*=2)<1?1/2*n*n*(((t*=1.525)+1)*n-t):1/2*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},$EaseInBounce:function(n){return 1-s.$EaseOutBounce(1-n)},$EaseOutBounce:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},$EaseInOutBounce:function(n){return n<1/2?s.$EaseInBounce(n*2)*.5:s.$EaseOutBounce(n*2-1)*.5+.5},$EaseGoBack:function(){return 1-i.abs(1)},$EaseInWave:function(n){return 1-i.cos(n*i.PI*2)},$EaseOutWave:function(n){return i.sin(n*i.PI*2)},$EaseOutJump:function(n){return 1-((n*=2)<1?(n=1-n)*n*n:(n-=1)*n*n)},$EaseInJump:function(n){return(n*=2)<1?n*n*n:(n=2-n)*n*n}},h=n.$Jease$={$Swing:s.$EaseSwing,$Linear:s.$EaseLinear,$InQuad:s.$EaseInQuad,$OutQuad:s.$EaseOutQuad,$InOutQuad:s.$EaseInOutQuad,$InCubic:s.$EaseInCubic,$OutCubic:s.$EaseOutCubic,$InOutCubic:s.$EaseInOutCubic,$InQuart:s.$EaseInQuart,$OutQuart:s.$EaseOutQuart,$InOutQuart:s.$EaseInOutQuart,$InQuint:s.$EaseInQuint,$OutQuint:s.$EaseOutQuint,$InOutQuint:s.$EaseInOutQuint,$InSine:s.$EaseInSine,$OutSine:s.$EaseOutSine,$InOutSine:s.$EaseInOutSine,$InExpo:s.$EaseInExpo,$OutExpo:s.$EaseOutExpo,$InOutExpo:s.$EaseInOutExpo,$InCirc:s.$EaseInCirc,$OutCirc:s.$EaseOutCirc,$InOutCirc:s.$EaseInOutCirc,$InElastic:s.$EaseInElastic,$OutElastic:s.$EaseOutElastic,$InOutElastic:s.$EaseInOutElastic,$InBack:s.$EaseInBack,$OutBack:s.$EaseOutBack,$InOutBack:s.$EaseInOutBack,$InBounce:s.$EaseInBounce,$OutBounce:s.$EaseOutBounce,$InOutBounce:s.$EaseInOutBounce,$GoBack:s.$EaseGoBack,$InWave:s.$EaseInWave,$OutWave:s.$EaseOutWave,$OutJump:s.$EaseOutJump,$InJump:s.$EaseInJump},o=new function(){function er(){if(!et){et={Wg:"ontouchstart"in n||"createTouch"in t};var i;(ot.pointerEnabled||(i=ot.msPointerEnabled))&&(et.Ed=i?"msTouchAction":"touchAction")}return et}function rt(i){var u,s,r;if(!w)if(w=-1,ei!="Microsoft Internet Explorer"||!n.attachEvent||!n.ActiveXObject)if(ei!="Netscape"||!n.addEventListener)r=/(opera)(?:.*version|)[ \/]([\w.]+)/i.exec(v),r&&(w=ui,c=p(r[2]));else{var e=v.indexOf("Firefox"),f=v.indexOf("Safari"),h=v.indexOf("Chrome"),o=v.indexOf("AppleWebKit");e>=0?(w=ur,c=p(v.substring(e+8))):f>=0?(s=v.substring(0,f).lastIndexOf("/"),w=h>=0?fr:ri,c=p(v.substring(s+1,f))):(r=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,}
4)/i.exec(v),r&&(w=ft,c=k=p(r[1])));o>=0&&(it=p(v.substring(o+12)))}else u=v.indexOf("MSIE"),w=ft,k=p(v.substring(u+5,v.indexOf(";",u))),c=t.documentMode||k;return i==w}function b(){return rt(ft)}function or(){return b()&&(c<6||t.compatMode=="BackCompat")}function oi(){return rt(ri)}function si(){return rt(ui)}function sr(){return oi()&&it>534&&it<535}function st(){return rt(),it>537||c>42||w==ft&&c>=11}function hi(){return b()&&c<9}function ci(n){var t,i;return function(r){if(!t){t=u;var f=n.substr(0,1).toUpperCase()+n.substr(1);y([n].concat(["WebKit","ms","Moz","O","webkit"]),function(t,u){var o=n;return u&&(o=t+f),r.style[o]!=e?i=o:void 0})}return i}}function li(n){var t;return function(i){return t=t||ci(n)(i)||n}}function ai(n){return{}.toString.call(n)}function hr(){return ht||(ht={},y(["Boolean","Number","String","Function","Array","Date","RegExp","Object"],function(n){ht["[object "+n+"]"]=n.toLowerCase()})),ht}function y(n,t){var i,r;if(ai(n)=="[object Array]"){for(i=0;i<n.length;i++)if(r=t(n[i],i,n))return r}else for(i in n)if(r=t(n[i],i,n))return r}function ct(n){return n==r?String(n):hr()[ai(n)]||"object"}function cr(n){for(var t in n)return u}function ut(n){try{return ct(n)=="object"&&!n.nodeType&&n!=n.window&&(!n.constructor||{}.hasOwnProperty.call(n.constructor.prototype,"isPrototypeOf"))}catch(t){}}function d(n,t){return{x:n,y:t}}function vi(n,t){setTimeout(n,t||0)}function lt(n,t,i){var r=!n||n=="inherit"?"":n;return y(t,function(n){var t=n.exec(r),i,u;t&&(i=r.substr(0,t.index),u=r.substr(t.index+t[0].length+1,r.length-1),r=i+u)}),r=i+(r.indexOf(" ")?" ":"")+r}function yi(n,t){c<9&&(n.style.filter=t)}function kt(n){n.constructor===kt.caller&&n.Pd&&n.Pd.apply(n,kt.caller.arguments)}function nt(t){return t||n.event}function at(t,i,u){if(u!==e)t.style[i]=u==e?"":u;else{var f=t.currentStyle||t.style;return u=f[i],u==""&&n.getComputedStyle&&(f=t.ownerDocument.defaultView.getComputedStyle(t,r),f&&(u=f.getPropertyValue(i)||f[i])),u}}function lr(n,t,i,u){if(i!==e)i==r?i="":u&&(i+="px"),at(n,t,i);else return p(at(n,t))}function l(n,t){var r=t?lr:at,i;return t&4&&(i=li(n)),function(u,f){return r(u,i?i(u):n,f,t&2)}}function ar(n){if(b()&&k<9){var t=/opacity=([^)]*)/.exec(n.style.filter||"");return t?p(t[1])/100:1}return p(n.style.opacity||"1")}function vr(n,t,r){var e;if(b()&&k<9){var o=n.style.filter||"",s=new RegExp(/[\s]*alpha\([^\)]*\)/g),u=i.round(100*t),f="";(u<100||r)&&(f="alpha(opacity="+u+") ");e=lt(o,[s],f);yi(n,e)}else n.style.opacity=t==1?"":i.round(t*100)/100}function dt(n,t){var i="";t&&(b()&&c&&c<10&&(delete t.$RotateX,delete t.$RotateY,delete t.$TranslateZ),o.c(t,function(n,t){var r=vt[t],u;r&&(u=r[1]||0,wt[t]!=n&&(i+=" "+r[0]+"("+n+["deg","px",""][u]+")"))}),st()&&((t.$TranslateX||t.$TranslateY||t.$TranslateZ)&&(i+=" translate3d("+(t.$TranslateX||0)+"px,"+(t.$TranslateY||0)+"px,"+(t.$TranslateZ||0)+"px)"),t.$ScaleX==e&&(t.$ScaleX=1),t.$ScaleY==e&&(t.$ScaleY=1),(t.$ScaleX!=1||t.$ScaleY!=1)&&(i+=" scale3d("+t.$ScaleX+", "+t.$ScaleY+", 1)")));n.style[bt(n)]=i}function pi(n,t,i,u){for(u=u||"u",n=n?n.firstChild:r;n;n=n.nextSibling)if(n.nodeType==1){if(ni(n,u)==t)return n;if(!i){var f=pi(n,t,i,u);if(f)return f}}}function wi(n,t,i,u){var f,e;for(u=u||"u",f=[],n=n?n.firstChild:r;n;n=n.nextSibling)n.nodeType==1&&(ni(n,u)==t&&f.push(n),i||(e=wi(n,t,i,u),e.length&&(f=f.concat(e))));return f}function bi(n,t,i){for(n=n?n.firstChild:r;n;n=n.nextSibling)if(n.nodeType==1){if(n.tagName==t)return n;if(!i){var u=bi(n,t,i);if(u)return u}}}function ki(n,t,i){var u=[],f;for(n=n?n.firstChild:r;n;n=n.nextSibling)n.nodeType==1&&(t&&n.tagName!=t||u.push(n),i||(f=ki(n,t,i),f.length&&(u=u.concat(f))));return u}function yt(){for(var i=arguments,u,t,n,o=1&i[0],f=1+o,s,r=i[f-1]||{};f<i.length;f++)if(u=i[f])for(t in u)n=u[t],n!==e&&(n=u[t],s=r[t],r[t]=o&&(ut(s)||ut(n))?yt(o,{},s,n):n);return r}function di(n,t){var f={},r,i,u,e;for(r in n)i=n[r],u=t[r],i!==u&&(ut(i)&&ut(u)&&(i=di(i,u),e=!cr(i)),e||(f[r]=i));return f}function gi(n){return t.createElement(n)}function gt(n,t,i){if(i==e)return n.getAttribute(t);n.setAttribute(t,i)}function ni(n,t){return gt(n,t)||gt(n,"data-"+t)}function tt(n,t){if(t==e)return n.className;n.className=t}function yr(n){var t={};return y(n,function(n){t[n]=n}),t}function nr(n,t){return n.match(t||rr)}function ti(n,t){return yr(nr(n||"",t))}function tr(n,t){var i="";return y(t,function(t){i&&(i+=n);i+=t}),i}function pr(n,t,i){tt(n,tr(" ",yt(di(ti(tt(n)),ti(t)),ti(i))))}function ii(n,t,i){var r=n.cloneNode(!t);
4return i||h.tg(r,"id"),r}function wr(n){function s(){pr(n,p,u[r||l||f&2||f]);o.Y(n,"pointer-events",r?"none":"")}function i(){l=0;s();h.Q(t,"mouseup",i);h.Q(t,"touchend",i);h.Q(t,"touchcancel",i)}function w(n){r?h.Pb(n):(l=4,s(),h.g(t,"mouseup",i),h.g(t,"touchend",i),h.g(t,"touchcancel",i))}var c=this,v="",u=[],p,l=0,f=0,r=0,a;c.qd=function(n){if(n===e)return f;f=n&2||n&1;s()};c.$Enable=function(n){if(n===e)return!r;r=n?0:3;s()};c.$Elmt=n=h.mb(n);a=o.pg(tt(n));a&&(v=a.shift());y(["av","pv","ds","dn"],function(n){u.push(v+n)});p=tr(" ",u);u.unshift("");h.g(n,"mousedown",w);h.g(n,"touchstart",w)}function br(n,t,u){function h(n){return n*i.PI/180}function y(n,t){return{x:n,y:t}}function p(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,ct){return[n*w+t*g+i*rt+r*ot,n*b+t*nt+i*ut+r*st,n*k+t*tt+i*ft+r*ht,n*d+t*it+i*et+r*ct,u*w+f*g+e*rt+o*ot,u*b+f*nt+e*ut+o*st,u*k+f*tt+e*ft+o*ht,u*d+f*it+e*et+o*ct,s*w+h*g+c*rt+l*ot,s*b+h*nt+c*ut+l*st,s*k+h*tt+c*ft+l*ht,s*d+h*it+c*et+l*ct,a*w+v*g+y*rt+p*ot,a*b+v*nt+y*ut+p*st,a*k+v*tt+y*ft+p*ht,a*d+v*it+y*et+p*ct]}function s(n,t){return p.apply(r,(t||f).concat(n))}var o=this,f=[1,0,0,0,0,1,0,0,0,0,1,0,n||0,t||0,u||0,1],c=i.sin,l=i.cos,v=i.tan;o.$Scale=function(n,t,i){n==e&&(n=1);t==e&&(t=1);i==e&&(i=1);(n!=1||t!=1||i!=1)&&(f=s([n,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1]))};o.$Move=function(n,t,i){f[12]+=n||0;f[13]+=t||0;f[14]+=i||0};o.$RotateX=function(n){if(n){a=h(n);var t=l(a),i=c(a);f=s([1,0,0,0,0,t,i,0,0,-i,t,0,0,0,0,1])}};o.$RotateY=function(n){if(n){a=h(n);var t=l(a),i=c(a);f=s([t,0,-i,0,0,1,0,0,i,0,t,0,0,0,0,1])}};o.Ke=function(n){if(n){a=h(n);var t=l(a),i=c(a);f=s([t,i,0,0,-i,t,0,0,0,0,1,0,0,0,0,1])}};o.Ne=function(i,r){(i||r)&&(n=h(i),t=h(r),f=s([1,v(t),0,0,v(n),1,0,0,0,0,1,0,0,0,0,1]))};o.nb=function(n){var t=s(f,[1,0,0,0,0,1,0,0,0,0,1,0,n.x,n.y,0,1]);return y(t[12],t[13])};o.pe=function(){return"matrix3d("+f.join(",")+")"};o.se=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+f[0]+", M12="+f[4]+", M21="+f[1]+", M22="+f[5]+", SizingMethod='auto expand')"}}function ir(n,t){var i={};return y(n,function(n,r){var u=n;t[r]!=e&&(u=h.cc(n)?n+t[r]:ir(n,t[r]));i[r]=u}),i}var h=this,rr=/\S+/g,ft=1,ur=2,ri=3,fr=4,ui=5,et,w=0,c=0,k=0,fi=0,it=0,ot=navigator,ei=ot.appName,v=ot.userAgent,p=parseFloat,bt=li("transform"),ht,vt,pt,g,wt;h.Sg=er;h.Cd=b;h.Ug=oi;h.Bc=si;h.rg=st;h.hb=hi;ci("transform");h.xd=function(){return c};h.ug=function(){return rt(),it};h.$Delay=vi;h.Pd=kt;h.mb=function(n){return h.yd(n)&&(n=t.getElementById(n)),n};h.zd=nt;h.Ec=function(n){n=nt(n);var i=n.target||n.srcElement||t;return i.nodeType==3&&(i=h.Dc(i)),i};h.Sd=function(n){return n=nt(n),{x:n.pageX||n.clientX||0,y:n.pageY||n.clientY||0}};vt={$Rotate:["rotate"],$RotateX:["rotateX"],$RotateY:["rotateY"],$SkewX:["skewX"],$SkewY:["skewY"]};st()||(vt=yt(vt,{$ScaleX:["scaleX",2],$ScaleY:["scaleY",2],$TranslateZ:["translateZ",1]}));h.Nd=l("transformOrigin",4);h.og=l("backfaceVisibility",4);h.ng=l("transformStyle",4);h.Eg=l("perspective",6);h.Dg=l("perspectiveOrigin",4);h.Cg=function(n,t){if(b()&&k<9||k<10&&or())n.style.zoom=t==1?"":t;else{var i=bt(n),r="scale("+t+")",u=n.style[i],f=new RegExp(/[\s]*scale\(.*?\)/g),e=lt(u,[f],r);n.style[i]=e}};h.Rb=function(n,t){return function(i){i=nt(i);var u=i.type,r=i.relatedTarget||(u=="mouseout"?i.toElement:i.fromElement);r&&(r===t||h.Og(t,r))||n(i)}};h.g=function(n,t,i,r){n=h.mb(n);n.addEventListener?(t=="mousewheel"&&n.addEventListener("DOMMouseScroll",i,r),n.addEventListener(t,i,r)):n.attachEvent&&(n.attachEvent("on"+t,i),r&&n.setCapture&&n.setCapture())};h.Q=function(n,t,i,r){n=h.mb(n);n.removeEventListener?(t=="mousewheel"&&n.removeEventListener("DOMMouseScroll",i,r),n.removeEventListener(t,i,r)):n.detachEvent&&(n.detachEvent("on"+t,i),r&&n.releaseCapture&&n.releaseCapture())};h.Pb=function(n){n=nt(n);n.preventDefault&&n.preventDefault();n.cancel=u;n.returnValue=f};h.yg=function(n){n=nt(n);n.stopPropagation&&n.stopPropagation();n.cancelBubble=u};h.H=function(n,t){var i=[].slice.call(arguments,2);return function(){var r=i.concat([].slice.call(arguments,0));return t.apply(n,r)}};
4h.xg=function(n,i){if(i==e)return n.textContent||n.innerText;var r=t.createTextNode(i);h.sc(n);n.appendChild(r)};h.V=function(n,t){for(var r=[],i=n.firstChild;i;i=i.nextSibling)(t||i.nodeType==1)&&r.push(i);return r};h.B=pi;h.zg=bi;h.Bg=ki;h.wg=function(n,t){return n.getElementsByTagName(t)};h.p=yt;h.fd=function(n){return ct(n)=="function"};h.xc=function(n){return ct(n)=="array"};h.yd=function(n){return ct(n)=="string"};h.cc=function(n){return!isNaN(p(n))&&isFinite(n)};h.c=y;h.Gg=ut;h.tb=function(){return gi("DIV")};h.Hg=function(){return gi("SPAN")};h.ld=function(){};h.G=gt;h.j=ni;h.id=tt;h.pg=nr;h.Dc=function(n){return n.parentNode};h.S=function(n){h.bb(n,"none")};h.E=function(n,t){h.bb(n,t?"none":"")};h.tg=function(n,t){n.removeAttribute(t)};h.sg=function(){return b()&&c<10};h.Tg=function(n,t){if(t)n.style.clip="rect("+i.round(t.$Top)+"px "+i.round(t.$Right)+"px "+i.round(t.$Bottom)+"px "+i.round(t.$Left)+"px)";else{var r=n.style.cssText,u=[new RegExp(/[\s]*clip: rect\(.*?\)[;]?/i),new RegExp(/[\s]*cliptop: .*?[;]?/i),new RegExp(/[\s]*clipright: .*?[;]?/i),new RegExp(/[\s]*clipbottom: .*?[;]?/i),new RegExp(/[\s]*clipleft: .*?[;]?/i)],f=lt(r,u,"");o.gc(n,f)}};h.R=function(){return+new Date};h.L=function(n,t){n.appendChild(t)};h.dc=function(n,t,i){(i||t.parentNode).insertBefore(n,t)};h.Kb=function(n,t){t=t||n.parentNode;t&&t.removeChild(n)};h.Xg=function(n,t){y(n,function(n){h.Kb(n,t)})};h.sc=function(n){h.Xg(h.V(n,u),n)};h.Pg=function(n,t){var i=h.Dc(n);t&1&&h.D(n,(h.k(i)-h.k(n))/2);t&2&&h.C(n,(h.l(i)-h.l(n))/2)};h.ic=function(n,t){return parseInt(n,t||10)};h.qc=p;h.Og=function(n,i){for(var r=t.body;i&&n!==i&&r!==i;)try{i=i.parentNode}catch(u){return f}return n===i};h.fb=ii;h.Mb=function(n,t){function r(n,u){h.Q(i,"load",r);h.Q(i,"abort",f);h.Q(i,"error",f);t&&t(i,u)}function f(n){r(n,u)}var i=new Image;si()&&c<11.6||!n?r(!n):(h.g(i,"load",r),h.g(i,"abort",f),h.g(i,"error",f),i.src=n)};h.fe=function(n,t,i){function u(n){r--;t&&n&&n.src==t.src&&(t=n);!r&&i&&i(t)}var r=n.length+1;y(n,function(n){h.Mb(n.src,u)});u()};h.Zc=function(n,t,i,r){var u,e,f,s;for(r&&(n=ii(n)),u=wi(n,t),u.length||(u=o.wg(n,t)),e=u.length-1;e>-1;e--)f=u[e],s=ii(i),tt(s,tt(f)),o.gc(s,f.style.cssText),o.dc(s,f),o.Kb(f);return n};h.ec=function(n){return new wr(n)};h.Y=at;h.rb=l("overflow");h.C=l("top",2);h.D=l("left",2);h.k=l("width",2);h.l=l("height",2);h.Yg=l("marginLeft",2);h.Vg=l("marginTop",2);h.F=l("position");h.bb=l("display");h.K=l("zIndex",1);h.Cb=function(n,t,i){if(t!=e)vr(n,t,i);else return ar(n)};h.gc=function(n,t){if(t!=e)n.style.cssText=t;else return n.style.cssText};pt={$Opacity:h.Cb,$Top:h.C,$Left:h.D,W:h.k,X:h.l,zb:h.F,Ph:h.bb,$ZIndex:h.K};h.Re=function(n,t){var i={};return y(t,function(t,r){pt[r]&&(i[r]=pt[r](n))}),i};g=function(n,t){function l(n,t,r){var u=n.nb(d(-t/2,-r/2)),f=n.nb(d(t/2,-r/2)),e=n.nb(d(t/2,r/2)),o=n.nb(d(-t/2,r/2));return n.nb(d(300,300)),d(i.min(u.x,f.x,e.x,o.x)+t/2,i.min(u.y,f.y,e.y,o.y)+r/2)}function f(n,t){var i,r,f;t=t||{};var s=t.$TranslateZ||0,a=(t.$RotateX||0)%360,v=(t.$RotateY||0)%360,y=(t.$Rotate||0)%360,p=t.Qh;if(o&&(s=0,a=0,v=0,p=0),i=new br(t.$TranslateX,t.$TranslateY,s),i.$RotateX(a),i.$RotateY(v),i.Ke(y),i.Ne(t.$SkewX,t.$SkewY),i.$Scale(t.$ScaleX,t.$ScaleY,p),u)i.$Move(t.Db,t.Bb),n.style[c]=i.pe();else if(!fi||fi<9){r="";(y||t.$ScaleX!=e&&t.$ScaleX!=1||t.$ScaleY!=e&&t.$ScaleY!=1)&&(f=l(i,t.$OriginalWidth,t.$OriginalHeight),h.Vg(n,f.y),h.Yg(n,f.x),r=i.se());var w=n.style.filter,b=new RegExp(/[\s]*progid:DXImageTransform\.Microsoft\.Matrix\([^\)]*\)/g),k=lt(w,[b],r);yi(n,k)}}var o=hi(),u=st(),s=sr(),c=bt(n);g=function(n,t){t=t||{};var o=t.Db,c=t.Bb,i;y(pt,function(r,u){i=t[u];i!==e&&r(n,i)});h.Tg(n,t.$Clip);u||(o!=e&&h.D(n,t.Qd+o),c!=e&&h.C(n,t.Td+c));t.ye&&(s?vi(h.H(r,dt,n,t)):f(n,t))};h.yb=dt;s&&(h.yb=g);o?h.yb=f:u||(f=dt);h.N=g;g(n,t)};h.yb=g;h.N=g,new function(){function t(n,t){for(var o,i,f,r,s=n[0].length,h=n.length,c=t[0].length,e=[],u=0;u<h;u++)for(o=e[u]=[],i=0;i<c;i++){for(f=0,r=0;r<s;r++)f+=n[u][r]*t[r][i];o[i]=f}return e}var n=this;n.$ScaleX=function(t,i){return n.wd(t,i,0)};n.$ScaleY=function(t,i){return n.wd(t,0,i)};n.wd=function(n,i,r){return t(n,[[i,0],[0,r]])};n.nb=function(n,i){var r=t(n,[[i.x],[i.y]]);return d(r[0][0],r[1][0])}};wt={Qd:0,Td:0,Db:0,Bb:0,$Zoom:1,$ScaleX:1,$ScaleY:1,$Rotate:0,$RotateX:0,$RotateY:0,$TranslateX:0,$TranslateY:0,$TranslateZ:0,$SkewX:0,$SkewY:0};h.Ac=function(n){var t=n||{};return n&&(o.fd(n)?t={qb:t}:o.fd(n.$Clip)&&(t.$Clip={qb:n.$Clip})),t};h.we=ir;h.Jd=function(n,t,f,h,c,l,a){var v=t,p,g,ut,nt;if(n){v={};for(p in t){var ft=l[p]||1,rt=c[p]||[0,1],y=(f-rt[0])/rt[1];y=i.min(i.max(y,0),1);y=y*ft;g=i.floor(y);y!=g&&(y-=g);var w=h.qb||s.$EaseSwing,b,et=n[p],k=t[p];o.cc(k)?(w=h[p]||w,ut=w(y),b=et+k*ut):(b=o.p({Ob:{}},n[p]),o.c(k.Ob||k,function(n,t){h.$Clip&&(w=h.$Clip[t]||h.$Clip.qb||w);var r=w(y),i=n*r;b.Ob[t]=i;b[t]+=i}));v[p]=b}nt=o.c(t,function(n,t){return wt[t]!=e});nt&&o.c(wt,function(t,i){v[i]==e&&n[i]!==e&&(v[i]=n[i])});nt&&(v.$Zoom&&(v.$ScaleX=v.$ScaleY=v.$Zoom),v.$OriginalWidth=a.$OriginalWidth,v.$OriginalHeight=a.$OriginalHeight,v.ye=u)}if(t.$Clip&&a.$Move){var d=v.$Clip.Ob,tt=(d.$Top||0)+(d.$Bottom||0),it=(d.$Left||0)+(d.$Right||0);v.$Left=(v.$Left||0)+it;v.$Top=(v.$Top||0)+tt;v.$Clip.$Left-=it;v.$Clip.$Right-=it;v.$Clip.$Top-=tt;v.$Clip.$Bottom-=tt}return v.$Clip&&o.sg()&&!v.$Clip.$Top&&!v.$Clip.$Left&&v.$Clip.$Right==a.$OriginalWidth&&v.$Clip.$Bottom==a.$OriginalHeight&&(v.$Clip=r),v}};l=function(t,e,s,h,c,l){function bt(n){p+=n;v+=n;it+=n;y+=n;w+=n;rt+=n}function ht(n){var t=n,r,f,b,k,d;g&&(t>=v||t<=p)&&(t=((t-p)%g+g)%g+p);(!st||tt||y!=t)&&(r=i.min(t,v),r=i.max(r,p),(!st||tt||r!=w)&&(l&&(f=(r-it)/(e||1),s.$Reverse&&(f=1-f),b=o.Jd(c,l,f,lt,vt,at,s),ft?o.c(b,function(n,t){ft[t]&&ft[t](h,n)}):o.N(h,b)),a.Oc(w-it,r-it),w=r,o.c(ut,function(t,i){var r=n<y?ut[ut.length-i-1]:t;r.v(w-rt)}),k=y,d=w,y=t,st=u,a.Qb(k,d)))}function yt(n,t,r){t&&n.$Shift(v);r||(p=i.min(p,n.Jc()+rt),v=i.max(v,n.db()+rt));
4ut.push(n)}function pt(){if(b){var t=o.R(),r=i.min(t-et,s.Vc),n=y+r*d;et=t;n*d>=k*d&&(n=k);ht(n);!tt&&n*d>=k*d?wt(ot):nt(pt)}}function ct(n,t,r){b||(b=u,tt=r,ot=t,n=i.max(n,p),n=i.min(n,v),k=n,d=k<y?-1:1,a.gd(),et=o.R(),nt(pt))}function wt(n){b&&(tt=b=ot=f,a.dd(),n&&n())}var nt;t=t||0;var a=this,b,k,d,tt,et=0,lt,at,vt,ot,rt=0,y=0,w=0,st,it,p,v,g,ut=[],ft;nt=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.msRequestAnimationFrame;o.Ug()&&o.xd()<7&&(nt=r);nt=nt||function(n){o.$Delay(n,s.$Interval)};a.$Play=function(n,t,i){ct(n?y+n:v,t,i)};a.kd=ct;a.ob=wt;a.ie=function(n){ct(n)};a.cb=function(){return y};a.od=function(){return k};a.Gb=function(){return w};a.v=ht;a.$Move=function(n){ht(y+n)};a.$IsPlaying=function(){return b};a.ge=function(n){g=n};a.$Shift=bt;a.I=function(n,t){yt(n,0,t)};a.Kc=function(n){yt(n,1)};a.ee=function(n){v+=n};a.Jc=function(){return p};a.db=function(){return v};a.Qb=a.gd=a.dd=a.Oc=o.ld;a.Rc=o.R();s=o.p({$Interval:16,Vc:50},s);g=s.nd;ft=s.Wd;p=it=t;v=t+e;at=s.$Round||{};vt=s.$During||{};lt=o.Ac(s.$Easing)};p=n.$JssorSlideshowFormations$=new function(){function rt(n){return(n&w)==w}function ut(n){return(n&b)==b}function e(n,t,i){i.push(t);n[t]=n[t]||[];n[t].push(i)}var o=this,n=0,t=1,r=2,f=3,k=1,w=2,b=4,d=8,g=256,nt=512,tt=1024,it=2048,s=it+k,h=it+w,c=nt+k,l=nt+w,a=g+b,v=g+d,y=tt+b,p=tt+d;o.$FormationStraight=function(n){for(var u=n.$Cols,f=n.$Rows,k=n.$Assembly,d=n.Wb,p=[],t=0,i=0,w=u-1,b=f-1,o=d-1,r,i=0;i<f;i++)for(t=0;t<u;t++){switch(k){case s:r=o-(t*f+(b-i));break;case y:r=o-(i*u+(w-t));break;case c:r=o-(t*f+i);case a:r=o-(i*u+t);break;case h:r=t*f+i;break;case v:r=i*u+(w-t);break;case l:r=t*f+(b-i);break;default:r=i*u+t}e(p,r,[i,t])}return p};o.$FormationSwirl=function(i){var nt=i.$Cols,tt=i.$Rows,ft=i.$Assembly,et=i.Wb,it=[],rt=[],d=0,o=0,p=0,b=nt-1,k=tt-1,g,w,ut=0;switch(ft){case s:o=b;p=0;w=[r,t,f,n];break;case y:o=0;p=k;w=[n,f,t,r];break;case c:o=b;p=k;w=[f,t,r,n];break;case a:o=b;p=k;w=[t,f,n,r];break;case h:o=0;p=0;w=[r,n,f,t];break;case v:o=b;p=0;w=[t,r,n,f];break;case l:o=0;p=k;w=[f,n,r,t];break;default:o=0;p=0;w=[n,r,t,f]}for(d=0;d<et;){if(g=p+","+o,o>=0&&o<nt&&p>=0&&p<tt&&!rt[g])rt[g]=u,e(it,d++,[p,o]);else switch(w[ut++%w.length]){case n:o--;break;case r:p--;break;case t:o++;break;case f:p++}switch(w[ut%w.length]){case n:o++;break;case r:p++;break;case t:o--;break;case f:p--}}return it};o.$FormationZigZag=function(i){var nt=i.$Cols,tt=i.$Rows,rt=i.$Assembly,ut=i.Wb,k=[],d=0,u=0,o=0,w=nt-1,b=tt-1,it,p,g=0;switch(rt){case s:u=w;o=0;p=[r,t,f,t];break;case y:u=0;o=b;p=[n,f,t,f];break;case c:u=w;o=b;p=[f,t,r,t];break;case a:u=w;o=b;p=[t,f,n,f];break;case h:u=0;o=0;p=[r,n,f,n];break;case v:u=w;o=0;p=[t,r,n,r];break;case l:u=0;o=b;p=[f,n,r,n];break;default:u=0;o=0;p=[n,r,t,r]}for(d=0;d<ut;)if(it=o+","+u,u>=0&&u<nt&&o>=0&&o<tt&&typeof k[it]=="undefined"){e(k,d++,[o,u]);switch(p[g%p.length]){case n:u++;break;case r:o++;break;case t:u--;break;case f:o--}}else{switch(p[g++%p.length]){case n:u--;break;case r:o--;break;case t:u++;break;case f:o++}switch(p[g++%p.length]){case n:u++;break;case r:o++;break;case t:u--;break;case f:o--}}return k};o.$FormationStraightStairs=function(n){var g=n.$Cols,nt=n.$Rows,f=n.$Assembly,d=n.Wb,b=[],k=0,r=0,u=0,o=g-1,w=nt-1,tt=d-1,t,i;switch(f){case s:case l:case c:case h:t=0;i=0;break;case v:case y:case a:case p:t=o;i=0;break;default:f=p;t=o;i=0}for(r=t,u=i;k<d;){ut(f)||rt(f)?e(b,tt-k++,[u,r]):e(b,k++,[u,r]);switch(f){case s:case l:r--;u++;break;case c:case h:r++;u--;break;case v:case y:r--;u--;break;case p:case a:default:r++;u++}if(r<0||u<0||r>o||u>w){switch(f){case s:case l:t++;break;case v:case y:case c:case h:i++;break;case p:case a:default:t--}if(t<0||i<0||t>o||i>w){switch(f){case s:case l:t=o;i++;break;case c:case h:i=w;t++;break;case v:case y:i=w;t--;break;case p:case a:default:t=0;i++}i>w?i=w:i<0?i=0:t>o?t=o:t<0&&(t=0)}u=i;r=t}}return b};o.$FormationSquare=function(n){var t=n.$Cols||1,r=n.$Rows||1,h=[],u,f,o,s,c;for(o=t<r?(r-t)/2:0,s=t>r?(t-r)/2:0,c=i.round(i.max(t/2,r/2))+1,u=0;u<t;u++)for(f=0;f<r;f++)e(h,c-i.min(u+1+o,f+1+s,t-u+o,r-f+s),[f,u]);return h};o.$FormationRectangle=function(n){for(var u=n.$Cols||1,f=n.$Rows||1,o=[],r,s=i.round(i.min(u/2,f/2))+1,t=0;t<u;t++)for(r=0;r<f;r++)e(o,s-i.min(t+1,r+1,u-t,f-r),[r,t]);return o};o.$FormationRandom=function(n){for(var u=[],t,r=0;r<n.$Rows;r++)for(t=0;t<n.$Cols;t++)e(u,i.ceil(1e5*i.random())%13,[r,t]);return u};o.$FormationCircle=function(n){for(var u=n.$Cols||1,f=n.$Rows||1,o=[],t,s=u/2-.5,h=f/2-.5,r=0;r<u;r++)for(t=0;t<f;t++)e(o,i.round(i.sqrt(i.pow(r-s,2)+i.pow(t-h,2))),[t,r]);return o};o.$FormationCross=function(n){for(var u=n.$Cols||1,f=n.$Rows||1,o=[],t,s=u/2-.5,h=f/2-.5,r=0;r<u;r++)for(t=0;t<f;t++)e(o,i.round(i.min(i.abs(r-s),i.abs(t-h))),[t,r]);return o};o.$FormationRectangleCross=function(n){for(var o=n.$Cols||1,s=n.$Rows||1,h=[],t,u=o/2-.5,f=s/2-.5,c=i.max(u,f)+1,r=0;r<o;r++)for(t=0;t<s;t++)e(h,i.round(c-i.max(u-i.abs(r-u),f-i.abs(t-f)))-1,[t,r]);return h}};n.$JssorSlideshowRunner$=function(n,t,e,h,c){function k(n,t){var r={$Interval:t,$Duration:1,$Delay:0,$Cols:1,$Rows:1,$Opacity:0,$Zoom:0,$Clip:0,$Move:f,$SlideOut:f,$Reverse:f,$Formation:p.$FormationRandom,$Assembly:1032,$ChessMode:{$Column:0,$Row:0},$Easing:s.$EaseSwing,$Round:{},oc:[],$During:{}};
4return o.p(r,n),r.Wb=r.$Cols*r.$Rows,r.$Easing=o.Ac(r.$Easing),r.Oe=i.ceil(r.$Duration/r.$Interval),r.Pe=function(n,t){var f,i,u;if(n/=r.$Cols,t/=r.$Rows,f=n+"x"+t,!r.oc[f])for(r.oc[f]={W:n,X:t},i=0;i<r.$Cols;i++)for(u=0;u<r.$Rows;u++)r.oc[f][u+","+i]={$Top:u*t,$Right:i*n+n,$Bottom:u*t+t,$Left:i*n};return r.oc[f]},r.$Brother&&(r.$Brother=k(r.$Brother,t),r.$SlideOut=u),r}function nt(n,t,e,s,h,c){function ht(n){var t=n.$Formation(n);return n.$Reverse?t.reverse():t}var it=this,nt,rt={},y={},w=[],a,l,b,k=e.$ChessMode.$Column||0,d=e.$ChessMode.$Row||0,v=e.Pe(h,c),g=ht(e),st=g.length-1,tt=e.$Duration+e.$Delay*st,ut=s+tt,p=e.$SlideOut,ft,et,ot;ut+=50;it.md=ut;it.nc=function(n){var t,r;n-=s;t=n<tt;(t||ft)&&(ft=t,p||(n=tt-n),r=i.ceil(n/e.$Interval),o.c(y,function(n,t){var u=i.max(r,n.Ee);u=i.min(u,n.length-1);n.pd!=u&&(n.pd||p?u==n.Fe&&p&&o.S(w[t]):o.E(w[t]),n.pd=u,o.N(w[t],n[u]))}))};t=o.fb(t);o.yb(t,r);o.hb()&&(et=!t["no-image"],ot=o.Bg(t),o.c(ot,function(n){(et||n["jssor-slider"])&&o.Cb(n,o.Cb(n),u)}));o.c(g,function(n,t){o.c(n,function(n){var yt=n[0],pt=n[1],s=yt+","+pt,w=f,g=f,it=f,at,vt,wt,r,tt,bt,kt,ut,ft,et,ot;k&&pt%2&&(k&3&&(w=!w),k&12&&(g=!g),k&16&&(it=!it));d&&yt%2&&(d&3&&(w=!w),d&12&&(g=!g),d&16&&(it=!it));e.$Top=e.$Top||e.$Clip&4;e.$Bottom=e.$Bottom||e.$Clip&8;e.$Left=e.$Left||e.$Clip&1;e.$Right=e.$Right||e.$Clip&2;var st=g?e.$Bottom:e.$Top,ht=g?e.$Top:e.$Bottom,ct=w?e.$Right:e.$Left,lt=w?e.$Left:e.$Right;for(e.$Clip=st||ht||ct||lt,b={},l={$Top:0,$Left:0,$Opacity:1,W:h,X:c},a=o.p({},l),nt=o.p({},v[s]),e.$Opacity&&(l.$Opacity=2-e.$Opacity),e.$ZIndex&&(l.$ZIndex=e.$ZIndex,a.$ZIndex=0),at=e.$Cols*e.$Rows>1||e.$Clip,(e.$Zoom||e.$Rotate)&&(vt=u,o.hb()&&(e.$Cols*e.$Rows>1?vt=f:at=f),vt&&(l.$Zoom=e.$Zoom?e.$Zoom-1:1,a.$Zoom=1,(o.hb()||o.Bc())&&(l.$Zoom=i.min(l.$Zoom,2)),wt=e.$Rotate||0,l.$Rotate=wt*360*(it?-1:1),a.$Rotate=0)),at&&(r=nt.Ob={},e.$Clip&&(tt=e.$ScaleClip||1,st&&ht?(r.$Top=v.X/2*tt,r.$Bottom=-r.$Top):st?r.$Bottom=-v.X*tt:ht&&(r.$Top=v.X*tt),ct&<?(r.$Left=v.W/2*tt,r.$Right=-r.$Left):ct?r.$Right=-v.W*tt:lt&&(r.$Left=v.W*tt)),b.$Clip=nt,a.$Clip=v[s]),bt=w?1:-1,kt=g?1:-1,e.x&&(l.$Left+=h*e.x*bt),e.y&&(l.$Top+=c*e.y*kt),o.c(l,function(n,t){o.cc(n)&&n!=a[t]&&(b[t]=n-a[t])}),rt[s]=p?a:l,ut=e.Oe,ft=i.round(t*e.$Delay/e.$Interval),y[s]=new Array(ft),y[s].Ee=ft,y[s].Fe=ft+ut-1,et=0;et<=ut;et++)ot=o.Jd(a,b,et/ut,e.$Easing,e.$During,e.$Round,{$Move:e.$Move,$OriginalWidth:h,$OriginalHeight:c}),ot.$ZIndex=ot.$ZIndex||1,y[s].push(ot)})});g.reverse();o.c(g,function(i){o.c(i,function(i){var u=i[0],f=i[1],e=u+","+f,r=t;(f||u)&&(r=o.fb(t));o.N(r,rt[e]);o.rb(r,"hidden");o.F(r,"absolute");n.De(r);w[e]=r;o.E(r,!p)})})}function rt(){var n=this,t=0;l.call(n,0,d);n.Qb=function(n,i){i-t>b&&(t=i,y&&y.nc(i),w&&w.nc(i))};n.eb=g}var a=this,d,w,y,tt=0,it=h.$TransitionsOrder,g,b=8;a.Ge=function(){var n=0,t=h.$Transitions,r=t.length;return n=it?tt++%r:i.floor(i.random()*r),t[n]&&(t[n].xb=n),t[n]};a.de=function(r,u,f,o,s){var h,c,v;g=s;s=k(s,b);h=o.ad;c=f.ad;h["no-image"]=!o.fc;c["no-image"]=!f.fc;var p=h,tt=c,it=s,l=s.$Brother||k({},b);s.$SlideOut||(p=c,tt=h);v=l.$Shift||0;w=new nt(n,tt,l,i.max(v-l.$Interval,0),t,e);y=new nt(n,p,it,i.max(l.$Interval-v,0),t,e);w.nc(0);y.nc(0);d=i.max(w.md,y.md);a.xb=r};a.Ib=function(){n.Ib();w=r;y=r};a.ae=function(){var n=r;return y&&(n=new rt),n};(o.hb()||o.Bc()||c&&o.ug()<537)&&(b=16);v.call(a);l.call(a,-1e7,1e7)};c=n.$JssorSlider$=function(h,a){function sf(){var n=this;l.call(n,-1e8,2e8);n.ke=function(){var t=n.Gb(),r=i.floor(t),u=g(r),f=t-i.floor(t);return{xb:u,Ud:r,zb:f}};n.Qb=function(n,t){var r=i.floor(t);r!=t&&t>n&&r++;hu(r,u);b.n(c.$EVT_POSITION_CHANGE,g(t),g(n),t,n)}}function hf(){var n=this;l.call(n,0,0,{nd:k});o.c(st,function(t){et&1&&t.ge(k);n.Kc(t);t.$Shift(tr/wu)})}function cf(){var n=this,t=rf.$Elmt;l.call(n,-1,2,{$Easing:s.$EaseLinear,Wd:{zb:ru},nd:k},t,{zb:1},{zb:-2});n.Xb=t}function lf(n,t){var i=this,e,o,s,h,a;l.call(i,-1e8,2e8,{Vc:100});i.gd=function(){dt=u;fi=r;b.n(c.$EVT_SWIPE_START,g(ut.cb()),ut.cb())};i.dd=function(){dt=f;h=f;var n=ut.ke();b.n(c.$EVT_SWIPE_END,g(ut.cb()),ut.cb());n.zb||kf(n.Ud,d)};i.Qb=function(n,t){var i,r;h?i=a:(i=o,s&&(r=t/s,i=p.$SlideEasing(r)*(o-e)+e));ut.v(i)};i.Ub=function(n,t,r,u){e=n;o=t;s=r;ut.v(n);i.v(0);i.kd(r,u)};i.ue=function(n){h=u;a=n;i.$Play(n,r,u)};i.te=function(n){a=n};ut=new sf;ut.I(n);ut.I(t)}function af(){var t=this,n=cu();o.K(n,0);o.Y(n,"pointerEvents","none");t.$Elmt=n;t.De=function(t){o.L(n,t);o.E(n)};t.Ib=function(){o.S(n);o.sc(n)}}function vf(n,t){function vt(t){y&&y.wb();ri(n,t,0);at=u;y=new yt.$Class(n,yt,o.qc(o.j(n,"idle"))||he);y.v(0)}function oi(){y.Rc<yt.Rc&&vt()}function gt(n,i,r){var a,w;if(!lt&&(lt=u,h&&r)){var s=r.width,l=r.height,v=s,y=l;s&&l&&p.$FillMode&&(p.$FillMode&3&&(!(p.$FillMode&4)||s>pt||l>wt)&&(a=f,w=pt/wt*l/s,p.$FillMode&1?a=w>1:p.$FillMode&2&&(a=w<1),v=a?s*wt/l:pt,y=a?wt:l*pt/s),o.k(h,v),o.l(h,y),o.C(h,(wt-y)/2),o.D(h,(pt-v)/2));o.F(h,"absolute");b.n(c.$EVT_LOAD_END,t)}o.S(i);n&&n(e)}function si(n,i,r,u){if(u==fi&&d==t&&kt&&!se){var f=g(n);ht.de(f,t,i,e,r);i.Be();ei.$Shift(f-ei.Jc()-1);ei.v(f);ft.Ub(n,n,0)}}function hi(i){if(i==fi&&d==t){if(!s){var u=r;ht&&(ht.xb==t?u=ht.ae():ht.Ib());oi();s=new yf(n,t,u,y);s.Wc(a)}s.$IsPlaying()||s.Mc()}}function ni(n,u,f){var h;if(n==t)n!=u?st[u]&&st[u].be():!f&&s&&s.Vd(),a&&a.$Enable(),h=fi=o.R(),e.Mb(o.H(r,hi,h));else{var c=i.min(t,n),l=i.max(t,n),v=i.min(l-c,c+k-l),y=nt+p.$LazyLoading-1;(!dt||v<=y)&&e.Mb()}}function ci(){d==t&&s&&(s.ob(),a&&a.$Quit(),a&&a.$Disable(),s.Tc())}function li(){d==t&&s&&s.ob()}function ai(n){ui||b.n(c.$EVT_CLICK,t,n)}function ii(){a=it.pInstance;s&&s.Wc(a)}function ri(n,t,i){if(!o.G(n,"jssor-slider")){at||(n.tagName=="IMG"&&(rt.push(n),o.G(n,"src")||(dt=u,n["display-origin"]=o.bb(n),o.S(n))),o.hb()&&o.K(n,(o.K(n)||0)+1));var r=o.V(n);o.c(r,function(r){var s=r.tagName,c=o.j(r,"u"),e;c!="player"||it||(it=r,it.pInstance?ii():o.g(it,"dataavailable",ii));c=="caption"?t?(o.Nd(r,o.j(r,"to")),o.og(r,o.j(r,"bf")),o.j(r,"3d")&&o.ng(r,"preserve-3d")):o.Cd()||(e=o.fb(r,f,u),o.dc(e,r,n),o.Kb(r,n),r=e,t
4=u):at||i||h||(s=="A"?(h=o.j(r,"u")=="image"?o.zg(r,"IMG"):o.B(r,"image",u),h&&(tt=r,o.bb(tt,"block"),o.N(tt,ti),ut=o.fb(tt,u),o.F(tt,"relative"),o.Cb(ut,0),o.Y(ut,"backgroundColor","#000"))):s=="IMG"&&o.j(r,"u")=="image"&&(h=r),h&&(h.border=0,o.N(h,ti)));ri(r,t,i+1)})}}var e=this,y,ct,w,h,rt=[],tt,ut,bt,lt,dt,at,s,it,a,ot;l.call(e,-nt,nt+1,{});e.Mb=function(n,i){i=i||w;rt.length&&!lt?(o.E(i),bt||(bt=u,b.n(c.$EVT_LOAD_START,t),o.c(rt,function(n){o.G(n,"src")||(n.src=o.j(n,"src2"),o.bb(n,n["display-origin"]))})),o.fe(rt,h,o.H(r,gt,n,i))):gt(n,i)};e.re=function(){var e=t,n,u,s,f;if(p.$AutoPlaySteps<0&&(e-=k),n=e+p.$AutoPlaySteps*ue,et&2&&(n=g(n)),et&1||(n=i.max(0,i.min(n,k-nt))),n!=t){if(ht&&(u=ht.Ge(k),u))return s=fi=o.R(),f=st[g(n)],f.Mb(o.H(r,si,n,f,u,s),w);pi(n)}};e.Nc=function(){ni(t,t,u)};e.be=function(){a&&a.$Quit();a&&a.$Disable();e.Od();s&&s.xe();s=r;vt()};e.Be=function(){o.S(n)};e.Od=function(){o.E(n)};e.Yd=function(){a&&a.$Enable()};e.Oc=function(n,t){var i=nt-t;ru(ct,i)};e.xb=t;v.call(e);o.Eg(n,o.j(n,"p"));o.Dg(n,o.j(n,"po"));ot=o.B(n,"thumb",u);ot&&(e.ze=o.fb(ot),o.S(ot));o.E(n);w=o.fb(gi);o.K(w,1e3);o.g(n,"click",ai);vt(u);e.fc=h;e.ud=ut;e.ad=n;e.Xb=ct=n;o.L(ct,w);b.$On(203,ni);b.$On(28,li);b.$On(24,ci)}function yf(n,t,i,r){function tt(){o.sc(gt);gu&&y&&w.ud&&o.L(gt,w.ud);o.E(gt,!y&&w.fc)}function it(){e.Mc()}function rt(n){nt=n;e.ob();e.Mc()}var e=this,p=0,k=0,a,v,h,s,y,g,nt,w=st[t];l.call(e,0,0);e.Mc=function(){var n=e.Gb(),r,f,i;ot||dt||nt||d!=t||(n||(a&&!y&&(y=u,e.Tc(u),b.n(c.$EVT_SLIDESHOW_START,t,p,k,a,s)),tt()),f=c.$EVT_STATE_CHANGE,n!=s&&(r=n==h?s:n==v?h:n?e.od():v),b.n(f,t,n,p,v,h,s),i=kt&&(!ct||lt),n==s?(h==s||ct&12)&&!i||w.re():(i||n!=h)&&e.kd(r,it))};e.Vd=function(){h==s&&h==e.Gb()&&e.v(v)};e.xe=function(){ht&&ht.xb==t&&ht.Ib();var n=e.Gb();n<s&&b.n(c.$EVT_STATE_CHANGE,t,-n-1,p,v,h,s)};e.Tc=function(n){i&&o.rb(nr,n&&i.eb.$Outside?"":"hidden")};e.Oc=function(n,i){y&&i>=a&&(y=f,tt(),w.Od(),ht.Ib(),b.n(c.$EVT_SLIDESHOW_END,t,p,k,a,s));b.n(c.$EVT_PROGRESS_CHANGE,t,i,p,v,h,s)};e.Wc=function(n){n&&!g&&(g=n,n.$On($JssorPlayer$.me,rt))};i&&e.Kc(i);a=e.db();e.Kc(r);v=a+r.bc;h=a+r.lc;s=e.db()}function iu(n,t,i){o.D(n,t);o.C(n,i)}function ru(n,t){var i=rt>0?rt:bi,r=lr*t*(i&1),u=ar*t*(i>>1&1);iu(n,r,u)}function uu(){nu=dt;ff=ft.od();vt=ut.cb()}function fu(){uu();(ot||!lt&&ct&12)&&(ft.ob(),b.n(c.Rg))}function eu(n){var r,t,u;ot||!lt&&ct&12||ft.$IsPlaying()||(r=ut.cb(),t=i.ceil(vt),n&&i.abs(at)>=p.$MinDragOffsetToSlide&&(t=i.ceil(r)+rr),et&1||(t=i.min(k-nt,i.max(t,0))),u=i.abs(t-r),u=1-i.pow(1-u,5),!ui&&nu?ft.ie(ff):r==t?(cr.Yd(),cr.Nc()):ft.Ub(r,t,u*nf))}function ou(n){o.j(o.Ec(n),"nodrag")||o.Pb(n)}function pf(n){su(n,1)}function su(n,i){var h,e,s;n=o.zd(n);h=o.Ec(n);bt||o.j(h,"nodrag")||!df()||i&&n.touches.length!=1||(ot=u,vr=f,fi=r,o.g(t,i?"touchmove":"mousemove",fr),o.R(),ui=0,fu(),nu||(rt=0),i?(e=n.touches[0],wr=e.clientX,br=e.clientY):(s=o.Sd(n),wr=s.x,br=s.y),at=0,ir=0,rr=0,b.n(c.$EVT_DRAG_START,g(vt),vt,n))}function fr(n){var e,l,s,h,t,c,r,f;ot&&(n=o.zd(n),n.type!="mousemove"?(l=n.touches[0],e={x:l.clientX,y:l.clientY}):e=o.Sd(n),e&&(s=e.x-wr,h=e.y-br,i.floor(vt)!=vt&&(rt=rt||bi&bt),(s||h)&&!rt&&(rt=bt==3?i.abs(h)>i.abs(s)?2:1:bt,ur&&rt==1&&i.abs(h)-i.abs(s)>3&&(vr=u)),rt&&(t=h,c=ar,rt==1&&(t=s,c=lr),et&1||(t>0&&(r=c*d,f=t-r,f>0&&(t=r+i.sqrt(f)*5)),t<0&&(r=c*(k-nt-d),f=-t-r,f>0&&(t=-r-i.sqrt(f)*5))),at-ir<-2?rr=0:at-ir>2&&(rr=-1),ir=at,at=t,tu=vt-at/c/(ci||1),at&&rt&&!vr&&(o.Pb(n),dt?ft.te(tu):ft.ue(tu)))))}function vi(){if(gf(),ot){ot=f;o.R();o.Q(t,"mousemove",fr);o.Q(t,"touchmove",fr);ui=at;ft.ob();var n=ut.cb();b.n(c.$EVT_DRAG_END,g(n),n,g(vt),vt);ct&12&&uu();eu(u)}}function wf(n){if(ui){o.yg(n);for(var t=o.Ec(n);t&&tt!==t;){t.tagName=="A"&&o.Pb(n);try{t=t.parentNode}catch(i){break}}}}function bf(n){return st[d],d=g(n),cr=st[d],hu(n),d}function kf(n,t){rt=0;bf(n);b.n(c.$EVT_PARK,g(n),t)}function hu(n,t){hr=n;o.c(ri,function(i){i.rc(g(n),n,t)})}function df(){var t=c.td||0,n=hi;return ur&&n&1&&(n&=1),c.td|=n,bt=n&~t}function gf(){bt&&(c.td&=~hi,bt=0)}function cu(){var n=o.tb();return o.N(n,ti),o.F(n,"absolute"),n}function g(n){return(n%k+k)%k}function ne(n,t){t&&(et?et&2&&(n=g(n+hr),t=f):(n=i.min(i.max(n+hr,0),k-nt),t=f));
4pi(n,p.$SlideDuration,t)}function er(){o.c(ri,function(n){n.vc(n.hc.$ChanceToShow<=lt)})}function te(){lt||(lt=1,er(),ot||(ct&12&&eu(),ct&3&&st[d].Nc()))}function ie(){lt&&(lt=0,er(),!ot&&ct&12&&fu())}function re(){ti={W:pt,X:wt,$Top:0,$Left:0};o.c(ii,function(n){o.N(n,ti);o.F(n,"absolute");o.rb(n,"hidden");o.S(n)});o.N(gi,ti)}function yi(n,t){pi(n,t,u)}function pi(n,t,r){var s,o,c,h;!tf||(ot||!lt&&ct&12)&&!p.$NaviQuitDrag||(dt=u,ot=f,ft.ob(),t==e&&(t=nf),s=kr.Gb(),o=n,r&&(o=s+n,o=n>0?i.ceil(o):i.floor(o)),et&2&&(o=g(o)),et&1||(o=i.max(0,i.min(o,k-nt))),c=(o-s)%k,o=s+c,h=s==o?0:t*i.abs(c),h=i.min(h,t*nt*1.5),ft.Ub(s,o,h||1))}function oi(){return o.k(it||h)}function wi(){return o.l(it||h)}function or(n,i){var r,u,f,s;if(n==e)return o.k(h);it||(r=o.tb(t),o.id(r,o.id(h)),o.gc(r,o.gc(h)),o.bb(r,"block"),o.F(r,"relative"),o.C(r,0),o.D(r,0),o.rb(r,"visible"),it=o.tb(t),o.F(it,"absolute"),o.C(it,0),o.D(it,0),o.k(it,o.k(h)),o.l(it,o.l(h)),o.Nd(it,"0 0"),o.L(it,r),u=o.V(h),o.L(h,it),o.Y(h,"backgroundImage",""),o.c(u,function(n){o.L(o.j(n,"noscale")?h:r,n);o.j(n,"autocenter")&&uf.push(n)}));ci=n/(i?o.l:o.k)(it);o.Cg(it,ci);f=i?ci*oi():n;s=i?n:ci*wi();o.k(h,f);o.l(h,s);o.c(uf,function(n){var t=o.ic(o.j(n,"autocenter"));o.Pg(n,t)})}var b=this,p,li,ef,of,ai;b.$PlayTo=pi;b.$GoTo=function(n){ut.v(n)};b.$Next=function(){yi(1)};b.$Prev=function(){yi(-1)};b.$Pause=function(){kt=f};b.$Play=function(){kt||(kt=u,st[d]&&st[d].Nc())};b.$SetSlideshowTransitions=function(n){p.$SlideshowOptions.$Transitions=n};b.$SetCaptionTransitions=function(n){yt.$Transitions=n;yt.Rc=o.R()};b.$SlidesCount=function(){return ii.length};b.$CurrentIndex=function(){return d};b.$IsAutoPlaying=function(){return kt};b.$IsDragging=function(){return ot};b.$IsSliding=function(){return dt};b.$IsMouseOver=function(){return!lt};b.$LastDragSucceded=function(){return ui};b.$OriginalWidth=b.$GetOriginalWidth=oi;b.$OriginalHeight=b.$GetOriginalHeight=wi;b.$ScaleHeight=b.$GetScaleHeight=function(n){if(n==e)return o.l(h);or(n,u)};b.$ScaleWidth=b.$SetScaleWidth=b.$GetScaleWidth=or;b.Dd=function(n){var t=i.ceil(g(tr/wu)),r=g(n-d+t);return r>nt?n-d>k/2?n-=k:n-d<=-k/2&&(n+=k):n=d+r-t,n};v.call(b);b.$Elmt=h=o.mb(h);p=o.p({$FillMode:0,$LazyLoading:1,$ArrowKeyNavigation:1,$StartIndex:0,$AutoPlay:f,$Loop:1,$HWA:u,$NaviQuitDrag:u,$AutoPlaySteps:1,$AutoPlayInterval:3e3,$PauseOnHover:1,$SlideDuration:500,$SlideEasing:s.$EaseOutQuad,$MinDragOffsetToSlide:20,$SlideSpacing:0,$Cols:1,$Align:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:1},a);p.$HWA=p.$HWA&&o.rg();p.$Idle!=e&&(p.$AutoPlayInterval=p.$Idle);p.$DisplayPieces!=e&&(p.$Cols=p.$DisplayPieces);p.$ParkingPosition!=e&&(p.$Align=p.$ParkingPosition);var bi=p.$PlayOrientation&3,ue=(p.$PlayOrientation&4)/-4||1,ki=p.$SlideshowOptions,yt=o.p({$Class:w,$PlayInMode:1,$PlayOutMode:1,$HWA:p.$HWA},p.$CaptionSliderOptions);yt.$Transitions=yt.$Transitions||yt.$CaptionTransitions;var sr=p.$BulletNavigatorOptions,si=p.$ArrowNavigatorOptions,di=p.$ThumbnailNavigatorOptions,ni=!p.$UISearchMode,it,tt=o.B(h,"slides",ni),gi=o.B(h,"loading",ni)||o.tb(t),lu=o.B(h,"navigator",ni),au=o.B(h,"arrowleft",ni),vu=o.B(h,"arrowright",ni),yu=o.B(h,"thumbnavigator",ni),fe=o.k(tt),ee=o.l(tt),ti,ii=[],oe=o.V(tt);o.c(oe,function(n){n.tagName!="DIV"||o.j(n,"u")?o.hb()&&o.K(n,(o.K(n)||0)+1):ii.push(n)});var d=-1,hr,cr,k=ii.length,pt=p.$SlideWidth||fe,wt=p.$SlideHeight||ee,pu=p.$SlideSpacing,lr=pt+pu,ar=wt+pu,wu=bi&1?lr:ar,nt=i.min(p.$Cols,k),nr,rt,bt,vr,ri=[],bu,ku,du,gu,se,kt,ct=p.$PauseOnHover,he=p.$AutoPlayInterval,nf=p.$SlideDuration,yr,pr,tr,tf=nt<k,et=tf?p.$Loop:0,hi,ui,lt=1,dt,ot,fi,wr=0,br=0,at,ir,rr,kr,ut,ei,ft,rf=new af,ci,uf=[];p.$HWA&&(iu=function(n,t,i){o.yb(n,{$TranslateX:t,$TranslateY:i})});kt=p.$AutoPlay;b.hc=a;re();o.G(h,"jssor-slider",u);o.K(tt,o.K(tt)||0);o.F(tt,"absolute");nr=o.fb(tt,u);o.dc(nr,tt);ki&&(gu=ki.$ShowLink,yr=ki.$Class,pr=nt==1&&k>1&&yr&&(!o.Cd()||o.xd()>=8));tr=pr||nt>=k||!(et&1)?0:p.$Align;hi=(nt>1||tr?bi:-1)&p.$DragOrientation;var dr=tt,st=[],ht,gt,gr=o.Sg(),ur=gr.Wg,vt,nu,ff,tu;for(gr.Ed&&o.Y(dr,gr.Ed,[r,"pan-y","pan-x","none"][hi]||""),ei=new cf,pr&&(ht=ne
4w yr(rf,pt,wt,ki,ur)),o.L(nr,ei.Xb),o.rb(tt,"hidden"),gt=cu(),o.Y(gt,"backgroundColor","#000"),o.Cb(gt,0),o.dc(gt,dr.firstChild,dr),li=0;li<ii.length;li++)ef=ii[li],of=new vf(ef,li),st.push(of);o.S(gi);kr=new hf;ft=new lf(kr,ei);hi&&(o.g(tt,"mousedown",su),o.g(tt,"touchstart",pf),o.g(tt,"dragstart",ou),o.g(tt,"selectstart",ou),o.g(t,"mouseup",vi),o.g(t,"touchend",vi),o.g(t,"touchcancel",vi),o.g(n,"blur",vi));ct&=ur?10:5;lu&&sr&&(bu=new sr.$Class(lu,sr,oi(),wi()),ri.push(bu));si&&au&&vu&&(si.$Loop=et,si.$Cols=nt,ku=new si.$Class(au,vu,si,oi(),wi()),ri.push(ku));yu&&di&&(di.$StartIndex=p.$StartIndex,du=new di.$Class(yu,di),ri.push(du));o.c(ri,function(n){n.Lc(k,st,gi);n.$On(y.kc,ne)});o.Y(h,"visibility","visible");or(oi());o.g(tt,"click",wf);o.g(h,"mouseout",o.Rb(te,h));o.g(h,"mouseover",o.Rb(ie,h));er();p.$ArrowKeyNavigation&&o.g(t,"keydown",function(n){n.keyCode==37?yi(-p.$ArrowKeyNavigation):n.keyCode==39&&yi(p.$ArrowKeyNavigation)});ai=p.$StartIndex;et&1||(ai=i.max(0,i.min(ai,k-nt)));ft.Ub(ai,ai,0)};c.$EVT_CLICK=21;c.$EVT_DRAG_START=22;c.$EVT_DRAG_END=23;c.$EVT_SWIPE_START=24;c.$EVT_SWIPE_END=25;c.$EVT_LOAD_START=26;c.$EVT_LOAD_END=27;c.Rg=28;c.$EVT_POSITION_CHANGE=202;c.$EVT_PARK=203;c.$EVT_SLIDESHOW_START=206;c.$EVT_SLIDESHOW_END=207;c.$EVT_PROGRESS_CHANGE=208;c.$EVT_STATE_CHANGE=209;y={kc:1};n.$JssorBulletNavigator$=function(n,t){function ut(n){n!=-1&&rt[n].qd(n==a)}function ft(n){s.n(y.kc,n*p)}var s=this,et;v.call(s);n=o.mb(n);var w,d,g,nt,a=0,e,p,h,tt,it,c,l,b,k,ot=[],rt=[];s.$Elmt=n;s.rc=function(n){if(n!=nt){var r=a,t=i.floor(n/p);a=t;nt=n;ut(r);ut(t)}};s.vc=function(t){o.E(n,t)};s.Lc=function(t){var f,ut,s,st;if(!et){w=i.ceil(t/p);a=0;var y=b+tt,nt=k+it,v=i.ceil(w/h)-1;for(d=b+y*(c?h-1:v),g=k+nt*(c?v:h-1),o.k(n,d),o.l(n,g),f=0;f<w;f++)ut=o.Hg(),o.xg(ut,f+1),s=o.Zc(l,"numbertemplate",ut,u),o.F(s,"absolute"),st=f%(v+1),o.D(s,c?f%h*y:y*st),o.C(s,c?nt*st:i.floor(f/(v+1))*nt),o.L(n,s),ot[f]=s,e.$ActionMode&1&&o.g(s,"click",o.H(r,ft,f)),e.$ActionMode&2&&o.g(s,"mouseover",o.Rb(o.H(r,ft,f),s)),rt[f]=o.ec(s);et=u}};s.hc=e=o.p({$SpacingX:10,$SpacingY:10,$Orientation:1,$ActionMode:1},t);l=o.B(n,"prototype");b=o.k(l);k=o.l(l);o.Kb(l,n);p=e.$Steps||1;h=e.$Lanes||1;tt=e.$SpacingX;it=e.$SpacingY;c=e.$Orientation-1;e.$Scale==f&&o.G(n,"noscale",u);e.$AutoCenter&&o.G(n,"autocenter",e.$AutoCenter)};n.$JssorArrowNavigator$=function(n,t,i){function p(n){e.n(y.kc,n,u)}function w(r){o.E(n,r||!i.$Loop&&h==0);o.E(t,r||!i.$Loop&&h>=a-i.$Cols);l=r}var e=this,l,a,h,s,c,b;v.call(e);o.k(n);o.l(n);e.rc=function(n,t,i){i?h=t:(h=n,w(l))};e.vc=w;e.Lc=function(i){a=i;h=0;b||(o.g(n,"click",o.H(r,p,-c)),o.g(t,"click",o.H(r,p,c)),o.ec(n),o.ec(t),b=u)};e.hc=s=o.p({$Steps:1},i);c=s.$Steps;s.$Scale==f&&(o.G(n,"noscale",u),o.G(t,"noscale",u));s.$AutoCenter&&(o.G(n,"autocenter",s.$AutoCenter),o.G(t,"autocenter",s.$AutoCenter))};n.$JssorThumbnailNavigator$=function(n,t){function ot(n,t){function v(){e.qd(g==t)}function l(n){if(n||!k.$LastDragSucceded()){var i=h-t%h,r=k.Dd((t+i)/h-1),u=r*h+h-i;a.n(y.kc,u)}}var f=this,i,e,c;f.xb=t;f.Xc=v;c=n.ze||n.fc||o.tb();f.Xb=i=o.Zc(d,"thumbnailtemplate",c,u);e=o.ec(i);s.$ActionMode&1&&o.g(i,"click",o.H(r,l,0));s.$ActionMode&2&&o.g(i,"mouseover",o.Rb(o.H(r,l,1),i))}var a=this,rt,g,s,it=[],ut,ft,h,p,w,nt,tt,b,k,l,d,et;v.call(a);n=o.mb(n);a.rc=function(n,t,r){var u=g;g=n;u!=-1&&it[u].Xc();it[n].Xc();r||k.$PlayTo(k.Dd(i.floor(t/h)))};a.vc=function(t){o.E(n,t)};a.Lc=function(t,r){var a,ht;if(!et){rt=t;i.ceil(rt/h);g=-1;b=i.min(b,r.length);var e=s.$Orientation&1,v=nt+(nt+p)*(h-1)*(1-e),y=tt+(tt+w)*(h-1)*e,d=v+(v+p)*(b-1)*e,st=y+(y+w)*(b-1)*(1-e);o.F(l,"absolute");o.rb(l,"hidden");s.$AutoCenter&1&&o.D(l,(ut-d)/2);s.$AutoCenter&2&&o.C(l,(ft-st)/2);o.k(l,d);o.l(l,st);a=[];o.c(r,function(n,t){var f=new ot(n,t),u=f.Xb,r=i.floor(t/h),s=t%h;o.D(u,(nt+p)*s*(1-e));o.C(u,(tt+w)*s*e);a[r]||(a[r]=o.tb(),o.L(l,a[r]));o.L(a[r],u);it.push(f)});ht=o.p({$AutoPlay:f,$NaviQuitDrag:f,$SlideWidth:v,$SlideHeight:y,$SlideSpacing:p*e+w*(1-e),$MinDragOffsetToSlide:12,$SlideDuration:200,$PauseOnHover:1,$PlayOrientation:s.$Orientation,$DragOrientation:s.$NoDrag||s.$DisableDrag?0:s.$Orientation},s);k=new c(n,ht);et=u}};a.hc=s=o.p({$SpacingX:0,$SpacingY:0,$Cols:1,$Orientation:1,$AutoCenter:3,$ActionMode:1},t);s.$DisplayPieces!=e&&(s.$Cols=s.$DisplayPieces);s.$Rows!=e&&(s.$Lanes=s.$Rows);ut=o.k(n);ft=o.l(n);l=o.B(n,"slides",u);d=o.B(l,"prototype");nt=o.k(d);tt=o.l(d);o.Kb(d,l);h=s.$Lanes||1;p=s.$SpacingX;w=s.$SpacingY;b=s.$Cols;s.$Scale==f&&o.G(n,"noscale",u)};n.$JssorCaptionSlider$=function(n,t,r){function h(n,t,r){function a(n,t){function v(n,t){var i={};return o.c(p,function(r,u){var f=o.j(n,r+(t||"")),e;f&&(e={},r=="t"?e.vb=f:f.indexOf("%")+1?e.Nf=o.qc(f)/100:e.vb=o.qc(f),i[u]=e)}),i}function w(){return s[i.floor(i.random()*s.length)]}function y(n){var r,t;return n=="*"?r=w():n&&(t=s[o.ic(n)]||s[n],o.xc(t)&&(n!=h?(h=n,u[n]=0,l[n]=t[i.floor(i.random()*t.length)]):u[n]++,t=l[n],o.xc(t)&&(t=t.length&&t[u[n]%t.length],o.xc(t)&&(t=t[i.floor(i.random()*t.length)])
4)),r=t,o.yd(r)&&(r=y(r))),r}var e=[],h,l=[],u=[],b=o.V(n);return o.c(b,function(n){var i=[],u;i.$Elmt=n;u=o.j(n,"u")=="caption";o.c(r?[0,3]:[2],function(r,e){var l,s,h;u&&(r==2&&o.j(n,"t3")||(s=v(n,r),r!=2||s.eb||(s.$Delay=s.$Delay||{vb:0},s=o.p(v(n,0),s))),s&&s.eb&&(l=y(s.eb.vb),l&&(h=o.p({$Delay:0},l),o.c(s,function(n,t){var i=(f[t]||f.qb).apply(f,[h[t],s[t]]);isNaN(i)||(h[t]=i)}),e||(s.Jb?h.Jb=s.Jb.vb||0:c&2&&(h.Jb=0)))),i.push(h));t%2&&!e&&(i.V=a(n,t+1))});e.push(i)}),e}function v(n,t,u){var c={$Easing:t.$Easing,$Round:t.$Round,$During:t.$During,$Reverse:r&&!u},y=n,b=o.Dc(n),a=o.k(y),v=o.l(y),ft=o.k(b),et=o.l(b),s={},f={},h=t.$ScaleClip||1,k,p,w,ut;if(t.$Opacity&&(f.$Opacity=1-t.$Opacity),c.$OriginalWidth=a,c.$OriginalHeight=v,t.$Zoom||t.$Rotate)f.$Zoom=(t.$Zoom||2)-2,(o.hb()||o.Bc())&&(f.$Zoom=i.min(f.$Zoom,1)),s.$Zoom=1,k=t.$Rotate||0,f.$Rotate=k*360,s.$Rotate=0;else if(t.$Clip){var d={$Top:0,$Right:a,$Bottom:v,$Left:0},g=o.p({},d),e=g.Ob={},nt=t.$Clip&4,tt=t.$Clip&8,it=t.$Clip&1,rt=t.$Clip&2;nt&&tt?(e.$Top=v/2*h,e.$Bottom=-e.$Top):nt?e.$Bottom=-v*h:tt&&(e.$Top=v*h);it&&rt?(e.$Left=a/2*h,e.$Right=-e.$Left):it?e.$Right=-a*h:rt&&(e.$Left=a*h);c.$Move=t.$Move;f.$Clip=g;s.$Clip=d}return p=0,w=0,t.x&&(p-=ft*t.x),t.y&&(w-=et*t.y),(p||w||c.$Move)&&(f.$Left=p,f.$Top=w),ut=t.$Duration,s=o.p(s,o.Re(y,f)),new l(t.$Delay,ut,c,y,s,f)}function y(n,t){return o.c(t,function(t){var i,o=t.$Elmt,f=t[0],s=t[1],r;f&&(i=v(o,f),f.Jb==e&&i.$Shift(n),n=i.db());n=y(n,t.V);s&&(r=v(o,s,1),r.$Shift(n),u.I(r),h.I(r));i&&u.I(i)}),n}var u=this,h,c=r?t.$PlayInMode:t.$PlayOutMode,s=t.$Transitions,p={eb:"t",$Delay:"d",$Duration:"du",x:"x",y:"y",$Rotate:"r",$Zoom:"z",$Opacity:"f",Jb:"b"},f={qb:function(n,t){return isNaN(t.vb)?n*=t.Nf:n=t.vb,n},$Opacity:function(n,t){return this.qb(n-1,t)}};f.$Zoom=f.$Opacity;l.call(u,0,0);u.wb=function(){u.v(u.db()*(r||0));h.v(0)};h=new l(0,0);y(0,c?a(n,1):[])}var u=this,f,s;l.call(u,0,0);u.wb=function(){s.wb();f.wb()};f=new h(n,t,1);u.bc=f.db();u.lc=u.bc+r;s=new h(n,t);s.$Shift(u.lc);u.I(s);u.I(f)};n.$JssorCaptionSlideo$=function(n,t,i){function v(n,t){var i={};return o.c(n,function(n,r){var u=c[r];u&&(o.Gg(n)?n=v(n,t||r=="e"):t&&o.cc(n)&&(n=s[n]),i[u]=n)}),i}function y(n,t){var i=[],r=o.V(n);return o.c(r,function(n){var u=o.j(n,"u")=="caption";if(u){var r=o.j(n,"t"),f=a[o.ic(r)]||a[r],e={$Elmt:n,eb:f};i.push(e)}t<5&&(i=i.concat(y(n,t+1)))}),i}function b(n,t,i){return o.c(t,function(t){var r=v(t),u=o.Ac(r.$Easing),e,s;r.$Left&&(r.Db=r.$Left,u.Db=u.$Left,delete r.$Left);r.$Top&&(r.Bb=r.$Top,u.Bb=u.$Top,delete r.$Top);e={$Easing:u,$OriginalWidth:i.W,$OriginalHeight:i.X};s=new l(t.b,t.d,e,n,i,r);f.I(s);i=o.we(i,r)}),i}function k(n){o.c(n,function(n){var t=n.$Elmt,r=o.k(t),u=o.l(t),i={$Left:o.D(t),$Top:o.C(t),Db:0,Bb:0,$Opacity:1,$ZIndex:o.K(t)||0,$Rotate:0,$RotateX:0,$RotateY:0,$ScaleX:1,$ScaleY:1,$TranslateX:0,$TranslateY:0,$TranslateZ:0,$SkewX:0,$SkewY:0,W:r,X:u,$Clip:{$Top:0,$Right:r,$Bottom:u,$Left:0}};i.Qd=i.$Left;i.Td=i.$Top;b(t,n.eb,i)})}function d(n,t,i){var o=n.b-t,e;return o&&(e=new l(t,o),e.I(f,u),e.$Shift(i),r.I(e)),r.ee(n.d),o}function g(n){var t=f.Jc(),u=0;o.c(n,function(n,f){n=o.p({d:i},n);d(n,t,u);t=n.b;u+=n.d;f&&n.t!=2||(r.bc=t,r.lc=t+n.d)})}var r=this,s,c={},a=t.$Transitions,f=new l(0,0),p,w,e;l.call(r,0,0);r.wb=function(){r.v(-1,u)};s=[h.$Swing,h.$Linear,h.$InQuad,h.$OutQuad,h.$InOutQuad,h.$InCubic,h.$OutCubic,h.$InOutCubic,h.$InQuart,h.$OutQuart,h.$InOutQuart,h.$InQuint,h.$OutQuint,h.$InOutQuint,h.$InSine,h.$OutSine,h.$InOutSine,h.$InExpo,h.$OutExpo,h.$InOutExpo,h.$InCirc,h.$OutCirc,h.$InOutCirc,h.$InElastic,h.$OutElastic,h.$InOutElastic,h.$InBack,h.$OutBack,h.$InOutBack,h.$InBounce,h.$OutBounce,h.$InOutBounce,h.$GoBack,h.$InWave,h.$OutWave,h.$OutJump,h.$InJump];p={$Top:"y",$Left:"x",$Bottom:"m",$Right:"t",$Rotate:"r",$RotateX:"rX",$RotateY:"rY",$ScaleX:"sX",$ScaleY:"sY",$TranslateX:"tX",$TranslateY:"tY",$TranslateZ:"tZ",$SkewX:"kX",$SkewY:"kY",$Opacity:"o",$Easing:"e",$ZIndex:"i",$Clip:"c"};o.c(p,function(n,t){c[n]=t});k(y(n,1));f.v(-1);w=t.$Breaks||[];e=[].concat(w[o.ic(o.j(n,"b"))]||[]);e.push({b:f.db(),d:e.length?0:i});g(e);r.v(-1)}})(window,document,Math,null,!0,!1);function getMake(n){window.status="Loading Search..";getInventoryQueryString(n);var t="{ params: "+JSON.stringify(objFilter)+"}";JqueryAjaxCall("POST","GetInventoryObj",t)}function getInventoryQueryString(n){var u,f,t,i,r,e,o,s,h,c,l,a,v;if(window.location.href.indexOf("?")>-1){var y=window.location.pathname,p=y.substring(y.lastIndexOf("/")+1),w=p.split(":"),b=w[0];keyFilter=b;objFilter.DealerID=n;u=getQuerystring("startrow");u===undefined&&(u=startrow);objFilter.StartRow=u;f=getQuerystring("endrow");f===undefined&&(f=endrow);objFilter.EndRow=f;t=getQuerystring("year");(t===undefined||t=="All")&&(t="%");objFilter.Year=t;i=getQuerystring("make");(i===undefined||i=="All")&&(i="%");objFilter.Make=i;r=getQuerystring("model");(r===undefined||r=="All")&&(r="%");objFilter.Model=r;e=getQuerystring("price");e===undefined&&(e="-1,200000000");objFilter.Price=e;o=getQuerystring("miles");o===undefined&&(o="0,200000000");objFilter.Mileage=o;s=getQuerystring("color");
4s===undefined&&(s="%");objFilter.Color=s;h=getQuerystring("body");h===undefined&&(h="%");objFilter.BodyType=h;c=getQuerystring("DealerCity");c===undefined&&(c="");objFilter.DealerCity=c;new_vehiclepage=getQuerystring("vstatus");new_vehiclepage===undefined&&(new_vehiclepage=2);objFilter.NewVehiclePage=new_vehiclepage;vehicletype=getQuerystring("vtype");vehicletype===undefined&&(vehicletype="%");objFilter.VehicleType=vehicletype;vehicletypeExclude=getQuerystring("vtypeExclude");vehicletypeExclude===undefined&&(vehicletypeExclude="-1");objFilter.VehicleTypeExclude=vehicletypeExclude;stockFilter=getQuerystring("stock");stockFilter===undefined&&(stockFilter="%");objFilter.Stock=stockFilter;lot=getQuerystring("lot");lot===undefined&&(lot=-1);objFilter.Lot=lot;l=getQuerystring("special");l===undefined&&(l=2);objFilter.Special=l;a=getQuerystring("pricereduced");a===undefined&&(a=2);objFilter.PriceReduced=a;v=getQuerystring("sort");v===undefined&&(v=12);objFilter.Sort=v}else getQueryKeyValue(n)}function getKeyValue(n){n=n.split("=");var i=n[0],t=n[1];return n.length==1?undefined:unescape(t)}function getQueryKeyValue(n){var u=window.location.pathname,r=u.substring(u.lastIndexOf("/")+1),f=r.split("="),i=f[0],t,e;objFilter.DealerID=n;e=getQuerystring("startrow");i=="startrow"?(t=getKeyValue(r),t===undefined&&(t=startrow)):t=startrow;objFilter.StartRow=t;i=="endrow"?(t=getKeyValue(r),t===undefined&&(t=endrow)):t=endrow;objFilter.EndRow=t;i=="year"?(t=getKeyValue(r),t===undefined&&(t="%")):t="%";objFilter.Year=t;i=="make"?(t=getKeyValue(r),t===undefined&&(t="%")):t="%";objFilter.Make=t;i=="model"?(t=getKeyValue(r),t===undefined&&(t="%")):t="%";objFilter.Model=t;i=="DealerCity"?(t=getKeyValue(r),t===undefined&&(t="")):t="";objFilter.DealerCity=t;i=="price-10000-under"?(t=getKeyValue(r),t===undefined&&(t="1,10000")):i=="price-10000-15000"?(t=getKeyValue(r),t===undefined&&(t="10000,15000")):i=="price-15000-20000"?(t=getKeyValue(r),t===undefined&&(t="15000,20000")):i=="price-20000-over"?(t=getKeyValue(r),t===undefined&&(t="20000,200000000")):t="-1,200000000";objFilter.Price=t;i=="miles"?(t=getKeyValue(r),t===undefined&&(t="0,200000000")):t="0,200000000";objFilter.Mileage=t;i=="color"?(t=getKeyValue(r),t===undefined&&(t="%")):t="%";objFilter.Color=t;i=="body-type"?(t=getKeyValue(r),t===undefined&&(t="%")):t="%";objFilter.BodyType=t;i=="new"?(t=getKeyValue(r),t===undefined&&(t=0)):t=2;objFilter.NewVehiclePage=t;i=="vehicle-type"?(t=getKeyValue(r),t===undefined&&(t="%")):t="%";objFilter.VehicleType=t;i=="vehicle-type-exclude"?(t=getKeyValue(r),t===undefined&&(t="-1")):t="-1";objFilter.VehicleTypeExclude=t;i=="stock"?(t=getKeyValue(r),t===undefined&&(t="%")):t="%";objFilter.Stock=t;i=="lot"?(t=getKeyValue(r),t===undefined&&(t=-1)):t=-1;objFilter.Lot=t;i=="featured-vehicles"?(t=getKeyValue(r),t===undefined&&(t=0)):t=2;objFilter.Special=t;i=="price-reduced-inventory"?(t=getKeyValue(r),t===undefined&&(t=1)):t=2;objFilter.PriceReduced=t;i=="used-vehicle-inventory"&&(objFilter.NewVehiclePage=1);i=="sort"?(t=getKeyValue(r),t===undefined&&(t=12)):t=12;objFilter.Sort=t;keyFilter=i}function GetInventoryObj_Callback(n){var i,r,u,f,e,o,h,c,s,l,t;for(typeof CustomadvanceSearch!="undefined"&&(CustomadvanceSearchval=CustomadvanceSearch),arg1=n.MinMax,$("#range_1").val(arg1.PriceMin+";"+arg1.PriceMax),i="",r="",$("#range_1").ionRangeSlider({min:arg1.PriceMin,max:arg1.PriceMax,from:arg1.PriceMin,to:arg1.PriceMax,type:"double",step:1,prefix:"$",grid:!0,prettify_separator:",",onChange:function(){var n=$("#range_1").val().split(";");i=n[1];r=n[0];$("input[name=price_min]").val(r);$("input[name=price_max]").val(i);CustomadvanceSearchval==!1&&slidestart(i,r,"","","","")}}),$("#range_2").val(arg1.YearMin+";"+arg1.YearMax),u="",f="",$("#range_2").ionRangeSlider({min:arg1.YearMin,max:arg1.YearMax,from:arg1.YearMin,to:arg1.YearMax,type:"double",step:1,prefix:"Year ",grid:!0,prettify_enabled:!1,onChange:function(){var n=$("#range_2").val().split(";");u=n[1];f=n[0];$("input[name=price_min]").val(f);$("input[name=price_max]").val(u);CustomadvanceSearchval==!1&&slidestart("","",u,f,"","")}}),$("#range_3").val(arg1.MileageMin+";"+arg1.MileageMax),e="",o="",$("#range_3").ionRangeSlider({min:arg1.MileageMin,max:arg1.MileageMax,from:arg1.MileageMin,to:arg1.MileageMax,type:"double",step:1,prefix:"Mileage ",grid:!0,prettify_separator:",",onChange:function(){var n=$("#range_3").val().split(";");e=n[1];o=n[0];$("input[name=price_min]").val(o);$("input[name=price_max]").val(e);CustomadvanceSearchval==!1&&slidestart("","","","",e,o)}}),CustomadvanceSearchval==!0?(slidestart(i,r,u,f,e,o),$("#addbtnSend").click(function(){slidestart(i,r,u,f,e,o)}),$("#dw-adsfilterlist").hide(),$("#div_addsearchSend").show()):($("#div_addsearchSend").hide(),$("#dw-adsfilterlist").show()),h="",c=document.getElementById("adSearchColor"),t=0;t<arg1.Colors.length;t++)h+="<div class='chkbox' name='chcolor' id='chcolor_"+t+"'><label><input type='checkbox' checked='checked' id='chkcolor_"+t+"' name='chkcolor' value='"+arg1.Colors[t].Color+"' onClick=setColorBody('chkcolor')>"+arg1.Colors[t].Color+"<\/label><\/div>";if(h!=null&&(c.innerHTML=h),s="",l=document.getElementById("addSearchRBodyType"),DWDealerID==467)for(t=0;t<arg1.BodyTypes.length;t++)s+="<div class='chkbox' name='chbody' id='chbody_"+t+"'><label><input type='checkbox' id='chkbodyt_"+t+"' name='chkbodyt' value='"+arg1.BodyTypes[t].BodyType+"' onClick=setColorBody('chkbodyt')>"+arg1.BodyTypes[t].BodyType+"<\/label><\/div>";else for(t=0;t<arg1.BodyTypes.length;t++)s+="<div class='chkbox' name='chbody' id='chbody_"+t+"'><label><input type='checkbox' checked='checked' id='chkbodyt_"+t+"' name='chkbodyt' value='"+arg1.BodyTypes[t].BodyType+"' onClick=setColorBody('chkbodyt')>"+arg1.BodyTypes[t].BodyType+"<\/label><\/div>";s!=null&&(l.innerHTML=s);filterInventory(n,1)}function setColorBodyAll(n){var t=document.getElementsByName(n);for(i=0;i<t.length;i++)t[i].checked=t[0].checked==!0?!0:!1;CustomadvanceSearchval==!0?$("#addbtnSend").click(function(){filterInventory(advfullresult,2)}):filterInventory(advfullresult,2)}function setColorBody(n){var t=document.getElementsByName(n),r=1;for(i=1;i<t.length;i++)t[i].checked==!1&&(r=0,t[0].checked=!1);r==1&&(t[0].checked=!0);CustomadvanceSearchval==!0?$("#addbtnSend").click(function(){filterInventory(advfullresult,2)}):filterInventory(advfullresult,2)}function hidecolorbody(n){var t=document.getElementsByName(n);for(i=0;i<t.length;i++)t[i].style.display="none"}function slidestart(n,t,i,r,u,f){var e,o,s,h,c,l;n!=""&&(t!=""||t==0)&&i!=""&&(r!=""||r==0)&&u!=""&&(f!=""||f==0)?(o=Number(n),e=Number(t),h=Number(i),s=Number(r),l=Number(u),c=Number(f),setInventoryMakes(argMakes,e,o,s,h,c,l)):(n!=""&&(t!=""||t==0)&&(o=Number(n),e=Number(t),setInventoryMakes(argMakes,e,o,"","","","")),i!=""&&(r!=""||r==0)&&(h=Number(i),s=Number(r),setInventoryMakes(argMakes,"","",s,h,"","")),u!=""&&(f!=""||f==0)&&(l=Number(u),c=Number(f),setInventoryMakes(argMakes,"","","","",c,l)))}function showVechicle(){$("#addbtnSend").click(function(){$("#dw-adsfilterlist").show()})}function filterInventory(n,t){arg2=n.Makes;arg5=n.MinMax;argMakes=n.Makes;
4t==2?setInventoryMakes(arg2,arg5.PriceMin,arg5.PriceMax,arg5.YearMin,arg5.YearMax,arg5.MileageMin,arg5.MileageMax):(advfullresult=n,setInventoryMakes(arg2,arg5.PriceMin,arg5.PriceMax,arg5.YearMin,arg5.YearMax,arg5.MileageMin,arg5.MileageMax),inventoryShowMore("-2"),window.status="")}function setInventoryMakes(n,t,i,r,u,f,e){var s=n,a,p,nt;if(s.length>0){var h=0,tt=0,o=0,w=Math.ceil(s.length/3),c=0,v=0,y=0,b=0,k=0,l;i==0&&(i=2e8);i!=""&&(t!=""||t==0)&&(pricemax=i,pricemin=t);u!=""&&(r!=""||r==0)&&(yearmax=u,yearmin=r);e!=""&&(f!=""||f==0)&&(milesmax=e,milesmin=f);var d=document.getElementsByName("chkcolor"),g=document.getElementsByName("chkbodyt"),ft=document.getElementsByName("chcolor"),et=document.getElementsByName("chbody");hidecolorbody("chcolor");hidecolorbody("chbody");var it=document.getElementById("MakeSearch1"),rt=document.getElementById("MakeSearch2"),ut=document.getElementById("MakeSearch3");for(it.innerHTML="",rt.innerHTML="",ut.innerHTML="";tt<3;){for(a="<table role='presentation'>";h<s.length;){if(h==w){w+=w;break}for(p="",y=0,j=0;j<s[h].Models.length;j++){for(nt="",v=0,l=s[h].Models[j].DetailsAdvSearch,o=0;o<s[h].Models[j].DetailsAdvSearch.length;o++)if(l[o].Year>=yearmin&&l[o].Year<=yearmax&&l[o].SuggSalePrice>=pricemin-1&&l[o].SuggSalePrice<=pricemax&&l[o].Miles>=milesmin&&l[o].Miles<=milesmax){for(m=1;m<d.length;m++)l[o].ExteriorColor.toLowerCase()==d[m].value.toLowerCase()&&(d[m].checked==!0&&(b=1),ft[m-1].style.display="block");for(m=1;m<g.length;m++)l[o].BodyType.toLowerCase()==g[m].value.toLowerCase()&&(g[m].checked==!0&&(k=1),et[m-1].style.display="block");b==1&&k==1&&(v++,y++,c++,sprice=formatNumC(s[h].Models[j].DetailsAdvSearch[o].SuggSalePrice),(s[h].Models[j].DetailsAdvSearch[o].SuggSalePrice==0||s[h].Models[j].DetailsAdvSearch[o].SuggSalePrice==-1)&&(sprice="N/A"),vmilesin=formatNumInt(s[h].Models[j].DetailsAdvSearch[o].Miles),s[h].Models[j].DetailsAdvSearch[o].Miles==0&&(vmilesin="N/A"),nt+="<tr id='details_"+c+"'><td width='10' ><\/td><td valign='top' > »<\/td><td class='AS_Vehicle' valign='top' ><a class='AS_Vehicle' href='javascript:void(0)' onclick=openwin('"+s[h].Models[j].DetailsAdvSearch[o].URLEncodedEncrInvID+"','"+s[h].Models[j].DetailsAdvSearch[o].Year+"','"+hyphenize(s[h].Models[j].DetailsAdvSearch[o].Make)+"','"+hyphenize(s[h].Models[j].DetailsAdvSearch[o].Model)+"')>"+s[h].Models[j].DetailsAdvSearch[o].Year+" "+s[h].Models[j].DetailsAdvSearch[o].Make+" "+s[h].Models[j].DetailsAdvSearch[o].Model+"<br>"+s[h].Models[j].DetailsAdvSearch[o].ExteriorColor+", "+vmilesin+" Miles<br><span class='DWPriceArea'>$"+sprice+"<\/span><\/a><\/td><\/tr><tr><td><\/td><\/tr>");b=0;k=0}v>0&&(p+="<tr valign='top' id='model_"+ ++c+"'><td width='10' valign='top' ><\/td><td valign='top' class='AS_Model' ><a href='javascript:void(0)' class='AS_Model' onclick=inventoryShowMore('"+c+"');> » "+s[h].Models[j].Model+"<\/a> <span id='modnum_"+c+"' >("+v+")<\/span>",p+="<table role='presentation' id='tbl_"+c+"' width=100% style='display:"+expclick+"'><tbody>"+nt+"<\/tbody><\/table><\/td><\/tr>")}y>0&&(a+="<tr id='make_"+ ++c+"'><td class='AS_Make' ><a class='AS_Make' href='javascript:void(0)' onclick=inventoryShowMore('"+c+"');>"+s[h].Make+" <span id='makenum_"+c+"'>("+y+") <\/span><span id='makeDrop_"+c+"' ><i class='fa fa-caret-down' aria-hidden='true'><\/i><\/span><\/a>",a+="<table role='presentation' id='tbl_"+c+"' width=100% style='display:"+expclick+"' ><tbody>"+p+"<\/tbody><\/table><\/td><\/tr>");h++}a+="<\/table>";switch(tt++){case 0:it.innerHTML=a;break;case 1:rt.innerHTML=a;break;case 2:ut.innerHTML=a}}makecount=c+1}setTop()}function setTop(){var t="center",n="myPopup_AdvanceSearch_Show";setTimeout(function(){IsMobile==!0?$("#"+n+" .modal-dialog .modal-content").css({top:0}):typeof t=="undefined"?$("#"+n+" .modal-dialog .modal-content").css({top:($(window).height()-$("#"+n+" .modal-dialog .modal-content").outerHeight()-94)/2}):t=="center"&&$("#"+n+" .modal-dialog .modal-content").css({top:($(window).height()-$("#"+n+" .modal
4-dialog .modal-content").outerHeight()-94)/2})},300)}function inventoryShowMore(n){var i=0,r=$("#MakeSearch1").height()+5+"px",u=$('#divsearch[style*="height"]'),t;if(u.length<=0&&$("#divsearch").css("min-height",r),n=="-1"){while(i<makecount)(ele=document.getElementById("tbl_"+i++))&&(ele.style.display="block");expclick="block"}else if(n=="-2"){while(i<makecount)(ele=document.getElementById("tbl_"+i++))&&(ele.style.display="none");expclick="none"}else t=document.getElementById("tbl_"+n),t!=null&&t.style.display=="block"?t.style.display="none":t!=null&&t.style.display=="none"&&(t.style.display="block");setTop()}function openwin(n,t,i,r){parentwin==winname&&(winname="afadvsearch"+eval(Number(winname.substr(11))+1));invdetails=window.location.protocol+"//"+window.location.host+PartialURL+"/"+t+"-"+hyphenize(i)+"-"+hyphenize(r)+"/inventory-details/"+n;newwin=window.open(invdetails,winname);newwin.focus()}var limit,CustomadvanceSearchval,advfullresult,argMakes,makecount,pricemax,pricemin,yearmax,yearmin,milesmax,milesmin,expclick,parentwin,winname,PartialURL;typeof limit=="undefined"&&(limit=50);var startrow=1,endrow=limit,totalrec=0,invfilter="All",invtype=0,prevsel,invseltype="All",invselymm="All",pages=1,sort=12,prevsort=12,firstsel=0,allsell=!0,cr_pglimit=10,cr_startpg=0,cr_endpg=cr_pglimit,new_vehiclepage=2,vehicletype="%",vehicletypeExclude="-1",stockFilter="%",lot=-1,objFilter={},keyFilter="",dlr_id="";CustomadvanceSearchval=!1;expclick="none";parentwin=window.name;winname="";winname=parentwin.substr(0,11)=="afadvsearch"?window.name:"afadvsearch1";PartialURL=$("#hdnPartialURL").val();function DWSetObjInventoryFilter(){objInventoryFilter.DealerID=DWDealerID;objInventoryFilter.Year="%";objInventoryFilter.Make="%";objInventoryFilter.Model="%";objInventoryFilter.Color="%";objInventoryFilter.BodyType="%";objInventoryFilter.Price="-1,200000000";objInventoryFilter.Mileage="0,200000000";objInventoryFilter.NewVehiclePage=2;objInventoryFilter.VehicleType="%";objInventoryFilter.VehicleTypeExclude="-1";objInventoryFilter.Stock="%";objInventoryFilter.Lot=-1;objInventoryFilter.Special=2;objInventoryFilter.PriceReduced=2;objInventoryFilter.Cylinders=-1;objInventoryFilter.Transmission="%";objInventoryFilter.VehicleStatus=-1;objInventoryFilter.Drivetrain="%";objInventoryFilter.FuelType="%";objInventoryFilter.InteriorColor="%";objInventoryFilter.Sort=12}function DwReArrangeHTML(n){switch(n){case"INV":$(".tdImg").removeAttr("style");$("div.list-group-item").each(function(n,t){var u=0,f=Math.max($(t).find(".tdImg").find(".stock").innerHeight(),$(t).find(".tdImg").find(".list-group-image").innerHeight()),r,i;if(f=Math.round(f),$(t).find(".tdImg").find(".stock").length>0){var e=$(".list-group-image").innerWidth(),o=e/900;BoxHeight=675*o;navigator.userAgent.indexOf("Firefox")>0&&(u=10)}else BoxHeight=$(t).find(".tdImg").find(".list-group-image").height(),$(t).find(".tdImg").find(".cssoverlay").css("background-size","100% 100%");$(".DW_Contentbg_Theme7").length>0||$(".DW_Contentbg_Theme8").length>0||($(t).find(".tdBasicInfo").height(BoxHeight),$(t).find(".tdPriceInfo").height(BoxHeight));$(t).find(".tdImg").find(".cssoverlay").height(BoxHeight);$(t).find(".tdImg").find(".stock").height(BoxHeight-u);$(t).find(".tdImg").find(".imgOverlayS").height(BoxHeight);r=0;i=0;$(t).find(".tdBasicInfo").find(".drivetrain-item").length>0&&(i=i+1);$(t).find(".tdBasicInfo").find(".titletype-item").length>0&&(i=i+1);$(t).find(".tdBasicInfo").find(".KeyTagNumber-item").length>0&&(i=i+1);r=(BoxHeight-12)/(6+i);DWDealerID!=3950&&$(t).find(".tdBasicInfo").find(".list-group-item").height(r)});$(".divMobileViewOnDesk").each(function(n,t){var i=Math.max($(t).find(".tdImg").find(".stock").outerHeight(!0),$(t).find(".tdImg").find(".list-group-image").outerHeight(!0)),r;i=Math.round(i);$(t).find(".tdImg").find(".stock").length>0?BoxHeight=i:(BoxHeight=i+10,$(t).find(".tdImg").find(".cssoverlay").css("background-size","100% 100%"));$(t).find(".tdImg").find(".cssoverlay").height(BoxHeight);$(t).find(".tdImg").find(".stock").height(BoxHeight);$(t).find(".tdImg").find(".imgOverlayS").height(BoxHeight);r=$(t).find(".tdImg").find(".list-group-image").width();$(t).find(".tdImg").find(".cssoverlay").width(r)})}}function resizeGridImg(){var i,n,t;if(af$("hdnDwInvView")!=null&&(i=af$("hdnDwInvView").value,i=="grid")){if($(".tdImg").removeAttr("style"),n=0,OverlayimgUrl!=""){var r=$(".DwInvImage").innerWidth(),u=r/900;n=675*u;$(".tdImg .dwNormalImgBox img").height(n)}else $(".DwInvImage").each(function(){$(this).height()>n&&(n=$(this).height())});$(".tdImg .dwNormalImgBox").height(n);$(".tdImg .cssoverlay").height(n);$(".tdImg .dwStockImgBox").height(n);$(".tdImg .imgOverlayS").height(n);$(".tdBasicInfo").length>0&&(t=0,$(".tdBasicInfo").each(function(){$(this).height()>t&&(t=$(this).height())}),$(".tdBasicInfo").height(t),$(".tdPriceInfo").height(t));$(".divMobileViewOnDesk").each(function(n,t){var i=Math.max($(t).find(".tdImg").find(".stock").outerHeight(!0),$(t).find(".tdImg").find(".list-group-image").outerHeight(!0)),r;i=Math.round(i);$(t).find(".tdImg").find(".stock").length>0?BoxHeight=i:(BoxHeight=i+10,$(t).find(".tdImg").find(".cssoverlay").css("background-size","100% 100%"));$(t).find(".tdImg").find(".cssoverlay").height(BoxHeight);$(t).find(".tdImg").find(".stock").height(BoxHeight);$(t).find(".tdImg").find(".imgOverlayS").height(BoxHeight);r=$(t).find(".tdImg").find(".list-group-image").width();$(t).find(".tdImg").find(".cssoverlay").width(r)})}}function ShowHideInvFilters(){var n=$("#DWLeftFilter").css("left");n=="0px"?$("#DWLeftFilter").animate({left:"-100%"},400,function(){$(".disablingDivCommon").remove();$("body").removeClass("noscroll")}):($("#DWLeftFilter").animate({left:"0"},400),$("body").append("<div class='disablingDivCommon' onclick='ShowHideInvFilters()' style='display:block;'><\/p>"),$("body").addClass("noscroll"))}
4function MobFinanceDisclosure(n){GE_DW_Set_myPopup_invoked_function("PopupDisclosure");af$("DisclosureBody").innerHTML=objDWInventoryList.InvPageList[n].PaymentComments}function expandDiv(n,t){$(t).html().indexOf("Less")>=0?($("#"+n).addClass("height1"),$("#"+n).focus(),$(t).html("More »")):($("#"+n).removeClass("height1"),$("#"+n).focus(),$(t).html("« Less"))}function myPopup_AFDealerWebPhotostart(n){DwGetInventoryImageList(objDWInventoryList.InvPageList[n].EncryptedInvID)}function myPopup_AFDealerWebVideo_start(n){af$("div_myPopup_AFDWVideoCnt").innerHTML="";af$("div_myPopup_AFDWVideoCnt").innerHTML=objDWInventoryList.InvPageList[n].VideoUrl;GE_DW_Set_myPopup_invoked_function("div_myPopup_AFDWVideo");$("#div_myPopup_AFDWVideo").on("hidden.bs.modal",function(){$("#div_myPopup_AFDWVideoCnt").html("")})}function myPopup_myPopup_DealerWebVideo_start(n){objDWInventoryList.InvPageList[n].UrlType=="EMB"?myPopup_AFDealerWebVideo_start(n):objDWInventoryList.InvPageList[n].UrlType=="URL"&&window.open(objDWInventoryList.InvPageList[n].VideoUrl)}function DwGetInventoryImageList(n){af$("div_myPopup_AFDWPhotoCnt").innerHTML="";GE_DW_Set_myPopup_invoked_function("div_myPopup_AFDWPhoto");var t='{EncryptedInventoryId: "'+n+'"}';JqueryAjaxCall("POST","GetInventoryImageListByEncryptedID",t)}function GetInventoryImageListByEncryptedID_Callback(n){var u="",o=af$("hdnOrginalImageDealerId").value,s=o.split(",").filter(Boolean).map(Number),i,r,f,e,t;if(s.includes(DWDealerID))for(i=0;i<n.length;++i)u+='<div data-p="150.00" style="display: none;"><img data-u="image" src='+n[i].FileOriginal+' /><img data-u="thumb" src='+n[i].FileOriginal+" /><\/div>";else for(r=0;r<n.length;++r)u+='<div data-p="150.00" style="display: none;"><img data-u="image" src='+n[r].FileMain+' /><img data-u="thumb" src='+n[r].FileMain+" /><\/div>";f="";f='<div id="jssor_inv_img" style="position: relative; width: 876px; height: 480px; background: #24262e; overflow: hidden;margin: 0 auto; top: 0px; left: 0px;cursor:pointer"><div data-u="loading" style="position: absolute; top: 0px; left: 0px;z-index:99;"><div style="filter: alpha(opacity=70); opacity: 0.7; position: absolute; display: block; top: 0px; left: 0px; width: 100%; height: 100%;"><\/div><div style="position:absolute;display:block;background:url("/1/images/inv/loading.gif") no-repeat center center;top:0px;left:0px;width:100%;height:100%;"><\/div><\/div><div data-u="slides" id="div_myPopup_AFDWPhotoSlide" style="cursor: move; position: relative; top: 0px; left: 240px; width: 640px; height: 480px; overflow: hidden;">'+u+'<\/div><div data-u="thumbnavigator" class="jssort01-99-66" style="position:absolute;left:0px;top:0px;width:240px;height:480px;cursor:auto;" data-autocenter="2"><div data-u="slides" ><div data-u="prototype" class="p"><div class="w"><div data-u="thumbnailtemplate" class="t"><\/div><\/div><div class="c"><\/div><\/div><\/div><\/div><span data-u="arrowleft" class="jssora07l" style="top:158px;left:248px;width:40px;height:40px;" data-autocenter="2"><i class="fa fa-chevron-left fa-nav" aria-hidden="true"><\/i><\/span><span data-u="arrowright" class="jssora07r" style="top:158px;right:8px;width:40px;height:40px;" data-autocenter="2"><i class="fa fa-chevron-right fa-nav" aria-hidden="true"><\/i><\/span><\/div>';af$("div_myPopup_AFDWPhotoCnt").innerHTML=f;e=new $JssorSlider$("jssor_inv_img",jssor_inv_img_options);t=e.$Elmt.parentNode.clientWidth;t&&(t=Math.min(t,878),t=Math.max(t,300),e.$ScaleWidth(t));GE_DW_Set_myPopup_invoked_function("div_myPopup_AFDWPhoto");SetHtmlOverlay()}function invSort(){var n=af$("sltDwInvSort");val=n[n.selectedIndex].value;val!="12"&&(window.location=n[n.selectedIndex].value)}function PopUpAdvanceSearch(n){GE_DW_Set_myPopup_invoked_function("myPopup_AdvanceSearch_Show");getMake(n)}function getValueStockno(n){var r=n,t=document.getElementById("searchBox").value,i;trim(t).length>0?(blnManagePrivacy==!0?getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&typeof fbq!="undefined"&&fbq("track","Search",{content_category:"Stock Number Search",search_string:t}):typeof fbq!="undefined"&&fbq("track","Search",{content_category:"Stock Number Search",search_string:t}),i=r+"/inventory.aspx?Stock="+t,window.location=i):AlertModel("Please enter Stock #")}function getEnterkeyPressStockdata(n,t){t.keyCode==13&&getValueStockno(n)}function getPopup_Values(n,t,i,r,u,f,e,o){var h,s,c,l;
4GE_DW_Set_myPopup_invoked_function("myPopup_Request_ConfirmAvail","center",e,o);s="";h=f>0?"$"+formatNum(f).replace(".00","").replace(" ",""):"Call for Price";u.length>0&&(s="Stock# : <b>"+u+"<\/b>");c='<div class="vehicle_popupdiv"><div class="vehicle_image"><img src="'+n+'" alt="" title="" /><\/div><div class="vehicle_info"><div class="vehicle_title"><b>'+r+" "+t+" "+i+'<\/b><\/div><div class="vehicle_Price"><b>'+h+'<\/b><\/div><div class="vehicle_Stock">'+s+"<\/div><\/div><\/div>";l="<div class='veh_title'><b>HOW DO WE REACH YOU<\/b><\/div>";$("#myPopup_Request_ConfirmAvail_bodyText").html(c+l);af$("loader").style.display="block";af$("myPopup_Request_ConfirmAvail_bodyText").style.visibility="hidden";af$("myPopup_ConfirmAvail_body").style.visibility="hidden";setTimeout("hide_popup()",1500)}function hide_popup(){af$("loader").style.display="none";af$("myPopup_Request_ConfirmAvail_bodyText").style.visibility="visible";af$("myPopup_ConfirmAvail_body").style.visibility="visible"}function myPopup_invoked_function_carfax(n){if(n.indexOf("carfax")>-1)return window.open(n),!1;var t=$(window).height();IsMobile||(t=t-200,$("#vehicle-history-modal-dialog").width("100%"));$("#myPopup_Vehicle_History_Body").html('<iframe src="'+n+'" frameborder="0" scrolling="yes" style="width:100%; height:'+t+'px;"><\/iframe>');GE_DW_Set_myPopup_invoked_function("myPopup_Vehicle_History","center")}function SetTheme3Items(){$(".DW_Contentbg_Theme3").length>0&&(pageDefaultEndRow=IsBot==!0?100:parseInt(af$("hdnDwInvEndRow").value),pageEndRow=pageDefaultEndRow,InvMinMax=af$("inv_maxCount").innerHTML,Set_Html_Hight(),IsMobile||$("#Inv_FilterScroll").mCustomScrollbar({setHeight:1155,theme:"minimal-dark"}),$(window).scroll(function(){if(IsMobile||Set_Html_Position(),InvMinMax>pageEndRow){var n=$("#showroomcontact").offset().top,t=$("#showroomcontact").outerHeight(),i=$(window).height(),r=$(this).scrollTop();r>n+t-i&&($("#Inv_loader").show(),function_call==!0&&GetInventoryRecords())}}))}function SetInvThemeItems(){($(".DW_Contentbg_Theme1").length>0||$(".DW_Contentbg_Theme0").length>0)&&(pageDefaultEndRow=IsBot==!0?100:parseInt(af$("hdnDwInvEndRow").value),pageEndRow=pageDefaultEndRow,af$("inv_maxCount")!=null&&(InvMinMax=af$("inv_maxCount").innerHTML),$(window).scroll(function(){var t=$("#showroomcontact").offset().top,i=$("#showroomcontact").outerHeight(),r=$(window).height(),n=$(this).scrollTop();(n>200||InvMinMax>0&&InvMinMax<3)&&InventoryFiltersShow();InvMinMax>pageEndRow&&n>t+i-r&&($("#Inv_loader").show(),function_call==!0&&GetInventoryRecords())}))}function Set_Html_Hight(){Inv_filter_height=$("#Inv_filter_Div").height();filter_position=Inv_filter_height+$("#Inv_filter_Div").offset().top+inv_top_Hight+$("#DWBottomBarContainer").height()+300}function Set_Html_Position(){$(window).scrollTop()>filter_position?(hightsetting==!1&&(filter_top=$("#Inv_filter_Div").offset().top),af$("Inv_filter_Div")!=null&&(af$("Inv_filter_Div").style.position="static",af$("Inv_filter_Div").style.top="-"+filter_top+"px",af$("Inv_filter_Div").style.width="100%",hightsetting=!0)):$(window).height()<filter_position&&hightsetting==!1?(filter_top=$("#Inv_filter_Div").offset().top,af$("Inv_filter_Div").style.position="fixed",af$("Inv_filter_Div").style.top="-"+filter_top+"px",af$("Inv_filter_Div").style.width="200px",hightsetting=!0):(af$("Inv_filter_Div").style.position="static",af$("Inv_filter_Div").style.width="100%",hightsetting=!1);$("#Inv_filter_Div").height()+$("#Inv_filter_Div").offset().top>=$("#showroomcontact").offset().top&&(af$("Inv_filter_Div").style.position="static",af$("Inv_filter_Div").style.width="100%",hightsetting=!1)}function InventoryFiltersLoaderShow(n){document.getElementById("DWScrollFiltersLoader").style.display=n?"":"none"}function InventoryFiltersShow(){var t=document.getElementById("divScrollFilters"),r,i,n,u;t&&(r=t.style.display,r)&&(t.style.display="",InventoryFiltersLoaderShow(!0),i=JSON.parse(document.getElementById("hdnInvFilter").value),i.MakeModelOnly=2,n=document.getElementById("hdnDwInventoryFilterUrl").value,n||(n="2/includes/inventoryFilters_Theme1.aspx"),u=document.getElementById("hdvwInvFilterQs").value,
4n="/"+n+"?"+u,$.ajax({type:"POST",data:JSON.stringify(i),contenttype:"application/json",url:n,success:function(n){InventoryFiltersShow_Callback(n,t)},error:function(n,i){t.style.display="none";InventoryFiltersLoaderShow(!1);console.log("ajax error",n,i)}}))}function InventoryFiltersShow_Callback(n,t){if(InventoryFiltersLoaderShow(!1),!n){t.style.display="none";return}var i=(new DOMParser).parseFromString(n,"text/html"),r=i.getElementById("divToStripOut"),u=JSON.parse(i.getElementById("hdnInvFilterList").value);Object.assign(objDWInventoryList.FilterList,u);i.body.removeChild(r);t.innerHTML=i.body.innerHTML;typeof SetInventoryFilterCustomHTML!="undefined"&&typeof SetInventoryFilterCustomHTML=="function"&&SetInventoryFilterCustomHTML(!0)}function GetInventoryRecords(){inv_count=pageEndRow;pageStartRow=pageEndRow+1;pageEndRow=pageEndRow+pageDefaultEndRow;objInventoryFilter=JSON.parse(document.getElementById("hdnInvFilter").value);objInventoryFilter.CurrentPageNumber=CurrentPageNo;objInventoryFilter.InvVehicleStatus=$("#hdnInvVehicleStatus").val();objInventoryFilter.StartRow=pageStartRow;objInventoryFilter.EndRow=pageEndRow;function_call=!1;var n="{ params: "+JSON.stringify(objInventoryFilter)+"}";JqueryAjaxCall("POST","GetInventoryPaging",n)}function formatPhone(n){var i=n.replace(/\D/g,""),r={0:"(",3:") ",6:"-"},t;for(n="",t=0;t<i.length;t++)n+=(r[t]||"")+i[t];return n}function GetInventoryPaging_Callback(n){var hi=$("#hdnDwAltDealerName").val(),ot=$("#hdnDwAltPhone").val(),r=$("#hdnDwAltCity").val(),s=$("#hdnDwAltState").val(),st=$("#hdnDwAltStateFull").val(),iu=$("#hdnDwAltZip").val(),nt=$("#hdnDwAltCounty").val(),gi=$("#hdnDwFinanceURLTarget").val(),ru=$("#hdnDwSoldLotId").val(),uu=$("#hdnDwPendingLotId").val(),fu=$("#hdnDwComingSoonLotId").val(),ht=$("#hdnDwfinanceLink").val(),eu=$("#hdnDwDealershipHideVin").val()==="true",k="",ti=GetAllQueryStringExcept,er=$("#hdnDwMobListingType").val(),lu=$("#hdnDwImage360_AFField_Enabled_Dealers").val(),nr="",ou="",e="",w="",i="",y="0.00",ri,ci,u,gt="",o,l,ut="",ct,p="",c,lt,at,vt,yt="",d,ft,vi="",yi,or,pi,sr,wi,hr,ii,tr,g,tt="",f,h="",cr="",lr,ar="",it,rt,pt,wt,b,bt,kt,bi="",ki="",et="",vr="",ui="",yr="",pr="",su=!1,li="",wr,fi=0,di=0,dt="",ai="",ei="",ir="",oi,hu,rr="",ur="",br="",kr="",dr="",gr="",fr="",nu="",si="",a,ni,t,v,cu,tu;if($(".DW_Contentbg_Theme3").length>0){for(ti=ti.split("&"),t=0;t<ti.length;t++)nr=ti[t].split("="),k=nr[0]=="vCategory"?k.toLowerCase()+"s":"cars";for(w=window.location.search.substring(1),w=w.split("&"),e=InventoryView,t=0;w.length>1;t++)w=w[t].split("="),ou=GetAllQueryStringExcept,w[0]=="grid"?e="grid":w[0]=="list"&&(e="list");if(InventoryList=null,i="",n!=null&&n.InvPageList!=null){for(InventoryList=n.InvPageList,objDWInventoryList.InvPageList=objDWInventoryList.InvPageList.concat(InventoryList),ht!=null&&gi==""&&(ht+="?IsGeneric=0&IsFinance=1"),t=0;t<InventoryList.length;++t)ObjInventoryLots!=null&&(a=ObjInventoryLots.filter(function(n){return n.Id=InventoryList[t].LotId})),a!=null&&(a[0].Contact!=null&&trim(a[0].Contact.Name)!=null&&(hi=a[0].Contact.Name),trim(a[0].Contact.Phone)!=null&&(ot=formatPhone(a[0].Contact.Phone)),a[0].Contact.Address!=null&&(trim(a[0].Contact.Address.City)!=null&&(r=a[0].Contact.Address.City),trim(a[0].Contact.Address.State)!=null&&(s=a[0].Contact.Address.State),trim(a[0].Contact.Address.StateFull)!=null&&(st=a[0].Contact.Address.StateFull),trim(a[0].Contact.Address.Zip)!=null&&(iu=a[0].Contact.Address.Zip),trim(a[0].Contact.Address.County)!=null&&(nt=a[0].Contact.Address.County))),InventoryList[t].NewOrUsed==!0?(ct="New",p=ct+" "+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" in "+r+", "+st+" | "+hi+". "+r+", "+st):(ct="Used",p=ct+" "+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" in "+r+", "+st+" | "+hi+". "+r+", "+st),ui="",vr="",vr=AFAppConfigSettings_SeverNoimgPath+DWDealerID+"_noimage.png",gt=encodeURIComponent(InventoryList[t].EncryptedInvID)+"ÃTrue",AFAppConfigSettings_SeverNoimgPath!=null&&(ui=AFAppConfigSettings_NoimgPath+"/"+DWDealerID+"_noimage.png"),c=InventoryList[t].ImagePath,c.indexOf("stockPhotos")>0?(lt=!0,at="dwstock",vt="dwInvStockOverlay",yt="/1/images/InvnoImage/noimage_stock.jpg"):c.indexOf("noimage")>0?(lt=!1,at="dwnoimage",vt="dwInvStockOverlayHide",ui.Length>0&&(c=ui),yt="/1/images/InvnoImage/noimage.jpg"):(lt=!1,at="dwnormal",vt="dwInvStockOverlayHide",yt="/1/images/InvnoImage/noimage.jpg"),InventoryList[t].DealId>
4-2&&n.InvMinMax.ShowAsSold?(d="dwInvSoldimgBlock_L",ft="dwInvSoldimgBlock",vi=!0):(d="dwInvSoldimgNone_L",ft="dwInvSoldimgNone"),InventoryList[t].LotId==ru?(d="dwInvSoldimgBlock_L",ft="dwInvSoldimgBlock",vi=!0):InventoryList[t].LotId==uu?(d="dwInvPendingimg_L",ft="dwInvPendingimg"):InventoryList[t].LotId==fu&&(d="dwInvComingimg_L",ft="dwInvComingimg"),yi="<div class='"+d+" cssoverlay' id='dwSoldInvWaterMark_"+inv_count+"'> <\/div>",or="<div class='"+d+" cssoverlay' id='MdwSoldInvWaterMark_"+inv_count+"'> <\/div>",pi="<div class='"+vt+" cssoverlay' id='dwStockInvImgWaterMark_"+inv_count+"'> <\/div>",sr="<div class='"+vt+" cssoverlay' id='MdwStockInvImgWaterMark_"+inv_count+"'> <\/div>",wi="<div class='CssClassCustomOverlay cssoverlay' id='dwCustomImgOverlay_"+inv_count+"'><\/div>",hr="<div class='CssClassCustomOverlay cssoverlay' id='MdwCustomImgOverlay_"+inv_count+"'><\/div>",ii="<img itemprop='image' content='"+c+"' id='DwInvListImage_"+inv_count+"' title='"+p+"' alt='"+p+"' class='group list-group-image DwInvImage "+at+"' src='"+c+"' onerror='this.onerror=null;this.src=\""+yt+"\"' />",tr="<img itemprop='image' content='"+c+"' id='MDwInvListImage_"+inv_count+"' title='"+p+"' alt='"+p+"' class='group list-group-image "+at+"' src='"+c+"' onerror='this.onerror=null;this.src=\""+yt+"\"' />",g=InventoryList[t].ImageCount,g==1?g+=" photo":g>1?g+=" photos":g="Stock image",tt=InventoryList[t].Vin,SaleType=="S"?InventoryList[t].NewOrUsed==!0?(f=window.location.protocol+"//"+window.location.host+"/"+InventoryList[t].Year+"-"+Hyphenize(InventoryList[t].Make)+"-"+Hyphenize(InventoryList[t].Model)+"-"+Hyphenize(r)+"-"+s+GetRegionsAndCounty(nt).replace(/\//g,"-")+"/new_"+k.replace("s","")+"/"+InventoryList[t].URLEncodedEncrInvID,h="New "+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" for sale in "+r+", "+s):(f=window.location.protocol+"//"+window.location.host+"/"+InventoryList[t].Year+"-"+Hyphenize(InventoryList[t].Make)+"-"+Hyphenize(InventoryList[t].Model)+"-"+Hyphenize(r)+"-"+s+GetRegionsAndCounty(nt).replace(/\//g,"-")+"/used_"+k.replace("s","")+"/"+InventoryList[t].URLEncodedEncrInvID,h="Used "+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" for sale in "+r+", "+s):SaleType=="L"?(f=window.location.protocol+"//"+window.location.host+"/"+InventoryList[t].Year+"-"+Hyphenize(InventoryList[t].Make)+"-"+Hyphenize(InventoryList[t].Model)+"-"+Hyphenize(r)+"-"+s+GetRegionsAndCounty(nt).replace(/\//g,"-")+"/"+k.replace("s","")+"_leasing/"+InventoryList[t].URLEncodedEncrInvID,h=""+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" for lease in "+r+", "+s):SaleType=="R"?(f=window.location.protocol+"//"+window.location.host+"/"+InventoryList[t].Year+"-"+Hyphenize(InventoryList[t].Make)+"-"+Hyphenize(InventoryList[t].Model)+"-"+Hyphenize(r)+"-"+s+GetRegionsAndCounty(nt).replace(/\//g,"-")+"/"+k.replace("s","")+"_rentals/"+InventoryList[t].URLEncodedEncrInvID,h=""+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" for rent in "+r+", "+s):(f=window.location.protocol+"//"+window.location.host+"/"+InventoryList[t].Year+"-"+Hyphenize(InventoryList[t].Make)+"-"+Hyphenize(InventoryList[t].Model)+"-"+Hyphenize(r)+"-"+s+GetRegionsAndCounty(nt).replace(/\//g,"-")+"/used_"+k.replace("s","")+"/"+InventoryList[t].URLEncodedEncrInvID,h="Used "+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" for sale in "+r+", "+s),it="",InventoryList[t].CylindersDesc!=""?it=InventoryList[t].CylindersDesc:InventoryList[t].Cylinders!=""&&(it=InventoryList[t].Cylinders+" Cyl."),et="",(it!=""||InventoryList[t].EngineSize!="")&&(et="<div class='list-group-item InvEnginetype'><span class='group_item_head'><b>Engine:<\/b> <\/span><br />",et+="<span itemprop='vehicleEngine' style='padding: 0;'>"+InventoryList[t].EngineSize.replace("Liter","L"),InventoryList[t].EngineSize.length==""&&(et+=" "+it+"<\/span>"),et+="<\/div><div class='clrall'><\/div>"),rt="",InventoryList[t].Drivetrain!=null&&(rt="<div class='list-group-item drivetrain-item'><span class='group_item_head'><b>Drivetrain:<\/b><\/span><br /> ",rt+="<span itemprop='driveWheelConfiguration' style='padding: 0;'>"+GetDrivetrainFullForm(InventoryList[t].Drivetrain)+"<\/span>",rt+="<\/div><div class='clrall'><\/div>"),pt="",InventoryList[t].TitleType!=""&&DWDealerID==3506&&(pt="<div class='list-group-item titletype-item'><span class='group_item_head'><b>Title Type:<\/b> <\/span><br />",pt+="<spanstyle='padding: 0;'>"+InventoryList[t].TitleType+"<\/span>",pt+="<\/div><div class='clrall'><\/div>"),wt="",InventoryList[t].Transmission!=""&&(wt="<div class='list-group-item InvTransmissiontype'><span class='group_item_head'><b>Transmission:<\/b><\/span><br />",wt+="<span itemprop='vehicleTransmission' style='padding: 0;'>"+InventoryList[t].Transmission+"<\/span>",wt+="<\/div><div class='clrall'><\/div>"),b="",InventoryList[t].ExteriorColorFactory!=""?(b="<div class='list-group-item InvExteriorcolor' id='dwInvExterior_"+inv_count+"'><span class='group_item_head'><b>Exterior Color:<\/b><\/span><br />",b+="<span itemprop='color' style='padding: 0;'>"+InventoryList[t].ExteriorColorFactory+"<\/span>",b+="<\/div><div class='clrall'><\/div>"):(b="<div class='list-group-item InvExteriorcolor' id='dwInvExterior_"+inv_count+"'><span class='group_item_head'><b>Exterior Color:<\/b><\/span><br />",b+="<span itemprop='color' style='padding: 0;'>"+InventoryList[t].ExteriorColor+"<\/span>",b+="<\/div><div class='clrall'><\/div>"),bt="",(InventoryList[t].InteriorColor!=""||InventoryList[t].InteriorMaterial!="")&&(bt="<div class='list-group-item InvInteriorcolor' id='dwInvInterior_"+inv_count+"'><span class='group_item_head'><b>Interior:<\/b><\/span><br />",bt+="<span itemprop='vehicleInteriorColor' style='padding: 0;'>"+InventoryList[t].InteriorColor+" "+InventoryList[t].InteriorMaterial+"<\/span>",bt+="<\/div><div class='clrall'><\/div>"),kt="",InventoryList[t].Miles!=""&&(si=InventoryList[t].TrueMileageFlag==!0?"<span class='dw-truemlg'>* (true mileage unknown)<\/span>":"",kt="<div class='list-group-item mileage' id='dwInvMiles_"+inv_count+"'><span class='group_item_head'><b>Mileage:<\/b><\/span><br />",kt+="<span itemprop='mileageFromOdometer' style='padding: 0;'>
4"+formatNum(InventoryList[t].Miles).replace(".00","").replace(" ","")+"<\/span>"+si,kt+="<\/div><div class='clrall'><\/div>"),bi="",y=formatNum(InventoryList[t].SuggSalePrice).replace(".00","").replace(" ",""),l=formatNum(InventoryList[t].SuggSalePrice).replace(".00","").replace(" ",""),u="",o="",ut="",fi=0,di=0,dt="",ai="",HidePrices==!1?(InventoryList[t].SuggSalePrice>0&&InventoryList[t].ShowPrice==!0?(ai="<span class='DWInvPriceSpan' id='MDWInvPriceSpan_"+inv_count+"'>$"+l+"<\/span>",IsMobile?(y="<div class='pricetag'><div class='inv-price DWInvListPriceSpan' id='DWInvPriceSpan_"+inv_count+"' >$"+y+"<\/div><\/div>",l="<span id='MDWInvPriceSpan_"+inv_count+"' class='DWPriceIP' itemscope='' itemprop='priceSpecification' itemtype='http://schema.org/UnitPriceSpecification'><span class='DwNoDisplay' itemprop='name' content='Internet Price'><\/span><span itemprop='priceCurrency' content='USD'>$<\/span><span itemprop='price' content='"+InventoryList[t].SuggSalePrice+"'>"+l+"<\/span><\/span>"):(y="<div class='pricetag'><div class='inv-price DWInvListPriceSpan' id='DWInvPriceSpan_"+inv_count+"' itemscope='' itemprop='priceSpecification' itemtype='http://schema.org/UnitPriceSpecification'><span class='DwNoDisplay' itemprop='name' content='Internet Price'><\/span><span itemprop='priceCurrency' content='USD'>$<\/span><span itemprop='price' content='"+InventoryList[t].SuggSalePrice+"'>"+y+"<\/span><\/div><\/div>",l="<span id='MDWInvPriceSpan_"+inv_count+"' class='DWPriceIP'>$"+l+"<\/span>"),ut="<span data-cg-vin="+tt+" data-cg-price="+InventoryList[t].SuggSalePrice+"><\/span>",u=y.replace("inv-price","inv-price internet-price"),o=l,dt=ai):(InventoryList[t].ShowPayment==!1||InventoryList[t].PaymentPrice<1||InventoryList[t].SuggSalePrice<1||InventoryList[t].ShowPrice==!1)&&(u="<div class='pricetag'><div class='callnowprice' id='DWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE!<br/><\/div><\/div>",o="<span class='DWPriceCall' id='MDWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE! <\/span>",dt="<div class='inv_pay' id='MDWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE<\/div>"),fi>0&&di<=0&&(IsMobile?o+="<\/div>":u+="<\/div>")):(u="<div class='pricetag'><div class='callnowprice' id='DWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE!<br/><\/div><\/div>",o="<span class='DWPriceCall' id='MDWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE! <\/span>",dt="<div class='inv_pay' id='MDWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE<\/div>"),ni=3,DWDealerID==3785?ni=5:DWDealerID==3775?ni=2:DWDealerID==889?ni=3:DWDealerID==4686&&(ni=4),t%ni==0&&e=="grid"&&(i+="<div class='row'>"),i+='<input type="hidden" id="hdnFlink_'+inv_count+'" value="'+gt+'" />',i+=IsMobile?' <div class="invItems item col-md-4 '+e+'-group-item" id="InvListVhDetail_'+inv_count+'">':'<div class="invItems item col-md-4 '+e+"-group-item Width_"+100/ni+'" id="InvListVhDetail_'+inv_count+'" itemscope itemtype="http://schema.org/Vehicle">',i+='<div class="thumbnail" ><table class="tblListInv"><tr id="trInvImg_'+inv_count+'" class="trInvImg"><td class="tdImg" ',i+=e=="grid"?"colspan='2'>":">",i+='<a itemprop="url" title="'+p+'" href="'+f+'">',i+=lt?'<div class="stock dwStockImgBox">'+ii+"<\/div>":'<div class="dwNormalImgBox">'+ii+"<\/div>",i+=yi,i+=pi,i+=wi,i+="<\/a>",i+="<\/td>",e=="grid"&&(i+='<\/tr><tr id="trBasicInfo_'+inv_count+'" class="trBasicInfo">'),i+='<td class="tdBasicInfo_2"><div class="divBox" id="divBasicInfo_'+inv_count+'"><h2 class="group inner list-group-item-heading txtOvrF1" id="dwitem-heading_'+inv_count+'">',ei="",ei=ct=="New"?"<span class='DwRedCol' itemprop='itemCondition' itemscope='' itemtype='https://schema.org/OfferItemCondition'><link itemprop='url' href='https://schema.org/NewCondition'>New <\/span>":"<span class='DwNoDisplay' iitemprop='itemCondition' itemscope='' itemtype='https://schema.org/OfferItemCondition'><link itemprop='url' href='https://schema.org/UsedCondition'>Used <\/span>",i+='<b><a class="listitemlink" title="'+h+'" href="'+f+'"><span itemprop="name">'+ei+'<span id="DWVehicleYear_'+inv_count+'" itemprop="vehicleModelDate">'+InventoryList[t].Year+'<\/span><span itemprop="manufacturer"> '+InventoryList[t].Make+' <\/span><span itemprop="model">'+InventoryList[t].Model+"<\/span>",e=="list"&&(i+='<span itemprop="vehicleConfiguration" class="DwNoDisplay inv_Trim" id="inv_Trim_'+inv_count+'"> '+InventoryList[t].Trim+"<\/span>"),i+="<\/span><\/a><\/b><\/h2>",e=="list"&&(i+='<div class="divBoxIn"><div class="list-group" id="DWBasicInfo_'+inv_count+'">'+rt+wt+et+kt+b+bt+'<div class="list-group-item InvVin" id="dwInvVin_'+inv_count+'"><span class="group_item_head"><b>VIN:<\/b><\/span><br /><span itemprop="vehicleIdentificationNumber" style="padding: 0;">'+tt+'<\/span><\/div><div class="clrall"><\/div>',i+=pt,InventoryList[t].StockNo.length>0&&(i+='<div class="list-group-item InvStock" id="divStock_'+inv_count+'"><span class="group_item_head"><b>Stock #:<\/b><\/span><br /> <span itemprop="sku" style="padding: 0;">'+InventoryList[t].StockNo.toUpperCase()+'<\/span><\/div><div class="clrall"><\/div>'),i+="<\/div><\/div>"),i+='<\/div><\/td><td class="tdPriceInfo"><div class="divBox priceBox" id="priceBox_'+inv_count+'"><div class="divBoxIn"><div class="price-group">',i+=!IsMobile&&InventoryList[t].SuggSalePrice>0&&InventoryList[t].ShowPrice==!0?'<div id="divPriceContainer_'+inv_count+'" class="divPriceContainer" itemprop="offers" itemscope itemtype="http://schema.org/Offer">'+u+"<\/div>":'<div id="divPriceContainer_'+inv_count+'" class="divPriceContainer">'+u+"<\/div>",i+="<\/div>",oi=InventoryList[t].CarfaxReportURL,e=="list"&&(InventoryList[t].VehicleHistoryReport=="CarFax"&&InventoryList[t].ShowVehicleHistory&&InventoryList[t].CarfaxReportURL.length>0&&(i+='<div class="photoIconM"><a class="hint--top dwHrefCarfax" id="dwHrefCarfaxList_'+inv_count+'" name="dwHrefCarfax" href="javascript:void(0)" onclick="myPopup_
4invoked_function_carfax(\''+oi+'\')" style="border:0;"><img border="0px" style="border-width:0px" src="'+InventoryList[t].CarfaxImage+'" alt="Carfax report" class="carfax-snapshot-hover" /><span class="carfax_span">View the <br /> Free CARFAX Report<\/span><\/a><\/div>'),i+='<div class="photoIconM" id="ExtraphotoIconM_'+inv_count+'"><\/div>'),i+='<div id="divExtraPriceC_'+inv_count+'" class="divExtraPriceC normalDiv"><\/div><\/div><\/div><\/td><\/tr>',e=="grid"&&(i+='<tr class="grid_tRBasicinfo"><td class="grid_tdBasicInfo td_bascicIcons" colspan="2"><span itemprop="vehicleConfiguration" class="DwNoDisplay inv_Trim" id="inv_Trim_'+inv_count+'">'+InventoryList[t].Trim+'<\/span><\/td><\/tr><tr class="grid_tRBasicinfo"><td class="grid_tdBasicInfo td_bascicIcons" colspan="2"><div class="divBoxIn"><div class="list-group" id="DWBasicInfo_'+inv_count+'">'+kt+rt+wt+'<\/div><\/div > <\/td ><\/tr > <tr > <td class="grid_tdCarguru" >'+ut+'<\/td > <\/tr > <tr> <td class="grid_tdCarfax" colspan="2">',InventoryList[t].VehicleHistoryReport=="CarFax"&&InventoryList[t].ShowVehicleHistory&&InventoryList[t].CarfaxReportURL.length>0&&(i+='<div class="photoIconM"><a class="hint--top dwHrefCarfax" id="dwHrefCarfaxGrid_'+inv_count+'" name="dwHrefCarfax" href="javascript:void(0)" onclick="myPopup_invoked_function_carfax(\''+oi+'\')" style="border:0;"><img border="0px" style="border-width:0px" src="'+InventoryList[t].CarfaxImage+'" alt="Carfax report" class="carfax-snapshot-hover" /><span class="carfax_span">View the <br /> Free CARFAX Report<\/span><\/a><\/div>'),i+='<\/td><\/tr><tr><td class="grid_tdSiriusm" colspan="2"><div class="photoIconM" id="Extra_grid_photoIconM_'+inv_count+'"><\/div><\/td><\/tr><tr><td colspan="2" style="max-width:100%" class="grid_DivButtons"><span class="spn_ConfirmAvail btnIcons" ><a href="javascript:void(0)" onclick="getPopup_Values(\''+c+"','"+InventoryList[t].Make+"','"+InventoryList[t].Model+"','"+InventoryList[t].Year+"','"+InventoryList[t].StockNo+"','"+InventoryList[t].InternetPrice+"','"+InventoryList[t].URLEncodedEncrInvID+'\')"><span>CONFIRM AVAILABILITY <\/span><\/a><\/span><\/td><\/tr><tr><td colspan="2" style="max-width:100%" class="grid_DivButtons"><span class="spn_ApplyCredit btnIcons" ><a href="'+ht+"&Inventorys="+gt+'" ><span>APPLY CREDIT<\/span><\/a><\/span><\/td><\/tr><tr><td colspan="2" style="max-width:100%" class="grid_DivButtons"><span class="spn_VDP btnIcons" ><a title="'+h+'" href="'+f+'" ><span>VIEW DETAILS<\/span><\/a><\/span><\/td><\/tr>'),i+="<\/table>",e=="list"&&(InventoryList[t].DealersTagLine.length>0&&(i+='<div id="invSellernotes_'+inv_count+'" class="invSellernotes"><div id="DWInvDetailTagLine_'+inv_count+'" class="InvDetailTagLine" title="'+InventoryList[t].DealersTagLine+'">'+InventoryList[t].DealersTagLine+"<\/div ><\/div>"),i+='<div class="carguru_div">'+ut+'<\/div><div class="div_Buttons" id= "divButtons_'+inv_count+'" ><span class="spn_ConfirmAvail btnIcons" ><a href="javascript:void(0)" onclick="getPopup_Values(\''+c+"','"+InventoryList[t].Make+"','"+InventoryList[t].Model+"','"+InventoryList[t].Year+"','"+InventoryList[t].StockNo+"','"+InventoryList[t].InternetPrice+"','"+InventoryList[t].URLEncodedEncrInvID+'\')"><span>CONFIRM AVAILABILITY <\/span><\/a><\/span><span class="spn_ApplyCredit btnIcons" ><a href="'+ht+"&Inventorys="+gt+'" ><span>APPLY CREDIT<\/span><\/a><\/span><span class="spn_VDP btnIcons" ><a title="'+h+'" href="'+f+'" ><span>VIEW DETAILS<\/span><\/a><\/span><\/div>'),i+="<\/div><\/div > ",t%ni==ni-1&&e=="grid"&&(i+="<\/div>"),isDetail==!0&&(i+='<div class="divMobileViewOnDesk" id="divMobileViewOnDesk_'+inv_count+'" ><div id="divDWMobileContent_'+inv_count+'" class="C-F-List"><div class="item col-xs-6 col-lg-6 grid-group-item" id="InvListVhDetailM_'+inv_count+'"><div class="thumbnail"><table class="tblListInv"><tr id="trInvImgM_'+inv_count+'" class="trInvImg"><td class="tdImg" colspan="2"><a itemprop="url" title="'+p+'" href="'+f+'">',i+=lt?'<div class="stock dwStockImgBox">'+ii+"<\/div>":'<div class="dwNormalImgBox" style="height:auto">'+ii+"<\/div>",i+=yi,i+=pi,i+=wi,i+='<\/a><\/td><\/tr><tr id="trBasicInfoM_'+inv_count+'" class="trBasicInfo"><td class="tdBasicInfo_2"><div class="divBox" id="divBasicInfoM_'+inv_count+'"><h2 class="group inner list-group-item-heading txtOvrF1" id="dwitem-headingM_'+inv_count+'"><b><a class="listitemlink" title="'+h+'" href="'+f+'"><span itemprop="name">'+ei+'<span id="DWVehicleYearM_'+inv_count+'" itemprop="vehicleModelDate">'+InventoryList[t].Year+'<\/span><span itemprop="manufacturer">'+InventoryList[t].Make+'<\/span><span itemprop="model">'+InventoryList[t].Model+'<\/span><\/span><\/a><\/b><\/h2><\/div><\/td><td class="tdPriceInfo"><div class="divBox priceBox" id="priceBoxM_'+t+'"><div class="divBoxIn"><div class="price-group">',i+=!IsMobile&&InventoryList[t].SuggSalePrice>0&&InventoryList[t].ShowPrice==!0?'<div id="divPriceContainerM_'+inv_count+'" class="divPriceContainer" itemprop="offers" itemscope itemtype="http://schema.org/Offer">'+u+"<\/div>":'<div id="divPriceContainerM_'+inv_count+'" class="divPriceContainer">'+u+"<\/div>",i+='<\/div><div id="divExtraPriceCM_'+inv_count+'" class="divExtraPriceC normalDiv"><\/div><\/div><\/div><\/td><\/tr><tr class="grid_tRBasicinfo"><td class="grid_tdBasicInfo td_bascicIcons" colspan="2"><span itemprop="vehicleConfiguration" class="DwNoDisplay inv_Trim" id= "inv_TrimM_'+inv_count+'" > '+InventoryList[t].Trim+'<\/span ><\/td><\/tr > <tr class="grid_tRBasicinfo"><td class="grid_tdBasicInfo td_bascicIcons" colspan="2"><div class="divBoxIn"><div class="list-group" id="DWBasicInfoM_'+inv_count+'">'+kt+rt+wt+'<\/div><\/div><\/td><\/tr><tr > <td class="grid_tdCarguru" > '+ut+'<\/td > <\/tr > <tr > <td class="grid_tdCarfax" colspan="2">',InventoryList[t].VehicleHistoryReport=="CarFax"&&InventoryList[t].ShowVehicleHistory&&InventoryList[t].CarfaxReportURL.length>0&&(i+='<div class="photoIconM"><a class="hint--top dwHrefCarfax" id="dwHrefCarfaxListM_'+inv_count+'" name="dwHrefCarfax" href="javascript:void(0)" onclick="myPopup_
4invoked_function_carfax(\''+oi+'\')" style="border:0;"><img border="0px" style="border-width:0px" src="'+InventoryList[t].CarfaxImage+'" alt="Carfax report" class="carfax-snapshot-hover" /><span class="carfax_span">View the <br /> Free CARFAX Report<\/span><\/a><\/div>'),i+='<\/td><\/tr><tr><td class="grid_tdSiriusm" colspan="2"><div class="photoIconM" id="MobExtra_photoIconM_'+inv_count+'"><\/div><\/td><\/tr><tr><td colspan="2" style="max-width:100%" class="grid_DivButtons"><span class="spn_ConfirmAvail btnIcons" ><a href="javascript:void(0)" onclick="getPopup_Values(\''+c+"','"+InventoryList[t].Make+"','"+InventoryList[t].Model+"','"+InventoryList[t].Year+"','"+InventoryList[t].StockNo+"','"+InventoryList[t].InternetPrice+"','"+InventoryList[t].URLEncodedEncrInvID+'\')"><span>CONFIRM AVAILABILITY <\/span><\/a><\/span><\/td > <\/tr > <tr > <td colspan= "2" style= "max-width:100%" class="grid_DivButtons" ><span class="spn_ApplyCredit btnIcons" > <a href="'+ht+"&Inventorys="+gt+'" ><span>APPLY CREDIT<\/span><\/a><\/span > <\/td > <\/tr > <tr > <td colspan= "2" style= "max-width:100%" class="grid_DivButtons" > <span class="spn_VDP btnIcons" > <a title="'+h+'" href="'+f+'" ><span>VIEW DETAILS<\/span><\/a><\/span > <\/td > <\/tr > <\/table ><\/div><\/div><\/div><\/div>'),inv_count=inv_count+1;af$("products")!=null&&(af$("products").innerHTML+=i)}$("#Inv_loader").hide();function_call=!0;typeof SetExtraGridHTML!="undefined"&&typeof SetExtraGridHTML=="function"&&SetExtraGridHTML();typeof SetCustomHTMLCallback!="undefined"&&typeof SetCustomHTMLCallback=="function"&&SetCustomHTMLCallback(pageStartRow,pageEndRow)}if($(".DW_Contentbg_Theme1").length>0){for(ti=ti.split("&"),t=0;t<ti.length;t++)nr=ti[t].split("="),k=nr[0]=="vCategory"?k.toLowerCase()+"s":"cars";for(w=window.location.search.substring(1),w=w.split("&"),e=InventoryView,t=0;w.length>1;t++)w=w[t].split("="),ou=GetAllQueryStringExcept,w[0]=="grid"?e="grid":w[0]=="list"&&(e="list");if(InventoryList=null,i="",n!=null&&n.InvPageList!=null){for(InventoryList=n.InvPageList,objDWInventoryList.InvPageList=objDWInventoryList.InvPageList.concat(InventoryList),ht!=null&&gi==""&&(ht+="?IsGeneric=0&IsFinance=1"),OverlayimgUrl.length>0&&(yr="<div class='dwInvHTMLOverlay cssoverlay' style='background-image: url("+OverlayimgUrl+")'> <\/div>",pr="<div class='dwInvHTMLOverlay cssoverlay' style='background-image: url("+OverlayimgUrl+")'> <\/div>"),su=lu.indexOf(","+DWDealerID.toString()+",")?!0:!1,t=0;t<InventoryList.length;++t)ObjInventoryLots!=null&&(v=ObjInventoryLots.filter(function(n){return n.Id=InventoryList[t].LotId})),v!=null&&(v[0].Contact!=null&&trim(v[0].Contact.Name)!=null&&(hi=v[0].Contact.Name),trim(v[0].Contact.Phone)!=null&&(ot=formatPhone(v[0].Contact.Phone)),v[0].Contact.Address!=null&&(trim(v[0].Contact.Address.City)!=null&&(r=v[0].Contact.Address.City),trim(v[0].Contact.Address.State)!=null&&(s=v[0].Contact.Address.State),trim(v[0].Contact.Address.StateFull)!=null&&(st=v[0].Contact.Address.StateFull),trim(v[0].Contact.Address.Zip)!=null&&(iu=v[0].Contact.Address.Zip),trim(v[0].Contact.Address.County)!=null&&(nt=v[0].Contact.Address.County))),InventoryList[t].NewOrUsed==!0?(ct="New",p=ct+" "+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" in "+r+", "+st+" | "+hi+". "+r+", "+st):(ct="Used",p=ct+" "+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" in "+r+", "+st+" | "+hi+". "+r+", "+st),vr=AFAppConfigSettings_SeverNoimgPath+DWDealerID+"_noimage.png",gt=encodeURIComponent(InventoryList[t].EncryptedInvID)+"ÃTrue",AFAppConfigSettings_SeverNoimgPath!=null&&(ui=AFAppConfigSettings_NoimgPath+"/"+DWDealerID+"_noimage.png"),c=InventoryList[t].ImagePath,c.indexOf("stockPhotos")>0?(lt=!0,at="dwstock",vt="dwInvStockOverlay",yt="/1/images/InvnoImage/noimage_stock.jpg"):c.indexOf("noimage")>0?(lt=!1,at="dwnoimage",vt="dwInvStockOverlayHide",ui.length>0&&(c=ui),yt="/1/images/InvnoImage/noimage.jpg"):(lt=!1,at="dwnormal",vt="dwInvStockOverlayHide",yt="/1/images/InvnoImage/noimage.jpg"),InventoryList[t].DealId>
4-2&&n.InvMinMax.ShowAsSold?(d="dwInvSoldimgBlock_L",ft="dwInvSoldimgBlock",vi=!0,strAvailability="Out of stock",strStockStatus="http://schema.org/OutOfStock"):(d="dwInvSoldimgNone_L",ft="dwInvSoldimgNone",strAvailability="In stock",strStockStatus="http://schema.org/InStock"),InventoryList[t].LotId==ru?(d="dwInvSoldimgBlock_L",ft="dwInvSoldimgBlock",vi=!0):InventoryList[t].LotId==uu?(d="dwInvPendingimg_L",ft="dwInvPendingimg"):InventoryList[t].LotId==fu&&(d="dwInvComingimg_L",ft="dwInvComingimg"),yi="<div class='"+d+" cssoverlay' id='dwSoldInvWaterMark_"+inv_count+"' role='img' aria-label='sold overlay'> <\/div>",or="<div class='"+d+" cssoverlay' id='MdwSoldInvWaterMark_"+inv_count+"' role='img' aria-label='sold overlay'> <\/div>",pi="<div class='"+vt+" cssoverlay' id='dwStockInvImgWaterMark_"+inv_count+"' role='img' aria-label='stock overlay'> <\/div>",sr="<div class='"+vt+" cssoverlay' id='MdwStockInvImgWaterMark_"+inv_count+"' role='img' aria-label='stock overlay'> <\/div>",wi="<div class='CssClassCustomOverlay cssoverlay' id='dwCustomImgOverlay_"+inv_count+"' role='img' aria-label='custom overlay'><\/div>",hr="<div class='CssClassCustomOverlay cssoverlay' id='MdwCustomImgOverlay_"+inv_count+"' role='img' aria-label='custom overlay'><\/div>",ii="<img itemprop='image' content='"+c+"' id='DwInvListImage_"+inv_count+"' title='"+p+"' alt='"+p+"' class='group list-group-image DwInvImage "+at+"' src='"+c+"' onerror='this.onerror=null;this.src=\""+yt+"\"' />",tr="<img itemprop='image' content='"+c+"' id='MDwInvListImage_"+inv_count+"' title='"+p+"' alt='"+p+"' class='group list-group-image "+at+"' src='"+c+"' onerror='this.onerror=null;this.src=\""+yt+"\"' />",g=InventoryList[t].ImageCount,g==1?g+=" photo":g>1?g+=" photos":g="Stock image",tt="",lr="",eu==!1&&InventoryList[t].Vin!=""&&(tt=InventoryList[t].Vin,lr="<li class='list-group-item InvVin' id='dwInvVin_"+inv_count+"'><span><b>VIN:<\/b> <span itemprop='vehicleIdentificationNumber' class='dw-p0'>"+tt+"<\/span><\/span><\/li><li class='clrall'><\/li>"),cr="",ar="",InventoryList[t].KeyTagNumber!=""&&(cr=InventoryList[t].KeyTagNumber,ar="<li class='list-group-item KeyTagNumber-item' id='dwInvKeyTagNumber_"+inv_count+"'><span><b>Key Tag:<\/b> <span style='padding:0;'>"+cr+"<\/span><\/span><\/li><li class='clrall'><\/li>"),SaleType=="S"?InventoryList[t].NewOrUsed==!0?(f=window.location.protocol+"//"+window.location.host+"/"+InventoryList[t].Year+"-"+Hyphenize(InventoryList[t].Make)+"-"+Hyphenize(InventoryList[t].Model)+"-"+Hyphenize(r)+"-"+s+GetRegionsAndCounty(nt).replace(/\//g,"-")+"/new_"+k.replace("s","")+"/"+InventoryList[t].URLEncodedEncrInvID,h="New "+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" for sale in "+r+", "+s):(f=window.location.protocol+"//"+window.location.host+"/"+InventoryList[t].Year+"-"+Hyphenize(InventoryList[t].Make)+"-"+Hyphenize(InventoryList[t].Model)+"-"+Hyphenize(r)+"-"+s+GetRegionsAndCounty(nt).replace(/\//g,"-")+"/used_"+k.replace("s","")+"/"+InventoryList[t].URLEncodedEncrInvID,h="Used "+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" for sale in "+r+", "+s):SaleType=="L"?(f=window.location.protocol+"//"+window.location.host+"/"+InventoryList[t].Year+"-"+Hyphenize(InventoryList[t].Make)+"-"+Hyphenize(InventoryList[t].Model)+"-"+Hyphenize(r)+"-"+s+GetRegionsAndCounty(nt).replace(/\//g,"-")+"/"+k.replace("s","")+"_leasing/"+InventoryList[t].URLEncodedEncrInvID,h=""+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" for lease in "+r+", "+s):SaleType=="R"?(f=window.location.protocol+"//"+window.location.host+"/"+InventoryList[t].Year+"-"+Hyphenize(InventoryList[t].Make)+"-"+Hyphenize(InventoryList[t].Model)+"-"+Hyphenize(r)+"-"+s+GetRegionsAndCounty(nt).replace(/\//g,"-")+"/"+k.replace("s","")+"_rentals/"+InventoryList[t].URLEncodedEncrInvID,h=""+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" for rent in "+r+", "+s):(f=window.location.protocol+"//"+window.location.host+"/"+InventoryList[t].Year+"-"+Hyphenize(InventoryList[t].Make)+"-"+Hyphenize(InventoryList[t].Model)+"-"+Hyphenize(r)+"-"+s+GetRegionsAndCounty(nt).replace(/\//g,"-")+"/used_"+k.replace("s","")+"/"+InventoryList[t].URLEncodedEncrInvID,h="Used "+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" for sale in "+r+", "+s),cu=new URLSearchParams(window.location.search),tu=cu.get("status"),tu!==null&&tu=="-1"&&DWDealerID==215&&(f=f.replace("/used_car/","/all_car/").replace("/new_car/","/all_car/")),h=h.replace(/"/g,"""),it="",InventoryList[t].CylindersDesc!=""?it=InventoryList[t].CylindersDesc:InventoryList[t].Cylinders!=""&&(it=InventoryList[t].Cylinders+" Cyl."),et="",(it!=""||InventoryList[t].EngineSize!="")&&(et="<li class='list-group-item InvEnginetype'><span><b>Engine:<\/b> ",et+="<span itemprop='vehicleEngine' class='dw-p0'>"+InventoryList[t].EngineSize.replace(/Liter/g,"L")+(InventoryList[t].EngineSize.length>0?" ":"")+it+"<\/span>",et+="<\/span><\/li><li class='clrall'><\/li>"),rt="",InventoryList[t].DriveTrain!=null&&(rt="<li class='list-group-item drivetrain-item'><span><b>Drivetrain:<\/b> ",rt+="<span itemprop='driveWheelConfiguration' class='dw-p0'>"+GetDrivetrainFullForm(InventoryList[t].DriveTrain)+"<\/span>",rt+="<\/span><\/li><li class='clrall'><\/li>"),pt="",InventoryList[t].TitleType!=""&&DWDealerID==3506&&(pt="<div class='list-group-item titletype-item'><span class='group_item_head'><b>Title Type:<\/b> <\/span><br />",pt+="<spanstyle='padding: 0;'>"+InventoryList[t].TitleType+"<\/span>",pt+='<li class="clrall"><\/li>'),wt="",InventoryList[t].Transmission!=""&&(wt='<li class="list-group-item InvTransmissiontype"><span><b>Transmission:<\/b> <span itemprop="vehicleTransmission" class="dw-p0">'+InventoryList[t].Transmission+'<\/span><\/span><\/li><li class="clrall"><\/li>'),b="",InventoryList[t].ExteriorColorFactory!=""?(b="<li class='list-group-item InvExteriorcolor' id='dwInvExterior_"+inv_count+"'><span><b>Exterior Color:<\/b> ",b+="<span itemprop='color' class='dw-p0'>"+InventoryList[t].ExteriorColorFactory+"<\/span>",b+="<\/span><\/li><li class='clrall'><\/li>"):(b="<li class='list-group-item InvExteriorcolor' id='dwInvExterior_"+inv_count+"'><span><b>Exterior Color:<\/b> ",b+="<span itemprop='color' class='dw-p0'>"+InventoryList[t].ExteriorColor+"<\/span>",b+="<\/span><\/li><li class='clrall'><\/li>"),bt="",(InventoryList[t].InteriorColor!=""||InventoryList[t].InteriorMaterial!="")&&(bt="<li class='list-group-item InvInteriorcolor' id='dwInvInterior_"+inv_count+"'><span><b>Interior:<\/b> ",bt+="<span itemprop='vehicleInteriorColor' class='dw-p0'>"+InventoryList[t].InteriorColor+" "+InventoryList[t].InteriorMaterial+"<\/span>",bt+="<\/span><\/li><li class='clrall'><\/li>"),kt="",InventoryList[t].Miles!=""&&(si=InventoryList[t].TrueMileageFlag==!0?"<span class='dw-truemlg'>* (true mileage unknown)<\/span>":"",kt='<li class="list-group-item mileage" id="dwInvMiles_'+inv_count+'"><span><b>Mileage:<\/b> <span itemprop="mileageFromOdometer" class="dw-p0">
4'+formatNum(InventoryList[t].Miles).replace(".00","").replace(" ","")+"miles<\/span>"+si+'<\/span><\/li><li class="clrall"><\/li>'),bi="",InventoryList[t].VideoUrl!=""&&(InventoryList[t].VideoUrl.length>0&&InventoryList[t].VideoUrl.includes("youtube.com/watch")&&(li=InventoryList[t].VideoUrl.split("="),li.length>1&&(wr=li[1].indexOf("&"),wr>-1&&(li[1]=li[1].substring(0,wr)),InventoryList[t].VideoUrl="<iframe width='960' height='540' src='https://www.youtube.com/embed/"+li[1]+"' frameborder='0' allowfullscreen><\/iframe>",InventoryList[t].UrlType="EMB")),bi=(InventoryList[t].UrlType="EMB"||InventoryList[t].UrlType=="URL")||InventoryList[t].VideoUrl.indexOf("AFVideo.swf")!=-1&&!InventoryList[t].HasYouTubeSubscription?"<div id='dwVideo_"+inv_count+"' class='photoIcon videoicon'><a id='lnkVideo_"+inv_count+"' href='javascript:void(0)' onclick='myPopup_myPopup_DealerWebVideo_start("+inv_count+");' class='hint--top'><i class='fa fa-video-camera ClBtn'><\/i><\/a><\/div>":"<div id='dwVideo_"+inv_count+"' class='photoIcon videoicon'><a id='lnkVideo_"+inv_count+"' href='javascript:void(0)' onclick='myPopup_AFDealerWebVideo_start("+inv_count+");' class='hint--top'><i class='fa fa-video-camera ClBtn'><\/i><\/a><\/div>"),InventoryList[t].UrlImage360!=""&&su==!0&&(ki="<div class='photoIconM c-pointer dwUrlImage360' id='dwUrlImage360_"+t+"'> <img src='/2/images/360view.gif' onclick='myPopup_DealerUrlImage360_start("+inv_count+")' alt='360° view' title='360° view'/><\/div>"),y=formatNum(InventoryList[t].SuggSalePrice).replace(".00","").replace(" ",""),ri="0.00",l=formatNum(InventoryList[t].SuggSalePrice).replace(".00","").replace(" ",""),u="",o="",ut="",fi=0,di=0,HidePrices==!1?(InventoryList[t].SuggSalePrice>0&&InventoryList[t].ShowPrice==!0?(InventoryList[t].SuggSalePrice_Negotiable==!0&&(y+="/OBO"),ri=InventoryList[t].SuggSalePrice,ai="<span class='DWInvPriceSpan' id='MDWInvPriceSpan_"+inv_count+"'>$"+l+"<\/span>",IsMobile?(y="<div class='pricetag'><div class='inv-price DWInvListPriceSpan' id='DWInvPriceSpan_"+inv_count+"' >$"+y+"<\/div><\/div>",l="<span id='MDWInvPriceSpan_"+inv_count+"' class='DWPriceIP' itemscope='' itemprop='priceSpecification' itemtype='http://schema.org/UnitPriceSpecification'><span class='DwNoDisplay' itemprop='name' content='Internet Price'><\/span><span itemprop='priceCurrency' content='USD'>$<\/span><span itemprop='price' content='"+InventoryList[t].SuggSalePrice+"'>"+l+"<\/span><\/span>"):(y="<div class='pricetag'><div class='inv-price DWInvListPriceSpan' id='DWInvPriceSpan_"+inv_count+"' itemscope='' itemprop='priceSpecification' itemtype='http://schema.org/UnitPriceSpecification'><span class='DwNoDisplay' itemprop='name' content='Internet Price'><\/span><span itemprop='priceCurrency' content='USD'>$<\/span><span itemprop='price' content='"+InventoryList[t].SuggSalePrice+"'>"+y+"<\/span><\/div><\/div>",l="<span id='MDWInvPriceSpan_"+inv_count+"' class='DWPriceIP'>$"+l+"<\/span>"),ut="<span class='cargurudiv'><span data-cg-vin='"+tt+"' data-cg-price='"+InventoryList[t].SuggSalePrice+"'><\/span><\/span>",InventoryList[t].ReducedPrice>0&&InventoryList[t].ReducedPrice<InventoryList[t].SuggSalePrice?(ci=formatNum(InventoryList[t].ReducedPrice).replace(".00","").replace(" ",""),ri=InventoryList[t].ReducedPrice,nu="<div id='DWInvPriceSpec_"+inv_count+"' itemscope='' itemprop='priceSpecification' itemtype='http://schema.org/CompoundPriceSpecification'>",ut="<span class='cargurudiv'><span data-cg-vin='"+tt+"' data-cg-price='"+InventoryList[t].ReducedPrice+"'><\/span><\/span>",IsMobile?(u+="<div class='invv-priceStrike'>"+y+"<\/div>",u+="<div class='pricetag'><p id='DwInvPriceReducedNowOnly_"+inv_count+"' class='NowOnlyText'> Now Only<\/p><div class='internet-price iRprice' id='DwInvPriceReducedPrice_"+inv_count+"'> $"+ci+"<\/div><\/div>",l=l.replace("priceSpecification","priceComponent"),o+=nu+"<span class='DWStrikePrice'>"+l+"<\/span>",o+="<span id='MDwInvPriceReducedPrice_"+inv_count+"' class='DWPriceIR' itemscope='' itemprop='priceComponent' itemtype='http://schema.org/UnitPriceSpecification'> <span class='DwNoDisplay' itemprop='name' content='Reduced Price'><\/span><span itemprop='priceCurrency' content='USD'>$<\/span><span itemprop='price' content='"+InventoryList[t].ReducedPrice+"'>"+ci+"<\/span><\/span>",o+="<span class='DwNoDisplay' itemprop='priceCurrency' content='USD'><\/span><span class='DwNoDisplay' itemprop='price' content='"+InventoryList[t].ReducedPrice+"'><\/span>"):(y=y.replace("priceSpecification","priceComponent"),u+=nu+"<div class='invv-priceStrike'>"+y+"<\/div>",u+="<div class='pricetag'><p id='DwInvPriceReducedNowOnly_"+inv_count+"' class='NowOnlyText'> Now Only<\/p><div class='internet-price iRprice' id='DwInvPriceReducedPrice_"+inv_count+"' itemscope='' itemprop='priceComponent' itemtype='http://schema.org/UnitPriceSpecification'> <span class='DwNoDisplay' itemprop='name' content='Reduced Price'><\/span><span itemprop='priceCurrency' content='USD'>$<\/span><span itemprop='price' content='"+InventoryList[t].ReducedPrice+"'>"+ci+"<\/span><\/div><\/div><span class='DwNoDisplay' itemprop='priceCurrency' content='USD'><\/span><span class='DwNoDisplay' itemprop='price' content='"+InventoryList[t].ReducedPrice+"'><\/span>",o+="<span class='DWStrikePrice'>"+l+"<\/span>",o+="<span id='MDwInvPriceReducedPrice_"+inv_count+"' class='DWPriceIR'> $"+ci+"<\/span>"),fi+=1,dt+="<div class='dw-center'> <div id='MDwInvPriceLineThrough_"+inv_count+"' class='DwInvPriceLineThrough'>"+ai+"<\/div><table role='presentation' id='tblMDwInvPriceReducedPrice_"+inv_count+"' cellpadding='0' cellspacing='0' border='0'><tr><td class='inv_pay2'><div id='MDwInvPriceReducedPrice_"+inv_count+"' class='DwInvPriceReducedPrice'>$"+ci+"<\/div><\/td><\/tr><\/table><\/div>
4"):(u=y.replace("inv-price","inv-price internet-price"),o=l,dt=ai)):(InventoryList[t].ShowPayment==!1||InventoryList[t].PaymentPrice<1||InventoryList[t].SuggSalePrice<1||InventoryList[t].ShowPrice==!1)&&(u="<div class='pricetag'><div class='callnowprice' id='DWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE!<br/><a href='tel:"+unFormatPhone(ot)+"'>"+ot+"<\/a><\/div><\/div>",o="<span class='DWPriceCall' id='MDWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE! <a href='tel:"+unFormatPhone(ot)+"'>"+ot+"<\/a><\/span>",dt="<div class='inv_pay' id='MDWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE<\/div>"),InventoryList[t].PaymentPrice>0&&InventoryList[t].ShowPayment==!0&&(IsMobile?(u+="<div class='pricetag'><div class='monthly-Ins' id='DwInvPricepayment_"+inv_count+"'> $"+formatNum(InventoryList[t].PaymentPrice).replace(".00","").replace(" ","")+" <span id='DwInvPricepaymentFreq_"+inv_count+"'>"+InventoryList[t].PaymentFrequency+"<\/span><\/div>",o+=" <span class='DWPayment' id='MDwInvPricepayment_"+inv_count+"' itemscope='' itemprop='priceComponent' itemtype='http://schema.org/UnitPriceSpecification'><span itemprop='priceCurrency' content='USD'>$<\/span><span itemprop='price' content='"+InventoryList[t].PaymentPrice+"'>"+formatNum(InventoryList[t].PaymentPrice).replace(".00","").replace(" ","")+"<\/span><span class='VB-specials1' id='MDwInvPricepaymentFreq_"+inv_count+"' itemprop='unitText'> "+InventoryList[t].PaymentFrequency+"<\/span><\/span>",fi<=0&&(o=o.replace("priceSpecification","priceComponent"),o="<div itemscope='' id='DWInvPriceSpec_"+inv_count+"' itemprop='priceSpecification' itemtype='http://schema.org/CompoundPriceSpecification'>"+o+"<span class='DwNoDisplay' itemprop='priceCurrency' content='USD'><\/span><span class='DwNoDisplay' itemprop='price' content='"+InventoryList[t].SuggSalePrice+"'><\/span>"),o+="<\/div>"):(u+="<div class='pricetag'><div class='monthly-Ins' id='DwInvPricepayment_"+inv_count+"' itemscope='' itemprop='priceComponent' itemtype='http://schema.org/UnitPriceSpecification'> <span itemprop='priceCurrency' content='USD'>$<\/span><span itemprop='price' content='"+InventoryList[t].PaymentPrice+"'>"+formatNum(InventoryList[t].PaymentPrice).replace(".00","").replace(" ","")+"<\/span><span id='DwInvPricepaymentFreq_"+inv_count+"' itemprop='unitText'> "+InventoryList[t].PaymentFrequency+"<\/span><\/div>",fi<=0&&(u=u.replace("priceSpecification","priceComponent"),u="<div itemscope='' id='DWInvPriceSpec_"+inv_count+"' itemprop='priceSpecification' itemtype='http://schema.org/CompoundPriceSpecification'>"+u+"<span class='DwNoDisplay' itemprop='priceCurrency' content='USD'><\/span><span class='DwNoDisplay' itemprop='price' content='"+InventoryList[t].SuggSalePrice+"'><\/span>"),u+="<\/div>",o+=" <span class='DWPayment' id='MDwInvPricepayment_"+inv_count+"'>$"+formatNum(InventoryList[t].PaymentPrice).replace(".00","").replace(" ","")+"<span class='VB-specials1' id='MDwInvPricepaymentFreq_"+inv_count+"'> "+InventoryList[t].PaymentFrequency+"<\/span><\/span>"),di+=1,dt+="<div class='DwPaymentFreq' id='MDwPaymentFreq_"+inv_count+"' >$"+formatNum(InventoryList[t].PaymentPrice).replace(".00","").replace(" ","")+" "+InventoryList[t].PaymentFrequency+"<\/div>",vi==!1&&ht.length>0&&(u+="<div class='DWDetailsPriceFinLink FinaceLnk1' id='DWDetailsPriceFinLink_"+inv_count+"'><a class='dwHrefPaymentPrice btnwrap' id='dwHrefPaymentPrice_"+inv_count+"' href='javascript:void(0)' onkeydown='fireOnClickEvent(this,event)' onclick='openFinancePage('"+ht+"','"+gi+"','"+gt+"')' aria-label='Finance this vehicle' role='button'><i class='fa fa-money fa-info3'><\/i>Finance this vehicle<\/a><\/div>",u+="<div class='DWDetailsPriceFinLink FinaceLnk2' id='DWDetailsPriceFinLink2_"+inv_count+"'><a class='dwHrefPaymentPriceLnk' id='dwHrefPaymentPrice2_"+inv_count+"' href='javascript:void(0)' onkeydown='fireOnClickEvent(this,event)' onclick='openFinancePage('"+ht+"','"+gi+"','"+gt+"')' aria-label='Finance this vehicle' role='button'>Finance this vehicle<\/a><\/div>"),u+="<\/div>"),fi>0&&di<=0&&(IsMobile?o+="<\/div>":u+="<\/div>")):(u="<div class='pricetag'><div class='callnowprice' id='DWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE!<br/><a href='tel:"+unFormatPhone(ot)+"'>"+ot+"<\/a><\/div><\/div>",o="<span class='DWPriceCall' id='MDWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE! <a href='tel:"+unFormatPhone(ot)+"'>"+ot+"<\/a><\/span>",dt="<div class='inv_pay' id='MDWDetailsNoPrice_"+inv_count+"'>CALL FOR PRICE<\/div>"),i+='<input type="hidden" id="hdnFlink_'+inv_count+'" value="'+gt+'" />',i+='<div class="invItems item col-xs-6 col-lg-6 '+e+'-group-item" id="InvListVhDetail_'+inv_count+'" itemscope itemtype="http://schema.org/Vehicle"><div class="thumbnail" >',InventoryList[t].SpecialComments!=""&&(i+='<h3 id="InvSpecialComments_'+inv_count+'" class="InvSpecialComments">'+InventoryList[t].SpecialComments.replace("<","<").replace(">",">")+"<\/h3>"),i+='<h2 class="group inner list-group-item-heading txtOvrF" id="dwitem-heading_'+inv_count+'">',ct=="New"?(ei="<span class='DwRedCol' itemprop='itemCondition' itemscope='' itemtype='https://schema.org/OfferItemCondition'><link itemprop='url' href='https://schema.org/NewCondition'>New <\/span>",ir="<span class='DwRedCol'>New <\/span>"):(ei="<span class='DwNoDisplay' iitemprop='itemCondition' itemscope='' itemtype='https://schema.org/OfferItemCondition'><link itemprop='url' href='https://schema.org/UsedCondition'>Used <\/span>",ir="<span class='DwNoDisplay'>Used <\/span>"),i+='<b><a class="listitemlink" id="dwlistitemlink_'+inv_count+'" title="'+h+'" href="'+f+'"><span itemprop="name">'+ei+'<span id="DWVehicleYear_'+inv_count+'" itemprop="vehicleModelDate">'+InventoryList[t].Year+'<\/span><span id="DWVehicleMake_'+inv_count+'" itemprop="manufacturer"> '+InventoryList[t].Make+' <\/span><span id="DWVehicleModel_'+inv_count+'" itemprop="model">'+InventoryList[t].Model+'<\/span><span id="DWVehicleTrim_'+inv_count+'" itemprop="vehicleConfiguration">'+InventoryList[t].Trim+'<\/span><\/span><\/a><span class="dw-none" itemprop="brand" itemtype="https://schema.org/Brand" itemscope><meta itemprop="name" content="'+InventoryList[t].Make+'" /><\/span><span class="dw-none" itemprop="description">'+h+"<\/span><\/b><\/h2>",i+='<table class="tblListInv" role="presentation"><tr><td class="tdImg"',i+=e=="grid"?"colspan='2'>":">",i+='<a id="dwtdlistitem_'+inv_count+'" title="'+p+'" href="'+f+'">',i+=lt?'<div class="stock dwStockImgBox">'+ii+yr+"<\/div>":'<div class="dwNormalImgBox">'+ii+yr+"<\/div>",i+=yi,i+=pi,i+=wi,i+="<\/a>",i+="<\/td>",oi=InventoryList[t].CarfaxReportURL,hu=InventoryList[t].CarfaxImage,rr="",rr=hu.indexOf("showme.svg")>0?"dw-carfax-lg-"+e:"dw-carfax-sm-"+e,e=="grid"&&(i+='<\/tr>
4<tr class="DWtdiconsGrid" id="trGridIcons_'+inv_count+'"><td colspan="2" class="DWtdiconsGrid" id="DWtdiconsGrid_'+inv_count+'"><div class="photoIcon"><a href="javascript:void(0)" onkeydown="fireOnClickEvent(this,event)" onclick="myPopup_AFDealerWebPhotostart('+inv_count+')" class="hint--top" data-hint="'+g+'" aria-label="View photos" role="button"><i class="fa fa-camera ClBtn"><\/i><\/a><\/div>'+bi+ki+'<div class="photoIconExtraGrid" id="photoIconExtraGrid_'+inv_count+'"><\/div>',InventoryList[t].VehicleHistoryReport=="CarFax"&&InventoryList[t].ShowVehicleHistory&&InventoryList[t].CarfaxReportURL.length>0?i+='<div class="photoIconM" id="dwcarfaxIcon_'+inv_count+'"><a class="hint--top dwHrefCarfax" id="dwHrefCarfaxGrid_'+inv_count+'" href="javascript:void(0)" onkeydown="fireOnClickEvent(this,event)" onclick="myPopup_invoked_function_carfax(\''+oi+'\')" style="border:0;"><img border="0px" style="border-width:0px" src="'+InventoryList[t].CarfaxImage+'" alt="Carfax report" class="carfax-snapshot-hover '+rr+'" /><\/a><\/div>':InventoryList[t].VehicleHistoryReport=="AutoCheck"&&InventoryList[t].ShowVehicleHistory&&(i+='<div class="photoIconM"><a class="hint--top dwHrefAutoCheck" data-hint=" AutoCheck Vehicle History Report " href="javascript:void(0)" onkeydown="fireOnClickEvent(this,event)" onclick="myPopup_invoked_function_carfax(/1/common/AutoCheck.aspx?vin='+tt+"&inventoryid="+InventoryList[t].URLEncodedEncrInvID+')" ><img src="/1/images/autocheck.png" alt="AutoCheck" title="AutoCheck"/><\/a><\/div>'),InventoryList[t].Certified=="Yes"&&(i+='<div class="DWCertified" id="Grid_DWCertified_'+inv_count+'"><img alt="Certified" title="Certified" src="/1/images/certified.png" /><\/div>'),i+="<\/td><\/tr><tr>"),i+='<td class="tdBasicInfo"><div class="divBox" id="divBasicInfo_'+inv_count+'"><div class="divBoxIn"><ul class="list-group" id="DWBasicInfo_'+inv_count+'">'+kt+et+wt+rt+b+bt+lr+ar+pt+'<\/ul><\/div><\/div><\/td><td class="tdPriceInfo"><div class="divBox priceBox" id="priceBox_'+inv_count+'"><div class="divBoxIn"><div class="price-group">',i+=InventoryList[t].StockNo.length>0?'<div class="divStock" id="divStock_'+inv_count+'">Stock # <span itemprop="sku">'+InventoryList[t].StockNo.toUpperCase()+"<\/span><\/div>":'<span itemprop="sku" class="dw-none">'+InventoryList[t].Vin.substring(InventoryList[t].Vin.Length-6)+"<\/span>",i+=!IsMobile&&InventoryList[t].SuggSalePrice>0&&InventoryList[t].ShowPrice==!0&&HidePrices==!1?'<div id="divPriceContainer_'+inv_count+'" class="divPriceContainer" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><span class="dw-none" itemprop="priceCurrency" content="USD">$<\/span><span class="dw-none" itemprop="price" content="'+ri+'">'+ri+'<\/span><span class="dw-none"><link itemprop="url" href="'+f+'" /><\/span><span class="dw-none"> <link itemprop="availability" href="'+strStockStatus+'">'+strAvailability+"<\/span>"+u+ut+"<\/div>":'<div id="divPriceContainer_'+inv_count+'" class="divPriceContainer" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><span class="dw-none" itemprop="priceCurrency" content="USD">$<\/span><span class="dw-none" itemprop="price" content="'+ri+'">'+ri+'<\/span><span class="dw-none"><link itemprop="url" href="'+f+'" />'+f+'<\/span><span class="dw-none"> <link itemprop="availability" href="'+strStockStatus+'">'+strAvailability+'<\/span><div class="DwNoDisplay" itemscope="" itemprop="priceSpecification" itemtype="http://schema.org/UnitPriceSpecification"><span itemprop="name" content="Internet Price"><\/span><span itemprop="priceCurrency" content="USD">$<\/span><span itemprop="price" content="0">0<\/span><\/div>'+u+ut+"<\/div>",i+="<\/div>",ur="",br="",InventoryList[t].PaymentComments.length>0&&InventoryList[t].ShowPayment==!0&&InventoryList[t].PaymentPrice>0&&(br=InventoryList[t].PaymentComments.length>100?InventoryList[t].PaymentComments.substring(0,100)+('.... <a href="javascript:void(0)" class="hint--top-left hint--large dwHrefFinanceDisclosure" role="button" data-hint="'+InventoryList[t].PaymentComments.replace(/"/g,""")+'" >More»<\/a>'):InventoryList[t].PaymentComments,ur+='<p class="FinaceC" id="FinaceC_'+inv_count+'">"'+br+"<\/p>",ur+='<p class="FinaceC1" id="FinaceC1_'+inv_count+'"><a href=""javascript:void(0)"" class="hint--top-left hint--large dw
4HrefFinanceDisclosure" data-hint="'+InventoryList[t].PaymentComments.replace(/"/g,""")+'">View disclosure for financing<\/a><\/p>'),i+=ur,i+='<div id="divExtraPriceC_'+inv_count+'" class="divExtraPriceC normalDiv"><\/div>',i+="<\/div><\/div><\/td><\/tr>",e=="list"&&(i+='<tr><td colspan="3" class="tdicons" id="DWtdicons_'+inv_count+'"><div class="photoIcon" id="DWtdiconsInner_'+inv_count+'"><a href="javascript:void(0)" onkeydown="fireOnClickEvent(this, event)" onclick="myPopup_AFDealerWebPhotostart('+inv_count+')" class="hint--top" data-hint="'+g+'" aria-label="View photos" role="button"><i class="fa fa-camera ClBtn"><\/i><\/a><\/div>'+bi+ki,InventoryList[t].Certified=="Yes"&&(i+='<div class="DWCertified" id="DWCertified_'+inv_count+'"><img alt="Certified" title="Certified" src="/1/images/certified.png" /><\/div>'),InventoryList[t].VehicleHistoryReport=="CarFax"&&InventoryList[t].ShowVehicleHistory&&InventoryList[t].CarfaxReportURL.length>0?i+='<div class="photoIconM" ><a class="hint--top dwHrefCarfax" id="dwHrefCarfaxList_'+inv_count+'" href="javascript:void(0)" onkeydown="fireOnClickEvent(this,event)" onclick="myPopup_invoked_function_carfax(\''+oi+'\')"><img src="'+InventoryList[t].CarfaxImage+'" alt="Carfax report" title="Carfax report" class="carfax-snapshot-hover '+rr+'" data-vin="" data-partner="" data-key="" /><\/a><\/div>':InventoryList[t].VehicleHistoryReport=="AutoCheck"&&InventoryList[t].ShowVehicleHistory&&(i+='<div class="photoIconM"><a class="hint--top dwHrefAutoCheck" data-hint=" AutoCheck Vehicle History Report " href="javascript:void(0)" onkeydown="fireOnClickEvent(this,event)" onclick="myPopup_invoked_function_carfax(/1/common/AutoCheck.aspx?vin='+tt+"&inventoryid="+InventoryList[t].URLEncodedEncrInvID+')" ><img src="/1/images/autocheck.png" alt="AutoCheck" title="AutoCheck"/><\/a><\/div>'),i+=eu==!1&&InventoryList[t].Vin!=""?'<div class="Inv_UnityMediaVendor" id="uwm_'+tt+'" title="dialog"><\/div>':'<div class="Inv_UnityMediaVendor" title="dialog"><\/div>',i+='<div class="les_video" data-les_vin="'+tt+'" ><\/div>',i+="<\/td><\/tr>"),i+="<\/table>",i+="<\/div>",i+="<\/div>",isDetail==!0&&(i+='<div class="divMobileViewOnDesk" id="divMobileViewOnDesk_'+inv_count+'" >',enginesMob="",(it!=""||InventoryList[t].EngineSize!="")&&(enginesMob=InventoryList[t].EngineSize.replace("Liter","L"),InventoryList[t].EngineSize.length>0&&(enginesMob+=" "+it)),dr="",dr=InventoryList[t].ExteriorColorFactory!=""?InventoryList[t].ExteriorColorFactory:InventoryList[t].ExteriorColor,gr="",(InventoryList[t].InteriorColor!=""||InventoryList[t].InteriorMaterial!="")&&(gr=InventoryList[t].InteriorColor+" "+InventoryList[t].InteriorMaterial),si=InventoryList[t].TrueMileageFlag==!0?"<span class='dw-truemlg'>* (true mileage unknown)<\/span>":"",er==3||er==4||er==5?(i+='<div id="divDWMobileContent_'+inv_count+'" class="C-F-List"><a title="'+h+'" href="'+f+'">',fr="",fr=inv_count%2>0?"DwRowAlt":"DwRow",inv_count==objDWInventoryList.InvPageList.length-1&&(fr+=" DwLastRow"),i+='<div id="DWMobileContentInventory_'+inv_count+'" class="DWMobileContentInventory '+fr+'"><input class="dwBoxInvLot" id="MdwBoxInvLot_'+inv_count+'" type="hidden" value="'+InventoryList[t].LotId+'"><table class="tblInvList" role="presentation"><tr><td colspan="2" class="invHeadTD" id="MinvHeadTD_'+inv_count+'"><h2 class="invHead txtOvrF2">'+ir+InventoryList[t].Year+" "+InventoryList[t].Make+" "+InventoryList[t].Model+" "+InventoryList[t].Trim+'<\/h2><\/td><\/tr><tr><td class="tdimg" id="Mtdimg_'+inv_count+'"><div class="'+ft+'" id="MdwSoldInvWaterMark_'+inv_count+'"> <\/div><img id="MDwInvListImage_'+inv_count+'" title="'+p+'" alt="'+p+'" src="'+c+'" class="inv_imgg"/><\/td><td class="tddesc" id="Mtddesc_'+inv_count+'"><div class="DWBasicInfo" id="MEngineSize_'+inv_count+'">'+enginesMob+'<div class="DWBasicInfo" id="MMiles_'+inv_count+'"><span class="spanBasicInfo" id="MdwBoxInvMiles_'+inv_count+'">'+formatNum(InventoryList[t].Miles).replace(".00","").replace(" ","")+" miles"+si+'<\/span><span class="pipe spanBasicInfo dw-m0" id="pipe_'+inv_count+'" >|<\/span><span class="spanBasicInfo" id="MDwStock_'+inv_count+'">Stock #'+InventoryList[t].StockNo.toUpperCase()+'<\/div><div class="DWBasicInfo" id="MTransmission_'+inv_count+'">'+InventoryList[t].Transmission+' Transmission<\/div><div class="DWBasicInfo" id="MExteriorColor_'+inv_count+'">'+dr+'<\/div>
4<div class="DWBasicInfo" id="MInteriorColor_'+inv_count+'">'+gr+'<\/div><div class="dwInvListPrice DWBasicInfo" id="MdwInvListPrice_'+inv_count+'"><table role="presentation" class="tblPriceM"><tr><td class="inv_maintal" id="Minv_maintal_'+inv_count+'" >'+dt+"<\/td><\/tr><\/table><\/div>"+ki+"<\/td><\/tr><\/table>",i+="<\/div><\/a><\/div>"):(i+='<div class="col-item col-item-inv"><a id="dwMoblistitem_'+inv_count+'" title="'+h+'" href="'+f+'"><div class="photo-inv tdImg">',i+=lt?'<div class="stock">'+tr+pr+"<\/div>":tr+pr,i+=or+sr+hr,i+='<\/div><\/a><div class="info" id="Mdw_info_'+inv_count+'"><div class="priceRV" id="Mdw_priceRV_'+inv_count+'"><div class="Mdw_ListDetail h3" id="Mdw_ListDetail_'+inv_count+'"><div class="otxtOvrF2" id="MinvHeadTD_'+inv_count+'">'+ir+'<span><span id="MdivYear_'+inv_count+'" >'+InventoryList[t].Year+'<\/span> <span id="MdivMake_'+inv_count+'" >'+InventoryList[t].Make+'<\/span> <span id="MdivModel_'+inv_count+'">'+InventoryList[t].Model+'<\/span><\/span><\/div><div class="otxtOvrF2" id="MdivTrim_'+inv_count+'" >'+InventoryList[t].Trim+'<\/div><div class="mileage" id="MdwBoxInvMiles_'+inv_count+'"><span>'+formatNum(InventoryList[t].Miles).replace(".00","").replace(" ","")+"<\/span> miles"+si+'<\/div><\/div><h2 class="price-text-color" id="MdwInvListPrice_'+inv_count+'">'+o+"<\/h2>",kr="",InventoryList[t].PaymentComments.length>0&&InventoryList[t].ShowPayment==!0&&InventoryList[t].PaymentPrice>0&&(kr="<a href='javascript:void(0)' onkeydown='fireOnClickEvent(this,event)' role='button' onclick='MobFinanceDisclosure("&t&")'>View Finance Disclosure<\/a>"),i+=ki,i+='<div class="mCarguruDiv">'+ut+'<\/div><div class="MFinanceDisclosure">'+kr+'<\/div><\/div><\/div><a href="javascript:void(0)" id="MdivScheduleApp_'+inv_count+'" class="DwNoDisplay" onkeydown="fireOnClickEvent(this,event)" onclick=\'GE_DW_Set_myPopup_invoked_function("myPopup_Book_TestDrive","center","'+InventoryList[t].URLEncodedEncrInvID+'","'+InventoryList[t].Vin+'")\'><div class="info infodrive"><p class="btn-detailsfull">Schedule a test drive<\/p><div class="clearfix"><\/div><\/div><\/a><\/div>'),i+="<\/div>"),inv_count=inv_count+1;af$("products")!=null&&(af$("products").innerHTML+=i,setInterval(function(){viewportWidth()>767&&resizeGridImg();DwReArrangeHTML("INV")},1e3));isInIframe()||IsMobile!=!1||IsDWCustomerCookies!==!0||strRemoteAgent.toLowerCase().includes("bot")||strRemoteAgent.toLowerCase().includes("crawler")||strRemoteAgent.toLowerCase().includes("spider")||strRemoteAgent.toLowerCase().includes("webindexer")||strRemoteAgent.toLowerCase().includes("amazon")||strRemoteAgent.toLowerCase().includes("google")||strRemoteAgent.toLowerCase().includes("external")||DWLoadBottomBar()}$("#Inv_loader").hide();function_call=!0;typeof SetExtraGridHTML!="undefined"&&typeof SetExtraGridHTML=="function"&&SetExtraGridHTML();typeof SetCustomHTMLCallback!="undefined"&&typeof SetCustomHTMLCallback=="function"&&SetCustomHTMLCallback(pageStartRow,pageEndRow)}blnManagePrivacy==!0?getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&typeof fbq!="undefined"&&setFacebookpixelInvlist():typeof fbq!="undefined"&&setFacebookpixelInvlist()}function Hyphenize(n){for(var i,t,u="",r=0;r<n.length;++r)i=n.charAt(r),t=i.charCodeAt(0),u+=t>47&&t<58||t>64&&t<91||t>96&&t<123?i:t==38?"and":t==32||t==45?"-":"_";return u}function GetDrivetrainFullForm(n){var t=n;return n=="4WD"?t=n.replace("4WD","Four Wheel Drive"):n=="AWD"?t=n.replace("AWD","All Wheel Drive"):n=="FWD"?t=n.replace("FWD","Front Wheel Drive"):n=="RWD"&&(t=n.replace("RWD","Rear Wheel Drive")),t}function myPopup_DealerUrlImage360_start(n){var t='<iframe width="960" id="iframe-360" height="540" src="'+objDWInventoryList.InvPageList[n].UrlImage360+'" frameborder="0" allowfullscreen><\/iframe>';af$("div_myPopup_AFDWUrlImage360Cnt")!=null&&(af$("div_myPopup_AFDWUrlImage360Cnt").innerHTML=t);GE_DW_Set_myPopup_invoked_function("div_myPopup_AFDWUrlImage360");$("#div_myPopup_AFDWUrlImage360").on("hidden.bs.modal",function(){$("#div_myPopup_AFDWUrlImage360Cnt").html("")}); 5//!function (e, s, t) { (t = e.createElement(s)).async = !0, t.src = "https://theta360.
5com/widgets.js", (e = e.getElementsByTagName(s)[0]).parentNode.insertBefore(t, e) }(document, "script"); 6}function EnableMultiSelectOption(){$(".MakesDiv").each(function(n,t){makeHtml='<div class="Lst-car"><input class="chkMakes" type="checkbox" id="chkMake_'+n+'" name="chkMake" value="'+$(t).find(".dw-makes").html()+'"><label for="chkMake_'+n+'" ><span class="dw-makes">'+$(t).find(".dw-makes").html()+'<\/span><strong class="badge">'+$(t).find(".badge").html()+"<\/strong><\/label><\/div>";$(t).html(makeHtml)});$(".btnmultigo").length==0&&$("#divMakeListing").append('<div class="dw-cboth"><\/div><span class="btn btnmultigo" onclick="ShowMultiSelectInventory()" >GO<\/span>')}function ShowMultiSelectInventory(){var t=[],n;$("#divMakeListing input.chkMakes:checkbox:checked").each(function(){t.push(encodeURIComponent(MakeUrlRewriterFriendly(trim($(this).val()))))});n=t.join([separator=","]);window.location=n.length>0?DealerSiteUrl+"/inventory.aspx?multiselect=1&make="+n:DealerSiteUrl+"/inventory.aspx"}function autoFillMultiSelectMakes(){getParam("multiselect")=="1"&&setTimeout(function(){EnableMultiSelectOption();DoAutoFillMultiSelectMakes()},500)}function DoAutoFillMultiSelectMakes(){if(getParam("multiselect")=="1"){var n=getParam("make"),t=n.split(",");$(".dw-makes").each(function(n,i){t.indexOf($(i).html())!==-1&&$(i).parent("label").parent("div.Lst-car").find(":checkbox").attr("checked",!0)})}}function getFilterContainer(n){return document.getElementById("DivMultiselect_"+n)}function hideOtherMultiSelects(n,t){n.forEach(function(n){n.id!==t&&$(n).stop(!0,!0).slideUp(300)})}function isSpecialFilter(n){return n===1||n===2||n===3}function buildFilterUrl(n){var u=document.getElementById("hdvwInvFilterQs").value,f="/2/includes/inventoryFilters_Theme2.aspx?filter="+encodeURIComponent(n),t=[],i,r;return u.length>0&&(t=t.concat(u.split("&"))),window.location.search&&window.location.search.length>0&&(t=t.concat(window.location.search.substring(1).split("&"))),i={},t.forEach(function(n){var r=n.split("="),t=r[0].toLowerCase();t&&t!=="filter"&&!i[t]&&(i[t]=n)}),r=Object.values(i),r.length>0&&(f+="&"+r.join("&")),f}function loadFilterValues(n,t){n.setAttribute("data-loading","true");var i=JSON.parse(document.getElementById("hdnInvFilter").value);i.MakeModelOnly=2;n.innerHTML='<div class="loading"><img src="/2/images/loading.gif" alt="Loading..."><\/div>';$(n).stop(!0,!0).slideDown(350);$.ajax({type:"POST",data:JSON.stringify(i),contenttype:"application/json",url:t,success:function(t){var r,u,i;if(n.removeAttribute("data-loading"),r=document.createElement("div"),r.innerHTML=t.trim(),u=r.querySelectorAll("#divToStripOut"),u.forEach(function(n){n.parentNode.removeChild(n)}),i=r.innerHTML.trim(),i.length===0){$(n).stop(!0,!0).fadeOut(150,function(){n.innerHTML='<div class="error">No filter values found.<\/div>';$(n).fadeIn(200)});return}/</i.test(i)&&i.indexOf("<ul")!==-1||(i="<ul>"+i+"<\/ul>");$(n).stop(!0,!0).fadeTo(150,0,function(){n.innerHTML=i;n.setAttribute("data-loaded","true");$(n).fadeTo(200,1)})},error:function(t,i,r){n.removeAttribute("data-loading");console&&console.error&&console.error("Filter load error",i,r);$(n).stop(!0,!0).fadeTo(150,0,function(){n.innerHTML='<div class="error">Failed to load filter values.<\/div>';$(n).fadeTo(200,1)})}})}function ShowMultiSelectLayer(n){var e=document.getElementById("DivInvTopFiltering"),u,f,i,o,s;if(e){var r=String(n),h=parseInt(r,10),t=getFilterContainer(r);if(t){if(u=t.id,f=e.querySelectorAll(".DivMultiselect"),hideOtherMultiSelects(f,u),i=$(t),o=i.is(":visible"),isSpecialFilter(h)){i.stop(!0,!0).slideToggle(350);return}if(t.getAttribute("data-loading")==="true"){i.stop(!0,!0).slideDown(350);return}if(o){i.stop(!0,!0).slideUp(350);return}if(t.getAttribute("data-loaded")==="true"){i.stop(!0,!0).slideDown(350);return}s=buildFilterUrl(r);loadFilterValues(t,s,f,u)}}}var objInventoryFilter={},strRemoteAgent,InventoryList,makeHtml;$(document).ready(function(){function n(){var n=viewportWidth();n>767?$("#DWLeftFilter").css("height","auto"):$("#DWLeftFilter").css("height",$(window).height()-50+"px");n>1300?(typeof $("#DWRecentlyViewed").data("owlCarousel")!="undefined"&&($("#DWRecentlyViewed").data("owlCarousel").destroy(),$("#DWRecentlyViewed").removeClass("owl-carousel")),$("#DWRecentlyViewedCover").mCustomScrollbar({setHeight:2060,theme:"minimal-dark"})):(i=$("#DWRecentlyViewed").owlCarousel(getOptionsRecently()),$("#DWRecentlyViewedCover").mCustomScrollbar("destroy"))}var i,t;if(CurrentPN=="inventory"||CurrentPN=="inventory-iframe"){SetTheme3Items();SetInvThemeItems();DWSetObjInventoryFilter();$(window).bind("load",function(){setTimeout(function(){DwReArrangeHTML("INV");resizeGridImg()},1e3);n()});$(window).bind("orientationchange",function(){DwReArrangeHTML("INV");resizeGridImg();n()});addEvent(window,"resize",function(){DwReArrangeHTML("INV");resizeGridImg();n()});$("#divFilterButton").on("click",function(n){n.preventDefault();ShowHideInvFilters();InventoryFiltersShow();$("html, body").animate({scrollTop:$("#DWLeftFilter").offset().top},10)});$(window).on("scroll",function(){t()});t=function(){$(window).scrollTop()>100?($("#divFilterButton").css("position","fixed"),$("#divFilterButton").addClass("divFilterButtonFloat")):($("#divFilterButton").removeClass("divFilterButtonFloat"),$("#divFilterButton").css("position","inherit"))};autoFillMultiSelectMakes()}});var jssor_inv_img_SlideshowTransitions=[{$Duration:1e3,$Zoom:5,$SlideOut:!0,$E
6asing:{$Zoom:$Jease$.$InExpo,$Opacity:$Jease$.$Linear},$Opacity:2}],jssor_inv_img_SlideshowTransitions2=[{$Duration:1200,$During:{$Left:[.3,.7]},$FlyDirection:2,$Easing:{$Left:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseLinear},$ScaleHorizontal:.3,$Opacity:2}],jssor_inv_img_SlideshowTransitions3=[{$Duration:1200,$During:{$Left:[.3,.7]},$FlyDirection:2,$Easing:{$Left:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseLinear},$ScaleHorizontal:.3,$Opacity:2}],jssor_inv_img_options={$HWA:!1,$FillMode:5,$AutoPlay:!0,$Loop:0,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:jssor_inv_img_SlideshowTransitions2,$TransitionsOrder:1},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$},$ThumbnailNavigatorOptions:{$Class:$JssorThumbnailNavigator$,$Loop:0,$Rows:2,$Cols:6,$SpacingX:14,$SpacingY:12,$Orientation:2,$Align:156,$ParkingPosition:0}};var pageDefaultEndRow=0,pageStartRow=1,pageEndRow=0,inv_count=0,InvMinMax=0,function_call=!0,inv_top_Hight=41,Inv_filter_height=0,filter_position=0,filter_top=0,hightsetting=!1,MultiSelectInv=!1,CurrentPageNo=$("#hdnDwInvCurrentPage").val(),IsBot=$("#hdnDwInvIsBot").val()==="true";strRemoteAgent="";typeof window!="undefined"&&window.navigator.userAgent!==undefined&&(strRemoteAgent=window.navigator.userAgent);InventoryList=null;makeHtml="";$(document).on("click",function(n){var t=document.getElementById("DivInvTopFiltering");t&&($(n.target).closest("#DivInvTopFiltering").length||$(t).find(".DivMultiselect").stop(!0,!0).slideUp(300))});(function(n,t){"use strict";function e(r,f,e,o,s){function ut(){if(it=n.devicePixelRatio>1,e=ft(e),f.delay>=0&&setTimeout(function(){d(!0)},f.delay),f.delay<0||f.combined){o.e=lt(f.throttle,function(n){n.type==="resize"&&(p=w=-1);d(n.all)});o.a=function(n){n=ft(n);e.push.apply(e,n)};o.g=function(){return e=i(e).filter(function(){return!i(this).data(f.loadedName)})};o.f=function(n){for(var i,t=0;t<n.length;t++)i=e.filter(function(){return this===n[t]}),i.length&&d(!1,i)};d();i(f.appendScroll).on("scroll."+s+" resize."+s,o.e)}}function ft(n){var v=f.defaultImage,p=f.placeholder,k=f.imageBase,s=f.srcsetAttribute,l=f.loaderAttribute,a=f._f||{},e,w;for(n=i(n).filter(function(){var n=i(this),r=nt(this);return!n.data(f.handledName)&&(n.attr(f.attribute)||n.attr(s)||n.attr(l)||a[r]!==t)}).data("plugin_"+f.name,r),e=0,w=n.length;e<w;e++){var u=i(n[e]),o=nt(n[e]),b=u.attr(f.imageBaseAttribute)||k;o===c&&b&&u.attr(s)&&u.attr(s,ct(u.attr(s),b));a[o]===t||u.attr(l)||u.attr(l,a[o]);o===c&&v&&!u.attr(h)?u.attr(h,v):o!==c&&p&&(!u.css(y)||u.css(y)==="none")&&u.css(y,"url('"+p+"')")}return n}function d(n,t){var o;if(!e.length){f.autoDestroy&&r.destroy();return}var s=t||e,w=!1,g=f.imageBase||"",k=f.srcsetAttribute,l=f.handledName;for(o=0;o<s.length;o++)if(n||t||ot(s[o])){var u=i(s[o]),a=nt(s[o]),v=u.attr(f.attribute),p=u.attr(f.imageBaseAttribute)||g,d=u.attr(f.loaderAttribute);!u.data(l)&&(!f.visibleOnly||u.is(":visible"))&&((v||u.attr(k))&&(a===c&&(p+v!==u.attr(h)||u.attr(k)!==u.attr(b))||a!==c&&p+v!==u.css(y))||d)&&(w=!0,u.data(l,!0),et(u,a,p,d))}w&&(e=i(e).filter(function(){return!i(this).data(l)}))}function et(n,t,r,u){var o,s,e,w;++g;o=function(){l("onError",n);tt();o=i.noop};l("beforeLoad",n);var d=f.attribute,nt=f.srcsetAttribute,p=f.sizesAttribute,ut=f.retinaAttribute,ft=f.removeAttribute,et=f.loadedName,ot=n.attr(ut);if(u){s=function(){ft&&n.removeAttr(f.loaderAttribute);n.data(et,!0);l(rt,n);setTimeout(tt,1);s=i.noop};n.off(v).one(v,o).one(a,s);l(u,n,function(t){t?(n.off(a),s()):(n.off(v),o())})||n.trigger(v)}else{e=i(new Image);e.one(v,o).one(a,function(){n.hide();t===c?n.attr(k,e.attr(k)).attr(b,e.attr(b)).attr(h,e.attr(h)):n.css(y,"url('"+e.attr(h)+"')");n[f.effect](f.effectTime);ft&&(n.removeAttr(d+" "+nt+" "+ut+" "+f.imageBaseAttribute),p!==k&&n.removeAttr(p));n.data(et,!0);l(rt,n);e.remove();tt()});w=(it&&ot?ot:n.attr(d))||"";e.attr(k,n.attr(p)).attr(b,n.attr(nt)).attr(h,w?r+w:null);e.complete&&e.trigger(a)}}function ot(n){var t=n.getBoundingClientRect(),r=f.scrollDirection,i=f.threshold,u=ht()+i>t.top&&-i<t.bottom,e=st()+i>t.left&&-i<t.right;return r==="vertical"?u:r==="horizontal"?e:u&&e}function st(){return p>=0?p:p=i(n).width()}function ht(){return w>=0?w:w=i(n).height()}function nt(n){return n.tagName.toLowerCase()}function ct(n,t){var r,i,u;if(t)for(r=n.split(","),n="",i=0,u=r.length;i<u;i++)n+=t+r[i].trim()+(i!==u-1?",":"");return n}function lt(n,t){var i,u=0;return function(e,o){function h(){u=+new Date;t.call(r,e)}var s=+new Date-u;i&&clearTimeout(i);s>n||!f.enableThrottle||o?h():i=setTimeout(h,n-s)}}function tt(){--g;e.length||g||l("onFinishedAll")}function l(n){return(n=f[n])?(n.apply(r,[].slice.call(arguments,1
6)),!0):!1}var g=0,p=-1,w=-1,it=!1,rt="afterLoad",a="load",v="error",c="img",h="src",b="srcset",k="sizes",y="background-image";if(f.bind==="event"||u)ut();else i(n).on(a+"."+s,ut)}function r(r,u){var o=this,h=i.extend({},o.config,u),s={},c=h.name+"-"+ ++f;return o.config=function(n,i){return i===t?h[n]:(h[n]=i,o)},o.addItems=function(n){return s.a&&s.a(i.type(n)==="string"?i(n):n),o},o.getItems=function(){return s.g?s.g():{}},o.update=function(n){return s.e&&s.e({},!n),o},o.force=function(n){return s.f&&s.f(i.type(n)==="string"?i(n):n),o},o.loadAll=function(){return s.e&&s.e({all:!0},!0),o},o.destroy=function(){return i(h.appendScroll).off("."+c,s.e),i(n).off("."+c),s={},t},e(o,h,r,s,c),h.chainable?r:o}var i=n.jQuery||n.Zepto,f=0,u=!1;i.fn.Lazy=i.fn.lazy=function(n){return new r(this,n)};i.Lazy=i.lazy=function(n,u,f){var e,h,o,c,s,l;if(i.isFunction(u)&&(f=u,u=[]),i.isFunction(f)){for(n=i.isArray(n)?n:[n],u=i.isArray(u)?u:[u],e=r.prototype.config,h=e._f||(e._f={}),o=0,c=n.length;o<c;o++)(e[n[o]]===t||i.isFunction(e[n[o]]))&&(e[n[o]]=f);for(s=0,l=u.length;s<l;s++)h[u[s]]=n[0]}};r.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:n,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:t,afterLoad:t,onError:t,onFinishedAll:t};i(n).on("load",function(){u=!0})})(window);(function(n){function t(t,i,r,u){u=u?u.toUpperCase():"GET";var f;(u==="POST"||u==="PUT")&&t.config("ajaxCreateData")&&(f=t.config("ajaxCreateData").apply(t,[i]));n.ajax({url:i.attr("data-src"),type:u==="POST"||u==="PUT"?u:"GET",data:f,dataType:i.attr("data-type")||"html",success:function(n){i.html(n);r(!0);t.config("removeAttribute")&&i.removeAttr("data-src data-method data-type")},error:function(){r(!1)}})}n.lazy("ajax",function(n,i){t(this,n,i,n.attr("data-method"))});n.lazy("get",function(n,i){t(this,n,i,"GET")});n.lazy("post",function(n,i){t(this,n,i,"POST")});n.lazy("put",function(n,i){t(this,n,i,"PUT")})})(window.jQuery||window.Zepto);jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):("type"===a&&i!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||"boolean"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n}
vendor: 5,823 bytes, line 6
6,set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),i[3]&&r("$(html) HTML text after last tag is ignored"),"#"===i[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||"events"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),i)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",C=RegExp("\\b(?:"+S+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(S.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);(function(n){function t(t,i){var r,s,h,u,f,o,c,l,e,a;if(this.carouselRoot=n(t),r=this,this._lockYAxis=!1,this._isAnimating=!1,this._downEvent="",this._moveEvent="",this._upEvent="",this._totalItemsWidth,this._itemWidths,this._startAccelerationX,this._accelerationX,this._latestDragX,this._startTime=0,this.settings=n.extend({},n.fn.touchCarousel.defaults,i),this._dragContainer=this.carouselRoot.find(".touchcarou
6sel-container"),this._dragContainerStyle=this._dragContainer[0].style,this._itemsWrapper=this._dragContainer.wrap(n('<div class="touchcarousel-wrapper" />')).parent(),s=this._dragContainer.find(".touchcarousel-item"),this.items=[],this.numItems=s.length,this._decelerationAnim,this._successfullyDragged=!1,this._startMouseX=0,this._prevMouseX=0,this._moveDist=0,this._blockClickEvents=!1,this._wasBlocked=!1,this._useWebkitTransition=!1,"ontouchstart"in window?(this.hasTouch=!0,this._downEvent="touchstart.rs",this._moveEvent="touchmove.rs",this._upEvent="touchend.rs",this._baseFriction=this.settings.baseTouchFriction):(this.hasTouch=!1,this._baseFriction=this.settings.baseMouseFriction,this.settings.dragUsingMouse?(this._downEvent="mousedown.rs",this._moveEvent="mousemove.rs",this._upEvent="mouseup.rs",this._grabCursor,this._grabbingCursor,h=n.browser,h.msie||h.opera?this._grabCursor=this._grabbingCursor="move":h.mozilla&&(this._grabCursor="-moz-grab",this._grabbingCursor="-moz-grabbing"),this._setGrabCursor()):this._itemsWrapper.addClass("auto-cursor")),(this.hasTouch||this.settings.useWebkit3d)&&"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix&&(this._dragContainer.css({"-webkit-transform-origin":"0 0","-webkit-transform":"translateZ(0)"}),this._useWebkitTransition=!0),this._useWebkitTransition?(this._xProp="-webkit-transform",this._xPref="translate3d(",this._xSuf="px, 0, 0)"):(this._xProp="left",this._xPref="",this._xSuf="px"),this.hasTouch&&(this.settings.directionNavAutoHide=!1),this.settings.directionNav||(this.settings.loopItems?(this._arrowLeftBlocked=!0,this._arrowRightBlocked=!0):(this._arrowLeftBlocked=!1,this._arrowRightBlocked=!1),this.settings.loopItems=!0),o=0,s.eq(this.numItems-1).addClass("last"),s.each(function(t){if(f=n(this),u={},u.item=f,u.index=t,u.posX=o,u.width=f.outerWidth(!0)+2||r.settings.itemFallbackWidth+2,o+=u.width,this.hasTouch){var e=f.find("a"),i;e.each(function(){i=n(this);i.data("tc-href",i.attr("href"));i.data("tc-target",i.attr("target"));i.attr("href","#");i.bind("click",function(t){if(t.preventDefault(),r._successfullyDragged)return!1;var i=n(this).data("tc-href"),u=n(this).data("tc-target");u&&u.toLowerCase()!=="_self"?window.open(i):window.location.href=i})})}else f.find("a").bind("click.touchcarousel",function(n){if(r._successfullyDragged)return n.preventDefault(),!1});f.find(".non-draggable").bind(r._downEvent,function(n){r._successfullyDragged=!1;n.stopImmediatePropagation()});r.items.push(u)}),this._maxXPos=this._totalItemsWidth=o,this._itemsPerMove=this.settings.itemsPerMove>0?this.settings.itemsPerMove:1,this.settings.pagingNav){if(this.settings.snapToItems=!0,this._pagingEnabled=!0,this._numPages=Math.ceil(this.numItems/this._itemsPerMove),this._currPageId=0,this.settings.pagingNavControls){for(this._pagingNavContainer=n('<div class="tc-paging-container"><div class="tc-paging-centerer"><div class="tc-paging-centerer-inside"><\/div><\/div><\/div>'),c=this._pagingNavContainer.find(".tc-paging-centerer-inside"),e=1;e<=this._numPages;e++)l=n('<a class="tc-paging-item" href="#">'+e+"<\/a>").data("tc-id",e),e===this._currPageId+1&&l.addClass("current"),c.append(l);this._pagingItems=c.find(".tc-paging-item").click(function(t){t.preventDefault();r.goTo((n(t.currentTarget).data("tc-id")-1)*r._itemsPerMove)});this._itemsWrapper.after(this._pagingNavContainer)}}else this._pagingEnabled=!1;if(this._dragContainer.css({width:o+2}),this.settings.directionNav){if(this._itemsWrapper.after("<a href='#' class='arrow-holder left'><span class='arrow-icon left'><\/span><\/a> <a href='#' class='arrow-holder right'><span class='arrow-icon right'><\/span><\/a>"),this.arrowLeft=this.carouselRoot.find(".arrow-holder.left"),this.arrowRight=this.carouselRoot.find(".arrow-holder.right"),this.arrowLeft.length<1||this.arrowRight.length<1)this.settings.directionNav=!1;else if(this.settings.directionNavAutoHide){this.arrowLeft.hide();this.arrowRight.hide();this.carouselRoot.one("mousemove.arrowshover",function(){r.arrowLeft.fadeIn("fast");r.arrowRight.fadeIn("fast")});this.carouselRoot.hover(function(){r.arrowLeft.fadeIn("fast");r.arrowRight.fadeIn("fast")},function(){r.arrowLeft.fadeOut("fast");r.arrowRight.fadeOut("fast")})}this._updateDirectionNav(0);this.settings.directionNav&&(this.arrowRight.click(function(n){n.preventDefault();(!r.settings.loopItems||r._blockClickEvents)&&r._arrowRightBlocked||r.next()}),this.arrowLeft.click(function(n){n.preventDefault();(!r.settings.loopItems||r._blockClickEvents)&&r._arrowLeftBlocked||r.prev()}))}this.carouselWidth;this._resizeEvent="onorientationchange"in window?"orientationchange.touchcarou
6sel":"resize.touchcarousel";n(window).bind(this._resizeEvent,function(){a&&clearTimeout(a);a=setTimeout(function(){r.updateCarouselSize(!1)},100)});this.settings.scrollbar?(this._scrollbarHolder=n("<div class='scrollbar-holder'><div class='scrollbar"+(this.settings.scrollbarTheme.toLowerCase()==="light"?" light":" dark")+"'><\/div><\/div>"),this._scrollbarHolder.appendTo(this.carouselRoot),this.scrollbarJQ=this._scrollbarHolder.find(".scrollbar"),this._scrollbarHideTimeout="",this._scrollbarStyle=this.scrollbarJQ[0].style,this._scrollbarDist=0,this.settings.scrollbarAutoHide?(this._scrollbarVisible=!1,this.scrollbarJQ.css("opacity",0)):this._scrollbarVisible=!0):this.settings.scrollbarAutoHide=!1;this.updateCarouselSize(!0);this._itemsWrapper.bind(this._downEvent,function(n){r._onDragStart(n)});this.settings.autoplay&&this.settings.autoplayDelay>0?(this._isHovering=!1,this.autoplayTimer="",this.wasAutoplayRunning=!0,this.hasTouch||this.carouselRoot.hover(function(){r._isHovering=!0;r._stopAutoplay()},function(){r._isHovering=!1;r._resumeAutoplay()}),this.autoplay=!0,this._releaseAutoplay()):this.autoplay=!1;this.settings.keyboardNav&&n(document).bind("keydown.touchcarousel",function(n){r._blockClickEvents||(n.keyCode===37?r.prev():n.keyCode===39&&r.next())});this.carouselRoot.css("overflow","visible");this.GetObj=function(){this.settings.GetObj.call(this)};this.GetObj()}t.prototype={goTo:function(n,t){var r=this.items[n],i;r&&(!t&&this.autoplay&&this.settings.autoplayStopAtAction&&this.stopAutoplay(),this._updatePagingNav(n),this.endPos=this._getXPos(),i=-r.posX,i>0?i=0:i<this.carouselWidth-this._maxXPos&&(i=this.carouselWidth-this._maxXPos),this.animateTo(i,this.settings.transitionSpeed,"easeInOutSine"))},next:function(n){var r=this._getXPos(),t=this._getItemAtPos(r).index,i;this._pagingEnabled?(i=this._currPageId+1,t=i>this._numPages-1?this.settings.loopItems?0:(this._numPages-1)*this._itemsPerMove:i*this._itemsPerMove):(t=t+this._itemsPerMove,this.settings.loopItems&&r<=this.carouselWidth-this._maxXPos&&(t=0),t>this.numItems-1&&(t=this.numItems-1));this.goTo(t,n)},prev:function(n){var r=this._getXPos(),t=this._getItemAtPos(r).index,i;this._pagingEnabled?(i=this._currPageId-1,t=i<0?this.settings.loopItems?(this._numPages-1)*this._itemsPerMove:0:i*this._itemsPerMove):(t=t-this._itemsPerMove,t<0&&(t=this.settings.loopItems?r<0?0:this.numItems-1:0));this.goTo(t,n)},getCurrentId:function(){return this._getItemAtPos(this._getXPos()).index},setXPos:function(n,t){t?this._scrollbarStyle[this._xProp]=this._xPref+n+this._xSuf:this._dragContainerStyle[this._xProp]=this._xPref+n+this._xSuf},stopAutoplay:function(){this._stopAutoplay();this.autoplay=!1;this.wasAutoplayRunning=!1},resumeAutoplay:function(){this.autoplay=!0;this.wasAutoplayRunning||this._resumeAutoplay()},updateCarouselSize:function(n){var e=this,i,u,r,f,t;if(this.carouselWidth=this.carouselRoot.width(),this.settings.scrollToLast){if(i=0,this._pagingEnabled)if(u=this.numItems%this._itemsPerMove,u>0)for(r=this.numItems-u;r<this.numItems;r++)i+=this.items[r].width;else i=this.carouselWidth;else i=this.items[this.numItems-1].width;this._maxXPos=this._totalItemsWidth+this.carouselWidth-i}else this._maxXPos=this._totalItemsWidth;if(this.settings.scrollbar&&(f=this._maxXPos>=this.carouselWidth?Math.round(this._scrollbarHolder.width()/(this._maxXPos/this.carouselWidth)):Math.round(this._scrollbarHolder.width()/(this.carouselWidth/this._maxXPos)),this.scrollbarJQ.css("width",f),this._scrollbarDist=this._scrollbarHolder.width()-f),!this.settings.scrollToLast){if(this.carouselWidth>=this._totalItemsWidth){this._wasBlocked=!0;this.settings.loopItems||(this._arrowRightBlocked=!0,this.arrowRight.addClass("disabled"),this._arrowLeftBlocked=!0,this.arrowLeft.addClass("disabled"));this.setXPos(0);return}this._wasBlocked&&(this._wasBlocked=!1,this._arrowRightBlocked=!1,this._arrowLeftBlocked=!1,this.arrowRight&&this.arrowRight.removeClass("disabled"),this.arrowLeft&&this.arrowLeft.removeClass("disabled"))}n||(t=this.endPos=this._getXPos(),t>0?t=0:t<this.carouselWidth-this._maxXPos&&(t=this.carouselWidth-this._maxXPos),this.animateTo(t,300,"easeInOutSine"))}
6,animateTo:function(t,i,r,u,f,e,o){function k(){s._isAnimating=!1;s._releaseAutoplay();s.settings.scrollbarAutoHide&&s._hideScrollbar();s.settings.onAnimComplete!==null&&s.settings.onAnimComplete.call(s)}var v,y;this.settings.onAnimStart!==null&&this.settings.onAnimStart.call(this);this.autoplay&&this.autoplayTimer&&(this.wasAutoplayRunning=!0,this._stopAutoplay());this._stopAnimation();var s=this,a=this.settings.scrollbar,h=s._xProp,c=s._xPref,l=s._xSuf,d={containerPos:this.endPos},p={containerPos:t},b={containerPos:f},f=u?f:t,w=s._dragContainerStyle;s._isAnimating=!0;a&&(v=this._scrollbarStyle,y=s._maxXPos-s.carouselWidth,this.settings.scrollbarAutoHide&&(this._scrollbarVisible||this._showScrollbar()));this._updateDirectionNav(f);this._decelerationAnim=n(d).animate(p,{duration:i,easing:r,step:function(){a&&(v[h]=c+Math.round(s._scrollbarDist*(-this.containerPos/y))+l);w[h]=c+Math.round(this.containerPos)+l},complete:function(){u?s._decelerationAnim=n(p).animate(b,{duration:e,easing:o,step:function(){a&&(v[h]=c+Math.round(s._scrollbarDist*(-this.containerPos/y))+l);w[h]=c+Math.round(this.containerPos)+l},complete:function(){a&&(v[h]=c+Math.round(s._scrollbarDist*(-b.containerPos/y))+l);w[h]=c+Math.round(b.containerPos)+l;k()}}):(a&&(v[h]=c+Math.round(s._scrollbarDist*(-p.containerPos/y))+l),w[h]=c+Math.round(p.containerPos)+l,k())}})},destroy:function(){this.stopAutoplay();this._itemsWrapper.unbind(this._downEvent);n(document).unbind(this._moveEvent).unbind(this._upEvent);n(window).unbind(this._resizeEvent);this.settings.keyboardNav&&n(document).unbind("keydown.touchcarousel");this.carouselRoot.remove()},_updatePagingNav:function(n){if(this._pagingEnabled){var t=this._getPageIdFromItemId(n);this._currPageId=t;this.settings.pagingNavControls&&(this._pagingItems.removeClass("current"),this._pagingItems.eq(t).addClass("current"))}},_getPageIdFromItemId:function(n){for(var i=this._itemsPerMove,t=0;t<this._numPages;t++)if(n>=t*i&&n<t*i+i)return t;return n<0?0:n>=this._numPages?this._numPages-1:!1},_enableArrows:function(){this.settings.loopItems||(this._arrowLeftBlocked?(this._arrowLeftBlocked=!1,this.arrowLeft.removeClass("disabled")):this._arrowRightBlocked&&(this._arrowRightBlocked=!1,this.arrowRight.removeClass("disabled")))},_disableLeftArrow:function(){this._arrowLeftBlocked||this.settings.loopItems||(this._arrowLeftBlocked=!0,this.arrowLeft.addClass("disabled"),this._arrowRightBlocked&&(this._arrowRightBlocked=!1,this.arrowRight.removeClass("disabled")))},_disableRightArrow:function(){this._arrowRightBlocked||this.settings.loopItems||(this._arrowRightBlocked=!0,this.arrowRight.addClass("disabled"),this._arrowLeftBlocked&&(this._arrowLeftBlocked=!1,this.arrowLeft.removeClass("disabled")))},_getItemAtPos:function(n){var r=this,t,i;for(n=-n,i=0;i<r.numItems;i++)if(t=r.items[i],n>=t.posX&&n<t.posX+t.width)return t;return-1},_releaseAutoplay:function(){this.autoplay&&this.wasAutoplayRunning&&(this._isHovering||this._resumeAutoplay(),this.wasAutoplayRunning=!1)},_hideScrollbar:function(){var n=this;this._scrollbarVisible=!1;this._scrollbarHideTimeout&&clearTimeout(this._scrollbarHideTimeout);this._scrollbarHideTimeout=setTimeout(function(){n.scrollbarJQ.animate({opacity:0}
6,150,"linear")},450)},_showScrollbar:function(){this._scrollbarVisible=!0;this._scrollbarHideTimeout&&clearTimeout(this._scrollbarHideTimeout);this.scrollbarJQ.stop().animate({opacity:1},150,"linear")},_stopAnimation:function(){this._decelerationAnim&&this._decelerationAnim.stop()},_resumeAutoplay:function(){if(this.autoplay){var n=this;this.autoplayTimer||(this.autoplayTimer=setInterval(function(){n._isDragging||n._isAnimating||n.next(!0)},this.settings.autoplayDelay))}},_stopAutoplay:function(){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer="")},_getXPos:function(n){var t=n?this.scrollbarJQ:this._dragContainer,i,r;return this._useWebkitTransition?(i=t.css("-webkit-transform"),r=i.replace(/^matrix\(/i,"").split(/, |\)$/g),parseInt(r[4],10)):Math.round(t.position().left)},_onDragStart:function(t){var i,r,u;if(!this._isDragging){if(this.autoplay&&this.settings.autoplayStopAtAction&&this.stopAutoplay(),this._stopAnimation(),this.settings.scrollbarAutoHide&&this._showScrollbar(),this.hasTouch)if(this._lockYAxis=!1,r=t.originalEvent.touches,r&&r.length>0)i=r[0];else return!1;else i=t,t.preventDefault();this._setGrabbingCursor();this._isDragging=!0;u=this;this._useWebkitTransition&&u._dragContainer.css({"-webkit-transition-duration":"0","-webkit-transition-property":"none"});n(document).bind(this._moveEvent,function(n){u._onDragMove(n)});n(document).bind(this._upEvent,function(n){u._onDragRelease(n)});this._startPos=this._getXPos();this._accelerationX=i.clientX;this._successfullyDragged=!1;this._startTime=t.timeStamp||(new Date).getTime();this._moveDist=0;this._prevMouseX=this._startMouseX=i.clientX;this._startMouseY=i.clientY}},_onDragMove:function(n){var f=n.timeStamp||(new Date).getTime(),i,u,t,r;if(this.hasTouch){if(this._lockYAxis||(u=n.originalEvent.touches,u.length>1))return!1;if(i=u[0],Math.abs(i.clientY-this._startMouseY)>Math.abs(i.clientX-this._startMouseX)+3)return this.settings.lockAxis&&(this._lockYAxis=!0),!1;n.preventDefault()}else i=n,n.preventDefault();return this._latestDragX=i.clientX,this._lastDragPosition=this._currentDragPosition,t=i.clientX-this._prevMouseX,this._lastDragPosition!=t&&(this._currentDragPosition=t),t!=0&&(r=this._startPos+this._moveDist,r>=0?(t=t/4,this._disableLeftArrow()):r<=this.carouselWidth-this._maxXPos?(this._disableRightArrow(),t=t/4):this._enableArrows(),this._moveDist+=t,this.setXPos(r),this.settings.scrollbar&&this.setXPos(this._scrollbarDist*(-r/(this._maxXPos-this.carouselWidth)),!0)),this._prevMouseX=i.clientX,f-this._startTime>350&&(this._startTime=f,this._accelerationX=i.clientX),this.settings.onDragStart!==null&&this.settings.onDragStart.call(this),!1},_onDragRelease:function(t){var e,f,s,p,w,c;if(this._isDragging){if(e=this,this._isDragging=!1,this._setGrabCursor(),this.endPos=this._getXPos(),this.isdrag=!1,n(document).unbind(this._moveEvent).unbind(this._upEvent),this.endPos==this._startPos){this._successfullyDragged=!1;this.settings.scrollbarAutoHide&&this._hideScrollbar();return}this._successfullyDragged=!0;var a=this._latestDragX-this._accelerationX,g=Math.max(40,(t.timeStamp||(new Date).getTime())-this._startTime),o=.5,v=2,r=Math.abs(a)/g;function y(n){return n>0?n=0:n<e.carouselWidth-e._maxXPos&&(n=e.carouselWidth-e._maxXPos),n}if(this.settings.snapToItems){this.autoplay&&this.settings.autoplayStopAtAction&&this.stopAutoplay();var h=Boolean(this._startMouseX-this._prevMouseX>0),u=y(this._getXPos()),i=this._getItemAtPos(u).index;if(this._pagingEnabled?(h&&(u=Math.max(u-this.carouselWidth-1,1-e._maxXPos),i=this._getItemAtPos(u).index,i===undefined&&(i=this.numItems-1)),w=this._getPageIdFromItemId(i),i=w*this._itemsPerMove):i=i+(h?this._itemsPerMove:-this._itemsPerMove+1),i=h?Math.min(i,this.numItems-1):Math.max(i,0),c=this.items[i],this._updatePagingNav(i),c){u=y(-c.posX);var b=Math.abs(this.endPos-u),k=Math.max(b*1.08/r,150),d=Boolean(k<180),l=b*.08;h&&(l=l*-1);this.animateTo(d?u+l:u,Math.min(k,400),"easeOutSine",d,u,300,"easeOutCubic")}}else f=0,r<=2?(o=this._baseFriction*3.5,f=0):r>2&&r<=3?(o=this._baseFriction*4,f=200):r>3&&(f=300,r>4&&(r=4,f=400,o=this._baseFriction*6),o=this._baseFriction*5),s=r*r*v/(2*o),s=s*(a<0?-1:1),p=r*v/o+f,this.endPos+s>0?this.endPos>0?this.animateTo(0,800,"easeOutCubic"):this.animateTo(this.carouselWidth/10*((f+200)/1e3),Math.abs(this.endPos)*1.1/r,"easeOutSine",!0,0,400,"easeOutCubic"):this.endPos+s<this.carouselWidth-this._maxXPos?this.endPos<this.carouselWidth-this._maxXPos?this.animateTo(this.carouselWidth-this._maxXPos,800,"easeOutCubic"):this.animateTo(this.carouselWidth-this._maxXPos-this.carouselWidth/10*((f+200)/1e3),Math.abs(this.carouselWidth-this._maxXPos-this.endPos)*1.1/r,"easeOutSine",!0,this.carouselWidth-this._maxXPos,400,"easeOutCubic"):this.animateTo(this.endPos+s,p,"easeOutCubic");this.settings.onDragRelease!==null&&this.settings.onDragRelease.call(this)}return!1}
6,_updateDirectionNav:function(n){n===undefined&&(n=this._getXPos());this.settings.loopItems||(n>=0?this._disableLeftArrow():n<=this.carouselWidth-this._maxXPos?this._disableRightArrow():this._enableArrows())},_setGrabCursor:function(){this._grabCursor?this._itemsWrapper.css("cursor",this._grabCursor):(this._itemsWrapper.removeClass("grabbing-cursor"),this._itemsWrapper.addClass("grab-cursor"))},_setGrabbingCursor:function(){this._grabbingCursor?this._itemsWrapper.css("cursor",this._grabbingCursor):(this._itemsWrapper.removeClass("grab-cursor"),this._itemsWrapper.addClass("grabbing-cursor"))}};n.fn.touchCarousel=function(i){return this.each(function(){var r=new t(n(this),i);n(this).data("touchCarousel",r)})};n.fn.touchCarousel.defaults={itemsPerMove:1,snapToItems:!1,pagingNav:!1,pagingNavControls:!0,autoplay:!1,autoplayDelay:3e3,autoplayStopAtAction:!0,scrollbar:!0,scrollbarAutoHide:!1,scrollbarTheme:"dark",transitionSpeed:600,directionNav:!0,directionNavAutoHide:!1,loopItems:!1,keyboardNav:!1,dragUsingMouse:!0,scrollToLast:!1,itemFallbackWidth:500,baseMouseFriction:.0012,baseTouchFriction:.0008,lockAxis:!0,useWebkit3d:!1,onAnimStart:null,onAnimComplete:null,onDragStart:null,onDragRelease:null,GetObj:null};n.fn.touchCarousel.settings={};n.extend(jQuery.easing,{easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i}})})(jQuery);function DW_ApplyVerticalThumbs(){var n,r,u,i;if(typeof customVerticalThumbnail=="undefined"||customVerticalThumbnail!==!0||(n=document.getElementById("thumbnavigator"),r=document.getElementById("tplThumbNavVertical"),!n||!r))return!1;u=document.createElement("div");u.innerHTML=r.innerHTML.trim();n.parentNode.replaceChild(u.firstChild,n);var f=window.DW_VDP_SliderWidth||"685px",e=window.DW_VDP_SliderHeight||"550px",t=document.querySelector("#slider_inv_container .slide_outer");return t&&(t.style.width=f,t.style.height=e,i=t.querySelector('[data-u="slides"]'),i&&(i.style.width=f,i.style.height=e)),!0}jQuery(document).ready(function(n){var h,f,e,o,p,c,it,w,i,b,d,t,l,s,u,a,k,v,r,y,tt;if(n("#slider_inv_container").length>0){h=[{$Duration:1200,$During:{$Left:[.3,.7]},$FlyDirection:2,$Easing:{$Left:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseLinear},$ScaleHorizontal:.3,$Opacity:2}];f=typeof customVDPFillModeVal!="undefined"?customVDPFillModeVal:5;typeof customFillMode!="undefined"&&(f=customFillMode);e=2500;typeof customSlideDuration!="undefined"&&(e=customSlideDuration);o=!0;typeof customAutoPlay!="undefined"&&(o=customAutoPlay);p=!1;typeof customThumbnail!="undefined"&&(p=customThumbnail);c=!1;typeof customVerticalThumbnail!="undefined"&&(c=customVerticalThumbnail);p==!0?w={$HWA:!1,$FillMode:f,$AutoPlay:o,$Loop:0,$AutoPlayInterval:e,$PauseOnHover:1,$DragOrientation:1,$ArrowKeyNavigation:!0,$SlideDuration:800,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:h,$TransitionsOrder:1,$ShowLink:!0},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2},$ThumbnailNavigatorOptions:{$Class:$JssorThumbnailNavigator$,$Loop:2,$Width:400,$Height:306,$AutoCenter:0,$Orientation:1,$ChanceToShow:2,$ActionMode:1,$SpacingX:3,$SpacingY:3,$DisplayPieces:7,$ParkingPosition:386}}:c==!0?(it=DW_ApplyVerticalThumbs(),w={$HWA:!1,$FillMode:f,$AutoPlay:o,$Loop:0,$AutoPlayInterval:e,$PauseOnHover:1,$DragOrientation:1,$ArrowKeyNavigation:!0,$SlideDuration:800,$LazyLoading:1,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:h,$TransitionsOrder:1,$ShowLink:!0,$PlayOrientation:2},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2,$AutoCenter:2},$ThumbnailNavigatorOptions:{$Class:$JssorThumbnailNavigator$,$Loop:2,$Cols:3,$ChanceToShow:2,$ActionMode:1,$DisplayPieces:3,$PlayOrientation:2,$Orientation:2,$AutoCenter:1,$SpacingX:3,$SpacingY:3}}):w={$HWA:!1,$FillMode:f,$AutoPlay:o,$Loop:0,$AutoPlayInterval:e,$PauseOnHover:1,$DragOrientation:1,$ArrowKeyNavigation:!0,$SlideDuration:800,$LazyLoading:1,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:h,$TransitionsOrder:1,$ShowLink:!0},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2},$ThumbnailNavigatorOptions:{$Class:$JssorThumbnailNavigator$,$Loop:2,$Rows:7,$Width:400,$Height:306,$AutoCenter:1,$Orientation:2,$ChanceToShow:2,$ActionMode:1,$SpacingX:3,$SpacingY:3,$DisplayPieces:3,$ParkingPosition:386}};i=new $JssorSlider$("slider_inv_container",w);b=!1;typeof CustomOverlayOnFirstImageOnly!="undefined"&&(b=CustomOverlayOnFirstImageOnly);b==!0&&i.$On($JssorSlider$.$EVT_PARK,d);d=function(t){t>0?n("#dwDetailsSoldDiv").css("visibility","hidden"):n("#dwDetailsSoldDiv").css("visibility","visible")};t=i.$SlidesCount();n("#spnImageCount").html(t);c==!0?t>3&&(l=Math.ceil(t/7),s=n("#thumbnavigatorvertical").height(),g=s):t>7&&(l=Math.ceil(t/7),s=n("#thumbnavigator").height(),Slider_Height=l>2?3*s:l>1?2*s:s);function rt(){if(t>7){var r=n("#slider_inv_container div:first").css("transform"),i=parseFloat(r.match(/-?[\d\.]+/g)),u=n(".slides").height(),f=n("#thumbnavigator .p").height(),e=u*i+f*i;af$("slider_inv_container")!=null&&(af$("slider_inv_container").style.height=e+"px")}}var g=function(){var i=n("#slider_inv_container div:first").css("transform"),t=parseFloat(i.match(/-?[\d\.]+/g)),r=n(".slides").height(),u=r*t+t-10;af$("slider_inv_container")!=null&&(af$("slider_inv_container").style.height=u+"px")},ut=function(){if(t>7&&n("#slider_inv_container").length>0){var r=n("#slider_inv_container div:first").css("transform"),i=parseFloat(r.match(/-?[\d\.]+/g)),u=n(".slides").height(),f=u*i+Slider_Height*i;af$("slider_inv_container")!=null&&(af$("slider_inv_container").style.height=f+"px")}},nt=function(){n("#IndImageCount").text(i.$CurrentIndex()+1+"/"+i.$SlidesCount()+" Photos");n("#IndImageTotalCount").text(i.$SlidesCount());var t=af$("Invimg_Description");if(t)try{t.innerHTML=i.$SlidesDescription()!=null?i.$SlidesDescription():""}catch(r){}typeof showFirstOverlay=="function"&&showFirstOverlay(i.$CurrentIndex())};nt();i.$On($JssorSlider$.$EVT_PARK,nt);u=function(){var t=Math.max(Math.min(parseInt(n("#DivImgContainer").css("width").replace("px",""))-(parseInt(n("#DivImgContainer").css("padding-left").replace("px",""))+parseInt(n("#DivImgContainer").css("padding-right").replace("px","")))),100);i.$ScaleWidth(t-15);p==!0?rt():c==!0?g():ut()};IsMobile==!0&&u();n(window).on("load",function(){u();tt()});n(window).on("resize",function(){u()});n(window).on("orientationchange",function(){u()});if(a=[],k=0,document.getElementById("thumbnavigator")!=null)for(v=document.getElementById("thumbnavigator").getElementsByClassName("w"),r=0;r<v.length;r++)for(y=0;y<v[r].childNodes.length;y++)v[r].childNodes[y].tagName=="IMG"&&(a[k]=v[r].childNodes[y].src,k++);
6tt=function(){function s(){var p,v,s,w,b,k,c,y,l;if(i){af$("slider_inv_container_1").style.display="none";n("#slider_inv_container_1").remove();n("#dwInvOverlay").after(HTML1);u();n(window).on("load",function(){u()});n(window).on("resize",function(){u()});n(window).on("orientationchange",function(){u()});i=!1;af$("btnMore")!=null&&(af$("btnMore").innerHTML="Show More",n("html, body").animate({scrollTop:n("#slider_inv_container").offset().top},700))}else if(i=!0,p={$HWA:!1,$FillMode:f,$AutoPlay:o,$Loop:0,$AutoPlayInterval:e,$PauseOnHover:1,$DragOrientation:1,$ArrowKeyNavigation:!0,$SlideDuration:800,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:h,$TransitionsOrder:1,$ShowLink:!0},$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:1},$ThumbnailNavigatorOptions:{$Class:$JssorThumbnailNavigator$,$Loop:1,$Rows:7,$Width:400,$Height:1080,$Orientation:2,$AutoCenter:1,$DragOrientation:0,$ChanceToShow:2,$ActionMode:1,$SpacingX:3,$SpacingY:3,$DisplayPieces:20,$ParkingPosition:386}},a!=null){for(v="",s=0,HTML='<div id="slider_inv_container_1" style="position:relative;width:900px;height:780px;overflow:hidden;display:none;margin-bottom: 1px;" class="matpaymboox "><!-- Loading Screen --><div u="loading" style="position: absolute; top: 0px; left: 0px;z-index:99"><div class="OverlayShade" style="position: absolute; display: block;top: 0px; left: 0px;width: 100%;height:100%;"><\/div><div style="position: absolute; display: block; background: url(/1/images/loading.gif) no-repeat center center;top: 0px; left: 0px;width: 100%;height:100%;"><\/div><\/div><!-- Slides Container 2--><div style=" float:left;width: 900px; height: 675px; padding:0px;"><div class="imgCount_1"> <b> <span id="IndImageCount_1"><\/span> <\/b><\/div><div u="slides" id="Main_Slider2" style="cursor: move; position: absolute; width: 900px; height: 675px; overflow: hidden; " class="slides"><\/div><span id="dwDetailsSoldDiv_1" class="dwDetailsSoldimgShow" style="display:none;"><\/span><div class="CssClassCustomOverlay" id="DwCssClassCustomOverlay_1"><\/div><\/div><!-- Arrow Navigator Skin Begin --><!-- Arrow Left --><span u="arrowleft" class="jssora07l" style="width: 40px; height: 40px; top: 330px; left: 8px;"><i class="fa fa-chevron-left fa-nav" aria-hidden="true"><\/i><\/span><!-- Arrow Right --><span u="arrowright" class="jssora07r" style="width: 40px; height: 40px; top: 330px; right: 8px"><i class="fa fa-chevron-right fa-nav" aria-hidden="true"><\/i><\/span><!-- Arrow Navigator Skin End --><!-- Thumbnail Navigator Skin Begin --><div u="thumbnavigator" id="thumbnavigator_1" class="jssorVDP" style="position: absolute; width: 900px !important; height: 102px; margin:0; bottom: 0px; top:678px;"><!-- Thumbnail Item Skin Begin --><div u="slides" style="cursor: move; margin:0 !important;"><div u="prototype" class="p" style="position: absolute; width:126px; height: 102px; top: 0; left:0; margin:0 !important;"><div class=w><div data-u="thumbnailtemplate" class="t"><\/div><\/div><div class=c><\/div><\/div><\/div><!-- Thumbnail Item Skin End --><\/div><!-- Thumbnail Navigator Skin End --><\/div>',r=s;r<t;r++){if(s>t)break;else v+='<div data-p="290.00" style="display: none;"><img data-u="image" src="'+a[s]+'" onerror="this.onerror=null;this.src=\'/1/images/InvnoImage/noimage.jpg\';" /><img data-u="thumb" src="'+a[s]+'" onerror="this.onerror=null;this.src=\'/1/images/InvnoImage/noimage.jpg\';" /><\/div>';s++}r=s-1;n("#dwInvOverlay").after(HTML);w=Math.ceil(t/7)*106;af$("Main_Slider2").innerHTML+=v;b=n(".slides").height();k=b+w;af$("slider_inv_container_1").style.height=k+"px";n("#dwDetailsSoldDiv").is(".dwDetailsSoldimgShow")&&(af$("dwDetailsSoldDiv_1").style.display="block");HTML1=af$("slider_inv_container");n("#slider_inv_container").remove();af$("slider_inv_container_1").style.display="block";c=new $JssorSlider$("slider_inv_container_1",p);y=function(){n("#IndImageCount_1").text(c.$CurrentIndex()+1+"/"+c.$SlidesCount()+" Photos");typeof showFirstOverlay=="function"&&showFirstOverlay(c.$CurrentIndex())};y();c.$On($JssorSlider$.$EVT_PARK,y);l=function(){var t=Math.max(Math.min(parseInt(n("#DivImgContainer").css("width").replace("px",""))-(parseInt(n("#DivImgContainer").css("padding-left").replace("px",""))+parseInt(n("#DivImgContainer").css("padding-right").replace("px","")))),100);c.$ScaleWidth(t-15)};IsMobile==!0&&l();l();n(window).on("load",function(){l()});n(window).on("resize",function(){l()});n(window).on("orientationchange",function(){l()});typeof CustomVdpSider!="undefined"&&typeof CustomVdpSider=="function"&&CustomVdpSider();af$("btnMore")!=null&&(af$("btnMore").innerHTML="Show Less")}af$("slider_inv_container_1")!=null&&setTimeout(function(){SetHtmlOverlay()},200)}var i=!1;t>7&&(l>3&&(af$("btnMore").style.display="block"),typeof customThumbnailShowMore!="undefined"&&customThumbnailShowMore==!0&&s(),n("a#btnMore").click(function(){s()}))}}n("#slider_inv_container_partial").length>0&&(window.jssor_partial_slider_init=function(){function t(){var o=i.$Elmt.parentNode,r=o.clientWidth,s=Math.max(Math.min(parseInt(n("#DivImgContainer").css("width").replace("px",""))-(parseInt(n("#DivImgContainer").css("padding-left").replace("px",""))+parseInt(n("#DivImgContainer").css("padding-right").replace("px","")))),100),f,e;
6r?(f=Math.min(u||r,r),e=Math.min(f,s-15),i.$ScaleWidth(e)):window.setTimeout(t,30)}var r={$AutoPlay:1,$SlideWidth:900,$Align:229,$Cols:2,$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$},$BulletNavigatorOptions:{$Class:$JssorBulletNavigator$,$SpacingX:16,$SpacingY:16}},i=new $JssorSlider$("slider_inv_container_partial",r),u=1358;n(".slides img").each(function(){/stockPhotos/.test(n(this).attr("src"))&&(n(".slides img").addClass("stockImgSlide"),n(".slides").addClass("stockImgSlideOuter"),n("#Slider_Container").css("background-color","#fff"))});t();$Jssor$.$AddEvent(window,"load",t);$Jssor$.$AddEvent(window,"resize",t);$Jssor$.$AddEvent(window,"orientationchange",t)},jssor_partial_slider_init());n("#slider_inv_container_carouselslider").length>0&&(window.jssor_inv_container_carouselslider=function(){function t(){var i=u.$Elmt.parentNode,r=i.clientWidth,o=Math.max(Math.min(parseInt(n("#DivImgSubContainer").css("width").replace("px",""))-(parseInt(n("#DivImgSubContainer").css("padding-left").replace("px",""))+parseInt(n("#DivImgSubContainer").css("padding-right").replace("px","")))),100),f,e;i?(f=Math.min(r,r),e=Math.min(f,o),u.$ScaleWidth(e)):window.setTimeout(t,30)}var i="",r="",f=2,e,u;viewportWidth()>767?(r=640,i=427):(r=640,i=427,f=0);e={$HWA:!1,$FillMode:5,$AutoPlay:!1,$SlideEasing:$JssorEasing$.$EaseLinear,$SlideDuration:160,$MinDragOffsetToSlide:20,$SlideWidth:r,$SlideHeight:i,$SlideSpacing:3,$DisplayPieces:f,$ParkingPosition:0,$UISearchMode:1,$PlayOrientation:1,$DragOrientation:1,$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:3}};u=new $JssorSlider$("slider_inv_container_carouselslider",e);t();n(window).bind("load",t);n(window).bind("resize",t);n(window).bind("orientationchange",t)},jssor_inv_container_carouselslider())});function calcDownPayment(){af$("txtDownpayment").value=af$("hdnDownpaymentPercentage").value>100?af$("hdnDownpaymentPercentage").value:decRound(af$("txtPurchasePrice").value*(af$("hdnDownpaymentPercentage").value/100))}function calcAmountFinanced(){var u=0,n,t,i,r;trim(af$("txtDownpayment").value).length>0&&(u=parseFloat(af$("txtDownpayment").value));n=0;af$("hdnExtraFees")!=null&&(n=parseFloat(af$("hdnExtraFees").value));t=0;trim(af$("txtTradeValue").value).length>0&&(t=parseFloat(af$("txtTradeValue").value));i=parseInt(af$("txtPurchasePrice").value)+n-(t+u);r=(parseInt(af$("txtPurchasePrice").value)+n-t)*(af$("txtDefaultTaxValue").value/100);af$("hd_TradeInValueTaxable").value=="True"&&(r=(parseInt(af$("txtPurchasePrice").value)+n)*(af$("txtDefaultTaxValue").value/100));i+=Math.max(r,0);af$("txtAmountFinanced").innerHTML=i>0?formatNum(i):"0.00";calcEstimatedPmts()}function SetLoanTenure(n){af$("hd_LoanTerm").value=n}function setActiveClass(){}function calcEstimatedPmts(){var t=0,i,n;trim(af$("txtAPR").value).length>0&&(t=parseFloat(af$("txtAPR").value));i=af$("hd_LoanTerm").value;n=af$("txtAmountFinanced").innerText||af$("txtAmountFinanced").textContent;n=n.replace(/,/g,"");var r=0,u=0,f=0;n>0&&(u=t/1200,t==0?r=n/i:(f=Math.pow(1+u,i),r=n*u*f/(f-1)));af$("htmSpan_EstimatedPayments").innerHTML="$"+formatNum(r)+"<small>/month<\/small>"}function validateAPR(){var n=0;trim(af$("txtAPR").value).length>0&&(n=parseFloat(af$("txtAPR").value));n>=30&&(af$("txtAPR").value=n.substring(0,n.length-1));calcEstimatedPmts()}function validateSalesTax(){var n=0;trim(af$("txtDefaultTaxValue").value).length>0&&(n=parseFloat(af$("txtDefaultTaxValue").value));n>=100&&(af$("txtDefaultTaxValue").value=n.substring(0,n.length-1));calcAmountFinanced()}function Vdp_myPopup_AFDealerWebVideo_start(n){af$("div_myPopup_AFDWVideoCnt").innerHTML=n;var t=document.getElementById("div_myPopup_AFDWVideoCnt").firstElementChild;(t.src&&t.src.includes("DWVideo.html")||"ontouchstart"in document.documentElement)&&(t.removeAttribute("width"),t.removeAttribute("height"));GE_DW_Set_myPopup_invoked_function("div_myPopup_AFDWVideo");$("#div_myPopup_AFDWVideo").on("hidden.bs.modal",function(){$("#div_myPopup_AFDWVideoCnt").html("")})}function Vdp_myPopup_myPopup_DealerWebVideo_start(n,t){t=="EMB"?Vdp_myPopup_AFDealerWebVideo_start(n):t=="URL"&&window.open(n)}function LoadEdmundReviews(n,t){var r=af$("hdnInventoryMake").value,u=af$("hdnInventoryModel").value,f=af$("hdnInventoryYear").value,i;trim(af$("EdmundCollapse"+t+"Cont").innerHTML).length==0&&(i='{strInventoryMake: "'+r+'", strInventoryModel: "'+u+'", intInventoryYear: '+f+', strInventoryType: "'+n+'"}',JqueryAjaxCall("POST","GetInventoryReview",i))}function GetInventoryReview_Callback(n){if(n!=null&&n.length==2)if($("#EdmundCollapse4Cont").addClass("in"),$("#EdmundCollapse4Cont").addClass("active"),n[1]!=""){var t=af$("hdnInventoryYear").value+" "+af$("hdnInventoryMake").value+" "+af$("hdnInventoryModel").value+" ";af$("EdmundCollapse"+n[0]+"Cont").innerHTML='<div class="Header">Selected reviews of '+t+"by owners<\/div>"+n[1];
6$("#EdmundCollapse4Cont .fullStar").html('<i class="fa fa-star" aria-hidden="true" style="color:#f39f25"><\/i>');$("#Edmunds_Logo2").css("display","block")}else af$("EdmundCollapse"+n[0]+"Cont").innerHTML="<p>No reviews available at the moment!<\/p>",$("#Edmunds_Logo2").css("display","none")}function LoadEdmundReviewsList(){var n=af$("hdnInventoryMake").value,t=af$("hdnInventoryModel").value,i=af$("hdnInventoryYear").value,r='{strInventoryMake: "'+n+'", strInventoryModel: "'+t+'", intInventoryYear: '+i+"}";JqueryAjaxCall("POST","GetInventoryReviewList",r)}function GetInventoryReviewList_Callback(n){var i,t;if(af$("divEdmunds1").style.display=" none",af$("divEdmunds2").style.display=" none",af$("divEdmunds3").style.display=" none",$("#EdmundCollapse1Cont").addClass("in"),$("#EdmundCollapse1Cont").addClass("active"),n!=null)for(i=0,t=1;t<=n.length;t++)af$("divEdmundsCont_"+t).innerHTML=n[t-1].FieldName,af$("EdmundCollapse"+t+"Cont").innerHTML=n[t-1].Description,af$("divEdmunds"+t).style.display="block",af$("ulEdmunds").style.display="block",$("#divEdmunds1").addClass("active"),$("#divEdmunds2").removeClass("active"),$("#divEdmunds3").removeClass("active");else af$("EdmundCollapse1Cont").innerHTML="<p>No reviews available at the moment!<\/p>",af$("ulEdmunds").style.display="none",af$("Edmunds_Logo").style.display="none"}function CreateRecentlyScrollBar_VDP(){var n,t,i,r;$("#DWRecentlyViewed").length>0&&(typeof showRecentlyViewed!="undefined"&&showRecentlyViewed==!1&&(blnShowRecentlyViewed=!1),blnShowRecentlyViewed==!0?(typeof $("#DWRecentlyViewed").data("owlCarousel")!="undefined"&&($("#DWRecentlyViewed").data("owlCarousel").destroy(),$("#DWRecentlyViewed").removeClass("owl-carousel")),$("#DWRecentlyViewedCover").mCustomScrollbar("destroy"),$("#recently_Viewed_Cov").appendTo("#DWRecentViewOuter")):$("#recently_Viewed_Cov").hide());ResizeSimilarSoldCars();n=viewportWidth();n<993?(typeof $("#DWRecentlyViewed").data("owlCarousel")!="undefined"&&($("#DWRecentlyViewed").data("owlCarousel").destroy(),$("#DWRecentlyViewed").removeClass("owl-carousel")),$("#DWRecentlyViewedCover").mCustomScrollbar("destroy"),n>767&&n<993&&($owlRecent=$("#DWRecentlyViewed").owlCarousel(getOptionsRecently()),$("#DWRecentlyViewedCover").mCustomScrollbar("destroy"))):(t=$("#DivRecentVehiclesRight").offset().top,i=$("#Div_tab_content_Cont").offset().top+$("#Div_tab_content_Cont").outerHeight(),vScrollheightRecent=Math.abs(i-t)-82,r=vScrollheightRecent/470,r>=4?(typeof $("#DWRecentlyViewed").data("owlCarousel")!="undefined"&&($("#DWRecentlyViewed").data("owlCarousel").destroy(),$("#DWRecentlyViewed").removeClass("owl-carousel")),$("#recently_Viewed_Cov").appendTo("#DivRecentVehiclesRight"),setTimeout(function(){var n=$("#DivRecentVehiclesRight .RV_con:first").outerHeight(!0)*5,t=0;t=n>vScrollheightRecent?vScrollheightRecent:n;$("#DWRecentlyViewedCover").mCustomScrollbar({setHeight:t,theme:"minimal-dark"})},1e3)):($owlRecent=$("#DWRecentlyViewed").owlCarousel(getOptionsRecently()),$("#DWRecentlyViewedCover").mCustomScrollbar("destroy")))}function ResizeSimilarSoldCars(){if($("#DeatilsPageSimilarVehicle").length>0){var r=document.getElementById("DeatilsPageSimilarVehicle"),t=parseFloat(window.getComputedStyle(r).width),n=317,u=parseInt(t/n);n=t/u-.11;$(".specialcars").outerWidth(n);var f=$(".specialcars img.dwSimilarImg").innerWidth(),e=f/900,i=675*e;$(".photo").height(i);$(".cssoverlay").height(i)}}function setVideoHeight(){}function TouchGetObj(){VDPGbl.Carousel=this}function ccDetailMakeTouchTabs(){$("#divSwipeVDP").touchCarousel({pagingNav:!1,scrollbar:!0,directionNavAutoHide:!0,itemsPerMove:1,loopItems:!0,directionNav:!1,autoplay:!1,autoplayDelay:2e3,useWebkit3d:!0,transitionSpeed:400,pagingNavControls:!1,GetObj:TouchGetObj})}function Vdp_myPopup_invoked_function_carfax(n,t){if(n.indexOf("carfax")>-1)return window.open(n),!1;var i=$(window).height();IsMobile==!1&&(i=i-200,$("#vehicle-history-modal-dialog").width("100%"));IsMobile==!0&&t=="AutoCheck"?window.open(n):($("#myPopup_Vehicle_History_Body").html('<iframe src="'+n+'" frameborder="0" scrolling="yes" style="width:100%; height:'+i+'px;"><\/iframe>
6'),GE_DW_Set_myPopup_invoked_function("myPopup_Vehicle_History","center"))}function GetClickedId(n){clickedID=n;setTimeout(function(){AjaxCallGetSimilarVehicles();af$("hdnShowVehicleNotAvilable").value=="False"&&CreateRecentlyScrollBar_VDP()},500)}function AjaxCallGetSimilarVehicles(){if($("#owl-demo-similar").length>0&&blnShowSimilarVehicles==!0)if(lstSimilarVehicles!=null)typeof $("#owl-demo-similar").data("owlCarousel")!="undefined"&&($("#owl-demo-similar").data("owlCarousel").destroy(),$("#owl-demo-similar").removeClass("owl-carousel")),$("#owl-demo-similar").mCustomScrollbar("destroy"),$("#DWsimilatvehicles").appendTo("#similar-cars"),$("#DWsimilatvehicles").hide(),af$("owl-demo-similar").innerHTML="",GetSimilarVehicles_Callback(lstSimilarVehicles);else{var n=InventoryEncryptID,t='{ strCurrentURL: "'+af$("hdnCurrentURL").value+'", strInventoryId: "'+n+'"}';JqueryAjaxCall("POST","GetSimilarVehicles",t)}}function ResizeSimilarImg(){if($("#owl-demo-similar").length>0){var t=$(".RV_con img.dwSimilarImg").innerWidth(),i=t/900,n=675*i;$("#owl-demo-similar .stockbox").length>0&&$("#owl-demo-similar .stockbox").height(n);$(".dwBoxSimilarImg").length>0&&$(".dwBoxSimilarImg").height(n)}}function ResizeRecentlyImg(){if($("#DWRecentlyViewed").length>0){var t=$("#DWRecentlyViewed .RV_con img").innerWidth(),i=t/900,n=675*i;$("#DWRecentlyViewed .stockbox").length>0&&$("#DWRecentlyViewed .stockbox").height(n);$(".dwBoxRecentlyImg").length>0&&$(".dwBoxRecentlyImg").height(n)}}function GetSimilarVehicles_Callback(n){var h,o,s,e,u;if(lstSimilarVehicles=n,h=af$("hdnInventoryModel").value,(DWDealerID==4275||DWDealerID==4284)&&n!=null&&n.length>7&&(n.length=7),n!=null&&n.length>0){var f="",t=0,i="",r=0;for(af$("DWsimilatvehiclesHeadCount").innerHTML=n.length,o="",s=0,t=0;t<n.length;++t)e="",u="",n[t].NewOrUsed==!0?(e="<span style='color:red;'>New<\/span>",u="New"):u="Used",o=n[t].TrueMileageFlag==!0?"<span class='dw-truemileunknown'>* (true mileage unknown)<\/span>":"",n[t].PriceHtml=="0.00"?i="":(i=n[t].PriceHtml,s=extractDWPriceValues(i)),h==n[t].Model&&(i=n[t].PriceHtml=="0.00"?"":n[t].PriceHtml,f+='<div class="RV_con_o"><div class="RV_con" id="RV_con_'+r+'"><a target="_blank" href="'+n[t].InventoryDetailURL+'">'+n[t].ImageHtml+'<\/a><span><div class="txtOvrF2">'+e+" "+n[t].Year+" "+n[t].Make+" "+n[t].Model+"<\/div>"+n[t].Trim+'<br /><span class="Dw_simil_miles" id="Dw_simil_miles_'+r+'">'+formatNumInt(n[t].Miles)+" Miles"+o+'<\/span> <\/span><i class="DwDetailPrice" id="DwDetailPrice_'+r+'">'+i+" <\/i>",f+='<a href="javascript:void(0)" onclick=\'GE_DW_Set_myPopup_invoked_function("myPopup_Book_TestDrive","center","'+n[t].URLEncodedEncrInvID+'","'+n[t].Vin+'","'+s+'","'+n[t].Make+'","'+encodeURIComponent(n[t].Model)+'","'+n[t].Year+'","'+encodeURIComponent(n[t].Transmission)+'","'+encodeURIComponent(n[t].BodyType)+'","'+u+'","'+encodeURIComponent(n[t].ExteriorColor)+'")\' class="all00 DWTestDrive"><div class="col-item"><div class="infodrive info">Schedule a test drive<\/div><\/div><\/a><\/div><\/div>',r++);for(t=0;t<n.length;++t)o=n[t].TrueMileageFlag==!0?"<span class='dw-truemileunknown'>* (true mileage unknown)<\/span>":"",e="",u="",n[t].NewOrUsed==!0?(e="<span style='color:red;'>New<\/span>",u="New"):u="Used",n[t].PriceHtml=="0.00"?i="":(i=n[t].PriceHtml,s=extractDWPriceValues(i)),h!=n[t].Model&&(i=n[t].PriceHtml=="0.00"?"":n[t].PriceHtml,f+='<div class="RV_con_o"><div class="RV_con" id="RV_con_'+r+'"><a target="_blank" href="'+n[t].InventoryDetailURL+'">'+n[t].ImageHtml+'<\/a><span><div class="txtOvrF2">'+e+" "+n[t].Year+" "+n[t].Make+" "+n[t].Model+"<\/div>"+n[t].Trim+'<br /><span class="Dw_simil_miles" id="Dw_simil_miles_'+r+'">'+formatNumInt(n[t].Miles)+" Miles"+o+'<\/span> <\/span><i class="DwDetailPrice" id="DwDetailPrice_'+r+'">'+i+" <\/i>",f+='<a href="javascript:void(0)" onclick=\'GE_DW_Set_myPopup_invoked_function("myPopup_Book_TestDrive","center","'+n[t].URLEncodedEncrInvID+'","'+n[t].Vin+'","'+s+'","'+n[t].Make+'","'+encodeURIComponent(n[t].Model)+'","'+n[t].Year+'","'+encodeURIComponent(n[t].Transmission)+'","'+encodeURIComponent(n[t].BodyType)+'","'+u+'","'+encodeURIComponent(n[t].ExteriorColor)+'")\' class="all00 DWTestDrive"><div class="col-item"><div class="infodrive info">Schedule a test drive<\/div><\/div><\/a><\/div><\/div>',r++);
6af$("owl-demo-similar").innerHTML=DWDealerID==4275?'<div id="slider1_containersimiler" class="dwc-SimilarSlider"><div data-u="loading" class="dw-jssor-loading"><div class="dw-jssor-loading-1"><\/div><div class="dw-jssor-loading-2 dw-SimilarSlider-ht"><\/div><\/div><div class="dwc-SimilarSlides dw-SimilarSlider-ht" data-u="slides">'+f+"<\/div><\/div>":f;typeof SlideSimilarVehiclesCustom!="undefined"&&typeof SlideSimilarVehiclesCustom=="function"?SlideSimilarVehiclesCustom():SlideSimilarVehicles();typeof LoadCustomSimilarNadaRetail!="undefined"&&typeof LoadCustomSimilarNadaRetail=="function"&&LoadCustomSimilarNadaRetail();typeof SetHtmlOverlay!="undefined"&&typeof SetHtmlOverlay=="function"&&(SetHtmlOverlay(),addEvent(window,"resize",SetHtmlOverlay));typeof Cust_SetHtmlImageForDW!="undefined"&&typeof Cust_SetHtmlImageForDW=="function"&&(Cust_SetHtmlImageForDW(),addEvent(window,"resize",Cust_SetHtmlImageForDW))}else $("#DWsimilatvehicles").hide();ResizeSimilarImg()}function SlideSimilarVehicles(){typeof $("#owl-demo-similar").data("owlCarousel")!="undefined"&&($("#owl-demo-similar").data("owlCarousel").destroy(),$("#owl-demo-similar").removeClass("owl-carousel"));$("#owl-demo-similar").mCustomScrollbar("destroy");(clickedID=="dwSimilarCars"||DWDealerID==JMDealerid)&&($("#DWsimilatvehicles").appendTo("#similar-cars"),$("#DWsimilatvehicles").show(),$owlSimilar=$("#owl-demo-similar").owlCarousel(getOptionsSimilar()),$("#owl-demo-similar").mCustomScrollbar("destroy"))}function getOptionsSimilar(){var n=0,t=0,i,r,u;return IsMobile==!0?(n=2e3,t=500):(n=3e3,t=4e3),i=t,typeof customSlidespeed!="undefined"&&(i=customSlidespeed),r=4,u=$("#DWsimilatvehicles").innerWidth(),r=parseInt(u/300),{autoPlay:n,items:r,loop:!0,stopOnHover:!0,pullDrag:!1,freeDrag:!1,slideSpeed:i}}function vdp_myPopup_DealerUrlImage360_start(n){var t='<iframe width="960" id="iframe-360" height="540" src="'+n+'" frameborder="0" allowfullscreen><\/iframe>';af$("div_myPopup_AFDWUrlImage360Cnt")!=null&&(af$("div_myPopup_AFDWUrlImage360Cnt").innerHTML=t);GE_DW_Set_myPopup_invoked_function("div_myPopup_AFDWUrlImage360");$("#div_myPopup_AFDWUrlImage360").on("hidden.bs.modal",function(){$("#div_myPopup_AFDWUrlImage360Cnt").html("")}); 7//!function (e, s, t) { (t = e.createElement(s)).async = !0, t.src = "https://theta360.
7com/widgets.js", (e = e.getElementsByTagName(s)[0]).parentNode.insertBefore(t, e) }(document, "script"); 8}var iconOpen,iconClose,doScrollVDPRecent,$owlRecent,blnShowRecentlyViewed,VDPGbl,JMDealerid,$owlSimilar;$("#txtPurchasePrice").length>0&&calcAmountFinanced();iconOpen="fa fa-minus";iconClose="fa fa-plus";$(document).on("show.bs.collapse hide.bs.collapse",".accordion",function(n){var t=$(n.target);t.siblings(".accordion-heading").find("em").toggleClass(iconOpen+" "+iconClose);n.type=="show"&&t.prev(".accordion-heading").find(".accordion-toggle").addClass("active");n.type=="hide"&&$(this).find(".accordion-toggle").not(t).removeClass("active")});doScrollVDPRecent=!1;$(document).ready(function(){CurrentPN=="viewinventorydetails"&&(af$("hdnShowVehicleNotAvilable").value=="False"&&(addEvent(window,"resize",function(){CreateRecentlyScrollBar_VDP();ResizeRecentlyImg()}),$(window).bind("orientationchange",function(){CreateRecentlyScrollBar_VDP();ResizeRecentlyImg()}),$(window).bind("load",function(){CreateRecentlyScrollBar_VDP();ResizeRecentlyImg()}),$(window).scroll(function(){doScrollVDPRecent==!1&&(CreateRecentlyScrollBar_VDP(),doScrollVDPRecent=!0)}),setVideoHeight()),MakeVerticalAlignCenter("DIV_GeneralCarInfo","htmDivInvDetailsPriceAreaMain",5),$("#txtPurchasePrice").length>0&&($("#txtPurchasePrice").attr("type","tel"),$("#txtDownpayment").attr("type","tel"),$("#txtTradeValue").attr("type","tel"),$("#txtAPR").attr("type","tel"),$("#txtDefaultTaxValue").attr("type","tel")))});blnShowRecentlyViewed=!0;VDPGbl={Carousel:null};typeof fireSwipeFromCustomFolder=="undefined"&&ccDetailMakeTouchTabs();var lstSimilarVehicles=null,doScrollVDP=!1,clickedID,blnShowSimilarVehicles=!0;$(document).ready(function(){CurrentPN=="viewinventorydetails"&&(typeof SimilarVehicles!="undefined"&&SimilarVehicles==!1&&(blnShowSimilarVehicles=!1,$("#dwSimilarCars").hide()),$("#SlideNextSimalar").click(function(){owlsimilar.trigger("owl.next")}),$("#SlidePrevSimalar").click(function(){owlsimilar.trigger("owl.prev")}),$(".dwSwipeTab").click(function(){GetClickedId($(this).attr("id"))}),addEvent(window,"resize",function(){ResizeSimilarImg()}),$(window).bind("orientationchange",function(){ResizeSimilarImg()}),$(window).bind("load",function(){}),$(window).scroll(function(){doScrollVDP==!1&&(AjaxCallGetSimilarVehicles(),doScrollVDP=!0)}))});JMDealerid=467;if(typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||t[0]==1&&t[1]==9&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.5";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";u.resetText==null&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](u[t]==null?this.options[t]:u[t]);t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):n.prop("type")=="checkbox"&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");n(t.target).is('input[type="radio"]')||n(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.5";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=f.top?!1:"bottom":u+e<=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&&u<=i?"top":r!=null&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,f,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,e=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if(typeof r!="object"&&(u=e=r),typeof e=="function"&&(e=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.getState(h,s,e,u),this.affixed!=i){if(this.unpin!=null&&this.$element.css("top",""),f="affix"+(i?"-"+i:""),o=n.Event(f+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin=i=="bottom"?this.getPinnedOffset():null;n(window).width()>
8767&&(this.$element.removeClass(t.RESET).addClass(f).trigger(f.replace("affix","affixed")+".bs.affix"),typeof triggerCustomFunction!="undefined"&&triggerCustomFunction(f))}i=="bottom"&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom!=null&&(t.offset.bottom=t.offsetBottom);t.offsetTop!=null&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.5";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.isDefaultPrevented()){this.isShown=!0;this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})});this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}};t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){r=n.support.transition&&f;this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this));if(r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.5";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);
8u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.5";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusin"?"focus":"hover"]=!0),i.tip().hasClass("in")||i.hoverState=="in"){i.hoverState="in";return}if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusout"?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)}};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i=i=="bottom"&&f.bottom+s>e.bottom?"top":i=="top"&&f.top-s<e.top?"bottom":i=="right"&&f.right+o>e.width?"left":i=="left"&&f.left-o<e.left?"right":i,r.removeClass(p).addClass(i));w=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(w,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;n=="out"&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left
8:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;i=="top"&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?u.left*2-l+h:u.top*2-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function e(){u.hoverState!="in"&&r.detach();u.$element.removeAttr("aria-describedby").trigger("hidden.bs."+u.type);i&&i()}var u=this,r=n(this.$tip),f=n.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r=u.tagName=="BODY",i=u.getBoundingClientRect();i.width==null&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(Math.random()*1e6);while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.5";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!r||!r.length||(f=r.data("bs.collapse"),!f||!f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented())){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented())){if(i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return u.call(this);this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);function validateCantactUsfields(){var t,n,l,a,nt,r,s,h,i,c;if($("input#TB_Website_Hide").length>0&&$("input#TB_Website_Hide").val().length!=0)return!1;if(t="",n=trim(af$("TB_Name").value),n==""?(t+="Please enter My first name\n",$("#divTB_Name span.required").html("*Required"),$("#divTB_Name").attr("class","group-req"),$("#TB_Name").attr("aria-invalid","true")):($("#divTB_Name span.required").html(""),$("#divTB_Name").attr("class","group"),$("#TB_Name").attr("aria-invalid","false")),n=trim(af$("TB_LName").value),n==""?(t+="Please enter Last name\n",$("#divTB_LName span.required").html("*Required"),$("#divTB_LName").attr("class","group-req"),$("#TB_LName").attr("aria-invalid","true")):($("#divTB_LName span.required").html(""),$("#divTB_LName").attr("class","group"),$("#TB_LName").attr("aria-invalid","false")),l=trim(af$("TB_Name").value),a=trim(af$("TB_LName").value),l.length>0&&a.length>0&&l==a?(t+="You cannot repeat entries in First name and Last name fields\n",$("#divTB_Name span.required").html("*Required"),$("#divTB_Name").attr("class","group-req"),$("#TB_Name").attr("aria-invalid","true"),$("#divTB_LName span.required").html("*Required"),$("#divTB_LName").attr("class","group-req"),$("#TB_LName").attr("aria-invalid","true")):($("#divTB_Name span.required").html(""),$("#divTB_Name").attr("class","group"),$("#TB_Name").attr("aria-invalid","false"),$("#divTB_LName span.required").html(""),$("#divTB_LName").attr("class","group"),$("#TB_LName").attr("aria-invalid","false")),ContactFieldSetting==0?(n=trim(af$("TB_clientmail").value),n==""?(t+="Please enter Email\n",$("#divTB_clientmail span.required").html("*Required"),$("#divTB_clientmail").attr("class","group-req"),$("#TB_clientmail").attr("aria-invalid","true")):validate_email(trim(af$("TB_clientmail").value))==!1?(t+="Invalid email\n",$("#divTB_clientmail span.required").html("*Invalid"),$("#divTB_clientmail").attr("class","group-req"),$("#TB_clientmail").attr("aria-invalid","true")):($("#divTB_clientmail span.required").html(""),$("#divTB_clientmail").attr("class","group"),$("#TB_clientmail").attr("aria-invalid","false"))):ContactFieldSetting==1?(n=trim(af$("TB_Mobilephone1").value),n==""?(t+="Please enter Phone\n",$("#divTB_Mobilephone1 span.required").html("*Required"),$("#divTB_Mobilephone1").attr("class","group-req"),$("#TB_Mobilephone1").attr("aria-invalid","true")):($("#divTB_Mobilephone1 span.required").html(""),$("#divTB_Mobilephone1").attr("class","group"),$("#TB_Mobilephone1").attr("aria-invalid","false"))):ContactFieldSetting==3&&(n=trim(af$("TB_clientmail").value),n==""?(t+="Please enter Email\n",$("#divTB_clientmail span.required").html("*Required"),$("#divTB_clientmail").attr("class","group-req"),$("#TB_clientmail").attr("aria-invalid","true")):validate_email(trim(af$("TB_clientmail").value))==!1?(t+="Invalid email\n",$("#divTB_clientmail span.required").html("*Invalid"),$("#divTB_clientmail").attr("class","group-req"),$("#TB_clientmail").attr("aria-invalid","true")):($("#divTB_clientmail span.required").html(""),$("#divTB_clientmail").attr("class","group"),$("#TB_clientmail").attr("aria-invalid","false")),n=trim(af$("TB_Mobilephone1").value),n==""?(t+="Please enter Phone\n",$("#divTB_Mobilephone1 span.required").html("*Required"),$("#divTB_Mobilephone1").attr("class","group-req"),$("#TB_Mobilephone1").attr("aria-invalid","true")):($("#divTB_Mobilephone1 span.required").html(""),$("#divTB_Mobilephone1").attr("class","group"),$("#TB_Mobilephone1").attr("aria-invalid","false"))),t+=ValidatePhoneNumber(trim(af$("TB_Mobilephone1").value),"Phone is not val
8id\n"),ContactReferralSetting==1&&(n=trim(af$("TB_Referral").value),n==""?(t+="How did you hear about us?\n",$("#divTB_Referral span.required").html("*Required"),$("#divTB_Referral").attr("class","group-req"),$("#TB_Referral").attr("aria-invalid","true")):($("#divTB_Referral span.required").html(""),$("#divTB_Referral").attr("class","group"),$("#TB_Referral").attr("aria-invalid","false"),n=trim(af$("TB_HowHeared").value),n==""?(t+=trim(af$("TB_HowHeared_label").innerHTML)+"\n",$("#divTB_HowHeared span.required").html("*Required"),$("#divTB_HowHeared").attr("class","group-req"),$("#TB_HowHeared").attr("aria-invalid","true")):($("#divTB_HowHeared span.required").html(""),$("#divTB_HowHeared").attr("class","group"),$("#TB_HowHeared").attr("aria-invalid","false")))),(DWDealerID==2792||DWDealerID==5169)&&(n=trim(af$("TB_location").value),n==""?(t+="Please enter Location\n",$("#divTB_location span.required").html("*Required"),$("#divTB_location").attr("class","group-req"),$("#TB_location").attr("aria-invalid","true")):($("#divTB_location span.required").html(""),$("#divTB_location").attr("class","group"),$("#TB_location").attr("aria-invalid","false"))),DWDealerID==654&&(n=trim(af$("TA_Message").value),n==""?(t+="Please enter Message\n",$("#divTA_Message span.required").html("*Required"),$("#divTA_Message").attr("class","group-req"),$("#TA_Message").attr("aria-invalid","true")):($("#divTA_Message span.required").html(""),$("#divTA_Message").attr("class","group"),$("#TA_Message").attr("aria-invalid","false"))),DWDealerID==4816||DWDealerID==621||DWDealerID==4434||DWDealerID==2399||DWDealerID==1028||DWDealerID==5076||DWDealerID==4867||DWDealerID==4653||DWDealerID==5012||DWDealerID==4984||DWDealerID==5097||DWDealerID==4990||DWDealerID==4494||DWDealerID==5451||DWDealerID==4144||DWDealerID==5445||DWDealerID==3631){var w=af$("customCheckbox"),e=af$("customCheckboxsec"),b=w&&w.checked,tt=e&&e.checked;(!e||b&&tt)&&(e||b)||(t+=" You must agree to the terms of this form. Please check the box to continue.\n")}if(DWDealerID==4952){var v=$("#customCheckbox").is(":checked"),y=$("#customCheckbox1").is(":checked"),p=$("#customCheckbox2").is(":checked");v||y||p||(t+="Please select at least one SMS preference to continue.\n");var i="",u="",k="",d="",v=af$("customCheckbox"),y=af$("customCheckbox1"),p=af$("customCheckbox2"),g=af$("customCheckbox3");p&&p.checked?k="This customer has not consented to receive SMS":(v&&v.checked&&(i="Customer agree to receive marketing/promotional SMS messages from Speedway Motors"),y&&y.checked&&(u="Customer agree to receive informational/transactional SMS messages from Speedway Motors"));g&&g.checked&&(d="Customer like to receive email promotions, surveys, and offers from Speedway Motors");t===""&&af$("TA_Message")&&(af$("TA_Message").value+="\n"+i+"\n"+u+"\n"+k+"\n"+d+"\n"+`${dateStr} at ${timeStr}`)}if(DWDealerID==5127||DWDealerID==5293||DWDealerID==4044||DWDealerID==5501||DWDealerID==5461||DWDealerID==4872||DWDealerID==5205||DWDealerID==5031){var f=af$("customCheckbox")&&af$("customCheckbox").checked,o=af$("customCheckboxsec")&&af$("customCheckboxsec").checked,i="",u="";(f||o)&&(n=trim(af$("TB_Mobilephone1").value),n==""?(t+="Please enter Phone\n",$("#divTB_Mobilephone1 span.required").html("*Required"),$("#divTB_Mobilephone1").attr("class","group-req"),$("#TB_Mobilephone1").attr("aria-invalid","true")):($("#divTB_Mobilephone1 span.required").html(""),$("#divTB_Mobilephone1").attr("class","group"),$("#TB_Mobilephone1").attr("aria-invalid","false")));f&&(i="Customer consented to receive marketing text messages on the phone number provided.");o&&(u="Customer consented to receive non marketing messages, including updates and news, on the phone number provided.");(i||u)&&af$("TA_AddMessage")&&(r=af$("TA_AddMessage").value||"",r=r.replace(/\n?Customer consented to receive marketing text messages on the phone number provided\./g,""),r=r.replace(/\n?Customer consented to receive non marketing messages, including updates and news, on the phone number provided\./g,""),i&&(r+="\n"+i),u&&(r+="\n"+u),af$("TA_AddMessage").value=r.trimStart())}if(nt=[5031,5205,4872,5461,5293,5127,2792,654,5169,2792,4188,4934,4816,621,4434,2399,1028,5076,4867,4653,5012,4984,5097,4990,4494,5451,4144,5445,3631,4952,4044,5501],nt.indexOf(Number(DWDealerID))===-1){var f=af$("customCheckbox")&&af$("customCheckbox").checked,o=af$("customCheckboxsec")&&af$("customCheckboxsec").checked,i="",u="";f||(t+="You must agree to the term of this form, please check the box to continue.\n");(f||o)&&(n=trim(af$("TB_Mobilephone1").value),n==""?(t+="Please enter Phone\n",$("#divTB_Mobilephone1 span.required").html("*Required"),$("#divTB_Mobilephone1").attr("class","group-req"),$("#TB_Mobilephone1").attr("aria-invalid","true")):($("#divTB_Mobilephone1 span.required").html(""),$("#divTB_Mobilephone1").attr("class","group"),$("#TB_Mobilephone1").attr("aria-invalid","false")));f&&(i="Customer consented to receive marketing text messages on the phone number provided.");o&&(u="Customer consented to receive non marketing messages, including updates and news, on the phone number provided.");(i||u)&&af$("TA_AddMessage")&&(r=af$("TA_AddMessage").value||"",r=r.replace(/\n?Customer consented to receive marketing text messages on the phone number provided\./g,""),r=r.replace(/\n?Customer consented to receive non marketing messages, including updates and news, on the phone number provided\./g,""),i&&(r+="\n"+i),u&&(r+="\n"+u),af$("TA_AddMessage").value=r.trimStart())}blnShowCaptchaCode==!0&&(n=trim(af$("txtMSCaptchaCode").value),n==""?(t+="Please enter Code\n",$("#divMSCaptchaCode span.required").html("*Required"),$("#divMSCaptchaCode").attr("class","group-req"),$("#txtMSCaptchaCode").attr("aria-invalid","false")):($("#divMSCaptchaCode span.required").html(""),$("#divMSCaptchaCode").attr("class","group"),$("#txtMSCaptchaCode").attr("aria-invalid","false")));t==""?(af$("hdAdditionalMandatory")!=null&&(af$("TA_Message").value+="\n"+af$("hdAdditionalMandatory").value),DWDealerID==4502&&(s="",h="",window.location.href.indexOf("source")>-1&&(s="\nsource: "+getQuerystring("source")),window.location.href.indexOf("ad-name")>-1&&(h="\nad-name: "+getQuerystring("ad-name")),(s!=""||h!="")&&(af$("TA_Message").value+=s+h
8)),blnManagePrivacy==!0?DWDealerID==1299&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TB_clientmail").value}})):DWDealerID==1299&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TB_clientmail").value}})),DWDealerID==4726&&(i="This customer has not consented to receive SMS",c=af$("customCheckbox"),i=c.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("TA_Message").value+="\n"+i+"\n"+`${dateStr} at ${timeStr}`),DWDealerID==4950&&(i="This customer has not consented to receive SMS",c=af$("customCheckbox"),i=c.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("TA_Message").value+="\n"+i+"\n"+`${dateStr} at ${timeStr}`),blnManagePrivacy==!0?getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&typeof fbq!="undefined"&&fbq("track","Lead",{content_category:"Lead",content_name:"Contact us"}):typeof fbq!="undefined"&&fbq("track","Lead",{content_category:"Lead",content_name:"Contact us"}),$("#recaptcha.g-recaptcha").length==0?($("#contactform").removeAttr("onclick"),af$("HD_pagestatus").value="add",af$("ContactusQueries").submit()):grecaptcha.execute()):AlertModel(t)}function Contact_display_Referral(){af$("TB_HowHeared").value="";af$("TB_Referral").value.length>0?(af$("divTB_HowHeared").style.display="block",af$("TB_Referral").value=="Referral"?af$("TB_HowHeared_label").innerHTML="Name of Referrer":af$("TB_Referral").value=="Past customer"?af$("TB_HowHeared_label").innerHTML="Name of salesperson":af$("TB_Referral").value=="Website"?af$("TB_HowHeared_label").innerHTML="Which website":af$("TB_Referral").value=="Other"&&(af$("TB_HowHeared_label").innerHTML="Please describe"),af$("divContactContainer")!=null&&(af$("col-contact")!=null&&(af$("col-contact").style.height="750px"),af$("col-showroom")!=null&&(af$("col-showroom").style.height="750px"),af$("ContactUs3col_TD2")!=null&&(af$("ContactUs3col_TD2").style.height="750px")),window.parent.document.getElementById("ContactUsFrameAMP")!=null&&(window.parent.document.getElementById("ContactUsFrameAMP").style.height="525px")):(af$("divTB_HowHeared").style.display="none",af$("divContactContainer")!=null&&(af$("col-contact")!=null&&(af$("col-contact").style.height="700px"),af$("col-showroom")!=null&&(af$("col-showroom").style.height="700px"),af$("ContactUs3col_TD2")!=null&&(af$("ContactUs3col_TD2").style.height="700px")),window.parent.document.getElementById("ContactUsFrameAMP")!=null&&(window.parent.document.getElementById("ContactUsFrameAMP").style.height="470px"))}var currentDateTime=new Date,timeStr=currentDateTime.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"}),dateStr=currentDateTime.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),[time,tzAbbr]=timeStr.split(" "),timeAbbr=tzAbbr.includes("GMT")?"":tzAbbr;$(document).ready(function(){(ContactReferralSetting==1||ContactReferralSetting==2)&&$(".ContactContainerHome #divTA_Message").length>0&&($(".ContactContainerHome #divTA_Message").css("width","96%"),$(".captchamat").css("margin-top","0px"),$(".captchamat").css("float","right"))});function FinanceSettingsLoad(){var n="{ intDealerId: "+DWDealerID+"}";JqueryAjaxCall("POST","GetFinanceSettings",n);af$("cus_ssn").setAttribute("type","tel");af$("cus_bdate").setAttribute("type","tel");af$("license_expdate").setAttribute("type","tel");af$("cus_mobilephone").setAttribute("type","tel");af$("cus_homephone").setAttribute("type","tel");af$("cus_zipcode").setAttribute("type","tel");af$("TBaddMonthPayment").setAttribute("type","tel");af$("tbadd1zip").setAttribute("type","tel");af$("tbadd2zip").setAttribute("type","tel");af$("tbemployzip").setAttribute("type","tel");af$("cus_workphone").setAttribute("type","tel");af$("TBemployIncome").setAttribute("type","tel");af$("TBemployAddIncome").setAttribute("type","tel");af$("tbemploy2zip").setAttribute("type","tel");af$("tbemp2phone").setAttribute("type","tel");af$("tbemploy3zip").setAttribute("type","tel");af$("tbemp3phone").setAttribute("type","tel");af$("TradeIn_Mileage").setAttribute("type","tel");af$("Veh_Mileage").setAttribute("type","tel");af$("TradeIn_CurrentPayment").setAttribute("type","tel");af$("TBavailableDownpay").setAttribute("type","tel");af$("TBmonthlypayment").setAttribute("type","tel");af$("TBloanamount").setAttribute("type","tel");af$("txtMSCaptchaCode").setAttribute("type","tel");af$("IsthereCoBuyer")&&(af$("cob_cus_ssn").setAttribute("type","tel"),af$("cob_cus_bdate").setAttribute("type","tel"),af$("cob_cus_mobilephone").setAttribute("type","tel"),af$("cob_cus_homephone").setAttribute("type","tel"),af$("cob_cus_zipcode").setAttribute("type","tel"),af$("cob_TBaddMonthPayment").setAttribute("type","tel"),af$("cob_tbaddlandtel").setAttribute("type","tel"),af$("cob_tbadd1zip").setAttribute("type","tel"),af$("cob_tbadd2zip").setAttribute("type","tel"),af$("cob_tbemployzip").setAttribute("type","tel"),af$("cob_cus_workphone").setAttribute("type","tel"),af$("cob_TBemployIncome").setAttribute("type","tel"),af$("cob_cus_empployment_phone").setAttribute("type","tel"),af$("cob_TBemployAddIncome").setAttribute("type","tel"),af$("cob_tbemploy2zip").setAttribute("type","tel"),af$("cob_tbemp2phone").setAttribute("type","tel"),af$("cob_tbemploy3zip").setAttribute("type","tel"),af$("cob_tbemploy3zip").setAttribute("type","tel"))}function LoadState(n,t){af$("htmHdn_DDLId").value=n;var i="{ bytCountryId: "+t+"}";JqueryAjaxCall("POST","GetStatesByCountry",i)}function icomplete_finance(n,t,i){var s,h,c,o,l,a,f,r,e,u;if(i=="GetStatesByCountry"&&LoadState_CallBack(n),i=="GetFinanceSettings")if(objFieldList=n,objFieldListCoBuyer=JSON.parse(JSON.stringify(n)),s=!1,SmallFinanceType=="true"&&(s=!0,af$("personalInfoDiv_CoBuyer").style.display="none",af$("FinanceTradinInfo").style.display="none"),objFieldList!=null&&objFieldList.length>0){for(f=0;f<objFieldList.length;f++){if(h=objFieldList[f],c=objFieldListCoBuyer[f],(objFieldList[f].FieldName=="Empprev1_H"||objFieldList[f].FieldName=="Empprev2_H")&&(previousEmp_setting=objFieldList[f].Setting=="1"?"1":"0"),s==!0)for(hiddenItems=["cus_ssn","cus_bdate","cus_gender","license_number","license_state","license_country","license_expdate","DDaddStayYearMonth","DDaddTypeRes","TBaddMonthPayment","Veh_Mileage","TradeIn_Mileage","TradeIn_Vin","IsVehPaidOff","TBavailableDownpay","TBmonthlypayment","TBloanamount","TA_AdditonalComments","DL_Referral","TB_ESignature","AutoLoan","Autoloan_Date","VisitedWebsite","ps_dir1","TBemployWorkType","TBaddLandName","tbaddlandtel","HadCar","NeworUsed","Bankruptcy","Bankruptcy_Date","ExtColor_1","ExtColor_2","
8ExtColor_3","IntColor_1","IntColor_2","IntColor_3","OwnVehicle","TradeIn_Color","TradeIn_BankFinanced","TradeIn_AmountOwed","cus_empployment_phone","TBemployAdd2","TBemploy2Add2","TBemploy3Add2","Bank_Name","Account_Type","TBemployAddIncomeSource","DDAdditional_Income","TradeIn_Year","TradeIn_Make","TradeIn_Model"],e=0;e<hiddenItems.length;e++){if(objFieldList[f].FieldName==hiddenItems[e]){objFieldList[f].Setting=2;break}if(objFieldList[f].FieldName=="DDaddStayYear"||objFieldList[f].FieldName=="DDaddStayMonth"){objFieldList[f].Setting=2;break}}getFieldList(h);objFieldList[f].FieldName!="Empprev1_H"&&objFieldList[f].FieldName!="Empprev2_H"&&full_cobuyerField.indexOf("cob_"+h.FieldName)>=0&&(c.FieldName="cob_"+h.FieldName,getFieldList(c))}hideOuterContainer()}else{for(o="",l="",s==!0?(o=["cus_firstname","cus_lastname","cus_bdate","ps_number","ps_street","ps_type","cus_city","cus_state","cus_country","cus_zipcode","cus_mobilephone","cus_email","AreUEmployed","TBemployName","TBemployAdd1","TBemployCity","DDemployState","DDemployCountry","tbemployzip","DDemployJobYear1","DDemployJobMonth1","cus_workphone","TBemployIncome","DDemployFreq","EmpInfoOccup"],hiddenItems=["cus_ssn","cus_bdate","cus_gender","license_number","license_state","license_country","license_expdate","DDaddStayYearMonth","DDaddTypeRes","TBaddMonthPayment","Veh_Mileage","TradeIn_Mileage","TradeIn_Vin","IsVehPaidOff","TBavailableDownpay","TBmonthlypayment","TBloanamount","TA_AdditonalComments","DL_Referral","TB_ESignature","AutoLoan","Autoloan_Date","VisitedWebsite","ps_dir1","TBemployWorkType","TBaddLandName","tbaddlandtel","HadCar","NeworUsed","Bankruptcy","Bankruptcy_Date","ExtColor_1","ExtColor_2","
8ExtColor_3","IntColor_1","IntColor_2","IntColor_3","OwnVehicle","TradeIn_Color","TradeIn_BankFinanced","TradeIn_AmountOwed","cus_empployment_phone","TBemployAdd2","TBemploy2Add2","TBemploy3Add2","Bank_Name","Account_Type","TBemployAddIncomeSource","DDAdditional_Income","TradeIn_Year","TradeIn_Make","TradeIn_Model"]):(o=["cus_firstname","cus_lastname","cus_bdate","ps_number","ps_street","ps_type","cus_city","cus_state","cus_country","cus_zipcode","cus_workphone","DDaddStayYear","DDaddStayMonth","DDemployJobYear1","DDemployJobMonth1","TBemployIncome","DDemployFreq","cus_homephone","cus_ssn","TBaddMonthPayment","TBemployName","TBemployAdd1","TBemployCity","DDemployState","DDemployCountry","tbemployzip","EmpInfoOccup","TB_ESignature","AreUEmployed"],l=["cob_cus_firstname","cob_cus_lastname","cob_cus_bdate","cob_ps_number","cob_ps_street","cob_ps_type","cob_cus_city","cob_cus_state","cob_cus_country","cob_cus_zipcode","cob_cus_workphone","cob_DDaddStayYear","cob_DDaddStayMonth","cob_DDemployJobYear1","cob_DDemployJobMonth1","cob_TBemployIncome","cob_DDemployFreq","cob_cus_homephone","cob_cus_ssn","cob_TBaddMonthPayment","cob_TBemployName","cob_TBemployAdd1","cob_TBemployCity","cob_DDemployState","cob_DDemployCountry","cob_tbemployzip","cob_EmpInfoOccup","cob_AreUEmployed"],o=o.concat(l),hiddenItems=["cus_gender","cus_suffix","AutoLoan","Autoloan_Date","VisitedWebsite","ps_dir1","TBemployWorkType","TBaddLandName","tbaddlandtel","HadCar","NeworUsed","Bankruptcy","Bankruptcy_Date","ExtColor_1","ExtColor_2","
8ExtColor_3","IntColor_1","IntColor_2","IntColor_3","OwnVehicle","TradeIn_Color","TradeIn_BankFinanced","TradeIn_AmountOwed","cus_empployment_phone","TBemployAdd2","TBemploy2Add2","TBemploy3Add2","Bank_Name","Account_Type"],hiddenItemsCoBuyer=["cob_cus_gender","cob_cus_suffix","cob_ps_dir1","cob_TBemployWorkType","cob_TBaddLandName","cob_tbaddlandtel","cob_cus_empployment_phone","cob_TBemployAdd2","cob_TBemploy2Add2","cob_TBemploy3Add2"],hiddenItems=hiddenItems.concat(hiddenItemsCoBuyer)),a="",f=0;f<hiddenItems.length;f++)a=af$(hiddenItems[f]+"_span"),a.style.display="none";for(f=0;f<o.length;f++){if(r=o[f],s==!0)for(e=0;e<hiddenItems.length;e++){if(r==hiddenItems[e]){r="";break}if(r=="DDaddStayYear"||r=="DDaddStayMonth"){r="";break}}r!=""&&((af$(r).value==""||af$(r).value=="0.00")&&(af$(r).style.backgroundColor="#EFF4FA"),af$(r).setAttribute("onblur","fieldRequired_onBlur(this, '', this.id);"+af$(r).getAttribute("onblur")),af$(r).setAttribute("aria-required","true"),r=="DDaddStayYear"||r=="DDaddStayMonth"?(u="DDaddStayYearMonth_star",af$(u).style.display="inline"):r=="DDadd1AddLengthYear"||r=="DDadd1AddLengthMonth"?(u="DDadd1AddLengthYearMonth_star",af$(u).style.display="inline"):r=="DDadd2AddLengthYear"||r=="DDadd2AddLengthMonth"?(u="DDadd2AddLengthYearMonth_star",af$(u).style.display="inline"):r=="DDemployJobYear1"||r=="DDemployJobMonth1"?(u="DDemployJobYear1Month1_star",af$(u).style.display="inline"):r=="DDemploy2JobYears"||r=="DDemploy2JobMonths"?(u="DDemploy2JobYearsMonth_star",af$(u).style.display="inline"):r=="DDemploy3JobYear"||r=="DDemploy3JobMonth"?(u="DDemploy3JobYearMonth_star",af$(u).style.display="inline"):r=="cob_DDaddStayYear"||r=="cob_DDaddStayMonth"?(u="cob_DDaddStayYearMonth_star",af$(u).style.display="inline"):r=="cob_DDadd1AddLengthYear"||r=="cob_DDadd1AddLengthMonth"?(u="cob_DDadd1AddLengthYearMonth_star",af$(u).style.display="inline"):r=="cob_DDadd2AddLengthYear"||r=="cob_DDadd2AddLengthMonth"?(u="cob_DDadd2AddLengthYearMonth_star",af$(u).style.display="inline"):r=="cob_DDemployJobYear1"||r=="cob_DDemployJobMonth1"?(u="cob_DDemployJobYear1Month1_star",af$(u).style.display="inline"):r=="cob_DDemploy2JobYears"||r=="cob_DDemploy2JobMonths"?(u="cob_DDemploy2JobYearsMonth_star",af$(u).style.display="inline"):r=="cob_DDemploy3JobYear"||r=="cob_DDemploy3JobMonth"?(u="cob_DDemploy3JobYearMonth_star",af$(u).style.display="inline"):(u=r+"_star",af$(u).style.display="inline"))}hideOuterContainer()}}function hideOuterContainer(){for(var pt=0,wt,bt,f,e,kt,o,s,dt,h,c,gt,l,a,ni,v,t,ti,y,i,ii,p,w,ri,ui,b,k,fi,ei,d,oi,si,g,hi,ci,nt,li,ai,tt,vi,yi,it,pi,wi,rt,bi,ki,ut,di,gi,ft,et,nr,ot,st,tr,ht,ct,ir,lt,at,rr,vt,r,ur,yt,u,fr,n=0;n<personalInfo.length;n++)wt=personalInfo[n],bt=af$(wt+"_span"),bt.style.display=="none"&&(pt=pt+1);for(pt==personalInfo.length&&(af$("personalInfoDiv").style.display="none"),f=0,n=0;n<resInfo.length;n++)e=resInfo[n],kt=e=="DDaddStayYear"||e=="DDaddStayMonth"?af$("DDaddStayYearMonth_span"):af$(e+"_span"),kt.style.display=="none"&&(f=f+1);for(f==resInfo.length&&(af$("FinanceCurrentResidence").style.display="none"),o=0,n=0;n<preResInfo1.length;n++)s=preResInfo1[n],dt=s=="DDadd1AddLengthYear"||s=="DDadd1AddLengthMonth"?af$("DDadd1AddLengthYearMonth_span"):af$(s+"_span"),dt.style.display=="none"&&(o=o+1);for(o==preResInfo1.length&&(af$("homeprev1").style.display="none"),h=0,n=0;n<preResInfo2.length;n++)c=preResInfo2[n],gt=c=="DDadd2AddLengthYear"||c=="DDadd2AddLengthMonth"?af$("DDadd2AddLengthYearMonth_span"):af$(c+"_span"),gt.style.display=="none"&&(h=h+1);for(h==preResInfo2.length&&(af$("homeprev2").style.display="none"),l=0,n=0;n<empInfo.length;n++)a=empInfo[n],ni=a=="DDemployJobYear1"||a=="DDemployJobMonth1"?af$("DDemployJobYear1Month1_span"):af$(a+"_span"),ni.style.display=="none"&&(l=l+1);for(l==empInfo.length&&(af$("DivEmployment1").style.display="none"),v=0,n=0;n<preEmpInfo1.length;n++)t=preEmpInfo1[n],ti=t=="DDemploy2JobYears"||t=="DDemploy2JobMonths"?af$("DDemploy2JobYearsMonth_span"):af$(t+"_span"),t!="Empprev1_H"&&ti.style.display=="none"&&(v=v+1);for(v==preEmpInfo1.length&&(af$("empprev1").style.display="none"),y=0,n=0;n<preEmpInfo2.length;n++)i=preEmpInfo2[n],ii=i=="DDemploy3JobYear"||i=="DDemploy3JobMonth"?af$("DDemploy3JobYearMonth_span"):af$(i+"_span"),i!="Empprev2_H"&&ii.style.display=="none"&&(y=y+1);for(y==preEmpInfo2.length&&(af$("empprev2").style.display="none"),p=["ExtColor_1","ExtColor_2","
8ExtColor_3"],w=0,n=0;n<p.length;n++)ri=p[n],ui=af$(ri+"_span"),ui.style.display=="none"&&(w=w+1);for(w==p.length&&(af$("ExteriorColorDiv").style.display="none"),b=["IntColor_1","IntColor_2","IntColor_3"],k=0,n=0;n<b.length;n++)fi=b[n],ei=af$(fi+"_span"),ei.style.display=="none"&&(k=k+1);for(k==b.length&&(af$("InteriorColorDiv").style.display="none"),d=0,n=0;n<desireVehInfo.length;n++)oi=desireVehInfo[n],si=af$(oi+"_span"),si.style.display=="none"&&(d=d+1);for(d==desireVehInfo.length&&(af$("desireVehInfoDiv").style.display="none"),g=0,n=0;n<tradeInInfo.length;n++)hi=tradeInInfo[n],ci=af$(hi+"_span"),ci.style.display=="none"&&(g=g+1);for(g==tradeInInfo.length&&(af$("FinanceTradinInfoC").style.display="none"),nt=0,n=0;n<paymentInfo.length;n++)li=paymentInfo[n],ai=af$(li+"_span"),ai.style.display=="none"&&(nt=nt+1);for(nt==paymentInfo.length&&(af$("FinanceDownlpayment").style.display="none"),tt=0,n=0;n<bankInfo.length;n++)vi=bankInfo[n],yi=af$(vi+"_span"),yi.style.display=="none"&&(tt=tt+1);for(tt==bankInfo.length&&(af$("BankInfo").style.display="none"),it=0,n=0;n<additionalInfo.length;n++)pi=additionalInfo[n],wi=af$(pi+"_span"),wi.style.display=="none"&&(it=it+1);for(it==additionalInfo.length&&(af$("AdditionalInfo").style.display="none"),rt=0,n=0;n<ReferralInfo.length;n++)bi=ReferralInfo[n],ki=af$(bi+"_span"),ki.style.display=="none"&&(rt=rt+1);if(rt==ReferralInfo.length&&(af$("ReferralDiv").style.display="none"),af$("IsthereCoBuyer")&&(document.finance.IsthereCoBuyer.options[document.finance.IsthereCoBuyer.selectedIndex].value==1||document.finance.IsthereCoBuyer.options[document.finance.IsthereCoBuyer.selectedIndex].value==0)){for(ut=0,n=0;n<cob_personalInfo.length;n++)di=cob_personalInfo[n],gi=af$(di+"_span"),gi.style.display=="none"&&(ut=ut+1);for(ut==cob_personalInfo.length&&(af$("personalInfoDiv_CoBuyer").style.display="none"),ft=0,n=0;n<cob_resInfo.length;n++)et=cob_resInfo[n],nr=et=="cob_DDaddStayYear"||et=="cob_DDaddStayMonth"?af$("cob_DDaddStayYearMonth_span"):af$(et+"_span"),nr.style.display=="none"&&(ft=ft+1);for(ft==resInfo.length&&(af$("DivResidence1_CoBuyer").style.display="none"),ot=0,n=0;n<cob_preResInfo1.length;n++)st=cob_preResInfo1[n],tr=st=="cob_DDadd1AddLengthYear"||st=="cob_DDadd1AddLengthMonth"?af$("cob_DDadd1AddLengthYearMonth_span"):af$(st
8+"_span"),tr.style.display=="none"&&(ot=ot+1);for(ot==cob_preResInfo1.length&&(af$("homeprev1_CoBuyer").style.display="none"),ht=0,n=0;n<cob_preResInfo2.length;n++)ct=cob_preResInfo2[n],ir=ct=="cob_DDadd2AddLengthYear"||ct=="cob_DDadd2AddLengthMonth"?af$("cob_DDadd2AddLengthYearMonth_span"):af$(ct+"_span"),ir.style.display=="none"&&(ht=ht+1);for(ht==cob_preResInfo2.length&&(af$("homeprev2_CoBuyer").style.display="none"),lt=0,n=0;n<cob_empInfo.length;n++)at=cob_empInfo[n],rr=at=="cob_DDemployJobYear1"||at=="cob_DDemployJobMonth1"?af$("cob_DDemployJobYear1Month1_span"):af$(at+"_span"),rr.style.display=="none"&&(lt=lt+1);for(lt==cob_empInfo.length&&(af$("DivEmployment1_CoBuyer").style.display="none"),vt=0,n=0;n<cob_preEmpInfo1.length;n++)r=cob_preEmpInfo1[n],ur=r=="cob_DDemploy2JobYears"||r=="cob_DDemploy2JobMonths"?af$("cob_DDemploy2JobYearsMonth_span"):af$(r+"_span"),r!="cob_Empprev1_H"&&ur.style.display=="none"&&(vt=vt+1);for(vt==cob_preEmpInfo1.length&&(af$("empprev1_CoBuyer").style.display="none"),yt=0,n=0;n<cob_preEmpInfo2.length;n++)u=cob_preEmpInfo2[n],fr=u=="cob_DDemploy3JobYear"||u=="cob_DDemploy3JobMonth"?af$("cob_DDemploy3JobYearMonth_span"):af$(u+"_span"),u!="cob_Empprev2_H"&&fr.style.display=="none"&&(yt=yt+1);yt==cob_preEmpInfo2.length&&(af$("empprev2_CoBuyer").style.display="none")}}function getFieldList(n){var u=n.FieldName,f=n.Setting,r,t,i;
8switch(f){case 0:switch(u){case"DDaddStayYear":case"DDaddStayMonth":t="DDaddStayYearMonth_star";af$(t).style.display="none";break;case"DDadd1AddLengthYear":case"DDadd1AddLengthMonth":t="DDadd1AddLengthYearMonth_star";af$(t).style.display="none";break;case"DDadd2AddLengthYear":case"DDadd2AddLengthMonth":t="DDadd2AddLengthYearMonth_star";af$(t).style.display="none";break;case"Empprev1_H":break;case"Empprev2_H":break;case"DDemployJobYear1":case"DDemployJobMonth1":t="DDemployJobYear1Month1_star";af$(t).style.display="none";break;case"DDemploy2JobYears":case"DDemploy2JobMonths":t="DDemploy2JobYearsMonth_star";af$(t).style.display="none";break;case"DDemploy3JobYear":case"DDemploy3JobMonth":t="DDemploy3JobYearMonth_star";af$(t).style.display="none";break;case"cob_DDaddStayYear":case"cob_DDaddStayMonth":t="cob_DDaddStayYearMonth_star";af$(t).style.display="none";break;case"cob_DDadd1AddLengthYear":case"cob_DDadd1AddLengthMonth":t="cob_DDadd1AddLengthYearMonth_star";af$(t).style.display="none";break;case"cob_DDadd2AddLengthYear":case"cob_DDadd2AddLengthMonth":t="cob_DDadd2AddLengthYearMonth_star";af$(t).style.display="none";break;case"cob_Empprev1_H":break;case"cob_Empprev2_H":break;case"cob_DDemployJobYear1":case"cob_DDemployJobMonth1":t="cob_DDemployJobYear1Month1_star";af$(t).style.display="none";break;case"cob_DDemploy2JobYears":case"cob_DDemploy2JobMonths":t="cob_DDemploy2JobYearsMonth_star";af$(t).style.display="none";break;case"cob_DDemploy3JobYear":case"cob_DDemploy3JobMonth":t="cob_DDemploy3JobYearMonth_star";af$(t).style.display="none";break;case"CHK_Vehicles":af$("pnlInterestedIn")!=null&&$("#pnlInterestedIn").addClass("dw-nocustomization");af$("pnlInventory")!=null&&$("#pnlInventory").addClass("dw-nocustomization");break;case"CHK_VehiclesNotListed":break;default:t=u+"_star";af$(t).style.display="none"}break;case 1:r=af$(u);r!=null&&r.value==""&&(r.style.backgroundColor="#EFF4FA");r!=null&&r.value=="0.00"&&(r.style.backgroundColor="#EFF4FA");r!=null&&r.value=="NA"&&(r.style.backgroundColor="#EFF4FA");r!=null&&r.setAttribute("onblur","fieldRequired_onBlur(this, '', this.id);"+r.getAttribute("onblur"));
8switch(u){case"DDaddStayYear":case"DDaddStayMonth":t="DDaddStayYearMonth_star";af$(t).style.display="inline";break;case"DDadd1AddLengthYear":case"DDadd1AddLengthMonth":t="DDadd1AddLengthYearMonth_star";af$(t).style.display="inline";break;case"DDadd2AddLengthYear":case"DDadd2AddLengthMonth":t="DDadd2AddLengthYearMonth_star";af$(t).style.display="inline";break;case"Empprev1_H":break;case"Empprev2_H":break;case"DDemployJobYear1":case"DDemployJobMonth1":t="DDemployJobYear1Month1_star";af$(t).style.display="inline";break;case"DDemploy2JobYears":case"DDemploy2JobMonths":t="DDemploy2JobYearsMonth_star";af$(t).style.display="inline";break;case"DDemploy3JobYear":case"DDemploy3JobMonth":t="DDemploy3JobYearMonth_star";af$(t).style.display="inline";break;case"cob_DDaddStayYear":case"cob_DDaddStayMonth":t="cob_DDaddStayYearMonth_star";af$(t).style.display="inline";break;case"cob_DDadd1AddLengthYear":case"cob_DDadd1AddLengthMonth":t="cob_DDadd1AddLengthYearMonth_star";af$(t).style.display="inline";break;case"cob_DDadd2AddLengthYear":case"cob_DDadd2AddLengthMonth":t="cob_DDadd2AddLengthYearMonth_star";af$(t).style.display="inline";break;case"cob_Empprev1_H":break;case"cob_Empprev2_H":break;case"cob_DDemployJobYear1":case"cob_DDemployJobMonth1":t="cob_DDemployJobYear1Month1_star";af$(t).style.display="inline";break;case"cob_DDemploy2JobYears":case"cob_DDemploy2JobMonths":t="cob_DDemploy2JobYearsMonth_star";af$(t).style.display="inline";break;case"cob_DDemploy3JobYear":case"cob_DDemploy3JobMonth":t="cob_DDemploy3JobYearMonth_star";af$(t).style.display="inline";break;case"CHK_Vehicles":af$("pnlInterestedIn")!=null&&$("#pnlInterestedIn").addClass("dw-mandatory");af$("pnlInventory")!=null&&$("#pnlInventory").addClass("dw-mandatory");af$("pnlDesiredVehicle")!=null&&$("#pnlDesiredVehicle").addClass("dw-mandatory");af$("desireVehInfoDiv")!=null&&$("#desireVehInfoDiv").addClass("dw-mandatory");af$("DesireVehInfoDiv_star")!=null&&(af$("DesireVehInfoDiv_star").style.display="inline");break;case"CHK_VehiclesNotListed":break;default:t=u+"_star";af$(t).style.display="inline"}break;
8case 2:switch(u){case"DDaddStayYear":case"DDaddStayMonth":i="DDaddStayYearMonth_span";af$(i).style.display="none";break;case"DDadd1AddLengthYear":case"DDadd1AddLengthMonth":i="DDadd1AddLengthYearMonth_span";af$(i).style.display="none";break;case"DDadd2AddLengthYear":case"DDadd2AddLengthMonth":i="DDadd2AddLengthYearMonth_span";af$(i).style.display="none";break;case"DDemployJobYear1":case"DDemployJobMonth1":i="DDemployJobYear1Month1_span";af$(i).style.display="none";break;case"DDemploy2JobYears":case"DDemploy2JobMonths":i="DDemploy2JobYearsMonth_span";af$(i).style.display="none";break;case"DDemploy3JobYear":case"DDemploy3JobMonth":i="DDemploy3JobYearMonth_span";af$(i).style.display="none";break;case"cob_DDaddStayYear":case"cob_DDaddStayMonth":i="cob_DDaddStayYearMonth_span";af$(i).style.display="none";break;case"cob_DDadd1AddLengthYear":case"cob_DDadd1AddLengthMonth":i="cob_DDadd1AddLengthYearMonth_span";af$(i).style.display="none";break;case"cob_DDadd2AddLengthYear":case"cob_DDadd2AddLengthMonth":i="cob_DDadd2AddLengthYearMonth_span";af$(i).style.display="none";break;case"cob_DDemployJobYear1":case"cob_DDemployJobMonth1":i="cob_DDemployJobYear1Month1_span";af$(i).style.display="none";break;case"cob_DDemploy2JobYears":case"cob_DDemploy2JobMonths":i="cob_DDemploy2JobYearsMonth_span";af$(i).style.display="none";break;case"cob_DDemploy3JobYear":case"cob_DDemploy3JobMonth":i="cob_DDemploy3JobYearMonth_span";af$(i).style.display="none";break;case"CHK_Vehicles":af$("pnlInterestedIn")!=null&&(af$("pnlInterestedIn").style.display="none",$("#pnlInterestedIn").addClass("dw-fhidden"));af$("pnlInventory")!=null&&(af$("pnlInventory").style.display="none",$("#pnlInventory").addClass("dw-fhidden"),$("#pnlInventory input:checkbox:checked").removeAttr("checked"));af$("desireVehInfoDiv").style.display="none";break;case"CHK_VehiclesNotListed":af$("pnlDesiredVehicle")!=null&&($("#pnlDesiredVehicle").addClass("dw-fhidden"),t="pnlDesiredVehicle",af$(t).style.display="none");break;default:i=u+"_span";af$(i).style.display="none"}}}function itimeout_finance(n){n!=null?AlertModel(n._message):AlertModel("There was an error while processing your request. The Technical Support Team has been notified. Please try the request later.")}function ierror_finance(n){n!=null?AlertModel(n._message):AlertModel("There was an error while processing your request. The Technical Support Team has been notified. Please try the request later.")}function LoadState_CallBack(n){var t,i;if(n!=null){for(t="",af$("htmHdn_DDLId").value=="cus_country"?(cus_state=1,t="<select id='cus_states' name='cus_states' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="license_country"?(license_state=1,t="<select id='license_states' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>
8"):af$("htmHdn_DDLId").value=="DDadd1Country"?(DDadd1_state=1,t="<select id='DDadd1_states' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="DDadd2Country"?(DDadd2_state=1,t="<select id='DDadd2_states' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="DDemployCountry"?(DDemploy_state=1,t="<select id='DDemploy_states' name='DDemploy_states' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="DDemploy2Country"?(DDemploy2_state=1,t="<select id='DDemploy2_states' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="DDemploy3Country"?(DDemploy3_state=1,t="<select id='DDemploy3_states' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="cob_cus_country"?(cob_state=1,t="<select id='cob_cus_state' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="cob_license_country"?(cob_license_state=1,t="<select id='cob_license_state' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="cob_DDadd1Country"?(cob_DDadd1State=1,t="<select id='cob_DDadd1State' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="cob_DDadd2Country"?(cob_DDadd2State=1,t="<select id='cob_DDadd2State' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="cob_DDemployCountry"?(cob_DDemployState=1,t="<select id='cob_DDemployState' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="cob_DDemploy2Country"?(cob_DDemploy2State=1,t="<select id='cob_DDemploy2State' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"):af$("htmHdn_DDLId").value=="cob_DDemploy3Country"&&(cob_DDemploy3State=1,t="<select id='cob_DDemploy3State' style='background-color:white;' onblur='focusOut(this)'><option value=''>--<\/option>"),i=0;i<n.length;i++)t+="<option value='"+n[i].StateShort+"' ",t+=">"+n[i].StateLong+"<\/option>";t+="<\/select>";af$("htmHdn_DDLId").value=="cus_country"?af$("TD_cusState").innerHTML=t:af$("htmHdn_DDLId").value=="license_country"?af$("TD_licenseState").innerHTML=t:af$("htmHdn_DDLId").value=="DDadd1Country"?af$("TD_DDadd1State").innerHTML=t:af$("htmHdn_DDLId").value=="DDadd2Country"?af$("TD_DDadd2State").innerHTML=t:af$("htmHdn_DDLId").value=="DDemployCountry"?af$("TD_DDemployState").innerHTML=t:af$("htmHdn_DDLId").value=="DDemploy2Country"?af$("TD_DDemploy2State").innerHTML=t:af$("htmHdn_DDLId").value=="DDemploy3Country"&&(af$("TD_DDemploy3State").innerHTML=t);af$("IsthereCoBuyer")&&(af$("htmHdn_DDLId").value=="cob_cus_country"?af$("cob_TD_cusState").innerHTML=t:af$("htmHdn_DDLId").value=="cob_license_country"?af$("cob_TD_licenseState").innerHTML=t:af$("htmHdn_DDLId").value=="cob_DDadd1Country"?af$("cob_DDadd1State").innerHTML=t:af$("htmHdn_DDLId").value=="cob_DDadd2Country"?af$("cob_TD_DDadd2State").innerHTML=t:af$("htmHdn_DDLId").value=="cob_DDemployCountry"?af$("cob_TD_DDemployState").innerHTML=t:af$("htmHdn_DDLId").value=="cob_DDemploy2Country"?af$("cob_TD_DDemploy2State").innerHTML=t:af$("htmHdn_DDLId").value=="cob_DDemploy3Country"&&(af$("cob_TD_DDemploy3State").innerHTML=t))}}function ValidatePhoneNumberByCountry(n,t,i){var r=!0;return!isPhoneFormat(n,t)&&n.length>0&&(r=!1),r?"":i}function ValidateZip(n,t,i){var r=!0;switch(t){case 1:n.length!=0&&getIntegersOnly(n).length!=5&&(r=!1);break;case 3:n.length!=0&&n.length!=6&&(r=!1)}return r?"":i}function FinancePageSubmit(){var n,u,y,p,t,r,e,i,h,l,a,c,f,w,v,o,s;if($("input#TB_Website_Hide").length>0&&$("input#TB_Website_Hide").val().length!=0)return!1;if(document.getElementById("DDemployFreq_span").style.display=="none"&&parseFloat(document.finance.TBemployIncome.value)>0&&$("#DDemployFreq").val("3"),document.getElementById("cob_DDemployFreq_span").style.display=="none"&&parseFloat(document.finance.cob_TBemployIncome.value)>0&&$("#cob_DDemployFreq").val("3"),document.getElementById("DDemployAddIncomeFreq_span").style.display=="none"&&parseFloat(document.finance.TBemployAddIncome.value)>0&&$("#DDemployAddIncomeFreq").val("3"),document.getElementById("cob_DDemployAddIncomeFreq_span").style.display=="none"&&parseFloat(document.finance.cob_TBemployAddIncome.value)>0&&$("#cob_DDemployAddIncomeFreq").val("3"),(DWDealerID==699||DWDealerID==4275)&&$("#DDemployFreq").val("4"),n="",cus_state==1&&(af$("htmHdncus_state").value=af$("
8cus_states").value),license_state==1&&(af$("htmHdnlicense_state").value=af$("license_states").value),DDadd1_state==1&&(af$("htmHdnDDadd1_state").value=af$("DDadd1_states").value),DDadd2_state==1&&(af$("htmHdnDDadd2_state").value=af$("DDadd2_states").value),DDemploy_state==1&&(af$("htmHdnDDemploy_state").value=af$("DDemploy_states").value),DDemploy2_state==1&&(af$("htmHdnDDemploy2_state").value=af$("DDemploy2_states").value),DDemploy3_state==1&&(af$("htmHdnDDemploy3_state").value=af$("DDemploy3_states").value),af$("IsthereCoBuyer")&&(cob_state==1&&(af$("htmHdncus_state_CoBuyer").value=af$("cob_cus_state").value),cob_license_state==1&&(af$("htmHdnlicense_state_CoBuyer").value=af$("cob_license_state").value),cob_DDadd1State==1&&(af$("htmHdnDDadd1_state_CoBuyer").value=af$("cob_DDadd1State").value),cob_DDadd2State==1&&(af$("htmHdnDDadd2_state_CoBuyer").value=af$("cob_DDadd2State").value),cob_DDemployState==1&&(af$("htmHdnDDemploy_state_CoBuyer").value=af$("cob_DDemployState").value),cob_DDemploy2State==1&&(af$("htmHdnDDemploy2_state_CoBuyer").value=af$("cob_DDemploy2State").value),cob_DDemploy3State==1&&(af$("htmHdnDDemploy3_state_CoBuyer").value=af$("cob_DDemploy3State").value)),af$("personalInfoDiv").style.display!="none"&&(af$("cus_firstname_star").style.display!="none"&&trim(document.finance.cus_firstname.value)==""?(af$("cus_firstname").style.backgroundColor="#FFD8D8",n+="Please provide first name. \n"):af$("cus_firstname").style.backgroundColor="white",af$("cus_middlename_star").style.display!="none"&&trim(document.finance.cus_middlename.value)==""?(af$("cus_middlename").style.backgroundColor="#FFD8D8",n+="Please provide the middle name. \n"):af$("cus_middlename").style.backgroundColor="white",af$("cus_lastname_star").style.display!="none"&&trim(document.finance.cus_lastname.value)==""?(af$("cus_lastname").style.backgroundColor="#FFD8D8",n+=creditAppType=="I"?"Please provide last name. \n":"Please provide business name. \n"):af$("cus_lastname").style.backgroundColor="white",af$("cus_suffix_star").style.display!="none"&&trim(document.finance.cus_suffix.value)==""?(n+="Please select suffix. \n",af$("cus_suffix").style.backgroundColor="#FFD8D8"):af$("cus_suffix").style.backgroundColor="white",af$("cus_ssn_star").style.display!="none"?af$("cus_ssn").value.length==0?(af$("cus_ssn").style.backgroundColor="#FFD8D8",n+=creditAppType=="I"?"Please provide SSN. \n":"Please provide TIN. \n"):getIntegersOnly(af$("cus_ssn").value).length>0&&getIntegersOnly(af$("cus_ssn").value).length<9?(af$("cus_ssn").style.backgroundColor="#FFD8D8",n+=creditAppType=="I"?"SSN is not valid. \n":"TIN is not valid. \n"):af$("cus_ssn").style.backgroundColor="white":getIntegersOnly(af$("cus_ssn").value).length>0&&getIntegersOnly(af$("cus_ssn").value).length<9&&(i="SSN is not valid. \n",n+=i),t=af$("cus_bdate"),t.value=makeDateFormat(t.value),af$("cus_bdate_star").style.display!="none"?t.value.length==0?(i="",i=creditAppType=="I"?"Please provide date of birth. \n":"Please provide date business established. \n",n+=i,af$("cus_bdate").style.backgroundColor=t.value.length==0?"#FFD8D8":"white"):getIntegersOnly(t.value).length==8&&t.value.length==10?(r=isValidDate(t.value.substring(0,2),t.value.substring(3,5),t.value.substring(6,10)),r!=!0&&(n+=r)):(i="Customer's birth date is not valid. \n",n+=i):getIntegersOnly(t.value).length==8&&t.value.length==10?(r=isValidDate(t.value.substring(0,2),t.value.substring(3,5),t.value.substring(6,10)),r!=!0&&(n+=r)):t.value.length>0&&getIntegersOnly(t.value).length!=8&&t.value.length!=10&&(i="Customer's birth date is not valid. \n",n+=i),af$("cus_gender_star").style.display!="none"&&trim(document.finance.cus_gender.value)=="NA"?(n+="Please select gender. \n",af$("cus_gender").style.backgroundColor="#FFD8D8"):af$("cus_gender").style.backgroundColor="white",af$("license_number_star").style.display!="none"&&trim(document.finance.license_number.value)==""?(n+="Please provide D/L number. \n",af$("license_number").style.backgroundColor="#FFD8D8"):af$("license_number").style.backgroundColor="white",license_state==1?af$("license_state_star").style.display!="none"&&af$("license_states").value==""?(n+="Please select license issued state. \n",af$("license_states").style.backgroundColor="#FFD8D8"):af$("license_states").style.backgroundColor="white":af$("license_state_star").style.display!="none"&&document.finance.license_state.options[document.finance.license_state.selectedIndex].value==""?(n+="Please select license issued state. \n",af$("license_state").style.backgroundColor="#FFD8D8"):af$("license_state").style.backgroundColor="white",af$("license_country_star").style.display!="none"&&document.finance.license_country.options[document.finance.license_country.selectedIndex].value==0?(n+="Please select license country. \n",af$("license_country").style.backgroundColor="#FFD8D8"):af$("license_country").style.backgroundColor="white",u=af$("license_expdate"),u.value=makeDateFormat(u.value),af$("license_expdate_star").style.display!="none"?u.value.length==0?(i="Please provide D/L expiration date. \n",n+=i,af$("license_expdate").style.backgroundColor=u.value.length==0?"#F
8FD8D8":"white"):getIntegersOnly(u.value).length==8&&u.value.length==10?(r=isValidDate(u.value.substring(0,2),u.value.substring(3,5),u.value.substring(6,10)),r!=!0&&(n+=r)):(i="Expiration date is not valid. \n",n+=i):getIntegersOnly(u.value).length==8&&u.value.length==10?(r=isValidDate(u.value.substring(0,2),u.value.substring(3,5),u.value.substring(6,10)),r!=!0&&(n+=r)):u.value.length>0&&getIntegersOnly(u.value).length!=8&&u.value.length!=10&&(i="Expiration date is not valid. \n",n+=i),af$("cus_mobilephone_star").style.display!="none"&&getIntegersOnly(af$("cus_mobilephone").value).length==0?(n+="Please provide cellphone number. \n",af$("cus_mobilephone").style.backgroundColor="#FFD8D8"):af$("cus_mobilephone").style.backgroundColor="white",n+=ValidatePhoneNumberByCountry(trim(af$("cus_mobilephone").value),af$("cus_country").value,"Cellphone # is not valid.\n"),af$("cus_homephone_star").style.display!="none"&&getIntegersOnly(af$("cus_homephone").value).length==0?(i="",i=creditAppType=="I"?"Please provide home telephone number. \n":"Please provide business telephone number. \n",n+=i,af$("cus_homephone").style.backgroundColor="#FFD8D8"):af$("cus_homephone").style.backgroundColor="white",n+=ValidatePhoneNumberByCountry(trim(af$("cus_homephone").value),af$("cus_country").value,"Homephone # is not valid.\n"),e=af$("cus_email").value,af$("cus_email_star").style.display!="none"&&e==""?(n+="Please provide e-mail address. \n",af$("cus_email").style.backgroundColor="#FFD8D8"):af$("cus_email").style.backgroundColor="white",e.length>0&&isValidEmail(e)==!1&&(n+="Invalid e-mail address. \n")),af$("FinanceCurrentResidence").style.display!="none"&&(af$("cus_apartment_star").style.display!="none"&&trim(document.finance.cus_apartment.value)==""?(n+="Please provide residence appartment name. \n",af$("cus_apartment").style.backgroundColor="#FFD8D8"):af$("cus_apartment").style.backgroundColor="white",af$("ps_dir1_star").style.display!="none"&&document.finance.ps_dir1.options[document.finance.ps_dir1.selectedIndex].value==""?(n+="Please select residence street direction. \n",af$("ps_dir1").style.backgroundColor="#FFD8D8"):af$("ps_dir1").style.backgroundColor="white",af$("ps_number_star").style.display!="none"&&trim(document.finance.ps_number.value)==""?(n+="Please provide residence street number. \n",af$("ps_number").style.backgroundColor="#FFD8D8"):af$("ps_number").style.backgroundColor="white",af$("ps_street_star").style.display!="none"&&document.finance.ps_street.value.length==0?(n+="Please provide residence street name. \n",af$("ps_street").style.backgroundColor="#FFD8D8"):af$("ps_street").style.backgroundColor="white",af$("ps_type_star").style.display!="none"&&trim(document.finance.ps_type.value)==""?(n+="Please select residence street type. \n",af$("ps_type").style.backgroundColor="#FFD8D8"):af$("ps_type").style.backgroundColor="white",af$("cus_city_star").style.display!="none"&&trim(document.finance.cus_city.value)==""?(n=n+"Please provide residence city name. \n",af$("cus_city").style.backgroundColor="#FFD8D8"):af$("cus_city").style.backgroundColor="white",cus_state==1?af$("cus_state_star").style.display!="none"&&af$("cus_states").value==""?(n+="Please select residence state. \n",af$("cus_states").style.backgroundColor="#FFD8D8"):af$("cus_states").style.backgroundColor="white":af$("cus_state_star").style.display!="none"&&document.finance.cus_state.options[document.finance.cus_state.selectedIndex].value==""?(n+="Please select residence state. \n",af$("cus_state").style.backgroundColor="#FFD8D8"):af$("cus_state").style.backgroundColor="white",af$("cus_country_star").style.display!="none"&&document.finance.cus_country.options[document.finance.cus_country.selectedIndex].value==0?(n+="Please select residence country. \n",af$("cus_country").style.backgroundColor="#FFD8D8"):af$("cus_country").style.backgroundColor="white",af$("cus_zipcode_star").style.display!="none"&&getIntegersOnly(af$("cus_zipcode").value).length==0?(i="Please provide residence zip. \n",n+=i,af$("cus_zipcode").style.backgroundColor="#FFD8D8"):af$("cus_zipcode").style.backgroundColor="white",n+=ValidateZip(trim(af$("cus_zipcode").value),parseInt(af$("cus_country").value),"customer zip is not val
8id.\n"),af$("DDaddStayYearMonth_star").style.display!="none"&&(document.finance.DDaddStayYear.options[document.finance.DDaddStayYear.selectedIndex].value==""&&document.finance.DDaddStayMonth.options[document.finance.DDaddStayMonth.selectedIndex].value==""?(n+=creditAppType=="I"?"Please provide length of stay in the area. \n":"Please provide time at location. \n",af$("DDaddStayMonth").style.backgroundColor="#FFD8D8",af$("DDaddStayYear").style.backgroundColor="#FFD8D8"):document.finance.DDaddStayYear.options[document.finance.DDaddStayYear.selectedIndex].value==""?(n+=creditAppType=="I"?"Please provide length of stay in the area in years. \n":"Please provide time at location in years. \n",af$("DDaddStayYear").style.backgroundColor="#FFD8D8"):document.finance.DDaddStayMonth.options[document.finance.DDaddStayMonth.selectedIndex].value==""?(n+=creditAppType=="I"?"Please provide length of stay in the area in months. \n":"Please provide time at location in months. \n",af$("DDaddStayMonth").style.backgroundColor="#FFD8D8"):(af$("DDaddStayMonth").style.backgroundColor="white",af$("DDaddStayYear").style.backgroundColor="white")),af$("DDaddTypeRes_star").style.display!="none"&&af$("DDaddTypeRes").value.length==0?(n+="Please provide type of residence. \n",af$("DDaddTypeRes").style.backgroundColor="#FFD8D8"):af$("DDaddTypeRes").style.backgroundColor="white",af$("TBaddMonthPayment_star").style.display!="none"&&af$("TBaddMonthPayment").value==""?(n+="Please provide the monthly payment. \n",af$("TBaddMonthPayment").style.backgroundColor="#FFD8D8"):typeof SetCustomMonthPaymentValid!="undefined"&&typeof SetCustomMonthPaymentValid=="function"?n+=SetCustomMonthPaymentValid():af$("TBaddMonthPayment").style.backgroundColor="white",af$("TBaddLandName_star").style.display!="none"&&af$("TBaddLandName").value==""?(n+="Please provide name of landlord. \n",af$("TBaddLandName").style.backgroundColor="#FFD8D8"):af$("TBaddLandName").style.backgroundColor="white",af$("tbaddlandtel_star").style.display!="none"&&(getIntegersOnly(af$("tbaddlandtel").value).length!=10||getIntegersOnly(af$("tbaddlandtel").value).length==0?(n+="Please provide Landlord's Phone. \n",af$("tbaddlandtel").style.backgroundColor="#FFD8D8"):af$("tbaddlandtel").style.backgroundColor="white")),af$("homeprev1").style.display!="none"&&(af$("TBadd1Address1_star").style.display!="none"&&af$("TBadd1Address1").value==""?(n+="Please provide previous residence address line 1. \n",af$("TBadd1Address1").style.backgroundColor="#FFD8D8"):af$("TBadd1Address1").style.backgroundColor="white",af$("TBadd1Address2_star").style.display!="none"&&af$("TBadd1Address2").value==""?(n+="Please provide previous residence address line 2. \n",af$("TBadd1Address2").style.backgroundColor="#FFD8D8"):af$("TBadd1Address2").style.backgroundColor="white",af$("TBadd1City_star").style.display!="none"&&af$("TBadd1City").value==""?(n+="Please provide previous residence city. \n",af$("TBadd1City").style.backgroundColor="#FFD8D8"):af$("TBadd1City").style.backgroundColor="white",DDadd1_state==1?af$("DDadd1State_star").style.display!="none"&&af$("DDadd1_states").value==""?(n+="Please select previous residence state. \n",af$("DDadd1_states").style.backgroundColor="#FFD8D8"):af$("DDadd1_states").style.backgroundColor="white":af$("DDadd1State_star").style.display!="none"&&document.finance.DDadd1State.options[document.finance.DDadd1State.selectedIndex].value==""?(n+="Please select previous residence state. \n",af$("DDadd1State").style.backgroundColor="#FFD8D8"):af$("DDadd1State").style.backgroundColor="white",af$("DDadd1Country_star").style.display!="none"&&document.finance.DDadd1Country.options[document.finance.DDadd1Country.selectedIndex].value==0?(n+="Please select previous residence country. \n",af$("DDadd1Country").style.backgroundColor="#FFD8D8"):af$("DDadd1Country").style.backgroundColor="white",af$("tbadd1zip_star").style.display!="none"&&af$("tbadd1zip").value==""?(n+="Please provide previous residence zip. \n",af$("tbadd1zip").style.backgroundColor="#FFD8D8"):af$("tbadd1zip").style.backgroundColor="white",n+=ValidateZip(trim(af$("tbadd1zip").value),parseInt(af$("DDadd1Country").value),"Residence1: zip is not val
8id.\n"),af$("DDadd1AddLengthYearMonth_star").style.display!="none"&&(af$("DDadd1AddLengthYear").value==""&&af$("DDadd1AddLengthMonth").value==""?(n+="Please provide previous residence time at residence.\n",af$("DDadd1AddLengthYear").style.backgroundColor="#FFD8D8",af$("DDadd1AddLengthMonth").style.backgroundColor="#FFD8D8"):af$("DDadd1AddLengthYear").value==""?(n+="Please provide previous residence time at residence in years.\n",af$("DDadd1AddLengthYear").style.backgroundColor="#FFD8D8"):af$("DDadd1AddLengthMonth").value==""?(n+="Please provide previous residence time at residence in months.\n",af$("DDadd1AddLengthMonth").style.backgroundColor="#FFD8D8"):(af$("DDadd1AddLengthYear").style.backgroundColor="white",af$("DDadd1AddLengthMonth").style.backgroundColor="white"))),af$("homeprev2").style.display!="none"&&(af$("TBadd2Address1_star").style.display!="none"&&af$("TBadd2Address1").value==""?(n+="Please provide previous residence address line 1. \n",af$("TBadd2Address1").style.backgroundColor="#FFD8D8"):af$("TBadd2Address1").style.backgroundColor="white",af$("TBadd2Address2_star").style.display!="none"&&af$("TBadd2Address2").value==""?(n+="Please provide previous residence address line 2. \n",af$("TBadd2Address2").style.backgroundColor="#FFD8D8"):af$("TBadd2Address2").style.backgroundColor="white",af$("TBadd2City_star").style.display!="none"&&af$("TBadd2City").value==""?(n+="Please provide previous residence city. \n",af$("TBadd2City").style.backgroundColor="#FFD8D8"):af$("TBadd2Address1").style.backgroundColor="white",DDadd2_state==1?af$("DDadd2State_star").style.display!="none"&&af$("DDadd2_states").value==""?(n+="Please select previous residence state. \n",af$("DDadd2_states").style.backgroundColor="#FFD8D8"):af$("DDadd2_states").style.backgroundColor="white":af$("DDadd2State_star").style.display!="none"&&document.finance.DDadd1State.options[document.finance.DDadd2State.selectedIndex].value==""?(n+="Please select previous residence state. \n",af$("DDadd2State").style.backgroundColor="#FFD8D8"):af$("DDadd2State").style.backgroundColor="white",af$("DDadd2Country_star").style.display!="none"&&document.finance.DDadd2Country.options[document.finance.DDadd2Country.selectedIndex].value==0?(n+="Please select previous residence country. \n",af$("DDadd2Country").style.backgroundColor="#FFD8D8"):af$("DDadd2Country").style.backgroundColor="white",af$("tbadd2zip_star").style.display!="none"&&af$("tbadd2zip").value==""?(n+="Please provide previous residence zip. \n",af$("tbadd2zip").style.backgroundColor="#FFD8D8"):af$("tbadd2zip").style.backgroundColor="white",n+=ValidateZip(trim(af$("tbadd2zip").value),parseInt(af$("DDadd2Country").value),"Residence2: zip is not valid.\n"),af$("DDadd2AddLengthYearMonth_star").style.display!="none"&&(af$("DDadd2AddLengthYear").value==""&&af$("DDadd2AddLengthMonth").value==""&&(n+="Please provide previous residence time at residence.\n",af$("DDadd2AddLengthYear").style.backgroundColor="#FFD8D8",af$("DDadd2AddLengthMonth").style.backgroundColor="#FFD8D8"),af$("DDadd2AddLengthYear").value==""&&(n+="Please provide previous residence time at residence in years.\n",af$("DDadd2AddLengthYear").style.backgroundColor="#FFD8D8"),af$("DDadd2AddLengthMonth").value==""?(n+="Please provide previous residence time at residence in months.\n",af$("DDadd2AddLengthMonth").style.backgroundColor="#FFD8D8"):(af$("DDadd2AddLengthYear").style.backgroundColor="white",af$("DDadd2AddLengthMonth").style.backgroundColor="white"))),af$("DivEmployment1").style.display!="none"&&(af$("AreUEmployed")&&(af$("AreUEmployed_star").style.display!="none"&&document.finance.AreUEmployed.options[document.finance.AreUEmployed.selectedIndex].value==""?(n+="Please provide employment info. \n",af$("AreUEmployed").style.backgroundColor="#FFD8D8"):document.finance.AreUEmployed.options[document.finance.AreUEmployed.selectedIndex].value!=1&&document.finance.AreUEmployed.options[document.finance.AreUEmployed.selectedIndex].value!=""?af$("TBemployAddIncomeSource_star").style.display!="none"&&af$("TBemployAddIncomeSource").value==0?(n+="Please explain income if you are not employed. \n",af$("TBemployAddIncomeSource").style.backgroundColor="#FFD8D8"):af$("TBemployAddIncomeSource").style.backgroundColor="white":document.finance.AreUEmployed.options[document.finance.AreUEmployed.selectedIndex].value==1&&(af$("DDIsSelfEmployed_star").style.display!="none"&&document.finance.DDIsSelfEmployed.options[document.finance.DDIsSelfEmployed.selectedIndex].value==""?(n+="Please provide self employment details. \n",af$("DDIsSelfEmployed").style.backgroundColor="#FFD8D8"):document.finance.DDIsSelfEmployed.options[document.finance.DDIsSelfEmployed.selectedIndex].value!="true"&&document.finance.DDIsSelfEmployed.options[document.finance.DDIsSelfEmployed.selectedIndex].value!=""?af$("DDEmploymentStatus_star").style.display!="none"&&af$("DDEmploymentStatus").value==0?(n+="Please provide employment status. \n",af$("DDEmploymentStatus").style.backgroundColor="#FFD8D8"):af$("DDEmploymentStatus").style.backgroundColor="white":document.finance.DDIsSelfEmployed.options[document.finance.DDIsSelfEmployed.selectedIndex].value=="true"&&(af$("DDIsSelfEmployed").style.backgroundColor="white"),af$("TBemployName_star").style.display!="none"&&af$("TBemployName").value==0?(n+="Please provide employer name. \n",af$("TBemployName").style.backgroundColor="#FFD8D8"):af$("TBemployName").style.backgroundColor="white",af$("TBemployAdd1_star").style.display!="none"&&af$("TBemployAdd1").value==0?(n+="Please provide employment address 1. \n",af$("TBemployAdd1").style.backgroundColor="#FFD8D8"):af$("TBemployAdd1").style.backgroundColor="white",af$("TBemployAdd2_star").style.display!="none"&&af$("TBemployAdd1").value==0?(n+="Please provide employment address 2. \n",af$("TBemployAdd2").style.backgroundColor="#FFD8D8"):af$("TBemployAdd2").style.backgroundColor="white",af$("TBemployCity_star").style.display!="none"&&af$("TBemployCity").value==0?(n+="Please provide employment city. \n",af$("TBemployCity").style.backgroundColor="#FFD8D8"):af$("TBemployCity").style.backgroundColor="white",DDemploy_state==1?af$("DDemployState_star").style.display!="none"&&af$("DDemploy_states").value==""?(n+="Please select employment state. \n",af$("DDemploy_states").style.backgroundColor="#FFD8D8"):af$("DDemploy_states").style.backgroundColor="white":af$("DDemployState_star").style.display!="none"&&document.finance.DDemployState.o
8ptions[document.finance.DDemployState.selectedIndex].value==""?(n+="Please select employment state. \n",af$("DDemployState").style.backgroundColor="#FFD8D8"):af$("DDemployState").style.backgroundColor="white",af$("DDemployCountry_star").style.display!="none"&&document.finance.DDemployCountry.options[document.finance.DDemployCountry.selectedIndex].value==0?(n+="Please select employment country. \n",af$("DDemployCountry").style.backgroundColor="#FFD8D8"):af$("DDemployCountry").style.backgroundColor="white",af$("tbemployzip_star").style.display!="none"&&af$("tbemployzip").value==0?(n+="Please provide employment zip. \n",af$("tbemployzip").style.backgroundColor="#FFD8D8"):af$("tbemployzip").style.backgroundColor="white",n+=ValidateZip(trim(af$("tbemployzip").value),parseInt(af$("DDemployCountry").value),"Employer: zip is not valid.\n"),af$("EmpInfoOccup_star").style.display!="none"&&af$("EmpInfoOccup").value==0?(n+=creditAppType=="I"?"Please provide occupation. \n":"Please provide title. \n",af$("EmpInfoOccup").style.backgroundColor="#FFD8D8"):af$("EmpInfoOccup").style.backgroundColor="white",af$("TBemployWorkType_star").style.display!="none"&&af$("TBemployWorkType").value==""?(n+="Please provide type of work. \n",af$("TBemployWorkType").style.backgroundColor="#FFD8D8"):af$("TBemployWorkType").style.backgroundColor="white",af$("TBemployIncome_star").style.display!="none"&&(gross_income=document.finance.TBemployIncome.value,gross_income.length==0||gross_income=="0.00"||gross_income=="0"?(af$("TBemployIncome").style.backgroundColor="#FFD8D8",n+="Please provide gross income. \n"):isNaN(gross_income)?n+="Gross income must be numeric. \n":af$("TBemployIncome").style.backgroundColor="white"),af$("DDemployFreq_star").style.display=parseFloat(document.finance.TBemployIncome.value)>0?"inline":"none",af$("DDemployFreq_star").style.display!="none"&&document.finance.DDemployFreq.options[document.finance.DDemployFreq.selectedIndex].value==0?(n+="Please select the frequency of income. \n",af$("DDemployFreq").style.backgroundColor="#FFD8D8"):af$("DDemployFreq").style.backgroundColor="white",af$("DDemployJobYear1Month1_star").style.display!="none"&&(document.finance.DDemployJobYear1.options[document.finance.DDemployJobYear1.selectedIndex].value==""&&document.finance.DDemployJobMonth1.options[document.finance.DDemployJobMonth1.selectedIndex].value==""?(n+=creditAppType=="I"?"Please provide length of current employment. \n":"Please provide time in business. \n",af$("DDemployJobYear1").style.backgroundColor="#FFD8D8",af$("DDemployJobMonth1").style.backgroundColor="#FFD8D8"):document.finance.DDemployJobYear1.options[document.finance.DDemployJobYear1.selectedIndex].value==""?(n+=creditAppType=="I"?"Please provide length of current employment in years. \n":"Please provide time in business in years. \n",af$("DDemployJobYear1").style.backgroundColor="#FFD8D8"):document.finance.DDemployJobMonth1.options[document.finance.DDemployJobMonth1.selectedIndex].value==""?(n+=creditAppType=="I"?"Please provide length of current employment in months. \n":"Please provide time in business in months. \n",af$("DDemployJobMonth1").style.backgroundColor="#FFD8D8"):(af$("DDemployJobYear1").style.backgroundColor="white",af$("DDemployJobMonth1").style.backgroundColor="white")),af$("cus_workphone_star").style.display!="none"&&af$("cus_workphone").value==0?(n+="Please provide work phone. \n",af$("cus_workphone").style.backgroundColor="#FFD8D8"):af$("cus_workphone").style.backgroundColor="white",n+=ValidatePhoneNumberByCountry(trim(af$("cus_workphone").value),af$("cus_country").value,"Workphone # is not valid.\n"),af$("cus_empployment_phone_star").style.display!="none"&&af$("cus_empployment_phone").value.length==0?(n+="Please provide employer phone. \n",af$("cus_empployment_phone").style.backgroundColor="#FFD8D8"):af$("cus_empployment_phone").style.backgroundColor="white",af$("EmpInfoSupervisor_star").style.display!="none"&&af$("EmpInfoSupervisor").value==0?(n+=creditAppType=="I"?"Please provide supervisor name. \n":"Please provide contact. \n",af$("EmpInfoSupervisor").style.backgroundColor="#FFD8D8"):af$("EmpInfoSupervisor").style.backgroundColor="white")),af$("DDAdditional_Income_star").style.display!="none"&&(document.finance.DDAdditional_Income.options[document.finance.DDAdditional_Income.selectedIndex].value==""?(n+="Please provide additional income info. \n",af$("DDAdditional_Income").style.backgroundColor="#FFD8D8"):af$("DDAdditional_Income").style.backgroundColor="white"),af$("TBemployAddIncome_star").style.display!="none"&&document.finance.DDAdditional_Income.options[document.finance.DDAdditional_Income.selectedIndex].value==1&&(document.finance.TBemployAddIncome.value.length==0||document.finance.TBemployAddIncome.value=="0.00"||document.finance.TBemployAddIncome.value=="0"?(n+="Please provide additional income amount. \n",af$("TBemployAddIncome").style.backgroundColor="#FFD8D8"):af$("TBemployAddIncome").style.backgroundColor="white"),af$("DDemployAddIncomeFreq_star").style.display=parseFloat(document.finance.TBemployAddIncome.value)>0?"inline":"none",af$("DDemployAddIncomeFreq_star").style.display!="none"&&document.finance.DDAdditional_Income.options[document.finance.DDAdditional_Income.selectedIndex].value==1&&(af$("DDemployAddIncomeFreq_star").style.display!="none"&&document.finance.DDemployAddIncomeFreq.options[document.finance.DDemployAddIncomeFreq.selectedIndex].value==0?(n+="Please select additional income frequency. \n",af$("DDemployAddIncomeFreq").style.backgroundColor="#FFD8D8"):af$("DDemployAddIncomeFreq").style.backgroundColor="white")),af$("empprev1").style.display!="none"&&(af$("TBemploy2Name_star").style.display!="none"&&af$("TBemploy2Name").value==""?(n+="Please provide previous employment employer name. \n",af$("TBemploy2Name").style.backgroundColor="#FFD8D8"):af$("TBemploy2Name").style.backgroundColor="white",af$("TBemploy2Add1_star").style.display!="none"&&af$("TBemploy2Add1").value==""?(n+="Please provide previous employment address 1. \n",af$("TBemploy2Add1").style.backgroundColor="#FFD8D8"):af$("TBemploy2Add1").style.backgroundColor="white",af$("TBemploy2Add2_star").style.display!="none"&&af$("TBemploy2Add2").value==""?(n+="Please provide previous employment address 2. \n",af$("TBemploy2Add2").style.backgroundColor="#FFD8D8"):af$("TBemploy2Add2").style.backgroundColor="white",af$("TBemploy2City_star").style.display!="none"&&af$("TBemploy2City").value==""?(n+="Please provide previous employment city. \n",af$("TBemploy2City").style.backgroundColor="#FFD8D8"):af$("TBemploy2City").style.backgroundColor="white",DDemploy2_state==1?af$("DDemploy2State_star").style.display!="none"&&af$("DDemploy2_states").value==""?(n+="Please select previous employment state. \n",af$("DDemploy2_states").style.backgroundColor="#FFD8D8"):af$("DDemploy2_states").style.backgroundColor="white":af$("DDemploy2State_star").style.display!="none"&&document.finance.DDemploy2State.options[document.finance.DDemploy2State.selectedIndex].value==""?(n+="Please select previous employment state. \n",af$("DDemploy2State").style.backgroundColor="#FFD8D8"):af$("DDemploy2State").style.backgroundColor="white",af$("DDemploy2Country_star").style.display!="none"&&document.finance.DDemploy2Country.options[document.finance.DDemploy2Country.selectedIndex].value==0?(n+="Please select previous employment c
8ountry. \n",af$("DDemploy2Country").style.backgroundColor="#FFD8D8"):af$("DDemploy2Country").style.backgroundColor="white",af$("tbemploy2zip_star").style.display!="none"&&af$("tbemploy2zip").value==""?(n+="Please provide previous employment zip. \n",af$("tbemploy2zip").style.backgroundColor="#FFD8D8"):af$("tbemploy2zip").style.backgroundColor="white",n+=ValidateZip(trim(af$("tbemploy2zip").value),parseInt(af$("DDemploy2Country").value),"Employer2: zip is not valid.\n"),af$("PreEmplo1Occup_star").style.display!="none"&&af$("PreEmplo1Occup").value==""?(n+="Please provide previous employment occupation. \n",af$("PreEmplo1Occup").style.backgroundColor="#FFD8D8"):af$("PreEmplo1Occup").style.backgroundColor="white",af$("tbemp2phone_star").style.display!="none"&&af$("tbemp2phone").value==""?(n+="Please provide previous employment work phone. \n",af$("tbemp2phone").style.backgroundColor="#FFD8D8"):af$("tbemp2phone").style.backgroundColor="white",n+=ValidatePhoneNumberByCountry(trim(af$("tbemp2phone").value),af$("DDemploy2Country").value,"Employer2: Telephone # is not valid.\n"),af$("DDIsSelfEmployed2_star").style.display!="none"&&document.finance.DDIsSelfEmployed2.options[document.finance.DDIsSelfEmployed2.selectedIndex].value==""?(n+="Please provide self employment details. \n",af$("DDIsSelfEmployed2").style.backgroundColor="#FFD8D8"):af$("DDIsSelfEmployed2").style.backgroundColor="white",af$("DDemploy2JobYearsMonth_star").style.display!="none"&&(af$("DDemploy2JobYears").value==""&&af$("DDemploy2JobMonths").value==""?(n+="Please provide previous employment time at job. \n",af$("DDemploy2JobYears").style.backgroundColor="#FFD8D8",af$("DDemploy2JobMonths").style.backgroundColor="#FFD8D8"):af$("DDemploy2JobYears").value==""?(n+="Please provide previous employment time at job in years. \n",af$("DDemploy2JobYears").style.backgroundColor="#FFD8D8"):af$("DDemploy2JobMonths").value==""?(n+="Please provide previous employment time at job in months. \n",af$("DDemploy2JobMonths").style.backgroundColor="#FFD8D8"):(af$("DDemploy2JobYears").style.backgroundColor="white",af$("DDemploy2JobMonths").style.backgroundColor="white")),af$("PrevEmplo1Supervisor_star").style.display!="none"&&af$("PrevEmplo1Supervisor").value==""?(n+="Please provide previous employment supervisor name. \n",af$("PrevEmplo1Supervisor").style.backgroundColor="#FFD8D8"):af$("PrevEmplo1Supervisor").style.backgroundColor="white"),af$("empprev2").style.display!="none"&&(af$("TBemploy3Name_star").style.display!="none"&&af$("TBemploy3Name").value==""?(n+="Please provide previous employment employer name. \n",af$("TBemploy3Name").style.backgroundColor="#FFD8D8"):af$("TBemploy3Name").style.backgroundColor="white",af$("TBemploy3Add1_star").style.display!="none"&&af$("TBemploy3Add1").value==""?(n+="Please provide previous employment address. \n",af$("TBemploy3Add1").style.backgroundColor="#FFD8D8"):af$("TBemploy3Add1").style.backgroundColor="white",af$("TBemploy3Add2_star").style.display!="none"&&af$("TBemploy3Add2").value==""?(n+="Please provide previous employment address 2. \n",af$("TBemploy3Add2").style.backgroundColor="#FFD8D8"):af$("TBemploy3Add2").style.backgroundColor="white",af$("TBemploy3City_star").style.display!="none"&&af$("TBemploy3City").value==""?(n+="Please provide previous employment city. \n",af$("TBemploy3City").style.backgroundColor="#FFD8D8"):af$("TBemploy3City").style.backgroundColor="white",DDemploy3_state==1?af$("DDemploy3State_star").style.display!="none"&&af$("DDemploy3_states").value==""?(n+="Please select previous employment state. \n",af$("DDemploy3_states").style.backgroundColor="#FFD8D8"):af$("DDemploy3_states").style.backgroundColor="white":af$("DDemploy3State_star").style.display!="none"&&document.finance.DDemploy3State.options[document.finance.DDemploy3State.selectedIndex].value==""?(n+="Please select previous employment state. \n",af$("DDemploy3State").style.backgroundColor="#FFD8D8"):af$("DDemploy3State").style.backgroundColor="white",af$("DDemploy3Country_star").style.display!="none"&&document.finance.DDemploy3Country.options[document.finance.DDemploy3Country.selectedIndex].value==0?(n+="Please select previous employment c
8ountry. \n",af$("DDemploy3Country").style.backgroundColor="#FFD8D8"):af$("DDemploy3Country").style.backgroundColor="white",af$("tbemploy3zip_star").style.display!="none"&&af$("tbemploy3zip").value==""?(n+="Please provide previous employment zip. \n",af$("tbemploy3zip").style.backgroundColor="#FFD8D8"):af$("tbemploy3zip").style.backgroundColor="white",n+=ValidateZip(trim(af$("tbemploy3zip").value),parseInt(af$("DDemploy3Country").value),"Employer3: zip is not valid.\n"),af$("PreEmplo2Occup_star").style.display!="none"&&af$("PreEmplo2Occup").value==""?(n+="Please provide previous employment occupation. \n",af$("PreEmplo2Occup").style.backgroundColor="#FFD8D8"):af$("PreEmplo2Occup").style.backgroundColor="white",af$("tbemp3phone_star").style.display!="none"&&af$("tbemp3phone").value==""?(n+="Please provide previous employment work phone. \n",af$("tbemp3phone").style.backgroundColor="#FFD8D8"):af$("tbemp3phone").style.backgroundColor="white",n+=ValidatePhoneNumberByCountry(trim(af$("tbemp3phone").value),af$("DDemploy3Country").value,"Employer3: telephone # is not valid.\n"),af$("DDIsSelfEmployed3_star").style.display!="none"&&document.finance.DDIsSelfEmployed3.options[document.finance.DDIsSelfEmployed3.selectedIndex].value==""?(n+="Please provide self employment details. \n",af$("DDIsSelfEmployed3").style.backgroundColor="#FFD8D8"):af$("DDIsSelfEmployed3").style.backgroundColor="white",af$("DDemploy3JobYearMonth_star").style.display!="none"&&(af$("DDemploy3JobYear").value==""&&af$("DDemploy3JobMonth").value==""?(n+="Please provide previous employment time at job. \n",af$("DDemploy3JobYear").style.backgroundColor="#FFD8D8",af$("DDemploy3JobMonth").style.backgroundColor="#FFD8D8"):af$("DDemploy3JobYear").value==""?(n+="Please provide previous employment time at job in years. \n",af$("DDemploy3JobYear").style.backgroundColor="#FFD8D8"):af$("DDemploy3JobMonth").value==""?(n+="Please provide previous employment time at job in months. \n",af$("DDemploy3JobMonth").style.backgroundColor="#FFD8D8"):(af$("DDemploy3JobYear").style.backgroundColor="white",af$("DDemploy3JobMonth").style.backgroundColor="white")),af$("PrevEmplo2Supervisor_star").style.display!="none"&&af$("PrevEmplo2Supervisor").value==""?(n+="Please provide previous employment 2 supervisor name. \n",af$("PrevEmplo2Supervisor").style.backgroundColor="#FFD8D8"):af$("PrevEmplo2Supervisor").style.backgroundColor="white"),DWDealerID==4580&&(af$("InterestedInContainer").style.display!="none"?(y=document.querySelector('input[name="chkInventoryIDs"]:checked')!==null,y==!1&&(n+="Please select desired vehicle. \n")):af$("pnlDesiredVehicle").style.display!="none"&&(af$("Veh_Year").value==""?(n+="Please provide desired vehicle from year. \n",af$("Veh_Year").style.backgroundColor="#FFD8D8"):af$("Veh_Year").style.backgroundColor="white",af$("Veh_ToYear").value==""?(n+="Please provide desired vehicle to year. \n",af$("Veh_ToYear").style.backgroundColor="#FFD8D8"):af$("Veh_ToYear").style.backgroundColor="white",af$("Veh_Make").value==""?(n+="Please provide desired vehicle make. \n",af$("Veh_Make").style.backgroundColor="#FFD8D8"):af$("Veh_Make").style.backgroundColor="white",af$("Veh_Model").value==""?(n+="Please provide desired vehicle model. \n",af$("Veh_Model").style.backgroundColor="#FFD8D8"):af$("Veh_Model").style.backgroundColor="white")),af$("desireVehInfoDiv").style.display!="none"&&(p=document.querySelector('input[name="chkInventoryIDs"]:checked')!==null,p===!1&&(af$("NeworUsed_star").style.display!="none"&&af$("NeworUsed").value==""?(n+="Please provide vehicle you are interested in. \n",af$("NeworUsed").style.backgroundColor="#FFD8D8"):af$("NeworUsed").style.backgroundColor="white",af$("Veh_Year_star").style.display!="none"&&af$("Veh_Year").value==""?(n+="Please provide desired vehicle from year. \n",af$("Veh_Year").style.backgroundColor="#FFD8D8"):af$("Veh_Year").style.backgroundColor="white",af$("Veh_ToYear_star").style.display!="none"&&af$("Veh_ToYear").value==""?(n+="Please provide desired vehicle to year. \n",af$("Veh_ToYear").style.backgroundColor="#FFD8D8"):af$("Veh_ToYear").style.backgroundColor="white",af$("Veh_Make_star").style.display!="none"&&af$("Veh_Make").value==""?(n+="Please provide desired vehicle make. \n",af$("Veh_Make").style.backgroundColor="#FFD8D8"):af$("Veh_Make").style.backgroundColor="white",af$("Veh_Model_star").style.display!="none"&&af$("Veh_Model").value==""?(n+="Please provide desired vehicle model. \n",af$("Veh_Model").style.backgroundColor="#FFD8D8"):af$("Veh_Model").style.backgroundColor="white",af$("Veh_Mileage_star").style.display!="none"&&af$("Veh_Mileage").value==""?(n+="Please provide vehicle mileage. \n",af$("Veh_Mileage").style.backgroundColor="#FFD8D8"):af$("Veh_Mileage").style.backgroundColor="white",af$("VisitedWebsite_star").style.display!="none"&&(document.finance.VisitedWebsite.options[document.finance.VisitedWebsite.selectedIndex].value==""?(n+="Have you visited our Online Showroom? \n",af$("VisitedWebsite").style.backgroundColor="#FFD8D8"):af$("VisitedWebsite").style.backgroundColor="white"),af$("StockNo_star").style.display!="none"&&af$("StockNo").value==""?(n+="Please provide desired vehicle stock. \n",af$("StockNo").style.backgroundColor="#FFD8D8"):af$("StockNo").style.backgroundColor="white",af$("ExtColor_1_star").style.display!="none"&&af$("ExtColor_1").value==""?(n+="Please provide desired vehicle exterior color 1. \n",af$("ExtColor_1").style.backgroundColor="#FFD8D8"):af$("ExtColor_1").style.backgroundColor="white",af$("ExtColor_2_star").style.display!="none"&&af$("ExtColor_2").value==""?(n+="Please provide desired vehicle exterior color 2. \n",af$("ExtColor_2").style.backgroundColor="#FFD8D8"):af$("ExtColor_2").style.backgroundColor="white",af$("ExtColor_3_star").style.display!="none"&&af$("ExtColor_3").value==""?(n+="Please provide desired vehicle exterior color 3. \n",af$("ExtColor_3").style.backgroundColor="#FFD8D8"):af$("ExtColor_3").style.backgroundColor="white",af$("IntColor_1_star").style.display!="none"&&af$("IntColor_1").value==""?(n+="Please provide desired vehicle interior color 1. \n",af$("IntColor_1").style.backgroundColor="#FFD8D8"):af$("IntColor_1").style.backgroundColor="white",af$("IntColor_2_star").style.display!="none"&&af$("IntColor_2").value==""?(n+="Please provide desired vehicle interior color 2. \n",af$("IntColor_2").style.backgroundColor="#FFD8D8"):af$("IntColor_2").style.backgroundColor="white",af$("IntColor_3_star").style.display!="none"&&af$("IntColor_3").value==""?(n+="Please provide desired vehicle interior color 3. \n",af$("IntColor_3").style.backgroundColor="#FFD8D8"):af$("IntColor_3").style.backgroundColor="white")),af$("IsthereCoBuyer")&&document.finance.IsthereCoBuyer.options[document.finance.IsthereCoBuyer.selectedIndex].value==1&&(af$("InfoDiv_CoBuyer").style.display!="none"&&(af$("cob_cus_firstname_star").style.display!="none"&&trim(document.finance.cob_cus_firstname.value)==""?(af$("cob_cus_firstname").style.backgroundColor="#FFD8D8",n+="Please provide co-buyer's first name. \n"):af$("cob_cus_firstname").style.backgroundColor="white",af$("cob_cus_middlename_star").style.display!="none"&&trim(document.finance.cob_cus_middlename.value)==""?(af$("cob_cus_middlename").style.backgroundColor="#FFD8D8",n+="Please provide co-buyer's the middle name. \n"):af$("cob_cus_middlename").style.backgroundColor="white",af$("cob_cus_lastname_star").style.display!="none"&&trim(document.finance.cob_cus_lastname.value)==""?(af$("cob_cus_lastname").style.backgroundColor="#FFD8D8",n+="Please provide co-buyer's last name. \n"):af$("cob_cus_lastname").style.backgroundColor="white",af$("cob_cus_ssn_star").style.display!="none"?af$("cob_cus_ssn").value.length==0?(af$("
8cob_cus_ssn").style.backgroundColor="#FFD8D8",n+="Please provide co-buyer's SSN. \n"):getIntegersOnly(af$("cob_cus_ssn").value).length>0&&getIntegersOnly(af$("cob_cus_ssn").value).length<9?n+="Co-buyer's SSN is not valid. \n":af$("cob_cus_ssn").style.backgroundColor="white":getIntegersOnly(af$("cob_cus_ssn").value).length>0&&getIntegersOnly(af$("cob_cus_ssn").value).length<9&&(i="Co-buyer's SSN is not valid. \n",n+=i),t=af$("cob_cus_bdate"),t.value=makeDateFormat(t.value),af$("cob_cus_bdate_star").style.display!="none"?t.value.length==0?(i="Please provide co-buyer's date of birth. \n",n+=i,af$("cob_cus_bdate").style.backgroundColor=t.value.length==0?"#FFD8D8":"white"):getIntegersOnly(t.value).length==8&&t.value.length==10?(r=isValidDate(t.value.substring(0,2),t.value.substring(3,5),t.value.substring(6,10)),r!=!0&&(n+=r)):(i="Co-buyer's birth date is not valid. \n",n+=i):getIntegersOnly(t.value).length==8&&t.value.length==10?(r=isValidDate(t.value.substring(0,2),t.value.substring(3,5),t.value.substring(6,10)),r!=!0&&(n+=r)):t.value.length>0&&getIntegersOnly(t.value).length!=8&&t.value.length!=10&&(i="Co-buyer's birth date is not valid. \n",n+=i),af$("cob_cus_gender_star").style.display!="none"&&trim(document.finance.cob_cus_gender.value)=="NA"?(n+="Please select co-buyer's gender. \n",af$("cob_cus_gender").style.backgroundColor="#FFD8D8"):af$("cob_cus_gender").style.backgroundColor="white",af$("cob_license_number_star").style.display!="none"&&trim(document.finance.cob_license_number.value)==""?(n+="Please provide co-buyer's D/L number. \n",af$("cob_license_number").style.backgroundColor="#FFD8D8"):af$("cob_license_number").style.backgroundColor="white",af$("cob_license_state_star").style.display!="none"&&document.finance.cob_license_state.options[document.finance.cob_license_state.selectedIndex].value==""?(n+="Please select co-buyer's license issued state. \n",af$("cob_license_state").style.backgroundColor="#FFD8D8"):af$("cob_license_state").style.backgroundColor="white",af$("cob_license_country_star").style.display!="none"&&document.finance.cob_license_country.options[document.finance.cob_license_country.selectedIndex].value==0?(n+="Please select co-buyer's license country. \n",af$("cob_license_country").style.backgroundColor="#FFD8D8"):af$("cob_license_country").style.backgroundColor="white",af$("cob_cus_mobilephone_star").style.display!="none"&&getIntegersOnly(af$("cob_cus_mobilephone").value).length==0?(n+="Please provide co-buyer's cellphone number. \n",af$("cob_cus_mobilephone").style.backgroundColor="#FFD8D8"):af$("cob_cus_mobilephone").style.backgroundColor="white",n+=ValidatePhoneNumberByCountry(trim(af$("cob_cus_mobilephone").value),af$("cob_cus_country").value,"Co-buyer's cellphone # is not valid.\n"),af$("cob_cus_homephone_star").style.display!="none"&&getIntegersOnly(af$("cob_cus_homephone").value).length==0?(i="Please provide co-buyer's home telephone number. \n",n+=i,af$("cob_cus_homephone").style.backgroundColor="#FFD8D8"):af$("cob_cus_homephone").style.backgroundColor="white",n+=ValidatePhoneNumberByCountry(trim(af$("cob_cus_homephone").value),af$("cob_cus_country").value,"Co-buyer's homephone # is not valid.\n"),e=af$("cob_cus_email").value,af$("cob_cus_email_star").style.display!="none"&&e==""?(n+="Please provide co-buyer's e-mail address. \n",af$("cob_cus_email").style.backgroundColor="#FFD8D8"):af$("cob_cus_email").style.backgroundColor="white",e.length>0&&isValidEmail(e)==!1&&(n+="Co-buyer's invalid e-mail address. \n")),af$("FinanceCurrentResidence_CoBuyer").style.display!="none"&&(af$("cob_cus_apartment_star").style.display!="none"&&trim(document.finance.cob_cus_apartment.value)==""?(n+="Please provide co-buyer's residence appartment name. \n",af$("cob_cus_apartment").style.backgroundColor="#FFD8D8"):af$("cob_cus_apartment").style.backgroundColor="white",af$("cob_ps_number_star").style.display!="none"&&trim(document.finance.cob_ps_number.value)==""?(n+="Please provide co-buyer's residence street number. \n",af$("cob_ps_number").style.backgroundColor="#FFD8D8"):af$("cob_ps_number").style.backgroundColor="white",af$("cob_ps_street_star").style.display!="none"&&document.finance.cob_ps_
8street.value.length==0?(n+="Please provide co-buyer's residence street name. \n",af$("cob_ps_street").style.backgroundColor="#FFD8D8"):af$("cob_ps_street").style.backgroundColor="white",af$("cob_ps_type_star").style.display!="none"&&trim(document.finance.cob_ps_type.value)==""?(n+="Please select co-buyer's residence street type. \n",af$("cob_ps_type").style.backgroundColor="#FFD8D8"):af$("cob_ps_type").style.backgroundColor="white",af$("cob_cus_city_star").style.display!="none"&&trim(document.finance.cob_cus_city.value)==""?(n=n+"Please provide co-buyer's residence city name. \n",af$("cob_cus_city").style.backgroundColor="#FFD8D8"):af$("cob_cus_city").style.backgroundColor="white",af$("cob_cus_state_star").style.display!="none"&&document.finance.cob_cus_state.options[document.finance.cob_cus_state.selectedIndex].value==""?(n+="Please select co-buyer's residence state. \n",af$("cob_cus_state").style.backgroundColor="#FFD8D8"):af$("cob_cus_state").style.backgroundColor="white",af$("cob_cus_country_star").style.display!="none"&&document.finance.cob_cus_country.options[document.finance.cob_cus_country.selectedIndex].value==0?(n+="Please select co-buyer's residence country. \n",af$("cob_cus_country").style.backgroundColor="#FFD8D8"):af$("cob_cus_country").style.backgroundColor="white",af$("cob_cus_zipcode_star").style.display!="none"&&getIntegersOnly(af$("cob_cus_zipcode").value).length==0?(i="Please provide co-buyer's residence zip. \n",n+=i,af$("cob_cus_zipcode").style.backgroundColor="#FFD8D8"):af$("cob_cus_zipcode").style.backgroundColor="white",n+=ValidateZip(trim(af$("cob_cus_zipcode").value),parseInt(af$("cob_cus_country").value),"Co-buyer's zip is not valid.\n"),af$("cob_DDaddStayYearMonth_star").style.display!="none"&&(document.finance.cob_DDaddStayYear.options[document.finance.cob_DDaddStayYear.selectedIndex].value==""&&document.finance.cob_DDaddStayMonth.options[document.finance.cob_DDaddStayMonth.selectedIndex].value==""?(n+="Please provide co-buyer's length of stay in the area. \n",af$("cob_DDaddStayMonth").style.backgroundColor="#FFD8D8",af$("cob_DDaddStayYear").style.backgroundColor="#FFD8D8"):document.finance.cob_DDaddStayYear.options[document.finance.cob_DDaddStayYear.selectedIndex].value==""?(n+="Please provide co-buyer's length of stay in the area in years. \n",af$("cob_DDaddStayYear").style.backgroundColor="#FFD8D8"):document.finance.cob_DDaddStayMonth.options[document.finance.cob_DDaddStayMonth.selectedIndex].value==""?(n+="Please provide co-buyer's length of stay in the area in months. \n",af$("cob_DDaddStayMonth").style.backgroundColor="#FFD8D8"):(af$("cob_DDaddStayMonth").style.backgroundColor="white",af$("cob_DDaddStayYear").style.backgroundColor="white")),af$("cob_DDaddTypeRes_star").style.display!="none"&&af$("cob_DDaddTypeRes").value.length==0?(n+="Please provide co-buyer's type of residence. \n",af$("cob_DDaddTypeRes").style.backgroundColor="#FFD8D8"):af$("cob_DDaddTypeRes").style.backgroundColor="white",af$("cob_TBaddMonthPayment_star").style.display!="none"&&af$("cob_TBaddMonthPayment").value==""?(n+="Please provide co-buyer's the monthly payment. \n",af$("cob_TBaddMonthPayment").style.backgroundColor="#FFD8D8"):typeof SetCustomCobMonthPaymentValid!="undefined"&&typeof SetCustomCobMonthPaymentValid=="function"?n+=SetCustomCobMonthPaymentValid():af$("cob_TBaddMonthPayment").style.backgroundColor="white",af$("homeprev1_CoBuyer").style.display!="none"&&(af$("cob_TBadd1Address1_star").style.display!="none"&&af$("cob_TBadd1Address1").value==""?(n+="Please provide co-buyer's previous residence address line 1. \n",af$("cob_TBadd1Address1").style.backgroundColor="#FFD8D8"):af$("cob_TBadd1Address1").style.backgroundColor="white",af$("cob_TBadd1Address2_star").style.display!="none"&&af$("cob_TBadd1Address2").value==""?(n+="Please provide co-buyer's previous residence address line 2. \n",af$("cob_TBadd1Address2").style.backgroundColor="#FFD8D8"):af$("cob_TBadd1Address2").style.backgroundColor="white",af$("cob_TBadd1City_star").style.display!="none"&&af$("cob_TBadd1City").value==""?(n+="Please provide co-buyer's previous residence city. \n",af$("cob_TBadd1City").style.backgroundColor="#FFD8D8"):af$("cob_TBadd1City").style.backgroundColor="white",af$("cob_DDadd1State_star").style.display!="none"&&document.finance.cob_DDadd1State.o
8ptions[document.finance.cob_DDadd1State.selectedIndex].value==""?(n+="Please select co-buyer's previous residence state. \n",af$("cob_DDadd1State").style.backgroundColor="#FFD8D8"):af$("cob_DDadd1State").style.backgroundColor="white",af$("cob_DDadd1Country_star").style.display!="none"&&document.finance.cob_DDadd1Country.options[document.finance.cob_DDadd1Country.selectedIndex].value==0?(n+="Please select co-buyer's previous residence country. \n",af$("cob_DDadd1Country").style.backgroundColor="#FFD8D8"):af$("cob_DDadd1Country").style.backgroundColor="white",af$("cob_tbadd1zip_star").style.display!="none"&&af$("cob_tbadd1zip").value==""?(n+="Please provide co-buyer's previous residence zip. \n",af$("cob_tbadd1zip").style.backgroundColor="#FFD8D8"):af$("cob_tbadd1zip").style.backgroundColor="white",n+=ValidateZip(trim(af$("cob_tbadd1zip").value),parseInt(af$("cob_DDadd1Country").value),"Residence1: cobuyer's zip is not valid.\n"),af$("cob_DDadd1AddLengthYearMonth_star").style.display!="none"&&(af$("cob_DDadd1AddLengthYear").value==""&&af$("cob_DDadd1AddLengthMonth").value==""?(n+="Please provide co-buyer's previous residence time at residence.\n",af$("cob_DDadd1AddLengthYear").style.backgroundColor="#FFD8D8",af$("cob_DDadd1AddLengthMonth").style.backgroundColor="#FFD8D8"):af$("cob_DDadd1AddLengthYear").value==""?(n+="Please provide co-buyer's previous residence time at residence in years.\n",af$("cob_DDadd1AddLengthYear").style.backgroundColor="#FFD8D8"):af$("cob_DDadd1AddLengthMonth").value==""?(n+="Please provide co-buyer's previous residence time at residence in months.\n",af$("cob_DDadd1AddLengthMonth").style.backgroundColor="#FFD8D8"):(af$("cob_DDadd1AddLengthYear").style.backgroundColor="white",af$("cob_DDadd1AddLengthMonth").style.backgroundColor="white"))),af$("homeprev2_CoBuyer").style.display!="none"&&(af$("cob_TBadd2Address1_star").style.display!="none"&&af$("cob_TBadd2Address1").value==""?(n+="Please provide co-buyer's previous residence address line 1. \n",af$("cob_TBadd2Address1").style.backgroundColor="#FFD8D8"):af$("cob_TBadd2Address1").style.backgroundColor="white",af$("cob_TBadd2Address2_star").style.display!="none"&&af$("cob_TBadd2Address2").value==""?(n+="Please provide co-buyer's previous residence address line 2. \n",af$("cob_TBadd2Address2").style.backgroundColor="#FFD8D8"):af$("cob_TBadd2Address2").style.backgroundColor="white",af$("cob_TBadd2City_star").style.display!="none"&&af$("cob_TBadd2City").value==""?(n+="Please provide co-buyer's previous residence city. \n",af$("cob_TBadd2City").style.backgroundColor="#FFD8D8"):af$("cob_TBadd2Address1").style.backgroundColor="white",af$("cob_DDadd2State_star").style.display!="none"&&document.finance.cob_DDadd2State.options[document.finance.cob_DDadd2State.selectedIndex].value==""?(n+="Please select co-buyer's previous residence state. \n",af$("cob_DDadd2State").style.backgroundColor="#FFD8D8"):af$("cob_DDadd2State").style.backgroundColor="white",af$("cob_DDadd2Country_star").style.display!="none"&&document.finance.cob_DDadd2Country.options[document.finance.cob_DDadd2Country.selectedIndex].value==0?(n+="Please select co-buyer's previous residence country. \n",af$("cob_DDadd2Country").style.backgroundColor="#FFD8D8"):af$("cob_DDadd2Country").style.backgroundColor="white",af$("cob_tbadd2zip_star").style.display!="none"&&af$("cob_tbadd2zip").value==""?(n+="Please provide co-buyer's previous residence zip. \n",af$("cob_tbadd2zip").style.backgroundColor="#FFD8D8"):af$("cob_tbadd2zip").style.backgroundColor="white",n+=ValidateZip(trim(af$("cob_tbadd2zip").value),parseInt(af$("cob_DDadd2Country").value),"Residence2: cobuyer's zip is not valid.\n"),af$("cob_DDadd2AddLengthYearMonth_star").style.display!="none"&&(af$("cob_DDadd2AddLengthYear").value==""&&af$("cob_DDadd2AddLengthMonth").value==""&&(n+="Please provide co-buyer's previous residence time at residence.\n",af$("cob_DDadd2AddLengthYear").style.backgroundColor="#FFD8D8",af$("cob_DDadd2AddLengthMonth").style.backgroundColor="#FFD8D8"),af$("cob_DDadd2AddLengthYear").value==""&&(n+="Please provide co-buyer's previous residence time at residence in years.\n",af$("cob_DDadd2AddLengthYear").style.backgroundColor="#FFD8D8"),af$("cob_DDadd2AddLengthMonth").value==""?(n+="Please provide co-buyer's previous residence time at residence in months.\n",af$("cob_DDadd2AddLengthMonth").style.backgroundColor="#FFD8D8"):(af$("cob_DDadd2AddLengthYear").style.backgroundColor="white",af$("cob_DDadd2AddLengthMonth").style.backgroundColor="white")))),af$("FinanceCurrentEmployment_CoBuyer").style.display!="none"&&(af$("cob_AreUEmployed")&&(af$("cob_AreUEmployed_star").style.display!="none"&&document.finance.cob_AreUEmployed.options[document.finance.cob_AreUEmployed.selectedIndex].value==""?(n+="Please provide co-buyer's employment info. \n",af$("cob_AreUEmployed").style.backgroundColor="#FFD8D8"):document.finance.cob_AreUEmployed.options[document.finance.cob_AreUEmployed.selectedIndex].value!=1&&document.finance.cob_AreUEmployed.options[document.finance.cob_AreUEmployed.selectedIndex].value!=""?af$("cob_TBemployAddIncomeSource_star").style.display!="none"&&af$("cob_TBemployAddIncomeSource").value==0?(n+="Please explain cobuyer's income if not employed. \n",af$("cob_TBemployAddIncomeSource").style.backgroundColor="#FFD8D8"):af$("cob_TBemployAddIncomeSource").style.backgroundColor="white":document.finance.cob_AreUEmployed.options[document.finance.cob_AreUEmployed.selectedIndex].value==1&&(af$("cob_DDIsSelfEmployed_star").style.display!="none"&&document.finance.cob_DDIsSelfEmployed.options[document.finance.cob_DDIsSelfEmployed.selectedIndex].value==""?(n+="Please provide co-buyer's self employment details. \n",af$("cob_DDIsSelfEmployed").style.backgroundColor="#FFD8D8"):af$("cob_DDIsSelfEmployed").style.backgroundColor="white",af$("cob_TBemployName_star").style.display!="none"&&af$("cob_TBemployName").value==0?(n+="Please provide co-buyer's employer name. \n",af$("cob_TBemployName").style.backgroundColor="#FFD8D8"):af$("cob_TBemployName").style.backgroundColor="white",af$("cob_TBemployAdd1_star").style.display!="none"&&af$("cob_TBemployAdd1").value==0?(n+="Please provide co-buyer's employment address. \n",af$("cob_TBemployAdd1").style.backgroundColor="#FFD8D8"):af$("cob_TBemployAdd1").style.backgroundColor="white",af$("cob_TBemployCity_star").style.display!="none"&&af$("cob_TBemployCity").value==0?(n+="Please provide co-buyer's employment city. \n",af$("cob_TBemployCity").style.backgroundColor="#FFD8D8"):af$("cob_TBemployCity").style.backgroundColor="white",af$("cob_DDemployState_star").style.display!="none"&&document.finance.cob_DDemployState.o
8ptions[document.finance.cob_DDemployState.selectedIndex].value==""?(n+="Please select co-buyer's employment state. \n",af$("cob_DDemployState").style.backgroundColor="#FFD8D8"):af$("cob_DDemployState").style.backgroundColor="white",af$("cob_DDemployCountry_star").style.display!="none"&&document.finance.cob_DDemployCountry.options[document.finance.cob_DDemployCountry.selectedIndex].value==0?(n+="Please select co-buyer's employment country. \n",af$("cob_DDemployCountry").style.backgroundColor="#FFD8D8"):af$("cob_DDemployCountry").style.backgroundColor="white",af$("cob_tbemployzip_star").style.display!="none"&&af$("cob_tbemployzip").value==0?(n+="Please provide co-buyer's employment zip. \n",af$("cob_tbemployzip").style.backgroundColor="#FFD8D8"):af$("cob_tbemployzip").style.backgroundColor="white",n+=ValidateZip(trim(af$("cob_tbemployzip").value),parseInt(af$("cob_DDemployCountry").value),"Employer: cobuyer's zip is not valid.\n"),af$("cob_EmpInfoOccup_star").style.display!="none"&&af$("cob_EmpInfoOccup").value==0?(n+="Please provide co-buyer's occupation \n",af$("cob_EmpInfoOccup").style.backgroundColor="#FFD8D8"):af$("cob_EmpInfoOccup").style.backgroundColor="white",af$("cob_TBemployIncome_star").style.display!="none"&&(gross_income=document.finance.cob_TBemployIncome.value,gross_income.length==0||gross_income=="0.00"||gross_income=="0"?(af$("cob_TBemployIncome").style.backgroundColor="#FFD8D8",n+="Please provide co-buyer's gross income. \n"):isNaN(gross_income)?n+="Gross income must be numeric. \n":af$("cob_TBemployIncome").style.backgroundColor="white"),af$("cob_DDemployFreq_star").style.display=parseFloat(document.finance.cob_TBemployIncome.value)>0?"inline":"none",af$("cob_DDemployFreq_star").style.display!="none"&&document.finance.cob_DDemployFreq.options[document.finance.cob_DDemployFreq.selectedIndex].value==0?(n+="Please select co-buyer's the frequency of income. \n",af$("cob_DDemployFreq").style.backgroundColor="#FFD8D8"):af$("cob_DDemployFreq").style.backgroundColor="white",af$("cob_DDemployJobYear1Month1_star").style.display!="none"&&(document.finance.cob_DDemployJobYear1.options[document.finance.cob_DDemployJobYear1.selectedIndex].value==""&&document.finance.cob_DDemployJobMonth1.options[document.finance.cob_DDemployJobMonth1.selectedIndex].value==""?(n+="Please provide co-buyer's length of current employment. \n",af$("cob_DDemployJobYear1").style.backgroundColor="#FFD8D8",af$("cob_DDemployJobMonth1").style.backgroundColor="#FFD8D8"):document.finance.cob_DDemployJobYear1.options[document.finance.cob_DDemployJobYear1.selectedIndex].value==""?(n+="Please provide co-buyer's length of current employment in years. \n",af$("cob_DDemployJobYear1").style.backgroundColor="#FFD8D8"):document.finance.cob_DDemployJobMonth1.options[document.finance.cob_DDemployJobMonth1.selectedIndex].value==""?(n+="Please provide co-buyer's length of current employment in months. \n",af$("cob_DDemployJobMonth1").style.backgroundColor="#FFD8D8"):(af$("cob_DDemployJobYear1").style.backgroundColor="white",af$("cob_DDemployJobMonth1").style.backgroundColor="white")),af$("cob_cus_workphone_star").style.display!="none"&&af$("cob_cus_workphone").value==0?(n+="Please provide co-buyer's work phone. \n",af$("cob_cus_workphone").style.backgroundColor="#FFD8D8"):af$("cob_cus_workphone").style.backgroundColor="white",n+=ValidatePhoneNumberByCountry(trim(af$("cob_cus_workphone").value),af$("cob_cus_country").value,"Cobuyer's workphone # is not valid.\n"),af$("cob_EmpInfoSupervisor_star").style.display!="none"&&af$("cob_EmpInfoSupervisor").value==0?(n+="Please provide co-buyer's supervisor name. \n",af$("cob_EmpInfoSupervisor").style.backgroundColor="#FFD8D8"):af$("cob_EmpInfoSupervisor").style.backgroundColor="white")),af$("cob_DDAdditional_Income_star").style.display!="none"&&(document.finance.cob_DDAdditional_Income.options[document.finance.cob_DDAdditional_Income.selectedIndex].value==""?(n+="Please provide co-buyer's additional income info. \n",af$("cob_DDAdditional_Income").style.backgroundColor="#FFD8D8"):af$("cob_DDAdditional_Income").style.backgroundColor="white"),af$("cob_TBemployAddIncome_star").style.display!="none"&&document.finance.cob_DDAdditional_Income.options[document.finance.cob_DDAdditional_Income.selectedIndex].value==1&&(document.finance.cob_TBemployAddIncome.value.length==0||document.finance.cob_TBemployAddIncome.value=="0.00"||document.finance.cob_TBemployAddIncome.value=="0"?(n+="Please provide co-buyer's additional income amount. \n",af$("cob_TBemployAddIncome").style.backgroundColor="#FFD8D8"):af$("cob_TBemployAddIncome").style.backgroundColor="white"),af$("cob_DDemployAddIncomeFreq_star").style.display=parseFloat(document.finance.cob_TBemployAddIncome.value)>0?"inline":"none",af$("cob_DDemployAddIncomeFreq_star").style.display!="none"&&document.finance.cob_DDAdditional_Income.options[document.finance.cob_DDAdditional_Income.selectedIndex].value==1&&(af$("cob_DDemployAddIncomeFreq_star").style.display!="none"&&document.finance.cob_DDemployAddIncomeFreq.options[document.finance.cob_DDemployAddIncomeFreq.selectedIndex].value==0?(n+="Please select co-buyer's additional income frequency. \n",af$("cob_DDemployAddIncomeFreq").style.backgroundColor="#FFD8D8"):af$("cob_DDemployAddIncomeFreq").style.backgroundColor="white")),af$("empprev1_CoBuyer").style.display!="none"&&(af$("cob_TBemploy2Name_star").style.display!="none"&&af$("cob_TBemploy2Name").value==""?(n+="Please provide co-buyer's previous employment employer name. \n",af$("cob_TBemploy2Name").style.backgroundColor="#FFD8D8"):af$("cob_TBemploy2Name").style.backgroundColor="white",af$("cob_TBemploy2Add1_star").style.display!="none"&&af$("cob_TBemploy2Add1").value==""?(n+="Please provide co-buyer's previous employment address. \n",af$("cob_TBemploy2Add1").style.backgroundColor="#FFD8D8"):af$("cob_TBemploy2Add1").style.backgroundColor="white",af$("cob_TBemploy2City_star").style.display!="none"&&af$("cob_TBemploy2City").value==""?(n+="Please provide co-buyer's previous employment city. \n",af$("cob_TBemploy2City").style.backgroundColor="#FFD8D8"):af$("cob_TBemploy2City").style.backgroundColor="white",af$("cob_DDemploy2State_star").style.display!="none"&&document.finance.cob_DDemploy2State.options[document.finance.cob_DDemploy2State.selectedIndex].value==""?(n+="Please select co-buyer's previous employment state. \n",af$("cob_DDemploy2State").style.backgroundColor="#FFD8D8"):af$("cob_DDemploy2State").style.backgroundColor="white",af$("cob_DDemploy2Country_star").style.display!="none"&&document.finance.cob_DDemploy2Country.options[document.finance.cob_DDemploy2Country.selectedIndex].value==0?(n+="Please select co-buyer's previous employment c
8ountry. \n",af$("cob_DDemploy2Country").style.backgroundColor="#FFD8D8"):af$("cob_DDemploy2Country").style.backgroundColor="white",af$("cob_tbemploy2zip_star").style.display!="none"&&af$("cob_tbemploy2zip").value==""?(n+="Please provide co-buyer's previous employment zip. \n",af$("cob_tbemploy2zip").style.backgroundColor="#FFD8D8"):af$("cob_tbemploy2zip").style.backgroundColor="white",n+=ValidateZip(trim(af$("cob_tbemploy2zip").value),parseInt(af$("cob_DDemploy2Country").value),"Employer2: cobuyer's zip is not valid.\n"),af$("cob_PreEmplo1Occup_star").style.display!="none"&&af$("cob_PreEmplo1Occup").value==""?(n+="Please provide co-buyer's previous employment occupation. \n",af$("cob_PreEmplo1Occup").style.backgroundColor="#FFD8D8"):af$("cob_PreEmplo1Occup").style.backgroundColor="white",af$("cob_tbemp2phone_star").style.display!="none"&&af$("cob_tbemp2phone").value==""?(n+="Please provide co-buyer's previous employment work phone. \n",af$("cob_tbemp2phone").style.backgroundColor="#FFD8D8"):af$("cob_tbemp2phone").style.backgroundColor="white",n+=ValidatePhoneNumberByCountry(trim(af$("cob_tbemp2phone").value),af$("cob_DDemploy2Country").value,"Employer2: cobuyer's telephone # is not valid.\n"),af$("cob_DDIsSelfEmployed2_star").style.display!="none"&&document.finance.cob_DDIsSelfEmployed2.options[document.finance.cob_DDIsSelfEmployed2.selectedIndex].value==""?(n+="Please provide co-buyer's self employment details. \n",af$("cob_DDIsSelfEmployed2").style.backgroundColor="#FFD8D8"):af$("cob_DDIsSelfEmployed2").style.backgroundColor="white",af$("cob_DDemploy2JobYearsMonth_star").style.display!="none"&&(af$("cob_DDemploy2JobYears").value==""&&af$("cob_DDemploy2JobMonths").value==""?(n+="Please provide co-buyer's previous employment time at job. \n",af$("cob_DDemploy2JobYears").style.backgroundColor="#FFD8D8",af$("cob_DDemploy2JobMonths").style.backgroundColor="#FFD8D8"):af$("cob_DDemploy2JobYears").value==""?(n+="Please provide co-buyer's previous employment time at job in years. \n",af$("cob_DDemploy2JobYears").style.backgroundColor="#FFD8D8"):af$("cob_DDemploy2JobMonths").value==""?(n+="Please provide co-buyer's previous employment time at job in months. \n",af$("cob_DDemploy2JobMonths").style.backgroundColor="#FFD8D8"):(af$("cob_DDemploy2JobYears").style.backgroundColor="white",af$("cob_DDemploy2JobMonths").style.backgroundColor="white")),af$("cob_PrevEmplo1Supervisor_star").style.display!="none"&&af$("cob_PrevEmplo1Supervisor").value==""?(n+="Please provide co-buyer's previous employment supervisor name. \n",af$("cob_PrevEmplo1Supervisor").style.backgroundColor="#FFD8D8"):af$("cob_PrevEmplo1Supervisor").style.backgroundColor="white"),af$("empprev2_CoBuyer").style.display!="none"&&(af$("cob_TBemploy3Name_star").style.display!="none"&&af$("cob_TBemploy3Name").value==""?(n+="Please provide co-buyer's previous employment employer name. \n",af$("cob_TBemploy3Name").style.backgroundColor="#FFD8D8"):af$("cob_TBemploy3Name").style.backgroundColor="white",af$("cob_TBemploy3Add1_star").style.display!="none"&&af$("cob_TBemploy3Add1").value==""?(n+="Please provide co-buyer's previous employment address. \n",af$("cob_TBemploy3Add1").style.backgroundColor="#FFD8D8"):af$("cob_TBemploy3Add1").style.backgroundColor="white",af$("cob_TBemploy3City_star").style.display!="none"&&af$("cob_TBemploy3City").value==""?(n+="Please provide co-buyer's previous employment city. \n",af$("cob_TBemploy3City").style.backgroundColor="#FFD8D8"):af$("cob_TBemploy3City").style.backgroundColor="white",af$("cob_DDemploy3State_star").style.display!="none"&&document.finance.cob_DDemploy3State.options[document.finance.cob_DDemploy3State.selectedIndex].value==""?(n+="Please select co-buyer's previous employment state. \n",af$("cob_DDemploy3State").style.backgroundColor="#FFD8D8"):af$("cob_DDemploy3State").style.backgroundColor="white",af$("cob_DDemploy3Country_star").style.display!="none"&&document.finance.cob_DDemploy3Country.options[document.finance.cob_DDemploy3Country.selectedIndex].value==0?(n+="Please select co-buyer's previous employment country. \n",af$("cob_DDemploy3Country").style.backgroundColor="#FFD8D8"):af$("cob_DDemploy3Country").style.backgroundColor="white",af$("cob_tbemploy3zip_star").style.display!="none"&&af$("cob_tbemploy3zip").value==""?(n+="Please provide co-buyer's previous employment zip. \n",af$("cob_tbemploy3zip").style.backgroundColor="#FFD8D8"):af$("cob_tbemploy3zip").style.backgroundColor="white",n+=ValidateZip(trim(af$("cob_tbemploy3zip").value),parseInt(af$("cob_DDemploy3Country").value),"Employer3: cobuyer's zip is not val
8id.\n"),af$("cob_PreEmplo2Occup_star").style.display!="none"&&af$("cob_PreEmplo2Occup").value==""?(n+="Please provide co-buyer's previous employment occupation. \n",af$("cob_PreEmplo2Occup").style.backgroundColor="#FFD8D8"):af$("cob_PreEmplo2Occup").style.backgroundColor="white",af$("cob_tbemp3phone_star").style.display!="none"&&af$("cob_tbemp3phone").value==""?(n+="Please provide co-buyer's previous employment work phone. \n",af$("cob_tbemp3phone").style.backgroundColor="#FFD8D8"):af$("cob_tbemp3phone").style.backgroundColor="white",n+=ValidatePhoneNumberByCountry(trim(af$("cob_tbemp3phone").value),af$("cob_DDemploy3Country").value,"Employer3: cobuyer's telephone # is not valid.\n"),af$("cob_DDIsSelfEmployed3_star").style.display!="none"&&document.finance.cob_DDIsSelfEmployed3.options[document.finance.cob_DDIsSelfEmployed3.selectedIndex].value==""?(n+="Please provide co-buyer's self employment details. \n",af$("cob_DDIsSelfEmployed3").style.backgroundColor="#FFD8D8"):af$("cob_DDIsSelfEmployed3").style.backgroundColor="white",af$("cob_DDemploy3JobYearMonth_star").style.display!="none"&&(af$("cob_DDemploy3JobYear").value==""&&af$("cob_DDemploy3JobMonth").value==""?(n+="Please provide co-buyer's previous employment time at job. \n",af$("cob_DDemploy3JobYear").style.backgroundColor="#FFD8D8",af$("cob_DDemploy3JobMonth").style.backgroundColor="#FFD8D8"):af$("cob_DDemploy3JobYear").value==""?(n+="Please provide co-buyer's previous employment time at job in years. \n",af$("cob_DDemploy3JobYear").style.backgroundColor="#FFD8D8"):af$("cob_DDemploy3JobMonth").value==""?(n+="Please provide co-buyer's previous employment time at job in months. \n",af$("cob_DDemploy3JobMonth").style.backgroundColor="#FFD8D8"):(af$("cob_DDemploy3JobYear").style.backgroundColor="white",af$("cob_DDemploy3JobMonth").style.backgroundColor="white")),af$("cob_PrevEmplo2Supervisor_star").style.display!="none"&&af$("cob_PrevEmplo2Supervisor").value==""?(n+="Please provide co-buyer's previous employment 2 supervisor name. \n",af$("cob_PrevEmplo2Supervisor").style.backgroundColor="#FFD8D8"):af$("cob_PrevEmplo2Supervisor").style.backgroundColor="white")),af$("FinanceTradinInfoC").style.display!="none"&&(af$("TradeIn_Year_star").style.display!="none"&&af$("TradeIn_Year").value==""?(n+="Please provide trade in year. \n",af$("TradeIn_Year").style.backgroundColor="#FFD8D8"):af$("TradeIn_Year").style.backgroundColor="white",af$("TradeIn_Make_star").style.display!="none"&&af$("TradeIn_Make").value==""?(n+="Please provide trade in make. \n",af$("TradeIn_Make").style.backgroundColor="#FFD8D8"):af$("TradeIn_Make").style.backgroundColor="white",af$("TradeIn_Model_star").style.display!="none"&&af$("TradeIn_Model").value==""?(n+="Please provide trade in model. \n",af$("TradeIn_Model").style.backgroundColor="#FFD8D8"):af$("TradeIn_Model").style.backgroundColor="white",af$("TradeIn_Vin_star").style.display!="none"&&af$("TradeIn_Vin").value==""?(n+="Please provide trade in vin number. \n",af$("TradeIn_Vin").style.backgroundColor="#FFD8D8"):af$("TradeIn_Vin").style.backgroundColor="white",af$("TradeIn_Mileage_star").style.display!="none"&&af$("TradeIn_Mileage").value==""?(n+="Please provide trade in mileage. \n",af$("TradeIn_Mileage").style.backgroundColor="#FFD8D8"):af$("TradeIn_Mileage").style.backgroundColor="white",af$("IsVehPaidOff_star").style.display!="none"&&(af$("IsVehPaidOff").value==""?(n+="Is the vehicle paid off ? \n",af$("IsVehPaidOff").style.backgroundColor="#FFD8D8"):af$("IsVehPaidOff").style.backgroundColor="white"),af$("TradeIn_CurrentPayment_star").style.display!="none"&&(af$("IsVehPaidOff").value=="0"&&af$("TradeIn_CurrentPayment").value.length==0?(n+="Please provide the current loan payoff. \n",af$("TradeIn_CurrentPayment").style.backgroundColor="#FFD8D8"):af$("TradeIn_CurrentPayment").style.backgroundColor="white"),af$("TradeIn_Color_star").style.display!="none"&&af$("TradeIn_Color").value==""?(n+="Please provide trade in color. \n",af$("TradeIn_Color").style.backgroundColor="#FFD8D8"):af$("TradeIn_Color").style.backgroundColor="white",af$("TradeIn_BankFinanced_star").style.display!="none"&&af$("TradeIn_BankFinanced").value==""?(n+="Bank Financed?. \n",af$("TradeIn_BankFinanced").style.backgroundColor="#FFD8D8"):af$("TradeIn_BankFinanced").style.backgroundColor="white",af$("TradeIn_AmountOwed_star").style.display!="none"&&af$("TradeIn_AmountOwed").value==""?(n+="Please provide balance owned amount. \n",af$("TradeIn_AmountOwed").style.backgroundColor="#FFD8D8"):af$("TradeIn_AmountOwed").style.backgroundColor="white"),af$("FinanceDownlpayment").style.display!="none"&&(af$("TBavailableDownpay_star").style.display!="none"&&af$("TBavailableDownpay").value.length==0?(n+="Please provide available down payment. \n",af$("TBavailableDownpay").style.backgroundColor="#FFD8D8"):af$("TBavailableDownpay").style.backgroundColor="white",af$("TBmonthlypayment_star").style.display!="none"&&af$("TBmonthlypayment").value.length==0?(n+="Please provide desired monthly payment. \n",af$("TBmonthlypayment").style.backgroundColor="#FFD8D8"):af$("TBmonthlypayment").style.backgroundColor="white",af$("TBloanamount_star").style.display!="none"&&af$("TBloanamount").value.length==0?(n+="Please provide desired loan amount \n",af$("TBloanamount").style.backgroundColor="#FFD8D8"):af$("TBloanamount").style.backgroundColor="white",af$("TA_AdditonalComments_star").style.display!="none"&&af$("TA_AdditonalComments").value.length==0?(n+="Please provide additional comments. \n",af$("TA_AdditonalComments").style.backgroundColor="#FFD8D8"):af$("TA_AdditonalComments").style.backgroundColor="white"),af$("BankInfo").style.display!="none"&&(af$("Bank_Name_star").style.display!="none"&&af$("Bank_Name").value.length==0?(n+="Please provide bank name. \n",af$("Bank_Name").style.backgroundColor="#FFD8D8"):af$("Bank_Name").style.backgroundColor="white",af$("Account_Type_star").style.display!="none"&&af$("Account_Type").value==0?(n+="Please provide account type. \n",af$("Account_Type").style.backgroundColor="#FFD8D8"):af$("Account_Type").style.backgroundColor="white",af$("AutoLoan_star").style.display!="none"&&(document.finance.AutoLoan.options[document.finance.AutoLoan.selectedIndex].value==""?(n+="Have you previously applied for an auto loan? \n",af$("AutoLoan").style.backgroundColor="#FFD8D8"):af$("AutoLoan").style.backgroundColor="white"),af$("Autoloan_Date_star").style.display!="none"&&document.finance.AutoLoan.options[document.finance.AutoLoan.selectedIndex].value==1&&(document.finance.Autoloan_Date.value.length==0?(n+="Please provide the date you previously applied for an auto loan. \n",af$("Autoloan_Date").style.backgroundColor="#FFD8D8"):af$("Autoloan_Date").style.backgroundColor="white"),af$("Bankruptcy_star").style.display!="none"&&(document.finance.Bankruptcy.options[document.finance.Bankruptcy.selectedIndex].value==""?(n+="Have you ever filed bankruptcy? \n",af$("Bankruptcy").style.backgroundColor="#FFD8D8"):af$("Bankruptcy").style.backgroundColor="white"),af$("Bankruptcy_Date_star").style.display!="none"&&document.finance.Bankruptcy.options[document.finance.Bankruptcy.selectedIndex].value==1&&(document.finance.Bankruptcy_Date.value.length==0?(n+="Please provide the date you filed bankruptcy. \n",af$("Bankruptcy_Date").style.backgroundColor="#FFD8D8"):af$("Bankruptcy_Date").style.backgroundColor="white")),af$("HadCar_star").style.display!="none"&&(document.finance.HadCar.options[document.finance.HadCar.selectedIndex].value==""?(n+="Have you ever had a car /other merchandise repossessed? \n",af$("HadCar").style.backgroundColor="#FFD8D8"):af$("HadCar").style.backgroundColor="white"),af$("OwnVehicle_star").style.display!="none"&&af$("OwnVehicle").value==0?(n+="Do you own a vehicle? \n",af$("OwnVehicle").style.backgroundColor="#FFD8D8"):af$("OwnVehicle").style.backgroundColor="white",af$("DL_Referral_star").style.display!="none"&&(af$("DL_Referral").value.length==0?(n+="How did you hear about us? \n",af$("DL_Referral").style.backgroundColor="#FFD8D8"):(af$("HowHeared").value.length==0||af$("HowHeared").value=="--")&&(n+=af$("HowHeared_span_head").innerHTML+"\n",af$("HowHeared").style.backgroundColor="#FFD8D8")),trim(af$("cus_firstname").value).length>0&&trim(af$("cus_lastname").value).length>0&&trim(af$("cus_firstname").value)==trim(af$("cus_lastname").value)&&(n+="You cannot repeat entries in First name and Last name fields\n"),trim(af$("cob_cus_firstname").value).length>0&&trim(af$("cob_cus_lastname").value).length>0&&trim(af$("cob_cus_firstname").value)==trim(af$("cob_cus_lastname").value)&&(n+="You cannot repeat entries in co-buyer's First name and co-buyer's Last name fields\n"),h="",l=af$("hdAdditionalMandatory"),l)for(a=l.value.split(","),c=0;c<a.length;c++)f=a[c].split(":"),f[0]&&af$(f[0])&&(trim(af$(f[0]).value)==""?(w=af$(f[0]+"_star"),w.style.display!="none"?(n+="Please provide "+f[1]+". \n",af$(f[0]).style.backgroundColor="#FFD8D8"):af$(f[0]).style.backgroundColor="white"):(h+="\n"+f[1]+":"+trim(af$(f[0]).value),af$(f[0]).style.backgroundColor="white"));if(DWDealerID==3239&&(v="No",af$("ddlIsTradeIn").value=="1"&&(v="Yes"),h+="\nDo you have a vehicle to trade in: "+v),o=0,$("#desireVehInfoDiv").hasClass("dw-mandatory")&&($("#pnlInterestedIn").hasClass("dw-mandatory")&&$("#pnlInterestedIn input:checkbox:checked").length>0&&(o=o+1),$("#pnlInventory").hasClass("dw-mandatory")&&$("#pnlInventory input:checkbox:checked").length>0&&(o=o+1),$("#pnlDesiredVehicle").hasClass("dw-mandatory")&&$('#pnlDesiredVehicle input[type="text"],#pnlDesiredVehicle input[type="tel"],#pnlDesiredVehicle select').each(function(){var n=$(this);n.val().length>0&&(o=o+1)}),o==0&&(n+="Please select desired vehicle information. \n")),DWDealerID==5012?af$("htmlFinanceTCR").checked&&af$("htmCB_verification").checked||(n+="You must agree to the term of this form, please check the box to continue. \n"):af$("htmCB_verification").checked||(n+="You must agree to the term of this form, please check the box to continue. \n"),af$("TB_
8ESignature_star").style.display!="none"&&(af$("TB_ESignature").value.length==0?(af$("TB_ESignature").style.backgroundColor="#FFD8D8",n+="Please provide E-Signature. \n"):af$("TB_ESignature").style.backgroundColor="white"),blnShowCaptchaCode==!0&&(af$("txtMSCaptchaCode").value.length<=0?(n+="Please provide captcha code. \n",af$("txtMSCaptchaCode").style.backgroundColor="#FFD8D8",af$("txtMSCaptchaCode").setAttribute("aria-invalid","true")):(af$("txtMSCaptchaCode").style.backgroundColor="white",af$("txtMSCaptchaCode").setAttribute("aria-invalid","false"))),DWFinValidateMsg=n,n.length==0){if(typeof financeModeQueryString!="undefined"&&(af$("TA_AdditonalComments").value+=". "+financeModeQueryString),af$("TA_AdditonalComments").value+=h,DWDealerID==4726){s="This customer has not consented to receive SMS";const n=af$("htmlFinanceTCR");s=n.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS";af$("TA_AdditonalComments").value+="\n"+s+"\n"+`${dateStr} at ${timeStr}`}if(DWDealerID==4950){s="This customer has not consented to receive SMS";const n=af$("htmlFinanceTCR");s=n.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS";af$("TA_AdditonalComments").value+="\n"+s+"\n"+`${dateStr} at ${timeStr}`}$("#recaptcha.g-recaptcha").length==0?($("#creditappsubmit").attr("disabled",!0),document.finance.hdaddCusPageMode.value="saveCusAdd",document.finance.submit()):grecaptcha.execute()}else AlertModel(n)}function formCheck2(){}function checkCusBasicInfo(){mainbuyerssn=document.finance.cus_ssn1.value+document.finance.cus_ssn2.value+document.finance.cus_ssn3.value;mainbuyerssn.length!=0&&(isNaN(mainbuyerssn)&&(msg=msg+"SSN should be numeric. \n"),mainbuyerssn.length!=9&&(msg+="SSN should contain 9 digits. \n"));msg.length==0?(document.finance.hdaddCusPageMode.value="saveCusBasic",document.finance.submit()):AlertModel(msg)}function LoadToYear(){var t=document.finance.Veh_Year.options[document.finance.Veh_Year.selectedIndex].value,i=(new Date).getFullYear(),n;if($("#Veh_ToYear").empty(),af$("Veh_Year").value=="")$("#Veh_ToYear").append("<option>--<\/option>");else for($("#Veh_ToYear").append("<option>--<\/option>"),n=i;n>=t;n--)$("#Veh_ToYear").append("<option>"+n+"<\/option>")}function focusOut(n){var t=n.id,o=t+"_star",i,s,r,u,e,h,f,c;switch(t){case"cus_bdate":i=af$("cus_bdate");i.value=makeDateFormat(i.value);af$("cus_bdate_star").style.display!="none"?i.value.length==0?af$("cus_bdate").style.backgroundColor="#FFD8D8":getIntegersOnly(i.value).length!=8&&i.value.length!=10?(u=isValidDate(i.value.substring(0,2),i.value.substring(3,5),i.value.substring(6,10)),u!=!0&&(af$("cus_bdate").style.backgroundColor="#FFD8D8")):af$("cus_bdate").style.backgroundColor="white":af$("cus_bdate_star").style.display=="none"&&i.value.length<10&&(getIntegersOnly(i.value).length!=8&&i.value.length!=10?(u=isValidDate(i.value.substring(0,2),i.value.substring(3,5),i.value.substring(6,10)),u!=!0&&(af$("cus_bdate").style.backgroundColor="#FFD8D8")):af$("cus_bdate").style.backgroundColor="white");break;case"cob_cus_bdate":i=af$("cob_cus_bdate");i.value=makeDateFormat(i.value);af$("cob_cus_bdate_star").style.display!="none"?i.value.length==0?af$("cob_cus_bdate").style.backgroundColor="#FFD8D8":getIntegersOnly(i.value).length!=8&&i.value.length!=10?(u=isValidDate(i.value.substring(0,2),i.value.substring(3,5),i.value.substring(6,10)),u!=!0&&(af$("cob_cus_bdate").style.backgroundColor="#FFD8D8")):af$("cob_cus_bdate").style.backgroundColor="white":af$("cob_cus_bdate_star").style.display=="none"&&i.value.length<10&&(getIntegersOnly(i.value).length!=8&&i.value.length!=10?(u=isValidDate(i.value.substring(0,2),i.value.substring(3,5),i.value.substring(6,10)),u!=!0&&(af$("cob_cus_bdate").style.backgroundColor="#FFD8D8")):af$("cob_cus_bdate").style.backgroundColor="white");break;case"cus_mobilephone":case"cob_cus_mobilephone":case"cus_homephone":case"cob_cus_homephone":case"cus_workphone":case"cob_cus_workphone":case"tbemp2phone":case"tbemp3phone":case"cob_tbemp2phone":case"cob_tbemp3phone":s=af$(t+"_star");s.style.display!="none"?af$(t).value==""||af$(t).value.length<14?(af$(t).style.backgroundColor="#FFD8D8",af$(t).title="Please provide valid number"):af$(t).style.backgroundColor="white":af$(t).value.length!=0&&af$(t).value.length<14?(af$(t).style.backgroundColor="#FFD8D8",af$(t).title="Please provide valid number"):af$(t).style.backgroundColor="white";break;case"license_country":case"license_state":case"license_states":af$("license_state_star").style.display!="none"&&(af$("license_states")&&(af$("license_states").style.backgroundColor=af$("license_states").value==""?"#FFD8D8":"white"),af$("license_state")&&(af$("license_state").style.backgroundColor=af$("license_state").value==""?"#FFD8D8":"white"));break;case"license_expdate":r=af$("license_expdate");r.value=makeDateFormat(r.value);af$("license_expdate_star").style.display!="none"?r.value.length==0?af$("license_expdate").style.backgroundColor="#FFD8D8":getIntegersOnly(r.value).length!=8&&r.value.length!=10?(u=isValidDate(r.value.substring(0,2),r.value.substring(3,5),r.value.substring(6,10)),u!=!0&&(af$("license_expdate").style.backgroundColor="#FFD8D8")):af$("license_expdate").style.backgroundColor="white":af$("license_expdate_star").style.display=="none"&&r.value.length<10&&(getIntegersOnly(r.value).length!=8&&r.value.length!=10?(u=isValidDate(r.value.substring(0,2),r.value.substring(3,5),r.value.substring(6,10)),u!=!0&&(af$("license_expdate").style.backgroundColor="#FFD8D8")):af$("license_expdate").style.backgroundColor="white");break;case"cus_country":case"cus_state":case"cus_states":af$("cus_state_star").style.display!="none"&&(af$("cus_states")&&(af$("cus_states").style.backgroundColor=af$("cus_states").value==""?"#FFD8D8":"white"),af$("cus_state")&&(af$("cus_state").style.backgroundColor=af$("cus_state").value==""?"#FFD8D8":"white"));break;
8case"DDadd1Country":case"DDadd1State":case"DDadd1_states":af$("DDadd1State_star").style.display!="none"&&(af$("DDadd1_states")&&(af$("DDadd1_states").style.backgroundColor=af$("DDadd1_states").value==""?"#FFD8D8":"white"),af$("DDadd1State")&&(af$("DDadd1State").style.backgroundColor=af$("DDadd1State").value==""?"#FFD8D8":"white"));break;case"DDadd2Country":case"DDadd2State":case"DDadd2_states":af$("DDadd2State_star").style.display!="none"&&(af$("DDadd2_states")&&(af$("DDadd2_states").style.backgroundColor=af$("DDadd2_states").value==""?"#FFD8D8":"white"),af$("DDadd2State")&&(af$("DDadd2State").style.backgroundColor=af$("DDadd2State").value==""?"#FFD8D8":"white"));break;case"DDemployCountry":case"DDemployState":case"DDemploy_states":af$("DDemployState_star").style.display!="none"&&(af$("DDemploy_states")&&(af$("DDemploy_states").style.backgroundColor=af$("DDemploy_states").value==""?"#FFD8D8":"white"),af$("DDemployState")&&(af$("DDemployState").style.backgroundColor=af$("DDemployState").value==""?"#FFD8D8":"white"));break;case"DDemploy2Country":case"DDemploy2State":case"DDemploy2_states":af$("DDemploy2State_star").style.display!="none"&&(af$("DDemploy2_states")&&(af$("DDemploy2_states").style.backgroundColor=af$("DDemploy2_states").value==""?"#FFD8D8":"white"),af$("DDemploy2State")&&(af$("DDemploy2State").style.backgroundColor=af$("DDemploy2State").value==""?"#FFD8D8":"white"));break;case"DDemploy3Country":case"DDemploy3State":case"DDemploy3_states":af$("DDemploy3State_star").style.display!="none"&&(af$("DDemploy3_states")&&(af$("DDemploy3_states").style.backgroundColor=af$("DDemploy3_states").value==""?"#FFD8D8":"white"),af$("DDemploy3State")&&(af$("DDemploy3State").style.backgroundColor=af$("DDemploy3State").value==""?"#FFD8D8":"white"));break;case"cob_license_country":case"cob_license_state":af$("cob_license_state_star").style.display!="none"&&(af$("cob_license_state").style.backgroundColor=af$("cob_license_state").value==""?"#FFD8D8":"white");break;case"cob_cus_country":case"cob_cus_state":af$("cob_cus_state_star").style.display!="none"&&(af$("cob_cus_state").style.backgroundColor=af$("cob_cus_state").value==""?"#FFD8D8":"white");break;case"cob_DDadd1Country":case"cob_DDadd1State":af$("cob_DDadd1State_star").style.display!="none"&&(af$("cob_DDadd1State").style.backgroundColor=af$("cob_DDadd1State").value==""?"#FFD8D8":"white");break;case"cob_DDadd2Country":case"cob_DDadd2State":af$("cob_DDadd2State_star").style.display!="none"&&(af$("cob_DDadd2State").style.backgroundColor=af$("cob_DDadd2State").value==""?"#FFD8D8":"white");break;case"cob_DDemployCountry":case"cob_DDemployState":af$("cob_DDemployState_star").style.display!="none"&&(af$("cob_DDemployState").style.backgroundColor=af$("cob_DDemployState").value==""?"#FFD8D8":"white");break;case"cob_DDemploy2Country":case"cob_DDemploy2State":af$("cob_DDemploy2State_star").style.display!="none"&&(af$("cob_DDemploy2State").style.backgroundColor=af$("cob_DDemploy2State").value==""?"#FFD8D8":"white");break;case"cob_DDemploy3Country":case"cob_DDemploy3State":af$("cob_DDemploy3State_star").style.display!="none"&&(af$("cob_DDemploy3State").style.backgroundColor=af$("cob_DDemploy3State").value==""?"#FFD8D8":"white");break;
8case"DDaddStayYear":case"DDaddStayMonth":starID="DDaddStayYearMonth_star";DDaddStayYearMonth_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"DDadd1AddLengthYear":case"DDadd1AddLengthMonth":starID="DDadd1AddLengthYearMonth_star";DDadd1AddLengthYearMonth_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"DDadd2AddLengthYear":case"DDadd2AddLengthMonth":starID="DDadd2AddLengthYearMonth_star";DDadd2AddLengthYearMonth_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"DDemployJobYear1":case"DDemployJobMonth1":starID="DDemployJobYear1Month1_star";DDemployJobYear1Month1_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"DDemploy2JobYears":case"DDemploy2JobMonths":starID="DDemploy2JobYearsMonth_star";DDemploy2JobYearsMonth_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"DDemploy3JobYear":case"DDemploy3JobMonth":starID="DDemploy3JobYearMonth_star";DDemploy3JobYearMonth_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"cob_DDaddStayYear":case"cob_DDaddStayMonth":starID="cob_DDaddStayYearMonth_star";cob_DDaddStayYearMonth_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"cob_DDadd1AddLengthYear":case"cob_DDadd1AddLengthMonth":starID="cob_DDadd1AddLengthYearMonth_star";cob_DDadd1AddLengthYearMonth_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"cob_DDadd2AddLengthYear":case"cob_DDadd2AddLengthMonth":starID="cob_DDadd2AddLengthYearMonth_star";cob_DDadd2AddLengthYearMonth_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"cob_DDemployJobYear1":case"cob_DDemployJobMonth1":starID="cob_DDemployJobYear1Month1_star";cob_DDemployJobYear1Month1_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"cob_DDemploy2JobYears":case"cob_DDemploy2JobMonths":starID="DDemploy2JobYearsMonth_star";cob_DDemploy2JobYearsMonth_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"cob_DDemploy3JobYear":case"cob_DDemploy3JobMonth":starID="cob_DDemploy3JobYearMonth_star";cob_DDemploy3JobYearMonth_star.style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white");break;case"TBemployIncome":case"cob_TBemployIncome":e=af$(t);h=t+"_star";af$(h).style.display!="none"&&(gross_income=e.value,e.style.backgroundColor=gross_income.length==0||gross_income=="0.00"||gross_income=="0"?"#FFD8D8":"white");break;case"TBemployAddIncome":case"cob_TBemployAddIncome":f=af$(t);c=t+"_star";af$(c).style.display!="none"&&(f.style.backgroundColor=f.value.length==0||f.value=="0.00"||f.value=="0"?"#FFD8D8":"white");break;case"cus_gender":case"cob_cus_gender":af$(t).style.backgroundColor=af$(o).style.display!="none"&&af$(t).value=="NA"?"#FFD8D8":"white";break;case"txtMSCaptchaCode":af$(t).style.backgroundColor=af$(t).value==""||af$(t).value.length!=2?"#FFD8D8":"white";break;default:af$(o).style.display!="none"&&(af$(t).style.backgroundColor=af$(t).value==""?"#FFD8D8":"white")}}function ValidateEmail(n){var t=n.id,i=t+"_star";document.getElementById(i).style.display!="none"&&af$(t).value==""?(af$(t).style.backgroundColor="#FFD8D8",af$(t).title="This field is required"):af$(t).value.length>0&&isValidEmail(af$(t).value)==!1?(af$(t).style.backgroundColor="#FFD8D8",af$(t).title="Please provide valid email ID"):af$(t).style.backgroundColor="#FFF"}function SSNValidate(n){var t=n.id,i=t+"_star";document.getElementById(i).style.display!="none"&&af$(t).value==""?(af$(t).style.backgroundColor="#FFD8D8",af$(t).title="This field is required"):getIntegersOnly(af$(t).value).length>0&&getIntegersOnly(af$(t).value).length!=9?(af$(t).style.backgroundColor="#FFD8D8",af$(t).title="Please provide valid SSN"):af$("cus_ssn").style.backgroundColor="#FFF"}function zipValidate(n){var t=n.id;if(af$(t+"_star").style.display!="none")switch(t){case"cus_zipcode":af$("cus_country").value=="1"&&af$("cus_zipcode").value.length<5?(af$("cus_zipcode").style.backgroundColor="#FFD8D8",af$("cus_zipcode").title="Please provide valid zip code"):af$("cus_country").value=="3"&&af$("cus_zipcode").value.length<6?(af$("
8cus_zipcode").style.backgroundColor="#FFD8D8",af$("cus_zipcode").title="Please provide valid zip code"):af$("cus_country").value!="1"&&af$("cus_country").value!="3"&&af$("cus_zipcode").value.length<10&&(af$("cus_zipcode").style.backgroundColor="#FFD8D8",af$("cus_zipcode").title="Please provide valid zip code");break;case"tbadd1zip":af$("DDadd1Country").value=="1"&&af$("tbadd1zip").value.length<5?(af$("tbadd1zip").style.backgroundColor="#FFD8D8",af$("tbadd1zip").title="Please provide valid zip code"):af$("DDadd1Country").value=="3"&&af$("tbadd1zip").value.length<6?(af$("tbadd1zip").style.backgroundColor="#FFD8D8",af$("tbadd1zip").title="Please provide valid zip code"):af$("DDadd1Country").value!="1"&&af$("DDadd1Country").value!="3"&&af$("tbadd1zip").value.length<10&&(af$("tbadd1zip").style.backgroundColor="#FFD8D8",af$("tbadd1zip").title="Please provide valid zip code");break;case"tbadd2zip":af$("DDadd2Country").value=="1"&&af$("tbadd2zip").value.length<5?(af$("tbadd2zip").style.backgroundColor="#FFD8D8",af$("tbadd2zip").title="Please provide valid zip code"):af$("DDadd2Country").value=="3"&&af$("tbadd2zip").value.length<6?(af$("tbadd2zip").style.backgroundColor="#FFD8D8",af$("tbadd2zip").title="Please provide valid zip code"):af$("DDadd2Country").value!="1"&&af$("DDadd2Country").value!="3"&&af$("tbadd2zip").value.length<10&&(af$("tbadd2zip").style.backgroundColor="#FFD8D8",af$("tbadd2zip").title="Please provide valid zip code");break;case"tbemployzip":af$("DDemployCountry").value=="1"&&af$("tbemployzip").value.length<5?(af$("tbemployzip").style.backgroundColor="#FFD8D8",af$("tbemployzip").title="Please provide valid zip code"):af$("DDemployCountry").value=="3"&&af$("tbemployzip").value.length<6?(af$("tbemployzip").style.backgroundColor="#FFD8D8",af$("tbemployzip").title="Please provide valid zip code"):af$("DDemployCountry").value!="1"&&af$("DDemployCountry").value!="3"&&af$("tbemployzip").value.length<10&&(af$("tbemployzip").style.backgroundColor="#FFD8D8",af$("tbemployzip").title="Please provide valid zip code");break;case"tbemploy2zip":af$("DDemploy2Country").value=="1"&&af$("tbemploy2zip").value.length<5?(af$("tbemploy2zip").style.backgroundColor="#FFD8D8",af$("tbemploy2zip").title="Please provide valid zip code"):af$("DDemploy2Country").value=="3"&&af$("tbemploy2zip").value.length<6?(af$("tbemploy2zip").style.backgroundColor="#FFD8D8",af$("tbemploy2zip").title="Please provide valid zip code"):af$("DDemploy2Country").value!="1"&&af$("DDemploy2Country").value!="3"&&af$("tbemploy2zip").value.length<10&&(af$("tbemploy2zip").style.backgroundColor="#FFD8D8",af$("tbemploy2zip").title="Please provide valid zip code");break;case"tbemploy3zip":af$("DDemploy3Country").value=="1"&&af$("tbemploy3zip").value.length<5?(af$("tbemploy3zip").style.backgroundColor="#FFD8D8",af$("tbemploy3zip").title="Please provide valid zip code"):af$("DDemploy3Country").value=="3"&&af$("tbemploy3zip").value.length<6?(af$("tbemploy3zip").style.backgroundColor="#FFD8D8",af$("tbemploy3zip").title="Please provide valid zip code"):af$("DDemploy3Country").value!="1"&&af$("DDemploy3Country").value!="3"&&af$("tbemploy3zip").value.length<10&&(af$("tbemploy3zip").style.backgroundColor="#FFD8D8",af$("tbemploy3zip").title="Please provide valid zip code");break;case"cob_zipcode":af$("cob_country").value=="1"&&af$("cob_zipcode").value.length<5?(af$("cob_zipcode").style.backgroundColor="#FFD8D8",af$("cob_zipcode").title="Please provide valid zip code"):af$("cob_country").value=="3"&&af$("cob_zipcode").value.length<6?(af$("cob_zipcode").style.backgroundColor="#FFD8D8",af$("cob_zipcode").title="Please provide valid zip code"):af$("cob_country").value!="1"&&af$("cob_country").value!="3"&&af$("cob_zipcode").value.length<10&&(af$("cob_zipcode").style.backgroundColor="#FFD8D8",af$("cob_zipcode").title="Please provide valid zip code");break;case"cob_tbadd1zip":af$("cob_DDadd1Country").value=="1"&&af$("cob_tbadd1zip").value.length<5?(af$("cob_tbadd1zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd1zip").title="Please provide valid zip code"):af$("cob_DDadd1Country").value=="3"&&af$("cob_tbadd1zip").value.length<6?(af$("
8cob_tbadd1zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd1zip").title="Please provide valid zip code"):af$("cob_DDadd1Country").value!="1"&&af$("cob_DDadd1Country").value!="3"&&af$("cob_tbadd1zip").value.length<10&&(af$("cob_tbadd1zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd1zip").title="Please provide valid zip code");break;case"cob_tbadd2zip":af$("cob_DDadd2Country").value=="1"&&af$("cob_tbadd2zip").value.length<5?(af$("cob_tbadd2zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd2zip").title="Please provide valid zip code"):af$("cob_DDadd2Country").value=="3"&&af$("cob_tbadd2zip").value.length<6?(af$("cob_tbadd2zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd2zip").title="Please provide valid zip code"):af$("cob_DDadd2Country").value!="1"&&af$("cob_DDadd2Country").value!="3"&&af$("cob_tbadd2zip").value.length<10&&(af$("cob_tbadd2zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd2zip").title="Please provide valid zip code");break;case"cob_tbemployzip":af$("cob_DDemployCountry").value=="1"&&af$("cob_tbemployzip").value.length<5?(af$("cob_tbemployzip").style.backgroundColor="#FFD8D8",af$("cob_tbemployzip").title="Please provide valid zip code"):af$("cob_DDemployCountry").value=="3"&&af$("cob_tbemployzip").value.length<6?(af$("cob_tbemployzip").style.backgroundColor="#FFD8D8",af$("cob_tbemployzip").title="Please provide valid zip code"):af$("cob_DDemployCountry").value!="1"&&af$("cob_DDemployCountry").value!="3"&&af$("cob_tbemployzip").value.length<10&&(af$("cob_tbemployzip").style.backgroundColor="#FFD8D8",af$("cob_tbemployzip").title="Please provide valid zip code");break;case"cob_tbemploy2zip":af$("cob_DDemploy2Country").value=="1"&&af$("cob_tbemploy2zip").value.length<5?(af$("cob_tbemploy2zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy2zip").title="Please provide valid zip code"):af$("cob_DDemploy2Country").value=="3"&&af$("cob_tbemploy2zip").value.length<6?(af$("cob_tbemploy2zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy2zip").title="Please provide valid zip code"):af$("cob_DDemploy2Country").value!="1"&&af$("cob_DDemploy2Country").value!="3"&&af$("cob_tbemploy2zip").value.length<10&&(af$("cob_tbemploy2zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy2zip").title="Please provide valid zip code");break;case"cob_tbemploy3zip":af$("cob_DDemploy3Country").value=="1"&&af$("cob_tbemploy3zip").value.length<5?(af$("cob_tbemploy3zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy3zip").title="Please provide valid zip code"):af$("cob_DDemploy3Country").value=="3"&&af$("cob_tbemploy3zip").value.length<6?(af$("cob_tbemploy3zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy3zip").title="Please provide valid zip code"):af$("cob_DDemploy3Country").value!="1"&&af$("cob_DDemploy3Country").value!="3"&&af$("cob_tbemploy3zip").value.length<10&&(af$("cob_tbemploy3zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy3zip").title="Please provide valid zip code")}else if(af$(t).value!="")switch(t){case"cus_zipcode":af$("cus_country").value=="1"&&af$("cus_zipcode").value.length<5?(af$("cus_zipcode").style.backgroundColor="#FFD8D8",af$("cus_zipcode").title="Please provide valid zip code"):af$("cus_country").value=="3"&&af$("cus_zipcode").value.length<6?(af$("cus_zipcode").style.backgroundColor="#FFD8D8",af$("cus_zipcode").title="Please provide valid zip code"):af$("cus_country").value!="1"&&af$("cus_country").value!="3"&&af$("cus_zipcode").value.length<10?(af$("cus_zipcode").style.backgroundColor="#FFD8D8",af$("cus_zipcode").title="Please provide valid zip code"):af$("cus_zipcode").style.backgroundColor="#FFF";break;case"tbadd1zip":af$("DDadd1Country").value=="1"&&af$("tbadd1zip").value.length<5?(af$("tbadd1zip").style.backgroundColor="#FFD8D8",af$("tbadd1zip").title="Please provide valid zip code"):af$("DDadd1Country").value=="3"&&af$("tbadd1zip").value.length<6?(af$("tbadd1zip").style.backgroundColor="#FFD8D8",af$("tbadd1zip").title="Please provide valid zip code"):af$("DDadd1Country").value!="1"&&af$("DDadd1Country").value!="3"&&af$("tbadd1zip").value.length<10?(af$("tbadd1zip").style.backgroundColor="#FFD8D8",af$("tbadd1zip").title="Please provide valid zip code"):af$("tbadd1zip").style.backgroundColor="#FFF";break;case"tbadd2zip":af$("DDadd2Country").value=="1"&&af$("tbadd2zip").value.length<5?(af$("tbadd2zip").style.backgroundColor="#FFD8D8",af$("tbadd2zip").title="Please provide valid zip code"):af$("DDadd2Country").value=="3"&&af$("tbadd2zip").value.length<6?(af$("tbadd2zip").style.backgroundColor="#FFD8D8",af$("tbadd2zip").title="Please provide valid zip code"):af$("DDadd2Country").value!="1"&&af$("DDadd2Country").value!="3"&&af$("tbadd2zip").value.length<10?(af$("tbadd2zip").style.backgroundColor="#FFD8D8",af$("tbadd2zip").title="Please provide valid zip code"):af$("tbadd2zip").style.backgroundColor="#FFF";break;case"tbemployzip":af$("DDemployCountry").value=="1"&&af$("tbemployzip").value.length<5?(af$("tbemployzip").style.backgroundColor="#FFD8D8",af$("tbemployzip").title="Please provide valid zip code"):af$("DDemployCountry").value=="3"&&af$("tbemployzip").value.length<6?(af$("tbemployzip").style.backgroundColor="#FFD8D8",af$("tbemployzip").title="Please provide valid zip code"):af$("DDemployCountry").value!="1"&&af$("DDemployCountry").value!="3"&&af$("tbemployzip").value.length<10?(af$("tbemployzip").style.backgroundColor="#FFD8D8",af$("tbemployzip").title="Please provide valid zip code"):af$("tbemployzip").style.backgroundColor="#FFF";break;case"tbemploy2zip":af$("DDemploy2Country").value=="1"&&af$("tbemploy2zip").value.length<5?(af$("tbemploy2zip").style.backgroundColor="#FFD8D8",af$("tbemploy2zip").title="Please provide valid zip code"):af$("DDemploy2Country").value=="3"&&af$("tbemploy2zip").value.length<6?(af$("tbemploy2zip").style.backgroundColor="#FFD8D8",af$("tbemploy2zip").title="Please provide valid zip code"):af$("DDemploy2Country").value!="1"&&af$("DDemploy2Country").value!="3"&&af$("tbemploy2zip").value.length<10?(af$("tbemploy2zip").style.backgroundColor="#FFD8D8",af$("tbemploy2zip").title="Please provide valid zip code"):af$("tbemploy2zip").style.backgroundColor="#FFF";break;case"tbemploy3zip":af$("DDemploy3Country").value=="1"&&af$("tbemploy3zip").value.length<5?(af$("tbemploy3zip").style.backgroundColor="#FFD8D8",af$("tbemploy3zip").title="Please provide valid zip code"):af$("DDemploy3Country").value=="3"&&af$("tbemploy3zip").value.length<6?(af$("tbemploy3zip").style.backgroundColor="#FFD8D8",af$("tbemploy3zip").title="Please provide valid zip code"):af$("DDemploy3Country").value!="1"&&af$("DDemploy3Country").value!="3"&&af$("tbemploy3zip").value.length<10?(af$("tbemploy3zip").style.backgroundColor="#FFD8D8",af$("tbemploy3zip").title="Please provide valid zip code"):af$("tbemploy3zip").style.backgroundColor="#FFF";break;
8case"cob_zipcode":af$("cob_country").value=="1"&&af$("cob_zipcode").value.length<5?(af$("cob_zipcode").style.backgroundColor="#FFD8D8",af$("cob_zipcode").title="Please provide valid zip code"):af$("cob_country").value=="3"&&af$("cob_zipcode").value.length<6?(af$("cob_zipcode").style.backgroundColor="#FFD8D8",af$("cob_zipcode").title="Please provide valid zip code"):af$("cob_country").value!="1"&&af$("cob_country").value!="3"&&af$("cob_zipcode").value.length<10?(af$("cob_zipcode").style.backgroundColor="#FFD8D8",af$("cob_zipcode").title="Please provide valid zip code"):af$("cus_zipcode").style.backgroundColor="#FFF";break;case"cob_tbadd1zip":af$("cob_DDadd1Country").value=="1"&&af$("cob_tbadd1zip").value.length<5?(af$("cob_tbadd1zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd1zip").title="Please provide valid zip code"):af$("cob_DDadd1Country").value=="3"&&af$("cob_tbadd1zip").value.length<6?(af$("cob_tbadd1zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd1zip").title="Please provide valid zip code"):af$("cob_DDadd1Country").value!="1"&&af$("cob_DDadd1Country").value!="3"&&af$("cob_tbadd1zip").value.length<10?(af$("cob_tbadd1zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd1zip").title="Please provide valid zip code"):af$("cob_tbadd1zip").style.backgroundColor="#FFF";break;case"cob_tbadd2zip":af$("cob_DDadd2Country").value=="1"&&af$("cob_tbadd2zip").value.length<5?(af$("cob_tbadd2zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd2zip").title="Please provide valid zip code"):af$("cob_DDadd2Country").value=="3"&&af$("cob_tbadd2zip").value.length<6?(af$("cob_tbadd2zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd2zip").title="Please provide valid zip code"):af$("cob_DDadd2Country").value!="1"&&af$("cob_DDadd2Country").value!="3"&&af$("cob_tbadd2zip").value.length<10?(af$("cob_tbadd2zip").style.backgroundColor="#FFD8D8",af$("cob_tbadd2zip").title="Please provide valid zip code"):af$("cob_tbadd2zip").style.backgroundColor="#FFF";break;case"cob_tbemployzip":af$("cob_DDemployCountry").value=="1"&&af$("cob_tbemployzip").value.length<5?(af$("cob_tbemployzip").style.backgroundColor="#FFD8D8",af$("cob_tbemployzip").title="Please provide valid zip code"):af$("cob_DDemployCountry").value=="3"&&af$("cob_tbemployzip").value.length<6?(af$("cob_tbemployzip").style.backgroundColor="#FFD8D8",af$("cob_tbemployzip").title="Please provide valid zip code"):af$("cob_DDemployCountry").value!="1"&&af$("cob_DDemployCountry").value!="3"&&af$("cob_tbemployzip").value.length<10?(af$("cob_tbemployzip").style.backgroundColor="#FFD8D8",af$("cob_tbemployzip").title="Please provide valid zip code"):af$("cob_tbemployzip").style.backgroundColor="#FFF";break;case"cob_tbemploy2zip":af$("cob_DDemploy2Country").value=="1"&&af$("cob_tbemploy2zip").value.length<5?(af$("cob_tbemploy2zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy2zip").title="Please provide valid zip code"):af$("cob_DDemploy2Country").value=="3"&&af$("cob_tbemploy2zip").value.length<6?(af$("cob_tbemploy2zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy2zip").title="Please provide valid zip code"):af$("cob_DDemploy2Country").value!="1"&&af$("cob_DDemploy2Country").value!="3"&&af$("cob_tbemploy2zip").value.length<10?(af$("cob_tbemploy2zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy2zip").title="Please provide valid zip code"):af$("cob_tbemploy2zip").style.backgroundColor="#FFF";break;case"cob_tbemploy3zip":af$("cob_DDemploy3Country").value=="1"&&af$("cob_tbemploy3zip").value.length<5?(af$("cob_tbemploy3zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy3zip").title="Please provide valid zip code"):af$("cob_DDemploy3Country").value=="3"&&af$("cob_tbemploy3zip").value.length<6?(af$("cob_tbemploy3zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy3zip").title="Please provide valid zip code"):af$("cob_DDemploy3Country").value!="1"&&af$("cob_DDemploy3Country").value!="3"&&af$("cob_tbemploy3zip").value.length<10?(af$("cob_tbemploy3zip").style.backgroundColor="#FFD8D8",af$("cob_tbemploy3zip").title="Please provide valid zip code"):af$("cob_tbemploy3zip").style.backgroundColor="#FFF"}}function checkEmployerlengthYear(){var i,r;if(creditAppType=="I"&&previousEmp_setting!="1"){var u=24,f=0,n=0,e=0,t=0;document.finance.DDemployJobYear1.selectedIndex!=-1&&(f=document.finance.DDemployJobYear1.options[document.finance.DDemployJobYear1.selectedIndex].value);document.finance.DDemployJobMonth1.selectedIndex!=-1&&(n=document.finance.DDemployJobMonth1.options[document.finance.DDemployJobMonth1.selectedIndex].value);document.finance.DDemploy2JobYears.selectedIndex!=-1&&(e=document.finance.DDemploy2JobYears.options[document.finance.DDemploy2JobYears.selectedIndex].value);document.finance.DDemploy2JobMonths.selectedIndex!=-1&&(t=document.finance.DDemploy2JobMonths.options[document.finance.DDemploy2JobMonths.selectedIndex].value);n=="20+"&&(n=20);t=="20+"&&(t=20);totalValue1=Number(n)+12*Number(f);totalValue2=totalValue1+Number(t)+12*Number(e);i=af$("empprev1");r=af$("empprev2");DWDealerID=="2801"?totalValue1<=u&&(f!=""||n!="")?(i.style.display="block",r.style.display=totalValue2<=u&&(e!=""||t!="")?"block":"none"):(i.style.display="none",r.style.display="none"):totalValue1<u&&(f!=""||n!="")?(i.style.display="block",r.style.display=totalValue2<u&&(e!=""||t!="")?"block":"none"):(i.style.display="none",r.style.display="none");hideOuterContainer()}}function checkReslengthYear(){if(creditAppType=="I"){var u=24,i=0,n=0,r=0,t=0;document.finance.DDaddStayYear.selectedIndex!=-1&&(i=document.finance.DDaddStayYear.options[document.finance.DDaddStayYear.selectedIndex].value);document.finance.DDaddStayMonth.selectedIndex!=-1&&(n=document.finance.DDaddStayMonth.options[document.finance.DDaddStayMonth.selectedIndex].value);document.finance.DDadd1AddLengthYear.selectedIndex!=-1&&(r=document.finance.DDadd1AddLengthYear.options[document.finance.DDadd1AddLengthYear.selectedIndex].value);document.finance.DDadd1AddLengthMonth.selectedIndex!=-1&&(t=document.finance.DDadd1AddLengthMonth.options[document.finance.DDadd1AddLengthMonth.selectedIndex].value);n=="20+"&&(n=20);t=="20+"&&(t=20);var f=Number(n)+12*Number(i),s=f+Number(t)+12*Number(r),e=af$("homeprev1"),o=af$("homeprev2");f<u&&(i!=""||n!="")?(e.style.display="block",o.style.display=s<u&&(r!=""||t!="")?"block":"none"):(e.style.display="none",o.style.display="none");hideOuterContainer()}}function checkCobEmployerlengthYear(){var u,f;if(previousEmp_setting!="1"){var e=24,i=0,n=0,r=0,t=0;document.finance.cob_DDemployJobYear1.selectedIndex!=-1&&(i=document.finance.cob_DDemployJobYear1.options[document.finance.cob_DDemployJobYear1.selectedIndex].value);document.finance.cob_DDemployJobMonth1.selectedIndex!=-1&&(n=document.finance.cob_DDemployJobMonth1.options[document.finance.cob_DDemployJobMonth1.selectedIndex].value);document.finance.cob_DDemploy2JobYears.selectedIndex!=-1&&(r=document.finance.cob_DDemploy2JobYears.options[document.finance.cob_DDemploy2JobYears.selectedIndex].value);document.finance.cob_DDemploy2JobMonths.selectedIndex!=-1&&(t=document.finance.cob_DDemploy2JobMonths.options[document.finance.cob_DDemploy2JobMonths.selectedIndex].value);n=="20+"&&(n=20);t=="20+"&&(t=20);totalValue1=Number(n)+12*Number(i);totalValue2=totalValue1+Number(t)+12*Number(r);u=af$("empprev1_CoBuyer");f=af$("empprev2_CoBuyer");totalValue1<e&&(i!=""||n!="")?(u.style.display="block",f.style.display=totalValue2<e&&(r!=""||t!="")?"block":"none"):(u.style.display="none",f.style.display="none");hideOuterContainer()}}function checkCobReslengthYear(){var u=24,i=0,n=0,r=0,t=0;document.finance.cob_DDaddStayYear.selectedIndex!=-1&&(i=document.finance.cob_DDaddStayYear.options[document.finance.cob_DDaddStayYear.selectedIndex].value);document.finance.cob_DDaddStayMonth.selectedIndex!=-1&&(n=document.finance.cob_DDaddStayMonth.options[document.finance.cob_DDaddStayMonth.selectedIndex].value);document.finance.cob_DDadd1AddLengthYear.selectedIndex!=-1&&(r=document.finance.cob_DDadd1AddLengthYear.options[document.finance.cob_DDadd1AddLengthYear.selectedIndex].value);document.finance.cob_DDadd1AddLengthMonth.selectedIndex!=-1&&(t=document.finance.cob_DDadd1AddLengthMonth.options[document.finance.cob_DDadd1AddLengthMonth.selectedIndex].value);n=="20+"&&(n=20);t=="20+"&&(t=20);var f=Number(n)+12*Number(i),s=f+Number(t)+12*Number(r),e=af$("homeprev1_CoBuyer"),o=af$("homeprev2_CoBuyer");f<u&&(i!=""||n!="")?(e.style.display="block",o.style.display=s<u&&(r!=""||t!="")?"block":"none"):(e.style.display="none",o.style.display="none");hideOuterContainer()}function changeResidenceSubType(n){af$("TR_ResidenceSubType").style.display=trim(n)=="O"?"":"none"}function changeCobuyerResidenceSubType(n){af$("cob_TR_ResidenceSubType").style.display=trim(n)=="O"?"":"none"}function SmallFinance_myPopup(n){$("#"+n).modal("show");n=="myPopup_SmallFinance_Privacy_policy"?$("#SmallFinance_Dis_body").html('<iframe src="/1/Common/GenericLayout/FinancePrivacyPolicy.aspx?dname='+DealerName+'" frameborder="0" style="width:100%; height:550px;"><\/iframe>'):n=="myPopup_SmallFinance_Terms_Conditions"&&$("#SmallFinance_Terms_Conditions_body").html('<iframe src="/1/Common/GenericLayout/FinanceTermsAndCond.aspx?dname='+DealerName+'" frameborder="0" style="width:100%; height:550px;"><\/iframe>')}function autoLoan(){af$("Autoloan_Date_span").style.display=af$("AutoLoan").value=="1"?"block":"none"}function bankruptcy(){af$("Bankruptcy_Date_span").style.display=af$("Bankruptcy").value=="1"?"block":"none"}function Referral(){af$("HowHeared").value="";af$("DL_Referral").value.length>0?(af$("HowHeared_span").style.display="inline",af$("DL_Referral_star").style.display!="none"&&(af$("HowHeared").style.backgroundColor="#EFF4FA",af$("HowHeared_star").style.display="inline"),af$("DL_Referral").value=="Referral"?af$("HowHeared_span_head").innerHTML="Name of Referrer":af$("DL_Referral").value=="Past customer"?af$("HowHeared_span_head").innerHTML="Name of salesperson":af$("DL_Referral").value=="Website"?af$("HowHeared_span_head").innerHTML="Which website":af$("DL_Referral").value=="Other"&&(af$("HowHeared_span_head").innerHTML="Please describe")):(af$("HowHeared_span").style.display="none",af$("HowHeared").style.backgroundColor="#FFF",af$("HowHeared_star").style.display="none")}function SetSelfEmp(n){var u,t,s,i,r,o,f,e;switch(n){case"1":if(document.getElementById("TBemployName_span").style.display="block",document.getElementById("TBemployAdd1_span").style.display="block",document.getElementById("TBemployAdd2_span").style.display="block",document.getElementById("TBemployCity_span").style.display="block",document.getElementById("DDemployState_span").style.display="block",document.getElementById("DDemployCountry_span").style.display="block",document.getElementById("tbemployzip_span").style.display="block",document.getElementById("TBemployWorkType_span").style.display="block",document.getElementById("EmpInfoOccup_span").style.display="block",document.getElementById("DDemployFreq_span").style.display="block",document.getElementById("TBemployIncome_span").style.display="block",document.getElementById("cus_w
8orkphone_span").style.display="block",document.getElementById("cus_empployment_phone_span").style.display="block",document.getElementById("DDemployJobYear1Month1_span").style.display="block",document.getElementById("EmpInfoSupervisor_span").style.display="block",document.getElementById("DDIsSelfEmployed_span").style.display="block",document.getElementById("TBemployAddIncomeSource_span").style.display="none",SetEmpStatus(document.getElementById("DDIsSelfEmployed").value),objFieldList!=null&&objFieldList.length>0)for(t=0;t<objFieldList.length;t++)for(objFieldList[t].FieldName=="Empprev1_H"?document.getElementById("empprev1").style.display=objFieldList[t].Setting=="1"?"block":"none":objFieldList[t].FieldName=="Empprev2_H"&&(document.getElementById("empprev2").style.display=objFieldList[t].Setting=="1"?"block":"none"),i=objFieldList[t].FieldName,r=objFieldList[t].Setting,u=0;u<empInfo.length;u++)if(i==empInfo[u]){f=r;switch(f){case 2:e=i+"_span";i=="DDemployJobYear1"||i=="DDemployJobMonth1"?(spanID="DDemployJobYear1Month1_span",af$(spanID).style.display="none"):af$(e).style.display="none"}}break;case"0":document.getElementById("TBemployAddIncomeSource_span").style.display="block";document.getElementById("TBemployName_span").style.display="none";document.getElementById("TBemployAdd1_span").style.display="none";document.getElementById("TBemployAdd2_span").style.display="none";document.getElementById("TBemployCity_span").style.display="none";document.getElementById("DDemployState_span").style.display="none";document.getElementById("DDemployCountry_span").style.display="none";document.getElementById("tbemployzip_span").style.display="none";document.getElementById("TBemployWorkType_span").style.display="none";document.getElementById("EmpInfoOccup_span").style.display="none";document.getElementById("DDemployFreq_span").style.display="none";document.getElementById("TBemployIncome_span").style.display="none";document.getElementById("cus_workphone_span").style.display="none";document.getElementById("cus_empployment_phone_span").style.display="none";document.getElementById("DDemployJobYear1Month1_span").style.display="none";document.getElementById("EmpInfoSupervisor_span").style.display="none";document.getElementById("DDIsSelfEmployed_span").style.display="none";document.getElementById("empprev1").style.display="none";document.getElementById("empprev2").style.display="none";SetEmpStatus("true");break;case"":document.getElementById("TBemployAddIncomeSource_span").style.display="none";document.getElementById("TBemployName_span").style.display="none";document.getElementById("TBemployAdd1_span").style.display="none";document.getElementById("TBemployAdd2_span").style.display="none";document.getElementById("TBemployCity_span").style.display="none";document.getElementById("DDemployState_span").style.display="none";document.getElementById("DDemployCountry_span").style.display="none";document.getElementById("tbemployzip_span").style.display="none";document.getElementById("TBemployWorkType_span").style.display="none";document.getElementById("EmpInfoOccup_span").style.display="none";document.getElementById("DDemployFreq_span").style.display="none";document.getElementById("TBemployIncome_span").style.display="none";document.getElementById("cus_workphone_span").style.display="none";document.getElementById("cus_empployment_phone_span").style.display="none";document.getElementById("DDemployJobYear1Month1_span").style.display="none";document.getElementById("EmpInfoSupervisor_span").style.display="none";document.getElementById("DDIsSelfEmployed_span").style.display="none";document.getElementById("empprev1").style.display="none";document.getElementById("empprev2").style.display="none";SetEmpStatus("true")}if(empInfo=["AreUEmployed","TBemployName","TBemployAdd1","TBemployAdd2","TBemployCity","DDemployState","cus_workphone","DDemployCountry","tbemployzip","EmpInfoOccup","DDemployFreq","TBemployIncome","DDemployJobYear1","DDemployJobMonth1","EmpInfoSupervisor","DDIsSelfEmployed","TBemployAddIncomeSource","DDAdditional_Income","TBemployAddIncome","DDemployAddIncomeFreq","TBemployWorkType","cus_empployment_phone"],objFieldList!=null&&objFieldList.length>0){for(t=0;t<objFieldList.length;t++)for(s=objFieldList[t],i=s.FieldName,r=s.Setting,o=0;o<empInfo.length;o++)if(i==empInfo[o]){f=r;switch(f){case 2:e=i+"_span";i=="DDemployJobYear1"||i=="DDemployJobMonth1"?(spanID="DDemployJobYear1Month1_span",af$(spanID).style.display="none"):af$(e).style.display="none"}}}else af$("TBemployWorkType_span").style.display="none",af$("cus_empployment_phone_span").style.display="none"}function SetSelfEmp2(n){var t,r,i,u,f,e;switch(n){case"1":document.getElementById("TBemployAddIncome_span").style.display="block";document.getElementById("DDemployAddIncomeFreq_span").style.display="block";break;case"0":document.getElementById("TBemployAddIncome_span").style.display="none";document.getElementById("DDemployAddIncomeFreq_span").style.display="none";break;case"":document.getElementById("TBemployAddIncome_span").style.display="none";document.getElementById("DDemployAddIncomeFreq_span").style.display="none"}if(objFieldList!=null&&objFieldList.length>0)for(t=0;t<objFieldList.length;t++)if(r=objFieldList[t],i=r.FieldName,u=r.Setting,i=="TBemployAddIncome"||i=="DDemployAddIncomeFreq"){f=u;switch(f){case 2:e=i+"_span";af$(e).style.display="none"}}}function hideshowpayoff(n){var t,i,r,u,f,e;switch(n){case"1":document.getElementById("TradeIn_CurrentPayment_span").style.display="none";break;case"0":document.getElementById("TradeIn_CurrentPayment_span").style.display="block";break;case"":document.getElementById("TradeIn_CurrentPayment_span").style.display="none"}if(objFieldList!=null&&objFieldList.length>0)for(t=0;t<objFieldList.length;t++)if(i=objFieldList[t],r=i.FieldName,u=i.Setting,r=="TradeIn_CurrentPayment"){f=u;switch(f){case 2:e=r+"_span";af$(e).style.display="none"}}}function SetEmpStatus(n){switch(n){case"false":document.getElementById("DDEmploymentStatus_span").style.display="block";break;case"true":document.getElementById("DDEmploymentStatus_span").style.display="none"}}function SetSelfCob(n){switch(n){case"1":document.getElementById("InfoDiv_CoBuyer").style.display="block";document.getElementById("FinanceCurrentResidence_CoBuyer").style.display="block";document.getElementById("FinanceCurrentEmployment_CoBuyer").style.display="block";break;case"0":document.getElementById("InfoDiv_CoBuyer").style.display="none";document.getElementById("FinanceCurrentResidence_CoBuyer").style.display="none";document.getElementById("FinanceCurrentEmployment_CoBuyer").style.display="none"}}function SetCobuyerSelfEmp2(n){var t,r,i,u,f,e;switch(n){case"1":document.getElementById("cob_TBemployAddIncome_span").style.display="block";document.getElementById("cob_DDemployAddIncomeFreq_span").style.display="block";break;case"0":document.getElementById("cob_TBemployAddIncome_span").style.display="none";document.getElementById("cob_DDemployAddIncomeFreq_span").style.display=" none ";break;case"":document.getElementById("cob_TBemployAddIncome_span").style.display=" none ";document.getElementById("cob_DDemployAddIncomeFreq_span").style.display=" none "}if(objFieldList!=null&&objFieldList.length>0)for(t=0;t<objFieldList.length;t++)if(r=objFieldList[t],i=r.FieldName,u=r.Setting,i=="TBemployAddIncome"||i=="DDemployAddIncomeFreq"){f=u;switch(f){case 2:e="cob_"+i+"_span";af$(e).style.display="none"}}}function SetCobuyerSelfEmp(n){var u,t,f,i,e,r,o,s;switch(n){case"1":if(document.getElementById("cob_TBemployName_span").style.display="block",document.getElementById("cob_TBemployAdd1_span").style.display="block",document.getElementById("cob_TBemployAdd2_span").style.display="block",document.getElementById("cob_TBemployCity_span").style.display="block",document.getElementById("cob_DDemployState_span").style.display="block",document.getElementById("cob_DDemployCountry_span").style.display="block",document.getElementById("cob_tbemployzip_span").style.display="block",document.getElementById("cob_TBemployWorkType_span").style.display="block",document.getElementById("cob_EmpInfoOccup_span").style.display="block",document.getElementById("cob_DDemployFreq_span").style.display="block",document.getElementById("cob_TBemployIncome_span").style.display="block",document.getElementById("cob_cus_workphone_span").style.display="block",document.getElementById("cob_cus_empployment_phone_span").style.display="block",document.getElementById("cob_DDemployJobYear1Month1_span").style.display="block",document.getElementById("cob_EmpInfoSupervisor_span").style.display="block",document.getElementById("cob_DDIsSelfEmployed_span").style.display="block",document.getElementById("cob_TBemployAddIncomeSource_span").style.display="none",SetCobuyerEmpStatus(document.getElementById("cob_DDIsSelfEmployed").value),objFieldList!=null&&objFieldList.length>0)for(t=0;t<objFieldList.length;t++)objFieldList[t].FieldName=="Empprev1_H"?document.getElementById("empprev1_CoBuyer").style.display=objFieldList[t].Setting=="1"?"block":"none":objFieldList[t].FieldName=="Empprev2_H"&&(document.getElementById("empprev2_CoBuyer").style.display=objFieldList[t].Setting=="1"?"block":"none");break;case"0":document.getElementById("cob_TBemployAddIncomeSource_span").style.display="block";document.getElementById("cob_TBemployName_span").style.display="none";document.getElementById("cob_TBemployAdd1_span").style.display="none";document.getElementById("cob_TBemployAdd2_span").style.display="none";document.getElementById("cob_TBemployCity_span").style.display="none";document.getElementById("cob_DDemployState_span").style.display="none";document.getElementById("cob_DDemployCountry_span").style.display="none";document.getElementById("cob_tbemployzip_span").style.display="none";document.getElementById("cob_TBemployWorkType_span").style.display="none";document.getElementById("cob_EmpInfoOccup_span").style.display="none";document.getElementById("cob_DDemployFreq_span").style.display="none";document.getElementById("cob_TBemployIncome_span").style.display="none";document.getElementById("cob_cus_workphone_span").style.display="none";document.getElementById("cob_cus_empployment_phone_span").style.display="none";document.getElementById("cob_DDemployJobYear1Month1_span").style.display="none";document.getElementById("cob_EmpInfoSupervisor_span").style.display="none";document.getElementById("cob_DDIsSelfEmployed_span").style.display="none";document.getElementById("empprev1_CoBuyer").style.display="none";document.getElementById("empprev2_CoBuyer").style.display="none";SetCobuyerEmpStatus("true");break;case"":document.getElementById("cob_TBemployAddIncomeSource_span").style.display="block";document.getElementById("cob_TBemployName_span").style.display="none";document.getElementById("cob_TBemployAdd1_span").style.display="none";document.getElementById("cob_TBemployAdd2_span").style.display="none";document.getElementById("cob_TBemployCity_span").style.display="none";document.getElementById("cob_DDemployState_span").style.display="none";document.getElementById("cob_DDemployCountry_span").style.display="none";document.getElementById("cob_tbemployzip_span").style.display="none";document.getElementById("cob_TBemployWorkType_span").style.display="none";document.getElementById("cob_EmpInfoOccup_span").style.display="none";document.getElementById("cob_DDemployFreq_span").style.display="none";document.getElementById("cob_TBemployIncome_span").style.display="none";document.getElementById("cob_cus_workphone_span").style.display="none";document.getElementById("cob_cus_empployment_phone_span").style.display="none";document.getElementById("cob_DDemployJobYear1Month1_span").style.display="none";document.getElementById("cob_EmpInfoSupervisor_span").style.display="none";document.getElementById("cob_DDIsSelfEmployed_span").style.display="none";SetCobuyerEmpStatus("true")}if(u=["AreUEmployed","TBemployName","TBemployAdd1","TBemployAdd2","TBemployCity","DDemployState","cus_workphone","DDemployCountry","tbemployzip","EmpInfoOccup","DDemployFreq","TBemployIncome","DDemployJobYear1","DDemployJobMonth1","EmpInfoSupervisor","DDIsSelfEmployed","TBemployAddIncomeSource","DDAdditional_Income","TBemployAddIncome","DDemployAddIncomeFreq","TBemployWorkType","cus_empployment_phone"],objFieldList!=null&&objFieldList.length>0){for(t=0;t<objFieldList.length;t++)for(f=objFieldList[t],i=f.FieldName,e=f.Setting,r=0;r<u.length;r++)if(i==u[r]){o=e;switch(o){case 2:s="cob_"+i+"_span";i=="DDemployJobYear1"||i=="DDemployJobMonth1"?(spanID="cob_DDemployJobYear1Month1_span",af$(spanID).style.display="none"):af$(s).style.display="none"}}}else af$("cob_TBemployWorkType_span").style.display="none",af$("cob_cus_empployment_phone_span").style.display="none"}function SetCobuyerEmpStatus(n){switch(n){case"false":document.getElementById("cob_DDEmploymentStatus_span").style.display="block";break;case"true":document.getElementById("cob_DDEmploymentStatus_span").style.display="none"}}function resetInterestedInSearchValues(){objInvFilter.DealerID=DWDealerID;objInvFilter.StartRow=1;objInvFilter.EndRow=50;objInvFilter.Year="%";
8objInvFilter.Make="%";objInvFilter.Model="%";objInvFilter.Color="%";objInvFilter.BodyType="%";objInvFilter.Price="-1,200000000";objInvFilter.Mileage="0,200000000";objInvFilter.NewVehiclePage=2;objInvFilter.VehicleType="%";objInvFilter.VehicleTypeExclude="-1";objInvFilter.Stock="%";objInvFilter.Lot=-1;objInvFilter.Special=2;objInvFilter.PriceReduced=2;objInvFilter.InventorySearch=!0}function LoadInterestedInMakeModel(n){onChangeTriggerFrom=n;af$("VehInt_Model").innerHTML="";SelectAddOption(af$("VehInt_Model"),"","--");objInvFilter.Make=$("#VehInt_Make").val()!=""?$("#VehInt_Make").val():"%";objInvFilter.Model=$("#VehInt_Model").val()!=""?$("#VehInt_Model").val():"%";var t="{ params: "+JSON.stringify(objInvFilter)+"}";JqueryAjaxCall("POST","GetInventorySearchFilterList",t,GetInventorySearchFilterList_CB)}function GetInventorySearchFilterList_CB(n){if(n!=null){if(n.Makes!=null&&onChangeTriggerFrom=="DocReady")for(af$("VehInt_Make").innerHTML="",SelectAddOption(af$("VehInt_Make"),"","--"),i=0;i<n.Makes.length;++i)SelectAddOption(af$("VehInt_Make"),n.Makes[i].Make,n.Makes[i].Make);if(n.Models!=null&&onChangeTriggerFrom=="Make")for(af$("VehInt_Model").innerHTML="",SelectAddOption(af$("VehInt_Model"),"","--"),i=0;i<n.Models.length;++i)SelectAddOption(af$("VehInt_Model"),n.Models[i].Model,n.Models[i].Model)}}function InterestedInSearch(){objInvFilter.Make=$("#VehInt_Make").val()!=""?$("#VehInt_Make").val():"%";objInvFilter.Model=$("#VehInt_Model").val()!=""?$("#VehInt_Model").val():"%";objInvFilter.Stock=$("#VehInt_Stock").val()!=""?$("#VehInt_Stock").val():"%";af$("InterestedInContainer").innerHTML="";var n="{ params: "+JSON.stringify(objInvFilter)+"}";JqueryAjaxCall("POST","GetInventoryPaging",n,GetInventoryObj_CB)}function GetInventoryObj_CB(n){var f=n,e=0,r="",t=null,u="";if(f!=null&&f.InvPageList!=null){for(i=0;i<f.InvPageList.length;++i)t=f.InvPageList[i],e=e+1,r+="<div class='divRecentView'>",r+="<table class='tblRecentView' role='presentation'>",r+="<tr><td>",u=t.NewOrUsed?"New "+t.Make+" "+t.Model+" "+t.Trim+" "+t.Year+" | "+DealerName+". "+DealerCity+", "+DealerStateFull:"Used "+t.Make+" "+t.Model+" "+t.Trim+" "+t.Year+" | "+DealerName+". "+DealerCity+", "+DealerStateFull,u=u.replace(/"/gi,"""),r+='<input aria-label="'+u+'" ',e==1,r+='type="checkbox" name="chkInventoryIDs" id=chkInventoryIDs2_'+e+' value="'+t.InventoryID+'"><\/td>',r+='<td><img onerror="this.onerror=null;this.src=\'/1/images/InvnoImage/noimage.jpg\'" alt="'+u+'" src="'+t.ImagePath+'" class="recientlyViewedThumb" ><\/td><td>'+t.Year+" "+t.Make+" "+t.Model+" "+t.Trim+"<\/td><\/tr>",r+="<\/table>",r+="<\/div>";r.length>0&&(af$("InterestedInContainer").innerHTML=r,af$("InterestedInContainer").style.display="")}}function FinanceSimplePageSubmit(){var n,t,r,i;if($("input#TB_Website_Hide").length>0&&$("input#TB_Website_Hide").val().length!=0)return!1;n="";cus_state==1&&(af$("htmHdncus_state").value=af$("cus_states").value);DDemploy_state==1&&(af$("htmHdnDDemploy_state").value=af$("DDemploy_states").value);af$("cus_firstname_star").style.display!="none"&&trim(document.finance.cus_firstname.value)==""?(af$("cus_firstname").style.backgroundColor="#FFD8D8",n+="Please provide first name. \n"):af$("cus_firstname").style.backgroundColor="white";af$("cus_middlename_star").style.display!="none"&&trim(document.finance.cus_middlename.value)==""?(af$("cus_middlename").style.backgroundColor="#FFD8D8",n+="Please provide the middle name. \n"):af$("cus_middlename").style.backgroundColor="white";af$("cus_lastname_star").style.display!="none"&&trim(document.finance.cus_lastname.value)==""?(af$("cus_lastname").style.backgroundColor="#FFD8D8",n+="Please provide last name. \n"):af$("cus_lastname").style.backgroundColor="white";af$("cus_ssn_star").style.display!="none"?af$("cus_ssn").value.length==0?(af$("cus_ssn").style.backgroundColor="#FFD8D8",n+="Please provide SSN. \n"):getIntegersOnly(af$("cus_ssn").value).length>0&&getIntegersOnly(af$("cus_ssn").value).length<9?n+="SSN is not valid. \n":af$("cus_ssn").style.backgroundColor="white":getIntegersOnly(af$("cus_ssn").value).length>0&&getIntegersOnly(af$("cus_ssn").value).length<9&&(i="SSN is not val
8id. \n",n+=i);t=af$("cus_bdate");t.value=makeDateFormat(t.value);af$("cus_bdate_star").style.display!="none"?t.value.length==0?(i="Please provide date of birth. \n",n+=i,af$("cus_bdate").style.backgroundColor=t.value.length==0?"#FFD8D8":"white"):getIntegersOnly(t.value).length==8&&t.value.length==10?(r=isValidDate(t.value.substring(0,2),t.value.substring(3,5),t.value.substring(6,10)),r!=!0&&(n+=r)):(i="Customer's birth date is not valid. \n",n+=i):getIntegersOnly(t.value).length==8&&t.value.length==10?(r=isValidDate(t.value.substring(0,2),t.value.substring(3,5),t.value.substring(6,10)),r!=!0&&(n+=r)):t.value.length>0&&getIntegersOnly(t.value).length!=8&&t.value.length!=10&&(i="Customer's birth date is not valid. \n",n+=i);af$("cus_mobilephone_star").style.display!="none"&&getIntegersOnly(af$("cus_mobilephone").value).length==0?(n+="Please provide cellphone number. \n",af$("cus_mobilephone").style.backgroundColor="#FFD8D8"):af$("cus_mobilephone").style.backgroundColor="white";n+=ValidatePhoneNumberByCountry(trim(af$("cus_mobilephone").value),af$("cus_country").value,"Cellphone # is not valid.\n");af$("cus_homephone_star").style.display!="none"&&getIntegersOnly(af$("cus_homephone").value).length==0?(i="Please provide home telephone number. \n",n+=i,af$("cus_homephone").style.backgroundColor="#FFD8D8"):af$("cus_homephone").style.backgroundColor="white";n+=ValidatePhoneNumberByCountry(trim(af$("cus_homephone").value),af$("cus_country").value,"Homephone # is not valid.\n");af$("ps_number_star").style.display!="none"&&trim(document.finance.ps_number.value)==""?(n+="Please provide residence street number. \n",af$("ps_number").style.backgroundColor="#FFD8D8"):af$("ps_number").style.backgroundColor="white";af$("ps_street_star").style.display!="none"&&document.finance.ps_street.value.length==0?(n+="Please provide residence street name. \n",af$("ps_street").style.backgroundColor="#FFD8D8"):af$("ps_street").style.backgroundColor="white";af$("ps_type_star").style.display!="none"&&trim(document.finance.ps_type.value)==""?(n+="Please select residence street type. \n",af$("ps_type").style.backgroundColor="#FFD8D8"):af$("ps_type").style.backgroundColor="white";af$("cus_city_star").style.display!="none"&&trim(document.finance.cus_city.value)==""?(n=n+"Please provide residence city name. \n",af$("cus_city").style.backgroundColor="#FFD8D8"):af$("cus_city").style.backgroundColor="white";cus_state==1?af$("cus_state_star").style.display!="none"&&af$("cus_states").value==""?(n+="Please select residence state. \n",af$("cus_states").style.backgroundColor="#FFD8D8"):af$("cus_states").style.backgroundColor="white":af$("cus_state_star").style.display!="none"&&document.finance.cus_state.options[document.finance.cus_state.selectedIndex].value==""?(n+="Please select residence state. \n",af$("cus_state").style.backgroundColor="#FFD8D8"):af$("cus_state").style.backgroundColor="white";af$("cus_country_star").style.display!="none"&&document.finance.cus_country.options[document.finance.cus_country.selectedIndex].value==0?(n+="Please select residence country. \n",af$("cus_country").style.backgroundColor="#FFD8D8"):af$("cus_country").style.backgroundColor="white";af$("cus_zipcode_star").style.display!="none"&&getIntegersOnly(af$("cus_zipcode").value).length==0?(i="Please provide residence zip. \n",n+=i,af$("cus_zipcode").style.backgroundColor="#FFD8D8"):af$("cus_zipcode").style.backgroundColor="white";n+=ValidateZip(trim(af$("cus_zipcode").value),parseInt(af$("cus_country").value),"customer zip is not valid.\n");af$("DDaddStayYearMonth_star").style.display!="none"&&(document.finance.DDaddStayYear.options[document.finance.DDaddStayYear.selectedIndex].value==""&&document.finance.DDaddStayMonth.options[document.finance.DDaddStayMonth.selectedIndex].value==""?(n+="Please provide length of stay in the area. \n",af$("DDaddStayMonth").style.backgroundColor="#FFD8D8",af$("DDaddStayYear").style.backgroundColor="#FFD8D8"):document.finance.DDaddStayYear.options[document.finance.DDaddStayYear.selectedIndex].value==""?(n+="Please provide length of stay in the area in years. \n",af$("DDaddStayYear").style.backgroundColor="#FFD8D8"):document.finance.DDaddStayMonth.options[document.finance.DDaddStayMonth.selectedIndex].value==""?(n+="Please provide length of stay in the area in months. \n",af$("DDaddStayMonth").style.backgroundColor="#FFD8D8"):(af$("DDaddStayMonth").style.backgroundColor="white",af$("DDaddStayYear").style.backgroundColor="white"));af$("TBemployName_star").style.display!="none"&&af$("TBemployName").value==0?(n+="Please provide employer name. \n",af$("TBemployName").style.backgroundColor="#FFD8D8"):af$("TBemployName").style.backgroundColor="white";af$("TBemployAdd1_star").style.display!="none"&&af$("TBemployAdd1").value==0?(n+="Please provide employment address 1. \n",af$("TBemployAdd1").style.backgroundColor="#FFD8D8"):af$("TBemployAdd1").style.backgroundColor="white";af$("TBemployAdd2_star").style.display!="none"&&af$("TBemployAdd1").value==0?(n+="Please provide employment address 2. \n",af$("TBemployAdd2").style.backgroundColor="#FFD8D8"):af$("TBemployAdd2").style.backgroundColor="white";af$("TBemployCity_star").style.display!="none"&&af$("TBemployCity").value==0?(n+="Please provide employment city. \n",af$("TBemployCity").style.backgroundColor="#FFD8D8"):af$("TBemployCity").style.backgroundColor="white";DDemploy_state==1?af$("DDemployState_star").style.display!="none"&&af$("DDemploy_states").value==""?(n+="Please select employment state. \n",af$("DDemploy_states").style.backgroundColor="#FFD8D8"):af$("DDemploy_states").style.backgroundColor="white":af$("DDemployState_star").style.display!="none"&&document.finance.DDemployState.o
8ptions[document.finance.DDemployState.selectedIndex].value==""?(n+="Please select employment state. \n",af$("DDemployState").style.backgroundColor="#FFD8D8"):af$("DDemployState").style.backgroundColor="white";af$("DDemployCountry_star").style.display!="none"&&document.finance.DDemployCountry.options[document.finance.DDemployCountry.selectedIndex].value==0?(n+="Please select employment country. \n",af$("DDemployCountry").style.backgroundColor="#FFD8D8"):af$("DDemployCountry").style.backgroundColor="white";af$("tbemployzip_star").style.display!="none"&&af$("tbemployzip").value==0?(n+="Please provide employment zip. \n",af$("tbemployzip").style.backgroundColor="#FFD8D8"):af$("tbemployzip").style.backgroundColor="white";n+=ValidateZip(trim(af$("tbemployzip").value),parseInt(af$("DDemployCountry").value),"Employer: zip is not valid.\n");af$("DDemployJobYear1Month1_star").style.display!="none"&&(document.finance.DDemployJobYear1.options[document.finance.DDemployJobYear1.selectedIndex].value==""&&document.finance.DDemployJobMonth1.options[document.finance.DDemployJobMonth1.selectedIndex].value==""?(n+="Please provide length of current employment. \n",af$("DDemployJobYear1").style.backgroundColor="#FFD8D8",af$("DDemployJobMonth1").style.backgroundColor="#FFD8D8"):document.finance.DDemployJobYear1.options[document.finance.DDemployJobYear1.selectedIndex].value==""?(n+="Please provide length of current employment in years. \n",af$("DDemployJobYear1").style.backgroundColor="#FFD8D8"):document.finance.DDemployJobMonth1.options[document.finance.DDemployJobMonth1.selectedIndex].value==""?(n+="Please provide length of current employment in months. \n",af$("DDemployJobMonth1").style.backgroundColor="#FFD8D8"):(af$("DDemployJobYear1").style.backgroundColor="white",af$("DDemployJobMonth1").style.backgroundColor="white"));af$("cus_workphone_star").style.display!="none"&&af$("cus_workphone").value==0?(n+="Please provide work phone. \n",af$("cus_workphone").style.backgroundColor="#FFD8D8"):af$("cus_workphone").style.backgroundColor="white";n+=ValidatePhoneNumberByCountry(trim(af$("cus_workphone").value),af$("DDemployCountry").value,"Workphone # is not valid.\n");af$("htmCB_verification").checked||(n+="You must agree to the term of this form, please check the box to continue. \n");af$("TB_ESignature_star").style.display!="none"&&(af$("TB_ESignature").value.length==0?(af$("TB_ESignature").style.backgroundColor="#FFD8D8",n+="Please provide E-Signature. \n"):af$("TB_ESignature").style.backgroundColor="white");blnShowCaptchaCode==!0&&(af$("txtMSCaptchaCode").value.length<=0?(n+="Please provide captcha code. \n",af$("txtMSCaptchaCode").style.backgroundColor="#FFD8D8",af$("txtMSCaptchaCode").setAttribute("aria-invalid","true")):(af$("txtMSCaptchaCode").style.backgroundColor="white",af$("txtMSCaptchaCode").setAttribute("aria-invalid","false")));n.length==0?($("#creditappsubmit").attr("disabled",!0),document.finance.hdaddCusPageMode.value="saveCusAdd",document.finance.submit()):AlertModel(n)}function SetSmallFinanceAppFields(){af$("cus_ssn").setAttribute("type","tel");af$("cus_bdate").setAttribute("type","tel");af$("cus_mobilephone").setAttribute("type","tel");af$("cus_homephone").setAttribute("type","tel");af$("cus_zipcode").setAttribute("type","tel");af$("cus_workphone").setAttribute("type","tel");af$("txtMSCaptchaCode").setAttribute("type","tel");af$("tbemployzip").setAttribute("type","tel")}function SetIsTradeIn(n){var i,r,t,u,f,e;switch(n){case"1":document.getElementById("FinanceTradinInfoC").style.display="block";document.getElementById("TradeIn_Year_span").style.display="block";document.getElementById("TradeIn_Make_span").style.display="block";document.getElementById("TradeIn_Model_span").style.display="block";document.getElementById("TradeIn_Mileage_span").style.display="block";document.getElementById("TradeIn_Vin_span").style.display="block";document.getElementById("IsVehPaidOff_span").style.display="block";document.getElementById("TradeIn_Color_span").style.display="block";document.getElementById("TradeIn_BankFinanced_span").style.display="block";document.getElementById("TradeIn_AmountOwed_span").style.display="block";break;case"0":document.getElementById("FinanceTradinInfoC").style.display="none";document.getElementById("TradeIn_Year_span").style.display="none";document.getElementById("TradeIn_Make_span").style.display="none";document.getElementById("TradeIn_Model_span").style.display="none";document.getElementById("TradeIn_Mileage_span").style.display="none";document.getElementById("TradeIn_Vin_span").style.display="none";document.getElementById("TradeIn_Color_span").style.display="none";document.getElementById("TradeIn_BankFinanced_span").style.display="none";document.getElementById("TradeIn_AmountOwed_span").style.display="none";document.getElementById("IsVehPaidOff_span").style.display="none";document.getElementById("TradeIn_CurrentPayment_span").style.display="none"}if(objFieldList!=null&&objFieldList.length>0){for(i=0;i<objFieldList.length;i++)if(r=objFieldList[i],t=r.FieldName,u=r.Setting,t=="TradeIn_Year"||t=="TradeIn_Make"||t=="TradeIn_Model"||t=="TradeIn_Mileage"||t=="TradeIn_Vin"||t=="TradeIn_Color"||t=="TradeIn_BankFinanced"||t=="TradeIn_AmountOwed"||t=="IsVehPaidOff"||t=="TradeIn_CurrentPayment"){f=u;switch(f){case 2:e=t+"_span";af$(e).style.display="none"}}}else document.getElementById("TradeIn_Color_span").style.display="none",document.getElementById("TradeIn_BankFinanced_span").style.display="none",document.getElementById("TradeIn_AmountOwed_span").style.display="none",document.getElementById("TradeIn_CurrentPayment_span").style.display="none"}function ChangeCreditAppType(n){if(creditAppType=n,n=="I"){$("#cus_ssn").attr("onkeyup","formatSSN_onKeyUp(this)");$("#cus_ssn").attr("onblur","fieldRequired_onBlur(this, '', this.id);SSNValidate(this)");$("#Head_PerosnalInfo").html("PERSONAL INFORMATION");$("#Head_ResidenceInfo").html("RESIDENCE INFO");$("#Head_EmploymentInfo").html("EMPLOYMENT INFO");$("#cus_lastname_label").html($("#cus_lastname_label").html().replace("Business name","Last name"));$("#cus_ssn_label").html($("#cus_ssn_label").html().replace("TIN#","SSN#"));$("#cus_bdate_label").html($("#cus_bdate_label").html().replace("Date business established","DOB"));$("#cus_homephone_label").html($("#cus_homephone_label").html().replace("Business phone #","Home phone #"));$("#DDaddStayYearMonth_label").html($("#DDaddStayYearMonth_label").html().replace("Time at location","Time at residence"));$("#DDemployJobYear1Month1_label").html($("#DDemployJobYear1Month1_label").html().replace("Time in business","Time at job"));$("#EmpInfoSupervisor_label").html($("#EmpInfoSupervisor_label").html().replace("Contact","Name of supervisor"));$("#EmpInfoOccup_label").html($("#EmpInfoOccup_label").html().replace("Title","Occupation"));for(let n=0;n<arrBusinessHiddenFields.length;n++)$("#"+arrBusinessHiddenFields[n]).show();for(let n=0;n<arrBusinessHiddenFieldsStars.length;n++)$("#"+arrBusinessHiddenFieldsStars[n]).css("display","inline");SetSelfEmp("");$("#AreUEmployed").val("")}else n=="B"&&(SetSelfEmp("1"),$("#AreUEmployed").val("1"),$("#cus_ssn").removeAttr("onkeyup"),$("#cus_ssn").attr("onblur","fieldRequired_onBlur(this, '', this.id);"),$("#Head_PerosnalInfo").html("BUSINESS INFORMATION"),$("#Head_ResidenceInfo").html("BUSINESS ADDRESS"),$("#Head_EmploymentInfo").html("BUSINESS INFORMATION"),$("#cus_lastname_label").html($("#cus_lastname_label").html().replace("Last name","Business name")),$("#cus_ssn_label").html($("#cus_ssn_label").html().replace("SSN#","TIN#")),$("#cus_bdate_label").html($("#cus_bdate_label").html().replace("DOB","Date business established")),$("#cus_homephone_label").html($("#cus_homephone_label").html().replace("Home phone #","Business phone #")),$("#DDaddStayYearMonth_label").html($("#DDaddStayYearMonth_label").html().replace("Time at residence","Time at location")),$("#DDemployJobYear1Month1_label").html($("#DDemployJobYear1Month1_label").html().replace("Time at job","Time in business")),$("#EmpInfoSupervisor_label").html($("#EmpInfoSupervisor_label").html().replace("Name of supervisor","Contact")),$("#EmpInfoOccup_label").html($("#EmpInfoOccup_label").html().replace("Occupation","Title")),arrBusinessHiddenFields=[],$("#cus_firstname_span").is(":visible")&&($("#cus_firstname_span").hide(),arrBusinessHiddenFields.push("cus_firstname_span")),$("#cus_firstname_star").css("display")=="inline"&&($("#cus_firstname_star").hide(),arrBusinessHiddenFieldsStars.push("cus_firstname_star")),$("#cus_middlename_span").is(":visible")&&($("#cus_middlename_span").hide(),arrBusinessHiddenFields.push("cus_middlename_span")),$("#cus_middlename_star").css("display")=="inline"&&($("#cus_middlename_star").hide(),arrBusinessHiddenFieldsStars.push("cus_middlename_star")),$("#cus_suffix_span").is(":visible")&&($("#cus_suffix_span").hide(),arrBusinessHiddenFields.push("cus_suffix_span")),$("#cus_suffix_star").css("display")=="inline"&&($("#cus_suffix_star").hide(),arrBusinessHiddenFieldsStars.push("cus_suffix_star")),$("#cus_gender_span").is(":visible")&&($("#cus_gender_span").hide(),arrBusinessHiddenFields.push("cus_gender_span")),$("#cus_gender_star").css("display")=="inline"&&($("#cus_gender_star").hide(),arrBusinessHiddenFieldsStars.push("cus_gender_star")),$("#cus_mobilephone_span").is(":visible")&&($("#cus_mobilephone_span").hide(),arrBusinessHiddenFields.push("cus_mobilephone_span")),$("#cus_mobilephone_star").css("display")=="inline"&&($("#cus_mobilephone_star").hide(),arrBusinessHiddenFieldsStars.push("cus_mobilephone_star")),$("#license_number_span").is(":visible")&&($("#license_number_span").hide(),arrBusinessHiddenFields.push("license_number_span")),$("#license_number_star").css("display")=="inline"&&($("#license_number_star").hide(),arrBusinessHiddenFieldsStars.push("license_number_star")),$("#license_expdate_span").is(":visible")&&($("#license_expdate_span").hide(),arrBusinessHiddenFields.push("license_expdate_span")),$("#license_expdate_star").css("display")=="inline"&&($("#license_expdate_star").hide(),arrBusinessHiddenFieldsStars.push("license_expdate_star")),$("#license_state_span").is(":visible")&&($("#license_state_span").hide(),arrBusinessHiddenFields.push("license_state_span")),$("#license_state_star").css("display")=="inline"&&($("#license_state_star").hide(),arrBusinessHiddenFieldsStars.push("license_state_star")),$("#license_country_span").is(":visible")&&($("#license_country_span").hide(),arrBusinessHiddenFields.push("license_country_span")),$("#license_country_star").css("display")=="inline"&&($("#license_country_star").hide(),arrBusinessHiddenFieldsStars.push("license_country_star")),$("#personalInfoDiv_CoBuyer").is(":visible")&&($("#personalInfoDiv_CoBuyer").hide(),arrBusinessHiddenFields.push("personalInfoDiv_CoBuyer")),$("#AreUEmployed_span").is(":visible")&&($("#AreUEmployed_span").hide(),arrBusinessHiddenFields.push("AreUEmployed_span")),$("#AreUEmployed_star").css("display")=="inline"&&($("#AreUEmployed_star").hide(),arrBusinessHiddenFieldsStars.push("AreUEmployed_star")),$("#DDIsSelfEmployed_span").is(":visible")&&($("#DDIsSelfEmployed_span").hide(),arrBusinessHiddenFields.push("DDIsSelfEmployed_span")),$("#DDIsSelfEmployed_star").css("display")=="inline"&&($("#DDIsSelfEmployed_star").hide(),arrBusinessHiddenFieldsStars.push("DDIsSelfEmployed_star")),$("#DDEmploymentStatus_span").is(":visible")&&($("#DDEmploymentStatus_span").hide(),arrBusinessHiddenFields.push("DDEmploymentStatus_span")),$("#DDEmploymentStatus_star").css("display")=="inline"&&($("#DDEmploymentStatus_star").hide(),arrBusinessHiddenFieldsStars.push("DDEmploymentStatus_star")),$("#TBemployAddIncomeSource_span").is(":visible")&&($("#TBemployAddIncomeSource_span").hide(),arrBusinessHiddenFields.push("TBemployAddIncomeSource_span")),$("#TBemployAddIncomeSource_star").css("display")=="inline"&&($("#TBemployAddIncomeSource_star").hide(),arrBusinessHiddenFieldsStars.push("TBemployAddIncomeSource_star")),$("#TBemployName_span").is(":visible")&&($("#TBemployName_span").hide(),arrBusinessHiddenFields.push("TBemployName_span")),$("#TBemployName_star").css("display")=="inline"&&($("#TBemployName_star").hide(),arrBusinessHiddenFieldsStars.push("TBemployName_star")),$("#TBemployAdd1_span").is(":visible")&&($("#TBemployAdd1_span").hide(),arrBusinessHiddenFields.push("TBemployAdd1_span")),$("#TBemployAdd1_star").css("display")=="inline"&&($("#TBemployAdd1_star").hide(),arrBusinessHiddenFieldsStars.push("TBemployAdd1_star")),$("#TBemployAdd2_span").is(":visible")&&($("#TBemployAdd2_span").hide(),arrBusinessHiddenFields.push("TBemployAdd2_span")),$("#TBemployAdd2_star").css("display")=="inline"&&($("#TBemployAdd2_star").hide(),arrBusinessHiddenFieldsStars.push("TBemployAdd2_star")),$("#TBemployCity_span").is(":visible")&&($("#TBemployCity_span").hide(),arrBusinessHiddenFields.push("TBemployCity_span")),$("#TBemployCity_star").css("display")=="inline"&&($("#TBemployCity_star").hide(),arrBusinessHiddenFieldsStars.push("TBemployCity_star")),$("#DDemployState_span").is(":visible")&&($("#DDemployState_span").hide(),arrBusinessHiddenFields.push("DDemployState_span")),$("#DDemployState_star").css("display")=="inline"&&($("#DDemployState_star").hide(),arrBusinessHiddenFieldsStars.push("DDemployState_star")),$("#DDemployCountry_span").is(":visible")&&($("#DDemployCountry_span").hide(),arrBusinessHiddenFields.push("DDemployCountry_span")),$("#DDemployCountry_star").css("display")=="inline"&&($("#DDemployCountry_star").hide(),arrBusinessHiddenFieldsStars.push("DDemployCountry_star")),$("#tbemployzip_span").is(":visible")&&($("#tbemployzip_span").hide(),arrBusinessHiddenFields.push("tbemployzip_span")),$("#tbemployzip_star").css("display")=="inline"&&($("#tbemployzip_star").hide(),arrBusinessHiddenFieldsStars.push("tbemployzip_star")));console.log("arrBusinessHiddenFields",arrBusinessHiddenFields)}var SmallFinanceType=$("#hdnSmallFinanceType").val(),creditAppType="I",objInvFilter,onChangeTriggerFrom,arrBusinessHiddenFields,arrBusinessHiddenFieldsStars;$("#cus_firstname").focus();var cus_state="",license_state="",DDadd1_state="",DDadd2_state="",DDemploy_state="",DDemploy2_state="",DDemploy3_state="",cob_state="",cob_license_state="",cob_DDadd1State="",cob_DDadd2State="",cob_DDemployState="",cob_DDemploy2State="",cob_DDemploy3State="",DWFinValidateMsg="",personalInfo="",resInfo="",preResInfo1="",preResInfo2="",empInfo="",preEmpInfo1="",preEmpInfo2="",desireVehInfo="",tradeInInfo="",paymentInfo="",bankInfo="",hiddenItems="",objFieldList=null,objFieldListCoBuyer=null,ESignatureInfo="",previousEmp_setting="",cob_personalInfo=cob_resInfo=cob_preResInfo1=cob_preResInfo2=cob_empInfo=cob_preEmpInfo1=cob_preEmpInfo2=full_cobuyerField=[];personalInfo=["cus_firstname","cus_middlename","cus_lastname","cus_suffix","cus_ssn","cus_bdate","cus_gender","license_number","license_state","license_country","license_expdate","cus_mobilephone","cus_homephone","cus_email"];resInfo=["cus_apartment","ps_number","ps_dir1","ps_street","cus_city","cus_state","cus_country","cus_zipcode","ps_type","DDaddStayYear","DDaddStayMonth","DDaddTypeRes","TBaddMonthPayment","TBaddLandName","tbaddlandtel"];preResInfo1=["TBadd1Address1","TBadd1Address2","TBadd1City","DDad
8d1State","DDadd1Country","tbadd1zip","DDadd1AddLengthYear","DDadd1AddLengthMonth"];preResInfo2=["TBadd2Address1","TBadd2Address2","TBadd2City","DDadd2State","DDadd2Country","tbadd2zip","DDadd2AddLengthYear","DDadd2AddLengthMonth"];empInfo=["AreUEmployed","TBemployName","TBemployAdd1","TBemployCity","DDemployState","DDemployCountry","tbemployzip","EmpInfoOccup","DDemployFreq","TBemployIncome","DDemployJobYear1","DDemployJobMonth1","cus_workphone","EmpInfoSupervisor","DDIsSelfEmployed","DDEmploymentStatus","TBemployAddIncomeSource","DDAdditional_Income","DDemployAddIncomeFreq","TBemployAddIncome","TBemployWorkType","TBemployAdd2"];preEmpInfo1=["Empprev1_H","TBemploy2Name","TBemploy2Add1","TBemploy2City","DDemploy2State","DDemploy2Country","tbemploy2zip","PreEmplo1Occup","tbemp2phone","DDemploy2JobYears","DDemploy2JobMonths","PrevEmplo1Supervisor","DDIsSelfEmployed2","TBemploy2Add2"];preEmpInfo2=["Empprev2_H","TBemploy3Name","TBemploy3Add1","TBemploy3City","DDemploy3State","DDemploy3Country","tbemploy3zip","PreEmplo2Occup","tbemp3phone","DDemploy3JobYear","DDemploy3JobMonth","PrevEmplo2Supervisor","DDIsSelfEmployed3","TBemploy3Add2"];desireVehInfo=["NeworUsed","Veh_Year","Veh_ToYear","Veh_Make","Veh_Model","Veh_Mileage","VisitedWebsite","StockNo","ExtColor_1","ExtColor_2","
8ExtColor_3","IntColor_1","IntColor_2","IntColor_3"];tradeInInfo=["TradeIn_Year","TradeIn_Make","TradeIn_Model","TradeIn_Mileage","TradeIn_Vin","IsVehPaidOff","TradeIn_CurrentPayment","TradeIn_Color","TradeIn_BankFinanced","TradeIn_AmountOwed"];paymentInfo=["TBavailableDownpay","TBmonthlypayment","TBloanamount","TA_AdditonalComments"];bankInfo=["Bank_Name","Account_Type","AutoLoan","Autoloan_Date","Bankruptcy","Bankruptcy_Date"];additionalInfo=["HadCar","OwnVehicle"];ReferralInfo=["DL_Referral"];ESignatureInfo=["TB_ESignature"];cob_personalInfo=["cob_cus_firstname","cob_cus_middlename","cob_cus_lastname","cob_cus_suffix","cob_cus_ssn","cob_cus_bdate","cob_cus_gender","cob_cus_mobilephone","cob_cus_homephone","cob_cus_email","cob_license_number","cob_license_expdate","cob_license_state","cob_license_country"];cob_resInfo=["cob_ps_number","cob_ps_dir1","cob_ps_street","cob_ps_type","cob_cus_apartment","cob_cus_city","cob_cus_state","cob_cus_country","cob_cus_zipcode","cob_DDaddStayYear","cob_DDaddStayMonth","cob_DDaddTypeRes","cob_TBaddMonthPayment","cob_TBaddLandName","cob_tbaddlandtel"];cob_preResInfo1=["cob_TBadd1Address1","cob_TBadd1Address2","cob_TBadd1City","cob_DDadd1State","cob_DDadd1Country","cob_tbadd1zip","cob_DDadd1AddLengthYear","cob_DDadd1AddLengthMonth"];cob_preResInfo2=["cob_TBadd2Address1","cob_TBadd2Address2","cob_TBadd2City","cob_DDadd2State","cob_DDadd2Country","cob_tbadd2zip","cob_DDadd2AddLengthYear","cob_DDadd2AddLengthMonth"];cob_empInfo=["cob_AreUEmployed","cob_TBemployName","cob_TBemployAdd1","cob_TBemployCity","cob_DDemployState","cob_DDemployCountry","cob_tbemployzip","cob_EmpInfoOccup","cob_DDemployFreq","cob_TBemployIncome","cob_DDemployJobYear1","cob_DDemployJobMonth1","cob_cus_workphone","cob_EmpInfoSupervisor","cob_DDIsSelfEmployed","cob_TBemployAddIncomeSource","cob_DDAdditional_Income","cob_DDemployAddIncomeFreq","cob_TBemployAddIncome"];cob_preEmpInfo1=["cob_Empprev1_H","cob_TBemploy2Name","cob_TBemploy2Add1","cob_TBemploy2City","cob_DDemploy2State","cob_DDemploy2Country","cob_tbemploy2zip","cob_PreEmplo1Occup","cob_tbemp2phone","cob_DDemploy2JobYears","cob_DDemploy2JobMonths","cob_PrevEmplo1Supervisor","cob_DDIsSelfEmployed2"];cob_preEmpInfo2=["cob_Empprev2_H","cob_TBemploy3Name","cob_TBemploy3Add1","cob_TBemploy3City","cob_DDemploy3State","cob_DDemploy3Country","cob_tbemploy3zip","cob_PreEmplo2Occup","cob_tbemp3phone","cob_DDemploy3JobYear","cob_DDemploy3JobMonth","cob_PrevEmplo2Supervisor","cob_DDIsSelfEmployed3"];full_cobuyerField=full_cobuyerField.concat(cob_personalInfo,cob_resInfo,cob_preResInfo1,cob_preResInfo2,cob_empInfo,cob_preEmpInfo1,cob_preEmpInfo2);$(window).on("load",function(){$("#DIV_Af_ContentMain").length>0&&FinanceSettingsLoad()});var currentDateTime=new Date,timeStr=currentDateTime.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"}),dateStr=currentDateTime.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),[time,tzAbbr]=timeStr.split(" "),timeAbbr=tzAbbr.includes("GMT")?"":tzAbbr;objInvFilter={};onChangeTriggerFrom="";$(document).ready(function(){$("#VehInt_Make").length>0&&(resetInterestedInSearchValues(),LoadInterestedInMakeModel("DocReady"));$("#DIV_Af_ContentMain_Simple").length>0&&SetSmallFinanceAppFields();DWDealerID==4580&&$("#btnInterestedInSearch").click(function(){$('<div class="dwc-VInterested" style="margin:0 1%;height:5px;"><b style="display: inline;"> *<\/b><div>').insertBefore("#InterestedInContainer")})});arrBusinessHiddenFields=[];arrBusinessHiddenFieldsStars=[];$(document).on("click","#dw-buttonfinance_cob_info",function(){$("#cob_ps_number").val($("#ps_number").val());$("#cob_ps_street").val($("#ps_street").val());$("#cob_ps_type").val($("#ps_type").val());$("#cob_cus_apartment").val($("#cus_apartment").val());$("#cob_cus_city").val($("#cus_city").val());$("#cob_cus_state").val($("#cus_state").val());$("#cob_cus_country").val($("#cus_country").val());$("#cob_cus_zipcode").val($("#cus_zipcode").val());$("#cob_DDaddStayYear").val($("#DDaddStayYear").val());$("#cob_DDaddStayMonth").val($("#DDaddStayMonth").val());$("#cob_DDaddTypeRes").val($("#DDaddTypeRes").val());$("#cob_TD_ResidenceSubType").val($("#TD_ResidenceSubType").val());$("#cob_TBaddMonthPayment").val($("#TBaddMonthPayment").val());$("#cob_TBadd1Address1").val($("#TBadd1Address1").val());$("#cob_TBadd1Address2").val($("#TBadd1Address2").val());$("#cob_TBadd1City").val($("#TBadd1City").val());$("#cob_DDadd1State").val($("#DDadd1State").val());$("#cob_DDadd1Country").val($("#DDadd1Country").val());$("#cob_tbadd1zip").val($("#tbadd1zip").val());$("#cob_DDadd1AddLengthYear").val($("#DDadd1AddLengthYear").val());$("#cob_DDadd1AddLengthMonth").val($("#DDadd1AddLengthMonth").val())});(function(a,b){function d(a){for(var c in a)if(o[a[c]]!==b)return!0;return!1}function c(c,e,d){var f=c;if("object"===typeof e)return c.each(function(){h[this.id]&&h[this.id].destroy();new a.mobiscroll.classes[e.component||"Scroller"](this,e)});"string"===typeof e&&c.each(function(){var a;if((a=h[this.id])&&a[e])if(a=a[e].apply(this,Array.prototype.slice.call(d,1)),a!==b)return f=a,!1});return f}function e(a){if(g.tapped&&!a.tap)return a.stopPropagation(),a.preventDefault(),!1}var g,f=+new Date,h= 9{},j=a.extend,o=document.createElement("modernizr").style,i=d(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]),k=d(["flex","msFlex","WebkitBoxDirection"]),n=function(){var a=["Webkit","Moz","O","ms"],c;for(c in a)if(d([a[c]+"Transform"]))return"-"+a[c].toLowerCase()+"-";return""}(),r=n.replace(/^\-/,"").replace(/\-$/,"").replace("moz","Moz");a.fn.mobiscroll=function(b){j(this,a.mobiscroll.components);return c(this,b,arguments)};g=a.mobiscroll=a.mobiscroll|| 10{version:"2.16.1",util:{prefix:n,jsPrefix:r,has3d:i,hasFlex:k,testTouch:function(c,b){if("touchstart"==c.type)a(b).attr("data-touch","1");else if(a(b).attr("data-touch"))return a(b).removeAttr("data-touch"),!1;return!0},objectToArray:function(a){var c=[],b;for(b in a)c.push(a[b]);return c},arrayToObject:function(a){var c={},b;if(a)for(b=0;b<a.length;b++)c[a[b]]=a[b];return c},isNumeric:function(a){return 0<=a-parseFloat(a)},isString:function(a){return"string"===typeof a},getCoord:function(a,c,b){var e= 11a.originalEvent||a,c=(b?"client":"page")+c;return e.changedTouches?e.changedTouches[0][c]:a[c]},getPosition:function(c,e){var d=window.getComputedStyle?getComputedStyle(c[0]):c[0].style,f,h;i?(a.each(["t","webkitT","MozT","OT","msT"],function(a,c){if(d[c+"ransform"]!==b)return f=d[c+"ransform"],!1}),f=f.split(")")[0].split(", "),h=e?f[13]||f[5]:f[12]||f[4]):h=e?d.top.replace("px",""):d.left.replace("px","");return h},constrain:function(a,c,b){return Math.max(c,Math.min(a,b))},vibrate:function(a){"vibrate"in 12navigator&&navigator.vibrate(a||50)}},tapped:0,autoTheme:"mobiscroll",presets:{scroller:{},numpad:{},listview:{},menustrip:{}},themes:{form:{},frame:{},listview:{},menustrip:{}},i18n:{},instances:h,classes:{},components:{},defaults:{context:"body",mousewheel:!0,vibrate:!0},setDefaults:function(a){j(this.defaults,a)},presetShort:function(a,e,d){this.components[a]=function(f){return c(this,j(f,{component:e,preset:!1===d?b:a}),arguments)}}};a.mobiscroll.classes.Base=function(c,b){var e,d,g,i,k,r,o=a.mobiscroll, 13n=this;n.settings={};
13n._presetLoad=function(){};n._init=function(a){g=n.settings;j(b,a);n._hasDef&&(r=o.defaults);j(g,n._defaults,r,b);if(n._hasTheme){k=g.theme;if("auto"==k||!k)k=o.autoTheme;"default"==k&&(k="mobiscroll");b.theme=k;i=o.themes[n._class][k]}n._hasLang&&(e=o.i18n[g.lang]);n._hasTheme&&n.trigger("onThemeLoad",[e,b]);j(g,i,e,r,b);if(n._hasPreset&&(n._presetLoad(g),d=o.presets[n._class][g.preset]))d=d.call(c,n),j(g,d,b)};n._destroy=function(){n.trigger("onDestroy",[]);delete h[c.id];n= 14null};n.trigger=function(e,f){var h;f.push(n);a.each([r,i,d,b],function(a,b){b&&b[e]&&(h=b[e].apply(c,f))});return h};n.option=function(a,c){var b={};"object"===typeof a?b=a:b[a]=c;n.init(b)};n.getInst=function(){return n};b=b||{};c.id||(c.id="mobiscroll"+ ++f);h[c.id]=n};document.addEventListener&&a.each(["mouseover","mousedown","mouseup","click"],function(a,c){document.addEventListener(c,e,!0)})})(jQuery);(function(a,b,d,c){var e,g,f=a.mobiscroll,h=f.util,j=h.jsPrefix,o=h.has3d,i=h.getCoord,k=h.constrain,n=h.isString,r=/android [1-3]/i.test(navigator.userAgent),h=/(iphone|ipod|ipad).* os 8_/i.test(navigator.userAgent),B=function(){},C=function(a){a.preventDefault()};f.classes.Frame=function(h,q,u){function N(c){H&&H.removeClass("dwb-a");H=a(this);!H.hasClass("dwb-d")&&!H.hasClass("dwb-nhl")&&H.addClass("dwb-a");if("mousedown"===c.type)a(d).on("mouseup",x)}function x(c){H&&(H.removeClass("dwb-a"),H= 15null);"mouseup"===c.type&&a(d).off("mouseup",x)}function l(a){13==a.keyCode?A.select():27==a.keyCode&&A.cancel()}function E(b){var d,f,h,i=L.focusOnClose;A._markupRemove();D.remove();e&&!b&&setTimeout(function(){if(i===c||!0===i){g=!0;d=e[0];h=d.type;f=d.value;try{d.type="button"}catch(b){}e.focus();d.type=h;d.value=f}else i&&a(i).focus()},200);A._isVisible=!1;U("onHide",[])}function K(a){clearTimeout(aa[a.type]);aa[a.type]=setTimeout(function(){var c="scroll"==a.type;(!c||ca)&&A.position(!c)},200)} 16function w(a){a.target.nodeType&&!J[0].contains(a.target)&&J.focus()}function s(c,b){c&&c();a(d.activeElement).is("input,textarea")&&a(d.activeElement).blur();e=b;A.show();setTimeout(function(){g=!1},300)}var I,z,W,D,S,m,J,v,O,p,H,R,U,F,P,Z,G,Q,V,L,ca,T,ha,ia,A=this,ea=a(h),ga=[],aa={};f.classes.Base.call(this,h,q,!0);A.position=function(b){var e,f,h,g,i,j,r,l,pa,o,p=0,n=0;pa={};var q=Math.min(v[0].innerWidth||v.innerWidth(),m.width()),x=v[0].innerHeight||v.innerHeight();if(!(ha===q&&ia===x&&b||V))if((A._isFullScreen|| 17/top|bottom/.test(L.display))&&J.width(q),!1!==U("onPosition",[D,q,x])&&P){f=v.scrollLeft();b=v.scrollTop();g=L.anchor===c?ea:a(L.anchor);A._isLiquid&&"liquid"!==L.layout&&(400>q?D.addClass("dw-liq"):D.removeClass("dw-liq"));!A._isFullScreen&&/modal|bubble/.test(L.display)&&(O.width(""),a(".mbsc-w-p",D).each(function(){e=a(this).outerWidth(!0);p+=e;n=e>n?e:n}),e=p>q?n:p,O.width(e+1).css("white-space",p>q?"":"nowrap"));Z=J.outerWidth();G=J.outerHeight(!0);ca=G<=x&&Z<=q;A.scrollLock=ca;"modal"==L.display? 18(f=Math.max(0,f+(q-Z)/2),h=b+(x-G)/2):"bubble"==L.display?(o=!0,l=a(".dw-arrw-i",D),h=g.offset(),j=Math.abs(z.offset().top-h.top),r=Math.abs(z.offset().left-h.left),i=g.outerWidth(),g=g.outerHeight(),f=k(r-(J.outerWidth(!0)-i)/2,f+3,f+q-Z-3),h=j-G,h<b||j>b+x?(J.removeClass("dw-bubble-top").addClass("dw-bubble-bottom"),h=j+g):J.removeClass("dw-bubble-bottom").addClass("dw-bubble-top"),l=l.outerWidth(),i=k(r+i/2-(f+(Z-l)/2),0,l),a(".dw-arr",D).css({left:i})):"top"==L.display?h=b:"bottom"==L.display&& 19(h=b+x-G);h=0>h?0:h;pa.top=h;pa.left=f;J.css(pa);m.height(0);pa=Math.max(h+G,"body"==L.context?a(d).height():z[0].scrollHeight);m.css({height:pa});if(o&&(h+G>b+x||j>b+x))V=!0,setTimeout(function(){V=false},300),v.scrollTop(Math.min(h+G-x,pa-x));ha=q;ia=x}};A.attachShow=function(a,c){ga.push({readOnly:a.prop("readonly"),el:a});if("inline"!==L.display){if(T&&a.is("input"))a.prop("readonly",!0).on("mousedown.dw",function(a){a.preventDefault()});if(L.showOnFocus)a.on("focus.dw",function(){g||s(c,a)}); 20L.showOnTap&&(a.on("keydown.dw",function(b){if(32==b.keyCode||13==b.keyCode)b.preventDefault(),b.stopPropagation(),s(c,a)}),A.tap(a,function(){s(c,a)}))}};A.select=function(){if(!P||!1!==A.hide(!1,"set"))A._fillValue(),U("onSelect",[A._value])};A.cancel=function(){(!P||!1!==A.hide(!1,"cancel"))&&U("onCancel",[A._value])};A.clear=function(){U("onClear",[D]);P&&!A.live&&A.hide(!1,"clear");A.setVal(null,!0)};A.enable=function(){L.disabled=!1;A._isInput&&ea.prop("disabled",!1)};A.disable=function(){L.disabled= 21!0;A._isInput&&ea.prop("disabled",!0)};A.show=function(e,d){var h;if(!L.disabled&&!A._isVisible){A._readValue();U("onBeforeShow",[]);R=r?!1:L.animate;!1!==R&&("top"==L.display&&(R="slidedown"),"bottom"==L.display&&(R="slideup"));h='<div lang="'+L.lang+'" class="mbsc-'+L.theme+(L.baseTheme?" mbsc-"+L.baseTheme:"")+" dw-"+L.display+" "+(L.cssClass||"")+(A._isLiquid?" dw-liq":"")+(r?" mbsc-old":"")+(F?"":" dw-nobtn")+'"><div class="dw-persp">'+(P?'<div class="dwo"></div>':"")+"<div"+(P?' role="dialog" tabindex="-1"': 22"")+' class="dw'+(L.rtl?" dw-rtl":" dw-ltr")+'">'+("bubble"===L.display?'<div class="dw-arrw"><div class="dw-arrw-i"><div class="dw-arr"></div></div></div>':"")+'<div class="dwwr"><div aria-live="assertive" class="dw-aria dw-hidden"></div>'+(L.headerText?'<div class="dwv">'+(n(L.headerText)?L.headerText:"")+"</div>":"")+'<div class="dwcc">';h+=A._generateContent();h+="</div>";F&&(h+='<div class="dwbc">',a.each(p,function(a,b){b=n(b)?A.buttons[b]:b;if(b.handler==="set")b.parentClass="dwb-s";if(b.handler=== 23"cancel")b.parentClass="dwb-c";h=h+("<div"+(L.btnWidth?' style="width:'+100/p.length+'%"':"")+' class="dwbw '+(b.parentClass||"")+'"><div tabindex="0" role="button" class="dwb'+a+" dwb-e "+(b.cssClass===c?L.btnClass:b.cssClass)+(b.icon?" mbsc-ic mbsc-ic-"+b.icon:"")+'">'+(b.text||"")+"</div></div>")}),h+="</div>");h+="</div></div></div></div>";D=a(h);m=a(".dw-persp",D);S=a(".dwo",D);O=a(".dwwr",D);W=a(".dwv",D);J=a(".dw",D);I=a(".dw-aria",D);A._markup=D;A._header=W;A._isVisible=!0;Q="orientationchange resize"; 24A._markupReady(D);U("onMarkupReady",[D]);if(P){a(b).on("keydown",l);if(L.scrollLock)D.on("touchmove mousewheel wheel",function(a){ca&&a.preventDefault()});"Moz"!==j&&a("input,select,button",z).each(function(){this.disabled||a(this).addClass("dwtd").prop("disabled",true)});f.activeInstance&&f.activeInstance.hide();Q+=" scroll";f.activeInstance=A;D.appendTo(z);v.on("focusin",w);o&&R&&!e&&D.addClass("dw-in dw-trans").on("webkitAnimationEnd animationend",function(){D.off("webkitAnimationEnd animationend").removeClass("dw-in dw-trans").find(".dw").removeClass("dw-"+ 25R);d||J.focus();A.ariaMessage(L.ariaMessage)}).find(".dw").addClass("dw-"+R)}else ea.is("div")&&!A._hasContent?ea.html(D):D.insertAfter(ea);A._markupInserted(D);U("onMarkupInserted",[D]);A.position();v.on(Q,K);D.on("selectstart mousedown",C).on("click",".dwb-e",C).on("keydown",".dwb-e",function(c){if(c.keyCode==32){c.preventDefault();c.stopPropagation();a(this).click()}}).on("keydown",function(c){if(c.keyCode==32)c.preventDefault();else if(c.keyCode==9&&P){var b=D.find('[tabindex="0"]').filter(function(){return this.offsetWidth> 260||this.offsetHeight>0}),e=b.index(a(":focus",D)),d=b.length-1,f=0;if(c.shiftKey){d=0;f=-1}if(e===d){b.eq(f).focus();c.preventDefault()}}});a("input,select,textarea",D).on("selectstart mousedown",function(a){a.stopPropagation()}).on("keydown",function(a){a.keyCode==32&&a.stopPropagation()});a.each(p,function(c,b){A.tap(a(".dwb"+c,D),function(a){b=n(b)?A.buttons[b]:b;(n(b.handler)?A.handlers[b.handler]:b.handler).call(this,a,A)},true)});L.closeOnOverlay&&A.tap(S,function(){A.cancel()});P&&!R&&(d||
27J.focus(),A.ariaMessage(L.ariaMessage));D.on("touchstart mousedown",".dwb-e",N).on("touchend",".dwb-e",x);A._attachEvents(D);U("onShow",[D,A._tempValue])}};A.hide=function(c,e,d){if(!A._isVisible||!d&&!A._isValid&&"set"==e||!d&&!1===U("onClose",[A._tempValue,e]))return!1;if(D){"Moz"!==j&&a(".dwtd",z).each(function(){a(this).prop("disabled",!1).removeClass("dwtd")});if(o&&P&&R&&!c&&!D.hasClass("dw-trans"))D.addClass("dw-out dw-trans").find(".dw").addClass("dw-"+R).on("webkitAnimationEnd animationend", 28function(){E(c)});else E(c);v.off(Q,K).off("focusin",w)}P&&(a(b).off("keydown",l),delete f.activeInstance)};A.ariaMessage=function(a){I.html("");setTimeout(function(){I.html(a)},100)};A.isVisible=function(){return A._isVisible};A.setVal=B;A._generateContent=B;A._attachEvents=B;A._readValue=B;A._fillValue=B;A._markupReady=B;A._markupInserted=B;A._markupRemove=B;A._processSettings=B;A._presetLoad=function(a){a.buttons=a.buttons||("inline"!==a.display?["set","cancel"]:[]);a.headerText=a.headerText=== 29c?"inline"!==a.display?"{value}":!1:a.headerText};A.tap=function(a,c,b){var e,d,h;if(L.tap)a.on("touchstart.dw",function(a){b&&a.preventDefault();e=i(a,"X");d=i(a,"Y");h=!1}).on("touchmove.dw",function(a){if(!h&&20<Math.abs(i(a,"X")-e)||20<Math.abs(i(a,"Y")-d))h=!0}).on("touchend.dw",function(a){h||(a.preventDefault(),c.call(this,a));f.tapped++;setTimeout(function(){f.tapped--},500)});a.on("click.dw",function(a){a.preventDefault();c.call(this,a)})};A.destroy=function(){A.hide(!0,!1,!0);a.each(ga, 30function(a,c){c.el.off(".dw").prop("readonly",c.readOnly)});A._destroy()};A.init=function(c){A._init(c);A._isLiquid="liquid"===(L.layout||(/top|bottom/.test(L.display)?"liquid":""));A._processSettings();ea.off(".dw");p=L.buttons||[];P="inline"!==L.display;T=L.showOnFocus||L.showOnTap;v=a("body"==L.context?b:L.context);z=a(L.context);A.context=v;A.live=!0;a.each(p,function(a,c){if("ok"==c||"set"==c||"set"==c.handler)return A.live=!1});A.buttons.set={text:L.setText,handler:"set"};A.buttons.cancel={text:A.live? 31L.closeText:L.cancelText,handler:"cancel"};A.buttons.clear={text:L.clearText,handler:"clear"};A._isInput=ea.is("input");F=0<p.length;A._isVisible&&A.hide(!0,!1,!0);U("onInit",[]);P?(A._readValue(),A._hasContent||A.attachShow(ea)):A.show();ea.on("change.dw",function(){A._preventChange||A.setVal(ea.val(),true,false);A._preventChange=false})};A.buttons={};A.handlers={set:A.select,cancel:A.cancel,clear:A.clear};A._value=null;A._isValid=!0;A._isVisible=!1;L=A.settings;U=A.trigger;u||A.init(q)};f.classes.Frame.prototype._defaults= 32{lang:"en",setText:"Set",selectedText:"Selected",closeText:"Close",cancelText:"Cancel",clearText:"Clear",disabled:!1,closeOnOverlay:!0,showOnFocus:!1,showOnTap:!0,display:"modal",scrollLock:!0,tap:!0,btnClass:"dwb",btnWidth:!0,focusOnClose:!h};f.themes.frame.mobiscroll={rows:5,showLabel:!1,headerText:!1,btnWidth:!1,selectedLineHeight:!0,selectedLineBorder:1,dateOrder:"MMddyy",weekDays:"min",checkIcon:"ion-ios7-checkmark-empty",btnPlusClass:"mbsc-ic mbsc-ic-arrow-down5",btnMinusClass:"mbsc-ic mbsc-ic-arrow-up5", 33btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left5",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right5"};a(b).on("focus",function(){e&&(g=!0)})})(jQuery,window,document);(function(a){var a=a.mobiscroll.themes.frame,b={dateOrder:"Mddyy",rows:5,minWidth:76,height:36,showLabel:!1,selectedLineHeight:!0,selectedLineBorder:2,useShortLabels:!0,icon:{filled:"star3",empty:"star"},btnPlusClass:"mbsc-ic mbsc-ic-arrow-down6",btnMinusClass:"mbsc-ic mbsc-ic-arrow-up6",onThemeLoad:function(a,c){c.theme&&(c.theme=c.theme.replace("android-ics","android-holo"))},onMarkupReady:function(a){a.addClass("mbsc-android-holo")}};a["android-holo"]=b;a["android-holo-light"]=b;a["android-ics"]= 34b;a["android-ics light"]=b;a["android-holo light"]=b})(jQuery);(function(a){var b=a.mobiscroll.themes.frame,d={minWidth:76,height:76,dateOrder:"mmMMddDDyy",headerText:!1,showLabel:!1,deleteIcon:"backspace4",icon:{filled:"star3",empty:"star"},btnWidth:!1,btnStartClass:"mbsc-ic mbsc-ic-play3",btnStopClass:"mbsc-ic mbsc-ic-pause2",btnResetClass:"mbsc-ic mbsc-ic-stop2",btnLapClass:"mbsc-ic mbsc-ic-loop2",btnHideClass:"mbsc-ic mbsc-ic-close",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left2",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right2",btnPlusClass:"mbsc-ic mbsc-ic-plus", 35btnMinusClass:"mbsc-ic mbsc-ic-minus",onMarkupInserted:function(c,b){var d,f,h,j=b.settings;if("clickpick"!=j.mode)a(".dwwl",c).on("touchstart mousedown wheel mousewheel",function(b){if(!("mousedown"===b.type&&f||(a.isArray(j.readonly)?j.readonly[a(".dwwl",c).index(this)]:j.readonly)))f="touchstart"===b.type,d=!0,h=a(this).hasClass("wpa"),a(".dwwl",c).removeClass("wpa"),a(".dw-sel",this).removeClass("dw-sel"),a(this).addClass("wpa")}).on("touchmove mousemove",function(){d=!1}).on("touchend mouseup", 36function(c){d&&h&&a(c.target).closest(".dw-li").hasClass("dw-sel")&&a(this).removeClass("wpa");"mouseup"===c.type&&(f=!1);d=!1})},onThemeLoad:function(a,b){if(a&&a.dateOrder&&!b.dateOrder){var d=a.dateOrder,d=d.match(/mm/i)?d.replace(/mmMM|mm|MM/,"mmMM"):d.replace(/mM|m|M/,"mM"),d=d.match(/dd/i)?d.replace(/ddDD|dd|DD/,"ddDD"):d.replace(/dD|d|D/,"dD");b.dateOrder=d}},onInit:function(a){a=a.buttons;a.set.icon="checkmark";a.cancel.icon="close";a.clear.icon="close";a.ok&&(a.ok.icon="checkmark");a.close&& 37(a.close.icon="close");a.now&&(a.now.icon="loop2")}};b.wp=d;b["wp-light"]=d;b["wp light"]=d})(jQuery);(function(a){var b=a.mobiscroll.themes.frame,d={minWidth:64,height:60,btnStartClass:"mbsc-ic mbsc-ic-play3",btnStopClass:"mbsc-ic mbsc-ic-pause2",btnResetClass:"mbsc-ic mbsc-ic-stop2",btnLapClass:"mbsc-ic mbsc-ic-loop2",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left5",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right5",btnPlusClass:"mbsc-ic mbsc-ic-arrow-down5",btnMinusClass:"mbsc-ic mbsc-ic-arrow-up5",onMarkupReady:function(c,b){var d=b.settings,f=d.height,d=d.rows;c.addClass("mbsc-sense");a(".dww",c).height(d* 38f-40);a(".dw-ul",c).css("margin-top",d/2*f-f/2-20+"px");a(".dwwms .dw-ul",c).css("margin-top","-20px");a(".dwwb",c).css({height:f-20+"px",lineHeight:f-20+"px"})},onThemeLoad:function(a,b){b.theme&&(b.theme=b.theme.replace("sense5","sense"))}};b.sense=d;b["sense-dark"]=d;b.sense5=d;b["sense5-dark"]=d})(jQuery);(function(a){a.mobiscroll.themes.frame.material={showLabel:!1,headerText:!1,btnWidth:!1,selectedLineHeight:!0,selectedLineBorder:1,dateOrder:"MMddyy",weekDays:"min",deleteIcon:"material-backspace",icon:{filled:"material-star",empty:"material-star-outline"},checkIcon:"material-check",btnPlusClass:"mbsc-ic mbsc-ic-material-keyboard-arrow-down",btnMinusClass:"mbsc-ic mbsc-ic-material-keyboard-arrow-up",btnCalPrevClass:"mbsc-ic mbsc-ic-material-keyboard-arrow-left",btnCalNextClass:"mbsc-ic mbsc-ic-material-keyboard-arrow-right", 39onMarkupReady:function(b){a.mobiscroll.themes.material.initRipple(b,".dwb-e","dwb-d","dwb-nhl")},onEventBubbleShow:function(b,d){var c=d.hasClass("dw-cal-events-b"),e=a(".dw-cal-event-color",d).eq(c?0:-1).css("background-color");a(".dw-cal-events-arr",d).css("border-color",c?"transparent transparent "+e+" transparent":e+"transparent transparent transparent")}}})(jQuery);(function(a){a.mobiscroll.themes.frame["ios-classic"]={display:"bottom",dateOrder:"MMdyy",rows:5,height:30,minWidth:60,headerText:!1,showLabel:!1,btnWidth:!1,selectedLineHeight:!0,selectedLineBorder:2,useShortLabels:!0}})(jQuery);(function(a){a.mobiscroll.themes.frame.android={dateOrder:"Mddyy",mode:"clickpick",height:50,showLabel:!1,btnStartClass:"mbsc-ic mbsc-ic-play3",btnStopClass:"mbsc-ic mbsc-ic-pause2",btnResetClass:"mbsc-ic mbsc-ic-stop2",btnLapClass:"mbsc-ic mbsc-ic-loop2"}})(jQuery);(function(a){a.mobiscroll.themes.frame["sense-ui"]={btnStartClass:"mbsc-ic mbsc-ic-play3",btnStopClass:"mbsc-ic mbsc-ic-pause2",btnResetClass:"mbsc-ic mbsc-ic-stop2",btnLapClass:"mbsc-ic mbsc-ic-loop2"}})(jQuery);(function(a){var a=a.mobiscroll.themes.frame,b={display:"bottom",dateOrder:"MMdyy",rows:5,height:34,minWidth:55,headerText:!1,showLabel:!1,btnWidth:!1,selectedLineHeight:!0,selectedLineBorder:1,useShortLabels:!0,deleteIcon:"backspace3",checkIcon:"ion-ios7-checkmark-empty",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left5",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right5",btnPlusClass:"mbsc-ic mbsc-ic-arrow-down5",btnMinusClass:"mbsc-ic mbsc-ic-arrow-up5",onThemeLoad:function(a,b){b.theme&&(b.theme=b.theme.replace("ios7", 40"ios"))}};a.ios=b;a.ios7=b})(jQuery);(function(a){a.mobiscroll.themes.frame.bootstrap={disabledClass:"disabled",activeClass:"btn-primary",activeTabClass:"active",btnCalPrevClass:"",btnCalNextClass:"",selectedLineHeight:!0,onMarkupInserted:function(b){a(".dw",b).removeClass("dwbg").addClass("popover");a(".dwwr",b).addClass("popover-content");a(".dwv",b).addClass("popover-title");a(".dw-arr",b).addClass("arrow");a(".dwb, .dwwb",b).addClass("btn btn-default");a(".dwb-s .dwb",b).removeClass("btn-default").addClass("btn btn-primary");a(".dw-cal-next .dw-cal-btn-txt", 41b).prepend('<i class="icon icon-chevron-right glyphicon glyphicon-chevron-right"></i>');a(".dw-cal-prev .dw-cal-btn-txt",b).prepend('<i class="icon icon-chevron-left glyphicon glyphicon-chevron-left"></i>');a(".dw-cal-tabs ul",b).addClass("nav nav-tabs");a(".dw-cal-sc-c",b).addClass("popover");a(".dw-week-nrs-c",b).addClass("popover");a(".dw-cal-events",b).addClass("popover");a(".dw-cal-events-arr",b).addClass("arrow");a(".dw-dr",b).addClass("btn btn-sm btn-small btn-default");a(".mbsc-np-btn",b).addClass("btn btn-default")}, 42onPosition:function(b){setTimeout(function(){a(".dw-bubble-top",b).removeClass("bottom").addClass("top");a(".dw-bubble-bottom",b).removeClass("top").addClass("bottom")},10)},onEventBubbleShow:function(b,d){a(".dw-cal-event-list",d).addClass("list-group");a(".dw-cal-event",d).addClass("list-group-item");setTimeout(function(){d.hasClass("dw-cal-events-b")?d.removeClass("top").addClass("bottom"):d.removeClass("bottom").addClass("top")},10)}}})(jQuery);(function(a,b,d,c){var e,g=a.extend,f=a.mobiscroll,h=f.classes,j=f.util,o=j.prefix,i=j.jsPrefix,k=j.has3d,n=j.getCoord,r=j.testTouch,B=j.vibrate,C=1,t=function(){},q=b.requestAnimationFrame||function(a){a()},u=b.cancelAnimationFrame||t,N="webkitAnimationEnd animationend",x="transparent";h.ListView=function(l,E){function K(){Lb=Mb=!1;gc=ra=0;hc=new Date;bb=ja.width();Eb=ha(ja);ta=Eb.index(X);Ea=X.outerHeight();Ma=X[0].offsetTop;Ca=vb[X.attr("data-type")||"defaults"];Fb=Ca.stages}function w(b){"touchstart"=== 43b.type&&(Nb=!0,clearTimeout(ic));if(r(b,this)&&!na&&!ib&&!e&&!Ob&&(pa=na=!0,Pb=n(b,"X"),Qb=n(b,"Y"),Ga=la=0,X=a(this),K(),Yb=ba.onItemTap||Ca.tap||X.hasClass("mbsc-lv-parent")||X.hasClass("mbsc-lv-back"),Na.offset(),qb=X.offset().top,Yb&&(ka=setTimeout(function(){X.addClass("mbsc-lv-item-active");Aa("onItemActivate",[X,b])},120)),Y.sortable&&!X.hasClass("mbsc-lv-back")&&((Y.sortable.group||(Zb=X.nextUntil(".mbsc-lv-gr-title").filter(".mbsc-lv-item"),$b=X.prevUntil(".mbsc-lv-gr-title").filter(".mbsc-lv-item")), 44rb=(!Y.sortable.group?$b.length?$b.eq(-1):X:ja.children("li").eq(0))[0].offsetTop-Ma,jb=(!Y.sortable.group?Zb.length?Zb.eq(-1):X:ja.children("li").eq(-1))[0].offsetTop-Ma,Y.sortable.handle)?a(b.target).hasClass("mbsc-lv-handle")&&(clearTimeout(ka),"Moz"===i?(b.preventDefault(),S()):Rb=setTimeout(function(){S()},100)):Rb=setTimeout(function(){if(ba.fillAnimation){xa.appendTo(X);xa[0].style[i+"Animation"]="mbsc-lv-fill "+(ba.sortDelay-100)+"ms linear"}clearTimeout(cb);clearTimeout(ka);pa=false;Rb=setTimeout(function(){xa[0].style[i+ 45"Animation"]="";S()},ba.sortDelay-80)},80)),"mousedown"==b.type))a(d).on("mousemove",s).on("mouseup",I)}function s(a){var b=!1,c=!0;if(na)if(sb=n(a,"X"),Gb=n(a,"Y"),la=sb-Pb,Ga=Gb-Qb,clearTimeout(cb),!Xa&&!kb&&!wb&&!X.hasClass("mbsc-lv-back")&&(10<Math.abs(Ga)?(wb=!0,X.trigger("mousemove"==a.type?"mouseup":"touchend"),clearTimeout(ka)):7<Math.abs(la)?z():"touchmove"===a.type&&(cb=setTimeout(function(){X.trigger("touchend")},300))),kb)a.preventDefault(),ra=100*(la/bb),W();else if(Xa){a.preventDefault(); 46var d,e=Ia.scrollTop(),a=Math.max(rb,Math.min(Ga+xb,jb)),f=Ua?qb-ac+e-xb:qb;Hb+e<f+a+Ea?(Ia.scrollTop(f+a-Hb+Ea),d=!0):f+a<e&&(Ia.scrollTop(f+a),d=!0);d&&(d=Ua?Ia.scrollTop()-e:0,xb+=d);if(lb&&(Y.sortable.multiLevel&&ua.hasClass("mbsc-lv-parent")?Ma+Ea/4
46+a>lb?b=!0:Ma+Ea-Ea/4+a>lb&&(Ja=ua.addClass("mbsc-lv-item-hl"),c=!1):Ma+Ea/2+a>lb&&(ua.hasClass("mbsc-lv-back")?Y.sortable.multiLevel&&(oa=ua.addClass("mbsc-lv-item-hl"),c=!1):b=!0),b))db.insertAfter(ua),Oa=ua,ua=A(ua,"next"),mb=lb,lb=ua.length&&ua[0].offsetTop, 47Ba++;if(!b&&mb&&(Y.sortable.multiLevel&&Oa.hasClass("mbsc-lv-parent")?Ma+Ea-Ea/4+a<mb?b=!0:Ma+Ea/4+a<mb&&(Ja=Oa.addClass("mbsc-lv-item-hl"),c=!1):Ma+Ea/2+a<mb&&(Oa.hasClass("mbsc-lv-back")?Y.sortable.multiLevel&&(oa=Oa.addClass("mbsc-lv-item-hl"),c=!1):b=!0),b))db.insertBefore(Oa),ua=Oa,Oa=A(Oa,"prev"),lb=mb,mb=Oa.length&&Oa[0].offsetTop+Oa.outerHeight(),Ba--;if(c&&(Ja&&(Ja.removeClass("mbsc-lv-item-hl"),Ja=!1),oa))oa.removeClass("mbsc-lv-item-hl"),oa=!1;b&&Aa("onSortChange",[X,Ba]);F(X,a);Aa("onSort", 48[X,Ba])}else(5<Math.abs(la)||5<Math.abs(Ga))&&P()}function I(b){var c,e;if(na){na=!1;P();"mouseup"==b.type&&a(d).off("mousemove",s).off("mouseup",I);wb||(ic=setTimeout(function(){Nb=!1},300));if(kb||wb||Xa)Lb=!0;kb?D():Xa?(c=ja,Ja?(V(X.detach()),b=eb[Ja.attr("data-ref")],Ba=ha(b.child).length,Ja.removeClass("mbsc-lv-item-hl"),ba.navigateOnDrop?ma(Ja,function(){Y.add(null,X,null,null,Ja,!0);aa(X);m(X,ta,c,!0)}):(Y.add(null,X,null,null,Ja,!0),m(X,ta,c,!0))):oa?(V(X.detach()),b=eb[oa.attr("data-back")], 49Ba=ha(b.parent).index(b.item)+1,oa.removeClass("mbsc-lv-item-hl"),ba.navigateOnDrop?ma(oa,function(){Y.add(null,X,Ba,null,ja,!0);aa(X);m(X,ta,c,!0)}):(Y.add(null,X,Ba,null,b.parent,!0),m(X,ta,c,!0))):(b=db[0].offsetTop-Ma,F(X,b,6*Math.abs(b-Math.max(rb,Math.min(Ga+xb,jb))),function(){V(X);X.insertBefore(db);m(X,ta,c,Ba!==ta)})),Xa=!1):!wb&&5>Math.abs(la)&&5>Math.abs(Ga)&&("touchend"===b.type&&(b.preventDefault(),f.tapped++,setTimeout(function(){f.tapped--},500)),Ca.tap&&(e=Ca.tap.call(Qa,X,ta,b,Y)), 50Yb&&(X.addClass("mbsc-lv-item-active"),Aa("onItemActivate",[X,b])),e=Aa("onItemTap",[X,ta,b]),!1!==e&&ma(X));clearTimeout(ka);setTimeout(function(){X.removeClass("mbsc-lv-item-active");Aa("onItemDeactivate",[X])},100);wb=!1;Ka=null}}function z(){if(kb=L(Ca.swipe,[X,ta,0<la?"right":"left",Y]))P(),clearTimeout(ka),Ca.actions?(za=ga(Ca),Pa.html(Ca.icons).show().children().css("width",za+"%"),Pa.find(".mbsc-lv-multi-ic-right").css("margin-left",100-za+"%"),Fa.hide(),a(".mbsc-lv-ic-m",Da).removeClass("mbsc-lv-ic-disabled"), 51a(Ca.leftMenu).each(v),a(Ca.rightMenu).each(v)):(Fa.show(),Pa.hide(),Ra=Ca.start+(0<la?0:1),tb=Fb[Ra-1],ub=Fb[Ra]),X.addClass("mbsc-lv-item-swiping").removeClass("mbsc-lv-item-active"),Sb.css("line-height",Ea+"px"),Da.css({top:Ma,height:Ea,backgroundColor:(0<la?Ca.right:Ca.left).color||x}).addClass("mbsc-lv-stage-c-v").appendTo(ja),ba.iconSlide&&X.append(Fa),Aa("onSlideStart",[X,ta])}function W(){var a=!1;if(!Tb){if(Ca.actions)Da.attr("class","mbsc-lv-stage-c-v mbsc-lv-stage-c mbsc-lv-"+(0>ra?"right": 52"left"));else if(tb&&ra<=tb.percent?(Ra--,ub=tb,tb=Fb[Ra],a=!0):ub&&ra>=ub.percent&&(Ra++,tb=ub,ub=Fb[Ra],a=!0),a)if(Ka=0<ra?tb:ub)Z(Ka,ba.iconSlide),Aa("onStageChange",[X,ta,Ka]);yb||(Tb=!0,jc=q(H))}}function D(b){var c,f,h=!1;u(jc);Tb=!1;yb||H();if(Ca.actions)10<Math.abs(ra)&&za&&(U(X,0>ra?-za:za,200),e=h=!0,La=X,hb=ta,a(d).on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.preventDefault();R(X,!0,b)}));else if(ba.quickSwipe&&!yb&&(f=new Date-hc,c=300>f&&-50>la,f=300>f&&50<la,c?(Mb= 53!0,Ka=Ca.left,Z(Ka,ba.iconSlide)):f&&(Mb=!0,Ka=Ca.right,Z(Ka,ba.iconSlide))),Ka&&Ka.action)Sa=L(Ka.disabled,[X,ta,Y]),Sa||(h=!0,(e=yb||L(Ka.confirm,[X,ta,Y]))?(U(X,100*(0>ra?-1:1)*Fa.outerWidth(!0)/bb,200,!0),p(Ka,X,ta,!1,b)):O(Ka,X,ta,b));h||R(X,!0,b);kb=!1}function S(){Xa=!0;oa=Ja=!1;xb=0;Ba=ta;ba.vibrate&&B();ua=A(X,"next");lb=ua.length&&ua[0].offsetTop;Oa=A(X,"prev");mb=Oa.length&&Oa[0].offsetTop+Oa.outerHeight();db.height(Ea).insertAfter(X);X.css({top:Ma}).addClass("mbsc-lv-item-dragging").removeClass("mbsc-lv-item-active").appendTo(Va); 54Aa("onSortStart",[X,Ba])}function m(a,b,c,d){a.removeClass("mbsc-lv-item-dragging");db.remove();Aa("onSortStop",[a,Ba]);ba.vibrate&&B();d&&(Y.addUndoAction(function(d){Y.move(a,b,null,d,c,!0)},!0),Aa("onSortUpdate",[a,Ba]))}function J(){Nb||(clearTimeout(Ib),e&&a(d).trigger("touchstart"),zb&&(Y.close(Ha,Ya),zb=!1,Ha=null))}function v(b,c){L(c.disabled,[X,ta,Y])&&a(".mbsc-ic-"+c.icon,Da).addClass("mbsc-lv-ic-disabled")}function O(b,c,d,e){var f,h={icon:"undo2",text:ba.undoText,color:"#b1b1b1",action:function(){Y.undo()}}; 55b.undo&&(Y.startActionTrack(),a.isFunction(b.undo)&&Y.addUndoAction(function(){b.undo.call(Qa,c,Y,d)}),Ub=c.attr("data-ref"));f=b.action.call(Qa,c,Y,d);b.undo?(Y.endActionTrack(),!1!==f&&U(c,0>+c.attr("data-pos")?-100:100,200),db.height(Ea).insertAfter(c),c.css("top",Ma).addClass("mbsc-lv-item-undo"),Pa.hide(),Fa.show(),Da.append(Fa),Z(h),p(h,c,d,!0,e)):R(c,f,e)}function p(b,c,h,g,i){var k,j;e=!0;a(d).off(".mbsc-lv-conf").on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.preventDefault(); 56g&&Q(c);R(c,!0,i)});if(!Za)Fa.off(".mbsc-lv-conf").on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.stopPropagation();k=n(a,"X");j=n(a,"Y")}).on("touchend.mbsc-lv-conf mouseup.mbsc-lv-conf",function(a){a.preventDefault();
56"touchend"===a.type&&(f.tapped++,setTimeout(function(){f.tapped--},500));20>Math.abs(n(a,"X")-k)&&20>Math.abs(n(a,"Y")-j)&&(O(b,c,h,i),g&&(Vb=null,Q(c)))})}function H(){U(X,gc+100*la/bb);Tb=!1}function R(b,c,f){a(d).off(".mbsc-lv-conf");Fa.off(".mbsc-lv-conf");!1!== 57c?U(b,0,"0"!==b.attr("data-pos")?200:0,!1,function(){G(b,f);V(b)}):G(b,f);e=!1}function U(a,b,c,d,e){b=Math.max("right"==kb?0:-100,Math.min(b,"left"==kb?0:100));$a=a[0].style;a.attr("data-pos",b);k?($a[i+"Transform"]="translate3d("+(d?bb*b/100+"px":b+"%")+",0,0)",$a[i+"Transition"]=o+"transform "+(c||0)+"ms"):$a.left=b+"%";e&&(ib++,setTimeout(function(){e();ib--},c));ra=b}function F(a,b,c,d){b=Math.max(rb,Math.min(b,jb));$a=a[0].style;k?($a[i+"Transform"]="translate3d(0,"+b+"px,0)",$a[i+"Transition"]= 58o+"transform "+(c||0)+"ms ease-out"):$a.top=Ma+b+"px";d&&(ib++,setTimeout(function(){d();ib--},c))}function P(){clearTimeout(Rb);!pa&&Y.sortable&&ba.fillAnimation&&(pa=!0,xa.remove())}function Z(a,b){var c=L(a.text,[X,ta,Y])||"";L(a.disabled,[X,ta,Y])?Da.addClass("mbsc-lv-ic-disabled"):Da.removeClass("mbsc-lv-ic-disabled");Da.css("background-color",a.color||(0===a.percent?(0<ra?Ca.right:Ca.left).color||x:x));Fa.attr("class","mbsc-lv-ic-c mbsc-lv-ic-"+(b?"move-":"")+(0>ra?"right":"left"));qa.attr("class", 59" mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-"+(a.icon||"none"));Sb.attr("class","mbsc-lv-ic-text"+(a.icon?"":" mbsc-lv-ic-text-only")+(c?"":" mbsc-lv-ic-only")).html(c||" ");ba.animateIcons&&(Mb?qa.addClass("mbsc-lv-ic-v"):setTimeout(function(){qa.addClass("mbsc-lv-ic-a")},10))}function G(a,b){na||(qa.attr("class","mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none"),Da.attr("style","").removeClass("mbsc-lv-stage-c-v"),Sb.html(""));Da.removeClass("mbsc-lv-left mbsc-lv-right");a&&(Aa("onSlideEnd",[a, 60ta]),b&&b())}function Q(a){a.css("top","").removeClass("mbsc-lv-item-undo");Vb?Y.animate(db,"collapse",function(){db.remove()}):db.remove();G();Vb=Ub=null}function V(a){$a=a[0].style;$a[i+"Transform"]="";$a[i+"Transition"]="";$a.top="";a.removeClass("mbsc-lv-item-swiping")}function L(b,c){return a.isFunction(b)?b.apply(this,c):b}function ca(b){var c;b.attr("data-ref")||(c=C++,b.attr("data-ref",c),eb[c]={item:b,child:b.children("ul,ol"),parent:b.parent(),ref:b.parent()[0]===Qa?null:b.parent().parent().attr("data-ref")}); 61b.addClass("mbsc-lv-item");Y.sortable.handle&&"list-divider"!=b.attr("data-role")&&!b.children(".mbsc-lv-handle-c").length&&b.append(nb);if(ba.enhance&&!b.hasClass("mbsc-lv-item-enhanced")){c=b.attr("data-icon");var d=b.find("img").eq(0).addClass("mbsc-lv-img");d.is(":first-child")?b.addClass("mbsc-lv-img-"+(ba.rtl?"right":"left")):d.length&&b.addClass("mbsc-lv-img-"+(ba.rtl?"left":"right"));b.addClass("mbsc-lv-item-enhanced").children().each(function(b,c){c=a(c);c.is("p, h1, h2, h3, h4, h5, h6")&& 62c.addClass("mbsc-lv-txt")});c&&b.addClass("mbsc-lv-item-ic-"+(b.attr("data-icon-align")||(ba.rtl?"right":"left"))).append('<div class="mbsc-lv-item-ic mbsc-ic mbsc-ic-'+c+'"></div')}}function T(b){a("li",b).not(".mbsc-lv-item").each(function(){ca(a(this))});a('li[data-role="list-divider"]',b).removeClass("mbsc-lv-item").addClass("mbsc-lv-gr-title");a("ul,ol",b).not(".mbsc-lv").addClass("mbsc-lv").prepend(Ta).parent().addClass("mbsc-lv-parent").prepend(ab);a(".mbsc-lv-back",b).each(function(){a(this).attr("data-back", 63a(this).parent().parent().attr("data-ref"))})}function ha(a){return a.children("li").not(".mbsc-lv-back").not(".mbsc-lv-removed").not(".mbsc-lv-ph")}function ia(b){"object"!==typeof b&&(b=a('li[data-id="'+b+'"]',ya));return b}function A(a,b){for(a=a[b]();a.length&&(!a.hasClass("mbsc-lv-item")||a.hasClass("mbsc-lv-ph")||a.hasClass("mbsc-lv-item-dragging"));){if(!Y.sortable.group&&a.hasClass("mbsc-lv-gr-title"))return!1;a=a[b]()}return a}function ea(a){return j.isNumeric(a)?a+"":0}function ga(a){return+(0> 64la?ea((a.actionsWidth||0).right)||ea(a.actionsWidth)||ea(ba.actionsWidth.right)||ea(ba.actionsWidth):ea((a.actionsWidth||0).left)||ea(a.actionsWidth)||ea(ba.actionsWidth.left)||ea(ba.actionsWidth))}function aa(a){var b;a&&(a=a.offset().top,b=Ua?ac:Ia.scrollTop(),a<b?Ia.scrollTop(a-(Ua?Ia.children().offset().top:0)):a>b+Hb&&Ia.scrollTop(a-Hb/2))}function da(a,b,c,d){var e=b.parent(),f=b.prev(),d=d||t;f[0]===Fa[0]&&(f=Fa.prev());ja[0]!==b[0]?(Aa("onNavStart",[Ab,a,b]),bc.prepend(b.addClass("mbsc-lv-v mbsc-lv-sl-new")), 65aa(ya),fa(bc,"mbsc-lv-sl-"+a,function(){ja.removeClass("mbsc-lv-sl-curr");b.removeClass("mbsc-lv-sl-new").addClass("mbsc-lv-sl-curr");ob&&ob.length?ja.removeClass("mbsc-lv-v").insertAfter(ob):pb.append(ja.removeClass("mbsc-lv-v"));ob=f;pb=e;ja=b;aa(c);d.call(Qa,c);Aa("onNavEnd",[Ab,a,b])})):(aa(c),d.call(Qa,c))}function ma(a,b){ib||(a.hasClass("mbsc-lv-parent")?(Ab++,da("r",eb[a.attr("data-ref")].child,null,b)):a.hasClass("mbsc-lv-back")&&(Ab--,da("l",eb[a.attr("data-back")].parent,eb[a.attr("data-back")].item, 66b)))}function fa(a,b,c){function d(){clearTimeout(e);ib--;a.off(N,d).removeClass(b);c.call(Qa,a)}var e,c=c||t;k&&ba.animation&&"mbsc-lv-item-none"!==b?(ib++,a.on(N,d).addClass(b),e=setTimeout(d,500)):c.call(Qa,a)}function M(a,b){var c,d=a.attr("data-ref");c=cc[d]=cc[d]||[];b&&c.push(b);a.attr("data-action")||(b=c.shift(),a.attr("data-action",1),b(function(){a.removeAttr("data-action");c.length?M(a):delete cc[d]}))}function wa(b,d,e){var f,h;b&&b.length&&(f=100/(b.length+2),a.each(b,function(a,i){i.key=== 67c&&(i.key=dc++);i.percent===c&&(i.percent=d*f*(a+1),e&&(h=g({},i),h.key=dc++,h.percent=-f*(a+1),b.push(h),Wb[h.key]=h));Wb[i.key]=i}))}var na,za,ka,ra,pa,La,hb,ya,Ba,sa,ja,ob,pb,Eb,Ka,Ra,Wa,Za,Sa,la,Ga,Ja,oa,Xa,Va,cb,sb,Gb,Aa,xa,fb,va,Bb,Cb,Xb,y,Ua,nb,Jb,Ha,zb,Ya,gb,Ib,Ta,ab,qa,Fa,Da,bb,X,Ea,ta,qb,jb,rb,Pa,ua,lb,ub,Zb,Lb,Nb,ic,$b,db,Oa,mb,tb,Mb,jc,Tb,ba,wb,yb,bc,dc,Fb,gc,hc,Pb,Qb,$a,kb,ec,Yb,Sb,Rb,Ca,vb,Ub,Vb,Ia,Hb,xb,ac,Y=this,Qa=l,Na=a(Q
67a),ib=0,Ab=0,Ma=0,Wb={},cc={},eb={};h.Base.call(this,l,E,!0); 68Y.animate=function(a,b,c){fa(a,"mbsc-lv-item-"+b,c)};Y.add=function(b,d,e,f,h,g){var i,k,j,m,r,pa,l="",p=h===c?Na:ia(h),o=p,q="object"!==typeof d?a('<li data-ref="'+C++ +'" data-id="'+b+'">'+d+"</li>"):d,x=0>q.attr("data-pos")?"left":"right",n=q.attr("data-ref"),f=f||t;n||(n=C++,q.addClass("mbsc-lv-item").attr("data-ref",n));ca(q);g||Y.addUndoAction(function(a){m?Y.navigate(p,function(){o.remove();p.removeClass("mbsc-lv-parent").children(".mbsc-lv-arr").remove();r.child=p.children("ul,ol");Y.remove(q, 69null,a,true)}):Y.remove(q,null,a,true)},!0);M(q,function(b){V(q.css("top","").removeClass("mbsc-lv-item-undo"));if(p.is("li")){pa=p.attr("data-ref");if(!p.children("ul,ol").length){m=true;p.append("<ul></ul>")}}else pa=p.children(".mbsc-lv-back").attr("data-back");if(r=eb[pa])if(r.child.length)o=r.child;else{p.addClass("mbsc-lv-parent").prepend(ab);o=p.children("ul,ol").prepend(Ta).addClass("mbsc-lv");r.child=o;a(".mbsc-lv-back",p).attr("data-back",pa)}eb[n]={item:q,child:q.children("ul,ol"),parent:o, 70ref:pa};j=ha(o);k=j.length;if(e===c||e===null)e=k;g&&(l="mbsc-lv-item-new-"+(g?x:""));T(q.addClass(l));if(e!==false)if(k)e<k?q.insertBefore(j.eq(e)):q.insertAfter(j.eq(k-1));else{i=a(".mbsc-lv-back",o);i.length?q.insertAfter(i):o.append(q)}if(o.hasClass("mbsc-lv-v"))Y.animate(q.height(q.outerHeight()),g&&Ub===n?"none":"expand",function(a){Y.animate(a.height(""),g?"add-"+x:"pop-in",function(a){f.call(Qa,a.removeClass(l));b()})});else{f.call(Qa,q.removeClass(l));b()}ya.trigger("mbsc-enhance",[{theme:ba.theme, 71lang:ba.lang}]);Aa("onItemAdd",[q])})};Y.swipe=function(a,b,d,e,f){X=a=ia(a);Za=e;na=yb=!0;la=0<b?1:-1;K();z();U(a,b,d===c?300:d);clearInterval(ec);ec=setInterval(function(){ra=100*(j.getPosition(a)/bb);W();Math.round(ra)==Math.round(b)&&(clearInterval(ec),ra=b,W(),D(f),na=yb=Za=!1)},10)};Y.openStage=function(a,b,c,d){Wb[b]&&Y.swipe(a,Wb[b].percent,c,d)};Y.openActions=function(a,b,c,d){var e=ga(vb[a.attr("data-type")||"defaults"]);Y.swipe(a,"left"==b?-e:e,c,d)};Y.close=function(a,b){Y.swipe(a,0,b)}; 72Y.remove=function(a,b,c,d){var e,f,c=c||t,a=ia(a);a.length&&(f=a.parent(),e=ha(f).index(a),d||(a.attr("data-ref")===Ub&&(Vb=!0),Y.addUndoAction(function(b){Y.add(null,a,e,b,f,!0)},!0)),M(a,function(e){b=b||a.attr("data-pos")<0?"left":"right";if(f.hasClass("mbsc-lv-v"))Y.animate(a.addClass("mbsc-lv-removed"),d?"pop-out":"remove-"+b,function(a){Y.animate(a.height(a.outerHeight()),"collapse",function(a){V(a.height("").removeClass("mbsc-lv-removed").remove());c.call(Qa,a);e()})});else{a.remove();c.call(Qa, 73a);e()}Aa("onItemRemove",[a])}))};Y.move=function(a,b,c,d,e,f){a=ia(a);f||Y.startActionTrack();Da.append(Fa);Y.remove(a,c,null,f);Y.add(null,a,b,d,e,f);f||Y.endActionTrack()};Y.navigate=function(a,b){var c,d,a=ia(a);c=eb[a.attr("data-ref")];d=0;for(var e=eb[a.attr("data-ref")];e.ref;)d++,e=eb[e.ref];c&&(da(d>=Ab?"r":"l",c.parent,a,b),Ab=d)};Y.init=function(d){var h=Na.find("ul,ol").length?"left":"right",g=0,i="",j="",m="";Y._init(d);d=ba.sort||ba.sortable;"group"===d&&(d={group:!1,multiLevel:!0}); 74!0===d&&(d={group:!0,multiLevel:!0,handle:ba.sortHandle});d&&d.handle===c&&(d.handle=ba.sortHandle);Y.sortable=d||!1;i+='<div class="mbsc-lv-multi-c"></div><div class="mbsc-lv-ic-c"><div class="mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none"></div><div class="mbsc-lv-ic-text"></div></div>';Na.addClass("mbsc-lv mbsc-lv-v mbsc-lv-root").show();Da=a('<div class="mbsc-lv-stage-c">'+i+"</div>");Fa=a(".mbsc-lv-ic-c",Da);Pa=a(".mbsc-lv-multi-c",Da);qa=a(".mbsc-lv-ic-s",Da);Sb=a(".mbsc-lv-ic-text",Da);db=a('<li class="mbsc-lv-item mbsc-lv-ph"></li>'); 75xa=a('<div class="mbsc-lv-fill-item"></div>');ya=a('<div class="mbsc-lv-cont mbsc-lv-'+ba.theme+(ba.baseTheme?" mbsc-lv-"+ba.baseTheme:"")+(ba.animateIcons?" mbsc-lv-ic-anim":"")+(k?"":" mbsc-lv-no3d")+(ba.altRow?" mbsc-lv-alt-row ":"")+'"><ul class="mbsc-lv mbsc-lv-dummy"></ul><div class="mbsc-lv-sl-c"></div></div>');Ua="body"!==ba.context;Ia=a(Ua?ba.context:b);Va=a(".mbsc-lv-dummy",ya);ya.insertAfter(Na);Y.sortable.handle&&(y=!0===Y.sortable.handle?h:Y.sortable.handle,nb='<div class="mbsc-lv-handle-c mbsc-lv-item-h-'+ 76y+' mbsc-lv-handle"><div class="'+ba.handleClass+' mbsc-lv-handle-bar-c mbsc-lv-handle">'+ba.handleMarkup+"</div></div>",ya.addClass("mbsc-lv-handle-"+y));Ia.on("orientationchange.mbsc-lv resize.mbsc-lv",function(){clearTimeout(Wa);Wa=setTimeout(function(){Hb=Ia[0].innerHeight||Ia.innerHeight();ac=Ua?Ia.offset().top:0;if(na){Ma=X[0].offsetTop;Ea=X.outerHeight();Da.css({top:Ma,height:Ea})}},200)}).trigger("resize.mbsc-lv");ya.on("touchstart mousedown",".mbsc-lv-item",w).on("touchmove",".mbsc-lv-item", 77s).on("touchend touchcancel",".mbsc-lv-item",I);
77Qa.addEventListener&&Qa.addEventListener("click",function(a){if(Lb){a.stopPropagation();a.preventDefault();Lb=false}},!0);ya.on("touchstart mousedown",".mbsc-lv-ic-m",function(a){if(!Za){a.stopPropagation();a.preventDefault()}Pb=n(a,"X");Qb=n(a,"Y")}).on("touchend mouseup",".mbsc-lv-ic-m",function(b){if(!Za){if(b.type==="touchend"){f.tapped++;setTimeout(function(){f.tapped--},500)}e&&!a(this).hasClass("mbsc-lv-ic-disabled")&&Math.abs(n(b,"X")-Pb)<20&& 78Math.abs(n(b,"Y")-Qb)<20&&O((ra<0?Ca.rightMenu:Ca.leftMenu)[a(this).index()],La,hb)}});bc=a(".mbsc-lv-sl-c",ya).append(Na.addClass("mbsc-lv-sl-curr")).attr("data-ref",C++);ja=Na;pb=ya;Ta='<li class="mbsc-lv-item mbsc-lv-back">'+ba.backText+'<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic '+ba.leftArrowClass+'"></div></li>';ab='<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic '+ba.rightArrowClass+'"></div>';T(Na);dc=0;vb=ba.itemGroups||{};vb.defaults={swipeleft:ba.swipeleft,swiperight:ba.swiperight,stages:ba.stages, 79actions:ba.actions,actionsWidth:ba.actionsWidth};a.each(vb,function(b,c){c.swipe=c.swipe||ba.swipe;c.stages=c.stages||[];wa(c.stages,1,true);wa(c.stages.left,1);wa(c.stages.right,-1);if(c.stages.left||c.stages.right)c.stages=[].concat(c.stages.left||[],c.stages.right||[]);fb=false;if(!c.stages.length){c.swipeleft&&c.stages.push({percent:-30,action:c.swipeleft});c.swiperight&&c.stages.push({percent:30,action:c.swiperight})}a.each(c.stages,function(a,b){if(b.percent===0){fb=true;return false}});fb|| 80c.stages.push({percent:0});c.stages.sort(function(a,b){return a.percent-b.percent});a.each(c.stages,function(a,b){if(b.percent===0){c.start=a;return false}});if(fb)c.left=c.right=c.stages[c.start];else{c.left=c.stages[c.start-1]||{};c.right=c.stages[c.start+1]||{}}if(c.actions){c.leftMenu=c.actions.left||c.actions;c.rightMenu=c.actions.right||c.leftMenu;m=j="";for(g=0;g<c.leftMenu.length;g++)j=j+('<div class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-'+c.leftMenu[g].icon+'"></div>');for(g=0;g<c.rightMenu.length;++g)m= 81m+('<div class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-'+c.rightMenu[g].icon+'"></div>');if(c.actions.left)c.swipe=c.actions.right?c.swipe:"right";if(c.actions.right)c.swipe=c.actions.left?c.swipe:"left";c.icons='<div class="mbsc-lv-multi mbsc-lv-multi-ic-left">'+j+'</div><div class="mbsc-lv-multi mbsc-lv-multi-ic-right">'+m+"</div>"}});ba.fixedHeader&&(va=a('<div class="mbsc-lv-fixed-header"></div>'),Bb=a(".mbsc-lv-gr-title",Na),Ua?(Ia.before(va),va.addClass("mbsc-lv-fixed-header-ctx mbsc-lv-"+ 82ba.theme+(ba.baseTheme?" mbsc-lv-"+ba.baseTheme:""))):ya.prepend(va),Ia.on("scroll.mbsc-lv touchmove.mbsc-lv",function(){if(Xa||!na){var b=a(this).scrollTop(),c=Na.offset().top;Bb.each(function(d,e){if(a(e).offset().top-(Ua?c:0)<b)Cb=d});sa=Bb[Cb];c<(Ua?Ia.offset().top:b)&&b<(Ua?Na[0].scrollHeight:c+Na.height())?va.empty().append(a(sa).clone()).show():va.hide()}}));ba.rtl&&ya.addClass("mbsc-lv-rtl");ba.hover&&(Ya=ba.hover.time||200,gb=ba.hover.timeout||200,Jb=ba.hover.direction||ba.hover||"right", 83ya.on("mouseenter.mbsc-lv",".mbsc-lv-item",function(){if(!Ha||Ha[0]!=this){J();Ha=a(this);if(vb[Ha.attr("data-type")||"defaults"].actions)Ib=setTimeout(function(){if(Nb)Ha=null;else{zb=true;Y.openActions(Ha,Jb,Ya,false)}},gb)}}).on("mouseleave.mbsc-lv",J));Na.is("[mbsc-enhance]")&&(Xb=!0,Na.removeAttr("mbsc-enhance"),ya.attr("mbsc-enhance",""));ya.trigger("mbsc-enhance",[{theme:ba.theme,lang:ba.lang}]);Aa("onInit",[])};Y.destroy=function(){pb.append(ja);Ua&&va&&va.remove();Xb&&Na.attr("mbsc-enhance", 84"");ya.find(".mbsc-lv-txt,.mbsc-lv-img").removeClass("mbsc-lv-txt mbsc-lv-img");ya.find("ul,ol").removeClass("mbsc-lv mbsc-lv-v mbsc-lv-root mbsc-lv-sl-curr").find("li").removeClass("mbsc-lv-gr-title mbsc-lv-item mbsc-lv-item-enhanced mbsc-lv-parent mbsc-lv-img-left mbsc-lv-img-right mbsc-lv-item-ic-left mbsc-lv-item-ic-right").removeAttr("data-ref");a(".mbsc-lv-back,.mbsc-lv-handle-c,.mbsc-lv-arr,.mbsc-lv-item-ic",ya).remove();Na.insertAfter(ya);ya.off().remove();Da.remove();Ia.off(".mbsc-lv");Y._destroy()}; 85var Ob,kc=[],Db=[],fc=[],Kb=0;Y.startActionTrack=function(){Kb||(fc=[]);Kb++};Y.endActionTrack=function(){Kb--;Kb||Db.push(fc)};Y.addUndoAction=function(a,b){var c={action:a,async:b};Kb?fc.push(c):(Db.push([c]),Db.length>ba.undoLimit&&Db.shift())};Y.undo=function(){function a(){0>d?(Ob=!1,b()):(c=e[d],d--,c.async?c.action(a):(c.action(),a()))}function b(){if(e=kc.shift())Ob=!0,d=e.length-1,a()}var c,d,e;Db.length&&kc.push(Db.pop());Ob||b()};ba=Y.settings;Aa=Y.trigger;Y.init(E)};h.ListView.prototype= 86{_class:"listview",_hasDef:!0,_hasTheme:!0,_hasLang:!0,_defaults:{actionsWidth:90,sortDelay:250,undoLimit:10,swipe:!0,quickSwipe:!0,animateIcons:!0,fillAnimation:!0,animation:!0,revert:!0,handleClass:"",handleMarkup:'<div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div>',leftArrowClass:"mbsc-ic-arrow-left4",rightArrowClass:"mbsc-ic-arrow-right4",backText:"Back",undoText:"Undo",stages:[]}};f.themes.listview.mobiscroll= 87{leftArrowClass:"mbsc-ic-arrow-left5",rightArrowClass:"mbsc-ic-arrow-right5"};f.presetShort("listview","ListView")})(jQuery,window,document);(function(a){var b=a.mobiscroll.themes.listview,d={onThemeLoad:function(a,b){b.theme&&(b.theme=b.theme.replace("android-ics","android-holo").replace(" light","-light"))},onInit:function(){a(this).closest(".mbsc-lv-cont").addClass("mbsc-lv-android-holo")}};b["android-holo"]=d;b["android-holo-light"]=d;b["android-ics"]=d;b["android-ics light"]=d;b["android-holo light"]=d})(jQuery);(function(a){var b=a.mobiscroll.themes.listview,d={onThemeLoad:function(a,b){b.theme&&(b.theme=b.theme.replace(" light","-light"))},onInit:function(){a(this).closest(".mbsc-lv-cont").addClass("mbsc-lv-wp")}};b.wp=d;b["wp-light"]=d;b["wp light"]=d})(jQuery);(function(a){var b={onInit:function(){a(this).closest(".mbsc-lv-cont").addClass("mbsc-lv-sense")},onThemeLoad:function(a,b){b.theme&&(b.theme=b.theme.replace("sense5","sense"))}};a.mobiscroll.themes.listview.sense=b;a.mobiscroll.themes.listview["sense-dark"]=b;a.mobiscroll.themes.listview.sense5=b;a.mobiscroll.themes.listview["sense5-dark"]=b})(jQuery);(function(a){a.mobiscroll.themes.listview.material={leftArrowClass:"mbsc-ic-material-keyboard-arrow-left",rightArrowClass:"mbsc-ic-material-keyboard-arrow-right",onItemActivate:function(b,d){a.mobiscroll.themes.material.addRipple(b,d)},onItemDeactivate:function(){a.mobiscroll.themes.material.removeRipple()},onSlideStart:function(b){a(".mbsc-ripple",b).remove()},onSortStart:function(b){a(".mbsc-ripple",b).remove()}}})(jQuery);(function(a){a.mobiscroll.themes.listview["ios-classic"]={}})(jQuery);(function(a){a.mobiscroll.themes.listview.android={}})(jQuery);(function(a){a.mobiscroll.themes.listview["sense-ui"]={}})(jQuery);(function(a){var a=a.mobiscroll.themes.listview,b={onThemeLoad:function(a,b){b.theme&&(b.theme=b.theme.replace("ios7","ios"))}};a.ios=b;a.ios7=b})(jQuery);(function(a){var b,d=function(){},c=a.mobiscroll,e=c.util,g=e.getCoord,f=e.testTouch;c.classes.Form=function(e,j){function o(b){var c=b.parent(),d=c.find(".mbsc-err-msg"),e=b.attr("data-icon");a('<span class="mbsc-input-wrap"></span>').insertAfter(b).append(b);
87d&&c.find(".mbsc-input-wrap").append(d);e&&c.addClass("right"==b.attr("data-icon-align")?"mbsc-ic-right":"mbsc-ic-left").find(".mbsc-input-wrap").append('<span class="mbsc-input-ic mbsc-ic mbsc-ic-'+e+'"></span>')}function i(){if(!a(this).hasClass("mbsc-textarea-scroll")){var b= 88this.offsetHeight+(this.scrollHeight-this.offsetHeight);this.scrollTop=0;this.style.height=b+"px"}}function k(b){var c,d;if(b.offsetHeight&&(b.style.height="",c=b.scrollHeight-b.offsetHeight,c=b.offsetHeight+(0<c?c:0),d=Math.round(c/24),10<d?(b.scrollTop=c,c=240+(c-24*d),a(b).addClass("mbsc-textarea-scroll")):a(b).removeClass("mbsc-textarea-scroll"),c))b.style.height=c+"px"}function n(){clearTimeout(C);C=setTimeout(function(){a("textarea.mbsc-control",q).each(function(){k(this)})},100)}var r,B,C, 89t,q=a(e),u=this;c.classes.Base.call(this,e,j,!0);u.refresh=function(){a("input,select,textarea,button",q).each(function(){function d(){a("input",z).val(-1!=q.selectedIndex?q.options[q.selectedIndex].text:"")}var e,h,j,r,q=this,n=this.type,u=a(q),z=u.parent();if("false"!=u.attr("data-enhance")){if(!u.hasClass("mbsc-control"))switch("button"!=n&&"submit"!=n&&(z.find("label").addClass("mbsc-label"),z.contents().filter(function(){return 3==this.nodeType&&this.nodeValue&&/\S/.test(this.nodeValue)}).each(function(){a('<span class="mbsc-label"></span>').insertAfter(this).append(this)})), 90u.addClass("mbsc-control"),n){case "button":case "submit":e=u.attr("data-icon");u.addClass("mbsc-btn");e&&(u.prepend('<span class="mbsc-btn-ic mbsc-ic mbsc-ic-'+e+'"></span>'),""===u.text()&&u.addClass("mbsc-btn-icon-only"));break;case "checkbox":"switch"==u.attr("data-role")?(z.addClass("mbsc-control-w mbsc-switch"),u.after('<span class="mbsc-switch-track"><span class="mbsc-switch-handle"><span class="mbsc-switch-txt-off">'+B.offText+'</span><span class="mbsc-switch-txt-on">'+B.onText+"</span></span></span>")): 91(z.addClass("mbsc-control-w mbsc-checkbox"),u.after('<span class="mbsc-checkbox-box"></span>'));break;case "radio":z.addClass("mbsc-control-w mbsc-radio");u.after('<span class="mbsc-radio-box"><span></span></span>');break;case "select-one":case "select-multiple":e=u.prev().is("input.mbsc-control")?u.prev():a('<input tabindex="-1" type="text" class="mbsc-control mbsc-control-ev" readonly>');o(u);z.addClass("mbsc-control-w mbsc-input mbsc-select");u.after(e);e.after('<span class="mbsc-select-ic mbsc-ic mbsc-ic-arrow-down5"></span>'); 92break;case "textarea":o(u);z.addClass("mbsc-control-w mbsc-input mbsc-textarea");break;default:o(u),z.addClass("mbsc-control-w mbsc-input")}if(!u.hasClass("mbsc-control-ev")){/select/.test(n)&&(u.on("change.mbsc-form",d),d());if("textarea"==n)u.on("keydown.mbsc-form input.mbsc-form",function(){clearTimeout(C);C=setTimeout(function(){k(q)},100)}).on("scroll.mbsc-form",i);u.addClass("mbsc-control-ev").on("touchstart.mbsc-form mousedown.mbsc-form",function(a){if(f(a,this)){j=g(a,"X",true);r=g(a,"Y", 93true);b&&b.removeClass("mbsc-active");if(!q.disabled){h=true;b=u;u.addClass("mbsc-active");t("onControlActivate",[u,a])}}}).on("touchmove.mbsc-form mousemove.mbsc-form",function(a){if(h&&Math.abs(g(a,"X",true)-j)>20||Math.abs(g(a,"Y",true)-r)>20){u.removeClass("mbsc-active");t("onControlDeactivate",[u,a]);h=false}}).on("touchend.mbsc-form touchcancel.mbsc-form mouseleave.mbsc-form mouseup.mbsc-form",function(a){if(h&&a.type=="touchend"&&!q.readOnly){u.focus();/(button|submit|checkbox|radio)/.test(n)&& 94a.preventDefault();if(!/select/.test(n)){var d=(a.originalEvent||a).changedTouches[0],e=document.createEvent("MouseEvents");e.initMouseEvent("click",true,true,window,1,d.screenX,d.screenY,d.clientX,d.clientY,false,false,false,false,0,null);e.tap=true;q.dispatchEvent(e);c.tapped++;setTimeout(function(){c.tapped--},500)}}h&&setTimeout(function(){u.removeClass("mbsc-active");t("onControlDeactivate",[u,a])},100);h=false;b=null})}}});n()};u.init=function(b){u._init(b);c.themes.form[B.theme]||(B.theme= 95"mobiscroll");r="mbsc-form mbsc-"+B.theme+(B.baseTheme?" mbsc-"+B.baseTheme:"")+(B.rtl?" mbsc-rtl":" mbsc-ltr");q.hasClass("mbsc-form")||q.addClass(r).on("touchstart",d).show();a(window).on("resize orientationchange",n);u.refresh()};u.destroy=function(){q.removeClass(r).off("touchstart",d);a(window).off("resize orientationchange",n);a(".mbsc-control",q).off(".mbsc-form").removeClass("mbsc-control-ev");u._destroy()};B=u.settings;t=u.trigger;
95u.init(j)};c.classes.Form.prototype={_hasDef:!0,_hasTheme:!0, 96_hasLang:!0,_class:"form",_defaults:{lang:"en",offText:"Off",onText:"On"}};c.themes.form.mobiscroll={};c.presetShort("form","Form");a(function(){a("[mbsc-enhance]").each(function(){a(this).mobiscroll().form()});a(document).on("mbsc-enhance",function(b,c){a(b.target).is("[mbsc-enhance]")?a(b.target).mobiscroll().form(c):a("[mbsc-enhance]",b.target).each(function(){a(this).mobiscroll().form(c)})});a(document).on("mbsc-refresh",function(b){a(b.target).is("[mbsc-enhance]")?a(b.target).mobiscroll("refresh"): 97a("[mbsc-enhance]",b.target).each(function(){a(this).mobiscroll("refresh")})})})})(jQuery);(function(a){a.mobiscroll.themes.form["android-holo"]={}})(jQuery);(function(a){a.mobiscroll.themes.form.wp={}})(jQuery);(function(a){a.mobiscroll.themes.form.material={onControlActivate:function(b,d){("button"==b[0].type||"submit"==b[0].type)&&a.mobiscroll.themes.material.addRipple(b,d)},onControlDeactivate:function(){a.mobiscroll.themes.material.removeRipple()}}})(jQuery);(function(a){a.mobiscroll.themes.form.ios={}})(jQuery);(function(a,b){var d=a.mobiscroll,c=d.util.isNumeric,e=function(){},g=d.classes;g.Numpad=function(d,e,j){function o(b){var c,e=(c=u.validate.call(d,x.slice(0),W,s)||[])&&c.disabled||[];s._isValid=c.invalid?!1:!0;s._tempValue=u.formatValue.call(d,x.slice(0),W,s);q=x.length;l=c.length||E;if(s._isVisible){a(".mbsc-np-ph",B).each(function(b){a(this).html("ltr"==u.fill?b>=q?t:N||x[b]:b>=E-l?b+q<E?t:N||x[b+q-E]:"")});a(".mbsc-np-cph",B).each(function(){a(this).html(W[a(this).attr("data-var")]||a(this).attr("data-ph"))}); 98if(q===E)for(c=0;9>=c;c++)e.push(c);a(".mbsc-np-btn",B).removeClass(C);for(c=0;c<e.length;c++)a('.mbsc-np-btn[data-val="'+e[c]+'"]',B).addClass(C);s._isValid?a(".dwb-s .dwb",B).removeClass(C):a(".dwb-s .dwb",B).addClass(C);s.live&&(s._hasValue=b||s._hasValue,i(b))}}function i(b,c,d,e){c&&o();e||(K=x.slice(0),D=a.extend({},W),I=z.slice(0),s._value=s._tempValue);b&&(s._isInput&&w.val(s._hasValue&&s._isValid?s._value:""),d&&(s._preventChange=!0,w.change()))}function k(a){var b,c=a||[],d=[];z=[];W={}; 99for(a=0;a<c.length;a++)/:/.test(c[a])?(b=c[a].split(":"),W[b[0]]=b[1],z.push(b[0])):(d.push(c[a]),z.push("digit"));return d}function n(a,b){if(!(!q&&!b&&!u.allowLeadingZero||a.hasClass("dwb-d")||a.hasClass("mbsc-np-btn-empty"))&&q<E)z.push("digit"),x.push(b),o(!0)}function r(){var a,b,c=z.pop();if(q||"digit"!==c){if("digit"!==c&&W[c]){delete W[c];b=z.slice(0);z=[];for(a=0;a<b.length;a++)b[a]!==c&&z.push(b[a])}else x.pop();o(!0)}}var B,C,t,q,u,N,x,l,E,K,w=a(d),s=this,I=[],z=[],W={},D={},S={48:0,49:1, 10050:2,51:3,52:4,53:5,54:6,55:7,56:8,57:9,96:0,97:1,98:2,99:3,100:4,101:5,102:6,103:7,104:8,105:9};g.Frame.call(this,d,e,!0);s.setVal=s._setVal=function(c,e,h,g){s._hasValue=null!==c&&c!==b;x=k(a.isArray(c)?c.slice(0):u.parseValue.call(d,c,s));i(e,!0,h===b?e:h,g)};s.getVal=s._getVal=function(a){return s._hasValue||a?s[a?"_tempValue":"_value"]:null};s.setArrayVal=s.setVal;s.getArrayVal=function(a){return a?x.slice(0):s._hasValue?K.slice(0):null};s.setValue=s.setVal;s.getValue=s.getArrayVal;s._readValue= 101function(){var a=w.val()||"";""!==a&&(s._hasValue=!0);N?(W={},z=[],x=[]):(W=s._hasValue?D:{},z=s._hasValue?I:[],x=s._hasValue&&K?K.slice(0):k(u.parseValue.call(d,a,s)),i(!1,!0))};s._fillValue=function(){s._hasValue=!0;i(!0,!1,!0)};s._generateContent=function(){var a,b,c,d=1;a="";var e;e=""+('<div class="mbsc-np-hdr"><div role="button" tabindex="0" aria-label="'+u.deleteText+'" class="mbsc-np-del dwb-e mbsc-ic mbsc-ic-'+u.deleteIcon+'"></div><div class="mbsc-np-dsp">');a=u.template.replace(/d/g,'<span class="mbsc-np-ph">'+ 102t+"</span>").replace(/d/g,"d");a=a.replace(/{([a-zA-Z0-9]*)\:?([a-zA-Z0-9\-\_]*)}/g,'<span class="mbsc-np-cph" data-var="$1" data-ph="$2">$2</span>');e=e+a+'</div></div><div class="mbsc-np-tbl-c mbsc-w-p"><div class="mbsc-np-tbl">';for(a=0;4>a;a++){e+='<div class="mbsc-np-row">';for(b=0;3>b;b++)c=d,10==d||12==d?c="":11==d&&(c=0),e=""===c?10==d&&u.leftButton?e+('<div role="button" tabindex="0" class="mbsc-np-btn mbsc-np-btn-custom dwb-e" '+(u.leftButton.variable?'data-var="'+u.leftButton.variable+ 103'"':"")+' data-val="'+u.leftButton.value+'" >'+u.leftButton.text+"</div>"):12==d&&u.rightButton?e+('<div role="button" tabindex="0" class="mbsc-np-btn mbsc-np-btn-custom dwb-e" '+(u.rightButton.variable?'data-var="'+u.rightButton.variable+'"':"")+' data-val="'+u.rightButton.value+'" >'+u.rightButton.text+"</div>"):e+'<div class="mbsc-np-btn mbsc-np-btn-empty"></div>':e+('<div tabindex="0" role="button" class="mbsc-np-btn dwb-e" data-val="'+c+'">'+c+"</div>"),d++;e+="</div>"}return e+"</div></div>"}; 104s._markupReady=function(){B=s._markup;o()};s._attachEvents=function(d){d.on("keydown",function(c){S[c.keyCode]!==b?n(a('.mbsc-np-btn[data-val="'+S[c.keyCode]+'"]'),S[c.keyCode]):8==c.keyCode&&(c.preventDefault(),r())});s.tap(a(".mbsc-np-btn",d),function(){var b=a(this);if(b.hasClass("mbsc-np-btn-custom")){var d=b.attr("data-val"),e=b.attr("data-var");
104if(!b.hasClass("dwb-d")){e&&(b=e.split(":"),z.push(b[0]),W[b[0]]=b[1]);if(d.length+q<=l)for(b=0;b<d.length;++b)z.push("digit"),x.push(c(d[b])?+d[b]: 105d[b]);o(!0)}}else n(b,+b.attr("data-val"))});s.tap(a(".mbsc-np-del",d),r)};s._processSettings=function(){u=s.settings;u.headerText=(u.headerText||"").replace("{value}","");u.cssClass=(u.cssClass||"")+" mbsc-np";u.template=u.template.replace(/\\d/,"d");t=u.placeholder;E=(u.template.match(/d/g)||[]).length;C="dwb-d "+(u.disabledClass||"");(N=u.mask)&&w.is("input")&&w.attr("type","password")};s._indexOf=function(a,b){var c;for(c=0;c<a.length;++c)if(a[c].toString()===b.toString())return c;return-1}; 106j||s.init(e)};g.Numpad.prototype={_hasDef:!0,_hasTheme:!0,_hasLang:!0,_hasPreset:!0,_class:"numpad",_defaults:a.extend({},g.Frame.prototype._defaults,{template:"dd.dd",placeholder:"0",deleteIcon:"backspace",allowLeadingZero:!1,fill:"rtl",deleteText:"Delete",validate:e,parseValue:e,formatValue:function(b,c,d){var e,g=1;e=d.settings;var d=e.placeholder,k=e.template,n=b.length,r=k.length,B="";for(e=0;e<r;e++)"d"==k[r-e-1]?(B=g<=n?b[n-g]+B:d+B,g++):B=k[r-e-1]+B;a.each(c,function(a,b){B=B.replace("{"+ 107a+"}",b)});return a("<div>"+B+"</div>").text()}})};d.themes.numpad=d.themes.frame;d.presetShort("numpad","Numpad",!1)})(jQuery); 108(function(a){var b=a.mobiscroll,d={min:0,max:99.99,scale:2,prefix:"",suffix:"",returnAffix:!1};b.presets.numpad.decimal=function(c){function e(a){for(var b=0;a.length;)b=10*b+a.shift();for(a=0;a<f.scale;a++)b/=10;return b}var g=a.extend({},c.settings),f=a.extend(c.settings,d,g);c.getVal=function(a){a=c._getVal(a);return b.util.isNumeric(a)?+a:a};return{template:f.prefix.replace(/d/g,"\\d")+Array((Math.floor(f.max)+"").length+1).join("d")+(f.scale?"."+Array(f.scale+1).join("d"):"")+f.suffix.replace(/d/g, 109"\\d"),parseValue:function(a){var b,c;b=a||f.defaultValue;a=[];if(b&&(c=(b+"").match(/\d+\.?\d*/g))){c=(+c[0]).toFixed(f.scale);for(b=0;b<c.length;b++)"."!=c[b]&&(+c[b]?a.push(+c[b]):a.length&&a.push(0))}return a},formatValue:function(a){a=e(a).toFixed(f.scale);return f.returnAffix?f.prefix+a+f.suffix:a},validate:function(a){var b=e(a.slice(0)).toFixed(f.scale),d=[];!a.length&&!f.allowLeadingZero&&d.push(0);return{disabled:d,invalid:+b>f.max||+b<f.min||(f.invalid?-1!=c._indexOf(f.invalid,+b):!1)}}}}})(jQuery); 110(function(a){function b(a){for(var b=0,c=1,d=0;a.length;)3<b?c=3600:1<b&&(c=60),d+=a.pop()*c*(b%2?10:1),b++;return d}var d=a.mobiscroll,c=["h","m","s"],e={min:0,max:362439,defaultValue:0,hourTextShort:"h",minuteTextShort:"m",secTextShort:"s"};d.presets.numpad.timespan=function(g){function f(b){var d,e="",f=3600;a(c).each(function(a,c){d=Math.floor(b/f);b-=d*f;f/=60;if(0<d||"s"==c&&!e)e=e+(e?" ":"")+d+o[c]});return e}var h=a.extend({},g.settings),j=a.extend(g.settings,e,h),o={h:j.hourTextShort.replace(/d/g, 111"\\d"),m:j.minuteTextShort.replace(/d/g,"\\d"),s:j.secTextShort.replace(/d/g,"\\d")},h='d<span class="mbsc-np-sup mbsc-np-time">'+o.s+"</span>";9<j.max&&(h="d"+h);99<j.max&&(h='<span class="mbsc-np-ts-m">'+(639<j.max?"d":"")+'d</span><span class="mbsc-np-sup mbsc-np-time">'+o.m+"</span>"+h);6039<j.max&&(h='<span class="mbsc-np-ts-h">'+(38439<j.max?"d":"")+'d</span><span class="mbsc-np-sup mbsc-np-time">'+o.h+"</span>"+h);g.setVal=function(a,b,c,e){d.util.isNumeric(a)&&(a=f(a));return g._setVal(a, 112b,c,e)};g.getVal=function(a){return g._hasValue||a?b(g.getArrayVal(a)):null};return{template:h,parseValue:function(b){var d,e=b||f(j.defaultValue),h=[];e&&a(c).each(function(a,b){(d=RegExp("(\\d+)"+o[b],"gi").exec(e))?(d=+d[1],9<d?(h.push(Math.floor(d/10)),h.push(d%10)):(h.length&&h.push(0),(d||h.length)&&h.push(d))):h.length&&(h.push(0),h.push(0))});return h},formatValue:function(a){return f(b(a))},validate:function(a){var c=b(a.slice(0)),d=[];a.length||d.push(0);return{disabled:d,invalid:c>j.max|| 113c<j.min||(j.invalid?-1!=g._indexOf(j.invalid,+c):!1)}}}}})(jQuery); 114(function(a){var b={timeFormat:"hh:ii A",amText:"am",pmText:"pm"};a.mobiscroll.presets.numpad.time=function(d){function c(b,c){var d,e="";for(d=0;d<b.length;++d)e+=b[d]+(d%2==(1==b.length%2?0:1)&&d!=b.length-1?":":"");a.each(c,function(a,b){e+=" "+b});return e}var e=a.extend({},d.settings),g=a.extend(d.settings,b,e),f=g.timeFormat.split(":"),h=g.t
114imeFormat.match(/a/i),j=h?"a"==h[0]?g.amText:g.amText.toUpperCase():"",o=h?"a"==h[0]?g.pmText:g.pmText.toUpperCase():"",i=0,k=g.min?""+g.min.getHours(): 115"",n=g.max?""+g.max.getHours():"",r=g.min?""+(10>g.min.getMinutes()?"0"+g.min.getMinutes():g.min.getMinutes()):"",B=g.max?""+(10>g.max.getMinutes()?"0"+g.max.getMinutes():g.max.getMinutes()):"",C=g.min?""+(10>g.min.getSeconds()?"0"+g.min.getSeconds():g.min.getSeconds()):"",t=g.max?""+(10>g.max.getSeconds()?"0"+g.max.getSeconds():g.max.getSeconds()):"";g.min&&g.min.setFullYear(2014,7,20);g.max&&g.max.setFullYear(2014,7,20);return{placeholder:"-",allowLeadingZero:!0,template:(3==f.length?"dd:dd:dd": 1162==f.length?"dd:dd":"dd")+(h?'<span class="mbsc-np-sup">{ampm:--}</span>':""),leftButton:h?{text:j,variable:"ampm:"+j,value:"00"}:{text:":00",value:"00"},rightButton:h?{text:o,variable:"ampm:"+o,value:"00"}:{text:":30",value:"30"},parseValue:function(a){var b,c=a||g.defaultValue,d=[];if(c){c+="";if(b=c.match(/\d/g))for(a=0;a<b.length;a++)d.push(+b[a]);h&&d.push("ampm:"+(c.match(RegExp(g.pmText,"gi"))?o:j))}return d},formatValue:function(a,b){return c(a,b)},validate:function(a,b){var e=c(a,b),j=3<= 117a.length?new Date(2014,7,20,""+a[0]+(0===a.length%2?a[1]:""),""+a[0===a.length%2?2:1]+a[0===a.length%2?3:2]):"",l,o,K,w,s,I,z=[];i=l=2*f.length;a.length||(h&&(z.push(0),z.push(g.leftButton.value)),z.push(g.rightButton.value));if(!h&&(2>l-a.length||1!=a[0]&&(2<a[0]||3<a[1])&&2>=l-a.length))z.push("30"),z.push("00");if((h?1<a[0]||2<a[1]:1!=a[0]&&(2<a[0]||3<a[1]))&&a[0])a.unshift(0),i=l-1;if(a.length==l)for(l=0;9>=l;++l)z.push(l);else if(1==a.length&&h&&1==a[0]||a.length&&0===a.length%2||!h&&2==a[0]&& 1183<a[1]&&1==a.length%2)for(l=6;9>=l;++l)z.push(l);K=void 0!==a[1]?""+a[0]+a[1]:"";w=+B==+(void 0!==a[3]?""+a[2]+a[3]:0);if(g.invalid)for(l=0;l<g.invalid.length;++l)if(o=g.invalid[l].getHours(),s=g.invalid[l].getMinutes(),I=g.invalid[l].getSeconds(),o==+K)if(2==f.length&&(10>s?0:+(""+s)[0])==+a[2]){z.push(10>s?s:+(""+s)[1]);break}else if((10>I?0:+(""+I)[0])==+a[4]){z.push(10>I?I:+(""+I)[1]);break}if(g.min||g.max){o=+k==+K;s=(K=+n==+K)&&w;w=o&&w;if(0===a.length){for(l=h?2:19<k?k[0]:3;l<=(1==k[0]?9:k[0]- 1191);++l)z.push(l);if(10<=k&&(z.push(0),2==k[0]))for(l=3;9>=l;++l)z.push(l);
119if(n&&10>n||k&&10<=k)for(l=n&&10>n?+n[0]+1:0;l<(k&&10<=k?k[0]:10);++l)z.push(l)}if(1==a.length){if(0===a[0])for(l=0;l<k[0];++l)z.push(l);if(k&&0!==a[0]&&(h?1==a[0]:2==a[0]))for(l=h?3:4;9>=l;++l)z.push(l);if(a[0]==k[0])for(l=0;l<k[1];++l)z.push(l);if(a[0]==n[0]&&!h)for(l=+n[1]+1;9>=l;++l)z.push(l)}if(2==a.length&&(o||K))for(l=K?+B[0]+1:0;l<(o?+r[0]:10);++l)z.push(l);if(3==a.length&&(K&&a[2]==B[0]||o&&a[2]==r[0]))for(l=K&&a[2]== 120B[0]?+B[1]+1:0;l<(o&&a[2]==r[0]?+r[1]:10);++l)z.push(l);if(4==a.length&&(w||s))for(l=s?+t[0]+1:0;l<(w?+C[0]:10);++l)z.push(l);if(5==a.length&&(w&&a[4]==C[0]||s&&a[4]==t[0]))for(l=s&&a[4]==t[0]?+t[1]+1:0;l<(w&&a[4]==C[0]?+C[1]:10);++l)z.push(l)}return{disabled:z,length:i,invalid:(h?!RegExp("^(0?[1-9]|1[012])(:[0-5]\\d)?(:[0-5][0-9]) (?:"+g.amText+"|"+g.pmText+")$","i").test(e):!/^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$/.test(e))||(g.invalid?-1!=d._indexOf(g.invalid,j):!1)||!((g.min?g.min<= 121j:1)&&(g.max?j<=g.max:1))}}}}})(jQuery); 122(function(a){var b=a.mobiscroll,d={dateOrder:"mdy",dateFormat:"mm/dd/yy",delimiter:"/"};b.presets.numpad.date=function(c){function e(a){return new Date(+(""+a[g]+a[g+1]+a[g+2]+a[g+3]),+(""+a[f]+a[f+1])-1,+(""+a[h]+a[h+1]))}var g,f,h,j,o=[];j=a.extend({},c.settings);var i=a.extend(c.settings,b.datetime.defaults,d,j),k=i.dateOrder,n=i.min?""+(i.getMonth(i.min)+1):0,r=i.max?""+(i.getMonth(i.max)+1):0,B=i.min?""+i.getDay(i.min):0,C=i.max?""+i.getDay(i.max):0,t=i.min?""+i.getYear(i.min):0,q=i.max?""+i.getYear(i.max): 1230,k=k.replace(/y+/gi,"yyyy"),k=k.replace(/m+/gi,"mm"),k=k.replace(/d+/gi,"dd");g=k.toUpperCase().indexOf("Y");f=k.toUpperCase().indexOf("M");h=k.toUpperCase().indexOf("D");k="";o.push({val:g,n:"yyyy"},{val:f,n:"mm"},{val:h,n:"dd"});o.sort(function(a,b){return a.val-b.val});a.each(o,function(a,b){k+=b.n});g=k.indexOf("y");f=k.indexOf("m");h=k.indexOf("d");k="";for(j=0;8>j;++j)if(k+="d",j+1==g||j+1==f||j+1==h)k+=i.delimiter;c.getVal=function(a){return c._hasValue||a?e(c.getArrayVal(a)):null};return{placeholder:"-", 124fill:"ltr",allowLeadingZero:!0,template:k,parseValue:function(a){var c,d=[];c=a||i.defaultValue;a=b.datetime.parseDate(i.dateFormat,c);if(c)for(c=0;c<o.length;++c)d=/m/i.test(o[c].n)?d.concat(((9>i.getMonth(a)?"0":"")+(i.getMonth(a)+1)).split("")):/d/i.test(o[c].n)?d.concat(((10>i.getDay(a)?"0":"")+i.getDay(a)).split("")):d.concat((i.getYear(a)+"").split(""));return d},formatValue:function(a){return b.datetime.formatDate(i.dateFormat,e(a))},validate:function(a){var b=e(a),d,k,j,o,w=[],s=void 0!== 125a[g+3]?""+a[g]+a[g+1]+a[g+2]+a[g+3]:"",I=void 0!==a[f+1]?""+a[f]+a[f+1]:"",z=void 0!==a[h+1]?""+a[h]+a[h+1]:"",W=""+i.getMaxDayOfMonth(s||2012,I-1||0),D=t===s&&+n===+I,S=q===s&&+r===+I;if(i.invalid)for(d=0;d<i.invalid.length;++d){k=i.getYear(i.invalid[d]);j=i.getMonth(i.invalid[d]);o=i.getDay(i.invalid[d]);if(k==+s&&j+1==+I&&(10>o?0:+(""+o)[0])==+a[h]){w.push(10>o?o:+(""+o)[1]);break}if(j+1==+I&&o==+z&&(""+k).substring(0,3)==""+a[g]+a[g+1]+a[g+2]){w.push((""+k)[3]);break}if(k==+s&&o==+z&&(10>j?0: 126+(""+(j+1))[0])==+a[f]){w.push(10>j?j:+(""+(j+1))[1]);break}}if("31"==z&&(a.length==f||a.length==f+1))1!=a[f]?w.push(2,4,6,9,11):w.push(1);"30"==z&&0===a[f]&&a.length<=f+1&&w.push(2);if(a.length==f){for(d=q===s&&10>+r?1:2;9>=d;++d)w.push(d);t===s&&10<=+n&&w.push(0)}if(a.length==f+1){if(1==a[f]){for(d=q===s?+r[1]+1:3;9>=d;++d)w.push(d);if(t==s)for(d=0;d<+n[1];++d)w.push(d)}if(0===a[f]&&(w.push(0),q===s||t===s))for(d=q===s?+z>+C?+r:+r+1:0;d<=(t===s?+n-1:9);++d)w.push(d)}if(a.length==h){for(d=S?(10< 127+C?+C[0]:0)+1:+W[0]+1;9>=d;++d)w.push(d);if(D)for(d=0;d<(10>+B?0:B[0]);++d)w.push(d)}if(a.length==h+1){if(3<=a[h]||"02"==I)for(d=+W[1]+1;9>=d;++d)w.push(d);if(S&&+C[0]==a[h])for(d=+C[1]+1;9>=d;++d)w.push(d);if(D&&B[0]==a[h])for(d=0;d<+B[1];++d)w.push(d);if(0===a[h]&&(w.push(0),S||D))for(d=S?+C+1:1;d<=(D?+B-1:9);++d)w.push(d)}if(void 0!==a[g+2]&&"02"==I&&"29"==z)for(k=+(""+a[g]+a[g+1]+a[g+2]+0);k<=+(""+a[g]+a[g+1]+a[g+2]+9);++k)w.push(!(0===k%4&&0!==k%100||0===k%400)?k%10:"");if(a.length==g){if(i.min)for(d= 1280;d<+t[0];++d)w.push(d);if(i.max)for(d=+q[0]+1;9>=d;++d)w.push(d);w.push(0)}if(i.min||i.max)for(k=1;4>k;++k)if(a.length==g+k){if(a[g+k-1]==+t[k-1]&&(3==k?a[g+k-2]==+t[k-2]:1))for(d=0;d<+t[k]+(3==k&&a[f+1]&&+n>+I?1:0);++d)w.push(d);if(a[g+k-1]==+q[k-1]&&(3==k?a[g+k-2]==+q[k-2]:1))for(d=+q[k]+(3==k&&+r<+I?0:1);9>=d;++d)w.push(d)}return{disabled:w,invalid:!("Invalid Date"!=b&&(i.min?i.min<=b:1)&&(i.max?b<=i.max:1))||
128(i.invalid?-1!=c._indexOf(i.invalid,b):!1)}}}}})(jQuery);(function(a,b,d,c){var e,b=a.mobiscroll,g=b.classes,f=b.util,h=f.jsPrefix,j=f.has3d,o=f.hasFlex,i=f.getCoord,k=f.constrain,n=f.testTouch;b.presetShort("scroller","Scroller",!1);g.Scroller=function(b,B,C){function t(b){if(n(b,this)&&!e&&!L&&!U&&!s(this)&&(b.preventDefault(),b.stopPropagation(),e=!0,F="clickpick"!=G.mode,aa=a(".dw-ul",this),z(aa),A=(ca=na[da]!==c)?Math.round(-f.getPosition(aa,!0)/P):za[da],T=i(b,"Y"),ha=new Date,ia=T,S(aa,da,A,0.001),F&&aa.closest(".dwwl").addClass("dwa"),"mousedown"=== 129b.type))a(d).on("mousemove",q).on("mouseup",u)}function q(a){if(e&&F&&(a.preventDefault(),a.stopPropagation(),ia=i(a,"Y"),3<Math.abs(ia-T)||ca))S(aa,da,k(A+(T-ia)/P,ea-1,ga+1)),ca=!0}function u(b){if(e){var c=new Date-ha,f=k(Math.round(A+(T-ia)/P),ea-1,ga+1),h=f,g,i=aa.offset().top;b.stopPropagation();e=!1;"mouseup"===b.type&&a(d).off("mousemove",q).off("mouseup",u);j&&300>c?(g=(ia-T)/c,c=g*g/G.speedUnit,0>ia-T&&(c=-c)):c=ia-T;if(ca)h=k(Math.round(A-c/P),ea,ga),c=g?Math.max(0.1,Math.abs((h-f)/g)* 130G.timeUnit):0.1;else{var f=Math.floor((ia-i)/P),r=a(a(".dw-li",aa)[f]);g=r.hasClass("dw-v");i=F;c=0.1;!1!==V("onValueTap",[r])&&g?h=f:i=!0;i&&g&&(r.addClass("dw-hl"),setTimeout(function(){r.removeClass("dw-hl")},100));if(!Z&&(!0===G.confirmOnTap||G.confirmOnTap[da])&&r.hasClass("dw-sel")){M.select();return}}F&&v(aa,da,h,0,c,!0)}}function N(b){U=a(this);n(b,this)&&w(b,U.closest(".dwwl"),U.hasClass("dwwbp")?O:p);if("mousedown"===b.type)a(d).on("mouseup",x)}function x(b){U=null;L&&(clearInterval(fa), 131L=!1);"mouseup"===b.type&&a(d).off("mouseup",x)}function l(b){38==b.keyCode?w(b,a(this),p):40==b.keyCode&&w(b,a(this),O)}function E(){L&&(clearInterval(fa),L=!1)}function K(b){if(!s(this)){b.preventDefault();var b=b.originalEvent||b,c=b.deltaY||b.wheelDelta||b.detail,d=a(".dw-ul",this);z(d);S(d,da,k(((0>c?-20:20)-ka[da])/P,ea-1,ga+1));clearTimeout(Q);Q=setTimeout(function(){v(d,da,Math.round(za[da]),0<c?1:2,0.1)},200)}}function w(a,b,c){a.stopPropagation();a.preventDefault();if(!L&&!s(b)&&!b.hasClass("dwa")){L= 132!0;var d=b.find(".dw-ul");z(d);clearInterval(fa);fa=setInterval(function(){c(d)},G.delay);c(d)}}function s(b){return a.isArray(G.readonly)?(b=a(".dwwl",R).index(b),G.readonly[b]):G.readonly}function I(b){var c='<div class="dw-bf">',b=ra[b],d=1,e=b.labels||[],f=b.values||[],h=b.keys||f;a.each(f,function(a,b){0===d%20&&(c+='</div><div class="dw-bf">');c+='<div role="option" aria-selected="false" class="dw-li dw-v" data-val="'+h[a]+'"'+(e[a]?' aria-label="'+e[a]+'"':"")+' style="height:'+P+"px;line-height:"+ 133P+'px;"><div class="dw-i"'+(1<ma?' style="line-height:'+Math.round(P/ma)+"px;font-size:"+Math.round(0.8*(P/ma))+'px;"':"")+">"+b+"</div></div>";d++});return c+="</div>"}function z(b){Z=b.closest(".dwwl").hasClass("dwwms");ea=a(".dw-li",b).index(a(Z?".dw-li":".dw-v",b).eq(0));ga=Math.max(ea,a(".dw-li",b).index(a(Z?".dw-li":".dw-v",b).eq(-1))-(Z?G.rows-("scroller"==G.mode?1:3):0));da=a(".dw-ul",R).index(b)}function W(a){var c=G.headerText;return c?"function"===typeof c?c.call(b,a):c.replace(/\{value\}/i, 134a):""}function D(a,b){clearTimeout(na[b]);delete na[b];a.closest(".dwwl").removeClass("dwa")}function S(a,b,c,d,e){var g=-c*P,i=a[0].style;g==ka[b]&&na[b]||(ka[b]=g,j?(i[h+"Transition"]=f.prefix+"transform "+(d?d.toFixed(3):0)+"s ease-out",i[h+"Transform"]="translate3d(0,"+g+"px,0)"):i.top=g+"px",na[b]&&D(a,b),d&&e&&(a.closest(".dwwl").addClass("dwa"),na[b]=setTimeout(function(){D(a,b)},1E3*d)),za[b]=c)}function m(b,c,d,e,f){var h=a('.dw-li[data-val="'+b+'"]',c),g=a(".dw-li",c),b=g.index(h),i=g.length; 135if(e)z(c);else if(!h.hasClass("dw-v")){for(var j=h,r=0,m=0;0<=b-r&&!j.hasClass("dw-v");)r++,j=g.eq(b-r);for(;b+m<i&&!h.hasClass("dw-v");)m++,h=g.eq(b+m);(m<r&&m&&2!==d||!r||0>b-r||1==d)&&h.hasClass("dw-v")?b+=m:(h=j,b-=r)}d=h.hasClass("dw-sel");f&&(e||(a(".dw-sel",c).removeAttr("aria-selected"),h.attr("aria-selected","true")),a(".dw-sel",c).removeClass("dw-sel"),h.addClass("dw-sel"));return{selected:d,v:e?k(b,ea,ga):b,val:h.hasClass("dw-v")||e?h.attr("data-val"):null}}function J(b,d,e,f,h){!1!==V("validate", 136[R,d,b,f])&&(a(".dw-ul",R).each(function(e){var g=a(this),i=g.closest(".dwwl").hasClass("dwwms"),k=e==d||d===c,i=m(M._tempWheelArray[e],g,f,i,!0);if(!i.selected||k)M._tempWheelArray[e]=i.val,S(g,e,i.v,k?b:0.1,k?h:!1)}),V("onValidated",[]),M._tempValue=G.formatValue(M._tempWheelArray,M),M.live&&(M._hasValue=e||M._hasValue,H(e,e,0,!0)),M._header.html(W(M._tempValue)),e&&V("onChange",[M._tempValue]))}function v(b,c,d,e,f,h){d=k(d,ea,ga);M._tempWheelArray[c]=a(".dw-li",b).eq(d).attr("data-val");S(b,c, 137d,f,h);setTimeout(function(){J(f,c,!0,e,h)},10)}function O(a){var b=za[da]+1;v(a,da,b>ga?ea:b,1,0.1)}function p(a){var b=za[da]-1;v(a,da,b<ea?ga:b,2,0.1)}function H(a,b,c,d,e){M._isVisible&&!d&&J(c);M._tempValue=G.formatValue(M._tempWheelArray,M);e||(M._wheelArray=M._tempWheelArray.slice(0),M._value=M._hasValue?M._tempValue:null);a&&(V("onValueFill",[M._hasValue?M._tempValue:"",b]),M._isInput&&wa.val(M._hasValue?M._tempValue:""),b&&(M._preventChange=!0,wa.change()))}var R,U,F,P,Z,G,Q,V,L,ca,T,ha, 138ia,A,ea,ga,aa,da,ma,fa,M=this,wa=a(b),na={},za={},ka={},ra=[];g.Frame.call(this,b,B,!0);M.setVal=M._setVal=function(d,e,f,h,g){M._hasValue=null!==d&&d!==c;M._tempWheelArray=a.isArray(d)?d.slice(0):G.parseValue.call(b,d,M)||[];H(e,f===c?e:f,g,!1,h)};M.getVal=M._getVal=function(a){a=M._hasValue||a?M[a?"_tempValue":"_value"]:null;return f.isNumeric(a)?+a:a};M.setArrayVal=M.setVal;M.getArrayVal=function(a){return a?M._tempWheelArray:M._wheelArray};M.setValue=function(a,b,c,d,e){M.setVal(a,b,e,d,c)};M.getValue= 139M.getArrayVal;M.changeWheel=function(b,d,e){if(R){var f=0,h=b.length;a.each(G.wheels,function(g,i){a.each(i,function(g,i){if(-1<a.inArray(f,b)&&(ra[f]=i,a(".dw-ul",R).eq(f).html(I(f)),h--,!h))return M.position(),J(d,c,e),!1;f++});if(!h)return!1})}};M.getValidCell=m;M.scroll=S;M._generateContent=function(){var b,d="",e=0;a.each(G.wheels,function(f,h){d+='<div class="mbsc-w-p dwc'+("scroller"!=G.mode?" dwpm":" dwsc")+(G.showLabel?"":" dwhl")+'"><div class="dwwc"'+(G.maxWidth?"":' style="max-width:288px;"')+ 140">"+(o?"":'<table class="dw-tbl" cellpadding="0" cellspacing="0"><tr>');a.each(h,function(a,f){ra[e]=f;b=f.label!==c?f.label:a;d+="<"+(o?"div":"td")+' class="dwfl dwfl-'+ e +'" style="'+(G.fixedWidth?"width:"+(G.fixedWidth[e]||G.fixedWidth)+"px;":(G.minWidth?"min-width:"+(G.minWidth[e]||G.minWidth)+"px;":"min-width:"+G.width+"px;")+(G.maxWidth?"max-width:"+(G.maxWidth[e]||G.maxWidth)+"px;":""))+'"><div class="dwwl dwwl'+e+(f.multiple?" dwwms":"")+'">'+("scroller"!=G.mode?'<div class="dwb-e dwwb dwwbp '+(G.btnPlusClass|| 141"")+'" style="height:'+P+"px;line-height:"+P+'px;"><span>+</span></div><div class="dwb-e dwwb dwwbm '+(G.btnMinusClass||"")+'" style="height:'+P+"px;line-height:"+P+'px;"><span>–</span></div>':"")+'<div class="dwl">
141'+b+'</div><div tabindex="0" aria-live="off" aria-label="'+b+'" role="listbox" class="dwww"><div class="dww" style="height:'+G.rows*P+'px;"><div class="dw-ul" style="margin-top:'+(f.multiple?"scroller"==G.mode?0:P:G.rows/2*P-P/2)+'px;">';d+=I(e)+'</div></div><div class="dwwo"></div></div><div class="dwwol"'+ 142(G.selectedLineHeight?' style="height:'+P+"px;margin-top:-"+(P/2+(G.selectedLineBorder||0))+'px;"':"")+"></div></div>"+(o?"</div>":"</td>");e++});d+=(o?"":"</tr></table>")+"</div></div>"});return d};M._attachEvents=function(a){a.on("keydown",".dwwl",l).on("keyup",".dwwl",E).on("touchstart mousedown",".dwwl",t).on("touchmove",".dwwl",q).on("touchend",".dwwl",u).on("touchstart mousedown",".dwwb",N).on("touchend",".dwwb",x);if(G.mousewheel)a.on("wheel mousewheel",".dwwl",K)};M._markupReady=function(a){R= 143a;J()};M._fillValue=function(){M._hasValue=!0;H(!0,!0,0,!0)};M._readValue=function(){var a=wa.val()||"";""!==a&&(M._hasValue=!0);M._tempWheelArray=M._hasValue&&M._wheelArray?M._wheelArray.slice(0):G.parseValue.call(b,a,M)||[];H()};M._processSettings=function(){G=M.settings;V=M.trigger;P=G.height;ma=G.multiline;M._isLiquid="liquid"===(G.layout||(/top|bottom/.test(G.display)&&1==G.wheels.length?"liquid":""));G.formatResult&&(G.formatValue=G.formatResult);1<ma&&(G.cssClass=(G.cssClass||"")+" dw-ml"); 144"scroller"!=G.mode&&(G.rows=Math.max(3,G.rows))};M._selectedValues={};C||M.init(B)};g.Scroller.prototype={_hasDef:!0,_hasTheme:!0,_hasLang:!0,_hasPreset:!0,_class:"scroller",_defaults:a.extend({},g.Frame.prototype._defaults,{minWidth:80,height:40,rows:3,multiline:1,delay:300,readonly:!1,showLabel:!0,confirmOnTap:!0,wheels:[],mode:"scroller",preset:"",speedUnit:0.0012,timeUnit:0.08,formatValue:function(a){return a.join(" ")},parseValue:function(b,d){var e=[],f=[],h=0,g,i;null!==b&&b!==c&&(e=(b+"").split(" ")); 145a.each(d.settings.wheels,function(b,c){a.each(c,function(b,c){i=c.keys||c.values;g=i[0];a.each(i,function(a,b){if(e[h]==b)return g=b,!1});f.push(g);h++})});return f}})};b.themes.scroller=b.themes.frame})(jQuery,window,document);(function(a){var b=a.mobiscroll;b.datetime={defaults:{shortYearCutoff:"+10",monthNames:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthNamesShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),dayNames:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),dayNamesShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),dayNamesMin:"S,M,T,W,T,F,S".split(","),amText:"am",pmText:"pm",getYear:function(a){return new Date(a).getFullYear()}, 146getMonth:function(a){return new Date(a).getMonth()},getDay:function(a){return new Date(a).getDate()},getDate:function(a,b,e,g,f,h,j){return new Date(a,b,e,g||0,f||0,h||0,j||0)},getMaxDayOfMonth:function(a,b){return 32-(new Date(a,b,32)).getDate()},getWeekNumber:function(a){a=new Date(a);a.setHours(0,0,0);a.setDate(a.getDate()+4-(a.getDay()||7));var b=new Date(a.getFullYear(),0,1);return Math.ceil(((a-b)/864E5+1)/7)}},formatDate:function(d,c,e){if(!c)return null;var e=a.extend({},b.datetime.defaults,e),g=function(a){for(var b= 1470;j+1<d.length&&d.charAt(j+1)==a;)b++,j++;return b},f=function(a,b,c){b=""+b;if(g(a))for(;b.length<c;)b="0"+b;return b},h=function(a,b,c,d){return g(a)?d[b]:c[b]},j,o,i="",k=!1;for(j=0;j<d.length;j++)if(k)"'"==d.charAt(j)&&!g("'")?k=!1:i+=d.charAt(j);else switch(d.charAt(j)){case "d":i+=f("d",e.getDay(c),2);break;case "D":i+=h("D",c.getDay(),e.dayNamesShort,e.dayNames);break;case "o":i+=f("o",(c.getTime()-(new Date(c.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":i+=f("m",e.getMonth(c)+1, 1482);break;case "M":i+=h("M",e.getMonth(c),e.monthNamesShort,e.monthNames);break;case "y":o=e.getYear(c);i+=g("y")?o:(10>o%100?"0":"")+o%100;break;case "h":o=c.getHours();i+=f("h",12<o?o-12:0===o?12:o,2);break;case "H":i+=f("H",c.getHours(),2);break;case "i":i+=f("i",c.getMinutes(),2);break;case "s":i+=f("s",c.getSeconds(),2);break;case "a":i+=11<c.getHours()?e.pmText:e.amText;break;case "A":i+=11<c.getHours()?e.pmText.toUpperCase():e.amText.toUpperCase();break;
148case "'":g("'")?i+="'":k=!0;break;default:i+= 149d.charAt(j)}return i},parseDate:function(d,c,e){var e=a.extend({},b.datetime.defaults,e),g=e.defaultValue||new Date;if(!d||!c)return g;if(c.getTime)return c;var c="object"==typeof c?c.toString():c+"",f=e.shortYearCutoff,h=e.getYear(g),j=e.getMonth(g)+1,o=e.getDay(g),i=-1,k=g.getHours(),n=g.getMinutes(),r=0,B=-1,C=!1,t=function(a){(a=x+1<d.length&&d.charAt(x+1)==a)&&x++;return a},q=function(a){t(a);a=c.substr(N).match(RegExp("^\\d{1,"+("@"==a?14:"!"==a?20:"y"==a?4:"o"==a?3:2)+"}"));if(!a)return 0; 150N+=a[0].length;return parseInt(a[0],10)},u=function(a,b,d){a=t(a)?d:b;for(b=0;b<a.length;b++)if(c.substr(N,a[b].length).toLowerCase()==a[b].toLowerCase())return N+=a[b].length,b+1;return 0},N=0,x;for(x=0;x<d.length;x++)if(C)"'"==d.charAt(x)&&!t("'")?C=!1:N++;else switch(d.charAt(x)){case "d":o=q("d");break;case "D":u("D",e.dayNamesShort,e.dayNames);break;case "o":i=q("o");break;case "m":j=q("m");break;case "M":j=u("M",e.monthNamesShort,e.monthNames);break;case "y":h=q("y");break;case "H":k=q("H"); 151break;case "h":k=q("h");break;case "i":n=q("i");break;case "s":r=q("s");break;case "a":B=u("a",[e.amText,e.pmText],[e.amText,e.pmText])-1;break;case "A":B=u("A",[e.amText,e.pmText],[e.amText,e.pmText])-1;break;
151case "'":t("'")?N++:C=!0;break;default:N++}100>h&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=("string"!=typeof f?f:(new Date).getFullYear()%100+parseInt(f,10))?0:-100));if(-1<i){j=1;o=i;do{f=32-(new Date(h,j-1,32)).getDate();if(o<=f)break;j++;o-=f}while(1)}k=e.getDate(h,j- 1521,o,-1==B?k:B&&12>k?k+12:!B&&12==k?0:k,n,r);return e.getYear(k)!=h||e.getMonth(k)+1!=j||e.getDay(k)!=o?g:k}};b.formatDate=b.datetime.formatDate;b.parseDate=b.datetime.parseDate})(jQuery);(function(a,b,d,c){var e=a.mobiscroll,g=e.presets.scroller,f=e.util,h=f.has3d,j=f.jsPrefix,o=f.testTouch,i={controls:["calendar"],firstDay:0,weekDays:"short",maxMonthWidth:170,months:1,preMonths:1,highlight:!0,swipe:!0,liveSwipe:!0,divergentDayChange:!0,quickNav:!0,navigation:"yearMonth",dateText:"Date",timeText:"Time",calendarText:"Calendar",todayText:"Today",prevMonthText:"Previous Month",nextMonthText:"Next Month",prevYearText:"Previous Year",nextYearText:"Next Year",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left6", 153btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right6"};g.calbase=function(b){function n(b,c,d){var e,f,h,g,i={},j=qa+Ja;b&&a.each(b,function(a,b){e=b.d||b.start||b;f=e+"";if(b.start&&b.end)for(g=new Date(b.start);g<=b.end;)h=new Date(g.getFullYear(),g.getMonth(),g.getDate()),i[h]=i[h]||[],i[h].push(b),g.setDate(g.getDate()+1);else if(e.getTime)h=new Date(e.getFullYear(),e.getMonth(),e.getDate()),i[h]=i[h]||[],i[h].push(b);else if(f.match(/w/i)){var k=+f.replace("w",""),m=0,r=y.getDate(c,d-qa-oa,1).getDay(); 1541<y.firstDay-r+1&&(m=7);for(H=0;H<5*Ga;H++)h=y.getDate(c,d-qa-oa,7*H-m-r+1+k),i[h]=i[h]||[],i[h].push(b)}else if(f=f.split("/"),f[1])11<=d+j&&(h=y.getDate(c+1,f[0]-1,f[1]),i[h]=i[h]||[],i[h].push(b)),1>=d-j&&(h=y.getDate(c-1,f[0]-1,f[1]),i[h]=i[h]||[],i[h].push(b)),h=y.getDate(c,f[0]-1,f[1]),i[h]=i[h]||[],i[h].push(b);else for(H=0;H<Ga;H++)h=y.getDate(c,d-qa-oa+H,f[0]),i[h]=i[h]||[],i[h].push(b)});return i}function r(a,c){Ka=n(y.invalid,a,c);Eb=n(y.valid,a,c);b.onGenMonth(a,c)}function B(a,b,c,d, 155e,f,h){var g='<div class="dw-cal-h dw-cal-sc-c dw-cal-'+a+"-c "+(y.calendarClass||"")+'"><div class="dw-cal-sc"><div class="dw-cal-sc-p"><div class="dw-cal-sc-tbl"><div class="dw-cal-sc-row">';for(p=1;p<=b;p++)g=12>=p||p>c?g+'<div class="dw-cal-sc-m-cell dw-cal-sc-cell dw-cal-sc-empty"><div class="dw-i"> </div></div>':g+('<div tabindex="0" role="button"'+(f?' aria-label="'+f[p-13]+'"':"")+' class="dwb-e dwb-nhl dw-cal-sc-m-cell dw-cal-sc-cell dw-cal-'+a+'-s" data-val='+(d+p-13)+'><div class="dw-i dw-cal-sc-tbl"><div class="dw-cal-sc-cell">'+ 156(h?h[p-13]:d+p-13+e)+"</div></div></div>"),p<b&&(0===p%12?g+='</div></div></div><div class="dw-cal-sc-p" style="'+(Ta?"top":Ya?"right":"left")+":"+100*Math.round(p/12)+'%"><div class="dw-cal-sc-tbl"><div class="dw-cal-sc-row">':0===p%3&&(g+='</div><div class="dw-cal-sc-row">'));return g+"</div></div></div></div></div>"}function C(d,e){var f,h,g,i,j,m,r,o,p,n,G,A,q,l,H=1,v=0;f=y.getDate(d,e,1);var za=y.getYear(f),ca=y.getMonth(f),B=null===y.defaultValue&&!b._hasValue?null:b.getDate(!0),D=y.getDate(za, 157ca,1).getDay(),s='<div class="dw-cal-table">',C='<div class="dw-week-nr-c">';1<y.firstDay-D+1&&(v=7);for(l=0;42>l;l++)q=l+y.firstDay-v,f=y.getDate(za,ca,q-D+1),h=f.getFullYear(),g=f.getMonth(),i=f.getDate(),j=y.getMonth(f),m=y.getDay(f),A=y.getMaxDayOfMonth(h,g),r=h+"-"+g+"-"+i,g=a.extend({valid:f<new Date(hb.getFullYear(),hb.getMonth(),hb.getDate())||f>ya?!1:Ka[f]===c||Eb[f]!==c,selected:B&&B.getFullYear()===h&&B.getMonth()===g&&B.getDate()===i},b.getDayProps(f,B)),o=g.valid,p=g.selected,h=g.cssClass, 158n=f.getTime()===(new Date).setHours(0,0,0,0),G=j!==ca,Bb[r]=g,0===l%7&&(s+=(l?"</div>":"")+'<div class="dw-cal-row'+(y.highlight&&B&&0<=B-f&&6048E5>B-f?" dw-cal-week-hl":"")+'">'),nb&&1==f.getDay()&&("month"==nb&&G&&1<H?H=1==i?1:2:"year"==nb&&(H=y.getWeekNumber(f)),C+='<div class="dw-week-nr"><div class="dw-week-nr-i">'+H+"</div></div>",H++),s+='<div role="button" tabindex="-1" aria-label="'+(n?y.todayText+", ":"")+y.dayNames[f.getDay()]+", "+y.monthNames[j]+" "+m+" "+(g.ariaLabel?", "+g.ariaLabel: 159"")+'"'+(G&&!Xa?' aria-hidden="true"':"")+(p?' aria-selected="true"':"")+(o?"":' aria-disabled="true"')+' data-day="'+q%7+'" data-full="'+r+'"class="dw-cal-day '+(n?" dw-cal-today":"")+(y.dayClass||"")+(p?" dw-sel":"")+(h?" "+h:"")+(1==m?" dw-cal-day-first":"")+(m==A?" dw-cal-day-last":"")+(G?" dw-cal-day-diff":"")+(o?" dw-cal-day-v dwb-e dwb-nhl":" dw-cal-day-inv")+'"><div class="dw-i '+(p?ta:"")+" "+(y.innerDayClass||"")+'"><div class="dw-cal-day-fg">'+m+"</div>"+(g.markup||"")+'<div class="dw-cal-day-frame"></div></div></div>'; 160return s+("</div></div>"+C+"</div>")}function t(b,c,d){var e=y.getDate(b,c,1),f=y.getYear(e),e=y.getMonth(e),h=f+Ea;if(ab){cb&&cb.removeClass("dw-sel").removeAttr("aria-selected").find(".dw-i").removeClass(ta);sb&&sb.removeClass("dw-sel").removeAttr("aria-selected").find(".dw-i").removeClass(ta);cb=a('.dw-cal-year-s[data-val="'+f+'"]',F).addClass("dw-sel").attr("aria-selected","true");sb=a('.dw-cal-month-s[data-val="'+e+'"]',F).addClass("dw-sel").attr("aria-selected","true");cb.find(".dw-i").addClass(ta); 161sb.find(".dw-i").addClass(ta);Va&&Va.scroll(cb,d);a(".dw-cal-month-s",F).removeClass("dwb-d");if(f===na)for(p=0;p<ka;p++)a('.dw-cal-month-s[data-val="'+p+'"]',F).addClass("dwb-d");if(f===za)for(p=ra+1;12>=p;p++)a('.dw-cal-month-s[data-val="'+p+'"]',F).addClass("dwb-d")}1==M.length&&M.attr("aria-label",f).html(h);for(p=0;p<la;++p)e=y.getDate(b,c-oa+p,1),f=y.getYear(e),e=y.getMonth(e),h=f+Ea,a(ma[p]).attr("aria-label",y.monthNames[e]+(Fa?"":" "+f)).html((!Fa&&wa<fa?h+" ":"")+ga[e]+(!Fa&&wa>fa?" "+h: 162"")),1<M.length&&a(M[p]).html(h);y.getDate(b,c-oa-1,1)<pa?u(a(".dw-cal-prev-m",F)):q(a(".dw-cal-prev-m",F));y.getDate(b,c+la-oa,1)>La?u(a(".dw-cal-next-m",F)):q(a(".dw-cal-next-m",F));y.getDate(b,c,1).getFullYear()<=pa.getFullYear()?u(a(".dw-cal-prev-y",F)):q(a(".dw-cal-prev-y",F));y.getDate(b,c,1).getFullYear()>=La.getFullYear()?u(a(".dw-cal-next-y",F)):q(a(".dw-cal-next-y",F))}function q(a){a.removeClass(rb).find(".dw-cal-btn-txt").removeAttr("aria-disabled")}function u(a){a.addClass(rb).find(".dw-cal-btn-txt").attr("aria-disabled", 163"true")}function N(c,d){if(ca&&("calendar"===Wa||d)){var e,f,h=y.getDate(sa,ja,1),g=Math.abs(12*(y.getYear(c)-y.getYear(h))+y.getMonth(c)-y.getMonth(h));b.needsSlide&&g&&(sa=y.getYear(c),ja=y.getMonth(c),c>h?(f=g>qa-oa+la-1,ja-=f?0:g-qa,e="next"):c<h&&(f=g>qa+oa,ja+=f?0:g-qa,e="prev"),K(sa,ja,e,Math.min(g,qa),f,!0));d||(b.trigger("onDayHighlight",[c]),y.highlight&&(a(".dw-sel .dw-i",Z).removeClass(ta),a(".dw-sel",Z).removeClass("dw-sel").removeAttr("aria-selected"),a(".dw-cal-week-hl",Z).removeClass("dw-cal-week-hl"), 164(null!==y.defaultValue||b._hasValue)&&a('.dw-cal-day[data-full="'+c.getFullYear()+"-"+c.getMonth()+"-"+c.getDate()+'"]',Z).addClass("dw-sel").attr("aria-selected","true").find(".dw-i").addClass(ta).closest(".dw-cal-row").addClass("dw-cal-week-hl")));b.needsSlide=!0}}function x(a,c){r(a,c);for(p=0;p<Ga;p++)xa[p].html(C(a,c-oa-qa+p));E();b.needsRefresh=!1}function l(b,c,d){var e=qa,f=qa;if(d){for(;f&&y.getDate(b,c+e+la-oa-1,1)>La;)f--;for(;e&&y.getDate(b,c-f-oa,1)<pa;)e--}a.extend(aa.settings,{contSize:la* 165Q,snap:Q,minScroll:V-(Ya?e:f)*Q,maxScroll:V+(Ya?f:e)*Q});aa.refresh()}function E(){nb&&ia.html(a(".dw-week-nr-c",xa[qa]).html());a(".dw-cal-slide-a .dw-cal-day",G).attr("tabindex",0)}function K(c,d,e,f,h,g,i){c&&fb.push({y:c,m:d,dir:e,slideNr:f,load:h,active:g,callback:i});if(!Za){var j=fb.shift(),c=j.y,d=j.m,e="next"===j.dir,f=j.slideNr,h=j.load,g=j.active,i=j.callback||Cb,j=y.getDate(c,d,1),c=y.getYear(j),d=y.getMonth(j);Za=!0;b.changing=!0;b.trigger("onMonthChange",[c,d]);r(c,d);if(h)for(p=0;p< 166la;p++)xa[e?Ga-la+p:p].html(C(c,d-oa+p));g&&Aa.addClass("dw-cal-slide-a");setTimeout(function(){b.ariaMessage(y.monthNames[d]+" "+c);t(c,d,200);V=e?V-Q*f*gb:V+Q*f*gb;aa.scroll(V,ea?200:0,function(){setTimeout(function(){var g;if(xa.length){Aa.removeClass("dw-cal-slide-a").attr("aria-hidden","true");if(e){g=xa.splice(0,f);for(p=0;p<f;p++)xa.push(g[p]),s(xa[xa.length-1],+xa[xa.length-2].data("curr")+100*gb)}else{g=xa.splice(Ga-f,f);for(p=f-1;0<=p;p--)xa.unshift(g[p]),s(xa[0],+xa[1].data("curr")-100* 167gb)}for(p=0;p<f;p++)xa[e?Ga-f+p:p].html(C(c,d-oa-qa+p+(e?Ga-f:0))),h&&xa[e?p:Ga-f+p].html(C(c,d-oa-qa+p+(e?0:Ga-f)));for(p=0;p<la;p++)xa[qa+p].addClass("dw-cal-slide-a").removeAttr("aria-hidden");l(c,d,!0);Za=!1}fb.length?setTimeout(function(){K()},10):(sa=c,ja=d,b.changing=!1,a(".dw-cal-day",G).attr("tabindex",-1),E(),b.needsRefresh&&b.isVisible()&&ca&&x(sa,ja
167),b.trigger("onMonthLoaded",[c,d]),i())},ea?0:200)})},10)}}function w(){var c=a(this),d=b.live,e=b.getDate(!0),f=c.attr("data-full"),h=f.split("-"), 168h=new Date(h[0],h[1],h[2]),e=new Date(h.getFullYear(),h.getMonth(),h.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()),g=c.hasClass("dw-sel");if((Xa||!c.hasClass("dw-cal-day-diff"))&&!1!==b.trigger("onDayChange",[a.extend(Bb[f],{date:e,cell:this,selected:g})]))b.needsSlide=!1,L=!0,b.setDate(e,d,0.2,!d,!0),y.divergentDayChange&&(Sa=!0,h<y.getDate(sa,ja-oa,1)?z():h>y.getDate(sa,ja-oa+la,0)&&I(),Sa=!1)}function s(a,b){a.data("curr",b);h?a[0].style[j+"Transform"]="translate3d("+(Ta?"0,"+b+"%,":b+ 169"%,0,")+"0)":a[0].style[Ta?"top":"left"]=b+"%"}function I(){Sa&&y.getDate(sa,ja+la-oa,1)<=La&&K(sa,++ja,"next",1,!1,!0,I)}function z(){Sa&&y.getDate(sa,ja-oa-1,1)>=pa&&K(sa,--ja,"prev",1,!1,!0,z)}function W(a){Sa&&y.getDate(sa,ja,1)<=y.getDate(y.getYear(La)-1,y.getMonth(La)-Ja,1)?K(++sa,ja,"next",qa,!0,!0,function(){W(a)}):Sa&&!a.hasClass("dwb-d")&&K(y.getYear(La),y.getMonth(La)-Ja,"next",qa,!0,!0)}function D(a){Sa&&y.getDate(sa,ja,1)>=y.getDate(y.getYear(pa)+1,y.getMonth(pa)+oa,1)?K(--sa,ja,"prev", 170qa,!0,!0,function(){D(a)}):Sa&&!a.hasClass("dwb-d")&&K(y.getYear(pa),y.getMonth(pa)+oa,"prev",qa,!0,!0)}function S(a,c){a.hasClass("dw-cal-v")||(a.addClass("dw-cal-v"+(c?"":" dw-cal-p-in")).removeClass("dw-cal-p-out dw-cal-h"),b.trigger("onSelectShow",[]))}function m(a,b){a.hasClass("dw-cal-v")&&a.removeClass("dw-cal-v dw-cal-p-in").addClass("dw-cal-h"+(b?"":" dw-cal-p-out"))}function J(a,b){(b||a).hasClass("dw-cal-v")?m(a):S(a)}function v(){a(this).removeClass("dw-cal-p-out dw-cal-p-in")}var O,p, 171H,R,U,F,P,Z,G,Q,V,L,ca,T,ha,ia,A,ea,ga,aa,da,ma,fa,M,wa,na,za,ka,ra,pa,La,hb,ya,Ba,sa,ja,ob,pb,Eb,Ka,Ra,Wa,Za,Sa,la,Ga,Ja,oa,Xa,Va,cb,sb,Gb=this,Aa=[],xa=[],fb=[],va={},Bb={},Cb=function(){},Xb=a.extend({},b.settings),y=a.extend(b.settings,i,Xb),Ua="full"==y.weekDays?"":"min"==y.weekDays?"Min":"Short",nb=y.weekCounter,Jb=y.layout||(/top|bottom/.test(y.display)?"liquid":""),Ha="liquid"==Jb&&"bubble"!==y.display,zb="modal"==y.display,Ya=y.rtl,gb=Ya?-1:1,Ib=Ha?null:y.calendarWidth,Ta="vertical"==y.swipeDirection, 172ab=y.quickNav,qa=y.preMonths,Fa="yearMonth"==y.navigation,Da=y.controls.join(","),bb=(!0===y.tabs||!1!==y.tabs&&Ha)&&1<y.controls.length,X=!bb&&y.tabs===c&&!Ha&&1<y.controls.length,Ea=y.yearSuffix||"",ta=y.activeClass||"",qb="dw-sel "+(y.activeTabClass||""),jb=y.activeTabInnerClass||"",rb="dwb-d "+(y.disabledClass||""),Pa="",ua="";Da.match(/calendar/)?ca=!0:ab=!1;Da.match(/date/)&&(va.date=1);Da.match(/time/)&&(va.time=1);ca&&va.date&&(bb=!0,X=!1);y.layout=Jb;y.preset=(va.date||ca?"date":"")+(va.time? 173"time":"");if("inline"==y.display)a(this).closest('[data-role="page"]').on("pageshow",function(){b.position()});b.changing=!1;b.needsRefresh=!1;b.needsSlide=!0;b.getDayProps=Cb;b.onGenMonth=Cb;b.prepareObj=n;b.refresh=function(){b.changing?b.needsRefresh=true:b.isVisible()&&ca&&x(sa,ja)};b.navigate=function(a,c){var d,e,f=b.isVisible();if(c&&f)N(a,true);else{d=y.getYear(a);e=y.getMonth(a);if(f&&(d!=sa||e!=ja)){b.trigger("onMonthChange",[d,e]);t(d,e);x(d,e)}sa=d;ja=e}};b.showMonthView=function(){if(ab&& 174!ea){m(ua,true);m(Pa,true);S(A,true);ea=true}};R=g.datetime.call(this,b);fa=y.dateOrder.search(/m/i);wa=y.dateOrder.search(/y/i);a.extend(R,{ariaMessage:y.calendarText,onMarkupReady:function(g){var i,j,r="";F=g;P=y.display=="inline"?a(this).is("div")?a(this):a(this).parent():b.context;Ba=b.getDate(true);if(!sa){sa=y.getYear(Ba);ja=y.getMonth(Ba)}V=0;ha=true;Za=false;ga=y.monthNames;Wa="calendar";if(y.minDate){pa=new Date(y.minDate.getFullYear(),y.minDate.getMonth(),1);hb=y.minDate}else hb=pa=new Date(y.startYear, 1750,1);if(y.maxDate){La=new Date(y.maxDate.getFullYear(),y.maxDate.getMonth(),1);ya=y.maxDate}else ya=La=new Date(y.endYear,11,31,23,59,59);g.addClass("dw-calendar"+(h?"":" dw-cal-no3d"));U=a(".dw",g);Ra=a(".dwcc",g);va.date?va.date=a(".dwc",F).eq(0):ca&&a(".dwc",F).eq(0).addClass("dwc-hh");if(va.time)va.time=a(".dwc",F).eq(1);if(ca){la=y.months=="auto"?Math.max(1,Math.min(3,Math.floor((Ib||P[0].innerWidth||P.innerWidth())/280))):y.months;Ga=la+2*qa;Ja=Math.floor(la/2);oa=Math.round(la/2)-1;Xa=y.showDivergentDays=== 176c?la<2:y.showDivergentDays;Ta=Ta&&la<2;j='<div class="dw-cal-btnw"><div class="'+(Ya?"dw-cal-next-m":"dw-cal-prev-m")+' dw-cal-prev dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt '+(y.btnCalPrevClass||"")+'" aria-label="'+y.prevMonthText+'"></div></div>';for(p=0;p<la;++p)j=j+('<div class="dw-cal-btnw-m" style="width: '+100/la+'%"><span role="button" class="dw-cal-month"></span></div>');j=j+('<div class="'+(Ya?"dw-cal-prev-m":"dw-cal-next-m")+' dw-cal-next dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt '+ 177(y.btnCalNextClass||"")+'" aria-label="'+y.nextMonthText+'"></div></div></div>');Fa&&(r='<div class="dw-cal-btnw"><div class="'+(Ya?"dw-cal-next-y":"dw-cal-prev-y")+' dw-cal-prev dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt '+(y.btnCalPrevClass||"")+'" aria-label="'+y.prevYearText+'"></div></div><span role="button" class="dw-cal-year"></span><div class="'+(Ya?"dw-cal-prev-y":"dw-cal-next-y")+' dw-cal-next dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt '+ 178(y.btnCalNextClass||"")+'" aria-label="'+y.nextYearText+'"></div></div></div>');if(ab){na=y.getYear(pa);za=y.getYear(La);ka=y.getMonth(pa);ra=y.getMonth(La);pb=Math.ceil((za-na+1)/12)+2;Pa=B("month",36,24,0,"",y.monthNames,y.monthNamesShort);ua=B("year",pb*12,za-na+13,na,Ea)}T='<div class="mbsc-w-p dw-cal-c"><div class="dw-cal '+(la>1?" dw-cal-multi ":"")+(nb?" dw-weeks ":"")+(Xa?"":" dw-hide-diff ")+(y.calendarClass||"")+'"><div class="dw-cal-header"><div class="dw-cal-btnc '+(Fa?"dw-cal-btnc-ym": 179"dw-cal-btnc-m")+'">'+(wa<fa||la>1?r+j:j+r)+'</div></div><div class="dw-cal-body"><div class="dw-cal-m-c dw-cal-v"><div class="dw-cal-days-c">';for(H=0;H<la;++H){T=T+('<div aria-hidden="true" class="dw-cal-days" style="width: '+100/la+'%"><table cellpadding="0" cellspacing="0"><tr>');for(p=0;p<7;p++)T=T+("<th>"+y["dayNames"+Ua][(p+y.firstDay)%7]+"</th>");T=T+"</tr></table></div>"}T=T+('</div><div class="dw-cal-anim-c '+(y.calendarClass||"")+'"><div class="dw-week-nrs-c '+(y.weekNrClass||"")+'"><div class="dw-week-nrs"></div></div><div class="dw-cal-anim">'); 180for(p=0;p<la+2*qa;
180p++)T=T+'<div class="dw-cal-slide" aria-hidden="true"></div>';T=T+("</div></div></div>"+Pa+ua+"</div></div></div>");va.calendar=a(T)}a.each(y.controls,function(b,c){va[c]=a('<div class="dw-cal-pnl" id="'+(Gb.id+"_dw_pnl_"+b)+'"></div>').append(a('<div class="dw-cal-pnl-i"></div>').append(va[c])).appendTo(Ra)});i='<div class="dw-cal-tabs"><ul role="tablist">';a.each(y.controls,function(a,b){va[b]&&(i=i+('<li role="tab" aria-controls="'+(Gb.id+"_dw_pnl_"+a)+'" class="dw-cal-tab '+ 181(a?"":qb)+'" data-control="'+b+'"><a href="#" class="dwb-e dwb-nhl dw-i '+(!a?jb:"")+'">'+y[b+"Text"]+"</a></li>"))});i=i+"</ul></div>";Ra.before(i);Z=a(".dw-cal-anim-c",F);G=a(".dw-cal-anim",Z);ia=a(".dw-week-nrs",Z);if(ca){ea=true;Aa=a(".dw-cal-slide",G).each(function(b,c){xa.push(a(c))});Aa.slice(qa,qa+la).addClass("dw-cal-slide-a").removeAttr("aria-hidden");for(p=0;p<Ga;p++)s(xa[p],100*(p-qa)*gb);x(sa,ja);aa=new e.classes.ScrollView(Z[0],{axis:Ta?"Y":"X",easing:"",contSize:0,snap:1,maxSnapScroll:qa, 182moveElement:G,mousewheel:y.mousewheel,swipe:y.swipe,liveSwipe:y.liveSwipe,time:200,lock:true,onScrollStart:function(a,c){c.settings.scrollLock=b.scrollLock},onScrollEnd:function(a){(a=Math.round((a-V)/Q)*gb)&&K(sa,ja-a,a>0?"prev":"next",a>0?a:-a)}})}ma=a(".dw-cal-month",F);M=a(".dw-cal-year",F);A=a(".dw-cal-m-c",F);if(ab){A.on("webkitAnimationEnd animationend",v);Pa=a(".dw-cal-month-c",F).on("webkitAnimationEnd animationend",v);ua=a(".dw-cal-year-c",F).on("webkitAnimationEnd animationend",v);a(".dw-cal-sc-p", 183F);ob={axis:Ta?"Y":"X",contSize:0,snap:1,maxSnapScroll:1,rtl:y.rtl,mousewheel:y.mousewheel,swipe:y.swipe,liveSwipe:y.liveSwipe,time:200};Va=new e.classes.ScrollView(ua[0],ob);da=new e.classes.ScrollView(Pa[0],ob)}setTimeout(function(){b.tap(Z,function(b){b=a(b.target);if(!Za&&!aa.scrolled){b=b.closest(".dw-cal-day",this);b.hasClass("dw-cal-day-v")&&w.call(b[0])}});a(".dw-cal-btn",F).on("touchstart mousedown keydown",function(b){var c=a(this);if(b.type!=="keydown"){b.preventDefault();b=o(b,this)}else b= 184b.keyCode===32;if(!Sa&&b&&!c.hasClass("dwb-d")){Sa=true;c.hasClass("dw-cal-prev-m")?z():c.hasClass("dw-cal-next-m")?I():c.hasClass("dw-cal-prev-y")?D(c):c.hasClass("dw-cal-next-y")&&W(c);a(d).on("mouseup.dwbtn",function(){a(d).off(".dwbtn");Sa=false})}}).on("touchend touchcancel keyup",function(){Sa=false});a(".dw-cal-tab",F).on("touchstart click",function(c){var d=a(this);if(o(c,this)&&!d.hasClass("dw-sel")){Wa=d.attr("data-control");a(".dw-cal-pnl",F).removeClass("dw-cal-p-in").addClass("dw-cal-pnl-h"); 185a(".dw-cal-tab",F).removeClass(qb).removeAttr("aria-selected").find(".dw-i").removeClass(jb);d.addClass(qb).attr("aria-selected","true").find(".dw-i").addClass(jb);va[Wa].removeClass("dw-cal-pnl-h").addClass("dw-cal-p-in");if(Wa==="calendar"){O=b.getDate(true);(O.getFullYear()!==Ba.getFullYear()||O.getMonth()!==Ba.getMonth()||O.getDate()!==Ba.getDate())&&N(O)}else{Ba=b.getDate(true);b.setDate(Ba,false,0,true)}b.showMonthView();b.trigger("onTabChange",[Wa])}});if(ab){b.tap(a(".dw-cal-month",F),function(){if(!ua.hasClass("dw-cal-v")){J(A); 186ea=A.hasClass("dw-cal-v")}J(Pa);m(ua)});b.tap(a(".dw-cal-year",F),function(){ua.hasClass("dw-cal-v")||Va.scroll(cb);if(!Pa.hasClass("dw-cal-v")){J(A);ea=A.hasClass("dw-cal-v")}J(ua);m(Pa)});b.tap(a(".dw-cal-month-s",F),function(){!da.scrolled&&!a(this).hasClass("dwb-d")&&b.navigate(y.getDate(sa,a(this).attr("data-val"),1))});b.tap(a(".dw-cal-year-s",F),function(){if(!Va.scrolled){O=y.getDate(a(this).attr("data-val"),ja,1);b.navigate(new Date(f.constrain(O,pa,La)))}});b.tap(ua,function(){if(!Va.scrolled){m(ua); 187S(A);ea=true}});b.tap(Pa,function(){if(!da.scrolled){m(Pa);S(A);ea=true}})}},300);Ha?g.addClass("dw-cal-liq"):a(".dw-cal",F).width(Ib||280*la);y.calendarHeight&&a(".dw-cal-anim-c",F).height(y.calendarHeight)},onShow:function(){if(ca){t(sa,ja);b.trigger("onMonthLoaded",[sa,ja])}},onPosition:function(c,d,e){var f,h,g,i=0,j=0,m=0;if(Ha){zb&&Z.height("");Ra.height("");G.width("")}Q&&(g=Q);if(Q=Math.round(Math.round(parseInt(Z.css(Ta?"height":"width")))/la)){F.removeClass("mbsc-cal-m mbsc-cal-l");Q>1024? 188F.addClass("mbsc-cal-l"):Q>640&&F.addClass("mbsc-cal-m")}if(bb&&(ha||Ha)||X){a(".dw-cal-pnl",F).removeClass("dw-cal-pnl-h");a.each(va,function(a,b){f=b.outerWidth();i=Math.max(i,f);j=Math.max(j,b.outerHeight());m=m+f});if(bb||X&&m>(P[0].innerWidth||P.innerWidth())){h=true;Wa=a(".dw-cal-tabs .dw-sel",F).attr("data-control");U.addClass("dw-cal-tabbed")}else{Wa="calendar";j=i="";U.removeClass("dw-cal-tabbed");Ra.css({width:"",height:""})}}if(Ha&&zb){b._isFullScreen=true;h&&ca&&Ra.height(va.calendar.outerHeight()); 189c=U.outerHeight();e>=c&&Z.height(e-c+Z.outerHeight());ca&&(j=Math.max(j,va.calendar.outerHeight()))}if(h){Ra.css({width:Ha?"":i,height:j});Q=Math.round(Math.round(parseInt(Z.css(Ta?"height":"width")))/la)}if(Q){G[Ta?"height":"width"](Q);if(Q!==g){if(Fa){ga=y.maxMonthWidth>a(".dw-cal-btnw-m",F).width()?y.monthNamesShort:y.monthNames;for(p=0;p<la;++p)a(ma[p]).text(ga[y.getMonth(y.getDate(sa,ja-oa+p,1))])}if(ab){e=ua[Ta?"height":"width"]();a.extend(Va.settings,{contSize:e,snap:e,minScroll:(2-pb)*e,maxScroll:-e}); 190a.extend(da.settings,{contSize:e,snap:e,minScroll:-e,maxScroll:-e});Va.refresh();da.refresh();ua.hasClass("dw-cal-v")&&Va.scroll(cb)}if(Ha&&!ha&&g){e=V/g;V=e*Q}l(sa,ja,!g)}}else Q=g;if(h){a(".dw-cal-pnl",F).addClass("dw-cal-pnl-h");va[Wa].removeClass("dw-cal-pnl-h")}b.trigger("onCalResize",[]);ha=false}
190,onHide:function(){fb=[];xa=[];ja=sa=Wa=null;Za=true;Q=0;aa&&aa.destroy();if(ab&&Va&&da){Va.destroy();da.destroy()}},onValidated:function(){var a,c,d;c=b.getDate(true);if(L)a="calendar";else for(d in b.order)d&& 191b.order[d]===p&&(a=/mdy/.test(d)?"date":"time");b.trigger("onSetDate",[{date:c,control:a}]);N(c);L=false}});return R}})(jQuery,window,document);(function(a,b){var d={invalid:[],showInput:!0,inputClass:""};a.mobiscroll.presets.scroller.list=function(c){function e(b,c,d,e){for(var f,h=0;h<c;){var g=a(".dwwl"+h,b),i;f=0;i=void 0;for(var j=d,k=[];f<h;){var r=e[f];for(i in j)if(j[i].key==r){j=j[i].children;break}f++}for(f=0;f<j.length;)j[f].invalid&&k.push(j[f].key),f++;i=k;for(f=0;f<i.length;f++)a('.dw-li[data-val="'+i[f]+'"]',g).removeClass("dw-v");h++}}function g(a,b){for(var c=[];a;)c[--a]=!0;c[b]=!1;return c}function f(a,c,d){var e=0,f,g, 192i=[[]],k=s;if(c)for(f=0;f<c;f++)B?i[0][f]={}:i[f]=[{}];for(;e<a.length;){B?i[0][e]=j(k,I[e]):i[e]=[j(k,I[e])];f=0;for(c=b;f<k.length&&c===b;){if(k[f].key==a[e]&&(d!==b&&e<=d||d===b))c=f;f++}if(c!==b&&k[c].children)e++,k=k[c].children;else if((g=h(k))&&g.children)e++,k=g.children;else break}return i}function h(a,b){if(!a)return!1;for(var c=0,d;c<a.length;)if(!(d=a[c++]).invalid)return b?c-1:d;return!1}function j(a,b){for(var c={keys:[],values:[],label:b},d=0;d<a.length;)c.values.push(a[d].value),c.keys.push(a[d].key), 193d++;return c}function o(b,c){a(".dwfl",b).css("display","").slice(c).hide()}function i(a,c){var d=[],e=s,f=0,g=!1,i,j;if(a[f]!==b&&f<=c){g=0;i=a[f];for(j=b;g<e.length&&j===b;)e[g].key==a[f]&&!e[g].invalid&&(j=g),g++}else j=h(e,!0),i=e[j].key;g=j!==b?e[j].children:!1;for(d[f]=i;g;){e=e[j].children;f++;if(a[f]!==b&&f<=c){g=0;i=a[f];for(j=b;g<e.length&&j===b;)e[g].key==a[f]&&!e[g].invalid&&(j=g),g++}else j=h(e,!0),j=!1===j?b:j,i=e[j].key;g=j!==b&&h(e[j].children)?e[j].children:!1;d[f]=i}return{lvl:f+ 1941,nVector:d}}function k(d){var e=[];x=x>l++?x:l;d.children("li").each(function(d){var f=a(this),h=f.clone();h.children("ul,ol").remove();var h=c._processMarkup?c._processMarkup(h):h.html().replace(/^\s\s*/,"").replace(/\s\s*$/,""),g=f.attr("data-invalid")?!0:!1,d={key:f.attr("data-val")===b||null===f.attr("data-val")?d:f.attr("data-val"),value:h,invalid:g,children:null},f=f.children("ul,ol");f.length&&(d.children=k(f));e.push(d)});l--;return e}var n=a.extend({},c.settings),r=a.extend(c.settings,d, 195n),n=r.layout||(/top|bottom/.test(r.display)?"liquid":""),B="liquid"==n,C=r.readonly,t=a(this),q,u,N=this.id+"_dummy",x=0,l=0,E={},K,w=[],s=r.wheelArray||k(t),I=function(a){var b=[],c;for(c=0;c<a;c++)b[c]=r.labels&&r.labels[c]?r.labels[c]:c;return b}(x),z=function(a){var b=[],c;c=!0;for(var d=0;c;)c=h(a),b[d++]=c.key,(c=c.children)&&(a=c);return b}(s),W=f(z,x);a("#"+N).remove();r.showInput&&(q=a('<input type="text" id="'+N+'" value="" class="'+r.inputClass+'" placeholder="'+(r.placeholder||"")+'" readonly />').insertBefore(t), 196r.anchor=q,c.attachShow(q));r.wheelArray||t.hide().closest(".ui-field-contain").trigger("create");return{width:50,wheels:W,layout:n,headerText:!1,formatValue:function(a){if(K===b)K=i(a,a.length).lvl;return a.slice(0,K).join(" ")},parseValue:function(a){return a?(a+"").split(" "):(r.defaultValue||z).slice(0)},onBeforeShow:function(){var a=c.getArrayVal(true);w=a.slice(0);r.wheels=f(a,x,x);u=true},onValueFill:function(a){K=b;q&&q.val(a)},onShow:function(b){a(".dwwl",b).on("mousedown touchstart",function(){clearTimeout(E[a(".dwwl", 197b).index(this)])})},onDestroy:function(){q&&q.remove();t.show()},validate:function(a,d,h){var j=[],k=c.getArrayVal(true),n=(d||0)+1,p,l;if(d!==b&&w[d]!=k[d]||d===b&&!u){r.wheels=f(k,null,d);l=i(k,d===b?k.length:d);K=l.lvl;for(p=0;p<k.length;p++)k[p]=l.nVector[p]||0;for(;n<l.lvl;)j.push(n++);if(j.length){r.readonly=g(x,d);clearTimeout(E[d]);E[d]=setTimeout(function(){u=true;o(a,l.lvl);w=k.slice(0);c.changeWheel(j,d===b?h:0,d!==b);r.readonly=C},d===b?0:h*1E3);return false}}else{l=i(k,k.length);K=l.lvl}w= 198k.slice(0);e(a,l.lvl,s,k);o(a,l.lvl);u=false}}}})(jQuery);(function(a,b){var d=a.mobiscroll,c=d.classes,e=d.util,g=e.constrain,f=e.jsPrefix,h=e.prefix,j=e.has3d,o=e.getCoord,i=e.getPosition,k=e.testTouch,n=e.isNumeric,r=e.isString,B="webkitTransitionEnd transitionend",C=window.requestAnimationFrame||function(a){a()},t=window.cancelAnimationFrame||function(){};c.ScrollView=function(d,e,N){function x(b){if((!ka.lock||!Q)&&k(b,this)&&!G){"mousedown"==b.type&&b.preventDefault();z&&z.removeClass("mbsc-btn-a");R=!1;z=a(b.target).closest(".mbsc-btn-e",this);z.length&& 199!z.hasClass("mbsc-btn-d")&&(R=!0,W=setTimeout(function(){z.addClass("mbsc-btn-a")},100));G=!0;Z=!1;M.scrolled=Q;ea=o(b,"X");ga=o(b,"Y");p=ea;J=m=S=0;A=new Date;ia=+i(da,fa)||0;I(ia,1);if("mousedown"===b.type)a(document).on("mousemove",l).on("mouseup",K);ma("onScrollStart",[wa])}}function l(a){if(G){p=o(a,"X");H=o(a,"Y");S=p-ea;m=H-ga;J=fa?m:S;if(R&&(5<Math.abs(m)||5<Math.abs(S)))clearTimeout(W),z.removeClass("mbsc-btn-a"),R=!1;!Z&&5<Math.abs(J)&&(M.scrolled=!0,ka.liveSwipe&&!L&&(L=!0,V=C(E))
199);fa|| 200ka.scrollLock?a.preventDefault():M.scrolled?a.preventDefault():7<Math.abs(m)&&(Z=!0,M.scrolled=!0,ra.trigger("touchend"))}}function E(){F&&(J=g(J,-T*F,T*F));I(g(ia+J,P-O,U+O));L=!1}function K(b){if(G){var c;c=new Date-A;t(V);L=!1;!Z&&M.scrolled&&(ka.momentum&&j&&300>c&&(c=J/c,J=Math.max(Math.abs(J),c*c/ka.speedUnit)*(0>J?-1:1)),s(J));R&&(clearTimeout(W),z.addClass("mbsc-btn-a"),setTimeout(function(){z.removeClass("mbsc-btn-a")},100),!Z&&!M.scrolled&&ma("onBtnTap",[z]));"mouseup"==b.type&&a(document).off("mousemove", 201l).off("mouseup",K);G=!1}}function w(a){a=a.originalEvent||a;if(J=fa?a.deltaY||a.wheelDelta||a.detail:a.deltaX)a.preventDefault(),J=0>J?20:-20,ia=wa,L||(L=!0,V=C(E)),clearTimeout(ca),ca=setTimeout(function(){t(V);L=false;s(J)},200)}function s(a){var b;F&&(a=g(a,-T*F,T*F));na=Math.round((ia+a)/T);b=g(na*T,P,U);if(ha){if(0>a)for(a=ha.length-1;0<=a;a--){if(Math.abs(b)+D>=ha[a].breakpoint){na=a;za=2;b=ha[a].snap2;break}}else if(0<=a)for(a=0;a<ha.length;a++)if(Math.abs(b)<=ha[a].breakpoint){na=a;za=1; 202b=ha[a].snap1;break}b=g(b,P,U)}I(b,ka.time||(wa<P||wa>U?200:Math.max(200,Math.abs(b-wa)*ka.timeUnit)),function(){ma("onScrollEnd",[wa])})}function I(a,b,c){var d=function(){Q=!1;c&&c()};Q=!0;if(j)if(aa[f+"Transition"]=b?h+"transform "+Math.round(b)+"ms "+ka.easing:"",aa[f+"Transform"]="translate3d("+(fa?"0,"+a+"px,":a+"px,0,")+"0)",wa==a||!b)d();else{if(b)da.on(B,function(a){a.target===da[0]&&(da.off(B),aa[f+"Transition"]="",d())})}else setTimeout(d,b||0),aa[v]=a+"px";wa=a}var z,W,D,S,m,J,v,O,p,H, 203R,U,F,P,Z,G,Q,V,L,ca,T,ha,ia,A,ea,ga,aa,da,ma,fa,M=this,wa=0,na=0,za=1,ka=e,ra=a(d);c.Base.call(this,d,e,!0);M.scrolled=!1;M.scroll=function(b,c,e){b=n(b)?Math.round(b/T)*T:Math.ceil((a(b,d).length?Math.round(da.offset()[v]-a(b,d).offset()[v]):wa)/T)*T;na=Math.round(b/T);I(g(b,P,U),c,e)};M.refresh=function(){var a;D=ka.contSize===b?fa?ra.height():ra.width():ka.contSize;P=ka.minScroll===b?fa?D-da.height():D-da.width():ka.minScroll;U=ka.maxScroll===b?0:ka.maxScroll;!fa&&ka.rtl&&(a=U,U=-P,P=-a);r(ka.snap)&& 204(ha=[],da.find(ka.snap).each(function(){var a=fa?this.offsetTop:this.offsetLeft,b=fa?this.offsetHeight:this.offsetWidth;ha.push({breakpoint:a+b/2,snap1:-a,snap2:D-a-b})}));T=n(ka.snap)?ka.snap:1;F=ka.snap?ka.maxSnapScroll:0;O=ka.elastic?n(ka.snap)?T:n(ka.elastic)?ka.elastic:0:0;M.scroll(ka.snap?ha?ha[na]["snap"+za]:na*T:wa)};M.init=function(a){M._init(a);v=(fa="Y"==ka.axis)?"top":"left";da=ka.moveElement||ra.children().eq(0);aa=da[0].style;M.refresh();if(ka.swipe)ra.on("touchstart mousedown",x).on("touchmove", 205l).on("touchend touchcancel",K);if(ka.mousewheel)ra.on("wheel mousewheel",w);d.addEventListener&&d.addEventListener("click",function(a){M.scrolled&&(a.stopPropagation(),a.preventDefault())},!0)};M.destroy=function(){ra.off("touchstart mousedown",x).off("touchmove",l).off("touchend touchcancel",K).off("wheel mousewheel",w);M._destroy()};ka=M.settings;ma=M.trigger;N||M.init(e)};c.ScrollView.prototype={_class:"scrollview",_defaults:{speedUnit:0.0022,timeUnit:0.8,axis:"Y",easing:"ease-out",swipe:!0,liveSwipe:!0, 206momentum:!0,elastic:!0}};d.presetShort("scrollview","ScrollView",!1)})(jQuery);(function(a,b){var d=a.mobiscroll,c=d.datetime,e=new Date,g={startYear:e.getFullYear()-100,endYear:e.getFullYear()+1,separator:" ",dateFormat:"mm/dd/yy",dateOrder:"mmddy",timeWheels:"hhiiA",timeFormat:"hh:ii A",dayText:"Day",monthText:"Month",yearText:"Year",hourText:"Hours",minuteText:"Minutes",ampmText:" ",secText:"Seconds",nowText:"Now"},f=function(e){function f(a,c,d){return R[c]!==b?+a[R[c]]:U[c]!==b?U[c]:d!==b?d:F[c](ha)}function o(a,b,c,d){a.push({values:c,keys:b,label:d})}function i(a, 207b,c,d){return Math.min(d,Math.floor(a/b)*b+c)}function k(a){if(null===a)return a;var b=f(a,"y"),c=f(a,"m"),d=Math.min(f(a,"d",1),v.getMaxDayOfMonth(b,c)),e=f(a,"h",0);return v.getDate(b,c,d,f(a,"a",0)?e+12:e,f(a,"i",0),f(a,"s",0),f(a,"u",0))}function n(a,b){var c,d,e=!1,f=!1,h=0,g=0;ga=k(u(ga));aa=k(u(aa));if(r(a))return a;a<ga&&(a=ga);a>aa&&(a=aa);d=c=a;if(2!==b)for(e=r(c);!e&&c<aa;)c=new Date(c.getTime()+864E5),e=r(c),h++;if(1!==b)for(f=r(d);!f&&d>ga;)d=new Date(d.getTime()-864E5),f=r(d),g++;return 1=== 208b&&e?c:2===b&&f?d:g<=h&&f?d:c}function r(a){return a<ga||a>aa?!1:B(a,Z)?!0:B(a,P)?!1:!0}function B(a,b){var c,d,e;if(b)for(d=0;d<b.length;d++)if(c=b[d],e=c+"",!c.start)if(c.getTime){if(a.getFullYear()==c.getFullYear()&&a.getMonth()==c.getMonth()&&a.getDate()==c.getDate())return!0}else if(e.match(/w/i)){if(e=+e.replace("w",""),e==a.getDay())return!0}else if(e=e.split("/"),e[1]){if(e[0]-1==a.getMonth()&&e[1]==a.getDate())return!0}else if(e[0]==a.getDate())return!0;return!1}function C(a,b,c,d,e,f,h){var g, 209i,j;if(a)for(g=0;g<a.length;g++)if(i=a[g],j=i+"",!i.start)if(i.getTime)v.getYear(i)==b&&v.getMonth(i)==c&&(f[v.getDay(i)-1]=h);else if(j.match(/w/i)){j=+j.replace("w","");for(s=j-d;s<e;s+=7)0<=s&&(f[s]=h)}else j=j.split("/"),j[1]?j[0]-1==c&&(f[j[1]-1]=h):f[j[0]-1]=h}function t(c,d,e,f,h,g,j,k,r){var o,n,G,l,B,s,C,u,F,t,H,U,M,x,w,z,L,T,Q={},E={h:ia,i:A,s:ea,a:1},D=v.getDate(h,g,j),ma=["a","h","i","s"];c&&(a.each(c,function(a,b){if(b.start&&(b.apply=!1,o=b.d,n=o+"",G=n.split("/"),o&&(o.getTime&&h== 210v.getYear(o)&&g==v.getMonth(o)&&j==v.getDay(o)||!n.match(/w/i)&&(G[1]&&j==G[1]&&g==G[0]-1||!G[1]&&j==G[0])||n.match(/w/i)&&D.getDay()==+n.replace("w",""))))b.apply=!0,Q[D]=!0}),a.each(c,function(c,f){H=x=M=0;U=b;C=s=!0;w=!1;if(f.start&&(f.apply||!f.d&&!Q[D])){l=f.start.split(":");B=f.end.split(":");for(t=0;3>t;t++)l[t]===b&&(l[t]=0),B[t]===b&&(B[t]=59),l[t]=+l[t],B[t]=+B[t];l.unshift(11<l[0]?1:0);B.unshift(11<B[0]?1:0);ca&&(12<=l[1]&&(l[1]-=12),12<=B[1]&&(B[1]-=12));for(t=0;t<d;t++)if(p[t]!==b){u= 211i(l[t],E[ma[t]],m[ma[t]],J[ma[t]]);F=i(B[t],E[ma[t]],m[ma[t]],J[ma[t]]);T=L=z=0;ca&&1==t&&(z=l[0]?12:0,L=B[0]?12:0,T=p[0]?12:0);s||(u=0);C||(F=J[ma[t]]);if((s||C)&&u+z<p[t]+T&&p[t]+T<F+L)w=!0;p[t]!=u&&(s=!1);p[t]!=F&&(C=!1)}if(!r)for(t=d+1;4>t;t++)0<l[t]&&(M=E[e]),B[t]<J[ma[t]]&&(x=E[e]);w||(u=i(l[d],E[e],m[e],J[e])+M,F=i(B[d],E[e],m[e],J[e])-x,s&&(H=0>u?0:u>J[e]?a(".dw-li",k).length:q(k,u)+0),C&&(U=0>F?0:F>J[e]?a(".dw-li",k).length:q(k,F)+1));if(s||C||w)r?a(".dw-li",k).slice(H,U).addClass("dw-v"): 212a(".dw-li",k).slice(H,U).removeClass("dw-v")}}))}function q(b,c){return a(".dw-li",b).index(a('.dw-li[data-val="'+c+'"]',b))}function u(c,d){var e=[];
212if(null===c||c===b)return c;a.each("y,m,d,a,h,i,s,u".split(","),function(a,f){R[f]!==b&&(e[R[f]]=F[f](c));d&&(U[f]=F[f](c))});return e}function N(a){var b,c,d,e=[];if(a){for(b=0;b<a.length;b++)if(c=a[b],c.start&&c.start.getTime)for(d=new Date(c.start);d<=c.end;)e.push(new Date(d.getFullYear(),d.getMonth(),d.getDate())),d.setDate(d.getDate()+1);else e.push(c); 213return e}return a}var x=a(this),l={},E;if(x.is("input")){switch(x.attr("type")){case "date":E="yy-mm-dd";break;case "datetime":E="yy-mm-ddTHH:ii:ssZ";break;case "datetime-local":E="yy-mm-ddTHH:ii:ss";break;case "month":E="yy-mm";l.dateOrder="mmyy";break;case "time":E="HH:ii:ss"}var K=x.attr("min"),x=x.attr("max");K&&(l.minDate=c.parseDate(E,K));x&&(l.maxDate=c.parseDate(E,x))}var w,s,I,z,W,D,S,m,J,K=a.extend({},e.settings),v=a.extend(e.settings,d.datetime.defaults,g,l,K),O=0,p=[],l=[],H=[],R={},U= 214{},F={y:function(a){return v.getYear(a)},m:function(a){return v.getMonth(a)},d:function(a){return v.getDay(a)},h:function(a){a=a.getHours();a=ca&&12<=a?a-12:a;return i(a,ia,da,M)},i:function(a){return i(a.getMinutes(),A,ma,wa)},s:function(a){return i(a.getSeconds(),ea,fa,na)},u:function(a){return a.getMilliseconds()},a:function(a){return L&&11<a.getHours()?1:0}},P=v.invalid,Z=v.valid,K=v.preset,G=v.dateOrder,Q=v.timeWheels,V=G.match(/D/),L=Q.match(/a/i),ca=Q.match(/h/),T="datetime"==K?v.dateFormat+ 215v.separator+v.timeFormat:"time"==K?v.timeFormat:v.dateFormat,ha=new Date,x=v.steps||{},ia=x.hour||v.stepHour||1,A=x.minute||v.stepMinute||1,ea=x.second||v.stepSecond||1,x=x.zeroBased,ga=v.minDate||new Date(v.startYear,0,1),aa=v.maxDate||new Date(v.endYear,11,31,23,59,59),da=x?0:ga.getHours()%ia,ma=x?0:ga.getMinutes()%A,fa=x?0:ga.getSeconds()%ea,M=Math.floor(((ca?11:23)-da)/ia)*ia+da,wa=Math.floor((59-ma)/A)*A+ma,na=Math.floor((59-ma)/A)*A+ma;E=E||T;if(K.match(/date/i)){a.each(["y","m","d"],function(a, 216b){w=G.search(RegExp(b,"i"));-1<w&&H.push({o:w,v:b})});H.sort(function(a,b){return a.o>b.o?1:-1});a.each(H,function(a,b){R[b.v]=a});x=[];for(s=0;3>s;s++)if(s==R.y){O++;z=[];I=[];W=v.getYear(ga);D=v.getYear(aa);for(w=W;w<=D;w++)I.push(w),z.push((G.match(/yy/i)?w:(w+"").substr(2,2))+(v.yearSuffix||""));o(x,I,z,v.yearText)}else if(s==R.m){O++;z=[];I=[];for(w=0;12>w;w++)W=G.replace(/[dy]/gi,"").replace(/mm/,(9>w?"0"+(w+1):w+1)+(v.monthSuffix||"")).replace(/m/,w+1+(v.monthSuffix||"")),I.push(w),z.push(W.match(/MM/)? 217W.replace(/MM/,'<span class="dw-mon">'+v.monthNames[w]+"</span>"):W.replace(/M/,'<span class="dw-mon">'+v.monthNamesShort[w]+"</span>"));o(x,I,z,v.monthText)}else if(s==R.d){O++;z=[];I=[];for(w=1;32>w;w++)I.push(w),z.push((G.match(/dd/i)&&10>w?"0"+w:w)+(v.daySuffix||""));o(x,I,z,v.dayText)}l.push(x)}if(K.match(/time/i)){S=!0;H=[];a.each(["h","i","s","a"],function(a,b){a=Q.search(RegExp(b,"i"));-1<a&&H.push({o:a,v:b})});H.sort(function(a,b){return a.o>b.o?1:-1});a.each(H,function(a,b){R[b.v]=O+a}); 218x=[];for(s=O;s<O+4;s++)if(s==R.h){O++;z=[];I=[];for(w=da;w<(ca?12:24);w+=ia)I.push(w),z.push(ca&&0===w?12:Q.match(/hh/i)&&10>w?"0"+w:w);o(x,I,z,v.hourText)}else if(s==R.i){O++;z=[];I=[];for(w=ma;60>w;w+=A)I.push(w),z.push(Q.match(/ii/)&&10>w?"0"+w:w);o(x,I,z,v.minuteText)}else if(s==R.s){O++;z=[];I=[];for(w=fa;60>w;w+=ea)I.push(w),z.push(Q.match(/ss/)&&10>w?"0"+w:w);o(x,I,z,v.secText)}else s==R.a&&(O++,K=Q.match(/A/),o(x,[0,1],K?[v.amText.toUpperCase(),v.pmText.toUpperCase()]:[v.amText,v.pmText], 219v.ampmText));l.push(x)}e.getVal=function(a){return e._hasValue||a?k(e.getArrayVal(a)):null};e.setDate=function(a,b,c,d,f){e.setArrayVal(u(a),b,f,d,c)};e.getDate=e.getVal;e.format=T;e.order=R;e.handlers.now=function(){e.setDate(new Date,!1,0.3,!0,!0)};e.buttons.now={text:v.nowText,handler:"now"};P=N(P);Z=N(Z);m={y:ga.getFullYear(),m:0,d:1,h:da,i:ma,s:fa,a:0};J={y:aa.getFullYear(),m:11,d:31,h:M,i:wa,s:na,a:1};return{wheels:l,headerText:v.headerText?function(){return c.formatDate(T,k(e.getArrayVal(!0)), 220v)}:!1,formatValue:function(a){return c.formatDate(E,k(a),v)},parseValue:function(a){a||(U={});return u(a?c.parseDate(E,a,v):v.defaultValue||new Date,!!a&&!!a.getTime)},validate:function(c,d,g,i){var d=n(k(e.getArrayVal(!0)),i),r=u(d),o=f(r,"y"),l=f(r,"m"),A=!0,B=!0;a.each("y,m,d,a,h,i,s".split(","),function(d,e){if(R[e]!==b){var h=m[e],g=J[e],i=31,k=f(r,e),n=a(".dw-ul",c).eq(R[e]);if(e=="d"){g=i=v.getMaxDayOfMonth(o,l);V&&a(".dw-li",n).each(function(){var b=a(this),c=b.data("val"),d=v.getDate(o, 221l,c).getDay(),c=G.replace(/[my]/gi,"").replace(/dd/,(c<10?"0"+c:c)+(v.daySuffix||"")).replace(/d/,c+(v.daySuffix||""));a(".dw-i",b).html(c.match(/DD/)?c.replace(/DD/,'<span class="dw-day">'+v.dayNames[d]+"</span>"):c.replace(/D/,'<span class="dw-day">'+v.dayNamesShort[d]+"</span>"))})}A&&ga&&(h=F[e](ga));B&&aa&&(g=F[e](aa));if(e!="y"){var p=q(n,h),t=q(n,g);a(".dw-li",n).removeClass("dw-v").slice(p,t+1).addClass("dw-v");e=="d"&&a(".dw-li",n).removeClass("dw-h").slice(i).addClass("dw-h")}k<h&&(k=h); 222k>g&&(k=g);A&&(A=k==h);B&&(B=k==g);if(e=="d"){h=v.getDate(o,l,1).getDay();g={};C(P,o,l,h,i,g,1);C(Z,o,l,h,i,g,0);a.each(g,function(b,c){c&&a(".dw-li",n).eq(b).removeClass("dw-v")})}}});S&&a.each(["a","h","i","s"],function(d,g){var k=f(r,g),n=f(r,"d"),m=a(".dw-ul",c).eq(R[g]);R[g]!==b&&(t(P,d,g,r,o,l,n,m,0),t(Z,d,g,r,o,l,n,m,1),p[d]=+e.getValidCell(k,m,i).val)});e._tempWheelArray=r}}};a.each(["date","time","datetime"],function(a,b){d.presets.scroller[b]=f})})(jQuery);(function(a,b){var d=a.mobiscroll,c={batch:50,min:0,max:100,defUnit:"",units:null,unitNames:null,invali
222d:[],sign:!1,step:0.05,scale:2,convert:function(a){return a},signText:" ",wholeText:"Whole",fractionText:"Fraction",unitText:"Unit"};d.presets.scroller.measurement=function(d){function g(a){return Math.max(ha,Math.min(ia,O?0>a?Math.ceil(a):Math.floor(a):o(Math.round(a-aa),U)+aa))}function f(a){return O?o((Math.abs(a)-Math.abs(g(a)))*R-da,U)+da:0}function h(a){var b=g(a),c=f(a);c>=R&&(0>a?b--: 223b++,c=0);return[0>a?"-":"+",b,c]}function j(a){var b=+a[V],c=O?k(a[Q])/R*(0>b?-1:1):0;return(S&&"-"==a[0]?-1:1)*(b+c)}function o(a,b){return Math.round(a/b)*b}function i(a,b){for(a+="";a.length<b;)a="0"+a;return a}function k(a){return a?(a+"").replace(/\+|\-/g,""):""}function n(a,b,c){return b===c?a:N.convert.call(this,a,b,c)}function r(a,b,c){a=a>c?c:a;return a<b?b:a}function B(a){ca=n(N.min,J,a);T=n(N.max,J,a);O?(ha=0>ca?Math.ceil(ca):Math.floor(ca),ia=0>T?Math.ceil(T):Math.floor(T),A=f(ca),ea= 224f(T)):(ha=Math.round(ca),ia=Math.round(T),ia=ha+Math.floor((ia-ha)/U)*U,aa=ha%U)}function C(a,b){var c=+ha,d=+ia,e=O?1:U,f;S&&(d=Math.abs(c)>Math.abs(d)?Math.abs(c):Math.abs(d),c=0>c?0:c);f=b-s*e;f=f<c?c:f;c=f+2*s*e;c=c>d?d:c;if(f!==I||c!==z){E.values=[];E.label=N.wholeText;for(fa=f;fa<=c;fa+=e)E.values.push(fa);W=f;D=c;return!0}return!1}function t(b){if(p){var c=w.length,b=a.inArray(+b,w),d,e;K.keys=[];K.values=[];for(fa=-50;50>fa;fa++)d=(fa+b)%c,e=w[0>d?c+d:d],d=Math.abs(Math.floor((fa+b)/c)),K.keys.push(Array(d).join(0> 225fa+b?"-":"+")+e),K.values.push("."+i(e,H))}}function q(a){return j(a).toFixed(O?H:0)+(m?" "+v[a[L]]:"")}var u=a.extend({},d.settings),N=a.extend(d.settings,c,u),u={},x=[[]],l={},E={},K={},w=[],s=N.batch,I,z,W,D,S=N.sign,m=N.units&&N.units.length,J=m?N.defUnit||N.units[0]:"",v=N.unitNames||N.units,O=1>N.step,p=!1,H=O?Math.max(N.scale,(N.step+"").split(".")[1].length):1,R=Math.pow(10,H),U=Math.round(O?N.step*R:N.step),F,P,Z,G=-1,Q,V,L,ca,T,ha,ia,A,ea,ga,aa=0,da=0,ma={},fa,M=0;d.setVal=function(b,c, 226f,h,g){d._setVal(a.isArray(b)?q(b):b,c,f,h,g)};d.setValue=function(a,b,c,f,h){d.setVal(a,b,h,f,c)};B(J);if(S)if(S=!1,m)for(fa=0;fa<N.units.length;fa++)0>n(N.min,J,N.units[fa])&&(S=!0);else S=0>N.min;S&&(x[0].push({values:["-","+"],label:N.signText}),G=M++);x[0].push(E);V=M++;if(O){x[0].push(K);K.keys=[];K.values=[];K.label=N.fractionText;for(fa=da;fa<R;fa+=U)w.push(fa),K.keys.push(fa),K.values.push("."+i(fa,H));p=w.length>N.rows;Q=M++;F=Math.ceil(100/U);N.invalid&&N.invalid.length&&(a.each(N.invalid, 227function(a,b){var c=b>0?Math.floor(b):Math.ceil(b);c===0&&(c=b<=0?-0.001:0.001);l[c]=(l[c]||0)+1;if(b===0){c=0.001;l[c]=(l[c]||0)+1}}),a.each(l,function(a,b){b<F?delete l[a]:l[a]=a}))}if(m){u={keys:[],values:[],label:N.unitText};for(fa=0;fa<N.units.length;fa++)u.keys.push(fa),u.values.push(v[fa]);x[0].push(u)}L=M;return{width:55,wheels:x,showLabel:!1,formatValue:q,parseValue:function(b){var c=((b||N.defaultValue)+"").split(" "),b=+c[0],d=[],e="";if(m){e=a.inArray(c[1],v);e=e==-1?a.inArray(J,N.units): 228e;e=e==-1?0:e}Z=m?N.units[e]:"";B(Z);b=isNaN(b)?0:b;b=r(b,ca,T);c=h(b);c[1]=r(c[1],ha,ia);P=b;if(S){d[0]=c[0];c[1]=Math.abs(c[1])}d[V]=c[1];O&&(d[Q]=c[2]);m&&(d[L]=e);return d},onBeforeShow:function(){C(Z,d._tempWheelArray[V]);t(k(d._tempWheelArray[Q]));I=W;z=D;ga=true},onShow:function(b){a(".dwwl",b).on("mousedown touchstart",function(){clearTimeout(ma[a(".dwwl",b).index(this)])})},onCancel:function(){P=b},validate:function(c,f,g,i){var q=d._tempWheelArray,s,u=[],F,H,M,w,x,v,E,K=+k(q[Q]),R=m?N.units[q[L]]: 229"";if(S&&f===0){P=Math.abs(P)*(q[f]==="-"?-1:1);u=p?[V,Q]:[V]}if(f===V||f===Q&&O||P===b||f===b&&!ga){P=j(q);Z=R}if(m&&f===L&&Z!==R||f===b&&!ga){B(R);P=n(P,Z,R);Z=R;H=h(P);S&&(q[0]=H[0]);C(R,S?Math.abs(H[1]):H[1]);t(K);u=p?[V,Q]:[V];F=f?0.2:g}P=r(P,ca,T);H=h(P);w=S?Math.abs(H[1]):H[1];s=S?q[0]=="-":P<0;q[V]=w;s&&(H[0]="-");O&&(q[Q]=H[2]);if(f===V||S&&f===0)x=C(R,w);f===V&&x&&u.push(V);if(f===Q&&p){t(K);u.push(Q)}if(u.length){ma[f]=setTimeout(function(){ga=true;I=W;z=D;d.changeWheel(u,F,f!==b)},f=== 230b?0:g*1E3);return false}if(S&&f===b){v=a(".dw-ul",c).eq(G);a(".dw-li",v).addClass("dw-v");ca>0&&a(".dw-li",v).eq(0).removeClass("dw-v");T<0&&a(".dw-li",v).eq(1).removeClass("dw-v")}v=a(".dw-ul",c).eq(V);if(S&&!f){a(".dw-li",v).addClass("dw-v");fa=a(".dw-li",v).index(a('.dw-li[data-val="'+Math.abs(s?ha:ia)+'"]',v));fa!=-1&&a(".dw-li",v).slice(fa+1).removeClass("dw-v")}a.each(O?l:N.invalid,function(b,c){if(S&&s)if(c<=0)c=Math.abs(c);else return;a('.dw-li[data-val="'+o(n(c,J,R),O?1:U)+'"]',v).removeClass("dw-v")}); 231q[V]=+d.getValidCell(w,v,i).val;H[1]=q[V]*(S&&s?-1:1);if(f!==Q&&O){v=a(".dw-ul",c).eq(Q);a(".dw-li",v).addClass("dw-v");c=S?q[0]+k(q[1]):(P<0?"-":"+")+Math.abs(H[1]);g=(ca<0?"-":"+")+Math.abs(ha);i=(T<0?"-":"+")+Math.abs(ia);c===g&&a(".dw-li",v).each(function(){E=k(a(this).attr("data-val"));(s?E>A:E<A)&&a(this).removeClass("dw-v")});c===i&&a(".dw-li",v).each(function(){E=k(a(this).attr("data-val"));(s?E<ea:E>ea)&&a(this).removeClass("dw-v")});a.each(N.invalid,function(b,c){M=h(n(c,J,R));(H[0]===M[0]|| 232H[1]===0&&M[1]===0&&M[2]===0)&&H[1]===M[1]&&a(".dw-li",v).each(function(){k(a(this).attr("data-val"))==M[2]&&a(this).removeClass("dw-v")})})}ga=false}}};d.presetShort("measurement")})(jQuery);(function(a,b,d,c){var e=a.mobiscroll,g=a.extend,f=e.util,h=e.datetime,j=e.presets.scroller,o={labelsShort:"Yrs,Mths,Days,Hrs,Mins,Secs".split(","),fromText:"Start",toText:"End",eventText:"event",eventsText:"events"};e.presetShort("calendar");j.calendar=function(d){function k(c){if(c){if(O[c])return O[c];var d=a('<div style="background-color:'+c+';"></div>').appendTo("body"),e=(b.getComputedStyle?getComputedStyle(d[0]):d[0].style).backgroundColor.replace(/rgb|rgba|\(|\)|\s/g,"").split(","),e=130< 2330.299*e[0]+0.587*e[1]+0.114*e[2]?"#000":"#fff";d.remove();return O[c]=e}}function n(a){return a.sort(function(a,b){var c=a.d||a.start,d=b.d||b.start,c=!c.getTime?0:a.start&&a.end&&a.start.toDateString()!==a.end.toDateString()?1:c.getTime(),d=!d.getTime?0:b.start&&b.end&&b.start.toDateString()!==b.end.toDateString()?1:d.getTime();return c-d})}function r(b){var c;c=a(".dw-cal-c",x).outerHeight();var d=b.outerHeight(),e=b.outerWidth(),f=b.offset().top-a(".dw-cal-c",x).offset().top,h=2>b.closest(".dw-cal-row").index(); 234c=l.addClass("dw-cal-events-t").css({top:h?f+d:"0",bottom:h?"0":c-f}).addClass("dw-cal-events-v").height();l.css(h?"bottom":"top","auto").removeClass("dw-cal-events-t");s.css("max-height",c);w.refresh();w.scroll(0);h?l.addClass("dw-cal-events-b"):l.removeClass("dw-cal-events-b");a(".dw-cal-events-arr",l).css("left",b.offset().left-l.offset().left+e/2)}function B(b,c){var f=K[b];if(f){var h,g,j,o,m,G='<ul class="dw-cal-event-list">';E=c;c.addClass(H).find(".dw-i").addClass(U);c.hasClass(R)&&c.attr("data-hl", 235"true").removeClass(R);n(f);a.each(f,function(a,b){o=b.d||b.start;m=b.start&&b.end&&b.start.toDateString()!==b.end.toDateString();j=b.color;k(j);g=h="";o.getTime&&(h=e.datetime.formatDate((m?"MM d yy ":"")+p.timeFormat,o));b.end&&(g=e.datetime.formatDate((m?"MM d yy ":"")+p.timeFormat,b.end));var c=G,d='<li role="button" aria-label="'+b.text+(h?", "+p.fromText+" "+h:"")+(g?", "+p.toText+" "+g:"")+'" class="dw-cal-event"><div class="dw-cal-event-color" style="'+(j?"background:"+j+";":"")+'"></div><div class="dw-cal-event-text">'+ 236(o.getTime&&!m?'<div class="dw-cal-event-time">'+e.datetime.formatDate(p.timeFormat,o)+"</div>":"")+b.text+"</div>",f;if(b.start&&b.end){f=p.labelsShort;var i=Math.abs(b.end-b.start)/1E3,r=i/60,n=r/60,l=n/24,q=l/365;f='<div class="dw-cal-event-dur">'+(45>i&&Math.round(i)+" "+f[5].toLowerCase()||45>r&&Math.round(r)+" "+f[4].toLowerCase()||24>n&&Math.round(n)+" "+f[3].toLowerCase()||30>l&&Math.round(l)+" "+f[2].toLowerCase()||365>l&&Math.round(l/30)+" "+f[1].toLowerCase()||Math.round(q)+" "+f[0].toLowerCase())+ 237"</div>"}else f="";G=c+(d+f+"</li>")});G+="</ul>";I.html(G);r(E);d.tap(a(".dw-cal-event",I),function(c){w.scrolled||d.trigger("onEventSelect",[c,f[a(this).index()],b])});z=!0;d.trigger("onEventBubbleShow",[E,l])}}function C(){l&&l.removeClass("dw-cal-events-v");E&&(E.removeClass(H).find(".dw-i").removeClass(U),E.attr("data-hl")&&E.removeAttr("data-hl").addClass(R));z=!1}function t(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate())}function q(a){Q={};if(a&&a.length)for(D=0;D<a.length;D++)Q[t(a[D])]= 238a[D]}function u(){V&&C();d.refresh()}var N,x,l,E,K,w,s,I,z,W,D,S,m,J,v,O={};J=g({},d.settings);var p=g(d.settings,o,J),H="dw-sel dw-cal-day-ev",R="dw-cal-day-hl",U=p.activeClass||"",F=p.multiSelect||"week"==p.selectType,P=p.markedDisplay,Z=!0===p.events||!0===p.markedText,G=0,Q={},V=a.isArray(p.events),L=V?g(!0,[],p.events):[];J=j.calbase.call(this,d);N=g({},J);W=p.firstSelectDay===c?p.firstDay:p.firstSelectDay;if(p.selectedValues)for(D=0;D<p.selectedValues.length;D++)Q[t(p.selectedValues[D])]=p.selectedValues[D]; 239V&&a.each(L,function(a,b){b._id===c&&(b._id=G++)});d.onGenMonth=function(a,b){K=d.prepareObj(L,a,b);S=d.prepareObj(p.marked,a,b)};d.getDayProps=function(b){for(var d=F?Q[b]!==c:V?b.getTime()===(new Date).setHours(0,0,0,0):c,e=S[b]?S[b][0]:!1,f=K[b]?K[b][0]:!1,h=e||f,e=e.text||(f?K[b].length+" "+(1<K[b].length?p.eventsText:p.eventText):0),f=S[b]||K[b]||[],g=h.color,i=Z&&e?
239k(g):"",j="",r='<div class="dw-cal-day-m"'+(g?' style="background-color:'+g+";border-color:"+g+" "+g+' transparent transparent"': 240"")+"></div>",b=0;b<f.length;b++)f[b].icon&&(j+='<span class="mbsc-ic mbsc-ic-'+f[b].icon+'"'+(f[b].text?"":f[b].color?' style="color:'+f[b].color+';"':"")+"></span>\n");if("bottom"==P){r='<div class="dw-cal-day-m"><div class="dw-cal-day-m-t">';for(b=0;b<f.length;b++)r+='<div class="dw-cal-day-m-c"'+(f[b].color?' style="background:'+f[b].color+';"':"")+"></div>";r+="</div></div>"}return{marked:h,selected:V?!1:d,cssClass:V&&d?"dw-cal-day-hl":h?"dw-cal-day-marked":"",ariaLabel:Z||V?e:"",markup:Z&&e? 241'<div class="dw-cal-day-txt-c"><div class="dw-cal-day-txt '+(p.eventTextClass||"")+'" title="'+a("<div>"+e+"</div>").text()+'"'+(g?' style="background:'+g+";color:"+i+';text-shadow:none;"':"")+">"+j+e+"</div></div>":Z&&j?'<div class="dw-cal-day-ic-c">'+j+"</div>":h?r:""}};d.addValue=function(a){Q[t(a)]=a;u()};d.removeValue=function(a){delete Q[t(a)];u()};d.setVal=function(a,b,c,e,f){F&&(q(a),a=a?a[0]:null);d.setDate(a,b,f,e,c);u()};d.getVal=function(a){return F?f.objectToArray(Q):d.getDate(a)};d.setValues= 242function(a,b){d.setDate(a?a[0]:null,b);q(a);u()};d.getValues=function(){return F?d.getVal():[d.getDate()]};V&&(d.addEvent=function(b){var d=[],b=g(!0,[],a.isArray(b)?b:[b]);a.each(b,function(a,b){b._id===c&&(b._id=G++);L.push(b);d.push(b._id)});u();return d},d.removeEvent=function(b){b=a.isArray(b)?b:[b];a.each(b,function(b,c){a.each(L,function(a,b){if(b._id===c)return L.splice(a,1),!1})});u()},d.getEvents=function(a){var b;return a?(a.setHours(0,0,0,0),b=d.prepareObj(L,a.getFullYear(),a.getMonth()), 243b[a]?n(b[a]):[]):L},d.setEvents=function(b){var d=[];L=g(!0,[],b);a.each(L,function(a,b){b._id===c&&(b._id=G++);d.push(b._id)});u();return d});g(J,{highlight:!F&&!V,divergentDayChange:!F&&!V,buttons:V&&"inline"!==p.display?["cancel"]:p.buttons,parseValue:function(a){var b,c;if(F&&a){Q={};a=a.split(",");for(b=0;b<a.length;b++){c=h.parseDate(d.format,a[b].replace(/^\s+|\s+$/g,""),p);Q[t(c)]=c}a=a[0]}return N.parseValue.call(this,a)},formatValue:function(a){var b,c=[];if(F){for(b in Q)c.push(h.formatDate(d.format, 244Q[b],p));return c.join(", ")}return N.formatValue.call(this,a)},onClear:function(){if(F){Q={};d.refresh()}},onBeforeShow:function(){if(V)p.headerText=false;if(p.closeOnSelect)p.divergentDayChange=false;if(p.counter&&F)p.headerText=function(){var b=0,c=p.selectType=="week"?7:1;a.each(Q,function(){b++});b=Math.round(b/c);return b+" "+(b>1?p.selectedPluralText||p.selectedText:p.selectedText)}},onMarkupReady:function(b){N.onMarkupReady.call(this,b);x=b;if(F){a(".dwv",b).attr("aria-live","off");m=g({}, 245Q)}Z&&a(".dw-cal",b).addClass("dw-cal-ev");P&&a(".dw-cal",b).addClass("dw-cal-m-"+P);if(V){b.addClass("dw-cal-em");l=a('<div class="dw-cal-events '+(p.eventBubbleClass||"")+'"><div class="dw-cal-events-arr"></div><div class="dw-cal-events-i"><div class="dw-cal-events-sc"></div></div></div>').appendTo(a(".dw-cal-c",b));s=a(".dw-cal-events-i",l);I=a(".dw-cal-events-sc",l);w=new e.classes.ScrollView(s[0]);z=false;d.tap(s,function(){w.scrolled||C()})}},onMonthChange:function(){V&&C()},onSelectShow:function(){V&& 246C()},onMonthLoaded:function(){if(v){B(v.d,a('.dw-cal-day-v[data-full="'+v.full+'"]:not(.dw-cal-day-diff)',x));v=false}},onDayChange:function(b){var c=b.date,e=t(c),f=a(b.cell),b=b.selected;if(V){C();f.hasClass("dw-cal-day-ev")||setTimeout(function(){d.changing?v={d:e,full:f.attr("data-full")}:B(e,f)},10)}else if(F)if(p.selectType=="week"){var h,g,j=e.getDay()-W,j=j<0?7+j:j;p.multiSelect||(Q={});for(h=0;h<7;h++){g=new Date(e.getFullYear(),e.getMonth(),e.getDate()-j+h);b?delete Q[g]:Q[g]=g}u()}else{h= 247a('.dw-cal .dw-cal-day[data-full="'+f.attr("data-full")+'"]',x);if(b){h.removeClass("dw-sel").removeAttr("aria-selected").find(".dw-i").removeClass(U);delete Q[e]}else{h.addClass("dw-sel").attr("aria-selected","true").find(".dw-i").addClass(U);Q[e]=e}}if(!V&&!p.multiSelect&&p.closeOnSelect&&p.display!=="inline"){d.needsSlide=false;d.setDate(c);d.select();return false}},onCalResize:function(){z&&r(E)},onCancel:function(){!d.live&&F&&(Q=g({},m))}});return J}})(jQuery,window,document);(function(a,b){var d=a.mobiscroll,c={wheelOrder:"hhiiss",useShortLabels:!1,minTime:0,maxTime:Infinity,labels:"Years,Months,Days,Hours,Minutes,Seconds".split(","),labelsShort:"Yrs,Mths,Days,Hrs,Mins,Secs".split(",")};d.presetShort("timespan");d.presets.scroller.timespan=function(e){function g(b){var c={};a(s).each(function(a,d){c[d]=D[d]?Math.floor(b/I[d].limit):0;b-=c[d]*I[d].limit});return c}function f(a,b){var c=!1,d=W[D[a]-1]||1,e=I[a],f=e.wheel,h=e.prefix;t=0;q=e.until;a==S&&(t=Math.max(x[a], 248b[a]-50*d),q=Math.min(l[a],t+100*d),k=t+5*d,n=q-5*d);f.keys=[];f.values=[];f.label=e.label;w.match(RegExp(e.re+e.re,"i"))&&(c=!0);for(j=t;j<=q;j+=d)f.keys.push(j),f.values.push((h||"")+(10>j&&c?"0":"")+j+'<span class="dwtlbl">'+e.label+"</span>")}function h(b){var c=0;a.each(z,function(a,d){isNaN(+b[0])||(c+=I[d.v].limit*b[a])});return c}var j,o,i,k,n,r,B,C,t,q,u,N,x,l,E=a.extend({},e.settings),K=a.extend(e.settings,c,E),w=K.wheelOrder,E=K.useShortLabels?K.labelsShort:K.labels,s="years,months,days,hours,minutes,seconds".split(","), 249I={years:{ord:0,index:6,until:10,limit:31536E6,label:E[0],re:"y",wheel:{}},months:{ord:1,index:5,until:11,limit:2592E6,label:E[1],re:"m",wheel:{}},days:{ord:2,index:4,until:31,limit:864E5,label:E[2],re:"d",wheel:{}},hours:{ord:3,index:3,until:23,limit:36E5,label:E[3],re:"h",wheel:{}},minutes:{ord:4,index:2,until:59,limit:6E4,label:E[4],re:"i",wheel:{}},seconds:{ord:5,index:1,until:59,limit:1E3,label:E[5],re:"s",wheel:{}}},z=[],W=K.steps||[],D={},S="seconds",m=0,J=K.defaultValue||Math.max(K.minTime, 250Math.min(0,K.maxTime)),v=[[]];i=0;C=g(i);x=g(K.minTime);l=g(K.maxTime);a(s).each(function(a,b){o=w.search(RegExp(I[b].re,"i"));-1<o&&(z.push({o:o,v:b}),I[b].index>I[S].index&&(S=b))});z.sort(function(a,b){return a.o>b.o?1:-1});a.each(z,function(a,b){b.v==S&&(m=a);D[b.v]=a+1;v[0].push(I[b.v].wheel);f(b.v,C)});e.getVal=function(a,b){return b?e._getVal(a):e._hasValue||a?h(e.getArrayVal(a)):null};return{mode:"scroller",showLabel:!0,wheels:v,parseValue:function(b){var c=[],e;d.util.isNumeric(b)||!b?(C= 251g(b||J),a.each(z,function(a,b){c.push(C[b.v])})):a.each(z,function(a,d){e=RegExp("(\\d+)\\s?("+K.labels[I[d.v].ord]+"|"+K.labelsShort[I[d.v].ord]+")","gi").exec(b);c.push(e?e[1]:0)});
251a(c).each(function(a,b){c[a]=Math.floor(b/(W[a]||1))*(W[a]||1)});return c},formatValue:function(b){var c="";a.each(z,function(a,d){c+=+b[a]?b[a]+" "+I[d.v].label+" ":""});return c.replace(/\s+$/g,"")},validate:function(c,d,j){var o,C,F=e._tempWheelArray;i=h(F);o=g(i);if(d===m||!r&&(F[m]<k||F[m]>n))if(f(S,o),u!==t||N!== 252q)C=F[m],B=setTimeout(function(){u=t;N=q;r=!0;F[m]=C;e.changeWheel([m],b,d!==b)},1E3*j);var w=!0,v=!0;a(s).each(function(d,e){if(D[e]!==b){var f=a(".dw-ul",c).eq(D[e]-1),h=a(".dw-li",f).index(a('.dw-li[data-val="'+l[e]+'"]',f)),g=a(".dw-li",f).index(a('.dw-li[data-val="'+x[e]+'"]',f));a(".dw-li",f).addClass("dw-v");w&&-1<h&&a(".dw-li",f).slice(h+1).removeClass("dw-v");v&&-1<g&&a(".dw-li",f).slice(0,g).removeClass("dw-v");w=w&&o[e]==l[e];v=v&&o[e]==x[e]}});r=!1},onBeforeShow:function(){i=h(e._tempWheelArray); 253C=g(i);x=g(K.minTime);l=g(K.maxTime);f(S,C)},onMarkupReady:function(b){b.addClass("dw-timespan");a(".dwwl"+m,b).on("mousedown touchstart",function(){clearTimeout(B)})}}}})(jQuery);(function(a){var b=a.mobiscroll,d=b.presets.scroller,c={min:-20,max:40,convert:!0,defUnit:"c",units:["c","k","f","r"],unitNames:{c:"\u00b0C",k:"K",f:"\u00b0F",r:"\u00b0R"}},e={c:1,k:1,f:1,r:1},g={c2k:function(a){return a+273.15},c2f:function(a){return 9*a/5+32},c2r:function(a){return 9*(a+273.15)/5},k2c:function(a){return a-273.15},k2f:function(a){return 9*a/5-459.67},k2r:function(a){return 9*a/5},f2c:function(a){return 5*(a-32)/9},f2k:function(a){return 5*(a+459.67)/9},f2r:function(a){return a+459.67}, 254r2c:function(a){return 5*(a-491.67)/9},r2k:function(a){return 5*a/9},r2f:function(a){return a-459.67}};b.presetShort("temperature");d.temperature=function(b){var h=a.extend({},c,b.settings),j=h.convert,o=[],i=[],k,n;if(h.units)for(n=0;n<h.units.length;n++)k=h.units[n],e[k]&&(o.push(k),i.push(h.unitNames[k]||k));a.extend(b.settings,h,{sign:!0,units:o,unitNames:i,convert:function(a,b,c){return j?g[b+"2"+c](a):a}});return d.measurement.call(this,b)}})(jQuery);(function(a){var b=a.mobiscroll,d=b.presets.scroller,c={min:0,max:1E3,convert:!0,defUnit:"kg",units:["g","kg","oz","lb"],unitNames:{tlong:"t (long)",tshort:"t (short)"}},e={mg:0.001,cg:0.01,dg:0.1,g:1,dag:10,hg:100,kg:1E3,t:1E6,drc:1.7718452,oz:28.3495,lb:453.59237,st:6350.29318,qtr:12700.58636,cwt:50802.34544,tlong:1016046.9088,tshort:907184.74};b.presetShort("mass");d.mass=function(b){var f=a.extend({},c,b.settings),h=f.convert,j=[],o=[],i,k;if(f.units)for(k=0;k<f.units.length;k++)i=f.units[k], 255e[i]&&(j.push(i),o.push(f.unitNames[i]||i));a.extend(b.settings,f,{sign:!1,units:j,unitNames:o,convert:function(a,b,c){return h?a*e[b]/e[c]:a}});return d.measurement.call(this,b)}})(jQuery);(function(a){var b=a.mobiscroll,d=b.presets.scroller,c={min:0,max:100,convert:!0,defUnit:"N",units:["N","kp","lbf","pdl"]},e={N:1,kp:9.80665,lbf:4.448222,pdl:0.138255};b.presetShort("force");d.force=function(b){var f=a.extend({},c,b.settings),h=f.convert,j=[],o,i;if(f.units)for(i=0;i<f.units.length;i++)o=f.units[i],e[o]&&j.push(o);a.extend(b.settings,f,{sign:!1,units:j,unitNames:null,convert:function(a,b,c){return h?a*e[b]/e[c]:a}});return d.measurement.call(this,b)}})(jQuery);(function(a){var a=a.mobiscroll,b=a.presets.scroller;b.number=b.measurement;a.presetShort("number")})(jQuery);(function(a,b,d,c){var e=a.extend,g=a.mobiscroll,f=g.classes;f.MenuStrip=function(d,j){function o(a){clearTimeout(I);I=setTimeout(function(){C("load"!==a.type)},200)}function i(b,d){if(b.length){var e=b.offset().left,f=b[0].offsetLeft,h=b.outerWidth(),g=q.offset().left;t=b;d===c&&(d=!w);z&&d&&(w?b.attr("data-selected")?n(b):k(b):(n(a(".mbsc-ms-item-sel",p)),k(b)));"a"==S?e<g?D.scroll(-f,200):e+h>g+x&&D.scroll(x-f-h,200):D.scroll(x/2-f-h/2,200);d&&v("onItemTap",[b])}}function k(a){a.addClass(W).attr("data-selected", 256"true").attr("aria-selected","true")}function n(a){a.removeClass(W).removeAttr("data-selected").removeAttr("aria-selected")}function r(a){"object"!==typeof a&&(a=p.children('[data-id="'+a+'"]'));return a}function B(){p.children().each(function(b){var c,d=a(this),e=z&&"true"==d.attr("data-selected"),f="true"==d.attr("data-disabled"),h=d.attr("data-icon");0===b&&(u=d);z&&!w&&e&&(t=d);1!==d.children().length&&a("<span></span>").append(d.contents()).appendTo(d);c=d.children().eq(0);h&&(l=!0);c.html()&& 257(E=!0);c.hasClass("mbsc-ms-item-i")||(b=a('<span class="mbsc-ms-item-i-t"><span class="mbsc-ms-item-i-c"></span></span>'),b.find(".mbsc-ms-item-i-c").append(c.contents()),c.addClass("mbsc-ms-item-i"+(h?" mbsc-ms-ic mbsc-ic mbsc-ic-"+h:"")).append(b),d.attr("data-role","button").attr("aria-selected",e?"true":null).attr("aria-disabled",f?"true":null).addClass("mbsc-ms-item mbsc-btn-e "+(m.itemClass||"")+(e?W:"")+(f?" mbsc-btn-d "+(m.disabledClass||""):"")))});l&&q.addClass("mbsc-ms-icons");E&&q.addClass("mbsc-ms-txt")} 258function C(a){x=q.width();a&&s===x||(s=x,m.itemWidth&&(K=x/Math.min(Math.floor(x/m.itemWidth),p.children().length),p.children().css("width",K+"px")),p.contents().filter(function(){return this.nodeType==3&&!/\S/.test(this.nodeValue)}).remove(),J=p.width(),e(D.settings,{contSize:x,maxSnapScroll:m.paging?1:!1,maxScroll:0,minScroll:J>x?x-J:0,snap:m.paging?x:m.snap?K||".mbsc-ms-item":!1,elastic:J>x?K||x:!1}),D.refresh())}var t,q,u,N,x,l,E,K,w,s,I,z,W,D,S,m,J,v,O=this,p=a(d);f.Base.call(this,d,j,!0);O.navigate= 259function(a,b){i(r(a),b)};O.next=function(a){var b=t?t.next():u;b.length&&(t=b,i(t,a))};O.prev=function(a){var b=t?t.prev():u;b.length&&(t=b,i(t,a))};O.select=function(b){w||n(a(".mbsc-ms-item-sel",p));k(r(b))};O.deselect=function(a){n(r(a))};O.enable=function(a){r(a).removeClass("mbsc-btn-d").removeAttr("data-disabled").removeAttr("aria-disabled")};O.disable=function(a){r(a).addClass("mbsc-btn-d").attr("data-disabled","true").attr("aria-disabled","true")};O.refresh=function(){p.height("");B();C(); 260p.height(p.height())};O.init=function(d){O._init(d);N=a("body"==m.context?b:m.context);"tabs"==m.type?(m.select=m.select||"single",m.variant=m.variant||"b"):"options"==m.type?(m.select=m.select||"multi",m.variant=m.variant||"a"):"menu"==m.type&&(m.select=m.select||"off",m.variant=m.variant||"a");m.itemWidth&&m.snap===c&&(m.snap=!0);S=m.variant;z="off"!=m.select;w="multi"==m.select;W=" mbsc-ms-item-sel "+(m.activeClass||"");q=a('<div class="mbsc-ms-c mbsc-ms-'+S+" mbsc-ms-"+m.display+" mbsc-"+m.theme+ 261" "+(m.baseTheme?" mbsc-"+m.baseTheme:"")+" "+(m.cssClass||"")+" "+(m.wrapperClass||"")+(m.rtl?" mbsc-ms-rtl":" mbsc-ms-ltr")+(m.itemWidth?" mbsc-ms-hasw":"")+("body"==m.context?"":" mbsc-ms-ctx")+(z?"":" mbsc-ms-nosel")+'"><div class="mbsc-ms-sc"></div></div>').insertAfter(p);q.find(".mbsc-ms-sc").append(p);p.css("display","").addClass("mbsc-ms "+(m.groupClass||""));B();v("onMarkupReady",[q]);p.height(p.height());D=new g.classes.ScrollView(q[0],{axis:"X",contSize:0,maxScroll:0,maxSnapScroll:1,minScroll:0, 262snap:1,elastic:1,rtl:m.rtl,mousewheel:m.mousewheel,onBtnTap:function(a){i(a,true)}});C();q.find("img").on("load",o);N.on("orientationchange resize",o);v("onInit",[])};O.destroy=function(){N.off("orientationchange resize",o);p.height("").insertAfter(q).find(".mbsc-ms-item").width("");q.off().remove();D.destroy();O._destroy()};m=O.settings;v=O.trigger;O.init(j)};f.MenuStrip.prototype={_class:"menustrip",_hasDef:!0,_hasTheme:!0,_defaults:{type:"options",display:"inline"}};g.presetShort("menustrip","MenuStrip")})(jQuery, 263window,document);(function(a){a.mobiscroll.themes.menustrip["android-holo"]={}})(jQuery);(function(a){a.mobiscroll.themes.menustrip.wp={}})(jQuery);(function(a){a.mobiscroll.themes.menustrip.sense={}})(jQuery);(function(a){a.mobiscroll.themes.menustrip.material={onInit:function(){a.mobiscroll.themes.material.initRipple(a(this),".mbsc-ms-item","mbsc-btn-d","mbsc-btn-nhl")}}})(jQuery);(function(a){a.mobiscroll.themes.menustrip["ios-classic"]={}})(jQuery);(function(a){a.mobiscroll.themes.menustrip.android={}})(jQuery);(function(a){a.mobiscroll.themes.menustrip["sense-ui"]={}})(jQuery);(function(a){a.mobiscroll.themes.menustrip.ios={}})(jQuery);(function(a){a.mobiscroll.themes.menustrip.bootstrap={wrapperClass:"popover panel panel-default",groupClass:"btn-group",activeClass:"btn-primary",disabledClass:"disabled",itemClass:"btn btn-default"}})(jQuery);(function(a){var b=a.mobiscroll,d=b.classes;d.Widget=function(b,e,g){function f(b){a(".dwcc",b).hasClass("mbsc-w-p")||a(".dwcc",b).addClass("mbsc-w-p").append(i.show())}var h,j,o,i=a(b),k=this;d.Frame.call(this,b,e,!0);k._generateContent=function(){return""};k._markupReady=function(a){"inline"!=h.display&&f(a)};k._markupInserted=function(a){"inline"==h.display&&f(a);a.trigger("mbsc-enhance",[{theme:h.theme,lang:h.lang}])};k._markupRemove=function(){i.hide();j?j.prepend(i):o.after(i)};k._processSettings= 264function(){h=k.settings;k.buttons.close={text:h.closeText,handler:"cancel"};k.buttons.ok={text:h.okText,handler:"set"};h.cssClass=(h.cssClass||"")+" mbsc-wdg";h.buttons=h.buttons||("inline"==h.display?[]:["ok"]);o=i.prev();o.length||(j=i.parent());i.hide()};g||k.init(e)};d.Widget.prototype={_hasDef:!0,_hasTheme:!0,_hasContent:!0,_class:"widget",_defaults:a.extend({},d.Frame.prototype._defaults,{okText:"OK"})};b.themes.widget=b.themes.frame;b.presetShort("widget","Widget",!1)})(jQuery);(function(a,b){var d=a.mobiscroll,c={controls:["start","reset"],autostart:!1,step:1,useShortLabels:!1,labels:"Years,Months,Days,Hours,Minutes,Seconds,".split(","),labelsShort:"Yrs,Mths,Days,Hrs,Mins,Secs,".split(","),startText:"Start",stopText:"Stop",resetText:"Reset",lapText:"Lap",hideText:"Hide"};d.presetShort("timer");
264d.presets.scroller.timer=function(d){function g(a){return new Date(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds())} 265function f(b){var c={};if(ca&&O[G].index>O.days.index){var d,e,f,h;d=new Date;var i=u?d:L;d=u?L:d;d=g(d);i=g(i);c.years=i.getFullYear()-d.getFullYear();c.months=i.getMonth()-d.getMonth();c.days=i.getDate()-d.getDate();c.hours=i.getHours()-d.getHours();c.minutes=i.getMinutes()-d.getMinutes();c.seconds=i.getSeconds()-d.getSeconds();c.fract=(i.getMilliseconds()-d.getMilliseconds())/10;for(d=v.length;0<d;d--)e=v[d-1],f=O[e],h=v[a.inArray(e,v)-1],O[h]&&0>c[e]&&(c[h]--,c[e]+="months"==h?32-(new Date(i.getFullYear(), 266i.getMonth(),32)).getDate():f.until+1);"months"==G&&(c.months+=12*c.years,delete c.years)}else a(v).each(function(a,d){O[d].index<=O[G].index&&(c[d]=Math.floor(b/O[d].limit),b-=c[d]*O[d].limit)});return c}function h(b,c){var d=1,e=O[b],f=e.wheel,h=e.prefix,g=O[v[a.inArray(b,v)-1]];I=0;z=e.until;b==G&&(I=Math.max(0,c[b]-50),z=I+100,x=I+5,l=z-5);if(e.index<=O[G].index&&(!g||g.limit>Z)){p[b]||ha[0].push(f);p[b]=1;f.keys=[];f.values=[];f.label=e.label||"";Z>=e.limit&&(d=Math.max(Math.round(Z/e.limit), 2671),n=d*e.limit);for(i=I;i<=z;i+=d)f.keys.push(i),f.values.push((h||"")+(10>i?"0":"")+i+'<span class="dwtlbl">'+(e.label||"")+"</span>")}}function j(b){var c=[],d,e=f(b);a(v).each(function(a,b){p[b]&&(d=Math.max(Math.round(Z/O[b].limit),1),c.push(Math.round(e[b]/d)*d))});return c}function o(a){ca?(t=L-new Date,0>t?(t*=-1,u=!0):u=!1,q=0,P=!0):(L!==b?(P=!1,t=1E3*L,u="down"!==m.countDirection):(t=0,P=u="down"!==m.countDirection),a&&(q=0))}var i,k,n,r,B,C,t,q,u,N,x,l,E,K,w,s,I,z,W,D,S=a.extend({},d.settings), 268m=a.extend(d.settings,c,S),J=m.useShortLabels?m.labelsShort:m.labels,v="years,months,days,hours,minutes,seconds,fract".split(","),O={years:{index:6,until:10,limit:31536E6,label:J[0],wheel:{}},months:{index:5,until:11,limit:2592E6,label:J[1],wheel:{}},days:{index:4,until:31,limit:864E5,label:J[2],wheel:{}},hours:{index:3,until:23,limit:36E5,label:J[3],wheel:{}},minutes:{index:2,until:59,limit:6E4,label:J[4],wheel:{}},seconds:{index:1,until:59,limit:1E3,label:J[5],wheel:{}},fract:{index:0,until:99, 269limit:10,label:J[6],prefix:".",wheel:{}}},p={},H=[],R=0,U=!1,F=!0,P=!1,Z=Math.max(10,1E3*m.step),G=m.maxWheel,Q=m.locked||ca,V=(a.isArray(m.controls)?m.controls:[]).join(","),L=m.targetTime,ca=L&&L.getTime!==b,T="jqm"==m.theme,ha=[[]];d.start=function(){F&&d.reset();if(!U&&(o(),P||!(q>=t)))U=!0,F=!1,B=new Date,r=q,m.readonly=!0,d.setValue(j(u?q:t-q),!0,0.1),k=setInterval(function(){q=new Date-B+r;d.setValue(j(u?q:t-q),!0,0.1);!P&&q+n>=t&&(clearInterval(k),setTimeout(function(){d.stop();q=t;d.setValue(j(u? 270q:0),!0,0.1);d.trigger("onFinish",[t]);F=!0},t-q))},n),a(".dwwr",N).addClass("dw-running dw-locked"),a(".dw-timer-st",N).removeClass(m.btnStartClass||"").addClass(m.btnStopClass||"").attr("title",m.stopText).find(".dwb-txt").text(m.stopText),d.trigger("onStart",[])};d.stop=function(){U&&(U=!1,clearInterval(k),q=new Date-B+r,a(".dwwr",N).removeClass("dw-running"),a(".dw-timer-st",N).removeClass(m.btnStopClass||"").addClass(m.btnStartClass||"").attr("title",m.startText).find(".dwb-txt").text(m.startText), 271d.trigger("onStop",[q]))};d.reset=function(){d.stop();q=0;H=[];R=0;d.setValue(j(u?0:t),!0,0.1);d.settings.readonly=Q;F=!0;Q||a(".dwwr",N).removeClass("dw-locked");d.trigger("onReset",[])};d.lap=function(){U&&(C=new Date-B+r,E=C-R,R=C,H.push(C),d.trigger("lap",[C,E,H]))};d.getTime=function(){return t};d.setTime=function(a){L=a/1E3;t=a};d.getElapsedTime=d.getEllapsedTime=function(){return U?new Date-B+r:0};d.setElapsedTime=d.setEllapsedTime=function(a,b){F||(r=q=a,B=new Date,d.setValue(j(u?q:t-q),!0, 2720.1,!1,b))};o(!0);!G&&!t&&(G="minutes");G||a(v).each(function(a,b){if(!G&&t>=O[b].limit)return G=b,!1});s=f(t);a(v).each(function(a,b){h(b,s)});n=Math.max(87,n);m.autostart&&setTimeout(function(){d.start()},0);return{wheels:ha,headerText:!1,readonly:Q,parseValue:function(){return j(u?0:t)},formatValue:function(b){var c="",d=0;a(v).each(function(a,e){"fract"!=e&&p[e]&&(c+=b[d]+("seconds"==e&&p.fract?"."+b[d+1]:"")+" "+J[a]+" ",d++)});return c},validate:function(c,g,i){var j,k,r=0,n=d._tempWheelArray, 273c=!1;F&&g!==b&&(L=0,a(v).each(function(a,b){p[b]&&(L+=O[b].limit*n[r],r++)}),L/=1E3,o(!0));if(F&&0===g)c=!0,j=f(t);else if(!K&&(n[0]<x||n[0]>l))j=f(u?q:t-q),c=!0;if(c&&(h(G,j),W!==I||D!==z))k=n[0],w=setTimeout(function(){W=I;D=z;K=true;n[0]=k;d.changeWheel([0],b,g!==b)},1E3*i);K=!1},onBeforeShow:function(){m.mode="scroller";m.showLabel=!0},onMarkupReady:function(b){var c=0;N=b;b.addClass("dw-timer");U?a(".dwwr",b).addClass("dw-running"):a(".dwwr",b).removeClass("dw-running");Q&&a(".dwwr",N).addClass("dw-locked"); 274a(".dwbc",b).remove();a(".dwwl0",b).on("mousedown touchstart",function(){clearTimeout(w)});a(v).each(function(d,e){p[e]&&(a(".dwwl"+c,b).addClass("dwwl-"+e),c++)});var f=V.match(/start/),h=V.match(/reset/)&&!ca,g=V.match(/lap/)&&!ca,i="inline"!==m.display;
274if(f||h||g||i)a(".dwwr",b).addClass("dw-timer-btns").append('<div class="dwbc">'+(f?'<span class="dwbw dwbgr dwbgrf'+(!h&&!g?" dwbgrl":"")+'"><a href="#" role="button" class="dwb-e dwb dw-timer-st '+(U?m.btnStopClass||"":m.btnStartClass||"")+'"'+ 275(T?' data-role="button" data-icon="arrow-r" data-iconpos="notext"':"")+' title="'+(U?m.stopText:m.startText)+'"><span class="dwb-i"><span class="dwb-txt">'+(U?m.stopText:m.startText)+"</span></span></a></span>":"")+(h?'<span class="dwbw dwbgr'+(!f?" dwbgrf":"")+(!g?" dwbgrl":"")+'"><a href="#" role="button" class="dwb-e dwb dw-timer-r '+(m.btnResetClass||"")+'"'+(T?' data-role="button" data-icon="delete" data-iconpos="notext"':"")+' title="'+m.resetText+'"><span class="dwb-i"><span class="dwb-txt">'+ 276m.resetText+"</span></span></a></span>":"")+(g?'<span class="dwbw dwbgr dwbgrl'+(!f&&!h?" dwbgrf":"")+'"><a href="#" role="button" class="dwb-e dwb dw-timer-l '+(m.btnLapClass||"")+'"'+(T?' data-role="button" data-icon="refresh" data-iconpos="notext"':"")+' title="'+m.lapText+'"><span class="dwb-i"><span class="dwb-txt">'+m.lapText+"</span></span></a></span>":"")+(i?'<span class="dwbw dwtcl"><a href="#" role="button" class="dwb-e dwb dw-timer-cl '+(m.btnHideClass||"")+' "'+(T?' data-role="button" data-mini="true"': 277"")+">"+m.hideText+"</a></span>":"")+"</div>"),d.tap(a(".dw-timer-st",b),function(){U?d.stop():d.start()},!0),d.tap(a(".dw-timer-r",b),function(){d.reset()},!0),d.tap(a(".dw-timer-l",b),function(){d.lap()},!0),d.tap(a(".dw-timer-cl",b),function(){d.hide()},!0)},onPosition:function(b){a(".dwwr",b).css("min-width",0).css("min-width",a(".dwbc",b).outerWidth())},onDestroy:function(){clearInterval(k)}}}})(jQuery);(function(a,b){function d(b){var c=[Math.round(b.r).toString(16),Math.round(b.g).toString(16),Math.round(b.b).toString(16)];a.each(c,function(a,b){1==b.length&&(c[a]="0"+b)});return"#"+c.join("")}function c(a){a=parseInt(-1<a.indexOf("#")?a.substring(1):a,16);return{r:a>>16,g:(a&65280)>>8,b:a&255}}function e(a){var b,c,d;b=a.h;var e=255*a.s/100,a=255*a.v/100;if(0===e)b=c=d=a;else{var e=(255-e)*a/255,f=(a-e)*(b%60)/60;360==b&&(b=0);60>b?(b=a,d=e,c=e+f):120>b?(c=a,d=e,b=a-f):180>b?(c=a,b=e,d=e+f):240> 278b?(d=a,b=e,c=a-f):300>b?(d=a,c=e,b=e+f):360>b?(b=a,c=e,d=a-f):b=c=d=0}return{r:b,g:c,b:d}}function g(a){var b=0,c;c=Math.min(a.r,a.g,a.b);var d=Math.max(a.r,a.g,a.b),b=d-c,b=(c=d?255*b/d:0)?a.r==d?(a.g-a.b)/b:a.g==d?2+(a.b-a.r)/b:4+(a.r-a.g)/b:-1,b=60*b;0>b&&(b+=360);return{h:b,s:c*(100/255),v:d*(100/255)}}function f(a){return d(e(a))}function h(a){var b=a.h,c=a.l,a=a.s/100,a=a*(50>=c?c:100-c),c=c+a;return{h:b,s:100*(c?2*a/c:0),v:c}}function j(a){return g(c(a))}var o=a.mobiscroll,i=o.util.prefix, 279k=o.presets.scroller,n={preview:!0,previewText:!0,label:"Color",refineLabel:"Refine",step:10,nr:10,format:"hex",hueText:"Hue",saturationText:"Saturation",valueText:"Value"};o.presetShort("colorpicker");o.presetShort("color");k.color=k.colorpicker=function(k){function o(a){return isNaN(+a)?0:+a}function C(a){return a.r?d(a):a.h?f(a):a}function t(a){a=C(a);return"rgb"===H?(a=c(a),Math.round(a.r)+","+Math.round(a.g)+","+Math.round(a.b)):"hsv"===H?(a=j(a),Math.round(a.h)+","+Math.round(a.s)+","+Math.round(a.v)): 280a}function q(a){return v?"hsv"==H?a.join(","):"rgb"==H?(a=e({h:a[0],s:a[1],v:a[2]}),Math.round(a.r)+","+Math.round(a.g)+","+Math.round(a.b)):f({h:a[0],s:a[1],v:a[2]}):p?a[1]:a[0]}function u(a,b,c){a[0].style.backgroundImage=i+("-webkit-"==i?"gradient(linear,left top,left bottom,from("+b+"),to("+c+"))":"linear-gradient("+b+","+c+")")}function N(b,c){var d=k._tempWheelArray;1!==c&&2!==c&&u(a(".dwwl1 .dw-ul",b),f({h:d[0],s:0,v:100}),f({h:d[0],s:100,v:100}));2!==c&&u(a(".dwwl2 .dw-ul",b),f({h:d[0],s:d[1], 281v:0}),f({h:d[0],s:d[1],v:100}));if(R){var h=e({h:d[0],s:d[1],v:d[2]}),h=0.299*h.r+0.587*h.g+0.114*h.b;a(".dw-color-preview",b).attr("style","background:"+f({h:d[0],s:d[1],v:d[2]})+";color:"+(130<h?"#000":"#fff")).text(U?q(d):"")}}function x(){var a=0,b={keys:[],values:[],labels:[],label:F},c={keys:[],values:[],labels:[],label:P},d={keys:[],values:[],labels:[],label:Z};for(a;360>a;a+=3)b.keys.push(a),b.values.push('<div class="dw-color" style="background:'+f({h:a,s:100,v:100})+'"><div class="dw-color-hl"></div></div>'), 282b.labels.push(a);for(a=0;101>a;a+=1)c.keys.push(a),d.keys.push(a),c.values.push('<div class="dw-color"><div class="dw-color-hl"></div></div>'),d.values.push('<div class="dw-color"><div class="dw-color-hl"></div></div>'),c.labels.push(a),d.labels.push(a);return[[b,c,d]]}function l(b,c,d){var e,f,h={keys:[],values:[],label:c||J.label};a.each(b,function(a,b){e=C(b);f=t(b);h.keys.push(f);h.values.push('<div class="dw-cbc"><div class="dw-cb'+("circle"===J.style?" dw-cb-circle":"")+'" style="background:'+ 283e+'"></div></div>'+f);d&&(z[f]=d)});return h}function E(a,b,c){var d,e=a.h,g=(2-a.s/100)*a.v,a=a.s*a.v,a=(d=100>=g?g:200-g)?a/d:0;d=g/2-c/2*b;for(g=[];0>d+b;)d+=b;for(c=d+(c+1)*b;100<=c-b;)c-=b;for(;d<=c;d+=b)g.push(f(h({h:e,s:a,l:Math.max(0,Math.min(d,100))})));return g}var K,w,s,I,z={},W={},D={},S,m=a.extend({},k.settings),J=a.extend(k.settings,n,m),v=!J.colors,m=a.isArray(J.colors)?J.colors:[J.colors],O=J.defaultValue||m[0],p=J.refine&&1<m.length,H=J.format,R=v&&J.preview,U=J.previewText,F=J.hueText, 284P=J.saturationText,Z=J.valueText;!v&&1==m.length&&(m=E(j(C(m[0])),J.step,J.nr));v?(I=x(),D={width:70,height:15,rows:13,speedUnit:0.006,timeUnit:0.05,showLabel:!0}):p?(a.each(m,function(a,b){w=C(b);s=t(b);W[s]=l(E(j(w),J.step,J.nr),J.refineLabel,s);a||(K=W[s])}),I=[[l(m),K]]):(D={width:180},I=[[l(m)]]);
284return a.extend({wheels:I,parseValue:function(a){if(v){if(a=a||O){if(H=="hsv"){a=a.split(",");a={h:o(a[0]),s:o(a[1]),v:o(a[2])}}else if(H=="rgb"){a=a.split(",");a=g({r:o(a[0]),g:o(a[1]),b:o(a[2])})}else{a= 285a.replace("#","");a.length==3&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]);a=j(a)}var b=Math.round(a.h);return[Math.floor(b/3)*3,Math.round(a.s),Math.round(a.v)]}return[0,100,100]}if(p){if(a&&z[a])return[z[a],a];t(O);return[z[O],O]}return[a||t(O)]},formatValue:q,onBeforeShow:function(){if(v)J.mode="scroller";if(R)J.headerText=false},onMarkupReady:function(a){a.addClass("dw-colorpicker");R&&a.find(".dwc").before('<div class="dw-color-preview"></div>');if(v){a.addClass("dw-cp-hsv");N(a)}},validate:function(a, 286c){var d=k._tempWheelArray;if(v)setTimeout(function(){N(a,c)},1);else if(p&&!c&&!S){S=true;I[0][1]=W[d[0]];c===0&&(d[1]=d[0]);k.changeWheel([1],b,c!==b)}S=false}},D)};o.colorpicker={hsv2hex:f,hsv2rgb:e,rgb2hsv:g,rgb2hex:d,hex2rgb:c,hex2hsv:j}})(jQuery);(function(a,b){var d=a.mobiscroll,c=d.presets.scroller,e=d.datetime,g=d.util.testTouch,f={autoCorrect:!0,showSelector:!0,minRange:1,fromText:"Start",toText:"End"};d.presetShort("rangepicker");d.presetShort("range");c.range=c.rangepicker=function(d){function j(a,b){a&&(a.setFullYear(b.getFullYear()),a.setMonth(b.getMonth()),a.setDate(b.getDate()))}function o(b,c){var d=!0;if(b&&l&&E&&(E-l>m.maxRange-1&&(d=!1,D?l=new Date(E-m.maxRange+1):E=new Date(+l+m.maxRange-1)),E-l<m.minRange-1))d=!1,D?l=new Date(E- 287m.minRange+1):E=new Date(+l+m.minRange-1);if(!l||!E)d=!1;if(c){var f,g,h,i,j,k=0,o=v||!D?" dw-cal-day-hl dw-cal-sel-start":" dw-cal-sel-start",n=v||D?" dw-cal-day-hl dw-cal-sel-end":" dw-cal-sel-end";N=l?e.formatDate(C,l,m):"";x=E?e.formatDate(C,E,m):"";if(r&&(a(".dw-drv0",r).html(N||" "),a(".dw-drv1",r).html(x||" "),f=l?new Date(l):null,h=E?new Date(E):null,!f&&h&&(f=new Date(h)),!h&&f&&(h=new Date(f)),j=D?h:f,a(".dw-cal-table .dw-sel .dw-i",r).removeClass(O),a(".dw-cal-table .dw-cal-day-hl", 288r).removeClass(H),a(".dw-cal-table .dw-sel",r).removeClass("dw-sel dw-cal-sel-start dw-cal-sel-end").removeAttr("aria-selected"),f&&h)){g=f.setHours(0,0,0,0);for(i=h.setHours(0,0,0,0);h>=f&&84>k;)a('.dw-cal-day[data-full="'+j.getFullYear()+"-"+j.getMonth()+"-"+j.getDate()+'"]',r).addClass("dw-sel"+(j.getTime()===g?o:"")+(j.getTime()===i?n:"")).attr("aria-selected","true").find(".dw-i ").addClass(O),j.setDate(j.getDate()+(D?-1:1)),k++}}return d}function i(a){a.addClass("dw-sel").attr("aria-checked", 289"true").find(".dw-dr").addClass(O)}function k(){I&&(a(".dw-dr-c",r).removeClass("dw-sel").removeAttr("aria-checked").find(".dw-dr",r).removeClass(O),v?(l&&i(a(".dw-dr-c",r).eq(0)),E&&i(a(".dw-dr-c",r).eq(1))):i(a(".dw-dr-c",r).eq(D)))}var n,r,B,C,t,q,u,N,x,l,E,K,w,s,I,z=d._startDate,W=d._endDate,D=0;t=new Date;var S=a.extend({},d.settings),m=a.extend(d.settings,f,S),J=m.anchor,v=m.rangeTap,O=m.activeClass||"",p="dwb-d "+(m.disabledClass||""),H="dw-cal-day-hl",R=null===m.defaultValue?[]:m.defaultValue|| 290[new Date(t.setHours(0,0,0,0)),new Date(t.getFullYear(),t.getMonth(),t.getDate()+6,23,59,59,999)];v&&(m.tabs=!0);t=c.calbase.call(this,d);n=a.extend({},t);C=d.format;K="time"===m.controls.join("");I=1==m.controls.length&&"calendar"==m.controls[0]?m.showSelector:!0;m.startInput&&(w=a(m.startInput).prop("readonly"),d.attachShow(a(m.startInput).prop("readonly",!0),function(){D=0;m.anchor=J||a(m.startInput)}));m.endInput&&(s=a(m.endInput).prop("readonly"),d.attachShow(a(m.endInput).prop("readonly",!0), 291function(){D=1;m.anchor=J||a(m.endInput)}));d.setVal=function(a,c,f,g,i){var j=a||[];if(j[0]===b||j[0]===null||j[0].getTime){u=true;N=(l=j[0]||null)?e.formatDate(C,l,m):"";D||(a=n.parseValue(N,d))}if(j[1]===b||j[1]===null||j[1].getTime){u=true;x=(E=j[1]||null)?e.formatDate(C,E,m):"";D&&(a=n.parseValue(x,d))}if(!g){d._startDate=z=l;d._endDate=W=E}d._setVal(a,c,f,g,i)};d.getVal=function(a){return a?[l,E]:d._hasValue?[z,W]:null};d.getDayProps=function(a){var b=l?new Date(l.getFullYear(),l.getMonth(), 292l.getDate()):null,c=E?new Date(E.getFullYear(),E.getMonth(),E.getDate()):null;return{selected:b&&c&&a>=b&&a<=E,cssClass:((v||!D)&&b&&b.getTime()===a.getTime()||(v||D)&&c&&c.getTime()===a.getTime()?H:"")+(b&&b.getTime()===a.getTime()?" dw-cal-sel-start":"")+(c&&c.getTime()===a.getTime()?" dw-cal-sel-end":"")}};d.setActiveDate=function(b){b=(D=b=="start"?0:1)?E:l;if(d.isVisible()){if(!v){k();a(".dw-cal-table .dw-cal-day-hl",r).removeClass(H);b&&a('.dw-cal-day[data-full="'+b.getFullYear()+"-"+b.getMonth()+ 293"-"+b.getDate()+'"]',r).addClass(H)}if(b){q=true;d.setDate(b,false,0.2,true)}}};d.setValue=function(a,b,c,e,f){d.setVal(a,b,f,e,c)};d.getValue=d.getVal;a.extend(t,{highlight:!1,divergentDayChange:!1,formatValue:function(){return N+(m.endInput?"":x?" - "+x:"")},parseValue:function(b){b=b?b.split(" - "):[];m.defaultValue=R[1];W=m.endInput?a(m.endInput).val()?e.parseDate(C,a(m.endInput).val(),m):R[1]:b[1]?e.parseDate(C,b[1],m):R[1];m.defaultValue=R[0];z=m.startInput?a(m.startInput).val()?e.parseDate(C, 294a(m.startInput).val(),m):R[0]:b[0]?e.parseDate(C,b[0],m):R[0];m.defaultValue=R[D];N=z?e.formatDate(C,z,m):"";x=W?e.formatDate(C,W,m):"";d._startDate=z;d._endDate=W;return n.parseValue(D?x:N,d)},onValueFill:function(b,c){d._startDate=z=l;d._endDate=W=E;if(m.startInput){a(m.startInput).val(N);c&&a(m.startInput).change()}if(m.endInput){a(m.endInput).val(x);c&&a(m.endInput).change()}},onClose:function(a,b){if(b==="set"&&!o(true,true)){d.setActiveDate(D?"start":"end");return false}},onHide:function(){n.onHide.call(d); 295D=0;r=null;m.anchor=J},onClear:function(){v&&(D=0)},onBeforeShow:function(){m.headerText=false;l=z;E=W;if(m.counter)m.headerText=function(){var a=l&&E?Math.max(1,Math.round(((new Date(E)).setHours(0,0,0,0)-(new Date(l)).setHours(0,0,0,0))/864E5)+1):0;return a+" "+(a>1?m.selectedPluralText||m.selectedText:m.selectedText)};u=true},onMarkupReady:function(b){var c;r=b;if(l){q=true;d.setDate(l,false,0,true);l=d.getDate(true)}if(E){q=true;d.setDate(E,false,0,true);E=d.getDate(true)}if(D&&E||!D&&l){q=true; 296d.setDate(D?E:l,false,0,true)}n.onMarkupReady.call(this,b);b.addClass("dw-range");if(I){c='<div class="dw-dr-t" role="radiogroup"><div class="dw-dr-c dw-dr0"><div role="radio" class="dwb-e dwb-nhl dw-i dw-dr">'+m.fromText+'<div class="dw-drv dw-drv0">'+(N||" ")+'</div></div></div><div class="dw-dr-c dw-dr1"><div role="radio" class="dwb-e dwb-nhl dw-i dw-dr">'+m.toText+'<div class="dw-drv dw-drv1">'+(x||" ")+"</div></div></div></div>";a(".dw-cal-tabs",b).before(c);k()}a(".dw-dr-c",b).on("touchstart click", 297function(b){if(g(b,this)){d.showMonthView();d.setActiveDate(a(this).index()?"end":"start")}})},onDayChange:function(a){a.active=D?"end":"start";B=true},onSetDate:function(c){var e=c.date,f=d.order;if(!q){f.h===b&&e.setHours(D?23:0);f.i===b&&e.setMinutes(D?59:0);f.s===b&&e.setSeconds(D?59:0);e.setMilliseconds(D?999:0);if(!u||B){if(v&&B){D==1&&e<l&&(D=0);D?e.setHours(23,59,59,999):e.setHours(0,0,0,0)}D?E=new Date(e):l=new Date(e);if(K){j(l,e);j(E,e)}v&&B&&!D&&(E=null)}}d._isValid=o(u||B||m.autoCorrect, 298!q);c.active=D?"end":"start";if(!q&&v){B&&(D=D?0:1);k()}d.isVisible()&&(d._isValid?a(".dwb-s .dwb",d._markup).removeClass(p):a(".dwb-s .dwb",d._markup).addClass(p));q=u=B=false},onTabChange:function(){o(true,true)},onDestroy:function(){a(m.startInput).prop("readonly",w);a(m.endInput).prop("readonly",s)}});return t}})(jQuery);(function(a){var b=a.mobiscroll,d=b.presets.scroller,c={min:0,max:100,convert:!0,defUnit:"kph",units:["kph","mph","mps","fps","knot"],unitNames:{kph:"km/h",mph:"mi/h",mps:"m/s",fps:"ft/s",knot:"knot"}},e={kph:1,mph:1.60934,mps:3.6,fps:1.09728,knot:1.852};b.presetShort("speed");d.speed=function(b){var f=a.extend({},c,b.settings),h=f.convert,j=[],o=[],i,k;if(f.units)for(k=0;k<f.units.length;k++)i=f.units[k],e[i]&&(j.push(i),o.push(f.unitNames[i]||i));a.extend(b.settings,f,{sign:!1,units:j,unitNames:o, 299convert:function(a,b,c){return h?a*e[b]/e[c]:a}});return d.measurement.call(this,b)}})(jQuery);(function(a,b){var d=a.mobiscroll,c={inputClass:"",values:5,order:"desc",style:"icon",invali
299d:[],layout:"fixed",icon:{filled:"star3",empty:"star3"}};d.presetShort("rating");d.presets.scroller.rating=function(e){var g=a.extend({},e.settings),f=a.extend(e.settings,c,g),h=a(this),g=this.id+"_dummy",j=a('label[for="'+this.id+'"]').attr("for",g),o=f.label!==b?f.label:j.length?j.text():h.attr("name"),i=f.defaultValue,j=[[]],o={keys:[],values:[],labels:[],label:o},k={},n=[],r,B=!1,C,t,q,u,N,x,l="grade"=== 300f.style?"circle":"icon";h.is("select")&&(f.values={},a("option",h).each(function(){f.values[a(this).val()]=a(this).text()}),a("#"+g).remove());if(a.isArray(f.values))for(C=0;C<f.values.length;C++)q=+f.values[C],isNaN(q)&&(q=C+1,B=!0),n.push({order:q,key:f.values[C],value:f.values[C]});else if(a.isPlainObject(f.values))for(t in C=1,B=!0,f.values)q=+t,isNaN(q)&&(q=C),n.push({order:q,key:t,value:f.values[t]}),C++;else for(C=1;C<=f.values;C++)n.push({order:C,key:C,value:C});f.showText===b&&B&&(f.showText= 301!0);f.icon.empty===b&&(f.icon.empty=f.icon.filled);n.sort(function(a,b){return f.order=="desc"?b.order-a.order:a.order-b.order});x="desc"==f.order?n[0].order:n[n.length-1].order;for(C=0;C<n.length;C++){N=n[C].order;q=n[C].key;u=n[C].value;B="";for(t=1;t<N+1;t++)B+='<span class="mbsc-rating-'+l+("circle"===l?"":" mbsc-ic mbsc-ic-"+f.icon.filled)+' ">'+("circle"==l?t:" ")+"</span>";for(t=N+1;t<=x;t++)B+='<span class="mbsc-rating-'+l+("circle"===l?" mbsc-rating-circle-unf":" mbsc-ic mbsc-ic-"+(f.icon.empty? 302f.icon.empty+" mbsc-rating-icon-unf":"")+(f.icon.empty===f.icon.filled?" mbsc-rating-icon-same":""))+'"></span>';i===b&&(i=q);B+=f.showText?'<span class="mbsc-rating-txt">'+u+"</span>":"";o.keys.push(q);o.values.push(B);o.labels.push(u);k[q]=u}h.is("select")&&(r=a('<input type="text" id="'+g+'" value="'+k[h.val()]+'" class="'+f.inputClass+'" placeholder="'+(f.placeholder||"")+'" readonly />').insertBefore(h));j[0].push(o);r&&e.attachShow(r);h.is("select")&&h.hide().closest(".ui-field-contain").trigger("create"); 303e.getVal=function(a){a=e._hasValue?e[a?"_tempWheelArray":"_wheelArray"][0]:null;return d.util.isNumeric(a)?+a:a};return{anchor:r,wheels:j,headerText:!1,formatValue:function(a){return k[a[0]]},parseValue:function(a){for(var b in k)if(r&&b==a||!r&&k[b]==a)return[b];return[i]},validate:function(b){a.each(f.invalid,function(c,d){a('.dw-li[data-val="'+d+'"]',b).removeClass("dw-v")})},onMarkupReady:function(a){a.addClass("dw-rating")},onValueFill:function(a){if(r){r.val(a);h.val(e._tempWheelArray[0])}}, 304onDestroy:function(){r&&r.remove();h.show()}}}})(jQuery);(function(a,b){var d=a.mobiscroll,c=d.util,e=c.isString,g={batch:40,inputClass:"",invalid:[],rtl:!1,showInput:!0,groupLabel:"Groups",checkIcon:"checkmark",dataText:"text",dataValue:"value",dataGroup:"group",dataDisabled:"disabled"};d.presetShort("select");d.presets.scroller.select=function(d){function h(){var c,d,e,f,g,h=0,i=0,j={};aa={};da={};w=[];u=[];L?a.each(H.data,function(a,h){f=h[H.dataText];g=h[H.dataValue];d=h[H.dataGroup];e={value:g,text:f,index:a};aa[g]=e;w.push(e);ca&&(j[d]===b?(c={text:d, 305value:i,options:[],index:i},da[i]=c,j[d]=i,u.push(c),i++):c=da[j[d]],ha&&(e.index=c.options.length),e.group=j[d],c.options.push(e));h[H.dataDisabled]&&ea.push(g)}):ca?a("optgroup",F).each(function(b){da[b]={text:this.label,value:b,options:[],index:b};u.push(da[b]);a("option",this).each(function(a){e={value:this.value,text:this.text,index:ha?a:h++,group:b};aa[this.value]=e;w.push(e);da[b].options.push(e);this.disabled&&ea.push(this.value)})}):a("option",F).each(function(a){e={value:this.value,text:this.text, 306index:a};aa[this.value]=e;w.push(e);this.disabled&&ea.push(this.value)});w.length&&(t=w[0].value);ia&&(w=[],h=0,a.each(da,function(b,c){g="__group"+b;e={text:c.text,value:g,group:b,index:h++};aa[g]=e;w.push(e);ea.push(e.value);a.each(c.options,function(a,b){b.index=h++;w.push(b)})}))}function j(a,c,d,e,f,g,h){var i=[],j=[],e=Math.max(0,(d[e]!==b?d[e].index:0)-R),k=Math.min(c.length-1,e+2*R);if(m[f]!==e||J[f]!==k){for(d=e;d<=k;d++)j.push(c[d].text),i.push(c[d].value);S[f]=!0;v[f]=e;O[f]=k;c={multiple:g, 307values:j,keys:i,label:h};U?a[0][f]=c:a[f]=[c]}else S[f]=!1}function o(a){j(a,u,da,q,l,!1,H.groupLabel)}function i(a){j(a,ha?da[q].options:w,aa,I,s,P,G)}function k(c){P&&(c&&e(c)&&(c=c.split(",")),a.isArray(c)&&(c=c[0]));I=c===b||null===c||""===c||!aa[c]?t:c;T&&(W=q=aa[I]?aa[I].group:null)}function n(a,b){var c=a?d._tempWheelArray:d._hasValue?d._wheelArray:null;return c?H.group&&b?c:c[s]:null}function r(){var a,b;a=[];var c=0;if(P){b=[];for(c in ga)a.push(aa[c]?aa[c].text:""),b.push(c);a=a.join(", ")}else b= 308I,a=aa[I]?aa[I].text:"";d._tempValue=b;K.val(a);F.val(b)}function B(a){var b=a.attr("data-val"),c=a.hasClass("dw-msel");if(P&&a.closest(".dwwl").hasClass("dwwms"))return a.hasClass("dw-v")&&(c?(a.removeClass(Q).removeAttr("aria-selected"),delete ga[b]):(a.addClass(Q).attr("aria-selected","true"),ga[b]=b)),!1;a.hasClass("dw-w-gr")&&(x=a.attr("data-val"))}var C,t,q,u,N,x,l,E,K,w,s,I,z,W,D,S={},m={},J={},v={},O={},p=a.extend({},d.settings),H=a.extend(d.settings,g,p),R=H.batch,p=H.layout||(/top|bottom/.test(H.display)? 309"liquid":""),U="liquid"==p,F=a(this),P=H.multiple||F.prop("multiple"),Z=this.id+"_dummy";E=a('label[for="'+this.id+'"]').attr("for",Z);var G=H.label!==b?H.label:E.length?E.text():F.attr("name"),Q="dw-msel mbsc-ic mbsc-ic-"+H.checkIcon,V=H.readonly,L=!!H.data,ca=L?!!H.group:a("optgroup",F).length;E=H.group;var T=ca&&E&&!1!==E.groupWheel,ha=ca&&E&&T&&!0===E.clustered,ia=ca&&(!E||!1!==E.header&&!ha),A=F.val()||[],ea=[],ga={},aa={},da={};H.invalid.length||(H.invalid=ea);T?(l=0,s=1):(l=-1,s=0);if(P){F.prop("multiple", 310!0);A&&e(A)&&(A=A.split(","));for(E=0;E<A.length;E++)ga[A[E]]=A[E]}h();k(F.val());a("#"+Z).remove();F.next().is("input.mbsc-control")?K=F.off(".mbsc-form").next().removeAttr("tabindex"):(K=a('<input type="text" id="'+Z+'" class="mbsc-control mbsc-control-ev '+H.inputClass+'" readonly />'),H.showInput&&K.insertBefore(F));d.attachShow(K.attr("placeholder",H.placeholder||""));F.addClass("dw-hsel").attr("tabindex",-1).closest(".ui-field-contain").trigger("create");r();d.setVal=function(a,b,g,h,i){if(P){a&& 311e(a)&&(a=a.split(","));ga=c.arrayToObject(a);a=a?a[0]:null}d._setVal(a,b,g,h,i)};d.getVal=function(a,b){return P?c.objectToArray(ga):n(a,b)};d.refresh=function(){h();m={};J={};var a=H,b=[[]];T&&o(b);i(b);a.wheels=b;m[l]=v[l];J[l]=O[l];m[s]=v[s];J[s]=O[s];C=true;k(I);d._tempWheelArray=T?[q,I]:[I];d._isVisible&&d.changeWheel(T?[l,s]:[s])};d.getValues=d.getVal;d.getValue=n;return{width:50,layout:p,headerText:!1,anchor:K,confirmOnTap:T?[!1,!0]:!0,formatValue:function(a){var b,c=[];if(P){for(b in ga)c.push(aa[b]? 312aa[b].text:"");return c.join(", ")}
312a=a[s];return aa[a]?aa[a].text:""},parseValue:function(a){k(a===b?F.val():a);return T?[q,I]:[I]},onValueTap:B,onValueFill:r,onBeforeShow:function(){if(P&&H.counter)H.headerText=function(){var b=0;a.each(ga,function(){b++});return b+" "+(b>1?H.selectedPluralText||H.selectedText:H.selectedText)};k(F.val());if(T)d._tempWheelArray=[q,I];d.refresh()},onMarkupReady:function(b){b.addClass("dw-select");a(".dwwl"+l,b).on("mousedown touchstart",function(){clearTimeout(D)}); 313a(".dwwl"+s,b).on("mousedown touchstart",function(){N||clearTimeout(D)});ia&&a(".dwwl"+s,b).addClass("dw-select-gr");if(P){b.addClass("dwms");a(".dwwl",b).on("keydown",function(b){if(b.keyCode==32){b.preventDefault();b.stopPropagation();B(a(".dw-sel",this))}}).eq(s).attr("aria-multiselectable","true");z=a.extend({},ga)}},validate:function(c,e,g,h){var j,k=[];j=d.getArrayVal(true);var n=j[l],r=j[s],p=a(".dw-ul",c).eq(l),t=a(".dw-ul",c).eq(s);m[l]>1&&a(".dw-li",p).slice(0,2).removeClass("dw-v").addClass("dw-fv"); 314J[l]<u.length-2&&a(".dw-li",p).slice(-2).removeClass("dw-v").addClass("dw-fv");m[s]>1&&a(".dw-li",t).slice(0,2).removeClass("dw-v").addClass("dw-fv");J[s]<(ha?da[n].options:w).length-2&&a(".dw-li",t).slice(-2).removeClass("dw-v").addClass("dw-fv");if(!C){I=r;if(T){q=aa[I].group;if(e===b||e===l){q=+j[l];N=false;if(q!==W){I=da[q].options[0].value;m[s]=null;J[s]=null;N=true;H.readonly=[false,true]}else H.readonly=V}}if(ca&&(/__group/.test(I)||x)){r=I=da[aa[x||I].group].options[0].value;x=false}d._tempWheelArray= 315T?[n,r]:[r];if(T){o(H.wheels);S[l]&&k.push(l)}i(H.wheels);S[s]&&k.push(s);clearTimeout(D);D=setTimeout(function(){if(k.length){C=true;N=false;W=q;m[l]=v[l];J[l]=O[l];m[s]=v[s];J[s]=O[s];d._tempWheelArray=T?[n,I]:[I];d.changeWheel(k,0,e!==b)}if(T){e===s&&d.scroll(p,l,d.getValidCell(q,p,h,false,true).v,0.1);d._tempWheelArray[l]=q}H.readonly=V},e===b?100:g*1E3);if(k.length)return N?false:true}if(e===b&&P){j=ga;g=0;a(".dwwl"+s+" .dw-li",c).removeClass(Q).removeAttr("aria-selected");for(g in j)a(".dwwl"+ 316s+' .dw-li[data-val="'+j[g]+'"]',c).addClass(Q).attr("aria-selected","true")}ia&&a('.dw-li[data-val^="__group"]',c).addClass("dw-w-gr");a.each(H.invalid,function(b,c){a('.dw-li[data-val="'+c+'"]',t).removeClass("dw-v dw-fv")});C=false},onValidated:function(){I=d._tempWheelArray[s]},onClear:function(b){ga={};K.val("");a(".dwwl"+s+" .dw-li",b).removeClass(Q).removeAttr("aria-selected")},onCancel:function(){!d.live&&P&&(ga=a.extend({},z))},onDestroy:function(){K.hasClass("mbsc-control")||K.remove(); 317F.removeClass("dw-hsel").removeAttr("tabindex")}}}})(jQuery);(function(a){a.each(["date","time","datetime"],function(b,d){a.mobiscroll.presetShort(d)})})(jQuery);(function(a){var a=a.mobiscroll,b=a.presets.scroller;b.treelist=b.list;a.presetShort("list");a.presetShort("treelist")})(jQuery);(function(a){var b=a.mobiscroll,d=b.presets.scroller;b.presetShort("image");d.image=function(b){b.settings.enhance&&(b._processMarkup=function(b){var c=b.attr("data-icon");b.children().each(function(b,c){c=a(c);c.is("img")?a('<div class="mbsc-img-c"></div>').insertAfter(c).append(c.addClass("mbsc-img")):c.is("p")&&c.addClass("mbsc-img-txt")});c&&b.prepend('<div class="mbsc-ic mbsc-ic-'+c+'"></div');b.html('<div class="mbsc-img-w">'+b.html()+"</div>");return b.html()});return d.list.call(this,b)}})(jQuery);(function(a){var b=a.mobiscroll,d=b.presets.scroller,c={min:0,max:100,convert:!0,defUnit:"km",units:"m,km,in,ft,yd,mi".split(",")},e={mm:0.001,cm:0.01,dm:0.1,m:1,dam:10,hm:100,km:1E3,"in":0.0254,ft:0.3048,yd:0.9144,ch:20.1168,fur:201.168,mi:1609.344,lea:4828.032};b.presetShort("distance");d.distance=function(b){var f=a.extend({},c,b.settings),h=f.convert,j=[],o,i;if(f.units)for(i=0;i<f.units.length;i++)o=f.units[i],e[o]&&j.push(o);a.extend(b.settings,f,{sign:!1,units:j,unitNames:null,convert:function(a, 318b,c){return h?a*e[b]/e[c]:a}});return d.measurement.call(this,b)}})(jQuery);(function(a){function b(b,c){var f=j(c,"X"),g=j(c,"Y"),h=b.offset(),B=f-h.left,C=g-h.top,B=Math.max(B,b[0].offsetWidth-B),C=Math.max(C,b[0].offsetHeight-C),C=2*Math.sqrt(Math.pow(B,2)+Math.pow(C,2));d(e);e=a('<span class="mbsc-ripple"></span>').css({width:C,height:C,top:g-h.top-C/2,left:f-h.left-C/2}).appendTo(b);setTimeout(function(){e.addClass("mbsc-ripple-scaled mbsc-ripple-visible")},10)}function d(a){a&&(a.removeClass("mbsc-ripple-visible"),setTimeout(function(){a.remove()},2E3))}var c,e,g=a.mobiscroll, 319f=g.util,h=f.testTouch,j=f.getCoord;g.themes.material={addRipple:b,removeRipple:function(){d(e)},initRipple:function(f,g,k,n){var r,B;f.on("touchstart mousedown",g,function(d){h(d,this)&&(r=j(d,"X",!0),B=j(d,"Y",!0),c=a(this),!c.hasClass(k)&&!c.hasClass(n)?b(c,d):c=null)}
319).on("touchmove mousemove",g,function(a){if(c&&20<Math.abs(j(a,"X",!0)-r)||20<Math.abs(j(a,"Y",!0)-B))d(e),c=null}).on("touchend touchcancel mouseleave mouseup",g,function(){c&&(setTimeout(function(){d(e)},100),c=null)})}}})(jQuery);var ko=ko||{bindingHandlers:{},utils:{domNodeDisposal:{}}},mobiscroll=mobiscroll||{};mobiscroll.ko={}; 320(function(a){function b(b,c){mobiscroll.ko.preventUpdate[b.id]=!0;c()(a(b).mobiscroll("getVal"));delete mobiscroll.ko.preventUpdate[b.id]}mobiscroll.ko={preventUpdate:{},getShortHandEventsObject:function(a){return{onBeforeShow:a["mobiscroll.onBeforeShow"],onCancel:a["mobiscroll.onCancel"],onChange:a["mobiscroll.onChange"],onClose:a["mobiscroll.onClose"],onDestroy:a["mobiscroll.onDestroy"],onMarkupReady:a["mobiscroll.onMarkupReady"],onPosition:a["mobiscroll.onPosition"],onSelect:a["mobiscroll.onSelect"], 321onShow:a["mobiscroll.onShow"],onValueTap:a["mobiscroll.onValueTap"],validate:a["mobiscroll.validate"]}},getInitObject:function(b,c){var e=b()["mobiscroll.options"]||{},g=b()["mobiscroll.event"]||{};a.extend(e,c?"string"===typeof c?{preset:c}:c:{},g,mobiscroll.ko.getShortHandEventsObject(b()));return e},initializeGenericComponent:function(d,c,e,g,f,h,j,o,i){e=mobiscroll.ko.getInitObject(e,h);a.extend(e,j||{});a(d).mobiscroll(e);o||(o="change");i||(i=b);ko.utils.registerEventHandler(d,o,function(){i(d, 322c)});ko.utils.domNodeDisposal.addDisposeCallback(d,function(){a(d).mobiscroll("destroy")})},updateGenericComponent:function(b,c){var e=ko.utils.unwrapObservable(c());mobiscroll.ko.preventUpdate[b.id]||a(b).mobiscroll("setVal",e,!0,!1)}};ko.bindingHandlers["mobiscroll.scroller"]={init:function(a,b,e,g,f){mobiscroll.ko.initializeGenericComponent(a,b,e,g,f)},update:mobiscroll.ko.updateGenericComponent}})(jQuery);(function(a){a.mobiscroll.themes.frame["wp-light"]={baseTheme:"wp",minWidth:76,height:76,accent:"none",dateOrder:"mmMMddDDyy",headerText:!1,showLabel:!1,deleteIcon:"backspace4",icon:{filled:"star3",empty:"star"},btnWidth:!1,btnStartClass:"mbsc-ic mbsc-ic-play3",btnStopClass:"mbsc-ic mbsc-ic-pause2",btnResetClass:"mbsc-ic mbsc-ic-stop2",btnLapClass:"mbsc-ic mbsc-ic-loop2",btnHideClass:"mbsc-ic mbsc-ic-close",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left2",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right2", 323btnPlusClass:"mbsc-ic mbsc-ic-plus",btnMinusClass:"mbsc-ic mbsc-ic-minus",onMarkupInserted:function(b,d){var c,e,g,f=d.settings;if("clickpick"!=d.settings.mode)a(".dwwl",b).on("touchstart mousedown wheel mousewheel",function(d){if(!("mousedown"===d.type&&e||(a.isArray(f.readonly)?f.readonly[a(".dwwl",b).index(this)]:f.readonly)))e="touchstart"===d.type,c=!0,g=a(this).hasClass("wpa"),a(".dwwl",b).removeClass("wpa"),a(this).addClass("wpa")}).on("touchmove mousemove",function(){c=!1}).on("touchend mouseup", 324function(b){c&&g&&a(b.target).closest(".dw-li").hasClass("dw-sel")&&a(this).removeClass("wpa");"mouseup"===b.type&&(e=!1);c=!1})},onThemeLoad:function(a,d){if(a&&a.dateOrder&&!d.dateOrder){var c=a.dateOrder,c=c.match(/mm/i)?c.replace(/mmMM|mm|MM/,"mmMM"):c.replace(/mM|m|M/,"mM"),c=c.match(/dd/i)?c.replace(/ddDD|dd|DD/,"ddDD"):c.replace(/dD|d|D/,"dD");d.dateOrder=c}},onInit:function(a){a=a.buttons;a.set.icon="checkmark";a.cancel.icon="close";a.clear.icon="close";a.ok&&(a.ok.icon="checkmark");a.close&& 325(a.close.icon="close");a.now&&(a.now.icon="loop2")}};a.mobiscroll.themes.listview["wp-light"]={baseTheme:"wp"};a.mobiscroll.themes.menustrip["wp-light"]={baseTheme:"wp"};a.mobiscroll.themes.form["wp-light"]={baseTheme:"wp"}})(jQuery);(function(a){a.mobiscroll.themes.frame["mobiscroll-dark"]={baseTheme:"mobiscroll",rows:5,showLabel:!1,headerText:!1,btnWidth:!1,selectedLineHeight:!0,selectedLineBorder:1,dateOrder:"MMddyy",weekDays:"min",checkIcon:"ion-ios7-checkmark-empty",btnPlusClass:"mbsc-ic mbsc-ic-arrow-down5",btnMinusClass:"mbsc-ic mbsc-ic-arrow-up5",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left5",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right5"};a.mobiscroll.themes.listview["mobiscroll-dark"]={baseTheme:"mobiscroll"};a.mobiscroll.themes.menustrip["mobiscroll-dark"]= 326{baseTheme:"mobiscroll"};a.mobiscroll.themes.form["mobiscroll-dark"]={baseTheme:"mobiscroll"}})(jQuery);(function(a){a.mobiscroll.themes.frame["sense-dark"]={baseTheme:"sense",minWidth:64,height:60,btnStartClass:"mbsc-ic mbsc-ic-play3",btnStopClass:"mbsc-ic mbsc-ic-pause2",btnResetClass:"mbsc-ic mbsc-ic-stop2",btnLapClass:"mbsc-ic mbsc-ic-loop2",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left5",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right5",btnPlusClass:"mbsc-ic mbsc-ic-arrow-down5",btnMinusClass:"mbsc-ic mbsc-ic-arrow-up5",onMarkupReady:function(b,d){var c=d.settings,e=c.height,c=c.rows;a(".dww",b).height(c* 327e-40);a(".dw-ul",b).css("margin-top",c/2*e-e/2-20+"px");a(".dwwms .dw-ul",b).css("margin-top","-20px");a(".dwwb",b).css({height:e-20+"px",lineHeight:e-20+"px"})}};a.mobiscroll.themes.listview["sense-dark"]={baseTheme:"sense"};a.mobiscroll.themes.menustrip["sense-dark"]={baseTheme:"sense"}})(jQuery);(function(a){a.mobiscroll.themes.frame["material-dark"]={baseTheme:"material",showLabel:!1,headerText:!1,btnWidth:!1,selectedLineHeight:!0,selectedLineBorder:1,dateOrder:"MMddyy",weekDays:"min",deleteIcon:"material-backspace",icon:{filled:"material-star",empty:"material-star-outline"},checkIcon:"material-check",btnPlusClass:"mbsc-ic mbsc-ic-material-keyboard-arrow-down",btnMinusClass:"mbsc-ic mbsc-ic-material-keyboard-arrow-up",btnCalPrevClass:"mbsc-ic mbsc-ic-material-keyboard-arrow-left",btnCalNextClass:"mbsc-ic mbsc-ic-material-keyboard-arrow-right", 328onMarkupReady:function(b){a.mobiscroll.themes.material.initRipple(b,".dwb-e","dwb-d","dwb-nhl")},onEventBubbleShow:function(b,d){var c=d.hasClass("dw-cal-events-b"),e=a(".dw-cal-event-color",d).eq(c?0:-1).css("background-color");a(".dw-cal-events-arr",d).css("border-color",c?"transparent transparent "+e+" transparent":e+"transparent transparent transparent")}};a.mobiscroll.themes.listview["material-dark"]={baseTheme:"material",onItemActivate:function(b,d){a.mobiscroll.themes.material.addRipple(b, 329d)},onItemDeactivate:function(){a.mobiscroll.themes.material.removeRipple()},onSlideStart:function(b){a(".mbsc-ripple",b).remove()},onSortStart:function(b){a(".mbsc-ripple",b).remove()}};a.mobiscroll.themes.menustrip["material-dark"]={baseTheme:"material",onInit:function(){a.mobiscroll.themes.material.initRipple(a(this),".mbsc-ms-item","mbsc-btn-d","mbsc-btn-nhl")}};a.mobiscroll.themes.form["material-dark"]={baseTheme:"material",onControlA
329ctivate:function(b,d){("button"==b[0].type||"submit"==b[0].type)&& 330a.mobiscroll.themes.material.addRipple(b,d)},onControlDeactivate:function(){a.mobiscroll.themes.material.removeRipple()}}})(jQuery);(function(a){a.mobiscroll.themes.frame["android-holo-light"]={baseTheme:"android-holo",dateOrder:"Mddyy",rows:5,minWidth:76,height:36,showLabel:!1,selectedLineHeight:!0,selectedLineBorder:2,useShortLabels:!0,icon:{filled:"star3",empty:"star"},btnPlusClass:"mbsc-ic mbsc-ic-arrow-down6",btnMinusClass:"mbsc-ic mbsc-ic-arrow-up6"};a.mobiscroll.themes.listview["android-holo-light"]={baseTheme:"android-holo"};a.mobiscroll.themes.menustrip["android-holo-light"]={baseTheme:"android-holo"};a.mobiscroll.themes.form["android-holo-light"]= 331{baseTheme:"android-holo"}})(jQuery);var Backbone=Backbone||{View:{},Model:{}},mobiscroll=mobiscroll||{};mobiscroll.bb={}; 332(function(){function a(a){var c=this.prototype;_.isArray(a)?_.forEach(a,function(a){_.defaults(c,a);_.defaults(c.events,a.events);b(c,a,"initialize");b(c,a,"render")},this):(_.defaults(c,a),_.defaults(c.events,a.events),b(c,a,"initialize"),b(c,a,"render"))}function b(a,b,e){if(!_.isUndefined(b[e])){var g=a[e];a[e]=function(){var a=g.apply(this,arguments);b[e].apply(this,arguments);return a}}}Backbone.View.addControl=a;mobiscroll.bb.getComponentMixin=function(a,b,e,g,f,h,j){f=f||function(a,b,c){c.model.set(a, 333c.$el.find(b).mobiscroll("getVal"))};h=h||function(a,b,c,d){b=d.$el.find(b);b.mobiscroll(c);a=d.model.get(a);b.mobiscroll("setVal",a,!0,!1)};j=j||function(){};void 0===g&&(g=!0);var o={};g&&(o["change "+b]=a+"_changeTrigger");var i=!1,g={events:o,initialize:function(){this.model.on("change:"+a,function(){i||h(a,b,e,this)},this);j(this)},render:function(){h(a,b,e,this)}};g[a+"_changeTrigger"]=function(){i=!0;f(a,b,this);i=!1};return g};Backbone.Model.createHierarchyModel=function(b){var c=Backbone.Model.extend({deaults:{children:null}, 334initialize:function(a){this.set("children",new e(a.children));this.get("children").on("add mobiscrollListviewAddChild",function(a,b){this.trigger("mobiscrollListviewAddChild",a,b)},this);this.get("children").on("remove mobiscrollListviewRemoveChild",function(a,b,c){this.trigger("mobiscrollListviewRemoveChild",a,b,c)},this);this.get("children").on("mobiscrollListviewItemChange",function(a){this.trigger("mobiscrollListviewItemChange",a)},this)}});a.call(c,b);var e=Backbone.Collection.extend({model:c, 335initialize:function(){this.on("change",function(a){this.trigger("mobiscrollListviewItemChange",a)},this)}});return{collectionModel:e,itemModel:c}};mobiscroll.scroller=function(a,b,e,g){e=e||{};return mobiscroll.bb.getComponentMixin(a,b,e,g)}})();var angular=angular||{module:function(){return this},directive:function(){return this},animation:function(){return this}},mobiscroll=mobiscroll||{};mobiscroll.ng={}; 336(function(){mobiscroll.ng={getDDO:function(a,b,d,c,e,g){var f=e||mobiscroll.ng.genericRead,h=c||mobiscroll.ng.genericRender,j=g||mobiscroll.ng.genericParser;return{restrict:"A",require:"?ngModel",link:function(c,e,g,n){var r=mobiscroll.ng.getInitOptions(c,g,b,n);mobiscroll.ng.addWatch(a,c,n,h,j,e,g,b);angular.extend(r,d||{});e.mobiscroll(r);e.on("change",function(){c.$apply(function(){f(a,b,e,c,g,n)})});g.mobiscrollInstance&&(r=a(g.mobiscrollInstance).assign,r(c,e.mobiscroll("getInst")))}}},preventRender:{}, 337genericRead:function(a,b,d,c,e,g){g?g.$setViewValue(d.mobiscroll("getVal")):a(e[b]).assign(c,d.mobiscroll("getVal"))},genericRender:function(a,b){var d=$.mobiscroll.instances[a.attr("id")];d&&!angular.equals(d.getVal(),b)&&a.mobiscroll("setVal",b,!0,0,!1,!1)},genericParser:function(a){a=a.mobiscroll("getVal");return Array.isArray(a)&&!a.length?null:a},addWatch:function(a,b,d,c,e,g,f,h){d&&(d.$render=function(){c(g,d.$modelValue)},d.$parsers.unshift(function(a){return e(g,a)}),d.$formatters.push(function(){return g.mobiscroll("getInst")._value})); 338var j;b.$watch(function(){var e=d?d.$modelValue:a(f[h])(b);if(!angular.equals(j,e)){j=Array.isArray(e)?e.slice(0):e;d?c(g,d.$modelValue):c(g,a(f[h])(b))}})},getInitOptions:function(a,b,d,c){var e=a.$eval(b.mobiscrollOptions||"{}");
338c&&angular.extend(e,a.$eval(b[d]||"{}"));return e}};angular.module("mobiscroll-scroller",[]).directive("mobiscrollScroller",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollScroller")}])})(jQuery);mobiscroll=mobiscroll||{};Ember||(Function.prototype.property=function(){});var Ember=Ember||{Handlebars:{helper:function(){},compile:function(){}},View:{extend:function(){}},CollectionView:{extend:function(){}}}; 339(function(a){function b(a,b){var d=b.get("value"),f=b.get("controller.model");mobiscroll.ember.preventUpdate[a.attr("id")]=true;f.set(d,a.mobiscroll("getVal"));delete mobiscroll.ember.preventUpdate[a.attr("id")]}function d(a,b,d){b=b.get("controller.model."+d);mobiscroll.ember.preventUpdate[a.attr("id")]||a.mobiscroll("setVal",b,true,false)}mobiscroll.ember={preventUpdate:{},getEmberMobiscrollView:function(a,e,g,f,h,j,o){var i=f||mobiscroll.ember.defaultMarkupTemplate,k=h===null?null:h||"input",n= 340a instanceof Function?a:mobiscroll.ember.generalInitFn,f=f&&f("").layout?{layout:function(){}}:{template:function(){}};return Ember.View.extend(f,{init:function(){this._super();var a=i.call(this,this.get("value"),this.get("controller.model"));if(a.template)this.template=a.template;else if(a.layout)this.layout=a.layout},options:"",value:"",didInsertElement:function(){function f(){u(x,E,l)}function h(a,b,c,d){q(x,E,l,a,b,c,d)}function i(a,b,c,d){o.willChange(x,E,l,a,b,c,d)}function t(a,b,c,d){o.didChange(x, 341E,l,a,b,c,d)}var q=e||d,u=g||b,N={};this.options&&(N=(new Function("controller","return "+this.options))(this.get("controller")));var x;x=k===null?this.$():this.$().find(k);n(x,N,a,j,this);if(k!==null)x.on("change",f);var l=this.get("value");if(l){if(o){this.observerOptions={willChange:i,didChange:t};this.get("controller.model."+l).addArrayObserver(this,this.observerOptions)}else{this.observerOptions=h;this.get("controller.model").addObserver(l,this,h)}q(x,this,l)}var E=this},willDestroyElement:function(){var a= 342this.get("value");o?this.get("controller.model."+a).removeArrayObserver(this,this.observerOptions):this.get("controller.model."+a).removeObserver(this,a,this.observerOptions)}})},defaultMarkupTemplate:function(){return{template:Ember.Handlebars.compile('<input type="text" />')}},generalInitFn:function(b,d,g,f){a.extend(d,{preset:g},f);b.mobiscroll(d)},arrayTransformer:function(){return DS.Transform.extend({serialize:function(a){return Ember.typeOf(a)=="array"?a:[]},deserialize:function(a){switch(Em.typeOf(a)){case "array":return a; 343case "string":return a.split(",").map(function(a){return jQuery.trim(a)});default:return[]}}})}};mobiscroll.ember.scroller=function(){return mobiscroll.ember.getEmberMobiscrollView("scroller")};Ember.Handlebars.helper("mobiscroll-scroller",mobiscroll.ember.scroller())})(jQuery);var kendo=kendo||{data:{binders:{source:{extend:function(){}}},Binder:{extend:function(){}}}},mobiscroll=mobiscroll||{};mobiscroll.kendo={}; 344(function(a){mobiscroll.kendo.preventUpdate={};mobiscroll.kendo.getMobiBinder=function(b,d,c,e,g,f){function h(b,c,d){mobiscroll.kendo.preventUpdate[a(d).attr("id")]=!0;b.set(a(d).mobiscroll("getVal"));delete mobiscroll.kendo.preventUpdate[a(d).attr("id")]}function j(b,c){mobiscroll.kendo.preventUpdate[a(b).attr("id")]||a(b).mobiscroll("setVal",c,!0,!1)}function o(c,e,f){kendo.data.Binder.fn.init.call(this,c,e,f);var f=mobiscroll.kendo.getMobiInitObject(c,e,b,d,g),h=this;a(h.element).on("change", 345function(){h.change(e,c)}).mobiscroll(f)}c||(c=j);e||(e=h);f||(f=o);return{init:f,refresh:function(a){var d=this.bindings[b].get();c(this.element,d,a?a.action:void 0)},change:function(a,c){e(this.bindings[b],a,c)}}};mobiscroll.kendo.getMobiInitObject=function(b,d,c,e,g){var b=a(b).data("mobiscroll-options"),f={};b&&(f=(new Function("$root","return "+b))(d[c].parents[0]));return a.extend(!0,"string"===typeof e?{preset:e}:e,f,g||{})};kendo.data.binders["mobiscroll-scroller"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-scroller", 346"scroller"))})(jQuery);(function(a){var b,d,c,e=a.mobiscroll,g=e.themes;d=navigator.userAgent.match(/Android|iPhone|iPad|iPod|Windows|Windows Phone|MSIE/i);if(/Android/i.test(d)){if(b="android-holo",d=navigator.userAgent.match(/Android\s+([\d\.]+)/i))d=d[0].replace("Android ",""),b=5<=d.split(".")[0]?"material":4<=d.split(".")[0]?"android-holo":"android"}else if(/iPhone/i.test(d)||/iPad/i.test(d)||/iPod/i.test(d)){if(b="ios",d=navigator.userAgent.match(/OS\s+([\d\_]+)/i))d=d[0].replace(/_/g,".").replace("OS ",""),b="7"<= 347d?"ios":"ios-classic"}else if(/Windows/i.test(d)||/MSIE/i.test(d)||/Windows Phone/i.test(d))b="wp";a.each(g,function(d,g){a.each(g,function(a,d){if(d.baseTheme==b)return e.autoTheme=a,c=!0,!1;a==b&&(e.autoTheme=a)});if(c)return!1})})(jQuery);(function(a){var b={};ko.utils.domNodeDisposal.cleanExternalData=function(){};ko.bindingHandlers["mobiscroll.listview"]={makeTemplateValueAccessor:function(b){return function(){function c(b){if("LI"==b.nodeName){var c=a(b).addClass("mbsc-lv-item").parent("ul");c.prepend(c.children(".mbsc-lv-back"));a(b).closest(".mbsc-lv-cont").find(".mbsc-lv-root").mobiscroll("add",null,a(b),c.children("li").not(".mbsc-lv-back").index(a(b)),void 0,c)}}function e(b){if("LI"==b.nodeName){var c=a(b).addClass("mbsc-lv-item").parent("ul"); 348c.prepend(c.children(".mbsc-lv-back"));a(b).closest(".mbsc-lv-cont").find(".mbsc-lv-root").mobiscroll("remove",a(b))}else a(b).remove()}var g=b(),f=ko.utils.peekObservable(g);if(!f||"number"==typeof f.length)return{foreach:g,templateEngine:ko.nativeTemplateEngine.instance,afterAdd:c,beforeRemove:e};ko.utils.unwrapObservable(g);return{name:f.name?f.name:void 0,foreach:f.name?f.foreach:f.data,as:f.as,includeDestroyed:f.includeDestroyed,afterAdd:c,beforeRemove:e,afterRe
348nder:f.afterRender,beforeMove:f.beforeMove, 349afterMove:f.afterMove,templateEngine:ko.nativeTemplateEngine.instance}}},init:function(a,c){var e=ko.bindingHandlers.template.init(a,ko.bindingHandlers["mobiscroll.listview"].makeTemplateValueAccessor(c));a.id||(a.id=+new Date);b[a.id]=!0;return e},update:function(d,c,e,g,f){ko.utils.unwrapObservable(c());c=ko.bindingHandlers.template.update(d,ko.bindingHandlers["mobiscroll.listview"].makeTemplateValueAccessor(c),e,g,f);g=a(d).parent().parent("ul");if(b[d.id]&&!(g.length&&void 0!==b[g[0].id]))e=ko.utils.extend(mobiscroll.ko.getInitObject(e), 350{onItemRemove:e()["mobiscroll.onItemRemove"],onItemAdd:e()["mobiscroll.onItemAdd"],onInit:e()["mobiscroll.onInit"]}),a(d).mobiscroll().listview(e);else if(g.length&&void 0!==b[g[0].id]&&a(d).parents(".mbsc-lv-cont").length&&a(d).parent().hasClass("mbsc-lv-item")){var h=a(d);h.children("li").each(function(b){h.prepend(h.children(".mbsc-lv-back"));a(this).closest(".mbsc-lv-cont").find(".mbsc-lv-root").mobiscroll("add",null,a(this),b,void 0,h.parent())})}b[d.id]=!1;return c}}})(jQuery);(function(){ko.bindingHandlers["mobiscroll.form"]={init:function(a,b,d){b=mobiscroll.ko.getInitObject(d);$(a).mobiscroll().form(b);ko.utils.registerEventHandler(a,"mbscFormRefresh",function(){$(a).mobiscroll("refresh")})}}})();(function(){ko.bindingHandlers["mobiscroll.numpad"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,{component:"Numpad"},null)},update:mobiscroll.ko.updateGenericComponent}})();(function(){ko.bindingHandlers["mobiscroll.force"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"force")},update:mobiscroll.ko.updateGenericComponent};ko.bindingHandlers["mobiscroll.speed"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"speed")},update:mobiscroll.ko.updateGenericComponent};ko.bindingHandlers["mobiscroll.mass"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"mass")},update:mobiscroll.ko.updateGenericComponent}; 351ko.bindingHandlers["mobiscroll.distance"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"distance")},update:mobiscroll.ko.updateGenericComponent};ko.bindingHandlers["mobiscroll.temperature"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"temperature")},update:mobiscroll.ko.updateGenericComponent}})();(function(a){function b(a){return{onDayChange:a()["mobiscroll.onDayChange"],onEventSelect:a()["mobiscroll.onEventSelect"],onMonthChange:a()["mobiscroll.onMonthChange"]}}ko.bindingHandlers["mobiscroll.calendar.events"]={init:function(d,c,e,g,f){var h=b(e);a.extend(h,{events:[]});mobiscroll.ko.initializeGenericComponent(d,c,e,g,f,"calendar",h,"change",function(){})},update:function(b,c){var e=ko.utils.unwrapObservable(c());if(void 0!==e){var g=a(b),f=g.mobiscroll("getInst");g.mobiscroll("setEvents", 352e);g.val(f._value)}}};ko.bindingHandlers["mobiscroll.calendar"]={init:function(a,c,e,g,f){var h=b(e);mobiscroll.ko.initializeGenericComponent(a,c,e,g,f,"calendar",h)},update:mobiscroll.ko.updateGenericComponent}})(jQuery);(function(){ko.bindingHandlers["mobiscroll.timespan"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"timespan")},update:mobiscroll.ko.updateGenericComponent}})();(function(){ko.bindingHandlers["mobiscroll.number"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"number")},update:mobiscroll.ko.updateGenericComponent}})();(function(){ko.bindingHandlers["mobiscroll.menustrip"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,{component:"MenuStrip"},null)},update:mobiscroll.ko.updateGenericComponent}})();(function(){ko.bindingHandlers["mobiscroll.widget"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,{component:"Widget"})},update:mobiscroll.ko.updateGenericComponent}})();(function(a){var b={};ko.bindingHandlers["mobiscroll.timer"]={init:function(d,c,e,g,f){var h={lap:e()["mobiscroll.lap"],onStart:e()["mobiscroll.onStart"],onStop:e()["mobiscroll.onStop"],onReset:e()["mobiscroll.onReset"],onFinish:e()["mobiscroll.onFinish"]};mobiscroll.ko.initializeGenericComponent(d,c,e,g,f,"timer",h,"change",function(c,d){var e=a(c),f=d();b[c.id]=!0;f(e.mobiscroll("getEllapsedTime"))})},update:function(d,c){var e=ko.utils.unwrapObservable(c());if(!b[d.id]&&void 0!==e){var g=a(d); 353g.mobiscroll("setEllapsedTime",e);e=g.mobiscroll("getInst");g.val(e._value)}b[d.id]=!1}}})(jQuery);(function(){ko.bindingHandlers["mobiscroll.colorpicker"]=ko.bindingHandlers["mobiscroll.color"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"colorpicker")},update:mobiscroll.ko.updateGenericComponent}})();(function(){ko.bindingHandlers["mobiscroll.rangepicker"]=ko.bindingHandlers["mobiscroll.range"]={init:function(a,b,d,c,e){var g={onDayChange:d()["mobiscroll.onDayChange"],onMonthChange:d()["mobiscroll.onMonthChange"]};mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"rangepicker",g)},update:mobiscroll.ko.updateGenericComponent}})();(function(){ko.bindingHandlers["mobiscroll.rating"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"rating",null)},update:mobiscroll.ko.updateGenericComponent}})();(function(){ko.bindingHandlers["mobiscroll.select"]={init:function(a,b,d,c,e){var g={},f=d();f["mobiscroll-data"]&&(f["mobiscroll-data"].subscribe(function(){$(a).mobiscroll("refresh")}),g={data:f["mobiscroll-data"]()});mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"select",g)},update:mobiscroll.ko.updateGenericComponent}})();(function(){ko.bindingHandlers["mobiscroll.date"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"date",null)},update:mobiscroll.ko.updateGenericComponent};ko.bindingHandlers["mobiscroll.time"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"time",null)},update:mobiscroll.ko.updateGenericComponent};ko.bindingHandlers["mobiscroll.datetime"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"datetime",null,"change")}, 354update:mobiscroll.ko.updateGenericComponent}})();(function(){ko.bindingHandlers["mobiscroll.list"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"list")},update:mobiscroll.ko.updateGenericComponent}})();(function(){ko.bindingHandlers["mobiscroll.image"]={init:function(a,b,d,c,e){mobiscroll.ko.initializeGenericComponent(a,b,d,c,e,"image")},update:mobiscroll.ko.updateGenericComponent}})();(function(){mobiscroll.listview=function(a,b,d,c){function e(a,b,c,d){if(b==a)return c;c=c.children("li").not(".mbsc-lv-back");if(c.length&&a)for(var g=0;g<c.length;g++){var k=$(c[g]).children("ul");if(!k.length){var n=$(c[g]).data("ref"),n=d.find('li.mbsc-lv-back[data-back="'+n+'"]');n.length&&(k=n.parent("ul"))}var n=a.at(g).get("children"),r=!1;if(k.length&&n)r=e(n,b,k,d);else if(!k.length&&n==b)return $(c[g]);if(r)return r}return!1}function g(a,b,c){var d="";b.forEach(function(b){var c=b.get("children"), 355e=d,b="<li>"+_.template(a)(b.toJSON()),c=c&&c.length?"<ul>"+g(a,c)+"</ul>":"";d=e+(b+c+"</li>")},c);return d}d=d||{};return{initialize:function(){var d=this.model.get(a);d.on("add mobiscrollListviewAddChild",function(a,g){var o=c.html(),o=_.template(o,a.toJSON()),i=1==g.length?0:void 0,k=this.$el.find(b),n=e(d,g,k,k.closest(".mbsc-lv-cont"));k.mobiscroll("add",g.length,o,i,void 0,n)},this);d.on("remove mobiscrollListviewRemoveChild",function(a,c,g){a=this.$el.find(b);var g=g.index,i=a.closest(".mbsc-lv-cont"), 356c=c==d?a.children("li").not(".mbsc-lv-back").eq(g):e(d,c,a,i).children("li").not(".mbsc-lv-back").eq(g);a.mobiscroll("remove",c)},this)},render:function(){this.$el.find(b).data("view-model",this.model);var e="",e=this.model.get(a),e=g(c.html(),e,this);this.$el.find(b).html(e);this.$el.find(b).mobiscroll().listview(d)}}}})(jQuery);(function(){mobiscroll.form=function(a){return{render:function(){this.$el.mobiscroll().form(a)}}}})(jQuery);(function(a){mobiscroll.numpad=function(b,d,c,e){c=c||{};a.extend(c,{component:"Numpad"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(a){mobiscroll.temperature=function(b,d,c,e){c=c||{};
356a.extend(c,{preset:"temperature"});return mobiscroll.bb.getComponentMixin(b,d,c,e)};mobiscroll.speed=function(b,d,c,e){c=c||{};a.extend(c,{preset:"speed"});return mobiscroll.bb.getComponentMixin(b,d,c,e)};mobiscroll.mass=function(b,d,c,e){c=c||{};a.extend(c,{preset:"mass"});return mobiscroll.bb.getComponentMixin(b,d,c,e)};mobiscroll.force=function(b,d,c,e){c=c||{};a.extend(c,{preset:"force"});return mobiscroll.bb.getComponentMixin(b,d, 357c,e)};mobiscroll.distance=function(b,d,c,e){c=c||{};a.extend(c,{preset:"distance"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(a){function b(a,b,e,g){b=g.$el.find(b);b.mobiscroll(e);e=b.mobiscroll("getInst");b.mobiscroll("setEvents",g.model.get(a));b.val(e._value)}mobiscroll.calendar=function(b,c,e,g){e=e||{};a.extend(e,{preset:"calendar"});return mobiscroll.bb.getComponentMixin(b,c,e,g)};mobiscroll.calendarEvents=function(d,c,e,g){e=e||{};a.extend(e,{preset:"calendar",events:[]});return mobiscroll.bb.getComponentMixin(d,c,e,g,void 0,b)}})(jQuery);(function(a){mobiscroll.timespan=function(b,d,c,e){c=c||{};a.extend(c,{preset:"timespan"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(a){mobiscroll.number=function(b,d,c,e){c=c||{};a.extend(c,{preset:"number"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(a){mobiscroll.menustrip=function(b,d,c,e){c=c||{};a.extend(c,{component:"MenuStrip"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(a){mobiscroll.widget=function(b,d,c,e){c=c||{};a.extend(c,{component:"Widget"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(a){function b(a,b,d){b=d.$el.find(b).mobiscroll("getEllapsedTime");d.model.set(a,b)}function d(a,b,d,f){b=f.$el.find(b);b.mobiscroll(d);a=b.mobiscroll("setEllapsedTime",f.model.get(a)).mobiscroll("getInst");b.val(a._value)}mobiscroll.timer=function(c,e,g,f){g=g||{};a.extend(g,{preset:"timer"});return mobiscroll.bb.getComponentMixin(c,e,g,f,b,d)}})(jQuery);(function(a){mobiscroll.colorpicker=mobiscroll.color=function(b,d,c,e){c=c||{};a.extend(c,{preset:"colorpicker"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(a){mobiscroll.rangepicker=mobiscroll.range=function(b,d,c,e){c=c||{};a.extend(c,{preset:"rangepicker"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(a){mobiscroll.rating=function(b,d,c,e){c=c||{};a.extend(c,{preset:"rating"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(a){mobiscroll.select=function(b,d,c,e,g){c=c||{};a.extend(c,{preset:"select"});return mobiscroll.bb.getComponentMixin(b,d,c,e,void 0,function(b,c,d,e){var i={};g&&(i={data:e.model.get(g).toJSON()});a.extend(d,i);e.$el.find(c).mobiscroll(d).mobiscroll("setVal",e.model.get(b),!0,!1)},function(a){if(g)a.model.get(g).on("add remove reset sort change",function(){var a=this.$el.find(d).mobiscroll("getInst");a.settings.data=this.model.get(g).toJSON();a.refresh()},a)})}})(jQuery);(function(a){mobiscroll.date=function(b,d,c,e){c=c||{};a.extend(c,{preset:"date"});return mobiscroll.bb.getComponentMixin(b,d,c,e)};mobiscroll.time=function(b,d,c,e){c=c||{};a.extend(c,{preset:"time"});return mobiscroll.bb.getComponentMixin(b,d,c,e)};mobiscroll.datetime=function(b,d,c,e){c=c||{};a.extend(c,{preset:"datetime"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(a){mobiscroll.list=function(b,d,c,e){c=c||{};a.extend(c,{preset:"list"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(a){mobiscroll.image=function(b,d,c,e){c=c||{};a.extend(c,{preset:"image"});return mobiscroll.bb.getComponentMixin(b,d,c,e)}})(jQuery);(function(){function a(a,b,c,d){1==a.length&&a.is("li")||$(a[0]).is("li")?(a=a.clone(),$(a[0]).addClass(!1!==d?"mbsc-lv-repeat-animation":"").attr("ng-repeat-start","item in "+b),$(a).filter("li").eq(-1).addClass(!1!==d?"mbsc-lv-repeat-animation":"").attr("ng-repeat-end","").attr("mobiscroll-listview-item",c)):(a=$("<li></li>").append(a.clone()),a.addClass(!1!==d?"mbsc-lv-repeat-animation":"").attr("ng-repeat","item in "+b).attr("mobiscroll-listview-item",c));return a}function b(a){var c=0,d=0;if(!a)return c; 358for(d;d<a.length;d++)c++,a[d].children&&a[d].children.length&&(c+=b(a[d].children));return c}var d,c=+new Date,e=[];try{d=angular.module("ngAnimate")}catch(g){}d&&e.push("ngAnimate");angular.module("mobiscroll-listview",e).directive("mobiscrollListviewItem",["$rootScope","$compile","$timeout",function(a,b,c){return{link:function(d,e,g){var n=e.parent("ul"),g=g.mobiscrollListviewItem,r=a.msNodeCounts[g],B=e.parents(".mbsc-lv-cont").length;r.nodesLeft--;if(n&&(B||0===r.nodesLeft))if(B){var C=n.children("li").not(".mbsc-lv-back").index(e); 359e.addClass("mbsc-lv-item").hide();n.hasClass("mbsc-lv-root")?c(function(){n.mobiscroll("add",null,e.show(),C,void 0,n)}):c(function(){n.prepend(n.children(".mbsc-lv-back"));var a=n.parent("li");r.rootNode.mobiscroll("add",null,e.show(),C,void 0,a.length?a:n)})}else d.$emit("mbscLvLastItemAdded",r.rootNode);e.append(b('<div style="display:none;"><ul><li'+(e.hasClass("mbsc-lv-repeat-animation")?' class="mbsc-lv-repeat-animation"':"")+' mobiscroll-listview-hitem="'+g+'" ng-repeat="item in item.children"></li></ul></div>')(d)); 360d.$emit("listItemAdded",e);d.$on("$destroy",function(){d.$emit("listItemRemoved")})}}}]).directive("mobiscrollListviewHitem",["$rootScope","$compile","$timeout",function(b,c,d){return{link:function(e,g,k){var n=g.parent(),r=n.parent().hasClass("mbsc-lv-ng-initialized");1>=n.children("li").not(".mbsc-lv-back").length&&!r&&(k=k.mobiscrollListviewHitem,n.parent().addClass("mbsc-lv-ng-initialized").parent().append(c($("<ul></ul>").append(a(b.msTemplates[k],"item.children",k,g.hasClass("mbsc-lv-repeat-animation"))))(e.$parent)), 361d(function(){}));e.$on("$destroy",function(){if(n&&!n.children("li").length){n=n.parent().parent().children("ul");n.remove()}})}}}]).directive("mobiscrollListview",["$compile","$parse","$rootScope","$timeout",function(d,e,g,o){return{restrict:"A",require:"?ngModel",compile:function(e){var h=c++,n=$($.parseHTML($.trim(e.html().replace(/(mbsc-ng-)|(ms-ng-)/g,"ng-"))));return function(c,e,i,t){var q,u;t||i.mobiscrollData?(q=c.$eval(i.mobiscrollListview||"{}"),u=i.mobiscrollData||i.ngModel):(q=c.$eval(i.mobiscrollOptions|| 362"{}"),u=i.mobiscrollListview);t=b(c.$eval(u));g.msNodeCounts=g.msNodeCounts||[];g.msNodeCounts[h]={rootNode:e,allNodes:t,nodesLeft:t};g.msTemplates=g.msTemplates||[];g.msTemplates[h]=n;u=$("<div></div>").append(a(n,u,h,q.animation));u=d(u)(c).contents().unwrap();e.html(u);c.$on("mbscLvLastItemAdded",function(a,b){e[0]==b[0]&&o(function(){e.mobiscroll().listview(q);i.mobiscrollInstance&&(c[i.mobiscrollInstance]=e.mobiscroll("getInst"))})});0===t&&c.$emit("mbscLvLastItemAdded",e)}}}}]);d&&angular.module("mobiscroll-listview").animation(".mbsc-lv-repeat-animation",
363function(){return{leave:function(a,b){a.closest(".mbsc-lv-cont").find(".mbsc-lv-root").mobiscroll("remove",a,"right",b)}}})})(jQuery);(function(){angular.module("mobiscroll-form",[]).directive("mobiscrollForm",[function(){return{restrict:"A",link:function(a,b,d){d=mobiscroll.ng.getInitOptions(a,d,"mobiscrollForm",!0);b.mobiscroll().form(d);a.$on("mbscFormRefresh",function(){b.mobiscroll("refresh")})}}}])})(jQuery);(function(){function a(a,d,c,e,g,f){c=c.mobiscroll("getVal");!isNaN(parseFloat(c))&&isFinite(c)&&(c=parseFloat(c));f?f.$setViewValue(c):(a=a(g[d]).assign,a(e,c))}angular.module("mobiscroll-numpad",[]).directive("mobiscrollNumpad",["$parse",function(b){return mobiscroll.ng.getDDO(b,"mobiscrollNumpad",{component:"Numpad"},null,a)}])})(jQuery);(function(){angular.module("mobiscroll-measurement",[]).directive("mobiscrollTemperature",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollTemperature",{preset:"temperature"})}]).directive("mobiscrollSpeed",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollSpeed",{preset:"speed"})}]).directive("mobiscrollMass",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollMass",{preset:"mass"})}]).directive("mobiscrollForce",["$parse",function(a){return mobiscroll.ng.getDDO(a, 364"mobiscrollForce",{preset:"force"})}]).directive("mobiscrollDistance",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollDistance",{preset:"distance"})}])})(jQuery);(function(){function a(a,b){if(void 0!==b){var e=a.mobiscroll("getInst");a.mobiscroll("setEvents",b);a.val(e._value)}}function b(a){a=a.mobiscroll("getEvents");return Array.isArray(a)&&!a.length?null:a}angular.module("mobiscroll-calendar",[]).directive("mobiscrollCalendar",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollCalendar",{preset:"calendar"})}]).directive("mobiscrollEventCalendar",["$parse",function(d){return mobiscroll.ng.getDDO(d,"mobiscrollEventCalendar",{preset:"calendar", 365events:[]},a,function(){},b)}])})();(function(){angular.module("mobiscroll-timespan",[]).directive("mobiscrollTimespan",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollTimespan",{preset:"timespan"})}])})(jQuery);(function(){angular.module("mobiscroll-number",[]).directive("mobiscrollNumber",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollNumber",{preset:"number"})}])})(jQuery);(function(){var a=["ng-repeat","ng:repeat","data-ng-repeat","x-ng-repeat","ng_repeat"];angular.module("mobiscroll-menustrip",[]).directive("mobiscrollRepeatRender",function(){return function(a){a.$emit("mbscRepeatRender")}}).directive("mobiscrollMenustrip",["$parse","$timeout",function(b,d){var c=mobiscroll.ng.getDDO(b,"mobiscrollMenustrip",{component:"MenuStrip"},function(){},function(){});c.compile=function(c){var g,f;c.find("li").each(function(){for(f=0;f<a.length;f++)if($(this).attr(a[f]))return g= 366!0,!1});g&&c.children().attr("mobiscroll-repeat-render","");return function(a,c,e){var f,k=a.$eval(e.mobiscrollMenustrip||"{}");g?a.$on("mbscRepeatRender",function(){clearTimeout(f);f=setTimeout(function(){c.mobiscroll().menustrip(k);if(e.mobiscrollInstance){var d=b(e.mobiscrollInstance).assign;d(a,c.mobiscroll("getInst"))}},1)}):c.children().length&&d(function(){c.mobiscroll().menustrip(k);if(e.mobiscrollInstance){var d=b(e.mobiscrollInstance).assign;d(a,c.mobiscroll("getInst"))}})}};return c}])})(jQuery);(function(){angular.module("mobiscroll-widget",[]).directive("mobiscrollWidget",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollWidget",{component:"Widget"})}])})(jQuery);(function(){function a(a,b,d,f,h,j){j?j.$setViewValue(d.mobiscroll("getEllapsedTime")):(a=a(h[b]).assign,a(f,d.mobiscroll("getEllapsedTime")))}function b(a,b){a.mobiscroll("setEllapsedTime",b,!1);a.val(a.mobiscroll("getInst")._value)}function d(a){return a.mobiscroll("getEllapsedTime")}angular.module("mobiscroll-timer",[]).directive("mobiscrollTimer",["$parse",function(c){return mobiscroll.ng.getDDO(c,"mobiscrollTimer",{preset:"timer"},b,a,d)}])})(jQuery);(function(){angular.module("mobiscroll-colorpicker",[]).directive("mobiscrollColorpicker",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollColorpicker",{preset:"colorpicker"})}]);angular.module("mobiscroll-color",[]).directive("mobiscrollColor",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollColor",{preset:"color"})}])})(jQuery);(function(){angular.module("mobiscroll-rangepicker",[]).directive("mobiscrollRangepicker",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollRangepicker",{preset:"rangepicker"})}]);angular.module("mobiscroll-range",[]).directive("mobiscrollRange",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollRange",{preset:"range"})}])})(jQuery);(function(){angular.module("mobiscroll-rating",[]).directive("mobiscrollRating",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollRating",{preset:"rating"})}])})(jQuery);(function(a){angular.module("mobiscroll-select",[]).directive("mobiscrollSelectOption",function(){return{link:function(a,d,c){var e=d.closest("select");a.$watch(c.ngValue,function(){a.$emit("MobiscrollReInitialize",e)});a.$on("$destroy",function(){a.$emit("MobiscrollReInitialize",e)})}}}).directive("mobiscrollSelect",["$parse",function(b){var d=mobiscroll.ng.getDDO(b,"mobiscrollSelect",{preset:"select"});d.link=void 0;d.compile=function(c){for(var d=!1,c=a(c).find("option"),g=0;g<c.length;g++)if(a(c[g]).attr("ng-repeat")|| 367a(c[g]).attr("ng:repeat")||a(c[g]).attr("data-ng-repeat")||a(c[g]).attr("x-ng-repeat")||a(c[g]).attr("ng_repeat")){a(c[g]).attr("mobiscroll-select-option","");d=!0;break}return function(a,c,g,o){var i=mobiscroll.ng.getInitOptions(a,g,"mobiscrollSelect",o),k;g.mobiscrollData&&(angular.extend(i,{data:a.$eval(g.mobiscrollData)||[]}
367),a.$watchCollection(g.mobiscrollData,function(){var b=c.mobiscroll("getInst"),d=a.$eval(g.mobiscrollData);b.settings.data!=d&&(b.settings.data=d);c.mobiscroll("refresh")})); 368mobiscroll.ng.addWatch(b,a,o,mobiscroll.ng.genericRender,mobiscroll.ng.genericParser,c,g,"mobiscrollSelect");if(d)a.$on("MobiscrollReInitialize",function(d,e){if(c[0]==e[0]){clearTimeout(k);k=setTimeout(function(){c.mobiscroll().select(i);o?mobiscroll.ng.genericRender(c,o.$modelValue):mobiscroll.ng.genericRender(c,b(g.mobiscrollSelect)(a));if(g.mobiscrollInstance){var d=b(g.mobiscrollInstance).assign;d(a,c.mobiscroll("getInst"))}},10)}});else if(c.mobiscroll().select(i),g.mobiscrollInstance){var n= 369b(g.mobiscrollInstance).assign;n(a,c.mobiscroll("getInst"))}c.on("change",function(){a.$apply(function(){mobiscroll.ng.genericRead(b,"mobiscrollSelect",c,a,g,o)})})}};return d}])})(jQuery);(function(){angular.module("mobiscroll-datetime",[]).directive("mobiscrollDatetime",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollDatetime",{preset:"datetime"})}]).directive("mobiscrollDate",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollDate",{preset:"date"})}]).directive("mobiscrollTime",["$parse",function(a){return mobiscroll.ng.getDDO(a,"mobiscrollTime",{preset:"time"})}])})(jQuery);(function(){var a=["ng-repeat","ng:repeat","data-ng-repeat","x-ng-repeat","ng_repeat"];angular.module("mobiscroll-list",[]).directive("mobiscrollRepeatRender",function(){return function(a){a.$emit("mbscRepeatRender")}}).directive("mobiscrollList",["$parse",function(b){var d=mobiscroll.ng.getDDO(b,"mobiscrollList",{preset:"list"});d.compile=function(c){var d,g;c.find("li").each(function(){for(g=0;g<a.length;g++)if($(this).attr(a[g]))return d=!0,!1});d&&c.children().attr("mobiscroll-repeat-render", 370"");return function(a,c,g,o){var i,k=mobiscroll.ng.getInitOptions(a,g,"mobiscrollList",o);mobiscroll.ng.addWatch(b,a,o,mobiscroll.ng.genericRender,mobiscroll.ng.genericParser,c,g,"mobiscrollList");if(d)a.$on("mbscRepeatRender",function(){clearTimeout(i);i=setTimeout(function(){c.mobiscroll().treelist(k);if(g.mobiscrollInstance){var d=b(g.mobiscrollInstance).assign;d(a,c.mobiscroll("getInst"))}},1)});else if(c.children().length&&(c.mobiscroll().treelist(k),g.mobiscrollInstance)){var n=b(g.mobiscrollInstance).assign; 371n(a,c.mobiscroll("getInst"))}c.on("change",function(){a.$apply(function(){mobiscroll.ng.genericRead(b,"mobiscrollList",c,a,g,o)})})}};return d}])})(jQuery);(function(){var a=["ng-repeat","ng:repeat","data-ng-repeat","x-ng-repeat","ng_repeat"];angular.module("mobiscroll-image",[]).directive("mobiscrollRepeatRender",function(){return function(a){a.$emit("mbscRepeatRender")}}).directive("mobiscrollImage",["$parse",function(b){var d=mobiscroll.ng.getDDO(b,"mobiscrollImage",{preset:"image"});d.compile=function(c){var d,g;c.find("li").each(function(){for(g=0;g<a.length;g++)if($(this).attr(a[g]))return d=!0,!1});d&&c.children().attr("mobiscroll-repeat-render", 372"");return function(a,c,g,o){var i,k=mobiscroll.ng.getInitOptions(a,g,"mobiscrollImage",o);mobiscroll.ng.addWatch(b,a,o,mobiscroll.ng.genericRender,mobiscroll.ng.genericParser,c,g,"mobiscrollImage");if(d)a.$on("mbscRepeatRender",function(){clearTimeout(i);i=setTimeout(function(){c.mobiscroll().image(k);if(g.mobiscrollInstance){var d=b(g.mobiscrollInstance).assign;d(a,c.mobiscroll("getInst"))}},1)});else if(c.children().length&&(c.mobiscroll().image(k),g.mobiscrollInstance)){var n=b(g.mobiscrollInstance).assign; 373n(a,c.mobiscroll("getInst"))}c.on("change",function(){a.$apply(function(){mobiscroll.ng.genericRead(b,"mobiscrollImage",c,a,g,o)})})}};return d}])})(jQuery);(function(a){mobiscroll.ember.listItemHelper=function(){return Ember.View.extend({tagName:"li",init:function(){this._super();var b,d=this.get("_parentView.templateID"),c=this.dataAttributeBindings=this.get("_parentView.childAttributes");b=a("#"+d).html();this.getModel().children&&(b+='{{#if view.content.children.length}}{{#with view.content.children}}{{mobiscroll-listview templateID="'+d+'" childAttributes="'+c+'"}}{{/with}}{{/if}}</li>');this.layout=Ember.Handlebars.compile(b)},layout:function(){}, 374didInsertElement:function(){var a=this.$(),d=this.get("dataAttributeBindings");if(d&&(d=d.replace(/\s{2,}/g," "),(d=d.split(" ")).length))for(var c=0;c<d.length;c++){var e=d[c].split(":"),g=e[0],f=this.get("content."+g);2==e.length&&(g=e[1]);a.attr("data-"+g,f)}},getModel:function(){return this.get("content")},isTopLevel:function(){var a=this.get("parentView");return a&&a.isTopLevel?!1:!0},isInitialized:function(){return this.get("parentView").isInitialized()}})};mobiscroll.ember.listHelper=function(){return Ember.CollectionView.extend({tagName:"ul", 375init:function(){this.set("content",this.getModel());this._super()},getModel:function(){var a=this.get("parentView");return a&&a.getModel?a.getModel().children:this.get("controller.model."+this.get("value"))},isInitialized:function(){var a=this.get("parentView");return a&&a.isInitialized?a.isInitialized():this.get("mobiscrollInitialized")},isTopLevel:function(){var a=this.get("parentView");return!(a&&a.isTopLevel)},createChildView:function(a,d){return this._super(mobiscroll.ember.listItemHelper(), 376d)},didInsertElement:function(){this.isTopLevel()&&Ember.run.scheduleOnce("afterRender",this,function(){var a={};
376this.options&&(a=(new Function("controller","return "+this.options))(this.get("controller")));this.$().mobiscroll().listview(a);this.set("mobiscrollInitialized",!0)})},removing:null,arrayWillChange:function(a,d,c){this.isInitialized()&&0<c&&(this.removing={li:this.$().children("li").not(".mbsc-lv-removing").not(".mbsc-lv-back").slice(d,d+c),index:d});return this._super(a,d,c)},arrayDidChange:function(a, 377d,c,e){if(this.isInitialized())if(0<e)Ember.run.scheduleOnce("afterRender",this,function(){var a=this.$().closest(".mbsc-lv-cont").find("ul.mbsc-lv-root"),b=this.$(),c=b.parent("li");if(b.hasClass("mbsc-lv-sl-curr")){var f=this.get("parentView").$();f.is("li")&&(c=f)}for(f=0;f<e;f++){var g=b.find(" > li").not(".mbsc-lv-back").eq(d+f);a.mobiscroll("add",null,g,!1,void 0,c.length?c:b)}});else if(0<c){var g=this.removing;if(g){g.li.addClass("mbsc-lv-removing");if(0===g.index)this.$().append(g.li);else{var f= 378this.$().children("li").not(".mbsc-lv-removing").not(".mbsc-lv-back").eq(g.index-1),h=f.next();h.length&&h.is("script")&&0<=h.attr("id").indexOf("-end")?h.after(g.li):f.after(g.li)}f=this.$().closest(".mbsc-lv-cont").find("ul.mbsc-lv-root");for(h=0;h<g.li.length;h++)f.mobiscroll("remove",g.li.eq(h))}}return this._super(a,d,c,e)}})};Ember.Handlebars.helper("mobiscroll-listview",mobiscroll.ember.listHelper());Ember.Handlebars.helper("mobiscroll-listitem-helper",mobiscroll.ember.listItemHelper())})(jQuery);(function(){function a(){return{layout:Ember.Handlebars.compile("{{yield}}")}}function b(a,b){a.mobiscroll().form(b)}mobiscroll.ember.form=function(){return mobiscroll.ember.getEmberMobiscrollView(b,void 0,void 0,a,null)};Ember.Handlebars.helper("mobiscroll-form",mobiscroll.ember.form())})(jQuery);(function(){function a(a,d,c,e){$.extend(d,{component:"Numpad"},e);a.mobiscroll(d)}mobiscroll.ember.numpad=function(){return mobiscroll.ember.getEmberMobiscrollView(a)};Ember.Handlebars.helper("mobiscroll-numpad",mobiscroll.ember.numpad())})(jQuery);(function(){mobiscroll.ember.temperature=function(){return mobiscroll.ember.getEmberMobiscrollView("temperature")};mobiscroll.ember.distance=function(){return mobiscroll.ember.getEmberMobiscrollView("distance")};mobiscroll.ember.speed=function(){return mobiscroll.ember.getEmberMobiscrollView("speed")};mobiscroll.ember.force=function(){return mobiscroll.ember.getEmberMobiscrollView("force")};mobiscroll.ember.mass=function(){return mobiscroll.ember.getEmberMobiscrollView("mass")};Ember.Handlebars.helper("mobiscroll-temperature", 379mobiscroll.ember.temperature());Ember.Handlebars.helper("mobiscroll-distance",mobiscroll.ember.distance());Ember.Handlebars.helper("mobiscroll-speed",mobiscroll.ember.speed());Ember.Handlebars.helper("mobiscroll-force",mobiscroll.ember.force());Ember.Handlebars.helper("mobiscroll-mass",mobiscroll.ember.mass())})(jQuery);(function(){function a(a,d,c){d=d.get("controller.model."+c);null!==d&&void 0!==d&&a.mobiscroll("setEvents",d)}mobiscroll.ember.calendar=function(){return mobiscroll.ember.getEmberMobiscrollView("calendar")};mobiscroll.ember.eventCalendar=function(){return mobiscroll.ember.getEmberMobiscrollView("calendar",a,function(){},void 0,void 0,{events:[]},{willChange:function(){},didChange:a})};Ember.Handlebars.helper("mobiscroll-calendar",mobiscroll.ember.calendar(
379));Ember.Handlebars.helper("mobiscroll-event-calendar", 380mobiscroll.ember.eventCalendar())})(jQuery);(function(){mobiscroll.ember.timespan=function(){return mobiscroll.ember.getEmberMobiscrollView("timespan")};Ember.Handlebars.helper("mobiscroll-timespan",mobiscroll.ember.timespan())})(jQuery);(function(){mobiscroll.ember.number=function(){return mobiscroll.ember.getEmberMobiscrollView("number")};Ember.Handlebars.helper("mobiscroll-number",mobiscroll.ember.number())})(jQuery);(function(){function a(a,b,e,g){$.extend(b,{component:"MenuStrip"},g);a.mobiscroll(b)}function b(){return{layout:Ember.Handlebars.compile("<ul>{{yield}}</ul>")}}mobiscroll.ember.menustrip=function(){return mobiscroll.ember.getEmberMobiscrollView(a,void 0,void 0,b,"ul")};Ember.Handlebars.helper("mobiscroll-menustrip",mobiscroll.ember.menustrip())})(jQuery);(function(){function a(a,b,e,g){$.extend(b,{component:"Widget"},g);a.mobiscroll(b)}function b(){return{layout:Ember.Handlebars.compile("<div>{{yield}}</div>")}}mobiscroll.ember.widget=function(){return mobiscroll.ember.getEmberMobiscrollView(a,void 0,void 0,b,"div")};Ember.Handlebars.helper("mobiscroll-widget",mobiscroll.ember.widget())})(jQuery);(function(){function a(a,b,g){d[a.attr("id")]||(b=b.get("controller.model."+g),null!==b&&void 0!==b&&(a.mobiscroll("setEllapsedTime",b),a.val(a.mobiscroll("getInst")._value)))}function b(a,b){var g=b.get("value"),f=b.get("controller.model");d[a.attr("id")]=!0;f.set(g,a.mobiscroll("getEllapsedTime"));d[a.attr("id")]=!1}mobiscroll.ember.timer=function(){return mobiscroll.ember.getEmberMobiscrollView("timer",a,b)};Ember.Handlebars.helper("mobiscroll-timer",mobiscroll.ember.timer());var d={}})(jQuery);(function(){mobiscroll.ember.colorpicker=function(){return mobiscroll.ember.getEmberMobiscrollView("colorpicker")};Ember.Handlebars.helper("mobiscroll-colorpicker",mobiscroll.ember.colorpicker());mobiscroll.ember.color=function(){return mobiscroll.ember.getEmberMobiscrollView("color")};Ember.Handlebars.helper("mobiscroll-color",mobiscroll.ember.color())})(jQuery);(function(){mobiscroll.ember.rangepicker=function(){return mobiscroll.ember.getEmberMobiscrollView("rangepicker",void 0)};Ember.Handlebars.helper("mobiscroll-rangepicker",mobiscroll.ember.rangepicker());mobiscroll.ember.range=function(){return mobiscroll.ember.getEmberMobiscrollView("range",void 0)};Ember.Handlebars.helper("mobiscroll-range",mobiscroll.ember.range())})(jQuery);(function(){mobiscroll.ember.rating=function(){return mobiscroll.ember.getEmberMobiscrollView("rating",void 0)};Ember.Handlebars.helper("mobiscroll-rating",mobiscroll.ember.rating(
380))})(jQuery);(function(){function a(a,d,c){d.get("controller.model").set(c,a.mobiscroll("getVal"))}mobiscroll.ember.select=function(){return Ember.CollectionView.extend({tagName:"select",didInsertElement:function(){this._super();var b={};this.options&&(b=(new Function("controller","return "+this.options))(this.get("controller")));Ember.run.scheduleOnce("afterRender",this,function(){var c=this.$();c.mobiscroll().select(b);c.mobiscroll("setVal",void 0,!0,!1);a(c,this,this.get("selection"))});var d=this.$(),c=this, 381e=this.get("selection");d.on("change",function(){e&&a(d,c,e)});this.get("controller.model").addObserver(e,this,function(){var a=c.get("controller.model."+e);d.mobiscroll("setVal",a,!0,!1)});this.addEnumerableObserver(this,{willChange:function(){},didChange:function(){d.mobiscroll("refresh")}})},itemViewClass:Ember.View.extend({tagName:"option",value:function(){var a=this.get("_parentView").get("optionValuePath");a||(a="content");return this.get(a)}.property("content"),label:function(){var a=this.get("_parentView").get("optionLabelPath"); 382a||(a="content");return this.get(a)}.property("content"),attributeBindings:["value"],template:Ember.Handlebars.compile("{{view.label}}")})})};Ember.Handlebars.helper("mobiscroll-select",mobiscroll.ember.select())})(jQuery);(function(){mobiscroll.ember.dateTime=function(){return mobiscroll.ember.getEmberMobiscrollView("datetime")};mobiscroll.ember.date=function(){return mobiscroll.ember.getEmberMobiscrollView("date")};mobiscroll.ember.time=function(){return mobiscroll.ember.getEmberMobiscrollView("time")};Ember.Handlebars.helper("mobiscroll-date-time",mobiscroll.ember.dateTime());Ember.Handlebars.helper("mobiscroll-date",mobiscroll.ember.date());Ember.Handlebars.helper("mobiscroll-time",mobiscroll.ember.time())})(jQuery);(function(){function a(){return{layout:Ember.Handlebars.compile("<ul>{{yield}}</ul>")}}mobiscroll.ember.list=function(){return mobiscroll.ember.getEmberMobiscrollView("list",void 0,void 0,a,"ul")};Ember.Handlebars.helper("mobiscroll-list",mobiscroll.ember.list())})(jQuery);(function(){function a(){return{layout:Ember.Handlebars.compile("<ul>{{yield}}</ul>")}}mobiscroll.ember.image=function(){return mobiscroll.ember.getEmberMobiscrollView("image",void 0,void 0,a,"ul")};Ember.Handlebars.helper("mobiscroll-image",mobiscroll.ember.image())})(jQuery);(function(a){kendo.data.binders["mobiscroll-listview"]=kendo.data.binders.source.extend({init:function(b,d,c){d.source=d["mobiscroll-listview"];var e=a(b).data("mobiscroll-options"),g={};e&&(g=(new Function("$root","return "+e))(d["mobiscroll-listview"].parents[0]));this.optObj=g;kendo.data.binders.source.fn.init.call(this,b,d,c)},refresh:function(b){if(b&&"remove"==b.action)b=a(this.element).find("li:eq("+b.index+")"),a(this.element).mobiscroll("remove",b);else if(b&&"itemchange"==b.action&&(b.action= 383void 0),kendo.data.binders.source.fn.refresh.call(this,b),b&&"add"==b.action){var d=b.index,b=a(this.element).find("li:eq("+d+")");a(this.element).mobiscroll("add",null,b,d)}},render:function(){kendo.data.binders.source.fn.render.call(this);var b=this.container();a(b).mobiscroll().listview(this.optObj)}})})(jQuery);(function(){kendo.data.binders["mobiscroll-form"]=kendo.data.Binder.extend({init:function(a,b){$(a).on("mbscFormRefresh",function(){$(a).mobiscroll("refresh")});var d=mobiscroll.kendo.getMobiInitObject(a,b,"mobiscroll-form",{});$(a).mobiscroll().form(d)},refresh:function(){}})})();(function(){kendo.data.binders["mobiscroll-numpad"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-numpad",{component:"Numpad"}))})();(function(){kendo.data.binders["mobiscroll-distance"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-distance","distance"));kendo.data.binders["mobiscroll-speed"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-speed","speed"));kendo.data.binders["mobiscroll-force"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-force","force"));
383kendo.data.binders["mobiscroll-mass"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-mass", 384"mass"));kendo.data.binders["mobiscroll-temperature"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-temperature","temperature"))})();(function(a){kendo.data.binders["mobiscroll-calendar"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-calendar","calendar"));kendo.data.binders["mobiscroll-event-calendar"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-event-calendar","calendar",function(b,d){if(void 0!==d){var c=a(b);c.mobiscroll("setEvents",d);c.val(c.mobiscroll("getInst")._value)}},function(){},{events:[]}))})(jQuery);(function(){kendo.data.binders["mobiscroll-timespan"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-timespan","timespan"))})();(function(){kendo.data.binders["mobiscroll-number"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-number","number"))})();(function(){kendo.data.binders["mobiscroll-menustrip"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-menustrip",{component:"MenuStrip"}))})();(function(){kendo.data.binders["mobiscroll-widget"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-widget",{component:"Widget"}))})();(function(a){var b={};kendo.data.binders["mobiscroll-timer"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-timer","timer",function(d,c){if(!b[d.id]&&c){var e=a(d),g=e.mobiscroll("setEllapsedTime",c).mobiscroll("getInst");e.val(g._value)}b[d.id]=!1},function(d,c,e){b[e.id]=!0;d.set(a(e).mobiscroll("getEllapsedTime"))}))})(jQuery);(function(){kendo.data.binders["mobiscroll-colorpicker"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-colorpicker","colorpicker"));kendo.data.binders["mobiscroll-color"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-color","colorpicker"))})();(function(){kendo.data.binders["mobiscroll-rangepicker"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-rangepicker","rangepicker"));kendo.data.binders["mobiscroll-range"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-range","range"))})();(function(){kendo.data.binders["mobiscroll-rating"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-rating","rating"))})();(function(){kendo.data.binders["mobiscroll-select"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-select","select",void 0,void 0,void 0,function(a,b,d){kendo.data.Binder.fn.init.call(this,a,b,d);var c=$(a).data("mobiscroll-options"),d={};c&&(d=(new Function("$root","return "+c))(b["mobiscroll-select"].parents[0]));c={};if(b["mobiscroll-data"]){var e=b["mobiscroll-data"].get(),c={data:e};e.bind("change",function(){$(g.element).mobiscroll("refresh")})}var d=$.extend(!0,{preset:"select"}, 385d,c),g=this;$(g.element).on("change",function(){g.change(b,a)}).mobiscroll(d)}));kendo.data.binders["mobiscroll-data"]=kendo.data.Binder.extend({init:function(){},refresh:function(){}})})();(function(){kendo.data.binders["mobiscroll-date"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-date","date"));kendo.data.binders["mobiscroll-datetime"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-datetime","datetime"));kendo.data.binders["mobiscroll-time"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-time","time"))})();(function(){kendo.data.binders["mobiscroll-list"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-list","list"))})();(function(){kendo.data.binders["mobiscroll-image"]=kendo.data.Binder.extend(mobiscroll.kendo.getMobiBinder("mobiscroll-image","image"))})(); 386(function(n){var t=function(t,i){var t=n(t),f=this,e='li:has([data-toggle="tab"])',u=n.extend({},n.fn.bootstrapWizard.defaults,i),o=null,r=null,s,h;if(this.rebindClick=function(n,t){n.unbind("click",t).bind("click",t)},this.fixNavigationButtons=function(){return o.length||(r.find("a:first").tab("show"),o=r.find(e+":first")),n(u.previousSelector,t).toggleClass("disabled",f.firstIndex()>=f.currentIndex()),n(u.nextSelector,t).toggleClass("disabled",f.currentIndex()>=f.navigationLength()),f.rebindClick(n(u.nextSelector,t),f.next),f.rebindClick(n(u.previousSelector,t),f.previous),f.rebindClick(n(u.lastSelector,t),f.last),f.rebindClick(n(u.firstSelector,t),f.first),u.onTabShow&&typeof u.onTabShow=="function"&&u.onTabShow(o,r,f.currentIndex())===!1?!1:void 0},this.next=function(){if(t.hasClass("last")||u.onNext&&typeof u.onNext=="function"&&u.onNext(o,r,f.nextIndex())===!1)return!1;$index=f.nextIndex();$index>f.navigationLength()||r.find(e+":eq("+$index+") a").tab("show")},this.previous=function(){if(t.hasClass("first")||u.onPrevious&&typeof u.onPrevious=="function"&&u.onPrevious(o,r,f.previousIndex())===!1)return!1;$index=f.previousIndex();$index<0||r.find(e+":eq("+$index+") a").tab("show")},this.first=function(){if(u.onFirst&&typeof u.onFirst=="function"&&u.onFirst(o,r,f.firstIndex())===!1||t.hasClass("disabled"))return!1;r.find(e+":eq(0) a").tab("show")},this.last=function(){if(u.onLast&&typeof u.onLast=="function"&&u.onLast(o,r,f.lastIndex())===!1||t.hasClass("disabled"))return!1;r.find(e+":eq("+f.navigationLength()+") a").tab("show")},this.currentIndex=function(){return r.find(e).index(o)},this.firstIndex=function(){return 0},this.lastIndex=function(){return f.navigationLength()},this.getIndex=function(n){return r.find(e).index(n)},this.nextIndex=function(){return r.find(e).index(o)+1},this.previousIndex=function(){return r.find(e).index(o)-1},this.navigationLength=function(){return r.find(e).length-1},this.activeTab=function(){return o},this.nextTab=function(){return r.find(e+":eq("+(f.currentIndex()+1)+")").length?r.find(e+":eq("+(f.currentIndex()+1)+")"):null},this.previousTab=function(){return f.currentIndex()<=0?null:r.find(e+":eq("+parseInt(f.currentIndex()-1)+")")},this.show=function(n){return isNaN(n)?t.find(e+" a[href=#"+n+"]").tab("show"):t.find(e+":eq("+n+") a").tab("show")},this.disable=function(n){r.find(e+":eq("+n+")").addClass("disabled")},this.enable=function(n){r.find(e+":eq("+n+")").removeClass("disabled")},this.hide=function(n){r.find(e+":eq("+n+")").hide()},this.display=function(n){r.find(e+":eq("+n+")").show()},this.remove=function(t){var f=t[0],o=typeof t[1]!="undefined"?t[1]:!1,i=r.find(e+":eq("+f+")"),u;o&&(u=i.find("a").attr("href"),n(u).remove());i.remove()},s=function(t){var i=r.find(e).index(n(t.currentTarget).parent(e));if(u.onTabClick&&typeof u.onTabClick=="function"&&u.onTabClick(o,r,f.currentIndex(),i)===!1)return!1},h=function(t){$element=n(t.target).parent();var i=r.find(e).index($element);if($element.hasClass("disabled")||u.onTabChange&&typeof u.onTabChange=="function"&&u.onTabChange(o,r,f.currentIndex(),i)===!1)return!1;o=$element;f.fixNavigationButtons()},this.resetWizard=function(){n('a[data-toggle="tab"]',r).off("click",
386s);n('a[data-toggle="tab"]',r).off("shown shown.bs.tab",h);r=t.find("ul:first",t);o=r.find(e+".active",t);n('a[data-toggle="tab"]',r).on("click",s);n('a[data-toggle="tab"]',r).on("shown shown.bs.tab",h);f.fixNavigationButtons()},r=t.find("ul:first",t),o=r.find(e+".active",t),r.hasClass(u.tabClass)||r.addClass(u.tabClass),u.onInit&&typeof u.onInit=="function")u.onInit(o,r,0);if(u.onShow&&typeof u.onShow=="function")u.onShow(o,r,f.nextIndex());n('a[data-toggle="tab"]',r).on("click",s);n('a[data-toggle="tab"]',r).on("shown shown.bs.tab",h)};n.fn.bootstrapWizard=function(i){if(typeof i=="string"){var r=Array.prototype.slice.call(arguments,1);return r.length===1&&r.toString(),this.data("bootstrapWizard")[i](r)}return this.each(function(){var r=n(this),u;r.data("bootstrapWizard")||(u=new t(r,i),r.data("bootstrapWizard",u),u.fixNavigationButtons())})};n.fn.bootstrapWizard.defaults={tabClass:"nav nav-pills",nextSelector:".wizard li.next",previousSelector:".wizard li.previous",firstSelector:".wizard li.first",lastSelector:".wizard li.last",onShow:null,onInit:null,onNext:null,onPrevious:null,onLast:null,onFirst:null,onTabChange:null,onTabClick:null,onTabShow:null}})(jQuery);function validateCarFinderFirstStep(){var t="",n,w,i;if(DWDealerID==3968?(n=trim(af$("txtFirstName").value),n==""?(t+="Please enter My first name\n",$("#txtFirstName").attr("aria-invalid","true")):$("#txtFirstName").attr("aria-invalid","false"),n=trim(af$("txtLastName").value),n==""?(t+="Please enter Last name\n",$("#txtLastName").attr("aria-invalid","true")):$("#txtLastName").attr("aria-invalid","false"),n=trim(af$("txtTelephone").value),n==""?(t+="Please enter Home phone\n",$("#txtTelephone").attr("aria-invalid","true")):$("#txtTelephone").attr("aria-invalid","false"),t+=ValidatePhoneNumber(trim(af$("txtTelephone").value),"Home phone is not valid\n"),n=trim(af$("txtEmail").value),n==""?(t+="Please enter Email\n",$("#txtEmail").attr("aria-invalid","true")):validate_email(trim(af$("txtEmail").value))==!1?(t+="Invalid email\n",$("#txtEmail").attr("aria-invalid","true")):$("#txtEmail").attr("aria-invalid","false")):(n=trim(af$("txtFirstName").value),n==""?(t+="Please enter My first name\n",$("#txtFirstName").attr("aria-invalid","true")):$("#txtFirstName").attr("aria-invalid","false"),n=trim(af$("txtLastName").value),n==""?(t+="Please enter Last name\n",$("#txtLastName").attr("aria-invalid","true")):$("#txtLastName").attr("aria-invalid","false"),n=trim(af$("txtCity").value),n==""?(t+="Please enter City\n",$("#txtCity").attr("aria-invalid","true")):$("#txtCity").attr("aria-invalid","false"),n=trim(af$("txtState").value),n==""?(t+="Please enter State\n",$("#txtState").attr("aria-invalid","true")):$("#txtState").attr("aria-invalid","false"),n=trim(af$("txtZip").value),n==""?(t+="Please enter Zip\n",$("#txtZip").attr("aria-invalid","true")):$("#txtZip").attr("aria-invalid","false"),af$("txtTelephone").style.display!="none"&&(n=trim(af$("txtTelephone").value),n==""?(t+="Please enter Home phone\n",$("#txtTelephone").attr("aria-invalid","true")):$("#txtTelephone").attr("aria-invalid","false"),t+=ValidatePhoneNumber(trim(af$("txtTelephone").value),"Home phone is not valid\n")),t+=ValidatePhoneNumber(trim(af$("txtMobile").value),"Mobile is not valid\n"),t+=ValidatePhoneNumber(trim(af$("txtOffice").value),"Office phone is not valid\n"),t+=ValidatePhoneNumber(trim(af$("txtFax").value),"Fax is not valid\n"),n=trim(af$("txtEmail").value),n==""?(t+="Please enter Email\n",$("#txtEmail").attr("aria-invalid","true")):validate_email(trim(af$("txtEmail").value))==!1?(t+="Invalid email\n",$("#txtEmail").attr("aria-invalid","true")):$("#txtEmail").attr("aria-invalid","false"),ContactReferralSetting==1&&(n=trim(af$("txtReferal").value),n==""?t+="How did you hear about us?\n":(n=trim(af$("txtHowHeared").value),n==""&&(t+=trim(af$("txtHowHeared_label").innerHTML)+"\n")))),(DWDealerID==2792||DWDealerID==5169)&&(n=trim(af$("VhLocation").value),n==""?(t+="Please enter Location\n",$("#VhLocation").attr("aria-invalid","true")):$("#VhLocation").attr("aria-invalid","false")),blnShowCaptchaCode==!0&&(n=trim(af$("txtMSCaptchaCode").value),n==""&&(t+="Please enter Code\n")),DWDealerID==4816||DWDealerID==621||DWDealerID==2399||DWDealerID==1028||DWDealerID==4867||DWDealerID==5012||DWDealerID==4984||DWDealerID==5097||DWDealerID==4494||DWDealerID==5451||DWDealerID==4144||DWDealerID==5445||DWDealerID==3631){var l=af$("
386customCheckbox"),e=af$("customCheckboxsec"),a=l&&l.checked,b=e&&e.checked;(!e||a&&b)&&(e||a)||(t+=" You must agree to the terms of this form. Please check the box to continue.\n")}if(DWDealerID==4952){var s=$("#customCheckbox").is(":checked"),h=$("#customCheckbox1").is(":checked"),c=$("#customCheckbox2").is(":checked");s||h||c||(t+="Please select at least one SMS preference to continue.\n");var r="",u="",v="",y="",s=af$("customCheckbox"),h=af$("customCheckbox1"),c=af$("customCheckbox2"),p=af$("customCheckbox3");c&&c.checked?v="This customer has not consented to receive SMS":(s&&s.checked&&(r="Customer agree to receive marketing/promotional SMS messages from Speedway Motors"),h&&h.checked&&(u="Customer agree to receive informational/transactional SMS messages from Speedway Motors"));p&&p.checked&&(y="Customer like to receive email promotions, surveys, and offers from Speedway Motors");t===""&&af$("txtarGenNotes")&&(af$("txtarGenNotes").value+="\n"+r+"\n"+u+"\n"+v+"\n"+y+"\n"+`${dateStr} at ${timeStr}`)}if(DWDealerID==5127||DWDealerID==5293||DWDealerID==4044||DWDealerID==5501||DWDealerID==5461||DWDealerID==4872||DWDealerID==5205||DWDealerID==5031){var f=af$("customCheckbox")&&af$("customCheckbox").checked,o=af$("customCheckboxsec")&&af$("customCheckboxsec").checked,r="",u="";(f||o)&&(n=trim(af$("txtMobile").value),n==""?(t+="Please enter Mobile\n",$("#txtMobile").attr("aria-invalid","true")):$("#txtMobile").attr("aria-invalid","false"));f&&(r="Customer consented to receive marketing text messages on the phone number provided.");o&&(u="Customer consented to receive non marketing messages, including updates and news, on the phone number provided.");(r||u)&&af$("ConsentMessages")&&(i=af$("ConsentMessages").value||"",i=i.replace(/\n?Customer consented to receive marketing text messages on the phone number provided\./g,""),i=i.replace(/\n?Customer consented to receive non marketing messages, including updates and news, on the phone number provided\./g,""),r&&(i+="\n"+r),u&&(i+="\n"+u),af$("ConsentMessages").value=i.trimStart())}if(w=[5031,5205,4872,5461,5293,5127,2792,654,5169,2792,4188,4934,4816,621,4434,2399,1028,5076,4867,4653,5012,4984,5097,4990,4494,5451,4144,5445,3631,4952,4044,5501],w.indexOf(Number(DWDealerID))===-1){var f=af$("customCheckbox")&&af$("customCheckbox").checked,o=af$("customCheckboxsec")&&af$("customCheckboxsec").checked,r="",u="";f||(t+="You must agree to the term of this form, please check the box to continue.\n");(f||o)&&(n=trim(af$("txtMobile").value),n==""?(t+="Please enter Mobile\n",$("#txtMobile").attr("aria-invalid","true")):$("#txtMobile").attr("aria-invalid","false"));f&&(r="Customer consented to receive marketing text messages on the phone number provided.");o&&(u="Customer consented to receive non marketing messages, including updates and news, on the phone number provided.");(r||u)&&af$("ConsentMessages")&&(i=af$("ConsentMessages").value||"",i=i.replace(/\n?Customer consented to receive marketing text messages on the phone number provided\./g,""),i=i.replace(/\n?Customer consented to receive non marketing messages, including updates and news, on the phone number provided\./g,""),r&&(i+="\n"+r),u&&(i+="\n"+u),af$("ConsentMessages").value=i.trimStart())}return t==""?!0:(AlertModel(t),!1)}function display_carfinder_Ref(){af$("txtHowHeared_label").innerHTML="";af$("txtReferal").value.length>0?af$("txtReferal").value=="Referral"?af$("txtHowHeared_label").innerHTML="Name of Referrer":af$("txtReferal").value=="Past customer"?af$("txtHowHeared_label").innerHTML="Name of salesperson":af$("txtReferal").value=="Website"?af$("txtHowHeared_label").innerHTML="Which website":af$("txtReferal").value=="Other"&&(af$("txtHowHeared_label").innerHTML="Please describe"):af$("txtHowHeared_label").innerHTML="Name of Referrer"}function validateCarFinderSecondStep(){var n=window.location.href;return af$("VhCondition").value=n.indexOf("new")>=0?"0":"1",!0}function validateCarFinderThirdStep(){var t="",n="";return DWDealerID==4130?(n=trim(af$("VhYear").value),n=="--"||n=="Vehicle year"?(t+="Please enter Vehicle year\n",$("#VhYear").attr("aria-invalid","true")):$("#VhYear").attr("aria-invalid","false"),n=trim(af$("txtMake").value),n==""?(t+="Please enter Vehicle Make\n",$("#txtMake").attr("aria-invalid","true")):$("#txtMake").attr("aria-invalid","false"),n=trim(af$("txtModel").value),n==""?(t+="Please enter Vehicle model\n",$("#txtModel").attr("aria-invalid","true")):$("#txtModel").attr("aria-invalid","false"),t==""?!0:(AlertModel(t),!1)):!0}function validateCarFinderFourthStep(){return!0}function validateCarFinderFifthStep(){var n,t;if($("input#TB_Website_Hide").length>0&&$("input#TB_Website_Hide").val().length!=0)return!1;blnManagePrivacy==!0?DWDealerID==1299&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("txtEmail").value}})):DWDealerID==1299&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("txtEmail").value}}));DWDealerID==4726&&(n="This customer has not consented to receive SMS",t=af$("customCheckbox"),n=t.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("txtarGenNotes").value+="\n"+n+"\n"+`${dateStr} at ${timeStr}`);DWDealerID==4950&&(n="This customer has not consented to receive SMS",t=af$("customCheckbox"),n=t.checked?"This customer has consented to receive SMS":"This customer has not consented to receive SMS",af$("txtarGenNotes").value+="\n"+n+"\n"+`${dateStr} at ${timeStr}`);$("#CarFinderSubmit").removeAttr("onclick");af$("frmCarfinder").submit()}function readURL(n){if(n.files&&n.files[0]){var t=new FileReader;t.onload=function(n){$("#wizardPicturePreview").attr("src",n.target.result).fadeIn("slow")};
386t.readAsDataURL(n.files[0])}}function filCFinderYear(){var t,i,n;for(LoadState_carfinder(1),t=af$("VhYear"),af$("VhYear").innerHTML="",SelectAddOption(t,"--","--"),i=new Date,n=Number(i.getFullYear());n>=1950;--n)SelectAddOption(t,n,n)}function LoadState_carfinder(n){var t="{ bytCountryId: "+n+"}";JqueryAjaxCall("POST","GetStatesByCountry",t)}function icomplete_carfinder(n){var t,i;try{for(t=$("<select class='form-control'>"),t.append($("<option>").val("").html("- State US -")),i=0;i<n.length;++i)t.append($("<option>").val(n[i].StateShort).html(n[i].StateLong));t.val(1).attr({id:"txtState",name:"txtState"}).change(function(){typeof getShipping=="function"&&getShipping()});$("#txtState").replaceWith(t);$("#txtState").attr("style","display:block")}catch(r){alert(r);document.getElementById("txtState").style.display="block"}}function itimeout_carfinder(n){n!=null?alert(n._message):alert("There was an error while processing your request. The Technical Support Team has been notified. Please try the request later.");document.getElementById("txtState").style.display="block"}function ierror_carfinder(n){n!=null?alert(n._message):alert("There was an error while processing your request. The Technical Support Team has been notified. Please try the request later.");document.getElementById("txtState").style.display="block"}function SetContactPreferences(n){af$("ContactWish").value=n}function SetPagePositionCSS(n){for(var t=1;t<6;t++)n==t?$("#carrtabpaging"+t).css("background-color","#211f1f"):$("#carrtabpaging"+t).css("background-color","#999999")}searchVisible=0;transparent=!0;var currentDateTime=new Date,timeStr=currentDateTime.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"}),dateStr=currentDateTime.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),[time,tzAbbr]=timeStr.split(" "),timeAbbr=tzAbbr.includes("GMT")?"":tzAbbr;$(document).ready(function(){$('[rel="tooltip"]').tooltip();$(".wizard-card").bootstrapWizard({tabClass:"nav nav-pills",nextSelector:".btn-next",previousSelector:".btn-previous",onInit:function(n,t){var i=t.find("li").length;$width=100/i;$display_width=$(document).width();$display_width<600&&i>3&&($width=50);t.find("li").css("width",$width+"%")},onNext:function(n,t,i){var r=!0;return i==1?r=validateCarFinderFirstStep():i==2?r=validateCarFinderSecondStep():i==3?r=validateCarFinderThirdStep():i==4&&(r=validateCarFinderFourthStep()),r&&SetPagePositionCSS(i+1),r},onPrevious:function(n,t,i){SetPagePositionCSS(i+1)},onTabClick:function(){return!1},onTabShow:function(n,t,i){var u=t.find("li").length,f=i+1,r=t.closest(".wizard-card");f>=u?($(r).find(".btn-next").hide(),$(r).find(".btn-finish").show(),$(r).find(".btn-finish").css("display","inline-block")):($(r).find(".btn-next").show(),$(r).find(".btn-finish").hide())}});$("#wizard-picture").change(function(){readURL(this)});$('[data-toggle="wizard-radio"]').click(function(){wizard=$(this).closest("#col-preference");wizard.find('[data-toggle="wizard-radio"]').removeClass("active");$(this).addClass("active");$(wizard).find('[type="radio"]').removeAttr("checked");$(this).find('[type="radio"]').attr("checked","true")});$('[data-toggle="wizard-checkbox"]').click(function(){$(this).hasClass("active")?($(this).removeClass("active"),$(this).find('[type="checkbox"]').removeAttr("checked")):($(this).addClass("active"),$(this).find('[type="checkbox"]').attr("checked","true"))});$height=$(document).height();$(".set-full-height").css("height",$height);DWDealerID==3968&&($("#div_Street").css("display","none"),$("#div_City").css("display","none"),$("#div_State").css("display","none"),$("#div_Zip").css("display","none"),$("#div_Mobile").css("display","none"),$("#div_OfficePhone").css("display","none"),$("#div_Fax").css("display","none"),$("#Carfinder_Referal_div").css("display","none"),$("#carfinder_HowHeared_div").css("display","none"),$("#div_Email").removeClass("col-sm-offset-1"),$("#div_CaptchaCode").addClass("col-sm-offset-1"))});DWDealerID==4130&&($("<span>*<\/span>").insertBefore("#VhYear"),$("<span>*<\/span>").insertBefore("#txtMake"),$("<span>*<\/span>").insertBefore("#txtModel"));$(window).on("load",function(){$("#divCarFinderContainer").length>0&&filCFinderYear()});function GetInventoryAjax_LazyLoading_Callback(n){function t(){if($("#DWFeaturedCars").length>0){var r=document.getElementById("DWFeaturedCars"),i=parseFloat(window.getComputedStyle(r).width),n=317,u=parseInt(i/n);n=i/u-.11;$(".itemfeatured").outerWidth(n);var f=$(".itemfeatured img.imgClsCom").innerWidth(),e=f/900,t=675*e;$(".photo").height(t);DWDealerID==4231&&$(".photo img").height(t);$(".cssoverlay").height(t)}}n!=null&&n.length>0?($("#DWInvAjaxLoad").html(n),t(),addEvent(window,"resize",function(){t()}),$(window).bind("orientationchange",function(){t()}),$("img.lazy").Lazy({scrollDirection:"vertical",effect:"fadeIn",visibleOnly:!0,onError:function(n){console.log("error loading "+n.data("src"))},afterLoad:function(){}})):$("#DW_featuredbg").hide()}function GetInventorySpecialsAjax_LazyLoading_CallbackGrid(n){function t(){if($("#DWFeaturedCars").length>0){var r=document.getElementById("DWFeaturedCars"),i=parseFloat(window.getComputedStyle(r).width),n=317,u=parseInt(i/n);n=i/u-.11;$(".itemfeatured").outerWidth(n);var f=$(".itemfeatured img.imgClsCom").innerWidth(),e=f/900,t=675*e;$(".photo").height(t);DWDealerID==4231&&$(".photo img").height(t);$(".cssoverlay").height(t)}}n!=null&&n.length>0?($("#DWInvAjaxLoadGrid").html(n),t(),addEvent(window,"resize",function(){t()}),$(window).bind("orientationchange",function(){t()}),$("img.lazy").Lazy({scrollDirection:"vertical",effect:"fadeIn",visibleOnly:!0,onError:function(n){console.log("error loading "+n.data("src"))},afterLoad:function(){}})):$("#DW_featuredbg").hide()}function GetInventoryGridAjax_LazyLoading_Callback(n){function t(){var r;if($("#DWInvGridCars").length>0){var n="",u=document.getElementById("DWInvGridCars"),i=parseFloat(window.getComputedStyle(u).width),o=$(window).width();n=317;r=parseInt(i/n);n=i/r-.11;$(".itemfeatured").outerWidth(n);var f=$(".itemfeatured img.imgClsCom").innerWidth(),e=f/900,t=675*e;IsMobile||($(".photo").height(t),$(".dwBoxInvImgStock img").height(t),$(".cssoverlay").height(t))}}n!=null&&n.length>0?($("#DWInvgridAjaxLoad").html(n),t(),addEvent(window,"resize",function(){t()}),$(window).bind("orientationchange",function(){t()}),$("img.lazy").Lazy({scrollDirection:"vertical",effect:"fadeIn",visibleOnly:!0,onError:function(n){console.log("error loading "+n.data("src"))},afterLoad:function(){}})):$("#DW_Invspecialbg").hide()}$(window).on("load",function(){var n,t;$("#DWInvAjaxLoad").length>0&&(n=0,typeof hideFeaturedCars!="undefined"&&(n=hideFeaturedCars),n!=1?(t=3e3,typeof FeaturedCarsTimeOutVal!="undefined"&&(t=FeaturedCarsTimeOutVal),setTimeout(function(){var n="{intDealerId: "+$("#hdnDealerID").val()+', strDealerWebsite: "'+$("#hdnDealerSiteUrl").val()+'", strName: "'+$("#hdnDealerName").val()+'", strPhone: "'+$("#hdnDealerPhone").val()+'", strCity: "'+$("#hdnDealerCity").val()+'", strState: "'+$("#hdnDealerState").val()+'", strRegion: "'+$("#hdnRegion1").val()+'", strRegion2: "'+$("#hdnRegion2").val()+'", strRegion3: "'+$("#hdnRegion3").val()+'", strCounty: "'+$("#hdnCounty").val()+'", blnIsSecureURL: "'+$("#hdnIsSecureURL").val()+'", blnHidePrices: "'+$("#hdnHidePrices").val()+'", intSoldLotId: "'+$("#hdnSoldLotId").val()+'", intInvVehicleStatus: "'+$("#hdnInvVehicleStatus").val()+'"}';JqueryAjaxCall("POST","GetInventoryAjax_LazyLoading",n)},t)):$("#DW_featuredbg").hide());$("#DWInvAjaxLoadGrid").length>0&&(n=0,typeof hideFeaturedCars!="undefined"&&(n=hideFeaturedCars),n!=1?(t=3e3,typeof FeaturedCarsTimeOutVal!="undefined"&&(t=FeaturedCarsTimeOutVal),setTimeout(function(){var n="{intDealerId: "+$("#hdnDealerID").val()+', strDealerWebsite: "'+$("#hdnDealerSiteUrl").val()+'", strName: "'+$("#hdnDealerName").val()+'", strPhone: "'+$("#hdnDealerPhone").val()+'", strCity: "'+$("#hdnDealerCity").val()+'", strState: "'+$("#hdnDealerState").val()+'", strRegion: "'+$("#hdnRegion1").val()+'", strRegion2: "'+$("#hdnRegion2").val()+'", strRegion3: "'+$("#hdnRegion3").val()+'", strCounty: "'+$("#hdnCounty").val()+'", blnIsSecureURL: "'+$("#hdnIsSecureURL").val()+'", blnHidePrices: "'+$("#hdnHidePrices").val()+'", intSoldLotId: "'+$("#hdnSoldLotId").val()+'"}';JqueryAjaxCall("POST","GetInventorySpecialsAjax_LazyLoadingGrid",n)},t)):$("#DW_featuredbg").hide());$("#DWInvgridAjaxLoad").length>0&&(n=0,typeof hideFeaturedCars!="undefined"&&(n=hideFeaturedCars),n!=1?(t=3e3,typeof FeaturedCarsTimeOutVal!="undefined"&&(t=FeaturedCarsTimeOutVal),setTimeout(function(){var n="{intDealerId: "+$("#hdnDealerID").val()+', strDealerWebsite: "'+$("#hdnDealerSiteUrl").val()+'", strName: "'+$("#hdnDealerName").val()+'", strPhone: "'+$("#hdnDealerPhone").val()+'", strCity: "'+$("#hdnDealerCity").val()+'", strState: "'+$("#hdnDealerState").val()+'", strRegion: "'+$("#hdnRegion1").val()+'", strRegion2: "'+$("#hdnRegion2").val()+'", strRegion3: "'+$("#hdnRegion3").val()+'", strCounty: "'+$("#hdnCounty").val()+'", blnIsSecureURL: "'+$("#hdnIsSecureURL").val()+'", blnHidePrices: "'+$("#hdnHidePrices").val()+'", intSoldLotId: "'+$("#hdnSoldLotId").val()+'", intInvVehicleStatus: "'+$("#hdnInvVehicleStatus").val()+'"}';JqueryAjaxCall("POST","GetInventoryGridAjax_LazyLoading",n)},t)):$("#DW_Invspecialbg").hide())});(function(n){n.fn.rating=function(t){t=t||function(){};this.each(function(i,r){n(r).data("rating",{callback:t}).bind("init.rating",n.fn.rating.init).bind("set.rating",n.fn.rating.set).bind("hover.rating",n.fn.rating.hover).trigger("init.rating")})};n.extend(n.fn.rating,{init:function(){for(var r=n(this),u="",f=null,t=r.children(),i=0,e=t.length;i<e;i++)u=u+'<a class="star" title="'+n(t[i]).val()+'" />',n(t[i]).is(":checked")&&(f=n(t[i]).val());t.hide();r.append('<div class="stars">'+u+"<\/div>").trigger("set.rating",f);n("a",r).bind("click",n.fn.rating.click);r.trigger("hover.rating")}
386,set:function(t,i){var f=n(this),r=n("a",f),u=undefined;i&&(r.removeClass("fullStar"),u=r.filter(function(){return n(this).attr("title")==i?n(this):!1}),u.addClass("fullStar").prevAll().addClass("fullStar"));return},hover:function(){var i=n(this),t=n("a",i);t.bind("mouseenter",function(){n(this).addClass("tmp_fs").prevAll().addClass("tmp_fs");n(this).nextAll().addClass("tmp_es")});t.bind("mouseleave",function(){n(this).removeClass("tmp_fs").prevAll().removeClass("tmp_fs");n(this).nextAll().removeClass("tmp_es")})},click:function(t){t.preventDefault();var i=n(t.target),r=i.parent().parent(),f=r.children("input"),u=i.attr("title");matchInput=f.filter(function(){return n(this).val()==u?!0:!1});matchInput.prop("checked",!0).siblings("input").prop("checked",!1);r.trigger("set.rating",matchInput.val()).data("rating").callback(u,t)}})})(jQuery);function valEmploymentfields(){if($("input#TB_Website_Hide").length>0&&$("input#TB_Website_Hide").val().length!=0)return!1;var n="",t=trim(af$("TB_Name").value);t==""?(n+="Please enter My first name\n",$("#divTB_Name span.required").html("*Required"),$("#divTB_Name").attr("class","group-req"),$("#TB_Name").attr("aria-invalid","true")):($("#divTB_Name span.required").html(""),$("#divTB_Name").attr("class","group"),$("#TB_Name").attr("aria-invalid","false"));t=trim(af$("TB_LName").value);t==""?(n+="Please enter Last name\n",$("#divTB_LName span.required").html("*Required"),$("#divTB_LName").attr("class","group-req"),$("#TB_LName").attr("aria-invalid","true")):($("#divTB_LName span.required").html(""),$("#divTB_LName").attr("class","group"),$("#TB_LName").attr("aria-invalid","false"));t=trim(af$("TB_clientmail").value);t==""?(n+="Please enter Email\n",$("#divTB_clientmail span.required").html("*Required"),$("#divTB_clientmail").attr("class","group-req"),$("#TB_clientmail").attr("aria-invalid","false")):validate_email(trim(af$("TB_clientmail").value))==!1?(n+="Invalid email\n",$("#divTB_clientmail span.required").html("*Invalid"),$("#divTB_clientmail").attr("class","group-req"),$("#TB_clientmail").attr("aria-invalid","true")):($("#divTB_clientmail span.required").html(""),$("#divTB_clientmail").attr("class","group"),$("#TB_clientmail").attr("aria-invalid","false"));n==""?(blnManagePrivacy==!0?DWDealerID==1299&&getIsGPC()==!1&&getIsAnalyticsAndMarketing()===!0&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TB_clientmail").value}})):DWDealerID==1299&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_complete",enhanced_conversion_data:{email:af$("TB_clientmail").value}})),$("#btnSend").removeAttr("onclick"),af$("hdnIsPosted").value="1",af$("EmpQueries").submit()):AlertModel(n)}function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger("YTAPIReady"))}function uncamel(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}function setUnit(a,b){return"string"!=typeof a||a.match(/^[\-0-9\.]+jQuery/)?""+a+b:a}function setFilter(a,b,c){var d=uncamel(b),e=jQuery.browser.mozilla?"":jQuery.CSS.sfx;a[e+"filter"]=a[e+"filter"]||"",c=setUnit(c>jQuery.CSS.filters[b].max?jQuery.CSS.filters[b].max:c,jQuery.CSS.filters[b].unit),a[e+"filter"]+=d+"("+c+") ",delete a[b]}var ytp=ytp||{},getYTPVideoID=function(a){var b,c;return a.indexOf("youtu.be")>0?(b=a.substr(a.lastIndexOf("/")+1,a.length),c=b.indexOf("?list=")>0?b.substr(b.lastIndexOf("="),b.length):null,b=c?b.substr(0,b.lastIndexOf("?")):b):a.indexOf("http")>-1?(b=a.match(/[\\?&]v=([^&#]*)/)[1],c=a.indexOf("list=")>0?a.match(/[\\?&]list=([^&#]*)/)[1]:null):(b=a.length>15?null:a,c=b?null:a),{videoID:b,playlistID:c}};!function(jQuery,ytp){jQuery.mbYTPlayer={name:"jquery.mb.YTPlayer",version:"2.9.4",build:"{{ build }}",author:"Matteo Bicocchi",apiKey:"",defaults:{containment:"body",ratio:"auto",videoURL:null,playlistURL:null,startAt:0,stopAt:0,autoPlay:!0,vol:50,addRaster:!1,opacity:1,quality:"default",mute:!1,loop:!0,showControls:!0,showAnnotations:!1,showYTLogo:!0,stopMovieOnBlur:!0,realfullscreen:!0,gaTrack:!0,optimizeDisplay:!0,onReady:function(a){}},controls:{play:"P",pause:"p",mute:"M",unmute:"A",onlyYT:"O",showSite:"R",ytLogo:"Y"},locationProtocol:"https:",buildPlayer:function(options){return this.each(function(){var YTPlayer=this,$YTPlayer=jQuery(YTPlayer);YTPlayer.loop=0,YTPlayer.opt={},YTPlayer.state={},YTPlayer.filtersEnabled=!0,YTPlayer.filters={grayscale:{value:0,unit:"%"},hue_rotate:{value:0,unit:"deg"},invert:{value:0,unit:"%"},opacity:{value:0,unit:"%"},saturate:{value:0,unit:"%"},sepia:{value:0,unit:"%"},brightness:{value:0,unit:"%"},contrast:{value:0,unit:"%"},blur:{value:0,unit:"px"}},$YTPlayer.addClass("mb_YTPlayer");var property=$YTPlayer.data("property")&&"string"==typeof $YTPlayer.data("property")?eval("("+$YTPlayer.data("property")+")"):$YTPlayer.data("property");"undefined"!=typeof property&&"undefined"!=typeof property.vol&&(property.vol=0===property.vol?property.vol=1:property.vol),jQuery.extend(YTPlayer.opt,jQuery.mbYTPlayer.defaults,options,property),YTPlayer.hasChanged||(YTPlayer.defaultOpt={},jQuery.extend(YTPlayer.defaultOpt,jQuery.mbYTPlayer.defaults,options,property)),YTPlayer.isRetina=window.retina||window.devicePixelRatio>1;var isIframe=function(){var a=!1;
386try{self.location.href!=top.location.href&&(a=!0)}catch(b){a=!0}return a};YTPlayer.canGoFullScreen=!(jQuery.browser.msie||jQuery.browser.opera||isIframe()),YTPlayer.canGoFullScreen||(YTPlayer.opt.realfullscreen=!1),$YTPlayer.attr("id")||$YTPlayer.attr("id","video_"+(new Date).getTime());var playerID="mbYTP_"+YTPlayer.id;YTPlayer.isAlone=!1,YTPlayer.hasFocus=!0;var videoID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).videoID:$YTPlayer.attr("href")?getYTPVideoID($YTPlayer.attr("href")).videoID:!1,playlistID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).playlistID:$YTPlayer.attr("href")?getYTPVideoID($YTPlayer.attr("href")).playlistID:!1;YTPlayer.videoID=videoID,YTPlayer.playlistID=playlistID,YTPlayer.opt.showAnnotations=YTPlayer.opt.showAnnotations?"0":"3";var playerVars={autoplay:0,modestbranding:1,controls:0,showinfo:0,rel:0,enablejsapi:1,version:3,playerapiid:playerID,origin:"*",allowfullscreen:!0,wmode:"transparent",iv_load_policy:YTPlayer.opt.showAnnotations};document.createElement("video").canPlayType&&jQuery.extend(playerVars,{html5:1}),jQuery.browser.msie&&jQuery.browser.version<9&&(this.opt.opacity=1);var playerBox=jQuery("<div/>").attr("id",playerID).addClass("playerBox"),overlay=jQuery("<div/>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).addClass("YTPOverlay");if(YTPlayer.isSelf="self"==YTPlayer.opt.containment,YTPlayer.defaultOpt.containment=YTPlayer.opt.containment=jQuery("self"==YTPlayer.opt.containment?this:YTPlayer.opt.containment),YTPlayer.isBackground="body"==YTPlayer.opt.containment.get(0).tagName.toLowerCase(),!YTPlayer.isBackground||!ytp.backgroundIsInited){var isPlayer=YTPlayer.opt.containment.is(jQuery(this));if(YTPlayer.canPlayOnMobile=isPlayer&&0===jQuery(this).children().length,isPlayer?YTPlayer.isPlayer=!0:$YTPlayer.hide(),jQuery.browser.mobile&&!YTPlayer.canPlayOnMobile)return void $YTPlayer.remove();var wrapper=jQuery("<div/>").addClass("mbYTP_wrapper").attr("id","wrapper_"+playerID);if(wrapper.css({position:"absolute",zIndex:0,minWidth:"100%",minHeight:"100%",left:0,top:0,overflow:"hidden",opacity:0}),playerBox.css({position:"absolute",zIndex:0,width:"100%",height:"100%",top:0,left:0,overflow:"hidden"}),wrapper.append(playerBox),YTPlayer.opt.containment.children().not("script, style").each(function(){"static"==jQuery(this).css("position")&&jQuery(this).css("position","relative")}),YTPlayer.isBackground?(jQuery("body").css({boxSizing:"border-box"}),wrapper.css({position:"fixed",top:0,left:0,zIndex:0}),$YTPlayer.hide()):"static"==YTPlayer.opt.containment.css("position")&&YTPlayer.opt.containment.css({position:"relative"}),YTPlayer.opt.containment.prepend(wrapper),YTPlayer.wrapper=wrapper,playerBox.css({opacity:1}),jQuery.browser.mobile||(playerBox.after(overlay),YTPlayer.overlay=overlay),YTPlayer.isBackground||overlay.on("mouseenter",function(){YTPlayer.controlBar&&YTPlayer.controlBar.addClass("visible")}).on("mouseleave",function(){YTPlayer.controlBar&&YTPlayer.controlBar.removeClass("visible")}),ytp.YTAPIReady)setTimeout(function(){jQuery(document).trigger("YTAPIReady")},100);else{jQuery("#YTAPI").remove();var tag=jQuery("<script></script>").attr({src:jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/iframe_api?v="+jQuery.mbYTPlayer.version,id:"YTAPI"});jQuery("head").prepend(tag)}jQuery(document).on("YTAPIReady",function(){YTPlayer.isBackground&&ytp.backgroundIsInited||YTPlayer.isInit||(YTPlayer.isBackground&&(ytp.backgroundIsInited=!0),YTPlayer.opt.autoPlay="undefined"==typeof YTPlayer.opt.autoPlay?YTPlayer.isBackground?!0:!1:YTPlayer.opt.autoPlay,YTPlayer.opt.vol=YTPlayer.opt.vol?YTPlayer.opt.vol:100,jQuery.mbYTPlayer.getDataFromAPI(YTPlayer),jQuery(YTPlayer).on("YTPChanged",function(){if(!YTPlayer.isInit){if(YTPlayer.isInit=!0,jQuery.browser.mobile&&YTPlayer.canPlayOnMobile){if(YTPlayer.opt.containment.outerWidth()>jQuery(window).width()){YTPlayer.opt.containment.css({maxWidth:"100%"});var h=.6*YTPlayer.opt.containment.outerWidth();YTPlayer.opt.containment.css({maxHeight:h})}return void new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),height:"100%",width:"100%",events:{onReady:function(a){YTPlayer.player=a.target,playerBox.css({opacity:1}),YTPlayer.wrapper.css({opacity:1})}}})}new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),playerVars:playerVars,events:{onReady:function(a){if
386(YTPlayer.player=a.target,!YTPlayer.isReady){YTPlayer.isReady=YTPlayer.isPlayer&&!YTPlayer.opt.autoPlay?!1:!0,YTPlayer.playerEl=YTPlayer.player.getIframe(),$YTPlayer.optimizeDisplay(),YTPlayer.videoID=videoID,jQuery(window).on("resize.YTP",function(){$YTPlayer.optimizeDisplay()}),jQuery.mbYTPlayer.checkForState(YTPlayer);var b=jQuery.Event("YTPUnstarted");b.time=YTPlayer.player.time,YTPlayer.canTrigger&&jQuery(YTPlayer).trigger(b)}},onStateChange:function(event){if("function"==typeof event.target.getPlayerState){var state=event.target.getPlayerState();if(YTPlayer.state!=state){YTPlayer.state=state;var eventType;switch(state){case-1:eventType="YTPUnstarted";break;case 0:eventType="YTPEnd";break;case 1:eventType="YTPStart",YTPlayer.controlBar&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.pause),"undefined"!=typeof _gaq&&eval(YTPlayer.opt.gaTrack)&&_gaq.push(["_trackEvent","YTPlayer","Play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString()]),"undefined"!=typeof ga&&eval(YTPlayer.opt.gaTrack)&&ga("send","event","YTPlayer","play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString());break;case 2:eventType="YTPPause",YTPlayer.controlBar&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);break;case 3:YTPlayer.player.setPlaybackQuality(YTPlayer.opt.quality),eventType="YTPBuffering",YTPlayer.controlBar&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);break;case 5:eventType="YTPCued"}var YTPEvent=jQuery.Event(eventType);YTPEvent.time=YTPlayer.player.time,YTPlayer.canTrigger&&jQuery(YTPlayer).trigger(YTPEvent)}}},onPlaybackQualityChange:function(a){var b=a.target.getPlaybackQuality(),c=jQuery.Event("YTPQualityChange");c.quality=b,jQuery(YTPlayer).trigger(c)},onError:function(a){150==a.data&&(console.log("Embedding this video is restricted by Youtube."),YTPlayer.isPlayList&&jQuery(YTPlayer).playNext()),2==a.data&&YTPlayer.isPlayList&&jQuery(YTPlayer).playNext(),"function"==typeof YTPlayer.opt.onError&&YTPlayer.opt.onError($YTPlayer,a)}}})}}))})}})},getDataFromAPI:function(a){if(a.videoData=jQuery.mbStorage.get("YYTPlayer_data_"+a.videoID),jQuery(a).off("YTPData.YTPlayer").on("YTPData.YTPlayer",function(){if(a.hasData&&a.isPlayer&&!a.opt.autoPlay){var b=a.videoData.thumb_max||a.videoData.thumb_high||a.videoData.thumb_medium;a.opt.containment.css({background:"rgba(0,0,0,0.5) url("+b+") center center",backgroundSize:"cover"}),a.opt.backgroundUrl=b}}),a.videoData)setTimeout(function(){a.opt.ratio="auto"==a.opt.ratio?"16/9":a.opt.ratio,a.dataReceived=!0,jQuery(a).trigger("YTPChanged");var b=jQuery.Event("YTPData");b.prop={};for(var c in a.videoData)b.prop[c]=a.videoData[c];jQuery(a).trigger(b)},500),a.hasData=!0;else if(jQuery.mbYTPlayer.apiKey)jQuery.getJSON(jQuery.mbYTPlayer.locationProtocol+"//www.googleapis.com/youtube/v3/videos?id="+a.videoID+"&key="+jQuery.mbYTPlayer.apiKey+"&part=snippet",function(b){function c(b){a.videoData={},a.videoData.id=a.videoID,a.videoData.channelTitle=b.channelTitle,a.videoData.title=b.title,a.videoData.description=b.description.length<400?b.description:b.description.substring(0,400)+" ...",a.videoData.aspectratio="auto"==a.opt.ratio?"16/9":a.opt.ratio,a.opt.ratio=a.videoData.aspectratio,a.videoData.thumb_max=b.thumbnails.maxres?b.thumbnails.maxres.url:null,a.videoData.thumb_high=b.thumbnails.high?b.thumbnails.high.url:null,a.videoData.thumb_medium=b.thumbnails.medium?b.thumbnails.medium.url:null,jQuery.mbStorage.set("YYTPlayer_data_"+a.videoID,a.videoData)}a.dataReceived=!0,jQuery(a).trigger("YTPChanged"),c(b.items[0].snippet),a.hasData=!0;var d=jQuery.Event("YTPData");d.prop={};for(var e in a.videoData)d.prop[e]=a.videoData[e];jQuery(a).trigger(d)});else{if(setTimeout(function(){jQuery(a).trigger("YTPChanged")},50),a.isPlayer&&!a.opt.autoPlay){var b=jQuery.mbYTPlayer.locationProtocol+"//i.ytimg.com/vi/"+a.videoID+"/hqdefault.jpg";a.opt.containment.css({background:"rgba(0,0,0,0.5) url("+b+") center center",backgroundSize:"cover"}),a.opt.backgroundUrl=b}a.videoData=null,a.opt.ratio="auto"==a.opt.ratio?"16/9":a.opt.ratio}a.isPlayer&&!a.opt.autoPlay&&(a.loading=jQuery("<div/>").addClass("loading").html("Loading").hide(),jQuery(a).append(a.loading),a.loading.fadeIn())},removeStoredData:function(){jQuery.mbStorage.remove()},getVideoData:function(){var a=this.get(0);return a.videoData}
386,getVideoID:function(){var a=this.get(0);return a.videoID||!1},setVideoQuality:function(a){var b=this.get(0);jQuery.browser.chrome||b.player.setPlaybackQuality(a)},playlist:function(a,b,c){var d=this,e=d.get(0);return e.isPlayList=!0,b&&(a=jQuery.shuffle(a)),e.videoID||(e.videos=a,e.videoCounter=0,e.videoLength=a.length,jQuery(e).data("property",a[0]),jQuery(e).mb_YTPlayer()),"function"==typeof c&&jQuery(e).on("YTPChanged",function(){c(e)}),jQuery(e).on("YTPEnd",function(){jQuery(e).playNext()}),d},playNext:function(){var a=this.get(0);return a.videoCounter++,a.videoCounter>=a.videoLength&&(a.videoCounter=0),jQuery(a).changeMovie(a.videos[a.videoCounter]),this},playPrev:function(){var a=this.get(0);return a.videoCounter--,a.videoCounter<0&&(a.videoCounter=a.videoLength-1),jQuery(a).changeMovie(a.videos[a.videoCounter]),this},changeMovie:function(a){var b=this.get(0);b.opt.startAt=0,b.opt.stopAt=0,b.opt.mute=!0,b.hasData=!1,b.hasChanged=!0,a&&jQuery.extend(b.opt,b.defaultOpt,a),b.videoID=getYTPVideoID(b.opt.videoURL).videoID,jQuery(b.playerEl).CSSAnimate({opacity:0}
386,200,function(){return jQuery(b).YTPGetPlayer().cueVideoByUrl(encodeURI(jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/v/"+b.videoID),1,b.opt.quality),jQuery.mbYTPlayer.checkForState(b),jQuery(b).optimizeDisplay(),jQuery.mbYTPlayer.getDataFromAPI(b),this})},getPlayer:function(){return jQuery(this).get(0).player},playerDestroy:function(){var a=this.get(0);ytp.YTAPIReady=!1,ytp.backgroundIsInited=!1,a.isInit=!1,a.videoID=null;var b=a.wrapper;return b.remove(),jQuery("#controlBar_"+a.id).remove(),clearInterval(a.checkForStartAt),clearInterval(a.getState),this},fullscreen:function(real){function hideMouse(){YTPlayer.overlay.css({cursor:"none"})}function RunPrefixMethod(a,b){for(var c,d,e=["webkit","moz","ms","o",""],f=0;f<e.length&&!a[c];){if(c=b,""==e[f]&&(c=c.substr(0,1).toLowerCase()+c.substr(1)),c=e[f]+c,d=typeof a[c],"undefined"!=d)return e=[e[f]],"function"==d?a[c]():a[c];f++}}function launchFullscreen(a){RunPrefixMethod(a,"RequestFullScreen")}function cancelFullscreen(){(RunPrefixMethod(document,"FullScreen")||RunPrefixMethod(document,"IsFullScreen"))&&RunPrefixMethod(document,"CancelFullScreen")}var YTPlayer=this.get(0);"undefined"==typeof real&&(real=YTPlayer.opt.realfullscreen),real=eval(real);var controls=jQuery("#controlBar_"+YTPlayer.id),fullScreenBtn=controls.find(".mb_OnlyYT"),videoWrapper=YTPlayer.isSelf?YTPlayer.opt.containment:YTPlayer.wrapper;if(real){var fullscreenchange=jQuery.browser.mozilla?"mozfullscreenchange":jQuery.browser.webkit?"webkitfullscreenchange":"fullscreenchange";jQuery(document).off(fullscreenchange).on(fullscreenchange,function(){var a=RunPrefixMethod(document,"IsFullScreen")||RunPrefixMethod(document,"FullScreen");a?(jQuery(YTPlayer).YTPSetVideoQuality("default"),jQuery(YTPlayer).trigger("YTPFullScreenStart")):(YTPlayer.isAlone=!1,fullScreenBtn.html(jQuery.mbYTPlayer.controls.onlyYT),jQuery(YTPlayer).YTPSetVideoQuality(YTPlayer.opt.quality),videoWrapper.removeClass("fullscreen"),videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},500),videoWrapper.css({zIndex:0}),YTPlayer.isBackground?jQuery("body").after(controls):YTPlayer.wrapper.before(controls),jQuery(window).resize(),jQuery(YTPlayer).trigger("YTPFullScreenEnd"))})}return YTPlayer.isAlone?(jQuery(document).off("mousemove.YTPlayer"),YTPlayer.overlay.css({cursor:"auto"}),real?cancelFullscreen():(videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},500),videoWrapper.css({zIndex:0})),fullScreenBtn.html(jQuery.mbYTPlayer.controls.onlyYT),YTPlayer.isAlone=!1):(jQuery(document).on("mousemove.YTPlayer",function(a){YTPlayer.overlay.css({cursor:"auto"}),clearTimeout(YTPlayer.hideCursor),jQuery(a.target).parents().is(".mb_YTPBar")||(YTPlayer.hideCursor=setTimeout(hideMouse,3e3))}),hideMouse(),real?(videoWrapper.css({opacity:0}),videoWrapper.addClass("fullscreen"),launchFullscreen(videoWrapper.get(0)),setTimeout(function(){videoWrapper.CSSAnimate({opacity:1},1e3),YTPlayer.wrapper.append(controls),jQuery(YTPlayer).optimizeDisplay(),YTPlayer.player.seekTo(YTPlayer.player.getCurrentTime()+.1,!0)},500)):videoWrapper.css({zIndex:1e4}).CSSAnimate({opacity:1},1e3),fullScreenBtn.html(jQuery.mbYTPlayer.controls.showSite),YTPlayer.isAlone=!0),this},toggleLoops:function(){var a=this.get(0),b=a.opt;return 1==b.loop?b.loop=0:(b.startAt?a.player.seekTo(b.startAt):a.player.playVideo(),b.loop=1),this},play:function(){var a=this.get(0);if(a.isReady){var b=jQuery("#controlBar_"+a.id),c=b.find(".mb_YTPPlaypause");return c.html(jQuery.mbYTPlayer.controls.pause),a.player.playVideo(),a.wrapper.CSSAnimate({opacity:a.isAlone?1:a.opt.opacity},2e3),jQuery(a.playerEl).CSSAnimate({opacity:1},1e3),jQuery(a).css("background-image","none"),this}},togglePlay:function(a){var b=this.get(0);return 1==b.state?this.YTPPause():this.YTPPlay(),"function"==typeof a&&a(b.state),this},stop:function(){var a=this.get(0),b=jQuery("#controlBar_"+a.id),c=b.find(".mb_YTPPlaypause");return c.html(jQuery.mbYTPlayer.controls.play),a.player.stopVideo(),this},pause:function(){var a=this.get(0),b=jQuery("#controlBar_"+a.id),c=b.find(".mb_YTPPlaypause");return c.html(jQuery.mbYTPlayer.controls.play),a.player.pauseVideo(),this},seekTo:function(a){var b=this.get(0);return b.player.seekTo(a,!0),this},setVolume:function(a){var b=this.get(0);return a||b.opt.vol||0!=b.player.getVolume()?!a&&b.player.getVolume()>0||a&&b.opt.vol==a?b.isMute?jQuery(b).YTPUnmute():jQuery(b).YTPMute():(b.opt.vol=a,b.player.setVolume(b.opt.vol),b.volumeBar&&b.volumeBar.length&&b.volumeBar.updateSliderVal(a)):jQuery(b).YTPUnmute(),this},mute:function(){var a=this.get(0);if(!a.isMute){a.player.mute(),a.isMute=!0,a.player.setVolume(0),a.volumeBar&&a.volumeBar.length&&a.volumeBar.width()>10&&a.volumeBar.updateSliderVal(0);var b=jQuery("#controlBar_"+a.id),c=b.find(".mb_YTPMuteUnmute");c.html(jQuery.mbYTPlayer.controls.unmute),jQuery(a).addClass("isMuted"),a.volumeBar&&a.volumeBar.length&&a.volumeBar.addClass("muted");var d=jQuery.Event("YTPMuted");return d.time=a.player.time,a.canTrigger&&jQuery(a).trigger(d),this}},unmute:function(){var a=this.get(0);if(a.isMute){a.player.unMute(),a.isMute=!1,a.player.setVolume(a.opt.vol),a.volumeBar&&a.volumeBar.length&&a.volumeBar.updateSliderVal(a.opt.vol>10?a.opt.vol:10);var b=jQuery("#controlBar_"+a.id),c=b.find(".mb_YTPMuteUnmute");c.html(jQuery.mbYTPlayer.controls.mute),jQuery(a).removeClass("isMuted"),a.volumeBar&&a.volumeBar.length&&a.volumeBar.removeClass("muted");var d=jQuery.Event("YTPUnmuted");return d.time=a.player.time,a.canTrigger&&jQuery(a).trigger(d),this}},applyFilter:function(a,b){var c=this.get(0);return c.filters[a].value=b,c.filtersEnabled&&this.YTPEnableFilters(),this},applyFilters:function(a){var b=this.get(0);return this.on("YTPReady",function(){for(var c in a)b.filters[c].value=a[c],jQuery(b).YTPApplyFilter(c,a[c]);jQuery(b).trigger("YTPFiltersApplied")}),this},toggleFilter:function(a,b){return this.each(function(){var c=this;c.filters[a].value?c.filters[a].value=0:c.filters[a].value=b,c.filtersEnabled&&jQuery(this).YTPEnableFilters()})},toggleFilters:function(a){return this.each(function(){var b=this;b.filtersEnabled?(jQuery(b).trigger("YTPDisableFilters"),jQuery(b).YTPDisableFilters()):(jQuery(b).YTPEnableFilters(),jQuery(b).trigger("YTPEnableFilters")),"function"==typeof a&&a(b.filtersEnabled)})},disableFilters:function(){return this.each(function(){var a=this,b=jQuery(a.playerEl);b.css("-webkit-filter",""),b.css("filter",""),a.filtersEnabled=!1})},enableFilters:function(){return this.each(function(){var a=this,b=jQuery(a.playerEl),c="";for(var d in a.filters)a.filters[d].value&&(c+=d.replace("_","-")+"("+a.filters[d].value+a.filters[d].unit+") ");b.css("-webkit-filter",c),b.css("filter",c),a.filtersEnabled=!0})},removeFilter:function(a,b){return this.each(function(){"function"==typeof a&&(b=a,a=null);var c=this;if(a)jQuery(this).YTPApplyFilter(a,0),"function"==typeof b&&b(a);else for(var d in c.filters)jQuery(this).YTPApplyFilter(d,0),"function"==typeof b&&b(d)})},manageProgress:function(){var a=this.get(0),b=jQuery("#controlBar_"+a.id),c=b.find(".mb_YTPProgress"),d=b.find(".mb_YTPLoaded"),e=b.find(".mb_YTPseekbar"),f=c.outerWidth(),g=Math.floor(a.player.getCurrentTime()),h=Math.floor(a.player.getDuration()),i=g*f/h,j=0,k=100*a.player.getVideoLoadedFraction();return d.css({left:j,width:k+"%"}),e.css({left:0,width:i}),{totalTime:h,currentTime:g}},buildControls:function(YTPlayer){var data=YTPlayer.opt;if(data.showYTLogo=data.showYTLogo||data.printUrl,!jQuery("#controlBar_"+YTPlayer.id).length){YTPlayer.controlBar=jQuery("<sp
386an/>").attr("id","controlBar_"+YTPlayer.id).addClass("mb_YTPBar").css({whiteSpace:"noWrap",position:YTPlayer.isBackground?"fixed":"absolute",zIndex:YTPlayer.isBackground?1e4:1e3}).hide();var buttonBar=jQuery("<div/>").addClass("buttonBar"),playpause=jQuery("<span>"+jQuery.mbYTPlayer.controls.play+"</span>").addClass("mb_YTPPlaypause ytpicon").click(function(){1==YTPlayer.player.getPlayerState()?jQuery(YTPlayer).YTPPause():jQuery(YTPlayer).YTPPlay()}),MuteUnmute=jQuery("<span>"+jQuery.mbYTPlayer.controls.mute+"</span>").addClass("mb_YTPMuteUnmute ytpicon").click(function(){0==YTPlayer.player.getVolume()?jQuery(YTPlayer).YTPUnmute():jQuery(YTPlayer).YTPMute()}),volumeBar=jQuery("<div/>").addClass("mb_YTPVolumeBar").css({display:"inline-block"});YTPlayer.volumeBar=volumeBar;var idx=jQuery("<span/>").addClass("mb_YTPTime"),vURL=data.videoURL?data.videoURL:"";vURL.indexOf("http")<0&&(vURL=jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/watch?v="+data.videoURL);var movieUrl=jQuery("<span/>").html(jQuery.mbYTPlayer.controls.ytLogo).addClass("mb_YTPUrl ytpicon").attr("title","view on YouTube").on("click",function(){window.open(vURL,"viewOnYT")}),onlyVideo=jQuery("<span/>").html(jQuery.mbYTPlayer.controls.onlyYT).addClass("mb_OnlyYT ytpicon").on("click",function(){jQuery(YTPlayer).YTPFullscreen(data.realfullscreen)}),progressBar=jQuery("<div/>").addClass("mb_YTPProgress").css("position","absolute").click(function(a){timeBar.css({width:a.clientX-timeBar.offset().left}),YTPlayer.timeW=a.clientX-timeBar.offset().left,YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0});var b=Math.floor(YTPlayer.player.getDuration());YTPlayer["goto"]=timeBar.outerWidth()*b/progressBar.outerWidth(),YTPlayer.player.seekTo(parseFloat(YTPlayer["goto"]),!0),YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0})}),loadedBar=jQuery("<div/>").addClass("mb_YTPLoaded").css("position","absolute"),timeBar=jQuery("<div/>").addClass("mb_YTPseekbar").css("position","absolute");progressBar.append(loadedBar).append(timeBar),buttonBar.append(playpause).append(MuteUnmute).append(volumeBar).append(idx),data.showYTLogo&&buttonBar.append(movieUrl),(YTPlayer.isBackground||eval(YTPlayer.opt.realfullscreen)&&!YTPlayer.isBackground)&&buttonBar.append(onlyVideo),YTPlayer.controlBar.append(buttonBar).append(progressBar),YTPlayer.isBackground?jQuery("body").after(YTPlayer.controlBar):(YTPlayer.controlBar.addClass("inlinePlayer"),YTPlayer.wrapper.before(YTPlayer.controlBar)),volumeBar.simpleSlider({initialval:YTPlayer.opt.vol,scale:100,orientation:"h",callback:function(a){0==a.value?jQuery(YTPlayer).YTPMute():jQuery(YTPlayer).YTPUnmute(),YTPlayer.player.setVolume(a.value),YTPlayer.isMute||(YTPlayer.opt.vol=a.value)}})}},checkForState:function(YTPlayer){var interval=YTPlayer.opt.showControls?100:700;return clearInterval(YTPlayer.getState),jQuery.contains(document,YTPlayer)?(jQuery.mbYTPlayer.checkForStart(YTPlayer),void(YTPlayer.getState=setInterval(function(){var prog=jQuery(YTPlayer).YTPManageProgress(),$YTPlayer=jQuery(YTPlayer),data=YTPlayer.opt,startAt=YTPlayer.opt.startAt?YTPlayer.opt.startAt:0,stopAt=YTPlayer.opt.stopAt>YTPlayer.opt.startAt?YTPlayer.opt.stopAt:0;if(stopAt=stopAt<YTPlayer.player.getDuration()?stopAt:0,YTPlayer.player.time!=prog.currentTime){var YTPEvent=jQuery.Event("YTPTime");YTPEvent.time=YTPlayer.player.time,jQuery(YTPlayer).trigger(YTPEvent)}if(YTPlayer.player.time=prog.currentTime,0==YTPlayer.player.getVolume()?$YTPlayer.addClass("isMuted"):$YTPlayer.removeClass("isMuted"),YTPlayer.opt.showControls&&(prog.totalTime?YTPlayer.controlBar.find(".mb_YTPTime").html(jQuery.mbYTPlayer.formatTime(prog.currentTime)+" / "+jQuery.mbYTPlayer.formatTime(prog.totalTime)):YTPlayer.controlBar.find(".mb_YTPTime").html("-- : -- / -- : --")),eval(YTPlayer.opt.stopMovieOnBlur)&&(document.hasFocus()?document.hasFocus()&&!YTPlayer.hasFocus&&-1!=YTPlayer.state&&0!=YTPlayer.state&&(YTPlayer.hasFocus=!0,$YTPlayer.YTPPlay()):1==YTPlayer.state&&(YTPlayer.hasFocus=!1,$YTPlayer.YTPPause())),YTPlayer.controlBar&&YTPlayer.controlBar.outerWidth()<=400&&!YTPlayer.isCompact?(YTPlayer.controlBar.addClass("compact"),YTPlayer.isCompact=!0,!YTPlayer.isMute&&YTPlayer.volumeBar&&YTPlayer.volumeBar.updateSliderVal(YTPlayer.opt.vol)):YTPlayer.controlBar&&YTPlayer.controlBar.outerWidth()>400&&YTPlayer.isCompact&&(YTPlayer.controlBar.removeClass("compact"),YTPlayer.isCompact=!1,!YTPlayer.isMute&&YTPlayer.volumeBar&&YTPlayer.volumeBar.updateSliderVal(YTPlayer.opt.vol)),1==YTPlayer.player.getPlayerState()&&(parseFloat(YTPlayer.player.getDuration()-1.5)<YTPlayer.player.getCurrentTime()||stopAt>0&&parseFloat(YTPlayer.player.getCurrentTime())>stopAt)){if(YTPlayer.isEnded)return;if(YTPlayer.isEnded=!0,setTimeout(function(){YTPlayer.isEnded=!1},1e3),YTPlayer.isPlayList){clearInterval(YTPlayer.getState);var YTPEnd=jQuery.Event("YTPEnd");return YTPEnd.time=YTPlayer.player.time,void jQuery(YTPlayer).trigger(YTPEnd)}data.loop?(startAt=startAt||1,YTPlayer.player.pauseVideo(),YTPlayer.player.seekTo(startAt,!0),$YTPlayer.YTPPlay()):(YTPlayer.player.pauseVideo(),YTPlayer.wrapper.CSSAnimate({opacity:0}
386,1e3,function(){var a=jQuery.Event("YTPEnd");a.time=YTPlayer.player.time,jQuery(YTPlayer).trigger(a),YTPlayer.player.seekTo(startAt,!0),YTPlayer.isBackground||YTPlayer.opt.containment.css({background:"rgba(0,0,0,0.5) url("+YTPlayer.opt.backgroundUrl+") center center",backgroundSize:"cover"})}))}},interval))):(jQuery(YTPlayer).YTPPlayerDestroy(),clearInterval(YTPlayer.getState),void clearInterval(YTPlayer.checkForStartAt))},checkForStart:function(a){var b=jQuery(a);if(!jQuery.contains(document,a))return void jQuery(a).YTPPlayerDestroy();if(jQuery.browser.chrome&&(a.opt.quality="default"),a.player.pauseVideo(),jQuery(a).muteYTPVolume(),jQuery("#controlBar_"+a.id).remove(),a.opt.showControls&&jQuery.mbYTPlayer.buildControls(a),a.opt.addRaster){var c="dot"==a.opt.addRaster?"raster-dot":"raster";a.overlay.addClass(a.isRetina?c+" retina":c)}else a.overlay.removeClass(function(a,b){var c=b.split(" "),d=[];return jQuery.each(c,function(a,b){/raster.*/.test(b)&&d.push(b)}),d.push("retina"),d.join(" ")});a.checkForStartAt=setInterval(function(){jQuery(a).YTPMute();var c=a.opt.startAt?a.opt.startAt:1,d=a.player.getVideoLoadedFraction()>c/a.player.getDuration();if(a.player.getDuration()>0&&a.player.getCurrentTime()>=c&&d){clearInterval(a.checkForStartAt),a.isReady=!0,"function"==typeof a.opt.onReady&&a.opt.onReady(a);var e=jQuery.Event("YTPReady");jQuery(a).trigger(e),a.player.pauseVideo(),a.opt.mute||jQuery(a).YTPUnmute(),a.canTrigger=!0,a.opt.autoPlay?(b.YTPPlay(),b.css("background-image","none"),jQuery(a.playerEl).CSSAnimate({opacity:1},1e3),a.wrapper.CSSAnimate({opacity:a.isAlone?1:a.opt.opacity},1e3)):(a.player.pauseVideo(),a.isPlayer||(jQuery(a.playerEl).CSSAnimate({opacity:1},1e3),a.wrapper.CSSAnimate({opacity:a.isAlone?1:a.opt.opacity},1e3))),a.isPlayer&&!a.opt.autoPlay&&(a.loading.html("Ready"),setTimeout(function(){a.loading.fadeOut()},100)),a.controlBar&&a.controlBar.slideDown(1e3)}else c>=0&&a.player.seekTo(c,!0)},1e3)},formatTime:function(a){var b=Math.floor(a/60),c=Math.floor(a-60*b);return(9>=b?"0"+b:b)+" : "+(9>=c?"0"+c:c)}},jQuery.fn.toggleVolume=function(){var a=this.get(0);if(a)return a.player.isMuted()?(jQuery(a).YTPUnmute(),!0):(jQuery(a).YTPMute(),!1)},jQuery.fn.optimizeDisplay=function(){var a=this.get(0),b=a.opt,c=jQuery(a.playerEl),d={},e=a.wrapper;d.width=e.outerWidth(),d.height=e.outerHeight();var f=24,g=100,h={};b.optimizeDisplay?(h.width=d.width+d.width*f/100,h.height="16/9"==b.ratio?Math.ceil(9*d.width/16):Math.ceil(3*d.width/4),h.marginTop=-((h.height-d.height)/2),h.marginLeft=-(d.width*(f/2)/100),h.height<d.height&&(h.height=d.height+d.height*f/100,h.width="16/9"==b.ratio?Math.floor(16*d.height/9):Math.floor(4*d.height/3),h.marginTop=-(d.height*(f/2)/100),h.marginLeft=-((h.width-d.width)/2)),h.width+=g,h.height+=g,h.marginTop-=g/2,h.marginLeft-=g/2):(h.width="100%",h.height="100%",h.marginTop=0,h.marginLeft=0),c.css({width:h.width,height:h.height,marginTop:h.marginTop,marginLeft:h.marginLeft})},jQuery.shuffle=function(a){for(var b=a.slice(),c=b.length,d=c;d--;){var e=parseInt(Math.random()*c),f=b[d];b[d]=b[e],b[e]=f}return b},jQuery.fn.YTPlayer=jQuery.mbYTPlayer.buildPlayer,jQuery.fn.YTPGetPlayer=jQuery.mbYTPlayer.getPlayer,jQuery.fn.YTPGetVideoID=jQuery.mbYTPlayer.getVideoID,jQuery.fn.YTPChangeMovie=jQuery.mbYTPlayer.changeMovie,jQuery.fn.YTPPlayerDestroy=jQuery.mbYTPlayer.playerDestroy,jQuery.fn.YTPPlay=jQuery.mbYTPlayer.play,jQuery.fn.YTPTogglePlay=jQuery.mbYTPlayer.togglePlay,jQuery.fn.YTPStop=jQuery.mbYTPlayer.stop,jQuery.fn.YTPPause=jQuery.mbYTPlayer.pause,jQuery.fn.YTPSeekTo=jQuery.mbYTPlayer.seekTo,jQuery.fn.YTPlaylist=jQuery.mbYTPlayer.playlist,jQuery.fn.YTPPlayNext=jQuery.mbYTPlayer.playNext,jQuery.fn.YTPPlayPrev=jQuery.mbYTPlayer.playPrev,jQuery.fn.YTPMute=jQuery.mbYTPlayer.mute,jQuery.fn.YTPUnmute=jQuery.mbYTPlayer.unmute,jQuery.fn.YTPToggleVolume=jQuery.mbYTPlayer.toggleVolume,jQuery.fn.YTPSetVolume=jQuery.mbYTPlayer.setVolume,jQuery.fn.YTPGetVideoData=jQuery.mbYTPlayer.getVideoData,jQuery.fn.YTPFullscreen=jQuery.mbYTPlayer.fullscreen,jQuery.fn.YTPToggleLoops=jQuery.mbYTPlayer.toggleLoops,jQuery.fn.YTPSetVideoQuality=jQuery.mbYTPlayer.setVideoQuality,jQuery.fn.YTPManageProgress=jQuery.mbYTPlayer.manageProgress,jQuery.fn.YTPApplyFilter=jQuery.mbYTPlayer.applyFilter,jQuery.fn.YTPApplyFilters=jQuery.mbYTPlayer.applyFilters,jQuery.fn.YTPToggleFilter=jQuery.mbYTPlayer.toggleFilter,jQuery.fn.YTPToggleFilters=jQuery.mbYTPlayer.toggleFilters,jQuery.fn.YTPRemoveFilter=jQuery.mbYTPlayer.removeFilter,jQuery.fn.YTPDisableFilters=jQuery.mbYTPlayer.disableFilters,jQuery.fn.YTPEnableFilters=jQuery.mbYTPlayer.enableFilters,jQuery.fn.mb_YTPlayer=jQuery.mbYTPlayer.buildPlayer,jQuery.fn.playNext=jQuery.mbYTPlayer.playNext,jQuery.fn.playPrev=jQuery.mbYTPlayer.playPrev,jQuery.fn.changeMovie=jQuery.mbYTPlayer.changeMovie,jQuery.fn.getVideoID=jQuery.mbYTPlayer.getVideoID,jQuery.fn.getPlayer=jQuery.mbYTPlayer.getPlayer,jQuery.fn.playerDe
386stroy=jQuery.mbYTPlayer.playerDestroy,jQuery.fn.fullscreen=jQuery.mbYTPlayer.fullscreen,jQuery.fn.buildYTPControls=jQuery.mbYTPlayer.buildControls,jQuery.fn.playYTP=jQuery.mbYTPlayer.play,jQuery.fn.toggleLoops=jQuery.mbYTPlayer.toggleLoops,jQuery.fn.stopYTP=jQuery.mbYTPlayer.stop,jQuery.fn.pauseYTP=jQuery.mbYTPlayer.pause,jQuery.fn.seekToYTP=jQuery.mbYTPlayer.seekTo,jQuery.fn.muteYTPVolume=jQuery.mbYTPlayer.mute,jQuery.fn.unmuteYTPVolume=jQuery.mbYTPlayer.unmute,jQuery.fn.setYTPVolume=jQuery.mbYTPlayer.setVolume,jQuery.fn.setVideoQuality=jQuery.mbYTPlayer.setVideoQuality,jQuery.fn.manageYTPProgress=jQuery.mbYTPlayer.manageProgress,jQuery.fn.YTPGetDataFromFeed=jQuery.mbYTPlayer.getVideoData}(jQuery,ytp),jQuery.support.CSStransition=function(){var a=document.body||document.documentElement,b=a.style;return void 0!==b.transition||void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.MsTransition||void 0!==b.OTransition}(),jQuery.CSS={name:"mb.CSSAnimate",author:"Matteo Bicocchi",version:"2.0.0",transitionEnd:"transitionEnd",sfx:"",filters:{blur:{min:0,max:100,unit:"px"},brightness:{min:0,max:400,unit:"%"},contrast:{min:0,max:400,unit:"%"},grayscale:{min:0,max:100,unit:"%"},hueRotate:{min:0,max:360,unit:"deg"},invert:{min:0,max:100,unit:"%"},saturate:{min:0,max:400,unit:"%"},sepia:{min:0,max:100,unit:"%"}},normalizeCss:function(a){var b=jQuery.extend(!0,{},a);jQuery.browser.webkit||jQuery.browser.opera?jQuery.CSS.sfx="-webkit-":jQuery.browser.mozilla?jQuery.CSS.sfx="-moz-":jQuery.browser.msie&&(jQuery.CSS.sfx="-ms-");for(var c in b){"transform"===c&&(b[jQuery.CSS.sfx+"transform"]=b[c],delete b[c]),"transform-origin"===c&&(b[jQuery.CSS.sfx+"transform-origin"]=a[c],delete b[c]),"filter"!==c||jQuery.browser.mozilla||(b[jQuery.CSS.sfx+"filter"]=a[c],delete b[c]),"blur"===c&&setFilter(b,"blur",a[c]),"brightness"===c&&setFilter(b,"brightness",a[c]),"contrast"===c&&setFilter(b,"contrast",a[c]),"grayscale"===c&&setFilter(b,"grayscale",a[c]),"hueRotate"===c&&setFilter(b,"hueRotate",a[c]),"invert"===c&&setFilter(b,"invert",a[c]),"saturate"===c&&setFilter(b,"saturate",a[c]),"sepia"===c&&setFilter(b,"sepia",a[c]);var d="";"x"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" translateX("+setUnit(a[c],"px")+")",delete b[c]),"y"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" translateY("+setUnit(a[c],"px")+")",delete b[c]),"z"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" translateZ("+setUnit(a[c],"px")+")",delete b[c]),"rotate"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" rotate("+setUnit(a[c],"deg")+")",delete b[c]),"rotateX"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" rotateX("+setUnit(a[c],"deg")+")",delete b[c]),"rotateY"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" rotateY("+setUnit(a[c],"deg")+")",delete b[c]),"rotateZ"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" rotateZ("+setUnit(a[c],"deg")+")",delete b[c]),"scale"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" scale("+setUnit(a[c],"")+")",delete b[c]),"scaleX"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" scaleX("+setUnit(a[c],"")+")",delete b[c]),"scaleY"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" scaleY("+setUnit(a[c],"")+")",delete b[c]),"scaleZ"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" scaleZ("+setUnit(a[c],"")+")",delete b[c]),"skew"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" skew("+setUnit(a[c],"deg")+")",delete b[c]),"skewX"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" skewX("+setUnit(a[c],"deg")+")",delete b[c]),"skewY"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" skewY("+setUnit(a[c],"deg")+")",delete b[c]),"perspective"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" perspective("+setUnit(a[c],"px")+")",delete b[c])}return b},getProp:function(a){var b=[];for(var c in a)b.indexOf(c)<0&&b.push(uncamel(c));return b.join(",")},animate:function(a,b,c,d,e){return this.each(function(){function f(){g.called=!0,g.CSSAIsRunning=!1,h.off(jQuery.CSS.transitionEnd+"."+g.id),clearTimeout(g.timeout),h.css(jQuery.CSS.sfx+"transition",""),"function"==typeof e&&e.apply(g),"function"==typeof g.CSSqueue&&(g.CSSqueue(),g.CSSqueue=null)}var g=this,h=jQuery(this);g.id=g.id||"CSSA_"+(new Date).getTime();var i=i||{type:"noEvent"};if(g.CSSAIsRunning&&g.eventType==i.type&&!jQuery.browser.msie&&jQuery.browser.version<=9)return void(g.CSSqueue=function(){h.CSSAnimate(a,b,c,d,e)});if(g.CSSqueue=null,g.eventType=i.type,0!==h.length&&a){if(a=jQuery.normalizeCss(a),g.CSSAIsRunning=!0,"function"==typeof b&&(e=b,b=jQuery.fx.speeds._default),"function"==typeof c&&(d=c,c=0),"string"==typeof c&&(e=c,c=0),"function"==typeof d&&(e=d,d="cubic-bezier(0.65,0.03,0.36,0.72)"),"string"==typeof b)for(var j in jQuery.fx.speeds){if(b==j){b=jQuery.fx.speeds[j];break}b=jQuery.fx.speeds._default}if(b||(b=jQuery.fx.speeds._default),"string"==typeof e&&(d=e,e=null),!jQuery.support.CSStransition){for(var k in a){if("transform"===k&&delete a[k],"filter"===k&&delete a[k],"transform-origin"===k&&delete a[k],"auto"===a[k]&&delete a[k],"x"===k){var l=a[k],m="left";a[m]=l,delete a[k]}if("y"===k){var l=a[k],m="top";a[m]=l,delete a[k]}("-ms-transform"===k||"-ms-filter"===k)&&delete a[k]}return void h.delay(c).animate(a,b,e)}var n={"default":"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1
386)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};n[d]&&(d=n[d]),h.off(jQuery.CSS.transitionEnd+"."+g.id);var o=jQuery.CSS.getProp(a),p={};jQuery.extend(p,a),p[jQuery.CSS.sfx+"transition-property"]=o,p[jQuery.CSS.sfx+"transition-duration"]=b+"ms",p[jQuery.CSS.sfx+"transition-delay"]=c+"ms",p[jQuery.CSS.sfx+"transition-timing-function"]=d,setTimeout(function(){h.one(jQuery.CSS.transitionEnd+"."+g.id,f),h.css(p)},1),g.timeout=setTimeout(function(){return g.called||!e?(g.called=!1,void(g.CSSAIsRunning=!1)):(h.css(jQuery.CSS.sfx+"transition",""),e.apply(g),g.CSSAIsRunning=!1,void("function"==typeof g.CSSqueue&&(g.CSSqueue(),g.CSSqueue=null)))},b+c+10)}})}},jQuery.fn.CSSAnimate=jQuery.CSS.animate,jQuery.normalizeCss=jQuery.CSS.normalizeCss,jQuery.fn.css3=function(a){return this.each(function(){var b=jQuery(this),c=jQuery.normalizeCss(a);b.css(c)})};var nAgt=navigator.userAgent;if(!jQuery.browser){jQuery.browser={},jQuery.browser.mozilla=!1,jQuery.browser.webkit=!1,jQuery.browser.opera=!1,jQuery.browser.safari=!1,jQuery.browser.chrome=!1,jQuery.browser.msie=!1,jQuery.browser.ua=nAgt,jQuery.browser.name=navigator.appName,jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10);var nameOffset,verOffset,ix;if(-1!=(verOffset=nAgt.indexOf("Opera")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+6),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8));else if(-1!=(verOffset=nAgt.indexOf("OPR")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+4);else if(-1!=(verOffset=nAgt.indexOf("MSIE")))jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",jQuery.browser.fullVersion=nAgt.substring(verOffset+5);else if(-1!=nAgt.indexOf("Trident")){jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer";var start=nAgt.indexOf("rv:")+3,end=start+4;jQuery.browser.fullVersion=nAgt.substring(start,end)}else-1!=(verOffset=nAgt.indexOf("Chrome"))?(jQuery.browser.webkit=!0,jQuery.browser.chrome=!0,jQuery.browser.name="Chrome",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf("Safari"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("AppleWebkit"))?(jQuery.browser.webkit=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("Firefox"))?(jQuery.browser.mozilla=!0,jQuery.browser.name="Firefox",jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOffset=nAgt.lastIndexOf(" ")+1)<(verOffset=nAgt.lastIndexOf("/"))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName));-1!=(ix=jQuery.browser.fullVersion.indexOf(";"))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(" "))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(""+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion}jQuery.browser.android=/Android/i.test(nAgt),jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt),jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt),jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt),jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt),jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt),jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle,jQuery.isMobile=jQuery.browser.mobile,jQuery.isTablet=jQuery.browser.mobile&&jQuery(window).width()>765,jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt),!function(a){/iphone|ipod|ipad|android|ie|blackberry|fennec/.test(navigator.userAgent.toLowerCase());var b="ontouchstart"in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch||!1;a.simpleSlider={defaults:{initialval:0,scale:100,orientation:"h",readonly:!1,callback:!1}
386,events:{start:b?"touchstart":"mousedown",end:b?"touchend":"mouseup",move:b?"touchmove":"mousemove"},init:function(c){return this.each(function(){var d=this,e=a(d);e.addClass("simpleSlider"),d.opt={},a.extend(d.opt,a.simpleSlider.defaults,c),a.extend(d.opt,e.data());var f="h"==d.opt.orientation?"horizontal":"vertical",g=a("<div/>").addClass("level").addClass(f);e.prepend(g),d.level=g,e.css({cursor:"default"}),"auto"==d.opt.scale&&(d.opt.scale=a(d).outerWidth()),e.updateSliderVal(),d.opt.readonly||(e.on(a.simpleSlider.events.start,function(a){b&&(a=a.changedTouches[0]),d.canSlide=!0,e.updateSliderVal(a),e.css({cursor:"col-resize"}),a.preventDefault(),a.stopPropagation()}),a(document).on(a.simpleSlider.events.move,function(c){b&&(c=c.changedTouches[0]),d.canSlide&&(a(document).css({cursor:"default"}),e.updateSliderVal(c),c.preventDefault(),c.stopPropagation())}).on(a.simpleSlider.events.end,function(){a(document).css({cursor:"auto"}),d.canSlide=!1,e.css({cursor:"auto"})}))})},updateSliderVal:function(b){function c(a,b){return Math.floor(100*a/b)}var d=this,e=d.get(0);e.opt.initialval="number"==typeof e.opt.initialval?e.opt.initialval:e.opt.initialval(e);var f=a(e).outerWidth(),g=a(e).outerHeight();e.x="object"==typeof b?b.clientX+document.body.scrollLeft-d.offset().left:"number"==typeof b?b*f/e.opt.scale:e.opt.initialval*f/e.opt.scale,e.y="object"==typeof b?b.clientY+document.body.scrollTop-d.offset().top:"number"==typeof b?(e.opt.scale-e.opt.initialval-b)*g/e.opt.scale:e.opt.initialval*g/e.opt.scale,e.y=d.outerHeight()-e.y,e.scaleX=e.x*e.opt.scale/f,e.scaleY=e.y*e.opt.scale/g,e.outOfRangeX=e.scaleX>e.opt.scale?e.scaleX-e.opt.scale:e.scaleX<0?e.scaleX:0,e.outOfRangeY=e.scaleY>e.opt.scale?e.scaleY-e.opt.scale:e.scaleY<0?e.scaleY:0,e.outOfRange="h"==e.opt.orientation?e.outOfRangeX:e.outOfRangeY,e.value="undefined"!=typeof b?"h"==e.opt.orientation?e.x>=d.outerWidth()?e.opt.scale:e.x<=0?0:e.scaleX:e.y>=d.outerHeight()?e.opt.scale:e.y<=0?0:e.scaleY:"h"==e.opt.orientation?e.scaleX:e.scaleY,"h"==e.opt.orientation?e.level.width(c(e.x,f)+"%"):e.level.height(c(e.y,g)),"function"==typeof e.opt.callback&&e.opt.callback(e)}},a.fn.simpleSlider=a.simpleSlider.init,a.fn.updateSliderVal=a.simpleSlider.updateSliderVal}(jQuery),!function(a){a.mbCookie={set:function(a,b,c,d){b=JSON.stringify(b),c||(c=7),d=d?"; domain="+d:"";var e,f=new Date;f.setTime(f.getTime()+864e5*c),e="; expires="+f.toGMTString(),document.cookie=a+"="+b+e+"; path=/"+d},get:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0==e.indexOf(b))return JSON.parse(e.substring(b.length,e.length))}return null},remove:function(b){a.mbCookie.set(b,"",-1)}},a.mbStorage={set:function(a,b){b=JSON.stringify(b),localStorage.setItem(a,b)},get:function(a){return localStorage[a]?JSON.parse(localStorage[a]):null},remove:function(a){a?localStorage.removeItem(a):localStorage.clear()}}}(jQuery);function DwInventorySearchLoaderToggle(n){var t=document.getElementById("DWFeaturedCarsLoader");switch(n){case 2:window.dispatchEvent(new Event("resize"));pageNo++;case 3:bolDWFeaturedCarsLoading=!1;case 1:t.style.display="none";break;case 0:t.style.display="";case 4:bolDWFeaturedCarsLoading=!0}}function DwInventorySearchScroll(){var t=document.getElementById("DWFeaturedCars"),n,r,i;t&&(n=t.getBoundingClientRect().top,n=(n>0?n:0)+t.getBoundingClientRect().height,r=window.scrollY,r>n*.7&&(bolDWFeaturedCarsLoading||(i=JSON.parse(document.getElementById("hdnInvSearchParams").value),i.pno=pageNo,DwInventorySearchLoaderToggle(0),$.ajax({url:"/0/DealerWebLib/DealerWebService.asmx/GetInventorySearchPaging",data:JSON.stringify(i),type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var i=n.d[0];DwInventorySearchLoaderToggle(1);i&&(t.innerHTML+=i,objDWInventoryList.InvPageList=objDWInventoryList.InvPageList.concat(n.d[1]),DwInventorySearchLoaderToggle(2),pageStartRow=pageEndRow+1,pageEndRow=pageEndRow+pageEndRow,typeof SetCustomInventorySearchCallback!="undefined"&&typeof SetCustomInventorySearchCallback=="function"&&SetCustomInventorySearchCallback(pageStartRow,pageEndRow))},error:function(){DwInventorySearchLoaderToggle(3);AlertModel("There was an error while processing your request. The Technical Support Team has been notified. Please try the request later.")},failure:function(){DwInventorySearchLoaderToggle(3);AlertModel("There was an error while processing your request. The Technical Support Team has been notified. Please try the request later.")}})),DwInventorySearchLoaderToggle(4)))}var bolDWFeaturedCarsLoading=!1,IsBot=$("#hdnDwInvIsBot").val()==="true",pageNo=2,pageStartRow=0,pageEndRow;pageEndRow=IsBot==!0?1e3:24;addEvent(window,"scroll",DwInventorySearchScroll);function AddExternalScripts(){var n,t;(CurrentPN=="inventory"||CurrentPN=="viewinventorydetails")&&(n=window.CarGurus||{},window.CarGurus=n,n.DealRatingBadge=window.CarGurus.DealRatingBadge||{},n.DealRatingBadge.options={style:"STYLE1",minRating:"FAIR_PRICE",defaultHeight:"60"},function(){var n=document.createElement("script"),t;n.src="//static.cargurus.com/js/api/en_US/1.0/dealratingbadge.js";n.async=!0;t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(n,t)}()),function(n,t,i,r,u){n[r]=n[r]||[];n[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var e=t.getElementsByTagName(i)[0],f=t.createElement(i),o=r!="dataLayer"?"&l="+r:"";f.async=!0;f.src="https://www.googletagmanager.com/gtm.js?id="+u+o;e.parentNode.insertBefore(f,e)}(window,document,"script","dataLayer","GTM-MXMSRDB8");t='<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MXMSRDB8" height="0" width="0" style="display:none;visibility:hidden"><\/iframe><\/noscript>';$("body").append(t)}var ShowFooterLinks=!0,ShowGoogleTranslator=!0,$blink,backgroundInterval,carguruHtml,list;if($(document).ready(function(){var n,t;$(".dw-recent #google_translate_element").remove();typeof SetloadScriptOnLoadGoogleTransDW!="undefined"&&typeof SetloadScriptOnLoadGoogleTransDW=="function"&&SetloadScriptOnLoadGoogleTransDW();n='<div id="textTop">SE HABLA ESPAÃOL<\/div>';af$("contactAdd_Direction")!=null&&$(n).insertAfter("#contactAdd_Direction");t=setTimeout(function(){AddExternalScripts()},3e3)}),$(".caption")!=null&&($blink=$(".caption"),backgroundInterval=setInterval(function(){$blink.toggleClass("textcolor")},600)),CurrentPN=="inventory"&&af$("DWInvListingH1SaleText")!=null&&(af$("DWInvListingH1SaleText").innerHTML="Used Cars for sale in Boroughs Brooklyn, Bronx, New York, Queens, Staten Island, Long Island, New Jersey and Connecticut"),CurrentPN=="viewinventorydetails"){carguruHtml=document.createElement("div");
386carguruHtml.className="carGuru";carguruHtml.Id="carGuru";var ReducedPrice=invDetailsReducedPrice,InternetPrice=invDetailsInternetPrice,vin=invDetailsVin;carguruHtml.innerHTML=ReducedPrice>0&&ReducedPrice<InternetPrice?"<br/><div><span data-cg-vin="+vin+' data-cg-price="'+ReducedPrice+'"><\/span><\/div>':"<br/><div><span data-cg-vin="+vin+' data-cg-price="'+InternetPrice+'"><\/span><\/div>';list=af$("divSwip");list.parentNode.insertBefore(carguruHtml,list)}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.