(function(e,m){function k(){if(!c.isReady){try{D.documentElement.doScroll("left")}catch(a){setTimeout(k,1);return}c.ready()}}function h(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 p(a,b,d,g,f,o){var r=a.length;if(typeof b==="object"){for(var y in b)p(a,y,b[y],g,f,d);return a}if(d!==m){g=!o&&g&&c.isFunction(d);for(y=0;y<r;y++)f(a[y],b,g?d.call(a[y],y,f(a[y],b)):d,o);return a}return r?
f(a[0],b):null}function l(){return(new Date).getTime()}function q(){return false}function s(){return true}function u(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function x(a){var b,d=[],g=[],f=arguments,o,r,y,z,w,G,L=c.extend({},c.data(this,"events").live);if(!(a.button&&a.type==="click")){for(z in L){r=L[z];if(r.live===a.type||r.altLive&&c.inArray(a.type,r.altLive)>-1){o=r.data;o.beforeFilter&&o.beforeFilter[a.type]&&!o.beforeFilter[a.type](a)||g.push(r.selector)}else delete L[z]}o=c(a.target).closest(g,
a.currentTarget);w=0;for(G=o.length;w<G;w++)for(z in L){r=L[z];y=o[w].elem;g=null;if(o[w].selector===r.selector){if(r.live==="mouseenter"||r.live==="mouseleave")g=c(a.relatedTarget).closest(r.selector)[0];if(!g||g!==y)d.push({elem:y,fn:r})}}w=0;for(G=d.length;w<G;w++){o=d[w];a.currentTarget=o.elem;a.data=o.fn.data;if(o.fn.apply(o.elem,f)===false){b=false;break}}return b}}function C(a,b){return"live."+(a?a+".":"")+b.replace(/\./g,"`").replace(/ /g,"&")}function E(a){return!a||!a.parentNode||a.parentNode.nodeType===
11}function F(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var g=c.data(a[d++]),f=c.data(this,g);if(g=g&&g.events){delete f.handle;f.events={};for(var o in g)for(var r in g[o])c.event.add(this,o,g[o][r],g[o][r].data)}}})}function O(a,b,d){var g,f,o;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&a[0].indexOf("<option")<0&&(c.support.checkClone||!Ea.test(a[0]))){f=true;if(o=c.fragments[a[0]])if(o!==1)g=o}if(!g){b=b&&b[0]?b[0].ownerDocument||b[0]:D;g=b.createDocumentFragment();
c.clean(a,b,g,d)}if(f)c.fragments[a[0]]=o?g:1;return{fragment:g,cacheable:f}}function M(a,b){var d={};c.each(Fa.concat.apply([],Fa.slice(0,b)),function(){d[this]=a});return d}function Q(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)},T=e.jQuery,da=e.$,D=e.document,ha,ia=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,ra=/^.[^:#\[\.,]*$/,I=/\S/,X=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,S=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,V=navigator.userAgent,
Y=false,Z=[],R,sa=Object.prototype.toString,ta=Object.prototype.hasOwnProperty,ua=Array.prototype.push,la=Array.prototype.slice,Ga=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,g;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]){g=b?b.ownerDocument||b:D;if(a=S.exec(a))if(c.isPlainObject(b)){a=[D.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[g.createElement(a[1])];else{a=O([d[1]],
[g]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=D.getElementById(d[2])){if(b.id!==d[2])return ha.find(a);this.length=1;this[0]=b}this.context=D;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=D;a=D.getElementsByTagName(a)}else return!b||b.jquery?(b||ha).find(a):c(b).find(a);else if(c.isFunction(a))return ha.ready(a);if(a.selector!==m){this.selector=a.selector;this.context=a.context}return c.isArray(a)?this.setArray(a):c.makeArray(a,
this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return la.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;ua.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(D,c);else Z&&Z.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(la.apply(this,arguments),"slice",la.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:ua,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,g=false,f,o,r,y;if(typeof a==="boolean"){g=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((f=arguments[b])!=null)for(o in f){r=a[o];y=f[o];if(a!==y)if(g&&y&&(c.isPlainObject(y)||c.isArray(y))){r=r&&(c.isPlainObject(r)||c.isArray(r))?r:c.isArray(y)?[]:{};a[o]=c.extend(g,r,y)}else if(y!==m)a[o]=y}return a};c.extend({noConflict:function(a){e.$=
da;if(a)e.jQuery=T;return c},isReady:false,ready:function(){if(!c.isReady){if(!D.body)return setTimeout(c.ready,13);c.isReady=true;if(Z){for(var a,b=0;a=Z[b++];)a.call(D,c);Z=null}c.fn.triggerHandler&&c(D).triggerHandler("ready")}},bindReady:function(){if(!Y){Y=true;if(D.readyState==="complete")return c.ready();if(D.addEventListener){D.addEventListener("DOMContentLoaded",R,false);e.addEventListener("load",c.ready,false)}else if(D.attachEvent){D.attachEvent("onreadystatechange",R);e.attachEvent("onload",
c.ready);var a=false;try{a=e.frameElement==null}catch(b){}D.documentElement.doScroll&&a&&k()}}},isFunction:function(a){return sa.call(a)==="[object Function]"},isArray:function(a){return sa.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||sa.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!ta.call(a,"constructor")&&!ta.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===m||ta.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;
return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;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,"")))return e.JSON&&e.JSON.parse?e.JSON.parse(a):(new Function("return "+a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&I.test(a)){var b=D.getElementsByTagName("head")[0]||
D.documentElement,d=D.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(D.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 g,f=0,o=a.length,r=o===m||c.isFunction(a);if(d)if(r)for(g in a){if(b.apply(a[g],d)===false)break}else for(;f<o;){if(b.apply(a[f++],d)===false)break}else if(r)for(g in a){if(b.call(a[g],g,a[g])===false)break}else for(d=
a[0];f<o&&b.call(d,f,d)!==false;d=a[++f]);return a},trim:function(a){return(a||"").replace(X,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ua.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,g=b.length;d<g;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,g=0;if(typeof b.length==="number")for(var f=b.length;g<f;g++)a[d++]=b[g];else for(;b[g]!==
m;)a[d++]=b[g++];a.length=d;return a},grep:function(a,b,d){for(var g=[],f=0,o=a.length;f<o;f++)!d!==!b(a[f],f)&&g.push(a[f]);return g},map:function(a,b,d){for(var g=[],f,o=0,r=a.length;o<r;o++){f=b(a[o],o,d);if(f!=null)g[g.length]=f}return g.concat.apply([],g)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=m}else if(b&&!c.isFunction(b)){d=b;b=m}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){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});V=c.uaMatch(V);if(V.browser){c.browser[V.browser]=true;c.browser.version=V.version}if(c.browser.webkit)c.browser.safari=true;if(Ga)c.inArray=function(a,b){return Ga.call(b,a)};ha=c(D);if(D.addEventListener)R=function(){D.removeEventListener("DOMContentLoaded",
R,false);c.ready()};else if(D.attachEvent)R=function(){if(D.readyState==="complete"){D.detachEvent("onreadystatechange",R);c.ready()}};(function(){c.support={};var a=D.documentElement,b=D.createElement("script"),d=D.createElement("div"),g="script"+l();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 f=d.getElementsByTagName("*"),o=d.getElementsByTagName("a")[0];if(!(!f||!f.length||!o)){c.support=
{leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(o.getAttribute("style")),hrefNormalized:o.getAttribute("href")==="/a",opacity:/^0.55$/.test(o.style.opacity),cssFloat:!!o.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:D.createElement("select").appendChild(D.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};
b.type="text/javascript";try{b.appendChild(D.createTextNode("window."+g+"=1;"))}catch(r){}a.insertBefore(b,a.firstChild);if(e[g]){c.support.scriptEval=true;delete e[g]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function y(){c.support.noCloneEvent=false;d.detachEvent("onclick",y)});d.cloneNode(true).fireEvent("onclick")}d=D.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=D.createDocumentFragment();a.appendChild(d.firstChild);
c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var y=D.createElement("div");y.style.width=y.style.paddingLeft="1px";D.body.appendChild(y);c.boxModel=c.support.boxModel=y.offsetWidth===2;D.body.removeChild(y).style.display="none"});a=function(y){var z=D.createElement("div");y="on"+y;var w=y in z;if(!w){z.setAttribute(y,"return;");w=typeof z[y]==="function"}return w};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=o=null}})();c.props=
{"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ea="jQuery"+l(),Wa=0,Ha={},Xa={};c.extend({cache:{},expando:ea,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==e?Ha:a;var g=a[ea],f=c.cache;if(!b&&!g)return null;g||(g=++Wa);if(typeof b==="object"){a[ea]=g;f=f[g]=c.extend(true,
{},b)}else f=f[g]?f[g]:typeof d==="undefined"?Xa:(f[g]={});if(d!==m){a[ea]=g;f[b]=d}return typeof b==="string"?f[b]:f}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==e?Ha:a;var d=a[ea],g=c.cache,f=g[d];if(b){if(f){delete f[b];c.isEmptyObject(f)&&c.removeData(a)}}else{try{delete a[ea]}catch(o){a.removeAttribute&&a.removeAttribute(ea)}delete g[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===m){var g=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(g===m&&this.length)g=c.data(this[0],a);return g===m&&d[1]?this.data(d[0]):g}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 g=c.data(a,b);if(!d)return g||[];if(!g||
c.isArray(d))g=c.data(a,b,c.makeArray(d));else g.push(d);return g}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),g=d.shift();if(g==="inprogress")g=d.shift();if(g){b==="fx"&&d.unshift("inprogress");g.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===m)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Ia=/[\n\t]/g,va=/\s+/,Ya=/\r/g,Za=/href|src|style/,$a=/(button|input)/i,ab=/(button|input|object|select|textarea)/i,bb=/^(a|area)$/i,Ja=/radio|checkbox/;c.fn.extend({attr:function(a,b){return p(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(z){var w=c(this);w.addClass(a.call(this,z,w.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(va),d=0,g=this.length;d<g;d++){var f=this[d];if(f.nodeType===1)if(f.className)for(var o=" "+f.className+" ",r=0,y=b.length;r<y;r++){if(o.indexOf(" "+b[r]+" ")<0)f.className+=" "+b[r]}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(z){var w=
c(this);w.removeClass(a.call(this,z,w.attr("class")))});if(a&&typeof a==="string"||a===m)for(var b=(a||"").split(va),d=0,g=this.length;d<g;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var o=(" "+f.className+" ").replace(Ia," "),r=0,y=b.length;r<y;r++)o=o.replace(" "+b[r]+" "," ");f.className=o.substring(1,o.length-1)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,g=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var o=c(this);o.toggleClass(a.call(this,
f,o.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,o=0,r=c(this),y=b,z=a.split(va);f=z[o++];){y=g?y:!r.hasClass(f);r[y?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Ia," ").indexOf(a)>-1)return true;return false},
val:function(a){if(a===m){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,g=[],f=b.options;b=b.type==="select-one";if(d<0)return null;var o=b?d:0;for(d=b?d+1:f.length;o<d;o++){var r=f[o];if(r.selected){a=c(r).val();if(b)return a;g.push(a)}}return g}if(Ja.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Ya,"")}return m}var y=c.isFunction(a);
return this.each(function(z){var w=c(this),G=a;if(this.nodeType===1){if(y)G=a.call(this,z,w.val());if(typeof G==="number")G+="";if(c.isArray(G)&&Ja.test(this.type))this.checked=c.inArray(w.val(),G)>=0;else if(c.nodeName(this,"select")){var L=c.makeArray(G);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),L)>=0});if(!L.length)this.selectedIndex=-1}else this.value=G}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,
b,d,g){if(!a||a.nodeType===3||a.nodeType===8)return m;if(g&&b in c.attrFn)return c(a)[b](d);g=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==m;b=g&&c.props[b]||b;if(a.nodeType===1){var o=Za.test(b);if(b in a&&g&&!o){if(f){b==="type"&&$a.test(a.nodeName)&&a.parentNode&&c.error("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:ab.test(a.nodeName)||bb.test(a.nodeName)&&
a.href?0:m;return a[b]}if(!c.support.style&&g&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&g&&o?a.getAttribute(b,2):a.getAttribute(b);return a===null?m:a}return c.style(a,b,d)}});var cb=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,g){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==e&&!a.frameElement)a=e;if(!d.guid)d.guid=c.guid++;if(g!==m){d=c.proxy(d);d.data=
g}var f=c.data(a,"events")||c.data(a,"events",{}),o=c.data(a,"handle"),r;if(!o){r=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(r.elem,arguments):m};o=c.data(a,"handle",r)}if(o){o.elem=a;b=b.split(/\s+/);for(var y,z=0;y=b[z++];){var w=y.split(".");y=w.shift();if(z>1){d=c.proxy(d);if(g!==m)d.data=g}d.type=w.slice(0).sort().join(".");var G=f[y],L=this.special[y]||{};if(!G){G=f[y]={};if(!L.setup||L.setup.call(a,g,w,d)===false)if(a.addEventListener)a.addEventListener(y,
o,false);else a.attachEvent&&a.attachEvent("on"+y,o)}if(L.add)if((w=L.add.call(a,d,g,w,G))&&c.isFunction(w)){w.guid=w.guid||d.guid;w.data=w.data||d.data;w.type=w.type||d.type;d=w}G[d.guid]=d;this.global[y]=true}a=null}}},global:{},remove:function(a,b,d){if(!(a.nodeType===3||a.nodeType===8)){var g=c.data(a,"events"),f,o,r;if(g){if(b===m||typeof b==="string"&&b.charAt(0)===".")for(o in g)this.remove(a,o+(b||""));else{if(b.type){d=b.handler;b=b.type}b=b.split(/\s+/);for(var y=0;o=b[y++];){var z=o.split(".");
o=z.shift();var w=!z.length,G=c.map(z.slice(0).sort(),cb);G=new RegExp("(^|\\.)"+G.join("\\.(?:.*\\.)?")+"(\\.|$)");var L=this.special[o]||{};if(g[o]){if(d){r=g[o][d.guid];delete g[o][d.guid]}else for(var P in g[o])if(w||G.test(g[o][P].type))delete g[o][P];L.remove&&L.remove.call(a,z,r);for(f in g[o])break;if(!f){if(!L.teardown||L.teardown.call(a,z)===false)if(a.removeEventListener)a.removeEventListener(o,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+o,c.data(a,"handle"));f=null;
delete g[o]}}}}for(f in g)break;if(!f){if(P=c.data(a,"handle"))P.elem=null;c.removeData(a,"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,g){var f=a.type||a;if(!g){a=typeof a==="object"?a[ea]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return m;a.result=m;a.target=
d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(g=c.data(d,"handle"))&&g.apply(d,b);g=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false)a.result=false}catch(o){}if(!a.isPropagationStopped()&&g)c.event.trigger(a,b,g,true);else if(!a.isDefaultPrevented()){d=a.target;var r;if(!(c.nodeName(d,"a")&&f==="click")&&!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){try{if(d[f]){if(r=d["on"+f])d["on"+f]=null;this.triggered=
true;d[f]()}}catch(y){}if(r)d["on"+f]=r;this.triggered=false}}},handle:function(a){var b,d;a=arguments[0]=c.event.fix(a||e.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();b=!d.length&&!a.exclusive;var g=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");d=(c.data(this,"events")||{})[a.type];for(var f in d){var o=d[f];if(b||g.test(o.type)){a.handler=o;a.data=o.data;o=o.apply(this,arguments);if(o!==m){a.result=o;if(o===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[ea])return a;var b=a;a=c.Event(b);for(var d=this.props.length,g;d;){g=this.props[--d];a[g]=b[g]}if(!a.target)a.target=a.srcElement||
D;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=D.documentElement;d=D.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(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!==m)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a,b){c.extend(a,b||{});a.guid+=b.selector+b.live;b.liveProxy=a;c.event.add(this,b.live,x,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],x)}},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=l();this[ea]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=s;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},
stopPropagation:function(){this.isPropagationStopped=s;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=s;this.stopPropagation()},isDefaultPrevented:q,isPropagationStopped:q,isImmediatePropagationStopped:q};var Ka=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)}},La=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?La:Ka,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?La:Ka)}}});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(g){var f=g.target,o=f.type;if((o==="submit"||o==="image")&&c(f).closest("form").length)return u("submit",
this,arguments)});c.event.add(this,"keypress.specialSubmit."+d.guid,function(g){var f=g.target,o=f.type;if((o==="text"||o==="password")&&c(f).closest("form").length&&g.keyCode===13)return u("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 wa=/textarea|input|select/i;function Ma(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(g){return g.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d}function xa(a,b){var d=a.target,g,f;if(!(!wa.test(d.nodeName)||d.readOnly)){g=c.data(d,"_change_data");f=Ma(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(g===m||f===g))if(g!=null||f){a.type="change";return c.event.trigger(a,b,d)}}}c.event.special.change={filters:{focusout:xa,
click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return xa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return xa.call(this,a)},beforeactivate:function(a){a=a.target;a.nodeName.toLowerCase()==="input"&&a.type==="radio"&&c.data(a,"_change_data",Ma(a))}},setup:function(a,b,d){for(var g in na)c.event.add(this,
g+".specialChange."+d.guid,na[g]);return wa.test(this.nodeName)},remove:function(a,b){for(var d in na)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),na[d]);return wa.test(this.nodeName)}};var na=c.event.special.change.filters}D.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(g){g=c.event.fix(g);g.type=b;return c.event.handle.call(this,g)}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,g,f){if(typeof d==="object"){for(var o in d)this[b](o,g,d[o],f);return this}if(c.isFunction(g)){f=g;g=m}var r=b==="one"?c.proxy(f,function(y){c(this).unbind(y,r);return f.apply(this,arguments)}):f;return d==="unload"&&b!=="one"?this.one(d,g,f):this.each(function(){c.event.add(this,d,r,g)})}});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(g){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);g.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,
b){return this.mouseenter(a).mouseleave(b||a)}});c.each(["live","die"],function(a,b){c.fn[b]=function(d,g,f){var o,r=0;if(c.isFunction(g)){f=g;g=m}for(d=(d||"").split(/\s+/);(o=d[r++])!=null;){o=o==="focus"?"focusin":o==="blur"?"focusout":o==="hover"?d.push("mouseleave")&&"mouseenter":o;b==="live"?c(this.context).bind(C(o,this.selector),{data:g,selector:this.selector,live:o},f):c(this.context).unbind(C(o,this.selector),f?{guid:f.guid+this.selector+o}: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});e.attachEvent&&!e.addEventListener&&e.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(j){for(var n="",t,v=0;j[v];v++){t=j[v];if(t.nodeType===3||t.nodeType===4)n+=t.nodeValue;else if(t.nodeType!==8)n+=a(t.childNodes)}return n}function b(j,n,t,v,B,A){B=0;for(var J=v.length;B<J;B++){var H=v[B];
if(H){H=H[j];for(var N=false;H;){if(H.sizcache===t){N=v[H.sizset];break}if(H.nodeType===1&&!A){H.sizcache=t;H.sizset=B}if(H.nodeName.toLowerCase()===n){N=H;break}H=H[j]}v[B]=N}}}function d(j,n,t,v,B,A){B=0;for(var J=v.length;B<J;B++){var H=v[B];if(H){H=H[j];for(var N=false;H;){if(H.sizcache===t){N=v[H.sizset];break}if(H.nodeType===1){if(!A){H.sizcache=t;H.sizset=B}if(typeof n!=="string"){if(H===n){N=true;break}}else if(z.filter(n,[H]).length>0){N=H;break}}H=H[j]}v[B]=N}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
f=0,o=Object.prototype.toString,r=false,y=true;[0,0].sort(function(){y=false;return 0});var z=function(j,n,t,v){t=t||[];var B=n=n||D;if(n.nodeType!==1&&n.nodeType!==9)return[];if(!j||typeof j!=="string")return t;for(var A=[],J,H,N,ma,fa=true,ja=K(n),ga=j;(g.exec(""),J=g.exec(ga))!==null;){ga=J[3];A.push(J[1]);if(J[2]){ma=J[3];break}}if(A.length>1&&G.exec(j))if(A.length===2&&w.relative[A[0]])H=ya(A[0]+A[1],n);else for(H=w.relative[A[0]]?[n]:z(A.shift(),n);A.length;){j=A.shift();if(w.relative[j])j+=
A.shift();H=ya(j,H)}else{if(!v&&A.length>1&&n.nodeType===9&&!ja&&w.match.ID.test(A[0])&&!w.match.ID.test(A[A.length-1])){J=z.find(A.shift(),n,ja);n=J.expr?z.filter(J.expr,J.set)[0]:J.set[0]}if(n){J=v?{expr:A.pop(),set:P(v)}:z.find(A.pop(),A.length===1&&(A[0]==="~"||A[0]==="+")&&n.parentNode?n.parentNode:n,ja);H=J.expr?z.filter(J.expr,J.set):J.set;if(A.length>0)N=P(H);else fa=false;for(;A.length;){var aa=A.pop();J=aa;if(w.relative[aa])J=A.pop();else aa="";if(J==null)J=n;w.relative[aa](N,J,ja)}}else N=
[]}N||(N=H);N||z.error(aa||j);if(o.call(N)==="[object Array]")if(fa)if(n&&n.nodeType===1)for(j=0;N[j]!=null;j++){if(N[j]&&(N[j]===true||N[j].nodeType===1&&ba(n,N[j])))t.push(H[j])}else for(j=0;N[j]!=null;j++)N[j]&&N[j].nodeType===1&&t.push(H[j]);else t.push.apply(t,N);else P(N,t);if(ma){z(ma,B,t,v);z.uniqueSort(t)}return t};z.uniqueSort=function(j){if(W){r=y;j.sort(W);if(r)for(var n=1;n<j.length;n++)j[n]===j[n-1]&&j.splice(n--,1)}return j};z.matches=function(j,n){return z(j,null,null,n)};z.find=function(j,
n,t){var v,B;if(!j)return[];for(var A=0,J=w.order.length;A<J;A++){var H=w.order[A];if(B=w.leftMatch[H].exec(j)){var N=B[1];B.splice(1,1);if(N.substr(N.length-1)!=="\\"){B[1]=(B[1]||"").replace(/\\/g,"");v=w.find[H](B,n,t);if(v!=null){j=j.replace(w.match[H],"");break}}}}v||(v=n.getElementsByTagName("*"));return{set:v,expr:j}};z.filter=function(j,n,t,v){for(var B=j,A=[],J=n,H,N,ma=n&&n[0]&&K(n[0]);j&&n.length;){for(var fa in w.filter)if((H=w.leftMatch[fa].exec(j))!=null&&H[2]){var ja=w.filter[fa],ga,
aa;aa=H[1];N=false;H.splice(1,1);if(aa.substr(aa.length-1)!=="\\"){if(J===A)A=[];if(w.preFilter[fa])if(H=w.preFilter[fa](H,J,t,A,v,ma)){if(H===true)continue}else N=ga=true;if(H)for(var oa=0;(aa=J[oa])!=null;oa++)if(aa){ga=ja(aa,H,oa,J);var Na=v^!!ga;if(t&&ga!=null)if(Na)N=true;else J[oa]=false;else if(Na){A.push(aa);N=true}}if(ga!==m){t||(J=A);j=j.replace(w.match[fa],"");if(!N)return[];break}}}if(j===B)if(N==null)z.error(j);else break;B=j}return J};z.error=function(j){throw"Syntax error, unrecognized expression: "+
j;};var w=z.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(j){return j.getAttribute("href")}},relative:{"+":function(j,n){var t=typeof n==="string",v=t&&!/\W/.test(n);t=t&&!v;if(v)n=n.toLowerCase();v=0;for(var B=j.length,A;v<B;v++)if(A=j[v]){for(;(A=A.previousSibling)&&A.nodeType!==1;);j[v]=t||A&&A.nodeName.toLowerCase()===n?A||false:A===n}t&&z.filter(n,j,true)},">":function(j,n){var t=typeof n==="string";if(t&&!/\W/.test(n)){n=n.toLowerCase();for(var v=0,B=j.length;v<B;v++){var A=
j[v];if(A){t=A.parentNode;j[v]=t.nodeName.toLowerCase()===n?t:false}}}else{v=0;for(B=j.length;v<B;v++)if(A=j[v])j[v]=t?A.parentNode:A.parentNode===n;t&&z.filter(n,j,true)}},"":function(j,n,t){var v=f++,B=d;if(typeof n==="string"&&!/\W/.test(n)){var A=n=n.toLowerCase();B=b}B("parentNode",n,v,j,A,t)},"~":function(j,n,t){var v=f++,B=d;if(typeof n==="string"&&!/\W/.test(n)){var A=n=n.toLowerCase();B=b}B("previousSibling",n,v,j,A,t)}},find:{ID:function(j,n,t){if(typeof n.getElementById!=="undefined"&&
!t)return(j=n.getElementById(j[1]))?[j]:[]},NAME:function(j,n){if(typeof n.getElementsByName!=="undefined"){var t=[];n=n.getElementsByName(j[1]);for(var v=0,B=n.length;v<B;v++)n[v].getAttribute("name")===j[1]&&t.push(n[v]);return t.length===0?null:t}},TAG:function(j,n){return n.getElementsByTagName(j[1])}},preFilter:{CLASS:function(j,n,t,v,B,A){j=" "+j[1].replace(/\\/g,"")+" ";if(A)return j;A=0;for(var J;(J=n[A])!=null;A++)if(J)if(B^(J.className&&(" "+J.className+" ").replace(/[\t\n]/g," ").indexOf(j)>=
0))t||v.push(J);else if(t)n[A]=false;return false},ID:function(j){return j[1].replace(/\\/g,"")},TAG:function(j){return j[1].toLowerCase()},CHILD:function(j){if(j[1]==="nth"){var n=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(j[2]==="even"&&"2n"||j[2]==="odd"&&"2n+1"||!/\D/.test(j[2])&&"0n+"+j[2]||j[2]);j[2]=n[1]+(n[2]||1)-0;j[3]=n[3]-0}j[0]=f++;return j},ATTR:function(j,n,t,v,B,A){n=j[1].replace(/\\/g,"");if(!A&&w.attrMap[n])j[1]=w.attrMap[n];if(j[2]==="~=")j[4]=" "+j[4]+" ";return j},PSEUDO:function(j,n,t,v,
B){if(j[1]==="not")if((g.exec(j[3])||"").length>1||/^\w/.test(j[3]))j[3]=z(j[3],null,null,n);else{j=z.filter(j[3],n,t,true^B);t||v.push.apply(v,j);return false}else if(w.match.POS.test(j[0])||w.match.CHILD.test(j[0]))return true;return j},POS:function(j){j.unshift(true);return j}},filters:{enabled:function(j){return j.disabled===false&&j.type!=="hidden"},disabled:function(j){return j.disabled===true},checked:function(j){return j.checked===true},selected:function(j){return j.selected===true},parent:function(j){return!!j.firstChild},
empty:function(j){return!j.firstChild},has:function(j,n,t){return!!z(t[3],j).length},header:function(j){return/h\d/i.test(j.nodeName)},text:function(j){return"text"===j.type},radio:function(j){return"radio"===j.type},checkbox:function(j){return"checkbox"===j.type},file:function(j){return"file"===j.type},password:function(j){return"password"===j.type},submit:function(j){return"submit"===j.type},image:function(j){return"image"===j.type},reset:function(j){return"reset"===j.type},button:function(j){return"button"===
j.type||j.nodeName.toLowerCase()==="button"},input:function(j){return/input|select|textarea|button/i.test(j.nodeName)}},setFilters:{first:function(j,n){return n===0},last:function(j,n,t,v){return n===v.length-1},even:function(j,n){return n%2===0},odd:function(j,n){return n%2===1},lt:function(j,n,t){return n<t[3]-0},gt:function(j,n,t){return n>t[3]-0},nth:function(j,n,t){return t[3]-0===n},eq:function(j,n,t){return t[3]-0===n}},filter:{PSEUDO:function(j,n,t,v){var B=n[1],A=w.filters[B];if(A)return A(j,
t,n,v);else if(B==="contains")return(j.textContent||j.innerText||a([j])||"").indexOf(n[3])>=0;else if(B==="not"){n=n[3];t=0;for(v=n.length;t<v;t++)if(n[t]===j)return false;return true}else z.error("Syntax error, unrecognized expression: "+B)},CHILD:function(j,n){var t=n[1],v=j;switch(t){case "only":case "first":for(;v=v.previousSibling;)if(v.nodeType===1)return false;if(t==="first")return true;v=j;case "last":for(;v=v.nextSibling;)if(v.nodeType===1)return false;return true;case "nth":t=n[2];var B=
n[3];if(t===1&&B===0)return true;n=n[0];var A=j.parentNode;if(A&&(A.sizcache!==n||!j.nodeIndex)){var J=0;for(v=A.firstChild;v;v=v.nextSibling)if(v.nodeType===1)v.nodeIndex=++J;A.sizcache=n}j=j.nodeIndex-B;return t===0?j===0:j%t===0&&j/t>=0}},ID:function(j,n){return j.nodeType===1&&j.getAttribute("id")===n},TAG:function(j,n){return n==="*"&&j.nodeType===1||j.nodeName.toLowerCase()===n},CLASS:function(j,n){return(" "+(j.className||j.getAttribute("class"))+" ").indexOf(n)>-1},ATTR:function(j,n){var t=
n[1];j=w.attrHandle[t]?w.attrHandle[t](j):j[t]!=null?j[t]:j.getAttribute(t);t=j+"";var v=n[2];n=n[4];return j==null?v==="!=":v==="="?t===n:v==="*="?t.indexOf(n)>=0:v==="~="?(" "+t+" ").indexOf(n)>=0:!n?t&&j!==false:v==="!="?t!==n:v==="^="?t.indexOf(n)===0:v==="$="?t.substr(t.length-n.length)===n:v==="|="?t===n||t.substr(0,n.length+1)===n+"-":false},POS:function(j,n,t,v){var B=w.setFilters[n[2]];if(B)return B(j,t,n,v)}}},G=w.match.POS;for(var L in w.match){w.match[L]=new RegExp(w.match[L].source+/(?![^\[]*\])(?![^\(]*\))/.source);
w.leftMatch[L]=new RegExp(/(^(?:.|\r|\n)*?)/.source+w.match[L].source.replace(/\\(\d+)/g,function(j,n){return"\\"+(n-0+1)}))}var P=function(j,n){j=Array.prototype.slice.call(j,0);if(n){n.push.apply(n,j);return n}return j};try{Array.prototype.slice.call(D.documentElement.childNodes,0)}catch(U){P=function(j,n){n=n||[];if(o.call(j)==="[object Array]")Array.prototype.push.apply(n,j);else if(typeof j.length==="number")for(var t=0,v=j.length;t<v;t++)n.push(j[t]);else for(t=0;j[t];t++)n.push(j[t]);return n}}var W;
if(D.documentElement.compareDocumentPosition)W=function(j,n){if(!j.compareDocumentPosition||!n.compareDocumentPosition){if(j==n)r=true;return j.compareDocumentPosition?-1:1}j=j.compareDocumentPosition(n)&4?-1:j===n?0:1;if(j===0)r=true;return j};else if("sourceIndex"in D.documentElement)W=function(j,n){if(!j.sourceIndex||!n.sourceIndex){if(j==n)r=true;return j.sourceIndex?-1:1}j=j.sourceIndex-n.sourceIndex;if(j===0)r=true;return j};else if(D.createRange)W=function(j,n){if(!j.ownerDocument||!n.ownerDocument){if(j==
n)r=true;return j.ownerDocument?-1:1}var t=j.ownerDocument.createRange(),v=n.ownerDocument.createRange();t.setStart(j,0);t.setEnd(j,0);v.setStart(n,0);v.setEnd(n,0);j=t.compareBoundaryPoints(Range.START_TO_END,v);if(j===0)r=true;return j};(function(){var j=D.createElement("div"),n="script"+(new Date).getTime();j.innerHTML="<a name='"+n+"'/>";var t=D.documentElement;t.insertBefore(j,t.firstChild);if(D.getElementById(n)){w.find.ID=function(v,B,A){if(typeof B.getElementById!=="undefined"&&!A)return(B=
B.getElementById(v[1]))?B.id===v[1]||typeof B.getAttributeNode!=="undefined"&&B.getAttributeNode("id").nodeValue===v[1]?[B]:m:[]};w.filter.ID=function(v,B){var A=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");return v.nodeType===1&&A&&A.nodeValue===B}}t.removeChild(j);t=j=null})();(function(){var j=D.createElement("div");j.appendChild(D.createComment(""));if(j.getElementsByTagName("*").length>0)w.find.TAG=function(n,t){t=t.getElementsByTagName(n[1]);if(n[1]==="*"){n=[];for(var v=
0;t[v];v++)t[v].nodeType===1&&n.push(t[v]);t=n}return t};j.innerHTML="<a href='#'></a>";if(j.firstChild&&typeof j.firstChild.getAttribute!=="undefined"&&j.firstChild.getAttribute("href")!=="#")w.attrHandle.href=function(n){return n.getAttribute("href",2)};j=null})();D.querySelectorAll&&function(){var j=z,n=D.createElement("div");n.innerHTML="<p class='TEST'></p>";if(!(n.querySelectorAll&&n.querySelectorAll(".TEST").length===0)){z=function(v,B,A,J){B=B||D;if(!J&&B.nodeType===9&&!K(B))try{return P(B.querySelectorAll(v),
A)}catch(H){}return j(v,B,A,J)};for(var t in j)z[t]=j[t];n=null}}();(function(){var j=D.createElement("div");j.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!j.getElementsByClassName||j.getElementsByClassName("e").length===0)){j.lastChild.className="e";if(j.getElementsByClassName("e").length!==1){w.order.splice(1,0,"CLASS");w.find.CLASS=function(n,t,v){if(typeof t.getElementsByClassName!=="undefined"&&!v)return t.getElementsByClassName(n[1])};j=null}}})();var ba=D.compareDocumentPosition?
function(j,n){return j.compareDocumentPosition(n)&16}:function(j,n){return j!==n&&(j.contains?j.contains(n):true)},K=function(j){return(j=(j?j.ownerDocument||j:0).documentElement)?j.nodeName!=="HTML":false},ya=function(j,n){var t=[],v="",B;for(n=n.nodeType?[n]:n;B=w.match.PSEUDO.exec(j);){v+=B[0];j=j.replace(w.match.PSEUDO,"")}j=w.relative[j]?j+"*":j;B=0;for(var A=n.length;B<A;B++)z(j,n[B],t);return z.filter(v,t)};c.find=z;c.expr=z.selectors;c.expr[":"]=c.expr.filters;c.unique=z.uniqueSort;c.getText=
a;c.isXMLDoc=K;c.contains=ba})();var db=/Until$/,eb=/^(?:parents|prevUntil|prevAll)/,fb=/,/;la=Array.prototype.slice;var Oa=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,o){return!!b.call(f,o,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var g=c.grep(a,function(f){return f.nodeType===1});if(ra.test(b))return c.filter(b,g,!d);else b=c.filter(b,g)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})};c.fn.extend({find:function(a){for(var b=
this.pushStack("","find",a),d=0,g=0,f=this.length;g<f;g++){d=b.length;c.find(a,this[g],b);if(g>0)for(var o=d;o<b.length;o++)for(var r=0;r<d;r++)if(b[r]===b[o]){b.splice(o--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,g=b.length;d<g;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Oa(this,a,false),"not",a)},filter:function(a){return this.pushStack(Oa(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=[],g=this[0],f,o={},r;if(g&&a.length){f=0;for(var y=a.length;f<y;f++){r=a[f];o[r]||(o[r]=c.expr.match.POS.test(r)?c(r,b||this.context):r)}for(;g&&g.ownerDocument&&g!==b;){for(r in o){f=o[r];if(f.jquery?f.index(g)>-1:c(g).is(f)){d.push({selector:r,elem:g});delete o[r]}}g=g.parentNode}}return d}var z=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(w,G){for(;G&&G.ownerDocument&&G!==b;){if(z?z.index(G)>-1:c(G).is(a))return G;
G=G.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(E(a[0])||E(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,g){var f=c.map(this,b,d);db.test(a)||(g=d);if(g&&typeof g==="string")f=c.filter(g,f);f=this.length>1?c.unique(f):f;if((this.length>1||fb.test(g))&&eb.test(a))f=f.reverse();return this.pushStack(f,a,la.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 g=[];for(a=
a[b];a&&a.nodeType!==9&&(d===m||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,d){b=b||1;for(var g=0;a;a=a[d])if(a.nodeType===1&&++g===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 Pa=/ jQuery\d+="(?:\d+|null)"/g,pa=/^\s+/,Qa=/(<([\w:]+)[^>]*?)\/>/g,gb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Ra=/<([\w:]+)/,hb=/<tbody/i,ib=/<|&\w+;/,Ea=/checked\s*(?:[^=]|=\s*.checked.)/i,
Sa=function(a,b,d){return gb.test(d)?a:b+"></"+d+">"},ca={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,"",""]};ca.optgroup=ca.option;ca.tbody=ca.tfoot=ca.colgroup=ca.caption=ca.thead;ca.th=ca.td;if(!c.support.htmlSerialize)ca._default=
[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==m)return this.empty().append((this[0]&&this[0].ownerDocument||D).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){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,
true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,
false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,g=this.ownerDocument;if(!d){d=g.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Pa,"").replace(pa,"")],g)[0]}else return this.cloneNode(true)});if(a===
true){F(this,b);F(this.find("*"),b.find("*"))}return b},html:function(a){if(a===m)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Pa,""):null;else if(typeof a==="string"&&!/<script/i.test(a)&&(c.support.leadingWhitespace||!pa.test(a))&&!ca[(Ra.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Qa,Sa);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(g){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var o=
c(this),r=o.html();o.empty().append(function(){return a.call(this,f,r)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),g=d.html();d.replaceWith(a.call(this,b,g))});else 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 g(G){return c.nodeName(G,"table")?G.getElementsByTagName("tbody")[0]||G.appendChild(G.ownerDocument.createElement("tbody")):G}var f,o,r=a[0],y=[];if(!c.support.checkClone&&arguments.length===3&&typeof r==="string"&&Ea.test(r))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(r))return this.each(function(G){var L=c(this);a[0]=r.call(this,G,b?L.html():m);L.domManip(a,b,d)});if(this[0]){f=a[0]&&a[0].parentNode&&a[0].parentNode.nodeType===
11?{fragment:a[0].parentNode}:O(a,this,y);if(o=f.fragment.firstChild){b=b&&c.nodeName(o,"tr");for(var z=0,w=this.length;z<w;z++)d.call(b?g(this[z],o):this[z],f.cacheable||this.length>1||z>0?f.fragment.cloneNode(true):f.fragment)}y&&c.each(y,h)}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 g=[];d=c(d);for(var f=0,o=d.length;f<o;f++){var r=(f>0?this.clone(true):this).get();
c.fn[b].apply(c(d[f]),r);g=g.concat(r)}return this.pushStack(g,a,d.selector)}});c.each({remove:function(a,b){if(!a||c.filter(a,[this]).length){if(!b&&this.nodeType===1){c.cleanData(this.getElementsByTagName("*"));c.cleanData([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===1&&c.cleanData(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,g){b=b||D;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||D;var f=[];c.each(a,function(o,r){if(typeof r==="number")r+="";if(r){if(typeof r==="string"&&!ib.test(r))r=b.createTextNode(r);else if(typeof r==="string"){r=r.replace(Qa,Sa);var y=(Ra.exec(r)||["",""])[1].toLowerCase(),z=ca[y]||ca._default,w=z[0];o=b.createElement("div");for(o.innerHTML=z[1]+r+z[2];w--;)o=o.lastChild;if(!c.support.tbody){w=hb.test(r);y=y==="table"&&!w?o.firstChild&&o.firstChild.childNodes:
z[1]==="<table>"&&!w?o.childNodes:[];for(z=y.length-1;z>=0;--z)c.nodeName(y[z],"tbody")&&!y[z].childNodes.length&&y[z].parentNode.removeChild(y[z])}!c.support.leadingWhitespace&&pa.test(r)&&o.insertBefore(b.createTextNode(pa.exec(r)[0]),o.firstChild);r=c.makeArray(o.childNodes)}if(r.nodeType)f.push(r);else f=c.merge(f,r)}});if(d)for(a=0;f[a];a++)if(g&&c.nodeName(f[a],"script")&&(!f[a].type||f[a].type.toLowerCase()==="text/javascript"))g.push(f[a].parentNode?f[a].parentNode.removeChild(f[a]):f[a]);
else{f[a].nodeType===1&&f.splice.apply(f,[a+1,0].concat(c.makeArray(f[a].getElementsByTagName("script"))));d.appendChild(f[a])}return f},cleanData:function(a){for(var b=0,d;(d=a[b])!=null;b++){c.event.remove(d);c.removeData(d)}}});var jb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Ta=/alpha\([^)]*\)/,Ua=/opacity=([^)]*)/,za=/float/i,Aa=/-([a-z])/ig,kb=/([A-Z])/g,lb=/^-?\d+(?:px)?$/i,mb=/^-?\d/,nb={position:"absolute",visibility:"hidden",display:"block"},ob=["Left","Right"],pb=["Top","Bottom"],
qb=D.defaultView&&D.defaultView.getComputedStyle,Va=c.support.cssFloat?"cssFloat":"styleFloat",Ba=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return p(this,a,b,true,function(d,g,f){if(f===m)return c.curCSS(d,g);if(typeof f==="number"&&!jb.test(g))f+="px";c.style(d,g,f)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return m;if((b==="width"||b==="height")&&parseFloat(d)<0)d=m;var g=a.style||a,f=d!==m;if(!c.support.opacity&&b==="opacity"){if(f){g.zoom=1;b=
parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=g.filter||c.curCSS(a,"filter")||"";g.filter=Ta.test(a)?a.replace(Ta,b):b}return g.filter&&g.filter.indexOf("opacity=")>=0?parseFloat(Ua.exec(g.filter)[1])/100+"":""}if(za.test(b))b=Va;b=b.replace(Aa,Ba);if(f)g[b]=d;return g[b]},css:function(a,b,d,g){if(b==="width"||b==="height"){var f,o=b==="width"?ob:pb;function r(){f=b==="width"?a.offsetWidth:a.offsetHeight;g!=="border"&&c.each(o,function(){g||(f-=parseFloat(c.curCSS(a,"padding"+this,true))||
0);if(g==="margin")f+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else f-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!==0?r():c.swap(a,nb,r);return Math.max(0,Math.round(f))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var g,f=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){g=Ua.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return g===""?"1":g}if(za.test(b))b=Va;if(!d&&f&&f[b])g=f[b];else if(qb){if(za.test(b))b="float";b=b.replace(kb,"-$1").toLowerCase();
f=a.ownerDocument.defaultView;if(!f)return null;if(a=f.getComputedStyle(a,null))g=a.getPropertyValue(b);if(b==="opacity"&&g==="")g="1"}else if(a.currentStyle){d=b.replace(Aa,Ba);g=a.currentStyle[b]||a.currentStyle[d];if(!lb.test(g)&&mb.test(g)){b=f.left;var o=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;f.left=d==="fontSize"?"1em":g||0;g=f.pixelLeft+"px";f.left=b;a.runtimeStyle.left=o}}return g},swap:function(a,b,d){var g={};for(var f in b){g[f]=a.style[f];a.style[f]=b[f]}d.call(a);
for(f in b)a.style[f]=g[f]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,g=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!g?true:b>0&&d>0&&!g?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var rb=l(),sb=/<script(.|\s)*?\/script>/gi,tb=/select|textarea/i,ub=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,ka=/=\?(&|$)/,Ca=/\?/,vb=/(\?|&)_=.*?(&|$)/,
wb=/^(\w+:)?\/\/([^\/?#]+)/,xb=/%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 g=a.indexOf(" ");if(g>=0){var f=a.slice(g,a.length);a=a.slice(0,g)}g="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);g="POST"}var o=this;c.ajax({url:a,type:g,dataType:"html",data:b,complete:function(r,y){if(y==="success"||y==="notmodified")o.html(f?c("<div />").append(r.responseText.replace(sb,
"")).find(f):r.responseText);d&&o.each(d,[r.responseText,y,r])}});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||tb.test(this.nodeName)||ub.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,g){if(c.isFunction(b)){g=g||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:g})},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,g){if(c.isFunction(b)){g=g||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:g})},
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:e.XMLHttpRequest&&(e.location.protocol!=="file:"||!e.ActiveXObject)?function(){return new e.XMLHttpRequest}:function(){try{return new e.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(){f.success&&f.success.call(z,y,r,K);f.global&&g("ajaxSuccess",[K,f])}function d(){f.complete&&f.complete.call(z,K,r);f.global&&g("ajaxComplete",[K,f]);f.global&&!--c.active&&c.event.trigger("ajaxStop")}function g(B,A){(f.context?c(f.context):c.event).trigger(B,A)}var f=c.extend(true,{},c.ajaxSettings,a),o,r,y,z=a&&a.context||f,w=f.type.toUpperCase();if(f.data&&f.processData&&typeof f.data!=="string")f.data=c.param(f.data,
f.traditional);if(f.dataType==="jsonp"){if(w==="GET")ka.test(f.url)||(f.url+=(Ca.test(f.url)?"&":"?")+(f.jsonp||"callback")+"=?");else if(!f.data||!ka.test(f.data))f.data=(f.data?f.data+"&":"")+(f.jsonp||"callback")+"=?";f.dataType="json"}if(f.dataType==="json"&&(f.data&&ka.test(f.data)||ka.test(f.url))){o=f.jsonpCallback||"jsonp"+rb++;if(f.data)f.data=(f.data+"").replace(ka,"="+o+"$1");f.url=f.url.replace(ka,"="+o+"$1");f.dataType="script";e[o]=e[o]||function(B){y=B;b();d();e[o]=m;try{delete e[o]}catch(A){}P&&
P.removeChild(U)}}if(f.dataType==="script"&&f.cache===null)f.cache=false;if(f.cache===false&&w==="GET"){var G=l(),L=f.url.replace(vb,"$1_="+G+"$2");f.url=L+(L===f.url?(Ca.test(f.url)?"&":"?")+"_="+G:"")}if(f.data&&w==="GET")f.url+=(Ca.test(f.url)?"&":"?")+f.data;f.global&&!c.active++&&c.event.trigger("ajaxStart");G=(G=wb.exec(f.url))&&(G[1]&&G[1]!==location.protocol||G[2]!==location.host);if(f.dataType==="script"&&w==="GET"&&G){var P=D.getElementsByTagName("head")[0]||D.documentElement,U=D.createElement("script");
U.src=f.url;if(f.scriptCharset)U.charset=f.scriptCharset;if(!o){var W=false;U.onload=U.onreadystatechange=function(){if(!W&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){W=true;b();d();U.onload=U.onreadystatechange=null;P&&U.parentNode&&P.removeChild(U)}}}P.insertBefore(U,P.firstChild);return m}var ba=false,K=f.xhr();if(K){f.username?K.open(w,f.url,f.async,f.username,f.password):K.open(w,f.url,f.async);try{if(f.data||a&&a.contentType)K.setRequestHeader("Content-Type",
f.contentType);if(f.ifModified){c.lastModified[f.url]&&K.setRequestHeader("If-Modified-Since",c.lastModified[f.url]);c.etag[f.url]&&K.setRequestHeader("If-None-Match",c.etag[f.url])}G||K.setRequestHeader("X-Requested-With","XMLHttpRequest");K.setRequestHeader("Accept",f.dataType&&f.accepts[f.dataType]?f.accepts[f.dataType]+", */*":f.accepts._default)}catch(ya){}if(f.beforeSend&&f.beforeSend.call(z,K,f)===false){f.global&&!--c.active&&c.event.trigger("ajaxStop");K.abort();return false}f.global&&g("ajaxSend",
[K,f]);var j=K.onreadystatechange=function(B){if(!K||K.readyState===0||B==="abort"){ba||d();ba=true;if(K)K.onreadystatechange=c.noop}else if(!ba&&K&&(K.readyState===4||B==="timeout")){ba=true;K.onreadystatechange=c.noop;r=B==="timeout"?"timeout":!c.httpSuccess(K)?"error":f.ifModified&&c.httpNotModified(K,f.url)?"notmodified":"success";var A;if(r==="success")try{y=c.httpData(K,f.dataType,f)}catch(J){r="parsererror";A=J}if(r==="success"||r==="notmodified")o||b();else c.handleError(f,K,r,A);d();B===
"timeout"&&K.abort();if(f.async)K=null}};try{var n=K.abort;K.abort=function(){K&&n.call(K);j("abort")}}catch(t){}f.async&&f.timeout>0&&setTimeout(function(){K&&!ba&&j("timeout")},f.timeout);try{K.send(w==="POST"||w==="PUT"||w==="DELETE"?f.data:null)}catch(v){c.handleError(f,K,null,v);d()}f.async||j();return K}},handleError:function(a,b,d,g){if(a.error)a.error.call(a.context||a,b,d,g);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,g])},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"),g=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(g)c.etag[b]=g;return a.status===304||a.status===0},httpData:function(a,b,d){var g=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&g.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");
if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&g.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&g.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(r,y){if(c.isArray(y))c.each(y,function(z,w){b?g(r,w):d(r+"["+(typeof w==="object"||c.isArray(w)?z:"")+"]",w)});else!b&&y!=null&&typeof y==="object"?c.each(y,function(z,w){d(r+"["+z+"]",w)}):g(r,y)}function g(r,y){y=c.isFunction(y)?y():y;f[f.length]=encodeURIComponent(r)+"="+
encodeURIComponent(y)}var f=[];if(b===m)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){g(this.name,this.value)});else for(var o in a)d(o,a[o]);return f.join("&").replace(xb,"+")}});var Da={},yb=/toggle|show|hide/,zb=/^([+-]=)?([\d+-.]+)(.*)$/,qa,Fa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(M("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 g;if(Da[d])g=Da[d];else{var f=c("<"+d+" />").appendTo("body");g=f.css("display");if(g==="none")g="block";f.remove();Da[d]=g}c.data(this[a],"olddisplay",g)}}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||a===0)return this.animate(M("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 g=d?a:c(this).is(":hidden");c(this)[g?"show":"hide"]()}):this.animate(M("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,g){var f=c.speed(b,d,g);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var o=c.extend({},f),r,y=this.nodeType===1&&c(this).is(":hidden"),z=this;for(r in a){var w=r.replace(Aa,Ba);if(r!==w){a[w]=a[r];delete a[r];r=w}if(a[r]==="hide"&&y||a[r]==="show"&&!y)return o.complete.call(this);if((r==="height"||r==="width")&&this.style){o.display=
c.css(this,"display");o.overflow=this.style.overflow}if(c.isArray(a[r])){(o.specialEasing=o.specialEasing||{})[r]=a[r][1];a[r]=a[r][0]}}if(o.overflow!=null)this.style.overflow="hidden";o.curAnim=c.extend({},a);c.each(a,function(G,L){var P=new c.fx(z,o,G);if(yb.test(L))P[L==="toggle"?y?"show":"hide":L](a);else{var U=zb.exec(L),W=P.cur(true)||0;if(U){L=parseFloat(U[2]);var ba=U[3]||"px";if(ba!=="px"){z.style[G]=(L||1)+ba;W=(L||1)/P.cur(true)*W;z.style[G]=W+ba}if(U[1])L=(U[1]==="-="?-1:1)*L+W;P.custom(W,
L,ba)}else P.custom(W,L,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var g=d.length-1;g>=0;g--)if(d[g].elem===this){b&&d[g](true);d.splice(g,1)}});b||this.dequeue();return this}});c.each({slideDown:M("show",1),slideUp:M("hide",1),slideToggle:M("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,g){return this.animate(b,d,g)}});c.extend({speed:function(a,b,d){var g=a&&typeof a==="object"?a:{complete:d||
!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};g.duration=c.fx.off?0:typeof g.duration==="number"?g.duration:c.fx.speeds[g.duration]||c.fx.speeds._default;g.old=g.complete;g.complete=function(){g.queue!==false&&c(this).dequeue();c.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(a,b,d,g){return d+g*a},swing:function(a,b,d,g){return(-Math.cos(a*Math.PI)/2+0.5)*g+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 g(o){return f.step(o)}this.startTime=l();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;g.elem=this.elem;if(g()&&c.timers.push(g)&&!qa)qa=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=l(),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 g in this.options.curAnim)if(this.options.curAnim[g]!==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 f in this.options.curAnim)c.style(this.elem,f,this.options.orig[f]);this.options.complete.call(this.elem)}return false}else{f=b-this.startTime;this.state=f/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,f,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(qa);qa=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 D.documentElement?function(a){var b=this[0];if(a)return this.each(function(f){c.offset.setOffset(this,a,f)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),g=b.ownerDocument;b=g.body;g=g.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&g.scrollTop||b.scrollTop)-(g.clientTop||b.clientTop||
0),left:d.left+(self.pageXOffset||c.support.boxModel&&g.scrollLeft||b.scrollLeft)-(g.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(G){c.offset.setOffset(this,a,G)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,g=b,f=b.ownerDocument,o,r=f.documentElement,y=f.body;g=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var z=b.offsetTop,w=b.offsetLeft;(b=b.parentNode)&&
b!==y&&b!==r;){if(c.offset.supportsFixedPosition&&g.position==="fixed")break;o=f?f.getComputedStyle(b,null):b.currentStyle;z-=b.scrollTop;w-=b.scrollLeft;if(b===d){z+=b.offsetTop;w+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){z+=parseFloat(o.borderTopWidth)||0;w+=parseFloat(o.borderLeftWidth)||0}g=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&o.overflow!=="visible"){z+=parseFloat(o.borderTopWidth)||
0;w+=parseFloat(o.borderLeftWidth)||0}g=o}if(g.position==="relative"||g.position==="static"){z+=y.offsetTop;w+=y.offsetLeft}if(c.offset.supportsFixedPosition&&g.position==="fixed"){z+=Math.max(r.scrollTop,y.scrollTop);w+=Math.max(r.scrollLeft,y.scrollLeft)}return{top:z,left:w}};c.offset={initialize:function(){var a=D.body,b=D.createElement("div"),d,g,f,o=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;g=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;g.style.position=
"fixed";g.style.top="20px";this.supportsFixedPosition=g.offsetTop===20||g.offsetTop===15;g.style.position=g.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==o;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 g=c(a),f=g.offset(),o=parseInt(c.curCSS(a,"top",true),10)||0,r=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,d,f);d={top:b.top-f.top+o,left:b.left-f.left+r};"using"in b?b.using.call(a,d):g.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),
g=/^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;g.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;g.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-g.top,left:d.left-g.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||D.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(g){var f=this[0],o;if(!f)return null;if(g!==m)return this.each(function(){if(o=Q(this))o.scrollTo(!a?g:c(o).scrollLeft(),a?g:c(o).scrollTop());else this[d]=g});else return(o=Q(f))?"pageXOffset"in o?o[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&o.document.documentElement[d]||o.document.body[d]:f[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(g){return this[0]?c.css(this[0],d,false,g?"margin":"border"):null};c.fn[d]=function(g){var f=this[0];if(!f)return g==null?null:this;if(c.isFunction(g))return this.each(function(o){var r=c(this);r[d](g.call(this,o,r[d]()))});return"scrollTo"in f&&f.document?f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b]:f.nodeType===9?Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+
b],f.body["offset"+b],f.documentElement["offset"+b]):g===m?c.css(f,d):this.css(d,typeof g==="string"?g:g+"px")}});e.jQuery=e.$=c})(window);(function(e){e.fn.hitch=function(m,k,h){return this.bind(m,function(){return k.apply(h||this,Array.prototype.slice.call(arguments))})};e.fn.liveHitch=function(m,k,h){return this.live(m,function(){return k.apply(h||this,Array.prototype.slice.call(arguments))})}})(jQuery);
(function(e){e.fn.linkify=function(){return this.each(function(){var m=e(this);m.html('<a href="javascript:;" title="'+m.text()+'">'+m.html()+"</a>")})}})(jQuery);
(function(e){e.fn.colorFade=function(m,k){var h=function(x){var C;if(C=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(x))return[parseInt(C[1],16),parseInt(C[2],16),parseInt(C[3],16)];if(C=/^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(x))return[parseInt(C[1]+C[1],16),parseInt(C[2]+C[2],16),parseInt(C[3]+C[3],16)];if(C=/^rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)$/i.exec(x))return[parseInt(C[1],10),parseInt(C[2],10),parseInt(C[3],10)];return false};k=k||{};var p=this,l=k.delay||
1E3,q=(k.duration||1E3)/20,s=[];for(var u in m)s.push({prop:u,from:h(p.css(u)),to:h(m[u])});setTimeout(function(){var x=1,C=setInterval(function(){for(var E=0;s[E];++E){var F=s[E];if(F.from&&F.to){var O=[Math.min(Math.max(parseInt(x*((F.to[0]-F.from[0])/q)+F.from[0],10),0),255),Math.min(Math.max(parseInt(x*((F.to[1]-F.from[1])/q)+F.from[1],10),0),255),Math.min(Math.max(parseInt(x*((F.to[2]-F.from[2])/q)+F.from[2],10),0),255)];p.css(F.prop,"rgb("+O.join(",")+")")}}if(++x>q){clearInterval(C);p.trigger("fadeComplete")}},
20)},l);return this}})(jQuery);(function(e){e.fn.scrollIntoView=function(){var m=Math.max(0,this.offset().top-20),k=null,h=this,p=setInterval(function(){var l=self.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop,q=m-l;if(Math.abs(q)<5||k&&k==l){k=null;window.scrollTo(0,l);clearInterval(p);p=null;h.trigger("scrollComplete")}else{k=l;window.scrollTo(0,Math.round(l+q/5))}},20);return this}})(jQuery);
(function(e){e.fn.ellipsis=function(m){var k=function(p){this.IS_TEXT_NODE=0;this.IS_START_ELEMENT_NODE=1;this.IS_END_ELEMENT_NODE=2;this.IS_ATTRIBUTE_NODE=3;this.stack=this._parse(p)};k.prototype={hasText:function(){for(var p=0;this.stack[p];++p)if(this.stack[p].type==this.IS_TEXT_NODE&&this.stack[p].content.length>0)return true;return false},truncate:function(p){var l=this._findLastTextNode();if(l==-1)return"";this.stack[l].content=this.stack[l].content.substr(0,this.stack[l].content.length-1);
if(this.stack[l].content.length==0){var q=null;if(l>0&&this.stack[l].depth==this.stack[l-1].depth){this.stack.splice(l-1,3);q=l-2}else{this.stack.splice(l,1);q=l-1}for(;this.stack[q]&&this.stack[q+1];)if(this.stack[q].type==this.IS_START_ELEMENT_NODE&&this.stack[q+1].type==this.IS_END_ELEMENT_NODE){this.stack.splice(q,2);--q}else break}l="";q=this.stack.length;for(var s=this._findLastTextNode(),u=0;u<q;++u){l+=this.stack[u].content;if(u==s){l=l.replace(/\s+$/,"");l+=p}}return l},_parse:function(p){for(var l=
this.IS_TEXT_NODE,q="",s=0,u=[],x="",C=p.length,E=0;E<C;++E){var F=p.substr(E,1);if(l==this.IS_START_ELEMENT_NODE){q+=F;if(F==">"){u.push({content:q,depth:s,type:l});q="";l=this.IS_TEXT_NODE}else if(F=='"'||F=="'"){x=F;l=this.IS_ATTRIBUTE_NODE}}else if(l==this.IS_ATTRIBUTE_NODE){q+=F;if(F==x)l=this.IS_START_ELEMENT_NODE}else if(l==this.IS_TEXT_NODE)if(F=="<"){q!=""&&u.push({content:q,depth:s,type:l});q="<";if(p.substr(E+1,1)=="/")l=this.IS_END_ELEMENT_NODE;else{l=this.IS_START_ELEMENT_NODE;++s}}else q+=
F;else if(l==this.IS_END_ELEMENT_NODE){q+=F;if(F==">"){u.push({content:q,depth:s,type:l});q="";l=this.IS_TEXT_NODE;--s}}}q!=""&&u.push({content:q,depth:s,type:l});return u},_findLastTextNode:function(){for(var p=this.stack.length;p--;)if(this.stack[p].type==this.IS_TEXT_NODE)return p;return-1}};var h=document.documentElement.style;m=m||"...";if("textOverflow"in h||"OTextOverflow"in h)return this;return this.each(function(){var p=e(this);if(p.css("overflow")=="hidden"){var l=e(this.cloneNode(true)).css({position:"absolute",
visibility:"hidden",width:"auto",overflow:"visible"});p.after(l);var q=p.html();q=new k(q);for(var s=p.width();q.hasText()&&l.width()>s;)l.html(q.truncate(m));p.html(l.html());l.remove()}})}})(jQuery);(function(e){e.fn.swapClasses=function(m,k){return e(this).removeClass(m).addClass(k)}})(jQuery);
(function(e){var m=function(){};m.prototype={parse:function(h){var p=com.nature.StringUtils;return"<p>"+p.br(p.entities(h))+"</p>"}};var k=function(){};k.prototype={parse:function(h){if(!h)return"";h=com.nature.StringUtils.entities(h);var p;if(h.indexOf("*")){p=new RegExp("\\*([^ ][^\\r\\n]*?)\\*","g");h=h.replace(p,"<b>$1</b>")}if(h.indexOf("_")!=-1){p=new RegExp("_(.+?)_","g");h=h.replace(p,"<i>$1</i>")}if(h.indexOf("~")!=-1){p=new RegExp("~([^ ][^\\r\\n]*?)~","g");h=h.replace(p,"<sub>$1</sub>")}if(h.indexOf("^")!=
-1){p=new RegExp("\\^([^ ][^\\r\\n]*?)\\^","g");h=h.replace(p,"<sup>$1</sup>")}if(h.indexOf('"')!=-1){p=new RegExp('"\\b(.+?)\\(\\b(.+?)\\b\\)":([^\\s]+)',"g");h=h.replace(p,'<a href="$3" title="$2">$1</a>');p=new RegExp('"\\b(.+?)\\b":([^\\s]+)',"g");h=h.replace(p,'<a href="$2">$1</a>')}if(h.indexOf("\n")!=-1){p=new RegExp("(.*)\n([^#*\n].*)","gi");h=h.replace(p,"$1<br />$2");p=new RegExp("\n*<br */>","gi");h=h.replace(p,"\n")}h=h.split("\n");p=h.length;for(var l=0;l<p;++l){var q=h[l].replace(/\s*$/,
""),s=false;if(q.search(/^\s*bq\.\s+/)!=-1){q=q.replace(/^\s*bq\.\s+/,"\t<blockquote>")+"</blockquote>";s=true}if(q.search(/^\s*\*\s+/)!=-1){q=q.replace(/^\s*\*\s+/,"\t<liu>")+"</liu>";s=true}if(q.search(/^\s*#\s+/)!=-1){q=q.replace(/^\s*#\s+/,"\t<lio>")+"</lio>";s=true}if(!s&&q.replace(/\s/g,"").length>0)q="<p>"+q+"</p>";h[l]=q+"\n"}s=false;var u="";for(l=0;l<p;++l){q=h[l];if(s&&u=="ul"&&!q.match(/^\t<liu/)){q="</ul>\n"+q;s=false}if(s&&u=="ol"&&!q.match(/^\t<lio/)){q="</ol>\n"+q;s=false}if(!s&&q.match(/^\t<liu/)){q=
"<ul>"+q;s=true;u="ul"}if(!s&&q.match(/^\t<lio/)){q="<ol>"+q;s=true;u="ol"}h[l]=q}h=h.join("\n");return h=h.replace(/li[o|u]>/g,"li>")}};e.fn.preview=function(h,p){var l=function(E){var F=this.val();if(!(F==C&&!E)){q.html(s.parse(F));C=F}},q=typeof h=="string"?e(h):h,s=function(E){switch(E){case "textile":return new k;default:return new m}}(p),u=null,x=this,C=this.val();this.bind("focus",function(){u=setInterval(function(){l.call(x)},200)});this.bind("blur",function(){clearInterval(u);l.call(x)});
l.call(this,true);return this}})(jQuery);(function(e){e.fn.grow=function(){var m=parseInt(this.css("height"),10);this.bind("keyup",function(){e(this).css("height",0);e(this).css("height",Math.max(m,this.scrollHeight)+"px")});return this}})(jQuery);
(function(e){e.fn.collidesWith=function(m){var k=this,h=e(m),p=e([]);if(!k||!h)return false;k.each(function(){var l=e(this),q=l.offset(),s=q.left,u=q.top,x=s+l.outerWidth(),C=u+l.outerHeight();h.not(l).each(function(){var E=e(this),F=E.offset(),O=F.left;F=F.top;var M=O+E.outerWidth();E=F+E.outerHeight();if(s>=M||x<=O||u>=E||C<=F)return true;else p.length==p.not(this).length&&p.push(this)})});return p}})(jQuery);
(function(e){e.fn.initPlaceholders=function(){var m,k,h;if("placeholder"in document.createElement("input"))return this;m=function(p){if(!p.val().replace(/[\s]+/,"").length){p.val(p.attr("placeholder"));p.addClass("placeholder")}};k=function(p){if(p.val()==p.attr("placeholder")){p.val("");p.removeClass("placeholder")}};h=this.find("input[placeholder]");h.focus(function(){k(e(this))}).blur(function(){m(e(this))}).each(function(){m(e(this))});this.submit(function(){h.each(function(){k(e(this))});setTimeout(function(){h.each(function(){m(e(this))})},
100)});return this}})(jQuery);(function(e){e.event.special.imgpreload={add:function(m){if(this.nodeType===1&&this.tagName.toLowerCase()==="img"&&this.src!=="")if(this.complete||this.readyState===4)m.apply(this);else this.readyState==="uninitialized"&&this.src.indexOf("data:")===0?e(this).trigger("error"):e(this).bind("load",m)}}})(jQuery);var com=com||{};com.nature=com.nature||{};
com.nature.Css={isImplemented:function(e){var m=document.createElement("div");if(!m.style)return false;if(typeof m.style[e]=="string")return true;var k=["Ms","Moz","Webkit","O","Khtml"],h=k.length;for(e=e.substr(0,1).toUpperCase()+e.substring(1);h--;)if(typeof m.style[k[h]+e]=="string")return true;return false}};com=com||{};com.nature=com.nature||{};
com.nature.StringUtils={trim:function(e){if(!e)return"";return e.replace(/^\s+/,"").replace(/\s+$/,"")},isEmpty:function(e){return this.trim(e).length==0},entities:function(e){if(!e)return"";for(var m=[[">","&gt;"],["<","&lt;"],["&","&amp;"]],k=m.length;k--;)if(e.indexOf(m[k][0])!=-1)e=e.replace(new RegExp(m[k][0],"g"),m[k][1]);return e},br:function(e){if(!e)return"";if(e.indexOf("\n")!=-1||e.indexOf("\r")!=-1)return e.replace(/\r\n|\r|\n/g,"<br />");return e}};com=com||{};
com.nature=com.nature||{};com.nature.Cookie={set:function(e,m,k,h){e=[e+"="+m];if(k){m=new Date;m.setTime(m.getTime()+k*24*60*60*1E3);e.push("expires="+m.toGMTString())}h&&e.push("path="+h);document.cookie=e.join(";")},get:function(e){if(e){if(e=(new RegExp("(^|;| )"+e+"=([^;]*)","ig")).exec(document.cookie))return e[2];return false}},raw:function(){return document.cookie},remove:function(){for(var e=0;arguments[e];++e)this.set(arguments[e],"",-1)}};com=com||{};com.nature=com.nature||{};
com.nature.Broadcaster=function(){var e={},m=function(k){return typeof e[k]!="undefined"};this.subscribe=function(k,h,p){m(k)||(e[k]=[]);e[k].push({fn:h,scope:p||null})};this.unsubscribe=function(k,h,p){if(m(k)){p=p||null;for(var l=e[k].length;l--;)if(e[k][l].fn==h&&e[k][l].scope==p){e[k].splice(l,1);return}}};this.notify=function(k){if(m(k)){var h=e[k].length,p=Array.prototype.slice.call(arguments,1);p.unshift(this);for(p.unshift(k);h--;)e[k][h].fn.apply(e[k][h].scope,p)}};this.toString=function(){return"[object com.nature.Broadcaster]"}};
com.nature.Popups={_children:{},_open:[],add:function(e){this._children[e.id]=e},remove:function(e){e.id in this._children&&delete this._children[e.id]},redraw:function(e,m){for(var k=this._open.length;k--;){var h=this._children[this._open[k]];e=="close"&&h.parent==m?h.close():h.pos()}},onOpen:function(e,m){this._open.push(m.id)},onClose:function(e,m){for(e=this._open.length;e--;)if(m.id==this._open[e]){this._open.splice(e,1);break}}};com.nature.Popups.collapsableParents=["div.section","div.figure-preview"];
com.nature.PopupGroup=function(e){var m={},k=[];this.add=function(h){h.id in m||(m[h.id]=h)};this.remove=function(h){h.id in m&&delete m[h.id]};this.onOpen=function(h,p){e&&k.length&&m[k.pop()].close();k.push(p.id)};this.onClose=function(h,p){for(h=k.length;h--;)if(p.id==k[h]){k.splice(h,1);break}};this.toString=function(){return"[object com.nature.PopupGroup]"}};
com.nature.Popup=function(e){var m=0,k=function(h,p,l){var q={hasArrow:true,hasTitle:true,hasCloseButton:true,position:"above",title:h.html(),event:"click"};l=e.extend(q,l);for(var s in l)this["_"+s]=l[s];this.id="popup-"+p.attr("id");if(m===0)m=1;else this.id+=++m;this.isOpen=false;this.parent=null;this._$base=h;this._$content=p;this._$popup=null};k.cache={};k.prototype={init:function(){var h=this._$base,p=false;if(h.is("a"))h.attr("href")||h.attr("href","javascript:;");else{h.attr("tabindex")||
h.attr("tabindex","0");p=true}var l=this;if(this._event==="mouseover"||this._event==="mouseenter"){var q=false,s=null;h.hitch("mouseenter",function(u){q=true;s!==null&&clearTimeout(s);this.open(u)},this).hitch("mouseleave",function(u){q=false;s=setTimeout(function(){q||l.close(u)},200)},this)}else if(this._event==="click"&&p){h.hitch(this._event,this.toggle,this);h.bind("keydown",function(u){u.keyCode==13&&l.toggle(u)})}else h.hitch(this._event,this.toggle,this)},build:function(){if(typeof com.nature.Popup.cache[this.id]!=
"undefined")this._$popup=e("#"+this.id);else{com.nature.Popup.cache[this.id]=true;this.parent=this._$base.closest(com.nature.Popups.collapsableParents.join(",")).attr("id");com.nature.Popups.add(this);var h='<div id="'+this.id+'" class="'+("box popup "+this._$content.attr("class"))+'">';if(this._hasTitle||this._hasCloseButton){h+='<div class="title-bar cleared">';if(this._hasTitle)h+="<h2>"+this._title+"</h2>";if(this._hasCloseButton)h+='<button class="close">close</button>';h+="</div>"}if(this._hasArrow)h+=
'<div class="arrow arrow-'+({above:"bottom",below:"top"}[this._position]||"bottom")+'"></div>';h+='<div class="popup-content">';h+=this._$content.html();h+="</div>";h+="</div>";e("body").append(h);this._$popup=e("#"+this.id);com.nature.Css.isImplemented("boxShadow")||this._$popup.addClass("popup-highlight");this._$popup.find("button").hitch("click",this.toggle,this)}},toggle:function(h){if(this.isOpen)return this.close(h);return this.open(h)},open:function(h){this.build();this.isOpen=true;this._$popup.addClass("popup-shown").css({display:"block"});
this.pos(h);if(e("body").hasClass("ie6")){h=this._$popup.collidesWith("select");h.length>0&&e.each(h,function(){e(this).css({visibility:"hidden"})})}com.nature.Popups.onOpen("open",this);typeof this.notify!="undefined"&&this.notify("open");return false},close:function(){var h=this;this._$popup.fadeOut("fast",function(){e(this).removeClass("popup-shown");h.isOpen=false});com.nature.Popups.onClose("close",this);e("body").hasClass("ie6")&&e("select").css({visibility:"visible"});typeof this.notify!="undefined"&&
this.notify("close");return false},pos:function(h){var p=this._$base.offset(),l=this._$base.outerWidth(),q=Math.min(Math.max(0,l/2-25),this._$popup.outerWidth()-50),s=false,u=0,x=0;if(h&&this._$base.css("display")==="inline"&&this._$base.height()>parseInt(this._$base.css("lineHeight"),10)){p.top=h.pageY-5;p.left=h.pageX-25;q=0;s=true}if(this._hasArrow&&(u=l-this._$popup.find("div.arrow").outerWidth()/1.5)<0)p.left+=u;x=p.left+this._$popup.outerWidth()-e(window).width()+20;if(x>0){p.left-=x;q+=x}h=
p.top-(this._$popup.height()+(this._hasArrow?32:0));s=p.top+(!s?this._$base.height():2);l=this._position=="above"?h:s;if(this._position=="above"&&l<e(document).scrollTop()){this._$popup.find("div.arrow-bottom").removeClass("arrow-bottom").addClass("arrow-top");l=s}else this._position=="above"&&this._$popup.find("div.arrow-top").removeClass("arrow-top").addClass("arrow-bottom");if(this._position=="below"&&l+this._$popup.height()>e(document).scrollTop()+e(window).height()){this._$popup.find("div.arrow-top").removeClass("arrow-top").addClass("arrow-bottom");
l=h}else this._position=="below"&&this._$popup.find("div.arrow-bottom").removeClass("arrow-bottom").addClass("arrow-top");this._$popup.css({top:l+"px",left:p.left+"px"});this._$popup.find("div.arrow").css({left:q+"px"})},title:function(h){if(typeof h!="undefined")this._title=h;return this._title},position:function(h){if(typeof h!="undefined")this._position=h;return this._position},hasArrow:function(h){if(typeof h!="undefined")this._hasArrow=!!h;return this._hasArrow},hasTitle:function(h){if(typeof h!=
"undefined")this._hasTitle=!!h;return this._hasTitle},hasCloseButton:function(h){if(typeof h!="undefined")this._hasCloseButton=!!h;return this._hasCloseButton},toString:function(){return"[object com.nature.Popup]"}};return k}(jQuery);com=com||{};com.nature=com.nature||{};
com.nature.Truncator=function(){var e=[],m=[],k={img:true,br:true,hr:true},h=false,p=false,l=function(s,u,x){for(var C=false,E=false,F=false,O=false,M=[],Q=true;u>-1&&Q;){var c=s.charAt(u);if(c==">"){var T=/<\s*(\/)?([^\s>]+)/.exec(s.substring(s.lastIndexOf("<",u),u+1).toLowerCase()),da=T[2];if(T[1]){m.push(da);E=true}else{if(m.length)m.pop();else da in k||e.unshift(da);C=true}}else if(c=="<")E=C=false;else if(c=='"'&&C&&!F)F=true;else if(c=='"'&&C&&F)F=false;else if(c=="&"&&O)O=false;else if(!C&&
!E&&!F&&!O){if(c==";"&&u>0)if(s.substring(s.lastIndexOf("&",u),u+1).match(/^&[#0-9a-z]+;$/))O=true;if(x){--x;if(x==0)Q=false}else if(c==".")if(u>2)s.substring(0,u).match(/((et al(<\/i>)?)|(fig)|(ref))$/i)||(Q=false);else Q=false;else if(c=="!"||c=="?")Q=false}M.unshift(c);--u}if(Q)h=true;if(M[0]=="."||M[0]=="?"||M[0]=="!")M.shift();return M.join("")},q=function(s,u,x){for(var C=false,E=false,F=false,O=false,M=[],Q=s.length,c=true;u<Q&&c;){var T=s.charAt(u);if(T=="<"){var da=/<\s*(\/)?([^\s>]+)/.exec(s.substring(u,
s.indexOf(">",u)+1).toLowerCase()),D=da[2];if(da[1]){e.length?e.pop():m.unshift(D);E=true}else{D in k||e.push(D);C=true}}else if(T==">")E=C=false;else if(T=='"'&&C&&!F)F=true;else if(T=='"'&&C&&F)F=false;else if(T==";"&&O)O=false;else if(!C&&!E&&!F&&!O){if(T=="&")O=true;if(x){--x;if(x==0)c=false}else if(T==".")if(u>2)s.substring(0,u).match(/((et al(<\/i>)?)|(fig)|(ref))$/i)||(c=false);else c=false;else if(T=="!"||T=="?")c=false}M.push(T);++u}s=M.length-1;if(M[s]=="."||M[s]=="?"||M[s]=="!")M.pop();
if(c)p=true;return M.join("")};return{truncate:function(s,u){e=[];m=[];p=h=false;if(s.length<=u)return s;s=q(s,0,u);if(e.length)s+="</"+e.reverse().join("></")+">";p||(s=s.replace(/((\s*<\/[^>]+>\s*)*)$/i,"&hellip;$1"));return s},getContextSnippet:function(s,u,x){e=[];m=[];p=h=false;if(typeof x=="undefined")x=null;var C=u.html();u.html("__"+C+"__");s=s.html();u.html(C);var E=s.indexOf("__"+C+"__")-1;u=l(s,E,x);x=q(s,E+C.length+5,x);s="";if(m.length)s="<"+m.join("><")+">";s+=u;s+=C;s+=x;if(e.length)s+=
"</"+e.reverse().join("></")+">";h||(s=s.replace(/^((\s*<[^>]+>\s*)*)/i,"$1&hellip;"));p||(s=s.replace(/((\s*<\/[^>]+>\s*)*)$/i,"&hellip;$1"));return s},toString:function(){return"[object com.nature.Truncator]"}}}(jQuery);com=com||{};com.nature=com.nature||{};
com.nature.Configuration={_data:{},add:function(e){var m=this;jQuery.each(e,function(k,h){if(!m._data[k]&&h!="")m._data[k]=h})},change:function(e){var m=this;jQuery.each(e,function(k,h){m._data[k]=h})},remove:function(e){this._data[e]&&delete this._data[e]},get:function(e){return this._data[e]||false}};com=com||{};com.nature=com.nature||{};
com.nature.Bitstate=function(){return function(){this.flagmasks={};this.init=function(){flagNames=["highlightcompound"];for(var e=0;e<flagNames.length;e++)this.flagmasks[flagNames[e]]=Math.pow(2,e);this.flags=parseInt(com.nature.Cookie.get("bitstate"))||0};this.isSet=function(e){return!!(this.flags&this.flagmasks[e])};this.set=function(e,m){if(this.flagmasks[e]&&!this.isSet(e)){this.flags|=this.flagmasks[e];this.save(m||"/")}else return false};this.clear=function(e,m){if(this.flagmasks[e]){this.flags&=
~this.flagmasks[e];this.save(m||"/")}else return false};this.save=function(e){com.nature.Cookie.set("bitstate",this.flags,365,e);return true}}}(jQuery);
com.nature.Icb=function(e){var m=function(k,h){this.pm=com.nature.PageManager;this.isOpen=false;this.datapack=h;this.mediaId=k;this.currentversion=112;this.enabled=this.isPluginEnabled();this.dimensions={smallWidth:e("#content").width(),smallHeight:this.enabled&&this.currentversion>0?400:60,largeWidth:e("#constrain").width(),largeHeight:700};this.status=""};m.prototype={init:function(){var k=this;this.build();e("span[class^=icb-"+this.mediaId.match(/\d+/)[0]+"-]").each(function(){$span=e(this);$span.linkify();
$span.find("a").click(function(){k.show(e(this))})})},build:function(){var k=this,h="<div id='icb-container-"+this.mediaId+"' class='popup box icb-box'>";h+="<div class='title-bar cleared'>";h+="<button class='close'>close</button>";if(this.enabled&&this.currentversion>0)h+="<button class='grow'>Enlarge</button>";if(this.enabled&&this.currentversion>0)h+="<button class='shrink' style='display:none;'>Shrink</button></div>";h+="<div class='arrow arrow-bottom'></div>";h+="<div class='popup-content'></div></div>";
e("body").append(h);this.$container=e("#icb-container-"+this.mediaId);this.$content=this.$container.find(".popup-content");this.$container.find("button.close").click(function(){k.hide()});this.$container.find("button.grow").click(function(){k.grow()});this.$container.find("button.shrink").click(function(){k.shrink()})},show:function(k){var h=this;if(!this.icbObj)this.icbObj=document.getElementById("ActiveIcmCtl-"+this.mediaId);this.$content.css({width:this.dimensions.smallWidth,height:this.dimensions.smallHeight});
if(this.icbObj){this.icbObj.width=this.dimensions.smallWidth-20+"px";this.icbObj.height=this.dimensions.smallHeight+"px"}this.$container.find("button.grow").show();this.$container.find("button.shrink").hide();this.isOpen=true;this.position(k);e("#ActiveIcmCtl-"+this.mediaId).size()==0?setTimeout(function(){h.composeICBdocument(k.parent().attr("class"))},100):this.runCommand(k)},runCommand:function(k){var h=this;if(this.icbObj){setTimeout(function(){"RunCommands"in h.icbObj?h.icbObj.RunCommands(k.parent().attr("data-cmd")):
setTimeout(arguments.callee,200)},100);this.pm.trackClick({action:"iSee_view",source:k.closest(".expanded, .collapsed").attr("id"),destination:k.parent().attr("data-cmd")})}else this.pm.trackClick({action:"iSee_view",source:k.closest(".expanded, .collapsed").attr("id"),destination:"iSee download request"})},runFirstCommand:function(k,h){var p=document.getElementById("ActiveIcmCtl-"+h),l=e("."+k);setTimeout(function(){p.RunCommands(l.attr("data-cmd"))},100);com.nature.PageManager.trackClick({action:"iSee_view",
source:l.closest(".expanded, .collapsed").attr("id"),destination:l.attr("data-cmd")})},hide:function(){this.$container.css({visibility:"hidden"});this.isOpen=false},position:function(k){var h=e(window).height();e(window).width();var p,l,q=this.$container.find(".arrow");k.offset().top-e(document).scrollTop()<h/2?(p="below"):(p="above");k.offset().left-e("#constrain").offset().left<e("#constrain").width()/2?(l="right"):(l="left");h=k.offset().left;if(l=="left"){h-=this.dimensions.smallWidth-k.width()/
2;q.addClass("arrow-right")}else q.removeClass("arrow-right");this.lastLeft=h;l=k.offset().top-this.dimensions.smallHeight-(this.$container.height()-this.$content.height())-k.height()-q.height();if(p=="below"){l+=this.$container.height()+3*q.height()+k.height();q.swapClasses("arrow-bottom","arrow-top")}else q.swapClasses("arrow-top","arrow-bottom");this.lastTop=l;k=this.$content.width();this.$container.css({left:h,top:l,width:k,visibility:"visible"})},grow:function(){newTop=this.$content.offset().top-
(this.dimensions.largeHeight-this.dimensions.smallHeight)-10;if(newTop<0)newTop=0;if(e(document).height()<newTop+this.dimensions.largeHeight)newTop=e(document).height()-this.dimensions.largeHeight;this.$content.css({width:this.dimensions.largeWidth,height:this.dimensions.largeHeight});this.$container.css({top:newTop,left:e("#constrain").offset().left-10,width:this.$content.width()});this.icbObj.width=this.dimensions.largeWidth-20+"px";this.icbObj.height=this.dimensions.largeHeight+"px";this.$container.find("button.grow").hide();
this.$container.find("button.shrink").show()},shrink:function(){this.$content.css({width:this.dimensions.smallWidth,height:this.dimensions.smallHeight});this.$container.css({top:this.lastTop,left:this.lastLeft,width:this.$content.width()});this.icbObj.width=this.dimensions.smallWidth-20+"px";this.icbObj.height=this.dimensions.smallHeight+"px";this.$container.find("button.grow").show();this.$container.find("button.shrink").hide()},composeICBdocument:function(k){if(this.enabled&&this.currentversion>
0)this.insertDatapackObject(k);else this.enabled&&!this.currentversion&&navigator.userAgent.indexOf("Safari")!=-1?this.$content.html("<p>You appear to have installed the Molsoft plugin but are running Safari in 64-bit mode which is not supported. Please run Safari in 32-bit mode as <a href='http://www.molsoft.com/install-acticm-mac.html'>detailed here</a> and reload the page.</p>"):this.$content.html("<p>In order to view this media you need to download the ActiveICM plugin from the <a href='http://www.molsoft.com/getbrowser.cgi?product=activeicm&act=list'>MolSoft downloads page</a> and restart your browser.</p>")},
isPluginEnabled:function(){if(e.browser.msie){var k;try{k=new ActiveXObject("ActiveIcm.ActiveIcmCtl")}catch(h){}if(k)this.currentversion=k.pluginVersion;return!!k}else{if(navigator.plugins&&navigator.plugins.length>0)for(i=0;i<navigator.plugins.length;i++)if(navigator.plugins[i].name.toLowerCase().indexOf("molsoft")!=-1){k=document.createElement("div");k.setAttribute("style","visibility:hidden");k.innerHTML="<object id='icbObjectVersion' type='application/x-molsoft-icb' width='0%' height='0%'></object>";
e("body").append(k);this.currentversion=document.getElementById("icbObjectVersion").pluginVersion;e("#icbObjectVersion").parent().remove();return true}return false}},insertDatapackObject:function(k){this.currentVersion<=111?this.$content.html('<object id="ActiveIcmCtl-'+this.mediaId+'" type="application/x-molsoft-icb" data="'+this.datapack+'" width="100%" height="100%" ></object>'):this.$content.html('<object id="ActiveIcmCtl-'+this.mediaId+'" type="application/x-molsoft-icb" width="'+this.dimensions.smallWidth+
'" height="'+this.dimensions.smallHeight+'"><param name="projectFile" value="'+this.datapack+'" /><param name="onLoad" value="icbInit(\''+k+"','"+this.mediaId+"')\"</object>");this.icbObj=document.getElementById("ActiveIcmCtl-"+this.mediaId);e(this.icbObj).load(function(){alert("moo")})},detectOS:function(){var k="other",h=navigator.userAgent.toLowerCase();if(h.indexOf("windows")!=-1)k="windows";if(h.indexOf("mac")!=-1)k="mac";if(h.indexOf("linux")!=-1)k="linux";return k}};return m}(jQuery);
com=com||{};com.nature=com.nature||{};
com.nature.TabGroup=function(e){var m=function(k){this.id=k.attr("id");this.active=k.find("div.tab-box.active").attr("id");this._el=k;this._numTabs=k.find("h3.tab").length};m.prototype={init:function(){this._el.append('<div class="tab-bar"></div>');this._redraw();e("#"+this.id+" h3.tab").linkify();e("#"+this.id+" h3.tab a").hitch("click",this.click,this).ellipsis()},click:function(k){k=e(k.target).parents("div.tab-box").attr("id");k!=this.active&&this.switchTo(k)},switchTo:function(k){if(this.active!=
k){var h=e("#"+k);h.length||(h=this._el.find("div.tab-box:first"));e("#"+this.active).removeClass("active");h.addClass("active");this.prev=this.active;this.active=k;this.notify("switch",this.prev,k)}},getTitle:function(){return e("#"+this.active+" h3.tab a").attr("title")},_redraw:function(){var k=e("#"+this.id+" h3.tab"),h=k.length,p=this._el.find("div.tab-content").width()+2,l=Math.floor(p/h),q=l+p%h,s=0,u=0;k.each(function(){var x=h<3?Math.round(p/3):e(this).closest("div.tab-box").hasClass("active")?
q:l;u=Math.max(u,e(this).outerHeight());e(this).closest("div.tab-box").find("div.tab-content").css("paddingTop",e(this).outerHeight()+9+"px");e(this).css({left:s+"px",top:0,width:x=="auto"?"auto":x+"px"});s+=x});h<3&&this._el.find("div.tab-bar").css({height:u+6+"px"})}};return m}(jQuery);com=com||{};com.nature=com.nature||{};
com.nature.History=function(e){return function(){var m=e.browser.msie&&(!document.documentMode||document.documentMode<8),k="onhashchange"in window&&!m,h=null,p=null;if(m)h=e('<iframe src="javascript:0"/>').css({display:"none"}).appendTo(document.body).get(0).contentWindow;var l=function(x){x||(x=h?h.location.href:location.href);return q(x.replace(/^.*?#/,""))},q=function(x){if(x.indexOf("/")!==0)x="/"+x;return x},s=function(){var x=l();p=setInterval(function(){var C=l();if(C!=x){x=C;if(h)location.hash=
C;e(window).trigger("hashchange")}},100)},u=function(){h||clearInterval(p)};e.event.special.hashchange={setup:function(){if(k)return false;s()},teardown:function(){if(k)return false;u()}};this.add=function(x){x=q(x);if(h){h.document.open();h.document.close();h.location.hash=x}location.hash=x};this.getHash=l;this.clean=function(x){return x.replace(/^\//,"")}}}(jQuery);
com.nature.Article=function(e){return function(){var m=new com.nature.History,k="",h=e("body.ie6").length>0,p;this.init=function(){e("h1.toggle, h2.toggle, h3.toggle").linkify().find("a").hitch("click",this.toggle,this);if(e("div.article-template").length){e('a[href*="#"]').liveHitch("click",this.anchorLink,this);e(window).hitch("hashchange",function(){this.openAndScrollTo(m.getHash())},this);location.hash&&this.openAndScrollTo(m.getHash(location.href))}};this.anchorLink=function(l){l=l.target;for(p=
e(l).parents("ul.figure-nav").size()>0?e(l).parents(".figure").attr("id"):e(l).parents("section").find("h1").text().toLowerCase().replace(/\s/g,"-");l.nodeName.toLowerCase()!="a";)l=l.parentNode;var q=l.hostname.replace(/:[0-9]+$/,""),s=location.hostname.replace(/:[0-9]+$/,""),u=l.pathname.replace(/^\//,""),x=location.pathname.replace(/^\//,"");if(q!=s||u!=x)return true;this.openSection(e(l).attr("href"));return false};this.toggle=function(l){l=e(l.target).closest(".expanded, .collapsed");if(l.hasClass("expanded"))if(h){var q=
e(window).scrollTop();this.close(l);setTimeout(function(){window.scrollTo(0,q)},50)}else this.close(l);else{k="toggle";this.openSection(l.attr("id"))}return false};this.openSection=function(l){l=m.getHash(l);var q=m.getHash();l!=q?m.add(l):this.openAndScrollTo(l)};this.openAndScrollTo=function(l){l=m.clean(l);if(l.length){var q=e("#"+l);this.open(q.closest(".expanded, .collapsed"));this.highlight(q);if(k!="toggle"||h){if(h)q.parents("#extranav").length==0&&setTimeout(function(){window.scrollTo(0,
Math.max(q.offset().top-10,0))},50);else window.scrollTo(0,Math.max(q.offset().top-10,0));this.notify("scroll",p,q.attr("id"))}}else window.scrollTo(0,0);k=""};this.highlight=function(l){var q=null;if(l.hasClass("section"))q=l.find("h1.section-heading");else if(l.hasClass("figure"))q=l.find("span.legend");else{q=l.find("h2.toggle, h3.toggle");q.length||(q=l)}l=q.css("backgroundColor");if(l=="transparent"||l.match(/rgba *\([0-9]{1,3} *, *[0-9]{1,3} *, *[0-9]{1,3} *, *0 *\)/i))l="#ffffff";q.hasClass("scroll-highlight")||
q.addClass("scroll-highlight").colorFade({backgroundColor:l},{delay:1E3}).bind("fadeComplete",function(){e(this).removeClass("scroll-highlight").removeAttr("style").unbind("fadeComplete")})};this.open=function(l){l=typeof l=="string"?e("#"+l):l;if(!l.hasClass("expanded")){l.swapClasses("collapsed","expanded");this.notify("expand",l.attr("id"))}};this.close=function(l){l=typeof l=="string"?e("#"+l):l;if(!l.hasClass("collapsed")){l.swapClasses("expanded","collapsed");this.notify("collapse",l.attr("id"))}};
this.getExpandedSections=function(){return this.getSections("expanded")};this.getCollapsedSections=function(){return this.getSections("collapsed")};this.getSections=function(l){var q=".section";if(typeof l!="undefined")q+="."+l;var s=[];e(q).each(function(){s.push(e(this).attr("id"))});return s}}}(jQuery);com=com||{};com.nature=com.nature||{};
com.nature.Highlighter=function(e){return function(m){var k=new com.nature.PopupGroup(true);m=m||"highlighting-tool";var h=[],p=this;e("a[href*='fig_tab'], p.back a");var l=new com.nature.Bitstate;l.init();var q=function(s){return s.replace(/^highlight-/,"")};this.init=function(){e("#"+m+' input[type="checkbox"]').hitch("click",this.toggle,this).each(function(){var u=e(this),x=q(u.attr("id"));h.push(x);if(u.is(":checked"))p.show(x);else if(l.isSet("highlightcompound")){u.attr({checked:true});p.toggle({target:u.get(0)})}});
var s="body span.highlight-"+h.join(", body span.highlight");e(s).each(function(){var u=/highlight-([^ $]+)/.exec(this.className)[1];e(this).attr("title","Click on the "+u+" name for more options").attr("tabIndex","0")});this.initPopups("body");e("#"+m).slideDown("normal")};this.show=function(s){e("body span.highlight-"+s).removeClass("highlight-off");l.set("highlightcompound","/"+com.nature.Configuration.get("siteName"))};this.hide=function(s){e("body span.highlight-"+s).addClass("highlight-off");
l.clear("highlightcompound","/"+com.nature.Configuration.get("siteName"))};this.toggle=function(s){s=e(s.target);var u=e("#"+m+' label[for="'+s.attr("id")+'"]').attr("class"),x=q(s.attr("id"));s.is(":checked")?this.show(x):this.hide(x);this.notify("toggle",u,s.is(":checked"))};this.initPopups=function(s){var u=com.nature.PageManager;s=s||"body";s=s+" span.highlight-"+h.join(", "+s+" span.highlight");e(s).each(function(){var x=this.getAttribute("data-related-id"),C=e("#"+x),E=C.clone(),F=e(this).parents(".section").find("h1").text().replace(/\s/g,
"-");E.find("h3").remove();E=new com.nature.Popup(e(this),E);E=e.extend(E,new com.nature.Broadcaster);C.find("h3").length&&E.title(C.find("h3").html());E.init();E.subscribe("open",k.onOpen,k);E.subscribe("close",k.onClose,k);E.subscribe("open",function(){u.trackAnnotation(this,x,F)},u);k.add(E)})}}}(jQuery);com=com||{};com.nature=com.nature||{};
com.nature.PageManager={_cookie:com.nature.Cookie,_path:document.location.href.replace(/^https?:\/\/[^\/]+/i,""),saveSectionState:function(e,m){this._cookie.set("expsec",m.getExpandedSections().join("|"),null,this._path);this._cookie.set("colsec",m.getCollapsedSections().join("|"),null,this._path)},saveTabState:function(e,m){this._cookie.set(m.id,m.active)},restoreTabState:function(e){var m=this._cookie.get(e.id);m&&e.switchTo(m)},trackAuthorPopup:function(e,m){this.track({action:"author",source:m.id})},
trackSharePopup:function(e,m){this.track({action:"share",source:m.id.replace(/\d/g,"")})},trackCompoundPopup:function(e,m){this.track({action:"compound",source:m.id})},trackSections:function(e,m,k,h){this.track({action:e,source:k,destination:h||""})},trackTabs:function(e,m,k,h){this.track({action:e,source:k,destination:h})},trackNavigation:function(e,m,k,h){this.track({action:"internal_navigation",source:k,destination:h})},trackHighlighting:function(e,m,k,h){k=k.replace(/-+/g,"_")+"s";this.track({action:h?
k:"un"+k})},trackFigureBrowser:function(e,m,k){this.track({action:"figure_preview_scroll",direction:k>0?"next":"prev"})},trackFigurePopup:function(e,m,k){this.track({action:"figure_preview",source:k})},trackPrint:function(){this.track({action:"print"})},trackAuthorListDisplay:function(e){this.track({action:e+"_author_list"})},trackAnnotation:function(e,m,k){this.track({action:"annotation",source:k,type:m})},trackClick:function(e){this.track(e)},track:function(e){if(com.nature.Configuration.get("webtrendsEnabled")==
"true"){for(var m=["action","source","destination","type","direction"],k=m.length;k--;)m[k]in e||(e[m[k]]="");e.dl||(e.dl="51");e.ndl||(e.ndl="51");m=[];for(var h in e){m.push("WT."+h);m.push(e[h])}_tag.dcsMultiTrack.apply(_tag,m)}},toString:function(){return"[object com.nature.PageManager]"}};com=com||{};com.nature=com.nature||{};
com.nature.FigureBrowser=function(e){e.fn.reverse=[].reverse;return function(m,k){k=k||{};var h=m.attr("id")||"figure-browser",p=null,l=null,q=this,s={width:e("#content").width(),height:120},u={width:s.width-60,height:s.height,left:30,right:30},x=null,C=0,E=0,F=0,O=k.thumbSpacing||10,M=function(){s.width=e("#content").width();u.width=s.width-u.left-u.right;l.css({width:u.width+"px",left:u.left+"px"})},Q=function(I){I=I.attr("src");I=I.substring(I.lastIndexOf("/")+1);return I.substring(0,I.lastIndexOf(".")).replace(/\./g,
"-")},c=function(I){return h+"-preview-"+Q(I)},T=function(I){return h+"-thumb-"+Q(I)},da=function(){C===0?m.find("a.nav.left:not(.inactive)").addClass("inactive").attr("tabindex","-1"):m.find("a.nav.left.inactive").removeClass("inactive").removeAttr("tabindex");u.width>F||Math.abs(u.width-(C+F))<1?m.find("a.nav.right:not(.inactive)").addClass("inactive").attr("tabindex","-1"):m.find("a.nav.right.inactive").removeClass("inactive").removeAttr("tabindex")},D=function(I){var X=C+I.closest("li").position().left;
I=X+I.data("thumbWidth");if(I>u.width)return I-u.width;else if(X<0)return X;return 0},ha=function(I){if(I!=0){C-=I;p.animate({left:C+"px"},"fast");q.notify("scrolled",I)}da()},ia=function(){if(x){e("#"+x).fadeOut("fast");e("#"+x.replace("-preview-","-thumb-")).parent().focus();q.notify("close",x);x=null}},ra=function(I){ia();var X=c(I),S=e("#"+X),V=I.data("previewWidth");q.notify("popupShown",X);if(!S.length){var Y=e("<img />").attr({src:I.attr("src"),alt:I.attr("alt"),title:I.attr("title"),"class":I.attr("class"),
width:I.data("previewWidth"),height:I.data("previewHeight")}),Z=I.closest("li"),R='<div id="'+X+'" class="box no-padding figure-preview cleared">';R+='<figure><figcaption><span class="legend cleared">'+Z.find("span.legend").html();R+=e("body.ie6").length>0?'<button class="close" title="close">x</button>':'<button class="close" title="close">close</button>';R+="</span></figcaption>";R+='<div class="fig"></div><div class="description">';R+=com.nature.Truncator.truncate(Z.find("div.description").html(),
250);if(Z.find("div.larger").length&&(com.nature.Configuration.get("isLoggedIn")=="yes"||com.nature.Configuration.get("articleLevel")=="0"))R+=Z.find("div.larger").html();else if(com.nature.Configuration.get("isLoggedIn")=="no"&&com.nature.Configuration.get("articleLevel")!=="0"){Z=com.nature.Configuration.get("siteName")||"";R+='<p class="subLinks"><a href="/register/'+Z+'">Purchase Article</a><a href="https://secure.nature.com/subscribe/'+Z+'">Subscribe</a><a href="/foxtrot/svc/login" class="login" title="Login to nature.com">Login</a>'}R+=
"</div></figure></div>";S=e(R);Y.bind("imgpreload",function(){S.find("div.fig").append(e(this))});S.find("button.close").click(function(){ia()});S.find("p.fig-link").find("a").click(function(){ia()});com.nature.Css.isImplemented("boxShadow")||S.addClass("popup-highlight");e("body").append(S);q.notify("created",X)}Y=Math.max(Math.min(V*2,725),300);if(Y<V+40)Y=V+40;V=Math.max(5,l.offset().left+(u.width-Y)/2);R=l.offset().top-(S.outerHeight()-l.outerHeight())/2;if(S.find("img.fig").length==0)R-=I.data("previewHeight")/
2;S.css({width:Y+"px",left:V+"px",top:R+"px"});S.find("span.legend").css({width:Y-40+"px"});S.fadeIn("fast");S.find("button.close").focus();x=X};this.init=function(){p=m.find("ol:first");l=p.wrap('<div class="thumbs masking"></div>').parent();p.css("visibility","visible");l.before('<a href="javascript:;" class="nav left inactive" tabindex="-1"><span>left</span></a>').after('<a href="javascript:;" class="nav right"><span>right</span></a>');M();m.append('<div class="figure-browser-loading"><img src="/view/images/figure_browser_loading.gif" alt="Loading" class="figure-browser-loading-icon"/></div>').find("div.figure-browser-loading").css({width:s.width+
"px",height:s.height+"px"})};this.start=function(){p.find("img.fig").each(function(){var I=e(this),X=I.width(),S=I.height(),V=X/2,Y=S/2;I.data("previewWidth",X).data("previewHeight",S).data("thumbWidth",V).data("thumbHeight",Y);I.css({width:V+"px",height:Y+"px"});I.closest("li").css({left:E+"px",top:"10px"});I.attr("id",T(I));E+=V+O}).wrap('<a href="javascript:;"></a>').parent().click(function(){ra(e(this).find("img.fig"))}).focus(function(){var I=D(e(this).find("img.fig"));ha(I)});m.find("a.nav").click(function(){if(p.is(":animated")||
e(this).hasClass("inactive"))return false;ia();var I=0;e(this).hasClass("left")?p.find("img.fig").reverse().each(function(){I=D(e(this));if(I<e(this).width()*-1)return false}):p.find("img.fig").each(function(){I=D(e(this));if(I>e(this).width())return false});ha(I)});F=E-O;da();e(window).bind("resize",function(){M();da()});setTimeout(function(){m.find("img.figure-browser-loading-icon").animate({top:"-32px",opacity:0.5},"medium",function(){m.find("div.figure-browser-loading").fadeOut("fast")})},10)}}}(jQuery);
com=com||{};com.nature=com.nature||{};
com.nature.ArticleSetup=function(e){var m=function(){this.isAbstract=e('meta[name="abstract"]').attr("content")=="yes";this.PageManager=com.nature.PageManager;this.highlighter=null};m.prototype={initTabBoxes:function(){var k=this.PageManager;e("#extranav div.tab-group").closest("div.box").css({border:0,padding:0});e("#extranav div.tab-group").each(function(){var h=new com.nature.TabGroup(e(this));h=e.extend(h,new com.nature.Broadcaster);h.init();h.subscribe("switch",k.saveTabState,k);h.subscribe("switch",
k.trackTabs,k);k.restoreTabState(h)})},initHighlighting:function(){this.highlighter=new com.nature.Highlighter;this.highlighter=e.extend(this.highlighter,new com.nature.Broadcaster);this.highlighter.init();this.highlighter.subscribe("toggle",this.PageManager.trackHighlighting,this.PageManager)},initBookmarking:function(){var k=this.PageManager,h=e("#toggle-bookmarking-links");if(h.length){h=new com.nature.Popup(h.linkify().find("a"),e("#bookmarking-links").addClass("bookmarking-popup"),{hasArrow:false,
position:"below"});h.title("Bookmark &amp; Share");h=e.extend(h,new com.nature.Broadcaster);h.init();h.subscribe("open",k.trackSharePopup,k)}},initDeliveryServices:function(){var k=this.PageManager,h=e(".toggle-delivery-services");if(h.length){h=new com.nature.Popup(h.linkify(),e(".document-delivery").addClass("delivery-popup"),{hasArrow:false,position:"below"});h.title("Available document delivery services");h=e.extend(h,new com.nature.Broadcaster);h.init();h.subscribe("open",k.trackSharePopup,k)}},
initAuthors:function(){var k=this.PageManager,h=function(s,u){var x=s.children("li");if(!(x.length<2)){x.filter("li.last-in-group, li:last").each(function(){var M=e(this);M.addClass("no-comma");M.prev("li").addClass("no-comma");M.hasClass("group-with-authors")||M.find('span.name, a[href*="#group-"]').before("&amp; ")});x.filter("li:not(.no-comma)").find('span.name, a[href*="#group-"]').after('<span class="comma">,</span>');var C=x.filter("li:gt("+u+")");if(C.length){C.hide();s.append('<li class="authors-toggle"><a href="javascript:;" class="collapsed"><i>et al.</i></a></li>');
var E=x.filter("li:eq("+u+")"),F=!!E.text().match(/,\s*$/),O=true;E.find("span.comma").hide();s.find("li.authors-toggle").children("a").click(function(){for(var M=e(this),Q=M.get(0);Q.hasChildNodes();)Q.removeChild(Q.firstChild);if(O){Q.appendChild(document.createTextNode("Show fewer authors"));M.removeClass("collapsed");C.css({display:"inline"});F&&E.find("span.comma").css({display:"inline"});k.trackAuthorListDisplay("expand")}else{var c=document.createElement("i");c.appendChild(document.createTextNode("et al."));
Q.appendChild(c);M.addClass("collapsed");C.css({display:"none"});F&&E.find("span.comma").css({display:"none"});k.trackAuthorListDisplay("collapse")}O=!O})}}},p=new com.nature.PopupGroup(true),l=[],q=e("#content ul.authors:first").remove();q.children("li").each(function(s){var u=e(this),x=false,C='<div id="author-popup-'+s+'">',E=u.find("img.photo");if(E.length)C+='<img class="photo" src="'+E.attr("src")+'" alt="'+E.attr("alt")+'"/>';C+='<ul class="author-affiliations">';u.find("sup").find("a").each(function(){var O=
e(this).attr("href").replace(/^[^#]*/,""),M=e(O);if(M.length){C+="<li>"+M.find("h3").html()+"</li>";x=true}else{M=e(O+"-c");if(M.length){C+="<li>"+M.html()+"</li>";x=true}}});C+="</ul>";var F=u.find("div.author-details");E=F.find("p.email");F=F.html();if(!com.nature.StringUtils.isEmpty(F)){C+='<div class="author-details">'+F+"</div>";x=true}E.length&&l.push(E.html().replace(/>contact\s+/i,">"));C+="</div>";if(x){u=new com.nature.Popup(u.find("span.name").linkify("a").find("a"),e(C));u=e.extend(u,
new com.nature.Broadcaster);u.init();u.subscribe("open",p.onOpen,p);u.subscribe("close",p.onClose,p);u.subscribe("open",k.trackAuthorPopup,k);p.add(u);++s}});q.find("sup, div.author-details").remove();h(q,com.nature.Configuration.get("authorLimit")||24);e("h1.article-heading").after(q);e("ul.authors:gt(0)").each(function(){h(e(this),5)});if(l.length){q='<div id="author-correspondence-popup"><ul class="corresponding-authors">';q+="<li>"+l.join("</li><li>")+"</li>";q+="</ul></div>";q=new com.nature.Popup(e("#author-links").find('a[href$="#corres-auth"]'),
e(q));q=e.extend(q,new com.nature.Broadcaster);q.init();q.subscribe("open",p.onOpen,p);q.subscribe("close",p.onClose,p);p.add(q)}},initCommenting:function(){var k=null,h=function(q){if(q=e(q.target).closest("li[id]")){p();q.find("p.moderation").css({position:"static",left:"0"});k=q.attr("id")}},p=function(){k&&e("#"+k).find("p.moderation").css({position:"absolute",left:"-9999em"});k=null};e("#comments ol.comments").mouseover(h).mouseout(p).find("a").focus(h);if(e("#comment-preview").length){var l=
true;e("#comment-help h3").linkify().find("a").click(function(){if(l){e("#comment-help ul").slideDown("fast");e(this).addClass("collapse")}else{e("#comment-help ul").slideUp("fast");e(this).removeClass("collapse")}l=!l});e("#comment-body").preview("#comment-preview dd","textile").grow()}},initCompoundMouseovers:function(k){var h=this.PageManager;e(k?k+' a[class*="compound-ref-"]':'a[class*="compound-ref-"]').each(function(){var p=/compound-ref-[-a-z0-9]+/i.exec(this.className)[0];p=new com.nature.Popup(e(this),
e("#"+p),{event:"mouseover",hasTitle:false,hasCloseButton:false});p=e.extend(p,new com.nature.Broadcaster);p.init();p.subscribe("open",h.trackCompoundPopup,h)})},initCompoundViewer:function(){e(window).load(function(){var k=e('#inside-article-compounds ol a[class*="compound-ref-"]'),h=0,p=k.length,l=e("<ol></ol>"),q=0,s=[];k.each(function(){var x="";if(h==0)x="start active";else if(h==p-1)x="end";++h;var C=/compound-ref-[-a-z0-9]+/i.exec(this.className)[0];C=e("#"+C);var E=C.outerHeight();q=Math.max(q,
E);s.push(E);x='<li class="'+x+" cmp-"+h+'">';x+="<figure>";x+='<div class="compound-img">';x+='<a href="'+e(this).attr("href")+'" tabindex="-1">';x+=C.html();x+="</a>";x+="</div>";x+='<figcaption class="compound-name">';x+='<a href="'+e(this).attr("href")+'">';x+=e(this).html();x+="</a>";x+="</figcaption>";x+="</figure>";x+="</li>";l.append(x)});e("#inside-article-compounds ol").replaceWith(l);h=0;e("#inside-article-compounds div.compound-img").each(function(){e(this).css({height:q+"px",border:"1px solid #ccc"});
e(this).find("img").css({paddingTop:(q-s[h])/2+"px"});++h});if(p>1){e("#inside-article-compounds ol").before('<a href="javascript:;" class="prev compound-nav inactive" tabindex="-1"><span>Prev</span></a>');e("#inside-article-compounds ol").after('<a href="javascript:;" class="next compound-nav"><span>Next</span></a>');setTimeout(function(){e("#inside-article-compounds a.compound-nav").css({height:q+"px"})},100);e("#inside-article-compounds p.box-footer").prepend('<span class="compound-pos"><span class="index">1</span>/<span class="total">'+
p+"</span></span>");var u=false;e("#inside-article-compounds a.compound-nav").click(function(){if(!(u||e(this).hasClass("inactive"))){e("#inside-article-compounds a.compound-nav.inactive").removeClass("inactive").removeAttr("tabindex");$current=e("#inside-article-compounds li.active");if(e(this).hasClass("next")){$next=$current.next("li");$next.hasClass("end")&&e(this).addClass("inactive").attr("tabindex","-1")}else{$next=$current.prev("li");$next.hasClass("start")&&e(this).addClass("inactive").attr("tabindex",
"-1")}u=true;$current.find("div.compound-img").find("img").fadeOut("fast",function(){$next.find("div.compound-img").find("img").fadeIn("fast",function(){$next.addClass("active");$current.removeClass("active");var x=/cmp-([0-9]+)/.exec($next.get(0).className)[1];e("#inside-article-compounds span.index").html(x);u=false})})}})}})},initFigureBrowser:function(){var k=this.PageManager,h=new com.nature.FigureBrowser(e("div.figure-browser"));h=e.extend(h,new com.nature.Broadcaster);h.subscribe("scrolled",
k.trackFigureBrowser,k);h.subscribe("popupShown",k.trackFigurePopup,k);h.init();var p=this;h.subscribe("created",function(l,q,s){p.initCompoundMouseovers("#"+s);p.highlighter.initPopups("#"+s)});h.subscribe("close",function(l,q,s){com.nature.Popups.redraw("close",s)});e(window).load(function(){h.start()})},initReferenceContextLinks:function(){var k=this,h=function(){var l=e(this).closest('li[id^="ref"]'),q=l.attr("id"),s=e("#"+q+"-context");if(s.length&&s.css("display")!="none"){s.css({display:"none"});
e(this).removeClass("collapse").text("Show context")}else{if(s.length)s.css({display:"block"});else{var u="";e('#content a[href$="#'+q+'"]').each(function(){if(e(this).parents("ol.references, div.figure-browser").length)return true;var x=com.nature.Truncator.getContextSnippet(e(this).parent().parent(),e(this));u+="<li>"+x+' <a href="#'+e(this).attr("id")+'" title="Skip to this reference in the article" class="ref-return">in article</a></li>'});u=u.replace(/ id="[^"]+"/ig,"");u='<ul id="'+q+'-context" class="context">'+
u+"</ul>";l.append(u);k.initCompoundMouseovers("#"+q+"-context");k.highlighter.initPopups("#"+q+"-context")}e(this).addClass("collapse").text("Hide context")}k.PageManager.trackClick({action:"context_link",source:q})};if(!this.isAbstract){var p=e('#references ol.references li[id^="ref"]');p.each(function(){if(e('#content a[href$="#'+e(this).attr("id")+'"]').length){var l=e(this).find("ul");l.length?l.addClass("has-ref-links"):e(this).append('<ul class="cleared has-ref-links"></ul>')}});p.find("ul.has-ref-links").append('<li class="show-context-item"><a href="javascript:;">Show context</a></li>').find("li.show-context-item").find("a").click(h)}},
initEdsumms:function(){e("#edsumm div.full-snippet").each(function(){e(this).text().length>200?e(this).parent().append('<div class="snippet">'+com.nature.Truncator.truncate(e(this).html(),200)+'</div><a href="javascript:;" class="toggle-bar"><span>Toggle</span></a>'):e(this).css({display:"block"})});e("#edsumm a.toggle-bar").click(function(){var k=e(this).closest("div.editors-summary");if(e(this).hasClass("collapse")){var h=k.find("div.full-snippet").height(),p=k.find("div.snippet").css({display:"block",
visibility:"hidden"}).height();k.find("div.full-snippet").css({height:h+"px",visibility:"visible",overflow:"hidden"}).animate({height:p+"px"},"fast",function(){k.find("div.snippet").css({visibility:"visible"});k.find("div.full-snippet").css({display:"none"})});e(this).removeClass("collapse")}else{h=k.find("div.snippet").height();p=k.find("div.full-snippet").css({display:"block",visibility:"hidden",height:"auto"}).height();k.find("div.snippet").css({display:"none"});k.find("div.full-snippet").css({height:h+
"px",visibility:"visible",overflow:"hidden"}).animate({height:p+"px"},"fast");e(this).addClass("collapse")}})},initBoxes:function(){e(".box-internal").each(function(){e(this).text().length>200?e(this).append('<a href="javascript:;" class="toggle-bar collapse"><span>Reduce</span></a>'):e(this).css({display:"block"})});e(".box-internal a.toggle-bar").click(function(){var k=e(this).parent().find(".figure-content");if(e(this).hasClass("collapse")){if(!k.attr("data-startHeight")){var h=k.height(),p=k.parents("div.content");
if(h===0){p.addClass("calculateHeights");h=k.height();p.removeClass("calculateHeights")}k.attr("data-startHeight",h)}k.css({overflow:"hidden"}).animate({height:"50px"},"fast");e(this).removeClass("collapse");e(this).find("span").text("Expand")}else{k.animate({height:k.attr("data-startHeight")+"px"},"fast");e(this).addClass("collapse");e(this).find("span").text("Reduce")}});e(".box-internal a.toggle-bar").click()},initArticleNavigation:function(){var k=new com.nature.Article;k=e.extend(k,new com.nature.Broadcaster);
k.init();k.subscribe("expand",this.PageManager.saveSectionState,this.PageManager);k.subscribe("expand",this.PageManager.trackSections,this.PageManager);k.subscribe("expand",function(h,p,l){com.nature.Popups.redraw("open",l)});k.subscribe("collapse",this.PageManager.saveSectionState,this.PageManager);k.subscribe("collapse",this.PageManager.trackSections,this.PageManager);k.subscribe("collapse",function(h,p,l){com.nature.Popups.redraw("close",l)});k.subscribe("scroll",this.PageManager.trackNavigation,
this.PageManager)},initToggleAll:function(){e("span.toggleAll").linkify();e("span.toggleAll a").addClass("toggleAll collapsed");e("a.toggleAll").click(function(){if(e(this).hasClass("expanded")){e(this).removeClass("expanded").addClass("collapsed").text("Expand all");e(this).parent().parent().find(".sub-section").each(function(){e(this).removeClass("expanded").addClass("collapsed")})}else{e(this).removeClass("collapsed").addClass("expanded").text("Collapse all");e(this).parent().parent().find(".sub-section").each(function(){e(this).removeClass("collapsed").addClass("expanded")})}})},
initClickTrack:function(){var k=this.PageManager,h={"print-link":{action:"print",source:"print-link"},"next-article":{action:"next_article",source:com.nature.Configuration.get("articleDoi"),destination:com.nature.Configuration.get("nextDoi"),dl:"1",ndl:"1"},"prev-article":{action:"prev_article",source:com.nature.Configuration.get("articleDoi"),destination:com.nature.Configuration.get("prevDoi"),dl:"1",ndl:"1"},"top-content":{dl:"1",ndl:"1"}};e(".track").click(function(){var p=h[e(this).attr("id")]||
null;p&&k.trackClick(p)});e("#top-content ol a").click(function(){var p=h["top-content"];p.destination="link:"+e(this).text();p.action=e(this).parents(".tab-box").attr("id");p.source=com.nature.Configuration.get("articleDoi");k.trackClick(p)})},initBeanData:function(){var k=e("#bakedbean a");setTimeout(function(){e("#bakedbean .inner").slideDown(1E3)},100);k.click(function(h){e("#bakedbean .inner").slideToggle(1E3);e("html:not(:animated),body:not(:animated)").animate({scrollTop:0},500);h.preventDefault()})},
initPlaceholders:function(){e("form").initPlaceholders()},initReshighCarousel:function(){e(".reshigh-carousel").each(function(){var k=e(this),h=e(".container",k),p=e("> ul",h),l=e("> li",p),q=(this.className.match(/show-(\d)/)||[5]).pop();if(l.length<=q)l.width(Math.floor(h.width()/l.length));else{k.addClass("active");var s=e('<a href="javascript:;" title="Scroll Left" class="left"><span></span></a>').prependTo(k),u=e('<a href="javascript:;" title="Scroll Right" class="right"><span></span></a>').appendTo(k),
x=Math.floor(h.width()/q)+1,C,E={left:function(){p.animate({left:-C},{complete:function(){l=e("li",p);p.append(l[0]);p.css("left",0)}})},right:function(){l=e("li",p);p.css("left",-C);p.prepend(l[l.length-1]);p.animate({left:0})},click:function(F){return function(O){E[F]();O.preventDefault()}},init:function(){for(var F=p.find("li.current").index(),O=0;O<F;O++)E.left()}};e(function(){C=Math.min(x,p.outerWidth());l.css("width",C);p.css("width",l.length*C);s.click(E.click("right"));u.click(E.click("left"));
E.init()})}})},initIcbViewer:function(){var k=com.nature.Configuration.get("icb");e.each(k,function(h,p){(new com.nature.Icb(h,p)).init()})}};e(".sub-section-heading").linkify();e(".sub-section-heading").parent().addClass("collapsed");e(".sub-section-heading a").addClass("sub-title");e(".sub-section-heading a").click(function(){if(e(this).parent().parent().hasClass("collapsed")){e(this).parent().parent().removeClass("collapsed");e(this).parent().parent().addClass("expanded");return false}if(e(this).parent().parent().hasClass("expanded")){e(this).parent().parent().removeClass("expanded");
e(this).parent().parent().addClass("collapsed");return false}});return m}(jQuery);
(function(e){e(function(){var m=new com.nature.ArticleSetup;m.initTabBoxes();m.initHighlighting();m.initBookmarking();m.initDeliveryServices();m.initAuthors();m.initCompoundMouseovers();m.initCompoundViewer();m.initFigureBrowser();m.initReferenceContextLinks();m.initCommenting();m.initEdsumms();m.initBoxes();m.initArticleNavigation();m.initToggleAll();m.initClickTrack();m.initBeanData();m.initPlaceholders();m.initReshighCarousel();m.initIcbViewer()})})(jQuery);
$(window).load(function(){setTimeout(function(){$("div.ad").each(function(){var e=$(this);e.height()<30&&e.css({display:"none"})})},500)});(function(e){e("a.popup-this").bind("click",function(){window.open(this.href);return false})})(jQuery);
