(function(l,m){function E(a,b,d){if(d===m&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):eb.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=m}return d}function y(a){for(var b in a)if(b!=="toJSON")return false;return true}function C(){return false}function F(){return true}function ea(a,b,d){var e=c.extend({},d[0]);e.type=a;e.originalEvent={};e.liveFired=m;c.event.handle.call(b,e);e.isDefaultPrevented()&&
d[0].preventDefault()}function ia(a){var b,d,e,f,h,j,r,p,n,v,D,K=[];f=[];h=c._data(this,"events");if(!(a.liveFired===this||!h||!h.live||a.target.disabled||a.button&&a.type==="click")){if(a.namespace)D=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var I=h.live.slice(0);for(r=0;r<I.length;r++){h=I[r];h.origType.replace(wa,"")===a.type?f.push(h.selector):I.splice(r--,1)}f=c(a.target).closest(f,a.currentTarget);p=0;for(n=f.length;p<n;p++){v=f[p];for(r=0;r<I.length;r++){h=
I[r];if(v.selector===h.selector&&(!D||D.test(h.namespace))&&!v.elem.disabled){j=v.elem;e=null;if(h.preType==="mouseenter"||h.preType==="mouseleave"){a.type=h.preType;e=c(a.relatedTarget).closest(h.selector)[0]}if(!e||e!==j)K.push({elem:j,handleObj:h,level:v.level})}}}p=0;for(n=K.length;p<n;p++){f=K[p];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;D=f.handleObj.origHandler.apply(f.elem,arguments);if(D===false||a.isPropagationStopped()){d=f.level;if(D===
false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function W(a,b){return(a&&a!=="*"?a+".":"")+b.replace(fb,"`").replace(gb,"&")}function L(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(hb.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===
d})}function T(a,b){if(!(b.nodeType!==1||!c.hasData(a))){var d=c.expando,e=c.data(a),f=c.data(b,e);if(e=e[d]){var h=e.events;f=f[d]=c.extend({},e);if(h){delete f.handle;f.events={};for(var j in h){d=0;for(e=h[j].length;d<e;d++)c.event.add(b,j+(h[j][d].namespace?".":"")+h[j][d].namespace,h[j][d],h[j][d].data)}}}}}function P(a,b){if(b.nodeType===1){var d=b.nodeName.toLowerCase();b.clearAttributes();b.mergeAttributes(a);if(d==="object")b.outerHTML=a.outerHTML;else if(d==="input"&&(a.type==="checkbox"||
a.type==="radio")){if(a.checked)b.defaultChecked=b.checked=a.checked;if(b.value!==a.value)b.value=a.value}else if(d==="option")b.selected=a.defaultSelected;else if(d==="input"||d==="textarea")b.defaultValue=a.defaultValue;b.removeAttribute(c.expando)}}function S(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function aa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");
b.parentNode&&b.parentNode.removeChild(b)}function ga(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?ib:jb,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function ca(a){return function(b,d){if(typeof b!=="string"){d=b;b="*"}if(c.isFunction(d))for(var e=b.toLowerCase().split(Ia),f=0,h=e.length,j,r;f<h;f++){j=e[f];if(r=
/^\+/.test(j))j=j.substr(1)||"*";j=a[j]=a[j]||[];j[r?"unshift":"push"](d)}}}function X(a,b,d,e,f,h){f=f||b.dataTypes[0];h=h||{};h[f]=true;f=a[f];for(var j=0,r=f?f.length:0,p=a===Ba,n;j<r&&(p||!n);j++){n=f[j](b,d,e);if(typeof n==="string")if(!p||h[n])n=m;else{b.dataTypes.unshift(n);n=X(a,b,d,e,n,h)}}if((p||!n)&&!h["*"])n=X(a,b,d,e,"*",h);return n}function M(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(h,j){d||kb.test(a)?e(a,j):M(a+"["+(typeof j==="object"||c.isArray(j)?h:"")+"]",j,d,e)});else if(!d&&
b!=null&&typeof b==="object")if(c.isArray(b)||c.isEmptyObject(b))e(a,"");else for(var f in b)M(a+"["+f+"]",b[f],d,e);else e(a,b)}function lb(){c(l).unload(function(){for(var a in pa)pa[a](0,1)})}function Ja(){try{return new l.XMLHttpRequest}catch(a){}}function qa(a,b){var d={};c.each(Ka.concat.apply([],Ka.slice(0,b)),function(){d[this]=a});return d}function La(a){if(!Ca[a]){var b=c("<"+a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";Ca[a]=d}return Ca[a]}function Da(a){return c.isWindow(a)?
a:a.nodeType===9?a.defaultView||a.parentWindow:false}var z=l.document,c=function(){function a(){if(!b.isReady){try{z.documentElement.doScroll("left")}catch(i){setTimeout(a,1);return}b.ready()}}var b=function(i,u){return new b.fn.init(i,u,f)},d=l.jQuery,e=l.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,j=/\S/,r=/^\s+/,p=/\s+$/,n=/\d/,v=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,D=/^[\],:{}\s]*$/,K=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,I=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,N=/(?:^|:|,)(?:\s*\[)+/g,
U=/(webkit)[ \/]([\w.]+)/,Q=/(opera)(?:.*version)?[ \/]([\w.]+)/,Z=/(msie) ([\w.]+)/,fa=/(mozilla)(?:.*? rv:([\w.]+))?/,g=navigator.userAgent,k=false,s,o="then done fail isResolved isRejected promise".split(" "),q,t=Object.prototype.toString,B=Object.prototype.hasOwnProperty,A=Array.prototype.push,J=Array.prototype.slice,$=String.prototype.trim,Y=Array.prototype.indexOf,V={};b.fn=b.prototype={constructor:b,init:function(i,u,w){var x;if(!i)return this;if(i.nodeType){this.context=this[0]=i;this.length=
1;return this}if(i==="body"&&!u&&z.body){this.context=z;this[0]=z.body;this.selector="body";this.length=1;return this}if(typeof i==="string")if((x=h.exec(i))&&(x[1]||!u))if(x[1]){w=(u=u instanceof b?u[0]:u)?u.ownerDocument||u:z;if(i=v.exec(i))if(b.isPlainObject(u)){i=[z.createElement(i[1])];b.fn.attr.call(i,u,true)}else i=[w.createElement(i[1])];else{i=b.buildFragment([x[1]],[w]);i=(i.cacheable?b.clone(i.fragment):i.fragment).childNodes}return b.merge(this,i)}else{if((u=z.getElementById(x[2]))&&u.parentNode){if(u.id!==
x[2])return w.find(i);this.length=1;this[0]=u}this.context=z;this.selector=i;return this}else return!u||u.jquery?(u||w).find(i):this.constructor(u).find(i);else if(b.isFunction(i))return w.ready(i);if(i.selector!==m){this.selector=i.selector;this.context=i.context}return b.makeArray(i,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return J.call(this,0)},get:function(i){return i==null?this.toArray():i<0?this[this.length+i]:this[i]},pushStack:function(i,
u,w){var x=this.constructor();b.isArray(i)?A.apply(x,i):b.merge(x,i);x.prevObject=this;x.context=this.context;if(u==="find")x.selector=this.selector+(this.selector?" ":"")+w;else if(u)x.selector=this.selector+"."+u+"("+w+")";return x},each:function(i,u){return b.each(this,i,u)},ready:function(i){b.bindReady();s.done(i);return this},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(J.apply(this,
arguments),"slice",J.call(arguments).join(","))},map:function(i){return this.pushStack(b.map(this,function(u,w){return i.call(u,w,u)}))},end:function(){return this.prevObject||this.constructor(null)},push:A,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var i,u,w,x,G,H=arguments[0]||{},O=1,R=arguments.length,ba=false;if(typeof H==="boolean"){ba=H;H=arguments[1]||{};O=2}if(typeof H!=="object"&&!b.isFunction(H))H={};if(R===O){H=this;--O}for(;O<R;O++)if((i=arguments[O])!=
null)for(u in i){w=H[u];x=i[u];if(H!==x)if(ba&&x&&(b.isPlainObject(x)||(G=b.isArray(x)))){if(G){G=false;w=w&&b.isArray(w)?w:[]}else w=w&&b.isPlainObject(w)?w:{};H[u]=b.extend(ba,w,x)}else if(x!==m)H[u]=x}return H};b.extend({noConflict:function(i){l.$=e;if(i)l.jQuery=d;return b},isReady:false,readyWait:1,ready:function(i){i===true&&b.readyWait--;if(!b.readyWait||i!==true&&!b.isReady){if(!z.body)return setTimeout(b.ready,1);b.isReady=true;if(!(i!==true&&--b.readyWait>0)){s.resolveWith(z,[b]);b.fn.trigger&&
b(z).trigger("ready").unbind("ready")}}},bindReady:function(){if(!k){k=true;if(z.readyState==="complete")return setTimeout(b.ready,1);if(z.addEventListener){z.addEventListener("DOMContentLoaded",q,false);l.addEventListener("load",b.ready,false)}else if(z.attachEvent){z.attachEvent("onreadystatechange",q);l.attachEvent("onload",b.ready);var i=false;try{i=l.frameElement==null}catch(u){}z.documentElement.doScroll&&i&&a()}}},isFunction:function(i){return b.type(i)==="function"},isArray:Array.isArray||
function(i){return b.type(i)==="array"},isWindow:function(i){return i&&typeof i==="object"&&"setInterval"in i},isNaN:function(i){return i==null||!n.test(i)||isNaN(i)},type:function(i){return i==null?String(i):V[t.call(i)]||"object"},isPlainObject:function(i){if(!i||b.type(i)!=="object"||i.nodeType||b.isWindow(i))return false;if(i.constructor&&!B.call(i,"constructor")&&!B.call(i.constructor.prototype,"isPrototypeOf"))return false;var u;for(u in i);return u===m||B.call(i,u)},isEmptyObject:function(i){for(var u in i)return false;
return true},error:function(i){throw i;},parseJSON:function(i){if(typeof i!=="string"||!i)return null;i=b.trim(i);if(D.test(i.replace(K,"@").replace(I,"]").replace(N,"")))return l.JSON&&l.JSON.parse?l.JSON.parse(i):(new Function("return "+i))();else b.error("Invalid JSON: "+i)},parseXML:function(i,u,w){if(l.DOMParser){w=new DOMParser;u=w.parseFromString(i,"text/xml")}else{u=new ActiveXObject("Microsoft.XMLDOM");u.async="false";u.loadXML(i)}w=u.documentElement;if(!w||!w.nodeName||w.nodeName==="parsererror")b.error("Invalid XML: "+
i);return u},noop:function(){},globalEval:function(i){if(i&&j.test(i)){var u=z.head||z.getElementsByTagName("head")[0]||z.documentElement,w=z.createElement("script");if(b.support.scriptEval())w.appendChild(z.createTextNode(i));else w.text=i;u.insertBefore(w,u.firstChild);u.removeChild(w)}},nodeName:function(i,u){return i.nodeName&&i.nodeName.toUpperCase()===u.toUpperCase()},each:function(i,u,w){var x,G=0,H=i.length,O=H===m||b.isFunction(i);if(w)if(O)for(x in i){if(u.apply(i[x],w)===false)break}else for(;G<
H;){if(u.apply(i[G++],w)===false)break}else if(O)for(x in i){if(u.call(i[x],x,i[x])===false)break}else for(w=i[0];G<H&&u.call(w,G,w)!==false;w=i[++G]);return i},trim:$?function(i){return i==null?"":$.call(i)}:function(i){return i==null?"":i.toString().replace(r,"").replace(p,"")},makeArray:function(i,u){var w=u||[];if(i!=null){var x=b.type(i);i.length==null||x==="string"||x==="function"||x==="regexp"||b.isWindow(i)?A.call(w,i):b.merge(w,i)}return w},inArray:function(i,u){if(u.indexOf)return u.indexOf(i);
for(var w=0,x=u.length;w<x;w++)if(u[w]===i)return w;return-1},merge:function(i,u){var w=i.length,x=0;if(typeof u.length==="number")for(var G=u.length;x<G;x++)i[w++]=u[x];else for(;u[x]!==m;)i[w++]=u[x++];i.length=w;return i},grep:function(i,u,w){var x=[],G;w=!!w;for(var H=0,O=i.length;H<O;H++){G=!!u(i[H],H);w!==G&&x.push(i[H])}return x},map:function(i,u,w){for(var x=[],G,H=0,O=i.length;H<O;H++){G=u(i[H],H,w);if(G!=null)x[x.length]=G}return x.concat.apply([],x)},guid:1,proxy:function(i,u,w){if(arguments.length===
2)if(typeof u==="string"){w=i;i=w[u];u=m}else if(u&&!b.isFunction(u)){w=u;u=m}if(!u&&i)u=function(){return i.apply(w||this,arguments)};if(i)u.guid=i.guid=i.guid||u.guid||b.guid++;return u},access:function(i,u,w,x,G,H){var O=i.length;if(typeof u==="object"){for(var R in u)b.access(i,R,u[R],x,G,w);return i}if(w!==m){x=!H&&x&&b.isFunction(w);for(R=0;R<O;R++)G(i[R],u,x?w.call(i[R],R,G(i[R],u)):w,H);return i}return O?G(i[0],u):m},now:function(){return(new Date).getTime()},_Deferred:function(){var i=[],
u,w,x,G={done:function(){if(!x){var H=arguments,O,R,ba,ta,ha;if(u){ha=u;u=0}O=0;for(R=H.length;O<R;O++){ba=H[O];ta=b.type(ba);if(ta==="array")G.done.apply(G,ba);else ta==="function"&&i.push(ba)}ha&&G.resolveWith(ha[0],ha[1])}return this},resolveWith:function(H,O){if(!x&&!u&&!w){w=1;try{for(;i[0];)i.shift().apply(H,O)}catch(R){throw R;}finally{u=[H,O];w=0}}return this},resolve:function(){G.resolveWith(b.isFunction(this.promise)?this.promise():this,arguments);return this},isResolved:function(){return!!(w||
u)},cancel:function(){x=1;i=[];return this}};return G},Deferred:function(i){var u=b._Deferred(),w=b._Deferred(),x;b.extend(u,{then:function(G,H){u.done(G).fail(H);return this},fail:w.done,rejectWith:w.resolveWith,reject:w.resolve,isRejected:w.isResolved,promise:function(G){if(G==null){if(x)return x;x=G={}}for(var H=o.length;H--;)G[o[H]]=u[o[H]];return G}});u.done(w.cancel).fail(u.cancel);delete u.cancel;i&&i.call(u,u);return u},when:function(i){var u=arguments.length,w=u<=1&&i&&b.isFunction(i.promise)?
i:b.Deferred(),x=w.promise();if(u>1){for(var G=J.call(arguments,0),H=u,O=function(R){return function(ba){G[R]=arguments.length>1?J.call(arguments,0):ba;--H||w.resolveWith(x,G)}};u--;)if((i=G[u])&&b.isFunction(i.promise))i.promise().then(O(u),w.reject);else--H;H||w.resolveWith(x,G)}else w!==i&&w.resolve(i);return x},uaMatch:function(i){i=i.toLowerCase();i=U.exec(i)||Q.exec(i)||Z.exec(i)||i.indexOf("compatible")<0&&fa.exec(i)||[];return{browser:i[1]||"",version:i[2]||"0"}},sub:function(){function i(w,
x){return new i.fn.init(w,x)}b.extend(true,i,this);i.superclass=this;i.fn=i.prototype=this();i.fn.constructor=i;i.subclass=this.subclass;i.fn.init=function(w,x){if(x&&x instanceof b&&!(x instanceof i))x=i(x);return b.fn.init.call(this,w,x,u)};i.fn.init.prototype=i.fn;var u=i(z);return i},browser:{}});s=b._Deferred();b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(i,u){V["[object "+u+"]"]=u.toLowerCase()});g=b.uaMatch(g);if(g.browser){b.browser[g.browser]=true;
b.browser.version=g.version}if(b.browser.webkit)b.browser.safari=true;if(Y)b.inArray=function(i,u){return Y.call(u,i)};if(j.test("\u00a0")){r=/^[\s\xA0]+/;p=/[\s\xA0]+$/}f=b(z);if(z.addEventListener)q=function(){z.removeEventListener("DOMContentLoaded",q,false);b.ready()};else if(z.attachEvent)q=function(){if(z.readyState==="complete"){z.detachEvent("onreadystatechange",q);b.ready()}};return b}();(function(){c.support={};var a=z.createElement("div");a.style.display="none";a.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var b=a.getElementsByTagName("*"),d=a.getElementsByTagName("a")[0],e=z.createElement("select"),f=e.appendChild(z.createElement("option")),h=a.getElementsByTagName("input")[0];if(!(!b||!b.length||!d)){c.support={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.55$/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,
checkOn:h.value==="on",optSelected:f.selected,deleteExpando:true,optDisabled:false,checkClone:false,noCloneEvent:true,noCloneChecked:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};h.checked=true;c.support.noCloneChecked=h.cloneNode(true).checked;e.disabled=true;c.support.optDisabled=!f.disabled;var j=null;c.support.scriptEval=function(){if(j===null){var p=z.documentElement,n=z.createElement("script"),v="script"+c.now();try{n.appendChild(z.createTextNode("window."+
v+"=1;"))}catch(D){}p.insertBefore(n,p.firstChild);if(l[v]){j=true;delete l[v]}else j=false;p.removeChild(n)}return j};try{delete a.test}catch(r){c.support.deleteExpando=false}if(!a.addEventListener&&a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function p(){c.support.noCloneEvent=false;a.detachEvent("onclick",p)});a.cloneNode(true).fireEvent("onclick")}a=z.createElement("div");a.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";b=z.createDocumentFragment();b.appendChild(a.firstChild);
c.support.checkClone=b.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var p=z.createElement("div"),n=z.getElementsByTagName("body")[0];if(n){p.style.width=p.style.paddingLeft="1px";n.appendChild(p);c.boxModel=c.support.boxModel=p.offsetWidth===2;if("zoom"in p.style){p.style.display="inline";p.style.zoom=1;c.support.inlineBlockNeedsLayout=p.offsetWidth===2;p.style.display="";p.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=p.offsetWidth!==2}p.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
var v=p.getElementsByTagName("td");c.support.reliableHiddenOffsets=v[0].offsetHeight===0;v[0].style.display="";v[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&v[0].offsetHeight===0;p.innerHTML="";n.removeChild(p).style.display="none"}});b=function(p){var n=z.createElement("div");p="on"+p;if(!n.attachEvent)return true;var v=p in n;if(!v){n.setAttribute(p,"return;");v=typeof n[p]==="function"}return v};c.support.submitBubbles=b("submit");c.support.changeBubbles=
b("change");a=b=d=null}})();var eb=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(a){a=a.nodeType?c.cache[a[c.expando]]:a[c.expando];return!!a&&!y(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f=c.expando,h=typeof b==="string",j=a.nodeType,r=j?c.cache:a,p=j?a[c.expando]:a[c.expando]&&c.expando;if(!((!p||e&&p&&!r[p][f])&&h&&d===m)){if(!p)if(j)a[c.expando]=
p=++c.uuid;else p=c.expando;if(!r[p]){r[p]={};if(!j)r[p].toJSON=c.noop}if(typeof b==="object"||typeof b==="function")if(e)r[p][f]=c.extend(r[p][f],b);else r[p]=c.extend(r[p],b);a=r[p];if(e){a[f]||(a[f]={});a=a[f]}if(d!==m)a[b]=d;if(b==="events"&&!a[b])return a[f]&&a[f].events;return h?a[b]:a}}},removeData:function(a,b,d){if(c.acceptData(a)){var e=c.expando,f=a.nodeType,h=f?c.cache:a,j=f?a[c.expando]:c.expando;if(h[j]){if(b){var r=d?h[j][e]:h[j];if(r){delete r[b];if(!y(r))return}}if(d){delete h[j][e];
if(!y(h[j]))return}b=h[j][e];if(c.support.deleteExpando||h!=l)delete h[j];else h[j]=null;if(b){h[j]={};if(!f)h[j].toJSON=c.noop;h[j][e]=b}else if(f)if(c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);else a[c.expando]=null}}},_data:function(a,b,d){return c.data(a,b,d,true)},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,
b){var d=null;if(typeof a==="undefined"){if(this.length){d=c.data(this[0]);if(this[0].nodeType===1)for(var e=this[0].attributes,f,h=0,j=e.length;h<j;h++){f=e[h].name;if(f.indexOf("data-")===0){f=f.substr(5);E(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,a)});var r=a.split(".");r[1]=r[1]?"."+r[1]:"";if(b===m){d=this.triggerHandler("getData"+r[1]+"!",[r[0]]);if(d===m&&this.length){d=c.data(this[0],a);d=E(this[0],a,d)}return d===m&&r[1]?this.data(r[0]):
d}else return this.each(function(){var p=c(this),n=[r[0],b];p.triggerHandler("setData"+r[1]+"!",n);c.data(this,a,b);p.triggerHandler("changeData"+r[1]+"!",n)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=c._data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c._data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();
if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}d.length||c.removeData(a,b+"queue",true)}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===m)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,
b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Ma=/[\n\t\r]/g,Ea=/\s+/,mb=/\r/g,nb=/^(?:href|src|style)$/,ob=/^(?:button|input)$/i,pb=/^(?:button|input|object|select|textarea)$/i,qb=/^a(?:rea)?$/i,Na=/^(?: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(a,b){return c.access(this,
a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var v=c(this);v.addClass(a.call(this,n,v.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(Ea),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1)if(f.className){for(var h=" "+f.className+" ",j=f.className,r=0,p=b.length;r<p;r++)if(h.indexOf(" "+b[r]+" ")<0)j+=" "+b[r];f.className=
c.trim(j)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(p){var n=c(this);n.removeClass(a.call(this,p,n.attr("class")))});if(a&&typeof a==="string"||a===m)for(var b=(a||"").split(Ea),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var h=(" "+f.className+" ").replace(Ma," "),j=0,r=b.length;j<r;j++)h=h.replace(" "+b[j]+" "," ");f.className=c.trim(h)}else f.className=""}return this},toggleClass:function(a,b){var d=
typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var h=c(this);h.toggleClass(a.call(this,f,h.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,h=0,j=c(this),r=b,p=a.split(Ea);f=p[h++];){r=e?r:!j.hasClass(f);j[r?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c._data(this,"__className__",this.className);this.className=this.className||a===false?"":c._data(this,"__className__")||""}})},hasClass:function(a){a=
" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Ma," ").indexOf(a)>-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){d=b.selectedIndex;var e=[],f=b.options;b=b.type==="select-one";if(d<0)return null;for(var h=b?d:0,j=b?d+1:f.length;h<j;h++){var r=f[h];if(r.selected&&(c.support.optDisabled?!r.disabled:r.getAttribute("disabled")===
null)&&(!r.parentNode.disabled||!c.nodeName(r.parentNode,"optgroup"))){a=c(r).val();if(b)return a;e.push(a)}}if(b&&!e.length&&f.length)return c(f[d]).val();return e}if(Na.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(mb,"")}return m}var p=c.isFunction(a);return this.each(function(n){var v=c(this),D=a;if(this.nodeType===1){if(p)D=a.call(this,n,v.val());if(D==null)D="";else if(typeof D==="number")D+="";else if(c.isArray(D))D=c.map(D,
function(I){return I==null?"":I+""});if(c.isArray(D)&&Na.test(this.type))this.checked=c.inArray(v.val(),D)>=0;else if(c.nodeName(this,"select")){var K=c.makeArray(D);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),K)>=0});if(!K.length)this.selectedIndex=-1}else this.value=D}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return m;if(e&&b in
c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==m;b=e&&c.props[b]||b;if(a.nodeType===1){var h=nb.test(b);if((b in a||a[b]!==m)&&e&&!h){if(f){b==="type"&&ob.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:pb.test(a.nodeName)||qb.test(a.nodeName)&&
a.href?0:m;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return m;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?m:a}if(f)a[b]=d;return a[b]}});var wa=/\.(.*)$/,Fa=/^(?:textarea|input|select)$/i,fb=/\./g,gb=/ /g,rb=/[^\w\s.|`]/g,sb=function(a){return a.replace(rb,"\\$&")};c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===
8)){try{if(c.isWindow(a)&&a!==l&&!a.frameElement)a=l}catch(f){}if(d===false)d=C;else if(!d)return;var h,j;if(d.handler){h=d;d=h.handler}if(!d.guid)d.guid=c.guid++;if(j=c._data(a)){var r=j.events,p=j.handle;if(!r)j.events=r={};if(!p)j.handle=p=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(p.elem,arguments):m};p.elem=a;b=b.split(" ");for(var n,v=0,D;n=b[v++];){j=h?c.extend({},h):{handler:d,data:e};if(n.indexOf(".")>-1){D=n.split(".");n=D.shift();j.namespace=D.slice(0).sort().join(".")}else{D=
[];j.namespace=""}j.type=n;if(!j.guid)j.guid=d.guid;var K=r[n],I=c.event.special[n]||{};if(!K){K=r[n]=[];if(!I.setup||I.setup.call(a,e,D,p)===false)if(a.addEventListener)a.addEventListener(n,p,false);else a.attachEvent&&a.attachEvent("on"+n,p)}if(I.add){I.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}K.push(j);c.event.global[n]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=C;var f,h,j=0,r,p,n,v,D,K,I=c.hasData(a)&&c._data(a),N=I&&I.events;
if(I&&N){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in N)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[j++];){v=f;r=f.indexOf(".")<0;p=[];if(!r){p=f.split(".");f=p.shift();n=RegExp("(^|\\.)"+c.map(p.slice(0).sort(),sb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(D=N[f])if(d){v=c.event.special[f]||{};for(h=e||0;h<D.length;h++){K=D[h];if(d.guid===K.guid){if(r||n.test(K.namespace)){e==null&&D.splice(h--,1);v.remove&&v.remove.call(a,K)}if(e!=null)break}}if(D.length===
0||e!=null&&D.length===1){if(!v.teardown||v.teardown.call(a,p)===false)c.removeEvent(a,f,I.handle);delete N[f]}}else for(h=0;h<D.length;h++){K=D[h];if(r||n.test(K.namespace)){c.event.remove(a,v,K.handler,h);D.splice(h--,1)}}}if(c.isEmptyObject(N)){if(b=I.handle)b.elem=null;delete I.events;delete I.handle;c.isEmptyObject(I)&&c.removeData(a,m,true)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=
f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){var D=this[c.expando];D&&D.events&&D.events[f]&&c.event.trigger(a,b,D.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return m;a.result=m;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=c._data(d,"handle"))&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&
e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var j;e=a.target;var r=f.replace(wa,""),p=c.nodeName(e,"a")&&r==="click",n=c.event.special[r]||{};if((!n._default||n._default.call(d,a)===false)&&!p&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[r]){if(j=e["on"+r])e["on"+r]=null;c.event.triggered=true;e[r]()}}catch(v){}if(j)e["on"+r]=j;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||l.event);a.currentTarget=
this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c._data(this,"events");d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var j=d.length;f<j;f++){var r=d[f];if(b||e.test(r.namespace)){a.handler=r.handler;a.data=r.data;a.handleObj=r;r=r.handler.apply(this,h);if(r!==m){a.result=r;if(r===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.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(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||z;
if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=z.documentElement;d=z.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;
if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==m)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,W(a.origType,a.selector),c.extend({},a,{handler:ia,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,W(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===
b)this.onbeforeunload=null}}}};c.removeEvent=z.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type;this.isDefaultPrevented=a.defaultPrevented||a.returnValue===false||a.getPreventDefault&&a.getPreventDefault()?F:C}else this.type=a;this.timeStamp=c.now();this[c.expando]=true};c.Event.prototype=
{preventDefault:function(){this.isDefaultPrevented=F;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=F;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=F;this.stopPropagation()},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};var Oa=function(a){var b=a.relatedTarget;
try{if(!(b!==z&&!b.parentNode)){for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}}catch(d){}},Pa=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Pa:Oa,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Pa:Oa)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName&&
this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)ea("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)ea("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var ua,
Qa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},xa=function(a,b){var d=a.target,e,f;if(!(!Fa.test(d.nodeName)||d.readOnly)){e=c._data(d,"_change_data");f=Qa(d);if(a.type!=="focusout"||d.type!=="radio")c._data(d,"_change_data",f);if(!(e===m||f===e))if(e!=null||f){a.type="change";a.liveFired=
m;c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:xa,beforedeactivate:xa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")xa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")xa.call(this,a)},beforeactivate:function(a){a=a.target;c._data(a,"_change_data",Qa(a))}},setup:function(){if(this.type===
"file")return false;for(var a in ua)c.event.add(this,a+".specialChange",ua[a]);return Fa.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return Fa.test(this.nodeName)}};ua=c.event.special.change.filters;ua.focus=ua.beforeactivate}z.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.handle.call(this,e)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,
d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=m}var j=b==="one"?c.proxy(f,function(p){c(this).unbind(p,j);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var r=this.length;h<r;h++)c.event.add(this[h],d,j,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,
a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=
1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(e){var f=(c._data(this,"lastToggle"+a.guid)||0)%d;c._data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ra={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var j,r=0,p,n,v=h||this.selector;h=h?this:c(this.context);if(typeof d===
"object"&&!d.preventDefault){for(j in d)h[b](j,e,d[j],v);return this}if(c.isFunction(e)){f=e;e=m}for(d=(d||"").split(" ");(j=d[r++])!=null;){p=wa.exec(j);n="";if(p){n=p[0];j=j.replace(wa,"")}if(j==="hover")d.push("mouseenter"+n,"mouseleave"+n);else{p=j;if(j==="focus"||j==="blur"){d.push(Ra[j]+n);j+=n}else j=(Ra[j]||j)+n;if(b==="live"){n=0;for(var D=h.length;n<D;n++)c.event.add(h[n],"live."+W(j,v),{data:e,selector:v,handler:f,origType:j,origHandler:f,preType:p})}else h.unbind("live."+W(j,v),f)}}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(a,b){c.fn[b]=function(d,e){if(e==null){e=d;d=null}return arguments.length>0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});(function(){function a(g,k,s,o,q,t){q=0;for(var B=o.length;q<B;q++){var A=o[q];if(A){var J=false;for(A=A[g];A;){if(A.sizcache===s){J=o[A.sizset];
break}if(A.nodeType===1&&!t){A.sizcache=s;A.sizset=q}if(A.nodeName.toLowerCase()===k){J=A;break}A=A[g]}o[q]=J}}}function b(g,k,s,o,q,t){q=0;for(var B=o.length;q<B;q++){var A=o[q];if(A){var J=false;for(A=A[g];A;){if(A.sizcache===s){J=o[A.sizset];break}if(A.nodeType===1){if(!t){A.sizcache=s;A.sizset=q}if(typeof k!=="string"){if(A===k){J=true;break}}else if(n.filter(k,[A]).length>0){J=A;break}}A=A[g]}o[q]=J}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e=0,f=Object.prototype.toString,h=false,j=true,r=/\\/g,p=/\W/;[0,0].sort(function(){j=false;return 0});var n=function(g,k,s,o){s=s||[];var q=k=k||z;if(k.nodeType!==1&&k.nodeType!==9)return[];if(!g||typeof g!=="string")return s;var t,B,A,J,$,Y=true,V=n.isXML(k),i=[],u=g;do{d.exec("");if(t=d.exec(u)){u=t[3];i.push(t[1]);if(t[2]){J=t[3];break}}}while(t);if(i.length>1&&D.exec(g))if(i.length===2&&v.relative[i[0]])B=fa(i[0]+i[1],k);else for(B=v.relative[i[0]]?[k]:n(i.shift(),k);i.length;){g=i.shift();if(v.relative[g])g+=
i.shift();B=fa(g,B)}else{if(!o&&i.length>1&&k.nodeType===9&&!V&&v.match.ID.test(i[0])&&!v.match.ID.test(i[i.length-1])){t=n.find(i.shift(),k,V);k=t.expr?n.filter(t.expr,t.set)[0]:t.set[0]}if(k){t=o?{expr:i.pop(),set:N(o)}:n.find(i.pop(),i.length===1&&(i[0]==="~"||i[0]==="+")&&k.parentNode?k.parentNode:k,V);B=t.expr?n.filter(t.expr,t.set):t.set;if(i.length>0)A=N(B);else Y=false;for(;i.length;){t=$=i.pop();if(v.relative[$])t=i.pop();else $="";if(t==null)t=k;v.relative[$](A,t,V)}}else A=[]}A||(A=B);
A||n.error($||g);if(f.call(A)==="[object Array]")if(Y)if(k&&k.nodeType===1)for(g=0;A[g]!=null;g++){if(A[g]&&(A[g]===true||A[g].nodeType===1&&n.contains(k,A[g])))s.push(B[g])}else for(g=0;A[g]!=null;g++)A[g]&&A[g].nodeType===1&&s.push(B[g]);else s.push.apply(s,A);else N(A,s);if(J){n(J,q,s,o);n.uniqueSort(s)}return s};n.uniqueSort=function(g){if(Q){h=j;g.sort(Q);if(h)for(var k=1;k<g.length;k++)g[k]===g[k-1]&&g.splice(k--,1)}return g};n.matches=function(g,k){return n(g,null,null,k)};n.matchesSelector=
function(g,k){return n(k,null,null,[g]).length>0};n.find=function(g,k,s){var o;if(!g)return[];for(var q=0,t=v.order.length;q<t;q++){var B,A=v.order[q];if(B=v.leftMatch[A].exec(g)){var J=B[1];B.splice(1,1);if(J.substr(J.length-1)!=="\\"){B[1]=(B[1]||"").replace(r,"");o=v.find[A](B,k,s);if(o!=null){g=g.replace(v.match[A],"");break}}}}o||(o=typeof k.getElementsByTagName!=="undefined"?k.getElementsByTagName("*"):[]);return{set:o,expr:g}};n.filter=function(g,k,s,o){for(var q,t,B=g,A=[],J=k,$=k&&k[0]&&
n.isXML(k[0]);g&&k.length;){for(var Y in v.filter)if((q=v.leftMatch[Y].exec(g))!=null&&q[2]){var V,i,u=v.filter[Y];i=q[1];t=false;q.splice(1,1);if(i.substr(i.length-1)!=="\\"){if(J===A)A=[];if(v.preFilter[Y])if(q=v.preFilter[Y](q,J,s,A,o,$)){if(q===true)continue}else t=V=true;if(q)for(var w=0;(i=J[w])!=null;w++)if(i){V=u(i,q,w,J);var x=o^!!V;if(s&&V!=null)if(x)t=true;else J[w]=false;else if(x){A.push(i);t=true}}if(V!==m){s||(J=A);g=g.replace(v.match[Y],"");if(!t)return[];break}}}if(g===B)if(t==null)n.error(g);
else break;B=g}return J};n.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var v=n.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|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")},type:function(g){return g.getAttribute("type")}},relative:{"+":function(g,k){var s=typeof k==="string",o=s&&!p.test(k);s=s&&!o;if(o)k=k.toLowerCase();o=0;for(var q=g.length,t;o<q;o++)if(t=g[o]){for(;(t=t.previousSibling)&&t.nodeType!==
1;);g[o]=s||t&&t.nodeName.toLowerCase()===k?t||false:t===k}s&&n.filter(k,g,true)},">":function(g,k){var s,o=typeof k==="string",q=0,t=g.length;if(o&&!p.test(k))for(k=k.toLowerCase();q<t;q++){if(s=g[q]){s=s.parentNode;g[q]=s.nodeName.toLowerCase()===k?s:false}}else{for(;q<t;q++)if(s=g[q])g[q]=o?s.parentNode:s.parentNode===k;o&&n.filter(k,g,true)}},"":function(g,k,s){var o,q=e++,t=b;if(typeof k==="string"&&!p.test(k)){o=k=k.toLowerCase();t=a}t("parentNode",k,q,g,o,s)},"~":function(g,k,s){var o,q=e++,
t=b;if(typeof k==="string"&&!p.test(k)){o=k=k.toLowerCase();t=a}t("previousSibling",k,q,g,o,s)}},find:{ID:function(g,k,s){if(typeof k.getElementById!=="undefined"&&!s)return(g=k.getElementById(g[1]))&&g.parentNode?[g]:[]},NAME:function(g,k){if(typeof k.getElementsByName!=="undefined"){for(var s=[],o=k.getElementsByName(g[1]),q=0,t=o.length;q<t;q++)o[q].getAttribute("name")===g[1]&&s.push(o[q]);return s.length===0?null:s}},TAG:function(g,k){if(typeof k.getElementsByTagName!=="undefined")return k.getElementsByTagName(g[1])}},
preFilter:{CLASS:function(g,k,s,o,q,t){g=" "+g[1].replace(r,"")+" ";if(t)return g;t=0;for(var B;(B=k[t])!=null;t++)if(B)if(q^(B.className&&(" "+B.className+" ").replace(/[\t\n\r]/g," ").indexOf(g)>=0))s||o.push(B);else if(s)k[t]=false;return false},ID:function(g){return g[1].replace(r,"")},TAG:function(g){return g[1].replace(r,"").toLowerCase()},CHILD:function(g){if(g[1]==="nth"){g[2]||n.error(g[0]);g[2]=g[2].replace(/^\+|\s*/g,"");var k=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(g[2]==="even"&&"2n"||g[2]===
"odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=k[1]+(k[2]||1)-0;g[3]=k[3]-0}else g[2]&&n.error(g[0]);g[0]=e++;return g},ATTR:function(g,k,s,o,q,t){k=g[1]=g[1].replace(r,"");if(!t&&v.attrMap[k])g[1]=v.attrMap[k];g[4]=(g[4]||g[5]||"").replace(r,"");if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,k,s,o,q){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=n(g[3],null,null,k);else{g=n.filter(g[3],k,s,true^q);s||o.push.apply(o,g);return false}else if(v.match.POS.test(g[0])||
v.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,k,s){return!!n(s[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===
g.getAttribute("type")},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,
k){return k===0},last:function(g,k,s,o){return k===o.length-1},even:function(g,k){return k%2===0},odd:function(g,k){return k%2===1},lt:function(g,k,s){return k<s[3]-0},gt:function(g,k,s){return k>s[3]-0},nth:function(g,k,s){return s[3]-0===k},eq:function(g,k,s){return s[3]-0===k}},filter:{PSEUDO:function(g,k,s,o){var q=k[1],t=v.filters[q];if(t)return t(g,s,k,o);else if(q==="contains")return(g.textContent||g.innerText||n.getText([g])||"").indexOf(k[3])>=0;else if(q==="not"){k=k[3];s=0;for(o=k.length;s<
o;s++)if(k[s]===g)return false;return true}else n.error(q)},CHILD:function(g,k){var s=k[1],o=g;switch(s){case "only":case "first":for(;o=o.previousSibling;)if(o.nodeType===1)return false;if(s==="first")return true;o=g;case "last":for(;o=o.nextSibling;)if(o.nodeType===1)return false;return true;case "nth":s=k[2];var q=k[3];if(s===1&&q===0)return true;var t=k[0],B=g.parentNode;if(B&&(B.sizcache!==t||!g.nodeIndex)){var A=0;for(o=B.firstChild;o;o=o.nextSibling)if(o.nodeType===1)o.nodeIndex=++A;B.sizcache=
t}o=g.nodeIndex-q;return s===0?o===0:o%s===0&&o/s>=0}},ID:function(g,k){return g.nodeType===1&&g.getAttribute("id")===k},TAG:function(g,k){return k==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===k},CLASS:function(g,k){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(k)>-1},ATTR:function(g,k){var s=k[1];s=v.attrHandle[s]?v.attrHandle[s](g):g[s]!=null?g[s]:g.getAttribute(s);var o=s+"",q=k[2],t=k[4];return s==null?q==="!=":q==="="?o===t:q==="*="?o.indexOf(t)>=0:q==="~="?(" "+o+" ").indexOf(t)>=
0:!t?o&&s!==false:q==="!="?o!==t:q==="^="?o.indexOf(t)===0:q==="$="?o.substr(o.length-t.length)===t:q==="|="?o===t||o.substr(0,t.length+1)===t+"-":false},POS:function(g,k,s,o){var q=v.setFilters[k[2]];if(q)return q(g,s,k,o)}}},D=v.match.POS,K=function(g,k){return"\\"+(k-0+1)};for(var I in v.match){v.match[I]=RegExp(v.match[I].source+/(?![^\[]*\])(?![^\(]*\))/.source);v.leftMatch[I]=RegExp(/(^(?:.|\r|\n)*?)/.source+v.match[I].source.replace(/\\(\d+)/g,K))}var N=function(g,k){g=Array.prototype.slice.call(g,
0);if(k){k.push.apply(k,g);return k}return g};try{Array.prototype.slice.call(z.documentElement.childNodes,0)}catch(U){N=function(g,k){var s=0,o=k||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(o,g);else if(typeof g.length==="number")for(var q=g.length;s<q;s++)o.push(g[s]);else for(;g[s];s++)o.push(g[s]);return o}}var Q,Z;if(z.documentElement.compareDocumentPosition)Q=function(g,k){if(g===k){h=true;return 0}if(!g.compareDocumentPosition||!k.compareDocumentPosition)return g.compareDocumentPosition?
-1:1;return g.compareDocumentPosition(k)&4?-1:1};else{Q=function(g,k){var s,o,q=[],t=[];s=g.parentNode;o=k.parentNode;var B=s;if(g===k){h=true;return 0}else if(s===o)return Z(g,k);else if(s){if(!o)return 1}else return-1;for(;B;){q.unshift(B);B=B.parentNode}for(B=o;B;){t.unshift(B);B=B.parentNode}s=q.length;o=t.length;for(B=0;B<s&&B<o;B++)if(q[B]!==t[B])return Z(q[B],t[B]);return B===s?Z(g,t[B],-1):Z(q[B],k,1)};Z=function(g,k,s){if(g===k)return s;for(g=g.nextSibling;g;){if(g===k)return-1;g=g.nextSibling}return 1}}n.getText=
function(g){for(var k="",s,o=0;g[o];o++){s=g[o];if(s.nodeType===3||s.nodeType===4)k+=s.nodeValue;else if(s.nodeType!==8)k+=n.getText(s.childNodes)}return k};(function(){var g=z.createElement("div"),k="script"+(new Date).getTime(),s=z.documentElement;g.innerHTML="<a name='"+k+"'/>";s.insertBefore(g,s.firstChild);if(z.getElementById(k)){v.find.ID=function(o,q,t){if(typeof q.getElementById!=="undefined"&&!t)return(q=q.getElementById(o[1]))?q.id===o[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===
o[1]?[q]:m:[]};v.filter.ID=function(o,q){var t=typeof o.getAttributeNode!=="undefined"&&o.getAttributeNode("id");return o.nodeType===1&&t&&t.nodeValue===q}}s.removeChild(g);s=g=null})();(function(){var g=z.createElement("div");g.appendChild(z.createComment(""));if(g.getElementsByTagName("*").length>0)v.find.TAG=function(k,s){var o=s.getElementsByTagName(k[1]);if(k[1]==="*"){for(var q=[],t=0;o[t];t++)o[t].nodeType===1&&q.push(o[t]);o=q}return o};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!==
"undefined"&&g.firstChild.getAttribute("href")!=="#")v.attrHandle.href=function(k){return k.getAttribute("href",2)};g=null})();z.querySelectorAll&&function(){var g=n,k=z.createElement("div");k.innerHTML="<p class='TEST'></p>";if(!(k.querySelectorAll&&k.querySelectorAll(".TEST").length===0)){n=function(o,q,t,B){q=q||z;if(!B&&!n.isXML(q)){var A=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(o);if(A&&(q.nodeType===1||q.nodeType===9))if(A[1])return N(q.getElementsByTagName(o),t);else if(A[2]&&v.find.CLASS&&
q.getElementsByClassName)return N(q.getElementsByClassName(A[2]),t);if(q.nodeType===9){if(o==="body"&&q.body)return N([q.body],t);else if(A&&A[3]){var J=q.getElementById(A[3]);if(J&&J.parentNode){if(J.id===A[3])return N([J],t)}else return N([],t)}try{return N(q.querySelectorAll(o),t)}catch($){}}else if(q.nodeType===1&&q.nodeName.toLowerCase()!=="object"){A=q;var Y=(J=q.getAttribute("id"))||"__sizzle__",V=q.parentNode,i=/^\s*[+~]/.test(o);if(J)Y=Y.replace(/'/g,"\\$&");else q.setAttribute("id",Y);if(i&&
V)q=q.parentNode;try{if(!i||V)return N(q.querySelectorAll("[id='"+Y+"'] "+o),t)}catch(u){}finally{J||A.removeAttribute("id")}}}return g(o,q,t,B)};for(var s in g)n[s]=g[s];k=null}}();(function(){var g=z.documentElement,k=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,s=false;try{k.call(z.documentElement,"[test!='']:sizzle")}catch(o){s=true}if(k)n.matchesSelector=function(q,t){t=t.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(q))try{if(s||!v.match.PSEUDO.test(t)&&
!/!=/.test(t))return k.call(q,t)}catch(B){}return n(t,null,null,[q]).length>0}})();(function(){var g=z.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){v.order.splice(1,0,"CLASS");v.find.CLASS=function(k,s,o){if(typeof s.getElementsByClassName!=="undefined"&&!o)return s.getElementsByClassName(k[1])};g=null}}})();n.contains=
z.documentElement.contains?function(g,k){return g!==k&&(g.contains?g.contains(k):true)}:z.documentElement.compareDocumentPosition?function(g,k){return!!(g.compareDocumentPosition(k)&16)}:function(){return false};n.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var fa=function(g,k){for(var s,o=[],q="",t=k.nodeType?[k]:k;s=v.match.PSEUDO.exec(g);){q+=s[0];g=g.replace(v.match.PSEUDO,"")}g=v.relative[g]?g+"*":g;s=0;for(var B=t.length;s<B;s++)n(g,t[s],o);
return n.filter(q,o)};c.find=n;c.expr=n.selectors;c.expr[":"]=c.expr.filters;c.unique=n.uniqueSort;c.text=n.getText;c.isXMLDoc=n.isXML;c.contains=n.contains})();var tb=/Until$/,ub=/^(?:parents|prevUntil|prevAll)/,vb=/,/,hb=/^.[^:#\[\.,]*$/,wb=Array.prototype.slice,xb=c.expr.match.POS,yb={children:true,contents:true,next:true,prev:true};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var h=d;h<b.length;h++)for(var j=
0;j<d;j++)if(b[j]===b[h]){b.splice(h--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(L(this,a,false),"not",a)},filter:function(a){return this.pushStack(L(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var j,r={},p=1;if(h&&a.length){e=0;for(f=a.length;e<f;e++){j=a[e];
r[j]||(r[j]=c.expr.match.POS.test(j)?c(j,b||this.context):j)}for(;h&&h.ownerDocument&&h!==b;){for(j in r){e=r[j];if(e.jquery?e.index(h)>-1:c(h).is(e))d.push({selector:j,elem:h,level:p})}h=h.parentNode;p++}}return d}j=xb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e<f;e++)for(h=this[e];h;)if(j?j.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||
typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b):c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,
"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},
contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d),h=wb.call(arguments);tb.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1&&!yb[a]?c.unique(f):f;if((this.length>1||vb.test(e))&&ub.test(a))f=f.reverse();return this.pushStack(f,a,h.join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],
a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===m||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var zb=/ jQuery\d+="(?:\d+|null)"/g,Ga=/^\s+/,Sa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ta=/<([\w:]+)/,
Ab=/<tbody/i,Bb=/<|&#?\w+;/,Ua=/<(?:script|object|embed|option|style)/i,Va=/checked\s*(?:[^=]|=\s*.checked.)/i,da={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,"",""]};da.optgroup=da.option;da.tbody=da.tfoot=da.colgroup=da.caption=
da.thead;da.th=da.td;if(!c.support.htmlSerialize)da._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==m)return this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);
this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},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(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());
return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&
e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=a==null?false:a;b=b==null?a:b;return this.map(function(){return c.clone(this,a,b)})},html:function(a){if(a===m)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(zb,""):null;else if(typeof a==="string"&&!Ua.test(a)&&(c.support.leadingWhitespace||!Ga.test(a))&&
!da[(Ta.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Sa,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var h=c(this);h.html(a.call(this,f,h.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();d.replaceWith(a.call(this,
b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,h,j=a[0],r=[];if(!c.support.checkClone&&arguments.length===3&&typeof j==="string"&&Va.test(j))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(j))return this.each(function(v){var D=
c(this);a[0]=j.call(this,v,b?D.html():m);D.domManip(a,b,d)});if(this[0]){e=j&&j.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,r);h=e.fragment;if(f=h.childNodes.length===1?h=h.firstChild:h.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var p=this.length,n=p-1;f<p;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],
e.cacheable||p>1&&f<n?c.clone(h,true,true):h)}r.length&&c.each(r,aa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:z;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===z&&a[0].charAt(0)==="<"&&!Ua.test(a[0])&&(c.support.checkClone||!Va.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",
prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f<h;f++){var j=(f>0?this.clone(true):this).get();c(d[f])[b](j);e=e.concat(j)}return this.pushStack(e,a,d.selector)}}});c.extend({clone:function(a,b,d){var e=a.cloneNode(true),f,h,j;if((!c.support.noCloneEvent||
!c.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!c.isXMLDoc(a)){P(a,e);f=S(a);h=S(e);for(j=0;f[j];++j)P(f[j],h[j])}if(b){T(a,e);if(d){f=S(a);h=S(e);for(j=0;f[j];++j)T(f[j],h[j])}}return e},clean:function(a,b,d,e){b=b||z;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||z;for(var f=[],h=0,j;(j=a[h])!=null;h++){if(typeof j==="number")j+="";if(j){if(typeof j==="string"&&!Bb.test(j))j=b.createTextNode(j);else if(typeof j==="string"){j=j.replace(Sa,"<$1></$2>");
var r=(Ta.exec(j)||["",""])[1].toLowerCase(),p=da[r]||da._default,n=p[0],v=b.createElement("div");for(v.innerHTML=p[1]+j+p[2];n--;)v=v.lastChild;if(!c.support.tbody){n=Ab.test(j);r=r==="table"&&!n?v.firstChild&&v.firstChild.childNodes:p[1]==="<table>"&&!n?v.childNodes:[];for(p=r.length-1;p>=0;--p)c.nodeName(r[p],"tbody")&&!r[p].childNodes.length&&r[p].parentNode.removeChild(r[p])}!c.support.leadingWhitespace&&Ga.test(j)&&v.insertBefore(b.createTextNode(Ga.exec(j)[0]),v.firstChild);j=v.childNodes}if(j.nodeType)f.push(j);
else f=c.merge(f,j)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script"))));d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.expando,h=c.event.special,j=c.support.deleteExpando,r=0,p;(p=a[r])!=null;r++)if(!(p.nodeName&&c.noData[p.nodeName.toLowerCase()]))if(d=
p[c.expando]){if((b=e[d]&&e[d][f])&&b.events){for(var n in b.events)h[n]?c.event.remove(p,n):c.removeEvent(p,n,b.handle);if(b.handle)b.handle.elem=null}if(j)delete p[c.expando];else p.removeAttribute&&p.removeAttribute(c.expando);delete e[d]}}});var Wa=/alpha\([^)]*\)/i,Cb=/opacity=([^)]*)/,Db=/-([a-z])/ig,Eb=/([A-Z])/g,Xa=/^-?\d+(?:px)?$/i,Fb=/^-?\d/,Gb={position:"absolute",visibility:"hidden",display:"block"},ib=["Left","Right"],jb=["Top","Bottom"],va,la,ya,Hb=function(a,b){return b.toUpperCase()};
c.fn.css=function(a,b){if(arguments.length===2&&b===m)return this;return c.access(this,a,b,true,function(d,e,f){return f!==m?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=va(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,
h=c.camelCase(b),j=a.style,r=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==m){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!r||!("set"in r)||(d=r.set(a,d))!==m)try{j[b]=d}catch(p){}}}else{if(r&&"get"in r&&(f=r.get(a,false,e))!==m)return f;return j[b]}}},css:function(a,b,d){var e,f=c.camelCase(b),h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==m)return e;else if(va)return va(a,b,f)},swap:function(a,b,d){var e={};for(var f in b){e[f]=
a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(Db,Hb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=ga(d,b,f);else c.swap(d,Gb,function(){h=ga(d,b,f)});if(h<=0){h=va(d,b,b);if(h==="0px"&&ya)h=ya(d,b,b);if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,
e){if(Xa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return Cb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f=d.filter||"";d.filter=Wa.test(f)?f.replace(Wa,e):d.filter+" "+e}};if(z.defaultView&&z.defaultView.getComputedStyle)la=function(a,b,d){var e;d=d.replace(Eb,"-$1").toLowerCase();
if(!(b=a.ownerDocument.defaultView))return m;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(z.documentElement.currentStyle)ya=function(a,b){var d,e=a.currentStyle&&a.currentStyle[b],f=a.runtimeStyle&&a.runtimeStyle[b],h=a.style;if(!Xa.test(e)&&Fb.test(e)){d=h.left;if(f)a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":e||0;e=h.pixelLeft+"px";h.left=d;if(f)a.runtimeStyle.left=f}return e===
""?"auto":e};va=la||ya;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var Ib=/%20/g,kb=/\[\]$/,Ya=/\r?\n/g,Jb=/#.*$/,Kb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Lb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Mb=/^(?:GET|HEAD)$/,Nb=/^\/\//,
Za=/\?/,Ob=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Pb=/^(?:select|textarea)/i,Ia=/\s+/,Qb=/([?&])_=[^&]*/,Rb=/(^|\-)([a-z])/g,Sb=function(a,b,d){return b+d.toUpperCase()},$a=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,ab=c.fn.load,Ba={},bb={},ma,na;try{ma=z.location.href}catch(Zb){ma=z.createElement("a");ma.href="";ma=ma.href}na=$a.exec(ma.toLowerCase());c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&ab)return ab.apply(this,arguments);else if(!this.length)return this;var e=
a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=m}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(j,r,p){p=j.responseText;if(j.isResolved()){j.done(function(n){p=n});h.html(f?c("<div>").append(p.replace(Ob,"")).find(f):p)}d&&h.each(d,[p,r,j])}});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||Pb.test(this.nodeName)||Lb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e.replace(Ya,"\r\n")}}):{name:b.name,value:d.replace(Ya,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.each(["get","post"],
function(a,b){c[b]=function(d,e,f,h){if(c.isFunction(e)){h=h||f;f=e;e=m}return c.ajax({type:b,url:d,data:e,success:f,dataType:h})}});c.extend({getScript:function(a,b){return c.get(a,m,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){if(b)c.extend(true,a,c.ajaxSettings,b);else{b=a;a=c.extend(true,c.ajaxSettings,b)}for(var d in{context:1,url:1})if(d in b)a[d]=b[d];else if(d in c.ajaxSettings)a[d]=c.ajaxSettings[d];return a},ajaxSettings:{url:ma,isLocal:/(?:^file|^widget|\-extension):$/.test(na[1]),
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":l.String,"text html":true,"text json":c.parseJSON,"text xml":c.parseXML}},ajaxPrefilter:ca(Ba),ajaxTransport:ca(bb),ajax:function(a,b){function d(o,q,t,B){if(Q!==
2){Q=2;N&&clearTimeout(N);I=m;D=B||"";g.readyState=o?4:0;var A,J,$;if(t){B=e;var Y=g,V=B.contents,i=B.dataTypes,u=B.responseFields,w,x,G,H;for(x in u)if(x in t)Y[u[x]]=t[x];for(;i[0]==="*";){i.shift();if(w===m)w=B.mimeType||Y.getResponseHeader("content-type")}if(w)for(x in V)if(V[x]&&V[x].test(w)){i.unshift(x);break}if(i[0]in t)G=i[0];else{for(x in t){if(!i[0]||B.converters[x+" "+i[0]]){G=x;break}H||(H=x)}G=G||H}if(G){G!==i[0]&&i.unshift(G);t=t[G]}else t=void 0}else t=m;t=t;if(o>=200&&o<300||o===
304){if(e.ifModified){if(w=g.getResponseHeader("Last-Modified"))c.lastModified[n]=w;if(w=g.getResponseHeader("Etag"))c.etag[n]=w}if(o===304){q="notmodified";A=true}else try{w=e;t=t;if(w.dataFilter)t=w.dataFilter(t,w.dataType);var O=w.dataTypes;x={};var R,ba,ta=O.length,ha,ja=O[0],ra,Ha,ka,oa,sa;for(R=1;R<ta;R++){if(R===1)for(ba in w.converters)if(typeof ba==="string")x[ba.toLowerCase()]=w.converters[ba];ra=ja;ja=O[R];if(ja==="*")ja=ra;else if(ra!=="*"&&ra!==ja){Ha=ra+" "+ja;ka=x[Ha]||x["* "+ja];if(!ka){sa=
m;for(oa in x){ha=oa.split(" ");if(ha[0]===ra||ha[0]==="*")if(sa=x[ha[1]+" "+ja]){oa=x[oa];if(oa===true)ka=sa;else if(sa===true)ka=oa;break}}}ka||sa||c.error("No conversion from "+Ha.replace(" "," to "));if(ka!==true)t=ka?ka(t):sa(oa(t))}}J=t;q="success";A=true}catch(Tb){q="parsererror";$=Tb}}else{$=q;if(!q||o){q="error";if(o<0)o=0}}g.status=o;g.statusText=q;A?j.resolveWith(f,[J,q,g]):j.rejectWith(f,[g,q,$]);g.statusCode(p);p=m;if(Z)h.trigger("ajax"+(A?"Success":"Error"),[g,e,A?J:$]);r.resolveWith(f,
[g,q]);if(Z){h.trigger("ajaxComplete",[g,e]);--c.active||c.event.trigger("ajaxStop")}}}if(typeof a==="object"){b=a;a=m}b=b||{};var e=c.ajaxSetup({},b),f=e.context||e,h=f!==e&&(f.nodeType||f instanceof c)?c(f):c.event,j=c.Deferred(),r=c._Deferred(),p=e.statusCode||{},n,v={},D,K,I,N,U,Q=0,Z,fa,g={readyState:0,setRequestHeader:function(o,q){Q||(v[o.toLowerCase().replace(Rb,Sb)]=q);return this},getAllResponseHeaders:function(){return Q===2?D:null},getResponseHeader:function(o){var q;if(Q===2){if(!K)for(K=
{};q=Kb.exec(D);)K[q[1].toLowerCase()]=q[2];q=K[o.toLowerCase()]}return q===m?null:q},overrideMimeType:function(o){if(!Q)e.mimeType=o;return this},abort:function(o){o=o||"abort";I&&I.abort(o);d(0,o);return this}};j.promise(g);g.success=g.done;g.error=g.fail;g.complete=r.done;g.statusCode=function(o){if(o){var q;if(Q<2)for(q in o)p[q]=[p[q],o[q]];else{q=o[g.status];g.then(q,q)}}return this};e.url=((a||e.url)+"").replace(Jb,"").replace(Nb,na[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(Ia);
if(!e.crossDomain){U=$a.exec(e.url.toLowerCase());e.crossDomain=!!(U&&(U[1]!=na[1]||U[2]!=na[2]||(U[3]||(U[1]==="http:"?80:443))!=(na[3]||(na[1]==="http:"?80:443))))}if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);X(Ba,e,b,g);if(Q===2)return false;Z=e.global;e.type=e.type.toUpperCase();e.hasContent=!Mb.test(e.type);Z&&c.active++===0&&c.event.trigger("ajaxStart");if(!e.hasContent){if(e.data)e.url+=(Za.test(e.url)?"&":"?")+e.data;n=e.url;if(e.cache===false){U=
c.now();var k=e.url.replace(Qb,"$1_="+U);e.url=k+(k===e.url?(Za.test(e.url)?"&":"?")+"_="+U:"")}}if(e.data&&e.hasContent&&e.contentType!==false||b.contentType)v["Content-Type"]=e.contentType;if(e.ifModified){n=n||e.url;if(c.lastModified[n])v["If-Modified-Since"]=c.lastModified[n];if(c.etag[n])v["If-None-Match"]=c.etag[n]}v.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(fa in e.headers)g.setRequestHeader(fa,e.headers[fa]);
if(e.beforeSend&&(e.beforeSend.call(f,g,e)===false||Q===2)){g.abort();return false}for(fa in{success:1,error:1,complete:1})g[fa](e[fa]);if(I=X(bb,e,b,g)){g.readyState=1;Z&&h.trigger("ajaxSend",[g,e]);if(e.async&&e.timeout>0)N=setTimeout(function(){g.abort("timeout")},e.timeout);try{Q=1;I.send(v,d)}catch(s){status<2?d(-1,s):c.error(s)}}else d(-1,"No Transport");return g},param:function(a,b){var d=[],e=function(h,j){j=c.isFunction(j)?j():j;d[d.length]=encodeURIComponent(h)+"="+encodeURIComponent(j)};
if(b===m)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery&&!c.isPlainObject(a))c.each(a,function(){e(this.name,this.value)});else for(var f in a)M(f,a[f],b,e);return d.join("&").replace(Ib,"+")}});c.extend({active:0,lastModified:{},etag:{}});var Ub=c.now(),za=/(\=)\?(&|$)|()\?\?()/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+Ub++}});c.ajaxPrefilter("json jsonp",function(a,b,d){var e=typeof a.data==="string";if(a.dataTypes[0]==="jsonp"||b.jsonpCallback||b.jsonp!=
null||a.jsonp!==false&&(za.test(a.url)||e&&za.test(a.data))){var f,h=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,j=l[h];b=a.url;var r=a.data,p="$1"+h+"$2",n=function(){l[h]=j;f&&c.isFunction(j)&&l[h](f[0])};if(a.jsonp!==false){b=b.replace(za,p);if(a.url===b){if(e)r=r.replace(za,p);if(a.data===r)b+=(/\?/.test(b)?"&":"?")+a.jsonp+"="+h}}a.url=b;a.data=r;l[h]=function(v){f=[v]};d.then(n,n);a.converters["script json"]=function(){f||c.error(h+" was not called");return f[0]};
a.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){if(a.cache===m)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,d=z.head||z.getElementsByTagName("head")[0]||z.documentElement;
return{send:function(e,f){b=z.createElement("script");b.async="async";if(a.scriptCharset)b.charset=a.scriptCharset;b.src=a.url;b.onload=b.onreadystatechange=function(h,j){if(!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;d&&b.parentNode&&d.removeChild(b);b=m;j||f(200,"success")}};d.insertBefore(b,d.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var Vb=c.now(),pa;c.ajaxSettings.xhr=l.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&Ja()))a:{try{a=new l.ActiveXObject("Microsoft.XMLHTTP");
break a}catch(b){}a=void 0}return a}:Ja;la=c.ajaxSettings.xhr();c.support.ajax=!!la;c.support.cors=la&&"withCredentials"in la;la=m;c.support.ajax&&c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;return{send:function(d,e){var f=a.xhr(),h,j;a.username?f.open(a.type,a.url,a.async,a.username,a.password):f.open(a.type,a.url,a.async);if(a.xhrFields)for(j in a.xhrFields)f[j]=a.xhrFields[j];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);if(!(a.crossDomain&&!a.hasContent)&&
!d["X-Requested-With"])d["X-Requested-With"]="XMLHttpRequest";try{for(j in d)f.setRequestHeader(j,d[j])}catch(r){}f.send(a.hasContent&&a.data||null);b=function(p,n){var v,D,K,I,N;try{if(b&&(n||f.readyState===4)){b=m;if(h){f.onreadystatechange=c.noop;delete pa[h]}if(n)f.readyState!==4&&f.abort();else{v=f.status;K=f.getAllResponseHeaders();I={};if((N=f.responseXML)&&N.documentElement)I.xml=N;I.text=f.responseText;try{D=f.statusText}catch(U){D=""}if(!v&&a.isLocal&&!a.crossDomain)v=I.text?200:404;else if(v===
1223)v=204}}}catch(Q){n||e(-1,Q)}I&&e(v,D,I,K)};if(!a.async||f.readyState===4)b();else{if(!pa){pa={};lb()}h=Vb++;f.onreadystatechange=pa[h]=b}},abort:function(){b&&b(0,1)}}}});var Ca={},Wb=/^(?:toggle|show|hide)$/,Xb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Aa,Ka=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(qa("show",3),a,b,d);else{d=0;for(var e=
this.length;d<e;d++){a=this[d];b=a.style.display;if(!c._data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c._data(a,"olddisplay",La(a.nodeName))}for(d=0;d<e;d++){a=this[d];b=a.style.display;if(b===""||b==="none")a.style.display=c._data(a,"olddisplay")||""}return this}},hide:function(a,b,d){if(a||a===0)return this.animate(qa("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++){d=c.css(this[a],"display");d!=="none"&&!c._data(this[a],"olddisplay")&&c._data(this[a],
"olddisplay",d)}for(a=0;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(qa("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){var f=
c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var h=c.extend({},f),j,r=this.nodeType===1,p=r&&c(this).is(":hidden"),n=this;for(j in a){var v=c.camelCase(j);if(j!==v){a[v]=a[j];delete a[j];j=v}if(a[j]==="hide"&&p||a[j]==="show"&&!p)return h.complete.call(this);if(r&&(j==="height"||j==="width")){h.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(La(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(a[j])){(h.specialEasing=h.specialEasing||{})[j]=a[j][1];a[j]=a[j][0]}}if(h.overflow!=null)this.style.overflow="hidden";h.curAnim=c.extend({},a);c.each(a,function(D,K){var I=new c.fx(n,h,D);if(Wb.test(K))I[K==="toggle"?p?"show":"hide":K](a);else{var N=Xb.exec(K),U=I.cur();if(N){var Q=parseFloat(N[2]),
Z=N[3]||(c.cssNumber[D]?"":"px");if(Z!=="px"){c.style(n,D,(Q||1)+Z);U=(Q||1)/I.cur()*U;c.style(n,D,U+Z)}if(N[1])Q=(N[1]==="-="?-1:1)*Q+U;I.custom(U,Q,Z)}else I.custom(U,K,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:qa("show",1),slideUp:qa("hide",1),slideToggle:qa("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},
fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};
return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.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 a,b=c.css(this.elem,
this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,d){function e(j){return f.step(j)}var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||(c.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!Aa)Aa=setInterval(h.tick,h.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(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,
h=this.options;c.each(["","X","Y"],function(r,p){f.style["overflow"+p]=h.overflow[r]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var j in this.options.curAnim)c.style(this.elem,j,this.options.orig[j]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,
a,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 a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(Aa);Aa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?
Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};var Yb=/^t(?:able|d|h)$/i,cb=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in z.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(j){c.offset.setOffset(this,a,j)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=
b.ownerDocument,h=f.documentElement;if(!d||!c.contains(h,b))return d?{top:d.top,left:d.left}:{top:0,left:0};b=f.body;f=Da(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(v){c.offset.setOffset(this,a,v)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);
c.offset.initialize();var d,e=b.offsetParent,f=b,h=b.ownerDocument,j=h.documentElement,r=h.body;d=(h=h.defaultView)?h.getComputedStyle(b,null):b.currentStyle;for(var p=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==r&&b!==j;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=h?h.getComputedStyle(b,null):b.currentStyle;p-=b.scrollTop;n-=b.scrollLeft;if(b===e){p+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&Yb.test(b.nodeName))){p+=
parseFloat(d.borderTopWidth)||0;n+=parseFloat(d.borderLeftWidth)||0}f=e;e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){p+=parseFloat(d.borderTopWidth)||0;n+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){p+=r.offsetTop;n+=r.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){p+=Math.max(j.scrollTop,r.scrollTop);n+=Math.max(j.scrollLeft,r.scrollLeft)}return{top:p,left:n}};c.offset={initialize:function(){var a=
z.body,b=z.createElement("div"),d,e,f,h=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.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>";a.insertBefore(b,
a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);c.offset.initialize=
c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.css(a,"marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),h=f.offset(),j=c.css(a,"top"),r=c.css(a,"left"),p=e==="absolute"&&c.inArray("auto",[j,r])>-1;e={};var n={};if(p)n=f.position();j=p?n.top:parseInt(j,10)||0;r=p?n.left:
parseInt(r,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+j;if(b.left!=null)e.left=b.left-h.left+r;"using"in b?b.using.call(a,e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=cb.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||
0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||z.body;a&&!cb.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==m)return this.each(function(){if(h=Da(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=Da(f))?"pageXOffset"in h?h[a?"pageYOffset":
"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(j){var r=c(this);r[d](e.call(this,j,r[d]()))});if(c.isWindow(f)){var h=
f.document.documentElement["client"+b];return f.document.compatMode==="CSS1Compat"&&h||f.document.body["client"+b]||h}else if(f.nodeType===9)return Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===m){f=c.css(f,d);h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}});l.jQuery=l.$=c})(window);if(typeof db==="undefined")var db={};jQuery.extend(db,{LogLevel:{OFF:0,DEBUG:8,INFO:6,WARN:4,ERROR:2,FATAL:1}});
jQuery.extend(db,{logLevel:db.LogLevel.OFF,log:function(l){var m=Array.prototype.slice.call(arguments,1);db.logArray(l,m)},logSpecial:function(l,m){var E=Array.prototype.slice.call(arguments,2);db.logArray(l,E,m)},logArray:function(l,m,E){if(this.logLevel){l=l||db.LogLevel.INFO;if(l<=this.logLevel){l=db.getLogDescriptor(l).toLowerCase()||"info";E=E||l;m instanceof Array||(m=[m]);if(l==="fatal"){m[0]=l+" "+m[0];E="error"}this.attachConsole();if(typeof console[E]!=="function")E="info";Function.prototype.apply.apply(console[E],
[console,m])}}},getLogDescriptor:function(l){var m={};jQuery.each(db.LogLevel,function(E,y){m[y]=E});db.getLogDescriptor=function(E){return m[E]};return m[l]},attachConsole:function(l){if(l||db.logLevel&&typeof console==="undefined"){l=document.getElementsByTagName("head")[0];var m=document.createElement("script");m.type="text/javascript";m.src="http://getfirebug.com/releases/lite/latest/firebug-lite.js";l.appendChild(m);return true}return false},util:{getPageDimensions:function(){var l={},m=document.all&&
!window.opera,E=document.documentElement&&parseInt(document.documentElement.clientWidth)||1E5,y=document.compatMode=="CSS1Compat"?document.documentElement:document.body;l.scrollTop=m?y.scrollTop:window.pageYOffset;l.scrollLeft=m?y.scrollLeft:window.pageXOffset;l.docWidth=m?y.clientWidth:/Safari/i.test(navigator.userAgent)?window.innerWidth:Math.min(E,window.innerWidth-16);l.docHeight=m?y.clientHeight:window.innerHeight;l.scrollHeight=Math.max(y.scrollHeight,y.offsetHeight);db.log(db.LogLevel.DEBUG,
"page dimensions: %o",l);return l},generateID:function(l){l=l||"id";return l+"_"+(new Date).getTime()+Math.floor(Math.random()*1E3)},indexToAlpha:function(l){return unescape("%"+parseInt(l+29,16))},average:function(l){for(var m=l.length,E=0,y=0;y<m;y++)E+=l[y];return E/m},getUrlParams:function(){for(var l={},m,E=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),y=E.length-1;y>=0;y--){m=E[y].split("=");var C=m[1],F=parseInt(C);if(isNaN(F)){if(C==="true"||C==="false")C=Boolean(C)}else C=
F;l[m[0]]=C}return l},redraw:function(l){var m=document.createTextNode(" ");jQuery(m).appendTo(l);setTimeout(function(){m.parentNode.removeChild(m)},0);return l}}});(function(l){l.fn.equals=function(m){if(m)return this.length===m.length&&(this.length=this.filter(m).length);return false};l.fn.serializeObject=function(){var m={};l.each(this.serializeArray(),function(E,y){var C=y.name,F=y.value;m[C]=m[C]===undefined?F:l.isArray(m[C])?m[C].concat(F):[m[C],F]});return m}})(jQuery);
if(typeof Object.create!=="function")Object.create=function(l){function m(){}m.prototype=l;return new m};var DEBUG=db.logLevel;db.attachConsole();var Cookie=function(){return{units:{MILLISECONDS:1,SECONDS:1E3,MINUTES:6E4,HOURS:36E5,DAYS:864E5},createCookie:function(l,m,E,y){var C="";if(E){if(!y)y=Cookie.units.DAYS;C=new Date;C.setTime(C.getTime()+E*y);C="; expires="+C.toGMTString()}document.cookie=l+"="+m+C+"; path=/"},readCookie:function(l,m){for(var E=l+"=",y=document.cookie.split(";"),C=0;C<y.length;C++){for(var F=y[C];F.charAt(0)==" ";)F=F.substring(1,F.length);if(F.indexOf(E)==0){E=F.substring(E.length,F.length);if(m){E=E.replace(/^["']/,
"");E=E.replace(/['"]$/,"")}return E}}return null},eraseCookie:function(l){Cookie.createCookie(l,"",-1)}}}();if(!this.JSON)this.JSON={};
(function(){function l(L){return L<10?"0"+L:L}function m(L){C.lastIndex=0;return C.test(L)?'"'+L.replace(C,function(T){var P=ia[T];return typeof P==="string"?P:"\\u"+("0000"+T.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+L+'"'}function E(L,T){var P,S,aa,ga,ca=F,X,M=T[L];if(M&&typeof M==="object"&&typeof M.toJSON==="function")M=M.toJSON(L);if(typeof W==="function")M=W.call(T,L,M);switch(typeof M){case "string":return m(M);case "number":return isFinite(M)?String(M):"null";case "boolean":case "null":return String(M);
case "object":if(!M)return"null";F+=ea;X=[];if(Object.prototype.toString.apply(M)==="[object Array]"){ga=M.length;for(P=0;P<ga;P+=1)X[P]=E(P,M)||"null";aa=X.length===0?"[]":F?"[\n"+F+X.join(",\n"+F)+"\n"+ca+"]":"["+X.join(",")+"]";F=ca;return aa}if(W&&typeof W==="object"){ga=W.length;for(P=0;P<ga;P+=1){S=W[P];if(typeof S==="string")if(aa=E(S,M))X.push(m(S)+(F?": ":":")+aa)}}else for(S in M)if(Object.hasOwnProperty.call(M,S))if(aa=E(S,M))X.push(m(S)+(F?": ":":")+aa);aa=X.length===0?"{}":F?"{\n"+F+
X.join(",\n"+F)+"\n"+ca+"}":"{"+X.join(",")+"}";F=ca;return aa}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+l(this.getUTCMonth()+1)+"-"+l(this.getUTCDate())+"T"+l(this.getUTCHours())+":"+l(this.getUTCMinutes())+":"+l(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var y=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
C=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,F,ea,ia={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},W;if(typeof JSON.stringify!=="function")JSON.stringify=function(L,T,P){var S;ea=F="";if(typeof P==="number")for(S=0;S<P;S+=1)ea+=" ";else if(typeof P==="string")ea=P;if((W=T)&&typeof T!=="function"&&(typeof T!=="object"||typeof T.length!=="number"))throw Error("JSON.stringify");return E("",
{"":L})};if(typeof JSON.parse!=="function")JSON.parse=function(L,T){function P(aa,ga){var ca,X,M=aa[ga];if(M&&typeof M==="object")for(ca in M)if(Object.hasOwnProperty.call(M,ca)){X=P(M,ca);if(X!==undefined)M[ca]=X;else delete M[ca]}return T.call(aa,ga,M)}var S;L=String(L);y.lastIndex=0;if(y.test(L))L=L.replace(y,function(aa){return"\\u"+("0000"+aa.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(L.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){S=eval("("+L+")");return typeof T==="function"?P({"":S},""):S}throw new SyntaxError("JSON.parse");}})();if(typeof DEBUG==="undefined")DEBUG=0;if(typeof db==="undefined")db={};
db.FloatingPanel=function(l,m,E){this.updateAreas=this.element=null;this.shown=false;this.params={};this.contentId=l||m.contentId;m||(m={});jQuery.extend(this.params,this._defaults,m);this._addClass("floatingPanel ");if(this.params.insertRef==null)this.params.insertRef=document.body;if(this.params.insertPosition==="inplace"){l=jQuery("#"+l).prev();if(l.length){this.params.insertRef=l.get(0);this.params.insertPosition="after"}else{this.params.insertRef=jQuery("#"+this.contentId).get(0).parentNode;
this.params.insertPosition="top"}}DEBUG&&console.info("new floatingPanel initialized ",this.params," delaying: ",E);E||this.show()};
jQuery.extend(db.FloatingPanel.prototype,{insertMap:{top:"prepend",bottom:"append",before:"before",after:"after"},_defaults:{dimensions:{x:null,y:null},position:{x:null,y:null},offset:{x:null,y:null},autoPosition:{x:false,y:false},autoMargin:{x:false,y:false},bindings:null,className:"",modal:false,insertRef:null,insertPosition:"bottom",consume:false},show:function(){if(this.initialised)if(this.shown)DEBUG&&console.info(this.element+" is already shown");else{db.panelManager.push(this);this.shown=true}else{this.element=
document.createElement("DIV");this.element.style.visibility="hidden";if(this.params.ajax){var l=this.params.ajax;if(l.url&&l.params){l.params.url=l.url;l=l.params}if(l.success){if(typeof l.success!=="object")l.success=[l.success]}else l.success=[];if(!l.success.length||!l.clearDefaultSuccess)l.success.unshift(function(m){return function(E){m.element.innerHTML=E;jQuery(m.element).children().first().show();m.initComplete()}}(this));jQuery.ajax(l)}else{this.element.innerHTML=jQuery("#"+this.contentId).html();
this.params.consume&&jQuery("#"+this.contentId).remove();this.initComplete()}}},initComplete:function(){this.setup();db.panelManager.push(this);if(this.params.hideRequested){this.params.hideRequested=false;this.hide()}},hide:function(){if(!this.initialised)this.params.hideRequested=true;db.panelManager.remove(this)},setup:function(l){typeof l!=="undefined"&&jQuery.extend(this.params,l);this.element.className=this.params.className;DEBUG&&console.info(this.element.className);if(this.params.dimensions.x!==
null)this.element.style.width=this.params.dimensions.x+(parseFloat(this.params.dimensions.x)?"px":"");if(this.params.dimensions.y!==null)this.element.style.height=this.params.dimensions.y+(parseFloat(this.params.dimensions.y)?"px":"");if(this.params.position.x!==null)this.element.style.left=this.params.position.x+"px";if(this.params.position.y!==null)this.element.style.top=this.params.position.y+"px";this.shown&&this.autoMargins();this.initialised=true},getId:function(){return this.element.id},setId:function(l){this.element.id=
l},setLevel:function(l){this.level=l;this.setId("panel_"+this.level)},getLevel:function(){return this.level},setUpdateArea:function(l,m){if(typeof m!=="undefined")l.id=m;this.updateArea=l},getUpdateArea:function(){return this.updateArea==null?this.element:this.updateArea},autoMargins:function(){var l;if(this.params.autoMargin.x){l=this.params.offset.x||0;l=parseFloat(this.element.offsetWidth)*l;this.element.style.marginLeft="-"+l+"px"}if(this.params.autoMargin.y){l=this.params.offset.y||0;l=parseFloat(this.element.offsetHeight)*
l*-1;this.element.style.marginTop=l+"px"}},_addClass:function(l){this.params.className=l+" "+this.params.className}});
db.ModalPanel=function(l,m,E){if(typeof m==="undefined")m={};var y={};jQuery.extend(y,this._defaults,m);m=y;l=new db.FloatingPanel(l,m,true);l._addClass("modalPanel");if(m.insertPosition==="inplace"&&(browser==="ie6"||jQuery.browser.msie&&jQuery.browser.version.indexOf("7")==0)){m=jQuery("body");y=jQuery("html");var C=jQuery(l.params.insertRef).children();C=(C.length?C:jQuery(l.params.insertRef)).offsetParent();if(C!==y&&C!==m)l.params.modal=false}E||l.show();return l};
db.ModalPanel.prototype={_defaults:{offset:{x:0.5,y:0.5},modal:true,autoMargin:{x:false,y:false},autoPosition:{x:false,y:true}}};db.ActionPanel=function(l,m,E){if(typeof m==="undefined")m={};var y={};jQuery.extend(y,this._defaults,m);m=y;l=new db.ModalPanel(l,m,true);l._addClass("modalPanel");E||l.show();return l};db.ActionPanel.prototype={_defaults:{offset:{x:0.5,y:0.25}}};
db.panelManager=new (function(){var l=this,m=[];this.veil=null;var E=function(y){var C=jQuery.inArray(y,m);m.splice(C,1);delete m[y.getId()];jQuery(y.element).remove();y.shown=false;if(l.veilRequired())y.params.modal&&l.veil.setIndex(l.getZindex());else if(l.veil!=null){l.veil.destroy();l.veil=null}return y};if(DEBUG)this.getStack=function(){return m};this.push=function(y){y.setLevel(this.topLevel()+1);m.push(y);m[y.getId()]=y;var C=this.getDimensions();if(y.params.modal){if(this.veil===null){this.veil=
new db.Veil;this.veil.show(C)}this.veil.setIndex(this.getZindex()-5)}jQuery(y.params.insertRef)[y.insertMap[y.params.insertPosition]](y.element);if(y.params.autoPosition.y&&y.params.position.y==null){var F=parseFloat(y.element.style.marginTop);C=C.scrollTop+C.docHeight*(y.params.offset.y||0.5);if(F<0&&C+F<0)C=Math.abs(F);y.element.style.top=C+"px"}y.element.style.zIndex=this.getZindex();y.autoMargins();y.element.style.visibility="visible";jQuery(y.element).fadeIn("slow");y.shown=true};this.remove=
function(y){if(!y.params.modal||this.getTopModal()===y){E(y);return true}return false};this.removeAll=function(){jQuery(m).each(function(y,C){E(C)})};this.veilRequired=function(){if(this.veil!=null){var y={},C=false;try{jQuery.each(m,function(ea,ia){if(ia.params.modal){C=true;throw y;}})}catch(F){if(F!==y)throw F;}}return C};this.getZindex=function(){return!this.getTopModal()?100:(this.getTopModal().getLevel()+1)*100};this.getTopModal=function(){for(var y=null,C=m.length-1;C>=0;C--){var F=m[C];if(F.params.modal){y=
F;break}}return y};this.getTop=function(){return m[m.length-1]};this.getBottom=function(){return m[0]};this.getDimensions=function(){var y={},C=document.all&&!window.opera,F=document.compatMode=="CSS1Compat"?document.documentElement:document.body;y.scrollTop=C?F.scrollTop:window.pageYOffset;y.docHeight=C?F.clientHeight:window.innerHeight;y.scrollHeight=Math.max(F.scrollHeight,F.offsetHeight);DEBUG&&console.info("dims : ",y);return y};this.get=function(y){return m[y]};this.topLevel=function(){return m.length?
parseInt(m[m.length-1].getLevel()):0}});db.Veil=function(l){this.element=null;typeof l!=="undefined"&&jQuery.extend(this.params,l);l=document.createElement("DIV");l.className=this.params.className;l.id=this.params.id;this.element=l};
db.Veil.prototype={params:{className:"veil",id:"modalVeil"},show:function(l){if(browser==="ie6"&&typeof l!=="undefined")this.element.style.height=l.scrollHeight+"px";jQuery("body").prepend(this.element)},destroy:function(){jQuery(this.element).remove()},setIndex:function(l){this.element.style.zIndex=l}};
db.Prompt=function(l){return function(m,E){function y(L,T){if(T)T(C)||L.preventDefault();C.hide()}var C,F,ea,ia,W=l.extend({init:function(){db.log(db.LogLevel.INFO,"Panel params: %o",E);C=new db.ModalPanel(null,E);l(E.affirmButtonSelector).live("click",W.affirm);l(E.denyButtonSelector).live("click",W.deny);l(E.cancelButtonSelector).live("click",W.cancel)},show:function(L,T,P){F=L;ea=T;ia=P;if(!C)try{W.init()}catch(S){db.log(db.LogLevel.ERROR,S);return}C.show();return W.onShow(C)},onShow:function(){return true},
affirm:function(L){return y(L,F)},deny:function(L){y(L,ea)},cancel:function(L){y(L,ia)}},m||{});return W}}(jQuery);
