(function(K,C){function za(){if(!c.isReady){try{x.documentElement.doScroll("left")}catch(a){setTimeout(za,1);return}c.ready()}}function Aa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function Ba(a,b,d,f,e,j){var k=a.length;if(typeof b==="object"){for(var r in b)Ba(a,r,b[r],f,e,d);return a}if(d!==C){f=!j&&f&&c.isFunction(d);for(r=0;r<k;r++)e(a[r],b,f?d.call(a[r],r,e(a[r],b)):d,j);return a}return k?
e(a[0],b):null}function ka(){return(new Date).getTime()}function Ca(){return false}function Da(){return true}function Ha(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ea(a){var b=true,d=[],f=[],e=arguments,j,k,r,s,q,z=c.extend({},c.data(this,"events").live);for(s in z){k=z[s];if(k.live===a.type||k.altLive&&c.inArray(a.type,k.altLive)>-1){j=k.data;j.beforeFilter&&j.beforeFilter[a.type]&&!j.beforeFilter[a.type](a)||f.push(k.selector)}else delete z[s]}j=c(a.target).closest(f,a.currentTarget);
q=0;for(l=j.length;q<l;q++)for(s in z){k=z[s];r=j[q].elem;f=null;if(j[q].selector===k.selector){if(k.live==="mouseenter"||k.live==="mouseleave")f=c(a.relatedTarget).closest(k.selector)[0];if(!f||f!==r)d.push({elem:r,fn:k})}}q=0;for(l=d.length;q<l;q++){j=d[q];a.currentTarget=j.elem;a.data=j.fn.data;if(j.fn.apply(j.elem,e)===false){b=false;break}}return b}function Y(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"&")].join(".")}function ga(a){return!a||!a.parentNode||a.parentNode.nodeType===
11}function T(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var k in f[j])c.event.add(this,j,f[j][k],f[j][k].data)}}})}function U(a,b,d){var f,e,j;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&a[0].indexOf("<option")<0){e=true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){b=b&&b[0]?b[0].ownerDocument||b[0]:x;f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=
j?f:1;return{fragment:f,cacheable:e}}function ma(a){for(var b=0,d,f;(d=a[b])!=null;b++)if(!c.noData[d.nodeName.toLowerCase()]&&(f=d[I]))delete c.cache[f]}function ba(a,b){var d={};c.each(Wa.concat.apply([],Wa.slice(0,b)),function(){d[this]=a});return d}function sa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},H=K.jQuery,Na=K.$,x=K.document,ta,Ia=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,na=/^.[^:#\[\.,]*$/,Oa=/\S/,
ha=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,t=navigator.userAgent,D=false,y=[],o,u=Object.prototype.toString,G=Object.prototype.hasOwnProperty,S=Array.prototype.push,N=Array.prototype.slice,A=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((d=Ia.exec(a))&&(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:x;if(a=n.exec(a))if(c.isPlainObject(b)){a=[x.createElement(a[1])];
c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=U([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=x.getElementById(d[2])){if(b.id!==d[2])return ta.find(a);this.length=1;this[0]=b}this.context=x;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=x;a=x.getElementsByTagName(a)}else return!b||b.jquery?(b||ta).find(a):c(b).find(a);else if(c.isFunction(a))return ta.ready(a);if(a.selector!==C){this.selector=a.selector;
this.context=a.context}return c.isArray(a)?this.setArray(a):c.makeArray(a,this)},selector:"",jquery:"1.4",length:0,size:function(){return this.length},toArray:function(){return N.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){a=c(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+d;else if(b)a.selector=this.selector+"."+b+"("+d+")";return a},setArray:function(a){this.length=
0;S.apply(this,a);return this},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(x,c);else y&&y.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||
c(null)},push:S,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,k,r;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){k=a[j];r=e[j];if(a!==r)if(f&&r&&(c.isPlainObject(r)||c.isArray(r))){k=k&&(c.isPlainObject(k)||c.isArray(k))?k:c.isArray(r)?[]:{};a[j]=c.extend(f,k,r)}else if(r!==C)a[j]=
r}return a};c.extend({noConflict:function(a){K.$=Na;if(a)K.jQuery=H;return c},isReady:false,ready:function(){if(!c.isReady){if(!x.body)return setTimeout(c.ready,13);c.isReady=true;if(y){for(var a,b=0;a=y[b++];)a.call(x,c);y=null}c.fn.triggerHandler&&c(x).triggerHandler("ready")}},bindReady:function(){if(!D){D=true;if(x.readyState==="complete")return c.ready();if(x.addEventListener){x.addEventListener("DOMContentLoaded",o,false);K.addEventListener("load",c.ready,false)}else if(x.attachEvent){x.attachEvent("onreadystatechange",
o);K.attachEvent("onload",c.ready);var a=false;try{a=K.frameElement==null}catch(b){}x.documentElement.doScroll&&a&&za()}}},isFunction:function(a){return u.call(a)==="[object Function]"},isArray:function(a){return u.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||u.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!G.call(a,"constructor")&&!G.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===C||G.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;
return true},noop:function(){},globalEval:function(a){if(a&&Oa.test(a)){var b=x.getElementsByTagName("head")[0]||x.documentElement,d=x.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(x.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,k=j===C||c.isFunction(a);if(d)if(k)for(f in a){if(b.apply(a[f],d)===
false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(k)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(ha,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?S.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===a)return d;
return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==C;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,k=a.length;j<k;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=C}else if(b&&!c.isFunction(b)){d=
b;b=C}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){var b={browser:""};a=a.toLowerCase();if(/webkit/.test(a))b={browser:"webkit",version:/webkit[\/ ]([\w.]+)/};else if(/opera/.test(a))b={browser:"opera",version:/version/.test(a)?/version[\/ ]([\w.]+)/:/opera[\/ ]([\w.]+)/};else if(/msie/.test(a))b={browser:"msie",version:/msie ([\w.]+)/};else if(/mozilla/.test(a)&&!/compatible/.test(a))b={browser:"mozilla",version:/rv:([\w.]+)/};
b.version=(b.version&&b.version.exec(a)||[0,"0"])[1];return b},browser:{}});t=c.uaMatch(t);if(t.browser){c.browser[t.browser]=true;c.browser.version=t.version}if(c.browser.webkit)c.browser.safari=true;if(A)c.inArray=function(a,b){return A.call(b,a)};ta=c(x);if(x.addEventListener)o=function(){x.removeEventListener("DOMContentLoaded",o,false);c.ready()};else if(x.attachEvent)o=function(){if(x.readyState==="complete"){x.detachEvent("onreadystatechange",o);c.ready()}};if(A)c.inArray=function(a,b){return A.call(b,
a)};(function(){c.support={};var a=x.documentElement,b=x.createElement("script"),d=x.createElement("div"),f="script"+ka();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,
style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:x.createElement("select").appendChild(x.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(x.createTextNode("window."+f+"=1;"))}catch(k){}a.insertBefore(b,a.firstChild);if(K[f]){c.support.scriptEval=true;
delete K[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent=false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}c(function(){var r=x.createElement("div");r.style.width=r.style.paddingLeft="1px";x.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;x.body.removeChild(r).style.display="none"});a=function(r){var s=x.createElement("div");r="on"+r;var q=r in s;if(!q){s.setAttribute(r,"return;");q=typeof s[r]===
"function"}return q};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var I="jQuery"+ka(),O=0,Q={},V={};c.extend({cache:{},expando:I,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=
a==K?Q:a;var f=a[I],e=c.cache;if(!b&&!f)return null;f||(f=++O);if(typeof b==="object"){a[I]=f;e=e[f]=c.extend(true,{},b)}else e=e[f]?e[f]:typeof d==="undefined"?V:(e[f]={});if(d!==C){a[I]=f;e[b]=d}return typeof b==="string"?e[b]:e}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==K?Q:a;var d=a[I],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{try{delete a[I]}catch(j){a.removeAttribute&&a.removeAttribute(I)}delete f[d]}}}});c.fn.extend({data:function(a,
b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===C){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===C&&this.length)f=c.data(this[0],a);return f===C&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,
b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===C)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&
c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var P=/[\n\t]/g,M=/\s+/,aa=/\r/g,ca=/href|src|style/,qa=/(button|input)/i,ua=/(button|input|object|select|textarea)/i,ra=/^(a|area)$/i,X=/radio|checkbox/;c.fn.extend({attr:function(a,b){return Ba(this,a,b,true,c.attr)},
removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(s){var q=c(this);q.addClass(a.call(this,s,q.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(M),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className)for(var j=" "+e.className+" ",k=0,r=b.length;k<r;k++){if(j.indexOf(" "+b[k]+" ")<0)e.className+=" "+b[k]}else e.className=a}return this},
removeClass:function(a){if(c.isFunction(a))return this.each(function(s){var q=c(this);q.removeClass(a.call(this,s,q.attr("class")))});if(a&&typeof a==="string"||a===C)for(var b=(a||"").split(M),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(P," "),k=0,r=b.length;k<r;k++)j=j.replace(" "+b[k]+" "," ");e.className=j.substring(1,j.length-1)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";
if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,k=c(this),r=b,s=a.split(M);e=s[j++];){r=f?r:!k.hasClass(e);k[r?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<
d;b++)if((" "+this[b].className+" ").replace(P," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===C){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var k=e[j];if(k.selected){a=c(k).val();if(b)return a;f.push(a)}}return f}if(X.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===
null?"on":b.value;return(b.value||"").replace(aa,"")}return C}var r=c.isFunction(a);return this.each(function(s){var q=c(this),z=a;if(this.nodeType===1){if(r)z=a.call(this,s,q.val());if(typeof z==="number")z+="";if(c.isArray(z)&&X.test(this.type))this.checked=c.inArray(q.val(),z)>=0;else if(c.nodeName(this,"select")){var L=c.makeArray(z);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),L)>=0});if(!L.length)this.selectedIndex=-1}else this.value=z}})}});c.extend({attrFn:{val:true,
css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return C;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==C;b=f&&c.props[b]||b;if(a.nodeType===1){var j=ca.test(b);if(b in a&&f&&!j){if(e){if(b==="type"&&qa.test(a.nodeName)&&a.parentNode)throw"type property can't be changed";a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=
a.getAttributeNode("tabIndex"))&&b.specified?b.value:ua.test(a.nodeName)||ra.test(a.nodeName)&&a.href?0:C;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?C:a}return c.style(a,b,d)}});var ia=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&
a!==K&&!a.frameElement)a=K;if(!d.guid)d.guid=c.guid++;if(f!==C){d=c.proxy(d);d.data=f}var e=c.data(a,"events")||c.data(a,"events",{}),j=c.data(a,"handle"),k;if(!j){k=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(k.elem,arguments):C};j=c.data(a,"handle",k)}if(j){j.elem=a;b=b.split(/\s+/);for(var r,s=0;r=b[s++];){var q=r.split(".");r=q.shift();d.type=q.slice(0).sort().join(".");var z=e[r],L=this.special[r]||{};if(!z){z=e[r]={};if(!L.setup||L.setup.call(a,f,q,d)===
false)if(a.addEventListener)a.addEventListener(r,j,false);else a.attachEvent&&a.attachEvent("on"+r,j)}if(L.add)if((q=L.add.call(a,d,f,q,z))&&c.isFunction(q)){q.guid=q.guid||d.guid;d=q}z[d.guid]=d;this.global[r]=true}a=null}}},global:{},remove:function(a,b,d){if(!(a.nodeType===3||a.nodeType===8)){var f=c.data(a,"events"),e,j,k;if(f){if(b===C||typeof b==="string"&&b.charAt(0)===".")for(j in f)this.remove(a,j+(b||""));else{if(b.type){d=b.handler;b=b.type}b=b.split(/\s+/);for(var r=0;j=b[r++];){var s=
j.split(".");j=s.shift();var q=!s.length,z=c.map(s.slice(0).sort(),ia);z=new RegExp("(^|\\.)"+z.join("\\.(?:.*\\.)?")+"(\\.|$)");var L=this.special[j]||{};if(f[j]){if(d){k=f[j][d.guid];delete f[j][d.guid]}else for(var R in f[j])if(q||z.test(f[j][R].type))delete f[j][R];L.remove&&L.remove.call(a,s,k);for(e in f[j])break;if(!e){if(!L.teardown||L.teardown.call(a,s)===false)if(a.removeEventListener)a.removeEventListener(j,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+j,c.data(a,"handle"));
e=null;delete f[j]}}}}for(e in f)break;if(!e){if(R=c.data(a,"handle"))R.elem=null;c.removeData(a,"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[I]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return C;a.result=
C;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;var j=c.data(d,"handle");j&&j.apply(d,b);var k,r;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){k=d[e];r=d["on"+e]}}catch(s){}j=c.nodeName(d,"a")&&e==="click";if(!f&&k&&!a.isDefaultPrevented()&&!j){this.triggered=true;try{d[e]()}catch(q){}}else if(r&&d["on"+e].apply(d,b)===false)a.result=false;this.triggered=false;if(!a.isPropagationStopped())(d=d.parentNode||d.ownerDocument)&&c.event.trigger(a,b,d,true)},handle:function(a){var b,
d;a=arguments[0]=c.event.fix(a||K.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();b=!d.length&&!a.exclusive;var f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");d=(c.data(this,"events")||{})[a.type];for(var e in d){var j=d[e];if(b||f.test(j.type)){a.handler=j;a.data=j.data;j=j.apply(this,arguments);if(j!==C){a.result=j;if(j===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 originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[I])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||x;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=x.documentElement;d=x.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&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==C)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,b){c.extend(a,b||{});a.guid+=b.selector+b.live;c.event.add(this,b.live,Ea,b)},remove:function(a){if(a.length){var b=0,d=new RegExp("(^|\\.)"+
a[0]+"(\\.|$)");c.each(c.data(this,"events").live||{},function(){d.test(this.type)&&b++});b<1&&c.event.remove(this,a[0],Ea)}},special:{}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=ka();this[I]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=
Da;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Da;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Da;this.stopPropagation()},isDefaultPrevented:Ca,isPropagationStopped:Ca,isImmediatePropagationStopped:Ca};var va=function(a){for(var b=a.relatedTarget;b&&b!==this;)try{b=b.parentNode}catch(d){break}if(b!==
this){a.type=a.data;c.event.handle.apply(this,arguments)}},wa=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?wa:va,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?wa:va)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(a,b,d){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit."+d.guid,
function(f){var e=f.target,j=e.type;if((j==="submit"||j==="image")&&c(e).closest("form").length)return Ha("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit."+d.guid,function(f){var e=f.target,j=e.type;if((j==="text"||j==="password")&&c(e).closest("form").length&&f.keyCode===13)return Ha("submit",this,arguments)})}else return false},remove:function(a,b){c.event.remove(this,"click.specialSubmit"+(b?"."+b.guid:""));c.event.remove(this,"keypress.specialSubmit"+(b?"."+b.guid:""))}};if(!c.support.changeBubbles){var la=
/textarea|input|select/i;function Ja(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d}function Fa(a,b){var d=a.target,f,e;if(!(!la.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Ja(d);if(e!==f){if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",e);if(d.type!=="select"&&(f!=
null||e)){a.type="change";return c.event.trigger(a,b,this)}}}}c.event.special.change={filters:{focusout:Fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Fa.call(this,a)},beforeactivate:function(a){a=a.target;a.nodeName.toLowerCase()===
"input"&&a.type==="radio"&&c.data(a,"_change_data",Ja(a))}},setup:function(a,b,d){for(var f in ja)c.event.add(this,f+".specialChange."+d.guid,ja[f]);return la.test(this.nodeName)},remove:function(a,b){for(var d in ja)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),ja[d]);return la.test(this.nodeName)}};var ja=c.event.special.change.filters}x.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}
c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){thisObject=e;e=f;f=C}var k=b==="one"?c.proxy(e,function(r){c(this).unbind(r,k);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e,thisObject):this.each(function(){c.event.add(this,d,k,f)})}});
c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=
(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},live:function(a,b,d){if(c.isFunction(b)){d=b;b=C}c(this.context).bind(Y(a,this.selector),{data:b,selector:this.selector,live:a},d);return this},die:function(a,b){c(this.context).unbind(Y(a,this.selector),b?{guid:b.guid+this.selector+a}:null);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){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});K.attachEvent&&!K.addEventListener&&K.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",m,p=0;g[p];p++){m=g[p];if(m.nodeType===3||m.nodeType===4)h+=m.nodeValue;else if(m.nodeType!==8)h+=a(m.childNodes)}return h}function b(g,h,m,p,w,v){w=0;for(var E=p.length;w<E;w++){var B=p[w];
if(B){B=B[g];for(var J=false;B;){if(B.sizcache===m){J=p[B.sizset];break}if(B.nodeType===1&&!v){B.sizcache=m;B.sizset=w}if(B.nodeName.toLowerCase()===h){J=B;break}B=B[g]}p[w]=J}}}function d(g,h,m,p,w,v){w=0;for(var E=p.length;w<E;w++){var B=p[w];if(B){B=B[g];for(var J=false;B;){if(B.sizcache===m){J=p[B.sizset];break}if(B.nodeType===1){if(!v){B.sizcache=m;B.sizset=w}if(typeof h!=="string"){if(B===h){J=true;break}}else if(s.filter(h,[B]).length>0){J=B;break}}B=B[g]}p[w]=J}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e=0,j=Object.prototype.toString,k=false,r=true;[0,0].sort(function(){r=false;return 0});var s=function(g,h,m,p){m=m||[];var w=h=h||x;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return m;for(var v=[],E,B,J,Ga,oa=true,xa=F(h),pa=g;(f.exec(""),E=f.exec(pa))!==null;){pa=E[3];v.push(E[1]);if(E[2]){Ga=E[3];break}}if(v.length>1&&z.exec(g))if(v.length===2&&q.relative[v[0]])B=Pa(v[0]+v[1],h);else for(B=q.relative[v[0]]?[h]:s(v.shift(),h);v.length;){g=v.shift();if(q.relative[g])g+=
v.shift();B=Pa(g,B)}else{if(!p&&v.length>1&&h.nodeType===9&&!xa&&q.match.ID.test(v[0])&&!q.match.ID.test(v[v.length-1])){E=s.find(v.shift(),h,xa);h=E.expr?s.filter(E.expr,E.set)[0]:E.set[0]}if(h){E=p?{expr:v.pop(),set:R(p)}:s.find(v.pop(),v.length===1&&(v[0]==="~"||v[0]==="+")&&h.parentNode?h.parentNode:h,xa);B=E.expr?s.filter(E.expr,E.set):E.set;if(v.length>0)J=R(B);else oa=false;for(;v.length;){var da=v.pop();E=da;if(q.relative[da])E=v.pop();else da="";if(E==null)E=h;q.relative[da](J,E,xa)}}else J=
[]}J||(J=B);if(!J)throw"Syntax error, unrecognized expression: "+(da||g);if(j.call(J)==="[object Array]")if(oa)if(h&&h.nodeType===1)for(g=0;J[g]!=null;g++){if(J[g]&&(J[g]===true||J[g].nodeType===1&&ea(h,J[g])))m.push(B[g])}else for(g=0;J[g]!=null;g++)J[g]&&J[g].nodeType===1&&m.push(B[g]);else m.push.apply(m,J);else R(J,m);if(Ga){s(Ga,w,m,p);s.uniqueSort(m)}return m};s.uniqueSort=function(g){if(Z){k=r;g.sort(Z);if(k)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};s.matches=function(g,
h){return s(g,null,null,h)};s.find=function(g,h,m){var p,w;if(!g)return[];for(var v=0,E=q.order.length;v<E;v++){var B=q.order[v];if(w=q.leftMatch[B].exec(g)){var J=w[1];w.splice(1,1);if(J.substr(J.length-1)!=="\\"){w[1]=(w[1]||"").replace(/\\/g,"");p=q.find[B](w,h,m);if(p!=null){g=g.replace(q.match[B],"");break}}}}p||(p=h.getElementsByTagName("*"));return{set:p,expr:g}};s.filter=function(g,h,m,p){for(var w=g,v=[],E=h,B,J,Ga=h&&h[0]&&F(h[0]);g&&h.length;){for(var oa in q.filter)if((B=q.leftMatch[oa].exec(g))!=
null&&B[2]){var xa=q.filter[oa],pa,da;da=B[1];J=false;B.splice(1,1);if(da.substr(da.length-1)!=="\\"){if(E===v)v=[];if(q.preFilter[oa])if(B=q.preFilter[oa](B,E,m,v,p,Ga)){if(B===true)continue}else J=pa=true;if(B)for(var Ka=0;(da=E[Ka])!=null;Ka++)if(da){pa=xa(da,B,Ka,E);var Xa=p^!!pa;if(m&&pa!=null)if(Xa)J=true;else E[Ka]=false;else if(Xa){v.push(da);J=true}}if(pa!==C){m||(E=v);g=g.replace(q.match[oa],"");if(!J)return[];break}}}if(g===w)if(J==null)throw"Syntax error, unrecognized expression: "+g;
else break;w=g}return E};var q=s.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},
leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,h){var m=typeof h==="string",p=m&&!/\W/.test(h);m=m&&!p;if(p)h=h.toLowerCase();p=0;for(var w=g.length,v;p<w;p++)if(v=g[p]){for(;(v=v.previousSibling)&&v.nodeType!==1;);g[p]=m||v&&v.nodeName.toLowerCase()===h?v||false:v===h}m&&s.filter(h,g,true)},">":function(g,h){var m=typeof h==="string";if(m&&!/\W/.test(h)){h=h.toLowerCase();for(var p=0,w=g.length;p<w;p++){var v=
g[p];if(v){m=v.parentNode;g[p]=m.nodeName.toLowerCase()===h?m:false}}}else{p=0;for(w=g.length;p<w;p++)if(v=g[p])g[p]=m?v.parentNode:v.parentNode===h;m&&s.filter(h,g,true)}},"":function(g,h,m){var p=e++,w=d;if(typeof h==="string"&&!/\W/.test(h)){var v=h=h.toLowerCase();w=b}w("parentNode",h,p,g,v,m)},"~":function(g,h,m){var p=e++,w=d;if(typeof h==="string"&&!/\W/.test(h)){var v=h=h.toLowerCase();w=b}w("previousSibling",h,p,g,v,m)}},find:{ID:function(g,h,m){if(typeof h.getElementById!=="undefined"&&
!m)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var m=[];h=h.getElementsByName(g[1]);for(var p=0,w=h.length;p<w;p++)h[p].getAttribute("name")===g[1]&&m.push(h[p]);return m.length===0?null:m}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,m,p,w,v){g=" "+g[1].replace(/\\/g,"")+" ";if(v)return g;v=0;for(var E;(E=h[v])!=null;v++)if(E)if(w^(E.className&&(" "+E.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=
0))m||p.push(E);else if(m)h[v]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,m,p,w,v){h=g[1].replace(/\\/g,"");if(!v&&q.attrMap[h])g[1]=q.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,m,p,
w){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=s(g[3],null,null,h);else{g=s.filter(g[3],h,m,true^w);m||p.push.apply(p,g);return false}else if(q.match.POS.test(g[0])||q.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},
empty:function(g){return!g.firstChild},has:function(g,h,m){return!!s(m[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===
g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,m,p){return h===p.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,m){return h<m[3]-0},gt:function(g,h,m){return h>m[3]-0},nth:function(g,h,m){return m[3]-0===h},eq:function(g,h,m){return m[3]-0===h}},filter:{PSEUDO:function(g,h,m,p){var w=h[1],v=q.filters[w];if(v)return v(g,
m,h,p);else if(w==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(w==="not"){h=h[3];m=0;for(p=h.length;m<p;m++)if(h[m]===g)return false;return true}else throw"Syntax error, unrecognized expression: "+w;},CHILD:function(g,h){var m=h[1],p=g;switch(m){case "only":case "first":for(;p=p.previousSibling;)if(p.nodeType===1)return false;if(m==="first")return true;p=g;case "last":for(;p=p.nextSibling;)if(p.nodeType===1)return false;return true;case "nth":m=h[2];var w=h[3];
if(m===1&&w===0)return true;h=h[0];var v=g.parentNode;if(v&&(v.sizcache!==h||!g.nodeIndex)){var E=0;for(p=v.firstChild;p;p=p.nextSibling)if(p.nodeType===1)p.nodeIndex=++E;v.sizcache=h}g=g.nodeIndex-w;return m===0?g===0:g%m===0&&g/m>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var m=h[1];
g=q.attrHandle[m]?q.attrHandle[m](g):g[m]!=null?g[m]:g.getAttribute(m);m=g+"";var p=h[2];h=h[4];return g==null?p==="!=":p==="="?m===h:p==="*="?m.indexOf(h)>=0:p==="~="?(" "+m+" ").indexOf(h)>=0:!h?m&&g!==false:p==="!="?m!==h:p==="^="?m.indexOf(h)===0:p==="$="?m.substr(m.length-h.length)===h:p==="|="?m===h||m.substr(0,h.length+1)===h+"-":false},POS:function(g,h,m,p){var w=q.setFilters[h[2]];if(w)return w(g,m,h,p)}}},z=q.match.POS;for(var L in q.match){q.match[L]=new RegExp(q.match[L].source+/(?![^\[]*\])(?![^\(]*\))/.source);
q.leftMatch[L]=new RegExp(/(^(?:.|\r|\n)*?)/.source+q.match[L].source.replace(/\\(\d+)/g,function(g,h){return"\\"+(h-0+1)}))}var R=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(x.documentElement.childNodes,0)}catch(W){R=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var m=0,p=g.length;m<p;m++)h.push(g[m]);else for(m=0;g[m];m++)h.push(g[m]);return h}}var Z;
if(x.documentElement.compareDocumentPosition)Z=function(g,h){if(!g.compareDocumentPosition||!h.compareDocumentPosition){if(g==h)k=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)k=true;return g};else if("sourceIndex"in x.documentElement)Z=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)k=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)k=true;return g};else if(x.createRange)Z=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==
h)k=true;return g.ownerDocument?-1:1}var m=g.ownerDocument.createRange(),p=h.ownerDocument.createRange();m.setStart(g,0);m.setEnd(g,0);p.setStart(h,0);p.setEnd(h,0);g=m.compareBoundaryPoints(Range.START_TO_END,p);if(g===0)k=true;return g};(function(){var g=x.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var m=x.documentElement;m.insertBefore(g,m.firstChild);if(x.getElementById(h)){q.find.ID=function(p,w,v){if(typeof w.getElementById!=="undefined"&&!v)return(w=
w.getElementById(p[1]))?w.id===p[1]||typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id").nodeValue===p[1]?[w]:C:[]};q.filter.ID=function(p,w){var v=typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id");return p.nodeType===1&&v&&v.nodeValue===w}}m.removeChild(g);m=g=null})();(function(){var g=x.createElement("div");g.appendChild(x.createComment(""));if(g.getElementsByTagName("*").length>0)q.find.TAG=function(h,m){m=m.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var p=
0;m[p];p++)m[p].nodeType===1&&h.push(m[p]);m=h}return m};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")q.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();x.querySelectorAll&&function(){var g=s,h=x.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){s=function(p,w,v,E){w=w||x;if(!E&&w.nodeType===9&&!F(w))try{return R(w.querySelectorAll(p),
v)}catch(B){}return g(p,w,v,E)};for(var m in g)s[m]=g[m];h=null}}();(function(){var g=x.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){q.order.splice(1,0,"CLASS");q.find.CLASS=function(h,m,p){if(typeof m.getElementsByClassName!=="undefined"&&!p)return m.getElementsByClassName(h[1])};g=null}}})();var ea=x.compareDocumentPosition?
function(g,h){return g.compareDocumentPosition(h)&16}:function(g,h){return g!==h&&(g.contains?g.contains(h):true)},F=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},Pa=function(g,h){var m=[],p="",w;for(h=h.nodeType?[h]:h;w=q.match.PSEUDO.exec(g);){p+=w[0];g=g.replace(q.match.PSEUDO,"")}g=q.relative[g]?g+"*":g;w=0;for(var v=h.length;w<v;w++)s(g,h[w],m);return s.filter(p,m)};c.find=s;c.expr=s.selectors;c.expr[":"]=c.expr.filters;c.unique=s.uniqueSort;c.getText=
a;c.isXMLDoc=F;c.contains=ea})();var Qa=/Until$/,db=/^(?:parents|prevUntil|prevAll)/,eb=/,/;N=Array.prototype.slice;var Ya=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(na.test(b))return c.filter(b,f,!d);else b=c.filter(b,a)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=
this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var k=0;k<d;k++)if(b[k]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ya(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ya(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>
0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j={},k;if(f&&a.length){e=0;for(var r=a.length;e<r;e++){k=a[e];j[k]||(j[k]=c.expr.match.POS.test(k)?c(k,b||this.context):k)}for(;f&&f.ownerDocument&&f!==b;){for(k in j){e=j[k];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:k,elem:f});delete j[k]}}f=f.parentNode}}return d}var s=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(q,z){for(;z&&z.ownerDocument&&z!==b;){if(s?s.index(z)>-1:c(z).is(a))return z;
z=z.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(ga(a[0])||ga(b[0])?b:c.unique(b))},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,f){var e=c.map(this,b,d);Qa.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||eb.test(f))&&db.test(a))e=e.reverse();return this.pushStack(e,a,N.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=
a[b];a&&a.nodeType!==9&&(d===C||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===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 Za=/ jQuery\d+="(?:\d+|null)"/g,La=/^\s+/,fb=/(<([\w:]+)[^>]*?)\/>/g,gb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,$a=/<([\w:]+)/,hb=/<tbody/i,ib=/<|&\w+;/,jb=function(a,b,d){return gb.test(d)?a:b+"></"+d+
">"},fa={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,"",""]};fa.optgroup=fa.option;fa.tbody=fa.tfoot=fa.colgroup=fa.caption=fa.thead;fa.th=fa.td;if(!c.support.htmlSerialize)fa._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
c(this);return d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==C)return this.empty().append((this[0]&&this[0].ownerDocument||x).createTextNode(a));return c.getText(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){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}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Za,"").replace(La,"")],f)[0]}else return this.cloneNode(true)});if(a===true){T(this,b);T(this.find("*"),b.find("*"))}return b},html:function(a){if(a===C)return this[0]&&this[0].nodeType===
1?this[0].innerHTML.replace(Za,""):null;else if(typeof a==="string"&&!/<script/i.test(a)&&(c.support.leadingWhitespace||!La.test(a))&&!fa[($a.exec(a)||["",""])[1].toLowerCase()])try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){ma(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}else c.isFunction(a)?this.each(function(e){var j=c(this),k=j.html();j.empty().append(function(){return a.call(this,e,k)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
this[0].parentNode){c.isFunction(a)||(a=c(a).detach());return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(z){return c.nodeName(z,"table")?z.getElementsByTagName("tbody")[0]||z.appendChild(z.ownerDocument.createElement("tbody")):z}var e,j,k=a[0],r=[];if(c.isFunction(k))return this.each(function(z){var L=
c(this);a[0]=k.call(this,z,b?L.html():C);return L.domManip(a,b,d)});if(this[0]){e=a[0]&&a[0].parentNode&&a[0].parentNode.nodeType===11?{fragment:a[0].parentNode}:U(a,this,r);if(j=e.fragment.firstChild){b=b&&c.nodeName(j,"tr");for(var s=0,q=this.length;s<q;s++)d.call(b?f(this[s],j):this[s],e.cacheable||this.length>1||s>0?e.fragment.cloneNode(true):e.fragment)}r&&c.each(r,Aa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
function(a,b){c.fn[a]=function(d){var f=[];d=c(d);for(var e=0,j=d.length;e<j;e++){var k=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),k);f=f.concat(k)}return this.pushStack(f,a,d.selector)}});c.each({remove:function(a,b){if(!a||c.filter(a,[this]).length){if(!b&&this.nodeType===1){ma(this.getElementsByTagName("*"));ma([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&ma(this.getElementsByTagName("*"));this.firstChild;)this.removeChild(this.firstChild)}},
function(a,b){c.fn[a]=function(){return this.each(b,arguments)}});c.extend({clean:function(a,b,d,f){b=b||x;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||x;var e=[];c.each(a,function(j,k){if(typeof k==="number")k+="";if(k){if(typeof k==="string"&&!ib.test(k))k=b.createTextNode(k);else if(typeof k==="string"){k=k.replace(fb,jb);var r=($a.exec(k)||["",""])[1].toLowerCase(),s=fa[r]||fa._default,q=s[0];j=b.createElement("div");for(j.innerHTML=s[1]+k+s[2];q--;)j=j.lastChild;
if(!c.support.tbody){q=hb.test(k);r=r==="table"&&!q?j.firstChild&&j.firstChild.childNodes:s[1]==="<table>"&&!q?j.childNodes:[];for(s=r.length-1;s>=0;--s)c.nodeName(r[s],"tbody")&&!r[s].childNodes.length&&r[s].parentNode.removeChild(r[s])}!c.support.leadingWhitespace&&La.test(k)&&j.insertBefore(b.createTextNode(La.exec(k)[0]),j.firstChild);k=c.makeArray(j.childNodes)}if(k.nodeType)e.push(k);else e=c.merge(e,k)}});if(d)for(a=0;e[a];a++)if(f&&c.nodeName(e[a],"script")&&(!e[a].type||e[a].type.toLowerCase()===
"text/javascript"))f.push(e[a].parentNode?e[a].parentNode.removeChild(e[a]):e[a]);else{e[a].nodeType===1&&e.splice.apply(e,[a+1,0].concat(c.makeArray(e[a].getElementsByTagName("script"))));d.appendChild(e[a])}return e}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,ab=/alpha\([^)]*\)/,bb=/opacity=([^)]*)/,Ra=/float/i,Sa=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=x.defaultView&&
x.defaultView.getComputedStyle,cb=c.support.cssFloat?"cssFloat":"styleFloat",Ta=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return Ba(this,a,b,true,function(d,f,e){if(e===C)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return C;if((b==="width"||b==="height")&&parseFloat(d)<0)d=C;var f=a.style||a,e=d!==C;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""===
"NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=ab.test(a)?a.replace(ab,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(bb.exec(f.filter)[1])/100+"":""}if(Ra.test(b))b=cb;b=b.replace(Sa,Ta);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function k(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=
parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!==0?k():c.swap(a,ob,k);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=bb.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(Ra.test(b))b=cb;if(!d&&e&&e[b])f=e[b];else if(rb){if(Ra.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=
a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(Sa,Ta);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=
f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=ka(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,ya=/=\?(&|$)/,Ua=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,
yb=/%20/g;c.fn.extend({_load:c.fn.load,load:function(a,b,d){if(typeof a!=="string")return this._load(a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}c.ajax({url:a,type:f,dataType:"html",data:b,context:this,complete:function(j,k){if(k==="success"||k==="notmodified")this.html(e?c("<div />").append(j.responseText.replace(tb,
"")).find(e):j.responseText);d&&this.each(d,[j.responseText,k,j])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});
c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},
ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:K.XMLHttpRequest&&(K.location.protocol!=="file:"||!K.ActiveXObject)?function(){return new K.XMLHttpRequest}:function(){try{return new K.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",
text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&e.success.call(s,r,k,F);e.global&&f("ajaxSuccess",[F,e])}function d(){e.complete&&e.complete.call(s,F,k);e.global&&f("ajaxComplete",[F,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(w,v){(e.context?c(e.context):c.event).trigger(w,v)}var e=c.extend(true,{},c.ajaxSettings,a),j,k,r,s=e.context||e,q=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,
e.traditional);if(e.dataType==="jsonp"){if(q==="GET")ya.test(e.url)||(e.url+=(Ua.test(e.url)?"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!ya.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&ya.test(e.data)||ya.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(ya,"="+j+"$1");e.url=e.url.replace(ya,"="+j+"$1");e.dataType="script";K[j]=K[j]||function(w){r=w;b();d();K[j]=C;try{delete K[j]}catch(v){}R&&
R.removeChild(W)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===false&&q==="GET"){var z=ka(),L=e.url.replace(wb,"$1_="+z+"$2");e.url=L+(L===e.url?(Ua.test(e.url)?"&":"?")+"_="+z:"")}if(e.data&&q==="GET")e.url+=(Ua.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");z=(z=xb.exec(e.url))&&(z[1]&&z[1]!==location.protocol||z[2]!==location.host);if(e.dataType==="script"&&q==="GET"&&z){var R=x.getElementsByTagName("head")[0]||x.documentElement,W=x.createElement("script");
W.src=e.url;if(e.scriptCharset)W.charset=e.scriptCharset;if(!j){var Z=false;W.onload=W.onreadystatechange=function(){if(!Z&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){Z=true;b();d();W.onload=W.onreadystatechange=null;R&&W.parentNode&&R.removeChild(W)}}}R.insertBefore(W,R.firstChild);return C}var ea=false,F=e.xhr();if(F){e.username?F.open(q,e.url,e.async,e.username,e.password):F.open(q,e.url,e.async);try{if(e.data||a&&a.contentType)F.setRequestHeader("Content-Type",
e.contentType);if(e.ifModified){c.lastModified[e.url]&&F.setRequestHeader("If-Modified-Since",c.lastModified[e.url]);c.etag[e.url]&&F.setRequestHeader("If-None-Match",c.etag[e.url])}z||F.setRequestHeader("X-Requested-With","XMLHttpRequest");F.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(Pa){}if(e.beforeSend&&e.beforeSend.call(s,F,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");F.abort();return false}e.global&&f("ajaxSend",
[F,e]);var g=F.onreadystatechange=function(w){if(!F||F.readyState===0){ea||d();ea=true;if(F)F.onreadystatechange=c.noop}else if(!ea&&F&&(F.readyState===4||w==="timeout")){ea=true;F.onreadystatechange=c.noop;k=w==="timeout"?"timeout":!c.httpSuccess(F)?"error":e.ifModified&&c.httpNotModified(F,e.url)?"notmodified":"success";if(k==="success")try{r=c.httpData(F,e.dataType,e)}catch(v){k="parsererror"}if(k==="success"||k==="notmodified")j||b();else c.handleError(e,F,k);d();w==="timeout"&&F.abort();if(e.async)F=
null}};try{var h=F.abort;F.abort=function(){if(F){h.call(F);if(F)F.readyState=0}g()}}catch(m){}e.async&&e.timeout>0&&setTimeout(function(){F&&!ea&&g("timeout")},e.timeout);try{F.send(q==="POST"||q==="PUT"||q==="DELETE"?e.data:null)}catch(p){c.handleError(e,F,null,p);d()}e.async||g();return F}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||K,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol===
"file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;if(e&&a.documentElement.nodeName==="parsererror")throw"parsererror";if(d&&
d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&f.indexOf("json")>=0)if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))a=K.JSON&&K.JSON.parse?K.JSON.parse(a):(new Function("return "+a))();else throw"Invalid JSON: "+a;else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(e,j){j=
c.isFunction(j)?j():j;f[f.length]=encodeURIComponent(e)+"="+encodeURIComponent(j)}var f=[];if(b===C)b=c.ajaxSettings.traditional;c.isArray(a)||a.jquery?c.each(a,function(){d(this.name,this.value)}):c.each(a,function e(j,k){if(c.isArray(k))c.each(k,function(r,s){b?d(j,s):e(j+"["+(typeof s==="object"||c.isArray(s)?r:"")+"]",s)});else!b&&k!=null&&typeof k==="object"?c.each(k,function(r,s){e(j+"["+r+"]",s)}):d(j,k)});return f.join("&").replace(yb,"+")}});var Va={},zb=/toggle|show|hide/,Ab=/^([+-]=)?([\d+-.]+)(.*)$/,
Ma,Wa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a!=null)return this.animate(ba("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(Va[d])f=Va[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();
Va[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a!=null)return this.animate(ba("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&
c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(ba("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),k,r=this.nodeType===1&&
c(this).is(":hidden"),s=this;for(k in a){var q=k.replace(Sa,Ta);if(k!==q){a[q]=a[k];delete a[k];k=q}if(a[k]==="hide"&&r||a[k]==="show"&&!r)return j.complete.call(this);if((k==="height"||k==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[k])){(j.specialEasing=j.specialEasing||{})[k]=a[k][1];a[k]=a[k][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(z,L){var R=new c.fx(s,j,z);if(zb.test(L))R[L==="toggle"?
r?"show":"hide":L](a);else{var W=Ab.exec(L),Z=R.cur(true)||0;if(W){L=parseFloat(W[2]);var ea=W[3]||"px";if(ea!=="px"){s.style[z]=(L||1)+ea;Z=(L||1)/R.cur(true)*Z;s.style[z]=Z+ea}if(W[1])L=(W[1]==="-="?-1:1)*L+Z;R.custom(Z,L,ea)}else R.custom(Z,L,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:ba("show",1),slideUp:ba("hide",
1),slideToggle:ba("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration==="number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};
return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=
null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=ka();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!Ma)Ma=setInterval(c.fx.tick,13)},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=ka(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=
null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?
"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(Ma);Ma=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};c.fn.offset="getBoundingClientRect"in x.documentElement?function(a){var b=this[0];if(!b||!b.ownerDocument)return null;if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);
var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(!b||!b.ownerDocument)return null;if(a)return this.each(function(z){c.offset.setOffset(this,a,z)});if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();
var d=b.offsetParent,f=b,e=b.ownerDocument,j,k=e.documentElement,r=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var s=b.offsetTop,q=b.offsetLeft;(b=b.parentNode)&&b!==r&&b!==k;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;s-=b.scrollTop;q-=b.scrollLeft;if(b===d){s+=b.offsetTop;q+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){s+=parseFloat(j.borderTopWidth)||
0;q+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){s+=parseFloat(j.borderTopWidth)||0;q+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){s+=r.offsetTop;q+=r.offsetLeft}if(c.offset.supportsFixedPosition&&f.position==="fixed"){s+=Math.max(k.scrollTop,r.scrollTop);q+=Math.max(k.scrollLeft,r.scrollLeft)}return{top:s,left:q}};c.offset={initialize:function(){var a=x.body,b=x.createElement("div"),
d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||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;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;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.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,k=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,d,e);d={top:b.top-e.top+j,left:b.left-
e.left+k};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=
this.offsetParent||x.body;a&&!/^body|html$/i.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(f){var e=this[0],j;if(!e)return null;if(f!==C)return this.each(function(){if(j=sa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=sa(e))?"pageXOffset"in j?j[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});
c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;return"scrollTo"in e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+
b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===C?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});K.jQuery=K.$=c})(window);
(function(){function K(){c=this.id;$("#bin").toggleClass("javascript",this.id=="javascript");$(H.html.win.document).find("body").removeClass("focus");$(H.javascript.win.document).find("body").removeClass("focus");$(this).find("body").addClass("focus")}function C(){return c}function za(n){var t=H[n],D=T.getItem("panel");t.ready=true;t.wrapping.style.position="static";t.wrapping.style.height="auto";t.win.document.id=n;$(t.win.document).bind("keydown",ka);$(t.win.document).bind("keyup",Ca);$(t.win.document).focus(K);
var y=$(".code."+n+" > .label");$(t.win.document).bind("scroll",function(){this.body.scrollTop>10?y.stop().animate({opacity:0},50,function(){$(this).hide()}):y.show().stop().animate({opacity:1},250)});Aa(n);if(D==n||D==null&&n=="javascript"){t.focus();t.selectLines(t.nthLine(T.getItem("line")),T.getItem("character"))}}function Aa(n){var t=T.getItem(n),D=U.getItem("saved-"+n),y=false;if(t==template[n])H[n].setCode(t);else if(t){H[n].setCode(t);y=t!=D}else D&&!/edit/.test(window.location)&&!window.location.search?
H[n].setCode(D):H[n].setCode(template[n]);y&&$(document).trigger("codeChange",[false,true])}function Ba(n){var t=false;if($.browser.webkit)t=$.browser.platform=="win"?n.altKey:$.browser.version<4?n.ctrlKey:n.ctrlKey&&n.altKey;else if($.browser.mozilla)t=n.shiftKey&&n.altKey;else if($.browser.msie)t=n.altKey;return t}function ka(n){var t=Ba(n);if(t&&n.which==39&&this.id=="javascript"){H.html.focus();return false}else if(t&&n.which==37&&this.id=="html"){H.javascript.focus();return false}else if(t&&
n.which==49){$("#control a.source").click();return false}else if(t&&n.which==50){$("#control a.preview").click();return false}return true}function Ca(n){({16:1,17:1,18:1,20:1,27:1,37:1,38:1,39:1,40:1,91:1,93:1})[n.which]||$(document).trigger("codeChange");return true}function Da(){var n=$("#preview iframe")[0];n=n.contentDocument||n.contentWindow.document;var t=H.html.getCode(),D=[],y=H.javascript.getCode();if(x.test(y))y=ta?y.replace(/(^.|\b)console\./g,"_console."):y.replace(/(^.|\b)console\./g,
"window.top.console.");if($.trim(t))if(/%code%/.test(t)){D=t.split("%code%");t=D[0]+y+D[1]}else{D=t.split("</body>");t=D[0]+'<script src="http://jsbin.com/js/render/console.js"><\/script>\n<script>\ntry {\n'+y+"\n} catch (e) {"+(window.console==undefined?"_":"window.top.")+"console.error(e)}\n<\/script>\n</body>"+D[1]}else t="<pre>\n"+y+"</pre>";if(/\$\(document\)\.ready/.test(t))t=t.replace(/\$\(document\)\.ready/,"window.onload = ");n.open();Oa?n.write("<pre>"+t.replace(/[<>&]/g,function(o){if(o==
"<")return"&lt;";if(o==">")return"&gt;";if(o=='"')return"&quot;"})+"</pre>"):n.write(t);n.close()}function Ha(){var n=$("form").append('<input type="hidden" name="javascript" />').append('<input type="hidden" name="html" />');n.find("input[name=javascript]").val(H.javascript.getCode());n.find("input[name=html]").val(H.html.getCode());n.submit()}var Ea=window.CodeMirrorConfig||{},Y=function(){function n(o,u){for(var G in u)o.hasOwnProperty(G)||(o[G]=u[G])}function t(o,u){for(var G=0;G<o.length;G++)u(o[G])}
function D(o){var u=document.createElement("DIV"),G=document.createElement("DIV");u.style.position="absolute";u.style.height="100%";if(u.style.setExpression)try{u.style.setExpression("height","this.previousSibling.offsetHeight + 'px'")}catch(S){}u.style.top="0px";u.style.overflow="hidden";o.appendChild(u);G.className="CodeMirror-line-numbers";u.appendChild(G);return u}function y(o,u){if(u.dumbTabs)u.tabMode="spaces";else if(u.normalTab)u.tabMode="default";this.options=u=u||{};n(u,Ea);var G=this.frame=
document.createElement("IFRAME");if(u.iframeClass)G.className=u.iframeClass;G.frameBorder=0;G.src="javascript:false;";G.style.border="0";G.style.width="100%";G.style.height="100%";G.style.display="block";var S=this.wrapping=document.createElement("DIV");S.style.position="relative";S.className="CodeMirror-wrapping";S.style.width=u.width;S.style.height=u.height;o.appendChild?o.appendChild(S):o(S);S.appendChild(G);if(u.lineNumbers)this.lineNumbers=D(S);G.CodeMirror=this;this.win=G.contentWindow;if(typeof u.parserfile==
"string")u.parserfile=[u.parserfile];if(typeof u.stylesheet=="string")u.stylesheet=[u.stylesheet];var N=['<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head>'];N.push('<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>');t(u.stylesheet,function(A){N.push('<link rel="stylesheet" type="text/css" href="'+A+'"/>')});t(u.basefiles.concat(u.parserfile),function(A){N.push('<script type="text/javascript" src="'+u.path+A+'"><\/script>')});
N.push('</head><body style="border-width: 0;" class="editbox" spellcheck="'+(u.disableSpellcheck?"false":"true")+'"></body></html>');o=this.win.document;o.open();o.write(N.join(""));o.close()}n(Ea,{stylesheet:"",path:"",parserfile:[],basefiles:["util.js","stringstream.js","select.js","undo.js","editor.js","tokenize.js"],iframeClass:null,passDelay:200,passTime:50,lineNumberDelay:200,lineNumberTime:50,continuousScanning:false,saveFunction:null,onChange:null,undoDepth:50,undoDelay:800,disableSpellcheck:true,
textWrapping:true,readOnly:false,width:"",height:"300px",autoMatchParens:false,parserConfig:null,tabMode:"indent",reindentOnLoad:false,activeTokens:null,cursorActivity:null,lineNumbers:false,indentUnit:2});y.prototype={init:function(){this.options.initCallback&&this.options.initCallback(this);this.options.lineNumbers&&this.activateLineNumbers();this.options.reindentOnLoad&&this.reindent()},getCode:function(){return this.editor.getCode()},setCode:function(o){this.editor.importCode(o)},selection:function(){this.focusIfIE();
return this.editor.selectedText()},reindent:function(){this.editor.reindent()},reindentSelection:function(){this.focusIfIE();this.editor.reindentSelection(null)},focusIfIE:function(){this.win.select.ie_selection&&this.focus()},focus:function(){this.win.focus();this.editor.selectionSnapshot&&this.win.select.setBookmark(this.win.document.body,this.editor.selectionSnapshot)},replaceSelection:function(o){this.focus();this.editor.replaceSelection(o);return true},replaceChars:function(o,u,G){this.editor.replaceChars(o,
u,G)},getSearchCursor:function(o,u,G){return this.editor.getSearchCursor(o,u,G)},undo:function(){this.editor.history.undo()},redo:function(){this.editor.history.redo()},historySize:function(){return this.editor.history.historySize()},clearHistory:function(){this.editor.history.clear()},grabKeys:function(o,u){this.editor.grabKeys(o,u)},ungrabKeys:function(){this.editor.ungrabKeys()},setParser:function(o){this.editor.setParser(o)},setSpellcheck:function(o){this.win.document.body.spellcheck=o},setTextWrapping:function(o){if(o!=
this.options.textWrapping){this.win.document.body.style.whiteSpace=o?"":"nowrap";this.options.textWrapping=o;if(this.lineNumbers){this.setLineNumbers(false);this.setLineNumbers(true)}}},setIndentUnit:function(o){this.win.indentUnit=o},setUndoDepth:function(o){this.editor.history.maxDepth=o},setTabMode:function(o){this.options.tabMode=o},setLineNumbers:function(o){if(o&&!this.lineNumbers){this.lineNumbers=D(this.wrapping);this.activateLineNumbers()}else if(!o&&this.lineNumbers){this.wrapping.removeChild(this.lineNumbers);
this.wrapping.style.marginLeft="";this.lineNumbers=null}},cursorPosition:function(o){this.focusIfIE();return this.editor.cursorPosition(o)},firstLine:function(){return this.editor.firstLine()},lastLine:function(){return this.editor.lastLine()},nextLine:function(o){return this.editor.nextLine(o)},prevLine:function(o){return this.editor.prevLine(o)},lineContent:function(o){return this.editor.lineContent(o)},setLineContent:function(o,u){this.editor.setLineContent(o,u)},insertIntoLine:function(o,u,G){this.editor.insertIntoLine(o,
u,G)},selectLines:function(o,u,G,S){this.win.focus();this.editor.selectLines(o,u,G,S)},nthLine:function(o){for(var u=this.firstLine();o>1&&u!==false;o--)u=this.nextLine(u);return u},lineNumber:function(o){for(var u=0;o!==false;){u++;o=this.prevLine(o)}return u},jumpToLine:function(o){this.selectLines(this.nthLine(o),0);this.win.focus()},currentLine:function(){return this.lineNumber(this.cursorPosition().line)},activateLineNumbers:function(){function o(){for(var ca=N;ca.parentNode;ca=ca.parentNode);
if(!Q.parentNode||ca!=document||!A.Editor){try{aa()}catch(qa){}clearInterval(sizeInterval)}else if(Q.offsetWidth!=M){M=Q.offsetWidth;Q.style.left="-"+(N.parentNode.style.marginLeft=M+"px")}}function u(){Q.scrollTop=O.scrollTop||I.documentElement.scrollTop||0}function G(){function ca(){for(var X=50+Math.max(O.offsetHeight,N.offsetHeight);V.offsetHeight<X;){V.appendChild(document.createElement("DIV"));V.lastChild.innerHTML=qa++}u()}var qa=1,ua=A.addEventHandler(A,"scroll",ca,true),ra=A.addEventHandler(A,
"resize",ca,true);aa=function(){ua();ra()}}function S(){function ca(ja){ia||(ia=V.appendChild(document.createElement("DIV")));ia.innerHTML=ja;wa=ia.offsetHeight+ia.offsetTop;ia=ia.nextSibling}function qa(){if(!(!V.parentNode||V.parentNode!=P.lineNumbers)){for(var ja=(new Date).getTime()+P.options.lineNumberTime;X;){for(ca(va++);X&&!A.isBR(X);X=X.nextSibling)for(var Qa=X.offsetTop+X.offsetHeight;Qa-3>wa;)ca("&nbsp;");if(X)X=X.nextSibling;if((new Date).getTime()>ja){la=setTimeout(qa,P.options.lineNumberDelay);
return}}for(ja=50+Math.max(O.offsetHeight,N.offsetHeight);ia||V.offsetHeight<ja;)ca(va++);u()}}function ua(){u();X=O.firstChild;ia=V.firstChild;wa=0;va=1;qa()}function ra(){la&&clearTimeout(la);ua()}var X,ia,va,wa;ua();var la=null;P.updateNumbers=ra;var Ja=A.addEventHandler(A,"scroll",u,true),Fa=A.addEventHandler(A,"resize",ra,true);aa=function(){la&&clearTimeout(la);if(P.updateNumbers==ra)P.updateNumbers=null;Ja();Fa()}}var N=this.frame,A=N.contentWindow,I=A.document,O=I.body,Q=this.lineNumbers,
V=Q.firstChild,P=this,M=null,aa=function(){};o();sizeInterval=setInterval(o,500);(this.options.textWrapping?S:G)()}};y.InvalidLineHandle={toString:function(){return"CodeMirror.InvalidLineHandle"}};y.replace=function(o){if(typeof o=="string")o=document.getElementById(o);return function(u){o.parentNode.replaceChild(u,o)}};y.fromTextArea=function(o,u){function G(A){o.nextSibling?o.parentNode.insertBefore(A,o.nextSibling):o.parentNode.appendChild(A)}if(typeof o=="string")o=document.getElementById(o);
u=u||{};if(o.style.width&&u.width==null)u.width=o.style.width;if(o.style.height&&u.height==null)u.height=o.style.height;if(u.content==null)u.content=o.value;if(o.form){function S(){o.value=N.getCode()}typeof o.form.addEventListener=="function"?o.form.addEventListener("submit",S,false):o.form.attachEvent("onsubmit",S)}o.style.display="none";var N=new y(G,u);return N};y.isProbablySupported=function(){var o;return window.opera?Number(window.opera.version())>=9.52:/Apple Computers, Inc/.test(navigator.vendor)&&
(o=navigator.userAgent.match(/Version\/(\d+(?:\.\d+)?)\./))?Number(o[1])>=3:document.selection&&window.ActiveXObject&&(o=navigator.userAgent.match(/MSIE (\d+(?:\.\d*)?)\b/))?Number(o[1])>=6:(o=navigator.userAgent.match(/gecko\/(\d{8})/i))?Number(o[1])>=20050901:(o=navigator.userAgent.match(/AppleWebKit\/(\d+)/))?Number(o[1])>=525:null};return y}();if(!this.JSON)this.JSON={};(function(){function n(A){return A<10?"0"+A:A}function t(A){o.lastIndex=0;return o.test(A)?'"'+A.replace(o,function(I){var O=
S[I];return typeof O==="string"?O:"\\u"+("0000"+I.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+A+'"'}function D(A,I){var O,Q,V=u,P,M=I[A];if(M&&typeof M==="object"&&typeof M.toJSON==="function")M=M.toJSON(A);if(typeof N==="function")M=N.call(I,A,M);switch(typeof M){case "string":return t(M);case "number":return isFinite(M)?String(M):"null";case "boolean":case "null":return String(M);case "object":if(!M)return"null";u+=G;P=[];if(Object.prototype.toString.apply(M)==="[object Array]"){Q=M.length;
for(A=0;A<Q;A+=1)P[A]=D(A,M)||"null";I=P.length===0?"[]":u?"[\n"+u+P.join(",\n"+u)+"\n"+V+"]":"["+P.join(",")+"]";u=V;return I}if(N&&typeof N==="object"){Q=N.length;for(A=0;A<Q;A+=1){O=N[A];if(typeof O==="string")if(I=D(O,M))P.push(t(O)+(u?": ":":")+I)}}else for(O in M)if(Object.hasOwnProperty.call(M,O))if(I=D(O,M))P.push(t(O)+(u?": ":":")+I);I=P.length===0?"{}":u?"{\n"+u+P.join(",\n"+u)+"\n"+V+"}":"{"+P.join(",")+"}";u=V;return I}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=
function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var y=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
u,G,S={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},N;if(typeof JSON.stringify!=="function")JSON.stringify=function(A,I,O){var Q;G=u="";if(typeof O==="number")for(Q=0;Q<O;Q+=1)G+=" ";else if(typeof O==="string")G=O;if((N=I)&&typeof I!=="function"&&(typeof I!=="object"||typeof I.length!=="number"))throw new Error("JSON.stringify");return D("",{"":A})};if(typeof JSON.parse!=="function")JSON.parse=function(A,I){function O(Q,V){var P,M,aa=Q[V];if(aa&&typeof aa===
"object")for(P in aa)if(Object.hasOwnProperty.call(aa,P)){M=O(aa,P);if(M!==undefined)aa[P]=M;else delete aa[P]}return I.call(Q,V,aa)}y.lastIndex=0;if(y.test(A))A=A.replace(y,function(Q){return"\\u"+("0000"+Q.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(A.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){A=eval("("+A+")");return typeof I==="function"?O({"":A},""):
A}throw new SyntaxError("JSON.parse");}})();var ga=function(){var n=navigator.userAgent.toLowerCase(),t=null;if(/mozilla/.test(n)&&!/compatible/.test(n)){t=(new Date).getTime();document.cookie="__cprobe="+t+";path=/";if(document.cookie.indexOf(t,0)===-1)return true}return false}(),T,U;if(!ga&&window.sessionStorage)T=window.sessionStorage;T||(T=function(){var n=window.top.name?JSON.parse(window.top.name):{};return{clear:function(){n={};window.top.name=""},getItem:function(t){return n[t]||null},removeItem:function(t){delete n[t];
window.top.name=JSON.stringify(n)},setItem:function(t,D){n[t]=D;window.top.name=JSON.stringify(n)}}}());if(!ga&&!window.localStorage||ga)U=T;else if(!ga)U=window.localStorage;var ma=Array.prototype.push;ga=function(){this.init();this.userSpecified=JSON.parse(U.getItem("libraries")||"[]");for(i=0;i<this.userSpecified.length;i++)ma.call(this,this.userSpecified[i])};ga.prototype.init=function(){var n={yui:{text:"YUI",scripts:[{text:"YUI 2.8.0r4",url:"http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/yuiloader/yuiloader-min.js"},
{text:"YUI 2.7.0",url:"http://ajax.googleapis.com/ajax/libs/yui/2.7.0/build/yuiloader/yuiloader-min.js"}]},mootools:{text:"MooTools",scripts:[{text:"Mootools 1.2.4",url:"http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js"},{text:"Mootools 1.2.3",url:"http://ajax.googleapis.com/ajax/libs/mootools/1.2.3/mootools-yui-compressed.js"}]},prototype:{text:"Prototype",scripts:[{text:"Prototype latest",url:"http://ajax.googleapis.com/ajax/libs/prototype/1/prototype.js"},{text:"Prototype 1.6.1.0",
url:"http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"},{text:"Prototype 1.6.0.3",url:"http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js"}]},jquery:{text:"jQuery",scripts:[{text:"jQuery latest",url:"http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"},{text:"jQuery 1.4.2",url:"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"},{text:"jQuery 1.4.0",url:"http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"},{text:"jQuery 1.3.2",
url:"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"},{text:"jQuery 1.2.6",url:"http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"}]},jqueryui:{text:"jQuery UI",requires:"http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js",style:"http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css",scripts:[{text:"jQuery UI 1.7.2",url:"http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"}]},scriptaculous:{text:"script.aculo.us",requires:"http://ajax.googleapis.com/ajax/libs/prototype/1/prototype.js",
scripts:[{text:"script.aculo.us 1.8.3",url:"http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/scriptaculous.js"}]},dojo:{text:"Dojo",scripts:[{text:"Dojo 1.4.1",url:"http://ajax.googleapis.com/ajax/libs/dojo/1.4.1/dojo/dojo.xd.js"},{text:"Dojo 1.3.2",url:"http://ajax.googleapis.com/ajax/libs/dojo/1.3.2/dojo/dojo.xd.js"}]},ext:{text:"Ext Core",style:"http://extjs.cachefly.net/ext-2.2/resources/css/ext-all.css",scripts:[{text:"Ext Core 3.1",url:"http://ajax.googleapis.com/ajax/libs/ext-core/3.1.0/ext-core.js"}]}},
t="jquery jqueryui prototype scriptaculous yui mootools dojo ext".split(" "),D=0;for(D=this.length=0;D<t.length;D++)ma.call(this,n[t[D]])};ga.prototype.add=function(n){this.userSpecified.push(n);try{U.setItem("libraries",JSON.stringify(this.userSpecified))}catch(t){}ma.call(this,n);$("#library").trigger("init")};ga.prototype.clear=function(){this.userSpecified=[];U.removeItem("libraries");this.init();$("#library").trigger("init")};var ba=new ga;window.libraries=ba;$("#library").bind("init",function(){var n=
$(this),t=['<option value="none">None</option>'],D=n.val(),y,o;for(y=0;y<ba.length;y++){t.push('<optgroup label="'+ba[y].text+'">');for(o=0;o<ba[y].scripts.length;o++)t.push('<option value="'+y+"-"+o+'">'+ba[y].scripts[o].text+"</option>");t.push("</optgroup>")}n.html(t.join("")).val(D)}).trigger("init");$("#library").bind("change",function(){var n=[],t={},D={},y=H.html.getCode();y=y.replace(/<script class="jsbin".*><\/script>\n?/g,"");y=y.replace(/<link class="jsbin".*><\/link>\n?/g,"");if(this.value!=
"none"){D={line:H.html.currentLine(),character:H.html.cursorPosition().character};n=this.value.split("-");t=ba[n[0]];y=y.replace("<head",'<head>\n<script class="jsbin" src="'+t.scripts[n[1]].url+'"><\/script');if(t.requires)y=y.replace("<head",'<head>\n<script class="jsbin" src="'+t.requires+'"><\/script');if(t.style)y=y.replace("<head",'<head>\n<link class="jsbin" href="'+t.style+'" rel="stylesheet" type="text/css"></link')}H.html.setCode(y);H.html.focus();H.html.selectLines(H.html.nthLine(D.line),
D.character)});var sa=$("#revert");$(document).bind("codeChange",function(n,t,D){if(t==undefined)t=false;else sa.removeClass("enable");if(!t&&!/\*$/.test(document.title)){if(/debug/i.test(document.title))document.title="JS Bin - [unsaved]";document.title+="*";if(sa.addClass("enable").is(":hidden"))sa[D?"show":"fadeIn"]().next().removeClass("left")}else if(t&&/\*$/.test(document.title))document.title=document.title.replace(/\*$/,"")});var c="javascript",H={};H.html=Y.fromTextArea("html",{basefiles:["basefiles.js"],
parserfile:[],stylesheet:["/css/codemirror.css","/css/htmlcodeframe.css"],path:"/js/vendor/codemirror/",tabMode:"shift",iframeClass:"stretch codeframe",initCallback:function(){za("html")}});H.javascript=Y.fromTextArea("javascript",{basefiles:["basefiles.js"],parserfile:["parsejavascript.js"],stylesheet:["/css/codemirror.css","/css/codeframe.css"],path:"/js/vendor/codemirror/",iframeClass:"stretch codeframe javascript",tabMode:"shift",initCallback:function(){za("javascript")}});var Na=setInterval(function(){if(H.html.ready&&
H.javascript.ready){clearInterval(Na);H.ready=true;typeof H.onReady=="function"&&H.onReady()}},100);Y=navigator.userAgent;$.browser.platform=/macintosh|mac os x/.test(Y)?"mac":/windows|win32/.test(Y)?"win":/linux/.test(Y)?"linux":"";var x=/(^.|\b)console\./,ta=function(){var n=window.console!=undefined;try{window.console.log("jsbin init test")}catch(t){n=false}return n}(),Ia=function(){return document.addEventListener?function(n,t,D){if(n&&n.nodeName||n&&n.location)n.addEventListener(t,D,false);else if(n&&
n.length)for(var y=0;y<n.length;y++)Ia(n[y],t,D)}:function(n,t,D){if(n&&n.nodeName||n&&n.location)n.attachEvent("on"+t,function(){return D.call(n,window.event)});else if(n&&n.length)for(var y=0;y<n.length;y++)Ia(n[y],t,D)}}();$("#startingpoint").click(function(){if(U){U.setItem("saved-javascript",H.javascript.getCode());U.setItem("saved-html",H.html.getCode());$(this).find("span:first").fadeOut(200,function(){$(this).next().fadeIn(200).animate({foo:1},1E3,function(){$(this).fadeOut(200,function(){$(this).prev().fadeIn(150)})})})}return false}).find("span").after('<span style="display: none;">Saved</span>');
$("#revert").click(function(){if($(this).is(":not(.enable)"))return false;T.removeItem("javascript");T.removeItem("html");Aa("javascript");Aa("html");H.javascript.focus();$("#library").val("none");window.gist!=undefined&&gist.setCode();$(document).trigger("codeChange",[true]);return false});$("#control .tab").click(function(n){n.preventDefault();$("body").removeAttr("class").addClass(this.hash.substr(1));if($(this).is(".preview")){$("#preview").append('<iframe class="stretch"></iframe>');Da()}else $("#preview iframe").remove()});
$("#control div.help a:last").click(function(){$(window).trigger("togglehelp");return false});$("#help a[host="+window.location.host+"]").live("click",function(){$("#help #content").load(this.href);return false});var na=false;$(window).bind("togglehelp",function(){var n=na?0:300;na==false&&$("#help #content").load("/help/index.html");ha.find("> div").animate({right:n},{duration:100});$("#control").animate({right:n},{duration:100});$("#help").animate({right:na?-300:0},{duration:100});na=na?false:true});
$(document).keyup(function(n){na&&n.keyCode==27&&$(window).trigger("togglehelp")});$("#save").click(function(n){n.preventDefault();Ha();return false});var Oa=false,ha=$("#bin");Y=function(){T.setItem("javascript",H.javascript.getCode());T.setItem("html",H.html.getCode());var n=C();T.setItem("panel",n);T.setItem("line",H[n].currentLine());T.setItem("character",H[n].cursorPosition().character)};$(window).unload(Y);$.browser.opera&&setInterval(Y,500);if({"#html":1,"#javascript":1}[window.location.hash])document.getElementById("bin").className+=
" "+window.location.hash.substr(1)+"-only";else U&&U.getItem("visible-panel")&&ha.addClass(U.getItem("visible-panel")+"-only");if(/gist\/\d+/.test(window.location.pathname)&&!T.getItem("javascript")&&!T.getItem("html")){window.editors=H;Y=function(){$.getScript("/js/chrome/gist.js",function(){window.gist=new Gist(window.location.pathname.replace(/.*?(\d+).*/,"$1"))})};if(H.ready)Y();else H.onReady=Y}$("div.label p").click(function(){var n=$(this).closest(".code").is(".javascript")?"javascript":"html",
t=n=="javascript"?"html":"javascript";mustshow=ha.is("."+n+"-only");speed=150;animatePanel=animateOtherPanel={};if(ha.is("."+n+"-only")){animatePanel=n=="html"?{left:"50%",width:"50%"}:{left:"0%",width:"50%"};animateOtherPanel=t=="javascript"?{left:"0%"}:{left:"50%"};ha.find("div."+n).animate(animatePanel,speed);ha.find("div."+t).show().animate(animateOtherPanel,speed,function(){ha.removeClass(n+"-only");U&&U.removeItem("visible-panel")})}else{animatePanel=n=="html"?{left:"0%",width:"100%"}:{width:"100%"};
animateOtherPanel=t=="javascript"?{left:"-50%"}:{left:"100%"};ha.find("div."+n).animate(animatePanel,speed);ha.find("div."+t).animate(animateOtherPanel,speed,function(){$(this).hide();ha.addClass(n+"-only");try{U&&U.setItem("visible-panel",n)}catch(D){}})}})})();

