(function(AD,AF){function y(){if(!AK.isReady){try{s.documentElement.doScroll("left")}catch(E){setTimeout(y,1);return }AK.ready()}}function z(G,E){E.src?AK.ajax({url:E.src,async:false,dataType:"script"}):AK.globalEval(E.text||E.textContent||E.innerHTML||"");E.parentNode&&E.parentNode.removeChild(E)}function AA(G,E,Q,K,P,I){var H=G.length;if(typeof E==="object"){for(var L in E){AA(G,L,E[L],K,P,Q)}return G}if(Q!==AF){K=!I&&K&&AK.isFunction(Q);for(L=0;L<H;L++){P(G[L],E,K?Q.call(G[L],L,P(G[L],E)):Q,I)}return G}return H?P(G[0],E):null}function v(){return(new Date).getTime()}function Aj(){return false}function Ae(){return true}function Ah(G,E,H){H[0].type=G;return AK.event.handle.apply(E,H)}function AW(T){var S,Q=[],L=[],P=arguments,K,I,G,W,H,R,E=AK.extend({},AK.data(this,"events").live);if(!(T.button&&T.type==="click")){for(W in E){I=E[W];if(I.live===T.type||I.altLive&&AK.inArray(T.type,I.altLive)>-1){K=I.data;K.beforeFilter&&K.beforeFilter[T.type]&&!K.beforeFilter[T.type](T)||L.push(I.selector)}else{delete E[W]}}K=AK(T.target).closest(L,T.currentTarget);H=0;for(R=K.length;H<R;H++){for(W in E){I=E[W];G=K[H].elem;L=null;if(K[H].selector===I.selector){if(I.live==="mouseenter"||I.live==="mouseleave"){L=AK(T.relatedTarget).closest(I.selector)[0]}if(!L||L!==G){Q.push({elem:G,fn:I})}}}}H=0;for(R=Q.length;H<R;H++){K=Q[H];T.currentTarget=K.elem;T.data=K.fn.data;if(K.fn.apply(K.elem,P)===false){S=false;break}}return S}}function AU(G,E){return"live."+(G?G+".":"")+E.replace(/\./g,"`").replace(/ /g,"&")}function AS(E){return !E||!E.parentNode||E.parentNode.nodeType===11}function A0(G,E){var H=0;E.each(function(){if(this.nodeName===(G[H]&&G[H].nodeName)){var L=AK.data(G[H++]),P=AK.data(this,L);if(L=L&&L.events){delete P.handle;P.events={};for(var K in L){for(var I in L[K]){AK.event.add(this,K,L[K][I],L[K][I].data)}}}}})}function AT(G,E,L){var I,K,H;if(G.length===1&&typeof G[0]==="string"&&G[0].length<512&&G[0].indexOf("<option")<0&&(AK.support.checkClone||!Y.test(G[0]))){K=true;if(H=AK.fragments[G[0]]){if(H!==1){I=H}}}if(!I){E=E&&E[0]?E[0].ownerDocument||E[0]:s;I=E.createDocumentFragment();AK.clean(G,E,I,L)}if(K){AK.fragments[G[0]]=H?I:1}return{fragment:I,cacheable:K}}function Ac(G,E){var H={};AK.each(B.concat.apply([],B.slice(0,E)),function(){H[this]=G});return H}function Ag(E){return"scrollTo" in E&&E.document?E:E.nodeType===9?E.defaultView||E.parentWindow:false}var AK=function(G,E){return new AK.fn.init(G,E)},Ab=AD.jQuery,At=AD.$,s=AD.document,A8,AO=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,p=/^.[^:#\[\.,]*$/,a=/\S/,C=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,A5=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,AZ=navigator.userAgent,A4=false,AC=[],AR,M=Object.prototype.toString,BB=Object.prototype.hasOwnProperty,Ay=Array.prototype.push,e=Array.prototype.slice,Aq=Array.prototype.indexOf;AK.fn=AK.prototype={init:function(G,E){var I,H;if(!G){return this}if(G.nodeType){this.context=this[0]=G;this.length=1;return this}if(typeof G==="string"){if((I=AO.exec(G))&&(I[1]||!E)){if(I[1]){H=E?E.ownerDocument||E:s;if(G=A5.exec(G)){if(AK.isPlainObject(E)){G=[s.createElement(G[1])];AK.fn.attr.call(G,E,true)}else{G=[H.createElement(G[1])]}}else{G=AT([I[1]],[H]);G=(G.cacheable?G.fragment.cloneNode(true):G.fragment).childNodes}}else{if(E=s.getElementById(I[2])){if(E.id!==I[2]){return A8.find(G)}this.length=1;this[0]=E}this.context=s;this.selector=G;return this}}else{if(!E&&/^\w+$/.test(G)){this.selector=G;this.context=s;G=s.getElementsByTagName(G)}else{return !E||E.jquery?(E||A8).find(G):AK(E).find(G)}}}else{if(AK.isFunction(G)){return A8.ready(G)}}if(G.selector!==AF){this.selector=G.selector;this.context=G.context}return AK.isArray(G)?this.setArray(G):AK.makeArray(G,this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return e.call(this,0)},get:function(E){return E==null?this.toArray():E<0?this.slice(E)[0]:this[E]},pushStack:function(G,E,H){G=AK(G||null);G.prevObject=this;G.context=this.context;if(E==="find"){G.selector=this.selector+(this.selector?" ":"")+H}else{if(E){G.selector=this.selector+"."+E+"("+H+")"}}return G},setArray:function(E){this.length=0;Ay.apply(this,E);return this},each:function(G,E){return AK.each(this,G,E)},ready:function(E){AK.bindReady();if(AK.isReady){E.call(s,AK)}else{AC&&AC.push(E)}return this},eq:function(E){return E===-1?this.slice(E):this.slice(E,+E+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(e.apply(this,arguments),"slice",e.call(arguments).join(","))},map:function(E){return this.pushStack(AK.map(this,function(G,H){return E.call(G,H,G)}))},end:function(){return this.prevObject||AK(null)},push:Ay,sort:[].sort,splice:[].splice};AK.fn.init.prototype=AK.fn;AK.extend=AK.fn.extend=function(){var G=arguments[0]||{},E=1,Q=arguments.length,K=false,P,I,H,L;if(typeof G==="boolean"){K=G;G=arguments[1]||{};E=2}if(typeof G!=="object"&&!AK.isFunction(G)){G={}}if(Q===E){G=this;--E}for(;E<Q;E++){if((P=arguments[E])!=null){for(I in P){H=G[I];L=P[I];if(G!==L){if(K&&L&&(AK.isPlainObject(L)||AK.isArray(L))){H=H&&(AK.isPlainObject(H)||AK.isArray(H))?H:AK.isArray(L)?[]:{};G[I]=AK.extend(K,H,L)}else{if(L!==AF){G[I]=L}}}}}}return G};AK.extend({noConflict:function(E){AD.$=At;if(E){AD.jQuery=Ab}return AK},isReady:false,ready:function(){if(!AK.isReady){if(!s.body){return setTimeout(AK.ready,13)}AK.isReady=true;if(AC){for(var G,E=0;G=AC[E++];){G.call(s,AK)}AC=null}AK.fn.triggerHandler&&AK(s).triggerHandler("ready")}},bindReady:function(){if(!A4){A4=true;if(s.readyState==="complete"){return AK.ready()}if(s.addEventListener){s.addEventListener("DOMContentLoaded",AR,false);AD.addEventListener("load",AK.ready,false)}else{if(s.attachEvent){s.attachEvent("onreadystatechange",AR);AD.attachEvent("onload",AK.ready);var G=false;try{G=AD.frameElement==null}catch(E){}s.documentElement.doScroll&&G&&y()}}}},isFunction:function(E){return M.call(E)==="[object Function]"},isArray:function(E){return M.call(E)==="[object Array]"},isPlainObject:function(G){if(!G||M.call(G)!=="[object Object]"||G.nodeType||G.setInterval){return false}if(G.constructor&&!BB.call(G,"constructor")&&!BB.call(G.constructor.prototype,"isPrototypeOf")){return false}var E;for(E in G){}return E===AF||BB.call(G,E)},isEmptyObject:function(G){for(var E in G){return false}return true},error:function(E){throw E},parseJSON:function(E){if(typeof E!=="string"||!E){return null}if(/^[\],:{}\s]*$/.test(E.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return AD.JSON&&AD.JSON.parse?AD.JSON.parse(E):(new Function("return "+E))()}else{AK.error("Invalid JSON: "+E)}},noop:function(){},globalEval:function(G){if(G&&a.test(G)){var E=s.getElementsByTagName("head")[0]||s.documentElement,H=s.createElement("script");H.type="text/javascript";if(AK.support.scriptEval){H.appendChild(s.createTextNode(G))}else{H.text=G}E.insertBefore(H,E.firstChild);E.removeChild(H)}},nodeName:function(G,E){return G.nodeName&&G.nodeName.toUpperCase()===E.toUpperCase()},each:function(G,E,P){var K,L=0,I=G.length,H=I===AF||AK.isFunction(G);if(P){if(H){for(K in G){if(E.apply(G[K],P)===false){break}}}else{for(;L<I;){if(E.apply(G[L++],P)===false){break}}}}else{if(H){for(K in G){if(E.call(G[K],K,G[K])===false){break}}}else{for(P=G[0];L<I&&E.call(P,L,P)!==false;P=G[++L]){}}}return G},trim:function(E){return(E||"").replace(C,"")},makeArray:function(G,E){E=E||[];if(G!=null){G.length==null||typeof G==="string"||AK.isFunction(G)||typeof G!=="function"&&G.setInterval?Ay.call(E,G):AK.merge(E,G)}return E},inArray:function(G,E){if(E.indexOf){return E.indexOf(G)}for(var I=0,H=E.length;I<H;I++){if(E[I]===G){return I}}return -1},merge:function(G,E){var K=G.length,H=0;if(typeof E.length==="number"){for(var I=E.length;H<I;H++){G[K++]=E[H]}}else{for(;E[H]!==AF;){G[K++]=E[H++]}}G.length=K;return G},grep:function(G,E,L){for(var I=[],K=0,H=G.length;K<H;K++){!L!==!E(G[K],K)&&I.push(G[K])}return I},map:function(G,E,P){for(var K=[],L,I=0,H=G.length;I<H;I++){L=E(G[I],I,P);if(L!=null){K[K.length]=L}}return K.concat.apply([],K)},guid:1,proxy:function(G,E,H){if(arguments.length===2){if(typeof E==="string"){H=G;G=H[E];E=AF}else{if(E&&!AK.isFunction(E)){H=E;E=AF}}}if(!E&&G){E=function(){return G.apply(H||this,arguments)}}if(G){E.guid=G.guid=G.guid||E.guid||AK.guid++}return E},uaMatch:function(E){E=E.toLowerCase();E=/(webkit)[ \/]([\w.]+)/.exec(E)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(E)||/(msie) ([\w.]+)/.exec(E)||!/compatible/.test(E)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(E)||[];return{browser:E[1]||"",version:E[2]||"0"}},browser:{}});AZ=AK.uaMatch(AZ);if(AZ.browser){AK.browser[AZ.browser]=true;AK.browser.version=AZ.version}if(AK.browser.webkit){AK.browser.safari=true}if(Aq){AK.inArray=function(G,E){return Aq.call(E,G)}}A8=AK(s);if(s.addEventListener){AR=function(){s.removeEventListener("DOMContentLoaded",AR,false);AK.ready()}}else{if(s.attachEvent){AR=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",AR);AK.ready()}}}}(function(){AK.support={};var G=s.documentElement,E=s.createElement("script"),Q=s.createElement("div"),K="script"+v();Q.style.display="none";Q.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var P=Q.getElementsByTagName("*"),I=Q.getElementsByTagName("a")[0];if(!(!P||!P.length||!I)){AK.support={leadingWhitespace:Q.firstChild.nodeType===3,tbody:!Q.getElementsByTagName("tbody").length,htmlSerialize:!!Q.getElementsByTagName("link").length,style:/red/.test(I.getAttribute("style")),hrefNormalized:I.getAttribute("href")==="/a",opacity:/^0.55$/.test(I.style.opacity),cssFloat:!!I.style.cssFloat,checkOn:Q.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};E.type="text/javascript";try{E.appendChild(s.createTextNode("window."+K+"=1;"))}catch(H){}G.insertBefore(E,G.firstChild);if(AD[K]){AK.support.scriptEval=true;delete AD[K]}G.removeChild(E);if(Q.attachEvent&&Q.fireEvent){Q.attachEvent("onclick",function L(){AK.support.noCloneEvent=false;Q.detachEvent("onclick",L)});Q.cloneNode(true).fireEvent("onclick")}Q=s.createElement("div");Q.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";G=s.createDocumentFragment();G.appendChild(Q.firstChild);AK.support.checkClone=G.cloneNode(true).cloneNode(true).lastChild.checked;AK(function(){var R=s.createElement("div");R.style.width=R.style.paddingLeft="1px";s.body.appendChild(R);AK.boxModel=AK.support.boxModel=R.offsetWidth===2;s.body.removeChild(R).style.display="none"});G=function(S){var R=s.createElement("div");S="on"+S;var T=S in R;if(!T){R.setAttribute(S,"return;");T=typeof R[S]==="function"}return T};AK.support.submitBubbles=G("submit");AK.support.changeBubbles=G("change");G=E=Q=P=I=null}})();AK.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var AV="jQuery"+v(),Ar=0,A9={},AQ={};AK.extend({cache:{},expando:AV,noData:{embed:true,object:true,applet:true},data:function(G,E,K){if(!(G.nodeName&&AK.noData[G.nodeName.toLowerCase()])){G=G==AD?A9:G;var H=G[AV],I=AK.cache;if(!E&&!H){return null}H||(H=++Ar);if(typeof E==="object"){G[AV]=H;I=I[H]=AK.extend(true,{},E)}else{I=I[H]?I[H]:typeof K==="undefined"?AQ:(I[H]={})}if(K!==AF){G[AV]=H;I[E]=K}return typeof E==="string"?I[E]:I}},removeData:function(G,E){if(!(G.nodeName&&AK.noData[G.nodeName.toLowerCase()])){G=G==AD?A9:G;var L=G[AV],I=AK.cache,K=I[L];if(E){if(K){delete K[E];AK.isEmptyObject(K)&&AK.removeData(G)}}else{try{delete G[AV]}catch(H){G.removeAttribute&&G.removeAttribute(AV)}delete I[L]}}}});AK.fn.extend({data:function(G,E){if(typeof G==="undefined"&&this.length){return AK.data(this[0])}else{if(typeof G==="object"){return this.each(function(){AK.data(this,G)})}}var I=G.split(".");I[1]=I[1]?"."+I[1]:"";if(E===AF){var H=this.triggerHandler("getData"+I[1]+"!",[I[0]]);if(H===AF&&this.length){H=AK.data(this[0],G)}return H===AF&&I[1]?this.data(I[0]):H}else{return this.trigger("setData"+I[1]+"!",[I[0],E]).each(function(){AK.data(this,G,E)})}},removeData:function(E){return this.each(function(){AK.removeData(this,E)})}});AK.extend({queue:function(G,E,I){if(G){E=(E||"fx")+"queue";var H=AK.data(G,E);if(!I){return H||[]}if(!H||AK.isArray(I)){H=AK.data(G,E,AK.makeArray(I))}else{H.push(I)}return H}},dequeue:function(G,E){E=E||"fx";var I=AK.queue(G,E),H=I.shift();if(H==="inprogress"){H=I.shift()}if(H){E==="fx"&&I.unshift("inprogress");H.call(G,function(){AK.dequeue(G,E)})}}});AK.fn.extend({queue:function(G,E){if(typeof G!=="string"){E=G;G="fx"}if(E===AF){return AK.queue(this[0],G)}return this.each(function(){var H=AK.queue(this,G,E);G==="fx"&&H[0]!=="inprogress"&&AK.dequeue(this,G)})},dequeue:function(E){return this.each(function(){AK.dequeue(this,E)})},delay:function(G,E){G=AK.fx?AK.fx.speeds[G]||G:G;E=E||"fx";return this.queue(E,function(){var H=this;setTimeout(function(){AK.dequeue(H,E)},G)})},clearQueue:function(E){return this.queue(E||"fx",[])}});var Aw=/[\n\t]/g,Ak=/\s+/,u=/\r/g,b=/href|src|style/,D=/(button|input)/i,A6=/(button|input|object|select|textarea)/i,Am=/^(a|area)$/i,Af=/radio|checkbox/;AK.fn.extend({attr:function(G,E){return AA(this,G,E,true,AK.attr)},removeAttr:function(E){return this.each(function(){AK.attr(this,E,"");this.nodeType===1&&this.removeAttribute(E)})},addClass:function(G){if(AK.isFunction(G)){return this.each(function(R){var S=AK(this);S.addClass(G.call(this,R,S.attr("class")))})}if(G&&typeof G==="string"){for(var E=(G||"").split(Ak),Q=0,K=this.length;Q<K;Q++){var P=this[Q];if(P.nodeType===1){if(P.className){for(var I=" "+P.className+" ",H=0,L=E.length;H<L;H++){if(I.indexOf(" "+E[H]+" ")<0){P.className+=" "+E[H]}}}else{P.className=G}}}}return this},removeClass:function(G){if(AK.isFunction(G)){return this.each(function(R){var S=AK(this);S.removeClass(G.call(this,R,S.attr("class")))})}if(G&&typeof G==="string"||G===AF){for(var E=(G||"").split(Ak),Q=0,K=this.length;Q<K;Q++){var P=this[Q];if(P.nodeType===1&&P.className){if(G){for(var I=(" "+P.className+" ").replace(Aw," "),H=0,L=E.length;H<L;H++){I=I.replace(" "+E[H]+" "," ")}P.className=I.substring(1,I.length-1)}else{P.className=""}}}}return this},toggleClass:function(G,E){var I=typeof G,H=typeof E==="boolean";if(AK.isFunction(G)){return this.each(function(L){var K=AK(this);K.toggleClass(G.call(this,L,K.attr("class"),E),E)})}return this.each(function(){if(I==="string"){for(var R,L=0,K=AK(this),Q=E,P=G.split(Ak);R=P[L++];){Q=H?Q:!K.hasClass(R);K[Q?"addClass":"removeClass"](R)}}else{if(I==="undefined"||I==="boolean"){this.className&&AK.data(this,"__className__",this.className);this.className=this.className||G===false?"":AK.data(this,"__className__")||""}}})},hasClass:function(G){G=" "+G+" ";for(var E=0,H=this.length;E<H;E++){if((" "+this[E].className+" ").replace(Aw," ").indexOf(G)>-1){return true}}return false},val:function(G){if(G===AF){var E=this[0];if(E){if(AK.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(AK.nodeName(E,"select")){var Q=E.selectedIndex,K=[],P=E.options;E=E.type==="select-one";if(Q<0){return null}var I=E?Q:0;for(Q=E?Q+1:P.length;I<Q;I++){var H=P[I];if(H.selected){G=AK(H).val();if(E){return G}K.push(G)}}return K}if(Af.test(E.type)&&!AK.support.checkOn){return E.getAttribute("value")===null?"on":E.value}return(E.value||"").replace(u,"")}return AF}var L=AK.isFunction(G);return this.each(function(R){var T=AK(this),W=G;if(this.nodeType===1){if(L){W=G.call(this,R,T.val())}if(typeof W==="number"){W+=""}if(AK.isArray(W)&&Af.test(this.type)){this.checked=AK.inArray(T.val(),W)>=0}else{if(AK.nodeName(this,"select")){var S=AK.makeArray(W);AK("option",this).each(function(){this.selected=AK.inArray(AK(this).val(),S)>=0});if(!S.length){this.selectedIndex=-1}}else{this.value=W}}}})}});AK.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(G,E,L,I){if(!G||G.nodeType===3||G.nodeType===8){return AF}if(I&&E in AK.attrFn){return AK(G)[E](L)}I=G.nodeType!==1||!AK.isXMLDoc(G);var K=L!==AF;E=I&&AK.props[E]||E;if(G.nodeType===1){var H=b.test(E);if(E in G&&I&&!H){if(K){E==="type"&&D.test(G.nodeName)&&G.parentNode&&AK.error("type property can't be changed");G[E]=L}if(AK.nodeName(G,"form")&&G.getAttributeNode(E)){return G.getAttributeNode(E).nodeValue}if(E==="tabIndex"){return(E=G.getAttributeNode("tabIndex"))&&E.specified?E.value:A6.test(G.nodeName)||Am.test(G.nodeName)&&G.href?0:AF}return G[E]}if(!AK.support.style&&I&&E==="style"){if(K){G.style.cssText=""+L}return G.style.cssText}K&&G.setAttribute(E,""+L);G=!AK.support.hrefNormalized&&I&&H?G.getAttribute(E,2):G.getAttribute(E);return G===null?AF:G}return AK.style(G,E,L)}});var As=function(E){return E.replace(/[^\w\s\.\|`]/g,function(G){return"\\"+G})};AK.event={add:function(T,S,Q,L){if(!(T.nodeType===3||T.nodeType===8)){if(T.setInterval&&T!==AD&&!T.frameElement){T=AD}if(!Q.guid){Q.guid=AK.guid++}if(L!==AF){Q=AK.proxy(Q);Q.data=L}var P=AK.data(T,"events")||AK.data(T,"events",{}),K=AK.data(T,"handle"),I;if(!K){I=function(){return typeof AK!=="undefined"&&!AK.event.triggered?AK.event.handle.apply(I.elem,arguments):AF};K=AK.data(T,"handle",I)}if(K){K.elem=T;S=S.split(/\s+/);for(var G,W=0;G=S[W++];){var H=G.split(".");G=H.shift();if(W>1){Q=AK.proxy(Q);if(L!==AF){Q.data=L}}Q.type=H.slice(0).sort().join(".");var R=P[G],E=this.special[G]||{};if(!R){R=P[G]={};if(!E.setup||E.setup.call(T,L,H,Q)===false){if(T.addEventListener){T.addEventListener(G,K,false)}else{T.attachEvent&&T.attachEvent("on"+G,K)}}}if(E.add){if((H=E.add.call(T,Q,L,H,R))&&AK.isFunction(H)){H.guid=H.guid||Q.guid;H.data=H.data||Q.data;H.type=H.type||Q.type;Q=H}}R[Q.guid]=Q;this.global[G]=true}T=null}}},global:{},remove:function(T,S,Q){if(!(T.nodeType===3||T.nodeType===8)){var L=AK.data(T,"events"),P,K,I;if(L){if(S===AF||typeof S==="string"&&S.charAt(0)==="."){for(K in L){this.remove(T,K+(S||""))}}else{if(S.type){Q=S.handler;S=S.type}S=S.split(/\s+/);for(var G=0;K=S[G++];){var X=K.split(".");K=X.shift();var H=!X.length,R=AK.map(X.slice(0).sort(),As);R=new RegExp("(^|\\.)"+R.join("\\.(?:.*\\.)?")+"(\\.|$)");var E=this.special[K]||{};if(L[K]){if(Q){I=L[K][Q.guid];delete L[K][Q.guid]}else{for(var W in L[K]){if(H||R.test(L[K][W].type)){delete L[K][W]}}}E.remove&&E.remove.call(T,X,I);for(P in L[K]){break}if(!P){if(!E.teardown||E.teardown.call(T,X)===false){if(T.removeEventListener){T.removeEventListener(K,AK.data(T,"handle"),false)}else{T.detachEvent&&T.detachEvent("on"+K,AK.data(T,"handle"))}}P=null;delete L[K]}}}}for(P in L){break}if(!P){if(W=AK.data(T,"handle")){W.elem=null}AK.removeData(T,"events");AK.removeData(T,"handle")}}}},trigger:function(G,E,Q,K){var P=G.type||G;if(!K){G=typeof G==="object"?G[AV]?G:AK.extend(AK.Event(P),G):AK.Event(P);if(P.indexOf("!")>=0){G.type=P=P.slice(0,-1);G.exclusive=true}if(!Q){G.stopPropagation();this.global[P]&&AK.each(AK.cache,function(){this.events&&this.events[P]&&AK.event.trigger(G,E,this.handle.elem)})}if(!Q||Q.nodeType===3||Q.nodeType===8){return AF}G.result=AF;G.target=Q;E=AK.makeArray(E);E.unshift(G)}G.currentTarget=Q;(K=AK.data(Q,"handle"))&&K.apply(Q,E);K=Q.parentNode||Q.ownerDocument;try{if(!(Q&&Q.nodeName&&AK.noData[Q.nodeName.toLowerCase()])){if(Q["on"+P]&&Q["on"+P].apply(Q,E)===false){G.result=false}}}catch(I){}if(!G.isPropagationStopped()&&K){AK.event.trigger(G,E,K,true)}else{if(!G.isDefaultPrevented()){Q=G.target;var H;if(!(AK.nodeName(Q,"a")&&P==="click")&&!(Q&&Q.nodeName&&AK.noData[Q.nodeName.toLowerCase()])){try{if(Q[P]){if(H=Q["on"+P]){Q["on"+P]=null}this.triggered=true;Q[P]()}}catch(L){}if(H){Q["on"+P]=H}this.triggered=false}}}},handle:function(G){var E,L;G=arguments[0]=AK.event.fix(G||AD.event);G.currentTarget=this;L=G.type.split(".");G.type=L.shift();E=!L.length&&!G.exclusive;var I=new RegExp("(^|\\.)"+L.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");L=(AK.data(this,"events")||{})[G.type];for(var K in L){var H=L[K];if(E||I.test(H.type)){G.handler=H;G.data=H.data;H=H.apply(this,arguments);if(H!==AF){G.result=H;if(H===false){G.preventDefault();G.stopPropagation()}}if(G.isImmediatePropagationStopped()){break}}}return G.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(G){if(G[AV]){return G}var E=G;G=AK.Event(E);for(var I=this.props.length,H;I;){H=this.props[--I];G[H]=E[H]}if(!G.target){G.target=G.srcElement||s}if(G.target.nodeType===3){G.target=G.target.parentNode}if(!G.relatedTarget&&G.fromElement){G.relatedTarget=G.fromElement===G.target?G.toElement:G.fromElement}if(G.pageX==null&&G.clientX!=null){E=s.documentElement;I=s.body;G.pageX=G.clientX+(E&&E.scrollLeft||I&&I.scrollLeft||0)-(E&&E.clientLeft||I&&I.clientLeft||0);G.pageY=G.clientY+(E&&E.scrollTop||I&&I.scrollTop||0)-(E&&E.clientTop||I&&I.clientTop||0)}if(!G.which&&(G.charCode||G.charCode===0?G.charCode:G.keyCode)){G.which=G.charCode||G.keyCode}if(!G.metaKey&&G.ctrlKey){G.metaKey=G.ctrlKey}if(!G.which&&G.button!==AF){G.which=G.button&1?1:G.button&2?3:G.button&4?2:0}return G},guid:100000000,proxy:AK.proxy,special:{ready:{setup:AK.bindReady,teardown:AK.noop},live:{add:function(G,E){AK.extend(G,E||{});G.guid+=E.selector+E.live;E.liveProxy=G;AK.event.add(this,E.live,AW,E)},remove:function(G){if(G.length){var E=0,H=new RegExp("(^|\\.)"+G[0]+"(\\.|$)");AK.each(AK.data(this,"events").live||{},function(){H.test(this.type)&&E++});E<1&&AK.event.remove(this,G[0],AW)}},special:{}},beforeunload:{setup:function(G,E,H){if(this.setInterval){this.onbeforeunload=H}return false},teardown:function(G,E){if(this.onbeforeunload===E){this.onbeforeunload=null}}}}};AK.Event=function(E){if(!this.preventDefault){return new AK.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=v();this[AV]=true};AK.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Ae;var E=this.originalEvent;if(E){E.preventDefault&&E.preventDefault();E.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Ae;var E=this.originalEvent;if(E){E.stopPropagation&&E.stopPropagation();E.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Ae;this.stopPropagation()},isDefaultPrevented:Aj,isPropagationStopped:Aj,isImmediatePropagationStopped:Aj};var AH=function(G){for(var E=G.relatedTarget;E&&E!==this;){try{E=E.parentNode}catch(H){break}}if(E!==this){G.type=G.data;AK.event.handle.apply(this,arguments)}},h=function(E){E.type=E.data;AK.event.handle.apply(this,arguments)};AK.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(G,E){AK.event.special[G]={setup:function(H){AK.event.add(this,E,H&&H.selector?h:AH,G)},teardown:function(H){AK.event.remove(this,E,H&&H.selector?h:AH)}}});if(!AK.support.submitBubbles){AK.event.special.submit={setup:function(G,E,H){if(this.nodeName.toLowerCase()!=="form"){AK.event.add(this,"click.specialSubmit."+H.guid,function(K){var L=K.target,I=L.type;if((I==="submit"||I==="image")&&AK(L).closest("form").length){return Ah("submit",this,arguments)}});AK.event.add(this,"keypress.specialSubmit."+H.guid,function(K){var L=K.target,I=L.type;if((I==="text"||I==="password")&&AK(L).closest("form").length&&K.keyCode===13){return Ah("submit",this,arguments)}})}else{return false}},remove:function(G,E){AK.event.remove(this,"click.specialSubmit"+(E?"."+E.guid:""));AK.event.remove(this,"keypress.specialSubmit"+(E?"."+E.guid:""))}}}if(!AK.support.changeBubbles){var AJ=/textarea|input|select/i;function N(G){var E=G.type,H=G.value;if(E==="radio"||E==="checkbox"){H=G.checked}else{if(E==="select-multiple"){H=G.selectedIndex>-1?AK.map(G.options,function(I){return I.selected}).join("-"):""}else{if(G.nodeName.toLowerCase()==="select"){H=G.selectedIndex}}}return H}function k(G,E){var K=G.target,H,I;if(!(!AJ.test(K.nodeName)||K.readOnly)){H=AK.data(K,"_change_data");I=N(K);if(G.type!=="focusout"||K.type!=="radio"){AK.data(K,"_change_data",I)}if(!(H===AF||I===H)){if(H!=null||I){G.type="change";return AK.event.trigger(G,E,K)}}}}AK.event.special.change={filters:{focusout:k,click:function(G){var E=G.target,H=E.type;if(H==="radio"||H==="checkbox"||E.nodeName.toLowerCase()==="select"){return k.call(this,G)}},keydown:function(G){var E=G.target,H=E.type;if(G.keyCode===13&&E.nodeName.toLowerCase()!=="textarea"||G.keyCode===32&&(H==="checkbox"||H==="radio")||H==="select-multiple"){return k.call(this,G)}},beforeactivate:function(E){E=E.target;E.nodeName.toLowerCase()==="input"&&E.type==="radio"&&AK.data(E,"_change_data",N(E))}},setup:function(G,E,I){for(var H in Av){AK.event.add(this,H+".specialChange."+I.guid,Av[H])}return AJ.test(this.nodeName)},remove:function(G,E){for(var H in Av){AK.event.remove(this,H+".specialChange"+(E?"."+E.guid:""),Av[H])}return AJ.test(this.nodeName)}};var Av=AK.event.special.change.filters}s.addEventListener&&AK.each({focus:"focusin",blur:"focusout"},function(G,E){function H(I){I=AK.event.fix(I);I.type=E;return AK.event.handle.call(this,I)}AK.event.special[E]={setup:function(){this.addEventListener(G,H,true)},teardown:function(){this.removeEventListener(G,H,true)}}});AK.each(["bind","one"],function(G,E){AK.fn[E]=function(P,K,L){if(typeof P==="object"){for(var I in P){this[E](I,K,P[I],L)}return this}if(AK.isFunction(K)){L=K;K=AF}var H=E==="one"?AK.proxy(L,function(Q){AK(this).unbind(Q,H);return L.apply(this,arguments)}):L;return P==="unload"&&E!=="one"?this.one(P,K,L):this.each(function(){AK.event.add(this,P,H,K)})}});AK.fn.extend({unbind:function(G,E){if(typeof G==="object"&&!G.preventDefault){for(var H in G){this.unbind(H,G[H])}return this}return this.each(function(){AK.event.remove(this,G,E)})},trigger:function(G,E){return this.each(function(){AK.event.trigger(G,E,this)})},triggerHandler:function(G,E){if(this[0]){G=AK.Event(G);G.preventDefault();G.stopPropagation();AK.event.trigger(G,E,this[0]);return G.result}},toggle:function(G){for(var E=arguments,H=1;H<E.length;){AK.proxy(G,E[H++])}return this.click(AK.proxy(G,function(I){var K=(AK.data(this,"lastToggle"+G.guid)||0)%H;AK.data(this,"lastToggle"+G.guid,K+1);I.preventDefault();return E[K].apply(this,arguments)||false}))},hover:function(G,E){return this.mouseenter(G).mouseleave(E||G)}});AK.each(["live","die"],function(G,E){AK.fn[E]=function(P,K,L){var I,H=0;if(AK.isFunction(K)){L=K;K=AF}for(P=(P||"").split(/\s+/);(I=P[H++])!=null;){I=I==="focus"?"focusin":I==="blur"?"focusout":I==="hover"?P.push("mouseleave")&&"mouseenter":I;E==="live"?AK(this.context).bind(AU(I,this.selector),{data:K,selector:this.selector,live:I},L):AK(this.context).unbind(AU(I,this.selector),L?{guid:L.guid+this.selector+I}:null)}return this}});AK.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(G,E){AK.fn[E]=function(H){return H?this.bind(E,H):this.trigger(E)};if(AK.attrFn){AK.attrFn[E]=true}});AD.attachEvent&&!AD.addEventListener&&AD.attachEvent("onunload",function(){for(var G in AK.cache){if(AK.cache[G].handle){try{AK.event.remove(AK.cache[G].handle.elem)}catch(E){}}}});(function(){function q(w){for(var t="",r,x=0;w[x];x++){r=w[x];if(r.nodeType===3||r.nodeType===4){t+=r.nodeValue}else{if(r.nodeType!==8){t+=q(r.childNodes)}}}return t}function l(BF,Aa,x,w,BH,BI){BH=0;for(var t=w.length;BH<t;BH++){var BG=w[BH];if(BG){BG=BG[BF];for(var r=false;BG;){if(BG.sizcache===x){r=w[BG.sizset];break}if(BG.nodeType===1&&!BI){BG.sizcache=x;BG.sizset=BH}if(BG.nodeName.toLowerCase()===Aa){r=BG;break}BG=BG[BF]}w[BH]=r}}}function i(BF,Aa,x,w,BH,BI){BH=0;for(var t=w.length;BH<t;BH++){var BG=w[BH];if(BG){BG=BG[BF];for(var r=false;BG;){if(BG.sizcache===x){r=w[BG.sizset];break}if(BG.nodeType===1){if(!BI){BG.sizcache=x;BG.sizset=BH}if(typeof Aa!=="string"){if(BG===Aa){r=true;break}}else{if(P.filter(Aa,[BG]).length>0){r=BG;break}}}BG=BG[BF]}w[BH]=r}}}var Z=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,c=0,X=Object.prototype.toString,W=false,S=true;[0,0].sort(function(){S=false;return 0});var P=function(BI,BH,BF,x){BF=BF||[];var BM=BH=BH||s;if(BH.nodeType!==1&&BH.nodeType!==9){return[]}if(!BI||typeof BI!=="string"){return BF}for(var BN=[],w,BL,r,BK,BG=true,t=R(BH),Aa=BI;(Z.exec(""),w=Z.exec(Aa))!==null;){Aa=w[3];BN.push(w[1]);if(w[2]){BK=w[3];break}}if(BN.length>1&&K.exec(BI)){if(BN.length===2&&T.relative[BN[0]]){BL=H(BN[0]+BN[1],BH)}else{for(BL=T.relative[BN[0]]?[BH]:P(BN.shift(),BH);BN.length;){BI=BN.shift();if(T.relative[BI]){BI+=BN.shift()}BL=H(BI,BL)}}}else{if(!x&&BN.length>1&&BH.nodeType===9&&!t&&T.match.ID.test(BN[0])&&!T.match.ID.test(BN[BN.length-1])){w=P.find(BN.shift(),BH,t);BH=w.expr?P.filter(w.expr,w.set)[0]:w.set[0]}if(BH){w=x?{expr:BN.pop(),set:L(x)}:P.find(BN.pop(),BN.length===1&&(BN[0]==="~"||BN[0]==="+")&&BH.parentNode?BH.parentNode:BH,t);BL=w.expr?P.filter(w.expr,w.set):w.set;if(BN.length>0){r=L(BL)}else{BG=false}for(;BN.length;){var BJ=BN.pop();w=BJ;if(T.relative[BJ]){w=BN.pop()}else{BJ=""}if(w==null){w=BH}T.relative[BJ](r,w,t)}}else{r=[]}}r||(r=BL);r||P.error(BJ||BI);if(X.call(r)==="[object Array]"){if(BG){if(BH&&BH.nodeType===1){for(BI=0;r[BI]!=null;BI++){if(r[BI]&&(r[BI]===true||r[BI].nodeType===1&&E(BH,r[BI]))){BF.push(BL[BI])}}}else{for(BI=0;r[BI]!=null;BI++){r[BI]&&r[BI].nodeType===1&&BF.push(BL[BI])}}}else{BF.push.apply(BF,r)}}else{L(r,BF)}if(BK){P(BK,BM,BF,x);P.uniqueSort(BF)}return BF};P.uniqueSort=function(t){if(G){W=S;t.sort(G);if(W){for(var r=1;r<t.length;r++){t[r]===t[r-1]&&t.splice(r--,1)}}}return t};P.matches=function(t,r){return P(t,null,null,r)};P.find=function(BF,Aa,x){var w,BH;if(!BF){return[]}for(var BI=0,t=T.order.length;BI<t;BI++){var BG=T.order[BI];if(BH=T.leftMatch[BG].exec(BF)){var r=BH[1];BH.splice(1,1);if(r.substr(r.length-1)!=="\\"){BH[1]=(BH[1]||"").replace(/\\/g,"");w=T.find[BG](BH,Aa,x);if(w!=null){BF=BF.replace(T.match[BG],"");break}}}}w||(w=Aa.getElementsByTagName("*"));return{set:w,expr:BF}};P.filter=function(BJ,BI,BG,Aa){for(var BO=BJ,BP=[],x=BI,BN,r,BM=BI&&BI[0]&&R(BI[0]);BJ&&BI.length;){for(var BH in T.filter){if((BN=T.leftMatch[BH].exec(BJ))!=null&&BN[2]){var w=T.filter[BH],BF,BL;BL=BN[1];r=false;BN.splice(1,1);if(BL.substr(BL.length-1)!=="\\"){if(x===BP){BP=[]}if(T.preFilter[BH]){if(BN=T.preFilter[BH](BN,x,BG,BP,Aa,BM)){if(BN===true){continue}}else{r=BF=true}}if(BN){for(var BK=0;(BL=x[BK])!=null;BK++){if(BL){BF=w(BL,BN,BK,x);var t=Aa^!!BF;if(BG&&BF!=null){if(t){r=true}else{x[BK]=false}}else{if(t){BP.push(BL);r=true}}}}}if(BF!==AF){BG||(x=BP);BJ=BJ.replace(T.match[BH],"");if(!r){return[]}break}}}}if(BJ===BO){if(r==null){P.error(BJ)}else{break}}BO=BJ}return x};P.error=function(r){throw"Syntax error, unrecognized expression: "+r};var T=P.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(r){return r.getAttribute("href")}},relative:{"+":function(Aa,x){var r=typeof x==="string",BF=r&&!/\W/.test(x);r=r&&!BF;if(BF){x=x.toLowerCase()}BF=0;for(var t=Aa.length,w;BF<t;BF++){if(w=Aa[BF]){for(;(w=w.previousSibling)&&w.nodeType!==1;){}Aa[BF]=r||w&&w.nodeName.toLowerCase()===x?w||false:w===x}}r&&P.filter(x,Aa,true)},">":function(Aa,x){var r=typeof x==="string";if(r&&!/\W/.test(x)){x=x.toLowerCase();for(var BF=0,t=Aa.length;BF<t;BF++){var w=Aa[BF];if(w){r=w.parentNode;Aa[BF]=r.nodeName.toLowerCase()===x?r:false}}}else{BF=0;for(t=Aa.length;BF<t;BF++){if(w=Aa[BF]){Aa[BF]=r?w.parentNode:w.parentNode===x}}r&&P.filter(x,Aa,true)}},"":function(Aa,x,r){var BF=c++,t=i;if(typeof x==="string"&&!/\W/.test(x)){var w=x=x.toLowerCase();t=l}t("parentNode",x,BF,Aa,w,r)},"~":function(Aa,x,r){var BF=c++,t=i;if(typeof x==="string"&&!/\W/.test(x)){var w=x=x.toLowerCase();t=l}t("previousSibling",x,BF,Aa,w,r)}},find:{ID:function(w,t,r){if(typeof t.getElementById!=="undefined"&&!r){return(w=t.getElementById(w[1]))?[w]:[]}},NAME:function(x,w){if(typeof w.getElementsByName!=="undefined"){var r=[];w=w.getElementsByName(x[1]);for(var Aa=0,t=w.length;Aa<t;Aa++){w[Aa].getAttribute("name")===x[1]&&r.push(w[Aa])}return r.length===0?null:r}},TAG:function(t,r){return r.getElementsByTagName(t[1])}},preFilter:{CLASS:function(BF,Aa,t,BG,w,x){BF=" "+BF[1].replace(/\\/g,"")+" ";if(x){return BF}x=0;for(var r;(r=Aa[x])!=null;x++){if(r){if(w^(r.className&&(" "+r.className+" ").replace(/[\t\n]/g," ").indexOf(BF)>=0)){t||BG.push(r)}else{if(t){Aa[x]=false}}}}return false},ID:function(r){return r[1].replace(/\\/g,"")},TAG:function(r){return r[1].toLowerCase()},CHILD:function(t){if(t[1]==="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(t[2]==="even"&&"2n"||t[2]==="odd"&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=r[1]+(r[2]||1)-0;t[3]=r[3]-0}t[0]=c++;return t},ATTR:function(Aa,x,r,BF,t,w){x=Aa[1].replace(/\\/g,"");if(!w&&T.attrMap[x]){Aa[1]=T.attrMap[x]}if(Aa[2]==="~="){Aa[4]=" "+Aa[4]+" "}return Aa},PSEUDO:function(x,w,r,Aa,t){if(x[1]==="not"){if((Z.exec(x[3])||"").length>1||/^\w/.test(x[3])){x[3]=P(x[3],null,null,w)}else{x=P.filter(x[3],w,r,true^t);r||Aa.push.apply(Aa,x);return false}}else{if(T.match.POS.test(x[0])||T.match.CHILD.test(x[0])){return true}}return x},POS:function(r){r.unshift(true);return r}},filters:{enabled:function(r){return r.disabled===false&&r.type!=="hidden"},disabled:function(r){return r.disabled===true},checked:function(r){return r.checked===true},selected:function(r){return r.selected===true},parent:function(r){return !!r.firstChild},empty:function(r){return !r.firstChild},has:function(w,t,r){return !!P(r[3],w).length},header:function(r){return/h\d/i.test(r.nodeName)},text:function(r){return"text"===r.type},radio:function(r){return"radio"===r.type},checkbox:function(r){return"checkbox"===r.type},file:function(r){return"file"===r.type},password:function(r){return"password"===r.type},submit:function(r){return"submit"===r.type},image:function(r){return"image"===r.type},reset:function(r){return"reset"===r.type},button:function(r){return"button"===r.type||r.nodeName.toLowerCase()==="button"},input:function(r){return/input|select|textarea|button/i.test(r.nodeName)}},setFilters:{first:function(t,r){return r===0},last:function(w,t,r,x){return t===x.length-1},even:function(t,r){return r%2===0},odd:function(t,r){return r%2===1},lt:function(w,t,r){return t<r[3]-0},gt:function(w,t,r){return t>r[3]-0},nth:function(w,t,r){return r[3]-0===t},eq:function(w,t,r){return r[3]-0===t}},filter:{PSEUDO:function(Aa,x,r,BF){var t=x[1],w=T.filters[t];if(w){return w(Aa,r,x,BF)}else{if(t==="contains"){return(Aa.textContent||Aa.innerText||q([Aa])||"").indexOf(x[3])>=0}else{if(t==="not"){x=x[3];r=0;for(BF=x.length;r<BF;r++){if(x[r]===Aa){return false}}return true}else{P.error("Syntax error, unrecognized expression: "+t)}}}},CHILD:function(BF,Aa){var t=Aa[1],BG=BF;switch(t){case"only":case"first":for(;BG=BG.previousSibling;){if(BG.nodeType===1){return false}}if(t==="first"){return true}BG=BF;case"last":for(;BG=BG.nextSibling;){if(BG.nodeType===1){return false}}return true;case"nth":t=Aa[2];var w=Aa[3];if(t===1&&w===0){return true}Aa=Aa[0];var x=BF.parentNode;if(x&&(x.sizcache!==Aa||!BF.nodeIndex)){var r=0;for(BG=x.firstChild;BG;BG=BG.nextSibling){if(BG.nodeType===1){BG.nodeIndex=++r}}x.sizcache=Aa}BF=BF.nodeIndex-w;return t===0?BF===0:BF%t===0&&BF/t>=0}},ID:function(t,r){return t.nodeType===1&&t.getAttribute("id")===r},TAG:function(t,r){return r==="*"&&t.nodeType===1||t.nodeName.toLowerCase()===r},CLASS:function(t,r){return(" "+(t.className||t.getAttribute("class"))+" ").indexOf(r)>-1},ATTR:function(w,t){var r=t[1];w=T.attrHandle[r]?T.attrHandle[r](w):w[r]!=null?w[r]:w.getAttribute(r);r=w+"";var x=t[2];t=t[4];return w==null?x==="!=":x==="="?r===t:x==="*="?r.indexOf(t)>=0:x==="~="?(" "+r+" ").indexOf(t)>=0:!t?r&&w!==false:x==="!="?r!==t:x==="^="?r.indexOf(t)===0:x==="$="?r.substr(r.length-t.length)===t:x==="|="?r===t||r.substr(0,t.length+1)===t+"-":false},POS:function(x,w,r,Aa){var t=T.setFilters[w[2]];if(t){return t(x,r,w,Aa)}}}},K=T.match.POS;for(var Q in T.match){T.match[Q]=new RegExp(T.match[Q].source+/(?![^\[]*\])(?![^\(]*\))/.source);T.leftMatch[Q]=new RegExp(/(^(?:.|\r|\n)*?)/.source+T.match[Q].source.replace(/\\(\d+)/g,function(t,r){return"\\"+(r-0+1)}))}var L=function(t,r){t=Array.prototype.slice.call(t,0);if(r){r.push.apply(r,t);return r}return t};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(I){L=function(w,t){t=t||[];if(X.call(w)==="[object Array]"){Array.prototype.push.apply(t,w)}else{if(typeof w.length==="number"){for(var r=0,x=w.length;r<x;r++){t.push(w[r])}}else{for(r=0;w[r];r++){t.push(w[r])}}}return t}}var G;if(s.documentElement.compareDocumentPosition){G=function(t,r){if(!t.compareDocumentPosition||!r.compareDocumentPosition){if(t==r){W=true}return t.compareDocumentPosition?-1:1}t=t.compareDocumentPosition(r)&4?-1:t===r?0:1;if(t===0){W=true}return t}}else{if("sourceIndex" in s.documentElement){G=function(t,r){if(!t.sourceIndex||!r.sourceIndex){if(t==r){W=true}return t.sourceIndex?-1:1}t=t.sourceIndex-r.sourceIndex;if(t===0){W=true}return t}}else{if(s.createRange){G=function(w,t){if(!w.ownerDocument||!t.ownerDocument){if(w==t){W=true}return w.ownerDocument?-1:1}var r=w.ownerDocument.createRange(),x=t.ownerDocument.createRange();r.setStart(w,0);r.setEnd(w,0);x.setStart(t,0);x.setEnd(t,0);w=r.compareBoundaryPoints(Range.START_TO_END,x);if(w===0){W=true}return w}}}}(function(){var w=s.createElement("div"),t="script"+(new Date).getTime();w.innerHTML="<a name='"+t+"'/>";var r=s.documentElement;r.insertBefore(w,r.firstChild);if(s.getElementById(t)){T.find.ID=function(BF,x,Aa){if(typeof x.getElementById!=="undefined"&&!Aa){return(x=x.getElementById(BF[1]))?x.id===BF[1]||typeof x.getAttributeNode!=="undefined"&&x.getAttributeNode("id").nodeValue===BF[1]?[x]:AF:[]}};T.filter.ID=function(BF,x){var Aa=typeof BF.getAttributeNode!=="undefined"&&BF.getAttributeNode("id");return BF.nodeType===1&&Aa&&Aa.nodeValue===x}}r.removeChild(w);r=w=null})();(function(){var r=s.createElement("div");r.appendChild(s.createComment(""));if(r.getElementsByTagName("*").length>0){T.find.TAG=function(w,t){t=t.getElementsByTagName(w[1]);if(w[1]==="*"){w=[];for(var x=0;t[x];x++){t[x].nodeType===1&&w.push(t[x])}t=w}return t}}r.innerHTML="<a href='#'></a>";if(r.firstChild&&typeof r.firstChild.getAttribute!=="undefined"&&r.firstChild.getAttribute("href")!=="#"){T.attrHandle.href=function(t){return t.getAttribute("href",2)}}r=null})();s.querySelectorAll&&function(){var w=P,t=s.createElement("div");t.innerHTML="<p class='TEST'></p>";if(!(t.querySelectorAll&&t.querySelectorAll(".TEST").length===0)){P=function(BH,Aa,BF,x){Aa=Aa||s;if(!x&&Aa.nodeType===9&&!R(Aa)){try{return L(Aa.querySelectorAll(BH),BF)}catch(BG){}}return w(BH,Aa,BF,x)};for(var r in w){P[r]=w[r]}t=null}}();(function(){var r=s.createElement("div");r.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!r.getElementsByClassName||r.getElementsByClassName("e").length===0)){r.lastChild.className="e";if(r.getElementsByClassName("e").length!==1){T.order.splice(1,0,"CLASS");T.find.CLASS=function(w,t,x){if(typeof t.getElementsByClassName!=="undefined"&&!x){return t.getElementsByClassName(w[1])}};r=null}}})();var E=s.compareDocumentPosition?function(t,r){return t.compareDocumentPosition(r)&16}:function(t,r){return t!==r&&(t.contains?t.contains(r):true)},R=function(r){return(r=(r?r.ownerDocument||r:0).documentElement)?r.nodeName!=="HTML":false},H=function(Aa,x){var r=[],BF="",t;for(x=x.nodeType?[x]:x;t=T.match.PSEUDO.exec(Aa);){BF+=t[0];Aa=Aa.replace(T.match.PSEUDO,"")}Aa=T.relative[Aa]?Aa+"*":Aa;t=0;for(var w=x.length;t<w;t++){P(Aa,x[t],r)}return P.filter(BF,r)};AK.find=P;AK.expr=P.selectors;AK.expr[":"]=AK.expr.filters;AK.unique=P.uniqueSort;AK.getText=q;AK.isXMLDoc=R;AK.contains=E})();var AX=/Until$/,AB=/^(?:parents|prevUntil|prevAll)/,d=/,/;e=Array.prototype.slice;var Az=function(G,E,I){if(AK.isFunction(E)){return AK.grep(G,function(L,K){return !!E.call(L,K,L)===I})}else{if(E.nodeType){return AK.grep(G,function(K){return K===E===I})}else{if(typeof E==="string"){var H=AK.grep(G,function(K){return K.nodeType===1});if(p.test(E)){return AK.filter(E,H,!I)}else{E=AK.filter(E,H)}}}}return AK.grep(G,function(K){return AK.inArray(K,E)>=0===I})};AK.fn.extend({find:function(G){for(var E=this.pushStack("","find",G),P=0,K=0,L=this.length;K<L;K++){P=E.length;AK.find(G,this[K],E);if(K>0){for(var I=P;I<E.length;I++){for(var H=0;H<P;H++){if(E[H]===E[I]){E.splice(I--,1);break}}}}}return E},has:function(G){var E=AK(G);return this.filter(function(){for(var I=0,H=E.length;I<H;I++){if(AK.contains(this,E[I])){return true}}})},not:function(E){return this.pushStack(Az(this,E,false),"not",E)},filter:function(E){return this.pushStack(Az(this,E,true),"filter",E)},is:function(E){return !!E&&AK.filter(E,this).length>0},closest:function(Q,P){if(AK.isArray(Q)){var L=[],I=this[0],K,H={},G;if(I&&Q.length){K=0;for(var E=Q.length;K<E;K++){G=Q[K];H[G]||(H[G]=AK.expr.match.POS.test(G)?AK(G,P||this.context):G)}for(;I&&I.ownerDocument&&I!==P;){for(G in H){K=H[G];if(K.jquery?K.index(I)>-1:AK(I).is(K)){L.push({selector:G,elem:I});delete H[G]}}I=I.parentNode}}return L}var R=AK.expr.match.POS.test(Q)?AK(Q,P||this.context):null;return this.map(function(S,T){for(;T&&T.ownerDocument&&T!==P;){if(R?R.index(T)>-1:AK(T).is(Q)){return T}T=T.parentNode}return null})},index:function(E){if(!E||typeof E==="string"){return AK.inArray(this[0],E?AK(E):this.parent().children())}return AK.inArray(E.jquery?E[0]:E,this)},add:function(G,E){G=typeof G==="string"?AK(G,E||this.context):AK.makeArray(G);E=AK.merge(this.get(),G);return this.pushStack(AS(G[0])||AS(E[0])?E:AK.unique(E))},andSelf:function(){return this.add(this.prevObject)}});AK.each({parent:function(E){return(E=E.parentNode)&&E.nodeType!==11?E:null},parents:function(E){return AK.dir(E,"parentNode")},parentsUntil:function(G,E,H){return AK.dir(G,"parentNode",H)},next:function(E){return AK.nth(E,2,"nextSibling")},prev:function(E){return AK.nth(E,2,"previousSibling")},nextAll:function(E){return AK.dir(E,"nextSibling")},prevAll:function(E){return AK.dir(E,"previousSibling")},nextUntil:function(G,E,H){return AK.dir(G,"nextSibling",H)},prevUntil:function(G,E,H){return AK.dir(G,"previousSibling",H)},siblings:function(E){return AK.sibling(E.parentNode.firstChild,E)},children:function(E){return AK.sibling(E.firstChild)},contents:function(E){return AK.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:AK.makeArray(E.childNodes)}},function(G,E){AK.fn[G]=function(K,H){var I=AK.map(this,E,K);AX.test(G)||(H=K);if(H&&typeof H==="string"){I=AK.filter(H,I)}I=this.length>1?AK.unique(I):I;if((this.length>1||d.test(H))&&AB.test(G)){I=I.reverse()}return this.pushStack(I,G,e.call(arguments).join(","))}});AK.extend({filter:function(G,E,H){if(H){G=":not("+G+")"}return AK.find.matches(G,E)},dir:function(G,E,I){var H=[];for(G=G[E];G&&G.nodeType!==9&&(I===AF||G.nodeType!==1||!AK(G).is(I));){G.nodeType===1&&H.push(G);G=G[E]}return H},nth:function(G,E,I){E=E||1;for(var H=0;G;G=G[I]){if(G.nodeType===1&&++H===E){break}}return G},sibling:function(G,E){for(var H=[];G;G=G.nextSibling){G.nodeType===1&&G!==E&&H.push(G)}return H}});var Al=/ jQuery\d+="(?:\d+|null)"/g,AG=/^\s+/,AL=/(<([\w:]+)[^>]*?)\/>/g,F=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,m=/<([\w:]+)/,A7=/<tbody/i,Au=/<|&\w+;/,Y=/checked\s*(?:[^=]|=\s*.checked.)/i,U=function(G,E,H){return F.test(H)?G:E+"></"+H+">"},AY={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,"",""]};AY.optgroup=AY.option;AY.tbody=AY.tfoot=AY.colgroup=AY.caption=AY.thead;AY.th=AY.td;if(!AK.support.htmlSerialize){AY._default=[1,"div<div>","</div>"]}AK.fn.extend({text:function(E){if(AK.isFunction(E)){return this.each(function(G){var H=AK(this);H.text(E.call(this,G,H.text()))})}if(typeof E!=="object"&&E!==AF){return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(E))}return AK.getText(this)},wrapAll:function(G){if(AK.isFunction(G)){return this.each(function(H){AK(this).wrapAll(G.call(this,H))})}if(this[0]){var E=AK(G,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&E.insertBefore(this[0]);E.map(function(){for(var H=this;H.firstChild&&H.firstChild.nodeType===1;){H=H.firstChild}return H}).append(this)}return this},wrapInner:function(E){if(AK.isFunction(E)){return this.each(function(G){AK(this).wrapInner(E.call(this,G))})}return this.each(function(){var G=AK(this),H=G.contents();H.length?H.wrapAll(E):G.append(E)})},wrap:function(E){return this.each(function(){AK(this).wrapAll(E)})},unwrap:function(){return this.parent().each(function(){AK.nodeName(this,"body")||AK(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(E){this.nodeType===1&&this.appendChild(E)})},prepend:function(){return this.domManip(arguments,true,function(E){this.nodeType===1&&this.insertBefore(E,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(G){this.parentNode.insertBefore(G,this)})}else{if(arguments.length){var E=AK(arguments[0]);E.push.apply(E,this.toArray());return this.pushStack(E,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(G){this.parentNode.insertBefore(G,this.nextSibling)})}else{if(arguments.length){var E=this.pushStack(this,"after",arguments);E.push.apply(E,AK(arguments[0]).toArray());return E}}},clone:function(G){var E=this.map(function(){if(!AK.support.noCloneEvent&&!AK.isXMLDoc(this)){var I=this.outerHTML,H=this.ownerDocument;if(!I){I=H.createElement("div");I.appendChild(this.cloneNode(true));I=I.innerHTML}return AK.clean([I.replace(Al,"").replace(AG,"")],H)[0]}else{return this.cloneNode(true)}});if(G===true){A0(this,E);A0(this.find("*"),E.find("*"))}return E},html:function(G){if(G===AF){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Al,""):null}else{if(typeof G==="string"&&!/<script/i.test(G)&&(AK.support.leadingWhitespace||!AG.test(G))&&!AY[(m.exec(G)||["",""])[1].toLowerCase()]){G=G.replace(AL,U);try{for(var E=0,I=this.length;E<I;E++){if(this[E].nodeType===1){AK.cleanData(this[E].getElementsByTagName("*"));this[E].innerHTML=G}}}catch(H){this.empty().append(G)}}else{AK.isFunction(G)?this.each(function(P){var L=AK(this),K=L.html();L.empty().append(function(){return G.call(this,P,K)})}):this.empty().append(G)}}return this},replaceWith:function(E){if(this[0]&&this[0].parentNode){if(AK.isFunction(E)){return this.each(function(G){var I=AK(this),H=I.html();I.replaceWith(E.call(this,G,H))})}else{E=AK(E).detach()}return this.each(function(){var G=this.nextSibling,H=this.parentNode;AK(this).remove();G?AK(G).before(E):AK(H).append(E)})}else{return this.pushStack(AK(AK.isFunction(E)?E():E),"replaceWith",E)}},detach:function(E){return this.remove(E,true)},domManip:function(R,Q,P){function K(T){return AK.nodeName(T,"table")?T.getElementsByTagName("tbody")[0]||T.appendChild(T.ownerDocument.createElement("tbody")):T}var L,I,H=R[0],E=[];if(!AK.support.checkClone&&arguments.length===3&&typeof H==="string"&&Y.test(H)){return this.each(function(){AK(this).domManip(R,Q,P,true)})}if(AK.isFunction(H)){return this.each(function(W){var T=AK(this);R[0]=H.call(this,W,Q?T.html():AF);T.domManip(R,Q,P)})}if(this[0]){L=R[0]&&R[0].parentNode&&R[0].parentNode.nodeType===11?{fragment:R[0].parentNode}:AT(R,this,E);if(I=L.fragment.firstChild){Q=Q&&AK.nodeName(I,"tr");for(var S=0,G=this.length;S<G;S++){P.call(Q?K(this[S],I):this[S],L.cacheable||this.length>1||S>0?L.fragment.cloneNode(true):L.fragment)}}E&&AK.each(E,z)}return this}});AK.fragments={};AK.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(G,E){AK.fn[G]=function(P){var K=[];P=AK(P);for(var L=0,I=P.length;L<I;L++){var H=(L>0?this.clone(true):this).get();AK.fn[E].apply(AK(P[L]),H);K=K.concat(H)}return this.pushStack(K,G,P.selector)}});AK.each({remove:function(G,E){if(!G||AK.filter(G,[this]).length){if(!E&&this.nodeType===1){AK.cleanData(this.getElementsByTagName("*"));AK.cleanData([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&AK.cleanData(this.getElementsByTagName("*"));this.firstChild;){this.removeChild(this.firstChild)}}},function(G,E){AK.fn[G]=function(){return this.each(E,arguments)}});AK.extend({clean:function(G,E,K,H){E=E||s;if(typeof E.createElement==="undefined"){E=E.ownerDocument||E[0]&&E[0].ownerDocument||s}var I=[];AK.each(G,function(P,L){if(typeof L==="number"){L+=""}if(L){if(typeof L==="string"&&!Au.test(L)){L=E.createTextNode(L)}else{if(typeof L==="string"){L=L.replace(AL,U);var R=(m.exec(L)||["",""])[1].toLowerCase(),Q=AY[R]||AY._default,S=Q[0];P=E.createElement("div");for(P.innerHTML=Q[1]+L+Q[2];S--;){P=P.lastChild}if(!AK.support.tbody){S=A7.test(L);R=R==="table"&&!S?P.firstChild&&P.firstChild.childNodes:Q[1]==="<table>"&&!S?P.childNodes:[];for(Q=R.length-1;Q>=0;--Q){AK.nodeName(R[Q],"tbody")&&!R[Q].childNodes.length&&R[Q].parentNode.removeChild(R[Q])}}!AK.support.leadingWhitespace&&AG.test(L)&&P.insertBefore(E.createTextNode(AG.exec(L)[0]),P.firstChild);L=AK.makeArray(P.childNodes)}}if(L.nodeType){I.push(L)}else{I=AK.merge(I,L)}}});if(K){for(G=0;I[G];G++){if(H&&AK.nodeName(I[G],"script")&&(!I[G].type||I[G].type.toLowerCase()==="text/javascript")){H.push(I[G].parentNode?I[G].parentNode.removeChild(I[G]):I[G])}else{I[G].nodeType===1&&I.splice.apply(I,[G+1,0].concat(AK.makeArray(I[G].getElementsByTagName("script"))));K.appendChild(I[G])}}}return I},cleanData:function(G){for(var E=0,H;(H=G[E])!=null;E++){AK.event.remove(H);AK.removeData(H)}}});var Ad=/z-?index|font-?weight|opacity|zoom|line-?height/i,BE=/alpha\([^)]*\)/,A3=/opacity=([^)]*)/,BD=/float/i,A2=/-([a-z])/ig,AE=/([A-Z])/g,f=/^-?\d+(?:px)?$/i,J=/^-?\d/,BA={position:"absolute",visibility:"hidden",display:"block"},Ax=["Left","Right"],Ai=["Top","Bottom"],AI=s.defaultView&&s.defaultView.getComputedStyle,Ap=AK.support.cssFloat?"cssFloat":"styleFloat",Ao=function(G,E){return E.toUpperCase()};AK.fn.css=function(G,E){return AA(this,G,E,true,function(K,H,I){if(I===AF){return AK.curCSS(K,H)}if(typeof I==="number"&&!Ad.test(H)){I+="px"}AK.style(K,H,I)})};AK.extend({style:function(G,E,K){if(!G||G.nodeType===3||G.nodeType===8){return AF}if((E==="width"||E==="height")&&parseFloat(K)<0){K=AF}var H=G.style||G,I=K!==AF;if(!AK.support.opacity&&E==="opacity"){if(I){H.zoom=1;E=parseInt(K,10)+""==="NaN"?"":"alpha(opacity="+K*100+")";G=H.filter||AK.curCSS(G,"filter")||"";H.filter=BE.test(G)?G.replace(BE,E):E}return H.filter&&H.filter.indexOf("opacity=")>=0?parseFloat(A3.exec(H.filter)[1])/100+"":""}if(BD.test(E)){E=Ap}E=E.replace(A2,Ao);if(I){H[E]=K}return H[E]},css:function(G,E,P,K){if(E==="width"||E==="height"){var L,I=E==="width"?Ax:Ai;function H(){L=E==="width"?G.offsetWidth:G.offsetHeight;K!=="border"&&AK.each(I,function(){K||(L-=parseFloat(AK.curCSS(G,"padding"+this,true))||0);if(K==="margin"){L+=parseFloat(AK.curCSS(G,"margin"+this,true))||0}else{L-=parseFloat(AK.curCSS(G,"border"+this+"Width",true))||0}})}G.offsetWidth!==0?H():AK.swap(G,BA,H);return Math.max(0,Math.round(L))}return AK.curCSS(G,E,P)},curCSS:function(G,E,L){var I,K=G.style;if(!AK.support.opacity&&E==="opacity"&&G.currentStyle){I=A3.test(G.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return I===""?"1":I}if(BD.test(E)){E=Ap}if(!L&&K&&K[E]){I=K[E]}else{if(AI){if(BD.test(E)){E="float"}E=E.replace(AE,"-$1").toLowerCase();K=G.ownerDocument.defaultView;if(!K){return null}if(G=K.getComputedStyle(G,null)){I=G.getPropertyValue(E)}if(E==="opacity"&&I===""){I="1"}}else{if(G.currentStyle){L=E.replace(A2,Ao);I=G.currentStyle[E]||G.currentStyle[L];if(!f.test(I)&&J.test(I)){E=K.left;var H=G.runtimeStyle.left;G.runtimeStyle.left=G.currentStyle.left;K.left=L==="fontSize"?"1em":I||0;I=K.pixelLeft+"px";K.left=E;G.runtimeStyle.left=H}}}}return I},swap:function(G,E,K){var H={};for(var I in E){H[I]=G.style[I];G.style[I]=E[I]}K.call(G);for(I in E){G.style[I]=H[I]}}});if(AK.expr&&AK.expr.filters){AK.expr.filters.hidden=function(G){var E=G.offsetWidth,I=G.offsetHeight,H=G.nodeName.toLowerCase()==="tr";return E===0&&I===0&&!H?true:E>0&&I>0&&!H?false:AK.curCSS(G,"display")==="none"};AK.expr.filters.visible=function(E){return !AK.expr.filters.hidden(E)}}var j=v(),O=/<script(.|\s)*?\/script>/gi,BC=/select|textarea/i,A1=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,AP=/=\?(&|$)/,AN=/\?/,An=/(\?|&)_=.*?(&|$)/,AM=/^(\w+:)?\/\/([^\/?#]+)/,n=/%20/g;AK.fn.extend({_load:AK.fn.load,load:function(G,E,L){if(typeof G!=="string"){return this._load(G)}else{if(!this.length){return this}}var I=G.indexOf(" ");if(I>=0){var K=G.slice(I,G.length);G=G.slice(0,I)}I="GET";if(E){if(AK.isFunction(E)){L=E;E=null}else{if(typeof E==="object"){E=AK.param(E,AK.ajaxSettings.traditional);I="POST"}}}var H=this;AK.ajax({url:G,type:I,dataType:"html",data:E,complete:function(P,Q){if(Q==="success"||Q==="notmodified"){H.html(K?AK("<div />").append(P.responseText.replace(O,"")).find(K):P.responseText)}L&&H.each(L,[P.responseText,Q,P])}});return this},serialize:function(){return AK.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?AK.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||BC.test(this.nodeName)||A1.test(this.type))}).map(function(G,E){G=AK(this).val();return G==null?null:AK.isArray(G)?AK.map(G,function(H){return{name:E.name,value:H}}):{name:E.name,value:G}}).get()}});AK.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(G,E){AK.fn[E]=function(H){return this.bind(E,H)}});AK.extend({get:function(G,E,I,H){if(AK.isFunction(E)){H=H||I;I=E;E=null}return AK.ajax({type:"GET",url:G,data:E,success:I,dataType:H})},getScript:function(G,E){return AK.get(G,null,E,"script")},getJSON:function(G,E,H){return AK.get(G,E,H,"json")},post:function(G,E,I,H){if(AK.isFunction(E)){H=H||I;I=E;E={}}return AK.ajax({type:"POST",url:G,data:E,success:I,dataType:H})},ajaxSetup:function(E){AK.extend(AK.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:AD.XMLHttpRequest&&(AD.location.protocol!=="file:"||!AD.ActiveXObject)?function(){return new AD.XMLHttpRequest}:function(){try{return new AD.ActiveXObject("Microsoft.XMLHTTP")}catch(E){}},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(x){function w(){r.success&&r.success.call(P,S,Z,R);r.global&&q("ajaxSuccess",[R,r])}function t(){r.complete&&r.complete.call(P,R,Z);r.global&&q("ajaxComplete",[R,r]);r.global&&!--AK.active&&AK.event.trigger("ajaxStop")}function q(Aa,BF){(r.context?AK(r.context):AK.event).trigger(Aa,BF)}var r=AK.extend(true,{},AK.ajaxSettings,x),c,Z,S,P=x&&x.context||r,T=r.type.toUpperCase();if(r.data&&r.processData&&typeof r.data!=="string"){r.data=AK.param(r.data,r.traditional)}if(r.dataType==="jsonp"){if(T==="GET"){AP.test(r.url)||(r.url+=(AN.test(r.url)?"&":"?")+(r.jsonp||"callback")+"=?")}else{if(!r.data||!AP.test(r.data)){r.data=(r.data?r.data+"&":"")+(r.jsonp||"callback")+"=?"}}r.dataType="json"}if(r.dataType==="json"&&(r.data&&AP.test(r.data)||AP.test(r.url))){c=r.jsonpCallback||"jsonp"+j++;if(r.data){r.data=(r.data+"").replace(AP,"="+c+"$1")}r.url=r.url.replace(AP,"="+c+"$1");r.dataType="script";AD[c]=AD[c]||function(Aa){S=Aa;w();t();AD[c]=AF;try{delete AD[c]}catch(BF){}L&&L.removeChild(I)}}if(r.dataType==="script"&&r.cache===null){r.cache=false}if(r.cache===false&&T==="GET"){var K=v(),Q=r.url.replace(An,"$1_="+K+"$2");r.url=Q+(Q===r.url?(AN.test(r.url)?"&":"?")+"_="+K:"")}if(r.data&&T==="GET"){r.url+=(AN.test(r.url)?"&":"?")+r.data}r.global&&!AK.active++&&AK.event.trigger("ajaxStart");K=(K=AM.exec(r.url))&&(K[1]&&K[1]!==location.protocol||K[2]!==location.host);if(r.dataType==="script"&&T==="GET"&&K){var L=s.getElementsByTagName("head")[0]||s.documentElement,I=s.createElement("script");I.src=r.url;if(r.scriptCharset){I.charset=r.scriptCharset}if(!c){var G=false;I.onload=I.onreadystatechange=function(){if(!G&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){G=true;w();t();I.onload=I.onreadystatechange=null;L&&I.parentNode&&L.removeChild(I)}}}L.insertBefore(I,L.firstChild);return AF}var E=false,R=r.xhr();if(R){r.username?R.open(T,r.url,r.async,r.username,r.password):R.open(T,r.url,r.async);try{if(r.data||x&&x.contentType){R.setRequestHeader("Content-Type",r.contentType)}if(r.ifModified){AK.lastModified[r.url]&&R.setRequestHeader("If-Modified-Since",AK.lastModified[r.url]);AK.etag[r.url]&&R.setRequestHeader("If-None-Match",AK.etag[r.url])}K||R.setRequestHeader("X-Requested-With","XMLHttpRequest");R.setRequestHeader("Accept",r.dataType&&r.accepts[r.dataType]?r.accepts[r.dataType]+", */*":r.accepts._default)}catch(H){}if(r.beforeSend&&r.beforeSend.call(P,R,r)===false){r.global&&!--AK.active&&AK.event.trigger("ajaxStop");R.abort();return false}r.global&&q("ajaxSend",[R,r]);var l=R.onreadystatechange=function(BF){if(!R||R.readyState===0||BF==="abort"){E||t();E=true;if(R){R.onreadystatechange=AK.noop}}else{if(!E&&R&&(R.readyState===4||BF==="timeout")){E=true;R.onreadystatechange=AK.noop;Z=BF==="timeout"?"timeout":!AK.httpSuccess(R)?"error":r.ifModified&&AK.httpNotModified(R,r.url)?"notmodified":"success";var BG;if(Z==="success"){try{S=AK.httpData(R,r.dataType,r)}catch(Aa){Z="parsererror";BG=Aa}}if(Z==="success"||Z==="notmodified"){c||w()}else{AK.handleError(r,R,Z,BG)}t();BF==="timeout"&&R.abort();if(r.async){R=null}}}};try{var i=R.abort;R.abort=function(){R&&i.call(R);l("abort")}}catch(X){}r.async&&r.timeout>0&&setTimeout(function(){R&&!E&&l("timeout")},r.timeout);try{R.send(T==="POST"||T==="PUT"||T==="DELETE"?r.data:null)}catch(W){AK.handleError(r,R,null,W);t()}r.async||l();return R}},handleError:function(G,E,I,H){if(G.error){G.error.call(G.context||G,E,I,H)}if(G.global){(G.context?AK(G.context):AK.event).trigger("ajaxError",[E,G,H])}},active:0,httpSuccess:function(G){try{return !G.status&&location.protocol==="file:"||G.status>=200&&G.status<300||G.status===304||G.status===1223||G.status===0}catch(E){}return false},httpNotModified:function(G,E){var I=G.getResponseHeader("Last-Modified"),H=G.getResponseHeader("Etag");if(I){AK.lastModified[E]=I}if(H){AK.etag[E]=H}return G.status===304||G.status===0},httpData:function(G,E,K){var H=G.getResponseHeader("content-type")||"",I=E==="xml"||!E&&H.indexOf("xml")>=0;G=I?G.responseXML:G.responseText;I&&G.documentElement.nodeName==="parsererror"&&AK.error("parsererror");if(K&&K.dataFilter){G=K.dataFilter(G,E)}if(typeof G==="string"){if(E==="json"||!E&&H.indexOf("json")>=0){G=AK.parseJSON(G)}else{if(E==="script"||!E&&H.indexOf("javascript")>=0){AK.globalEval(G)}}}return G},param:function(G,E){function L(P,Q){if(AK.isArray(Q)){AK.each(Q,function(R,S){E?I(P,S):L(P+"["+(typeof S==="object"||AK.isArray(S)?R:"")+"]",S)})}else{!E&&Q!=null&&typeof Q==="object"?AK.each(Q,function(R,S){L(P+"["+R+"]",S)}):I(P,Q)}}function I(P,Q){Q=AK.isFunction(Q)?Q():Q;K[K.length]=encodeURIComponent(P)+"="+encodeURIComponent(Q)}var K=[];if(E===AF){E=AK.ajaxSettings.traditional}if(AK.isArray(G)||G.jquery){AK.each(G,function(){I(this.name,this.value)})}else{for(var H in G){L(H,G[H])}}return K.join("&").replace(n,"+")}});var o={},V=/toggle|show|hide/,A=/^([+-]=)?([\d+-.]+)(.*)$/,g,B=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];AK.fn.extend({show:function(G,E){if(G||G===0){return this.animate(Ac("show",3),G,E)}else{G=0;for(E=this.length;G<E;G++){var K=AK.data(this[G],"olddisplay");this[G].style.display=K||"";if(AK.css(this[G],"display")==="none"){K=this[G].nodeName;var H;if(o[K]){H=o[K]}else{var I=AK("<"+K+" />").appendTo("body");H=I.css("display");if(H==="none"){H="block"}I.remove();o[K]=H}AK.data(this[G],"olddisplay",H)}}G=0;for(E=this.length;G<E;G++){this[G].style.display=AK.data(this[G],"olddisplay")||""}return this}},hide:function(G,E){if(G||G===0){return this.animate(Ac("hide",3),G,E)}else{G=0;for(E=this.length;G<E;G++){var H=AK.data(this[G],"olddisplay");!H&&H!=="none"&&AK.data(this[G],"olddisplay",AK.css(this[G],"display"))}G=0;for(E=this.length;G<E;G++){this[G].style.display="none"}return this}},_toggle:AK.fn.toggle,toggle:function(G,E){var H=typeof G==="boolean";if(AK.isFunction(G)&&AK.isFunction(E)){this._toggle.apply(this,arguments)}else{G==null||H?this.each(function(){var I=H?G:AK(this).is(":hidden");AK(this)[I?"show":"hide"]()}):this.animate(Ac("toggle",3),G,E)}return this},fadeTo:function(G,E,H){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:E},G,H)},animate:function(G,E,K,H){var I=AK.speed(E,K,H);if(AK.isEmptyObject(G)){return this.each(I.complete)}return this[I.queue===false?"each":"queue"](function(){var P=AK.extend({},I),L,R=this.nodeType===1&&AK(this).is(":hidden"),Q=this;for(L in G){var S=L.replace(A2,Ao);if(L!==S){G[S]=G[L];delete G[L];L=S}if(G[L]==="hide"&&R||G[L]==="show"&&!R){return P.complete.call(this)}if((L==="height"||L==="width")&&this.style){P.display=AK.css(this,"display");P.overflow=this.style.overflow}if(AK.isArray(G[L])){(P.specialEasing=P.specialEasing||{})[L]=G[L][1];G[L]=G[L][0]}}if(P.overflow!=null){this.style.overflow="hidden"}P.curAnim=AK.extend({},G);AK.each(G,function(i,Z){var W=new AK.fx(Q,P,i);if(V.test(Z)){W[Z==="toggle"?R?"show":"hide":Z](G)}else{var T=A.exec(Z),c=W.cur(true)||0;if(T){Z=parseFloat(T[2]);var X=T[3]||"px";if(X!=="px"){Q.style[i]=(Z||1)+X;c=(Z||1)/W.cur(true)*c;Q.style[i]=c+X}if(T[1]){Z=(T[1]==="-="?-1:1)*Z+c}W.custom(c,Z,X)}else{W.custom(c,Z,"")}}});return true})},stop:function(G,E){var H=AK.timers;G&&this.queue([]);this.each(function(){for(var I=H.length-1;I>=0;I--){if(H[I].elem===this){E&&H[I](true);H.splice(I,1)}}});E||this.dequeue();return this}});AK.each({slideDown:Ac("show",1),slideUp:Ac("hide",1),slideToggle:Ac("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(G,E){AK.fn[G]=function(I,H){return this.animate(E,I,H)}});AK.extend({speed:function(G,E,I){var H=G&&typeof G==="object"?G:{complete:I||!I&&E||AK.isFunction(G)&&G,duration:G,easing:I&&E||E&&!AK.isFunction(E)&&E};H.duration=AK.fx.off?0:typeof H.duration==="number"?H.duration:AK.fx.speeds[H.duration]||AK.fx.speeds._default;H.old=H.complete;H.complete=function(){H.queue!==false&&AK(this).dequeue();AK.isFunction(H.old)&&H.old.call(this)};return H},easing:{linear:function(G,E,I,H){return I+H*G},swing:function(G,E,I,H){return(-Math.cos(G*Math.PI)/2+0.5)*H+I}},timers:[],fx:function(G,E,H){this.options=E;this.elem=G;this.prop=H;if(!E.orig){E.orig={}}}});AK.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(AK.fx.step[this.prop]||AK.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(E){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(E=parseFloat(AK.css(this.elem,this.prop,E)))&&E>-10000?E:parseFloat(AK.curCSS(this.elem,this.prop))||0},custom:function(G,E,K){function H(L){return I.step(L)}this.startTime=v();this.start=G;this.end=E;this.unit=K||this.unit||"px";this.now=this.start;this.pos=this.state=0;var I=this;H.elem=this.elem;if(H()&&AK.timers.push(H)&&!g){g=setInterval(AK.fx.tick,13)}},show:function(){this.options.orig[this.prop]=AK.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());AK(this.elem).show()},hide:function(){this.options.orig[this.prop]=AK.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(G){var E=v(),K=true;if(G||E>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var H in this.options.curAnim){if(this.options.curAnim[H]!==true){K=false}}if(K){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;G=AK.data(this.elem,"olddisplay");this.elem.style.display=G?G:this.options.display;if(AK.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&AK(this.elem).hide();if(this.options.hide||this.options.show){for(var I in this.options.curAnim){AK.style(this.elem,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{I=E-this.startTime;this.state=I/this.options.duration;G=this.options.easing||(AK.easing.swing?"swing":"linear");this.pos=AK.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||G](this.state,I,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};AK.extend(AK.fx,{tick:function(){for(var G=AK.timers,E=0;E<G.length;E++){G[E]()||G.splice(E--,1)}G.length||AK.fx.stop()},stop:function(){clearInterval(g);g=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){AK.style(E.elem,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=(E.prop==="width"||E.prop==="height"?Math.max(0,E.now):E.now)+E.unit}else{E.elem[E.prop]=E.now}}}});if(AK.expr&&AK.expr.filters){AK.expr.filters.animated=function(E){return AK.grep(AK.timers,function(G){return E===G.elem}).length}}AK.fn.offset="getBoundingClientRect" in s.documentElement?function(G){var E=this[0];if(G){return this.each(function(K){AK.offset.setOffset(this,G,K)})}if(!E||!E.ownerDocument){return null}if(E===E.ownerDocument.body){return AK.offset.bodyOffset(E)}var I=E.getBoundingClientRect(),H=E.ownerDocument;E=H.body;H=H.documentElement;return{top:I.top+(self.pageYOffset||AK.support.boxModel&&H.scrollTop||E.scrollTop)-(H.clientTop||E.clientTop||0),left:I.left+(self.pageXOffset||AK.support.boxModel&&H.scrollLeft||E.scrollLeft)-(H.clientLeft||E.clientLeft||0)}}:function(R){var Q=this[0];if(R){return this.each(function(T){AK.offset.setOffset(this,R,T)})}if(!Q||!Q.ownerDocument){return null}if(Q===Q.ownerDocument.body){return AK.offset.bodyOffset(Q)}AK.offset.initialize();var P=Q.offsetParent,K=Q,L=Q.ownerDocument,I,H=L.documentElement,E=L.body;K=(L=L.defaultView)?L.getComputedStyle(Q,null):Q.currentStyle;for(var S=Q.offsetTop,G=Q.offsetLeft;(Q=Q.parentNode)&&Q!==E&&Q!==H;){if(AK.offset.supportsFixedPosition&&K.position==="fixed"){break}I=L?L.getComputedStyle(Q,null):Q.currentStyle;S-=Q.scrollTop;G-=Q.scrollLeft;if(Q===P){S+=Q.offsetTop;G+=Q.offsetLeft;if(AK.offset.doesNotAddBorder&&!(AK.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(Q.nodeName))){S+=parseFloat(I.borderTopWidth)||0;G+=parseFloat(I.borderLeftWidth)||0}K=P;P=Q.offsetParent}if(AK.offset.subtractsBorderForOverflowNotVisible&&I.overflow!=="visible"){S+=parseFloat(I.borderTopWidth)||0;G+=parseFloat(I.borderLeftWidth)||0}K=I}if(K.position==="relative"||K.position==="static"){S+=E.offsetTop;G+=E.offsetLeft}if(AK.offset.supportsFixedPosition&&K.position==="fixed"){S+=Math.max(H.scrollTop,E.scrollTop);G+=Math.max(H.scrollLeft,E.scrollLeft)}return{top:S,left:G}};AK.offset={initialize:function(){var G=s.body,E=s.createElement("div"),L,I,K,H=parseFloat(AK.curCSS(G,"marginTop",true))||0;AK.extend(E.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});E.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>";G.insertBefore(E,G.firstChild);L=E.firstChild;I=L.firstChild;K=L.nextSibling.firstChild.firstChild;this.doesNotAddBorder=I.offsetTop!==5;this.doesAddBorderForTableAndCells=K.offsetTop===5;I.style.position="fixed";I.style.top="20px";this.supportsFixedPosition=I.offsetTop===20||I.offsetTop===15;I.style.position=I.style.top="";L.style.overflow="hidden";L.style.position="relative";this.subtractsBorderForOverflowNotVisible=I.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=G.offsetTop!==H;G.removeChild(E);AK.offset.initialize=AK.noop},bodyOffset:function(G){var E=G.offsetTop,H=G.offsetLeft;AK.offset.initialize();if(AK.offset.doesNotIncludeMarginInBodyOffset){E+=parseFloat(AK.curCSS(G,"marginTop",true))||0;H+=parseFloat(AK.curCSS(G,"marginLeft",true))||0}return{top:E,left:H}},setOffset:function(G,E,P){if(/static/.test(AK.curCSS(G,"position"))){G.style.position="relative"}var K=AK(G),L=K.offset(),I=parseInt(AK.curCSS(G,"top",true),10)||0,H=parseInt(AK.curCSS(G,"left",true),10)||0;if(AK.isFunction(E)){E=E.call(G,P,L)}P={top:E.top-L.top+I,left:E.left-L.left+H};"using" in E?E.using.call(G,P):K.css(P)}};AK.fn.extend({position:function(){if(!this[0]){return null}var G=this[0],E=this.offsetParent(),I=this.offset(),H=/^body|html$/i.test(E[0].nodeName)?{top:0,left:0}:E.offset();I.top-=parseFloat(AK.curCSS(G,"marginTop",true))||0;I.left-=parseFloat(AK.curCSS(G,"marginLeft",true))||0;H.top+=parseFloat(AK.curCSS(E[0],"borderTopWidth",true))||0;H.left+=parseFloat(AK.curCSS(E[0],"borderLeftWidth",true))||0;return{top:I.top-H.top,left:I.left-H.left}},offsetParent:function(){return this.map(function(){for(var E=this.offsetParent||s.body;E&&!/^body|html$/i.test(E.nodeName)&&AK.css(E,"position")==="static";){E=E.offsetParent}return E})}});AK.each(["Left","Top"],function(G,E){var H="scroll"+E;AK.fn[H]=function(K){var L=this[0],I;if(!L){return null}if(K!==AF){return this.each(function(){if(I=Ag(this)){I.scrollTo(!G?K:AK(I).scrollLeft(),G?K:AK(I).scrollTop())}else{this[H]=K}})}else{return(I=Ag(L))?"pageXOffset" in I?I[G?"pageYOffset":"pageXOffset"]:AK.support.boxModel&&I.document.documentElement[H]||I.document.body[H]:L[H]}}});AK.each(["Height","Width"],function(G,E){var H=E.toLowerCase();AK.fn["inner"+E]=function(){return this[0]?AK.css(this[0],H,false,"padding"):null};AK.fn["outer"+E]=function(I){return this[0]?AK.css(this[0],H,false,I?"margin":"border"):null};AK.fn[H]=function(I){var K=this[0];if(!K){return I==null?null:this}if(AK.isFunction(I)){return this.each(function(P){var L=AK(this);L[H](I.call(this,P,L[H]()))})}return"scrollTo" in K&&K.document?K.document.compatMode==="CSS1Compat"&&K.document.documentElement["client"+E]||K.document.body["client"+E]:K.nodeType===9?Math.max(K.documentElement["client"+E],K.body["scroll"+E],K.documentElement["scroll"+E],K.body["offset"+E],K.documentElement["offset"+E]):I===AF?AK.css(K,H):this.css(H,typeof I==="string"?I:I+"px")}});AD.jQuery=AD.$=AK})(window);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(A,C,B,D,E){return jQuery.easing[jQuery.easing.def](A,C,B,D,E)},easeInQuad:function(A,C,B,D,E){return D*(C/=E)*C+B},easeOutQuad:function(A,C,B,D,E){return -D*(C/=E)*(C-2)+B},easeInOutQuad:function(A,C,B,D,E){if((C/=E/2)<1){return D/2*C*C+B}return -D/2*(--C*(C-2)-1)+B},easeInCubic:function(A,C,B,D,E){return D*(C/=E)*C*C+B},easeOutCubic:function(A,C,B,D,E){return D*((C=C/E-1)*C*C+1)+B},easeInOutCubic:function(A,C,B,D,E){if((C/=E/2)<1){return D/2*C*C*C+B}return D/2*((C-=2)*C*C+2)+B},easeInQuart:function(A,C,B,D,E){return D*(C/=E)*C*C*C+B},easeOutQuart:function(A,C,B,D,E){return -D*((C=C/E-1)*C*C*C-1)+B},easeInOutQuart:function(A,C,B,D,E){if((C/=E/2)<1){return D/2*C*C*C*C+B}return -D/2*((C-=2)*C*C*C-2)+B},easeInQuint:function(A,C,B,D,E){return D*(C/=E)*C*C*C*C+B},easeOutQuint:function(A,C,B,D,E){return D*((C=C/E-1)*C*C*C*C+1)+B},easeInOutQuint:function(A,C,B,D,E){if((C/=E/2)<1){return D/2*C*C*C*C*C+B}return D/2*((C-=2)*C*C*C*C+2)+B},easeInSine:function(A,C,B,D,E){return -D*Math.cos(C/E*(Math.PI/2))+D+B},easeOutSine:function(A,C,B,D,E){return D*Math.sin(C/E*(Math.PI/2))+B},easeInOutSine:function(A,C,B,D,E){return -D/2*(Math.cos(Math.PI*C/E)-1)+B},easeInExpo:function(A,C,B,D,E){return C==0?B:D*Math.pow(2,10*(C/E-1))+B},easeOutExpo:function(A,C,B,D,E){return C==E?B+D:D*(-Math.pow(2,-10*C/E)+1)+B},easeInOutExpo:function(A,C,B,D,E){if(C==0){return B}if(C==E){return B+D}if((C/=E/2)<1){return D/2*Math.pow(2,10*(C-1))+B}return D/2*(-Math.pow(2,-10*--C)+2)+B},easeInCirc:function(A,C,B,D,E){return -D*(Math.sqrt(1-(C/=E)*C)-1)+B},easeOutCirc:function(A,C,B,D,E){return D*Math.sqrt(1-(C=C/E-1)*C)+B},easeInOutCirc:function(A,C,B,D,E){if((C/=E/2)<1){return -D/2*(Math.sqrt(1-C*C)-1)+B}return D/2*(Math.sqrt(1-(C-=2)*C)+1)+B},easeInElastic:function(B,D,C,F,H){B=1.70158;var A=0,G=F;if(D==0){return C}if((D/=H)==1){return C+F}A||(A=H*0.3);if(G<Math.abs(F)){G=F;B=A/4}else{B=A/(2*Math.PI)*Math.asin(F/G)}return -(G*Math.pow(2,10*(D-=1))*Math.sin((D*H-B)*2*Math.PI/A))+C},easeOutElastic:function(B,D,C,F,H){B=1.70158;var A=0,G=F;if(D==0){return C}if((D/=H)==1){return C+F}A||(A=H*0.3);if(G<Math.abs(F)){G=F;B=A/4}else{B=A/(2*Math.PI)*Math.asin(F/G)}return G*Math.pow(2,-10*D)*Math.sin((D*H-B)*2*Math.PI/A)+F+C},easeInOutElastic:function(B,D,C,F,H){B=1.70158;var A=0,G=F;if(D==0){return C}if((D/=H/2)==2){return C+F}A||(A=H*0.3*1.5);if(G<Math.abs(F)){G=F;B=A/4}else{B=A/(2*Math.PI)*Math.asin(F/G)}if(D<1){return -0.5*G*Math.pow(2,10*(D-=1))*Math.sin((D*H-B)*2*Math.PI/A)+C}return G*Math.pow(2,-10*(D-=1))*Math.sin((D*H-B)*2*Math.PI/A)*0.5+F+C},easeInBack:function(B,D,C,E,F,A){if(A==undefined){A=1.70158}return E*(D/=F)*D*((A+1)*D-A)+C},easeOutBack:function(B,D,C,E,F,A){if(A==undefined){A=1.70158}return E*((D=D/F-1)*D*((A+1)*D+A)+1)+C},easeInOutBack:function(B,D,C,E,F,A){if(A==undefined){A=1.70158}if((D/=F/2)<1){return E/2*D*D*(((A*=1.525)+1)*D-A)+C}return E/2*((D-=2)*D*(((A*=1.525)+1)*D+A)+2)+C},easeInBounce:function(A,C,B,D,E){return D-jQuery.easing.easeOutBounce(A,E-C,0,D,E)+B},easeOutBounce:function(A,C,B,D,E){return(C/=E)<1/2.75?D*7.5625*C*C+B:C<2/2.75?D*(7.5625*(C-=1.5/2.75)*C+0.75)+B:C<2.5/2.75?D*(7.5625*(C-=2.25/2.75)*C+0.9375)+B:D*(7.5625*(C-=2.625/2.75)*C+0.984375)+B},easeInOutBounce:function(A,C,B,D,E){if(C<E/2){return jQuery.easing.easeInBounce(A,C*2,0,D,E)*0.5+B}return jQuery.easing.easeOutBounce(A,C*2-E,0,D,E)*0.5+D*0.5+B}});(function(A){function C(E){for(var F=["transform","WebkitTransform","MozTransform"],D;D=F.shift();){if(typeof E.style[D]!="undefined"){return D}}return"transform"}var B=A.fn.css;A.fn.css=function(D){if(typeof A.props.transform=="undefined"&&(D=="transform"||typeof D=="object"&&typeof D.transform!="undefined")){A.props.transform=C(this.get(0))}if(D=="transform"){D=A.props.transform}return B.apply(this,arguments)}})(jQuery);(function(A){var C="deg";A.fn.rotate=function(F){var E=A(this).css("transform")||"none";if(typeof F=="undefined"){if(E){if((F=E.match(/rotate\(([^)]+)\)/))&&F[1]){return F[1]}}return 0}if(F=F.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/)){if(F[3]){C=F[3]}A(this).css("transform",E.replace(/none|rotate\([^)]*\)/,"")+"rotate("+F[1]+C+")")}};A.fn.scale=function(F){var E=A(this).css("transform");if(typeof F=="undefined"){if(E){if((F=E.match(/scale\(([^)]+)\)/))&&F[1]){return F[1]}}return 1}A(this).css("transform",E.replace(/none|scale\([^)]*\)/,"")+"scale("+F+")")};var B=A.fx.prototype.cur;A.fx.prototype.cur=function(){if(this.prop=="rotate"){return parseFloat(A(this.elem).rotate())}else{if(this.prop=="scale"){return parseFloat(A(this.elem).scale())}}return B.apply(this,arguments)};A.fx.step.rotate=function(E){A(E.elem).rotate(E.now+C)};A.fx.step.scale=function(E){A(E.elem).scale(E.now)};var D=A.fn.animate;A.fn.animate=function(F){if(typeof F.rotate!="undefined"){var E=F.rotate.toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);if(E&&E[5]){C=E[5]}F.rotate=E[1]}return D.apply(this,arguments)}})(jQuery);(function(A){A.fn.quicksand=function(D,C,F){function H(E){var K=[];if(A(E).get(0)==undefined){return""}var L=A(E).get(0).nodeName.toLowerCase();if(A(E).attr("id")){L+="#"+A(E).attr("id")}K.push(L);for(var J=[];A(E).get(0).nodeName.toLowerCase()!="html";){J.push(E);E=E.parent()}A(J).each(function(){L=A(this).get(0).nodeName.toLowerCase();if(A(this).attr("id")){L+="#"+A(this).attr("id")}K.push(L)});return K.reverse().join(" > ")}var B={duration:750,easing:"swing",attribute:"data-id",adjustHeight:true};A.extend(B,C);B.selector=null;A.extend(B,{selector:"> *"});var G;if(typeof C=="function"){G=C}else{if(typeof (F=="function")){G=F}}return this.each(function(){var R=A(D).clone(),V=A(this);A(this).css("height");var N=A(V).offset(),L=[],E=A(this).find(B.selector);if(A.browser.msie&&A.browser.version.substr(0,1)<7){V.html("").append(R)}else{var M=0,J=function(){if(!M){V.html(O.html());A("[data-quicksand-owner="+H(V)+"]").remove();typeof G=="function"&&G.call(this);M=1}},P=V.offsetParent(),U=P.offset();if(P.css("position")=="relative"){if(P.get(0).nodeName.toLowerCase()!="body"){U.top+=parseFloat(P.css("border-top-width"));U.left+=parseFloat(P.css("border-left-width"))}}else{U.top-=parseFloat(P.css("border-top-width"));U.left-=parseFloat(P.css("border-left-width"));U.top-=parseFloat(P.css("margin-top"));U.left-=parseFloat(P.css("margin-left"))}V.css("height",A(this).height());E.each(function(I){L[I]=A(this).offset()});A(this).stop();E.each(function(I){A(this).stop();A(this).css("position","absolute").css("margin",0).css("top",L[I].top-parseFloat(A(this).css("margin-top"))-U.top).css("left",L[I].left-parseFloat(A(this).css("margin-left"))-U.left)});var O=A(V).clone().html("").attr("id","").attr("data-quicksand-owner",V.selector).css("height","auto").css("width",V.width()+"px").append(R);O.insertBefore(V).css("z-index",1).css("opacity",0).css("margin",0).css("position","absolute").css("top",N.top-U.top).css("left",N.left-U.left).attr("data-quicksand-owner",H(V));B.adjustHeight&&V.animate({height:O.height()},B.duration,B.easing);E.each(function(){var I=R.filter("["+B.attribute+"="+A(this).attr(B.attribute)+"]");if(I.length){A.browser.msie?A(this).animate({top:I.offset().top-U.top,left:I.offset().left-U.left,opacity:1},B.duration,B.easing,J):A(this).animate({top:I.offset().top-U.top,left:I.offset().left-U.left,opacity:1,scale:"1.0"},B.duration,B.easing,J)}else{A.browser.msie?A(this).animate({opacity:"0.0"},B.duration,B.easing,J):A(this).animate({opacity:"0.0",scale:"0.0"},B.duration,B.easing,J)}});R.each(function(){var I=E.filter("["+B.attribute+"="+A(this).attr(B.attribute)+"]"),K=R.filter("["+B.attribute+"="+A(this).attr(B.attribute)+"]");if(I.length===0){I=A.browser.msie?{opacity:"1.0"}:{opacity:"1.0",scale:"1.0"};K.clone().css("position","absolute").css("margin",0).css("top",K.offset().top-U.top).css("left",K.offset().left-U.left).css("opacity",0).css("transform","scale(0.0)").appendTo(V).animate(I,B.duration,B.easing,J)}})}})}})(jQuery);jQuery.ui||(function(G){var A=G.fn.remove,F=G.browser.mozilla&&(parseFloat(G.browser.version)<1.9);G.ui={version:"1.7.2",plugin:{add:function(L,K,N){var J=G.ui[L].prototype;for(var M in N){J.plugins[M]=J.plugins[M]||[];J.plugins[M].push([K,N[M]])}},call:function(M,K,L){var N=M.plugins[K];if(!N||!M.element[0].parentNode){return }for(var J=0;J<N.length;J++){if(M.options[N[J][0]]){N[J][1].apply(M.element,L)}}}},contains:function(J,K){return document.compareDocumentPosition?J.compareDocumentPosition(K)&16:J!==K&&J.contains(K)},hasScroll:function(J,L){if(G(J).css("overflow")=="hidden"){return false}var M=(L&&L=="left")?"scrollLeft":"scrollTop",K=false;if(J[M]>0){return true}J[M]=1;K=(J[M]>0);J[M]=0;return K},isOverAxis:function(K,L,J){return(K>L)&&(K<(L+J))},isOver:function(N,L,O,J,M,K){return G.ui.isOverAxis(N,O,M)&&G.ui.isOverAxis(L,J,K)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(F){var D=G.attr,E=G.fn.removeAttr,B="http://www.w3.org/2005/07/aaa",I=/^aria-/,H=/^wairole:/;G.attr=function(L,M,K){var J=K!==undefined;return(M=="role"?(J?D.call(this,L,M,"wairole:"+K):(D.apply(this,arguments)||"").replace(H,"")):(I.test(M)?(J?L.setAttributeNS(B,M.replace(I,"aaa:"),K):D.call(this,L,M.replace(I,"aaa:"))):D.apply(this,arguments)))};G.fn.removeAttr=function(J){return(I.test(J)?this.each(function(){this.removeAttributeNS(B,J.replace(I,""))}):E.call(this,J))}}G.fn.extend({remove:function(){G("*",this).add(this).each(function(){G(this).triggerHandler("remove")});return A.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var J;if((G.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){J=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(G.curCSS(this,"position",1))&&(/(auto|scroll)/).test(G.curCSS(this,"overflow",1)+G.curCSS(this,"overflow-y",1)+G.curCSS(this,"overflow-x",1))}).eq(0)}else{J=this.parents().filter(function(){return(/(auto|scroll)/).test(G.curCSS(this,"overflow",1)+G.curCSS(this,"overflow-y",1)+G.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!J.length?G(document):J}});G.extend(G.expr[":"],{data:function(J,K,L){return !!G.data(J,L[3])},focusable:function(K){var J=K.nodeName.toLowerCase(),L=G.attr(K,"tabindex");return(/input|select|textarea|button|object/.test(J)?!K.disabled:"a"==J||"area"==J?K.href||!isNaN(L):!isNaN(L))&&!G(K)["area"==J?"parents":"closest"](":hidden").length},tabbable:function(J){var K=G.attr(J,"tabindex");return(isNaN(K)||K>=0)&&G(J).is(":focusable")}});function C(J,O,N,K){function L(P){var Q=G[J][O][P]||[];return(typeof Q=="string"?Q.split(/,?\s+/):Q)}var M=L("getter");if(K.length==1&&typeof K[0]=="string"){M=M.concat(L("getterSetter"))}return(G.inArray(N,M)!=-1)}G.widget=function(K,L){var J=K.split(".")[0];K=K.split(".")[1];G.fn[K]=function(N){var P=(typeof N=="string"),O=Array.prototype.slice.call(arguments,1);if(P&&N.substring(0,1)=="_"){return this}if(P&&C(J,K,N,O)){var M=G.data(this[0],K);return(M?M[N].apply(M,O):undefined)}return this.each(function(){var Q=G.data(this,K);(!Q&&!P&&G.data(this,K,new G[J][K](this,N))._init());(Q&&P&&G.isFunction(Q[N])&&Q[N].apply(Q,O))})};G[J]=G[J]||{};G[J][K]=function(N,O){var M=this;this.namespace=J;this.widgetName=K;this.widgetEventPrefix=G[J][K].eventPrefix||K;this.widgetBaseClass=J+"-"+K;this.options=G.extend({},G.widget.defaults,G[J][K].defaults,G.metadata&&G.metadata.get(N)[K],O);this.element=G(N).bind("setData."+K,function(Q,R,P){if(Q.target==N){return M._setData(R,P)}}).bind("getData."+K,function(P,Q){if(P.target==N){return M._getData(Q)}}).bind("remove",function(){return M.destroy()})};G[J][K].prototype=G.extend({},G.widget.prototype,L);G[J][K].getterSetter="option"};G.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(K,J){var L=K,M=this;if(typeof K=="string"){if(J===undefined){return this._getData(K)}L={};L[K]=J}G.each(L,function(O,N){M._setData(O,N)})},_getData:function(J){return this.options[J]},_setData:function(K,J){this.options[K]=J;if(K=="disabled"){this.element[J?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",J)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(K,J,P){var N=this.options[K],M=(K==this.widgetEventPrefix?K:this.widgetEventPrefix+K);J=G.Event(J);J.type=M;if(J.originalEvent){for(var L=G.event.props.length,O;L;){O=G.event.props[--L];J[O]=J.originalEvent[O]}}this.element.trigger(J,P);return !(G.isFunction(N)&&N.call(this.element[0],J,P)===false||J.isDefaultPrevented())}};G.widget.defaults={disabled:false};G.ui.mouse={_mouseInit:function(){var J=this;this.element.bind("mousedown."+this.widgetName,function(K){return J._mouseDown(K)}).bind("click."+this.widgetName,function(K){if(J._preventClickEvent){J._preventClickEvent=false;K.stopImmediatePropagation();return false}});if(G.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(G.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(K){K.originalEvent=K.originalEvent||{};if(K.originalEvent.mouseHandled){return }(this._mouseStarted&&this._mouseUp(K));this._mouseDownEvent=K;var L=this,J=(K.which==1),M=(typeof this.options.cancel=="string"?G(K.target).parents().add(K.target).filter(this.options.cancel).length:false);if(!J||M||!this._mouseCapture(K)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){L.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(K)&&this._mouseDelayMet(K)){this._mouseStarted=(this._mouseStart(K)!==false);if(!this._mouseStarted){K.preventDefault();return true}}this._mouseMoveDelegate=function(N){return L._mouseMove(N)};this._mouseUpDelegate=function(N){return L._mouseUp(N)};G(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(G.browser.safari||K.preventDefault());K.originalEvent.mouseHandled=true;return true},_mouseMove:function(J){if(G.browser.msie&&!J.button){return this._mouseUp(J)}if(this._mouseStarted){this._mouseDrag(J);return J.preventDefault()}if(this._mouseDistanceMet(J)&&this._mouseDelayMet(J)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,J)!==false);(this._mouseStarted?this._mouseDrag(J):this._mouseUp(J))}return !this._mouseStarted},_mouseUp:function(J){G(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(J.target==this._mouseDownEvent.target);this._mouseStop(J)}return false},_mouseDistanceMet:function(J){return(Math.max(Math.abs(this._mouseDownEvent.pageX-J.pageX),Math.abs(this._mouseDownEvent.pageY-J.pageY))>=this.options.distance)},_mouseDelayMet:function(J){return this.mouseDelayMet},_mouseStart:function(J){},_mouseDrag:function(J){},_mouseStop:function(J){},_mouseCapture:function(J){return true}};G.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(A){A.widget("ui.draggable",A.extend({},A.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return }this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(B){var C=this.options;if(this.helper||C.disabled||A(B.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(B);if(!this.handle){return false}return true},_mouseStart:function(B){var C=this.options;this.helper=this._createHelper(B);this._cacheHelperProportions();if(A.ui.ddmanager){A.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};A.extend(this.offset,{click:{left:B.pageX-this.offset.left,top:B.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(B);this.originalPageX=B.pageX;this.originalPageY=B.pageY;if(C.cursorAt){this._adjustOffsetFromHelper(C.cursorAt)}if(C.containment){this._setContainment()}this._trigger("start",B);this._cacheHelperProportions();if(A.ui.ddmanager&&!C.dropBehaviour){A.ui.ddmanager.prepareOffsets(this,B)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(B,true);return true},_mouseDrag:function(B,C){this.position=this._generatePosition(B);this.positionAbs=this._convertPositionTo("absolute");if(!C){var D=this._uiHash();this._trigger("drag",B,D);this.position=D.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(A.ui.ddmanager){A.ui.ddmanager.drag(this,B)}return false},_mouseStop:function(D){var C=false;if(A.ui.ddmanager&&!this.options.dropBehaviour){C=A.ui.ddmanager.drop(this,D)}if(this.dropped){C=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!C)||(this.options.revert=="valid"&&C)||this.options.revert===true||(A.isFunction(this.options.revert)&&this.options.revert.call(this.element,C))){var B=this;A(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){B._trigger("stop",D);B._clear()})}else{this._trigger("stop",D);this._clear()}return false},_getHandle:function(B){var C=!this.options.handle||!A(this.options.handle,this.element).length?true:false;A(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==B.target){C=true}});return C},_createHelper:function(D){var C=this.options;var B=A.isFunction(C.helper)?A(C.helper.apply(this.element[0],[D])):(C.helper=="clone"?this.element.clone():this.element);if(!B.parents("body").length){B.appendTo((C.appendTo=="parent"?this.element[0].parentNode:C.appendTo))}if(B[0]!=this.element[0]&&!(/(fixed|absolute)/).test(B.css("position"))){B.css("position","absolute")}return B},_adjustOffsetFromHelper:function(B){if(B.left!=undefined){this.offset.click.left=B.left+this.margins.left}if(B.right!=undefined){this.offset.click.left=this.helperProportions.width-B.right+this.margins.left}if(B.top!=undefined){this.offset.click.top=B.top+this.margins.top}if(B.bottom!=undefined){this.offset.click.top=this.helperProportions.height-B.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var B=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0])){B.left+=this.scrollParent.scrollLeft();B.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&A.browser.msie)){B={top:0,left:0}}return{top:B.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:B.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var B=this.element.position();return{top:B.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:B.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var C=this.options;if(C.containment=="parent"){C.containment=this.helper[0].parentNode}if(C.containment=="document"||C.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,A(C.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(A(C.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(C.containment)&&C.containment.constructor!=Array){var E=A(C.containment)[0];if(!E){return }var D=A(C.containment).offset();var B=(A(E).css("overflow")!="hidden");this.containment=[D.left+(parseInt(A(E).css("borderLeftWidth"),10)||0)+(parseInt(A(E).css("paddingLeft"),10)||0)-this.margins.left,D.top+(parseInt(A(E).css("borderTopWidth"),10)||0)+(parseInt(A(E).css("paddingTop"),10)||0)-this.margins.top,D.left+(B?Math.max(E.scrollWidth,E.offsetWidth):E.offsetWidth)-(parseInt(A(E).css("borderLeftWidth"),10)||0)-(parseInt(A(E).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,D.top+(B?Math.max(E.scrollHeight,E.offsetHeight):E.offsetHeight)-(parseInt(A(E).css("borderTopWidth"),10)||0)-(parseInt(A(E).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(C.containment.constructor==Array){this.containment=C.containment}}},_convertPositionTo:function(E,C){if(!C){C=this.position}var G=E=="absolute"?1:-1;var F=this.options,B=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,D=(/(html|body)/i).test(B[0].tagName);return{top:(C.top+this.offset.relative.top*G+this.offset.parent.top*G-(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(D?0:B.scrollTop()))*G)),left:(C.left+this.offset.relative.left*G+this.offset.parent.left*G-(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():D?0:B.scrollLeft())*G))}},_generatePosition:function(G){var D=this.options,B=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,C=(/(html|body)/i).test(B[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var H=G.pageX;var I=G.pageY;if(this.originalPosition){if(this.containment){if(G.pageX-this.offset.click.left<this.containment[0]){H=this.containment[0]+this.offset.click.left}if(G.pageY-this.offset.click.top<this.containment[1]){I=this.containment[1]+this.offset.click.top}if(G.pageX-this.offset.click.left>this.containment[2]){H=this.containment[2]+this.offset.click.left}if(G.pageY-this.offset.click.top>this.containment[3]){I=this.containment[3]+this.offset.click.top}}if(D.grid){var E=this.originalPageY+Math.round((I-this.originalPageY)/D.grid[1])*D.grid[1];I=this.containment?(!(E-this.offset.click.top<this.containment[1]||E-this.offset.click.top>this.containment[3])?E:(!(E-this.offset.click.top<this.containment[1])?E-D.grid[1]:E+D.grid[1])):E;var F=this.originalPageX+Math.round((H-this.originalPageX)/D.grid[0])*D.grid[0];H=this.containment?(!(F-this.offset.click.left<this.containment[0]||F-this.offset.click.left>this.containment[2])?F:(!(F-this.offset.click.left<this.containment[0])?F-D.grid[0]:F+D.grid[0])):F}}return{top:(I-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(C?0:B.scrollTop())))),left:(H-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():C?0:B.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(B,D,C){C=C||this._uiHash();A.ui.plugin.call(this,B,[D,C]);if(B=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return A.widget.prototype._trigger.call(this,B,D,C)},plugins:{},_uiHash:function(B){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));A.extend(A.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});A.ui.plugin.add("draggable","connectToSortable",{start:function(F,D){var E=A(this).data("draggable"),C=E.options,B=A.extend({},D,{item:E.element});E.sortables=[];A(C.connectToSortable).each(function(){var G=A.data(this,"sortable");if(G&&!G.options.disabled){E.sortables.push({instance:G,shouldRevert:G.options.revert});G._refreshItems();G._trigger("activate",F,B)}})},stop:function(E,C){var D=A(this).data("draggable"),B=A.extend({},C,{item:D.element});A.each(D.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;D.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(E);this.instance.options.helper=this.instance.options._helper;if(D.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",E,B)}})},drag:function(F,C){var D=A(this).data("draggable"),B=this;var E=function(M){var H=this.offset.click.top,I=this.offset.click.left;var O=this.positionAbs.top,K=this.positionAbs.left;var L=M.height,J=M.width;var G=M.top,N=M.left;return A.ui.isOver(O+H,K+I,G,N,L,J)};A.each(D.sortables,function(G){this.instance.positionAbs=D.positionAbs;this.instance.helperProportions=D.helperProportions;this.instance.offset.click=D.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=A(B).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return C.helper[0]};F.target=this.instance.currentItem[0];this.instance._mouseCapture(F,true);this.instance._mouseStart(F,true,true);this.instance.offset.click.top=D.offset.click.top;this.instance.offset.click.left=D.offset.click.left;this.instance.offset.parent.left-=D.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=D.offset.parent.top-this.instance.offset.parent.top;D._trigger("toSortable",F);D.dropped=this.instance.element;D.currentItem=D.element;this.instance.fromOutside=D}if(this.instance.currentItem){this.instance._mouseDrag(F)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",F,this.instance._uiHash(this.instance));this.instance._mouseStop(F,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}D._trigger("fromSortable",F);D.dropped=false}}})}});A.ui.plugin.add("draggable","cursor",{start:function(E,D){var B=A("body"),C=A(this).data("draggable").options;if(B.css("cursor")){C._cursor=B.css("cursor")}B.css("cursor",C.cursor)},stop:function(B,D){var C=A(this).data("draggable").options;if(C._cursor){A("body").css("cursor",C._cursor)}}});A.ui.plugin.add("draggable","iframeFix",{start:function(B,D){var C=A(this).data("draggable").options;A(C.iframeFix===true?"iframe":C.iframeFix).each(function(){A('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(A(this).offset()).appendTo("body")})},stop:function(B,C){A("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});A.ui.plugin.add("draggable","opacity",{start:function(E,D){var B=A(D.helper),C=A(this).data("draggable").options;if(B.css("opacity")){C._opacity=B.css("opacity")}B.css("opacity",C.opacity)},stop:function(B,D){var C=A(this).data("draggable").options;if(C._opacity){A(D.helper).css("opacity",C._opacity)}}});A.ui.plugin.add("draggable","scroll",{start:function(D,C){var B=A(this).data("draggable");if(B.scrollParent[0]!=document&&B.scrollParent[0].tagName!="HTML"){B.overflowOffset=B.scrollParent.offset()}},drag:function(E,D){var F=A(this).data("draggable"),C=F.options,B=false;if(F.scrollParent[0]!=document&&F.scrollParent[0].tagName!="HTML"){if(!C.axis||C.axis!="x"){if((F.overflowOffset.top+F.scrollParent[0].offsetHeight)-E.pageY<C.scrollSensitivity){F.scrollParent[0].scrollTop=B=F.scrollParent[0].scrollTop+C.scrollSpeed}else{if(E.pageY-F.overflowOffset.top<C.scrollSensitivity){F.scrollParent[0].scrollTop=B=F.scrollParent[0].scrollTop-C.scrollSpeed}}}if(!C.axis||C.axis!="y"){if((F.overflowOffset.left+F.scrollParent[0].offsetWidth)-E.pageX<C.scrollSensitivity){F.scrollParent[0].scrollLeft=B=F.scrollParent[0].scrollLeft+C.scrollSpeed}else{if(E.pageX-F.overflowOffset.left<C.scrollSensitivity){F.scrollParent[0].scrollLeft=B=F.scrollParent[0].scrollLeft-C.scrollSpeed}}}}else{if(!C.axis||C.axis!="x"){if(E.pageY-A(document).scrollTop()<C.scrollSensitivity){B=A(document).scrollTop(A(document).scrollTop()-C.scrollSpeed)}else{if(A(window).height()-(E.pageY-A(document).scrollTop())<C.scrollSensitivity){B=A(document).scrollTop(A(document).scrollTop()+C.scrollSpeed)}}}if(!C.axis||C.axis!="y"){if(E.pageX-A(document).scrollLeft()<C.scrollSensitivity){B=A(document).scrollLeft(A(document).scrollLeft()-C.scrollSpeed)}else{if(A(window).width()-(E.pageX-A(document).scrollLeft())<C.scrollSensitivity){B=A(document).scrollLeft(A(document).scrollLeft()+C.scrollSpeed)}}}}if(B!==false&&A.ui.ddmanager&&!C.dropBehaviour){A.ui.ddmanager.prepareOffsets(F,E)}}});A.ui.plugin.add("draggable","snap",{start:function(E,D){var B=A(this).data("draggable"),C=B.options;B.snapElements=[];A(C.snap.constructor!=String?(C.snap.items||":data(draggable)"):C.snap).each(function(){var F=A(this);var G=F.offset();if(this!=B.element[0]){B.snapElements.push({item:this,width:F.outerWidth(),height:F.outerHeight(),top:G.top,left:G.left})}})},drag:function(G,K){var Q=A(this).data("draggable"),I=Q.options;var C=I.snapTolerance;var D=K.offset.left,E=D+Q.helperProportions.width,R=K.offset.top,S=R+Q.helperProportions.height;for(var F=Q.snapElements.length-1;F>=0;F--){var H=Q.snapElements[F].left,L=H+Q.snapElements[F].width,M=Q.snapElements[F].top,J=M+Q.snapElements[F].height;if(!((H-C<D&&D<L+C&&M-C<R&&R<J+C)||(H-C<D&&D<L+C&&M-C<S&&S<J+C)||(H-C<E&&E<L+C&&M-C<R&&R<J+C)||(H-C<E&&E<L+C&&M-C<S&&S<J+C))){if(Q.snapElements[F].snapping){(Q.options.snap.release&&Q.options.snap.release.call(Q.element,G,A.extend(Q._uiHash(),{snapItem:Q.snapElements[F].item})))}Q.snapElements[F].snapping=false;continue}if(I.snapMode!="inner"){var T=Math.abs(M-S)<=C;var B=Math.abs(J-R)<=C;var O=Math.abs(H-E)<=C;var N=Math.abs(L-D)<=C;if(T){K.position.top=Q._convertPositionTo("relative",{top:M-Q.helperProportions.height,left:0}).top-Q.margins.top}if(B){K.position.top=Q._convertPositionTo("relative",{top:J,left:0}).top-Q.margins.top}if(O){K.position.left=Q._convertPositionTo("relative",{top:0,left:H-Q.helperProportions.width}).left-Q.margins.left}if(N){K.position.left=Q._convertPositionTo("relative",{top:0,left:L}).left-Q.margins.left}}var P=(T||B||O||N);if(I.snapMode!="outer"){var T=Math.abs(M-R)<=C;var B=Math.abs(J-S)<=C;var O=Math.abs(H-D)<=C;var N=Math.abs(L-E)<=C;if(T){K.position.top=Q._convertPositionTo("relative",{top:M,left:0}).top-Q.margins.top}if(B){K.position.top=Q._convertPositionTo("relative",{top:J-Q.helperProportions.height,left:0}).top-Q.margins.top}if(O){K.position.left=Q._convertPositionTo("relative",{top:0,left:H}).left-Q.margins.left}if(N){K.position.left=Q._convertPositionTo("relative",{top:0,left:L-Q.helperProportions.width}).left-Q.margins.left}}if(!Q.snapElements[F].snapping&&(T||B||O||N||P)){(Q.options.snap.snap&&Q.options.snap.snap.call(Q.element,G,A.extend(Q._uiHash(),{snapItem:Q.snapElements[F].item})))}Q.snapElements[F].snapping=(T||B||O||N||P)}}});A.ui.plugin.add("draggable","stack",{start:function(B,E){var C=A(this).data("draggable").options;var D=A.makeArray(A(C.stack.group)).sort(function(F,G){return(parseInt(A(F).css("zIndex"),10)||C.stack.min)-(parseInt(A(G).css("zIndex"),10)||C.stack.min)});A(D).each(function(F){this.style.zIndex=C.stack.min+F});this[0].style.zIndex=C.stack.min+D.length}});A.ui.plugin.add("draggable","zIndex",{start:function(E,D){var B=A(D.helper),C=A(this).data("draggable").options;if(B.css("zIndex")){C._zIndex=B.css("zIndex")}B.css("zIndex",C.zIndex)},stop:function(B,D){var C=A(this).data("draggable").options;if(C._zIndex){A(D.helper).css("zIndex",C._zIndex)}}})})(jQuery);(function(C){C.widget("ui.resizable",C.extend({},C.ui.mouse,{_init:function(){var I=this,E=this.options;this.element.addClass("ui-resizable");C.extend(this,{_aspectRatio:!!(E.aspectRatio),aspectRatio:E.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:E.helper||E.ghost||E.animate?E.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&C.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"})}this.element.wrap(C('<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=E.handles||(!C(".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 D=this.handles.split(",");this.handles={};for(var H=0;H<D.length;H++){var F=C.trim(D[H]),J="ui-resizable-"+F;var G=C('<div class="ui-resizable-handle '+J+'"></div>');if(/sw|se|ne|nw/.test(F)){G.css({zIndex:++E.zIndex})}if("se"==F){G.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[F]=".ui-resizable-"+F;this.element.append(G)}}this._renderAxis=function(M){M=M||this.element;for(var K in this.handles){if(this.handles[K].constructor==String){this.handles[K]=C(this.handles[K],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var O=C(this.handles[K],this.element),N=0;N=/sw|ne|nw|se|n|s/.test(K)?O.outerHeight():O.outerWidth();var L=["padding",/ne|nw|n/.test(K)?"Top":/se|sw|s/.test(K)?"Bottom":/^e$/.test(K)?"Right":"Left"].join("");M.css(L,N);this._proportionallyResize()}if(!C(this.handles[K]).length){continue}}};this._renderAxis(this.element);this._handles=C(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!I.resizing){if(this.className){var K=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}I.axis=K&&K[1]?K[1]:"se"}});if(E.autoHide){this._handles.hide();C(this.element).addClass("ui-resizable-autohide").hover(function(){C(this).removeClass("ui-resizable-autohide");I._handles.show()},function(){if(!I.resizing){C(this).addClass("ui-resizable-autohide");I._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var E=function(F){C(F).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 D=this.element;D.parent().append(this.originalElement.css({position:D.css("position"),width:D.outerWidth(),height:D.outerHeight(),top:D.css("top"),left:D.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);E(this.originalElement)},_mouseCapture:function(E){var D=false;for(var F in this.handles){if(C(this.handles[F])[0]==E.target){D=true}}return this.options.disabled||!!D},_mouseStart:function(H){var E=this.options,I=this.element.position(),J=this.element;this.resizing=true;this.documentScroll={top:C(document).scrollTop(),left:C(document).scrollLeft()};if(J.is(".ui-draggable")||(/absolute/).test(J.css("position"))){J.css({position:"absolute",top:I.top,left:I.left})}if(C.browser.opera&&(/relative/).test(J.css("position"))){J.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var D=A(this.helper.css("left")),G=A(this.helper.css("top"));if(E.containment){D+=C(E.containment).scrollLeft()||0;G+=C(E.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:D,top:G};this.size=this._helper?{width:J.outerWidth(),height:J.outerHeight()}:{width:J.width(),height:J.height()};this.originalSize=this._helper?{width:J.outerWidth(),height:J.outerHeight()}:{width:J.width(),height:J.height()};this.originalPosition={left:D,top:G};this.sizeDiff={width:J.outerWidth()-J.width(),height:J.outerHeight()-J.height()};this.originalMousePosition={left:H.pageX,top:H.pageY};this.aspectRatio=(typeof E.aspectRatio=="number")?E.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var F=C(".ui-resizable-"+this.axis).css("cursor");C("body").css("cursor",F=="auto"?this.axis+"-resize":F);J.addClass("ui-resizable-resizing");this._propagate("start",H);return true},_mouseDrag:function(P){var M=this.helper,N=this.options,H={},E=this,K=this.originalMousePosition,G=this.axis;var D=(P.pageX-K.left)||0,F=(P.pageY-K.top)||0;var L=this._change[G];if(!L){return false}var I=L.apply(this,[P,D,F]),J=C.browser.msie&&C.browser.version<7,O=this.sizeDiff;if(this._aspectRatio||P.shiftKey){I=this._updateRatio(I,P)}I=this._respectSize(I,P);this._propagate("resize",P);M.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(I);this._trigger("resize",P,this.ui());return false},_mouseStop:function(J){this.resizing=false;var I=this.options,E=this;if(this._helper){var K=this._proportionallyResizeElements,M=K.length&&(/textarea/i).test(K[0].nodeName),L=M&&C.ui.hasScroll(K[0],"left")?0:E.sizeDiff.height,G=M?0:E.sizeDiff.width;var D={width:(E.size.width-G),height:(E.size.height-L)},H=(parseInt(E.element.css("left"),10)+(E.position.left-E.originalPosition.left))||null,F=(parseInt(E.element.css("top"),10)+(E.position.top-E.originalPosition.top))||null;if(!I.animate){this.element.css(C.extend(D,{top:F,left:H}))}E.helper.height(E.size.height);E.helper.width(E.size.width);if(this._helper&&!I.animate){this._proportionallyResize()}}C("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",J);if(this._helper){this.helper.remove()}return false},_updateCache:function(E){var D=this.options;this.offset=this.helper.offset();if(B(E.left)){this.position.left=E.left}if(B(E.top)){this.position.top=E.top}if(B(E.height)){this.size.height=E.height}if(B(E.width)){this.size.width=E.width}},_updateRatio:function(F,G){var E=this.options,D=this.position,H=this.size,I=this.axis;if(F.height){F.width=(H.height*this.aspectRatio)}else{if(F.width){F.height=(H.width/this.aspectRatio)}}if(I=="sw"){F.left=D.left+(H.width-F.width);F.top=null}if(I=="nw"){F.top=D.top+(H.height-F.height);F.left=D.left+(H.width-F.width)}return F},_respectSize:function(J,O){var L=this.helper,M=this.options,E=this._aspectRatio||O.shiftKey,F=this.axis,R=B(J.width)&&M.maxWidth&&(M.maxWidth<J.width),I=B(J.height)&&M.maxHeight&&(M.maxHeight<J.height),N=B(J.width)&&M.minWidth&&(M.minWidth>J.width),D=B(J.height)&&M.minHeight&&(M.minHeight>J.height);if(N){J.width=M.minWidth}if(D){J.height=M.minHeight}if(R){J.width=M.maxWidth}if(I){J.height=M.maxHeight}var P=this.originalPosition.left+this.originalSize.width,G=this.position.top+this.size.height;var K=/sw|nw|w/.test(F),Q=/nw|ne|n/.test(F);if(N&&K){J.left=P-M.minWidth}if(R&&K){J.left=P-M.maxWidth}if(D&&Q){J.top=G-M.minHeight}if(I&&Q){J.top=G-M.maxHeight}var H=!J.width&&!J.height;if(H&&!J.left&&J.top){J.top=null}else{if(H&&!J.top&&J.left){J.left=null}}return J},_proportionallyResize:function(){var D=this.options;if(!this._proportionallyResizeElements.length){return }var G=this.helper||this.element;for(var H=0;H<this._proportionallyResizeElements.length;H++){var F=this._proportionallyResizeElements[H];if(!this.borderDif){var I=[F.css("borderTopWidth"),F.css("borderRightWidth"),F.css("borderBottomWidth"),F.css("borderLeftWidth")],E=[F.css("paddingTop"),F.css("paddingRight"),F.css("paddingBottom"),F.css("paddingLeft")];this.borderDif=C.map(I,function(L,J){var K=parseInt(L,10)||0,M=parseInt(E[J],10)||0;return K+M})}if(C.browser.msie&&!(!(C(G).is(":hidden")||C(G).parents(":hidden").length))){continue}F.css({height:(G.height()-this.borderDif[0]-this.borderDif[2])||0,width:(G.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var G=this.element,D=this.options;this.elementOffset=G.offset();if(this._helper){this.helper=this.helper||C('<div style="overflow:hidden;"></div>');var H=C.browser.msie&&C.browser.version<7,F=(H?1:0),E=(H?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+E,height:this.element.outerHeight()+E,position:"absolute",left:this.elementOffset.left-F+"px",top:this.elementOffset.top-F+"px",zIndex:++D.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(D,E,F){return{width:this.originalSize.width+E}},w:function(F,H,I){var D=this.options,G=this.originalSize,E=this.originalPosition;return{left:E.left+H,width:G.width-H}},n:function(F,H,I){var D=this.options,G=this.originalSize,E=this.originalPosition;return{top:E.top+I,height:G.height-I}},s:function(D,E,F){return{height:this.originalSize.height+F}},se:function(D,E,F){return C.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[D,E,F]))},sw:function(D,E,F){return C.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[D,E,F]))},ne:function(D,E,F){return C.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[D,E,F]))},nw:function(D,E,F){return C.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[D,E,F]))}},_propagate:function(D,E){C.ui.plugin.call(this,D,[E,this.ui()]);(D!="resize"&&this._trigger(D,E,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));C.extend(C.ui.resizable,{version:"1.7.2",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});C.ui.plugin.add("resizable","alsoResize",{start:function(F,E){var G=C(this).data("resizable"),D=G.options;_store=function(H){C(H).each(function(){C(this).data("resizable-alsoresize",{width:parseInt(C(this).width(),10),height:parseInt(C(this).height(),10),left:parseInt(C(this).css("left"),10),top:parseInt(C(this).css("top"),10)})})};if(typeof (D.alsoResize)=="object"&&!D.alsoResize.parentNode){if(D.alsoResize.length){D.alsoResize=D.alsoResize[0];_store(D.alsoResize)}else{C.each(D.alsoResize,function(I,H){_store(I)})}}else{_store(D.alsoResize)}},resize:function(I,G){var J=C(this).data("resizable"),F=J.options,H=J.originalSize,D=J.originalPosition;var E={height:(J.size.height-H.height)||0,width:(J.size.width-H.width)||0,top:(J.position.top-D.top)||0,left:(J.position.left-D.left)||0},K=function(M,L){C(M).each(function(){var O=C(this),N=C(this).data("resizable-alsoresize"),P={},Q=L&&L.length?L:["width","height","top","left"];C.each(Q||["width","height","top","left"],function(T,R){var S=(N[R]||0)+(E[R]||0);if(S&&S>=0){P[R]=S||null}});if(/relative/.test(O.css("position"))&&C.browser.opera){J._revertToRelativePosition=true;O.css({position:"absolute",top:"auto",left:"auto"})}O.css(P)})};if(typeof (F.alsoResize)=="object"&&!F.alsoResize.nodeType){C.each(F.alsoResize,function(M,L){K(M,L)})}else{K(F.alsoResize)}},stop:function(E,D){var F=C(this).data("resizable");if(F._revertToRelativePosition&&C.browser.opera){F._revertToRelativePosition=false;el.css({position:"relative"})}C(this).removeData("resizable-alsoresize-start")}});C.ui.plugin.add("resizable","animate",{stop:function(J,E){var D=C(this).data("resizable"),I=D.options;var K=D._proportionallyResizeElements,N=K.length&&(/textarea/i).test(K[0].nodeName),M=N&&C.ui.hasScroll(K[0],"left")?0:D.sizeDiff.height,G=N?0:D.sizeDiff.width;var L={width:(D.size.width-G),height:(D.size.height-M)},H=(parseInt(D.element.css("left"),10)+(D.position.left-D.originalPosition.left))||null,F=(parseInt(D.element.css("top"),10)+(D.position.top-D.originalPosition.top))||null;D.element.animate(C.extend(L,F&&H?{top:F,left:H}:{}),{duration:I.animateDuration,easing:I.animateEasing,step:function(){var O={width:parseInt(D.element.css("width"),10),height:parseInt(D.element.css("height"),10),top:parseInt(D.element.css("top"),10),left:parseInt(D.element.css("left"),10)};if(K&&K.length){C(K[0]).css({width:O.width,height:O.height})}D._updateCache(O);D._propagate("resize",J)}})}});C.ui.plugin.add("resizable","containment",{start:function(O,E){var Q=C(this).data("resizable"),K=Q.options,I=Q.element;var N=K.containment,J=(N instanceof C)?N.get(0):(/parent/.test(N))?I.parent().get(0):N;if(!J){return }Q.containerElement=C(J);if(/document/.test(N)||N==document){Q.containerOffset={left:0,top:0};Q.containerPosition={left:0,top:0};Q.parentData={element:C(document),left:0,top:0,width:C(document).width(),height:C(document).height()||document.body.parentNode.scrollHeight}}else{var G=C(J),L=[];C(["Top","Right","Left","Bottom"]).each(function(R,S){L[R]=A(G.css("padding"+S))});Q.containerOffset=G.offset();Q.containerPosition=G.position();Q.containerSize={height:(G.innerHeight()-L[3]),width:(G.innerWidth()-L[1])};var F=Q.containerOffset,P=Q.containerSize.height,H=Q.containerSize.width,M=(C.ui.hasScroll(J,"left")?J.scrollWidth:H),D=(C.ui.hasScroll(J)?J.scrollHeight:P);Q.parentData={element:J,left:F.left,top:F.top,width:M,height:D}}},resize:function(O,F){var R=C(this).data("resizable"),M=R.options,P=R.containerSize,G=R.containerOffset,I=R.size,H=R.position,E=R._aspectRatio||O.shiftKey,Q={top:0,left:0},N=R.containerElement;if(N[0]!=document&&(/static/).test(N.css("position"))){Q=G}if(H.left<(R._helper?G.left:0)){R.size.width=R.size.width+(R._helper?(R.position.left-G.left):(R.position.left-Q.left));if(E){R.size.height=R.size.width/M.aspectRatio}R.position.left=M.helper?G.left:0}if(H.top<(R._helper?G.top:0)){R.size.height=R.size.height+(R._helper?(R.position.top-G.top):R.position.top);if(E){R.size.width=R.size.height*M.aspectRatio}R.position.top=R._helper?G.top:0}R.offset.left=R.parentData.left+R.position.left;R.offset.top=R.parentData.top+R.position.top;var J=Math.abs((R._helper?R.offset.left-Q.left:(R.offset.left-Q.left))+R.sizeDiff.width),D=Math.abs((R._helper?R.offset.top-Q.top:(R.offset.top-G.top))+R.sizeDiff.height);var K=R.containerElement.get(0)==R.element.parent().get(0),L=/relative|absolute/.test(R.containerElement.css("position"));if(K&&L){J-=R.parentData.left}if(J+R.size.width>=R.parentData.width){R.size.width=R.parentData.width-J;if(E){R.size.height=R.size.width/R.aspectRatio}}if(D+R.size.height>=R.parentData.height){R.size.height=R.parentData.height-D;if(E){R.size.width=R.size.height*R.aspectRatio}}},stop:function(N,G){var E=C(this).data("resizable"),M=E.options,I=E.position,H=E.containerOffset,O=E.containerPosition,L=E.containerElement;var K=C(E.helper),D=K.offset(),F=K.outerWidth()-E.sizeDiff.width,J=K.outerHeight()-E.sizeDiff.height;if(E._helper&&!M.animate&&(/relative/).test(L.css("position"))){C(this).css({left:D.left-O.left-H.left,width:F,height:J})}if(E._helper&&!M.animate&&(/static/).test(L.css("position"))){C(this).css({left:D.left-O.left-H.left,width:F,height:J})}}});C.ui.plugin.add("resizable","ghost",{start:function(F,E){var H=C(this).data("resizable"),D=H.options,G=H.size;H.ghost=H.originalElement.clone();H.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 D.ghost=="string"?D.ghost:"");H.ghost.appendTo(H.helper)},resize:function(F,E){var G=C(this).data("resizable"),D=G.options;if(G.ghost){G.ghost.css({position:"relative",height:G.size.height,width:G.size.width})}},stop:function(F,E){var G=C(this).data("resizable"),D=G.options;if(G.ghost&&G.helper){G.helper.get(0).removeChild(G.ghost.get(0))}}});C.ui.plugin.add("resizable","grid",{resize:function(N,F){var D=C(this).data("resizable"),K=D.options,H=D.size,J=D.originalSize,I=D.originalPosition,E=D.axis,G=K._aspectRatio||N.shiftKey;K.grid=typeof K.grid=="number"?[K.grid,K.grid]:K.grid;var L=Math.round((H.width-J.width)/(K.grid[0]||1))*(K.grid[0]||1),M=Math.round((H.height-J.height)/(K.grid[1]||1))*(K.grid[1]||1);if(/^(se|s|e)$/.test(E)){D.size.width=J.width+L;D.size.height=J.height+M}else{if(/^(ne)$/.test(E)){D.size.width=J.width+L;D.size.height=J.height+M;D.position.top=I.top-M}else{if(/^(sw)$/.test(E)){D.size.width=J.width+L;D.size.height=J.height+M;D.position.left=I.left-L}else{D.size.width=J.width+L;D.size.height=J.height+M;D.position.top=I.top-M;D.position.left=I.left-L}}}}});var A=function(D){return parseInt(D,10)||0};var B=function(D){return !isNaN(parseInt(D,10))}})(jQuery);(function(C){var A={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},B="ui-dialog ui-widget ui-widget-content ui-corner-all ";C.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var E=this,D=this.options,G=D.title||this.originalTitle||"&nbsp;",L=C.ui.dialog.getTitleId(this.element),F=(this.uiDialog=C("<div/>")).appendTo(document.body).hide().addClass(B+D.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:D.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(N){(D.closeOnEscape&&N.keyCode&&N.keyCode==C.ui.keyCode.ESCAPE&&E.close(N))}).attr({role:"dialog","aria-labelledby":L}).mousedown(function(N){E.moveToTop(false,N)}),J=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(F),K=(this.uiDialogTitlebar=C("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(F),H=C('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){H.addClass("ui-state-hover")},function(){H.removeClass("ui-state-hover")}).focus(function(){H.addClass("ui-state-focus")}).blur(function(){H.removeClass("ui-state-focus")}).mousedown(function(N){N.stopPropagation()}).click(function(N){E.close(N);return false}).appendTo(K),I=(this.uiDialogTitlebarCloseText=C("<span/>")).addClass("ui-icon ui-icon-closethick").text(D.closeText).appendTo(H),M=C("<span/>").addClass("ui-dialog-title").attr("id",L).html(G).prependTo(K);K.find("*").add(K).disableSelection();(D.draggable&&C.fn.draggable&&this._makeDraggable());(D.resizable&&C.fn.resizable&&this._makeResizable());this._createButtons(D.buttons);this._isOpen=false;(D.bgiframe&&C.fn.bgiframe&&F.bgiframe());(D.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(D){var F=this;if(false===F._trigger("beforeclose",D)){return }(F.overlay&&F.overlay.destroy());F.uiDialog.unbind("keypress.ui-dialog");(F.options.hide?F.uiDialog.hide(F.options.hide,function(){F._trigger("close",D)}):F.uiDialog.hide()&&F._trigger("close",D));C.ui.dialog.overlay.resize();F._isOpen=false;if(F.options.modal){var E=0;C(".ui-dialog").each(function(){if(this!=F.uiDialog[0]){E=Math.max(E,C(this).css("z-index"))}});C.ui.dialog.maxZ=E}},isOpen:function(){return this._isOpen},moveToTop:function(D,E){if((this.options.modal&&!D)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",E)}if(this.options.zIndex>C.ui.dialog.maxZ){C.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",C.ui.dialog.overlay.maxZ=++C.ui.dialog.maxZ));var F={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++C.ui.dialog.maxZ);this.element.attr(F);this._trigger("focus",E)},open:function(){if(this._isOpen){return }var D=this.options,E=this.uiDialog;this.overlay=D.modal?new C.ui.dialog.overlay(this):null;(E.next().length&&E.appendTo("body"));this._size();this._position(D.position);E.show(D.show);this.moveToTop(true);(D.modal&&E.bind("keypress.ui-dialog",function(G){if(G.keyCode!=C.ui.keyCode.TAB){return }var H=C(":tabbable",this),F=H.filter(":first")[0],I=H.filter(":last")[0];if(G.target==I&&!G.shiftKey){setTimeout(function(){F.focus()},1)}else{if(G.target==F&&G.shiftKey){setTimeout(function(){I.focus()},1)}}}));C([]).add(E.find(".ui-dialog-content :tabbable:first")).add(E.find(".ui-dialog-buttonpane :tabbable:first")).add(E).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(D){var E=this,G=false,F=C("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof D=="object"&&D!==null&&C.each(D,function(){return !(G=true)}));if(G){C.each(D,function(I,H){C('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(I).click(function(){H.apply(E.element[0],arguments)}).hover(function(){C(this).addClass("ui-state-hover")},function(){C(this).removeClass("ui-state-hover")}).focus(function(){C(this).addClass("ui-state-focus")}).blur(function(){C(this).removeClass("ui-state-focus")}).appendTo(F)});F.appendTo(this.uiDialog)}},_makeDraggable:function(){var F=this,D=this.options,E;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){E=D.height;C(this).height(C(this).height()).addClass("ui-dialog-dragging");(D.dragStart&&D.dragStart.apply(F.element[0],arguments))},drag:function(){(D.drag&&D.drag.apply(F.element[0],arguments))},stop:function(){C(this).removeClass("ui-dialog-dragging").height(E);(D.dragStop&&D.dragStop.apply(F.element[0],arguments));C.ui.dialog.overlay.resize()}})},_makeResizable:function(D){D=(D===undefined?this.options.resizable:D);var G=this,E=this.options,F=typeof D=="string"?D:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:E.maxWidth,maxHeight:E.maxHeight,minWidth:E.minWidth,minHeight:E.minHeight,start:function(){C(this).addClass("ui-dialog-resizing");(E.resizeStart&&E.resizeStart.apply(G.element[0],arguments))},resize:function(){(E.resize&&E.resize.apply(G.element[0],arguments))},handles:F,stop:function(){C(this).removeClass("ui-dialog-resizing");E.height=C(this).height();E.width=C(this).width();(E.resizeStop&&E.resizeStop.apply(G.element[0],arguments));C.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(D){var H=C(window),G=C(document),F=G.scrollTop(),I=G.scrollLeft(),E=F;if(C.inArray(D,["center","top","right","bottom","left"])>=0){D=[D=="right"||D=="left"?D:"center",D=="top"||D=="bottom"?D:"middle"]}if(D.constructor!=Array){D=["center","middle"]}if(D[0].constructor==Number){I+=D[0]}else{switch(D[0]){case"left":I+=0;break;case"right":I+=H.width()-this.uiDialog.outerWidth();break;default:case"center":I+=(H.width()-this.uiDialog.outerWidth())/2}}if(D[1].constructor==Number){F+=D[1]}else{switch(D[1]){case"top":F+=0;break;case"bottom":F+=H.height()-this.uiDialog.outerHeight();break;default:case"middle":F+=(H.height()-this.uiDialog.outerHeight())/2}}F=Math.max(F,E);this.uiDialog.css({top:F,left:I})},_setData:function(F,E){(A[F]&&this.uiDialog.data(A[F],E));switch(F){case"buttons":this._createButtons(E);break;case"closeText":this.uiDialogTitlebarCloseText.text(E);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(B+E);break;case"draggable":(E?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(E);break;case"position":this._position(E);break;case"resizable":var G=this.uiDialog,D=this.uiDialog.is(":data(resizable)");(D&&!E&&G.resizable("destroy"));(D&&typeof E=="string"&&G.resizable("option","handles",E));(D||this._makeResizable(E));break;case"title":C(".ui-dialog-title",this.uiDialogTitlebar).html(E||"&nbsp;");break;case"width":this.uiDialog.width(E);break}C.widget.prototype._setData.apply(this,arguments)},_size:function(){var D=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var E=this.uiDialog.css({height:"auto",width:D.width}).height();this.element.css({minHeight:Math.max(D.minHeight-E,0),height:D.height=="auto"?"auto":Math.max(D.height-E,0)})}});C.extend(C.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(D){return"ui-dialog-title-"+(D.attr("id")||++this.uuid)},overlay:function(D){this.$el=C.ui.dialog.overlay.create(D)}});C.extend(C.ui.dialog.overlay,{instances:[],maxZ:0,events:C.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(D){return D+".dialog-overlay"}).join(" "),create:function(D){if(this.instances.length===0){setTimeout(function(){if(C.ui.dialog.overlay.instances.length){C(document).bind(C.ui.dialog.overlay.events,function(G){var F=C(G.target).parents(".ui-dialog").css("zIndex")||0;return(F>C.ui.dialog.overlay.maxZ)})}},1);C(document).bind("keydown.dialog-overlay",function(F){(D.options.closeOnEscape&&F.keyCode&&F.keyCode==C.ui.keyCode.ESCAPE&&D.close(F))});C(window).bind("resize.dialog-overlay",C.ui.dialog.overlay.resize)}var E=C("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(D.options.bgiframe&&C.fn.bgiframe&&E.bgiframe());this.instances.push(E);return E},destroy:function(E){this.instances.splice(C.inArray(this.instances,E),1);if(this.instances.length===0){C([document,window]).unbind(".dialog-overlay")}E.remove();var D=0;C.each(this.instances,function(){D=Math.max(D,this.css("z-index"))});this.maxZ=D},height:function(){if(C.browser.msie&&C.browser.version<7){var D=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var E=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(D<E){return C(window).height()+"px"}else{return D+"px"}}else{return C(document).height()+"px"}},width:function(){if(C.browser.msie&&C.browser.version<7){var E=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var D=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(E<D){return C(window).width()+"px"}else{return E+"px"}}else{return C(document).width()+"px"}},resize:function(){var D=C([]);C.each(C.ui.dialog.overlay.instances,function(){D=D.add(this)});D.css({width:0,height:0}).css({width:C.ui.dialog.overlay.width(),height:C.ui.dialog.overlay.height()})}});C.extend(C.ui.dialog.overlay.prototype,{destroy:function(){C.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(A){A.fn.quicksand=function(E,C,G){function F(J){var K=[];if(A(J).get(0)==undefined){return""}var I=A(J).get(0).nodeName.toLowerCase();if(A(J).attr("id")){I+="#"+A(J).attr("id")}K.push(I);for(var H=[];A(J).get(0).nodeName.toLowerCase()!="html";){H.push(J);J=J.parent()}A(H).each(function(){I=A(this).get(0).nodeName.toLowerCase();if(A(this).attr("id")){I+="#"+A(this).attr("id")}K.push(I)});return K.reverse().join(" > ")}var B={duration:750,easing:"swing",attribute:"data-id",adjustHeight:true};A.extend(B,C);B.selector=null;A.extend(B,{selector:"> *"});var D;if(typeof C=="function"){D=C}else{if(typeof (G=="function")){D=G}}return this.each(function(){var O=A(E).clone(),Q=A(this);A(this).css("height");var M=A(Q).offset(),L=[],J=A(this).find(B.selector);if(A.browser.msie&&A.browser.version.substr(0,1)<7){Q.html("").append(O)}else{var H=0,K=function(){if(!H){Q.html(I.html());A("[data-quicksand-owner="+F(Q)+"]").remove();typeof D=="function"&&D.call(this);H=1}},N=Q.offsetParent(),P=N.offset();if(N.css("position")=="relative"){if(N.get(0).nodeName.toLowerCase()!="body"){P.top+=parseFloat(N.css("border-top-width"));P.left+=parseFloat(N.css("border-left-width"))}}else{P.top-=parseFloat(N.css("border-top-width"));P.left-=parseFloat(N.css("border-left-width"));P.top-=parseFloat(N.css("margin-top"));P.left-=parseFloat(N.css("margin-left"))}Q.css("height",A(this).height());J.each(function(R){L[R]=A(this).offset()});A(this).stop();J.each(function(R){A(this).stop();A(this).css("position","absolute").css("margin",0).css("top",L[R].top-parseFloat(A(this).css("margin-top"))-P.top).css("left",L[R].left-parseFloat(A(this).css("margin-left"))-P.left)});var I=A(Q).clone().html("").attr("id","").attr("data-quicksand-owner",Q.selector).css("height","auto").css("width",Q.width()+"px").append(O);I.insertBefore(Q).css("z-index",1).css("opacity",0).css("margin",0).css("position","absolute").css("top",M.top-P.top).css("left",M.left-P.left).attr("data-quicksand-owner",F(Q));B.adjustHeight&&Q.animate({height:I.height()},B.duration,B.easing);J.each(function(){var R=O.filter("["+B.attribute+"="+A(this).attr(B.attribute)+"]");if(R.length){A.browser.msie?A(this).animate({top:R.offset().top-P.top,left:R.offset().left-P.left,opacity:1},B.duration,B.easing,K):A(this).animate({top:R.offset().top-P.top,left:R.offset().left-P.left,opacity:1,scale:"1.0"},B.duration,B.easing,K)}else{A.browser.msie?A(this).animate({opacity:"0.0"},B.duration,B.easing,K):A(this).animate({opacity:"0.0",scale:"0.0"},B.duration,B.easing,K)}});O.each(function(){var R=J.filter("["+B.attribute+"="+A(this).attr(B.attribute)+"]"),S=O.filter("["+B.attribute+"="+A(this).attr(B.attribute)+"]");if(R.length===0){R=A.browser.msie?{opacity:"1.0"}:{opacity:"1.0",scale:"1.0"};S.clone().css("position","absolute").css("margin",0).css("top",S.offset().top-P.top).css("left",S.offset().left-P.left).css("opacity",0).css("transform","scale(0.0)").appendTo(Q).animate(R,B.duration,B.easing,K)}})}})}})(jQuery);(function(A){A.fn.lazyload=function(B){var C={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};if(B){A.extend(C,B)}var D=this;if("scroll"==C.event){A(C.container).bind("scroll",function(G){var E=0;D.each(function(){if(A.abovethetop(this,C)||A.leftofbegin(this,C)){}else{if(!A.belowthefold(this,C)&&!A.rightoffold(this,C)){A(this).trigger("appear")}else{if(E++>C.failurelimit){return false}}}});var F=A.grep(D,function(H){return !H.loaded});D=A(F)})}this.each(function(){var E=this;if(undefined==A(E).attr("original")){A(E).attr("original",A(E).attr("src"))}if("scroll"!=C.event||undefined==A(E).attr("src")||C.placeholder==A(E).attr("src")||(A.abovethetop(E,C)||A.leftofbegin(E,C)||A.belowthefold(E,C)||A.rightoffold(E,C))){if(C.placeholder){A(E).attr("src",C.placeholder)}else{A(E).removeAttr("src")}E.loaded=false}else{E.loaded=true}A(E).one("appear",function(){if(!this.loaded){A("<img />").bind("load",function(){A(E).hide().attr("src",A(E).attr("original"))[C.effect](C.effectspeed);E.loaded=true}).attr("src",A(E).attr("original"))}});if("scroll"!=C.event){A(E).bind(C.event,function(F){if(!E.loaded){A(E).trigger("appear")}})}});A(C.container).trigger(C.event);return this};A.belowthefold=function(C,D){if(D.container===undefined||D.container===window){var B=A(window).height()+A(window).scrollTop()}else{var B=A(D.container).offset().top+A(D.container).height()}return B<=A(C).offset().top-D.threshold};A.rightoffold=function(C,D){if(D.container===undefined||D.container===window){var B=A(window).width()+A(window).scrollLeft()}else{var B=A(D.container).offset().left+A(D.container).width()}return B<=A(C).offset().left-D.threshold};A.abovethetop=function(C,D){if(D.container===undefined||D.container===window){var B=A(window).scrollTop()}else{var B=A(D.container).offset().top}return B>=A(C).offset().top+D.threshold+A(C).height()};A.leftofbegin=function(C,D){if(D.container===undefined||D.container===window){var B=A(window).scrollLeft()}else{var B=A(D.container).offset().left}return B>=A(C).offset().left+D.threshold+A(C).width()};A.extend(A.expr[":"],{"below-the-fold":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"})})(jQuery);jQuery.fn.image=function(E,C,D){var B=new Image();var A=jQuery(this);jQuery(B).load(function(){A.html(jQuery(this));C()}).error(D).attr("src",E)};function smartColumns(G,C,F){var A=jQuery(G);A.css({width:"100%"});var E=A.width();var B=Math.floor(E/C);var D=Math.floor(E/B);A.css({width:E});A.children().css({width:D})};
