/*
 * 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(A2,A1){function Aj(B,E,P){if(P===A1&&B.nodeType===1){P=B.getAttribute("data-"+E);if(typeof P==="string"){try{P=P==="true"?true:P==="false"?false:P==="null"?null:!C.isNaN(P)?parseFloat(P):d.test(P)?C.parseJSON(P):P}catch(S){}C.data(B,E,P)}else{P=A1}}return P}function AY(){return false}function Aq(){return true}function Ak(B,E,P){P[0].type=B;return C.event.handle.apply(E,P)}function e(U){var V,X,Y,Z,A3,S,P,T,B,t,W,E=[];Z=[];A3=C.data(this,this.nodeType?"events":"__events__");if(typeof A3==="function"){A3=A3.events}if(!(U.liveFired===this||!A3||!A3.live||U.button&&U.type==="click")){if(U.namespace){W=RegExp("(^|\\.)"+U.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}U.liveFired=this;var c=A3.live.slice(0);for(P=0;P<c.length;P++){A3=c[P];A3.origType.replace(AS,"")===U.type?Z.push(A3.selector):c.splice(P--,1)}Z=C(U.target).closest(Z,U.currentTarget);T=0;for(B=Z.length;T<B;T++){t=Z[T];for(P=0;P<c.length;P++){A3=c[P];if(t.selector===A3.selector&&(!W||W.test(A3.namespace))){S=t.elem;Y=null;if(A3.preType==="mouseenter"||A3.preType==="mouseleave"){U.type=A3.preType;Y=C(U.relatedTarget).closest(A3.selector)[0]}if(!Y||Y!==S){E.push({elem:S,handleObj:A3,level:t.level})}}}}T=0;for(B=E.length;T<B;T++){Z=E[T];if(X&&Z.level>X){break}U.currentTarget=Z.elem;U.data=Z.handleObj.data;U.handleObj=Z.handleObj;W=Z.handleObj.origHandler.apply(Z.elem,arguments);if(W===false||U.isPropagationStopped()){X=Z.level;if(W===false){V=false}if(U.isImmediatePropagationStopped()){break}}}return V}}function AT(B,E){return(B&&B!=="*"?B+".":"")+E.replace(f,"`").replace(g,"&")}function Al(B,E,P){if(C.isFunction(E)){return C.grep(B,function(U,T){return !!E.call(U,T,U)===P})}else{if(E.nodeType){return C.grep(B,function(T){return T===E===P})}else{if(typeof E==="string"){var S=C.grep(B,function(T){return T.nodeType===1});if(h.test(E)){return C.filter(E,S,!P)}else{E=C.filter(E,S)}}}}return C.grep(B,function(T){return C.inArray(T,E)>=0===P})}function Am(B,E){var P=0;E.each(function(){if(this.nodeName===(B[P]&&B[P].nodeName)){var T=C.data(B[P++]),U=C.data(this,T);if(T=T&&T.events){delete U.handle;U.events={};for(var S in T){for(var V in T[S]){C.event.add(this,S,T[S][V],T[S][V].data)}}}}})}function k(B,E){E.src?C.ajax({url:E.src,async:false,dataType:"script"}):C.globalEval(E.text||E.textContent||E.innerHTML||"");E.parentNode&&E.parentNode.removeChild(E)}function An(B,E,P){var S=E==="width"?B.offsetWidth:B.offsetHeight;if(P==="border"){return S}C.each(E==="width"?J:K,function(){P||(S-=parseFloat(C.css(B,"padding"+this))||0);if(P==="margin"){S+=parseFloat(C.css(B,"margin"+this))||0}else{S-=parseFloat(C.css(B,"border"+this+"Width"))||0}});return S}function Ar(B,E,P,S){if(C.isArray(E)&&E.length){C.each(E,function(U,T){P||L.test(B)?S(B,T):Ar(B+"["+(typeof T==="object"||C.isArray(T)?U:"")+"]",T,P,S)})}else{if(!P&&E!=null&&typeof E==="object"){C.isEmptyObject(E)?S(B,""):C.each(E,function(U,T){Ar(B+"["+U+"]",T,P,S)})}else{S(B,E)}}}function AW(B,E){var P={};C.each(y.concat.apply([],y.slice(0,E)),function(){P[this]=B});return P}function z(B){if(!As[B]){var E=C("<"+B+">").appendTo("body"),P=E.css("display");E.remove();if(P==="none"||P===""){P="block"}As[B]=P}return As[B]}function At(B){return C.isWindow(B)?B:B.nodeType===9?B.defaultView||B.parentWindow:false}var A=A2.document,C=function(){function A3(){if(!A4.isReady){try{A.documentElement.doScroll("left")}catch(Bl){setTimeout(A3,1);return}A4.ready()}}var A4=function(Bm,Bl){return new A4.fn.init(Bm,Bl)},A5=A2.jQuery,A6=A2.$,A7,V=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,Y=/\S/,X=/^\s+/,t=/\s+$/,Bk=/\W/,S=/\d/,Bf=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Bh=/^[\],:{}\s]*$/,Ba=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,U=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,A9=/(?:^|:|,)(?:\s*\[)+/g,Bb=/(webkit)[ \/]([\w.]+)/,A8=/(opera)(?:.*version)?[ \/]([\w.]+)/,W=/(msie) ([\w.]+)/,c=/(mozilla)(?:.*? rv:([\w.]+))?/,Z=navigator.userAgent,E=false,P=[],T,B=Object.prototype.toString,Bj=Object.prototype.hasOwnProperty,Bc=Array.prototype.push,Bd=Array.prototype.slice,Be=String.prototype.trim,Bi=Array.prototype.indexOf,Bg={};A4.fn=A4.prototype={init:function(Bp,Bl){var Bn,Bm,Bo;if(!Bp){return this}if(Bp.nodeType){this.context=this[0]=Bp;this.length=1;return this}if(Bp==="body"&&!Bl&&A.body){this.context=A;this[0]=A.body;this.selector="body";this.length=1;return this}if(typeof Bp==="string"){if((Bn=V.exec(Bp))&&(Bn[1]||!Bl)){if(Bn[1]){Bo=Bl?Bl.ownerDocument||Bl:A;if(Bm=Bf.exec(Bp)){if(A4.isPlainObject(Bl)){Bp=[A.createElement(Bm[1])];A4.fn.attr.call(Bp,Bl,true)}else{Bp=[Bo.createElement(Bm[1])]}}else{Bm=A4.buildFragment([Bn[1]],[Bo]);Bp=(Bm.cacheable?Bm.fragment.cloneNode(true):Bm.fragment).childNodes}return A4.merge(this,Bp)}else{if((Bm=A.getElementById(Bn[2]))&&Bm.parentNode){if(Bm.id!==Bn[2]){return A7.find(Bp)}this.length=1;this[0]=Bm}this.context=A;this.selector=Bp;return this}}else{if(!Bl&&!Bk.test(Bp)){this.selector=Bp;this.context=A;Bp=A.getElementsByTagName(Bp);return A4.merge(this,Bp)}else{return !Bl||Bl.jquery?(Bl||A7).find(Bp):A4(Bl).find(Bp)}}}else{if(A4.isFunction(Bp)){return A7.ready(Bp)}}if(Bp.selector!==A1){this.selector=Bp.selector;this.context=Bp.context}return A4.makeArray(Bp,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return Bd.call(this,0)},get:function(Bl){return Bl==null?this.toArray():Bl<0?this.slice(Bl)[0]:this[Bl]},pushStack:function(Bo,Bl,Bn){var Bm=A4();A4.isArray(Bo)?Bc.apply(Bm,Bo):A4.merge(Bm,Bo);Bm.prevObject=this;Bm.context=this.context;if(Bl==="find"){Bm.selector=this.selector+(this.selector?" ":"")+Bn}else{if(Bl){Bm.selector=this.selector+"."+Bl+"("+Bn+")"}}return Bm},each:function(Bm,Bl){return A4.each(this,Bm,Bl)},ready:function(Bl){A4.bindReady();if(A4.isReady){Bl.call(A,A4)}else{P&&P.push(Bl)}return this},eq:function(Bl){return Bl===-1?this.slice(Bl):this.slice(Bl,+Bl+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Bd.apply(this,arguments),"slice",Bd.call(arguments).join(","))},map:function(Bl){return this.pushStack(A4.map(this,function(Bm,Bn){return Bl.call(Bm,Bn,Bm)}))},end:function(){return this.prevObject||A4(null)},push:Bc,sort:[].sort,splice:[].splice};A4.fn.init.prototype=A4.fn;A4.extend=A4.fn.extend=function(){var Bl,Bs,Bt,Bo,Bq,Bm=arguments[0]||{},Br=1,Bn=arguments.length,Bp=false;if(typeof Bm==="boolean"){Bp=Bm;Bm=arguments[1]||{};Br=2}if(typeof Bm!=="object"&&!A4.isFunction(Bm)){Bm={}}if(Bn===Br){Bm=this;--Br}for(;Br<Bn;Br++){if((Bl=arguments[Br])!=null){for(Bs in Bl){Bt=Bm[Bs];Bo=Bl[Bs];if(Bm!==Bo){if(Bp&&Bo&&(A4.isPlainObject(Bo)||(Bq=A4.isArray(Bo)))){if(Bq){Bq=false;Bt=Bt&&A4.isArray(Bt)?Bt:[]}else{Bt=Bt&&A4.isPlainObject(Bt)?Bt:{}}Bm[Bs]=A4.extend(Bp,Bt,Bo)}else{if(Bo!==A1){Bm[Bs]=Bo}}}}}}return Bm};A4.extend({noConflict:function(Bl){A2.$=A6;if(Bl){A2.jQuery=A5}return A4},isReady:false,readyWait:1,ready:function(Bn){Bn===true&&A4.readyWait--;if(!A4.readyWait||Bn!==true&&!A4.isReady){if(!A.body){return setTimeout(A4.ready,1)}A4.isReady=true;if(!(Bn!==true&&--A4.readyWait>0)){if(P){var Bl=0,Bm=P;for(P=null;Bn=Bm[Bl++];){Bn.call(A,A4)}A4.fn.trigger&&A4(A).trigger("ready").unbind("ready")}}}},bindReady:function(){if(!E){E=true;if(A.readyState==="complete"){return setTimeout(A4.ready,1)}if(A.addEventListener){A.addEventListener("DOMContentLoaded",T,false);A2.addEventListener("load",A4.ready,false)}else{if(A.attachEvent){A.attachEvent("onreadystatechange",T);A2.attachEvent("onload",A4.ready);var Bm=false;try{Bm=A2.frameElement==null}catch(Bl){}A.documentElement.doScroll&&Bm&&A3()}}}},isFunction:function(Bl){return A4.type(Bl)==="function"},isArray:Array.isArray||function(Bl){return A4.type(Bl)==="array"},isWindow:function(Bl){return Bl&&typeof Bl==="object"&&"setInterval" in Bl},isNaN:function(Bl){return Bl==null||!S.test(Bl)||isNaN(Bl)},type:function(Bl){return Bl==null?String(Bl):Bg[B.call(Bl)]||"object"},isPlainObject:function(Bm){if(!Bm||A4.type(Bm)!=="object"||Bm.nodeType||A4.isWindow(Bm)){return false}if(Bm.constructor&&!Bj.call(Bm,"constructor")&&!Bj.call(Bm.constructor.prototype,"isPrototypeOf")){return false}for(var Bl in Bm){}return Bl===A1||Bj.call(Bm,Bl)},isEmptyObject:function(Bm){for(var Bl in Bm){return false}return true},error:function(Bl){throw Bl},parseJSON:function(Bl){if(typeof Bl!=="string"||!Bl){return null}Bl=A4.trim(Bl);if(Bh.test(Bl.replace(Ba,"@").replace(U,"]").replace(A9,""))){return A2.JSON&&A2.JSON.parse?A2.JSON.parse(Bl):(new Function("return "+Bl))()}else{A4.error("Invalid JSON: "+Bl)}},noop:function(){},globalEval:function(Bn){if(Bn&&Y.test(Bn)){var Bl=A.getElementsByTagName("head")[0]||A.documentElement,Bm=A.createElement("script");Bm.type="text/javascript";if(A4.support.scriptEval){Bm.appendChild(A.createTextNode(Bn))}else{Bm.text=Bn}Bl.insertBefore(Bm,Bl.firstChild);Bl.removeChild(Bm)}},nodeName:function(Bm,Bl){return Bm.nodeName&&Bm.nodeName.toUpperCase()===Bl.toUpperCase()},each:function(Bq,Bm,Bo){var Bn,Bp=0,Bl=Bq.length,Br=Bl===A1||A4.isFunction(Bq);if(Bo){if(Br){for(Bn in Bq){if(Bm.apply(Bq[Bn],Bo)===false){break}}}else{for(;Bp<Bl;){if(Bm.apply(Bq[Bp++],Bo)===false){break}}}}else{if(Br){for(Bn in Bq){if(Bm.call(Bq[Bn],Bn,Bq[Bn])===false){break}}}else{for(Bo=Bq[0];Bp<Bl&&Bm.call(Bo,Bp,Bo)!==false;Bo=Bq[++Bp]){}}}return Bq},trim:Be?function(Bl){return Bl==null?"":Be.call(Bl)}:function(Bl){return Bl==null?"":Bl.toString().replace(X,"").replace(t,"")},makeArray:function(Bo,Bl){var Bn=Bl||[];if(Bo!=null){var Bm=A4.type(Bo);Bo.length==null||Bm==="string"||Bm==="function"||Bm==="regexp"||A4.isWindow(Bo)?Bc.call(Bn,Bo):A4.merge(Bn,Bo)}return Bn},inArray:function(Bo,Bl){if(Bl.indexOf){return Bl.indexOf(Bo)}for(var Bn=0,Bm=Bl.length;Bn<Bm;Bn++){if(Bl[Bn]===Bo){return Bn}}return -1},merge:function(Bp,Bl){var Bn=Bp.length,Bm=0;if(typeof Bl.length==="number"){for(var Bo=Bl.length;Bm<Bo;Bm++){Bp[Bn++]=Bl[Bm]}}else{for(;Bl[Bm]!==A1;){Bp[Bn++]=Bl[Bm++]}}Bp.length=Bn;return Bp},grep:function(Bq,Bm,Bo){var Bn=[],Bp;Bo=!!Bo;for(var Bl=0,Br=Bq.length;Bl<Br;Bl++){Bp=!!Bm(Bq[Bl],Bl);Bo!==Bp&&Bn.push(Bq[Bl])}return Bn},map:function(Bq,Bm,Bo){for(var Bn=[],Bp,Bl=0,Br=Bq.length;Bl<Br;Bl++){Bp=Bm(Bq[Bl],Bl,Bo);if(Bp!=null){Bn[Bn.length]=Bp}}return Bn.concat.apply([],Bn)},guid:1,proxy:function(Bn,Bl,Bm){if(arguments.length===2){if(typeof Bl==="string"){Bm=Bn;Bn=Bm[Bl];Bl=A1}else{if(Bl&&!A4.isFunction(Bl)){Bm=Bl;Bl=A1}}}if(!Bl&&Bn){Bl=function(){return Bn.apply(Bm||this,arguments)}}if(Bn){Bl.guid=Bn.guid=Bn.guid||Bl.guid||A4.guid++}return Bl},access:function(Bl,Br,Bs,Bo,Bp,Bm){var Bq=Bl.length;if(typeof Br==="object"){for(var Bn in Br){A4.access(Bl,Bn,Br[Bn],Bo,Bp,Bs)}return Bl}if(Bs!==A1){Bo=!Bm&&Bo&&A4.isFunction(Bs);for(Bn=0;Bn<Bq;Bn++){Bp(Bl[Bn],Br,Bo?Bs.call(Bl[Bn],Bn,Bp(Bl[Bn],Br)):Bs,Bm)}return Bl}return Bq?Bp(Bl[0],Br):A1},now:function(){return(new Date).getTime()},uaMatch:function(Bl){Bl=Bl.toLowerCase();Bl=Bb.exec(Bl)||A8.exec(Bl)||W.exec(Bl)||Bl.indexOf("compatible")<0&&c.exec(Bl)||[];return{browser:Bl[1]||"",version:Bl[2]||"0"}},browser:{}});A4.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(Bm,Bl){Bg["[object "+Bl+"]"]=Bl.toLowerCase()});Z=A4.uaMatch(Z);if(Z.browser){A4.browser[Z.browser]=true;A4.browser.version=Z.version}if(A4.browser.webkit){A4.browser.safari=true}if(Bi){A4.inArray=function(Bm,Bl){return Bi.call(Bl,Bm)}}if(!/\s/.test("\u00a0")){X=/^[\s\xA0]+/;t=/[\s\xA0]+$/}A7=A4(A);if(A.addEventListener){T=function(){A.removeEventListener("DOMContentLoaded",T,false);A4.ready()}}else{if(A.attachEvent){T=function(){if(A.readyState==="complete"){A.detachEvent("onreadystatechange",T);A4.ready()}}}}return A2.jQuery=A2.$=A4}();(function(){C.support={};var T=A.documentElement,U=A.createElement("script"),V=A.createElement("div"),W="script"+C.now();V.style.display="none";V.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var X=V.getElementsByTagName("*"),Z=V.getElementsByTagName("a")[0],P=A.createElement("select"),E=P.appendChild(A.createElement("option"));if(!(!X||!X.length||!Z)){C.support={leadingWhitespace:V.firstChild.nodeType===3,tbody:!V.getElementsByTagName("tbody").length,htmlSerialize:!!V.getElementsByTagName("link").length,style:/red/.test(Z.getAttribute("style")),hrefNormalized:Z.getAttribute("href")==="/a",opacity:/^0.55$/.test(Z.style.opacity),cssFloat:!!Z.style.cssFloat,checkOn:V.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};P.disabled=true;C.support.optDisabled=!E.disabled;U.type="text/javascript";try{U.appendChild(A.createTextNode("window."+W+"=1;"))}catch(S){}T.insertBefore(U,T.firstChild);if(A2[W]){C.support.scriptEval=true;delete A2[W]}try{delete U.test}catch(B){C.support.deleteExpando=false}T.removeChild(U);if(V.attachEvent&&V.fireEvent){V.attachEvent("onclick",function Y(){C.support.noCloneEvent=false;V.detachEvent("onclick",Y)});V.cloneNode(true).fireEvent("onclick")}V=A.createElement("div");V.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";T=A.createDocumentFragment();T.appendChild(V.firstChild);C.support.checkClone=T.cloneNode(true).cloneNode(true).lastChild.checked;C(function(){var c=A.createElement("div");c.style.width=c.style.paddingLeft="1px";A.body.appendChild(c);C.boxModel=C.support.boxModel=c.offsetWidth===2;if("zoom" in c.style){c.style.display="inline";c.style.zoom=1;C.support.inlineBlockNeedsLayout=c.offsetWidth===2;c.style.display="";c.innerHTML="<div style='width:4px;'></div>";C.support.shrinkWrapBlocks=c.offsetWidth!==2}c.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var t=c.getElementsByTagName("td");C.support.reliableHiddenOffsets=t[0].offsetHeight===0;t[0].style.display="";t[1].style.display="none";C.support.reliableHiddenOffsets=C.support.reliableHiddenOffsets&&t[0].offsetHeight===0;c.innerHTML="";A.body.removeChild(c).style.display="none"});T=function(c){var t=A.createElement("div");c="on"+c;var A3=c in t;if(!A3){t.setAttribute(c,"return;");A3=typeof t[c]==="function"}return A3};C.support.submitBubbles=T("submit");C.support.changeBubbles=T("change");T=U=V=X=Z=null}})();var Aa={},d=/^(?:\{.*\}|\[.*\])$/;C.extend({cache:{},uuid:0,expando:"jQuery"+C.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(B,E,S){if(C.acceptData(B)){B=B==A2?Aa:B;var T=B.nodeType,U=T?B[C.expando]:null,P=C.cache;if(!(T&&!U&&typeof E==="string"&&S===A1)){if(T){U||(B[C.expando]=U=++C.uuid)}else{P=B}if(typeof E==="object"){if(T){P[U]=C.extend(P[U],E)}else{C.extend(P,E)}}else{if(T&&!P[U]){P[U]={}}}B=T?P[U]:P;if(S!==A1){B[E]=S}return typeof E==="string"?B[E]:B}}},removeData:function(B,E){if(C.acceptData(B)){B=B==A2?Aa:B;var S=B.nodeType,T=S?B[C.expando]:B,U=C.cache,P=S?U[T]:T;if(E){if(P){delete P[E];S&&C.isEmptyObject(P)&&C.removeData(B)}}else{if(S&&C.support.deleteExpando){delete B[C.expando]}else{if(B.removeAttribute){B.removeAttribute(C.expando)}else{if(S){delete U[T]}else{for(var V in B){delete B[V]}}}}}}},acceptData:function(B){if(B.nodeName){var E=C.noData[B.nodeName.toLowerCase()];if(E){return !(E===true||B.getAttribute("classid")!==E)}}return true}});C.fn.extend({data:function(P,S){var T=null;if(typeof P==="undefined"){if(this.length){var U=this[0].attributes,V;T=C.data(this[0]);for(var W=0,E=U.length;W<E;W++){V=U[W].name;if(V.indexOf("data-")===0){V=V.substr(5);Aj(this[0],V,T[V])}}}return T}else{if(typeof P==="object"){return this.each(function(){C.data(this,P)})}}var B=P.split(".");B[1]=B[1]?"."+B[1]:"";if(S===A1){T=this.triggerHandler("getData"+B[1]+"!",[B[0]]);if(T===A1&&this.length){T=C.data(this[0],P);T=Aj(this[0],P,T)}return T===A1&&B[1]?this.data(B[0]):T}else{return this.each(function(){var Y=C(this),X=[B[0],S];Y.triggerHandler("setData"+B[1]+"!",X);C.data(this,P,S);Y.triggerHandler("changeData"+B[1]+"!",X)})}},removeData:function(B){return this.each(function(){C.removeData(this,B)})}});C.extend({queue:function(B,E,P){if(B){E=(E||"fx")+"queue";var S=C.data(B,E);if(!P){return S||[]}if(!S||C.isArray(P)){S=C.data(B,E,C.makeArray(P))}else{S.push(P)}return S}},dequeue:function(B,E){E=E||"fx";var P=C.queue(B,E),S=P.shift();if(S==="inprogress"){S=P.shift()}if(S){E==="fx"&&P.unshift("inprogress");S.call(B,function(){C.dequeue(B,E)})}}});C.fn.extend({queue:function(B,E){if(typeof B!=="string"){E=B;B="fx"}if(E===A1){return C.queue(this[0],B)}return this.each(function(){var P=C.queue(this,B,E);B==="fx"&&P[0]!=="inprogress"&&C.dequeue(this,B)})},dequeue:function(B){return this.each(function(){C.dequeue(this,B)})},delay:function(B,E){B=C.fx?C.fx.speeds[B]||B:B;E=E||"fx";return this.queue(E,function(){var P=this;setTimeout(function(){C.dequeue(P,E)},B)})},clearQueue:function(B){return this.queue(B||"fx",[])}});var Ab=/[\n\t]/g,Ag=/\s+/,M=/\r/g,N=/^(?:href|src|style)$/,O=/^(?:button|input)$/i,Q=/^(?:button|input|object|select|textarea)$/i,R=/^a(?:rea)?$/i,Ac=/^(?:radio|checkbox)$/i;C.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};C.fn.extend({attr:function(B,E){return C.access(this,B,E,true,C.attr)},removeAttr:function(B){return this.each(function(){C.attr(this,B,"");this.nodeType===1&&this.removeAttribute(B)})},addClass:function(S){if(C.isFunction(S)){return this.each(function(Z){var Y=C(this);Y.addClass(S.call(this,Z,Y.attr("class")))})}if(S&&typeof S==="string"){for(var T=(S||"").split(Ag),U=0,V=this.length;U<V;U++){var W=this[U];if(W.nodeType===1){if(W.className){for(var X=" "+W.className+" ",E=W.className,B=0,P=T.length;B<P;B++){if(X.indexOf(" "+T[B]+" ")<0){E+=" "+T[B]}}W.className=C.trim(E)}else{W.className=S}}}}return this},removeClass:function(P){if(C.isFunction(P)){return this.each(function(Y){var X=C(this);X.removeClass(P.call(this,Y,X.attr("class")))})}if(P&&typeof P==="string"||P===A1){for(var S=(P||"").split(Ag),T=0,U=this.length;T<U;T++){var V=this[T];if(V.nodeType===1&&V.className){if(P){for(var W=(" "+V.className+" ").replace(Ab," "),E=0,B=S.length;E<B;E++){W=W.replace(" "+S[E]+" "," ")}V.className=C.trim(W)}else{V.className=""}}}}return this},toggleClass:function(B,E){var P=typeof B,S=typeof E==="boolean";if(C.isFunction(B)){return this.each(function(U){var T=C(this);T.toggleClass(B.call(this,U,T.attr("class"),E),E)})}return this.each(function(){if(P==="string"){for(var W,V=0,X=C(this),U=E,T=B.split(Ag);W=T[V++];){U=S?U:!X.hasClass(W);X[U?"addClass":"removeClass"](W)}}else{if(P==="undefined"||P==="boolean"){this.className&&C.data(this,"__className__",this.className);this.className=this.className||B===false?"":C.data(this,"__className__")||""}}})},hasClass:function(B){B=" "+B+" ";for(var E=0,P=this.length;E<P;E++){if((" "+this[E].className+" ").replace(Ab," ").indexOf(B)>-1){return true}}return false},val:function(P){if(!arguments.length){var S=this[0];if(S){if(C.nodeName(S,"option")){var T=S.attributes.value;return !T||T.specified?S.value:S.text}if(C.nodeName(S,"select")){var U=S.selectedIndex;T=[];var V=S.options;S=S.type==="select-one";if(U<0){return null}var W=S?U:0;for(U=S?U+1:V.length;W<U;W++){var E=V[W];if(E.selected&&(C.support.optDisabled?!E.disabled:E.getAttribute("disabled")===null)&&(!E.parentNode.disabled||!C.nodeName(E.parentNode,"optgroup"))){P=C(E).val();if(S){return P}T.push(P)}}return T}if(Ac.test(S.type)&&!C.support.checkOn){return S.getAttribute("value")===null?"on":S.value}return(S.value||"").replace(M,"")}return A1}var B=C.isFunction(P);return this.each(function(Z){var Y=C(this),X=P;if(this.nodeType===1){if(B){X=P.call(this,Z,Y.val())}if(X==null){X=""}else{if(typeof X==="number"){X+=""}else{if(C.isArray(X)){X=C.map(X,function(t){return t==null?"":t+""})}}}if(C.isArray(X)&&Ac.test(this.type)){this.checked=C.inArray(Y.val(),X)>=0}else{if(C.nodeName(this,"select")){var c=C.makeArray(X);C("option",this).each(function(){this.selected=C.inArray(C(this).val(),c)>=0});if(!c.length){this.selectedIndex=-1}}else{this.value=X}}}})}});C.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(B,E,S,T){if(!B||B.nodeType===3||B.nodeType===8){return A1}if(T&&E in C.attrFn){return C(B)[E](S)}T=B.nodeType!==1||!C.isXMLDoc(B);var U=S!==A1;E=T&&C.props[E]||E;var P=N.test(E);if((E in B||B[E]!==A1)&&T&&!P){if(U){E==="type"&&O.test(B.nodeName)&&B.parentNode&&C.error("type property can't be changed");if(S===null){B.nodeType===1&&B.removeAttribute(E)}else{B[E]=S}}if(C.nodeName(B,"form")&&B.getAttributeNode(E)){return B.getAttributeNode(E).nodeValue}if(E==="tabIndex"){return(E=B.getAttributeNode("tabIndex"))&&E.specified?E.value:Q.test(B.nodeName)||R.test(B.nodeName)&&B.href?0:A1}return B[E]}if(!C.support.style&&T&&E==="style"){if(U){B.style.cssText=""+S}return B.style.cssText}U&&B.setAttribute(E,""+S);if(!B.attributes[E]&&B.hasAttribute&&!B.hasAttribute(E)){return A1}B=!C.support.hrefNormalized&&T&&P?B.getAttribute(E,2):B.getAttribute(E);return B===null?A1:B}});var AS=/\.(.*)$/,Ah=/^(?:textarea|input|select)$/i,f=/\./g,g=/ /g,F=/[^\w\s.|`]/g,G=function(B){return B.replace(F,"\\$&")},Ad={focusin:0,focusout:0};C.event={add:function(U,V,X,Y){if(!(U.nodeType===3||U.nodeType===8)){if(C.isWindow(U)&&U!==A2&&!U.frameElement){U=A2}if(X===false){X=AY}else{if(!X){return}}var Z,t;if(X.handler){Z=X;X=Z.handler}if(!X.guid){X.guid=C.guid++}if(t=C.data(U)){var S=U.nodeType?"events":"__events__",P=t[S],T=t.handle;if(typeof P==="function"){T=P.handle;P=P.events}else{if(!P){U.nodeType||(t[S]=t=function(){});t.events=P={}}}if(!T){t.handle=T=function(){return typeof C!=="undefined"&&!C.event.triggered?C.event.handle.apply(T.elem,arguments):A1}}T.elem=U;V=V.split(" ");for(var B=0,c;S=V[B++];){t=Z?C.extend({},Z):{handler:X,data:Y};if(S.indexOf(".")>-1){c=S.split(".");S=c.shift();t.namespace=c.slice(0).sort().join(".")}else{c=[];t.namespace=""}t.type=S;if(!t.guid){t.guid=X.guid}var W=P[S],E=C.event.special[S]||{};if(!W){W=P[S]=[];if(!E.setup||E.setup.call(U,Y,c,T)===false){if(U.addEventListener){U.addEventListener(S,T,false)}else{U.attachEvent&&U.attachEvent("on"+S,T)}}}if(E.add){E.add.call(U,t);if(!t.handler.guid){t.handler.guid=X.guid}}W.push(t);C.event.global[S]=true}U=null}}},global:{},remove:function(U,V,X,Y){if(!(U.nodeType===3||U.nodeType===8)){if(X===false){X=AY}var Z,A5,S=0,P,T,B,A3,W,E,t=U.nodeType?"events":"__events__",A4=C.data(U),c=A4&&A4[t];if(A4&&c){if(typeof c==="function"){A4=c;c=c.events}if(V&&V.type){X=V.handler;V=V.type}if(!V||typeof V==="string"&&V.charAt(0)==="."){V=V||"";for(Z in c){C.event.remove(U,Z+V)}}else{for(V=V.split(" ");Z=V[S++];){A3=Z;P=Z.indexOf(".")<0;T=[];if(!P){T=Z.split(".");Z=T.shift();B=RegExp("(^|\\.)"+C.map(T.slice(0).sort(),G).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(W=c[Z]){if(X){A3=C.event.special[Z]||{};for(A5=Y||0;A5<W.length;A5++){E=W[A5];if(X.guid===E.guid){if(P||B.test(E.namespace)){Y==null&&W.splice(A5--,1);A3.remove&&A3.remove.call(U,E)}if(Y!=null){break}}}if(W.length===0||Y!=null&&W.length===1){if(!A3.teardown||A3.teardown.call(U,T)===false){C.removeEvent(U,Z,A4.handle)}delete c[Z]}}else{for(A5=0;A5<W.length;A5++){E=W[A5];if(P||B.test(E.namespace)){C.event.remove(U,A3,E.handler,A5);W.splice(A5--,1)}}}}}if(C.isEmptyObject(c)){if(V=A4.handle){V.elem=null}delete A4.events;delete A4.handle;if(typeof A4==="function"){C.removeData(U,t)}else{C.isEmptyObject(A4)&&C.removeData(U)}}}}}},trigger:function(T,U,V,W){var X=T.type||T;if(!W){T=typeof T==="object"?T[C.expando]?T:C.extend(C.Event(X),T):C.Event(X);if(X.indexOf("!")>=0){T.type=X=X.slice(0,-1);T.exclusive=true}if(!V){T.stopPropagation();C.event.global[X]&&C.each(C.cache,function(){this.events&&this.events[X]&&C.event.trigger(T,U,this.handle.elem)})}if(!V||V.nodeType===3||V.nodeType===8){return A1}T.result=A1;T.target=V;U=C.makeArray(U);U.unshift(T)}T.currentTarget=V;(W=V.nodeType?C.data(V,"handle"):(C.data(V,"__events__")||{}).handle)&&W.apply(V,U);W=V.parentNode||V.ownerDocument;try{if(!(V&&V.nodeName&&C.noData[V.nodeName.toLowerCase()])){if(V["on"+X]&&V["on"+X].apply(V,U)===false){T.result=false;T.preventDefault()}}}catch(Z){}if(!T.isPropagationStopped()&&W){C.event.trigger(T,U,W,true)}else{if(!T.isDefaultPrevented()){var P;W=T.target;var E=X.replace(AS,""),S=C.nodeName(W,"a")&&E==="click",B=C.event.special[E]||{};if((!B._default||B._default.call(V,T)===false)&&!S&&!(W&&W.nodeName&&C.noData[W.nodeName.toLowerCase()])){try{if(W[E]){if(P=W["on"+E]){W["on"+E]=null}C.event.triggered=true;W[E]()}}catch(Y){}if(P){W["on"+E]=P}C.event.triggered=false}}}},handle:function(P){var S,T,U,V;T=[];var W=C.makeArray(arguments);P=W[0]=C.event.fix(P||A2.event);P.currentTarget=this;S=P.type.indexOf(".")<0&&!P.exclusive;if(!S){U=P.type.split(".");P.type=U.shift();T=U.slice(0).sort();U=RegExp("(^|\\.)"+T.join("\\.(?:.*\\.)?")+"(\\.|$)")}P.namespace=P.namespace||T.join(".");V=C.data(this,this.nodeType?"events":"__events__");if(typeof V==="function"){V=V.events}T=(V||{})[P.type];if(V&&T){T=T.slice(0);V=0;for(var E=T.length;V<E;V++){var B=T[V];if(S||U.test(B.namespace)){P.handler=B.handler;P.data=B.data;P.handleObj=B;B=B.handler.apply(this,W);if(B!==A1){P.result=B;if(B===false){P.preventDefault();P.stopPropagation()}}if(P.isImmediatePropagationStopped()){break}}}}return P.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(B){if(B[C.expando]){return B}var E=B;B=C.Event(E);for(var P=this.props.length,S;P;){S=this.props[--P];B[S]=E[S]}if(!B.target){B.target=B.srcElement||A}if(B.target.nodeType===3){B.target=B.target.parentNode}if(!B.relatedTarget&&B.fromElement){B.relatedTarget=B.fromElement===B.target?B.toElement:B.fromElement}if(B.pageX==null&&B.clientX!=null){E=A.documentElement;P=A.body;B.pageX=B.clientX+(E&&E.scrollLeft||P&&P.scrollLeft||0)-(E&&E.clientLeft||P&&P.clientLeft||0);B.pageY=B.clientY+(E&&E.scrollTop||P&&P.scrollTop||0)-(E&&E.clientTop||P&&P.clientTop||0)}if(B.which==null&&(B.charCode!=null||B.keyCode!=null)){B.which=B.charCode!=null?B.charCode:B.keyCode}if(!B.metaKey&&B.ctrlKey){B.metaKey=B.ctrlKey}if(!B.which&&B.button!==A1){B.which=B.button&1?1:B.button&2?3:B.button&4?2:0}return B},guid:100000000,proxy:C.proxy,special:{ready:{setup:C.bindReady,teardown:C.noop},live:{add:function(B){C.event.add(this,AT(B.origType,B.selector),C.extend({},B,{handler:e,guid:B.handler.guid}))},remove:function(B){C.event.remove(this,AT(B.origType,B.selector),B)}},beforeunload:{setup:function(B,E,P){if(C.isWindow(this)){this.onbeforeunload=P}},teardown:function(B,E){if(this.onbeforeunload===E){this.onbeforeunload=null}}}}};C.removeEvent=A.removeEventListener?function(B,E,P){B.removeEventListener&&B.removeEventListener(E,P,false)}:function(B,E,P){B.detachEvent&&B.detachEvent("on"+E,P)};C.Event=function(B){if(!this.preventDefault){return new C.Event(B)}if(B&&B.type){this.originalEvent=B;this.type=B.type}else{this.type=B}this.timeStamp=C.now();this[C.expando]=true};C.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Aq;var B=this.originalEvent;if(B){if(B.preventDefault){B.preventDefault()}else{B.returnValue=false}}},stopPropagation:function(){this.isPropagationStopped=Aq;var B=this.originalEvent;if(B){B.stopPropagation&&B.stopPropagation();B.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Aq;this.stopPropagation()},isDefaultPrevented:AY,isPropagationStopped:AY,isImmediatePropagationStopped:AY};var Ae=function(B){var E=B.relatedTarget;try{for(;E&&E!==this;){E=E.parentNode}if(E!==this){B.type=B.data;C.event.handle.apply(this,arguments)}}catch(P){}},Af=function(B){B.type=B.data;C.event.handle.apply(this,arguments)};C.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(B,E){C.event.special[B]={setup:function(P){C.event.add(this,E,P&&P.selector?Af:Ae,B)},teardown:function(P){C.event.remove(this,E,P&&P.selector?Af:Ae)}}});if(!C.support.submitBubbles){C.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){C.event.add(this,"click.specialSubmit",function(B){var E=B.target,P=E.type;if((P==="submit"||P==="image")&&C(E).closest("form").length){B.liveFired=A1;return Ak("submit",this,arguments)}});C.event.add(this,"keypress.specialSubmit",function(B){var E=B.target,P=E.type;if((P==="text"||P==="password")&&C(E).closest("form").length&&B.keyCode===13){B.liveFired=A1;return Ak("submit",this,arguments)}})}else{return false}},teardown:function(){C.event.remove(this,".specialSubmit")}}}if(!C.support.changeBubbles){var AZ,v=function(B){var E=B.type,P=B.value;if(E==="radio"||E==="checkbox"){P=B.checked}else{if(E==="select-multiple"){P=B.selectedIndex>-1?C.map(B.options,function(S){return S.selected}).join("-"):""}else{if(B.nodeName.toLowerCase()==="select"){P=B.selectedIndex}}}return P},AU=function(B,E){var P=B.target,S,T;if(!(!Ah.test(P.nodeName)||P.readOnly)){S=C.data(P,"_change_data");T=v(P);if(B.type!=="focusout"||P.type!=="radio"){C.data(P,"_change_data",T)}if(!(S===A1||T===S)){if(S!=null||T){B.type="change";B.liveFired=A1;return C.event.trigger(B,E,P)}}}};C.event.special.change={filters:{focusout:AU,beforedeactivate:AU,click:function(B){var E=B.target,P=E.type;if(P==="radio"||P==="checkbox"||E.nodeName.toLowerCase()==="select"){return AU.call(this,B)}},keydown:function(B){var E=B.target,P=E.type;if(B.keyCode===13&&E.nodeName.toLowerCase()!=="textarea"||B.keyCode===32&&(P==="checkbox"||P==="radio")||P==="select-multiple"){return AU.call(this,B)}},beforeactivate:function(B){B=B.target;C.data(B,"_change_data",v(B))}},setup:function(){if(this.type==="file"){return false}for(var B in AZ){C.event.add(this,B+".specialChange",AZ[B])}return Ah.test(this.nodeName)},teardown:function(){C.event.remove(this,".specialChange");return Ah.test(this.nodeName)}};AZ=C.event.special.change.filters;AZ.focus=AZ.beforeactivate}A.addEventListener&&C.each({focus:"focusin",blur:"focusout"},function(B,E){function P(S){S=C.event.fix(S);S.type=E;return C.event.trigger(S,null,S.target)}C.event.special[E]={setup:function(){Ad[E]++===0&&A.addEventListener(B,P,true)},teardown:function(){--Ad[E]===0&&A.removeEventListener(B,P,true)}}});C.each(["bind","one"],function(B,E){C.fn[E]=function(T,U,V){if(typeof T==="object"){for(var S in T){this[E](S,U,T[S],V)}return this}if(C.isFunction(U)||U===false){V=U;U=A1}var W=E==="one"?C.proxy(V,function(X){C(this).unbind(X,W);return V.apply(this,arguments)}):V;if(T==="unload"&&E!=="one"){this.one(T,U,V)}else{S=0;for(var P=this.length;S<P;S++){C.event.add(this[S],T,W,U)}}return this}});C.fn.extend({unbind:function(B,E){if(typeof B==="object"&&!B.preventDefault){for(var P in B){this.unbind(P,B[P])}}else{P=0;for(var S=this.length;P<S;P++){C.event.remove(this[P],B,E)}}return this},delegate:function(B,E,P,S){return this.live(E,P,S,B)},undelegate:function(B,E,P){return arguments.length===0?this.unbind("live"):this.die(E,null,P,B)},trigger:function(B,E){return this.each(function(){C.event.trigger(B,E,this)})},triggerHandler:function(B,E){if(this[0]){var P=C.Event(B);P.preventDefault();P.stopPropagation();C.event.trigger(P,E,this[0]);return P.result}},toggle:function(B){for(var E=arguments,P=1;P<E.length;){C.proxy(B,E[P++])}return this.click(C.proxy(B,function(S){var T=(C.data(this,"lastToggle"+B.guid)||0)%P;C.data(this,"lastToggle"+B.guid,T+1);S.preventDefault();return E[T].apply(this,arguments)||false}))},hover:function(B,E){return this.mouseenter(B).mouseleave(E||B)}});var w={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};C.each(["live","die"],function(B,E){C.fn[E]=function(W,X,Y,c){var T,S=0,U,P,Z=c||this.selector;c=c?this:C(this.context);if(typeof W==="object"&&!W.preventDefault){for(T in W){c[E](T,X,W[T],Z)}return this}if(C.isFunction(X)){Y=X;X=A1}for(W=(W||"").split(" ");(T=W[S++])!=null;){U=AS.exec(T);P="";if(U){P=U[0];T=T.replace(AS,"")}if(T==="hover"){W.push("mouseenter"+P,"mouseleave"+P)}else{U=T;if(T==="focus"||T==="blur"){W.push(w[T]+P);T+=P}else{T=(w[T]||T)+P}if(E==="live"){P=0;for(var V=c.length;P<V;P++){C.event.add(c[P],"live."+AT(T,Z),{data:X,selector:Z,handler:Y,origType:T,origHandler:Y,preType:U})}}else{c.unbind("live."+AT(T,Z),Y)}}}return this}});C.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(B,E){C.fn[E]=function(P,S){if(S==null){S=P;P=null}return arguments.length>0?this.bind(E,P,S):this.trigger(E)};if(C.attrFn){C.attrFn[E]=true}});A2.attachEvent&&!A2.addEventListener&&C(A2).bind("unload",function(){for(var B in C.cache){if(C.cache[B].handle){try{C.event.remove(C.cache[B].handle.elem)}catch(E){}}}});(function(){function V(Bc,A7,A9,A8,Bb,Bd){Bb=0;for(var Be=A8.length;Bb<Be;Bb++){var Ba=A8[Bb];if(Ba){var Bf=false;for(Ba=Ba[Bc];Ba;){if(Ba.sizcache===A9){Bf=A8[Ba.sizset];break}if(Ba.nodeType===1&&!Bd){Ba.sizcache=A9;Ba.sizset=Bb}if(Ba.nodeName.toLowerCase()===A7){Bf=Ba;break}Ba=Ba[Bc]}A8[Bb]=Bf}}}function W(Bc,A7,A9,A8,Bb,Bd){Bb=0;for(var Be=A8.length;Bb<Be;Bb++){var Ba=A8[Bb];if(Ba){var Bf=false;for(Ba=Ba[Bc];Ba;){if(Ba.sizcache===A9){Bf=A8[Ba.sizset];break}if(Ba.nodeType===1){if(!Bd){Ba.sizcache=A9;Ba.sizset=Bb}if(typeof A7!=="string"){if(Ba===A7){Bf=true;break}}else{if(S.filter(A7,[Ba]).length>0){Bf=Ba;break}}}Ba=Ba[Bc]}A8[Bb]=Bf}}}var X=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Y=0,Z=Object.prototype.toString,P=false,T=true;[0,0].sort(function(){T=false;return 0});var S=function(Be,A7,Ba,A9){Ba=Ba||[];var Bc=A7=A7||A;if(A7.nodeType!==1&&A7.nodeType!==9){return[]}if(!Be||typeof Be!=="string"){return Ba}var Bf,Bi,Bb,Bk,Bh,Bd=true,Bj=S.isXML(A7),A8=[],Bg=Be;do{X.exec("");if(Bf=X.exec(Bg)){Bg=Bf[3];A8.push(Bf[1]);if(Bf[2]){Bk=Bf[3];break}}}while(Bf);if(A8.length>1&&A6.exec(Be)){if(A8.length===2&&U.relative[A8[0]]){Bi=A3(A8[0]+A8[1],A7)}else{for(Bi=U.relative[A8[0]]?[A7]:S(A8.shift(),A7);A8.length;){Be=A8.shift();if(U.relative[Be]){Be+=A8.shift()}Bi=A3(Be,Bi)}}}else{if(!A9&&A8.length>1&&A7.nodeType===9&&!Bj&&U.match.ID.test(A8[0])&&!U.match.ID.test(A8[A8.length-1])){Bf=S.find(A8.shift(),A7,Bj);A7=Bf.expr?S.filter(Bf.expr,Bf.set)[0]:Bf.set[0]}if(A7){Bf=A9?{expr:A8.pop(),set:A5(A9)}:S.find(A8.pop(),A8.length===1&&(A8[0]==="~"||A8[0]==="+")&&A7.parentNode?A7.parentNode:A7,Bj);Bi=Bf.expr?S.filter(Bf.expr,Bf.set):Bf.set;if(A8.length>0){Bb=A5(Bi)}else{Bd=false}for(;A8.length;){Bf=Bh=A8.pop();if(U.relative[Bh]){Bf=A8.pop()}else{Bh=""}if(Bf==null){Bf=A7}U.relative[Bh](Bb,Bf,Bj)}}else{Bb=[]}}Bb||(Bb=Bi);Bb||S.error(Bh||Be);if(Z.call(Bb)==="[object Array]"){if(Bd){if(A7&&A7.nodeType===1){for(Be=0;Bb[Be]!=null;Be++){if(Bb[Be]&&(Bb[Be]===true||Bb[Be].nodeType===1&&S.contains(A7,Bb[Be]))){Ba.push(Bi[Be])}}}else{for(Be=0;Bb[Be]!=null;Be++){Bb[Be]&&Bb[Be].nodeType===1&&Ba.push(Bi[Be])}}}else{Ba.push.apply(Ba,Bb)}}else{A5(Bb,Ba)}if(Bk){S(Bk,Bc,Ba,A9);S.uniqueSort(Ba)}return Ba};S.uniqueSort=function(A8){if(E){P=T;A8.sort(E);if(P){for(var A7=1;A7<A8.length;A7++){A8[A7]===A8[A7-1]&&A8.splice(A7--,1)}}}return A8};S.matches=function(A8,A7){return S(A8,null,null,A7)};S.matchesSelector=function(A8,A7){return S(A7,null,null,[A8]).length>0};S.find=function(Bc,A7,A9){var A8;if(!Bc){return[]}for(var Bb=0,Bd=U.order.length;Bb<Bd;Bb++){var Be,Ba=U.order[Bb];if(Be=U.leftMatch[Ba].exec(Bc)){var Bf=Be[1];Be.splice(1,1);if(Bf.substr(Bf.length-1)!=="\\"){Be[1]=(Be[1]||"").replace(/\\/g,"");A8=U.find[Ba](Be,A7,A9);if(A8!=null){Bc=Bc.replace(U.match[Ba],"");break}}}}A8||(A8=A7.getElementsByTagName("*"));return{set:A8,expr:Bc}};S.filter=function(Bf,A7,Bb,Ba){for(var Bd,Bg,Bk=Bf,Bc=[],Bm=A7,Bj=A7&&A7[0]&&S.isXML(A7[0]);Bf&&A7.length;){for(var Be in U.filter){if((Bd=U.leftMatch[Be].exec(Bf))!=null&&Bd[2]){var Bl,A9,Bh=U.filter[Be];A9=Bd[1];Bg=false;Bd.splice(1,1);if(A9.substr(A9.length-1)!=="\\"){if(Bm===Bc){Bc=[]}if(U.preFilter[Be]){if(Bd=U.preFilter[Be](Bd,Bm,Bb,Bc,Ba,Bj)){if(Bd===true){continue}}else{Bg=Bl=true}}if(Bd){for(var A8=0;(A9=Bm[A8])!=null;A8++){if(A9){Bl=Bh(A9,Bd,A8,Bm);var Bi=Ba^!!Bl;if(Bb&&Bl!=null){if(Bi){Bg=true}else{Bm[A8]=false}}else{if(Bi){Bc.push(A9);Bg=true}}}}}if(Bl!==A1){Bb||(Bm=Bc);Bf=Bf.replace(U.match[Be],"");if(!Bg){return[]}break}}}}if(Bf===Bk){if(Bg==null){S.error(Bf)}else{break}}Bk=Bf}return Bm};S.error=function(A7){throw"Syntax error, unrecognized expression: "+A7};var U=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(A7){return A7.getAttribute("href")}},relative:{"+":function(Bc,Ba){var A8=typeof Ba==="string",A7=A8&&!/\W/.test(Ba);A8=A8&&!A7;if(A7){Ba=Ba.toLowerCase()}A7=0;for(var Bb=Bc.length,A9;A7<Bb;A7++){if(A9=Bc[A7]){for(;(A9=A9.previousSibling)&&A9.nodeType!==1;){}Bc[A7]=A8||A9&&A9.nodeName.toLowerCase()===Ba?A9||false:A9===Ba}}A8&&S.filter(Ba,Bc,true)},">":function(Bc,Ba){var A8,A7=typeof Ba==="string",Bb=0,A9=Bc.length;if(A7&&!/\W/.test(Ba)){for(Ba=Ba.toLowerCase();Bb<A9;Bb++){if(A8=Bc[Bb]){A8=A8.parentNode;Bc[Bb]=A8.nodeName.toLowerCase()===Ba?A8:false}}}else{for(;Bb<A9;Bb++){if(A8=Bc[Bb]){Bc[Bb]=A7?A8.parentNode:A8.parentNode===Ba}}A7&&S.filter(Ba,Bc,true)}},"":function(Bc,Ba,A8){var A7,Bb=Y++,A9=W;if(typeof Ba==="string"&&!/\W/.test(Ba)){A7=Ba=Ba.toLowerCase();A9=V}A9("parentNode",Ba,Bb,Bc,A7,A8)},"~":function(Bc,Ba,A8){var A7,Bb=Y++,A9=W;if(typeof Ba==="string"&&!/\W/.test(Ba)){A7=Ba=Ba.toLowerCase();A9=V}A9("previousSibling",Ba,Bb,Bc,A7,A8)}},find:{ID:function(A9,A8,A7){if(typeof A8.getElementById!=="undefined"&&!A7){return(A9=A8.getElementById(A9[1]))&&A9.parentNode?[A9]:[]}},NAME:function(Bc,Ba){if(typeof Ba.getElementsByName!=="undefined"){for(var A8=[],A7=Ba.getElementsByName(Bc[1]),Bb=0,A9=A7.length;Bb<A9;Bb++){A7[Bb].getAttribute("name")===Bc[1]&&A8.push(A7[Bb])}return A8.length===0?null:A8}},TAG:function(A8,A7){return A7.getElementsByTagName(A8[1])}},preFilter:{CLASS:function(Bd,Bb,A8,A7,Bc,Ba){Bd=" "+Bd[1].replace(/\\/g,"")+" ";if(Ba){return Bd}Ba=0;for(var A9;(A9=Bb[Ba])!=null;Ba++){if(A9){if(Bc^(A9.className&&(" "+A9.className+" ").replace(/[\t\n]/g," ").indexOf(Bd)>=0)){A8||A7.push(A9)}else{if(A8){Bb[Ba]=false}}}}return false},ID:function(A7){return A7[1].replace(/\\/g,"")},TAG:function(A7){return A7[1].toLowerCase()},CHILD:function(A8){if(A8[1]==="nth"){var A7=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(A8[2]==="even"&&"2n"||A8[2]==="odd"&&"2n+1"||!/\D/.test(A8[2])&&"0n+"+A8[2]||A8[2]);A8[2]=A7[1]+(A7[2]||1)-0;A8[3]=A7[3]-0}A8[0]=Y++;return A8},ATTR:function(Bc,Ba,A8,A7,Bb,A9){Ba=Bc[1].replace(/\\/g,"");if(!A9&&U.attrMap[Ba]){Bc[1]=U.attrMap[Ba]}if(Bc[2]==="~="){Bc[4]=" "+Bc[4]+" "}return Bc},PSEUDO:function(Bb,A9,A8,A7,Ba){if(Bb[1]==="not"){if((X.exec(Bb[3])||"").length>1||/^\w/.test(Bb[3])){Bb[3]=S(Bb[3],null,null,A9)}else{Bb=S.filter(Bb[3],A9,A8,true^Ba);A8||A7.push.apply(A7,Bb);return false}}else{if(U.match.POS.test(Bb[0])||U.match.CHILD.test(Bb[0])){return true}}return Bb},POS:function(A7){A7.unshift(true);return A7}},filters:{enabled:function(A7){return A7.disabled===false&&A7.type!=="hidden"},disabled:function(A7){return A7.disabled===true},checked:function(A7){return A7.checked===true},selected:function(A7){return A7.selected===true},parent:function(A7){return !!A7.firstChild},empty:function(A7){return !A7.firstChild},has:function(A9,A8,A7){return !!S(A7[3],A9).length},header:function(A7){return/h\d/i.test(A7.nodeName)},text:function(A7){return"text"===A7.type},radio:function(A7){return"radio"===A7.type},checkbox:function(A7){return"checkbox"===A7.type},file:function(A7){return"file"===A7.type},password:function(A7){return"password"===A7.type},submit:function(A7){return"submit"===A7.type},image:function(A7){return"image"===A7.type},reset:function(A7){return"reset"===A7.type},button:function(A7){return"button"===A7.type||A7.nodeName.toLowerCase()==="button"},input:function(A7){return/input|select|textarea|button/i.test(A7.nodeName)}},setFilters:{first:function(A8,A7){return A7===0},last:function(Ba,A9,A8,A7){return A9===A7.length-1},even:function(A8,A7){return A7%2===0},odd:function(A8,A7){return A7%2===1},lt:function(A9,A8,A7){return A8<A7[3]-0},gt:function(A9,A8,A7){return A8>A7[3]-0},nth:function(A9,A8,A7){return A7[3]-0===A8},eq:function(A9,A8,A7){return A7[3]-0===A8}},filter:{PSEUDO:function(Bc,Ba,A8,A7){var Bb=Ba[1],A9=U.filters[Bb];if(A9){return A9(Bc,A8,Ba,A7)}else{if(Bb==="contains"){return(Bc.textContent||Bc.innerText||S.getText([Bc])||"").indexOf(Ba[3])>=0}else{if(Bb==="not"){Ba=Ba[3];A8=0;for(A7=Ba.length;A8<A7;A8++){if(Ba[A8]===Bc){return false}}return true}else{S.error("Syntax error, unrecognized expression: "+Bb)}}}},CHILD:function(Bc,A7){var A9=A7[1],A8=Bc;switch(A9){case"only":case"first":for(;A8=A8.previousSibling;){if(A8.nodeType===1){return false}}if(A9==="first"){return true}A8=Bc;case"last":for(;A8=A8.nextSibling;){if(A8.nodeType===1){return false}}return true;case"nth":A9=A7[2];var Bb=A7[3];if(A9===1&&Bb===0){return true}var Bd=A7[0],Be=Bc.parentNode;if(Be&&(Be.sizcache!==Bd||!Bc.nodeIndex)){var Ba=0;for(A8=Be.firstChild;A8;A8=A8.nextSibling){if(A8.nodeType===1){A8.nodeIndex=++Ba}}Be.sizcache=Bd}A8=Bc.nodeIndex-Bb;return A9===0?A8===0:A8%A9===0&&A8/A9>=0}},ID:function(A8,A7){return A8.nodeType===1&&A8.getAttribute("id")===A7},TAG:function(A8,A7){return A7==="*"&&A8.nodeType===1||A8.nodeName.toLowerCase()===A7},CLASS:function(A8,A7){return(" "+(A8.className||A8.getAttribute("class"))+" ").indexOf(A7)>-1},ATTR:function(Bc,Ba){var A8=Ba[1];A8=U.attrHandle[A8]?U.attrHandle[A8](Bc):Bc[A8]!=null?Bc[A8]:Bc.getAttribute(A8);var A7=A8+"",Bb=Ba[2],A9=Ba[4];return A8==null?Bb==="!=":Bb==="="?A7===A9:Bb==="*="?A7.indexOf(A9)>=0:Bb==="~="?(" "+A7+" ").indexOf(A9)>=0:!A9?A7&&A8!==false:Bb==="!="?A7!==A9:Bb==="^="?A7.indexOf(A9)===0:Bb==="$="?A7.substr(A7.length-A9.length)===A9:Bb==="|="?A7===A9||A7.substr(0,A9.length+1)===A9+"-":false},POS:function(Bb,A9,A8,A7){var Ba=U.setFilters[A9[2]];if(Ba){return Ba(Bb,A8,A9,A7)}}}},A6=U.match.POS,B=function(A8,A7){return"\\"+(A7-0+1)},A4;for(A4 in U.match){U.match[A4]=RegExp(U.match[A4].source+/(?![^\[]*\])(?![^\(]*\))/.source);U.leftMatch[A4]=RegExp(/(^(?:.|\r|\n)*?)/.source+U.match[A4].source.replace(/\\(\d+)/g,B))}var A5=function(A8,A7){A8=Array.prototype.slice.call(A8,0);if(A7){A7.push.apply(A7,A8);return A7}return A8};try{Array.prototype.slice.call(A.documentElement.childNodes,0)}catch(t){A5=function(Bb,A9){var A8=0,A7=A9||[];if(Z.call(Bb)==="[object Array]"){Array.prototype.push.apply(A7,Bb)}else{if(typeof Bb.length==="number"){for(var Ba=Bb.length;A8<Ba;A8++){A7.push(Bb[A8])}}else{for(;Bb[A8];A8++){A7.push(Bb[A8])}}}return A7}}var E,c;if(A.documentElement.compareDocumentPosition){E=function(A8,A7){if(A8===A7){P=true;return 0}if(!A8.compareDocumentPosition||!A7.compareDocumentPosition){return A8.compareDocumentPosition?-1:1}return A8.compareDocumentPosition(A7)&4?-1:1}}else{E=function(Bd,Bb){var A8,A7,Bc=[],Ba=[];A8=Bd.parentNode;A7=Bb.parentNode;var A9=A8;if(Bd===Bb){P=true;return 0}else{if(A8===A7){return c(Bd,Bb)}else{if(A8){if(!A7){return 1}}else{return -1}}}for(;A9;){Bc.unshift(A9);A9=A9.parentNode}for(A9=A7;A9;){Ba.unshift(A9);A9=A9.parentNode}A8=Bc.length;A7=Ba.length;for(A9=0;A9<A8&&A9<A7;A9++){if(Bc[A9]!==Ba[A9]){return c(Bc[A9],Ba[A9])}}return A9===A8?c(Bd,Ba[A9],-1):c(Bc[A9],Bb,1)};c=function(A9,A8,A7){if(A9===A8){return A7}for(A9=A9.nextSibling;A9;){if(A9===A8){return -1}A9=A9.nextSibling}return 1}}S.getText=function(Ba){for(var A9="",A8,A7=0;Ba[A7];A7++){A8=Ba[A7];if(A8.nodeType===3||A8.nodeType===4){A9+=A8.nodeValue}else{if(A8.nodeType!==8){A9+=S.getText(A8.childNodes)}}}return A9};(function(){var A9=A.createElement("div"),A8="script"+(new Date).getTime(),A7=A.documentElement;A9.innerHTML="<a name='"+A8+"'/>";A7.insertBefore(A9,A7.firstChild);if(A.getElementById(A8)){U.find.ID=function(Ba,Bb,Bc){if(typeof Bb.getElementById!=="undefined"&&!Bc){return(Bb=Bb.getElementById(Ba[1]))?Bb.id===Ba[1]||typeof Bb.getAttributeNode!=="undefined"&&Bb.getAttributeNode("id").nodeValue===Ba[1]?[Bb]:A1:[]}};U.filter.ID=function(Ba,Bb){var Bc=typeof Ba.getAttributeNode!=="undefined"&&Ba.getAttributeNode("id");return Ba.nodeType===1&&Bc&&Bc.nodeValue===Bb}}A7.removeChild(A9);A7=A9=null})();(function(){var A7=A.createElement("div");A7.appendChild(A.createComment(""));if(A7.getElementsByTagName("*").length>0){U.find.TAG=function(Ba,A9){var A8=A9.getElementsByTagName(Ba[1]);if(Ba[1]==="*"){for(var Bb=[],Bc=0;A8[Bc];Bc++){A8[Bc].nodeType===1&&Bb.push(A8[Bc])}A8=Bb}return A8}}A7.innerHTML="<a href='#'></a>";if(A7.firstChild&&typeof A7.firstChild.getAttribute!=="undefined"&&A7.firstChild.getAttribute("href")!=="#"){U.attrHandle.href=function(A8){return A8.getAttribute("href",2)}}A7=null})();A.querySelectorAll&&function(){var A9=S,A8=A.createElement("div");A8.innerHTML="<p class='TEST'></p>";if(!(A8.querySelectorAll&&A8.querySelectorAll(".TEST").length===0)){S=function(Bh,Bd,Be,Bg){Bd=Bd||A;Bh=Bh.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!Bg&&!S.isXML(Bd)){if(Bd.nodeType===9){try{return A5(Bd.querySelectorAll(Bh),Be)}catch(Bb){}}else{if(Bd.nodeType===1&&Bd.nodeName.toLowerCase()!=="object"){var Ba=Bd.getAttribute("id"),Bf=Ba||"__sizzle__";Ba||Bd.setAttribute("id",Bf);try{return A5(Bd.querySelectorAll("#"+Bf+" "+Bh),Be)}catch(Bc){}finally{Ba||Bd.removeAttribute("id")}}}}return A9(Bh,Bd,Be,Bg)};for(var A7 in A9){S[A7]=A9[A7]}A8=null}}();(function(){var Ba=A.documentElement,A9=Ba.matchesSelector||Ba.mozMatchesSelector||Ba.webkitMatchesSelector||Ba.msMatchesSelector,A8=false;try{A9.call(A.documentElement,"[test!='']:sizzle")}catch(A7){A8=true}if(A9){S.matchesSelector=function(Bc,Bd){Bd=Bd.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!S.isXML(Bc)){try{if(A8||!U.match.PSEUDO.test(Bd)&&!/!=/.test(Bd)){return A9.call(Bc,Bd)}}catch(Bb){}}return S(Bd,null,null,[Bc]).length>0}}})();(function(){var A7=A.createElement("div");A7.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!A7.getElementsByClassName||A7.getElementsByClassName("e").length===0)){A7.lastChild.className="e";if(A7.getElementsByClassName("e").length!==1){U.order.splice(1,0,"CLASS");U.find.CLASS=function(Ba,A9,A8){if(typeof A9.getElementsByClassName!=="undefined"&&!A8){return A9.getElementsByClassName(Ba[1])}};A7=null}}})();S.contains=A.documentElement.contains?function(A8,A7){return A8!==A7&&(A8.contains?A8.contains(A7):true)}:A.documentElement.compareDocumentPosition?function(A8,A7){return !!(A8.compareDocumentPosition(A7)&16)}:function(){return false};S.isXML=function(A7){return(A7=(A7?A7.ownerDocument||A7:0).documentElement)?A7.nodeName!=="HTML":false};var A3=function(Bd,Bb){for(var A8,A7=[],Bc="",Ba=Bb.nodeType?[Bb]:Bb;A8=U.match.PSEUDO.exec(Bd);){Bc+=A8[0];Bd=Bd.replace(U.match.PSEUDO,"")}Bd=U.relative[Bd]?Bd+"*":Bd;A8=0;for(var A9=Ba.length;A8<A9;A8++){S(Bd,Ba[A8],A7)}return S.filter(Bc,A7)};C.find=S;C.expr=S.selectors;C.expr[":"]=C.expr.filters;C.unique=S.uniqueSort;C.text=S.getText;C.isXMLDoc=S.isXML;C.contains=S.contains})();var H=/Until$/,D=/^(?:parents|prevUntil|prevAll)/,AL=/,/,h=/^.[^:#\[\.,]*$/,AM=Array.prototype.slice,AN=C.expr.match.POS;C.fn.extend({find:function(B){for(var E=this.pushStack("","find",B),S=0,T=0,U=this.length;T<U;T++){S=E.length;C.find(B,this[T],E);if(T>0){for(var P=S;P<E.length;P++){for(var V=0;V<S;V++){if(E[V]===E[P]){E.splice(P--,1);break}}}}}return E},has:function(B){var E=C(B);return this.filter(function(){for(var P=0,S=E.length;P<S;P++){if(C.contains(this,E[P])){return true}}})},not:function(B){return this.pushStack(Al(this,B,false),"not",B)},filter:function(B){return this.pushStack(Al(this,B,true),"filter",B)},is:function(B){return !!B&&C.filter(B,this).length>0},closest:function(S,T){var U=[],V,W,X=this[0];if(C.isArray(S)){var E,B={},P=1;if(X&&S.length){V=0;for(W=S.length;V<W;V++){E=S[V];B[E]||(B[E]=C.expr.match.POS.test(E)?C(E,T||this.context):E)}for(;X&&X.ownerDocument&&X!==T;){for(E in B){V=B[E];if(V.jquery?V.index(X)>-1:C(X).is(V)){U.push({selector:E,elem:X,level:P})}}X=X.parentNode;P++}}return U}E=AN.test(S)?C(S,T||this.context):null;V=0;for(W=this.length;V<W;V++){for(X=this[V];X;){if(E?E.index(X)>-1:C.find.matchesSelector(X,S)){U.push(X);break}else{X=X.parentNode;if(!X||!X.ownerDocument||X===T){break}}}}U=U.length>1?C.unique(U):U;return this.pushStack(U,"closest",S)},index:function(B){if(!B||typeof B==="string"){return C.inArray(this[0],B?C(B):this.parent().children())}return C.inArray(B.jquery?B[0]:B,this)},add:function(B,E){var P=typeof B==="string"?C(B,E||this.context):C.makeArray(B),S=C.merge(this.get(),P);return this.pushStack(!P[0]||!P[0].parentNode||P[0].parentNode.nodeType===11||!S[0]||!S[0].parentNode||S[0].parentNode.nodeType===11?S:C.unique(S))},andSelf:function(){return this.add(this.prevObject)}});C.each({parent:function(B){return(B=B.parentNode)&&B.nodeType!==11?B:null},parents:function(B){return C.dir(B,"parentNode")},parentsUntil:function(B,E,P){return C.dir(B,"parentNode",P)},next:function(B){return C.nth(B,2,"nextSibling")},prev:function(B){return C.nth(B,2,"previousSibling")},nextAll:function(B){return C.dir(B,"nextSibling")},prevAll:function(B){return C.dir(B,"previousSibling")},nextUntil:function(B,E,P){return C.dir(B,"nextSibling",P)},prevUntil:function(B,E,P){return C.dir(B,"previousSibling",P)},siblings:function(B){return C.sibling(B.parentNode.firstChild,B)},children:function(B){return C.sibling(B.firstChild)},contents:function(B){return C.nodeName(B,"iframe")?B.contentDocument||B.contentWindow.document:C.makeArray(B.childNodes)}},function(B,E){C.fn[B]=function(P,S){var T=C.map(this,E,P);H.test(B)||(S=P);if(S&&typeof S==="string"){T=C.filter(S,T)}T=this.length>1?C.unique(T):T;if((this.length>1||AL.test(S))&&D.test(B)){T=T.reverse()}return this.pushStack(T,B,AM.call(arguments).join(","))}});C.extend({filter:function(B,E,P){if(P){B=":not("+B+")"}return E.length===1?C.find.matchesSelector(E[0],B)?[E[0]]:[]:C.find.matches(B,E)},dir:function(B,E,P){var S=[];for(B=B[E];B&&B.nodeType!==9&&(P===A1||B.nodeType!==1||!C(B).is(P));){B.nodeType===1&&S.push(B);B=B[E]}return S},nth:function(B,E,P){E=E||1;for(var S=0;B;B=B[P]){if(B.nodeType===1&&++S===E){break}}return B},sibling:function(B,E){for(var P=[];B;B=B.nextSibling){B.nodeType===1&&B!==E&&P.push(B)}return P}});var x=/ jQuery\d+="(?:\d+|null)"/g,I=/^\s+/,l=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,m=/<([\w:]+)/,AO=/<tbody/i,AP=/<|&#?\w+;/,n=/<(?:script|object|embed|option|style)/i,o=/checked\s*(?:[^=]|=\s*.checked.)/i,AQ=/\=([^="'>\s]+\/)>/g,AV={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,"",""]};AV.optgroup=AV.option;AV.tbody=AV.tfoot=AV.colgroup=AV.caption=AV.thead;AV.th=AV.td;if(!C.support.htmlSerialize){AV._default=[1,"div<div>","</div>"]}C.fn.extend({text:function(B){if(C.isFunction(B)){return this.each(function(E){var P=C(this);P.text(B.call(this,E,P.text()))})}if(typeof B!=="object"&&B!==A1){return this.empty().append((this[0]&&this[0].ownerDocument||A).createTextNode(B))}return C.text(this)},wrapAll:function(B){if(C.isFunction(B)){return this.each(function(P){C(this).wrapAll(B.call(this,P))})}if(this[0]){var E=C(B,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&E.insertBefore(this[0]);E.map(function(){for(var P=this;P.firstChild&&P.firstChild.nodeType===1;){P=P.firstChild}return P}).append(this)}return this},wrapInner:function(B){if(C.isFunction(B)){return this.each(function(E){C(this).wrapInner(B.call(this,E))})}return this.each(function(){var E=C(this),P=E.contents();P.length?P.wrapAll(B):E.append(B)})},wrap:function(B){return this.each(function(){C(this).wrapAll(B)})},unwrap:function(){return this.parent().each(function(){C.nodeName(this,"body")||C(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(B){this.nodeType===1&&this.appendChild(B)})},prepend:function(){return this.domManip(arguments,true,function(B){this.nodeType===1&&this.insertBefore(B,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})}else{if(arguments.length){var B=C(arguments[0]);B.push.apply(B,this.toArray());return this.pushStack(B,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})}else{if(arguments.length){var B=this.pushStack(this,"after",arguments);B.push.apply(B,C(arguments[0]).toArray());return B}}},remove:function(B,E){for(var P=0,S;(S=this[P])!=null;P++){if(!B||C.filter(B,[S]).length){if(!E&&S.nodeType===1){C.cleanData(S.getElementsByTagName("*"));C.cleanData([S])}S.parentNode&&S.parentNode.removeChild(S)}}return this},empty:function(){for(var B=0,E;(E=this[B])!=null;B++){for(E.nodeType===1&&C.cleanData(E.getElementsByTagName("*"));E.firstChild;){E.removeChild(E.firstChild)}}return this},clone:function(B){var E=this.map(function(){if(!C.support.noCloneEvent&&!C.isXMLDoc(this)){var P=this.outerHTML,S=this.ownerDocument;if(!P){P=S.createElement("div");P.appendChild(this.cloneNode(true));P=P.innerHTML}return C.clean([P.replace(x,"").replace(AQ,'="$1">').replace(I,"")],S)[0]}else{return this.cloneNode(true)}});if(B===true){Am(this,E);Am(this.find("*"),E.find("*"))}return E},html:function(B){if(B===A1){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(x,""):null}else{if(typeof B==="string"&&!n.test(B)&&(C.support.leadingWhitespace||!I.test(B))&&!AV[(m.exec(B)||["",""])[1].toLowerCase()]){B=B.replace(l,"<$1></$2>");try{for(var E=0,P=this.length;E<P;E++){if(this[E].nodeType===1){C.cleanData(this[E].getElementsByTagName("*"));this[E].innerHTML=B}}}catch(S){this.empty().append(B)}}else{C.isFunction(B)?this.each(function(U){var T=C(this);T.html(B.call(this,U,T.html()))}):this.empty().append(B)}}return this},replaceWith:function(B){if(this[0]&&this[0].parentNode){if(C.isFunction(B)){return this.each(function(E){var P=C(this),S=P.html();P.replaceWith(B.call(this,E,S))})}if(typeof B!=="string"){B=C(B).detach()}return this.each(function(){var E=this.nextSibling,P=this.parentNode;C(this).remove();E?C(E).before(B):C(P).append(B)})}else{return this.pushStack(C(C.isFunction(B)?B():B),"replaceWith",B)}},detach:function(B){return this.remove(B,true)},domManip:function(S,T,U){var V,W,X,E=S[0],B=[];if(!C.support.checkClone&&arguments.length===3&&typeof E==="string"&&o.test(E)){return this.each(function(){C(this).domManip(S,T,U,true)})}if(C.isFunction(E)){return this.each(function(Z){var Y=C(this);S[0]=E.call(this,Z,T?Y.html():A1);Y.domManip(S,T,U)})}if(this[0]){V=E&&E.parentNode;V=C.support.parentNode&&V&&V.nodeType===11&&V.childNodes.length===this.length?{fragment:V}:C.buildFragment(S,this,B);X=V.fragment;if(W=X.childNodes.length===1?X=X.firstChild:X.firstChild){T=T&&C.nodeName(W,"tr");W=0;for(var P=this.length;W<P;W++){U.call(T?C.nodeName(this[W],"table")?this[W].getElementsByTagName("tbody")[0]||this[W].appendChild(this[W].ownerDocument.createElement("tbody")):this[W]:this[W],W>0||V.cacheable||this.length>1?X.cloneNode(true):X)}}B.length&&C.each(B,k)}return this}});C.buildFragment=function(B,E,S){var T,U,P;E=E&&E[0]?E[0].ownerDocument||E[0]:A;if(B.length===1&&typeof B[0]==="string"&&B[0].length<512&&E===A&&!n.test(B[0])&&(C.support.checkClone||!o.test(B[0]))){U=true;if(P=C.fragments[B[0]]){if(P!==1){T=P}}}if(!T){T=E.createDocumentFragment();C.clean(B,E,T,S)}if(U){C.fragments[B[0]]=P?T:1}return{fragment:T,cacheable:U}};C.fragments={};C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(B,E){C.fn[B]=function(S){var T=[];S=C(S);var U=this.length===1&&this[0].parentNode;if(U&&U.nodeType===11&&U.childNodes.length===1&&S.length===1){S[E](this[0]);return this}else{U=0;for(var P=S.length;U<P;U++){var V=(U>0?this.clone(true):this).get();C(S[U])[E](V);T=T.concat(V)}return this.pushStack(T,B,S.selector)}}});C.extend({clean:function(T,U,V,W){U=U||A;if(typeof U.createElement==="undefined"){U=U.ownerDocument||U[0]&&U[0].ownerDocument||A}for(var X=[],Z=0,P;(P=T[Z])!=null;Z++){if(typeof P==="number"){P+=""}if(P){if(typeof P==="string"&&!AP.test(P)){P=U.createTextNode(P)}else{if(typeof P==="string"){P=P.replace(l,"<$1></$2>");var E=(m.exec(P)||["",""])[1].toLowerCase(),S=AV[E]||AV._default,B=S[0],Y=U.createElement("div");for(Y.innerHTML=S[1]+P+S[2];B--;){Y=Y.lastChild}if(!C.support.tbody){B=AO.test(P);E=E==="table"&&!B?Y.firstChild&&Y.firstChild.childNodes:S[1]==="<table>"&&!B?Y.childNodes:[];for(S=E.length-1;S>=0;--S){C.nodeName(E[S],"tbody")&&!E[S].childNodes.length&&E[S].parentNode.removeChild(E[S])}}!C.support.leadingWhitespace&&I.test(P)&&Y.insertBefore(U.createTextNode(I.exec(P)[0]),Y.firstChild);P=Y.childNodes}}if(P.nodeType){X.push(P)}else{X=C.merge(X,P)}}}if(V){for(Z=0;X[Z];Z++){if(W&&C.nodeName(X[Z],"script")&&(!X[Z].type||X[Z].type.toLowerCase()==="text/javascript")){W.push(X[Z].parentNode?X[Z].parentNode.removeChild(X[Z]):X[Z])}else{X[Z].nodeType===1&&X.splice.apply(X,[Z+1,0].concat(C.makeArray(X[Z].getElementsByTagName("script"))));V.appendChild(X[Z])}}}return X},cleanData:function(S){for(var T,U,V=C.cache,W=C.event.special,X=C.support.deleteExpando,E=0,B;(B=S[E])!=null;E++){if(!(B.nodeName&&C.noData[B.nodeName.toLowerCase()])){if(U=B[C.expando]){if((T=V[U])&&T.events){for(var P in T.events){W[P]?C.event.remove(B,P):C.removeEvent(B,P,T.handle)}}if(X){delete B[C.expando]}else{B.removeAttribute&&B.removeAttribute(C.expando)}delete V[U]}}}}});var q=/alpha\([^)]*\)/i,AR=/opacity=([^)]*)/,AD=/-([a-z])/ig,AE=/([A-Z])/g,r=/^-?\d+(?:px)?$/i,AF=/^-?\d/,AG={position:"absolute",visibility:"hidden",display:"block"},J=["Left","Right"],K=["Top","Bottom"],A0,u,Ao,AH=function(B,E){return E.toUpperCase()};C.fn.css=function(B,E){if(arguments.length===2&&E===A1){return this}return C.access(this,B,E,true,function(P,S,T){return T!==A1?C.style(P,S,T):C.css(P,S)})};C.extend({cssHooks:{opacity:{get:function(B,E){if(E){var P=A0(B,"opacity","opacity");return P===""?"1":P}else{return B.style.opacity}}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":C.support.cssFloat?"cssFloat":"styleFloat"},style:function(S,T,U,V){if(!(!S||S.nodeType===3||S.nodeType===8||!S.style)){var W,X=C.camelCase(T),E=S.style,B=C.cssHooks[X];T=C.cssProps[X]||X;if(U!==A1){if(!(typeof U==="number"&&isNaN(U)||U==null)){if(typeof U==="number"&&!C.cssNumber[X]){U+="px"}if(!B||!("set" in B)||(U=B.set(S,U))!==A1){try{E[T]=U}catch(P){}}}}else{if(B&&"get" in B&&(W=B.get(S,false,V))!==A1){return W}return E[T]}}},css:function(B,E,S){var T,U=C.camelCase(E),P=C.cssHooks[U];E=C.cssProps[U]||U;if(P&&"get" in P&&(T=P.get(B,true,S))!==A1){return T}else{if(A0){return A0(B,E,U)}}},swap:function(B,E,P){var S={},T;for(T in E){S[T]=B.style[T];B.style[T]=E[T]}P.call(B);for(T in E){B.style[T]=S[T]}},camelCase:function(B){return B.replace(AD,AH)}});C.curCSS=C.css;C.each(["height","width"],function(B,E){C.cssHooks[E]={get:function(S,T,U){var P;if(T){if(S.offsetWidth!==0){P=An(S,E,U)}else{C.swap(S,AG,function(){P=An(S,E,U)})}if(P<=0){P=A0(S,E,E);if(P==="0px"&&Ao){P=Ao(S,E,E)}if(P!=null){return P===""||P==="auto"?"0px":P}}if(P<0||P==null){P=S.style[E];return P===""||P==="auto"?"0px":P}return typeof P==="string"?P:P+"px"}},set:function(P,S){if(r.test(S)){S=parseFloat(S);if(S>=0){return S+"px"}}else{return S}}}});if(!C.support.opacity){C.cssHooks.opacity={get:function(B,E){return AR.test((E&&B.currentStyle?B.currentStyle.filter:B.style.filter)||"")?parseFloat(RegExp.$1)/100+"":E?"1":""},set:function(B,E){var P=B.style;P.zoom=1;var S=C.isNaN(E)?"":"alpha(opacity="+E*100+")",T=P.filter||"";P.filter=q.test(T)?T.replace(q,S):P.filter+" "+S}}}if(A.defaultView&&A.defaultView.getComputedStyle){u=function(B,E,P){var S;P=P.replace(AE,"-$1").toLowerCase();if(!(E=B.ownerDocument.defaultView)){return A1}if(E=E.getComputedStyle(B,null)){S=E.getPropertyValue(P);if(S===""&&!C.contains(B.ownerDocument.documentElement,B)){S=C.style(B,P)}}return S}}if(A.documentElement.currentStyle){Ao=function(B,E){var S,T,U=B.currentStyle&&B.currentStyle[E],P=B.style;if(!r.test(U)&&AF.test(U)){S=P.left;T=B.runtimeStyle.left;B.runtimeStyle.left=B.currentStyle.left;P.left=E==="fontSize"?"1em":U||0;U=P.pixelLeft+"px";P.left=S;B.runtimeStyle.left=T}return U===""?"auto":U}}A0=u||Ao;if(C.expr&&C.expr.filters){C.expr.filters.hidden=function(B){var E=B.offsetHeight;return B.offsetWidth===0&&E===0||!C.support.reliableHiddenOffsets&&(B.style.display||C.css(B,"display"))==="none"};C.expr.filters.visible=function(B){return !C.expr.filters.hidden(B)}}var AI=C.now(),AJ=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,AK=/^(?:select|textarea)/i,Av=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Aw=/^(?:GET|HEAD)$/,L=/\[\]$/,AX=/\=\?(&|$)/,Ai=/\?/,Ax=/([?&])_=[^&]*/,Ay=/^(\w+:)?\/\/([^\/?#]+)/,Az=/%20/g,AA=/#.*$/,a=C.fn.load;C.fn.extend({load:function(B,E,S){if(typeof B!=="string"&&a){return a.apply(this,arguments)}else{if(!this.length){return this}}var T=B.indexOf(" ");if(T>=0){var U=B.slice(T,B.length);B=B.slice(0,T)}T="GET";if(E){if(C.isFunction(E)){S=E;E=null}else{if(typeof E==="object"){E=C.param(E,C.ajaxSettings.traditional);T="POST"}}}var P=this;C.ajax({url:B,type:T,dataType:"html",data:E,complete:function(W,V){if(V==="success"||V==="notmodified"){P.html(U?C("<div>").append(W.responseText.replace(AJ,"")).find(U):W.responseText)}S&&P.each(S,[W.responseText,V,W])}});return this},serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?C.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||AK.test(this.nodeName)||Av.test(this.type))}).map(function(B,E){var P=C(this).val();return P==null?null:C.isArray(P)?C.map(P,function(S){return{name:E.name,value:S}}):{name:E.name,value:P}}).get()}});C.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(B,E){C.fn[E]=function(P){return this.bind(E,P)}});C.extend({get:function(B,E,P,S){if(C.isFunction(E)){S=S||P;P=E;E=null}return C.ajax({type:"GET",url:B,data:E,success:P,dataType:S})},getScript:function(B,E){return C.get(B,null,E,"script")},getJSON:function(B,E,P){return C.get(B,E,P,"json")},post:function(B,E,P,S){if(C.isFunction(E)){S=S||P;P=E;E={}}return C.ajax({type:"POST",url:B,data:E,success:P,dataType:S})},ajaxSetup:function(B){C.extend(C.ajaxSettings,B)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new A2.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(X){var Y=C.extend(true,{},C.ajaxSettings,X),Z,c,t,P=Y.type.toUpperCase(),U=Aw.test(P);Y.url=Y.url.replace(AA,"");Y.context=X&&X.context!=null?X.context:Y;if(Y.data&&Y.processData&&typeof Y.data!=="string"){Y.data=C.param(Y.data,Y.traditional)}if(Y.dataType==="jsonp"){if(P==="GET"){AX.test(Y.url)||(Y.url+=(Ai.test(Y.url)?"&":"?")+(Y.jsonp||"callback")+"=?")}else{if(!Y.data||!AX.test(Y.data)){Y.data=(Y.data?Y.data+"&":"")+(Y.jsonp||"callback")+"=?"}}Y.dataType="json"}if(Y.dataType==="json"&&(Y.data&&AX.test(Y.data)||AX.test(Y.url))){Z=Y.jsonpCallback||"jsonp"+AI++;if(Y.data){Y.data=(Y.data+"").replace(AX,"="+Z+"$1")}Y.url=Y.url.replace(AX,"="+Z+"$1");Y.dataType="script";var T=A2[Z];A2[Z]=function(Ba){if(C.isFunction(T)){T(Ba)}else{A2[Z]=A1;try{delete A2[Z]}catch(Bb){}}t=Ba;C.handleSuccess(Y,E,c,t);C.handleComplete(Y,E,c,t);B&&B.removeChild(A7)}}if(Y.dataType==="script"&&Y.cache===null){Y.cache=false}if(Y.cache===false&&U){var W=C.now(),A9=Y.url.replace(Ax,"$1_="+W);Y.url=A9+(A9===Y.url?(Ai.test(Y.url)?"&":"?")+"_="+W:"")}if(Y.data&&U){Y.url+=(Ai.test(Y.url)?"&":"?")+Y.data}Y.global&&C.active++===0&&C.event.trigger("ajaxStart");W=(W=Ay.exec(Y.url))&&(W[1]&&W[1].toLowerCase()!==location.protocol||W[2].toLowerCase()!==location.host);if(Y.dataType==="script"&&P==="GET"&&W){var B=A.getElementsByTagName("head")[0]||A.documentElement,A7=A.createElement("script");if(Y.scriptCharset){A7.charset=Y.scriptCharset}A7.src=Y.url;if(!Z){var A8=false;A7.onload=A7.onreadystatechange=function(){if(!A8&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){A8=true;C.handleSuccess(Y,E,c,t);C.handleComplete(Y,E,c,t);A7.onload=A7.onreadystatechange=null;B&&A7.parentNode&&B.removeChild(A7)}}}B.insertBefore(A7,B.firstChild);return A1}var A5=false,E=Y.xhr();if(E){Y.username?E.open(P,Y.url,Y.async,Y.username,Y.password):E.open(P,Y.url,Y.async);try{if(Y.data!=null&&!U||X&&X.contentType){E.setRequestHeader("Content-Type",Y.contentType)}if(Y.ifModified){C.lastModified[Y.url]&&E.setRequestHeader("If-Modified-Since",C.lastModified[Y.url]);C.etag[Y.url]&&E.setRequestHeader("If-None-Match",C.etag[Y.url])}W||E.setRequestHeader("X-Requested-With","XMLHttpRequest");E.setRequestHeader("Accept",Y.dataType&&Y.accepts[Y.dataType]?Y.accepts[Y.dataType]+", */*; q=0.01":Y.accepts._default)}catch(A4){}if(Y.beforeSend&&Y.beforeSend.call(Y.context,E,Y)===false){Y.global&&C.active--===1&&C.event.trigger("ajaxStop");E.abort();return false}Y.global&&C.triggerGlobal(Y,"ajaxSend",[E,Y]);var A6=E.onreadystatechange=function(Ba){if(!E||E.readyState===0||Ba==="abort"){A5||C.handleComplete(Y,E,c,t);A5=true;if(E){E.onreadystatechange=C.noop}}else{if(!A5&&E&&(E.readyState===4||Ba==="timeout")){A5=true;E.onreadystatechange=C.noop;c=Ba==="timeout"?"timeout":!C.httpSuccess(E)?"error":Y.ifModified&&C.httpNotModified(E,Y.url)?"notmodified":"success";var Bb;if(c==="success"){try{t=C.httpData(E,Y.dataType,Y)}catch(Bc){c="parsererror";Bb=Bc}}if(c==="success"||c==="notmodified"){Z||C.handleSuccess(Y,E,c,t)}else{C.handleError(Y,E,c,Bb)}Z||C.handleComplete(Y,E,c,t);Ba==="timeout"&&E.abort();if(Y.async){E=null}}}};try{var A3=E.abort;E.abort=function(){E&&Function.prototype.call.call(A3,E);A6("abort")}}catch(S){}Y.async&&Y.timeout>0&&setTimeout(function(){E&&!A5&&A6("timeout")},Y.timeout);try{E.send(U||Y.data==null?null:Y.data)}catch(V){C.handleError(Y,E,null,V);C.handleComplete(Y,E,c,t)}Y.async||A6();return E}},param:function(B,E){var P=[],S=function(U,V){V=C.isFunction(V)?V():V;P[P.length]=encodeURIComponent(U)+"="+encodeURIComponent(V)};if(E===A1){E=C.ajaxSettings.traditional}if(C.isArray(B)||B.jquery){C.each(B,function(){S(this.name,this.value)})}else{for(var T in B){Ar(T,B[T],E,S)}}return P.join("&").replace(Az,"+")}});C.extend({active:0,lastModified:{},etag:{},handleError:function(B,E,P,S){B.error&&B.error.call(B.context,E,P,S);B.global&&C.triggerGlobal(B,"ajaxError",[E,B,S])},handleSuccess:function(B,E,P,S){B.success&&B.success.call(B.context,S,P,E);B.global&&C.triggerGlobal(B,"ajaxSuccess",[E,B])},handleComplete:function(B,E,P){B.complete&&B.complete.call(B.context,E,P);B.global&&C.triggerGlobal(B,"ajaxComplete",[E,B]);B.global&&C.active--===1&&C.event.trigger("ajaxStop")},triggerGlobal:function(B,E,P){(B.context&&B.context.url==null?C(B.context):C.event).trigger(E,P)},httpSuccess:function(B){try{return !B.status&&location.protocol==="file:"||B.status>=200&&B.status<300||B.status===304||B.status===1223}catch(E){}return false},httpNotModified:function(B,E){var P=B.getResponseHeader("Last-Modified"),S=B.getResponseHeader("Etag");if(P){C.lastModified[E]=P}if(S){C.etag[E]=S}return B.status===304},httpData:function(B,E,P){var S=B.getResponseHeader("content-type")||"",T=E==="xml"||!E&&S.indexOf("xml")>=0;B=T?B.responseXML:B.responseText;T&&B.documentElement.nodeName==="parsererror"&&C.error("parsererror");if(P&&P.dataFilter){B=P.dataFilter(B,E)}if(typeof B==="string"){if(E==="json"||!E&&S.indexOf("json")>=0){B=C.parseJSON(B)}else{if(E==="script"||!E&&S.indexOf("javascript")>=0){C.globalEval(B)}}}return B}});if(A2.ActiveXObject){C.ajaxSettings.xhr=function(){if(A2.location.protocol!=="file:"){try{return new A2.XMLHttpRequest}catch(B){}}try{return new A2.ActiveXObject("Microsoft.XMLHTTP")}catch(E){}}}C.support.ajax=!!C.ajaxSettings.xhr();var As={},AB=/^(?:toggle|show|hide)$/,AC=/^([+\-]=)?([\d+.\-]+)(.*)$/,Ap,y=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];C.fn.extend({show:function(B,E,P){if(B||B===0){return this.animate(AW("show",3),B,E,P)}else{P=0;for(var S=this.length;P<S;P++){B=this[P];E=B.style.display;if(!C.data(B,"olddisplay")&&E==="none"){E=B.style.display=""}E===""&&C.css(B,"display")==="none"&&C.data(B,"olddisplay",z(B.nodeName))}for(P=0;P<S;P++){B=this[P];E=B.style.display;if(E===""||E==="none"){B.style.display=C.data(B,"olddisplay")||""}}return this}},hide:function(B,E,P){if(B||B===0){return this.animate(AW("hide",3),B,E,P)}else{B=0;for(E=this.length;B<E;B++){P=C.css(this[B],"display");P!=="none"&&C.data(this[B],"olddisplay",P)}for(B=0;B<E;B++){this[B].style.display="none"}return this}},_toggle:C.fn.toggle,toggle:function(B,E,P){var S=typeof B==="boolean";if(C.isFunction(B)&&C.isFunction(E)){this._toggle.apply(this,arguments)}else{B==null||S?this.each(function(){var T=S?B:C(this).is(":hidden");C(this)[T?"show":"hide"]()}):this.animate(AW("toggle",3),B,E,P)}return this},fadeTo:function(B,E,P,S){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:E},B,P,S)},animate:function(B,E,P,S){var T=C.speed(E,P,S);if(C.isEmptyObject(B)){return this.each(T.complete)}return this[T.queue===false?"each":"queue"](function(){var X=C.extend({},T),Z,Y=this.nodeType===1,W=Y&&C(this).is(":hidden"),V=this;for(Z in B){var U=C.camelCase(Z);if(Z!==U){B[U]=B[Z];delete B[Z];Z=U}if(B[Z]==="hide"&&W||B[Z]==="show"&&!W){return X.complete.call(this)}if(Y&&(Z==="height"||Z==="width")){X.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(C.css(this,"display")==="inline"&&C.css(this,"float")==="none"){if(C.support.inlineBlockNeedsLayout){if(z(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}else{this.style.display="inline-block"}}}if(C.isArray(B[Z])){(X.specialEasing=X.specialEasing||{})[Z]=B[Z][1];B[Z]=B[Z][0]}}if(X.overflow!=null){this.style.overflow="hidden"}X.curAnim=C.extend({},B);C.each(B,function(A3,A4){var A6=new C.fx(V,X,A3);if(AB.test(A4)){A6[A4==="toggle"?W?"show":"hide":A4](B)}else{var t=AC.exec(A4),A5=A6.cur()||0;if(t){var c=parseFloat(t[2]),A7=t[3]||"px";if(A7!=="px"){C.style(V,A3,(c||1)+A7);A5=(c||1)/A6.cur()*A5;C.style(V,A3,A5+A7)}if(t[1]){c=(t[1]==="-="?-1:1)*c+A5}A6.custom(A5,c,A7)}else{A6.custom(A5,A4,"")}}});return true})},stop:function(B,E){var P=C.timers;B&&this.queue([]);this.each(function(){for(var S=P.length-1;S>=0;S--){if(P[S].elem===this){E&&P[S](true);P.splice(S,1)}}});E||this.dequeue();return this}});C.each({slideDown:AW("show",1),slideUp:AW("hide",1),slideToggle:AW("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(B,E){C.fn[B]=function(P,S,T){return this.animate(E,P,S,T)}});C.extend({speed:function(B,E,P){var S=B&&typeof B==="object"?C.extend({},B):{complete:P||!P&&E||C.isFunction(B)&&B,duration:B,easing:P&&E||E&&!C.isFunction(E)&&E};S.duration=C.fx.off?0:typeof S.duration==="number"?S.duration:S.duration in C.fx.speeds?C.fx.speeds[S.duration]:C.fx.speeds._default;S.old=S.complete;S.complete=function(){S.queue!==false&&C(this).dequeue();C.isFunction(S.old)&&S.old.call(this)};return S},easing:{linear:function(B,E,P,S){return P+S*B},swing:function(B,E,P,S){return(-Math.cos(B*Math.PI)/2+0.5)*S+P}},timers:[],fx:function(B,E,P){this.options=E;this.elem=B;this.prop=P;if(!E.orig){E.orig={}}}});C.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(C.fx.step[this.prop]||C.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 B=parseFloat(C.css(this.elem,this.prop));return B&&B>-10000?B:0},custom:function(B,E,S){function T(V){return U.step(V)}var U=this,P=C.fx;this.startTime=C.now();this.start=B;this.end=E;this.unit=S||this.unit||"px";this.now=this.start;this.pos=this.state=0;T.elem=this.elem;if(T()&&C.timers.push(T)&&!Ap){Ap=setInterval(P.tick,P.interval)}},show:function(){this.options.orig[this.prop]=C.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());C(this.elem).show()},hide:function(){this.options.orig[this.prop]=C.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(B){var E=C.now(),S=true;if(B||E>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var T in this.options.curAnim){if(this.options.curAnim[T]!==true){S=false}}if(S){if(this.options.overflow!=null&&!C.support.shrinkWrapBlocks){var U=this.elem,P=this.options;C.each(["","X","Y"],function(X,W){U.style["overflow"+W]=P.overflow[X]})}this.options.hide&&C(this.elem).hide();if(this.options.hide||this.options.show){for(var V in this.options.curAnim){C.style(this.elem,V,this.options.orig[V])}}this.options.complete.call(this.elem)}return false}else{B=E-this.startTime;this.state=B/this.options.duration;E=this.options.easing||(C.easing.swing?"swing":"linear");this.pos=C.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||E](this.state,B,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};C.extend(C.fx,{tick:function(){for(var B=C.timers,E=0;E<B.length;E++){B[E]()||B.splice(E--,1)}B.length||C.fx.stop()},interval:13,stop:function(){clearInterval(Ap);Ap=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(B){C.style(B.elem,"opacity",B.now)},_default:function(B){if(B.elem.style&&B.elem.style[B.prop]!=null){B.elem.style[B.prop]=(B.prop==="width"||B.prop==="height"?Math.max(0,B.now):B.now)+B.unit}else{B.elem[B.prop]=B.now}}}});if(C.expr&&C.expr.filters){C.expr.filters.animated=function(B){return C.grep(C.timers,function(E){return B===E.elem}).length}}var Au=/^t(?:able|d|h)$/i,b=/^(?:body|html)$/i;C.fn.offset="getBoundingClientRect" in A.documentElement?function(B){var E=this[0],S;if(B){return this.each(function(V){C.offset.setOffset(this,B,V)})}if(!E||!E.ownerDocument){return null}if(E===E.ownerDocument.body){return C.offset.bodyOffset(E)}try{S=E.getBoundingClientRect()}catch(T){}var U=E.ownerDocument,P=U.documentElement;if(!S||!C.contains(P,E)){return S||{top:0,left:0}}E=U.body;U=At(U);return{top:S.top+(U.pageYOffset||C.support.boxModel&&P.scrollTop||E.scrollTop)-(P.clientTop||E.clientTop||0),left:S.left+(U.pageXOffset||C.support.boxModel&&P.scrollLeft||E.scrollLeft)-(P.clientLeft||E.clientLeft||0)}}:function(S){var T=this[0];if(S){return this.each(function(Y){C.offset.setOffset(this,S,Y)})}if(!T||!T.ownerDocument){return null}if(T===T.ownerDocument.body){return C.offset.bodyOffset(T)}C.offset.initialize();var U,V=T.offsetParent,W=T.ownerDocument,X=W.documentElement,E=W.body;U=(W=W.defaultView)?W.getComputedStyle(T,null):T.currentStyle;for(var B=T.offsetTop,P=T.offsetLeft;(T=T.parentNode)&&T!==E&&T!==X;){if(C.offset.supportsFixedPosition&&U.position==="fixed"){break}U=W?W.getComputedStyle(T,null):T.currentStyle;B-=T.scrollTop;P-=T.scrollLeft;if(T===V){B+=T.offsetTop;P+=T.offsetLeft;if(C.offset.doesNotAddBorder&&!(C.offset.doesAddBorderForTableAndCells&&Au.test(T.nodeName))){B+=parseFloat(U.borderTopWidth)||0;P+=parseFloat(U.borderLeftWidth)||0}V=T.offsetParent}if(C.offset.subtractsBorderForOverflowNotVisible&&U.overflow!=="visible"){B+=parseFloat(U.borderTopWidth)||0;P+=parseFloat(U.borderLeftWidth)||0}U=U}if(U.position==="relative"||U.position==="static"){B+=E.offsetTop;P+=E.offsetLeft}if(C.offset.supportsFixedPosition&&U.position==="fixed"){B+=Math.max(X.scrollTop,E.scrollTop);P+=Math.max(X.scrollLeft,E.scrollLeft)}return{top:B,left:P}};C.offset={initialize:function(){var B=A.body,E=A.createElement("div"),S,T,U,P=parseFloat(C.css(B,"marginTop"))||0;C.extend(E.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});E.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";B.insertBefore(E,B.firstChild);S=E.firstChild;T=S.firstChild;U=S.nextSibling.firstChild.firstChild;this.doesNotAddBorder=T.offsetTop!==5;this.doesAddBorderForTableAndCells=U.offsetTop===5;T.style.position="fixed";T.style.top="20px";this.supportsFixedPosition=T.offsetTop===20||T.offsetTop===15;T.style.position=T.style.top="";S.style.overflow="hidden";S.style.position="relative";this.subtractsBorderForOverflowNotVisible=T.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=B.offsetTop!==P;B.removeChild(E);C.offset.initialize=C.noop},bodyOffset:function(B){var E=B.offsetTop,P=B.offsetLeft;C.offset.initialize();if(C.offset.doesNotIncludeMarginInBodyOffset){E+=parseFloat(C.css(B,"marginTop"))||0;P+=parseFloat(C.css(B,"marginLeft"))||0}return{top:E,left:P}},setOffset:function(T,U,V){var W=C.css(T,"position");if(W==="static"){T.style.position="relative"}var X=C(T),Y=X.offset(),P=C.css(T,"top"),E=C.css(T,"left"),S=W==="absolute"&&C.inArray("auto",[P,E])>-1;W={};var B={};if(S){B=X.position()}P=S?B.top:parseInt(P,10)||0;E=S?B.left:parseInt(E,10)||0;if(C.isFunction(U)){U=U.call(T,V,Y)}if(U.top!=null){W.top=U.top-Y.top+P}if(U.left!=null){W.left=U.left-Y.left+E}"using" in U?U.using.call(T,W):X.css(W)}};C.fn.extend({position:function(){if(!this[0]){return null}var B=this[0],E=this.offsetParent(),P=this.offset(),S=b.test(E[0].nodeName)?{top:0,left:0}:E.offset();P.top-=parseFloat(C.css(B,"marginTop"))||0;P.left-=parseFloat(C.css(B,"marginLeft"))||0;S.top+=parseFloat(C.css(E[0],"borderTopWidth"))||0;S.left+=parseFloat(C.css(E[0],"borderLeftWidth"))||0;return{top:P.top-S.top,left:P.left-S.left}},offsetParent:function(){return this.map(function(){for(var B=this.offsetParent||A.body;B&&!b.test(B.nodeName)&&C.css(B,"position")==="static";){B=B.offsetParent}return B})}});C.each(["Left","Top"],function(B,E){var P="scroll"+E;C.fn[P]=function(T){var U=this[0],S;if(!U){return null}if(T!==A1){return this.each(function(){if(S=At(this)){S.scrollTo(!B?T:C(S).scrollLeft(),B?T:C(S).scrollTop())}else{this[P]=T}})}else{return(S=At(U))?"pageXOffset" in S?S[B?"pageYOffset":"pageXOffset"]:C.support.boxModel&&S.document.documentElement[P]||S.document.body[P]:U[P]}}});C.each(["Height","Width"],function(B,E){var P=E.toLowerCase();C.fn["inner"+E]=function(){return this[0]?parseFloat(C.css(this[0],P,"padding")):null};C.fn["outer"+E]=function(S){return this[0]?parseFloat(C.css(this[0],P,S?"margin":"border")):null};C.fn[P]=function(T){var U=this[0];if(!U){return T==null?null:this}if(C.isFunction(T)){return this.each(function(W){var V=C(this);V[P](T.call(this,W,V[P]()))})}if(C.isWindow(U)){return U.document.compatMode==="CSS1Compat"&&U.document.documentElement["client"+E]||U.document.body["client"+E]}else{if(U.nodeType===9){return Math.max(U.documentElement["client"+E],U.body["scroll"+E],U.documentElement["scroll"+E],U.body["offset"+E],U.documentElement["offset"+E])}else{if(T===A1){U=C.css(U,P);var S=parseFloat(U);return C.isNaN(S)?U:S}else{return this.css(P,typeof T==="string"?T:T+"px")}}}}})})(window);(function(E){var F="2.72";if(E.support==undefined){E.support={opacity:!(E.browser.msie)}}function D(P){if(E.fn.cycle.debug){A(P)}}function A(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}E.fn.cycle=function(Q,P){var R={s:this.selector,c:this.context};if(this.length===0&&Q!="stop"){if(!E.isReady&&R.s){A("DOM not ready, queuing slideshow");E(function(){E(R.s,R.c).cycle(Q,P)});return this}A("terminating; zero elements found by selector"+(E.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var S=M(this,Q,P);if(S===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var T=E(this);var U=S.slideExpr?E(S.slideExpr,this):T.children();var X=U.get();if(X.length<2){A("terminating; too few slides: "+X.length);return}var V=B(T,U,X,S,R);if(V===false){return}var W=V.continuous?10:H(V.currSlide,V.nextSlide,V,!V.rev);if(W){W+=(V.delay||0);if(W<10){W=10}D("first timeout: "+W);this.cycleTimeout=setTimeout(function(){N(X,V,0,!V.rev)},W)}})};function M(R,S,Q){if(R.cycleStop==undefined){R.cycleStop=0}if(S===undefined||S===null){S={}}if(S.constructor==String){switch(S){case"stop":R.cycleStop++;if(R.cycleTimeout){clearTimeout(R.cycleTimeout)}R.cycleTimeout=0;E(R).removeData("cycle.opts");return false;case"pause":R.cyclePause=1;return false;case"resume":R.cyclePause=0;if(Q===true){S=E(R).data("cycle.opts");if(!S){A("options not found, can not resume");return false}if(R.cycleTimeout){clearTimeout(R.cycleTimeout);R.cycleTimeout=0}N(S.elements,S,1,1)}return false;case"prev":case"next":var P=E(R).data("cycle.opts");if(!P){A('options not found, "prev/next" ignored');return false}E.fn.cycle[S](P);return false;default:S={fx:S}}return S}else{if(S.constructor==Number){var T=S;S=E(R).data("cycle.opts");if(!S){A("options not found, can not advance slide");return false}if(T<0||T>=S.elements.length){A("invalid slide index: "+T);return false}S.nextSlide=T;if(R.cycleTimeout){clearTimeout(R.cycleTimeout);R.cycleTimeout=0}if(typeof Q=="string"){S.oneTimeFx=Q}N(S.elements,S,1,T>=S.currSlide);return false}}return S}function O(Q,P){if(!E.support.opacity&&P.cleartype&&Q.style.filter){try{Q.style.removeAttribute("filter")}catch(R){}}}function B(d,P,V,R,b){var c=E.extend({},E.fn.cycle.defaults,R||{},E.metadata?d.metadata():E.meta?d.data():{});if(c.autostop){c.countdown=c.autostopCount||V.length}var Q=d[0];d.data("cycle.opts",c);c.$cont=d;c.stopCount=Q.cycleStop;c.elements=V;c.before=c.before?[c.before]:[];c.after=c.after?[c.after]:[];c.after.unshift(function(){c.busy=0});if(!E.support.opacity&&c.cleartype){c.after.push(function(){O(this,c)})}if(c.continuous){c.after.push(function(){N(V,c,0,!c.rev)})}I(c);if(!E.support.opacity&&c.cleartype&&!c.cleartypeNoBg){K(P)}if(d.css("position")=="static"){d.css("position","relative")}if(c.width){d.width(c.width)}if(c.height&&c.height!="auto"){d.height(c.height)}if(c.startingSlide){c.startingSlide=parseInt(c.startingSlide)}if(c.random){c.randomMap=[];for(var Y=0;Y<V.length;Y++){c.randomMap.push(Y)}c.randomMap.sort(function(e,h){return Math.random()-0.5});c.randomIndex=0;c.startingSlide=c.randomMap[0]}else{if(c.startingSlide>=V.length){c.startingSlide=0}}c.currSlide=c.startingSlide=c.startingSlide||0;var U=c.startingSlide;P.css({position:"absolute",top:0,left:0}).hide().each(function(h){var e=U?h>=U?V.length-(h-U):U-h:V.length-h;E(this).css("z-index",e)});E(V[U]).css("opacity",1).show();O(V[U],c);if(c.fit&&c.width){P.width(c.width)}if(c.fit&&c.height&&c.height!="auto"){P.height(c.height)}var k=c.containerResize&&!d.innerHeight();if(k){var S=0,X=0;for(var Z=0;Z<V.length;Z++){var f=E(V[Z]),l=f[0],W=f.outerWidth(),a=f.outerHeight();if(!W){W=l.offsetWidth}if(!a){a=l.offsetHeight}S=W>S?W:S;X=a>X?a:X}if(S>0&&X>0){d.css({width:S+"px",height:X+"px"})}}if(c.pause){d.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(G(c)===false){return false}var m=false;R.requeueAttempts=R.requeueAttempts||0;P.each(function(){var h=E(this);this.cycleH=(c.fit&&c.height)?c.height:h.height();this.cycleW=(c.fit&&c.width)?c.width:h.width();if(h.is("img")){var o=(E.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var n=(E.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var e=(E.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var q=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(o||n||e||q){if(b.s&&c.requeueOnImageNotLoaded&&++R.requeueAttempts<100){A(R.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){E(b.s,b.c).cycle(R)},c.requeueTimeout);m=true;return false}else{A("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(m){return false}c.cssBefore=c.cssBefore||{};c.animIn=c.animIn||{};c.animOut=c.animOut||{};P.not(":eq("+U+")").css(c.cssBefore);if(c.cssFirst){E(P[U]).css(c.cssFirst)}if(c.timeout){c.timeout=parseInt(c.timeout);if(c.speed.constructor==String){c.speed=E.fx.speeds[c.speed]||parseInt(c.speed)}if(!c.sync){c.speed=c.speed/2}while((c.timeout-c.speed)<250){c.timeout+=c.speed}}if(c.easing){c.easeIn=c.easeOut=c.easing}if(!c.speedIn){c.speedIn=c.speed}if(!c.speedOut){c.speedOut=c.speed}c.slideCount=V.length;c.currSlide=c.lastSlide=U;if(c.random){c.nextSlide=c.currSlide;if(++c.randomIndex==V.length){c.randomIndex=0}c.nextSlide=c.randomMap[c.randomIndex]}else{c.nextSlide=c.startingSlide>=(V.length-1)?0:c.startingSlide+1}if(!c.multiFx){var g=E.fn.cycle.transitions[c.fx];if(E.isFunction(g)){g(d,P,c)}else{if(c.fx!="custom"&&!c.multiFx){A("unknown transition: "+c.fx,"; slideshow terminating");return false}}}var T=P[U];if(c.before.length){c.before[0].apply(T,[T,T,c,true])}if(c.after.length>1){c.after[1].apply(T,[T,T,c,true])}if(c.next){E(c.next).bind(c.prevNextEvent,function(){return C(c,c.rev?-1:1)})}if(c.prev){E(c.prev).bind(c.prevNextEvent,function(){return C(c,c.rev?1:-1)})}if(c.pager){J(V,c)}L(c,V);return c}function I(P){P.original={before:[],after:[]};P.original.cssBefore=E.extend({},P.cssBefore);P.original.cssAfter=E.extend({},P.cssAfter);P.original.animIn=E.extend({},P.animIn);P.original.animOut=E.extend({},P.animOut);E.each(P.before,function(){P.original.before.push(this)});E.each(P.after,function(){P.original.after.push(this)})}function G(P){var T,R,Q=E.fn.cycle.transitions;if(P.fx.indexOf(",")>0){P.multiFx=true;P.fxs=P.fx.replace(/\s*/g,"").split(",");for(T=0;T<P.fxs.length;T++){var V=P.fxs[T];R=Q[V];if(!R||!Q.hasOwnProperty(V)||!E.isFunction(R)){A("discarding unknown transition: ",V);P.fxs.splice(T,1);T--}}if(!P.fxs.length){A("No valid transitions named; slideshow terminating.");return false}}else{if(P.fx=="all"){P.multiFx=true;P.fxs=[];for(p in Q){R=Q[p];if(Q.hasOwnProperty(p)&&E.isFunction(R)){P.fxs.push(p)}}}}if(P.multiFx&&P.randomizeEffects){var S=Math.floor(Math.random()*20)+30;for(T=0;T<S;T++){var U=Math.floor(Math.random()*P.fxs.length);P.fxs.push(P.fxs.splice(U,1)[0])}D("randomized fx sequence: ",P.fxs)}return true}function L(P,Q){P.addSlide=function(U,T){var S=E(U),R=S[0];if(!P.autostopCount){P.countdown++}Q[T?"unshift":"push"](R);if(P.els){P.els[T?"unshift":"push"](R)}P.slideCount=Q.length;S.css("position","absolute");S[T?"prependTo":"appendTo"](P.$cont);if(T){P.currSlide++;P.nextSlide++}if(!E.support.opacity&&P.cleartype&&!P.cleartypeNoBg){K(S)}if(P.fit&&P.width){S.width(P.width)}if(P.fit&&P.height&&P.height!="auto"){$slides.height(P.height)}R.cycleH=(P.fit&&P.height)?P.height:S.height();R.cycleW=(P.fit&&P.width)?P.width:S.width();S.css(P.cssBefore);if(P.pager){E.fn.cycle.createPagerAnchor(Q.length-1,R,E(P.pager),Q,P)}if(E.isFunction(P.onAddSlide)){P.onAddSlide(S)}else{S.hide()}}}E.fn.cycle.resetState=function(P,R){R=R||P.fx;P.before=[];P.after=[];P.cssBefore=E.extend({},P.original.cssBefore);P.cssAfter=E.extend({},P.original.cssAfter);P.animIn=E.extend({},P.original.animIn);P.animOut=E.extend({},P.original.animOut);P.fxFn=null;E.each(P.original.before,function(){P.before.push(this)});E.each(P.original.after,function(){P.after.push(this)});var Q=E.fn.cycle.transitions[R];if(E.isFunction(Q)){Q(P.$cont,E(P.elements),P)}};function N(R,Z,Y,U){if(Y&&Z.busy&&Z.manualTrump){E(R).stop(true,true);Z.busy=false}if(Z.busy){return}var W=Z.$cont[0],X=R[Z.currSlide],P=R[Z.nextSlide];if(W.cycleStop!=Z.stopCount||W.cycleTimeout===0&&!Y){return}if(!Y&&!W.cyclePause&&((Z.autostop&&(--Z.countdown<=0))||(Z.nowrap&&!Z.random&&Z.nextSlide<Z.currSlide))){if(Z.end){Z.end(Z)}return}if(Y||!W.cyclePause){var S=Z.fx;X.cycleH=X.cycleH||E(X).height();X.cycleW=X.cycleW||E(X).width();P.cycleH=P.cycleH||E(P).height();P.cycleW=P.cycleW||E(P).width();if(Z.multiFx){if(Z.lastFx==undefined||++Z.lastFx>=Z.fxs.length){Z.lastFx=0}S=Z.fxs[Z.lastFx];Z.currFx=S}if(Z.oneTimeFx){S=Z.oneTimeFx;Z.oneTimeFx=null}E.fn.cycle.resetState(Z,S);if(Z.before.length){E.each(Z.before,function(b,a){if(W.cycleStop!=Z.stopCount){return}a.apply(P,[X,P,Z,U])})}var Q=function(){E.each(Z.after,function(b,a){if(W.cycleStop!=Z.stopCount){return}a.apply(P,[X,P,Z,U])})};if(Z.nextSlide!=Z.currSlide){Z.busy=1;if(Z.fxFn){Z.fxFn(X,P,Z,Q,U)}else{if(E.isFunction(E.fn.cycle[Z.fx])){E.fn.cycle[Z.fx](X,P,Z,Q)}else{E.fn.cycle.custom(X,P,Z,Q,Y&&Z.fastOnEvent)}}}Z.lastSlide=Z.currSlide;if(Z.random){Z.currSlide=Z.nextSlide;if(++Z.randomIndex==R.length){Z.randomIndex=0}Z.nextSlide=Z.randomMap[Z.randomIndex]}else{var T=(Z.nextSlide+1)==R.length;Z.nextSlide=T?0:Z.nextSlide+1;Z.currSlide=T?R.length-1:Z.nextSlide-1}if(Z.pager){E.fn.cycle.updateActivePagerLink(Z.pager,Z.currSlide)}}var V=0;if(Z.timeout&&!Z.continuous){V=H(X,P,Z,U)}else{if(Z.continuous&&W.cyclePause){V=10}}if(V>0){W.cycleTimeout=setTimeout(function(){N(R,Z,0,!Z.rev)},V)}}E.fn.cycle.updateActivePagerLink=function(Q,P){E(Q).find("a").removeClass("activeSlide").filter("a:eq("+P+")").addClass("activeSlide")};function H(R,S,P,T){if(P.timeoutFn){var Q=P.timeoutFn(R,S,P,T);while((Q-P.speed)<250){Q+=P.speed}D("calculated timeout: "+Q+"; speed: "+P.speed);if(Q!==false){return Q}}return P.timeout}E.fn.cycle.next=function(P){C(P,P.rev?-1:1)};E.fn.cycle.prev=function(P){C(P,P.rev?1:-1)};function C(P,S){var T=P.elements;var Q=P.$cont[0],R=Q.cycleTimeout;if(R){clearTimeout(R);Q.cycleTimeout=0}if(P.random&&S<0){P.randomIndex--;if(--P.randomIndex==-2){P.randomIndex=T.length-2}else{if(P.randomIndex==-1){P.randomIndex=T.length-1}}P.nextSlide=P.randomMap[P.randomIndex]}else{if(P.random){if(++P.randomIndex==T.length){P.randomIndex=0}P.nextSlide=P.randomMap[P.randomIndex]}else{P.nextSlide=P.currSlide+S;if(P.nextSlide<0){if(P.nowrap){return false}P.nextSlide=T.length-1}else{if(P.nextSlide>=T.length){if(P.nowrap){return false}P.nextSlide=0}}}}if(E.isFunction(P.prevNextClick)){P.prevNextClick(S>0,P.nextSlide,T[P.nextSlide])}N(T,P,1,S>=0);return false}function J(R,P){var Q=E(P.pager);E.each(R,function(T,S){E.fn.cycle.createPagerAnchor(T,S,Q,R,P)});E.fn.cycle.updateActivePagerLink(P.pager,P.startingSlide)}E.fn.cycle.createPagerAnchor=function(P,T,U,R,W){var S;if(E.isFunction(W.pagerAnchorBuilder)){S=W.pagerAnchorBuilder(P,T)}else{S='<a href="#">'+(P+1)+"</a>"}if(!S){return}var Q=E(S);if(Q.parents("body").length===0){var V=[];if(U.length>1){U.each(function(){var X=Q.clone(true);E(this).append(X);V.push(X)});Q=E(V)}else{Q.appendTo(U)}}Q.bind(W.pagerEvent,function(Y){Y.preventDefault();W.nextSlide=P;var Z=W.$cont[0],X=Z.cycleTimeout;if(X){clearTimeout(X);Z.cycleTimeout=0}if(E.isFunction(W.pagerClick)){W.pagerClick(W.nextSlide,R[W.nextSlide])}N(R,W,1,W.currSlide<P);return false});if(W.pagerEvent!="click"){Q.click(function(){return false})}if(W.pauseOnPagerHover){Q.hover(function(){W.$cont[0].cyclePause++},function(){W.$cont[0].cyclePause--})}};E.fn.cycle.hopsFromLast=function(P,T){var S,R=P.lastSlide,Q=P.currSlide;if(T){S=Q>R?Q-R:P.slideCount-R}else{S=Q<R?R-Q:R+P.slideCount-Q}return S};function K(P){function Q(S){S=parseInt(S).toString(16);return S.length<2?"0"+S:S}function R(U){for(;U&&U.nodeName.toLowerCase()!="html";U=U.parentNode){var S=E.css(U,"background-color");if(S.indexOf("rgb")>=0){var T=S.match(/\d+/g);return"#"+Q(T[0])+Q(T[1])+Q(T[2])}if(S&&S!="transparent"){return S}}return"#ffffff"}P.each(function(){E(this).css("background-color",R(this))})}E.fn.cycle.commonReset=function(Q,U,P,R,S,T){E(P.elements).not(Q).hide();P.cssBefore.opacity=1;P.cssBefore.display="block";if(R!==false&&U.cycleW>0){P.cssBefore.width=U.cycleW}if(S!==false&&U.cycleH>0){P.cssBefore.height=U.cycleH}P.cssAfter=P.cssAfter||{};P.cssAfter.display="none";E(Q).css("zIndex",P.slideCount+(T===true?1:0));E(U).css("zIndex",P.slideCount+(T===true?0:1))};E.fn.cycle.custom=function(V,P,U,W,R){var X=E(V),a=E(P);var Q=U.speedIn,T=U.speedOut,Z=U.easeIn,Y=U.easeOut;a.css(U.cssBefore);if(R){if(typeof R=="number"){Q=T=R}else{Q=T=1}Z=Y=null}var S=function(){a.animate(U.animIn,Q,Z,W)};X.animate(U.animOut,T,Y,function(){if(U.cssAfter){X.css(U.cssAfter)}if(!U.sync){S()}});if(U.sync){S()}};E.fn.cycle.transitions={fade:function(Q,R,P){R.not(":eq("+P.currSlide+")").css("opacity",0);P.before.push(function(T,U,S){E.fn.cycle.commonReset(T,U,S);S.cssBefore.opacity=0});P.animIn={opacity:1};P.animOut={opacity:0};P.cssBefore={top:0,left:0}}};E.fn.cycle.ver=function(){return F};E.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click",pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!E.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);(function(A){A.fn.cycle.transitions.none=function(C,D,B){B.fxFn=function(G,H,E,F){A(H).show();A(G).hide();F()}};A.fn.cycle.transitions.scrollUp=function(C,D,B){C.css("overflow","hidden");B.before.push(A.fn.cycle.commonReset);var E=C.height();B.cssBefore={top:E,left:0};B.cssFirst={top:0};B.animIn={top:0};B.animOut={top:-E}};A.fn.cycle.transitions.scrollDown=function(C,D,B){C.css("overflow","hidden");B.before.push(A.fn.cycle.commonReset);var E=C.height();B.cssFirst={top:0};B.cssBefore={top:-E,left:0};B.animIn={top:0};B.animOut={top:E}};A.fn.cycle.transitions.scrollLeft=function(C,D,B){C.css("overflow","hidden");B.before.push(A.fn.cycle.commonReset);var E=C.width();B.cssFirst={left:0};B.cssBefore={left:E,top:0};B.animIn={left:0};B.animOut={left:0-E}};A.fn.cycle.transitions.scrollRight=function(C,D,B){C.css("overflow","hidden");B.before.push(A.fn.cycle.commonReset);var E=C.width();B.cssFirst={left:0};B.cssBefore={left:-E,top:0};B.animIn={left:0};B.animOut={left:E}};A.fn.cycle.transitions.scrollHorz=function(C,D,B){C.css("overflow","hidden").width();B.before.push(function(F,G,E,H){A.fn.cycle.commonReset(F,G,E);E.cssBefore.left=H?(G.cycleW-1):(1-G.cycleW);E.animOut.left=H?-F.cycleW:F.cycleW});B.cssFirst={left:0};B.cssBefore={top:0};B.animIn={left:0};B.animOut={top:0}};A.fn.cycle.transitions.scrollVert=function(C,D,B){C.css("overflow","hidden");B.before.push(function(F,G,E,H){A.fn.cycle.commonReset(F,G,E);E.cssBefore.top=H?(1-G.cycleH):(G.cycleH-1);E.animOut.top=H?F.cycleH:-F.cycleH});B.cssFirst={top:0};B.cssBefore={left:0};B.animIn={top:0};B.animOut={left:0}};A.fn.cycle.transitions.slideX=function(C,D,B){B.before.push(function(F,G,E){A(E.elements).not(F).hide();A.fn.cycle.commonReset(F,G,E,false,true);E.animIn.width=G.cycleW});B.cssBefore={left:0,top:0,width:0};B.animIn={width:"show"};B.animOut={width:0}};A.fn.cycle.transitions.slideY=function(C,D,B){B.before.push(function(F,G,E){A(E.elements).not(F).hide();A.fn.cycle.commonReset(F,G,E,true,false);E.animIn.height=G.cycleH});B.cssBefore={left:0,top:0,height:0};B.animIn={height:"show"};B.animOut={height:0}};A.fn.cycle.transitions.shuffle=function(C,D,B){var F,E=C.css("overflow","visible").width();D.css({left:0,top:0});B.before.push(function(H,I,G){A.fn.cycle.commonReset(H,I,G,true,true,true)});if(!B.speedAdjusted){B.speed=B.speed/2;B.speedAdjusted=true}B.random=0;B.shuffle=B.shuffle||{left:-E,top:15};B.els=[];for(F=0;F<D.length;F++){B.els.push(D[F])}for(F=0;F<B.currSlide;F++){B.els.push(B.els.shift())}B.fxFn=function(I,L,G,K,M){var H=M?A(I):A(L);A(L).css(G.cssBefore);var J=G.slideCount;H.animate(G.shuffle,G.speedIn,G.easeIn,function(){var Q=A.fn.cycle.hopsFromLast(G,M);for(var R=0;R<Q;R++){M?G.els.push(G.els.shift()):G.els.unshift(G.els.pop())}if(M){for(var P=0,N=G.els.length;P<N;P++){A(G.els[P]).css("z-index",N-P+J)}}else{var O=A(I).css("z-index");H.css("z-index",parseInt(O)+1+J)}H.animate({left:0,top:0},G.speedOut,G.easeOut,function(){A(M?this:I).hide();if(K){K()}})})};B.cssBefore={display:"block",opacity:1,top:0,left:0}};A.fn.cycle.transitions.turnUp=function(C,D,B){B.before.push(function(F,G,E){A.fn.cycle.commonReset(F,G,E,true,false);E.cssBefore.top=G.cycleH;E.animIn.height=G.cycleH});B.cssFirst={top:0};B.cssBefore={left:0,height:0};B.animIn={top:0};B.animOut={height:0}};A.fn.cycle.transitions.turnDown=function(C,D,B){B.before.push(function(F,G,E){A.fn.cycle.commonReset(F,G,E,true,false);E.animIn.height=G.cycleH;E.animOut.top=F.cycleH});B.cssFirst={top:0};B.cssBefore={left:0,top:0,height:0};B.animOut={height:0}};A.fn.cycle.transitions.turnLeft=function(C,D,B){B.before.push(function(F,G,E){A.fn.cycle.commonReset(F,G,E,false,true);E.cssBefore.left=G.cycleW;E.animIn.width=G.cycleW});B.cssBefore={top:0,width:0};B.animIn={left:0};B.animOut={width:0}};A.fn.cycle.transitions.turnRight=function(C,D,B){B.before.push(function(F,G,E){A.fn.cycle.commonReset(F,G,E,false,true);E.animIn.width=G.cycleW;E.animOut.left=F.cycleW});B.cssBefore={top:0,left:0,width:0};B.animIn={left:0};B.animOut={width:0}};A.fn.cycle.transitions.zoom=function(C,D,B){B.before.push(function(F,G,E){A.fn.cycle.commonReset(F,G,E,false,false,true);E.cssBefore.top=G.cycleH/2;E.cssBefore.left=G.cycleW/2;E.animIn={top:0,left:0,width:G.cycleW,height:G.cycleH};E.animOut={width:0,height:0,top:F.cycleH/2,left:F.cycleW/2}});B.cssFirst={top:0,left:0};B.cssBefore={width:0,height:0}};A.fn.cycle.transitions.fadeZoom=function(C,D,B){B.before.push(function(F,G,E){A.fn.cycle.commonReset(F,G,E,false,false);E.cssBefore.left=G.cycleW/2;E.cssBefore.top=G.cycleH/2;E.animIn={top:0,left:0,width:G.cycleW,height:G.cycleH}});B.cssBefore={width:0,height:0};B.animOut={opacity:0}};A.fn.cycle.transitions.blindX=function(C,D,B){var E=C.css("overflow","hidden").width();B.before.push(function(G,H,F){A.fn.cycle.commonReset(G,H,F);F.animIn.width=H.cycleW;F.animOut.left=G.cycleW});B.cssBefore={left:E,top:0};B.animIn={left:0};B.animOut={left:E}};A.fn.cycle.transitions.blindY=function(C,D,B){var E=C.css("overflow","hidden").height();B.before.push(function(G,H,F){A.fn.cycle.commonReset(G,H,F);F.animIn.height=H.cycleH;F.animOut.top=G.cycleH});B.cssBefore={top:E,left:0};B.animIn={top:0};B.animOut={top:E}};A.fn.cycle.transitions.blindZ=function(C,D,B){var F=C.css("overflow","hidden").height();var E=C.width();B.before.push(function(H,I,G){A.fn.cycle.commonReset(H,I,G);G.animIn.height=I.cycleH;G.animOut.top=H.cycleH});B.cssBefore={top:F,left:E};B.animIn={top:0,left:0};B.animOut={top:F,left:E}};A.fn.cycle.transitions.growX=function(C,D,B){B.before.push(function(F,G,E){A.fn.cycle.commonReset(F,G,E,false,true);E.cssBefore.left=this.cycleW/2;E.animIn={left:0,width:this.cycleW};E.animOut={left:0}});B.cssBefore={width:0,top:0}};A.fn.cycle.transitions.growY=function(C,D,B){B.before.push(function(F,G,E){A.fn.cycle.commonReset(F,G,E,true,false);E.cssBefore.top=this.cycleH/2;E.animIn={top:0,height:this.cycleH};E.animOut={top:0}});B.cssBefore={height:0,left:0}};A.fn.cycle.transitions.curtainX=function(C,D,B){B.before.push(function(F,G,E){A.fn.cycle.commonReset(F,G,E,false,true,true);E.cssBefore.left=G.cycleW/2;E.animIn={left:0,width:this.cycleW};E.animOut={left:F.cycleW/2,width:0}});B.cssBefore={top:0,width:0}};A.fn.cycle.transitions.curtainY=function(C,D,B){B.before.push(function(F,G,E){A.fn.cycle.commonReset(F,G,E,true,false,true);E.cssBefore.top=G.cycleH/2;E.animIn={top:0,height:G.cycleH};E.animOut={top:F.cycleH/2,height:0}});B.cssBefore={left:0,height:0}};A.fn.cycle.transitions.cover=function(C,D,B){var G=B.direction||"left";var E=C.css("overflow","hidden").width();var F=C.height();B.before.push(function(I,J,H){A.fn.cycle.commonReset(I,J,H);if(G=="right"){H.cssBefore.left=-E}else{if(G=="up"){H.cssBefore.top=F}else{if(G=="down"){H.cssBefore.top=-F}else{H.cssBefore.left=E}}}});B.animIn={left:0,top:0};B.animOut={opacity:1};B.cssBefore={top:0,left:0}};A.fn.cycle.transitions.uncover=function(C,D,B){var G=B.direction||"left";var E=C.css("overflow","hidden").width();var F=C.height();B.before.push(function(I,J,H){A.fn.cycle.commonReset(I,J,H,true,true,true);if(G=="right"){H.animOut.left=E}else{if(G=="up"){H.animOut.top=-F}else{if(G=="down"){H.animOut.top=F}else{H.animOut.left=-E}}}});B.animIn={left:0,top:0};B.animOut={opacity:1};B.cssBefore={top:0,left:0}};A.fn.cycle.transitions.toss=function(C,D,B){var E=C.css("overflow","visible").width();var F=C.height();B.before.push(function(H,I,G){A.fn.cycle.commonReset(H,I,G,true,true,true);if(!G.animOut.left&&!G.animOut.top){G.animOut={left:E*2,top:-F/2,opacity:0}}else{G.animOut.opacity=0}});B.cssBefore={left:0,top:0};B.animIn={left:0}};A.fn.cycle.transitions.wipe=function(B,E,H){var M=B.css("overflow","hidden").width();var N=B.height();H.cssBefore=H.cssBefore||{};var L;if(H.clip){if(/l2r/.test(H.clip)){L="rect(0px 0px "+N+"px 0px)"}else{if(/r2l/.test(H.clip)){L="rect(0px "+M+"px "+N+"px "+M+"px)"}else{if(/t2b/.test(H.clip)){L="rect(0px "+M+"px 0px 0px)"}else{if(/b2t/.test(H.clip)){L="rect("+N+"px "+M+"px "+N+"px 0px)"}else{if(/zoom/.test(H.clip)){var C=parseInt(N/2);var D=parseInt(M/2);L="rect("+C+"px "+D+"px "+C+"px "+D+"px)"}}}}}}H.cssBefore.clip=H.cssBefore.clip||L||"rect(0px 0px 0px 0px)";var G=H.cssBefore.clip.match(/(\d+)/g);var K=parseInt(G[0]),J=parseInt(G[1]),F=parseInt(G[2]),I=parseInt(G[3]);H.before.push(function(R,O,V){if(R==O){return}var S=A(R),P=A(O);A.fn.cycle.commonReset(R,O,V,true,true,false);V.cssAfter.display="block";var T=1,U=parseInt((V.speedIn/13))-1;(function Q(){var W=K?K-parseInt(T*(K/U)):0;var Y=I?I-parseInt(T*(I/U)):0;var Z=F<N?F+parseInt(T*((N-F)/U||1)):N;var X=J<M?J+parseInt(T*((M-J)/U||1)):M;P.css({clip:"rect("+W+"px "+X+"px "+Z+"px "+Y+"px)"});(T++<=U)?setTimeout(Q,13):S.css("display","none")})()});H.cssBefore={display:"block",opacity:1,top:0,left:0};H.animIn={left:0};H.animOut={left:0}}})(jQuery);(function(A){A.fn.lightbox=function(F){var K=A.extend({},A.fn.lightbox.defaults,F);return this.each(function(){A(this).click(function(){B();J(this);return false})});function B(){A("#overlay").remove();A("#lightbox").remove();K.inprogress=false;if(K.jsonData&&K.jsonData.length>0){var W=K.jsonDataParser?K.jsonDataParser:A.fn.lightbox.parseJsonData;K.imageArray=[];K.imageArray=W(K.jsonData)}var V='<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="'+K.strings.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+K.strings.nextLinkTitle+'"></a></div><div id="loading"><a href="javascript://" id="loadingLink"><img src="'+K.fileLoadingImage+'"></a></div></div></div>';var T='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><span id="numberDisplay"></span></div><div id="bottomNav">';if(K.displayHelp){T+='<span id="helpDisplay">'+K.strings.help+"</span>"}T+='<a href="javascript://" id="bottomNavClose" title="'+K.strings.closeTitle+'"><img src="'+K.fileBottomNavCloseImage+'"></a></div></div></div>';var U;if(K.navbarOnTop){U='<div id="overlay"></div><div id="lightbox">'+T+V+"</div>";A("body").append(U);A("#imageDataContainer").addClass("ontop")}else{U='<div id="overlay"></div><div id="lightbox">'+V+T+"</div>";A("body").append(U)}A("#overlay").click(function(){E()}).hide();A("#lightbox").click(function(){E()}).hide();A("#loadingLink").click(function(){E();return false});A("#bottomNavClose").click(function(){E();return false});A("#outerImageContainer").width(K.widthCurrent).height(K.heightCurrent);A("#imageDataContainer").width(K.widthCurrent);if(!K.imageClickClose){A("#lightboxImage").click(function(){return false});A("#hoverNav").click(function(){return false})}}function C(){var T=new Array(A(document).width(),A(document).height(),A(window).width(),A(window).height());return T}function S(){var T,V;if(self.pageYOffset){V=self.pageYOffset;T=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){V=document.documentElement.scrollTop;T=document.documentElement.scrollLeft}else{if(document.body){V=document.body.scrollTop;T=document.body.scrollLeft}}}var U=new Array(T,V);return U}function N(T){var U=new Date();var V=null;do{V=new Date()}while(V-U<T)}function J(V){A("select, embed, object").hide();var W=C();A("#overlay").hide().css({width:"100%",height:W[1]+"px",opacity:K.overlayOpacity}).fadeIn();imageNum=0;if(!K.jsonData){K.imageArray=[];if(!V.rel||(V.rel=="")){K.imageArray.push(new Array(V.href,K.displayTitle?V.title:""))}else{A("a").each(function(){if(this.href&&(this.rel==V.rel)){K.imageArray.push(new Array(this.href,K.displayTitle?this.title:""))}})}}if(K.imageArray.length>1){for(i=0;i<K.imageArray.length;i++){for(j=K.imageArray.length-1;j>i;j--){if(K.imageArray[i][0]==K.imageArray[j][0]){K.imageArray.splice(j,1)}}}while(K.imageArray[imageNum][0]!=V.href){imageNum++}}var T=S();var X=T[1]+(W[3]/10);var U=T[0];A("#lightbox").css({top:X+"px",left:U+"px"}).show();if(!K.slideNavBar){A("#imageData").hide()}H(imageNum)}function H(T){if(K.inprogress==false){K.inprogress=true;K.activeImage=T;A("#loading").show();A("#lightboxImage").hide();A("#hoverNav").hide();A("#prevLink").hide();A("#nextLink").hide();if(K.slideNavBar){A("#imageDataContainer").hide();A("#imageData").hide();P()}else{P()}}}function P(){imgPreloader=new Image();imgPreloader.onload=function(){var V=imgPreloader.width;var W=imgPreloader.height;if(K.fitToScreen){var X=C();var a;var Y=X[2]-2*K.borderSize;var Z=X[3]-200;var T=Y/Z;var U=imgPreloader.width/imgPreloader.height;if((imgPreloader.height>Z)||(imgPreloader.width>Y)){if(T>U){V=parseInt((Z/imgPreloader.height)*imgPreloader.width);W=Z}else{W=parseInt((Y/imgPreloader.width)*imgPreloader.height);V=Y}}}A("#lightboxImage").attr("src",K.imageArray[K.activeImage][0]).width(V).height(W);I(V,W)};imgPreloader.src=K.imageArray[K.activeImage][0]}function E(){R();A("#lightbox").hide();A("#overlay").fadeOut();A("select, object, embed").show()}function G(){if(K.loopImages&&K.imageArray.length>1){preloadNextImage=new Image();preloadNextImage.src=K.imageArray[(K.activeImage==(K.imageArray.length-1))?0:K.activeImage+1][0];preloadPrevImage=new Image();preloadPrevImage.src=K.imageArray[(K.activeImage==0)?(K.imageArray.length-1):K.activeImage-1][0]}else{if((K.imageArray.length-1)>K.activeImage){preloadNextImage=new Image();preloadNextImage.src=K.imageArray[K.activeImage+1][0]}if(K.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=K.imageArray[K.activeImage-1][0]}}}function I(V,T){K.widthCurrent=A("#outerImageContainer").outerWidth();K.heightCurrent=A("#outerImageContainer").outerHeight();var U=Math.max(350,V+(K.borderSize*2));var W=(T+(K.borderSize*2));K.xScale=(U/K.widthCurrent)*100;K.yScale=(W/K.heightCurrent)*100;wDiff=K.widthCurrent-U;hDiff=K.heightCurrent-W;A("#imageDataContainer").animate({width:U},K.resizeSpeed,"linear");A("#outerImageContainer").animate({width:U},K.resizeSpeed,"linear",function(){A("#outerImageContainer").animate({height:W},K.resizeSpeed,"linear",function(){Q()})});if((hDiff==0)&&(wDiff==0)){if(jQuery.browser.msie){N(250)}else{N(100)}}A("#prevLink").height(T);A("#nextLink").height(T)}function Q(){A("#loading").hide();A("#lightboxImage").fadeIn("fast");O();G();K.inprogress=false}function O(){A("#numberDisplay").html("");if(K.imageArray[K.activeImage][1]){A("#caption").html(K.imageArray[K.activeImage][1]).show()}if(K.imageArray.length>1){var T;T=K.strings.image+(K.activeImage+1)+K.strings.of+K.imageArray.length;if(!K.disableNavbarLinks){if((K.activeImage)>0||K.loopImages){T='<a title="'+K.strings.prevLinkTitle+'" href="#" id="prevLinkText">'+K.strings.prevLinkText+"</a>"+T}if(((K.activeImage+1)<K.imageArray.length)||K.loopImages){T+='<a title="'+K.strings.nextLinkTitle+'" href="#" id="nextLinkText">'+K.strings.nextLinkText+"</a>"}}A("#numberDisplay").html(T).show()}if(K.slideNavBar){A("#imageData").slideDown(K.navBarSlideSpeed)}else{A("#imageData").show()}var U=C();A("#overlay").height(U[1]);L()}function L(){if(K.imageArray.length>1){A("#hoverNav").show();if(K.loopImages){A("#prevLink,#prevLinkText").show().click(function(){H((K.activeImage==0)?(K.imageArray.length-1):K.activeImage-1);return false});A("#nextLink,#nextLinkText").show().click(function(){H((K.activeImage==(K.imageArray.length-1))?0:K.activeImage+1);return false})}else{if(K.activeImage!=0){A("#prevLink,#prevLinkText").show().click(function(){H(K.activeImage-1);return false})}if(K.activeImage!=(K.imageArray.length-1)){A("#nextLink,#nextLinkText").show().click(function(){H(K.activeImage+1);return false})}}M()}}function D(X){var T=X.data.opts;var U=X.keyCode;var V=27;var W=String.fromCharCode(U).toLowerCase();if((W=="x")||(W=="o")||(W=="c")||(U==V)){E()}else{if((W=="p")||(U==37)){if(T.loopImages){R();H((T.activeImage==0)?(T.imageArray.length-1):T.activeImage-1)}else{if(T.activeImage!=0){R();H(T.activeImage-1)}}}else{if((W=="n")||(U==39)){if(K.loopImages){R();H((T.activeImage==(T.imageArray.length-1))?0:T.activeImage+1)}else{if(T.activeImage!=(T.imageArray.length-1)){R();H(T.activeImage+1)}}}}}}function M(){A(document).bind("keydown",{opts:K},D)}function R(){A(document).unbind("keydown")}};A.fn.lightbox.parseJsonData=function(C){var B=[];A.each(C,function(){B.push(new Array(this.url,this.title))});return B};A.fn.lightbox.defaults={fileLoadingImage:"images/loading.gif",fileBottomNavCloseImage:"images/closelabel.gif",overlayOpacity:0.8,borderSize:10,imageArray:new Array,activeImage:null,inprogress:false,resizeSpeed:350,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:true,navbarOnTop:false,slideNavBar:false,navBarSlideSpeed:350,displayHelp:false,strings:{help:" \u2190 / P - previous image\u00a0\u00a0\u00a0\u00a0\u2192 / N - next image\u00a0\u00a0\u00a0\u00a0ESC / X - close image gallery",prevLinkTitle:"previous image",nextLinkTitle:"next image",prevLinkText:"&laquo; Previous",nextLinkText:"Next &raquo;",closeTitle:"close image gallery",image:"Image ",of:" of "},fitToScreen:false,disableNavbarLinks:false,loopImages:false,imageClickClose:true,jsonData:null,jsonDataParser:null}})(jQuery);(function(D){D.tools=D.tools||{};D.tools.tabs={version:"1.0.4",conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",api:false,rotate:false},addEffect:function(E,F){C[E]=F}};var C={"default":function(F,E){this.getPanes().hide().eq(F).show();E.call()},fade:function(I,G){var H=this.getConf(),E=H.fadeOutSpeed,F=this.getPanes();if(E){F.fadeOut(E)}else{F.hide()}F.eq(I).fadeIn(H.fadeInSpeed,G)},slide:function(F,E){this.getPanes().slideUp(200);this.getPanes().eq(F).slideDown(400,E)},ajax:function(F,E){this.getPanes().eq(0).load(this.getTabs().eq(F).attr("href"),E)}};var B;D.tools.tabs.addEffect("horizontal",function(F,E){if(!B){B=this.getPanes().eq(0).width()}this.getCurrentPane().animate({width:0},function(){D(this).hide()});this.getPanes().eq(F).animate({width:B},function(){D(this).show();E.call()})});function A(J,F,I){var H=this,E=D(this),G;D.each(I,function(K,L){if(D.isFunction(L)){E.bind(K,L)}});D.extend(this,{click:function(N,L){var M=H.getCurrentPane();var O=J.eq(N);if(typeof N=="string"&&N.replace("#","")){O=J.filter("[href*="+N.replace("#","")+"]");N=Math.max(J.index(O),0)}if(I.rotate){var K=J.length-1;if(N<0){return H.click(K,L)}if(N>K){return H.click(0,L)}}if(!O.length){if(G>=0){return H}N=I.initialIndex;O=J.eq(N)}if(N===G){return H}L=L||D.Event();L.type="onBeforeClick";E.trigger(L,[N]);if(L.isDefaultPrevented()){return}C[I.effect].call(H,N,function(){L.type="onClick";E.trigger(L,[N])});L.type="onStart";E.trigger(L,[N]);if(L.isDefaultPrevented()){return}G=N;J.removeClass(I.current);O.addClass(I.current);return H},getConf:function(){return I},getTabs:function(){return J},getPanes:function(){return F},getCurrentPane:function(){return F.eq(G)},getCurrentTab:function(){return J.eq(G)},getIndex:function(){return G},next:function(){return H.click(G+1)},prev:function(){return H.click(G-1)},bind:function(K,L){E.bind(K,L);return H},onBeforeClick:function(K){return this.bind("onBeforeClick",K)},onClick:function(K){return this.bind("onClick",K)},unbind:function(K){E.unbind(K);return H}});J.each(function(K){D(this).bind(I.event,function(L){H.click(K,L);return false})});if(location.hash){H.click(location.hash)}else{if(I.initialIndex===0||I.initialIndex>0){H.click(I.initialIndex)}}F.find("a[href^=#]").click(function(K){H.click(D(this).attr("href"),K)})}D.fn.tabs=function(F,H){var I=this.eq(typeof H=="number"?H:0).data("tabs");if(I){return I}if(D.isFunction(H)){H={onBeforeClick:H}}var E=D.extend({},D.tools.tabs.conf),G=this.length;H=D.extend(E,H);this.each(function(M){var K=D(this);var L=K.find(H.tabs);if(!L.length){L=K.children()}var J=F.jquery?F:K.children(F);if(!J.length){J=G==1?D(F):K.parent().find(F)}I=new A(L,J,H);K.data("tabs",I)});return H.api?I:this}})(jQuery);(function(D){var A=D.tools.tabs;A.plugins=A.plugins||{};A.plugins.history={version:"1.0.2",conf:{api:false}};var E,B;function C(F){if(F){var G=B.contentWindow.document;G.open().close();G.location.hash=F}}D.fn.onHash=function(G){var F=this;if(D.browser.msie&&D.browser.version<"8"){if(!B){B=D("<iframe/>").attr("src","javascript:false;").hide().get(0);D("body").append(B);setInterval(function(){var H=B.contentWindow.document,I=H.location.hash;if(E!==I){D.event.trigger("hash",I);E=I}},100);C(location.hash||"#")}F.bind("click.hash",function(H){C(D(this).attr("href"))})}else{setInterval(function(){var I=location.hash;var H=F.filter("[href$="+I+"]");if(!H.length){I=I.replace("#","");H=F.filter("[href$="+I+"]")}if(H.length&&I!==E){E=I;D.event.trigger("hash",I)}},100)}D(window).bind("hash",G);return this};D.fn.history=function(H){var F=D.extend({},A.plugins.history.conf),G;H=D.extend(F,H);this.each(function(){var J=D(this).tabs(),I=J.getTabs();if(J){G=J}I.onHash(function(K,L){if(!L||L=="#"){L=J.getConf().initialIndex}J.click(L)});I.click(function(K){location.hash=D(this).attr("href").replace("#","")})});return H.api?G:this}})(jQuery);(function(B){B.tools=B.tools||{};B.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var C;function A(J,H){var Q=this,O=B(this),L=!H.vertical,M=J.children(),F=0,D;if(!C){C=Q}B.each(H,function(S,T){if(B.isFunction(T)){O.bind(S,T)}});if(M.length>1){M=B(H.items,J)}function G(T){var S=B(T);return H.globalNav?S:J.parent().find(T)}J.data("finder",G);var N=G(H.prev),R=G(H.next),K=G(H.prevPage),I=G(H.nextPage);B.extend(Q,{getIndex:function(){return F},getClickIndex:function(){var S=Q.getItems();return S.index(S.filter("."+H.activeClass))},getConf:function(){return H},getSize:function(){return Q.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/H.size)},getPageIndex:function(){return Math.ceil(F/H.size)},getNaviButtons:function(){return N.add(R).add(K).add(I)},getRoot:function(){return J},getItemWrap:function(){return M},getItems:function(){return M.children(H.item)},getVisibleItems:function(){return Q.getItems().slice(F,F+H.size)},seekTo:function(S,W,T){if(S<0){S=0}if(F===S){return Q}if(B.isFunction(W)){T=W}if(S>Q.getSize()-H.size){return H.loop?Q.begin():this.end()}var U=Q.getItems().eq(S);if(!U.length){return Q}var V=B.Event("onBeforeSeek");O.trigger(V,[S]);if(V.isDefaultPrevented()){return Q}if(W===undefined||B.isFunction(W)){W=H.speed}function X(){if(T){T.call(Q,S)}O.trigger("onSeek",[S])}if(L){M.animate({left:-U.position().left},W,H.easing,X)}else{M.animate({top:-U.position().top},W,H.easing,X)}C=Q;F=S;V=B.Event("onStart");O.trigger(V,[S]);if(V.isDefaultPrevented()){return Q}N.add(K).toggleClass(H.disabledClass,S===0);R.add(I).toggleClass(H.disabledClass,S>=Q.getSize()-H.size);return Q},move:function(U,T,S){D=U>0;return this.seekTo(F+U,T,S)},next:function(T,S){return this.move(1,T,S)},prev:function(T,S){return this.move(-1,T,S)},movePage:function(W,V,U){D=W>0;var S=H.size*W;var T=F%H.size;if(T>0){S+=(W>0?-T:H.size-T)}return this.move(S,V,U)},prevPage:function(T,S){return this.movePage(-1,T,S)},nextPage:function(T,S){return this.movePage(1,T,S)},setPage:function(T,U,S){return this.seekTo(T*H.size,U,S)},begin:function(T,S){D=false;return this.seekTo(0,T,S)},end:function(T,S){D=true;var U=this.getSize()-H.size;return U>0?this.seekTo(U,T,S):Q},reload:function(){O.trigger("onReload");return Q},focus:function(){C=Q;return Q},click:function(U){var V=Q.getItems().eq(U),S=H.activeClass,T=H.size;if(U<0||U>=Q.getSize()){return Q}if(T==1){if(H.loop){return Q.next()}if(U===0||U==Q.getSize()-1){D=(D===undefined)?true:!D}return D===false?Q.prev():Q.next()}if(T==2){if(U==F){U--}Q.getItems().removeClass(S);V.addClass(S);return Q.seekTo(U,time,fn)}if(!V.hasClass(S)){Q.getItems().removeClass(S);V.addClass(S);var X=Math.floor(T/2);var W=U-X;if(W>Q.getSize()-T){W=Q.getSize()-T}if(W!==U){return Q.seekTo(W)}}return Q},bind:function(S,T){O.bind(S,T);return Q},unbind:function(S){O.unbind(S);return Q}});B.each("onBeforeSeek,onStart,onSeek,onReload".split(","),function(S,T){Q[T]=function(U){return Q.bind(T,U)}});N.addClass(H.disabledClass).click(function(){Q.prev()});R.click(function(){Q.next()});I.click(function(){Q.nextPage()});if(Q.getSize()<H.size){R.add(I).addClass(H.disabledClass)}K.addClass(H.disabledClass).click(function(){Q.prevPage()});var E=H.hoverClass,P="keydown."+Math.random().toString().substring(10);Q.onReload(function(){if(E){Q.getItems().hover(function(){B(this).addClass(E)},function(){B(this).removeClass(E)})}if(H.clickable){Q.getItems().each(function(S){B(this).unbind("click.scrollable").bind("click.scrollable",function(T){if(B(T.target).is("a")){return}return Q.click(S)})})}if(H.keyboard){B(document).unbind(P).bind(P,function(S){if(S.altKey||S.ctrlKey){return}if(H.keyboard!="static"&&C!=Q){return}var T=H.keyboardSteps;if(L&&(S.keyCode==37||S.keyCode==39)){Q.move(S.keyCode==37?-T:T);return S.preventDefault()}if(!L&&(S.keyCode==38||S.keyCode==40)){Q.move(S.keyCode==38?-T:T);return S.preventDefault()}return true})}else{B(document).unbind(P)}});Q.reload()}B.fn.scrollable=function(D){var E=this.eq(typeof D=="number"?D:0).data("scrollable");if(E){return E}var F=B.extend({},B.tools.scrollable.conf);D=B.extend(F,D);D.keyboardSteps=D.keyboardSteps||D.size;this.each(function(){E=new A(B(this),D);B(this).data("scrollable",E)});return D.api?E:this}})(jQuery);(function(B){var A=B.tools.scrollable;A.plugins=A.plugins||{};A.plugins.circular={version:"0.5.1",conf:{api:false,clonedClass:"cloned"}};B.fn.circular=function(E){var D=B.extend({},A.plugins.circular.conf),C;B.extend(D,E);this.each(function(){var F=B(this).scrollable(),K=F.getItems(),H=F.getConf(),L=F.getItemWrap(),G=0;if(F){C=F}if(K.length<H.size){return false}K.slice(0,H.size).each(function(O){B(this).clone().appendTo(L).click(function(){F.click(K.length+O)}).addClass(D.clonedClass)});var I=B.makeArray(K.slice(-H.size)).reverse();B(I).each(function(O){B(this).clone().prependTo(L).click(function(){F.click(-O-1)}).addClass(D.clonedClass)});var J=L.children(H.item);var N=H.hoverClass;if(N){J.hover(function(){B(this).addClass(N)},function(){B(this).removeClass(N)})}function M(O){var P=J.eq(O);if(H.vertical){L.css({top:-P.position().top})}else{L.css({left:-P.position().left})}}M(H.size);B.extend(F,{move:function(P,O,T,U){var R=G+P+H.size;var Q=R>F.getSize()-H.size;if(R<=0||Q){var S=G+H.size+(Q?-K.length:K.length);M(S);R=S+P}if(U){J.removeClass(H.activeClass).eq(R+Math.floor(H.size/2)).addClass(H.activeClass)}if(R===G+H.size){return self}return F.seekTo(R,O,T)},begin:function(P,O){return this.seekTo(H.size,P,O)},end:function(P,O){return this.seekTo(K.length,P,O)},click:function(R,O,S){if(!H.clickable){return self}if(H.size==1){return this.next()}var P=R-G,Q=H.activeClass;P-=Math.floor(H.size/2);return this.move(P,O,S,true)},getIndex:function(){return G},setPage:function(P,Q,O){return this.seekTo(P*H.size+H.size,Q,O)},getPageAmount:function(){return Math.ceil(K.length/H.size)},getPageIndex:function(){if(G<0){return this.getPageAmount()-1}if(G>=K.length){return 0}var O=(G+H.size)/H.size-1;return O},getVisibleItems:function(){var O=G+H.size;return J.slice(O,O+H.size)}});F.onStart(function(P,O){G=O-H.size;return false});F.getNaviButtons().removeClass(H.disabledClass)});return D.api?C:this}})(jQuery);(function(B){var A=B.tools.scrollable;A.plugins=A.plugins||{};A.plugins.autoscroll={version:"1.0.1",conf:{autoplay:true,interval:3000,autopause:true,steps:1,api:false}};B.fn.autoscroll=function(D){if(typeof D=="number"){D={interval:D}}var E=B.extend({},A.plugins.autoscroll.conf),C;B.extend(E,D);this.each(function(){var I=B(this).scrollable();if(I){C=I}var G,H,F=true;I.play=function(){if(G){return}F=false;G=setInterval(function(){I.move(E.steps)},E.interval);I.move(E.steps)};I.pause=function(){G=clearInterval(G)};I.stop=function(){I.pause();F=true};if(E.autopause){I.getRoot().add(I.getNaviButtons()).hover(function(){I.pause();clearInterval(H)},function(){if(!F){H=setTimeout(I.play,E.interval)}})}if(E.autoplay){setTimeout(I.play,E.interval)}});return E.api?C:this}})(jQuery);(function(B){var A=B.tools.scrollable;A.plugins=A.plugins||{};A.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};B.fn.navigator=function(D){var E=B.extend({},A.plugins.navigator.conf),C;if(typeof D=="string"){D={navi:D}}D=B.extend(E,D);this.each(function(){var I=B(this).scrollable(),K=I.getRoot(),L=K.data("finder").call(null,D.navi),F=null,G=I.getNaviButtons();if(I){C=I}I.getNaviButtons=function(){return G.add(L)};function J(){if(!L.children().length||L.data("navi")==I){L.empty();L.data("navi",I);for(var M=0;M<I.getPageAmount();M++){L.append(B("<"+(D.naviItem||"a")+"/>"))}F=L.children().each(function(N){var O=B(this);O.click(function(P){I.setPage(N);return P.preventDefault()});if(D.indexed){O.text(N)}if(D.idPrefix){O.attr("id",D.idPrefix+N)}})}else{F=D.naviItem?L.find(D.naviItem):L.children();F.each(function(N){var O=B(this);O.click(function(P){I.setPage(N);return P.preventDefault()})})}F.eq(0).addClass(D.activeClass)}I.onStart(function(O,N){var M=D.activeClass;F.removeClass(M).eq(I.getPageIndex()).addClass(M)});I.onReload(function(){J()});J();var H=F.filter("[href="+location.hash+"]");if(H.length){I.move(F.index(H))}});return D.api?C:this}})(jQuery);$.fn.menu=function(){$(this).addClass("h-menu");$("#current a:first",this).addClass("selected");$("ul ul",this).addClass("hide");$("li:not(#current):not(:has(#current))",this).hover(function(){var A=$("ul:first",this);A.css("z-index","1000");A.addClass("float").removeClass("hide");var B=A.offset();if(B.left+A.width()>$(window).width()){A.css("left","-100%")}},function(){$("ul:first",this).css("z-index","0");$("ul:first",this).removeClass("float").addClass("hide")});$("li:has(ul):not(#current):not(:has(#current)) > a span",this).append("<div class='aaa'></div>");$("ul:has(#current)",this).addClass("fixed").removeClass("hide");$("#current ul:first",this).addClass("fixed").removeClass("hide")};$.fn.vmenu=function(){$(this).addClass("v-menu");$("li",this).hover(function(){var A=$("ul:first",this);A.css("z-index","1000");A.css("top","100%");A.css("left","0");A.show()},function(){var A=$("ul:first",this);A.css("z-index","0");A.hide()})};(function(A){A.fn.jclock=function(D){var C="2.2.0";var B=A.extend({},A.fn.jclock.defaults,D);return this.each(function(){$this=A(this);$this.timerID=null;$this.running=false;$this.increment=0;$this.lastCalled=new Date().getTime();var E=A.meta?A.extend({},B,$this.data()):B;$this.format=E.format;$this.utc=E.utc;$this.utcOffset=(E.utc_offset!=null)?E.utc_offset:E.utcOffset;$this.seedTime=E.seedTime;$this.timeout=E.timeout;$this.css({fontFamily:E.fontFamily,fontSize:E.fontSize,backgroundColor:E.background,color:E.foreground});$this.daysAbbrvNames=new Array(7);$this.daysAbbrvNames[0]="Sun";$this.daysAbbrvNames[1]="Mon";$this.daysAbbrvNames[2]="Tue";$this.daysAbbrvNames[3]="Wed";$this.daysAbbrvNames[4]="Thu";$this.daysAbbrvNames[5]="Fri";$this.daysAbbrvNames[6]="Sat";$this.daysFullNames=new Array(7);$this.daysFullNames[0]="Sunday";$this.daysFullNames[1]="Monday";$this.daysFullNames[2]="Tuesday";$this.daysFullNames[3]="Wednesday";$this.daysFullNames[4]="Thursday";$this.daysFullNames[5]="Friday";$this.daysFullNames[6]="Saturday";$this.monthsAbbrvNames=new Array(12);$this.monthsAbbrvNames[0]="Jan";$this.monthsAbbrvNames[1]="Feb";$this.monthsAbbrvNames[2]="Mar";$this.monthsAbbrvNames[3]="Apr";$this.monthsAbbrvNames[4]="May";$this.monthsAbbrvNames[5]="Jun";$this.monthsAbbrvNames[6]="Jul";$this.monthsAbbrvNames[7]="Aug";$this.monthsAbbrvNames[8]="Sep";$this.monthsAbbrvNames[9]="Oct";$this.monthsAbbrvNames[10]="Nov";$this.monthsAbbrvNames[11]="Dec";$this.monthsFullNames=new Array(12);$this.monthsFullNames[0]="January";$this.monthsFullNames[1]="February";$this.monthsFullNames[2]="March";$this.monthsFullNames[3]="April";$this.monthsFullNames[4]="May";$this.monthsFullNames[5]="June";$this.monthsFullNames[6]="July";$this.monthsFullNames[7]="August";$this.monthsFullNames[8]="September";$this.monthsFullNames[9]="October";$this.monthsFullNames[10]="November";$this.monthsFullNames[11]="December";A.fn.jclock.startClock($this)})};A.fn.jclock.startClock=function(B){A.fn.jclock.stopClock(B);A.fn.jclock.displayTime(B)};A.fn.jclock.stopClock=function(B){if(B.running){clearTimeout(B.timerID)}B.running=false};A.fn.jclock.displayTime=function(B){var C=A.fn.jclock.getTime(B);B.html(C);B.timerID=setTimeout(function(){A.fn.jclock.displayTime(B)},B.timeout)};A.fn.jclock.getTime=function(K){if(typeof(K.seedTime)=="undefined"){var E=new Date()}else{K.increment+=new Date().getTime()-K.lastCalled;var E=new Date(K.seedTime+K.increment);K.lastCalled=new Date().getTime()}if(K.utc==true){var C=E.getTime();var I=E.getTimezoneOffset()*60000;var J=C+I;var D=J+(3600000*K.utcOffset);E=new Date(D)}var G="";var B=0;var F=0;while((F=K.format.indexOf("%",B))!=-1){G+=K.format.substring(B,F);F++;var H=K.format.charAt(F);H=A.fn.jclock.getProperty(E,K,H);F++;G+=H;B=F}G+=K.format.substring(B);G=G.replace(/(am|AM)/g,"<span class='am'></span>").replace(/(pm|PM)/g,"<span class='pm'></span>").replace(/:/g,"<span class='nc'></span>").replace(/-/g,"<span class='zd'></span>");return G};A.fn.jclock.getProperty=function(E,C,D){switch(D){case"a":s=(C.daysAbbrvNames[E.getDay()]);break;case"A":s=(C.daysFullNames[E.getDay()]);break;case"b":s=(C.monthsAbbrvNames[E.getMonth()]);break;case"B":s=(C.monthsFullNames[E.getMonth()]);break;case"d":s=((E.getDate()<10)?"0":"")+E.getDate();break;case"H":s=((E.getHours()<10)?"0":"")+E.getHours();break;case"I":var B=(E.getHours()%12||12);s=((B<10)?"0":"")+B;break;case"m":s=((E.getMonth()<9)?"0":"")+(E.getMonth()+1);break;case"M":s=((E.getMinutes()<10)?"0":"")+E.getMinutes();break;case"p":s=(E.getHours()<12?"am":"pm");break;case"P":s=(E.getHours()<12?"AM":"PM");break;case"S":s=((E.getSeconds()<10)?"0":"")+E.getSeconds();break;case"y":s=E.getFullYear().toString().substring(2);break;case"Y":s=(E.getFullYear());break;case"%":s="%"}switch(D){case"d":case"m":case"y":case"Y":s=s.toString().replace(/(\d)/g,"<span class='z$1 small'></span>");break;case"H":case"I":case"M":case"S":s=s.toString().replace(/(\d)/g,"<span class='n$1 big'></span>");break}return s};A.fn.jclock.defaults={format:"%I:%M:%S%p %d-%m-%Y",utcOffset:0,utc:false,fontFamily:"",fontSize:"",foreground:"",background:"",seedTime:undefined,timeout:1000}})(jQuery);(function(E){E.cluetip={version:"1.0.6"};var B,A,C,D,G,I,H,K;E.fn.cluetip=function(M,L){if(typeof M=="object"){L=M;M=null}if(M=="destroy"){return this.removeData("thisInfo").unbind(".cluetip")}return this.each(function(r){var l=this,Aa=E(this);var P=E.extend(true,{},E.fn.cluetip.defaults,L||{},E.metadata?Aa.metadata():E.meta?Aa.data():{});var k=false;var W=+P.cluezIndex;Aa.data("thisInfo",{title:l.title,zIndex:W});var O=false,N=0;if(!E("#cluetip").length){E(['<div id="cluetip">','<div id="cluetip-outer">','<h3 id="cluetip-title"></h3>','<div id="cluetip-inner"></div>',"</div>",'<div id="cluetip-extra"></div>','<div id="cluetip-arrows" class="cluetip-arrows"></div>',"</div>"].join(""))[J](F).hide();B=E("#cluetip").css({position:"absolute"});C=E("#cluetip-outer").css({position:"relative",zIndex:W});A=E("#cluetip-inner");D=E("#cluetip-title");G=E("#cluetip-arrows");I=E('<div id="cluetip-waitimage"></div>').css({position:"absolute"}).insertBefore(B).hide()}var b=(P.dropShadow)?+P.dropShadowSteps:0;if(!H){H=E([]);for(var R=0;R<b;R++){H=H.add(E("<div></div>").css({zIndex:W-1,opacity:0.1,top:1+R,left:1+R}))}H.css({position:"absolute",backgroundColor:"#000"}).prependTo(B)}var d=Aa.attr(P.attribute),Z=P.cluetipClass;if(!d&&!P.splitTitle&&!M){return true}if(P.local&&P.localPrefix){d=P.localPrefix+d}if(P.local&&P.hideLocal){E(d+":first").hide()}var z=parseInt(P.topOffset,10),Y=parseInt(P.leftOffset,10);var U,Ab,Ad=isNaN(parseInt(P.height,10))?"auto":(/\D/g).test(P.height)?P.height:P.height+"px";var Q,v,x,q,a,n;var c=parseInt(P.width,10)||275,T=c+(parseInt(B.css("paddingLeft"),10)||0)+(parseInt(B.css("paddingRight"),10)||0)+b,e=this.offsetWidth,g,S,h,u,t;var Ae;var Ac=(P.attribute!="title")?Aa.attr(P.titleAttribute):"";if(P.splitTitle){if(Ac==undefined){Ac=""}Ae=Ac.split(P.splitTitle);Ac=Ae.shift()}if(P.escapeTitle){Ac=Ac.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;")}var m;function y(){return false}var w=function(Aj){if(!P.onActivate(Aa)){return false}O=true;B.removeClass().css({width:c});if(d==Aa.attr("href")){Aa.css("cursor",P.cursor)}if(P.hoverClass){Aa.addClass(P.hoverClass)}v=x=Aa.offset().top;g=Aa.offset().left;u=Aj.pageX;a=Aj.pageY;if(l.tagName.toLowerCase()!="area"){Q=E(document).scrollTop();t=E(window).width()}if(P.positionBy=="fixed"){S=e+g+Y;B.css({left:S})}else{S=(e>g&&g>T)||g+e+T+Y>t?g-T-Y:e+g+Y;if(l.tagName.toLowerCase()=="area"||P.positionBy=="mouse"||e+T>t){if(u+20+T>t){B.addClass(" cluetip-"+Z);S=(u-T-Y)>=0?u-T-Y-parseInt(B.css("marginLeft"),10)+parseInt(A.css("marginRight"),10):u-(T/2)}else{S=u+Y}}var Am=S<0?Aj.pageY+z:Aj.pageY;B.css({left:(S>0&&P.positionBy!="bottomTop")?S:(u+(T/2)>t)?t/2-T/2:Math.max(u-(T/2),0),zIndex:Aa.data("thisInfo").zIndex});G.css({zIndex:Aa.data("thisInfo").zIndex+1})}Ab=E(window).height();if(M){if(typeof M=="function"){M=M.call(l)}A.html(M);V(Am)}else{if(Ae){var Ak=Ae.length;A.html(Ak?Ae[0]:"");if(Ak>1){for(var Af=1;Af<Ak;Af++){A.append('<div class="split-body">'+Ae[Af]+"</div>")}}V(Am)}else{if(!P.local&&d.indexOf("#")!==0){if(/\.(jpe?g|tiff?|gif|png)$/i.test(d)){A.html('<img src="'+d+'" alt="'+Ac+'" />');V(Am)}else{if(k&&P.ajaxCache){A.html(k);V(Am)}else{var Ai=P.ajaxSettings.beforeSend,Ah=P.ajaxSettings.error,Ao=P.ajaxSettings.success,Ag=P.ajaxSettings.complete;var Ap={cache:false,url:d,beforeSend:function(Aq){if(Ai){Ai.call(l,Aq,B,A)}C.children().empty();if(P.waitImage){I.css({top:a+20,left:u+20,zIndex:Aa.data("thisInfo").zIndex-1}).show()}},error:function(Ar,Aq){if(O){if(Ah){Ah.call(l,Ar,Aq,B,A)}else{A.html("<i>sorry, the contents could not be loaded</i>")}}},success:function(Ar,Aq){k=P.ajaxProcess.call(l,Ar);if(O){if(Ao){Ao.call(l,Ar,Aq,B,A)}A.html(k)}},complete:function(At,Aq){if(Ag){Ag.call(l,At,Aq,B,A)}var Ar=A[0].getElementsByTagName("img");K=Ar.length;for(var As=0,Au=Ar.length;As<Au;As++){if(Ar[As].complete){K--}}if(K&&!E.browser.opera){E(Ar).bind("load error",function(){K--;if(K<1){I.hide();if(O){V(Am)}}})}else{I.hide();if(O){V(Am)}}}};var Al=E.extend(true,{},P.ajaxSettings,Ap);E.ajax(Al)}}}else{if(P.local){var An=E(d+(/#\S+$/.test(d)?"":":eq("+r+")")).clone(true).show();A.html(An);V(Am)}}}}};var V=function(Ag){B.addClass("cluetip-"+Z);if(P.truncate){var Aj=A.text().slice(0,P.truncate)+"...";A.html(Aj)}function Ai(){}Ac?D.show().html(Ac):(P.showTitle)?D.show().html("&nbsp;"):D.hide();if(P.sticky){var Ak=E('<div id="cluetip-close"><a href="#">'+P.closeText+"</a></div>");(P.closePosition=="bottom")?Ak.appendTo(A):(P.closePosition=="title")?Ak.prependTo(D):Ak.prependTo(A);Ak.bind("click.cluetip",function(){f();return false});if(P.mouseOutClose){B.bind("mouseleave.cluetip",function(){f()})}else{B.unbind("mouseleave.cluetip")}}var Ah="";C.css({zIndex:Aa.data("thisInfo").zIndex,overflow:Ad=="auto"?"visible":"auto",height:Ad});U=Ad=="auto"?Math.max(B.outerHeight(),B.height()):parseInt(Ad,10);q=x;n=Q+Ab;if(P.positionBy=="fixed"){q=x-P.dropShadowSteps+z}else{if((S<u&&Math.max(S,0)+T>u)||P.positionBy=="bottomTop"){if(x+U+z>n&&a-Q>U+z){q=a-U-z;Ah="top"}else{q=a+z;Ah="bottom"}}else{if(x+U+z>n){q=(U>=Ab)?Q:n-U-z}else{if(Aa.css("display")=="block"||l.tagName.toLowerCase()=="area"||P.positionBy=="mouse"){q=Ag-z}else{q=x-P.dropShadowSteps}}}}if(Ah==""){S<g?Ah="left":Ah="right"}B.css({top:q+"px"}).removeClass().addClass("clue-"+Ah+"-"+Z).addClass(" cluetip-"+Z);if(P.arrows){var Af=(x-q-P.dropShadowSteps);G.css({top:(/(left|right)/.test(Ah)&&S>=0&&Af>0)?Af+"px":/(left|right)/.test(Ah)?0:""}).show()}else{G.hide()}H.hide();B.hide()[P.fx.open](P.fx.openSpeed||0);if(P.dropShadow){H.css({height:U,width:c,zIndex:Aa.data("thisInfo").zIndex-1}).show()}if(E.fn.bgiframe){B.bgiframe()}if(P.delayedClose>0){N=setTimeout(f,P.delayedClose)}P.onShow.call(l,B,A)};var X=function(Af){O=false;I.hide();if(!P.sticky||(/click|toggle/).test(P.activation)){f();clearTimeout(N)}if(P.hoverClass){Aa.removeClass(P.hoverClass)}};var f=function(){C.parent().hide().removeClass();P.onHide.call(l,B,A);Aa.removeClass("cluetip-clicked");if(Ac){Aa.attr(P.titleAttribute,Ac)}Aa.css("cursor","");if(P.arrows){G.css({top:""})}};E(document).bind("hideCluetip",function(Af){f()});if((/click|toggle/).test(P.activation)){Aa.bind("click.cluetip",function(Af){if(B.is(":hidden")||!Aa.is(".cluetip-clicked")){w(Af);E(".cluetip-clicked").removeClass("cluetip-clicked");Aa.addClass("cluetip-clicked")}else{X(Af)}this.blur();return false})}else{if(P.activation=="focus"){Aa.bind("focus.cluetip",function(Af){w(Af)});Aa.bind("blur.cluetip",function(Af){X(Af)})}else{Aa[P.clickThrough?"unbind":"bind"]("click",y);var o=function(Af){if(P.tracking==true){var Ag=S-Af.pageX;var Ah=q?q-Af.pageY:x-Af.pageY;Aa.bind("mousemove.cluetip",function(Ai){B.css({left:Ai.pageX+Ag,top:Ai.pageY+Ah})})}};if(E.fn.hoverIntent&&P.hoverIntent){Aa.hoverIntent({sensitivity:P.hoverIntent.sensitivity,interval:P.hoverIntent.interval,over:function(Af){w(Af);o(Af)},timeout:P.hoverIntent.timeout,out:function(Af){X(Af);Aa.unbind("mousemove.cluetip")}})}else{Aa.bind("mouseenter.cluetip",function(Af){w(Af);o(Af)}).bind("mouseleave.cluetip",function(Af){X(Af);Aa.unbind("mousemove.cluetip")})}Aa.bind("mouseover.cluetip",function(Af){Aa.attr("title","")}).bind("mouseleave.cluetip",function(Af){Aa.attr("title",Aa.data("thisInfo").title)})}}})};E.fn.cluetip.defaults={width:275,height:"auto",cluezIndex:97,positionBy:"auto",topOffset:15,leftOffset:15,local:false,localPrefix:null,hideLocal:true,attribute:"rel",titleAttribute:"title",splitTitle:"",escapeTitle:false,showTitle:true,cluetipClass:"default",hoverClass:"",waitImage:true,cursor:"help",arrows:false,dropShadow:true,dropShadowSteps:6,sticky:false,mouseOutClose:false,activation:"hover",clickThrough:false,tracking:false,delayedClose:0,closePosition:"top",closeText:"Close",truncate:0,fx:{open:"show",openSpeed:""},hoverIntent:{sensitivity:3,interval:50,timeout:0},onActivate:function(L){return true},onShow:function(L,M){},onHide:function(L,M){},ajaxCache:true,ajaxProcess:function(L){L=L.replace(/<(script|style|title)[^<]+<\/(script|style|title)>/gm,"").replace(/<(link|meta)[^>]+>/g,"");return L},ajaxSettings:{dataType:"html"},debug:false};var J="appendTo",F="body";E.cluetip.setup=function(L){if(L&&L.insertionType&&(L.insertionType).match(/appendTo|prependTo|insertBefore|insertAfter/)){J=L.insertionType}if(L&&L.insertionElement){F=L.insertionElement}}})(jQuery);jQuery.ui||(function(D){var A=D.fn.remove,E=D.browser.mozilla&&(parseFloat(D.browser.version)<1.9);D.ui={version:"1.7.2",plugin:{add:function(M,N,K){var J=D.ui[M].prototype;for(var L in K){J.plugins[L]=J.plugins[L]||[];J.plugins[L].push([N,K[L]])}},call:function(L,N,M){var K=L.plugins[N];if(!K||!L.element[0].parentNode){return}for(var J=0;J<K.length;J++){if(L.options[K[J][0]]){K[J][1].apply(L.element,M)}}}},contains:function(K,J){return document.compareDocumentPosition?K.compareDocumentPosition(J)&16:K!==J&&K.contains(J)},hasScroll:function(J,L){if(D(J).css("overflow")=="hidden"){return false}var K=(L&&L=="left")?"scrollLeft":"scrollTop",M=false;if(J[K]>0){return true}J[K]=1;M=(J[K]>0);J[K]=0;return M},isOverAxis:function(K,J,L){return(K>J)&&(K<(J+L))},isOver:function(L,N,K,J,M,O){return D.ui.isOverAxis(L,K,M)&&D.ui.isOverAxis(N,J,O)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(E){var G=D.attr,F=D.fn.removeAttr,I="http://www.w3.org/2005/07/aaa",B=/^aria-/,C=/^wairole:/;D.attr=function(L,K,M){var J=M!==undefined;return(K=="role"?(J?G.call(this,L,K,"wairole:"+M):(G.apply(this,arguments)||"").replace(C,"")):(B.test(K)?(J?L.setAttributeNS(I,K.replace(B,"aaa:"),M):G.call(this,L,K.replace(B,"aaa:"))):G.apply(this,arguments)))};D.fn.removeAttr=function(J){return(B.test(J)?this.each(function(){this.removeAttributeNS(I,J.replace(B,""))}):F.call(this,J))}}D.fn.extend({remove:function(){D("*",this).add(this).each(function(){D(this).triggerHandler("remove")});return A.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var J;if((D.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){J=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)}else{J=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"))||!J.length?D(document):J}});D.extend(D.expr[":"],{data:function(L,K,J){return !!D.data(L,J[3])},focusable:function(K){var L=K.nodeName.toLowerCase(),J=D.attr(K,"tabindex");return(/input|select|textarea|button|object/.test(L)?!K.disabled:"a"==L||"area"==L?K.href||!isNaN(J):!isNaN(J))&&!D(K)["area"==L?"parents":"closest"](":hidden").length},tabbable:function(K){var J=D.attr(K,"tabindex");return(isNaN(J)||J>=0)&&D(K).is(":focusable")}});function H(J,K,L,O){function N(Q){var P=D[J][K][Q]||[];return(typeof P=="string"?P.split(/,?\s+/):P)}var M=N("getter");if(O.length==1&&typeof O[0]=="string"){M=M.concat(N("getterSetter"))}return(D.inArray(L,M)!=-1)}D.widget=function(K,J){var L=K.split(".")[0];K=K.split(".")[1];D.fn[K]=function(P){var N=(typeof P=="string"),O=Array.prototype.slice.call(arguments,1);if(N&&P.substring(0,1)=="_"){return this}if(N&&H(L,K,P,O)){var M=D.data(this[0],K);return(M?M[P].apply(M,O):undefined)}return this.each(function(){var Q=D.data(this,K);(!Q&&!N&&D.data(this,K,new D[L][K](this,P))._init());(Q&&N&&D.isFunction(Q[P])&&Q[P].apply(Q,O))})};D[L]=D[L]||{};D[L][K]=function(O,N){var M=this;this.namespace=L;this.widgetName=K;this.widgetEventPrefix=D[L][K].eventPrefix||K;this.widgetBaseClass=L+"-"+K;this.options=D.extend({},D.widget.defaults,D[L][K].defaults,D.metadata&&D.metadata.get(O)[K],N);this.element=D(O).bind("setData."+K,function(R,Q,P){if(R.target==O){return M._setData(Q,P)}}).bind("getData."+K,function(Q,P){if(Q.target==O){return M._getData(P)}}).bind("remove",function(){return M.destroy()})};D[L][K].prototype=D.extend({},D.widget.prototype,J);D[L][K].getterSetter="option"};D.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(M,J){var L=M,K=this;if(typeof M=="string"){if(J===undefined){return this._getData(M)}L={};L[M]=J}D.each(L,function(N,O){K._setData(N,O)})},_getData:function(J){return this.options[J]},_setData:function(J,K){this.options[J]=K;if(J=="disabled"){this.element[K?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",K)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(P,J,K){var O=this.options[P],N=(P==this.widgetEventPrefix?P:this.widgetEventPrefix+P);J=D.Event(J);J.type=N;if(J.originalEvent){for(var M=D.event.props.length,L;M;){L=D.event.props[--M];J[L]=J.originalEvent[L]}}this.element.trigger(J,K);return !(D.isFunction(O)&&O.call(this.element[0],J,K)===false||J.isDefaultPrevented())}};D.widget.defaults={disabled:false};D.ui.mouse={_mouseInit:function(){var J=this;this.element.bind("mousedown."+this.widgetName,function(K){return J._mouseDown(K)}).bind("click."+this.widgetName,function(K){if(J._preventClickEvent){J._preventClickEvent=false;K.stopImmediatePropagation();return false}});if(D.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(D.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(M){M.originalEvent=M.originalEvent||{};if(M.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(M));this._mouseDownEvent=M;var L=this,J=(M.which==1),K=(typeof this.options.cancel=="string"?D(M.target).parents().add(M.target).filter(this.options.cancel).length:false);if(!J||K||!this._mouseCapture(M)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){L.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(M)&&this._mouseDelayMet(M)){this._mouseStarted=(this._mouseStart(M)!==false);if(!this._mouseStarted){M.preventDefault();return true}}this._mouseMoveDelegate=function(N){return L._mouseMove(N)};this._mouseUpDelegate=function(N){return L._mouseUp(N)};D(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(D.browser.safari||M.preventDefault());M.originalEvent.mouseHandled=true;return true},_mouseMove:function(J){if(D.browser.msie&&!J.button){return this._mouseUp(J)}if(this._mouseStarted){this._mouseDrag(J);return J.preventDefault()}if(this._mouseDistanceMet(J)&&this._mouseDelayMet(J)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,J)!==false);(this._mouseStarted?this._mouseDrag(J):this._mouseUp(J))}return !this._mouseStarted},_mouseUp:function(J){D(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(J.target==this._mouseDownEvent.target);this._mouseStop(J)}return false},_mouseDistanceMet:function(J){return(Math.max(Math.abs(this._mouseDownEvent.pageX-J.pageX),Math.abs(this._mouseDownEvent.pageY-J.pageY))>=this.options.distance)},_mouseDelayMet:function(J){return this.mouseDelayMet},_mouseStart:function(J){},_mouseDrag:function(J){},_mouseStop:function(J){},_mouseCapture:function(J){return true}};D.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(C){var B={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},A="ui-dialog ui-widget ui-widget-content ui-corner-all ";C.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var G=this,H=this.options,E=H.title||this.originalTitle||"&nbsp;",J=C.ui.dialog.getTitleId(this.element),F=(this.uiDialog=C("<div/>")).appendTo(document.body).hide().addClass(A+H.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:H.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(N){(H.closeOnEscape&&N.keyCode&&N.keyCode==C.ui.keyCode.ESCAPE&&G.close(N))}).attr({role:"dialog","aria-labelledby":J}).mousedown(function(N){G.moveToTop(false,N)}),L=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(F),K=(this.uiDialogTitlebar=C("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(F),D=C('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){D.addClass("ui-state-hover")},function(){D.removeClass("ui-state-hover")}).focus(function(){D.addClass("ui-state-focus")}).blur(function(){D.removeClass("ui-state-focus")}).mousedown(function(N){N.stopPropagation()}).click(function(N){G.close(N);return false}).appendTo(K),M=(this.uiDialogTitlebarCloseText=C("<span/>")).addClass("ui-icon ui-icon-closethick").text(H.closeText).appendTo(D),I=C("<span/>").addClass("ui-dialog-title").attr("id",J).html(E).prependTo(K);K.find("*").add(K).disableSelection();(H.draggable&&C.fn.draggable&&this._makeDraggable());(H.resizable&&C.fn.resizable&&this._makeResizable());this._createButtons(H.buttons);this._isOpen=false;(H.bgiframe&&C.fn.bgiframe&&F.bgiframe());(H.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(F){var D=this;if(false===D._trigger("beforeclose",F)){return}(D.overlay&&D.overlay.destroy());D.uiDialog.unbind("keypress.ui-dialog");(D.options.hide?D.uiDialog.hide(D.options.hide,function(){D._trigger("close",F)}):D.uiDialog.hide()&&D._trigger("close",F));C.ui.dialog.overlay.resize();D._isOpen=false;if(D.options.modal){var E=0;C(".ui-dialog").each(function(){if(this!=D.uiDialog[0]){E=Math.max(E,C(this).css("z-index"))}});C.ui.dialog.maxZ=E}},isOpen:function(){return this._isOpen},moveToTop:function(F,E){if((this.options.modal&&!F)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",E)}if(this.options.zIndex>C.ui.dialog.maxZ){C.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",C.ui.dialog.overlay.maxZ=++C.ui.dialog.maxZ));var D={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++C.ui.dialog.maxZ);this.element.attr(D);this._trigger("focus",E)},open:function(){if(this._isOpen){return}var E=this.options,D=this.uiDialog;this.overlay=E.modal?new C.ui.dialog.overlay(this):null;(D.next().length&&D.appendTo("body"));this._size();this._position(E.position);D.show(E.show);this.moveToTop(true);(E.modal&&D.bind("keypress.ui-dialog",function(F){if(F.keyCode!=C.ui.keyCode.TAB){return}var I=C(":tabbable",this),G=I.filter(":first")[0],H=I.filter(":last")[0];if(F.target==H&&!F.shiftKey){setTimeout(function(){G.focus()},1)}else{if(F.target==G&&F.shiftKey){setTimeout(function(){H.focus()},1)}}}));C([]).add(D.find(".ui-dialog-content :tabbable:first")).add(D.find(".ui-dialog-buttonpane :tabbable:first")).add(D).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(G){var F=this,D=false,E=C("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof G=="object"&&G!==null&&C.each(G,function(){return !(D=true)}));if(D){C.each(G,function(H,I){C('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(H).click(function(){I.apply(F.element[0],arguments)}).hover(function(){C(this).addClass("ui-state-hover")},function(){C(this).removeClass("ui-state-hover")}).focus(function(){C(this).addClass("ui-state-focus")}).blur(function(){C(this).removeClass("ui-state-focus")}).appendTo(E)});E.appendTo(this.uiDialog)}},_makeDraggable:function(){var D=this,F=this.options,E;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){E=F.height;C(this).height(C(this).height()).addClass("ui-dialog-dragging");(F.dragStart&&F.dragStart.apply(D.element[0],arguments))},drag:function(){(F.drag&&F.drag.apply(D.element[0],arguments))},stop:function(){C(this).removeClass("ui-dialog-dragging").height(E);(F.dragStop&&F.dragStop.apply(D.element[0],arguments));C.ui.dialog.overlay.resize()}})},_makeResizable:function(G){G=(G===undefined?this.options.resizable:G);var D=this,F=this.options,E=typeof G=="string"?G:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:F.maxWidth,maxHeight:F.maxHeight,minWidth:F.minWidth,minHeight:F.minHeight,start:function(){C(this).addClass("ui-dialog-resizing");(F.resizeStart&&F.resizeStart.apply(D.element[0],arguments))},resize:function(){(F.resize&&F.resize.apply(D.element[0],arguments))},handles:E,stop:function(){C(this).removeClass("ui-dialog-resizing");F.height=C(this).height();F.width=C(this).width();(F.resizeStop&&F.resizeStop.apply(D.element[0],arguments));C.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(F){var G=C(window),H=C(document),I=H.scrollTop(),D=H.scrollLeft(),E=I;if(C.inArray(F,["center","top","right","bottom","left"])>=0){F=[F=="right"||F=="left"?F:"center",F=="top"||F=="bottom"?F:"middle"]}if(F.constructor!=Array){F=["center","middle"]}if(F[0].constructor==Number){D+=F[0]}else{switch(F[0]){case"left":D+=0;break;case"right":D+=G.width()-this.uiDialog.outerWidth();break;default:case"center":D+=(G.width()-this.uiDialog.outerWidth())/2}}if(F[1].constructor==Number){I+=F[1]}else{switch(F[1]){case"top":I+=0;break;case"bottom":I+=G.height()-this.uiDialog.outerHeight();break;default:case"middle":I+=(G.height()-this.uiDialog.outerHeight())/2}}I=Math.max(I,E);this.uiDialog.css({top:I,left:D})},_setData:function(E,F){(B[E]&&this.uiDialog.data(B[E],F));switch(E){case"buttons":this._createButtons(F);break;case"closeText":this.uiDialogTitlebarCloseText.text(F);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(A+F);break;case"draggable":(F?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(F);break;case"position":this._position(F);break;case"resizable":var D=this.uiDialog,G=this.uiDialog.is(":data(resizable)");(G&&!F&&D.resizable("destroy"));(G&&typeof F=="string"&&D.resizable("option","handles",F));(G||this._makeResizable(F));break;case"title":C(".ui-dialog-title",this.uiDialogTitlebar).html(F||"&nbsp;");break;case"width":this.uiDialog.width(F);break}C.widget.prototype._setData.apply(this,arguments)},_size:function(){var E=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var D=this.uiDialog.css({height:"auto",width:E.width}).height();this.element.css({minHeight:Math.max(E.minHeight-D,0),height:E.height=="auto"?"auto":Math.max(E.height-D,0)})}});C.extend(C.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(D){return"ui-dialog-title-"+(D.attr("id")||++this.uuid)},overlay:function(D){this.$el=C.ui.dialog.overlay.create(D)}});C.extend(C.ui.dialog.overlay,{instances:[],maxZ:0,events:C.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(D){return D+".dialog-overlay"}).join(" "),create:function(E){if(this.instances.length===0){setTimeout(function(){if(C.ui.dialog.overlay.instances.length){C(document).bind(C.ui.dialog.overlay.events,function(F){var G=C(F.target).parents(".ui-dialog").css("zIndex")||0;return(G>C.ui.dialog.overlay.maxZ)})}},1);C(document).bind("keydown.dialog-overlay",function(F){(E.options.closeOnEscape&&F.keyCode&&F.keyCode==C.ui.keyCode.ESCAPE&&E.close(F))});C(window).bind("resize.dialog-overlay",C.ui.dialog.overlay.resize)}var D=C("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(E.options.bgiframe&&C.fn.bgiframe&&D.bgiframe());this.instances.push(D);return D},destroy:function(D){this.instances.splice(C.inArray(this.instances,D),1);if(this.instances.length===0){C([document,window]).unbind(".dialog-overlay")}D.remove();var E=0;C.each(this.instances,function(){E=Math.max(E,this.css("z-index"))});this.maxZ=E},height:function(){if(C.browser.msie&&C.browser.version<7){var E=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var D=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(E<D){return C(window).height()+"px"}else{return E+"px"}}else{return C(document).height()+"px"}},width:function(){if(C.browser.msie&&C.browser.version<7){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var E=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(D<E){return C(window).width()+"px"}else{return D+"px"}}else{return C(document).width()+"px"}},resize:function(){var D=C([]);C.each(C.ui.dialog.overlay.instances,function(){D=D.add(this)});D.css({width:0,height:0}).css({width:C.ui.dialog.overlay.width(),height:C.ui.dialog.overlay.height()})}});C.extend(C.ui.dialog.overlay.prototype,{destroy:function(){C.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
