/*
 * jQuery JavaScript Library v1.4.4
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu Nov 11 19:04:53 2010 -0500
 */
(function(ax,aB){function i(t,c,E){if(E===aB&&t.nodeType===1){E=t.getAttribute("data-"+c);if(typeof E==="string"){try{E=E==="true"?true:E==="false"?false:E==="null"?null:!R.isNaN(E)?parseFloat(E):ac.test(E)?R.parseJSON(E):E}catch(B){}R.data(t,c,E)}else{E=aB}}return E}function am(){return false}function K(){return true}function aZ(t,c,B){B[0].type=t;return R.event.handle.apply(c,B)}function C(aa){var X,W,V,U,T,P,S,E,Z,c,B,t=[];U=[];T=R.data(this,this.nodeType?"events":"__events__");if(typeof T==="function"){T=T.events}if(!(aa.liveFired===this||!T||!T.live||aa.button&&aa.type==="click")){if(aa.namespace){B=RegExp("(^|\\.)"+aa.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}aa.liveFired=this;var Y=T.live.slice(0);for(S=0;S<Y.length;S++){T=Y[S];T.origType.replace(aj,"")===aa.type?U.push(T.selector):Y.splice(S--,1)}U=R(aa.target).closest(U,aa.currentTarget);E=0;for(Z=U.length;E<Z;E++){c=U[E];for(S=0;S<Y.length;S++){T=Y[S];if(c.selector===T.selector&&(!B||B.test(T.namespace))){P=c.elem;V=null;if(T.preType==="mouseenter"||T.preType==="mouseleave"){aa.type=T.preType;V=R(aa.relatedTarget).closest(T.selector)[0]}if(!V||V!==P){t.push({elem:P,handleObj:T,level:c.level})}}}}E=0;for(Z=t.length;E<Z;E++){U=t[E];if(W&&U.level>W){break}aa.currentTarget=U.elem;aa.data=U.handleObj.data;aa.handleObj=U.handleObj;B=U.handleObj.origHandler.apply(U.elem,arguments);if(B===false||aa.isPropagationStopped()){W=U.level;if(B===false){X=false}if(aa.isImmediatePropagationStopped()){break}}}return X}}function ai(t,c){return(t&&t!=="*"?t+".":"")+c.replace(m,"`").replace(a3,"&")}function aM(t,c,E){if(R.isFunction(c)){return R.grep(t,function(S,P){return !!c.call(S,P,S)===E})}else{if(c.nodeType){return R.grep(t,function(P){return P===c===E})}else{if(typeof c==="string"){var B=R.grep(t,function(P){return P.nodeType===1});if(aR.test(c)){return R.filter(c,B,!E)}else{c=R.filter(c,B)}}}}return R.grep(t,function(P){return R.inArray(P,c)>=0===E})}function ay(t,c){var B=0;c.each(function(){if(this.nodeName===(t[B]&&t[B].nodeName)){var T=R.data(t[B++]),S=R.data(this,T);if(T=T&&T.events){delete S.handle;S.events={};for(var P in T){for(var E in T[P]){R.event.add(this,P,T[P][E],T[P][E].data)}}}}})}function aE(t,c){c.src?R.ajax({url:c.src,async:false,dataType:"script"}):R.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function Q(t,c,E){var B=c==="width"?t.offsetWidth:t.offsetHeight;if(E==="border"){return B}R.each(c==="width"?af:G,function(){E||(B-=parseFloat(R.css(t,"padding"+this))||0);if(E==="margin"){B+=parseFloat(R.css(t,"margin"+this))||0}else{B-=parseFloat(R.css(t,"border"+this+"Width"))||0}});return B}function v(t,c,E,B){if(R.isArray(c)&&c.length){R.each(c,function(S,P){E||q.test(t)?B(t,P):v(t+"["+(typeof P==="object"||R.isArray(P)?S:"")+"]",P,E,B)})}else{if(!E&&c!=null&&typeof c==="object"){R.isEmptyObject(c)?B(t,""):R.each(c,function(S,P){v(t+"["+S+"]",P,E,B)})}else{B(t,c)}}}function ao(t,c){var B={};R.each(A.concat.apply([],A.slice(0,c)),function(){B[this]=t});return B}function l(t){if(!g[t]){var c=R("<"+t+">").appendTo("body"),B=c.css("display");c.remove();if(B==="none"||B===""){B="block"}g[t]=B}return g[t]}function aW(c){return R.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var I=ax.document,R=function(){function bj(){if(!bi.isReady){try{I.documentElement.doScroll("left")}catch(bk){setTimeout(bj,1);return}bi.ready()}}var bi=function(bk,bl){return new bi.fn.init(bk,bl)},bh=ax.jQuery,bg=ax.$,bf,bd=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,ba=/\S/,bb=/^\s+/,a7=/\s+$/,V=/\W/,ab=/\d/,a6=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,aa=/^[\],:{}\s]*$/,T=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,W=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,U=/(?:^|:|,)(?:\s*\[)+/g,P=/(webkit)[ \/]([\w.]+)/,be=/(opera)(?:.*version)?[ \/]([\w.]+)/,bc=/(msie) ([\w.]+)/,a8=/(mozilla)(?:.*? rv:([\w.]+))?/,a9=navigator.userAgent,a5=false,a4=[],Y,S=Object.prototype.toString,X=Object.prototype.hasOwnProperty,E=Array.prototype.push,B=Array.prototype.slice,t=String.prototype.trim,Z=Array.prototype.indexOf,c={};bi.fn=bi.prototype={init:function(bl,bn){var bk,bo,bm;if(!bl){return this}if(bl.nodeType){this.context=this[0]=bl;this.length=1;return this}if(bl==="body"&&!bn&&I.body){this.context=I;this[0]=I.body;this.selector="body";this.length=1;return this}if(typeof bl==="string"){if((bk=bd.exec(bl))&&(bk[1]||!bn)){if(bk[1]){bm=bn?bn.ownerDocument||bn:I;if(bo=a6.exec(bl)){if(bi.isPlainObject(bn)){bl=[I.createElement(bo[1])];bi.fn.attr.call(bl,bn,true)}else{bl=[bm.createElement(bo[1])]}}else{bo=bi.buildFragment([bk[1]],[bm]);bl=(bo.cacheable?bo.fragment.cloneNode(true):bo.fragment).childNodes}return bi.merge(this,bl)}else{if((bo=I.getElementById(bk[2]))&&bo.parentNode){if(bo.id!==bk[2]){return bf.find(bl)}this.length=1;this[0]=bo}this.context=I;this.selector=bl;return this}}else{if(!bn&&!V.test(bl)){this.selector=bl;this.context=I;bl=I.getElementsByTagName(bl);return bi.merge(this,bl)}else{return !bn||bn.jquery?(bn||bf).find(bl):bi(bn).find(bl)}}}else{if(bi.isFunction(bl)){return bf.ready(bl)}}if(bl.selector!==aB){this.selector=bl.selector;this.context=bl.context}return bi.makeArray(bl,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return B.call(this,0)},get:function(bk){return bk==null?this.toArray():bk<0?this.slice(bk)[0]:this[bk]},pushStack:function(bl,bm,bk){var bn=bi();bi.isArray(bl)?E.apply(bn,bl):bi.merge(bn,bl);bn.prevObject=this;bn.context=this.context;if(bm==="find"){bn.selector=this.selector+(this.selector?" ":"")+bk}else{if(bm){bn.selector=this.selector+"."+bm+"("+bk+")"}}return bn},each:function(bk,bl){return bi.each(this,bk,bl)},ready:function(bk){bi.bindReady();if(bi.isReady){bk.call(I,bi)}else{a4&&a4.push(bk)}return this},eq:function(bk){return bk===-1?this.slice(bk):this.slice(bk,+bk+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(B.apply(this,arguments),"slice",B.call(arguments).join(","))},map:function(bk){return this.pushStack(bi.map(this,function(bm,bl){return bk.call(bm,bl,bm)}))},end:function(){return this.prevObject||bi(null)},push:E,sort:[].sort,splice:[].splice};bi.fn.init.prototype=bi.fn;bi.extend=bi.fn.extend=function(){var bk,bs,bp,bm,bo,bq=arguments[0]||{},bn=1,bl=arguments.length,br=false;if(typeof bq==="boolean"){br=bq;bq=arguments[1]||{};bn=2}if(typeof bq!=="object"&&!bi.isFunction(bq)){bq={}}if(bl===bn){bq=this;--bn}for(;bn<bl;bn++){if((bk=arguments[bn])!=null){for(bs in bk){bp=bq[bs];bm=bk[bs];if(bq!==bm){if(br&&bm&&(bi.isPlainObject(bm)||(bo=bi.isArray(bm)))){if(bo){bo=false;bp=bp&&bi.isArray(bp)?bp:[]}else{bp=bp&&bi.isPlainObject(bp)?bp:{}}bq[bs]=bi.extend(br,bp,bm)}else{if(bm!==aB){bq[bs]=bm}}}}}}return bq};bi.extend({noConflict:function(bk){ax.$=bg;if(bk){ax.jQuery=bh}return bi},isReady:false,readyWait:1,ready:function(bl){bl===true&&bi.readyWait--;if(!bi.readyWait||bl!==true&&!bi.isReady){if(!I.body){return setTimeout(bi.ready,1)}bi.isReady=true;if(!(bl!==true&&--bi.readyWait>0)){if(a4){var bm=0,bk=a4;for(a4=null;bl=bk[bm++];){bl.call(I,bi)}bi.fn.trigger&&bi(I).trigger("ready").unbind("ready")}}}},bindReady:function(){if(!a5){a5=true;if(I.readyState==="complete"){return setTimeout(bi.ready,1)}if(I.addEventListener){I.addEventListener("DOMContentLoaded",Y,false);ax.addEventListener("load",bi.ready,false)}else{if(I.attachEvent){I.attachEvent("onreadystatechange",Y);ax.attachEvent("onload",bi.ready);var bk=false;try{bk=ax.frameElement==null}catch(bl){}I.documentElement.doScroll&&bk&&bj()}}}},isFunction:function(bk){return bi.type(bk)==="function"},isArray:Array.isArray||function(bk){return bi.type(bk)==="array"},isWindow:function(bk){return bk&&typeof bk==="object"&&"setInterval" in bk},isNaN:function(bk){return bk==null||!ab.test(bk)||isNaN(bk)},type:function(bk){return bk==null?String(bk):c[S.call(bk)]||"object"},isPlainObject:function(bk){if(!bk||bi.type(bk)!=="object"||bk.nodeType||bi.isWindow(bk)){return false}if(bk.constructor&&!X.call(bk,"constructor")&&!X.call(bk.constructor.prototype,"isPrototypeOf")){return false}for(var bl in bk){}return bl===aB||X.call(bk,bl)},isEmptyObject:function(bk){for(var bl in bk){return false}return true},error:function(bk){throw bk},parseJSON:function(bk){if(typeof bk!=="string"||!bk){return null}bk=bi.trim(bk);if(aa.test(bk.replace(T,"@").replace(W,"]").replace(U,""))){return ax.JSON&&ax.JSON.parse?ax.JSON.parse(bk):(new Function("return "+bk))()}else{bi.error("Invalid JSON: "+bk)}},noop:function(){},globalEval:function(bl){if(bl&&ba.test(bl)){var bm=I.getElementsByTagName("head")[0]||I.documentElement,bk=I.createElement("script");bk.type="text/javascript";if(bi.support.scriptEval){bk.appendChild(I.createTextNode(bl))}else{bk.text=bl}bm.insertBefore(bk,bm.firstChild);bm.removeChild(bk)}},nodeName:function(bk,bl){return bk.nodeName&&bk.nodeName.toUpperCase()===bl.toUpperCase()},each:function(bm,bp,bl){var bq,bn=0,bo=bm.length,bk=bo===aB||bi.isFunction(bm);if(bl){if(bk){for(bq in bm){if(bp.apply(bm[bq],bl)===false){break}}}else{for(;bn<bo;){if(bp.apply(bm[bn++],bl)===false){break}}}}else{if(bk){for(bq in bm){if(bp.call(bm[bq],bq,bm[bq])===false){break}}}else{for(bl=bm[0];bn<bo&&bp.call(bl,bn,bl)!==false;bl=bm[++bn]){}}}return bm},trim:t?function(bk){return bk==null?"":t.call(bk)}:function(bk){return bk==null?"":bk.toString().replace(bb,"").replace(a7,"")},makeArray:function(bl,bm){var bk=bm||[];if(bl!=null){var bn=bi.type(bl);bl.length==null||bn==="string"||bn==="function"||bn==="regexp"||bi.isWindow(bl)?E.call(bk,bl):bi.merge(bk,bl)}return bk},inArray:function(bl,bm){if(bm.indexOf){return bm.indexOf(bl)}for(var bk=0,bn=bm.length;bk<bn;bk++){if(bm[bk]===bl){return bk}}return -1},merge:function(bl,bn){var bk=bl.length,bo=0;if(typeof bn.length==="number"){for(var bm=bn.length;bo<bm;bo++){bl[bk++]=bn[bo]}}else{for(;bn[bo]!==aB;){bl[bk++]=bn[bo++]}}bl.length=bk;return bl},grep:function(bm,bp,bl){var bq=[],bn;bl=!!bl;for(var bo=0,bk=bm.length;bo<bk;bo++){bn=!!bp(bm[bo],bo);bl!==bn&&bq.push(bm[bo])}return bq},map:function(bm,bp,bl){for(var bq=[],bn,bo=0,bk=bm.length;bo<bk;bo++){bn=bp(bm[bo],bo,bl);if(bn!=null){bq[bq.length]=bn}}return bq.concat.apply([],bq)},guid:1,proxy:function(bl,bm,bk){if(arguments.length===2){if(typeof bm==="string"){bk=bl;bl=bk[bm];bm=aB}else{if(bm&&!bi.isFunction(bm)){bk=bm;bm=aB}}}if(!bm&&bl){bm=function(){return bl.apply(bk||this,arguments)}}if(bl){bm.guid=bl.guid=bl.guid||bm.guid||bi.guid++}return bm},access:function(bm,bp,bl,br,bn,bo){var bk=bm.length;if(typeof bp==="object"){for(var bq in bp){bi.access(bm,bq,bp[bq],br,bn,bl)}return bm}if(bl!==aB){br=!bo&&br&&bi.isFunction(bl);for(bq=0;bq<bk;bq++){bn(bm[bq],bp,br?bl.call(bm[bq],bq,bn(bm[bq],bp)):bl,bo)}return bm}return bk?bn(bm[0],bp):aB},now:function(){return(new Date).getTime()},uaMatch:function(bk){bk=bk.toLowerCase();bk=P.exec(bk)||be.exec(bk)||bc.exec(bk)||bk.indexOf("compatible")<0&&a8.exec(bk)||[];return{browser:bk[1]||"",version:bk[2]||"0"}},browser:{}});bi.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(bk,bl){c["[object "+bl+"]"]=bl.toLowerCase()});a9=bi.uaMatch(a9);if(a9.browser){bi.browser[a9.browser]=true;bi.browser.version=a9.version}if(bi.browser.webkit){bi.browser.safari=true}if(Z){bi.inArray=function(bk,bl){return Z.call(bl,bk)}}if(!/\s/.test("\u00a0")){bb=/^[\s\xA0]+/;a7=/[\s\xA0]+$/}bf=bi(I);if(I.addEventListener){Y=function(){I.removeEventListener("DOMContentLoaded",Y,false);bi.ready()}}else{if(I.attachEvent){Y=function(){if(I.readyState==="complete"){I.detachEvent("onreadystatechange",Y);bi.ready()}}}}return ax.jQuery=ax.$=bi}();(function(){R.support={};var X=I.documentElement,V=I.createElement("script"),U=I.createElement("div"),T="script"+R.now();U.style.display="none";U.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var S=U.getElementsByTagName("*"),P=U.getElementsByTagName("a")[0],B=I.createElement("select"),E=B.appendChild(I.createElement("option"));if(!(!S||!S.length||!P)){R.support={leadingWhitespace:U.firstChild.nodeType===3,tbody:!U.getElementsByTagName("tbody").length,htmlSerialize:!!U.getElementsByTagName("link").length,style:/red/.test(P.getAttribute("style")),hrefNormalized:P.getAttribute("href")==="/a",opacity:/^0.55$/.test(P.style.opacity),cssFloat:!!P.style.cssFloat,checkOn:U.getElementsByTagName("input")[0].value==="on",optSelected:E.selected,deleteExpando:true,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};B.disabled=true;R.support.optDisabled=!E.disabled;V.type="text/javascript";try{V.appendChild(I.createTextNode("window."+T+"=1;"))}catch(t){}X.insertBefore(V,X.firstChild);if(ax[T]){R.support.scriptEval=true;delete ax[T]}try{delete V.test}catch(W){R.support.deleteExpando=false}X.removeChild(V);if(U.attachEvent&&U.fireEvent){U.attachEvent("onclick",function c(){R.support.noCloneEvent=false;U.detachEvent("onclick",c)});U.cloneNode(true).fireEvent("onclick")}U=I.createElement("div");U.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";X=I.createDocumentFragment();X.appendChild(U.firstChild);R.support.checkClone=X.cloneNode(true).cloneNode(true).lastChild.checked;R(function(){var Z=I.createElement("div");Z.style.width=Z.style.paddingLeft="1px";I.body.appendChild(Z);R.boxModel=R.support.boxModel=Z.offsetWidth===2;if("zoom" in Z.style){Z.style.display="inline";Z.style.zoom=1;R.support.inlineBlockNeedsLayout=Z.offsetWidth===2;Z.style.display="";Z.innerHTML="<div style='width:4px;'></div>";R.support.shrinkWrapBlocks=Z.offsetWidth!==2}Z.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var Y=Z.getElementsByTagName("td");R.support.reliableHiddenOffsets=Y[0].offsetHeight===0;Y[0].style.display="";Y[1].style.display="none";R.support.reliableHiddenOffsets=R.support.reliableHiddenOffsets&&Y[0].offsetHeight===0;Z.innerHTML="";I.body.removeChild(Z).style.display="none"});X=function(Z){var Y=I.createElement("div");Z="on"+Z;var aa=Z in Y;if(!aa){Y.setAttribute(Z,"return;");aa=typeof Y[Z]==="function"}return aa};R.support.submitBubbles=X("submit");R.support.changeBubbles=X("change");X=V=U=S=P=null}})();var a2={},ac=/^(?:\{.*\}|\[.*\])$/;R.extend({cache:{},uuid:0,expando:"jQuery"+R.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(t,c,S){if(R.acceptData(t)){t=t==ax?a2:t;var P=t.nodeType,E=P?t[R.expando]:null,B=R.cache;if(!(P&&!E&&typeof c==="string"&&S===aB)){if(P){E||(t[R.expando]=E=++R.uuid)}else{B=t}if(typeof c==="object"){if(P){B[E]=R.extend(B[E],c)}else{R.extend(B,c)}}else{if(P&&!B[E]){B[E]={}}}t=P?B[E]:B;if(S!==aB){t[c]=S}return typeof c==="string"?t[c]:t}}},removeData:function(B,c){if(R.acceptData(B)){B=B==ax?a2:B;var T=B.nodeType,S=T?B[R.expando]:B,P=R.cache,E=T?P[S]:S;if(c){if(E){delete E[c];T&&R.isEmptyObject(E)&&R.removeData(B)}}else{if(T&&R.support.deleteExpando){delete B[R.expando]}else{if(B.removeAttribute){B.removeAttribute(R.expando)}else{if(T){delete P[S]}else{for(var t in B){delete B[t]}}}}}}},acceptData:function(t){if(t.nodeName){var c=R.noData[t.nodeName.toLowerCase()];if(c){return !(c===true||t.getAttribute("classid")!==c)}}return true}});R.fn.extend({data:function(B,c){var U=null;if(typeof B==="undefined"){if(this.length){var T=this[0].attributes,S;U=R.data(this[0]);for(var P=0,t=T.length;P<t;P++){S=T[P].name;if(S.indexOf("data-")===0){S=S.substr(5);i(this[0],S,U[S])}}}return U}else{if(typeof B==="object"){return this.each(function(){R.data(this,B)})}}var E=B.split(".");E[1]=E[1]?"."+E[1]:"";if(c===aB){U=this.triggerHandler("getData"+E[1]+"!",[E[0]]);if(U===aB&&this.length){U=R.data(this[0],B);U=i(this[0],B,U)}return U===aB&&E[1]?this.data(E[0]):U}else{return this.each(function(){var W=R(this),V=[E[0],c];W.triggerHandler("setData"+E[1]+"!",V);R.data(this,B,c);W.triggerHandler("changeData"+E[1]+"!",V)})}},removeData:function(c){return this.each(function(){R.removeData(this,c)})}});R.extend({queue:function(t,c,E){if(t){c=(c||"fx")+"queue";var B=R.data(t,c);if(!E){return B||[]}if(!B||R.isArray(E)){B=R.data(t,c,R.makeArray(E))}else{B.push(E)}return B}},dequeue:function(t,c){c=c||"fx";var E=R.queue(t,c),B=E.shift();if(B==="inprogress"){B=E.shift()}if(B){c==="fx"&&E.unshift("inprogress");B.call(t,function(){R.dequeue(t,c)})}}});R.fn.extend({queue:function(t,c){if(typeof t!=="string"){c=t;t="fx"}if(c===aB){return R.queue(this[0],t)}return this.each(function(){var B=R.queue(this,t,c);t==="fx"&&B[0]!=="inprogress"&&R.dequeue(this,t)})},dequeue:function(c){return this.each(function(){R.dequeue(this,c)})},delay:function(t,c){t=R.fx?R.fx.speeds[t]||t:t;c=c||"fx";return this.queue(c,function(){var B=this;setTimeout(function(){R.dequeue(B,c)},t)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var aQ=/[\n\t]/g,au=/\s+/,d=/\r/g,aT=/^(?:href|src|style)$/,aG=/^(?:button|input)$/i,ah=/^(?:button|input|object|select|textarea)$/i,H=/^a(?:rea)?$/i,aD=/^(?:radio|checkbox)$/i;R.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};R.fn.extend({attr:function(t,c){return R.access(this,t,c,true,R.attr)},removeAttr:function(c){return this.each(function(){R.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(V){if(R.isFunction(V)){return this.each(function(W){var X=R(this);X.addClass(V.call(this,W,X.attr("class")))})}if(V&&typeof V==="string"){for(var U=(V||"").split(au),T=0,S=this.length;T<S;T++){var P=this[T];if(P.nodeType===1){if(P.className){for(var E=" "+P.className+" ",t=P.className,B=0,c=U.length;B<c;B++){if(E.indexOf(" "+U[B]+" ")<0){t+=" "+U[B]}}P.className=R.trim(t)}else{P.className=V}}}}return this},removeClass:function(B){if(R.isFunction(B)){return this.each(function(W){var V=R(this);V.removeClass(B.call(this,W,V.attr("class")))})}if(B&&typeof B==="string"||B===aB){for(var c=(B||"").split(au),U=0,T=this.length;U<T;U++){var S=this[U];if(S.nodeType===1&&S.className){if(B){for(var P=(" "+S.className+" ").replace(aQ," "),t=0,E=c.length;t<E;t++){P=P.replace(" "+c[t]+" "," ")}S.className=R.trim(P)}else{S.className=""}}}}return this},toggleClass:function(t,c){var E=typeof t,B=typeof c==="boolean";if(R.isFunction(t)){return this.each(function(S){var P=R(this);P.toggleClass(t.call(this,S,P.attr("class"),c),c)})}return this.each(function(){if(E==="string"){for(var U,T=0,P=R(this),S=c,V=t.split(au);U=V[T++];){S=B?S:!P.hasClass(U);P[S?"addClass":"removeClass"](U)}}else{if(E==="undefined"||E==="boolean"){this.className&&R.data(this,"__className__",this.className);this.className=this.className||t===false?"":R.data(this,"__className__")||""}}})},hasClass:function(t){t=" "+t+" ";for(var c=0,B=this.length;c<B;c++){if((" "+this[c].className+" ").replace(aQ," ").indexOf(t)>-1){return true}}return false},val:function(B){if(!arguments.length){var c=this[0];if(c){if(R.nodeName(c,"option")){var U=c.attributes.value;return !U||U.specified?c.value:c.text}if(R.nodeName(c,"select")){var T=c.selectedIndex;U=[];var S=c.options;c=c.type==="select-one";if(T<0){return null}var P=c?T:0;for(T=c?T+1:S.length;P<T;P++){var t=S[P];if(t.selected&&(R.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!R.nodeName(t.parentNode,"optgroup"))){B=R(t).val();if(c){return B}U.push(B)}}return U}if(aD.test(c.type)&&!R.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(d,"")}return aB}var E=R.isFunction(B);return this.each(function(Y){var W=R(this),X=B;if(this.nodeType===1){if(E){X=B.call(this,Y,W.val())}if(X==null){X=""}else{if(typeof X==="number"){X+=""}else{if(R.isArray(X)){X=R.map(X,function(Z){return Z==null?"":Z+""})}}}if(R.isArray(X)&&aD.test(this.type)){this.checked=R.inArray(W.val(),X)>=0}else{if(R.nodeName(this,"select")){var V=R.makeArray(X);R("option",this).each(function(){this.selected=R.inArray(R(this).val(),V)>=0});if(!V.length){this.selectedIndex=-1}}else{this.value=X}}}})}});R.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(t,c,S,P){if(!t||t.nodeType===3||t.nodeType===8){return aB}if(P&&c in R.attrFn){return R(t)[c](S)}P=t.nodeType!==1||!R.isXMLDoc(t);var E=S!==aB;c=P&&R.props[c]||c;var B=aT.test(c);if((c in t||t[c]!==aB)&&P&&!B){if(E){c==="type"&&aG.test(t.nodeName)&&t.parentNode&&R.error("type property can't be changed");if(S===null){t.nodeType===1&&t.removeAttribute(c)}else{t[c]=S}}if(R.nodeName(t,"form")&&t.getAttributeNode(c)){return t.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=t.getAttributeNode("tabIndex"))&&c.specified?c.value:ah.test(t.nodeName)||H.test(t.nodeName)&&t.href?0:aB}return t[c]}if(!R.support.style&&P&&c==="style"){if(E){t.style.cssText=""+S}return t.style.cssText}E&&t.setAttribute(c,""+S);if(!t.attributes[c]&&t.hasAttribute&&!t.hasAttribute(c)){return aB}t=!R.support.hrefNormalized&&P&&B?t.getAttribute(c,2):t.getAttribute(c);return t===null?aB:t}});var aj=/\.(.*)$/,M=/^(?:textarea|input|select)$/i,m=/\./g,a3=/ /g,r=/[^\w\s.|`]/g,e=function(c){return c.replace(r,"\\$&")},ae={focusin:0,focusout:0};R.event={add:function(Z,X,W,V){if(!(Z.nodeType===3||Z.nodeType===8)){if(R.isWindow(Z)&&Z!==ax&&!Z.frameElement){Z=ax}if(W===false){W=am}else{if(!W){return}}var U,T;if(W.handler){U=W;W=U.handler}if(!W.guid){W.guid=R.guid++}if(T=R.data(Z)){var P=Z.nodeType?"events":"__events__",S=T[P],E=T.handle;if(typeof S==="function"){E=S.handle;S=S.events}else{if(!S){Z.nodeType||(T[P]=T=function(){});T.events=S={}}}if(!E){T.handle=E=function(){return typeof R!=="undefined"&&!R.event.triggered?R.event.handle.apply(E.elem,arguments):aB}}E.elem=Z;X=X.split(" ");for(var Y=0,c;P=X[Y++];){T=U?R.extend({},U):{handler:W,data:V};if(P.indexOf(".")>-1){c=P.split(".");P=c.shift();T.namespace=c.slice(0).sort().join(".")}else{c=[];T.namespace=""}T.type=P;if(!T.guid){T.guid=W.guid}var B=S[P],t=R.event.special[P]||{};if(!B){B=S[P]=[];if(!t.setup||t.setup.call(Z,V,c,E)===false){if(Z.addEventListener){Z.addEventListener(P,E,false)}else{Z.attachEvent&&Z.attachEvent("on"+P,E)}}}if(t.add){t.add.call(Z,T);if(!T.handler.guid){T.handler.guid=W.guid}}B.push(T);R.event.global[P]=true}Z=null}}},global:{},remove:function(aa,X,W,V){if(!(aa.nodeType===3||aa.nodeType===8)){if(W===false){W=am}var U,T,P=0,S,E,Z,c,B,t,Y=aa.nodeType?"events":"__events__",a4=R.data(aa),ab=a4&&a4[Y];if(a4&&ab){if(typeof ab==="function"){a4=ab;ab=ab.events}if(X&&X.type){W=X.handler;X=X.type}if(!X||typeof X==="string"&&X.charAt(0)==="."){X=X||"";for(U in ab){R.event.remove(aa,U+X)}}else{for(X=X.split(" ");U=X[P++];){c=U;S=U.indexOf(".")<0;E=[];if(!S){E=U.split(".");U=E.shift();Z=RegExp("(^|\\.)"+R.map(E.slice(0).sort(),e).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(B=ab[U]){if(W){c=R.event.special[U]||{};for(T=V||0;T<B.length;T++){t=B[T];if(W.guid===t.guid){if(S||Z.test(t.namespace)){V==null&&B.splice(T--,1);c.remove&&c.remove.call(aa,t)}if(V!=null){break}}}if(B.length===0||V!=null&&B.length===1){if(!c.teardown||c.teardown.call(aa,E)===false){R.removeEvent(aa,U,a4.handle)}delete ab[U]}}else{for(T=0;T<B.length;T++){t=B[T];if(S||Z.test(t.namespace)){R.event.remove(aa,c,t.handler,T);B.splice(T--,1)}}}}}if(R.isEmptyObject(ab)){if(X=a4.handle){X.elem=null}delete a4.events;delete a4.handle;if(typeof a4==="function"){R.removeData(aa,Y)}else{R.isEmptyObject(a4)&&R.removeData(aa)}}}}}},trigger:function(X,V,U,T){var S=X.type||X;if(!T){X=typeof X==="object"?X[R.expando]?X:R.extend(R.Event(S),X):R.Event(S);if(S.indexOf("!")>=0){X.type=S=S.slice(0,-1);X.exclusive=true}if(!U){X.stopPropagation();R.event.global[S]&&R.each(R.cache,function(){this.events&&this.events[S]&&R.event.trigger(X,V,this.handle.elem)})}if(!U||U.nodeType===3||U.nodeType===8){return aB}X.result=aB;X.target=U;V=R.makeArray(V);V.unshift(X)}X.currentTarget=U;(T=U.nodeType?R.data(U,"handle"):(R.data(U,"__events__")||{}).handle)&&T.apply(U,V);T=U.parentNode||U.ownerDocument;try{if(!(U&&U.nodeName&&R.noData[U.nodeName.toLowerCase()])){if(U["on"+S]&&U["on"+S].apply(U,V)===false){X.result=false;X.preventDefault()}}}catch(P){}if(!X.isPropagationStopped()&&T){R.event.trigger(X,V,T,true)}else{if(!X.isDefaultPrevented()){var B;T=X.target;var E=S.replace(aj,""),t=R.nodeName(T,"a")&&E==="click",W=R.event.special[E]||{};if((!W._default||W._default.call(U,X)===false)&&!t&&!(T&&T.nodeName&&R.noData[T.nodeName.toLowerCase()])){try{if(T[E]){if(B=T["on"+E]){T["on"+E]=null}R.event.triggered=true;T[E]()}}catch(c){}if(B){T["on"+E]=B}R.event.triggered=false}}}},handle:function(B){var c,U,T,S;U=[];var P=R.makeArray(arguments);B=P[0]=R.event.fix(B||ax.event);B.currentTarget=this;c=B.type.indexOf(".")<0&&!B.exclusive;if(!c){T=B.type.split(".");B.type=T.shift();U=T.slice(0).sort();T=RegExp("(^|\\.)"+U.join("\\.(?:.*\\.)?")+"(\\.|$)")}B.namespace=B.namespace||U.join(".");S=R.data(this,this.nodeType?"events":"__events__");if(typeof S==="function"){S=S.events}U=(S||{})[B.type];if(S&&U){U=U.slice(0);S=0;for(var t=U.length;S<t;S++){var E=U[S];if(c||T.test(E.namespace)){B.handler=E.handler;B.data=E.data;B.handleObj=E;E=E.handler.apply(this,P);if(E!==aB){B.result=E;if(E===false){B.preventDefault();B.stopPropagation()}}if(B.isImmediatePropagationStopped()){break}}}}return B.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 pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(t){if(t[R.expando]){return t}var c=t;t=R.Event(c);for(var E=this.props.length,B;E;){B=this.props[--E];t[B]=c[B]}if(!t.target){t.target=t.srcElement||I}if(t.target.nodeType===3){t.target=t.target.parentNode}if(!t.relatedTarget&&t.fromElement){t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement}if(t.pageX==null&&t.clientX!=null){c=I.documentElement;E=I.body;t.pageX=t.clientX+(c&&c.scrollLeft||E&&E.scrollLeft||0)-(c&&c.clientLeft||E&&E.clientLeft||0);t.pageY=t.clientY+(c&&c.scrollTop||E&&E.scrollTop||0)-(c&&c.clientTop||E&&E.clientTop||0)}if(t.which==null&&(t.charCode!=null||t.keyCode!=null)){t.which=t.charCode!=null?t.charCode:t.keyCode}if(!t.metaKey&&t.ctrlKey){t.metaKey=t.ctrlKey}if(!t.which&&t.button!==aB){t.which=t.button&1?1:t.button&2?3:t.button&4?2:0}return t},guid:100000000,proxy:R.proxy,special:{ready:{setup:R.bindReady,teardown:R.noop},live:{add:function(c){R.event.add(this,ai(c.origType,c.selector),R.extend({},c,{handler:C,guid:c.handler.guid}))},remove:function(c){R.event.remove(this,ai(c.origType,c.selector),c)}},beforeunload:{setup:function(t,c,B){if(R.isWindow(this)){this.onbeforeunload=B}},teardown:function(t,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};R.removeEvent=I.removeEventListener?function(t,c,B){t.removeEventListener&&t.removeEventListener(c,B,false)}:function(t,c,B){t.detachEvent&&t.detachEvent("on"+c,B)};R.Event=function(c){if(!this.preventDefault){return new R.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=R.now();this[R.expando]=true};R.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var c=this.originalEvent;if(c){if(c.preventDefault){c.preventDefault()}else{c.returnValue=false}}},stopPropagation:function(){this.isPropagationStopped=K;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K;this.stopPropagation()},isDefaultPrevented:am,isPropagationStopped:am,isImmediatePropagationStopped:am};var F=function(t){var c=t.relatedTarget;try{for(;c&&c!==this;){c=c.parentNode}if(c!==this){t.type=t.data;R.event.handle.apply(this,arguments)}}catch(B){}},o=function(c){c.type=c.data;R.event.handle.apply(this,arguments)};R.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,c){R.event.special[t]={setup:function(B){R.event.add(this,c,B&&B.selector?o:F,t)},teardown:function(B){R.event.remove(this,c,B&&B.selector?o:F)}}});if(!R.support.submitBubbles){R.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){R.event.add(this,"click.specialSubmit",function(t){var c=t.target,B=c.type;if((B==="submit"||B==="image")&&R(c).closest("form").length){t.liveFired=aB;return aZ("submit",this,arguments)}});R.event.add(this,"keypress.specialSubmit",function(t){var c=t.target,B=c.type;if((B==="text"||B==="password")&&R(c).closest("form").length&&t.keyCode===13){t.liveFired=aB;return aZ("submit",this,arguments)}})}else{return false}},teardown:function(){R.event.remove(this,".specialSubmit")}}}if(!R.support.changeBubbles){var al,b=function(t){var c=t.type,B=t.value;if(c==="radio"||c==="checkbox"){B=t.checked}else{if(c==="select-multiple"){B=t.selectedIndex>-1?R.map(t.options,function(E){return E.selected}).join("-"):""}else{if(t.nodeName.toLowerCase()==="select"){B=t.selectedIndex}}}return B},ag=function(t,c){var P=t.target,E,B;if(!(!M.test(P.nodeName)||P.readOnly)){E=R.data(P,"_change_data");B=b(P);if(t.type!=="focusout"||P.type!=="radio"){R.data(P,"_change_data",B)}if(!(E===aB||B===E)){if(E!=null||B){t.type="change";t.liveFired=aB;return R.event.trigger(t,c,P)}}}};R.event.special.change={filters:{focusout:ag,beforedeactivate:ag,click:function(t){var c=t.target,B=c.type;if(B==="radio"||B==="checkbox"||c.nodeName.toLowerCase()==="select"){return ag.call(this,t)}},keydown:function(t){var c=t.target,B=c.type;if(t.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||t.keyCode===32&&(B==="checkbox"||B==="radio")||B==="select-multiple"){return ag.call(this,t)}},beforeactivate:function(c){c=c.target;R.data(c,"_change_data",b(c))}},setup:function(){if(this.type==="file"){return false}for(var c in al){R.event.add(this,c+".specialChange",al[c])}return M.test(this.nodeName)},teardown:function(){R.event.remove(this,".specialChange");return M.test(this.nodeName)}};al=R.event.special.change.filters;al.focus=al.beforeactivate}I.addEventListener&&R.each({focus:"focusin",blur:"focusout"},function(t,c){function B(E){E=R.event.fix(E);E.type=c;return R.event.trigger(E,null,E.target)}R.event.special[c]={setup:function(){ae[c]++===0&&I.addEventListener(t,B,true)},teardown:function(){--ae[c]===0&&I.removeEventListener(t,B,true)}}});R.each(["bind","one"],function(t,c){R.fn[c]=function(U,T,S){if(typeof U==="object"){for(var P in U){this[c](P,T,U[P],S)}return this}if(R.isFunction(T)||T===false){S=T;T=aB}var B=c==="one"?R.proxy(S,function(V){R(this).unbind(V,B);return S.apply(this,arguments)}):S;if(U==="unload"&&c!=="one"){this.one(U,T,S)}else{P=0;for(var E=this.length;P<E;P++){R.event.add(this[P],U,B,T)}}return this}});R.fn.extend({unbind:function(t,c){if(typeof t==="object"&&!t.preventDefault){for(var E in t){this.unbind(E,t[E])}}else{E=0;for(var B=this.length;E<B;E++){R.event.remove(this[E],t,c)}}return this},delegate:function(t,c,E,B){return this.live(c,E,B,t)},undelegate:function(t,c,B){return arguments.length===0?this.unbind("live"):this.die(c,null,B,t)},trigger:function(t,c){return this.each(function(){R.event.trigger(t,c,this)})},triggerHandler:function(t,c){if(this[0]){var B=R.Event(t);B.preventDefault();B.stopPropagation();R.event.trigger(B,c,this[0]);return B.result}},toggle:function(t){for(var c=arguments,B=1;B<c.length;){R.proxy(t,c[B++])}return this.click(R.proxy(t,function(P){var E=(R.data(this,"lastToggle"+t.guid)||0)%B;R.data(this,"lastToggle"+t.guid,E+1);P.preventDefault();return c[E].apply(this,arguments)||false}))},hover:function(t,c){return this.mouseenter(t).mouseleave(c||t)}});var aS={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};R.each(["live","die"],function(t,c){R.fn[c]=function(X,W,V,U){var S,T=0,P,Y,B=U||this.selector;U=U?this:R(this.context);if(typeof X==="object"&&!X.preventDefault){for(S in X){U[c](S,W,X[S],B)}return this}if(R.isFunction(W)){V=W;W=aB}for(X=(X||"").split(" ");(S=X[T++])!=null;){P=aj.exec(S);Y="";if(P){Y=P[0];S=S.replace(aj,"")}if(S==="hover"){X.push("mouseenter"+Y,"mouseleave"+Y)}else{P=S;if(S==="focus"||S==="blur"){X.push(aS[S]+Y);S+=Y}else{S=(aS[S]||S)+Y}if(c==="live"){Y=0;for(var E=U.length;Y<E;Y++){R.event.add(U[Y],"live."+ai(S,B),{data:W,selector:B,handler:V,origType:S,origHandler:V,preType:P})}}else{U.unbind("live."+ai(S,B),V)}}}return this}});R.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(t,c){R.fn[c]=function(E,B){if(B==null){B=E;E=null}return arguments.length>0?this.bind(c,E,B):this.trigger(c)};if(R.attrFn){R.attrFn[c]=true}});ax.attachEvent&&!ax.addEventListener&&R(ax).bind("unload",function(){for(var t in R.cache){if(R.cache[t].handle){try{R.event.remove(R.cache[t].handle.elem)}catch(c){}}}});(function(){function ab(bb,ba,a8,a9,a7,a6){a7=0;for(var bd=a9.length;a7<bd;a7++){var bc=a9[a7];if(bc){var be=false;for(bc=bc[bb];bc;){if(bc.sizcache===a8){be=a9[bc.sizset];break}if(bc.nodeType===1&&!a6){bc.sizcache=a8;bc.sizset=a7}if(bc.nodeName.toLowerCase()===ba){be=bc;break}bc=bc[bb]}a9[a7]=be}}}function Y(bb,ba,a8,a9,a7,a6){a7=0;for(var bd=a9.length;a7<bd;a7++){var bc=a9[a7];if(bc){var be=false;for(bc=bc[bb];bc;){if(bc.sizcache===a8){be=a9[bc.sizset];break}if(bc.nodeType===1){if(!a6){bc.sizcache=a8;bc.sizset=a7}if(typeof ba!=="string"){if(bc===ba){be=true;break}}else{if(S.filter(ba,[bc]).length>0){be=bc;break}}}bc=bc[bb]}a9[a7]=be}}}var W=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,V=0,U=Object.prototype.toString,T=false,P=true;[0,0].sort(function(){P=false;return 0});var S=function(bd,bc,a9,ba){a9=a9||[];var a8=bc=bc||I;if(bc.nodeType!==1&&bc.nodeType!==9){return[]}if(!bd||typeof bd!=="string"){return a9}var a7,bi,bh,bj,bg,bf=true,be=S.isXML(bc),a6=[],bb=bd;do{W.exec("");if(a7=W.exec(bb)){bb=a7[3];a6.push(a7[1]);if(a7[2]){bj=a7[3];break}}}while(a7);if(a6.length>1&&aa.exec(bd)){if(a6.length===2&&E.relative[a6[0]]){bi=X(a6[0]+a6[1],bc)}else{for(bi=E.relative[a6[0]]?[bc]:S(a6.shift(),bc);a6.length;){bd=a6.shift();if(E.relative[bd]){bd+=a6.shift()}bi=X(bd,bi)}}}else{if(!ba&&a6.length>1&&bc.nodeType===9&&!be&&E.match.ID.test(a6[0])&&!E.match.ID.test(a6[a6.length-1])){a7=S.find(a6.shift(),bc,be);bc=a7.expr?S.filter(a7.expr,a7.set)[0]:a7.set[0]}if(bc){a7=ba?{expr:a6.pop(),set:t(ba)}:S.find(a6.pop(),a6.length===1&&(a6[0]==="~"||a6[0]==="+")&&bc.parentNode?bc.parentNode:bc,be);bi=a7.expr?S.filter(a7.expr,a7.set):a7.set;if(a6.length>0){bh=t(bi)}else{bf=false}for(;a6.length;){a7=bg=a6.pop();if(E.relative[bg]){a7=a6.pop()}else{bg=""}if(a7==null){a7=bc}E.relative[bg](bh,a7,be)}}else{bh=[]}}bh||(bh=bi);bh||S.error(bg||bd);if(U.call(bh)==="[object Array]"){if(bf){if(bc&&bc.nodeType===1){for(bd=0;bh[bd]!=null;bd++){if(bh[bd]&&(bh[bd]===true||bh[bd].nodeType===1&&S.contains(bc,bh[bd]))){a9.push(bi[bd])}}}else{for(bd=0;bh[bd]!=null;bd++){bh[bd]&&bh[bd].nodeType===1&&a9.push(bi[bd])}}}else{a9.push.apply(a9,bh)}}else{t(bh,a9)}if(bj){S(bj,a8,a9,ba);S.uniqueSort(a9)}return a9};S.uniqueSort=function(a7){if(a5){T=P;a7.sort(a5);if(T){for(var a6=1;a6<a7.length;a6++){a7[a6]===a7[a6-1]&&a7.splice(a6--,1)}}}return a7};S.matches=function(a7,a6){return S(a7,null,null,a6)};S.matchesSelector=function(a7,a6){return S(a6,null,null,[a7]).length>0};S.find=function(bb,ba,a8){var a9;if(!bb){return[]}for(var a7=0,a6=E.order.length;a7<a6;a7++){var bd,bc=E.order[a7];if(bd=E.leftMatch[bc].exec(bb)){var be=bd[1];bd.splice(1,1);if(be.substr(be.length-1)!=="\\"){bd[1]=(bd[1]||"").replace(/\\/g,"");a9=E.find[bc](bd,ba,a8);if(a9!=null){bb=bb.replace(E.match[bc],"");break}}}}a9||(a9=ba.getElementsByTagName("*"));return{set:a9,expr:bb}};S.filter=function(be,bd,a9,ba){for(var a8,a7,bj=be,bi=[],bk=bd,bh=bd&&bd[0]&&S.isXML(bd[0]);be&&bd.length;){for(var bg in E.filter){if((a8=E.leftMatch[bg].exec(be))!=null&&a8[2]){var bf,a6,bc=E.filter[bg];a6=a8[1];a7=false;a8.splice(1,1);if(a6.substr(a6.length-1)!=="\\"){if(bk===bi){bi=[]}if(E.preFilter[bg]){if(a8=E.preFilter[bg](a8,bk,a9,bi,ba,bh)){if(a8===true){continue}}else{a7=bf=true}}if(a8){for(var bb=0;(a6=bk[bb])!=null;bb++){if(a6){bf=bc(a6,a8,bb,bk);var bl=ba^!!bf;if(a9&&bf!=null){if(bl){a7=true}else{bk[bb]=false}}else{if(bl){bi.push(a6);a7=true}}}}}if(bf!==aB){a9||(bk=bi);be=be.replace(E.match[bg],"");if(!a7){return[]}break}}}}if(be===bj){if(a7==null){S.error(be)}else{break}}bj=be}return bk};S.error=function(a6){throw"Syntax error, unrecognized expression: "+a6};var E=S.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(a6){return a6.getAttribute("href")}},relative:{"+":function(a8,a7){var bb=typeof a7==="string",a6=bb&&!/\W/.test(a7);bb=bb&&!a6;if(a6){a7=a7.toLowerCase()}a6=0;for(var ba=a8.length,a9;a6<ba;a6++){if(a9=a8[a6]){for(;(a9=a9.previousSibling)&&a9.nodeType!==1;){}a8[a6]=bb||a9&&a9.nodeName.toLowerCase()===a7?a9||false:a9===a7}}bb&&S.filter(a7,a8,true)},">":function(a8,a7){var bb,a6=typeof a7==="string",ba=0,a9=a8.length;if(a6&&!/\W/.test(a7)){for(a7=a7.toLowerCase();ba<a9;ba++){if(bb=a8[ba]){bb=bb.parentNode;a8[ba]=bb.nodeName.toLowerCase()===a7?bb:false}}}else{for(;ba<a9;ba++){if(bb=a8[ba]){a8[ba]=a6?bb.parentNode:bb.parentNode===a7}}a6&&S.filter(a7,a8,true)}},"":function(a8,a7,bb){var a6,ba=V++,a9=Y;if(typeof a7==="string"&&!/\W/.test(a7)){a6=a7=a7.toLowerCase();a9=ab}a9("parentNode",a7,ba,a8,a6,bb)},"~":function(a8,a7,bb){var a6,ba=V++,a9=Y;if(typeof a7==="string"&&!/\W/.test(a7)){a6=a7=a7.toLowerCase();a9=ab}a9("previousSibling",a7,ba,a8,a6,bb)}},find:{ID:function(a7,a6,a8){if(typeof a6.getElementById!=="undefined"&&!a8){return(a7=a6.getElementById(a7[1]))&&a7.parentNode?[a7]:[]}},NAME:function(a8,a7){if(typeof a7.getElementsByName!=="undefined"){for(var bb=[],a6=a7.getElementsByName(a8[1]),ba=0,a9=a6.length;ba<a9;ba++){a6[ba].getAttribute("name")===a8[1]&&bb.push(a6[ba])}return bb.length===0?null:bb}},TAG:function(a7,a6){return a6.getElementsByTagName(a7[1])}},preFilter:{CLASS:function(a9,a8,bc,a6,bb,ba){a9=" "+a9[1].replace(/\\/g,"")+" ";if(ba){return a9}ba=0;for(var a7;(a7=a8[ba])!=null;ba++){if(a7){if(bb^(a7.className&&(" "+a7.className+" ").replace(/[\t\n]/g," ").indexOf(a9)>=0)){bc||a6.push(a7)}else{if(bc){a8[ba]=false}}}}return false},ID:function(a6){return a6[1].replace(/\\/g,"")},TAG:function(a6){return a6[1].toLowerCase()},CHILD:function(a7){if(a7[1]==="nth"){var a6=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a7[2]==="even"&&"2n"||a7[2]==="odd"&&"2n+1"||!/\D/.test(a7[2])&&"0n+"+a7[2]||a7[2]);a7[2]=a6[1]+(a6[2]||1)-0;a7[3]=a6[3]-0}a7[0]=V++;return a7},ATTR:function(a8,a7,bb,a6,ba,a9){a7=a8[1].replace(/\\/g,"");if(!a9&&E.attrMap[a7]){a8[1]=E.attrMap[a7]}if(a8[2]==="~="){a8[4]=" "+a8[4]+" "}return a8},PSEUDO:function(a8,a7,ba,a6,a9){if(a8[1]==="not"){if((W.exec(a8[3])||"").length>1||/^\w/.test(a8[3])){a8[3]=S(a8[3],null,null,a7)}else{a8=S.filter(a8[3],a7,ba,true^a9);ba||a6.push.apply(a6,a8);return false}}else{if(E.match.POS.test(a8[0])||E.match.CHILD.test(a8[0])){return true}}return a8},POS:function(a6){a6.unshift(true);return a6}},filters:{enabled:function(a6){return a6.disabled===false&&a6.type!=="hidden"},disabled:function(a6){return a6.disabled===true},checked:function(a6){return a6.checked===true},selected:function(a6){return a6.selected===true},parent:function(a6){return !!a6.firstChild},empty:function(a6){return !a6.firstChild},has:function(a7,a6,a8){return !!S(a8[3],a7).length},header:function(a6){return/h\d/i.test(a6.nodeName)},text:function(a6){return"text"===a6.type},radio:function(a6){return"radio"===a6.type},checkbox:function(a6){return"checkbox"===a6.type},file:function(a6){return"file"===a6.type},password:function(a6){return"password"===a6.type},submit:function(a6){return"submit"===a6.type},image:function(a6){return"image"===a6.type},reset:function(a6){return"reset"===a6.type},button:function(a6){return"button"===a6.type||a6.nodeName.toLowerCase()==="button"},input:function(a6){return/input|select|textarea|button/i.test(a6.nodeName)}},setFilters:{first:function(a7,a6){return a6===0},last:function(a8,a7,a9,a6){return a7===a6.length-1},even:function(a7,a6){return a6%2===0},odd:function(a7,a6){return a6%2===1},lt:function(a7,a6,a8){return a6<a8[3]-0},gt:function(a7,a6,a8){return a6>a8[3]-0},nth:function(a7,a6,a8){return a8[3]-0===a6},eq:function(a7,a6,a8){return a8[3]-0===a6}},filter:{PSEUDO:function(a8,a7,bb,a6){var ba=a7[1],a9=E.filters[ba];if(a9){return a9(a8,bb,a7,a6)}else{if(ba==="contains"){return(a8.textContent||a8.innerText||S.getText([a8])||"").indexOf(a7[3])>=0}else{if(ba==="not"){a7=a7[3];bb=0;for(a6=a7.length;bb<a6;bb++){if(a7[bb]===a8){return false}}return true}else{S.error("Syntax error, unrecognized expression: "+ba)}}}},CHILD:function(a9,a8){var bd=a8[1],a6=a9;switch(bd){case"only":case"first":for(;a6=a6.previousSibling;){if(a6.nodeType===1){return false}}if(bd==="first"){return true}a6=a9;case"last":for(;a6=a6.nextSibling;){if(a6.nodeType===1){return false}}return true;case"nth":bd=a8[2];var bb=a8[3];if(bd===1&&bb===0){return true}var ba=a8[0],a7=a9.parentNode;if(a7&&(a7.sizcache!==ba||!a9.nodeIndex)){var bc=0;for(a6=a7.firstChild;a6;a6=a6.nextSibling){if(a6.nodeType===1){a6.nodeIndex=++bc}}a7.sizcache=ba}a6=a9.nodeIndex-bb;return bd===0?a6===0:a6%bd===0&&a6/bd>=0}},ID:function(a7,a6){return a7.nodeType===1&&a7.getAttribute("id")===a6},TAG:function(a7,a6){return a6==="*"&&a7.nodeType===1||a7.nodeName.toLowerCase()===a6},CLASS:function(a7,a6){return(" "+(a7.className||a7.getAttribute("class"))+" ").indexOf(a6)>-1},ATTR:function(a8,a7){var bb=a7[1];bb=E.attrHandle[bb]?E.attrHandle[bb](a8):a8[bb]!=null?a8[bb]:a8.getAttribute(bb);var a6=bb+"",ba=a7[2],a9=a7[4];return bb==null?ba==="!=":ba==="="?a6===a9:ba==="*="?a6.indexOf(a9)>=0:ba==="~="?(" "+a6+" ").indexOf(a9)>=0:!a9?a6&&bb!==false:ba==="!="?a6!==a9:ba==="^="?a6.indexOf(a9)===0:ba==="$="?a6.substr(a6.length-a9.length)===a9:ba==="|="?a6===a9||a6.substr(0,a9.length+1)===a9+"-":false},POS:function(a8,a7,ba,a6){var a9=E.setFilters[a7[2]];if(a9){return a9(a8,ba,a7,a6)}}}},aa=E.match.POS,c=function(a7,a6){return"\\"+(a6-0+1)},B;for(B in E.match){E.match[B]=RegExp(E.match[B].source+/(?![^\[]*\])(?![^\(]*\))/.source);E.leftMatch[B]=RegExp(/(^(?:.|\r|\n)*?)/.source+E.match[B].source.replace(/\\(\d+)/g,c))}var t=function(a7,a6){a7=Array.prototype.slice.call(a7,0);if(a6){a6.push.apply(a6,a7);return a6}return a7};try{Array.prototype.slice.call(I.documentElement.childNodes,0)}catch(Z){t=function(a8,a7){var ba=0,a6=a7||[];if(U.call(a8)==="[object Array]"){Array.prototype.push.apply(a6,a8)}else{if(typeof a8.length==="number"){for(var a9=a8.length;ba<a9;ba++){a6.push(a8[ba])}}else{for(;a8[ba];ba++){a6.push(a8[ba])}}}return a6}}var a5,a4;if(I.documentElement.compareDocumentPosition){a5=function(a7,a6){if(a7===a6){T=true;return 0}if(!a7.compareDocumentPosition||!a6.compareDocumentPosition){return a7.compareDocumentPosition?-1:1}return a7.compareDocumentPosition(a6)&4?-1:1}}else{a5=function(a9,a8){var bc,a6,bb=[],ba=[];bc=a9.parentNode;a6=a8.parentNode;var a7=bc;if(a9===a8){T=true;return 0}else{if(bc===a6){return a4(a9,a8)}else{if(bc){if(!a6){return 1}}else{return -1}}}for(;a7;){bb.unshift(a7);a7=a7.parentNode}for(a7=a6;a7;){ba.unshift(a7);a7=a7.parentNode}bc=bb.length;a6=ba.length;for(a7=0;a7<bc&&a7<a6;a7++){if(bb[a7]!==ba[a7]){return a4(bb[a7],ba[a7])}}return a7===bc?a4(a9,ba[a7],-1):a4(bb[a7],a8,1)};a4=function(a7,a6,a8){if(a7===a6){return a8}for(a7=a7.nextSibling;a7;){if(a7===a6){return -1}a7=a7.nextSibling}return 1}}S.getText=function(a8){for(var a7="",a9,a6=0;a8[a6];a6++){a9=a8[a6];if(a9.nodeType===3||a9.nodeType===4){a7+=a9.nodeValue}else{if(a9.nodeType!==8){a7+=S.getText(a9.childNodes)}}}return a7};(function(){var a7=I.createElement("div"),a6="script"+(new Date).getTime(),a8=I.documentElement;a7.innerHTML="<a name='"+a6+"'/>";a8.insertBefore(a7,a8.firstChild);if(I.getElementById(a6)){E.find.ID=function(a9,bb,ba){if(typeof bb.getElementById!=="undefined"&&!ba){return(bb=bb.getElementById(a9[1]))?bb.id===a9[1]||typeof bb.getAttributeNode!=="undefined"&&bb.getAttributeNode("id").nodeValue===a9[1]?[bb]:aB:[]}};E.filter.ID=function(a9,bb){var ba=typeof a9.getAttributeNode!=="undefined"&&a9.getAttributeNode("id");return a9.nodeType===1&&ba&&ba.nodeValue===bb}}a8.removeChild(a7);a8=a7=null})();(function(){var a6=I.createElement("div");a6.appendChild(I.createComment(""));if(a6.getElementsByTagName("*").length>0){E.find.TAG=function(a8,bb){var a7=bb.getElementsByTagName(a8[1]);if(a8[1]==="*"){for(var ba=[],a9=0;a7[a9];a9++){a7[a9].nodeType===1&&ba.push(a7[a9])}a7=ba}return a7}}a6.innerHTML="<a href='#'></a>";if(a6.firstChild&&typeof a6.firstChild.getAttribute!=="undefined"&&a6.firstChild.getAttribute("href")!=="#"){E.attrHandle.href=function(a7){return a7.getAttribute("href",2)}}a6=null})();I.querySelectorAll&&function(){var a7=S,a6=I.createElement("div");a6.innerHTML="<p class='TEST'></p>";if(!(a6.querySelectorAll&&a6.querySelectorAll(".TEST").length===0)){S=function(a9,bd,bc,ba){bd=bd||I;a9=a9.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!ba&&!S.isXML(bd)){if(bd.nodeType===9){try{return t(bd.querySelectorAll(a9),bc)}catch(bg){}}else{if(bd.nodeType===1&&bd.nodeName.toLowerCase()!=="object"){var bb=bd.getAttribute("id"),bf=bb||"__sizzle__";bb||bd.setAttribute("id",bf);try{return t(bd.querySelectorAll("#"+bf+" "+a9),bc)}catch(be){}finally{bb||bd.removeAttribute("id")}}}}return a7(a9,bd,bc,ba)};for(var a8 in a7){S[a8]=a7[a8]}a6=null}}();(function(){var a8=I.documentElement,a7=a8.matchesSelector||a8.mozMatchesSelector||a8.webkitMatchesSelector||a8.msMatchesSelector,a9=false;try{a7.call(I.documentElement,"[test!='']:sizzle")}catch(a6){a9=true}if(a7){S.matchesSelector=function(bc,bb){bb=bb.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!S.isXML(bc)){try{if(a9||!E.match.PSEUDO.test(bb)&&!/!=/.test(bb)){return a7.call(bc,bb)}}catch(ba){}}return S(bb,null,null,[bc]).length>0}}})();(function(){var a6=I.createElement("div");a6.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!a6.getElementsByClassName||a6.getElementsByClassName("e").length===0)){a6.lastChild.className="e";if(a6.getElementsByClassName("e").length!==1){E.order.splice(1,0,"CLASS");E.find.CLASS=function(a8,a9,a7){if(typeof a9.getElementsByClassName!=="undefined"&&!a7){return a9.getElementsByClassName(a8[1])}};a6=null}}})();S.contains=I.documentElement.contains?function(a7,a6){return a7!==a6&&(a7.contains?a7.contains(a6):true)}:I.documentElement.compareDocumentPosition?function(a7,a6){return !!(a7.compareDocumentPosition(a6)&16)}:function(){return false};S.isXML=function(a6){return(a6=(a6?a6.ownerDocument||a6:0).documentElement)?a6.nodeName!=="HTML":false};var X=function(a9,a8){for(var bc,a6=[],bb="",ba=a8.nodeType?[a8]:a8;bc=E.match.PSEUDO.exec(a9);){bb+=bc[0];a9=a9.replace(E.match.PSEUDO,"")}a9=E.relative[a9]?a9+"*":a9;bc=0;for(var a7=ba.length;bc<a7;bc++){S(a9,ba[bc],a6)}return S.filter(bb,a6)};R.find=S;R.expr=S.selectors;R.expr[":"]=R.expr.filters;R.unique=S.uniqueSort;R.text=S.getText;R.isXMLDoc=S.isXML;R.contains=S.contains})();var aU=/Until$/,aA=/^(?:parents|prevUntil|prevAll)/,aH=/,/,aR=/^.[^:#\[\.,]*$/,ap=Array.prototype.slice,J=R.expr.match.POS;R.fn.extend({find:function(B){for(var c=this.pushStack("","find",B),T=0,S=0,P=this.length;S<P;S++){T=c.length;R.find(B,this[S],c);if(S>0){for(var E=T;E<c.length;E++){for(var t=0;t<T;t++){if(c[t]===c[E]){c.splice(E--,1);break}}}}}return c},has:function(t){var c=R(t);return this.filter(function(){for(var E=0,B=c.length;E<B;E++){if(R.contains(this,c[E])){return true}}})},not:function(c){return this.pushStack(aM(this,c,false),"not",c)},filter:function(c){return this.pushStack(aM(this,c,true),"filter",c)},is:function(c){return !!c&&R.filter(c,this).length>0},closest:function(V,U){var T=[],S,P,E=this[0];if(R.isArray(V)){var t,B={},c=1;if(E&&V.length){S=0;for(P=V.length;S<P;S++){t=V[S];B[t]||(B[t]=R.expr.match.POS.test(t)?R(t,U||this.context):t)}for(;E&&E.ownerDocument&&E!==U;){for(t in B){S=B[t];if(S.jquery?S.index(E)>-1:R(E).is(S)){T.push({selector:t,elem:E,level:c})}}E=E.parentNode;c++}}return T}t=J.test(V)?R(V,U||this.context):null;S=0;for(P=this.length;S<P;S++){for(E=this[S];E;){if(t?t.index(E)>-1:R.find.matchesSelector(E,V)){T.push(E);break}else{E=E.parentNode;if(!E||!E.ownerDocument||E===U){break}}}}T=T.length>1?R.unique(T):T;return this.pushStack(T,"closest",V)},index:function(c){if(!c||typeof c==="string"){return R.inArray(this[0],c?R(c):this.parent().children())}return R.inArray(c.jquery?c[0]:c,this)},add:function(t,c){var E=typeof t==="string"?R(t,c||this.context):R.makeArray(t),B=R.merge(this.get(),E);return this.pushStack(!E[0]||!E[0].parentNode||E[0].parentNode.nodeType===11||!B[0]||!B[0].parentNode||B[0].parentNode.nodeType===11?B:R.unique(B))},andSelf:function(){return this.add(this.prevObject)}});R.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return R.dir(c,"parentNode")},parentsUntil:function(t,c,B){return R.dir(t,"parentNode",B)},next:function(c){return R.nth(c,2,"nextSibling")},prev:function(c){return R.nth(c,2,"previousSibling")},nextAll:function(c){return R.dir(c,"nextSibling")},prevAll:function(c){return R.dir(c,"previousSibling")},nextUntil:function(t,c,B){return R.dir(t,"nextSibling",B)},prevUntil:function(t,c,B){return R.dir(t,"previousSibling",B)},siblings:function(c){return R.sibling(c.parentNode.firstChild,c)},children:function(c){return R.sibling(c.firstChild)},contents:function(c){return R.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:R.makeArray(c.childNodes)}},function(t,c){R.fn[t]=function(P,E){var B=R.map(this,c,P);aU.test(t)||(E=P);if(E&&typeof E==="string"){B=R.filter(E,B)}B=this.length>1?R.unique(B):B;if((this.length>1||aH.test(E))&&aA.test(t)){B=B.reverse()}return this.pushStack(B,t,ap.call(arguments).join(","))}});R.extend({filter:function(t,c,B){if(B){t=":not("+t+")"}return c.length===1?R.find.matchesSelector(c[0],t)?[c[0]]:[]:R.find.matches(t,c)},dir:function(t,c,E){var B=[];for(t=t[c];t&&t.nodeType!==9&&(E===aB||t.nodeType!==1||!R(t).is(E));){t.nodeType===1&&B.push(t);t=t[c]}return B},nth:function(t,c,E){c=c||1;for(var B=0;t;t=t[E]){if(t.nodeType===1&&++B===c){break}}return t},sibling:function(t,c){for(var B=[];t;t=t.nextSibling){t.nodeType===1&&t!==c&&B.push(t)}return B}});var aF=/ jQuery\d+="(?:\d+|null)"/g,aO=/^\s+/,aX=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,aK=/<([\w:]+)/,u=/<tbody/i,f=/<|&#?\w+;/,av=/<(?:script|object|embed|option|style)/i,N=/checked\s*(?:[^=]|=\s*.checked.)/i,aV=/\=([^="'>\s]+\/)>/g,aq={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,"",""]};aq.optgroup=aq.option;aq.tbody=aq.tfoot=aq.colgroup=aq.caption=aq.thead;aq.th=aq.td;if(!R.support.htmlSerialize){aq._default=[1,"div<div>","</div>"]}R.fn.extend({text:function(c){if(R.isFunction(c)){return this.each(function(t){var B=R(this);B.text(c.call(this,t,B.text()))})}if(typeof c!=="object"&&c!==aB){return this.empty().append((this[0]&&this[0].ownerDocument||I).createTextNode(c))}return R.text(this)},wrapAll:function(t){if(R.isFunction(t)){return this.each(function(B){R(this).wrapAll(t.call(this,B))})}if(this[0]){var c=R(t,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var B=this;B.firstChild&&B.firstChild.nodeType===1;){B=B.firstChild}return B}).append(this)}return this},wrapInner:function(c){if(R.isFunction(c)){return this.each(function(t){R(this).wrapInner(c.call(this,t))})}return this.each(function(){var t=R(this),B=t.contents();B.length?B.wrapAll(c):t.append(c)})},wrap:function(c){return this.each(function(){R(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){R.nodeName(this,"body")||R(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(t){this.parentNode.insertBefore(t,this)})}else{if(arguments.length){var c=R(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(t){this.parentNode.insertBefore(t,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,R(arguments[0]).toArray());return c}}},remove:function(t,c){for(var E=0,B;(B=this[E])!=null;E++){if(!t||R.filter(t,[B]).length){if(!c&&B.nodeType===1){R.cleanData(B.getElementsByTagName("*"));R.cleanData([B])}B.parentNode&&B.parentNode.removeChild(B)}}return this},empty:function(){for(var t=0,c;(c=this[t])!=null;t++){for(c.nodeType===1&&R.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(t){var c=this.map(function(){if(!R.support.noCloneEvent&&!R.isXMLDoc(this)){var E=this.outerHTML,B=this.ownerDocument;if(!E){E=B.createElement("div");E.appendChild(this.cloneNode(true));E=E.innerHTML}return R.clean([E.replace(aF,"").replace(aV,'="$1">').replace(aO,"")],B)[0]}else{return this.cloneNode(true)}});if(t===true){ay(this,c);ay(this.find("*"),c.find("*"))}return c},html:function(t){if(t===aB){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aF,""):null}else{if(typeof t==="string"&&!av.test(t)&&(R.support.leadingWhitespace||!aO.test(t))&&!aq[(aK.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(aX,"<$1></$2>");try{for(var c=0,E=this.length;c<E;c++){if(this[c].nodeType===1){R.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=t}}}catch(B){this.empty().append(t)}}else{R.isFunction(t)?this.each(function(S){var P=R(this);P.html(t.call(this,S,P.html()))}):this.empty().append(t)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(R.isFunction(c)){return this.each(function(t){var E=R(this),B=E.html();E.replaceWith(c.call(this,t,B))})}if(typeof c!=="string"){c=R(c).detach()}return this.each(function(){var t=this.nextSibling,B=this.parentNode;R(this).remove();t?R(t).before(c):R(B).append(c)})}else{return this.pushStack(R(R.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(V,U,T){var S,P,E,t=V[0],B=[];if(!R.support.checkClone&&arguments.length===3&&typeof t==="string"&&N.test(t)){return this.each(function(){R(this).domManip(V,U,T,true)})}if(R.isFunction(t)){return this.each(function(W){var X=R(this);V[0]=t.call(this,W,U?X.html():aB);X.domManip(V,U,T)})}if(this[0]){S=t&&t.parentNode;S=R.support.parentNode&&S&&S.nodeType===11&&S.childNodes.length===this.length?{fragment:S}:R.buildFragment(V,this,B);E=S.fragment;if(P=E.childNodes.length===1?E=E.firstChild:E.firstChild){U=U&&R.nodeName(P,"tr");P=0;for(var c=this.length;P<c;P++){T.call(U?R.nodeName(this[P],"table")?this[P].getElementsByTagName("tbody")[0]||this[P].appendChild(this[P].ownerDocument.createElement("tbody")):this[P]:this[P],P>0||S.cacheable||this.length>1?E.cloneNode(true):E)}}B.length&&R.each(B,aE)}return this}});R.buildFragment=function(t,c,S){var P,E,B;c=c&&c[0]?c[0].ownerDocument||c[0]:I;if(t.length===1&&typeof t[0]==="string"&&t[0].length<512&&c===I&&!av.test(t[0])&&(R.support.checkClone||!N.test(t[0]))){E=true;if(B=R.fragments[t[0]]){if(B!==1){P=B}}}if(!P){P=c.createDocumentFragment();R.clean(t,c,P,S)}if(E){R.fragments[t[0]]=B?P:1}return{fragment:P,cacheable:E}};R.fragments={};R.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,c){R.fn[t]=function(T){var S=[];T=R(T);var P=this.length===1&&this[0].parentNode;if(P&&P.nodeType===11&&P.childNodes.length===1&&T.length===1){T[c](this[0]);return this}else{P=0;for(var E=T.length;P<E;P++){var B=(P>0?this.clone(true):this).get();R(T[P])[c](B);S=S.concat(B)}return this.pushStack(S,t,T.selector)}}});R.extend({clean:function(X,V,U,T){V=V||I;if(typeof V.createElement==="undefined"){V=V.ownerDocument||V[0]&&V[0].ownerDocument||I}for(var S=[],P=0,B;(B=X[P])!=null;P++){if(typeof B==="number"){B+=""}if(B){if(typeof B==="string"&&!f.test(B)){B=V.createTextNode(B)}else{if(typeof B==="string"){B=B.replace(aX,"<$1></$2>");var E=(aK.exec(B)||["",""])[1].toLowerCase(),t=aq[E]||aq._default,W=t[0],c=V.createElement("div");for(c.innerHTML=t[1]+B+t[2];W--;){c=c.lastChild}if(!R.support.tbody){W=u.test(B);E=E==="table"&&!W?c.firstChild&&c.firstChild.childNodes:t[1]==="<table>"&&!W?c.childNodes:[];for(t=E.length-1;t>=0;--t){R.nodeName(E[t],"tbody")&&!E[t].childNodes.length&&E[t].parentNode.removeChild(E[t])}}!R.support.leadingWhitespace&&aO.test(B)&&c.insertBefore(V.createTextNode(aO.exec(B)[0]),c.firstChild);B=c.childNodes}}if(B.nodeType){S.push(B)}else{S=R.merge(S,B)}}}if(U){for(P=0;S[P];P++){if(T&&R.nodeName(S[P],"script")&&(!S[P].type||S[P].type.toLowerCase()==="text/javascript")){T.push(S[P].parentNode?S[P].parentNode.removeChild(S[P]):S[P])}else{S[P].nodeType===1&&S.splice.apply(S,[P+1,0].concat(R.makeArray(S[P].getElementsByTagName("script"))));U.appendChild(S[P])}}}return S},cleanData:function(V){for(var U,T,S=R.cache,P=R.event.special,E=R.support.deleteExpando,t=0,B;(B=V[t])!=null;t++){if(!(B.nodeName&&R.noData[B.nodeName.toLowerCase()])){if(T=B[R.expando]){if((U=S[T])&&U.events){for(var c in U.events){P[c]?R.event.remove(B,c):R.removeEvent(B,c,U.handle)}}if(E){delete B[R.expando]}else{B.removeAttribute&&B.removeAttribute(R.expando)}delete S[T]}}}}});var y=/alpha\([^)]*\)/i,aJ=/opacity=([^)]*)/,at=/-([a-z])/ig,L=/([A-Z])/g,j=/^-?\d+(?:px)?$/i,w=/^-?\d/,h={position:"absolute",visibility:"hidden",display:"block"},af=["Left","Right"],G=["Top","Bottom"],ak,a0,aI,aY=function(t,c){return c.toUpperCase()};R.fn.css=function(t,c){if(arguments.length===2&&c===aB){return this}return R.access(this,t,c,true,function(P,E,B){return B!==aB?R.style(P,E,B):R.css(P,E)})};R.extend({cssHooks:{opacity:{get:function(t,c){if(c){var B=ak(t,"opacity","opacity");return B===""?"1":B}else{return t.style.opacity}}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":R.support.cssFloat?"cssFloat":"styleFloat"},style:function(V,U,T,S){if(!(!V||V.nodeType===3||V.nodeType===8||!V.style)){var P,E=R.camelCase(U),t=V.style,B=R.cssHooks[E];U=R.cssProps[E]||E;if(T!==aB){if(!(typeof T==="number"&&isNaN(T)||T==null)){if(typeof T==="number"&&!R.cssNumber[E]){T+="px"}if(!B||!("set" in B)||(T=B.set(V,T))!==aB){try{t[U]=T}catch(c){}}}}else{if(B&&"get" in B&&(P=B.get(V,false,S))!==aB){return P}return t[U]}}},css:function(t,c,S){var P,E=R.camelCase(c),B=R.cssHooks[E];c=R.cssProps[E]||E;if(B&&"get" in B&&(P=B.get(t,true,S))!==aB){return P}else{if(ak){return ak(t,c,E)}}},swap:function(t,c,P){var E={},B;for(B in c){E[B]=t.style[B];t.style[B]=c[B]}P.call(t);for(B in c){t.style[B]=E[B]}},camelCase:function(c){return c.replace(at,aY)}});R.curCSS=R.css;R.each(["height","width"],function(t,c){R.cssHooks[c]={get:function(S,P,E){var B;if(P){if(S.offsetWidth!==0){B=Q(S,c,E)}else{R.swap(S,h,function(){B=Q(S,c,E)})}if(B<=0){B=ak(S,c,c);if(B==="0px"&&aI){B=aI(S,c,c)}if(B!=null){return B===""||B==="auto"?"0px":B}}if(B<0||B==null){B=S.style[c];return B===""||B==="auto"?"0px":B}return typeof B==="string"?B:B+"px"}},set:function(E,B){if(j.test(B)){B=parseFloat(B);if(B>=0){return B+"px"}}else{return B}}}});if(!R.support.opacity){R.cssHooks.opacity={get:function(t,c){return aJ.test((c&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(t,c){var P=t.style;P.zoom=1;var E=R.isNaN(c)?"":"alpha(opacity="+c*100+")",B=P.filter||"";P.filter=y.test(B)?B.replace(y,E):P.filter+" "+E}}}if(I.defaultView&&I.defaultView.getComputedStyle){a0=function(t,c,E){var B;E=E.replace(L,"-$1").toLowerCase();if(!(c=t.ownerDocument.defaultView)){return aB}if(c=c.getComputedStyle(t,null)){B=c.getPropertyValue(E);if(B===""&&!R.contains(t.ownerDocument.documentElement,t)){B=R.style(t,E)}}return B}}if(I.documentElement.currentStyle){aI=function(t,c){var S,P,E=t.currentStyle&&t.currentStyle[c],B=t.style;if(!j.test(E)&&w.test(E)){S=B.left;P=t.runtimeStyle.left;t.runtimeStyle.left=t.currentStyle.left;B.left=c==="fontSize"?"1em":E||0;E=B.pixelLeft+"px";B.left=S;t.runtimeStyle.left=P}return E===""?"auto":E}}ak=a0||aI;if(R.expr&&R.expr.filters){R.expr.filters.hidden=function(t){var c=t.offsetHeight;return t.offsetWidth===0&&c===0||!R.support.reliableHiddenOffsets&&(t.style.display||R.css(t,"display"))==="none"};R.expr.filters.visible=function(c){return !R.expr.filters.hidden(c)}}var aL=R.now(),aw=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,O=/^(?:select|textarea)/i,z=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,k=/^(?:GET|HEAD)$/,q=/\[\]$/,an=/\=\?(&|$)/,x=/\?/,a1=/([?&])_=[^&]*/,aP=/^(\w+:)?\/\/([^\/?#]+)/,aC=/%20/g,ad=/#.*$/,aN=R.fn.load;R.fn.extend({load:function(t,c,S){if(typeof t!=="string"&&aN){return aN.apply(this,arguments)}else{if(!this.length){return this}}var P=t.indexOf(" ");if(P>=0){var E=t.slice(P,t.length);t=t.slice(0,P)}P="GET";if(c){if(R.isFunction(c)){S=c;c=null}else{if(typeof c==="object"){c=R.param(c,R.ajaxSettings.traditional);P="POST"}}}var B=this;R.ajax({url:t,type:P,dataType:"html",data:c,complete:function(T,U){if(U==="success"||U==="notmodified"){B.html(E?R("<div>").append(T.responseText.replace(aw,"")).find(E):T.responseText)}S&&B.each(S,[T.responseText,U,T])}});return this},serialize:function(){return R.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?R.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||O.test(this.nodeName)||z.test(this.type))}).map(function(t,c){var B=R(this).val();return B==null?null:R.isArray(B)?R.map(B,function(E){return{name:c.name,value:E}}):{name:c.name,value:B}}).get()}});R.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,c){R.fn[c]=function(B){return this.bind(c,B)}});R.extend({get:function(t,c,E,B){if(R.isFunction(c)){B=B||E;E=c;c=null}return R.ajax({type:"GET",url:t,data:c,success:E,dataType:B})},getScript:function(t,c){return R.get(t,null,c,"script")},getJSON:function(t,c,B){return R.get(t,c,B,"json")},post:function(t,c,E,B){if(R.isFunction(c)){B=B||E;E=c;c={}}return R.ajax({type:"POST",url:t,data:c,success:E,dataType:B})},ajaxSetup:function(c){R.extend(R.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new ax.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a8){var a7=R.extend(true,{},R.ajaxSettings,a8),a6,a5,a4,aa=a7.type.toUpperCase(),X=k.test(aa);a7.url=a7.url.replace(ad,"");a7.context=a8&&a8.context!=null?a8.context:a7;if(a7.data&&a7.processData&&typeof a7.data!=="string"){a7.data=R.param(a7.data,a7.traditional)}if(a7.dataType==="jsonp"){if(aa==="GET"){an.test(a7.url)||(a7.url+=(x.test(a7.url)?"&":"?")+(a7.jsonp||"callback")+"=?")}else{if(!a7.data||!an.test(a7.data)){a7.data=(a7.data?a7.data+"&":"")+(a7.jsonp||"callback")+"=?"}}a7.dataType="json"}if(a7.dataType==="json"&&(a7.data&&an.test(a7.data)||an.test(a7.url))){a6=a7.jsonpCallback||"jsonp"+aL++;if(a7.data){a7.data=(a7.data+"").replace(an,"="+a6+"$1")}a7.url=a7.url.replace(an,"="+a6+"$1");a7.dataType="script";var Y=ax[a6];ax[a6]=function(a9){if(R.isFunction(Y)){Y(a9)}else{ax[a6]=aB;try{delete ax[a6]}catch(ba){}}a4=a9;R.handleSuccess(a7,P,a5,a4);R.handleComplete(a7,P,a5,a4);T&&T.removeChild(U)}}if(a7.dataType==="script"&&a7.cache===null){a7.cache=false}if(a7.cache===false&&X){var V=R.now(),E=a7.url.replace(a1,"$1_="+V);a7.url=E+(E===a7.url?(x.test(a7.url)?"&":"?")+"_="+V:"")}if(a7.data&&X){a7.url+=(x.test(a7.url)?"&":"?")+a7.data}a7.global&&R.active++===0&&R.event.trigger("ajaxStart");V=(V=aP.exec(a7.url))&&(V[1]&&V[1].toLowerCase()!==location.protocol||V[2].toLowerCase()!==location.host);if(a7.dataType==="script"&&aa==="GET"&&V){var T=I.getElementsByTagName("head")[0]||I.documentElement,U=I.createElement("script");if(a7.scriptCharset){U.charset=a7.scriptCharset}U.src=a7.url;if(!a6){var S=false;U.onload=U.onreadystatechange=function(){if(!S&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){S=true;R.handleSuccess(a7,P,a5,a4);R.handleComplete(a7,P,a5,a4);U.onload=U.onreadystatechange=null;T&&U.parentNode&&T.removeChild(U)}}}T.insertBefore(U,T.firstChild);return aB}var t=false,P=a7.xhr();if(P){a7.username?P.open(aa,a7.url,a7.async,a7.username,a7.password):P.open(aa,a7.url,a7.async);try{if(a7.data!=null&&!X||a8&&a8.contentType){P.setRequestHeader("Content-Type",a7.contentType)}if(a7.ifModified){R.lastModified[a7.url]&&P.setRequestHeader("If-Modified-Since",R.lastModified[a7.url]);R.etag[a7.url]&&P.setRequestHeader("If-None-Match",R.etag[a7.url])}V||P.setRequestHeader("X-Requested-With","XMLHttpRequest");P.setRequestHeader("Accept",a7.dataType&&a7.accepts[a7.dataType]?a7.accepts[a7.dataType]+", */*; q=0.01":a7.accepts._default)}catch(B){}if(a7.beforeSend&&a7.beforeSend.call(a7.context,P,a7)===false){a7.global&&R.active--===1&&R.event.trigger("ajaxStop");P.abort();return false}a7.global&&R.triggerGlobal(a7,"ajaxSend",[P,a7]);var c=P.onreadystatechange=function(a9){if(!P||P.readyState===0||a9==="abort"){t||R.handleComplete(a7,P,a5,a4);t=true;if(P){P.onreadystatechange=R.noop}}else{if(!t&&P&&(P.readyState===4||a9==="timeout")){t=true;P.onreadystatechange=R.noop;a5=a9==="timeout"?"timeout":!R.httpSuccess(P)?"error":a7.ifModified&&R.httpNotModified(P,a7.url)?"notmodified":"success";var bb;if(a5==="success"){try{a4=R.httpData(P,a7.dataType,a7)}catch(ba){a5="parsererror";bb=ba}}if(a5==="success"||a5==="notmodified"){a6||R.handleSuccess(a7,P,a5,a4)}else{R.handleError(a7,P,a5,bb)}a6||R.handleComplete(a7,P,a5,a4);a9==="timeout"&&P.abort();if(a7.async){P=null}}}};try{var ab=P.abort;P.abort=function(){P&&Function.prototype.call.call(ab,P);c("abort")}}catch(Z){}a7.async&&a7.timeout>0&&setTimeout(function(){P&&!t&&c("timeout")},a7.timeout);try{P.send(X||a7.data==null?null:a7.data)}catch(W){R.handleError(a7,P,null,W);R.handleComplete(a7,P,a5,a4)}a7.async||c();return P}},param:function(t,c){var P=[],E=function(T,S){S=R.isFunction(S)?S():S;P[P.length]=encodeURIComponent(T)+"="+encodeURIComponent(S)};if(c===aB){c=R.ajaxSettings.traditional}if(R.isArray(t)||t.jquery){R.each(t,function(){E(this.name,this.value)})}else{for(var B in t){v(B,t[B],c,E)}}return P.join("&").replace(aC,"+")}});R.extend({active:0,lastModified:{},etag:{},handleError:function(t,c,E,B){t.error&&t.error.call(t.context,c,E,B);t.global&&R.triggerGlobal(t,"ajaxError",[c,t,B])},handleSuccess:function(t,c,E,B){t.success&&t.success.call(t.context,B,E,c);t.global&&R.triggerGlobal(t,"ajaxSuccess",[c,t])},handleComplete:function(t,c,B){t.complete&&t.complete.call(t.context,c,B);t.global&&R.triggerGlobal(t,"ajaxComplete",[c,t]);t.global&&R.active--===1&&R.event.trigger("ajaxStop")},triggerGlobal:function(t,c,B){(t.context&&t.context.url==null?R(t.context):R.event).trigger(c,B)},httpSuccess:function(t){try{return !t.status&&location.protocol==="file:"||t.status>=200&&t.status<300||t.status===304||t.status===1223}catch(c){}return false},httpNotModified:function(t,c){var E=t.getResponseHeader("Last-Modified"),B=t.getResponseHeader("Etag");if(E){R.lastModified[c]=E}if(B){R.etag[c]=B}return t.status===304},httpData:function(t,c,P){var E=t.getResponseHeader("content-type")||"",B=c==="xml"||!c&&E.indexOf("xml")>=0;t=B?t.responseXML:t.responseText;B&&t.documentElement.nodeName==="parsererror"&&R.error("parsererror");if(P&&P.dataFilter){t=P.dataFilter(t,c)}if(typeof t==="string"){if(c==="json"||!c&&E.indexOf("json")>=0){t=R.parseJSON(t)}else{if(c==="script"||!c&&E.indexOf("javascript")>=0){R.globalEval(t)}}}return t}});if(ax.ActiveXObject){R.ajaxSettings.xhr=function(){if(ax.location.protocol!=="file:"){try{return new ax.XMLHttpRequest}catch(t){}}try{return new ax.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}R.support.ajax=!!R.ajaxSettings.xhr();var g={},D=/^(?:toggle|show|hide)$/,n=/^([+\-]=)?([\d+.\-]+)(.*)$/,ar,A=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];R.fn.extend({show:function(t,c,E){if(t||t===0){return this.animate(ao("show",3),t,c,E)}else{E=0;for(var B=this.length;E<B;E++){t=this[E];c=t.style.display;if(!R.data(t,"olddisplay")&&c==="none"){c=t.style.display=""}c===""&&R.css(t,"display")==="none"&&R.data(t,"olddisplay",l(t.nodeName))}for(E=0;E<B;E++){t=this[E];c=t.style.display;if(c===""||c==="none"){t.style.display=R.data(t,"olddisplay")||""}}return this}},hide:function(t,c,B){if(t||t===0){return this.animate(ao("hide",3),t,c,B)}else{t=0;for(c=this.length;t<c;t++){B=R.css(this[t],"display");B!=="none"&&R.data(this[t],"olddisplay",B)}for(t=0;t<c;t++){this[t].style.display="none"}return this}},_toggle:R.fn.toggle,toggle:function(t,c,E){var B=typeof t==="boolean";if(R.isFunction(t)&&R.isFunction(c)){this._toggle.apply(this,arguments)}else{t==null||B?this.each(function(){var P=B?t:R(this).is(":hidden");R(this)[P?"show":"hide"]()}):this.animate(ao("toggle",3),t,c,E)}return this},fadeTo:function(t,c,E,B){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},t,E,B)},animate:function(t,c,P,E){var B=R.speed(c,P,E);if(R.isEmptyObject(t)){return this.each(B.complete)}return this[B.queue===false?"each":"queue"](function(){var V=R.extend({},B),T,U=this.nodeType===1,X=U&&R(this).is(":hidden"),S=this;for(T in t){var W=R.camelCase(T);if(T!==W){t[W]=t[T];delete t[T];T=W}if(t[T]==="hide"&&X||t[T]==="show"&&!X){return V.complete.call(this)}if(U&&(T==="height"||T==="width")){V.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(R.css(this,"display")==="inline"&&R.css(this,"float")==="none"){if(R.support.inlineBlockNeedsLayout){if(l(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}else{this.style.display="inline-block"}}}if(R.isArray(t[T])){(V.specialEasing=V.specialEasing||{})[T]=t[T][1];t[T]=t[T][0]}}if(V.overflow!=null){this.style.overflow="hidden"}V.curAnim=R.extend({},t);R.each(t,function(Z,a6){var ab=new R.fx(S,V,Z);if(D.test(a6)){ab[a6==="toggle"?X?"show":"hide":a6](t)}else{var aa=n.exec(a6),a4=ab.cur()||0;if(aa){var Y=parseFloat(aa[2]),a5=aa[3]||"px";if(a5!=="px"){R.style(S,Z,(Y||1)+a5);a4=(Y||1)/ab.cur()*a4;R.style(S,Z,a4+a5)}if(aa[1]){Y=(aa[1]==="-="?-1:1)*Y+a4}ab.custom(a4,Y,a5)}else{ab.custom(a4,a6,"")}}});return true})},stop:function(t,c){var B=R.timers;t&&this.queue([]);this.each(function(){for(var E=B.length-1;E>=0;E--){if(B[E].elem===this){c&&B[E](true);B.splice(E,1)}}});c||this.dequeue();return this}});R.each({slideDown:ao("show",1),slideUp:ao("hide",1),slideToggle:ao("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,c){R.fn[t]=function(P,E,B){return this.animate(c,P,E,B)}});R.extend({speed:function(t,c,E){var B=t&&typeof t==="object"?R.extend({},t):{complete:E||!E&&c||R.isFunction(t)&&t,duration:t,easing:E&&c||c&&!R.isFunction(c)&&c};B.duration=R.fx.off?0:typeof B.duration==="number"?B.duration:B.duration in R.fx.speeds?R.fx.speeds[B.duration]:R.fx.speeds._default;B.old=B.complete;B.complete=function(){B.queue!==false&&R(this).dequeue();R.isFunction(B.old)&&B.old.call(this)};return B},easing:{linear:function(t,c,E,B){return E+B*t},swing:function(t,c,E,B){return(-Math.cos(t*Math.PI)/2+0.5)*B+E}},timers:[],fx:function(t,c,B){this.options=c;this.elem=t;this.prop=B;if(!c.orig){c.orig={}}}});R.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(R.fx.step[this.prop]||R.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var c=parseFloat(R.css(this.elem,this.prop));return c&&c>-10000?c:0},custom:function(t,c,S){function P(T){return E.step(T)}var E=this,B=R.fx;this.startTime=R.now();this.start=t;this.end=c;this.unit=S||this.unit||"px";this.now=this.start;this.pos=this.state=0;P.elem=this.elem;if(P()&&R.timers.push(P)&&!ar){ar=setInterval(B.tick,B.interval)}},show:function(){this.options.orig[this.prop]=R.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());R(this.elem).show()},hide:function(){this.options.orig[this.prop]=R.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(B){var c=R.now(),T=true;if(B||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var S in this.options.curAnim){if(this.options.curAnim[S]!==true){T=false}}if(T){if(this.options.overflow!=null&&!R.support.shrinkWrapBlocks){var P=this.elem,E=this.options;R.each(["","X","Y"],function(U,V){P.style["overflow"+V]=E.overflow[U]})}this.options.hide&&R(this.elem).hide();if(this.options.hide||this.options.show){for(var t in this.options.curAnim){R.style(this.elem,t,this.options.orig[t])}}this.options.complete.call(this.elem)}return false}else{B=c-this.startTime;this.state=B/this.options.duration;c=this.options.easing||(R.easing.swing?"swing":"linear");this.pos=R.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||c](this.state,B,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};R.extend(R.fx,{tick:function(){for(var t=R.timers,c=0;c<t.length;c++){t[c]()||t.splice(c--,1)}t.length||R.fx.stop()},interval:13,stop:function(){clearInterval(ar);ar=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){R.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit}else{c.elem[c.prop]=c.now}}}});if(R.expr&&R.expr.filters){R.expr.filters.animated=function(c){return R.grep(R.timers,function(t){return c===t.elem}).length}}var a=/^t(?:able|d|h)$/i,az=/^(?:body|html)$/i;R.fn.offset="getBoundingClientRect" in I.documentElement?function(t){var c=this[0],S;if(t){return this.each(function(T){R.offset.setOffset(this,t,T)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return R.offset.bodyOffset(c)}try{S=c.getBoundingClientRect()}catch(P){}var E=c.ownerDocument,B=E.documentElement;if(!S||!R.contains(B,c)){return S||{top:0,left:0}}c=E.body;E=aW(E);return{top:S.top+(E.pageYOffset||R.support.boxModel&&B.scrollTop||c.scrollTop)-(B.clientTop||c.clientTop||0),left:S.left+(E.pageXOffset||R.support.boxModel&&B.scrollLeft||c.scrollLeft)-(B.clientLeft||c.clientLeft||0)}}:function(V){var U=this[0];if(V){return this.each(function(W){R.offset.setOffset(this,V,W)})}if(!U||!U.ownerDocument){return null}if(U===U.ownerDocument.body){return R.offset.bodyOffset(U)}R.offset.initialize();var T,S=U.offsetParent,P=U.ownerDocument,E=P.documentElement,t=P.body;T=(P=P.defaultView)?P.getComputedStyle(U,null):U.currentStyle;for(var B=U.offsetTop,c=U.offsetLeft;(U=U.parentNode)&&U!==t&&U!==E;){if(R.offset.supportsFixedPosition&&T.position==="fixed"){break}T=P?P.getComputedStyle(U,null):U.currentStyle;B-=U.scrollTop;c-=U.scrollLeft;if(U===S){B+=U.offsetTop;c+=U.offsetLeft;if(R.offset.doesNotAddBorder&&!(R.offset.doesAddBorderForTableAndCells&&a.test(U.nodeName))){B+=parseFloat(T.borderTopWidth)||0;c+=parseFloat(T.borderLeftWidth)||0}S=U.offsetParent}if(R.offset.subtractsBorderForOverflowNotVisible&&T.overflow!=="visible"){B+=parseFloat(T.borderTopWidth)||0;c+=parseFloat(T.borderLeftWidth)||0}T=T}if(T.position==="relative"||T.position==="static"){B+=t.offsetTop;c+=t.offsetLeft}if(R.offset.supportsFixedPosition&&T.position==="fixed"){B+=Math.max(E.scrollTop,t.scrollTop);c+=Math.max(E.scrollLeft,t.scrollLeft)}return{top:B,left:c}};R.offset={initialize:function(){var t=I.body,c=I.createElement("div"),S,P,E,B=parseFloat(R.css(t,"marginTop"))||0;R.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";t.insertBefore(c,t.firstChild);S=c.firstChild;P=S.firstChild;E=S.nextSibling.firstChild.firstChild;this.doesNotAddBorder=P.offsetTop!==5;this.doesAddBorderForTableAndCells=E.offsetTop===5;P.style.position="fixed";P.style.top="20px";this.supportsFixedPosition=P.offsetTop===20||P.offsetTop===15;P.style.position=P.style.top="";S.style.overflow="hidden";S.style.position="relative";this.subtractsBorderForOverflowNotVisible=P.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=t.offsetTop!==B;t.removeChild(c);R.offset.initialize=R.noop},bodyOffset:function(t){var c=t.offsetTop,B=t.offsetLeft;R.offset.initialize();if(R.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(R.css(t,"marginTop"))||0;B+=parseFloat(R.css(t,"marginLeft"))||0}return{top:c,left:B}},setOffset:function(W,U,T){var S=R.css(W,"position");if(S==="static"){W.style.position="relative"}var P=R(W),E=P.offset(),t=R.css(W,"top"),B=R.css(W,"left"),c=S==="absolute"&&R.inArray("auto",[t,B])>-1;S={};var V={};if(c){V=P.position()}t=c?V.top:parseInt(t,10)||0;B=c?V.left:parseInt(B,10)||0;if(R.isFunction(U)){U=U.call(W,T,E)}if(U.top!=null){S.top=U.top-E.top+t}if(U.left!=null){S.left=U.left-E.left+B}"using" in U?U.using.call(W,S):P.css(S)}};R.fn.extend({position:function(){if(!this[0]){return null}var t=this[0],c=this.offsetParent(),E=this.offset(),B=az.test(c[0].nodeName)?{top:0,left:0}:c.offset();E.top-=parseFloat(R.css(t,"marginTop"))||0;E.left-=parseFloat(R.css(t,"marginLeft"))||0;B.top+=parseFloat(R.css(c[0],"borderTopWidth"))||0;B.left+=parseFloat(R.css(c[0],"borderLeftWidth"))||0;return{top:E.top-B.top,left:E.left-B.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||I.body;c&&!az.test(c.nodeName)&&R.css(c,"position")==="static";){c=c.offsetParent}return c})}});R.each(["Left","Top"],function(t,c){var B="scroll"+c;R.fn[B]=function(S){var P=this[0],E;if(!P){return null}if(S!==aB){return this.each(function(){if(E=aW(this)){E.scrollTo(!t?S:R(E).scrollLeft(),t?S:R(E).scrollTop())}else{this[B]=S}})}else{return(E=aW(P))?"pageXOffset" in E?E[t?"pageYOffset":"pageXOffset"]:R.support.boxModel&&E.document.documentElement[B]||E.document.body[B]:P[B]}}});R.each(["Height","Width"],function(t,c){var B=c.toLowerCase();R.fn["inner"+c]=function(){return this[0]?parseFloat(R.css(this[0],B,"padding")):null};R.fn["outer"+c]=function(E){return this[0]?parseFloat(R.css(this[0],B,E?"margin":"border")):null};R.fn[B]=function(S){var P=this[0];if(!P){return S==null?null:this}if(R.isFunction(S)){return this.each(function(T){var U=R(this);U[B](S.call(this,T,U[B]()))})}if(R.isWindow(P)){return P.document.compatMode==="CSS1Compat"&&P.document.documentElement["client"+c]||P.document.body["client"+c]}else{if(P.nodeType===9){return Math.max(P.documentElement["client"+c],P.body["scroll"+c],P.documentElement["scroll"+c],P.body["offset"+c],P.documentElement["offset"+c])}else{if(S===aB){P=R.css(P,B);var E=parseFloat(P);return R.isNaN(E)?P:E}else{return this.css(B,typeof S==="string"?S:S+"px")}}}}})})(window);IE6=!window.XMLHttpRequest;NIE=-[1,];var Sys={};var ua=navigator.userAgent.toLowerCase();var s;(s=ua.match(/msie ([\d.]+)/))?Sys.ie=s[1]:(s=ua.match(/firefox\/([\d.]+)/))?Sys.firefox=s[1]:(s=ua.match(/chrome\/([\d.]+)/))?Sys.chrome=s[1]:(s=ua.match(/opera.([\d.]+)/))?Sys.opera=s[1]:(s=ua.match(/version\/([\d.]+).*safari/))?Sys.safari=s[1]:0;cookie={set:function(f,e,d){if(typeof(e)=="string"){d=e;e=0}e=e||99;d=d||"/";var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString();for(var c in f){document.cookie=c+"="+f[c]+a+"; path="+d}},get:function(b){var f=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var g=a[d];while(g.charAt(0)==" "){g=g.substring(1,g.length)}if(g.indexOf(f)==0){return g.substring(f.length,g.length).replace(/\"/g,"")}}return null}};function xf(){var a=cookie.get("S");if(a){return a.slice(-5)}}function uuid(){var a=[],b=9,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";while(--b){a.push(c.charAt(Math.floor(Math.random()*64)))}return a.join("")}(function(b){b.fn.idTabs=function(){var e={};for(var d=0;d<arguments.length;++d){var c=arguments[d];switch(c.constructor){case Object:b.extend(e,c);break;case Boolean:e.change=c;break;case Function:e.click=c;break;case String:if(c.charAt(0)=="#"){e.start=c}else{e.event=c}break}}if(typeof e["return"]=="function"){e.change=e["return"]}return this.each(function(){b.idTabs(this,e)})};b.idTabs=function(f,e){var i=(b.metadata)?b(f).metadata():{};var g=b.extend({},b.idTabs.settings,i,e);g.now="now";var d=location.href.split("#/")[1];if(d){d="#"+d}g.start=d||g.start||0;var c=function(){var l=b(this),q=location.href;if(!l.hasClass(g.now)){var r="#"+this.href.split("#")[1];var m=[];var o=[];b("a",f).each(function(){if(this.href.match(/#/)){m.push(this);o.push("#"+this.href.split("#")[1])}});if(!((r==g.start||r==o[g.start])&&q.indexOf("#/")<0)){location.replace(q.split("#")[0]+"#/"+r.slice(1))}if(!(g.click&&false===g.click.apply(this,[r,o,f,g]))){var k=[];for(var n in o){n=o[n];if(n!=r){k.push(n)}}b(k.join(",")).hide()}for(n in m){b(m[n]).removeClass(g.now)}l.addClass(g.now)}l.blur();b(r).show();return false};var h=b("a[href*='#']",f).unbind(g.event,c).bind(g.event,c);h.each(function(){b("#"+this.href.split("#")[1]).hide()});var j=false;if((j=h.filter("."+g.now)).length){}else{if(typeof g.start=="number"&&(j=h.eq(g.start)).length){}else{if(typeof g.start=="string"&&(j=h.filter("[href*='"+g.start+"']")).length){}}}if(j){j.removeClass(g.now);j.trigger(g.event)}return g};b.idTabs.settings={change:true,click:null,event:"click"};b.__ajax=b.ajax;b.ajax=function(c){if(c.type=="POST"){var d=xf();if(d){c.data=b.extend(c.data||{},{xf:d})}}return b.__ajax(c)};b.fn.attrlist=function(d,c){c=c||" ";var e=[];this.each(function(){e.push(this[d])});return e.join(c)};b.viewsize=function(){var c=[0,0];if(typeof window.innerWidth!="undefined"){c=[window.innerWidth,window.innerHeight]}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){c=[document.documentElement.clientWidth,document.documentElement.clientHeight]}else{c=[document.body.clientWidth,document.body.clientHeight]}}return c};var a=cookie.get("B");if(!a){cookie.set({B:uuid()},999)}})(jQuery);function txt2htm(a){return $("<div/>").text(a).html()}function $id(a){return document.getElementById(a)}function js_parser(htm){var tag="script>",begin="<"+tag,end="</"+tag,pos=pos_pre=0,result=script="";while((pos=htm.indexOf(begin,pos))+1){result+=htm.substring(pos_pre,pos);pos+=8;pos_pre=htm.indexOf(end,pos);if(pos_pre<0){break}script+=htm.substring(pos,pos_pre)+";";pos_pre+=9}result+=htm.substring(pos_pre,htm.length);return{htm:result,js:function(){eval(script)}}}function center(a){return{left:(document.documentElement.offsetWidth-a.offsetWidth)/2+"px",top:(document.documentElement.clientHeight-a.offsetHeight)*0.45+"px"}}function popwin(e,j){if(!window.__popwin){var l=document.createElement("div");l.className="popwin_bg";document.body.appendChild(l);var c=document.createElement("div");c.className="popwin";document.body.appendChild(c);var k=document.createElement("div");k.className="popwin_bbg";if(j){document.body.appendChild(k)}__popwin={bg:l,body:c,bbg:k,body_j:$(c),bg_j:$(l),bbg_j:$(k)}}var i=__popwin.body,m=__popwin.body_j,a=js_parser(e),d=a.htm,g=document.documentElement.clientHeight;if(j){var f=__popwin.bbg_j}if(popwin.X){d+="<a onclick=\"popwin.close('"+j+'\')" hidefocus="true" href="javascript:;" class="popwin_close">close</a>'}i.innerHTML=d;m.css({display:"block"});if(j){f.css({display:"block"})}if(IE6){m.css("left",center(i).left)}else{m.css(center(i))}if(i.offsetHeight+20>g){if(!IE6){m.css({top:"10px"})}i.style.height=Math.max(g-60,0)+"px";i.style.overflow="hidden"}__popwin.bg_j.css({height:i.offsetHeight+40+"px",width:i.offsetWidth+20+"px",left:i.offsetLeft-10+"px",top:i.offsetTop-10+"px",zIndex:100}).show();$(".popwin_close").css("top",i.offsetHeight);m.css({visibility:"visible",zIndex:101});a.js();if(!window.XMLHttpRequest){__popwin.bg.style.top=""}}popwin.X=1;popwin.close=function(a){window.__popwin_close_callback&&__popwin_close_callback();__popwin.bg.style.display="none";__popwin.body.innerHTML="";__popwin.body.style.display="none";if(a){__popwin.bbg.style.display="none"}};popwin.loading=function(a){popwin('<p id="popwin_loading">'+txt2htm(a||"通讯中，请稍等...")+"</p>")};popwin.show_error=function(){var a=window.open("about:blank");a.document.write(popwin.xhr.responseText);a.document.close()};popwin.error=function(b,c,a){popwin.xhr=b;popwin('<div style="width:240px;text-align:center;"><p>后台发生 '+b.status+" "+c+' 错误</p><p><a href="javascript:popwin.show_error();void(0)">查看详情</a></p></div>')};popwin.load=function(b,d,a){if(typeof(d)!="object"){a=d;d=0}var c=setTimeout(function(){popwin.loading("加载中 ...")},200),e={url:b,success:function(f){clearTimeout(c);popwin(f)},cache:a||false,error:function(g,f,h){clearTimeout(c);popwin.error(g,f,h)}};if(d){e.data=d}$.ajax(e);return false};popwin.prompt=function(a,c,b){popwin.prompt.callback=c;b=b||"";popwin('<h2 class="Ph2">'+txt2htm(a)+'</h2><form class="Pmb" id="popwin_prompt_form"><p class="mt8"><input class="be" autocomplete="off" value="" type="text" style="'+popwin.prompt.style+'" id="popwin_prompt_input"></p><p align="center"><input class="f16" value="确定" style="padding:3px" type="submit"> <input class="f16" style="padding:3px" value="取消" onclick="popwin.close()" type="submit"></p></form>');with($id("popwin_prompt_input")){value=b;focus();value=b}$id("popwin_prompt_form").onsubmit=popwin.prompt.yes};popwin.prompt.style="font-size:16px;width:200px;padding:2px;";popwin.prompt.yes=function(){var a=$id("popwin_prompt_input").value;popwin.close();popwin.prompt.callback(a);return false};popwin.fit=function(b){var f=__popwin.body,c=$(f);c.css(center(f));var e=c.offset(),a=__popwin.bg_j;a.css({height:f.offsetHeight+20+"px",width:f.offsetWidth+20+"px",top:f.offsetTop-10+"px",left:f.offsetLeft-10+"px"});c.before(a);a.css("zIndex",c.css("zIndex"))};function poplogin(c){var b=location.href;POPWIN_LOGIN_HREF=c||"/"+b.slice(1+b.indexOf("/",8));popwin.load("/popwin/login.htm");return false}function title_value_tip(a){var a=$(a),c=a[0];if(!c){return}if(!c.value||c.value==""){c.value=c.title}var b=function(){if(!c.value||c.value==""||c.value==c.title){$(c).css("color","#ccc");c.value=c.title}};$(c).focus(function(){var d=c.value;a.css("color","");if(d==c.title){c.value=""}});$(c).blur(b);b()}function prize_share_msn(a){popwin('<h2 class="H1" style="margin-bottom:10px;">把下面链接通过 MSN 或 QQ 发送给好友</h2><textarea id="prize_talk" style="border:1px solid #eee;padding:3px;width:260px;height:60px"></textarea><p class="tc mt15"><a style="font-size:16px;padding:7px 10px 5px;" class="abtn" href="javascript:popwin.close();void(0);">确定</a></p>');$("#prize_talk").val(a).select()}function share_a(k,d){var j=encodeURIComponent,g=["www.douban.com/recommend/?url=$u&title=$t","豆瓣","v.t.sina.com.cn/share/share.php?title=$u $t","新浪","share.renren.com/share/buttonshare.do?link=$u&title=$t","人人","www.kaixin001.com/repaste/share.php?rurl=$u&rtitle=$t","开心","www.google.com/buzz/post?url=$u&message=$t","Buzz","twitter.com/home?status=$u+$t","Twitter","javascript:prize_share_msn('$u');void(0)",'QQ<span style="margin:0 3px 0 2px">/</span>MSN'],f=0,c=[],a,h;if(d){if(d.indexOf("://")<0){d="http://"+location.host+j(d)}}else{d=location.href}for(;f<g.length/2;++f){a=2*f;if(g[a].indexOf("javascript:")>0){h='href="'}else{h='target="_blank" href="http://'}c.push("<a "+h+g[a].replace("$u",d).replace("$t",j(k))+'">'+g[a+1]+"</a>")}return c.join("")}function popshare(b,a){b=b||document.title;a=a||location.pathname;popwin('<h2 class="Ph2 f16">分享到...</h2><div class="pSh">'+share_a(b,a)+"</div>")}function init_follow(){$(".fola").click(function(){var f=this.rel,a=this.href,c="淡忘",e="unfollow",d="follow",b;popwin.loading();if(a.indexOf("/"+e+"?")>0){c="关注";b=e;e=d;d=b}this.href=a.replace("/"+d+"?","/"+e+"?");this.innerHTML=c;this.blur();$.post("/j/"+d+"/"+f,function(g){if(g=="Y"){popwin.close()}else{popwin(g)}});return false});return false}function wall_rm(a){if(confirm("真的要删除它吗?")){popwin.loading();$.post("/j/wall_rm/"+a,function(){$("#wall"+a).slideUp();popwin.close()})}}function feed_reply_rm(d,c){if(confirm("真的要删除它吗?")){popwin.loading();$.post("/j/feed_reply_rm/"+d+"/"+c,function(){$("#reply"+d+"_"+c).slideUp();popwin.close()})}}function btnreply(f,c){var b=$(f),a=b.val(),e=$(c),d=f.id;if(c.text){return}if(a!=""){c.text=e.text();e.text("保存中, 请稍等 ...");$.post("/j/feed_reply/"+d.slice(3),{txt:a},function(){$(f.previousSibling).append($('<pre class="cmtp"/>').text(a));b.val("").blur();e.text(c.text);c.text=null})}}function goback(){history.length>1?history.back():location="/"}$(function(){$(".input_hide_text").blur(function(){if($(this).val()==""){$(this).val($(this).attr("title"));$(this).addClass("color-gray")}else{$(this).addClass("color-gray")}});$(".input_hide_text").focus(function(){if($(this).val()==$(this).attr("title")){$(this).val("");$(this).removeClass("color-gray")}else{if($(this).val()!==""&&$(this).val()!==$(this).attr("title")){$(this).removeClass("color-gray")}}})});$.fn.selectRange=function(b,a){return this.each(function(){if(this.setSelectionRange){this.focus();this.setSelectionRange(b,a)}else{if(this.createTextRange){var c=this.createTextRange();c.collapse(true);c.moveEnd("character",a);c.moveStart("character",b);c.select()}}})};function starmove(){var b=["糟糕","一般","还不错","挺棒的","好极了"];$(".starmove").mousemove(function(f){var a=this.offsetWidth,d=f.clientX-$(this).offset().left;var c=parseInt((d+14)*5/a);this.className="star"+10*c;$(this).next().text(b[c-1]);$(this).next().next().val(c)}).css("cursor","pointer")}function digg_heart(){function digg_heart_live(){var self=this,rel=self.rel;var v=rel.split(":");var rid=v[0];var did=v[1];var gclass=v[2];$.post("/recipe/"+rid+"/",{dish_id:did},function(data){self=$(self);eval("data="+data);self.removeClass(gclass);n_span=self.next();num=n_span.text();n_span.text(parseInt(num)+1);txt='<a href="'+data.url+'">'+data.name+"</a>&nbsp;";$short_=$("#diggusers-short");if(num>5){$short_.find("a:last-child").remove()}$short_.prepend(txt);$full=$("#diggusers-full");$full.prepend(txt)})}$(".dh-gray").live("click",digg_heart_live);$(".dhz-gray").live("click",digg_heart_live)}function load_bgimg(){var b=$("#recipe-cover").css("background-image");b=b.replace("url(","").replace('"',"").replace(")","").replace('"',"");var a=$("<img />");a.hide();a.bind("load",function(){var c=$(this).height()});$("#recipe-cover").append(a);a.attr("src",b);a.attr("alt",$("#recipe-cover").attr("title"))}function nav_notifi_todo(){popwin('<div style="width:238px;padding:14px;background:#F5F5F4"><p>受海啸影响，该功能还有些恍惚...</p><p>先去 <a href="/droom/">讨论区</a> 吐个槽吧</p></div>')}function recipe_create_tip(){$(".recipe-list-popwin").click(function(){var a=$(this);var b=$("#"+a.attr("id").replace("rl","rp-pop"));popwin(b.html())})}function nav_notifi_tip(){var a=$("#noti");if(a.length){popwin($("#has-noti").val());__popwin_close_callback=function(){var b=$("#has-noti");if(b.length){$.post("/",{del_noti:1},function(){$(".nav-noti-n").hide()})}window.__popwin_close_callback=null}}}$(function(){if(cookie.get("profile")=="1"){$("#maincontent").append($("pre:last"))}});$(function(){var a=$("#header .setting");$("#header li.last a").mouseover(function(){a.css("visibility","visible")});$(document).click(function(){a.css("visibility","hidden")});a.click(function(b){if(b.target.nodeName!="A"){b.stopPropagation()}})});function get_sync_info(){$.ajax({url:"/j/get_sync_info",dataType:"html",type:"GET",cache:false,success:function(a){$("#bind").html(a)},errow:function(){$("#bind").html("")}});popwin.close("yes")}function get_sync_onload(){$.ajax({url:"/j/get_sync_info",dataType:"html",type:"GET",cache:false,success:function(a){$("#bind").html(a)},errow:function(){$("#bind").html("")}})}function notify_oauth(){var a=$("#notify-oauth");popwin(a.html(),"yes")}function notify_ing_ad(b){var a=$("#noti_ing_ad");$.ajax({url:"/j/ing_ad/?ing_id="+b,type:"GET",success:function(c){popwin(c,"yes")}})}$(function(){$("#edit_recipe_finish").click(function(){$(this).attr("disabled","disabled");$("#post_recipe").submit()});$("#upload_new_dish").click(function(){$(this).attr("disabled","disabled");$("#post_dish").submit()});$("#submit_new_topic").click(function(){$(this).attr("disabled","disabled");$("#post_topic").submit()})});function ie_or_ff_ad(){if(window.navigator.appName=="Microsoft Internet Explorer"){document.write("<div id=google_ad_load style=''>")}else{document.write("<div id=google_ad_load style='display:none;'>")}}function add_ad_frame(){var c=document.getElementById("google_ad_show");var a=document.getElementById("google_ads_iframe_ad_right");var b;b=document.createElement("iframe");b.setAttribute("id","google_ads_iframe_ad_right");b.setAttribute("frameBorder",0);b.setAttribute("scrolling","no");b.setAttribute("width","250px");b.setAttribute("height","250px");if(window.navigator.appName=="Microsoft Internet Explorer"){c.appendChild(document.getElementById("google_ad_load"))}else{c.appendChild(b);b.contentWindow.document.open();b.contentWindow.document.write(a.contentWindow.document.documentElement.innerHTML);b.contentWindow.document.close()}}$(document).ready(function(){var c=$(".g-my-func");$(".g-my").hover(function(){if(!c.is(":animated")){c.slideDown("fast")}});$(document).click(function(){if(!c.is(":animated")){c.slideUp("fast")}});var a=$(".h-topic-users>ul>div>li");a.hover(function(){$(this).addClass("act").siblings().removeClass("act");$(this).children("span").css("display","block")},function(){$(this).removeClass("act");$(this).children("span").css("display","none")});var b=$(".h-works-list>li");b.hover(function(){if(!$(this).find("p").is(":animated")){$(this).find("p").animate({height:"80px"},"fast")}},function(){$(this).find("p").animate({height:"0"},"fast")})});$(document).ready(function(){$(".h-topic-users>ul>div>li>a").click(function(){var b=$(this).attr("rel");var a=$(this).attr("url");$.ajax({type:"POST",url:"/recipe/"+b+"/",data:{viewed_id:b},success:function(c){},error:function(c){}});window.location=a})});$(document).ready(function(){$(".h-topic-users>ul>div>li>span").click(function(){var a=confirm("确定不喜欢这个菜谱吗？");if(a==true){var c=$(this).attr("rel");$.ajax({type:"POST",url:"/recipe/"+c+"/",data:{dislike_id:c},success:function(d){},error:function(d){alert("数据请求失败！")}});$(this).parents("li").addClass("g-dn");var b=$(".h-like-height").height();if(b==0){$(".h-topic-users").html('<div class="h-topic-users-ntf g-f13">你把今天的推荐看完了<br /><a href="/topic/1678/">&gt; 反馈意见</a></div>');return false}}})});$(function(){$(".h-cooker-follow").click(function(){var a=this,b=a.rel;$.post("/cook/"+b+"/",{follow:b},function(){$(a).addClass("g-dn");$(a).next().removeClass("g-dn")})})});$(document).ready(function(){$(".answer-more").click(function(){$(this).parent().css("height","auto");$(this).hide()})});$(document).ready(function(){$(".edit-reply").click(function(){var a=$(this).parents().parents(".reply-doc");a.children("p").hide();a.children(".edit-mode").show()});$(".cancel-edit").click(function(){var a=$(this).parents(".edit-mode").parents(".reply-doc");a.children("p").show();a.children(".edit-mode").hide()})});function edit_useful(a){$(a).parent().remove()}$(document).ready(function(){$(".d-useful").click(function(){var d=$(this);var e=$(this).siblings(".d-useless");var c=d.attr("rel");var dArray=c.split("::");var p=d.parent().siblings("p");var u_num=p.children(".answer-num").children(".useful-num");var u_list=p.children(".answer-ulist");if(dArray[0]!=="1"){$.post(".",{useful:dArray[1]},function(data){var numa=Number(u_num.html());var obj=eval("("+data+")");u_num.html(numa+1);u_list.prepend('<a href="'+obj.url+'" class="g-gary">'+obj.name+"</a> ");d.attr("rel","1::"+dArray[1]);e.attr("rel","1::"+dArray[1])})}d.parent(".answer-digg").prepend('<span class="used">真理的光辉闪耀厨房 ^_^ &nbsp <a href="###" onclick="javascript:edit_useful(this);">修改</a></span>')});$(".d-useless").click(function(){var a=$(this);var b=a.siblings(".d-useful");var f=a.attr("rel");var fArray=f.split("::");var p=a.parent().siblings("p");var u_num=p.children(".answer-num").children(".useful-num");var u_list=p.children(".answer-ulist");if(fArray[0]!=="-1"){$.post(".",{useless:fArray[1]},function(data){var numb=Number(u_num.html());var obj=eval("("+data+")");u_num.html(numb-1);u_list.find('a[href="'+obj.url+'"]').remove();a.attr("rel","-1::"+fArray[1]);b.attr("rel","-1::"+fArray[1])})}a.parent(".answer-digg").prepend('<span class="used">真理的光辉闪耀厨房 x_x &nbsp <a href="###" onclick="javascript:edit_useful(this);">修改</a></span>')})});(function(a){a.fn.extend({elastic:function(){return this.each(function(){var d=this;if(d.type!=="textarea"){return false}var b=$(d).height();function c(){var f=$(d),g,e;if(!g){g=f.clone().css({position:"absolute",top:"-9999px",left:"-9999px",width:f.width()}).appendTo("body")}f.css("overflow","hidden");e=g.val(f.val()).height(0).scrollTop(999).scrollTop();f.css("height",Math.max(e+7,b))}c();a(this).keyup(c)})}})})(jQuery);$(document).ready(function(){$(".g-comment-reply").click(function(){var b=$(this).parent().parent().siblings("p").find(".g-comment-user").text();var a=$("#reply");a.prepend("@"+b+" ");a.focus()});$(".r-collect").click(function(){var a=$(this).attr("scid");$.post("/recipe/"+a+"/",{recipe_id:a},function(){$(".r-uncollected").removeClass("g-dn");$(".r-collect").addClass("g-dn")})});$(".r-uncollected>.r-collected").click(function(){var a=$(this).attr("scid");$.post(".",{uncollect:a},function(){$(".r-uncollected").addClass("g-dn");$(".r-collect").removeClass("g-dn")})});$(".g-recipe-img-big").click(function(){var b=$(this);var a=b.children("img").height();if(b.hasClass("slide")){b.animate({height:"396px"},300)}else{b.animate({height:a+"px"},300)}b.toggleClass("slide")})});$(document).ready(function(){$(".r-comment-text").focus(function(){$(this).animate({height:"70px"});$(this).next().fadeIn()})});$(document).ready(function(){$("#recipe_like_list_p,#recipe_like_list_n,#recipe_other_list_p,#recipe_other_list_n").click(function(){var d=$(this).attr("data");var a=d.split(":");var h=a[0];var c=a[1];var b=a[2];var f=a[3];var e=$(this).attr("id");recipe_list_slide(e,h,c,b,f)})});function recipe_list_slide(h,e,i,l,a){var b=$("#"+h);if(a=="prev"){if(Number(e)<=0){b.addClass("p-end");return false}else{b.removeClass("p-end");var k=Number(e)-1;var m=Number(e)+1;var j=b.parent().next().next().children("a");b.attr("data",k+":"+i+":"+l+":"+a);j.attr("data",m+":"+i+":"+l+":next");j.removeClass("n-end")}}else{if(Number(e)>Number(i)){b.addClass("n-end");return false}else{b.removeClass("n-end");var k=Number(e)-1;var m=Number(e)+1;var c=b.parent().prev().prev().children("a");b.attr("data",m+":"+i+":"+l+":"+a);c.attr("data",k+":"+i+":"+l+":prev");c.removeClass("p-end")}}var f="?rtype="+l+"&rpage="+e;recipe_list_slideshow(f,h,a)}function recipe_list_slideshow(b,d,c){var a;if(c=="prev"){obj_ul=$("#"+d).parent().next()}else{obj_ul=$("#"+d).parent().prev()}obj_ul.prepend('<div class="g-recipe-slide-loading g-c9">正在载入菜谱列表</div>');$.ajax({type:"GET",url:b,dataType:"json",cache:false,success:function(o){var n="";var e=o.recipe;n+="<ul>";var f=new Array();for(var j=0;j<5;j++){f[j]=e[j].image;var k=e[j].image;var g=e[j].name;var l=e[j].link;var h=e[j].dish_number;var m=e[j].collect_number;if(!k){n+="<li></li>"}else{n+='<li><a href="'+l+'"><img src="'+k+'" alt="'+l+'" /></a><p class="g-c9"><a href="'+l+'">'+g+"</a><br />"+h+"做过 "+m+"收藏</p></li>"}}n+="</ul>";obj_ul.html(n)}})}(function(a){a.fn.easySlider=function(b){var c={prevId:"prevBtn",prevText:"Previous",nextId:"nextBtn",nextText:"Next",orientation:"",speed:800};var b=a.extend(c,b);return this.each(function(){obj=a(this);var j=a("div",obj).length;var d=obj.width();var i=obj.height();var k=j-1;var g=0;var f=(b.orientation=="vertical");a("ul",obj).css("width",j*d);if(!f){a("div",obj).css("float","left")}a(obj).after('<span id="'+b.prevId+'"><a href="javascript:void(0);">'+b.prevText+'</a></span> <span id="'+b.nextId+'"><a href="javascript:void(0);">'+b.nextText+"</a></span>");a("a","#"+b.prevId).addClass("first");a("a","#"+b.nextId).addClass("last");a("a","#"+b.nextId).click(function(){e("next");if(g>=k){a(this).addClass("last")}a("a","#"+b.prevId).removeClass("first")});a("a","#"+b.prevId).click(function(){e("prev");if(g<=0){a(this).addClass("first")}a("a","#"+b.nextId).removeClass("last")});function e(h){if(h=="next"){g=(g>=k)?k:g+1}else{g=(g<=0)?0:g-1}if(!f){p=(g*d*-1);a("ul",obj).animate({marginLeft:p},b.speed)}else{p=(g*i*-1);a("ul",obj).animate({marginTop:p},b.speed)}}if(j>1){a("a","#"+b.nextId).removeClass("last")}})}})(jQuery);
