(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML=' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
(function($) {
 $.isDefinedGlobal = function(varname) {
 return eval('typeof(' + varname + ') != "undefined"');
 };
 $.isDefinedLocal = function(variable) {
 return typeof(variable) != "undefined";
 };
 $.serialize = function(object) {
 var query = '';
 $.each(object, function(key, value) {
 query = query + (query ? '&' : '') + key + '=' + value;
 });
 return query;
 };
 $.fn.tag = function() {
 return this[0].tagName.toLowerCase();
 };
 $.fn.name = function() {
 return $(this).attr('name').replace(/\[]/, '');
 };
})(jQuery);
jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;
(function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger("start",b);this._cacheHelperProportions();if(a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();this._trigger("drag",b,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!d)||(this.options.revert=="valid"&&d)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c);b._clear()})}else{this._trigger("stop",c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper=="clone"?this.element.clone():this.element);if(!b.parents("body").length){b.appendTo((d.appendTo=="parent"?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&&!(/(fixed|absolute)/).test(b.css("position"))){b.css("position","absolute")}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&&e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f=="absolute"?1:-1;var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:(!(g-this.offset.click.top<this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:(!(f-this.offset.click.left<this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add("draggable","connectToSortable",{start:function(c,e){var d=a(this).data("draggable"),f=d.options,b=a.extend({},e,{item:d.element});d.sortables=[];a(f.connectToSortable).each(function(){var g=a.data(this,"sortable");if(g&&!g.options.disabled){d.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",c,b)}})},stop:function(c,e){var d=a(this).data("draggable"),b=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;if(d.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,b)}})},drag:function(c,f){var e=a(this).data("draggable"),b=this;var d=function(i){var n=this.offset.click.top,m=this.offset.click.left;var g=this.positionAbs.top,k=this.positionAbs.left;var j=i.height,l=i.width;var p=i.top,h=i.left;return a.ui.isOver(g+n,k+m,p,h,j,l)};a.each(e.sortables,function(g){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger("toSortable",c);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}if(this.instance.currentItem){this.instance._mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}e._trigger("fromSortable",c);e.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(c,d){var b=a("body"),e=a(this).data("draggable").options;if(b.css("cursor")){e._cursor=b.css("cursor")}b.css("cursor",e.cursor)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._cursor){a("body").css("cursor",d._cursor)}}});a.ui.plugin.add("draggable","iframeFix",{start:function(b,c){var d=a(this).data("draggable").options;a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(b,c){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("opacity")){e._opacity=b.css("opacity")}b.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._opacity){a(c.helper).css("opacity",d._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(c,d){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data("draggable"),f=c.options,b=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!f.axis||f.axis!="x"){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+f.scrollSpeed}else{if(d.pageY-c.overflowOffset.top<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-f.scrollSpeed}}}if(!f.axis||f.axis!="y"){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+f.scrollSpeed}else{if(d.pageX-c.overflowOffset.left<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-f.scrollSpeed}}}}else{if(!f.axis||f.axis!="x"){if(d.pageY-a(document).scrollTop()<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}else{if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}}if(!f.axis||f.axis!="y"){if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}}}if(b!==false&&a.ui.ddmanager&&!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d)}}});a.ui.plugin.add("draggable","snap",{start:function(c,d){var b=a(this).data("draggable"),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||":data(draggable)"):e.snap).each(function(){var g=a(this);var f=g.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})}})},drag:function(u,p){var g=a(this).data("draggable"),q=g.options;var y=q.snapTolerance;var x=p.offset.left,w=x+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var v=g.snapElements.length-1;v>=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y<x&&x<n+y&&m-y<f&&f<A+y)||(s-y<x&&x<n+y&&m-y<e&&e<A+y)||(s-y<w&&w<n+y&&m-y<f&&f<A+y)||(s-y<w&&w<n+y&&m-y<e&&e<A+y))){if(g.snapElements[v].snapping){(g.options.snap.release&&g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=false;continue}if(q.snapMode!="inner"){var c=Math.abs(m-e)<=y;var z=Math.abs(A-f)<=y;var j=Math.abs(s-w)<=y;var k=Math.abs(n-x)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m-g.helperProportions.height,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s-g.helperProportions.width}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n}).left-g.margins.left}}var h=(c||z||j||k);if(q.snapMode!="outer"){var c=Math.abs(m-f)<=y;var z=Math.abs(A-e)<=y;var j=Math.abs(s-x)<=y;var k=Math.abs(n-w)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A-g.helperProportions.height,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[v].snapping&&(c||z||j||k||h)){(g.options.snap.snap&&g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=(c||z||j||k||h)}}});a.ui.plugin.add("draggable","stack",{start:function(b,c){var e=a(this).data("draggable").options;var d=a.makeArray(a(e.stack.group)).sort(function(g,f){return(parseInt(a(g).css("zIndex"),10)||e.stack.min)-(parseInt(a(f).css("zIndex"),10)||e.stack.min)});a(d).each(function(f){this.style.zIndex=e.stack.min+f});this[0].style.zIndex=e.stack.min+d.length}});a.ui.plugin.add("draggable","zIndex",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("zIndex")){e._zIndex=b.css("zIndex")}b.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._zIndex){a(c.helper).css("zIndex",d._zIndex)}}})})(jQuery);;
(function(a){a.widget("ui.droppable",{_init:function(){var c=this.options,b=c.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&a.isFunction(this.options.accept)?this.options.accept:function(e){return e.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&&this.element.addClass("ui-droppable"))},destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];for(var c=0;c<b.length;c++){if(b[c]==this){b.splice(c,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(b,c){if(b=="accept"){this.options.accept=c&&a.isFunction(c)?c:function(e){return e.is(c)}}else{a.widget.prototype._setData.apply(this,arguments)}},_activate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(b&&this._trigger("activate",c,this.ui(b)))},_deactivate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(b&&this._trigger("deactivate",c,this.ui(b)))},_over:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",c,this.ui(b))}},_out:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",c,this.ui(b))}},_drop:function(c,d){var b=d||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return false}var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var f=a.data(this,"droppable");if(f.options.greedy&&a.ui.intersect(b,a.extend(f,{offset:f.element.offset()}),f.options.tolerance)){e=true;return false}});if(e){return false}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",c,this.ui(b));return this.element}return false},ui:function(b){return{draggable:(b.currentItem||b.element),helper:b.helper,position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.7.2",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});a.ui.intersect=function(q,j,o){if(!j.offset){return false}var e=(q.positionAbs||q.position.absolute).left,d=e+q.helperProportions.width,n=(q.positionAbs||q.position.absolute).top,m=n+q.helperProportions.height;var g=j.offset.left,c=g+j.proportions.width,p=j.offset.top,k=p+j.proportions.height;switch(o){case"fit":return(g<e&&d<c&&p<n&&m<k);break;case"intersect":return(g<e+(q.helperProportions.width/2)&&d-(q.helperProportions.width/2)<c&&p<n+(q.helperProportions.height/2)&&m-(q.helperProportions.height/2)<k);break;case"pointer":var h=((q.positionAbs||q.position.absolute).left+(q.clickOffset||q.offset.click).left),i=((q.positionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top),f=a.ui.isOver(i,h,p,g,j.proportions.height,j.proportions.width);return f;break;case"touch":return((n>=p&&n<=k)||(m>=p&&m<=k)||(n<p&&m>k))&&((e>=g&&e<=c)||(d>=g&&d<=c)||(e<g&&d>c));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,g){var b=a.ui.ddmanager.droppables[e.options.scope];var f=g?g.type:null;var h=(e.currentItem||e.element).find(":data(droppable)").andSelf();droppablesLoop:for(var d=0;d<b.length;d++){if(b[d].options.disabled||(e&&!b[d].options.accept.call(b[d].element[0],(e.currentItem||e.element)))){continue}for(var c=0;c<h.length;c++){if(h[c]==b[d].element[0]){b[d].proportions.height=0;continue droppablesLoop}}b[d].visible=b[d].element.css("display")!="none";if(!b[d].visible){continue}b[d].offset=b[d].element.offset();b[d].proportions={width:b[d].element[0].offsetWidth,height:b[d].element[0].offsetHeight};if(f=="mousedown"){b[d]._activate.call(b[d],g)}}},drop:function(b,c){var d=false;a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)){d=this._drop.call(this,c)}if(!this.options.disabled&&this.visible&&this.options.accept.call(this.element[0],(b.currentItem||b.element))){this.isout=1;this.isover=0;this._deactivate.call(this,c)}});return d},drag:function(b,c){if(b.options.refreshPositions){a.ui.ddmanager.prepareOffsets(b,c)}a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var e=a.ui.intersect(b,this,this.options.tolerance);var g=!e&&this.isover==1?"isout":(e&&this.isover==0?"isover":null);if(!g){return}var f;if(this.options.greedy){var d=this.element.parents(":data(droppable):eq(0)");if(d.length){f=a.data(d[0],"droppable");f.greedyChild=(g=="isover"?1:0)}}if(f&&g=="isover"){f.isover=0;f.isout=1;f._out.call(f,c)}this[g]=1;this[g=="isout"?"isover":"isout"]=0;this[g=="isover"?"_over":"_out"].call(this,c);if(f&&g=="isout"){f.isout=0;f.isover=1;f._over.call(f,c)}})}}})(jQuery);;
(function($){$.extend($.ui,{datepicker:{version:"1.7.2"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");input[isRTL?"before":"after"](inst.append)}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('<input type="text" id="'+id+'" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker(null)}var date=this._getDateDatepicker(target);extendRemove(inst.settings,settings);this._setDateDatepicker(target,date);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,"");break;case 13:var sel=$("td."+$.datepicker._dayOverClass+", td."+$.datepicker._currentClass,inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"))}return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"));break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!="hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==""){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){return 1}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var origSize=(match=="@"?14:(match=="y"?4:(match=="o"?3:2)));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++){size=Math.max(size,names[j].length)}var name="";var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);for(var i=0;i<names.length;i++){if(name==names[i]){return i+1}}size--}throw"Unknown name at position "+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":var doy=date.getDate();for(var m=date.getMonth()-1;m>=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst){var dateFormat=this._get(inst,"dateFormat");var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);date=defaultDate}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,"defaultDate"),new Date());var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+inst.id+"');\">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group ui-datepicker-group-';switch(col){case 0:calender+="first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+="last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+="middle";cornerClass="";break}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead="";for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody="";for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+inst.id+"',"+drawMonth+","+drawYear+', this);return false;"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-state-active":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span> "}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&&(!(changeMonth&&changeYear))?"&#xa0;":"")}if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?"&#xa0;":"")+monthHtml}html+="</div>";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart<newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7.2";window.DP_jQuery=$})(jQuery);;
(function(d){d.tools=d.tools||{};d.tools.tabs={version:"1.0.2",conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",api:false,rotate:false},addEffect:function(e,f){c[e]=f}};var c={"default":function(f,e){this.getPanes().hide().eq(f).show();e.call()},fade:function(g,e){var f=this.getConf(),h=f.fadeOutSpeed,j=this.getCurrentPane();if(h){j.fadeOut(h)}else{j.hide()}this.getPanes().eq(g).fadeIn(f.fadeInSpeed,e)},slide:function(f,e){this.getCurrentPane().slideUp(200);this.getPanes().eq(f).slideDown(400,e)},ajax:function(f,e){this.getPanes().eq(0).load(this.getTabs().eq(f).attr("href"),e)}};var b;d.tools.tabs.addEffect("horizontal",function(f,e){if(!b){b=this.getPanes().eq(0).width()}this.getCurrentPane().animate({width:0},function(){d(this).hide()});this.getPanes().eq(f).animate({width:b},function(){d(this).show();e.call()})});function a(f,g,h){var e=this,i;function j(k,l){d(e).bind(k,function(n,m){if(l&&l.call(this,m.index)===false&&m){m.proceed=false}});return e}d.each(h,function(k,l){if(d.isFunction(l)){j(k,l)}});d.extend(this,{click:function(l){var o=e.getCurrentPane();var m=f.eq(l);if(typeof l=="string"&&l.replace("#","")){m=f.filter("[href*="+l.replace("#","")+"]");l=Math.max(f.index(m),0)}if(h.rotate){var n=f.length-1;if(l<0){return e.click(n)}if(l>n){return e.click(0)}}if(!m.length){if(i>=0){return e}l=h.initialIndex;m=f.eq(l)}var k={index:l,proceed:true};d(e).triggerHandler("onBeforeClick",k);if(!k.proceed){return e}if(l===i){return e}m.addClass(h.current);c[h.effect].call(e,l,function(){d(e).triggerHandler("onClick",k)});f.removeClass(h.current);m.addClass(h.current);i=l;return e},getConf:function(){return h},getTabs:function(){return f},getPanes:function(){return g},getCurrentPane:function(){return g.eq(i)},getCurrentTab:function(){return f.eq(i)},getIndex:function(){return i},next:function(){return e.click(i+1)},prev:function(){return e.click(i-1)},onBeforeClick:function(k){return j("onBeforeClick",k)},onClick:function(k){return j("onClick",k)}});f.each(function(k){d(this).bind(h.event,function(l){e.click(k);return l.preventDefault()})});if(location.hash){e.click(location.hash)}else{e.click(h.initialIndex)}g.find("a[href^=#]").click(function(){e.click(d(this).attr("href"))})}d.fn.tabs=function(i,f){var g=this.eq(typeof f=="number"?f:0).data("tabs");if(g){return g}var h=d.extend({},d.tools.tabs.conf),e=this.length;d.extend(h,f);if(d.isFunction(f)){f={onBeforeClick:f}}d.extend(h,f);this.each(function(l){var j=d(this);var k=j.find(h.tabs);if(!k.length){k=j.children()}var m=j.children(i);if(!m.length){m=e==1?d(i):j.parent().find(i)}g=new a(k,m,h);j.data("tabs",g)});return h.api?g:this}})(jQuery);
(function(c){c.tools=c.tools||{};c.tools.tooltip={version:"1.1.0",conf:{effect:"slide",direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!c.browser.msie,fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],cancelDefault:true,offset:[0,0],api:false,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout"}},addEffect:function(e,g,f){b[e]=[g,f]}};var b={toggle:[function(e){var f=this.getConf();this.getTip().css({opacity:f.opacity}).show();e.call()},function(e){this.getTip().hide();e.call()}],fade:[function(e){this.getTip().fadeIn(this.getConf().fadeInSpeed,e)},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};var d={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};c.tools.tooltip.addEffect("slide",function(e){var g=this.getConf(),h=this.getTip(),i=g.slideFade?{opacity:g.opacity}:{},f=d[g.direction]||d.up;i[f[1]]=f[0]+"="+g.slideOffset;if(g.slideFade){h.css({opacity:0})}h.show().animate(i,g.slideInSpeed,e)},function(f){var h=this.getConf(),j=h.slideOffset,i=h.slideFade?{opacity:0}:{},g=d[h.direction]||d.up;var e=""+g[0];if(h.bounce){e=e=="+"?"-":"+"}i[g[1]]=e+"="+j;this.getTip().animate(i,h.slideOutSpeed,function(){c(this).hide();f.call()})});function a(f,g){var p=this;f.data("tooltip",p);var l=f.next();if(g.tip){l=c(g.tip);if(l.length>1){l=f.nextAll(g.tip).eq(0);if(!l.length){l=f.parent().nextAll(g.tip).eq(0)}}}function h(q,r){c(p).bind(q,function(t,s){if(r&&r.call(this,s?s.position:undefined)===false&&s){s.proceed=false}});return p}function o(){var t=f.position().top-l.outerHeight();var q=l.outerHeight()+f.outerHeight();var u=g.position[0];if(u=="center"){t+=q/2}if(u=="bottom"){t+=q}var r=f.outerWidth()+l.outerWidth();var s=f.position().left+f.outerWidth();u=g.position[1];if(u=="center"){s-=r/2}if(u=="left"){s-=r}t+=g.offset[0];s+=g.offset[1];return{top:t,left:s}}c.each(g,function(q,r){if(c.isFunction(r)){h(q,r)}});var j=f.is(":input"),e=j&&f.is(":checkbox, :radio, select, :button"),i=f.attr("type"),n=g.events[i]||g.events[j?(e?"widget":"input"):"def"];n=n.split(/,\s*/);f.bind(n[0],function(r){var q=l.data("trigger");if(q&&q[0]!=this){l.hide()}r.target=this;p.show(r);l.hover(p.show,function(s){p.hide()})});f.bind(n[1],function(){p.hide()});if(!c.browser.msie&&!j){f.mousemove(function(){if(!p.isShown()){f.triggerHandler("mouseover")}})}if(g.opacity<1){l.css("opacity",g.opacity)}var m=0,k=f.attr("title");if(k&&g.cancelDefault){f.removeAttr("title");f.data("title",k)}c.extend(p,{show:function(r){if(r){f=c(r.target)}clearTimeout(l.data("timer"));if(l.is(":animated")||l.is(":visible")){return p}function q(){l.data("trigger",f);var t=o();if(g.tip&&k){l.html(k)}var s={proceed:true,position:t};c(p).trigger("onBeforeShow",s);if(s.proceed===false){return p}t=o();l.css({position:"absolute",top:t.top,left:t.left});b[g.effect][0].call(p,function(){c(p).trigger("onShow")})}if(g.predelay){clearTimeout(m);m=setTimeout(q,g.predelay)}else{q()}return p},hide:function(){clearTimeout(l.data("timer"));clearTimeout(m);if(!l.is(":visible")){return}function q(){var r={proceed:true};c(p).trigger("onBeforeHide",r);if(r.proceed===false){return}b[g.effect][1].call(p,function(){c(p).trigger("onHide")})}if(g.delay){l.data("timer",setTimeout(q,g.delay))}else{q()}return p},isShown:function(){return l.is(":visible, :animated")},getConf:function(){return g},getTip:function(){return l},getTrigger:function(){return f},onBeforeShow:function(q){return h("onBeforeShow",q)},onShow:function(q){return h("onShow",q)},onBeforeHide:function(q){return h("onBeforeHide",q)},onHide:function(q){return h("onHide",q)}})}c.prototype.tooltip=function(e){var f=this.eq(typeof e=="number"?e:0).data("tooltip");if(f){return f}var g=c.extend(true,{},c.tools.tooltip.conf);if(c.isFunction(e)){e={onBeforeShow:e}}else{if(typeof e=="string"){e={tip:e}}}c.extend(true,g,e);if(typeof g.position=="string"){g.position=g.position.split(/,?\s/)}if(g.lazy!==false&&(g.lazy===true||this.length>20)){this.one("mouseover",function(){f=new a(c(this),g);f.show()})}else{this.each(function(){f=new a(c(this),g)})}return g.api?f:this}})(jQuery);
(function(c){c.tools=c.tools||{};c.tools.scrollable={version:"1.1.0",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var d,a=0;function b(r,o,m){var t=this,e=!o.vertical,f=r.children(),l=0,j;if(!d){d=t}function p(u,v){c(t).bind(u,function(x,w){if(v&&v.call(this,w.index)===false&&w){w.proceed=false}});return t}c.each(o,function(u,v){if(c.isFunction(v)){p(u,v)}});if(f.length>1){f=c(o.items,r)}function n(v){var u=c(v);return m==1||u.length==1||o.globalNav?u:r.parent().find(v)}r.data("finder",n);var g=n(o.prev),i=n(o.next),h=n(o.prevPage),q=n(o.nextPage);c.extend(t,{getIndex:function(){return l},getConf:function(){return o},getSize:function(){return t.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/o.size)},getPageIndex:function(){return Math.ceil(l/o.size)},getNaviButtons:function(){return g.add(i).add(h).add(q)},getRoot:function(){return r},getItemWrap:function(){return f},getItems:function(){return f.children(o.item)},getVisibleItems:function(){return t.getItems().slice(l,l+o.size)},seekTo:function(u,y,v){if(y===undefined){y=o.speed}if(c.isFunction(y)){v=y;y=o.speed}if(u<0){u=0}if(u>t.getSize()-o.size){return this.end()}var w=t.getItems().eq(u);if(!w.length){return t}var x={index:u,proceed:true};c(t).trigger("onBeforeSeek",x);if(!x.proceed){return t}function z(){if(v){v.call(t)}c(t).trigger("onSeek",x)}if(e){f.animate({left:-w.position().left},y,o.easing,z)}else{f.animate({top:-w.position().top},y,o.easing,z)}d=t;l=u;return t},move:function(w,v,u){j=w>0;return this.seekTo(l+w,v,u)},next:function(v,u){return this.move(1,v,u)},prev:function(v,u){return this.move(-1,v,u)},movePage:function(y,x,w){j=y>0;var u=o.size*y;var v=l%o.size;if(v>0){u+=(y>0?-v:o.size-v)}return this.move(u,x,w)},prevPage:function(v,u){return this.movePage(-1,v,u)},nextPage:function(v,u){return this.movePage(1,v,u)},setPage:function(v,w,u){return this.seekTo(v*o.size,w,u)},begin:function(v,u){return this.seekTo(0,v,u)},end:function(v,u){var w=this.getSize()-o.size;return w>0?this.seekTo(w,v,u):t},reload:function(){c(t).trigger("onReload",{});return t},onBeforeSeek:function(u){return p("onBeforeSeek",u)},onSeek:function(u){return p("onSeek",u)},onReload:function(u){return p("onReload",u)},focus:function(){d=t;return t},click:function(w){var x=t.getItems().eq(w),u=o.activeClass,v=o.size;if(w<0||w>=t.getSize()){return t}if(v==1){if(w===0||w==t.getSize()-1){j=(j===undefined)?true:!j}return j===false?t.prev():t.next()}if(v==2){if(w==l){w--}t.getItems().removeClass(u);x.addClass(u);return t.seekTo(w,time,fn)}if(!x.hasClass(u)){t.getItems().removeClass(u);x.addClass(u);var z=Math.floor(v/2);var y=w-z;if(y>t.getSize()-v){y=t.getSize()-v}if(y!==w){return t.seekTo(y)}}return t}});g.addClass(o.disabledClass).click(function(){t.prev()});i.click(function(){t.next()});q.click(function(){t.nextPage()});h.addClass(o.disabledClass).click(function(){t.prevPage()});t.onSeek(function(u){if(u===0){g.add(h).addClass(o.disabledClass)}else{g.add(h).removeClass(o.disabledClass)}if(u>=t.getSize()-o.size){i.add(q).addClass(o.disabledClass)}else{i.add(q).removeClass(o.disabledClass)}});var k=o.hoverClass,s="keydown."+Math.random().toString().substring(10);t.onReload(function(){if(k){t.getItems().hover(function(){c(this).addClass(k)},function(){c(this).removeClass(k)})}if(o.clickable){t.getItems().each(function(u){c(this).unbind("click.scrollable").bind("click.scrollable",function(v){if(c(v.target).is("a")){return}return t.click(u)})})}if(o.keyboard){c(document).bind(s,function(u){if(u.altKey||u.ctrlKey){return}if(o.keyboard!="static"&&d!=t){return}var v=o.keyboardSteps;if(e&&(u.keyCode==37||u.keyCode==39)){t.move(u.keyCode==37?-v:v);return u.preventDefault()}if(!e&&(u.keyCode==38||u.keyCode==40)){t.move(u.keyCode==38?-v:v);return u.preventDefault()}return true})}else{c(document).unbind(s)}});t.reload()}c.fn.scrollable=function(e){var f=this.eq(typeof e=="number"?e:0).data("scrollable");if(f){return f}var g=c.extend({},c.tools.scrollable.conf);c.extend(g,e);g.keyboardSteps=g.keyboardSteps||g.size;a+=this.length;this.each(function(){f=new b(c(this),g);c(this).data("scrollable",f)});return g.api?f:this}})(jQuery);
(function(b){var a=b.tools.scrollable;a.plugins=a.plugins||{};a.plugins.navigator={version:"1.0.0",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false}};b.fn.navigator=function(e){var d=b.extend({},a.plugins.navigator.conf),c;if(typeof e=="string"){e={navi:e}}b.extend(d,e);this.each(function(){var i=b(this).scrollable(),f=i.getRoot(),l=f.data("finder").call(null,d.navi),g=null,k=i.getNaviButtons();if(i){c=i}i.getNaviButtons=function(){return k.add(l)};function j(){if(!l.children().length||l.data("navi")==i){l.empty();l.data("navi",i);for(var m=0;m<i.getPageAmount();m++){l.append(b("<"+(d.naviItem||"a")+"/>"))}g=l.children().each(function(n){b(this).click(function(o){i.setPage(n);return o.preventDefault()});if(d.indexed){b(this).text(n)}})}else{g=d.naviItem?l.find(d.naviItem):l.children();g.each(function(n){var o=b(this);o.click(function(p){i.setPage(n);return p.preventDefault()})})}g.eq(0).addClass(d.activeClass)}i.onSeek(function(n){var m=d.activeClass;g.removeClass(m).eq(i.getPageIndex()).addClass(m)});i.onReload(function(){j()});j();var h=g.filter("[href="+location.hash+"]");if(h.length){i.move(g.index(h))}});return d.api?c:this}})(jQuery);
(function(c){c.tools=c.tools||{};c.tools.overlay={version:"1.1.0",addEffect:function(e,f,g){b[e]=[f,g]},conf:{top:"10%",left:"center",absolute:false,speed:"normal",closeSpeed:"fast",effect:"default",close:null,oneInstance:true,closeOnClick:true,closeOnEsc:true,api:false,expose:null,target:null}};var b={};c.tools.overlay.addEffect("default",function(e){this.getOverlay().fadeIn(this.getConf().speed,e)},function(e){this.getOverlay().fadeOut(this.getConf().closeSpeed,e)});var d=[];function a(i,f){var p=this,o=c(window),l,k,j,g=f.expose&&c.tools.expose.version;var h=f.target||i.attr("rel");k=h?c(h):null||i;if(i){i.click(function(q){p.load();return q.preventDefault()})}function n(e,q){c(p).bind(e,function(s,r){if(q&&q.call(this)===false&&r){r.proceed=false}});return p}c.each(f,function(e,q){if(c.isFunction(q)){n(e,q)}});c.extend(p,{load:function(){if(p.isOpened()){return p}if(f.oneInstance){c.each(d,function(){this.close()})}var t={proceed:true};c(p).trigger("onBeforeLoad",t);if(!t.proceed){return p}if(g){k.expose().load()}var s=f.top;if(typeof s=="string"){s=parseInt(s,10)/100*o.height()}var r=f.left;var e=k.outerWidth({margin:true});var q=k.outerHeight({margin:true});if(s=="center"){s=Math.max((o.height()-q)/2,0)}if(r=="center"){r=Math.max((o.width()-e)/2,0)}if(!f.absolute){s+=o.scrollTop();r+=o.scrollLeft()}k.css({top:s,left:r,position:"absolute"});b[f.effect][0].call(p,function(){c(p).trigger("onLoad");j=true});if(f.closeOnClick){c(document).bind("click.overlay",function(u){if(!p.isOpened()){return}var v=c(u.target);if(v.parents(k).length>1){return}c.each(d,function(){this.close()})})}if(f.closeOnEsc){c(document).unbind("keydown.overlay").bind("keydown.overlay",function(u){if(u.keyCode==27){c.each(d,function(){this.close()})}})}return p},close:function(){if(!p.isOpened()){return p}var q={proceed:true};c(p).trigger("onBeforeClose",q);if(!q.proceed){return p}b[f.effect][1].call(p,function(){j=false;c(p).trigger("onClose")});var e=true;c.each(d,function(){if(this.isOpened()){e=false}});if(e){c(document).unbind("click.overlay").unbind("keydown.overlay")}return p},getContent:function(){return k},getOverlay:function(){return k},getTrigger:function(){return i},getClosers:function(){return l},isOpened:function(){return j},getConf:function(){return f},onBeforeLoad:function(e){return n("onBeforeLoad",e)},onLoad:function(e){return n("onLoad",e)},onBeforeClose:function(e){return n("onBeforeClose",e)},onClose:function(e){return n("onClose",e)}});if(g){if(typeof f.expose=="string"){f.expose={color:f.expose}}c.extend(f.expose,{api:true,closeOnClick:f.closeOnClick,closeOnEsc:false});var m=k.expose(f.expose);m.onBeforeClose(function(){p.close()});p.onClose(function(){m.close()})}l=k.find(f.close||".close");if(!l.length&&!f.close){l=c('<div class="close"></div>');k.prepend(l)}l.click(function(){p.close()})}c.fn.overlay=function(e){var f=this.eq(typeof e=="number"?e:0).data("overlay");if(f){return f}if(c.isFunction(e)){e={onBeforeLoad:e}}var g=c.extend({},c.tools.overlay.conf);c.extend(true,g,e);this.each(function(){f=new a(c(this),g);d.push(f);c(this).data("overlay",f)});return g.api?f:this}})(jQuery);
(function(b){b.tools=b.tools||{};b.tools.expose={version:"1.0.4",conf:{maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,color:"#456",api:false}};function a(){if(b.browser.msie){var f=b(document).height(),e=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,f-e<20?e:f]}return[b(window).width(),b(document).height()]}function c(g,h){var e=this,d=null,f=false,i=0;function j(k,l){b(e).bind(k,function(n,m){if(l&&l.call(this)===false&&m){m.proceed=false}});return e}b.each(h,function(k,l){if(b.isFunction(l)){j(k,l)}});b(window).resize(function(){e.fit()});b.extend(this,{getMask:function(){return d},getExposed:function(){return g},getConf:function(){return h},isLoaded:function(){return f},load:function(){if(f){return e}i=g.eq(0).css("zIndex");if(h.maskId){d=b("#"+h.maskId)}if(!d||!d.length){var l=a();d=b("<div/>").css({position:"absolute",top:0,left:0,width:l[0],height:l[1],display:"none",opacity:0,zIndex:h.zIndex});if(h.maskId){d.attr("id",h.maskId)}b("body").append(d);var k=d.css("backgroundColor");if(!k||k=="transparent"||k=="rgba(0, 0, 0, 0)"){d.css("backgroundColor",h.color)}if(h.closeOnEsc){b(document).bind("keydown.unexpose",function(o){if(o.keyCode==27){e.close()}})}if(h.closeOnClick){d.bind("click.unexpose",function(){e.close()})}}var n={proceed:true};b(e).trigger("onBeforeLoad",n);if(!n.proceed){return e}b.each(g,function(){var o=b(this);if(!/relative|absolute|fixed/i.test(o.css("position"))){o.css("position","relative")}});g.css({zIndex:Math.max(h.zIndex+1,i=="auto"?0:i)});var m=d.height();if(!this.isLoaded()){d.css({opacity:0,display:"block"}).fadeTo(h.loadSpeed,h.opacity,function(){if(d.height()!=m){d.css("height",m)}b(e).trigger("onLoad")})}f=true;return e},close:function(){if(!f){return e}var k={proceed:true};b(e).trigger("onBeforeClose",k);if(k.proceed===false){return e}d.fadeOut(h.closeSpeed,function(){b(e).trigger("onClose");g.css({zIndex:b.browser.msie?i:null})});f=false;return e},onBeforeLoad:function(k){return j("onBeforeLoad",k)},onLoad:function(k){return j("onLoad",k)},onBeforeClose:function(k){return j("onBeforeClose",k)},onClose:function(k){return j("onClose",k)},fit:function(){if(d){var k=a();d.css({width:k[0],height:k[1]})}}})}b.fn.expose=function(d){var e=this.eq(typeof d=="number"?d:0).data("expose");if(e){return e}if(typeof d=="string"){d={color:d}}var f=b.extend({},b.tools.expose.conf);b.extend(f,d);this.each(function(){e=new c(b(this),f);b(this).data("expose",e)});return f.api?e:this}})(jQuery);
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.substring(0,q)||"*";var o=s.substring(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).substring(2,10)}var h=function(t,r,s){var q=this;var p={};var u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.substring(0,v.length-1);var w="onBefore"+v.substring(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var s={};var o=this;var u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var y=q._api().fp_getPlugin(p);if(!y){return}i(o,y);delete o.methods;if(!u){m(y.methods,function(){var A=""+this;o[A]=function(){var B=[].slice.call(arguments);var C=q._api().fp_invoke(p,A,B);return C==="undefined"||C===undefined?o:C}});u=true}}var z=s[w];if(z){z.apply(o,v);if(w.substring(0,1)=="_"){delete s[w]}}}})};function b(o,t,z){var E=this,y=null,x,u,p=[],s={},B={},r,v,w,D,A,q;i(E,{id:function(){return r},isLoaded:function(){return(y!==null)},getParent:function(){return o},hide:function(F){if(F){o.style.height="0px"}if(y){y.style.height="0px"}return E},show:function(){o.style.height=q+"px";if(y){y.style.height=A+"px"}return E},isHidden:function(){return y&&parseInt(y.style.height,10)===0},load:function(F){if(!y&&E._fireEvent("onBeforeLoad")!==false){m(a,function(){this.unload()});x=o.innerHTML;if(x&&!flashembed.isSupported(t.version)){o.innerHTML=""}flashembed(o,t,{config:z});if(F){F.cached=true;j(B,"onLoad",F)}}return E},unload:function(){if(x.replace(/\s/g,"")!==""){if(E._fireEvent("onBeforeUnload")===false){return E}try{if(y){y.fp_close()}}catch(F){}y=null;o.innerHTML=x;E._fireEvent("onUnload")}return E},getClip:function(F){if(F===undefined){F=D}return p[F]},getCommonClip:function(){return u},getPlaylist:function(){return p},getPlugin:function(F){var H=s[F];if(!H&&E.isLoaded()){var G=E._api().fp_getPlugin(F);if(G){H=new l(F,G,E);s[F]=H}}return H},getScreen:function(){return E.getPlugin("screen")},getControls:function(){return E.getPlugin("controls")},getConfig:function(F){return F?k(z):z},getFlashParams:function(){return t},loadPlugin:function(I,H,K,J){if(typeof K=="function"){J=K;K={}}var G=J?e():"_";E._api().fp_loadPlugin(I,H,K,G);var F={};F[G]=J;var L=new l(I,null,E,F);s[I]=L;return L},getState:function(){return y?y.fp_getState():-1},play:function(G,F){function H(){if(G!==undefined){E._api().fp_play(G,F)}else{E._api().fp_play()}}if(y){H()}else{E.load(function(){H()})}return E},getVersion:function(){var G="flowplayer.js 3.1.4";if(y){var F=y.fp_getVersion();F.push(G);return F}return G},_api:function(){if(!y){throw"Flowplayer "+E.id()+" not loaded when calling an API method"}return y},setClip:function(F){E.setPlaylist([F]);return E},getIndex:function(){return w}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var F="on"+this;if(F.indexOf("*")!=-1){F=F.substring(0,F.length-1);var G="onBefore"+F.substring(2);E[G]=function(H){j(B,G,H);return E}}E[F]=function(H){j(B,F,H);return E}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed").split(","),function(){var F=this;E[F]=function(H,G){if(!y){return E}var I=null;if(H!==undefined&&G!==undefined){I=y["fp_"+F](H,G)}else{I=(H===undefined)?y["fp_"+F]():y["fp_"+F](H)}return I==="undefined"||I===undefined?E:I}});E._fireEvent=function(O){if(typeof O=="string"){O=[O]}var P=O[0],M=O[1],K=O[2],J=O[3],I=0;if(z.debug){g(O)}if(!y&&P=="onLoad"&&M=="player"){y=y||c(v);A=y.clientHeight;m(p,function(){this._fireEvent("onLoad")});m(s,function(Q,R){R._fireEvent("onUpdate")});u._fireEvent("onLoad")}if(P=="onLoad"&&M!="player"){return}if(P=="onError"){if(typeof M=="string"||(typeof M=="number"&&typeof K=="number")){M=K;K=J}}if(P=="onContextMenu"){m(z.contextMenu[M],function(Q,R){R.call(E)});return}if(P=="onPluginEvent"){var F=M.name||M;var G=s[F];if(G){G._fireEvent("onUpdate",M);G._fireEvent(K,O.slice(3))}return}if(P=="onPlaylistReplace"){p=[];var L=0;m(M,function(){p.push(new h(this,L++,E))})}if(P=="onClipAdd"){if(M.isInStream){return}M=new h(M,K,E);p.splice(K,0,M);for(I=K+1;I<p.length;I++){p[I].index++}}var N=true;if(typeof M=="number"&&M<p.length){D=M;var H=p[M];if(H){N=H._fireEvent(P,K,J)}if(!H||N!==false){N=u._fireEvent(P,K,J,H)}}m(B[P],function(){N=this.call(E,M,K);if(this.cached){B[P].splice(I,1)}if(N===false){return false}I++});return N};function C(){if($f(o)){$f(o).getParent().innerHTML="";w=$f(o).getIndex();a[w]=E}else{a.push(E);w=a.length-1}q=parseInt(o.style.height,10)||o.clientHeight;if(typeof t=="string"){t={src:t}}r=o.id||"fp"+e();v=t.id||r+"_api";t.id=v;t.cachebusting=true;z.playerId=r;if(typeof z=="string"){z={clip:{url:z}}}if(typeof z.clip=="string"){z.clip={url:z.clip}}z.clip=z.clip||{};if(o.getAttribute("href",2)&&!z.clip.url){z.clip.url=o.getAttribute("href",2)}u=new h(z.clip,-1,E);z.playlist=z.playlist||[z.clip];var F=0;m(z.playlist,function(){var H=this;if(typeof H=="object"&&H.length){H={url:""+H}}m(z.clip,function(I,J){if(J!==undefined&&H[I]===undefined&&typeof J!="function"){H[I]=J}});z.playlist[F]=H;H=new h(H,F,E);p.push(H);F++});m(z,function(H,I){if(typeof I=="function"){if(u[H]){u[H](I)}else{j(B,H,I)}delete z[H]}});m(z.plugins,function(H,I){if(I){s[H]=new l(H,I,E)}});if(!z.plugins||z.plugins.controls===undefined){s.controls=new l("controls",null,E)}s.canvas=new l("canvas",null,E);t.bgcolor=t.bgcolor||"#000000";t.version=t.version||[9,0];t.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";function G(H){if(!E.isLoaded()&&E._fireEvent("onBeforeClick")!==false){E.load()}return f(H)}x=o.innerHTML;if(x.replace(/\s/g,"")!==""){if(o.addEventListener){o.addEventListener("click",G,false)}else{if(o.attachEvent){o.attachEvent("onclick",G)}}}else{if(o.addEventListener){o.addEventListener("click",f,false)}E.load()}}if(typeof o=="string"){flashembed.domReady(function(){var F=c(o);if(!F){throw"Flowplayer cannot access element: "+o}else{o=F;C()}})}else{C()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var r=arguments[1];var q=(arguments.length==3)?arguments[2]:{};if(typeof o=="string"){if(o.indexOf(".")!=-1){var t=[];m(n(o),function(){t.push(new b(this,k(r),k(q)))});return new d(t)}else{var s=c(o);return new b(s!==null?s:o,r,q)}}else{if(o){return new b(o,r,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.prototype.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var e=typeof jQuery=="function";var i={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:i}}function j(){if(c.done){return false}var l=document;if(l&&l.getElementsByTagName&&l.getElementById&&l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k<c.ready.length;k++){c.ready[k].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(k){if(c.done){return k()}if(c.timer){c.ready.push(k)}else{c.ready=[k];c.timer=setInterval(j,13)}};function f(l,k){if(k){for(key in k){if(k.hasOwnProperty(key)){l[key]=k[key]}}}return l}function g(k){switch(h(k)){case"string":k=k.replace(new RegExp('(["\\\\])',"g"),"\\$1");k=k.replace(/^\s?(\d+)%/,"$1pct");return'"'+k+'"';case"array":return"["+b(k,function(n){return g(n)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var m in k){if(k.hasOwnProperty(m)){l.push('"'+m+'":'+g(k[m]))}}return"{"+l.join(",")+"}"}return String(k).replace(/\s/g," ").replace(/\'/g,'"')}function h(l){if(l===null||l===undefined){return false}var k=typeof l;return(k=="object"&&l.push)?"array":k}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(k,n){var m=[];for(var l in k){if(k.hasOwnProperty(l)){m[l]=n(k[l])}}return m}function a(r,t){var q=f({},r);var s=document.all;var n='<object width="'+q.width+'" height="'+q.height+'"';if(s&&!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(q.w3c||!s){n+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(q.w3c||s){n+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='<param name="'+l+'" value="'+q[l]+'" />'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m])+"&"}}o=o.substring(0,o.length-1);n+='<param name="flashvars" value=\''+o+"' />"}n+="</object>";return n}function d(m,p,l){var k=flashembed.getVersion();f(this,{getContainer:function(){return m},getConf:function(){return p},getVersion:function(){return k},getFlashvars:function(){return l},getApi:function(){return m.firstChild},getHTML:function(){return a(p,l)}});var q=p.version;var r=p.expressInstall;var o=!q||flashembed.isSupported(q);if(o){p.onFail=p.version=p.expressInstall=null;m.innerHTML=a(p,l)}else{if(q&&r&&flashembed.isSupported([6,65])){f(p,{src:r});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};m.innerHTML=a(p,l)}else{if(m.innerHTML.replace(/\s/g,"")!==""){}else{m.innerHTML="<h2>Flash version "+q+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(m.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&&p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){m.innerHTML=n}}if(document.all){window[p.id]=document.getElementById(p.id)}}window.flashembed=function(l,m,k){if(typeof l=="string"){var n=document.getElementById(l);if(n){l=n}else{c(function(){flashembed(l,m,k)});return}}if(!l){return}if(typeof m=="string"){m={src:m}}var o=f({},i);f(o,m);return new d(l,o,k)};f(window.flashembed,{getVersion:function(){var m=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var l=navigator.plugins["Shockwave Flash"].description;if(typeof l!="undefined"){l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);var r=/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=[n,r]}}else{if(window.ActiveXObject){try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=[6,0];p.AllowScriptAccess="always"}catch(k){if(m[0]==6){return m}}try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof p=="object"){l=p.GetVariable("$version");if(typeof l!="undefined"){l=l.replace(/^\S+\s+(.*)$/,"$1").split(",");m=[parseInt(l[0],10),parseInt(l[2],10)]}}}}return m},isSupported:function(k){var m=flashembed.getVersion();var l=(m[0]>k[0])||(m[0]==k[0]&&m[1]>=k[1]);return l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=function(l,k){var m=null;this.each(function(){m=flashembed(this,l,k)});return l.api===false?this:m}}})();
;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();
function run(variable) {
 jQuery(function($) {
 variable.run();
 });
}
var Events = {
 registry : [],
 register: function(method)
 {
 Events.registry[Events.registry.length] = method;
 },
 init: function()
 {
 Events.bind($('body'));
 },
 bind: function(elements)
 {
 $.each(Events.registry, function() {
 this(elements);
 });
 }
}
$(Events.init);
var Utils = {
 uniqueInts: new Object(),
 getUrl: function(url)
 {
 if (!url) {
 var url = window.location.href;
 }
 var hash = url.indexOf('#');
 if (hash != -1) {
 url = url.substring(0, hash);
 }
 var domain = url.indexOf('://');
 if (domain != -1) {
 url = url.substring(domain + 3);
 url = url.substring(url.indexOf('/'));
 }
 return url;
 },
 getUrlParam: function(name)
 {
 name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
 var regexS = "[\\?&]"+name+"=([^&#]*)";
 var regex = new RegExp(regexS);
 var results = regex.exec(window.location.href);
 return results == null ? '' : results[1];
 },
 uniqueInt: function(n)
 {
 if (!n) {
 var n = 1000;
 }
 do {
 var i = Math.floor(Math.random() * n + 1);
 } while (Utils.uniqueInts[i]);
 Utils.uniqueInts[i] = true;
 return i;
 },
 scrollTo: function(element)
 {
 $.scrollTo(element, 500, { axis: 'y' });
 }
}
var ConfirmLink = {
 bind: function(elements)
 {
 $('a.confirm', elements).click(ConfirmLink.onClick);
 },
 onClick: function(event)
 {
 var link = $(this);
 if (confirm(link.attr('title'))) {
 if (link.is('[href^="http"],[href^="ftp"],[rel*="external"]')) {
 open(link.attr('href'));
 return false;
 }
 } else {
 return false;
 }
 }
}
Events.register(ConfirmLink.bind);
var ExternalLink = {
 bind: function(elements)
 {
 var expression =
 'a[href^="http"]:not(.confirm),' +
 'a[href^="ftp"]:not(.confirm),' +
 'a[rel*="external"]:not(.confirm)'
 ;
 $(expression, elements).click(ExternalLink.onClick);
 },
 onClick: function(event)
 {
 open($(this).attr('href'));
 return false;
 }
}
Events.register(ExternalLink.bind);
var Loader = {
 image: null,
 run: function()
 {
 $('body').prepend('<div id="loading"></div>');
 Loader.image = $('#loading').hide();
 },
 show: function(element)
 {
 if (element.pageX || element.pageY) {
 var x = element.pageX;
 var y = element.pageY;
 x -= parseInt(this.image.width() / 2);
 y -= parseInt(this.image.height() / 2);
 } else {
 var position = element.position();
 var x = position.left;
 var y = position.top;
 }
 this.image.css('left', x).css('top', y).show();
 },
 hide: function()
 {
 this.image.hide();
 }
}
run(Loader);
var DropDownMenu = {
 run: function()
 {
 $('.dropdown ul a').removeAttr('title');
 $('.dropdown ul li').hover(DropDownMenu.hoverOver, DropDownMenu.hoverOut);
 },
 hoverOver: function()
 {
 $(this).addClass('hover');
 $('ul:first', this).css('display', 'block');
 },
 hoverOut: function()
 {
 $(this).removeClass('hover');
 $('ul:first', this).css('display', 'none');
 }
}
run(DropDownMenu);
var Animation = {
 bind: function(elements)
 {
 $('.animation', elements).each(Animation.loop);
 },
 loop: function()
 {
 var container = $(this);
 var link = container.find('a:first');
 var swf = container.find('param[name="movie"]:first').val();
 var id = container.attr('id');
 if (!id) {
 id = 'animation' + Utils.uniqueInt();
 container.attr('id', id);
 }
 var flashvars = {};
 if (link.length) {
 flashvars.clickTAG = link.attr('href');
 flashvars.target = link.hasClass('external') ? '_blank' : '';
 }
 var params = {};
 params.allowfullscreen = 'true';
 params.wmode = 'transparent';
 params.width = parseInt(container.css('width'));
 params.height = parseInt(container.css('height'));
 var attributes = {};
 swfobject.embedSWF(swf, id, params.width, params.height, '9.0.0', false, flashvars, params, attributes);
 }
}
Events.register(Animation.bind);
var Video = {
 bind: function(elements)
 {
 $('.video', elements).each(Video.loop);
 },
 loop: function()
 {
 var container = $(this);
 var flv = container.find('a:first').attr('href');
 var img = container.find('a:first img').attr('src');
 var configuration = {
 src: '/media/js/flowplayer/flowplayer.swf'
 };
 if (img) {
 var playlist = [
 {url: img, scaling: 'fit'},
 {url: flv, autoPlay: false}
 ];
 } else {
 var playlist = [
 {url: flv, autoPlay: false}
 ];
 }
 var flashvars = {};
 flashvars.config = "{ " +
 "'playerId': '" + container.attr('id') + "', " +
 "'playlist': [" +
 (img ? "{ 'url': '" + img + "', 'scaling': 'fit' }, " : "") +
 "{ 'url': '" + flv + "', 'autoPlay': false }" +
 "], " +
 "'play': { 'label': null, 'replayLabel': null }" +
 " }";
 var params = {};
 params.allowfullscreen = true;
 params.wmode = 'transparent';
 params.bgcolor = '#000000';
 var attributes = {};
 swfobject.embedSWF(
 '/media/js/flowplayer/flowplayer.swf',
 container.attr('id'),
 parseInt(container.css('width')),
 parseInt(container.css('height')),
 '9.0.0',
 null,
 flashvars,
 params,
 attributes
 );
 }
}
Events.register(Video.bind);
var GoogleMap = {
 bind: function(elements)
 {
 $('.google_map', elements).each(GoogleMap.loop);
 },
 loop: function()
 {
 var container = $(this);
 var img = container.find('a:first img');
 if (typeof GBrowserIsCompatible == 'function' && GBrowserIsCompatible()) {
 var x = container.find('input[name="x"]').val();
 var y = container.find('input[name="y"]').val();
 var zoom = parseInt(container.find('input[name="zoom"]').val());
 var width = img.css('width');
 container
 .css('width', width)
 .css('height', img.css('height'))
 .empty()
 ;
 width = parseInt(width);
 var point = new GLatLng(x, y);
 map = new GMap2(container.get(0));
 map.setCenter(point, zoom);
 if (width > 400) {
 map.addControl(new GLargeMapControl());
 } else {
 map.addControl(new GSmallZoomControl());
 }
 if (width >= 250) {
 map.addControl(new GMapTypeControl());
 }
 map_xy_marker = new GMarker(point);
 map.addOverlay(map_xy_marker);
 }
 }
}
Events.register(GoogleMap.bind);
var Tabs = {
 run: function()
 {
 $('.tabbed .tabs a').bind('click', this.onClick);
 $('.tabbed .tabs a').each(function() {
 $(this).removeAttr('title');
 });
 },
 onClick: function(event)
 {
 event.preventDefault();
 var link = $(this);
 var result = link.attr('id').match(/^tab_link(.+)$/);
 if (result && result[1]) {
 var parent = link.closest('.tabbed');
 var current = parent.find('.active_tab');
 var next = $('#tab' + parseInt(result[1]));
 current.show().removeClass('active_tab');
 next.hide().addClass('active_tab');
 current.hide();
 next.show();
 parent.find('.tabs li').removeClass('active');
 link.closest('li').addClass('active');
 }
 }
}
run(Tabs);
var MultiCheckboxSelect = {
 bind: function(elements)
 {
 $('input.multi_select[type="checkbox"][value!=""]', elements).click(MultiCheckboxSelect.onClick);
 },
 onClick: function(event)
 {
 var checkbox = $(this);
 var inputs = $('input.'+ checkbox.attr('value')+'[type="checkbox"]', checkbox.closest('.plugin'));
 if (checkbox.attr('checked')) {
 inputs.attr('checked', 'checked');
 } else {
 inputs.removeAttr('checked');
 }
 }
}
Events.register(MultiCheckboxSelect.bind);
var ShareTrigger = {
 run: function()
 {
 $('a.sharetrigger').tooltip({
 position: ['bottom', 'center'],
 offset: [0, 0],
 effect: 'fade',
 delay: 200,
 opacity: 1.0
 });
 }
}
run(ShareTrigger);
var Form = {
 bind: function(elements)
 {
 $('form.form', elements).find('input[type=text],input[type=password],textarea,select').change(Form.validate);
 $('form:visible label:hidden', elements).each(Form.attachInputHints);
 $('form.form', elements).each(Form.fetchSettings);
 $('form.form .optionsYN input[type="checkbox"]').bind('changeStatus', Form.optionsYNchange).change(Form.optionsYN).trigger('changeStatus');
 Form.helpTooltips(elements);
 FormCheckbox.bind(elements);
 FormRadio.bind(elements);
 FormCustomSelect.bind(elements);
 FormSubmit.bind(elements);
 },
 validate: function(e)
 {
 var input = $(this);
 if (input.hasClass('skip_validation')) {
 return;
 }
 var form = input.closest('form');
 var data = 'ajax_content_id=' + formContent[form.attr('id')] + '&' + form.serialize();
 $.ajax({
 url : Utils.getUrl(),
 type : 'POST',
 dataType : 'json',
 data : data,
 success : function(data) {
 var error = data.errors[input.name()];
 if (error) {
 Form.setError(input, error);
 } else {
 Form.setValid(input);
 }
 }
 });
 },
 setError: function(input, error)
 {
 Form.getFamily(input).removeClass('valid').addClass('error');
 Form.removeErrorMessage(input);
 input.closest('div[class=""]').append('<strong>' + error + '</strong>');
 input.trigger('error');
 },
 removeErrorMessage: function(input)
 {
 input.closest('div[class=""]').find('strong').remove();
 },
 setValid: function(input)
 {
 Form.getFamily(input).removeClass('error').addClass('valid');
 Form.removeErrorMessage(input);
 input.trigger('valid');
 },
 getFamily: function(input)
 {
 return input.add(input.parent().parent());
 },
 attachInputHints: function()
 {
 var label = $(this);
 var labelFor = label.attr('for');
 if (!labelFor) {
 return;
 }
 var input = $('#' + label.attr('for'), label.closest('form'));
 if (!input.length || input.attr('type') == 'file') {
 return;
 }
 var title = label.text();
 if (!input.val()) {
 input.val(title);
 }
 input
 .data('title', title)
 .click(Form.clearHint)
 .blur(Form.resetHint)
 .closest('form').bind('submit', {input: input}, Form.removeHint)
 ;
 },
 clearHint: function(event)
 {
 var input = $(this);
 if (input.val() == input.data('title')) {
 input.val('');
 }
 },
 resetHint: function(event)
 {
 var input = $(this);
 if (!input.val()) {
 input.val(input.data('title'));
 }
 },
 removeHint: function(event)
 {
 var input = event.data.input;
 if (input.val() == input.data('title')) {
 input.val('');
 }
 },
 fetchSettings: function()
 {
 var form = $(this);
 if (!form.attr('id')) {
 return;
 }
 var data = null;
 eval("if (typeof(_"+ form.attr('id') +") != 'undefined') { data = _"+ form.attr('id') +"; }");
 if (!data) {
 return;
 }
 $.each(data, function(key, value) {
 var result = key.split('=', 2);
 form.find(':input[name="'+ result[0] +'"]').data(result[1], value);
 });
 },
 helpTooltips: function(elements)
 {
 if (!$('.tooltip').length) {
 $('body').append('<div class="tooltip"></div>');
 }
 $('form.form :input[title!=""]', elements).tooltip({
 position: 'center right',
 offset: [0, 20],
 effect: 'toggle',
 opacity: 1,
 tip: '.tooltip'
 });
 },
 optionsYN: function()
 {
 $(this).trigger('changeStatus');
 },
 optionsYNchange: function()
 {
 var input = $(this);
 var label = input.nextAll('label:first');
 label.find('span').hide();
 label.find('span.' + (input.attr('checked') ? 'yes' : 'no')).show();
 },
 openTab: function()
 {
 var formAction = Utils.getUrl($(this).attr('action'));
 if (Utils.getUrl() === formAction) {
 var tabId = $(this).parents('.tab').attr('id').substring(3);
 var tabUrl = $(this).parents('.plugin.tabbed').find('.tabs a#tab_link' + tabId).attr('href');
 $(this).attr('action', tabUrl);
 }
 }
}
Events.register(Form.bind);
var FormCheckbox = {
 classMain : 'customCheckbox',
 classOn : 'customCheckboxOn',
 classOnDisabled : 'customCheckboxOnDisabled',
 classOff : 'customCheckboxOff',
 classOffDisabled : 'customCheckboxOffDisabled',
 bind: function(elements)
 {
 $('form.form input[type="checkbox"]', elements).each(FormCheckbox.replace);
 },
 replace: function()
 {
 var input = $(this);
 var overlay = $('<a class="' + FormCheckbox.classMain + '" href="#"></a>');
 input.before(overlay);
 FormCheckbox.synchronize(input, overlay);
 input
 .click(FormCheckbox.onInputClick)
 .change(FormCheckbox.onInputChange)
 .bind('customChange', FormCheckbox.onInputCustomChange)
 .css('display', 'none')
 ;
 overlay
 .click(FormCheckbox.onOverlayClick)
 .keydown(FormCheckbox.onOverlayKeyDown)
 ;
 },
 synchronize: function(input, overlay)
 {
 overlay.removeClass().addClass(FormCheckbox.classMain);
 if (input.attr('disabled')) {
 if (input.attr('checked')) {
 overlay.addClass(FormCheckbox.classOnDisabled);
 } else {
 overlay.addClass(FormCheckbox.classOffDisabled);
 }
 } else if (input.attr('checked')) {
 overlay.addClass(FormCheckbox.classOn);
 } else {
 overlay.addClass(FormCheckbox.classOff);
 }
 },
 onInputClick: function(event)
 {
 $(this).trigger('customChange');
 },
 onInputChange: function(event)
 {
 event.preventDefault();
 return false;
 },
 onInputCustomChange: function(event)
 {
 var input = $(this);
 var overlay = input.parent().find('a.' + FormCheckbox.classMain);
 FormCheckbox.synchronize(input, overlay);
 },
 onLabelClick: function(event)
 {
 event.preventDefault();
 $('input#'+ $(this).attr('for')).trigger('click');
 return false;
 },
 onOverlayClick: function(event)
 {
 event.preventDefault();
 var overlay = $(this);
 var input = overlay.parent().find('input[type="checkbox"]:eq(0)');
 if (!input.attr('disabled')) {
 input.trigger('click');
 FormCheckbox.synchronize(input, overlay);
 input.trigger('change');
 }
 },
 onOverlayKeyDown: function(event)
 {
 if (event.keyCode == 32) {
 $(event.currentTarget).trigger('click');
 return false;
 }
 if (event.keyCode == 13) {
 $(event.currentTarget).closest('form').submit();
 return false;
 }
 }
}
var FormRadio = {
 classMain : 'customRadio',
 classOn : 'customRadioOn',
 classOnDisabled : 'customRadioOnDisabled',
 classOff : 'customRadioOff',
 classOffDisabled : 'customRadioOffDisabled',
 bind: function(elements)
 {
 var inputs = $('form.form input[type="radio"]', elements);
 inputs.each(FormRadio.replace);
 FormRadio.synchronization(inputs);
 },
 replace: function()
 {
 var input = $(this);
 var overlay = $('<a class="' + FormRadio.classMain + '" href="#"></a>');
 input.before(overlay);
 input
 .click(FormRadio.onInputClick)
 .css('display', 'none')
 ;
 $('label[for="' + input.attr('id') + '"]').click(FormRadio.onLabelClick);
 overlay.click(FormRadio.onOverlayClick).keydown(FormRadio.onOverlayKeyDown);
 },
 synchronization: function(inputs)
 {
 inputs.each(function() {
 var input = $(this);
 var overlay = input.parent().find('a.' + FormRadio.classMain);
 overlay.removeClass().addClass(FormRadio.classMain);
 if (input.attr('disabled')) {
 if (input.attr('checked')) {
 overlay.addClass(FormRadio.classOnDisabled);
 } else {
 overlay.addClass(FormRadio.classOffDisabled);
 }
 } else if (input.attr('checked')) {
 overlay.addClass(FormRadio.classOn);
 } else {
 overlay.addClass(FormRadio.classOff);
 }
 });
 },
 onInputClick: function(event)
 {
 var input = $(this);
 var inputs = input.closest('form').find('input[type="radio"][name="' + input.attr('name') + '"]');
 FormRadio.synchronization(inputs);
 },
 onLabelClick: function(event)
 {
 event.preventDefault();
 var label = $(this);
 var input = $('input#' + label.attr('for'));
 input.attr('checked', true);
 var inputs = input.closest('form').find('input[type="radio"][name="' + input.attr('name') + '"]');
 FormRadio.synchronization(inputs);
 },
 onOverlayClick: function(event)
 {
 event.preventDefault();
 var overlay = $(this);
 var input = overlay.parent().find('input[type="radio"]:eq(0)');
 var inputs = input.closest('form').find('input[type="radio"][name="' + input.attr('name') + '"]');
 if (!input.attr('disabled')) {
 input.attr('checked', true);
 FormRadio.synchronization(inputs);
 input.trigger('change');
 }
 },
 onOverlayKeyDown: function(event)
 {
 if (event.keyCode == 32) {
 $(event.currentTarget).trigger('click');
 }
 if (event.keyCode == 32) {
 return false;
 }
 }
}
var FormInput = {
 bind: function(elements)
 {
 $('form.form input[type="text"],form.form input[type="password"],form.form tex1tarea', elements).each(FormInput.replace);
 },
 replace: function()
 {
 var input = $(this);
 input.wrap('<div class="customInput"></div>');
 input.wrap('<div class="customInputLeft"></div>');
 input.wrap('<div class="customInputRight"></div>');
 }
}
var FormSelect = {
 bind: function(elements)
 {
 $('form.form select', elements).each(FormSelect.replace);
 },
 replace: function()
 {
 var select = $(this);
 if (select.attr('multiple')) {
 return;
 }
 var overlay = $(
 '<div class="customSelect">' +
 '<div class="customSelectLeft">' +
 '<div class="customSelectRight">' +
 '<div class="customSelectTitle"></div>' +
 '</div>' +
 '</div>' +
 '</div>'
 );
 select
 .before(overlay)
 .addClass('custom')
 .change(FormSelect.onSelectChange)
 ;
 var selectWidth =
 select.width() +
 parseInt(select.css('margin-left')) +
 parseInt(select.css('margin-right')) +
 parseInt(select.css('border-left-width')) +
 parseInt(select.css('border-right-width'))
 ;
 overlay
 .css('width', selectWidth + 'px')
 .click(FormSelect.overlayOnEvent)
 .mouseover(FormSelect.overlayOnEvent)
 .mouseout(FormSelect.overlayOnEvent)
 .find('.customSelectTitle').text(select.find('option:selected').text())
 ;
 },
 overlayOnEvent: function(event)
 {
 $(this).next().trigger(event.type);
 },
 onSelectChange: function(event)
 {
 var select = $(this);
 var overlay = select.prev().find('.customSelectTitle').text(select.find('option:selected').text());
 console.log(overlay);
 }
}
var FormCustomSelect = {
 bind: function(elements)
 {
 $('form select', elements).each(FormCustomSelect.replace);
 },
 replace: function()
 {
 var text = $(this).find(':selected').text();
 $(this).before('<span class="select">' + text + '</span>');
 $(this).change(function(){
 var text = $(this).find(':selected').text();
 $(this).siblings('span.select').text(text);
 });
 }
}
var FormSubmit = {
 classMain: 'customSubmit',
 bind: function(elements)
 {
 $('form.form input[type="submit"],form.form input[type="button"]', elements).each(FormSubmit.replace);
 },
 replace: function()
 {
 var input = $(this);
 var overlay = $('<a class="customButton" href="#"><span class="left"><!-- --></span><span class="title">'+ input.val() +'</span><span class="right"><!-- --></span></a>');
 input.before(overlay).hide().css('visibility', 'hidden');
 overlay.click(FormSubmit.onOverlayClick);
 },
 onOverlayClick: function(event)
 {
 event.preventDefault();
 $(this).next('input').trigger('click');
 }
}
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('A m={14:{9B:\'aL\',aw:\'eE...\',av:\'9S 2a eF\',bt:\'9S 2a eG 2a eH\',8J:\'eP 2a eW I (f)\',cv:\'eX by <i>aj a7</i>\',cr:\'eY 2a eZ aj a7 ei\',8N:\'a8\',91:\'a6\',98:\'ac\',8R:\'aM\',8Z:\'aM (ez)\',am:\'eA\',a3:\'a9\',al:\'a9 1p (ab)\',ae:\'aa\',ah:\'aa 1p (ab)\',8M:\'a8 (9E Y)\',93:\'a6 (9E 3i)\',94:\'ac\',ag:\'1:1\',3Q:\'ft %1 fC %2\',7Q:\'9S 2a 2f 2L, fe ad fj 2a 3B. d4 9E dk O 1G ad 35.\'},5m:\'M/d6/\',8B:\'d3.56\',69:\'cZ.56\',7f:63,9o:63,4Y:15,9O:15,6b:15,6v:15,4p:db,ay:0.75,9d:L,8p:5,3U:2,cO:3,5G:1i,bp:\'4i 3i\',bn:1,bf:L,ck:\'cT://M.dl/\',ch:\'dM\',b7:L,8F:[\'a\',\'5c\'],3g:[],cq:63,4m:0,96:50,71:1i,7T:L,4E:L,3O:\'5r\',8W:L,4c:\'28\',9q:\'28\',9Y:H,9W:H,9G:L,4H:ak,6k:ak,5v:L,1X:\'e7-e8\',8U:{2N:\'<R 1Z="M-2N"><5s>\'+\'<1J 1Z="M-35">\'+\'<a 23="#" 2k="{m.14.8M}">\'+\'<1A>{m.14.8N}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3G">\'+\'<a 23="#" 2k="{m.14.al}">\'+\'<1A>{m.14.a3}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3h">\'+\'<a 23="#" 2k="{m.14.ah}">\'+\'<1A>{m.14.ae}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-1G">\'+\'<a 23="#" 2k="{m.14.93}">\'+\'<1A>{m.14.91}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3B">\'+\'<a 23="#" 2k="{m.14.94}">\'+\'<1A>{m.14.98}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-1d-2H">\'+\'<a 23="#" 2k="{m.14.8J}">\'+\'<1A>{m.14.ag}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-2f">\'+\'<a 23="#" 2k="{m.14.8Z}" >\'+\'<1A>{m.14.8R}</1A></a>\'+\'</1J>\'+\'</5s></R>\',aQ:\'<R 1Z="M-fk"><5s>\'+\'<1J 1Z="M-35">\'+\'<a 23="#" 2k="{m.14.8M}" 2p="D m.35(k)">\'+\'<1A>{m.14.8N}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-1G">\'+\'<a 23="#" 2k="{m.14.93}" 2p="D m.1G(k)">\'+\'<1A>{m.14.91}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3B">\'+\'<a 23="#" 2k="{m.14.94}" 2p="D 1i">\'+\'<1A>{m.14.98}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-2f">\'+\'<a 23="#" 2k="{m.14.8Z}" 2p="D m.2f(k)">\'+\'<1A>{m.14.8R}</1A></a>\'+\'</1J>\'+\'</5s></R>\'+\'<R 1Z="M-1k"></R>\'+\'<R 1Z="M-dF"><R>\'+\'<1A 1Z="M-3L" 2k="{m.14.am}"><1A></1A></1A>\'+\'</R></R>\'},6e:[],86:L,11:[],88:[\'5v\',\'3A\',\'4c\',\'9q\',\'9Y\',\'9W\',\'1X\',\'3U\',\'dG\',\'dy\',\'dx\',\'a2\',\'dq\',\'dp\',\'do\',\'9V\',\'ct\',\'9G\',\'45\',\'5t\',\'3g\',\'4m\',\'K\',\'N\',\'8e\',\'71\',\'7T\',\'4E\',\'dm\',\'dn\',\'dr\',\'2J\',\'8W\',\'3Y\',\'5e\',\'3O\',\'89\',\'9J\',\'4H\',\'6k\',\'aq\',\'ds\',\'2R\',\'2S\',\'cj\',\'cp\',\'1e\'],1L:[],6p:0,8f:{x:[\'br\',\'Y\',\'4A\',\'3i\',\'bq\'],y:[\'5A\',\'V\',\'9T\',\'4i\',\'7s\']},79:{},9V:{},a2:{},89:{an:{},2e:{},b5:{}},47:[],5u:[],4F:{},4K:[],7k:[],5i:[],6Q:{},8Y:{},7r:[],3X:9r((5d.6M.6f().2y(/.+(?:9Z|du|dt|1z)[\\/: ]([\\d.]+)/)||[0,\'0\'])[1]),1z:(19.5H&&!1U.3F),4o:/cw/.1c(5d.6M),5p:/dK.+9Z:1\\.[0-8].+dL/.1c(5d.6M),$:C(1D){q(1D)D 19.8S(1D)},2o:C(2b,3e){2b[2b.W]=3e},18:C(ai,3W,46,5M,b9){A el=19.18(ai);q(3W)m.3E(el,3W);q(b9)m.S(el,{7Z:0,8c:\'1r\',9t:0});q(46)m.S(el,46);q(5M)5M.1V(el);D el},3E:C(el,3W){O(A x 3j 3W)el[x]=3W[x];D el},S:C(el,46){O(A x 3j 46){q(m.1z&&x==\'1w\'){q(46[x]>0.99)el.E.e1(\'6g\');J el.E.6g=\'aT(1w=\'+(46[x]*2W)+\')\'}J el.E[x]=46[x]}},24:C(el,1y,3u){A 4D,3Z,4C;q(1I 3u!=\'72\'||3u===H){A 2K=bW;3u={41:2K[2],2S:2K[3],6G:2K[4]}}q(1I 3u.41!=\'3Q\')3u.41=63;3u.2S=1j[3u.2S]||1j.au;3u.6y=m.3E({},1y);O(A 3d 3j 1y){A e=1H m.fx(el,3u,3d);4D=9r(m.8L(el,3d))||0;3Z=9r(1y[3d]);4C=3d!=\'1w\'?\'F\':\'\';e.3t(4D,3Z,4C)}},8L:C(el,1y){q(19.7N){D 19.7N.cf(el,H).bw(1y)}J{q(1y==\'1w\')1y=\'6g\';A 3e=el.5L[1y.26(/\\-(\\w)/g,C(a,b){D b.aE()})];q(1y==\'6g\')3e=3e.26(/aT\\(1w=([0-9]+)\\)/,C(a,b){D b/2W});D 3e===\'\'?1:3e}},6d:C(){A d=19,w=1U,4e=d.9I&&d.9I!=\'bd\'?d.5n:d.1k;A b=d.1k;A aR=(w.6Y&&w.aU)?w.6Y+w.aU:1j.2Q(b.aW,b.1M),aO=(w.6N&&1U.aV)?w.6N+w.aV:1j.2Q(b.aS,b.1Q),6V=m.1z?4e.aW:(d.5n.8K||54.6Y),6U=m.1z?1j.2Q(4e.aS,4e.8I):(d.5n.8I||54.6N);A K=m.1z?4e.8K:(d.5n.8K||54.6Y),N=m.1z?4e.8I:54.6N;m.3V={6V:1j.2Q(6V,aR),6U:1j.2Q(6U,aO),K:K,N:N,7B:m.1z?4e.7B:dO,7A:m.1z?4e.7A:dN}},6n:C(el){q(/5c/i.1c(el.3T)){A 6O=19.2z(\'1S\');O(A i=0;i<6O.W;i++){A u=6O[i].dR;q(u&&u.26(/^.*?#/,\'\')==el.29.3d){el=6O[i];5f}}}A p={x:el.4I,y:el.7L};4Q(el.aP){el=el.aP;p.x+=el.4I;p.y+=el.7L;q(el!=19.1k&&el!=19.5n){p.x-=el.7B;p.y-=el.7A}}D p},2H:C(a,2e,3t,Z){q(!a)a=m.18(\'a\',H,{1m:\'1r\'},m.2g);q(1I a.65==\'C\')D 2e;q(Z==\'3y\'){O(A i=0;i<m.4K.W;i++){q(m.4K[i]&&m.4K[i].a==a){m.4K[i].bG();m.4K[i]=H;D 1i}}m.b4=L}1C{1H m.5x(a,2e,3t,Z);D 1i}1E(e){D L}},9c:C(a,2e,3t){D m.2H(a,2e,3t,\'3y\')},85:C(){D m.18(\'R\',{1b:\'M-3y-T\',2h:m.8V(m.8U.aQ)})},4G:C(el,3T,1b){A 1l=el.2z(3T);O(A i=0;i<1l.W;i++){q((1H 4y(1b)).1c(1l[i].1b)){D 1l[i]}}D H},8V:C(s){s=s.26(/\\s/g,\' \');A 2n=/{m\\.14\\.([^}]+)\\}/g,68=s.2y(2n),14;q(68)O(A i=0;i<68.W;i++){14=68[i].26(2n,"$1");q(1I m.14[14]!=\'1T\')s=s.26(68[i],m.14[14])}D s},bS:C(){A 1l=19.2z(\'a\');O(A i=0;i<1l.W;i++){A Z=m.aY(1l[i]);q(Z&&!1l[i].aX){(C(){A t=Z;q(m.1x(m,\'dU\',{7l:1l[i],Z:t})){1l[i].2p=(Z==\'2L\')?C(){D m.2H(k)}:C(){D m.9c(k,{2J:t})}}})();1l[i].aX=L}}m.6h()},aY:C(el){q(el.6I==\'M\')D\'2L\';J q(el.6I==\'M-3a\')D\'3a\';J q(el.6I==\'M-1h\')D\'1h\';J q(el.6I==\'M-3D\')D\'3D\'},7V:C(a){O(A i=0;i<m.5i.W;i++){q(m.5i[i][0]==a){A c=m.5i[i][1];m.5i[i][1]=c.4Z(1);D c}}D H},bv:C(e){A 2b=m.6h();O(A i=0;i<2b.4O.W;i++){A a=2b.4O[i];q(m.4b(a,\'2J\')==\'3a\'&&m.4b(a,\'8W\'))m.2o(m.7k,a)}m.8O(0)},8O:C(i){q(!m.7k[i])D;A a=m.7k[i];A 5S=m.5W(m.4b(a,\'8e\'));q(!5S)5S=m.85();A 3a=1H m.7p(a,5S,1);3a.8z=C(){};3a.3s=C(){m.2o(m.5i,[a,5S]);m.8O(i+1)};3a.8q()},b8:C(){A 8P=0,6P=-1,11=m.11,B,1F;O(A i=0;i<11.W;i++){B=11[i];q(B){1F=B.Q.E.1F;q(1F&&1F>8P){8P=1F;6P=i}}}q(6P==-1)m.31=-1;J 11[6P].3I()},4b:C(a,61){a.65=a.2p;A p=a.65?a.65():H;a.65=H;D(p&&1I p[61]!=\'1T\')?p[61]:(1I m[61]!=\'1T\'?m[61]:H)},7x:C(a){A 1e=m.4b(a,\'1e\');q(1e)D 1e;D a.23},5W:C(1D){A 1R=m.$(1D),4t=m.8Y[1D],a={};q(!1R&&!4t)D H;q(!4t){4t=1R.4Z(L);4t.1D=\'\';m.8Y[1D]=4t;D 1R}J{D 4t.4Z(L)}},3H:C(d){q(d)m.8H.1V(d);m.8H.2h=\'\'},1B:C(B){q(!m.2F){m.2F=m.18(\'R\',{1b:\'M-cL\',62:\'\',2p:C(){q(m.1x(m,\'de\'))m.2f()}},{1n:\'2r\',1o:\'22\',Y:0,1w:0},m.2g,L);m.2l(1U,\'3L\',m.4T)}m.2F.E.1m=\'\';m.4T();m.2F.62+=\'|\'+B.P;q(m.5p&&m.b6)m.S(m.2F,{6A:\'7a(\'+m.5m+\'dc.aJ)\',1w:1});J m.24(m.2F,{1w:B.4m},m.96)},8r:C(P){q(!m.2F)D;q(1I P!=\'1T\')m.2F.62=m.2F.62.26(\'|\'+P,\'\');q((1I P!=\'1T\'&&m.2F.62!=\'\')||(m.2u&&m.4b(m.2u,\'4m\')))D;q(m.5p&&m.b6)m.S(m.2F,{6A:\'1r\',K:0,N:0});J m.24(m.2F,{1w:0},m.96,H,C(){m.S(m.2F,{1m:\'1r\',K:0,N:0})})},4T:C(B){m.6d();q(!m.2F)D;A h=(m.1z&&B&&B.Q)?2v(B.Q.E.V)+2v(B.Q.E.N)+(B.1a?B.1a.1s:0):0;m.S(m.2F,{K:m.3V.6V+\'F\',N:1j.2Q(m.3V.6U,h)+\'F\'})},9v:C(4V,B){A 1f=B=B||m.2Y();q(m.2u)D 1i;J m.1f=1f;1C{m.2u=4V;4V.2p()}1E(e){m.1f=m.2u=H}1C{q(!4V||B.3g[1]!=\'4f\')B.2f()}1E(e){}D 1i},7j:C(el,2m){A B=m.2Y(el);q(B){4V=B.8a(2m);D m.9v(4V,B)}J D 1i},35:C(el){D m.7j(el,-1)},1G:C(el){D m.7j(el,1)},6x:C(e){q(!e)e=1U.2E;q(!e.2G)e.2G=e.8x;q(1I e.2G.95!=\'1T\')D L;q(!m.1x(m,\'d2\',e))D L;A B=m.2Y();A 2m=H;aC(e.d1){2c 70:q(B)B.6L();D L;2c 32:2m=2;5f;2c 34:2c 39:2c 40:2m=1;5f;2c 8:2c 33:2c 37:2c 38:2m=-1;5f;2c 27:2c 13:2m=0}q(2m!==H){q(2m!=2)m.5j(19,1U.3F?\'9z\':\'9y\',m.6x);q(!m.b7)D L;q(e.5h)e.5h();J e.bR=1i;q(B){q(2m==0){B.2f()}J q(2m==2){q(B.1p)B.1p.ca()}J{q(B.1p)B.1p.3h();m.7j(B.P,2m)}D 1i}}D L},dd:C(16){m.2o(m.1L,m.3E(16,{21:\'21\'+m.6p++}))},cY:C(1v){A 3c=1v.2R;q(1I 3c==\'72\'){O(A i=0;i<3c.W;i++){A o={};O(A x 3j 1v)o[x]=1v[x];o.2R=3c[i];m.2o(m.5u,o)}}J{m.2o(m.5u,1v)}},87:C(7l,7D){A el,2n=/^M-Q-([0-9]+)$/;el=7l;4Q(el.29){q(el.6o!==1T)D el.6o;q(el.1D&&2n.1c(el.1D))D el.1D.26(2n,"$1");el=el.29}q(!7D){el=7l;4Q(el.29){q(el.3T&&m.6F(el)){O(A P=0;P<m.11.W;P++){A B=m.11[P];q(B&&B.a==el)D P}}el=el.29}}D H},2Y:C(el,7D){q(1I el==\'1T\')D m.11[m.31]||H;q(1I el==\'3Q\')D m.11[el]||H;q(1I el==\'9n\')el=m.$(el);D m.11[m.87(el,7D)]||H},6F:C(a){D(a.2p&&a.2p.cz().26(/\\s/g,\' \').2y(/m.(cG|e)cU/))},bk:C(){O(A i=0;i<m.11.W;i++)q(m.11[i]&&m.11[i].5w)m.b8()},1x:C(64,90,2K){D 64&&64[90]?(64[90](64,2K)!==1i):L},9x:C(e){q(!e)e=1U.2E;q(e.cS>1)D L;q(!e.2G)e.2G=e.8x;A el=e.2G;4Q(el.29&&!(/M-(2L|3B|3y|3L)/.1c(el.1b))){el=el.29}A B=m.2Y(el);q(B&&(B.5X||!B.5w))D L;q(B&&e.Z==\'8G\'){q(e.2G.95)D L;A 2y=el.1b.2y(/M-(2L|3B|3L)/);q(2y){m.2D={B:B,Z:2y[1],Y:B.x.G,K:B.x.I,V:B.y.G,N:B.y.I,b3:e.77,aZ:e.7n};m.2l(19,\'76\',m.6Z);q(e.5h)e.5h();q(/M-(2L|3y)-7J/.1c(B.T.1b)){B.3I();m.92=L}D 1i}J q(/M-3y/.1c(el.1b)&&m.31!=B.P){B.3I();B.4W(\'1q\')}}J q(e.Z==\'bU\'){m.5j(19,\'76\',m.6Z);q(m.2D){q(m.53&&m.2D.Z==\'2L\')m.2D.B.T.E.4M=m.53;A 3z=m.2D.3z;q(!3z&&!m.92&&!/(3B|3L)/.1c(m.2D.Z)){q(m.1x(B,\'dS\'))B.2f()}J q(3z||(!3z&&m.b4)){m.2D.B.4W(\'1q\')}q(m.2D.B.3S)m.2D.B.3S.E.1m=\'1r\';q(3z)m.1x(m.2D.B,\'fi\',m.2D);q(3z)m.4T(B);m.92=1i;m.2D=H}J q(/M-2L-7J/.1c(el.1b)){el.E.4M=m.53}}D 1i},6Z:C(e){q(!m.2D)D L;q(!e)e=1U.2E;A a=m.2D,B=a.B;q(B.1h){q(!B.3S)B.3S=m.18(\'R\',H,{1n:\'2r\',K:B.x.I+\'F\',N:B.y.I+\'F\',Y:B.x.cb+\'F\',V:B.y.cb+\'F\',1F:4,6A:(m.1z?\'fg\':\'1r\'),1w:.ff},B.Q,L);q(B.3S.E.1m==\'1r\')B.3S.E.1m=\'\'}a.dX=e.77-a.b3;a.dY=e.7n-a.aZ;A 8w=1j.fo(1j.b0(a.dX,2)+1j.b0(a.dY,2));q(!a.3z)a.3z=(a.Z!=\'2L\'&&8w>0)||(8w>(m.fl||5));q(a.3z&&e.77>5&&e.7n>5){q(!m.1x(B,\'fd\',a))D 1i;q(a.Z==\'3L\')B.3L(a);J{B.8t(a.Y+a.dX,a.V+a.dY);q(a.Z==\'2L\')B.T.E.4M=\'3B\'}}D 1i},az:C(e){1C{q(!e)e=1U.2E;A 5V=/f6/i.1c(e.Z);q(!e.2G)e.2G=e.8x;q(m.1z)e.8y=5V?e.f5:e.f4;A B=m.2Y(e.2G);q(!B.5w)D;q(!B||!e.8y||m.2Y(e.8y,L)==B||m.2D)D;m.1x(B,5V?\'f3\':\'f7\',e);O(A i=0;i<B.1L.W;i++)(C(){A o=m.$(\'21\'+B.1L[i]);q(o&&o.7q){q(5V)m.S(o,{1o:\'22\',1m:\'\'});m.24(o,{1w:5V?o.1w:0},o.2B)}})()}1E(e){}},2l:C(el,2E,3P){q(el==19&&2E==\'4q\')m.2o(m.7r,3P);1C{el.2l(2E,3P,1i)}1E(e){1C{el.b2(\'6j\'+2E,3P);el.f8(\'6j\'+2E,3P)}1E(e){el[\'6j\'+2E]=3P}}},5j:C(el,2E,3P){1C{el.5j(2E,3P,1i)}1E(e){1C{el.b2(\'6j\'+2E,3P)}1E(e){el[\'6j\'+2E]=H}}},7m:C(i){q(m.86&&m.6e[i]&&m.6e[i]!=\'1T\'){A 1S=19.18(\'1S\');1S.4L=C(){1S=H;m.7m(i+1)};1S.1e=m.6e[i]}},bT:C(3Q){q(3Q&&1I 3Q!=\'72\')m.8p=3Q;A 2b=m.6h();O(A i=0;i<2b.4P.W&&i<m.8p;i++){m.2o(m.6e,m.7x(2b.4P[i]))}q(m.1X)1H m.5U(m.1X,C(){m.7m(0)});J m.7m(0);q(m.69)A 56=m.18(\'1S\',{1e:m.5m+m.69})},6R:C(){q(!m.2g){m.6d();m.5b=m.1z&&m.3X<7;m.c3=m.5b&&7P.fr==\'fE:\';O(A x 3j m.7b){q(1I m[x]!=\'1T\')m.14[x]=m[x];J q(1I m.14[x]==\'1T\'&&1I m.7b[x]!=\'1T\')m.14[x]=m.7b[x]}m.2g=m.18(\'R\',{1b:\'M-2g\'},{1n:\'2r\',Y:0,V:0,K:\'2W%\',1F:m.4p,9l:\'aL\'},19.1k,L);m.2s=m.18(\'a\',{1b:\'M-2s\',2k:m.14.av,2h:m.14.aw,23:\'bo:;\'},{1n:\'2r\',V:\'-4h\',1w:m.ay,1F:1},m.2g);m.8H=m.18(\'R\',H,{1m:\'1r\'},m.2g);m.36=m.18(\'R\',{1b:\'M-36\'},{1o:(m.4o&&m.3X<cu)?\'22\':\'1q\'},m.2g,1);m.3v=m.18(\'R\',H,{a1:\'a0\',fH:\'fI\'},H,L);1j.fK=C(t,b,c,d){D c*t/d+b};1j.au=C(t,b,c,d){D c*(t/=d)*t+b};1j.9h=C(t,b,c,d){D-c*(t/=d)*(t-2)+b};m.cF=m.5b;m.cE=((1U.3F&&m.3X<9)||5d.a5==\'a4\'||(m.1z&&m.3X<5.5));m.1x(k,\'fu\')}},4q:C(){q(m.7K)D;m.7K=L;O(A i=0;i<m.7r.W;i++)m.7r[i]()},8T:C(){A el,1l,5H=[],4P=[],4O=[],3m={},2n;O(A i=0;i<m.8F.W;i++){1l=19.2z(m.8F[i]);O(A j=0;j<1l.W;j++){el=1l[j];2n=m.6F(el);q(2n){m.2o(5H,el);q(2n[0]==\'m.2H\')m.2o(4P,el);J q(2n[0]==\'m.9c\')m.2o(4O,el);A g=m.4b(el,\'2R\')||\'1r\';q(!3m[g])3m[g]=[];m.2o(3m[g],el)}}}m.4N={5H:5H,3m:3m,4P:4P,4O:4O};D m.4N},6h:C(){D m.4N||m.8T()},2f:C(el){A B=m.2Y(el);q(B)B.2f();D 1i}};m.fx=C(30,1v,1y){k.1v=1v;k.30=30;k.1y=1y;q(!1v.at)1v.at={}};m.fx.58={9P:C(){(m.fx.3J[k.1y]||m.fx.3J.aA)(k);q(k.1v.3J)k.1v.3J.ar(k.30,k.4r,k)},3t:C(ao,2a,4C){k.9Q=(1H 7z()).7C();k.4D=ao;k.3Z=2a;k.4C=4C;k.4r=k.4D;k.G=k.9R=0;A 54=k;C t(6m){D 54.3J(6m)}t.30=k.30;q(t()&&m.47.2o(t)==1){m.ap=fB(C(){A 47=m.47;O(A i=0;i<47.W;i++)q(!47[i]())47.fz(i--,1);q(!47.W){fJ(m.ap)}},13)}},3J:C(6m){A t=(1H 7z()).7C();q(6m||t>=k.1v.41+k.9Q){k.4r=k.3Z;k.G=k.9R=1;k.9P();k.1v.6y[k.1y]=L;A 9M=L;O(A i 3j k.1v.6y)q(k.1v.6y[i]!==L)9M=1i;q(9M){q(k.1v.6G)k.1v.6G.ar(k.30)}D 1i}J{A n=t-k.9Q;k.9R=n/k.1v.41;k.G=k.1v.2S(n,0,1,k.1v.41);k.4r=k.4D+((k.3Z-k.4D)*k.G);k.9P()}D L}};m.3E(m.fx,{3J:{1w:C(fx){m.S(fx.30,{1w:fx.4r})},aA:C(fx){q(fx.30.E&&fx.30.E[fx.1y]!=H)fx.30.E[fx.1y]=fx.4r+fx.4C;J fx.30[fx.1y]=fx.4r}}});m.5U=C(1X,3s){k.3s=3s;k.1X=1X;A v=m.3X,43;k.9p=m.1z&&v>=5.5&&v<7;q(!1X){q(3s)3s();D}m.6R();k.2i=m.18(\'2i\',{ey:0},{1o:\'1q\',1n:\'2r\',ex:\'eq\',K:0},m.2g,L);A 4g=m.18(\'4g\',H,H,k.2i,1);k.2I=[];O(A i=0;i<=8;i++){q(i%3==0)43=m.18(\'43\',H,{N:\'28\'},4g,L);k.2I[i]=m.18(\'2I\',H,H,43,L);A E=i!=4?{ep:0,eh:0}:{1n:\'4j\'};m.S(k.2I[i],E)}k.2I[4].1b=1X+\' M-1a\';k.aI()};m.5U.58={aI:C(){A 1e=m.5m+(m.ef||"ed/")+k.1X+".aJ";A aK=m.4o?m.2g:H;k.3M=m.18(\'1S\',H,{1n:\'2r\',V:\'-4h\'},aK,L);A 3x=k;k.3M.4L=C(){3x.aG()};k.3M.1e=1e},aG:C(){A o=k.1s=k.3M.K/4,G=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],1B={N:(2*o)+\'F\',K:(2*o)+\'F\'};O(A i=0;i<=8;i++){q(G[i]){q(k.9p){A w=(i==1||i==7)?\'2W%\':k.3M.K+\'F\';A R=m.18(\'R\',H,{K:\'2W%\',N:\'2W%\',1n:\'4j\',2q:\'1q\'},k.2I[i],L);m.18(\'R\',H,{6g:"em:ek.bH.eB(eC=eT, 1e=\'"+k.3M.1e+"\')",1n:\'2r\',K:w,N:k.3M.N+\'F\',Y:(G[i][0]*o)+\'F\',V:(G[i][1]*o)+\'F\'},R,L)}J{m.S(k.2I[i],{6A:\'7a(\'+k.3M.1e+\') \'+(G[i][0]*o)+\'F \'+(G[i][1]*o)+\'F\'})}q(1U.3F&&(i==3||i==5))m.18(\'R\',H,1B,k.2I[i],L);m.S(k.2I[i],1B)}}k.3M=H;q(m.4F[k.1X])m.4F[k.1X].6a();m.4F[k.1X]=k;q(k.3s)k.3s()},4B:C(G,1s,aF,2B,2S){A B=k.B,3C=B.Q.E,1s=1s||0,G=G||{x:B.x.G+1s,y:B.y.G+1s,w:B.x.U(\'1W\')-2*1s,h:B.y.U(\'1W\')-2*1s};q(aF)k.2i.E.1o=(G.h>=4*k.1s)?\'22\':\'1q\';m.S(k.2i,{Y:(G.x-k.1s)+\'F\',V:(G.y-k.1s)+\'F\',K:(G.w+2*k.1s)+\'F\'});G.w-=2*k.1s;G.h-=2*k.1s;m.S(k.2I[4],{K:G.w>=0?G.w+\'F\':0,N:G.h>=0?G.h+\'F\':0});q(k.9p)k.2I[3].E.N=k.2I[5].E.N=k.2I[4].E.N},6a:C(aB){q(aB)k.2i.E.1o=\'1q\';J m.3H(k.2i)}};m.6q=C(B,1B){k.B=B;k.1B=1B;k.3p=1B==\'x\'?\'bN\':\'bM\';k.3l=k.3p.6f();k.5Z=1B==\'x\'?\'bZ\':\'bY\';k.6w=k.5Z.6f();k.9u=1B==\'x\'?\'bO\':\'bP\';k.aD=k.9u.6f();k.1g=k.3o=0};m.6q.58={U:C(P){aC(P){2c\'8b\':D k.1N+k.3k+(k.t-m.2s[\'1s\'+k.3p])/2;2c\'8k\':D k.G+k.cb+k.1g+(k.I-m.2s[\'1s\'+k.3p])/2;2c\'1W\':D k.I+2*k.cb+k.1g+k.3o;2c\'5a\':D k.4l-k.3n-k.4n;2c\'7F\':D k.U(\'5a\')-2*k.cb-k.1g-k.3o;2c\'60\':D k.G-(k.B.1a?k.B.1a.1s:0);2c\'82\':D k.U(\'1W\')+(k.B.1a?2*k.B.1a.1s:0);2c\'2j\':D k.1Y?1j.5g((k.I-k.1Y)/2):0}},7E:C(){k.cb=(k.B.T[\'1s\'+k.3p]-k.t)/2;k.4n=m[\'9t\'+k.9u]},7U:C(){k.t=k.B.el[k.3l]?2v(k.B.el[k.3l]):k.B.el[\'1s\'+k.3p];k.1N=k.B.1N[k.1B];k.3k=(k.B.el[\'1s\'+k.3p]-k.t)/2;q(k.1N<1){k.1N=(m.3V[k.3l]/2)+m.3V[\'2d\'+k.5Z]}},7I:C(){A B=k.B;k.2O=\'28\';q(B.9q==\'4A\')k.2O=\'4A\';J q(1H 4y(k.6w).1c(B.4c))k.2O=H;J q(1H 4y(k.aD).1c(B.4c))k.2O=\'2Q\';k.G=k.1N-k.cb+k.3k;k.I=1j.3q(k.1d,B[\'2Q\'+k.3p]||k.1d);k.2Z=B.5v?1j.3q(B[\'3q\'+k.3p],k.1d):k.1d;q(B.2M&&B.3A){k.I=B[k.3l];k.1Y=k.1d}q(k.1B==\'x\'&&m.5G)k.2Z=B.4H;k.2G=B[\'2G\'+k.1B.aE()];k.3n=m[\'9t\'+k.5Z];k.2d=m.3V[\'2d\'+k.5Z];k.4l=m.3V[k.3l]},6z:C(i){A B=k.B;q(B.2M&&(B.3A||m.5G)){k.1Y=i;k.I=1j.2Q(k.I,k.1Y);B.T.E[k.6w]=k.U(\'2j\')+\'F\'}J k.I=i;B.T.E[k.3l]=i+\'F\';B.Q.E[k.3l]=k.U(\'1W\')+\'F\';q(B.1a)B.1a.4B();q(B.3S)B.3S.E[k.3l]=i+\'F\';q(B.2C){A d=B.2t;q(k.7S===1T)k.7S=B.1t[\'1s\'+k.3p]-d[\'1s\'+k.3p];d.E[k.3l]=(k.I-k.7S)+\'F\';q(k.1B==\'x\')B.42.E.K=\'28\';q(B.1k)B.1k.E[k.3l]=\'28\'}q(k.1B==\'x\'&&B.1u)B.4R(L);q(k.1B==\'x\'&&B.1p&&B.2M){q(i==k.1d)B.1p.57(\'1d-2H\');J B.1p.4u(\'1d-2H\')}},9a:C(i){k.G=i;k.B.Q.E[k.6w]=i+\'F\';q(k.B.1a)k.B.1a.4B()}};m.5x=C(a,2e,3t,3f){q(19.cg&&m.1z&&!m.7K){m.2l(19,\'4q\',C(){1H m.5x(a,2e,3t,3f)});D}k.a=a;k.3t=3t;k.3f=3f||\'2L\';k.2C=(3f==\'3y\');k.2M=!k.2C;m.86=1i;k.1L=[];k.1f=m.1f;m.1f=H;m.6R();A P=k.P=m.11.W;O(A i=0;i<m.88.W;i++){A 3d=m.88[i];k[3d]=2e&&1I 2e[3d]!=\'1T\'?2e[3d]:m[3d]}q(!k.1e)k.1e=a.23;A el=(2e&&2e.9H)?m.$(2e.9H):a;el=k.aH=el.2z(\'1S\')[0]||el;k.6D=el.1D||a.1D;q(!m.1x(k,\'eJ\'))D L;O(A i=0;i<m.11.W;i++){q(m.11[i]&&m.11[i].a==a&&!(k.1f&&k.3g[1]==\'4f\')){m.11[i].3I();D 1i}}q(!m.eN)O(A i=0;i<m.11.W;i++){q(m.11[i]&&m.11[i].aH!=el&&!m.11[i].7w){m.11[i].6r()}}m.11[P]=k;q(!m.9d&&!m.2u){q(m.11[P-1])m.11[P-1].2f();q(1I m.31!=\'1T\'&&m.11[m.31])m.11[m.31].2f()}k.el=el;k.1N=m.6n(el);m.6d();A x=k.x=1H m.6q(k,\'x\');x.7U();A y=k.y=1H m.6q(k,\'y\');y.7U();q(/5c/i.1c(el.3T))k.cm(el);k.Q=m.18(\'R\',{1D:\'M-Q-\'+k.P,1b:\'M-Q \'+k.9J},{1o:\'1q\',1n:\'2r\',1F:m.4p+=2},H,L);k.Q.eK=k.Q.d7=m.az;q(k.3f==\'2L\'&&k.3U==2)k.3U=0;q(!k.1X||(k.1f&&k.2M&&k.3g[1]==\'4f\')){k[k.3f+\'8h\']()}J q(m.4F[k.1X]){k.8l();k[k.3f+\'8h\']()}J{k.5Q();A B=k;1H m.5U(k.1X,C(){B.8l();B[B.3f+\'8h\']()})}D L};m.5x.58={8s:C(e){1U.7P.23=k.1e},8l:C(){A 1a=k.1a=m.4F[k.1X];1a.B=k;1a.2i.E.1F=k.Q.E.1F-1;m.4F[k.1X]=H},5Q:C(){q(k.7w||k.2s)D;k.2s=m.2s;A B=k;k.2s.2p=C(){B.6r()};q(!m.1x(k,\'eI\'))D;A B=k,l=k.x.U(\'8b\')+\'F\',t=k.y.U(\'8b\')+\'F\';q(!2P&&k.1f&&k.3g[1]==\'4f\')A 2P=k.1f;q(2P){l=2P.x.U(\'8k\')+\'F\';t=2P.y.U(\'8k\')+\'F\';k.2s.E.1F=m.4p++}49(C(){q(B.2s)m.S(B.2s,{Y:l,V:t,1F:m.4p++})},2W)},eQ:C(){A B=k;A 1S=19.18(\'1S\');k.T=1S;1S.4L=C(){q(m.11[B.P])B.5q()};q(m.eS)1S.ej=C(){D 1i};1S.1b=\'M-2L\';m.S(1S,{1o:\'1q\',1m:\'3w\',1n:\'2r\',aq:\'4h\',1F:3});1S.2k=m.14.7Q;q(m.4o)m.2g.1V(1S);q(m.1z&&m.ev)1S.1e=H;1S.1e=k.1e;k.5Q()},er:C(){q(!m.1x(k,\'es\'))D;k.T=m.7V(k.a);q(!k.T)k.T=m.5W(k.8e);q(!k.T)k.T=m.85();k.9N([\'6B\']);q(k.6B){A 1k=m.4G(k.T,\'R\',\'M-1k\');q(1k)1k.1V(k.6B);k.6B.E.1m=\'3w\'}m.1x(k,\'f1\');A 1t=k.1t=k.T;q(/(3D|1h)/.1c(k.2J))k.7O(1t);m.2g.1V(k.Q);m.S(k.Q,{1n:\'fs\',7Z:\'0 \'+m.9O+\'F 0 \'+m.4Y+\'F\'});k.T=m.18(\'R\',{1b:\'M-3y\'},{1n:\'4j\',1F:3,2q:\'1q\'},k.Q);k.42=m.18(\'R\',H,H,k.T,1);k.42.1V(1t);m.S(1t,{1n:\'4j\',1m:\'3w\',9l:m.14.9B||\'\'});q(k.K)1t.E.K=k.K+\'F\';q(k.N)m.S(1t,{N:k.N+\'F\',2q:\'1q\'});q(1t.1M<k.4H)1t.E.K=k.4H+\'F\';q(k.2J==\'3a\'&&!m.7V(k.a)){k.5Q();A 3a=1H m.7p(k.a,1t);A B=k;3a.3s=C(){q(m.11[B.P])B.5q()};3a.8z=C(){7P.23=B.1e};3a.8q()}J q(k.2J==\'1h\'&&k.3O==\'5r\'){k.6T()}J k.5q()},5q:C(){1C{q(!k.T)D;k.T.4L=H;q(k.7w)D;J k.7w=L;A x=k.x,y=k.y;q(k.2s){m.S(k.2s,{V:\'-4h\'});k.2s=H;m.1x(k,\'cl\')}q(k.2M){x.1d=k.T.K;y.1d=k.T.N;m.S(k.T,{K:x.t+\'F\',N:y.t+\'F\'});k.Q.1V(k.T);m.2g.1V(k.Q)}J q(k.83)k.83();x.7E();y.7E();m.S(k.Q,{Y:(x.1N+x.3k-x.cb)+\'F\',V:(y.1N+x.3k-y.cb)+\'F\'});k.9i();k.bg();A 2T=x.1d/y.1d;x.7I();k.2O(x);y.7I();k.2O(y);q(k.2C)k.af();q(k.1u)k.4R(0,1);q(k.5v){q(k.2M)k.cA(2T);J k.7M();A 1P=k.1p;q(1P&&k.1f&&1P.2N&&1P.ax){A G=1P.cn.1n||\'\',p;O(A 1B 3j m.8f)O(A i=0;i<5;i++){p=k[1B];q(G.2y(m.8f[1B][i])){p.G=k.1f[1B].G+(k.1f[1B].1g-p.1g)+(k.1f[1B].I-p.I)*[0,0,.5,1,1][i];q(1P.ax==\'fD\'){q(p.G+p.I+p.1g+p.3o>p.2d+p.4l-p.4n)p.G=p.2d+p.4l-p.I-p.3n-p.4n-p.1g-p.3o;q(p.G<p.2d+p.3n)p.G=p.2d+p.3n}}}}q(k.2M&&k.x.1d>(k.x.1Y||k.x.I)){k.bj();q(k.1L.W==1)k.4R()}}k.9j()}1E(e){k.8s(e)}},7O:C(5M,28){A c=m.4G(5M,\'6J\',\'M-1k\');q(/(1h|3D)/.1c(k.2J)){q(k.3Y)c.E.K=k.3Y+\'F\';q(k.5e)c.E.N=k.5e+\'F\'}},6T:C(){q(k.aN)D;A B=k;k.1k=m.4G(k.1t,\'6J\',\'M-1k\');q(k.2J==\'1h\'){k.5Q();A 5k=m.3v.4Z(1);k.1k.1V(5k);k.fc=k.1t.1M;q(!k.3Y)k.3Y=5k.1M;A 55=k.1t.1Q-k.1k.1Q,h=k.5e||m.3V.N-55-m.6b-m.6v,4L=k.3O==\'5r\'?\' 4L="q (m.11[\'+k.P+\']) m.11[\'+k.P+\'].5q()" \':\'\';k.1k.2h+=\'<1h 3d="m\'+(1H 7z()).7C()+\'" cX="0" P="\'+k.P+\'" \'+\' cR="L" E="K:\'+k.3Y+\'F; N:\'+h+\'F" \'+4L+\' 1e="\'+k.1e+\'"></1h>\';k.5k=k.1k.2z(\'R\')[0];k.1h=k.1k.2z(\'1h\')[0];q(k.3O==\'5z\')k.7R()}q(k.2J==\'3D\'){k.1k.1D=k.1k.1D||\'m-dg-1D-\'+k.P;A a=k.89;q(!a.2e)a.2e={};q(1I a.2e.b1==\'1T\')a.2e.b1=\'cP\';q(9g)9g.cJ(k.1e,k.1k.1D,k.3Y,k.5e,a.da||\'7\',a.eb,a.an,a.2e,a.b5)}k.aN=L},83:C(){q(k.1h&&!k.5e){k.1h.E.N=k.1k.E.N=k.7X()+\'F\'}k.1t.1V(m.3v);q(!k.x.1d)k.x.1d=k.1t.1M;k.y.1d=k.1t.1Q;k.1t.8C(m.3v);q(m.1z&&k.9X>2v(k.1t.5L.N)){k.9X=2v(k.1t.5L.N)}m.S(k.Q,{1n:\'2r\',7Z:\'0\'});m.S(k.T,{K:k.x.t+\'F\',N:k.y.t+\'F\'})},7X:C(){A h;1C{A 2A=k.1h.8Q||k.1h.67.19;A 3v=2A.18(\'R\');3v.E.a1=\'a0\';2A.1k.1V(3v);h=3v.7L;q(m.1z)h+=2v(2A.1k.5L.6b)+2v(2A.1k.5L.6v)-1}1E(e){h=dJ}D h},7R:C(){A 4U=k.1t.1M-k.5k.1M;m.3H(k.5k);q(4U<0)4U=0;A 55=k.1t.1Q-k.1h.1Q;m.S(k.1h,{K:1j.9s(k.x.I-4U)+\'F\',N:1j.9s(k.y.I-55)+\'F\'});m.S(k.1k,{K:k.1h.E.K,N:k.1h.E.N});k.59=k.1h;k.2t=k.59},af:C(){k.7O(k.1t);q(k.2J==\'3D\'&&k.3O==\'5r\')k.6T();q(k.x.I<k.x.1d&&!k.71)k.x.I=k.x.1d;q(k.y.I<k.y.1d&&!k.7T)k.y.I=k.y.1d;k.2t=k.1t;m.S(k.42,{1n:\'4j\',K:k.x.I+\'F\'});m.S(k.1t,{8c:\'1r\',K:\'28\',N:\'28\'});A 1R=m.4G(k.1t,\'6J\',\'M-1k\');q(1R&&!/(1h|3D)/.1c(k.2J)){A 51=1R;1R=m.18(51.fv,H,{2q:\'1q\'},H,L);51.29.eg(1R,51);1R.1V(m.3v);1R.1V(51);A 4U=k.1t.1M-1R.1M;A 55=k.1t.1Q-1R.1Q;1R.8C(m.3v);A 78=m.4o||5d.a5==\'a4\'?1:0;m.S(1R,{K:(k.x.I-4U-78)+\'F\',N:(k.y.I-55)+\'F\',2q:\'28\',1n:\'4j\'});q(78&&51.1Q>1R.1Q){1R.E.K=(2v(1R.E.K)+78)+\'F\'}k.59=1R;k.2t=k.59}q(k.1h&&k.3O==\'5r\')k.7R();q(!k.59&&k.y.I<k.42.1Q)k.2t=k.T;q(k.2t==k.T&&!k.71&&!/(1h|3D)/.1c(k.2J)){k.x.I+=17}q(k.2t&&k.2t.1Q>k.2t.29.1Q){49("1C { m.11["+k.P+"].2t.E.2q = \'28\'; } 1E(e) {}",m.7f)}},cm:C(5c){A c=5c.eo.8u(\',\');O(A i=0;i<c.W;i++)c[i]=2v(c[i]);q(5c.d8.6f()==\'dC\'){k.x.1N+=c[0]-c[2];k.y.1N+=c[1]-c[2];k.x.t=k.y.t=2*c[2]}J{A 5B,5O,5C=5B=c[0],5K=5O=c[1];O(A i=0;i<c.W;i++){q(i%2==0){5C=1j.3q(5C,c[i]);5B=1j.2Q(5B,c[i])}J{5K=1j.3q(5K,c[i]);5O=1j.2Q(5O,c[i])}}k.x.1N+=5C;k.x.t=5B-5C;k.y.1N+=5K;k.y.t=5O-5K}},2O:C(p,5o){A 4v,2P=p.2G,1B=p==k.x?\'x\':\'y\';q(2P&&2P.2y(/ /)){4v=2P.8u(\' \');2P=4v[0]}q(2P&&m.$(2P)){p.G=m.6n(m.$(2P))[1B];q(4v&&4v[1]&&4v[1].2y(/^[-]?[0-9]+F$/))p.G+=2v(4v[1]);q(p.I<p.2Z)p.I=p.2Z}J q(p.2O==\'28\'||p.2O==\'4A\'){A 7Y=1i;A 5l=p.B.5v;q(p.2O==\'4A\')p.G=1j.5g(p.2d+(p.4l+p.3n-p.4n-p.U(\'1W\'))/2);J p.G=1j.5g(p.G-((p.U(\'1W\')-p.t)/2));q(p.G<p.2d+p.3n){p.G=p.2d+p.3n;7Y=L}q(!5o&&p.I<p.2Z){p.I=p.2Z;5l=1i}q(p.G+p.U(\'1W\')>p.2d+p.4l-p.4n){q(!5o&&7Y&&5l){p.I=p.U(1B==\'y\'?\'5a\':\'7F\')}J q(p.U(\'1W\')<p.U(\'5a\')){p.G=p.2d+p.4l-p.4n-p.U(\'1W\')}J{p.G=p.2d+p.3n;q(!5o&&5l)p.I=p.U(1B==\'y\'?\'5a\':\'7F\')}}q(!5o&&p.I<p.2Z){p.I=p.2Z;5l=1i}}J q(p.2O==\'2Q\'){p.G=1j.dz(p.G-p.I+p.t)}q(p.G<p.3n){A cB=p.G;p.G=p.3n;q(5l&&!5o)p.I=p.I-(p.G-cB)}},cA:C(2T){A x=k.x,y=k.y,7i=1i,3b=1j.3q(x.1d,x.I),4a=1j.3q(y.1d,y.I),3A=(k.3A||m.5G);q(3b/4a>2T){ 3b=4a*2T;q(3b<x.2Z){3b=x.2Z;4a=3b/2T}7i=L}J q(3b/4a<2T){ 4a=3b/2T;7i=L}q(m.5G&&x.1d<x.2Z){x.1Y=x.1d;y.I=y.1Y=y.1d}J q(k.3A){x.1Y=3b;y.1Y=4a}J{x.I=3b;y.I=4a}k.7M(3A?H:2T);q(3A&&y.I<y.1Y){y.1Y=y.I;x.1Y=y.I*2T}q(7i||3A){x.G=x.1N-x.cb+x.3k;x.2Z=x.I;k.2O(x,L);y.G=y.1N-y.cb+y.3k;y.2Z=y.I;k.2O(y,L);q(k.1u)k.4R()}},7M:C(2T){A x=k.x,y=k.y;q(k.1u){4Q(y.I>k.6k&&x.I>k.4H&&y.U(\'1W\')>y.U(\'5a\')){y.I-=10;q(2T)x.I=y.I*2T;k.4R(0,1)}}},dQ:C(){q(k.2t){A h=/1h/i.1c(k.2t.3T)?k.7X()+1+\'F\':\'28\';q(k.1k)k.1k.E.N=h;k.2t.E.N=h;k.y.6z(k.1t.1Q);m.4T(k)}},9j:C(){A x=k.x,y=k.y;k.4W(\'1q\');m.1x(k,\'dP\');q(k.1p&&k.1p.2X)k.1p.2X.4X();k.9w(1,{Q:{K:x.U(\'1W\'),N:y.U(\'1W\'),Y:x.G,V:y.G},T:{Y:x.1g+x.U(\'2j\'),V:y.1g+y.U(\'2j\'),K:x.1Y||x.I,N:y.1Y||y.I}},m.7f)},9w:C(1K,2a,2B){A 5F=k.3g,8n=1K?(k.1f?k.1f.a:H):m.2u,t=(5F[1]&&8n&&m.4b(8n,\'3g\')[1]==5F[1])?5F[1]:5F[0];q(k[t]&&t!=\'2H\'){k[t](1K,2a);D}q(k.1a&&!k.3U){q(1K)k.1a.4B();J k.1a.6a((k.2C&&k.4E))}q(!1K)k.8D();A B=k,x=B.x,y=B.y,2S=k.2S;q(!1K)2S=k.cj||2S;A 5z=1K?C(){q(B.1a)B.1a.2i.E.1o="22";49(C(){B.6S()},50)}:C(){B.5R()};q(1K)m.S(k.Q,{K:x.t+\'F\',N:y.t+\'F\'});q(1K&&k.2C){m.S(k.Q,{Y:(x.1N-x.cb+x.3k)+\'F\',V:(y.1N-y.cb+y.3k)+\'F\'})}q(k.cp){m.S(k.Q,{1w:1K?0:1});m.3E(2a.Q,{1w:1K})}m.24(k.Q,2a.Q,{41:2B,2S:2S,3J:C(3e,2K){q(B.1a&&B.3U&&2K.1y==\'V\'){A 5E=1K?2K.G:1-2K.G;A G={w:x.t+(x.U(\'1W\')-x.t)*5E,h:y.t+(y.U(\'1W\')-y.t)*5E,x:x.1N+(x.G-x.1N)*5E,y:y.1N+(y.G-y.1N)*5E};B.1a.4B(G,0,1)}q(B.2C){q(2K.1y==\'Y\')B.42.E.Y=(x.G-3e)+\'F\';q(2K.1y==\'V\')B.42.E.V=(y.G-3e)+\'F\'}}});m.24(k.T,2a.T,2B,2S,5z);q(1K){k.Q.E.1o=\'22\';k.T.E.1o=\'22\';q(k.2C)k.1t.E.1o=\'22\';k.a.1b+=\' M-4z-4c\'}},6i:C(1K,2a){k.3U=1i;A B=k,t=1K?m.7f:0;q(1K){m.24(k.Q,2a.Q,0);m.S(k.Q,{1w:0,1o:\'22\'});m.24(k.T,2a.T,0);k.T.E.1o=\'22\';m.24(k.Q,{1w:1},t,H,C(){B.6S()})}q(k.1a){k.1a.2i.E.1F=k.Q.E.1F;A 7d=1K||-1,1s=k.1a.1s,8m=1K?3:1s,8i=1K?1s:3;O(A i=8m;7d*i<=7d*8i;i+=7d,t+=25){(C(){A o=1K?8i-i:8m-i;49(C(){B.1a.4B(0,o,1)},t)})()}}q(1K){}J{49(C(){q(B.1a)B.1a.6a(B.4E);B.8D();m.24(B.Q,{1w:0},m.9o,H,C(){B.5R()})},t)}},4f:C(1K,2a){q(!1K)D;A B=k,2B=m.cq,1f=B.1f,x=B.x,y=B.y,2w=1f.x,2x=1f.y,1u=B.1u,Q=k.Q,T=k.T;m.5j(19,\'76\',m.6Z);k.1a=1f.1a;q(k.1a)k.1a.B=B;1f.1a=H;1f.Q.E.2q=\'1q\';m.S(Q,{Y:2w.G+\'F\',V:2x.G+\'F\',K:2w.U(\'1W\')+\'F\',N:2x.U(\'1W\')+\'F\'});m.S(T,{1m:\'1r\',K:(x.1Y||x.I)+\'F\',N:(y.1Y||y.I)+\'F\',Y:(x.1g+x.U(\'2j\'))+\'F\',V:(y.1g+y.U(\'2j\'))+\'F\'});A 4w=m.18(\'R\',{1b:\'M-2L\'},{1n:\'2r\',1F:4,2q:\'1q\',1m:\'1r\',Y:(2w.1g+2w.U(\'2j\'))+\'F\',V:(2x.1g+2x.U(\'2j\'))+\'F\',K:(2w.1Y||2w.I)+\'F\',N:(2x.1Y||2x.I)+\'F\'});q(k.2C)m.S(k.42,{Y:0,V:0});O(A i=0;i<k.1L.W;i++){A o=m.$(\'21\'+k.1L[i]);q(o.E.1o==\'1q\')o.E.1m=\'1r\'}q(1u)m.S(1u,{2q:\'22\',Y:(2w.1g+2w.cb)+\'F\',V:(2x.1g+2x.cb)+\'F\',K:2w.I+\'F\',N:2x.I+\'F\'});A 8j={81:1f,8g:k};O(A n 3j 8j){k[n]=8j[n].T.4Z(1);m.S(k[n],{1n:\'2r\',8c:0,1o:\'22\'});4w.1V(k[n])}m.S(k.81,{Y:0,V:0});m.S(k.8g,{1m:\'3w\',1w:0,Y:(x.G-2w.G+x.1g-2w.1g+x.U(\'2j\')-2w.U(\'2j\'))+\'F\',V:(y.G-2x.G+y.1g-2x.1g+y.U(\'2j\')-2x.U(\'2j\'))+\'F\'});Q.1V(4w);q(1u){1u.1b=\'\';Q.1V(1u)}4w.E.1m=\'\';1f.T.E.1m=\'1r\';q(m.4o){A 2y=5d.6M.2y(/cw\\/([0-9]{3})/);q(2y&&2v(2y[1])<cu)Q.E.1o=\'22\'}C 3Z(){Q.E.1o=T.E.1o=\'22\';T.E.1m=\'3w\';4w.E.1m=\'1r\';B.a.1b+=\' M-4z-4c\';B.6S();1f.5R();B.1f=H}m.24(1f.Q,{Y:x.G,V:y.G,K:x.U(\'1W\'),N:y.U(\'1W\')},2B);m.24(4w,{K:x.1Y||x.I,N:y.1Y||y.I,Y:x.1g+x.U(\'2j\'),V:y.1g+y.U(\'2j\')},2B);m.24(k.81,{Y:(2w.G-x.G+2w.1g-x.1g+2w.U(\'2j\')-x.U(\'2j\')),V:(2x.G-y.G+2x.1g-y.1g+2x.U(\'2j\')-y.U(\'2j\'))},2B);m.24(k.8g,{1w:1,Y:0,V:0},2B);q(1u)m.24(1u,{Y:x.1g+x.cb,V:y.1g+y.cb,K:x.I,N:y.I},2B);q(k.1a)A cs=C(3e,2K){q(2K.1y==\'V\'){A 3C=B.Q.E;A G={w:2v(3C.K),h:2v(3C.N),x:2v(3C.Y),y:2v(3C.V)};B.1a.4B(G)}};m.24(Q,2a.Q,{41:2B,6G:3Z,3J:cs});4w.E.1o=\'22\'},bE:C(o,el){q(!k.1f)D 1i;O(A i=0;i<k.1f.1L.W;i++){A 6X=m.$(\'21\'+k.1f.1L[i]);q(6X&&6X.21==o.21){k.9K();6X.dV=k.P;m.2o(k.1L,k.1f.1L[i]);D L}}D 1i},6S:C(){k.5w=L;k.3I();q(k.2C&&k.3O==\'5z\')k.6T();q(k.1h){1C{A B=k,2A=k.1h.8Q||k.1h.67.19;m.2l(2A,\'8G\',C(){q(m.31!=B.P)B.3I()})}1E(e){}q(m.1z&&1I k.5X!=\'dT\')k.1h.E.K=(k.3Y-1)+\'F\'}q(k.4m)m.1B(k);q(m.2u&&m.2u==k.a)m.2u=H;k.ci();A p=m.3V,7G=m.79.x+p.7B,8d=m.79.y+p.7A;k.8E=k.x.G<7G&&7G<k.x.G+k.x.U(\'1W\')&&k.y.G<8d&&8d<k.y.G+k.y.U(\'1W\');q(k.1u)k.bi();m.1x(k,\'cK\')},ci:C(){A P=k.P;A 1X=k.1X;1H m.5U(1X,C(){1C{m.11[P].co()}1E(e){}})},co:C(){A 1G=k.8a(1);q(1G&&1G.2p.cz().2y(/m\\.2H/))A 1S=m.18(\'1S\',{1e:m.7x(1G)})},8a:C(2m){A 80=k.6H(),as=m.4N.3m[k.2R||\'1r\'];q(!as[80+2m]&&k.1p&&k.1p.ce){q(2m==1)D as[0];J q(2m==-1)D as[as.W-1]}D as[80+2m]||H},6H:C(){A 2b=m.6h().3m[k.2R||\'1r\'];q(2b)O(A i=0;i<2b.W;i++){q(2b[i]==k.a)D i}D H},bh:C(){q(k[k.5t]){A 2b=m.4N.3m[k.2R||\'1r\'];q(2b){A s=m.14.3Q.26(\'%1\',k.6H()+1).26(\'%2\',2b.W);k[k.5t].2h=\'<R 1Z="M-3Q">\'+s+\'</R>\'+k[k.5t].2h}}},9i:C(){q(!k.1f){O(A i=0;i<m.5u.W;i++){A 1P=m.5u[i],3c=1P.2R;q(1I 3c==\'1T\'||3c===H||3c===k.2R)k.1p=1H m.8X(k.P,1P)}}J{k.1p=k.1f.1p}A 1P=k.1p;q(!1P)D;A P=1P.4d=k.P;1P.cd();1P.57(\'1d-2H\');q(1P.2N){A o=1P.cn||{};o.4x=1P.2N;o.21=\'2N\';k.4k(o)}q(1P.2X)1P.2X.7h(k);q(!k.1f&&k.45)1P.3G(L);q(1P.45){1P.45=49(C(){m.1G(P)},(1P.fa||fq))}},6r:C(){m.3H(k.Q);m.11[k.P]=H;q(m.2u==k.a)m.2u=H;m.8r(k.P);q(k.2s)m.2s.E.Y=\'-4h\';m.1x(k,\'cl\')},be:C(){q(k.5I)D;k.5I=m.18(\'a\',{23:m.ck,2G:m.ch,1b:\'M-5I\',2h:m.14.cv,2k:m.14.cr});k.4k({4x:k.5I,1n:k.ct||\'V Y\',21:\'5I\'})},9N:C(7W,cD){O(A i=0;i<7W.W;i++){A Z=7W[i],s=H;q(Z==\'9D\'&&!m.1x(k,\'fw\'))D;J q(Z==\'4S\'&&!m.1x(k,\'fy\'))D;q(!k[Z+\'7t\']&&k.6D)k[Z+\'7t\']=Z+\'-O-\'+k.6D;q(k[Z+\'7t\'])k[Z]=m.5W(k[Z+\'7t\']);q(!k[Z]&&!k[Z+\'7H\']&&k[Z+\'cy\'])1C{s=et(k[Z+\'cy\'])}1E(e){}q(!k[Z]&&k[Z+\'7H\']){s=k[Z+\'7H\']}q(!k[Z]&&!s){A 1G=k.a.cx;4Q(1G&&!m.6F(1G)){q((1H 4y(\'M-\'+Z)).1c(1G.1b||H)){k[Z]=1G.4Z(1);5f}1G=1G.cx}}q(!k[Z]&&!s&&k.5t==Z)s=\'\\n\';q(!k[Z]&&s)k[Z]=m.18(\'R\',{1b:\'M-\'+Z,2h:s});q(cD&&k[Z]){A o={1n:(Z==\'4S\')?\'5A\':\'7s\'};O(A x 3j k[Z+\'cC\'])o[x]=k[Z+\'cC\'][x];o.4x=k[Z];k.4k(o)}}},4W:C(1o){q(m.cF)k.6u(\'eM\',1o);q(m.cE)k.6u(\'eL\',1o);q(m.5p)k.6u(\'*\',1o)},6u:C(3T,1o){A 1l=19.2z(3T);A 1y=3T==\'*\'?\'2q\':\'1o\';O(A i=0;i<1l.W;i++){q(1y==\'1o\'||(19.7N.cf(1l[i],"").bw(\'2q\')==\'28\'||1l[i].bx(\'1q-by\')!=H)){A 2V=1l[i].bx(\'1q-by\');q(1o==\'22\'&&2V){2V=2V.26(\'[\'+k.P+\']\',\'\');1l[i].5D(\'1q-by\',2V);q(!2V)1l[i].E[1y]=1l[i].84}J q(1o==\'1q\'){A 3R=m.6n(1l[i]);3R.w=1l[i].1M;3R.h=1l[i].1Q;q(!k.4m){A ba=(3R.x+3R.w<k.x.U(\'60\')||3R.x>k.x.U(\'60\')+k.x.U(\'82\'));A bu=(3R.y+3R.h<k.y.U(\'60\')||3R.y>k.y.U(\'60\')+k.y.U(\'82\'))}A 6t=m.87(1l[i]);q(!ba&&!bu&&6t!=k.P){q(!2V){1l[i].5D(\'1q-by\',\'[\'+k.P+\']\');1l[i].84=1l[i].E[1y];1l[i].E[1y]=\'1q\'}J q(2V.bs(\'[\'+k.P+\']\')==-1){1l[i].5D(\'1q-by\',2V+\'[\'+k.P+\']\')}}J q((2V==\'[\'+k.P+\']\'||m.31==6t)&&6t!=k.P){1l[i].5D(\'1q-by\',\'\');1l[i].E[1y]=1l[i].84||\'\'}J q(2V&&2V.bs(\'[\'+k.P+\']\')>-1){1l[i].5D(\'1q-by\',2V.26(\'[\'+k.P+\']\',\'\'))}}}}},3I:C(){k.Q.E.1F=m.4p+=2;O(A i=0;i<m.11.W;i++){q(m.11[i]&&i==m.31){A 4s=m.11[i];4s.T.1b+=\' M-\'+4s.3f+\'-7J\';q(4s.2M){4s.T.E.4M=m.1z?\'bz\':\'73\';4s.T.2k=m.14.bt}m.1x(4s,\'eD\')}}q(k.1a)k.1a.2i.E.1F=k.Q.E.1F-1;k.T.1b=\'M-\'+k.3f;q(k.2M){k.T.2k=m.14.7Q;q(m.69){m.53=1U.3F?\'73\':\'7a(\'+m.5m+m.69+\'), 73\';q(m.1z&&m.3X<6)m.53=\'bz\';k.T.E.4M=m.53}}m.31=k.P;m.2l(19,1U.3F?\'9z\':\'9y\',m.6x);m.1x(k,\'eO\')},8t:C(x,y){k.x.9a(x);k.y.9a(y)},3L:C(e){A w,h,r=e.K/e.N;w=1j.2Q(e.K+e.dX,1j.3q(k.4H,k.x.1d));q(k.2M&&1j.9s(w-k.x.1d)<12)w=k.x.1d;h=k.2C?e.N+e.dY:w/r;q(h<1j.3q(k.6k,k.y.1d)){h=1j.3q(k.6k,k.y.1d);q(k.2M)w=h*r}k.8o(w,h)},8o:C(w,h){k.y.6z(h);k.x.6z(w)},2f:C(){q(k.5X||!k.5w)D;q(k.3g[1]==\'4f\'&&m.2u){m.2Y(m.2u).6r();m.2u=H}q(!m.1x(k,\'eV\'))D;k.5X=L;q(k.1p&&!m.2u)k.1p.3h();m.5j(19,1U.3F?\'9z\':\'9y\',m.6x);1C{q(k.2C)k.bA();k.T.E.4M=\'eU\';k.9w(0,{Q:{K:k.x.t,N:k.y.t,Y:k.x.1N-k.x.cb+k.x.3k,V:k.y.1N-k.y.cb+k.y.3k},T:{Y:0,V:0,K:k.x.t,N:k.y.t}},m.9o)}1E(e){k.5R()}},bA:C(){q(m.5p){q(!m.6c)m.6c=m.18(\'R\',H,{1n:\'2r\'},m.2g);m.S(m.6c,{K:k.x.I+\'F\',N:k.y.I+\'F\',Y:k.x.G+\'F\',V:k.y.G+\'F\',1m:\'3w\'})}q(k.2J==\'3D\')1C{m.$(k.1k.1D).eR()}1E(e){}q(k.3O==\'5z\'&&!k.4E)k.bF();q(k.2t&&k.2t!=k.59)k.2t.E.2q=\'1q\'},bF:C(){q(m.1z&&k.1h)1C{k.1h.67.19.1k.2h=\'\'}1E(e){}q(k.2J==\'3D\')9g.en(k.1k.1D);k.1k.2h=\'\'},bm:C(){q(k.1a)k.1a.2i.E.1m=\'1r\';k.3S=H;k.Q.E.1m=\'1r\';m.2o(m.4K,k)},bG:C(){1C{m.11[k.P]=k;q(!m.9d&&m.31!=k.P){1C{m.11[m.31].2f()}1E(e){}}A z=m.4p++,3C={1m:\'\',1F:z};m.S(k.Q,3C);k.5X=1i;A o=k.1a||0;q(o){q(!k.3U)3C.1o=\'1q\';m.S(o.2i,3C)}q(k.1p){k.9i()}k.9j()}1E(e){}},4k:C(o){A el=o.4x,52=(o.bD==\'36\'&&!/7u$/.1c(o.1n));q(1I el==\'9n\')el=m.5W(el);q(o.3y)el=m.18(\'R\',{2h:o.3y});q(!el||1I el==\'9n\')D;q(!m.1x(k,\'ee\',{16:el}))D;el.E.1m=\'3w\';o.21=o.21||o.4x;q(k.3g[1]==\'4f\'&&k.bE(o,el))D;k.9K();A K=o.K&&/^[0-9]+(F|%)$/.1c(o.K)?o.K:\'28\';q(/^(Y|3i)7u$/.1c(o.1n)&&!/^[0-9]+F$/.1c(o.K))K=\'ew\';A 16=m.18(\'R\',{1D:\'21\'+m.6p++,21:o.21},{1n:\'2r\',1o:\'1q\',K:K,9l:m.14.9B||\'\',1w:0},52?m.36:k.1u,L);q(52)16.6o=k.P;16.1V(el);m.3E(16,{1w:1,bB:0,bC:0,2B:(o.6i===0||o.6i===1i||(o.6i==2&&m.1z))?0:63});m.3E(16,o);q(k.bb){k.5T(16);q(!16.7q||k.8E)m.24(16,{1w:16.1w},16.2B)}m.2o(k.1L,m.6p-1)},5T:C(16){A p=16.1n||\'9T 4A\',52=(16.bD==\'36\'),6l=16.bB,6C=16.bC;q(52){m.36.E.1m=\'3w\';16.6o=k.P;q(16.1M>16.29.1M)16.E.K=\'2W%\'}J q(16.29!=k.1u)k.1u.1V(16);q(/Y$/.1c(p))16.E.Y=6l+\'F\';q(/4A$/.1c(p))m.S(16,{Y:\'50%\',4Y:(6l-1j.5g(16.1M/2))+\'F\'});q(/3i$/.1c(p))16.E.3i=-6l+\'F\';q(/^br$/.1c(p)){m.S(16,{3i:\'2W%\',9O:k.x.cb+\'F\',V:-k.y.cb+\'F\',4i:-k.y.cb+\'F\',2q:\'28\'});k.x.1g=16.1M}J q(/^bq$/.1c(p)){m.S(16,{Y:\'2W%\',4Y:k.x.cb+\'F\',V:-k.y.cb+\'F\',4i:-k.y.cb+\'F\',2q:\'28\'});k.x.3o=16.1M}A 9U=16.29.1Q;16.E.N=\'28\';q(52&&16.1Q>9U)16.E.N=m.5b?9U+\'F\':\'2W%\';q(/^V/.1c(p))16.E.V=6C+\'F\';q(/^9T/.1c(p))m.S(16,{V:\'50%\',6b:(6C-1j.5g(16.1Q/2))+\'F\'});q(/^4i/.1c(p))16.E.4i=-6C+\'F\';q(/^5A$/.1c(p)){m.S(16,{Y:(-k.x.1g-k.x.cb)+\'F\',3i:(-k.x.3o-k.x.cb)+\'F\',4i:\'2W%\',6v:k.y.cb+\'F\',K:\'28\'});k.y.1g=16.1Q}J q(/^7s$/.1c(p)){m.S(16,{1n:\'4j\',Y:(-k.x.1g-k.x.cb)+\'F\',3i:(-k.x.3o-k.x.cb)+\'F\',V:\'2W%\',6b:k.y.cb+\'F\',K:\'28\'});k.y.3o=16.1Q;16.E.1n=\'2r\'}},bg:C(){k.9N([\'4S\',\'9D\'],L);k.bh();q(k.9D)m.1x(k,\'f0\');q(k.4S)m.1x(k,\'fF\');q(k.4S&&k.9G)k.4S.1b+=\' M-3B\';q(m.bf)k.be();O(A i=0;i<m.1L.W;i++){A o=m.1L[i],6E=o.9H,3c=o.2R;q((!6E&&!3c)||(6E&&6E==k.6D)||(3c&&3c===k.2R)){q(k.2M||(k.2C&&o.fA))k.4k(o)}}A 6s=[];O(A i=0;i<k.1L.W;i++){A o=m.$(\'21\'+k.1L[i]);q(/7u$/.1c(o.1n))k.5T(o);J m.2o(6s,o)}O(A i=0;i<6s.W;i++)k.5T(6s[i]);k.bb=L},9K:C(){q(!k.1u)k.1u=m.18(\'R\',{1b:k.9J},{1n:\'2r\',K:(k.x.I||(k.3A?k.K:H)||k.x.1d)+\'F\',N:(k.y.I||k.y.1d)+\'F\',1o:\'1q\',2q:\'1q\',1F:m.1z?4:H},m.2g,L)},4R:C(9b,bc){A 1u=k.1u,x=k.x,y=k.y;m.S(1u,{K:x.I+\'F\',N:y.I+\'F\'});q(9b||bc){O(A i=0;i<k.1L.W;i++){A o=m.$(\'21\'+k.1L[i]);A 9k=(m.5b||19.9I==\'bd\');q(o&&/^(5A|7s)$/.1c(o.1n)){q(9k){o.E.K=(1u.1M+2*x.cb+x.1g+x.3o)+\'F\'}y[o.1n==\'5A\'?\'1g\':\'3o\']=o.1Q}q(o&&9k&&/^(Y|3i)7u$/.1c(o.1n)){o.E.N=(1u.1Q+2*y.cb)+\'F\'}}}q(9b){m.S(k.T,{V:y.1g+\'F\'});m.S(1u,{V:(y.1g+y.cb)+\'F\'})}},bi:C(){A b=k.1u;b.1b=\'\';m.S(b,{V:(k.y.1g+k.y.cb)+\'F\',Y:(k.x.1g+k.x.cb)+\'F\',2q:\'22\'});q(m.4o)b.E.1o=\'22\';k.Q.1V(b);O(A i=0;i<k.1L.W;i++){A o=m.$(\'21\'+k.1L[i]);o.E.1F=o.21==\'2N\'?5:4;q(!o.7q||k.8E){o.E.1o=\'22\';m.S(o,{1o:\'22\',1m:\'\'});m.24(o,{1w:o.1w},o.2B)}}},8D:C(){q(!k.1L.W)D;O(A i=0;i<k.1L.W;i++){A o=m.$(\'21\'+k.1L[i]);q(o.29==m.36)m.3H(o)}q(k.1p){A c=k.1p.2N;q(c&&m.2Y(c)==k)c.29.8C(c)}q(k.2C&&k.4E){k.1u.E.V=\'-4h\';m.2g.1V(k.1u)}J m.3H(k.1u)},bj:C(){q(k.1p&&k.1p.2N){k.1p.4u(\'1d-2H\');D}k.7y=m.18(\'a\',{23:\'bo:m.11[\'+k.P+\'].6L();\',2k:m.14.8J,1b:\'M-1d-2H\'});q(!m.1x(k,\'fG\'))D;k.4k({4x:k.7y,1n:m.bp,7q:L,1w:m.bn})},6L:C(){1C{q(!m.1x(k,\'fp\'))D;q(k.7y)m.3H(k.7y);k.3I();A 3b=k.x.I;k.8o(k.x.1d,k.y.1d);A 7o=k.x.G-(k.x.I-3b)/2;q(7o<m.4Y)7o=m.4Y;k.8t(7o,k.y.G);k.4W(\'1q\');m.4T(k)}1E(e){k.8s(e)}},5R:C(){k.a.1b=k.a.1b.26(\'M-4z-4c\',\'\');k.4W(\'22\');q(k.2C&&k.4E&&k.3g[1]!=\'4f\'){k.bm()}J{q(k.1a&&k.3U)k.1a.6a();m.3H(k.Q)}q(m.6c)m.6c.E.1m=\'1r\';q(!m.36.74.W)m.36.E.1m=\'1r\';q(k.4m)m.8r(k.P);m.1x(k,\'f9\');m.11[k.P]=H;m.bk()}};m.7p=C(a,T,6W){k.a=a;k.T=T;k.6W=6W};m.7p.58={8q:C(){q(!k.1e)k.1e=m.7x(k.a);q(k.1e.2y(\'#\')){A 2b=k.1e.8u(\'#\');k.1e=2b[0];k.1D=2b[1]}q(m.6Q[k.1e]){k.c2=m.6Q[k.1e];q(k.1D)k.97();J k.66();D}1C{k.3r=1H c4()}1E(e){1C{k.3r=1H bl("fb.bI")}1E(e){1C{k.3r=1H bl("bH.bI")}1E(e){k.8z()}}}A 3x=k;k.3r.f2=C(){q(3x.3r.cg==4){q(3x.1D)3x.97();J 3x.66()}};A 1e=k.1e;q(m.fm)1e=1e.26(/$/,(/\\?/.1c(1e)?\'&\':\'?\')+\'fn=\'+(1H 7z()).7C());k.3r.c6(\'ec\',1e,L);k.3r.c5(\'X-fh-eu\',\'c4\');k.3r.c5(\'cQ-cN\',\'cW/x-dh-95-d0\');k.3r.d9(H)},97:C(){m.6R();A 3W=1U.3F||m.c3?{1e:\'di:dj\'}:H;k.1h=m.18(\'1h\',3W,{1n:\'2r\',V:\'-4h\'},m.2g);k.66()},66:C(){A s=k.c2||k.3r.df;q(k.6W)m.6Q[k.1e]=s;q(!m.1z||m.3X>=5.5){s=s.26(/\\s/g,\' \').26(1H 4y(\'<cM[^>]*>\',\'c1\'),\'\').26(1H 4y(\'<c0[^>]*>.*?</c0>\',\'c1\'),\'\');q(k.1h){A 2A=k.1h.8Q;q(!2A&&k.1h.67)2A=k.1h.67.19;q(!2A){A 3x=k;49(C(){3x.66()},25);D}2A.c6();2A.cV(s);2A.2f();1C{s=2A.8S(k.1D).2h}1E(e){1C{s=k.1h.19.8S(k.1D).2h}1E(e){}}m.3H(k.1h)}J{s=s.26(1H 4y(\'^.*?<1k[^>]*>(.*?)</1k>.*?$\',\'i\'),\'$1\')}}m.4G(k.T,\'6J\',\'M-1k\').2h=s;k.3s();O(A x 3j k)k[x]=H}};m.8X=C(4d,1v){q(m.cI!==1i)m.8T();k.4d=4d;O(A x 3j 1v)k[x]=1v[x];q(k.cH)k.c7();q(k.2X)k.2X=m.c9(k)};m.8X.58={c7:C(){k.2N=m.18(\'R\',{2h:m.8V(m.8U.2N)},H,m.2g);A 5Y=[\'3G\',\'3h\',\'35\',\'1G\',\'3B\',\'1d-2H\',\'2f\'];k.1O={};A 3x=k;O(A i=0;i<5Y.W;i++){k.1O[5Y[i]]=m.4G(k.2N,\'1J\',\'M-\'+5Y[i]);k.4u(5Y[i])}k.1O.3h.E.1m=\'1r\'},cd:C(){q(k.ce||!k.2N)D;A B=m.11[k.4d],56=B.6H(),2n=/6K$/;q(56==0)k.57(\'35\');J q(2n.1c(k.1O.35.2z(\'a\')[0].1b))k.4u(\'35\');q(56+1==m.4N.3m[B.2R||\'1r\'].W){k.57(\'1G\');k.57(\'3G\')}J q(2n.1c(k.1O.1G.2z(\'a\')[0].1b)){k.4u(\'1G\');k.4u(\'3G\')}},4u:C(1O){q(!k.1O)D;A cc=k,a=k.1O[1O].2z(\'a\')[0],2n=/6K$/;a.2p=C(){cc[1O]();D 1i};q(2n.1c(a.1b))a.1b=a.1b.26(2n,\'\')},57:C(1O){q(!k.1O)D;A a=k.1O[1O].2z(\'a\')[0];a.2p=C(){D 1i};q(!/6K$/.1c(a.1b))a.1b+=\' 6K\'},ca:C(){q(k.45)k.3h();J k.3G()},3G:C(c8){q(k.1O){k.1O.3G.E.1m=\'1r\';k.1O.3h.E.1m=\'\'}k.45=L;q(!c8)m.1G(k.4d)},3h:C(){q(k.1O){k.1O.3h.E.1m=\'1r\';k.1O.3G.E.1m=\'\'}dW(k.45);k.45=H},35:C(){k.3h();m.35(k.1O.35)},1G:C(){k.3h();m.1G(k.1O.1G)},3B:C(){},\'1d-2H\':C(){m.2Y().6L()},2f:C(){m.2f(k.1O.2f)}};m.c9=C(1p){C 7h(B){m.3E(1v||{},{4x:4J,21:\'2X\'});q(m.5b)1v.6i=0;B.4k(1v);m.S(4J.29,{2q:\'1q\'})};C 2d(3N){4X(1T,1j.5g(3N*4J[3K?\'1M\':\'1Q\']*0.7))};C 4X(i,9C){q(i===1T)O(A j=0;j<5J.W;j++){q(5J[j]==m.11[1p.4d].a){i=j;5f}}q(i===1T)D;A as=4J.2z(\'a\'),4z=as[i],48=4z.29,Y=3K?\'bZ\':\'bY\',3i=3K?\'bO\':\'bP\',K=3K?\'bN\':\'bM\',4I=\'1s\'+Y,1M=\'1s\'+K,7e=R.29.29[1M],7c=7e-2i[1M],5y=2v(2i.E[3K?\'Y\':\'V\'])||0,2U=5y,dZ=20;q(9C!==1T){2U=5y-9C;q(2U>0)2U=0;q(2U<7c)2U=7c}J{O(A j=0;j<as.W;j++)as[j].1b=\'\';4z.1b=\'M-4z-4c\';A 9e=i>0?as[i-1].29[4I]:48[4I],9m=48[4I]+48[1M]+(as[i+1]?as[i+1].29[1M]:0);q(9m>7e-5y)2U=7e-9m;J q(9e<-5y)2U=-9e}A 9f=48[4I]+(48[1M]-7g[1M])/2+2U;m.24(2i,3K?{Y:2U}:{V:2U},H,\'9h\');m.24(7g,3K?{Y:9f}:{V:9f},H,\'9h\');8A.E.1m=2U<0?\'3w\':\'1r\';8v.E.1m=(2U>7c)?\'3w\':\'1r\'};A 5J=m.4N.3m[m.11[1p.4d].2R||\'1r\'],1v=1p.2X,5N=1v.5N||\'bJ\',9L=(5N==\'e9\'),44=9L?[\'R\',\'5s\',\'1J\',\'1A\']:[\'2i\',\'4g\',\'43\',\'2I\'],3K=(5N==\'bJ\'),4J=m.18(\'R\',{1b:\'M-2X M-2X-\'+5N,2h:\'<R 1Z="M-2X-e6">\'+\'<\'+44[0]+\'><\'+44[1]+\'></\'+44[1]+\'></\'+44[0]+\'></R>\'+\'<R 1Z="M-2d-1K"><R></R></R>\'+\'<R 1Z="M-2d-e5"><R></R></R>\'+\'<R 1Z="M-7g"><R></R></R>\'},{1m:\'1r\'},m.2g),5P=4J.74,R=5P[0],8A=5P[1],8v=5P[2],7g=5P[3],2i=R.e3,4g=4J.2z(44[1])[0],43;O(A i=0;i<5J.W;i++){q(i==0||!3K)43=m.18(44[2],H,H,4g);(C(){A a=5J[i],48=m.18(44[3],H,H,43),e4=i;m.18(\'a\',{23:a.23,2p:C(){m.2Y(k).3I();D m.9v(a)},2h:m.bK?m.bK(a):a.2h},H,48)})()}q(!9L){8A.2p=C(){2d(-1)};8v.2p=C(){2d(1)};m.2l(4g,19.dw!==1T?\'dH\':\'dI\',C(e){A 3N=0;e=e||1U.2E;q(e.bL){3N=e.bL/dE;q(m.3F)3N=-3N}J q(e.bQ){3N=-e.bQ/3}q(3N)2d(-3N*0.2);q(e.5h)e.5h();e.bR=1i})}D{7h:7h,4X:4X}};q(m.1z){(C(){1C{19.5n.dB(\'Y\')}1E(e){49(bW.dD,50);D}m.4q()})()}m.2l(19,\'dA\',m.4q);m.2l(1U,\'7v\',m.4q);m.7b=m.14;A dv=m.5x;m.2l(1U,\'7v\',C(){q(m.8B){A 9F=\'.M 1S\',9A=\'4M: 7a(\'+m.5m+m.8B+\'), 73 !e2;\';A E=m.18(\'E\',{Z:\'ea/8L\'},H,19.2z(\'e0\')[0]);q(!m.1z){E.1V(19.d5(9F+" {"+9A+"}"))}J{A 1f=19.bX[19.bX.W-1];q(1I(1f.bV)=="72")1f.bV(9F,9A)}}});m.2l(1U,\'3L\',C(){m.6d();q(m.36)O(A i=0;i<m.36.74.W;i++){A 1R=m.36.74[i],B=m.2Y(1R);B.5T(1R);q(1R.21==\'2X\')B.1p.2X.4X()}});m.2l(19,\'76\',C(e){m.79={x:e.77,y:e.7n}});m.2l(19,\'8G\',m.9x);m.2l(19,\'bU\',m.9x);m.2l(19,\'4q\',m.bS);m.2l(1U,\'7v\',m.bT);m.2l(1U,\'7v\',m.bv);',62,977,'||||||||||||||||||||this||hs||||if||||||||||var|exp|function|return|style|px|pos|null|size|else|width|true|highslide|height|for|key|wrapper|div|setStyles|content|get|top|length||left|type||expanders|||lang||overlay||createElement|document|outline|className|test|full|src|last|p1|iframe|false|Math|body|els|display|position|visibility|slideshow|hidden|none|offset|innerContent|overlayBox|options|opacity|fireEvent|prop|ie|span|dim|try|id|catch|zIndex|next|new|typeof|li|up|overlays|offsetWidth|tpos|btn|ss|offsetHeight|node|img|undefined|window|appendChild|wsize|outlineType|imgSize|class||hsId|visible|href|animate||replace||auto|parentNode|to|arr|case|scroll|params|close|container|innerHTML|table|imgPad|title|addEventListener|op|re|push|onclick|overflow|absolute|loading|scrollerDiv|upcoming|parseInt|lastX|lastY|match|getElementsByTagName|doc|dur|isHtml|dragArgs|event|dimmer|target|expand|td|objectType|args|image|isImage|controls|justify|tgt|max|slideshowGroup|easing|ratio|tblPos|hiddenBy|100|thumbstrip|getExpander|minSize|elem|focusKey||||previous|viewport||||ajax|xSize|sg|name|val|contentType|transitions|pause|right|in|tb|wh|groups|marginMin|p2|ucwh|min|xmlHttp|onLoad|custom|opt|clearing|block|pThis|html|hasDragged|useBox|move|stl|swf|extend|opera|play|discardElement|focus|step|isX|resize|graphic|delta|objectLoadTime|func|number|elPos|releaseMask|tagName|outlineWhileAnimating|page|attribs|uaVersion|objectWidth|end||duration|mediumContent|tr|tree|autoplay|styles|timers|cell|setTimeout|ySize|getParam|anchor|expKey|iebody|crossfade|tbody|9999px|bottom|relative|createOverlay|clientSize|dimmingOpacity|marginMax|safari|zIndexCounter|ready|now|blurExp|clone|enable|tgtArr|fadeBox|overlayId|RegExp|active|center|setPosition|unit|start|preserveContent|pendingOutlines|getElementByClass|minWidth|offsetLeft|dom|sleeping|onload|cursor|anchors|htmls|images|while|sizeOverlayBox|heading|setDimmerSize|wDiff|adj|doShowHide|selectThumb|marginLeft|cloneNode||cNode|relToVP|styleRestoreCursor|self|hDiff|cur|disable|prototype|scrollingContent|fitsize|ieLt7|area|navigator|objectHeight|break|round|preventDefault|cacheBindings|removeEventListener|ruler|allowReduce|graphicsDir|documentElement|moveOnly|geckoMac|contentLoaded|before|ul|numberPosition|slideshows|allowSizeReduction|isExpanded|Expander|curTblPos|after|above|maxX|minX|setAttribute|fac|trans|padToMinWidth|all|credits|group|minY|currentStyle|parent|mode|maxY|domCh|showLoading|afterClose|cache|positionOverlay|Outline|over|getNode|isClosing|buttons|uclt|opos|param|owner|250|obj|getParams|loadHTML|contentWindow|matches|restoreCursor|destroy|marginTop|mask|getPageSize|preloadTheseImages|toLowerCase|filter|getAnchors|fade|on|minHeight|offX|gotoEnd|getPosition|hsKey|idCounter|Dimension|cancelLoading|os|wrapperKey|showHideElements|marginBottom|lt|keyHandler|curAnim|setSize|background|maincontent|offY|thumbsUserSetId|tId|isHsAnchor|complete|getAnchorIndex|rel|DIV|disabled|doFullExpand|userAgent|innerHeight|imgs|topmostKey|cachedGets|init|afterExpand|writeExtendedContent|pageHeight|pageWidth|pre|oDiv|innerWidth|dragHandler||allowWidthReduction|object|pointer|childNodes||mousemove|clientX|kdeBugCorr|mouse|url|langDefaults|minTblPos|dir|overlayWidth|expandDuration|marker|add|changed|previousOrNext|preloadTheseAjax|element|preloadFullImage|clientY|xpos|Ajax|hideOnMouseOut|onReady|below|Id|panel|load|onLoadStarted|getSrc|fullExpandLabel|Date|scrollTop|scrollLeft|getTime|expOnly|calcBorders|maxsize|mX|Text|calcExpanded|blur|isReady|offsetTop|fitOverlayBox|defaultView|setObjContainerSize|location|restoreTitle|correctIframeSize|sizeDiff|allowHeightReduction|calcThumb|getCacheBinding|types|getIframePageHeight|hasMovedMin|padding|current|oldImg|osize|htmlGetSize|origProp|getSelfRendered|continuePreloading|getWrapperKey|overrides|swfOptions|getAdjacentAnchor|loadingPos|border|mY|contentId|oPos|newImg|Create|endOff|names|loadingPosXfade|connectOutline|startOff|other|resizeTo|numberOfImagesToPreload|run|undim|error|moveTo|split|scrollDown|distance|srcElement|relatedTarget|onError|scrollUp|expandCursor|removeChild|destroyOverlays|mouseIsOver|openerTagNames|mousedown|garbageBin|clientHeight|fullExpandTitle|clientWidth|css|previousTitle|previousText|preloadAjaxElement|topZ|contentDocument|closeText|getElementById|updateAnchors|skin|replaceLang|cacheAjax|Slideshow|clones|closeTitle|evt|nextText|hasFocused|nextTitle|moveTitle|form|dimmingDuration|getElementContent|moveText||setPos|doWrapper|htmlExpand|allowMultipleInstances|activeLeft|markerPos|swfobject|easeOutQuad|initSlideshow|show|ie6|direction|activeRight|string|restoreDuration|hasAlphaImageLoader|align|parseFloat|abs|margin|ucrb|transit|changeSize|mouseClickHandler|keydown|keypress|dec|cssDirection|scrollBy|caption|arrow|sel|dragByHeading|thumbnailId|compatMode|wrapperClassName|genOverlayBox|floatMode|done|getInline|marginRight|update|startTime|state|Click|middle|parOff|headingOverlay|targetY|newHeight|targetX|rv|both|clear|captionOverlay|playText|KDE|vendor|Next|JS|Previous|Play|Pause|spacebar|Move|and|pauseText|htmlSizeOperations|fullExpandText|pauseTitle|tag|Highslide|200|playTitle|resizeTitle|flashvars|from|timerId|maxWidth|call||orig|easeInQuad|loadingTitle|loadingText|fixedControls|loadingOpacity|wrapperMouseHandler|_default|hide|switch|rb|toUpperCase|vis|onGraphicLoad|thumb|preloadGraphic|png|appendTo|ltr|Close|hasExtendedContent|yScroll|offsetParent|contentWrapper|xScroll|scrollHeight|alpha|scrollMaxX|scrollMaxY|scrollWidth|hsHasSetClick|isUnobtrusiveAnchor|clickY|pow|wmode|detachEvent|clickX|hasHtmlExpanders|attributes|dimmingGeckoFix|enableKeyListener|focusTopmost|nopad|clearsX|gotOverlays|doPanels|BackCompat|writeCredits|showCredits|getOverlays|getNumber|showOverlays|createFullExpand|reOrder|ActiveXObject|sleep|fullExpandOpacity|javascript|fullExpandPosition|rightpanel|leftpanel|indexOf|focusTitle|clearsY|preloadAjax|getPropertyValue|getAttribute||hand|htmlPrepareClose|offsetX|offsetY|relativeTo|reuseOverlay|destroyObject|awake|Microsoft|XMLHTTP|horizontal|stripItemFormatter|wheelDelta|Height|Width|Right|Bottom|detail|returnValue|setClickEvents|preloadImages|mouseup|addRule|arguments|styleSheets|Top|Left|script|gi|cachedGet|ie6SSL|XMLHttpRequest|setRequestHeader|open|getControls|wait|Thumbstrip|hitSpace||sls|checkFirstAndLast|repeat|getComputedStyle|readyState|creditsTarget|prepareNextOutline|easingClose|creditsHref|onHideLoading|getImageMapAreaCorrection|overlayOptions|preloadNext|fadeInOut|transitionDuration|creditsTitle|wrapStep|creditsPosition|525|creditsText|Safari|nextSibling|Eval|toString|correctRatio|tmpMin|Overlay|addOverlay|hideIframes|hideSelects|htmlE|useControls|dynamicallyUpdateAnchors|embedSWF|onAfterExpand|dimming|link|Type|outlineStartOffset|transparent|Content|allowtransparency|button|http|xpand|write|application|frameborder|addSlideshow|zoomout|urlencoded|keyCode|onKeyDown|zoomin|Use|createTextNode|graphics|onmouseout|shape|send|version|1001|geckodimmer|registerOverlay|onDimmerClick|responseText|flash|www|about|blank|keys|com|maincontentId|maincontentText|headingEval|headingText|headingId|maincontentEval|maxHeight|ra|it|HsExpander|onmousewheel|captionEval|captionText|floor|DOMContentLoaded|doScroll|circle|callee|120|footer|captionId|mousewheel|DOMMouseScroll|300|Macintosh|Gecko|_self|pageYOffset|pageXOffset|onBeforeExpand|reflow|useMap|onImageClick|boolean|onSetClickEvent|reuse|clearTimeout|||mgnRight|HEAD|removeAttribute|important|firstChild|pI|down|inner|drop|shadow|float|text|expressInstallSwfurl|GET|outlines|onCreateOverlay|outlinesDir|insertBefore|fontSize|homepage|oncontextmenu|DXImageTransform||progid|removeSWF|coords|lineHeight|collapse|htmlCreate|onBeforeGetContent|eval|With|flushImgSize|200px|borderCollapse|cellSpacing|esc|Resize|AlphaImageLoader|sizingMethod|onBlur|Loading|cancel|bring|front|onShowLoading|onInit|onmouseover|IFRAME|SELECT|allowSimultaneousLoading|onFocus|Expand|imageCreate|StopPlay|blockRightClick|scale|default|onBeforeClose|actual|Powered|Go|the|onAfterGetCaption|onAfterGetContent|onreadystatechange|onMouseOver|toElement|fromElement|mouseover|onMouseOut|attachEvent|onAfterClose|interval|Msxml2|newWidth|onDrag|click|01|white|Requested|onDrop|drag|header|dragSensitivity|forceAjaxReload|dummy|sqrt|onDoFullExpand|500|protocol|static|Image|onActivate|nodeName|onBeforeGetCaption||onBeforeGetHeading|splice|useOnHtml|setInterval|of|fit|https|onAfterGetHeading|onCreateFullExpand|paddingTop|1px|clearInterval|linearTween'.split('|'),0,{}))
var HighSlide = {
 slideshowGroups: new Object,
 init: function()
 {
 hs.showCredits = false;
 hs.graphicsDir = '/media/dsg/highslide/';
 hs.align = 'center';
 hs.transitions = ['expand', 'crossfade'];
 hs.fadeInOut = true;
 hs.dimmingOpacity = 0.8;
 hs.marginBottom = 105;
 hs.lang.loadingText = '';
 hs.outlineWhileAnimating = true;
 hs.width = 640;
 },
 bind: function(elements)
 {
 elements.find('a.hs').each(HighSlide.start_each);
 },
 start_each: function(i)
 {
 this.onclick = function() {
 var link = $(this);
 var classes = link.attr('class').split(' ');
 var object_overrides = HighSlide.fetch_object_overrides(classes);
 object_overrides.src = link.attr('href');
 if (link.attr('title')) {
 object_overrides.captionText = link.attr('title');
 }
 if (jQuery.inArray('htmlExpand', classes) != -1) {
 return hs.htmlExpand(this, object_overrides);
 } else {
 return hs.expand(this, object_overrides);
 }
 };
 },
 fetch_object_overrides: function(classes)
 {
 var object_overrides = new Object;
 var regex = /^hs_(.+)_([^_]*)$/;
 jQuery.each(classes, function() {
 var result = this.match(regex);
 if (result) {
 if (result[1] == 'slideshowGroup') {
 HighSlide.register_overlay(result[2]);
 }
 object_overrides[result[1]] = result[2];
 }
 });
 return object_overrides;
 },
 register_overlay: function(slideshowGroup)
 {
 if (!HighSlide.slideshowGroups[slideshowGroup]) {
 HighSlide.slideshowGroups[slideshowGroup] = true;
 hs.addSlideshow({
 slideshowGroup: slideshowGroup,
 interval: 5000,
 repeat: false,
 useControls: true,
 overlayOptions: {
 className: 'text-controls',
 position: 'bottom center',
 relativeTo: 'viewport',
 offsetY: -60
 },
 thumbstrip: {
 position: 'bottom center',
 mode: 'horizontal',
 relativeTo: 'viewport'
 }
 });
 }
 }
}
HighSlide.init();
Events.register(HighSlide.bind);
hs.lang = {
 cssDirection: 'ltr',
 loadingText : '',
 loadingTitle : 'Kliknite, da prekličete',
 focusTitle : 'Kliknite, da postavite v ospredje',
 fullExpandTitle : 'Raztegni na dejansko velikost (tipka f)',
 creditsText : '',
 creditsTitle : '',
 previousText : 'Prejšnja',
 nextText : 'Naslednja',
 moveText : 'Premakni',
 closeText : 'Zapri',
 closeTitle : 'Zapri (tipka esc)',
 resizeTitle : 'Raztegni',
 playText : 'Predvajaj',
 playTitle : 'Diaprojekcija (tipka presledek)',
 pauseText : 'Pavza',
 pauseTitle : 'Premor diaprojekcije (tipka presledek)',
 previousTitle : 'Prejšnja (tipka levo)',
 nextTitle : 'Naslednja (tipka desno)',
 moveTitle : 'Premakni',
 fullExpandText : '1:1',
 number: 'Slika %1 od %2',
 restoreTitle : 'Kliknite, da zaprete sliko, kliknite in povlecite za premik. Uporabite puščice za naslednjo in prejšnjo sliko.'
};
var GenericForm = {
 run: function()
 {
 GenericForm.relatedFields();
 },
 relatedFields: function()
 {
 $('.GenericForm form li[class*="related_field_"]').hide();
 var items = $('.GenericForm form li[class*="field_"]:not([class*="related_field_"])');
 GenericForm.relatedFieldsLoop(items);
 $('.GenericForm form li[class*="field_"] :input,.GenericForm form li[class*="related_field_"] :input')
 .bind('change', GenericForm.relatedFieldsEvents)
 .bind('keyup', GenericForm.relatedFieldsEvents)
 .trigger('keyup');
 
 $('.GenericForm form a.toogleConditions').each(function() {
 var link = $(this);
 var conditions = link.closest('fieldset').find('li.conditions');
 conditions.height(conditions.height() + 'px').hide();
 link.data('conditions', conditions);
 link.click(GenericForm.onConditionsClick);
 });
 },
 relatedFieldsLoop: function(items)
 {
 if (!items.length) {
 return;
 }
 items.each(function() {
 var li = $(this);
 var input = li.find(':input:eq(0)');
 if (input.data('related_data_condition')) {
 var result = li.attr('class').match(/related_field_(\d+)/);
 if (result) {
 var parentInputs = $('.GenericForm form li.field_' + result[1] + ' :input[name^="field_' + result[1] + '"]');
 var valid = 0;
 parentInputs.each(function() {
 var parentInput = $(this);
 if (parentInput.attr('type') == 'checkbox') {
 var $value = parentInput.attr('checked') ? parentInput.val() : null;
 } else {
 var $value = parentInput.val();
 }
 valid |= eval(input.data('related_data_condition')) ? 1 : 0;
 });
 if (!valid) {
 return;
 }
 }
 }
 li.show();
 if (li.hasClass('valid')) {
 var result = li.attr('class').match(/field_(\d+)/);
 if (result) {
 var itemChilds = $('.GenericForm form li.related_' + result[0]);
 GenericForm.relatedFieldsLoop(itemChilds);
 }
 }
 });
 },
 relatedFieldsEvents: function(event)
 {
 var input = $(this);
 var liRelated = 'li.related_' + input.attr('name');
 liRelated = liRelated.replace('[]', '');
 var items = input.closest('form').find(liRelated).hide();
 GenericForm.relatedFieldsLoop(items);
 },
 onConditionsClick: function(event)
 {
 event.preventDefault();
 var conditions = $(this).data('conditions');
 if (conditions.is(':visible')) {
 conditions.hide();
 } else {
 conditions.show();
 }
 var expander = top.hs.getExpander();
 if (expander) {
 expander.reflow();
 }
 return false;
 }
}
run(GenericForm);
var GenericList = {
 bind: function(elements)
 {
 $('.GenericList form.sortItems input[type="submit"]', elements).hide();
 $('.GenericList form.sortItems select[name="sort"]', elements).change(GenericList.onSortChange);
 },
 onSortChange: function(event)
 {
 $(this)
 .closest('form')
 .find('input[type="submit"]')
 .trigger('click')
 ;
 }
}
Events.register(GenericList.bind);
var GenericListLast = {
 navigationHTML: '' +
 '<div class="navigation">' +
 ' <a class="prev" href="#">&laquo;</a>' +
 ' <a class="pause" href="#">||</a>' +
 ' <a class="next" href="#">&raquo;</a>' +
 '</div>'
 ,
 run: function()
 {
 GenericListLast.initRandom();
 },
 initRandom: function()
 {
 var randoms = $('.GenericListLast div.isChanging');
 randoms.each(function() {
 var random = $(this);
 random.data('duration', random.find('input[name="duration"]').val() * 1000);
 random.find('.items ul > li').each(function(i) {
 var item = $(this);
 item.data('height', item.height()).hide();
 if (i == 0) {
 item.show().addClass('active');
 }
 });
 GenericListLast.startSlider(random);
 GenericListLast.setNavigation(random);
 });
 },
 startSlider: function(random)
 {
 GenericListLast.resetSlider(random);
 var slider = setTimeout(function() {
 GenericListLast.slider(random, false);
 }, random.data('duration'));
 random.data('slider', slider);
 },
 resetSlider: function(random)
 {
 clearTimeout(random.data('slider'));
 },
 slider: function(random, prev)
 {
 var active = random.find('.items ul > li.active');
 if (!active.length) {
 active = random.find('.items ul > li:first');
 }
 if (!active.length) {
 return;
 }
 var ul = active.closest('ul');
 if (prev) {
 var next = active.prev();
 if (!next.length) {
 next = ul.find('li:last');
 }
 } else {
 var next = active.next();
 if (!next.length) {
 next = ul.find('li:first');
 }
 }
 if (next.hasClass('active')) {
 return false;
 }
 active.removeClass('active').hide();
 next.addClass('active').show();
 if (!random.data('pause')) {
 GenericListLast.startSlider(random);
 }
 return false;
 },
 setNavigation: function(random)
 {
 random.append(GenericListLast.navigationHTML);
 random.find('.navigation a').bind('click', function(event) {
 event.preventDefault();
 var link = $(this);
 if (link.hasClass('pause')) {
 if (random.data('pause')) {
 random.data('pause', false);
 link.removeClass('active');
 GenericListLast.startSlider(random);
 } else {
 random.data('pause', true);
 link.addClass('active');
 GenericListLast.resetSlider(random);
 }
 } else {
 GenericListLast.slider(random, link.hasClass('prev'));
 }
 });
 }
}
run(GenericListLast);
var Media = {
 prevPage: 'prevPage',
 nextPage: 'nextPage',
 navi: 'navi',
 run: function()
 {
 jQuery.each($('.media'), Media.init);
 },
 init: function(i, element)
 {
 var item = $(element);
 item.data('pages', item.find('ul.page').length);
 Media.initArrows(item);
 Media.initItems(item);
 Media.initScroll(item);
 },
 initArrows: function(item)
 {
 if (item.data('pages') > 1) {
 item
 .append ('<div class="navigation"><div class="scroll-wrapper"><div class="pPage"><div class="' + Media.prevPage + '"><a href="#" onclick="return false;"></a></div></div><div class="' + Media.navi + '"></div><div class="nPage"><div class="' + Media.nextPage + '"><a href="#" onclick="return false;"></a></div></div></div></div>');
 ;
 }
 },
 initItems: function(item)
 {
 item.find('.items:first').wrap('<div class="scrollable"></div>');
 var scrollable = item.find('.scrollable');
 item.find('ul.page').css('width', scrollable.width());
 item.find('.scrollable:first').css('height', item.find('.items:first').height());
 },
 initScroll: function(item)
 {
 if (item.data('pages') > 1) {
 item.find('.scrollable').scrollable({
 size: 1,
 keyboard: false,
 prevPage: '.' + Media.prevPage,
 nextPage: '.' + Media.nextPage,
 clickable: false
 }).navigator({
 navi: '.' + Media.navi,
 indexed: true
 });
 var navi = item.find('.' + Media.navi);
 var width = 0;
 navi.find('a').each(function() {
 var a = $(this);
 a.text(parseInt(a.text()) + 1);
 width += parseInt(a.width()) + parseInt(a.css('padding-left')) + parseInt(a.css('padding-right'));
 });
 navi.css('width', width+'px');
 }
 }
}
run(Media);
var Document = {
 run: function()
 {
 var parent = $('.document');
 jQuery.each(parent, Media.init);
 $('li.item a', parent).click(Document.linkOnClick);
 $('a.download').click(Document.downloadOnClick);
 },
 linkOnClick: function(event)
 {
 var link = $(this);
 if (link.hasClass('hs')) {
 return;
 }
 var redirect = link.closest('li').find('input[name="redirect"]').val();
 if (!redirect) {
 return;
 }
 open(link.attr('href'));
 window.location = redirect;
 return false;
 },
 downloadOnClick: function()
 {
 var link = $(this);
 var redirect = link.prev('input[name="redirect"]').val();
 open(link.attr('href'));
 if (redirect) {
 top.window.location = redirect;
 } else {
 top.location = parent.window.location;
 }
 top.hs.close();
 return false;
 }
}
run(Document);
var ExposedItem = {
 run: function()
 {
 }
}
run(ExposedItem);
var Promotion = {
 run: function()
 {
 $('.Promotion').each(this.init);
 },
 init: function(i, element)
 {
 var item = $(element);
 item.data('duration', item.find('input[name="duration"]').val() * 1000);
 Promotion.startSlider(item);
 Promotion.initPaging(item);
 },
 startSlider: function(item)
 {
 var slider = setTimeout(function() {
 Promotion.slider(item, false);
 }, item.data('duration'));
 item.data('slider', slider);
 },
 resetSlider: function(item)
 {
 clearTimeout(item.data('slider'));
 },
 slider: function(item, prev)
 {
 var active = item.find('.items .item.active');
 if (!active.length) {
 return;
 }
 if (prev) {
 var next = active.prev('.item');
 if (!next.length) {
 next = active.parent().find('.item:last');
 }
 } else {
 var next = active.next('.item');
 if (!next.length) {
 next = active.parent().find('.item:first');
 }
 }
 if (next.hasClass('active')) {
 return false;
 }
 Promotion.changeItems(item, active, next);
 Promotion.startSlider(item);
 },
 initPaging: function(item)
 {
 var paging = item.find('.navigation .paging');
 if (item.find('.navigation .title:hidden').length) {
 var marginLeft = (paging.parent().width() / 2) - (paging.width() / 2);
 paging.css('margin-left', marginLeft + 'px')
 }
 paging.find('a').bind('click', function(event) {
 Promotion.resetSlider(item);
 var link = $(this);
 var result = link.attr('id').match(/^promotion(.+)_page(.+)$/);
 var key = 'promotion' + result[1];
 var active = item.find('.items .item.active');
 var next = $('#' + key + '_item' + result[2]);
 Promotion.changeItems(item, active, next);
 Promotion.startSlider(item);
 return false;
 });
 item.find('.navigation a.prev').click(function(){
 Promotion.resetSlider(item);
 var active = item.find('.items .item.active');
 var index = item.find('.items .item').index(active) - 1;
 var count = item.find('.items .item').length - 1;
 index = (index < 0) ? count : index;
 var prev = item.find('.items .item:eq(' + index + ')')
 Promotion.changeItems(item, active, prev);
 Promotion.startSlider(item);
 return false;
 });
 item.find('.navigation a.next').click(function(){
 Promotion.resetSlider(item);
 var active = item.find('.items .item.active');
 var index = item.find('.items .item').index(active) + 1;
 var count = item.find('.items .item').length - 1;
 index = (index > count) ? 0 : index;
 var next = item.find('.items .item:eq(' + index + ')')
 Promotion.changeItems(item, active, next);
 Promotion.startSlider(item);
 return false;
 });
 },
 changeItems: function(item, active, next)
 {
 if ($('body').hasClass('home')) {
 active.removeClass('active').slideUp('slow');
 next.addClass('active').slideDown('slow');
 }
 else {
 active.removeClass('active').hide();
 next.addClass('active').show(); 
 }
 var result = next.attr('id').match(/^promotion(.+)_item(.+)$/);
 var key = 'promotion' + result[1] + '_page' + result[2];
 item.find('.paging a').removeClass('active');
 var next_link = $('#' + key);
 next_link.addClass('active');
 item.find('.navigation .title').html(next_link.attr('title'));
 }
}
run(Promotion);
var Evaluation = {
 bind: function(elements)
 {
 $('.evaluation a', elements).click(Evaluation.onClick);
 },
 onClick: function(event)
 {
 event.preventDefault();
 var link = $(this);
 var parent = link.closest('.evaluation');
 Loader.show(event);
 $.ajax({
 url: link.attr('href'),
 dataType: 'html',
 type: 'POST',
 data: {
 ajax_plugin: 'Evaluation',
 ajax_action: 'AjaxEvaluate'
 },
 success: function(data) {
 parent.empty().html(data);
 Evaluation.bind(parent.parent());
 },
 complete: function() {
 Loader.hide();
 }
 });
 }
}
Events.register(Evaluation.bind);
