var Prototype={Version:"1.6.1",Browser:function(){var a=navigator.userAgent,b=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!b,Opera:b,WebKit:a.indexOf("AppleWebKit/")>-1,Gecko:a.indexOf("Gecko")>-1&&a.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(a)}}(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:function(){var a=window.Element||window.HTMLElement;return!!(a&&a.prototype)}(),
SpecificElementExtensions:function(){if(typeof window.HTMLDivElement!=="undefined")return true;var a=document.createElement("div"),b=document.createElement("form"),c=false;if(a.__proto__&&a.__proto__!==b.__proto__)c=true;return c}()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari)Prototype.BrowserFeatures.SpecificElementExtensions=false;
var Abstract={},Try={these:function(){for(var a,b=0,c=arguments.length;b<c;b++){var d=arguments[b];try{a=d();break}catch(e){}}return a}},Class=function(){function a(){}return{create:function(){function b(){this.initialize.apply(this,arguments)}var c=null,d=$A(arguments);if(Object.isFunction(d[0]))c=d.shift();Object.extend(b,Class.Methods);b.superclass=c;b.subclasses=[];if(c){a.prototype=c.prototype;b.prototype=new a;c.subclasses.push(b)}for(c=0;c<d.length;c++)b.addMethods(d[c]);if(!b.prototype.initialize)b.prototype.initialize=
Prototype.emptyFunction;return b.prototype.constructor=b},Methods:{addMethods:function(b){var c=this.superclass&&this.superclass.prototype,d=Object.keys(b);if(!Object.keys({toString:true}).length){b.toString!=Object.prototype.toString&&d.push("toString");b.valueOf!=Object.prototype.valueOf&&d.push("valueOf")}for(var e=0,f=d.length;e<f;e++){var h=d[e],g=b[h];if(c&&Object.isFunction(g)&&g.argumentNames().first()=="$super"){var i=g;g=function(j){return function(){return c[j].apply(this,arguments)}}(h).wrap(i);
g.valueOf=i.valueOf.bind(i);g.toString=i.toString.bind(i)}this.prototype[h]=g}return this}}}}();
(function(){function a(f,h){for(var g in h)f[g]=h[g];return f}function b(f){switch(typeof f){case "undefined":case "function":case "unknown":return;case "boolean":return f.toString()}if(f===null)return"null";if(f.toJSON)return f.toJSON();if(!c(f)){var h=[];for(var g in f){var i=b(f[g]);d(i)||h.push(g.toJSON()+": "+i)}return"{"+h.join(", ")+"}"}}function c(f){return!!(f&&f.nodeType==1)}function d(f){return typeof f==="undefined"}var e=Object.prototype.toString;a(Object,{extend:a,inspect:function(f){try{if(d(f))return"undefined";
if(f===null)return"null";return f.inspect?f.inspect():String(f)}catch(h){if(h instanceof RangeError)return"...";throw h;}},toJSON:b,toQueryString:function(f){return $H(f).toQueryString()},toHTML:function(f){return f&&f.toHTML?f.toHTML():String.interpret(f)},keys:function(f){var h=[];for(var g in f)h.push(g);return h},values:function(f){var h=[];for(var g in f)h.push(f[g]);return h},clone:function(f){return a({},f)},isElement:c,isArray:function(f){return e.call(f)=="[object Array]"},isHash:function(f){return f instanceof
Hash},isFunction:function(f){return typeof f==="function"},isString:function(f){return e.call(f)=="[object String]"},isNumber:function(f){return e.call(f)=="[object Number]"},isUndefined:d})})();
Object.extend(Function.prototype,function(){function a(d,e){for(var f=d.length,h=e.length;h--;)d[f+h]=e[h];return d}function b(d,e){d=c.call(d,0);return a(d,e)}var c=Array.prototype.slice;return{argumentNames:function(){var d=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g,"").replace(/\s+/g,"").split(",");return d.length==1&&!d[0]?[]:d},bind:function(d){if(arguments.length<2&&Object.isUndefined(arguments[0]))return this;var e=this,f=c.call(arguments,
1);return function(){var h=b(f,arguments);return e.apply(d,h)}},bindAsEventListener:function(d){var e=this,f=c.call(arguments,1);return function(h){h=a([h||window.event],f);return e.apply(d,h)}},curry:function(){if(!arguments.length)return this;var d=this,e=c.call(arguments,0);return function(){var f=b(e,arguments);return d.apply(this,f)}},delay:function(d){var e=this,f=c.call(arguments,1);d*=1E3;return window.setTimeout(function(){return e.apply(e,f)},d)},defer:function(){return this.delay.apply(this,
a([0.01],arguments))},wrap:function(d){var e=this;return function(){var f=a([e.bind(this)],arguments);return d.apply(this,f)}},methodize:function(){if(this._methodized)return this._methodized;var d=this;return this._methodized=function(){var e=a([this],arguments);return d.apply(null,e)}}}}());
Date.prototype.toJSON=function(){return'"'+this.getUTCFullYear()+"-"+(this.getUTCMonth()+1).toPaddedString(2)+"-"+this.getUTCDate().toPaddedString(2)+"T"+this.getUTCHours().toPaddedString(2)+":"+this.getUTCMinutes().toPaddedString(2)+":"+this.getUTCSeconds().toPaddedString(2)+'Z"'};RegExp.prototype.match=RegExp.prototype.test;RegExp.escape=function(a){return String(a).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};
var PeriodicalExecuter=Class.create({initialize:function(a,b){this.callback=a;this.frequency=b;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1E3)},execute:function(){this.callback(this)},stop:function(){if(this.timer){clearInterval(this.timer);this.timer=null}},onTimerEvent:function(){if(!this.currentlyExecuting)try{this.currentlyExecuting=true;this.execute();this.currentlyExecuting=false}catch(a){this.currentlyExecuting=
false;throw a;}}});Object.extend(String,{interpret:function(a){return a==null?"":String(a)},specialChar:{"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r","\\":"\\\\"}});
Object.extend(String.prototype,function(){function a(d){if(Object.isFunction(d))return d;var e=new Template(d);return function(f){return e.evaluate(f)}}function b(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}function c(d){var e=this.strip().match(/([^?#]*)(#.*)?$/);if(!e)return{};return e[1].split(d||"&").inject({},function(f,h){if((h=h.split("="))[0]){var g=decodeURIComponent(h.shift()),i=h.length>1?h.join("="):h[0];if(i!=undefined)i=decodeURIComponent(i);if(g in f){Object.isArray(f[g])||
(f[g]=[f[g]]);f[g].push(i)}else f[g]=i}return f})}return{gsub:function(d,e){var f="",h=this,g;e=a(e);if(Object.isString(d))d=RegExp.escape(d);if(!(d.length||d.source)){e=e("");return e+h.split("").join(e)+e}for(;h.length>0;)if(g=h.match(d)){f+=h.slice(0,g.index);f+=String.interpret(e(g));h=h.slice(g.index+g[0].length)}else{f+=h;h=""}return f},sub:function(d,e,f){e=a(e);f=Object.isUndefined(f)?1:f;return this.gsub(d,function(h){if(--f<0)return h[0];return e(h)})},scan:function(d,e){this.gsub(d,e);
return String(this)},truncate:function(d,e){d=d||30;e=Object.isUndefined(e)?"...":e;return this.length>d?this.slice(0,d-e.length)+e:String(this)},strip:String.prototype.trim?String.prototype.trim:b,stripTags:function(){return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"")},stripScripts:function(){return this.replace(RegExp(Prototype.ScriptFragment,"img"),"")},extractScripts:function(){var d=RegExp(Prototype.ScriptFragment,"img"),e=RegExp(Prototype.ScriptFragment,"im");return(this.match(d)||
[]).map(function(f){return(f.match(e)||["",""])[1]})},evalScripts:function(){return this.extractScripts().map(function(d){return eval(d)})},escapeHTML:function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},unescapeHTML:function(){return this.stripTags().replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")},toQueryParams:c,parseQuery:c,toArray:function(){return this.split("")},succ:function(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-
1)+1)},times:function(d){return d<1?"":Array(d+1).join(this)},camelize:function(){var d=this.split("-"),e=d.length;if(e==1)return d[0];for(var f=this.charAt(0)=="-"?d[0].charAt(0).toUpperCase()+d[0].substring(1):d[0],h=1;h<e;h++)f+=d[h].charAt(0).toUpperCase()+d[h].substring(1);return f},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()},underscore:function(){return this.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,
"$1_$2").replace(/-/g,"_").toLowerCase()},dasherize:function(){return this.replace(/_/g,"-")},inspect:function(d){var e=this.replace(/[\x00-\x1f\\]/g,function(f){if(f in String.specialChar)return String.specialChar[f];return"\\u00"+f.charCodeAt().toPaddedString(2,16)});if(d)return'"'+e.replace(/"/g,'\\"')+'"';return"'"+e.replace(/'/g,"\\'")+"'"},toJSON:function(){return this.inspect(true)},unfilterJSON:function(d){return this.replace(d||Prototype.JSONFilter,"$1")},isJSON:function(){var d=this;if(d.blank())return false;
d=this.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,"");return/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/.test(d)},evalJSON:function(d){var e=this.unfilterJSON();try{if(!d||e.isJSON())return eval("("+e+")")}catch(f){}throw new SyntaxError("Badly formed JSON string: "+this.inspect());},include:function(d){return this.indexOf(d)>-1},startsWith:function(d){return this.indexOf(d)===0},endsWith:function(d){var e=this.length-d.length;return e>=0&&this.lastIndexOf(d)===e},empty:function(){return this==""},blank:function(){return/^\s*$/.test(this)},
interpolate:function(d,e){return(new Template(this,e)).evaluate(d)}}}());
var Template=Class.create({initialize:function(a,b){this.template=a.toString();this.pattern=b||Template.Pattern},evaluate:function(a){if(a&&Object.isFunction(a.toTemplateReplacements))a=a.toTemplateReplacements();return this.template.gsub(this.pattern,function(b){if(a==null)return b[1]+"";var c=b[1]||"";if(c=="\\")return b[2];var d=a,e=b[3],f=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;b=f.exec(e);if(b==null)return c;for(;b!=null;){var h=b[1].startsWith("[")?b[2].replace(/\\\\]/g,"]"):b[1];d=d[h];if(null==
d||""==b[3])break;e=e.substring("["==b[3]?b[1].length:b[0].length);b=f.exec(e)}return c+String.interpret(d)})}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;
var $break={},Enumerable=function(){function a(g,i){g=g||Prototype.K;var j=true;this.each(function(l,n){j=j&&!!g.call(i,l,n);if(!j)throw $break;});return j}function b(g,i){g=g||Prototype.K;var j=false;this.each(function(l,n){if(j=!!g.call(i,l,n))throw $break;});return j}function c(g,i){g=g||Prototype.K;var j=[];this.each(function(l,n){j.push(g.call(i,l,n))});return j}function d(g,i){var j;this.each(function(l,n){if(g.call(i,l,n)){j=l;throw $break;}});return j}function e(g,i){var j=[];this.each(function(l,
n){g.call(i,l,n)&&j.push(l)});return j}function f(g){if(Object.isFunction(this.indexOf))if(this.indexOf(g)!=-1)return true;var i=false;this.each(function(j){if(j==g){i=true;throw $break;}});return i}function h(){return this.map()}return{each:function(g,i){var j=0;try{this._each(function(n){g.call(i,n,j++)})}catch(l){if(l!=$break)throw l;}return this},eachSlice:function(g,i,j){var l=-g,n=[],q=this.toArray();if(g<1)return q;for(;(l+=g)<q.length;)n.push(q.slice(l,l+g));return n.collect(i,j)},all:a,every:a,
any:b,some:b,collect:c,map:c,detect:d,findAll:e,select:e,filter:e,grep:function(g,i,j){i=i||Prototype.K;var l=[];if(Object.isString(g))g=RegExp(RegExp.escape(g));this.each(function(n,q){g.match(n)&&l.push(i.call(j,n,q))});return l},include:f,member:f,inGroupsOf:function(g,i){i=Object.isUndefined(i)?null:i;return this.eachSlice(g,function(j){for(;j.length<g;)j.push(i);return j})},inject:function(g,i,j){this.each(function(l,n){g=i.call(j,g,l,n)});return g},invoke:function(g){var i=$A(arguments).slice(1);
return this.map(function(j){return j[g].apply(j,i)})},max:function(g,i){g=g||Prototype.K;var j;this.each(function(l,n){l=g.call(i,l,n);if(j==null||l>=j)j=l});return j},min:function(g,i){g=g||Prototype.K;var j;this.each(function(l,n){l=g.call(i,l,n);if(j==null||l<j)j=l});return j},partition:function(g,i){g=g||Prototype.K;var j=[],l=[];this.each(function(n,q){(g.call(i,n,q)?j:l).push(n)});return[j,l]},pluck:function(g){var i=[];this.each(function(j){i.push(j[g])});return i},reject:function(g,i){var j=
[];this.each(function(l,n){g.call(i,l,n)||j.push(l)});return j},sortBy:function(g,i){return this.map(function(j,l){return{value:j,criteria:g.call(i,j,l)}}).sort(function(j,l){var n=j.criteria,q=l.criteria;return n<q?-1:n>q?1:0}).pluck("value")},toArray:h,entries:h,zip:function(){var g=Prototype.K,i=$A(arguments);if(Object.isFunction(i.last()))g=i.pop();var j=[this].concat(i).map($A);return this.map(function(l,n){return g(j.pluck(n))})},size:function(){return this.toArray().length},inspect:function(){return"#<Enumerable:"+
this.toArray().inspect()+">"},find:d}}();function $A(a){if(!a)return[];if("toArray"in Object(a))return a.toArray();for(var b=a.length||0,c=Array(b);b--;)c[b]=a[b];return c}function $w(a){if(!Object.isString(a))return[];return(a=a.strip())?a.split(/\s+/):[]}Array.from=$A;
(function(){function a(i){for(var j=0,l=this.length;j<l;j++)i(this[j])}function b(){return h.call(this,0)}function c(i,j){j||(j=0);var l=this.length;if(j<0)j=l+j;for(;j<l;j++)if(this[j]===i)return j;return-1}function d(i,j){j=isNaN(j)?this.length:(j<0?this.length+j:j)+1;var l=this.slice(0,j).reverse().indexOf(i);return l<0?l:j-l-1}function e(){for(var i=h.call(this,0),j,l=0,n=arguments.length;l<n;l++){j=arguments[l];if(Object.isArray(j)&&!("callee"in j))for(var q=0,w=j.length;q<w;q++)i.push(j[q]);
else i.push(j)}return i}var f=Array.prototype,h=f.slice,g=f.forEach;g||(g=a);Object.extend(f,Enumerable);if(!f._reverse)f._reverse=f.reverse;Object.extend(f,{_each:g,clear:function(){this.length=0;return this},first:function(){return this[0]},last:function(){return this[this.length-1]},compact:function(){return this.select(function(i){return i!=null})},flatten:function(){return this.inject([],function(i,j){if(Object.isArray(j))return i.concat(j.flatten());i.push(j);return i})},without:function(){var i=
h.call(arguments,0);return this.select(function(j){return!i.include(j)})},reverse:function(i){return(i!==false?this:this.toArray())._reverse()},uniq:function(i){return this.inject([],function(j,l,n){if(0==n||(i?j.last()!=l:!j.include(l)))j.push(l);return j})},intersect:function(i){return this.uniq().findAll(function(j){return i.detect(function(l){return j===l})})},clone:b,toArray:b,size:function(){return this.length},inspect:function(){return"["+this.map(Object.inspect).join(", ")+"]"},toJSON:function(){var i=
[];this.each(function(j){j=Object.toJSON(j);Object.isUndefined(j)||i.push(j)});return"["+i.join(", ")+"]"}});if(function(){return[].concat(arguments)[0][0]!==1}(1,2))f.concat=e;if(!f.indexOf)f.indexOf=c;if(!f.lastIndexOf)f.lastIndexOf=d})();function $H(a){return new Hash(a)}
var Hash=Class.create(Enumerable,function(){function a(){return Object.clone(this._object)}function b(c,d){if(Object.isUndefined(d))return c;return c+"="+encodeURIComponent(String.interpret(d))}return{initialize:function(c){this._object=Object.isHash(c)?c.toObject():Object.clone(c)},_each:function(c){for(var d in this._object){var e=this._object[d],f=[d,e];f.key=d;f.value=e;c(f)}},set:function(c,d){return this._object[c]=d},get:function(c){if(this._object[c]!==Object.prototype[c])return this._object[c]},
unset:function(c){var d=this._object[c];delete this._object[c];return d},toObject:a,toTemplateReplacements:a,keys:function(){return this.pluck("key")},values:function(){return this.pluck("value")},index:function(c){var d=this.detect(function(e){return e.value===c});return d&&d.key},merge:function(c){return this.clone().update(c)},update:function(c){return(new Hash(c)).inject(this,function(d,e){d.set(e.key,e.value);return d})},toQueryString:function(){return this.inject([],function(c,d){var e=encodeURIComponent(d.key),
f=d.value;if(f&&typeof f=="object"){if(Object.isArray(f))return c.concat(f.map(b.curry(e)))}else c.push(b(e,f));return c}).join("&")},inspect:function(){return"#<Hash:{"+this.map(function(c){return c.map(Object.inspect).join(": ")}).join(", ")+"}>"},toJSON:function(){return Object.toJSON(this.toObject())},clone:function(){return new Hash(this)}}}());Hash.from=$H;
Object.extend(Number.prototype,function(){return{toColorPart:function(){return this.toPaddedString(2,16)},succ:function(){return this+1},times:function(a,b){$R(0,this,true).each(a,b);return this},toPaddedString:function(a,b){var c=this.toString(b||10);return"0".times(a-c.length)+c},toJSON:function(){return isFinite(this)?this.toString():"null"},abs:function(){return Math.abs(this)},round:function(){return Math.round(this)},ceil:function(){return Math.ceil(this)},floor:function(){return Math.floor(this)}}}());
function $R(a,b,c){return new ObjectRange(a,b,c)}
var ObjectRange=Class.create(Enumerable,function(){return{initialize:function(a,b,c){this.start=a;this.end=b;this.exclusive=c},_each:function(a){for(var b=this.start;this.include(b);){a(b);b=b.succ()}},include:function(a){if(a<this.start)return false;if(this.exclusive)return a<this.end;return a<=this.end}}}()),Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")})||
false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(a){this.responders._each(a)},register:function(a){this.include(a)||this.responders.push(a)},unregister:function(a){this.responders=this.responders.without(a)},dispatch:function(a,b,c,d){this.each(function(e){if(Object.isFunction(e[a]))try{e[a].apply(e,[b,c,d])}catch(f){}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});
Ajax.Base=Class.create({initialize:function(a){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:"",evalJSON:true,evalJS:true};Object.extend(this.options,a||{});this.options.method=this.options.method.toLowerCase();if(Object.isString(this.options.parameters))this.options.parameters=this.options.parameters.toQueryParams();else if(Object.isHash(this.options.parameters))this.options.parameters=this.options.parameters.toObject()}});
Ajax.Request=Class.create(Ajax.Base,{_complete:false,initialize:function($super,b,c){$super(c);this.transport=Ajax.getTransport();this.request(b)},request:function(a){this.url=a;this.method=this.options.method;a=Object.clone(this.options.parameters);if(!["get","post"].include(this.method)){a._method=this.method;this.method="post"}this.parameters=a;if(a=Object.toQueryString(a))if(this.method=="get")this.url+=(this.url.include("?")?"&":"?")+a;else if(/Konqueror|Safari|KHTML/.test(navigator.userAgent))a+=
"&_=";try{var b=new Ajax.Response(this);this.options.onCreate&&this.options.onCreate(b);Ajax.Responders.dispatch("onCreate",this,b);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);this.options.asynchronous&&this.respondToReadyState.bind(this).defer(1);this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();this.body=this.method=="post"?this.options.postBody||a:null;this.transport.send(this.body);!this.options.asynchronous&&this.transport.overrideMimeType&&
this.onStateChange()}catch(c){this.dispatchException(c)}},onStateChange:function(){var a=this.transport.readyState;a>1&&!(a==4&&this._complete)&&this.respondToReadyState(this.transport.readyState)},setRequestHeaders:function(){var a={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};if(this.method=="post"){a["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:
"");if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005)a.Connection="close"}if(typeof this.options.requestHeaders=="object"){var b=this.options.requestHeaders;if(Object.isFunction(b.push))for(var c=0,d=b.length;c<d;c+=2)a[b[c]]=b[c+1];else $H(b).each(function(f){a[f.key]=f.value})}for(var e in a)this.transport.setRequestHeader(e,a[e])},success:function(){var a=this.getStatus();return!a||a>=200&&a<300},getStatus:function(){try{return this.transport.status||
0}catch(a){return 0}},respondToReadyState:function(a){a=Ajax.Request.Events[a];var b=new Ajax.Response(this);if(a=="Complete"){try{this._complete=true;(this.options["on"+b.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(b,b.headerJSON)}catch(c){this.dispatchException(c)}var d=b.getHeader("Content-type");if(this.options.evalJS=="force"||this.options.evalJS&&this.isSameOrigin()&&d&&d.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))this.evalResponse()}try{(this.options["on"+
a]||Prototype.emptyFunction)(b,b.headerJSON);Ajax.Responders.dispatch("on"+a,this,b,b.headerJSON)}catch(e){this.dispatchException(e)}if(a=="Complete")this.transport.onreadystatechange=Prototype.emptyFunction},isSameOrigin:function(){var a=this.url.match(/^\s*https?:\/\/[^\/]*/);return!a||a[0]=="#{protocol}//#{domain}#{port}".interpolate({protocol:location.protocol,domain:document.domain,port:location.port?":"+location.port:""})},getHeader:function(a){try{return this.transport.getResponseHeader(a)||
null}catch(b){return null}},evalResponse:function(){try{return eval((this.transport.responseText||"").unfilterJSON())}catch(a){this.dispatchException(a)}},dispatchException:function(a){(this.options.onException||Prototype.emptyFunction)(this,a);Ajax.Responders.dispatch("onException",this,a)}});Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];
Ajax.Response=Class.create({initialize:function(a){this.request=a;a=this.transport=a.transport;var b=this.readyState=a.readyState;if(b>2&&!Prototype.Browser.IE||b==4){this.status=this.getStatus();this.statusText=this.getStatusText();this.responseText=String.interpret(a.responseText);this.headerJSON=this._getHeaderJSON()}if(b==4){a=a.responseXML;this.responseXML=Object.isUndefined(a)?null:a;this.responseJSON=this._getResponseJSON()}},status:0,statusText:"",getStatus:Ajax.Request.prototype.getStatus,
getStatusText:function(){try{return this.transport.statusText||""}catch(a){return""}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders()}catch(a){return null}},getResponseHeader:function(a){return this.transport.getResponseHeader(a)},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders()},_getHeaderJSON:function(){var a=this.getHeader("X-JSON");if(!a)return null;a=decodeURIComponent(escape(a));try{return a.evalJSON(this.request.options.sanitizeJSON||
!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}},_getResponseJSON:function(){var a=this.request.options;if(!a.evalJSON||a.evalJSON!="force"&&!(this.getHeader("Content-type")||"").include("application/json")||this.responseText.blank())return null;try{return this.responseText.evalJSON(a.sanitizeJSON||!this.request.isSameOrigin())}catch(b){this.request.dispatchException(b)}}});
Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,b,c,d){this.container={success:b.success||b,failure:b.failure||(b.success?null:b)};d=Object.clone(d);var e=d.onComplete;d.onComplete=function(f,h){this.updateContent(f.responseText);Object.isFunction(e)&&e(f,h)}.bind(this);$super(c,d)},updateContent:function(a){var b=this.container[this.success()?"success":"failure"],c=this.options;c.evalScripts||(a=a.stripScripts());if(b=$(b))if(c.insertion)if(Object.isString(c.insertion)){var d=
{};d[c.insertion]=a;b.insert(d)}else c.insertion(b,a);else b.update(a)}});
Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,b,c,d){$super(d);this.onComplete=this.options.onComplete;this.frequency=this.options.frequency||2;this.decay=this.options.decay||1;this.updater={};this.container=b;this.url=c;this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},
updateComplete:function(a){if(this.options.decay){this.decay=a.responseText==this.lastText?this.decay*this.options.decay:1;this.lastText=a.responseText}this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}});
function $(a){if(arguments.length>1){for(var b=0,c=[],d=arguments.length;b<d;b++)c.push($(arguments[b]));return c}if(Object.isString(a))a=document.getElementById(a);return Element.extend(a)}if(Prototype.BrowserFeatures.XPath)document._getElementsByXPath=function(a,b){for(var c=[],d=document.evaluate(a,$(b)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),e=0,f=d.snapshotLength;e<f;e++)c.push(Element.extend(d.snapshotItem(e)));return c};if(!window.Node)var Node={};
Node.ELEMENT_NODE||Object.extend(Node,{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12});
(function(a){var b=function(){var d=document.createElement("form"),e=document.createElement("input"),f=document.documentElement;e.setAttribute("name","test");d.appendChild(e);f.appendChild(d);e=d.elements?typeof d.elements.test=="undefined":null;f.removeChild(d);return e}(),c=a.Element;a.Element=function(d,e){e=e||{};d=d.toLowerCase();var f=Element.cache;if(b&&e.name){d="<"+d+' name="'+e.name+'">';delete e.name;return Element.writeAttribute(document.createElement(d),e)}f[d]||(f[d]=Element.extend(document.createElement(d)));
return Element.writeAttribute(f[d].cloneNode(false),e)};Object.extend(a.Element,c||{});if(c)a.Element.prototype=c.prototype})(this);Element.cache={};Element.idCounter=1;
Element.Methods={visible:function(a){return $(a).style.display!="none"},toggle:function(a){a=$(a);Element[Element.visible(a)?"hide":"show"](a);return a},hide:function(a){a=$(a);a.style.display="none";return a},show:function(a){a=$(a);a.style.display="";return a},remove:function(a){a=$(a);a.parentNode.removeChild(a);return a},update:function(){var a=function(){var d=document.createElement("select"),e=true;d.innerHTML='<option value="test">test</option>';if(d.options&&d.options[0])e=d.options[0].nodeName.toUpperCase()!==
"OPTION";return e}(),b=function(){try{var d=document.createElement("table");if(d&&d.tBodies){d.innerHTML="<tbody><tr><td>test</td></tr></tbody>";return typeof d.tBodies[0]=="undefined"}}catch(e){return true}}(),c=function(){var d=document.createElement("script"),e=false;try{d.appendChild(document.createTextNode(""));e=!d.firstChild||d.firstChild&&d.firstChild.nodeType!==3}catch(f){e=true}return e}();return function(d,e){d=$(d);if(e&&e.toElement)e=e.toElement();if(Object.isElement(e))return d.update().insert(e);
e=Object.toHTML(e);var f=d.tagName.toUpperCase();if(f==="SCRIPT"&&c){d.text=e;return d}if(a||b)if(f in Element._insertionTranslations.tags){for(;d.firstChild;)d.removeChild(d.firstChild);Element._getContentFromAnonymousElement(f,e.stripScripts()).each(function(h){d.appendChild(h)})}else d.innerHTML=e.stripScripts();else d.innerHTML=e.stripScripts();e.evalScripts.bind(e).defer();return d}}(),replace:function(a,b){a=$(a);if(b&&b.toElement)b=b.toElement();else if(!Object.isElement(b)){b=Object.toHTML(b);
var c=a.ownerDocument.createRange();c.selectNode(a);b.evalScripts.bind(b).defer();b=c.createContextualFragment(b.stripScripts())}a.parentNode.replaceChild(b,a);return a},insert:function(a,b){a=$(a);if(Object.isString(b)||Object.isNumber(b)||Object.isElement(b)||b&&(b.toElement||b.toHTML))b={bottom:b};var c,d,e;for(var f in b){c=b[f];f=f.toLowerCase();d=Element._insertionTranslations[f];if(c&&c.toElement)c=c.toElement();if(Object.isElement(c))d(a,c);else{c=Object.toHTML(c);e=(f=="before"||f=="after"?
a.parentNode:a).tagName.toUpperCase();e=Element._getContentFromAnonymousElement(e,c.stripScripts());if(f=="top"||f=="after")e.reverse();e.each(d.curry(a));c.evalScripts.bind(c).defer()}}return a},wrap:function(a,b,c){a=$(a);if(Object.isElement(b))$(b).writeAttribute(c||{});else b=Object.isString(b)?new Element(b,c):new Element("div",b);a.parentNode&&a.parentNode.replaceChild(b,a);b.appendChild(a);return b},inspect:function(a){a=$(a);var b="<"+a.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(c){var d=
c.first();c=c.last();if(d=(a[d]||"").toString())b+=" "+c+"="+d.inspect(true)});return b+">"},recursivelyCollect:function(a,b){a=$(a);for(var c=[];a=a[b];)a.nodeType==1&&c.push(Element.extend(a));return c},ancestors:function(a){return Element.recursivelyCollect(a,"parentNode")},descendants:function(a){return Element.select(a,"*")},firstDescendant:function(a){for(a=$(a).firstChild;a&&a.nodeType!=1;)a=a.nextSibling;return $(a)},immediateDescendants:function(a){if(!(a=$(a).firstChild))return[];for(;a&&
a.nodeType!=1;)a=a.nextSibling;if(a)return[a].concat($(a).nextSiblings());return[]},previousSiblings:function(a){return Element.recursivelyCollect(a,"previousSibling")},nextSiblings:function(a){return Element.recursivelyCollect(a,"nextSibling")},siblings:function(a){a=$(a);return Element.previousSiblings(a).reverse().concat(Element.nextSiblings(a))},match:function(a,b){if(Object.isString(b))b=new Selector(b);return b.match($(a))},up:function(a,b,c){a=$(a);if(arguments.length==1)return $(a.parentNode);
var d=Element.ancestors(a);return Object.isNumber(b)?d[b]:Selector.findElement(d,b,c)},down:function(a,b,c){a=$(a);if(arguments.length==1)return Element.firstDescendant(a);return Object.isNumber(b)?Element.descendants(a)[b]:Element.select(a,b)[c||0]},previous:function(a,b,c){a=$(a);if(arguments.length==1)return $(Selector.handlers.previousElementSibling(a));var d=Element.previousSiblings(a);return Object.isNumber(b)?d[b]:Selector.findElement(d,b,c)},next:function(a,b,c){a=$(a);if(arguments.length==
1)return $(Selector.handlers.nextElementSibling(a));var d=Element.nextSiblings(a);return Object.isNumber(b)?d[b]:Selector.findElement(d,b,c)},select:function(a){var b=Array.prototype.slice.call(arguments,1);return Selector.findChildElements(a,b)},adjacent:function(a){var b=Array.prototype.slice.call(arguments,1);return Selector.findChildElements(a.parentNode,b).without(a)},identify:function(a){a=$(a);var b=Element.readAttribute(a,"id");if(b)return b;do b="anonymous_element_"+Element.idCounter++;while($(b));
Element.writeAttribute(a,"id",b);return b},readAttribute:function(a,b){a=$(a);if(Prototype.Browser.IE){var c=Element._attributeTranslations.read;if(c.values[b])return c.values[b](a,b);if(c.names[b])b=c.names[b];if(b.include(":"))return!a.attributes||!a.attributes[b]?null:a.attributes[b].value}return a.getAttribute(b)},writeAttribute:function(a,b,c){a=$(a);var d={},e=Element._attributeTranslations.write;if(typeof b=="object")d=b;else d[b]=Object.isUndefined(c)?true:c;for(var f in d){b=e.names[f]||
f;c=d[f];if(e.values[f])b=e.values[f](a,c);if(c===false||c===null)a.removeAttribute(b);else c===true?a.setAttribute(b,b):a.setAttribute(b,c)}return a},getHeight:function(a){return Element.getDimensions(a).height},getWidth:function(a){return Element.getDimensions(a).width},classNames:function(a){return new Element.ClassNames(a)},hasClassName:function(a,b){if(a=$(a)){var c=a.className;return c.length>0&&(c==b||RegExp("(^|\\s)"+b+"(\\s|$)").test(c))}},addClassName:function(a,b){if(a=$(a)){Element.hasClassName(a,
b)||(a.className+=(a.className?" ":"")+b);return a}},removeClassName:function(a,b){if(a=$(a)){a.className=a.className.replace(RegExp("(^|\\s+)"+b+"(\\s+|$)")," ").strip();return a}},toggleClassName:function(a,b){if(a=$(a))return Element[Element.hasClassName(a,b)?"removeClassName":"addClassName"](a,b)},cleanWhitespace:function(a){a=$(a);for(var b=a.firstChild;b;){var c=b.nextSibling;b.nodeType==3&&!/\S/.test(b.nodeValue)&&a.removeChild(b);b=c}return a},empty:function(a){return $(a).innerHTML.blank()},
descendantOf:function(a,b){a=$(a);b=$(b);if(a.compareDocumentPosition)return(a.compareDocumentPosition(b)&8)===8;if(b.contains)return b.contains(a)&&b!==a;for(;a=a.parentNode;)if(a==b)return true;return false},scrollTo:function(a){a=$(a);var b=Element.cumulativeOffset(a);window.scrollTo(b[0],b[1]);return a},getStyle:function(a,b){a=$(a);b=b=="float"?"cssFloat":b.camelize();var c=a.style[b];if(!c||c=="auto")c=(c=document.defaultView.getComputedStyle(a,null))?c[b]:null;if(b=="opacity")return c?parseFloat(c):
1;return c=="auto"?null:c},getOpacity:function(a){return $(a).getStyle("opacity")},setStyle:function(a,b){a=$(a);var c=a.style;if(Object.isString(b)){a.style.cssText+=";"+b;return b.include("opacity")?a.setOpacity(b.match(/opacity:\s*(\d?\.?\d*)/)[1]):a}for(var d in b)if(d=="opacity")a.setOpacity(b[d]);else c[d=="float"||d=="cssFloat"?Object.isUndefined(c.styleFloat)?"cssFloat":"styleFloat":d]=b[d];return a},setOpacity:function(a,b){a=$(a);a.style.opacity=b==1||b===""?"":b<1.0E-5?0:b;return a},getDimensions:function(a){a=
$(a);var b=Element.getStyle(a,"display");if(b!="none"&&b!=null)return{width:a.offsetWidth,height:a.offsetHeight};b=a.style;var c=b.visibility,d=b.position,e=b.display;b.visibility="hidden";if(d!="fixed")b.position="absolute";b.display="block";var f=a.clientWidth;a=a.clientHeight;b.display=e;b.position=d;b.visibility=c;return{width:f,height:a}},makePositioned:function(a){a=$(a);var b=Element.getStyle(a,"position");if(b=="static"||!b){a._madePositioned=true;a.style.position="relative";if(Prototype.Browser.Opera){a.style.top=
0;a.style.left=0}}return a},undoPositioned:function(a){a=$(a);if(a._madePositioned){a._madePositioned=undefined;a.style.position=a.style.top=a.style.left=a.style.bottom=a.style.right=""}return a},makeClipping:function(a){a=$(a);if(a._overflow)return a;a._overflow=Element.getStyle(a,"overflow")||"auto";if(a._overflow!=="hidden")a.style.overflow="hidden";return a},undoClipping:function(a){a=$(a);if(!a._overflow)return a;a.style.overflow=a._overflow=="auto"?"":a._overflow;a._overflow=null;return a},
cumulativeOffset:function(a){var b=0,c=0;do{b+=a.offsetTop||0;c+=a.offsetLeft||0;a=a.offsetParent}while(a);return Element._returnOffset(c,b)},positionedOffset:function(a){var b=0,c=0;do{b+=a.offsetTop||0;c+=a.offsetLeft||0;if(a=a.offsetParent){if(a.tagName.toUpperCase()=="BODY")break;if(Element.getStyle(a,"position")!=="static")break}}while(a);return Element._returnOffset(c,b)},absolutize:function(a){a=$(a);if(Element.getStyle(a,"position")=="absolute")return a;var b=Element.positionedOffset(a),c=
b[1];b=b[0];var d=a.clientWidth,e=a.clientHeight;a._originalLeft=b-parseFloat(a.style.left||0);a._originalTop=c-parseFloat(a.style.top||0);a._originalWidth=a.style.width;a._originalHeight=a.style.height;a.style.position="absolute";a.style.top=c+"px";a.style.left=b+"px";a.style.width=d+"px";a.style.height=e+"px";return a},relativize:function(a){a=$(a);if(Element.getStyle(a,"position")=="relative")return a;a.style.position="relative";var b=parseFloat(a.style.top||0)-(a._originalTop||0),c=parseFloat(a.style.left||
0)-(a._originalLeft||0);a.style.top=b+"px";a.style.left=c+"px";a.style.height=a._originalHeight;a.style.width=a._originalWidth;return a},cumulativeScrollOffset:function(a){var b=0,c=0;do{b+=a.scrollTop||0;c+=a.scrollLeft||0;a=a.parentNode}while(a);return Element._returnOffset(c,b)},getOffsetParent:function(a){if(a.offsetParent)return $(a.offsetParent);if(a==document.body)return $(a);for(;(a=a.parentNode)&&a!=document.body;)if(Element.getStyle(a,"position")!="static")return $(a);return $(document.body)},
viewportOffset:function(a){var b=0,c=0,d=a;do{b+=d.offsetTop||0;c+=d.offsetLeft||0;if(d.offsetParent==document.body&&Element.getStyle(d,"position")=="absolute")break}while(d=d.offsetParent);d=a;do if(!Prototype.Browser.Opera||d.tagName&&d.tagName.toUpperCase()=="BODY"){b-=d.scrollTop||0;c-=d.scrollLeft||0}while(d=d.parentNode);return Element._returnOffset(c,b)},clonePosition:function(a,b,c){c=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},c||{});b=$(b);
var d=Element.viewportOffset(b);a=$(a);var e=[0,0],f=null;if(Element.getStyle(a,"position")=="absolute"){f=Element.getOffsetParent(a);e=Element.viewportOffset(f)}if(f==document.body){e[0]-=document.body.offsetLeft;e[1]-=document.body.offsetTop}if(c.setLeft)a.style.left=d[0]-e[0]+c.offsetLeft+"px";if(c.setTop)a.style.top=d[1]-e[1]+c.offsetTop+"px";if(c.setWidth)a.style.width=b.offsetWidth+"px";if(c.setHeight)a.style.height=b.offsetHeight+"px";return a}};
Object.extend(Element.Methods,{getElementsBySelector:Element.Methods.select,childElements:Element.Methods.immediateDescendants});Element._attributeTranslations={write:{names:{className:"class",htmlFor:"for"},values:{}}};
if(Prototype.Browser.Opera){Element.Methods.getStyle=Element.Methods.getStyle.wrap(function(a,b,c){switch(c){case "left":case "top":case "right":case "bottom":if(a(b,"position")==="static")return null;case "height":case "width":if(!Element.visible(b))return null;var d=parseInt(a(b,c),10);if(d!==b["offset"+c.capitalize()])return d+"px";return(c==="height"?["border-top-width","padding-top","padding-bottom","border-bottom-width"]:["border-left-width","padding-left","padding-right","border-right-width"]).inject(d,
function(e,f){var h=a(b,f);return h===null?e:e-parseInt(h,10)})+"px";default:return a(b,c)}});Element.Methods.readAttribute=Element.Methods.readAttribute.wrap(function(a,b,c){if(c==="title")return b.title;return a(b,c)})}else if(Prototype.Browser.IE){Element.Methods.getOffsetParent=Element.Methods.getOffsetParent.wrap(function(a,b){b=$(b);var c=b.getStyle("position");if(c!=="static")return a(b);b.setStyle({position:"relative"});var d=a(b);b.setStyle({position:c});return d});$w("positionedOffset viewportOffset").each(function(a){Element.Methods[a]=
Element.Methods[a].wrap(function(b,c){c=$(c);var d=c.getStyle("position");if(d!=="static")return b(c);var e=c.getOffsetParent();e&&e.getStyle("position")==="fixed"&&e.setStyle({zoom:1});c.setStyle({position:"relative"});e=b(c);c.setStyle({position:d});return e})});Element.Methods.cumulativeOffset=Element.Methods.cumulativeOffset.wrap(function(a,b){return a(b)});Element.Methods.getStyle=function(a,b){a=$(a);b=b=="float"||b=="cssFloat"?"styleFloat":b.camelize();var c=a.style[b];if(!c&&a.currentStyle)c=
a.currentStyle[b];if(b=="opacity"){if(c=(a.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/))if(c[1])return parseFloat(c[1])/100;return 1}if(c=="auto"){if((b=="width"||b=="height")&&a.getStyle("display")!="none")return a["offset"+b.capitalize()]+"px";return null}return c};Element.Methods.setOpacity=function(a,b){a=$(a);var c=a.currentStyle;if(c&&!c.hasLayout||!c&&a.style.zoom=="normal")a.style.zoom=1;c=a.getStyle("filter");var d=a.style;if(b==1||b===""){(c=c.replace(/alpha\([^\)]*\)/gi,""))?
d.filter=c:d.removeAttribute("filter");return a}else if(b<1.0E-5)b=0;d.filter=c.replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+b*100+")";return a};Element._attributeTranslations=function(){var a="className",b="for",c=document.createElement("div");c.setAttribute(a,"x");if(c.className!=="x"){c.setAttribute("class","x");if(c.className==="x")a="class"}c=null;c=document.createElement("label");c.setAttribute(b,"x");if(c.htmlFor!=="x"){c.setAttribute("htmlFor","x");if(c.htmlFor==="x")b="htmlFor"}c=null;
return{read:{names:{"class":a,className:a,"for":b,htmlFor:b},values:{_getAttr:function(d,e){return d.getAttribute(e)},_getAttr2:function(d,e){return d.getAttribute(e,2)},_getAttrNode:function(d,e){var f=d.getAttributeNode(e);return f?f.value:""},_getEv:function(){var d=document.createElement("div");d.onclick=Prototype.emptyFunction;d=d.getAttribute("onclick");var e;if(String(d).indexOf("{")>-1)e=function(f,h){h=f.getAttribute(h);if(!h)return null;h=h.toString();h=h.split("{")[1];h=h.split("}")[0];
return h.strip()};else if(d==="")e=function(f,h){h=f.getAttribute(h);if(!h)return null;return h.strip()};d=null;return e}(),_flag:function(d,e){return $(d).hasAttribute(e)?e:null},style:function(d){return d.style.cssText.toLowerCase()},title:function(d){return d.title}}}}}();Element._attributeTranslations.write={names:Object.extend({cellpadding:"cellPadding",cellspacing:"cellSpacing"},Element._attributeTranslations.read.names),values:{checked:function(a,b){a.checked=!!b},style:function(a,b){a.style.cssText=
b?b:""}}};Element._attributeTranslations.has={};$w("colSpan rowSpan vAlign dateTime accessKey tabIndex encType maxLength readOnly longDesc frameBorder").each(function(a){Element._attributeTranslations.write.names[a.toLowerCase()]=a;Element._attributeTranslations.has[a.toLowerCase()]=a});(function(a){Object.extend(a,{href:a._getAttr2,src:a._getAttr2,type:a._getAttr,action:a._getAttrNode,disabled:a._flag,checked:a._flag,readonly:a._flag,multiple:a._flag,onload:a._getEv,onunload:a._getEv,onclick:a._getEv,
ondblclick:a._getEv,onmousedown:a._getEv,onmouseup:a._getEv,onmouseover:a._getEv,onmousemove:a._getEv,onmouseout:a._getEv,onfocus:a._getEv,onblur:a._getEv,onkeypress:a._getEv,onkeydown:a._getEv,onkeyup:a._getEv,onsubmit:a._getEv,onreset:a._getEv,onselect:a._getEv,onchange:a._getEv})})(Element._attributeTranslations.read.values);Prototype.BrowserFeatures.ElementExtensions&&function(){Element.Methods.down=function(a,b,c){a=$(a);if(arguments.length==1)return a.firstDescendant();var d;if(Object.isNumber(b)){d=
a.getElementsByTagName("*");for(var e=[],f=0,h;h=d[f];f++)h.tagName!=="!"&&e.push(h);d=e[b]}else d=Element.select(a,b)[c||0];return d}}()}else if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent))Element.Methods.setOpacity=function(a,b){a=$(a);a.style.opacity=b==1?0.999999:b===""?"":b<1.0E-5?0:b;return a};else if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(a,b){a=$(a);a.style.opacity=b==1||b===""?"":b<1.0E-5?0:b;if(b==1)if(a.tagName.toUpperCase()=="IMG"&&a.width){a.width++;
a.width--}else try{var c=document.createTextNode(" ");a.appendChild(c);a.removeChild(c)}catch(d){}return a};Element.Methods.cumulativeOffset=function(a){var b=0,c=0;do{b+=a.offsetTop||0;c+=a.offsetLeft||0;if(a.offsetParent==document.body)if(Element.getStyle(a,"position")=="absolute")break;a=a.offsetParent}while(a);return Element._returnOffset(c,b)}}
if("outerHTML"in document.documentElement)Element.Methods.replace=function(a,b){a=$(a);if(b&&b.toElement)b=b.toElement();if(Object.isElement(b)){a.parentNode.replaceChild(b,a);return a}b=Object.toHTML(b);var c=a.parentNode,d=c.tagName.toUpperCase();if(Element._insertionTranslations.tags[d]){var e=a.next();d=Element._getContentFromAnonymousElement(d,b.stripScripts());c.removeChild(a);e?d.each(function(f){c.insertBefore(f,e)}):d.each(function(f){c.appendChild(f)})}else a.outerHTML=b.stripScripts();
b.evalScripts.bind(b).defer();return a};Element._returnOffset=function(a,b){var c=[a,b];c.left=a;c.top=b;return c};Element._getContentFromAnonymousElement=function(a,b){var c=new Element("div"),d=Element._insertionTranslations.tags[a];if(d){c.innerHTML=d[0]+b+d[1];d[2].times(function(){c=c.firstChild})}else c.innerHTML=b;return $A(c.childNodes)};
Element._insertionTranslations={before:function(a,b){a.parentNode.insertBefore(b,a)},top:function(a,b){a.insertBefore(b,a.firstChild)},bottom:function(a,b){a.appendChild(b)},after:function(a,b){a.parentNode.insertBefore(b,a.nextSibling)},tags:{TABLE:["<table>","</table>",1],TBODY:["<table><tbody>","</tbody></table>",2],TR:["<table><tbody><tr>","</tr></tbody></table>",3],TD:["<table><tbody><tr><td>","</td></tr></tbody></table>",4],SELECT:["<select>","</select>",1]}};
(function(){var a=Element._insertionTranslations.tags;Object.extend(a,{THEAD:a.TBODY,TFOOT:a.TBODY,TH:a.TD})})();Element.Methods.Simulated={hasAttribute:function(a,b){b=Element._attributeTranslations.has[b]||b;var c=$(a).getAttributeNode(b);return!!(c&&c.specified)}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods);
(function(a){if(!Prototype.BrowserFeatures.ElementExtensions&&a.__proto__){window.HTMLElement={};window.HTMLElement.prototype=a.__proto__;Prototype.BrowserFeatures.ElementExtensions=true}})(document.createElement("div"));
Element.extend=function(){function a(e,f){for(var h in f){var g=f[h];if(Object.isFunction(g)&&!(h in e))e[h]=g.methodize()}}var b=function(e){if(typeof window.Element!="undefined"){var f=window.Element.prototype;if(f){var h="_"+(Math.random()+"").slice(2);e=document.createElement(e);f[h]="x";e=e[h]!=="x";delete f[h];return e}}return false}("object");if(Prototype.BrowserFeatures.SpecificElementExtensions){if(b)return function(e){if(e&&typeof e._extendedByPrototype=="undefined"){var f=e.tagName;if(f&&
/^(?:object|applet|embed)$/i.test(f)){a(e,Element.Methods);a(e,Element.Methods.Simulated);a(e,Element.Methods.ByTag[f.toUpperCase()])}}return e};return Prototype.K}var c={},d=Element.Methods.ByTag;b=Object.extend(function(e){if(!e||typeof e._extendedByPrototype!="undefined"||e.nodeType!=1||e==window)return e;var f=Object.clone(c),h=e.tagName.toUpperCase();d[h]&&Object.extend(f,d[h]);a(e,f);e._extendedByPrototype=Prototype.emptyFunction;return e},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(c,
Element.Methods);Object.extend(c,Element.Methods.Simulated)}}});b.refresh();return b}();Element.hasAttribute=function(a,b){if(a.hasAttribute)return a.hasAttribute(b);return Element.Methods.Simulated.hasAttribute(a,b)};
Element.addMethods=function(a){function b(i){i=i.toUpperCase();Element.Methods.ByTag[i]||(Element.Methods.ByTag[i]={});Object.extend(Element.Methods.ByTag[i],a)}function c(i,j,l){l=l||false;for(var n in i){var q=i[n];if(Object.isFunction(q))if(!l||!(n in j))j[n]=q.methodize()}}function d(i){var j,l={OPTGROUP:"OptGroup",TEXTAREA:"TextArea",P:"Paragraph",FIELDSET:"FieldSet",UL:"UList",OL:"OList",DL:"DList",DIR:"Directory",H1:"Heading",H2:"Heading",H3:"Heading",H4:"Heading",H5:"Heading",H6:"Heading",
Q:"Quote",INS:"Mod",DEL:"Mod",A:"Anchor",IMG:"Image",CAPTION:"TableCaption",COL:"TableCol",COLGROUP:"TableCol",THEAD:"TableSection",TFOOT:"TableSection",TBODY:"TableSection",TR:"TableRow",TH:"TableCell",TD:"TableCell",FRAMESET:"FrameSet",IFRAME:"IFrame"};if(l[i])j="HTML"+l[i]+"Element";if(window[j])return window[j];j="HTML"+i+"Element";if(window[j])return window[j];j="HTML"+i.capitalize()+"Element";if(window[j])return window[j];i=document.createElement(i);return i.__proto__||i.constructor.prototype}
var e=Prototype.BrowserFeatures,f=Element.Methods.ByTag;if(!a){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Object.extend(Element.Methods.ByTag,{FORM:Object.clone(Form.Methods),INPUT:Object.clone(Form.Element.Methods),SELECT:Object.clone(Form.Element.Methods),TEXTAREA:Object.clone(Form.Element.Methods)})}if(arguments.length==2){var h=a;a=arguments[1]}if(h)Object.isArray(h)?h.each(b):b(h);else Object.extend(Element.Methods,a||{});h=window.HTMLElement?HTMLElement.prototype:
Element.prototype;if(e.ElementExtensions){c(Element.Methods,h);c(Element.Methods.Simulated,h,true)}if(e.SpecificElementExtensions)for(var g in Element.Methods.ByTag){e=d(g);Object.isUndefined(e)||c(f[g],e.prototype)}Object.extend(Element,Element.Methods);delete Element.ByTag;Element.extend.refresh&&Element.extend.refresh();Element.cache={}};
document.viewport={getDimensions:function(){return{width:this.getWidth(),height:this.getHeight()}},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)}};
(function(a){function b(){if(d.WebKit&&!e.evaluate)return document;if(d.Opera&&window.parseFloat(window.opera.version())<9.5)return document.body;return document.documentElement}function c(g){f||(f=b());h[g]="client"+g;a["get"+g]=function(){return f[h[g]]};return a["get"+g]()}var d=Prototype.Browser,e=document,f,h={};a.getWidth=c.curry("Width");a.getHeight=c.curry("Height")})(document.viewport);Element.Storage={UID:1};
Element.addMethods({getStorage:function(a){if(a=$(a)){if(a===window)a=0;else{if(typeof a._prototypeUID==="undefined")a._prototypeUID=[Element.Storage.UID++];a=a._prototypeUID[0]}Element.Storage[a]||(Element.Storage[a]=$H());return Element.Storage[a]}},store:function(a,b,c){if(a=$(a)){arguments.length===2?Element.getStorage(a).update(b):Element.getStorage(a).set(b,c);return a}},retrieve:function(a,b,c){if(a=$(a)){a=Element.getStorage(a);var d=a.get(b);if(Object.isUndefined(d)){a.set(b,c);d=c}return d}},
clone:function(a,b){if(a=$(a)){var c=a.cloneNode(b);c._prototypeUID=void 0;if(b)for(var d=Element.select(c,"*"),e=d.length;e--;)d[e]._prototypeUID=void 0;return Element.extend(c)}}});
var Selector=Class.create({initialize:function(a){this.expression=a.strip();if(this.shouldUseSelectorsAPI())this.mode="selectorsAPI";else if(this.shouldUseXPath()){this.mode="xpath";this.compileXPathMatcher()}else{this.mode="normal";this.compileMatcher()}},shouldUseXPath:function(){var a=function(){var b=false;if(document.evaluate&&window.XPathResult){b=document.createElement("div");b.innerHTML="<ul><li></li></ul><div><ul><li></li></ul></div>";b=document.evaluate(".//*[local-name()='ul' or local-name()='UL']//*[local-name()='li' or local-name()='LI']",
b,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength!==2}return b}();return function(){if(!Prototype.BrowserFeatures.XPath)return false;var b=this.expression;if(Prototype.Browser.WebKit&&(b.include("-of-type")||b.include(":empty")))return false;if(/(\[[\w-]*?:|:checked)/.test(b))return false;if(a)return false;return true}}(),shouldUseSelectorsAPI:function(){if(!Prototype.BrowserFeatures.SelectorsAPI)return false;if(Selector.CASE_INSENSITIVE_CLASS_NAMES)return false;if(!Selector._div)Selector._div=
new Element("div");try{Selector._div.querySelector(this.expression)}catch(a){return false}return true},compileMatcher:function(){var a=this.expression,b=Selector.patterns,c=Selector.criteria,d,e,f=b.length,h;if(Selector._cache[a])this.matcher=Selector._cache[a];else{for(this.matcher=["this.matcher = function(root) {","var r = root, h = Selector.handlers, c = false, n;"];a&&d!=a&&/\S/.test(a);){d=a;for(var g=0;g<f;g++){e=b[g].re;h=b[g].name;if(e=a.match(e)){this.matcher.push(Object.isFunction(c[h])?
c[h](e):(new Template(c[h])).evaluate(e));a=a.replace(e[0],"");break}}}this.matcher.push("return h.unique(n);\n}");eval(this.matcher.join("\n"));Selector._cache[this.expression]=this.matcher}},compileXPathMatcher:function(){var a=this.expression,b=Selector.patterns,c=Selector.xpath,d,e,f=b.length,h;if(Selector._cache[a])this.xpath=Selector._cache[a];else{for(this.matcher=[".//*"];a&&d!=a&&/\S/.test(a);){d=a;for(var g=0;g<f;g++){h=b[g].name;if(e=a.match(b[g].re)){this.matcher.push(Object.isFunction(c[h])?
c[h](e):(new Template(c[h])).evaluate(e));a=a.replace(e[0],"");break}}}this.xpath=this.matcher.join("");Selector._cache[this.expression]=this.xpath}},findElements:function(a){a=a||document;var b=this.expression;switch(this.mode){case "selectorsAPI":if(a!==document){var c=a.id,d=$(a).identify();d=d.replace(/([\.:])/g,"\\$1");b="#"+d+" "+b}b=$A(a.querySelectorAll(b)).map(Element.extend);a.id=c;return b;case "xpath":return document._getElementsByXPath(this.xpath,a);default:return this.matcher(a)}},match:function(a){this.tokens=
[];for(var b=this.expression,c=Selector.patterns,d=Selector.assertions,e,f,h=c.length,g;b&&e!==b&&/\S/.test(b);){e=b;for(var i=0;i<h;i++){f=c[i].re;g=c[i].name;if(f=b.match(f))if(d[g]){this.tokens.push([g,Object.clone(f)]);b=b.replace(f[0],"")}else return this.findElements(document).include(a)}}b=true;for(i=0;c=this.tokens[i];i++){g=c[0];c=c[1];if(!Selector.assertions[g](a,c)){b=false;break}}return b},toString:function(){return this.expression},inspect:function(){return"#<Selector:"+this.expression.inspect()+
">"}});if(Prototype.BrowserFeatures.SelectorsAPI&&document.compatMode==="BackCompat")Selector.CASE_INSENSITIVE_CLASS_NAMES=function(){var a=document.createElement("div"),b=document.createElement("span");a.id="prototype_test_id";b.className="Test";a.appendChild(b);return a.querySelector("#prototype_test_id .test")!==null}();
Object.extend(Selector,{_cache:{},xpath:{descendant:"//*",child:"/*",adjacent:"/following-sibling::*[1]",laterSibling:"/following-sibling::*",tagName:function(a){if(a[1]=="*")return"";return"[local-name()='"+a[1].toLowerCase()+"' or local-name()='"+a[1].toUpperCase()+"']"},className:"[contains(concat(' ', @class, ' '), ' #{1} ')]",id:"[@id='#{1}']",attrPresence:function(a){a[1]=a[1].toLowerCase();return(new Template("[@#{1}]")).evaluate(a)},attr:function(a){a[1]=a[1].toLowerCase();a[3]=a[5]||a[6];
return(new Template(Selector.xpath.operators[a[2]])).evaluate(a)},pseudo:function(a){var b=Selector.xpath.pseudos[a[1]];if(!b)return"";if(Object.isFunction(b))return b(a);return(new Template(Selector.xpath.pseudos[a[1]])).evaluate(a)},operators:{"=":"[@#{1}='#{3}']","!=":"[@#{1}!='#{3}']","^=":"[starts-with(@#{1}, '#{3}')]","$=":"[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']","*=":"[contains(@#{1}, '#{3}')]","~=":"[contains(concat(' ', @#{1}, ' '), ' #{3} ')]","|=":"[contains(concat('-', @#{1}, '-'), '-#{3}-')]"},
pseudos:{"first-child":"[not(preceding-sibling::*)]","last-child":"[not(following-sibling::*)]","only-child":"[not(preceding-sibling::* or following-sibling::*)]",empty:"[count(*) = 0 and (count(text()) = 0)]",checked:"[@checked]",disabled:"[(@disabled) and (@type!='hidden')]",enabled:"[not(@disabled) and (@type!='hidden')]",not:function(a){for(var b=a[6],c=Selector.patterns,d=Selector.xpath,e,f,h=c.length,g=[];b&&e!=b&&/\S/.test(b);){e=b;for(var i=0;i<h;i++){f=c[i].name;if(a=b.match(c[i].re)){f=
Object.isFunction(d[f])?d[f](a):(new Template(d[f])).evaluate(a);g.push("("+f.substring(1,f.length-1)+")");b=b.replace(a[0],"");break}}}return"[not("+g.join(" and ")+")]"},"nth-child":function(a){return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ",a)},"nth-last-child":function(a){return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ",a)},"nth-of-type":function(a){return Selector.xpath.pseudos.nth("position() ",a)},"nth-last-of-type":function(a){return Selector.xpath.pseudos.nth("(last() + 1 - position()) ",
a)},"first-of-type":function(a){a[6]="1";return Selector.xpath.pseudos["nth-of-type"](a)},"last-of-type":function(a){a[6]="1";return Selector.xpath.pseudos["nth-last-of-type"](a)},"only-of-type":function(a){var b=Selector.xpath.pseudos;return b["first-of-type"](a)+b["last-of-type"](a)},nth:function(a,b){var c,d=b[6];if(d=="even")d="2n+0";if(d=="odd")d="2n+1";if(c=d.match(/^(\d+)$/))return"["+a+"= "+c[1]+"]";if(c=d.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(c[1]=="-")c[1]=-1;d=c[1]?Number(c[1]):1;c=c[2]?
Number(c[2]):0;return(new Template("[((#{fragment} - #{b}) mod #{a} = 0) and ((#{fragment} - #{b}) div #{a} >= 0)]")).evaluate({fragment:a,a:d,b:c})}}}},criteria:{tagName:'n = h.tagName(n, r, "#{1}", c);      c = false;',className:'n = h.className(n, r, "#{1}", c);    c = false;',id:'n = h.id(n, r, "#{1}", c);           c = false;',attrPresence:'n = h.attrPresence(n, r, "#{1}", c); c = false;',attr:function(a){a[3]=a[5]||a[6];return(new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;')).evaluate(a)},
pseudo:function(a){if(a[6])a[6]=a[6].replace(/"/g,'\\"');return(new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;')).evaluate(a)},descendant:'c = "descendant";',child:'c = "child";',adjacent:'c = "adjacent";',laterSibling:'c = "laterSibling";'},patterns:[{name:"laterSibling",re:/^\s*~\s*/},{name:"child",re:/^\s*>\s*/},{name:"adjacent",re:/^\s*\+\s*/},{name:"descendant",re:/^\s/},{name:"tagName",re:/^\s*(\*|[\w\-]+)(\b|$)?/},{name:"id",re:/^#([\w\-\*]+)(\b|$)/},{name:"className",re:/^\.([\w\-\*]+)(\b|$)/},
{name:"pseudo",re:/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/},{name:"attrPresence",re:/^\[((?:[\w-]+:)?[\w-]+)\]/},{name:"attr",re:/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/}],assertions:{tagName:function(a,b){return b[1].toUpperCase()==a.tagName.toUpperCase()},className:function(a,b){return Element.hasClassName(a,b[1])},id:function(a,b){return a.id===b[1]},attrPresence:function(a,b){return Element.hasAttribute(a,
b[1])},attr:function(a,b){var c=Element.readAttribute(a,b[1]);return c&&Selector.operators[b[2]](c,b[5]||b[6])}},handlers:{concat:function(a,b){for(var c=0,d;d=b[c];c++)a.push(d);return a},mark:function(a){for(var b=Prototype.emptyFunction,c=0,d;d=a[c];c++)d._countedByPrototype=b;return a},unmark:function(){return function(){var a=document.createElement("div"),b=false;a._countedByPrototype="x";return b=a.getAttribute("_countedByPrototype")==="x"}()?function(a){for(var b=0,c;c=a[b];b++)c.removeAttribute("_countedByPrototype");
return a}:function(a){for(var b=0,c;c=a[b];b++)c._countedByPrototype=void 0;return a}}(),index:function(a,b,c){a._countedByPrototype=Prototype.emptyFunction;if(b){a=a.childNodes;b=a.length-1;for(var d=1;b>=0;b--){var e=a[b];if(e.nodeType==1&&(!c||e._countedByPrototype))e.nodeIndex=d++}}else{b=0;d=1;for(a=a.childNodes;e=a[b];b++)if(e.nodeType==1&&(!c||e._countedByPrototype))e.nodeIndex=d++}},unique:function(a){if(a.length==0)return a;for(var b=[],c,d=0,e=a.length;d<e;d++)if(typeof(c=a[d])._countedByPrototype==
"undefined"){c._countedByPrototype=Prototype.emptyFunction;b.push(Element.extend(c))}return Selector.handlers.unmark(b)},descendant:function(a){for(var b=Selector.handlers,c=0,d=[],e;e=a[c];c++)b.concat(d,e.getElementsByTagName("*"));return d},child:function(a){for(var b=0,c=[],d;d=a[b];b++)for(var e=0,f;f=d.childNodes[e];e++)f.nodeType==1&&f.tagName!="!"&&c.push(f);return c},adjacent:function(a){for(var b=0,c=[],d;d=a[b];b++)(d=this.nextElementSibling(d))&&c.push(d);return c},laterSibling:function(a){for(var b=
Selector.handlers,c=0,d=[],e;e=a[c];c++)b.concat(d,Element.nextSiblings(e));return d},nextElementSibling:function(a){for(;a=a.nextSibling;)if(a.nodeType==1)return a;return null},previousElementSibling:function(a){for(;a=a.previousSibling;)if(a.nodeType==1)return a;return null},tagName:function(a,b,c,d){var e=c.toUpperCase(),f=[],h=Selector.handlers;if(a){if(d){if(d=="descendant"){for(b=0;d=a[b];b++)h.concat(f,d.getElementsByTagName(c));return f}else a=this[d](a);if(c=="*")return a}for(b=0;d=a[b];b++)d.tagName.toUpperCase()===
e&&f.push(d);return f}else return b.getElementsByTagName(c)},id:function(a,b,c,d){var e=$(c),f=Selector.handlers;if(b==document){if(!e)return[];if(!a)return[e]}else if(!b.sourceIndex||b.sourceIndex<1){a=b.getElementsByTagName("*");for(var h=0,g;g=a[h];h++)if(g.id===c)return[g]}if(a){if(d)if(d=="child")for(b=0;g=a[b];b++){if(e.parentNode==g)return[e]}else if(d=="descendant")for(b=0;g=a[b];b++){if(Element.descendantOf(e,g))return[e]}else if(d=="adjacent")for(b=0;g=a[b];b++){if(Selector.handlers.previousElementSibling(e)==
g)return[e]}else a=f[d](a);for(b=0;g=a[b];b++)if(g==e)return[e];return[]}return e&&Element.descendantOf(e,b)?[e]:[]},className:function(a,b,c,d){if(a&&d)a=this[d](a);return Selector.handlers.byClassName(a,b,c)},byClassName:function(a,b,c){a||(a=Selector.handlers.descendant([b]));b=" "+c+" ";for(var d=0,e=[],f,h;f=a[d];d++){h=f.className;if(h.length!=0)if(h==c||(" "+h+" ").include(b))e.push(f)}return e},attrPresence:function(a,b,c,d){a||(a=b.getElementsByTagName("*"));if(a&&d)a=this[d](a);b=[];d=0;
for(var e;e=a[d];d++)Element.hasAttribute(e,c)&&b.push(e);return b},attr:function(a,b,c,d,e,f){a||(a=b.getElementsByTagName("*"));if(a&&f)a=this[f](a);b=Selector.operators[e];e=[];f=0;for(var h;h=a[f];f++){var g=Element.readAttribute(h,c);g!==null&&b(g,d)&&e.push(h)}return e},pseudo:function(a,b,c,d,e){if(a&&e)a=this[e](a);a||(a=d.getElementsByTagName("*"));return Selector.pseudos[b](a,c,d)}},pseudos:{"first-child":function(a){for(var b=0,c=[],d;d=a[b];b++)Selector.handlers.previousElementSibling(d)||
c.push(d);return c},"last-child":function(a){for(var b=0,c=[],d;d=a[b];b++)Selector.handlers.nextElementSibling(d)||c.push(d);return c},"only-child":function(a){for(var b=Selector.handlers,c=0,d=[],e;e=a[c];c++)!b.previousElementSibling(e)&&!b.nextElementSibling(e)&&d.push(e);return d},"nth-child":function(a,b,c){return Selector.pseudos.nth(a,b,c)},"nth-last-child":function(a,b,c){return Selector.pseudos.nth(a,b,c,true)},"nth-of-type":function(a,b,c){return Selector.pseudos.nth(a,b,c,false,true)},
"nth-last-of-type":function(a,b,c){return Selector.pseudos.nth(a,b,c,true,true)},"first-of-type":function(a,b,c){return Selector.pseudos.nth(a,"1",c,false,true)},"last-of-type":function(a,b,c){return Selector.pseudos.nth(a,"1",c,true,true)},"only-of-type":function(a,b,c){var d=Selector.pseudos;return d["last-of-type"](d["first-of-type"](a,b,c),b,c)},getIndices:function(a,b,c){if(a==0)return b>0?[b]:[];return $R(1,c).inject([],function(d,e){0==(e-b)%a&&(e-b)/a>=0&&d.push(e);return d})},nth:function(a,
b,c,d,e){if(a.length==0)return[];if(b=="even")b="2n+0";if(b=="odd")b="2n+1";c=Selector.handlers;var f=[],h=[],g;c.mark(a);for(var i=0;g=a[i];i++)if(!g.parentNode._countedByPrototype){c.index(g.parentNode,d,e);h.push(g.parentNode)}if(b.match(/^\d+$/)){b=Number(b);for(i=0;g=a[i];i++)g.nodeIndex==b&&f.push(g)}else if(g=b.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(g[1]=="-")g[1]=-1;i=g[1]?Number(g[1]):1;g=g[2]?Number(g[2]):0;b=Selector.pseudos.getIndices(i,g,a.length);i=0;for(d=b.length;g=a[i];i++)for(e=0;e<
d;e++)g.nodeIndex==b[e]&&f.push(g)}c.unmark(a);c.unmark(h);return f},empty:function(a){for(var b=0,c=[],d;d=a[b];b++)d.tagName=="!"||d.firstChild||c.push(d);return c},not:function(a,b,c){var d=Selector.handlers;b=(new Selector(b)).findElements(c);d.mark(b);c=0;for(var e=[],f;f=a[c];c++)f._countedByPrototype||e.push(f);d.unmark(b);return e},enabled:function(a){for(var b=0,c=[],d;d=a[b];b++)if(!d.disabled&&(!d.type||d.type!=="hidden"))c.push(d);return c},disabled:function(a){for(var b=0,c=[],d;d=a[b];b++)d.disabled&&
c.push(d);return c},checked:function(a){for(var b=0,c=[],d;d=a[b];b++)d.checked&&c.push(d);return c}},operators:{"=":function(a,b){return a==b},"!=":function(a,b){return a!=b},"^=":function(a,b){return a==b||a&&a.startsWith(b)},"$=":function(a,b){return a==b||a&&a.endsWith(b)},"*=":function(a,b){return a==b||a&&a.include(b)},"~=":function(a,b){return(" "+a+" ").include(" "+b+" ")},"|=":function(a,b){return("-"+(a||"").toUpperCase()+"-").include("-"+(b||"").toUpperCase()+"-")}},split:function(a){var b=
[];a.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/,function(c){b.push(c[1].strip())});return b},matchElements:function(a,b){var c=$$(b),d=Selector.handlers;d.mark(c);for(var e=0,f=[],h;h=a[e];e++)h._countedByPrototype&&f.push(h);d.unmark(c);return f},findElement:function(a,b,c){if(Object.isNumber(b)){c=b;b=false}return Selector.matchElements(a,b||"*")[c||0]},findChildElements:function(a,b){b=Selector.split(b.join(","));for(var c=[],d=Selector.handlers,e=0,f=b.length,h;e<f;e++){h=new Selector(b[e].strip());
d.concat(c,h.findElements(a))}return f>1?d.unique(c):c}});Prototype.Browser.IE&&Object.extend(Selector.handlers,{concat:function(a,b){for(var c=0,d;d=b[c];c++)d.tagName!=="!"&&a.push(d);return a}});function $$(){return Selector.findChildElements(document,$A(arguments))}
var Form={reset:function(a){a=$(a);a.reset();return a},serializeElements:function(a,b){if(typeof b!="object")b={hash:!!b};else if(Object.isUndefined(b.hash))b.hash=true;var c,d,e=false,f=b.submit,h=a.inject({},function(g,i){if(!i.disabled&&i.name){c=i.name;d=$(i).getValue();if(d!=null&&i.type!="file"&&(i.type!="submit"||!e&&f!==false&&(!f||c==f)&&(e=true)))if(c in g){Object.isArray(g[c])||(g[c]=[g[c]]);g[c].push(d)}else g[c]=d}return g});return b.hash?h:Object.toQueryString(h)}};
Form.Methods={serialize:function(a,b){return Form.serializeElements(Form.getElements(a),b)},getElements:function(a){a=$(a).getElementsByTagName("*");for(var b,c=[],d=Form.Element.Serializers,e=0;b=a[e];e++)c.push(b);return c.inject([],function(f,h){d[h.tagName.toLowerCase()]&&f.push(Element.extend(h));return f})},getInputs:function(a,b,c){a=$(a);a=a.getElementsByTagName("input");if(!b&&!c)return $A(a).map(Element.extend);for(var d=0,e=[],f=a.length;d<f;d++){var h=a[d];b&&h.type!=b||c&&h.name!=c||
e.push(Element.extend(h))}return e},disable:function(a){a=$(a);Form.getElements(a).invoke("disable");return a},enable:function(a){a=$(a);Form.getElements(a).invoke("enable");return a},findFirstElement:function(a){a=$(a).getElements().findAll(function(c){return"hidden"!=c.type&&!c.disabled});var b=a.findAll(function(c){return c.hasAttribute("tabIndex")&&c.tabIndex>=0}).sortBy(function(c){return c.tabIndex}).first();return b?b:a.find(function(c){return/^(?:input|select|textarea)$/i.test(c.tagName)})},
focusFirstElement:function(a){a=$(a);a.findFirstElement().activate();return a},request:function(a,b){a=$(a);b=Object.clone(b||{});var c=b.parameters,d=a.readAttribute("action")||"";if(d.blank())d=window.location.href;b.parameters=a.serialize(true);if(c){if(Object.isString(c))c=c.toQueryParams();Object.extend(b.parameters,c)}if(a.hasAttribute("method")&&!b.method)b.method=a.method;return new Ajax.Request(d,b)}};
Form.Element={focus:function(a){$(a).focus();return a},select:function(a){$(a).select();return a}};
Form.Element.Methods={serialize:function(a){a=$(a);if(!a.disabled&&a.name){var b=a.getValue();if(b!=undefined){var c={};c[a.name]=b;return Object.toQueryString(c)}}return""},getValue:function(a){a=$(a);var b=a.tagName.toLowerCase();return Form.Element.Serializers[b](a)},setValue:function(a,b){a=$(a);var c=a.tagName.toLowerCase();Form.Element.Serializers[c](a,b);return a},clear:function(a){$(a).value="";return a},present:function(a){return $(a).value!=""},activate:function(a){a=$(a);try{a.focus();
if(a.select&&(a.tagName.toLowerCase()!="input"||!/^(?:button|reset|submit)$/i.test(a.type)))a.select()}catch(b){}return a},disable:function(a){a=$(a);a.disabled=true;return a},enable:function(a){a=$(a);a.disabled=false;return a}};var Field=Form.Element,$F=Form.Element.Methods.getValue;
Form.Element.Serializers={input:function(a,b){switch(a.type.toLowerCase()){case "checkbox":case "radio":return Form.Element.Serializers.inputSelector(a,b);default:return Form.Element.Serializers.textarea(a,b)}},inputSelector:function(a,b){if(Object.isUndefined(b))return a.checked?a.value:null;else a.checked=!!b},textarea:function(a,b){if(Object.isUndefined(b))return a.value;else a.value=b},select:function(a,b){if(Object.isUndefined(b))return this[a.type=="select-one"?"selectOne":"selectMany"](a);
else for(var c,d,e=!Object.isArray(b),f=0,h=a.length;f<h;f++){c=a.options[f];d=this.optionValue(c);if(e){if(d==b){c.selected=true;return}}else c.selected=b.include(d)}},selectOne:function(a){var b=a.selectedIndex;return b>=0?this.optionValue(a.options[b]):null},selectMany:function(a){var b,c=a.length;if(!c)return null;var d=0;for(b=[];d<c;d++){var e=a.options[d];e.selected&&b.push(this.optionValue(e))}return b},optionValue:function(a){return Element.extend(a).hasAttribute("value")?a.value:a.text}};
Abstract.TimedObserver=Class.create(PeriodicalExecuter,{initialize:function($super,b,c,d){$super(d,c);this.element=$(b);this.lastValue=this.getValue()},execute:function(){var a=this.getValue();if(Object.isString(this.lastValue)&&Object.isString(a)?this.lastValue!=a:String(this.lastValue)!=String(a)){this.callback(this.element,a);this.lastValue=a}}});Form.Element.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.Element.getValue(this.element)}});
Form.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.serialize(this.element)}});
Abstract.EventObserver=Class.create({initialize:function(a,b){this.element=$(a);this.callback=b;this.lastValue=this.getValue();this.element.tagName.toLowerCase()=="form"?this.registerFormCallbacks():this.registerCallback(this.element)},onElementEvent:function(){var a=this.getValue();if(this.lastValue!=a){this.callback(this.element,a);this.lastValue=a}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback,this)},registerCallback:function(a){if(a.type)switch(a.type.toLowerCase()){case "checkbox":case "radio":Event.observe(a,
"click",this.onElementEvent.bind(this));break;default:Event.observe(a,"change",this.onElementEvent.bind(this));break}}});Form.Element.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.Element.getValue(this.element)}});Form.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.serialize(this.element)}});
(function(){function a(k){var m=document.documentElement,o=document.body||{scrollLeft:0};return k.pageX||k.clientX+(m.scrollLeft||o.scrollLeft)-(m.clientLeft||0)}function b(k){var m=document.documentElement,o=document.body||{scrollTop:0};return k.pageY||k.clientY+(m.scrollTop||o.scrollTop)-(m.clientTop||0)}function c(k,m,o){var r=Element.retrieve(k,"prototype_event_registry");if(Object.isUndefined(r)){v.push(k);r=Element.retrieve(k,"prototype_event_registry",$H())}var p=r.get(m);if(Object.isUndefined(p)){p=
[];r.set(m,p)}if(p.pluck("handler").include(o))return false;var s;if(m.include(":"))s=function(t){if(Object.isUndefined(t.eventName))return false;if(t.eventName!==m)return false;g.extend(t,k);o.call(k,t)};else if(!j&&(m==="mouseenter"||m==="mouseleave")){if(m==="mouseenter"||m==="mouseleave")s=function(t){g.extend(t,k);for(var u=t.relatedTarget;u&&u!==k;)try{u=u.parentNode}catch(y){u=k}u!==k&&o.call(k,t)}}else s=function(t){g.extend(t,k);o.call(k,t)};s.handler=o;p.push(s);return s}function d(){for(var k=
0,m=v.length;k<m;k++){g.stopObserving(v[k]);v[k]=null}}function e(k,m,o){k=$(k);o=c(k,m,o);if(!o)return k;if(m.include(":"))if(k.addEventListener)k.addEventListener("dataavailable",o,false);else{k.attachEvent("ondataavailable",o);k.attachEvent("onfilterchange",o)}else{m=x(m);k.addEventListener?k.addEventListener(m,o,false):k.attachEvent("on"+m,o)}return k}function f(k,m,o){k=$(k);var r=Element.retrieve(k,"prototype_event_registry");if(Object.isUndefined(r))return k;if(m&&!o){var p=r.get(m);if(Object.isUndefined(p))return k;
p.each(function(u){Element.stopObserving(k,m,u.handler)});return k}else if(!m){r.each(function(u){var y=u.key;u.value.each(function(z){Element.stopObserving(k,y,z.handler)})});return k}if(p=r.get(m)){var s=p.find(function(u){return u.handler===o});if(!s)return k;var t=x(m);if(m.include(":"))if(k.removeEventListener)k.removeEventListener("dataavailable",s,false);else{k.detachEvent("ondataavailable",s);k.detachEvent("onfilterchange",s)}else k.removeEventListener?k.removeEventListener(t,s,false):k.detachEvent("on"+
t,s);r.set(m,p.without(s));return k}}function h(k,m,o,r){k=$(k);if(Object.isUndefined(r))r=true;if(k==document&&document.createEvent&&!k.dispatchEvent)k=document.documentElement;var p;if(document.createEvent){p=document.createEvent("HTMLEvents");p.initEvent("dataavailable",true,true)}else{p=document.createEventObject();p.eventType=r?"ondataavailable":"onfilterchange"}p.eventName=m;p.memo=o||{};document.createEvent?k.dispatchEvent(p):k.fireEvent(p.eventType,p);return g.extend(p)}var g={KEY_BACKSPACE:8,
KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,KEY_INSERT:45,cache:{}},i=document.documentElement,j="onmouseenter"in i&&"onmouseleave"in i,l;if(Prototype.Browser.IE){var n={0:1,1:4,2:2};l=function(k,m){return k.button===n[m]}}else l=Prototype.Browser.WebKit?function(k,m){switch(m){case 0:return k.which==1&&!k.metaKey;case 1:return k.which==1&&k.metaKey;default:return false}}:function(k,m){return k.which?
k.which===m+1:k.button===m};g.Methods={isLeftClick:function(k){return l(k,0)},isMiddleClick:function(k){return l(k,1)},isRightClick:function(k){return l(k,2)},element:function(k){k=g.extend(k);var m=k.target,o=k.type;if((k=k.currentTarget)&&k.tagName)if(o==="load"||o==="error"||o==="click"&&k.tagName.toLowerCase()==="input"&&k.type==="radio")m=k;if(m.nodeType==Node.TEXT_NODE)m=m.parentNode;return Element.extend(m)},findElement:function(k,m){var o=g.element(k);if(!m)return o;o=[o].concat(o.ancestors());
return Selector.findElement(o,m,0)},pointer:function(k){return{x:a(k),y:b(k)}},pointerX:a,pointerY:b,stop:function(k){g.extend(k);k.preventDefault();k.stopPropagation();k.stopped=true}};var q=Object.keys(g.Methods).inject({},function(k,m){k[m]=g.Methods[m].methodize();return k});if(Prototype.Browser.IE){var w=function(k){switch(k.type){case "mouseover":k=k.fromElement;break;case "mouseout":k=k.toElement;break;default:return null}return Element.extend(k)};Object.extend(q,{stopPropagation:function(){this.cancelBubble=
true},preventDefault:function(){this.returnValue=false},inspect:function(){return"[object Event]"}});g.extend=function(k,m){if(!k)return false;if(k._extendedByPrototype)return k;k._extendedByPrototype=Prototype.emptyFunction;var o=g.pointer(k);Object.extend(k,{target:k.srcElement||m,relatedTarget:w(k),pageX:o.x,pageY:o.y});return Object.extend(k,q)}}else{g.prototype=window.Event.prototype||document.createEvent("HTMLEvents").__proto__;Object.extend(g.prototype,q);g.extend=Prototype.K}var v=[];Prototype.Browser.IE&&
window.attachEvent("onunload",d);Prototype.Browser.WebKit&&window.addEventListener("unload",Prototype.emptyFunction,false);var x=Prototype.K;j||(x=function(k){var m={mouseenter:"mouseover",mouseleave:"mouseout"};return k in m?m[k]:k});Object.extend(g,g.Methods);Object.extend(g,{fire:h,observe:e,stopObserving:f});Element.addMethods({fire:h,observe:e,stopObserving:f});Object.extend(document,{fire:h.methodize(),observe:e.methodize(),stopObserving:f.methodize(),loaded:false});if(window.Event)Object.extend(window.Event,
g);else window.Event=g})();
(function(){function a(){if(!document.loaded){d&&window.clearTimeout(d);document.loaded=true;document.fire("dom:loaded")}}function b(){if(document.readyState==="complete"){document.stopObserving("readystatechange",b);a()}}function c(){try{document.documentElement.doScroll("left")}catch(e){d=c.defer();return}a()}var d;if(document.addEventListener)document.addEventListener("DOMContentLoaded",a,false);else{document.observe("readystatechange",b);if(window==top)d=c.defer()}Event.observe(window,"load",
a)})();Element.addMethods();Hash.toQueryString=Object.toQueryString;var Toggle={display:Element.toggle};Element.Methods.childOf=Element.Methods.descendantOf;
var Insertion={Before:function(a,b){return Element.insert(a,{before:b})},Top:function(a,b){return Element.insert(a,{top:b})},Bottom:function(a,b){return Element.insert(a,{bottom:b})},After:function(a,b){return Element.insert(a,{after:b})}},$continue=Error('"throw $continue" is deprecated, use "return" instead'),Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||
document.body.scrollTop||0},within:function(a,b,c){if(this.includeScrollOffsets)return this.withinIncludingScrolloffsets(a,b,c);this.xcomp=b;this.ycomp=c;this.offset=Element.cumulativeOffset(a);return c>=this.offset[1]&&c<this.offset[1]+a.offsetHeight&&b>=this.offset[0]&&b<this.offset[0]+a.offsetWidth},withinIncludingScrolloffsets:function(a,b,c){var d=Element.cumulativeScrollOffset(a);this.xcomp=b+d[0]-this.deltaX;this.ycomp=c+d[1]-this.deltaY;this.offset=Element.cumulativeOffset(a);return this.ycomp>=
this.offset[1]&&this.ycomp<this.offset[1]+a.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+a.offsetWidth},overlap:function(a,b){if(!a)return 0;if(a=="vertical")return(this.offset[1]+b.offsetHeight-this.ycomp)/b.offsetHeight;if(a=="horizontal")return(this.offset[0]+b.offsetWidth-this.xcomp)/b.offsetWidth},cumulativeOffset:Element.Methods.cumulativeOffset,positionedOffset:Element.Methods.positionedOffset,absolutize:function(a){Position.prepare();return Element.absolutize(a)},relativize:function(a){Position.prepare();
return Element.relativize(a)},realOffset:Element.Methods.cumulativeScrollOffset,offsetParent:Element.Methods.getOffsetParent,page:Element.Methods.viewportOffset,clone:function(a,b,c){c=c||{};return Element.clonePosition(b,a,c)}};
if(!document.getElementsByClassName)document.getElementsByClassName=function(a){function b(c){return c.blank()?null:"[contains(concat(' ', @class, ' '), ' "+c+" ')]"}a.getElementsByClassName=Prototype.BrowserFeatures.XPath?function(c,d){d=d.toString().strip();var e=/\s/.test(d)?$w(d).map(b).join(""):b(d);return e?document._getElementsByXPath(".//*"+e,c):[]}:function(c,d){d=d.toString().strip();var e=[],f=/\s/.test(d)?$w(d):null;if(!f&&!d)return e;var h=$(c).getElementsByTagName("*");d=" "+d+" ";for(var g=
0,i,j;i=h[g];g++)if(i.className&&(j=" "+i.className+" ")&&(j.include(d)||f&&f.all(function(l){return!l.toString().blank()&&j.include(" "+l+" ")})))e.push(Element.extend(i));return e};return function(c,d){return $(d||document.body).getElementsByClassName(c)}}(Element.Methods);Element.ClassNames=Class.create();
Element.ClassNames.prototype={initialize:function(a){this.element=$(a)},_each:function(a){this.element.className.split(/\s+/).select(function(b){return b.length>0})._each(a)},set:function(a){this.element.className=a},add:function(a){this.include(a)||this.set($A(this).concat(a).join(" "))},remove:function(a){this.include(a)&&this.set($A(this).without(a).join(" "))},toString:function(){return $A(this).join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable);

(function(H,v){function Ga(a,b,d){if(d===v&&a.nodeType===1){d="data-"+b.replace(rb,"-$1").toLowerCase();d=a.getAttribute(d);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):sb.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=v}return d}function sa(a){for(var b in a)if(b!=="toJSON")return false;return true}function Ha(a,b,d){var e=b+"defer",f=b+"queue",g=b+"mark",i=c.data(a,e,v,true);if(i&&(d==="queue"||!c.data(a,f,v,true))&&(d==="mark"||
!c.data(a,g,v,true)))setTimeout(function(){if(!c.data(a,f,v,true)&&!c.data(a,g,v,true)){c.removeData(a,e,true);i.resolve()}},0)}function W(){return false}function ia(){return true}function Ia(a,b,d){var e=c.extend({},d[0]);e.type=a;e.originalEvent={};e.liveFired=v;c.event.handle.call(b,e);e.isDefaultPrevented()&&d[0].preventDefault()}function tb(a){var b,d,e,f,g,i,l,m,n,s,A,F=[];f=[];g=c._data(this,"events");if(!(a.liveFired===this||!g||!g.live||a.target.disabled||a.button&&a.type==="click")){if(a.namespace)A=
RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var G=g.live.slice(0);for(l=0;l<G.length;l++){g=G[l];g.origType.replace(ta,"")===a.type?f.push(g.selector):G.splice(l--,1)}f=c(a.target).closest(f,a.currentTarget);m=0;for(n=f.length;m<n;m++){s=f[m];for(l=0;l<G.length;l++){g=G[l];if(s.selector===g.selector&&(!A||A.test(g.namespace))&&!s.elem.disabled){i=s.elem;e=null;if(g.preType==="mouseenter"||g.preType==="mouseleave"){a.type=g.preType;if((e=c(a.relatedTarget).closest(g.selector)[0])&&
c.contains(i,e))e=i}if(!e||e!==i)F.push({elem:i,handleObj:g,level:s.level})}}}m=0;for(n=F.length;m<n;m++){f=F[m];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function ja(a,b){return(a&&a!=="*"?a+".":"")+b.replace(ub,"`").replace(vb,"&")}function Ja(a,b,d){b=b||0;if(c.isFunction(b))return c.grep(a,
function(f,g){return!!b.call(f,g,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(wb.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 Ka(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 g=e.events;f=f[d]=c.extend({},e);if(g){delete f.handle;f.events={};for(var i in g){d=
0;for(e=g[i].length;d<e;d++)c.event.add(b,i+(g[i][d].namespace?".":"")+g[i][d].namespace,g[i][d],g[i][d].data)}}}}}function La(a,b){var d;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);d=b.nodeName.toLowerCase();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 ka(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function Ma(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function Na(a){if(c.nodeName(a,"input"))Ma(a);else"getElementsByTagName"in a&&c.grep(a.getElementsByTagName("input"),Ma)}function xb(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval((b.text||
b.textContent||b.innerHTML||"").replace(yb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}function Oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight,f=b==="width"?zb:Ab;if(e>0){d!=="border"&&c.each(f,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,d+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e+"px"}e=ba(a,b,b);if(e<0||e==null)e=a.style[b]||0;e=parseFloat(e)||0;d&&c.each(f,function(){e+=parseFloat(c.css(a,"padding"+
this))||0;if(d!=="padding")e+=parseFloat(c.css(a,"border"+this+"Width"))||0;if(d==="margin")e+=parseFloat(c.css(a,d+this))||0});return e+"px"}function Pa(a){return function(b,d){if(typeof b!=="string"){d=b;b="*"}if(c.isFunction(d))for(var e=b.toLowerCase().split(Qa),f=0,g=e.length,i,l;f<g;f++){i=e[f];if(l=/^\+/.test(i))i=i.substr(1)||"*";i=a[i]=a[i]||[];i[l?"unshift":"push"](d)}}}function la(a,b,d,e,f,g){f=f||b.dataTypes[0];g=g||{};g[f]=true;f=a[f];for(var i=0,l=f?f.length:0,m=a===ua,n;i<l&&(m||!n);i++){n=
f[i](b,d,e);if(typeof n==="string")if(!m||g[n])n=v;else{b.dataTypes.unshift(n);n=la(a,b,d,e,n,g)}}if((m||!n)&&!g["*"])n=la(a,b,d,e,"*",g);return n}function Ra(a,b){var d,e,f=c.ajaxSettings.flatOptions||{};for(d in b)if(b[d]!==v)(f[d]?a:e||(e={}))[d]=b[d];e&&c.extend(true,a,e)}function va(a,b,d,e){if(c.isArray(b))c.each(b,function(g,i){d||Bb.test(a)?e(a,i):va(a+"["+(typeof i==="object"||c.isArray(i)?g:"")+"]",i,d,e)});else if(!d&&b!=null&&typeof b==="object")for(var f in b)va(a+"["+f+"]",b[f],d,e);
else e(a,b)}function Sa(){try{return new H.XMLHttpRequest}catch(a){}}function Ta(){setTimeout(Cb,0);return ma=c.now()}function Cb(){ma=v}function ca(a,b){var d={};c.each(Ua.concat.apply([],Ua.slice(0,b)),function(){d[this]=a});return d}function Va(a){if(!wa[a]){var b=y.body,d=c("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){if(!R){R=y.createElement("iframe");R.frameBorder=R.width=R.height=0}b.appendChild(R);if(!da||!R.createElement){da=(R.contentWindow||R.contentDocument).document;
da.write((y.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");da.close()}d=da.createElement(a);da.body.appendChild(d);e=c.css(d,"display");b.removeChild(R)}wa[a]=e}return wa[a]}function xa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var y=H.document,Db=H.navigator,Eb=H.location,c=function(){function a(){if(!b.isReady){try{y.documentElement.doScroll("left")}catch(k){setTimeout(a,1);return}b.ready()}}var b=function(k,t){return new b.fn.init(k,t,f)},d=H.jQuery,
e=H.$,f,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,i=/\S/,l=/^\s+/,m=/\s+$/,n=/\d/,s=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,A=/^[\],:{}\s]*$/,F=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,G=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,X=/(webkit)[ \/]([\w.]+)/,O=/(opera)(?:.*version)?[ \/]([\w.]+)/,N=/(msie) ([\w.]+)/,S=/(mozilla)(?:.*? rv:([\w.]+))?/,h=/-([a-z]|[0-9])/ig,j=/^-ms-/,p=function(k,t){return(t+"").toUpperCase()},q=Db.userAgent,o,r,u=Object.prototype.toString,
w=Object.prototype.hasOwnProperty,C=Array.prototype.push,P=Array.prototype.slice,M=String.prototype.trim,L=Array.prototype.indexOf,D={};b.fn=b.prototype={constructor:b,init:function(k,t,z){var x;if(!k)return this;if(k.nodeType){this.context=this[0]=k;this.length=1;return this}if(k==="body"&&!t&&y.body){this.context=y;this[0]=y.body;this.selector=k;this.length=1;return this}if(typeof k==="string")if((x=k.charAt(0)==="<"&&k.charAt(k.length-1)===">"&&k.length>=3?[null,k,null]:g.exec(k))&&(x[1]||!t))if(x[1]){z=
(t=t instanceof b?t[0]:t)?t.ownerDocument||t:y;if(k=s.exec(k))if(b.isPlainObject(t)){k=[y.createElement(k[1])];b.fn.attr.call(k,t,true)}else k=[z.createElement(k[1])];else{k=b.buildFragment([x[1]],[z]);k=(k.cacheable?b.clone(k.fragment):k.fragment).childNodes}return b.merge(this,k)}else{if((t=y.getElementById(x[2]))&&t.parentNode){if(t.id!==x[2])return z.find(k);this.length=1;this[0]=t}this.context=y;this.selector=k;return this}else return!t||t.jquery?(t||z).find(k):this.constructor(t).find(k);else if(b.isFunction(k))return z.ready(k);
if(k.selector!==v){this.selector=k.selector;this.context=k.context}return b.makeArray(k,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return P.call(this,0)},get:function(k){return k==null?this.toArray():k<0?this[this.length+k]:this[k]},pushStack:function(k,t,z){var x=this.constructor();b.isArray(k)?C.apply(x,k):b.merge(x,k);x.prevObject=this;x.context=this.context;if(t==="find")x.selector=this.selector+(this.selector?" ":"")+z;else if(t)x.selector=
this.selector+"."+t+"("+z+")";return x},each:function(k,t){return b.each(this,k,t)},ready:function(k){b.bindReady();o.done(k);return this},eq:function(k){return k===-1?this.slice(k):this.slice(k,+k+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(P.apply(this,arguments),"slice",P.call(arguments).join(","))},map:function(k){return this.pushStack(b.map(this,function(t,z){return k.call(t,z,t)}))},end:function(){return this.prevObject||
this.constructor(null)},push:C,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var k,t,z,x,B,E=arguments[0]||{},J=1,K=arguments.length,T=false;if(typeof E==="boolean"){T=E;E=arguments[1]||{};J=2}if(typeof E!=="object"&&!b.isFunction(E))E={};if(K===J){E=this;--J}for(;J<K;J++)if((k=arguments[J])!=null)for(t in k){z=E[t];x=k[t];if(E!==x)if(T&&x&&(b.isPlainObject(x)||(B=b.isArray(x)))){if(B){B=false;z=z&&b.isArray(z)?z:[]}else z=z&&b.isPlainObject(z)?z:{};E[t]=
b.extend(T,z,x)}else if(x!==v)E[t]=x}return E};b.extend({noConflict:function(k){if(H.$===b)H.$=e;if(k&&H.jQuery===b)H.jQuery=d;return b},isReady:false,readyWait:1,holdReady:function(k){if(k)b.readyWait++;else b.ready(true)},ready:function(k){if(k===true&&!--b.readyWait||k!==true&&!b.isReady){if(!y.body)return setTimeout(b.ready,1);b.isReady=true;if(!(k!==true&&--b.readyWait>0)){o.resolveWith(y,[b]);b.fn.trigger&&b(y).trigger("ready").unbind("ready")}}},bindReady:function(){if(!o){o=b._Deferred();
if(y.readyState==="complete")return setTimeout(b.ready,1);if(y.addEventListener){y.addEventListener("DOMContentLoaded",r,false);H.addEventListener("load",b.ready,false)}else if(y.attachEvent){y.attachEvent("onreadystatechange",r);H.attachEvent("onload",b.ready);var k=false;try{k=H.frameElement==null}catch(t){}y.documentElement.doScroll&&k&&a()}}},isFunction:function(k){return b.type(k)==="function"},isArray:Array.isArray||function(k){return b.type(k)==="array"},isWindow:function(k){return k&&typeof k===
"object"&&"setInterval"in k},isNaN:function(k){return k==null||!n.test(k)||isNaN(k)},type:function(k){return k==null?String(k):D[u.call(k)]||"object"},isPlainObject:function(k){if(!k||b.type(k)!=="object"||k.nodeType||b.isWindow(k))return false;try{if(k.constructor&&!w.call(k,"constructor")&&!w.call(k.constructor.prototype,"isPrototypeOf"))return false}catch(t){return false}var z;for(z in k);return z===v||w.call(k,z)},isEmptyObject:function(k){for(var t in k)return false;return true},error:function(k){throw k;
},parseJSON:function(k){if(typeof k!=="string"||!k)return null;k=b.trim(k);if(H.JSON&&H.JSON.parse)return H.JSON.parse(k);if(A.test(k.replace(F,"@").replace(G,"]").replace(I,"")))return(new Function("return "+k))();b.error("Invalid JSON: "+k)},parseXML:function(k){var t,z;try{if(H.DOMParser){z=new DOMParser;t=z.parseFromString(k,"text/xml")}else{t=new ActiveXObject("Microsoft.XMLDOM");t.async="false";t.loadXML(k)}}catch(x){t=v}if(!t||!t.documentElement||t.getElementsByTagName("parsererror").length)b.error("Invalid XML: "+
k);return t},noop:function(){},globalEval:function(k){if(k&&i.test(k))(H.execScript||function(t){H.eval.call(H,t)})(k)},camelCase:function(k){return k.replace(j,"ms-").replace(h,p)},nodeName:function(k,t){return k.nodeName&&k.nodeName.toUpperCase()===t.toUpperCase()},each:function(k,t,z){var x,B=0,E=k.length,J=E===v||b.isFunction(k);if(z)if(J)for(x in k){if(t.apply(k[x],z)===false)break}else for(;B<E;){if(t.apply(k[B++],z)===false)break}else if(J)for(x in k){if(t.call(k[x],x,k[x])===false)break}else for(;B<
E;)if(t.call(k[B],B,k[B++])===false)break;return k},trim:M?function(k){return k==null?"":M.call(k)}:function(k){return k==null?"":k.toString().replace(l,"").replace(m,"")},makeArray:function(k,t){var z=t||[];if(k!=null){var x=b.type(k);k.length==null||x==="string"||x==="function"||x==="regexp"||b.isWindow(k)?C.call(z,k):b.merge(z,k)}return z},inArray:function(k,t){if(!t)return-1;if(L)return L.call(t,k);for(var z=0,x=t.length;z<x;z++)if(t[z]===k)return z;return-1},merge:function(k,t){var z=k.length,
x=0;if(typeof t.length==="number")for(var B=t.length;x<B;x++)k[z++]=t[x];else for(;t[x]!==v;)k[z++]=t[x++];k.length=z;return k},grep:function(k,t,z){var x=[],B;z=!!z;for(var E=0,J=k.length;E<J;E++){B=!!t(k[E],E);z!==B&&x.push(k[E])}return x},map:function(k,t,z){var x,B,E=[],J=0,K=k.length;if(k instanceof b||K!==v&&typeof K==="number"&&(K>0&&k[0]&&k[K-1]||K===0||b.isArray(k)))for(;J<K;J++){x=t(k[J],J,z);if(x!=null)E[E.length]=x}else for(B in k){x=t(k[B],B,z);if(x!=null)E[E.length]=x}return E.concat.apply([],
E)},guid:1,proxy:function(k,t){if(typeof t==="string"){var z=k[t];t=k;k=z}if(!b.isFunction(k))return v;var x=P.call(arguments,2);z=function(){return k.apply(t,x.concat(P.call(arguments)))};z.guid=k.guid=k.guid||z.guid||b.guid++;return z},access:function(k,t,z,x,B,E){var J=k.length;if(typeof t==="object"){for(var K in t)b.access(k,K,t[K],x,B,z);return k}if(z!==v){x=!E&&x&&b.isFunction(z);for(K=0;K<J;K++)B(k[K],t,x?z.call(k[K],K,B(k[K],t)):z,E);return k}return J?B(k[0],t):v},now:function(){return(new Date).getTime()},
uaMatch:function(k){k=k.toLowerCase();k=X.exec(k)||O.exec(k)||N.exec(k)||k.indexOf("compatible")<0&&S.exec(k)||[];return{browser:k[1]||"",version:k[2]||"0"}},sub:function(){function k(z,x){return new k.fn.init(z,x)}b.extend(true,k,this);k.superclass=this;k.fn=k.prototype=this();k.fn.constructor=k;k.sub=this.sub;k.fn.init=function(z,x){if(x&&x instanceof b&&!(x instanceof k))x=k(x);return b.fn.init.call(this,z,x,t)};k.fn.init.prototype=k.fn;var t=k(y);return k},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),
function(k,t){D["[object "+t+"]"]=t.toLowerCase()});q=b.uaMatch(q);if(q.browser){b.browser[q.browser]=true;b.browser.version=q.version}if(b.browser.webkit)b.browser.safari=true;if(i.test("\u00a0")){l=/^[\s\xA0]+/;m=/[\s\xA0]+$/}f=b(y);if(y.addEventListener)r=function(){y.removeEventListener("DOMContentLoaded",r,false);b.ready()};else if(y.attachEvent)r=function(){if(y.readyState==="complete"){y.detachEvent("onreadystatechange",r);b.ready()}};return b}(),ya="done fail isResolved isRejected promise then always pipe".split(" "),
Wa=[].slice;c.extend({_Deferred:function(){var a=[],b,d,e,f={done:function(){if(!e){var g=arguments,i,l,m,n,s;if(b){s=b;b=0}i=0;for(l=g.length;i<l;i++){m=g[i];n=c.type(m);if(n==="array")f.done.apply(f,m);else n==="function"&&a.push(m)}s&&f.resolveWith(s[0],s[1])}return this},resolveWith:function(g,i){if(!e&&!b&&!d){i=i||[];d=1;try{for(;a[0];)a.shift().apply(g,i)}finally{b=[g,i];d=0}}return this},resolve:function(){f.resolveWith(this,arguments);return this},isResolved:function(){return!!(d||b)},cancel:function(){e=
1;a=[];return this}};return f},Deferred:function(a){var b=c._Deferred(),d=c._Deferred(),e;c.extend(b,{then:function(f,g){b.done(f).fail(g);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:d.done,rejectWith:d.resolveWith,reject:d.resolve,isRejected:d.isResolved,pipe:function(f,g){return c.Deferred(function(i){c.each({done:[f,"resolve"],fail:[g,"reject"]},function(l,m){var n=m[0],s=m[1],A;c.isFunction(n)?b[l](function(){(A=n.apply(this,arguments))&&c.isFunction(A.promise)?
A.promise().then(i.resolve,i.reject):i[s+"With"](this===b?i:this,[A])}):b[l](i[s])})}).promise()},promise:function(f){if(f==null){if(e)return e;e=f={}}for(var g=ya.length;g--;)f[ya[g]]=b[ya[g]];return f}});b.done(d.cancel).fail(b.cancel);delete b.cancel;a&&a.call(b,b);return b},when:function(a){function b(l){return function(m){d[l]=arguments.length>1?Wa.call(arguments,0):m;--g||i.resolveWith(i,Wa.call(d,0))}}var d=arguments,e=0,f=d.length,g=f,i=f<=1&&a&&c.isFunction(a.promise)?a:c.Deferred();if(f>
1){for(;e<f;e++)if(d[e]&&c.isFunction(d[e].promise))d[e].promise().then(b(e),i.reject);else--g;g||i.resolveWith(i,d)}else if(i!==a)i.resolveWith(i,f?[a]:[]);return i.promise()}});c.support=function(){var a=y.createElement("div"),b=y.documentElement,d,e,f,g,i,l;a.setAttribute("className","t");a.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";d=a.getElementsByTagName("*");e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};
f=y.createElement("select");g=f.appendChild(y.createElement("option"));d=a.getElementsByTagName("input")[0];i={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:d.value==="on",optSelected:g.selected,getSetAttribute:a.className!=="t",submitBubbles:true,
changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};d.checked=true;i.noCloneChecked=d.cloneNode(true).checked;f.disabled=true;i.optDisabled=!g.disabled;try{delete a.test}catch(m){i.deleteExpando=false}if(!a.addEventListener&&a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){i.noCloneEvent=false});a.cloneNode(true).fireEvent("onclick")}d=y.createElement("input");d.value="t";d.setAttribute("type",
"radio");i.radioValue=d.value==="t";d.setAttribute("checked","checked");a.appendChild(d);e=y.createDocumentFragment();e.appendChild(a.firstChild);i.checkClone=e.cloneNode(true).cloneNode(true).lastChild.checked;a.innerHTML="";a.style.width=a.style.paddingLeft="1px";f=y.getElementsByTagName("body")[0];e=y.createElement(f?"div":"body");g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};f&&c.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(l in g)e.style[l]=
g[l];e.appendChild(a);b=f||b;b.insertBefore(e,b.firstChild);i.appendChecked=d.checked;i.boxModel=a.offsetWidth===2;if("zoom"in a.style){a.style.display="inline";a.style.zoom=1;i.inlineBlockNeedsLayout=a.offsetWidth===2;a.style.display="";a.innerHTML="<div style='width:4px;'></div>";i.shrinkWrapBlocks=a.offsetWidth!==2}a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";f=a.getElementsByTagName("td");d=f[0].offsetHeight===0;f[0].style.display="";f[1].style.display=
"none";i.reliableHiddenOffsets=d&&f[0].offsetHeight===0;a.innerHTML="";if(y.defaultView&&y.defaultView.getComputedStyle){d=y.createElement("div");d.style.width="0";d.style.marginRight="0";a.appendChild(d);i.reliableMarginRight=(parseInt((y.defaultView.getComputedStyle(d,null)||{marginRight:0}).marginRight,10)||0)===0}e.innerHTML="";b.removeChild(e);if(a.attachEvent)for(l in{submit:1,change:1,focusin:1}){b="on"+l;d=b in a;if(!d){a.setAttribute(b,"return;");d=typeof a[b]==="function"}i[l+"Bubbles"]=
d}e=e=f=g=f=d=a=d=null;return i}();c.boxModel=c.support.boxModel;var sb=/^(?:\{.*\}|\[.*\])$/,rb=/([A-Z])/g;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&&!sa(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f=c.expando,g=typeof b==="string",i=a.nodeType,l=i?c.cache:a,m=i?a[c.expando]:a[c.expando]&&
c.expando;if(!((!m||e&&m&&l[m]&&!l[m][f])&&g&&d===v)){if(!m)if(i)a[c.expando]=m=++c.uuid;else m=c.expando;if(!l[m]){l[m]={};if(!i)l[m].toJSON=c.noop}if(typeof b==="object"||typeof b==="function")if(e)l[m][f]=c.extend(l[m][f],b);else l[m]=c.extend(l[m],b);a=l[m];if(e){a[f]||(a[f]={});a=a[f]}if(d!==v)a[c.camelCase(b)]=d;if(b==="events"&&!a[b])return a[f]&&a[f].events;if(g){d=a[b];if(d==null)d=a[c.camelCase(b)]}else d=a;return d}}},removeData:function(a,b,d){if(c.acceptData(a)){var e,f=c.expando,g=a.nodeType,
i=g?c.cache:a,l=g?a[c.expando]:c.expando;if(i[l]){if(b)if(e=d?i[l][f]:i[l]){e[b]||(b=c.camelCase(b));delete e[b];if(!sa(e))return}if(d){delete i[l][f];if(!sa(i[l]))return}b=i[l][f];if(c.support.deleteExpando||!i.setInterval)delete i[l];else i[l]=null;if(b){i[l]={};if(!g)i[l].toJSON=c.noop;i[l][f]=b}else if(g)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,g=0,i=e.length;g<i;g++){f=e[g].name;if(f.indexOf("data-")===0){f=c.camelCase(f.substring(5));Ga(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,a)});var l=a.split(".");l[1]=l[1]?"."+l[1]:"";if(b===
v){d=this.triggerHandler("getData"+l[1]+"!",[l[0]]);if(d===v&&this.length){d=c.data(this[0],a);d=Ga(this[0],a,d)}return d===v&&l[1]?this.data(l[0]):d}else return this.each(function(){var m=c(this),n=[l[0],b];m.triggerHandler("setData"+l[1]+"!",n);c.data(this,a,b);m.triggerHandler("changeData"+l[1]+"!",n)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({_mark:function(a,b){if(a){b=(b||"fx")+"mark";c.data(a,b,(c.data(a,b,v,true)||0)+1,true)}},_unmark:function(a,
b,d){if(a!==true){d=b;b=a;a=false}if(b){d=d||"fx";var e=d+"mark";if(a=a?0:(c.data(b,e,v,true)||1)-1)c.data(b,e,a,true);else{c.removeData(b,e,true);Ha(b,d,"mark")}}},queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=c.data(a,b,v,true);if(d)if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d),true);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)})}if(!d.length){c.removeData(a,
b+"queue",true);Ha(a,b,"queue")}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===v)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",
[])},promise:function(a,b){function d(){--i||e.resolveWith(f,[f])}if(typeof a!=="string"){b=a;a=v}a=a||"fx";for(var e=c.Deferred(),f=this,g=f.length,i=1,l=a+"defer",m=a+"queue",n=a+"mark",s;g--;)if(s=c.data(f[g],l,v,true)||(c.data(f[g],m,v,true)||c.data(f[g],n,v,true))&&c.data(f[g],l,c._Deferred(),true)){i++;s.done(d)}d();return e.promise()}});var Xa=/[\n\t\r]/g,za=/\s+/,Fb=/\r/g,Gb=/^(?:button|input)$/i,Hb=/^(?:button|input|object|select|textarea)$/i,Ib=/^a(?:rea)?$/i,Ya=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
Y,Za;c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.removeAttr(this,a)})},prop:function(a,b){return c.access(this,a,b,true,c.prop)},removeProp:function(a){a=c.propFix[a]||a;return this.each(function(){try{this[a]=v;delete this[a]}catch(b){}})},addClass:function(a){var b,d,e,f,g,i,l;if(c.isFunction(a))return this.each(function(m){c(this).addClass(a.call(this,m,this.className))});if(a&&typeof a==="string"){b=a.split(za);d=
0;for(e=this.length;d<e;d++){f=this[d];if(f.nodeType===1)if(!f.className&&b.length===1)f.className=a;else{g=" "+f.className+" ";i=0;for(l=b.length;i<l;i++)~g.indexOf(" "+b[i]+" ")||(g+=b[i]+" ");f.className=c.trim(g)}}}return this},removeClass:function(a){var b,d,e,f,g,i,l;if(c.isFunction(a))return this.each(function(m){c(this).removeClass(a.call(this,m,this.className))});if(a&&typeof a==="string"||a===v){b=(a||"").split(za);d=0;for(e=this.length;d<e;d++){f=this[d];if(f.nodeType===1&&f.className)if(a){g=
(" "+f.className+" ").replace(Xa," ");i=0;for(l=b.length;i<l;i++)g=g.replace(" "+b[i]+" "," ");f.className=c.trim(g)}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){c(this).toggleClass(a.call(this,f,this.className,b),b)});return this.each(function(){if(d==="string")for(var f,g=0,i=c(this),l=b,m=a.split(za);f=m[g++];){l=e?l:!i.hasClass(f);i[l?"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].nodeType===1&&(" "+this[b].className+" ").replace(Xa," ").indexOf(a)>-1)return true;return false},val:function(a){var b,d,e=this[0];if(!arguments.length){if(e){if((b=c.valHooks[e.nodeName.toLowerCase()]||c.valHooks[e.type])&&"get"in b&&(d=b.get(e,"value"))!==v)return d;d=e.value;return typeof d===
"string"?d.replace(Fb,""):d==null?"":d}return v}var f=c.isFunction(a);return this.each(function(g){var i=c(this);if(this.nodeType===1){g=f?a.call(this,g,i.val()):a;if(g==null)g="";else if(typeof g==="number")g+="";else if(c.isArray(g))g=c.map(g,function(l){return l==null?"":l+""});b=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type];if(!b||!("set"in b)||b.set(this,g,"value")===v)this.value=g}})}});c.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?
a.value:a.text}},select:{get:function(a){var b,d=a.selectedIndex,e=[],f=a.options;a=a.type==="select-one";if(d<0)return null;for(var g=a?d:0,i=a?d+1:f.length;g<i;g++){b=f[g];if(b.selected&&(c.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!c.nodeName(b.parentNode,"optgroup"))){b=c(b).val();if(a)return b;e.push(b)}}if(a&&!e.length&&f.length)return c(f[d]).val();return e},set:function(a,b){var d=c.makeArray(b);c(a).find("option").each(function(){this.selected=
c.inArray(c(this).val(),d)>=0});if(!d.length)a.selectedIndex=-1;return d}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(a,b,d,e){var f=a.nodeType;if(!a||f===3||f===8||f===2)return v;if(e&&b in c.attrFn)return c(a)[b](d);if(!("getAttribute"in a))return c.prop(a,b,d);var g,i;if(e=f!==1||!c.isXMLDoc(a)){b=c.attrFix[b]||b;i=c.attrHooks[b];if(!i)if(Ya.test(b))i=Za;else if(Y)i=Y}if(d!==v)if(d===null){c.removeAttr(a,
b);return v}else if(i&&"set"in i&&e&&(g=i.set(a,d,b))!==v)return g;else{a.setAttribute(b,""+d);return d}else if(i&&"get"in i&&e&&(g=i.get(a,b))!==null)return g;else{g=a.getAttribute(b);return g===null?v:g}},removeAttr:function(a,b){var d;if(a.nodeType===1){b=c.attrFix[b]||b;c.attr(a,b,"");a.removeAttribute(b);if(Ya.test(b)&&(d=c.propFix[b]||b)in a)a[d]=false}},attrHooks:{type:{set:function(a,b){if(Gb.test(a.nodeName)&&a.parentNode)c.error("type property can't be changed");else if(!c.support.radioValue&&
b==="radio"&&c.nodeName(a,"input")){var d=a.value;a.setAttribute("type",b);if(d)a.value=d;return b}}},value:{get:function(a,b){if(Y&&c.nodeName(a,"button"))return Y.get(a,b);return b in a?a.value:null},set:function(a,b,d){if(Y&&c.nodeName(a,"button"))return Y.set(a,b,d);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",
contenteditable:"contentEditable"},prop:function(a,b,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return v;var f,g;if(e!==1||!c.isXMLDoc(a)){b=c.propFix[b]||b;g=c.propHooks[b]}return d!==v?g&&"set"in g&&(f=g.set(a,d,b))!==v?f:a[b]=d:g&&"get"in g&&(f=g.get(a,b))!==null?f:a[b]},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):Hb.test(a.nodeName)||Ib.test(a.nodeName)&&a.href?0:v}}}});c.attrHooks.tabIndex=c.propHooks.tabIndex;Za={get:function(a,
b){var d;return c.prop(a,b)===true||(d=a.getAttributeNode(b))&&d.nodeValue!==false?b.toLowerCase():v},set:function(a,b,d){if(b===false)c.removeAttr(a,d);else{b=c.propFix[d]||d;if(b in a)a[b]=true;a.setAttribute(d,d.toLowerCase())}return d}};if(!c.support.getSetAttribute){Y=c.valHooks.button={get:function(a,b){var d;return(d=a.getAttributeNode(b))&&d.nodeValue!==""?d.nodeValue:v},set:function(a,b,d){var e=a.getAttributeNode(d);if(!e){e=y.createAttribute(d);a.setAttributeNode(e)}return e.nodeValue=
b+""}};c.each(["width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{set:function(d,e){if(e===""){d.setAttribute(b,"auto");return e}}})})}c.support.hrefNormalized||c.each(["href","src","width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{get:function(d){d=d.getAttribute(b,2);return d===null?v:d}})});if(!c.support.style)c.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||v},set:function(a,b){return a.style.cssText=""+b}};if(!c.support.optSelected)c.propHooks.selected=
c.extend(c.propHooks.selected,{get:function(){return null}});c.support.checkOn||c.each(["radio","checkbox"],function(){c.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});c.each(["radio","checkbox"],function(){c.valHooks[this]=c.extend(c.valHooks[this],{set:function(a,b){if(c.isArray(b))return a.checked=c.inArray(c(a).val(),b)>=0}})});var ta=/\.(.*)$/,Aa=/^(?:textarea|input|select)$/i,ub=/\./g,vb=/ /g,Jb=/[^\w\s.|`]/g,Kb=function(a){return a.replace(Jb,"\\$&")};
c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=W;else if(!d)return;var f,g;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(g=c._data(a)){var i=g.events,l=g.handle;if(!i)g.events=i={};if(!l)g.handle=l=function(G){return typeof c!=="undefined"&&(!G||c.event.triggered!==G.type)?c.event.handle.apply(l.elem,arguments):v};l.elem=a;b=b.split(" ");for(var m,n=0,s;m=b[n++];){g=f?c.extend({},f):{handler:d,data:e};if(m.indexOf(".")>-1){s=m.split(".");m=s.shift();
g.namespace=s.slice(0).sort().join(".")}else{s=[];g.namespace=""}g.type=m;if(!g.guid)g.guid=d.guid;var A=i[m],F=c.event.special[m]||{};if(!A){A=i[m]=[];if(!F.setup||F.setup.call(a,e,s,l)===false)if(a.addEventListener)a.addEventListener(m,l,false);else a.attachEvent&&a.attachEvent("on"+m,l)}if(F.add){F.add.call(a,g);if(!g.handler.guid)g.handler.guid=d.guid}A.push(g);c.event.global[m]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=W;var f,g,i=
0,l,m,n,s,A,F,G=c.hasData(a)&&c._data(a),I=G&&G.events;if(G&&I){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[i++];){s=f;l=f.indexOf(".")<0;m=[];if(!l){m=f.split(".");f=m.shift();n=RegExp("(^|\\.)"+c.map(m.slice(0).sort(),Kb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){s=c.event.special[f]||{};for(g=e||0;g<A.length;g++){F=A[g];if(d.guid===F.guid){if(l||n.test(F.namespace)){e==null&&A.splice(g--,
1);s.remove&&s.remove.call(a,F)}if(e!=null)break}}if(A.length===0||e!=null&&A.length===1){if(!s.teardown||s.teardown.call(a,m)===false)c.removeEvent(a,f,G.handle);delete I[f]}}else for(g=0;g<A.length;g++){F=A[g];if(l||n.test(F.namespace)){c.event.remove(a,s,F.handler,g);A.splice(g--,1)}}}if(c.isEmptyObject(I)){if(b=G.handle)b.elem=null;delete G.events;delete G.handle;c.isEmptyObject(G)&&c.removeData(a,v,true)}}}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(a,b,d,e){var f=
a.type||a,g=[],i;if(f.indexOf("!")>=0){f=f.slice(0,-1);i=true}if(f.indexOf(".")>=0){g=f.split(".");f=g.shift();g.sort()}if(!((!d||c.event.customEvent[f])&&!c.event.global[f])){a=typeof a==="object"?a[c.expando]?a:new c.Event(f,a):new c.Event(f);a.type=f;a.exclusive=i;a.namespace=g.join(".");a.namespace_re=RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)");if(e||!d){a.preventDefault();a.stopPropagation()}if(d){if(!(d.nodeType===3||d.nodeType===8)){a.result=v;a.target=d;b=b!=null?c.makeArray(b):[];
b.unshift(a);g=d;e=f.indexOf(":")<0?"on"+f:"";do{i=c._data(g,"handle");a.currentTarget=g;i&&i.apply(g,b);if(e&&c.acceptData(g)&&g[e]&&g[e].apply(g,b)===false){a.result=false;a.preventDefault()}g=g.parentNode||g.ownerDocument||g===a.target.ownerDocument&&H}while(g&&!a.isPropagationStopped());if(!a.isDefaultPrevented()){var l;g=c.event.special[f]||{};if((!g._default||g._default.call(d.ownerDocument,a)===false)&&!(f==="click"&&c.nodeName(d,"a"))&&c.acceptData(d)){try{if(e&&d[f]){if(l=d[e])d[e]=null;
c.event.triggered=f;d[f]()}}catch(m){}if(l)d[e]=l;c.event.triggered=v}}return a.result}}else c.each(c.cache,function(){var n=this[c.expando];n&&n.events&&n.events[f]&&c.event.trigger(a,b,n.handle.elem)})}},handle:function(a){a=c.event.fix(a||H.event);var b=((c._data(this,"events")||{})[a.type]||[]).slice(0),d=!a.exclusive&&!a.namespace,e=Array.prototype.slice.call(arguments,0);e[0]=a;a.currentTarget=this;for(var f=0,g=b.length;f<g;f++){var i=b[f];if(d||a.namespace_re.test(i.namespace)){a.handler=
i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,e);if(i!==v){a.result=i;if(i===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||y;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){d=a.target.ownerDocument||y;b=d.documentElement;d=d.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!==v)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,ja(a.origType,a.selector),c.extend({},a,{handler:tb,guid:a.handler.guid}))},
remove:function(a){c.event.remove(this,ja(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=y.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,b){if(!this.preventDefault)return new c.Event(a,b);if(a&&a.type){this.originalEvent=a;this.type=
a.type;this.isDefaultPrevented=a.defaultPrevented||a.returnValue===false||a.getPreventDefault&&a.getPreventDefault()?ia:W}else this.type=a;b&&c.extend(this,b);this.timeStamp=c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ia;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ia;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=
true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ia;this.stopPropagation()},isDefaultPrevented:W,isPropagationStopped:W,isImmediatePropagationStopped:W};var $a=function(a){var b=a.relatedTarget,d=false,e=a.type;a.type=a.data;if(b!==this){if(b)d=c.contains(this,b);if(!d){c.event.handle.apply(this,arguments);a.type=e}}},ab=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?ab:$a,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?ab:$a)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(c.nodeName(this,"form"))return false;else{c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=c.nodeName(b,"input")||c.nodeName(b,"button")?b.type:"";if((d==="submit"||d==="image")&&c(b).closest("form").length)Ia("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=
a.target,d=c.nodeName(b,"input")||c.nodeName(b,"button")?b.type:"";if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)Ia("submit",this,arguments)})}},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var ha,bb=function(a){var b=c.nodeName(a,"input")?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(c.nodeName(a,
"select"))d=a.selectedIndex;return d},na=function(a,b){var d=a.target,e,f;if(!(!Aa.test(d.nodeName)||d.readOnly)){e=c._data(d,"_change_data");f=bb(d);if(a.type!=="focusout"||d.type!=="radio")c._data(d,"_change_data",f);if(!(e===v||f===e))if(e!=null||f){a.type="change";a.liveFired=v;c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:na,beforedeactivate:na,click:function(a){var b=a.target,d=c.nodeName(b,"input")?b.type:"";if(d==="radio"||d==="checkbox"||c.nodeName(b,"select"))na.call(this,
a)},keydown:function(a){var b=a.target,d=c.nodeName(b,"input")?b.type:"";if(a.keyCode===13&&!c.nodeName(b,"textarea")||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")na.call(this,a)},beforeactivate:function(a){a=a.target;c._data(a,"_change_data",bb(a))}},setup:function(){if(this.type==="file")return false;for(var a in ha)c.event.add(this,a+".specialChange",ha[a]);return Aa.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return Aa.test(this.nodeName)}};
ha=c.event.special.change.filters;ha.focus=ha.beforeactivate}c.support.focusinBubbles||c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){var g=c.event.fix(f);g.type=b;g.originalEvent={};c.event.trigger(g,null,g.target);g.isDefaultPrevented()&&f.preventDefault()}var e=0;c.event.special[b]={setup:function(){e++===0&&y.addEventListener(a,d,true)},teardown:function(){--e===0&&y.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){var g;if(typeof d===
"object"){for(var i in d)this[b](i,e,d[i],f);return this}if(arguments.length===2||e===false){f=e;e=v}if(b==="one"){g=function(m){c(this).unbind(m,g);return f.apply(this,arguments)};g.guid=f.guid||c.guid++}else g=f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{i=0;for(var l=this.length;i<l;i++)c.event.add(this[i],d,g,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])return c.event.trigger(a,b,this[0],true)},toggle:function(a){var b=arguments,d=a.guid||c.guid++,e=0,f=function(g){var i=(c.data(this,"lastToggle"+a.guid)||0)%e;c.data(this,"lastToggle"+a.guid,i+1);g.preventDefault();
return b[i].apply(this,arguments)||false};for(f.guid=d;e<b.length;)b[e++].guid=d;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ba={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,g){var i=0,l,m,n=g||this.selector,s=g?this:c(this.context);if(typeof d==="object"&&!d.preventDefault){for(l in d)s[b](l,e,d[l],n);return this}if(b==="die"&&!d&&g&&g.charAt(0)==="."){s.unbind(g);
return this}if(e===false||c.isFunction(e)){f=e||W;e=v}for(d=(d||"").split(" ");(g=d[i++])!=null;){l=ta.exec(g);m="";if(l){m=l[0];g=g.replace(ta,"")}if(g==="hover")d.push("mouseenter"+m,"mouseleave"+m);else{l=g;if(Ba[g]){d.push(Ba[g]+m);g+=m}else g=(Ba[g]||g)+m;if(b==="live"){m=0;for(var A=s.length;m<A;m++)c.event.add(s[m],"live."+ja(g,n),{data:e,selector:n,handler:f,origType:g,origHandler:f,preType:l})}else s.unbind("live."+ja(g,n),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(h,j,p,q,o,r){o=0;for(var u=q.length;o<u;o++){var w=q[o];if(w){var C=false;for(w=w[h];w;){if(w.sizcache===p){C=q[w.sizset];break}if(w.nodeType===1&&!r){w.sizcache=p;w.sizset=o}if(w.nodeName.toLowerCase()===j){C=w;break}w=w[h]}q[o]=C}}}function b(h,j,p,q,o,r){o=0;for(var u=q.length;o<u;o++){var w=q[o];if(w){var C=false;for(w=w[h];w;){if(w.sizcache===
p){C=q[w.sizset];break}if(w.nodeType===1){if(!r){w.sizcache=p;w.sizset=o}if(typeof j!=="string"){if(w===j){C=true;break}}else if(n.filter(j,[w]).length>0){C=w;break}}w=w[h]}q[o]=C}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=false,i=true,l=/\\/g,m=/\W/;[0,0].sort(function(){i=false;return 0});var n=function(h,j,p,q){p=p||[];var o=j=j||y;if(j.nodeType!==1&&j.nodeType!==
9)return[];if(!h||typeof h!=="string")return p;var r,u,w,C,P,M=true,L=n.isXML(j),D=[],k=h;do{d.exec("");if(r=d.exec(k)){k=r[3];D.push(r[1]);if(r[2]){C=r[3];break}}}while(r);if(D.length>1&&A.exec(h))if(D.length===2&&s.relative[D[0]])u=S(D[0]+D[1],j);else for(u=s.relative[D[0]]?[j]:n(D.shift(),j);D.length;){h=D.shift();if(s.relative[h])h+=D.shift();u=S(h,u)}else{if(!q&&D.length>1&&j.nodeType===9&&!L&&s.match.ID.test(D[0])&&!s.match.ID.test(D[D.length-1])){r=n.find(D.shift(),j,L);j=r.expr?n.filter(r.expr,
r.set)[0]:r.set[0]}if(j){r=q?{expr:D.pop(),set:I(q)}:n.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&j.parentNode?j.parentNode:j,L);u=r.expr?n.filter(r.expr,r.set):r.set;if(D.length>0)w=I(u);else M=false;for(;D.length;){r=P=D.pop();if(s.relative[P])r=D.pop();else P="";if(r==null)r=j;s.relative[P](w,r,L)}}else w=[]}w||(w=u);w||n.error(P||h);if(f.call(w)==="[object Array]")if(M)if(j&&j.nodeType===1)for(h=0;w[h]!=null;h++){if(w[h]&&(w[h]===true||w[h].nodeType===1&&n.contains(j,w[h])))p.push(u[h])}else for(h=
0;w[h]!=null;h++)w[h]&&w[h].nodeType===1&&p.push(u[h]);else p.push.apply(p,w);else I(w,p);if(C){n(C,o,p,q);n.uniqueSort(p)}return p};n.uniqueSort=function(h){if(O){g=i;h.sort(O);if(g)for(var j=1;j<h.length;j++)h[j]===h[j-1]&&h.splice(j--,1)}return h};n.matches=function(h,j){return n(h,null,null,j)};n.matchesSelector=function(h,j){return n(j,null,null,[h]).length>0};n.find=function(h,j,p){var q;if(!h)return[];for(var o=0,r=s.order.length;o<r;o++){var u,w=s.order[o];if(u=s.leftMatch[w].exec(h)){var C=
u[1];u.splice(1,1);if(C.substr(C.length-1)!=="\\"){u[1]=(u[1]||"").replace(l,"");q=s.find[w](u,j,p);if(q!=null){h=h.replace(s.match[w],"");break}}}}q||(q=typeof j.getElementsByTagName!=="undefined"?j.getElementsByTagName("*"):[]);return{set:q,expr:h}};n.filter=function(h,j,p,q){for(var o,r,u=h,w=[],C=j,P=j&&j[0]&&n.isXML(j[0]);h&&j.length;){for(var M in s.filter)if((o=s.leftMatch[M].exec(h))!=null&&o[2]){var L,D,k=s.filter[M];D=o[1];r=false;o.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(C===w)w=
[];if(s.preFilter[M])if(o=s.preFilter[M](o,C,p,w,q,P)){if(o===true)continue}else r=L=true;if(o)for(var t=0;(D=C[t])!=null;t++)if(D){L=k(D,o,t,C);var z=q^!!L;if(p&&L!=null)if(z)r=true;else C[t]=false;else if(z){w.push(D);r=true}}if(L!==v){p||(C=w);h=h.replace(s.match[M],"");if(!r)return[];break}}}if(h===u)if(r==null)n.error(h);else break;u=h}return C};n.error=function(h){throw"Syntax error, unrecognized expression: "+h;};var s=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(h){return h.getAttribute("href")},type:function(h){return h.getAttribute("type")}},relative:{"+":function(h,j){var p=typeof j==="string",q=p&&!m.test(j);p=p&&!q;if(q)j=j.toLowerCase();q=0;for(var o=h.length,r;q<o;q++)if(r=h[q]){for(;(r=r.previousSibling)&&r.nodeType!==1;);h[q]=p||r&&r.nodeName.toLowerCase()===j?r||false:r===j}p&&n.filter(j,h,true)},">":function(h,j){var p,q=typeof j==="string",o=0,r=h.length;if(q&&
!m.test(j))for(j=j.toLowerCase();o<r;o++){if(p=h[o]){p=p.parentNode;h[o]=p.nodeName.toLowerCase()===j?p:false}}else{for(;o<r;o++)if(p=h[o])h[o]=q?p.parentNode:p.parentNode===j;q&&n.filter(j,h,true)}},"":function(h,j,p){var q,o=e++,r=b;if(typeof j==="string"&&!m.test(j)){q=j=j.toLowerCase();r=a}r("parentNode",j,o,h,q,p)},"~":function(h,j,p){var q,o=e++,r=b;if(typeof j==="string"&&!m.test(j)){q=j=j.toLowerCase();r=a}r("previousSibling",j,o,h,q,p)}},find:{ID:function(h,j,p){if(typeof j.getElementById!==
"undefined"&&!p)return(h=j.getElementById(h[1]))&&h.parentNode?[h]:[]},NAME:function(h,j){if(typeof j.getElementsByName!=="undefined"){for(var p=[],q=j.getElementsByName(h[1]),o=0,r=q.length;o<r;o++)q[o].getAttribute("name")===h[1]&&p.push(q[o]);return p.length===0?null:p}},TAG:function(h,j){if(typeof j.getElementsByTagName!=="undefined")return j.getElementsByTagName(h[1])}},preFilter:{CLASS:function(h,j,p,q,o,r){h=" "+h[1].replace(l,"")+" ";if(r)return h;r=0;for(var u;(u=j[r])!=null;r++)if(u)if(o^
(u.className&&(" "+u.className+" ").replace(/[\t\n\r]/g," ").indexOf(h)>=0))p||q.push(u);else if(p)j[r]=false;return false},ID:function(h){return h[1].replace(l,"")},TAG:function(h){return h[1].replace(l,"").toLowerCase()},CHILD:function(h){if(h[1]==="nth"){h[2]||n.error(h[0]);h[2]=h[2].replace(/^\+|\s*/g,"");var j=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(h[2]==="even"&&"2n"||h[2]==="odd"&&"2n+1"||!/\D/.test(h[2])&&"0n+"+h[2]||h[2]);h[2]=j[1]+(j[2]||1)-0;h[3]=j[3]-0}else h[2]&&n.error(h[0]);h[0]=e++;return h},
ATTR:function(h,j,p,q,o,r){j=h[1]=h[1].replace(l,"");if(!r&&s.attrMap[j])h[1]=s.attrMap[j];h[4]=(h[4]||h[5]||"").replace(l,"");if(h[2]==="~=")h[4]=" "+h[4]+" ";return h},PSEUDO:function(h,j,p,q,o){if(h[1]==="not")if((d.exec(h[3])||"").length>1||/^\w/.test(h[3]))h[3]=n(h[3],null,null,j);else{h=n.filter(h[3],j,p,true^o);p||q.push.apply(q,h);return false}else if(s.match.POS.test(h[0])||s.match.CHILD.test(h[0]))return true;return h},POS:function(h){h.unshift(true);return h}},filters:{enabled:function(h){return h.disabled===
false&&h.type!=="hidden"},disabled:function(h){return h.disabled===true},checked:function(h){return h.checked===true},selected:function(h){return h.selected===true},parent:function(h){return!!h.firstChild},empty:function(h){return!h.firstChild},has:function(h,j,p){return!!n(p[3],h).length},header:function(h){return/h\d/i.test(h.nodeName)},text:function(h){var j=h.getAttribute("type"),p=h.type;return h.nodeName.toLowerCase()==="input"&&"text"===p&&(j===p||j===null)},radio:function(h){return h.nodeName.toLowerCase()===
"input"&&"radio"===h.type},checkbox:function(h){return h.nodeName.toLowerCase()==="input"&&"checkbox"===h.type},file:function(h){return h.nodeName.toLowerCase()==="input"&&"file"===h.type},password:function(h){return h.nodeName.toLowerCase()==="input"&&"password"===h.type},submit:function(h){var j=h.nodeName.toLowerCase();return(j==="input"||j==="button")&&"submit"===h.type},image:function(h){return h.nodeName.toLowerCase()==="input"&&"image"===h.type},reset:function(h){var j=h.nodeName.toLowerCase();
return(j==="input"||j==="button")&&"reset"===h.type},button:function(h){var j=h.nodeName.toLowerCase();return j==="input"&&"button"===h.type||j==="button"},input:function(h){return/input|select|textarea|button/i.test(h.nodeName)},focus:function(h){return h===h.ownerDocument.activeElement}},setFilters:{first:function(h,j){return j===0},last:function(h,j,p,q){return j===q.length-1},even:function(h,j){return j%2===0},odd:function(h,j){return j%2===1},lt:function(h,j,p){return j<p[3]-0},gt:function(h,
j,p){return j>p[3]-0},nth:function(h,j,p){return p[3]-0===j},eq:function(h,j,p){return p[3]-0===j}},filter:{PSEUDO:function(h,j,p,q){var o=j[1],r=s.filters[o];if(r)return r(h,p,j,q);else if(o==="contains")return(h.textContent||h.innerText||n.getText([h])||"").indexOf(j[3])>=0;else if(o==="not"){j=j[3];p=0;for(q=j.length;p<q;p++)if(j[p]===h)return false;return true}else n.error(o)},CHILD:function(h,j){var p=j[1],q=h;switch(p){case "only":case "first":for(;q=q.previousSibling;)if(q.nodeType===1)return false;
if(p==="first")return true;q=h;case "last":for(;q=q.nextSibling;)if(q.nodeType===1)return false;return true;case "nth":p=j[2];var o=j[3];if(p===1&&o===0)return true;var r=j[0],u=h.parentNode;if(u&&(u.sizcache!==r||!h.nodeIndex)){var w=0;for(q=u.firstChild;q;q=q.nextSibling)if(q.nodeType===1)q.nodeIndex=++w;u.sizcache=r}q=h.nodeIndex-o;return p===0?q===0:q%p===0&&q/p>=0}},ID:function(h,j){return h.nodeType===1&&h.getAttribute("id")===j},TAG:function(h,j){return j==="*"&&h.nodeType===1||h.nodeName.toLowerCase()===
j},CLASS:function(h,j){return(" "+(h.className||h.getAttribute("class"))+" ").indexOf(j)>-1},ATTR:function(h,j){var p=j[1];p=s.attrHandle[p]?s.attrHandle[p](h):h[p]!=null?h[p]:h.getAttribute(p);var q=p+"",o=j[2],r=j[4];return p==null?o==="!=":o==="="?q===r:o==="*="?q.indexOf(r)>=0:o==="~="?(" "+q+" ").indexOf(r)>=0:!r?q&&p!==false:o==="!="?q!==r:o==="^="?q.indexOf(r)===0:o==="$="?q.substr(q.length-r.length)===r:o==="|="?q===r||q.substr(0,r.length+1)===r+"-":false},POS:function(h,j,p,q){var o=s.setFilters[j[2]];
if(o)return o(h,p,j,q)}}},A=s.match.POS,F=function(h,j){return"\\"+(j-0+1)};for(var G in s.match){s.match[G]=RegExp(s.match[G].source+/(?![^\[]*\])(?![^\(]*\))/.source);s.leftMatch[G]=RegExp(/(^(?:.|\r|\n)*?)/.source+s.match[G].source.replace(/\\(\d+)/g,F))}var I=function(h,j){h=Array.prototype.slice.call(h,0);if(j){j.push.apply(j,h);return j}return h};try{Array.prototype.slice.call(y.documentElement.childNodes,0)}catch(X){I=function(h,j){var p=0,q=j||[];if(f.call(h)==="[object Array]")Array.prototype.push.apply(q,
h);else if(typeof h.length==="number")for(var o=h.length;p<o;p++)q.push(h[p]);else for(;h[p];p++)q.push(h[p]);return q}}var O,N;if(y.documentElement.compareDocumentPosition)O=function(h,j){if(h===j){g=true;return 0}if(!h.compareDocumentPosition||!j.compareDocumentPosition)return h.compareDocumentPosition?-1:1;return h.compareDocumentPosition(j)&4?-1:1};else{O=function(h,j){if(h===j){g=true;return 0}else if(h.sourceIndex&&j.sourceIndex)return h.sourceIndex-j.sourceIndex;var p,q,o=[],r=[];p=h.parentNode;
q=j.parentNode;var u=p;if(p===q)return N(h,j);else if(p){if(!q)return 1}else return-1;for(;u;){o.unshift(u);u=u.parentNode}for(u=q;u;){r.unshift(u);u=u.parentNode}p=o.length;q=r.length;for(u=0;u<p&&u<q;u++)if(o[u]!==r[u])return N(o[u],r[u]);return u===p?N(h,r[u],-1):N(o[u],j,1)};N=function(h,j,p){if(h===j)return p;for(h=h.nextSibling;h;){if(h===j)return-1;h=h.nextSibling}return 1}}n.getText=function(h){for(var j="",p,q=0;h[q];q++){p=h[q];if(p.nodeType===3||p.nodeType===4)j+=p.nodeValue;else if(p.nodeType!==
8)j+=n.getText(p.childNodes)}return j};(function(){var h=y.createElement("div"),j="script"+(new Date).getTime(),p=y.documentElement;h.innerHTML="<a name='"+j+"'/>";p.insertBefore(h,p.firstChild);if(y.getElementById(j)){s.find.ID=function(q,o,r){if(typeof o.getElementById!=="undefined"&&!r)return(o=o.getElementById(q[1]))?o.id===q[1]||typeof o.getAttributeNode!=="undefined"&&o.getAttributeNode("id").nodeValue===q[1]?[o]:v:[]};s.filter.ID=function(q,o){var r=typeof q.getAttributeNode!=="undefined"&&
q.getAttributeNode("id");return q.nodeType===1&&r&&r.nodeValue===o}}p.removeChild(h);p=h=null})();(function(){var h=y.createElement("div");h.appendChild(y.createComment(""));if(h.getElementsByTagName("*").length>0)s.find.TAG=function(j,p){var q=p.getElementsByTagName(j[1]);if(j[1]==="*"){for(var o=[],r=0;q[r];r++)q[r].nodeType===1&&o.push(q[r]);q=o}return q};h.innerHTML="<a href='#'></a>";if(h.firstChild&&typeof h.firstChild.getAttribute!=="undefined"&&h.firstChild.getAttribute("href")!=="#")s.attrHandle.href=
function(j){return j.getAttribute("href",2)};h=null})();y.querySelectorAll&&function(){var h=n,j=y.createElement("div");j.innerHTML="<p class='TEST'></p>";if(!(j.querySelectorAll&&j.querySelectorAll(".TEST").length===0)){n=function(q,o,r,u){o=o||y;if(!u&&!n.isXML(o)){var w=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(q);if(w&&(o.nodeType===1||o.nodeType===9))if(w[1])return I(o.getElementsByTagName(q),r);else if(w[2]&&s.find.CLASS&&o.getElementsByClassName)return I(o.getElementsByClassName(w[2]),r);if(o.nodeType===
9){if(q==="body"&&o.body)return I([o.body],r);else if(w&&w[3]){var C=o.getElementById(w[3]);if(C&&C.parentNode){if(C.id===w[3])return I([C],r)}else return I([],r)}try{return I(o.querySelectorAll(q),r)}catch(P){}}else if(o.nodeType===1&&o.nodeName.toLowerCase()!=="object"){w=o;var M=(C=o.getAttribute("id"))||"__sizzle__",L=o.parentNode,D=/^\s*[+~]/.test(q);if(C)M=M.replace(/'/g,"\\$&");else o.setAttribute("id",M);if(D&&L)o=o.parentNode;try{if(!D||L)return I(o.querySelectorAll("[id='"+M+"'] "+q),r)}catch(k){}finally{C||
w.removeAttribute("id")}}}return h(q,o,r,u)};for(var p in h)n[p]=h[p];j=null}}();(function(){var h=y.documentElement,j=h.matchesSelector||h.mozMatchesSelector||h.webkitMatchesSelector||h.msMatchesSelector;if(j){var p=!j.call(y.createElement("div"),"div"),q=false;try{j.call(y.documentElement,"[test!='']:sizzle")}catch(o){q=true}n.matchesSelector=function(r,u){u=u.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(r))try{if(q||!s.match.PSEUDO.test(u)&&!/!=/.test(u)){var w=j.call(r,u);if(w||!p||r.document&&
r.document.nodeType!==11)return w}}catch(C){}return n(u,null,null,[r]).length>0}}})();(function(){var h=y.createElement("div");h.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!h.getElementsByClassName||h.getElementsByClassName("e").length===0)){h.lastChild.className="e";if(h.getElementsByClassName("e").length!==1){s.order.splice(1,0,"CLASS");s.find.CLASS=function(j,p,q){if(typeof p.getElementsByClassName!=="undefined"&&!q)return p.getElementsByClassName(j[1])};h=null}}})();n.contains=
y.documentElement.contains?function(h,j){return h!==j&&(h.contains?h.contains(j):true)}:y.documentElement.compareDocumentPosition?function(h,j){return!!(h.compareDocumentPosition(j)&16)}:function(){return false};n.isXML=function(h){return(h=(h?h.ownerDocument||h:0).documentElement)?h.nodeName!=="HTML":false};var S=function(h,j){for(var p,q=[],o="",r=j.nodeType?[j]:j;p=s.match.PSEUDO.exec(h);){o+=p[0];h=h.replace(s.match.PSEUDO,"")}h=s.relative[h]?h+"*":h;p=0;for(var u=r.length;p<u;p++)n(h,r[p],q);
return n.filter(o,q)};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 Lb=/Until$/,Mb=/^(?:parents|prevUntil|prevAll)/,Nb=/,/,wb=/^.[^:#\[\.,]*$/,Ob=Array.prototype.slice,cb=c.expr.match.POS,Pb={children:true,contents:true,next:true,prev:true};c.fn.extend({find:function(a){var b=this,d,e;if(typeof a!=="string")return c(a).filter(function(){d=0;for(e=b.length;d<e;d++)if(c.contains(b[d],this))return true});
var f=this.pushStack("","find",a),g,i,l;d=0;for(e=this.length;d<e;d++){g=f.length;c.find(a,this[d],f);if(d>0)for(i=g;i<f.length;i++)for(l=0;l<g;l++)if(f[l]===f[i]){f.splice(i--,1);break}}return f},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(Ja(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ja(this,a,true),"filter",a)},is:function(a){return!!a&&(typeof a==="string"?
c.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var d=[],e,f,g=this[0];if(c.isArray(a)){var i,l={},m=1;if(g&&a.length){e=0;for(f=a.length;e<f;e++){i=a[e];l[i]||(l[i]=cb.test(i)?c(i,b||this.context):i)}for(;g&&g.ownerDocument&&g!==b;){for(i in l){e=l[i];if(e.jquery?e.index(g)>-1:c(g).is(e))d.push({selector:i,elem:g,level:m})}g=g.parentNode;m++}}return d}i=cb.test(a)||typeof a!=="string"?c(a,b||this.context):0;e=0;for(f=this.length;e<f;e++)for(g=this[e];g;)if(i?i.index(g)>
-1:c.find.matchesSelector(g,a)){d.push(g);break}else{g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a==="string")return c.inArray(this[0],c(a));return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b):c.makeArray(a&&a.nodeType?[a]: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),g=Ob.call(arguments);Lb.test(a)||
(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1&&!Pb[a]?c.unique(f):f;if((this.length>1||Nb.test(e))&&Mb.test(a))f=f.reverse();return this.pushStack(f,a,g.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===v||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 Qb=/ jQuery\d+="(?:\d+|null)"/g,Ca=/^\s+/,db=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,eb=/<([\w:]+)/,Rb=/<tbody/i,Sb=/<|&#?\w+;/,fb=/<(?:script|object|embed|option|style)/i,gb=/checked\s*(?:[^=]|=\s*.checked.)/i,Tb=/\/(java|ecma)script/i,yb=/^\s*<!(?:\[CDATA\[|\-\-)/,Q={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,"",""]};Q.optgroup=Q.option;Q.tbody=Q.tfoot=Q.colgroup=Q.caption=Q.thead;Q.th=Q.td;if(!c.support.htmlSerialize)Q._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!==v)return this.empty().append((this[0]&&this[0].ownerDocument||y).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===v)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Qb,""):null;else if(typeof a==="string"&&!fb.test(a)&&(c.support.leadingWhitespace||!Ca.test(a))&&!Q[(eb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(db,"<$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 g=c(this);g.html(a.call(this,f,g.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.length?
this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,g,i=a[0],l=[];if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&gb.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(s){var A=c(this);a[0]=i.call(this,s,b?A.html():v);A.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===
this.length?{fragment:e}:c.buildFragment(a,this,l);g=e.fragment;if(f=g.childNodes.length===1?g=g.firstChild:g.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var m=this.length,n=m-1;f<m;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||m>1&&f<n?c.clone(g,true,true):g)}l.length&&c.each(l,xb)}return this}});c.buildFragment=function(a,b,d){var e,f,g,i;if(b&&b[0])i=b[0].ownerDocument||
b[0];i.createDocumentFragment||(i=y);if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&i===y&&a[0].charAt(0)==="<"&&!fb.test(a[0])&&(c.support.checkClone||!gb.test(a[0]))){f=true;if((g=c.fragments[a[0]])&&g!==1)e=g}if(!e){e=i.createDocumentFragment();c.clean(a,i,e,d)}if(f)c.fragments[a[0]]=g?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 g=d.length;f<g;f++){var i=(f>0?this.clone(true):this).get();c(d[f])[b](i);e=e.concat(i)}return this.pushStack(e,a,d.selector)}}});c.extend({clone:function(a,b,d){var e=a.cloneNode(true),f,g,i;if((!c.support.noCloneEvent||!c.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!c.isXMLDoc(a)){La(a,e);f=ka(a);g=ka(e);for(i=0;f[i];++i)g[i]&&
La(f[i],g[i])}if(b){Ka(a,e);if(d){f=ka(a);g=ka(e);for(i=0;f[i];++i)Ka(f[i],g[i])}}return e},clean:function(a,b,d,e){b=b||y;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||y;for(var f=[],g,i=0,l;(l=a[i])!=null;i++){if(typeof l==="number")l+="";if(l){if(typeof l==="string")if(Sb.test(l)){l=l.replace(db,"<$1></$2>");g=(eb.exec(l)||["",""])[1].toLowerCase();var m=Q[g]||Q._default,n=m[0],s=b.createElement("div");for(s.innerHTML=m[1]+l+m[2];n--;)s=s.lastChild;if(!c.support.tbody){n=
Rb.test(l);m=g==="table"&&!n?s.firstChild&&s.firstChild.childNodes:m[1]==="<table>"&&!n?s.childNodes:[];for(g=m.length-1;g>=0;--g)c.nodeName(m[g],"tbody")&&!m[g].childNodes.length&&m[g].parentNode.removeChild(m[g])}!c.support.leadingWhitespace&&Ca.test(l)&&s.insertBefore(b.createTextNode(Ca.exec(l)[0]),s.firstChild);l=s.childNodes}else l=b.createTextNode(l);var A;if(!c.support.appendChecked)if(l[0]&&typeof(A=l.length)==="number")for(g=0;g<A;g++)Na(l[g]);else Na(l);if(l.nodeType)f.push(l);else f=c.merge(f,
l)}}if(d){a=function(F){return!F.type||Tb.test(F.type)};for(i=0;f[i];i++)if(e&&c.nodeName(f[i],"script")&&(!f[i].type||f[i].type.toLowerCase()==="text/javascript"))e.push(f[i].parentNode?f[i].parentNode.removeChild(f[i]):f[i]);else{if(f[i].nodeType===1){b=c.grep(f[i].getElementsByTagName("script"),a);f.splice.apply(f,[i+1,0].concat(b))}d.appendChild(f[i])}}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.expando,g=c.event.special,i=c.support.deleteExpando,l=0,m;(m=a[l])!=null;l++)if(!(m.nodeName&&
c.noData[m.nodeName.toLowerCase()]))if(d=m[c.expando]){if((b=e[d]&&e[d][f])&&b.events){for(var n in b.events)g[n]?c.event.remove(m,n):c.removeEvent(m,n,b.handle);if(b.handle)b.handle.elem=null}if(i)delete m[c.expando];else m.removeAttribute&&m.removeAttribute(c.expando);delete e[d]}}});var Da=/alpha\([^)]*\)/i,Ub=/opacity=([^)]*)/,Vb=/([A-Z]|^ms)/g,hb=/^-?\d+(?:px)?$/i,Wb=/^-?\d/,Xb=/^([\-+])=([\-+.\de]+)/,Yb={position:"absolute",visibility:"hidden",display:"block"},zb=["Left","Right"],Ab=["Top",
"Bottom"],ba,ib,jb;c.fn.css=function(a,b){if(arguments.length===2&&b===v)return this;return c.access(this,a,b,true,function(d,e,f){return f!==v?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=ba(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom: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,g=c.camelCase(b),i=a.style,l=c.cssHooks[g];b=c.cssProps[g]||g;if(d!==v){e=typeof d;if(e==="string"&&(f=Xb.exec(d))){d=+(f[1]+1)*+f[2]+parseFloat(c.css(a,b));e="number"}if(!(d==null||e==="number"&&isNaN(d))){if(e==="number"&&!c.cssNumber[g])d+="px";if(!l||!("set"in l)||(d=l.set(a,d))!==v)try{i[b]=d}catch(m){}}}else{if(l&&"get"in l&&(f=l.get(a,false,e))!==v)return f;return i[b]}}},css:function(a,b,d){var e,f;b=c.camelCase(b);f=c.cssHooks[b];
b=c.cssProps[b]||b;if(b==="cssFloat")b="float";if(f&&"get"in f&&(e=f.get(a,true,d))!==v)return e;else if(ba)return ba(a,b)},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]}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var g;if(e){if(d.offsetWidth!==0)return Oa(d,b,f);else c.swap(d,Yb,function(){g=Oa(d,b,f)});return g}},set:function(d,e){if(hb.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 Ub.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style,e=a.currentStyle,f=c.isNaN(b)?"":"alpha(opacity="+b*100+")",g=e&&e.filter||d.filter||"";d.zoom=1;if(b>=1&&c.trim(g.replace(Da,""))===""){d.removeAttribute("filter");if(e&&!e.filter)return}d.filter=Da.test(g)?g.replace(Da,f):g+" "+f}};c(function(){if(!c.support.reliableMarginRight)c.cssHooks.marginRight=
{get:function(a,b){var d;c.swap(a,{display:"inline-block"},function(){d=b?ba(a,"margin-right","marginRight"):a.style.marginRight});return d}}});if(y.defaultView&&y.defaultView.getComputedStyle)ib=function(a,b){var d,e;b=b.replace(Vb,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return v;if(e=e.getComputedStyle(a,null)){d=e.getPropertyValue(b);if(d===""&&!c.contains(a.ownerDocument.documentElement,a))d=c.style(a,b)}return d};if(y.documentElement.currentStyle)jb=function(a,b){var d,e=a.currentStyle&&
a.currentStyle[b],f=a.runtimeStyle&&a.runtimeStyle[b],g=a.style;if(!hb.test(e)&&Wb.test(e)){d=g.left;if(f)a.runtimeStyle.left=a.currentStyle.left;g.left=b==="fontSize"?"1em":e||0;e=g.pixelLeft+"px";g.left=d;if(f)a.runtimeStyle.left=f}return e===""?"auto":e};ba=ib||jb;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 Zb=
/%20/g,Bb=/\[\]$/,kb=/\r?\n/g,$b=/#.*$/,ac=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bc=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,cc=/^(?:GET|HEAD)$/,dc=/^\/\//,lb=/\?/,ec=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,fc=/^(?:select|textarea)/i,Qa=/\s+/,gc=/([?&])_=[^&]*/,mb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,nb=c.fn.load,ua={},ob={},Z,$,pb=["*/"]+["*"];try{Z=Eb.href}catch(oc){Z=y.createElement("a");Z.href="";Z=Z.href}$=
mb.exec(Z.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&nb)return nb.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=v}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var g=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(i,l,m){m=i.responseText;if(i.isResolved()){i.done(function(n){m=n});g.html(f?c("<div>").append(m.replace(ec,
"")).find(f):m)}d&&g.each(d,[m,l,i])}});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||fc.test(this.nodeName)||bc.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(kb,"\r\n")}}):{name:b.name,value:d.replace(kb,
"\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,g){if(c.isFunction(e)){g=g||f;f=e;e=v}return c.ajax({type:b,url:d,data:e,success:f,dataType:g})}});c.extend({getScript:function(a,b){return c.get(a,v,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){if(b)Ra(a,c.ajaxSettings);else{b=a;a=c.ajaxSettings}Ra(a,
b);return a},ajaxSettings:{url:Z,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test($[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","*":pb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":H.String,"text html":true,"text json":c.parseJSON,
"text xml":c.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:Pa(ua),ajaxTransport:Pa(ob),ajax:function(a,b){function d(o,r,u,w){if(N!==2){N=2;X&&clearTimeout(X);I=v;F=w||"";j.readyState=o>0?4:0;var C,P,M;w=r;if(u){var L=e,D=j,k=L.contents,t=L.dataTypes,z=L.responseFields,x,B,E,J;for(B in z)if(B in u)D[z[B]]=u[B];for(;t[0]==="*";){t.shift();if(x===v)x=L.mimeType||D.getResponseHeader("content-type")}if(x)for(B in k)if(k[B]&&k[B].test(x)){t.unshift(B);break}if(t[0]in u)E=t[0];else{for(B in u){if(!t[0]||
L.converters[B+" "+t[0]]){E=B;break}J||(J=B)}E=E||J}if(E){E!==t[0]&&t.unshift(E);u=u[E]}else u=void 0}else u=v;u=u;if(o>=200&&o<300||o===304){if(e.ifModified){if(x=j.getResponseHeader("Last-Modified"))c.lastModified[n]=x;if(x=j.getResponseHeader("Etag"))c.etag[n]=x}if(o===304){w="notmodified";C=true}else try{x=e;u=u;if(x.dataFilter)u=x.dataFilter(u,x.dataType);var K=x.dataTypes;B={};var T,oa,hc=K.length,pa,U=K[0],ea,Ea,V,aa,fa;for(T=1;T<hc;T++){if(T===1)for(oa in x.converters)if(typeof oa==="string")B[oa.toLowerCase()]=
x.converters[oa];ea=U;U=K[T];if(U==="*")U=ea;else if(ea!=="*"&&ea!==U){Ea=ea+" "+U;V=B[Ea]||B["* "+U];if(!V){fa=v;for(aa in B){pa=aa.split(" ");if(pa[0]===ea||pa[0]==="*")if(fa=B[pa[1]+" "+U]){aa=B[aa];if(aa===true)V=fa;else if(fa===true)V=aa;break}}}V||fa||c.error("No conversion from "+Ea.replace(" "," to "));if(V!==true)u=V?V(u):fa(aa(u))}}P=u;w="success";C=true}catch(ic){w="parsererror";M=ic}}else{M=w;if(!w||o){w="error";if(o<0)o=0}}j.status=o;j.statusText=""+(r||w);C?i.resolveWith(f,[P,w,j]):
i.rejectWith(f,[j,w,M]);j.statusCode(m);m=v;if(S)g.trigger("ajax"+(C?"Success":"Error"),[j,e,C?P:M]);l.resolveWith(f,[j,w]);if(S){g.trigger("ajaxComplete",[j,e]);--c.active||c.event.trigger("ajaxStop")}}}if(typeof a==="object"){b=a;a=v}b=b||{};var e=c.ajaxSetup({},b),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof c)?c(f):c.event,i=c.Deferred(),l=c._Deferred(),m=e.statusCode||{},n,s={},A={},F,G,I,X,O,N=0,S,h,j={readyState:0,setRequestHeader:function(o,r){if(!N){var u=o.toLowerCase();o=A[u]=A[u]||
o;s[o]=r}return this},getAllResponseHeaders:function(){return N===2?F:null},getResponseHeader:function(o){var r;if(N===2){if(!G)for(G={};r=ac.exec(F);)G[r[1].toLowerCase()]=r[2];r=G[o.toLowerCase()]}return r===v?null:r},overrideMimeType:function(o){if(!N)e.mimeType=o;return this},abort:function(o){o=o||"abort";I&&I.abort(o);d(0,o);return this}};i.promise(j);j.success=j.done;j.error=j.fail;j.complete=l.done;j.statusCode=function(o){if(o){var r;if(N<2)for(r in o)m[r]=[m[r],o[r]];else{r=o[j.status];
j.then(r,r)}}return this};e.url=((a||e.url)+"").replace($b,"").replace(dc,$[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(Qa);if(e.crossDomain==null){O=mb.exec(e.url.toLowerCase());e.crossDomain=!!(O&&(O[1]!=$[1]||O[2]!=$[2]||(O[3]||(O[1]==="http:"?80:443))!=($[3]||($[1]==="http:"?80:443))))}if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);la(ua,e,b,j);if(N===2)return false;S=e.global;e.type=e.type.toUpperCase();e.hasContent=!cc.test(e.type);
S&&c.active++===0&&c.event.trigger("ajaxStart");if(!e.hasContent){if(e.data){e.url+=(lb.test(e.url)?"&":"?")+e.data;delete e.data}n=e.url;if(e.cache===false){O=c.now();var p=e.url.replace(gc,"$1_="+O);e.url=p+(p===e.url?(lb.test(e.url)?"&":"?")+"_="+O:"")}}if(e.data&&e.hasContent&&e.contentType!==false||b.contentType)j.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){n=n||e.url;c.lastModified[n]&&j.setRequestHeader("If-Modified-Since",c.lastModified[n]);c.etag[n]&&j.setRequestHeader("If-None-Match",
c.etag[n])}j.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", "+pb+"; q=0.01":""):e.accepts["*"]);for(h in e.headers)j.setRequestHeader(h,e.headers[h]);if(e.beforeSend&&(e.beforeSend.call(f,j,e)===false||N===2)){j.abort();return false}for(h in{success:1,error:1,complete:1})j[h](e[h]);if(I=la(ob,e,b,j)){j.readyState=1;S&&g.trigger("ajaxSend",[j,e]);if(e.async&&e.timeout>0)X=setTimeout(function(){j.abort("timeout")},e.timeout);try{N=
1;I.send(s,d)}catch(q){N<2?d(-1,q):c.error(q)}}else d(-1,"No Transport");return j},param:function(a,b){var d=[],e=function(g,i){i=c.isFunction(i)?i():i;d[d.length]=encodeURIComponent(g)+"="+encodeURIComponent(i)};if(b===v)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)va(f,a[f],b,e);return d.join("&").replace(Zb,"+")}});c.extend({active:0,lastModified:{},etag:{}});var jc=c.now(),qa=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",
jsonpCallback:function(){return c.expando+"_"+jc++}});c.ajaxPrefilter("json jsonp",function(a,b,d){b=a.contentType==="application/x-www-form-urlencoded"&&typeof a.data==="string";if(a.dataTypes[0]==="jsonp"||a.jsonp!==false&&(qa.test(a.url)||b&&qa.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=H[f],i=a.url,l=a.data,m="$1"+f+"$2";if(a.jsonp!==false){i=i.replace(qa,m);if(a.url===i){if(b)l=l.replace(qa,m);if(a.data===l)i+=(/\?/.test(i)?"&":"?")+
a.jsonp+"="+f}}a.url=i;a.data=l;H[f]=function(n){e=[n]};d.always(function(){H[f]=g;e&&c.isFunction(g)&&H[f](e[0])});a.converters["script json"]=function(){e||c.error(f+" was not called");return e[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===
v)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,d=y.head||y.getElementsByTagName("head")[0]||y.documentElement;return{send:function(e,f){b=y.createElement("script");b.async="async";if(a.scriptCharset)b.charset=a.scriptCharset;b.src=a.url;b.onload=b.onreadystatechange=function(g,i){if(i||!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;d&&b.parentNode&&d.removeChild(b);b=v;i||f(200,
"success")}};d.insertBefore(b,d.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var Fa=H.ActiveXObject?function(){for(var a in ga)ga[a](0,1)}:false,kc=0,ga;c.ajaxSettings.xhr=H.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&Sa()))a:{try{a=new H.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:Sa;(function(a){c.extend(c.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(c.ajaxSettings.xhr());c.support.ajax&&c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;
return{send:function(d,e){var f=a.xhr(),g,i;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(i in a.xhrFields)f[i]=a.xhrFields[i];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);if(!a.crossDomain&&!d["X-Requested-With"])d["X-Requested-With"]="XMLHttpRequest";try{for(i in d)f.setRequestHeader(i,d[i])}catch(l){}f.send(a.hasContent&&a.data||null);b=function(m,n){var s,A,F,G,I;try{if(b&&(n||f.readyState===4)){b=v;if(g){f.onreadystatechange=
c.noop;Fa&&delete ga[g]}if(n)f.readyState!==4&&f.abort();else{s=f.status;F=f.getAllResponseHeaders();G={};if((I=f.responseXML)&&I.documentElement)G.xml=I;G.text=f.responseText;try{A=f.statusText}catch(X){A=""}if(!s&&a.isLocal&&!a.crossDomain)s=G.text?200:404;else if(s===1223)s=204}}}catch(O){n||e(-1,O)}G&&e(s,A,G,F)};if(!a.async||f.readyState===4)b();else{g=++kc;if(Fa){if(!ga){ga={};c(H).unload(Fa)}ga[g]=b}f.onreadystatechange=b}},abort:function(){b&&b(0,1)}}}});var wa={},R,da,lc=/^(?:toggle|show|hide)$/,
mc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ra,Ua=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ma;c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(ca("show",3),a,b,d);else{d=0;for(var e=this.length;d<e;d++){a=this[d];if(a.style){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",Va(a.nodeName))}}for(d=
0;d<e;d++){a=this[d];if(a.style){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(ca("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++)if(this[a].style){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++)if(this[a].style)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(ca("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,[false]);a=c.extend({},a);return this[f.queue===false?"each":"queue"](function(){f.queue===
false&&c._mark(this);var g=c.extend({},f),i=this.nodeType===1,l=i&&c(this).is(":hidden"),m,n,s,A,F;g.animatedProperties={};for(s in a){m=c.camelCase(s);if(s!==m){a[m]=a[s];delete a[s]}n=a[m];if(c.isArray(n)){g.animatedProperties[m]=n[1];n=a[m]=n[0]}else g.animatedProperties[m]=g.specialEasing&&g.specialEasing[m]||g.easing||"swing";if(n==="hide"&&l||n==="show"&&!l)return g.complete.call(this);if(i&&(m==="height"||m==="width")){g.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){n=Va(this.nodeName);if(n==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}}else this.style.display="inline-block"}}if(g.overflow!=null)this.style.overflow="hidden";for(s in a){i=new c.fx(this,g,s);n=a[s];if(lc.test(n))i[n==="toggle"?l?"show":"hide":n]();else{m=mc.exec(n);A=i.cur();if(m){n=parseFloat(m[2]);F=m[3]||(c.cssNumber[s]?"":"px");if(F!=="px"){c.style(this,
s,(n||1)+F);A=(n||1)/i.cur()*A;c.style(this,s,A+F)}if(m[1])n=(m[1]==="-="?-1:1)*n+A;i.custom(A,n,F)}else i.custom(A,n,"")}}return true})},stop:function(a,b){a&&this.queue([]);this.each(function(){var d=c.timers,e=d.length;for(b||c._unmark(true,this);e--;)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:ca("show",1),slideUp:ca("hide",1),slideToggle:ca("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(f){c.isFunction(e.old)&&e.old.call(this);if(e.queue!==false)c.dequeue(this);else f!==false&&c._unmark(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;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(i){return f.step(i)}var f=this,g=c.fx;this.startTime=ma||Ta();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)&&!ra)ra=setInterval(g.tick,g.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=ma||Ta(),d=true,e=this.elem,f=this.options,g;if(a||b>=f.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();f.animatedProperties[this.prop]=true;for(g in f.animatedProperties)if(f.animatedProperties[g]!==true)d=false;if(d){f.overflow!=null&&!c.support.shrinkWrapBlocks&&c.each(["",
"X","Y"],function(l,m){e.style["overflow"+m]=f.overflow[l]});f.hide&&c(e).hide();if(f.hide||f.show)for(var i in f.animatedProperties)c.style(e,i,f.orig[i]);f.complete.call(e)}return false}else{if(f.duration==Infinity)this.now=b;else{a=b-this.startTime;this.state=a/f.duration;this.pos=c.easing[f.animatedProperties[this.prop]](this.state,a,0,1,f.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(ra);ra=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 nc=/^t(?:able|d|h)$/i,qb=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in y.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(i){c.offset.setOffset(this,a,i)});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,g=f.documentElement;if(!d||!c.contains(g,b))return d?{top:d.top,left:d.left}:{top:0,left:0};b=f.body;f=xa(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&
g.scrollTop||b.scrollTop)-(g.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&g.scrollLeft||b.scrollLeft)-(g.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(s){c.offset.setOffset(this,a,s)});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,g=b.ownerDocument,i=g.documentElement,l=g.body;d=(g=g.defaultView)?g.getComputedStyle(b,null):b.currentStyle;
for(var m=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==l&&b!==i;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=g?g.getComputedStyle(b,null):b.currentStyle;m-=b.scrollTop;n-=b.scrollLeft;if(b===e){m+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&nc.test(b.nodeName))){m+=parseFloat(d.borderTopWidth)||0;n+=parseFloat(d.borderLeftWidth)||0}f=e;e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){m+=
parseFloat(d.borderTopWidth)||0;n+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){m+=l.offsetTop;n+=l.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){m+=Math.max(i.scrollTop,l.scrollTop);n+=Math.max(i.scrollLeft,l.scrollLeft)}return{top:m,left:n}};c.offset={initialize:function(){var a=y.body,b=y.createElement("div"),d,e,f,g=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!==g;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),g=f.offset(),i=c.css(a,"top"),l=c.css(a,"left"),m={},n={};if((e==="absolute"||e==="fixed")&&c.inArray("auto",[i,l])>-1){n=f.position();e=n.top;l=n.left}else{e=parseFloat(i)||0;l=parseFloat(l)||0}if(c.isFunction(b))b=b.call(a,d,g);if(b.top!=null)m.top=b.top-g.top+e;if(b.left!=null)m.left=b.left-g.left+l;"using"in b?
b.using.call(a,m):f.css(m)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=qb.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||
y.body;a&&!qb.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,g;if(e===v){f=this[0];if(!f)return null;return(g=xa(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:f[d]}return this.each(function(){if(g=xa(this))g.scrollTo(!a?e:c(g).scrollLeft(),a?e:c(g).scrollTop());else this[d]=e})}});c.each(["Height","Width"],function(a,
b){var d=b.toLowerCase();c.fn["inner"+b]=function(){var e=this[0];return e&&e.style?parseFloat(c.css(e,d,"padding")):null};c.fn["outer"+b]=function(e){var f=this[0];return f&&f.style?parseFloat(c.css(f,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(l){var m=c(this);m[d](e.call(this,l,m[d]()))});if(c.isWindow(f)){var g=f.document.documentElement["client"+b],i=f.document.body;return f.document.compatMode===
"CSS1Compat"&&g||i&&i["client"+b]||g}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===v){f=c.css(f,d);g=parseFloat(f);return c.isNaN(g)?f:g}else return this.css(d,typeof e==="string"?e:e+"px")}});H.jQuery=H.$=c})(window);window.define&&window.define("jQuery",[],function(){return jQuery});var $j=jQuery.noConflict();


typeof window=="undefined"&&(window={});var Kx=window.Kx||{};Kx.Env={};Kx.Lib={};Kx.Lib.Request={};Kx.Lib.Util={};Kx.Lib.Util.addFavorite=function(sURL,sTitle)
{try{window.external.addFavorite(sURL,sTitle);}catch(e){try{window.sidebar.addPanel(sTitle,sURL,"");}catch(e){try{}catch(e){}}}}
Kx.Lib.Request.getDomain=function(){var strDomain;strDomain='kaixin001.com';var strLocation=window.location+'';var result=strLocation.match(/:\/\/[^\/]+\.(kaixin|kx)(00[^\/])(\.com|\.cc)/i);if(result&&'undefined'!=typeof result[1]&&'undefined'!=typeof result[2]&&'undefined'!=typeof result[3]){strDomain='.'+result[1]+result[2]+result[3];}
return strDomain;}
Kx.Lib.Request.getDomainND=function(){var str=Kx.Lib.Request.getDomain();return str.substr(1);}
Kx.Lib.Request.getFullHost=function(){return'www'+Kx.Lib.Request.getDomain();}
Kx.Env.domain=Kx.Lib.Request.getDomain();Kx.Env.isLite=((/kx00[145]\.com/).test(Kx.Env.domain)||(/kaixin00[128]\.cc/).test(Kx.Env.domain));Kx.Env.getLiteDomain=function(){return'.kx001.com';}
Kx.Lib.Cache={};Kx.Lib.Cache.getCache=function(namespace){namespace=namespace||'default';if('undefined'==typeof window['_client_cache_']){window['_client_cache_']={};}
var objCache=window['_client_cache_'];if('undefined'==typeof objCache[namespace]){objCache[namespace]={};}
return objCache[namespace];}
Kx.Lib.Cache.set=function(key,value,namespace){var objCache=Kx.Lib.Cache.getCache(namespace);value='undefined'==typeof value?'':value;objCache[key]=value;return value;}
Kx.Lib.Cache.get=function(key,namespace){var ret='';if(arguments.length==3){ret=arguments[1];namespace=arguments[2];}
var objCache=Kx.Lib.Cache.getCache(namespace);if('undefined'!=typeof objCache[key]){ret=objCache[key];}
return ret;}
Kx.Lib.String={};Kx.Lib.String.strLen=function(str){var len=str.length;var total=len;var charCode;for(var i=0;i<len;i++){charCode=str.charCodeAt(i);if(charCode<0||charCode>255){total++}}
return total;}
Kx.Lib.String.subStr=function(strText,intLen){intLen=intLen||12;var len=Kx.Lib.String.strLen(strText);if(len>intLen){var strUpdate='';var strOri=strText;var pos=0;for(var i=0;i<intLen;i++){if(strOri.charCodeAt(pos)<0||strOri.charCodeAt(pos)>255){i++;if(i>=intLen){break;}}
strUpdate+=strOri.charAt(pos);pos++;}
strText=strUpdate;}
return strText;}
Kx.Lib.String.subWidth=function(strText,intLen,strDots){intLen=intLen||12;strDots=strDots||'...';var strSub=Kx.Lib.String.subStr(strText,intLen);if(strSub==strText){return strText;}else{return strSub+strDots;}}
window.K=window.K||{};K.loadUserCardBehavior=function(){if(!K.loadUserCardBehavior.loaded){K.loadUserCardBehavior.loaded=true;KxLazyLoad(["css/user_card.css","js/user_card.js"]);}};(function(){var isLoading=false,lastLink;Kx.Lib.Util.initTalkbox=function(link,type){lastLink=link;if(!isLoading){isLoading=true;KxLazyLoad(["css/talk_editor.css","js/talk_editor.js"],function(){Kx.Lib.Util.initTalkbox(lastLink,type);});}};})();$j.fn.placeholder=(function(){var phClassName='c9',$=$j,isSupport='placeholder'in document.createElement('textarea');function showPlaceHolder(event){var element=$(this),val=element.val();if(val==''){element.addClass(phClassName);element.val(element.attr('placeholder'));}}
function removePlaceHolder(event){var element=$(this),val=$.trim(element.val());if(val==element.attr('placeholder')){element.val('');element.removeClass(phClassName);}}
return function(info){$(this).each(function(i,element){var element=$(this);info=info||element.attr('placeholder');element.attr('placeholder',info);if(!isSupport){showPlaceHolder.call(element);if(!element.data('init_placeholder')){element.data('init_placeholder',true);element.focus(removePlaceHolder).blur(showPlaceHolder);}}});}})();$j.fn.gnPlaceholder=(function(){var $=$j,holder={support:'placeholder'in document.createElement('input'),render:function(selector){if(this.support&&$.browser.mozilla){var inputs=selector.filter(':not([data-placeholder-render])'),ins=this;inputs.focus(function(e){ins.applyFocusStyle(this);});inputs.blur(function(e){if(!$(this).val()){ins.applyBlurStyle(this);}});inputs.bind('input',function(e){if($(this).val()){ins.switchToFocus(this);}});inputs.attr('data-placeholder-render',1);inputs.each(function(){if(!$(this).val()){ins.applyBlurStyle(this);}});return;}
if(this.support)return;var inputs=selector.filter(':not([data-placeholder-render])'),ins=this;inputs.each(function(){var input=$(this),plv=input.attr('placeholder'),pl=$('<span/>').addClass('c9 gn-ct-placeholder').text(plv).appendTo(input.parent());pl.click(function(){input.focus();});if(this.attachEvent){this.onpropertychange=function(){if($(this).val()){ins.switchToFocus(this);}};}
else{this.addEventListener('input',function(){if($(this).val()){ins.switchToFocus(this);}},false);}
input.attr('data-placeholder-render',1);if(!input.val()){ins.switchToBlur(input[0]);}});inputs.focus(function(e){ins.switchToFocus(this);});inputs.blur(function(e){if(!$(this).val()){ins.switchToBlur(this);}});},parseToStyleMap:function(style){var styleRegexp=/([^\:;]+)\:([^\:;]+);?/ig,styleMap={};if(style&&styleRegexp.test(style)){style.replace(styleRegexp,function(a,k,v){if(k&&v){styleMap[k]=v;}})}
return styleMap;},switchToFocus:function(el){var input=$(el);input.parent().find('.gn-ct-placeholder').hide();this.applyFocusStyle(el);},switchToBlur:function(el){var input=$(el),pos=input.position();input.parent().find('.gn-ct-placeholder').css({'position':'absolute','top':pos.top,'left':pos.left,'padding-left':input.css('padding-left'),'padding-top':input.css('padding-top'),'margin-left':input.css('margin-left'),'margin-top':input.css('margin-top')}).show();this.applyBlurStyle(el);},applyFocusStyle:function(el){var input=$(el);var focusStyle=input.attr('data-focus-style'),focusStyleMap=this.parseToStyleMap(focusStyle);input.css(focusStyleMap);},applyBlurStyle:function(el){var input=$(el);var blurStyle=input.attr('data-blur-style'),blurStyleMap=this.parseToStyleMap(blurStyle);input.css(blurStyleMap);}};$j(document).ready(function(){holder.render($j('.gn-placeholder'));});return function(){holder.render(this);return this;}})();
