/*!
 * 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(av,az){function i(t,c,E){if(E===az&&t.nodeType===1){E=t.getAttribute("data-"+c);if(typeof E==="string"){try{E=E==="true"?true:E==="false"?false:E==="null"?null:!O.isNaN(E)?parseFloat(E):Q.test(E)?O.parseJSON(E):E}catch(B){}O.data(t,c,E)}else{E=az}}return E}function ak(){return false}function I(){return true}function aX(t,c,B){B[0].type=t;return O.event.handle.apply(c,B)}function z(aa){var X,W,V,U,T,P,S,E,Z,c,B,t=[];U=[];T=O.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(ah,"")===aa.type?U.push(T.selector):Y.splice(S--,1)}U=O(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=O(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 ag(t,c){return(t&&t!=="*"?t+".":"")+c.replace(m,"`").replace(a1,"&")}function aK(t,c,E){if(O.isFunction(c)){return O.grep(t,function(S,P){return !!c.call(S,P,S)===E})}else{if(c.nodeType){return O.grep(t,function(P){return P===c===E})}else{if(typeof c==="string"){var B=O.grep(t,function(P){return P.nodeType===1});if(aP.test(c)){return O.filter(c,B,!E)}else{c=O.filter(c,B)}}}}return O.grep(t,function(P){return O.inArray(P,c)>=0===E})}function aw(t,c){var B=0;c.each(function(){if(this.nodeName===(t[B]&&t[B].nodeName)){var T=O.data(t[B++]),S=O.data(this,T);if(T=T&&T.events){delete S.handle;S.events={};for(var P in T){for(var E in T[P]){O.event.add(this,P,T[P][E],T[P][E].data)}}}}})}function aC(t,c){c.src?O.ajax({url:c.src,async:false,dataType:"script"}):O.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function N(t,c,E){var B=c==="width"?t.offsetWidth:t.offsetHeight;if(E==="border"){return B}O.each(c==="width"?ad:D,function(){E||(B-=parseFloat(O.css(t,"padding"+this))||0);if(E==="margin"){B+=parseFloat(O.css(t,"margin"+this))||0}else{B-=parseFloat(O.css(t,"border"+this+"Width"))||0}});return B}function s(t,c,E,B){if(O.isArray(c)&&c.length){O.each(c,function(S,P){E||p.test(t)?B(t,P):s(t+"["+(typeof P==="object"||O.isArray(P)?S:"")+"]",P,E,B)})}else{if(!E&&c!=null&&typeof c==="object"){O.isEmptyObject(c)?B(t,""):O.each(c,function(S,P){s(t+"["+S+"]",P,E,B)})}else{B(t,c)}}}function am(t,c){var B={};O.each(y.concat.apply([],y.slice(0,c)),function(){B[this]=t});return B}function l(t){if(!g[t]){var c=O("<"+t+">").appendTo("body"),B=c.css("display");c.remove();if(B==="none"||B===""){B="block"}g[t]=B}return g[t]}function aU(c){return O.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var G=av.document,O=function(){function bh(){if(!bg.isReady){try{G.documentElement.doScroll("left")}catch(bi){setTimeout(bh,1);return}bg.ready()}}var bg=function(bi,bj){return new bg.fn.init(bi,bj)},bf=av.jQuery,be=av.$,bd,bb=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,a8=/\S/,a9=/^\s+/,a5=/\s+$/,V=/\W/,ab=/\d/,a4=/^<(\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.]+)/,bc=/(opera)(?:.*version)?[ \/]([\w.]+)/,ba=/(msie) ([\w.]+)/,a6=/(mozilla)(?:.*? rv:([\w.]+))?/,a7=navigator.userAgent,a3=false,a2=[],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={};bg.fn=bg.prototype={init:function(bj,bl){var bi,bm,bk;if(!bj){return this}if(bj.nodeType){this.context=this[0]=bj;this.length=1;return this}if(bj==="body"&&!bl&&G.body){this.context=G;this[0]=G.body;this.selector="body";this.length=1;return this}if(typeof bj==="string"){if((bi=bb.exec(bj))&&(bi[1]||!bl)){if(bi[1]){bk=bl?bl.ownerDocument||bl:G;if(bm=a4.exec(bj)){if(bg.isPlainObject(bl)){bj=[G.createElement(bm[1])];bg.fn.attr.call(bj,bl,true)}else{bj=[bk.createElement(bm[1])]}}else{bm=bg.buildFragment([bi[1]],[bk]);bj=(bm.cacheable?bm.fragment.cloneNode(true):bm.fragment).childNodes}return bg.merge(this,bj)}else{if((bm=G.getElementById(bi[2]))&&bm.parentNode){if(bm.id!==bi[2]){return bd.find(bj)}this.length=1;this[0]=bm}this.context=G;this.selector=bj;return this}}else{if(!bl&&!V.test(bj)){this.selector=bj;this.context=G;bj=G.getElementsByTagName(bj);return bg.merge(this,bj)}else{return !bl||bl.jquery?(bl||bd).find(bj):bg(bl).find(bj)}}}else{if(bg.isFunction(bj)){return bd.ready(bj)}}if(bj.selector!==az){this.selector=bj.selector;this.context=bj.context}return bg.makeArray(bj,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return B.call(this,0)},get:function(bi){return bi==null?this.toArray():bi<0?this.slice(bi)[0]:this[bi]},pushStack:function(bj,bk,bi){var bl=bg();bg.isArray(bj)?E.apply(bl,bj):bg.merge(bl,bj);bl.prevObject=this;bl.context=this.context;if(bk==="find"){bl.selector=this.selector+(this.selector?" ":"")+bi}else{if(bk){bl.selector=this.selector+"."+bk+"("+bi+")"}}return bl},each:function(bi,bj){return bg.each(this,bi,bj)},ready:function(bi){bg.bindReady();if(bg.isReady){bi.call(G,bg)}else{a2&&a2.push(bi)}return this},eq:function(bi){return bi===-1?this.slice(bi):this.slice(bi,+bi+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(bi){return this.pushStack(bg.map(this,function(bk,bj){return bi.call(bk,bj,bk)}))},end:function(){return this.prevObject||bg(null)},push:E,sort:[].sort,splice:[].splice};bg.fn.init.prototype=bg.fn;bg.extend=bg.fn.extend=function(){var bi,bq,bn,bk,bm,bo=arguments[0]||{},bl=1,bj=arguments.length,bp=false;if(typeof bo==="boolean"){bp=bo;bo=arguments[1]||{};bl=2}if(typeof bo!=="object"&&!bg.isFunction(bo)){bo={}}if(bj===bl){bo=this;--bl}for(;bl<bj;bl++){if((bi=arguments[bl])!=null){for(bq in bi){bn=bo[bq];bk=bi[bq];if(bo!==bk){if(bp&&bk&&(bg.isPlainObject(bk)||(bm=bg.isArray(bk)))){if(bm){bm=false;bn=bn&&bg.isArray(bn)?bn:[]}else{bn=bn&&bg.isPlainObject(bn)?bn:{}}bo[bq]=bg.extend(bp,bn,bk)}else{if(bk!==az){bo[bq]=bk}}}}}}return bo};bg.extend({noConflict:function(bi){av.$=be;if(bi){av.jQuery=bf}return bg},isReady:false,readyWait:1,ready:function(bj){bj===true&&bg.readyWait--;if(!bg.readyWait||bj!==true&&!bg.isReady){if(!G.body){return setTimeout(bg.ready,1)}bg.isReady=true;if(!(bj!==true&&--bg.readyWait>0)){if(a2){var bk=0,bi=a2;for(a2=null;bj=bi[bk++];){bj.call(G,bg)}bg.fn.trigger&&bg(G).trigger("ready").unbind("ready")}}}},bindReady:function(){if(!a3){a3=true;if(G.readyState==="complete"){return setTimeout(bg.ready,1)}if(G.addEventListener){G.addEventListener("DOMContentLoaded",Y,false);av.addEventListener("load",bg.ready,false)}else{if(G.attachEvent){G.attachEvent("onreadystatechange",Y);av.attachEvent("onload",bg.ready);var bi=false;try{bi=av.frameElement==null}catch(bj){}G.documentElement.doScroll&&bi&&bh()}}}},isFunction:function(bi){return bg.type(bi)==="function"},isArray:Array.isArray||function(bi){return bg.type(bi)==="array"},isWindow:function(bi){return bi&&typeof bi==="object"&&"setInterval" in bi},isNaN:function(bi){return bi==null||!ab.test(bi)||isNaN(bi)},type:function(bi){return bi==null?String(bi):c[S.call(bi)]||"object"},isPlainObject:function(bi){if(!bi||bg.type(bi)!=="object"||bi.nodeType||bg.isWindow(bi)){return false}if(bi.constructor&&!X.call(bi,"constructor")&&!X.call(bi.constructor.prototype,"isPrototypeOf")){return false}for(var bj in bi){}return bj===az||X.call(bi,bj)},isEmptyObject:function(bi){for(var bj in bi){return false}return true},error:function(bi){throw bi},parseJSON:function(bi){if(typeof bi!=="string"||!bi){return null}bi=bg.trim(bi);if(aa.test(bi.replace(T,"@").replace(W,"]").replace(U,""))){return av.JSON&&av.JSON.parse?av.JSON.parse(bi):(new Function("return "+bi))()}else{bg.error("Invalid JSON: "+bi)}},noop:function(){},globalEval:function(bj){if(bj&&a8.test(bj)){var bk=G.getElementsByTagName("head")[0]||G.documentElement,bi=G.createElement("script");bi.type="text/javascript";if(bg.support.scriptEval){bi.appendChild(G.createTextNode(bj))}else{bi.text=bj}bk.insertBefore(bi,bk.firstChild);bk.removeChild(bi)}},nodeName:function(bi,bj){return bi.nodeName&&bi.nodeName.toUpperCase()===bj.toUpperCase()},each:function(bk,bn,bj){var bo,bl=0,bm=bk.length,bi=bm===az||bg.isFunction(bk);if(bj){if(bi){for(bo in bk){if(bn.apply(bk[bo],bj)===false){break}}}else{for(;bl<bm;){if(bn.apply(bk[bl++],bj)===false){break}}}}else{if(bi){for(bo in bk){if(bn.call(bk[bo],bo,bk[bo])===false){break}}}else{for(bj=bk[0];bl<bm&&bn.call(bj,bl,bj)!==false;bj=bk[++bl]){}}}return bk},trim:t?function(bi){return bi==null?"":t.call(bi)}:function(bi){return bi==null?"":bi.toString().replace(a9,"").replace(a5,"")},makeArray:function(bj,bk){var bi=bk||[];if(bj!=null){var bl=bg.type(bj);bj.length==null||bl==="string"||bl==="function"||bl==="regexp"||bg.isWindow(bj)?E.call(bi,bj):bg.merge(bi,bj)}return bi},inArray:function(bj,bk){if(bk.indexOf){return bk.indexOf(bj)}for(var bi=0,bl=bk.length;bi<bl;bi++){if(bk[bi]===bj){return bi}}return -1},merge:function(bj,bl){var bi=bj.length,bm=0;if(typeof bl.length==="number"){for(var bk=bl.length;bm<bk;bm++){bj[bi++]=bl[bm]}}else{for(;bl[bm]!==az;){bj[bi++]=bl[bm++]}}bj.length=bi;return bj},grep:function(bk,bn,bj){var bo=[],bl;bj=!!bj;for(var bm=0,bi=bk.length;bm<bi;bm++){bl=!!bn(bk[bm],bm);bj!==bl&&bo.push(bk[bm])}return bo},map:function(bk,bn,bj){for(var bo=[],bl,bm=0,bi=bk.length;bm<bi;bm++){bl=bn(bk[bm],bm,bj);if(bl!=null){bo[bo.length]=bl}}return bo.concat.apply([],bo)},guid:1,proxy:function(bj,bk,bi){if(arguments.length===2){if(typeof bk==="string"){bi=bj;bj=bi[bk];bk=az}else{if(bk&&!bg.isFunction(bk)){bi=bk;bk=az}}}if(!bk&&bj){bk=function(){return bj.apply(bi||this,arguments)}}if(bj){bk.guid=bj.guid=bj.guid||bk.guid||bg.guid++}return bk},access:function(bk,bn,bj,bp,bl,bm){var bi=bk.length;if(typeof bn==="object"){for(var bo in bn){bg.access(bk,bo,bn[bo],bp,bl,bj)}return bk}if(bj!==az){bp=!bm&&bp&&bg.isFunction(bj);for(bo=0;bo<bi;bo++){bl(bk[bo],bn,bp?bj.call(bk[bo],bo,bl(bk[bo],bn)):bj,bm)}return bk}return bi?bl(bk[0],bn):az},now:function(){return(new Date).getTime()},uaMatch:function(bi){bi=bi.toLowerCase();bi=P.exec(bi)||bc.exec(bi)||ba.exec(bi)||bi.indexOf("compatible")<0&&a6.exec(bi)||[];return{browser:bi[1]||"",version:bi[2]||"0"}},browser:{}});bg.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(bi,bj){c["[object "+bj+"]"]=bj.toLowerCase()});a7=bg.uaMatch(a7);if(a7.browser){bg.browser[a7.browser]=true;bg.browser.version=a7.version}if(bg.browser.webkit){bg.browser.safari=true}if(Z){bg.inArray=function(bi,bj){return Z.call(bj,bi)}}if(!/\s/.test("\u00a0")){a9=/^[\s\xA0]+/;a5=/[\s\xA0]+$/}bd=bg(G);if(G.addEventListener){Y=function(){G.removeEventListener("DOMContentLoaded",Y,false);bg.ready()}}else{if(G.attachEvent){Y=function(){if(G.readyState==="complete"){G.detachEvent("onreadystatechange",Y);bg.ready()}}}}return av.jQuery=av.$=bg}();(function(){O.support={};var X=G.documentElement,V=G.createElement("script"),U=G.createElement("div"),T="script"+O.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=G.createElement("select"),E=B.appendChild(G.createElement("option"));if(!(!S||!S.length||!P)){O.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;O.support.optDisabled=!E.disabled;V.type="text/javascript";try{V.appendChild(G.createTextNode("window."+T+"=1;"))}catch(t){}X.insertBefore(V,X.firstChild);if(av[T]){O.support.scriptEval=true;delete av[T]}try{delete V.test}catch(W){O.support.deleteExpando=false}X.removeChild(V);if(U.attachEvent&&U.fireEvent){U.attachEvent("onclick",function c(){O.support.noCloneEvent=false;U.detachEvent("onclick",c)});U.cloneNode(true).fireEvent("onclick")}U=G.createElement("div");U.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";X=G.createDocumentFragment();X.appendChild(U.firstChild);O.support.checkClone=X.cloneNode(true).cloneNode(true).lastChild.checked;O(function(){var Z=G.createElement("div");Z.style.width=Z.style.paddingLeft="1px";G.body.appendChild(Z);O.boxModel=O.support.boxModel=Z.offsetWidth===2;if("zoom" in Z.style){Z.style.display="inline";Z.style.zoom=1;O.support.inlineBlockNeedsLayout=Z.offsetWidth===2;Z.style.display="";Z.innerHTML="<div style='width:4px;'></div>";O.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");O.support.reliableHiddenOffsets=Y[0].offsetHeight===0;Y[0].style.display="";Y[1].style.display="none";O.support.reliableHiddenOffsets=O.support.reliableHiddenOffsets&&Y[0].offsetHeight===0;Z.innerHTML="";G.body.removeChild(Z).style.display="none"});X=function(Z){var Y=G.createElement("div");Z="on"+Z;var aa=Z in Y;if(!aa){Y.setAttribute(Z,"return;");aa=typeof Y[Z]==="function"}return aa};O.support.submitBubbles=X("submit");O.support.changeBubbles=X("change");X=V=U=S=P=null}})();var a0={},Q=/^(?:\{.*\}|\[.*\])$/;O.extend({cache:{},uuid:0,expando:"jQuery"+O.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(t,c,S){if(O.acceptData(t)){t=t==av?a0:t;var P=t.nodeType,E=P?t[O.expando]:null,B=O.cache;if(!(P&&!E&&typeof c==="string"&&S===az)){if(P){E||(t[O.expando]=E=++O.uuid)}else{B=t}if(typeof c==="object"){if(P){B[E]=O.extend(B[E],c)}else{O.extend(B,c)}}else{if(P&&!B[E]){B[E]={}}}t=P?B[E]:B;if(S!==az){t[c]=S}return typeof c==="string"?t[c]:t}}},removeData:function(B,c){if(O.acceptData(B)){B=B==av?a0:B;var T=B.nodeType,S=T?B[O.expando]:B,P=O.cache,E=T?P[S]:S;if(c){if(E){delete E[c];T&&O.isEmptyObject(E)&&O.removeData(B)}}else{if(T&&O.support.deleteExpando){delete B[O.expando]}else{if(B.removeAttribute){B.removeAttribute(O.expando)}else{if(T){delete P[S]}else{for(var t in B){delete B[t]}}}}}}},acceptData:function(t){if(t.nodeName){var c=O.noData[t.nodeName.toLowerCase()];if(c){return !(c===true||t.getAttribute("classid")!==c)}}return true}});O.fn.extend({data:function(B,c){var U=null;if(typeof B==="undefined"){if(this.length){var T=this[0].attributes,S;U=O.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(){O.data(this,B)})}}var E=B.split(".");E[1]=E[1]?"."+E[1]:"";if(c===az){U=this.triggerHandler("getData"+E[1]+"!",[E[0]]);if(U===az&&this.length){U=O.data(this[0],B);U=i(this[0],B,U)}return U===az&&E[1]?this.data(E[0]):U}else{return this.each(function(){var W=O(this),V=[E[0],c];W.triggerHandler("setData"+E[1]+"!",V);O.data(this,B,c);W.triggerHandler("changeData"+E[1]+"!",V)})}},removeData:function(c){return this.each(function(){O.removeData(this,c)})}});O.extend({queue:function(t,c,E){if(t){c=(c||"fx")+"queue";var B=O.data(t,c);if(!E){return B||[]}if(!B||O.isArray(E)){B=O.data(t,c,O.makeArray(E))}else{B.push(E)}return B}},dequeue:function(t,c){c=c||"fx";var E=O.queue(t,c),B=E.shift();if(B==="inprogress"){B=E.shift()}if(B){c==="fx"&&E.unshift("inprogress");B.call(t,function(){O.dequeue(t,c)})}}});O.fn.extend({queue:function(t,c){if(typeof t!=="string"){c=t;t="fx"}if(c===az){return O.queue(this[0],t)}return this.each(function(){var B=O.queue(this,t,c);t==="fx"&&B[0]!=="inprogress"&&O.dequeue(this,t)})},dequeue:function(c){return this.each(function(){O.dequeue(this,c)})},delay:function(t,c){t=O.fx?O.fx.speeds[t]||t:t;c=c||"fx";return this.queue(c,function(){var B=this;setTimeout(function(){O.dequeue(B,c)},t)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var aO=/[\n\t]/g,ar=/\s+/,d=/\r/g,aR=/^(?:href|src|style)$/,aE=/^(?:button|input)$/i,af=/^(?:button|input|object|select|textarea)$/i,F=/^a(?:rea)?$/i,aB=/^(?:radio|checkbox)$/i;O.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};O.fn.extend({attr:function(t,c){return O.access(this,t,c,true,O.attr)},removeAttr:function(c){return this.each(function(){O.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(V){if(O.isFunction(V)){return this.each(function(W){var X=O(this);X.addClass(V.call(this,W,X.attr("class")))})}if(V&&typeof V==="string"){for(var U=(V||"").split(ar),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=O.trim(t)}else{P.className=V}}}}return this},removeClass:function(B){if(O.isFunction(B)){return this.each(function(W){var V=O(this);V.removeClass(B.call(this,W,V.attr("class")))})}if(B&&typeof B==="string"||B===az){for(var c=(B||"").split(ar),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(aO," "),t=0,E=c.length;t<E;t++){P=P.replace(" "+c[t]+" "," ")}S.className=O.trim(P)}else{S.className=""}}}}return this},toggleClass:function(t,c){var E=typeof t,B=typeof c==="boolean";if(O.isFunction(t)){return this.each(function(S){var P=O(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=O(this),S=c,V=t.split(ar);U=V[T++];){S=B?S:!P.hasClass(U);P[S?"addClass":"removeClass"](U)}}else{if(E==="undefined"||E==="boolean"){this.className&&O.data(this,"__className__",this.className);this.className=this.className||t===false?"":O.data(this,"__className__")||""}}})},hasClass:function(t){t=" "+t+" ";for(var c=0,B=this.length;c<B;c++){if((" "+this[c].className+" ").replace(aO," ").indexOf(t)>-1){return true}}return false},val:function(B){if(!arguments.length){var c=this[0];if(c){if(O.nodeName(c,"option")){var U=c.attributes.value;return !U||U.specified?c.value:c.text}if(O.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&&(O.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!O.nodeName(t.parentNode,"optgroup"))){B=O(t).val();if(c){return B}U.push(B)}}return U}if(aB.test(c.type)&&!O.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(d,"")}return az}var E=O.isFunction(B);return this.each(function(Y){var W=O(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(O.isArray(X)){X=O.map(X,function(Z){return Z==null?"":Z+""})}}}if(O.isArray(X)&&aB.test(this.type)){this.checked=O.inArray(W.val(),X)>=0}else{if(O.nodeName(this,"select")){var V=O.makeArray(X);O("option",this).each(function(){this.selected=O.inArray(O(this).val(),V)>=0});if(!V.length){this.selectedIndex=-1}}else{this.value=X}}}})}});O.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 az}if(P&&c in O.attrFn){return O(t)[c](S)}P=t.nodeType!==1||!O.isXMLDoc(t);var E=S!==az;c=P&&O.props[c]||c;var B=aR.test(c);if((c in t||t[c]!==az)&&P&&!B){if(E){c==="type"&&aE.test(t.nodeName)&&t.parentNode&&O.error("type property can't be changed");if(S===null){t.nodeType===1&&t.removeAttribute(c)}else{t[c]=S}}if(O.nodeName(t,"form")&&t.getAttributeNode(c)){return t.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=t.getAttributeNode("tabIndex"))&&c.specified?c.value:af.test(t.nodeName)||F.test(t.nodeName)&&t.href?0:az}return t[c]}if(!O.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 az}t=!O.support.hrefNormalized&&P&&B?t.getAttribute(c,2):t.getAttribute(c);return t===null?az:t}});var ah=/\.(.*)$/,K=/^(?:textarea|input|select)$/i,m=/\./g,a1=/ /g,q=/[^\w\s.|`]/g,e=function(c){return c.replace(q,"\\$&")},ac={focusin:0,focusout:0};O.event={add:function(Z,X,W,V){if(!(Z.nodeType===3||Z.nodeType===8)){if(O.isWindow(Z)&&Z!==av&&!Z.frameElement){Z=av}if(W===false){W=ak}else{if(!W){return}}var U,T;if(W.handler){U=W;W=U.handler}if(!W.guid){W.guid=O.guid++}if(T=O.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 O!=="undefined"&&!O.event.triggered?O.event.handle.apply(E.elem,arguments):az}}E.elem=Z;X=X.split(" ");for(var Y=0,c;P=X[Y++];){T=U?O.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=O.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);O.event.global[P]=true}Z=null}}},global:{},remove:function(aa,X,W,V){if(!(aa.nodeType===3||aa.nodeType===8)){if(W===false){W=ak}var U,T,P=0,S,E,Z,c,B,t,Y=aa.nodeType?"events":"__events__",a2=O.data(aa),ab=a2&&a2[Y];if(a2&&ab){if(typeof ab==="function"){a2=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){O.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("(^|\\.)"+O.map(E.slice(0).sort(),e).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(B=ab[U]){if(W){c=O.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){O.removeEvent(aa,U,a2.handle)}delete ab[U]}}else{for(T=0;T<B.length;T++){t=B[T];if(S||Z.test(t.namespace)){O.event.remove(aa,c,t.handler,T);B.splice(T--,1)}}}}}if(O.isEmptyObject(ab)){if(X=a2.handle){X.elem=null}delete a2.events;delete a2.handle;if(typeof a2==="function"){O.removeData(aa,Y)}else{O.isEmptyObject(a2)&&O.removeData(aa)}}}}}},trigger:function(X,V,U,T){var S=X.type||X;if(!T){X=typeof X==="object"?X[O.expando]?X:O.extend(O.Event(S),X):O.Event(S);if(S.indexOf("!")>=0){X.type=S=S.slice(0,-1);X.exclusive=true}if(!U){X.stopPropagation();O.event.global[S]&&O.each(O.cache,function(){this.events&&this.events[S]&&O.event.trigger(X,V,this.handle.elem)})}if(!U||U.nodeType===3||U.nodeType===8){return az}X.result=az;X.target=U;V=O.makeArray(V);V.unshift(X)}X.currentTarget=U;(T=U.nodeType?O.data(U,"handle"):(O.data(U,"__events__")||{}).handle)&&T.apply(U,V);T=U.parentNode||U.ownerDocument;try{if(!(U&&U.nodeName&&O.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){O.event.trigger(X,V,T,true)}else{if(!X.isDefaultPrevented()){var B;T=X.target;var E=S.replace(ah,""),t=O.nodeName(T,"a")&&E==="click",W=O.event.special[E]||{};if((!W._default||W._default.call(U,X)===false)&&!t&&!(T&&T.nodeName&&O.noData[T.nodeName.toLowerCase()])){try{if(T[E]){if(B=T["on"+E]){T["on"+E]=null}O.event.triggered=true;T[E]()}}catch(c){}if(B){T["on"+E]=B}O.event.triggered=false}}}},handle:function(B){var c,U,T,S;U=[];var P=O.makeArray(arguments);B=P[0]=O.event.fix(B||av.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=O.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!==az){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[O.expando]){return t}var c=t;t=O.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||G}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=G.documentElement;E=G.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!==az){t.which=t.button&1?1:t.button&2?3:t.button&4?2:0}return t},guid:100000000,proxy:O.proxy,special:{ready:{setup:O.bindReady,teardown:O.noop},live:{add:function(c){O.event.add(this,ag(c.origType,c.selector),O.extend({},c,{handler:z,guid:c.handler.guid}))},remove:function(c){O.event.remove(this,ag(c.origType,c.selector),c)}},beforeunload:{setup:function(t,c,B){if(O.isWindow(this)){this.onbeforeunload=B}},teardown:function(t,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};O.removeEvent=G.removeEventListener?function(t,c,B){t.removeEventListener&&t.removeEventListener(c,B,false)}:function(t,c,B){t.detachEvent&&t.detachEvent("on"+c,B)};O.Event=function(c){if(!this.preventDefault){return new O.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=O.now();this[O.expando]=true};O.Event.prototype={preventDefault:function(){this.isDefaultPrevented=I;var c=this.originalEvent;if(c){if(c.preventDefault){c.preventDefault()}else{c.returnValue=false}}},stopPropagation:function(){this.isPropagationStopped=I;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=I;this.stopPropagation()},isDefaultPrevented:ak,isPropagationStopped:ak,isImmediatePropagationStopped:ak};var C=function(t){var c=t.relatedTarget;try{for(;c&&c!==this;){c=c.parentNode}if(c!==this){t.type=t.data;O.event.handle.apply(this,arguments)}}catch(B){}},o=function(c){c.type=c.data;O.event.handle.apply(this,arguments)};O.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,c){O.event.special[t]={setup:function(B){O.event.add(this,c,B&&B.selector?o:C,t)},teardown:function(B){O.event.remove(this,c,B&&B.selector?o:C)}}});if(!O.support.submitBubbles){O.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){O.event.add(this,"click.specialSubmit",function(t){var c=t.target,B=c.type;if((B==="submit"||B==="image")&&O(c).closest("form").length){t.liveFired=az;return aX("submit",this,arguments)}});O.event.add(this,"keypress.specialSubmit",function(t){var c=t.target,B=c.type;if((B==="text"||B==="password")&&O(c).closest("form").length&&t.keyCode===13){t.liveFired=az;return aX("submit",this,arguments)}})}else{return false}},teardown:function(){O.event.remove(this,".specialSubmit")}}}if(!O.support.changeBubbles){var aj,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?O.map(t.options,function(E){return E.selected}).join("-"):""}else{if(t.nodeName.toLowerCase()==="select"){B=t.selectedIndex}}}return B},ae=function(t,c){var P=t.target,E,B;if(!(!K.test(P.nodeName)||P.readOnly)){E=O.data(P,"_change_data");B=b(P);if(t.type!=="focusout"||P.type!=="radio"){O.data(P,"_change_data",B)}if(!(E===az||B===E)){if(E!=null||B){t.type="change";t.liveFired=az;return O.event.trigger(t,c,P)}}}};O.event.special.change={filters:{focusout:ae,beforedeactivate:ae,click:function(t){var c=t.target,B=c.type;if(B==="radio"||B==="checkbox"||c.nodeName.toLowerCase()==="select"){return ae.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 ae.call(this,t)}},beforeactivate:function(c){c=c.target;O.data(c,"_change_data",b(c))}},setup:function(){if(this.type==="file"){return false}for(var c in aj){O.event.add(this,c+".specialChange",aj[c])}return K.test(this.nodeName)},teardown:function(){O.event.remove(this,".specialChange");return K.test(this.nodeName)}};aj=O.event.special.change.filters;aj.focus=aj.beforeactivate}G.addEventListener&&O.each({focus:"focusin",blur:"focusout"},function(t,c){function B(E){E=O.event.fix(E);E.type=c;return O.event.trigger(E,null,E.target)}O.event.special[c]={setup:function(){ac[c]++===0&&G.addEventListener(t,B,true)},teardown:function(){--ac[c]===0&&G.removeEventListener(t,B,true)}}});O.each(["bind","one"],function(t,c){O.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(O.isFunction(T)||T===false){S=T;T=az}var B=c==="one"?O.proxy(S,function(V){O(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++){O.event.add(this[P],U,B,T)}}return this}});O.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++){O.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(){O.event.trigger(t,c,this)})},triggerHandler:function(t,c){if(this[0]){var B=O.Event(t);B.preventDefault();B.stopPropagation();O.event.trigger(B,c,this[0]);return B.result}},toggle:function(t){for(var c=arguments,B=1;B<c.length;){O.proxy(t,c[B++])}return this.click(O.proxy(t,function(P){var E=(O.data(this,"lastToggle"+t.guid)||0)%B;O.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 aQ={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};O.each(["live","die"],function(t,c){O.fn[c]=function(X,W,V,U){var S,T=0,P,Y,B=U||this.selector;U=U?this:O(this.context);if(typeof X==="object"&&!X.preventDefault){for(S in X){U[c](S,W,X[S],B)}return this}if(O.isFunction(W)){V=W;W=az}for(X=(X||"").split(" ");(S=X[T++])!=null;){P=ah.exec(S);Y="";if(P){Y=P[0];S=S.replace(ah,"")}if(S==="hover"){X.push("mouseenter"+Y,"mouseleave"+Y)}else{P=S;if(S==="focus"||S==="blur"){X.push(aQ[S]+Y);S+=Y}else{S=(aQ[S]||S)+Y}if(c==="live"){Y=0;for(var E=U.length;Y<E;Y++){O.event.add(U[Y],"live."+ag(S,B),{data:W,selector:B,handler:V,origType:S,origHandler:V,preType:P})}}else{U.unbind("live."+ag(S,B),V)}}}return this}});O.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){O.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(O.attrFn){O.attrFn[c]=true}});av.attachEvent&&!av.addEventListener&&O(av).bind("unload",function(){for(var t in O.cache){if(O.cache[t].handle){try{O.event.remove(O.cache[t].handle.elem)}catch(c){}}}});(function(){function ab(a9,a8,a6,a7,a5,a4){a5=0;for(var bb=a7.length;a5<bb;a5++){var ba=a7[a5];if(ba){var bc=false;for(ba=ba[a9];ba;){if(ba.sizcache===a6){bc=a7[ba.sizset];break}if(ba.nodeType===1&&!a4){ba.sizcache=a6;ba.sizset=a5}if(ba.nodeName.toLowerCase()===a8){bc=ba;break}ba=ba[a9]}a7[a5]=bc}}}function Y(a9,a8,a6,a7,a5,a4){a5=0;for(var bb=a7.length;a5<bb;a5++){var ba=a7[a5];if(ba){var bc=false;for(ba=ba[a9];ba;){if(ba.sizcache===a6){bc=a7[ba.sizset];break}if(ba.nodeType===1){if(!a4){ba.sizcache=a6;ba.sizset=a5}if(typeof a8!=="string"){if(ba===a8){bc=true;break}}else{if(S.filter(a8,[ba]).length>0){bc=ba;break}}}ba=ba[a9]}a7[a5]=bc}}}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(bb,ba,a7,a8){a7=a7||[];var a6=ba=ba||G;if(ba.nodeType!==1&&ba.nodeType!==9){return[]}if(!bb||typeof bb!=="string"){return a7}var a5,bg,bf,bh,be,bd=true,bc=S.isXML(ba),a4=[],a9=bb;do{W.exec("");if(a5=W.exec(a9)){a9=a5[3];a4.push(a5[1]);if(a5[2]){bh=a5[3];break}}}while(a5);if(a4.length>1&&aa.exec(bb)){if(a4.length===2&&E.relative[a4[0]]){bg=X(a4[0]+a4[1],ba)}else{for(bg=E.relative[a4[0]]?[ba]:S(a4.shift(),ba);a4.length;){bb=a4.shift();if(E.relative[bb]){bb+=a4.shift()}bg=X(bb,bg)}}}else{if(!a8&&a4.length>1&&ba.nodeType===9&&!bc&&E.match.ID.test(a4[0])&&!E.match.ID.test(a4[a4.length-1])){a5=S.find(a4.shift(),ba,bc);ba=a5.expr?S.filter(a5.expr,a5.set)[0]:a5.set[0]}if(ba){a5=a8?{expr:a4.pop(),set:t(a8)}:S.find(a4.pop(),a4.length===1&&(a4[0]==="~"||a4[0]==="+")&&ba.parentNode?ba.parentNode:ba,bc);bg=a5.expr?S.filter(a5.expr,a5.set):a5.set;if(a4.length>0){bf=t(bg)}else{bd=false}for(;a4.length;){a5=be=a4.pop();if(E.relative[be]){a5=a4.pop()}else{be=""}if(a5==null){a5=ba}E.relative[be](bf,a5,bc)}}else{bf=[]}}bf||(bf=bg);bf||S.error(be||bb);if(U.call(bf)==="[object Array]"){if(bd){if(ba&&ba.nodeType===1){for(bb=0;bf[bb]!=null;bb++){if(bf[bb]&&(bf[bb]===true||bf[bb].nodeType===1&&S.contains(ba,bf[bb]))){a7.push(bg[bb])}}}else{for(bb=0;bf[bb]!=null;bb++){bf[bb]&&bf[bb].nodeType===1&&a7.push(bg[bb])}}}else{a7.push.apply(a7,bf)}}else{t(bf,a7)}if(bh){S(bh,a6,a7,a8);S.uniqueSort(a7)}return a7};S.uniqueSort=function(a5){if(a3){T=P;a5.sort(a3);if(T){for(var a4=1;a4<a5.length;a4++){a5[a4]===a5[a4-1]&&a5.splice(a4--,1)}}}return a5};S.matches=function(a5,a4){return S(a5,null,null,a4)};S.matchesSelector=function(a5,a4){return S(a4,null,null,[a5]).length>0};S.find=function(a9,a8,a6){var a7;if(!a9){return[]}for(var a5=0,a4=E.order.length;a5<a4;a5++){var bb,ba=E.order[a5];if(bb=E.leftMatch[ba].exec(a9)){var bc=bb[1];bb.splice(1,1);if(bc.substr(bc.length-1)!=="\\"){bb[1]=(bb[1]||"").replace(/\\/g,"");a7=E.find[ba](bb,a8,a6);if(a7!=null){a9=a9.replace(E.match[ba],"");break}}}}a7||(a7=a8.getElementsByTagName("*"));return{set:a7,expr:a9}};S.filter=function(bc,bb,a7,a8){for(var a6,a5,bh=bc,bg=[],bi=bb,bf=bb&&bb[0]&&S.isXML(bb[0]);bc&&bb.length;){for(var be in E.filter){if((a6=E.leftMatch[be].exec(bc))!=null&&a6[2]){var bd,a4,ba=E.filter[be];a4=a6[1];a5=false;a6.splice(1,1);if(a4.substr(a4.length-1)!=="\\"){if(bi===bg){bg=[]}if(E.preFilter[be]){if(a6=E.preFilter[be](a6,bi,a7,bg,a8,bf)){if(a6===true){continue}}else{a5=bd=true}}if(a6){for(var a9=0;(a4=bi[a9])!=null;a9++){if(a4){bd=ba(a4,a6,a9,bi);var bj=a8^!!bd;if(a7&&bd!=null){if(bj){a5=true}else{bi[a9]=false}}else{if(bj){bg.push(a4);a5=true}}}}}if(bd!==az){a7||(bi=bg);bc=bc.replace(E.match[be],"");if(!a5){return[]}break}}}}if(bc===bh){if(a5==null){S.error(bc)}else{break}}bh=bc}return bi};S.error=function(a4){throw"Syntax error, unrecognized expression: "+a4};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(a4){return a4.getAttribute("href")}},relative:{"+":function(a6,a5){var a9=typeof a5==="string",a4=a9&&!/\W/.test(a5);a9=a9&&!a4;if(a4){a5=a5.toLowerCase()}a4=0;for(var a8=a6.length,a7;a4<a8;a4++){if(a7=a6[a4]){for(;(a7=a7.previousSibling)&&a7.nodeType!==1;){}a6[a4]=a9||a7&&a7.nodeName.toLowerCase()===a5?a7||false:a7===a5}}a9&&S.filter(a5,a6,true)},">":function(a6,a5){var a9,a4=typeof a5==="string",a8=0,a7=a6.length;if(a4&&!/\W/.test(a5)){for(a5=a5.toLowerCase();a8<a7;a8++){if(a9=a6[a8]){a9=a9.parentNode;a6[a8]=a9.nodeName.toLowerCase()===a5?a9:false}}}else{for(;a8<a7;a8++){if(a9=a6[a8]){a6[a8]=a4?a9.parentNode:a9.parentNode===a5}}a4&&S.filter(a5,a6,true)}},"":function(a6,a5,a9){var a4,a8=V++,a7=Y;if(typeof a5==="string"&&!/\W/.test(a5)){a4=a5=a5.toLowerCase();a7=ab}a7("parentNode",a5,a8,a6,a4,a9)},"~":function(a6,a5,a9){var a4,a8=V++,a7=Y;if(typeof a5==="string"&&!/\W/.test(a5)){a4=a5=a5.toLowerCase();a7=ab}a7("previousSibling",a5,a8,a6,a4,a9)}},find:{ID:function(a5,a4,a6){if(typeof a4.getElementById!=="undefined"&&!a6){return(a5=a4.getElementById(a5[1]))&&a5.parentNode?[a5]:[]}},NAME:function(a6,a5){if(typeof a5.getElementsByName!=="undefined"){for(var a9=[],a4=a5.getElementsByName(a6[1]),a8=0,a7=a4.length;a8<a7;a8++){a4[a8].getAttribute("name")===a6[1]&&a9.push(a4[a8])}return a9.length===0?null:a9}},TAG:function(a5,a4){return a4.getElementsByTagName(a5[1])}},preFilter:{CLASS:function(a7,a6,ba,a4,a9,a8){a7=" "+a7[1].replace(/\\/g,"")+" ";if(a8){return a7}a8=0;for(var a5;(a5=a6[a8])!=null;a8++){if(a5){if(a9^(a5.className&&(" "+a5.className+" ").replace(/[\t\n]/g," ").indexOf(a7)>=0)){ba||a4.push(a5)}else{if(ba){a6[a8]=false}}}}return false},ID:function(a4){return a4[1].replace(/\\/g,"")},TAG:function(a4){return a4[1].toLowerCase()},CHILD:function(a5){if(a5[1]==="nth"){var a4=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a5[2]==="even"&&"2n"||a5[2]==="odd"&&"2n+1"||!/\D/.test(a5[2])&&"0n+"+a5[2]||a5[2]);a5[2]=a4[1]+(a4[2]||1)-0;a5[3]=a4[3]-0}a5[0]=V++;return a5},ATTR:function(a6,a5,a9,a4,a8,a7){a5=a6[1].replace(/\\/g,"");if(!a7&&E.attrMap[a5]){a6[1]=E.attrMap[a5]}if(a6[2]==="~="){a6[4]=" "+a6[4]+" "}return a6},PSEUDO:function(a6,a5,a8,a4,a7){if(a6[1]==="not"){if((W.exec(a6[3])||"").length>1||/^\w/.test(a6[3])){a6[3]=S(a6[3],null,null,a5)}else{a6=S.filter(a6[3],a5,a8,true^a7);a8||a4.push.apply(a4,a6);return false}}else{if(E.match.POS.test(a6[0])||E.match.CHILD.test(a6[0])){return true}}return a6},POS:function(a4){a4.unshift(true);return a4}},filters:{enabled:function(a4){return a4.disabled===false&&a4.type!=="hidden"},disabled:function(a4){return a4.disabled===true},checked:function(a4){return a4.checked===true},selected:function(a4){return a4.selected===true},parent:function(a4){return !!a4.firstChild},empty:function(a4){return !a4.firstChild},has:function(a5,a4,a6){return !!S(a6[3],a5).length},header:function(a4){return/h\d/i.test(a4.nodeName)},text:function(a4){return"text"===a4.type},radio:function(a4){return"radio"===a4.type},checkbox:function(a4){return"checkbox"===a4.type},file:function(a4){return"file"===a4.type},password:function(a4){return"password"===a4.type},submit:function(a4){return"submit"===a4.type},image:function(a4){return"image"===a4.type},reset:function(a4){return"reset"===a4.type},button:function(a4){return"button"===a4.type||a4.nodeName.toLowerCase()==="button"},input:function(a4){return/input|select|textarea|button/i.test(a4.nodeName)}},setFilters:{first:function(a5,a4){return a4===0},last:function(a6,a5,a7,a4){return a5===a4.length-1},even:function(a5,a4){return a4%2===0},odd:function(a5,a4){return a4%2===1},lt:function(a5,a4,a6){return a4<a6[3]-0},gt:function(a5,a4,a6){return a4>a6[3]-0},nth:function(a5,a4,a6){return a6[3]-0===a4},eq:function(a5,a4,a6){return a6[3]-0===a4}},filter:{PSEUDO:function(a6,a5,a9,a4){var a8=a5[1],a7=E.filters[a8];if(a7){return a7(a6,a9,a5,a4)}else{if(a8==="contains"){return(a6.textContent||a6.innerText||S.getText([a6])||"").indexOf(a5[3])>=0}else{if(a8==="not"){a5=a5[3];a9=0;for(a4=a5.length;a9<a4;a9++){if(a5[a9]===a6){return false}}return true}else{S.error("Syntax error, unrecognized expression: "+a8)}}}},CHILD:function(a7,a6){var bb=a6[1],a4=a7;switch(bb){case"only":case"first":for(;a4=a4.previousSibling;){if(a4.nodeType===1){return false}}if(bb==="first"){return true}a4=a7;case"last":for(;a4=a4.nextSibling;){if(a4.nodeType===1){return false}}return true;case"nth":bb=a6[2];var a9=a6[3];if(bb===1&&a9===0){return true}var a8=a6[0],a5=a7.parentNode;if(a5&&(a5.sizcache!==a8||!a7.nodeIndex)){var ba=0;for(a4=a5.firstChild;a4;a4=a4.nextSibling){if(a4.nodeType===1){a4.nodeIndex=++ba}}a5.sizcache=a8}a4=a7.nodeIndex-a9;return bb===0?a4===0:a4%bb===0&&a4/bb>=0}},ID:function(a5,a4){return a5.nodeType===1&&a5.getAttribute("id")===a4},TAG:function(a5,a4){return a4==="*"&&a5.nodeType===1||a5.nodeName.toLowerCase()===a4},CLASS:function(a5,a4){return(" "+(a5.className||a5.getAttribute("class"))+" ").indexOf(a4)>-1},ATTR:function(a6,a5){var a9=a5[1];a9=E.attrHandle[a9]?E.attrHandle[a9](a6):a6[a9]!=null?a6[a9]:a6.getAttribute(a9);var a4=a9+"",a8=a5[2],a7=a5[4];return a9==null?a8==="!=":a8==="="?a4===a7:a8==="*="?a4.indexOf(a7)>=0:a8==="~="?(" "+a4+" ").indexOf(a7)>=0:!a7?a4&&a9!==false:a8==="!="?a4!==a7:a8==="^="?a4.indexOf(a7)===0:a8==="$="?a4.substr(a4.length-a7.length)===a7:a8==="|="?a4===a7||a4.substr(0,a7.length+1)===a7+"-":false},POS:function(a6,a5,a8,a4){var a7=E.setFilters[a5[2]];if(a7){return a7(a6,a8,a5,a4)}}}},aa=E.match.POS,c=function(a5,a4){return"\\"+(a4-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(a5,a4){a5=Array.prototype.slice.call(a5,0);if(a4){a4.push.apply(a4,a5);return a4}return a5};try{Array.prototype.slice.call(G.documentElement.childNodes,0)}catch(Z){t=function(a6,a5){var a8=0,a4=a5||[];if(U.call(a6)==="[object Array]"){Array.prototype.push.apply(a4,a6)}else{if(typeof a6.length==="number"){for(var a7=a6.length;a8<a7;a8++){a4.push(a6[a8])}}else{for(;a6[a8];a8++){a4.push(a6[a8])}}}return a4}}var a3,a2;if(G.documentElement.compareDocumentPosition){a3=function(a5,a4){if(a5===a4){T=true;return 0}if(!a5.compareDocumentPosition||!a4.compareDocumentPosition){return a5.compareDocumentPosition?-1:1}return a5.compareDocumentPosition(a4)&4?-1:1}}else{a3=function(a7,a6){var ba,a4,a9=[],a8=[];ba=a7.parentNode;a4=a6.parentNode;var a5=ba;if(a7===a6){T=true;return 0}else{if(ba===a4){return a2(a7,a6)}else{if(ba){if(!a4){return 1}}else{return -1}}}for(;a5;){a9.unshift(a5);a5=a5.parentNode}for(a5=a4;a5;){a8.unshift(a5);a5=a5.parentNode}ba=a9.length;a4=a8.length;for(a5=0;a5<ba&&a5<a4;a5++){if(a9[a5]!==a8[a5]){return a2(a9[a5],a8[a5])}}return a5===ba?a2(a7,a8[a5],-1):a2(a9[a5],a6,1)};a2=function(a5,a4,a6){if(a5===a4){return a6}for(a5=a5.nextSibling;a5;){if(a5===a4){return -1}a5=a5.nextSibling}return 1}}S.getText=function(a6){for(var a5="",a7,a4=0;a6[a4];a4++){a7=a6[a4];if(a7.nodeType===3||a7.nodeType===4){a5+=a7.nodeValue}else{if(a7.nodeType!==8){a5+=S.getText(a7.childNodes)}}}return a5};(function(){var a5=G.createElement("div"),a4="script"+(new Date).getTime(),a6=G.documentElement;a5.innerHTML="<a name='"+a4+"'/>";a6.insertBefore(a5,a6.firstChild);if(G.getElementById(a4)){E.find.ID=function(a7,a9,a8){if(typeof a9.getElementById!=="undefined"&&!a8){return(a9=a9.getElementById(a7[1]))?a9.id===a7[1]||typeof a9.getAttributeNode!=="undefined"&&a9.getAttributeNode("id").nodeValue===a7[1]?[a9]:az:[]}};E.filter.ID=function(a7,a9){var a8=typeof a7.getAttributeNode!=="undefined"&&a7.getAttributeNode("id");return a7.nodeType===1&&a8&&a8.nodeValue===a9}}a6.removeChild(a5);a6=a5=null})();(function(){var a4=G.createElement("div");a4.appendChild(G.createComment(""));if(a4.getElementsByTagName("*").length>0){E.find.TAG=function(a6,a9){var a5=a9.getElementsByTagName(a6[1]);if(a6[1]==="*"){for(var a8=[],a7=0;a5[a7];a7++){a5[a7].nodeType===1&&a8.push(a5[a7])}a5=a8}return a5}}a4.innerHTML="<a href='#'></a>";if(a4.firstChild&&typeof a4.firstChild.getAttribute!=="undefined"&&a4.firstChild.getAttribute("href")!=="#"){E.attrHandle.href=function(a5){return a5.getAttribute("href",2)}}a4=null})();G.querySelectorAll&&function(){var a5=S,a4=G.createElement("div");a4.innerHTML="<p class='TEST'></p>";if(!(a4.querySelectorAll&&a4.querySelectorAll(".TEST").length===0)){S=function(a7,bb,ba,a8){bb=bb||G;a7=a7.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!a8&&!S.isXML(bb)){if(bb.nodeType===9){try{return t(bb.querySelectorAll(a7),ba)}catch(be){}}else{if(bb.nodeType===1&&bb.nodeName.toLowerCase()!=="object"){var a9=bb.getAttribute("id"),bd=a9||"__sizzle__";a9||bb.setAttribute("id",bd);try{return t(bb.querySelectorAll("#"+bd+" "+a7),ba)}catch(bc){}finally{a9||bb.removeAttribute("id")}}}}return a5(a7,bb,ba,a8)};for(var a6 in a5){S[a6]=a5[a6]}a4=null}}();(function(){var a6=G.documentElement,a5=a6.matchesSelector||a6.mozMatchesSelector||a6.webkitMatchesSelector||a6.msMatchesSelector,a7=false;try{a5.call(G.documentElement,"[test!='']:sizzle")}catch(a4){a7=true}if(a5){S.matchesSelector=function(ba,a9){a9=a9.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!S.isXML(ba)){try{if(a7||!E.match.PSEUDO.test(a9)&&!/!=/.test(a9)){return a5.call(ba,a9)}}catch(a8){}}return S(a9,null,null,[ba]).length>0}}})();(function(){var a4=G.createElement("div");a4.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!a4.getElementsByClassName||a4.getElementsByClassName("e").length===0)){a4.lastChild.className="e";if(a4.getElementsByClassName("e").length!==1){E.order.splice(1,0,"CLASS");E.find.CLASS=function(a6,a7,a5){if(typeof a7.getElementsByClassName!=="undefined"&&!a5){return a7.getElementsByClassName(a6[1])}};a4=null}}})();S.contains=G.documentElement.contains?function(a5,a4){return a5!==a4&&(a5.contains?a5.contains(a4):true)}:G.documentElement.compareDocumentPosition?function(a5,a4){return !!(a5.compareDocumentPosition(a4)&16)}:function(){return false};S.isXML=function(a4){return(a4=(a4?a4.ownerDocument||a4:0).documentElement)?a4.nodeName!=="HTML":false};var X=function(a7,a6){for(var ba,a4=[],a9="",a8=a6.nodeType?[a6]:a6;ba=E.match.PSEUDO.exec(a7);){a9+=ba[0];a7=a7.replace(E.match.PSEUDO,"")}a7=E.relative[a7]?a7+"*":a7;ba=0;for(var a5=a8.length;ba<a5;ba++){S(a7,a8[ba],a4)}return S.filter(a9,a4)};O.find=S;O.expr=S.selectors;O.expr[":"]=O.expr.filters;O.unique=S.uniqueSort;O.text=S.getText;O.isXMLDoc=S.isXML;O.contains=S.contains})();var aS=/Until$/,ay=/^(?:parents|prevUntil|prevAll)/,aF=/,/,aP=/^.[^:#\[\.,]*$/,an=Array.prototype.slice,H=O.expr.match.POS;O.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;O.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=O(t);return this.filter(function(){for(var E=0,B=c.length;E<B;E++){if(O.contains(this,c[E])){return true}}})},not:function(c){return this.pushStack(aK(this,c,false),"not",c)},filter:function(c){return this.pushStack(aK(this,c,true),"filter",c)},is:function(c){return !!c&&O.filter(c,this).length>0},closest:function(V,U){var T=[],S,P,E=this[0];if(O.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]=O.expr.match.POS.test(t)?O(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:O(E).is(S)){T.push({selector:t,elem:E,level:c})}}E=E.parentNode;c++}}return T}t=H.test(V)?O(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:O.find.matchesSelector(E,V)){T.push(E);break}else{E=E.parentNode;if(!E||!E.ownerDocument||E===U){break}}}}T=T.length>1?O.unique(T):T;return this.pushStack(T,"closest",V)},index:function(c){if(!c||typeof c==="string"){return O.inArray(this[0],c?O(c):this.parent().children())}return O.inArray(c.jquery?c[0]:c,this)},add:function(t,c){var E=typeof t==="string"?O(t,c||this.context):O.makeArray(t),B=O.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:O.unique(B))},andSelf:function(){return this.add(this.prevObject)}});O.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return O.dir(c,"parentNode")},parentsUntil:function(t,c,B){return O.dir(t,"parentNode",B)},next:function(c){return O.nth(c,2,"nextSibling")},prev:function(c){return O.nth(c,2,"previousSibling")},nextAll:function(c){return O.dir(c,"nextSibling")},prevAll:function(c){return O.dir(c,"previousSibling")},nextUntil:function(t,c,B){return O.dir(t,"nextSibling",B)},prevUntil:function(t,c,B){return O.dir(t,"previousSibling",B)},siblings:function(c){return O.sibling(c.parentNode.firstChild,c)},children:function(c){return O.sibling(c.firstChild)},contents:function(c){return O.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:O.makeArray(c.childNodes)}},function(t,c){O.fn[t]=function(P,E){var B=O.map(this,c,P);aS.test(t)||(E=P);if(E&&typeof E==="string"){B=O.filter(E,B)}B=this.length>1?O.unique(B):B;if((this.length>1||aF.test(E))&&ay.test(t)){B=B.reverse()}return this.pushStack(B,t,an.call(arguments).join(","))}});O.extend({filter:function(t,c,B){if(B){t=":not("+t+")"}return c.length===1?O.find.matchesSelector(c[0],t)?[c[0]]:[]:O.find.matches(t,c)},dir:function(t,c,E){var B=[];for(t=t[c];t&&t.nodeType!==9&&(E===az||t.nodeType!==1||!O(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 aD=/ jQuery\d+="(?:\d+|null)"/g,aM=/^\s+/,aV=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,aI=/<([\w:]+)/,r=/<tbody/i,f=/<|&#?\w+;/,at=/<(?:script|object|embed|option|style)/i,L=/checked\s*(?:[^=]|=\s*.checked.)/i,aT=/\=([^="'>\s]+\/)>/g,ao={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,"",""]};ao.optgroup=ao.option;ao.tbody=ao.tfoot=ao.colgroup=ao.caption=ao.thead;ao.th=ao.td;if(!O.support.htmlSerialize){ao._default=[1,"div<div>","</div>"]}O.fn.extend({text:function(c){if(O.isFunction(c)){return this.each(function(t){var B=O(this);B.text(c.call(this,t,B.text()))})}if(typeof c!=="object"&&c!==az){return this.empty().append((this[0]&&this[0].ownerDocument||G).createTextNode(c))}return O.text(this)},wrapAll:function(t){if(O.isFunction(t)){return this.each(function(B){O(this).wrapAll(t.call(this,B))})}if(this[0]){var c=O(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(O.isFunction(c)){return this.each(function(t){O(this).wrapInner(c.call(this,t))})}return this.each(function(){var t=O(this),B=t.contents();B.length?B.wrapAll(c):t.append(c)})},wrap:function(c){return this.each(function(){O(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){O.nodeName(this,"body")||O(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=O(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,O(arguments[0]).toArray());return c}}},remove:function(t,c){for(var E=0,B;(B=this[E])!=null;E++){if(!t||O.filter(t,[B]).length){if(!c&&B.nodeType===1){O.cleanData(B.getElementsByTagName("*"));O.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&&O.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(t){var c=this.map(function(){if(!O.support.noCloneEvent&&!O.isXMLDoc(this)){var E=this.outerHTML,B=this.ownerDocument;if(!E){E=B.createElement("div");E.appendChild(this.cloneNode(true));E=E.innerHTML}return O.clean([E.replace(aD,"").replace(aT,'="$1">').replace(aM,"")],B)[0]}else{return this.cloneNode(true)}});if(t===true){aw(this,c);aw(this.find("*"),c.find("*"))}return c},html:function(t){if(t===az){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aD,""):null}else{if(typeof t==="string"&&!at.test(t)&&(O.support.leadingWhitespace||!aM.test(t))&&!ao[(aI.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(aV,"<$1></$2>");try{for(var c=0,E=this.length;c<E;c++){if(this[c].nodeType===1){O.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=t}}}catch(B){this.empty().append(t)}}else{O.isFunction(t)?this.each(function(S){var P=O(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(O.isFunction(c)){return this.each(function(t){var E=O(this),B=E.html();E.replaceWith(c.call(this,t,B))})}if(typeof c!=="string"){c=O(c).detach()}return this.each(function(){var t=this.nextSibling,B=this.parentNode;O(this).remove();t?O(t).before(c):O(B).append(c)})}else{return this.pushStack(O(O.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(!O.support.checkClone&&arguments.length===3&&typeof t==="string"&&L.test(t)){return this.each(function(){O(this).domManip(V,U,T,true)})}if(O.isFunction(t)){return this.each(function(W){var X=O(this);V[0]=t.call(this,W,U?X.html():az);X.domManip(V,U,T)})}if(this[0]){S=t&&t.parentNode;S=O.support.parentNode&&S&&S.nodeType===11&&S.childNodes.length===this.length?{fragment:S}:O.buildFragment(V,this,B);E=S.fragment;if(P=E.childNodes.length===1?E=E.firstChild:E.firstChild){U=U&&O.nodeName(P,"tr");P=0;for(var c=this.length;P<c;P++){T.call(U?O.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&&O.each(B,aC)}return this}});O.buildFragment=function(t,c,S){var P,E,B;c=c&&c[0]?c[0].ownerDocument||c[0]:G;if(t.length===1&&typeof t[0]==="string"&&t[0].length<512&&c===G&&!at.test(t[0])&&(O.support.checkClone||!L.test(t[0]))){E=true;if(B=O.fragments[t[0]]){if(B!==1){P=B}}}if(!P){P=c.createDocumentFragment();O.clean(t,c,P,S)}if(E){O.fragments[t[0]]=B?P:1}return{fragment:P,cacheable:E}};O.fragments={};O.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,c){O.fn[t]=function(T){var S=[];T=O(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();O(T[P])[c](B);S=S.concat(B)}return this.pushStack(S,t,T.selector)}}});O.extend({clean:function(X,V,U,T){V=V||G;if(typeof V.createElement==="undefined"){V=V.ownerDocument||V[0]&&V[0].ownerDocument||G}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(aV,"<$1></$2>");var E=(aI.exec(B)||["",""])[1].toLowerCase(),t=ao[E]||ao._default,W=t[0],c=V.createElement("div");for(c.innerHTML=t[1]+B+t[2];W--;){c=c.lastChild}if(!O.support.tbody){W=r.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){O.nodeName(E[t],"tbody")&&!E[t].childNodes.length&&E[t].parentNode.removeChild(E[t])}}!O.support.leadingWhitespace&&aM.test(B)&&c.insertBefore(V.createTextNode(aM.exec(B)[0]),c.firstChild);B=c.childNodes}}if(B.nodeType){S.push(B)}else{S=O.merge(S,B)}}}if(U){for(P=0;S[P];P++){if(T&&O.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(O.makeArray(S[P].getElementsByTagName("script"))));U.appendChild(S[P])}}}return S},cleanData:function(V){for(var U,T,S=O.cache,P=O.event.special,E=O.support.deleteExpando,t=0,B;(B=V[t])!=null;t++){if(!(B.nodeName&&O.noData[B.nodeName.toLowerCase()])){if(T=B[O.expando]){if((U=S[T])&&U.events){for(var c in U.events){P[c]?O.event.remove(B,c):O.removeEvent(B,c,U.handle)}}if(E){delete B[O.expando]}else{B.removeAttribute&&B.removeAttribute(O.expando)}delete S[T]}}}}});var w=/alpha\([^)]*\)/i,aH=/opacity=([^)]*)/,aq=/-([a-z])/ig,J=/([A-Z])/g,j=/^-?\d+(?:px)?$/i,u=/^-?\d/,h={position:"absolute",visibility:"hidden",display:"block"},ad=["Left","Right"],D=["Top","Bottom"],ai,aY,aG,aW=function(t,c){return c.toUpperCase()};O.fn.css=function(t,c){if(arguments.length===2&&c===az){return this}return O.access(this,t,c,true,function(P,E,B){return B!==az?O.style(P,E,B):O.css(P,E)})};O.extend({cssHooks:{opacity:{get:function(t,c){if(c){var B=ai(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":O.support.cssFloat?"cssFloat":"styleFloat"},style:function(V,U,T,S){if(!(!V||V.nodeType===3||V.nodeType===8||!V.style)){var P,E=O.camelCase(U),t=V.style,B=O.cssHooks[E];U=O.cssProps[E]||E;if(T!==az){if(!(typeof T==="number"&&isNaN(T)||T==null)){if(typeof T==="number"&&!O.cssNumber[E]){T+="px"}if(!B||!("set" in B)||(T=B.set(V,T))!==az){try{t[U]=T}catch(c){}}}}else{if(B&&"get" in B&&(P=B.get(V,false,S))!==az){return P}return t[U]}}},css:function(t,c,S){var P,E=O.camelCase(c),B=O.cssHooks[E];c=O.cssProps[E]||E;if(B&&"get" in B&&(P=B.get(t,true,S))!==az){return P}else{if(ai){return ai(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(aq,aW)}});O.curCSS=O.css;O.each(["height","width"],function(t,c){O.cssHooks[c]={get:function(S,P,E){var B;if(P){if(S.offsetWidth!==0){B=N(S,c,E)}else{O.swap(S,h,function(){B=N(S,c,E)})}if(B<=0){B=ai(S,c,c);if(B==="0px"&&aG){B=aG(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(!O.support.opacity){O.cssHooks.opacity={get:function(t,c){return aH.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=O.isNaN(c)?"":"alpha(opacity="+c*100+")",B=P.filter||"";P.filter=w.test(B)?B.replace(w,E):P.filter+" "+E}}}if(G.defaultView&&G.defaultView.getComputedStyle){aY=function(t,c,E){var B;E=E.replace(J,"-$1").toLowerCase();if(!(c=t.ownerDocument.defaultView)){return az}if(c=c.getComputedStyle(t,null)){B=c.getPropertyValue(E);if(B===""&&!O.contains(t.ownerDocument.documentElement,t)){B=O.style(t,E)}}return B}}if(G.documentElement.currentStyle){aG=function(t,c){var S,P,E=t.currentStyle&&t.currentStyle[c],B=t.style;if(!j.test(E)&&u.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}}ai=aY||aG;if(O.expr&&O.expr.filters){O.expr.filters.hidden=function(t){var c=t.offsetHeight;return t.offsetWidth===0&&c===0||!O.support.reliableHiddenOffsets&&(t.style.display||O.css(t,"display"))==="none"};O.expr.filters.visible=function(c){return !O.expr.filters.hidden(c)}}var aJ=O.now(),au=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,M=/^(?:select|textarea)/i,x=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,k=/^(?:GET|HEAD)$/,p=/\[\]$/,al=/\=\?(&|$)/,v=/\?/,aZ=/([?&])_=[^&]*/,aN=/^(\w+:)?\/\/([^\/?#]+)/,aA=/%20/g,R=/#.*$/,aL=O.fn.load;O.fn.extend({load:function(t,c,S){if(typeof t!=="string"&&aL){return aL.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(O.isFunction(c)){S=c;c=null}else{if(typeof c==="object"){c=O.param(c,O.ajaxSettings.traditional);P="POST"}}}var B=this;O.ajax({url:t,type:P,dataType:"html",data:c,complete:function(T,U){if(U==="success"||U==="notmodified"){B.html(E?O("<div>").append(T.responseText.replace(au,"")).find(E):T.responseText)}S&&B.each(S,[T.responseText,U,T])}});return this},serialize:function(){return O.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?O.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||M.test(this.nodeName)||x.test(this.type))}).map(function(t,c){var B=O(this).val();return B==null?null:O.isArray(B)?O.map(B,function(E){return{name:c.name,value:E}}):{name:c.name,value:B}}).get()}});O.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,c){O.fn[c]=function(B){return this.bind(c,B)}});O.extend({get:function(t,c,E,B){if(O.isFunction(c)){B=B||E;E=c;c=null}return O.ajax({type:"GET",url:t,data:c,success:E,dataType:B})},getScript:function(t,c){return O.get(t,null,c,"script")},getJSON:function(t,c,B){return O.get(t,c,B,"json")},post:function(t,c,E,B){if(O.isFunction(c)){B=B||E;E=c;c={}}return O.ajax({type:"POST",url:t,data:c,success:E,dataType:B})},ajaxSetup:function(c){O.extend(O.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new av.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(a6){var a5=O.extend(true,{},O.ajaxSettings,a6),a4,a3,a2,aa=a5.type.toUpperCase(),X=k.test(aa);a5.url=a5.url.replace(R,"");a5.context=a6&&a6.context!=null?a6.context:a5;if(a5.data&&a5.processData&&typeof a5.data!=="string"){a5.data=O.param(a5.data,a5.traditional)}if(a5.dataType==="jsonp"){if(aa==="GET"){al.test(a5.url)||(a5.url+=(v.test(a5.url)?"&":"?")+(a5.jsonp||"callback")+"=?")}else{if(!a5.data||!al.test(a5.data)){a5.data=(a5.data?a5.data+"&":"")+(a5.jsonp||"callback")+"=?"}}a5.dataType="json"}if(a5.dataType==="json"&&(a5.data&&al.test(a5.data)||al.test(a5.url))){a4=a5.jsonpCallback||"jsonp"+aJ++;if(a5.data){a5.data=(a5.data+"").replace(al,"="+a4+"$1")}a5.url=a5.url.replace(al,"="+a4+"$1");a5.dataType="script";var Y=av[a4];av[a4]=function(a7){if(O.isFunction(Y)){Y(a7)}else{av[a4]=az;try{delete av[a4]}catch(a8){}}a2=a7;O.handleSuccess(a5,P,a3,a2);O.handleComplete(a5,P,a3,a2);T&&T.removeChild(U)}}if(a5.dataType==="script"&&a5.cache===null){a5.cache=false}if(a5.cache===false&&X){var V=O.now(),E=a5.url.replace(aZ,"$1_="+V);a5.url=E+(E===a5.url?(v.test(a5.url)?"&":"?")+"_="+V:"")}if(a5.data&&X){a5.url+=(v.test(a5.url)?"&":"?")+a5.data}a5.global&&O.active++===0&&O.event.trigger("ajaxStart");V=(V=aN.exec(a5.url))&&(V[1]&&V[1].toLowerCase()!==location.protocol||V[2].toLowerCase()!==location.host);if(a5.dataType==="script"&&aa==="GET"&&V){var T=G.getElementsByTagName("head")[0]||G.documentElement,U=G.createElement("script");if(a5.scriptCharset){U.charset=a5.scriptCharset}U.src=a5.url;if(!a4){var S=false;U.onload=U.onreadystatechange=function(){if(!S&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){S=true;O.handleSuccess(a5,P,a3,a2);O.handleComplete(a5,P,a3,a2);U.onload=U.onreadystatechange=null;T&&U.parentNode&&T.removeChild(U)}}}T.insertBefore(U,T.firstChild);return az}var t=false,P=a5.xhr();if(P){a5.username?P.open(aa,a5.url,a5.async,a5.username,a5.password):P.open(aa,a5.url,a5.async);try{if(a5.data!=null&&!X||a6&&a6.contentType){P.setRequestHeader("Content-Type",a5.contentType)}if(a5.ifModified){O.lastModified[a5.url]&&P.setRequestHeader("If-Modified-Since",O.lastModified[a5.url]);O.etag[a5.url]&&P.setRequestHeader("If-None-Match",O.etag[a5.url])}V||P.setRequestHeader("X-Requested-With","XMLHttpRequest");P.setRequestHeader("Accept",a5.dataType&&a5.accepts[a5.dataType]?a5.accepts[a5.dataType]+", */*; q=0.01":a5.accepts._default)}catch(B){}if(a5.beforeSend&&a5.beforeSend.call(a5.context,P,a5)===false){a5.global&&O.active--===1&&O.event.trigger("ajaxStop");P.abort();return false}a5.global&&O.triggerGlobal(a5,"ajaxSend",[P,a5]);var c=P.onreadystatechange=function(a7){if(!P||P.readyState===0||a7==="abort"){t||O.handleComplete(a5,P,a3,a2);t=true;if(P){P.onreadystatechange=O.noop}}else{if(!t&&P&&(P.readyState===4||a7==="timeout")){t=true;P.onreadystatechange=O.noop;a3=a7==="timeout"?"timeout":!O.httpSuccess(P)?"error":a5.ifModified&&O.httpNotModified(P,a5.url)?"notmodified":"success";var a9;if(a3==="success"){try{a2=O.httpData(P,a5.dataType,a5)}catch(a8){a3="parsererror";a9=a8}}if(a3==="success"||a3==="notmodified"){a4||O.handleSuccess(a5,P,a3,a2)}else{O.handleError(a5,P,a3,a9)}a4||O.handleComplete(a5,P,a3,a2);a7==="timeout"&&P.abort();if(a5.async){P=null}}}};try{var ab=P.abort;P.abort=function(){P&&Function.prototype.call.call(ab,P);c("abort")}}catch(Z){}a5.async&&a5.timeout>0&&setTimeout(function(){P&&!t&&c("timeout")},a5.timeout);try{P.send(X||a5.data==null?null:a5.data)}catch(W){O.handleError(a5,P,null,W);O.handleComplete(a5,P,a3,a2)}a5.async||c();return P}},param:function(t,c){var P=[],E=function(T,S){S=O.isFunction(S)?S():S;P[P.length]=encodeURIComponent(T)+"="+encodeURIComponent(S)};if(c===az){c=O.ajaxSettings.traditional}if(O.isArray(t)||t.jquery){O.each(t,function(){E(this.name,this.value)})}else{for(var B in t){s(B,t[B],c,E)}}return P.join("&").replace(aA,"+")}});O.extend({active:0,lastModified:{},etag:{},handleError:function(t,c,E,B){t.error&&t.error.call(t.context,c,E,B);t.global&&O.triggerGlobal(t,"ajaxError",[c,t,B])},handleSuccess:function(t,c,E,B){t.success&&t.success.call(t.context,B,E,c);t.global&&O.triggerGlobal(t,"ajaxSuccess",[c,t])},handleComplete:function(t,c,B){t.complete&&t.complete.call(t.context,c,B);t.global&&O.triggerGlobal(t,"ajaxComplete",[c,t]);t.global&&O.active--===1&&O.event.trigger("ajaxStop")},triggerGlobal:function(t,c,B){(t.context&&t.context.url==null?O(t.context):O.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){O.lastModified[c]=E}if(B){O.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"&&O.error("parsererror");if(P&&P.dataFilter){t=P.dataFilter(t,c)}if(typeof t==="string"){if(c==="json"||!c&&E.indexOf("json")>=0){t=O.parseJSON(t)}else{if(c==="script"||!c&&E.indexOf("javascript")>=0){O.globalEval(t)}}}return t}});if(av.ActiveXObject){O.ajaxSettings.xhr=function(){if(av.location.protocol!=="file:"){try{return new av.XMLHttpRequest}catch(t){}}try{return new av.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}O.support.ajax=!!O.ajaxSettings.xhr();var g={},A=/^(?:toggle|show|hide)$/,n=/^([+\-]=)?([\d+.\-]+)(.*)$/,ap,y=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];O.fn.extend({show:function(t,c,E){if(t||t===0){return this.animate(am("show",3),t,c,E)}else{E=0;for(var B=this.length;E<B;E++){t=this[E];c=t.style.display;if(!O.data(t,"olddisplay")&&c==="none"){c=t.style.display=""}c===""&&O.css(t,"display")==="none"&&O.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=O.data(t,"olddisplay")||""}}return this}},hide:function(t,c,B){if(t||t===0){return this.animate(am("hide",3),t,c,B)}else{t=0;for(c=this.length;t<c;t++){B=O.css(this[t],"display");B!=="none"&&O.data(this[t],"olddisplay",B)}for(t=0;t<c;t++){this[t].style.display="none"}return this}},_toggle:O.fn.toggle,toggle:function(t,c,E){var B=typeof t==="boolean";if(O.isFunction(t)&&O.isFunction(c)){this._toggle.apply(this,arguments)}else{t==null||B?this.each(function(){var P=B?t:O(this).is(":hidden");O(this)[P?"show":"hide"]()}):this.animate(am("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=O.speed(c,P,E);if(O.isEmptyObject(t)){return this.each(B.complete)}return this[B.queue===false?"each":"queue"](function(){var V=O.extend({},B),T,U=this.nodeType===1,X=U&&O(this).is(":hidden"),S=this;for(T in t){var W=O.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(O.css(this,"display")==="inline"&&O.css(this,"float")==="none"){if(O.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(O.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=O.extend({},t);O.each(t,function(Z,a4){var ab=new O.fx(S,V,Z);if(A.test(a4)){ab[a4==="toggle"?X?"show":"hide":a4](t)}else{var aa=n.exec(a4),a2=ab.cur()||0;if(aa){var Y=parseFloat(aa[2]),a3=aa[3]||"px";if(a3!=="px"){O.style(S,Z,(Y||1)+a3);a2=(Y||1)/ab.cur()*a2;O.style(S,Z,a2+a3)}if(aa[1]){Y=(aa[1]==="-="?-1:1)*Y+a2}ab.custom(a2,Y,a3)}else{ab.custom(a2,a4,"")}}});return true})},stop:function(t,c){var B=O.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}});O.each({slideDown:am("show",1),slideUp:am("hide",1),slideToggle:am("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,c){O.fn[t]=function(P,E,B){return this.animate(c,P,E,B)}});O.extend({speed:function(t,c,E){var B=t&&typeof t==="object"?O.extend({},t):{complete:E||!E&&c||O.isFunction(t)&&t,duration:t,easing:E&&c||c&&!O.isFunction(c)&&c};B.duration=O.fx.off?0:typeof B.duration==="number"?B.duration:B.duration in O.fx.speeds?O.fx.speeds[B.duration]:O.fx.speeds._default;B.old=B.complete;B.complete=function(){B.queue!==false&&O(this).dequeue();O.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={}}}});O.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(O.fx.step[this.prop]||O.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(O.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=O.fx;this.startTime=O.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()&&O.timers.push(P)&&!ap){ap=setInterval(B.tick,B.interval)}},show:function(){this.options.orig[this.prop]=O.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());O(this.elem).show()},hide:function(){this.options.orig[this.prop]=O.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(B){var c=O.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&&!O.support.shrinkWrapBlocks){var P=this.elem,E=this.options;O.each(["","X","Y"],function(U,V){P.style["overflow"+V]=E.overflow[U]})}this.options.hide&&O(this.elem).hide();if(this.options.hide||this.options.show){for(var t in this.options.curAnim){O.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||(O.easing.swing?"swing":"linear");this.pos=O.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}};O.extend(O.fx,{tick:function(){for(var t=O.timers,c=0;c<t.length;c++){t[c]()||t.splice(c--,1)}t.length||O.fx.stop()},interval:13,stop:function(){clearInterval(ap);ap=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){O.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(O.expr&&O.expr.filters){O.expr.filters.animated=function(c){return O.grep(O.timers,function(t){return c===t.elem}).length}}var a=/^t(?:able|d|h)$/i,ax=/^(?:body|html)$/i;O.fn.offset="getBoundingClientRect" in G.documentElement?function(t){var c=this[0],S;if(t){return this.each(function(T){O.offset.setOffset(this,t,T)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return O.offset.bodyOffset(c)}try{S=c.getBoundingClientRect()}catch(P){}var E=c.ownerDocument,B=E.documentElement;if(!S||!O.contains(B,c)){return S||{top:0,left:0}}c=E.body;E=aU(E);return{top:S.top+(E.pageYOffset||O.support.boxModel&&B.scrollTop||c.scrollTop)-(B.clientTop||c.clientTop||0),left:S.left+(E.pageXOffset||O.support.boxModel&&B.scrollLeft||c.scrollLeft)-(B.clientLeft||c.clientLeft||0)}}:function(V){var U=this[0];if(V){return this.each(function(W){O.offset.setOffset(this,V,W)})}if(!U||!U.ownerDocument){return null}if(U===U.ownerDocument.body){return O.offset.bodyOffset(U)}O.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(O.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(O.offset.doesNotAddBorder&&!(O.offset.doesAddBorderForTableAndCells&&a.test(U.nodeName))){B+=parseFloat(T.borderTopWidth)||0;c+=parseFloat(T.borderLeftWidth)||0}S=U.offsetParent}if(O.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(O.offset.supportsFixedPosition&&T.position==="fixed"){B+=Math.max(E.scrollTop,t.scrollTop);c+=Math.max(E.scrollLeft,t.scrollLeft)}return{top:B,left:c}};O.offset={initialize:function(){var t=G.body,c=G.createElement("div"),S,P,E,B=parseFloat(O.css(t,"marginTop"))||0;O.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);O.offset.initialize=O.noop},bodyOffset:function(t){var c=t.offsetTop,B=t.offsetLeft;O.offset.initialize();if(O.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(O.css(t,"marginTop"))||0;B+=parseFloat(O.css(t,"marginLeft"))||0}return{top:c,left:B}},setOffset:function(W,U,T){var S=O.css(W,"position");if(S==="static"){W.style.position="relative"}var P=O(W),E=P.offset(),t=O.css(W,"top"),B=O.css(W,"left"),c=S==="absolute"&&O.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(O.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)}};O.fn.extend({position:function(){if(!this[0]){return null}var t=this[0],c=this.offsetParent(),E=this.offset(),B=ax.test(c[0].nodeName)?{top:0,left:0}:c.offset();E.top-=parseFloat(O.css(t,"marginTop"))||0;E.left-=parseFloat(O.css(t,"marginLeft"))||0;B.top+=parseFloat(O.css(c[0],"borderTopWidth"))||0;B.left+=parseFloat(O.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||G.body;c&&!ax.test(c.nodeName)&&O.css(c,"position")==="static";){c=c.offsetParent}return c})}});O.each(["Left","Top"],function(t,c){var B="scroll"+c;O.fn[B]=function(S){var P=this[0],E;if(!P){return null}if(S!==az){return this.each(function(){if(E=aU(this)){E.scrollTo(!t?S:O(E).scrollLeft(),t?S:O(E).scrollTop())}else{this[B]=S}})}else{return(E=aU(P))?"pageXOffset" in E?E[t?"pageYOffset":"pageXOffset"]:O.support.boxModel&&E.document.documentElement[B]||E.document.body[B]:P[B]}}});O.each(["Height","Width"],function(t,c){var B=c.toLowerCase();O.fn["inner"+c]=function(){return this[0]?parseFloat(O.css(this[0],B,"padding")):null};O.fn["outer"+c]=function(E){return this[0]?parseFloat(O.css(this[0],B,E?"margin":"border")):null};O.fn[B]=function(S){var P=this[0];if(!P){return S==null?null:this}if(O.isFunction(S)){return this.each(function(T){var U=O(this);U[B](S.call(this,T,U[B]()))})}if(O.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===az){P=O.css(P,B);var E=parseFloat(P);return O.isNaN(E)?P:E}else{return this.css(B,typeof S==="string"?S:S+"px")}}}}})})(window);jQuery(function(g){var e=g("meta[name=csrf-token]").attr("content"),h=g("meta[name=csrf-param]").attr("content");g.fn.extend({triggerAndReturn:function(i,k){var j=new g.Event(i);this.trigger(j,k);return j.result!==false},callRemote:function(){var k=this,m=k.attr("method")||k.attr("data-method")||"GET",j=k.attr("action")||k.attr("href"),i=k.attr("data-type")||"script";if(j===undefined){throw"No URL specified for remote call (action or href must be present)."}else{if(k.triggerAndReturn("ajax:before")){var l=k.is("form")?k.serializeArray():[];g.ajax({url:j,data:l,dataType:i,type:m.toUpperCase(),beforeSend:function(n){k.trigger("ajax:loading",n)},success:function(o,n,p){k.trigger("ajax:success",[o,n,p])},complete:function(n){k.trigger("ajax:complete",n)},error:function(p,n,o){k.trigger("ajax:failure",[p,n,o])}})}k.trigger("ajax:after")}}});var f=g().jquery;if((f==="1.4")||(f==="1.4.1")||(f==="1.4.2")){g("a[data-confirm], button[data-confirm], input[data-confirm]").live("click",function(){var i=g(this);if(i.triggerAndReturn("confirm")){if(!confirm(i.attr("data-confirm"))){return false}}})}else{g("body").delegate("a[data-confirm], button[data-confirm], input[data-confirm]","click",function(){var i=g(this);if(i.triggerAndReturn("confirm")){if(!confirm(i.attr("data-confirm"))){return false}}})}g("form[data-remote]").live("submit",function(i){g(this).callRemote();i.preventDefault()});g("a[data-remote],input[data-remote]").live("click",function(i){g(this).callRemote();i.preventDefault()});g("a[data-method]:not([data-remote])").live("click",function(m){var l=g(this),j=l.attr("href"),n=l.attr("data-method"),k=g('<form method="post" action="'+j+'"></form>'),i='<input name="_method" value="'+n+'" type="hidden" />';if(h!=null&&e!=null){i+='<input name="'+h+'" value="'+e+'" type="hidden" />'}k.hide().append(i).appendTo("body");m.preventDefault();k.submit()});g("input[mogo-order]:not([data-remote])").live("click",function(m){var k=g(this),o=k.attr("mogo-order"),j="/attendees/refund_order?id="+o,n="post",l=g('<form method="post" action="'+j+'"></form>'),i='<input name="_method" value="'+n+'" type="hidden" />';if(h!=null&&e!=null){i+='<input name="'+h+'" value="'+e+'" type="hidden" />'}l.hide().append(i).appendTo("body");m.preventDefault();l.submit()});g("input[mogo-ticket]:not([data-remote])").live("click",function(m){var k=g(this),o=k.attr("mogo-ticket"),j="/ticket_types/"+o,n="delete",l=g('<form method="post" action="'+j+'"></form>'),i='<input name="_method" value="'+n+'" type="hidden" />';if(h!=null&&e!=null){i+='<input name="'+h+'" value="'+e+'" type="hidden" />'}l.hide().append(i).appendTo("body");m.preventDefault();l.submit()});g("input[mogo-event]:not([data-remote])").live("click",function(m){var k=g(this),o=k.attr("mogo-event"),j="/events/destroy_logo/"+o,n="delete",l=g('<form method="post" action="'+j+'"></form>'),i='<input name="_method" value="'+n+'" type="hidden" />';if(h!=null&&e!=null){i+='<input name="'+h+'" value="'+e+'" type="hidden" />'}l.hide().append(i).appendTo("body");m.preventDefault();l.submit()});g("input[mogo-discount]:not([data-remote])").live("click",function(m){var k=g(this),o=k.attr("mogo-discount"),j="/discount_codes/"+o,n="delete",l=g('<form method="post" action="'+j+'"></form>'),i='<input name="_method" value="'+n+'" type="hidden" />';if(h!=null&&e!=null){i+='<input name="'+h+'" value="'+e+'" type="hidden" />'}l.hide().append(i).appendTo("body");m.preventDefault();l.submit()});g("input[mogo-registration_form_question]:not([data-remote])").live("click",function(m){var k=g(this),o=k.attr("mogo-registration_form_question"),j="/registration_forms/"+o,n="delete",l=g('<form method="post" action="'+j+'"></form>'),i='<input name="_method" value="'+n+'" type="hidden" />';if(h!=null&&e!=null){i+='<input name="'+h+'" value="'+e+'" type="hidden" />'}l.hide().append(i).appendTo("body");m.preventDefault();l.submit()});g("input[mogo-assistant]:not([data-remote])").live("click",function(m){var k=g(this),o=k.attr("mogo-assistant"),j="/assistants/"+o,n="delete",l=g('<form method="post" action="'+j+'"></form>'),i='<input name="_method" value="'+n+'" type="hidden" />';if(h!=null&&e!=null){i+='<input name="'+h+'" value="'+e+'" type="hidden" />'}l.hide().append(i).appendTo("body");m.preventDefault();l.submit()});g("input[mogo-attendee]:not([data-remote])").live("click",function(m){var k=g(this),o=k.attr("mogo-attendee"),j="/attendees/"+o,n="delete",l=g('<form method="post" action="'+j+'"></form>'),i='<input name="_method" value="'+n+'" type="hidden" />';if(h!=null&&e!=null){i+='<input name="'+h+'" value="'+e+'" type="hidden" />'}l.hide().append(i).appendTo("body");m.preventDefault();l.submit()});g("input[mogo-sponsor]:not([data-remote])").live("click",function(m){var k=g(this),o=k.attr("mogo-sponsor"),j="/events/destroy_sponsor/"+o,n="delete",l=g('<form method="post" action="'+j+'"></form>'),i='<input name="_method" value="'+n+'" type="hidden" />';if(h!=null&&e!=null){i+='<input name="'+h+'" value="'+e+'" type="hidden" />'}l.hide().append(i).appendTo("body");m.preventDefault();l.submit()});g("input[mogo-invitation]:not([data-remote])").live("click",function(m){var k=g(this),o=k.attr("mogo-invitation"),j="/promote/destroy_invitation/"+o,n="delete",l=g('<form method="post" action="'+j+'"></form>'),i='<input name="_method" value="'+n+'" type="hidden" />';if(h!=null&&e!=null){i+='<input name="'+h+'" value="'+e+'" type="hidden" />'}l.hide().append(i).appendTo("body");m.preventDefault();l.submit()});var c="input[data-disable-with]",d="form[data-remote]:has("+c+")",b="form:not([data-remote]):has("+c+")";var a=function(){g(this).find(c).each(function(){var i=g(this);i.data("enable-with",i.val()).attr("value",i.attr("data-disable-with")).attr("disabled","disabled")})};g(d).live("ajax:before",a);g(b).live("submit",a);g(d).live("ajax:complete",function(){g(this).find(c).each(function(){var i=g(this);i.removeAttr("disabled").val(i.data("enable-with"))})})});function google_maps(a){var f;var e;if(typeof google=="undefined"){return}var d=document.getElementById("map_canvas");if(!d){return}f=new google.maps.Geocoder();var g=new google.maps.LatLng(-34.397,150.644);var c={zoom:15,center:g,scaleControl:false,mapTypeId:google.maps.MapTypeId.ROADMAP};e=new google.maps.Map(d,c);var b=a;if(f){f.geocode({address:b},function(j,i){if(i==google.maps.GeocoderStatus.OK){if(i!=google.maps.GeocoderStatus.ZERO_RESULTS){e.setCenter(j[0].geometry.location);var h=new google.maps.Marker({map:e,position:j[0].geometry.location})}else{}}else{}})}}function truncate(g){var d=0;var c=new Array();var f=20;c=g.split(" ");var a=c.length;var e=g;var b=e.substring(0,f);if(g.length>15&&g.indexOf(" ")==-1){return b+"..."}else{for(d=0;d<a;d++){if(c[d].length>=15){c[d]=c[d].substring(0,15)}else{}}}return c.join(" ")}function openResponseType(b){var a=b.selectedIndex;if(b.options[a].value=="text_field"){$("#multiple_response").hide();$("#single_response").hide();$("#free_response").show()}else{if(b.options[a].value=="check_box"){$("#free_response").hide();$("#single_response").hide();$("#multiple_response").show()}else{if(b.options[a].value=="select"){$("#free_response").hide();$("#multiple_response").hide();$("#single_response").show()}}}}function addChoice(a){if(a==1){$("#del_button_first_choice").show();$("#choice1").show();$("#choice1_link").hide();$("#choice2_link").show()}else{if(a==2){$("#del_button_second_choice").show();$("#choice2").show();$("#choice2_link").hide();$("#choice3_link").show()}else{if(a==3){$("#del_button_third_choice").show();$("#choice3").show();$("#choice3_link").hide();$("#choice4_link").show()}else{if(a==4){$("#del_button_fourth_choice").show();$("#choice4").show();$("#choice4_link").hide()}}}}}function removeChoice(b,a){if("first_choice"==a){$("#choice3_link").hide();$("#choice2_link").show()}else{if("second_choice"==a){$("#choice3_link").hide();$("#choice2_link").show();$("#"+b).hide();$("#del_button_"+a).hide()}else{if("third_choice"==a){$("#choice3_link").show();$("#choice4_link").hide();$("#"+b).hide();$("#del_button_"+a).hide()}else{if("fourth_choice"==a){$("#choice3_link").hide();$("#choice4_link").show();$("#"+b).hide();$("#del_button_"+a).hide()}}}}document.getElementById(a).value=""}function lightbox(a){document.getElementById(a).style.display="inline";document.getElementById("fade_"+a).style.display="inline"}function lightbox_close(c){$("#tiptip_holder").hide();var a=window.location.toString();var b=a.indexOf("#");if(b!=-1){a=a.substring(0,b)}if(a==window.location.toString()){a=""}else{window.location=a}document.getElementById(c).style.display="none";document.getElementById("fade_"+c).style.display="none"}function wordwrap(n,q,d,p){var e=((arguments.length>=2)?arguments[1]:75);var o=((arguments.length>=3)?arguments[2]:"\n");var k=((arguments.length>=4)?arguments[3]:false);var h,g,f,t,a;n+="";if(e<1){return n}for(h=-1,f=(a=n.split(/\r\n|\n|\r/)).length;++h<f;a[h]+=t){for(t=a[h],a[h]="";t.length>e;a[h]+=t.slice(0,g)+((t=t.slice(g)).length?o:"")){g=k==2||(g=t.slice(0,e+1).match(/\S*(\s)?$/))[1]?e:g.input.length-g[0].length||k==1&&e||g.input.length+(g=t.slice(e).match(/^\S*/)).input.length}}return a.join("\n")}var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());(function(){var s=this;var q=s._;var b={};var i=Array.prototype,A=Object.prototype;var r=i.slice,v=i.unshift,u=A.toString,n=A.hasOwnProperty;var l=i.forEach,h=i.map,y=i.reduce,e=i.reduceRight,k=i.filter,a=i.every,x=i.some,t=i.indexOf,f=i.lastIndexOf,c=Array.isArray,z=Object.keys;var B=function(C){return new g(C)};if(typeof module!=="undefined"&&module.exports){module.exports=B;B._=B}else{s._=B}B.VERSION="1.1.4";var d=B.each=B.forEach=function(I,G,F){var H;if(I==null){return}if(l&&I.forEach===l){I.forEach(G,F)}else{if(B.isNumber(I.length)){for(var E=0,C=I.length;E<C;E++){if(G.call(F,I[E],E,I)===b){return}}}else{for(var D in I){if(n.call(I,D)){if(G.call(F,I[D],D,I)===b){return}}}}}};B.map=function(F,E,D){var C=[];if(F==null){return C}if(h&&F.map===h){return F.map(E,D)}d(F,function(I,G,H){C[C.length]=E.call(D,I,G,H)});return C};B.reduce=B.foldl=B.inject=function(G,F,C,E){var D=C!==void 0;if(G==null){G=[]}if(y&&G.reduce===y){if(E){F=B.bind(F,E)}return D?G.reduce(F,C):G.reduce(F)}d(G,function(J,H,I){if(!D&&H===0){C=J;D=true}else{C=F.call(E,C,J,H,I)}});if(!D){throw new TypeError("Reduce of empty array with no initial value")}return C};B.reduceRight=B.foldr=function(F,E,C,D){if(F==null){F=[]}if(e&&F.reduceRight===e){if(D){E=B.bind(E,D)}return C!==void 0?F.reduceRight(E,C):F.reduceRight(E)}var G=(B.isArray(F)?F.slice():B.toArray(F)).reverse();return B.reduce(G,E,C,D)};B.find=B.detect=function(F,E,D){var C;o(F,function(I,G,H){if(E.call(D,I,G,H)){C=I;return true}});return C};B.filter=B.select=function(F,E,D){var C=[];if(F==null){return C}if(k&&F.filter===k){return F.filter(E,D)}d(F,function(I,G,H){if(E.call(D,I,G,H)){C[C.length]=I}});return C};B.reject=function(F,E,D){var C=[];if(F==null){return C}d(F,function(I,G,H){if(!E.call(D,I,G,H)){C[C.length]=I}});return C};B.every=B.all=function(F,E,D){E=E||B.identity;var C=true;if(F==null){return C}if(a&&F.every===a){return F.every(E,D)}d(F,function(I,G,H){if(!(C=C&&E.call(D,I,G,H))){return b}});return C};var o=B.some=B.any=function(F,E,D){E=E||B.identity;var C=false;if(F==null){return C}if(x&&F.some===x){return F.some(E,D)}d(F,function(I,G,H){if(C=E.call(D,I,G,H)){return b}});return C};B.include=B.contains=function(E,D){var C=false;if(E==null){return C}if(t&&E.indexOf===t){return E.indexOf(D)!=-1}o(E,function(F){if(C=F===D){return true}});return C};B.invoke=function(D,E){var C=r.call(arguments,2);return B.map(D,function(F){return(E?F[E]:F).apply(F,C)})};B.pluck=function(D,C){return B.map(D,function(E){return E[C]})};B.max=function(F,E,D){if(!E&&B.isArray(F)){return Math.max.apply(Math,F)}var C={computed:-Infinity};d(F,function(J,G,I){var H=E?E.call(D,J,G,I):J;H>=C.computed&&(C={value:J,computed:H})});return C.value};B.min=function(F,E,D){if(!E&&B.isArray(F)){return Math.min.apply(Math,F)}var C={computed:Infinity};d(F,function(J,G,I){var H=E?E.call(D,J,G,I):J;H<C.computed&&(C={value:J,computed:H})});return C.value};B.sortBy=function(E,D,C){return B.pluck(B.map(E,function(H,F,G){return{value:H,criteria:D.call(C,H,F,G)}}).sort(function(I,H){var G=I.criteria,F=H.criteria;return G<F?-1:G>F?1:0}),"value")};B.sortedIndex=function(H,G,E){E=E||B.identity;var C=0,F=H.length;while(C<F){var D=(C+F)>>1;E(H[D])<E(G)?C=D+1:F=D}return C};B.toArray=function(C){if(!C){return[]}if(C.toArray){return C.toArray()}if(B.isArray(C)){return C}if(B.isArguments(C)){return r.call(C)}return B.values(C)};B.size=function(C){return B.toArray(C).length};B.first=B.head=function(E,D,C){return D&&!C?r.call(E,0,D):E[0]};B.rest=B.tail=function(E,C,D){return r.call(E,B.isUndefined(C)||D?1:C)};B.last=function(C){return C[C.length-1]};B.compact=function(C){return B.filter(C,function(D){return !!D})};B.flatten=function(C){return B.reduce(C,function(D,E){if(B.isArray(E)){return D.concat(B.flatten(E))}D[D.length]=E;return D},[])};B.without=function(D){var C=r.call(arguments,1);return B.filter(D,function(E){return !B.include(C,E)})};B.uniq=B.unique=function(D,C){return B.reduce(D,function(E,G,F){if(0==F||(C===true?B.last(E)!=G:!B.include(E,G))){E[E.length]=G}return E},[])};B.intersect=function(D){var C=r.call(arguments,1);return B.filter(B.uniq(D),function(E){return B.every(C,function(F){return B.indexOf(F,E)>=0})})};B.zip=function(){var C=r.call(arguments);var F=B.max(B.pluck(C,"length"));var E=new Array(F);for(var D=0;D<F;D++){E[D]=B.pluck(C,""+D)}return E};B.indexOf=function(G,E,F){if(G==null){return -1}if(F){var D=B.sortedIndex(G,E);return G[D]===E?D:-1}if(t&&G.indexOf===t){return G.indexOf(E)}for(var D=0,C=G.length;D<C;D++){if(G[D]===E){return D}}return -1};B.lastIndexOf=function(E,D){if(E==null){return -1}if(f&&E.lastIndexOf===f){return E.lastIndexOf(D)}var C=E.length;while(C--){if(E[C]===D){return C}}return -1};B.range=function(J,G,H){var F=r.call(arguments),I=F.length<=1,J=I?0:F[0],G=I?F[0]:F[1],H=F[2]||1,D=Math.max(Math.ceil((G-J)/H),0),C=0,E=new Array(D);while(C<D){E[C++]=J;J+=H}return E};B.bind=function(D,E){var C=r.call(arguments,2);return function(){return D.apply(E||{},C.concat(r.call(arguments)))}};B.bindAll=function(D){var C=r.call(arguments,1);if(C.length==0){C=B.functions(D)}d(C,function(E){D[E]=B.bind(D[E],D)});return D};B.memoize=function(E,D){var C={};D=D||B.identity;return function(){var F=D.apply(this,arguments);return F in C?C[F]:(C[F]=E.apply(this,arguments))}};B.delay=function(D,E){var C=r.call(arguments,2);return setTimeout(function(){return D.apply(D,C)},E)};B.defer=function(C){return B.delay.apply(B,[C,1].concat(r.call(arguments,1)))};var w=function(D,F,C){var E;return function(){var H=this,G=arguments;var I=function(){E=null;D.apply(H,G)};if(C){clearTimeout(E)}if(C||!E){E=setTimeout(I,F)}}};B.throttle=function(C,D){return w(C,D,false)};B.debounce=function(C,D){return w(C,D,true)};B.wrap=function(C,D){return function(){var E=[C].concat(r.call(arguments));return D.apply(this,E)}};B.compose=function(){var C=r.call(arguments);return function(){var D=r.call(arguments);for(var E=C.length-1;E>=0;E--){D=[C[E].apply(this,D)]}return D[0]}};B.keys=z||function(E){if(B.isArray(E)){return B.range(0,E.length)}var D=[];for(var C in E){if(n.call(E,C)){D[D.length]=C}}return D};B.values=function(C){return B.map(C,B.identity)};B.functions=B.methods=function(C){return B.filter(B.keys(C),function(D){return B.isFunction(C[D])}).sort()};B.extend=function(C){d(r.call(arguments,1),function(D){for(var E in D){C[E]=D[E]}});return C};B.clone=function(C){return B.isArray(C)?C.slice():B.extend({},C)};B.tap=function(D,C){C(D);return D};B.isEqual=function(D,C){if(D===C){return true}var G=typeof(D),I=typeof(C);if(G!=I){return false}if(D==C){return true}if((!D&&C)||(D&&!C)){return false}if(D._chain){D=D._wrapped}if(C._chain){C=C._wrapped}if(D.isEqual){return D.isEqual(C)}if(B.isDate(D)&&B.isDate(C)){return D.getTime()===C.getTime()}if(B.isNaN(D)&&B.isNaN(C)){return false}if(B.isRegExp(D)&&B.isRegExp(C)){return D.source===C.source&&D.global===C.global&&D.ignoreCase===C.ignoreCase&&D.multiline===C.multiline}if(G!=="object"){return false}if(D.length&&(D.length!==C.length)){return false}var E=B.keys(D),H=B.keys(C);if(E.length!=H.length){return false}for(var F in D){if(!(F in C)||!B.isEqual(D[F],C[F])){return false}}return true};B.isEmpty=function(D){if(B.isArray(D)||B.isString(D)){return D.length===0}for(var C in D){if(n.call(D,C)){return false}}return true};B.isElement=function(C){return !!(C&&C.nodeType==1)};B.isArray=c||function(C){return u.call(C)==="[object Array]"};B.isArguments=function(C){return !!(C&&n.call(C,"callee"))};B.isFunction=function(C){return !!(C&&C.constructor&&C.call&&C.apply)};B.isString=function(C){return !!(C===""||(C&&C.charCodeAt&&C.substr))};B.isNumber=function(C){return !!(C===0||(C&&C.toExponential&&C.toFixed))};B.isNaN=function(C){return C!==C};B.isBoolean=function(C){return C===true||C===false};B.isDate=function(C){return !!(C&&C.getTimezoneOffset&&C.setUTCFullYear)};B.isRegExp=function(C){return !!(C&&C.test&&C.exec&&(C.ignoreCase||C.ignoreCase===false))};B.isNull=function(C){return C===null};B.isUndefined=function(C){return C===void 0};B.noConflict=function(){s._=q;return this};B.identity=function(C){return C};B.times=function(F,E,D){for(var C=0;C<F;C++){E.call(D,C)}};B.mixin=function(C){d(B.functions(C),function(D){p(D,B[D]=C[D])})};var j=0;B.uniqueId=function(C){var D=j++;return C?C+D:D};B.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g};B.template=function(F,E){var G=B.templateSettings;var C="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+F.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(G.interpolate,function(H,I){return"',"+I.replace(/\\'/g,"'")+",'"}).replace(G.evaluate||null,function(H,I){return"');"+I.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');";var D=new Function("obj",C);return E?D(E):D};var g=function(C){this._wrapped=C};B.prototype=g.prototype;var m=function(D,C){return C?B(D).chain():D};var p=function(C,D){g.prototype[C]=function(){var E=r.call(arguments);v.call(E,this._wrapped);return m(D.apply(B,E),this._chain)}};B.mixin(B);d(["pop","push","reverse","shift","sort","splice","unshift"],function(C){var D=i[C];g.prototype[C]=function(){D.apply(this._wrapped,arguments);return m(this._wrapped,this._chain)}});d(["concat","join","slice"],function(C){var D=i[C];g.prototype[C]=function(){return m(D.apply(this._wrapped,arguments),this._chain)}});g.prototype.chain=function(){this._chain=true;return this};g.prototype.value=function(){return this._wrapped}})();(function(){var k;if(typeof exports!=="undefined"){k=exports}else{k=this.Backbone={}}k.VERSION="0.3.3";var m=this._;if(!m&&(typeof require!=="undefined")){m=require("underscore")._}var e=this.jQuery||this.Zepto;k.emulateHTTP=false;k.emulateJSON=false;k.Events={bind:function(r,t){var q=this._callbacks||(this._callbacks={});var s=this._callbacks[r]||(this._callbacks[r]=[]);s.push(t);return this},unbind:function(t,v){var s;if(!t){this._callbacks={}}else{if(s=this._callbacks){if(!v){s[t]=[]}else{var u=s[t];if(!u){return this}for(var r=0,q=u.length;r<q;r++){if(v===u[r]){u.splice(r,1);break}}}}}return this},trigger:function(t){var u,s,r,q;if(!(s=this._callbacks)){return this}if(u=s[t]){for(r=0,q=u.length;r<q;r++){u[r].apply(this,Array.prototype.slice.call(arguments,1))}}if(u=s.all){for(r=0,q=u.length;r<q;r++){u[r].apply(this,arguments)}}return this}};k.Model=function(q,r){q||(q={});if(this.defaults){q=m.extend({},this.defaults,q)}this.attributes={};this._escapedAttributes={};this.cid=m.uniqueId("c");this.set(q,{silent:true});this._previousAttributes=m.clone(this.attributes);if(r&&r.collection){this.collection=r.collection}this.initialize(q,r)};m.extend(k.Model.prototype,k.Events,{_previousAttributes:null,_changed:false,initialize:function(){},toJSON:function(){return m.clone(this.attributes)},get:function(q){return this.attributes[q]},escape:function(q){var r;if(r=this._escapedAttributes[q]){return r}var s=this.attributes[q];return this._escapedAttributes[q]=o(s==null?"":s)},set:function(t,s){s||(s={});if(!t){return this}if(t.attributes){t=t.attributes}var r=this.attributes,u=this._escapedAttributes;if(!s.silent&&this.validate&&!this._performValidation(t,s)){return false}if("id" in t){this.id=t.id}for(var q in t){var v=t[q];if(!m.isEqual(r[q],v)){r[q]=v;delete u[q];if(!s.silent){this._changed=true;this.trigger("change:"+q,this,v,s)}}}if(!s.silent&&this._changed){this.change(s)}return this},unset:function(q,r){r||(r={});var t=this.attributes[q];var s={};s[q]=void 0;if(!r.silent&&this.validate&&!this._performValidation(s,r)){return false}delete this.attributes[q];delete this._escapedAttributes[q];if(!r.silent){this._changed=true;this.trigger("change:"+q,this,void 0,r);this.change(r)}return this},clear:function(r){r||(r={});var q=this.attributes;var s={};for(attr in q){s[attr]=void 0}if(!r.silent&&this.validate&&!this._performValidation(s,r)){return false}this.attributes={};this._escapedAttributes={};if(!r.silent){this._changed=true;for(attr in q){this.trigger("change:"+attr,this,void 0,r)}this.change(r)}return this},fetch:function(s){s||(s={});var r=this;var t=function(u){if(!r.set(r.parse(u),s)){return false}if(s.success){s.success(r,u)}};var q=d(s.error,r,s);(this.sync||k.sync)("read",this,t,q);return this},save:function(t,s){s||(s={});if(t&&!this.set(t,s)){return false}var r=this;var u=function(w){if(!r.set(r.parse(w),s)){return false}if(s.success){s.success(r,w)}};var q=d(s.error,r,s);var v=this.isNew()?"create":"update";(this.sync||k.sync)(v,this,u,q);return this},destroy:function(s){s||(s={});var r=this;var t=function(u){if(r.collection){r.collection.remove(r)}if(s.success){s.success(r,u)}};var q=d(s.error,r,s);(this.sync||k.sync)("delete",this,t,q);return this},url:function(){var q=h(this.collection);if(this.isNew()){return q}return q+(q.charAt(q.length-1)=="/"?"":"/")+this.id},parse:function(q){return q},clone:function(){return new this.constructor(this)},isNew:function(){return !this.id},change:function(q){this.trigger("change",this,q);this._previousAttributes=m.clone(this.attributes);this._changed=false},hasChanged:function(q){if(q){return this._previousAttributes[q]!=this.attributes[q]}return this._changed},changedAttributes:function(s){s||(s=this.attributes);var r=this._previousAttributes;var t=false;for(var q in s){if(!m.isEqual(r[q],s[q])){t=t||{};t[q]=s[q]}}return t},previous:function(q){if(!q||!this._previousAttributes){return null}return this._previousAttributes[q]},previousAttributes:function(){return m.clone(this._previousAttributes)},_performValidation:function(s,r){var q=this.validate(s);if(q){if(r.error){r.error(this,q)}else{this.trigger("error",this,q,r)}return false}return true}});k.Collection=function(r,q){q||(q={});if(q.comparator){this.comparator=q.comparator;delete q.comparator}this._boundOnModelEvent=m.bind(this._onModelEvent,this);this._reset();if(r){this.refresh(r,{silent:true})}this.initialize(r,q)};m.extend(k.Collection.prototype,k.Events,{model:k.Model,initialize:function(){},toJSON:function(){return this.map(function(q){return q.toJSON()})},add:function(t,r){if(m.isArray(t)){for(var s=0,q=t.length;s<q;s++){this._add(t[s],r)}}else{this._add(t,r)}return this},remove:function(t,r){if(m.isArray(t)){for(var s=0,q=t.length;s<q;s++){this._remove(t[s],r)}}else{this._remove(t,r)}return this},get:function(q){if(q==null){return null}return this._byId[q.id!=null?q.id:q]},getByCid:function(q){return q&&this._byCid[q.cid||q]},at:function(q){return this.models[q]},sort:function(q){q||(q={});if(!this.comparator){throw new Error("Cannot sort a set without a comparator")}this.models=this.sortBy(this.comparator);if(!q.silent){this.trigger("refresh",this,q)}return this},pluck:function(q){return m.map(this.models,function(r){return r.get(q)})},refresh:function(r,q){r||(r=[]);q||(q={});this._reset();this.add(r,{silent:true});if(!q.silent){this.trigger("refresh",this,q)}return this},fetch:function(r){r||(r={});var t=this;var s=function(u){t.refresh(t.parse(u));if(r.success){r.success(t,u)}};var q=d(r.error,t,r);(this.sync||k.sync)("read",this,s,q);return this},create:function(r,q){var s=this;q||(q={});if(!(r instanceof k.Model)){r=new this.model(r,{collection:s})}else{r.collection=s}var t=function(u,v){s.add(u);if(q.success){q.success(u,v)}};return r.save(null,{success:t,error:q.error})},parse:function(q){return q},chain:function(){return m(this.models).chain()},_reset:function(q){this.length=0;this.models=[];this._byId={};this._byCid={}},_add:function(s,r){r||(r={});if(!(s instanceof k.Model)){s=new this.model(s,{collection:this})}var t=this.getByCid(s);if(t){throw new Error(["Can't add the same model to a set twice",t.id])}this._byId[s.id]=s;this._byCid[s.cid]=s;s.collection=this;var q=this.comparator?this.sortedIndex(s,this.comparator):this.length;this.models.splice(q,0,s);s.bind("all",this._boundOnModelEvent);this.length++;if(!r.silent){s.trigger("add",s,this,r)}return s},_remove:function(r,q){q||(q={});r=this.getByCid(r)||this.get(r);if(!r){return null}delete this._byId[r.id];delete this._byCid[r.cid];delete r.collection;this.models.splice(this.indexOf(r),1);this.length--;if(!q.silent){r.trigger("remove",r,this,q)}r.unbind("all",this._boundOnModelEvent);return r},_onModelEvent:function(r,q){if(r==="change:id"){delete this._byId[q.previous("id")];this._byId[q.id]=q}this.trigger.apply(this,arguments)}});var c=["forEach","each","map","reduce","reduceRight","find","detect","filter","select","reject","every","all","some","any","include","invoke","max","min","sortBy","sortedIndex","toArray","size","first","rest","last","without","indexOf","lastIndexOf","isEmpty"];m.each(c,function(q){k.Collection.prototype[q]=function(){return m[q].apply(m,[this.models].concat(m.toArray(arguments)))}});k.Controller=function(q){q||(q={});if(q.routes){this.routes=q.routes}this._bindRoutes();this.initialize(q)};var p=/:([\w\d]+)/g;var f=/\*([\w\d]+)/g;m.extend(k.Controller.prototype,k.Events,{initialize:function(){},route:function(q,r,s){k.history||(k.history=new k.History);if(!m.isRegExp(q)){q=this._routeToRegExp(q)}k.history.route(q,m.bind(function(u){var t=this._extractParameters(q,u);s.apply(this,t);this.trigger.apply(this,["route:"+r].concat(t))},this))},saveLocation:function(q){k.history.saveLocation(q)},_bindRoutes:function(){if(!this.routes){return}for(var q in this.routes){var r=this.routes[q];this.route(q,r,this[r])}},_routeToRegExp:function(q){q=q.replace(p,"([^/]*)").replace(f,"(.*?)");return new RegExp("^"+q+"$")},_extractParameters:function(q,r){return q.exec(r).slice(1)}});k.History=function(){this.handlers=[];this.fragment=this.getFragment();m.bindAll(this,"checkUrl")};var l=/^#*/;m.extend(k.History.prototype,{interval:50,getFragment:function(q){return(q||window.location).hash.replace(l,"")},start:function(){var q=document.documentMode;var r=(e.browser.msie&&(!q||q<=7));if(r){this.iframe=e('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow}if("onhashchange" in window&&!r){e(window).bind("hashchange",this.checkUrl)}else{setInterval(this.checkUrl,this.interval)}return this.loadUrl()},route:function(q,r){this.handlers.push({route:q,callback:r})},checkUrl:function(){var q=this.getFragment();if(q==this.fragment&&this.iframe){q=this.getFragment(this.iframe.location)}if(q==this.fragment||q==decodeURIComponent(this.fragment)){return false}if(this.iframe){window.location.hash=this.iframe.location.hash=q}this.loadUrl()},loadUrl:function(){var r=this.fragment=this.getFragment();var q=m.any(this.handlers,function(s){if(s.route.test(r)){s.callback(r);return true}});return q},saveLocation:function(q){q=(q||"").replace(l,"");if(this.fragment==q){return}window.location.hash=this.fragment=q;if(this.iframe&&(q!=this.getFragment(this.iframe.location))){this.iframe.document.open().close();this.iframe.location.hash=q}}});k.View=function(q){this._configure(q||{});this._ensureElement();this.delegateEvents();this.initialize(q)};var a=function(q){return e(q,this.el)};var n=/^(\w+)\s*(.*)$/;m.extend(k.View.prototype,k.Events,{tagName:"div",$:a,initialize:function(){},render:function(){return this},remove:function(){e(this.el).remove();return this},make:function(r,q,t){var s=document.createElement(r);if(q){e(s).attr(q)}if(t){e(s).html(t)}return s},delegateEvents:function(v){if(!(v||(v=this.events))){return}e(this.el).unbind();for(var u in v){var s=v[u];var t=u.match(n);var r=t[1],q=t[2];var w=m.bind(this[s],this);if(q===""){e(this.el).bind(r,w)}else{e(this.el).delegate(q,r,w)}}},_configure:function(q){if(this.options){q=m.extend({},this.options,q)}if(q.model){this.model=q.model}if(q.collection){this.collection=q.collection}if(q.el){this.el=q.el}if(q.id){this.id=q.id}if(q.className){this.className=q.className}if(q.tagName){this.tagName=q.tagName}this.options=q},_ensureElement:function(){if(this.el){return}var q={};if(this.id){q.id=this.id}if(this.className){q["class"]=this.className}this.el=this.make(this.tagName,q)}});var g=function(q,r){var s=i(this,q,r);s.extend=g;return s};k.Model.extend=k.Collection.extend=k.Controller.extend=k.View.extend=g;var b={create:"POST",update:"PUT","delete":"DELETE",read:"GET"};k.sync=function(w,r,u,q){var s=b[w];var v=(w==="create"||w==="update")?JSON.stringify(r.toJSON()):null;var t={url:h(r),type:s,contentType:"application/json",data:v,dataType:"json",processData:false,success:u,error:q};if(k.emulateJSON){t.contentType="application/x-www-form-urlencoded";t.processData=true;t.data=v?{model:v}:{}}if(k.emulateHTTP){if(s==="PUT"||s==="DELETE"){if(k.emulateJSON){t.data._method=s}t.type="POST";t.beforeSend=function(x){x.setRequestHeader("X-HTTP-Method-Override",s)}}}e.ajax(t)};var j=function(){};var i=function(r,q,s){var t;if(q&&q.hasOwnProperty("constructor")){t=q.constructor}else{t=function(){return r.apply(this,arguments)}}j.prototype=r.prototype;t.prototype=new j();if(q){m.extend(t.prototype,q)}if(s){m.extend(t,s)}t.prototype.constructor=t;t.__super__=r.prototype;return t};var h=function(q){if(!(q&&q.url)){throw new Error("A 'url' property or function must be specified")}return m.isFunction(q.url)?q.url():q.url};var d=function(s,r,q){return function(t){if(s){s(r,t)}else{r.trigger("error",r,t,q)}}};var o=function(q){return q.replace(/&(?!\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}})();var MogoTix={Views:{},Controllers:{},Collections:{},init:function(){new MogoTix.Controllers.Registrations();new MogoTix.Controllers.Events();Backbone.history.start()}};(function(g){var f={},i="doTimeout",h=Array.prototype.slice;g[i]=function(){return e.apply(window,[0].concat(h.call(arguments)))};g.fn[i]=function(){var a=h.call(arguments),b=e.apply(this,[i+a[0]].concat(a));return typeof a[0]==="number"||typeof a[1]==="number"?this:b};function e(q){var d=this,u,r={},v=q?g.fn:g,c=arguments,t=4,w=c[1],s=c[2],a=c[3];if(typeof w!=="string"){t--;w=q=0;s=c[1];a=c[2]}if(q){u=d.eq(0);u.data(q,r=u.data(q)||{})}else{if(w){r=f[w]||(f[w]={})}}r.id&&clearTimeout(r.id);delete r.id;function x(){if(q){u.removeData(q)}else{if(w){delete f[w]}}}function b(){r.id=setTimeout(function(){r.fn()},s)}if(a){r.fn=function(j){if(typeof a==="string"){a=v[a]}a.apply(d,h.call(c,t))===true&&!j?b():x()};b()}else{if(r.fn){s===undefined?x():r.fn(s===false);return true}else{x()}}}})(jQuery);var Event=Backbone.Model.extend({url:function(){var a="events";if(this.isNew()){return a}return a+(a.charAt(a.length-1)=="/"?"":"/")+this.id}});var Registration=Backbone.Model.extend({url:function(){var a="registrations";if(this.isNew()){return a}return a+(a.charAt(a.length-1)=="/"?"":"/")+this.id}});MogoTix.Collections.Events=Backbone.Collection.extend({model:Event,url:"/events"});MogoTix.Collections.Registrations=Backbone.Collection.extend({model:Registration,url:"/registrations"});MogoTix.Controllers.Events=Backbone.Controller.extend({routes:{"":"index","new":"newEvent"},index:function(){var a=new MogoTix.Collections.Events();a.fetch({success:function(){new MogoTix.Views.Index({event_collection:a})},error:function(){new Error({message:"Error loading events."})}})},newEvent:function(){lightbox("lightbox_create_event");new MogoTix.Views.New({model:new Event()})}});MogoTix.Controllers.Registrations=Backbone.Controller.extend({routes:{myTickets:"index"},index:function(){var a=new MogoTix.Collections.Registrations();a.fetch({success:function(){new MogoTix.Views.RegIndex({registration_collection:a})},error:function(){new Error({message:"Error loading Registrations."})}})}});MogoTix.Views.RegIndex=Backbone.View.extend({initialize:function(){this.registration_collection=this.options.registration_collection;this.render()},render:function(){$(this.el).html(JST["registrations/registrations_collection"]({registration_collection:this.registration_collection}));$("#tickets").html(this.el);$(".input_tip").tipTip({defaultPosition:"right",activation:"focus"});$(".avatar_tip").tipTip({});$("input, textarea, select, button").uniform();return this}});MogoTix.Views.Index=Backbone.View.extend({initialize:function(){this.event_collection=this.options.event_collection;this.render()},render:function(){$(this.el).html(JST["events/events_collection"]({event_collection:this.event_collection}));$("#app").html(this.el);$(".input_tip").tipTip({defaultPosition:"right",activation:"focus"});$(".avatar_tip").tipTip({});$("input, textarea, select, button").uniform();return this}});(function(){window.JST=window.JST||{};window.JST["events/events_collection"]=_.template('<% if(event_collection.models.length > 0) { %>    <% event_collection.each(function(item) { %>            <div class="event_organizing">      	        <div class="calendar_container hide_in_mobile">          <div class="calendar_top"><%= item.escape(\'starts_at_month\') %></div>          <div class="calendar_bottom"><%= item.escape(\'starts_at_day\') %></div>        </div>                <h3><a href=\'/events/summary/<%= item.id %>\'><%= item.escape(\'name\') %></a> <!--<a href="/events/<%=item.id%>" data-method="delete" rel="nofollow" id="delete_<%=item.id%>" class="delete_event"><img src="/images/trash.gif"></a>--></h3>        <span class=" calendar_small gray"><%= item.escape(\'starts_at\') %></span> <span class="location_small gray"><%= item.escape(\'venue_name\') ? item.escape(\'venue_name\') : \'To be announced\' %></span> <span class="views_small gray"><%= item.escape(\'views\') ? item.escape(\'views\') : \'0\' %> views</span>        <p class="no_margin small gray" style="margin-top:4px;"><a href="/events/<%= item.id %>/edit">Edit event</a> | <a href="/attendees/<%= item.id %>">View attendees</a> | <a href="/events/<%= item.id %>" target="blank">View event page</a></p>        <% if(item.id == 1685) { %>                    <ul class="avatars avatars_small">                               	                    	                           	              <li>             		                <img src="https://graph.facebook.com/615385433/picture?type=square" class="avatar_tip new_person">             	              </li>                                             <li>             		                <img src="https://graph.facebook.com/555761701/picture?type=square" class="avatar_tip new_person">              </li>                               	              <li>                <img src="https://graph.facebook.com/1296703982/picture?type=square" class="avatar_tip new_person"></li>                               	      <li><img src="https://graph.facebook.com/605958501/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/1209337/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/641348076/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/12746/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/513561105/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/702530771/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/822895479/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/3606352/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/546255427/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/704520608/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/431243/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/707601556/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/652550076/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/711066706/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/3429462/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/206044/picture?type=square" class="avatar_tip new_person"></li>                               	                              	<li><img src="https://graph.facebook.com/503484735/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/13937856/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/727716789/picture?type=square" class="avatar_tip new_person"></li>                               	                              	<li><img src="https://graph.facebook.com/732656125/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/1616307250/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/11500/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/10103736/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/610723645/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/10218694/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/3304156/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/690264903/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/770811928/picture?type=square" class="avatar_tip new_person"></li>                               	<li><img src="https://graph.facebook.com/1283218406/picture?type=square" class="avatar_tip new_person"></li>                                                             	                       </ul>          <br class="clear">                          <% if(_.size(item.attributes.attendee_avatars) > 10){ %>            <p class="small no_margin" style="margin-top:9px;">and <a href="/attendees/<%=item.id%>"><%= (_.size(item.attributes.attendee_avatars) - 10) %> others</a></p>          <% } %>                <% } %>              </div>				    <% }); %><% } else { %>    <h2>Create your event now.</h2>    <h3 class="gray">It\'s easy to host an event with amazing mobile tickets. <a href="#" onclick="javascript:window.location = \'#new\'; return false;">Create one now.</a></h3>    <br>    <img src="/images/howitworks_eventpage_large.jpg" class="hide_in_mobile" style="float:right;width:45%;padding:0 0 0 2em;">    <h4>How does MogoTix work?</h4>    <p>Publish a custom webpage for your event, then use our powerful promotional tools to increase attendance. On the day of the event, use MogoTix for iPhone or Android to validate tickets and check in attendees.</p>        <h4>What are mobile tickets?</h4>    <p>A mobile ticket is a barcoded ticket that is displayed on a cell phone. MogoTix sends event tickets directly to attendees’ cell phones via text message, so there\'s no need for paper tickets or attendance lists.</p>        <h4>How do I check in attendees?</h4>    <p>With the free MogoTix apps, you can scan tickets quickly and easily using an Android phone or iPhone. Point the camera at your attendee\'s barcode at a distance of 6 to 12 inches; a message will notify you that the ticket has been validated.</p>        <h4>How do I get paid for selling tickets?</h4>    <p>MogoTix offers two great ways of processing credit cards and collecting ticket revenue. You can link your PayPal account to MogoTix, or use MogoTix Payment Processing. For just 4.99% of the ticket price, we\'ll process your attendees\' credit cards and mail you a check five days after your event.</p>            		<% } %>');window.JST["registrations/registrations_collection"]=_.template('<% if(registration_collection.models.length > 0) { %>    		<% registration_collection.each(function(item) { %>						<div class="event_attending">			          <div class="calendar_container hide_in_mobile">          <div class="calendar_top">April</div>          <div class="calendar_bottom">19</div>        </div>                <a href="#" class="delete_ticket">Cancel ticket</a>        <a href="#" class="delete_ticket">Refund ticket</a>        <a href="#" class="delete_ticket">Transfer ticket</a>                <h3><a href=\'/events/<%= item.id %>\'><%= item.escape(\'name\') %></a>&nbsp;<a href="/registrations/<%=item.id%>" data-method="delete" rel="nofollow" id="delete_<%=item.id%>" class="delete_event" data-confirm="Are you sure?"><img src="/images/hide-icon.gif"></a></h3>        <span class=" calendar_small gray">Thursday, April 19, 2011 at 10:00 AM</span> <span class="location_small gray">MogoTix Headquarters</span> <span class="views_small gray">0 views</span>        <br class="clear">        <% if(_.size(item.attributes.attendee_avatars) > 10){ %>          <p class="small no_margin">and <a href="/attendees/<%=item.id%>"><%= (_.size(item.attributes.attendee_avatars) - 10) %> others</a></p>        <% } %>      </div>								<% }); %>		<% }else { %>		<h2>You\'re not attending any events.</h2>	<h3 class="gray">But when you order your first ticket, here\'s everything you need to know to be ready.</h3>	<br>  <img src="/images/howitworks_iphone.png" class="hide_in_mobile" style="float:right;width:33%;padding:0 0 0 2em;">	<h4>How do I use my mobile ticket?</h4>  <p>Open the text message we sent you and click on the link to open your barcoded ticket. Show this ticket at the door to enter the event.</p>  <h4>I never received my mobile ticket. What do I do?</h4>  <p>Verify that the phone number you entered is correct, and try resending your ticket. If you still can\'t receive your ticket, bring a photo ID to the event, and the organizer will check you in by name.</p>  <h4>Will a mobile ticket work on my phone?</h4>  <p>MogoTix supports all smart phones, and even many phones with more basic features. If you don\' have a data plan, an additional charge from your wireless carrier may apply.</p>  <h4>Is my cell phone number shared with anyone?</h4>  <p>Our computer system sends your cell phone number to our text message provider in order to deliver your ticket, but we don\'t sell or share cell phone numbers with event organizers, advertisers, marketers, salespeople, or any other third parties. Period.</p><% } %>			')})();
