/*!
 * jQuery JavaScript Library v1.5.2
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu Mar 31 15:28:23 2011 -0400
 */
(function(n,t){function vt(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}function ir(n){if(!ct[n]){var r=i("<"+n+">").appendTo("body"),t=r.css("display");r.remove(),(t==="none"||t==="")&&(t="block"),ct[n]=t}return ct[n]}function o(n,t){var r={};return i.each(yi.concat.apply([],yi.slice(0,t)),function(){r[this]=n}),r}function hu(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function tr(){try{return new n.XMLHttpRequest}catch(t){}}function cu(){i(n).unload(function(){for(var n in s)s[n](0,1)})}function ou(n,r){n.dataFilter&&(r=n.dataFilter(r,n.dataType));for(var v=n.dataTypes,s={},l,p=v.length,a,f=v[0],h,y,u,o,e,c=1;c<p;c++){if(c===1)for(l in n.converters)typeof l=="string"&&(s[l.toLowerCase()]=n.converters[l]);h=f,f=v[c];if(f==="*")f=h;else if(h!=="*"&&h!==f){y=h+" "+f,u=s[y]||s["* "+f];if(!u){e=t;for(o in s){a=o.split(" ");if(a[0]===h||a[0]==="*"){e=s[a[1]+" "+f];if(e){o=s[o],o===!0?u=e:e===!0&&(u=o);break}}}}!u&&!e&&i.error("No conversion from "+y.replace(" "," to ")),u!==!0&&(r=u?u(r):e(o(r)))}}return r}function su(n,i,r){var h=n.contents,f=n.dataTypes,c=n.responseFields,o,u,e,s;for(u in c)u in r&&(i[c[u]]=r[u]);while(f[0]==="*")f.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("content-type"));if(o)for(u in h)if(h[u]&&h[u].test(o)){f.unshift(u);break}if(f[0]in r)e=f[0];else{for(u in r){if(!f[0]||n.converters[u+" "+f[0]]){e=u;break}s||(s=u)}e=e||s}if(e)return e!==f[0]&&f.unshift(e),r[e]}function lt(n,t,r,u){if(i.isArray(t)&&t.length)i.each(t,function(t,f){r||sr.test(n)?u(n,f):lt(n+"["+(typeof f=="object"||i.isArray(f)?t:"")+"]",f,r,u)});else if(r||t==null||typeof t!="object")u(n,t);else if(i.isArray(t)||i.isEmptyObject(t))u(n,"");else for(var f in t)lt(n+"["+f+"]",t[f],r,u)}function w(n,i,r,u,f,e){f=f||i.dataTypes[0],e=e||{},e[f]=!0;for(var h=n[f],c=0,l=h?h.length:0,s=n===ut,o;c<l&&(s||!o);c++)o=h[c](i,r,u),typeof o=="string"&&(!s||e[o]?o=t:(i.dataTypes.unshift(o),o=w(n,i,r,u,o,e)));return(s||!o)&&!e["*"]&&(o=w(n,i,r,u,"*",e)),o}function ai(n){return function(t,r){typeof t!="string"&&(r=t,t="*");if(i.isFunction(r))for(var s=t.toLowerCase().split(bt),e=0,h=s.length,u,o,f;e<h;e++)u=s[e],f=/^\+/.test(u),f&&(u=u.substr(1)||"*"),o=n[u]=n[u]||[],o[f?"unshift":"push"](r)}}function li(n,t,r){var f=t==="width"?tf:du,u=t==="width"?n.offsetWidth:n.offsetHeight;return r==="border"?u:(i.each(f,function(){r||(u-=parseFloat(i.css(n,"padding"+this))||0),r==="margin"?u+=parseFloat(i.css(n,"margin"+this))||0:u-=parseFloat(i.css(n,"border"+this+"Width"))||0}),u)}function vu(n,t){t.src?i.ajax({url:t.src,async:!1,dataType:"script"}):i.globalEval(t.text||t.textContent||t.innerHTML||""),t.parentNode&&t.parentNode.removeChild(t)}function nt(n){return"getElementsByTagName"in n?n.getElementsByTagName("*"):"querySelectorAll"in n?n.querySelectorAll("*"):[]}function vi(n,t){if(t.nodeType===1){var r=t.nodeName.toLowerCase();t.clearAttributes(),t.mergeAttributes(n),r==="object"?t.outerHTML=n.outerHTML:r!=="input"||n.type!=="checkbox"&&n.type!=="radio"?r==="option"?t.selected=n.defaultSelected:(r==="input"||r==="textarea")&&(t.defaultValue=n.defaultValue):(n.checked&&(t.defaultChecked=t.checked=n.checked),t.value!==n.value&&(t.value=n.value)),t.removeAttribute(i.expando)}}function pi(n,t){var r,f,u,s;if(t.nodeType===1&&i.hasData(n)){var h=i.expando,e=i.data(n),o=i.data(t,e);if(e=e[h]){r=e.events,o=o[h]=i.extend({},e);if(r){delete o.handle,o.events={};for(f in r)for(u=0,s=r[f].length;u<s;u++)i.event.add(t,f+(r[f][u].namespace?".":"")+r[f][u].namespace,r[f][u],r[f][u].data)}}}}function yu(n){return i.nodeName(n,"table")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function oi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){var u=!!t.call(n,i,n);return u===r});if(t.nodeType)return i.grep(n,function(n){return n===t===r});if(typeof t=="string"){var u=i.grep(n,function(n){return n.nodeType===1});if(uf.test(t))return i.filter(t,u,!r);t=i.filter(t,u)}return i.grep(n,function(n){return i.inArray(n,t)>=0===r})}function ei(n){return!n||!n.parentNode||n.parentNode.nodeType===11}function p(n,t){return(n&&n!=="*"?n+".":"")+t.replace(gr,"`").replace(uu,"&")}function lu(n){var w,a,h,r,t,y,u,f,s,k,o,p,l,c=[],b=[],v=i._data(this,"events"),e;if(n.liveFired!==this&&v&&v.live&&!n.target.disabled&&(!n.button||n.type!=="click")){for(n.namespace&&(p=new RegExp("(^|\\.)"+n.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),n.liveFired=this,e=v.live.slice(0),u=0;u<e.length;u++)t=e[u],t.origType.replace(g,"")===n.type?b.push(t.selector):e.splice(u--,1);for(r=i(n.target).closest(b,n.currentTarget),f=0,s=r.length;f<s;f++)for(o=r[f],u=0;u<e.length;u++)t=e[u],o.selector!==t.selector||p&&!p.test(t.namespace)||o.elem.disabled||(y=o.elem,h=null,(t.preType==="mouseenter"||t.preType==="mouseleave")&&(n.type=t.preType,h=i(n.relatedTarget).closest(t.selector)[0]),(!h||h!==y)&&c.push({elem:y,handleObj:t,level:o.level}));for(f=0,s=c.length;f<s;f++){r=c[f];if(a&&r.level>a)break;n.currentTarget=r.elem,n.data=r.handleObj.data,n.handleObj=r.handleObj,l=r.handleObj.origHandler.apply(r.elem,arguments);if(l===!1||n.isPropagationStopped()){a=r.level,l===!1&&(w=!1);if(n.isImmediatePropagationStopped())break}}return w}}function si(n,r,u){var f=i.extend({},u[0]);f.type=n,f.originalEvent={},f.liveFired=t,i.event.handle.call(r,f),f.isDefaultPrevented()&&u[0].preventDefault()}function d(){return!0}function h(){return!1}function at(n){for(var t in n)if(t!=="toJSON")return!1;return!0}function hi(n,r,u){if(u===t&&n.nodeType===1){u=n.getAttribute("data-"+r);if(typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:i.isNaN(u)?nr.test(u)?i.parseJSON(u):u:parseFloat(u)}catch(f){}i.data(n,r,u)}else u=t}return u}var r=n.document,i=function(){function w(){if(!i.isReady){try{r.documentElement.doScroll("left")}catch(n){setTimeout(w,1);return}i.ready()}}var i=function(n,t){return new i.fn.init(n,t,b)},nt=n.jQuery,g=n.$,b,tt=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,y=/\S/,p=/^\s+/,v=/\s+$/,rt=/\d/,ft=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,et=/^[\],:{}\s]*$/,ut=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,it=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,k=/(?:^|:|,)(?:\s*\[)+/g,ct=/(webkit)[ \/]([\w.]+)/,lt=/(opera)(?:.*version)?[ \/]([\w.]+)/,ht=/(msie) ([\w.]+)/,ot=/(mozilla)(?:.*? rv:([\w.]+))?/,st=navigator.userAgent,f,e,u,d=Object.prototype.toString,s=Object.prototype.hasOwnProperty,o=Array.prototype.push,h=Array.prototype.slice,l=String.prototype.trim,a=Array.prototype.indexOf,c={};return i.fn=i.prototype={constructor:i,init:function(n,u,f){var o,s,e,h;if(!n)return this;if(n.nodeType)return this.context=this[0]=n,this.length=1,this;if(n==="body"&&!u&&r.body)return this.context=r,this[0]=r.body,this.selector="body",this.length=1,this;if(typeof n=="string"){o=tt.exec(n);if(!o||!o[1]&&u)return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n);if(o[1])return u=u instanceof i?u[0]:u,h=u?u.ownerDocument||u:r,e=ft.exec(n),e?i.isPlainObject(u)?(n=[r.createElement(e[1])],i.fn.attr.call(n,u,!0)):n=[h.createElement(e[1])]:(e=i.buildFragment([o[1]],[h]),n=(e.cacheable?i.clone(e.fragment):e.fragment).childNodes),i.merge(this,n);s=r.getElementById(o[2]);if(s&&s.parentNode){if(s.id!==o[2])return f.find(n);this.length=1,this[0]=s}return this.context=r,this.selector=n,this}return i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",jquery:"1.5.2",length:0,size:function(){return this.length},toArray:function(){return h.call(this,0)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n,t,r){var u=this.constructor();return i.isArray(n)?o.apply(u,n):i.merge(u,n),u.prevObject=this,u.context=this.context,t==="find"?u.selector=this.selector+(this.selector?" ":"")+r:t&&(u.selector=this.selector+"."+t+"("+r+")"),u},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.bindReady(),e.done(n),this},eq:function(n){return n===-1?this.slice(n):this.slice(n,+n+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(h.apply(this,arguments),"slice",h.call(arguments).join(","))},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:o,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var s,e,u,r,h,c,n=arguments[0]||{},f=1,l=arguments.length,o=!1;for(typeof n=="boolean"&&(o=n,n=arguments[1]||{},f=2),typeof n!="object"&&!i.isFunction(n)&&(n={}),l===f&&(n=this,--f);f<l;f++)if((s=arguments[f])!=null)for(e in s){u=n[e],r=s[e];if(n===r)continue;o&&r&&(i.isPlainObject(r)||(h=i.isArray(r)))?(h?(h=!1,c=u&&i.isArray(u)?u:[]):c=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(o,c,r)):r!==t&&(n[e]=r)}return n},i.extend({noConflict:function(t){return n.$=g,t&&(n.jQuery=nt),i},isReady:!1,readyWait:1,ready:function(n){n===!0&&i.readyWait--;if(!i.readyWait||n!==!0&&!i.isReady){if(!r.body)return setTimeout(i.ready,1);i.isReady=!0;if(n!==!0&&--i.readyWait>0)return;e.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").unbind("ready")}},bindReady:function(){if(!e){e=i._Deferred();if(r.readyState==="complete")return setTimeout(i.ready,1);if(r.addEventListener)r.addEventListener("DOMContentLoaded",u,!1),n.addEventListener("load",i.ready,!1);else if(r.attachEvent){r.attachEvent("onreadystatechange",u),n.attachEvent("onload",i.ready);var t=!1;try{t=n.frameElement==null}catch(f){}r.documentElement.doScroll&&t&&w()}}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n&&typeof n=="object"&&"setInterval"in n},isNaN:function(n){return n==null||!rt.test(n)||isNaN(n)},type:function(n){return n==null?String(n):c[d.call(n)]||"object"},isPlainObject:function(n){if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;if(n.constructor&&!s.call(n,"constructor")&&!s.call(n.constructor.prototype,"isPrototypeOf"))return!1;var r;for(r in n);return r===t||s.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw n;},parseJSON:function(t){if(typeof t!="string"||!t)return null;t=i.trim(t);if(et.test(t.replace(ut,"@").replace(it,"]").replace(k,"")))return n.JSON&&n.JSON.parse?n.JSON.parse(t):new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(t,r,u){return n.DOMParser?(u=new DOMParser,r=u.parseFromString(t,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t)),u=r.documentElement,(!u||!u.nodeName||u.nodeName==="parsererror")&&i.error("Invalid XML: "+t),r},noop:function(){},globalEval:function(n){if(n&&y.test(n)){var u=r.head||r.getElementsByTagName("head")[0]||r.documentElement,t=r.createElement("script");i.support.scriptEval()?t.appendChild(r.createTextNode(n)):t.text=n,u.insertBefore(t,u.firstChild),u.removeChild(t)}},nodeName:function(n,t){return n.nodeName&&n.nodeName.toUpperCase()===t.toUpperCase()},each:function(n,r,u){var f,e=0,s=n.length,h=s===t||i.isFunction(n),o;if(u){if(h){for(f in n)if(r.apply(n[f],u)===!1)break}else for(;e<s;)if(r.apply(n[e++],u)===!1)break}else if(h){for(f in n)if(r.call(n[f],f,n[f])===!1)break}else for(o=n[0];e<s&&r.call(o,e,o)!==!1;o=n[++e]);return n},trim:l?function(n){return n==null?"":l.call(n)}:function(n){return n==null?"":(n+"").replace(p,"").replace(v,"")},makeArray:function(n,t){var u=t||[],r;return n!=null&&(r=i.type(n),n.length==null||r==="string"||r==="function"||r==="regexp"||i.isWindow(n)?o.call(u,n):i.merge(u,n)),u},inArray:function(n,t){if(t.indexOf)return t.indexOf(n);for(var i=0,r=t.length;i<r;i++)if(t[i]===n)return i;return-1},merge:function(n,i){var u=n.length,r=0,f;if(typeof i.length=="number")for(f=i.length;r<f;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var f=[],e,r,u;for(i=!!i,r=0,u=n.length;r<u;r++)e=!!t(n[r],r),i!==e&&f.push(n[r]);return f},map:function(n,t,i){for(var u=[],f,r=0,e=n.length;r<e;r++)f=t(n[r],r,i),f!=null&&(u[u.length]=f);return u.concat.apply([],u)},guid:1,proxy:function(n,r,u){return arguments.length===2&&(typeof r=="string"?(u=n,n=u[r],r=t):r&&!i.isFunction(r)&&(u=r,r=t)),!r&&n&&(r=function(){return n.apply(u||this,arguments)}),n&&(r.guid=n.guid=n.guid||r.guid||i.guid++),r},access:function(n,r,u,f,e,o){var c=n.length,h,s;if(typeof r=="object"){for(h in r)i.access(n,h,r[h],f,e,u);return n}if(u!==t){for(f=!o&&f&&i.isFunction(u),s=0;s<c;s++)e(n[s],r,f?u.call(n[s],s,e(n[s],r)):u,o);return n}return c?e(n[0],r):t},now:function(){return+new Date},uaMatch:function(n){n=n.toLowerCase();var t=ct.exec(n)||lt.exec(n)||ht.exec(n)||n.indexOf("compatible")<0&&ot.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function n(t,i){return new n.fn.init(t,i)}i.extend(!0,n,this),n.superclass=this,n.fn=n.prototype=this(),n.fn.constructor=n,n.subclass=this.subclass,n.fn.init=function u(b,r){return r&&r instanceof i&&!(r instanceof n)&&(r=n(r)),i.fn.init.call(this,u,r,t)},n.fn.init.prototype=n.fn;var t=n(r);return n},browser:{}}),i.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(n,t){c["[object "+t+"]"]=t.toLowerCase()}),f=i.uaMatch(st),f.browser&&(i.browser[f.browser]=!0,i.browser.version=f.version),i.browser.webkit&&(i.browser.safari=!0),a&&(i.inArray=function(n,t){return a.call(t,n)}),y.test(" ")&&(p=/^[\s\xA0]+/,v=/[\s\xA0]+$/),b=i(r),r.addEventListener?u=function(){r.removeEventListener("DOMContentLoaded",u,!1),i.ready()}:r.attachEvent&&(u=function(){r.readyState==="complete"&&(r.detachEvent("onreadystatechange",u),i.ready())}),i}(),tt="then done fail isResolved isRejected promise".split(" "),rr=[].slice,nr,st,ot,a,et,y,it,ki,l,wi,s,v,ci,yt;i.extend({_Deferred:function(){var r=[],n,u,f,t={done:function(){if(!f){var h=arguments,e,c,u,s,o;for(n&&(o=n,n=0),e=0,c=h.length;e<c;e++)u=h[e],s=i.type(u),s==="array"?t.done.apply(t,u):s==="function"&&r.push(u);o&&t.resolveWith(o[0],o[1])}return this},resolveWith:function(t,i){if(!f&&!n&&!u){i=i||[],u=1;try{while(r[0])r.shift().apply(t,i)}finally{n=[t,i],u=0}}return this},resolve:function(){return t.resolveWith(this,arguments),this},isResolved:function(){return u||n},cancel:function(){return f=1,r=[],this}};return t},Deferred:function(n){var t=i._Deferred(),r=i._Deferred(),u;return i.extend(t,{then:function(n,i){return t.done(n).fail(i),this},fail:r.done,rejectWith:r.resolveWith,reject:r.resolve,isRejected:r.isResolved,promise:function(n){if(n==null){if(u)return u;u=n={}}var i=tt.length;while(i--)n[tt[i]]=t[tt[i]];return n}}),t.done(r.cancel).fail(t.cancel),delete t.cancel,n&&n.call(t,t),t},when:function(n){function o(n){return function(i){r[n]=arguments.length>1?rr.call(arguments,0):i,--e||t.resolveWith(t,rr.call(r,0))}}var r=arguments,u=0,f=r.length,e=f,t=f<=1&&n&&i.isFunction(n.promise)?n:i.Deferred();if(f>1){for(;u<f;u++)r[u]&&i.isFunction(r[u].promise)?r[u].promise().then(o(u),t.reject):--e;e||t.resolveWith(t,r)}else t!==n&&t.resolveWith(t,f?[n]:[]);return t.promise()}}),function(){var t,f,o,e;i.support={},t=r.createElement("div"),t.style.display="none",t.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var h=t.getElementsByTagName("*"),u=t.getElementsByTagName("a")[0],c=r.createElement("select"),l=c.appendChild(r.createElement("option")),s=t.getElementsByTagName("input")[0];if(h&&h.length&&u){i.support={leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/red/.test(u.getAttribute("style")),hrefNormalized:u.getAttribute("href")==="/a",opacity:/^0.55$/.test(u.style.opacity),cssFloat:!!u.style.cssFloat,checkOn:s.value==="on",optSelected:l.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0,reliableMarginRight:!0},s.checked=!0,i.support.noCloneChecked=s.cloneNode(!0).checked,c.disabled=!0,i.support.optDisabled=!l.disabled,f=null,i.support.scriptEval=function(){if(f===null){var e=r.documentElement,u=r.createElement("script"),t="script"+i.now();try{u.appendChild(r.createTextNode("window."+t+"=1;"))}catch(o){}e.insertBefore(u,e.firstChild),n[t]?(f=!0,delete n[t]):f=!1,e.removeChild(u)}return f};try{delete t.test}catch(v){i.support.deleteExpando=!1}!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function a(){i.support.noCloneEvent=!1,t.detachEvent("onclick",a)}),t.cloneNode(!0).fireEvent("onclick")),t=r.createElement("div"),t.innerHTML="<input type='radio' name='radiotest' checked='checked'/>",o=r.createDocumentFragment(),o.appendChild(t.firstChild),i.support.checkClone=o.cloneNode(!0).cloneNode(!0).lastChild.checked,i(function(){var n=r.createElement("div"),u=r.getElementsByTagName("body")[0],t;u&&(n.style.width=n.style.paddingLeft="1px",u.appendChild(n),i.boxModel=i.support.boxModel=n.offsetWidth===2,"zoom"in n.style&&(n.style.display="inline",n.style.zoom=1,i.support.inlineBlockNeedsLayout=n.offsetWidth===2,n.style.display="",n.innerHTML="<div style='width:4px;'></div>",i.support.shrinkWrapBlocks=n.offsetWidth!==2),n.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",t=n.getElementsByTagName("td"),i.support.reliableHiddenOffsets=t[0].offsetHeight===0,t[0].style.display="",t[1].style.display="none",i.support.reliableHiddenOffsets=i.support.reliableHiddenOffsets&&t[0].offsetHeight===0,n.innerHTML="",r.defaultView&&r.defaultView.getComputedStyle&&(n.style.width="1px",n.style.marginRight="0",i.support.reliableMarginRight=(parseInt(r.defaultView.getComputedStyle(n,null).marginRight,10)||0)===0),u.removeChild(n).style.display="none",n=t=null)}),e=function(n){var i=r.createElement("div"),t;return n="on"+n,i.attachEvent?(t=n in i,t||(i.setAttribute(n,"return;"),t=typeof i[n]=="function"),t):!0},i.support.submitBubbles=e("submit"),i.support.changeBubbles=e("change"),t=h=u=null}}(),nr=/^(?:\{.*\}|\[.*\])$/,i.extend({cache:{},uuid:0,expando:"jQuery"+(i.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!at(n)},data:function(n,r,u,f){if(i.acceptData(n)){var h=i.expando,l=typeof r=="string",o,c=n.nodeType,s=c?i.cache:n,e=c?n[i.expando]:n[i.expando]&&i.expando;if((!e||f&&e&&!s[e][h])&&l&&u===t)return;return e||(c?n[i.expando]=e=++i.uuid:e=i.expando),s[e]||(s[e]={},c||(s[e].toJSON=i.noop)),(typeof r=="object"||typeof r=="function")&&(f?s[e][h]=i.extend(s[e][h],r):s[e]=i.extend(s[e],r)),o=s[e],f&&(o[h]||(o[h]={}),o=o[h]),u!==t&&(o[r]=u),r==="events"&&!o[r]?o[h]&&o[h].events:l?o[r]:o}},removeData:function(t,r,u){var o,c;if(i.acceptData(t)){var s=i.expando,h=t.nodeType,f=h?i.cache:t,e=h?t[i.expando]:i.expando;if(!f[e])return;if(r){o=u?f[e][s]:f[e];if(o){delete o[r];if(!at(o))return}}if(u){delete f[e][s];if(!at(f[e]))return}c=f[e][s],i.support.deleteExpando||f!=n?delete f[e]:f[e]=null,c?(f[e]={},h||(f[e].toJSON=i.noop),f[e][s]=c):h&&(i.support.deleteExpando?delete t[i.expando]:t.removeAttribute?t.removeAttribute(i.expando):t[i.expando]=null)}},_data:function(n,t,r){return i.data(n,t,r,!0)},acceptData:function(n){if(n.nodeName){var t=i.noData[n.nodeName.toLowerCase()];if(t)return t!==!0&&n.getAttribute("classid")===t}return!0}}),i.fn.extend({data:function(n,r){var f=null,s,e,o,h,u;if(typeof n=="undefined"){if(this.length){f=i.data(this[0]);if(this[0].nodeType===1)for(s=this[0].attributes,o=0,h=s.length;o<h;o++)e=s[o].name,e.indexOf("data-")===0&&(e=e.substr(5),hi(this[0],e,f[e]))}return f}if(typeof n=="object")return this.each(function(){i.data(this,n)});return u=n.split("."),u[1]=u[1]?"."+u[1]:"",r===t?(f=this.triggerHandler("getData"+u[1]+"!",[u[0]]),f===t&&this.length&&(f=i.data(this[0],n),f=hi(this[0],n,f)),f===t&&u[1]?this.data(u[0]):f):this.each(function(){var f=i(this),t=[u[0],r];f.triggerHandler("setData"+u[1]+"!",t),i.data(this,n,r),f.triggerHandler("changeData"+u[1]+"!",t)})},removeData:function(n){return this.each(function(){i.removeData(this,n)})}}),i.extend({queue:function(n,t,r){if(n){t=(t||"fx")+"queue";var u=i._data(n,t);return r?(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r),u):u||[]}},dequeue:function(n,t){t=t||"fx";var u=i.queue(n,t),r=u.shift();r==="inprogress"&&(r=u.shift()),r&&(t==="fx"&&u.unshift("inprogress"),r.call(n,function(){i.dequeue(n,t)})),u.length||i.removeData(n,t+"queue",!0)}}),i.fn.extend({queue:function(n,r){return typeof n!="string"&&(r=n,n="fx"),r===t?i.queue(this[0],n):this.each(function(){var u=i.queue(this,n,r);n==="fx"&&u[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(){var r=this;setTimeout(function(){i.dequeue(r,t)},n)})},clearQueue:function(n){return this.queue(n||"fx",[])}});var bi=/[\n\t\r]/g,ft=/\s+/,au=/\r/g,eu=/^(?:href|src|style)$/,nu=/^(?:button|input)$/i,tu=/^(?:button|input|object|select|textarea)$/i,dr=/^a(?:rea)?$/i,gi=/^(?:radio|checkbox)$/i;i.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},i.fn.extend({attr:function(n,t){return i.access(this,n,t,!0,i.attr)},removeAttr:function(n){return this.each(function(){i.attr(this,n,""),this.nodeType===1&&this.removeAttribute(n)})},addClass:function(n){var u,f,s,t,h,e,r,o;if(i.isFunction(n))return this.each(function(t){var r=i(this);r.addClass(n.call(this,t,r.attr("class")))});if(n&&typeof n=="string")for(u=(n||"").split(ft),f=0,s=this.length;f<s;f++){t=this[f];if(t.nodeType===1)if(t.className){for(h=" "+t.className+" ",e=t.className,r=0,o=u.length;r<o;r++)h.indexOf(" "+u[r]+" ")<0&&(e+=" "+u[r]);t.className=i.trim(e)}else t.className=n}return this},removeClass:function(n){var o,e,h,r,u,f,s;if(i.isFunction(n))return this.each(function(t){var r=i(this);r.removeClass(n.call(this,t,r.attr("class")))});if(n&&typeof n=="string"||n===t)for(o=(n||"").split(ft),e=0,h=this.length;e<h;e++){r=this[e];if(r.nodeType===1&&r.className)if(n){for(u=(" "+r.className+" ").replace(bi," "),f=0,s=o.length;f<s;f++)u=u.replace(" "+o[f]+" "," ");r.className=i.trim(u)}else r.className=""}return this},toggleClass:function(n,t){var r=typeof n,u=typeof t=="boolean";return i.isFunction(n)?this.each(function(r){var u=i(this);u.toggleClass(n.call(this,r,u.attr("class"),t),t)}):this.each(function(){if(r==="string"){var e,h=0,o=i(this),f=t,s=n.split(ft);while(e=s[h++])f=u?f:!o.hasClass(e),o[f?"addClass":"removeClass"](e)}else(r==="undefined"||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var r=" "+n+" ",t=0,i=this.length;t<i;t++)if((" "+this[t].className+" ").replace(bi," ").indexOf(r)>-1)return!0;return!1},val:function(n){var r,h,e,a,u,l;if(!arguments.length){r=this[0];if(r){if(i.nodeName(r,"option"))return h=r.attributes.value,!h||h.specified?r.value:r.text;if(i.nodeName(r,"select")){var s=r.selectedIndex,c=[],o=r.options,f=r.type==="select-one";if(s<0)return null;for(e=f?s:0,a=f?s+1:o.length;e<a;e++){u=o[e];if(u.selected&&(i.support.optDisabled?!u.disabled:u.getAttribute("disabled")===null)&&(!u.parentNode.disabled||!i.nodeName(u.parentNode,"optgroup"))){n=i(u).val();if(f)return n;c.push(n)}}return f&&!c.length&&o.length?i(o[s]).val():c}return gi.test(r.type)&&!i.support.checkOn?r.getAttribute("value")===null?"on":r.value:(r.value||"").replace(au,"")}return t}return l=i.isFunction(n),this.each(function(t){var f=i(this),r=n,u;this.nodeType===1&&(l&&(r=n.call(this,t,f.val())),r==null?r="":typeof r=="number"?r+="":i.isArray(r)&&(r=i.map(r,function(n){return n==null?"":n+""})),i.isArray(r)&&gi.test(this.type)?this.checked=i.inArray(f.val(),r)>=0:i.nodeName(this,"select")?(u=i.makeArray(r),i("option",this).each(function(){this.selected=i.inArray(i(this).val(),u)>=0}),u.length||(this.selectedIndex=-1)):this.value=r)})}}),i.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(n,r,u,f){var s,o,l,e,h,c;if(!n||n.nodeType===3||n.nodeType===8||n.nodeType===2)return t;if(f&&r in i.attrFn)return i(n)[r](u);s=n.nodeType!==1||!i.isXMLDoc(n),o=u!==t,r=s&&i.props[r]||r;if(n.nodeType===1){l=eu.test(r),r!=="selected"||i.support.optSelected||(e=n.parentNode,e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex));if((r in n||n[r]!==t)&&s&&!l)return o&&(r==="type"&&nu.test(n.nodeName)&&n.parentNode&&i.error("type property can't be changed"),u===null?n.nodeType===1&&n.removeAttribute(r):n[r]=u),i.nodeName(n,"form")&&n.getAttributeNode(r)?n.getAttributeNode(r).nodeValue:r==="tabIndex"?(h=n.getAttributeNode("tabIndex"),h&&h.specified?h.value:tu.test(n.nodeName)||dr.test(n.nodeName)&&n.href?0:t):n[r];if(!i.support.style&&s&&r==="style")return o&&(n.style.cssText=""+u),n.style.cssText;return o&&n.setAttribute(r,""+u),!n.attributes[r]&&n.hasAttribute&&!n.hasAttribute(r)?t:(c=!i.support.hrefNormalized&&s&&l?n.getAttribute(r,2):n.getAttribute(r),c===null?t:c)}return o&&(n[r]=u),n[r]}});var g=/\.(.*)$/,rt=/^(?:textarea|input|select)$/i,gr=/\./g,uu=/ /g,fu=/[^\w\s.|`]/g,iu=function(n){return n.replace(fu,"\\$&")};i.event={add:function(r,u,f,e){var p,s,l,y,c,o,b,v,w,a;if(r.nodeType!==3&&r.nodeType!==8){try{i.isWindow(r)&&r!==n&&!r.frameElement&&(r=n)}catch(k){}if(f===!1)f=h;else if(!f)return;f.handler&&(p=f,f=p.handler),f.guid||(f.guid=i.guid++),l=i._data(r);if(!l)return;y=l.events,c=l.handle,y||(l.events=y={}),c||(l.handle=c=function(n){return typeof i!="undefined"&&i.event.triggered!==n.type?i.event.handle.apply(c.elem,arguments):t}),c.elem=r,u=u.split(" "),b=0;while(o=u[b++])s=p?i.extend({},p):{handler:f,data:e},o.indexOf(".")>-1?(v=o.split("."),o=v.shift(),s.namespace=v.slice(0).sort().join(".")):(v=[],s.namespace=""),s.type=o,s.guid||(s.guid=f.guid),w=y[o],a=i.event.special[o]||{},w||(w=y[o]=[],a.setup&&a.setup.call(r,e,v,c)!==!1||(r.addEventListener?r.addEventListener(o,c,!1):r.attachEvent&&r.attachEvent("on"+o,c))),a.add&&(a.add.call(r,s),s.handler.guid||(s.handler.guid=f.guid)),w.push(s),i.event.global[o]=!0;r=null}},global:{},remove:function(n,r,u,f){var w;if(n.nodeType!==3&&n.nodeType!==8){u===!1&&(u=h);var d,o,nt,e,g=0,p,v,b,a,s,c,k,l=i.hasData(n)&&i._data(n),y=l&&l.events;if(!l||!y)return;r&&r.type&&(u=r.handler,r=r.type);if(!r||typeof r=="string"&&r.charAt(0)==="."){r=r||"";for(o in y)i.event.remove(n,o+r);return}r=r.split(" ");while(o=r[g++]){k=o,c=null,p=o.indexOf(".")<0,v=[],p||(v=o.split("."),o=v.shift(),b=new RegExp("(^|\\.)"+i.map(v.slice(0).sort(),iu).join("\\.(?:.*\\.)?")+"(\\.|$)")),s=y[o];if(!s)continue;if(!u){for(e=0;e<s.length;e++)c=s[e],(p||b.test(c.namespace))&&(i.event.remove(n,k,c.handler,e),s.splice(e--,1));continue}for(a=i.event.special[o]||{},e=f||0;e<s.length;e++){c=s[e];if(u.guid===c.guid){(p||b.test(c.namespace))&&(f==null&&s.splice(e--,1),a.remove&&a.remove.call(n,c));if(f!=null)break}}(s.length===0||f!=null&&s.length===1)&&((!a.teardown||a.teardown.call(n,v)===!1)&&i.removeEvent(n,o,l.handle),d=null,delete y[o])}i.isEmptyObject(y)&&(w=l.handle,w&&(w.elem=null),delete l.events,delete l.handle,i.isEmptyObject(l)&&i.removeData(n,t,!0))}},trigger:function(n,r,u){var f=n.type||n,v=arguments[3],h,c;if(!v){n=typeof n=="object"?n[i.expando]?n:i.extend(i.Event(f),n):i.Event(f),f.indexOf("!")>=0&&(n.type=f=f.slice(0,-1),n.exclusive=!0),u||(n.stopPropagation(),i.event.global[f]&&i.each(i.cache,function(){var u=i.expando,t=this[u];t&&t.events&&t.events[f]&&i.event.trigger(n,r,t.handle.elem)}));if(!u||u.nodeType===3||u.nodeType===8)return t;n.result=t,n.target=u,r=i.makeArray(r),r.unshift(n)}n.currentTarget=u,h=i._data(u,"handle"),h&&h.apply(u,r),c=u.parentNode||u.ownerDocument;try{u&&u.nodeName&&i.noData[u.nodeName.toLowerCase()]||u["on"+f]&&u["on"+f].apply(u,r)===!1&&(n.result=!1,n.preventDefault())}catch(p){}if(!n.isPropagationStopped()&&c)i.event.trigger(n,r,c,!0);else if(!n.isDefaultPrevented()){var s,e=n.target,o=f.replace(g,""),a=i.nodeName(e,"a")&&o==="click",l=i.event.special[o]||{};if((!l._default||l._default.call(u,n)===!1)&&!a&&!(e&&e.nodeName&&i.noData[e.nodeName.toLowerCase()])){try{e[o]&&(s=e["on"+o],s&&(e["on"+o]=null),i.event.triggered=n.type,e[o]())}catch(y){}s&&(e["on"+o]=s),i.event.triggered=t}}},handle:function(r){var h,u,c,a,s,l=[],v=i.makeArray(arguments),o,y,f,e;r=v[0]=i.event.fix(r||n.event),r.currentTarget=this,h=r.type.indexOf(".")<0&&!r.exclusive,h||(c=r.type.split("."),r.type=c.shift(),l=c.slice(0).sort(),a=new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.)?")+"(\\.|$)")),r.namespace=r.namespace||l.join("."),s=i._data(this,"events"),u=(s||{})[r.type];if(s&&u)for(u=u.slice(0),o=0,y=u.length;o<y;o++){f=u[o];if(h||a.test(f.namespace)){r.handler=f.handler,r.data=f.data,r.handleObj=f,e=f.handler.apply(this,v),e!==t&&(r.result=e,e===!1&&(r.preventDefault(),r.stopPropagation()));if(r.isImmediatePropagationStopped())break}}return r.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(n){var o,e,s,u,f;if(n[i.expando])return n;for(o=n,n=i.Event(o),e=this.props.length;e;)s=this.props[--e],n[s]=o[s];return n.target||(n.target=n.srcElement||r),n.target.nodeType===3&&(n.target=n.target.parentNode),!n.relatedTarget&&n.fromElement&&(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement),n.pageX==null&&n.clientX!=null&&(u=r.documentElement,f=r.body,n.pageX=n.clientX+(u&&u.scrollLeft||f&&f.scrollLeft||0)-(u&&u.clientLeft||f&&f.clientLeft||0),n.pageY=n.clientY+(u&&u.scrollTop||f&&f.scrollTop||0)-(u&&u.clientTop||f&&f.clientTop||0)),n.which==null&&(n.charCode!=null||n.keyCode!=null)&&(n.which=n.charCode!=null?n.charCode:n.keyCode),!n.metaKey&&n.ctrlKey&&(n.metaKey=n.ctrlKey),!n.which&&n.button!==t&&(n.which=n.button&1?1:n.button&2?3:n.button&4?2:0),n},guid:1e8,proxy:i.proxy,special:{ready:{setup:i.bindReady,teardown:i.noop},live:{add:function(n){i.event.add(this,p(n.origType,n.selector),i.extend({},n,{handler:lu,guid:n.handler.guid}))},remove:function(n){i.event.remove(this,p(n.origType,n.selector),n)}},beforeunload:{setup:function(n,t,r){i.isWindow(this)&&(this.onbeforeunload=r)},teardown:function(n,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}}},i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){n.detachEvent&&n.detachEvent("on"+t,i)},i.Event=function(n){if(!this.preventDefault)return new i.Event(n);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?d:h):this.type=n,this.timeStamp=i.now(),this[i.expando]=!0},i.Event.prototype={preventDefault:function(){this.isDefaultPrevented=d;var n=this.originalEvent;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=d;var n=this.originalEvent;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=d,this.stopPropagation()},isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h},st=function(n){var t=n.relatedTarget;try{if(t&&t!==r&&!t.parentNode)return;while(t&&t!==this)t=t.parentNode;t!==this&&(n.type=n.data,i.event.handle.apply(this,arguments))}catch(u){}},ot=function(n){n.type=n.data,i.event.handle.apply(this,arguments)},i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={setup:function(r){i.event.add(this,t,r&&r.selector?ot:st,n)},teardown:function(n){i.event.remove(this,t,n&&n.selector?ot:st)}}}),i.support.submitBubbles||(i.event.special.submit={setup:function(){if(this.nodeName&&this.nodeName.toLowerCase()!=="form")i.event.add(this,"click.specialSubmit",function(n){var r=n.target,t=r.type;(t==="submit"||t==="image")&&i(r).closest("form").length&&si("submit",this,arguments)}),i.event.add(this,"keypress.specialSubmit",function(n){var r=n.target,t=r.type;(t==="text"||t==="password")&&i(r).closest("form").length&&n.keyCode===13&&si("submit",this,arguments)});else return!1},teardown:function(){i.event.remove(this,".specialSubmit")}}),i.support.changeBubbles||(et=function(n){var r=n.type,t=n.value;return r==="radio"||r==="checkbox"?t=n.checked:r==="select-multiple"?t=n.selectedIndex>-1?i.map(n.options,function(n){return n.selected}).join("-"):"":n.nodeName.toLowerCase()==="select"&&(t=n.selectedIndex),t},y=function(n){var r=n.target,f,u;if(rt.test(r.nodeName)&&!r.readOnly){f=i._data(r,"_change_data"),u=et(r),(n.type!=="focusout"||r.type!=="radio")&&i._data(r,"_change_data",u);if(f===t||u===f)return;(f!=null||u)&&(n.type="change",n.liveFired=t,i.event.trigger(n,arguments[1],r))}},i.event.special.change={filters:{focusout:y,beforedeactivate:y,click:function(n){var i=n.target,t=i.type;(t==="radio"||t==="checkbox"||i.nodeName.toLowerCase()==="select")&&y.call(this,n)},keydown:function(n){var i=n.target,t=i.type;(n.keyCode===13&&i.nodeName.toLowerCase()!=="textarea"||n.keyCode===32&&(t==="checkbox"||t==="radio")||t==="select-multiple")&&y.call(this,n)},beforeactivate:function(n){var t=n.target;i._data(t,"_change_data",et(t))}},setup:function(){if(this.type==="file")return!1;for(var r in a)i.event.add(this,r+".specialChange",a[r]);return rt.test(this.nodeName)},teardown:function(){return i.event.remove(this,".specialChange"),rt.test(this.nodeName)}},a=i.event.special.change.filters,a.focus=a.beforeactivate),r.addEventListener&&i.each({focus:"focusin",blur:"focusout"},function(n,t){function f(n){var r=i.event.fix(n);r.type=t,r.originalEvent={},i.event.trigger(r,null,r.target),r.isDefaultPrevented()&&n.preventDefault()}var u=0;i.event.special[t]={setup:function(){u++==0&&r.addEventListener(n,f,!0)},teardown:function(){--u==0&&r.removeEventListener(n,f,!0)}}}),i.each(["bind","one"],function(n,r){i.fn[r]=function(n,u,f){var s,o,e,h;if(typeof n=="object"){for(s in n)this[r](s,u,n[s],f);return this}(i.isFunction(u)||u===!1)&&(f=u,u=t),o=r==="one"?i.proxy(f,function(n){return i(this).unbind(n,o),f.apply(this,arguments)}):f;if(n==="unload"&&r!=="one")this.one(n,u,f);else for(e=0,h=this.length;e<h;e++)i.event.add(this[e],n,o,u);return this}}),i.fn.extend({unbind:function(n,t){var r,f,u;if(typeof n!="object"||n.preventDefault)for(r=0,f=this.length;r<f;r++)i.event.remove(this[r],n,t);else for(u in n)this.unbind(u,n[u]);return this},delegate:function(n,t,i,r){return this.live(t,i,r,n)},undelegate:function(n,t,i){return arguments.length===0?this.unbind("live"):this.die(t,null,i,n)},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){if(this[0]){var r=i.Event(n);return r.preventDefault(),r.stopPropagation(),i.event.trigger(r,t,this[0]),r.result}},toggle:function(n){var r=arguments,t=1;while(t<r.length)i.proxy(n,r[t++]);return this.click(i.proxy(n,function(u){var f=(i._data(this,"lastToggle"+n.guid)||0)%t;return i._data(this,"lastToggle"+n.guid,f+1),u.preventDefault(),r[f].apply(this,arguments)||!1}))},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),it={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"},i.each(["live","die"],function(n,r){i.fn[r]=function(n,u,f,e){var o,b=0,v,s,w,c=e||this.selector,h=e?this:i(this.context),a,l,y;if(typeof n=="object"&&!n.preventDefault){for(a in n)h[r](a,u,n[a],c);return this}i.isFunction(u)&&(f=u,u=t),n=(n||"").split(" ");while((o=n[b++])!=null){v=g.exec(o),s="",v&&(s=v[0],o=o.replace(g,""));if(o==="hover"){n.push("mouseenter"+s,"mouseleave"+s);continue}w=o,o==="focus"||o==="blur"?(n.push(it[o]+s),o=o+s):o=(it[o]||o)+s;if(r==="live")for(l=0,y=h.length;l<y;l++)i.event.add(h[l],"live."+p(o,c),{data:u,selector:c,handler:f,origType:o,origHandler:f,preType:w});else h.unbind("live."+p(o,c),f)}return this}}),i.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(n,t){i.fn[t]=function(n,i){return i==null&&(i=n,n=null),arguments.length>0?this.bind(t,n,i):this.trigger(t)},i.attrFn&&(i.attrFn[t]=!0)}),function(){function p(t,i,r,u,f,e){for(var o,h,s=0,c=u.length;s<c;s++){o=u[s];if(o){h=!1,o=o[t];while(o){if(o.sizcache===r){h=u[o.sizset];break}if(o.nodeType===1){e||(o.sizcache=r,o.sizset=s);if(typeof i!="string"){if(o===i){h=!0;break}}else if(n.filter(i,[o]).length>0){h=o;break}}o=o[t]}u[s]=h}}}function k(n,t,i,r,u,f){for(var e,s,o=0,h=r.length;o<h;o++){e=r[o];if(e){s=!1,e=e[n];while(e){if(e.sizcache===i){s=r[e.sizset];break}e.nodeType===1&&!f&&(e.sizcache=i,e.sizset=o);if(e.nodeName.toLowerCase()===t){s=e;break}e=e[n]}r[o]=s}}}var y=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,a=0,w=Object.prototype.toString,c=!1,b=!0,e=/\\/g,h=/\W/,n,o,f,l,s,v;[0,0].sort(function(){return b=!1,0}),n=function(t,i,e,o){var it;e=e||[],i=i||r,it=i;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!t||typeof t!="string")return e;var p,a,h,nt,l,b,k,c,rt=!0,g=n.isXML(i),s=[],tt=t;do{y.exec(""),p=y.exec(tt);if(p){tt=p[3],s.push(p[1]);if(p[2]){nt=p[3];break}}}while(p);if(s.length>1&&d.exec(t))if(s.length===2&&u.relative[s[0]])a=v(s[0]+s[1],i);else{a=u.relative[s[0]]?[i]:n(s.shift(),i);while(s.length)t=s.shift(),u.relative[t]&&(t+=s.shift()),a=v(t,a)}else{!o&&s.length>1&&i.nodeType===9&&!g&&u.match.ID.test(s[0])&&!u.match.ID.test(s[s.length-1])&&(l=n.find(s.shift(),i,g),i=l.expr?n.filter(l.expr,l.set)[0]:l.set[0]);if(i){l=o?{expr:s.pop(),set:f(o)}:n.find(s.pop(),s.length===1&&(s[0]==="~"||s[0]==="+")&&i.parentNode?i.parentNode:i,g),a=l.expr?n.filter(l.expr,l.set):l.set,s.length>0?h=f(a):rt=!1;while(s.length)b=s.pop(),k=b,u.relative[b]?k=s.pop():b="",k==null&&(k=i),u.relative[b](h,k,g)}else h=s=[]}h||(h=a),h||n.error(b||t);if(w.call(h)==="[object Array]")if(rt)if(i&&i.nodeType===1)for(c=0;h[c]!=null;c++)h[c]&&(h[c]===!0||h[c].nodeType===1&&n.contains(i,h[c]))&&e.push(a[c]);else for(c=0;h[c]!=null;c++)h[c]&&h[c].nodeType===1&&e.push(a[c]);else e.push.apply(e,h);else f(h,e);return nt&&(n(nt,it,e,o),n.uniqueSort(e)),e},n.uniqueSort=function(n){if(l){c=b,n.sort(l);if(c)for(var t=1;t<n.length;t++)n[t]===n[t-1]&&n.splice(t--,1)}return n},n.matches=function(t,i){return n(t,null,null,i)},n.matchesSelector=function(t,i){return n(i,null,null,[t]).length>0},n.find=function(n,t,i){var f,s,c,r,o,h;if(!n)return[];for(s=0,c=u.order.length;s<c;s++){o=u.order[s];if(r=u.leftMatch[o].exec(n)){h=r[1],r.splice(1,1);if(h.substr(h.length-1)!=="\\"){r[1]=(r[1]||"").replace(e,""),f=u.find[o](r,t,i);if(f!=null){n=n.replace(u.match[o],"");break}}}}return f||(f=typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName("*"):[]),{set:f,expr:n}},n.filter=function(i,r,f,e){var o,h,b=i,v=[],s=r,d=r&&r[0]&&n.isXML(r[0]),c,a,y,k,p,l,w;while(i&&r.length){for(c in u.filter)if((o=u.leftMatch[c].exec(i))!=null&&o[2]){k=u.filter[c],p=o[1],h=!1,o.splice(1,1);if(p.substr(p.length-1)==="\\")continue;s===v&&(v=[]);if(u.preFilter[c]){o=u.preFilter[c](o,s,f,v,e,d);if(o){if(o===!0)continue}else h=a=!0}if(o)for(l=0;(y=s[l])!=null;l++)y&&(a=k(y,o,l,s),w=e^!!a,f&&a!=null?w?h=!0:s[l]=!1:w&&(v.push(y),h=!0));if(a!==t){f||(s=v),i=i.replace(u.match[c],"");if(!h)return[];break}}if(i===b)if(h==null)n.error(i);else break;b=i}return s},n.error=function(n){throw"Syntax error, unrecognized expression: "+n;};var u=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(n){return n.getAttribute("href")},type:function(n){return n.getAttribute("type")}},relative:{"+":function(t,i){var s=typeof i=="string",e=s&&!h.test(i),o=s&&!e,u,f,r;for(e&&(i=i.toLowerCase()),u=0,f=t.length;u<f;u++)if(r=t[u]){while((r=r.previousSibling)&&r.nodeType!==1);t[u]=o||r&&r.nodeName.toLowerCase()===i?r||!1:r===i}o&&n.filter(i,t,!0)},">":function(t,i){var u,e=typeof i=="string",r=0,o=t.length,f;if(e&&!h.test(i))for(i=i.toLowerCase();r<o;r++)u=t[r],u&&(f=u.parentNode,t[r]=f.nodeName.toLowerCase()===i?f:!1);else{for(;r<o;r++)u=t[r],u&&(t[r]=e?u.parentNode:u.parentNode===i);e&&n.filter(i,t,!0)}},"":function(n,t,i){var u,f=a++,r=p;typeof t=="string"&&!h.test(t)&&(t=t.toLowerCase(),u=t,r=k),r("parentNode",t,f,n,u,i)},"~":function(n,t,i){var u,f=a++,r=p;typeof t=="string"&&!h.test(t)&&(t=t.toLowerCase(),u=t,r=k),r("previousSibling",t,f,n,u,i)}},find:{ID:function(n,t,i){if(typeof t.getElementById!="undefined"&&!i){var r=t.getElementById(n[1]);return r&&r.parentNode?[r]:[]}},NAME:function(n,t){var u,r,i,f;if(typeof t.getElementsByName!="undefined"){for(u=[],r=t.getElementsByName(n[1]),i=0,f=r.length;i<f;i++)r[i].getAttribute("name")===n[1]&&u.push(r[i]);return u.length===0?null:u}},TAG:function(n,t){if(typeof t.getElementsByTagName!="undefined")return t.getElementsByTagName(n[1])}},preFilter:{CLASS:function(n,t,i,r,u,f){n=" "+n[1].replace(e,"")+" ";if(f)return n;for(var s=0,o;(o=t[s])!=null;s++)o&&(u^(o.className&&(" "+o.className+" ").replace(/[\t\n\r]/g," ").indexOf(n)>=0)?i||r.push(o):i&&(t[s]=!1));return!1},ID:function(n){return n[1].replace(e,"")},TAG:function(n){return n[1].replace(e,"").toLowerCase()},CHILD:function(t){if(t[1]==="nth"){t[2]||n.error(t[0]),t[2]=t[2].replace(/^\+|\s*/g,"");var i=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(t[2]==="even"&&"2n"||t[2]==="odd"&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=i[1]+(i[2]||1)-0,t[3]=i[3]-0}else t[2]&&n.error(t[0]);return t[0]=a++,t},ATTR:function(n,t,i,r,f,o){var s=n[1]=n[1].replace(e,"");return!o&&u.attrMap[s]&&(n[1]=u.attrMap[s]),n[4]=(n[4]||n[5]||"").replace(e,""),n[2]==="~="&&(n[4]=" "+n[4]+" "),n},PSEUDO:function(t,i,r,f,e){if(t[1]==="not")if((y.exec(t[3])||"").length>1||/^\w/.test(t[3]))t[3]=n(t[3],null,null,i);else{var o=n.filter(t[3],i,r,!0^e);return r||f.push.apply(f,o),!1}else if(u.match.POS.test(t[0])||u.match.CHILD.test(t[0]))return!0;return t},POS:function(n){return n.unshift(!0),n}},filters:{enabled:function(n){return n.disabled===!1&&n.type!=="hidden"},disabled:function(n){return n.disabled===!0},checked:function(n){return n.checked===!0},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},parent:function(n){return!!n.firstChild},empty:function(n){return!n.firstChild},has:function(t,i,r){return!!n(r[3],t).length},header:function(n){return/h\d/i.test(n.nodeName)},text:function(n){var i=n.getAttribute("type"),t=n.type;return"text"===t&&(i===t||i===null)},radio:function(n){return"radio"===n.type},checkbox:function(n){return"checkbox"===n.type},file:function(n){return"file"===n.type},password:function(n){return"password"===n.type},submit:function(n){return"submit"===n.type},image:function(n){return"image"===n.type},reset:function(n){return"reset"===n.type},button:function(n){return"button"===n.type||n.nodeName.toLowerCase()==="button"},input:function(n){return/input|select|textarea|button/i.test(n.nodeName)}},setFilters:{first:function(n,t){return t===0},last:function(n,t,i,r){return t===r.length-1},even:function(n,t){return t%2==0},odd:function(n,t){return t%2==1},lt:function(n,t,i){return t<i[3]-0},gt:function(n,t,i){return t>i[3]-0},nth:function(n,t,i){return i[3]-0===t},eq:function(n,t,i){return i[3]-0===t}},filter:{PSEUDO:function(t,i,r,f){var o=i[1],c=u.filters[o],s,e,h;if(c)return c(t,r,i,f);if(o==="contains")return(t.textContent||t.innerText||n.getText([t])||"").indexOf(i[3])>=0;if(o==="not"){for(s=i[3],e=0,h=s.length;e<h;e++)if(s[e]===t)return!1;return!0}n.error(o)},CHILD:function(n,t){var s=t[1],i=n,u,e,o,r,h,f;switch(s){case"only":case"first":while(i=i.previousSibling)if(i.nodeType===1)return!1;if(s==="first")return!0;i=n;case"last":while(i=i.nextSibling)if(i.nodeType===1)return!1;return!0;case"nth":u=t[2],e=t[3];if(u===1&&e===0)return!0;o=t[0],r=n.parentNode;if(r&&(r.sizcache!==o||!n.nodeIndex)){for(h=0,i=r.firstChild;i;i=i.nextSibling)i.nodeType===1&&(i.nodeIndex=++h);r.sizcache=o}return f=n.nodeIndex-e,u===0?f===0:f%u==0&&f/u>=0}},ID:function(n,t){return n.nodeType===1&&n.getAttribute("id")===t},TAG:function(n,t){return t==="*"&&n.nodeType===1||n.nodeName.toLowerCase()===t},CLASS:function(n,t){return(" "+(n.className||n.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(n,t){var e=t[1],o=u.attrHandle[e]?u.attrHandle[e](n):n[e]!=null?n[e]:n.getAttribute(e),r=o+"",f=t[2],i=t[4];return o==null?f==="!=":f==="="?r===i:f==="*="?r.indexOf(i)>=0:f==="~="?(" "+r+" ").indexOf(i)>=0:i?f==="!="?r!==i:f==="^="?r.indexOf(i)===0:f==="$="?r.substr(r.length-i.length)===i:f==="|="?r===i||r.substr(0,i.length+1)===i+"-":!1:r&&o!==!1},POS:function(n,t,i,r){var e=t[2],f=u.setFilters[e];if(f)return f(n,i,t,r)}}},d=u.match.POS,g=function(n,t){return"\\"+(+t+1)};for(o in u.match)u.match[o]=new RegExp(u.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),u.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+u.match[o].source.replace(/\\(\d+)/g,g));f=function(n,t){return n=Array.prototype.slice.call(n,0),t?(t.push.apply(t,n),t):n};try{Array.prototype.slice.call(r.documentElement.childNodes,0)[0].nodeType}catch(nt){f=function(n,t){var i=0,r=t||[],u;if(w.call(n)==="[object Array]")Array.prototype.push.apply(r,n);else if(typeof n.length=="number")for(u=n.length;i<u;i++)r.push(n[i]);else for(;n[i];i++)r.push(n[i]);return r}}r.documentElement.compareDocumentPosition?l=function(n,t){return n===t?(c=!0,0):!n.compareDocumentPosition||!t.compareDocumentPosition?n.compareDocumentPosition?-1:1:n.compareDocumentPosition(t)&4?-1:1}:(l=function(n,t){var o,l,f=[],u=[],h=n.parentNode,e=t.parentNode,r=h,i;if(n===t)return c=!0,0;if(h===e)return s(n,t);if(!h)return-1;if(!e)return 1;while(r)f.unshift(r),r=r.parentNode;r=e;while(r)u.unshift(r),r=r.parentNode;for(o=f.length,l=u.length,i=0;i<o&&i<l;i++)if(f[i]!==u[i])return s(f[i],u[i]);return i===o?s(n,u[i],-1):s(f[i],t,1)},s=function(n,t,i){if(n===t)return i;var r=n.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}),n.getText=function(t){for(var u="",i,r=0;t[r];r++)i=t[r],i.nodeType===3||i.nodeType===4?u+=i.nodeValue:i.nodeType!==8&&(u+=n.getText(i.childNodes));return u},function(){var i=r.createElement("div"),f="script"+ +new Date,n=r.documentElement;i.innerHTML="<a name='"+f+"'/>",n.insertBefore(i,n.firstChild),r.getElementById(f)&&(u.find.ID=function(n,i,r){if(typeof i.getElementById!="undefined"&&!r){var u=i.getElementById(n[1]);return u?u.id===n[1]||typeof u.getAttributeNode!="undefined"&&u.getAttributeNode("id").nodeValue===n[1]?[u]:t:[]}},u.filter.ID=function(n,t){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return n.nodeType===1&&i&&i.nodeValue===t}),n.removeChild(i),n=i=null}(),function(){var n=r.createElement("div");n.appendChild(r.createComment("")),n.getElementsByTagName("*").length>0&&(u.find.TAG=function(n,t){var r=t.getElementsByTagName(n[1]),u,i;if(n[1]==="*"){for(u=[],i=0;r[i];i++)r[i].nodeType===1&&u.push(r[i]);r=u}return r}),n.innerHTML="<a href='#'></a>",n.firstChild&&typeof n.firstChild.getAttribute!="undefined"&&n.firstChild.getAttribute("href")!=="#"&&(u.attrHandle.href=function(n){return n.getAttribute("href",2)}),n=null}(),r.querySelectorAll&&function(){var e=n,t=r.createElement("div"),o="__sizzle__",i;t.innerHTML="<p class='TEST'></p>";if(!t.querySelectorAll||t.querySelectorAll(".TEST").length!==0){n=function(t,i,s,h){var c,l;i=i||r;if(!h&&!n.isXML(i)){c=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(c&&(i.nodeType===1||i.nodeType===9)){if(c[1])return f(i.getElementsByTagName(t),s);if(c[2]&&u.find.CLASS&&i.getElementsByClassName)return f(i.getElementsByClassName(c[2]),s)}if(i.nodeType===9){if(t==="body"&&i.body)return f([i.body],s);if(c&&c[3]){l=i.getElementById(c[3]);if(!l||!l.parentNode)return f([],s);if(l.id===c[3])return f([l],s)}try{return f(i.querySelectorAll(t),s)}catch(k){}}else if(i.nodeType===1&&i.nodeName.toLowerCase()!=="object"){var w=i,v=i.getAttribute("id"),a=v||o,y=i.parentNode,p=/^\s*[+~]/.test(t);v?a=a.replace(/'/g,"\\$&"):i.setAttribute("id",a),p&&y&&(i=i.parentNode);try{if(!p||y)return f(i.querySelectorAll("[id='"+a+"'] "+t),s)}catch(b){}finally{v||w.removeAttribute("id")}}}return e(t,i,s,h)};for(i in e)n[i]=e[i];t=null}}(),function(){var i=r.documentElement,t=i.matchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.msMatchesSelector,e,f;if(t){e=!t.call(r.createElement("div"),"div"),f=!1;try{t.call(r.documentElement,"[test!='']:sizzle")}catch(o){f=!0}n.matchesSelector=function(i,r){r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(i))try{if(f||!u.match.PSEUDO.test(r)&&!/!=/.test(r)){var o=t.call(i,r);if(o||!e||i.document&&i.document.nodeType!==11)return o}}catch(s){}return n(r,null,null,[i]).length>0}}}(),function(){var n=r.createElement("div");n.innerHTML="<div class='test e'></div><div class='test'></div>";if(n.getElementsByClassName&&n.getElementsByClassName("e").length!==0){n.lastChild.className="e";if(n.getElementsByClassName("e").length===1)return;u.order.splice(1,0,"CLASS"),u.find.CLASS=function(n,t,i){if(typeof t.getElementsByClassName!="undefined"&&!i)return t.getElementsByClassName(n[1])},n=null}}(),n.contains=r.documentElement.contains?function(n,t){return n!==t&&(n.contains?n.contains(t):!0)}:r.documentElement.compareDocumentPosition?function(n,t){return!!(n.compareDocumentPosition(t)&16)}:function(){return!1},n.isXML=function(n){var t=(n?n.ownerDocument||n:0).documentElement;return t?t.nodeName!=="HTML":!1},v=function(t,i){var o,s=[],h="",f=i.nodeType?[i]:i,r,e;while(o=u.match.PSEUDO.exec(t))h+=o[0],t=t.replace(u.match.PSEUDO,"");for(t=u.relative[t]?t+"*":t,r=0,e=f.length;r<e;r++)n(t,f[r],s);return n.filter(h,s)},i.find=n,i.expr=n.selectors,i.expr[":"]=i.expr.filters,i.unique=n.uniqueSort,i.text=n.getText,i.isXMLDoc=n.isXML,i.contains=n.contains}();var ru=/Until$/,ef=/^(?:parents|prevUntil|prevAll)/,of=/,/,uf=/^.[^:#\[\.,]*$/,ff=Array.prototype.slice,cf=i.expr.match.POS,lf={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){for(var t=this.pushStack("","find",n),e=0,r,f,u=0,o=this.length;u<o;u++){e=t.length,i.find(n,this[u],t);if(u>0)for(r=e;r<t.length;r++)for(f=0;f<e;f++)if(t[f]===t[r]){t.splice(r--,1);break}}return t},has:function(n){var t=i(n);return this.filter(function(){for(var n=0,r=t.length;n<r;n++)if(i.contains(this,t[n]))return!0})},not:function(n){return this.pushStack(oi(this,n,!1),"not",n)},filter:function(n){return this.pushStack(oi(this,n,!0),"filter",n)},is:function(n){return!!n&&i.filter(n,this).length>0},closest:function(n,t){var f=[],e,s,r=this[0],h,u,o,l,c;if(i.isArray(n)){o={},l=1;if(r&&n.length){for(e=0,s=n.length;e<s;e++)u=n[e],o[u]||(o[u]=i.expr.match.POS.test(u)?i(u,t||this.context):u);while(r&&r.ownerDocument&&r!==t){for(u in o)h=o[u],(h.jquery?h.index(r)>-1:i(r).is(h))&&f.push({selector:u,elem:r,level:l});r=r.parentNode,l++}}return f}for(c=cf.test(n)?i(n,t||this.context):null,e=0,s=this.length;e<s;e++){r=this[e];while(r){if(c?c.index(r)>-1:i.find.matchesSelector(r,n)){f.push(r);break}r=r.parentNode;if(!r||!r.ownerDocument||r===t)break}}return f=f.length>1?i.unique(f):f,this.pushStack(f,"closest",n)},index:function(n){return!n||typeof n=="string"?i.inArray(this[0],n?i(n):this.parent().children()):i.inArray(n.jquery?n[0]:n,this)},add:function(n,t){var u=typeof n=="string"?i(n,t):i.makeArray(n),r=i.merge(this.get(),u);return this.pushStack(ei(u[0])||ei(r[0])?r:i.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return i.nth(n,2,"nextSibling")},prev:function(n){return i.nth(n,2,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling(n.parentNode.firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.makeArray(n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r),e=ff.call(arguments);return ru.test(n)||(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),f=this.length>1&&!lf[n]?i.unique(f):f,(this.length>1||of.test(u))&&ef.test(n)&&(f=f.reverse()),this.pushStack(f,n,e.join(","))}}),i.extend({filter:function(n,t,r){return r&&(n=":not("+n+")"),t.length===1?i.find.matchesSelector(t[0],n)?[t[0]]:[]:i.find.matches(n,t)},dir:function(n,r,u){var e=[],f=n[r];while(f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u)))f.nodeType===1&&e.push(f),f=f[r];return e},nth:function(n,t,i){t=t||1;for(var u=0;n;n=n[i])if(n.nodeType===1&&++u===t)break;return n},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var sf=/ jQuery\d+="(?:\d+|null)"/g,ht=/^\s+/,gt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ii=/<([\w:]+)/,hf=/<tbody/i,rf=/<|&#?\w+;/,ui=/<(?:script|object|embed|option|style)/i,ri=/checked\s*(?:[^=]|=\s*.checked.)/i,u={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,"",""]};u.optgroup=u.option,u.tbody=u.tfoot=u.colgroup=u.caption=u.thead,u.th=u.td,i.support.htmlSerialize||(u._default=[1,"div<div>","</div>"]),i.fn.extend({text:function(n){return i.isFunction(n)?this.each(function(t){var r=i(this);r.text(n.call(this,t,r.text()))}):typeof n!="object"&&n!==t?this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n)):i.text(this)},wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var n=this;while(n.firstChild&&n.firstChild.nodeType===1)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var r=i(this),t=r.contents();t.length?t.wrapAll(n):r.append(n)})},wrap:function(n){return this.each(function(){i(this).wrapAll(n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.insertBefore(n,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this)});if(arguments.length){var n=i(arguments[0]);return n.push.apply(n,this.toArray()),this.pushStack(n,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this.nextSibling)});if(arguments.length){var n=this.pushStack(this,"after",arguments);return n.push.apply(n,i(arguments[0]).toArray()),n}},remove:function(n,t){for(var u=0,r;(r=this[u])!=null;u++)(!n||i.filter(n,[r]).length)&&(!t&&r.nodeType===1&&(i.cleanData(r.getElementsByTagName("*")),i.cleanData([r])),r.parentNode&&r.parentNode.removeChild(r));return this},empty:function(){for(var t=0,n;(n=this[t])!=null;t++){n.nodeType===1&&i.cleanData(n.getElementsByTagName("*"));while(n.firstChild)n.removeChild(n.firstChild)}return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){if(n===t)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(sf,""):null;if(typeof n!="string"||ui.test(n)||!i.support.leadingWhitespace&&ht.test(n)||u[(ii.exec(n)||["",""])[1].toLowerCase()])i.isFunction(n)?this.each(function(t){var r=i(this);r.html(n.call(this,t,r.html()))}):this.empty().append(n);else{n=n.replace(gt,"<$1></$2>");try{for(var r=0,f=this.length;r<f;r++)this[r].nodeType===1&&(i.cleanData(this[r].getElementsByTagName("*")),this[r].innerHTML=n)}catch(e){this.empty().append(n)}}return this},replaceWith:function(n){return this[0]&&this[0].parentNode?i.isFunction(n)?this.each(function(t){var r=i(this),u=r.html();r.replaceWith(n.call(this,t,u))}):(typeof n!="string"&&(n=i(n).detach()),this.each(function(){var t=this.nextSibling,r=this.parentNode;i(this).remove(),t?i(t).before(n):i(r).append(n)})):this.length?this.pushStack(i(i.isFunction(n)?n():n),"replaceWith",n):this},detach:function(n){return this.remove(n,!0)},domManip:function(n,r,u){var c,o,f,h,e=n[0],a=[];if(!i.support.checkClone&&arguments.length===3&&typeof e=="string"&&ri.test(e))return this.each(function(){i(this).domManip(n,r,u,!0)});if(i.isFunction(e))return this.each(function(f){var o=i(this);n[0]=e.call(this,f,r?o.html():t),o.domManip(n,r,u)});if(this[0]){h=e&&e.parentNode,c=i.support.parentNode&&h&&h.nodeType===11&&h.childNodes.length===this.length?{fragment:h}:i.buildFragment(n,this,a),f=c.fragment,o=f.childNodes.length===1?f=f.firstChild:f.firstChild;if(o){r=r&&i.nodeName(o,"tr");for(var s=0,l=this.length,v=l-1;s<l;s++)u.call(r?yu(this[s],o):this[s],c.cacheable||l>1&&s<v?i.clone(f,!0,!0):f)}a.length&&i.each(a,vu)}return this}}),i.buildFragment=function(n,t,u){var f,s,e,o=t&&t[0]?t[0].ownerDocument||t[0]:r;return n.length===1&&typeof n[0]=="string"&&n[0].length<512&&o===r&&n[0].charAt(0)==="<"&&!ui.test(n[0])&&(i.support.checkClone||!ri.test(n[0]))&&(s=!0,e=i.fragments[n[0]],e&&e!==1&&(f=e)),f||(f=o.createDocumentFragment(),i.clean(n,o,f,u)),s&&(i.fragments[n[0]]=e?f:1),{fragment:f,cacheable:s}},i.fragments={},i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(r){var o=[],u=i(r),s=this.length===1&&this[0].parentNode,f,h,e;if(s&&s.nodeType===11&&s.childNodes.length===1&&u.length===1)return u[t](this[0]),this;for(f=0,h=u.length;f<h;f++)e=(f>0?this.clone(!0):this).get(),i(u[f])[t](e),o=o.concat(e);return this.pushStack(o,n,u.selector)}}),i.extend({clone:function(n,t,r){var e=n.cloneNode(!0),f,o,u;if((!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(vi(n,e),f=nt(n),o=nt(e),u=0;f[u];++u)vi(f[u],o[u]);if(t){pi(n,e);if(r)for(f=nt(n),o=nt(e),u=0;f[u];++u)pi(f[u],o[u])}return e},clean:function(n,t,f,e){var s,h,o,y,a,l;for(t=t||r,typeof t.createElement=="undefined"&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||r),s=[],h=0;(o=n[h])!=null;h++){typeof o=="number"&&(o+="");if(!o)continue;if(typeof o!="string"||rf.test(o)){if(typeof o=="string"){o=o.replace(gt,"<$1></$2>");var p=(ii.exec(o)||["",""])[1].toLowerCase(),v=u[p]||u._default,w=v[0],c=t.createElement("div");c.innerHTML=v[1]+o+v[2];while(w--)c=c.lastChild;if(!i.support.tbody)for(y=hf.test(o),a=p==="table"&&!y?c.firstChild&&c.firstChild.childNodes:v[1]==="<table>"&&!y?c.childNodes:[],l=a.length-1;l>=0;--l)i.nodeName(a[l],"tbody")&&!a[l].childNodes.length&&a[l].parentNode.removeChild(a[l]);!i.support.leadingWhitespace&&ht.test(o)&&c.insertBefore(t.createTextNode(ht.exec(o)[0]),c.firstChild),o=c.childNodes}}else o=t.createTextNode(o);o.nodeType?s.push(o):s=i.merge(s,o)}if(f)for(h=0;s[h];h++)!e||!i.nodeName(s[h],"script")||s[h].type&&s[h].type.toLowerCase()!=="text/javascript"?(s[h].nodeType===1&&s.splice.apply(s,[h+1,0].concat(i.makeArray(s[h].getElementsByTagName("script")))),f.appendChild(s[h])):e.push(s[h].parentNode?s[h].parentNode.removeChild(s[h]):s[h]);return s},cleanData:function(n){for(var r,u,e=i.cache,s=i.expando,c=i.event.special,h=i.support.deleteExpando,t,f,o=0;(t=n[o])!=null;o++){if(t.nodeName&&i.noData[t.nodeName.toLowerCase()])continue;u=t[i.expando];if(u){r=e[u]&&e[u][s];if(r&&r.events){for(f in r.events)c[f]?i.event.remove(t,f):i.removeEvent(t,f,r.handle);r.handle&&(r.handle.elem=null)}h?delete t[i.expando]:t.removeAttribute&&t.removeAttribute(i.expando),delete e[u]}}}});var pt=/alpha\([^)]*\)/i,bu=/opacity=([^)]*)/,ku=/-([a-z])/ig,pu=/([A-Z]|^ms)/g,wt=/^-?\d+(?:px)?$/i,wu=/^-?\d/,nf={position:"absolute",visibility:"hidden",display:"block"},tf=["Left","Right"],du=["Top","Bottom"],c,kt,k,gu=function(n,t){return t.toUpperCase()};i.fn.css=function(n,r){return arguments.length===2&&r===t?this:i.access(this,n,r,!0,function(n,r,u){return u!==t?i.style(n,r,u):i.css(n,r)})},i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=c(n,"opacity","opacity");return i===""?"1":i}return n.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var h,o=i.camelCase(r),s=n.style,e=i.cssHooks[o];r=i.cssProps[o]||o;if(u===t)return e&&"get"in e&&(h=e.get(n,!1,f))!==t?h:s[r];if(typeof u=="number"&&isNaN(u)||u==null)return;typeof u=="number"&&!i.cssNumber[o]&&(u+="px");if(!e||!("set"in e)||(u=e.set(n,u))!==t)try{s[r]=u}catch(c){}}},css:function(n,r,u){var o,f=i.camelCase(r),e=i.cssHooks[f];return r=i.cssProps[f]||f,e&&"get"in e&&(o=e.get(n,!0,u))!==t?o:c?c(n,r,f):void 0},swap:function(n,t,i){var u={},r;for(r in t)u[r]=n.style[r],n.style[r]=t[r];i.call(n);for(r in t)n.style[r]=u[r]},camelCase:function(n){return n.replace(ku,gu)}}),i.curCSS=i.css,i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){var f;if(r){n.offsetWidth!==0?f=li(n,t,u):i.swap(n,nf,function(){f=li(n,t,u)});if(f<=0){f=c(n,t,t),f==="0px"&&k&&(f=k(n,t,t));if(f!=null)return f===""||f==="auto"?"0px":f}return f<0||f==null?(f=n.style[t],f===""||f==="auto"?"0px":f):typeof f=="string"?f:f+"px"}},set:function(n,t){return wt.test(t)?(t=parseFloat(t),t>=0?t+"px":void 0):t}}}),i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return bu.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(n,t){var r=n.style,f,u;r.zoom=1,f=i.isNaN(t)?"":"alpha(opacity="+t*100+")",u=r.filter||"",r.filter=pt.test(u)?u.replace(pt,f):r.filter+" "+f}}),i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){var r;return i.swap(n,{display:"inline-block"},function(){r=t?c(n,"margin-right","marginRight"):n.style.marginRight}),r}})}),r.defaultView&&r.defaultView.getComputedStyle&&(kt=function(n,r,u){var f,o,e;return u=u.replace(pu,"-$1").toLowerCase(),(o=n.ownerDocument.defaultView)?((e=o.getComputedStyle(n,null))&&(f=e.getPropertyValue(u),f===""&&!i.contains(n.ownerDocument.documentElement,n)&&(f=i.style(n,u))),f):t}),r.documentElement.currentStyle&&(k=function(n,t){var f,i=n.currentStyle&&n.currentStyle[t],u=n.runtimeStyle&&n.runtimeStyle[t],r=n.style;return!wt.test(i)&&wu.test(i)&&(f=r.left,u&&(n.runtimeStyle.left=n.currentStyle.left),r.left=t==="fontSize"?"1em":i||0,i=r.pixelLeft+"px",r.left=f,u&&(n.runtimeStyle.left=u)),i===""?"auto":i}),c=kt||k,i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){var r=n.offsetWidth,t=n.offsetHeight;return r===0&&t===0||!i.support.reliableHiddenOffsets&&(n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});var or=/%20/g,sr=/\[\]$/,dt=/\r?\n/g,er=/#.*$/,fr=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,ur=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,pr=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,yr=/^(?:GET|HEAD)$/,kr=/^\/\//,fi=/\?/,cr=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,hr=/^(?:select|textarea)/i,bt=/\s+/,lr=/([?&])_=[^&]*/,vr=/(^|\-)([a-z])/g,ar=function(n,t,i){return t+i.toUpperCase()},ti=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ni=i.fn.load,ut={},di={},f,e;try{f=r.location.href}catch(af){f=r.createElement("a"),f.href="",f=f.href}e=ti.exec(f.toLowerCase())||[],i.fn.extend({load:function(n,r,u){var f,s,o,e;return typeof n!="string"&&ni?ni.apply(this,arguments):this.length?(f=n.indexOf(" "),f<0||(s=n.slice(f,n.length),n=n.slice(0,f)),o="GET",r&&(i.isFunction(r)?(u=r,r=t):typeof r=="object"&&(r=i.param(r,i.ajaxSettings.traditional),o="POST")),e=this,i.ajax({url:n,type:o,dataType:"html",data:r,complete:function(n,t,r){r=n.responseText,n.isResolved()&&(n.done(function(n){r=n}),e.html(s?i("<div>").append(r.replace(cr,"")).find(s):r)),u&&e.each(u,[r,t,n])}}),this):this},serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?i.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||hr.test(this.nodeName)||ur.test(this.type))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(dt,"\r\n")}}):{name:t.name,value:r.replace(dt,"\r\n")}}).get()}}),i.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(n,t){i.fn[t]=function(n){return this.bind(t,n)}}),i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({type:r,url:n,data:u,success:f,dataType:e})}}),i.extend({getScript:function(n,r){return i.get(n,t,r,"script")},getJSON:function(n,t,r){return i.get(n,t,r,"json")},ajaxSetup:function(n,t){t?i.extend(!0,n,i.ajaxSettings,t):(t=n,n=i.extend(!0,i.ajaxSettings,t));for(var r in{context:1,url:1})r in t?n[r]=t[r]:r in i.ajaxSettings&&(n[r]=i.ajaxSettings[r]);return n},ajaxSettings:{url:f,isLocal:pr.test(e[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":n.String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML}},ajaxPrefilter:ai(ut),ajaxTransport:ai(di),ajax:function(n,r){function b(n,r,e,l){if(o!==2){o=2,it&&clearTimeout(it),c=t,rt=l||"",f.readyState=n?4:0;var a,p,v,d=e?su(u,f,e):t,b,w;if(n>=200&&n<300||n===304){u.ifModified&&((b=f.getResponseHeader("Last-Modified"))&&(i.lastModified[s]=b),(w=f.getResponseHeader("Etag"))&&(i.etag[s]=w));if(n===304)r="notmodified",a=!0;else try{p=ou(u,d),r="success",a=!0}catch(g){r="parsererror",v=g}}else v=r,(!r||n)&&(r="error",n<0&&(n=0));f.status=n,f.statusText=r,a?tt.resolveWith(h,[p,r,f]):tt.rejectWith(h,[f,r,v]),f.statusCode(k),k=t,y&&nt.trigger("ajax"+(a?"Success":"Error"),[f,u,a?p:v]),ft.resolveWith(h,[f,r]),y&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop"))}}var g,d;typeof n=="object"&&(r=n,n=t),r=r||{};var u=i.ajaxSetup({},r),h=u.context||u,nt=h!==u&&(h.nodeType||h instanceof i)?i(h):i.event,tt=i.Deferred(),ft=i._Deferred(),k=u.statusCode||{},s,a={},rt,p,c,it,v,o=0,y,l,f={readyState:0,setRequestHeader:function(n,t){return o||(a[n.toLowerCase().replace(vr,ar)]=t),this},getAllResponseHeaders:function(){return o===2?rt:null},getResponseHeader:function(n){var i;if(o===2){if(!p){p={};while(i=fr.exec(rt))p[i[1].toLowerCase()]=i[2]}i=p[n.toLowerCase()]}return i===t?null:i},overrideMimeType:function(n){return o||(u.mimeType=n),this},abort:function(n){return n=n||"abort",c&&c.abort(n),b(0,n),this}};tt.promise(f),f.success=f.done,f.error=f.fail,f.complete=ft.done,f.statusCode=function(n){if(n){var t;if(o<2)for(t in n)k[t]=[k[t],n[t]];else t=n[f.status],f.then(t,t)}return this},u.url=((n||u.url)+"").replace(er,"").replace(kr,e[1]+"//"),u.dataTypes=i.trim(u.dataType||"*").toLowerCase().split(bt),u.crossDomain==null&&(v=ti.exec(u.url.toLowerCase()),u.crossDomain=v&&(v[1]!=e[1]||v[2]!=e[2]||(v[3]||(v[1]==="http:"?80:443))!=(e[3]||(e[1]==="http:"?80:443)))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),w(ut,u,r,f);if(o===2)return!1;y=u.global,u.type=u.type.toUpperCase(),u.hasContent=!yr.test(u.type),y&&i.active++==0&&i.event.trigger("ajaxStart"),u.hasContent||(u.data&&(u.url+=(fi.test(u.url)?"&":"?")+u.data),s=u.url,u.cache===!1&&(g=i.now(),d=u.url.replace(lr,"$1_="+g),u.url=d+(d===u.url?(fi.test(u.url)?"&":"?")+"_="+g:""))),(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&(a["Content-Type"]=u.contentType),u.ifModified&&(s=s||u.url,i.lastModified[s]&&(a["If-Modified-Since"]=i.lastModified[s]),i.etag[s]&&(a["If-None-Match"]=i.etag[s])),a.Accept=u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", */*; q=0.01":""):u.accepts["*"];for(l in u.headers)f.setRequestHeader(l,u.headers[l]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||o===2))return f.abort(),!1;for(l in{success:1,error:1,complete:1})f[l](u[l]);c=w(di,u,r,f);if(c){f.readyState=1,y&&nt.trigger("ajaxSend",[f,u]),u.async&&u.timeout>0&&(it=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1,c.send(a,b)}catch(et){status<2?b(-1,et):i.error(et)}}else b(-1,"No Transport");return f},param:function(n,r){var f=[],e=function(n,t){t=i.isFunction(t)?t():t,f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)},u;r===t&&(r=i.ajaxSettings.traditional);if(i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)lt(u,n[u],r,e);return f.join("&").replace(or,"+")}}),i.extend({active:0,lastModified:{},etag:{}}),ki=i.now(),l=/(\=)\?(&|$)|\?\?/i,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return i.expando+"_"+ki++}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var a=typeof t.data=="string";if(t.dataTypes[0]==="jsonp"||r.jsonpCallback||r.jsonp!=null||t.jsonp!==!1&&(l.test(t.url)||a&&l.test(t.data))){var o,f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,v=n[f],e=t.url,s=t.data,h="$1"+f+"$2",c=function(){n[f]=v,o&&i.isFunction(v)&&n[f](o[0])};return t.jsonp!==!1&&(e=e.replace(l,h),t.url===e&&(a&&(s=s.replace(l,h)),t.data===s&&(e+=(/\?/.test(e)?"&":"?")+t.jsonp+"="+f))),t.url=e,t.data=s,n[f]=function(n){o=[n]},u.then(c,c),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json","script"}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1),n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var i,u=r.head||r.getElementsByTagName("head")[0]||r.documentElement;return{send:function(f,e){i=r.createElement("script"),i.async="async",n.scriptCharset&&(i.charset=n.scriptCharset),i.src=n.url,i.onload=i.onreadystatechange=function(n,r){(!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,u&&i.parentNode&&u.removeChild(i),i=t,r||e(200,"success"))},u.insertBefore(i,u.firstChild)},abort:function(){i&&i.onload(0,1)}}}}),wi=i.now(),i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&tr()||hu()}:tr,v=i.ajaxSettings.xhr(),i.support.ajax=!!v,i.support.cors=v&&"withCredentials"in v,v=t,i.support.ajax&&i.ajaxTransport(function(n){if(!n.crossDomain||i.support.cors){var r;return{send:function(u,f){var e=n.xhr(),h,o;n.username?e.open(n.type,n.url,n.async,n.username,n.password):e.open(n.type,n.url,n.async);if(n.xhrFields)for(o in n.xhrFields)e[o]=n.xhrFields[o];n.mimeType&&e.overrideMimeType&&e.overrideMimeType(n.mimeType),!n.crossDomain&&!u["X-Requested-With"]&&(u["X-Requested-With"]="XMLHttpRequest");try{for(o in u)e.setRequestHeader(o,u[o])}catch(c){}e.send(n.hasContent&&n.data||null),r=function(u,o){var l,v,y,c,a;try{if(r&&(o||e.readyState===4)){r=t,h&&(e.onreadystatechange=i.noop,delete s[h]);if(o)e.readyState!==4&&e.abort();else{l=e.status,y=e.getAllResponseHeaders(),c={},a=e.responseXML,a&&a.documentElement&&(c.xml=a),c.text=e.responseText;try{v=e.statusText}catch(w){v=""}l||!n.isLocal||n.crossDomain?l===1223&&(l=204):l=c.text?200:404}}}catch(p){o||f(-1,p)}c&&f(l,v,c,y)},n.async&&e.readyState!==4?(s||(s={},cu()),h=wi++,e.onreadystatechange=s[h]=r):r()},abort:function(){r&&r(0,1)}}}});var ct={},br=/^(?:toggle|show|hide)$/,wr=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,b,yi=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];i.fn.extend({show:function(n,t,r){var u,e,f,s;if(n||n===0)return this.animate(o("show",3),n,t,r);for(f=0,s=this.length;f<s;f++)u=this[f],e=u.style.display,!i._data(u,"olddisplay")&&e==="none"&&(e=u.style.display=""),e===""&&i.css(u,"display")==="none"&&i._data(u,"olddisplay",ir(u.nodeName));for(f=0;f<s;f++)u=this[f],e=u.style.display,(e===""||e==="none")&&(u.style.display=i._data(u,"olddisplay")||"");return this},hide:function(n,t,r){var u,e,f;if(n||n===0)return this.animate(o("hide",3),n,t,r);for(u=0,e=this.length;u<e;u++)f=i.css(this[u],"display"),f!=="none"&&!i._data(this[u],"olddisplay")&&i._data(this[u],"olddisplay",f);for(u=0;u<e;u++)this[u].style.display="none";return this},_toggle:i.fn.toggle,toggle:function(n,t,r){var u=typeof n=="boolean";return i.isFunction(n)&&i.isFunction(t)?this._toggle.apply(this,arguments):n==null||u?this.each(function(){var t=u?n:i(this).is(":hidden");i(this)[t?"show":"hide"]()}):this.animate(o("toggle",3),n,t,r),this},fadeTo:function(n,t,i,r){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var f=i.speed(t,r,u);return i.isEmptyObject(n)?this.each(f.complete):this[f.queue===!1?"each":"queue"](function(){var r=i.extend({},f),t,h=this.nodeType===1,o=h&&i(this).is(":hidden"),e=this,u,s;for(t in n){u=i.camelCase(t),t!==u&&(n[u]=n[t],delete n[t],t=u);if(n[t]==="hide"&&o||n[t]==="show"&&!o)return r.complete.call(this);h&&(t==="height"||t==="width")&&(r.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],i.css(this,"display")==="inline"&&i.css(this,"float")==="none"&&(i.support.inlineBlockNeedsLayout?(s=ir(this.nodeName),s==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block")),i.isArray(n[t])&&((r.specialEasing=r.specialEasing||{})[t]=n[t][1],n[t]=n[t][0])}return r.overflow!=null&&(this.style.overflow="hidden"),r.curAnim=i.extend({},n),i.each(n,function(t,u){var l=new i.fx(e,r,t),h,f,s,c;br.test(u)?l[u==="toggle"?o?"show":"hide":u](n):(h=wr.exec(u),f=l.cur(),h?(s=parseFloat(h[2]),c=h[3]||(i.cssNumber[t]?"":"px"),c!=="px"&&(i.style(e,t,(s||1)+c),f=(s||1)/l.cur()*f,i.style(e,t,f+c)),h[1]&&(s=(h[1]==="-="?-1:1)*s+f),l.custom(f,s,c)):l.custom(f,u,""))}),!0})},stop:function(n,t){var r=i.timers;return n&&this.queue([]),this.each(function(){for(var n=r.length-1;n>=0;n--)r[n].elem===this&&(t&&r[n](!0),r.splice(n,1))}),t||this.dequeue(),this}}),i.each({slideDown:o("show",1),slideUp:o("hide",1),slideToggle:o("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}}),i.extend({speed:function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,u.old=u.complete,u.complete=function(){u.queue!==!1&&i(this).dequeue(),i.isFunction(u.old)&&u.old.call(this)},u},easing:{linear:function(n,t,i,r){return i+r*n},swing:function(n,t,i,r){return(-Math.cos(n*Math.PI)/2+.5)*r+i}},timers:[],fx:function(n,t,i){this.options=t,this.elem=n,this.prop=i,t.orig||(t.orig={})}}),i.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(i.fx.step[this.prop]||i.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var t,n=i.css(this.elem,this.prop);return isNaN(t=parseFloat(n))?!n||n==="auto"?0:n:t},custom:function(n,t,r){function u(n){return e.step(n)}var e=this,f=i.fx;this.startTime=i.now(),this.start=n,this.end=t,this.unit=r||this.unit||(i.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,u.elem=this.elem,u()&&i.timers.push(u)&&!b&&(b=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=i.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),i(this.elem).show()},hide:function(){this.options.orig[this.prop]=i.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(n){var s=i.now(),o=!0,c,h,e,r,t,u,f;if(n||s>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(c in this.options.curAnim)this.options.curAnim[c]!==!0&&(o=!1);if(o){this.options.overflow==null||i.support.shrinkWrapBlocks||(h=this.elem,e=this.options,i.each(["","X","Y"],function(n,t){h.style["overflow"+t]=e.overflow[n]})),this.options.hide&&i(this.elem).hide();if(this.options.hide||this.options.show)for(r in this.options.curAnim)i.style(this.elem,r,this.options.orig[r]);this.options.complete.call(this.elem)}return!1}return t=s-this.startTime,this.state=t/this.options.duration,u=this.options.specialEasing&&this.options.specialEasing[this.prop],f=this.options.easing||(i.easing.swing?"swing":"linear"),this.pos=i.easing[u||f](this.state,t,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update(),!0}},i.extend(i.fx,{tick:function(){for(var t=i.timers,n=0;n<t.length;n++)t[n]()||t.splice(n--,1);t.length||i.fx.stop()},interval:13,stop:function(){clearInterval(b),b=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(n){i.style(n.elem,"opacity",n.now)},_default:function(n){n.elem.style&&n.elem.style[n.prop]!=null?n.elem.style[n.prop]=(n.prop==="width"||n.prop==="height"?Math.max(0,n.now):n.now)+n.unit:n.elem[n.prop]=n.now}}}),i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length}),ci=/^t(?:able|d|h)$/i,yt=/^(?:body|html)$/i,i.fn.offset="getBoundingClientRect"in r.documentElement?function(n){var t=this[0],r,e,u;if(n)return this.each(function(t){i.offset.setOffset(this,n,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return i.offset.bodyOffset(t);try{r=t.getBoundingClientRect()}catch(y){}e=t.ownerDocument,u=e.documentElement;if(!r||!i.contains(u,t))return r?{top:r.top,left:r.left}:{top:0,left:0};var f=e.body,o=vt(e),l=u.clientTop||f.clientTop||0,a=u.clientLeft||f.clientLeft||0,v=o.pageYOffset||i.support.boxModel&&u.scrollTop||f.scrollTop,s=o.pageXOffset||i.support.boxModel&&u.scrollLeft||f.scrollLeft,h=r.top+v-l,c=r.left+s-a;return{top:h,left:c}}:function(n){var t=this[0];if(n)return this.each(function(t){i.offset.setOffset(this,n,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return i.offset.bodyOffset(t);i.offset.initialize();var f,h=t.offsetParent,a=t,l=t.ownerDocument,c=l.documentElement,o=l.body,s=l.defaultView,e=s?s.getComputedStyle(t,null):t.currentStyle,u=t.offsetTop,r=t.offsetLeft;while((t=t.parentNode)&&t!==o&&t!==c){if(i.offset.supportsFixedPosition&&e.position==="fixed")break;f=s?s.getComputedStyle(t,null):t.currentStyle,u-=t.scrollTop,r-=t.scrollLeft,t===h&&(u+=t.offsetTop,r+=t.offsetLeft,i.offset.doesNotAddBorder&&(!i.offset.doesAddBorderForTableAndCells||!ci.test(t.nodeName))&&(u+=parseFloat(f.borderTopWidth)||0,r+=parseFloat(f.borderLeftWidth)||0),a=h,h=t.offsetParent),i.offset.subtractsBorderForOverflowNotVisible&&f.overflow!=="visible"&&(u+=parseFloat(f.borderTopWidth)||0,r+=parseFloat(f.borderLeftWidth)||0),e=f}return(e.position==="relative"||e.position==="static")&&(u+=o.offsetTop,r+=o.offsetLeft),i.offset.supportsFixedPosition&&e.position==="fixed"&&(u+=Math.max(c.scrollTop,o.scrollTop),r+=Math.max(c.scrollLeft,o.scrollLeft)),{top:u,left:r}},i.offset={initialize:function(){var t=r.body,f=r.createElement("div"),u,n,h,e,s=parseFloat(i.css(t,"marginTop"))||0,o="<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>";i.extend(f.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),f.innerHTML=o,t.insertBefore(f,t.firstChild),u=f.firstChild,n=u.firstChild,e=u.nextSibling.firstChild.firstChild,this.doesNotAddBorder=n.offsetTop!==5,this.doesAddBorderForTableAndCells=e.offsetTop===5,n.style.position="fixed",n.style.top="20px",this.supportsFixedPosition=n.offsetTop===20||n.offsetTop===15,n.style.position=n.style.top="",u.style.overflow="hidden",u.style.position="relative",this.subtractsBorderForOverflowNotVisible=n.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=t.offsetTop!==s,t.removeChild(f),i.offset.initialize=i.noop},bodyOffset:function(n){var r=n.offsetTop,t=n.offsetLeft;return i.offset.initialize(),i.offset.doesNotIncludeMarginInBodyOffset&&(r+=parseFloat(i.css(n,"marginTop"))||0,t+=parseFloat(i.css(n,"marginLeft"))||0),{top:r,left:t}},setOffset:function(n,t,r){var o=i.css(n,"position");o==="static"&&(n.style.position="relative");var s=i(n),h=s.offset(),a=i.css(n,"top"),v=i.css(n,"left"),f=(o==="absolute"||o==="fixed")&&i.inArray("auto",[a,v])>-1,u={},e={},l,c;f&&(e=s.position()),l=f?e.top:parseInt(a,10)||0,c=f?e.left:parseInt(v,10)||0,i.isFunction(t)&&(t=t.call(n,r,h)),t.top!=null&&(u.top=t.top-h.top+l),t.left!=null&&(u.left=t.left-h.left+c),"using"in t?t.using.call(n,u):s.css(u)}},i.fn.extend({position:function(){if(!this[0])return null;var u=this[0],r=this.offsetParent(),n=this.offset(),t=yt.test(r[0].nodeName)?{top:0,left:0}:r.offset();return n.top-=parseFloat(i.css(u,"marginTop"))||0,n.left-=parseFloat(i.css(u,"marginLeft"))||0,t.top+=parseFloat(i.css(r[0],"borderTopWidth"))||0,t.left+=parseFloat(i.css(r[0],"borderLeftWidth"))||0,{top:n.top-t.top,left:n.left-t.left}},offsetParent:function(){return this.map(function(){var n=this.offsetParent||r.body;while(n&&!yt.test(n.nodeName)&&i.css(n,"position")==="static")n=n.offsetParent;return n})}}),i.each(["Left","Top"],function(n,r){var u="scroll"+r;i.fn[u]=function(r){var e=this[0],f;return e?r!==t?this.each(function(){f=vt(this),f?f.scrollTo(n?i(f).scrollLeft():r,n?r:i(f).scrollTop()):this[u]=r}):(f=vt(e),f?"pageXOffset"in f?f[n?"pageYOffset":"pageXOffset"]:i.support.boxModel&&f.document.documentElement[u]||f.document.body[u]:e[u]):null}}),i.each(["Height","Width"],function(n,r){var u=r.toLowerCase();i.fn["inner"+r]=function(){return this[0]?parseFloat(i.css(this[0],u,"padding")):null},i.fn["outer"+r]=function(n){return this[0]?parseFloat(i.css(this[0],u,n?"margin":"border")):null},i.fn[u]=function(n){var f=this[0],s,o,e;return f?i.isFunction(n)?this.each(function(t){var r=i(this);r[u](n.call(this,t,r[u]()))}):i.isWindow(f)?(s=f.document.documentElement["client"+r],f.document.compatMode==="CSS1Compat"&&s||f.document.body["client"+r]||s):f.nodeType===9?Math.max(f.documentElement["client"+r],f.body["scroll"+r],f.documentElement["scroll"+r],f.body["offset"+r],f.documentElement["offset"+r]):n===t?(o=i.css(f,u),e=parseFloat(o),i.isNaN(e)?o:e):this.css(u,typeof n=="string"?n:n+"px"):n==null?null:this}}),n.jQuery=n.$=i})(window),BlogEngine={$:function(n){return document.getElementById(n)},setFlag:function(n){BlogEngine.comments.flagImage.src=n.length>0?BlogEngineRes.webRoot+"pics/flags/"+n+".png":BlogEngineRes.webRoot+"pics/pixel.gif"},showCommentPreview:function(){var t=this.$("preview"),n=this.$("compose"),i;t&&(t.className="selected"),n&&(n.className=""),this.$("commentCompose").style.display="none",this.$("commentPreview").style.display="block",this.$("commentPreview").innerHTML='<img src="'+BlogEngineRes.webRoot+'pics/ajax-loader.gif" width="24" height="24" alt="Loading" />',i=this.$("commentPreview").innerHTML,this.addComment(!0)},composeComment:function(){var t=this.$("preview"),n=this.$("compose");t&&(t.className=""),n&&(n.className="selected"),this.$("commentPreview").style.display="none",this.$("commentCompose").style.display="block"},endShowPreview:function(n){BlogEngine.$("commentPreview").innerHTML=n},toggleCommentSavingIndicators:function(n){BlogEngine.$("btnSaveAjax").disabled=n,BlogEngine.$("ajaxLoader").style.display=n?"inline":"none",BlogEngine.$("status").className="",BlogEngine.$("status").innerHTML="",n||(BlogEngine.$("commentPreview").innerHTML="",BlogEngine.composeComment())},onCommentError:function(n){BlogEngine.toggleCommentSavingIndicators(!1),n=n||"Unknown error occurred.";var i=n.indexOf("|");if(i>0){n=n.substr(0,i);while(n.length>0&&n.substr(n.length-1,1).match(/\d/))n=n.substr(0,n.length-1)}document.getElementById("recaptcha_response_field")&&Recaptcha.reload(),document.getElementById("spnSimpleCaptchaIncorrect")&&(document.getElementById("spnSimpleCaptchaIncorrect").style.display="none"),alert("Sorry, the following error occurred while processing your comment:\n\n"+n)},addComment:function(n){var t=n==!0;t||(BlogEngine.toggleCommentSavingIndicators(!0),this.$("status").innerHTML=BlogEngineRes.i18n.savingTheComment);var o=BlogEngine.comments.nameBox.value,h=BlogEngine.comments.emailBox.value,s=BlogEngine.comments.contentBox.value,w=BlogEngine.comments.captchaField.value,c=BlogEngine.comments.websiteBox?BlogEngine.comments.websiteBox.value:"",r=BlogEngine.comments.countryDropDown?BlogEngine.comments.countryDropDown.value:"",p=BlogEngine.$("cbNotify")?BlogEngine.$("cbNotify").checked:!1,b=BlogEngine.comments.replyToId?BlogEngine.comments.replyToId.value:"",u=document.getElementById("recaptcha_response_field"),d=u?u.value:"",e=document.getElementById("recaptcha_challenge_field"),k=e?e.value:"",f=document.getElementById("simpleCaptchaValue"),l=f?f.value:"",i=BlogEngine.$("avatarImgSrc"),y=i&&i.value?i.value:"",v=t?BlogEngine.endShowPreview:BlogEngine.appendComment,a=o+"-|-"+h+"-|-"+c+"-|-"+r+"-|-"+s+"-|-"+p+"-|-"+t+"-|-"+w+"-|-"+b+"-|-"+y+"-|-"+d+"-|-"+k+"-|-"+l;WebForm_DoCallback(BlogEngine.comments.controlId,a,v,"comment",BlogEngine.onCommentError,!1),t||typeof OnComment=="undefined"||OnComment(o,h,c,r,s)},cancelReply:function(){this.replyToComment("")},replyToComment:function(n){var i,r,u,t;BlogEngine.comments.replyToId.value=n,i=BlogEngine.$("comment-form"),n&&n!=""&&n!=null&&n!="00000000-0000-0000-0000-000000000000"?(BlogEngine.$("cancelReply").style.display="",u=BlogEngine.$("id_"+n),t=BlogEngine.$("replies_"+n),t==null&&(t=document.createElement("div"),t.className="comment-replies",t.id="replies_"+n,u.appendChild(t)),t.style.display="",t.appendChild(i)):(r=BlogEngine.$("commentlist"),r.appendChild(i),BlogEngine.$("cancelReply").style.display="none"),BlogEngine.comments.nameBox.focus()},appendComment:function(n,t){var i,r,f,u;t=="comment"&&(document.getElementById("recaptcha_response_field")&&Recaptcha.reload(),document.getElementById("spnSimpleCaptchaIncorrect")&&(document.getElementById("spnSimpleCaptchaIncorrect").style.display="none"),n=="RecaptchaIncorrect"||n=="SimpleCaptchaIncorrect"?(document.getElementById("spnCaptchaIncorrect")&&(document.getElementById("spnCaptchaIncorrect").style.display=""),document.getElementById("spnSimpleCaptchaIncorrect")&&(document.getElementById("spnSimpleCaptchaIncorrect").style.display=""),BlogEngine.toggleCommentSavingIndicators(!1)):(document.getElementById("spnCaptchaIncorrect")&&(document.getElementById("spnCaptchaIncorrect").style.display="none"),document.getElementById("spnSimpleCaptchaIncorrect")&&(document.getElementById("spnSimpleCaptchaIncorrect").style.display="none"),i=BlogEngine.$("commentlist"),i.innerHTML.length<10&&(i.innerHTML="<h1 id='comment'>"+BlogEngineRes.i18n.comments+"</h1>"),r=BlogEngine.comments.replyToId?BlogEngine.comments.replyToId.value:"",r!=""?(f=BlogEngine.$("replies_"+r),f.innerHTML+=n):(i.innerHTML+=n,i.style.display="block"),BlogEngine.comments.contentBox.value="",BlogEngine.comments.contentBox=BlogEngine.$(BlogEngine.comments.contentBox.id),BlogEngine.toggleCommentSavingIndicators(!1),BlogEngine.$("status").className="success",BlogEngine.$("status").innerHTML=BlogEngine.comments.moderation?BlogEngineRes.i18n.commentWaitingModeration:BlogEngineRes.i18n.commentWasSaved,u=BlogEngine.$("comment-form"),i.appendChild(u),BlogEngine.comments.replyToId&&(BlogEngine.comments.replyToId.value=""),BlogEngine.$("cancelReply")&&(BlogEngine.$("cancelReply").style.display="none"))),BlogEngine.$("btnSaveAjax").disabled=!1},validateAndSubmitCommentForm:function(){var u=Page_ClientValidate("AddComment"),r=BlogEngine.comments.nameBox.value.length>0,n,t,i;return document.getElementById("spnNameRequired").style.display=r?"none":"",n=!0,BlogEngine.comments.checkName&&(t=BlogEngine.comments.postAuthor,i=BlogEngine.comments.nameBox.value,n=!this.equal(t,i)),document.getElementById("spnChooseOtherName").style.display=n?"none":"",u&&r&&n?(BlogEngine.addComment(),!0):!1},addBbCode:function(n){var t,r,i;try{t=BlogEngine.comments.contentBox;if(t.selectionStart){var u=t.value.substring(0,t.selectionStart),f=t.value.substr(t.selectionEnd),i=t.value.substring(t.selectionStart,t.selectionEnd);t.value=u+"["+n+"]"+i+"[/"+n+"]"+f,t.focus()}else document.selection&&document.selection.createRange&&(r=document.selection.createRange().text,t.focus(),i=document.selection.createRange(),i.text="["+n+"]"+r+"[/"+n+"]")}catch(e){}return},search:function(n){var r=this.$("searchfield"),t=this.$("searchcomments"),i="search.aspx?q="+encodeURIComponent(r.value);return t!=null&&t.checked&&(i+="&comment=true"),top.location.href=n+i,!1},searchClear:function(n){var t=this.$("searchfield");t.value==n?t.value="":t.value==""&&(t.value=n)},rate:function(n,t,i){this.createCallback("rating.axd?id="+t+"&rating="+i,BlogEngine.ratingCallback,n)},ratingCallback:function(n){var i=n.substring(0,1),t=n.substring(1);t=="OK"?(typeof OnRating!="undefined"&&OnRating(i),alert(BlogEngineRes.i18n.ratingHasBeenRegistered)):t=="HASRATED"?alert(BlogEngineRes.i18n.hasRated):alert("An error occured while registering your rating. Please try again")},createCallback:function(n,t,i){var r=BlogEngine.getHttpObject();r.open("GET",n,!0),i&&r.setRequestHeader&&r.setRequestHeader("x-blog-instance",i.toString()),r.onreadystatechange=function(){r.readyState==4&&r.responseText.length>0&&t!=null&&t(r.responseText)},r.send(null)},getHttpObject:function(){if(typeof XMLHttpRequest!="undefined")return new XMLHttpRequest;try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(n){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(n){}}return!1},updateCalendar:function(n,t){var i=BlogEngine.$("calendarContainer");i.innerHTML=n,BlogEngine.Calendar.months[t]=n},toggleMonth:function(n){var u=BlogEngine.$("monthList"),t=u.getElementsByTagName("ul"),r;for(i=0;i<t.length;i++)if(t[i].id==n){r=t[i].className=="open"?"":"open",t[i].className=r;break}},equal:function(n,t){var r=n.toLowerCase().replace(new RegExp(" ","gi"),""),i=t.toLowerCase().replace(new RegExp(" ","gi"),"");return r==i},xfnRelationships:["friend","acquaintance","contact","met","co-worker","colleague","co-resident","neighbor","child","parent","sibling","spouse","kin","muse","crush","date","sweetheart","me"],hightLightXfn:function(){var u=BlogEngine.$("content"),r,t,n;if(u==null)return;for(r=u.getElementsByTagName("a"),i=0;i<r.length;i++){t=r[i],n=t.getAttribute("rel");if(n&&n!="nofollow")for(j=0;j<BlogEngine.xfnRelationships.length;j++)if(n.indexOf(BlogEngine.xfnRelationships[j])>-1){t.title="XFN relationship: "+n;break}}},showRating:function(n,t,i,r,u){var h=document.createElement("div"),c,s,o,f,l,e;for(h.className="rating",c=document.createElement("p"),h.appendChild(c),c.innerHTML=i==0?BlogEngineRes.i18n.beTheFirstToRate:BlogEngineRes.i18n.currentlyRated.replace("{0}",new Number(r).toFixed(1)).replace("{1}",i),s=document.createElement("ul"),s.className="star-rating small-star",h.appendChild(s),o=document.createElement("li"),o.className="current-rating",o.style.width=Math.round(r*20)+"%",o.innerHTML="Currently "+r+"/5 Stars.",s.appendChild(o),f=1;f<=5;f++)l=document.createElement("li"),e=document.createElement("a"),e.innerHTML=f,e.href="rate/"+f,e.className=this.englishNumber(f),e.title=BlogEngineRes.i18n.rateThisXStars.replace("{0}",f.toString()).replace("{1}",f==1?"":"s"),e.onclick=function(){return BlogEngine.rate(u,t,this.innerHTML),!1},l.appendChild(e),s.appendChild(l);n.innerHTML="",n.appendChild(h),n.style.visibility="visible"},applyRatings:function(){for(var i=document.getElementsByTagName("div"),t,n=0;n<i.length;n++)i[n].className=="ratingcontainer"&&(t=i[n].innerHTML.split("|"),BlogEngine.showRating(i[n],t[0],t[1],t[2],t[3]))},englishNumber:function(n){return n==1?"one-star":n==2?"two-stars":n==3?"three-stars":n==4?"four-stars":"five-stars"},addLoadEvent:function(n){var t=window.onload;window.onload=typeof window.onload!="function"?n:function(){t(),n()}},filterByAPML:function(){var s=document.documentElement.clientWidth+document.documentElement.scrollLeft,h=document.documentElement.clientHeight+document.documentElement.scrollTop,t,n,e,r,i,f,o,u;document.body.style.position="static",t=document.createElement("div"),t.style.zIndex=2,t.id="layer",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.height=document.documentElement.scrollHeight+"px",t.style.width=s+"px",t.style.backgroundColor="black",t.style.opacity=".6",t.style.filter+="progid:DXImageTransform.Microsoft.Alpha(opacity=60)",document.body.appendChild(t),n=document.createElement("div"),n.style.zIndex=3,n.id="apmlfilter",n.style.position=navigator.userAgent.indexOf("MSIE 6")>-1?"absolute":"fixed",n.style.top="200px",n.style.left=s/2-200+"px",n.style.height="50px",n.style.width="400px",n.style.backgroundColor="white",n.style.border="2px solid silver",n.style.padding="20px",document.body.appendChild(n),e=document.createElement("p"),e.innerHTML=BlogEngineRes.i18n.apmlDescription,e.style.margin="0px",n.appendChild(e),r=document.createElement("form"),r.method="get",r.style.display="inline",r.action=BlogEngineRes.webRoot,n.appendChild(r),i=document.createElement("input"),i.type="text",i.value=BlogEngine.getCookieValue("url")||"http://",i.style.width="320px",i.id="txtapml",i.name="apml",i.style.background="url("+BlogEngineRes.webRoot+"pics/apml.png) no-repeat 2px center",i.style.paddingLeft="16px",r.appendChild(i),i.focus(),f=document.createElement("input"),f.type="submit",f.value=BlogEngineRes.i18n.filter,f.onclick=function(){location.href=BlogEngineRes.webRoot+"?apml="+encodeURIComponent(BlogEngine.$("txtapml").value)},r.appendChild(f),o=document.createElement("br"),n.appendChild(o),u=document.createElement("a"),u.innerHTML=BlogEngineRes.i18n.cancel,u.href="javascript:void(0)",u.onclick=function(){document.body.removeChild(BlogEngine.$("layer")),document.body.removeChild(BlogEngine.$("apmlfilter")),document.body.style.position=""},n.appendChild(u)},getCookieValue:function(n){var i=new String(document.cookie),t,r;if(i!=null&&i.indexOf("comment=")>-1){t=i.indexOf(n+"=")+n.length+1,r=i.indexOf("&",t);if(r>t&&t>-1)return i.substring(t,r)}return null},test:function(){alert("test")},comments:{flagImage:null,contentBox:null,moderation:null,checkName:null,postAuthor:null,nameBox:null,emailBox:null,websiteBox:null,countryDropDown:null,captchaField:null,controlId:null,replyToId:null}},BlogEngine.addLoadEvent(BlogEngine.hightLightXfn),typeof $=="undefined"&&(window.$=BlogEngine.$),typeof setupBlogEngineCalendar!="undefined"&&BlogEngine.addLoadEvent(setupBlogEngineCalendar),BlogEngine.addLoadEvent(BlogEngine.applyRatings)