/*! jquery v2.1.4 | (c) 2005, 2015 jquery foundation, inc. | jquery.org/license */ !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=a.document,m="2.1.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\ufeff\xa0]+|[\s\ufeff\xa0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.touppercase()};n.fn=n.prototype={jquery:m,constructor:n,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=n.merge(this.constructor(),a);return b.prevobject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushstack(n.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},n.extend=n.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||n.isfunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isplainobject(d)||(e=n.isarray(d)))?(e?(e=!1,f=c&&n.isarray(c)?c:[]):f=c&&n.isplainobject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jquery"+(m+math.random()).replace(/\d/g,""),isready:!0,error:function(a){throw new error(a)},noop:function(){},isfunction:function(a){return"function"===n.type(a)},isarray:array.isarray,iswindow:function(a){return null!=a&&a===a.window},isnumeric:function(a){return!n.isarray(a)&&a-parsefloat(a)+1>=0},isplainobject:function(a){return"object"!==n.type(a)||a.nodetype||n.iswindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isprototypeof")?!1:!0},isemptyobject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globaleval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexof("use strict")?(b=l.createelement("script"),b.text=a,l.head.appendchild(b).parentnode.removechild(b)):c(a))},camelcase:function(a){return a.replace(p,"ms-").replace(q,r)},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=s(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(o,"")},makearray:function(a,b){var c=b||[];return null!=a&&(s(object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inarray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;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=s(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&&(c=a[b],b=a,a=c),n.isfunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:date.now,support:k}),n.each("boolean number string function array date regexp object error".split(" "),function(a,b){h["[object "+b+"]"]=b.tolowercase()});function s(a){var b="length"in a&&a.length,c=n.type(a);return"function"===c||n.iswindow(a)?!1:1===a.nodetype&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=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.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;++db;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.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="",a.firstchild.setattribute("value",""),""===a.firstchild.getattribute("value")})||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);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniquesort,n.text=t.gettext,n.isxmldoc=t.isxml,n.contains=t.contains;var u=n.expr.match.needscontext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isfunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodetype)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodetype?n.find.matchesselector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodetype}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushstack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushstack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushstack(x(this,a||[],!1))},not:function(a){return this.pushstack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\w]+>)[^>]*|#([\w-]*))$/,a=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parsehtml(c[1],b&&b.nodetype?b.ownerdocument||b:l,!0)),v.test(c[1])&&n.isplainobject(b))for(c in b)n.isfunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getelementbyid(c[2]),d&&d.parentnode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodetype?(this.context=this[0]=a,this.length=1,this):n.isfunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makearray(a,this))};a.prototype=n.fn,y=n(l);var b=/^(?:parents|prev(?:until|all))/,c={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodetype)if(1===a.nodetype){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextsibling)1===a.nodetype&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(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&&n.find.matchesselector(c,a))){f.push(c);break}return this.pushstack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentnode?this.first().prevall().length:-1},add:function(a,b){return this.pushstack(n.unique(n.merge(this.get(),n(a,b))))},addback:function(a){return this.add(null==a?this.prevobject:this.prevobject.filter(a))}});function d(a,b){while((a=a[b])&&1!==a.nodetype);return a}n.each({parent:function(a){var b=a.parentnode;return b&&11!==b.nodetype?b:null},parents:function(a){return n.dir(a,"parentnode")},parentsuntil:function(a,b,c){return n.dir(a,"parentnode",c)},next:function(a){return d(a,"nextsibling")},prev:function(a){return d(a,"previoussibling")},nextall:function(a){return n.dir(a,"nextsibling")},prevall:function(a){return n.dir(a,"previoussibling")},nextuntil:function(a,b,c){return n.dir(a,"nextsibling",c)},prevuntil:function(a,b,c){return n.dir(a,"previoussibling",c)},siblings:function(a){return n.sibling((a.parentnode||{}).firstchild,a)},children:function(a){return n.sibling(a.firstchild)},contents:function(a){return a.contentdocument||n.merge([],a.childnodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(c[a]||n.unique(e),b.test(a)&&e.reverse()),this.pushstack(e)}});var e=/\s+/g,f={};function g(a){var b=f[a]={};return n.each(a.match(e)||[],function(a,c){b[c]=!0}),b}n.callbacks=function(a){a="string"==typeof a?f[a]||g(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stoponfalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inarray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inarray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},firewith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.firewith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({deferred:function(a){var b=[["resolve","done",n.callbacks("once memory"),"resolved"],["reject","fail",n.callbacks("once memory"),"rejected"],["notify","progress",n.callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.deferred(function(c){n.each(b,function(b,f){var g=n.isfunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.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?n.extend(a,d):d}},e={};return d.pipe=d.then,n.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&&n.isfunction(a.promise)?e:0,g=1===f?a:n.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]&&n.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;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isready:!1,readywait:1,holdready:function(a){a?n.readywait++:n.ready(!0)},ready:function(a){(a===!0?--n.readywait:n.isready)||(n.isready=!0,a!==!0&&--n.readywait>0||(h.resolvewith(l,[n]),n.fn.triggerhandler&&(n(l).triggerhandler("ready"),n(l).off("ready"))))}});function i(){l.removeeventlistener("domcontentloaded",i,!1),a.removeeventlistener("load",i,!1),n.ready()}n.ready.promise=function(b){return h||(h=n.deferred(),"complete"===l.readystate?settimeout(n.ready):(l.addeventlistener("domcontentloaded",i,!1),a.addeventlistener("load",i,!1))),h.promise(b)},n.ready.promise();var j=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isfunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(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};n.acceptdata=function(a){return 1===a.nodetype||9===a.nodetype||!+a.nodetype};function k(){object.defineproperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+k.uid++}k.uid=1,k.accepts=n.acceptdata,k.prototype={key:function(a){if(!k.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=k.uid++;try{b[this.expando]={value:c},object.defineproperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isemptyobject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelcase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isarray(b)?d=b.concat(b.map(n.camelcase)):(e=n.camelcase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(e)||[])),c=d.length;while(c--)delete g[d[c]]}},hasdata:function(a){return!n.isemptyobject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var l=new k,m=new k,n=/^(?:\{[\w\w]*\}|\[[\w\w]*\])$/,o=/([a-z])/g;function p(a,b,c){var d;if(void 0===c&&1===a.nodetype)if(d="data-"+b.replace(o,"-$1").tolowercase(),c=a.getattribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:n.test(c)?n.parsejson(c):c}catch(e){}m.set(a,b,c)}else c=void 0;return c}n.extend({hasdata:function(a){return m.hasdata(a)||l.hasdata(a)},data:function(a,b,c){ return m.access(a,b,c)},removedata:function(a,b){m.remove(a,b)},_data:function(a,b,c){return l.access(a,b,c)},_removedata:function(a,b){l.remove(a,b)}}),n.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.get(f),1===f.nodetype&&!l.get(f,"hasdataattrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexof("data-")&&(d=n.camelcase(d.slice(5)),p(f,d,e[d])));l.set(f,"hasdataattrs",!0)}return e}return"object"==typeof a?this.each(function(){m.set(this,a)}):j(this,function(b){var c,d=n.camelcase(a);if(f&&void 0===b){if(c=m.get(f,a),void 0!==c)return c;if(c=m.get(f,d),void 0!==c)return c;if(c=p(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=m.get(this,d);m.set(this,d,b),-1!==a.indexof("-")&&void 0!==c&&m.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removedata:function(a){return this.each(function(){m.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=l.get(a,b),c&&(!d||n.isarray(c)?d=l.access(a,b,n.makearray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queuehooks(a,b),g=function(){n.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 l.get(a,c)||l.access(a,c,{empty:n.callbacks("once memory").add(function(){l.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthx",k.noclonechecked=!!b.clonenode(!0).lastchild.defaultvalue}();var u="undefined";k.focusinbubbles="onfocusin"in a;var v=/^key/,w=/^(?:mouse|pointer|contextmenu)|click/,x=/^(?:focusinfocus|focusoutblur)$/,y=/^([^.]*)(?:\.(.+)|)$/;function z(){return!0}function $(){return!1}function _(){try{return l.activeelement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=l.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==u&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(e)||[""],j=b.length;while(j--)h=y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegatetype:l.bindtype)||o,l=n.event.special[o]||{},k=n.extend({type:o,origtype:q,data:d,handler:c,guid:c.guid,selector:e,needscontext:e&&n.expr.match.needscontext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegatecount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addeventlistener&&a.addeventlistener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegatecount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=l.hasdata(a)&&l.get(a);if(r&&(i=r.events)){b=(b||"").match(e)||[""],j=b.length;while(j--)if(h=y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegatetype:l.bindtype)||o,m=i[o]||[],h=h[2]&&new regexp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origtype||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegatecount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeevent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isemptyobject(i)&&(delete r.handle,l.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodetype&&8!==d.nodetype&&!x.test(q+n.event.triggered)&&(q.indexof(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexof(":")<0&&"on"+q,b=b[n.expando]?b:new n.event(q,"object"==typeof b&&b),b.istrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new regexp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makearray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.nobubble&&!n.iswindow(d)){for(i=o.delegatetype||q,x.test(i+q)||(g=g.parentnode);g;g=g.parentnode)p.push(g),h=g;h===(d.ownerdocument||l)&&p.push(h.defaultview||h.parentwindow||a)}f=0;while((g=p[f++])&&!b.ispropagationstopped())b.type=f>1?i:o.bindtype||q,m=(l.get(g,"events")||{})[b.type]&&l.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptdata(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventdefault());return b.type=q,e||b.isdefaultprevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptdata(d)||k&&n.isfunction(d[q])&&!n.iswindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(l.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegatetarget=this,!k.predispatch||k.predispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.ispropagationstopped()){a.currenttarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isimmediatepropagationstopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleobj=g,a.data=g.data,e=((n.event.special[g.origtype]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!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(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needscontext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,ba=/<([\w:]+)/,ca=/<|&#?\w+;/,da=/<(?:script|style|link)/i,ea=/checked\s*(?:[^=]|=\s*.checked.)/i,fa=/^$|\/(?:java|ecma)script/i,ga=/^true\/(.*)/,ha=/^\s*\s*$/g,ia={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ia.optgroup=ia.option,ia.tbody=ia.tfoot=ia.colgroup=ia.caption=ia.thead,ia.th=ia.td;function ja(a,b){return n.nodename(a,"table")&&n.nodename(11!==b.nodetype?b:b.firstchild,"tr")?a.getelementsbytagname("tbody")[0]||a.appendchild(a.ownerdocument.createelement("tbody")):a}function ka(a){return a.type=(null!==a.getattribute("type"))+"/"+a.type,a}function la(a){var b=ga.exec(a.type);return b?a.type=b[1]:a.removeattribute("type"),a}function ma(a,b){for(var c=0,d=a.length;d>c;c++)l.set(a[c],"globaleval",!b||l.get(b[c],"globaleval"))}function na(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodetype){if(l.hasdata(a)&&(f=l.access(a),g=l.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}m.hasdata(a)&&(h=m.access(a),i=n.extend({},h),m.set(b,i))}}function oa(a,b){var c=a.getelementsbytagname?a.getelementsbytagname(b||"*"):a.queryselectorall?a.queryselectorall(b||"*"):[];return void 0===b||b&&n.nodename(a,b)?n.merge([a],c):c}function pa(a,b){var c=b.nodename.tolowercase();"input"===c&&t.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultvalue=a.defaultvalue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.clonenode(!0),i=n.contains(a.ownerdocument,a);if(!(k.noclonechecked||1!==a.nodetype&&11!==a.nodetype||n.isxmldoc(a)))for(g=oa(h),f=oa(a),d=0,e=f.length;e>d;d++)pa(f[d],g[d]);if(b)if(c)for(f=f||oa(a),g=g||oa(h),d=0,e=f.length;e>d;d++)na(f[d],g[d]);else na(a,h);return g=oa(h,"script"),g.length>0&&ma(g,!i&&oa(a,"script")),h},buildfragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createdocumentfragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodetype?[e]:e);else if(ca.test(e)){f=f||k.appendchild(b.createelement("div")),g=(ba.exec(e)||["",""])[1].tolowercase(),h=ia[g]||ia._default,f.innerhtml=h[1]+e.replace(aa,"<$1>")+h[2],j=h[0];while(j--)f=f.lastchild;n.merge(l,f.childnodes),f=k.firstchild,f.textcontent=""}else l.push(b.createtextnode(e));k.textcontent="",m=0;while(e=l[m++])if((!d||-1===n.inarray(e,d))&&(i=n.contains(e.ownerdocument,e),f=oa(k.appendchild(e),"script"),i&&ma(f),c)){j=0;while(e=f[j++])fa.test(e.type||"")&&c.push(e)}return k},cleandata:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptdata(c)&&(e=c[l.expando],e&&(b=l.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeevent(c,d,b.handle);l.cache[e]&&delete l.cache[e]}delete m.cache[c[m.expando]]}}}),n.fn.extend({text:function(a){return j(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodetype||11===this.nodetype||9===this.nodetype)&&(this.textcontent=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=ja(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=ja(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?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodetype||n.cleandata(oa(c)),c.parentnode&&(b&&n.contains(c.ownerdocument,c)&&ma(oa(c,"script")),c.parentnode.removechild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodetype&&(n.cleandata(oa(a,!1)),a.textcontent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return j(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodetype)return b.innerhtml;if("string"==typeof a&&!da.test(a)&&!ia[(ba.exec(a)||["",""])[1].tolowercase()]){a=a.replace(aa,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodetype&&(n.cleandata(oa(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,n.cleandata(oa(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,m=this,o=l-1,p=a[0],q=n.isfunction(p);if(q||l>1&&"string"==typeof p&&!k.checkclone&&ea.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.dommanip(a,b)});if(l&&(c=n.buildfragment(a,this[0].ownerdocument,!1,this),d=c.firstchild,1===c.childnodes.length&&(c=d),d)){for(f=n.map(oa(c,"script"),ka),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,oa(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerdocument,n.map(f,la),j=0;g>j;j++)h=f[j],fa.test(h.type||"")&&!l.access(h,"globaleval")&&n.contains(i,h)&&(h.src?n._evalurl&&n._evalurl(h.src):n.globaleval(h.textcontent.replace(ha,"")))}return this}}),n.each({appendto:"append",prependto:"prepend",insertbefore:"before",insertafter:"after",replaceall:"replacewith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushstack(d)}});var qa,ra={};function sa(b,c){var d,e=n(c.createelement(b)).appendto(c.body),f=a.getdefaultcomputedstyle&&(d=a.getdefaultcomputedstyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function ta(a){var b=l,c=ra[a];return c||(c=sa(a,b),"none"!==c&&c||(qa=(qa||n("':""),a._keyevent=!1,k},_generatemonthyearheader:function(a,b,c,d,e,f,g,h){var i=this._get(a,"changemonth"),j=this._get(a,"changeyear"),k=this._get(a,"showmonthafteryear"),l='
',m="";if(f||!i)m+=''+g[b]+"";else{var n=d&&d.getfullyear()==c,o=e&&e.getfullyear()==c;m+='"}k||(l+=m+(f||!i||!j?" ":""));if(!a.yearshtml){a.yearshtml="";if(f||!j)l+=''+c+"";else{var q=this._get(a,"yearrange").split(":"),r=(new date).getfullyear(),s=function(a){var b=a.match(/c[+-].*/)?c+parseint(a.substring(1),10):a.match(/[+-].*/)?r+parseint(a,10):parseint(a,10);return isnan(b)?r:b},t=s(q[0]),u=math.max(t,s(q[1]||""));t=d?math.max(t,d.getfullyear()):t,u=e?math.min(u,e.getfullyear()):u,a.yearshtml+='",l+=a.yearshtml,a.yearshtml=null}}return l+=this._get(a,"yearsuffix"),k&&(l+=(f||!i||!j?" ":"")+m),l+="
",l},_adjustinstdate:function(a,b,c){var d=a.drawyear+(c=="y"?b:0),e=a.drawmonth+(c=="m"?b:0),f=math.min(a.selectedday,this._getdaysinmonth(d,e))+(c=="d"?b:0),g=this._restrictminmax(a,this._daylightsavingadjust(new date(d,e,f)));a.selectedday=g.getdate(),a.drawmonth=a.selectedmonth=g.getmonth(),a.drawyear=a.selectedyear=g.getfullyear(),(c=="m"||c=="y")&&this._notifychange(a)},_restrictminmax:function(a,b){var c=this._getminmaxdate(a,"min"),d=this._getminmaxdate(a,"max"),e=c&&bd?d:e,e},_notifychange:function(a){var b=this._get(a,"onchangemonthyear");b&&b.apply(a.input?a.input[0]:null,[a.selectedyear,a.selectedmonth+1,a])},_getnumberofmonths:function(a){var b=this._get(a,"numberofmonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getminmaxdate:function(a,b){return this._determinedate(a,this._get(a,b+"date"),null)},_getdaysinmonth:function(a,b){return 32-this._daylightsavingadjust(new date(a,b,32)).getdate()},_getfirstdayofmonth:function(a,b){return(new date(a,b,1)).getday()},_canadjustmonth:function(a,b,c,d){var e=this._getnumberofmonths(a),f=this._daylightsavingadjust(new date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setdate(this._getdaysinmonth(f.getfullyear(),f.getmonth())),this._isinrange(a,f)},_isinrange:function(a,b){var c=this._getminmaxdate(a,"min"),d=this._getminmaxdate(a,"max");return(!c||b.gettime()>=c.gettime())&&(!d||b.gettime()<=d.gettime())},_getformatconfig:function(a){var b=this._get(a,"shortyearcutoff");return b=typeof b!="string"?b:(new date).getfullyear()%100+parseint(b,10),{shortyearcutoff:b,daynamesshort:this._get(a,"daynamesshort"),daynames:this._get(a,"daynames"),monthnamesshort:this._get(a,"monthnamesshort"),monthnames:this._get(a,"monthnames")}},_formatdate:function(a,b,c,d){b||(a.currentday=a.selectedday,a.currentmonth=a.selectedmonth,a.currentyear=a.selectedyear);var e=b?typeof b=="object"?b:this._daylightsavingadjust(new date(d,c,b)):this._daylightsavingadjust(new date(a.currentyear,a.currentmonth,a.currentday));return this.formatdate(this._get(a,"dateformat"),e,this._getformatconfig(a))}}),$.fn.datepicker=function(a){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkexternalclick).find("body").append($.datepicker.dpdiv),$.datepicker.initialized=!0);var b=array.prototype.slice.call(arguments,1);return typeof a!="string"||a!="isdisabled"&&a!="getdate"&&a!="widget"?a=="option"&&arguments.length==2&&typeof arguments[1]=="string"?$.datepicker["_"+a+"datepicker"].apply($.datepicker,[this[0]].concat(b)):this.each(function(){typeof a=="string"?$.datepicker["_"+a+"datepicker"].apply($.datepicker,[this].concat(b)):$.datepicker._attachdatepicker(this,a)}):$.datepicker["_"+a+"datepicker"].apply($.datepicker,[this[0]].concat(b))},$.datepicker=new datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new date).gettime(),$.datepicker.version="1.8.24",window["dp_jquery_"+dpuuid]=$}(jquery),function(a,b){var c="ui-dialog ui-widget ui-widget-content ui-corner-all ",d={buttons:!0,height:!0,maxheight:!0,maxwidth:!0,minheight:!0,minwidth:!0,width:!0},e={maxheight:!0,maxwidth:!0,minheight:!0,minwidth:!0};a.widget("ui.dialog",{options:{autoopen:!0,buttons:{},closeonescape:!0,closetext:"close",dialogclass:"",draggable:!0,hide:null,height:"auto",maxheight:!1,maxwidth:!1,minheight:150,minwidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,stack:!0,title:"",width:300,zindex:1e3},_create:function(){this.originaltitle=this.element.attr("title"),typeof this.originaltitle!="string"&&(this.originaltitle=""),this.options.title=this.options.title||this.originaltitle;var b=this,d=b.options,e=d.title||" ",f=a.ui.dialog.gettitleid(b.element),g=(b.uidialog=a("
")).appendto(document.body).hide().addclass(c+d.dialogclass).css({zindex:d.zindex}).attr("tabindex",-1).css("outline",0).keydown(function(c){d.closeonescape&&!c.isdefaultprevented()&&c.keycode&&c.keycode===a.ui.keycode.escape&&(b.close(c),c.preventdefault())}).attr({role:"dialog","aria-labelledby":f}).mousedown(function(a){b.movetotop(!1,a)}),h=b.element.show().removeattr("title").addclass("ui-dialog-content ui-widget-content").appendto(g),i=(b.uidialogtitlebar=a("
")).addclass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependto(g),j=a('').addclass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){j.addclass("ui-state-hover")},function(){j.removeclass("ui-state-hover")}).focus(function(){j.addclass("ui-state-focus")}).blur(function(){j.removeclass("ui-state-focus")}).click(function(a){return b.close(a),!1}).appendto(i),k=(b.uidialogtitlebarclosetext=a("")).addclass("ui-icon ui-icon-closethick").text(d.closetext).appendto(j),l=a("").addclass("ui-dialog-title").attr("id",f).html(e).prependto(i);a.isfunction(d.beforeclose)&&!a.isfunction(d.beforeclose)&&(d.beforeclose=d.beforeclose),i.find("*").add(i).disableselection(),d.draggable&&a.fn.draggable&&b._makedraggable(),d.resizable&&a.fn.resizable&&b._makeresizable(),b._createbuttons(d.buttons),b._isopen=!1,a.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoopen&&this.open()},destroy:function(){var a=this;return a.overlay&&a.overlay.destroy(),a.uidialog.hide(),a.element.unbind(".dialog").removedata("dialog").removeclass("ui-dialog-content ui-widget-content").hide().appendto("body"),a.uidialog.remove(),a.originaltitle&&a.element.attr("title",a.originaltitle),a},widget:function(){return this.uidialog},close:function(b){var c=this,d,e;if(!1===c._trigger("beforeclose",b))return;return c.overlay&&c.overlay.destroy(),c.uidialog.unbind("keypress.ui-dialog"),c._isopen=!1,c.options.hide?c.uidialog.hide(c.options.hide,function(){c._trigger("close",b)}):(c.uidialog.hide(),c._trigger("close",b)),a.ui.dialog.overlay.resize(),c.options.modal&&(d=0,a(".ui-dialog").each(function(){this!==c.uidialog[0]&&(e=a(this).css("z-index"),isnan(e)||(d=math.max(d,e)))}),a.ui.dialog.maxz=d),c},isopen:function(){return this._isopen},movetotop:function(b,c){var d=this,e=d.options,f;return e.modal&&!b||!e.stack&&!e.modal?d._trigger("focus",c):(e.zindex>a.ui.dialog.maxz&&(a.ui.dialog.maxz=e.zindex),d.overlay&&(a.ui.dialog.maxz+=1,d.overlay.$el.css("z-index",a.ui.dialog.overlay.maxz=a.ui.dialog.maxz)),f={scrolltop:d.element.scrolltop(),scrollleft:d.element.scrollleft()},a.ui.dialog.maxz+=1,d.uidialog.css("z-index",a.ui.dialog.maxz),d.element.attr(f),d._trigger("focus",c),d)},open:function(){if(this._isopen)return;var b=this,c=b.options,d=b.uidialog;return b.overlay=c.modal?new a.ui.dialog.overlay(b):null,b._size(),b._position(c.position),d.show(c.show),b.movetotop(!0),c.modal&&d.bind("keydown.ui-dialog",function(b){if(b.keycode!==a.ui.keycode.tab)return;var c=a(":tabbable",this),d=c.filter(":first"),e=c.filter(":last");if(b.target===e[0]&&!b.shiftkey)return d.focus(1),!1;if(b.target===d[0]&&b.shiftkey)return e.focus(1),!1}),a(b.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus(),b._isopen=!0,b._trigger("open"),b},_createbuttons:function(b){var c=this,d=!1,e=a("
").addclass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),f=a("
").addclass("ui-dialog-buttonset").appendto(e);c.uidialog.find(".ui-dialog-buttonpane").remove(),typeof b=="object"&&b!==null&&a.each(b,function(){return!(d=!0)}),d&&(a.each(b,function(b,d){d=a.isfunction(d)?{click:d,text:b}:d;var e=a('').click(function(){d.click.apply(c.element[0],arguments)}).appendto(f);a.each(d,function(a,b){if(a==="click")return;a in e?e[a](b):e.attr(a,b)}),a.fn.button&&e.button()}),e.appendto(c.uidialog))},_makedraggable:function(){function f(a){return{position:a.position,offset:a.offset}}var b=this,c=b.options,d=a(document),e;b.uidialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(d,g){e=c.height==="auto"?"auto":a(this).height(),a(this).height(a(this).height()).addclass("ui-dialog-dragging"),b._trigger("dragstart",d,f(g))},drag:function(a,c){b._trigger("drag",a,f(c))},stop:function(g,h){c.position=[h.position.left-d.scrollleft(),h.position.top-d.scrolltop()],a(this).removeclass("ui-dialog-dragging").height(e),b._trigger("dragstop",g,f(h)),a.ui.dialog.overlay.resize()}})},_makeresizable:function(c){function h(a){return{originalposition:a.originalposition,originalsize:a.originalsize,position:a.position,size:a.size}}c=c===b?this.options.resizable:c;var d=this,e=d.options,f=d.uidialog.css("position"),g=typeof c=="string"?c:"n,e,s,w,se,sw,ne,nw";d.uidialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoresize:d.element,maxwidth:e.maxwidth,maxheight:e.maxheight,minwidth:e.minwidth,minheight:d._minheight(),handles:g,start:function(b,c){a(this).addclass("ui-dialog-resizing"),d._trigger("resizestart",b,h(c))},resize:function(a,b){d._trigger("resize",a,h(b))},stop:function(b,c){a(this).removeclass("ui-dialog-resizing"),e.height=a(this).height(),e.width=a(this).width(),d._trigger("resizestop",b,h(c)),a.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addclass("ui-icon ui-icon-grip-diagonal-se")},_minheight:function(){var a=this.options;return a.height==="auto"?a.minheight:math.min(a.minheight,a.height)},_position:function(b){var c=[],d=[0,0],e;if(b){if(typeof b=="string"||typeof b=="object"&&"0"in b)c=b.split?b.split(" "):[b[0],b[1]],c.length===1&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c.join(" "),at:c.join(" "),offset:d.join(" ")};b=a.extend({},a.ui.dialog.prototype.options.position,b)}else b=a.ui.dialog.prototype.options.position;e=this.uidialog.is(":visible"),e||this.uidialog.show(),this.uidialog.css({top:0,left:0}).position(a.extend({of:window},b)),e||this.uidialog.hide()},_setoptions:function(b){var c=this,f={},g=!1;a.each(b,function(a,b){c._setoption(a,b),a in d&&(g=!0),a in e&&(f[a]=b)}),g&&this._size(),this.uidialog.is(":data(resizable)")&&this.uidialog.resizable("option",f)},_setoption:function(b,d){var e=this,f=e.uidialog;switch(b){case"beforeclose":b="beforeclose";break;case"buttons":e._createbuttons(d);break;case"closetext":e.uidialogtitlebarclosetext.text(""+d);break;case"dialogclass":f.removeclass(e.options.dialogclass).addclass(c+d);break;case"disabled":d?f.addclass("ui-dialog-disabled"):f.removeclass("ui-dialog-disabled");break;case"draggable":var g=f.is(":data(draggable)");g&&!d&&f.draggable("destroy"),!g&&d&&e._makedraggable();break;case"position":e._position(d);break;case"resizable":var h=f.is(":data(resizable)");h&&!d&&f.resizable("destroy"),h&&typeof d=="string"&&f.resizable("option","handles",d),!h&&d!==!1&&e._makeresizable(d);break;case"title":a(".ui-dialog-title",e.uidialogtitlebar).html(""+(d||" "))}a.widget.prototype._setoption.apply(e,arguments)},_size:function(){var b=this.options,c,d,e=this.uidialog.is(":visible");this.element.show().css({width:"auto",minheight:0,height:0}),b.minwidth>b.width&&(b.width=b.minwidth),c=this.uidialog.css({height:"auto",width:b.width}).height(),d=math.max(0,b.minheight-c);if(b.height==="auto")if(a.support.minheight)this.element.css({minheight:d,height:"auto"});else{this.uidialog.show();var f=this.element.css("height","auto").height();e||this.uidialog.hide(),this.element.height(math.max(f,d))}else this.element.height(math.max(b.height-c,0));this.uidialog.is(":data(resizable)")&&this.uidialog.resizable("option","minheight",this._minheight())}}),a.extend(a.ui.dialog,{version:"1.8.24",uuid:0,maxz:0,gettitleid:function(a){var b=a.attr("id");return b||(this.uuid+=1,b=this.uuid),"ui-dialog-title-"+b},overlay:function(b){this.$el=a.ui.dialog.overlay.create(b)}}),a.extend(a.ui.dialog.overlay,{instances:[],oldinstances:[],maxz:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),create:function(b){this.instances.length===0&&(settimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(b){if(a(b.target).zindex()").addclass("ui-widget-overlay")).appendto(document.body).css({width:this.width(),height:this.height()});return a.fn.bgiframe&&c.bgiframe(),this.instances.push(c),c},destroy:function(b){var c=a.inarray(b,this.instances);c!=-1&&this.oldinstances.push(this.instances.splice(c,1)[0]),this.instances.length===0&&a([document,window]).unbind(".dialog-overlay"),b.remove();var d=0;a.each(this.instances,function(){d=math.max(d,this.css("z-index"))}),this.maxz=d},height:function(){var b,c;return a.browser.msie&&a.browser.version<7?(b=math.max(document.documentelement.scrollheight,document.body.scrollheight),c=math.max(document.documentelement.offsetheight,document.body.offsetheight),b0?b.left-e:math.max(b.left-c.collisionposition.left,b.left)},top:function(b,c){var d=a(window),e=c.collisionposition.top+c.collisionheight-d.height()-d.scrolltop();b.top=e>0?b.top-e:math.max(b.top-c.collisionposition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]===e)return;var d=a(window),f=c.collisionposition.left+c.collisionwidth-d.width()-d.scrollleft(),g=c.my[0]==="left"?-c.elemwidth:c.my[0]==="right"?c.elemwidth:0,h=c.at[0]==="left"?c.targetwidth:-c.targetwidth,i=-2*c.offset[0];b.left+=c.collisionposition.left<0?g+h+i:f>0?g+h+i:0},top:function(b,c){if(c.at[1]===e)return;var d=a(window),f=c.collisionposition.top+c.collisionheight-d.height()-d.scrolltop(),g=c.my[1]==="top"?-c.elemheight:c.my[1]==="bottom"?c.elemheight:0,h=c.at[1]==="top"?c.targetheight:-c.targetheight,i=-2*c.offset[1];b.top+=c.collisionposition.top<0?g+h+i:f>0?g+h+i:0}}},a.offset.setoffset||(a.offset.setoffset=function(b,c){/static/.test(a.curcss(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseint(a.curcss(b,"top",!0),10)||0,g=parseint(a.curcss(b,"left",!0),10)||0,h={top:c.top-e.top+f,left:c.left-e.left+g};"using"in c?c.using.call(b,h):d.css(h)},a.fn.offset=function(b){var c=this[0];return!c||!c.ownerdocument?null:b?a.isfunction(b)?this.each(function(c){a(this).offset(b.call(this,c,a(this).offset()))}):this.each(function(){a.offset.setoffset(this,b)}):h.call(this)}),a.curcss||(a.curcss=a.css),function(){var b=document.getelementsbytagname("body")[0],c=document.createelement("div"),d,e,g,h,i;d=document.createelement(b?"div":"body"),g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},b&&a.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(var j in g)d.style[j]=g[j];d.appendchild(c),e=b||document.documentelement,e.insertbefore(d,e.firstchild),c.style.csstext="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",h=a(c).offset(function(a,b){return b}).offset(),d.innerhtml="",e.removechild(d),i=h.top+h.left+(b?2e3:0),f.fractions=i>21&&i<22}()}(jquery),function(a,b){a.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addclass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valuediv=a("
").appendto(this.element),this.oldvalue=this._value(),this._refreshvalue()},destroy:function(){this.element.removeclass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeattr("role").removeattr("aria-valuemin").removeattr("aria-valuemax").removeattr("aria-valuenow"),this.valuediv.remove(),a.widget.prototype.destroy.apply(this,arguments)},value:function(a){return a===b?this._value():(this._setoption("value",a),this)},_setoption:function(b,c){b==="value"&&(this.options.value=c,this._refreshvalue(),this._value()===this.options.max&&this._trigger("complete")),a.widget.prototype._setoption.apply(this,arguments)},_value:function(){var a=this.options.value;return typeof a!="number"&&(a=0),math.min(this.options.max,math.max(this.min,a))},_percentage:function(){return 100*this._value()/this.options.max},_refreshvalue:function(){var a=this.value(),b=this._percentage();this.oldvalue!==a&&(this.oldvalue=a,this._trigger("change")),this.valuediv.toggle(a>this.min).toggleclass("ui-corner-right",a===this.options.max).width(b.tofixed(0)+"%"),this.element.attr("aria-valuenow",a)}}),a.extend(a.ui.progressbar,{version:"1.8.24"})}(jquery),function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{widgeteventprefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var b=this,d=this.options,e=this.element.find(".ui-slider-handle").addclass("ui-state-default ui-corner-all"),f="",g=d.values&&d.values.length||1,h=[];this._keysliding=!1,this._mousesliding=!1,this._animateoff=!0,this._handleindex=null,this._detectorientation(),this._mouseinit(),this.element.addclass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"+(d.disabled?" ui-slider-disabled ui-disabled":"")),this.range=a([]),d.range&&(d.range===!0&&(d.values||(d.values=[this._valuemin(),this._valuemin()]),d.values.length&&d.values.length!==2&&(d.values=[d.values[0],d.values[0]])),this.range=a("
").appendto(this.element).addclass("ui-slider-range ui-widget-header"+(d.range==="min"||d.range==="max"?" ui-slider-range-"+d.range:"")));for(var i=e.length;ic&&(f=c,g=a(this),i=b)}),c.range===!0&&this.values(1)===c.min&&(i+=1,g=a(this.handles[i])),j=this._start(b,i),j===!1?!1:(this._mousesliding=!0,h._handleindex=i,g.addclass("ui-state-active").focus(),k=g.offset(),l=!a(b.target).parents().andself().is(".ui-slider-handle"),this._clickoffset=l?{left:0,top:0}:{left:b.pagex-k.left-g.width()/2,top:b.pagey-k.top-g.height()/2-(parseint(g.css("bordertopwidth"),10)||0)-(parseint(g.css("borderbottomwidth"),10)||0)+(parseint(g.css("margintop"),10)||0)},this.handles.hasclass("ui-state-hover")||this._slide(b,i,e),this._animateoff=!0,!0))},_mousestart:function(a){return!0},_mousedrag:function(a){var b={x:a.pagex,y:a.pagey},c=this._normvaluefrommouse(b);return this._slide(a,this._handleindex,c),!1},_mousestop:function(a){return this.handles.removeclass("ui-state-active"),this._mousesliding=!1,this._stop(a,this._handleindex),this._change(a,this._handleindex),this._handleindex=null,this._clickoffset=null,this._animateoff=!1,!1},_detectorientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normvaluefrommouse:function(a){var b,c,d,e,f;return this.orientation==="horizontal"?(b=this.elementsize.width,c=a.x-this.elementoffset.left-(this._clickoffset?this._clickoffset.left:0)):(b=this.elementsize.height,c=a.y-this.elementoffset.top-(this._clickoffset?this._clickoffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),this.orientation==="vertical"&&(d=1-d),e=this._valuemax()-this._valuemin(),f=this._valuemin()+d*e,this._trimalignvalue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),this.options.values.length===2&&this.options.range===!0&&(b===0&&c>d||b===1&&c1){this.options.values[b]=this._trimalignvalue(c),this._refreshvalue(),this._change(null,b);return}if(!arguments.length)return this._values();if(!a.isarray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();d=this.options.values,e=arguments[0];for(f=0;f=this._valuemax())return this._valuemax();var b=this.options.step>0?this.options.step:1,c=(a-this._valuemin())%b,d=a-c;return math.abs(c)*2>=b&&(d+=c>0?b:-b),parsefloat(d.tofixed(5))},_valuemin:function(){return this.options.min},_valuemax:function(){return this.options.max},_refreshvalue:function(){var b=this.options.range,c=this.options,d=this,e=this._animateoff?!1:c.animate,f,g={},h,i,j,k;this.options.values&&this.options.values.length?this.handles.each(function(b,i){f=(d.values(b)-d._valuemin())/(d._valuemax()-d._valuemin())*100,g[d.orientation==="horizontal"?"left":"bottom"]=f+"%",a(this).stop(1,1)[e?"animate":"css"](g,c.animate),d.options.range===!0&&(d.orientation==="horizontal"?(b===0&&d.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},c.animate),b===1&&d.range[e?"animate":"css"]({width:f-h+"%"},{queue:!1,duration:c.animate})):(b===0&&d.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},c.animate),b===1&&d.range[e?"animate":"css"]({height:f-h+"%"},{queue:!1,duration:c.animate}))),h=f}):(i=this.value(),j=this._valuemin(),k=this._valuemax(),f=k!==j?(i-j)/(k-j)*100:0,g[d.orientation==="horizontal"?"left":"bottom"]=f+"%",this.handle.stop(1,1)[e?"animate":"css"](g,c.animate),b==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[e?"animate":"css"]({width:f+"%"},c.animate),b==="max"&&this.orientation==="horizontal"&&this.range[e?"animate":"css"]({width:100-f+"%"},{queue:!1,duration:c.animate}),b==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},c.animate),b==="max"&&this.orientation==="vertical"&&this.range[e?"animate":"css"]({height:100-f+"%"},{queue:!1,duration:c.animate}))}}),a.extend(a.ui.slider,{version:"1.8.24"})}(jquery),function(a,b){function e(){return++c}function f(){return++d}var c=0,d=0;a.widget("ui.tabs",{options:{add:null,ajaxoptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:"click",fx:null,idprefix:"ui-tabs-",load:null,paneltemplate:"
",remove:null,select:null,show:null,spinner:"loading…",tabtemplate:"
  • #{label}
  • "},_create:function(){this._tabify(!0)},_setoption:function(a,b){if(a=="selected"){if(this.options.collapsible&&b==this.options.selected)return;this.select(b)}else this.options[a]=b,this._tabify()},_tabid:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uffff-]/g,"")||this.options.idprefix+e()},_sanitizeselector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+f());return a.cookie.apply(null,[b].concat(a.makearray(arguments)))},_ui:function(a,b){return{tab:a,panel:b,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeclass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removedata("label.tabs")})},_tabify:function(c){function m(b,c){b.css("display",""),!a.support.opacity&&c.opacity&&b[0].style.removeattribute("filter")}var d=this,e=this.options,f=/^#.+/;this.list=this.element.find("ol,ul").eq(0),this.lis=a(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return a("a",this)[0]}),this.panels=a([]),this.anchors.each(function(b,c){var g=a(c).attr("href"),h=g.split("#")[0],i;h&&(h===location.tostring().split("#")[0]||(i=a("base")[0])&&h===i.href)&&(g=c.hash,c.href=g);if(f.test(g))d.panels=d.panels.add(d.element.find(d._sanitizeselector(g)));else if(g&&g!=="#"){a.data(c,"href.tabs",g),a.data(c,"load.tabs",g.replace(/#.*$/,""));var j=d._tabid(c);c.href="#"+j;var k=d.element.find("#"+j);k.length||(k=a(e.paneltemplate).attr("id",j).addclass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertafter(d.panels[b-1]||d.list),k.data("destroy.tabs",!0)),d.panels=d.panels.add(k)}else e.disabled.push(b)}),c?(this.element.addclass("ui-tabs ui-widget ui-widget-content ui-corner-all"),this.list.addclass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addclass("ui-state-default ui-corner-top"),this.panels.addclass("ui-tabs-panel ui-widget-content ui-corner-bottom"),e.selected===b?(location.hash&&this.anchors.each(function(a,b){if(b.hash==location.hash)return e.selected=a,!1}),typeof e.selected!="number"&&e.cookie&&(e.selected=parseint(d._cookie(),10)),typeof e.selected!="number"&&this.lis.filter(".ui-tabs-selected").length&&(e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),e.selected=e.selected||(this.lis.length?0:-1)):e.selected===null&&(e.selected=-1),e.selected=e.selected>=0&&this.anchors[e.selected]||e.selected<0?e.selected:0,e.disabled=a.unique(e.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(a,b){return d.lis.index(a)}))).sort(),a.inarray(e.selected,e.disabled)!=-1&&e.disabled.splice(a.inarray(e.selected,e.disabled),1),this.panels.addclass("ui-tabs-hide"),this.lis.removeclass("ui-tabs-selected ui-state-active"),e.selected>=0&&this.anchors.length&&(d.element.find(d._sanitizeselector(d.anchors[e.selected].hash)).removeclass("ui-tabs-hide"),this.lis.eq(e.selected).addclass("ui-tabs-selected ui-state-active"),d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[e.selected],d.element.find(d._sanitizeselector(d.anchors[e.selected].hash))[0]))}),this.load(e.selected)),a(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs"),d.lis=d.anchors=d.panels=null})):e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[e.collapsible?"addclass":"removeclass"]("ui-tabs-collapsible"),e.cookie&&this._cookie(e.selected,e.cookie);for(var g=0,h;h=this.lis[g];g++)a(h)[a.inarray(g,e.disabled)!=-1&&!a(h).hasclass("ui-tabs-selected")?"addclass":"removeclass"]("ui-state-disabled");e.cache===!1&&this.anchors.removedata("cache.tabs"),this.lis.add(this.anchors).unbind(".tabs");if(e.event!=="mouseover"){var i=function(a,b){b.is(":not(.ui-state-disabled)")&&b.addclass("ui-state-"+a)},j=function(a,b){b.removeclass("ui-state-"+a)};this.lis.bind("mouseover.tabs",function(){i("hover",a(this))}),this.lis.bind("mouseout.tabs",function(){j("hover",a(this))}),this.anchors.bind("focus.tabs",function(){i("focus",a(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var k,l;e.fx&&(a.isarray(e.fx)?(k=e.fx[0],l=e.fx[1]):k=l=e.fx);var n=l?function(b,c){a(b).closest("li").addclass("ui-tabs-selected ui-state-active"),c.hide().removeclass("ui-tabs-hide").animate(l,l.duration||"normal",function(){m(c,l),d._trigger("show",null,d._ui(b,c[0]))})}:function(b,c){a(b).closest("li").addclass("ui-tabs-selected ui-state-active"),c.removeclass("ui-tabs-hide"),d._trigger("show",null,d._ui(b,c[0]))},o=k?function(a,b){b.animate(k,k.duration||"normal",function(){d.lis.removeclass("ui-tabs-selected ui-state-active"),b.addclass("ui-tabs-hide"),m(b,k),d.element.dequeue("tabs")})}:function(a,b,c){d.lis.removeclass("ui-tabs-selected ui-state-active"),b.addclass("ui-tabs-hide"),d.element.dequeue("tabs")};this.anchors.bind(e.event+".tabs",function(){var b=this,c=a(b).closest("li"),f=d.panels.filter(":not(.ui-tabs-hide)"),g=d.element.find(d._sanitizeselector(b.hash));if(c.hasclass("ui-tabs-selected")&&!e.collapsible||c.hasclass("ui-state-disabled")||c.hasclass("ui-state-processing")||d.panels.filter(":animated").length||d._trigger("select",null,d._ui(this,g[0]))===!1)return this.blur(),!1;e.selected=d.anchors.index(this),d.abort();if(e.collapsible){if(c.hasclass("ui-tabs-selected"))return e.selected=-1,e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){o(b,f)}).dequeue("tabs"),this.blur(),!1;if(!f.length)return e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this)),this.blur(),!1}e.cookie&&d._cookie(e.selected,e.cookie);if(g.length)f.length&&d.element.queue("tabs",function(){o(b,f)}),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this));else throw"jquery ui tabs: mismatching fragment identifier.";a.browser.msie&&this.blur()}),this.anchors.bind("click.tabs",function(){return!1})},_getindex:function(a){return typeof a=="string"&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},destroy:function(){var b=this.options;return this.abort(),this.element.unbind(".tabs").removeclass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removedata("tabs"),this.list.removeclass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.anchors.each(function(){var b=a.data(this,"href.tabs");b&&(this.href=b);var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(a,b){c.removedata(b+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeclass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}),b.cookie&&this._cookie(null,b.cookie),this},add:function(c,d,e){e===b&&(e=this.anchors.length);var f=this,g=this.options,h=a(g.tabtemplate.replace(/#\{href\}/g,c).replace(/#\{label\}/g,d)),i=c.indexof("#")?this._tabid(a("a",h)[0]):c.replace("#","");h.addclass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var j=f.element.find("#"+i);return j.length||(j=a(g.paneltemplate).attr("id",i).data("destroy.tabs",!0)),j.addclass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),e>=this.lis.length?(h.appendto(this.list),j.appendto(this.list[0].parentnode)):(h.insertbefore(this.lis[e]),j.insertbefore(this.panels[e])),g.disabled=a.map(g.disabled,function(a,b){return a>=e?++a:a}),this._tabify(),this.anchors.length==1&&(g.selected=0,h.addclass("ui-tabs-selected ui-state-active"),j.removeclass("ui-tabs-hide"),this.element.queue("tabs",function(){f._trigger("show",null,f._ui(f.anchors[0],f.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[e],this.panels[e])),this},remove:function(b){b=this._getindex(b);var c=this.options,d=this.lis.eq(b).remove(),e=this.panels.eq(b).remove();return d.hasclass("ui-tabs-selected")&&this.anchors.length>1&&this.select(b+(b+1=b?--a:a}),this._tabify(),this._trigger("remove",null,this._ui(d.find("a")[0],e[0])),this},enable:function(b){b=this._getindex(b);var c=this.options;if(a.inarray(b,c.disabled)==-1)return;return this.lis.eq(b).removeclass("ui-state-disabled"),c.disabled=a.grep(c.disabled,function(a,c){return a!=b}),this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b])),this},disable:function(a){a=this._getindex(a);var b=this,c=this.options;return a!=c.selected&&(this.lis.eq(a).addclass("ui-state-disabled"),c.disabled.push(a),c.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))),this},select:function(a){a=this._getindex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;return this.anchors.eq(a).trigger(this.options.event+".tabs"),this},load:function(b){b=this._getindex(b);var c=this,d=this.options,e=this.anchors.eq(b)[0],f=a.data(e,"load.tabs");this.abort();if(!f||this.element.queue("tabs").length!==0&&a.data(e,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(b).addclass("ui-state-processing");if(d.spinner){var g=a("span",e);g.data("label.tabs",g.html()).html(d.spinner)}return this.xhr=a.ajax(a.extend({},d.ajaxoptions,{url:f,success:function(f,g){c.element.find(c._sanitizeselector(e.hash)).html(f),c._cleanup(),d.cache&&a.data(e,"cache.tabs",!0),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxoptions.success(f,g)}catch(h){}},error:function(a,f,g){c._cleanup(),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxoptions.error(a,f,b,e)}catch(g){}}})),c.element.dequeue("tabs"),this},abort:function(){return this.element.queue([]),this.panels.stop(!1,!0),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup(),this},url:function(a,b){return this.anchors.eq(a).removedata("cache.tabs").data("load.tabs",b),this},length:function(){return this.anchors.length}}),a.extend(a.ui.tabs,{version:"1.8.24"}),a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(a,b){var c=this,d=this.options,e=c._rotate||(c._rotate=function(b){cleartimeout(c.rotation),c.rotation=settimeout(function(){var a=d.selected;c.select(++a0&&n>end){n=start+(n-end-1)}else if(offset<0&&n=0x2b&&n<=0x3a){dec+=decryptcharcode(n,0x2b,0x3a,offset)}else if(n>=0x40&&n<=0x5a){dec+=decryptcharcode(n,0x40,0x5a,offset)}else if(n>=0x61&&n<=0x7a){dec+=decryptcharcode(n,0x61,0x7a,offset)}else dec+=enc.charat(i)};return dec} function linkto_uncryptmailto(s){location.href=decryptstring(s,-1)}; (function(s,l,d,t){var m=d(s),q=d(l),a=d.fancybox=function(){a.open.apply(this,arguments)},u=!1,k=l.createtouch!==t,o=function(a){return"string"===d.type(a)},n=function(b,c){c&&o(b)&&0
    ',image:'',iframe:'",swf:'',error:'

    the requested content cannot be loaded.
    please try again later.

    ',closebtn:'
    ',next:'',prev:''},openeffect:"fade",openspeed:300,openeasing:"swing",openopacity:!0,openmethod:"zoomin",closeeffect:"fade",closespeed:300,closeeasing:"swing",closeopacity:!0,closemethod:"zoomout",nexteffect:"elastic",nextspeed:300,nexteasing:"swing",nextmethod:"changein",preveffect:"elastic",prevspeed:300,preveasing:"swing",prevmethod:"changeout",helpers:{overlay:{speedin:0,speedout:300,opacity:0.8,css:{cursor:"pointer"},closeclick:!0},title:{type:"float"}}},group:{},opts:{},coming:null,current:null,isopen:!1,isopened:!1,player:{timer:null,isactive:!1},ajaxload:null,imgpreload:null,transitions:{},helpers:{},open:function(b,c){a.close(!0);b&&!d.isarray(b)&&(b=b instanceof d?d(b).get():[b]);a.isactive=!0;a.opts=d.extend(!0,{},a.defaults,c);d.isplainobject(c)&&c.keys!==t&&(a.opts.keys=c.keys?d.extend({},a.defaults.keys,c.keys):!1);a.group=b;a._start(a.opts.index||0)},cancel:function(){a.coming&&!1===a.trigger("oncancel")||(a.coming=null,a.hideloading(),a.ajaxload&&a.ajaxload.abort(),a.ajaxload=null,a.imgpreload&&(a.imgpreload.onload=a.imgpreload.onabort=a.imgpreload.onerror=null))},close:function(b){a.cancel();a.current&&!1!==a.trigger("beforeclose")&&(a.unbindevents(),!a.isopen||b&&!0===b[0]?(d(".fancybox-wrap").stop().trigger("onreset").remove(),a._afterzoomout()):(a.isopen=a.isopened=!1,d(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0).removeclass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.closemethod]()))},play:function(b){var c=function(){cleartimeout(a.player.timer)},e=function(){c();a.current&&a.player.isactive&&(a.player.timer=settimeout(a.next,a.current.playspeed))},f=function(){c();d("body").unbind(".player");a.player.isactive=!1;a.trigger("onplayend")};if(a.player.isactive||b&&!1===b[0]){f()}else if(a.current&&(a.current.loop||a.current.index=a.group.length?b=0:0>b&&(b=a.group.length-1)),a.group[b]!==t&&(a.cancel(),a._start(b)))},reposition:function(b,c){var e;a.isopen&&(e=a._getposition(c),b&&"scroll"===b.type?(delete e.position,a.wrap.stop(!0,!0).animate(e,200)):a.wrap.css(e))},update:function(b){a.isopen&&(u||settimeout(function(){var c=a.current,e=!b||b&&"orientationchange"===b.type;if(u&&(u=!1,c)){if(!b||"scroll"!==b.type||e)c.autosize&&"iframe"!==c.type&&(a.inner.height("auto"),c.height=a.inner.height()),(c.autoresize||e)&&a._setdimension(),c.cangrow&&"iframe"!==c.type&&a.inner.height("auto");(c.autocenter||e)&&a.reposition(b);a.trigger("onupdate")}},200),u=!0)},toggle:function(){a.isopen&&(a.current.fittoview=!a.current.fittoview,a.update())},hideloading:function(){q.unbind("keypress.fb");d("#fancybox-loading").remove()},showloading:function(){a.hideloading();q.bind("keypress.fb",function(b){27===b.keycode&&(b.preventdefault(),a.cancel())});d('
    ').click(a.cancel).appendto("body")},getviewport:function(){return{x:m.scrollleft(),y:m.scrolltop(),w:k&&s.innerwidth?s.innerwidth:m.width(),h:k&&s.innerheight?s.innerheight:m.height()}},unbindevents:function(){a.wrap&&a.wrap.unbind(".fb");q.unbind(".fb");m.unbind(".fb")},bindevents:function(){var b=a.current,c=b.keys;b&&(m.bind("resize.fb orientationchange.fb"+(b.autocenter&&!b.fixed?" scroll.fb":""),a.update),c&&q.bind("keydown.fb",function(b){var f;f=b.target||b.srcelement;if(!b.ctrlkey&&!b.altkey&&!b.shiftkey&&!b.metakey&&(!f||!f.type&&!d(f).is("[contenteditable]")))f=b.keycode,-1b.length))for(i=1;i<=h;i+=1)if(f=b[(c.index+i)%e],g=f.href||d(f).attr("href")||f,"image"===f.type||a.isimage(g))(new image()).src=g},_afterload:function(){a.hideloading();!a.coming||!1===a.trigger("afterload",a.current)?a.coming=!1:(a.isopened?(d(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0).removeclass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.prevmethod]()):(d(".fancybox-wrap").stop().trigger("onreset").remove(),a.trigger("afterclose")),a.unbindevents(),a.isopen=!1,a.current=a.coming,a.wrap=d(a.current.tpl.wrap).addclass("fancybox-"+(k?"mobile":"desktop")+" fancybox-type-"+a.current.type+" fancybox-tmp "+a.current.wrapcss).appendto("body"),a.skin=d(".fancybox-skin",a.wrap).css("padding",n(a.current.padding)),a.outer=d(".fancybox-outer",a.wrap),a.inner=d(".fancybox-inner",a.wrap),a._setcontent())},_setcontent:function(){var b=a.current,c=b.content,e=b.type,f=b.minwidth,g=b.minheight,i=b.maxwidth,h=b.maxheight;switch(e){case"inline":case"ajax":case"html":b.selector?c=d("
    ").html(c).find(b.selector):c instanceof d&&(c.parent().hasclass("fancybox-inner")&&c.parents(".fancybox-wrap").unbind("onreset"),c=c.show().detach(),d(a.wrap).bind("onreset",function(){c.appendto("body").hide()}));b.autosize&&(f=d('
    ').appendto("body").css({minwidth:n(f,"w"),minheight:n(g,"h"),maxwidth:n(i,"w"),maxheight:n(h,"h")}).append(c),b.width=f.width(),b.height=f.height(),f.width(a.current.width),f.height()>b.height&&(f.width(b.width+1),b.width=f.width(),b.height=f.height()),c=f.contents().detach(),f.remove());break;case"image":c=b.tpl.image.replace("{href}",b.href);b.aspectratio=!0;break;case"swf":c=b.tpl.swf.replace(/\{width\}/g,b.width).replace(/\{height\}/g,b.height).replace(/\{href\}/g,b.href);break;case"iframe":c=d(b.tpl.iframe.replace("{rnd}",(new date()).gettime())).attr("scrolling",b.scrolling).attr("src",b.href),b.scrolling=k?"scroll":"auto"};if("image"===e||"swf"===e)b.autosize=!1,b.scrolling="visible";"iframe"===e&&b.autosize?(a.showloading(),a._setdimension(),a.inner.css("overflow",b.scrolling),c.bind({oncancel:function(){d(this).unbind();a._afterzoomout()},load:function(){a.hideloading();try{this.contentwindow.document.location&&(a.current.height=d(this).contents().find("body").height())}catch(b){a.current.autosize=!1};a[a.isopen?"_afterzoomin":"_beforeshow"]()}}).appendto(a.inner)):(a.inner.append(c),a._beforeshow())},_beforeshow:function(){a.coming=null;a.trigger("beforeshow");a._setdimension();a.wrap.hide().removeclass("fancybox-tmp");a.bindevents();a._preloadimages();a.transitions[a.isopened?a.current.nextmethod:a.current.openmethod]()},_setdimension:function(){var b=a.wrap,c=a.inner,e=a.current,f=a.getviewport(),g=e.margin,i=2*e.padding,h=e.width,j=e.height,r=e.maxwidth+i,k=e.maxheight+i,l=e.minwidth+i,m=e.minheight+i,p;f.w-=g[1]+g[3];f.h-=g[0]+g[2];o(h)&&0r&&(h=r,j=(h-i)/g+i),j>k&&(j=k,h=(j-i)*g+i),hr||p>k)for(;(h>r||p>k)&&h>l&&p>m;)j-=10,e.aspectratio?(h=math.round((j-i)*g+i),hm&&jf.w||p>f.h)&&h>l&&j>m)e.canshrink=!0;a.innerspace=p-i-c.height()},_getposition:function(b){var c=a.current,e=a.getviewport(),f=c.margin,d=a.wrap.width()+f[1]+f[3],i=a.wrap.height()+f[0]+f[2],h={position:"absolute",top:f[0]+e.y,left:f[3]+e.x};c.autocenter&&c.fixed&&!b&&i<=e.h&&d<=e.w&&(h={position:"fixed",top:f[0],left:f[3]});h.top=n(math.max(h.top,h.top+(e.h-i)*c.topratio));h.left=n(math.max(h.left,h.left+0.5*(e.w-d)));return h},_afterzoomin:function(){var b=a.current,c=b?b.scrolling:"no";if(b&&(a.isopen=a.isopened=!0,a.wrap.addclass("fancybox-opened"),a.inner.css("overflow","yes"===c?"scroll":"no"===c?"hidden":c),a.trigger("aftershow"),a.update(),(b.closeclick||b.nextclick)&&a.inner.css("cursor","pointer").bind("click.fb",function(c){if(!d(c.target).is("a")&&!d(c.target).parent().is("a"))a[b.closeclick?"close":"next"]()}),b.closebtn&&d(b.tpl.closebtn).appendto(a.skin).bind("click.fb",a.close),b.arrows&&1c.end&&(g=1-g),d-=a.innerspace*g),a.inner[e](d)},zoomin:function(){var b=a.wrap,c=a.current,e=c.openeffect,f="elastic"===e,g=d.extend({},c.dim,a._getposition(f)),i=d.extend({opacity:1},g);delete i.position;f?(g=this.getorigposition(),c.openopacity&&(g.opacity=0),a.outer.add(a.inner).width("auto").height("auto")):"fade"===e&&(g.opacity=0);b.css(g).show().animate(i,{duration:"none"===e?0:c.openspeed,easing:c.openeasing,step:f?this.step:null,complete:a._afterzoomin})},zoomout:function(){var b=a.wrap,c=a.current,d=c.openeffect,f="elastic"===d,g={opacity:0};f&&("fixed"===b.css("position")&&b.css(a._getposition(!0)),g=this.getorigposition(),c.closeopacity&&(g.opacity=0));b.animate(g,{duration:"none"===d?0:c.closespeed,easing:c.closeeasing,step:f?this.step:null,complete:a._afterzoomout})},changein:function(){var b=a.wrap,c=a.current,d=c.nexteffect,f="elastic"===d,g=a._getposition(f),i={opacity:1};g.opacity=0;f&&(g.top=n(parseint(g.top,10)-200),i.top="+=200px");b.css(g).show().animate(i,{duration:"none"===d?0:c.nextspeed,easing:c.nexteasing,complete:a._afterzoomin})},changeout:function(){var b=a.wrap,c=a.current,e=c.preveffect,f={opacity:0};b.removeclass("fancybox-opened");"elastic"===e&&(f.top="+=200px");b.animate(f,{duration:"none"===e?0:c.prevspeed,easing:c.preveasing,complete:function(){d(this).trigger("onreset").remove()}})}};a.helpers.overlay={overlay:null,update:function(){var a,c;this.overlay.width("100%").height("100%");d.browser.msie||k?(a=math.max(l.documentelement.scrollwidth,l.body.scrollwidth),c=math.max(l.documentelement.offsetwidth,l.body.offsetwidth),a=a
    ').css(b.css).appendto("body"),b.closeclick&&this.overlay.bind("click.fb",a.close),a.current.fixed&&!k?this.overlay.addclass("overlay-fixed"):(this.update(),this.onupdate=function(){this.update()}),this.overlay.fadeto(b.speedin,b.opacity))},afterclose:function(a){this.overlay&&this.overlay.fadeout(a.speedout||0,function(){d(this).remove()});this.overlay=null}};a.helpers.title={beforeshow:function(b){var c;if(c=a.current.title)c=d('
    '+c+"
    ").appendto("body"),"float"===b.type&&(c.width(c.width()),c.wrapinner(''),a.current.margin[2]+=math.abs(parseint(c.css("margin-bottom"),10))),c.appendto("over"===b.type?a.inner:"outside"===b.type?a.wrap:a.skin)}};d.fn.fancybox=function(b){var c=d(this),e=this.selector||"",f,g=function(g){var h=this,j=f,k;!g.ctrlkey&&!g.altkey&&!g.shiftkey&&!g.metakey&&!d(h).is(".fancybox-wrap")&&(g.preventdefault(),g=b.groupattr||"data-fancybox-group",k=d(h).attr(g),k||(g="rel",k=h[g]),k&&""!==k&&"nofollow"!==k&&(h=e.length?d(e):c,h=h.filter("["+g+'="'+k+'"]'),j=h.index(this)),b.index=j,a.open(h,b))},b=b||{};f=b.index||0;e?q.undelegate(e,"click.fb-start").delegate(e,"click.fb-start",g):c.unbind("click.fb-start").bind("click.fb-start",g);return this};d(l).ready(function(){a.defaults.fixed=d.support.fixedposition||!(d.browser.msie&&6>=d.browser.version)&&!k})})(window,document,jquery); /* * placeholder plugin for jquery * --- * copyright 2010, daniel stocks (http://webcloud.se) * released under the mit, bsd, and gpl licenses. */ (function(b){function d(a){this.input=a;a.attr("type")=="password"&&this.handlepassword();b(a[0].form).submit(function(){if(a.hasclass("placeholder")&&a[0].value==a.attr("placeholder"))a[0].value=""})}d.prototype={show:function(a){if(this.input[0].value===""||a&&this.valueisplaceholder()){if(this.ispassword)try{this.input[0].setattribute("type","text")}catch(b){this.input.before(this.fakepassword.show()).hide()}this.input.addclass("placeholder");this.input[0].value=this.input.attr("placeholder")}}, hide:function(){if(this.valueisplaceholder()&&this.input.hasclass("placeholder")&&(this.input.removeclass("placeholder"),this.input[0].value="",this.ispassword)){try{this.input[0].setattribute("type","password")}catch(a){}this.input.show();this.input[0].focus()}},valueisplaceholder:function(){return this.input[0].value==this.input.attr("placeholder")},handlepassword:function(){var a=this.input;a.attr("realtype","password");this.ispassword=!0;if(b.browser.msie&&a[0].outerhtml){var c=b(a[0].outerhtml.replace(/type=(['"])?password\1/gi, "type=$1text$1"));this.fakepassword=c.val(a.attr("placeholder")).addclass("placeholder").focus(function(){a.trigger("focus");b(this).hide()});b(a[0].form).submit(function(){c.remove();a.show()})}}};var e=!!("placeholder"in document.createelement("input"));b.fn.placeholder=function(){return e?this:this.each(function(){var a=b(this),c=new d(a);c.show(!0);a.focus(function(){c.hide()});a.blur(function(){c.show(!1)});b.browser.msie&&(b(window).load(function(){a.val()&&a.removeclass("placeholder");c.show(!0)}), a.focus(function(){if(this.value==""){var a=this.createtextrange();a.collapse(!0);a.movestart("character",0);a.select()}}))})}})(jquery); // chosen, a select box enhancer for jquery and protoype // by patrick filler for harvest, http://getharvest.com // // version 0.9.8 // full source at https://github.com/harvesthq/chosen // copyright (c) 2011 harvest http://getharvest.com // mit license, https://github.com/harvesthq/chosen/blob/master/license.md // this file is generated by `cake build`, do not edit it by hand. (function(){var selectparser;selectparser=function(){function selectparser(){this.options_index=0,this.parsed=[]}return selectparser.prototype.add_node=function(child){return child.nodename.touppercase()==="optgroup"?this.add_group(child):this.add_option(child)},selectparser.prototype.add_group=function(group){var group_position,option,_i,_len,_ref,_results;group_position=this.parsed.length,this.parsed.push({array_index:group_position,group:!0,label:group.label,children:0,disabled:group.disabled}),_ref=group.childnodes,_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++)option=_ref[_i],_results.push(this.add_option(option,group_position,group.disabled));return _results},selectparser.prototype.add_option=function(option,group_position,group_disabled){if(option.nodename.touppercase()==="option")return option.text!==""?(group_position!=null&&(this.parsed[group_position].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:option.value,text:option.text,html:option.innerhtml,selected:option.selected,disabled:group_disabled===!0?group_disabled:option.disabled,group_array_index:group_position,classes:option.classname,style:option.style.csstext})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},selectparser}(),selectparser.select_to_array=function(select){var child,parser,_i,_len,_ref;parser=new selectparser,_ref=select.childnodes;for(_i=0,_len=_ref.length;_i<_len;_i++)child=_ref[_i],parser.add_node(child);return parser.parsed},this.selectparser=selectparser}).call(this),function(){var abstractchosen,root;root=this,abstractchosen=function(){function abstractchosen(form_field,options){this.form_field=form_field,this.options=options!=null?options:{},this.set_default_values(),this.is_multiple=this.form_field.multiple,this.set_default_text(),this.setup(),this.set_up_html(),this.register_observers(),this.finish_setup()}return abstractchosen.prototype.set_default_values=function(){var _this=this;return this.click_test_action=function(evt){return _this.test_active_click(evt)},this.activate_action=function(evt){return _this.activate_field(evt)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.result_single_selected=null,this.allow_single_deselect=this.options.allow_single_deselect!=null&&this.form_field.options[0]!=null&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.search_contains=this.options.search_contains||!1,this.choices=0,this.single_backstroke_delete=this.options.single_backstroke_delete||!1,this.max_selected_options=this.options.max_selected_options||infinity},abstractchosen.prototype.set_default_text=function(){return this.form_field.getattribute("data-placeholder")?this.default_text=this.form_field.getattribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||"select some options":this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||"select an option",this.results_none_found=this.form_field.getattribute("data-no_results_text")||this.options.no_results_text||"no results match"},abstractchosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},abstractchosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},abstractchosen.prototype.input_focus=function(evt){var _this=this;if(!this.active_field)return settimeout(function(){return _this.container_mousedown()},50)},abstractchosen.prototype.input_blur=function(evt){var _this=this;if(!this.mouse_on_container)return this.active_field=!1,settimeout(function(){return _this.blur_test()},100)},abstractchosen.prototype.result_add_option=function(option){var classes,style;return option.disabled?"":(option.dom_id=this.container_id+"_o_"+option.array_index,classes=option.selected&&this.is_multiple?[]:["active-result"],option.selected&&classes.push("result-selected"),option.group_array_index!=null&&classes.push("group-option"),option.classes!==""&&classes.push(option.classes),style=option.style.csstext!==""?' style="'+option.style+'"':"",'
  • "+option.html+"
  • ")},abstractchosen.prototype.results_update_field=function(){return this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.result_single_selected=null,this.results_build()},abstractchosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},abstractchosen.prototype.results_search=function(evt){return this.results_showing?this.winnow_results():this.results_show()},abstractchosen.prototype.keyup_checker=function(evt){var stroke,_ref;stroke=(_ref=evt.which)!=null?_ref:evt.keycode,this.search_field_scale();switch(stroke){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:evt.preventdefault();if(this.results_showing)return this.result_select(evt);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},abstractchosen.prototype.generate_field_id=function(){var new_id;return new_id=this.generate_random_id(),this.form_field.id=new_id,new_id},abstractchosen.prototype.generate_random_char=function(){var chars,newchar,rand;return chars="0123456789abcdefghijklmnopqrstuvwxyz",rand=math.floor(math.random()*chars.length),newchar=chars.substring(rand,rand+1)},abstractchosen}(),root.abstractchosen=abstractchosen}.call(this),function(){var $,chosen,get_side_border_padding,root,__hasprop=object.prototype.hasownproperty,__extends=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)__hasprop.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child};root=this,$=jquery,$.fn.extend({chosen:function(options){return $.browser.msie&&($.browser.version==="6.0")?this:this.each(function(input_field){var $this;$this=$(this);if(!$this.hasclass("chzn-done"))return $this.data("chosen",new chosen(this,options))})}}),chosen=function(_super){function chosen(){chosen.__super__.constructor.apply(this,arguments)}return __extends(chosen,_super),chosen.prototype.setup=function(){return this.form_field_jq=$(this.form_field),this.current_value=this.form_field_jq.val(),this.is_rtl=this.form_field_jq.hasclass("chzn-rtl")},chosen.prototype.finish_setup=function(){return this.form_field_jq.addclass("chzn-done")},chosen.prototype.set_up_html=function(){var container_div,dd_top,dd_width,sf_width;return this.container_id=this.form_field.id.length?this.form_field.id.replace(/[^\w]/g,"_"):this.generate_field_id(),this.container_id+="_chzn",this.f_width=this.form_field_jq.outerwidth(),container_div=$("
    ",{id:this.container_id,"class":"chzn-container"+(this.is_rtl?" chzn-rtl":""),style:"width: "+this.f_width+"px;"}),this.is_multiple?container_div.html('
      '):container_div.html(''+this.default_text+'
        '),this.form_field_jq.hide().after(container_div),this.container=$("#"+this.container_id),this.container.addclass("chzn-container-"+(this.is_multiple?"multi":"single")),this.dropdown=this.container.find("div.chzn-drop").first(),dd_top=this.container.height(),dd_width=this.f_width-get_side_border_padding(this.dropdown),this.dropdown.css({width:dd_width+"px",top:dd_top+"px"}),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chzn-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chzn-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chzn-search").first(),this.selected_item=this.container.find(".chzn-single").first(),sf_width=dd_width-get_side_border_padding(this.search_container)-get_side_border_padding(this.search_field),this.search_field.css({width:sf_width+"px"})),this.results_build(),this.set_tab_index(),this.form_field_jq.trigger("liszt:ready",{chosen:this})},chosen.prototype.register_observers=function(){var _this=this;return this.container.mousedown(function(evt){return _this.container_mousedown(evt)}),this.container.mouseup(function(evt){return _this.container_mouseup(evt)}),this.container.mouseenter(function(evt){return _this.mouse_enter(evt)}),this.container.mouseleave(function(evt){return _this.mouse_leave(evt)}),this.search_results.mouseup(function(evt){return _this.search_results_mouseup(evt)}),this.search_results.mouseover(function(evt){return _this.search_results_mouseover(evt)}),this.search_results.mouseout(function(evt){return _this.search_results_mouseout(evt)}),this.form_field_jq.bind("liszt:updated",function(evt){return _this.results_update_field(evt)}),this.form_field_jq.bind("liszt:activate",function(evt){return _this.activate_field(evt)}),this.form_field_jq.bind("liszt:open",function(evt){return _this.container_mousedown(evt)}),this.search_field.blur(function(evt){return _this.input_blur(evt)}),this.search_field.keyup(function(evt){return _this.keyup_checker(evt)}),this.search_field.keydown(function(evt){return _this.keydown_checker(evt)}),this.is_multiple?(this.search_choices.click(function(evt){return _this.choices_click(evt)}),this.search_field.focus(function(evt){return _this.input_focus(evt)})):this.container.click(function(evt){return evt.preventdefault()})},chosen.prototype.search_field_disabled=function(){this.is_disabled=this.form_field_jq[0].disabled;if(this.is_disabled)return this.container.addclass("chzn-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus",this.activate_action),this.close_field();this.container.removeclass("chzn-disabled"),this.search_field[0].disabled=!1;if(!this.is_multiple)return this.selected_item.bind("focus",this.activate_action)},chosen.prototype.container_mousedown=function(evt){var target_closelink;if(!this.is_disabled)return target_closelink=evt!=null?$(evt.target).hasclass("search-choice-close"):!1,evt&&evt.type==="mousedown"&&!this.results_showing&&evt.stoppropagation(),!this.pending_destroy_click&&!target_closelink?(this.active_field?!this.is_multiple&&evt&&($(evt.target)[0]===this.selected_item[0]||$(evt.target).parents("a.chzn-single").length)&&(evt.preventdefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),$(document).click(this.click_test_action),this.results_show()),this.activate_field()):this.pending_destroy_click=!1},chosen.prototype.container_mouseup=function(evt){if(evt.target.nodename==="abbr"&&!this.is_disabled)return this.results_reset(evt)},chosen.prototype.blur_test=function(evt){if(!this.active_field&&this.container.hasclass("chzn-container-active"))return this.close_field()},chosen.prototype.close_field=function(){return $(document).unbind("click",this.click_test_action),this.is_multiple||(this.selected_item.attr("tabindex",this.search_field.attr("tabindex")),this.search_field.attr("tabindex",-1)),this.active_field=!1,this.results_hide(),this.container.removeclass("chzn-container-active"),this.winnow_results_clear(),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},chosen.prototype.activate_field=function(){return!this.is_multiple&&!this.active_field&&(this.search_field.attr("tabindex",this.selected_item.attr("tabindex")),this.selected_item.attr("tabindex",-1)),this.container.addclass("chzn-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},chosen.prototype.test_active_click=function(evt){return $(evt.target).parents("#"+this.container_id).length?this.active_field=!0:this.close_field()},chosen.prototype.results_build=function(){var content,data,_i,_len,_ref;this.parsing=!0,this.results_data=root.selectparser.select_to_array(this.form_field),this.is_multiple&&this.choices>0?(this.search_choices.find("li.search-choice").remove(),this.choices=0):this.is_multiple||(this.selected_item.addclass("chzn-default").find("span").text(this.default_text),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?this.container.addclass("chzn-container-single-nosearch"):this.container.removeclass("chzn-container-single-nosearch")),content="",_ref=this.results_data;for(_i=0,_len=_ref.length;_i<_len;_i++)data=_ref[_i],data.group?content+=this.result_add_group(data):data.empty||(content+=this.result_add_option(data),data.selected&&this.is_multiple?this.choice_build(data):data.selected&&!this.is_multiple&&(this.selected_item.removeclass("chzn-default").find("span").text(data.text),this.allow_single_deselect&&this.single_deselect_control_build()));return this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.search_results.html(content),this.parsing=!1},chosen.prototype.result_add_group=function(group){return group.disabled?"":(group.dom_id=this.container_id+"_g_"+group.array_index,'
      • '+$("
        ").text(group.label).html()+"
      • ")},chosen.prototype.result_do_highlight=function(el){var high_bottom,high_top,maxheight,visible_bottom,visible_top;if(el.length){this.result_clear_highlight(),this.result_highlight=el,this.result_highlight.addclass("highlighted"),maxheight=parseint(this.search_results.css("maxheight"),10),visible_top=this.search_results.scrolltop(),visible_bottom=maxheight+visible_top,high_top=this.result_highlight.position().top+this.search_results.scrolltop(),high_bottom=high_top+this.result_highlight.outerheight();if(high_bottom>=visible_bottom)return this.search_results.scrolltop(high_bottom-maxheight>0?high_bottom-maxheight:0);if(high_top'+item.html+"":html='
      • '+item.html+'
      • ',this.search_container.before(html),link=$("#"+choice_id).find("a").first(),link.click(function(evt){return _this.choice_destroy_link_click(evt)}))},chosen.prototype.choice_destroy_link_click=function(evt){return evt.preventdefault(),this.is_disabled?evt.stoppropagation:(this.pending_destroy_click=!0,this.choice_destroy($(evt.target)))},chosen.prototype.choice_destroy=function(link){if(this.result_deselect(link.attr("rel")))return this.choices-=1,this.show_search_field_default(),this.is_multiple&&this.choices>0&&this.search_field.val().length<1&&this.results_hide(),link.parents("li").first().remove()},chosen.prototype.results_reset=function(){this.form_field.options[0].selected=!0,this.selected_item.find("span").text(this.default_text),this.is_multiple||this.selected_item.addclass("chzn-default"),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change");if(this.active_field)return this.results_hide()},chosen.prototype.results_reset_cleanup=function(){return this.current_value=this.form_field_jq.val(),this.selected_item.find("abbr").remove()},chosen.prototype.result_select=function(evt){var high,high_id,item,position;if(this.result_highlight)return high=this.result_highlight,high_id=high.attr("id"),this.result_clear_highlight(),this.is_multiple?this.result_deactivate(high):(this.search_results.find(".result-selected").removeclass("result-selected"),this.result_single_selected=high,this.selected_item.removeclass("chzn-default")),high.addclass("result-selected"),position=high_id.substr(high_id.lastindexof("_")+1),item=this.results_data[position],item.selected=!0,this.form_field.options[item.options_index].selected=!0,this.is_multiple?this.choice_build(item):(this.selected_item.find("span").first().text(item.text),this.allow_single_deselect&&this.single_deselect_control_build()),(!evt.metakey||!this.is_multiple)&&this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field_jq.val()!==this.current_value)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[item.options_index].value}),this.current_value=this.form_field_jq.val(),this.search_field_scale()},chosen.prototype.result_activate=function(el){return el.addclass("active-result")},chosen.prototype.result_deactivate=function(el){return el.removeclass("active-result")},chosen.prototype.result_deselect=function(pos){var result,result_data;return result_data=this.results_data[pos],this.form_field.options[result_data.options_index].disabled?!1:(result_data.selected=!1,this.form_field.options[result_data.options_index].selected=!1,result=$("#"+this.container_id+"_o_"+pos),result.removeclass("result-selected").addclass("active-result").show(),this.result_clear_highlight(),this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[result_data.options_index].value}),this.search_field_scale(),!0)},chosen.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect&&this.selected_item.find("abbr").length<1)return this.selected_item.find("span").first().after('')},chosen.prototype.winnow_results=function(){var found,option,part,parts,regex,regexanchor,result,result_id,results,searchtext,startpos,text,zregex,_i,_j,_len,_len2,_ref;this.no_results_clear(),results=0,searchtext=this.search_field.val()===this.default_text?"":$("
        ").text($.trim(this.search_field.val())).html(),regexanchor=this.search_contains?"":"^",regex=new regexp(regexanchor+searchtext.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),zregex=new regexp(searchtext.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),_ref=this.results_data;for(_i=0,_len=_ref.length;_i<_len;_i++){option=_ref[_i];if(!option.disabled&&!option.empty)if(option.group)$("#"+option.dom_id).css("display","none");else if(!this.is_multiple||!option.selected){found=!1,result_id=option.dom_id,result=$("#"+result_id);if(regex.test(option.html))found=!0,results+=1;else if(option.html.indexof(" ")>=0||option.html.indexof("[")===0){parts=option.html.replace(/\[|\]/g,"").split(" ");if(parts.length)for(_j=0,_len2=parts.length;_j<_len2;_j++)part=parts[_j],regex.test(part)&&(found=!0,results+=1)}found?(searchtext.length?(startpos=option.html.search(zregex),text=option.html.substr(0,startpos+searchtext.length)+""+option.html.substr(startpos+searchtext.length),text=text.substr(0,startpos)+""+text.substr(startpos)):text=option.html,result.html(text),this.result_activate(result),option.group_array_index!=null&&$("#"+this.results_data[option.group_array_index].dom_id).css("display","list-item")):(this.result_highlight&&result_id===this.result_highlight.attr("id")&&this.result_clear_highlight(),this.result_deactivate(result))}}return results<1&&searchtext.length?this.no_results(searchtext):this.winnow_results_set_highlight()},chosen.prototype.winnow_results_clear=function(){var li,lis,_i,_len,_results;this.search_field.val(""),lis=this.search_results.find("li"),_results=[];for(_i=0,_len=lis.length;_i<_len;_i++)li=lis[_i],li=$(li),li.hasclass("group-result")?_results.push(li.css("display","auto")):!this.is_multiple||!li.hasclass("result-selected")?_results.push(this.result_activate(li)):_results.push(void 0);return _results},chosen.prototype.winnow_results_set_highlight=function(){var do_high,selected_results;if(!this.result_highlight){selected_results=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),do_high=selected_results.length?selected_results.first():this.search_results.find(".active-result").first();if(do_high!=null)return this.result_do_highlight(do_high)}},chosen.prototype.no_results=function(terms){var no_results_html;return no_results_html=$('
      • '+this.results_none_found+' ""
      • '),no_results_html.find("span").first().html(terms),this.search_results.append(no_results_html)},chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},chosen.prototype.keydown_arrow=function(){var first_active,next_sib;this.result_highlight?this.results_showing&&(next_sib=this.result_highlight.nextall("li.active-result").first(),next_sib&&this.result_do_highlight(next_sib)):(first_active=this.search_results.find("li.active-result").first(),first_active&&this.result_do_highlight($(first_active)));if(!this.results_showing)return this.results_show()},chosen.prototype.keyup_arrow=function(){var prev_sibs;if(!this.results_showing&&!this.is_multiple)return this.results_show();if(this.result_highlight)return prev_sibs=this.result_highlight.prevall("li.active-result"),prev_sibs.length?this.result_do_highlight(prev_sibs.first()):(this.choices>0&&this.results_hide(),this.result_clear_highlight())},chosen.prototype.keydown_backstroke=function(){var next_available_destroy;if(this.pending_backstroke)return this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke();next_available_destroy=this.search_container.siblings("li.search-choice").last();if(next_available_destroy.length&&!next_available_destroy.hasclass("search-choice-disabled"))return this.pending_backstroke=next_available_destroy,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addclass("search-choice-focus")},chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeclass("search-choice-focus"),this.pending_backstroke=null},chosen.prototype.keydown_checker=function(evt){var stroke,_ref;stroke=(_ref=evt.which)!=null?_ref:evt.keycode,this.search_field_scale(),stroke!==8&&this.pending_backstroke&&this.clear_backstroke();switch(stroke){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(evt),this.mouse_on_container=!1;break;case 13:evt.preventdefault();break;case 38:evt.preventdefault(),this.keyup_arrow();break;case 40:this.keydown_arrow()}},chosen.prototype.search_field_scale=function(){var dd_top,div,h,style,style_block,styles,w,_i,_len;if(this.is_multiple){h=0,w=0,style_block="position:absolute; left: -1000px; top: -1000px; display:none;",styles=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"];for(_i=0,_len=styles.length;_i<_len;_i++)style=styles[_i],style_block+=style+":"+this.search_field.css(style)+";";return div=$("
        ",{style:style_block}),div.text(this.search_field.val()),$("body").append(div),w=div.width()+25,div.remove(),w>this.f_width-10&&(w=this.f_width-10),this.search_field.css({width:w+"px"}),dd_top=this.container.height(),this.dropdown.css({top:dd_top+"px"})}},chosen.prototype.generate_random_id=function(){var string;string="sel"+this.generate_random_char()+this.generate_random_char()+this.generate_random_char();while($("#"+string).length>0)string+=this.generate_random_char();return string},chosen}(abstractchosen),get_side_border_padding=function(elmt){var side_border_padding;return side_border_padding=elmt.outerwidth()-elmt.width()},root.get_side_border_padding=get_side_border_padding}.call(this); /** * ezmark (minified) - a simple checkbox and radio button styling plugin. this plugin allows you to use a custom image for * checkbox or radio button. its very simple, small and easy to use. * * copyright (c) abdullah rubiyath . * released under mit license * * @author abdullah rubiyath * @version 1.0 * @date june 27, 2010 */ (function($){$.fn.ezmark=function(options){options=options||{};var defaultopt={checkboxcls:options.checkboxcls||'ez-checkbox',radiocls:options.radiocls||'ez-radio',checkedcls:options.checkedcls||'ez-checked',selectedcls:options.selectedcls||'ez-selected',hidecls:'ez-hide'};return this.each(function(){var $this=$(this);var wraptag=$this.attr('type')=='checkbox'?'
        ':'
        ';if($this.attr('type')=='checkbox'){$this.addclass(defaultopt.hidecls).wrap(wraptag).change(function(){if($(this).is(':checked')){$(this).parent().addclass(defaultopt.checkedcls);} else{$(this).parent().removeclass(defaultopt.checkedcls);}});if($this.is(':checked')){$this.parent().addclass(defaultopt.checkedcls);}} else if($this.attr('type')=='radio'){$this.addclass(defaultopt.hidecls).wrap(wraptag).change(function(){$('input[name="'+$(this).attr('name')+'"]').each(function(){if($(this).is(':checked')){$(this).parent().addclass(defaultopt.selectedcls);}else{$(this).parent().removeclass(defaultopt.selectedcls);}});});if($this.is(':checked')){$this.parent().addclass(defaultopt.selectedcls);}}});}})(jquery); (function($){$.fn.customfileinput=function(){$(this).each(function(index,el){var fileinput=$(el).addclass('customfile-input').mouseover(function(){upload.addclass('customfile-hover')}).mouseout(function(){upload.removeclass('customfile-hover')}).focus(function(){upload.addclass('customfile-focus');fileinput.data('val',fileinput.val())}).blur(function(){upload.removeclass('customfile-focus');$(el).trigger('checkchange')}).bind('disable',function(){fileinput.attr('disabled',true);upload.addclass('customfile-disabled')}).bind('enable',function(){fileinput.removeattr('disabled');upload.removeclass('customfile-disabled')}).bind('checkchange',function(){if(fileinput.val()&&fileinput.val()!=fileinput.data('val'))fileinput.trigger('change')}).bind('change',function(){var filename=$(el).val().split(/\\/).pop(),fileext='customfile-ext-'+filename.split('.').pop().tolowercase();uploadfeedback.text(filename).removeclass(uploadfeedback.data('fileext')||'').addclass(fileext).data('fileext',fileext).addclass('customfile-feedback-populated');uploadbutton.text('change')}).click(function(){fileinput.data('val',fileinput.val());settimeout(function(){fileinput.trigger('checkchange')},100)}),upload=$('
        '),uploadbutton=$('').appendto(upload),lang=$('html').attr('lang');if(lang=='de-ch'){var uploadfeedback=$('').appendto(upload)}else if(lang=='zh_cn'){var uploadfeedback=$('').appendto(upload)}else var uploadfeedback=$('').appendto(upload);if(fileinput.is('[disabled]'))fileinput.trigger('disable');upload.mousemove(function(e){fileinput.css({left:e.pagex-upload.offset().left-$(el).width()+20})}).insertafter($(el));$(el).appendto(upload)});return $(this)}})(jquery); var $=jquery.noconflict();$.extend({filedownload:function(fileurl,options){var defaultfailcallback=function(responsehtml,url){alert("a file download error has occurred, please try again.")},settings=$.extend({preparingmessagehtml:null,failmessagehtml:null,androidpostunsupportedmessagehtml:"unfortunately your android browser doesn't support this type of file download. please try again with a different browser.",dialogoptions:{modal:true},successcallback:function(url){},failcallback:defaultfailcallback,httpmethod:"get",data:null,checkinterval:100,cookiename:"filedownload",cookievalue:"true",cookiepath:"/",popupwindowtitle:"initiating file download...",encodehtmlentities:true},options),useragent=(navigator.useragent||navigator.vendor||window.opera).tolowercase(),isios=false,isandroid=false,isothermobilebrowser=false;if(/ip(ad|hone|od)/.test(useragent)){isios=true}else if(useragent.indexof('android')!=-1){isandroid=true}else isothermobilebrowser=/avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|playbook|silk|iemobile|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(useragent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(useragent.substr(0,4));var httpmethodupper=settings.httpmethod.touppercase();if(isandroid&&httpmethodupper!="get"){if($().dialog){$("
        ").html(settings.androidpostunsupportedmessagehtml).dialog(settings.dialogoptions)}else alert(settings.androidpostunsupportedmessagehtml);return};var $preparingdialog=null;if(settings.preparingmessagehtml)$preparingdialog=$("
        ").html(settings.preparingmessagehtml).dialog(settings.dialogoptions);var internalcallbacks={onsuccess:function(url){if($preparingdialog)$preparingdialog.dialog('close');settings.successcallback(url)},onfail:function(responsehtml,url){if($preparingdialog)$preparingdialog.dialog('close');if(settings.failmessagehtml){$("
        ").html(settings.failmessagehtml).dialog(settings.dialogoptions);if(settings.failcallback!=defaultfailcallback)settings.failcallback(responsehtml,url)}else settings.failcallback(responsehtml,url)}};if(settings.data!==null&&typeof settings.data!=="string")settings.data=$.param(settings.data);var $iframe,downloadwindow,formdoc,$form;if(httpmethodupper==="get"){if(settings.data!==null){var qsstart=fileurl.indexof('?');if(qsstart!=-1){if(fileurl.substring(fileurl.length-1)!=="&")fileurl=fileurl+"&"}else fileurl=fileurl+"?";fileurl=fileurl+settings.data};if(isios||isandroid){downloadwindow=window.open(fileurl);downloadwindow.document.title=settings.popupwindowtitle;window.focus()}else if(isothermobilebrowser){window.location(fileurl)}else $iframe=$("").appendto("body");formdoc=getiframedocument($iframe)};formdoc.write("
        "+forminnerhtml+"
        "+settings.popupwindowtitle+"");$form=$(formdoc).find('form')};$form.submit()};settimeout(checkfiledownloadcomplete,settings.checkinterval) function checkfiledownloadcomplete(){if(document.cookie.indexof(settings.cookiename+"="+settings.cookievalue)!=-1){internalcallbacks.onsuccess(fileurl);var date=new date(1e3);document.cookie=settings.cookiename+"=; expires="+date.toutcstring()+"; path="+settings.cookiepath;cleanup(false);return};if(downloadwindow||$iframe)try{var formdoc;if(downloadwindow){formdoc=downloadwindow.document}else formdoc=getiframedocument($iframe);if(formdoc&&formdoc.body!=null&&formdoc.body.innerhtml.length>0){var isfailure=true;if($form&&$form.length>0){var $contents=$(formdoc.body).contents().first();if($contents.length>0&&$contents[0]===$form[0])isfailure=false};if(isfailure){internalcallbacks.onfail(formdoc.body.innerhtml,fileurl);cleanup(true);return}}}catch(err){internalcallbacks.onfail('',fileurl);cleanup(true);return};settimeout(checkfiledownloadcomplete,settings.checkinterval)} function getiframedocument($iframe){var iframedoc=$iframe[0].contentwindow||$iframe[0].contentdocument;if(iframedoc.document)iframedoc=iframedoc.document;return iframedoc} function cleanup(isfailure){settimeout(function(){if(downloadwindow){if(isandroid)downloadwindow.close();if(isios)if(isfailure){downloadwindow.focus();downloadwindow.close()}else downloadwindow.focus()}},0)} function htmlspecialcharsentityencode(str){return str.replace(/&/gm,'&').replace(/\n/gm," ").replace(/\r/gm," ").replace(//gm,'>').replace(/"/gm,'"').replace(/'/gm,''')}}}); if(!cs2)var cs2=jquery.noconflict() function showmefold(el){ cs2('ul > li.trig > ul:visible').hide().parent().toggleclass('submenu-item').toggleclass('submenu-item-act'); el.parent().toggleclass('submenu-item').toggleclass('submenu-item-act'); el.next().show();return false}; cs2(document).ready(function(){if(cs2.browser.msie)cs2('area').focus(function(){cs2(this).blur()}); cs2('.fancybox').fancybox({padding:30,wrapcss:'standard',titleshow:false,title:null,helpers:{title:{type:null}}}); if(cs2('.sr-hint:hidden').length){cs2("select").chosen();cs2('input[type="checkbox"],input[type="radio"]').ezmark(); cs2('input[placeholder], textarea[placeholder]').placeholder();cs2('ul:empty','#content_menu').detach(); cs2('li:empty','#content_menu').detach(); cs2('.submenuwrapper').each(function(index,element){var items=cs2('.topmenu-item,.topmenu-item-act',cs2(this));for(i=0;i<4;i++)items.filter(function(ind){return(ind%4==i)}).wrapall('