/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(aj,an){function a9(){if(!ap.isReady){try{am.documentElement.doScroll("left")}catch(c){setTimeout(a9,1);return}ap.ready()}}function aw(s,c){c.src?ap.ajax({url:c.src,async:false,dataType:"script"}):ap.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function B(G,F,K,J,c,s){var w=G.length;if(typeof F==="object"){for(var A in F){B(G,A,F[A],J,c,K)}return G}if(K!==an){J=!s&&J&&ap.isFunction(K);for(A=0;A<w;A++){c(G[A],F,J?K.call(G[A],A,c(G[A],F)):K,s)}return G}return w?c(G[0],F):an}function ac(){return(new Date).getTime()}function C(){return false}function y(){return true}function a6(w,s,c){c[0].type=w;return ap.event.handle.apply(s,c)}function a7(N){var L,P=[],O=[],c=arguments,A,G,K,F,J,s;G=ap.data(this,"events");if(!(N.liveFired===this||!G||!G.live||N.button&&N.type==="click")){N.liveFired=this;var w=G.live.slice(0);for(F=0;F<w.length;F++){G=w[F];G.origType.replace(ag,"")===N.type?O.push(G.selector):w.splice(F--,1)}A=ap(N.target).closest(O,N.currentTarget);J=0;for(s=A.length;J<s;J++){for(F=0;F<w.length;F++){G=w[F];if(A[J].selector===G.selector){K=A[J].elem;O=null;if(G.preType==="mouseenter"||G.preType==="mouseleave"){O=ap(N.relatedTarget).closest(G.selector)[0]}if(!O||O!==K){P.push({elem:K,handleObj:G})}}}}J=0;for(s=P.length;J<s;J++){A=P[J];N.currentTarget=A.elem;N.data=A.handleObj.data;N.handleObj=A.handleObj;if(A.handleObj.origHandler.apply(A.elem,c)===false){L=false;break}}return L}}function aW(s,c){return"live."+(s&&s!=="*"?s+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function aX(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function aU(w,s){var c=0;s.each(function(){if(this.nodeName===(w[c]&&w[c].nodeName)){var J=ap.data(w[c++]),F=ap.data(this,J);if(J=J&&J.events){delete F.handle;F.events={};for(var G in J){for(var A in J[G]){ap.event.add(this,G,J[G][A],J[G][A].data)}}}}})}function aV(F,A,s){var G,w,c;A=A&&A[0]?A[0].ownerDocument||A[0]:am;if(F.length===1&&typeof F[0]==="string"&&F[0].length<512&&A===am&&!a0.test(F[0])&&(ap.support.checkClone||!a1.test(F[0]))){w=true;if(c=ap.fragments[F[0]]){if(c!==1){G=c}}}if(!G){G=A.createDocumentFragment();ap.clean(F,A,G,s)}if(w){ap.fragments[F[0]]=c?G:1}return{fragment:G,cacheable:w}}function ad(w,s){var c={};ap.each(o.concat.apply([],o.slice(0,s)),function(){c[this]=w});return c}function aZ(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var ap=function(s,c){return new ap.fn.init(s,c)},at=aj.jQuery,au=aj.$,am=aj.document,ab,az=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aA=/^.[^:#\[\.,]*$/,ax=/\S/,ay=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,aq=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,I=navigator.userAgent,aR=false,M=[],ah,f=Object.prototype.toString,aC=Object.prototype.hasOwnProperty,bb=Array.prototype.push,H=Array.prototype.slice,aS=Array.prototype.indexOf;ap.fn=ap.prototype={init:function(w,s){var c,A;if(!w){return this}if(w.nodeType){this.context=this[0]=w;this.length=1;return this}if(w==="body"&&!s){this.context=am;this[0]=am.body;this.selector="body";this.length=1;return this}if(typeof w==="string"){if((c=az.exec(w))&&(c[1]||!s)){if(c[1]){A=s?s.ownerDocument||s:am;if(w=aq.exec(w)){if(ap.isPlainObject(s)){w=[am.createElement(w[1])];ap.fn.attr.call(w,s,true)}else{w=[A.createElement(w[1])]}}else{w=aV([c[1]],[A]);w=(w.cacheable?w.fragment.cloneNode(true):w.fragment).childNodes}return ap.merge(this,w)}else{if(s=am.getElementById(c[2])){if(s.id!==c[2]){return ab.find(w)}this.length=1;this[0]=s}this.context=am;this.selector=w;return this}}else{if(!s&&/^\w+$/.test(w)){this.selector=w;this.context=am;w=am.getElementsByTagName(w);return ap.merge(this,w)}else{return !s||s.jquery?(s||ab).find(w):ap(s).find(w)}}}else{if(ap.isFunction(w)){return ab.ready(w)}}if(w.selector!==an){this.selector=w.selector;this.context=w.context}return ap.makeArray(w,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return H.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(w,s,c){var A=ap();ap.isArray(w)?bb.apply(A,w):ap.merge(A,w);A.prevObject=this;A.context=this.context;if(s==="find"){A.selector=this.selector+(this.selector?" ":"")+c}else{if(s){A.selector=this.selector+"."+s+"("+c+")"}}return A},each:function(s,c){return ap.each(this,s,c)},ready:function(c){ap.bindReady();if(ap.isReady){c.call(am,ap)}else{M&&M.push(c)}return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(H.apply(this,arguments),"slice",H.call(arguments).join(","))},map:function(c){return this.pushStack(ap.map(this,function(w,s){return c.call(w,s,w)}))},end:function(){return this.prevObject||ap(null)},push:bb,sort:[].sort,splice:[].splice};ap.fn.init.prototype=ap.fn;ap.extend=ap.fn.extend=function(){var G=arguments[0]||{},F=1,K=arguments.length,J=false,c,s,w,A;if(typeof G==="boolean"){J=G;G=arguments[1]||{};F=2}if(typeof G!=="object"&&!ap.isFunction(G)){G={}}if(K===F){G=this;--F}for(;F<K;F++){if((c=arguments[F])!=null){for(s in c){w=G[s];A=c[s];if(G!==A){if(J&&A&&(ap.isPlainObject(A)||ap.isArray(A))){w=w&&(ap.isPlainObject(w)||ap.isArray(w))?w:ap.isArray(A)?[]:{};G[s]=ap.extend(J,w,A)}else{if(A!==an){G[s]=A}}}}}}return G};ap.extend({noConflict:function(c){aj.$=au;if(c){aj.jQuery=at}return ap},isReady:false,ready:function(){if(!ap.isReady){if(!am.body){return setTimeout(ap.ready,13)}ap.isReady=true;if(M){for(var s,c=0;s=M[c++];){s.call(am,ap)}M=null}ap.fn.triggerHandler&&ap(am).triggerHandler("ready")}},bindReady:function(){if(!aR){aR=true;if(am.readyState==="complete"){return ap.ready()}if(am.addEventListener){am.addEventListener("DOMContentLoaded",ah,false);aj.addEventListener("load",ap.ready,false)}else{if(am.attachEvent){am.attachEvent("onreadystatechange",ah);aj.attachEvent("onload",ap.ready);var s=false;try{s=aj.frameElement==null}catch(c){}am.documentElement.doScroll&&s&&a9()}}}},isFunction:function(c){return f.call(c)==="[object Function]"},isArray:function(c){return f.call(c)==="[object Array]"},isPlainObject:function(s){if(!s||f.call(s)!=="[object Object]"||s.nodeType||s.setInterval){return false}if(s.constructor&&!aC.call(s,"constructor")&&!aC.call(s.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in s){}return c===an||aC.call(s,c)},isEmptyObject:function(s){for(var c in s){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}c=ap.trim(c);if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aj.JSON&&aj.JSON.parse?aj.JSON.parse(c):(new Function("return "+c))()}else{ap.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(w){if(w&&ax.test(w)){var s=am.getElementsByTagName("head")[0]||am.documentElement,c=am.createElement("script");c.type="text/javascript";if(ap.support.scriptEval){c.appendChild(am.createTextNode(w))}else{c.text=w}s.insertBefore(c,s.firstChild);s.removeChild(c)}},nodeName:function(s,c){return s.nodeName&&s.nodeName.toUpperCase()===c.toUpperCase()},each:function(G,F,s){var J,w=0,c=G.length,A=c===an||ap.isFunction(G);if(s){if(A){for(J in G){if(F.apply(G[J],s)===false){break}}}else{for(;w<c;){if(F.apply(G[w++],s)===false){break}}}}else{if(A){for(J in G){if(F.call(G[J],J,G[J])===false){break}}}else{for(s=G[0];w<c&&F.call(s,w,s)!==false;s=G[++w]){}}}return G},trim:function(c){return(c||"").replace(ay,"")},makeArray:function(s,c){c=c||[];if(s!=null){s.length==null||typeof s==="string"||ap.isFunction(s)||typeof s!=="function"&&s.setInterval?bb.call(c,s):ap.merge(c,s)}return c},inArray:function(w,s){if(s.indexOf){return s.indexOf(w)}for(var c=0,A=s.length;c<A;c++){if(s[c]===w){return c}}return -1},merge:function(A,w){var c=A.length,F=0;if(typeof w.length==="number"){for(var s=w.length;F<s;F++){A[c++]=w[F]}}else{for(;w[F]!==an;){A[c++]=w[F++]}}A.length=c;return A},grep:function(F,A,s){for(var G=[],w=0,c=F.length;w<c;w++){!s!==!A(F[w],w)&&G.push(F[w])}return G},map:function(G,F,s){for(var J=[],w,c=0,A=G.length;c<A;c++){w=F(G[c],c,s);if(w!=null){J[J.length]=w}}return J.concat.apply([],J)},guid:1,proxy:function(w,s,c){if(arguments.length===2){if(typeof s==="string"){c=w;w=c[s];s=an}else{if(s&&!ap.isFunction(s)){c=s;s=an}}}if(!s&&w){s=function(){return w.apply(c||this,arguments)}}if(w){s.guid=w.guid=w.guid||s.guid||ap.guid++}return s},uaMatch:function(c){c=c.toLowerCase();c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},browser:{}});I=ap.uaMatch(I);if(I.browser){ap.browser[I.browser]=true;ap.browser.version=I.version}if(ap.browser.webkit){ap.browser.safari=true}if(aS){ap.inArray=function(s,c){return aS.call(c,s)}}ab=ap(am);if(am.addEventListener){ah=function(){am.removeEventListener("DOMContentLoaded",ah,false);ap.ready()}}else{if(am.attachEvent){ah=function(){if(am.readyState==="complete"){am.detachEvent("onreadystatechange",ah);ap.ready()}}}}(function(){ap.support={};var J=am.documentElement,G=am.createElement("script"),L=am.createElement("div"),K="script"+ac();L.style.display="none";L.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var c=L.getElementsByTagName("*"),s=L.getElementsByTagName("a")[0];if(!(!c||!c.length||!s)){ap.support={leadingWhitespace:L.firstChild.nodeType===3,tbody:!L.getElementsByTagName("tbody").length,htmlSerialize:!!L.getElementsByTagName("link").length,style:/red/.test(s.getAttribute("style")),hrefNormalized:s.getAttribute("href")==="/a",opacity:/^0.55$/.test(s.style.opacity),cssFloat:!!s.style.cssFloat,checkOn:L.getElementsByTagName("input")[0].value==="on",optSelected:am.createElement("select").appendChild(am.createElement("option")).selected,parentNode:L.removeChild(L.appendChild(am.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(am.createTextNode("window."+K+"=1;"))}catch(A){}J.insertBefore(G,J.firstChild);if(aj[K]){ap.support.scriptEval=true;delete aj[K]}try{delete G.test}catch(F){ap.support.deleteExpando=false}J.removeChild(G);if(L.attachEvent&&L.fireEvent){L.attachEvent("onclick",function w(){ap.support.noCloneEvent=false;L.detachEvent("onclick",w)});L.cloneNode(true).fireEvent("onclick")}L=am.createElement("div");L.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";J=am.createDocumentFragment();J.appendChild(L.firstChild);ap.support.checkClone=J.cloneNode(true).cloneNode(true).lastChild.checked;ap(function(){var N=am.createElement("div");N.style.width=N.style.paddingLeft="1px";am.body.appendChild(N);ap.boxModel=ap.support.boxModel=N.offsetWidth===2;am.body.removeChild(N).style.display="none"});J=function(P){var O=am.createElement("div");P="on"+P;var N=P in O;if(!N){O.setAttribute(P,"return;");N=typeof O[P]==="function"}return N};ap.support.submitBubbles=J("submit");ap.support.changeBubbles=J("change");J=G=L=c=s=null}})();ap.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var al="jQuery"+ac(),ar=0,aQ={};ap.extend({cache:{},expando:al,noData:{embed:true,object:true,applet:true},data:function(A,w,c){if(!(A.nodeName&&ap.noData[A.nodeName.toLowerCase()])){A=A==aj?aQ:A;var F=A[al],s=ap.cache;if(!F&&typeof w==="string"&&c===an){return null}F||(F=++ar);if(typeof w==="object"){A[al]=F;s[F]=ap.extend(true,{},w)}else{if(!s[F]){A[al]=F;s[F]={}}}A=s[F];if(c!==an){A[w]=c}return typeof w==="string"?A[w]:A}},removeData:function(A,w){if(!(A.nodeName&&ap.noData[A.nodeName.toLowerCase()])){A=A==aj?aQ:A;var c=A[al],F=ap.cache,s=F[c];if(w){if(s){delete s[w];ap.isEmptyObject(s)&&ap.removeData(A)}}else{if(ap.support.deleteExpando){delete A[ap.expando]}else{A.removeAttribute&&A.removeAttribute(ap.expando)}delete F[c]}}}});ap.fn.extend({data:function(w,s){if(typeof w==="undefined"&&this.length){return ap.data(this[0])}else{if(typeof w==="object"){return this.each(function(){ap.data(this,w)})}}var c=w.split(".");c[1]=c[1]?"."+c[1]:"";if(s===an){var A=this.triggerHandler("getData"+c[1]+"!",[c[0]]);if(A===an&&this.length){A=ap.data(this[0],w)}return A===an&&c[1]?this.data(c[0]):A}else{return this.trigger("setData"+c[1]+"!",[c[0],s]).each(function(){ap.data(this,w,s)})}},removeData:function(c){return this.each(function(){ap.removeData(this,c)})}});ap.extend({queue:function(w,s,c){if(w){s=(s||"fx")+"queue";var A=ap.data(w,s);if(!c){return A||[]}if(!A||ap.isArray(c)){A=ap.data(w,s,ap.makeArray(c))}else{A.push(c)}return A}},dequeue:function(w,s){s=s||"fx";var c=ap.queue(w,s),A=c.shift();if(A==="inprogress"){A=c.shift()}if(A){s==="fx"&&c.unshift("inprogress");A.call(w,function(){ap.dequeue(w,s)})}}});ap.fn.extend({queue:function(s,c){if(typeof s!=="string"){c=s;s="fx"}if(c===an){return ap.queue(this[0],s)}return this.each(function(){var w=ap.queue(this,s,c);s==="fx"&&w[0]!=="inprogress"&&ap.dequeue(this,s)})},dequeue:function(c){return this.each(function(){ap.dequeue(this,c)})},delay:function(s,c){s=ap.fx?ap.fx.speeds[s]||s:s;c=c||"fx";return this.queue(c,function(){var w=this;setTimeout(function(){ap.dequeue(w,c)},s)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var aL=/[\n\t]/g,bc=/\s+/,ao=/\r/g,n=/href|src|style/,e=/(button|input)/i,b=/(button|input|object|select|textarea)/i,d=/^(a|area)$/i,aJ=/radio|checkbox/;ap.fn.extend({attr:function(s,c){return B(this,s,c,true,ap.attr)},removeAttr:function(c){return this.each(function(){ap.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(J){if(ap.isFunction(J)){return this.each(function(O){var N=ap(this);N.addClass(J.call(this,O,N.attr("class")))})}if(J&&typeof J==="string"){for(var G=(J||"").split(bc),L=0,K=this.length;L<K;L++){var c=this[L];if(c.nodeType===1){if(c.className){for(var s=" "+c.className+" ",A=c.className,F=0,w=G.length;F<w;F++){if(s.indexOf(" "+G[F]+" ")<0){A+=" "+G[F]}}c.className=ap.trim(A)}else{c.className=J}}}}return this},removeClass:function(G){if(ap.isFunction(G)){return this.each(function(N){var L=ap(this);L.removeClass(G.call(this,N,L.attr("class")))})}if(G&&typeof G==="string"||G===an){for(var F=(G||"").split(bc),K=0,J=this.length;K<J;K++){var c=this[K];if(c.nodeType===1&&c.className){if(G){for(var s=(" "+c.className+" ").replace(aL," "),w=0,A=F.length;w<A;w++){s=s.replace(" "+F[w]+" "," ")}c.className=ap.trim(s)}else{c.className=""}}}}return this},toggleClass:function(w,s){var c=typeof w,A=typeof s==="boolean";if(ap.isFunction(w)){return this.each(function(F){var G=ap(this);G.toggleClass(w.call(this,F,G.attr("class"),s),s)})}return this.each(function(){if(c==="string"){for(var G,K=0,F=ap(this),J=s,L=w.split(bc);G=L[K++];){J=A?J:!F.hasClass(G);F[J?"addClass":"removeClass"](G)}}else{if(c==="undefined"||c==="boolean"){this.className&&ap.data(this,"__className__",this.className);this.className=this.className||w===false?"":ap.data(this,"__className__")||""}}})},hasClass:function(w){w=" "+w+" ";for(var s=0,c=this.length;s<c;s++){if((" "+this[s].className+" ").replace(aL," ").indexOf(w)>-1){return true}}return false},val:function(G){if(G===an){var F=this[0];if(F){if(ap.nodeName(F,"option")){return(F.attributes.value||{}).specified?F.value:F.text}if(ap.nodeName(F,"select")){var K=F.selectedIndex,J=[],c=F.options;F=F.type==="select-one";if(K<0){return null}var s=F?K:0;for(K=F?K+1:c.length;s<K;s++){var w=c[s];if(w.selected){G=ap(w).val();if(F){return G}J.push(G)}}return J}if(aJ.test(F.type)&&!ap.support.checkOn){return F.getAttribute("value")===null?"on":F.value}return(F.value||"").replace(ao,"")}return an}var A=ap.isFunction(G);return this.each(function(P){var N=ap(this),L=G;if(this.nodeType===1){if(A){L=G.call(this,P,N.val())}if(typeof L==="number"){L+=""}if(ap.isArray(L)&&aJ.test(this.type)){this.checked=ap.inArray(N.val(),L)>=0}else{if(ap.nodeName(this,"select")){var O=ap.makeArray(L);ap("option",this).each(function(){this.selected=ap.inArray(ap(this).val(),O)>=0});if(!O.length){this.selectedIndex=-1}}else{this.value=L}}}})}});ap.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(F,A,s,G){if(!F||F.nodeType===3||F.nodeType===8){return an}if(G&&A in ap.attrFn){return ap(F)[A](s)}G=F.nodeType!==1||!ap.isXMLDoc(F);var w=s!==an;A=G&&ap.props[A]||A;if(F.nodeType===1){var c=n.test(A);if(A in F&&G&&!c){if(w){A==="type"&&e.test(F.nodeName)&&F.parentNode&&ap.error("type property can't be changed");F[A]=s}if(ap.nodeName(F,"form")&&F.getAttributeNode(A)){return F.getAttributeNode(A).nodeValue}if(A==="tabIndex"){return(A=F.getAttributeNode("tabIndex"))&&A.specified?A.value:b.test(F.nodeName)||d.test(F.nodeName)&&F.href?0:an}return F[A]}if(!ap.support.style&&G&&A==="style"){if(w){F.style.cssText=""+s}return F.style.cssText}w&&F.setAttribute(A,""+s);F=!ap.support.hrefNormalized&&G&&c?F.getAttribute(A,2):F.getAttribute(A);return F===null?an:F}return ap.style(F,A,s)}});var ag=/\.(.*)$/,h=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s})};ap.event={add:function(O,N,Q,P){if(!(O.nodeType===3||O.nodeType===8)){if(O.setInterval&&O!==aj&&!O.frameElement){O=aj}var c,A;if(Q.handler){c=Q;Q=c.handler}if(!Q.guid){Q.guid=ap.guid++}if(A=ap.data(O)){var G=A.events=A.events||{},K=A.handle;if(!K){A.handle=K=function(){return typeof ap!=="undefined"&&!ap.event.triggered?ap.event.handle.apply(K.elem,arguments):an}}K.elem=O;N=N.split(" ");for(var F,J=0,s;F=N[J++];){A=c?ap.extend({},c):{handler:Q,data:P};if(F.indexOf(".")>-1){s=F.split(".");F=s.shift();A.namespace=s.slice(0).sort().join(".")}else{s=[];A.namespace=""}A.type=F;A.guid=Q.guid;var w=G[F],L=ap.event.special[F]||{};if(!w){w=G[F]=[];if(!L.setup||L.setup.call(O,P,s,K)===false){if(O.addEventListener){O.addEventListener(F,K,false)}else{O.attachEvent&&O.attachEvent("on"+F,K)}}}if(L.add){L.add.call(O,A);if(!A.handler.guid){A.handler.guid=Q.guid}}w.push(A);ap.event.global[F]=true}O=null}}},global:{},remove:function(Q,O,T,R){if(!(Q.nodeType===3||Q.nodeType===8)){var c,A=0,G,K,F,J,s,w,N=ap.data(Q),L=N&&N.events;if(N&&L){if(O&&O.type){T=O.handler;O=O.type}if(!O||typeof O==="string"&&O.charAt(0)==="."){O=O||"";for(c in L){ap.event.remove(Q,c+O)}}else{for(O=O.split(" ");c=O[A++];){J=c;G=c.indexOf(".")<0;K=[];if(!G){K=c.split(".");c=K.shift();F=new RegExp("(^|\\.)"+ap.map(K.slice(0).sort(),h).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(s=L[c]){if(T){J=ap.event.special[c]||{};for(P=R||0;P<s.length;P++){w=s[P];if(T.guid===w.guid){if(G||F.test(w.namespace)){R==null&&s.splice(P--,1);J.remove&&J.remove.call(Q,w)}if(R!=null){break}}}if(s.length===0||R!=null&&s.length===1){if(!J.teardown||J.teardown.call(Q,K)===false){aK(Q,c,N.handle)}delete L[c]}}else{for(var P=0;P<s.length;P++){w=s[P];if(G||F.test(w.namespace)){ap.event.remove(Q,J,w.handler,P);s.splice(P--,1)}}}}}if(ap.isEmptyObject(L)){if(O=N.handle){O.elem=null}delete N.events;delete N.handle;ap.isEmptyObject(N)&&ap.removeData(Q)}}}}},trigger:function(K,J,N,L){var c=K.type||K;if(!L){K=typeof K==="object"?K[al]?K:ap.extend(ap.Event(c),K):ap.Event(c);if(c.indexOf("!")>=0){K.type=c=c.slice(0,-1);K.exclusive=true}if(!N){K.stopPropagation();ap.event.global[c]&&ap.each(ap.cache,function(){this.events&&this.events[c]&&ap.event.trigger(K,J,this.handle.elem)})}if(!N||N.nodeType===3||N.nodeType===8){return an}K.result=an;K.target=N;J=ap.makeArray(J);J.unshift(K)}K.currentTarget=N;(L=ap.data(N,"handle"))&&L.apply(N,J);L=N.parentNode||N.ownerDocument;try{if(!(N&&N.nodeName&&ap.noData[N.nodeName.toLowerCase()])){if(N["on"+c]&&N["on"+c].apply(N,J)===false){K.result=false}}}catch(s){}if(!K.isPropagationStopped()&&L){ap.event.trigger(K,J,L,true)}else{if(!K.isDefaultPrevented()){L=K.target;var A,G=ap.nodeName(L,"a")&&c==="click",w=ap.event.special[c]||{};if((!w._default||w._default.call(N,K)===false)&&!G&&!(L&&L.nodeName&&ap.noData[L.nodeName.toLowerCase()])){try{if(L[c]){if(A=L["on"+c]){L["on"+c]=null}ap.event.triggered=true;L[c]()}}catch(F){}if(A){L["on"+c]=A}ap.event.triggered=false}}}},handle:function(G){var F,s,J,w;G=arguments[0]=ap.event.fix(G||aj.event);G.currentTarget=this;F=G.type.indexOf(".")<0&&!G.exclusive;if(!F){s=G.type.split(".");G.type=s.shift();J=new RegExp("(^|\\.)"+s.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}w=ap.data(this,"events");s=w[G.type];if(w&&s){s=s.slice(0);w=0;for(var c=s.length;w<c;w++){var A=s[w];if(F||J.test(A.namespace)){G.handler=A.handler;G.data=A.data;G.handleObj=A;A=A.handler.apply(this,arguments);if(A!==an){G.result=A;if(A===false){G.preventDefault();G.stopPropagation()}}if(G.isImmediatePropagationStopped()){break}}}}return G.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(w){if(w[al]){return w}var s=w;w=ap.Event(s);for(var c=this.props.length,A;c;){A=this.props[--c];w[A]=s[A]}if(!w.target){w.target=w.srcElement||am}if(w.target.nodeType===3){w.target=w.target.parentNode}if(!w.relatedTarget&&w.fromElement){w.relatedTarget=w.fromElement===w.target?w.toElement:w.fromElement}if(w.pageX==null&&w.clientX!=null){s=am.documentElement;c=am.body;w.pageX=w.clientX+(s&&s.scrollLeft||c&&c.scrollLeft||0)-(s&&s.clientLeft||c&&c.clientLeft||0);w.pageY=w.clientY+(s&&s.scrollTop||c&&c.scrollTop||0)-(s&&s.clientTop||c&&c.clientTop||0)}if(!w.which&&(w.charCode||w.charCode===0?w.charCode:w.keyCode)){w.which=w.charCode||w.keyCode}if(!w.metaKey&&w.ctrlKey){w.metaKey=w.ctrlKey}if(!w.which&&w.button!==an){w.which=w.button&1?1:w.button&2?3:w.button&4?2:0}return w},guid:100000000,proxy:ap.proxy,special:{ready:{setup:ap.bindReady,teardown:ap.noop},live:{add:function(c){ap.event.add(this,c.origType,ap.extend({},c,{handler:a7}))},remove:function(w){var s=true,c=w.origType.replace(ag,"");ap.each(ap.data(this,"events").live||[],function(){if(c===this.origType.replace(ag,"")){return s=false}});s&&ap.event.remove(this,w.origType,a7)}},beforeunload:{setup:function(w,s,c){if(this.setInterval){this.onbeforeunload=c}return false},teardown:function(s,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};var aK=am.removeEventListener?function(w,s,c){w.removeEventListener(s,c,false)}:function(w,s,c){w.detachEvent("on"+s,c)};ap.Event=function(c){if(!this.preventDefault){return new ap.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=ac();this[al]=true};ap.Event.prototype={preventDefault:function(){this.isDefaultPrevented=y;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=y;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=y;this.stopPropagation()},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};var aO=function(w){var s=w.relatedTarget;try{for(;s&&s!==this;){s=s.parentNode}if(s!==this){w.type=w.data;ap.event.handle.apply(this,arguments)}}catch(c){}},aP=function(c){c.type=c.data;ap.event.handle.apply(this,arguments)};ap.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(s,c){ap.event.special[s]={setup:function(w){ap.event.add(this,c,w&&w.selector?aP:aO,s)},teardown:function(w){ap.event.remove(this,c,w&&w.selector?aP:aO)}}});if(!ap.support.submitBubbles){ap.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){ap.event.add(this,"click.specialSubmit",function(w){var s=w.target,c=s.type;if((c==="submit"||c==="image")&&ap(s).closest("form").length){return a6("submit",this,arguments)}});ap.event.add(this,"keypress.specialSubmit",function(w){var s=w.target,c=s.type;if((c==="text"||c==="password")&&ap(s).closest("form").length&&w.keyCode===13){return a6("submit",this,arguments)}})}else{return false}},teardown:function(){ap.event.remove(this,".specialSubmit")}}}if(!ap.support.changeBubbles){var bh=/textarea|input|select/i,bi,aM=function(w){var s=w.type,c=w.value;if(s==="radio"||s==="checkbox"){c=w.checked}else{if(s==="select-multiple"){c=w.selectedIndex>-1?ap.map(w.options,function(A){return A.selected}).join("-"):""}else{if(w.nodeName.toLowerCase()==="select"){c=w.selectedIndex}}}return c},aD=function(A,w){var c=A.target,F,s;if(!(!bh.test(c.nodeName)||c.readOnly)){F=ap.data(c,"_change_data");s=aM(c);if(A.type!=="focusout"||c.type!=="radio"){ap.data(c,"_change_data",s)}if(!(F===an||s===F)){if(F!=null||s){A.type="change";return ap.event.trigger(A,w,c)}}}};ap.event.special.change={filters:{focusout:aD,click:function(w){var s=w.target,c=s.type;if(c==="radio"||c==="checkbox"||s.nodeName.toLowerCase()==="select"){return aD.call(this,w)}},keydown:function(w){var s=w.target,c=s.type;if(w.keyCode===13&&s.nodeName.toLowerCase()!=="textarea"||w.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple"){return aD.call(this,w)}},beforeactivate:function(c){c=c.target;ap.data(c,"_change_data",aM(c))}},setup:function(){if(this.type==="file"){return false}for(var c in bi){ap.event.add(this,c+".specialChange",bi[c])}return bh.test(this.nodeName)},teardown:function(){ap.event.remove(this,".specialChange");return bh.test(this.nodeName)}};bi=ap.event.special.change.filters}am.addEventListener&&ap.each({focus:"focusin",blur:"focusout"},function(w,s){function c(A){A=ap.event.fix(A);A.type=s;return ap.event.handle.call(this,A)}ap.event.special[s]={setup:function(){this.addEventListener(w,c,true)},teardown:function(){this.removeEventListener(w,c,true)}}});ap.each(["bind","one"],function(s,c){ap.fn[c]=function(w,K,A){if(typeof w==="object"){for(var J in w){this[c](J,K,w[J],A)}return this}if(ap.isFunction(K)){A=K;K=an}var F=c==="one"?ap.proxy(A,function(L){ap(this).unbind(L,F);return A.apply(this,arguments)}):A;if(w==="unload"&&c!=="one"){this.one(w,K,A)}else{J=0;for(var G=this.length;J<G;J++){ap.event.add(this[J],w,F,K)}}return this}});ap.fn.extend({unbind:function(w,s){if(typeof w==="object"&&!w.preventDefault){for(var c in w){this.unbind(c,w[c])}}else{c=0;for(var A=this.length;c<A;c++){ap.event.remove(this[c],w,s)}}return this},delegate:function(w,s,c,A){return this.live(s,c,A,w)},undelegate:function(w,s,c){return arguments.length===0?this.unbind("live"):this.die(s,null,c,w)},trigger:function(s,c){return this.each(function(){ap.event.trigger(s,c,this)})},triggerHandler:function(s,c){if(this[0]){s=ap.Event(s);s.preventDefault();s.stopPropagation();ap.event.trigger(s,c,this[0]);return s.result}},toggle:function(w){for(var s=arguments,c=1;c<s.length;){ap.proxy(w,s[c++])}return this.click(ap.proxy(w,function(F){var A=(ap.data(this,"lastToggle"+w.guid)||0)%c;ap.data(this,"lastToggle"+w.guid,A+1);F.preventDefault();return s[A].apply(this,arguments)||false}))},hover:function(s,c){return this.mouseenter(s).mouseleave(c||s)}});var aN={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};ap.each(["live","die"],function(s,c){ap.fn[c]=function(P,O,w,G){var K,N=0,J,L,A=G||this.selector,F=G?this:ap(this.context);if(ap.isFunction(O)){w=O;O=an}for(P=(P||"").split(" ");(K=P[N++])!=null;){G=ag.exec(K);J="";if(G){J=G[0];K=K.replace(ag,"")}if(K==="hover"){P.push("mouseenter"+J,"mouseleave"+J)}else{L=K;if(K==="focus"||K==="blur"){P.push(aN[K]+J);K+=J}else{K=(aN[K]||K)+J}c==="live"?F.each(function(){ap.event.add(this,aW(K,A),{data:O,selector:A,handler:w,origType:K,origHandler:w,preType:L})}):F.unbind(aW(K,A),w)}}return this}});ap.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(s,c){ap.fn[c]=function(w){return w?this.bind(c,w):this.trigger(c)};if(ap.attrFn){ap.attrFn[c]=true}});aj.attachEvent&&!aj.addEventListener&&aj.attachEvent("onunload",function(){for(var s in ap.cache){if(ap.cache[s].handle){try{ap.event.remove(ap.cache[s].handle.elem)}catch(c){}}}});(function(){function N(Y){for(var Z="",aa,ba=0;Y[ba];ba++){aa=Y[ba];if(aa.nodeType===3||aa.nodeType===4){Z+=aa.nodeValue}else{if(aa.nodeType!==8){Z+=N(aa.childNodes)}}}return Z}function L(bo,bk,bl,bm,Z,Y){Z=0;for(var aa=bm.length;Z<aa;Z++){var ba=bm[Z];if(ba){ba=ba[bo];for(var bn=false;ba;){if(ba.sizcache===bl){bn=bm[ba.sizset];break}if(ba.nodeType===1&&!Y){ba.sizcache=bl;ba.sizset=Z}if(ba.nodeName.toLowerCase()===bk){bn=ba;break}ba=ba[bo]}bm[Z]=bn}}}function P(bo,bk,bl,bm,Z,Y){Z=0;for(var aa=bm.length;Z<aa;Z++){var ba=bm[Z];if(ba){ba=ba[bo];for(var bn=false;ba;){if(ba.sizcache===bl){bn=bm[ba.sizset];break}if(ba.nodeType===1){if(!Y){ba.sizcache=bl;ba.sizset=Z}if(typeof bk!=="string"){if(ba===bk){bn=true;break}}else{if(F.filter(bk,[ba]).length>0){bn=ba;break}}}ba=ba[bo]}bm[Z]=bn}}}var O=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Q=0,A=Object.prototype.toString,G=false,K=true;[0,0].sort(function(){K=false;return 0});var F=function(bt,bm,bp,bq){bp=bp||[];var aa=bm=bm||am;if(bm.nodeType!==1&&bm.nodeType!==9){return[]}if(!bt||typeof bt!=="string"){return bp}for(var Z=[],ba,bk,bs,br,Y=true,bl=X(bm),bn=bt;(O.exec(""),ba=O.exec(bn))!==null;){bn=ba[3];Z.push(ba[1]);if(ba[2]){br=ba[3];break}}if(Z.length>1&&c.exec(bt)){if(Z.length===2&&J.relative[Z[0]]){bk=s(Z[0]+Z[1],bm)}else{for(bk=J.relative[Z[0]]?[bm]:F(Z.shift(),bm);Z.length;){bt=Z.shift();if(J.relative[bt]){bt+=Z.shift()}bk=s(bt,bk)}}}else{if(!bq&&Z.length>1&&bm.nodeType===9&&!bl&&J.match.ID.test(Z[0])&&!J.match.ID.test(Z[Z.length-1])){ba=F.find(Z.shift(),bm,bl);bm=ba.expr?F.filter(ba.expr,ba.set)[0]:ba.set[0]}if(bm){ba=bq?{expr:Z.pop(),set:W(bq)}:F.find(Z.pop(),Z.length===1&&(Z[0]==="~"||Z[0]==="+")&&bm.parentNode?bm.parentNode:bm,bl);bk=ba.expr?F.filter(ba.expr,ba.set):ba.set;if(Z.length>0){bs=W(bk)}else{Y=false}for(;Z.length;){var bo=Z.pop();ba=bo;if(J.relative[bo]){ba=Z.pop()}else{bo=""}if(ba==null){ba=bm}J.relative[bo](bs,ba,bl)}}else{bs=[]}}bs||(bs=bk);bs||F.error(bo||bt);if(A.call(bs)==="[object Array]"){if(Y){if(bm&&bm.nodeType===1){for(bt=0;bs[bt]!=null;bt++){if(bs[bt]&&(bs[bt]===true||bs[bt].nodeType===1&&V(bm,bs[bt]))){bp.push(bk[bt])}}}else{for(bt=0;bs[bt]!=null;bt++){bs[bt]&&bs[bt].nodeType===1&&bp.push(bk[bt])}}}else{bp.push.apply(bp,bs)}}else{W(bs,bp)}if(br){F(br,aa,bp,bq);F.uniqueSort(bp)}return bp};F.uniqueSort=function(Y){if(R){G=K;Y.sort(R);if(G){for(var Z=1;Z<Y.length;Z++){Y[Z]===Y[Z-1]&&Y.splice(Z--,1)}}}return Y};F.matches=function(Y,Z){return F(Y,null,null,Z)};F.find=function(bo,bk,bl){var bm,Z;if(!bo){return[]}for(var Y=0,aa=J.order.length;Y<aa;Y++){var ba=J.order[Y];if(Z=J.leftMatch[ba].exec(bo)){var bn=Z[1];Z.splice(1,1);if(bn.substr(bn.length-1)!=="\\"){Z[1]=(Z[1]||"").replace(/\\/g,"");bm=J.find[ba](Z,bk,bl);if(bm!=null){bo=bo.replace(J.match[ba],"");break}}}}bm||(bm=bk.getElementsByTagName("*"));return{set:bm,expr:bo}};F.filter=function(bv,bn,bq,br){for(var ba=bv,aa=[],bk=bn,bl,bt,bs=bn&&bn[0]&&X(bn[0]);bv&&bn.length;){for(var Z in J.filter){if((bl=J.leftMatch[Z].exec(bv))!=null&&bl[2]){var bm=J.filter[Z],bo,bp;bp=bl[1];bt=false;bl.splice(1,1);if(bp.substr(bp.length-1)!=="\\"){if(bk===aa){aa=[]}if(J.preFilter[Z]){if(bl=J.preFilter[Z](bl,bk,bq,aa,br,bs)){if(bl===true){continue}}else{bt=bo=true}}if(bl){for(var Y=0;(bp=bk[Y])!=null;Y++){if(bp){bo=bm(bp,bl,Y,bk);var bu=br^!!bo;if(bq&&bo!=null){if(bu){bt=true}else{bk[Y]=false}}else{if(bu){aa.push(bp);bt=true}}}}}if(bo!==an){bq||(bk=aa);bv=bv.replace(J.match[Z],"");if(!bt){return[]}break}}}}if(bv===ba){if(bt==null){F.error(bv)}else{break}}ba=bv}return bk};F.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var J=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\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Y){return Y.getAttribute("href")}},relative:{"+":function(Y,Z){var ba=typeof Z==="string",bk=ba&&!/\W/.test(Z);ba=ba&&!bk;if(bk){Z=Z.toLowerCase()}bk=0;for(var bl=Y.length,aa;bk<bl;bk++){if(aa=Y[bk]){for(;(aa=aa.previousSibling)&&aa.nodeType!==1;){}Y[bk]=ba||aa&&aa.nodeName.toLowerCase()===Z?aa||false:aa===Z}}ba&&F.filter(Z,Y,true)},">":function(Y,Z){var ba=typeof Z==="string";if(ba&&!/\W/.test(Z)){Z=Z.toLowerCase();for(var bk=0,bl=Y.length;bk<bl;bk++){var aa=Y[bk];if(aa){ba=aa.parentNode;Y[bk]=ba.nodeName.toLowerCase()===Z?ba:false}}}else{bk=0;for(bl=Y.length;bk<bl;bk++){if(aa=Y[bk]){Y[bk]=ba?aa.parentNode:aa.parentNode===Z}}ba&&F.filter(Z,Y,true)}},"":function(Y,Z,ba){var bk=Q++,bl=P;if(typeof Z==="string"&&!/\W/.test(Z)){var aa=Z=Z.toLowerCase();bl=L}bl("parentNode",Z,bk,Y,aa,ba)},"~":function(Y,Z,ba){var bk=Q++,bl=P;if(typeof Z==="string"&&!/\W/.test(Z)){var aa=Z=Z.toLowerCase();bl=L}bl("previousSibling",Z,bk,Y,aa,ba)}},find:{ID:function(Y,Z,aa){if(typeof Z.getElementById!=="undefined"&&!aa){return(Y=Z.getElementById(Y[1]))?[Y]:[]}},NAME:function(Y,Z){if(typeof Z.getElementsByName!=="undefined"){var aa=[];Z=Z.getElementsByName(Y[1]);for(var ba=0,bk=Z.length;ba<bk;ba++){Z[ba].getAttribute("name")===Y[1]&&aa.push(Z[ba])}return aa.length===0?null:aa}},TAG:function(Y,Z){return Z.getElementsByTagName(Y[1])}},preFilter:{CLASS:function(Y,Z,ba,bk,bl,aa){Y=" "+Y[1].replace(/\\/g,"")+" ";if(aa){return Y}aa=0;for(var bm;(bm=Z[aa])!=null;aa++){if(bm){if(bl^(bm.className&&(" "+bm.className+" ").replace(/[\t\n]/g," ").indexOf(Y)>=0)){ba||bk.push(bm)}else{if(ba){Z[aa]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")},TAG:function(Y){return Y[1].toLowerCase()},CHILD:function(Y){if(Y[1]==="nth"){var Z=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Y[2]==="even"&&"2n"||Y[2]==="odd"&&"2n+1"||!/\D/.test(Y[2])&&"0n+"+Y[2]||Y[2]);Y[2]=Z[1]+(Z[2]||1)-0;Y[3]=Z[3]-0}Y[0]=Q++;return Y},ATTR:function(Y,Z,ba,bk,bl,aa){Z=Y[1].replace(/\\/g,"");if(!aa&&J.attrMap[Z]){Y[1]=J.attrMap[Z]}if(Y[2]==="~="){Y[4]=" "+Y[4]+" "}return Y},PSEUDO:function(Y,Z,aa,ba,bk){if(Y[1]==="not"){if((O.exec(Y[3])||"").length>1||/^\w/.test(Y[3])){Y[3]=F(Y[3],null,null,Z)}else{Y=F.filter(Y[3],Z,aa,true^bk);aa||ba.push.apply(ba,Y);return false}}else{if(J.match.POS.test(Y[0])||J.match.CHILD.test(Y[0])){return true}}return Y},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true},selected:function(Y){return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(Y,Z,aa){return !!F(aa[3],Y).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toLowerCase()==="button"},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Y,Z){return Z===0},last:function(Y,Z,aa,ba){return Z===ba.length-1},even:function(Y,Z){return Z%2===0},odd:function(Y,Z){return Z%2===1},lt:function(Y,Z,aa){return Z<aa[3]-0},gt:function(Y,Z,aa){return Z>aa[3]-0},nth:function(Y,Z,aa){return aa[3]-0===Z},eq:function(Y,Z,aa){return aa[3]-0===Z}},filter:{PSEUDO:function(Y,Z,ba,bk){var bl=Z[1],aa=J.filters[bl];if(aa){return aa(Y,ba,Z,bk)}else{if(bl==="contains"){return(Y.textContent||Y.innerText||N([Y])||"").indexOf(Z[3])>=0}else{if(bl==="not"){Z=Z[3];ba=0;for(bk=Z.length;ba<bk;ba++){if(Z[ba]===Y){return false}}return true}else{F.error("Syntax error, unrecognized expression: "+bl)}}}},CHILD:function(Y,Z){var ba=Z[1],bk=Y;switch(ba){case"only":case"first":for(;bk=bk.previousSibling;){if(bk.nodeType===1){return false}}if(ba==="first"){return true}bk=Y;case"last":for(;bk=bk.nextSibling;){if(bk.nodeType===1){return false}}return true;case"nth":ba=Z[2];var bl=Z[3];if(ba===1&&bl===0){return true}Z=Z[0];var aa=Y.parentNode;if(aa&&(aa.sizcache!==Z||!Y.nodeIndex)){var bm=0;for(bk=aa.firstChild;bk;bk=bk.nextSibling){if(bk.nodeType===1){bk.nodeIndex=++bm}}aa.sizcache=Z}Y=Y.nodeIndex-bl;return ba===0?Y===0:Y%ba===0&&Y/ba>=0}},ID:function(Y,Z){return Y.nodeType===1&&Y.getAttribute("id")===Z},TAG:function(Y,Z){return Z==="*"&&Y.nodeType===1||Y.nodeName.toLowerCase()===Z},CLASS:function(Y,Z){return(" "+(Y.className||Y.getAttribute("class"))+" ").indexOf(Z)>-1},ATTR:function(Y,Z){var aa=Z[1];Y=J.attrHandle[aa]?J.attrHandle[aa](Y):Y[aa]!=null?Y[aa]:Y.getAttribute(aa);aa=Y+"";var ba=Z[2];Z=Z[4];return Y==null?ba==="!=":ba==="="?aa===Z:ba==="*="?aa.indexOf(Z)>=0:ba==="~="?(" "+aa+" ").indexOf(Z)>=0:!Z?aa&&Y!==false:ba==="!="?aa!==Z:ba==="^="?aa.indexOf(Z)===0:ba==="$="?aa.substr(aa.length-Z.length)===Z:ba==="|="?aa===Z||aa.substr(0,Z.length+1)===Z+"-":false},POS:function(Y,Z,aa,ba){var bk=J.setFilters[Z[2]];if(bk){return bk(Y,aa,Z,ba)}}}},c=J.match.POS;for(var w in J.match){J.match[w]=new RegExp(J.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source);J.leftMatch[w]=new RegExp(/(^(?:.|\r|\n)*?)/.source+J.match[w].source.replace(/\\(\d+)/g,function(Y,Z){return"\\"+(Z-0+1)}))}var W=function(Y,Z){Y=Array.prototype.slice.call(Y,0);if(Z){Z.push.apply(Z,Y);return Z}return Y};try{Array.prototype.slice.call(am.documentElement.childNodes,0)}catch(T){W=function(Y,Z){Z=Z||[];if(A.call(Y)==="[object Array]"){Array.prototype.push.apply(Z,Y)}else{if(typeof Y.length==="number"){for(var aa=0,ba=Y.length;aa<ba;aa++){Z.push(Y[aa])}}else{for(aa=0;Y[aa];aa++){Z.push(Y[aa])}}}return Z}}var R;if(am.documentElement.compareDocumentPosition){R=function(Y,Z){if(!Y.compareDocumentPosition||!Z.compareDocumentPosition){if(Y==Z){G=true}return Y.compareDocumentPosition?-1:1}Y=Y.compareDocumentPosition(Z)&4?-1:Y===Z?0:1;if(Y===0){G=true}return Y}}else{if("sourceIndex" in am.documentElement){R=function(Y,Z){if(!Y.sourceIndex||!Z.sourceIndex){if(Y==Z){G=true}return Y.sourceIndex?-1:1}Y=Y.sourceIndex-Z.sourceIndex;if(Y===0){G=true}return Y}}else{if(am.createRange){R=function(Y,Z){if(!Y.ownerDocument||!Z.ownerDocument){if(Y==Z){G=true}return Y.ownerDocument?-1:1}var aa=Y.ownerDocument.createRange(),ba=Z.ownerDocument.createRange();aa.setStart(Y,0);aa.setEnd(Y,0);ba.setStart(Z,0);ba.setEnd(Z,0);Y=aa.compareBoundaryPoints(Range.START_TO_END,ba);if(Y===0){G=true}return Y}}}}(function(){var Y=am.createElement("div"),Z="script"+(new Date).getTime();Y.innerHTML="<a name='"+Z+"'/>";var aa=am.documentElement;aa.insertBefore(Y,aa.firstChild);if(am.getElementById(Z)){J.find.ID=function(bl,bk,ba){if(typeof bk.getElementById!=="undefined"&&!ba){return(bk=bk.getElementById(bl[1]))?bk.id===bl[1]||typeof bk.getAttributeNode!=="undefined"&&bk.getAttributeNode("id").nodeValue===bl[1]?[bk]:an:[]}};J.filter.ID=function(bl,bk){var ba=typeof bl.getAttributeNode!=="undefined"&&bl.getAttributeNode("id");return bl.nodeType===1&&ba&&ba.nodeValue===bk}}aa.removeChild(Y);aa=Y=null})();(function(){var Y=am.createElement("div");Y.appendChild(am.createComment(""));if(Y.getElementsByTagName("*").length>0){J.find.TAG=function(Z,aa){aa=aa.getElementsByTagName(Z[1]);if(Z[1]==="*"){Z=[];for(var ba=0;aa[ba];ba++){aa[ba].nodeType===1&&Z.push(aa[ba])}aa=Z}return aa}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){J.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();am.querySelectorAll&&function(){var Y=F,Z=am.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){F=function(bl,bk,ba,bm){bk=bk||am;if(!bm&&bk.nodeType===9&&!X(bk)){try{return W(bk.querySelectorAll(bl),ba)}catch(bn){}}return Y(bl,bk,ba,bm)};for(var aa in Y){F[aa]=Y[aa]}Z=null}}();(function(){var Y=am.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Y.getElementsByClassName||Y.getElementsByClassName("e").length===0)){Y.lastChild.className="e";if(Y.getElementsByClassName("e").length!==1){J.order.splice(1,0,"CLASS");J.find.CLASS=function(Z,aa,ba){if(typeof aa.getElementsByClassName!=="undefined"&&!ba){return aa.getElementsByClassName(Z[1])}};Y=null}}})();var V=am.compareDocumentPosition?function(Y,Z){return !!(Y.compareDocumentPosition(Z)&16)}:function(Y,Z){return Y!==Z&&(Y.contains?Y.contains(Z):true)},X=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},s=function(Y,Z){var ba=[],bk="",bl;for(Z=Z.nodeType?[Z]:Z;bl=J.match.PSEUDO.exec(Y);){bk+=bl[0];Y=Y.replace(J.match.PSEUDO,"")}Y=J.relative[Y]?Y+"*":Y;bl=0;for(var aa=Z.length;bl<aa;bl++){F(Y,Z[bl],ba)}return F.filter(bk,ba)};ap.find=F;ap.expr=F.selectors;ap.expr[":"]=ap.expr.filters;ap.unique=F.uniqueSort;ap.text=N;ap.isXMLDoc=X;ap.contains=V})();var i=/Until$/,ae=/^(?:parents|prevUntil|prevAll)/,g=/,/;H=Array.prototype.slice;var aE=function(w,s,c){if(ap.isFunction(s)){return ap.grep(w,function(F,G){return !!s.call(F,G,F)===c})}else{if(s.nodeType){return ap.grep(w,function(F){return F===s===c})}else{if(typeof s==="string"){var A=ap.grep(w,function(F){return F.nodeType===1});if(aA.test(s)){return ap.filter(s,A,!c)}else{s=ap.filter(s,A)}}}}return ap.grep(w,function(F){return ap.inArray(F,s)>=0===c})};ap.fn.extend({find:function(G){for(var F=this.pushStack("","find",G),s=0,J=0,w=this.length;J<w;J++){s=F.length;ap.find(G,this[J],F);if(J>0){for(var c=s;c<F.length;c++){for(var A=0;A<s;A++){if(F[A]===F[c]){F.splice(c--,1);break}}}}}return F},has:function(s){var c=ap(s);return this.filter(function(){for(var w=0,A=c.length;w<A;w++){if(ap.contains(this,c[w])){return true}}})},not:function(c){return this.pushStack(aE(this,c,false),"not",c)},filter:function(c){return this.pushStack(aE(this,c,true),"filter",c)},is:function(c){return !!c&&ap.filter(c,this).length>0},closest:function(J,G){if(ap.isArray(J)){var L=[],K=this[0],c,s={},A;if(K&&J.length){c=0;for(var F=J.length;c<F;c++){A=J[c];s[A]||(s[A]=ap.expr.match.POS.test(A)?ap(A,G||this.context):A)}for(;K&&K.ownerDocument&&K!==G;){for(A in s){c=s[A];if(c.jquery?c.index(K)>-1:ap(K).is(c)){L.push({selector:A,elem:K});delete s[A]}}K=K.parentNode}}return L}var w=ap.expr.match.POS.test(J)?ap(J,G||this.context):null;return this.map(function(O,N){for(;N&&N.ownerDocument&&N!==G;){if(w?w.index(N)>-1:ap(N).is(J)){return N}N=N.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return ap.inArray(this[0],c?ap(c):this.parent().children())}return ap.inArray(c.jquery?c[0]:c,this)},add:function(s,c){s=typeof s==="string"?ap(s,c||this.context):ap.makeArray(s);c=ap.merge(this.get(),s);return this.pushStack(aX(s[0])||aX(c[0])?c:ap.unique(c))},andSelf:function(){return this.add(this.prevObject)}});ap.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return ap.dir(c,"parentNode")},parentsUntil:function(w,s,c){return ap.dir(w,"parentNode",c)},next:function(c){return ap.nth(c,2,"nextSibling")},prev:function(c){return ap.nth(c,2,"previousSibling")},nextAll:function(c){return ap.dir(c,"nextSibling")},prevAll:function(c){return ap.dir(c,"previousSibling")},nextUntil:function(w,s,c){return ap.dir(w,"nextSibling",c)},prevUntil:function(w,s,c){return ap.dir(w,"previousSibling",c)},siblings:function(c){return ap.sibling(c.parentNode.firstChild,c)},children:function(c){return ap.sibling(c.firstChild)},contents:function(c){return ap.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ap.makeArray(c.childNodes)}},function(s,c){ap.fn[s]=function(w,F){var A=ap.map(this,c,w);i.test(s)||(F=w);if(F&&typeof F==="string"){A=ap.filter(F,A)}A=this.length>1?ap.unique(A):A;if((this.length>1||g.test(F))&&ae.test(s)){A=A.reverse()}return this.pushStack(A,s,H.call(arguments).join(","))}});ap.extend({filter:function(w,s,c){if(c){w=":not("+w+")"}return ap.find.matches(w,s)},dir:function(w,s,c){var A=[];for(w=w[s];w&&w.nodeType!==9&&(c===an||w.nodeType!==1||!ap(w).is(c));){w.nodeType===1&&A.push(w);w=w[s]}return A},nth:function(w,s,c){s=s||1;for(var A=0;w;w=w[c]){if(w.nodeType===1&&++A===s){break}}return w},sibling:function(w,s){for(var c=[];w;w=w.nextSibling){w.nodeType===1&&w!==s&&c.push(w)}return c}});var aB=/ jQuery\d+="(?:\d+|null)"/g,S=/^\s+/,q=/(<([\w:]+)[^>]*?)\/>/g,bf=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,aH=/<([\w:]+)/,bg=/<tbody/i,bd=/<|&#?\w+;/,a0=/<script|<object|<embed|<option|<style/i,a1=/checked\s*(?:[^=]|=\s*.checked.)/i,aI=function(w,s,c){return bf.test(c)?w:s+"></"+c+">"},ak={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ak.optgroup=ak.option;ak.tbody=ak.tfoot=ak.colgroup=ak.caption=ak.thead;ak.th=ak.td;if(!ap.support.htmlSerialize){ak._default=[1,"div<div>","</div>"]}ap.fn.extend({text:function(c){if(ap.isFunction(c)){return this.each(function(w){var s=ap(this);s.text(c.call(this,w,s.text()))})}if(typeof c!=="object"&&c!==an){return this.empty().append((this[0]&&this[0].ownerDocument||am).createTextNode(c))}return ap.text(this)},wrapAll:function(s){if(ap.isFunction(s)){return this.each(function(w){ap(this).wrapAll(s.call(this,w))})}if(this[0]){var c=ap(s,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var w=this;w.firstChild&&w.firstChild.nodeType===1;){w=w.firstChild}return w}).append(this)}return this},wrapInner:function(c){if(ap.isFunction(c)){return this.each(function(s){ap(this).wrapInner(c.call(this,s))})}return this.each(function(){var w=ap(this),s=w.contents();s.length?s.wrapAll(c):w.append(c)})},wrap:function(c){return this.each(function(){ap(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){ap.nodeName(this,"body")||ap(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this)})}else{if(arguments.length){var c=ap(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ap(arguments[0]).toArray());return c}}},remove:function(w,s){for(var c=0,A;(A=this[c])!=null;c++){if(!w||ap.filter(w,[A]).length){if(!s&&A.nodeType===1){ap.cleanData(A.getElementsByTagName("*"));ap.cleanData([A])}A.parentNode&&A.parentNode.removeChild(A)}}return this},empty:function(){for(var s=0,c;(c=this[s])!=null;s++){for(c.nodeType===1&&ap.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(s){var c=this.map(function(){if(!ap.support.noCloneEvent&&!ap.isXMLDoc(this)){var w=this.outerHTML,A=this.ownerDocument;if(!w){w=A.createElement("div");w.appendChild(this.cloneNode(true));w=w.innerHTML}return ap.clean([w.replace(aB,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(S,"")],A)[0]}else{return this.cloneNode(true)}});if(s===true){aU(this,c);aU(this.find("*"),c.find("*"))}return c},html:function(w){if(w===an){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aB,""):null}else{if(typeof w==="string"&&!a0.test(w)&&(ap.support.leadingWhitespace||!S.test(w))&&!ak[(aH.exec(w)||["",""])[1].toLowerCase()]){w=w.replace(q,aI);try{for(var s=0,c=this.length;s<c;s++){if(this[s].nodeType===1){ap.cleanData(this[s].getElementsByTagName("*"));this[s].innerHTML=w}}}catch(A){this.empty().append(w)}}else{ap.isFunction(w)?this.each(function(G){var J=ap(this),F=J.html();J.empty().append(function(){return w.call(this,G,F)})}):this.empty().append(w)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ap.isFunction(c)){return this.each(function(w){var s=ap(this),A=s.html();s.replaceWith(c.call(this,w,A))})}if(typeof c!=="string"){c=ap(c).detach()}return this.each(function(){var w=this.nextSibling,s=this.parentNode;ap(this).remove();w?ap(w).before(c):ap(s).append(c)})}else{return this.pushStack(ap(ap.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(L,K,O){function N(P){return ap.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P}var c,w,F=L[0],J=[],A;if(!ap.support.checkClone&&arguments.length===3&&typeof F==="string"&&a1.test(F)){return this.each(function(){ap(this).domManip(L,K,O,true)})}if(ap.isFunction(F)){return this.each(function(Q){var P=ap(this);L[0]=F.call(this,Q,K?P.html():an);P.domManip(L,K,O)})}if(this[0]){c=F&&F.parentNode;c=ap.support.parentNode&&c&&c.nodeType===11&&c.childNodes.length===this.length?{fragment:c}:aV(L,this,J);A=c.fragment;if(w=A.childNodes.length===1?(A=A.firstChild):A.firstChild){K=K&&ap.nodeName(w,"tr");for(var G=0,s=this.length;G<s;G++){O.call(K?N(this[G],w):this[G],G>0||c.cacheable||this.length>1?A.cloneNode(true):A)}}J.length&&ap.each(J,aw)}return this}});ap.fragments={};ap.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,c){ap.fn[s]=function(w){var J=[];w=ap(w);var A=this.length===1&&this[0].parentNode;if(A&&A.nodeType===11&&A.childNodes.length===1&&w.length===1){w[c](this[0]);return this}else{A=0;for(var G=w.length;A<G;A++){var F=(A>0?this.clone(true):this).get();ap.fn[c].apply(ap(w[A]),F);J=J.concat(F)}return this.pushStack(J,s,w.selector)}}});ap.extend({clean:function(L,K,O,N){K=K||am;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||am}for(var c=[],w=0,F;(F=L[w])!=null;w++){if(typeof F==="number"){F+=""}if(F){if(typeof F==="string"&&!bd.test(F)){F=K.createTextNode(F)}else{if(typeof F==="string"){F=F.replace(q,aI);var J=(aH.exec(F)||["",""])[1].toLowerCase(),A=ak[J]||ak._default,G=A[0],s=K.createElement("div");for(s.innerHTML=A[1]+F+A[2];G--;){s=s.lastChild}if(!ap.support.tbody){G=bg.test(F);J=J==="table"&&!G?s.firstChild&&s.firstChild.childNodes:A[1]==="<table>"&&!G?s.childNodes:[];for(A=J.length-1;A>=0;--A){ap.nodeName(J[A],"tbody")&&!J[A].childNodes.length&&J[A].parentNode.removeChild(J[A])}}!ap.support.leadingWhitespace&&S.test(F)&&s.insertBefore(K.createTextNode(S.exec(F)[0]),s.firstChild);F=s.childNodes}}if(F.nodeType){c.push(F)}else{c=ap.merge(c,F)}}}if(O){for(w=0;c[w];w++){if(N&&ap.nodeName(c[w],"script")&&(!c[w].type||c[w].type.toLowerCase()==="text/javascript")){N.push(c[w].parentNode?c[w].parentNode.removeChild(c[w]):c[w])}else{c[w].nodeType===1&&c.splice.apply(c,[w+1,0].concat(ap.makeArray(c[w].getElementsByTagName("script"))));O.appendChild(c[w])}}}return c},cleanData:function(J){for(var G,L,K=ap.cache,c=ap.event.special,s=ap.support.deleteExpando,A=0,F;(F=J[A])!=null;A++){if(L=F[ap.expando]){G=K[L];if(G.events){for(var w in G.events){c[w]?ap.event.remove(F,w):aK(F,w,G.handle)}}if(s){delete F[ap.expando]}else{F.removeAttribute&&F.removeAttribute(ap.expando)}delete K[L]}}}});var be=/z-?index|font-?weight|opacity|zoom|line-?height/i,aF=/alpha\([^)]*\)/,aG=/opacity=([^)]*)/,a4=/float/i,a5=/-([a-z])/ig,bj=/([A-Z])/g,a=/^-?\d+(?:px)?$/i,l=/^-?\d/,m={position:"absolute",visibility:"hidden",display:"block"},j=["Left","Right"],z=["Top","Bottom"],v=am.defaultView&&am.defaultView.getComputedStyle,av=ap.support.cssFloat?"cssFloat":"styleFloat",a2=function(s,c){return c.toUpperCase()};ap.fn.css=function(s,c){return B(this,s,c,true,function(w,F,A){if(A===an){return ap.curCSS(w,F)}if(typeof A==="number"&&!be.test(F)){A+="px"}ap.style(w,F,A)})};ap.extend({style:function(A,w,c){if(!A||A.nodeType===3||A.nodeType===8){return an}if((w==="width"||w==="height")&&parseFloat(c)<0){c=an}var F=A.style||A,s=c!==an;if(!ap.support.opacity&&w==="opacity"){if(s){F.zoom=1;w=parseInt(c,10)+""==="NaN"?"":"alpha(opacity="+c*100+")";A=F.filter||ap.curCSS(A,"filter")||"";F.filter=aF.test(A)?A.replace(aF,w):w}return F.filter&&F.filter.indexOf("opacity=")>=0?parseFloat(aG.exec(F.filter)[1])/100+"":""}if(a4.test(w)){w=av}w=w.replace(a5,a2);if(s){F[w]=c}return F[w]},css:function(G,F,s,J){if(F==="width"||F==="height"){var w,c=F==="width"?j:z;function A(){w=F==="width"?G.offsetWidth:G.offsetHeight;J!=="border"&&ap.each(c,function(){J||(w-=parseFloat(ap.curCSS(G,"padding"+this,true))||0);if(J==="margin"){w+=parseFloat(ap.curCSS(G,"margin"+this,true))||0}else{w-=parseFloat(ap.curCSS(G,"border"+this+"Width",true))||0}})}G.offsetWidth!==0?A():ap.swap(G,m,A);return Math.max(0,Math.round(w))}return ap.curCSS(G,F,s)},curCSS:function(F,A,s){var G,w=F.style;if(!ap.support.opacity&&A==="opacity"&&F.currentStyle){G=aG.test(F.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return G===""?"1":G}if(a4.test(A)){A=av}if(!s&&w&&w[A]){G=w[A]}else{if(v){if(a4.test(A)){A="float"}A=A.replace(bj,"-$1").toLowerCase();w=F.ownerDocument.defaultView;if(!w){return null}if(F=w.getComputedStyle(F,null)){G=F.getPropertyValue(A)}if(A==="opacity"&&G===""){G="1"}}else{if(F.currentStyle){s=A.replace(a5,a2);G=F.currentStyle[A]||F.currentStyle[s];if(!a.test(G)&&l.test(G)){A=w.left;var c=F.runtimeStyle.left;F.runtimeStyle.left=F.currentStyle.left;w.left=s==="fontSize"?"1em":G||0;G=w.pixelLeft+"px";w.left=A;F.runtimeStyle.left=c}}}}return G},swap:function(A,w,c){var F={};for(var s in w){F[s]=A.style[s];A.style[s]=w[s]}c.call(A);for(s in w){A.style[s]=F[s]}}});if(ap.expr&&ap.expr.filters){ap.expr.filters.hidden=function(w){var s=w.offsetWidth,c=w.offsetHeight,A=w.nodeName.toLowerCase()==="tr";return s===0&&c===0&&!A?true:s>0&&c>0&&!A?false:ap.curCSS(w,"display")==="none"};ap.expr.filters.visible=function(c){return !ap.expr.filters.hidden(c)}}var x=ac(),D=/<script(.|\s)*?\/script>/gi,E=/select|textarea/i,a8=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,af=/=\?(&|$)/,a3=/\?/,k=/(\?|&)_=.*?(&|$)/,aY=/^(\w+:)?\/\/([^\/?#]+)/,u=/%20/g,r=ap.fn.load;ap.fn.extend({load:function(F,A,s){if(typeof F!=="string"){return r.call(this,F)}else{if(!this.length){return this}}var G=F.indexOf(" ");if(G>=0){var w=F.slice(G,F.length);F=F.slice(0,G)}G="GET";if(A){if(ap.isFunction(A)){s=A;A=null}else{if(typeof A==="object"){A=ap.param(A,ap.ajaxSettings.traditional);G="POST"}}}var c=this;ap.ajax({url:F,type:G,dataType:"html",data:A,complete:function(J,K){if(K==="success"||K==="notmodified"){c.html(w?ap("<div />").append(J.responseText.replace(D,"")).find(w):J.responseText)}s&&c.each(s,[J.responseText,K,J])}});return this},serialize:function(){return ap.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?ap.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||E.test(this.nodeName)||a8.test(this.type))}).map(function(s,c){s=ap(this).val();return s==null?null:ap.isArray(s)?ap.map(s,function(w){return{name:c.name,value:w}}):{name:c.name,value:s}}).get()}});ap.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(s,c){ap.fn[c]=function(w){return this.bind(c,w)}});ap.extend({get:function(w,s,c,A){if(ap.isFunction(s)){A=A||c;c=s;s=null}return ap.ajax({type:"GET",url:w,data:s,success:c,dataType:A})},getScript:function(s,c){return ap.get(s,null,c,"script")},getJSON:function(w,s,c){return ap.get(w,s,c,"json")},post:function(w,s,c,A){if(ap.isFunction(s)){A=A||c;c=s;s={}}return ap.ajax({type:"POST",url:w,data:s,success:c,dataType:A})},ajaxSetup:function(c){ap.extend(ap.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aj.XMLHttpRequest&&(aj.location.protocol!=="file:"||!aj.ActiveXObject)?function(){return new aj.XMLHttpRequest}:function(){try{return new aj.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(Q){function P(){W.success&&W.success.call(F,L,J,ba);W.global&&R("ajaxSuccess",[ba,W])}function V(){W.complete&&W.complete.call(F,ba,J);W.global&&R("ajaxComplete",[ba,W]);W.global&&!--ap.active&&ap.event.trigger("ajaxStop")}function R(bl,bk){(W.context?ap(W.context):ap.event).trigger(bl,bk)}var W=ap.extend(true,{},ap.ajaxSettings,Q),A,J,L,F=Q&&Q.context||W,K=W.type.toUpperCase();if(W.data&&W.processData&&typeof W.data!=="string"){W.data=ap.param(W.data,W.traditional)}if(W.dataType==="jsonp"){if(K==="GET"){af.test(W.url)||(W.url+=(a3.test(W.url)?"&":"?")+(W.jsonp||"callback")+"=?")}else{if(!W.data||!af.test(W.data)){W.data=(W.data?W.data+"&":"")+(W.jsonp||"callback")+"=?"}}W.dataType="json"}if(W.dataType==="json"&&(W.data&&af.test(W.data)||af.test(W.url))){A=W.jsonpCallback||"jsonp"+x++;if(W.data){W.data=(W.data+"").replace(af,"="+A+"$1")}W.url=W.url.replace(af,"="+A+"$1");W.dataType="script";aj[A]=aj[A]||function(bl){L=bl;P();V();aj[A]=an;try{delete aj[A]}catch(bk){}aa&&aa.removeChild(Y)}}if(W.dataType==="script"&&W.cache===null){W.cache=false}if(W.cache===false&&K==="GET"){var c=ac(),w=W.url.replace(k,"$1_="+c+"$2");W.url=w+(w===W.url?(a3.test(W.url)?"&":"?")+"_="+c:"")}if(W.data&&K==="GET"){W.url+=(a3.test(W.url)?"&":"?")+W.data}W.global&&!ap.active++&&ap.event.trigger("ajaxStart");c=(c=aY.exec(W.url))&&(c[1]&&c[1]!==location.protocol||c[2]!==location.host);if(W.dataType==="script"&&K==="GET"&&c){var aa=am.getElementsByTagName("head")[0]||am.documentElement,Y=am.createElement("script");Y.src=W.url;if(W.scriptCharset){Y.charset=W.scriptCharset}if(!A){var X=false;Y.onload=Y.onreadystatechange=function(){if(!X&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){X=true;P();V();Y.onload=Y.onreadystatechange=null;aa&&Y.parentNode&&aa.removeChild(Y)}}}aa.insertBefore(Y,aa.firstChild);return an}var Z=false,ba=W.xhr();if(ba){W.username?ba.open(K,W.url,W.async,W.username,W.password):ba.open(K,W.url,W.async);try{if(W.data||Q&&Q.contentType){ba.setRequestHeader("Content-Type",W.contentType)}if(W.ifModified){ap.lastModified[W.url]&&ba.setRequestHeader("If-Modified-Since",ap.lastModified[W.url]);ap.etag[W.url]&&ba.setRequestHeader("If-None-Match",ap.etag[W.url])}c||ba.setRequestHeader("X-Requested-With","XMLHttpRequest");ba.setRequestHeader("Accept",W.dataType&&W.accepts[W.dataType]?W.accepts[W.dataType]+", */*":W.accepts._default)}catch(s){}if(W.beforeSend&&W.beforeSend.call(F,ba,W)===false){W.global&&!--ap.active&&ap.event.trigger("ajaxStop");ba.abort();return false}W.global&&R("ajaxSend",[ba,W]);var T=ba.onreadystatechange=function(bl){if(!ba||ba.readyState===0||bl==="abort"){Z||V();Z=true;if(ba){ba.onreadystatechange=ap.noop}}else{if(!Z&&ba&&(ba.readyState===4||bl==="timeout")){Z=true;ba.onreadystatechange=ap.noop;J=bl==="timeout"?"timeout":!ap.httpSuccess(ba)?"error":W.ifModified&&ap.httpNotModified(ba,W.url)?"notmodified":"success";var bk;if(J==="success"){try{L=ap.httpData(ba,W.dataType,W)}catch(bm){J="parsererror";bk=bm}}if(J==="success"||J==="notmodified"){A||P()}else{ap.handleError(W,ba,J,bk)}V();bl==="timeout"&&ba.abort();if(W.async){ba=null}}}};try{var G=ba.abort;ba.abort=function(){ba&&G.call(ba);T("abort")}}catch(N){}W.async&&W.timeout>0&&setTimeout(function(){ba&&!Z&&T("timeout")},W.timeout);try{ba.send(K==="POST"||K==="PUT"||K==="DELETE"?W.data:null)}catch(O){ap.handleError(W,ba,null,O);V()}W.async||T();return ba}},handleError:function(w,s,c,A){if(w.error){w.error.call(w.context||w,s,c,A)}if(w.global){(w.context?ap(w.context):ap.event).trigger("ajaxError",[s,w,A])}},active:0,httpSuccess:function(s){try{return !s.status&&location.protocol==="file:"||s.status>=200&&s.status<300||s.status===304||s.status===1223||s.status===0}catch(c){}return false},httpNotModified:function(w,s){var c=w.getResponseHeader("Last-Modified"),A=w.getResponseHeader("Etag");if(c){ap.lastModified[s]=c}if(A){ap.etag[s]=A}return w.status===304||w.status===0},httpData:function(A,w,c){var F=A.getResponseHeader("content-type")||"",s=w==="xml"||!w&&F.indexOf("xml")>=0;A=s?A.responseXML:A.responseText;s&&A.documentElement.nodeName==="parsererror"&&ap.error("parsererror");if(c&&c.dataFilter){A=c.dataFilter(A,w)}if(typeof A==="string"){if(w==="json"||!w&&F.indexOf("json")>=0){A=ap.parseJSON(A)}else{if(w==="script"||!w&&F.indexOf("javascript")>=0){ap.globalEval(A)}}}return A},param:function(F,A){function s(J,K){if(ap.isArray(K)){ap.each(K,function(N,L){A||/\[\]$/.test(J)?G(J,L):s(J+"["+(typeof L==="object"||ap.isArray(L)?N:"")+"]",L)})}else{!A&&K!=null&&typeof K==="object"?ap.each(K,function(N,L){s(J+"["+N+"]",L)}):G(J,K)}}function G(J,K){K=ap.isFunction(K)?K():K;w[w.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var w=[];if(A===an){A=ap.ajaxSettings.traditional}if(ap.isArray(F)||F.jquery){ap.each(F,function(){G(this.name,this.value)})}else{for(var c in F){s(c,F[c])}}return w.join("&").replace(u,"+")}});var ai={},aT=/toggle|show|hide/,p=/^([+-]=)?([\d+-.]+)(.*)$/,U,o=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ap.fn.extend({show:function(A,w){if(A||A===0){return this.animate(ad("show",3),A,w)}else{A=0;for(w=this.length;A<w;A++){var c=ap.data(this[A],"olddisplay");this[A].style.display=c||"";if(ap.css(this[A],"display")==="none"){c=this[A].nodeName;var F;if(ai[c]){F=ai[c]}else{var s=ap("<"+c+" />").appendTo("body");F=s.css("display");if(F==="none"){F="block"}s.remove();ai[c]=F}ap.data(this[A],"olddisplay",F)}}A=0;for(w=this.length;A<w;A++){this[A].style.display=ap.data(this[A],"olddisplay")||""}return this}},hide:function(w,s){if(w||w===0){return this.animate(ad("hide",3),w,s)}else{w=0;for(s=this.length;w<s;w++){var c=ap.data(this[w],"olddisplay");!c&&c!=="none"&&ap.data(this[w],"olddisplay",ap.css(this[w],"display"))}w=0;for(s=this.length;w<s;w++){this[w].style.display="none"}return this}},_toggle:ap.fn.toggle,toggle:function(w,s){var c=typeof w==="boolean";if(ap.isFunction(w)&&ap.isFunction(s)){this._toggle.apply(this,arguments)}else{w==null||c?this.each(function(){var A=c?w:ap(this).is(":hidden");ap(this)[A?"show":"hide"]()}):this.animate(ad("toggle",3),w,s)}return this},fadeTo:function(w,s,c){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:s},w,c)},animate:function(A,w,c,F){var s=ap.speed(w,c,F);if(ap.isEmptyObject(A)){return this.each(s.complete)}return this[s.queue===false?"each":"queue"](function(){var L=ap.extend({},s),G,K=this.nodeType===1&&ap(this).is(":hidden"),N=this;for(G in A){var J=G.replace(a5,a2);if(G!==J){A[J]=A[G];delete A[G];G=J}if(A[G]==="hide"&&K||A[G]==="show"&&!K){return L.complete.call(this)}if((G==="height"||G==="width")&&this.style){L.display=ap.css(this,"display");L.overflow=this.style.overflow}if(ap.isArray(A[G])){(L.specialEasing=L.specialEasing||{})[G]=A[G][1];A[G]=A[G][0]}}if(L.overflow!=null){this.style.overflow="hidden"}L.curAnim=ap.extend({},A);ap.each(A,function(O,T){var Q=new ap.fx(N,L,O);if(aT.test(T)){Q[T==="toggle"?K?"show":"hide":T](A)}else{var V=p.exec(T),R=Q.cur(true)||0;if(V){T=parseFloat(V[2]);var P=V[3]||"px";if(P!=="px"){N.style[O]=(T||1)+P;R=(T||1)/Q.cur(true)*R;N.style[O]=R+P}if(V[1]){T=(V[1]==="-="?-1:1)*T+R}Q.custom(R,T,P)}else{Q.custom(R,T,"")}}});return true})},stop:function(w,s){var c=ap.timers;w&&this.queue([]);this.each(function(){for(var A=c.length-1;A>=0;A--){if(c[A].elem===this){s&&c[A](true);c.splice(A,1)}}});s||this.dequeue();return this}});ap.each({slideDown:ad("show",1),slideUp:ad("hide",1),slideToggle:ad("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(s,c){ap.fn[s]=function(w,A){return this.animate(c,w,A)}});ap.extend({speed:function(w,s,c){var A=w&&typeof w==="object"?w:{complete:c||!c&&s||ap.isFunction(w)&&w,duration:w,easing:c&&s||s&&!ap.isFunction(s)&&s};A.duration=ap.fx.off?0:typeof A.duration==="number"?A.duration:ap.fx.speeds[A.duration]||ap.fx.speeds._default;A.old=A.complete;A.complete=function(){A.queue!==false&&ap(this).dequeue();ap.isFunction(A.old)&&A.old.call(this)};return A},easing:{linear:function(w,s,c,A){return c+A*w},swing:function(w,s,c,A){return(-Math.cos(w*Math.PI)/2+0.5)*A+c}},timers:[],fx:function(w,s,c){this.options=s;this.elem=w;this.prop=c;if(!s.orig){s.orig={}}}});ap.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(ap.fx.step[this.prop]||ap.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(c=parseFloat(ap.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(ap.curCSS(this.elem,this.prop))||0},custom:function(A,w,c){function F(G){return s.step(G)}this.startTime=ac();this.start=A;this.end=w;this.unit=c||this.unit||"px";this.now=this.start;this.pos=this.state=0;var s=this;F.elem=this.elem;if(F()&&ap.timers.push(F)&&!U){U=setInterval(ap.fx.tick,13)}},show:function(){this.options.orig[this.prop]=ap.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());ap(this.elem).show()},hide:function(){this.options.orig[this.prop]=ap.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(A){var w=ac(),c=true;if(A||w>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){c=false}}if(c){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;A=ap.data(this.elem,"olddisplay");this.elem.style.display=A?A:this.options.display;if(ap.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&ap(this.elem).hide();if(this.options.hide||this.options.show){for(var s in this.options.curAnim){ap.style(this.elem,s,this.options.orig[s])}}this.options.complete.call(this.elem)}return false}else{s=w-this.startTime;this.state=s/this.options.duration;A=this.options.easing||(ap.easing.swing?"swing":"linear");this.pos=ap.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||A](this.state,s,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};ap.extend(ap.fx,{tick:function(){for(var s=ap.timers,c=0;c<s.length;c++){s[c]()||s.splice(c--,1)}s.length||ap.fx.stop()},stop:function(){clearInterval(U);U=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ap.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit}else{c.elem[c.prop]=c.now}}}});if(ap.expr&&ap.expr.filters){ap.expr.filters.animated=function(c){return ap.grep(ap.timers,function(s){return c===s.elem}).length}}ap.fn.offset="getBoundingClientRect" in am.documentElement?function(w){var s=this[0];if(w){return this.each(function(F){ap.offset.setOffset(this,w,F)})}if(!s||!s.ownerDocument){return null}if(s===s.ownerDocument.body){return ap.offset.bodyOffset(s)}var c=s.getBoundingClientRect(),A=s.ownerDocument;s=A.body;A=A.documentElement;return{top:c.top+(self.pageYOffset||ap.support.boxModel&&A.scrollTop||s.scrollTop)-(A.clientTop||s.clientTop||0),left:c.left+(self.pageXOffset||ap.support.boxModel&&A.scrollLeft||s.scrollLeft)-(A.clientLeft||s.clientLeft||0)}}:function(K){var J=this[0];if(K){return this.each(function(O){ap.offset.setOffset(this,K,O)})}if(!J||!J.ownerDocument){return null}if(J===J.ownerDocument.body){return ap.offset.bodyOffset(J)}ap.offset.initialize();var N=J.offsetParent,L=J,c=J.ownerDocument,s,A=c.documentElement,G=c.body;L=(c=c.defaultView)?c.getComputedStyle(J,null):J.currentStyle;for(var w=J.offsetTop,F=J.offsetLeft;(J=J.parentNode)&&J!==G&&J!==A;){if(ap.offset.supportsFixedPosition&&L.position==="fixed"){break}s=c?c.getComputedStyle(J,null):J.currentStyle;w-=J.scrollTop;F-=J.scrollLeft;if(J===N){w+=J.offsetTop;F+=J.offsetLeft;if(ap.offset.doesNotAddBorder&&!(ap.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.nodeName))){w+=parseFloat(s.borderTopWidth)||0;F+=parseFloat(s.borderLeftWidth)||0}L=N;N=J.offsetParent}if(ap.offset.subtractsBorderForOverflowNotVisible&&s.overflow!=="visible"){w+=parseFloat(s.borderTopWidth)||0;F+=parseFloat(s.borderLeftWidth)||0}L=s}if(L.position==="relative"||L.position==="static"){w+=G.offsetTop;F+=G.offsetLeft}if(ap.offset.supportsFixedPosition&&L.position==="fixed"){w+=Math.max(A.scrollTop,G.scrollTop);F+=Math.max(A.scrollLeft,G.scrollLeft)}return{top:w,left:F}};ap.offset={initialize:function(){var F=am.body,A=am.createElement("div"),s,G,w,c=parseFloat(ap.curCSS(F,"marginTop",true))||0;ap.extend(A.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});A.innerHTML="<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>";F.insertBefore(A,F.firstChild);s=A.firstChild;G=s.firstChild;w=s.nextSibling.firstChild.firstChild;this.doesNotAddBorder=G.offsetTop!==5;this.doesAddBorderForTableAndCells=w.offsetTop===5;G.style.position="fixed";G.style.top="20px";this.supportsFixedPosition=G.offsetTop===20||G.offsetTop===15;G.style.position=G.style.top="";s.style.overflow="hidden";s.style.position="relative";this.subtractsBorderForOverflowNotVisible=G.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=F.offsetTop!==c;F.removeChild(A);ap.offset.initialize=ap.noop},bodyOffset:function(w){var s=w.offsetTop,c=w.offsetLeft;ap.offset.initialize();if(ap.offset.doesNotIncludeMarginInBodyOffset){s+=parseFloat(ap.curCSS(w,"marginTop",true))||0;c+=parseFloat(ap.curCSS(w,"marginLeft",true))||0}return{top:s,left:c}},setOffset:function(G,F,s){if(/static/.test(ap.curCSS(G,"position"))){G.style.position="relative"}var J=ap(G),w=J.offset(),c=parseInt(ap.curCSS(G,"top",true),10)||0,A=parseInt(ap.curCSS(G,"left",true),10)||0;if(ap.isFunction(F)){F=F.call(G,s,w)}s={top:F.top-w.top+c,left:F.left-w.left+A};"using" in F?F.using.call(G,s):J.css(s)}};ap.fn.extend({position:function(){if(!this[0]){return null}var w=this[0],s=this.offsetParent(),c=this.offset(),A=/^body|html$/i.test(s[0].nodeName)?{top:0,left:0}:s.offset();c.top-=parseFloat(ap.curCSS(w,"marginTop",true))||0;c.left-=parseFloat(ap.curCSS(w,"marginLeft",true))||0;A.top+=parseFloat(ap.curCSS(s[0],"borderTopWidth",true))||0;A.left+=parseFloat(ap.curCSS(s[0],"borderLeftWidth",true))||0;return{top:c.top-A.top,left:c.left-A.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||am.body;c&&!/^body|html$/i.test(c.nodeName)&&ap.css(c,"position")==="static";){c=c.offsetParent}return c})}});ap.each(["Left","Top"],function(w,s){var c="scroll"+s;ap.fn[c]=function(G){var A=this[0],F;if(!A){return null}if(G!==an){return this.each(function(){if(F=aZ(this)){F.scrollTo(!w?G:ap(F).scrollLeft(),w?G:ap(F).scrollTop())}else{this[c]=G}})}else{return(F=aZ(A))?"pageXOffset" in F?F[w?"pageYOffset":"pageXOffset"]:ap.support.boxModel&&F.document.documentElement[c]||F.document.body[c]:A[c]}}});ap.each(["Height","Width"],function(w,s){var c=s.toLowerCase();ap.fn["inner"+s]=function(){return this[0]?ap.css(this[0],c,false,"padding"):null};ap.fn["outer"+s]=function(A){return this[0]?ap.css(this[0],c,false,A?"margin":"border"):null};ap.fn[c]=function(F){var A=this[0];if(!A){return F==null?null:this}if(ap.isFunction(F)){return this.each(function(J){var G=ap(this);G[c](F.call(this,J,G[c]()))})}return"scrollTo" in A&&A.document?A.document.compatMode==="CSS1Compat"&&A.document.documentElement["client"+s]||A.document.body["client"+s]:A.nodeType===9?Math.max(A.documentElement["client"+s],A.body["scroll"+s],A.documentElement["scroll"+s],A.body["offset"+s],A.documentElement["offset"+s]):F===an?ap.css(A,c):this.css(c,typeof F==="string"?F:F+"px")}});aj.jQuery=aj.$=ap})(window);(function(b){b.fn.extend({reflect:function(a){a=b.extend({height:1/3,opacity:0.5},a);return this.unreflect().each(function(){var f=this;if(/^img$/i.test(f.tagName)){function e(){var s=f.width,r=f.height,p,o,q,n,d;o=Math.floor((a.height>1)?Math.min(r,a.height):r*a.height);if(b.browser.msie){p=b("<img />").attr("src",f.src).css({width:s,height:r,marginBottom:o-r,filter:"flipv progid:DXImageTransform.Microsoft.Alpha(opacity="+(a.opacity*100)+", style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy="+(o/r*100)+")"})[0]}else{p=b("<canvas />")[0];if(!p.getContext){return}n=p.getContext("2d");try{b(p).attr({width:s,height:o});n.save();n.translate(0,r-1);n.scale(1,-1);n.drawImage(f,0,0,s,r);n.restore();n.globalCompositeOperation="destination-out";d=n.createLinearGradient(0,0,0,o);d.addColorStop(0,"rgba(255, 255, 255, "+(1-a.opacity)+")");d.addColorStop(1,"rgba(255, 255, 255, 1.0)");n.fillStyle=d;n.rect(0,0,s,o);n.fill()}catch(c){return}}b(p).css({display:"block",border:0});q=b(/^a$/i.test(f.parentNode.tagName)?"<span />":"<div />").insertAfter(f).append([f,p])[0];q.className=f.className;b.data(f,"reflected",q.style.cssText=f.style.cssText);b(q).css({width:s,height:r+o,overflow:"hidden"});f.style.cssText="display: block; border: 0px";f.className="reflected"}if(f.complete){e()}else{b(f).load(e)}}})},unreflect:function(){return this.unbind("load").each(function(){var f=this,e=b.data(this,"reflected"),a;if(e!==undefined){a=f.parentNode;f.className=a.className;f.style.cssText=e;b.removeData(f,"reflected");a.parentNode.replaceChild(f,a)}})}})})(jQuery);jQuery(function(a){a("img.reflect").reflect({})});(function(a){a.fn.marquee=function(g){var e=[],h=this.length;var b={color:"#888A8A","font-weight":"normal","font-size":"12px","font-style":"","font-family":"Arial,Helvetica,sans-serif","text-decoration":"none",speed:2,direction:"left",url:""};if(null!==g&&"object"==typeof(g)){var d=a.extend({},b,g);g=d;a(this).attr("scrollamount",g.speed);a(this).attr("direction",g.direction)}function f(l,k,m){var i=m.behavior,n=m.width,o=m.dir;var j=0;if(i=="alternate"){j=l==1?k[m.widthAxis]-(n*2):n}else{if(i=="slide"){if(l==-1){j=o==-1?k[m.widthAxis]:n}else{j=o==-1?k[m.widthAxis]-(n*2):0}}else{j=l==-1?k[m.widthAxis]:0}}return j}function c(){var k=e.length,m=null,j=null,o={},l=[],n=false;while(k--){m=e[k];j=a(m);o=j.data("marqueeState");if(j.data("paused")!==true){m[o.axis]+=(o.scrollamount*o.dir);n=o.dir==-1?m[o.axis]<=f(o.dir*-1,m,o):m[o.axis]>=f(o.dir*-1,m,o);if((o.behavior=="scroll"&&o.last==m[o.axis])||(o.behavior=="alternate"&&n&&o.last!=-1)||(o.behavior=="slide"&&n&&o.last!=-1)){if(o.behavior=="alternate"){o.dir*=-1}o.last=-1;j.trigger("stop");o.loops--;if(o.loops===0){if(o.behavior!="slide"){m[o.axis]=f(o.dir,m,o)}else{m[o.axis]=f(o.dir*-1,m,o)}j.trigger("end")}else{l.push(m);j.trigger("start");m[o.axis]=f(o.dir,m,o)}}else{l.push(m)}o.last=m[o.axis];j.data("marqueeState",o)}else{l.push(m)}}e=l;if(e.length){setTimeout(c,25)}}this.each(function(q){var j=a(this),p=j.attr("width")||j.width(),l=j.attr("height")||j.height(),n=j.after("<div "+(g?'class="'+g+'" ':"")+(g.url!=""?'urlonclick="'+g.url+'" ':"")+'style="'+(null!==g&&"object"==typeof(g)?"color:"+g.color+"; font-weight:"+g["font-weight"]+"; font-size:"+g["font-size"]+"; font-family:"+g["font-family"]+"; text-decoration:"+g["text-decoration"]+"; ":"")+"display: block-inline; width: "+p+"px; height: "+l+'px; overflow: hidden;"><div style="float: left; white-space: nowrap;">'+j.html()+"</div></div>").next(),m=n.get(0),o=0,k=(j.attr("direction")||"left").toLowerCase(),r={dir:/down|right/.test(k)?-1:1,axis:/left|right/.test(k)?"scrollLeft":"scrollTop",widthAxis:/left|right/.test(k)?"scrollWidth":"scrollHeight",last:-1,loops:j.attr("loop")||-1,scrollamount:j.attr("scrollamount")||this.scrollAmount||2,behavior:(j.attr("behavior")||"scroll").toLowerCase(),width:/left|right/.test(k)?p:l};if(j.attr("loop")==-1&&r.behavior=="slide"){r.loops=1}j.remove();if(/left|right/.test(k)){n.find("> div").css("padding","0 "+p+"px")}else{n.find("> div").css("padding",l+"px 0")}n.bind("stop",function(){n.data("paused",true)}).bind("pause",function(){n.data("paused",true)}).bind("start",function(){n.data("paused",false)}).bind("unpause",function(){n.data("paused",false)}).data("marqueeState",r);e.push(m);m[r.axis]=f(r.dir,m,r);n.trigger("start");if(q+1==h){c()}});a("[urlonclick]").click(function(){document.location.replace(document.location.href.substring(0,document.location.href.lastIndexOf("/"))+"/"+a(this).attr("urlonclick"))}).css("cursor","pointer");return a(e)}}(jQuery));
/*
 * jQuery corner plugin: simple corner rounding
 * Examples and documentation at: http://jquery.malsup.com/corner/
 * version 2.11 (15-JUN-2010)
 * Requires jQuery v1.3.2 or later
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Authors: Dave Methvin and Mike Alsup
 */
(function(j){var f=document.createElement("div").style,d=f.MozBorderRadius!==undefined,l=f.WebkitBorderRadius!==undefined,h=f.borderRadius!==undefined||f.BorderRadius!==undefined,i=document.documentMode||0,e=j.browser.msie&&((j.browser.version<8&&!i)||i<8),k=j.browser.msie&&(function(){var n=document.createElement("div");try{n.style.setExpression("width","0+0");n.style.removeExpression("width")}catch(m){return false}return true})();j.support=j.support||{};j.support.borderRadius=d||l||h;function a(m,n){return parseInt(j.css(m,n))||0}function c(m){var m=parseInt(m).toString(16);return(m.length<2)?"0"+m:m}function g(m){while(m){var n=j.css(m,"backgroundColor"),o;if(n&&n!="transparent"&&n!="rgba(0, 0, 0, 0)"){if(n.indexOf("rgb")>=0){o=n.match(/\d+/g);return"#"+c(o[0])+c(o[1])+c(o[2])}return n}if(m.nodeName.toLowerCase()=="html"){break}m=m.parentNode}return"#ffffff"}function b(n,m,o){switch(n){case"round":return Math.round(o*(1-Math.cos(Math.asin(m/o))));case"cool":return Math.round(o*(1+Math.cos(Math.asin(m/o))));case"sharp":return Math.round(o*(1-Math.cos(Math.acos(m/o))));case"bite":return Math.round(o*(Math.cos(Math.asin((o-m-1)/o))));case"slide":return Math.round(o*(Math.atan2(m,o/m)));case"jut":return Math.round(o*(Math.atan2(o,(o-m-1))));case"curl":return Math.round(o*(Math.atan(m)));case"tear":return Math.round(o*(Math.cos(m)));case"wicked":return Math.round(o*(Math.tan(m)));case"long":return Math.round(o*(Math.sqrt(m)));case"sculpt":return Math.round(o*(Math.log((o-m-1),o)));case"dogfold":case"dog":return(m&1)?(m+1):o;case"dog2":return(m&2)?(m+1):o;case"dog3":return(m&3)?(m+1):o;case"fray":return(m%2)*o;case"notch":return o;case"bevelfold":case"bevel":return m+1}}j.fn.corner=function(n){if(this.length==0){if(!j.isReady&&this.selector){var m=this.selector,o=this.context;j(function(){j(m,o).corner(n)})}return this}return this.each(function(s){var G=j(this),x=[G.attr(j.fn.corner.defaults.metaAttr)||"",n||""].join(" ").toLowerCase(),K=/keep/.test(x),C=((x.match(/cc:(#[0-9a-f]+)/)||[])[1]),q=((x.match(/sc:(#[0-9a-f]+)/)||[])[1]),I=parseInt((x.match(/(\d+)px/)||[])[1])||10,Q=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/,v=((x.match(Q)||["round"])[0]),J=/dogfold|bevelfold/.test(x),N={T:0,B:1},L={TL:/top|tl|left/.test(x),TR:/top|tr|right/.test(x),BL:/bottom|bl|left/.test(x),BR:/bottom|br|right/.test(x)},B,A,M,u,z,E,D,P,O,r,F,p,y,H;if(!L.TL&&!L.TR&&!L.BL&&!L.BR){L={TL:1,TR:1,BL:1,BR:1}}if(j.fn.corner.defaults.useNative&&v=="round"&&(h||d||l)&&!C&&!q){if(L.TL){G.css(h?"border-top-left-radius":d?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",I+"px")}if(L.TR){G.css(h?"border-top-right-radius":d?"-moz-border-radius-topright":"-webkit-border-top-right-radius",I+"px")}if(L.BL){G.css(h?"border-bottom-left-radius":d?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",I+"px")}if(L.BR){G.css(h?"border-bottom-right-radius":d?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",I+"px")}return}B=document.createElement("div");j(B).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:q||"transparent",borderStyle:"solid"});A={T:parseInt(j.css(this,"paddingTop"))||0,R:parseInt(j.css(this,"paddingRight"))||0,B:parseInt(j.css(this,"paddingBottom"))||0,L:parseInt(j.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!K){this.style.border="none"}B.style.borderColor=C||g(this.parentNode);M=j(this).outerHeight();for(u in N){z=N[u];if((z&&(L.BL||L.BR))||(!z&&(L.TL||L.TR))){B.style.borderStyle="none "+(L[u+"R"]?"solid":"none")+" none "+(L[u+"L"]?"solid":"none");E=document.createElement("div");j(E).addClass("jquery-corner");D=E.style;z?this.appendChild(E):this.insertBefore(E,this.firstChild);if(z&&M!="auto"){if(j.css(this,"position")=="static"){this.style.position="relative"}D.position="absolute";D.bottom=D.left=D.padding=D.margin="0";if(k){D.setExpression("width","this.parentNode.offsetWidth")}else{D.width="100%"}}else{if(!z&&j.browser.msie){if(j.css(this,"position")=="static"){this.style.position="relative"}D.position="absolute";D.top=D.left=D.right=D.padding=D.margin="0";if(k){P=a(this,"borderLeftWidth")+a(this,"borderRightWidth");D.setExpression("width","this.parentNode.offsetWidth - "+P+'+ "px"')}else{D.width="100%"}}else{D.position="relative";D.margin=!z?"-"+A.T+"px -"+A.R+"px "+(A.T-I)+"px -"+A.L+"px":(A.B-I)+"px -"+A.R+"px -"+A.B+"px -"+A.L+"px"}}for(O=0;O<I;O++){r=Math.max(0,b(v,O,I));F=B.cloneNode(false);F.style.borderWidth="0 "+(L[u+"R"]?r:0)+"px 0 "+(L[u+"L"]?r:0)+"px";z?E.appendChild(F):E.insertBefore(F,E.firstChild)}if(J&&j.support.boxModel){if(z&&e){continue}for(p in L){if(!L[p]){continue}if(z&&(p=="TL"||p=="TR")){continue}if(!z&&(p=="BL"||p=="BR")){continue}y={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:B.style.borderColor};H=j("<div/>").css(y).css({width:I+"px",height:"1px"});switch(p){case"TL":H.css({bottom:0,left:0});break;case"TR":H.css({bottom:0,right:0});break;case"BL":H.css({top:0,left:0});break;case"BR":H.css({top:0,right:0});break}E.appendChild(H[0]);var R=j("<div/>").css(y).css({top:0,bottom:0,width:"1px",height:I+"px"});switch(p){case"TL":R.css({left:I});break;case"TR":R.css({right:I});break;case"BL":R.css({left:I});break;case"BR":R.css({right:I});break}E.appendChild(R[0])}}}}})};j.fn.uncorner=function(){if(h||d||l){this.css(h?"border-radius":d?"-moz-border-radius":"-webkit-border-radius",0)}j("div.jquery-corner",this).remove();return this};j.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);
/*
 * jQuery UI 1.8.5
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(a,b){function d(c){return !a(c).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.5",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});a.fn.extend({_focus:a.fn.focus,focus:function(e,c){return typeof e==="number"?this.each(function(){var f=this;setTimeout(function(){a(f).focus();c&&c.call(f)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?a(document):c},zIndex:function(e){if(e!==b){return this.css("zIndex",e)}if(this.length){e=a(this[0]);for(var c;e.length&&e[0]!==document;){c=e.css("position");if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(e.css("zIndex"));if(!isNaN(c)&&c!=0){return c}}e=e.parent()}}return 0},disableSelection:function(){return this.bind("mousedown.ui-disableSelection selectstart.ui-disableSelection",function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(l,k){function f(n,e,h,i){a.each(g,function(){e-=parseFloat(a.curCSS(n,"padding"+this,true))||0;if(h){e-=parseFloat(a.curCSS(n,"border"+this+"Width",true))||0}if(i){e-=parseFloat(a.curCSS(n,"margin"+this,true))||0}});return e}var g=k==="Width"?["Left","Right"]:["Top","Bottom"],c=k.toLowerCase(),j={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+k]=function(e){if(e===b){return j["inner"+k].call(this)}return this.each(function(){a.style(this,c,f(this,e)+"px")})};a.fn["outer"+k]=function(h,e){if(typeof h!=="number"){return j["outer"+k].call(this,h)}return this.each(function(){a.style(this,c,f(this,h,true,e)+"px")})}});a.extend(a.expr[":"],{data:function(f,e,c){return !!a.data(f,c[3])},focusable:function(f){var e=f.nodeName.toLowerCase(),c=a.attr(f,"tabindex");if("area"===e){e=f.parentNode;c=e.name;if(!f.href||!c||e.nodeName.toLowerCase()!=="map"){return false}f=a("img[usemap=#"+c+"]")[0];return !!f&&d(f)}return(/input|select|textarea|button|object/.test(e)?!f.disabled:"a"==e?f.href||!isNaN(c):!isNaN(c))&&d(f)},tabbable:function(e){var c=a.attr(e,"tabindex");return(isNaN(c)||c>=0)&&a(e).is(":focusable")}});a(function(){var e=document.createElement("div"),c=document.body;a.extend(e.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=c.appendChild(e).offsetHeight===100;c.removeChild(e).style.display="none"});a.extend(a.ui,{plugin:{add:function(h,g,c){h=a.ui[h].prototype;for(var f in c){h.plugins[f]=h.plugins[f]||[];h.plugins[f].push([g,c[f]])}},call:function(h,g,c){if((g=h.plugins[g])&&h.element[0].parentNode){for(var f=0;f<g.length;f++){h.options[g[f][0]]&&g[f][1].apply(h.element,c)}}}},contains:function(e,c){return document.compareDocumentPosition?e.compareDocumentPosition(c)&16:e!==c&&e.contains(c)},hasScroll:function(f,e){if(a(f).css("overflow")==="hidden"){return false}e=e&&e==="left"?"scrollLeft":"scrollTop";var c=false;if(f[e]>0){return true}f[e]=1;c=f[e]>0;f[e]=0;return c},isOverAxis:function(f,e,c){return f>e&&f<e+c},isOver:function(l,k,f,g,c,j){return a.ui.isOverAxis(l,f,c)&&a.ui.isOverAxis(k,g,j)}})}})(jQuery);
/*
 * jQuery UI Widget 1.8.5
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(c,d){if(c.cleanData){var e=c.cleanData;c.cleanData=function(g){for(var f=0,b;(b=g[f])!=null;f++){c(b).triggerHandler("remove")}e(g)}}else{var a=c.fn.remove;c.fn.remove=function(f,b){return this.each(function(){if(!b){if(!f||c.filter(f,[this]).length){c("*",this).add([this]).each(function(){c(this).triggerHandler("remove")})}}return a.call(c(this),f,b)})}}c.widget=function(i,h,b){var g=i.split(".")[0],j;i=i.split(".")[1];j=g+"-"+i;if(!b){b=h;h=c.Widget}c.expr[":"][j]=function(f){return !!c.data(f,i)};c[g]=c[g]||{};c[g][i]=function(f,k){arguments.length&&this._createWidget(f,k)};h=new h;h.options=c.extend(true,{},h.options);c[g][i].prototype=c.extend(true,h,{namespace:g,widgetName:i,widgetEventPrefix:c[g][i].prototype.widgetEventPrefix||i,widgetBaseClass:j},b);c.widget.bridge(i,c[g][i])};c.widget.bridge=function(f,b){c.fn[f]=function(i){var j=typeof i==="string",k=Array.prototype.slice.call(arguments,1),g=this;i=!j&&k.length?c.extend.apply(null,[true,i].concat(k)):i;if(j&&i.substring(0,1)==="_"){return g}j?this.each(function(){var h=c.data(this,f);if(!h){throw"cannot call methods on "+f+" prior to initialization; attempted to call method '"+i+"'"}if(!c.isFunction(h[i])){throw"no such method '"+i+"' for "+f+" widget instance"}var l=h[i].apply(h,k);if(l!==h&&l!==d){g=l;return false}}):this.each(function(){var h=c.data(this,f);h?h.option(i||{})._init():c.data(this,f,new b(i,this))});return g}};c.Widget=function(f,b){arguments.length&&this._createWidget(f,b)};c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(g,f){c.data(f,this.widgetName,this);this.element=c(f);this.options=c.extend(true,{},this.options,c.metadata&&c.metadata.get(f)[this.widgetName],g);var b=this;this.element.bind("remove."+this.widgetName,function(){b.destroy()});this._create();this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(h,g){var b=h,f=this;if(arguments.length===0){return c.extend({},f.options)}if(typeof h==="string"){if(g===d){return this.options[h]}b={};b[h]=g}c.each(b,function(j,i){f._setOption(j,i)});return f},_setOption:function(f,b){this.options[f]=b;if(f==="disabled"){this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(i,h,b){var g=this.options[i];h=c.Event(h);h.type=(i===this.widgetEventPrefix?i:this.widgetEventPrefix+i).toLowerCase();b=b||{};if(h.originalEvent){i=c.event.props.length;for(var j;i;){j=c.event.props[--i];h[j]=h.originalEvent[j]}}this.element.trigger(h,b);return !(c.isFunction(g)&&g.call(this.element[0],h,b)===false||h.isDefaultPrevented())}}})(jQuery);
/*
 * jQuery UI Mouse 1.8.5
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(c){return b._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(b._preventClickEvent){b._preventClickEvent=false;c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(g){g.originalEvent=g.originalEvent||{};if(!g.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(g);this._mouseDownEvent=g;var d=this,c=g.which==1,h=typeof this.options.cancel=="string"?a(g.target).parents().add(g.target).filter(this.options.cancel).length:false;if(!c||h||!this._mouseCapture(g)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g)){this._mouseStarted=this._mouseStart(g)!==false;if(!this._mouseStarted){g.preventDefault();return true}}this._mouseMoveDelegate=function(b){return d._mouseMove(b)};this._mouseUpDelegate=function(b){return d._mouseUp(b)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.browser.safari||g.preventDefault();return g.originalEvent.mouseHandled=true}},_mouseMove:function(b){if(a.browser.msie&&!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b)}return !this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=b.target==this._mouseDownEvent.target;this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(d){d.ui=d.ui||{};var a=/left|center|right/,b=/top|center|bottom/,e=d.fn.position,f=d.fn.offset;d.fn.position=function(n){if(!n||!n.of){return e.apply(this,arguments)}n=d.extend({},n);var o=d(n.of),q=o[0],p=(n.collision||"flip").split(" "),c=n.offset?n.offset.split(" "):[0,0],m,l,i;if(q.nodeType===9){m=o.width();l=o.height();i={top:0,left:0}}else{if(q.scrollTo&&q.document){m=o.width();l=o.height();i={top:o.scrollTop(),left:o.scrollLeft()}}else{if(q.preventDefault){n.at="left top";m=l=0;i={top:n.of.pageY,left:n.of.pageX}}else{m=o.outerWidth();l=o.outerHeight();i=o.offset()}}}d.each(["my","at"],function(){var g=(n[this]||"").split(" ");if(g.length===1){g=a.test(g[0])?g.concat(["center"]):b.test(g[0])?["center"].concat(g):["center","center"]}g[0]=a.test(g[0])?g[0]:"center";g[1]=b.test(g[1])?g[1]:"center";n[this]=g});if(p.length===1){p[1]=p[0]}c[0]=parseInt(c[0],10)||0;if(c.length===1){c[1]=c[0]}c[1]=parseInt(c[1],10)||0;if(n.at[0]==="right"){i.left+=m}else{if(n.at[0]==="center"){i.left+=m/2}}if(n.at[1]==="bottom"){i.top+=l}else{if(n.at[1]==="center"){i.top+=l/2}}i.left+=c[0];i.top+=c[1];return this.each(function(){var z=d(this),x=z.outerWidth(),y=z.outerHeight(),h=parseInt(d.curCSS(this,"marginLeft",true))||0,j=parseInt(d.curCSS(this,"marginTop",true))||0,k=x+h+parseInt(d.curCSS(this,"marginRight",true))||0,s=y+j+parseInt(d.curCSS(this,"marginBottom",true))||0,u=d.extend({},i),g;if(n.my[0]==="right"){u.left-=x}else{if(n.my[0]==="center"){u.left-=x/2}}if(n.my[1]==="bottom"){u.top-=y}else{if(n.my[1]==="center"){u.top-=y/2}}u.left=parseInt(u.left);u.top=parseInt(u.top);g={left:u.left-h,top:u.top-j};d.each(["left","top"],function(r,v){d.ui.position[p[r]]&&d.ui.position[p[r]][v](u,{targetWidth:m,targetHeight:l,elemWidth:x,elemHeight:y,collisionPosition:g,collisionWidth:k,collisionHeight:s,offset:c,my:n.my,at:n.at})});d.fn.bgiframe&&z.bgiframe();z.offset(d.extend(u,{using:n.using}))})};d.ui.position={fit:{left:function(g,h){var c=d(window);c=h.collisionPosition.left+h.collisionWidth-c.width()-c.scrollLeft();g.left=c>0?g.left-c:Math.max(g.left-h.collisionPosition.left,g.left)},top:function(g,h){var c=d(window);c=h.collisionPosition.top+h.collisionHeight-c.height()-c.scrollTop();g.top=c>0?g.top-c:Math.max(g.top-h.collisionPosition.top,g.top)}},flip:{left:function(l,m){if(m.at[0]!=="center"){var i=d(window);i=m.collisionPosition.left+m.collisionWidth-i.width()-i.scrollLeft();var c=m.my[0]==="left"?-m.elemWidth:m.my[0]==="right"?m.elemWidth:0,j=m.at[0]==="left"?m.targetWidth:-m.targetWidth,k=-2*m.offset[0];l.left+=m.collisionPosition.left<0?c+j+k:i>0?c+j+k:0}},top:function(l,m){if(m.at[1]!=="center"){var i=d(window);i=m.collisionPosition.top+m.collisionHeight-i.height()-i.scrollTop();var c=m.my[1]==="top"?-m.elemHeight:m.my[1]==="bottom"?m.elemHeight:0,j=m.at[1]==="top"?m.targetHeight:-m.targetHeight,k=-2*m.offset[1];l.top+=m.collisionPosition.top<0?c+j+k:i>0?c+j+k:0}}}};if(!d.offset.setOffset){d.offset.setOffset=function(l,m){if(/static/.test(d.curCSS(l,"position"))){l.style.position="relative"}var i=d(l),c=i.offset(),j=parseInt(d.curCSS(l,"top",true),10)||0,k=parseInt(d.curCSS(l,"left",true),10)||0;c={top:m.top-c.top+j,left:m.left-c.left+k};"using" in m?m.using.call(l,c):i.css(c)};d.fn.offset=function(c){var g=this[0];if(!g||!g.ownerDocument){return null}if(c){return this.each(function(){d.offset.setOffset(this,c)})}return f.call(this)}}})(jQuery);(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,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},_create: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")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(d){var c=this.options;if(this.helper||c.disabled||a(d.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(d);if(!this.handle){return false}return true},_mouseStart:function(d){var c=this.options;this.helper=this._createHelper(d);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.positionAbs=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:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(this._trigger("start",d)===false){this._clear();return false}this._cacheHelperProportions();a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,true);return true},_mouseDrag:function(d,c){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!c){c=this._uiHash();if(this._trigger("drag",d,c)===false){this._mouseUp({});return false}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"}a.ui.ddmanager&&a.ui.ddmanager.drag(this,d);return false},_mouseStop:function(f){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,f)}if(this.dropped){d=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode){return 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 e=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){e._trigger("stop",f)!==false&&e._clear()})}else{this._trigger("stop",f)!==false&&this._clear()}return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(d){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==d.target){c=true}});return c},_createHelper:function(d){var c=this.options;d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d])):c.helper=="clone"?this.element.clone():this.element;d.parents("body").length||d.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left" in b){this.offset.click.left=b.left+this.margins.left}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top" in b){this.offset.click.top=b.top+this.margins.top}if("bottom" in b){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 f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(f.containment)&&f.containment.constructor!=Array){var d=a(f.containment)[0];if(d){f=a(f.containment).offset();var e=a(d).css("overflow")!="hidden";this.containment=[f.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,f.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,f.left+(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,f.top+(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else{if(f.containment.constructor==Array){this.containment=f.containment}}},_convertPositionTo:function(g,d){if(!d){d=this.position}g=g=="absolute"?1:-1;var e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(e[0].tagName);return{top:d.top+this.offset.relative.top*g+this.offset.parent.top*g-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:e.scrollTop())*g),left:d.left+this.offset.relative.left*g+this.offset.parent.left*g-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:e.scrollLeft())*g)}},_generatePosition:function(k){var i=this.options,j=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(j[0].tagName),h=k.pageX,d=k.pageY;if(this.originalPosition){if(this.containment){if(k.pageX-this.offset.click.left<this.containment[0]){h=this.containment[0]+this.offset.click.left}if(k.pageY-this.offset.click.top<this.containment[1]){d=this.containment[1]+this.offset.click.top}if(k.pageX-this.offset.click.left>this.containment[2]){h=this.containment[2]+this.offset.click.left}if(k.pageY-this.offset.click.top>this.containment[3]){d=this.containment[3]+this.offset.click.top}}if(i.grid){d=this.originalPageY+Math.round((d-this.originalPageY)/i.grid[1])*i.grid[1];d=this.containment?!(d-this.offset.click.top<this.containment[1]||d-this.offset.click.top>this.containment[3])?d:!(d-this.offset.click.top<this.containment[1])?d-i.grid[1]:d+i.grid[1]:d;h=this.originalPageX+Math.round((h-this.originalPageX)/i.grid[0])*i.grid[0];h=this.containment?!(h-this.offset.click.left<this.containment[0]||h-this.offset.click.left>this.containment[2])?h:!(h-this.offset.click.left<this.containment[0])?h-i.grid[0]:h+i.grid[0]:h}}return{top:d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():l?0:j.scrollTop()),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:j.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(f,d,e){e=e||this._uiHash();a.ui.plugin.call(this,f,[d,e]);if(f=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.Widget.prototype._trigger.call(this,f,d,e)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.5"});a.ui.plugin.add("draggable","connectToSortable",{start:function(i,g){var h=a(this).data("draggable"),j=h.options,d=a.extend({},g,{item:h.element});h.sortables=[];a(j.connectToSortable).each(function(){var b=a.data(this,"sortable");if(b&&!b.options.disabled){h.sortables.push({instance:b,shouldRevert:b.options.revert});b._refreshItems();b._trigger("activate",i,d)}})},stop:function(g,d){var e=a(this).data("draggable"),h=a.extend({},d,{item:e.element});a.each(e.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;e.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(g);this.instance.options.helper=this.instance.options._helper;e.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",g,h)}})},drag:function(g,d){var e=a(this).data("draggable"),h=this;a.each(e.sortables,function(){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(h).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};g.target=this.instance.currentItem[0];this.instance._mouseCapture(g,true);this.instance._mouseStart(g,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",g);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}this.instance.currentItem&&this.instance._mouseDrag(g)}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",g,this.instance._uiHash(this.instance));this.instance._mouseStop(g,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();e._trigger("fromSortable",g);e.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var d=a("body"),c=a(this).data("draggable").options;if(d.css("cursor")){c._cursor=d.css("cursor")}d.css("cursor",c.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var b=a(this).data("draggable").options;a(b.iframeFix===true?"iframe":b.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(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(d,c){d=a(c.helper);c=a(this).data("draggable").options;if(d.css("opacity")){c._opacity=d.css("opacity")}d.css("opacity",c.opacity)},stop:function(d,c){d=a(this).data("draggable").options;d._opacity&&a(c.helper).css("opacity",d._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(g){var d=a(this).data("draggable"),e=d.options,h=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!e.axis||e.axis!="x"){if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-g.pageY<e.scrollSensitivity){d.scrollParent[0].scrollTop=h=d.scrollParent[0].scrollTop+e.scrollSpeed}else{if(g.pageY-d.overflowOffset.top<e.scrollSensitivity){d.scrollParent[0].scrollTop=h=d.scrollParent[0].scrollTop-e.scrollSpeed}}}if(!e.axis||e.axis!="y"){if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-g.pageX<e.scrollSensitivity){d.scrollParent[0].scrollLeft=h=d.scrollParent[0].scrollLeft+e.scrollSpeed}else{if(g.pageX-d.overflowOffset.left<e.scrollSensitivity){d.scrollParent[0].scrollLeft=h=d.scrollParent[0].scrollLeft-e.scrollSpeed}}}}else{if(!e.axis||e.axis!="x"){if(g.pageY-a(document).scrollTop()<e.scrollSensitivity){h=a(document).scrollTop(a(document).scrollTop()-e.scrollSpeed)}else{if(a(window).height()-(g.pageY-a(document).scrollTop())<e.scrollSensitivity){h=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed)}}}if(!e.axis||e.axis!="y"){if(g.pageX-a(document).scrollLeft()<e.scrollSensitivity){h=a(document).scrollLeft(a(document).scrollLeft()-e.scrollSpeed)}else{if(a(window).width()-(g.pageX-a(document).scrollLeft())<e.scrollSensitivity){h=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed)}}}}h!==false&&a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,g)}});a.ui.plugin.add("draggable","snap",{start:function(){var d=a(this).data("draggable"),c=d.options;d.snapElements=[];a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var b=a(this),e=b.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:e.top,left:e.left})})},drag:function(I,G){for(var H=a(this).data("draggable"),J=H.options,L=J.snapTolerance,K=G.offset.left,C=K+H.helperProportions.width,F=G.offset.top,D=F+H.helperProportions.height,A=H.snapElements.length-1;A>=0;A--){var B=H.snapElements[A].left,z=B+H.snapElements[A].width,y=H.snapElements[A].top,E=y+H.snapElements[A].height;if(B-L<K&&K<z+L&&y-L<F&&F<E+L||B-L<K&&K<z+L&&y-L<D&&D<E+L||B-L<C&&C<z+L&&y-L<F&&F<E+L||B-L<C&&C<z+L&&y-L<D&&D<E+L){if(J.snapMode!="inner"){var v=Math.abs(y-D)<=L,w=Math.abs(E-F)<=L,d=Math.abs(B-C)<=L,u=Math.abs(z-K)<=L;if(v){G.position.top=H._convertPositionTo("relative",{top:y-H.helperProportions.height,left:0}).top-H.margins.top}if(w){G.position.top=H._convertPositionTo("relative",{top:E,left:0}).top-H.margins.top}if(d){G.position.left=H._convertPositionTo("relative",{top:0,left:B-H.helperProportions.width}).left-H.margins.left}if(u){G.position.left=H._convertPositionTo("relative",{top:0,left:z}).left-H.margins.left}}var x=v||w||d||u;if(J.snapMode!="outer"){v=Math.abs(y-F)<=L;w=Math.abs(E-D)<=L;d=Math.abs(B-K)<=L;u=Math.abs(z-C)<=L;if(v){G.position.top=H._convertPositionTo("relative",{top:y,left:0}).top-H.margins.top}if(w){G.position.top=H._convertPositionTo("relative",{top:E-H.helperProportions.height,left:0}).top-H.margins.top}if(d){G.position.left=H._convertPositionTo("relative",{top:0,left:B}).left-H.margins.left}if(u){G.position.left=H._convertPositionTo("relative",{top:0,left:z-H.helperProportions.width}).left-H.margins.left}}if(!H.snapElements[A].snapping&&(v||w||d||u||x)){H.options.snap.snap&&H.options.snap.snap.call(H.element,I,a.extend(H._uiHash(),{snapItem:H.snapElements[A].item}))}H.snapElements[A].snapping=v||w||d||u||x}else{H.snapElements[A].snapping&&H.options.snap.release&&H.options.snap.release.call(H.element,I,a.extend(H._uiHash(),{snapItem:H.snapElements[A].item}));H.snapElements[A].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var d=a(this).data("draggable").options;d=a.makeArray(a(d.stack)).sort(function(b,e){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(e).css("zIndex"),10)||0)});if(d.length){var c=parseInt(d[0].style.zIndex)||0;a(d).each(function(b){this.style.zIndex=c+b});this[0].style.zIndex=c+d.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(d,c){d=a(c.helper);c=a(this).data("draggable").options;if(d.css("zIndex")){c._zIndex=d.css("zIndex")}d.css("zIndex",c.zIndex)},stop:function(d,c){d=a(this).data("draggable").options;d._zIndex&&a(c.helper).css("zIndex",d._zIndex)}})})(jQuery);(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,c=d.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(c)?c:function(b){return b.is(c)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[d.scope]=a.ui.ddmanager.droppables[d.scope]||[];a.ui.ddmanager.droppables[d.scope].push(this);d.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var d=a.ui.ddmanager.droppables[this.options.scope],c=0;c<d.length;c++){d[c]==this&&d.splice(c,1)}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(d,c){if(d=="accept"){this.accept=a.isFunction(c)?c:function(b){return b.is(c)}}a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);c&&this._trigger("activate",d,this.ui(c))},_deactivate:function(d){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);c&&this._trigger("deactivate",d,this.ui(c))},_over:function(d){var c=a.ui.ddmanager.current;if(!(!c||(c.currentItem||c.element)[0]==this.element[0])){if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",d,this.ui(c))}}},_out:function(d){var c=a.ui.ddmanager.current;if(!(!c||(c.currentItem||c.element)[0]==this.element[0])){if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",d,this.ui(c))}}},_drop:function(h,f){var g=f||a.ui.ddmanager.current;if(!g||(g.currentItem||g.element)[0]==this.element[0]){return false}var d=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope==g.options.scope&&b.accept.call(b.element[0],g.currentItem||g.element)&&a.ui.intersect(g,a.extend(b,{offset:b.element.offset()}),b.options.tolerance)){d=true;return false}});if(d){return false}if(this.accept.call(this.element[0],g.currentItem||g.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",h,this.ui(g));return this.element}return false},ui:function(b){return{draggable:b.currentItem||b.element,helper:b.helper,position:b.position,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.5"});a.ui.intersect=function(u,r,s){if(!r.offset){return false}var d=(u.positionAbs||u.position.absolute).left,w=d+u.helperProportions.width,v=(u.positionAbs||u.position.absolute).top,o=v+u.helperProportions.height,p=r.offset.left,n=p+r.proportions.width,m=r.offset.top,q=m+r.proportions.height;switch(s){case"fit":return p<=d&&w<=n&&m<=v&&o<=q;case"intersect":return p<d+u.helperProportions.width/2&&w-u.helperProportions.width/2<n&&m<v+u.helperProportions.height/2&&o-u.helperProportions.height/2<q;case"pointer":return a.ui.isOver((u.positionAbs||u.position.absolute).top+(u.clickOffset||u.offset.click).top,(u.positionAbs||u.position.absolute).left+(u.clickOffset||u.offset.click).left,m,p,r.proportions.height,r.proportions.width);case"touch":return(v>=m&&v<=q||o>=m&&o<=q||v<m&&o>q)&&(d>=p&&d<=n||w>=p&&w<=n||d<p&&w>n);default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(m,k){var l=a.ui.ddmanager.droppables[m.options.scope]||[],j=k?k.type:null,d=(m.currentItem||m.element).find(":data(droppable)").andSelf(),n=0;m:for(;n<l.length;n++){if(!(l[n].options.disabled||m&&!l[n].accept.call(l[n].element[0],m.currentItem||m.element))){for(var i=0;i<d.length;i++){if(d[i]==l[n].element[0]){l[n].proportions.height=0;continue m}}l[n].visible=l[n].element.css("display")!="none";if(l[n].visible){l[n].offset=l[n].element.offset();l[n].proportions={width:l[n].element[0].offsetWidth,height:l[n].element[0].offsetHeight};j=="mousedown"&&l[n]._activate.call(l[n],k)}}}},drop:function(f,d){var e=false;a.each(a.ui.ddmanager.droppables[f.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(f,this,this.options.tolerance)){e=e||this._drop.call(this,d)}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],f.currentItem||f.element)){this.isout=1;this.isover=0;this._deactivate.call(this,d)}}});return e},drag:function(d,c){d.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(d,c);a.each(a.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var h=a.ui.intersect(d,this,this.options.tolerance);if(h=!h&&this.isover==1?"isout":h&&this.isover==0?"isover":null){var f;if(this.options.greedy){var b=this.element.parents(":data(droppable):eq(0)");if(b.length){f=a.data(b[0],"droppable");f.greedyChild=h=="isover"?1:0}}if(f&&h=="isover"){f.isover=0;f.isout=1;f._out.call(f,c)}this[h]=1;this[h=="isout"?"isover":"isout"]=0;this[h=="isover"?"_over":"_out"].call(this,c);if(f&&h=="isout"){f.isout=0;f.isover=1;f._over.call(f,c)}}}})}}})(jQuery);(function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var i=this,k=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!k.aspectRatio,aspectRatio:k.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:k.helper||k.ghost||k.animate?k.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=k.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var j=this.handles.split(",");this.handles={};for(var h=0;h<j.length;h++){var l=a.trim(j[h]),e=a('<div class="ui-resizable-handle '+("ui-resizable-"+l)+'"></div>');/sw|se|ne|nw/.test(l)&&e.css({zIndex:++k.zIndex});"se"==l&&e.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[l]=".ui-resizable-"+l;this.element.append(e)}}this._renderAxis=function(d){d=d||this.element;for(var f in this.handles){if(this.handles[f].constructor==String){this.handles[f]=a(this.handles[f],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var g=a(this.handles[f],this.element),m=0;m=/sw|ne|nw|se|n|s/.test(f)?g.outerHeight():g.outerWidth();g=["padding",/ne|nw|n/.test(f)?"Top":/se|sw|s/.test(f)?"Bottom":/^e$/.test(f)?"Right":"Left"].join("");d.css(g,m);this._proportionallyResize()}a(this.handles[f])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!i.resizing){if(this.className){var d=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}i.axis=d&&d[1]?d[1]:"se"}});if(k.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){a(this).removeClass("ui-resizable-autohide");i._handles.show()},function(){if(!i.resizing){a(this).addClass("ui-resizable-autohide");i._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(f){a(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){d(this.element);var e=this.element;e.after(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);d(this.originalElement);return this},_mouseCapture:function(d){var f=false;for(var e in this.handles){if(a(this.handles[e])[0]==d.target){f=true}}return !this.options.disabled&&f},_mouseStart:function(g){var i=this.options,h=this.element.position(),e=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};if(e.is(".ui-draggable")||/absolute/.test(e.css("position"))){e.css({position:"absolute",top:h.top,left:h.left})}a.browser.opera&&/relative/.test(e.css("position"))&&e.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();h=c(this.helper.css("left"));var j=c(this.helper.css("top"));if(i.containment){h+=a(i.containment).scrollLeft()||0;j+=a(i.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:h,top:j};this.size=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition={left:h,top:j};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.originalMousePosition={left:g.pageX,top:g.pageY};this.aspectRatio=typeof i.aspectRatio=="number"?i.aspectRatio:this.originalSize.width/this.originalSize.height||1;i=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",i=="auto"?this.axis+"-resize":i);e.addClass("ui-resizable-resizing");this._propagate("start",g);return true},_mouseDrag:function(f){var h=this.helper,g=this.originalMousePosition,e=this._change[this.axis];if(!e){return false}g=e.apply(this,[f,f.pageX-g.left||0,f.pageY-g.top||0]);if(this._aspectRatio||f.shiftKey){g=this._updateRatio(g,f)}g=this._respectSize(g,f);this._propagate("resize",f);h.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(g);this._trigger("resize",f,this.ui());return false},_mouseStop:function(i){this.resizing=false;var k=this.options,j=this;if(this._helper){var h=this._proportionallyResizeElements,l=h.length&&/textarea/i.test(h[0].nodeName);h=l&&a.ui.hasScroll(h[0],"left")?0:j.sizeDiff.height;l={width:j.size.width-(l?0:j.sizeDiff.width),height:j.size.height-h};h=parseInt(j.element.css("left"),10)+(j.position.left-j.originalPosition.left)||null;var e=parseInt(j.element.css("top"),10)+(j.position.top-j.originalPosition.top)||null;k.animate||this.element.css(a.extend(l,{top:e,left:h}));j.helper.height(j.size.height);j.helper.width(j.size.width);this._helper&&!k.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",i);this._helper&&this.helper.remove();return false},_updateCache:function(d){this.offset=this.helper.offset();if(b(d.left)){this.position.left=d.left}if(b(d.top)){this.position.top=d.top}if(b(d.height)){this.size.height=d.height}if(b(d.width)){this.size.width=d.width}},_updateRatio:function(f){var h=this.position,g=this.size,e=this.axis;if(f.height){f.width=g.height*this.aspectRatio}else{if(f.width){f.height=g.width/this.aspectRatio}}if(e=="sw"){f.left=h.left+(g.width-f.width);f.top=null}if(e=="nw"){f.top=h.top+(g.height-f.height);f.left=h.left+(g.width-f.width)}return f},_respectSize:function(o){var q=this.options,p=this.axis,u=b(o.width)&&q.maxWidth&&q.maxWidth<o.width,r=b(o.height)&&q.maxHeight&&q.maxHeight<o.height,s=b(o.width)&&q.minWidth&&q.minWidth>o.width,m=b(o.height)&&q.minHeight&&q.minHeight>o.height;if(s){o.width=q.minWidth}if(m){o.height=q.minHeight}if(u){o.width=q.maxWidth}if(r){o.height=q.maxHeight}var n=this.originalPosition.left+this.originalSize.width,e=this.position.top+this.size.height,l=/sw|nw|w/.test(p);p=/nw|ne|n/.test(p);if(s&&l){o.left=n-q.minWidth}if(u&&l){o.left=n-q.maxWidth}if(m&&p){o.top=e-q.minHeight}if(r&&p){o.top=e-q.maxHeight}if((q=!o.width&&!o.height)&&!o.left&&o.top){o.top=null}else{if(q&&!o.top&&o.left){o.left=null}}return o},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){for(var g=this.helper||this.element,i=0;i<this._proportionallyResizeElements.length;i++){var h=this._proportionallyResizeElements[i];if(!this.borderDif){var e=[h.css("borderTopWidth"),h.css("borderRightWidth"),h.css("borderBottomWidth"),h.css("borderLeftWidth")],j=[h.css("paddingTop"),h.css("paddingRight"),h.css("paddingBottom"),h.css("paddingLeft")];this.borderDif=a.map(e,function(d,f){d=parseInt(d,10)||0;f=parseInt(j[f],10)||0;return d+f})}a.browser.msie&&(a(g).is(":hidden")||a(g).parents(":hidden").length)||h.css({height:g.height()-this.borderDif[0]-this.borderDif[2]||0,width:g.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var d=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var f=a.browser.msie&&a.browser.version<7,e=f?1:0;f=f?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+f,height:this.element.outerHeight()+f,position:"absolute",left:this.elementOffset.left-e+"px",top:this.elementOffset.top-e+"px",zIndex:++d.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(d,e){return{width:this.originalSize.width+e}},w:function(d,e){return{left:this.originalPosition.left+e,width:this.originalSize.width-e}},n:function(d,f,e){return{top:this.originalPosition.top+e,height:this.originalSize.height-e}},s:function(d,f,e){return{height:this.originalSize.height+e}},se:function(d,f,e){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[d,f,e]))},sw:function(d,f,e){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[d,f,e]))},ne:function(d,f,e){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[d,f,e]))},nw:function(d,f,e){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[d,f,e]))}},_propagate:function(d,e){a.ui.plugin.call(this,d,[e,this.ui()]);d!="resize"&&this._trigger(d,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,{version:"1.8.5"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var d=a(this).data("resizable").options,e=function(f){a(f).each(function(){var g=a(this);g.data("resizable-alsoresize",{width:parseInt(g.width(),10),height:parseInt(g.height(),10),left:parseInt(g.css("left"),10),top:parseInt(g.css("top"),10),position:g.css("position")})})};if(typeof d.alsoResize=="object"&&!d.alsoResize.parentNode){if(d.alsoResize.length){d.alsoResize=d.alsoResize[0];e(d.alsoResize)}else{a.each(d.alsoResize,function(f){e(f)})}}else{e(d.alsoResize)}},resize:function(k,m){var l=a(this).data("resizable");k=l.options;var i=l.originalSize,n=l.originalPosition,e={height:l.size.height-i.height||0,width:l.size.width-i.width||0,top:l.position.top-n.top||0,left:l.position.left-n.left||0},j=function(d,f){a(d).each(function(){var s=a(this),o=a(this).data("resizable-alsoresize"),h={},g=f&&f.length?f:s.parents(m.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(g,function(p,q){if((p=(o[q]||0)+(e[q]||0))&&p>=0){h[q]=p||null}});if(a.browser.opera&&/relative/.test(s.css("position"))){l._revertToRelativePosition=true;s.css({position:"absolute",top:"auto",left:"auto"})}s.css(h)})};typeof k.alsoResize=="object"&&!k.alsoResize.nodeType?a.each(k.alsoResize,function(d,f){j(d,f)}):j(k.alsoResize)},stop:function(){var d=a(this).data("resizable"),f=d.options,e=function(g){a(g).each(function(){var h=a(this);h.css({position:h.data("resizable-alsoresize").position})})};if(d._revertToRelativePosition){d._revertToRelativePosition=false;typeof f.alsoResize=="object"&&!f.alsoResize.nodeType?a.each(f.alsoResize,function(g){e(g)}):e(f.alsoResize)}a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(k){var m=a(this).data("resizable"),l=m.options,i=m._proportionallyResizeElements,n=i.length&&/textarea/i.test(i[0].nodeName),e=n&&a.ui.hasScroll(i[0],"left")?0:m.sizeDiff.height;n={width:m.size.width-(n?0:m.sizeDiff.width),height:m.size.height-e};e=parseInt(m.element.css("left"),10)+(m.position.left-m.originalPosition.left)||null;var j=parseInt(m.element.css("top"),10)+(m.position.top-m.originalPosition.top)||null;m.element.animate(a.extend(n,j&&e?{top:j,left:e}:{}),{duration:l.animateDuration,easing:l.animateEasing,step:function(){var d={width:parseInt(m.element.css("width"),10),height:parseInt(m.element.css("height"),10),top:parseInt(m.element.css("top"),10),left:parseInt(m.element.css("left"),10)};i&&i.length&&a(i[0]).css({width:d.width,height:d.height});m._updateCache(d);m._propagate("resize",k)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var k=a(this).data("resizable"),m=k.element,l=k.options.containment;if(m=l instanceof a?l.get(0):/parent/.test(l)?m.parent().get(0):l){k.containerElement=a(m);if(/document/.test(l)||l==document){k.containerOffset={left:0,top:0};k.containerPosition={left:0,top:0};k.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var i=a(m),n=[];a(["Top","Right","Left","Bottom"]).each(function(d,f){n[d]=c(i.css("padding"+f))});k.containerOffset=i.offset();k.containerPosition=i.position();k.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]};l=k.containerOffset;var e=k.containerSize.height,j=k.containerSize.width;j=a.ui.hasScroll(m,"left")?m.scrollWidth:j;e=a.ui.hasScroll(m)?m.scrollHeight:e;k.parentData={element:m,left:l.left,top:l.top,width:j,height:e}}}},resize:function(k){var m=a(this).data("resizable"),l=m.options,i=m.containerOffset,n=m.position;k=m._aspectRatio||k.shiftKey;var e={top:0,left:0},j=m.containerElement;if(j[0]!=document&&/static/.test(j.css("position"))){e=i}if(n.left<(m._helper?i.left:0)){m.size.width+=m._helper?m.position.left-i.left:m.position.left-e.left;if(k){m.size.height=m.size.width/l.aspectRatio}m.position.left=l.helper?i.left:0}if(n.top<(m._helper?i.top:0)){m.size.height+=m._helper?m.position.top-i.top:m.position.top;if(k){m.size.width=m.size.height*l.aspectRatio}m.position.top=m._helper?i.top:0}m.offset.left=m.parentData.left+m.position.left;m.offset.top=m.parentData.top+m.position.top;l=Math.abs((m._helper?m.offset.left-e.left:m.offset.left-e.left)+m.sizeDiff.width);i=Math.abs((m._helper?m.offset.top-e.top:m.offset.top-i.top)+m.sizeDiff.height);n=m.containerElement.get(0)==m.element.parent().get(0);e=/relative|absolute/.test(m.containerElement.css("position"));if(n&&e){l-=m.parentData.left}if(l+m.size.width>=m.parentData.width){m.size.width=m.parentData.width-l;if(k){m.size.height=m.size.width/m.aspectRatio}}if(i+m.size.height>=m.parentData.height){m.size.height=m.parentData.height-i;if(k){m.size.width=m.size.height*m.aspectRatio}}},stop:function(){var k=a(this).data("resizable"),m=k.options,l=k.containerOffset,p=k.containerPosition,n=k.containerElement,o=a(k.helper),e=o.offset(),j=o.outerWidth()-k.sizeDiff.width;o=o.outerHeight()-k.sizeDiff.height;k._helper&&!m.animate&&/relative/.test(n.css("position"))&&a(this).css({left:e.left-p.left-l.left,width:j,height:o});k._helper&&!m.animate&&/static/.test(n.css("position"))&&a(this).css({left:e.left-p.left-l.left,width:j,height:o})}});a.ui.plugin.add("resizable","ghost",{start:function(){var d=a(this).data("resizable"),f=d.options,e=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof f.ghost=="string"?f.ghost:"");d.ghost.appendTo(d.helper)},resize:function(){var d=a(this).data("resizable");d.ghost&&d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})},stop:function(){var d=a(this).data("resizable");d.ghost&&d.helper&&d.helper.get(0).removeChild(d.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var k=a(this).data("resizable"),m=k.options,l=k.size,i=k.originalSize,n=k.originalPosition,e=k.axis;m.grid=typeof m.grid=="number"?[m.grid,m.grid]:m.grid;var j=Math.round((l.width-i.width)/(m.grid[0]||1))*(m.grid[0]||1);m=Math.round((l.height-i.height)/(m.grid[1]||1))*(m.grid[1]||1);if(/^(se|s|e)$/.test(e)){k.size.width=i.width+j;k.size.height=i.height+m}else{if(/^(ne)$/.test(e)){k.size.width=i.width+j;k.size.height=i.height+m;k.position.top=n.top-m}else{if(/^(sw)$/.test(e)){k.size.width=i.width+j;k.size.height=i.height+m}else{k.size.width=i.width+j;k.size.height=i.height+m;k.position.top=n.top-m}k.position.left=n.left-j}}}});var c=function(d){return parseInt(d,10)||0},b=function(d){return !isNaN(parseInt(d,10))}})(jQuery);(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var b=this;this.element.addClass("ui-selectable");this.dragged=false;var d;this.refresh=function(){d=a(b.options.filter,b.element[0]);d.each(function(){var c=a(this),e=c.offset();a.data(this,"selectable-item",{element:this,$element:c,left:e.left,top:e.top,right:e.left+c.outerWidth(),bottom:e.top+c.outerHeight(),startselected:false,selected:c.hasClass("ui-selected"),selecting:c.hasClass("ui-selecting"),unselecting:c.hasClass("ui-unselecting")})})};this.refresh();this.selectees=d.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(e){var g=this;this.opos=[e.pageX,e.pageY];if(!this.options.disabled){var b=this.options;this.selectees=a(b.filter,this.element[0]);this._trigger("start",e);a(b.appendTo).append(this.helper);this.helper.css({left:e.clientX,top:e.clientY,width:0,height:0});b.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var c=a.data(this,"selectable-item");c.startselected=true;if(!e.metaKey){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");c.unselecting=true;g._trigger("unselecting",e,{unselecting:c.element})}});a(e.target).parents().andSelf().each(function(){var d=a.data(this,"selectable-item");if(d){var c=!e.metaKey||!d.$element.hasClass("ui-selected");d.$element.removeClass(c?"ui-unselecting":"ui-selected").addClass(c?"ui-selecting":"ui-unselecting");d.unselecting=!c;d.selecting=c;(d.selected=c)?g._trigger("selecting",e,{selecting:d.element}):g._trigger("unselecting",e,{unselecting:d.element});return false}})}},_mouseDrag:function(n){var o=this;this.dragged=true;if(!this.options.disabled){var q=this.options,m=this.opos[0],p=this.opos[1],k=n.pageX,l=n.pageY;if(m>k){var e=k;k=m;m=e}if(p>l){e=l;l=p;p=e}this.helper.css({left:m,top:p,width:k-m,height:l-p});this.selectees.each(function(){var b=a.data(this,"selectable-item");if(!(!b||b.element==o.element[0])){var c=false;if(q.tolerance=="touch"){c=!(b.left>k||b.right<m||b.top>l||b.bottom<p)}else{if(q.tolerance=="fit"){c=b.left>m&&b.right<k&&b.top>p&&b.bottom<l}}if(c){if(b.selected){b.$element.removeClass("ui-selected");b.selected=false}if(b.unselecting){b.$element.removeClass("ui-unselecting");b.unselecting=false}if(!b.selecting){b.$element.addClass("ui-selecting");b.selecting=true;o._trigger("selecting",n,{selecting:b.element})}}else{if(b.selecting){if(n.metaKey&&b.startselected){b.$element.removeClass("ui-selecting");b.selecting=false;b.$element.addClass("ui-selected");b.selected=true}else{b.$element.removeClass("ui-selecting");b.selecting=false;if(b.startselected){b.$element.addClass("ui-unselecting");b.unselecting=true}o._trigger("unselecting",n,{unselecting:b.element})}}if(b.selected){if(!n.metaKey&&!b.startselected){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;o._trigger("unselecting",n,{unselecting:b.element})}}}}});return false}},_mouseStop:function(b){var d=this;this.dragged=false;a(".ui-unselecting",this.element[0]).each(function(){var c=a.data(this,"selectable-item");c.$element.removeClass("ui-unselecting");c.unselecting=false;c.startselected=false;d._trigger("unselected",b,{unselected:c.element})});a(".ui-selecting",this.element[0]).each(function(){var c=a.data(this,"selectable-item");c.$element.removeClass("ui-selecting").addClass("ui-selected");c.selecting=false;c.selected=true;c.startselected=true;d._trigger("selected",b,{selected:c.element})});this._trigger("stop",b);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.5"})})(jQuery);(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--){this.items[b].item.removeData("sortable-item")}return this},_setOption:function(d,c){if(d==="disabled"){this.options[d]=c;this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")}else{a.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(i,g){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(i);var h=null,d=this;a(i.target).parents().each(function(){if(a.data(this,"sortable-item")==d){h=a(this);return false}});if(a.data(i.target,"sortable-item")==d){h=a(i.target)}if(!h){return false}if(this.options.handle&&!g){var j=false;a(this.options.handle,h).find("*").andSelf().each(function(){if(this==i.target){j=true}});if(!j){return false}}this.currentItem=h;this._removeCurrentsFromItems();return true},_mouseStart:function(h,f,g){f=this.options;var d=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(h);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:h.pageX-this.offset.left,top:h.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(h);this.originalPageX=h.pageX;this.originalPageY=h.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();f.containment&&this._setContainment();if(f.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",f.cursor)}if(f.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",f.opacity)}if(f.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",f.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",h,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!g){for(g=this.containers.length-1;g>=0;g--){this.containers[g]._trigger("activate",h,d._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,h);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(h);return true},_mouseDrag:function(i){this.position=this._generatePosition(i);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var g=this.options,h=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-i.pageY<g.scrollSensitivity){this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+g.scrollSpeed}else{if(i.pageY-this.overflowOffset.top<g.scrollSensitivity){this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop-g.scrollSpeed}}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-i.pageX<g.scrollSensitivity){this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(i.pageX-this.overflowOffset.left<g.scrollSensitivity){this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-g.scrollSpeed}}}else{if(i.pageY-a(document).scrollTop()<g.scrollSensitivity){h=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(i.pageY-a(document).scrollTop())<g.scrollSensitivity){h=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}if(i.pageX-a(document).scrollLeft()<g.scrollSensitivity){h=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(i.pageX-a(document).scrollLeft())<g.scrollSensitivity){h=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}h!==false&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,i)}this.positionAbs=this._convertPositionTo("absolute");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"}for(g=this.items.length-1;g>=0;g--){h=this.items[g];var d=h.item[0],j=this._intersectsWithPointer(h);if(j){if(d!=this.currentItem[0]&&this.placeholder[j==1?"next":"prev"]()[0]!=d&&!a.ui.contains(this.placeholder[0],d)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],d):true)){this.direction=j==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(h)){this._rearrange(i,h)}else{break}this._trigger("change",i,this._uiHash());break}}}this._contactContainers(i);a.ui.ddmanager&&a.ui.ddmanager.drag(this,i);this._trigger("sort",i,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(f,d){if(f){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,f);if(this.options.revert){var e=this;d=e.placeholder.offset();e.reverting=true;a(this.helper).animate({left:d.left-this.offset.parent.left-e.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-e.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){e._clear(f)})}else{this._clear(f,d)}return false}},cancel:function(){var d=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",null,d._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,d._uiHash(this));this.containers[c].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(f){var d=this._getItemsAsjQuery(f&&f.connected),e=[];f=f||{};a(d).each(function(){var b=(a(f.item||this).attr(f.attribute||"id")||"").match(f.expression||/(.+)[-=_](.+)/);if(b){e.push((f.key||b[1]+"[]")+"="+(f.key&&f.expression?b[1]:b[2]))}});!e.length&&f.key&&e.push(f.key+"=");return e.join("&")},toArray:function(f){var d=this._getItemsAsjQuery(f&&f.connected),e=[];f=f||{};d.each(function(){e.push(a(f.item||this).attr(f.attribute||"id")||"")});return e},_intersectsWith:function(u){var r=this.positionAbs.left,s=r+this.helperProportions.width,d=this.positionAbs.top,v=d+this.helperProportions.height,w=u.left,o=w+u.width,p=u.top,n=p+u.height,m=this.offset.click.top,q=this.offset.click.left;m=d+m>p&&d+m<n&&r+q>w&&r+q<o;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>u[this.floating?"width":"height"]?m:w<r+this.helperProportions.width/2&&s-this.helperProportions.width/2<o&&p<d+this.helperProportions.height/2&&v-this.helperProportions.height/2<n},_intersectsWithPointer:function(f){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top,f.height);f=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left,f.width);d=d&&f;f=this._getDragVerticalDirection();var e=this._getDragHorizontalDirection();if(!d){return false}return this.floating?e&&e=="right"||f=="down"?2:1:f&&(f=="down"?2:1)},_intersectsWithSides:function(h){var f=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,h.top+h.height/2,h.height);h=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,h.left+h.width/2,h.width);var g=this._getDragVerticalDirection(),d=this._getDragHorizontalDirection();return this.floating&&d?d=="right"&&h||d=="left"&&!h:g&&(g=="down"&&f||g=="up"&&!f)},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(m){var k=[],l=[],j=this._connectWith();if(j&&m){for(m=j.length-1;m>=0;m--){for(var n=a(j[m]),d=n.length-1;d>=0;d--){var i=a.data(n[d],"sortable");if(i&&i!=this&&!i.options.disabled){l.push([a.isFunction(i.options.items)?i.options.items.call(i.element):a(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}}}}l.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(m=l.length-1;m>=0;m--){l[m][0].each(function(){k.push(this)})}return a(k)},_removeCurrentsFromItems:function(){for(var f=this.currentItem.find(":data(sortable-item)"),d=0;d<this.items.length;d++){for(var e=0;e<f.length;e++){f[e]==this.items[d].item[0]&&this.items.splice(d,1)}}},_refreshItems:function(n){this.items=[];this.containers=[this];var l=this.items,m=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],n,{item:this.currentItem}):a(this.options.items,this.element),this]],d=this._connectWith();if(d){for(var o=d.length-1;o>=0;o--){for(var p=a(d[o]),j=p.length-1;j>=0;j--){var k=a.data(p[j],"sortable");if(k&&k!=this&&!k.options.disabled){m.push([a.isFunction(k.options.items)?k.options.items.call(k.element[0],n,{item:this.currentItem}):a(k.options.items,k.element),k]);this.containers.push(k)}}}}for(o=m.length-1;o>=0;o--){n=m[o][1];d=m[o][0];j=0;for(p=d.length;j<p;j++){k=a(d[j]);k.data("sortable-item",n);l.push({item:k,instance:n,width:0,height:0,left:0,top:0})}}},refreshPositions:function(h){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var f=this.items.length-1;f>=0;f--){var g=this.items[f],d=this.options.toleranceElement?a(this.options.toleranceElement,g.item):g.item;if(!h){g.width=d.outerWidth();g.height=d.outerHeight()}d=d.offset();g.left=d.left;g.top=d.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(f=this.containers.length-1;f>=0;f--){d=this.containers[f].element.offset();this.containers[f].containerCache.left=d.left;this.containers[f].containerCache.top=d.top;this.containers[f].containerCache.width=this.containers[f].element.outerWidth();this.containers[f].containerCache.height=this.containers[f].element.outerHeight()}}return this},_createPlaceholder:function(h){var f=h||this,g=f.options;if(!g.placeholder||g.placeholder.constructor==String){var d=g.placeholder;g.placeholder={element:function(){var b=a(document.createElement(f.currentItem[0].nodeName)).addClass(d||f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!d){b.style.visibility="hidden"}return b},update:function(c,b){if(!(d&&!g.forcePlaceholderSize)){b.height()||b.height(f.currentItem.innerHeight()-parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10));b.width()||b.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}}f.placeholder=a(g.placeholder.element.call(f.element,f.currentItem));f.currentItem.after(f.placeholder);g.placeholder.update(f,f.placeholder)},_contactContainers:function(m){for(var k=null,l=null,j=this.containers.length-1;j>=0;j--){if(!a.ui.contains(this.currentItem[0],this.containers[j].element[0])){if(this._intersectsWith(this.containers[j].containerCache)){if(!(k&&a.ui.contains(this.containers[j].element[0],k.element[0]))){k=this.containers[j];l=j}}else{if(this.containers[j].containerCache.over){this.containers[j]._trigger("out",m,this._uiHash(this));this.containers[j].containerCache.over=0}}}}if(k){if(this.containers.length===1){this.containers[l]._trigger("over",m,this._uiHash(this));this.containers[l].containerCache.over=1}else{if(this.currentContainer!=this.containers[l]){k=10000;j=null;for(var n=this.positionAbs[this.containers[l].floating?"left":"top"],d=this.items.length-1;d>=0;d--){if(a.ui.contains(this.containers[l].element[0],this.items[d].item[0])){var i=this.items[d][this.containers[l].floating?"left":"top"];if(Math.abs(i-n)<k){k=Math.abs(i-n);j=this.items[d]}}}if(j||this.options.dropOnEmpty){this.currentContainer=this.containers[l];j?this._rearrange(m,j,null,true):this._rearrange(m,null,this.containers[l].element,true);this._trigger("change",m,this._uiHash());this.containers[l]._trigger("change",m,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[l]._trigger("over",m,this._uiHash(this));this.containers[l].containerCache.over=1}}}}},_createHelper:function(d){var c=this.options;d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;d.parents("body").length||a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);if(d[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(d[0].style.width==""||c.forceHelperSize){d.width(this.currentItem.width())}if(d[0].style.height==""||c.forceHelperSize){d.height(this.currentItem.height())}return d},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left" in b){this.offset.click.left=b.left+this.margins.left}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top" in b){this.offset.click.top=b.top+this.margins.top}if("bottom" in b){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.currentItem.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.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(f.containment)){var d=a(f.containment)[0];f=a(f.containment).offset();var e=a(d).css("overflow")!="hidden";this.containment=[f.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,f.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,f.left+(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,f.top+(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(h,f){if(!f){f=this.position}h=h=="absolute"?1:-1;var g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,d=/(html|body)/i.test(g[0].tagName);return{top:f.top+this.offset.relative.top*h+this.offset.parent.top*h-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():d?0:g.scrollTop())*h),left:f.left+this.offset.relative.left*h+this.offset.parent.left*h-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():d?0:g.scrollLeft())*h)}},_generatePosition:function(k){var i=this.options,j=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(j[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var l=k.pageX,d=k.pageY;if(this.originalPosition){if(this.containment){if(k.pageX-this.offset.click.left<this.containment[0]){l=this.containment[0]+this.offset.click.left}if(k.pageY-this.offset.click.top<this.containment[1]){d=this.containment[1]+this.offset.click.top}if(k.pageX-this.offset.click.left>this.containment[2]){l=this.containment[2]+this.offset.click.left}if(k.pageY-this.offset.click.top>this.containment[3]){d=this.containment[3]+this.offset.click.top}}if(i.grid){d=this.originalPageY+Math.round((d-this.originalPageY)/i.grid[1])*i.grid[1];d=this.containment?!(d-this.offset.click.top<this.containment[1]||d-this.offset.click.top>this.containment[3])?d:!(d-this.offset.click.top<this.containment[1])?d-i.grid[1]:d+i.grid[1]:d;l=this.originalPageX+Math.round((l-this.originalPageX)/i.grid[0])*i.grid[0];l=this.containment?!(l-this.offset.click.left<this.containment[0]||l-this.offset.click.left>this.containment[2])?l:!(l-this.offset.click.left<this.containment[0])?l-i.grid[0]:l+i.grid[0]:l}}return{top:d-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():h?0:j.scrollTop()),left:l-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():h?0:j.scrollLeft())}},_rearrange:function(k,i,j,h){j?j[0].appendChild(this.placeholder[0]):i.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?i.item[0]:i.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var l=this,d=this.counter;window.setTimeout(function(){d==l.counter&&l.refreshPositions(!h)},0)},_clear:function(h,f){this.reverting=false;var g=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var d in this._storedCSS){if(this._storedCSS[d]=="auto"||this._storedCSS[d]=="static"){this._storedCSS[d]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}this.fromOutside&&!f&&g.push(function(b){this._trigger("receive",b,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!f){g.push(function(b){this._trigger("update",b,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){f||g.push(function(b){this._trigger("remove",b,this._uiHash())});for(d=this.containers.length-1;d>=0;d--){if(a.ui.contains(this.containers[d].element[0],this.currentItem[0])&&!f){g.push(function(b){return function(c){b._trigger("receive",c,this._uiHash(this))}}.call(this,this.containers[d]));g.push(function(b){return function(c){b._trigger("update",c,this._uiHash(this))}}.call(this,this.containers[d]))}}}for(d=this.containers.length-1;d>=0;d--){f||g.push(function(b){return function(c){b._trigger("deactivate",c,this._uiHash(this))}}.call(this,this.containers[d]));if(this.containers[d].containerCache.over){g.push(function(b){return function(c){b._trigger("out",c,this._uiHash(this))}}.call(this,this.containers[d]));this.containers[d].containerCache.over=0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!f){this._trigger("beforeStop",h,this._uiHash());for(d=0;d<g.length;d++){g[d].call(this,h)}this._trigger("stop",h,this._uiHash())}return false}f||this._trigger("beforeStop",h,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!f){for(d=0;d<g.length;d++){g[d].call(this,h)}this._trigger("stop",h,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(d){var c=d||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:d?d.element:null}}});a.extend(a.ui.sortable,{version:"1.8.5"})})(jQuery);(function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var g=this,e=g.options;g.running=0;g.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");g.headers=g.element.find(e.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){e.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){e.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){e.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){e.disabled||a(this).removeClass("ui-state-focus")});g.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(e.navigation){var c=g.element.find("a").filter(e.navigationFilter).eq(0);if(c.length){var h=c.closest(".ui-accordion-header");g.active=h.length?h:c.closest(".ui-accordion-content").prev()}}g.active=g._findActive(g.active||e.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all ui-corner-top");g.active.next().addClass("ui-accordion-content-active");g._createIcons();g.resize();g.element.attr("role","tablist");g.headers.attr("role","tab").bind("keydown.accordion",function(b){return g._keydown(b)}).next().attr("role","tabpanel");g.headers.not(g.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();g.active.length?g.active.attr({"aria-expanded":"true",tabIndex:0}):g.headers.eq(0).attr("tabIndex",0);a.browser.safari||g.headers.find("a").attr("tabIndex",-1);e.event&&g.headers.bind(e.event.split(" ").join(".accordion ")+".accordion",function(b){g._clickHandler.call(g,b,this);b.preventDefault()})},_createIcons:function(){var b=this.options;if(b.icons){a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var d=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(d.autoHeight||d.fillHeight){c.css("height","")}return a.Widget.prototype.destroy.call(this)},_setOption:function(d,c){a.Widget.prototype._setOption.apply(this,arguments);d=="active"&&this.activate(c);if(d=="icons"){this._destroyIcons();c&&this._createIcons()}if(d=="disabled"){this.headers.add(this.headers.next())[c?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")}},_keydown:function(i){if(!(this.options.disabled||i.altKey||i.ctrlKey)){var h=a.ui.keyCode,e=this.headers.length,j=this.headers.index(i.target),c=false;switch(i.keyCode){case h.RIGHT:case h.DOWN:c=this.headers[(j+1)%e];break;case h.LEFT:case h.UP:c=this.headers[(j-1+e)%e];break;case h.SPACE:case h.ENTER:this._clickHandler({target:i.target},i.target);i.preventDefault()}if(c){a(i.target).attr("tabIndex",-1);a(c).attr("tabIndex",0);c.focus();return false}return true}},resize:function(){var f=this.options,e;if(f.fillSpace){if(a.browser.msie){var c=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}e=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",c);this.headers.each(function(){e-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,e-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else{if(f.autoHeight){e=0;this.headers.next().each(function(){e=Math.max(e,a(this).height("").height())}).height(e)}}return this},activate:function(b){this.options.active=b;b=this._findActive(b)[0];this._clickHandler({target:b},b);return this},_findActive:function(b){return b?typeof b==="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(k,j){var e=this.options;if(!e.disabled){if(k.target){k=a(k.currentTarget||j);j=k[0]===this.active[0];e.active=e.collapsible&&j?false:this.headers.index(k);if(!(this.running||!e.collapsible&&j)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);if(!j){k.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(e.icons.header).addClass(e.icons.headerSelected);k.next().addClass("ui-accordion-content-active")}i=k.next();l=this.active.next();c={options:e,newHeader:j&&e.collapsible?a([]):k,oldHeader:this.active,newContent:j&&e.collapsible?a([]):i,oldContent:l};e=this.headers.index(this.active[0])>this.headers.index(k[0]);this.active=j?a([]):k;this._toggle(i,l,c,j,e)}}else{if(e.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);this.active.next().addClass("ui-accordion-content-active");var l=this.active.next(),c={options:e,newHeader:a([]),oldHeader:e.active,newContent:a([]),oldContent:l},i=this.active=a([]);this._toggle(i,l,c)}}}},_toggle:function(q,p,u,r,s){var n=this,c=n.options;n.toShow=q;n.toHide=p;n.data=u;var l=function(){if(n){return n._completed.apply(n,arguments)}};n._trigger("changestart",null,n.data);n.running=p.size()===0?q.size():p.size();if(c.animated){u={};u=c.collapsible&&r?{toShow:a([]),toHide:p,complete:l,down:s,autoHeight:c.autoHeight||c.fillSpace}:{toShow:q,toHide:p,complete:l,down:s,autoHeight:c.autoHeight||c.fillSpace};if(!c.proxied){c.proxied=c.animated}if(!c.proxiedDuration){c.proxiedDuration=c.duration}c.animated=a.isFunction(c.proxied)?c.proxied(u):c.proxied;c.duration=a.isFunction(c.proxiedDuration)?c.proxiedDuration(u):c.proxiedDuration;r=a.ui.accordion.animations;var o=c.duration,m=c.animated;if(m&&!r[m]&&!a.easing[m]){m="slide"}r[m]||(r[m]=function(b){this.slide(b,{easing:m,duration:o||700})});r[m](u)}else{if(c.collapsible&&r){q.toggle()}else{p.hide();q.show()}l(true)}p.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();q.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(b){this.running=b?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});a.extend(a.ui.accordion,{version:"1.8.5",animations:{slide:function(m,l){m=a.extend({easing:"swing",duration:300},m,l);if(m.toHide.size()){if(m.toShow.size()){var i=m.toShow.css("overflow"),n=0,c={},j={},k;l=m.toShow;k=l[0].style.width;l.width(parseInt(l.parent().width(),10)-parseInt(l.css("paddingLeft"),10)-parseInt(l.css("paddingRight"),10)-(parseInt(l.css("borderLeftWidth"),10)||0)-(parseInt(l.css("borderRightWidth"),10)||0));a.each(["height","paddingTop","paddingBottom"],function(d,b){j[b]="hide";d=(""+a.css(m.toShow[0],b)).match(/^([\d+-.]+)(.*)$/);c[b]={value:d[1],unit:d[2]||"px"}});m.toShow.css({height:0,overflow:"hidden"}).show();m.toHide.filter(":hidden").each(m.complete).end().filter(":visible").animate(j,{step:function(d,b){if(b.prop=="height"){n=b.end-b.start===0?0:(b.now-b.start)/(b.end-b.start)}m.toShow[0].style[b.prop]=n*c[b.prop].value+c[b.prop].unit},duration:m.duration,easing:m.easing,complete:function(){m.autoHeight||m.toShow.css("height","");m.toShow.css({width:k,overflow:i});m.complete()}})}else{m.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},m)}}else{m.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},m)}},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})}}})})(jQuery);(function(a){a.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},_create:function(){var d=this,c=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(e){if(!d.options.disabled){var b=a.ui.keyCode;switch(e.keyCode){case b.PAGE_UP:d._move("previousPage",e);break;case b.PAGE_DOWN:d._move("nextPage",e);break;case b.UP:d._move("previous",e);e.preventDefault();break;case b.DOWN:d._move("next",e);e.preventDefault();break;case b.ENTER:case b.NUMPAD_ENTER:d.menu.element.is(":visible")&&e.preventDefault();case b.TAB:if(!d.menu.active){return}d.menu.select(e);break;case b.ESCAPE:d.element.val(d.term);d.close(e);break;default:clearTimeout(d.searching);d.searching=setTimeout(function(){if(d.term!=d.element.val()){d.selectedItem=null;d.search(null,e)}},d.options.delay);break}}}).bind("focus.autocomplete",function(){if(!d.options.disabled){d.selectedItem=null;d.previous=d.element.val()}}).bind("blur.autocomplete",function(b){if(!d.options.disabled){clearTimeout(d.searching);d.closing=setTimeout(function(){d.close(b);d._change(b)},150)}});this._initSource();this.response=function(){return d._response.apply(d,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",c)[0]).mousedown(function(e){var b=d.menu.element[0];e.target===b&&setTimeout(function(){a(document).one("mousedown",function(g){g.target!==d.element[0]&&g.target!==b&&!a.ui.contains(b,g.target)&&d.close()})},1);setTimeout(function(){clearTimeout(d.closing)},13)}).menu({focus:function(e,b){b=b.item.data("item.autocomplete");false!==d._trigger("focus",null,{item:b})&&/^key/.test(e.originalEvent.type)&&d.element.val(b.value)},selected:function(e,b){b=b.item.data("item.autocomplete");var g=d.previous;if(d.element[0]!==c.activeElement){d.element.focus();d.previous=g}if(false!==d._trigger("select",e,{item:b})){d.term=b.value;d.element.val(b.value)}d.close(e);d.selectedItem=b},blur:function(){d.menu.element.is(":visible")&&d.element.val()!==d.term&&d.element.val(d.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(d,c){a.Widget.prototype._setOption.apply(this,arguments);d==="source"&&this._initSource();if(d==="appendTo"){this.menu.element.appendTo(a(c||"body",this.element[0].ownerDocument)[0])}},_initSource:function(){var f=this,d,e;if(a.isArray(this.options.source)){d=this.options.source;this.source=function(b,c){c(a.ui.autocomplete.filter(d,b.term))}}else{if(typeof this.options.source==="string"){e=this.options.source;this.source=function(b,c){f.xhr&&f.xhr.abort();f.xhr=a.getJSON(e,b,function(j,k,l){l===f.xhr&&c(j);f.xhr=null})}}else{this.source=this.options.source}}},search:function(d,c){d=d!=null?d:this.element.val();this.term=this.element.val();if(d.length<this.options.minLength){return this.close(c)}clearTimeout(this.closing);if(this._trigger("search")!==false){return this._search(d)}},_search:function(b){this.element.addClass("ui-autocomplete-loading");this.source({term:b},this.response)},_response:function(b){if(b.length){b=this._normalize(b);this._suggest(b);this._trigger("open")}else{this.close()}this.element.removeClass("ui-autocomplete-loading")},close:function(b){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",b);this.menu.element.hide();this.menu.deactivate()}},_change:function(b){this.previous!==this.element.val()&&this._trigger("change",b,{item:this.selectedItem})},_normalize:function(b){if(b.length&&b[0].label&&b[0].value){return b}return a.map(b,function(c){if(typeof c==="string"){return{label:c,value:c}}return a.extend({label:c.label||c.value,value:c.value||c.label},c)})},_suggest:function(f){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1),e;this._renderMenu(d,f);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position(a.extend({of:this.element},this.options.position));f=d.width("").outerWidth();e=this.element.outerWidth();d.outerWidth(Math.max(f,e))},_renderMenu:function(f,d){var e=this;a.each(d,function(b,c){e._renderItem(f,c)})},_renderItem:function(d,c){return a("<li></li>").data("item.autocomplete",c).append(a("<a></a>").text(c.label)).appendTo(d)},_move:function(d,c){if(this.menu.element.is(":visible")){if(this.menu.first()&&/^previous/.test(d)||this.menu.last()&&/^next/.test(d)){this.element.val(this.term);this.menu.deactivate()}else{this.menu[d](c)}}else{this.search(null,c)}},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(f,d){var e=new RegExp(a.ui.autocomplete.escapeRegex(d),"i");return a.grep(f,function(b){return e.test(b.label||b.value||b)})}})})(jQuery);(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(a(c.target).closest(".ui-menu-item a").length){c.preventDefault();b.select(c)}});this.refresh()},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(i,g){this.deactivate();if(this.hasScroll()){var h=g.offset().top-this.element.offset().top,e=this.element.attr("scrollTop"),j=this.element.height();if(h<0){this.element.attr("scrollTop",e+h)}else{h>=j&&this.element.attr("scrollTop",e+h-j+g.height())}}this.active=g.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",i,{item:g})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(f,d,e){if(this.active){f=this.active[f+"All"](".ui-menu-item").eq(0);f.length?this.activate(e,f):this.activate(e,this.element.children(d))}else{this.activate(e,this.element.children(d))}},nextPage:function(h){if(this.hasScroll()){if(!this.active||this.last()){this.activate(h,this.element.children(":first"))}else{var f=this.active.offset().top,g=this.element.height(),e=this.element.children("li").filter(function(){var b=a(this).offset().top-f-g+a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(":last"));this.activate(h,e)}}else{this.activate(h,this.element.children(!this.active||this.last()?":first":":last"))}},previousPage:function(f){if(this.hasScroll()){if(!this.active||this.first()){this.activate(f,this.element.children(":last"))}else{var d=this.active.offset().top,e=this.element.height();result=this.element.children("li").filter(function(){var b=a(this).offset().top-d+e-a(this).height();return b<10&&b>-10});result.length||(result=this.element.children(":first"));this.activate(f,result)}}else{this.activate(f,this.element.children(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})})(jQuery);(function(e){var b,c=function(a){e(":ui-button",a.target.form).each(function(){var f=e(this).data("button");setTimeout(function(){f.refresh()},1)})},d=function(g){var h=g.name,a=g.form,f=e([]);if(h){f=a?e(a).find("[name='"+h+"']"):e("[name='"+h+"']",g.ownerDocument).filter(function(){return !this.form})}return f};e.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",c);if(typeof this.options.disabled!=="boolean"){this.options.disabled=this.element.attr("disabled")}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var g=this,h=this.options,a=this.type==="checkbox"||this.type==="radio",f="ui-state-hover"+(!a?" ui-state-active":"");if(h.label===null){h.label=this.buttonElement.html()}if(this.element.is(":disabled")){h.disabled=true}this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!h.disabled){e(this).addClass("ui-state-hover");this===b&&e(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){h.disabled||e(this).removeClass(f)}).bind("focus.button",function(){e(this).addClass("ui-state-focus")}).bind("blur.button",function(){e(this).removeClass("ui-state-focus")});a&&this.element.bind("change.button",function(){g.refresh()});if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(h.disabled){return false}e(this).toggleClass("ui-state-active");g.buttonElement.attr("aria-pressed",g.element[0].checked)})}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(h.disabled){return false}e(this).addClass("ui-state-active");g.buttonElement.attr("aria-pressed",true);var i=g.element[0];d(i).not(i).map(function(){return e(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)})}else{this.buttonElement.bind("mousedown.button",function(){if(h.disabled){return false}e(this).addClass("ui-state-active");b=this;e(document).one("mouseup",function(){b=null})}).bind("mouseup.button",function(){if(h.disabled){return false}e(this).removeClass("ui-state-active")}).bind("keydown.button",function(i){if(h.disabled){return false}if(i.keyCode==e.ui.keyCode.SPACE||i.keyCode==e.ui.keyCode.ENTER){e(this).addClass("ui-state-active")}}).bind("keyup.button",function(){e(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(i){i.keyCode===e.ui.keyCode.SPACE&&e(this).click()})}}this._setOption("disabled",h.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var a=this.element.is(":checked");a&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",a)}else{this.buttonElement=this.element}},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title");e.Widget.prototype.destroy.call(this)},_setOption:function(a,f){e.Widget.prototype._setOption.apply(this,arguments);if(a==="disabled"){f?this.element.attr("disabled",true):this.element.removeAttr("disabled")}this._resetButton()},refresh:function(){var a=this.element.is(":disabled");a!==this.options.disabled&&this._setOption("disabled",a);if(this.type==="radio"){d(this.element[0]).each(function(){e(this).is(":checked")?e(this).button("widget").addClass("ui-state-active").attr("aria-pressed",true):e(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)})}else{if(this.type==="checkbox"){this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)}}},_resetButton:function(){if(this.type==="input"){this.options.label&&this.element.val(this.options.label)}else{var g=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),h=e("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(g.empty()).text(),a=this.options.icons,f=a.primary&&a.secondary;if(a.primary||a.secondary){g.addClass("ui-button-text-icon"+(f?"s":a.primary?"-primary":"-secondary"));a.primary&&g.prepend("<span class='ui-button-icon-primary ui-icon "+a.primary+"'></span>");a.secondary&&g.append("<span class='ui-button-icon-secondary ui-icon "+a.secondary+"'></span>");if(!this.options.text){g.addClass(f?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");this.hasTitle||g.attr("title",h)}}else{g.addClass("ui-button-text-only")}}}});e.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(a,f){a==="disabled"&&this.buttons.button("option",a,f);e.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":visible").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");e.Widget.prototype.destroy.call(this)}})})(jQuery);(function(a,b){a.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(d){var c=a(this).css(d).offset().top;c<0&&a(this).css("top",d.top-c)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string"){this.originalTitle=""}this.options.title=this.options.title||this.originalTitle;var m=this,l=m.options,i=l.title||"&#160;",n=a.ui.dialog.getTitleId(m.element),c=(m.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+l.dialogClass).css({zIndex:l.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(d){if(l.closeOnEscape&&d.keyCode&&d.keyCode===a.ui.keyCode.ESCAPE){m.close(d);d.preventDefault()}}).attr({role:"dialog","aria-labelledby":n}).mousedown(function(d){m.moveToTop(false,d)});m.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(c);var j=(m.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(c),k=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){k.addClass("ui-state-hover")},function(){k.removeClass("ui-state-hover")}).focus(function(){k.addClass("ui-state-focus")}).blur(function(){k.removeClass("ui-state-focus")}).click(function(d){m.close(d);return false}).appendTo(j);(m.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(l.closeText).appendTo(k);a("<span></span>").addClass("ui-dialog-title").attr("id",n).html(i).prependTo(j);if(a.isFunction(l.beforeclose)&&!a.isFunction(l.beforeClose)){l.beforeClose=l.beforeclose}j.find("*").add(j).disableSelection();l.draggable&&a.fn.draggable&&m._makeDraggable();l.resizable&&a.fn.resizable&&m._makeResizable();m._createButtons(l.buttons);m._isOpen=false;a.fn.bgiframe&&c.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var c=this;c.overlay&&c.overlay.destroy();c.uiDialog.hide();c.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");c.uiDialog.remove();c.originalTitle&&c.element.attr("title",c.originalTitle);return c},widget:function(){return this.uiDialog},close:function(f){var e=this,c;if(false!==e._trigger("beforeClose",f)){e.overlay&&e.overlay.destroy();e.uiDialog.unbind("keypress.ui-dialog");e._isOpen=false;if(e.options.hide){e.uiDialog.hide(e.options.hide,function(){e._trigger("close",f)})}else{e.uiDialog.hide();e._trigger("close",f)}a.ui.dialog.overlay.resize();if(e.options.modal){c=0;a(".ui-dialog").each(function(){if(this!==e.uiDialog[0]){c=Math.max(c,a(this).css("z-index"))}});a.ui.dialog.maxZ=c}return e}},isOpen:function(){return this._isOpen},moveToTop:function(g,e){var c=this,h=c.options;if(h.modal&&!g||!h.stack&&!h.modal){return c._trigger("focus",e)}if(h.zIndex>a.ui.dialog.maxZ){a.ui.dialog.maxZ=h.zIndex}if(c.overlay){a.ui.dialog.maxZ+=1;c.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)}g={scrollTop:c.element.attr("scrollTop"),scrollLeft:c.element.attr("scrollLeft")};a.ui.dialog.maxZ+=1;c.uiDialog.css("z-index",a.ui.dialog.maxZ);c.element.attr(g);c._trigger("focus",e);return c},open:function(){if(!this._isOpen){var f=this,e=f.options,c=f.uiDialog;f.overlay=e.modal?new a.ui.dialog.overlay(f):null;c.next().length&&c.appendTo("body");f._size();f._position(e.position);c.show(e.show);f.moveToTop(true);e.modal&&c.bind("keypress.ui-dialog",function(i){if(i.keyCode===a.ui.keyCode.TAB){var d=a(":tabbable",this),h=d.filter(":first");d=d.filter(":last");if(i.target===d[0]&&!i.shiftKey){h.focus(1);return false}else{if(i.target===h[0]&&i.shiftKey){d.focus(1);return false}}}});a(f.element.find(":tabbable").get().concat(c.find(".ui-dialog-buttonpane :tabbable").get().concat(c.get()))).eq(0).focus();f._isOpen=true;f._trigger("open");return f}},_createButtons:function(i){var h=this,e=false,j=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),c=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(j);h.uiDialog.find(".ui-dialog-buttonpane").remove();typeof i==="object"&&i!==null&&a.each(i,function(){return !(e=true)});if(e){a.each(i,function(f,d){d=a.isFunction(d)?{click:d,text:f}:d;f=a("<button></button>",d).unbind("click").click(function(){d.click.apply(h.element[0],arguments)}).appendTo(c);a.fn.button&&f.button()});j.appendTo(h.uiDialog)}},_makeDraggable:function(){function i(d){return{position:d.position,offset:d.offset}}var h=this,e=h.options,j=a(document),c;h.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(f,d){c=e.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");h._trigger("dragStart",f,i(d))},drag:function(f,d){h._trigger("drag",f,i(d))},stop:function(f,d){e.position=[d.position.left-j.scrollLeft(),d.position.top-j.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(c);h._trigger("dragStop",f,i(d));a.ui.dialog.overlay.resize()}})},_makeResizable:function(i){function h(d){return{originalPosition:d.originalPosition,originalSize:d.originalSize,position:d.position,size:d.size}}i=i===b?this.options.resizable:i;var e=this,j=e.options,c=e.uiDialog.css("position");i=typeof i==="string"?i:"n,e,s,w,se,sw,ne,nw";e.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:e.element,maxWidth:j.maxWidth,maxHeight:j.maxHeight,minWidth:j.minWidth,minHeight:e._minHeight(),handles:i,start:function(f,d){a(this).addClass("ui-dialog-resizing");e._trigger("resizeStart",f,h(d))},resize:function(f,d){e._trigger("resize",f,h(d))},stop:function(f,d){a(this).removeClass("ui-dialog-resizing");j.height=a(this).height();j.width=a(this).width();e._trigger("resizeStop",f,h(d));a.ui.dialog.overlay.resize()}}).css("position",c).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var c=this.options;return c.height==="auto"?c.minHeight:Math.min(c.minHeight,c.height)},_position:function(g){var e=[],c=[0,0],h;if(g){if(typeof g==="string"||typeof g==="object"&&"0" in g){e=g.split?g.split(" "):[g[0],g[1]];if(e.length===1){e[1]=e[0]}a.each(["left","top"],function(d,f){if(+e[d]===e[d]){c[d]=e[d];e[d]=f}});g={my:e.join(" "),at:e.join(" "),offset:c.join(" ")}}g=a.extend({},a.ui.dialog.prototype.options.position,g)}else{g=a.ui.dialog.prototype.options.position}(h=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(g);h||this.uiDialog.hide()},_setOption:function(k,j){var h=this,l=h.uiDialog,c=l.is(":data(resizable)"),i=false;switch(k){case"beforeclose":k="beforeClose";break;case"buttons":h._createButtons(j);i=true;break;case"closeText":h.uiDialogTitlebarCloseText.text(""+j);break;case"dialogClass":l.removeClass(h.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+j);break;case"disabled":j?l.addClass("ui-dialog-disabled"):l.removeClass("ui-dialog-disabled");break;case"draggable":j?h._makeDraggable():l.draggable("destroy");break;case"height":i=true;break;case"maxHeight":c&&l.resizable("option","maxHeight",j);i=true;break;case"maxWidth":c&&l.resizable("option","maxWidth",j);i=true;break;case"minHeight":c&&l.resizable("option","minHeight",j);i=true;break;case"minWidth":c&&l.resizable("option","minWidth",j);i=true;break;case"position":h._position(j);break;case"resizable":c&&!j&&l.resizable("destroy");c&&typeof j==="string"&&l.resizable("option","handles",j);!c&&j!==false&&h._makeResizable(j);break;case"title":a(".ui-dialog-title",h.uiDialogTitlebar).html(""+(j||"&#160;"));break;case"width":i=true;break}a.Widget.prototype._setOption.apply(h,arguments);i&&h._size()},_size:function(){var d=this.options,c;this.element.css({width:"auto",minHeight:0,height:0});if(d.minWidth>d.width){d.width=d.minWidth}c=this.uiDialog.css({height:"auto",width:d.width}).height();this.element.css(d.height==="auto"?{minHeight:Math.max(d.minHeight-c,0),height:a.support.minHeight?"auto":Math.max(d.minHeight-c,0)}:{minHeight:0,height:Math.max(d.height-c,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.5",uuid:0,maxZ:0,getTitleId:function(c){c=c.attr("id");if(!c){this.uuid+=1;c=this.uuid}return"ui-dialog-title-"+c},overlay:function(c){this.$el=a.ui.dialog.overlay.create(c)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(c){return c+".dialog-overlay"}).join(" "),create:function(d){if(this.instances.length===0){setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(e){if(a(e.target).zIndex()<a.ui.dialog.overlay.maxZ){return false}})},1);a(document).bind("keydown.dialog-overlay",function(e){if(d.options.closeOnEscape&&e.keyCode&&e.keyCode===a.ui.keyCode.ESCAPE){d.close(e);e.preventDefault()}});a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize)}var c=(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&c.bgiframe();this.instances.push(c);return c},destroy:function(d){this.oldInstances.push(this.instances.splice(a.inArray(d,this.instances),1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");d.remove();var c=0;a.each(this.instances,function(){c=Math.max(c,this.css("z-index"))});this.maxZ=c},height:function(){var d,c;if(a.browser.msie&&a.browser.version<7){d=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return d<c?a(window).height()+"px":d+"px"}else{return a(document).height()+"px"}},width:function(){var d,c;if(a.browser.msie&&a.browser.version<7){d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return d<c?a(window).width()+"px":d+"px"}else{return a(document).width()+"px"}},resize:function(){var c=a([]);a.each(a.ui.dialog.overlay.instances,function(){c=c.add(this)});c.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var d=this,c=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");c.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");this.range=a([]);if(c.range){if(c.range===true){this.range=a("<div></div>");if(!c.values){c.values=[this._valueMin(),this._valueMin()]}if(c.values.length&&c.values.length!==2){c.values=[c.values[0],c.values[0]]}}else{this.range=a("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(c.range==="min"||c.range==="max"){this.range.addClass("ui-slider-range-"+c.range)}this.range.addClass("ui-widget-header")}a(".ui-slider-handle",this.element).length===0&&a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");if(c.values&&c.values.length){for(;a(".ui-slider-handle",this.element).length<c.values.length;){a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}}this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(b){b.preventDefault()}).hover(function(){c.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(c.disabled){a(this).blur()}else{a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(b){a(this).data("index.ui-slider-handle",b)});this.handles.keydown(function(m){var k=true,n=a(this).data("index.ui-slider-handle"),b,l,j;if(!d.options.disabled){switch(m.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:k=false;if(!d._keySliding){d._keySliding=true;a(this).addClass("ui-state-active");b=d._start(m,n);if(b===false){return}}break}j=d.options.step;b=d.options.values&&d.options.values.length?(l=d.values(n)):(l=d.value());switch(m.keyCode){case a.ui.keyCode.HOME:l=d._valueMin();break;case a.ui.keyCode.END:l=d._valueMax();break;case a.ui.keyCode.PAGE_UP:l=d._trimAlignValue(b+(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:l=d._trimAlignValue(b-(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(b===d._valueMax()){return}l=d._trimAlignValue(b+j);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(b===d._valueMin()){return}l=d._trimAlignValue(b-j);break}d._slide(m,n,l);return k}}).keyup(function(f){var b=a(this).data("index.ui-slider-handle");if(d._keySliding){d._keySliding=false;d._stop(f,b);d._change(f,b);a(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(m){var k=this.options,l,i,n,d,j;if(k.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();l=this._normValueFromMouse({x:m.pageX,y:m.pageY});i=this._valueMax()-this._valueMin()+1;d=this;this.handles.each(function(b){var c=Math.abs(l-d.values(b));if(i>c){i=c;n=a(this);j=b}});if(k.range===true&&this.values(1)===k.min){j+=1;n=a(this.handles[j])}if(this._start(m,j)===false){return false}this._mouseSliding=true;d._handleIndex=j;n.addClass("ui-state-active").focus();k=n.offset();this._clickOffset=!a(m.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:m.pageX-k.left-n.width()/2,top:m.pageY-k.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)};this._slide(m,j,l);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(d){var c=this._normValueFromMouse({x:d.pageX,y:d.pageY});this._slide(d,this._handleIndex,c);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(d){var c;if(this.orientation==="horizontal"){c=this.elementSize.width;d=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{c=this.elementSize.height;d=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}c=d/c;if(c>1){c=1}if(c<0){c=0}if(this.orientation==="vertical"){c=1-c}d=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+c*d)},_start:function(f,d){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}return this._trigger("start",f,e)},_slide:function(h,f,g){var d;if(this.options.values&&this.options.values.length){d=this.values(f?0:1);if(this.options.values.length===2&&this.options.range===true&&(f===0&&g>d||f===1&&g<d)){g=d}if(g!==this.values(f)){d=this.values();d[f]=g;h=this._trigger("slide",h,{handle:this.handles[f],value:g,values:d});this.values(f?0:1);h!==false&&this.values(f,g,true)}}else{if(g!==this.value()){h=this._trigger("slide",h,{handle:this.handles[f],value:g});h!==false&&this.value(g)}}},_stop:function(f,d){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("stop",f,e)},_change:function(f,d){if(!this._keySliding&&!this._mouseSliding){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){e.value=this.values(d);e.values=this.values()}this._trigger("change",f,e)}},value:function(b){if(arguments.length){this.options.value=this._trimAlignValue(b);this._refreshValue();this._change(null,0)}return this._value()},values:function(i,g){var h,d,j;if(arguments.length>1){this.options.values[i]=this._trimAlignValue(g);this._refreshValue();this._change(null,i)}if(arguments.length){if(a.isArray(arguments[0])){h=this.options.values;d=arguments[0];for(j=0;j<h.length;j+=1){h[j]=this._trimAlignValue(d[j]);this._change(null,j)}this._refreshValue()}else{return this.options.values&&this.options.values.length?this._values(i):this.value()}}else{return this._values()}},_setOption:function(h,f){var g,d=0;if(a.isArray(this.options.values)){d=this.options.values.length}a.Widget.prototype._setOption.apply(this,arguments);switch(h){case"disabled":if(f){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(g=0;g<d;g+=1){this._change(null,g)}this._animateOff=false;break}},_value:function(){var b=this.options.value;return b=this._trimAlignValue(b)},_values:function(f){var d,e;if(arguments.length){d=this.options.values[f];return d=this._trimAlignValue(d)}else{d=this.options.values.slice();for(e=0;e<d.length;e+=1){d[e]=this._trimAlignValue(d[e])}return d}},_trimAlignValue:function(f){if(f<this._valueMin()){return this._valueMin()}if(f>this._valueMax()){return this._valueMax()}var d=this.options.step>0?this.options.step:1,e=f%d;f=f-e;if(Math.abs(e)*2>=d){f+=e>0?d:-d}return parseFloat(f.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var r=this.options.range,p=this.options,q=this,d=!this._animateOff?p.animate:false,s,m={},u,n,k,o;if(this.options.values&&this.options.values.length){this.handles.each(function(b){s=(q.values(b)-q._valueMin())/(q._valueMax()-q._valueMin())*100;m[q.orientation==="horizontal"?"left":"bottom"]=s+"%";a(this).stop(1,1)[d?"animate":"css"](m,p.animate);if(q.options.range===true){if(q.orientation==="horizontal"){if(b===0){q.range.stop(1,1)[d?"animate":"css"]({left:s+"%"},p.animate)}if(b===1){q.range[d?"animate":"css"]({width:s-u+"%"},{queue:false,duration:p.animate})}}else{if(b===0){q.range.stop(1,1)[d?"animate":"css"]({bottom:s+"%"},p.animate)}if(b===1){q.range[d?"animate":"css"]({height:s-u+"%"},{queue:false,duration:p.animate})}}}u=s})}else{n=this.value();k=this._valueMin();o=this._valueMax();s=o!==k?(n-k)/(o-k)*100:0;m[q.orientation==="horizontal"?"left":"bottom"]=s+"%";this.handle.stop(1,1)[d?"animate":"css"](m,p.animate);if(r==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[d?"animate":"css"]({width:s+"%"},p.animate)}if(r==="max"&&this.orientation==="horizontal"){this.range[d?"animate":"css"]({width:100-s+"%"},{queue:false,duration:p.animate})}if(r==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[d?"animate":"css"]({height:s+"%"},p.animate)}if(r==="max"&&this.orientation==="vertical"){this.range[d?"animate":"css"]({height:100-s+"%"},{queue:false,duration:p.animate})}}}});a.extend(a.ui.slider,{version:"1.8.5"})})(jQuery);(function(a,b){function g(){return ++c}function e(){return ++f}var c=0,f=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(h,d){if(h=="selected"){this.options.collapsible&&d==this.options.selected||this.select(d)}else{this.options[h]=d;this._tabify()}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+g()},_sanitizeSelector:function(d){return d.replace(/:/g,"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+e());return a.cookie.apply(null,[d].concat(a.makeArray(arguments)))},_ui:function(h,d){return{tab:h,panel:d,index:this.anchors.index(h)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=a(this);d.html(d.data("label.tabs")).removeData("label.tabs")})},_tabify:function(A){function d(h,j){h.css("display","");!a.support.opacity&&j.opacity&&h[0].style.removeAttribute("filter")}var y=this,z=this.options,u=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=a(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);this.anchors.each(function(h,n){var j=a(n).attr("href"),k=j.split("#")[0],m;if(k&&(k===location.toString().split("#")[0]||(m=a("base")[0])&&k===m.href)){j=n.hash;n.href=j}if(u.test(j)){y.panels=y.panels.add(y._sanitizeSelector(j))}else{if(j&&j!=="#"){a.data(n,"href.tabs",j);a.data(n,"load.tabs",j.replace(/#.*$/,""));j=y._tabId(n);n.href="#"+j;n=a("#"+j);if(!n.length){n=a(z.panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(y.panels[h-1]||y.list);n.data("destroy.tabs",true)}y.panels=y.panels.add(n)}else{z.disabled.push(h)}}});if(A){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(z.selected===b){location.hash&&this.anchors.each(function(h,j){if(j.hash==location.hash){z.selected=h;return false}});if(typeof z.selected!=="number"&&z.cookie){z.selected=parseInt(y._cookie(),10)}if(typeof z.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){z.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}z.selected=z.selected||(this.lis.length?0:-1)}else{if(z.selected===null){z.selected=-1}}z.selected=z.selected>=0&&this.anchors[z.selected]||z.selected<0?z.selected:0;z.disabled=a.unique(z.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(h){return y.lis.index(h)}))).sort();a.inArray(z.selected,z.disabled)!=-1&&z.disabled.splice(a.inArray(z.selected,z.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(z.selected>=0&&this.anchors.length){this.panels.eq(z.selected).removeClass("ui-tabs-hide");this.lis.eq(z.selected).addClass("ui-tabs-selected ui-state-active");y.element.queue("tabs",function(){y._trigger("show",null,y._ui(y.anchors[z.selected],y.panels[z.selected]))});this.load(z.selected)}a(window).bind("unload",function(){y.lis.add(y.anchors).unbind(".tabs");y.lis=y.anchors=y.panels=null})}else{z.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[z.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");z.cookie&&this._cookie(z.selected,z.cookie);A=0;for(var p;p=this.lis[A];A++){a(p)[a.inArray(A,z.disabled)!=-1&&!a(p).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}z.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(z.event!=="mouseover"){var q=function(h,j){j.is(":not(.ui-state-disabled)")&&j.addClass("ui-state-"+h)},v=function(h,j){j.removeClass("ui-state-"+h)};this.lis.bind("mouseover.tabs",function(){q("hover",a(this))});this.lis.bind("mouseout.tabs",function(){v("hover",a(this))});this.anchors.bind("focus.tabs",function(){q("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){v("focus",a(this).closest("li"))})}var x,w;if(z.fx){if(a.isArray(z.fx)){x=z.fx[0];w=z.fx[1]}else{x=w=z.fx}}var l=w?function(h,j){a(h).closest("li").addClass("ui-tabs-selected ui-state-active");j.hide().removeClass("ui-tabs-hide").animate(w,w.duration||"normal",function(){d(j,w);y._trigger("show",null,y._ui(h,j[0]))})}:function(h,j){a(h).closest("li").addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");y._trigger("show",null,y._ui(h,j[0]))},i=x?function(h,j){j.animate(x,x.duration||"normal",function(){y.lis.removeClass("ui-tabs-selected ui-state-active");j.addClass("ui-tabs-hide");d(j,x);y.element.dequeue("tabs")})}:function(h,j){y.lis.removeClass("ui-tabs-selected ui-state-active");j.addClass("ui-tabs-hide");y.element.dequeue("tabs")};this.anchors.bind(z.event+".tabs",function(){var h=this,m=a(h).closest("li"),j=y.panels.filter(":not(.ui-tabs-hide)"),k=a(y._sanitizeSelector(h.hash));if(m.hasClass("ui-tabs-selected")&&!z.collapsible||m.hasClass("ui-state-disabled")||m.hasClass("ui-state-processing")||y.panels.filter(":animated").length||y._trigger("select",null,y._ui(this,k[0]))===false){this.blur();return false}z.selected=y.anchors.index(this);y.abort();if(z.collapsible){if(m.hasClass("ui-tabs-selected")){z.selected=-1;z.cookie&&y._cookie(z.selected,z.cookie);y.element.queue("tabs",function(){i(h,j)}).dequeue("tabs");this.blur();return false}else{if(!j.length){z.cookie&&y._cookie(z.selected,z.cookie);y.element.queue("tabs",function(){l(h,k)});y.load(y.anchors.index(this));this.blur();return false}}}z.cookie&&y._cookie(z.selected,z.cookie);if(k.length){j.length&&y.element.queue("tabs",function(){i(h,j)});y.element.queue("tabs",function(){l(h,k)});y.load(y.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}a.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(d){if(typeof d=="string"){d=this.anchors.index(this.anchors.filter("[href$="+d+"]"))}return d},destroy:function(){var d=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var h=a.data(this,"href.tabs");if(h){this.href=h}var i=a(this).unbind(".tabs");a.each(["href","load","cache"],function(k,j){i.removeData(j+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});d.cookie&&this._cookie(null,d.cookie);return this},add:function(m,i,k){if(k===b){k=this.anchors.length}var l=this,d=this.options;i=a(d.tabTemplate.replace(/#\{href\}/g,m).replace(/#\{label\}/g,i));m=!m.indexOf("#")?m.replace("#",""):this._tabId(a("a",i)[0]);i.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var n=a("#"+m);n.length||(n=a(d.panelTemplate).attr("id",m).data("destroy.tabs",true));n.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(k>=this.lis.length){i.appendTo(this.list);n.appendTo(this.list[0].parentNode)}else{i.insertBefore(this.lis[k]);n.insertBefore(this.panels[k])}d.disabled=a.map(d.disabled,function(h){return h>=k?++h:h});this._tabify();if(this.anchors.length==1){d.selected=0;i.addClass("ui-tabs-selected ui-state-active");n.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){l._trigger("show",null,l._ui(l.anchors[0],l.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[k],this.panels[k]));return this},remove:function(j){j=this._getIndex(j);var d=this.options,h=this.lis.eq(j).remove(),i=this.panels.eq(j).remove();if(h.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(j+(j+1<this.anchors.length?1:-1))}d.disabled=a.map(a.grep(d.disabled,function(k){return k!=j}),function(k){return k>=j?--k:k});this._tabify();this._trigger("remove",null,this._ui(h.find("a")[0],i[0]));return this},enable:function(h){h=this._getIndex(h);var d=this.options;if(a.inArray(h,d.disabled)!=-1){this.lis.eq(h).removeClass("ui-state-disabled");d.disabled=a.grep(d.disabled,function(i){return i!=h});this._trigger("enable",null,this._ui(this.anchors[h],this.panels[h]));return this}},disable:function(h){h=this._getIndex(h);var d=this.options;if(h!=d.selected){this.lis.eq(h).addClass("ui-state-disabled");d.disabled.push(h);d.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[h],this.panels[h]))}return this},select:function(d){d=this._getIndex(d);if(d==-1){if(this.options.collapsible&&this.options.selected!=-1){d=this.options.selected}else{return this}}this.anchors.eq(d).trigger(this.options.event+".tabs");return this},load:function(m){m=this._getIndex(m);var i=this,k=this.options,l=this.anchors.eq(m)[0],d=a.data(l,"load.tabs");this.abort();if(!d||this.element.queue("tabs").length!==0&&a.data(l,"cache.tabs")){this.element.dequeue("tabs")}else{this.lis.eq(m).addClass("ui-state-processing");if(k.spinner){var n=a("span",l);n.data("label.tabs",n.html()).html(k.spinner)}this.xhr=a.ajax(a.extend({},k.ajaxOptions,{url:d,success:function(o,h){a(i._sanitizeSelector(l.hash)).html(o);i._cleanup();k.cache&&a.data(l,"cache.tabs",true);i._trigger("load",null,i._ui(i.anchors[m],i.panels[m]));try{k.ajaxOptions.success(o,h)}catch(j){}},error:function(o,h){i._cleanup();i._trigger("load",null,i._ui(i.anchors[m],i.panels[m]));try{k.ajaxOptions.error(o,h,m,l)}catch(j){}}}));i.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(h,d){this.anchors.eq(h).removeData("cache.tabs").data("load.tabs",d);return this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.5"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(l,i){var j=this,k=this.options,d=j._rotate||(j._rotate=function(h){clearTimeout(j.rotation);j.rotation=setTimeout(function(){var m=k.selected;j.select(++m<j.anchors.length?m:0)},l);h&&h.stopPropagation()});i=j._unrotate||(j._unrotate=!i?function(h){h.clientX&&j.rotate(null)}:function(){t=k.selected;d()});if(l){this.element.bind("tabsshow",d);this.anchors.bind(k.event+".tabs",i);d()}else{clearTimeout(j.rotation);this.element.unbind("tabsshow",d);this.anchors.unbind(k.event+".tabs",i);delete this._rotate;delete this._unrotate}return this}})})(jQuery);(function(d,G){function L(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=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"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};d.extend(this._defaults,this.regional[""]);this.dpDiv=d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function E(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==G){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.5"}});var y=(new Date).getTime();d.extend(L.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++){if(f[g].length>h){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b)}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}E(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b.children("."+this._inlineClass).children().removeClass("ui-state-disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b.children("."+this._inlineClass).children().addClass("ui-state-disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b<this._disabledInputs.length;b++){if(this._disabledInputs[b]==a){return true}}return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string"){return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?d.extend({},e.settings):this._get(e,b):null}var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&this._hideDatepicker();var h=this._getDateDatepicker(a,true);E(e.settings,f);this._attachments(d(a),e);this._autoSize(e);this._setDateDatepicker(a,h);this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=true;if(d.datepicker._datepickerShowing){switch(a.keyCode){case 9:d.datepicker._hideDatepicker();c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass,b.dpDiv).add(d("td."+d.datepicker._currentClass,b.dpDiv));c[0]?d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]):d.datepicker._hideDatepicker();return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey){d.datepicker._clearDate(a.target)}c=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey){d.datepicker._gotoToday(a.target)}c=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?+1:-1,"D")}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M")}break;case 38:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,-7,"D")}c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?-1:+1,"D")}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M")}break;case 40:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,+7,"D")}c=a.ctrlKey||a.metaKey;break;default:c=false}}else{if(a.keyCode==36&&a.ctrlKey){d.datepicker._showDatepicker(this)}else{c=false}}if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));var c=String.fromCharCode(a.charCode==G?a.keyCode:a.charCode);return a.ctrlKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);d.datepicker._curInst&&d.datepicker._curInst!=b&&d.datepicker._curInst.dpDiv.stop(true,true);var c=d.datepicker._get(b,"beforeShow");E(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){d.datepicker._datepickerShowing=true;var i=d.datepicker._getBorders(b.dpDiv);b.dpDiv.find("iframe.ui-datepicker-cover").css({left:-i[0],top:-i[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})};b.dpDiv.zIndex(d(a).zIndex()+1);d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){var b=this,c=d.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){d(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!b._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");d(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();c=this._getNumberOfMonths(a);var e=c[1];e>1?a.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input.focus()},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),k=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>k&&k>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1);){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();if(a=this._get(b,"onClose")){a.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e._selectingMonthYear=false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b=this._getInst(d(a)[0]);b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}for(var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff,f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,k=c=-1,l=-1,u=-1,j=false,o=function(p){(p=z+1<a.length&&a.charAt(z+1)==p)&&z++;return p},m=function(p){o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"?4:p=="o"?3:2)+"}");p=b.substring(s).match(p);if(!p){throw"Missing number at position "+s}s+=p[0].length;return parseInt(p[0],10)},n=function(p,w,H){p=o(p)?H:w;for(w=0;w<p.length;w++){if(b.substr(s,p[w].length).toLowerCase()==p[w].toLowerCase()){s+=p[w].length;return w+1}}throw"Unknown name at position "+s},r=function(){if(b.charAt(s)!=a.charAt(z)){throw"Unexpected literal at position "+s}s++},s=0,z=0;z<a.length;z++){if(j){if(a.charAt(z)=="'"&&!o("'")){j=false}else{r()}}else{switch(a.charAt(z)){case"d":l=m("d");break;case"D":n("D",f,h);break;case"o":u=m("o");break;case"m":k=m("m");break;case"M":k=n("M",i,g);break;case"y":c=m("y");break;case"@":var v=new Date(m("@"));c=v.getFullYear();k=v.getMonth()+1;l=v.getDate();break;case"!":v=new Date((m("!")-this._ticksTo1970)/10000);c=v.getFullYear();k=v.getMonth()+1;l=v.getDate();break;case"'":if(o("'")){r()}else{j=true}break;default:r()}}}if(c==-1){c=(new Date).getFullYear()}else{if(c<100){c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100)}}if(u>-1){k=1;l=u;do{e=this._getDaysInMonth(c,k-1);if(l<=e){break}k++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,k-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=k||v.getDate()!=l){throw"Invalid date"}return v},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",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=j+1<a.length&&a.charAt(j+1)==o)&&j++;return o},g=function(o,m,n){m=""+m;if(i(o)){for(;m.length<n;){m="0"+m}}return m},k=function(o,m,n,r){return i(o)?r[m]:n[m]},l="",u=false;if(b){for(var j=0;j<a.length;j++){if(u){if(a.charAt(j)=="'"&&!i("'")){u=false}else{l+=a.charAt(j)}}else{switch(a.charAt(j)){case"d":l+=g("d",b.getDate(),2);break;case"D":l+=k("D",b.getDay(),e,f);break;case"o":l+=g("o",(b.getTime()-(new Date(b.getFullYear(),0,0)).getTime())/86400000,3);break;case"m":l+=g("m",b.getMonth()+1,2);break;case"M":l+=k("M",b.getMonth(),h,c);break;case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=b.getTime()*10000+this._ticksTo1970;break;case"'":if(i("'")){l+="'"}else{u=true}break;default:l+=a.charAt(j)}}}}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;return h},f=0;f<a.length;f++){if(c){if(a.charAt(f)=="'"&&!e("'")){c=false}else{b+=a.charAt(f)}}else{switch(a.charAt(f)){case"d":case"m":case"y":case"@":b+="0123456789";break;case"D":case"M":return null;case"'":if(e("'")){b+="'"}else{c=true}break;default:b+=a.charAt(f)}}}return b},_get:function(a,b){return a.settings[b]!==G?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;f=h=this._getDefaultDate(a);var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var e=function(h){var i=new Date;i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,k=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,j=u.exec(h);j;){switch(j[2]||"d"){case"d":case"D":g+=parseInt(j[1],10);break;case"w":case"W":g+=parseInt(j[1],10)*7;break;case"m":case"M":l+=parseInt(j[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(k,l));break;case"y":case"Y":k+=parseInt(j[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(k,l));break}j=u.exec(h)}return new Date(k,l,g)};if(b=(b=b==null?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):b)&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a){return null}a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),k=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),j=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=j&&n<j?j:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-k,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', -"+k+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";var r=this._get(a,"nextText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(m,g+k,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', +"+k+", 'M');\" title=\""+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>";k=this._get(a,"currentText");r=this._get(a,"gotoCurrent")&&a.currentDay?u:b;k=!h?k:this.formatDate(k,r,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+y+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,r)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._gotoToday('#"+a.id+"');\">"+k+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;k=this._get(a,"showWeek");r=this._get(a,"dayNames");this._get(a,"dayNamesShort");var s=this._get(a,"dayNamesMin"),z=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),w=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var M=this._getDefaultDate(a),I="",C=0;C<i[0];C++){for(var N="",D=0;D<i[1];D++){var J=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",x="";if(l){x+='<div class="ui-datepicker-group';if(i[1]>1){switch(D){case 0:x+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:x+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:x+=" ui-datepicker-group-middle";t="";break}}x+='">'}x+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&C==0?c?f:n:"")+(/all|right/.test(t)&&C==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,j,o,C>0||D>0,z,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var A=k?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var q=(t+h)%7;A+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+r[q]+'">'+s[q]+"</span></th>"}x+=A+"</tr></thead><tbody>";A=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,A)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;A=l?6:Math.ceil((t+A)/7);q=this._daylightSavingAdjust(new Date(m,g,1-t));for(var O=0;O<A;O++){x+="<tr>";var P=!k?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(q)+"</td>";for(t=0;t<7;t++){var F=p?p.apply(a.input?a.input[0]:null,[q]):[true,""],B=q.getMonth()!=g,K=B&&!H||!F[0]||j&&q<j||o&&q>o;P+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(B?" ui-datepicker-other-month":"")+(q.getTime()==J.getTime()&&g==a.selectedMonth&&a._keyEvent||M.getTime()==q.getTime()&&M.getTime()==J.getTime()?" "+this._dayOverClass:"")+(K?" "+this._unselectableClass+" ui-state-disabled":"")+(B&&!w?"":" "+F[1]+(q.getTime()==u.getTime()?" "+this._currentClass:"")+(q.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!B||w)&&F[2]?' title="'+F[2]+'"':"")+(K?"":' onclick="DP_jQuery_'+y+".datepicker._selectDay('#"+a.id+"',"+q.getMonth()+","+q.getFullYear()+', this);return false;"')+">"+(B&&!w?"&#xa0;":K?'<span class="ui-state-default">'+q.getDate()+"</span>":'<a class="ui-state-default'+(q.getTime()==b.getTime()?" ui-state-highlight":"")+(q.getTime()==J.getTime()?" ui-state-active":"")+(B?" ui-priority-secondary":"")+'" href="#">'+q.getDate()+"</a>")+"</td>";q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}x+=P+"</tr>"}g++;if(g>11){g=0;m++}x+="</tbody></table>"+(l?"</div>"+(i[0]>0&&D==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");N+=x}I+=N}I+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return I},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var k=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),j='<div class="ui-datepicker-title">',o="";if(h||!k){o+='<span class="ui-datepicker-month">'+i[b]+"</span>"}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var n=0;n<12;n++){if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth())){o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>"}}o+="</select>"}u||(j+=o+(h||!(k&&l)?"&#xa0;":""));if(h||!l){j+='<span class="ui-datepicker-year">'+c+"</span>"}else{g=this._get(a,"yearRange").split(":");var r=(new Date).getFullYear();i=function(s){s=s.match(/c[+-].*/)?c+parseInt(s.substring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);return isNaN(s)?r:s};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(j+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";b<=g;b++){j+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>"}j+="</select>"}j+=this._get(a,"yearSuffix");if(u){j+=(h||!(k&&l)?"&#xa0;":"")+o}j+="</div>";return j},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new L;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.5";window["DP_jQuery_"+y]=d})(jQuery);(function(a,d){a.widget("ui.progressbar",{options:{value:0},min:0,max:100,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(b){if(b===d){return this._value()}this._setOption("value",b);return this},_setOption:function(c,b){if(c==="value"){this.options.value=b;this._refreshValue();this._trigger("change")}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var b=this.options.value;if(typeof b!=="number"){b=0}return Math.min(this.max,Math.max(this.min,b))},_refreshValue:function(){var b=this.value();this.valueDiv.toggleClass("ui-corner-right",b===this.max).width(b+"%");this.element.attr("aria-valuenow",b)}});a.extend(a.ui.progressbar,{version:"1.8.5"})})(jQuery);jQuery.effects||function(v,e){function q(f){var j;if(f&&f.constructor==Array&&f.length==3){return f}if(j=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(j[1],10),parseInt(j[2],10),parseInt(j[3],10)]}if(j=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(j[1])*2.55,parseFloat(j[2])*2.55,parseFloat(j[3])*2.55]}if(j=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(j[1],16),parseInt(j[2],16),parseInt(j[3],16)]}if(j=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(j[1]+j[1],16),parseInt(j[2]+j[2],16),parseInt(j[3]+j[3],16)]}if(/rgba\(0, 0, 0, 0\)/.exec(f)){return u.transparent}return u[v.trim(f).toLowerCase()]}function a(j,k){var f;do{f=v.curCSS(j,k);if(f!=""&&f!="transparent"||v.nodeName(j,"body")){break}k="backgroundColor"}while(j=j.parentNode);return q(f)}function h(){var l=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,m={},k,f;if(l&&l.length&&l[0]&&l[l[0]]){for(var j=l.length;j--;){k=l[j];if(typeof l[k]=="string"){f=k.replace(/\-(\w)/g,function(n,o){return o.toUpperCase()});m[f]=l[k]}}}else{for(k in l){if(typeof l[k]==="string"){m[k]=l[k]}}}return m}function i(j){var k,f;for(k in j){f=j[k];if(f==null||v.isFunction(f)||k in b||/scrollbar/.test(k)||!/color/i.test(k)&&isNaN(parseFloat(f))){delete j[k]}}return j}function d(k,l){var j={_:0},f;for(f in l){if(k[f]!=l[f]){j[f]=l[f]}}return j}function g(k,l,j,f){if(typeof k=="object"){f=l;j=null;l=k;k=l.effect}if(v.isFunction(l)){f=l;j=null;l={}}if(typeof l=="number"||v.fx.speeds[l]){f=j;j=l;l={}}if(v.isFunction(j)){f=j;j=null}l=l||{};j=j||l.duration;j=v.fx.off?0:typeof j=="number"?j:v.fx.speeds[j]||v.fx.speeds._default;f=f||l.complete;return[k,l,j,f]}v.effects={};v.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,j){v.fx.step[j]=function(k){if(!k.colorInit){k.start=a(k.elem,j);k.end=q(k.end);k.colorInit=true}k.elem.style[j]="rgb("+Math.max(Math.min(parseInt(k.pos*(k.end[0]-k.start[0])+k.start[0],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[1]-k.start[1])+k.start[1],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[2]-k.start[2])+k.start[2],10),255),0)+")"}});var u={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},c=["add","remove","toggle"],b={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};v.effects.animateClass=function(k,l,j,f){if(v.isFunction(j)){f=j;j=null}return this.each(function(){var o=v(this),m=o.attr("style")||" ",n=i(h.call(this)),p,r=o.attr("className");v.each(c,function(w,s){k[s]&&o[s+"Class"](k[s])});p=i(h.call(this));o.attr("className",r);o.animate(d(n,p),l,j,function(){v.each(c,function(w,s){k[s]&&o[s+"Class"](k[s])});if(typeof o.attr("style")=="object"){o.attr("style").cssText="";o.attr("style").cssText=m}else{o.attr("style",m)}f&&f.apply(this,arguments)})})};v.fn.extend({_addClass:v.fn.addClass,addClass:function(k,l,j,f){return l?v.effects.animateClass.apply(this,[{add:k},l,j,f]):this._addClass(k)},_removeClass:v.fn.removeClass,removeClass:function(k,l,j,f){return l?v.effects.animateClass.apply(this,[{remove:k},l,j,f]):this._removeClass(k)},_toggleClass:v.fn.toggleClass,toggleClass:function(l,m,k,f,j){return typeof m=="boolean"||m===e?k?v.effects.animateClass.apply(this,[m?{add:l}:{remove:l},k,f,j]):this._toggleClass(l,m):v.effects.animateClass.apply(this,[{toggle:l},m,k,f])},switchClass:function(l,m,k,f,j){return v.effects.animateClass.apply(this,[{add:m,remove:l},k,f,j])}});v.extend(v.effects,{version:"1.8.5",save:function(j,k){for(var f=0;f<k.length;f++){k[f]!==null&&j.data("ec.storage."+k[f],j[0].style[k[f]])}},restore:function(j,k){for(var f=0;f<k.length;f++){k[f]!==null&&j.css(k[f],j.data("ec.storage."+k[f]))}},setMode:function(f,j){if(j=="toggle"){j=f.is(":hidden")?"show":"hide"}return j},getBaseline:function(j,k){var f;switch(j[0]){case"top":f=0;break;case"middle":f=0.5;break;case"bottom":f=1;break;default:f=j[0]/k.height}switch(j[1]){case"left":j=0;break;case"center":j=0.5;break;case"right":j=1;break;default:j=j[1]/k.width}return{x:j,y:f}},createWrapper:function(j){if(j.parent().is(".ui-effects-wrapper")){return j.parent()}var k={width:j.outerWidth(true),height:j.outerHeight(true),"float":j.css("float")},f=v("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});j.wrap(f);f=j.parent();if(j.css("position")=="static"){f.css({position:"relative"});j.css({position:"relative"})}else{v.extend(k,{position:j.css("position"),zIndex:j.css("z-index")});v.each(["top","left","bottom","right"],function(l,m){k[m]=j.css(m);if(isNaN(parseInt(k[m],10))){k[m]="auto"}});j.css({position:"relative",top:0,left:0})}return f.css(k).show()},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(k,l,j,f){f=f||{};v.each(l,function(n,m){unit=k.cssUnit(m);if(unit[0]>0){f[m]=unit[0]*j+unit[1]}});return f}});v.fn.extend({effect:function(j){var k=g.apply(this,arguments);k={options:k[1],duration:k[2],callback:k[3]};var f=v.effects[j];return f&&!v.fx.off?f.call(this,k):this},_show:v.fn.show,show:function(f){if(!f||typeof f=="number"||v.fx.speeds[f]||!v.effects[f]){return this._show.apply(this,arguments)}else{var j=g.apply(this,arguments);j[1].mode="show";return this.effect.apply(this,j)}},_hide:v.fn.hide,hide:function(f){if(!f||typeof f=="number"||v.fx.speeds[f]||!v.effects[f]){return this._hide.apply(this,arguments)}else{var j=g.apply(this,arguments);j[1].mode="hide";return this.effect.apply(this,j)}},__toggle:v.fn.toggle,toggle:function(f){if(!f||typeof f=="number"||v.fx.speeds[f]||!v.effects[f]||typeof f=="boolean"||v.isFunction(f)){return this.__toggle.apply(this,arguments)}else{var j=g.apply(this,arguments);j[1].mode="toggle";return this.effect.apply(this,j)}},cssUnit:function(j){var k=this.css(j),f=[];v.each(["em","px","%","pt"],function(l,m){if(k.indexOf(m)>0){f=[parseFloat(k),m]}});return f}});v.easing.jswing=v.easing.swing;v.extend(v.easing,{def:"easeOutQuad",swing:function(l,m,k,f,j){return v.easing[v.easing.def](l,m,k,f,j)},easeInQuad:function(l,m,k,f,j){return f*(m/=j)*m+k},easeOutQuad:function(l,m,k,f,j){return -f*(m/=j)*(m-2)+k},easeInOutQuad:function(l,m,k,f,j){if((m/=j/2)<1){return f/2*m*m+k}return -f/2*(--m*(m-2)-1)+k},easeInCubic:function(l,m,k,f,j){return f*(m/=j)*m*m+k},easeOutCubic:function(l,m,k,f,j){return f*((m=m/j-1)*m*m+1)+k},easeInOutCubic:function(l,m,k,f,j){if((m/=j/2)<1){return f/2*m*m*m+k}return f/2*((m-=2)*m*m+2)+k},easeInQuart:function(l,m,k,f,j){return f*(m/=j)*m*m*m+k},easeOutQuart:function(l,m,k,f,j){return -f*((m=m/j-1)*m*m*m-1)+k},easeInOutQuart:function(l,m,k,f,j){if((m/=j/2)<1){return f/2*m*m*m*m+k}return -f/2*((m-=2)*m*m*m-2)+k},easeInQuint:function(l,m,k,f,j){return f*(m/=j)*m*m*m*m+k},easeOutQuint:function(l,m,k,f,j){return f*((m=m/j-1)*m*m*m*m+1)+k},easeInOutQuint:function(l,m,k,f,j){if((m/=j/2)<1){return f/2*m*m*m*m*m+k}return f/2*((m-=2)*m*m*m*m+2)+k},easeInSine:function(l,m,k,f,j){return -f*Math.cos(m/j*(Math.PI/2))+f+k},easeOutSine:function(l,m,k,f,j){return f*Math.sin(m/j*(Math.PI/2))+k},easeInOutSine:function(l,m,k,f,j){return -f/2*(Math.cos(Math.PI*m/j)-1)+k},easeInExpo:function(l,m,k,f,j){return m==0?k:f*Math.pow(2,10*(m/j-1))+k},easeOutExpo:function(l,m,k,f,j){return m==j?k+f:f*(-Math.pow(2,-10*m/j)+1)+k},easeInOutExpo:function(l,m,k,f,j){if(m==0){return k}if(m==j){return k+f}if((m/=j/2)<1){return f/2*Math.pow(2,10*(m-1))+k}return f/2*(-Math.pow(2,-10*--m)+2)+k},easeInCirc:function(l,m,k,f,j){return -f*(Math.sqrt(1-(m/=j)*m)-1)+k},easeOutCirc:function(l,m,k,f,j){return f*Math.sqrt(1-(m=m/j-1)*m)+k},easeInOutCirc:function(l,m,k,f,j){if((m/=j/2)<1){return -f/2*(Math.sqrt(1-m*m)-1)+k}return f/2*(Math.sqrt(1-(m-=2)*m)+1)+k},easeInElastic:function(n,o,m,j,k){n=1.70158;var f=0,l=j;if(o==0){return m}if((o/=k)==1){return m+j}f||(f=k*0.3);if(l<Math.abs(j)){l=j;n=f/4}else{n=f/(2*Math.PI)*Math.asin(j/l)}return -(l*Math.pow(2,10*(o-=1))*Math.sin((o*k-n)*2*Math.PI/f))+m},easeOutElastic:function(n,o,m,j,k){n=1.70158;var f=0,l=j;if(o==0){return m}if((o/=k)==1){return m+j}f||(f=k*0.3);if(l<Math.abs(j)){l=j;n=f/4}else{n=f/(2*Math.PI)*Math.asin(j/l)}return l*Math.pow(2,-10*o)*Math.sin((o*k-n)*2*Math.PI/f)+j+m},easeInOutElastic:function(n,o,m,j,k){n=1.70158;var f=0,l=j;if(o==0){return m}if((o/=k/2)==2){return m+j}f||(f=k*0.3*1.5);if(l<Math.abs(j)){l=j;n=f/4}else{n=f/(2*Math.PI)*Math.asin(j/l)}if(o<1){return -0.5*l*Math.pow(2,10*(o-=1))*Math.sin((o*k-n)*2*Math.PI/f)+m}return l*Math.pow(2,-10*(o-=1))*Math.sin((o*k-n)*2*Math.PI/f)*0.5+j+m},easeInBack:function(m,n,l,j,k,f){if(f==e){f=1.70158}return j*(n/=k)*n*((f+1)*n-f)+l},easeOutBack:function(m,n,l,j,k,f){if(f==e){f=1.70158}return j*((n=n/k-1)*n*((f+1)*n+f)+1)+l},easeInOutBack:function(m,n,l,j,k,f){if(f==e){f=1.70158}if((n/=k/2)<1){return j/2*n*n*(((f*=1.525)+1)*n-f)+l}return j/2*((n-=2)*n*(((f*=1.525)+1)*n+f)+2)+l},easeInBounce:function(l,m,k,f,j){return f-v.easing.easeOutBounce(l,j-m,0,f,j)+k},easeOutBounce:function(l,m,k,f,j){return(m/=j)<1/2.75?f*7.5625*m*m+k:m<2/2.75?f*(7.5625*(m-=1.5/2.75)*m+0.75)+k:m<2.5/2.75?f*(7.5625*(m-=2.25/2.75)*m+0.9375)+k:f*(7.5625*(m-=2.625/2.75)*m+0.984375)+k},easeInOutBounce:function(l,m,k,f,j){if(m<j/2){return v.easing.easeInBounce(l,m*2,0,f,j)*0.5+k}return v.easing.easeOutBounce(l,m*2-j,0,f,j)*0.5+f*0.5+k}})}(jQuery);(function(a){a.effects.blind=function(b){return this.queue(function(){var n=a(this),c=["position","top","left"],o=a.effects.setMode(n,b.options.mode||"hide"),j=b.options.direction||"vertical";a.effects.save(n,c);n.show();var k=a.effects.createWrapper(n).css({overflow:"hidden"}),l=j=="vertical"?"height":"width";j=j=="vertical"?k.height():k.width();o=="show"&&k.css(l,0);var m={};m[l]=o=="show"?j:0;k.animate(m,b.duration,b.options.easing,function(){o=="hide"&&n.hide();a.effects.restore(n,c);a.effects.removeWrapper(n);b.callback&&b.callback.apply(n[0],arguments);n.dequeue()})})}})(jQuery);(function(a){a.effects.bounce=function(c){return this.queue(function(){var s=a(this),p=["position","top","left"],n=a.effects.setMode(s,c.options.mode||"effect"),w=c.options.direction||"up",r=c.options.distance||20,q=c.options.times||5,o=c.duration||250;/show|hide/.test(n)&&p.push("opacity");a.effects.save(s,p);s.show();a.effects.createWrapper(s);var u=w=="up"||w=="down"?"top":"left";w=w=="up"||w=="left"?"pos":"neg";r=c.options.distance||(u=="top"?s.outerHeight({margin:true})/3:s.outerWidth({margin:true})/3);if(n=="show"){s.css("opacity",0).css(u,w=="pos"?-r:r)}if(n=="hide"){r/=q*2}n!="hide"&&q--;if(n=="show"){var v={opacity:1};v[u]=(w=="pos"?"+=":"-=")+r;s.animate(v,o/2,c.options.easing);r/=2;q--}for(v=0;v<q;v++){var b={},e={};b[u]=(w=="pos"?"-=":"+=")+r;e[u]=(w=="pos"?"+=":"-=")+r;s.animate(b,o/2,c.options.easing).animate(e,o/2,c.options.easing);r=n=="hide"?r*2:r/2}if(n=="hide"){v={opacity:0};v[u]=(w=="pos"?"-=":"+=")+r;s.animate(v,o/2,c.options.easing,function(){s.hide();a.effects.restore(s,p);a.effects.removeWrapper(s);c.callback&&c.callback.apply(this,arguments)})}else{b={};e={};b[u]=(w=="pos"?"-=":"+=")+r;e[u]=(w=="pos"?"+=":"-=")+r;s.animate(b,o/2,c.options.easing).animate(e,o/2,c.options.easing,function(){a.effects.restore(s,p);a.effects.removeWrapper(s);c.callback&&c.callback.apply(this,arguments)})}s.queue("fx",function(){s.dequeue()});s.dequeue()})}})(jQuery);(function(a){a.effects.clip=function(b){return this.queue(function(){var n=a(this),j=["position","top","left","height","width"],o=a.effects.setMode(n,b.options.mode||"hide"),m=b.options.direction||"vertical";a.effects.save(n,j);n.show();var l=a.effects.createWrapper(n).css({overflow:"hidden"});l=n[0].tagName=="IMG"?l:n;var e={size:m=="vertical"?"height":"width",position:m=="vertical"?"top":"left"};m=m=="vertical"?l.height():l.width();if(o=="show"){l.css(e.size,0);l.css(e.position,m/2)}var k={};k[e.size]=o=="show"?m:0;k[e.position]=o=="show"?0:m/2;l.animate(k,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){o=="hide"&&n.hide();a.effects.restore(n,j);a.effects.removeWrapper(n);b.callback&&b.callback.apply(n[0],arguments);n.dequeue()}})})}})(jQuery);(function(a){a.effects.drop=function(b){return this.queue(function(){var m=a(this),c=["position","top","left","opacity"],j=a.effects.setMode(m,b.options.mode||"hide"),l=b.options.direction||"left";a.effects.save(m,c);m.show();a.effects.createWrapper(m);var n=l=="up"||l=="down"?"top":"left";l=l=="up"||l=="left"?"pos":"neg";var k=b.options.distance||(n=="top"?m.outerHeight({margin:true})/2:m.outerWidth({margin:true})/2);if(j=="show"){m.css("opacity",0).css(n,l=="pos"?-k:k)}var d={opacity:j=="show"?1:0};d[n]=(j=="show"?l=="pos"?"+=":"-=":l=="pos"?"-=":"+=")+k;m.animate(d,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){j=="hide"&&m.hide();a.effects.restore(m,c);a.effects.removeWrapper(m);b.callback&&b.callback.apply(this,arguments);m.dequeue()}})})}})(jQuery);(function(a){a.effects.explode=function(b){return this.queue(function(){var n=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3,q=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":b.options.mode;var m=a(this).show().css("visibility","hidden"),p=m.offset();p.top-=parseInt(m.css("marginTop"),10)||0;p.left-=parseInt(m.css("marginLeft"),10)||0;for(var k=m.outerWidth(true),l=m.outerHeight(true),j=0;j<n;j++){for(var o=0;o<q;o++){m.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*(k/q),top:-j*(l/n)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:k/q,height:l/n,left:p.left+o*(k/q)+(b.options.mode=="show"?(o-Math.floor(q/2))*(k/q):0),top:p.top+j*(l/n)+(b.options.mode=="show"?(j-Math.floor(n/2))*(l/n):0),opacity:b.options.mode=="show"?0:1}).animate({left:p.left+o*(k/q)+(b.options.mode=="show"?0:(o-Math.floor(q/2))*(k/q)),top:p.top+j*(l/n)+(b.options.mode=="show"?0:(j-Math.floor(n/2))*(l/n)),opacity:b.options.mode=="show"?1:0},b.duration||500)}}setTimeout(function(){b.options.mode=="show"?m.css({visibility:"visible"}):m.css({visibility:"visible"}).hide();b.callback&&b.callback.apply(m[0]);m.dequeue();a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);(function(a){a.effects.fade=function(b){return this.queue(function(){var f=a(this),e=a.effects.setMode(f,b.options.mode||"hide");f.animate({opacity:e},{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);(function(a){a.effects.fold=function(b){return this.queue(function(){var r=a(this),m=["position","top","left"],v=a.effects.setMode(r,b.options.mode||"hide"),u=b.options.size||15,o=!!b.options.horizFirst,n=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(r,m);r.show();var c=a.effects.createWrapper(r).css({overflow:"hidden"}),s=v=="show"!=o,q=s?["width","height"]:["height","width"];s=s?[c.width(),c.height()]:[c.height(),c.width()];var p=/([0-9]+)%/.exec(u);if(p){u=parseInt(p[1],10)/100*s[v=="hide"?0:1]}if(v=="show"){c.css(o?{height:0,width:u}:{height:u,width:0})}o={};p={};o[q[0]]=v=="show"?s[0]:u;p[q[1]]=v=="show"?s[1]:0;c.animate(o,n,b.options.easing).animate(p,n,b.options.easing,function(){v=="hide"&&r.hide();a.effects.restore(r,m);a.effects.removeWrapper(r);b.callback&&b.callback.apply(r[0],arguments);r.dequeue()})})}})(jQuery);(function(a){a.effects.highlight=function(b){return this.queue(function(){var h=a(this),g=["backgroundImage","backgroundColor","opacity"],c=a.effects.setMode(h,b.options.mode||"show"),i={backgroundColor:h.css("backgroundColor")};if(c=="hide"){i.opacity=0}a.effects.save(h,g);h.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(i,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){c=="hide"&&h.hide();a.effects.restore(h,g);c=="show"&&!a.support.opacity&&this.style.removeAttribute("filter");b.callback&&b.callback.apply(this,arguments);h.dequeue()}})})}})(jQuery);(function(a){a.effects.pulsate=function(b){return this.queue(function(){var d=a(this),e=a.effects.setMode(d,b.options.mode||"show");times=(b.options.times||5)*2-1;duration=b.duration?b.duration/2:a.fx.speeds._default/2;isVisible=d.is(":visible");animateTo=0;if(!isVisible){d.css("opacity",0).show();animateTo=1}if(e=="hide"&&isVisible||e=="show"&&!isVisible){times--}for(e=0;e<times;e++){d.animate({opacity:animateTo},duration,b.options.easing);animateTo=(animateTo+1)%2}d.animate({opacity:animateTo},duration,b.options.easing,function(){animateTo==0&&d.hide();b.callback&&b.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()}).dequeue()})}})(jQuery);(function(a){a.effects.puff=function(c){return this.queue(function(){var k=a(this),f=a.effects.setMode(k,c.options.mode||"hide"),b=parseInt(c.options.percent,10)||150,d=b/100,j={height:k.height(),width:k.width()};a.extend(c.options,{fade:true,mode:f,percent:f=="hide"?b:100,from:f=="hide"?j:{height:j.height*d,width:j.width*d}});k.effect("scale",c.options,c.duration,c.callback);k.dequeue()})};a.effects.scale=function(c){return this.queue(function(){var l=a(this),j=a.extend(true,{},c.options),b=a.effects.setMode(l,c.options.mode||"effect"),d=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:b=="hide"?0:100),k=c.options.direction||"both",m=c.options.origin;if(b!="effect"){j.origin=m||["middle","center"];j.restore=true}m={height:l.height(),width:l.width()};l.from=c.options.from||(b=="show"?{height:0,width:0}:m);d={y:k!="horizontal"?d/100:1,x:k!="vertical"?d/100:1};l.to={height:m.height*d.y,width:m.width*d.x};if(c.options.fade){if(b=="show"){l.from.opacity=0;l.to.opacity=1}if(b=="hide"){l.from.opacity=1;l.to.opacity=0}}j.from=l.from;j.to=l.to;j.mode=b;l.effect("size",j,c.duration,c.callback);l.dequeue()})};a.effects.size=function(c){return this.queue(function(){var y=a(this),b=["position","top","left","width","height","overflow","opacity"],A=["position","top","left","overflow","opacity"],s=["width","height","overflow"],u=["fontSize"],z=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],o=a.effects.setMode(y,c.options.mode||"effect"),v=c.options.restore||false,x=c.options.scale||"both",w=c.options.origin,q={height:y.height(),width:y.width()};y.from=c.options.from||q;y.to=c.options.to||q;if(w){w=a.effects.getBaseline(w,q);y.from.top=(q.height-y.from.height)*w.y;y.from.left=(q.width-y.from.width)*w.x;y.to.top=(q.height-y.to.height)*w.y;y.to.left=(q.width-y.to.width)*w.x}var B={from:{y:y.from.height/q.height,x:y.from.width/q.width},to:{y:y.to.height/q.height,x:y.to.width/q.width}};if(x=="box"||x=="both"){if(B.from.y!=B.to.y){b=b.concat(z);y.from=a.effects.setTransition(y,z,B.from.y,y.from);y.to=a.effects.setTransition(y,z,B.to.y,y.to)}if(B.from.x!=B.to.x){b=b.concat(r);y.from=a.effects.setTransition(y,r,B.from.x,y.from);y.to=a.effects.setTransition(y,r,B.to.x,y.to)}}if(x=="content"||x=="both"){if(B.from.y!=B.to.y){b=b.concat(u);y.from=a.effects.setTransition(y,u,B.from.y,y.from);y.to=a.effects.setTransition(y,u,B.to.y,y.to)}}a.effects.save(y,v?b:A);y.show();a.effects.createWrapper(y);y.css("overflow","hidden").css(y.from);if(x=="content"||x=="both"){z=z.concat(["marginTop","marginBottom"]).concat(u);r=r.concat(["marginLeft","marginRight"]);s=b.concat(z).concat(r);y.find("*[width]").each(function(){child=a(this);v&&a.effects.save(child,s);var d={height:child.height(),width:child.width()};child.from={height:d.height*B.from.y,width:d.width*B.from.x};child.to={height:d.height*B.to.y,width:d.width*B.to.x};if(B.from.y!=B.to.y){child.from=a.effects.setTransition(child,z,B.from.y,child.from);child.to=a.effects.setTransition(child,z,B.to.y,child.to)}if(B.from.x!=B.to.x){child.from=a.effects.setTransition(child,r,B.from.x,child.from);child.to=a.effects.setTransition(child,r,B.to.x,child.to)}child.css(child.from);child.animate(child.to,c.duration,c.options.easing,function(){v&&a.effects.restore(child,s)})})}y.animate(y.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){y.to.opacity===0&&y.css("opacity",y.from.opacity);o=="hide"&&y.hide();a.effects.restore(y,v?b:A);a.effects.removeWrapper(y);c.callback&&c.callback.apply(this,arguments);y.dequeue()}})})}})(jQuery);(function(a){a.effects.shake=function(b){return this.queue(function(){var r=a(this),m=["position","top","left"];a.effects.setMode(r,b.options.mode||"effect");var s=b.options.direction||"left",d=b.options.distance||20,q=b.options.times||3,u=b.duration||b.options.duration||140;a.effects.save(r,m);r.show();a.effects.createWrapper(r);var v=s=="up"||s=="down"?"top":"left",o=s=="up"||s=="left"?"pos":"neg";s={};var p={},n={};s[v]=(o=="pos"?"-=":"+=")+d;p[v]=(o=="pos"?"+=":"-=")+d*2;n[v]=(o=="pos"?"-=":"+=")+d*2;r.animate(s,u,b.options.easing);for(d=1;d<q;d++){r.animate(p,u,b.options.easing).animate(n,u,b.options.easing)}r.animate(p,u,b.options.easing).animate(s,u/2,b.options.easing,function(){a.effects.restore(r,m);a.effects.removeWrapper(r);b.callback&&b.callback.apply(this,arguments)});r.queue("fx",function(){r.dequeue()});r.dequeue()})}})(jQuery);(function(a){a.effects.slide=function(b){return this.queue(function(){var m=a(this),c=["position","top","left"],j=a.effects.setMode(m,b.options.mode||"show"),l=b.options.direction||"left";a.effects.save(m,c);m.show();a.effects.createWrapper(m).css({overflow:"hidden"});var n=l=="up"||l=="down"?"top":"left";l=l=="up"||l=="left"?"pos":"neg";var k=b.options.distance||(n=="top"?m.outerHeight({margin:true}):m.outerWidth({margin:true}));if(j=="show"){m.css(n,l=="pos"?-k:k)}var d={};d[n]=(j=="show"?l=="pos"?"+=":"-=":l=="pos"?"-=":"+=")+k;m.animate(d,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){j=="hide"&&m.hide();a.effects.restore(m,c);a.effects.removeWrapper(m);b.callback&&b.callback.apply(this,arguments);m.dequeue()}})})}})(jQuery);(function(a){a.effects.transfer=function(b){return this.queue(function(){var g=a(this),h=a(b.options.to),e=h.offset();h={top:e.top,left:e.left,height:h.innerHeight(),width:h.innerWidth()};e=g.offset();var i=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:e.top,left:e.left,height:g.innerHeight(),width:g.innerWidth(),position:"absolute"}).animate(h,b.duration,b.options.easing,function(){i.remove();b.callback&&b.callback.apply(g[0],arguments);g.dequeue()})})}})(jQuery);String.prototype.controlLenght=function(a){var d=this.split(" ");var b=0;var g=1;var e="";var j=d.length;var f;for(f=0;f<j;f++){var h=d[f].length-b;while(h>a){e+=d[f].substring(b,b+a)+" ";b+=a;h-=a}e+=d[f].substring(b,b+a);b=0;if(f+1<j){e+=" "}}return e};String.format=function(){var b=arguments[0];for(var a=0;a<arguments.length-1;a++){var c=new RegExp("\\{"+a+"\\}","gm");b=b.replace(c,arguments[a+1])}return b};jQuery.NTAlert=function(a){var b={title:"Alert",draggable:false,hide:"fade",modal:true,zIndex:200003,buttons:{Ok:function(){jQuery(this).dialog("close");$("#popupBack_Alert").remove()}}};jQuery.extend(b,a);delete b.autoOpen;window.alert=function(){jQuery("<div />",{html:arguments[0].replace(/\n/,"<br />")}).dialog(b)}};jQuery.NTConfirm=function(c){var f={zIndex:200003,message:"Confirm?",title:"Confirmar",confirmed:function(){},cancelled:function(){},complete:function(){},modal:true,overlay:{opacity:0.7,background:"black"},bgiframe:true,ok_text:"OK",cancel_text:"Cancel"};jQuery.extend(f,c);var d=$("<div />").html(f.message);var b=this;var e={};e[f.ok_text]=function(){d.dialog("close").remove();f.confirmed.call(b);f.complete.call(b)};e[f.cancel_text]=function(){d.dialog("close").remove();f.cancelled.call(b);f.complete.call(b)};var a=$.extend({},f,{autoOpen:true,draggable:false,resizable:false,buttons:e});d.dialog(a)};var fileref=document.createElement("script");fileref.setAttribute("type","text/javascript");fileref.setAttribute("src","js/swfobject.js");document.getElementsByTagName("head")[0].appendChild(fileref);function ShowAll2(){if(getCookie("flyRegistroNuevo")!="done2"){$("body").append('<div id="imgFlyAd"></div>');$("#imgFlyAd").load("flyads.aspx #flyRegistroNuevo");$("#imgFlyAd").dialog({dialogClass:"flyAd",autoOpen:false,modal:false,resizable:false,draggable:false,width:"auto",height:"auto"});$("#imgFlyAd").dialog("open");setCookie("flyRegistroNuevo","done",1);var b=0;var a=($(window).width()/2)-(594/2);if(a<0){a=0}$(".ui-dialog.flyAd").css({top:b,left:a,position:"absolute"});$('img[id $= "btnCloseFlyAd"]').live("click",function(){$("#imgFlyAd").dialog("close")});$(".ui-dialog.flyAd").css("z-index","100002");$("#imgFlyAd").height("");$("#video1").live("click",function(){if($("#contentVideo1").is(":visible")){$("#contentVideo1").hide();$("#contentTexto").show()}else{$("#contentTexto").hide();$("#contentVideo2").hide();$("#contentVideo3").hide();$("#contentVideo4").hide();$("#contentVideo1").show()}});$("#video2").live("click",function(){if($("#contentVideo2").is(":visible")){$("#contentVideo2").hide();$("#contentTexto").show()}else{$("#contentTexto").hide();$("#contentVideo1").hide();$("#contentVideo3").hide();$("#contentVideo4").hide();$("#contentVideo2").show()}});$("#video3").live("click",function(){if($("#contentVideo3").is(":visible")){$("#contentVideo3").hide();$("#contentTexto").show()}else{$("#contentTexto").hide();$("#contentVideo1").hide();$("#contentVideo2").hide();$("#contentVideo4").hide();$("#contentVideo3").show()}});$("#video4").live("click",function(){if($("#contentVideo4").is(":visible")){$("#contentVideo4").hide();$("#contentTexto").show()}else{$("#contentTexto").hide();$("#contentVideo1").hide();$("#contentVideo3").hide();$("#contentVideo2").hide();$("#contentVideo4").show()}})}}$(function(){if(document.location.href.indexOf("nuevo=true")>-1&&$('table[id $= "tblLogin"]')[0]==null){ShowAll2();setTimeout(function(){$('img[id ^= "video"]').tooltip({fade:250,track:true})},1000)}if(typeof wMarqueeColor!="undefined"){setTimeout(function(){$('[id $= "lblAlerta"]').marquee({color:wMarqueeColor,"font-weight":wMarqueeFontWeight,"font-style":wMarqueeFontStyle,"font-family":wMarqueeFontFamily,speed:wMarqueeSpeed,url:wMarqueeUrl});$('[id $= "lblMarca"]').click(function(){document.location.replace(document.location.href.substring(0,document.location.href.lastIndexOf("/"))+"/"+wMarqueeUrl)}).css("cursor","pointer")},1000)}$.NTAlert();$(document.getElementById("nav")).children().children().children("table").width(function(){return $(this).parent("li").width()});$(".dialog-container").css("z-index","5");$('span[id $= "ImgPlay"]').css("position","relative");$("#btnAceptarOlvidePassword").live("click",function(){if($("#txtEmail").val().indexOf("@")>-1){$.NTConfirm({message:$("#txtTextoConfirm").val()+" "+$("#txtEmail").val(),confirmed:function(){return true},cancelled:function(){return false}})}else{alert($("#txtTextoConfirm").attr("title"));return false}});$('a[id $= "00_lnkInicio"]').click(function(){document.location.replace("Home.aspx")});$('a[id $= "lnkGolfistas"]').click(function(){return false});$('a[id $= "lnkQueEs"]').click(function(){document.location.replace("QueEs.aspx")});$('a[id $= "lnkPublicidad"]').click(function(){return false});$('a[id $= "lnkAsociados"]').click(function(){return false});$('a[id $= "lnkContacto"]').click(function(){document.location.replace("Contacto.aspx")});$('a[id $= "lnkTyC"]').click(function(){document.location.replace("TyC.aspx")});$("[paso]").tooltip({fade:250,track:true});$("#tdInvitarGolfer").tooltip({fade:250,track:true});$('input[id *= "btnAmigo"]').tooltip({delay:0,showURL:false,opacity:1,bodyHandler:function(){this.src=this.src.toLowerCase();if(this.src.indexOf("n.jpg")){url=this.src.replace("n.jpg","r.jpg")}else{url=this.src.replace("n.gif","r.gif")}var b=$("<img/>").attr("src",url);var c=true;if($(b).attr("naturalWidth")<=50&&$(b).attr("naturalHeight")<=50){c=false}if(c){return $(b)}else{return"vacio"}}});$('a[id $= "lblNombre"]').tooltip({fade:250,track:true});$("#nav ul:first").children("li").find("tr:first").children("td").hover(function(){if($(this).parents("li").has("ul").length){$(this).parent("tr").children("td:first").addClass("FlechaMenu")}},function(){$(this).parent("tr").children("td:first").removeClass("FlechaMenu")});$("#nav ul li ul li").hover(function(){$(this).parents("li").find("td:first").addClass("FlechaMenu")},function(){$(this).parents("li").find("td:first").removeClass("FlechaMenu")})});function ReCheck(a){if(a==100){$('input[id$="chkHandicap85"]').attr("checked","");$('input[id$="chkSinHandicap"]').attr("checked","")}else{if(a==85){$('input[id$="chkHandicap100"]').attr("checked","");$('input[id$="chkSinHandicap"]').attr("checked","")}else{if(a==0){$('input[id$="chkHandicap85"]').attr("checked","");$('input[id$="chkHandicap100"]').attr("checked","")}}}}$(function(){var a=0;var b=setInterval(function(){a++;if(a>10){window.clearInterval(b);a=0}if($(".datepickeradentro table:first")[0]!=null){window.clearInterval(b);$(".datepickeradentro table:first").attr("align","center");var d=$('input[id$="imgBtnFotoPerfilDesafio1"]').width();var c=$('input[id$="imgBtnFotoPerfilDesafio1"]').height();var e;if(d/c>100/70){e=true}if(!e){if(c>70){$('input[id$="imgBtnFotoPerfilDesafio1"]').height(70)}}else{if(d>100){$('input[id$="imgBtnFotoPerfilDesafio1"]').width(100)}}}},2000)});function checkIt(b){b=(b)?b:window.event;var a=(b.which)?b.which:b.keyCode;if(a>31&&(a<48||a>57)){status="This field accepts numbers only.";return false}status="";return true}function mostrarTabla(b){var c=$($(b).parents('td[id *= "tdWithTables"]')).find('table[class ^= "tablaComments"]');var a=navigator.appName;if($(c).css("display")=="none"){changeText(b);if(a!="Microsoft Internet Explorer"){$(c).stop(true,true).animate({height:"toggle",opacity:1,filter:"alpha(opacity=100)"},"fast")}else{$(c).css("filter","'alpha(opacity=100)'");$(c).css("display","block")}}else{changeText(b);if(a!="Microsoft Internet Explorer"){$(c).stop(true,true).animate({height:"toggle",opacity:0,filter:"alpha(opacity=0)"},"fast")}else{$(c).css("filter","alpha(opacity=0)");$(c).css("display","none")}}}function changeText(a){if($(a).attr("alternativeText")!=undefined){var b=$(a).attr("innerHTML");$(a).attr("innerHTML",$(a).attr("alternativeText"));$(a).attr("alternativeText",b)}else{if($(a).parents('table[id *= "tablaNovelty"]').find('a[id *= "lnkShowComment"]').attr("alternativeText")!=undefined){var b=$(a).attr("innerHTML");$(a).attr("innerHTML",$(a).parents('table[id *= "tablaNovelty"]').find('a[id *= "lnkShowComment"]').attr("alternativeText"));$(a).attr("alternativeText",b)}}}function lnkNewCommentConf(a){var c=$($(a).parents('td[id *= "tdWithTables"]')).find('table[class ^= "tablaComments"]');var b=$($(a).parents('td[id *= "tdWithTables"]')).find(".imput_area_comentarios");if($(b).val()!=""){$.ajax({type:"POST",url:"./NovedadesWebMethods.aspx/SaveNewComment",data:"{'args': '"+($($(a).parents('td[id *= "tdWithTables"]')).find(".imput_area_comentarios").val()).replace(/[-]/gi,"@gui858on").controlLenght(45)+"-"+$(c).attr("novid")+"-"+$(c).attr("useid")+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(j){if(j.d!="SessionExpired"){var g;var h=$(c).find('table[id $= "grdC"]');var f=$($(a).parents('td[id *= "tdWithTables"]')).find('span[id $= "lblShowCommNumber"]');var e=parseInt($(f).attr("innerHTML").replace(/[()]/ig,""));$(f).attr("innerHTML","("+(e+1)+")");var i=$($(a).parents('td[id *= "tdWithTables"]')).find('tr[id $= "trWithComment"]');var d=$($(a).parents('td[id *= "tdWithTables"]')).find('tr[id $= "trWithShowComment"]');$(i).css({display:"none",opacity:"0",filter:"alpha(opacity=0)"});$(d).css({display:"",opacity:"1",filter:"alpha(opacity=100)"});if(e!=0&&$(h).attr("id")!=undefined){$(h).children("tbody").append(j.d);$(h).children("tbody").find('tr[id *= "trWithEachComment"]:last').hide();$(h).children("tbody").find('tr[id *= "trWithEachComment"]:last').fadeIn("slow");$(b).val("");g=$($(h).children("tbody").find('a[id *= "lnkEliminarComment"]:last'));$(g).click(function(){lnkEliminarComment(this);return false})}else{if(navigator.appName=="Microsoft Internet Explorer"){$(c).find("table + div:first").append('<table id="'+Math.random().toString().replace(/[0.]/gi,"")+'tableWithEachComment"><tbody>'+j.d+"</tbody></table>")}else{$(c).find("table + div:first").append(j.d)}$(c).find("table + div:first").find('tr[id *= "trWithEachComment"]:last').hide();$(c).find("table + div:first").find('tr[id *= "trWithEachComment"]:last').fadeIn("slow");$(b).val("");g=$(c).find("table + div:last").find('a[id *= "lnkEliminarComment"]:last');$(g).click(function(){lnkEliminarComment(this);return false});if($(c).attr("onecomment")!="done"){changeText($(c).parent('td[id *= "tdWithTables"]').find('a[id $= "lnkShowComments"]'))}$(c).attr("onecomment","done")}}else{document.location.replace(document.location)}}})}}function lnkNewCommentMultimedia(a){var c=$($(a).parents('td[id *= "tdWithTables"]')).find('table[class ^= "tablaComments"]');var b=$($(a).parents('td[id *= "tdWithTables"]')).find(".imput_area_comentarios");if($(b).val()!=""){$.ajax({type:"POST",url:"./NovedadesWebMethods.aspx/SaveNewCommentPerfil",data:"{'args': '"+($($(a).parents('td[id *= "tdWithTables"]')).find(".imput_area_comentarios").val()).replace(/[-]/gi,"@gui858on")+"-"+$(c).attr("novid")+"-"+$(c).attr("useid")+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(f){if(f.d!="SessionExpired"){var d;var e=$(c).find('table[id $= "gvComentarios"]');if($(e).attr("id")!=undefined){if($(e).children("tbody").children("tr:first").attr("id")==""){$(e).children("tbody").children('tr[id $= "trWithEachComment"]:first').before(f.d)}else{$(e).children("tbody").prepend(f.d)}$(e).children("tbody").find('tr[id *= "trWithEachComment"]:first').hide();$(e).children("tbody").find('tr[id *= "trWithEachComment"]:first').fadeIn("slow");$(b).val("");d=$($(e).children("tbody").find('a[id $= "lnkEliminar"]:last'));$(d).click(function(){lnkEliminarComment(this);return false})}}else{document.location.replace(document.location)}}})}}function lnkEliminarCommentMultimedia(a){$.NTConfirm({message:"¿Está seguro que desea eliminar el comentario?",confirmed:function(){var b=null;b=$(a).parents('tr[id *= "trWithEachComment"]');$.ajax({type:"POST",url:"./NovedadesWebMethods.aspx/DeleteNewComment",data:"{'args': '"+$(a).attr("myargument")+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(g){if(g.d!="SessionExpired"){$(b).toggle("slow");var e=$($(a).parents('td[id *= "tdWithTables"]')).find('span[id $= "lblShowCommNumber"]');var d=parseInt($(e).attr("innerHTML").replace(/[()]/ig,""));if(d>1){$(e).attr("innerHTML","("+(d-1)+")")}else{if(d==1){var f=$($(a).parents('td[id *= "tdWithTables"]')).find('tr[id $= "trWithComment"]');var c=$($(a).parents('td[id *= "tdWithTables"]')).find('tr[id $= "trWithShowComment"]');$(f).css({display:"",opacity:"1",filter:"alpha(opacity=100)"});$(c).css({display:"none",opacity:"0",filter:"alpha(opacity=0)"});$(e).attr("innerHTML","("+(d-1)+")")}}}else{document.location.replace(document.location)}}})}})}function showPopup(){var a=document.getElementById("popupBack");if(a==undefined){$("body").append('<div class="popBack" id="popupBack"><div class="popTop"></div></div>');$(".popBack").css("visibility","visible")}else{$(".popBack").show()}}function hidePopup(){$(".popBack").hide()}function pageLoad(){$('a[id $= "lnkShowComments"]').each(function(){if($($(this).parents('td[id *= "tdWithTables"]')).find('table[id $= "tablaComments"]').attr("class")=="tablaCommentsOpen"){changeText(this)}});$('table[id *= "grdC"]').children("tbody").children().each(function(){$(this).attr("id","trWithEachComment"+Math.random().toString().replace(/[0.]/gi,""))})}$(function(){setTimeout(function(){hidePopup()},100);$('input[id *= "btnAceptarNotLogged"]').live("click",function(){if(location.href.substring((location.href.lastIndexOf("/"))+1)=="Home.aspx"){hideModalPopup(this)}else{if($(this).attr("urlredirectmsg")==""){hideModalPopup(this)}else{document.location.replace($(this).attr("urlredirectmsg"))}}});$('select[id $= "lstSocios"] option').live("click",function(){$('input[id $= "txbOtorgar"]').val($(this).text())});$('a[id *= "lnkAmigo"]').live("click",function(){if($(this).attr("id").indexOf("lnkAmigo2")>=0){if($(this).attr("id").indexOf("NUH1")>=0){document.location.replace("SuPerfilVisitado.aspx?Id="+$(this).attr("commandargument"))}else{if($(this).attr("id").indexOf("NNCL1")>=0){document.location.replace("Clubes.aspx?Id="+$(this).attr("commandargument"))}else{document.location.replace("SuPerfilEquipamiento.aspx?Id="+$(this).attr("commandargument"))}}}else{document.location.replace("SuPerfilVisitado.aspx?Id="+$(this).attr("commandargument"))}});$('a[id *= "lnkHoyoUno1"]').live("click",function(){document.location.replace("SuPerfilReconocimiento.aspx?Id="+$(this).attr("commandargument")+"&recognitionId="+$(this).attr("recognitionid"))});$('a[id *= "lnkGolpes1"]').live("click",function(){document.location.replace("SuPerfilReconocimiento.aspx?Id="+$(this).attr("commandargument")+"&recognitionId="+$(this).attr("recognitionid"))});$('a[id *= "lnkTitulo1"]').live("click",function(){document.location.replace("SuPerfilReconocimiento.aspx?Id="+$(this).attr("commandargument")+"&recognitionId="+$(this).attr("recognitionid"))});$('input[id *= "btnAmigo"]').live("click",function(){document.location.replace("SuPerfilVisitado.aspx?Id="+$(this).attr("commandargument"))});$('input[id *= "btnUserOwner"]').live("click",function(){document.location.replace("SuPerfilVisitado.aspx?Id="+$(this).attr("commandargument"))});$('a[id *= "lnkCommentOwner"]').live("click",function(){document.location.replace("SuPerfilVisitado.aspx?Id="+$(this).attr("commandargument"))});$('a[id *= "lnkGotoProfile"]').live("click",function(){document.location.replace("SuPerfilVisitado.aspx?Id="+$(this).attr("commandargument"))});$('input[id $= "btnCerrarCargarScore"]').live("click",function(){document.location.replace(document.URL)});$('a[id *= "lnkCommentAbrir"]').live("click",function(){var a=$($(this).parents('td[id *= "tdWithTables"]')).find('table[class ^= "tablaComments"]');if($(a).attr("class")!=undefined){mostrarTabla(this);return false}else{__doPostBack($(this).attr("id"),"")}});$('a[id *= "lnkShowComments"]').live("click",function(){var a=$($(this).parents('td[id *= "tdWithTables"]')).find('table[class ^= "tablaComments"]');if($(a).attr("class")!=undefined){mostrarTabla(this);return false}});$('a[id *= "lnk2ShowComments"]').live("click",function(){__doCustomPostBack("lnkShowComments2_Click","")});$('a[id *= "lnk2ShowComments2"]').live("click",function(){__doCustomPostBack("lnkShowComments2_Click","")});$('a[id *= "lnk2CommentAbrir"]').live("click",function(){__doCustomPostBack("lnkCommentAbrir","")});$('a[id *= "lnk2CommentAbrir2"]').live("click",function(){__doCustomPostBack("lnkCommentAbrir2_Click","")});$('a[id $= "lnkNewCommentConf"]').live("click",function(){var b=$($(this).parents('td[id *= "tdWithTables"]')).find(".tablaComments");if($(b).attr("class")!=undefined){showPopup();var a=lnkNewCommentConf(this);setTimeout("hidePopup()",1000);return false}});$('a[id *= "lnkEliminarNovedad"]').live("click",function(){var a=$($(this).parents('td[id *= "tdWithTables"]')).find('table[id *= "tablaNovelty"]');if($(a).attr("id")!=undefined){lnkEliminarNovedad(this);return false}});$('a[id *= "lnkEliminarComment"]').live("click",function(){var a=$($(this).parents('td[id *= "tdWithTables"]')).find('table[class ^= "tablaComments"]');if($(a).attr("class")!=undefined){lnkEliminarComment(this);return false}});if(document.URL.indexOf("SuPerfilMultimediaVideos")>=0||document.URL.indexOf("MiPerfilMultimediaVideos")>=0){$('a[id $= "lnkComentar"]').live("click",function(){var b=$(this).parents('td[id *= "tdWithTables"]').find(".tablaCommentsOpen");if($(b).attr("class")!=undefined){showPopup();var a=lnkNewCommentMultimedia(this);setTimeout("hidePopup()",1000);return false}})}});function lnkEliminarNovedad(b){var a=$($(b).parents('td[id *= "tdWithTables"]')).find('table[id *= "tablaNovelty"]');$.NTConfirm({message:"¿Está seguro que desea eliminar la novedad?",confirmed:function(){if($(a).attr("usecreatorid")!=$(a).attr("useid")){$.ajax({type:"POST",url:"./NovedadesWebMethods.aspx/DeleteNoveltyPerUser",data:"{'args': '"+$(a).attr("useid")+"-"+$(a).attr("novid")+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(c){if(c.d!="SessionExpired"){$($(b).parents('td[id *= "tdWithTables"]')).hide("slow")}else{document.location.replace(document.location)}}})}else{$.ajax({type:"POST",url:"./NovedadesWebMethods.aspx/DeleteNoveltyOfTable",data:"{'args': '"+$(a).attr("novid")+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(c){if(c.d!="SessionExpired"){$($(b).parents('td[id *= "tdWithTables"]')).hide("slow")}else{document.location.replace(document.location)}}})}}})}function lnkEliminarComment(a){$.NTConfirm({message:"¿Está seguro que desea eliminar el comentario?",confirmed:function(){var b=null;if(navigator.appName=="Microsoft Internet Explorer"){b=$($(a).parents('table[id *= "tableWithEachComment"]'));if($(b).attr("id")==undefined){b=$($(a).parents('tr[id *= "trWithEachComment"]'))}}else{b=$($(a).parents('tr[id *= "trWithEachComment"]'))}$.ajax({type:"POST",url:"./NovedadesWebMethods.aspx/DeleteNewComment",data:"{'args': '"+$(a).attr("myArgument")+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(g){if(g.d!="SessionExpired"){$(b).toggle("slow");var e=$($(a).parents('td[id *= "tdWithTables"]')).find('span[id $= "lblShowCommNumber"]');var d=parseInt($(e).attr("innerHTML").replace(/[()]/ig,""));if(d>1){$(e).attr("innerHTML","("+(d-1)+")")}else{if(d==1){var f=$($(a).parents('td[id *= "tdWithTables"]')).find('tr[id $= "trWithComment"]');var c=$($(a).parents('td[id *= "tdWithTables"]')).find('tr[id $= "trWithShowComment"]');$(f).css({display:"",opacity:"1",filter:"alpha(opacity=100)"});$(c).css({display:"none",opacity:"0",filter:"alpha(opacity=0)"});$(e).attr("innerHTML","("+(d-1)+")")}}}else{document.location.replace(document.location)}}})}})}$(function(){setInterval(KeepSessionAlive,60000)});function KeepSessionAlive(){$.post(document.URL.substring(0,document.URL.lastIndexOf("/"))+"/Handlers/KeepSessionAlive.ashx",null,function(){})}(function(l){var m={},c,k,n,o=l.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),i=false;l.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:false,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){l.tooltip.blocked=!l.tooltip.blocked}};l.fn.extend({tooltip:function(p){p=l.extend({},l.tooltip.defaults,p);b(p);return this.each(function(){l.data(this,"tooltip",p);this.tOpacity=m.parent.css("opacity");this.tooltipText=this.title;l(this).removeAttr("title");this.alt=""}).mouseover(e).mouseout(g).click(g)},fixPNG:o?function(){return this.each(function(){var p=l(this).css("backgroundImage");if(p.match(/^url\(["']?(.*\.png)["']?\)$/i)){p=RegExp.$1;l(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+p+"')"}).each(function(){var q=l(this).css("position");if(q!="absolute"&&q!="relative"){l(this).css("position","relative")}})}})}:function(){return this},unfixPNG:o?function(){return this.each(function(){l(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){l(this)[l(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function b(p){if(m.parent){return}m.parent=l('<div id="'+p.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(l.fn.bgiframe){m.parent.bgiframe()}m.title=l("h3",m.parent);m.body=l("div.body",m.parent);m.url=l("div.url",m.parent)}function a(p){return l.data(p,"tooltip")}function d(p){if(a(this).delay){n=setTimeout(h,a(this).delay)}else{h()}i=!!a(this).track;l(document.body).bind("mousemove",f);f(p)}function e(){if(l.tooltip.blocked||this==c||(!this.tooltipText&&!a(this).bodyHandler)){return}c=this;k=this.tooltipText;if(a(this).bodyHandler){m.title.hide();var r=a(this).bodyHandler.call(this);if(r!="vacio"){if(r.nodeType||r.jquery){m.body.empty().append(r)}else{m.body.html(r)}m.body.show()}else{m.body.empty()}}else{if(a(this).showBody){var p=k.split(a(this).showBody);m.title.html(p.shift()).show();m.body.empty();for(var q=0,s;(s=p[q]);q++){if(q>0){m.body.append("<br/>")}m.body.append(s)}m.body.hideWhenEmpty()}else{m.title.html(k).show();m.body.hide()}}if(a(this).showURL&&l(this).url()){m.url.html(l(this).url().replace("http://","")).show()}else{m.url.hide()}m.parent.addClass(a(this).extraClass);if(a(this).fixPNG){m.parent.fixPNG()}if(r!="vacio"){d.apply(this,arguments)}}function h(){n=null;if((!o||!l.fn.bgiframe)&&a(c).fade){if(m.parent.is(":animated")){m.parent.stop().show().fadeTo(a(c).fade,c.tOpacity)}else{m.parent.is(":visible")?m.parent.fadeTo(a(c).fade,c.tOpacity):m.parent.fadeIn(a(c).fade)}}else{m.parent.show()}f()}function f(u){if(l.tooltip.blocked){return}if(u&&u.target.tagName=="OPTION"){return}if(!i&&m.parent.is(":visible")){l(document.body).unbind("mousemove",f)}if(c==null){l(document.body).unbind("mousemove",f);return}m.parent.removeClass("viewport-right").removeClass("viewport-bottom");var r=m.parent[0].offsetLeft;var s=m.parent[0].offsetTop;if(u){r=u.pageX+a(c).left;s=u.pageY+a(c).top;var q="auto";if(a(c).positionLeft){q=l(window).width()-r;r="auto"}m.parent.css({left:r,right:q,top:s,position:"absolute"})}var w=j(),p=m.parent[0];if(w.x+w.cx<p.offsetLeft+p.offsetWidth){r-=p.offsetWidth+20+a(c).left;m.parent.css({left:r+"px"}).addClass("viewport-right")}if(w.y+w.cy<p.offsetTop+p.offsetHeight){s-=p.offsetHeight+20+a(c).top;m.parent.css({top:s+"px"}).addClass("viewport-bottom")}}function j(){return{x:l(window).scrollLeft(),y:l(window).scrollTop(),cx:l(window).width(),cy:l(window).height()}}function g(r){if(l.tooltip.blocked){return}if(n){clearTimeout(n)}c=null;var p=a(this);function q(){m.parent.removeClass(p.extraClass).hide().css("opacity","")}if((!o||!l.fn.bgiframe)&&p.fade){if(m.parent.is(":animated")){m.parent.stop().fadeTo(p.fade,0,q)}else{m.parent.stop().fadeOut(p.fade,q)}}else{q()}if(a(this).fixPNG){m.parent.unfixPNG()}}})(jQuery);$(function(){if(document.location.pathname.toLowerCase().indexOf("inicio.aspx")>-1){$('div[id $= "menuInicio"] a[href = "Inicio.aspx"]').parent().removeClass();$('div[id $= "menuInicio"] a[href = "Inicio.aspx"]').parent().addClass("SeleccionadoInicio");$('div[id $= "menuInicio"] input').css({cursor:"default",opacity:"0.5"}).click(function(){return false})}if(document.location.pathname.toLowerCase().indexOf("iniciopropias.aspx")>-1){$('div[id $= "menuInicio"] a[href = "InicioPropias.aspx"]').parent().removeClass();$('div[id $= "menuInicio"] a[href = "InicioPropias.aspx"]').parent().addClass("SeleccionadoInicio");$('div[id $= "menuInicio"] input').css({cursor:"default",opacity:"0.5"}).click(function(){return false})}if(document.location.pathname.toLowerCase().indexOf("iniciodesafios.aspx")>-1){$('div[id $= "menuInicio"] a[href = "InicioDesafios.aspx"]').parent().removeClass();$('div[id $= "menuInicio"] a[href = "InicioDesafios.aspx"]').parent().addClass("SeleccionadoInicio");$('div[id $= "menuInicio"] input').css({cursor:"default",opacity:"0.5"}).click(function(){return false})}if(document.location.pathname.toLowerCase().indexOf("inicioclubs.aspx")>-1){$('div[id $= "menuInicio"] a[href = "InicioClubs.aspx"]').parent().removeClass();$('div[id $= "menuInicio"] a[href = "InicioClubs.aspx"]').parent().addClass("SeleccionadoInicio");$('div[id $= "menuInicio"] input').css({cursor:"default",opacity:"0.5"}).click(function(){return false})}if(document.location.pathname.toLowerCase().indexOf("iniciomultimedia.aspx")>-1){$('div[id $= "menuInicio"] a[href = "InicioMultimedia.aspx"]').parent().removeClass();$('div[id $= "menuInicio"] a[href = "InicioMultimedia.aspx"]').parent().addClass("SeleccionadoInicio");$('div[id $= "menuInicio"] input').css({cursor:"default",opacity:"0.5"}).click(function(){return false})}if(document.location.pathname.toLowerCase().indexOf("tutoriales.aspx")>-1){$('div[id $= "menuInicio"] a[href = "Tutoriales.aspx"]').parent().removeClass();$('div[id $= "menuInicio"] a[href = "Tutoriales.aspx"]').parent().addClass("SeleccionadoInicio");$('div[id $= "menuInicio"] input').css({cursor:"default",opacity:"0.5"}).click(function(){return false})}if(document.location.pathname.toLowerCase().indexOf("invposiblesamigos.aspx")>-1){$('table[id $= "menuBusqueda"] a[href = "InvPosiblesAmigos.aspx"]').parent().removeClass();$('table[id $= "menuBusqueda"] a[href = "InvPosiblesAmigos.aspx"]').parent().addClass("MenuLinkNewSelected");$('table[id $= "menuBusqueda"] input').css({cursor:"default",opacity:"0.5"}).click(function(){return false})}if(document.location.pathname.toLowerCase().indexOf("invinvitaramigos.aspx")>-1){$('table[id $= "menuBusqueda"] a[href = "InvInvitarAmigos.aspx"]').parent().removeClass();$('table[id $= "menuBusqueda"] a[href = "InvInvitarAmigos.aspx"]').parent().addClass("MenuLinkNewSelected");$('table[id $= "menuBusqueda"] input').css({cursor:"default",opacity:"0.5"}).click(function(){return false})}$("[paso]").keydown(function(a){if(a.keyCode=="13"){var b=parseInt($(this).attr("paso"));b++;$('[paso = "'+b.toString()+'"]').focus();a.returnValue=false;a.cancel=true;a.preventDefault();return false}})});(function(a){a.fn.extend({outerHTML:function(d){if(typeof d==="string"){var c=a(this),b=c.parent();var e=function(){var f=c.find("img");if(f.length>0){f.remove()}var g;a(d).map(function(){g=a(this);c.replaceWith(g)});return g};return e()}else{return a("<div />").append(a(this).clone()).html()}}})})(jQuery);$(document).ready(function(){function a(b){this.getTarget=$(b).attr("gettarget");this.getTargetSite=$(b).attr("gettargetsite");this.getOpt=function(){var c=0;if($(b).attr("gettarget")=="tblMessage"){c=1}if($(b).attr("gettarget")=="tblLogin"){c=2}if($(b).attr("gettarget")=="tblnvalidPassword"){c=3}if($(b).attr("gettarget")=="tblOlvidePassword"){c=4}return c}}$("#btnAceptarLogin").live("click",function(){var c=$("#btnAceptarLogin").parents("td.fondo_tablas_chicas_500").find('input[id *= "txtUsuario"]').val().replace(/[,]/gi,"@HeLlomAcoMMA");var d=$("#btnAceptarLogin").parents("td.fondo_tablas_chicas_500").find('input[id *= "txtPassword"]').val().replace(/[,]/gi,"@HeLlomAcoMMA");var b=$("#btnAceptarLogin").attr("URLredirectLogin");__doCustomPostBack("btnAceptarLogin_Click",c+","+d+","+b)});$("#btnAceptarOlvidePassword").live("click",function(){var b=$("#btnAceptarOlvidePassword").parents("td.fondo_tablas_chicas_500").find('input[id *= "txtEmail"]').val().replace(/[,]/gi,"@HeLlomAcoMMA");__doCustomPostBack("btnAceptarOlvidePassword_Click",b)});$("*[close]").live("click",function(){hideModalPopup(this);return false});$("*[closepostback]").live("click",function(){hideModalPopup(this);document.location.replace($(this).attr("closepostback"))});$("#txtUsuario").live("keydown",function(b){if(b.keyCode==13){if($(this).parents("td.fondo_tablas_chicas_500").attr("id")!=undefined){$(this).parents("td.fondo_tablas_chicas_500").find("#btnAceptarLogin").click()}}});$("#txtPassword").live("keydown",function(b){if(b.keyCode==13){if($(this).parents("td.fondo_tablas_chicas_500").attr("id")!=undefined){$(this).parents("td.fondo_tablas_chicas_500").find("#btnAceptarLogin").click()}}});$("*[gettarget]").live("click",function(){var b=new a(this);var c=function(){tgt=b.getTarget;if(tgt=="tblnvalidPassword"){tgt="tblLogin"}return tgt};showModalPopup(c());$("#popupBack_"+c()+" + .popTopModal").load(b.getTargetSite+" #"+c(),{opt:b.getOpt},function(j,g,k){if(g=="error"){var h="Sorry but there was an error: ";$("#error").html(h+xhr.status+" "+xhr.statusText)}var m=parseFloat($("#popupBack_"+c()+" + .popTopModal #"+c()).width());var i=parseFloat($("#popupBack_"+c()+" + .popTopModal #"+c()).height());$("#popupBack_"+c()+" + .popTopModal").css("width",m);$("#popupBack_"+c()+" + .popTopModal").css("height",i);var d=((m+0)*100)/parseFloat($(window).width());var l=((i+0)*100)/parseFloat($(window).height());var e=(0*100)/parseFloat($(window).height());$("#popupBack_"+c()+" + .popTopModal").css("left",((100-parseFloat(d))/2).toString()+"%");$("#popupBack_"+c()+" + .popTopModal").css("top",((((100-(parseFloat(l)+parseFloat(e)))/2))+parseFloat(e)).toString()+"%");if($("#tblnvalidPassword").attr("id")!=undefined){function f(){$("#tblnvalidPassword").fadeOut("slow",function(){$("#tblnvalidPassword").fadeIn("slow",function(){f.i++;if(f.i<3){f()}})})}f.i=0;f()}})})});function __doCustomPostBack(e,c){var a=$(document).find("form");if($(a).find("#__EVENTTARGET").attr("id")==undefined){var d=document.createElement("INPUT");d.type="hidden";d.id="__EVENTTARGET";d.name="__EVENTTARGET";$(a).append(d)}if($(a).find("#__EVENTARGUMENT").attr("id")==undefined){var b=document.createElement("INPUT");b.type="hidden";b.id="__EVENTARGUMENT";b.name="__EVENTARGUMENT";$(a).append(b)}$(a).find("#__EVENTTARGET").val(e);$(a).find("#__EVENTARGUMENT").val(((c.split(",")[2]=="")?c+location.href.substring((location.href.lastIndexOf("/"))+1):c));a.submit()}function showModalPopup(b){var a=document.getElementById("popupBack_"+b);if(a==undefined){$("body").append('<div class="popupContain" id="popupContain_'+b+'"><div class="popBackModal" id="popupBack_'+b+'"></div><div class="popTopModal"></div></div>');$("#popupContain_"+b).fadeIn("slow")}else{$("#popupContain_"+b).fadeIn("slow")}}function hideModalPopup(a){$(a).parents('div[id *= "popupContain_"]').fadeOut("slow");if($(a).parents('div[id *= "popupContain_"]').css("display")=="block"){$(a).parents('div[id *= "popupContain_"]').hide()}}function removePopup(a){$(a).parents('div[id *= "popupContain_"]').fadeOut("slow");$(a).parents('div[id *= "popupContain_"]').remove()}function showLoadingPopup(){var b=document.getElementById("popBackLoading");if(b==undefined){$("body").append('<div id="popBackLoading"><div id="popTopLoading"></div></div>');$("#popBackLoading").fadeIn("fast");var c}else{$("#popBackLoading").fadeIn("fast")}}function hideLoadingPopup(){var a=document.getElementById("popBackLoading");if(a!=undefined){$("#popBackLoading").fadeOut("slow")}}function loadPage(){hideLoadingPopup()};
