/*
 * 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(aw,aA){function j(t,c,E){if(E===aA&&t.nodeType===1){E=t.getAttribute("data-"+c);if(typeof E==="string"){try{E=E==="true"?true:E==="false"?false:E==="null"?null:!Q.isNaN(E)?parseFloat(E):R.test(E)?Q.parseJSON(E):E}catch(B){}Q.data(t,c,E)}else{E=aA}}return E}function al(){return false}function J(){return true}function aY(t,c,B){B[0].type=t;return Q.event.handle.apply(c,B)}function A(aa){var X,W,V,U,T,P,S,E,Z,c,B,t=[];U=[];T=Q.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(ai,"")===aa.type?U.push(T.selector):Y.splice(S--,1)}U=Q(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=Q(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 ah(t,c){return(t&&t!=="*"?t+".":"")+c.replace(n,"`").replace(a2,"&")}function aL(t,c,E){if(Q.isFunction(c)){return Q.grep(t,function(S,P){return !!c.call(S,P,S)===E})}else{if(c.nodeType){return Q.grep(t,function(P){return P===c===E})}else{if(typeof c==="string"){var B=Q.grep(t,function(P){return P.nodeType===1});if(aQ.test(c)){return Q.filter(c,B,!E)}else{c=Q.filter(c,B)}}}}return Q.grep(t,function(P){return Q.inArray(P,c)>=0===E})}function ax(t,c){var B=0;c.each(function(){if(this.nodeName===(t[B]&&t[B].nodeName)){var T=Q.data(t[B++]),S=Q.data(this,T);if(T=T&&T.events){delete S.handle;S.events={};for(var P in T){for(var E in T[P]){Q.event.add(this,P,T[P][E],T[P][E].data)}}}}})}function aD(t,c){c.src?Q.ajax({url:c.src,async:false,dataType:"script"}):Q.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function O(t,c,E){var B=c==="width"?t.offsetWidth:t.offsetHeight;if(E==="border"){return B}Q.each(c==="width"?ae:F,function(){E||(B-=parseFloat(Q.css(t,"padding"+this))||0);if(E==="margin"){B+=parseFloat(Q.css(t,"margin"+this))||0}else{B-=parseFloat(Q.css(t,"border"+this+"Width"))||0}});return B}function u(t,c,E,B){if(Q.isArray(c)&&c.length){Q.each(c,function(S,P){E||q.test(t)?B(t,P):u(t+"["+(typeof P==="object"||Q.isArray(P)?S:"")+"]",P,E,B)})}else{if(!E&&c!=null&&typeof c==="object"){Q.isEmptyObject(c)?B(t,""):Q.each(c,function(S,P){u(t+"["+S+"]",P,E,B)})}else{B(t,c)}}}function an(t,c){var B={};Q.each(z.concat.apply([],z.slice(0,c)),function(){B[this]=t});return B}function m(t){if(!g[t]){var c=Q("<"+t+">").appendTo("body"),B=c.css("display");c.remove();if(B==="none"||B===""){B="block"}g[t]=B}return g[t]}function aV(c){return Q.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var H=aw.document,Q=function(){function bi(){if(!bh.isReady){try{H.documentElement.doScroll("left")}catch(bj){setTimeout(bi,1);return}bh.ready()}}var bh=function(bj,bk){return new bh.fn.init(bj,bk)},bg=aw.jQuery,bf=aw.$,be,bc=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,a9=/\S/,ba=/^\s+/,a6=/\s+$/,V=/\W/,ab=/\d/,a5=/^<(\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.]+)/,bd=/(opera)(?:.*version)?[ \/]([\w.]+)/,bb=/(msie) ([\w.]+)/,a7=/(mozilla)(?:.*? rv:([\w.]+))?/,a8=navigator.userAgent,a4=false,a3=[],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={};bh.fn=bh.prototype={init:function(bk,bm){var bj,bn,bl;if(!bk){return this}if(bk.nodeType){this.context=this[0]=bk;this.length=1;return this}if(bk==="body"&&!bm&&H.body){this.context=H;this[0]=H.body;this.selector="body";this.length=1;return this}if(typeof bk==="string"){if((bj=bc.exec(bk))&&(bj[1]||!bm)){if(bj[1]){bl=bm?bm.ownerDocument||bm:H;if(bn=a5.exec(bk)){if(bh.isPlainObject(bm)){bk=[H.createElement(bn[1])];bh.fn.attr.call(bk,bm,true)}else{bk=[bl.createElement(bn[1])]}}else{bn=bh.buildFragment([bj[1]],[bl]);bk=(bn.cacheable?bn.fragment.cloneNode(true):bn.fragment).childNodes}return bh.merge(this,bk)}else{if((bn=H.getElementById(bj[2]))&&bn.parentNode){if(bn.id!==bj[2]){return be.find(bk)}this.length=1;this[0]=bn}this.context=H;this.selector=bk;return this}}else{if(!bm&&!V.test(bk)){this.selector=bk;this.context=H;bk=H.getElementsByTagName(bk);return bh.merge(this,bk)}else{return !bm||bm.jquery?(bm||be).find(bk):bh(bm).find(bk)}}}else{if(bh.isFunction(bk)){return be.ready(bk)}}if(bk.selector!==aA){this.selector=bk.selector;this.context=bk.context}return bh.makeArray(bk,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return B.call(this,0)},get:function(bj){return bj==null?this.toArray():bj<0?this.slice(bj)[0]:this[bj]},pushStack:function(bk,bl,bj){var bm=bh();bh.isArray(bk)?E.apply(bm,bk):bh.merge(bm,bk);bm.prevObject=this;bm.context=this.context;if(bl==="find"){bm.selector=this.selector+(this.selector?" ":"")+bj}else{if(bl){bm.selector=this.selector+"."+bl+"("+bj+")"}}return bm},each:function(bj,bk){return bh.each(this,bj,bk)},ready:function(bj){bh.bindReady();if(bh.isReady){bj.call(H,bh)}else{a3&&a3.push(bj)}return this},eq:function(bj){return bj===-1?this.slice(bj):this.slice(bj,+bj+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(bj){return this.pushStack(bh.map(this,function(bl,bk){return bj.call(bl,bk,bl)}))},end:function(){return this.prevObject||bh(null)},push:E,sort:[].sort,splice:[].splice};bh.fn.init.prototype=bh.fn;bh.extend=bh.fn.extend=function(){var bj,br,bo,bl,bn,bp=arguments[0]||{},bm=1,bk=arguments.length,bq=false;if(typeof bp==="boolean"){bq=bp;bp=arguments[1]||{};bm=2}if(typeof bp!=="object"&&!bh.isFunction(bp)){bp={}}if(bk===bm){bp=this;--bm}for(;bm<bk;bm++){if((bj=arguments[bm])!=null){for(br in bj){bo=bp[br];bl=bj[br];if(bp!==bl){if(bq&&bl&&(bh.isPlainObject(bl)||(bn=bh.isArray(bl)))){if(bn){bn=false;bo=bo&&bh.isArray(bo)?bo:[]}else{bo=bo&&bh.isPlainObject(bo)?bo:{}}bp[br]=bh.extend(bq,bo,bl)}else{if(bl!==aA){bp[br]=bl}}}}}}return bp};bh.extend({noConflict:function(bj){aw.$=bf;if(bj){aw.jQuery=bg}return bh},isReady:false,readyWait:1,ready:function(bk){bk===true&&bh.readyWait--;if(!bh.readyWait||bk!==true&&!bh.isReady){if(!H.body){return setTimeout(bh.ready,1)}bh.isReady=true;if(!(bk!==true&&--bh.readyWait>0)){if(a3){var bl=0,bj=a3;for(a3=null;bk=bj[bl++];){bk.call(H,bh)}bh.fn.trigger&&bh(H).trigger("ready").unbind("ready")}}}},bindReady:function(){if(!a4){a4=true;if(H.readyState==="complete"){return setTimeout(bh.ready,1)}if(H.addEventListener){H.addEventListener("DOMContentLoaded",Y,false);aw.addEventListener("load",bh.ready,false)}else{if(H.attachEvent){H.attachEvent("onreadystatechange",Y);aw.attachEvent("onload",bh.ready);var bj=false;try{bj=aw.frameElement==null}catch(bk){}H.documentElement.doScroll&&bj&&bi()}}}},isFunction:function(bj){return bh.type(bj)==="function"},isArray:Array.isArray||function(bj){return bh.type(bj)==="array"},isWindow:function(bj){return bj&&typeof bj==="object"&&"setInterval" in bj},isNaN:function(bj){return bj==null||!ab.test(bj)||isNaN(bj)},type:function(bj){return bj==null?String(bj):c[S.call(bj)]||"object"},isPlainObject:function(bj){if(!bj||bh.type(bj)!=="object"||bj.nodeType||bh.isWindow(bj)){return false}if(bj.constructor&&!X.call(bj,"constructor")&&!X.call(bj.constructor.prototype,"isPrototypeOf")){return false}for(var bk in bj){}return bk===aA||X.call(bj,bk)},isEmptyObject:function(bj){for(var bk in bj){return false}return true},error:function(bj){throw bj},parseJSON:function(bj){if(typeof bj!=="string"||!bj){return null}bj=bh.trim(bj);if(aa.test(bj.replace(T,"@").replace(W,"]").replace(U,""))){return aw.JSON&&aw.JSON.parse?aw.JSON.parse(bj):(new Function("return "+bj))()}else{bh.error("Invalid JSON: "+bj)}},noop:function(){},globalEval:function(bk){if(bk&&a9.test(bk)){var bl=H.getElementsByTagName("head")[0]||H.documentElement,bj=H.createElement("script");bj.type="text/javascript";if(bh.support.scriptEval){bj.appendChild(H.createTextNode(bk))}else{bj.text=bk}bl.insertBefore(bj,bl.firstChild);bl.removeChild(bj)}},nodeName:function(bj,bk){return bj.nodeName&&bj.nodeName.toUpperCase()===bk.toUpperCase()},each:function(bl,bo,bk){var bp,bm=0,bn=bl.length,bj=bn===aA||bh.isFunction(bl);if(bk){if(bj){for(bp in bl){if(bo.apply(bl[bp],bk)===false){break}}}else{for(;bm<bn;){if(bo.apply(bl[bm++],bk)===false){break}}}}else{if(bj){for(bp in bl){if(bo.call(bl[bp],bp,bl[bp])===false){break}}}else{for(bk=bl[0];bm<bn&&bo.call(bk,bm,bk)!==false;bk=bl[++bm]){}}}return bl},trim:t?function(bj){return bj==null?"":t.call(bj)}:function(bj){return bj==null?"":bj.toString().replace(ba,"").replace(a6,"")},makeArray:function(bk,bl){var bj=bl||[];if(bk!=null){var bm=bh.type(bk);bk.length==null||bm==="string"||bm==="function"||bm==="regexp"||bh.isWindow(bk)?E.call(bj,bk):bh.merge(bj,bk)}return bj},inArray:function(bk,bl){if(bl.indexOf){return bl.indexOf(bk)}for(var bj=0,bm=bl.length;bj<bm;bj++){if(bl[bj]===bk){return bj}}return -1},merge:function(bk,bm){var bj=bk.length,bn=0;if(typeof bm.length==="number"){for(var bl=bm.length;bn<bl;bn++){bk[bj++]=bm[bn]}}else{for(;bm[bn]!==aA;){bk[bj++]=bm[bn++]}}bk.length=bj;return bk},grep:function(bl,bo,bk){var bp=[],bm;bk=!!bk;for(var bn=0,bj=bl.length;bn<bj;bn++){bm=!!bo(bl[bn],bn);bk!==bm&&bp.push(bl[bn])}return bp},map:function(bl,bo,bk){for(var bp=[],bm,bn=0,bj=bl.length;bn<bj;bn++){bm=bo(bl[bn],bn,bk);if(bm!=null){bp[bp.length]=bm}}return bp.concat.apply([],bp)},guid:1,proxy:function(bk,bl,bj){if(arguments.length===2){if(typeof bl==="string"){bj=bk;bk=bj[bl];bl=aA}else{if(bl&&!bh.isFunction(bl)){bj=bl;bl=aA}}}if(!bl&&bk){bl=function(){return bk.apply(bj||this,arguments)}}if(bk){bl.guid=bk.guid=bk.guid||bl.guid||bh.guid++}return bl},access:function(bl,bo,bk,bq,bm,bn){var bj=bl.length;if(typeof bo==="object"){for(var bp in bo){bh.access(bl,bp,bo[bp],bq,bm,bk)}return bl}if(bk!==aA){bq=!bn&&bq&&bh.isFunction(bk);for(bp=0;bp<bj;bp++){bm(bl[bp],bo,bq?bk.call(bl[bp],bp,bm(bl[bp],bo)):bk,bn)}return bl}return bj?bm(bl[0],bo):aA},now:function(){return(new Date).getTime()},uaMatch:function(bj){bj=bj.toLowerCase();bj=P.exec(bj)||bd.exec(bj)||bb.exec(bj)||bj.indexOf("compatible")<0&&a7.exec(bj)||[];return{browser:bj[1]||"",version:bj[2]||"0"}},browser:{}});bh.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(bj,bk){c["[object "+bk+"]"]=bk.toLowerCase()});a8=bh.uaMatch(a8);if(a8.browser){bh.browser[a8.browser]=true;bh.browser.version=a8.version}if(bh.browser.webkit){bh.browser.safari=true}if(Z){bh.inArray=function(bj,bk){return Z.call(bk,bj)}}if(!/\s/.test("\u00a0")){ba=/^[\s\xA0]+/;a6=/[\s\xA0]+$/}be=bh(H);if(H.addEventListener){Y=function(){H.removeEventListener("DOMContentLoaded",Y,false);bh.ready()}}else{if(H.attachEvent){Y=function(){if(H.readyState==="complete"){H.detachEvent("onreadystatechange",Y);bh.ready()}}}}return aw.jQuery=aw.$=bh}();(function(){Q.support={};var X=H.documentElement,V=H.createElement("script"),U=H.createElement("div"),T="script"+Q.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=H.createElement("select"),E=B.appendChild(H.createElement("option"));if(!(!S||!S.length||!P)){Q.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;Q.support.optDisabled=!E.disabled;V.type="text/javascript";try{V.appendChild(H.createTextNode("window."+T+"=1;"))}catch(t){}X.insertBefore(V,X.firstChild);if(aw[T]){Q.support.scriptEval=true;delete aw[T]}try{delete V.test}catch(W){Q.support.deleteExpando=false}X.removeChild(V);if(U.attachEvent&&U.fireEvent){U.attachEvent("onclick",function c(){Q.support.noCloneEvent=false;U.detachEvent("onclick",c)});U.cloneNode(true).fireEvent("onclick")}U=H.createElement("div");U.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";X=H.createDocumentFragment();X.appendChild(U.firstChild);Q.support.checkClone=X.cloneNode(true).cloneNode(true).lastChild.checked;Q(function(){var Z=H.createElement("div");Z.style.width=Z.style.paddingLeft="1px";H.body.appendChild(Z);Q.boxModel=Q.support.boxModel=Z.offsetWidth===2;if("zoom" in Z.style){Z.style.display="inline";Z.style.zoom=1;Q.support.inlineBlockNeedsLayout=Z.offsetWidth===2;Z.style.display="";Z.innerHTML="<div style='width:4px;'></div>";Q.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");Q.support.reliableHiddenOffsets=Y[0].offsetHeight===0;Y[0].style.display="";Y[1].style.display="none";Q.support.reliableHiddenOffsets=Q.support.reliableHiddenOffsets&&Y[0].offsetHeight===0;Z.innerHTML="";H.body.removeChild(Z).style.display="none"});X=function(Z){var Y=H.createElement("div");Z="on"+Z;var aa=Z in Y;if(!aa){Y.setAttribute(Z,"return;");aa=typeof Y[Z]==="function"}return aa};Q.support.submitBubbles=X("submit");Q.support.changeBubbles=X("change");X=V=U=S=P=null}})();var a1={},R=/^(?:\{.*\}|\[.*\])$/;Q.extend({cache:{},uuid:0,expando:"jQuery"+Q.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(t,c,S){if(Q.acceptData(t)){t=t==aw?a1:t;var P=t.nodeType,E=P?t[Q.expando]:null,B=Q.cache;if(!(P&&!E&&typeof c==="string"&&S===aA)){if(P){E||(t[Q.expando]=E=++Q.uuid)}else{B=t}if(typeof c==="object"){if(P){B[E]=Q.extend(B[E],c)}else{Q.extend(B,c)}}else{if(P&&!B[E]){B[E]={}}}t=P?B[E]:B;if(S!==aA){t[c]=S}return typeof c==="string"?t[c]:t}}},removeData:function(B,c){if(Q.acceptData(B)){B=B==aw?a1:B;var T=B.nodeType,S=T?B[Q.expando]:B,P=Q.cache,E=T?P[S]:S;if(c){if(E){delete E[c];T&&Q.isEmptyObject(E)&&Q.removeData(B)}}else{if(T&&Q.support.deleteExpando){delete B[Q.expando]}else{if(B.removeAttribute){B.removeAttribute(Q.expando)}else{if(T){delete P[S]}else{for(var t in B){delete B[t]}}}}}}},acceptData:function(t){if(t.nodeName){var c=Q.noData[t.nodeName.toLowerCase()];if(c){return !(c===true||t.getAttribute("classid")!==c)}}return true}});Q.fn.extend({data:function(B,c){var U=null;if(typeof B==="undefined"){if(this.length){var T=this[0].attributes,S;U=Q.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);j(this[0],S,U[S])}}}return U}else{if(typeof B==="object"){return this.each(function(){Q.data(this,B)})}}var E=B.split(".");E[1]=E[1]?"."+E[1]:"";if(c===aA){U=this.triggerHandler("getData"+E[1]+"!",[E[0]]);if(U===aA&&this.length){U=Q.data(this[0],B);U=j(this[0],B,U)}return U===aA&&E[1]?this.data(E[0]):U}else{return this.each(function(){var W=Q(this),V=[E[0],c];W.triggerHandler("setData"+E[1]+"!",V);Q.data(this,B,c);W.triggerHandler("changeData"+E[1]+"!",V)})}},removeData:function(c){return this.each(function(){Q.removeData(this,c)})}});Q.extend({queue:function(t,c,E){if(t){c=(c||"fx")+"queue";var B=Q.data(t,c);if(!E){return B||[]}if(!B||Q.isArray(E)){B=Q.data(t,c,Q.makeArray(E))}else{B.push(E)}return B}},dequeue:function(t,c){c=c||"fx";var E=Q.queue(t,c),B=E.shift();if(B==="inprogress"){B=E.shift()}if(B){c==="fx"&&E.unshift("inprogress");B.call(t,function(){Q.dequeue(t,c)})}}});Q.fn.extend({queue:function(t,c){if(typeof t!=="string"){c=t;t="fx"}if(c===aA){return Q.queue(this[0],t)}return this.each(function(){var B=Q.queue(this,t,c);t==="fx"&&B[0]!=="inprogress"&&Q.dequeue(this,t)})},dequeue:function(c){return this.each(function(){Q.dequeue(this,c)})},delay:function(t,c){t=Q.fx?Q.fx.speeds[t]||t:t;c=c||"fx";return this.queue(c,function(){var B=this;setTimeout(function(){Q.dequeue(B,c)},t)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var aP=/[\n\t]/g,at=/\s+/,d=/\r/g,aS=/^(?:href|src|style)$/,aF=/^(?:button|input)$/i,ag=/^(?:button|input|object|select|textarea)$/i,G=/^a(?:rea)?$/i,aC=/^(?:radio|checkbox)$/i;Q.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};Q.fn.extend({attr:function(t,c){return Q.access(this,t,c,true,Q.attr)},removeAttr:function(c){return this.each(function(){Q.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(V){if(Q.isFunction(V)){return this.each(function(W){var X=Q(this);X.addClass(V.call(this,W,X.attr("class")))})}if(V&&typeof V==="string"){for(var U=(V||"").split(at),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=Q.trim(t)}else{P.className=V}}}}return this},removeClass:function(B){if(Q.isFunction(B)){return this.each(function(W){var V=Q(this);V.removeClass(B.call(this,W,V.attr("class")))})}if(B&&typeof B==="string"||B===aA){for(var c=(B||"").split(at),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(aP," "),t=0,E=c.length;t<E;t++){P=P.replace(" "+c[t]+" "," ")}S.className=Q.trim(P)}else{S.className=""}}}}return this},toggleClass:function(t,c){var E=typeof t,B=typeof c==="boolean";if(Q.isFunction(t)){return this.each(function(S){var P=Q(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=Q(this),S=c,V=t.split(at);U=V[T++];){S=B?S:!P.hasClass(U);P[S?"addClass":"removeClass"](U)}}else{if(E==="undefined"||E==="boolean"){this.className&&Q.data(this,"__className__",this.className);this.className=this.className||t===false?"":Q.data(this,"__className__")||""}}})},hasClass:function(t){t=" "+t+" ";for(var c=0,B=this.length;c<B;c++){if((" "+this[c].className+" ").replace(aP," ").indexOf(t)>-1){return true}}return false},val:function(B){if(!arguments.length){var c=this[0];if(c){if(Q.nodeName(c,"option")){var U=c.attributes.value;return !U||U.specified?c.value:c.text}if(Q.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&&(Q.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!Q.nodeName(t.parentNode,"optgroup"))){B=Q(t).val();if(c){return B}U.push(B)}}return U}if(aC.test(c.type)&&!Q.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(d,"")}return aA}var E=Q.isFunction(B);return this.each(function(Y){var W=Q(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(Q.isArray(X)){X=Q.map(X,function(Z){return Z==null?"":Z+""})}}}if(Q.isArray(X)&&aC.test(this.type)){this.checked=Q.inArray(W.val(),X)>=0}else{if(Q.nodeName(this,"select")){var V=Q.makeArray(X);Q("option",this).each(function(){this.selected=Q.inArray(Q(this).val(),V)>=0});if(!V.length){this.selectedIndex=-1}}else{this.value=X}}}})}});Q.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 aA}if(P&&c in Q.attrFn){return Q(t)[c](S)}P=t.nodeType!==1||!Q.isXMLDoc(t);var E=S!==aA;c=P&&Q.props[c]||c;var B=aS.test(c);if((c in t||t[c]!==aA)&&P&&!B){if(E){c==="type"&&aF.test(t.nodeName)&&t.parentNode&&Q.error("type property can't be changed");if(S===null){t.nodeType===1&&t.removeAttribute(c)}else{t[c]=S}}if(Q.nodeName(t,"form")&&t.getAttributeNode(c)){return t.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=t.getAttributeNode("tabIndex"))&&c.specified?c.value:ag.test(t.nodeName)||G.test(t.nodeName)&&t.href?0:aA}return t[c]}if(!Q.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 aA}t=!Q.support.hrefNormalized&&P&&B?t.getAttribute(c,2):t.getAttribute(c);return t===null?aA:t}});var ai=/\.(.*)$/,L=/^(?:textarea|input|select)$/i,n=/\./g,a2=/ /g,r=/[^\w\s.|`]/g,e=function(c){return c.replace(r,"\\$&")},ad={focusin:0,focusout:0};Q.event={add:function(Z,X,W,V){if(!(Z.nodeType===3||Z.nodeType===8)){if(Q.isWindow(Z)&&Z!==aw&&!Z.frameElement){Z=aw}if(W===false){W=al}else{if(!W){return}}var U,T;if(W.handler){U=W;W=U.handler}if(!W.guid){W.guid=Q.guid++}if(T=Q.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 Q!=="undefined"&&!Q.event.triggered?Q.event.handle.apply(E.elem,arguments):aA}}E.elem=Z;X=X.split(" ");for(var Y=0,c;P=X[Y++];){T=U?Q.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=Q.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);Q.event.global[P]=true}Z=null}}},global:{},remove:function(aa,X,W,V){if(!(aa.nodeType===3||aa.nodeType===8)){if(W===false){W=al}var U,T,P=0,S,E,Z,c,B,t,Y=aa.nodeType?"events":"__events__",a3=Q.data(aa),ab=a3&&a3[Y];if(a3&&ab){if(typeof ab==="function"){a3=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){Q.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("(^|\\.)"+Q.map(E.slice(0).sort(),e).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(B=ab[U]){if(W){c=Q.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){Q.removeEvent(aa,U,a3.handle)}delete ab[U]}}else{for(T=0;T<B.length;T++){t=B[T];if(S||Z.test(t.namespace)){Q.event.remove(aa,c,t.handler,T);B.splice(T--,1)}}}}}if(Q.isEmptyObject(ab)){if(X=a3.handle){X.elem=null}delete a3.events;delete a3.handle;if(typeof a3==="function"){Q.removeData(aa,Y)}else{Q.isEmptyObject(a3)&&Q.removeData(aa)}}}}}},trigger:function(X,V,U,T){var S=X.type||X;if(!T){X=typeof X==="object"?X[Q.expando]?X:Q.extend(Q.Event(S),X):Q.Event(S);if(S.indexOf("!")>=0){X.type=S=S.slice(0,-1);X.exclusive=true}if(!U){X.stopPropagation();Q.event.global[S]&&Q.each(Q.cache,function(){this.events&&this.events[S]&&Q.event.trigger(X,V,this.handle.elem)})}if(!U||U.nodeType===3||U.nodeType===8){return aA}X.result=aA;X.target=U;V=Q.makeArray(V);V.unshift(X)}X.currentTarget=U;(T=U.nodeType?Q.data(U,"handle"):(Q.data(U,"__events__")||{}).handle)&&T.apply(U,V);T=U.parentNode||U.ownerDocument;try{if(!(U&&U.nodeName&&Q.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){Q.event.trigger(X,V,T,true)}else{if(!X.isDefaultPrevented()){var B;T=X.target;var E=S.replace(ai,""),t=Q.nodeName(T,"a")&&E==="click",W=Q.event.special[E]||{};if((!W._default||W._default.call(U,X)===false)&&!t&&!(T&&T.nodeName&&Q.noData[T.nodeName.toLowerCase()])){try{if(T[E]){if(B=T["on"+E]){T["on"+E]=null}Q.event.triggered=true;T[E]()}}catch(c){}if(B){T["on"+E]=B}Q.event.triggered=false}}}},handle:function(B){var c,U,T,S;U=[];var P=Q.makeArray(arguments);B=P[0]=Q.event.fix(B||aw.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=Q.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!==aA){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[Q.expando]){return t}var c=t;t=Q.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||H}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=H.documentElement;E=H.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!==aA){t.which=t.button&1?1:t.button&2?3:t.button&4?2:0}return t},guid:100000000,proxy:Q.proxy,special:{ready:{setup:Q.bindReady,teardown:Q.noop},live:{add:function(c){Q.event.add(this,ah(c.origType,c.selector),Q.extend({},c,{handler:A,guid:c.handler.guid}))},remove:function(c){Q.event.remove(this,ah(c.origType,c.selector),c)}},beforeunload:{setup:function(t,c,B){if(Q.isWindow(this)){this.onbeforeunload=B}},teardown:function(t,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};Q.removeEvent=H.removeEventListener?function(t,c,B){t.removeEventListener&&t.removeEventListener(c,B,false)}:function(t,c,B){t.detachEvent&&t.detachEvent("on"+c,B)};Q.Event=function(c){if(!this.preventDefault){return new Q.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=Q.now();this[Q.expando]=true};Q.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var c=this.originalEvent;if(c){if(c.preventDefault){c.preventDefault()}else{c.returnValue=false}}},stopPropagation:function(){this.isPropagationStopped=J;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:al,isPropagationStopped:al,isImmediatePropagationStopped:al};var D=function(t){var c=t.relatedTarget;try{for(;c&&c!==this;){c=c.parentNode}if(c!==this){t.type=t.data;Q.event.handle.apply(this,arguments)}}catch(B){}},p=function(c){c.type=c.data;Q.event.handle.apply(this,arguments)};Q.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,c){Q.event.special[t]={setup:function(B){Q.event.add(this,c,B&&B.selector?p:D,t)},teardown:function(B){Q.event.remove(this,c,B&&B.selector?p:D)}}});if(!Q.support.submitBubbles){Q.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){Q.event.add(this,"click.specialSubmit",function(t){var c=t.target,B=c.type;if((B==="submit"||B==="image")&&Q(c).closest("form").length){t.liveFired=aA;return aY("submit",this,arguments)}});Q.event.add(this,"keypress.specialSubmit",function(t){var c=t.target,B=c.type;if((B==="text"||B==="password")&&Q(c).closest("form").length&&t.keyCode===13){t.liveFired=aA;return aY("submit",this,arguments)}})}else{return false}},teardown:function(){Q.event.remove(this,".specialSubmit")}}}if(!Q.support.changeBubbles){var ak,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?Q.map(t.options,function(E){return E.selected}).join("-"):""}else{if(t.nodeName.toLowerCase()==="select"){B=t.selectedIndex}}}return B},af=function(t,c){var P=t.target,E,B;if(!(!L.test(P.nodeName)||P.readOnly)){E=Q.data(P,"_change_data");B=b(P);if(t.type!=="focusout"||P.type!=="radio"){Q.data(P,"_change_data",B)}if(!(E===aA||B===E)){if(E!=null||B){t.type="change";t.liveFired=aA;return Q.event.trigger(t,c,P)}}}};Q.event.special.change={filters:{focusout:af,beforedeactivate:af,click:function(t){var c=t.target,B=c.type;if(B==="radio"||B==="checkbox"||c.nodeName.toLowerCase()==="select"){return af.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 af.call(this,t)}},beforeactivate:function(c){c=c.target;Q.data(c,"_change_data",b(c))}},setup:function(){if(this.type==="file"){return false}for(var c in ak){Q.event.add(this,c+".specialChange",ak[c])}return L.test(this.nodeName)},teardown:function(){Q.event.remove(this,".specialChange");return L.test(this.nodeName)}};ak=Q.event.special.change.filters;ak.focus=ak.beforeactivate}H.addEventListener&&Q.each({focus:"focusin",blur:"focusout"},function(t,c){function B(E){E=Q.event.fix(E);E.type=c;return Q.event.trigger(E,null,E.target)}Q.event.special[c]={setup:function(){ad[c]++===0&&H.addEventListener(t,B,true)},teardown:function(){--ad[c]===0&&H.removeEventListener(t,B,true)}}});Q.each(["bind","one"],function(t,c){Q.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(Q.isFunction(T)||T===false){S=T;T=aA}var B=c==="one"?Q.proxy(S,function(V){Q(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++){Q.event.add(this[P],U,B,T)}}return this}});Q.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++){Q.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(){Q.event.trigger(t,c,this)})},triggerHandler:function(t,c){if(this[0]){var B=Q.Event(t);B.preventDefault();B.stopPropagation();Q.event.trigger(B,c,this[0]);return B.result}},toggle:function(t){for(var c=arguments,B=1;B<c.length;){Q.proxy(t,c[B++])}return this.click(Q.proxy(t,function(P){var E=(Q.data(this,"lastToggle"+t.guid)||0)%B;Q.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 aR={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};Q.each(["live","die"],function(t,c){Q.fn[c]=function(X,W,V,U){var S,T=0,P,Y,B=U||this.selector;U=U?this:Q(this.context);if(typeof X==="object"&&!X.preventDefault){for(S in X){U[c](S,W,X[S],B)}return this}if(Q.isFunction(W)){V=W;W=aA}for(X=(X||"").split(" ");(S=X[T++])!=null;){P=ai.exec(S);Y="";if(P){Y=P[0];S=S.replace(ai,"")}if(S==="hover"){X.push("mouseenter"+Y,"mouseleave"+Y)}else{P=S;if(S==="focus"||S==="blur"){X.push(aR[S]+Y);S+=Y}else{S=(aR[S]||S)+Y}if(c==="live"){Y=0;for(var E=U.length;Y<E;Y++){Q.event.add(U[Y],"live."+ah(S,B),{data:W,selector:B,handler:V,origType:S,origHandler:V,preType:P})}}else{U.unbind("live."+ah(S,B),V)}}}return this}});Q.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){Q.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(Q.attrFn){Q.attrFn[c]=true}});aw.attachEvent&&!aw.addEventListener&&Q(aw).bind("unload",function(){for(var t in Q.cache){if(Q.cache[t].handle){try{Q.event.remove(Q.cache[t].handle.elem)}catch(c){}}}});(function(){function ab(ba,a9,a7,a8,a6,a5){a6=0;for(var bc=a8.length;a6<bc;a6++){var bb=a8[a6];if(bb){var bd=false;for(bb=bb[ba];bb;){if(bb.sizcache===a7){bd=a8[bb.sizset];break}if(bb.nodeType===1&&!a5){bb.sizcache=a7;bb.sizset=a6}if(bb.nodeName.toLowerCase()===a9){bd=bb;break}bb=bb[ba]}a8[a6]=bd}}}function Y(ba,a9,a7,a8,a6,a5){a6=0;for(var bc=a8.length;a6<bc;a6++){var bb=a8[a6];if(bb){var bd=false;for(bb=bb[ba];bb;){if(bb.sizcache===a7){bd=a8[bb.sizset];break}if(bb.nodeType===1){if(!a5){bb.sizcache=a7;bb.sizset=a6}if(typeof a9!=="string"){if(bb===a9){bd=true;break}}else{if(S.filter(a9,[bb]).length>0){bd=bb;break}}}bb=bb[ba]}a8[a6]=bd}}}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(bc,bb,a8,a9){a8=a8||[];var a7=bb=bb||H;if(bb.nodeType!==1&&bb.nodeType!==9){return[]}if(!bc||typeof bc!=="string"){return a8}var a6,bh,bg,bi,bf,be=true,bd=S.isXML(bb),a5=[],ba=bc;do{W.exec("");if(a6=W.exec(ba)){ba=a6[3];a5.push(a6[1]);if(a6[2]){bi=a6[3];break}}}while(a6);if(a5.length>1&&aa.exec(bc)){if(a5.length===2&&E.relative[a5[0]]){bh=X(a5[0]+a5[1],bb)}else{for(bh=E.relative[a5[0]]?[bb]:S(a5.shift(),bb);a5.length;){bc=a5.shift();if(E.relative[bc]){bc+=a5.shift()}bh=X(bc,bh)}}}else{if(!a9&&a5.length>1&&bb.nodeType===9&&!bd&&E.match.ID.test(a5[0])&&!E.match.ID.test(a5[a5.length-1])){a6=S.find(a5.shift(),bb,bd);bb=a6.expr?S.filter(a6.expr,a6.set)[0]:a6.set[0]}if(bb){a6=a9?{expr:a5.pop(),set:t(a9)}:S.find(a5.pop(),a5.length===1&&(a5[0]==="~"||a5[0]==="+")&&bb.parentNode?bb.parentNode:bb,bd);bh=a6.expr?S.filter(a6.expr,a6.set):a6.set;if(a5.length>0){bg=t(bh)}else{be=false}for(;a5.length;){a6=bf=a5.pop();if(E.relative[bf]){a6=a5.pop()}else{bf=""}if(a6==null){a6=bb}E.relative[bf](bg,a6,bd)}}else{bg=[]}}bg||(bg=bh);bg||S.error(bf||bc);if(U.call(bg)==="[object Array]"){if(be){if(bb&&bb.nodeType===1){for(bc=0;bg[bc]!=null;bc++){if(bg[bc]&&(bg[bc]===true||bg[bc].nodeType===1&&S.contains(bb,bg[bc]))){a8.push(bh[bc])}}}else{for(bc=0;bg[bc]!=null;bc++){bg[bc]&&bg[bc].nodeType===1&&a8.push(bh[bc])}}}else{a8.push.apply(a8,bg)}}else{t(bg,a8)}if(bi){S(bi,a7,a8,a9);S.uniqueSort(a8)}return a8};S.uniqueSort=function(a6){if(a4){T=P;a6.sort(a4);if(T){for(var a5=1;a5<a6.length;a5++){a6[a5]===a6[a5-1]&&a6.splice(a5--,1)}}}return a6};S.matches=function(a6,a5){return S(a6,null,null,a5)};S.matchesSelector=function(a6,a5){return S(a5,null,null,[a6]).length>0};S.find=function(ba,a9,a7){var a8;if(!ba){return[]}for(var a6=0,a5=E.order.length;a6<a5;a6++){var bc,bb=E.order[a6];if(bc=E.leftMatch[bb].exec(ba)){var bd=bc[1];bc.splice(1,1);if(bd.substr(bd.length-1)!=="\\"){bc[1]=(bc[1]||"").replace(/\\/g,"");a8=E.find[bb](bc,a9,a7);if(a8!=null){ba=ba.replace(E.match[bb],"");break}}}}a8||(a8=a9.getElementsByTagName("*"));return{set:a8,expr:ba}};S.filter=function(bd,bc,a8,a9){for(var a7,a6,bi=bd,bh=[],bj=bc,bg=bc&&bc[0]&&S.isXML(bc[0]);bd&&bc.length;){for(var bf in E.filter){if((a7=E.leftMatch[bf].exec(bd))!=null&&a7[2]){var be,a5,bb=E.filter[bf];a5=a7[1];a6=false;a7.splice(1,1);if(a5.substr(a5.length-1)!=="\\"){if(bj===bh){bh=[]}if(E.preFilter[bf]){if(a7=E.preFilter[bf](a7,bj,a8,bh,a9,bg)){if(a7===true){continue}}else{a6=be=true}}if(a7){for(var ba=0;(a5=bj[ba])!=null;ba++){if(a5){be=bb(a5,a7,ba,bj);var bk=a9^!!be;if(a8&&be!=null){if(bk){a6=true}else{bj[ba]=false}}else{if(bk){bh.push(a5);a6=true}}}}}if(be!==aA){a8||(bj=bh);bd=bd.replace(E.match[bf],"");if(!a6){return[]}break}}}}if(bd===bi){if(a6==null){S.error(bd)}else{break}}bi=bd}return bj};S.error=function(a5){throw"Syntax error, unrecognized expression: "+a5};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(a5){return a5.getAttribute("href")}},relative:{"+":function(a7,a6){var ba=typeof a6==="string",a5=ba&&!/\W/.test(a6);ba=ba&&!a5;if(a5){a6=a6.toLowerCase()}a5=0;for(var a9=a7.length,a8;a5<a9;a5++){if(a8=a7[a5]){for(;(a8=a8.previousSibling)&&a8.nodeType!==1;){}a7[a5]=ba||a8&&a8.nodeName.toLowerCase()===a6?a8||false:a8===a6}}ba&&S.filter(a6,a7,true)},">":function(a7,a6){var ba,a5=typeof a6==="string",a9=0,a8=a7.length;if(a5&&!/\W/.test(a6)){for(a6=a6.toLowerCase();a9<a8;a9++){if(ba=a7[a9]){ba=ba.parentNode;a7[a9]=ba.nodeName.toLowerCase()===a6?ba:false}}}else{for(;a9<a8;a9++){if(ba=a7[a9]){a7[a9]=a5?ba.parentNode:ba.parentNode===a6}}a5&&S.filter(a6,a7,true)}},"":function(a7,a6,ba){var a5,a9=V++,a8=Y;if(typeof a6==="string"&&!/\W/.test(a6)){a5=a6=a6.toLowerCase();a8=ab}a8("parentNode",a6,a9,a7,a5,ba)},"~":function(a7,a6,ba){var a5,a9=V++,a8=Y;if(typeof a6==="string"&&!/\W/.test(a6)){a5=a6=a6.toLowerCase();a8=ab}a8("previousSibling",a6,a9,a7,a5,ba)}},find:{ID:function(a6,a5,a7){if(typeof a5.getElementById!=="undefined"&&!a7){return(a6=a5.getElementById(a6[1]))&&a6.parentNode?[a6]:[]}},NAME:function(a7,a6){if(typeof a6.getElementsByName!=="undefined"){for(var ba=[],a5=a6.getElementsByName(a7[1]),a9=0,a8=a5.length;a9<a8;a9++){a5[a9].getAttribute("name")===a7[1]&&ba.push(a5[a9])}return ba.length===0?null:ba}},TAG:function(a6,a5){return a5.getElementsByTagName(a6[1])}},preFilter:{CLASS:function(a8,a7,bb,a5,ba,a9){a8=" "+a8[1].replace(/\\/g,"")+" ";if(a9){return a8}a9=0;for(var a6;(a6=a7[a9])!=null;a9++){if(a6){if(ba^(a6.className&&(" "+a6.className+" ").replace(/[\t\n]/g," ").indexOf(a8)>=0)){bb||a5.push(a6)}else{if(bb){a7[a9]=false}}}}return false},ID:function(a5){return a5[1].replace(/\\/g,"")},TAG:function(a5){return a5[1].toLowerCase()},CHILD:function(a6){if(a6[1]==="nth"){var a5=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a6[2]==="even"&&"2n"||a6[2]==="odd"&&"2n+1"||!/\D/.test(a6[2])&&"0n+"+a6[2]||a6[2]);a6[2]=a5[1]+(a5[2]||1)-0;a6[3]=a5[3]-0}a6[0]=V++;return a6},ATTR:function(a7,a6,ba,a5,a9,a8){a6=a7[1].replace(/\\/g,"");if(!a8&&E.attrMap[a6]){a7[1]=E.attrMap[a6]}if(a7[2]==="~="){a7[4]=" "+a7[4]+" "}return a7},PSEUDO:function(a7,a6,a9,a5,a8){if(a7[1]==="not"){if((W.exec(a7[3])||"").length>1||/^\w/.test(a7[3])){a7[3]=S(a7[3],null,null,a6)}else{a7=S.filter(a7[3],a6,a9,true^a8);a9||a5.push.apply(a5,a7);return false}}else{if(E.match.POS.test(a7[0])||E.match.CHILD.test(a7[0])){return true}}return a7},POS:function(a5){a5.unshift(true);return a5}},filters:{enabled:function(a5){return a5.disabled===false&&a5.type!=="hidden"},disabled:function(a5){return a5.disabled===true},checked:function(a5){return a5.checked===true},selected:function(a5){return a5.selected===true},parent:function(a5){return !!a5.firstChild},empty:function(a5){return !a5.firstChild},has:function(a6,a5,a7){return !!S(a7[3],a6).length},header:function(a5){return/h\d/i.test(a5.nodeName)},text:function(a5){return"text"===a5.type},radio:function(a5){return"radio"===a5.type},checkbox:function(a5){return"checkbox"===a5.type},file:function(a5){return"file"===a5.type},password:function(a5){return"password"===a5.type},submit:function(a5){return"submit"===a5.type},image:function(a5){return"image"===a5.type},reset:function(a5){return"reset"===a5.type},button:function(a5){return"button"===a5.type||a5.nodeName.toLowerCase()==="button"},input:function(a5){return/input|select|textarea|button/i.test(a5.nodeName)}},setFilters:{first:function(a6,a5){return a5===0},last:function(a7,a6,a8,a5){return a6===a5.length-1},even:function(a6,a5){return a5%2===0},odd:function(a6,a5){return a5%2===1},lt:function(a6,a5,a7){return a5<a7[3]-0},gt:function(a6,a5,a7){return a5>a7[3]-0},nth:function(a6,a5,a7){return a7[3]-0===a5},eq:function(a6,a5,a7){return a7[3]-0===a5}},filter:{PSEUDO:function(a7,a6,ba,a5){var a9=a6[1],a8=E.filters[a9];if(a8){return a8(a7,ba,a6,a5)}else{if(a9==="contains"){return(a7.textContent||a7.innerText||S.getText([a7])||"").indexOf(a6[3])>=0}else{if(a9==="not"){a6=a6[3];ba=0;for(a5=a6.length;ba<a5;ba++){if(a6[ba]===a7){return false}}return true}else{S.error("Syntax error, unrecognized expression: "+a9)}}}},CHILD:function(a8,a7){var bc=a7[1],a5=a8;switch(bc){case"only":case"first":for(;a5=a5.previousSibling;){if(a5.nodeType===1){return false}}if(bc==="first"){return true}a5=a8;case"last":for(;a5=a5.nextSibling;){if(a5.nodeType===1){return false}}return true;case"nth":bc=a7[2];var ba=a7[3];if(bc===1&&ba===0){return true}var a9=a7[0],a6=a8.parentNode;if(a6&&(a6.sizcache!==a9||!a8.nodeIndex)){var bb=0;for(a5=a6.firstChild;a5;a5=a5.nextSibling){if(a5.nodeType===1){a5.nodeIndex=++bb}}a6.sizcache=a9}a5=a8.nodeIndex-ba;return bc===0?a5===0:a5%bc===0&&a5/bc>=0}},ID:function(a6,a5){return a6.nodeType===1&&a6.getAttribute("id")===a5},TAG:function(a6,a5){return a5==="*"&&a6.nodeType===1||a6.nodeName.toLowerCase()===a5},CLASS:function(a6,a5){return(" "+(a6.className||a6.getAttribute("class"))+" ").indexOf(a5)>-1},ATTR:function(a7,a6){var ba=a6[1];ba=E.attrHandle[ba]?E.attrHandle[ba](a7):a7[ba]!=null?a7[ba]:a7.getAttribute(ba);var a5=ba+"",a9=a6[2],a8=a6[4];return ba==null?a9==="!=":a9==="="?a5===a8:a9==="*="?a5.indexOf(a8)>=0:a9==="~="?(" "+a5+" ").indexOf(a8)>=0:!a8?a5&&ba!==false:a9==="!="?a5!==a8:a9==="^="?a5.indexOf(a8)===0:a9==="$="?a5.substr(a5.length-a8.length)===a8:a9==="|="?a5===a8||a5.substr(0,a8.length+1)===a8+"-":false},POS:function(a7,a6,a9,a5){var a8=E.setFilters[a6[2]];if(a8){return a8(a7,a9,a6,a5)}}}},aa=E.match.POS,c=function(a6,a5){return"\\"+(a5-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(a6,a5){a6=Array.prototype.slice.call(a6,0);if(a5){a5.push.apply(a5,a6);return a5}return a6};try{Array.prototype.slice.call(H.documentElement.childNodes,0)}catch(Z){t=function(a7,a6){var a9=0,a5=a6||[];if(U.call(a7)==="[object Array]"){Array.prototype.push.apply(a5,a7)}else{if(typeof a7.length==="number"){for(var a8=a7.length;a9<a8;a9++){a5.push(a7[a9])}}else{for(;a7[a9];a9++){a5.push(a7[a9])}}}return a5}}var a4,a3;if(H.documentElement.compareDocumentPosition){a4=function(a6,a5){if(a6===a5){T=true;return 0}if(!a6.compareDocumentPosition||!a5.compareDocumentPosition){return a6.compareDocumentPosition?-1:1}return a6.compareDocumentPosition(a5)&4?-1:1}}else{a4=function(a8,a7){var bb,a5,ba=[],a9=[];bb=a8.parentNode;a5=a7.parentNode;var a6=bb;if(a8===a7){T=true;return 0}else{if(bb===a5){return a3(a8,a7)}else{if(bb){if(!a5){return 1}}else{return -1}}}for(;a6;){ba.unshift(a6);a6=a6.parentNode}for(a6=a5;a6;){a9.unshift(a6);a6=a6.parentNode}bb=ba.length;a5=a9.length;for(a6=0;a6<bb&&a6<a5;a6++){if(ba[a6]!==a9[a6]){return a3(ba[a6],a9[a6])}}return a6===bb?a3(a8,a9[a6],-1):a3(ba[a6],a7,1)};a3=function(a6,a5,a7){if(a6===a5){return a7}for(a6=a6.nextSibling;a6;){if(a6===a5){return -1}a6=a6.nextSibling}return 1}}S.getText=function(a7){for(var a6="",a8,a5=0;a7[a5];a5++){a8=a7[a5];if(a8.nodeType===3||a8.nodeType===4){a6+=a8.nodeValue}else{if(a8.nodeType!==8){a6+=S.getText(a8.childNodes)}}}return a6};(function(){var a6=H.createElement("div"),a5="script"+(new Date).getTime(),a7=H.documentElement;a6.innerHTML="<a name='"+a5+"'/>";a7.insertBefore(a6,a7.firstChild);if(H.getElementById(a5)){E.find.ID=function(a8,ba,a9){if(typeof ba.getElementById!=="undefined"&&!a9){return(ba=ba.getElementById(a8[1]))?ba.id===a8[1]||typeof ba.getAttributeNode!=="undefined"&&ba.getAttributeNode("id").nodeValue===a8[1]?[ba]:aA:[]}};E.filter.ID=function(a8,ba){var a9=typeof a8.getAttributeNode!=="undefined"&&a8.getAttributeNode("id");return a8.nodeType===1&&a9&&a9.nodeValue===ba}}a7.removeChild(a6);a7=a6=null})();(function(){var a5=H.createElement("div");a5.appendChild(H.createComment(""));if(a5.getElementsByTagName("*").length>0){E.find.TAG=function(a7,ba){var a6=ba.getElementsByTagName(a7[1]);if(a7[1]==="*"){for(var a9=[],a8=0;a6[a8];a8++){a6[a8].nodeType===1&&a9.push(a6[a8])}a6=a9}return a6}}a5.innerHTML="<a href='#'></a>";if(a5.firstChild&&typeof a5.firstChild.getAttribute!=="undefined"&&a5.firstChild.getAttribute("href")!=="#"){E.attrHandle.href=function(a6){return a6.getAttribute("href",2)}}a5=null})();H.querySelectorAll&&function(){var a6=S,a5=H.createElement("div");a5.innerHTML="<p class='TEST'></p>";if(!(a5.querySelectorAll&&a5.querySelectorAll(".TEST").length===0)){S=function(a8,bc,bb,a9){bc=bc||H;a8=a8.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!a9&&!S.isXML(bc)){if(bc.nodeType===9){try{return t(bc.querySelectorAll(a8),bb)}catch(bf){}}else{if(bc.nodeType===1&&bc.nodeName.toLowerCase()!=="object"){var ba=bc.getAttribute("id"),be=ba||"__sizzle__";ba||bc.setAttribute("id",be);try{return t(bc.querySelectorAll("#"+be+" "+a8),bb)}catch(bd){}finally{ba||bc.removeAttribute("id")}}}}return a6(a8,bc,bb,a9)};for(var a7 in a6){S[a7]=a6[a7]}a5=null}}();(function(){var a7=H.documentElement,a6=a7.matchesSelector||a7.mozMatchesSelector||a7.webkitMatchesSelector||a7.msMatchesSelector,a8=false;try{a6.call(H.documentElement,"[test!='']:sizzle")}catch(a5){a8=true}if(a6){S.matchesSelector=function(bb,ba){ba=ba.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!S.isXML(bb)){try{if(a8||!E.match.PSEUDO.test(ba)&&!/!=/.test(ba)){return a6.call(bb,ba)}}catch(a9){}}return S(ba,null,null,[bb]).length>0}}})();(function(){var a5=H.createElement("div");a5.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!a5.getElementsByClassName||a5.getElementsByClassName("e").length===0)){a5.lastChild.className="e";if(a5.getElementsByClassName("e").length!==1){E.order.splice(1,0,"CLASS");E.find.CLASS=function(a7,a8,a6){if(typeof a8.getElementsByClassName!=="undefined"&&!a6){return a8.getElementsByClassName(a7[1])}};a5=null}}})();S.contains=H.documentElement.contains?function(a6,a5){return a6!==a5&&(a6.contains?a6.contains(a5):true)}:H.documentElement.compareDocumentPosition?function(a6,a5){return !!(a6.compareDocumentPosition(a5)&16)}:function(){return false};S.isXML=function(a5){return(a5=(a5?a5.ownerDocument||a5:0).documentElement)?a5.nodeName!=="HTML":false};var X=function(a8,a7){for(var bb,a5=[],ba="",a9=a7.nodeType?[a7]:a7;bb=E.match.PSEUDO.exec(a8);){ba+=bb[0];a8=a8.replace(E.match.PSEUDO,"")}a8=E.relative[a8]?a8+"*":a8;bb=0;for(var a6=a9.length;bb<a6;bb++){S(a8,a9[bb],a5)}return S.filter(ba,a5)};Q.find=S;Q.expr=S.selectors;Q.expr[":"]=Q.expr.filters;Q.unique=S.uniqueSort;Q.text=S.getText;Q.isXMLDoc=S.isXML;Q.contains=S.contains})();var aT=/Until$/,az=/^(?:parents|prevUntil|prevAll)/,aG=/,/,aQ=/^.[^:#\[\.,]*$/,ao=Array.prototype.slice,I=Q.expr.match.POS;Q.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;Q.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=Q(t);return this.filter(function(){for(var E=0,B=c.length;E<B;E++){if(Q.contains(this,c[E])){return true}}})},not:function(c){return this.pushStack(aL(this,c,false),"not",c)},filter:function(c){return this.pushStack(aL(this,c,true),"filter",c)},is:function(c){return !!c&&Q.filter(c,this).length>0},closest:function(V,U){var T=[],S,P,E=this[0];if(Q.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]=Q.expr.match.POS.test(t)?Q(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:Q(E).is(S)){T.push({selector:t,elem:E,level:c})}}E=E.parentNode;c++}}return T}t=I.test(V)?Q(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:Q.find.matchesSelector(E,V)){T.push(E);break}else{E=E.parentNode;if(!E||!E.ownerDocument||E===U){break}}}}T=T.length>1?Q.unique(T):T;return this.pushStack(T,"closest",V)},index:function(c){if(!c||typeof c==="string"){return Q.inArray(this[0],c?Q(c):this.parent().children())}return Q.inArray(c.jquery?c[0]:c,this)},add:function(t,c){var E=typeof t==="string"?Q(t,c||this.context):Q.makeArray(t),B=Q.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:Q.unique(B))},andSelf:function(){return this.add(this.prevObject)}});Q.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return Q.dir(c,"parentNode")},parentsUntil:function(t,c,B){return Q.dir(t,"parentNode",B)},next:function(c){return Q.nth(c,2,"nextSibling")},prev:function(c){return Q.nth(c,2,"previousSibling")},nextAll:function(c){return Q.dir(c,"nextSibling")},prevAll:function(c){return Q.dir(c,"previousSibling")},nextUntil:function(t,c,B){return Q.dir(t,"nextSibling",B)},prevUntil:function(t,c,B){return Q.dir(t,"previousSibling",B)},siblings:function(c){return Q.sibling(c.parentNode.firstChild,c)},children:function(c){return Q.sibling(c.firstChild)},contents:function(c){return Q.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:Q.makeArray(c.childNodes)}},function(t,c){Q.fn[t]=function(P,E){var B=Q.map(this,c,P);aT.test(t)||(E=P);if(E&&typeof E==="string"){B=Q.filter(E,B)}B=this.length>1?Q.unique(B):B;if((this.length>1||aG.test(E))&&az.test(t)){B=B.reverse()}return this.pushStack(B,t,ao.call(arguments).join(","))}});Q.extend({filter:function(t,c,B){if(B){t=":not("+t+")"}return c.length===1?Q.find.matchesSelector(c[0],t)?[c[0]]:[]:Q.find.matches(t,c)},dir:function(t,c,E){var B=[];for(t=t[c];t&&t.nodeType!==9&&(E===aA||t.nodeType!==1||!Q(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 aE=/ jQuery\d+="(?:\d+|null)"/g,aN=/^\s+/,aW=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,aJ=/<([\w:]+)/,s=/<tbody/i,f=/<|&#?\w+;/,au=/<(?:script|object|embed|option|style)/i,M=/checked\s*(?:[^=]|=\s*.checked.)/i,aU=/\=([^="'>\s]+\/)>/g,ap={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,"",""]};ap.optgroup=ap.option;ap.tbody=ap.tfoot=ap.colgroup=ap.caption=ap.thead;ap.th=ap.td;if(!Q.support.htmlSerialize){ap._default=[1,"div<div>","</div>"]}Q.fn.extend({text:function(c){if(Q.isFunction(c)){return this.each(function(t){var B=Q(this);B.text(c.call(this,t,B.text()))})}if(typeof c!=="object"&&c!==aA){return this.empty().append((this[0]&&this[0].ownerDocument||H).createTextNode(c))}return Q.text(this)},wrapAll:function(t){if(Q.isFunction(t)){return this.each(function(B){Q(this).wrapAll(t.call(this,B))})}if(this[0]){var c=Q(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(Q.isFunction(c)){return this.each(function(t){Q(this).wrapInner(c.call(this,t))})}return this.each(function(){var t=Q(this),B=t.contents();B.length?B.wrapAll(c):t.append(c)})},wrap:function(c){return this.each(function(){Q(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){Q.nodeName(this,"body")||Q(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=Q(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,Q(arguments[0]).toArray());return c}}},remove:function(t,c){for(var E=0,B;(B=this[E])!=null;E++){if(!t||Q.filter(t,[B]).length){if(!c&&B.nodeType===1){Q.cleanData(B.getElementsByTagName("*"));Q.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&&Q.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(t){var c=this.map(function(){if(!Q.support.noCloneEvent&&!Q.isXMLDoc(this)){var E=this.outerHTML,B=this.ownerDocument;if(!E){E=B.createElement("div");E.appendChild(this.cloneNode(true));E=E.innerHTML}return Q.clean([E.replace(aE,"").replace(aU,'="$1">').replace(aN,"")],B)[0]}else{return this.cloneNode(true)}});if(t===true){ax(this,c);ax(this.find("*"),c.find("*"))}return c},html:function(t){if(t===aA){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aE,""):null}else{if(typeof t==="string"&&!au.test(t)&&(Q.support.leadingWhitespace||!aN.test(t))&&!ap[(aJ.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(aW,"<$1></$2>");try{for(var c=0,E=this.length;c<E;c++){if(this[c].nodeType===1){Q.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=t}}}catch(B){this.empty().append(t)}}else{Q.isFunction(t)?this.each(function(S){var P=Q(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(Q.isFunction(c)){return this.each(function(t){var E=Q(this),B=E.html();E.replaceWith(c.call(this,t,B))})}if(typeof c!=="string"){c=Q(c).detach()}return this.each(function(){var t=this.nextSibling,B=this.parentNode;Q(this).remove();t?Q(t).before(c):Q(B).append(c)})}else{return this.pushStack(Q(Q.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(!Q.support.checkClone&&arguments.length===3&&typeof t==="string"&&M.test(t)){return this.each(function(){Q(this).domManip(V,U,T,true)})}if(Q.isFunction(t)){return this.each(function(W){var X=Q(this);V[0]=t.call(this,W,U?X.html():aA);X.domManip(V,U,T)})}if(this[0]){S=t&&t.parentNode;S=Q.support.parentNode&&S&&S.nodeType===11&&S.childNodes.length===this.length?{fragment:S}:Q.buildFragment(V,this,B);E=S.fragment;if(P=E.childNodes.length===1?E=E.firstChild:E.firstChild){U=U&&Q.nodeName(P,"tr");P=0;for(var c=this.length;P<c;P++){T.call(U?Q.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&&Q.each(B,aD)}return this}});Q.buildFragment=function(t,c,S){var P,E,B;c=c&&c[0]?c[0].ownerDocument||c[0]:H;if(t.length===1&&typeof t[0]==="string"&&t[0].length<512&&c===H&&!au.test(t[0])&&(Q.support.checkClone||!M.test(t[0]))){E=true;if(B=Q.fragments[t[0]]){if(B!==1){P=B}}}if(!P){P=c.createDocumentFragment();Q.clean(t,c,P,S)}if(E){Q.fragments[t[0]]=B?P:1}return{fragment:P,cacheable:E}};Q.fragments={};Q.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,c){Q.fn[t]=function(T){var S=[];T=Q(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();Q(T[P])[c](B);S=S.concat(B)}return this.pushStack(S,t,T.selector)}}});Q.extend({clean:function(X,V,U,T){V=V||H;if(typeof V.createElement==="undefined"){V=V.ownerDocument||V[0]&&V[0].ownerDocument||H}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(aW,"<$1></$2>");var E=(aJ.exec(B)||["",""])[1].toLowerCase(),t=ap[E]||ap._default,W=t[0],c=V.createElement("div");for(c.innerHTML=t[1]+B+t[2];W--;){c=c.lastChild}if(!Q.support.tbody){W=s.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){Q.nodeName(E[t],"tbody")&&!E[t].childNodes.length&&E[t].parentNode.removeChild(E[t])}}!Q.support.leadingWhitespace&&aN.test(B)&&c.insertBefore(V.createTextNode(aN.exec(B)[0]),c.firstChild);B=c.childNodes}}if(B.nodeType){S.push(B)}else{S=Q.merge(S,B)}}}if(U){for(P=0;S[P];P++){if(T&&Q.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(Q.makeArray(S[P].getElementsByTagName("script"))));U.appendChild(S[P])}}}return S},cleanData:function(V){for(var U,T,S=Q.cache,P=Q.event.special,E=Q.support.deleteExpando,t=0,B;(B=V[t])!=null;t++){if(!(B.nodeName&&Q.noData[B.nodeName.toLowerCase()])){if(T=B[Q.expando]){if((U=S[T])&&U.events){for(var c in U.events){P[c]?Q.event.remove(B,c):Q.removeEvent(B,c,U.handle)}}if(E){delete B[Q.expando]}else{B.removeAttribute&&B.removeAttribute(Q.expando)}delete S[T]}}}}});var x=/alpha\([^)]*\)/i,aI=/opacity=([^)]*)/,ar=/-([a-z])/ig,K=/([A-Z])/g,k=/^-?\d+(?:px)?$/i,v=/^-?\d/,h={position:"absolute",visibility:"hidden",display:"block"},ae=["Left","Right"],F=["Top","Bottom"],aj,aZ,aH,aX=function(t,c){return c.toUpperCase()};Q.fn.css=function(t,c){if(arguments.length===2&&c===aA){return this}return Q.access(this,t,c,true,function(P,E,B){return B!==aA?Q.style(P,E,B):Q.css(P,E)})};Q.extend({cssHooks:{opacity:{get:function(t,c){if(c){var B=aj(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":Q.support.cssFloat?"cssFloat":"styleFloat"},style:function(V,U,T,S){if(!(!V||V.nodeType===3||V.nodeType===8||!V.style)){var P,E=Q.camelCase(U),t=V.style,B=Q.cssHooks[E];U=Q.cssProps[E]||E;if(T!==aA){if(!(typeof T==="number"&&isNaN(T)||T==null)){if(typeof T==="number"&&!Q.cssNumber[E]){T+="px"}if(!B||!("set" in B)||(T=B.set(V,T))!==aA){try{t[U]=T}catch(c){}}}}else{if(B&&"get" in B&&(P=B.get(V,false,S))!==aA){return P}return t[U]}}},css:function(t,c,S){var P,E=Q.camelCase(c),B=Q.cssHooks[E];c=Q.cssProps[E]||E;if(B&&"get" in B&&(P=B.get(t,true,S))!==aA){return P}else{if(aj){return aj(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(ar,aX)}});Q.curCSS=Q.css;Q.each(["height","width"],function(t,c){Q.cssHooks[c]={get:function(S,P,E){var B;if(P){if(S.offsetWidth!==0){B=O(S,c,E)}else{Q.swap(S,h,function(){B=O(S,c,E)})}if(B<=0){B=aj(S,c,c);if(B==="0px"&&aH){B=aH(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(k.test(B)){B=parseFloat(B);if(B>=0){return B+"px"}}else{return B}}}});if(!Q.support.opacity){Q.cssHooks.opacity={get:function(t,c){return aI.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=Q.isNaN(c)?"":"alpha(opacity="+c*100+")",B=P.filter||"";P.filter=x.test(B)?B.replace(x,E):P.filter+" "+E}}}if(H.defaultView&&H.defaultView.getComputedStyle){aZ=function(t,c,E){var B;E=E.replace(K,"-$1").toLowerCase();if(!(c=t.ownerDocument.defaultView)){return aA}if(c=c.getComputedStyle(t,null)){B=c.getPropertyValue(E);if(B===""&&!Q.contains(t.ownerDocument.documentElement,t)){B=Q.style(t,E)}}return B}}if(H.documentElement.currentStyle){aH=function(t,c){var S,P,E=t.currentStyle&&t.currentStyle[c],B=t.style;if(!k.test(E)&&v.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}}aj=aZ||aH;if(Q.expr&&Q.expr.filters){Q.expr.filters.hidden=function(t){var c=t.offsetHeight;return t.offsetWidth===0&&c===0||!Q.support.reliableHiddenOffsets&&(t.style.display||Q.css(t,"display"))==="none"};Q.expr.filters.visible=function(c){return !Q.expr.filters.hidden(c)}}var aK=Q.now(),av=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,N=/^(?:select|textarea)/i,y=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,l=/^(?:GET|HEAD)$/,q=/\[\]$/,am=/\=\?(&|$)/,w=/\?/,a0=/([?&])_=[^&]*/,aO=/^(\w+:)?\/\/([^\/?#]+)/,aB=/%20/g,ac=/#.*$/,aM=Q.fn.load;Q.fn.extend({load:function(t,c,S){if(typeof t!=="string"&&aM){return aM.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(Q.isFunction(c)){S=c;c=null}else{if(typeof c==="object"){c=Q.param(c,Q.ajaxSettings.traditional);P="POST"}}}var B=this;Q.ajax({url:t,type:P,dataType:"html",data:c,complete:function(T,U){if(U==="success"||U==="notmodified"){B.html(E?Q("<div>").append(T.responseText.replace(av,"")).find(E):T.responseText)}S&&B.each(S,[T.responseText,U,T])}});return this},serialize:function(){return Q.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?Q.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||N.test(this.nodeName)||y.test(this.type))}).map(function(t,c){var B=Q(this).val();return B==null?null:Q.isArray(B)?Q.map(B,function(E){return{name:c.name,value:E}}):{name:c.name,value:B}}).get()}});Q.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,c){Q.fn[c]=function(B){return this.bind(c,B)}});Q.extend({get:function(t,c,E,B){if(Q.isFunction(c)){B=B||E;E=c;c=null}return Q.ajax({type:"GET",url:t,data:c,success:E,dataType:B})},getScript:function(t,c){return Q.get(t,null,c,"script")},getJSON:function(t,c,B){return Q.get(t,c,B,"json")},post:function(t,c,E,B){if(Q.isFunction(c)){B=B||E;E=c;c={}}return Q.ajax({type:"POST",url:t,data:c,success:E,dataType:B})},ajaxSetup:function(c){Q.extend(Q.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new aw.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(a7){var a6=Q.extend(true,{},Q.ajaxSettings,a7),a5,a4,a3,aa=a6.type.toUpperCase(),X=l.test(aa);a6.url=a6.url.replace(ac,"");a6.context=a7&&a7.context!=null?a7.context:a6;if(a6.data&&a6.processData&&typeof a6.data!=="string"){a6.data=Q.param(a6.data,a6.traditional)}if(a6.dataType==="jsonp"){if(aa==="GET"){am.test(a6.url)||(a6.url+=(w.test(a6.url)?"&":"?")+(a6.jsonp||"callback")+"=?")}else{if(!a6.data||!am.test(a6.data)){a6.data=(a6.data?a6.data+"&":"")+(a6.jsonp||"callback")+"=?"}}a6.dataType="json"}if(a6.dataType==="json"&&(a6.data&&am.test(a6.data)||am.test(a6.url))){a5=a6.jsonpCallback||"jsonp"+aK++;if(a6.data){a6.data=(a6.data+"").replace(am,"="+a5+"$1")}a6.url=a6.url.replace(am,"="+a5+"$1");a6.dataType="script";var Y=aw[a5];aw[a5]=function(a8){if(Q.isFunction(Y)){Y(a8)}else{aw[a5]=aA;try{delete aw[a5]}catch(a9){}}a3=a8;Q.handleSuccess(a6,P,a4,a3);Q.handleComplete(a6,P,a4,a3);T&&T.removeChild(U)}}if(a6.dataType==="script"&&a6.cache===null){a6.cache=false}if(a6.cache===false&&X){var V=Q.now(),E=a6.url.replace(a0,"$1_="+V);a6.url=E+(E===a6.url?(w.test(a6.url)?"&":"?")+"_="+V:"")}if(a6.data&&X){a6.url+=(w.test(a6.url)?"&":"?")+a6.data}a6.global&&Q.active++===0&&Q.event.trigger("ajaxStart");V=(V=aO.exec(a6.url))&&(V[1]&&V[1].toLowerCase()!==location.protocol||V[2].toLowerCase()!==location.host);if(a6.dataType==="script"&&aa==="GET"&&V){var T=H.getElementsByTagName("head")[0]||H.documentElement,U=H.createElement("script");if(a6.scriptCharset){U.charset=a6.scriptCharset}U.src=a6.url;if(!a5){var S=false;U.onload=U.onreadystatechange=function(){if(!S&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){S=true;Q.handleSuccess(a6,P,a4,a3);Q.handleComplete(a6,P,a4,a3);U.onload=U.onreadystatechange=null;T&&U.parentNode&&T.removeChild(U)}}}T.insertBefore(U,T.firstChild);return aA}var t=false,P=a6.xhr();if(P){a6.username?P.open(aa,a6.url,a6.async,a6.username,a6.password):P.open(aa,a6.url,a6.async);try{if(a6.data!=null&&!X||a7&&a7.contentType){P.setRequestHeader("Content-Type",a6.contentType)}if(a6.ifModified){Q.lastModified[a6.url]&&P.setRequestHeader("If-Modified-Since",Q.lastModified[a6.url]);Q.etag[a6.url]&&P.setRequestHeader("If-None-Match",Q.etag[a6.url])}V||P.setRequestHeader("X-Requested-With","XMLHttpRequest");P.setRequestHeader("Accept",a6.dataType&&a6.accepts[a6.dataType]?a6.accepts[a6.dataType]+", */*; q=0.01":a6.accepts._default)}catch(B){}if(a6.beforeSend&&a6.beforeSend.call(a6.context,P,a6)===false){a6.global&&Q.active--===1&&Q.event.trigger("ajaxStop");P.abort();return false}a6.global&&Q.triggerGlobal(a6,"ajaxSend",[P,a6]);var c=P.onreadystatechange=function(a8){if(!P||P.readyState===0||a8==="abort"){t||Q.handleComplete(a6,P,a4,a3);t=true;if(P){P.onreadystatechange=Q.noop}}else{if(!t&&P&&(P.readyState===4||a8==="timeout")){t=true;P.onreadystatechange=Q.noop;a4=a8==="timeout"?"timeout":!Q.httpSuccess(P)?"error":a6.ifModified&&Q.httpNotModified(P,a6.url)?"notmodified":"success";var ba;if(a4==="success"){try{a3=Q.httpData(P,a6.dataType,a6)}catch(a9){a4="parsererror";ba=a9}}if(a4==="success"||a4==="notmodified"){a5||Q.handleSuccess(a6,P,a4,a3)}else{Q.handleError(a6,P,a4,ba)}a5||Q.handleComplete(a6,P,a4,a3);a8==="timeout"&&P.abort();if(a6.async){P=null}}}};try{var ab=P.abort;P.abort=function(){P&&Function.prototype.call.call(ab,P);c("abort")}}catch(Z){}a6.async&&a6.timeout>0&&setTimeout(function(){P&&!t&&c("timeout")},a6.timeout);try{P.send(X||a6.data==null?null:a6.data)}catch(W){Q.handleError(a6,P,null,W);Q.handleComplete(a6,P,a4,a3)}a6.async||c();return P}},param:function(t,c){var P=[],E=function(T,S){S=Q.isFunction(S)?S():S;P[P.length]=encodeURIComponent(T)+"="+encodeURIComponent(S)};if(c===aA){c=Q.ajaxSettings.traditional}if(Q.isArray(t)||t.jquery){Q.each(t,function(){E(this.name,this.value)})}else{for(var B in t){u(B,t[B],c,E)}}return P.join("&").replace(aB,"+")}});Q.extend({active:0,lastModified:{},etag:{},handleError:function(t,c,E,B){t.error&&t.error.call(t.context,c,E,B);t.global&&Q.triggerGlobal(t,"ajaxError",[c,t,B])},handleSuccess:function(t,c,E,B){t.success&&t.success.call(t.context,B,E,c);t.global&&Q.triggerGlobal(t,"ajaxSuccess",[c,t])},handleComplete:function(t,c,B){t.complete&&t.complete.call(t.context,c,B);t.global&&Q.triggerGlobal(t,"ajaxComplete",[c,t]);t.global&&Q.active--===1&&Q.event.trigger("ajaxStop")},triggerGlobal:function(t,c,B){(t.context&&t.context.url==null?Q(t.context):Q.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){Q.lastModified[c]=E}if(B){Q.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"&&Q.error("parsererror");if(P&&P.dataFilter){t=P.dataFilter(t,c)}if(typeof t==="string"){if(c==="json"||!c&&E.indexOf("json")>=0){t=Q.parseJSON(t)}else{if(c==="script"||!c&&E.indexOf("javascript")>=0){Q.globalEval(t)}}}return t}});if(aw.ActiveXObject){Q.ajaxSettings.xhr=function(){if(aw.location.protocol!=="file:"){try{return new aw.XMLHttpRequest}catch(t){}}try{return new aw.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}Q.support.ajax=!!Q.ajaxSettings.xhr();var g={},C=/^(?:toggle|show|hide)$/,o=/^([+\-]=)?([\d+.\-]+)(.*)$/,aq,z=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];Q.fn.extend({show:function(t,c,E){if(t||t===0){return this.animate(an("show",3),t,c,E)}else{E=0;for(var B=this.length;E<B;E++){t=this[E];c=t.style.display;if(!Q.data(t,"olddisplay")&&c==="none"){c=t.style.display=""}c===""&&Q.css(t,"display")==="none"&&Q.data(t,"olddisplay",m(t.nodeName))}for(E=0;E<B;E++){t=this[E];c=t.style.display;if(c===""||c==="none"){t.style.display=Q.data(t,"olddisplay")||""}}return this}},hide:function(t,c,B){if(t||t===0){return this.animate(an("hide",3),t,c,B)}else{t=0;for(c=this.length;t<c;t++){B=Q.css(this[t],"display");B!=="none"&&Q.data(this[t],"olddisplay",B)}for(t=0;t<c;t++){this[t].style.display="none"}return this}},_toggle:Q.fn.toggle,toggle:function(t,c,E){var B=typeof t==="boolean";if(Q.isFunction(t)&&Q.isFunction(c)){this._toggle.apply(this,arguments)}else{t==null||B?this.each(function(){var P=B?t:Q(this).is(":hidden");Q(this)[P?"show":"hide"]()}):this.animate(an("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=Q.speed(c,P,E);if(Q.isEmptyObject(t)){return this.each(B.complete)}return this[B.queue===false?"each":"queue"](function(){var V=Q.extend({},B),T,U=this.nodeType===1,X=U&&Q(this).is(":hidden"),S=this;for(T in t){var W=Q.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(Q.css(this,"display")==="inline"&&Q.css(this,"float")==="none"){if(Q.support.inlineBlockNeedsLayout){if(m(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}else{this.style.display="inline-block"}}}if(Q.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=Q.extend({},t);Q.each(t,function(Z,a5){var ab=new Q.fx(S,V,Z);if(C.test(a5)){ab[a5==="toggle"?X?"show":"hide":a5](t)}else{var aa=o.exec(a5),a3=ab.cur()||0;if(aa){var Y=parseFloat(aa[2]),a4=aa[3]||"px";if(a4!=="px"){Q.style(S,Z,(Y||1)+a4);a3=(Y||1)/ab.cur()*a3;Q.style(S,Z,a3+a4)}if(aa[1]){Y=(aa[1]==="-="?-1:1)*Y+a3}ab.custom(a3,Y,a4)}else{ab.custom(a3,a5,"")}}});return true})},stop:function(t,c){var B=Q.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}});Q.each({slideDown:an("show",1),slideUp:an("hide",1),slideToggle:an("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,c){Q.fn[t]=function(P,E,B){return this.animate(c,P,E,B)}});Q.extend({speed:function(t,c,E){var B=t&&typeof t==="object"?Q.extend({},t):{complete:E||!E&&c||Q.isFunction(t)&&t,duration:t,easing:E&&c||c&&!Q.isFunction(c)&&c};B.duration=Q.fx.off?0:typeof B.duration==="number"?B.duration:B.duration in Q.fx.speeds?Q.fx.speeds[B.duration]:Q.fx.speeds._default;B.old=B.complete;B.complete=function(){B.queue!==false&&Q(this).dequeue();Q.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={}}}});Q.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(Q.fx.step[this.prop]||Q.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(Q.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=Q.fx;this.startTime=Q.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()&&Q.timers.push(P)&&!aq){aq=setInterval(B.tick,B.interval)}},show:function(){this.options.orig[this.prop]=Q.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());Q(this.elem).show()},hide:function(){this.options.orig[this.prop]=Q.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(B){var c=Q.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&&!Q.support.shrinkWrapBlocks){var P=this.elem,E=this.options;Q.each(["","X","Y"],function(U,V){P.style["overflow"+V]=E.overflow[U]})}this.options.hide&&Q(this.elem).hide();if(this.options.hide||this.options.show){for(var t in this.options.curAnim){Q.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||(Q.easing.swing?"swing":"linear");this.pos=Q.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}};Q.extend(Q.fx,{tick:function(){for(var t=Q.timers,c=0;c<t.length;c++){t[c]()||t.splice(c--,1)}t.length||Q.fx.stop()},interval:13,stop:function(){clearInterval(aq);aq=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){Q.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(Q.expr&&Q.expr.filters){Q.expr.filters.animated=function(c){return Q.grep(Q.timers,function(t){return c===t.elem}).length}}var a=/^t(?:able|d|h)$/i,ay=/^(?:body|html)$/i;Q.fn.offset="getBoundingClientRect" in H.documentElement?function(t){var c=this[0],S;if(t){return this.each(function(T){Q.offset.setOffset(this,t,T)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return Q.offset.bodyOffset(c)}try{S=c.getBoundingClientRect()}catch(P){}var E=c.ownerDocument,B=E.documentElement;if(!S||!Q.contains(B,c)){return S||{top:0,left:0}}c=E.body;E=aV(E);return{top:S.top+(E.pageYOffset||Q.support.boxModel&&B.scrollTop||c.scrollTop)-(B.clientTop||c.clientTop||0),left:S.left+(E.pageXOffset||Q.support.boxModel&&B.scrollLeft||c.scrollLeft)-(B.clientLeft||c.clientLeft||0)}}:function(V){var U=this[0];if(V){return this.each(function(W){Q.offset.setOffset(this,V,W)})}if(!U||!U.ownerDocument){return null}if(U===U.ownerDocument.body){return Q.offset.bodyOffset(U)}Q.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(Q.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(Q.offset.doesNotAddBorder&&!(Q.offset.doesAddBorderForTableAndCells&&a.test(U.nodeName))){B+=parseFloat(T.borderTopWidth)||0;c+=parseFloat(T.borderLeftWidth)||0}S=U.offsetParent}if(Q.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(Q.offset.supportsFixedPosition&&T.position==="fixed"){B+=Math.max(E.scrollTop,t.scrollTop);c+=Math.max(E.scrollLeft,t.scrollLeft)}return{top:B,left:c}};Q.offset={initialize:function(){var t=H.body,c=H.createElement("div"),S,P,E,B=parseFloat(Q.css(t,"marginTop"))||0;Q.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);Q.offset.initialize=Q.noop},bodyOffset:function(t){var c=t.offsetTop,B=t.offsetLeft;Q.offset.initialize();if(Q.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(Q.css(t,"marginTop"))||0;B+=parseFloat(Q.css(t,"marginLeft"))||0}return{top:c,left:B}},setOffset:function(W,U,T){var S=Q.css(W,"position");if(S==="static"){W.style.position="relative"}var P=Q(W),E=P.offset(),t=Q.css(W,"top"),B=Q.css(W,"left"),c=S==="absolute"&&Q.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(Q.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)}};Q.fn.extend({position:function(){if(!this[0]){return null}var t=this[0],c=this.offsetParent(),E=this.offset(),B=ay.test(c[0].nodeName)?{top:0,left:0}:c.offset();E.top-=parseFloat(Q.css(t,"marginTop"))||0;E.left-=parseFloat(Q.css(t,"marginLeft"))||0;B.top+=parseFloat(Q.css(c[0],"borderTopWidth"))||0;B.left+=parseFloat(Q.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||H.body;c&&!ay.test(c.nodeName)&&Q.css(c,"position")==="static";){c=c.offsetParent}return c})}});Q.each(["Left","Top"],function(t,c){var B="scroll"+c;Q.fn[B]=function(S){var P=this[0],E;if(!P){return null}if(S!==aA){return this.each(function(){if(E=aV(this)){E.scrollTo(!t?S:Q(E).scrollLeft(),t?S:Q(E).scrollTop())}else{this[B]=S}})}else{return(E=aV(P))?"pageXOffset" in E?E[t?"pageYOffset":"pageXOffset"]:Q.support.boxModel&&E.document.documentElement[B]||E.document.body[B]:P[B]}}});Q.each(["Height","Width"],function(t,c){var B=c.toLowerCase();Q.fn["inner"+c]=function(){return this[0]?parseFloat(Q.css(this[0],B,"padding")):null};Q.fn["outer"+c]=function(E){return this[0]?parseFloat(Q.css(this[0],B,E?"margin":"border")):null};Q.fn[B]=function(S){var P=this[0];if(!P){return S==null?null:this}if(Q.isFunction(S)){return this.each(function(T){var U=Q(this);U[B](S.call(this,T,U[B]()))})}if(Q.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===aA){P=Q.css(P,B);var E=parseFloat(P);return Q.isNaN(E)?P:E}else{return this.css(B,typeof S==="string"?S:S+"px")}}}}})})(window);
/*
 * jQuery UI 1.8.11
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(d,b){function a(c){return !d(c).parents().andSelf().filter(function(){return d.curCSS(this,"visibility")==="hidden"||d.expr.filters.hidden(this)}).length}d.ui=d.ui||{};if(!d.ui.version){d.extend(d.ui,{version:"1.8.11",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});d.fn.extend({_focus:d.fn.focus,focus:function(e,c){return typeof e==="number"?this.each(function(){var f=this;setTimeout(function(){d(f).focus();c&&c.call(f)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=d.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(d.curCSS(this,"position",1))&&/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?d(document):c},zIndex:function(e){if(e!==b){return this.css("zIndex",e)}if(this.length){e=d(this[0]);for(var c;e.length&&e[0]!==document;){c=e.css("position");if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(e.css("zIndex"),10);if(!isNaN(c)&&c!==0){return c}}e=e.parent()}}return 0},disableSelection:function(){return this.bind((d.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});d.each(["Width","Height"],function(f,c){function l(o,n,h,e){d.each(k,function(){n-=parseFloat(d.curCSS(o,"padding"+this,true))||0;if(h){n-=parseFloat(d.curCSS(o,"border"+this+"Width",true))||0}if(e){n-=parseFloat(d.curCSS(o,"margin"+this,true))||0}});return n}var k=c==="Width"?["Left","Right"]:["Top","Bottom"],j=c.toLowerCase(),g={innerWidth:d.fn.innerWidth,innerHeight:d.fn.innerHeight,outerWidth:d.fn.outerWidth,outerHeight:d.fn.outerHeight};d.fn["inner"+c]=function(e){if(e===b){return g["inner"+c].call(this)}return this.each(function(){d(this).css(j,l(this,e)+"px")})};d.fn["outer"+c]=function(h,e){if(typeof h!=="number"){return g["outer"+c].call(this,h)}return this.each(function(){d(this).css(j,l(this,h,true,e)+"px")})}});d.extend(d.expr[":"],{data:function(e,c,f){return !!d.data(e,f[3])},focusable:function(e){var c=e.nodeName.toLowerCase(),f=d.attr(e,"tabindex");if("area"===c){c=e.parentNode;f=c.name;if(!e.href||!f||c.nodeName.toLowerCase()!=="map"){return false}e=d("img[usemap=#"+f+"]")[0];return !!e&&a(e)}return(/input|select|textarea|button|object/.test(c)?!e.disabled:"a"==c?e.href||!isNaN(f):!isNaN(f))&&a(e)},tabbable:function(e){var c=d.attr(e,"tabindex");return(isNaN(c)||c>=0)&&d(e).is(":focusable")}});d(function(){var e=document.body,c=e.appendChild(c=document.createElement("div"));d.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});d.support.minHeight=c.offsetHeight===100;d.support.selectstart="onselectstart" in c;e.removeChild(c).style.display="none"});d.extend(d.ui,{plugin:{add:function(f,c,h){f=d.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g<c.length;g++){f.options[c[g][0]]&&c[g][1].apply(f.element,h)}}}},contains:function(e,c){return document.compareDocumentPosition?e.compareDocumentPosition(c)&16:e!==c&&e.contains(c)},hasScroll:function(e,c){if(d(e).css("overflow")==="hidden"){return false}c=c&&c==="left"?"scrollLeft":"scrollTop";var f=false;if(e[c]>0){return true}e[c]=1;f=e[c]>0;e[c]=0;return f},isOverAxis:function(e,c,f){return e>c&&e<c+f},isOver:function(f,c,l,k,j,g){return d.ui.isOverAxis(f,l,j)&&d.ui.isOverAxis(c,k,g)}})}})(jQuery);
/*
 * jQuery UI Widget 1.8.11
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(a,e){if(a.cleanData){var d=a.cleanData;a.cleanData=function(b){for(var g=0,f;(f=b[g])!=null;g++){a(f).triggerHandler("remove")}d(b)}}else{var c=a.fn.remove;a.fn.remove=function(b,f){return this.each(function(){if(!f){if(!b||a.filter(b,[this]).length){a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")})}}return c.call(a(this),b,f)})}}a.widget=function(b,k,j){var h=b.split(".")[0],g;b=b.split(".")[1];g=h+"-"+b;if(!j){j=k;k=a.Widget}a.expr[":"][g]=function(f){return !!a.data(f,b)};a[h]=a[h]||{};a[h][b]=function(f,l){arguments.length&&this._createWidget(f,l)};k=new k;k.options=a.extend(true,{},k.options);a[h][b].prototype=a.extend(true,k,{namespace:h,widgetName:b,widgetEventPrefix:a[h][b].prototype.widgetEventPrefix||b,widgetBaseClass:g},j);a.widget.bridge(b,a[h][b])};a.widget.bridge=function(b,f){a.fn[b]=function(l){var k=typeof l==="string",j=Array.prototype.slice.call(arguments,1),g=this;l=!k&&j.length?a.extend.apply(null,[true,l].concat(j)):l;if(k&&l.charAt(0)==="_"){return g}k?this.each(function(){var m=a.data(this,b),h=m&&a.isFunction(m[l])?m[l].apply(m,j):m;if(h!==m&&h!==e){g=h;return false}}):this.each(function(){var h=a.data(this,b);h?h.option(l||{})._init():a.data(this,b,new f(l,this))});return g}};a.Widget=function(b,f){arguments.length&&this._createWidget(b,f)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,g){a.data(g,this.widgetName,this);this.element=a(g);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var f=this;this.element.bind("remove."+this.widgetName,function(){f.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(b,g){var f=b;if(arguments.length===0){return a.extend({},this.options)}if(typeof b==="string"){if(g===e){return this.options[b]}f={};f[b]=g}this._setOptions(f);return this},_setOptions:function(b){var f=this;a.each(b,function(h,g){f._setOption(h,g)});return this},_setOption:function(b,f){this.options[b]=f;if(b==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,k,j){var h=this.options[b];k=a.Event(k);k.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();j=j||{};if(k.originalEvent){b=a.event.props.length;for(var g;b;){g=a.event.props[--b];k[g]=k.originalEvent[g]}}this.element.trigger(k,j);return !(a.isFunction(h)&&h.call(this.element[0],k,j)===false||k.isDefaultPrevented())}}})(jQuery);
/*
 * jQuery UI Mouse 1.8.11
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(d){return b._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(true===a.data(d.target,b.widgetName+".preventClickEvent")){a.removeData(d.target,b.widgetName+".preventClickEvent");d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(!b.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var h=this,g=b.which==1,d=typeof this.options.cancel=="string"?a(b.target).parents().add(b.target).filter(this.options.cancel).length:false;if(!g||d||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){h.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}true===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(c){return h._mouseMove(c)};this._mouseUpDelegate=function(c){return h._mouseUp(c)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.preventDefault();return b.originalEvent.mouseHandled=true}},_mouseMove:function(b){if(a.browser.msie&&!(document.documentMode>=9)&&!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b)}return !this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",true);this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(f){f.ui=f.ui||{};var e=/left|center|right/,d=/top|center|bottom/,b=f.fn.position,a=f.fn.offset;f.fn.position=function(c){if(!c||!c.of){return b.apply(this,arguments)}c=f.extend({},c);var l=f(c.of),r=l[0],p=(c.collision||"flip").split(" "),q=c.offset?c.offset.split(" "):[0,0],o,m,n;if(r.nodeType===9){o=l.width();m=l.height();n={top:0,left:0}}else{if(r.setTimeout){o=l.width();m=l.height();n={top:l.scrollTop(),left:l.scrollLeft()}}else{if(r.preventDefault){c.at="left top";o=m=0;n={top:c.of.pageY,left:c.of.pageX}}else{o=l.outerWidth();m=l.outerHeight();n=l.offset()}}}f.each(["my","at"],function(){var g=(c[this]||"").split(" ");if(g.length===1){g=e.test(g[0])?g.concat(["center"]):d.test(g[0])?["center"].concat(g):["center","center"]}g[0]=e.test(g[0])?g[0]:"center";g[1]=d.test(g[1])?g[1]:"center";c[this]=g});if(p.length===1){p[1]=p[0]}q[0]=parseInt(q[0],10)||0;if(q.length===1){q[1]=q[0]}q[1]=parseInt(q[1],10)||0;if(c.at[0]==="right"){n.left+=o}else{if(c.at[0]==="center"){n.left+=o/2}}if(c.at[1]==="bottom"){n.top+=m}else{if(c.at[1]==="center"){n.top+=m/2}}n.left+=q[0];n.top+=q[1];return this.each(function(){var u=f(this),s=u.outerWidth(),k=u.outerHeight(),j=parseInt(f.curCSS(this,"marginLeft",true))||0,h=parseInt(f.curCSS(this,"marginTop",true))||0,y=s+j+(parseInt(f.curCSS(this,"marginRight",true))||0),x=k+h+(parseInt(f.curCSS(this,"marginBottom",true))||0),t=f.extend({},n),g;if(c.my[0]==="right"){t.left-=s}else{if(c.my[0]==="center"){t.left-=s/2}}if(c.my[1]==="bottom"){t.top-=k}else{if(c.my[1]==="center"){t.top-=k/2}}t.left=Math.round(t.left);t.top=Math.round(t.top);g={left:t.left-j,top:t.top-h};f.each(["left","top"],function(w,v){f.ui.position[p[w]]&&f.ui.position[p[w]][v](t,{targetWidth:o,targetHeight:m,elemWidth:s,elemHeight:k,collisionPosition:g,collisionWidth:y,collisionHeight:x,offset:q,my:c.my,at:c.at})});f.fn.bgiframe&&u.bgiframe();u.offset(f.extend(t,{using:c.using}))})};f.ui.position={fit:{left:function(c,g){var h=f(window);h=g.collisionPosition.left+g.collisionWidth-h.width()-h.scrollLeft();c.left=h>0?c.left-h:Math.max(c.left-g.collisionPosition.left,c.left)},top:function(c,g){var h=f(window);h=g.collisionPosition.top+g.collisionHeight-h.height()-h.scrollTop();c.top=h>0?c.top-h:Math.max(c.top-g.collisionPosition.top,c.top)}},flip:{left:function(c,j){if(j.at[0]!=="center"){var n=f(window);n=j.collisionPosition.left+j.collisionWidth-n.width()-n.scrollLeft();var l=j.my[0]==="left"?-j.elemWidth:j.my[0]==="right"?j.elemWidth:0,m=j.at[0]==="left"?j.targetWidth:-j.targetWidth,k=-2*j.offset[0];c.left+=j.collisionPosition.left<0?l+m+k:n>0?l+m+k:0}},top:function(c,j){if(j.at[1]!=="center"){var n=f(window);n=j.collisionPosition.top+j.collisionHeight-n.height()-n.scrollTop();var l=j.my[1]==="top"?-j.elemHeight:j.my[1]==="bottom"?j.elemHeight:0,m=j.at[1]==="top"?j.targetHeight:-j.targetHeight,k=-2*j.offset[1];c.top+=j.collisionPosition.top<0?l+m+k:n>0?l+m+k:0}}}};if(!f.offset.setOffset){f.offset.setOffset=function(c,j){if(/static/.test(f.curCSS(c,"position"))){c.style.position="relative"}var n=f(c),l=n.offset(),m=parseInt(f.curCSS(c,"top",true),10)||0,k=parseInt(f.curCSS(c,"left",true),10)||0;l={top:j.top-l.top+m,left:j.left-l.left+k};"using" in j?j.using.call(c,l):n.css(l)};f.fn.offset=function(c){var g=this[0];if(!g||!g.ownerDocument){return null}if(c){return this.each(function(){f.offset.setOffset(this,c)})}return a.call(this)}}})(jQuery);(function(e,d){var b={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},a={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};e.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(f){var c=e(this).css(f).offset().top;c<0&&e(this).css("top",f.top-c)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string"){this.originalTitle=""}this.options.title=this.options.title||this.originalTitle;var j=this,c=j.options,o=c.title||"&#160;",n=e.ui.dialog.getTitleId(j.element),l=(j.uiDialog=e("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c.dialogClass).css({zIndex:c.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(f){if(c.closeOnEscape&&f.keyCode&&f.keyCode===e.ui.keyCode.ESCAPE){j.close(f);f.preventDefault()}}).attr({role:"dialog","aria-labelledby":n}).mousedown(function(f){j.moveToTop(false,f)});j.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(l);var m=(j.uiDialogTitlebar=e("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(l),k=e('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){k.addClass("ui-state-hover")},function(){k.removeClass("ui-state-hover")}).focus(function(){k.addClass("ui-state-focus")}).blur(function(){k.removeClass("ui-state-focus")}).click(function(f){j.close(f);return false}).appendTo(m);(j.uiDialogTitlebarCloseText=e("<span></span>")).addClass("ui-icon ui-icon-closethick").text(c.closeText).appendTo(k);e("<span></span>").addClass("ui-dialog-title").attr("id",n).html(o).prependTo(m);if(e.isFunction(c.beforeclose)&&!e.isFunction(c.beforeClose)){c.beforeClose=c.beforeclose}m.find("*").add(m).disableSelection();c.draggable&&e.fn.draggable&&j._makeDraggable();c.resizable&&e.fn.resizable&&j._makeResizable();j._createButtons(c.buttons);j._isOpen=false;e.fn.bgiframe&&l.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var c=this;c.overlay&&c.overlay.destroy();c.uiDialog.hide();c.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");c.uiDialog.remove();c.originalTitle&&c.element.attr("title",c.originalTitle);return c},widget:function(){return this.uiDialog},close:function(f){var c=this,h,g;if(false!==c._trigger("beforeClose",f)){c.overlay&&c.overlay.destroy();c.uiDialog.unbind("keypress.ui-dialog");c._isOpen=false;if(c.options.hide){c.uiDialog.hide(c.options.hide,function(){c._trigger("close",f)})}else{c.uiDialog.hide();c._trigger("close",f)}e.ui.dialog.overlay.resize();if(c.options.modal){h=0;e(".ui-dialog").each(function(){if(this!==c.uiDialog[0]){g=e(this).css("z-index");isNaN(g)||(h=Math.max(h,g))}});e.ui.dialog.maxZ=h}return c}},isOpen:function(){return this._isOpen},moveToTop:function(f,c){var h=this,g=h.options;if(g.modal&&!f||!g.stack&&!g.modal){return h._trigger("focus",c)}if(g.zIndex>e.ui.dialog.maxZ){e.ui.dialog.maxZ=g.zIndex}if(h.overlay){e.ui.dialog.maxZ+=1;h.overlay.$el.css("z-index",e.ui.dialog.overlay.maxZ=e.ui.dialog.maxZ)}f={scrollTop:h.element.attr("scrollTop"),scrollLeft:h.element.attr("scrollLeft")};e.ui.dialog.maxZ+=1;h.uiDialog.css("z-index",e.ui.dialog.maxZ);h.element.attr(f);h._trigger("focus",c);return h},open:function(){if(!this._isOpen){var f=this,c=f.options,g=f.uiDialog;f.overlay=c.modal?new e.ui.dialog.overlay(f):null;f._size();f._position(c.position);g.show(c.show);f.moveToTop(true);c.modal&&g.bind("keypress.ui-dialog",function(k){if(k.keyCode===e.ui.keyCode.TAB){var h=e(":tabbable",this),j=h.filter(":first");h=h.filter(":last");if(k.target===h[0]&&!k.shiftKey){j.focus(1);return false}else{if(k.target===j[0]&&k.shiftKey){h.focus(1);return false}}}});e(f.element.find(":tabbable").get().concat(g.find(".ui-dialog-buttonpane :tabbable").get().concat(g.get()))).eq(0).focus();f._isOpen=true;f._trigger("open");return f}},_createButtons:function(f){var c=this,k=false,j=e("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),h=e("<div></div>").addClass("ui-dialog-buttonset").appendTo(j);c.uiDialog.find(".ui-dialog-buttonpane").remove();typeof f==="object"&&f!==null&&e.each(f,function(){return !(k=true)});if(k){e.each(f,function(l,g){g=e.isFunction(g)?{click:g,text:l}:g;l=e('<button type="button"></button>').attr(g,true).unbind("click").click(function(){g.click.apply(c.element[0],arguments)}).appendTo(h);e.fn.button&&l.button()});j.appendTo(c.uiDialog)}},_makeDraggable:function(){function f(g){return{position:g.position,offset:g.offset}}var c=this,k=c.options,j=e(document),h;c.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(l,g){h=k.height==="auto"?"auto":e(this).height();e(this).height(e(this).height()).addClass("ui-dialog-dragging");c._trigger("dragStart",l,f(g))},drag:function(l,g){c._trigger("drag",l,f(g))},stop:function(l,g){k.position=[g.position.left-j.scrollLeft(),g.position.top-j.scrollTop()];e(this).removeClass("ui-dialog-dragging").height(h);c._trigger("dragStop",l,f(g));e.ui.dialog.overlay.resize()}})},_makeResizable:function(f){function c(g){return{originalPosition:g.originalPosition,originalSize:g.originalSize,position:g.position,size:g.size}}f=f===d?this.options.resizable:f;var k=this,j=k.options,h=k.uiDialog.css("position");f=typeof f==="string"?f:"n,e,s,w,se,sw,ne,nw";k.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:k.element,maxWidth:j.maxWidth,maxHeight:j.maxHeight,minWidth:j.minWidth,minHeight:k._minHeight(),handles:f,start:function(l,g){e(this).addClass("ui-dialog-resizing");k._trigger("resizeStart",l,c(g))},resize:function(l,g){k._trigger("resize",l,c(g))},stop:function(l,g){e(this).removeClass("ui-dialog-resizing");j.height=e(this).height();j.width=e(this).width();k._trigger("resizeStop",l,c(g));e.ui.dialog.overlay.resize()}}).css("position",h).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var c=this.options;return c.height==="auto"?c.minHeight:Math.min(c.minHeight,c.height)},_position:function(f){var c=[],h=[0,0],g;if(f){if(typeof f==="string"||typeof f==="object"&&"0" in f){c=f.split?f.split(" "):[f[0],f[1]];if(c.length===1){c[1]=c[0]}e.each(["left","top"],function(j,k){if(+c[j]===c[j]){h[j]=c[j];c[j]=k}});f={my:c.join(" "),at:c.join(" "),offset:h.join(" ")}}f=e.extend({},e.ui.dialog.prototype.options.position,f)}else{f=e.ui.dialog.prototype.options.position}(g=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(e.extend({of:window},f));g||this.uiDialog.hide()},_setOptions:function(f){var c=this,h={},g=false;e.each(f,function(j,k){c._setOption(j,k);if(j in b){g=true}if(j in a){h[j]=k}});g&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",h)},_setOption:function(f,c){var k=this,j=k.uiDialog;switch(f){case"beforeclose":f="beforeClose";break;case"buttons":k._createButtons(c);break;case"closeText":k.uiDialogTitlebarCloseText.text(""+c);break;case"dialogClass":j.removeClass(k.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c);break;case"disabled":c?j.addClass("ui-dialog-disabled"):j.removeClass("ui-dialog-disabled");break;case"draggable":var h=j.is(":data(draggable)");h&&!c&&j.draggable("destroy");!h&&c&&k._makeDraggable();break;case"position":k._position(c);break;case"resizable":(h=j.is(":data(resizable)"))&&!c&&j.resizable("destroy");h&&typeof c==="string"&&j.resizable("option","handles",c);!h&&c!==false&&k._makeResizable(c);break;case"title":e(".ui-dialog-title",k.uiDialogTitlebar).html(""+(c||"&#160;"));break}e.Widget.prototype._setOption.apply(k,arguments)},_size:function(){var f=this.options,c,h,g=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(f.minWidth>f.width){f.width=f.minWidth}c=this.uiDialog.css({height:"auto",width:f.width}).height();h=Math.max(0,f.minHeight-c);if(f.height==="auto"){if(e.support.minHeight){this.element.css({minHeight:h,height:"auto"})}else{this.uiDialog.show();f=this.element.css("height","auto").height();g||this.uiDialog.hide();this.element.height(Math.max(f,h))}}else{this.element.height(Math.max(f.height-c,0))}this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});e.extend(e.ui.dialog,{version:"1.8.11",uuid:0,maxZ:0,getTitleId:function(c){c=c.attr("id");if(!c){this.uuid+=1;c=this.uuid}return"ui-dialog-title-"+c},overlay:function(c){this.$el=e.ui.dialog.overlay.create(c)}});e.extend(e.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:e.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(c){return c+".dialog-overlay"}).join(" "),create:function(f){if(this.instances.length===0){setTimeout(function(){e.ui.dialog.overlay.instances.length&&e(document).bind(e.ui.dialog.overlay.events,function(g){if(e(g.target).zIndex()<e.ui.dialog.overlay.maxZ){return false}})},1);e(document).bind("keydown.dialog-overlay",function(g){if(f.options.closeOnEscape&&g.keyCode&&g.keyCode===e.ui.keyCode.ESCAPE){f.close(g);g.preventDefault()}});e(window).bind("resize.dialog-overlay",e.ui.dialog.overlay.resize)}var c=(this.oldInstances.pop()||e("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});e.fn.bgiframe&&c.bgiframe();this.instances.push(c);return c},destroy:function(f){var c=e.inArray(f,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]);this.instances.length===0&&e([document,window]).unbind(".dialog-overlay");f.remove();var g=0;e.each(this.instances,function(){g=Math.max(g,this.css("z-index"))});this.maxZ=g},height:function(){var f,c;if(e.browser.msie&&e.browser.version<7){f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return f<c?e(window).height()+"px":f+"px"}else{return e(document).height()+"px"}},width:function(){var f,c;if(e.browser.msie&&e.browser.version<7){f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return f<c?e(window).width()+"px":f+"px"}else{return e(document).width()+"px"}},resize:function(){var c=e([]);e.each(e.ui.dialog.overlay.instances,function(){c=c.add(this)});c.css({width:0,height:0}).css({width:e.ui.dialog.overlay.width(),height:e.ui.dialog.overlay.height()})}});e.extend(e.ui.dialog.overlay.prototype,{destroy:function(){e.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(a){a.fn.pngfix=function(b){var e=this;var c=a.extend({imageFixSrc:false,sizingMethod:false},b);if(!a.browser.msie||(a.browser.msie&&a.browser.version>=7)){return(e)}function d(h,k,l){var g=h.attr("filters");var j="DXImageTransform.Microsoft.AlphaImageLoader";if(g[j]){g[j].enabled=true;g[j].src=k;g[j].sizingMethod=l}else{h.css("filter","progid:"+j+'(enabled="true", sizingMethod="'+l+'", src="'+k+'")')}}function f(g){if(g.css("width")=="auto"&g.css("height")=="auto"){g.css("width",g.attr("offsetWidth")+"px")}}return(e.each(function(){var j=jQuery(this);if((j.attr("tagName").toUpperCase()=="IMG")&&(/\.png/i).test(j.attr("src"))){if(j.height()&&j.width()){if(!c.imageFixSrc){j.wrap("<span></span>");var h=j.parent();h.css({height:j.height(),width:j.width(),display:"inline-block"});d(h,j.attr("src"),"scale");j.remove();h.addClass("pngfixed")}else{if((/\.gif/i).test(c.imageFixSrc)){f(j);d(j,j.attr("src"),"image");j.attr("src",c.imageFixSrc)}}}}else{var g=new String(j.css("backgroundImage"));var k=g.match(/^url\("(.*)"\)$/);if(k&&k.length){f(j);j.css("backgroundImage","none");var l="crop";if(c.sizingMethod){l=c.sizingMethod}d(j,k[1],l);j.find("a").each(function(){jQuery(this).css("position","relative")})}}}))}})(jQuery);(function(D){D.fn.qtip=function(a,h){var d,j,b,k,e,f,g,c;if(typeof a=="string"){if(typeof D(this).data("qtip")!=="object"){D.fn.qtip.log.error.call(self,1,D.fn.qtip.constants.NO_TOOLTIP_PRESENT,false)}if(a=="api"){return D(this).data("qtip").interfaces[D(this).data("qtip").current]}else{if(a=="interfaces"){return D(this).data("qtip").interfaces}}}else{if(!a){a={}}if(typeof a.content!=="object"||(a.content.jquery&&a.content.length>0)){a.content={text:a.content}}if(typeof a.content.title!=="object"){a.content.title={text:a.content.title}}if(typeof a.position!=="object"){a.position={corner:a.position}}if(typeof a.position.corner!=="object"){a.position.corner={target:a.position.corner,tooltip:a.position.corner}}if(typeof a.show!=="object"){a.show={when:a.show}}if(typeof a.show.when!=="object"){a.show.when={event:a.show.when}}if(typeof a.show.effect!=="object"){a.show.effect={type:a.show.effect}}if(typeof a.hide!=="object"){a.hide={when:a.hide}}if(typeof a.hide.when!=="object"){a.hide.when={event:a.hide.when}}if(typeof a.hide.effect!=="object"){a.hide.effect={type:a.hide.effect}}if(typeof a.style!=="object"){a.style={name:a.style}}a.style=G(a.style);k=D.extend(true,{},D.fn.qtip.defaults,a);k.style=I.call({options:k},k.style);k.user=D.extend(true,{},a)}return D(this).each(function(){if(typeof a=="string"){f=a.toLowerCase();b=D(this).qtip("interfaces");if(typeof b=="object"){if(h===true&&f=="destroy"){while(b.length>0){b[b.length-1].destroy()}}else{if(h!==true){b=[D(this).qtip("api")]}for(d=0;d<b.length;d++){if(f=="destroy"){b[d].destroy()}else{if(b[d].status.rendered===true){if(f=="show"){b[d].show()}else{if(f=="hide"){b[d].hide()}else{if(f=="focus"){b[d].focus()}else{if(f=="disable"){b[d].disable(true)}else{if(f=="enable"){b[d].disable(false)}}}}}}}}}}}else{g=D.extend(true,{},k);g.hide.effect.length=k.hide.effect.length;g.show.effect.length=k.show.effect.length;if(g.position.container===false){g.position.container=D(document.body)}if(g.position.target===false){g.position.target=D(this)}if(g.show.when.target===false){g.show.when.target=D(this)}if(g.hide.when.target===false){g.hide.when.target=D(this)}j=D.fn.qtip.interfaces.length;for(d=0;d<j;d++){if(typeof D.fn.qtip.interfaces[d]=="undefined"){j=d;break}}e=new F(D(this),g,j);D.fn.qtip.interfaces[j]=e;if(typeof D(this).data("qtip")=="object"){if(typeof D(this).attr("qtip")==="undefined"){D(this).data("qtip").current=D(this).data("qtip").interfaces.length}D(this).data("qtip").interfaces.push(e)}else{D(this).data("qtip",{current:0,interfaces:[e]})}if(g.content.prerender===false&&g.show.when.event!==false&&g.show.ready!==true){g.show.when.target.bind(g.show.when.event+".qtip-"+j+"-create",{qtip:j},function(l){c=D.fn.qtip.interfaces[l.data.qtip];c.options.show.when.target.unbind(c.options.show.when.event+".qtip-"+l.data.qtip+"-create");c.cache.mouse={x:l.pageX,y:l.pageY};u.call(c);c.options.show.when.target.trigger(c.options.show.when.event)})}else{e.cache.mouse={x:g.show.when.target.offset().left,y:g.show.when.target.offset().top};u.call(e)}}})};function F(b,c,a){var d=this;d.id=a;d.options=c;d.status={animated:false,rendered:false,disabled:false,focused:false};d.elements={target:b.addClass(d.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};d.cache={mouse:{},position:{},toggle:0};d.timers={};D.extend(d,d.options.api,{show:function(h){var e,g;if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show")}if(d.elements.tooltip.css("display")!=="none"){return d}d.elements.tooltip.stop(true,false);e=d.beforeShow.call(d,h);if(e===false){return d}function f(){if(d.options.position.type!=="static"){d.focus()}d.onShow.call(d,h);if(D.browser.msie){d.elements.tooltip.get(0).style.removeAttribute("filter")}}d.cache.toggle=1;if(d.options.position.type!=="static"){d.updatePosition(h,(d.options.show.effect.length>0))}if(typeof d.options.show.solo=="object"){g=D(d.options.show.solo)}else{if(d.options.show.solo===true){g=D("div.qtip").not(d.elements.tooltip)}}if(g){g.each(function(){if(D(this).qtip("api").status.rendered===true){D(this).qtip("api").hide()}})}if(typeof d.options.show.effect.type=="function"){d.options.show.effect.type.call(d.elements.tooltip,d.options.show.effect.length);d.elements.tooltip.queue(function(){f();D(this).dequeue()})}else{switch(d.options.show.effect.type.toLowerCase()){case"fade":d.elements.tooltip.fadeIn(d.options.show.effect.length,f);break;case"slide":d.elements.tooltip.slideDown(d.options.show.effect.length,function(){f();if(d.options.position.type!=="static"){d.updatePosition(h,true)}});break;case"grow":d.elements.tooltip.show(d.options.show.effect.length,f);break;default:d.elements.tooltip.show(null,f);break}d.elements.tooltip.addClass(d.options.style.classes.active)}return D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(g){var e;if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide")}else{if(d.elements.tooltip.css("display")==="none"){return d}}clearTimeout(d.timers.show);d.elements.tooltip.stop(true,false);e=d.beforeHide.call(d,g);if(e===false){return d}function f(){d.onHide.call(d,g)}d.cache.toggle=0;if(typeof d.options.hide.effect.type=="function"){d.options.hide.effect.type.call(d.elements.tooltip,d.options.hide.effect.length);d.elements.tooltip.queue(function(){f();D(this).dequeue()})}else{switch(d.options.hide.effect.type.toLowerCase()){case"fade":d.elements.tooltip.fadeOut(d.options.hide.effect.length,f);break;case"slide":d.elements.tooltip.slideUp(d.options.hide.effect.length,f);break;case"grow":d.elements.tooltip.hide(d.options.hide.effect.length,f);break;default:d.elements.tooltip.hide(null,f);break}d.elements.tooltip.removeClass(d.options.style.classes.active)}return D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_HIDDEN,"hide")},updatePosition:function(q,o){var f,M,k,n,r,O,m,p,g,e,l,h,N,j;if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition")}else{if(d.options.position.type=="static"){return D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")}}M={position:{left:0,top:0},dimensions:{height:0,width:0},corner:d.options.position.corner.target};k={position:d.getPosition(),dimensions:d.getDimensions(),corner:d.options.position.corner.tooltip};if(d.options.position.target!=="mouse"){if(d.options.position.target.get(0).nodeName.toLowerCase()=="area"){n=d.options.position.target.attr("coords").split(",");for(f=0;f<n.length;f++){n[f]=parseInt(n[f])}r=d.options.position.target.parent("map").attr("name");O=D('img[usemap="#'+r+'"]:first').offset();M.position={left:Math.floor(O.left+n[0]),top:Math.floor(O.top+n[1])};switch(d.options.position.target.attr("shape").toLowerCase()){case"rect":M.dimensions={width:Math.ceil(Math.abs(n[2]-n[0])),height:Math.ceil(Math.abs(n[3]-n[1]))};break;case"circle":M.dimensions={width:n[2]+1,height:n[2]+1};break;case"poly":M.dimensions={width:n[0],height:n[1]};for(f=0;f<n.length;f++){if(f%2==0){if(n[f]>M.dimensions.width){M.dimensions.width=n[f]}if(n[f]<n[0]){M.position.left=Math.floor(O.left+n[f])}}else{if(n[f]>M.dimensions.height){M.dimensions.height=n[f]}if(n[f]<n[1]){M.position.top=Math.floor(O.top+n[f])}}}M.dimensions.width=M.dimensions.width-(M.position.left-O.left);M.dimensions.height=M.dimensions.height-(M.position.top-O.top);break;default:return D.fn.qtip.log.error.call(d,4,D.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition");break}M.dimensions.width-=2;M.dimensions.height-=2}else{if(d.options.position.target.add(document.body).length===1){M.position={left:D(document).scrollLeft(),top:D(document).scrollTop()};M.dimensions={height:D(window).height(),width:D(window).width()}}else{if(typeof d.options.position.target.attr("qtip")!=="undefined"){M.position=d.options.position.target.qtip("api").cache.position}else{M.position=d.options.position.target.offset()}M.dimensions={height:d.options.position.target.outerHeight(),width:d.options.position.target.outerWidth()}}}m=D.extend({},M.position);if(M.corner.search(/right/i)!==-1){m.left+=M.dimensions.width}if(M.corner.search(/bottom/i)!==-1){m.top+=M.dimensions.height}if(M.corner.search(/((top|bottom)Middle)|center/)!==-1){m.left+=(M.dimensions.width/2)}if(M.corner.search(/((left|right)Middle)|center/)!==-1){m.top+=(M.dimensions.height/2)}}else{M.position=m={left:d.cache.mouse.x,top:d.cache.mouse.y};M.dimensions={height:1,width:1}}if(k.corner.search(/right/i)!==-1){m.left-=k.dimensions.width}if(k.corner.search(/bottom/i)!==-1){m.top-=k.dimensions.height}if(k.corner.search(/((top|bottom)Middle)|center/)!==-1){m.left-=(k.dimensions.width/2)}if(k.corner.search(/((left|right)Middle)|center/)!==-1){m.top-=(k.dimensions.height/2)}p=(D.browser.msie)?1:0;g=(D.browser.msie&&parseInt(D.browser.version.charAt(0))===6)?1:0;if(d.options.style.border.radius>0){if(k.corner.search(/Left/)!==-1){m.left-=d.options.style.border.radius}else{if(k.corner.search(/Right/)!==-1){m.left+=d.options.style.border.radius}}if(k.corner.search(/Top/)!==-1){m.top-=d.options.style.border.radius}else{if(k.corner.search(/Bottom/)!==-1){m.top+=d.options.style.border.radius}}}if(p){if(k.corner.search(/top/)!==-1){m.top-=p}else{if(k.corner.search(/bottom/)!==-1){m.top+=p}}if(k.corner.search(/left/)!==-1){m.left-=p}else{if(k.corner.search(/right/)!==-1){m.left+=p}}if(k.corner.search(/leftMiddle|rightMiddle/)!==-1){m.top-=1}}if(d.options.position.adjust.screen===true){m=v.call(d,m,M,k)}if(d.options.position.target==="mouse"&&d.options.position.adjust.mouse===true){if(d.options.position.adjust.screen===true&&d.elements.tip){l=d.elements.tip.attr("rel")}else{l=d.options.position.corner.tooltip}m.left+=(l.search(/right/i)!==-1)?-6:6;m.top+=(l.search(/bottom/i)!==-1)?-6:6}if(!d.elements.bgiframe&&D.browser.msie&&parseInt(D.browser.version.charAt(0))==6){D("select, object").each(function(){h=D(this).offset();h.bottom=h.top+D(this).height();h.right=h.left+D(this).width();if(m.top+k.dimensions.height>=h.top&&m.left+k.dimensions.width>=h.left){z.call(d)}})}m.left+=d.options.position.adjust.x;m.top+=d.options.position.adjust.y;N=d.getPosition();if(m.left!=N.left||m.top!=N.top){j=d.beforePositionUpdate.call(d,q);if(j===false){return d}d.cache.position=m;if(o===true){d.status.animated=true;d.elements.tooltip.animate(m,200,"swing",function(){d.status.animated=false})}else{d.elements.tooltip.css(m)}d.onPositionUpdate.call(d,q);if(typeof q!=="undefined"&&q.type&&q.type!=="mousemove"){D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")}}return d},updateWidth:function(f){var e;if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth")}else{if(f&&typeof f!=="number"){return D.fn.qtip.log.error.call(d,2,"newWidth must be of type number","updateWidth")}}e=d.elements.contentWrapper.siblings().add(d.elements.tip).add(d.elements.button);if(!f){if(typeof d.options.style.width.value=="number"){f=d.options.style.width.value}else{d.elements.tooltip.css({width:"auto"});e.hide();if(D.browser.msie){d.elements.wrapper.add(d.elements.contentWrapper.children()).css({zoom:"normal"})}f=d.getDimensions().width+1;if(!d.options.style.width.value){if(f>d.options.style.width.max){f=d.options.style.width.max}if(f<d.options.style.width.min){f=d.options.style.width.min}}}}if(f%2!==0){f-=1}d.elements.tooltip.width(f);e.show();if(d.options.style.border.radius){d.elements.tooltip.find(".qtip-betweenCorners").each(function(g){D(this).width(f-(d.options.style.border.radius*2))})}if(D.browser.msie){d.elements.wrapper.add(d.elements.contentWrapper.children()).css({zoom:"1"});d.elements.wrapper.width(f);if(d.elements.bgiframe){d.elements.bgiframe.width(f).height(d.getDimensions.height)}}return D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")},updateStyle:function(g){var h,f,e,k,j;if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle")}else{if(typeof g!=="string"||!D.fn.qtip.styles[g]){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle")}}d.options.style=I.call(d,D.fn.qtip.styles[g],d.options.user.style);d.elements.content.css(t(d.options.style));if(d.options.content.title.text!==false){d.elements.title.css(t(d.options.style.title,true))}d.elements.contentWrapper.css({borderColor:d.options.style.border.color});if(d.options.style.tip.corner!==false){if(D("<canvas>").get(0).getContext){h=d.elements.tooltip.find(".qtip-tip canvas:first");e=h.get(0).getContext("2d");e.clearRect(0,0,300,300);k=h.parent("div[rel]:first").attr("rel");j=H(k,d.options.style.tip.size.width,d.options.style.tip.size.height);B.call(d,h,j,d.options.style.tip.color||d.options.style.border.color)}else{if(D.browser.msie){h=d.elements.tooltip.find('.qtip-tip [nodeName="shape"]');h.attr("fillcolor",d.options.style.tip.color||d.options.style.border.color)}}}if(d.options.style.border.radius>0){d.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:d.options.style.border.color});if(D("<canvas>").get(0).getContext){f=C(d.options.style.border.radius);d.elements.tooltip.find(".qtip-wrapper canvas").each(function(){e=D(this).get(0).getContext("2d");e.clearRect(0,0,300,300);k=D(this).parent("div[rel]:first").attr("rel");s.call(d,D(this),f[k],d.options.style.border.radius,d.options.style.border.color)})}else{if(D.browser.msie){d.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){D(this).attr("fillcolor",d.options.style.border.color)})}}}return D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(f,k){var h,e,g;if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent")}else{if(!f){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")}}h=d.beforeContentUpdate.call(d,f);if(typeof h=="string"){f=h}else{if(h===false){return}}if(D.browser.msie){d.elements.contentWrapper.children().css({zoom:"normal"})}if(f.jquery&&f.length>0){f.clone(true).appendTo(d.elements.content).show()}else{d.elements.content.html(f)}e=d.elements.content.find("img[complete=false]");if(e.length>0){g=0;e.each(function(l){D('<img src="'+D(this).attr("src")+'" />').load(function(){if(++g==e.length){j()}})})}else{j()}function j(){d.updateWidth();if(k!==false){if(d.options.position.type!=="static"){d.updatePosition(d.elements.tooltip.is(":visible"),true)}if(d.options.style.tip.corner!==false){w.call(d)}}}d.onContentUpdate.call(d);return D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")},loadContent:function(g,h,f){var j;if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent")}j=d.beforeContentLoad.call(d);if(j===false){return d}if(f=="post"){D.post(g,h,e)}else{D.get(g,h,e)}function e(k){d.onContentLoad.call(d);D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");d.updateContent(k)}return d},updateTitle:function(e){if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle")}else{if(!e){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle")}}returned=d.beforeTitleUpdate.call(d);if(returned===false){return d}if(d.elements.button){d.elements.button=d.elements.button.clone(true)}d.elements.title.html(e);if(d.elements.button){d.elements.title.prepend(d.elements.button)}d.onTitleUpdate.call(d);return D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")},focus:function(f){var j,e,g,h;if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus")}else{if(d.options.position.type=="static"){return D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")}}j=parseInt(d.elements.tooltip.css("z-index"));e=6000+D("div.qtip[qtip]").length-1;if(!d.status.focused&&j!==e){h=d.beforeFocus.call(d,f);if(h===false){return d}D("div.qtip[qtip]").not(d.elements.tooltip).each(function(){if(D(this).qtip("api").status.rendered===true){g=parseInt(D(this).css("z-index"));if(typeof g=="number"&&g>-1){D(this).css({zIndex:parseInt(D(this).css("z-index"))-1})}D(this).qtip("api").status.focused=false}});d.elements.tooltip.css({zIndex:e});d.status.focused=true;d.onFocus.call(d,f);D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_FOCUSED,"focus")}return d},disable:function(e){if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable")}if(e){if(!d.status.disabled){d.status.disabled=true;D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_DISABLED,"disable")}else{D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable")}}else{if(d.status.disabled){d.status.disabled=false;D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_ENABLED,"disable")}else{D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable")}}return d},destroy:function(){var f,e,g;e=d.beforeDestroy.call(d);if(e===false){return d}if(d.status.rendered){d.options.show.when.target.unbind("mousemove.qtip",d.updatePosition);d.options.show.when.target.unbind("mouseout.qtip",d.hide);d.options.show.when.target.unbind(d.options.show.when.event+".qtip");d.options.hide.when.target.unbind(d.options.hide.when.event+".qtip");d.elements.tooltip.unbind(d.options.hide.when.event+".qtip");d.elements.tooltip.unbind("mouseover.qtip",d.focus);d.elements.tooltip.remove()}else{d.options.show.when.target.unbind(d.options.show.when.event+".qtip-create")}if(typeof d.elements.target.data("qtip")=="object"){g=d.elements.target.data("qtip").interfaces;if(typeof g=="object"&&g.length>0){for(f=0;f<g.length-1;f++){if(g[f].id==d.id){g.splice(f,1)}}}}delete D.fn.qtip.interfaces[d.id];if(typeof g=="object"&&g.length>0){d.elements.target.data("qtip").current=g.length-1}else{d.elements.target.removeData("qtip")}d.onDestroy.call(d);D.fn.qtip.log.error.call(d,1,D.fn.qtip.constants.EVENT_DESTROYED,"destroy");return d.elements.target},getPosition:function(){var f,e;if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition")}f=(d.elements.tooltip.css("display")!=="none")?false:true;if(f){d.elements.tooltip.css({visiblity:"hidden"}).show()}e=d.elements.tooltip.offset();if(f){d.elements.tooltip.css({visiblity:"visible"}).hide()}return e},getDimensions:function(){var f,e;if(!d.status.rendered){return D.fn.qtip.log.error.call(d,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions")}f=(!d.elements.tooltip.is(":visible"))?true:false;if(f){d.elements.tooltip.css({visiblity:"hidden"}).show()}e={height:d.elements.tooltip.outerHeight(),width:d.elements.tooltip.outerWidth()};if(f){d.elements.tooltip.css({visiblity:"visible"}).hide()}return e}})}function u(){var f,b,d,e,c,g,a;f=this;f.beforeRender.call(f);f.status.rendered=true;f.elements.tooltip='<div qtip="'+f.id+'" class="qtip '+(f.options.style.classes.tooltip||f.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+f.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+f.options.style.classes.content+'"></div></div></div></div>';f.elements.tooltip=D(f.elements.tooltip);f.elements.tooltip.appendTo(f.options.position.container);f.elements.tooltip.data("qtip",{current:0,interfaces:[f]});f.elements.wrapper=f.elements.tooltip.children("div:first");f.elements.contentWrapper=f.elements.wrapper.children("div:first").css({background:f.options.style.background});f.elements.content=f.elements.contentWrapper.children("div:first").css(t(f.options.style));if(D.browser.msie){f.elements.wrapper.add(f.elements.content).css({zoom:1})}if(f.options.hide.when.event=="unfocus"){f.elements.tooltip.attr("unfocus",true)}if(typeof f.options.style.width.value=="number"){f.updateWidth()}if(D("<canvas>").get(0).getContext||D.browser.msie){if(f.options.style.border.radius>0){x.call(f)}else{f.elements.contentWrapper.css({border:f.options.style.border.width+"px solid "+f.options.style.border.color})}if(f.options.style.tip.corner!==false){E.call(f)}}else{f.elements.contentWrapper.css({border:f.options.style.border.width+"px solid "+f.options.style.border.color});f.options.style.border.radius=0;f.options.style.tip.corner=false;D.fn.qtip.log.error.call(f,2,D.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")}if((typeof f.options.content.text=="string"&&f.options.content.text.length>0)||(f.options.content.text.jquery&&f.options.content.text.length>0)){d=f.options.content.text}else{if(typeof f.elements.target.attr("title")=="string"&&f.elements.target.attr("title").length>0){d=f.elements.target.attr("title").replace("\\n","<br />");f.elements.target.attr("title","")}else{if(typeof f.elements.target.attr("alt")=="string"&&f.elements.target.attr("alt").length>0){d=f.elements.target.attr("alt").replace("\\n","<br />");f.elements.target.attr("alt","")}else{d=" ";D.fn.qtip.log.error.call(f,1,D.fn.qtip.constants.NO_VALID_CONTENT,"render")}}}if(f.options.content.title.text!==false){A.call(f)}f.updateContent(d);y.call(f);if(f.options.show.ready===true){f.show()}if(f.options.content.url!==false){e=f.options.content.url;c=f.options.content.data;g=f.options.content.method||"get";f.loadContent(e,c,g)}f.onRender.call(f);D.fn.qtip.log.error.call(f,1,D.fn.qtip.constants.EVENT_RENDERED,"render")}function x(){var m,e,n,c,g,p,l,k,a,f,h,b,d,o,j;m=this;m.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();n=m.options.style.border.width;c=m.options.style.border.radius;g=m.options.style.border.color||m.options.style.tip.color;p=C(c);l={};for(e in p){l[e]='<div rel="'+e+'" style="'+((e.search(/Left/)!==-1)?"left":"right")+":0; position:absolute; height:"+c+"px; width:"+c+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(D("<canvas>").get(0).getContext){l[e]+='<canvas height="'+c+'" width="'+c+'" style="vertical-align: top"></canvas>'}else{if(D.browser.msie){k=c*2+3;l[e]+='<v:arc stroked="false" fillcolor="'+g+'" startangle="'+p[e][0]+'" endangle="'+p[e][1]+'" style="width:'+k+"px; height:"+k+"px; margin-top:"+((e.search(/bottom/)!==-1)?-2:-1)+"px; margin-left:"+((e.search(/Right/)!==-1)?p[e][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}}l[e]+="</div>"}a=m.getDimensions().width-(Math.max(n,c)*2);f='<div class="qtip-betweenCorners" style="height:'+c+"px; width:"+a+"px; overflow:hidden; background-color:"+g+'; line-height:0.1px; font-size:1px;">';h='<div class="qtip-borderTop" dir="ltr" style="height:'+c+"px; margin-left:"+c+'px; line-height:0.1px; font-size:1px; padding:0;">'+l.topLeft+l.topRight+f;m.elements.wrapper.prepend(h);b='<div class="qtip-borderBottom" dir="ltr" style="height:'+c+"px; margin-left:"+c+'px; line-height:0.1px; font-size:1px; padding:0;">'+l.bottomLeft+l.bottomRight+f;m.elements.wrapper.append(b);if(D("<canvas>").get(0).getContext){m.elements.wrapper.find("canvas").each(function(){d=p[D(this).parent("[rel]:first").attr("rel")];s.call(m,D(this),d,c,g)})}else{if(D.browser.msie){m.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>')}}o=Math.max(c,(c+(n-c)));j=Math.max(n-c,0);m.elements.contentWrapper.css({border:"0px solid "+g,borderWidth:j+"px "+o+"px"})}function s(c,a,e,d){var b=c.get(0).getContext("2d");b.fillStyle=d;b.beginPath();b.arc(a[0],a[1],e,0,Math.PI*2,false);b.fill()}function E(c){var e,f,a,d,b;e=this;if(e.elements.tip!==null){e.elements.tip.remove()}f=e.options.style.tip.color||e.options.style.border.color;if(e.options.style.tip.corner===false){return}else{if(!c){c=e.options.style.tip.corner}}a=H(c,e.options.style.tip.size.width,e.options.style.tip.size.height);e.elements.tip='<div class="'+e.options.style.classes.tip+'" dir="ltr" rel="'+c+'" style="position:absolute; height:'+e.options.style.tip.size.height+"px; width:"+e.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">';if(D("<canvas>").get(0).getContext){e.elements.tip+='<canvas height="'+e.options.style.tip.size.height+'" width="'+e.options.style.tip.size.width+'"></canvas>'}else{if(D.browser.msie){d=e.options.style.tip.size.width+","+e.options.style.tip.size.height;b="m"+a[0][0]+","+a[0][1];b+=" l"+a[1][0]+","+a[1][1];b+=" "+a[2][0]+","+a[2][1];b+=" xe";e.elements.tip+='<v:shape fillcolor="'+f+'" stroked="false" filled="true" path="'+b+'" coordsize="'+d+'" style="width:'+e.options.style.tip.size.width+"px; height:"+e.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+((c.search(/top/)!==-1)?"bottom":"top")+'"></v:shape>';e.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';e.elements.contentWrapper.css("position","relative")}}e.elements.tooltip.prepend(e.elements.tip+"</div>");e.elements.tip=e.elements.tooltip.find("."+e.options.style.classes.tip).eq(0);if(D("<canvas>").get(0).getContext){B.call(e,e.elements.tip.find("canvas:first"),a,f)}if(c.search(/top/)!==-1&&D.browser.msie&&parseInt(D.browser.version.charAt(0))===6){e.elements.tip.css({marginTop:-4})}w.call(e,c)}function B(c,a,d){var b=c.get(0).getContext("2d");b.fillStyle=d;b.beginPath();b.moveTo(a[0][0],a[0][1]);b.lineTo(a[1][0],a[1][1]);b.lineTo(a[2][0],a[2][1]);b.fill()}function w(d){var e,b,f,a,c;e=this;if(e.options.style.tip.corner===false||!e.elements.tip){return}if(!d){d=e.elements.tip.attr("rel")}b=positionAdjust=(D.browser.msie)?1:0;e.elements.tip.css(d.match(/left|right|top|bottom/)[0],0);if(d.search(/top|bottom/)!==-1){if(D.browser.msie){if(parseInt(D.browser.version.charAt(0))===6){positionAdjust=(d.search(/top/)!==-1)?-3:1}else{positionAdjust=(d.search(/top/)!==-1)?1:2}}if(d.search(/Middle/)!==-1){e.elements.tip.css({left:"50%",marginLeft:-(e.options.style.tip.size.width/2)})}else{if(d.search(/Left/)!==-1){e.elements.tip.css({left:e.options.style.border.radius-b})}else{if(d.search(/Right/)!==-1){e.elements.tip.css({right:e.options.style.border.radius+b})}}}if(d.search(/top/)!==-1){e.elements.tip.css({top:-positionAdjust})}else{e.elements.tip.css({bottom:positionAdjust})}}else{if(d.search(/left|right/)!==-1){if(D.browser.msie){positionAdjust=(parseInt(D.browser.version.charAt(0))===6)?1:((d.search(/left/)!==-1)?1:2)}if(d.search(/Middle/)!==-1){e.elements.tip.css({top:"50%",marginTop:-(e.options.style.tip.size.height/2)})}else{if(d.search(/Top/)!==-1){e.elements.tip.css({top:e.options.style.border.radius-b})}else{if(d.search(/Bottom/)!==-1){e.elements.tip.css({bottom:e.options.style.border.radius+b})}}}if(d.search(/left/)!==-1){e.elements.tip.css({left:-positionAdjust})}else{e.elements.tip.css({right:positionAdjust})}}}f="padding-"+d.match(/left|right|top|bottom/)[0];a=e.options.style.tip.size[(f.search(/left|right/)!==-1)?"width":"height"];e.elements.tooltip.css("padding",0);e.elements.tooltip.css(f,a);if(D.browser.msie&&parseInt(D.browser.version.charAt(0))==6){c=parseInt(e.elements.tip.css("margin-top"))||0;c+=parseInt(e.elements.content.css("margin-top"))||0;e.elements.tip.css({marginTop:c})}}function A(){var a=this;if(a.elements.title!==null){a.elements.title.remove()}a.elements.title=D('<div class="'+a.options.style.classes.title+'">').css(t(a.options.style.title,true)).css({zoom:(D.browser.msie)?1:0}).prependTo(a.elements.contentWrapper);if(a.options.content.title.text){a.updateTitle.call(a,a.options.content.title.text)}if(a.options.content.title.button!==false&&typeof a.options.content.title.button=="string"){a.elements.button=D('<a class="'+a.options.style.classes.button+'" style="float:right; position: relative"></a>').css(t(a.options.style.button,true)).html(a.options.content.title.button).prependTo(a.elements.title).click(function(b){if(!a.status.disabled){a.hide(b)}})}}function y(){var e,c,d,f;e=this;c=e.options.show.when.target;d=e.options.hide.when.target;if(e.options.hide.fixed){d=d.add(e.elements.tooltip)}if(e.options.hide.when.event=="inactive"){f=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];function g(h){if(e.status.disabled===true){return}clearTimeout(e.timers.inactive);e.timers.inactive=setTimeout(function(){D(f).each(function(){d.unbind(this+".qtip-inactive");e.elements.content.unbind(this+".qtip-inactive")});e.hide(h)},e.options.hide.delay)}}else{if(e.options.hide.fixed===true){e.elements.tooltip.bind("mouseover.qtip",function(){if(e.status.disabled===true){return}clearTimeout(e.timers.hide)})}}function a(h){if(e.status.disabled===true){return}if(e.options.hide.when.event=="inactive"){D(f).each(function(){d.bind(this+".qtip-inactive",g);e.elements.content.bind(this+".qtip-inactive",g)});g()}clearTimeout(e.timers.show);clearTimeout(e.timers.hide);e.timers.show=setTimeout(function(){e.show(h)},e.options.show.delay)}function b(h){if(e.status.disabled===true){return}if(e.options.hide.fixed===true&&e.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&D(h.relatedTarget).parents("div.qtip[qtip]").length>0){h.stopPropagation();h.preventDefault();clearTimeout(e.timers.hide);return false}clearTimeout(e.timers.show);clearTimeout(e.timers.hide);e.elements.tooltip.stop(true,true);e.timers.hide=setTimeout(function(){e.hide(h)},e.options.hide.delay)}if((e.options.show.when.target.add(e.options.hide.when.target).length===1&&e.options.show.when.event==e.options.hide.when.event&&e.options.hide.when.event!=="inactive")||e.options.hide.when.event=="unfocus"){e.cache.toggle=0;c.bind(e.options.show.when.event+".qtip",function(h){if(e.cache.toggle==0){a(h)}else{b(h)}})}else{c.bind(e.options.show.when.event+".qtip",a);if(e.options.hide.when.event!=="inactive"){d.bind(e.options.hide.when.event+".qtip",b)}}if(e.options.position.type.search(/(fixed|absolute)/)!==-1){e.elements.tooltip.bind("mouseover.qtip",e.focus)}if(e.options.position.target==="mouse"&&e.options.position.type!=="static"){c.bind("mousemove.qtip",function(h){e.cache.mouse={x:h.pageX,y:h.pageY};if(e.status.disabled===false&&e.options.position.adjust.mouse===true&&e.options.position.type!=="static"&&e.elements.tooltip.css("display")!=="none"){e.updatePosition(h)}})}}function v(g,f,a){var b,j,d,c,h,e;b=this;if(a.corner=="center"){return f.position}j=D.extend({},g);c={x:false,y:false};h={left:(j.left<D.fn.qtip.cache.screen.scroll.left),right:(j.left+a.dimensions.width+2>=D.fn.qtip.cache.screen.width+D.fn.qtip.cache.screen.scroll.left),top:(j.top<D.fn.qtip.cache.screen.scroll.top),bottom:(j.top+a.dimensions.height+2>=D.fn.qtip.cache.screen.height+D.fn.qtip.cache.screen.scroll.top)};d={left:(h.left&&(a.corner.search(/right/i)!=-1||(a.corner.search(/right/i)==-1&&!h.right))),right:(h.right&&(a.corner.search(/left/i)!=-1||(a.corner.search(/left/i)==-1&&!h.left))),top:(h.top&&a.corner.search(/top/i)==-1),bottom:(h.bottom&&a.corner.search(/bottom/i)==-1)};if(d.left){if(b.options.position.target!=="mouse"){j.left=f.position.left+f.dimensions.width}else{j.left=b.cache.mouse.x}c.x="Left"}else{if(d.right){if(b.options.position.target!=="mouse"){j.left=f.position.left-a.dimensions.width}else{j.left=b.cache.mouse.x-a.dimensions.width}c.x="Right"}}if(d.top){if(b.options.position.target!=="mouse"){j.top=f.position.top+f.dimensions.height}else{j.top=b.cache.mouse.y}c.y="top"}else{if(d.bottom){if(b.options.position.target!=="mouse"){j.top=f.position.top-a.dimensions.height}else{j.top=b.cache.mouse.y-a.dimensions.height}c.y="bottom"}}if(j.left<0){j.left=g.left;c.x=false}if(j.top<0){j.top=g.top;c.y=false}if(b.options.style.tip.corner!==false){j.corner=new String(a.corner);if(c.x!==false){j.corner=j.corner.replace(/Left|Right|Middle/,c.x)}if(c.y!==false){j.corner=j.corner.replace(/top|bottom/,c.y)}if(j.corner!==b.elements.tip.attr("rel")){E.call(b,j.corner)}}return j}function t(b,c){var a,d;a=D.extend(true,{},b);for(d in a){if(c===true&&d.search(/(tip|classes)/i)!==-1){delete a[d]}else{if(!c&&d.search(/(width|border|tip|title|classes|user)/i)!==-1){delete a[d]}}}return a}function G(a){if(typeof a.tip!=="object"){a.tip={corner:a.tip}}if(typeof a.tip.size!=="object"){a.tip.size={width:a.tip.size,height:a.tip.size}}if(typeof a.border!=="object"){a.border={width:a.border}}if(typeof a.width!=="object"){a.width={value:a.width}}if(typeof a.width.max=="string"){a.width.max=parseInt(a.width.max.replace(/([0-9]+)/i,"$1"))}if(typeof a.width.min=="string"){a.width.min=parseInt(a.width.min.replace(/([0-9]+)/i,"$1"))}if(typeof a.tip.size.x=="number"){a.tip.size.width=a.tip.size.x;delete a.tip.size.x}if(typeof a.tip.size.y=="number"){a.tip.size.height=a.tip.size.y;delete a.tip.size.y}return a}function I(){var f,e,d,a,c,b;f=this;d=[true,{}];for(e=0;e<arguments.length;e++){d.push(arguments[e])}a=[D.extend.apply(D,d)];while(typeof a[0].name=="string"){a.unshift(G(D.fn.qtip.styles[a[0].name]))}a.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},D.fn.qtip.styles.defaults);c=D.extend.apply(D,a);b=(D.browser.msie)?1:0;c.tip.size.width+=b;c.tip.size.height+=b;if(c.tip.size.width%2>0){c.tip.size.width+=1}if(c.tip.size.height%2>0){c.tip.size.height+=1}if(c.tip.corner===true){c.tip.corner=(f.options.position.corner.tooltip==="center")?false:f.options.position.corner.tooltip}return c}function H(a,b,c){var d={bottomRight:[[0,0],[b,c],[b,0]],bottomLeft:[[0,0],[b,0],[0,c]],topRight:[[0,c],[b,0],[b,c]],topLeft:[[0,0],[0,c],[b,c]],topMiddle:[[0,c],[b/2,0],[b,c]],bottomMiddle:[[0,0],[b,0],[b/2,c]],rightMiddle:[[0,0],[b,c/2],[0,c]],leftMiddle:[[b,0],[b,c],[0,c/2]]};d.leftTop=d.bottomRight;d.rightTop=d.bottomLeft;d.leftBottom=d.topRight;d.rightBottom=d.topLeft;return d[a]}function C(b){var a;if(D("<canvas>").get(0).getContext){a={topLeft:[b,b],topRight:[0,b],bottomLeft:[b,0],bottomRight:[0,0]}}else{if(D.browser.msie){a={topLeft:[-90,90,0],topRight:[-90,90,-b],bottomLeft:[90,270,0],bottomRight:[90,270,-b]}}}return a}function z(){var c,b,a;c=this;a=c.getDimensions();b='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+a.height+"px; width:"+a.width+'px" />';c.elements.bgiframe=c.elements.wrapper.prepend(b).children(".qtip-bgiframe:first")}D(document).ready(function(){D.fn.qtip.cache={screen:{scroll:{left:D(window).scrollLeft(),top:D(window).scrollTop()},width:D(window).width(),height:D(window).height()}};var a;D(window).bind("resize scroll",function(b){clearTimeout(a);a=setTimeout(function(){if(b.type==="scroll"){D.fn.qtip.cache.screen.scroll={left:D(window).scrollLeft(),top:D(window).scrollTop()}}else{D.fn.qtip.cache.screen.width=D(window).width();D.fn.qtip.cache.screen.height=D(window).height()}for(i=0;i<D.fn.qtip.interfaces.length;i++){var c=D.fn.qtip.interfaces[i];if(c.status.rendered===true&&(c.options.position.type!=="static"||c.options.position.adjust.scroll&&b.type==="scroll"||c.options.position.adjust.resize&&b.type==="resize")){c.updatePosition(b,true)}}},100)});D(document).bind("mousedown.qtip",function(b){if(D(b.target).parents("div.qtip").length===0){D(".qtip[unfocus]").each(function(){var c=D(this).qtip("api");if(D(this).is(":visible")&&!c.status.disabled&&D(b.target).add(c.elements.target).length>1){c.hide(b)}})}})});D.fn.qtip.interfaces=[];D.fn.qtip.log={error:function(){return this}};D.fn.qtip.constants={};D.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};D.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}})(jQuery);(function(a){a.fn.gallery=function(d){var f={timeInterval:5000,loadingMaskInterval:500};var d=a.extend(f,d);var e;var g="-";function b(j,h){j.removeClass("show").animate({left:g+"="+a(this).width()},1000,"linear",function(){a(this).css({opacity:0,left:0});g="-"});h.css({opacity:0}).addClass("show").animate({opacity:1},900,"linear",function(){})}function c(h){e=setInterval(function(){var k=(a(".itemContainer.show",h)?a(".itemContainer.show",h):a(".itemContainer:first",h));var j=((parseInt(k.next(".itemContainer").length)==1)?k.next(".itemContainer"):a(".itemContainer:first",h));b(k,j)},f.timeInterval)}return this.each(function(){var h=a(this);a(".itemContainer",h).css({opacity:0}).removeClass("hide");var j=a(".itemContainer",h).length;setTimeout(function(){a(".loadingMaskWhite",h).remove()},f.loadingMaskInterval);a(".itemContainer:first",h).css({opacity:1}).addClass("show");a(".itemContainer:first",h).show();a(".galleryControlls",h).click(function(){var m=parseInt(a(".itemContainer.show",h).attr("class").match(/\d+/gim));var l=1;if(a(this).attr("rel")=="right"){l=m==j?1:m+1;g="-"}else{l=m==1?j:m-1;g="+"}var n=a(".item"+m,h);var k=a(".item"+l,h);b(n,k);clearInterval(e);c(h)});if(j>1){c(h)}})}})(jQuery);function closeMessageBox(a){jQuery("#messageBox"+a).animate({opacity:0},600,function(){jQuery(this).animate({height:"toggle"},400,function(){})})}function showMessageBox(a){jQuery("#messageBox"+a.join(", #messageBox")).css({opacity:0}).animate({height:"toggle"},600,function(){jQuery(this).animate({opacity:1},900,function(){})})}function trim(a){return a.replace(/^\s+|\s+$/g,"")}function ltrim(a){return a.replace(/^\s+/,"")}function rtrim(a){return a.replace(/\s+$/,"")}function showDescriptionText(b,a){if(!a){a=".description-text"}jQuery(a).addClass("description-message-text");jQuery(a).dialog({buttons:[{text:"Ok",click:function(){jQuery(this).dialog("close")}}],height:550,width:500})}function goToPage(a,e,d){var c=jQuery("form .pageNum",jQuery(a)).val();if(c>d){c=d}var b=location.href.replace(/\/page\/\d+/,"");if(/\?.*=.*(&|$)/.test(location.href)){b=b.replace(/\?/,"/page/"+c+"?")}else{b+="/page/"+c}location.href=b;return false}jQuery.log=function(a){if(window.console){console.debug(a)}else{alert(a)}};function generateURL(b,a){for(var c in a){b+="/"+a[c][0]+"/"+a[c][1]}location.href=b}function showAnswer(a){jQuery("#answer"+a).toggle()}function addToUrl(a){var e=jQuery(a).attr("name");var d=jQuery(a).val();var b=location.href;var c=new RegExp(e+"=(\\w+)","ig");if(c.test(b)){b=b.replace(c,e+"="+d)}else{b+=(/\?/.test(b)?"&":"?")+e+"="+d}location.href=b;return false}function faqSearch(b){var c=jQuery.trim(b);jQuery(".answer",jQuery("#faqQuestionsContainer")).hide();jQuery(".selected",jQuery("#faqQuestionsContainer")).removeClass("selected");if(c){var a=new RegExp(c,"gi");jQuery(".answer",jQuery("#faqQuestionsContainer")).each(function(){if(a.test(jQuery(this).text())){jQuery(this).show();jQuery("a",jQuery(this).prev()).addClass("selected")}})}}function saveAs(a){if(window.ActiveXObject){document.execCommand("SaveAs")}else{jQuery(a).dialog("open")}}function goToUrl(a,b){queryString="";var c=true;for(i in b){queryString+=(c?"?":"&")+i+"="+b[i];c=false}location.href=a+queryString}function changeUserData(b,d,a){var c=jQuery(b).parents(".row").children(".data");jQuery(c).slideToggle(300,function(){if(jQuery(c).is(":visible")){jQuery(b).text(a)}else{jQuery(b).text(d)}})}function addToCart(e,b,d,f,a,c){jQuery(c).load("/user/"+f+"/cart/add-to-cart-"+e+"/format/html",{entityId:b,quantity:d},function(){jQuery(c).dialog("open")})}function changeLanguage(a){location.href="/"+jQuery(a).val()}function confirmSubmit(a){if(confirm(a)){return true}else{return false}}jQuery.fn.carousel=function(e,d,l){var b=jQuery(this).children()[0];if(b){var j=jQuery(b).children().outerWidth("true"),h=jQuery(b).children(),c=h.length,k=j,f=Math.round(jQuery(this).width()/k),g=1,a=false;for(i=0;i<f;i++){jQuery(b).css("width",(c+f)*j+j+"px");jQuery(b).append(jQuery(h[i]).clone())}jQuery(e).click(function(m){if(!a){if(g==1){jQuery(b).css("left","-"+c*k+"px");g=c}else{g--}jQuery(b).animate({left:"+="+j,y:0,queue:true},"swing",function(){a=false});a=true}});jQuery(d).click(function(m){if(!a){if(g>c){g=2;jQuery(b).css("left","0px")}else{g++}jQuery(b).animate({left:"-="+j,y:0,queue:true},"swing",function(){a=false});a=true}})}};(function(C){var M,U,R,N,d,n,K,B,P,A,D=0,I={},k=[],e=0,H={},z=[],f=null,p=new Image(),j=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,l=/[^\.]\.(swf)\s*$/i,q,O=1,h=0,u="",b,c,Q=false,t=C.extend(C("<div/>")[0],{prop:0}),T=C.browser.msie&&C.browser.version<7&&!window.XMLHttpRequest,s=function(){U.hide();p.onerror=p.onload=null;if(f){f.abort()}M.empty()},y=function(){if(false===I.onError(k,D,I)){U.hide();Q=false;return}I.titleShow=false;I.width="auto";I.height="auto";M.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');o()},x=function(){var aa=k[D],X,Z,ac,ab,W,Y;s();I=C.extend({},C.fn.fancybox.defaults,(typeof C(aa).data("fancybox")=="undefined"?I:C(aa).data("fancybox")));Y=I.onStart(k,D,I);if(Y===false){Q=false;return}else{if(typeof Y=="object"){I=C.extend(I,Y)}}ac=I.title||(aa.nodeName?C(aa).attr("title"):aa.title)||"";if(aa.nodeName&&!I.orig){I.orig=C(aa).children("img:first").length?C(aa).children("img:first"):C(aa)}if(ac===""&&I.orig&&I.titleFromAlt){ac=I.orig.attr("alt")}X=I.href||(aa.nodeName?C(aa).attr("href"):aa.href)||null;if((/^(?:javascript)/i).test(X)||X=="#"){X=null}if(I.type){Z=I.type;if(!X){X=I.content}}else{if(I.content){Z="html"}else{if(X){if(X.match(j)){Z="image"}else{if(X.match(l)){Z="swf"}else{if(C(aa).hasClass("iframe")){Z="iframe"}else{if(X.indexOf("#")===0){Z="inline"}else{Z="ajax"}}}}}}}if(!Z){y();return}if(Z=="inline"){aa=X.substr(X.indexOf("#"));Z=C(aa).length>0?"inline":"ajax"}I.type=Z;I.href=X;I.title=ac;if(I.autoDimensions){if(I.type=="html"||I.type=="inline"||I.type=="ajax"){I.width="auto";I.height="auto"}else{I.autoDimensions=false}}if(I.modal){I.overlayShow=true;I.hideOnOverlayClick=false;I.hideOnContentClick=false;I.enableEscapeButton=false;I.showCloseButton=false}I.padding=parseInt(I.padding,10);I.margin=parseInt(I.margin,10);M.css("padding",(I.padding+I.margin));C(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){C(this).replaceWith(n.children())});switch(Z){case"html":M.html(I.content);o();break;case"inline":if(C(aa).parent().is("#fancybox-content")===true){Q=false;return}C('<div class="fancybox-inline-tmp" />').hide().insertBefore(C(aa)).bind("fancybox-cleanup",function(){C(this).replaceWith(n.children())}).bind("fancybox-cancel",function(){C(this).replaceWith(M.children())});C(aa).appendTo(M);o();break;case"image":Q=false;C.fancybox.showActivity();p=new Image();p.onerror=function(){y()};p.onload=function(){Q=true;p.onerror=p.onload=null;G()};p.src=X;break;case"swf":I.scrolling="no";ab='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+I.width+'" height="'+I.height+'"><param name="movie" value="'+X+'"></param>';W="";C.each(I.swf,function(ad,ae){ab+='<param name="'+ad+'" value="'+ae+'"></param>';W+=" "+ad+'="'+ae+'"'});ab+='<embed src="'+X+'" type="application/x-shockwave-flash" width="'+I.width+'" height="'+I.height+'"'+W+"></embed></object>";M.html(ab);o();break;case"ajax":Q=false;C.fancybox.showActivity();I.ajax.win=I.ajax.success;f=C.ajax(C.extend({},I.ajax,{url:X,data:I.ajax.data||{},error:function(ad,af,ae){if(ad.status>0){y()}},success:function(ae,ag,ad){var af=typeof ad=="object"?ad:f;if(af.status==200){if(typeof I.ajax.win=="function"){Y=I.ajax.win(X,ae,ag,ad);if(Y===false){U.hide();return}else{if(typeof Y=="string"||typeof Y=="object"){ae=Y}}}M.html(ae);o()}}}));break;case"iframe":F();break}},o=function(){var W=I.width,X=I.height;if(W.toString().indexOf("%")>-1){W=parseInt((C(window).width()-(I.margin*2))*parseFloat(W)/100,10)+"px"}else{W=W=="auto"?"auto":W+"px"}if(X.toString().indexOf("%")>-1){X=parseInt((C(window).height()-(I.margin*2))*parseFloat(X)/100,10)+"px"}else{X=X=="auto"?"auto":X+"px"}M.wrapInner('<div style="width:'+W+";height:"+X+";overflow: "+(I.scrolling=="auto"?"auto":(I.scrolling=="yes"?"scroll":"hidden"))+';position:relative;"></div>');I.width=M.width();I.height=M.height();F()},G=function(){I.width=p.width;I.height=p.height;C("<img />").attr({id:"fancybox-img",src:p.src,alt:I.title}).appendTo(M);F()},F=function(){var X,W;U.hide();if(N.is(":visible")&&false===H.onCleanup(z,e,H)){C.event.trigger("fancybox-cancel");Q=false;return}Q=true;C(n.add(R)).unbind();C(window).unbind("resize.fb scroll.fb");C(document).unbind("keydown.fb");if(N.is(":visible")&&H.titlePosition!=="outside"){N.css("height",N.height())}z=k;e=D;H=I;if(H.overlayShow){R.css({"background-color":H.overlayColor,opacity:H.overlayOpacity,cursor:H.hideOnOverlayClick?"pointer":"auto",height:C(document).height()});if(!R.is(":visible")){if(T){C("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"})}R.show()}}else{R.hide()}c=S();m();if(N.is(":visible")){C(K.add(P).add(A)).hide();X=N.position(),b={top:X.top,left:X.left,width:N.width(),height:N.height()};W=(b.width==c.width&&b.height==c.height);n.fadeTo(H.changeFade,0.3,function(){var Y=function(){n.html(M.contents()).fadeTo(H.changeFade,1,w)};C.event.trigger("fancybox-change");n.empty().removeAttr("filter").css({"border-width":H.padding,width:c.width-H.padding*2,height:I.autoDimensions?"auto":c.height-h-H.padding*2});if(W){Y()}else{t.prop=0;C(t).animate({prop:1},{duration:H.changeSpeed,easing:H.easingChange,step:V,complete:Y})}});return}N.removeAttr("style");n.css("border-width",H.padding);if(H.transitionIn=="elastic"){b=J();n.html(M.contents());N.show();if(H.opacity){c.opacity=0}t.prop=0;C(t).animate({prop:1},{duration:H.speedIn,easing:H.easingIn,step:V,complete:w});return}if(H.titlePosition=="inside"&&h>0){B.show()}n.css({width:c.width-H.padding*2,height:I.autoDimensions?"auto":c.height-h-H.padding*2}).html(M.contents());N.css(c).fadeIn(H.transitionIn=="none"?0:H.speedIn,w)},E=function(W){if(W&&W.length){if(H.titlePosition=="float"){return'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+W+'</td><td id="fancybox-title-float-right"></td></tr></table>'}return'<div id="fancybox-title-'+H.titlePosition+'">'+W+"</div>"}return false},m=function(){u=H.title||"";h=0;B.empty().removeAttr("style").removeClass();if(H.titleShow===false){B.hide();return}u=C.isFunction(H.titleFormat)?H.titleFormat(u,z,e,H):E(u);if(!u||u===""){B.hide();return}B.addClass("fancybox-title-"+H.titlePosition).html(u).appendTo("body").show();switch(H.titlePosition){case"inside":B.css({width:c.width-(H.padding*2),marginLeft:H.padding,marginRight:H.padding});h=B.outerHeight(true);B.appendTo(d);c.height+=h;break;case"over":B.css({marginLeft:H.padding,width:c.width-(H.padding*2),bottom:H.padding}).appendTo(d);break;case"float":B.css("left",parseInt((B.width()-c.width-40)/2,10)*-1).appendTo(N);break;default:B.css({width:c.width-(H.padding*2),paddingLeft:H.padding,paddingRight:H.padding}).appendTo(N);break}B.hide()},g=function(){if(H.enableEscapeButton||H.enableKeyboardNav){C(document).bind("keydown.fb",function(W){if(W.keyCode==27&&H.enableEscapeButton){W.preventDefault();C.fancybox.close()}else{if((W.keyCode==37||W.keyCode==39)&&H.enableKeyboardNav&&W.target.tagName!=="INPUT"&&W.target.tagName!=="TEXTAREA"&&W.target.tagName!=="SELECT"){W.preventDefault();C.fancybox[W.keyCode==37?"prev":"next"]()}}})}if(!H.showNavArrows){P.hide();A.hide();return}if((H.cyclic&&z.length>1)||e!==0){P.show()}if((H.cyclic&&z.length>1)||e!=(z.length-1)){A.show()}},w=function(){if(!C.support.opacity){n.get(0).style.removeAttribute("filter");N.get(0).style.removeAttribute("filter")}if(I.autoDimensions){n.css("height","auto")}N.css("height","auto");if(u&&u.length){B.show()}if(H.showCloseButton){K.show()}g();if(H.hideOnContentClick){n.bind("click",C.fancybox.close)}if(H.hideOnOverlayClick){R.bind("click",C.fancybox.close)}C(window).bind("resize.fb",C.fancybox.resize);if(H.centerOnScroll){C(window).bind("scroll.fb",C.fancybox.center)}if(H.type=="iframe"){C('<iframe id="fancybox-frame" name="fancybox-frame'+new Date().getTime()+'" frameborder="0" hspace="0" '+(C.browser.msie?'allowtransparency="true""':"")+' scrolling="'+I.scrolling+'" src="'+H.href+'"></iframe>').appendTo(n)}N.show();Q=false;C.fancybox.center();H.onComplete(z,e,H);L()},L=function(){var W,X;if((z.length-1)>e){W=z[e+1].href;if(typeof W!=="undefined"&&W.match(j)){X=new Image();X.src=W}}if(e>0){W=z[e-1].href;if(typeof W!=="undefined"&&W.match(j)){X=new Image();X.src=W}}},V=function(X){var W={width:parseInt(b.width+(c.width-b.width)*X,10),height:parseInt(b.height+(c.height-b.height)*X,10),top:parseInt(b.top+(c.top-b.top)*X,10),left:parseInt(b.left+(c.left-b.left)*X,10)};if(typeof c.opacity!=="undefined"){W.opacity=X<0.5?0.5:X}N.css(W);n.css({width:W.width-H.padding*2,height:W.height-(h*X)-H.padding*2})},v=function(){return[C(window).width()-(H.margin*2),C(window).height()-(H.margin*2),C(document).scrollLeft()+H.margin,C(document).scrollTop()+H.margin]},S=function(){var W=v(),aa={},X=H.autoScale,Y=H.padding*2,Z;if(H.width.toString().indexOf("%")>-1){aa.width=parseInt((W[0]*parseFloat(H.width))/100,10)}else{aa.width=H.width+Y}if(H.height.toString().indexOf("%")>-1){aa.height=parseInt((W[1]*parseFloat(H.height))/100,10)}else{aa.height=H.height+Y}if(X&&(aa.width>W[0]||aa.height>W[1])){if(I.type=="image"||I.type=="swf"){Z=(H.width)/(H.height);if((aa.width)>W[0]){aa.width=W[0];aa.height=parseInt(((aa.width-Y)/Z)+Y,10)}if((aa.height)>W[1]){aa.height=W[1];aa.width=parseInt(((aa.height-Y)*Z)+Y,10)}}else{aa.width=Math.min(aa.width,W[0]);aa.height=Math.min(aa.height,W[1])}}aa.top=parseInt(Math.max(W[3]-20,W[3]+((W[1]-aa.height-40)*0.5)),10);aa.left=parseInt(Math.max(W[2]-20,W[2]+((W[0]-aa.width-40)*0.5)),10);return aa},r=function(W){var X=W.offset();X.top+=parseInt(W.css("paddingTop"),10)||0;X.left+=parseInt(W.css("paddingLeft"),10)||0;X.top+=parseInt(W.css("border-top-width"),10)||0;X.left+=parseInt(W.css("border-left-width"),10)||0;X.width=W.width();X.height=W.height();return X},J=function(){var Z=I.orig?C(I.orig):false,Y={},X,W;if(Z&&Z.length){X=r(Z);Y={width:X.width+(H.padding*2),height:X.height+(H.padding*2),top:X.top-H.padding-20,left:X.left-H.padding-20}}else{W=v();Y={width:H.padding*2,height:H.padding*2,top:parseInt(W[3]+W[1]*0.5,10),left:parseInt(W[2]+W[0]*0.5,10)}}return Y},a=function(){if(!U.is(":visible")){clearInterval(q);return}C("div",U).css("top",(O*-40)+"px");O=(O+1)%12};C.fn.fancybox=function(W){if(!C(this).length){return this}C(this).data("fancybox",C.extend({},W,(C.metadata?C(this).metadata():{}))).unbind("click.fb").bind("click.fb",function(Y){Y.preventDefault();if(Q){return}Q=true;C(this).blur();k=[];D=0;var X=C(this).attr("rel")||"";if(!X||X==""||X==="nofollow"){k.push(this)}else{k=C("a[rel="+X+"], area[rel="+X+"]");D=k.index(this)}x();return});return this};C.fancybox=function(Z){var Y;if(Q){return}Q=true;Y=typeof arguments[1]!=="undefined"?arguments[1]:{};k=[];D=parseInt(Y.index,10)||0;if(C.isArray(Z)){for(var X=0,W=Z.length;X<W;X++){if(typeof Z[X]=="object"){C(Z[X]).data("fancybox",C.extend({},Y,Z[X]))}else{Z[X]=C({}).data("fancybox",C.extend({content:Z[X]},Y))}}k=jQuery.merge(k,Z)}else{if(typeof Z=="object"){C(Z).data("fancybox",C.extend({},Y,Z))}else{Z=C({}).data("fancybox",C.extend({content:Z},Y))}k.push(Z)}if(D>k.length||D<0){D=0}x()};C.fancybox.showActivity=function(){clearInterval(q);U.show();q=setInterval(a,66)};C.fancybox.hideActivity=function(){U.hide()};C.fancybox.next=function(){return C.fancybox.pos(e+1)};C.fancybox.prev=function(){return C.fancybox.pos(e-1)};C.fancybox.pos=function(W){if(Q){return}W=parseInt(W);k=z;if(W>-1&&W<z.length){D=W;x()}else{if(H.cyclic&&z.length>1){D=W>=z.length?0:z.length-1;x()}}return};C.fancybox.cancel=function(){if(Q){return}Q=true;C.event.trigger("fancybox-cancel");s();I.onCancel(k,D,I);Q=false};C.fancybox.close=function(){if(Q||N.is(":hidden")){return}Q=true;if(H&&false===H.onCleanup(z,e,H)){Q=false;return}s();C(K.add(P).add(A)).hide();C(n.add(R)).unbind();C(window).unbind("resize.fb scroll.fb");C(document).unbind("keydown.fb");n.find("iframe").attr("src",T&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");if(H.titlePosition!=="inside"){B.empty()}N.stop();function W(){R.fadeOut("fast");B.empty().hide();N.hide();C.event.trigger("fancybox-cleanup");n.empty();H.onClosed(z,e,H);z=I=[];e=D=0;H=I={};Q=false}if(H.transitionOut=="elastic"){b=J();var X=N.position();c={top:X.top,left:X.left,width:N.width(),height:N.height()};if(H.opacity){c.opacity=1}B.empty().hide();t.prop=1;C(t).animate({prop:0},{duration:H.speedOut,easing:H.easingOut,step:V,complete:W})}else{N.fadeOut(H.transitionOut=="none"?0:H.speedOut,W)}};C.fancybox.resize=function(){if(R.is(":visible")){R.css("height",C(document).height())}C.fancybox.center(true)};C.fancybox.center=function(){var W,X;if(Q){return}X=arguments[0]===true?1:0;W=v();if(!X&&(N.width()>W[0]||N.height()>W[1])){return}N.stop().animate({top:parseInt(Math.max(W[3]-20,W[3]+((W[1]-n.height()-40)*0.5)-H.padding)),left:parseInt(Math.max(W[2]-20,W[2]+((W[0]-n.width()-40)*0.5)-H.padding))},typeof arguments[0]=="number"?arguments[0]:200)};C.fancybox.init=function(){if(C("#fancybox-wrap").length){return}C("body").append(M=C('<div id="fancybox-tmp"></div>'),U=C('<div id="fancybox-loading"><div></div></div>'),R=C('<div id="fancybox-overlay"></div>'),N=C('<div id="fancybox-wrap"></div>'));d=C('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(N);d.append(n=C('<div id="fancybox-content"></div>'),K=C('<a id="fancybox-close"></a>'),B=C('<div id="fancybox-title"></div>'),P=C('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=C('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));K.click(C.fancybox.close);U.click(C.fancybox.cancel);P.click(function(W){W.preventDefault();C.fancybox.prev()});A.click(function(W){W.preventDefault();C.fancybox.next()});if(C.fn.mousewheel){N.bind("mousewheel.fb",function(W,X){if(Q){W.preventDefault()}else{if(C(W.target).get(0).clientHeight==0||C(W.target).get(0).scrollHeight===C(W.target).get(0).clientHeight){W.preventDefault();C.fancybox[X>0?"prev":"next"]()}}})}if(!C.support.opacity){N.addClass("fancybox-ie")}if(T){U.addClass("fancybox-ie6");N.addClass("fancybox-ie6");C('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(d)}};C.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};C(document).ready(function(){C.fancybox.init()})})(jQuery);jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};jQuery(function(){if(jQuery.cookie("font-size")){size=jQuery.cookie("font-size")}else{size=1}jQuery("#textBlock").css("font-size",size+"em");jQuery("#increase").click(function(){size=parseFloat(size)+0.25;if(size>3){size=3}jQuery("#textBlock").css("font-size",size+"em");jQuery.cookie("font-size",size,{path:"/"})});jQuery("#decrease").click(function(){size=parseFloat(size)-0.25;if(size<0.5){size=0.5}jQuery("#textBlock").css("font-size",size+"em");jQuery.cookie("font-size",size,{path:"/"})});jQuery("#reset").click(function(){size=1;jQuery("#textBlock").css("font-size",size+"em");jQuery.cookie("font-size",size,{path:"/"})})});(function(ai,r){var C={defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:true,allDayDefault:true,ignoreTimezone:true,lazyFetching:true,startParam:"start",endParam:"end",titleFormat:{month:"MMMM yyyy",week:"MMM d[ yyyy]{ '&#8212;'[ MMM] d yyyy}",day:"dddd, MMM d, yyyy"},columnFormat:{month:"ddd",week:"ddd M/d",day:"dddd M/d"},timeFormat:{"":"h(:mm)t"},isRTL:false,firstDay:0,monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],buttonText:{prev:"&nbsp;&#9668;&nbsp;",next:"&nbsp;&#9658;&nbsp;",prevYear:"&nbsp;&lt;&lt;&nbsp;",nextYear:"&nbsp;&gt;&gt;&nbsp;",today:"today",month:"month",week:"week",day:"day"},theme:false,buttonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e"},unselectAuto:true,dropAccept:"*"};var I={header:{left:"next,prev today",center:"",right:"title"},buttonText:{prev:"&nbsp;&#9658;&nbsp;",next:"&nbsp;&#9668;&nbsp;",prevYear:"&nbsp;&gt;&gt;&nbsp;",nextYear:"&nbsp;&lt;&lt;&nbsp;"},buttonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w"}};var ao=ai.fullCalendar={version:"1.4.11"};var V=ao.views={};ai.fn.fullCalendar=function(aA){if(typeof aA=="string"){var az=Array.prototype.slice.call(arguments,1);var aB;this.each(function(){var aD=ai.data(this,"fullCalendar");if(aD&&ai.isFunction(aD[aA])){var aC=aD[aA].apply(aD,az);if(aB===r){aB=aC}if(aA=="destroy"){ai.removeData(this,"fullCalendar")}}});if(aB!==r){return aB}return this}var ay=aA.eventSources||[];delete aA.eventSources;if(aA.events){ay.push(aA.events);delete aA.events}aA=ai.extend(true,{},C,(aA.isRTL||aA.isRTL===r&&C.isRTL)?I:{},aA);this.each(function(aE,aC){var aD=ai(aC);var aF=new o(aD,aA,ay);aD.data("fullCalendar",aF);aF.render()});return this};function Z(ay){ai.extend(true,C,ay)}function o(aQ,aX,a0){var bf=this;bf.options=aX;bf.render=a6;bf.destroy=bh;bf.refetchEvents=aK;bf.reportEvents=aO;bf.reportEventChange=bj;bf.rerenderEvents=aC;bf.changeView=aH;bf.select=bg;bf.unselect=aJ;bf.prev=a2;bf.next=aB;bf.prevYear=bi;bf.nextYear=az;bf.today=aR;bf.gotoDate=a5;bf.incrementDate=aU;bf.formatDate=function(bq,bp){return u(bq,bp,aX)};bf.formatDates=function(br,bq,bp){return g(br,bq,bp,aX)};bf.getDate=aV;bf.getView=a1;bf.option=bc;bf.trigger=a4;n.call(bf,aX,a0);var ay=bf.isFetchNeeded;var bm=bf.fetchEvents;var bd=aQ[0];var aD;var a7;var aM;var bo;var aL;var bn={};var a3;var aF;var aI;var a8=0;var be=0;var bk=new Date();var aZ=[];var aE;s(bk,aX.year,aX.month,aX.date);function a6(bp){if(!aM){aY()}else{a9();bl();aA();aW(bp)}}function aY(){bo=aX.theme?"ui":"fc";aQ.addClass("fc");if(aX.isRTL){aQ.addClass("fc-rtl")}if(aX.theme){aQ.addClass("ui-widget")}aM=ai("<div class='fc-content "+bo+"-widget-content' style='position:relative'/>").prependTo(aQ);aD=new J(bf,aX);a7=aD.render();if(a7){aQ.prepend(a7)}aH(aX.defaultView);ai(window).resize(aN);if(!aP()){aG()}}function aG(){setTimeout(function(){if(!aL.start&&aP()){aW()}},0)}function bh(){ai(window).unbind("resize",aN);aD.destroy();aM.remove();aQ.removeClass("fc fc-rtl fc-ui-widget")}function ba(){return bd.offsetWidth!==0}function aP(){return ai("body")[0].offsetWidth!==0}function aH(br){if(!aL||br!=aL.name){be++;aJ();var bq=aL;var bp;if(bq){(bq.beforeHide||ag)();A(aM,aM.height());bq.element.hide()}else{A(aM,1)}aM.css("overflow","hidden");aL=bn[br];if(aL){aL.element.show()}else{aL=bn[br]=new V[br](bp=aI=ai("<div class='fc-view fc-view-"+br+"' style='position:absolute'/>").appendTo(aM),bf)}if(bq){aD.deactivateButton(bq.name)}aD.activateButton(br);aW();aM.css("overflow","");if(bq){A(aM,1)}if(!bp){(aL.afterShow||ag)()}be--}}function aW(br){if(ba()){be++;aJ();if(aF===r){a9()}var bq=false;if(!aL.start||br||bk<aL.start||bk>=aL.end){aL.render(bk,br||0);bb(true);bq=true}else{if(aL.sizeDirty){aL.clearEvents();bb();bq=true}else{if(aL.eventsDirty){aL.clearEvents();bq=true}}}aL.sizeDirty=false;aL.eventsDirty=false;aT(bq);a3=aQ.outerWidth();aD.updateTitle(aL.title);var bp=new Date();if(bp>=aL.start&&bp<aL.end){aD.disableButton("today")}else{aD.enableButton("today")}be--;aL.trigger("viewDisplay",bd)}}function aS(){bl();if(ba()){a9();bb();aJ();aL.clearEvents();aL.renderEvents(aZ);aL.sizeDirty=false}}function bl(){ai.each(bn,function(bp,bq){bq.sizeDirty=true})}function a9(){if(aX.contentHeight){aF=aX.contentHeight}else{if(aX.height){aF=aX.height-(a7?a7.height():0)-x(aM[0])}else{aF=Math.round(aM.width()/Math.max(aX.aspectRatio,0.5))}}}function bb(bp){be++;aL.setHeight(aF,bp);if(aI){aI.css("position","relative");aI=null}aL.setWidth(aM.width(),bp);be--}function aN(){if(!be){if(aL.start){var bp=++a8;setTimeout(function(){if(bp==a8&&!be&&ba()){if(a3!=(a3=aQ.outerWidth())){be++;aS();aL.trigger("windowResize",bd);be--}}},200)}else{aG()}}}function aT(bp){if(!aX.lazyFetching||ay(aL.visStart,aL.visEnd)){aK()}else{if(bp){aC()}}}function aK(){bm(aL.visStart,aL.visEnd)}function aO(bp){aZ=bp;aC()}function bj(bp){aC(bp)}function aC(bp){aA();if(ba()){aL.clearEvents();aL.renderEvents(aZ,bp);aL.eventsDirty=false}}function aA(){ai.each(bn,function(bp,bq){bq.eventsDirty=true})}function bg(br,bp,bq){aL.select(br,bp,bq===r?true:bq)}function aJ(){if(aL){aL.unselect()}}function a2(){aW(-1)}function aB(){aW(1)}function bi(){Y(bk,-1);aW()}function az(){Y(bk,1);aW()}function aR(){bk=new Date();aW()}function a5(bq,br,bp){if(bq instanceof Date){bk=E(bq)}else{s(bk,bq,br,bp)}aW()}function aU(bq,bp,br){if(bq!==r){Y(bk,bq)}if(bp!==r){l(bk,bp)}if(br!==r){aq(bk,br)}aW()}function aV(){return E(bk)}function a1(){return aL}function bc(bp,bq){if(bq===r){return aX[bp]}if(bp=="height"||bp=="contentHeight"||bp=="aspectRatio"){aX[bp]=bq;aS()}}function a4(bp,bq){if(aX[bp]){return aX[bp].apply(bq||bd,Array.prototype.slice.call(arguments,2))}}if(aX.droppable){ai(document).bind("dragstart",function(br,bs){var bp=br.target;var bt=ai(bp);if(!bt.parents(".fc").length){var bq=aX.dropAccept;if(ai.isFunction(bq)?bq.call(bp,bt):bt.is(bq)){aE=bp;aL.dragStart(aE,br,bs)}}}).bind("dragstop",function(bp,bq){if(aE){aL.dragStop(aE,bp,bq);aE=null}})}}function J(aB,aK){var aJ=this;aJ.render=az;aJ.destroy=aF;aJ.updateTitle=aD;aJ.activateButton=ay;aJ.deactivateButton=aH;aJ.disableButton=aA;aJ.enableButton=aE;var aC=ai([]);var aG;function az(){aG=aK.theme?"ui":"fc";var aL=aK.header;if(aL){aC=ai("<table class='fc-header'/>").append(ai("<tr/>").append(ai("<td class='fc-header-left'/>").append(aI(aL.left))).append(ai("<td class='fc-header-center'/>").append(aI(aL.center))).append(ai("<td class='fc-header-right'/>").append(aI(aL.right))));return aC}}function aF(){aC.remove()}function aI(aL){if(aL){var aM=ai("<tr/>");ai.each(aL.split(" "),function(aO){if(aO>0){aM.append("<td><span class='fc-header-space'/></td>")}var aN;ai.each(this.split(","),function(aR,aQ){if(aQ=="title"){aM.append("<td><h2 class='fc-header-title'>&nbsp;</h2></td>");if(aN){aN.addClass(aG+"-corner-right")}aN=null}else{var aP;if(aB[aQ]){aP=aB[aQ]}else{if(V[aQ]){aP=function(){aS.removeClass(aG+"-state-hover");aB.changeView(aQ)}}}if(aP){if(aN){aN.addClass(aG+"-no-right")}var aS;var aT=aK.theme?w(aK.buttonIcons,aQ):null;var aU=w(aK.buttonText,aQ);if(aT){aS=ai("<div class='fc-button-"+aQ+" ui-state-default'><a><span class='ui-icon ui-icon-"+aT+"'/></a></div>")}else{if(aU){aS=ai("<div class='fc-button-"+aQ+" "+aG+"-state-default'><a><span>"+aU+"</span></a></div>")}}if(aS){aS.click(function(){if(!aS.hasClass(aG+"-state-disabled")){aP()}}).mousedown(function(){aS.not("."+aG+"-state-active").not("."+aG+"-state-disabled").addClass(aG+"-state-down")}).mouseup(function(){aS.removeClass(aG+"-state-down")}).hover(function(){aS.not("."+aG+"-state-active").not("."+aG+"-state-disabled").addClass(aG+"-state-hover")},function(){aS.removeClass(aG+"-state-hover").removeClass(aG+"-state-down")}).appendTo(ai("<td/>").appendTo(aM));if(aN){aN.addClass(aG+"-no-right")}else{aS.addClass(aG+"-corner-left")}aN=aS}}}});if(aN){aN.addClass(aG+"-corner-right")}});return ai("<table/>").append(aM)}}function aD(aL){aC.find("h2.fc-header-title").html(aL)}function ay(aL){aC.find("div.fc-button-"+aL).addClass(aG+"-state-active")}function aH(aL){aC.find("div.fc-button-"+aL).removeClass(aG+"-state-active")}function aA(aL){aC.find("div.fc-button-"+aL).addClass(aG+"-state-disabled")}function aE(aL){aC.find("div.fc-button-"+aL).removeClass(aG+"-state-disabled")}}var N=1;function n(aD,az){var aK=this;aK.isFetchNeeded=aF;aK.fetchEvents=aJ;aK.addEventSource=aB;aK.removeEventSource=aC;aK.updateEvent=aN;aK.renderEvent=aI;aK.removeEvents=aW;aK.clientEvents=aR;aK.normalizeEvent=aH;var aM=aK.trigger;var ay=aK.getView;var aO=aK.reportEvents;var aT,aQ;var aA=0;var aU=0;var aS=0;var aL=[];function aF(aY,aX){return !aT||aY<aT||aX>aQ}function aJ(a1,aY){aT=a1;aQ=aY;aL=[];var a0=++aA;var aX=az.length;aU=aX;for(var aZ=0;aZ<aX;aZ++){aE(az[aZ],a0)}}function aE(aY,aX){aP(aY,function(a0){if(aX==aA){for(var aZ=0;aZ<a0.length;aZ++){aH(a0[aZ]);a0[aZ].source=aY}aL=aL.concat(a0);aU--;if(!aU){aO(aL)}}})}function aP(aX,aZ){if(typeof aX=="string"){var aY={};aY[aD.startParam]=Math.round(aT.getTime()/1000);aY[aD.endParam]=Math.round(aQ.getTime()/1000);if(aD.cacheParam){aY[aD.cacheParam]=(new Date()).getTime()}aG();ai.ajax({url:aX,dataType:"json",data:aY,cache:aD.cacheParam||false,success:function(a0){aV();aZ(a0)}})}else{if(ai.isFunction(aX)){aG();aX(E(aT),E(aQ),function(a0){aV();aZ(a0)})}else{aZ(aX)}}}az.unshift([]);function aB(aX){az.push(aX);aU++;aE(aX,aA)}function aC(aX){az=ai.grep(az,function(aY){return aY!=aX});aL=ai.grep(aL,function(aY){return aY.source!=aX});aO(aL)}function aN(a2){var a0,aY=aL.length,a3,aX=ay().defaultEventEnd,a1=a2.start-a2._start,aZ=a2.end?(a2.end-(a2._end||aX(a2))):0;for(a0=0;a0<aY;a0++){a3=aL[a0];if(a3._id==a2._id&&a3!=a2){a3.start=new Date(+a3.start+a1);if(a2.end){if(a3.end){a3.end=new Date(+a3.end+aZ)}else{a3.end=new Date(+aX(a3)+aZ)}}else{a3.end=null}a3.title=a2.title;a3.url=a2.url;a3.allDay=a2.allDay;a3.className=a2.className;a3.editable=a2.editable;aH(a3)}}aH(a2);aO(aL)}function aI(aY,aX){aH(aY);if(!aY.source){if(aX){az[0].push(aY);aY.source=az[0]}aL.push(aY)}aO(aL)}function aW(aY){if(!aY){aL=[];for(var aX=0;aX<az.length;aX++){if(typeof az[aX]=="object"){az[aX]=[]}}}else{if(!ai.isFunction(aY)){var aZ=aY+"";aY=function(a0){return a0._id==aZ}}aL=ai.grep(aL,aY,true);for(var aX=0;aX<az.length;aX++){if(typeof az[aX]=="object"){az[aX]=ai.grep(az[aX],aY,true)}}}aO(aL)}function aR(aX){if(ai.isFunction(aX)){return ai.grep(aL,aX)}else{if(aX){aX+="";return ai.grep(aL,function(aY){return aY._id==aX})}}return aL}function aG(){if(!aS++){aM("loading",null,true)}}function aV(){if(!--aS){aM("loading",null,false)}}function aH(aX){aX._id=aX._id||(aX.id===r?"_fc"+N++:aX.id+"");if(aX.date){if(!aX.start){aX.start=aX.date}delete aX.date}aX._start=E(aX.start=R(aX.start,aD.ignoreTimezone));aX.end=R(aX.end,aD.ignoreTimezone);if(aX.end&&aX.end<=aX.start){aX.end=null}aX._end=aX.end?E(aX.end):null;if(aX.allDay===r){aX.allDay=aD.allDayDefault}if(aX.className){if(typeof aX.className=="string"){aX.className=aX.className.split(/\s+/)}}else{aX.className=[]}}}V.month=U;function U(aB,aE){var aA=this;aA.render=aC;t.call(aA,aB,aE,"month");var az=aA.opt;var ay=aA.renderBasic;var aD=aE.formatDate;function aC(aI,aM){if(aM){l(aI,aM);aI.setDate(1)}var aG=E(aI,true);aG.setDate(1);var aJ=l(E(aG),1);var aN=E(aG);var aK=E(aJ);var aF=az("firstDay");var aH=az("weekends")?0:1;if(aH){aw(aN);aw(aK,-1,true)}aq(aN,-((aN.getDay()-Math.max(aF,aH)+7)%7));aq(aK,(7-aK.getDay()+Math.max(aF,aH))%7);var aL=Math.round((aK-aN)/(ak*7));if(az("weekMode")=="fixed"){aq(aK,(6-aL)*7);aL=6}aA.title=aD(aG,az("titleFormat"));aA.start=aG;aA.end=aJ;aA.visStart=aN;aA.visEnd=aK;ay(aL,aH?5:7,true)}}V.basicWeek=ap;function ap(aC,aE){var aB=this;aB.render=aD;t.call(aB,aC,aE,"basicWeek");var aA=aB.opt;var az=aB.renderBasic;var ay=aE.formatDates;function aD(aJ,aL){if(aL){aq(aJ,aL*7)}var aK=aq(E(aJ),-((aJ.getDay()-aA("firstDay")+7)%7));var aH=aq(E(aK),7);var aG=E(aK);var aF=E(aH);var aI=aA("weekends");if(!aI){aw(aG);aw(aF,-1,true)}aB.title=ay(aG,aq(E(aF),-1),aA("titleFormat"));aB.start=aK;aB.end=aH;aB.visStart=aG;aB.visEnd=aF;az(1,aI?7:5,false)}}V.basicDay=B;function B(aB,aE){var aA=this;aA.render=aC;t.call(aA,aB,aE,"basicDay");var az=aA.opt;var ay=aA.renderBasic;var aD=aE.formatDate;function aC(aF,aG){if(aG){aq(aF,aG);if(!az("weekends")){aw(aF,aG<0?-1:1)}}aA.title=aD(aF,az("titleFormat"));aA.start=aA.visStart=E(aF,true);aA.end=aA.visEnd=aq(E(aA.start),1);ay(1,1,false)}}var af;Z({weekMode:"fixed"});function t(aH,a3,aE){var a2=this;a2.renderBasic=aU;a2.setHeight=a0;a2.setWidth=ba;a2.renderDayOverlay=aT;a2.defaultSelectionEnd=aR;a2.renderSelection=a4;a2.clearSelection=ay;a2.dragStart=az;a2.dragStop=aF;a2.defaultEventEnd=bg;a2.getHoverListener=function(){return aA};a2.colContentLeft=aY;a2.colContentRight=aV;a2.dayOfWeekCol=aN;a2.dateCell=aW;a2.cellDate=bf;a2.cellIsAllDay=function(){return true};a2.allDayTR=aM;a2.allDayBounds=a7;a2.getRowCnt=function(){return aL};a2.getColCnt=function(){return aC};a2.getColWidth=function(){return aO};a2.getDaySegmentContainer=function(){return aG};ar.call(a2,aH,a3,aE);a.call(a2);ac.call(a2);ab.call(a2);var aJ=a2.opt;var aS=a2.trigger;var aQ=a2.clearEvents;var bb=a2.renderOverlay;var aD=a2.clearOverlays;var aX=a2.daySelectionMousedown;var a1=a3.formatDate;var a5,bh,be;var aK;var aI;var aL,aC;var aO;var bd,bi;var aP,aZ;var aG;var a6;var aA;var a8;ax(aH.addClass("fc-grid"));function aU(bj,bp,br){aL=bj;aC=bp;a5=aJ("isRTL");if(a5){bh=-1;be=aC-1}else{bh=1;be=0}aK=aJ("firstDay");aI=aJ("weekends")?0:1;var bt=aJ("theme")?"ui":"fc";var bm=aJ("columnFormat");var bn=a2.start.getMonth();var bq=b(new Date());var bv,bl,bk,bo=E(a2.visStart);if(!aZ){var bu=ai("<table/>").appendTo(aH);bv="<thead><tr>";for(bl=0;bl<aC;bl++){bv+="<th class='fc-"+H[bo.getDay()]+" "+bt+"-state-default"+(bl==be?" fc-leftmost":"")+"'>"+a1(bo,bm)+"</th>";aq(bo,1);if(aI){aw(bo)}}aP=ai(bv+"</tr></thead>").appendTo(bu);bv="<tbody>";bo=E(a2.visStart);for(bl=0;bl<aL;bl++){bv+="<tr class='fc-week"+bl+"'>";for(bk=0;bk<aC;bk++){bv+="<td class='fc-"+H[bo.getDay()]+" "+bt+"-state-default fc-day"+(bl*aC+bk)+(bk==be?" fc-leftmost":"")+(aL>1&&bo.getMonth()!=bn?" fc-other-month":"")+(+bo==+bq?" fc-today "+bt+"-state-highlight":" fc-not-today")+"'>"+(br?"<div class='fc-day-number'>"+bo.getDate()+"</div>":"")+"<div class='fc-day-content'><div style='position:relative'>&nbsp;</div></div></td>";aq(bo,1);if(aI){aw(bo)}}bv+="</tr>"}aZ=ai(bv+"</tbody>").appendTo(bu);aB(aZ.find("td"));aG=ai("<div style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(aH)}else{aQ();var bs=aZ.find("tr").length;if(aL<bs){aZ.find("tr:gt("+(aL-1)+")").remove()}else{if(aL>bs){bv="";for(bl=bs;bl<aL;bl++){bv+="<tr class='fc-week"+bl+"'>";for(bk=0;bk<aC;bk++){bv+="<td class='fc-"+H[bo.getDay()]+" "+bt+"-state-default fc-new fc-day"+(bl*aC+bk)+(bk==be?" fc-leftmost":"")+"'>"+(br?"<div class='fc-day-number'></div>":"")+"<div class='fc-day-content'><div style='position:relative'>&nbsp;</div></div></td>";aq(bo,1);if(aI){aw(bo)}}bv+="</tr>"}aZ.append(bv)}}aB(aZ.find("td.fc-new").removeClass("fc-new"));bo=E(a2.visStart);aZ.find("td").each(function(){var bw=ai(this);if(aL>1){if(bo.getMonth()==bn){bw.removeClass("fc-other-month")}else{bw.addClass("fc-other-month")}}if(+bo==+bq){bw.removeClass("fc-not-today").addClass("fc-today").addClass(bt+"-state-highlight")}else{bw.addClass("fc-not-today").removeClass("fc-today").removeClass(bt+"-state-highlight")}bw.find("div.fc-day-number").text(bo.getDate());aq(bo,1);if(aI){aw(bo)}});if(aL==1){bo=E(a2.visStart);aP.find("th").each(function(bw,bx){ai(bx).text(a1(bo,bm));bx.className=bx.className.replace(/^fc-\w+(?= )/,"fc-"+H[bo.getDay()]);aq(bo,1);if(aI){aw(bo)}});bo=E(a2.visStart);aZ.find("td").each(function(bw,bx){bx.className=bx.className.replace(/^fc-\w+(?= )/,"fc-"+H[bo.getDay()]);aq(bo,1);if(aI){aw(bo)}})}}}function a0(bj){bi=bj;var bk=aZ.find("tr td:first-child"),bp=bi-aP.height(),bn,bm;if(aJ("weekMode")=="variable"){bn=bm=Math.floor(bp/(aL==1?2:6))}else{bn=Math.floor(bp/aL);bm=bp-bn*(aL-1)}if(af===r){var bl=aZ.find("tr:first"),bo=bl.find("td:first");bo.height(bn);af=bn!=bo.height()}if(af){bk.slice(0,-1).height(bn);bk.slice(-1).height(bm)}else{Q(bk.slice(0,-1),bn);Q(bk.slice(-1),bm)}}function ba(bj){bd=bj;a8.clear();aO=Math.floor(bd/aC);aj(aP.find("th").slice(0,-1),aO)}function aB(bj){bj.click(bc).mousedown(aX)}function bc(bk){if(!aJ("selectable")){var bl=parseInt(this.className.match(/fc\-day(\d+)/)[1]),bj=aq(E(a2.visStart),Math.floor(bl/aC)*7+bl%aC);aS("dayClick",this,bj,true,bk)}}function aT(bo,bs,bm){if(bm){a6.build()}var bj=E(a2.visStart);var bp=aq(E(bj),aC);for(var bl=0;bl<aL;bl++){var bn=new Date(Math.max(bj,bo));var br=new Date(Math.min(bp,bs));if(bn<br){var bk,bq;if(a5){bk=an(br,bj)*bh+be+1;bq=an(bn,bj)*bh+be+1}else{bk=an(bn,bj);bq=an(br,bj)}aB(a9(bl,bk,bl,bq-1))}aq(bj,7);aq(bp,7)}}function a9(bm,bn,bk,bl){var bj=a6.rect(bm,bn,bk,bl,aH);return bb(bj,aH)}function aR(bj,bk){return E(bj)}function a4(bj,bl,bk){aT(bj,aq(E(bl),1),true)}function ay(){aD()}function az(bl,bj,bk){aA.start(function(bm){aD();if(bm){a9(bm.row,bm.col,bm.row,bm.col)}},bj)}function aF(bn,bk,bl){var bj=aA.stop();aD();if(bj){var bm=bf(bj);aS("drop",bn,bm,true,bk,bl)}}function bg(bj){return E(bj.start)}a6=new G(function(bk,bn){var bm,bo,bl;var bj=aZ.find("tr:first td");if(a5){bj=ai(bj.get().reverse())}bj.each(function(bq,bp){bm=ai(bp);bo=bm.offset().left;if(bq){bl[1]=bo}bl=[bo];bn[bq]=bl});bl[1]=bo+bm.outerWidth();aZ.find("tr").each(function(bq,bp){bm=ai(bp);bo=bm.offset().top;if(bq){bl[1]=bo}bl=[bo];bk[bq]=bl});bl[1]=bo+bm.outerHeight()});aA=new ae(a6);a8=new j(function(bj){return aZ.find("td:eq("+bj+") div div")});function aY(bj){return a8.left(bj)}function aV(bj){return a8.right(bj)}function aN(bj){return(bj-Math.max(aK,aI)+aC)%aC}function aW(bj){return{row:Math.floor(an(bj,a2.visStart)/7),col:aN(bj.getDay())*bh+be}}function bf(bj){return aq(E(a2.visStart),bj.row*7+bj.col*bh+be)}function aM(bj){return aZ.find("tr:eq("+bj+")")}function a7(bj){return{left:0,right:bd}}}function ab(){var aJ=this;aJ.renderEvents=aE;aJ.compileDaySegs=aI;aJ.clearEvents=aH;aJ.bindDaySeg=aD;P.call(aJ);var aA=aJ.opt;var aK=aJ.trigger;var aP=aJ.reportEvents;var aS=aJ.reportEventClear;var az=aJ.eventElementHandlers;var aQ=aJ.showEvents;var ay=aJ.hideEvents;var aN=aJ.eventDrop;var aT=aJ.getDaySegmentContainer;var aR=aJ.getHoverListener;var aG=aJ.renderDayOverlay;var aM=aJ.clearOverlays;var aC=aJ.getRowCnt;var aO=aJ.getColCnt;var aL=aJ.renderDaySegs;var aF=aJ.resizableDayEvent;function aE(aV,aU){aP(aV);aL(aI(aV),aU)}function aH(){aS();aT().empty()}function aI(a5){var a2=aC(),a4=aO(),aW=E(aJ.visStart),aU=aq(E(aW),a4),a3=ai.map(a5,ad),a1,a6,a0,aV,aY,aZ,aX=[];for(a1=0;a1<a2;a1++){a6=X(T(a5,a3,aW,aU));for(a0=0;a0<a6.length;a0++){aV=a6[a0];for(aY=0;aY<aV.length;aY++){aZ=aV[aY];aZ.row=a1;aZ.level=a0;aX.push(aZ)}}aq(aW,7);aq(aU,7)}return aX}function aD(aW,aV,aU){az(aW,aV);if(aW.editable||aW.editable===r&&aA("editable")){aB(aW,aV);if(aU.isEnd){aF(aW,aV,aU)}}}function aB(aX,aW){if(!aA("disableDragging")&&aW.draggable){var aV=aR();var aU;aW.draggable({zIndex:9,delay:50,opacity:aA("dragOpacity"),revertDuration:aA("dragRevertDuration"),start:function(aY,aZ){aK("eventDragStart",aW,aX,aY,aZ);ay(aX,aW);aV.start(function(a1,a0,a2,a3){aW.draggable("option","revert",!a1||!a2&&!a3);aM();if(a1){aU=a2*7+a3*(aA("isRTL")?-1:1);aG(aq(E(aX.start),aU),aq(ad(aX),aU))}else{aU=0}},aY,"drag")},stop:function(aY,aZ){aV.stop();aM();aK("eventDragStop",aW,aX,aY,aZ);if(aU){aW.find("a").removeAttr("href");aN(this,aX,aU,0,aX.allDay,aY,aZ)}else{if(ai.browser.msie){aW.css("filter","")}aQ(aX,aW)}}})}}}V.agendaWeek=d;function d(aC,aE){var aB=this;aB.render=aD;y.call(aB,aC,aE,"agendaWeek");var aA=aB.opt;var az=aB.renderAgenda;var ay=aE.formatDates;function aD(aJ,aL){if(aL){aq(aJ,aL*7)}var aK=aq(E(aJ),-((aJ.getDay()-aA("firstDay")+7)%7));var aH=aq(E(aK),7);var aG=E(aK);var aF=E(aH);var aI=aA("weekends");if(!aI){aw(aG);aw(aF,-1,true)}aB.title=ay(aG,aq(E(aF),-1),aA("titleFormat"));aB.start=aK;aB.end=aH;aB.visStart=aG;aB.visEnd=aF;az(aI?7:5)}}V.agendaDay=al;function al(aB,aE){var aA=this;aA.render=aC;y.call(aA,aB,aE,"agendaDay");var az=aA.opt;var ay=aA.renderAgenda;var aD=aE.formatDate;function aC(aG,aI){if(aI){aq(aG,aI);if(!az("weekends")){aw(aG,aI<0?-1:1)}}var aH=E(aG,true);var aF=aq(E(aH),1);aA.title=aD(aG,az("titleFormat"));aA.start=aA.visStart=aH;aA.end=aA.visEnd=aF;ay(1)}}Z({allDaySlot:true,allDayText:"all-day",firstHour:6,slotMinutes:30,defaultEventMinutes:120,axisFormat:"h(:mm)tt",timeFormat:{agenda:"h:mm{ - h:mm}"},dragOpacity:{agenda:0.5},minTime:0,maxTime:24});function y(aV,bq,aK){var bo=this;bo.renderAgenda=be;bo.setWidth=by;bo.setHeight=bm;bo.beforeHide=a8;bo.afterShow=aB;bo.defaultEventEnd=bD;bo.timePosition=aR;bo.dayOfWeekCol=a6;bo.dateCell=bj;bo.cellDate=bE;bo.cellIsAllDay=a1;bo.allDayTR=a5;bo.allDayBounds=bv;bo.getHoverListener=function(){return aG};bo.colContentLeft=bl;bo.colContentRight=bi;bo.getDaySegmentContainer=function(){return aP};bo.getSlotSegmentContainer=function(){return aO};bo.getMinMinute=function(){return bf};bo.getMaxMinute=function(){return aA};bo.getBodyContent=function(){return aD};bo.getRowCnt=function(){return 1};bo.getColCnt=function(){return aI};bo.getColWidth=function(){return a7};bo.getSlotHeight=function(){return a0};bo.defaultSelectionEnd=ba;bo.renderDayOverlay=bb;bo.renderSelection=br;bo.clearSelection=ay;bo.dragStart=aF;bo.dragStop=aL;ar.call(bo,aV,bq,aK);a.call(bo);ac.call(bo);M.call(bo);var aZ=bo.opt;var bc=bo.trigger;var a9=bo.clearEvents;var bz=bo.renderOverlay;var aJ=bo.clearOverlays;var aM=bo.reportSelection;var aQ=bo.unselect;var bk=bo.daySelectionMousedown;var bd=bo.slotSegHtml;var bn=bq.formatDate;var aU,a4,aD,aW,bC;var aI;var a2=0;var aC,a7,a0;var bA,bG;var bh;var bH,a3;var aY;var bs,bF,bB;var bf,aA;var bt;var aG;var bw;var aT={};var bu;var aP;var aO;ax(aV.addClass("fc-agenda"));function be(bN){aI=bN;bH=aZ("theme")?"ui":"fc";aY=aZ("weekends")?0:1;a3=aZ("firstDay");if(bs=aZ("isRTL")){bF=-1;bB=aI-1}else{bF=1;bB=0}bf=av(aZ("minTime"));aA=av(aZ("maxTime"));var bg=bs?aq(E(bo.visEnd),-1):E(bo.visStart),bM=E(bg),bP=b(new Date()),bK=aZ("columnFormat");if(!aU){var bJ,bI,bO=aZ("slotMinutes")%15==0,bQ="<div class='fc-agenda-head' style='position:relative;z-index:4'><table style='width:100%'><tr class='fc-first"+(aZ("allDaySlot")?"":" fc-last")+"'><th class='fc-leftmost "+bH+"-state-default'>&nbsp;</th>";for(bJ=0;bJ<aI;bJ++){bQ+="<th class='fc-"+H[bM.getDay()]+" "+bH+"-state-default'>"+bn(bM,bK)+"</th>";aq(bM,bF);if(aY){aw(bM,bF)}}bQ+="<th class='"+bH+"-state-default'>&nbsp;</th></tr>";if(aZ("allDaySlot")){bQ+="<tr class='fc-all-day'><th class='fc-axis fc-leftmost "+bH+"-state-default'>"+aZ("allDayText")+"</th><td colspan='"+aI+"' class='"+bH+"-state-default'><div class='fc-day-content'><div style='position:relative'>&nbsp;</div></div></td><th class='"+bH+"-state-default'>&nbsp;</th></tr><tr class='fc-divider fc-last'><th colspan='"+(aI+2)+"' class='"+bH+"-state-default fc-leftmost'><div/></th></tr>"}bQ+="</table></div>";aU=ai(bQ).appendTo(aV);aH(aU.find("td"));aP=ai("<div style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(aU);bM=c();var bL=f(E(bM),aA);f(bM,bf);bQ="<table>";for(bJ=0;bM<bL;bJ++){bI=bM.getMinutes();bQ+="<tr class='"+(!bJ?"fc-first":(!bI?"":"fc-minor"))+"'><th class='fc-axis fc-leftmost "+bH+"-state-default'>"+((!bO||!bI)?bn(bM,aZ("axisFormat")):"&nbsp;")+"</th><td class='fc-slot"+bJ+" "+bH+"-state-default'><div style='position:relative'>&nbsp;</div></td></tr>";f(bM,aZ("slotMinutes"));a2++}bQ+="</table>";a4=ai("<div class='fc-agenda-body' style='position:relative;z-index:2;overflow:auto'/>").append(aD=ai("<div style='position:relative;overflow:hidden'>").append(aW=ai(bQ))).appendTo(aV);bp(a4.find("td"));aO=ai("<div style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(aD);bM=E(bg);bQ="<div class='fc-agenda-bg' style='position:absolute;z-index:1'><table style='width:100%;height:100%'><tr class='fc-first'>";for(bJ=0;bJ<aI;bJ++){bQ+="<td class='fc-"+H[bM.getDay()]+" "+bH+"-state-default "+(!bJ?"fc-leftmost ":"")+(+bM==+bP?bH+"-state-highlight fc-today":"fc-not-today")+"'><div class='fc-day-content'><div>&nbsp;</div></div></td>";aq(bM,bF);if(aY){aw(bM,bF)}}bQ+="</tr></table></div>";bC=ai(bQ).appendTo(aV)}else{a9();aU.find("tr:first th").slice(1,-1).each(function(bR,bS){ai(bS).text(bn(bM,bK));bS.className=bS.className.replace(/^fc-\w+(?= )/,"fc-"+H[bM.getDay()]);aq(bM,bF);if(aY){aw(bM,bF)}});bM=E(bg);bC.find("td").each(function(bR,bS){bS.className=bS.className.replace(/^fc-\w+(?= )/,"fc-"+H[bM.getDay()]);if(+bM==+bP){ai(bS).removeClass("fc-not-today").addClass("fc-today").addClass(bH+"-state-highlight")}else{ai(bS).addClass("fc-not-today").removeClass("fc-today").removeClass(bH+"-state-highlight")}aq(bM,bF);if(aY){aw(bM,bF)}})}}function bm(bg,bI){if(bg===r){bg=bG}bG=bg;aT={};var bJ=bg-aU.height();bJ=Math.min(bJ,aW.height());a4.height(bJ);a0=a4.find("tr:first div").height()+1;if(bI){aS()}}function by(bg){bA=bg;bw.clear();a4.width(bg).css("overflow","auto");aW.width("");var bL=aU.find("tr:first th"),bK=aU.find("tr.fc-all-day th:last"),bI=bC.find("td"),bJ=a4[0].clientWidth;aW.width(bJ);bJ=a4[0].clientWidth;aW.width(bJ);aC=0;aj(aU.find("tr:lt(2) th:first").add(a4.find("tr:first th")).width(1).each(function(){aC=Math.max(aC,ai(this).outerWidth())}),aC);a7=Math.floor((bJ-aC)/aI);aj(bI.slice(0,-1),a7);aj(bL.slice(1,-2),a7);if(bg!=bJ){aj(bL.slice(-2,-1),bJ-aC-a7*(aI-1));bL.slice(-1).show();bK.show()}else{a4.css("overflow","hidden");bL.slice(-2,-1).width("");bL.slice(-1).hide();bK.hide()}bC.css({top:aU.find("tr").height(),left:aC,width:bJ-aC,height:bG})}function aS(){var bK=c(),bI=E(bK);bI.setHours(aZ("firstHour"));var bJ=aR(bK,bI)+1,bg=function(){a4.scrollTop(bJ)};bg();setTimeout(bg,0)}function a8(){bh=a4.scrollTop()}function aB(){a4.scrollTop(bh)}function aH(bg){bg.click(az).mousedown(bk)}function bp(bg){bg.click(az).mousedown(aE)}function az(bL){if(!aZ("selectable")){var bJ=Math.min(aI-1,Math.floor((bL.pageX-bC.offset().left)/a7)),bI=aq(E(bo.visStart),bJ*bF+bB),bM=this.className.match(/fc-slot(\d+)/);if(bM){var bK=parseInt(bM[1])*aZ("slotMinutes"),bg=Math.floor(bK/60);bI.setHours(bg);bI.setMinutes(bK%60+bf);bc("dayClick",this,bI,false,bL)}else{bc("dayClick",this,bI,true,bL)}}}function bb(bg,bM,bJ){if(bJ){bt.build()}var bI=E(bo.visStart);var bL,bK;if(bs){bL=an(bM,bI)*bF+bB+1;bK=an(bg,bI)*bF+bB+1}else{bL=an(bg,bI);bK=an(bM,bI)}bL=Math.max(0,bL);bK=Math.min(aI,bK);if(bL<bK){aH(bx(0,bL,0,bK-1))}}function bx(bL,bK,bJ,bI){var bg=bt.rect(bL,bK,bJ,bI,aU);return bz(bg,aU)}function aN(bM,bR){var bN=E(bo.visStart);var bI=aq(E(bN),1);for(var bK=0;bK<aI;bK++){var bL=new Date(Math.max(bN,bM));var bQ=new Date(Math.min(bI,bR));if(bL<bQ){var bJ=bK*bF+bB;var bP=bt.rect(0,bJ,0,bJ,aD);var bO=aR(bN,bL);var bg=aR(bN,bQ);bP.top=bO;bP.height=bg-bO;bp(bz(bP,aD))}aq(bN,1);aq(bI,1)}}bt=new G(function(bQ,bO){var bM,bJ,bI;bC.find("td").each(function(bS,bR){bM=ai(bR);bJ=bM.offset().left;if(bS){bI[1]=bJ}bI=[bJ];bO[bS]=bI});bI[1]=bJ+bM.outerWidth();if(aZ("allDaySlot")){bM=aU.find("td");bJ=bM.offset().top;bQ[0]=[bJ,bJ+bM.outerHeight()]}var bK=aD.offset().top;var bP=a4.offset().top;var bg=bP+a4.outerHeight();function bN(bR){return Math.max(bP,Math.min(bg,bR))}for(var bL=0;bL<a2;bL++){bQ.push([bN(bK+a0*bL),bN(bK+a0*(bL+1))])}});aG=new ae(bt);bw=new j(function(bg){return bC.find("td:eq("+bg+") div div")});function bl(bg){return aC+bw.left(bg)}function bi(bg){return aC+bw.right(bg)}function a6(bg){return((bg-Math.max(a3,aY)+aI)%aI)*bF+bB}function bj(bg){return{row:Math.floor(an(bg,bo.visStart)/7),col:a6(bg.getDay())}}function aR(bI,bM){bI=E(bI,true);if(bM<f(E(bI),bf)){return 0}if(bM>=f(E(bI),aA)){return aD.height()}var bg=aZ("slotMinutes"),bL=bM.getHours()*60+bM.getMinutes()-bf,bK=Math.floor(bL/bg),bJ=aT[bK];if(bJ===r){bJ=aT[bK]=a4.find("tr:eq("+bK+") td div")[0].offsetTop}return Math.max(0,Math.round(bJ-1+a0*((bL%bg)/bg)))}function bE(bg){var bJ=aq(E(bo.visStart),bg.col*bF+bB);var bI=bg.row;if(aZ("allDaySlot")){bI--}if(bI>=0){f(bJ,bf+bI*aZ("slotMinutes"))}return bJ}function a1(bg){return aZ("allDaySlot")&&!bg.row}function bv(){return{left:aC,right:bA}}function a5(bg){return aU.find("tr.fc-all-day")}function bD(bg){var bI=E(bg.start);if(bg.allDay){return bI}return f(bI,aZ("defaultEventMinutes"))}function ba(bg,bI){if(bI){return E(bg)}return f(E(bg),aZ("slotMinutes"))}function br(bg,bJ,bI){if(bI){if(aZ("allDaySlot")){bb(bg,aq(E(bJ),1),true)}}else{aX(bg,bJ)}}function aX(bg,bN){var bL=aZ("selectHelper");bt.build();if(bL){var bJ=an(bg,bo.visStart)*bF+bB;if(bJ>=0&&bJ<aI){var bK=bt.rect(0,bJ,0,bJ,aD);var bM=aR(bg,bg);var bI=aR(bg,bN);if(bI>bM){bK.top=bM;bK.height=bI-bM;bK.left+=2;bK.width-=5;if(ai.isFunction(bL)){var bO=bL(bg,bN);if(bO){bK.position="absolute";bK.zIndex=8;bu=ai(bO).css(bK).appendTo(aD)}}else{bu=ai(bd({title:"",start:bg,end:bN,className:[],editable:false},bK,"fc-event fc-event-vert fc-corner-top fc-corner-bottom "));if(ai.browser.msie){bu.find("span.fc-event-bg").hide()}bu.css("opacity",aZ("dragOpacity"))}if(bu){bp(bu);aD.append(bu);aj(bu,bK.width,true);Q(bu,bK.height,true)}}}}else{aN(bg,bN)}}function ay(){aJ();if(bu){bu.remove();bu=null}}function aE(bI){if(bI.which==1&&aZ("selectable")){aQ(bI);var bg=this;var bJ;aG.start(function(bL,bK){ay();if(bL&&bL.col==bK.col&&!a1(bL)){var bN=bE(bK);var bM=bE(bL);bJ=[bN,f(E(bN),aZ("slotMinutes")),bM,f(E(bM),aZ("slotMinutes"))].sort(O);aX(bJ[0],bJ[3])}else{bJ=null}},bI);ai(document).one("mouseup",function(bK){aG.stop();if(bJ){if(+bJ[0]==+bJ[1]){bc("dayClick",bg,bJ[0],false,bK)}aM(bJ[0],bJ[3],false,bK)}})}}function aF(bJ,bg,bI){aG.start(function(bK){aJ();if(bK){if(a1(bK)){bx(bK.row,bK.col,bK.row,bK.col)}else{var bM=bE(bK);var bL=f(E(bM),aZ("defaultEventMinutes"));aN(bM,bL)}}},bg)}function aL(bK,bI,bJ){var bg=aG.stop();aJ();if(bg){bc("drop",bK,bE(bg),a1(bg),bI,bJ)}}}function M(){var a7=this;a7.renderEvents=aD;a7.compileDaySegs=az;a7.clearEvents=aT;a7.slotSegHtml=aU;a7.bindDaySeg=aR;P.call(a7);var aM=a7.opt;var aV=a7.trigger;var bc=a7.eventEnd;var aH=a7.reportEvents;var bf=a7.reportEventClear;var aY=a7.eventElementHandlers;var a3=a7.setHeight;var aC=a7.getDaySegmentContainer;var be=a7.getSlotSegmentContainer;var aB=a7.getHoverListener;var aA=a7.getMaxMinute;var a0=a7.getMinMinute;var aG=a7.timePosition;var a2=a7.colContentLeft;var a1=a7.colContentRight;var a5=a7.renderDaySegs;var aZ=a7.resizableDayEvent;var a4=a7.getColCnt;var aN=a7.getColWidth;var ay=a7.getSlotHeight;var aS=a7.getBodyContent;var aK=a7.reportEventElement;var aE=a7.showEvents;var aL=a7.hideEvents;var ba=a7.eventDrop;var aP=a7.eventResize;var aW=a7.renderDayOverlay;var aF=a7.clearOverlays;var a8=a7.calendar;var a6=a8.formatDate;var aO=a8.formatDates;function aD(bk,bi){aH(bk);var bj,bh=bk.length,bl=[],bg=[];for(bj=0;bj<bh;bj++){if(bk[bj].allDay){bl.push(bk[bj])}else{bg.push(bk[bj])}}if(aM("allDaySlot")){a5(az(bl),bi);a3()}aI(aQ(bg),bi)}function aT(){bf();aC().empty();be().empty()}function az(bk){var bm=X(T(bk,ai.map(bk,ad),a7.visStart,a7.visEnd)),bj,bl=bm.length,bn,bi,bh,bg=[];for(bj=0;bj<bl;bj++){bn=bm[bj];for(bi=0;bi<bn.length;bi++){bh=bn[bi];bh.row=0;bh.level=bj;bg.push(bh)}}return bg}function aQ(bs){var br=a4(),bp=a0(),bj=aA(),bq=f(E(a7.visStart),bp),bn=ai.map(bs,bd),bo,bi,bm,bg,bk,bl,bh=[];for(bo=0;bo<br;bo++){bi=X(T(bs,bn,bq,f(E(bq),bj-bp)));v(bi);for(bm=0;bm<bi.length;bm++){bg=bi[bm];for(bk=0;bk<bg.length;bk++){bl=bg[bk];bl.col=bo;bl.level=bm;bh.push(bl)}}aq(bq,1,true)}return bh}function bd(bg){if(bg.end){return E(bg.end)}else{return f(E(bg.start),aM("defaultEventMinutes"))}}function aI(bw,bx){var bD,bG=bw.length,bF,bA,bh,bs,bp,bo,bj,bq,bn,bz,bg,bk,br="",bH,bE,bm,bi={},bK={},bJ,bI,bC,bu,bB=be(),bl,bv,bt,by=a4();if(bl=aM("isRTL")){bv=-1;bt=by-1}else{bv=1;bt=0}for(bD=0;bD<bG;bD++){bF=bw[bD];bA=bF.event;bh="fc-event fc-event-vert ";if(bF.isStart){bh+="fc-corner-top "}if(bF.isEnd){bh+="fc-corner-bottom "}bs=aG(bF.start,bF.start);bp=aG(bF.start,bF.end);bo=bF.col;bj=bF.level;bq=bF.forward||0;bn=a2(bo*bv+bt);bz=a1(bo*bv+bt)-bn;bz=Math.min(bz-6,bz*0.95);if(bj){bg=bz/(bj+bq+1)}else{if(bq){bg=((bz/(bq+1))-(12/2))*2}else{bg=bz}}bk=bn+(bz/(bj+bq+1)*bj)*bv+(bl?bz-bg:0);bF.top=bs;bF.left=bk;bF.outerWidth=bg;bF.outerHeight=bp-bs;br+=aU(bA,bF,bh)}bB[0].innerHTML=br;bH=bB.children();for(bD=0;bD<bG;bD++){bF=bw[bD];bA=bF.event;bE=ai(bH[bD]);bm=aV("eventRender",bA,bA,bE);if(bm===false){bE.remove()}else{if(bm&&bm!==true){bE.remove();bE=ai(bm).css({position:"absolute",top:bF.top,left:bF.left}).appendTo(bB)}bF.element=bE;if(bA._id===bx){a9(bA,bE,bF)}else{bE[0]._fci=bD}aK(bA,bE)}}q(bB,bw,a9);for(bD=0;bD<bG;bD++){bF=bw[bD];if(bE=bF.element){bI=bi[bJ=bF.key=z(bE[0])];bF.vsides=bI===r?(bi[bJ]=x(bE[0],true)):bI;bI=bK[bJ];bF.hsides=bI===r?(bK[bJ]=e(bE[0],true)):bI;bC=bE.find("span.fc-event-title");if(bC.length){bF.titleTop=bC[0].offsetTop}}}for(bD=0;bD<bG;bD++){bF=bw[bD];if(bE=bF.element){bE[0].style.width=Math.max(0,bF.outerWidth-bF.hsides)+"px";bu=Math.max(0,bF.outerHeight-bF.vsides);bE[0].style.height=bu+"px";bA=bF.event;if(bF.titleTop!==r&&bu-bF.titleTop<10){bE.find("span.fc-event-time").text(a6(bA.start,aM("timeFormat"))+" - "+bA.title);bE.find("span.fc-event-title").remove()}aV("eventAfterRender",bA,bA,bE)}}}function aU(bi,bg,bh){return"<div class='"+bh+bi.className.join(" ")+"' style='position:absolute;z-index:8;top:"+bg.top+"px;left:"+bg.left+"px'><a"+(bi.url?" href='"+au(bi.url)+"'":"")+"><span class='fc-event-bg'></span><span class='fc-event-time'>"+au(aO(bi.start,bi.end,aM("timeFormat")))+"</span><span class='fc-event-title'>"+au(bi.title)+"</span></a>"+((bi.editable||bi.editable===r&&aM("editable"))&&!aM("disableResizing")&&ai.fn.resizable?"<div class='ui-resizable-handle ui-resizable-s'>=</div>":"")+"</div>"}function aR(bi,bh,bg){aY(bi,bh);if(bi.editable||bi.editable===r&&aM("editable")){aJ(bi,bh,bg.isStart);if(bg.isEnd){aZ(bi,bh,bg)}}}function a9(bi,bh,bg){aY(bi,bh);if(bi.editable||bi.editable===r&&aM("editable")){var bj=bh.find("span.fc-event-time");aX(bi,bh,bj);if(bg.isEnd){bb(bi,bh,bj)}}}function aJ(bh,bp,bg){if(!aM("disableDragging")&&bp.draggable){var bq;var bo;var bs=true;var bk;var bi=aM("isRTL")?-1:1;var bj=aB();var bl=aN();var br=ay();var bn=a0();bp.draggable({zIndex:9,opacity:aM("dragOpacity","month"),revertDuration:aM("dragRevertDuration"),start:function(bt,bu){aV("eventDragStart",bp,bh,bt,bu);aL(bh,bp);bq=bp.width();bj.start(function(bw,bv,bx,by){aF();if(bw){bo=false;bk=by*bi;if(!bw.row){aW(aq(E(bh.start),bk),aq(ad(bh),bk));bm()}else{if(bg){if(bs){bp.width(bl-10);Q(bp,br*Math.round((bh.end?((bh.end-bh.start)/L):aM("defaultEventMinutes"))/aM("slotMinutes")));bp.draggable("option","grid",[bl,1]);bs=false}}else{bo=true}}bo=bo||(bs&&!bk)}else{bo=true}bp.draggable("option","revert",bo)},bt,"drag")},stop:function(bu,bv){bj.stop();aF();aV("eventDragStop",bp,bh,bu,bv);if(bo){bm();if(ai.browser.msie){bp.css("filter","")}aE(bh,bp)}else{bp.find("a").removeAttr("href");var bt=0;if(!bs){bt=Math.round((bp.offset().top-aS().offset().top)/br)*aM("slotMinutes")+bn-(bh.start.getHours()*60+bh.start.getMinutes())}ba(this,bh,bk,bt,bs,bu,bv)}}});function bm(){if(!bs){bp.width(bq).height("").draggable("option","grid",null);bs=true}}}}function aX(bg,bq,br){if(!aM("disableDragging")&&bq.draggable){var bk;var bu=false;var bl;var bp;var bn;var bh=aM("isRTL")?-1:1;var bj=aB();var bs=a4();var bm=aN();var bt=ay();bq.draggable({zIndex:9,scroll:false,grid:[bm,bt],axis:bs==1?"y":false,opacity:aM("dragOpacity"),revertDuration:aM("dragRevertDuration"),start:function(bv,bw){aV("eventDragStart",bq,bg,bv,bw);aL(bg,bq);if(ai.browser.msie){bq.find("span.fc-event-bg").hide()}bk=bq.position();bp=bn=0;bj.start(function(by,bx,bz,bA){bq.draggable("option","revert",!by);aF();if(by){bl=bA*bh;if(aM("allDaySlot")&&!by.row){if(!bu){bu=true;br.hide();bq.draggable("option","grid",null)}aW(aq(E(bg.start),bl),aq(ad(bg),bl))}else{bo()}}},bv,"drag")},drag:function(bv,bw){bp=Math.round((bw.position.top-bk.top)/bt)*aM("slotMinutes");if(bp!=bn){if(!bu){bi(bp)}bn=bp}},stop:function(bw,bx){var bv=bj.stop();aF();aV("eventDragStop",bq,bg,bw,bx);if(bv&&(bl||bp||bu)){ba(this,bg,bl,bu?0:bp,bu,bw,bx)}else{bo();bq.css(bk);bi(0);if(ai.browser.msie){bq.css("filter","").find("span.fc-event-bg").css("display","")}aE(bg,bq)}}});function bi(bw){var bv=f(E(bg.start),bw);var bx;if(bg.end){bx=f(E(bg.end),bw)}br.text(aO(bv,bx,aM("timeFormat")))}function bo(){if(bu){br.css("display","");bq.draggable("option","grid",[bm,bt]);bu=false}}}}function bb(bi,bh,bk){if(!aM("disableResizing")&&bh.resizable){var bl,bg;var bj=ay();bh.resizable({handles:{s:"div.ui-resizable-s"},grid:bj,start:function(bm,bn){bl=bg=0;aL(bi,bh);if(ai.browser.msie&&ai.browser.version=="6.0"){bh.css("overflow","hidden")}bh.css("z-index",9);aV("eventResizeStart",this,bi,bm,bn)},resize:function(bm,bn){bl=Math.round((Math.max(bj,bh.height())-bn.originalSize.height)/bj);if(bl!=bg){bk.text(aO(bi.start,(!bl&&!bi.end)?null:f(bc(bi),aM("slotMinutes")*bl),aM("timeFormat")));bg=bl}},stop:function(bm,bn){aV("eventResizeStop",this,bi,bm,bn);if(bl){aP(this,bi,0,aM("slotMinutes")*bl,bm,bn)}else{bh.css("z-index",8);aE(bi,bh)}}})}}}function v(aC){var aA,az,ay,aE,aD,aB;for(aA=aC.length-1;aA>0;aA--){aE=aC[aA];for(az=0;az<aE.length;az++){aD=aE[az];for(ay=0;ay<aC[aA-1].length;ay++){aB=aC[aA-1][ay];if(F(aD,aB)){aB.forward=Math.max(aB.forward||0,(aD.forward||0)+1)}}}}}function ar(aC,aJ,aN){var aI=this;aI.element=aC;aI.calendar=aJ;aI.name=aN;aI.opt=aA;aI.trigger=aK;aI.reportEvents=aO;aI.eventEnd=aQ;aI.reportEventElement=aP;aI.reportEventClear=aV;aI.eventElementHandlers=az;aI.showEvents=aS;aI.hideEvents=ay;aI.eventDrop=aM;aI.eventResize=aB;var aW=aI.defaultEventEnd;var aH=aJ.normalizeEvent;var aG=aJ.reportEventChange;var aR={};var aU=[];var aF={};var aD=aJ.options;function aA(aZ,aX){var aY=aD[aZ];if(typeof aY=="object"){return w(aY,aX||aN)}return aY}function aK(aX,aY){return aJ.trigger.apply(aJ,[aX,aY||aI].concat(Array.prototype.slice.call(arguments,2),[aI]))}function aO(aZ){aR={};var aY,aX=aZ.length,a0;for(aY=0;aY<aX;aY++){a0=aZ[aY];if(aR[a0._id]){aR[a0._id].push(a0)}else{aR[a0._id]=[a0]}}}function aQ(aX){return aX.end?E(aX.end):aW(aX)}function aP(aY,aX){aU.push(aX);if(aF[aY._id]){aF[aY._id].push(aX)}else{aF[aY._id]=[aX]}}function aV(){aU=[];aF={}}function az(aY,aX){aX.click(function(aZ){if(!aX.hasClass("ui-draggable-dragging")&&!aX.hasClass("ui-resizable-resizing")){return aK("eventClick",this,aY,aZ)}}).hover(function(aZ){aK("eventMouseover",this,aY,aZ)},function(aZ){aK("eventMouseout",this,aY,aZ)})}function aS(aY,aX){aL(aY,aX,"show")}function ay(aY,aX){aL(aY,aX,"hide")}function aL(a0,aZ,a2){var a1=aF[a0._id],aY,aX=a1.length;for(aY=0;aY<aX;aY++){if(!aZ||a1[aY][0]!=aZ[0]){a1[aY][a2]()}}}function aM(a0,aY,aZ,a1,a4,a3,a2){var a5=aY.allDay;var aX=aY._id;aT(aR[aX],aZ,a1,a4);aK("eventDrop",a0,aY,aZ,a1,a4,function(){aT(aR[aX],-aZ,-a1,a5);aG(aX)},a3,a2);aG(aX)}function aB(a3,a1,aY,aX,a0,a2){var aZ=a1._id;aE(aR[aZ],aY,aX);aK("eventResize",a3,a1,aY,aX,function(){aE(aR[aZ],-aY,-aX);aG(aZ)},a0,a2);aG(aZ)}function aT(a1,aZ,aY,a2){aY=aY||0;for(var a3,aX=a1.length,a0=0;a0<aX;a0++){a3=a1[a0];if(a2!==r){a3.allDay=a2}f(aq(a3.start,aZ,true),aY);if(a3.end){a3.end=f(aq(a3.end,aZ,true),aY)}aH(a3,aD)}}function aE(a1,aZ,aY){aY=aY||0;for(var a2,aX=a1.length,a0=0;a0<aX;a0++){a2=a1[a0];a2.end=f(aq(aQ(a2),aZ,true),aY);aH(a2,aD)}}}function P(){var a0=this;a0.renderDaySegs=aZ;a0.resizableDayEvent=aT;var aH=a0.opt;var aP=a0.trigger;var a5=a0.eventEnd;var aF=a0.reportEventElement;var aC=a0.showEvents;var aG=a0.hideEvents;var aK=a0.eventResize;var a8=a0.getRowCnt;var aY=a0.getColCnt;var aI=a0.getColWidth;var aM=a0.allDayTR;var a3=a0.allDayBounds;var aW=a0.colContentLeft;var aU=a0.colContentRight;var aN=a0.dayOfWeekCol;var aV=a0.dateCell;var az=a0.compileDaySegs;var aA=a0.getDaySegmentContainer;var aO=a0.bindDaySeg;var aJ=a0.calendar.formatDates;var aQ=a0.renderDayOverlay;var aD=a0.clearOverlays;var ay=a0.clearSelection;function aZ(bb,ba){var a9=aA();var bh;var bg=a8();var bm=aY();var bf=0;var bl;var bk;var bi;var be;var bn=bb.length;var bd;var bj;var bc;a9[0].innerHTML=aR(bb);aS(bb,a9.children());a2(bb);aX(bb,a9,ba);a7(bb);aB(bb);a1(bb);bh=aL();for(bl=0;bl<bg;bl++){bk=0;bi=[];for(be=0;be<bm;be++){bi[be]=0}while(bf<bn&&(bd=bb[bf]).row==bl){bj=ah(bi.slice(bd.startCol,bd.endCol))-4;bd.top=bj;bj+=bd.outerHeight;for(bc=bd.startCol;bc<bd.endCol;bc++){bi[bc]=bj}bf++}bh[bl].height(ah(bi)-6)}a6(bb,aE(bh))}function a4(bc,bb,bg){var bf=ai("<div/>");var a9;var ba=aA();var be;var bh=bc.length;var bd;bf[0].innerHTML=aR(bc);a9=bf.children();ba.append(a9);aS(bc,a9);a7(bc);aB(bc);a1(bc);a6(bc,aE(aL()));a9=[];for(be=0;be<bh;be++){bd=bc[be].element;if(bd){if(bc[be].row===bb){bd.css("top",bg)}a9.push(bd[0])}}return ai(a9)}function aR(bc){var bk=aH("isRTL");var bg;var bm=bc.length;var bf;var bb;var bi;var a9=a3();var be=a9.left;var ba=a9.right;var bj=[];var bd;var bl;var bh="";for(bg=0;bg<bm;bg++){bf=bc[bg];bb=bf.event;bi="fc-event fc-event-hori ";if(bk){if(bf.isStart){bi+="fc-corner-right "}if(bf.isEnd){bi+="fc-corner-left "}bj[0]=aN(bf.end.getDay()-1);bj[1]=aN(bf.start.getDay());bd=bf.isEnd?aW(bj[0]):be;bl=bf.isStart?aU(bj[1]):ba}else{if(bf.isStart){bi+="fc-corner-left "}if(bf.isEnd){bi+="fc-corner-right "}bj[0]=aN(bf.start.getDay());bj[1]=aN(bf.end.getDay()-1);bd=bf.isStart?aW(bj[0]):be;bl=bf.isEnd?aU(bj[1]):ba}bh+="<div class='"+bi+bb.className.join(" ")+"' style='position:absolute;z-index:8;left:"+bd+"px'>"+(!bb.allDay&&bf.isStart?"<span class='fc-event-time'>"+au(aJ(bb.start,bb.end,aH("timeFormat")))+"</span>":"")+"<span class='fc-event-title'>"+au(bb.title)+"</span>"+(bf.isEnd&&(bb.editable||bb.editable===r&&aH("editable"))&&!aH("disableResizing")?"<div class='ui-resizable-handle ui-resizable-"+(bk?"w":"e")+"'></div>":"")+"</div>";bf.left=bd;bf.outerWidth=bl-bd;bj.sort(O);bf.startCol=bj[0];bf.endCol=bj[1]+1}return bh}function aS(ba,bf){var bd;var bg=ba.length;var a9;var be;var bc;var bb;for(bd=0;bd<bg;bd++){a9=ba[bd];be=a9.event;bc=ai(bf[bd]);bb=aP("eventRender",be,be,bc);if(bb===false){bc.remove()}else{if(bb&&bb!==true){bb=ai(bb).css({position:"absolute",left:a9.left});bc.replaceWith(bb);bc=bb}a9.element=bc}}}function a2(ba){var bc;var bd=ba.length;var a9;var bb;for(bc=0;bc<bd;bc++){a9=ba[bc];bb=a9.element;if(bb){aF(a9.event,bb)}}}function aX(ba,bf,bb){var bd;var bg=ba.length;var a9;var bc;var be;for(bd=0;bd<bg;bd++){a9=ba[bd];bc=a9.element;if(bc){be=a9.event;if(be._id===bb){aO(be,bc,a9)}else{bc[0]._fci=bd}}}q(bf,ba,aO)}function a7(ba){var be;var bf=ba.length;var a9;var bd;var bc,bg;var bb={};for(be=0;be<bf;be++){a9=ba[be];bd=a9.element;if(bd){bc=a9.key=z(bd[0]);bg=bb[bc];if(bg===r){bg=bb[bc]=e(bd[0],true)}a9.hsides=bg}}}function aB(ba){var bc;var bd=ba.length;var a9;var bb;for(bc=0;bc<bd;bc++){a9=ba[bc];bb=a9.element;if(bb){bb[0].style.width=Math.max(0,a9.outerWidth-a9.hsides)+"px"}}}function a1(ba){var bd;var bf=ba.length;var a9;var bc;var bb,bg;var be={};for(bd=0;bd<bf;bd++){a9=ba[bd];bc=a9.element;if(bc){bb=a9.key;bg=be[bb];if(bg===r){bg=be[bb]=h(bc[0])}a9.outerHeight=bc[0].offsetHeight+bg}}}function aL(){var a9;var bb=a8();var ba=[];for(a9=0;a9<bb;a9++){ba[a9]=aM(a9).find("td:first div.fc-day-content > div")}return ba}function aE(ba){var a9;var bc=ba.length;var bb=[];for(a9=0;a9<bc;a9++){bb[a9]=ba[a9][0].offsetTop}return bb}function a6(ba,bf){var bc;var be=ba.length;var a9;var bb;var bd;for(bc=0;bc<be;bc++){a9=ba[bc];bb=a9.element;if(bb){bb[0].style.top=bf[a9.row]+(a9.top||0)-7+"px";bd=a9.event;aP("eventAfterRender",bd,bd,bb)}}}function aT(bb,ba,a9){if(!aH("disableResizing")&&a9.isEnd){var be=aH("isRTL");var bd=be?"w":"e";var bc=ba.find("div.ui-resizable-"+bd);bc.mousedown(function(bo){if(bo.which!=1){return}var bj=a0.getHoverListener();var bn=a8();var bp=aY();var bh=be?-1:1;var bg=be?bp:0;var bi=ba.css("top");var bk;var bf;var bm=ai.extend({},bb);var bq=aV(bb.start);ay();ai("body").css("cursor",bd+"-resize").one("mouseup",bl);aP("eventResizeStart",this,bb,bo);bj.start(function(bs,br){if(bs){var bv=Math.max(bq.row,bs.row);var bw=bs.col;if(bn==1){bv=0}if(bv==bq.row){if(be){bw=Math.min(bq.col,bw)}else{bw=Math.max(bq.col,bw)}}bk=(bv*7+bw*bh+bg)-(br.row*7+br.col*bh+bg);var bu=aq(a5(bb),bk,true);if(bk){bm.end=bu;var bt=bf;bf=a4(az([bm]),a9.row,bi);bf.find("*").css("cursor",bd+"-resize");if(bt){bt.remove()}aG(bb)}else{if(bf){aC(bb);bf.remove();bf=null}}aD();aQ(bb.start,aq(E(bu),1))}},bo);function bl(br){aP("eventResizeStop",this,bb,br);ai("body").css("cursor","auto");bj.stop();aD();if(bk){aK(this,bb,bk,0,br)}}})}}}function ac(){var aI=this;aI.select=aG;aI.unselect=aC;aI.reportSelection=ay;aI.daySelectionMousedown=aF;var aA=aI.opt;var aB=aI.trigger;var aD=aI.defaultSelectionEnd;var az=aI.renderSelection;var aH=aI.clearSelection;var aE=false;if(aA("selectable")&&aA("unselectAuto")){ai(document).mousedown(function(aJ){var aK=aA("unselectCancel");if(aK){if(ai(aJ.target).parents(aK).length){return}}aC(aJ)})}function aG(aJ,aL,aK){aC();if(!aL){aL=aD(aJ,aK)}az(aJ,aL,aK);ay(aJ,aL,aK)}function aC(aJ){if(aE){aE=false;aH();aB("unselect",null,aJ)}}function ay(aJ,aM,aL,aK){aE=true;aB("select",null,aJ,aM,aL,aK)}function aF(aM){var aO=aI.cellDate;var aK=aI.cellIsAllDay;var aJ=aI.getHoverListener();if(aM.which==1&&aA("selectable")){aC(aM);var aL=this;var aN;aJ.start(function(aQ,aP){aH();if(aQ&&aK(aQ)){aN=[aO(aP),aO(aQ)].sort(O);az(aN[0],aN[1],true)}else{aN=null}},aM);ai(document).one("mouseup",function(aP){aJ.stop();if(aN){if(+aN[0]==+aN[1]){aB("dayClick",aL,aN[0],true,aP)}ay(aN[0],aN[1],true,aP)}})}}}function a(){var aB=this;aB.renderOverlay=az;aB.clearOverlays=ay;var aA=[];var aC=[];function az(aE,aD){var aF=aC.shift();if(!aF){aF=ai("<div class='fc-cell-overlay' style='position:absolute;z-index:3'/>")}if(aF[0].parentNode!=aD[0]){aF.appendTo(aD)}aA.push(aF.css(aE).show());return aF}function ay(){var aD;while(aD=aA.shift()){aC.push(aD.hide().unbind())}}}function G(ay){var az=this;var aA;var aB;az.build=function(){aA=[];aB=[];ay(aA,aB)};az.cell=function(aC,aI){var aH=aA.length;var aD=aB.length;var aE,aF=-1,aG=-1;for(aE=0;aE<aH;aE++){if(aI>=aA[aE][0]&&aI<aA[aE][1]){aF=aE;break}}for(aE=0;aE<aD;aE++){if(aC>=aB[aE][0]&&aC<aB[aE][1]){aG=aE;break}}return(aF>=0&&aG>=0)?{row:aF,col:aG}:null};az.rect=function(aF,aH,aD,aE,aG){var aC=aG.offset();return{top:aA[aF][0]-aC.top,left:aB[aH][0]-aC.left,width:aB[aE][1]-aB[aH][0],height:aA[aD][1]-aA[aF][0]}}}function ae(aD){var aB=this;var aC;var aE;var az;var ay;aB.start=function(aF,aG,aH){aE=aF;az=ay=null;aD.build();aA(aG);aC=aH||"mousemove";ai(document).bind(aC,aA)};function aA(aF){var aG=aD.cell(aF.pageX,aF.pageY);if(!aG!=!ay||aG&&(aG.row!=ay.row||aG.col!=ay.col)){if(aG){if(!az){az=aG}aE(aG,az,aG.row-az.row,aG.col-az.col)}else{aE(aG,az)}ay=aG}}aB.stop=function(){ai(document).unbind(aC,aA);return ay}}function j(az){var ay=this,aA={},aD={},aC={};function aB(aE){return aA[aE]=aA[aE]||az(aE)}ay.left=function(aE){return aD[aE]=aD[aE]===r?aB(aE).position().left:aD[aE]};ay.right=function(aE){return aC[aE]=aC[aE]===r?ay.left(aE)+aB(aE).width():aC[aE]};ay.clear=function(){aA={};aD={};aC={}}}ao.addDays=aq;ao.cloneDate=E;ao.parseDate=R;ao.parseISO8601=k;ao.parseTime=av;ao.formatDate=u;ao.formatDates=g;var H=["sun","mon","tue","wed","thu","fri","sat"],ak=86400000,aa=3600000,L=60000;function Y(az,aA,ay){az.setFullYear(az.getFullYear()+aA);if(!ay){b(az)}return az}function l(aB,aC,aA){if(+aB){var ay=aB.getMonth()+aC,az=E(aB);az.setDate(1);az.setMonth(ay);aB.setMonth(ay);if(!aA){b(aB)}while(aB.getMonth()!=az.getMonth()){aB.setDate(aB.getDate()+(aB<az?1:-1))}}return aB}function aq(aB,aC,aA){if(+aB){var ay=aB.getDate()+aC,az=E(aB);az.setHours(9);az.setDate(ay);aB.setDate(ay);if(!aA){b(aB)}at(aB,az)}return aB}function at(az,ay){if(+az){while(az.getDate()!=ay.getDate()){az.setTime(+az+(az<ay?1:-1)*aa)}}}function f(ay,az){ay.setMinutes(ay.getMinutes()+az);return ay}function b(ay){ay.setHours(0);ay.setMinutes(0);ay.setSeconds(0);ay.setMilliseconds(0);return ay}function E(ay,az){if(az){return b(new Date(+ay))}return new Date(+ay)}function c(){var ay=0,az;do{az=new Date(1970,ay++,1)}while(az.getHours());return az}function aw(ay,az,aA){az=az||1;while(!ay.getDay()||(aA&&ay.getDay()==1||!aA&&ay.getDay()==6)){aq(ay,az)}return ay}function an(az,ay){return Math.round((E(az,true)-E(ay,true))/ak)}function s(az,aB,ay,aA){if(aB!==r&&aB!=az.getFullYear()){az.setDate(1);az.setMonth(0);az.setFullYear(aB)}if(ay!==r&&ay!=az.getMonth()){az.setDate(1);az.setMonth(ay)}if(aA!==r){az.setDate(aA)}}function R(az,ay){if(typeof az=="object"){return az}if(typeof az=="number"){return new Date(az*1000)}if(typeof az=="string"){if(az.match(/^\d+$/)){return new Date(parseInt(az,10)*1000)}if(ay===r){ay=true}return k(az,ay)||(az?new Date(az):null)}return null}function k(aC,az){var ay=aC.match(/^([0-9]{4})(-([0-9]{2})(-([0-9]{2})([T ]([0-9]{2}):([0-9]{2})(:([0-9]{2})(\.([0-9]+))?)?(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?$/);if(!ay){return null}var aB=new Date(ay[1],0,1);if(az||!ay[14]){var aA=new Date(ay[1],0,1,9,0);if(ay[3]){aB.setMonth(ay[3]-1);aA.setMonth(ay[3]-1)}if(ay[5]){aB.setDate(ay[5]);aA.setDate(ay[5])}at(aB,aA);if(ay[7]){aB.setHours(ay[7])}if(ay[8]){aB.setMinutes(ay[8])}if(ay[10]){aB.setSeconds(ay[10])}if(ay[12]){aB.setMilliseconds(Number("0."+ay[12])*1000)}at(aB,aA)}else{aB.setUTCFullYear(ay[1],ay[3]?ay[3]-1:0,ay[5]||1);aB.setUTCHours(ay[7]||0,ay[8]||0,ay[10]||0,ay[12]?Number("0."+ay[12])*1000:0);var aD=Number(ay[16])*60+Number(ay[17]);aD*=ay[15]=="-"?1:-1;aB=new Date(+aB+(aD*60*1000))}return aB}function av(aA){if(typeof aA=="number"){return aA*60}if(typeof aA=="object"){return aA.getHours()*60+aA.getMinutes()}var ay=aA.match(/(\d+)(?::(\d+))?\s*(\w+)?/);if(ay){var az=parseInt(ay[1],10);if(ay[3]){az%=12;if(ay[3].toLowerCase().charAt(0)=="p"){az+=12}}return az*60+(ay[2]?parseInt(ay[2],10):0)}}function u(az,aA,ay){return g(az,null,aA,ay)}function g(aK,aJ,aI,aL){aL=aL||C;var az=aK,aB=aJ,aC,aD=aI.length,aF,aA,aH,aE="";for(aC=0;aC<aD;aC++){aF=aI.charAt(aC);if(aF=="'"){for(aA=aC+1;aA<aD;aA++){if(aI.charAt(aA)=="'"){if(az){if(aA==aC+1){aE+="'"}else{aE+=aI.substring(aC+1,aA)}aC=aA}break}}}else{if(aF=="("){for(aA=aC+1;aA<aD;aA++){if(aI.charAt(aA)==")"){var ay=u(az,aI.substring(aC+1,aA),aL);if(parseInt(ay.replace(/\D/,""),10)){aE+=ay}aC=aA;break}}}else{if(aF=="["){for(aA=aC+1;aA<aD;aA++){if(aI.charAt(aA)=="]"){var aG=aI.substring(aC+1,aA);var ay=u(az,aG,aL);if(ay!=u(aB,aG,aL)){aE+=ay}aC=aA;break}}}else{if(aF=="{"){az=aJ;aB=aK}else{if(aF=="}"){az=aK;aB=aJ}else{for(aA=aD;aA>aC;aA--){if(aH=am[aI.substring(aC,aA)]){if(az){aE+=aH(az,aL)}aC=aA-1;break}}if(aA==aC){if(az){aE+=aF}}}}}}}}return aE}var am={s:function(ay){return ay.getSeconds()},ss:function(ay){return S(ay.getSeconds())},m:function(ay){return ay.getMinutes()},mm:function(ay){return S(ay.getMinutes())},h:function(ay){return ay.getHours()%12||12},hh:function(ay){return S(ay.getHours()%12||12)},H:function(ay){return ay.getHours()},HH:function(ay){return S(ay.getHours())},d:function(ay){return ay.getDate()},dd:function(ay){return S(ay.getDate())},ddd:function(az,ay){return ay.dayNamesShort[az.getDay()]},dddd:function(az,ay){return ay.dayNames[az.getDay()]},M:function(ay){return ay.getMonth()+1},MM:function(ay){return S(ay.getMonth()+1)},MMM:function(az,ay){return ay.monthNamesShort[az.getMonth()]},MMMM:function(az,ay){return ay.monthNames[az.getMonth()]},yy:function(ay){return(ay.getFullYear()+"").substring(2)},yyyy:function(ay){return ay.getFullYear()},t:function(ay){return ay.getHours()<12?"a":"p"},tt:function(ay){return ay.getHours()<12?"am":"pm"},T:function(ay){return ay.getHours()<12?"A":"P"},TT:function(ay){return ay.getHours()<12?"AM":"PM"},u:function(ay){return u(ay,"yyyy-MM-dd'T'HH:mm:ss'Z'")},S:function(az){var ay=az.getDate();if(ay>10&&ay<20){return"th"}return["st","nd","rd"][ay%10-1]||"th"}};function ad(ay){if(ay.end){return m(ay.end,ay.allDay)}else{return aq(E(ay.start),1)}}function m(ay,az){ay=E(ay);return az||ay.getHours()||ay.getMinutes()?aq(ay,1):b(ay)}function p(az,ay){return(ay.msLength-az.msLength)*100+(az.event.start-ay.event.start)}function F(az,ay){return az.end>ay.start&&az.start<ay.end}function T(ay,aD,aB,aA){var aI=[],aL,aM=ay.length,aK,az,aN,aP,aC,aE,aF,aH=1000*60*60*24,aJ,aO,aG;for(aL=0;aL<aM;aL++){aK=ay[aL];az=aK.start;aN=aD[aL];if(aN>aB&&az<aA){aE=true;aF=true;if(az<aB){aP=E(aB)}else{aP=az}if(aN>aA){aC=E(aA)}else{aC=aN}aO=Math.ceil((aC-aP)/aH);for(aJ=0;aJ<aO;aJ++){aG=E(aP);aC=aq(aG,1);aI.push({event:aK,start:aP,end:aC,isStart:aE,isEnd:aF,msLength:aH});aP=aC}}}return aI.sort(p)}function X(aA){var aE=[],aD,ay=aA.length,az,aC,aF,aB;for(aD=0;aD<ay;aD++){az=aA[aD];aC=0;while(true){aF=false;if(aE[aC]){for(aB=0;aB<aE[aC].length;aB++){if(F(aE[aC][aB],az)){aF=true;break}}}if(aF){aC++}else{break}}if(aE[aC]){aE[aC].push(az)}else{aE[aC]=[az]}}return aE}function q(az,ay,aA){az.unbind("mouseover").mouseover(function(aE){var aD=aE.target,aF,aC,aB;while(aD!=this){aF=aD;aD=aD.parentNode}if((aC=aF._fci)!==r){aF._fci=r;aB=ay[aC];aA(aB.event,aB.element,aB);ai(aE.target).trigger(aE)}aE.stopPropagation()})}function aj(az,aA,ay){az.each(function(aC,aB){aB.style.width=Math.max(0,aA-e(aB,ay))+"px"})}function Q(aA,ay,az){aA.each(function(aC,aB){aB.style.height=Math.max(0,ay-x(aB,az))+"px"})}function e(az,ay){return(parseFloat(ai.curCSS(az,"paddingLeft",true))||0)+(parseFloat(ai.curCSS(az,"paddingRight",true))||0)+(parseFloat(ai.curCSS(az,"borderLeftWidth",true))||0)+(parseFloat(ai.curCSS(az,"borderRightWidth",true))||0)+(ay?W(az):0)}function W(ay){return(parseFloat(ai.curCSS(ay,"marginLeft",true))||0)+(parseFloat(ai.curCSS(ay,"marginRight",true))||0)}function x(az,ay){return(parseFloat(ai.curCSS(az,"paddingTop",true))||0)+(parseFloat(ai.curCSS(az,"paddingBottom",true))||0)+(parseFloat(ai.curCSS(az,"borderTopWidth",true))||0)+(parseFloat(ai.curCSS(az,"borderBottomWidth",true))||0)+(ay?h(az):0)}function h(ay){return(parseFloat(ai.curCSS(ay,"marginTop",true))||0)+(parseFloat(ai.curCSS(ay,"marginBottom",true))||0)}function A(ay,az){az=typeof az=="number"?az+"px":az;ay[0].style.cssText+=";min-height:"+az+";_height:"+az}var D;function K(az){if(D!==false){var ay;if(az.is("th,td")){az=(ay=az).parent()}if(D===r&&az.is("tr")){D=az.position().top!=az.children().position().top}if(D){return az.parent().position().top+(ay?az.position().top-ay.position().top:0)}}return 0}function ag(){}function O(az,ay){return az-ay}function ah(ay){return Math.max.apply(Math,ay)}function S(ay){return(ay<10?"0":"")+ay}function w(aC,ay){if(aC[ay]!==r){return aC[ay]}var aB=ay.split(/(?=[A-Z])/),aA=aB.length-1,az;for(;aA>=0;aA--){az=aC[aB[aA].toLowerCase()];if(az!==r){return az}}return aC[""]}function au(ay){return ay.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function z(ay){return ay.id+"/"+ay.className+"/"+ay.style.cssText.replace(/(^|;)\s*(top|left|width|height)\s*:[^;]*/ig,"")}function ax(ay){ay.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})}})(jQuery);(function(a){a.fullCalendar.gcalFeed=function(c,b){c=c.replace(/\/basic$/,"/full");b=b||{};return function(h,d,g){var e={"start-min":a.fullCalendar.formatDate(h,"u"),"start-max":a.fullCalendar.formatDate(d,"u"),singleevents:true,"max-results":9999};var f=b.currentTimezone;if(f){e.ctz=f=f.replace(" ","_")}a.getJSON(c+"?alt=json-in-script&callback=?",e,function(k){var j=[];if(k.feed.entry){a.each(k.feed.entry,function(o,p){var m=p["gd$when"][0]["startTime"],r=a.fullCalendar.parseISO8601(m,true),l=a.fullCalendar.parseISO8601(p["gd$when"][0]["endTime"],true),q=m.indexOf("T")==-1,n;a.each(p.link,function(){if(this.type=="text/html"){n=this.href;if(f){n+=(n.indexOf("?")==-1?"?":"&")+"ctz="+f}}});if(q){a.fullCalendar.addDays(l,-1)}j.push({id:p["gCal$uid"]["value"],title:p.title["$t"],url:n,start:r,end:l,allDay:q,location:p["gd$where"][0]["valueString"],description:p.content["$t"],className:b.className,editable:b.editable||false})})}g(j)})}}})(jQuery);(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var c=a.data(this[0],"validator");if(c){return c}c=new a.validator(b,this[0]);a.data(this[0],"validator",c);if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true});if(c.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){c.submitButton=this})}this.submit(function(d){if(c.settings.debug){d.preventDefault()}function e(){if(c.settings.submitHandler){if(c.submitButton){var f=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm)}c.settings.submitHandler.call(c,c.currentForm);if(c.submitButton){f.remove()}return false}return true}if(c.cancelSubmit){c.cancelSubmit=false;return e()}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;return false}return e()}else{c.focusInvalid();return false}})}return c},valid:function(){if(a(this[0]).is("form")){return this.validate().form()}else{var c=true;var b=a(this[0].form).validate();this.each(function(){c&=b.element(this)});return c}},removeAttrs:function(d){var b={},c=this;a.each(d.split(/\s/),function(e,f){b[f]=c.attr(f);c.removeAttr(f)});return b},rules:function(e,b){var g=this[0];if(e){var d=a.data(g.form,"validator").settings;var j=d.rules;var k=a.validator.staticRules(g);switch(e){case"add":a.extend(k,a.validator.normalizeRule(b));j[g.name]=k;if(b.messages){d.messages[g.name]=a.extend(d.messages[g.name],b.messages)}break;case"remove":if(!b){delete j[g.name];return k}var h={};a.each(b.split(/\s/),function(l,m){h[m]=k[m];delete k[m]});return h}}var f=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(g),a.validator.classRules(g),a.validator.attributeRules(g),a.validator.staticRules(g)),g);if(f.required){var c=f.required;delete f.required;f=a.extend({required:c},f)}return f}});a.extend(a.expr[":"],{blank:function(b){return !a.trim(""+b.value)},filled:function(b){return !!a.trim(""+b.value)},unchecked:function(b){return !b.checked}});a.validator=function(b,c){this.settings=a.extend(true,{},a.validator.defaults,b);this.currentForm=c;this.init()};a.validator.format=function(b,c){if(arguments.length==1){return function(){var d=a.makeArray(arguments);d.unshift(b);return a.validator.format.apply(this,d)}}if(arguments.length>2&&c.constructor!=Array){c=a.makeArray(arguments).slice(1)}if(c.constructor!=Array){c=[c]}a.each(c,function(d,e){b=b.replace(new RegExp("\\{"+d+"\\}","g"),e)});return b};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(b){this.lastActive=b;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(b)).hide()}},onfocusout:function(b){if(!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))){this.element(b)}},onkeyup:function(b){if(b.name in this.submitted||b==this.lastElement){this.element(b)}},onclick:function(b){if(b.name in this.submitted){this.element(b)}else{if(b.parentNode.name in this.submitted){this.element(b.parentNode)}}},highlight:function(d,b,c){a(d).addClass(b).removeClass(c)},unhighlight:function(d,b,c){a(d).removeClass(b).addClass(c)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=(this.groups={});a.each(this.settings.groups,function(e,f){a.each(f.split(/\s/),function(h,g){b[g]=e})});var d=this.settings.rules;a.each(d,function(e,f){d[e]=a.validator.normalizeRule(f)});function c(g){var f=a.data(this[0].form,"validator"),e="on"+g.type.replace(/^validate/,"");f.settings[e]&&f.settings[e].call(f,this[0])}a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",c).validateDelegate(":radio, :checkbox, select, option","click",c);if(this.settings.invalidHandler){a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)}},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);if(!this.valid()){a(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var b=0,c=(this.currentElements=this.elements());c[b];b++){this.check(c[b])}return this.valid()},element:function(c){c=this.clean(c);this.lastElement=c;this.prepareElement(c);this.currentElements=a(c);var b=this.check(c);if(b){delete this.invalid[c.name]}else{this.invalid[c.name]=true}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return b},showErrors:function(c){if(c){a.extend(this.errorMap,c);this.errorList=[];for(var b in c){this.errorList.push({message:c[b],element:this.findByName(b)[0]})}this.successList=a.grep(this.successList,function(d){return !(d.name in c)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(a.fn.resetForm){a(this.currentForm).resetForm()}this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(d){var c=0;for(var b in d){c++}return c},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(c){return c.element.name==b.name}).length==1&&b},elements:function(){var c=this,b={};return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!c.objectLength(a(this).rules())){return false}b[this.name]=true;return true})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset();this.toHide=this.errorsFor(b)},check:function(c){c=this.clean(c);if(this.checkable(c)){c=this.findByName(c.name).not(this.settings.ignore)[0]}var h=a(c).rules();var d=false;for(var j in h){var g={method:j,parameters:h[j]};try{var b=a.validator.methods[j].call(this,c.value.replace(/\r/g,""),c,g.parameters);if(b=="dependency-mismatch"){d=true;continue}d=false;if(b=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));return}if(!b){this.formatAndAdd(c,g);return false}}catch(f){this.settings.debug&&window.console&&console.log("exception occured when checking element "+c.id+", check the '"+g.method+"' method",f);throw f}}if(d){return}if(this.objectLength(h)){this.successList.push(c)}return true},customMetaMessage:function(b,d){if(!a.metadata){return}var c=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();return c&&c.messages&&c.messages[d]},customMessage:function(c,d){var b=this.settings.messages[c];return b&&(b.constructor==String?b:b[d])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(arguments[b]!==undefined){return arguments[b]}}return undefined},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customMetaMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(c,e){var d=this.defaultMessage(c,e.method),b=/\$?\{(\d+)\}/g;if(typeof d=="function"){d=d.call(this,e.parameters,c)}else{if(b.test(d)){d=jQuery.format(d.replace(b,"{$1}"),e.parameters)}}this.errorList.push({message:d,element:c});this.errorMap[c.name]=d;this.submitted[c.name]=d},addWrapper:function(b){if(this.settings.wrapper){b=b.add(b.parent(this.settings.wrapper))}return b},defaultShowErrors:function(){for(var c=0;this.errorList[c];c++){var b=this.errorList[c];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(var c=0;this.successList[c];c++){this.showLabel(this.successList[c])}}if(this.settings.unhighlight){for(var c=0,d=this.validElements();d[c];c++){this.settings.unhighlight.call(this,d[c],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(c,d){var b=this.errorsFor(c);if(b.length){b.removeClass().addClass(this.settings.errorClass);b.attr("generated")&&b.html(d)}else{b=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(c),generated:true}).addClass(this.settings.errorClass).html(d||"");if(this.settings.wrapper){b=b.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}if(!this.labelContainer.append(b).length){this.settings.errorPlacement?this.settings.errorPlacement(b,a(c)):b.insertAfter(c)}}if(!d&&this.settings.success){b.text("");typeof this.settings.success=="string"?b.addClass(this.settings.success):this.settings.success(b)}this.toShow=this.toShow.add(b)},errorsFor:function(c){var b=this.idOrName(c);return this.errors().filter(function(){return a(this).attr("for")==b})},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(b){var c=this.currentForm;return a(document.getElementsByName(b)).map(function(d,e){return e.form==c&&e.name==b&&e||null})},getLength:function(c,b){switch(b.nodeName.toLowerCase()){case"select":return a("option:selected",b).length;case"input":if(this.checkable(b)){return this.findByName(b.name).filter(":checked").length}}return c.length},depend:function(c,b){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,b):true},dependTypes:{"boolean":function(c,b){return c},string:function(c,b){return !!a(c,b.form).length},"function":function(c,b){return c(b)}},optional:function(b){return !a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(b){if(!this.pending[b.name]){this.pendingRequest++;this.pending[b.name]=true}},stopRequest:function(b,c){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[b.name];if(c&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit();this.formSubmitted=false}else{if(!c&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:true,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(c){var d={};var b=a(c).attr("class");b&&a.each(b.split(" "),function(){if(this in a.validator.classRuleSettings){a.extend(d,a.validator.classRuleSettings[this])}});return d},attributeRules:function(c){var e={};var b=a(c);for(var f in a.validator.methods){var d=b.attr(f);if(d){e[f]=d}}if(e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)){delete e.maxlength}return e},metadataRules:function(b){if(!a.metadata){return{}}var c=a.data(b.form,"validator").settings.meta;return c?a(b).metadata()[c]:a(b).metadata()},staticRules:function(c){var d={};var b=a.data(c.form,"validator");if(b.settings.rules){d=a.validator.normalizeRule(b.settings.rules[c.name])||{}}return d},normalizeRules:function(c,b){a.each(c,function(f,e){if(e===false){delete c[f];return}if(e.param||e.depends){var d=true;switch(typeof e.depends){case"string":d=!!a(e.depends,b.form).length;break;case"function":d=e.depends.call(b,b);break}if(d){c[f]=e.param!==undefined?e.param:true}else{delete c[f]}}});a.each(c,function(d,e){c[d]=a.isFunction(e)?e(b):e});a.each(["minlength","maxlength","min","max"],function(){if(c[this]){c[this]=Number(c[this])}});a.each(["rangelength","range"],function(){if(c[this]){c[this]=[Number(c[this][0]),Number(c[this][1])]}});if(a.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];delete c.min;delete c.max}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];delete c.minlength;delete c.maxlength}}if(c.messages){delete c.messages}return c},normalizeRule:function(c){if(typeof c=="string"){var b={};a.each(c.split(/\s/),function(){b[this]=true});c=b}return c},addMethod:function(b,d,c){a.validator.methods[b]=d;a.validator.messages[b]=c!=undefined?c:a.validator.messages[b];if(d.length<3){a.validator.addClassRules(b,a.validator.normalizeRule(b))}},methods:{required:function(c,b,e){if(!this.depend(e,b)){return"dependency-mismatch"}switch(b.nodeName.toLowerCase()){case"select":var d=a(b).val();return d&&d.length>0;case"input":if(this.checkable(b)){return this.getLength(c,b)>0}default:return a.trim(c).length>0}},remote:function(f,c,g){if(this.optional(c)){return"dependency-mismatch"}var d=this.previousValue(c);if(!this.settings.messages[c.name]){this.settings.messages[c.name]={}}d.originalMessage=this.settings.messages[c.name].remote;this.settings.messages[c.name].remote=d.message;g=typeof g=="string"&&{url:g}||g;if(this.pending[c.name]){return"pending"}if(d.old===f){return d.valid}d.old=f;var b=this;this.startRequest(c);var e={};e[c.name]=f;a.ajax(a.extend(true,{url:g,mode:"abort",port:"validate"+c.name,dataType:"json",data:e,success:function(j){b.settings.messages[c.name].remote=d.originalMessage;var l=j===true;if(l){var h=b.formSubmitted;b.prepareElement(c);b.formSubmitted=h;b.successList.push(c);b.showErrors()}else{var m={};var k=j||b.defaultMessage(c,"remote");m[c.name]=d.message=a.isFunction(k)?k(f):k;b.showErrors(m)}d.valid=l;b.stopRequest(c,l)}},g));return"pending"},minlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)>=d},maxlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)<=d},rangelength:function(d,b,e){var c=this.getLength(a.trim(d),b);return this.optional(b)||(c>=e[0]&&c<=e[1])},min:function(c,b,d){return this.optional(b)||c>=d},max:function(c,b,d){return this.optional(b)||c<=d},range:function(c,b,d){return this.optional(b)||(c>=d[0]&&c<=d[1])},email:function(c,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(c)},url:function(c,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},date:function(c,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(c))},dateISO:function(c,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(c)},number:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(c)},digits:function(c,b){return this.optional(b)||/^\d+$/.test(c)},creditcard:function(f,c){if(this.optional(c)){return"dependency-mismatch"}if(/[^0-9-]+/.test(f)){return false}var g=0,e=0,b=false;f=f.replace(/\D/g,"");for(var h=f.length-1;h>=0;h--){var d=f.charAt(h);var e=parseInt(d,10);if(b){if((e*=2)>9){e-=9}}g+=e;b=!b}return(g%10)==0},accept:function(c,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||c.match(new RegExp(".("+d+")$","i"))},equalTo:function(c,b,e){var d=a(e).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(b).valid()});return c==d.val()}}});a.format=a.validator.format})(jQuery);(function(c){var a={};if(c.ajaxPrefilter){c.ajaxPrefilter(function(f,e,g){var d=f.port;if(f.mode=="abort"){if(a[d]){a[d].abort()}a[d]=g}})}else{var b=c.ajax;c.ajax=function(e){var f=("mode" in e?e:c.ajaxSettings).mode,d=("port" in e?e:c.ajaxSettings).port;if(f=="abort"){if(a[d]){a[d].abort()}return(a[d]=b.apply(this,arguments))}return b.apply(this,arguments)}}})(jQuery);(function(a){if(!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener){a.each({focus:"focusin",blur:"focusout"},function(c,b){a.event.special[b]={setup:function(){this.addEventListener(c,d,true)},teardown:function(){this.removeEventListener(c,d,true)},handler:function(f){arguments[0]=a.event.fix(f);arguments[0].type=b;return a.event.handle.apply(this,arguments)}};function d(f){f=a.event.fix(f);f.type=b;return a.event.handle.call(this,f)}})}a.extend(a.fn,{validateDelegate:function(d,c,b){return this.bind(c,function(e){var f=a(e.target);if(f.is(d)){return b.apply(f,arguments)}})}})})(jQuery);function verify(a,b){if(jQuery(a).parent().find(".captchaFormResponse").val()==""){Recaptcha.create(b.key,"captcha",{custom_translations:{instructions_visual:b.instructions_visual,instructions_audio:b.instructions_audio,play_again:b.play_again,cant_hear_this:b.cant_hear_this,visual_challenge:b.visual_challenge,audio_challenge:b.audio_challenge,refresh_btn:b.refresh_btn,help_btn:b.help_btn,incorrect_try_again:b.incorrect_try_again},theme:"white",tabindex:0,closeOnEscape:false,callback:function(){jQuery("#recaptcha_response_field").focus();jQuery("#recaptcha_response_field").keypress(function(f){code=(f.keyCode?f.keyCode:f.which);if(code==13){var d=jQuery("#recaptcha_challenge_field").val();var c=jQuery("#recaptcha_response_field").val();jQuery(a).parent().find(".captchaFormResponse").val(c);jQuery(a).parent().find(".captchaFormChallenge").val(d);jQuery(a).parent().submit()}})}});jQuery("#captcha").dialog({height:235,width:350,buttons:{Ok:function(){var d=jQuery("#recaptcha_challenge_field").val();var c=jQuery("#recaptcha_response_field").val();jQuery(a).parent().find(".captchaFormResponse").val(c);jQuery(a).parent().find(".captchaFormChallenge").val(d);jQuery(a).parent().submit();jQuery(this).dialog("close")}},resizable:false,draggable:false,closeText:"hide",open:function(c,d){jQuery(".ui-widget-content").css({background:"white"});jQuery(".ui-widget-header").css({background:"#3357AC"})},title:b.title,modal:true,close:function(c,d){jQuery(a).find(".captchaFormResponse").val("")}})}}function verify2(a,b){if(jQuery(a).find(".captchaFormResponse").val()==""){Recaptcha.destroy();Recaptcha.create(b.key,"captcha",{custom_translations:{instructions_visual:b.instructions_visual,instructions_audio:b.instructions_audio,play_again:b.play_again,cant_hear_this:b.cant_hear_this,visual_challenge:b.visual_challenge,audio_challenge:b.audio_challenge,refresh_btn:b.refresh_btn,help_btn:b.help_btn,incorrect_try_again:b.incorrect_try_again},theme:"white",tabindex:0,closeOnEscape:false,callback:function(){jQuery("#recaptcha_response_field").focus();jQuery("#recaptcha_response_field").keypress(function(f){code=(f.keyCode?f.keyCode:f.which);if(code==13){var d=jQuery("#recaptcha_challenge_field").val();var c=jQuery("#recaptcha_response_field").val();jQuery(a).find(".captchaFormResponse").val(c);jQuery(a).find(".captchaFormChallenge").val(d);sendMailDialogData(a)}})}});jQuery("#captcha").dialog({height:235,width:350,buttons:{Ok:function(){var d=jQuery("#recaptcha_challenge_field").val();var c=jQuery("#recaptcha_response_field").val();jQuery(a).find(".captchaFormResponse").val(c);jQuery(a).find(".captchaFormChallenge").val(d);sendMailDialogData(a);jQuery(this).dialog("close")}},resizable:false,draggable:false,closeText:"hide",open:function(c,d){jQuery(".ui-widget-content").css({background:"white"});jQuery(".ui-widget-header").css({background:"#3357AC"})},title:b.title,modal:true,close:function(c,d){jQuery(a).find(".captchaFormResponse").val("")}})}};
