/*!
 * 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(aS,ac){function a4(){if(!al.isReady){try{ad.documentElement.doScroll("left")}catch(c){setTimeout(a4,1);return}al.ready()}}function S(w,c){c.src?al.ajax({url:c.src,async:false,dataType:"script"}):al.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function au(w,c,L,G,J,A){var F=w.length;if(typeof c==="object"){for(var K in c){au(w,K,c[K],G,J,L)}return w}if(L!==ac){G=!A&&G&&al.isFunction(L);for(K=0;K<F;K++){J(w[K],c,G?L.call(w[K],K,J(w[K],c)):L,A)}return w}return F?J(w[0],c):ac}function aJ(){return(new Date).getTime()}function at(){return false}function aq(){return true}function aO(w,c,A){A[0].type=w;return al.event.handle.apply(c,A)}function ak(P){var O,N=[],K=[],L=arguments,G,J,w,F,A,c;J=al.data(this,"events");if(!(P.liveFired===this||!J||!J.live||P.button&&P.type==="click")){P.liveFired=this;var Q=J.live.slice(0);for(F=0;F<Q.length;F++){J=Q[F];J.origType.replace(aD,"")===P.type?K.push(J.selector):Q.splice(F--,1)}G=al(P.target).closest(K,P.currentTarget);A=0;for(c=G.length;A<c;A++){for(F=0;F<Q.length;F++){J=Q[F];if(G[A].selector===J.selector){w=G[A].elem;K=null;if(J.preType==="mouseenter"||J.preType==="mouseleave"){K=al(P.relatedTarget).closest(J.selector)[0]}if(!K||K!==w){N.push({elem:w,handleObj:J})}}}}A=0;for(c=N.length;A<c;A++){G=N[A];P.currentTarget=G.elem;P.data=G.handleObj.data;P.handleObj=G.handleObj;if(G.handleObj.origHandler.apply(G.elem,L)===false){O=false;break}}return O}}function E(w,c){return"live."+(w&&w!=="*"?w+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function o(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function bn(w,c){var A=0;c.each(function(){if(this.nodeName===(w[A]&&w[A].nodeName)){var J=al.data(w[A++]),K=al.data(this,J);if(J=J&&J.events){delete K.handle;K.events={};for(var F in J){for(var G in J[F]){al.event.add(this,F,J[F][G],J[F][G].data)}}}}})}function a7(w,c,J){var F,G,A;c=c&&c[0]?c[0].ownerDocument||c[0]:ad;if(w.length===1&&typeof w[0]==="string"&&w[0].length<512&&c===ad&&!aT.test(w[0])&&(al.support.checkClone||!ao.test(w[0]))){G=true;if(A=al.fragments[w[0]]){if(A!==1){F=A}}}if(!F){F=c.createDocumentFragment();al.clean(w,c,F,J)}if(G){al.fragments[w[0]]=A?F:1}return{fragment:F,cacheable:G}}function aG(w,c){var A={};al.each(M.concat.apply([],M.slice(0,c)),function(){A[this]=w});return A}function r(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var al=function(w,c){return new al.fn.init(w,c)},u=aS.jQuery,e=aS.$,ad=aS.document,ax,bd=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aX=/^.[^:#\[\.,]*$/,ar=/\S/,U=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,v=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,aB=navigator.userAgent,d=false,az=[],aF,a5=Object.prototype.toString,aZ=Object.prototype.hasOwnProperty,aC=Array.prototype.push,ay=Array.prototype.slice,bc=Array.prototype.indexOf;al.fn=al.prototype={init:function(w,c){var F,A;if(!w){return this}if(w.nodeType){this.context=this[0]=w;this.length=1;return this}if(w==="body"&&!c){this.context=ad;this[0]=ad.body;this.selector="body";this.length=1;return this}if(typeof w==="string"){if((F=bd.exec(w))&&(F[1]||!c)){if(F[1]){A=c?c.ownerDocument||c:ad;if(w=v.exec(w)){if(al.isPlainObject(c)){w=[ad.createElement(w[1])];al.fn.attr.call(w,c,true)}else{w=[A.createElement(w[1])]}}else{w=a7([F[1]],[A]);w=(w.cacheable?w.fragment.cloneNode(true):w.fragment).childNodes}return al.merge(this,w)}else{if(c=ad.getElementById(F[2])){if(c.id!==F[2]){return ax.find(w)}this.length=1;this[0]=c}this.context=ad;this.selector=w;return this}}else{if(!c&&/^\w+$/.test(w)){this.selector=w;this.context=ad;w=ad.getElementsByTagName(w);return al.merge(this,w)}else{return !c||c.jquery?(c||ax).find(w):al(c).find(w)}}}else{if(al.isFunction(w)){return ax.ready(w)}}if(w.selector!==ac){this.selector=w.selector;this.context=w.context}return al.makeArray(w,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return ay.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(w,c,F){var A=al();al.isArray(w)?aC.apply(A,w):al.merge(A,w);A.prevObject=this;A.context=this.context;if(c==="find"){A.selector=this.selector+(this.selector?" ":"")+F}else{if(c){A.selector=this.selector+"."+c+"("+F+")"}}return A},each:function(w,c){return al.each(this,w,c)},ready:function(c){al.bindReady();if(al.isReady){c.call(ad,al)}else{az&&az.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(ay.apply(this,arguments),"slice",ay.call(arguments).join(","))},map:function(c){return this.pushStack(al.map(this,function(w,A){return c.call(w,A,w)}))},end:function(){return this.prevObject||al(null)},push:aC,sort:[].sort,splice:[].splice};al.fn.init.prototype=al.fn;al.extend=al.fn.extend=function(){var w=arguments[0]||{},c=1,L=arguments.length,G=false,J,A,F,K;if(typeof w==="boolean"){G=w;w=arguments[1]||{};c=2}if(typeof w!=="object"&&!al.isFunction(w)){w={}}if(L===c){w=this;--c}for(;c<L;c++){if((J=arguments[c])!=null){for(A in J){F=w[A];K=J[A];if(w!==K){if(G&&K&&(al.isPlainObject(K)||al.isArray(K))){F=F&&(al.isPlainObject(F)||al.isArray(F))?F:al.isArray(K)?[]:{};w[A]=al.extend(G,F,K)}else{if(K!==ac){w[A]=K}}}}}}return w};al.extend({noConflict:function(c){aS.$=e;if(c){aS.jQuery=u}return al},isReady:false,ready:function(){if(!al.isReady){if(!ad.body){return setTimeout(al.ready,13)}al.isReady=true;if(az){for(var w,c=0;w=az[c++];){w.call(ad,al)}az=null}al.fn.triggerHandler&&al(ad).triggerHandler("ready")}},bindReady:function(){if(!d){d=true;if(ad.readyState==="complete"){return al.ready()}if(ad.addEventListener){ad.addEventListener("DOMContentLoaded",aF,false);aS.addEventListener("load",al.ready,false)}else{if(ad.attachEvent){ad.attachEvent("onreadystatechange",aF);aS.attachEvent("onload",al.ready);var w=false;try{w=aS.frameElement==null}catch(c){}ad.documentElement.doScroll&&w&&a4()}}}},isFunction:function(c){return a5.call(c)==="[object Function]"},isArray:function(c){return a5.call(c)==="[object Array]"},isPlainObject:function(w){if(!w||a5.call(w)!=="[object Object]"||w.nodeType||w.setInterval){return false}if(w.constructor&&!aZ.call(w,"constructor")&&!aZ.call(w.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in w){}return c===ac||aZ.call(w,c)},isEmptyObject:function(w){for(var c in w){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}c=al.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 aS.JSON&&aS.JSON.parse?aS.JSON.parse(c):(new Function("return "+c))()}else{al.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(w){if(w&&ar.test(w)){var c=ad.getElementsByTagName("head")[0]||ad.documentElement,A=ad.createElement("script");A.type="text/javascript";if(al.support.scriptEval){A.appendChild(ad.createTextNode(w))}else{A.text=w}c.insertBefore(A,c.firstChild);c.removeChild(A)}},nodeName:function(w,c){return w.nodeName&&w.nodeName.toUpperCase()===c.toUpperCase()},each:function(w,c,K){var G,J=0,A=w.length,F=A===ac||al.isFunction(w);if(K){if(F){for(G in w){if(c.apply(w[G],K)===false){break}}}else{for(;J<A;){if(c.apply(w[J++],K)===false){break}}}}else{if(F){for(G in w){if(c.call(w[G],G,w[G])===false){break}}}else{for(K=w[0];J<A&&c.call(K,J,K)!==false;K=w[++J]){}}}return w},trim:function(c){return(c||"").replace(U,"")},makeArray:function(w,c){c=c||[];if(w!=null){w.length==null||typeof w==="string"||al.isFunction(w)||typeof w!=="function"&&w.setInterval?aC.call(c,w):al.merge(c,w)}return c},inArray:function(w,c){if(c.indexOf){return c.indexOf(w)}for(var F=0,A=c.length;F<A;F++){if(c[F]===w){return F}}return -1},merge:function(w,c){var G=w.length,A=0;if(typeof c.length==="number"){for(var F=c.length;A<F;A++){w[G++]=c[A]}}else{for(;c[A]!==ac;){w[G++]=c[A++]}}w.length=G;return w},grep:function(w,c,J){for(var F=[],G=0,A=w.length;G<A;G++){!J!==!c(w[G],G)&&F.push(w[G])}return F},map:function(w,c,K){for(var G=[],J,A=0,F=w.length;A<F;A++){J=c(w[A],A,K);if(J!=null){G[G.length]=J}}return G.concat.apply([],G)},guid:1,proxy:function(w,c,A){if(arguments.length===2){if(typeof c==="string"){A=w;w=A[c];c=ac}else{if(c&&!al.isFunction(c)){A=c;c=ac}}}if(!c&&w){c=function(){return w.apply(A||this,arguments)}}if(w){c.guid=w.guid=w.guid||c.guid||al.guid++}return c},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:{}});aB=al.uaMatch(aB);if(aB.browser){al.browser[aB.browser]=true;al.browser.version=aB.version}if(al.browser.webkit){al.browser.safari=true}if(bc){al.inArray=function(w,c){return bc.call(c,w)}}ax=al(ad);if(ad.addEventListener){aF=function(){ad.removeEventListener("DOMContentLoaded",aF,false);al.ready()}}else{if(ad.attachEvent){aF=function(){if(ad.readyState==="complete"){ad.detachEvent("onreadystatechange",aF);al.ready()}}}}(function(){al.support={};var N=ad.documentElement,L=ad.createElement("script"),K=ad.createElement("div"),G="script"+aJ();K.style.display="none";K.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var J=K.getElementsByTagName("*"),A=K.getElementsByTagName("a")[0];if(!(!J||!J.length||!A)){al.support={leadingWhitespace:K.firstChild.nodeType===3,tbody:!K.getElementsByTagName("tbody").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(A.getAttribute("style")),hrefNormalized:A.getAttribute("href")==="/a",opacity:/^0.55$/.test(A.style.opacity),cssFloat:!!A.style.cssFloat,checkOn:K.getElementsByTagName("input")[0].value==="on",optSelected:ad.createElement("select").appendChild(ad.createElement("option")).selected,parentNode:K.removeChild(K.appendChild(ad.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};L.type="text/javascript";try{L.appendChild(ad.createTextNode("window."+G+"=1;"))}catch(F){}N.insertBefore(L,N.firstChild);if(aS[G]){al.support.scriptEval=true;delete aS[G]}try{delete L.test}catch(c){al.support.deleteExpando=false}N.removeChild(L);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function w(){al.support.noCloneEvent=false;K.detachEvent("onclick",w)});K.cloneNode(true).fireEvent("onclick")}K=ad.createElement("div");K.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";N=ad.createDocumentFragment();N.appendChild(K.firstChild);al.support.checkClone=N.cloneNode(true).cloneNode(true).lastChild.checked;al(function(){var O=ad.createElement("div");O.style.width=O.style.paddingLeft="1px";ad.body.appendChild(O);al.boxModel=al.support.boxModel=O.offsetWidth===2;ad.body.removeChild(O).style.display="none"});N=function(O){var Q=ad.createElement("div");O="on"+O;var P=O in Q;if(!P){Q.setAttribute(O,"return;");P=typeof Q[O]==="function"}return P};al.support.submitBubbles=N("submit");al.support.changeBubbles=N("change");N=L=K=J=A=null}})();al.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aL="jQuery"+aJ(),f=0,aW={};al.extend({cache:{},expando:aL,noData:{embed:true,object:true,applet:true},data:function(w,c,G){if(!(w.nodeName&&al.noData[w.nodeName.toLowerCase()])){w=w==aS?aW:w;var A=w[aL],F=al.cache;if(!A&&typeof c==="string"&&G===ac){return null}A||(A=++f);if(typeof c==="object"){w[aL]=A;F[A]=al.extend(true,{},c)}else{if(!F[A]){w[aL]=A;F[A]={}}}w=F[A];if(G!==ac){w[c]=G}return typeof c==="string"?w[c]:w}},removeData:function(w,c){if(!(w.nodeName&&al.noData[w.nodeName.toLowerCase()])){w=w==aS?aW:w;var G=w[aL],A=al.cache,F=A[G];if(c){if(F){delete F[c];al.isEmptyObject(F)&&al.removeData(w)}}else{if(al.support.deleteExpando){delete w[al.expando]}else{w.removeAttribute&&w.removeAttribute(al.expando)}delete A[G]}}}});al.fn.extend({data:function(w,c){if(typeof w==="undefined"&&this.length){return al.data(this[0])}else{if(typeof w==="object"){return this.each(function(){al.data(this,w)})}}var F=w.split(".");F[1]=F[1]?"."+F[1]:"";if(c===ac){var A=this.triggerHandler("getData"+F[1]+"!",[F[0]]);if(A===ac&&this.length){A=al.data(this[0],w)}return A===ac&&F[1]?this.data(F[0]):A}else{return this.trigger("setData"+F[1]+"!",[F[0],c]).each(function(){al.data(this,w,c)})}},removeData:function(c){return this.each(function(){al.removeData(this,c)})}});al.extend({queue:function(w,c,F){if(w){c=(c||"fx")+"queue";var A=al.data(w,c);if(!F){return A||[]}if(!A||al.isArray(F)){A=al.data(w,c,al.makeArray(F))}else{A.push(F)}return A}},dequeue:function(w,c){c=c||"fx";var F=al.queue(w,c),A=F.shift();if(A==="inprogress"){A=F.shift()}if(A){c==="fx"&&F.unshift("inprogress");A.call(w,function(){al.dequeue(w,c)})}}});al.fn.extend({queue:function(w,c){if(typeof w!=="string"){c=w;w="fx"}if(c===ac){return al.queue(this[0],w)}return this.each(function(){var A=al.queue(this,w,c);w==="fx"&&A[0]!=="inprogress"&&al.dequeue(this,w)})},dequeue:function(c){return this.each(function(){al.dequeue(this,c)})},delay:function(w,c){w=al.fx?al.fx.speeds[w]||w:w;c=c||"fx";return this.queue(c,function(){var A=this;setTimeout(function(){al.dequeue(A,c)},w)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var bi=/[\n\t]/g,af=/\s+/,be=/\r/g,aQ=/href|src|style/,aY=/(button|input)/i,aA=/(button|input|object|select|textarea)/i,ae=/^(a|area)$/i,a2=/radio|checkbox/;al.fn.extend({attr:function(w,c){return au(this,w,c,true,al.attr)},removeAttr:function(c){return this.each(function(){al.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(N){if(al.isFunction(N)){return this.each(function(P){var O=al(this);O.addClass(N.call(this,P,O.attr("class")))})}if(N&&typeof N==="string"){for(var L=(N||"").split(af),K=0,G=this.length;K<G;K++){var J=this[K];if(J.nodeType===1){if(J.className){for(var A=" "+J.className+" ",F=J.className,c=0,w=L.length;c<w;c++){if(A.indexOf(" "+L[c]+" ")<0){F+=" "+L[c]}}J.className=al.trim(F)}else{J.className=N}}}}return this},removeClass:function(w){if(al.isFunction(w)){return this.each(function(N){var O=al(this);O.removeClass(w.call(this,N,O.attr("class")))})}if(w&&typeof w==="string"||w===ac){for(var c=(w||"").split(af),L=0,G=this.length;L<G;L++){var J=this[L];if(J.nodeType===1&&J.className){if(w){for(var A=(" "+J.className+" ").replace(bi," "),F=0,K=c.length;F<K;F++){A=A.replace(" "+c[F]+" "," ")}J.className=al.trim(A)}else{J.className=""}}}}return this},toggleClass:function(w,c){var F=typeof w,A=typeof c==="boolean";if(al.isFunction(w)){return this.each(function(J){var G=al(this);G.toggleClass(w.call(this,J,G.attr("class"),c),c)})}return this.each(function(){if(F==="string"){for(var L,J=0,K=al(this),N=c,G=w.split(af);L=G[J++];){N=A?N:!K.hasClass(L);K[N?"addClass":"removeClass"](L)}}else{if(F==="undefined"||F==="boolean"){this.className&&al.data(this,"__className__",this.className);this.className=this.className||w===false?"":al.data(this,"__className__")||""}}})},hasClass:function(w){w=" "+w+" ";for(var c=0,A=this.length;c<A;c++){if((" "+this[c].className+" ").replace(bi," ").indexOf(w)>-1){return true}}return false},val:function(w){if(w===ac){var c=this[0];if(c){if(al.nodeName(c,"option")){return(c.attributes.value||{}).specified?c.value:c.text}if(al.nodeName(c,"select")){var L=c.selectedIndex,G=[],J=c.options;c=c.type==="select-one";if(L<0){return null}var A=c?L:0;for(L=c?L+1:J.length;A<L;A++){var F=J[A];if(F.selected){w=al(F).val();if(c){return w}G.push(w)}}return G}if(a2.test(c.type)&&!al.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(be,"")}return ac}var K=al.isFunction(w);return this.each(function(N){var Q=al(this),P=w;if(this.nodeType===1){if(K){P=w.call(this,N,Q.val())}if(typeof P==="number"){P+=""}if(al.isArray(P)&&a2.test(this.type)){this.checked=al.inArray(Q.val(),P)>=0}else{if(al.nodeName(this,"select")){var O=al.makeArray(P);al("option",this).each(function(){this.selected=al.inArray(al(this).val(),O)>=0});if(!O.length){this.selectedIndex=-1}}else{this.value=P}}}})}});al.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(w,c,J,F){if(!w||w.nodeType===3||w.nodeType===8){return ac}if(F&&c in al.attrFn){return al(w)[c](J)}F=w.nodeType!==1||!al.isXMLDoc(w);var G=J!==ac;c=F&&al.props[c]||c;if(w.nodeType===1){var A=aQ.test(c);if(c in w&&F&&!A){if(G){c==="type"&&aY.test(w.nodeName)&&w.parentNode&&al.error("type property can't be changed");w[c]=J}if(al.nodeName(w,"form")&&w.getAttributeNode(c)){return w.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=w.getAttributeNode("tabIndex"))&&c.specified?c.value:aA.test(w.nodeName)||ae.test(w.nodeName)&&w.href?0:ac}return w[c]}if(!al.support.style&&F&&c==="style"){if(G){w.style.cssText=""+J}return w.style.cssText}G&&w.setAttribute(c,""+J);w=!al.support.hrefNormalized&&F&&A?w.getAttribute(c,2):w.getAttribute(c);return w===null?ac:w}return al.style(w,c,J)}});var aD=/\.(.*)$/,x=function(c){return c.replace(/[^\w\s\.\|`]/g,function(w){return"\\"+w})};al.event={add:function(Q,P,N,K){if(!(Q.nodeType===3||Q.nodeType===8)){if(Q.setInterval&&Q!==aS&&!Q.frameElement){Q=aS}var L,G;if(N.handler){L=N;N=L.handler}if(!N.guid){N.guid=al.guid++}if(G=al.data(Q)){var J=G.events=G.events||{},w=G.handle;if(!w){G.handle=w=function(){return typeof al!=="undefined"&&!al.event.triggered?al.event.handle.apply(w.elem,arguments):ac}}w.elem=Q;P=P.split(" ");for(var F,A=0,c;F=P[A++];){G=L?al.extend({},L):{handler:N,data:K};if(F.indexOf(".")>-1){c=F.split(".");F=c.shift();G.namespace=c.slice(0).sort().join(".")}else{c=[];G.namespace=""}G.type=F;G.guid=N.guid;var R=J[F],O=al.event.special[F]||{};if(!R){R=J[F]=[];if(!O.setup||O.setup.call(Q,K,c,w)===false){if(Q.addEventListener){Q.addEventListener(F,w,false)}else{Q.attachEvent&&Q.attachEvent("on"+F,w)}}}if(O.add){O.add.call(Q,G);if(!G.handler.guid){G.handler.guid=N.guid}}R.push(G);al.event.global[F]=true}Q=null}}},global:{},remove:function(T,R,P,N){if(!(T.nodeType===3||T.nodeType===8)){var O,K=0,L,F,J,G,c,V,Q=al.data(T),w=Q&&Q.events;if(Q&&w){if(R&&R.type){P=R.handler;R=R.type}if(!R||typeof R==="string"&&R.charAt(0)==="."){R=R||"";for(O in w){al.event.remove(T,O+R)}}else{for(R=R.split(" ");O=R[K++];){G=O;L=O.indexOf(".")<0;F=[];if(!L){F=O.split(".");O=F.shift();J=new RegExp("(^|\\.)"+al.map(F.slice(0).sort(),x).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(c=w[O]){if(P){G=al.event.special[O]||{};for(A=N||0;A<c.length;A++){V=c[A];if(P.guid===V.guid){if(L||J.test(V.namespace)){N==null&&c.splice(A--,1);G.remove&&G.remove.call(T,V)}if(N!=null){break}}}if(c.length===0||N!=null&&c.length===1){if(!G.teardown||G.teardown.call(T,F)===false){aK(T,O,Q.handle)}delete w[O]}}else{for(var A=0;A<c.length;A++){V=c[A];if(L||J.test(V.namespace)){al.event.remove(T,G,V.handler,A);c.splice(A--,1)}}}}}if(al.isEmptyObject(w)){if(R=Q.handle){R.elem=null}delete Q.events;delete Q.handle;al.isEmptyObject(Q)&&al.removeData(T)}}}}},trigger:function(O,N,L,J){var K=O.type||O;if(!J){O=typeof O==="object"?O[aL]?O:al.extend(al.Event(K),O):al.Event(K);if(K.indexOf("!")>=0){O.type=K=K.slice(0,-1);O.exclusive=true}if(!L){O.stopPropagation();al.event.global[K]&&al.each(al.cache,function(){this.events&&this.events[K]&&al.event.trigger(O,N,this.handle.elem)})}if(!L||L.nodeType===3||L.nodeType===8){return ac}O.result=ac;O.target=L;N=al.makeArray(N);N.unshift(O)}O.currentTarget=L;(J=al.data(L,"handle"))&&J.apply(L,N);J=L.parentNode||L.ownerDocument;try{if(!(L&&L.nodeName&&al.noData[L.nodeName.toLowerCase()])){if(L["on"+K]&&L["on"+K].apply(L,N)===false){O.result=false}}}catch(F){}if(!O.isPropagationStopped()&&J){al.event.trigger(O,N,J,true)}else{if(!O.isDefaultPrevented()){J=O.target;var G,c=al.nodeName(J,"a")&&K==="click",A=al.event.special[K]||{};if((!A._default||A._default.call(L,O)===false)&&!c&&!(J&&J.nodeName&&al.noData[J.nodeName.toLowerCase()])){try{if(J[K]){if(G=J["on"+K]){J["on"+K]=null}al.event.triggered=true;J[K]()}}catch(w){}if(G){J["on"+K]=G}al.event.triggered=false}}}},handle:function(w){var c,K,G,J;w=arguments[0]=al.event.fix(w||aS.event);w.currentTarget=this;c=w.type.indexOf(".")<0&&!w.exclusive;if(!c){K=w.type.split(".");w.type=K.shift();G=new RegExp("(^|\\.)"+K.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}J=al.data(this,"events");K=J[w.type];if(J&&K){K=K.slice(0);J=0;for(var A=K.length;J<A;J++){var F=K[J];if(c||G.test(F.namespace)){w.handler=F.handler;w.data=F.data;w.handleObj=F;F=F.handler.apply(this,arguments);if(F!==ac){w.result=F;if(F===false){w.preventDefault();w.stopPropagation()}}if(w.isImmediatePropagationStopped()){break}}}}return w.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 c=w;w=al.Event(c);for(var F=this.props.length,A;F;){A=this.props[--F];w[A]=c[A]}if(!w.target){w.target=w.srcElement||ad}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){c=ad.documentElement;F=ad.body;w.pageX=w.clientX+(c&&c.scrollLeft||F&&F.scrollLeft||0)-(c&&c.clientLeft||F&&F.clientLeft||0);w.pageY=w.clientY+(c&&c.scrollTop||F&&F.scrollTop||0)-(c&&c.clientTop||F&&F.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!==ac){w.which=w.button&1?1:w.button&2?3:w.button&4?2:0}return w},guid:100000000,proxy:al.proxy,special:{ready:{setup:al.bindReady,teardown:al.noop},live:{add:function(c){al.event.add(this,c.origType,al.extend({},c,{handler:ak}))},remove:function(w){var c=true,A=w.origType.replace(aD,"");al.each(al.data(this,"events").live||[],function(){if(A===this.origType.replace(aD,"")){return c=false}});c&&al.event.remove(this,w.origType,ak)}},beforeunload:{setup:function(w,c,A){if(this.setInterval){this.onbeforeunload=A}return false},teardown:function(w,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};var aK=ad.removeEventListener?function(w,c,A){w.removeEventListener(c,A,false)}:function(w,c,A){w.detachEvent("on"+c,A)};al.Event=function(c){if(!this.preventDefault){return new al.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=aJ();this[aL]=true};al.Event.prototype={preventDefault:function(){this.isDefaultPrevented=aq;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=aq;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=aq;this.stopPropagation()},isDefaultPrevented:at,isPropagationStopped:at,isImmediatePropagationStopped:at};var ai=function(w){var c=w.relatedTarget;try{for(;c&&c!==this;){c=c.parentNode}if(c!==this){w.type=w.data;al.event.handle.apply(this,arguments)}}catch(A){}},C=function(c){c.type=c.data;al.event.handle.apply(this,arguments)};al.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(w,c){al.event.special[w]={setup:function(A){al.event.add(this,c,A&&A.selector?C:ai,w)},teardown:function(A){al.event.remove(this,c,A&&A.selector?C:ai)}}});if(!al.support.submitBubbles){al.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){al.event.add(this,"click.specialSubmit",function(w){var c=w.target,A=c.type;if((A==="submit"||A==="image")&&al(c).closest("form").length){return aO("submit",this,arguments)}});al.event.add(this,"keypress.specialSubmit",function(w){var c=w.target,A=c.type;if((A==="text"||A==="password")&&al(c).closest("form").length&&w.keyCode===13){return aO("submit",this,arguments)}})}else{return false}},teardown:function(){al.event.remove(this,".specialSubmit")}}}if(!al.support.changeBubbles){var y=/textarea|input|select/i,h,m=function(w){var c=w.type,A=w.value;if(c==="radio"||c==="checkbox"){A=w.checked}else{if(c==="select-multiple"){A=w.selectedIndex>-1?al.map(w.options,function(F){return F.selected}).join("-"):""}else{if(w.nodeName.toLowerCase()==="select"){A=w.selectedIndex}}}return A},bh=function(w,c){var G=w.target,A,F;if(!(!y.test(G.nodeName)||G.readOnly)){A=al.data(G,"_change_data");F=m(G);if(w.type!=="focusout"||G.type!=="radio"){al.data(G,"_change_data",F)}if(!(A===ac||F===A)){if(A!=null||F){w.type="change";return al.event.trigger(w,c,G)}}}};al.event.special.change={filters:{focusout:bh,click:function(w){var c=w.target,A=c.type;if(A==="radio"||A==="checkbox"||c.nodeName.toLowerCase()==="select"){return bh.call(this,w)}},keydown:function(w){var c=w.target,A=c.type;if(w.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||w.keyCode===32&&(A==="checkbox"||A==="radio")||A==="select-multiple"){return bh.call(this,w)}},beforeactivate:function(c){c=c.target;al.data(c,"_change_data",m(c))}},setup:function(){if(this.type==="file"){return false}for(var c in h){al.event.add(this,c+".specialChange",h[c])}return y.test(this.nodeName)},teardown:function(){al.event.remove(this,".specialChange");return y.test(this.nodeName)}};h=al.event.special.change.filters}ad.addEventListener&&al.each({focus:"focusin",blur:"focusout"},function(w,c){function A(F){F=al.event.fix(F);F.type=c;return al.event.handle.call(this,F)}al.event.special[c]={setup:function(){this.addEventListener(w,A,true)},teardown:function(){this.removeEventListener(w,A,true)}}});al.each(["bind","one"],function(w,c){al.fn[c]=function(L,G,J){if(typeof L==="object"){for(var A in L){this[c](A,G,L[A],J)}return this}if(al.isFunction(G)){J=G;G=ac}var F=c==="one"?al.proxy(J,function(N){al(this).unbind(N,F);return J.apply(this,arguments)}):J;if(L==="unload"&&c!=="one"){this.one(L,G,J)}else{A=0;for(var K=this.length;A<K;A++){al.event.add(this[A],L,F,G)}}return this}});al.fn.extend({unbind:function(w,c){if(typeof w==="object"&&!w.preventDefault){for(var F in w){this.unbind(F,w[F])}}else{F=0;for(var A=this.length;F<A;F++){al.event.remove(this[F],w,c)}}return this},delegate:function(w,c,F,A){return this.live(c,F,A,w)},undelegate:function(w,c,A){return arguments.length===0?this.unbind("live"):this.die(c,null,A,w)},trigger:function(w,c){return this.each(function(){al.event.trigger(w,c,this)})},triggerHandler:function(w,c){if(this[0]){w=al.Event(w);w.preventDefault();w.stopPropagation();al.event.trigger(w,c,this[0]);return w.result}},toggle:function(w){for(var c=arguments,A=1;A<c.length;){al.proxy(w,c[A++])}return this.click(al.proxy(w,function(F){var G=(al.data(this,"lastToggle"+w.guid)||0)%A;al.data(this,"lastToggle"+w.guid,G+1);F.preventDefault();return c[G].apply(this,arguments)||false}))},hover:function(w,c){return this.mouseenter(w).mouseleave(c||w)}});var bl={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};al.each(["live","die"],function(w,c){al.fn[c]=function(P,N,O,K){var L,F=0,J,G,A=K||this.selector,Q=K?this:al(this.context);if(al.isFunction(N)){O=N;N=ac}for(P=(P||"").split(" ");(L=P[F++])!=null;){K=aD.exec(L);J="";if(K){J=K[0];L=L.replace(aD,"")}if(L==="hover"){P.push("mouseenter"+J,"mouseleave"+J)}else{G=L;if(L==="focus"||L==="blur"){P.push(bl[L]+J);L+=J}else{L=(bl[L]||L)+J}c==="live"?Q.each(function(){al.event.add(this,E(L,A),{data:N,selector:A,handler:O,origType:L,origHandler:O,preType:G})}):Q.unbind(E(L,A),O)}}return this}});al.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(w,c){al.fn[c]=function(A){return A?this.bind(c,A):this.trigger(c)};if(al.attrFn){al.attrFn[c]=true}});aS.attachEvent&&!aS.addEventListener&&aS.attachEvent("onunload",function(){for(var w in al.cache){if(al.cache[w].handle){try{al.event.remove(al.cache[w].handle.elem)}catch(c){}}}});(function(){function X(ba){for(var ab="",aa,Z=0;ba[Z];Z++){aa=ba[Z];if(aa.nodeType===3||aa.nodeType===4){ab+=aa.nodeValue}else{if(aa.nodeType!==8){ab+=X(aa.childNodes)}}}return ab}function W(bp,bb,ba,ab,Z,aa){Z=0;for(var br=ab.length;Z<br;Z++){var bs=ab[Z];if(bs){bs=bs[bp];for(var bq=false;bs;){if(bs.sizcache===ba){bq=ab[bs.sizset];break}if(bs.nodeType===1&&!aa){bs.sizcache=ba;bs.sizset=Z}if(bs.nodeName.toLowerCase()===bb){bq=bs;break}bs=bs[bp]}ab[Z]=bq}}}function V(bp,bb,ba,ab,Z,aa){Z=0;for(var br=ab.length;Z<br;Z++){var bs=ab[Z];if(bs){bs=bs[bp];for(var bq=false;bs;){if(bs.sizcache===ba){bq=ab[bs.sizset];break}if(bs.nodeType===1){if(!aa){bs.sizcache=ba;bs.sizset=Z}if(typeof bb!=="string"){if(bs===bb){bq=true;break}}else{if(O.filter(bb,[bs]).length>0){bq=bs;break}}}bs=bs[bp]}ab[Z]=bq}}}var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,T=0,P=Object.prototype.toString,Q=false,L=true;[0,0].sort(function(){L=false;return 0});var O=function(br,bq,bb,ba){bb=bb||[];var aa=bq=bq||ad;if(bq.nodeType!==1&&bq.nodeType!==9){return[]}if(!br||typeof br!=="string"){return bb}for(var ab=[],bw,bx,bt,bp,bv=true,bs=w(bq),bu=br;(R.exec(""),bw=R.exec(bu))!==null;){bu=bw[3];ab.push(bw[1]);if(bw[2]){bp=bw[3];break}}if(ab.length>1&&J.exec(br)){if(ab.length===2&&N.relative[ab[0]]){bx=Y(ab[0]+ab[1],bq)}else{for(bx=N.relative[ab[0]]?[bq]:O(ab.shift(),bq);ab.length;){br=ab.shift();if(N.relative[br]){br+=ab.shift()}bx=Y(br,bx)}}}else{if(!ba&&ab.length>1&&bq.nodeType===9&&!bs&&N.match.ID.test(ab[0])&&!N.match.ID.test(ab[ab.length-1])){bw=O.find(ab.shift(),bq,bs);bq=bw.expr?O.filter(bw.expr,bw.set)[0]:bw.set[0]}if(bq){bw=ba?{expr:ab.pop(),set:c(ba)}:O.find(ab.pop(),ab.length===1&&(ab[0]==="~"||ab[0]==="+")&&bq.parentNode?bq.parentNode:bq,bs);bx=bw.expr?O.filter(bw.expr,bw.set):bw.set;if(ab.length>0){bt=c(bx)}else{bv=false}for(;ab.length;){var Z=ab.pop();bw=Z;if(N.relative[Z]){bw=ab.pop()}else{Z=""}if(bw==null){bw=bq}N.relative[Z](bt,bw,bs)}}else{bt=[]}}bt||(bt=bx);bt||O.error(Z||br);if(P.call(bt)==="[object Array]"){if(bv){if(bq&&bq.nodeType===1){for(br=0;bt[br]!=null;br++){if(bt[br]&&(bt[br]===true||bt[br].nodeType===1&&F(bq,bt[br]))){bb.push(bx[br])}}}else{for(br=0;bt[br]!=null;br++){bt[br]&&bt[br].nodeType===1&&bb.push(bx[br])}}}else{bb.push.apply(bb,bt)}}else{c(bt,bb)}if(bp){O(bp,aa,bb,ba);O.uniqueSort(bb)}return bb};O.uniqueSort=function(aa){if(K){Q=L;aa.sort(K);if(Q){for(var Z=1;Z<aa.length;Z++){aa[Z]===aa[Z-1]&&aa.splice(Z--,1)}}}return aa};O.matches=function(aa,Z){return O(aa,null,null,Z)};O.find=function(bp,bb,ba){var ab,Z;if(!bp){return[]}for(var aa=0,br=N.order.length;aa<br;aa++){var bs=N.order[aa];if(Z=N.leftMatch[bs].exec(bp)){var bq=Z[1];Z.splice(1,1);if(bq.substr(bq.length-1)!=="\\"){Z[1]=(Z[1]||"").replace(/\\/g,"");ab=N.find[bs](Z,bb,ba);if(ab!=null){bp=bp.replace(N.match[bs],"");break}}}}ab||(ab=bb.getElementsByTagName("*"));return{set:ab,expr:bp}};O.filter=function(bs,br,bp,ba){for(var aa=bs,ab=[],by=br,bz,bv,bq=br&&br[0]&&w(br[0]);bs&&br.length;){for(var bx in N.filter){if((bz=N.leftMatch[bx].exec(bs))!=null&&bz[2]){var bt=N.filter[bx],bw,Z;Z=bz[1];bv=false;bz.splice(1,1);if(Z.substr(Z.length-1)!=="\\"){if(by===ab){ab=[]}if(N.preFilter[bx]){if(bz=N.preFilter[bx](bz,by,bp,ab,ba,bq)){if(bz===true){continue}}else{bv=bw=true}}if(bz){for(var bb=0;(Z=by[bb])!=null;bb++){if(Z){bw=bt(Z,bz,bb,by);var bu=ba^!!bw;if(bp&&bw!=null){if(bu){bv=true}else{by[bb]=false}}else{if(bu){ab.push(Z);bv=true}}}}}if(bw!==ac){bp||(by=ab);bs=bs.replace(N.match[bx],"");if(!bv){return[]}break}}}}if(bs===aa){if(bv==null){O.error(bs)}else{break}}aa=bs}return by};O.error=function(Z){throw"Syntax error, unrecognized expression: "+Z};var N=O.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(Z){return Z.getAttribute("href")}},relative:{"+":function(ba,ab){var aa=typeof ab==="string",Z=aa&&!/\W/.test(ab);aa=aa&&!Z;if(Z){ab=ab.toLowerCase()}Z=0;for(var bb=ba.length,bp;Z<bb;Z++){if(bp=ba[Z]){for(;(bp=bp.previousSibling)&&bp.nodeType!==1;){}ba[Z]=aa||bp&&bp.nodeName.toLowerCase()===ab?bp||false:bp===ab}}aa&&O.filter(ab,ba,true)},">":function(ba,ab){var aa=typeof ab==="string";if(aa&&!/\W/.test(ab)){ab=ab.toLowerCase();for(var Z=0,bb=ba.length;Z<bb;Z++){var bp=ba[Z];if(bp){aa=bp.parentNode;ba[Z]=aa.nodeName.toLowerCase()===ab?aa:false}}}else{Z=0;for(bb=ba.length;Z<bb;Z++){if(bp=ba[Z]){ba[Z]=aa?bp.parentNode:bp.parentNode===ab}}aa&&O.filter(ab,ba,true)}},"":function(ba,ab,aa){var Z=T++,bb=V;if(typeof ab==="string"&&!/\W/.test(ab)){var bp=ab=ab.toLowerCase();bb=W}bb("parentNode",ab,Z,ba,bp,aa)},"~":function(ba,ab,aa){var Z=T++,bb=V;if(typeof ab==="string"&&!/\W/.test(ab)){var bp=ab=ab.toLowerCase();bb=W}bb("previousSibling",ab,Z,ba,bp,aa)}},find:{ID:function(ab,aa,Z){if(typeof aa.getElementById!=="undefined"&&!Z){return(ab=aa.getElementById(ab[1]))?[ab]:[]}},NAME:function(ba,ab){if(typeof ab.getElementsByName!=="undefined"){var aa=[];ab=ab.getElementsByName(ba[1]);for(var Z=0,bb=ab.length;Z<bb;Z++){ab[Z].getAttribute("name")===ba[1]&&aa.push(ab[Z])}return aa.length===0?null:aa}},TAG:function(aa,Z){return Z.getElementsByTagName(aa[1])}},preFilter:{CLASS:function(bb,ba,aa,Z,bp,bq){bb=" "+bb[1].replace(/\\/g,"")+" ";if(bq){return bb}bq=0;for(var ab;(ab=ba[bq])!=null;bq++){if(ab){if(bp^(ab.className&&(" "+ab.className+" ").replace(/[\t\n]/g," ").indexOf(bb)>=0)){aa||Z.push(ab)}else{if(aa){ba[bq]=false}}}}return false},ID:function(Z){return Z[1].replace(/\\/g,"")},TAG:function(Z){return Z[1].toLowerCase()},CHILD:function(aa){if(aa[1]==="nth"){var Z=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(aa[2]==="even"&&"2n"||aa[2]==="odd"&&"2n+1"||!/\D/.test(aa[2])&&"0n+"+aa[2]||aa[2]);aa[2]=Z[1]+(Z[2]||1)-0;aa[3]=Z[3]-0}aa[0]=T++;return aa},ATTR:function(ba,ab,aa,Z,bb,bp){ab=ba[1].replace(/\\/g,"");if(!bp&&N.attrMap[ab]){ba[1]=N.attrMap[ab]}if(ba[2]==="~="){ba[4]=" "+ba[4]+" "}return ba},PSEUDO:function(ba,ab,aa,Z,bb){if(ba[1]==="not"){if((R.exec(ba[3])||"").length>1||/^\w/.test(ba[3])){ba[3]=O(ba[3],null,null,ab)}else{ba=O.filter(ba[3],ab,aa,true^bb);aa||Z.push.apply(Z,ba);return false}}else{if(N.match.POS.test(ba[0])||N.match.CHILD.test(ba[0])){return true}}return ba},POS:function(Z){Z.unshift(true);return Z}},filters:{enabled:function(Z){return Z.disabled===false&&Z.type!=="hidden"},disabled:function(Z){return Z.disabled===true},checked:function(Z){return Z.checked===true},selected:function(Z){return Z.selected===true},parent:function(Z){return !!Z.firstChild},empty:function(Z){return !Z.firstChild},has:function(ab,aa,Z){return !!O(Z[3],ab).length},header:function(Z){return/h\d/i.test(Z.nodeName)},text:function(Z){return"text"===Z.type},radio:function(Z){return"radio"===Z.type},checkbox:function(Z){return"checkbox"===Z.type},file:function(Z){return"file"===Z.type},password:function(Z){return"password"===Z.type},submit:function(Z){return"submit"===Z.type},image:function(Z){return"image"===Z.type},reset:function(Z){return"reset"===Z.type},button:function(Z){return"button"===Z.type||Z.nodeName.toLowerCase()==="button"},input:function(Z){return/input|select|textarea|button/i.test(Z.nodeName)}},setFilters:{first:function(aa,Z){return Z===0},last:function(ba,ab,aa,Z){return ab===Z.length-1},even:function(aa,Z){return Z%2===0},odd:function(aa,Z){return Z%2===1},lt:function(ab,aa,Z){return aa<Z[3]-0},gt:function(ab,aa,Z){return aa>Z[3]-0},nth:function(ab,aa,Z){return Z[3]-0===aa},eq:function(ab,aa,Z){return Z[3]-0===aa}},filter:{PSEUDO:function(ba,ab,aa,Z){var bb=ab[1],bp=N.filters[bb];if(bp){return bp(ba,aa,ab,Z)}else{if(bb==="contains"){return(ba.textContent||ba.innerText||X([ba])||"").indexOf(ab[3])>=0}else{if(bb==="not"){ab=ab[3];aa=0;for(Z=ab.length;aa<Z;aa++){if(ab[aa]===ba){return false}}return true}else{O.error("Syntax error, unrecognized expression: "+bb)}}}},CHILD:function(bb,ba){var aa=ba[1],Z=bb;switch(aa){case"only":case"first":for(;Z=Z.previousSibling;){if(Z.nodeType===1){return false}}if(aa==="first"){return true}Z=bb;case"last":for(;Z=Z.nextSibling;){if(Z.nodeType===1){return false}}return true;case"nth":aa=ba[2];var bp=ba[3];if(aa===1&&bp===0){return true}ba=ba[0];var bq=bb.parentNode;if(bq&&(bq.sizcache!==ba||!bb.nodeIndex)){var ab=0;for(Z=bq.firstChild;Z;Z=Z.nextSibling){if(Z.nodeType===1){Z.nodeIndex=++ab}}bq.sizcache=ba}bb=bb.nodeIndex-bp;return aa===0?bb===0:bb%aa===0&&bb/aa>=0}},ID:function(aa,Z){return aa.nodeType===1&&aa.getAttribute("id")===Z},TAG:function(aa,Z){return Z==="*"&&aa.nodeType===1||aa.nodeName.toLowerCase()===Z},CLASS:function(aa,Z){return(" "+(aa.className||aa.getAttribute("class"))+" ").indexOf(Z)>-1},ATTR:function(ba,ab){var aa=ab[1];ba=N.attrHandle[aa]?N.attrHandle[aa](ba):ba[aa]!=null?ba[aa]:ba.getAttribute(aa);aa=ba+"";var Z=ab[2];ab=ab[4];return ba==null?Z==="!=":Z==="="?aa===ab:Z==="*="?aa.indexOf(ab)>=0:Z==="~="?(" "+aa+" ").indexOf(ab)>=0:!ab?aa&&ba!==false:Z==="!="?aa!==ab:Z==="^="?aa.indexOf(ab)===0:Z==="$="?aa.substr(aa.length-ab.length)===ab:Z==="|="?aa===ab||aa.substr(0,ab.length+1)===ab+"-":false},POS:function(ba,ab,aa,Z){var bb=N.setFilters[ab[2]];if(bb){return bb(ba,aa,ab,Z)}}}},J=N.match.POS;for(var A in N.match){N.match[A]=new RegExp(N.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);N.leftMatch[A]=new RegExp(/(^(?:.|\r|\n)*?)/.source+N.match[A].source.replace(/\\(\d+)/g,function(aa,Z){return"\\"+(Z-0+1)}))}var c=function(aa,Z){aa=Array.prototype.slice.call(aa,0);if(Z){Z.push.apply(Z,aa);return Z}return aa};try{Array.prototype.slice.call(ad.documentElement.childNodes,0)}catch(G){c=function(ba,ab){ab=ab||[];if(P.call(ba)==="[object Array]"){Array.prototype.push.apply(ab,ba)}else{if(typeof ba.length==="number"){for(var aa=0,Z=ba.length;aa<Z;aa++){ab.push(ba[aa])}}else{for(aa=0;ba[aa];aa++){ab.push(ba[aa])}}}return ab}}var K;if(ad.documentElement.compareDocumentPosition){K=function(aa,Z){if(!aa.compareDocumentPosition||!Z.compareDocumentPosition){if(aa==Z){Q=true}return aa.compareDocumentPosition?-1:1}aa=aa.compareDocumentPosition(Z)&4?-1:aa===Z?0:1;if(aa===0){Q=true}return aa}}else{if("sourceIndex" in ad.documentElement){K=function(aa,Z){if(!aa.sourceIndex||!Z.sourceIndex){if(aa==Z){Q=true}return aa.sourceIndex?-1:1}aa=aa.sourceIndex-Z.sourceIndex;if(aa===0){Q=true}return aa}}else{if(ad.createRange){K=function(ba,ab){if(!ba.ownerDocument||!ab.ownerDocument){if(ba==ab){Q=true}return ba.ownerDocument?-1:1}var aa=ba.ownerDocument.createRange(),Z=ab.ownerDocument.createRange();aa.setStart(ba,0);aa.setEnd(ba,0);Z.setStart(ab,0);Z.setEnd(ab,0);ba=aa.compareBoundaryPoints(Range.START_TO_END,Z);if(ba===0){Q=true}return ba}}}}(function(){var ab=ad.createElement("div"),aa="script"+(new Date).getTime();ab.innerHTML="<a name='"+aa+"'/>";var Z=ad.documentElement;Z.insertBefore(ab,Z.firstChild);if(ad.getElementById(aa)){N.find.ID=function(ba,bb,bp){if(typeof bb.getElementById!=="undefined"&&!bp){return(bb=bb.getElementById(ba[1]))?bb.id===ba[1]||typeof bb.getAttributeNode!=="undefined"&&bb.getAttributeNode("id").nodeValue===ba[1]?[bb]:ac:[]}};N.filter.ID=function(ba,bb){var bp=typeof ba.getAttributeNode!=="undefined"&&ba.getAttributeNode("id");return ba.nodeType===1&&bp&&bp.nodeValue===bb}}Z.removeChild(ab);Z=ab=null})();(function(){var Z=ad.createElement("div");Z.appendChild(ad.createComment(""));if(Z.getElementsByTagName("*").length>0){N.find.TAG=function(ba,ab){ab=ab.getElementsByTagName(ba[1]);if(ba[1]==="*"){ba=[];for(var aa=0;ab[aa];aa++){ab[aa].nodeType===1&&ba.push(ab[aa])}ab=ba}return ab}}Z.innerHTML="<a href='#'></a>";if(Z.firstChild&&typeof Z.firstChild.getAttribute!=="undefined"&&Z.firstChild.getAttribute("href")!=="#"){N.attrHandle.href=function(aa){return aa.getAttribute("href",2)}}Z=null})();ad.querySelectorAll&&function(){var ab=O,aa=ad.createElement("div");aa.innerHTML="<p class='TEST'></p>";if(!(aa.querySelectorAll&&aa.querySelectorAll(".TEST").length===0)){O=function(ba,bq,br,bb){bq=bq||ad;if(!bb&&bq.nodeType===9&&!w(bq)){try{return c(bq.querySelectorAll(ba),br)}catch(bp){}}return ab(ba,bq,br,bb)};for(var Z in ab){O[Z]=ab[Z]}aa=null}}();(function(){var Z=ad.createElement("div");Z.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Z.getElementsByClassName||Z.getElementsByClassName("e").length===0)){Z.lastChild.className="e";if(Z.getElementsByClassName("e").length!==1){N.order.splice(1,0,"CLASS");N.find.CLASS=function(ba,ab,aa){if(typeof ab.getElementsByClassName!=="undefined"&&!aa){return ab.getElementsByClassName(ba[1])}};Z=null}}})();var F=ad.compareDocumentPosition?function(aa,Z){return !!(aa.compareDocumentPosition(Z)&16)}:function(aa,Z){return aa!==Z&&(aa.contains?aa.contains(Z):true)},w=function(Z){return(Z=(Z?Z.ownerDocument||Z:0).documentElement)?Z.nodeName!=="HTML":false},Y=function(ba,ab){var aa=[],Z="",bb;for(ab=ab.nodeType?[ab]:ab;bb=N.match.PSEUDO.exec(ba);){Z+=bb[0];ba=ba.replace(N.match.PSEUDO,"")}ba=N.relative[ba]?ba+"*":ba;bb=0;for(var bp=ab.length;bb<bp;bb++){O(ba,ab[bb],aa)}return O.filter(Z,aa)};al.find=O;al.expr=O.selectors;al.expr[":"]=al.expr.filters;al.unique=O.uniqueSort;al.text=X;al.isXMLDoc=w;al.contains=F})();var g=/Until$/,bf=/^(?:parents|prevUntil|prevAll)/,a0=/,/;ay=Array.prototype.slice;var aP=function(w,c,F){if(al.isFunction(c)){return al.grep(w,function(J,G){return !!c.call(J,G,J)===F})}else{if(c.nodeType){return al.grep(w,function(G){return G===c===F})}else{if(typeof c==="string"){var A=al.grep(w,function(G){return G.nodeType===1});if(aX.test(c)){return al.filter(c,A,!F)}else{c=al.filter(c,A)}}}}return al.grep(w,function(G){return al.inArray(G,c)>=0===F})};al.fn.extend({find:function(w){for(var c=this.pushStack("","find",w),K=0,G=0,J=this.length;G<J;G++){K=c.length;al.find(w,this[G],c);if(G>0){for(var A=K;A<c.length;A++){for(var F=0;F<K;F++){if(c[F]===c[A]){c.splice(A--,1);break}}}}}return c},has:function(w){var c=al(w);return this.filter(function(){for(var F=0,A=c.length;F<A;F++){if(al.contains(this,c[F])){return true}}})},not:function(c){return this.pushStack(aP(this,c,false),"not",c)},filter:function(c){return this.pushStack(aP(this,c,true),"filter",c)},is:function(c){return !!c&&al.filter(c,this).length>0},closest:function(N,L){if(al.isArray(N)){var K=[],G=this[0],J,A={},F;if(G&&N.length){J=0;for(var c=N.length;J<c;J++){F=N[J];A[F]||(A[F]=al.expr.match.POS.test(F)?al(F,L||this.context):F)}for(;G&&G.ownerDocument&&G!==L;){for(F in A){J=A[F];if(J.jquery?J.index(G)>-1:al(G).is(J)){K.push({selector:F,elem:G});delete A[F]}}G=G.parentNode}}return K}var w=al.expr.match.POS.test(N)?al(N,L||this.context):null;return this.map(function(P,O){for(;O&&O.ownerDocument&&O!==L;){if(w?w.index(O)>-1:al(O).is(N)){return O}O=O.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return al.inArray(this[0],c?al(c):this.parent().children())}return al.inArray(c.jquery?c[0]:c,this)},add:function(w,c){w=typeof w==="string"?al(w,c||this.context):al.makeArray(w);c=al.merge(this.get(),w);return this.pushStack(o(w[0])||o(c[0])?c:al.unique(c))},andSelf:function(){return this.add(this.prevObject)}});al.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return al.dir(c,"parentNode")},parentsUntil:function(w,c,A){return al.dir(w,"parentNode",A)},next:function(c){return al.nth(c,2,"nextSibling")},prev:function(c){return al.nth(c,2,"previousSibling")},nextAll:function(c){return al.dir(c,"nextSibling")},prevAll:function(c){return al.dir(c,"previousSibling")},nextUntil:function(w,c,A){return al.dir(w,"nextSibling",A)},prevUntil:function(w,c,A){return al.dir(w,"previousSibling",A)},siblings:function(c){return al.sibling(c.parentNode.firstChild,c)},children:function(c){return al.sibling(c.firstChild)},contents:function(c){return al.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:al.makeArray(c.childNodes)}},function(w,c){al.fn[w]=function(G,A){var F=al.map(this,c,G);g.test(w)||(A=G);if(A&&typeof A==="string"){F=al.filter(A,F)}F=this.length>1?al.unique(F):F;if((this.length>1||a0.test(A))&&bf.test(w)){F=F.reverse()}return this.pushStack(F,w,ay.call(arguments).join(","))}});al.extend({filter:function(w,c,A){if(A){w=":not("+w+")"}return al.find.matches(w,c)},dir:function(w,c,F){var A=[];for(w=w[c];w&&w.nodeType!==9&&(F===ac||w.nodeType!==1||!al(w).is(F));){w.nodeType===1&&A.push(w);w=w[c]}return A},nth:function(w,c,F){c=c||1;for(var A=0;w;w=w[F]){if(w.nodeType===1&&++A===c){break}}return w},sibling:function(w,c){for(var A=[];w;w=w.nextSibling){w.nodeType===1&&w!==c&&A.push(w)}return A}});var am=/ jQuery\d+="(?:\d+|null)"/g,aw=/^\s+/,H=/(<([\w:]+)[^>]*?)\/>/g,aH=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,p=/<([\w:]+)/,ag=/<tbody/i,z=/<|&#?\w+;/,aT=/<script|<object|<embed|<option|<style/i,ao=/checked\s*(?:[^=]|=\s*.checked.)/i,bo=function(w,c,A){return aH.test(A)?w:c+"></"+A+">"},aN={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,"",""]};aN.optgroup=aN.option;aN.tbody=aN.tfoot=aN.colgroup=aN.caption=aN.thead;aN.th=aN.td;if(!al.support.htmlSerialize){aN._default=[1,"div<div>","</div>"]}al.fn.extend({text:function(c){if(al.isFunction(c)){return this.each(function(w){var A=al(this);A.text(c.call(this,w,A.text()))})}if(typeof c!=="object"&&c!==ac){return this.empty().append((this[0]&&this[0].ownerDocument||ad).createTextNode(c))}return al.text(this)},wrapAll:function(w){if(al.isFunction(w)){return this.each(function(A){al(this).wrapAll(w.call(this,A))})}if(this[0]){var c=al(w,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var A=this;A.firstChild&&A.firstChild.nodeType===1;){A=A.firstChild}return A}).append(this)}return this},wrapInner:function(c){if(al.isFunction(c)){return this.each(function(w){al(this).wrapInner(c.call(this,w))})}return this.each(function(){var w=al(this),A=w.contents();A.length?A.wrapAll(c):w.append(c)})},wrap:function(c){return this.each(function(){al(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){al.nodeName(this,"body")||al(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(w){this.parentNode.insertBefore(w,this)})}else{if(arguments.length){var c=al(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(w){this.parentNode.insertBefore(w,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,al(arguments[0]).toArray());return c}}},remove:function(w,c){for(var F=0,A;(A=this[F])!=null;F++){if(!w||al.filter(w,[A]).length){if(!c&&A.nodeType===1){al.cleanData(A.getElementsByTagName("*"));al.cleanData([A])}A.parentNode&&A.parentNode.removeChild(A)}}return this},empty:function(){for(var w=0,c;(c=this[w])!=null;w++){for(c.nodeType===1&&al.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(w){var c=this.map(function(){if(!al.support.noCloneEvent&&!al.isXMLDoc(this)){var F=this.outerHTML,A=this.ownerDocument;if(!F){F=A.createElement("div");F.appendChild(this.cloneNode(true));F=F.innerHTML}return al.clean([F.replace(am,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(aw,"")],A)[0]}else{return this.cloneNode(true)}});if(w===true){bn(this,c);bn(this.find("*"),c.find("*"))}return c},html:function(w){if(w===ac){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(am,""):null}else{if(typeof w==="string"&&!aT.test(w)&&(al.support.leadingWhitespace||!aw.test(w))&&!aN[(p.exec(w)||["",""])[1].toLowerCase()]){w=w.replace(H,bo);try{for(var c=0,F=this.length;c<F;c++){if(this[c].nodeType===1){al.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=w}}}catch(A){this.empty().append(w)}}else{al.isFunction(w)?this.each(function(K){var G=al(this),J=G.html();G.empty().append(function(){return w.call(this,K,J)})}):this.empty().append(w)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(al.isFunction(c)){return this.each(function(w){var F=al(this),A=F.html();F.replaceWith(c.call(this,w,A))})}if(typeof c!=="string"){c=al(c).detach()}return this.each(function(){var w=this.nextSibling,A=this.parentNode;al(this).remove();w?al(w).before(c):al(A).append(c)})}else{return this.pushStack(al(al.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(P,O,N){function K(Q){return al.nodeName(Q,"table")?Q.getElementsByTagName("tbody")[0]||Q.appendChild(Q.ownerDocument.createElement("tbody")):Q}var L,G,J=P[0],w=[],F;if(!al.support.checkClone&&arguments.length===3&&typeof J==="string"&&ao.test(J)){return this.each(function(){al(this).domManip(P,O,N,true)})}if(al.isFunction(J)){return this.each(function(Q){var R=al(this);P[0]=J.call(this,Q,O?R.html():ac);R.domManip(P,O,N)})}if(this[0]){L=J&&J.parentNode;L=al.support.parentNode&&L&&L.nodeType===11&&L.childNodes.length===this.length?{fragment:L}:a7(P,this,w);F=L.fragment;if(G=F.childNodes.length===1?(F=F.firstChild):F.firstChild){O=O&&al.nodeName(G,"tr");for(var A=0,c=this.length;A<c;A++){N.call(O?K(this[A],G):this[A],A>0||L.cacheable||this.length>1?F.cloneNode(true):F)}}w.length&&al.each(w,S)}return this}});al.fragments={};al.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(w,c){al.fn[w]=function(K){var G=[];K=al(K);var J=this.length===1&&this[0].parentNode;if(J&&J.nodeType===11&&J.childNodes.length===1&&K.length===1){K[c](this[0]);return this}else{J=0;for(var A=K.length;J<A;J++){var F=(J>0?this.clone(true):this).get();al.fn[c].apply(al(K[J]),F);G=G.concat(F)}return this.pushStack(G,w,K.selector)}}});al.extend({clean:function(P,O,N,K){O=O||ad;if(typeof O.createElement==="undefined"){O=O.ownerDocument||O[0]&&O[0].ownerDocument||ad}for(var L=[],G=0,J;(J=P[G])!=null;G++){if(typeof J==="number"){J+=""}if(J){if(typeof J==="string"&&!z.test(J)){J=O.createTextNode(J)}else{if(typeof J==="string"){J=J.replace(H,bo);var w=(p.exec(J)||["",""])[1].toLowerCase(),F=aN[w]||aN._default,A=F[0],c=O.createElement("div");for(c.innerHTML=F[1]+J+F[2];A--;){c=c.lastChild}if(!al.support.tbody){A=ag.test(J);w=w==="table"&&!A?c.firstChild&&c.firstChild.childNodes:F[1]==="<table>"&&!A?c.childNodes:[];for(F=w.length-1;F>=0;--F){al.nodeName(w[F],"tbody")&&!w[F].childNodes.length&&w[F].parentNode.removeChild(w[F])}}!al.support.leadingWhitespace&&aw.test(J)&&c.insertBefore(O.createTextNode(aw.exec(J)[0]),c.firstChild);J=c.childNodes}}if(J.nodeType){L.push(J)}else{L=al.merge(L,J)}}}if(N){for(G=0;L[G];G++){if(K&&al.nodeName(L[G],"script")&&(!L[G].type||L[G].type.toLowerCase()==="text/javascript")){K.push(L[G].parentNode?L[G].parentNode.removeChild(L[G]):L[G])}else{L[G].nodeType===1&&L.splice.apply(L,[G+1,0].concat(al.makeArray(L[G].getElementsByTagName("script"))));N.appendChild(L[G])}}}return L},cleanData:function(N){for(var L,K,G=al.cache,J=al.event.special,A=al.support.deleteExpando,F=0,c;(c=N[F])!=null;F++){if(K=c[al.expando]){L=G[K];if(L.events){for(var w in L.events){J[w]?al.event.remove(c,w):aK(c,w,L.handle)}}if(A){delete c[al.expando]}else{c.removeAttribute&&c.removeAttribute(al.expando)}delete G[K]}}}});var k=/z-?index|font-?weight|opacity|zoom|line-?height/i,a8=/alpha\([^)]*\)/,aU=/opacity=([^)]*)/,aI=/float/i,ah=/-([a-z])/ig,bj=/([A-Z])/g,a3=/^-?\d+(?:px)?$/i,aM=/^-?\d/,aj={position:"absolute",visibility:"hidden",display:"block"},D=["Left","Right"],n=["Top","Bottom"],bm=ad.defaultView&&ad.defaultView.getComputedStyle,ap=al.support.cssFloat?"cssFloat":"styleFloat",B=function(w,c){return c.toUpperCase()};al.fn.css=function(w,c){return au(this,w,c,true,function(G,A,F){if(F===ac){return al.curCSS(G,A)}if(typeof F==="number"&&!k.test(A)){F+="px"}al.style(G,A,F)})};al.extend({style:function(w,c,G){if(!w||w.nodeType===3||w.nodeType===8){return ac}if((c==="width"||c==="height")&&parseFloat(G)<0){G=ac}var A=w.style||w,F=G!==ac;if(!al.support.opacity&&c==="opacity"){if(F){A.zoom=1;c=parseInt(G,10)+""==="NaN"?"":"alpha(opacity="+G*100+")";w=A.filter||al.curCSS(w,"filter")||"";A.filter=a8.test(w)?w.replace(a8,c):c}return A.filter&&A.filter.indexOf("opacity=")>=0?parseFloat(aU.exec(A.filter)[1])/100+"":""}if(aI.test(c)){c=ap}c=c.replace(ah,B);if(F){A[c]=G}return A[c]},css:function(w,c,K,G){if(c==="width"||c==="height"){var J,A=c==="width"?D:n;function F(){J=c==="width"?w.offsetWidth:w.offsetHeight;G!=="border"&&al.each(A,function(){G||(J-=parseFloat(al.curCSS(w,"padding"+this,true))||0);if(G==="margin"){J+=parseFloat(al.curCSS(w,"margin"+this,true))||0}else{J-=parseFloat(al.curCSS(w,"border"+this+"Width",true))||0}})}w.offsetWidth!==0?F():al.swap(w,aj,F);return Math.max(0,Math.round(J))}return al.curCSS(w,c,K)},curCSS:function(w,c,J){var F,G=w.style;if(!al.support.opacity&&c==="opacity"&&w.currentStyle){F=aU.test(w.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return F===""?"1":F}if(aI.test(c)){c=ap}if(!J&&G&&G[c]){F=G[c]}else{if(bm){if(aI.test(c)){c="float"}c=c.replace(bj,"-$1").toLowerCase();G=w.ownerDocument.defaultView;if(!G){return null}if(w=G.getComputedStyle(w,null)){F=w.getPropertyValue(c)}if(c==="opacity"&&F===""){F="1"}}else{if(w.currentStyle){J=c.replace(ah,B);F=w.currentStyle[c]||w.currentStyle[J];if(!a3.test(F)&&aM.test(F)){c=G.left;var A=w.runtimeStyle.left;w.runtimeStyle.left=w.currentStyle.left;G.left=J==="fontSize"?"1em":F||0;F=G.pixelLeft+"px";G.left=c;w.runtimeStyle.left=A}}}}return F},swap:function(w,c,G){var A={};for(var F in c){A[F]=w.style[F];w.style[F]=c[F]}G.call(w);for(F in c){w.style[F]=A[F]}}});if(al.expr&&al.expr.filters){al.expr.filters.hidden=function(w){var c=w.offsetWidth,F=w.offsetHeight,A=w.nodeName.toLowerCase()==="tr";return c===0&&F===0&&!A?true:c>0&&F>0&&!A?false:al.curCSS(w,"display")==="none"};al.expr.filters.visible=function(c){return !al.expr.filters.hidden(c)}}var a6=aJ(),aR=/<script(.|\s)*?\/script>/gi,an=/select|textarea/i,I=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aE=/=\?(&|$)/,l=/\?/,q=/(\?|&)_=.*?(&|$)/,b=/^(\w+:)?\/\/([^\/?#]+)/,a9=/%20/g,aV=al.fn.load;al.fn.extend({load:function(w,c,J){if(typeof w!=="string"){return aV.call(this,w)}else{if(!this.length){return this}}var F=w.indexOf(" ");if(F>=0){var G=w.slice(F,w.length);w=w.slice(0,F)}F="GET";if(c){if(al.isFunction(c)){J=c;c=null}else{if(typeof c==="object"){c=al.param(c,al.ajaxSettings.traditional);F="POST"}}}var A=this;al.ajax({url:w,type:F,dataType:"html",data:c,complete:function(K,L){if(L==="success"||L==="notmodified"){A.html(G?al("<div />").append(K.responseText.replace(aR,"")).find(G):K.responseText)}J&&A.each(J,[K.responseText,L,K])}});return this},serialize:function(){return al.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?al.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||I.test(this.type))}).map(function(w,c){w=al(this).val();return w==null?null:al.isArray(w)?al.map(w,function(A){return{name:c.name,value:A}}):{name:c.name,value:w}}).get()}});al.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(w,c){al.fn[c]=function(A){return this.bind(c,A)}});al.extend({get:function(w,c,F,A){if(al.isFunction(c)){A=A||F;F=c;c=null}return al.ajax({type:"GET",url:w,data:c,success:F,dataType:A})},getScript:function(w,c){return al.get(w,null,c,"script")},getJSON:function(w,c,A){return al.get(w,c,A,"json")},post:function(w,c,F,A){if(al.isFunction(c)){A=A||F;F=c;c={}}return al.ajax({type:"POST",url:w,data:c,success:F,dataType:A})},ajaxSetup:function(c){al.extend(al.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aS.XMLHttpRequest&&(aS.location.protocol!=="file:"||!aS.ActiveXObject)?function(){return new aS.XMLHttpRequest}:function(){try{return new aS.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(ab){function aa(){Y.success&&Y.success.call(Q,L,T,w);Y.global&&X("ajaxSuccess",[w,Y])}function Z(){Y.complete&&Y.complete.call(Q,w,T);Y.global&&X("ajaxComplete",[w,Y]);Y.global&&!--al.active&&al.event.trigger("ajaxStop")}function X(bb,bp){(Y.context?al(Y.context):al.event).trigger(bb,bp)}var Y=al.extend(true,{},al.ajaxSettings,ab),R,T,L,Q=ab&&ab.context||Y,N=Y.type.toUpperCase();if(Y.data&&Y.processData&&typeof Y.data!=="string"){Y.data=al.param(Y.data,Y.traditional)}if(Y.dataType==="jsonp"){if(N==="GET"){aE.test(Y.url)||(Y.url+=(l.test(Y.url)?"&":"?")+(Y.jsonp||"callback")+"=?")}else{if(!Y.data||!aE.test(Y.data)){Y.data=(Y.data?Y.data+"&":"")+(Y.jsonp||"callback")+"=?"}}Y.dataType="json"}if(Y.dataType==="json"&&(Y.data&&aE.test(Y.data)||aE.test(Y.url))){R=Y.jsonpCallback||"jsonp"+a6++;if(Y.data){Y.data=(Y.data+"").replace(aE,"="+R+"$1")}Y.url=Y.url.replace(aE,"="+R+"$1");Y.dataType="script";aS[R]=aS[R]||function(bb){L=bb;aa();Z();aS[R]=ac;try{delete aS[R]}catch(bp){}c&&c.removeChild(G)}}if(Y.dataType==="script"&&Y.cache===null){Y.cache=false}if(Y.cache===false&&N==="GET"){var J=aJ(),A=Y.url.replace(q,"$1_="+J+"$2");Y.url=A+(A===Y.url?(l.test(Y.url)?"&":"?")+"_="+J:"")}if(Y.data&&N==="GET"){Y.url+=(l.test(Y.url)?"&":"?")+Y.data}Y.global&&!al.active++&&al.event.trigger("ajaxStart");J=(J=b.exec(Y.url))&&(J[1]&&J[1]!==location.protocol||J[2]!==location.host);if(Y.dataType==="script"&&N==="GET"&&J){var c=ad.getElementsByTagName("head")[0]||ad.documentElement,G=ad.createElement("script");G.src=Y.url;if(Y.scriptCharset){G.charset=Y.scriptCharset}if(!R){var K=false;G.onload=G.onreadystatechange=function(){if(!K&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){K=true;aa();Z();G.onload=G.onreadystatechange=null;c&&G.parentNode&&c.removeChild(G)}}}c.insertBefore(G,c.firstChild);return ac}var F=false,w=Y.xhr();if(w){Y.username?w.open(N,Y.url,Y.async,Y.username,Y.password):w.open(N,Y.url,Y.async);try{if(Y.data||ab&&ab.contentType){w.setRequestHeader("Content-Type",Y.contentType)}if(Y.ifModified){al.lastModified[Y.url]&&w.setRequestHeader("If-Modified-Since",al.lastModified[Y.url]);al.etag[Y.url]&&w.setRequestHeader("If-None-Match",al.etag[Y.url])}J||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",Y.dataType&&Y.accepts[Y.dataType]?Y.accepts[Y.dataType]+", */*":Y.accepts._default)}catch(ba){}if(Y.beforeSend&&Y.beforeSend.call(Q,w,Y)===false){Y.global&&!--al.active&&al.event.trigger("ajaxStop");w.abort();return false}Y.global&&X("ajaxSend",[w,Y]);var W=w.onreadystatechange=function(bp){if(!w||w.readyState===0||bp==="abort"){F||Z();F=true;if(w){w.onreadystatechange=al.noop}}else{if(!F&&w&&(w.readyState===4||bp==="timeout")){F=true;w.onreadystatechange=al.noop;T=bp==="timeout"?"timeout":!al.httpSuccess(w)?"error":Y.ifModified&&al.httpNotModified(w,Y.url)?"notmodified":"success";var bq;if(T==="success"){try{L=al.httpData(w,Y.dataType,Y)}catch(bb){T="parsererror";bq=bb}}if(T==="success"||T==="notmodified"){R||aa()}else{al.handleError(Y,w,T,bq)}Z();bp==="timeout"&&w.abort();if(Y.async){w=null}}}};try{var V=w.abort;w.abort=function(){w&&V.call(w);W("abort")}}catch(P){}Y.async&&Y.timeout>0&&setTimeout(function(){w&&!F&&W("timeout")},Y.timeout);try{w.send(N==="POST"||N==="PUT"||N==="DELETE"?Y.data:null)}catch(O){al.handleError(Y,w,null,O);Z()}Y.async||W();return w}},handleError:function(w,c,F,A){if(w.error){w.error.call(w.context||w,c,F,A)}if(w.global){(w.context?al(w.context):al.event).trigger("ajaxError",[c,w,A])}},active:0,httpSuccess:function(w){try{return !w.status&&location.protocol==="file:"||w.status>=200&&w.status<300||w.status===304||w.status===1223||w.status===0}catch(c){}return false},httpNotModified:function(w,c){var F=w.getResponseHeader("Last-Modified"),A=w.getResponseHeader("Etag");if(F){al.lastModified[c]=F}if(A){al.etag[c]=A}return w.status===304||w.status===0},httpData:function(w,c,G){var A=w.getResponseHeader("content-type")||"",F=c==="xml"||!c&&A.indexOf("xml")>=0;w=F?w.responseXML:w.responseText;F&&w.documentElement.nodeName==="parsererror"&&al.error("parsererror");if(G&&G.dataFilter){w=G.dataFilter(w,c)}if(typeof w==="string"){if(c==="json"||!c&&A.indexOf("json")>=0){w=al.parseJSON(w)}else{if(c==="script"||!c&&A.indexOf("javascript")>=0){al.globalEval(w)}}}return w},param:function(w,c){function J(K,L){if(al.isArray(L)){al.each(L,function(N,O){c||/\[\]$/.test(K)?F(K,O):J(K+"["+(typeof O==="object"||al.isArray(O)?N:"")+"]",O)})}else{!c&&L!=null&&typeof L==="object"?al.each(L,function(N,O){J(K+"["+N+"]",O)}):F(K,L)}}function F(K,L){L=al.isFunction(L)?L():L;G[G.length]=encodeURIComponent(K)+"="+encodeURIComponent(L)}var G=[];if(c===ac){c=al.ajaxSettings.traditional}if(al.isArray(w)||w.jquery){al.each(w,function(){F(this.name,this.value)})}else{for(var A in w){J(A,w[A])}}return G.join("&").replace(a9,"+")}});var bk={},bg=/toggle|show|hide/,a1=/^([+-]=)?([\d+-.]+)(.*)$/,av,M=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];al.fn.extend({show:function(w,c){if(w||w===0){return this.animate(aG("show",3),w,c)}else{w=0;for(c=this.length;w<c;w++){var G=al.data(this[w],"olddisplay");this[w].style.display=G||"";if(al.css(this[w],"display")==="none"){G=this[w].nodeName;var A;if(bk[G]){A=bk[G]}else{var F=al("<"+G+" />").appendTo("body");A=F.css("display");if(A==="none"){A="block"}F.remove();bk[G]=A}al.data(this[w],"olddisplay",A)}}w=0;for(c=this.length;w<c;w++){this[w].style.display=al.data(this[w],"olddisplay")||""}return this}},hide:function(w,c){if(w||w===0){return this.animate(aG("hide",3),w,c)}else{w=0;for(c=this.length;w<c;w++){var A=al.data(this[w],"olddisplay");!A&&A!=="none"&&al.data(this[w],"olddisplay",al.css(this[w],"display"))}w=0;for(c=this.length;w<c;w++){this[w].style.display="none"}return this}},_toggle:al.fn.toggle,toggle:function(w,c){var A=typeof w==="boolean";if(al.isFunction(w)&&al.isFunction(c)){this._toggle.apply(this,arguments)}else{w==null||A?this.each(function(){var F=A?w:al(this).is(":hidden");al(this)[F?"show":"hide"]()}):this.animate(aG("toggle",3),w,c)}return this},fadeTo:function(w,c,A){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},w,A)},animate:function(w,c,G,A){var F=al.speed(c,G,A);if(al.isEmptyObject(w)){return this.each(F.complete)}return this[F.queue===false?"each":"queue"](function(){var K=al.extend({},F),L,N=this.nodeType===1&&al(this).is(":hidden"),J=this;for(L in w){var O=L.replace(ah,B);if(L!==O){w[O]=w[L];delete w[L];L=O}if(w[L]==="hide"&&N||w[L]==="show"&&!N){return K.complete.call(this)}if((L==="height"||L==="width")&&this.style){K.display=al.css(this,"display");K.overflow=this.style.overflow}if(al.isArray(w[L])){(K.specialEasing=K.specialEasing||{})[L]=w[L][1];w[L]=w[L][0]}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=al.extend({},w);al.each(w,function(Q,P){var V=new al.fx(J,K,Q);if(bg.test(P)){V[P==="toggle"?N?"show":"hide":P](w)}else{var T=a1.exec(P),W=V.cur(true)||0;if(T){P=parseFloat(T[2]);var R=T[3]||"px";if(R!=="px"){J.style[Q]=(P||1)+R;W=(P||1)/V.cur(true)*W;J.style[Q]=W+R}if(T[1]){P=(T[1]==="-="?-1:1)*P+W}V.custom(W,P,R)}else{V.custom(W,P,"")}}});return true})},stop:function(w,c){var A=al.timers;w&&this.queue([]);this.each(function(){for(var F=A.length-1;F>=0;F--){if(A[F].elem===this){c&&A[F](true);A.splice(F,1)}}});c||this.dequeue();return this}});al.each({slideDown:aG("show",1),slideUp:aG("hide",1),slideToggle:aG("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(w,c){al.fn[w]=function(F,A){return this.animate(c,F,A)}});al.extend({speed:function(w,c,F){var A=w&&typeof w==="object"?w:{complete:F||!F&&c||al.isFunction(w)&&w,duration:w,easing:F&&c||c&&!al.isFunction(c)&&c};A.duration=al.fx.off?0:typeof A.duration==="number"?A.duration:al.fx.speeds[A.duration]||al.fx.speeds._default;A.old=A.complete;A.complete=function(){A.queue!==false&&al(this).dequeue();al.isFunction(A.old)&&A.old.call(this)};return A},easing:{linear:function(w,c,F,A){return F+A*w},swing:function(w,c,F,A){return(-Math.cos(w*Math.PI)/2+0.5)*A+F}},timers:[],fx:function(w,c,A){this.options=c;this.elem=w;this.prop=A;if(!c.orig){c.orig={}}}});al.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(al.fx.step[this.prop]||al.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(al.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(al.curCSS(this.elem,this.prop))||0},custom:function(w,c,G){function A(J){return F.step(J)}this.startTime=aJ();this.start=w;this.end=c;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var F=this;A.elem=this.elem;if(A()&&al.timers.push(A)&&!av){av=setInterval(al.fx.tick,13)}},show:function(){this.options.orig[this.prop]=al.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());al(this.elem).show()},hide:function(){this.options.orig[this.prop]=al.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(w){var c=aJ(),G=true;if(w||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var A in this.options.curAnim){if(this.options.curAnim[A]!==true){G=false}}if(G){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;w=al.data(this.elem,"olddisplay");this.elem.style.display=w?w:this.options.display;if(al.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&al(this.elem).hide();if(this.options.hide||this.options.show){for(var F in this.options.curAnim){al.style(this.elem,F,this.options.orig[F])}}this.options.complete.call(this.elem)}return false}else{F=c-this.startTime;this.state=F/this.options.duration;w=this.options.easing||(al.easing.swing?"swing":"linear");this.pos=al.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||w](this.state,F,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};al.extend(al.fx,{tick:function(){for(var w=al.timers,c=0;c<w.length;c++){w[c]()||w.splice(c--,1)}w.length||al.fx.stop()},stop:function(){clearInterval(av);av=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){al.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(al.expr&&al.expr.filters){al.expr.filters.animated=function(c){return al.grep(al.timers,function(w){return c===w.elem}).length}}al.fn.offset="getBoundingClientRect" in ad.documentElement?function(w){var c=this[0];if(w){return this.each(function(G){al.offset.setOffset(this,w,G)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return al.offset.bodyOffset(c)}var F=c.getBoundingClientRect(),A=c.ownerDocument;c=A.body;A=A.documentElement;return{top:F.top+(self.pageYOffset||al.support.boxModel&&A.scrollTop||c.scrollTop)-(A.clientTop||c.clientTop||0),left:F.left+(self.pageXOffset||al.support.boxModel&&A.scrollLeft||c.scrollLeft)-(A.clientLeft||c.clientLeft||0)}}:function(O){var N=this[0];if(O){return this.each(function(P){al.offset.setOffset(this,O,P)})}if(!N||!N.ownerDocument){return null}if(N===N.ownerDocument.body){return al.offset.bodyOffset(N)}al.offset.initialize();var L=N.offsetParent,J=N,K=N.ownerDocument,F,G=K.documentElement,c=K.body;J=(K=K.defaultView)?K.getComputedStyle(N,null):N.currentStyle;for(var A=N.offsetTop,w=N.offsetLeft;(N=N.parentNode)&&N!==c&&N!==G;){if(al.offset.supportsFixedPosition&&J.position==="fixed"){break}F=K?K.getComputedStyle(N,null):N.currentStyle;A-=N.scrollTop;w-=N.scrollLeft;if(N===L){A+=N.offsetTop;w+=N.offsetLeft;if(al.offset.doesNotAddBorder&&!(al.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(N.nodeName))){A+=parseFloat(F.borderTopWidth)||0;w+=parseFloat(F.borderLeftWidth)||0}J=L;L=N.offsetParent}if(al.offset.subtractsBorderForOverflowNotVisible&&F.overflow!=="visible"){A+=parseFloat(F.borderTopWidth)||0;w+=parseFloat(F.borderLeftWidth)||0}J=F}if(J.position==="relative"||J.position==="static"){A+=c.offsetTop;w+=c.offsetLeft}if(al.offset.supportsFixedPosition&&J.position==="fixed"){A+=Math.max(G.scrollTop,c.scrollTop);w+=Math.max(G.scrollLeft,c.scrollLeft)}return{top:A,left:w}};al.offset={initialize:function(){var w=ad.body,c=ad.createElement("div"),J,F,G,A=parseFloat(al.curCSS(w,"marginTop",true))||0;al.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.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>";w.insertBefore(c,w.firstChild);J=c.firstChild;F=J.firstChild;G=J.nextSibling.firstChild.firstChild;this.doesNotAddBorder=F.offsetTop!==5;this.doesAddBorderForTableAndCells=G.offsetTop===5;F.style.position="fixed";F.style.top="20px";this.supportsFixedPosition=F.offsetTop===20||F.offsetTop===15;F.style.position=F.style.top="";J.style.overflow="hidden";J.style.position="relative";this.subtractsBorderForOverflowNotVisible=F.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=w.offsetTop!==A;w.removeChild(c);al.offset.initialize=al.noop},bodyOffset:function(w){var c=w.offsetTop,A=w.offsetLeft;al.offset.initialize();if(al.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(al.curCSS(w,"marginTop",true))||0;A+=parseFloat(al.curCSS(w,"marginLeft",true))||0}return{top:c,left:A}},setOffset:function(w,c,K){if(/static/.test(al.curCSS(w,"position"))){w.style.position="relative"}var G=al(w),J=G.offset(),A=parseInt(al.curCSS(w,"top",true),10)||0,F=parseInt(al.curCSS(w,"left",true),10)||0;if(al.isFunction(c)){c=c.call(w,K,J)}K={top:c.top-J.top+A,left:c.left-J.left+F};"using" in c?c.using.call(w,K):G.css(K)}};al.fn.extend({position:function(){if(!this[0]){return null}var w=this[0],c=this.offsetParent(),F=this.offset(),A=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();F.top-=parseFloat(al.curCSS(w,"marginTop",true))||0;F.left-=parseFloat(al.curCSS(w,"marginLeft",true))||0;A.top+=parseFloat(al.curCSS(c[0],"borderTopWidth",true))||0;A.left+=parseFloat(al.curCSS(c[0],"borderLeftWidth",true))||0;return{top:F.top-A.top,left:F.left-A.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||ad.body;c&&!/^body|html$/i.test(c.nodeName)&&al.css(c,"position")==="static";){c=c.offsetParent}return c})}});al.each(["Left","Top"],function(w,c){var A="scroll"+c;al.fn[A]=function(G){var J=this[0],F;if(!J){return null}if(G!==ac){return this.each(function(){if(F=r(this)){F.scrollTo(!w?G:al(F).scrollLeft(),w?G:al(F).scrollTop())}else{this[A]=G}})}else{return(F=r(J))?"pageXOffset" in F?F[w?"pageYOffset":"pageXOffset"]:al.support.boxModel&&F.document.documentElement[A]||F.document.body[A]:J[A]}}});al.each(["Height","Width"],function(w,c){var A=c.toLowerCase();al.fn["inner"+c]=function(){return this[0]?al.css(this[0],A,false,"padding"):null};al.fn["outer"+c]=function(F){return this[0]?al.css(this[0],A,false,F?"margin":"border"):null};al.fn[A]=function(F){var G=this[0];if(!G){return F==null?null:this}if(al.isFunction(F)){return this.each(function(J){var K=al(this);K[A](F.call(this,J,K[A]()))})}return"scrollTo" in G&&G.document?G.document.compatMode==="CSS1Compat"&&G.document.documentElement["client"+c]||G.document.body["client"+c]:G.nodeType===9?Math.max(G.documentElement["client"+c],G.body["scroll"+c],G.documentElement["scroll"+c],G.body["offset"+c],G.documentElement["offset"+c]):F===ac?al.css(G,A):this.css(A,typeof F==="string"?F:F+"px")}});aS.jQuery=aS.$=al})(window);function zapOneReview(e,f,c,b,d){setFormField("del_rev","rem_rt",b);setFormField("del_rev","rem_rid",d);setFormField("del_rev","call",e);setFormField("del_rev","pt",f);setFormField("del_rev","pid",c);submitForm("del_rev")}function zapOneProduct(e,f,c,b,d){setFormField("del_product","rem_pt",f);setFormField("del_product","rem_pid",c);setFormField("del_product","call",e);setFormField("del_product","pt",f);setFormField("del_product","pid",c);submitForm("del_product")}function helpPage(){opener.location="/memberhelp.html";window.close()}function setDivVis(b,c){var e=document.getElementById(b);if(e){var d=e.style;if(d){d.display=c}}}function showDiv(b){setDivVis(b,"block")}function hideDiv(b){setDivVis(b,"none")}function submitForm(c){if(document.getElementById(c)){var b=document.getElementById(c).submit()}else{alert("Form "+c+" doesn't seem to exist ")}}var map;var ord=Math.random()*10000000000000000;function MM_findObj(g,f){var e,c,b;if(!f){f=document}if((e=g.indexOf("?"))>0&&parent.frames.length){f=parent.frames[g.substring(e+1)].document;g=g.substring(0,e)}if(!(b=f[g])&&f.all){b=f.all[g]}for(c=0;!b&&c<f.forms.length;c++){b=f.forms[c][g]}for(c=0;!b&&f.layers&&c<f.layers.length;c++){b=MM_findObj(g,f.layers[c].document)}if(!b&&f.getElementById){b=f.getElementById(g)}return b}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function voting(){var d="width=600,height=400,location=no,resizable=yes";var c="/voting_explained.html";var b=new Date().getTime();window.open(c,b,d)}function pgSearch(b){var c=b.replace(/s/g,"+");var d='<a class="rev_link" href="http://mumsnet.pgpartner.co.uk/search.php?topcat_search=1&form_keyword='+c+'&Search=">Compare prices</a>';document.write(d)}function classChange(c,b){b.className=c}function setField(c,d){if(document.getElementById(c)){var b=document.getElementById(c);b.value=d}else{alert("Input "+c+" doesn't seem to exist ")}}function setFormField(e,d,f){if(e){var b=document.getElementById(e);for(i=0;i<b.length;i++){var c=b[i];if(c.name==d){c.value=f}}}else{alert("Input "+d+" doesn't seem to exist in ")}}function castVote(f,b,c,e){var d=document.getElementById("vote_form");setFormField("vote_form","pt",f);setFormField("vote_form","pid",b);setFormField("vote_form","rid",c);setFormField("vote_form","vote_change",e);submitForm("vote_form")}function loadNewMarkers(){setElementContent("rlist_div",'<img src="/gifn/loading_list.gif"  border="0" hspace="0" vspace="0">');var c="/Local?call=MarkerLoader&lat="+map.getCenter().lat()+"&zoom="+map.getZoom()+"&lng="+map.getCenter().lng()+"&o="+new Date().getTime();var b=GXmlHttp.create();b.open("GET",c,true);b.onreadystatechange=function(){if(b.readyState==4){if(b.status==200){var d=b.responseXML;useMarkerXml(d)}}};b.send(null)}function microList(){var d="width=500,height=500,location=no,resizable=yes";var c=new Date().getTime();var b="Local?call=SiteChooserPage";window.open(b,c,d)}function openNickPop(){var e=document.joinproblem.nickname.value;var d="/JoinMumsnet.html?checknick=1";if(e&&e!=""){d=d+"&entered="+e}var c="width=400,height=350,location=no,resizable=yes";var b=new Date().getTime();window.open(d,b,c)}var docloc=String(document.location);url=docloc.split("/");var last=url.length-1;if(url[url.length-1].substr(0,12)=="AllOnOnePage"){last=url.length-2}url[last]=url[last].replace(/\?.*=/,"/");url[last]=url[last].replace(/\&.*=/,"/");url[last]=url[last].replace(/com.mumsnet./,"");url[last]=url[last].replace(/#.*/,"");var otp="";var channel="";var a="";var j="";if(last>4&&url[3]=="Talk"){last=4}if(last==4&&url[3]=="Talk"){var s=url[4].split("/");url[4]=s[0]}if(last>=3&&url[3]!="Talk"){if(url[3]=="info"||url[3]=="babies"||url[3]=="travel"||url[3]=="learning"||url[3]=="christmas"||url[3]=="webguide"){last=3}}for(j=3;j<=last;j++){url[j]=url[j].replace(/a[0-9]+-.*/,"");url[j]=url[j].replace(/^[0-9]+-.*/,"");url[j]=url[j].replace(/[^a-zA-Z 0-9 _ -]+/g,"/");url[j]=url[j].replace(/[0-9 _ -]+/g,"")}if(url[last]==""){last=last-1}for(j=3;j<=last;j++){otp=otp+"/"+url[j].toLowerCase()}otp=otp.replace("/agerange/","");otp=otp.replace("//","");if((otp=="/")||(otp=="")){otp="/home"}otp=otp.replace(/local\/([^\/]*)\/.+/,"local/$1");otp=otp.replace(/^\/profile.+/,"/profile");otp=otp.replace(/^\/session.+/,"/session");otp=otp.replace(/^\/babynamefinder.+/,"/babynamefinder");otp=otp.replace(/^\/babynames.+/,"/babynamefinder");otp=otp.replace(/^\/member.+/,"/mymumsnet");otp=otp.replace(/^\/joinmums.+/,"/mymumsnet");otp=otp.replace(/^\/reporttalkpost.+/,"/reporttalkpost");otp=otp.replace(/^\/searcharch.*/,"/searchtalk");otp=otp.replace(/^\/recipes.*/,"/recipes");otp=otp.replace(/^\/devcal.*/,"/devcal");otp=otp.replace(/^\/bloggers.*/,"/bloggers");otp=otp.replace(/^\/newsletter.*/,"/newsletters");otp=otp.replace(/^\/guides.*/,"/reviews");otp=otp.replace(/^\/translate.*/,"/translate");otp=otp.replace(/\/+$/,"");channel=otp;function readCookie(d){var f=d+"=";var b=document.cookie.split(";");for(var e=0;e<b.length;e++){var g=b[e];while(g.charAt(0)==" "){g=g.substring(1,g.length)}if(g.indexOf(f)==0){return g.substring(f.length,g.length)}}return null}function markAsWinner(b,c){if(confirm("Are you sure ? Do you want to change the status ?")){if(b.checked){document.frmname.flagvalue.value=1}else{document.frmname.flagvalue.value=0}document.frmname.compentid.value=c;document.frmname.action="./Page?call=com.mumsnet.competitions.CompetitionResultPage";document.frmname.method="post";document.frmname.submit()}}jQuery(document).ready(function(){jQuery('.advo_box img[align="right"], .home_advertorial img[align="right"]').hide(0)});var ord=Math.random()*10000000000000000;function showAcronyms(){var b="resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=425,height=500";window.open("/acronyms.html","acWin",b)}function searchbyoption(){if(document.Search.searchoption.options[document.Search.searchoption.options.selectedIndex].value=="talk"){action="/SearchArch"}document.Search.action=action}function pulse_inbox(){jQuery("#header_links .inbox a.unread_messages span").animate({opacity:0.5},1000,function(){jQuery("#header_links .inbox a.unread_messages span").animate({opacity:1},1000,pulse_inbox)})}jQuery(document).ready(function(){jQuery("#header_links .inbox a.unread_messages").prepend("<span></span>");jQuery("#header_links .inbox a.unread_messages span").css({"padding-left":"18px","background-image":jQuery("#header_links .inbox a.unread_messages").css("background-image"),"background-repeat":"no-repeat"});jQuery("#header_links .inbox a.unread_messages").css({"background-image":"none","padding-left":0});pulse_inbox()});function textareaLengthLimit(c,b){if(jQuery(c).val().length>b){jQuery(c).val(jQuery(c).val().substr(0,b));jQuery(c).addClass("textLimitReached")}else{jQuery(c).removeClass("textLimitReached")}jQuery(c).parent().find(".charsRemaining").html((b-jQuery(c).val().length)+" characters remaining")}function pm_composeFormInit(){var b={dataType:"text",beforeSubmit:pm_disableComposeFormSendButton,success:pm_processComposeResponse};jQuery("#pm_composeForm").ajaxForm(b)}function pm_disableComposeFormSendButton(){jQuery("#pm_sendButton").attr("disabled","disabled")}function pm_processComposeResponse(b){jQuery("#pm_sendButton").removeAttr("disabled");if(b!="success"){alert(b)}else{jQuery("#pm_composeRow").fadeOut("slow",function(){jQuery("#pm_sentMessageRow").fadeIn("slow");setTimeout("pm_cancelCompose()",2000)})}}function pm_cancelCompose(){jQuery("#pm_composeDiv").dialog("close")}function pm_composeMessage(b,c,d){jQuery("#pm_recipientsField").val(b);if(d){jQuery("#pm_recipientNicknameCell").text("(recipient has chosen not to show his/her nickname)");jQuery("#pm_nicknameHiddenField").val(1)}else{jQuery("#pm_recipientNicknameCell").text(b);jQuery("#pm_nicknameHiddenField").val(0)}jQuery("#pm_subjectField").val(c);jQuery("#pm_composeRow").show();jQuery("#pm_sentMessageRow").hide();jQuery("#pm_composeDiv").dialog("open");if(c==null||c.length<=0){jQuery("#pm_subjectField").focus()}else{jQuery("#pm_messageField").val("").focus()}return false}function taf_composeFormInit(){var b={dataType:"text",beforeSubmit:taf_disableComposeFormSendButton,success:taf_processComposeResponse};jQuery("#taf_composeForm").ajaxForm(b)}function taf_disableComposeFormSendButton(){jQuery("#taf_sendButton").attr("disabled","disabled")}function taf_processComposeResponse(b){jQuery("#taf_sendButton").removeAttr("disabled");if(b!="success"){alert(b)}else{jQuery("#taf_composeRow").fadeOut("slow",function(){jQuery("#taf_sentMessageRow").fadeIn("slow");setTimeout("taf_cancelCompose()",2000)})}}function taf_cancelCompose(){jQuery("#taf_composeDiv").dialog("close")}function taf_composeMessageAuto(){taf_composeMessage(document.title,window.location.href,document.title+"...sent to you from Mumsnet","page on Mumsnet")}function taf_composeMessage(e,b,c,d){jQuery("#taf_title").val(e);jQuery("#taf_url").val(b);jQuery("#taf_subjectField").val(c);jQuery("#taf_composeRow").show();jQuery("#taf_sentMessageRow").hide();jQuery("#taf_composeDiv").dialog("open");jQuery("#taf_introSuffix").val(d);if(jQuery("#taf_fromNickname").size()>0){taf_nickname=jQuery("#taf_fromNickname").val();taf_msg=taf_nickname+" thought you'd be interested in this "+d+"\n\n"+e+"\n"+b+"\n\nRegards\n\nMNHQ";jQuery("#taf_messageField").val(taf_msg);jQuery("#taf_toEmailField").focus()}return false}var OA_zones={header_leaderboard:7,header_button_left:9,header_button_right:9,header_banner:14,right_col_mpu:10,footer_banner:13,advertorial:15,test:17,mobile_text_interstitial:21,talk_advertorial:22,homepage_advertorial_1:23,homepage_advertorial_2:24,homepage_advertorial_3:25,homepage_advertorial_4:26,homepage_sidebar_advertorial_1:39,homepage_sidebar_advertorial_2:29,homepage_sidebar_advertorial_3:31};if(channel=="/home"){var block="";var blockcampaign=""}else{var block="";var blockcampaign=""}if(showAds==1){document.write("<script type='text/javascript' src='http://ads1.mumsnet.com/openx/www/delivery/spcjs.php?id=1&amp;channel="+escape(channel)+"&amp;wl10374camp="+escape(wl10374camp)+"&amp;wl10375camp="+escape(wl10375camp)+"'><\/script>")}var today=new Date();var expiry=new Date(today.getTime()+365*24*60*60*1000);function getCookieVal(c){var b=document.cookie.indexOf(";",c);if(b==-1){b=document.cookie.length}return unescape(document.cookie.substring(c,b))}function GetCookie(e){var c=e+"=";var g=c.length;var b=document.cookie.length;var f=0;while(f<b){var d=f+g;if(document.cookie.substring(f,d)==c){return getCookieVal(d)}f=document.cookie.indexOf(" ",f)+1;if(f==0){break}}return null}function DeleteCookie(b,d,c){if(GetCookie(b)){document.cookie=b+"="+((d)?"; path="+d:"")+((c)?"; domain="+c:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function SetCookie(c,e,b,g,d,f){document.cookie=c+"="+escape(e);+((b==null)?"":";expires="+b.toGMTString())+((g==null)?"":";path="+g)+((d==null)?"":";domain="+d)+((f==null)?"":";secure="+f)}
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
 * Licensed under the MIT License (LICENSE.txt).
 *
 * Version 2.1.2
 */
(function(b){b.fn.bgiframe=(b.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(e){e=b.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},e);var d='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+e.src+'"style="display:block;position:absolute;z-index:-1;'+(e.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(e.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":c(e.top))+";left:"+(e.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":c(e.left))+";width:"+(e.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":c(e.width))+";height:"+(e.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":c(e.height))+';"/>';return this.each(function(){if(b(this).children("iframe.bgiframe").length===0){this.insertBefore(document.createElement(d),this.firstChild)}})}:function(){return this});b.fn.bgIframe=b.fn.bgiframe;function c(d){return d&&d.constructor===Number?d+"px":d}})(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(e,d){function b(c){return !e(c).parents().andSelf().filter(function(){return e.curCSS(this,"visibility")==="hidden"||e.expr.filters.hidden(this)}).length}e.ui=e.ui||{};if(!e.ui.version){e.extend(e.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}});e.fn.extend({_focus:e.fn.focus,focus:function(f,c){return typeof f==="number"?this.each(function(){var g=this;setTimeout(function(){e(g).focus();c&&c.call(g)},f)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=e.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.curCSS(this,"position",1))&&/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?e(document):c},zIndex:function(f){if(f!==d){return this.css("zIndex",f)}if(this.length){f=e(this[0]);for(var c;f.length&&f[0]!==document;){c=f.css("position");if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(f.css("zIndex"));if(!isNaN(c)&&c!=0){return c}}f=f.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")}});e.each(["Width","Height"],function(f,c){function m(p,o,n,h){e.each(l,function(){o-=parseFloat(e.curCSS(p,"padding"+this,true))||0;if(n){o-=parseFloat(e.curCSS(p,"border"+this+"Width",true))||0}if(h){o-=parseFloat(e.curCSS(p,"margin"+this,true))||0}});return o}var l=c==="Width"?["Left","Right"]:["Top","Bottom"],k=c.toLowerCase(),g={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+c]=function(h){if(h===d){return g["inner"+c].call(this)}return this.each(function(){e.style(this,k,m(this,h)+"px")})};e.fn["outer"+c]=function(n,h){if(typeof n!=="number"){return g["outer"+c].call(this,n)}return this.each(function(){e.style(this,k,m(this,n,true,h)+"px")})}});e.extend(e.expr[":"],{data:function(f,c,g){return !!e.data(f,g[3])},focusable:function(f){var c=f.nodeName.toLowerCase(),g=e.attr(f,"tabindex");if("area"===c){c=f.parentNode;g=c.name;if(!f.href||!g||c.nodeName.toLowerCase()!=="map"){return false}f=e("img[usemap=#"+g+"]")[0];return !!f&&b(f)}return(/input|select|textarea|button|object/.test(c)?!f.disabled:"a"==c?f.href||!isNaN(g):!isNaN(g))&&b(f)},tabbable:function(f){var c=e.attr(f,"tabindex");return(isNaN(c)||c>=0)&&e(f).is(":focusable")}});e(function(){var f=document.createElement("div"),c=document.body;e.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=c.appendChild(f).offsetHeight===100;c.removeChild(f).style.display="none"});e.extend(e.ui,{plugin:{add:function(f,c,h){f=e.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g<c.length;g++){f.options[c[g][0]]&&c[g][1].apply(f.element,h)}}}},contains:function(f,c){return document.compareDocumentPosition?f.compareDocumentPosition(c)&16:f!==c&&f.contains(c)},hasScroll:function(f,c){if(e(f).css("overflow")==="hidden"){return false}c=c&&c==="left"?"scrollLeft":"scrollTop";var g=false;if(f[c]>0){return true}f[c]=1;g=f[c]>0;f[c]=0;return g},isOverAxis:function(f,c,g){return f>c&&f<c+g},isOver:function(f,c,m,l,k,g){return e.ui.isOverAxis(f,m,k)&&e.ui.isOverAxis(c,l,g)}})}})(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,f){if(c.cleanData){var e=c.cleanData;c.cleanData=function(b){for(var h=0,g;(g=b[h])!=null;h++){c(g).triggerHandler("remove")}e(b)}}else{var d=c.fn.remove;c.fn.remove=function(b,g){return this.each(function(){if(!g){if(!b||c.filter(b,[this]).length){c("*",this).add([this]).each(function(){c(this).triggerHandler("remove")})}}return d.call(c(this),b,g)})}}c.widget=function(b,l,k){var h=b.split(".")[0],g;b=b.split(".")[1];g=h+"-"+b;if(!k){k=l;l=c.Widget}c.expr[":"][g]=function(m){return !!c.data(m,b)};c[h]=c[h]||{};c[h][b]=function(m,n){arguments.length&&this._createWidget(m,n)};l=new l;l.options=c.extend(true,{},l.options);c[h][b].prototype=c.extend(true,l,{namespace:h,widgetName:b,widgetEventPrefix:c[h][b].prototype.widgetEventPrefix||b,widgetBaseClass:g},k);c.widget.bridge(b,c[h][b])};c.widget.bridge=function(b,g){c.fn[b]=function(n){var m=typeof n==="string",l=Array.prototype.slice.call(arguments,1),k=this;n=!m&&l.length?c.extend.apply(null,[true,n].concat(l)):n;if(m&&n.substring(0,1)==="_"){return k}m?this.each(function(){var o=c.data(this,b);if(!o){throw"cannot call methods on "+b+" prior to initialization; attempted to call method '"+n+"'"}if(!c.isFunction(o[n])){throw"no such method '"+n+"' for "+b+" widget instance"}var h=o[n].apply(o,l);if(h!==o&&h!==f){k=h;return false}}):this.each(function(){var h=c.data(this,b);h?h.option(n||{})._init():c.data(this,b,new g(n,this))});return k}};c.Widget=function(b,g){arguments.length&&this._createWidget(b,g)};c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,h){c.data(h,this.widgetName,this);this.element=c(h);this.options=c.extend(true,{},this.options,c.metadata&&c.metadata.get(h)[this.widgetName],b);var g=this;this.element.bind("remove."+this.widgetName,function(){g.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(b,k){var h=b,g=this;if(arguments.length===0){return c.extend({},g.options)}if(typeof b==="string"){if(k===f){return this.options[b]}h={};h[b]=k}c.each(h,function(m,l){g._setOption(m,l)});return g},_setOption:function(b,g){this.options[b]=g;if(b==="disabled"){this.widget()[g?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",g)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,l,k){var h=this.options[b];l=c.Event(l);l.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();k=k||{};if(l.originalEvent){b=c.event.props.length;for(var g;b;){g=c.event.props[--b];l[g]=l.originalEvent[g]}}this.element.trigger(l,k);return !(c.isFunction(h)&&h.call(this.element[0],l,k)===false||l.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(b){b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(d){return c._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(c._preventClickEvent){c._preventClickEvent=false;d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(d){d.originalEvent=d.originalEvent||{};if(!d.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(d);this._mouseDownEvent=d;var c=this,h=d.which==1,g=typeof this.options.cancel=="string"?b(d.target).parents().add(d.target).filter(this.options.cancel).length:false;if(!h||g||!this._mouseCapture(d)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=this._mouseStart(d)!==false;if(!this._mouseStarted){d.preventDefault();return true}}this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.browser.safari||d.preventDefault();return d.originalEvent.mouseHandled=true}},_mouseMove:function(c){if(b.browser.msie&&!c.button){return this._mouseUp(c)}if(this._mouseStarted){this._mouseDrag(c);return c.preventDefault()}if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==false)?this._mouseDrag(c):this._mouseUp(c)}return !this._mouseStarted},_mouseUp:function(c){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=c.target==this._mouseDownEvent.target;this._mouseStop(c)}return false},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(g){g.ui=g.ui||{};var f=/left|center|right/,e=/top|center|bottom/,d=g.fn.position,b=g.fn.offset;g.fn.position=function(c){if(!c||!c.of){return d.apply(this,arguments)}c=g.extend({},c);var l=g(c.of),r=l[0],p=(c.collision||"flip").split(" "),q=c.offset?c.offset.split(" "):[0,0],o,m,n;if(r.nodeType===9){o=l.width();m=l.height();n={top:0,left:0}}else{if(r.scrollTo&&r.document){o=l.width();m=l.height();n={top:l.scrollTop(),left:l.scrollLeft()}}else{if(r.preventDefault){c.at="left top";o=m=0;n={top:c.of.pageY,left:c.of.pageX}}else{o=l.outerWidth();m=l.outerHeight();n=l.offset()}}}g.each(["my","at"],function(){var h=(c[this]||"").split(" ");if(h.length===1){h=f.test(h[0])?h.concat(["center"]):e.test(h[0])?["center"].concat(h):["center","center"]}h[0]=f.test(h[0])?h[0]:"center";h[1]=e.test(h[1])?h[1]:"center";c[this]=h});if(p.length===1){p[1]=p[0]}q[0]=parseInt(q[0],10)||0;if(q.length===1){q[1]=q[0]}q[1]=parseInt(q[1],10)||0;if(c.at[0]==="right"){n.left+=o}else{if(c.at[0]==="center"){n.left+=o/2}}if(c.at[1]==="bottom"){n.top+=m}else{if(c.at[1]==="center"){n.top+=m/2}}n.left+=q[0];n.top+=q[1];return this.each(function(){var A=g(this),y=A.outerWidth(),x=A.outerHeight(),u=parseInt(g.curCSS(this,"marginLeft",true))||0,k=parseInt(g.curCSS(this,"marginTop",true))||0,C=y+u+parseInt(g.curCSS(this,"marginRight",true))||0,B=x+k+parseInt(g.curCSS(this,"marginBottom",true))||0,z=g.extend({},n),h;if(c.my[0]==="right"){z.left-=y}else{if(c.my[0]==="center"){z.left-=y/2}}if(c.my[1]==="bottom"){z.top-=x}else{if(c.my[1]==="center"){z.top-=x/2}}z.left=parseInt(z.left);z.top=parseInt(z.top);h={left:z.left-u,top:z.top-k};g.each(["left","top"],function(w,v){g.ui.position[p[w]]&&g.ui.position[p[w]][v](z,{targetWidth:o,targetHeight:m,elemWidth:y,elemHeight:x,collisionPosition:h,collisionWidth:C,collisionHeight:B,offset:q,my:c.my,at:c.at})});g.fn.bgiframe&&A.bgiframe();A.offset(g.extend(z,{using:c.using}))})};g.ui.position={fit:{left:function(c,h){var k=g(window);k=h.collisionPosition.left+h.collisionWidth-k.width()-k.scrollLeft();c.left=k>0?c.left-k:Math.max(c.left-h.collisionPosition.left,c.left)},top:function(c,h){var k=g(window);k=h.collisionPosition.top+h.collisionHeight-k.height()-k.scrollTop();c.top=k>0?c.top-k:Math.max(c.top-h.collisionPosition.top,c.top)}},flip:{left:function(c,k){if(k.at[0]!=="center"){var o=g(window);o=k.collisionPosition.left+k.collisionWidth-o.width()-o.scrollLeft();var m=k.my[0]==="left"?-k.elemWidth:k.my[0]==="right"?k.elemWidth:0,n=k.at[0]==="left"?k.targetWidth:-k.targetWidth,l=-2*k.offset[0];c.left+=k.collisionPosition.left<0?m+n+l:o>0?m+n+l:0}},top:function(c,k){if(k.at[1]!=="center"){var o=g(window);o=k.collisionPosition.top+k.collisionHeight-o.height()-o.scrollTop();var m=k.my[1]==="top"?-k.elemHeight:k.my[1]==="bottom"?k.elemHeight:0,n=k.at[1]==="top"?k.targetHeight:-k.targetHeight,l=-2*k.offset[1];c.top+=k.collisionPosition.top<0?m+n+l:o>0?m+n+l:0}}}};if(!g.offset.setOffset){g.offset.setOffset=function(c,k){if(/static/.test(g.curCSS(c,"position"))){c.style.position="relative"}var o=g(c),m=o.offset(),n=parseInt(g.curCSS(c,"top",true),10)||0,l=parseInt(g.curCSS(c,"left",true),10)||0;m={top:k.top-m.top+n,left:k.left-m.left+l};"using" in k?k.using.call(c,m):o.css(m)};g.fn.offset=function(c){var h=this[0];if(!h||!h.ownerDocument){return null}if(c){return this.each(function(){g.offset.setOffset(this,c)})}return b.call(this)}}})(jQuery);(function(b){b.widget("ui.draggable",b.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||b(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(b.ui.ddmanager){b.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};b.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();b.ui.ddmanager&&!c.dropBehaviour&&b.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"}b.ui.ddmanager&&b.ui.ddmanager.drag(this,d);return false},_mouseStop:function(e){var d=false;if(b.ui.ddmanager&&!this.options.dropBehaviour){d=b.ui.ddmanager.drop(this,e)}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||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)){var f=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",e)!==false&&f._clear()})}else{this._trigger("stop",e)!==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||!b(this.options.handle,this.element).length?true:false;b(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=b.isFunction(c.helper)?b(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(c){if(typeof c=="string"){c=c.split(" ")}if(b.isArray(c)){c={left:+c[0],top:+c[1]||0}}if("left" in c){this.offset.click.left=c.left+this.margins.left}if("right" in c){this.offset.click.left=this.helperProportions.width-c.right+this.margins.left}if("top" in c){this.offset.click.top=c.top+this.margins.top}if("bottom" in c){this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie){c={top:0,left:0}}return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(e.containment)&&e.containment.constructor!=Array){var d=b(e.containment)[0];if(d){e=b(e.containment).offset();var f=b(d).css("overflow")!="hidden";this.containment=[e.left+(parseInt(b(d).css("borderLeftWidth"),10)||0)+(parseInt(b(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(b(d).css("borderTopWidth"),10)||0)+(parseInt(b(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(b(d).css("borderLeftWidth"),10)||0)-(parseInt(b(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(b(d).css("borderTopWidth"),10)||0)-(parseInt(b(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(e,d){if(!d){d=this.position}e=e=="absolute"?1:-1;var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName);return{top:d.top+this.offset.relative.top*e+this.offset.parent.top*e-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop())*e),left:d.left+this.offset.relative.left*e+this.offset.parent.left*e-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:h.scrollLeft())*e)}},_generatePosition:function(h){var d=this.options,n=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(n[0].tagName),m=h.pageX,k=h.pageY;if(this.originalPosition){if(this.containment){if(h.pageX-this.offset.click.left<this.containment[0]){m=this.containment[0]+this.offset.click.left}if(h.pageY-this.offset.click.top<this.containment[1]){k=this.containment[1]+this.offset.click.top}if(h.pageX-this.offset.click.left>this.containment[2]){m=this.containment[2]+this.offset.click.left}if(h.pageY-this.offset.click.top>this.containment[3]){k=this.containment[3]+this.offset.click.top}}if(d.grid){k=this.originalPageY+Math.round((k-this.originalPageY)/d.grid[1])*d.grid[1];k=this.containment?!(k-this.offset.click.top<this.containment[1]||k-this.offset.click.top>this.containment[3])?k:!(k-this.offset.click.top<this.containment[1])?k-d.grid[1]:k+d.grid[1]:k;m=this.originalPageX+Math.round((m-this.originalPageX)/d.grid[0])*d.grid[0];m=this.containment?!(m-this.offset.click.left<this.containment[0]||m-this.offset.click.left>this.containment[2])?m:!(m-this.offset.click.left<this.containment[0])?m-d.grid[0]:m+d.grid[0]:m}}return{top:k-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():l?0:n.scrollTop()),left:m-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:n.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(e,d,f){f=f||this._uiHash();b.ui.plugin.call(this,e,[d,f]);if(e=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return b.Widget.prototype._trigger.call(this,e,d,f)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});b.extend(b.ui.draggable,{version:"1.8.5"});b.ui.plugin.add("draggable","connectToSortable",{start:function(g,d){var l=b(this).data("draggable"),h=l.options,k=b.extend({},d,{item:l.element});l.sortables=[];b(h.connectToSortable).each(function(){var c=b.data(this,"sortable");if(c&&!c.options.disabled){l.sortables.push({instance:c,shouldRevert:c.options.revert});c._refreshItems();c._trigger("activate",g,k)}})},stop:function(e,d){var h=b(this).data("draggable"),g=b.extend({},d,{item:h.element});b.each(h.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;h.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(e);this.instance.options.helper=this.instance.options._helper;h.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",e,g)}})},drag:function(e,d){var h=b(this).data("draggable"),g=this;b.each(h.sortables,function(){this.instance.positionAbs=h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(g).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]};e.target=this.instance.currentItem[0];this.instance._mouseCapture(e,true);this.instance._mouseStart(e,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger("toSortable",e);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}this.instance.currentItem&&this.instance._mouseDrag(e)}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",e,this.instance._uiHash(this.instance));this.instance._mouseStop(e,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();h._trigger("fromSortable",e);h.dropped=false}}})}});b.ui.plugin.add("draggable","cursor",{start:function(){var d=b("body"),c=b(this).data("draggable").options;if(d.css("cursor")){c._cursor=d.css("cursor")}d.css("cursor",c.cursor)},stop:function(){var c=b(this).data("draggable").options;c._cursor&&b("body").css("cursor",c._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var c=b(this).data("draggable").options;b(c.iframeFix===true?"iframe":c.iframeFix).each(function(){b('<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(b(this).offset()).appendTo("body")})},stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","opacity",{start:function(d,c){d=b(c.helper);c=b(this).data("draggable").options;if(d.css("opacity")){c._opacity=d.css("opacity")}d.css("opacity",c.opacity)},stop:function(d,c){d=b(this).data("draggable").options;d._opacity&&b(c.helper).css("opacity",d._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var c=b(this).data("draggable");if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){c.overflowOffset=c.scrollParent.offset()}},drag:function(e){var d=b(this).data("draggable"),h=d.options,g=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!h.axis||h.axis!="x"){if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-e.pageY<h.scrollSensitivity){d.scrollParent[0].scrollTop=g=d.scrollParent[0].scrollTop+h.scrollSpeed}else{if(e.pageY-d.overflowOffset.top<h.scrollSensitivity){d.scrollParent[0].scrollTop=g=d.scrollParent[0].scrollTop-h.scrollSpeed}}}if(!h.axis||h.axis!="y"){if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-e.pageX<h.scrollSensitivity){d.scrollParent[0].scrollLeft=g=d.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(e.pageX-d.overflowOffset.left<h.scrollSensitivity){d.scrollParent[0].scrollLeft=g=d.scrollParent[0].scrollLeft-h.scrollSpeed}}}}else{if(!h.axis||h.axis!="x"){if(e.pageY-b(document).scrollTop()<h.scrollSensitivity){g=b(document).scrollTop(b(document).scrollTop()-h.scrollSpeed)}else{if(b(window).height()-(e.pageY-b(document).scrollTop())<h.scrollSensitivity){g=b(document).scrollTop(b(document).scrollTop()+h.scrollSpeed)}}}if(!h.axis||h.axis!="y"){if(e.pageX-b(document).scrollLeft()<h.scrollSensitivity){g=b(document).scrollLeft(b(document).scrollLeft()-h.scrollSpeed)}else{if(b(window).width()-(e.pageX-b(document).scrollLeft())<h.scrollSensitivity){g=b(document).scrollLeft(b(document).scrollLeft()+h.scrollSpeed)}}}}g!==false&&b.ui.ddmanager&&!h.dropBehaviour&&b.ui.ddmanager.prepareOffsets(d,e)}});b.ui.plugin.add("draggable","snap",{start:function(){var d=b(this).data("draggable"),c=d.options;d.snapElements=[];b(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var g=b(this),e=g.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:e.top,left:e.left})})},drag:function(L,K){for(var J=b(this).data("draggable"),H=J.options,I=H.snapTolerance,G=K.offset.left,z=G+J.helperProportions.width,A=K.offset.top,y=A+J.helperProportions.height,F=J.snapElements.length-1;F>=0;F--){var E=J.snapElements[F].left,C=E+J.snapElements[F].width,D=J.snapElements[F].top,B=D+J.snapElements[F].height;if(E-I<G&&G<C+I&&D-I<A&&A<B+I||E-I<G&&G<C+I&&D-I<y&&y<B+I||E-I<z&&z<C+I&&D-I<A&&A<B+I||E-I<z&&z<C+I&&D-I<y&&y<B+I){if(H.snapMode!="inner"){var x=Math.abs(D-y)<=I,w=Math.abs(B-A)<=I,v=Math.abs(E-z)<=I,u=Math.abs(C-G)<=I;if(x){K.position.top=J._convertPositionTo("relative",{top:D-J.helperProportions.height,left:0}).top-J.margins.top}if(w){K.position.top=J._convertPositionTo("relative",{top:B,left:0}).top-J.margins.top}if(v){K.position.left=J._convertPositionTo("relative",{top:0,left:E-J.helperProportions.width}).left-J.margins.left}if(u){K.position.left=J._convertPositionTo("relative",{top:0,left:C}).left-J.margins.left}}var d=x||w||v||u;if(H.snapMode!="outer"){x=Math.abs(D-A)<=I;w=Math.abs(B-y)<=I;v=Math.abs(E-G)<=I;u=Math.abs(C-z)<=I;if(x){K.position.top=J._convertPositionTo("relative",{top:D,left:0}).top-J.margins.top}if(w){K.position.top=J._convertPositionTo("relative",{top:B-J.helperProportions.height,left:0}).top-J.margins.top}if(v){K.position.left=J._convertPositionTo("relative",{top:0,left:E}).left-J.margins.left}if(u){K.position.left=J._convertPositionTo("relative",{top:0,left:C-J.helperProportions.width}).left-J.margins.left}}if(!J.snapElements[F].snapping&&(x||w||v||u||d)){J.options.snap.snap&&J.options.snap.snap.call(J.element,L,b.extend(J._uiHash(),{snapItem:J.snapElements[F].item}))}J.snapElements[F].snapping=x||w||v||u||d}else{J.snapElements[F].snapping&&J.options.snap.release&&J.options.snap.release.call(J.element,L,b.extend(J._uiHash(),{snapItem:J.snapElements[F].item}));J.snapElements[F].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var d=b(this).data("draggable").options;d=b.makeArray(b(d.stack)).sort(function(g,e){return(parseInt(b(g).css("zIndex"),10)||0)-(parseInt(b(e).css("zIndex"),10)||0)});if(d.length){var c=parseInt(d[0].style.zIndex)||0;b(d).each(function(e){this.style.zIndex=c+e});this[0].style.zIndex=c+d.length}}});b.ui.plugin.add("draggable","zIndex",{start:function(d,c){d=b(c.helper);c=b(this).data("draggable").options;if(d.css("zIndex")){c._zIndex=d.css("zIndex")}d.css("zIndex",c.zIndex)},stop:function(d,c){d=b(this).data("draggable").options;d._zIndex&&b(c.helper).css("zIndex",d._zIndex)}})})(jQuery);(function(b){b.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=b.isFunction(c)?c:function(e){return e.is(c)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[d.scope]=b.ui.ddmanager.droppables[d.scope]||[];b.ui.ddmanager.droppables[d.scope].push(this);d.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var d=b.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=b.isFunction(c)?c:function(e){return e.is(c)}}b.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var c=b.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=b.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=b.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=b.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(f,d){var h=d||b.ui.ddmanager.current;if(!h||(h.currentItem||h.element)[0]==this.element[0]){return false}var g=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var c=b.data(this,"droppable");if(c.options.greedy&&!c.options.disabled&&c.options.scope==h.options.scope&&c.accept.call(c.element[0],h.currentItem||h.element)&&b.ui.intersect(h,b.extend(c,{offset:c.element.offset()}),c.options.tolerance)){g=true;return false}});if(g){return false}if(this.accept.call(this.element[0],h.currentItem||h.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",f,this.ui(h));return this.element}return false},ui:function(c){return{draggable:c.currentItem||c.element,helper:c.helper,position:c.position,offset:c.positionAbs}}});b.extend(b.ui.droppable,{version:"1.8.5"});b.ui.intersect=function(x,w,v){if(!w.offset){return false}var u=(x.positionAbs||x.position.absolute).left,q=u+x.helperProportions.width,r=(x.positionAbs||x.position.absolute).top,p=r+x.helperProportions.height,o=w.offset.left,m=o+w.proportions.width,n=w.offset.top,d=n+w.proportions.height;switch(v){case"fit":return o<=u&&q<=m&&n<=r&&p<=d;case"intersect":return o<u+x.helperProportions.width/2&&q-x.helperProportions.width/2<m&&n<r+x.helperProportions.height/2&&p-x.helperProportions.height/2<d;case"pointer":return b.ui.isOver((x.positionAbs||x.position.absolute).top+(x.clickOffset||x.offset.click).top,(x.positionAbs||x.position.absolute).left+(x.clickOffset||x.offset.click).left,n,o,w.proportions.height,w.proportions.width);case"touch":return(r>=n&&r<=d||p>=n&&p<=d||r<n&&p>d)&&(u>=o&&u<=m||q>=o&&q<=m||u<o&&q>m);default:return false}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(k,d){var p=b.ui.ddmanager.droppables[k.options.scope]||[],o=d?d.type:null,m=(k.currentItem||k.element).find(":data(droppable)").andSelf(),n=0;k:for(;n<p.length;n++){if(!(p[n].options.disabled||k&&!p[n].accept.call(p[n].element[0],k.currentItem||k.element))){for(var l=0;l<m.length;l++){if(m[l]==p[n].element[0]){p[n].proportions.height=0;continue k}}p[n].visible=p[n].element.css("display")!="none";if(p[n].visible){p[n].offset=p[n].element.offset();p[n].proportions={width:p[n].element[0].offsetWidth,height:p[n].element[0].offsetHeight};o=="mousedown"&&p[n]._activate.call(p[n],d)}}}},drop:function(e,d){var f=false;b.each(b.ui.ddmanager.droppables[e.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&b.ui.intersect(e,this,this.options.tolerance)){f=f||this._drop.call(this,d)}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)){this.isout=1;this.isover=0;this._deactivate.call(this,d)}}});return f},drag:function(d,c){d.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(d,c);b.each(b.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var k=b.ui.intersect(d,this,this.options.tolerance);if(k=!k&&this.isover==1?"isout":k&&this.isover==0?"isover":null){var h;if(this.options.greedy){var f=this.element.parents(":data(droppable):eq(0)");if(f.length){h=b.data(f[0],"droppable");h.greedyChild=k=="isover"?1:0}}if(h&&k=="isover"){h.isover=0;h.isout=1;h._out.call(h,c)}this[k]=1;this[k=="isout"?"isover":"isout"]=0;this[k=="isover"?"_over":"_out"].call(this,c);if(h&&k=="isout"){h.isout=0;h.isover=1;h._over.call(h,c)}}}})}}})(jQuery);(function(d){d.widget("ui.resizable",d.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 e=this,h=this.options;this.element.addClass("ui-resizable");d.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&d.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(d('<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=h.handles||(!d(".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 n=this.handles.split(",");this.handles={};for(var m=0;m<n.length;m++){var l=d.trim(n[m]),k=d('<div class="ui-resizable-handle '+("ui-resizable-"+l)+'"></div>');/sw|se|ne|nw/.test(l)&&k.css({zIndex:++h.zIndex});"se"==l&&k.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[l]=".ui-resizable-"+l;this.element.append(k)}}this._renderAxis=function(p){p=p||this.element;for(var o in this.handles){if(this.handles[o].constructor==String){this.handles[o]=d(this.handles[o],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var g=d(this.handles[o],this.element),f=0;f=/sw|ne|nw|se|n|s/.test(o)?g.outerHeight():g.outerWidth();g=["padding",/ne|nw|n/.test(o)?"Top":/se|sw|s/.test(o)?"Bottom":/^e$/.test(o)?"Right":"Left"].join("");p.css(g,f);this._proportionallyResize()}d(this.handles[o])}};this._renderAxis(this.element);this._handles=d(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className){var f=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}e.axis=f&&f[1]?f[1]:"se"}});if(h.autoHide){this._handles.hide();d(this.element).addClass("ui-resizable-autohide").hover(function(){d(this).removeClass("ui-resizable-autohide");e._handles.show()},function(){if(!e.resizing){d(this).addClass("ui-resizable-autohide");e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(g){d(g).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var f=this.element;f.after(this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(e){var f=false;for(var g in this.handles){if(d(this.handles[g])[0]==e.target){f=true}}return !this.options.disabled&&f},_mouseStart:function(e){var g=this.options,l=this.element.position(),k=this.element;this.resizing=true;this.documentScroll={top:d(document).scrollTop(),left:d(document).scrollLeft()};if(k.is(".ui-draggable")||/absolute/.test(k.css("position"))){k.css({position:"absolute",top:l.top,left:l.left})}d.browser.opera&&/relative/.test(k.css("position"))&&k.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();l=b(this.helper.css("left"));var h=b(this.helper.css("top"));if(g.containment){l+=d(g.containment).scrollLeft()||0;h+=d(g.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:l,top:h};this.size=this._helper?{width:k.outerWidth(),height:k.outerHeight()}:{width:k.width(),height:k.height()};this.originalSize=this._helper?{width:k.outerWidth(),height:k.outerHeight()}:{width:k.width(),height:k.height()};this.originalPosition={left:l,top:h};this.sizeDiff={width:k.outerWidth()-k.width(),height:k.outerHeight()-k.height()};this.originalMousePosition={left:e.pageX,top:e.pageY};this.aspectRatio=typeof g.aspectRatio=="number"?g.aspectRatio:this.originalSize.width/this.originalSize.height||1;g=d(".ui-resizable-"+this.axis).css("cursor");d("body").css("cursor",g=="auto"?this.axis+"-resize":g);k.addClass("ui-resizable-resizing");this._propagate("start",e);return true},_mouseDrag:function(e){var f=this.helper,h=this.originalMousePosition,g=this._change[this.axis];if(!g){return false}h=g.apply(this,[e,e.pageX-h.left||0,e.pageY-h.top||0]);if(this._aspectRatio||e.shiftKey){h=this._updateRatio(h,e)}h=this._respectSize(h,e);this._propagate("resize",e);f.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(h);this._trigger("resize",e,this.ui());return false},_mouseStop:function(e){this.resizing=false;var h=this.options,n=this;if(this._helper){var m=this._proportionallyResizeElements,l=m.length&&/textarea/i.test(m[0].nodeName);m=l&&d.ui.hasScroll(m[0],"left")?0:n.sizeDiff.height;l={width:n.size.width-(l?0:n.sizeDiff.width),height:n.size.height-m};m=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null;var k=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;h.animate||this.element.css(d.extend(l,{top:k,left:m}));n.helper.height(n.size.height);n.helper.width(n.size.width);this._helper&&!h.animate&&this._proportionallyResize()}d("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",e);this._helper&&this.helper.remove();return false},_updateCache:function(e){this.offset=this.helper.offset();if(c(e.left)){this.position.left=e.left}if(c(e.top)){this.position.top=e.top}if(c(e.height)){this.size.height=e.height}if(c(e.width)){this.size.width=e.width}},_updateRatio:function(e){var f=this.position,h=this.size,g=this.axis;if(e.height){e.width=h.height*this.aspectRatio}else{if(e.width){e.height=h.width/this.aspectRatio}}if(g=="sw"){e.left=f.left+(h.width-e.width);e.top=null}if(g=="nw"){e.top=f.top+(h.height-e.height);e.left=f.left+(h.width-e.width)}return e},_respectSize:function(u){var v=this.options,r=this.axis,q=c(u.width)&&v.maxWidth&&v.maxWidth<u.width,p=c(u.height)&&v.maxHeight&&v.maxHeight<u.height,o=c(u.width)&&v.minWidth&&v.minWidth>u.width,n=c(u.height)&&v.minHeight&&v.minHeight>u.height;if(o){u.width=v.minWidth}if(n){u.height=v.minHeight}if(q){u.width=v.maxWidth}if(p){u.height=v.maxHeight}var m=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,e=/sw|nw|w/.test(r);r=/nw|ne|n/.test(r);if(o&&e){u.left=m-v.minWidth}if(q&&e){u.left=m-v.maxWidth}if(n&&r){u.top=l-v.minHeight}if(p&&r){u.top=l-v.maxHeight}if((v=!u.width&&!u.height)&&!u.left&&u.top){u.top=null}else{if(v&&!u.top&&u.left){u.left=null}}return u},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){for(var e=this.helper||this.element,g=0;g<this._proportionallyResizeElements.length;g++){var l=this._proportionallyResizeElements[g];if(!this.borderDif){var k=[l.css("borderTopWidth"),l.css("borderRightWidth"),l.css("borderBottomWidth"),l.css("borderLeftWidth")],h=[l.css("paddingTop"),l.css("paddingRight"),l.css("paddingBottom"),l.css("paddingLeft")];this.borderDif=d.map(k,function(m,f){m=parseInt(m,10)||0;f=parseInt(h[f],10)||0;return m+f})}d.browser.msie&&(d(e).is(":hidden")||d(e).parents(":hidden").length)||l.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||d('<div style="overflow:hidden;"></div>');var f=d.browser.msie&&d.browser.version<7,g=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-g+"px",top:this.elementOffset.top-g+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(e,f){return{width:this.originalSize.width+f}},w:function(e,f){return{left:this.originalPosition.left+f,width:this.originalSize.width-f}},n:function(e,f,g){return{top:this.originalPosition.top+g,height:this.originalSize.height-g}},s:function(e,f,g){return{height:this.originalSize.height+g}},se:function(e,f,g){return d.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,f,g]))},sw:function(e,f,g){return d.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,f,g]))},ne:function(e,f,g){return d.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,f,g]))},nw:function(e,f,g){return d.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,f,g]))}},_propagate:function(e,f){d.ui.plugin.call(this,e,[f,this.ui()]);e!="resize"&&this._trigger(e,f,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}}});d.extend(d.ui.resizable,{version:"1.8.5"});d.ui.plugin.add("resizable","alsoResize",{start:function(){var e=d(this).data("resizable").options,f=function(g){d(g).each(function(){var h=d(this);h.data("resizable-alsoresize",{width:parseInt(h.width(),10),height:parseInt(h.height(),10),left:parseInt(h.css("left"),10),top:parseInt(h.css("top"),10),position:h.css("position")})})};if(typeof e.alsoResize=="object"&&!e.alsoResize.parentNode){if(e.alsoResize.length){e.alsoResize=e.alsoResize[0];f(e.alsoResize)}else{d.each(e.alsoResize,function(g){f(g)})}}else{f(e.alsoResize)}},resize:function(e,k){var p=d(this).data("resizable");e=p.options;var o=p.originalSize,n=p.originalPosition,m={height:p.size.height-o.height||0,width:p.size.width-o.width||0,top:p.position.top-n.top||0,left:p.position.left-n.left||0},l=function(g,f){d(g).each(function(){var h=d(this),v=d(this).data("resizable-alsoresize"),w={},u=f&&f.length?f:h.parents(k.originalElement[0]).length?["width","height"]:["width","height","top","left"];d.each(u,function(r,q){if((r=(v[q]||0)+(m[q]||0))&&r>=0){w[q]=r||null}});if(d.browser.opera&&/relative/.test(h.css("position"))){p._revertToRelativePosition=true;h.css({position:"absolute",top:"auto",left:"auto"})}h.css(w)})};typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?d.each(e.alsoResize,function(g,f){l(g,f)}):l(e.alsoResize)},stop:function(){var e=d(this).data("resizable"),f=e.options,g=function(h){d(h).each(function(){var k=d(this);k.css({position:k.data("resizable-alsoresize").position})})};if(e._revertToRelativePosition){e._revertToRelativePosition=false;typeof f.alsoResize=="object"&&!f.alsoResize.nodeType?d.each(f.alsoResize,function(h){g(h)}):g(f.alsoResize)}d(this).removeData("resizable-alsoresize")}});d.ui.plugin.add("resizable","animate",{stop:function(e){var k=d(this).data("resizable"),p=k.options,o=k._proportionallyResizeElements,n=o.length&&/textarea/i.test(o[0].nodeName),m=n&&d.ui.hasScroll(o[0],"left")?0:k.sizeDiff.height;n={width:k.size.width-(n?0:k.sizeDiff.width),height:k.size.height-m};m=parseInt(k.element.css("left"),10)+(k.position.left-k.originalPosition.left)||null;var l=parseInt(k.element.css("top"),10)+(k.position.top-k.originalPosition.top)||null;k.element.animate(d.extend(n,l&&m?{top:l,left:m}:{}),{duration:p.animateDuration,easing:p.animateEasing,step:function(){var f={width:parseInt(k.element.css("width"),10),height:parseInt(k.element.css("height"),10),top:parseInt(k.element.css("top"),10),left:parseInt(k.element.css("left"),10)};o&&o.length&&d(o[0]).css({width:f.width,height:f.height});k._updateCache(f);k._propagate("resize",e)}})}});d.ui.plugin.add("resizable","containment",{start:function(){var e=d(this).data("resizable"),k=e.element,p=e.options.containment;if(k=p instanceof d?p.get(0):/parent/.test(p)?k.parent().get(0):p){e.containerElement=d(k);if(/document/.test(p)||p==document){e.containerOffset={left:0,top:0};e.containerPosition={left:0,top:0};e.parentData={element:d(document),left:0,top:0,width:d(document).width(),height:d(document).height()||document.body.parentNode.scrollHeight}}else{var o=d(k),n=[];d(["Top","Right","Left","Bottom"]).each(function(g,f){n[g]=b(o.css("padding"+f))});e.containerOffset=o.offset();e.containerPosition=o.position();e.containerSize={height:o.innerHeight()-n[3],width:o.innerWidth()-n[1]};p=e.containerOffset;var m=e.containerSize.height,l=e.containerSize.width;l=d.ui.hasScroll(k,"left")?k.scrollWidth:l;m=d.ui.hasScroll(k)?k.scrollHeight:m;e.parentData={element:k,left:p.left,top:p.top,width:l,height:m}}}},resize:function(e){var k=d(this).data("resizable"),p=k.options,o=k.containerOffset,n=k.position;e=k._aspectRatio||e.shiftKey;var m={top:0,left:0},l=k.containerElement;if(l[0]!=document&&/static/.test(l.css("position"))){m=o}if(n.left<(k._helper?o.left:0)){k.size.width+=k._helper?k.position.left-o.left:k.position.left-m.left;if(e){k.size.height=k.size.width/p.aspectRatio}k.position.left=p.helper?o.left:0}if(n.top<(k._helper?o.top:0)){k.size.height+=k._helper?k.position.top-o.top:k.position.top;if(e){k.size.width=k.size.height*p.aspectRatio}k.position.top=k._helper?o.top:0}k.offset.left=k.parentData.left+k.position.left;k.offset.top=k.parentData.top+k.position.top;p=Math.abs((k._helper?k.offset.left-m.left:k.offset.left-m.left)+k.sizeDiff.width);o=Math.abs((k._helper?k.offset.top-m.top:k.offset.top-o.top)+k.sizeDiff.height);n=k.containerElement.get(0)==k.element.parent().get(0);m=/relative|absolute/.test(k.containerElement.css("position"));if(n&&m){p-=k.parentData.left}if(p+k.size.width>=k.parentData.width){k.size.width=k.parentData.width-p;if(e){k.size.height=k.size.width/k.aspectRatio}}if(o+k.size.height>=k.parentData.height){k.size.height=k.parentData.height-o;if(e){k.size.width=k.size.height*k.aspectRatio}}},stop:function(){var e=d(this).data("resizable"),k=e.options,q=e.containerOffset,p=e.containerPosition,o=e.containerElement,n=d(e.helper),m=n.offset(),l=n.outerWidth()-e.sizeDiff.width;n=n.outerHeight()-e.sizeDiff.height;e._helper&&!k.animate&&/relative/.test(o.css("position"))&&d(this).css({left:m.left-p.left-q.left,width:l,height:n});e._helper&&!k.animate&&/static/.test(o.css("position"))&&d(this).css({left:m.left-p.left-q.left,width:l,height:n})}});d.ui.plugin.add("resizable","ghost",{start:function(){var e=d(this).data("resizable"),f=e.options,g=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:g.height,width:g.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof f.ghost=="string"?f.ghost:"");e.ghost.appendTo(e.helper)},resize:function(){var e=d(this).data("resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=d(this).data("resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}});d.ui.plugin.add("resizable","grid",{resize:function(){var e=d(this).data("resizable"),k=e.options,p=e.size,o=e.originalSize,n=e.originalPosition,m=e.axis;k.grid=typeof k.grid=="number"?[k.grid,k.grid]:k.grid;var l=Math.round((p.width-o.width)/(k.grid[0]||1))*(k.grid[0]||1);k=Math.round((p.height-o.height)/(k.grid[1]||1))*(k.grid[1]||1);if(/^(se|s|e)$/.test(m)){e.size.width=o.width+l;e.size.height=o.height+k}else{if(/^(ne)$/.test(m)){e.size.width=o.width+l;e.size.height=o.height+k;e.position.top=n.top-k}else{if(/^(sw)$/.test(m)){e.size.width=o.width+l;e.size.height=o.height+k}else{e.size.width=o.width+l;e.size.height=o.height+k;e.position.top=n.top-k}e.position.left=n.left-l}}}});var b=function(e){return parseInt(e,10)||0},c=function(e){return !isNaN(parseInt(e,10))}})(jQuery);(function(b){b.widget("ui.selectable",b.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var e=this;this.element.addClass("ui-selectable");this.dragged=false;var d;this.refresh=function(){d=b(e.options.filter,e.element[0]);d.each(function(){var f=b(this),c=f.offset();b.data(this,"selectable-item",{element:this,$element:f,left:c.left,top:c.top,right:c.left+f.outerWidth(),bottom:c.top+f.outerHeight(),startselected:false,selected:f.hasClass("ui-selected"),selecting:f.hasClass("ui-selecting"),unselecting:f.hasClass("ui-unselecting")})})};this.refresh();this.selectees=d.addClass("ui-selectee");this._mouseInit();this.helper=b("<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(h){var e=this;this.opos=[h.pageX,h.pageY];if(!this.options.disabled){var g=this.options;this.selectees=b(g.filter,this.element[0]);this._trigger("start",h);b(g.appendTo).append(this.helper);this.helper.css({left:h.clientX,top:h.clientY,width:0,height:0});g.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var c=b.data(this,"selectable-item");c.startselected=true;if(!h.metaKey){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");c.unselecting=true;e._trigger("unselecting",h,{unselecting:c.element})}});b(h.target).parents().andSelf().each(function(){var c=b.data(this,"selectable-item");if(c){var d=!h.metaKey||!c.$element.hasClass("ui-selected");c.$element.removeClass(d?"ui-unselecting":"ui-selected").addClass(d?"ui-selecting":"ui-unselecting");c.unselecting=!d;c.selecting=d;(c.selected=d)?e._trigger("selecting",h,{selecting:c.element}):e._trigger("unselecting",h,{unselecting:c.element});return false}})}},_mouseDrag:function(q){var o=this;this.dragged=true;if(!this.options.disabled){var p=this.options,e=this.opos[0],n=this.opos[1],m=q.pageX,l=q.pageY;if(e>m){var k=m;m=e;e=k}if(n>l){k=l;l=n;n=k}this.helper.css({left:e,top:n,width:m-e,height:l-n});this.selectees.each(function(){var c=b.data(this,"selectable-item");if(!(!c||c.element==o.element[0])){var d=false;if(p.tolerance=="touch"){d=!(c.left>m||c.right<e||c.top>l||c.bottom<n)}else{if(p.tolerance=="fit"){d=c.left>e&&c.right<m&&c.top>n&&c.bottom<l}}if(d){if(c.selected){c.$element.removeClass("ui-selected");c.selected=false}if(c.unselecting){c.$element.removeClass("ui-unselecting");c.unselecting=false}if(!c.selecting){c.$element.addClass("ui-selecting");c.selecting=true;o._trigger("selecting",q,{selecting:c.element})}}else{if(c.selecting){if(q.metaKey&&c.startselected){c.$element.removeClass("ui-selecting");c.selecting=false;c.$element.addClass("ui-selected");c.selected=true}else{c.$element.removeClass("ui-selecting");c.selecting=false;if(c.startselected){c.$element.addClass("ui-unselecting");c.unselecting=true}o._trigger("unselecting",q,{unselecting:c.element})}}if(c.selected){if(!q.metaKey&&!c.startselected){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");c.unselecting=true;o._trigger("unselecting",q,{unselecting:c.element})}}}}});return false}},_mouseStop:function(e){var d=this;this.dragged=false;b(".ui-unselecting",this.element[0]).each(function(){var c=b.data(this,"selectable-item");c.$element.removeClass("ui-unselecting");c.unselecting=false;c.startselected=false;d._trigger("unselected",e,{unselected:c.element})});b(".ui-selecting",this.element[0]).each(function(){var c=b.data(this,"selectable-item");c.$element.removeClass("ui-selecting").addClass("ui-selected");c.selecting=false;c.selected=true;c.startselected=true;d._trigger("selected",e,{selected:c.element})});this._trigger("stop",e);this.helper.remove();return false}});b.extend(b.ui.selectable,{version:"1.8.5"})})(jQuery);(function(b){b.widget("ui.sortable",b.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 c=this.items.length-1;c>=0;c--){this.items[c].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{b.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(g,d){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(g);var l=null,k=this;b(g.target).parents().each(function(){if(b.data(this,"sortable-item")==k){l=b(this);return false}});if(b.data(g.target,"sortable-item")==k){l=b(g.target)}if(!l){return false}if(this.options.handle&&!d){var h=false;b(this.options.handle,l).find("*").andSelf().each(function(){if(this==g.target){h=true}});if(!h){return false}}this.currentItem=l;this._removeCurrentsFromItems();return true},_mouseStart:function(f,d,h){d=this.options;var g=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(f);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");b.extend(this.offset,{click:{left:f.pageX-this.offset.left,top:f.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(f);this.originalPageX=f.pageX;this.originalPageY=f.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();if(d.cursor){if(b("body").css("cursor")){this._storedCursor=b("body").css("cursor")}b("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",f,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!h){for(h=this.containers.length-1;h>=0;h--){this.containers[h]._trigger("activate",f,g._uiHash(this))}}if(b.ui.ddmanager){b.ui.ddmanager.current=this}b.ui.ddmanager&&!d.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,f);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(f);return true},_mouseDrag:function(g){this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var d=this.options,l=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-g.pageY<d.scrollSensitivity){this.scrollParent[0].scrollTop=l=this.scrollParent[0].scrollTop+d.scrollSpeed}else{if(g.pageY-this.overflowOffset.top<d.scrollSensitivity){this.scrollParent[0].scrollTop=l=this.scrollParent[0].scrollTop-d.scrollSpeed}}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-g.pageX<d.scrollSensitivity){this.scrollParent[0].scrollLeft=l=this.scrollParent[0].scrollLeft+d.scrollSpeed}else{if(g.pageX-this.overflowOffset.left<d.scrollSensitivity){this.scrollParent[0].scrollLeft=l=this.scrollParent[0].scrollLeft-d.scrollSpeed}}}else{if(g.pageY-b(document).scrollTop()<d.scrollSensitivity){l=b(document).scrollTop(b(document).scrollTop()-d.scrollSpeed)}else{if(b(window).height()-(g.pageY-b(document).scrollTop())<d.scrollSensitivity){l=b(document).scrollTop(b(document).scrollTop()+d.scrollSpeed)}}if(g.pageX-b(document).scrollLeft()<d.scrollSensitivity){l=b(document).scrollLeft(b(document).scrollLeft()-d.scrollSpeed)}else{if(b(window).width()-(g.pageX-b(document).scrollLeft())<d.scrollSensitivity){l=b(document).scrollLeft(b(document).scrollLeft()+d.scrollSpeed)}}}l!==false&&b.ui.ddmanager&&!d.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,g)}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(d=this.items.length-1;d>=0;d--){l=this.items[d];var k=l.item[0],h=this._intersectsWithPointer(l);if(h){if(k!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=k&&!b.ui.contains(this.placeholder[0],k)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],k):true)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(l)){this._rearrange(g,l)}else{break}this._trigger("change",g,this._uiHash());break}}}this._contactContainers(g);b.ui.ddmanager&&b.ui.ddmanager.drag(this,g);this._trigger("sort",g,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(e,d){if(e){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,e);if(this.options.revert){var f=this;d=f.placeholder.offset();f.reverting=true;b(this.helper).animate({left:d.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-f.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){f._clear(e)})}else{this._clear(e,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();b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):b(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(e){var d=this._getItemsAsjQuery(e&&e.connected),f=[];e=e||{};b(d).each(function(){var c=(b(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);if(c){f.push((e.key||c[1]+"[]")+"="+(e.key&&e.expression?c[1]:c[2]))}});!f.length&&e.key&&f.push(e.key+"=");return f.join("&")},toArray:function(e){var d=this._getItemsAsjQuery(e&&e.connected),f=[];e=e||{};d.each(function(){f.push(b(e.item||this).attr(e.attribute||"id")||"")});return f},_intersectsWith:function(x){var w=this.positionAbs.left,v=w+this.helperProportions.width,u=this.positionAbs.top,r=u+this.helperProportions.height,q=x.left,p=q+x.width,o=x.top,m=o+x.height,n=this.offset.click.top,d=this.offset.click.left;n=u+n>o&&u+n<m&&w+d>q&&w+d<p;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>x[this.floating?"width":"height"]?n:q<w+this.helperProportions.width/2&&v-this.helperProportions.width/2<p&&o<u+this.helperProportions.height/2&&r-this.helperProportions.height/2<m},_intersectsWithPointer:function(e){var d=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height);e=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);d=d&&e;e=this._getDragVerticalDirection();var f=this._getDragHorizontalDirection();if(!d){return false}return this.floating?f&&f=="right"||e=="down"?2:1:e&&(e=="down"?2:1)},_intersectsWithSides:function(f){var d=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top+f.height/2,f.height);f=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left+f.width/2,f.width);var h=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return this.floating&&g?g=="right"&&f||g=="left"&&!f:h&&(h=="down"&&d||h=="up"&&!d)},_getDragVerticalDirection:function(){var c=this.positionAbs.top-this.lastPositionAbs.top;return c!=0&&(c>0?"down":"up")},_getDragHorizontalDirection:function(){var c=this.positionAbs.left-this.lastPositionAbs.left;return c!=0&&(c>0?"right":"left")},refresh:function(c){this._refreshItems(c);this.refreshPositions();return this},_connectWith:function(){var c=this.options;return c.connectWith.constructor==String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(k){var d=[],p=[],o=this._connectWith();if(o&&k){for(k=o.length-1;k>=0;k--){for(var n=b(o[k]),m=n.length-1;m>=0;m--){var l=b.data(n[m],"sortable");if(l&&l!=this&&!l.options.disabled){p.push([b.isFunction(l.options.items)?l.options.items.call(l.element):b(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}}}}p.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(k=p.length-1;k>=0;k--){p[k][0].each(function(){d.push(this)})}return b(d)},_removeCurrentsFromItems:function(){for(var e=this.currentItem.find(":data(sortable-item)"),d=0;d<this.items.length;d++){for(var f=0;f<e.length;f++){e[f]==this.items[d].item[0]&&this.items.splice(d,1)}}},_refreshItems:function(k){this.items=[];this.containers=[this];var d=this.items,q=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],k,{item:this.currentItem}):b(this.options.items,this.element),this]],p=this._connectWith();if(p){for(var o=p.length-1;o>=0;o--){for(var n=b(p[o]),m=n.length-1;m>=0;m--){var l=b.data(n[m],"sortable");if(l&&l!=this&&!l.options.disabled){q.push([b.isFunction(l.options.items)?l.options.items.call(l.element[0],k,{item:this.currentItem}):b(l.options.items,l.element),l]);this.containers.push(l)}}}}for(o=q.length-1;o>=0;o--){k=q[o][1];p=q[o][0];m=0;for(n=p.length;m<n;m++){l=b(p[m]);l.data("sortable-item",k);d.push({item:l,instance:k,width:0,height:0,left:0,top:0})}}},refreshPositions:function(f){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var d=this.items.length-1;d>=0;d--){var h=this.items[d],g=this.options.toleranceElement?b(this.options.toleranceElement,h.item):h.item;if(!f){h.width=g.outerWidth();h.height=g.outerHeight()}g=g.offset();h.left=g.left;h.top=g.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(d=this.containers.length-1;d>=0;d--){g=this.containers[d].element.offset();this.containers[d].containerCache.left=g.left;this.containers[d].containerCache.top=g.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}return this},_createPlaceholder:function(f){var d=f||this,h=d.options;if(!h.placeholder||h.placeholder.constructor==String){var g=h.placeholder;h.placeholder={element:function(){var c=b(document.createElement(d.currentItem[0].nodeName)).addClass(g||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!g){c.style.visibility="hidden"}return c},update:function(e,c){if(!(g&&!h.forcePlaceholderSize)){c.height()||c.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));c.width()||c.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10))}}}}d.placeholder=b(h.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);h.placeholder.update(d,d.placeholder)},_contactContainers:function(k){for(var d=null,p=null,o=this.containers.length-1;o>=0;o--){if(!b.ui.contains(this.currentItem[0],this.containers[o].element[0])){if(this._intersectsWith(this.containers[o].containerCache)){if(!(d&&b.ui.contains(this.containers[o].element[0],d.element[0]))){d=this.containers[o];p=o}}else{if(this.containers[o].containerCache.over){this.containers[o]._trigger("out",k,this._uiHash(this));this.containers[o].containerCache.over=0}}}}if(d){if(this.containers.length===1){this.containers[p]._trigger("over",k,this._uiHash(this));this.containers[p].containerCache.over=1}else{if(this.currentContainer!=this.containers[p]){d=10000;o=null;for(var n=this.positionAbs[this.containers[p].floating?"left":"top"],m=this.items.length-1;m>=0;m--){if(b.ui.contains(this.containers[p].element[0],this.items[m].item[0])){var l=this.items[m][this.containers[p].floating?"left":"top"];if(Math.abs(l-n)<d){d=Math.abs(l-n);o=this.items[m]}}}if(o||this.options.dropOnEmpty){this.currentContainer=this.containers[p];o?this._rearrange(k,o,null,true):this._rearrange(k,null,this.containers[p].element,true);this._trigger("change",k,this._uiHash());this.containers[p]._trigger("change",k,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[p]._trigger("over",k,this._uiHash(this));this.containers[p].containerCache.over=1}}}}},_createHelper:function(d){var c=this.options;d=b.isFunction(c.helper)?b(c.helper.apply(this.element[0],[d,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;d.parents("body").length||b(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(c){if(typeof c=="string"){c=c.split(" ")}if(b.isArray(c)){c={left:+c[0],top:+c[1]||0}}if("left" in c){this.offset.click.left=c.left+this.margins.left}if("right" in c){this.offset.click.left=this.helperProportions.width-c.right+this.margins.left}if("top" in c){this.offset.click.top=c.top+this.margins.top}if("bottom" in c){this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie){c={top:0,left:0}}return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.currentItem.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.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 e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(e.containment)){var d=b(e.containment)[0];e=b(e.containment).offset();var f=b(d).css("overflow")!="hidden";this.containment=[e.left+(parseInt(b(d).css("borderLeftWidth"),10)||0)+(parseInt(b(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(b(d).css("borderTopWidth"),10)||0)+(parseInt(b(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(b(d).css("borderLeftWidth"),10)||0)-(parseInt(b(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(b(d).css("borderTopWidth"),10)||0)-(parseInt(b(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,d){if(!d){d=this.position}f=f=="absolute"?1:-1;var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName);return{top:d.top+this.offset.relative.top*f+this.offset.parent.top*f-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop())*f),left:d.left+this.offset.relative.left*f+this.offset.parent.left*f-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:h.scrollLeft())*f)}},_generatePosition:function(h){var d=this.options,n=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,m=/(html|body)/i.test(n[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var l=h.pageX,k=h.pageY;if(this.originalPosition){if(this.containment){if(h.pageX-this.offset.click.left<this.containment[0]){l=this.containment[0]+this.offset.click.left}if(h.pageY-this.offset.click.top<this.containment[1]){k=this.containment[1]+this.offset.click.top}if(h.pageX-this.offset.click.left>this.containment[2]){l=this.containment[2]+this.offset.click.left}if(h.pageY-this.offset.click.top>this.containment[3]){k=this.containment[3]+this.offset.click.top}}if(d.grid){k=this.originalPageY+Math.round((k-this.originalPageY)/d.grid[1])*d.grid[1];k=this.containment?!(k-this.offset.click.top<this.containment[1]||k-this.offset.click.top>this.containment[3])?k:!(k-this.offset.click.top<this.containment[1])?k-d.grid[1]:k+d.grid[1]:k;l=this.originalPageX+Math.round((l-this.originalPageX)/d.grid[0])*d.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-d.grid[0]:l+d.grid[0]:l}}return{top:k-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():m?0:n.scrollTop()),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():m?0:n.scrollLeft())}},_rearrange:function(h,d,n,m){n?n[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var l=this,k=this.counter;window.setTimeout(function(){k==l.counter&&l.refreshPositions(!m)},0)},_clear:function(f,d){this.reverting=false;var h=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var g in this._storedCSS){if(this._storedCSS[g]=="auto"||this._storedCSS[g]=="static"){this._storedCSS[g]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}this.fromOutside&&!d&&h.push(function(c){this._trigger("receive",c,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])&&!d){h.push(function(c){this._trigger("update",c,this._uiHash())})}if(!b.ui.contains(this.element[0],this.currentItem[0])){d||h.push(function(c){this._trigger("remove",c,this._uiHash())});for(g=this.containers.length-1;g>=0;g--){if(b.ui.contains(this.containers[g].element[0],this.currentItem[0])&&!d){h.push(function(c){return function(e){c._trigger("receive",e,this._uiHash(this))}}.call(this,this.containers[g]));h.push(function(c){return function(e){c._trigger("update",e,this._uiHash(this))}}.call(this,this.containers[g]))}}}for(g=this.containers.length-1;g>=0;g--){d||h.push(function(c){return function(e){c._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[g]));if(this.containers[g].containerCache.over){h.push(function(c){return function(e){c._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[g]));this.containers[g].containerCache.over=0}}this._storedCursor&&b("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(!d){this._trigger("beforeStop",f,this._uiHash());for(g=0;g<h.length;g++){h[g].call(this,f)}this._trigger("stop",f,this._uiHash())}return false}d||this._trigger("beforeStop",f,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(g=0;g<h.length;g++){h[g].call(this,f)}this._trigger("stop",f,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(d){var c=d||this;return{helper:c.helper,placeholder:c.placeholder||b([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:d?d.element:null}}});b.extend(b.ui.sortable,{version:"1.8.5"})})(jQuery);(function(b){b.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 e=this,c=e.options;e.running=0;e.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");e.headers=e.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c.disabled||b(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c.disabled||b(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c.disabled||b(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c.disabled||b(this).removeClass("ui-state-focus")});e.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var h=e.element.find("a").filter(c.navigationFilter).eq(0);if(h.length){var g=h.closest(".ui-accordion-header");e.active=g.length?g:h.closest(".ui-accordion-content").prev()}}e.active=e._findActive(e.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all ui-corner-top");e.active.next().addClass("ui-accordion-content-active");e._createIcons();e.resize();e.element.attr("role","tablist");e.headers.attr("role","tab").bind("keydown.accordion",function(d){return e._keydown(d)}).next().attr("role","tabpanel");e.headers.not(e.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();e.active.length?e.active.attr({"aria-expanded":"true",tabIndex:0}):e.headers.eq(0).attr("tabIndex",0);b.browser.safari||e.headers.find("a").attr("tabIndex",-1);c.event&&e.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(d){e._clickHandler.call(e,d,this);d.preventDefault()})},_createIcons:function(){var c=this.options;if(c.icons){b("<span></span>").addClass("ui-icon "+c.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(c.icons.header).toggleClass(c.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 b.Widget.prototype.destroy.call(this)},_setOption:function(d,c){b.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(e){if(!(this.options.disabled||e.altKey||e.ctrlKey)){var c=b.ui.keyCode,l=this.headers.length,k=this.headers.index(e.target),h=false;switch(e.keyCode){case c.RIGHT:case c.DOWN:h=this.headers[(k+1)%l];break;case c.LEFT:case c.UP:h=this.headers[(k-1+l)%l];break;case c.SPACE:case c.ENTER:this._clickHandler({target:e.target},e.target);e.preventDefault()}if(h){b(e.target).attr("tabIndex",-1);b(h).attr("tabIndex",0);h.focus();return false}return true}},resize:function(){var e=this.options,c;if(e.fillSpace){if(b.browser.msie){var f=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}c=this.element.parent().height();b.browser.msie&&this.element.parent().css("overflow",f);this.headers.each(function(){c-=b(this).outerHeight(true)});this.headers.next().each(function(){b(this).height(Math.max(0,c-b(this).innerHeight()+b(this).height()))}).css("overflow","auto")}else{if(e.autoHeight){c=0;this.headers.next().each(function(){c=Math.max(c,b(this).height("").height())}).height(c)}}return this},activate:function(c){this.options.active=c;c=this._findActive(c)[0];this._clickHandler({target:c},c);return this},_findActive:function(c){return c?typeof c==="number"?this.headers.filter(":eq("+c+")"):this.headers.not(this.headers.not(c)):c===false?b([]):this.headers.filter(":eq(0)")},_clickHandler:function(e,c){var n=this.options;if(!n.disabled){if(e.target){e=b(e.currentTarget||c);c=e[0]===this.active[0];n.active=n.collapsible&&c?false:this.headers.index(e);if(!(this.running||!n.collapsible&&c)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(n.icons.headerSelected).addClass(n.icons.header);if(!c){e.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(n.icons.header).addClass(n.icons.headerSelected);e.next().addClass("ui-accordion-content-active")}k=e.next();m=this.active.next();l={options:n,newHeader:c&&n.collapsible?b([]):e,oldHeader:this.active,newContent:c&&n.collapsible?b([]):k,oldContent:m};n=this.headers.index(this.active[0])>this.headers.index(e[0]);this.active=c?b([]):e;this._toggle(k,m,l,c,n)}}else{if(n.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(n.icons.headerSelected).addClass(n.icons.header);this.active.next().addClass("ui-accordion-content-active");var m=this.active.next(),l={options:n,newHeader:b([]),oldHeader:n.active,newContent:b([]),oldContent:m},k=this.active=b([]);this._toggle(k,m,l)}}}},_toggle:function(v,u,r,p,o){var n=this,q=n.options;n.toShow=v;n.toHide=u;n.data=r;var l=function(){if(n){return n._completed.apply(n,arguments)}};n._trigger("changestart",null,n.data);n.running=u.size()===0?v.size():u.size();if(q.animated){r={};r=q.collapsible&&p?{toShow:b([]),toHide:u,complete:l,down:o,autoHeight:q.autoHeight||q.fillSpace}:{toShow:v,toHide:u,complete:l,down:o,autoHeight:q.autoHeight||q.fillSpace};if(!q.proxied){q.proxied=q.animated}if(!q.proxiedDuration){q.proxiedDuration=q.duration}q.animated=b.isFunction(q.proxied)?q.proxied(r):q.proxied;q.duration=b.isFunction(q.proxiedDuration)?q.proxiedDuration(r):q.proxiedDuration;p=b.ui.accordion.animations;var m=q.duration,c=q.animated;if(c&&!p[c]&&!b.easing[c]){c="slide"}p[c]||(p[c]=function(d){this.slide(d,{easing:c,duration:m||700})});p[c](r)}else{if(q.collapsible&&p){v.toggle()}else{u.hide();v.show()}l(true)}u.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();v.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(c){this.running=c?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)}}});b.extend(b.ui.accordion,{version:"1.8.5",animations:{slide:function(k,c){k=b.extend({easing:"swing",duration:300},k,c);if(k.toHide.size()){if(k.toShow.size()){var p=k.toShow.css("overflow"),n=0,m={},l={},o;c=k.toShow;o=c[0].style.width;c.width(parseInt(c.parent().width(),10)-parseInt(c.css("paddingLeft"),10)-parseInt(c.css("paddingRight"),10)-(parseInt(c.css("borderLeftWidth"),10)||0)-(parseInt(c.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],function(d,e){l[e]="hide";d=(""+b.css(k.toShow[0],e)).match(/^([\d+-.]+)(.*)$/);m[e]={value:d[1],unit:d[2]||"px"}});k.toShow.css({height:0,overflow:"hidden"}).show();k.toHide.filter(":hidden").each(k.complete).end().filter(":visible").animate(l,{step:function(d,e){if(e.prop=="height"){n=e.end-e.start===0?0:(e.now-e.start)/(e.end-e.start)}k.toShow[0].style[e.prop]=n*m[e.prop].value+m[e.prop].unit},duration:k.duration,easing:k.easing,complete:function(){k.autoHeight||k.toShow.css("height","");k.toShow.css({width:o,overflow:p});k.complete()}})}else{k.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},k)}}else{k.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},k)}},bounceslide:function(c){this.slide(c,{easing:c.down?"easeOutBounce":"swing",duration:c.down?1000:200})}}})})(jQuery);(function(b){b.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(f){if(!d.options.disabled){var e=b.ui.keyCode;switch(f.keyCode){case e.PAGE_UP:d._move("previousPage",f);break;case e.PAGE_DOWN:d._move("nextPage",f);break;case e.UP:d._move("previous",f);f.preventDefault();break;case e.DOWN:d._move("next",f);f.preventDefault();break;case e.ENTER:case e.NUMPAD_ENTER:d.menu.element.is(":visible")&&f.preventDefault();case e.TAB:if(!d.menu.active){return}d.menu.select(f);break;case e.ESCAPE:d.element.val(d.term);d.close(f);break;default:clearTimeout(d.searching);d.searching=setTimeout(function(){if(d.term!=d.element.val()){d.selectedItem=null;d.search(null,f)}},d.options.delay);break}}}).bind("focus.autocomplete",function(){if(!d.options.disabled){d.selectedItem=null;d.previous=d.element.val()}}).bind("blur.autocomplete",function(e){if(!d.options.disabled){clearTimeout(d.searching);d.closing=setTimeout(function(){d.close(e);d._change(e)},150)}});this._initSource();this.response=function(){return d._response.apply(d,arguments)};this.menu=b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||"body",c)[0]).mousedown(function(f){var e=d.menu.element[0];f.target===e&&setTimeout(function(){b(document).one("mousedown",function(g){g.target!==d.element[0]&&g.target!==e&&!b.ui.contains(e,g.target)&&d.close()})},1);setTimeout(function(){clearTimeout(d.closing)},13)}).menu({focus:function(f,e){e=e.item.data("item.autocomplete");false!==d._trigger("focus",null,{item:e})&&/^key/.test(f.originalEvent.type)&&d.element.val(e.value)},selected:function(h,g){g=g.item.data("item.autocomplete");var e=d.previous;if(d.element[0]!==c.activeElement){d.element.focus();d.previous=e}if(false!==d._trigger("select",h,{item:g})){d.term=g.value;d.element.val(g.value)}d.close(h);d.selectedItem=g},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");b.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();b.Widget.prototype.destroy.call(this)},_setOption:function(d,c){b.Widget.prototype._setOption.apply(this,arguments);d==="source"&&this._initSource();if(d==="appendTo"){this.menu.element.appendTo(b(c||"body",this.element[0].ownerDocument)[0])}},_initSource:function(){var e=this,d,f;if(b.isArray(this.options.source)){d=this.options.source;this.source=function(g,c){c(b.ui.autocomplete.filter(d,g.term))}}else{if(typeof this.options.source==="string"){f=this.options.source;this.source=function(g,c){e.xhr&&e.xhr.abort();e.xhr=b.getJSON(f,g,function(m,k,l){l===e.xhr&&c(m);e.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(c){this.element.addClass("ui-autocomplete-loading");this.source({term:c},this.response)},_response:function(c){if(c.length){c=this._normalize(c);this._suggest(c);this._trigger("open")}else{this.close()}this.element.removeClass("ui-autocomplete-loading")},close:function(c){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",c);this.menu.element.hide();this.menu.deactivate()}},_change:function(c){this.previous!==this.element.val()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(c){if(c.length&&c[0].label&&c[0].value){return c}return b.map(c,function(d){if(typeof d==="string"){return{label:d,value:d}}return b.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(e){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1),f;this._renderMenu(d,e);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position(b.extend({of:this.element},this.options.position));e=d.width("").outerWidth();f=this.element.outerWidth();d.outerWidth(Math.max(e,f))},_renderMenu:function(e,d){var f=this;b.each(d,function(g,c){f._renderItem(e,c)})},_renderItem:function(d,c){return b("<li></li>").data("item.autocomplete",c).append(b("<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}});b.extend(b.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(e,d){var f=new RegExp(b.ui.autocomplete.escapeRegex(d),"i");return b.grep(e,function(c){return f.test(c.label||c.value||c)})}})})(jQuery);(function(b){b.widget("ui.menu",{_create:function(){var c=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(d){if(b(d.target).closest(".ui-menu-item a").length){d.preventDefault();c.select(d)}});this.refresh()},refresh:function(){var c=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(d){c.activate(d,b(this).parent())}).mouseleave(function(){c.deactivate()})},activate:function(g,e){this.deactivate();if(this.hasScroll()){var l=e.offset().top-this.element.offset().top,k=this.element.attr("scrollTop"),h=this.element.height();if(l<0){this.element.attr("scrollTop",k+l)}else{l>=h&&this.element.attr("scrollTop",k+l-h+e.height())}}this.active=e.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",g,{item:e})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(c){this.move("next",".ui-menu-item:first",c)},previous:function(c){this.move("prev",".ui-menu-item:last",c)},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(e,d,f){if(this.active){e=this.active[e+"All"](".ui-menu-item").eq(0);e.length?this.activate(f,e):this.activate(f,this.element.children(d))}else{this.activate(f,this.element.children(d))}},nextPage:function(f){if(this.hasScroll()){if(!this.active||this.last()){this.activate(f,this.element.children(":first"))}else{var e=this.active.offset().top,h=this.element.height(),g=this.element.children("li").filter(function(){var c=b(this).offset().top-e-h+b(this).height();return c<10&&c>-10});g.length||(g=this.element.children(":last"));this.activate(f,g)}}else{this.activate(f,this.element.children(!this.active||this.last()?":first":":last"))}},previousPage:function(e){if(this.hasScroll()){if(!this.active||this.first()){this.activate(e,this.element.children(":last"))}else{var d=this.active.offset().top,f=this.element.height();result=this.element.children("li").filter(function(){var c=b(this).offset().top-d+f-b(this).height();return c<10&&c>-10});result.length||(result=this.element.children(":first"));this.activate(e,result)}}else{this.activate(e,this.element.children(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(c){this._trigger("selected",c,{item:this.active})}})})(jQuery);(function(b){var e,c=function(f){b(":ui-button",f.target.form).each(function(){var g=b(this).data("button");setTimeout(function(){g.refresh()},1)})},d=function(f){var k=f.name,h=f.form,g=b([]);if(k){g=h?b(h).find("[name='"+k+"']"):b("[name='"+k+"']",f.ownerDocument).filter(function(){return !this.form})}return g};b.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 f=this,k=this.options,h=this.type==="checkbox"||this.type==="radio",g="ui-state-hover"+(!h?" ui-state-active":"");if(k.label===null){k.label=this.buttonElement.html()}if(this.element.is(":disabled")){k.disabled=true}this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!k.disabled){b(this).addClass("ui-state-hover");this===e&&b(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){k.disabled||b(this).removeClass(g)}).bind("focus.button",function(){b(this).addClass("ui-state-focus")}).bind("blur.button",function(){b(this).removeClass("ui-state-focus")});h&&this.element.bind("change.button",function(){f.refresh()});if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(k.disabled){return false}b(this).toggleClass("ui-state-active");f.buttonElement.attr("aria-pressed",f.element[0].checked)})}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(k.disabled){return false}b(this).addClass("ui-state-active");f.buttonElement.attr("aria-pressed",true);var l=f.element[0];d(l).not(l).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)})}else{this.buttonElement.bind("mousedown.button",function(){if(k.disabled){return false}b(this).addClass("ui-state-active");e=this;b(document).one("mouseup",function(){e=null})}).bind("mouseup.button",function(){if(k.disabled){return false}b(this).removeClass("ui-state-active")}).bind("keydown.button",function(l){if(k.disabled){return false}if(l.keyCode==b.ui.keyCode.SPACE||l.keyCode==b.ui.keyCode.ENTER){b(this).addClass("ui-state-active")}}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(l){l.keyCode===b.ui.keyCode.SPACE&&b(this).click()})}}this._setOption("disabled",k.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 f=this.element.is(":checked");f&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",f)}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");b.Widget.prototype.destroy.call(this)},_setOption:function(f,g){b.Widget.prototype._setOption.apply(this,arguments);if(f==="disabled"){g?this.element.attr("disabled",true):this.element.removeAttr("disabled")}this._resetButton()},refresh:function(){var f=this.element.is(":disabled");f!==this.options.disabled&&this._setOption("disabled",f);if(this.type==="radio"){d(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",true):b(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 f=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"),k=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(f.empty()).text(),h=this.options.icons,g=h.primary&&h.secondary;if(h.primary||h.secondary){f.addClass("ui-button-text-icon"+(g?"s":h.primary?"-primary":"-secondary"));h.primary&&f.prepend("<span class='ui-button-icon-primary ui-icon "+h.primary+"'></span>");h.secondary&&f.append("<span class='ui-button-icon-secondary ui-icon "+h.secondary+"'></span>");if(!this.options.text){f.addClass(g?"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||f.attr("title",k)}}else{f.addClass("ui-button-text-only")}}}});b.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(f,g){f==="disabled"&&this.buttons.button("option",f,g);b.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 b(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 b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");b.Widget.prototype.destroy.call(this)}})})(jQuery);(function(d,b){d.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(e){var c=d(this).css(e).offset().top;c<0&&d(this).css("top",e.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 k=this,c=k.options,p=c.title||"&#160;",n=d.ui.dialog.getTitleId(k.element),m=(k.uiDialog=d("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c.dialogClass).css({zIndex:c.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(e){if(c.closeOnEscape&&e.keyCode&&e.keyCode===d.ui.keyCode.ESCAPE){k.close(e);e.preventDefault()}}).attr({role:"dialog","aria-labelledby":n}).mousedown(function(e){k.moveToTop(false,e)});k.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(m);var o=(k.uiDialogTitlebar=d("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(m),l=d('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){l.addClass("ui-state-hover")},function(){l.removeClass("ui-state-hover")}).focus(function(){l.addClass("ui-state-focus")}).blur(function(){l.removeClass("ui-state-focus")}).click(function(e){k.close(e);return false}).appendTo(o);(k.uiDialogTitlebarCloseText=d("<span></span>")).addClass("ui-icon ui-icon-closethick").text(c.closeText).appendTo(l);d("<span></span>").addClass("ui-dialog-title").attr("id",n).html(p).prependTo(o);if(d.isFunction(c.beforeclose)&&!d.isFunction(c.beforeClose)){c.beforeClose=c.beforeclose}o.find("*").add(o).disableSelection();c.draggable&&d.fn.draggable&&k._makeDraggable();c.resizable&&d.fn.resizable&&k._makeResizable();k._createButtons(c.buttons);k._isOpen=false;d.fn.bgiframe&&m.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(e){var c=this,f;if(false!==c._trigger("beforeClose",e)){c.overlay&&c.overlay.destroy();c.uiDialog.unbind("keypress.ui-dialog");c._isOpen=false;if(c.options.hide){c.uiDialog.hide(c.options.hide,function(){c._trigger("close",e)})}else{c.uiDialog.hide();c._trigger("close",e)}d.ui.dialog.overlay.resize();if(c.options.modal){f=0;d(".ui-dialog").each(function(){if(this!==c.uiDialog[0]){f=Math.max(f,d(this).css("z-index"))}});d.ui.dialog.maxZ=f}return c}},isOpen:function(){return this._isOpen},moveToTop:function(e,c){var h=this,g=h.options;if(g.modal&&!e||!g.stack&&!g.modal){return h._trigger("focus",c)}if(g.zIndex>d.ui.dialog.maxZ){d.ui.dialog.maxZ=g.zIndex}if(h.overlay){d.ui.dialog.maxZ+=1;h.overlay.$el.css("z-index",d.ui.dialog.overlay.maxZ=d.ui.dialog.maxZ)}e={scrollTop:h.element.attr("scrollTop"),scrollLeft:h.element.attr("scrollLeft")};d.ui.dialog.maxZ+=1;h.uiDialog.css("z-index",d.ui.dialog.maxZ);h.element.attr(e);h._trigger("focus",c);return h},open:function(){if(!this._isOpen){var e=this,c=e.options,f=e.uiDialog;e.overlay=c.modal?new d.ui.dialog.overlay(e):null;f.next().length&&f.appendTo("body");e._size();e._position(c.position);f.show(c.show);e.moveToTop(true);c.modal&&f.bind("keypress.ui-dialog",function(k){if(k.keyCode===d.ui.keyCode.TAB){var h=d(":tabbable",this),l=h.filter(":first");h=h.filter(":last");if(k.target===h[0]&&!k.shiftKey){l.focus(1);return false}else{if(k.target===l[0]&&k.shiftKey){h.focus(1);return false}}}});d(e.element.find(":tabbable").get().concat(f.find(".ui-dialog-buttonpane :tabbable").get().concat(f.get()))).eq(0).focus();e._isOpen=true;e._trigger("open");return e}},_createButtons:function(e){var c=this,l=false,k=d("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),h=d("<div></div>").addClass("ui-dialog-buttonset").appendTo(k);c.uiDialog.find(".ui-dialog-buttonpane").remove();typeof e==="object"&&e!==null&&d.each(e,function(){return !(l=true)});if(l){d.each(e,function(g,f){f=d.isFunction(f)?{click:f,text:g}:f;g=d("<button></button>",f).unbind("click").click(function(){f.click.apply(c.element[0],arguments)}).appendTo(h);d.fn.button&&g.button()});k.appendTo(c.uiDialog)}},_makeDraggable:function(){function e(f){return{position:f.position,offset:f.offset}}var c=this,l=c.options,k=d(document),h;c.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(g,f){h=l.height==="auto"?"auto":d(this).height();d(this).height(d(this).height()).addClass("ui-dialog-dragging");c._trigger("dragStart",g,e(f))},drag:function(g,f){c._trigger("drag",g,e(f))},stop:function(g,f){l.position=[f.position.left-k.scrollLeft(),f.position.top-k.scrollTop()];d(this).removeClass("ui-dialog-dragging").height(h);c._trigger("dragStop",g,e(f));d.ui.dialog.overlay.resize()}})},_makeResizable:function(e){function c(f){return{originalPosition:f.originalPosition,originalSize:f.originalSize,position:f.position,size:f.size}}e=e===b?this.options.resizable:e;var l=this,k=l.options,h=l.uiDialog.css("position");e=typeof e==="string"?e:"n,e,s,w,se,sw,ne,nw";l.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:l.element,maxWidth:k.maxWidth,maxHeight:k.maxHeight,minWidth:k.minWidth,minHeight:l._minHeight(),handles:e,start:function(g,f){d(this).addClass("ui-dialog-resizing");l._trigger("resizeStart",g,c(f))},resize:function(g,f){l._trigger("resize",g,c(f))},stop:function(g,f){d(this).removeClass("ui-dialog-resizing");k.height=d(this).height();k.width=d(this).width();l._trigger("resizeStop",g,c(f));d.ui.dialog.overlay.resize()}}).css("position",h).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(e){var c=[],h=[0,0],g;if(e){if(typeof e==="string"||typeof e==="object"&&"0" in e){c=e.split?e.split(" "):[e[0],e[1]];if(c.length===1){c[1]=c[0]}d.each(["left","top"],function(f,k){if(+c[f]===c[f]){h[f]=c[f];c[f]=k}});e={my:c.join(" "),at:c.join(" "),offset:h.join(" ")}}e=d.extend({},d.ui.dialog.prototype.options.position,e)}else{e=d.ui.dialog.prototype.options.position}(g=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(e);g||this.uiDialog.hide()},_setOption:function(h,c){var n=this,l=n.uiDialog,k=l.is(":data(resizable)"),m=false;switch(h){case"beforeclose":h="beforeClose";break;case"buttons":n._createButtons(c);m=true;break;case"closeText":n.uiDialogTitlebarCloseText.text(""+c);break;case"dialogClass":l.removeClass(n.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c);break;case"disabled":c?l.addClass("ui-dialog-disabled"):l.removeClass("ui-dialog-disabled");break;case"draggable":c?n._makeDraggable():l.draggable("destroy");break;case"height":m=true;break;case"maxHeight":k&&l.resizable("option","maxHeight",c);m=true;break;case"maxWidth":k&&l.resizable("option","maxWidth",c);m=true;break;case"minHeight":k&&l.resizable("option","minHeight",c);m=true;break;case"minWidth":k&&l.resizable("option","minWidth",c);m=true;break;case"position":n._position(c);break;case"resizable":k&&!c&&l.resizable("destroy");k&&typeof c==="string"&&l.resizable("option","handles",c);!k&&c!==false&&n._makeResizable(c);break;case"title":d(".ui-dialog-title",n.uiDialogTitlebar).html(""+(c||"&#160;"));break;case"width":m=true;break}d.Widget.prototype._setOption.apply(n,arguments);m&&n._size()},_size:function(){var e=this.options,c;this.element.css({width:"auto",minHeight:0,height:0});if(e.minWidth>e.width){e.width=e.minWidth}c=this.uiDialog.css({height:"auto",width:e.width}).height();this.element.css(e.height==="auto"?{minHeight:Math.max(e.minHeight-c,0),height:d.support.minHeight?"auto":Math.max(e.minHeight-c,0)}:{minHeight:0,height:Math.max(e.height-c,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});d.extend(d.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=d.ui.dialog.overlay.create(c)}});d.extend(d.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:d.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(c){return c+".dialog-overlay"}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){d.ui.dialog.overlay.instances.length&&d(document).bind(d.ui.dialog.overlay.events,function(f){if(d(f.target).zIndex()<d.ui.dialog.overlay.maxZ){return false}})},1);d(document).bind("keydown.dialog-overlay",function(f){if(e.options.closeOnEscape&&f.keyCode&&f.keyCode===d.ui.keyCode.ESCAPE){e.close(f);f.preventDefault()}});d(window).bind("resize.dialog-overlay",d.ui.dialog.overlay.resize)}var c=(this.oldInstances.pop()||d("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});d.fn.bgiframe&&c.bgiframe();this.instances.push(c);return c},destroy:function(e){this.oldInstances.push(this.instances.splice(d.inArray(e,this.instances),1)[0]);this.instances.length===0&&d([document,window]).unbind(".dialog-overlay");e.remove();var c=0;d.each(this.instances,function(){c=Math.max(c,this.css("z-index"))});this.maxZ=c},height:function(){var e,c;if(d.browser.msie&&d.browser.version<7){e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return e<c?d(window).height()+"px":e+"px"}else{return d(document).height()+"px"}},width:function(){var e,c;if(d.browser.msie&&d.browser.version<7){e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return e<c?d(window).width()+"px":e+"px"}else{return d(document).width()+"px"}},resize:function(){var c=d([]);d.each(d.ui.dialog.overlay.instances,function(){c=c.add(this)});c.css({width:0,height:0}).css({width:d.ui.dialog.overlay.width(),height:d.ui.dialog.overlay.height()})}});d.extend(d.ui.dialog.overlay.prototype,{destroy:function(){d.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(b){b.widget("ui.slider",b.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=b([]);if(c.range){if(c.range===true){this.range=b("<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=b("<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")}b(".ui-slider-handle",this.element).length===0&&b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");if(c.values&&c.values.length){for(;b(".ui-slider-handle",this.element).length<c.values.length;){b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}}this.handles=b(".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(e){e.preventDefault()}).hover(function(){c.disabled||b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){if(c.disabled){b(this).blur()}else{b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}}).blur(function(){b(this).removeClass("ui-state-focus")});this.handles.each(function(e){b(this).data("index.ui-slider-handle",e)});this.handles.keydown(function(p){var o=true,n=b(this).data("index.ui-slider-handle"),l,m,k;if(!d.options.disabled){switch(p.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.PAGE_UP:case b.ui.keyCode.PAGE_DOWN:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:o=false;if(!d._keySliding){d._keySliding=true;b(this).addClass("ui-state-active");l=d._start(p,n);if(l===false){return}}break}k=d.options.step;l=d.options.values&&d.options.values.length?(m=d.values(n)):(m=d.value());switch(p.keyCode){case b.ui.keyCode.HOME:m=d._valueMin();break;case b.ui.keyCode.END:m=d._valueMax();break;case b.ui.keyCode.PAGE_UP:m=d._trimAlignValue(l+(d._valueMax()-d._valueMin())/5);break;case b.ui.keyCode.PAGE_DOWN:m=d._trimAlignValue(l-(d._valueMax()-d._valueMin())/5);break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(l===d._valueMax()){return}m=d._trimAlignValue(l+k);break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(l===d._valueMin()){return}m=d._trimAlignValue(l-k);break}d._slide(p,n,m);return o}}).keyup(function(g){var f=b(this).data("index.ui-slider-handle");if(d._keySliding){d._keySliding=false;d._stop(g,f);d._change(g,f);b(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(k){var d=this.options,p,o,n,l,m;if(d.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();p=this._normValueFromMouse({x:k.pageX,y:k.pageY});o=this._valueMax()-this._valueMin()+1;l=this;this.handles.each(function(e){var c=Math.abs(p-l.values(e));if(o>c){o=c;n=b(this);m=e}});if(d.range===true&&this.values(1)===d.min){m+=1;n=b(this.handles[m])}if(this._start(k,m)===false){return false}this._mouseSliding=true;l._handleIndex=m;n.addClass("ui-state-active").focus();d=n.offset();this._clickOffset=!b(k.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:k.pageX-d.left-n.width()/2,top:k.pageY-d.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)};this._slide(k,m,p);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(c){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(c,this._handleIndex);this._change(c,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(e,d){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(d);f.values=this.values()}return this._trigger("start",e,f)},_slide:function(f,d,h){var g;if(this.options.values&&this.options.values.length){g=this.values(d?0:1);if(this.options.values.length===2&&this.options.range===true&&(d===0&&h>g||d===1&&h<g)){h=g}if(h!==this.values(d)){g=this.values();g[d]=h;f=this._trigger("slide",f,{handle:this.handles[d],value:h,values:g});this.values(d?0:1);f!==false&&this.values(d,h,true)}}else{if(h!==this.value()){f=this._trigger("slide",f,{handle:this.handles[d],value:h});f!==false&&this.value(h)}}},_stop:function(e,d){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(d);f.values=this.values()}this._trigger("stop",e,f)},_change:function(e,d){if(!this._keySliding&&!this._mouseSliding){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(d);f.values=this.values()}this._trigger("change",e,f)}},value:function(c){if(arguments.length){this.options.value=this._trimAlignValue(c);this._refreshValue();this._change(null,0)}return this._value()},values:function(g,d){var l,k,h;if(arguments.length>1){this.options.values[g]=this._trimAlignValue(d);this._refreshValue();this._change(null,g)}if(arguments.length){if(b.isArray(arguments[0])){l=this.options.values;k=arguments[0];for(h=0;h<l.length;h+=1){l[h]=this._trimAlignValue(k[h]);this._change(null,h)}this._refreshValue()}else{return this.options.values&&this.options.values.length?this._values(g):this.value()}}else{return this._values()}},_setOption:function(f,d){var h,g=0;if(b.isArray(this.options.values)){g=this.options.values.length}b.Widget.prototype._setOption.apply(this,arguments);switch(f){case"disabled":if(d){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(h=0;h<g;h+=1){this._change(null,h)}this._animateOff=false;break}},_value:function(){var c=this.options.value;return c=this._trimAlignValue(c)},_values:function(e){var d,f;if(arguments.length){d=this.options.values[e];return d=this._trimAlignValue(d)}else{d=this.options.values.slice();for(f=0;f<d.length;f+=1){d[f]=this._trimAlignValue(d[f])}return d}},_trimAlignValue:function(e){if(e<this._valueMin()){return this._valueMin()}if(e>this._valueMax()){return this._valueMax()}var d=this.options.step>0?this.options.step:1,f=e%d;e=e-f;if(Math.abs(f)*2>=d){e+=f>0?d:-d}return parseFloat(e.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var v=this.options.range,u=this.options,r=this,q=!this._animateOff?u.animate:false,p,n={},o,m,k,d;if(this.options.values&&this.options.values.length){this.handles.each(function(c){p=(r.values(c)-r._valueMin())/(r._valueMax()-r._valueMin())*100;n[r.orientation==="horizontal"?"left":"bottom"]=p+"%";b(this).stop(1,1)[q?"animate":"css"](n,u.animate);if(r.options.range===true){if(r.orientation==="horizontal"){if(c===0){r.range.stop(1,1)[q?"animate":"css"]({left:p+"%"},u.animate)}if(c===1){r.range[q?"animate":"css"]({width:p-o+"%"},{queue:false,duration:u.animate})}}else{if(c===0){r.range.stop(1,1)[q?"animate":"css"]({bottom:p+"%"},u.animate)}if(c===1){r.range[q?"animate":"css"]({height:p-o+"%"},{queue:false,duration:u.animate})}}}o=p})}else{m=this.value();k=this._valueMin();d=this._valueMax();p=d!==k?(m-k)/(d-k)*100:0;n[r.orientation==="horizontal"?"left":"bottom"]=p+"%";this.handle.stop(1,1)[q?"animate":"css"](n,u.animate);if(v==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[q?"animate":"css"]({width:p+"%"},u.animate)}if(v==="max"&&this.orientation==="horizontal"){this.range[q?"animate":"css"]({width:100-p+"%"},{queue:false,duration:u.animate})}if(v==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[q?"animate":"css"]({height:p+"%"},u.animate)}if(v==="max"&&this.orientation==="vertical"){this.range[q?"animate":"css"]({height:100-p+"%"},{queue:false,duration:u.animate})}}}});b.extend(b.ui.slider,{version:"1.8.5"})})(jQuery);(function(h,g){function f(){return ++e}function c(){return ++b}var e=0,b=0;h.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(d,k){if(d=="selected"){this.options.collapsible&&k==this.options.selected||this.select(k)}else{this.options[d]=k;this._tabify()}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+f()},_sanitizeSelector:function(d){return d.replace(/:/g,"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+c());return h.cookie.apply(null,[d].concat(h.makeArray(arguments)))},_ui:function(d,k){return{tab:d,panel:k,index:this.anchors.index(d)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=h(this);d.html(d.data("label.tabs")).removeData("label.tabs")})},_tabify:function(A){function x(k,m){k.css("display","");!h.support.opacity&&m.opacity&&k[0].style.removeAttribute("filter")}var z=this,y=this.options,w=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=h(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return h("a",this)[0]});this.panels=h([]);this.anchors.each(function(n,r){var m=h(r).attr("href"),k=m.split("#")[0],o;if(k&&(k===location.toString().split("#")[0]||(o=h("base")[0])&&k===o.href)){m=r.hash;r.href=m}if(w.test(m)){z.panels=z.panels.add(z._sanitizeSelector(m))}else{if(m&&m!=="#"){h.data(r,"href.tabs",m);h.data(r,"load.tabs",m.replace(/#.*$/,""));m=z._tabId(r);r.href="#"+m;r=h("#"+m);if(!r.length){r=h(y.panelTemplate).attr("id",m).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(z.panels[n-1]||z.list);r.data("destroy.tabs",true)}z.panels=z.panels.add(r)}else{y.disabled.push(n)}}});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(y.selected===g){location.hash&&this.anchors.each(function(k,m){if(m.hash==location.hash){y.selected=k;return false}});if(typeof y.selected!=="number"&&y.cookie){y.selected=parseInt(z._cookie(),10)}if(typeof y.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){y.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}y.selected=y.selected||(this.lis.length?0:-1)}else{if(y.selected===null){y.selected=-1}}y.selected=y.selected>=0&&this.anchors[y.selected]||y.selected<0?y.selected:0;y.disabled=h.unique(y.disabled.concat(h.map(this.lis.filter(".ui-state-disabled"),function(k){return z.lis.index(k)}))).sort();h.inArray(y.selected,y.disabled)!=-1&&y.disabled.splice(h.inArray(y.selected,y.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(y.selected>=0&&this.anchors.length){this.panels.eq(y.selected).removeClass("ui-tabs-hide");this.lis.eq(y.selected).addClass("ui-tabs-selected ui-state-active");z.element.queue("tabs",function(){z._trigger("show",null,z._ui(z.anchors[y.selected],z.panels[y.selected]))});this.load(y.selected)}h(window).bind("unload",function(){z.lis.add(z.anchors).unbind(".tabs");z.lis=z.anchors=z.panels=null})}else{y.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[y.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");y.cookie&&this._cookie(y.selected,y.cookie);A=0;for(var v;v=this.lis[A];A++){h(v)[h.inArray(A,y.disabled)!=-1&&!h(v).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}y.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(y.event!=="mouseover"){var u=function(k,m){m.is(":not(.ui-state-disabled)")&&m.addClass("ui-state-"+k)},p=function(k,m){m.removeClass("ui-state-"+k)};this.lis.bind("mouseover.tabs",function(){u("hover",h(this))});this.lis.bind("mouseout.tabs",function(){p("hover",h(this))});this.anchors.bind("focus.tabs",function(){u("focus",h(this).closest("li"))});this.anchors.bind("blur.tabs",function(){p("focus",h(this).closest("li"))})}var q,l;if(y.fx){if(h.isArray(y.fx)){q=y.fx[0];l=y.fx[1]}else{q=l=y.fx}}var d=l?function(k,m){h(k).closest("li").addClass("ui-tabs-selected ui-state-active");m.hide().removeClass("ui-tabs-hide").animate(l,l.duration||"normal",function(){x(m,l);z._trigger("show",null,z._ui(k,m[0]))})}:function(k,m){h(k).closest("li").addClass("ui-tabs-selected ui-state-active");m.removeClass("ui-tabs-hide");z._trigger("show",null,z._ui(k,m[0]))},B=q?function(k,m){m.animate(q,q.duration||"normal",function(){z.lis.removeClass("ui-tabs-selected ui-state-active");m.addClass("ui-tabs-hide");x(m,q);z.element.dequeue("tabs")})}:function(k,m){z.lis.removeClass("ui-tabs-selected ui-state-active");m.addClass("ui-tabs-hide");z.element.dequeue("tabs")};this.anchors.bind(y.event+".tabs",function(){var n=this,o=h(n).closest("li"),m=z.panels.filter(":not(.ui-tabs-hide)"),k=h(z._sanitizeSelector(n.hash));if(o.hasClass("ui-tabs-selected")&&!y.collapsible||o.hasClass("ui-state-disabled")||o.hasClass("ui-state-processing")||z.panels.filter(":animated").length||z._trigger("select",null,z._ui(this,k[0]))===false){this.blur();return false}y.selected=z.anchors.index(this);z.abort();if(y.collapsible){if(o.hasClass("ui-tabs-selected")){y.selected=-1;y.cookie&&z._cookie(y.selected,y.cookie);z.element.queue("tabs",function(){B(n,m)}).dequeue("tabs");this.blur();return false}else{if(!m.length){y.cookie&&z._cookie(y.selected,y.cookie);z.element.queue("tabs",function(){d(n,k)});z.load(z.anchors.index(this));this.blur();return false}}}y.cookie&&z._cookie(y.selected,y.cookie);if(k.length){m.length&&z.element.queue("tabs",function(){B(n,m)});z.element.queue("tabs",function(){d(n,k)});z.load(z.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}h.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 l=h.data(this,"href.tabs");if(l){this.href=l}var k=h(this).unbind(".tabs");h.each(["href","load","cache"],function(n,m){k.removeData(m+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){h.data(this,"destroy.tabs")?h(this).remove():h(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(k,n,d){if(d===g){d=this.anchors.length}var o=this,m=this.options;n=h(m.tabTemplate.replace(/#\{href\}/g,k).replace(/#\{label\}/g,n));k=!k.indexOf("#")?k.replace("#",""):this._tabId(h("a",n)[0]);n.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var l=h("#"+k);l.length||(l=h(m.panelTemplate).attr("id",k).data("destroy.tabs",true));l.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(d>=this.lis.length){n.appendTo(this.list);l.appendTo(this.list[0].parentNode)}else{n.insertBefore(this.lis[d]);l.insertBefore(this.panels[d])}m.disabled=h.map(m.disabled,function(p){return p>=d?++p:p});this._tabify();if(this.anchors.length==1){m.selected=0;n.addClass("ui-tabs-selected ui-state-active");l.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){o._trigger("show",null,o._ui(o.anchors[0],o.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[d],this.panels[d]));return this},remove:function(k){k=this._getIndex(k);var l=this.options,d=this.lis.eq(k).remove(),m=this.panels.eq(k).remove();if(d.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(k+(k+1<this.anchors.length?1:-1))}l.disabled=h.map(h.grep(l.disabled,function(n){return n!=k}),function(n){return n>=k?--n:n});this._tabify();this._trigger("remove",null,this._ui(d.find("a")[0],m[0]));return this},enable:function(d){d=this._getIndex(d);var k=this.options;if(h.inArray(d,k.disabled)!=-1){this.lis.eq(d).removeClass("ui-state-disabled");k.disabled=h.grep(k.disabled,function(l){return l!=d});this._trigger("enable",null,this._ui(this.anchors[d],this.panels[d]));return this}},disable:function(d){d=this._getIndex(d);var k=this.options;if(d!=k.selected){this.lis.eq(d).addClass("ui-state-disabled");k.disabled.push(d);k.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[d],this.panels[d]))}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(k){k=this._getIndex(k);var n=this,d=this.options,o=this.anchors.eq(k)[0],m=h.data(o,"load.tabs");this.abort();if(!m||this.element.queue("tabs").length!==0&&h.data(o,"cache.tabs")){this.element.dequeue("tabs")}else{this.lis.eq(k).addClass("ui-state-processing");if(d.spinner){var l=h("span",o);l.data("label.tabs",l.html()).html(d.spinner)}this.xhr=h.ajax(h.extend({},d.ajaxOptions,{url:m,success:function(q,r){h(n._sanitizeSelector(o.hash)).html(q);n._cleanup();d.cache&&h.data(o,"cache.tabs",true);n._trigger("load",null,n._ui(n.anchors[k],n.panels[k]));try{d.ajaxOptions.success(q,r)}catch(p){}},error:function(q,r){n._cleanup();n._trigger("load",null,n._ui(n.anchors[k],n.panels[k]));try{d.ajaxOptions.error(q,r,k,o)}catch(p){}}}));n.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(d,k){this.anchors.eq(d).removeData("cache.tabs").data("load.tabs",k);return this},length:function(){return this.anchors.length}});h.extend(h.ui.tabs,{version:"1.8.5"});h.extend(h.ui.tabs.prototype,{rotation:null,rotate:function(k,m){var d=this,n=this.options,l=d._rotate||(d._rotate=function(o){clearTimeout(d.rotation);d.rotation=setTimeout(function(){var p=n.selected;d.select(++p<d.anchors.length?p:0)},k);o&&o.stopPropagation()});m=d._unrotate||(d._unrotate=!m?function(o){o.clientX&&d.rotate(null)}:function(){t=n.selected;l()});if(k){this.element.bind("tabsshow",l);this.anchors.bind(n.event+".tabs",m);l()}else{clearTimeout(d.rotation);this.element.unbind("tabsshow",l);this.anchors.unbind(n.event+".tabs",m);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(d,e){d.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=d("<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();d.Widget.prototype.destroy.apply(this,arguments)},value:function(b){if(b===e){return this._value()}this._setOption("value",b);return this},_setOption:function(b,c){if(b==="value"){this.options.value=c;this._refreshValue();this._trigger("change")}d.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)}});d.extend(d.ui.progressbar,{version:"1.8.5"})})(jQuery);jQuery.effects||function(v,u){function h(k){var f;if(k&&k.constructor==Array&&k.length==3){return k}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(k)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(k)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(k)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(k)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(/rgba\(0, 0, 0, 0\)/.exec(k)){return g.transparent}return g[v.trim(k).toLowerCase()]}function b(l,k){var f;do{f=v.curCSS(l,k);if(f!=""&&f!="transparent"||v.nodeName(l,"body")){break}k="backgroundColor"}while(l=l.parentNode);return h(f)}function e(){var n=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,k={},f,m;if(n&&n.length&&n[0]&&n[n[0]]){for(var l=n.length;l--;){f=n[l];if(typeof n[f]=="string"){m=f.replace(/\-(\w)/g,function(p,o){return o.toUpperCase()});k[m]=n[f]}}}else{for(f in n){if(typeof n[f]==="string"){k[f]=n[f]}}}return k}function d(l){var k,f;for(k in l){f=l[k];if(f==null||v.isFunction(f)||k in x||/scrollbar/.test(k)||!/color/i.test(k)&&isNaN(parseFloat(f))){delete l[k]}}return l}function w(m,k){var f={_:0},l;for(l in k){if(m[l]!=k[l]){f[l]=k[l]}}return f}function q(m,k,f,l){if(typeof m=="object"){l=k;f=null;k=m;m=k.effect}if(v.isFunction(k)){l=k;f=null;k={}}if(typeof k=="number"||v.fx.speeds[k]){l=f;f=k;k={}}if(v.isFunction(f)){l=f;f=null}k=k||{};f=f||k.duration;f=v.fx.off?0:typeof f=="number"?f:v.fx.speeds[f]||v.fx.speeds._default;l=l||k.complete;return[m,k,f,l]}v.effects={};v.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(k,f){v.fx.step[f]=function(l){if(!l.colorInit){l.start=b(l.elem,f);l.end=h(l.end);l.colorInit=true}l.elem.style[f]="rgb("+Math.max(Math.min(parseInt(l.pos*(l.end[0]-l.start[0])+l.start[0],10),255),0)+","+Math.max(Math.min(parseInt(l.pos*(l.end[1]-l.start[1])+l.start[1],10),255),0)+","+Math.max(Math.min(parseInt(l.pos*(l.end[2]-l.start[2])+l.start[2],10),255),0)+")"}});var g={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"],x={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};v.effects.animateClass=function(m,k,f,l){if(v.isFunction(f)){l=f;f=null}return this.each(function(){var y=v(this),p=y.attr("style")||" ",o=d(e.call(this)),r,n=y.attr("className");v.each(c,function(z,A){m[A]&&y[A+"Class"](m[A])});r=d(e.call(this));y.attr("className",n);y.animate(w(o,r),k,f,function(){v.each(c,function(z,A){m[A]&&y[A+"Class"](m[A])});if(typeof y.attr("style")=="object"){y.attr("style").cssText="";y.attr("style").cssText=p}else{y.attr("style",p)}l&&l.apply(this,arguments)})})};v.fn.extend({_addClass:v.fn.addClass,addClass:function(m,k,f,l){return k?v.effects.animateClass.apply(this,[{add:m},k,f,l]):this._addClass(m)},_removeClass:v.fn.removeClass,removeClass:function(m,k,f,l){return k?v.effects.animateClass.apply(this,[{remove:m},k,f,l]):this._removeClass(m)},_toggleClass:v.fn.toggleClass,toggleClass:function(n,k,f,m,l){return typeof k=="boolean"||k===u?f?v.effects.animateClass.apply(this,[k?{add:n}:{remove:n},f,m,l]):this._toggleClass(n,k):v.effects.animateClass.apply(this,[{toggle:n},k,f,m])},switchClass:function(n,k,f,m,l){return v.effects.animateClass.apply(this,[{add:k,remove:n},f,m,l])}});v.extend(v.effects,{version:"1.8.5",save:function(l,k){for(var f=0;f<k.length;f++){k[f]!==null&&l.data("ec.storage."+k[f],l[0].style[k[f]])}},restore:function(l,k){for(var f=0;f<k.length;f++){k[f]!==null&&l.css(k[f],l.data("ec.storage."+k[f]))}},setMode:function(k,f){if(f=="toggle"){f=k.is(":hidden")?"show":"hide"}return f},getBaseline:function(l,k){var f;switch(l[0]){case"top":f=0;break;case"middle":f=0.5;break;case"bottom":f=1;break;default:f=l[0]/k.height}switch(l[1]){case"left":l=0;break;case"center":l=0.5;break;case"right":l=1;break;default:l=l[1]/k.width}return{x:l,y:f}},createWrapper:function(l){if(l.parent().is(".ui-effects-wrapper")){return l.parent()}var k={width:l.outerWidth(true),height:l.outerHeight(true),"float":l.css("float")},f=v("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});l.wrap(f);f=l.parent();if(l.css("position")=="static"){f.css({position:"relative"});l.css({position:"relative"})}else{v.extend(k,{position:l.css("position"),zIndex:l.css("z-index")});v.each(["top","left","bottom","right"],function(n,m){k[m]=l.css(m);if(isNaN(parseInt(k[m],10))){k[m]="auto"}});l.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(m,k,f,l){l=l||{};v.each(k,function(o,n){unit=m.cssUnit(n);if(unit[0]>0){l[n]=unit[0]*f+unit[1]}});return l}});v.fn.extend({effect:function(l){var k=q.apply(this,arguments);k={options:k[1],duration:k[2],callback:k[3]};var f=v.effects[l];return f&&!v.fx.off?f.call(this,k):this},_show:v.fn.show,show:function(k){if(!k||typeof k=="number"||v.fx.speeds[k]||!v.effects[k]){return this._show.apply(this,arguments)}else{var f=q.apply(this,arguments);f[1].mode="show";return this.effect.apply(this,f)}},_hide:v.fn.hide,hide:function(k){if(!k||typeof k=="number"||v.fx.speeds[k]||!v.effects[k]){return this._hide.apply(this,arguments)}else{var f=q.apply(this,arguments);f[1].mode="hide";return this.effect.apply(this,f)}},__toggle:v.fn.toggle,toggle:function(k){if(!k||typeof k=="number"||v.fx.speeds[k]||!v.effects[k]||typeof k=="boolean"||v.isFunction(k)){return this.__toggle.apply(this,arguments)}else{var f=q.apply(this,arguments);f[1].mode="toggle";return this.effect.apply(this,f)}},cssUnit:function(l){var k=this.css(l),f=[];v.each(["em","px","%","pt"],function(n,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(n,k,f,m,l){return v.easing[v.easing.def](n,k,f,m,l)},easeInQuad:function(n,k,f,m,l){return m*(k/=l)*k+f},easeOutQuad:function(n,k,f,m,l){return -m*(k/=l)*(k-2)+f},easeInOutQuad:function(n,k,f,m,l){if((k/=l/2)<1){return m/2*k*k+f}return -m/2*(--k*(k-2)-1)+f},easeInCubic:function(n,k,f,m,l){return m*(k/=l)*k*k+f},easeOutCubic:function(n,k,f,m,l){return m*((k=k/l-1)*k*k+1)+f},easeInOutCubic:function(n,k,f,m,l){if((k/=l/2)<1){return m/2*k*k*k+f}return m/2*((k-=2)*k*k+2)+f},easeInQuart:function(n,k,f,m,l){return m*(k/=l)*k*k*k+f},easeOutQuart:function(n,k,f,m,l){return -m*((k=k/l-1)*k*k*k-1)+f},easeInOutQuart:function(n,k,f,m,l){if((k/=l/2)<1){return m/2*k*k*k*k+f}return -m/2*((k-=2)*k*k*k-2)+f},easeInQuint:function(n,k,f,m,l){return m*(k/=l)*k*k*k*k+f},easeOutQuint:function(n,k,f,m,l){return m*((k=k/l-1)*k*k*k*k+1)+f},easeInOutQuint:function(n,k,f,m,l){if((k/=l/2)<1){return m/2*k*k*k*k*k+f}return m/2*((k-=2)*k*k*k*k+2)+f},easeInSine:function(n,k,f,m,l){return -m*Math.cos(k/l*(Math.PI/2))+m+f},easeOutSine:function(n,k,f,m,l){return m*Math.sin(k/l*(Math.PI/2))+f},easeInOutSine:function(n,k,f,m,l){return -m/2*(Math.cos(Math.PI*k/l)-1)+f},easeInExpo:function(n,k,f,m,l){return k==0?f:m*Math.pow(2,10*(k/l-1))+f},easeOutExpo:function(n,k,f,m,l){return k==l?f+m:m*(-Math.pow(2,-10*k/l)+1)+f},easeInOutExpo:function(n,k,f,m,l){if(k==0){return f}if(k==l){return f+m}if((k/=l/2)<1){return m/2*Math.pow(2,10*(k-1))+f}return m/2*(-Math.pow(2,-10*--k)+2)+f},easeInCirc:function(n,k,f,m,l){return -m*(Math.sqrt(1-(k/=l)*k)-1)+f},easeOutCirc:function(n,k,f,m,l){return m*Math.sqrt(1-(k=k/l-1)*k)+f},easeInOutCirc:function(n,k,f,m,l){if((k/=l/2)<1){return -m/2*(Math.sqrt(1-k*k)-1)+f}return m/2*(Math.sqrt(1-(k-=2)*k)+1)+f},easeInElastic:function(p,k,f,o,n){p=1.70158;var m=0,l=o;if(k==0){return f}if((k/=n)==1){return f+o}m||(m=n*0.3);if(l<Math.abs(o)){l=o;p=m/4}else{p=m/(2*Math.PI)*Math.asin(o/l)}return -(l*Math.pow(2,10*(k-=1))*Math.sin((k*n-p)*2*Math.PI/m))+f},easeOutElastic:function(p,k,f,o,n){p=1.70158;var m=0,l=o;if(k==0){return f}if((k/=n)==1){return f+o}m||(m=n*0.3);if(l<Math.abs(o)){l=o;p=m/4}else{p=m/(2*Math.PI)*Math.asin(o/l)}return l*Math.pow(2,-10*k)*Math.sin((k*n-p)*2*Math.PI/m)+o+f},easeInOutElastic:function(p,k,f,o,n){p=1.70158;var m=0,l=o;if(k==0){return f}if((k/=n/2)==2){return f+o}m||(m=n*0.3*1.5);if(l<Math.abs(o)){l=o;p=m/4}else{p=m/(2*Math.PI)*Math.asin(o/l)}if(k<1){return -0.5*l*Math.pow(2,10*(k-=1))*Math.sin((k*n-p)*2*Math.PI/m)+f}return l*Math.pow(2,-10*(k-=1))*Math.sin((k*n-p)*2*Math.PI/m)*0.5+o+f},easeInBack:function(o,k,f,n,m,l){if(l==u){l=1.70158}return n*(k/=m)*k*((l+1)*k-l)+f},easeOutBack:function(o,k,f,n,m,l){if(l==u){l=1.70158}return n*((k=k/m-1)*k*((l+1)*k+l)+1)+f},easeInOutBack:function(o,k,f,n,m,l){if(l==u){l=1.70158}if((k/=m/2)<1){return n/2*k*k*(((l*=1.525)+1)*k-l)+f}return n/2*((k-=2)*k*(((l*=1.525)+1)*k+l)+2)+f},easeInBounce:function(n,k,f,m,l){return m-v.easing.easeOutBounce(n,l-k,0,m,l)+f},easeOutBounce:function(n,k,f,m,l){return(k/=l)<1/2.75?m*7.5625*k*k+f:k<2/2.75?m*(7.5625*(k-=1.5/2.75)*k+0.75)+f:k<2.5/2.75?m*(7.5625*(k-=2.25/2.75)*k+0.9375)+f:m*(7.5625*(k-=2.625/2.75)*k+0.984375)+f},easeInOutBounce:function(n,k,f,m,l){if(k<l/2){return v.easing.easeInBounce(n,k*2,0,m,l)*0.5+f}return v.easing.easeOutBounce(n,k*2-l,0,m,l)*0.5+m*0.5+f}})}(jQuery);(function(c){c.effects.blind=function(b){return this.queue(function(){var k=c(this),n=["position","top","left"],o=c.effects.setMode(k,b.options.mode||"hide"),q=b.options.direction||"vertical";c.effects.save(k,n);k.show();var p=c.effects.createWrapper(k).css({overflow:"hidden"}),m=q=="vertical"?"height":"width";q=q=="vertical"?p.height():p.width();o=="show"&&p.css(m,0);var l={};l[m]=o=="show"?q:0;p.animate(l,b.duration,b.options.easing,function(){o=="hide"&&k.hide();c.effects.restore(k,n);c.effects.removeWrapper(k);b.callback&&b.callback.apply(k[0],arguments);k.dequeue()})})}})(jQuery);(function(b){b.effects.bounce=function(c){return this.queue(function(){var y=b(this),n=["position","top","left"],r=b.effects.setMode(y,c.options.mode||"effect"),w=c.options.direction||"up",x=c.options.distance||20,e=c.options.times||5,q=c.duration||250;/show|hide/.test(r)&&n.push("opacity");b.effects.save(y,n);y.show();b.effects.createWrapper(y);var v=w=="up"||w=="down"?"top":"left";w=w=="up"||w=="left"?"pos":"neg";x=c.options.distance||(v=="top"?y.outerHeight({margin:true})/3:y.outerWidth({margin:true})/3);if(r=="show"){y.css("opacity",0).css(v,w=="pos"?-x:x)}if(r=="hide"){x/=e*2}r!="hide"&&e--;if(r=="show"){var u={opacity:1};u[v]=(w=="pos"?"+=":"-=")+x;y.animate(u,q/2,c.options.easing);x/=2;e--}for(u=0;u<e;u++){var p={},o={};p[v]=(w=="pos"?"-=":"+=")+x;o[v]=(w=="pos"?"+=":"-=")+x;y.animate(p,q/2,c.options.easing).animate(o,q/2,c.options.easing);x=r=="hide"?x*2:x/2}if(r=="hide"){u={opacity:0};u[v]=(w=="pos"?"-=":"+=")+x;y.animate(u,q/2,c.options.easing,function(){y.hide();b.effects.restore(y,n);b.effects.removeWrapper(y);c.callback&&c.callback.apply(this,arguments)})}else{p={};o={};p[v]=(w=="pos"?"-=":"+=")+x;o[v]=(w=="pos"?"+=":"-=")+x;y.animate(p,q/2,c.options.easing).animate(o,q/2,c.options.easing,function(){b.effects.restore(y,n);b.effects.removeWrapper(y);c.callback&&c.callback.apply(this,arguments)})}y.queue("fx",function(){y.dequeue()});y.dequeue()})}})(jQuery);(function(c){c.effects.clip=function(b){return this.queue(function(){var e=c(this),k=["position","top","left","height","width"],n=c.effects.setMode(e,b.options.mode||"hide"),p=b.options.direction||"vertical";c.effects.save(e,k);e.show();var o=c.effects.createWrapper(e).css({overflow:"hidden"});o=e[0].tagName=="IMG"?o:e;var m={size:p=="vertical"?"height":"width",position:p=="vertical"?"top":"left"};p=p=="vertical"?o.height():o.width();if(n=="show"){o.css(m.size,0);o.css(m.position,p/2)}var l={};l[m.size]=n=="show"?p:0;l[m.position]=n=="show"?0:p/2;o.animate(l,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){n=="hide"&&e.hide();c.effects.restore(e,k);c.effects.removeWrapper(e);b.callback&&b.callback.apply(e[0],arguments);e.dequeue()}})})}})(jQuery);(function(b){b.effects.drop=function(c){return this.queue(function(){var k=b(this),m=["position","top","left","opacity"],p=b.effects.setMode(k,c.options.mode||"hide"),d=c.options.direction||"left";b.effects.save(k,m);k.show();b.effects.createWrapper(k);var o=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";var n=c.options.distance||(o=="top"?k.outerHeight({margin:true})/2:k.outerWidth({margin:true})/2);if(p=="show"){k.css("opacity",0).css(o,d=="pos"?-n:n)}var l={opacity:p=="show"?1:0};l[o]=(p=="show"?d=="pos"?"+=":"-=":d=="pos"?"-=":"+=")+n;k.animate(l,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){p=="hide"&&k.hide();b.effects.restore(k,m);b.effects.removeWrapper(k);c.callback&&c.callback.apply(this,arguments);k.dequeue()}})})}})(jQuery);(function(b){b.effects.explode=function(c){return this.queue(function(){var r=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3,q=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3;c.options.mode=c.options.mode=="toggle"?b(this).is(":visible")?"hide":"show":c.options.mode;var k=b(this).show().css("visibility","hidden"),n=k.offset();n.top-=parseInt(k.css("marginTop"),10)||0;n.left-=parseInt(k.css("marginLeft"),10)||0;for(var m=k.outerWidth(true),l=k.outerHeight(true),p=0;p<r;p++){for(var o=0;o<q;o++){k.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*(m/q),top:-p*(l/r)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:m/q,height:l/r,left:n.left+o*(m/q)+(c.options.mode=="show"?(o-Math.floor(q/2))*(m/q):0),top:n.top+p*(l/r)+(c.options.mode=="show"?(p-Math.floor(r/2))*(l/r):0),opacity:c.options.mode=="show"?0:1}).animate({left:n.left+o*(m/q)+(c.options.mode=="show"?0:(o-Math.floor(q/2))*(m/q)),top:n.top+p*(l/r)+(c.options.mode=="show"?0:(p-Math.floor(r/2))*(l/r)),opacity:c.options.mode=="show"?1:0},c.duration||500)}}setTimeout(function(){c.options.mode=="show"?k.css({visibility:"visible"}):k.css({visibility:"visible"}).hide();c.callback&&c.callback.apply(k[0]);k.dequeue();b("div.ui-effects-explode").remove()},c.duration||500)})}})(jQuery);(function(c){c.effects.fade=function(b){return this.queue(function(){var f=c(this),e=c.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(b){b.effects.fold=function(c){return this.queue(function(){var x=b(this),o=["position","top","left"],w=b.effects.setMode(x,c.options.mode||"hide"),r=c.options.size||15,q=!!c.options.horizFirst,n=c.duration?c.duration/2:b.fx.speeds._default/2;b.effects.save(x,o);x.show();var v=b.effects.createWrapper(x).css({overflow:"hidden"}),u=w=="show"!=q,m=u?["width","height"]:["height","width"];u=u?[v.width(),v.height()]:[v.height(),v.width()];var p=/([0-9]+)%/.exec(r);if(p){r=parseInt(p[1],10)/100*u[w=="hide"?0:1]}if(w=="show"){v.css(q?{height:0,width:r}:{height:r,width:0})}q={};p={};q[m[0]]=w=="show"?u[0]:r;p[m[1]]=w=="show"?u[1]:0;v.animate(q,n,c.options.easing).animate(p,n,c.options.easing,function(){w=="hide"&&x.hide();b.effects.restore(x,o);b.effects.removeWrapper(x);c.callback&&c.callback.apply(x[0],arguments);x.dequeue()})})}})(jQuery);(function(c){c.effects.highlight=function(b){return this.queue(function(){var g=c(this),k=["backgroundImage","backgroundColor","opacity"],l=c.effects.setMode(g,b.options.mode||"show"),h={backgroundColor:g.css("backgroundColor")};if(l=="hide"){h.opacity=0}c.effects.save(g,k);g.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(h,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){l=="hide"&&g.hide();c.effects.restore(g,k);l=="show"&&!c.support.opacity&&this.style.removeAttribute("filter");b.callback&&b.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);(function(b){b.effects.pulsate=function(c){return this.queue(function(){var d=b(this),e=b.effects.setMode(d,c.options.mode||"show");times=(c.options.times||5)*2-1;duration=c.duration?c.duration/2:b.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,c.options.easing);animateTo=(animateTo+1)%2}d.animate({opacity:animateTo},duration,c.options.easing,function(){animateTo==0&&d.hide();c.callback&&c.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()}).dequeue()})}})(jQuery);(function(b){b.effects.puff=function(c){return this.queue(function(){var d=b(this),m=b.effects.setMode(d,c.options.mode||"hide"),l=parseInt(c.options.percent,10)||150,k=l/100,f={height:d.height(),width:d.width()};b.extend(c.options,{fade:true,mode:m,percent:m=="hide"?l:100,from:m=="hide"?f:{height:f.height*k,width:f.width*k}});d.effect("scale",c.options,c.duration,c.callback);d.dequeue()})};b.effects.scale=function(c){return this.queue(function(){var d=b(this),o=b.extend(true,{},c.options),m=b.effects.setMode(d,c.options.mode||"effect"),l=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:m=="hide"?0:100),k=c.options.direction||"both",n=c.options.origin;if(m!="effect"){o.origin=n||["middle","center"];o.restore=true}n={height:d.height(),width:d.width()};d.from=c.options.from||(m=="show"?{height:0,width:0}:n);l={y:k!="horizontal"?l/100:1,x:k!="vertical"?l/100:1};d.to={height:n.height*l.y,width:n.width*l.x};if(c.options.fade){if(m=="show"){d.from.opacity=0;d.to.opacity=1}if(m=="hide"){d.from.opacity=1;d.to.opacity=0}}o.from=d.from;o.to=d.to;o.mode=m;d.effect("size",o,c.duration,c.callback);d.dequeue()})};b.effects.size=function(c){return this.queue(function(){var D=b(this),B=["position","top","left","width","height","overflow","opacity"],z=["position","top","left","overflow","opacity"],y=["width","height","overflow"],x=["fontSize"],A=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],v=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],o=b.effects.setMode(D,c.options.mode||"effect"),q=c.options.restore||false,r=c.options.scale||"both",u=c.options.origin,w={height:D.height(),width:D.width()};D.from=c.options.from||w;D.to=c.options.to||w;if(u){u=b.effects.getBaseline(u,w);D.from.top=(w.height-D.from.height)*u.y;D.from.left=(w.width-D.from.width)*u.x;D.to.top=(w.height-D.to.height)*u.y;D.to.left=(w.width-D.to.width)*u.x}var C={from:{y:D.from.height/w.height,x:D.from.width/w.width},to:{y:D.to.height/w.height,x:D.to.width/w.width}};if(r=="box"||r=="both"){if(C.from.y!=C.to.y){B=B.concat(A);D.from=b.effects.setTransition(D,A,C.from.y,D.from);D.to=b.effects.setTransition(D,A,C.to.y,D.to)}if(C.from.x!=C.to.x){B=B.concat(v);D.from=b.effects.setTransition(D,v,C.from.x,D.from);D.to=b.effects.setTransition(D,v,C.to.x,D.to)}}if(r=="content"||r=="both"){if(C.from.y!=C.to.y){B=B.concat(x);D.from=b.effects.setTransition(D,x,C.from.y,D.from);D.to=b.effects.setTransition(D,x,C.to.y,D.to)}}b.effects.save(D,q?B:z);D.show();b.effects.createWrapper(D);D.css("overflow","hidden").css(D.from);if(r=="content"||r=="both"){A=A.concat(["marginTop","marginBottom"]).concat(x);v=v.concat(["marginLeft","marginRight"]);y=B.concat(A).concat(v);D.find("*[width]").each(function(){child=b(this);q&&b.effects.save(child,y);var d={height:child.height(),width:child.width()};child.from={height:d.height*C.from.y,width:d.width*C.from.x};child.to={height:d.height*C.to.y,width:d.width*C.to.x};if(C.from.y!=C.to.y){child.from=b.effects.setTransition(child,A,C.from.y,child.from);child.to=b.effects.setTransition(child,A,C.to.y,child.to)}if(C.from.x!=C.to.x){child.from=b.effects.setTransition(child,v,C.from.x,child.from);child.to=b.effects.setTransition(child,v,C.to.x,child.to)}child.css(child.from);child.animate(child.to,c.duration,c.options.easing,function(){q&&b.effects.restore(child,y)})})}D.animate(D.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){D.to.opacity===0&&D.css("opacity",D.from.opacity);o=="hide"&&D.hide();b.effects.restore(D,q?B:z);b.effects.removeWrapper(D);c.callback&&c.callback.apply(this,arguments);D.dequeue()}})})}})(jQuery);(function(b){b.effects.shake=function(c){return this.queue(function(){var w=b(this),n=["position","top","left"];b.effects.setMode(w,c.options.mode||"effect");var v=c.options.direction||"left",u=c.options.distance||20,d=c.options.times||3,r=c.duration||c.options.duration||140;b.effects.save(w,n);w.show();b.effects.createWrapper(w);var q=v=="up"||v=="down"?"top":"left",p=v=="up"||v=="left"?"pos":"neg";v={};var o={},m={};v[q]=(p=="pos"?"-=":"+=")+u;o[q]=(p=="pos"?"+=":"-=")+u*2;m[q]=(p=="pos"?"-=":"+=")+u*2;w.animate(v,r,c.options.easing);for(u=1;u<d;u++){w.animate(o,r,c.options.easing).animate(m,r,c.options.easing)}w.animate(o,r,c.options.easing).animate(v,r/2,c.options.easing,function(){b.effects.restore(w,n);b.effects.removeWrapper(w);c.callback&&c.callback.apply(this,arguments)});w.queue("fx",function(){w.dequeue()});w.dequeue()})}})(jQuery);(function(b){b.effects.slide=function(c){return this.queue(function(){var k=b(this),m=["position","top","left"],p=b.effects.setMode(k,c.options.mode||"show"),d=c.options.direction||"left";b.effects.save(k,m);k.show();b.effects.createWrapper(k).css({overflow:"hidden"});var o=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";var n=c.options.distance||(o=="top"?k.outerHeight({margin:true}):k.outerWidth({margin:true}));if(p=="show"){k.css(o,d=="pos"?-n:n)}var l={};l[o]=(p=="show"?d=="pos"?"+=":"-=":d=="pos"?"-=":"+=")+n;k.animate(l,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){p=="hide"&&k.hide();b.effects.restore(k,m);b.effects.removeWrapper(k);c.callback&&c.callback.apply(this,arguments);k.dequeue()}})})}})(jQuery);(function(b){b.effects.transfer=function(c){return this.queue(function(){var e=b(this),k=b(c.options.to),h=k.offset();k={top:h.top,left:h.left,height:k.innerHeight(),width:k.innerWidth()};h=e.offset();var g=b('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(c.options.className).css({top:h.top,left:h.left,height:e.innerHeight(),width:e.innerWidth(),position:"absolute"}).animate(k,c.duration,c.options.easing,function(){g.remove();c.callback&&c.callback.apply(e[0],arguments);e.dequeue()})})}})(jQuery);
/*!
 * jQuery Form Plugin
 * version: 2.67 (12-MAR-2011)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(function(c){c.fn.ajaxSubmit=function(z){if(!this.length){b("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof z=="function"){z={success:z}}var l=this.attr("action");var e=(typeof l==="string")?c.trim(l):"";if(e){e=(e.match(/^([^#]+)/)||[])[1]}e=e||window.location.href||"";z=c.extend(true,{url:e,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},z);var A={};this.trigger("form-pre-serialize",[this,z,A]);if(A.veto){b("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(z.beforeSerialize&&z.beforeSerialize(this,z)===false){b("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var g,w,r=this.formToArray(z.semantic);if(z.data){z.extraData=z.data;for(g in z.data){if(z.data[g] instanceof Array){for(var m in z.data[g]){r.push({name:g,value:z.data[g][m]})}}else{w=z.data[g];w=c.isFunction(w)?w():w;r.push({name:g,value:w})}}}if(z.beforeSubmit&&z.beforeSubmit(r,this,z)===false){b("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[r,this,z,A]);if(A.veto){b("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var d=c.param(r);if(z.type.toUpperCase()=="GET"){z.url+=(z.url.indexOf("?")>=0?"&":"?")+d;z.data=null}else{z.data=d}var y=this,p=[];if(z.resetForm){p.push(function(){y.resetForm()})}if(z.clearForm){p.push(function(){y.clearForm()})}if(!z.dataType&&z.target){var x=z.success||function(){};p.push(function(n){var k=z.replaceTarget?"replaceWith":"html";c(z.target)[k](n).each(x,arguments)})}else{if(z.success){p.push(z.success)}}z.success=function(B,n,C){var v=z.context||z;for(var q=0,k=p.length;q<k;q++){p[q].apply(v,[B,n,C||y,y])}};var h=c("input:file",this).length>0;var f="multipart/form-data";var o=(y.attr("enctype")==f||y.attr("encoding")==f);if(z.iframe!==false&&(h||z.iframe||o)){if(z.closeKeepAlive){c.get(z.closeKeepAlive,u)}else{u()}}else{c.ajax(z)}this.trigger("form-submit-notify",[this,z]);return this;function u(){var v=y[0];if(c(":input[name=submit],:input[id=submit]",v).length){alert('Error: Form elements must not have name or id of "submit".');return}var G=c.extend(true,{},c.ajaxSettings,z);G.context=G.context||G;var J="jqFormIO"+(new Date().getTime()),E="_"+J;var B=c('<iframe id="'+J+'" name="'+J+'" src="'+G.iframeSrc+'" />');var F=B[0];B.css({position:"absolute",top:"-1000px",left:"-1000px"});var C={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){b("aborting upload...");var n="aborted";this.aborted=1;B.attr("src",G.iframeSrc);C.error=n;G.error&&G.error.call(G.context,C,"error",n);N&&c.event.trigger("ajaxError",[C,G,n]);G.complete&&G.complete.call(G.context,C,"error")}};var N=G.global;if(N&&!c.active++){c.event.trigger("ajaxStart")}if(N){c.event.trigger("ajaxSend",[C,G])}if(G.beforeSend&&G.beforeSend.call(G.context,C,G)===false){if(G.global){c.active--}return}if(C.aborted){return}var M=0;var D=v.clk;if(D){var K=D.name;if(K&&!D.disabled){G.extraData=G.extraData||{};G.extraData[K]=D.value;if(D.type=="image"){G.extraData[K+".x"]=v.clk_x;G.extraData[K+".y"]=v.clk_y}}}function L(){var T=y.attr("target"),R=y.attr("action");v.setAttribute("target",J);if(v.getAttribute("method")!="POST"){v.setAttribute("method","POST")}if(v.getAttribute("action")!=G.url){v.setAttribute("action",G.url)}if(!G.skipEncodingOverride){y.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(G.timeout){setTimeout(function(){M=true;I()},G.timeout)}var S=[];try{if(G.extraData){for(var U in G.extraData){S.push(c('<input type="hidden" name="'+U+'" value="'+G.extraData[U]+'" />').appendTo(v)[0])}}B.appendTo("body");F.attachEvent?F.attachEvent("onload",I):F.addEventListener("load",I,false);v.submit()}finally{v.setAttribute("action",R);if(T){v.setAttribute("target",T)}else{y.removeAttr("target")}c(S).remove()}}if(G.forceSync){L()}else{setTimeout(L,10)}var P,Q,O=50;function I(){if(C.aborted){return}var W=F.contentWindow?F.contentWindow.document:F.contentDocument?F.contentDocument:F.document;if(!W||W.location.href==G.iframeSrc){return}F.detachEvent?F.detachEvent("onload",I):F.removeEventListener("load",I,false);var S=true;try{if(M){throw"timeout"}var X=G.dataType=="xml"||W.XMLDocument||c.isXMLDoc(W);b("isXml="+X);if(!X&&window.opera&&(W.body==null||W.body.innerHTML=="")){if(--O){b("requeing onLoad callback, DOM not available");setTimeout(I,250);return}}C.responseText=W.body?W.body.innerHTML:W.documentElement?W.documentElement.innerHTML:null;C.responseXML=W.XMLDocument?W.XMLDocument:W;C.getResponseHeader=function(Z){var Y={"content-type":G.dataType};return Y[Z]};var V=/(json|script)/.test(G.dataType);if(V||G.textarea){var R=W.getElementsByTagName("textarea")[0];if(R){C.responseText=R.value}else{if(V){var U=W.getElementsByTagName("pre")[0];var n=W.getElementsByTagName("body")[0];if(U){C.responseText=U.textContent}else{if(n){C.responseText=n.innerHTML}}}}}else{if(G.dataType=="xml"&&!C.responseXML&&C.responseText!=null){C.responseXML=H(C.responseText)}}P=k(C,G.dataType,G)}catch(T){b("error caught:",T);S=false;C.error=T;G.error&&G.error.call(G.context,C,"error",T);N&&c.event.trigger("ajaxError",[C,G,T])}if(C.aborted){b("upload aborted");S=false}if(S){G.success&&G.success.call(G.context,P,"success",C);N&&c.event.trigger("ajaxSuccess",[C,G])}N&&c.event.trigger("ajaxComplete",[C,G]);if(N&&!--c.active){c.event.trigger("ajaxStop")}G.complete&&G.complete.call(G.context,C,S?"success":"error");setTimeout(function(){B.removeData("form-plugin-onload");B.remove();C.responseXML=null},100)}var H=c.parseXML||function(n,R){if(window.ActiveXObject){R=new ActiveXObject("Microsoft.XMLDOM");R.async="false";R.loadXML(n)}else{R=(new DOMParser()).parseFromString(n,"text/xml")}return(R&&R.documentElement&&R.documentElement.nodeName!="parsererror")?R:null};var q=c.parseJSON||function(n){return window["eval"]("("+n+")")};var k=function(V,T,S){var R=V.getResponseHeader("content-type")||"",n=T==="xml"||!T&&R.indexOf("xml")>=0,U=n?V.responseXML:V.responseText;if(n&&U.documentElement.nodeName==="parsererror"){c.error&&c.error("parsererror")}if(S&&S.dataFilter){U=S.dataFilter(U,T)}if(typeof U==="string"){if(T==="json"||!T&&R.indexOf("json")>=0){U=q(U)}else{if(T==="script"||!T&&R.indexOf("javascript")>=0){c.globalEval(U)}}}return U}}};c.fn.ajaxForm=function(d){if(this.length===0){var e={s:this.selector,c:this.context};if(!c.isReady&&e.s){b("DOM not ready, queuing ajaxForm");c(function(){c(e.s,e.c).ajaxForm(d)});return this}b("terminating; zero elements found by selector"+(c.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(f){if(!f.isDefaultPrevented()){f.preventDefault();c(this).ajaxSubmit(d)}}).bind("click.form-plugin",function(l){var k=l.target;var g=c(k);if(!(g.is(":submit,input:image"))){var f=g.closest(":submit");if(f.length==0){return}k=f[0]}var h=this;h.clk=k;if(k.type=="image"){if(l.offsetX!=undefined){h.clk_x=l.offsetX;h.clk_y=l.offsetY}else{if(typeof c.fn.offset=="function"){var m=g.offset();h.clk_x=l.pageX-m.left;h.clk_y=l.pageY-m.top}else{h.clk_x=l.pageX-k.offsetLeft;h.clk_y=l.pageY-k.offsetTop}}}setTimeout(function(){h.clk=h.clk_x=h.clk_y=null},100)})};c.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};c.fn.formToArray=function(r){var q=[];if(this.length===0){return q}var e=this[0];var h=r?e.getElementsByTagName("*"):e.elements;if(!h){return q}var l,k,g,u,f,o,d;for(l=0,o=h.length;l<o;l++){f=h[l];g=f.name;if(!g){continue}if(r&&e.clk&&f.type=="image"){if(!f.disabled&&e.clk==f){q.push({name:g,value:c(f).val()});q.push({name:g+".x",value:e.clk_x},{name:g+".y",value:e.clk_y})}continue}u=c.fieldValue(f,true);if(u&&u.constructor==Array){for(k=0,d=u.length;k<d;k++){q.push({name:g,value:u[k]})}}else{if(u!==null&&typeof u!="undefined"){q.push({name:g,value:u})}}}if(!r&&e.clk){var m=c(e.clk),p=m[0];g=p.name;if(g&&!p.disabled&&p.type=="image"){q.push({name:g,value:m.val()});q.push({name:g+".x",value:e.clk_x},{name:g+".y",value:e.clk_y})}}return q};c.fn.formSerialize=function(d){return c.param(this.formToArray(d))};c.fn.fieldSerialize=function(e){var d=[];this.each(function(){var k=this.name;if(!k){return}var g=c.fieldValue(this,e);if(g&&g.constructor==Array){for(var h=0,f=g.length;h<f;h++){d.push({name:k,value:g[h]})}}else{if(g!==null&&typeof g!="undefined"){d.push({name:this.name,value:g})}}});return c.param(d)};c.fn.fieldValue=function(k){for(var h=[],f=0,d=this.length;f<d;f++){var g=this[f];var e=c.fieldValue(g,k);if(e===null||typeof e=="undefined"||(e.constructor==Array&&!e.length)){continue}e.constructor==Array?c.merge(h,e):h.push(e)}return h};c.fieldValue=function(d,l){var f=d.name,r=d.type,u=d.tagName.toLowerCase();if(l===undefined){l=true}if(l&&(!f||d.disabled||r=="reset"||r=="button"||(r=="checkbox"||r=="radio")&&!d.checked||(r=="submit"||r=="image")&&d.form&&d.form.clk!=d||u=="select"&&d.selectedIndex==-1)){return null}if(u=="select"){var m=d.selectedIndex;if(m<0){return null}var p=[],e=d.options;var h=(r=="select-one");var o=(h?m+1:e.length);for(var g=(h?m:0);g<o;g++){var k=e[g];if(k.selected){var q=k.value;if(!q){q=(k.attributes&&k.attributes.value&&!(k.attributes.value.specified))?k.text:k.value}if(h){return q}p.push(q)}}return p}return c(d).val()};c.fn.clearForm=function(){return this.each(function(){c("input,select,textarea",this).clearFields()})};c.fn.clearFields=c.fn.clearInputs=function(){return this.each(function(){var e=this.type,d=this.tagName.toLowerCase();if(e=="text"||e=="password"||d=="textarea"){this.value=""}else{if(e=="checkbox"||e=="radio"){this.checked=false}else{if(d=="select"){this.selectedIndex=-1}}}})};c.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};c.fn.enable=function(d){if(d===undefined){d=true}return this.each(function(){this.disabled=!d})};c.fn.selected=function(d){if(d===undefined){d=true}return this.each(function(){var e=this.type;if(e=="checkbox"||e=="radio"){this.checked=d}else{if(this.tagName.toLowerCase()=="option"){var f=c(this).parent("select");if(d&&f[0]&&f[0].type=="select-one"){f.find("option").selected(false)}this.selected=d}}})};function b(){if(c.fn.ajaxSubmit.debug){var d="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(d)}else{if(window.opera&&window.opera.postError){window.opera.postError(d)}}}}})(jQuery);(function(e){var b=e.scrollTo=function(d,f,g){e(window).scrollTo(d,f,g)};b.defaults={axis:"xy",duration:parseFloat(e.fn.jquery)>=1.3?0:1};b.window=function(d){return e(window)._scrollable()};e.fn._scrollable=function(){return this.map(function(){var d=this,f=!d.nodeName||e.inArray(d.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!f){return d}var g=(d.contentWindow||d).document||d.ownerDocument||d;return e.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement})};e.fn.scrollTo=function(g,f,d){if(typeof f=="object"){d=f;f=0}if(typeof d=="function"){d={onAfter:d}}if(g=="max"){g=9000000000}d=e.extend({},b.defaults,d);f=f||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){f/=2}d.offset=c(d.offset);d.over=c(d.over);return this._scrollable().each(function(){var p=this,n=e(p),o=g,l,m={},h=n.is("html,body");switch(typeof o){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(o)){o=c(o);break}o=e(o,this);case"object":if(o.is||o.style){l=(o=e(o)).offset()}}e.each(d.axis.split(""),function(u,v){var x=v=="x"?"Left":"Top",w=x.toLowerCase(),z="scroll"+x,r=p[z],q=b.max(p,v);if(l){m[z]=l[w]+(h?0:r-n.offset()[w]);if(d.margin){m[z]-=parseInt(o.css("margin"+x))||0;m[z]-=parseInt(o.css("border"+x+"Width"))||0}m[z]+=d.offset[w]||0;if(d.over[w]){m[z]+=o[v=="x"?"width":"height"]()*d.over[w]}}else{var y=o[w];m[z]=y.slice&&y.slice(-1)=="%"?parseFloat(y)/100*q:y}if(/^\d+$/.test(m[z])){m[z]=m[z]<=0?0:Math.min(m[z],q)}if(!u&&d.queue){if(r!=m[z]){k(d.onAfterFirst)}delete m[z]}});k(d.onAfter);function k(q){n.animate(m,f,d.easing,q&&function(){q.call(this,g,d)})}}).end()};b.max=function(g,k){var o=k=="x"?"Width":"Height",n="scroll"+o;if(!e(g).is("html,body")){return g[n]-e(g)[o.toLowerCase()]()}var p="client"+o,f=g.ownerDocument.documentElement,d=g.ownerDocument.body;return Math.max(f[n],d[n])-Math.min(f[p],d[p])};function c(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);(function(b){b.fn.autogrow=function(c){this.filter("textarea").each(function(){var f=b(this),e=f.height(),d=f.css("lineHeight");var h=b("<div></div>").css({position:"absolute",top:-10000,left:-10000,width:b(this).width(),fontSize:f.css("fontSize"),fontFamily:f.css("fontFamily"),lineHeight:f.css("lineHeight"),resize:"none"}).appendTo(document.body);var g=function(){var k=this.value.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/\n/g,"<br/>");h.html(k);b(this).css("height",Math.max(h.height()+20,e))};b(this).change(g).keyup(g).keydown(g);g.apply(this)});return this}})(jQuery);jQuery.cookie=function(e,f,c){if(arguments.length>1&&(f===null||typeof f!=="object")){c=jQuery.extend({},c);if(f===null){c.expires=-1}if(typeof c.expires==="number"){var h=c.expires,d=c.expires=new Date();d.setDate(d.getDate()+h)}return(document.cookie=[encodeURIComponent(e),"=",c.raw?String(f):encodeURIComponent(String(f)),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join(""))}c=f||{};var b,g=c.raw?function(k){return k}:decodeURIComponent;return(b=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie))?g(b[1]):null};jQuery(document).ready(function(){jQuery("#header #navigation ul li:has(ul) > a").css("padding","0");jQuery("#header #navigation ul li:has(ul):first").css("border-radius","0.5em 0 0 0");jQuery("#header #navigation ul li:has(ul):first > a").css("border-radius","0.5em 0 0 0");jQuery("#header #navigation ul li:has(ul):last").css("border-radius","0 0.5em 0 0");jQuery("#header #navigation ul li:has(ul):last > a").css("border-radius","0 0.5em 0 0");var c=0;jQuery("#header #navigation ul li:has(ul)").each(function(){c+=jQuery(this).width()});var d=jQuery("#header #navigation").width();var e=jQuery("#header #navigation ul li:has(ul)").length;var b=Math.floor((d-c)/e);var f=(d-c)-(e*b);jQuery("#header #navigation ul li:has(ul) > a").each(function(){jQuery(this).width(function(g,h){if(f>=2){f-=2;return h+b+2}else{if(f==1){f-=1;return h+b+1}else{return h+b}}})});jQuery("#header #navigation ul li ul").each(function(){jQuery(this).css("width","auto");jQuery(this).after("<div></div>");var h=jQuery(this).parent().position().left;var g=jQuery(this).parent().width();var l=jQuery(this).width();var k=Math.min(h-((l-g)/2),d-l);k=Math.max(k,0);jQuery(this).css("left",k-((2*d-l)/2)+"px");jQuery(this).css("text-align","center");jQuery(this).css("width",2*d+"px")});jQuery("#header #navigation ul li:has(ul)").hover(function(){navHoverHook(this);pageCategory.style.backgroundColor="#592660";return},function(){if(pageCategory!=null){return navHoverHook(pageCategory)}});jQuery("#navigation ul#primary_menu li ul li a").hover(function(g){g.stopPropagation()},function(){jQuery(this).parent().trigger("hover")});jQuery("#header #navigation ul li:has(ul) > a").focus(function(){return navHoverHook(jQuery(this).parent())});jQuery('#header #navigation ul li a[href="#"]').hover(function(){jQuery(this).css("text-decoration","none")})});function navHoverHook(b){if(!jQuery(b).find("ul").is(":visible")){jQuery("#header #navigation ul li:has(ul)").each(function(){jQuery(this).css("background-color","transparent");jQuery(this).find("ul").fadeOut(100);jQuery(this).find("ul").detach().appendTo(jQuery(this).find("div"))})}jQuery(b).css("background-color","#592660");jQuery(b).find("ul").detach().appendTo(b);if(!jQuery("#header #navigation #secondary_bg").is(":visible")||jQuery("#header #navigation #secondary_bg").queue().length!=0){jQuery("#header #navigation #secondary_bg").slideDown(200,function(){jQuery(b).find("ul").fadeIn(100)})}else{jQuery(b).find("ul").fadeIn(100)}}var pageCategory;function setPageCategory(b){pageCategory=b;navHoverHook(b);if(b){var c="#"+pageCategory.id;jQuery(c).css("background-color","#592660")}}if(typeof formsIEFix=="undefined"){var formsIEFix=0}jQuery(document).ready(function(){jQuery("form.new fieldset > ol").each(function(){var d=jQuery(this).css("font-size");d=d.substr(0,d.length-2);var f=jQuery(this).children(":not(.submit, .checkbox, .noresize)");var c=jQuery(this).children(".checkbox:not(.noresize)");var b=0;f.children("label").each(function(){if(jQuery(this).width()>b){b=jQuery(this).width()}});if(b>0){b=Math.min(b,400);f.children("label").width(b);f.children("input:not(.input_short, .input_medium, .input_long), textarea:not(.input_short, .input_medium, .input_long)").width(function(){return jQuery(this).parents("ol").width()-b-2.83*d-4-formsIEFix});c.children("input").css("margin-left",b+0.33*d-formsIEFix)}var e=0;f.children("select:not(.input_short, .input_medium, .input_long)").each(function(){if(jQuery(this).width()>e){e=jQuery(this).width()}});f.children("select:not(.input_short, .input_medium, .input_long)").width(e)});jQuery("form.new textarea:not([data-nogrow])").autogrow()});var containerClass="status_msg_container";var statusMsgClass="status_msg";var containerSel="."+containerClass;var statusMsgSel=containerSel+" ."+statusMsgClass;var validateFormSelector=function(b){if(!b.length){console.error(b.selector+" is undefined, cannot change status message");return false}if(!b.is(":has("+containerSel+")")){console.error("Missing "+containerSel+" from "+b.selector+", cannot change status message");return false}return true};var validateStatusMsg=function(b){if(!b.find(statusMsgSel)){return false}return true};jQuery.extend(jQuery.fn,{newStatusMsg:function(c,b,e){if(!validateFormSelector(this)){return this}if(validateStatusMsg(this)){this.find(statusMsgSel).remove()}var d='<div class="'+statusMsgClass;if(c&&c!=""&&c!="default"){d+=" "+c+"_msg"}d+='">';if(!c||c==""||c=="default"){d+="<p>Please wait&hellip;</p>"}else{if(b&&b!=""){d+='<span class="'+statusMsgClass+'_title">'+b+"</span>"}if(e&&e!=""){d+="<p>"+e+"</p>"}d+="<ul></ul>"}d+="</div>";this.find(containerSel).append(d);return this},addStatusMsg:function(){if(!validateFormSelector(this)){return this}if(!validateStatusMsg(this)){return this}for(var c=0;c<arguments.length;c++){if(typeof(arguments[c])=="object"){for(var b=0;b<arguments[c].length;b++){this.addStatusMsg(arguments[c][b])}}else{this.find(statusMsgSel+" ul").append("<li>"+arguments[c]+"</li>")}}return this},showStatusMsg:function(){if(!validateFormSelector(this)){return this}if(!validateStatusMsg(this)){return this}this.find(containerSel).fadeIn(500);return this},hideStatusMsg:function(){if(!validateFormSelector(this)){return this}if(!validateStatusMsg(this)){return this}this.find(containerSel).fadeOut(500);return this},clearStatusMsg:function(){if(!validateFormSelector(this)){return this}if(!validateStatusMsg(this)){return this}this.find(statusMsgSel+" ul").html("");return this}});jQuery.extend(jQuery.fn,{showDialog:function(b){if(!this.hasClass("popup_dialog")){return this}this.slideDown(300);jQuery("#dialog_overlay").fadeIn(300);this.attr("data-opendialog","true");if(b&&typeof(b)==="function"){this.data("hideDialogCallback",b)}return this},hideDialog:function(){if(!this.hasClass("popup_dialog")){return this}this.slideUp(300);jQuery("#dialog_overlay").fadeOut(300);this.removeAttr("data-opendialog");if(typeof(this.data("hideDialogCallback"))==="function"){this.data("hideDialogCallback").call(this)}return this}});jQuery(document).ready(function(){jQuery(".popup_dialog").hide(0).css("visibility","visible").prepend('<a href="#" rel="nofollow" title="Close this prompt" class="popup_close_button"><img src="/images/buttons/popup_close.png" alt="Close"></a>');jQuery("body").append('<div id="dialog_overlay"></div>');jQuery("#dialog_overlay").click(function(){jQuery(".popup_dialog[data-opendialog]").hideDialog()});jQuery(".popup_close_button").focus(function(){jQuery(this).find("img").attr("src","/images/buttons/popup_close_down.png")});jQuery(".popup_close_button").blur(function(){jQuery(this).find("img").attr("src","/images/buttons/popup_close.png")});jQuery(".popup_close_button").click(function(b){b.preventDefault();jQuery(this).parents(".popup_dialog").hideDialog()});jQuery(".popup_cancel").click(function(b){b.preventDefault();jQuery(this).parents(".popup_dialog").hideDialog()})});var animatedcollapse={divholders:{},divgroups:{},lastactiveingroup:{},show:function(c){if(typeof c=="object"){for(var b=0;b<c.length;b++){this.showhide(c[b],"show")}}else{this.showhide(c,"show")}},hide:function(c){if(typeof c=="object"){for(var b=0;b<c.length;b++){this.showhide(c[b],"hide")}}else{this.showhide(c,"hide")}},toggle:function(b){this.showhide(b,"toggle")},addDiv:function(c,b){this.divholders[c]=({id:c,$divref:null,attrs:b});this.divholders[c].getAttr=function(e){var d=new RegExp(e+"=([^,]+)","i");return(d.test(this.attrs)&&parseInt(RegExp.$1)!=0)?RegExp.$1:null}},showhide:function(e,d){var b=this.divholders[e].$divref;if(this.divholders[e]&&b.length==1){var c=this.divgroups[b.attr("groupname")];if(b.attr("groupname")&&c.count>1&&(d=="show"||d=="toggle"&&b.css("display")=="none")){if(c.lastactivedivid&&c.lastactivedivid!=e){this.slideengine(c.lastactivedivid,"hide")}this.slideengine(e,"show");c.lastactivedivid=e}else{this.slideengine(e,d)}}},slideengine:function(e,d){var b=this.divholders[e].$divref;if(this.divholders[e]&&b.length==1){var c={height:d};if(b.attr("fade")){c.opacity=d}b.animate(c,b.attr("speed")?parseInt(b.attr("speed")):500);return false}},generatemap:function(){var c={};for(var b=0;b<arguments.length;b++){if(arguments[b][1]!=null){c[arguments[b][0]]=arguments[b][1]}}return c},init:function(){var b=this;jQuery(document).ready(function(f){var c=b.getCookie("acopendivids");var e=b.getCookie("acgroupswithpersist");if(c!=null){c=(c=="nada")?[]:c.split(",")}e=(e==null||e=="nada")?[]:e.split(",");jQuery.each(b.divholders,function(){this.$divref=f("#"+this.id);if((this.getAttr("persist")||jQuery.inArray(this.getAttr("group"),e)!=-1)&&c!=null){var k=(jQuery.inArray(this.id,c)!=-1)?"block":"none"}else{var k=this.getAttr("hide")?"none":null}this.$divref.css(b.generatemap(["height",this.getAttr("height")],["display",k]));this.$divref.attr(b.generatemap(["groupname",this.getAttr("group")],["fade",this.getAttr("fade")],["speed",this.getAttr("speed")]));if(this.getAttr("group")){var h=b.divgroups[this.getAttr("group")]||(b.divgroups[this.getAttr("group")]={});h.count=(h.count||0)+1;if(!h.lastactivedivid&&this.$divref.css("display")!="none"||k=="block"){h.lastactivedivid=this.id}this.$divref.css({display:"none"})}});jQuery.each(b.divgroups,function(){if(this.lastactivedivid){b.divholders[this.lastactivedivid].$divref.show()}});var d=f("*[rel]").filter('*[@rel^="collapse-"], *[@rel^="expand-"], *[@rel^="toggle-"]');var g=/(collapse-)|(expand-)|(toggle-)/;d.each(function(){f(this).click(function(){var h=this.getAttribute("rel");var l=h.replace(g,"");var k=(h.indexOf("collapse-")!=-1)?"hide":(h.indexOf("expand-")!=-1)?"show":"toggle";return b.showhide(l,k)})});f(window).bind("unload",function(){b.uninit()})})},uninit:function(){var c="",b="";jQuery.each(this.divholders,function(){if(this.$divref.css("display")!="none"){c+=this.id+","}if(this.getAttr("group")&&this.getAttr("persist")){b+=this.getAttr("group")+","}});c=(c=="")?"nada":c.replace(/,$/,"");b=(b=="")?"nada":b.replace(/,$/,"");this.setCookie("acopendivids",c);this.setCookie("acgroupswithpersist",b)},getCookie:function(b){var c=new RegExp(b+"=[^;]*","i");if(document.cookie.match(c)){return document.cookie.match(c)[0].split("=")[1]}return null},setCookie:function(c,d,e){if(typeof e!="undefined"){var b=new Date();b.setDate(b.getDate()+e);document.cookie=c+"="+d+"; path=/; expires="+b.toGMTString()}else{document.cookie=c+"="+d+"; path=/"}}};function SymError(){return false}window.onerror=SymError;var bName=navigator.appName;function showUploadWindow(g){var f=Math.random().toString();var h=f.substring(2,f.length);var e="width=350,height=160,scrollbars=yes,status=yes,resizeable=yes";var c="up"+h;var d="/s/talkboard2.PicUploader?threadid="+g;var b=window.open(d,c,e)}function ccPicturePop(){var f=Math.random().toString();var g=f.substring(2,f.length);var e="width=350,height=160,scrollbars=yes,status=yes,resizeable=yes";var c="up"+g;var d="/s/talkboard2.PicUploaderVersion2";var b=window.open(d,c,e)}function tb3ShowUploadWindow(g){var f=Math.random().toString();var h=f.substring(2,f.length);var e="width=350,height=190,scrollbars=yes,status=yes,resizeable=yes";var c="up"+h;var d="/PicUpload?threadid="+g;var b=window.open(d,c,e)}function tb3CcPicturePop(){var f=Math.random().toString();var g=f.substring(2,f.length);var e="width=350,height=200,scrollbars=yes,status=yes,resizeable=yes";var c="up"+g;var d="/NewThreadPicUpload";var b=window.open(d,c,e)}function checkBlankSubject(){var b=document.forms.CCONV.subject.value;if(!b||b==""){return confirm("Are you sure you want to create a thread with no subject?nOK=Yes, cancel=No")}else{return true}}function getsubcat(e,d){var c=e[e.selectedIndex].value;var b=e[e.selectedIndex].id;document.forms[d].ptablename.value=b;LocalRemotable.getSubCategory(b,c,selectReplay)}var selectReplay=function(d){var h=document.getElementById("subcat");clearAll(h);var b=d;var g="";var f="";for(var c=0;c<b.length;c++){var e=b[c].split("^");f=e[0];g=e[1];addNewOption(h,f,g)}};function clearAll(d){var b=d.length;if(b>0){for(var c=1;c<b;c++){d.remove(c)}}}function addNewOption(c,e,b){var d=new Option(e,b);if(bName=="Microsoft Internet Explorer"){c.add(d)}else{c.add(d,null)}}function setproductname(d,c,b){document.forms[c].pid.value=d[d.selectedIndex].value}function moveMulti(c,b){while(moveOne(c,b)==1){}}function moveOne(e,d){var b=false;var c=e.selectedIndex;if(c>0){var f=e.options[c];var g=new Option(f.text,f.value);if(bName=="Microsoft Internet Explorer"){d.add(g)}else{d.add(g,null)}e.remove(c);b=true}return b}function moveAll(c,b){while(c.length>1){var d=c.options[1];if(bName=="Microsoft Internet Explorer"){b.add(new Option(d.text,d.value))}else{b.add(new Option(d.text,d.value),null)}c.remove(1)}}function selectAllItems(b){if(b.length==1){alert('Not searching: You have not selected any topics to search. You won\'t find any messages.\nSelect one or more topics and use the arrow buttons to move them into the "chosen" box.');return false}else{for(i=1;i<b.length;i++){b.options[i].selected=true}return true}}function selectAllChosen(d,e){var c=true;if(e.checked){if(!selectAllItems(d)){c=false}}for(i=1;i<d.length;i++){d.options[i].selected=true}return c}function loadFavs(d,c){var h=GetCookie("tstops");if(h!=null){var g=h.split(",");var b=g.length;var e=0;while(e<b){var f=g[e];moveById(f,d,c);e++}}}function moveById(c,g,b){var f=b.options;var h=f.length;var e=0;var l=false;while(e<h&&!l){var k=f[e];if(k.value==c){l=true;var d=new Option(k.text,k.value);if(bName=="Microsoft Internet Explorer"){g.add(d)}else{g.add(d,null)}b.remove(e)}else{e++}}}function saveFavs(c){var b=c.options;var g=b.length;var e="tstops";var h="0";var d=0;while(d<g){var f=b[d];if(f.value!=-1){h=h+","+f.value}d++}SetCookie(e,h,expiry,"/",".mumsnet.com",false);alert("Your favourites have been saved")}function label2value(){var b="inactive";var d="active";var c="focused";jQuery("label.label2value").each(function(){obj=document.getElementById(jQuery(this).attr("for"));if((jQuery(obj).attr("type")=="text")||(obj.tagName.toLowerCase()=="textarea")){jQuery(obj).addClass(b);var e=jQuery(this).text();jQuery(this).css("display","none");jQuery(obj).val(e);jQuery(obj).focus(function(){jQuery(this).addClass(c);jQuery(this).removeClass(b);jQuery(this).removeClass(d);if(jQuery(this).val()==e){jQuery(this).val("")}});jQuery(obj).blur(function(){jQuery(this).removeClass(c);if(jQuery(this).val()==""){jQuery(this).val(e);jQuery(this).addClass(b)}else{jQuery(this).addClass(d)}})}})}jQuery(document).ready(function(){label2value()});jQuery(document).ready(function(){jQuery("#talk_bar_nav").removeClass("hidden");jQuery(".expand_link_more").removeClass("force_hidden");jQuery(".category_topics_all").hide(0);jQuery(".expand_category").click(function(c){c.preventDefault();var b=jQuery(this).parents(".category").find(".category_topics_all");if(b.is(":hidden")){b.fadeIn(200)}else{b.fadeOut(200)}});jQuery("#show_all_link").click(function(b){b.preventDefault();jQuery(".category_topics_all").fadeIn(200);jQuery(this).parent().addClass("force_hidden");jQuery("#hide_all_link").parent().removeClass("force_hidden")});jQuery("#hide_all_link").click(function(b){b.preventDefault();jQuery(".category_topics_all").fadeOut(200);jQuery(this).parent().addClass("force_hidden");jQuery("#show_all_link").parent().removeClass("force_hidden")});jQuery("#byatoz").click(function(b){b.preventDefault();jQuery("#categories").fadeOut(200);jQuery(".category_topics_all").hide(0);jQuery("#allinalphaorder").removeClass("hidden");jQuery(this).parent().addClass("force_hidden");jQuery("#show_all_link").parent().addClass("force_hidden");jQuery("#hide_all_link").parent().addClass("force_hidden");jQuery("#bycat").parent().removeClass("force_hidden")});jQuery("#bycat").click(function(b){b.preventDefault();jQuery("#allinalphaorder").addClass("hidden");jQuery("#categories").fadeIn(200);jQuery(this).parent().addClass("force_hidden");jQuery("#show_all_link").parent().removeClass("force_hidden");jQuery("#byatoz").parent().removeClass("force_hidden")})});jQuery(document).ready(function(){jQuery(".social_links").css("display","inline-block");jQuery(".social_links a.facebook").click(function(b){b.preventDefault();window.open("http://www.facebook.com/sharer.php?u="+encodeURI(location.href),"facebook","toolbar=0,status=0,width=626,height=436")});jQuery(".social_links a.twitter").click(function(c){if(jQuery("#thread_title .thread_name").length>0){var b=jQuery("#thread_title .thread_name").text()}else{var b=document.title}c.preventDefault();window.open("http://twitter.com/share?url="+encodeURI(location.href)+'&related=MumsnetTowers&text=Reading "'+encodeURI(b)+'" on %23Mumsnet',"twitter","toolbar=0,status=0,width=550,height=450")});jQuery(".social_links a.email").click(function(b){b.preventDefault();win=window.open("mailto:?subject="+document.title+' on Mumsnet&body=I recommend reading this page: "'+document.title+'", on Mumsnet. Check it out here: '+encodeURI(location.href),"email");if(win&&win.open&&!win.closed){win.close()}});jQuery(".social_links a.print").click(function(b){b.preventDefault();window.print()})});function insertVPBTriggerBefore(b){if(!jQuery("#viewport_bar_trigger").length>0){jQuery(b).before('<div id="viewport_bar_trigger"></div>');return true}else{return false}}function insertVPBTriggerAfter(b){if(!jQuery("#viewport_bar_trigger").length>0){jQuery(b).after('<div id="viewport_bar_trigger"></div>');return true}else{return false}}function removeVPBTrigger(){if(jQuery("#viewport_bar_trigger").length>0){jQuery("#viewport_bar_trigger").remove();return true}else{return false}}function isScrolledIntoView(d){var f=jQuery(window).scrollTop();var e=f+jQuery(window).height();var b=jQuery(d).offset().top;var c=b+jQuery(d).height();return((c>=f)&&(b<=e))}jQuery(window).scroll(function(){if(jQuery("#viewport_bar_trigger").length>0){if(!isScrolledIntoView("#viewport_bar_trigger")&&!jQuery("#viewport_bar").is(":visible")){jQuery("#viewport_bar").slideDown(400)}else{if(isScrolledIntoView("#viewport_bar_trigger")&&jQuery("#viewport_bar").is(":visible")){jQuery("#viewport_bar").slideUp(400)}}}});jQuery(document).ready(function(){var c=(navigator.userAgent.indexOf("iPhone")!=-1)||(navigator.userAgent.indexOf("iPod")!=-1)||(navigator.userAgent.indexOf("iPad")!=-1);var b=(navigator.userAgent.indexOf("MSIE")!=-1);if(jQuery.cookie("viewport_bar_close")!="true"&&!c&&jQuery("#viewport_bar").length>0){insertVPBTriggerAfter("#header")}if(jQuery(window).width()<=1034&&!b){jQuery("#viewport_bar_close").css("right","0")}jQuery("#viewport_bar_close a").click(function(d){d.preventDefault();jQuery("#viewport_bar").slideUp(400);removeVPBTrigger();jQuery.cookie("viewport_bar_close","true")})});
