(function(){function g(n,t){t.src?jQuery.ajax({url:t.src,async:!1,dataType:"script"}):jQuery.globalEval(t.text||t.textContent||t.innerHTML||""),t.parentNode&&t.parentNode.removeChild(t)}function r(){return+new Date}function t(n,t){return n[0]&&parseInt(jQuery.curCSS(n[0],t,!0),10)||0}function l(){if(s)return;s=!0,document.addEventListener&&!jQuery.browser.opera&&document.addEventListener("DOMContentLoaded",jQuery.ready,!1),jQuery.browser.msie&&window==top&&(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left")}catch(n){setTimeout(arguments.callee,0);return}jQuery.ready()})(),jQuery.browser.opera&&document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].disabled){setTimeout(arguments.callee,0);return}jQuery.ready()},!1);if(jQuery.browser.safari){var t;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return}t===n&&(t=jQuery("style, link[rel=stylesheet]").length);if(document.styleSheets.length!=t){setTimeout(arguments.callee,0);return}jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}var p=window.jQuery,w=window.$,jQuery=window.jQuery=window.$=function(n,t){return new jQuery.fn.init(n,t)},y=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,c=/^.[^:#\[\.]*$/,n,userAgent,f,s,h,a,u;jQuery.fn=jQuery.prototype={init:function(n,t){var i,r;n=n||document;if(n.nodeType)return this[0]=n,this.length=1,this;if(typeof n=="string"){i=y.exec(n);if(i&&(i[1]||!t))if(i[1])n=jQuery.clean([i[1]],t);else{r=document.getElementById(i[3]);if(r)return r.id!=i[3]?jQuery().find(n):jQuery(r);n=[]}else return jQuery(t).find(n)}else if(jQuery.isFunction(n))return jQuery(document)[jQuery.fn.ready?"ready":"load"](n);return this.setArray(jQuery.makeArray(n))},jquery:"1.2.6",size:function(){return this.length},length:0,get:function(t){return t==n?jQuery.makeArray(this):this[t]},pushStack:function(n){var t=jQuery(n);return t.prevObject=this,t},setArray:function(n){return this.length=0,Array.prototype.push.apply(this,n),this},each:function(n,t){return jQuery.each(this,n,t)},index:function(n){var t=-1;return jQuery.inArray(n&&n.jquery?n[0]:n,this)},attr:function(t,i,r){var u=t;if(t.constructor==String){if(i===n)return this[0]&&jQuery[r||"attr"](this[0],t);u={},u[t]=i}return this.each(function(n){for(t in u)jQuery.attr(r?this.style:this,t,jQuery.prop(this,u[t],r,n,t))})},css:function(t,i){return(t=="width"||t=="height")&&parseFloat(i)<0&&(i=n),this.attr(t,i,"curCSS")},text:function(n){if(typeof n!="object"&&n!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(n));var t="";return jQuery.each(n||this,function(){jQuery.each(this.childNodes,function(){this.nodeType!=8&&(t+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]))})}),t},wrapAll:function(n){return this[0]&&jQuery(n,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var n=this;while(n.firstChild)n=n.firstChild;return n}).append(this),this},wrapInner:function(n){return this.each(function(){jQuery(this).contents().wrapAll(n)})},wrap:function(n){return this.each(function(){jQuery(this).wrapAll(n)})},append:function(){return this.domManip(arguments,!0,!1,function(n){this.nodeType==1&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,!0,function(n){this.nodeType==1&&this.insertBefore(n,this.firstChild)})},before:function(){return this.domManip(arguments,!1,!1,function(n){this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,!1,!0,function(n){this.parentNode.insertBefore(n,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(n){var t=jQuery.map(this,function(t){return jQuery.find(n,t)});return this.pushStack(/[^+>] [^+>]/.test(n)||n.indexOf("..")>-1?jQuery.unique(t):t)},clone:function(t){var r=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var t=this.cloneNode(!0),n=document.createElement("div");return n.appendChild(t),jQuery.clean([n.innerHTML])[0]}return this.cloneNode(!0)}),u=r.find("*").andSelf().each(function(){this[i]!=n&&(this[i]=null)});return t===!0&&this.find("*").andSelf().each(function(n){var i,t,r;if(this.nodeType==3)return;i=jQuery.data(this,"events");for(t in i)for(r in i[t])jQuery.event.add(u[n],t,i[t][r],i[t][r].data)}),r},filter:function(n){return this.pushStack(jQuery.isFunction(n)&&jQuery.grep(this,function(t,i){return n.call(t,i)})||jQuery.multiFilter(n,this))},not:function(t){if(t.constructor==String){if(c.test(t))return this.pushStack(jQuery.multiFilter(t,this,!0));t=jQuery.multiFilter(t,this)}var i=t.length&&t[t.length-1]!==n&&!t.nodeType;return this.filter(function(){return i?jQuery.inArray(this,t)<0:this!=t})},add:function(n){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof n=="string"?jQuery(n):jQuery.makeArray(n))))},is:function(n){return!!n&&jQuery.multiFilter(n,this).length>0},hasClass:function(n){return this.is("."+n)},val:function(t){var r,u,s,i;if(t==n){if(this.length){r=this[0];if(jQuery.nodeName(r,"select")){var e=r.selectedIndex,h=[],o=r.options,f=r.type=="select-one";if(e<0)return null;for(u=f?e:0,s=f?e+1:o.length;u<s;u++){i=o[u];if(i.selected){t=jQuery.browser.msie&&!i.attributes.value.specified?i.text:i.value;if(f)return t;h.push(t)}}return h}return(this[0].value||"").replace(/\r/g,"")}return n}return t.constructor==Number&&(t+=""),this.each(function(){if(this.nodeType!=1)return;if(t.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=jQuery.inArray(this.value,t)>=0||jQuery.inArray(this.name,t)>=0;else if(jQuery.nodeName(this,"select")){var n=jQuery.makeArray(t);jQuery("option",this).each(function(){this.selected=jQuery.inArray(this.value,n)>=0||jQuery.inArray(this.text,n)>=0}),n.length||(this.selectedIndex=-1)}else this.value=t})},html:function(t){return t==n?this[0]?this[0].innerHTML:null:this.empty().append(t)},replaceWith:function(n){return this.after(n).remove()},eq:function(n){return this.slice(n,n+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(n){return this.pushStack(jQuery.map(this,function(t,i){return n.call(t,i,t)}))},andSelf:function(){return this.add(this.prevObject)},data:function(t,i){var r=t.split("."),u;return r[1]=r[1]?"."+r[1]:"",i===n?(u=this.triggerHandler("getData"+r[1]+"!",[r[0]]),u===n&&this.length&&(u=jQuery.data(this[0],t)),u===n&&r[1]?this.data(r[0]):u):this.trigger("setData"+r[1]+"!",[r[0],i]).each(function(){jQuery.data(this,t,i)})},removeData:function(n){return this.each(function(){jQuery.removeData(this,n)})},domManip:function(n,t,i,r){var f=this.length>1,u;return this.each(function(){var o,e;u||(u=jQuery.clean(n,this.ownerDocument),i&&u.reverse()),o=this,t&&jQuery.nodeName(this,"table")&&jQuery.nodeName(u[0],"tr")&&(o=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"))),e=jQuery([]),jQuery.each(u,function(){var n=f?jQuery(this).clone(!0)[0]:this;jQuery.nodeName(n,"script")?e=e.add(n):(n.nodeType==1&&(e=e.add(jQuery("script",n).remove())),r.call(o,n))}),e.each(g)})}},jQuery.fn.init.prototype=jQuery.fn,jQuery.extend=jQuery.fn.extend=function(){var t=arguments[0]||{},r=1,o=arguments.length,f=!1,e,u,s,i;for(t.constructor==Boolean&&(f=t,t=arguments[1]||{},r=2),typeof t!="object"&&typeof t!="function"&&(t={}),o==r&&(t=this,--r);r<o;r++)if((e=arguments[r])!=null)for(u in e){s=t[u],i=e[u];if(t===i)continue;f&&i&&typeof i=="object"&&!i.nodeType?t[u]=jQuery.extend(f,s||(i.length!=null?[]:{}),i):i!==n&&(t[u]=i)}return t};var i="jQuery"+r(),k=0,v={},d=/z-?index|font-?weight|opacity|zoom|line-?height/i,o=document.defaultView||{};jQuery.extend({noConflict:function(n){return window.$=w,n&&(window.jQuery=p),jQuery},isFunction:function(n){return!!n&&typeof n!="string"&&!n.nodeName&&n.constructor!=Array&&/^[\s[]?function/.test(n+"")},isXMLDoc:function(n){return n.documentElement&&!n.body||n.tagName&&n.ownerDocument&&!n.ownerDocument.body},globalEval:function(n){n=jQuery.trim(n);if(n){var i=document.getElementsByTagName("head")[0]||document.documentElement,t=document.createElement("script");t.type="text/javascript",jQuery.browser.msie?t.text=n:t.appendChild(document.createTextNode(n)),i.insertBefore(t,i.firstChild),i.removeChild(t)}},nodeName:function(n,t){return n.nodeName&&n.nodeName.toUpperCase()==t.toUpperCase()},cache:{},data:function(t,r,u){t=t==window?v:t;var f=t[i];return f||(f=t[i]=++k),r&&!jQuery.cache[f]&&(jQuery.cache[f]={}),u!==n&&(jQuery.cache[f][r]=u),r?jQuery.cache[f][r]:f},removeData:function(n,t){n=n==window?v:n;var r=n[i];if(t){if(jQuery.cache[r]){delete jQuery.cache[r][t],t="";for(t in jQuery.cache[r])break;t||jQuery.removeData(n)}}else{try{delete n[i]}catch(u){n.removeAttribute&&n.removeAttribute(i)}delete jQuery.cache[r]}},each:function(t,i,r){var u,f=0,o=t.length,e;if(r){if(o==n){for(u in t)if(i.apply(t[u],r)===!1)break}else for(;f<o;)if(i.apply(t[f++],r)===!1)break}else if(o==n){for(u in t)if(i.call(t[u],u,t[u])===!1)break}else for(e=t[0];f<o&&i.call(e,f,e)!==!1;e=t[++f]);return t},prop:function(n,t,i,r,u){return jQuery.isFunction(t)&&(t=t.call(n,r)),t&&t.constructor==Number&&i=="curCSS"&&!d.test(u)?t+"px":t},className:{add:function(n,t){jQuery.each((t||"").split(/\s+/),function(t,i){n.nodeType!=1||jQuery.className.has(n.className,i)||(n.className+=(n.className?" ":"")+i)})},remove:function(t,i){t.nodeType==1&&(t.className=i!=n?jQuery.grep(t.className.split(/\s+/),function(n){return!jQuery.className.has(i,n)}).join(" "):"")},has:function(n,t){return jQuery.inArray(t,(n.className||n).toString().split(/\s+/))>-1}},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]},css:function(n,t,i){if(t=="width"||t=="height"){var r,f={position:"absolute",visibility:"hidden",display:"block"},e=t=="width"?["Left","Right"]:["Top","Bottom"];function u(){r=t=="width"?n.offsetWidth:n.offsetHeight;var u=0,i=0;jQuery.each(e,function(){u+=parseFloat(jQuery.curCSS(n,"padding"+this,!0))||0,i+=parseFloat(jQuery.curCSS(n,"border"+this+"Width",!0))||0}),r-=Math.round(u+i)}return jQuery(n).is(":visible")?u():jQuery.swap(n,f,u),Math.max(0,r)}return jQuery.curCSS(n,t,i)},curCSS:function(n,t,i){function a(n){if(!jQuery.browser.safari)return!1;var t=o.getComputedStyle(n,null);return!t||t.getPropertyValue("color")==""}var r,e=n.style,p,l,w,v,y;if(t=="opacity"&&jQuery.browser.msie)return r=jQuery.attr(e,"opacity"),r==""?"1":r;jQuery.browser.opera&&t=="display"&&(p=e.outline,e.outline="0 solid black",e.outline=p),t.match(/float/i)&&(t=f);if(!i&&e&&e[t])r=e[t];else if(o.getComputedStyle){t.match(/float/i)&&(t="float"),t=t.replace(/([A-Z])/g,"-$1").toLowerCase(),l=o.getComputedStyle(n,null);if(l&&!a(n))r=l.getPropertyValue(t);else{for(var c=[],s=[],h=n,u=0;h&&a(h);h=h.parentNode)s.unshift(h);for(;u<s.length;u++)a(s[u])&&(c[u]=s[u].style.display,s[u].style.display="block");for(r=t=="display"&&c[s.length-1]!=null?"none":l&&l.getPropertyValue(t)||"",u=0;u<c.length;u++)c[u]!=null&&(s[u].style.display=c[u])}t=="opacity"&&r==""&&(r="1")}else n.currentStyle&&(w=t.replace(/\-(\w)/g,function(n,t){return t.toUpperCase()}),r=n.currentStyle[t]||n.currentStyle[w],!/^\d+(px)?$/i.test(r)&&/^\d/.test(r)&&(v=e.left,y=n.runtimeStyle.left,n.runtimeStyle.left=n.currentStyle.left,e.left=r||0,r=e.pixelLeft+"px",e.left=v,n.runtimeStyle.left=y));return r},clean:function(t,i){var r=[];return i=i||document,typeof i.createElement=="undefined"&&(i=i.ownerDocument||i[0]&&i[0].ownerDocument||document),jQuery.each(t,function(t,u){var s,o;if(!u)return;u.constructor==Number&&(u+="");if(typeof u=="string"){u=u.replace(/(<(\w+)[^>]*?)\/>/g,function(n,t,i){return i.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?n:t+"></"+i+">"});var f=jQuery.trim(u).toLowerCase(),e=i.createElement("div"),h=!f.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!f.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||f.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!f.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!f.indexOf("<td")||!f.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!f.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];e.innerHTML=h[1]+u+h[2];while(h[0]--)e=e.lastChild;if(jQuery.browser.msie){for(s=!f.indexOf("<table")&&f.indexOf("<tbody")<0?e.firstChild&&e.firstChild.childNodes:h[1]=="<table>"&&f.indexOf("<tbody")<0?e.childNodes:[],o=s.length-1;o>=0;--o)jQuery.nodeName(s[o],"tbody")&&!s[o].childNodes.length&&s[o].parentNode.removeChild(s[o]);/^\s/.test(u)&&e.insertBefore(i.createTextNode(u.match(/^\s*/)[0]),e.firstChild)}u=jQuery.makeArray(e.childNodes)}if(u.length===0&&!jQuery.nodeName(u,"form")&&!jQuery.nodeName(u,"select"))return;u[0]==n||jQuery.nodeName(u,"form")||u.options?r.push(u):r=jQuery.merge(r,u)}),r},attr:function(t,i,r){var o,e;if(!t||t.nodeType==3||t.nodeType==8)return n;var f=!jQuery.isXMLDoc(t),u=r!==n,s=jQuery.browser.msie;i=f&&jQuery.props[i]||i;if(t.tagName){o=/href|src|style/.test(i),i=="selected"&&jQuery.browser.safari&&t.parentNode.selectedIndex;if(i in t&&f&&!o){if(u){if(i=="type"&&jQuery.nodeName(t,"input")&&t.parentNode)throw"type property can't be changed";t[i]=r}return jQuery.nodeName(t,"form")&&t.getAttributeNode(i)?t.getAttributeNode(i).nodeValue:t[i]}return s&&f&&i=="style"?jQuery.attr(t.style,"cssText",r):(u&&t.setAttribute(i,""+r),e=s&&f&&o?t.getAttribute(i,2):t.getAttribute(i),e===null?n:e)}return s&&i=="opacity"?(u&&(t.zoom=1,t.filter=(t.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(r)+""=="NaN"?"":"alpha(opacity="+r*100+")")),t.filter&&t.filter.indexOf("opacity=")>=0?parseFloat(t.filter.match(/opacity=([^)]*)/)[1])/100+"":""):(i=i.replace(/-([a-z])/ig,function(n,t){return t.toUpperCase()}),u&&(t[i]=r),t[i])},trim:function(n){return(n||"").replace(/^\s+|\s+$/g,"")},makeArray:function(n){var i=[],t;if(n!=null){t=n.length;if(t==null||n.split||n.setInterval||n.call)i[0]=n;else while(t)i[--t]=n[t]}return i},inArray:function(n,t){for(var i=0,r=t.length;i<r;i++)if(t[i]===n)return i;return-1},merge:function(n,t){var u=0,i,r=n.length;if(jQuery.browser.msie)while(i=t[u++])i.nodeType!=8&&(n[r++]=i);else while(i=t[u++])n[r++]=i;return n},unique:function(n){var i=[],f={},t,u,r;try{for(t=0,u=n.length;t<u;t++)r=jQuery.data(n[t]),f[r]||(f[r]=!0,i.push(n[t]))}catch(e){i=n}return i},grep:function(n,t,i){for(var f=[],r=0,u=n.length;r<u;r++)!i!=!t(n[r],r)&&f.push(n[r]);return f},map:function(n,t){for(var r=[],u,i=0,f=n.length;i<f;i++)u=t(n[i],i),u!=null&&(r[r.length]=u);return r.concat.apply([],r)}}),userAgent=navigator.userAgent.toLowerCase(),jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)},f=jQuery.browser.msie?"styleFloat":"cssFloat",jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className",float:f,cssFloat:f,styleFloat:f,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}}),jQuery.each({parent:function(n){return n.parentNode},parents:function(n){return jQuery.dir(n,"parentNode")},next:function(n){return jQuery.nth(n,2,"nextSibling")},prev:function(n){return jQuery.nth(n,2,"previousSibling")},nextAll:function(n){return jQuery.dir(n,"nextSibling")},prevAll:function(n){return jQuery.dir(n,"previousSibling")},siblings:function(n){return jQuery.sibling(n.parentNode.firstChild,n)},children:function(n){return jQuery.sibling(n.firstChild)},contents:function(n){return jQuery.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:jQuery.makeArray(n.childNodes)}},function(n,t){jQuery.fn[n]=function(n){var i=jQuery.map(this,t);return n&&typeof n=="string"&&(i=jQuery.multiFilter(n,i)),this.pushStack(jQuery.unique(i))}}),jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){jQuery.fn[n]=function(){var n=arguments;return this.each(function(){for(var i=0,r=n.length;i<r;i++)jQuery(n[i])[t](this)})}}),jQuery.each({removeAttr:function(n){jQuery.attr(this,n,""),this.nodeType==1&&this.removeAttribute(n)},addClass:function(n){jQuery.className.add(this,n)},removeClass:function(n){jQuery.className.remove(this,n)},toggleClass:function(n){jQuery.className[jQuery.className.has(this,n)?"remove":"add"](this,n)},remove:function(n){(!n||jQuery.filter(n,[this]).r.length)&&(jQuery("*",this).add(this).each(function(){jQuery.event.remove(this),jQuery.removeData(this)}),this.parentNode&&this.parentNode.removeChild(this))},empty:function(){jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild)}},function(n,t){jQuery.fn[n]=function(){return this.each(t,arguments)}}),jQuery.each(["Height","Width"],function(t,i){var r=i.toLowerCase();jQuery.fn[r]=function(t){return this[0]==window?jQuery.browser.opera&&document.body["client"+i]||jQuery.browser.safari&&window["inner"+i]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+i]||document.body["client"+i]:this[0]==document?Math.max(Math.max(document.body["scroll"+i],document.documentElement["scroll"+i]),Math.max(document.body["offset"+i],document.documentElement["offset"+i])):t==n?this.length?jQuery.css(this[0],r):null:this.css(r,t.constructor==String?t:t+"px")}});var e=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uffff*_-]|\\\\.)",tt=new RegExp("^>\\s*("+e+"+)"),nt=new RegExp("^("+e+"+)(#)("+e+"+)"),b=new RegExp("^([#.]?)("+e+"*)");jQuery.extend({expr:{"":function(n,t,i){return i[2]=="*"||jQuery.nodeName(n,i[2])},"#":function(n,t,i){return n.getAttribute("id")==i[2]},":":{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},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},"first-child":function(n){return n.parentNode.getElementsByTagName("*")[0]==n},"last-child":function(n){return jQuery.nth(n.parentNode.lastChild,1,"previousSibling")==n},"only-child":function(n){return!jQuery.nth(n.parentNode.lastChild,2,"previousSibling")},parent:function(n){return n.firstChild},empty:function(n){return!n.firstChild},contains:function(n,t,i){return(n.textContent||n.innerText||jQuery(n).text()||"").indexOf(i[3])>=0},visible:function(n){return"hidden"!=n.type&&jQuery.css(n,"display")!="none"&&jQuery.css(n,"visibility")!="hidden"},hidden:function(n){return"hidden"==n.type||jQuery.css(n,"display")=="none"||jQuery.css(n,"visibility")=="hidden"},enabled:function(n){return!n.disabled},disabled:function(n){return n.disabled},checked:function(n){return n.checked},selected:function(n){return n.selected||jQuery.attr(n,"selected")},text:function(n){return"text"==n.type},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||jQuery.nodeName(n,"button")},input:function(n){return/input|select|textarea|button/i.test(n.nodeName)},has:function(n,t,i){return jQuery.find(i[3],n).length},header:function(n){return/h\d/i.test(n.nodeName)},animated:function(n){return jQuery.grep(jQuery.timers,function(t){return n==t.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+e+"+)")],multiFilter:function(n,t,i){var f,u=[],r;while(n&&n!=f)f=n,r=jQuery.filter(n,t,i),n=r.t.replace(/^\s*,\s*/,""),u=i?t=r.r:jQuery.merge(u,r.r);return u},find:function(n,t){var r,c,rt,h,u,s,d,a,ut,o,g,y,i,l,e,p,w,f,it;if(typeof n!="string")return[n];if(t&&t.nodeType!=1&&t.nodeType!=9)return[];t=t||document,r=[t],c=[];while(n&&rt!=n){u=[],rt=n,n=jQuery.trim(n);var k=!1,v=tt,i=v.exec(n);if(i){for(h=i[1].toUpperCase(),f=0;r[f];f++)for(s=r[f].firstChild;s;s=s.nextSibling)s.nodeType==1&&(h=="*"||s.nodeName.toUpperCase()==h)&&u.push(s);r=u,n=n.replace(v,"");if(n.indexOf(" ")==0)continue;k=!0}else{v=/^([>+~])\s*(\w*)/i;if((i=v.exec(n))!=null){for(u=[],d={},h=i[2].toUpperCase(),i=i[1],a=0,ut=r.length;a<ut;a++)for(o=i=="~"||i=="+"?r[a].nextSibling:r[a].firstChild;o;o=o.nextSibling)if(o.nodeType==1){g=jQuery.data(o);if(i=="~"&&d[g])break;h&&o.nodeName.toUpperCase()!=h||(i=="~"&&(d[g]=!0),u.push(o));if(i=="+")break}r=u,n=jQuery.trim(n.replace(v,"")),k=!0}}if(n&&!k)if(n.indexOf(",")){y=nt,i=y.exec(n),i?i=[0,i[2],i[3],i[1]]:(y=b,i=y.exec(n)),i[2]=i[2].replace(/\\/g,""),l=r[r.length-1];if(i[1]=="#"&&l&&l.getElementById&&!jQuery.isXMLDoc(l))e=l.getElementById(i[2]),(jQuery.browser.msie||jQuery.browser.opera)&&e&&typeof e.id=="string"&&e.id!=i[2]&&(e=jQuery('[@id="'+i[2]+'"]',l)[0]),r=u=e&&(!i[3]||jQuery.nodeName(e,i[3]))?[e]:[];else{for(f=0;r[f];f++)p=i[1]=="#"&&i[3]?i[3]:i[1]!=""||i[0]==""?"*":i[2],p=="*"&&r[f].nodeName.toLowerCase()=="object"&&(p="param"),u=jQuery.merge(u,r[f].getElementsByTagName(p));i[1]=="."&&(u=jQuery.classFilter(u,i[2]));if(i[1]=="#"){for(w=[],f=0;u[f];f++)if(u[f].getAttribute("id")==i[2]){w=[u[f]];break}u=w}r=u}n=n.replace(y,"")}else t==r[0]&&r.shift(),c=jQuery.merge(c,r),u=r=[t],n=" "+n.substr(1,n.length);n&&(it=jQuery.filter(n,u),r=u=it.r,n=jQuery.trim(it.t))}return n&&(r=[]),r&&t==r[0]&&r.shift(),c=jQuery.merge(c,r)},classFilter:function(n,t,i){var f,r,u;for(t=" "+t+" ",f=[],r=0;n[r];r++)u=(" "+n[r].className+" ").indexOf(t)>=0,(!i&&u||i&&!u)&&f.push(n[r]);return f},filter:function(n,t,i){var h,b,r,a,e,v,f,u,p,tt,s,y,o;while(n&&n!=h){for(h=n,b=jQuery.parse,u=0;b[u];u++){r=b[u].exec(n);if(r){n=n.substring(r[0].length),r[2]=r[2].replace(/\\/g,"");break}}if(!r)break;if(r[1]==":"&&r[2]=="not")t=c.test(r[3])?jQuery.filter(r[3],t,!0).r:jQuery(t).not(r[3]);else if(r[1]==".")t=jQuery.classFilter(t,r[2],i);else if(r[1]=="["){for(a=[],e=r[3],u=0,p=t.length;u<p;u++)v=t[u],f=v[jQuery.props[r[2]]||r[2]],(f==null||/href|src|selected/.test(r[2]))&&(f=jQuery.attr(v,r[2])||""),(e==""&&!!f||e=="="&&f==r[5]||e=="!="&&f!=r[5]||e=="^="&&f&&!f.indexOf(r[5])||e=="$="&&f.substr(f.length-r[5].length)==r[5]||(e=="*="||e=="~=")&&f.indexOf(r[5])>=0)^i&&a.push(v);t=a}else if(r[1]==":"&&r[2]=="nth-child"){var g={},a=[],k=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(r[3]=="even"&&"2n"||r[3]=="odd"&&"2n+1"||!/\D/.test(r[3])&&"0n+"+r[3]||r[3]),w=k[1]+(k[2]||1)-0,h=k[3]-0;for(u=0,p=t.length;u<p;u++){var l=t[u],nt=l.parentNode,d=jQuery.data(nt);if(!g[d]){for(tt=1,s=nt.firstChild;s;s=s.nextSibling)s.nodeType==1&&(s.nodeIndex=tt++);g[d]=!0}y=!1,w==0?l.nodeIndex==h&&(y=!0):(l.nodeIndex-h)%w!=0||(l.nodeIndex-h)/w<0||(y=!0),y^i&&a.push(l)}t=a}else o=jQuery.expr[r[1]],typeof o=="object"&&(o=o[r[2]]),typeof o=="string"&&(o=eval("false||function(a,i){return "+o+";}")),t=jQuery.grep(t,function(n,i){return o(n,i,r,t)},i)}return{r:t,t:n}},dir:function(n,t){var r=[],i=n[t];while(i&&i!=document)i.nodeType==1&&r.push(i),i=i[t];return r},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}}),jQuery.event={add:function(t,i,r,u){var e,o,f;if(t.nodeType==3||t.nodeType==8)return;jQuery.browser.msie&&t.setInterval&&(t=window),r.guid||(r.guid=this.guid++),u!=n&&(e=r,r=this.proxy(e,function(){return e.apply(this,arguments)}),r.data=u),o=jQuery.data(t,"events")||jQuery.data(t,"events",{}),f=jQuery.data(t,"handle")||jQuery.data(t,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments)}),f.elem=t,jQuery.each(i.split(/\s+/),function(n,i){var e=i.split("."),u;i=e[0],r.type=e[1],u=o[i],u||(u=o[i]={},jQuery.event.special[i]&&jQuery.event.special[i].setup.call(t)!==!1||(t.addEventListener?t.addEventListener(i,f,!1):t.attachEvent&&t.attachEvent("on"+i,f))),u[r.guid]=r,jQuery.event.global[i]=!0}),t=null},guid:1,global:{},remove:function(t,i,r){var u,f,s,o,e;if(t.nodeType==3||t.nodeType==8)return;u=jQuery.data(t,"events");if(u){if(i==n||typeof i=="string"&&i.charAt(0)==".")for(o in u)this.remove(t,o+(i||""));else i.type&&(r=i.handler,i=i.type),jQuery.each(i.split(/\s+/),function(n,i){var e=i.split(".");i=e[0];if(u[i]){if(r)delete u[i][r.guid];else for(r in u[i])e[1]&&u[i][r].type!=e[1]||delete u[i][r];for(f in u[i])break;f||(jQuery.event.special[i]&&jQuery.event.special[i].teardown.call(t)!==!1||(t.removeEventListener?t.removeEventListener(i,jQuery.data(t,"handle"),!1):t.detachEvent&&t.detachEvent("on"+i,jQuery.data(t,"handle"))),f=null,delete u[i])}});for(f in u)break;f||(e=jQuery.data(t,"handle"),e&&(e.elem=null),jQuery.removeData(t,"events"),jQuery.removeData(t,"handle"))}},trigger:function(t,u,f,e,o){var v,s,a,h,c,l;u=jQuery.makeArray(u),t.indexOf("!")<0||(t=t.slice(0,-1),v=!0);if(f){if(f.nodeType==3||f.nodeType==8)return n;h=jQuery.isFunction(f[t]||null),c=!u[0]||!u[0].preventDefault,c&&(u.unshift({type:t,target:f,preventDefault:function(){},stopPropagation:function(){},timeStamp:r()}),u[0][i]=!0),u[0].type=t,v&&(u[0].exclusive=!0),l=jQuery.data(f,"handle"),l&&(s=l.apply(f,u)),(!h||jQuery.nodeName(f,"a")&&t=="click")&&f["on"+t]&&f["on"+t].apply(f,u)===!1&&(s=!1),c&&u.shift(),o&&jQuery.isFunction(o)&&(a=o.apply(f,s==null?u:u.concat(s)),a!==n&&(s=a));if(h&&e!==!1&&s!==!1&&!(jQuery.nodeName(f,"a")&&t=="click")){this.triggered=!0;try{f[t]()}catch(y){}}this.triggered=!1}else this.global[t]&&jQuery("*").add([window,document]).trigger(t,u);return s},handle:function(n){var f,u,t,e,r,o,i;n=arguments[0]=jQuery.event.fix(n||window.event),t=n.type.split("."),n.type=t[0],t=t[1],e=!t&&!n.exclusive,r=(jQuery.data(this,"events")||{})[n.type];for(o in r)i=r[o],(e||i.type==t)&&(n.handler=i,n.data=i.data,u=i.apply(this,arguments),f!==!1&&(f=u),u===!1&&(n.preventDefault(),n.stopPropagation()));return f},fix:function(n){var t,o,f,u,e;if(n[i]==!0)return n;for(t=n,n={originalEvent:t},o="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" "),f=o.length;f;f--)n[o[f]]=t[o[f]];return n[i]=!0,n.preventDefault=function(){t.preventDefault&&t.preventDefault(),t.returnValue=!1},n.stopPropagation=function(){t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},n.timeStamp=n.timeStamp||r(),n.target||(n.target=n.srcElement||document),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=document.documentElement,e=document.body,n.pageX=n.clientX+(u&&u.scrollLeft||e&&e.scrollLeft||0)-(u.clientLeft||0),n.pageY=n.clientY+(u&&u.scrollTop||e&&e.scrollTop||0)-(u.clientTop||0)),!n.which&&(n.charCode||n.charCode===0?n.charCode:n.keyCode)&&(n.which=n.charCode||n.keyCode),!n.metaKey&&n.ctrlKey&&(n.metaKey=n.ctrlKey),!n.which&&n.button&&(n.which=n.button&1?1:n.button&2?3:n.button&4?2:0),n},proxy:function(n,t){return t.guid=n.guid=n.guid||t.guid||this.guid++,t},special:{ready:{setup:function(){l();return},teardown:function(){return}},mouseenter:{setup:function(){return jQuery.browser.msie?!1:(jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler),!0)},teardown:function(){return jQuery.browser.msie?!1:(jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler),!0)},handler:function(n){return h(n,this)?!0:(n.type="mouseenter",jQuery.event.handle.apply(this,arguments))}},mouseleave:{setup:function(){return jQuery.browser.msie?!1:(jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler),!0)},teardown:function(){return jQuery.browser.msie?!1:(jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler),!0)},handler:function(n){return h(n,this)?!0:(n.type="mouseleave",jQuery.event.handle.apply(this,arguments))}}}},jQuery.fn.extend({bind:function(n,t,i){return n=="unload"?this.one(n,t,i):this.each(function(){jQuery.event.add(this,n,i||t,i&&t)})},one:function(n,t,i){var r=jQuery.event.proxy(i||t,function(n){return jQuery(this).unbind(n,r),(i||t).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,n,r,i&&t)})},unbind:function(n,t){return this.each(function(){jQuery.event.remove(this,n,t)})},trigger:function(n,t,i){return this.each(function(){jQuery.event.trigger(n,t,this,!0,i)})},triggerHandler:function(n,t,i){return this[0]&&jQuery.event.trigger(n,t,this[0],!1,i)},toggle:function(n){var i=arguments,t=1;while(t<i.length)jQuery.event.proxy(n,i[t++]);return this.click(jQuery.event.proxy(n,function(n){return this.lastToggle=(this.lastToggle||0)%t,n.preventDefault(),i[this.lastToggle++].apply(this,arguments)||!1}))},hover:function(n,t){return this.bind("mouseenter",n).bind("mouseleave",t)},ready:function(n){return l(),jQuery.isReady?n.call(document,jQuery):jQuery.readyList.push(function(){return n.call(this,jQuery)}),this}}),jQuery.extend({isReady:!1,readyList:[],ready:function(){jQuery.isReady||(jQuery.isReady=!0,jQuery.readyList&&(jQuery.each(jQuery.readyList,function(){this.call(document)}),jQuery.readyList=null),jQuery(document).triggerHandler("ready"))}}),s=!1,jQuery.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error".split(","),function(n,t){jQuery.fn[t]=function(n){return n?this.bind(t,n):this.trigger(t)}}),h=function(n,t){var i=n.relatedTarget;while(i&&i!=t)try{i=i.parentNode}catch(r){i=t}return i==t},jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind()}),jQuery.fn.extend({_load:jQuery.fn.load,load:function(n,t,i){var r,e,f,u;return typeof n!="string"?this._load(n):(r=n.indexOf(" "),r<0||(e=n.slice(r,n.length),n=n.slice(0,r)),i=i||function(){},f="GET",t&&(jQuery.isFunction(t)?(i=t,t=null):(t=jQuery.param(t),f="POST")),u=this,jQuery.ajax({url:n,type:f,dataType:"html",data:t,complete:function(n,t){(t=="success"||t=="notmodified")&&u.html(e?jQuery("<div/>").append(n.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(e):n.responseText),u.each(i,[n.responseText,t,n])}}),this)},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(n,t){var i=jQuery(this).val();return i==null?null:i.constructor==Array?jQuery.map(i,function(n){return{name:t.name,value:n}}):{name:t.name,value:i}}).get()}}),jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(n,t){jQuery.fn[t]=function(n){return this.bind(t,n)}}),a=r(),jQuery.extend({get:function(n,t,i,r){return jQuery.isFunction(t)&&(i=t,t=null),jQuery.ajax({type:"GET",url:n,data:t,success:i,dataType:r})},getScript:function(n,t){return jQuery.get(n,null,t,"script")},getJSON:function(n,t,i){return jQuery.get(n,t,i,"json")},post:function(n,t,i,r){return jQuery.isFunction(t)&&(i=t,t={}),jQuery.ajax({type:"POST",url:n,data:t,success:i,dataType:r})},ajaxSetup:function(n){jQuery.extend(jQuery.ajaxSettings,n)},ajaxSettings:{url:location.href,global:!0,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(t){function p(){t.success&&t.success(w,s),t.global&&jQuery.event.trigger("ajaxSuccess",[i,t])}function y(){t.complete&&t.complete(i,s),t.global&&jQuery.event.trigger("ajaxComplete",[i,t]),t.global&&!--jQuery.active&&jQuery.event.trigger("ajaxStop")}var f,o,s,w,e,g,b,k,h,u,d,c,i,l,v;t=jQuery.extend(!0,t,jQuery.extend(!0,{},jQuery.ajaxSettings,t)),o=/=\?(&|$)/g,e=t.type.toUpperCase(),t.data&&t.processData&&typeof t.data!="string"&&(t.data=jQuery.param(t.data)),t.dataType=="jsonp"&&(e=="GET"?t.url.match(o)||(t.url+=(t.url.match(/\?/)?"&":"?")+(t.jsonp||"callback")+"=?"):t.data&&t.data.match(o)||(t.data=(t.data?t.data+"&":"")+(t.jsonp||"callback")+"=?"),t.dataType="json"),t.dataType=="json"&&(t.data&&t.data.match(o)||t.url.match(o))&&(f="jsonp"+a++,t.data&&(t.data=(t.data+"").replace(o,"="+f+"$1")),t.url=t.url.replace(o,"="+f+"$1"),t.dataType="script",window[f]=function(t){w=t,p(),y(),window[f]=n;try{delete window[f]}catch(i){}h&&h.removeChild(u)}),t.dataType=="script"&&t.cache==null&&(t.cache=!1),t.cache===!1&&e=="GET"&&(g=r(),b=t.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+g+"$2"),t.url=b+(b==t.url?(t.url.match(/\?/)?"&":"?")+"_="+g:"")),t.data&&e=="GET"&&(t.url+=(t.url.match(/\?/)?"&":"?")+t.data,t.data=null),t.global&&!jQuery.active++&&jQuery.event.trigger("ajaxStart"),k=/^(?:\w+:)?\/\/([^\/?#]+)/;if(t.dataType=="script"&&e=="GET"&&k.test(t.url)&&k.exec(t.url)[1]!=location.host)return h=document.getElementsByTagName("head")[0],u=document.createElement("script"),u.src=t.url,t.scriptCharset&&(u.charset=t.scriptCharset),f||(d=!1,u.onload=u.onreadystatechange=function(){d||this.readyState&&this.readyState!="loaded"&&this.readyState!="complete"||(d=!0,p(),y(),h.removeChild(u))}),h.appendChild(u),n;c=!1,i=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest,t.username?i.open(e,t.url,t.async,t.username,t.password):i.open(e,t.url,t.async);try{t.data&&i.setRequestHeader("Content-Type",t.contentType),t.ifModified&&i.setRequestHeader("If-Modified-Since",jQuery.lastModified[t.url]||"Thu, 01 Jan 1970 00:00:00 GMT"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Accept",t.dataType&&t.accepts[t.dataType]?t.accepts[t.dataType]+", */*":t.accepts._default)}catch(nt){}if(t.beforeSend&&t.beforeSend(i,t)===!1)return t.global&&jQuery.active--,i.abort(),!1;t.global&&jQuery.event.trigger("ajaxSend",[i,t]),l=function(n){if(!c&&i&&(i.readyState==4||n=="timeout")){c=!0,v&&(clearInterval(v),v=null),s=n=="timeout"&&"timeout"||!jQuery.httpSuccess(i)&&"error"||t.ifModified&&jQuery.httpNotModified(i,t.url)&&"notmodified"||"success";if(s=="success")try{w=jQuery.httpData(i,t.dataType,t.dataFilter)}catch(u){s="parsererror"}if(s=="success"){var r;try{r=i.getResponseHeader("Last-Modified")}catch(u){}t.ifModified&&r&&(jQuery.lastModified[t.url]=r),f||p()}else jQuery.handleError(t,i,s);y(),t.async&&(i=null)}},t.async&&(v=setInterval(l,13),t.timeout>0&&setTimeout(function(){i&&(i.abort(),c||l("timeout"))},t.timeout));try{i.send(t.data)}catch(nt){jQuery.handleError(t,i,null,nt)}return t.async||l(),i},handleError:function(n,t,i,r){n.error&&n.error(t,i,r),n.global&&jQuery.event.trigger("ajaxError",[t,n,r])},active:0,httpSuccess:function(t){try{return!t.status&&location.protocol=="file:"||t.status>=200&&t.status<300||t.status==304||t.status==1223||jQuery.browser.safari&&t.status==n}catch(i){}return!1},httpNotModified:function(t,i){try{var r=t.getResponseHeader("Last-Modified");return t.status==304||r==jQuery.lastModified[i]||jQuery.browser.safari&&t.status==n}catch(u){}return!1},httpData:function(n,t,i){var u=n.getResponseHeader("content-type"),f=t=="xml"||!t&&u&&u.indexOf("xml")>=0,r=f?n.responseXML:n.responseText;if(f&&r.documentElement.tagName=="parsererror")throw"parsererror";return i&&(r=i(r,t)),t=="script"&&jQuery.globalEval(r),t=="json"&&(r=eval("("+r+")")),r},param:function(n){var i=[],t;if(n.constructor==Array||n.jquery)jQuery.each(n,function(){i.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))});else for(t in n)n[t]&&n[t].constructor==Array?jQuery.each(n[t],function(){i.push(encodeURIComponent(t)+"="+encodeURIComponent(this))}):i.push(encodeURIComponent(t)+"="+encodeURIComponent(jQuery.isFunction(n[t])?n[t]():n[t]));return i.join("&").replace(/%20/g,"+")}}),jQuery.fn.extend({show:function(n,t){return n?this.animate({height:"show",width:"show",opacity:"show"},n,t):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var n=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=n.css("display"),this.style.display=="none"&&(this.style.display="block"),n.remove()}}).end()},hide:function(n,t){return n?this.animate({height:"hide",width:"hide",opacity:"hide"},n,t):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display"),this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(n,t){return jQuery.isFunction(n)&&jQuery.isFunction(t)?this._toggle.apply(this,arguments):n?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},n,t):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(n,t){return this.animate({height:"show"},n,t)},slideUp:function(n,t){return this.animate({height:"hide"},n,t)},slideToggle:function(n,t){return this.animate({height:"toggle"},n,t)},fadeIn:function(n,t){return this.animate({opacity:"show"},n,t)},fadeOut:function(n,t){return this.animate({opacity:"hide"},n,t)},fadeTo:function(n,t,i){return this.animate({opacity:t},n,i)},animate:function(n,t,i,r){var u=jQuery.speed(t,i,r);return this[u.queue===!1?"each":"queue"](function(){if(this.nodeType!=1)return!1;var t=jQuery.extend({},u),i,f=jQuery(this).is(":hidden"),r=this;for(i in n){if(n[i]=="hide"&&f||n[i]=="show"&&!f)return t.complete.call(this);(i=="height"||i=="width")&&(t.display=jQuery.css(this,"display"),t.overflow=this.style.overflow)}return t.overflow!=null&&(this.style.overflow="hidden"),t.curAnim=jQuery.extend({},n),jQuery.each(n,function(i,u){var c=new jQuery.fx(r,t,i),s,e,o,h;/toggle|show|hide/.test(u)?c[u=="toggle"?f?"show":"hide":u](n):(s=u.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),e=c.cur(!0)||0,s?(o=parseFloat(s[2]),h=s[3]||"px",h!="px"&&(r.style[i]=(o||1)+h,e=(o||1)/c.cur(!0)*e,r.style[i]=e+h),s[1]&&(o=(s[1]=="-="?-1:1)*o+e),c.custom(e,o,h)):c.custom(e,u,""))}),!0})},queue:function(n,t){return(jQuery.isFunction(n)||n&&n.constructor==Array)&&(t=n,n="fx"),!n||typeof n=="string"&&!t?u(this[0],n):this.each(function(){t.constructor==Array?u(this,n,t):(u(this,n).push(t),u(this,n).length==1&&t.call(this))})},stop:function(n,t){var i=jQuery.timers;return n&&this.queue([]),this.each(function(){for(var n=i.length-1;n>=0;n--)i[n].elem==this&&(t&&i[n](!0),i.splice(n,1))}),t||this.dequeue(),this}}),u=function(n,t,i){if(n){t=t||"fx";var r=jQuery.data(n,t+"queue");(!r||i)&&(r=jQuery.data(n,t+"queue",jQuery.makeArray(i)))}return r},jQuery.fn.dequeue=function(n){return n=n||"fx",this.each(function(){var t=u(this,n);t.shift(),t.length&&t[0].call(this)})},jQuery.extend({speed:function(n,t,i){var r=n&&n.constructor==Object?n:{complete:i||!i&&t||jQuery.isFunction(n)&&n,duration:n,easing:i&&t||t&&t.constructor!=Function&&t};return r.duration=(r.duration&&r.duration.constructor==Number?r.duration:jQuery.fx.speeds[r.duration])||jQuery.fx.speeds.def,r.old=r.complete,r.complete=function(){r.queue!==!1&&jQuery(this).dequeue(),jQuery.isFunction(r.old)&&r.old.call(this)},r},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:[],timerId:null,fx:function(n,t,i){this.options=t,this.elem=n,this.prop=i,t.orig||(t.orig={})}}),jQuery.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this),(this.prop=="height"||this.prop=="width")&&(this.elem.style.display="block")},cur:function(n){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var t=parseFloat(jQuery.css(this.elem,this.prop,n));return t&&t>-1e4?t:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(n,t,i){function u(n){return f.step(n)}this.startTime=r(),this.start=n,this.end=t,this.unit=i||this.unit||"px",this.now=this.start,this.pos=this.state=0,this.update();var f=this;u.elem=this.elem,jQuery.timers.push(u),jQuery.timerId==null&&(jQuery.timerId=setInterval(function(){for(var t=jQuery.timers,n=0;n<t.length;n++)t[n]()||t.splice(n--,1);t.length||(clearInterval(jQuery.timerId),jQuery.timerId=null)},13))},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop),this.options.show=!0,this.custom(0,this.cur()),(this.prop=="width"||this.prop=="height")&&(this.elem.style[this.prop]="1px"),jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(n){var f=r(),t,e,i,u;if(n||f>this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0,t=!0;for(e in this.options.curAnim)this.options.curAnim[e]!==!0&&(t=!1);if(t){this.options.display!=null&&(this.elem.style.overflow=this.options.overflow,this.elem.style.display=this.options.display,jQuery.css(this.elem,"display")=="none"&&(this.elem.style.display="block")),this.options.hide&&(this.elem.style.display="none");if(this.options.hide||this.options.show)for(i in this.options.curAnim)jQuery.attr(this.elem.style,i,this.options.orig[i])}return t&&this.options.complete.call(this.elem),!1}return u=f-this.startTime,this.state=u/this.options.duration,this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,u,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update(),!0}},jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(n){n.elem.scrollLeft=n.now},scrollTop:function(n){n.elem.scrollTop=n.now},opacity:function(n){jQuery.attr(n.elem.style,"opacity",n.now)},_default:function(n){n.elem.style[n.prop]=n.now+n.unit}}}),jQuery.fn.offset=function(){function border(n){add(jQuery.curCSS(n,"borderLeftWidth",!0),jQuery.curCSS(n,"borderTopWidth",!0))}function add(n,t){left+=parseInt(n,10)||0,top+=parseInt(t,10)||0}var left=0,top=0,elem=this[0],results,box;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect)box=elem.getBoundingClientRect(),add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop)),add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent)add(offsetParent.offsetLeft,offsetParent.offsetTop),(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)&&border(offsetParent),fixed||css(offsetParent,"position")!="fixed"||(fixed=!0),offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent,offsetParent=offsetParent.offsetParent;while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName))/^inline|table.*$/i.test(css(parent,"display"))||add(-parent.scrollLeft,-parent.scrollTop),mozilla&&css(parent,"overflow")!="visible"&&border(parent),parent=parent.parentNode;(safari2&&(fixed||css(offsetChild,"position")=="absolute")||mozilla&&css(offsetChild,"position")!="absolute")&&add(-doc.body.offsetLeft,-doc.body.offsetTop),fixed&&add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}results={top:top,left:left}}return results},jQuery.fn.extend({position:function(){var f=0,e=0,u;if(this[0]){var n=this.offsetParent(),i=this.offset(),r=/^body|html$/i.test(n[0].tagName)?{top:0,left:0}:n.offset();i.top-=t(this,"marginTop"),i.left-=t(this,"marginLeft"),r.top+=t(n,"borderTopWidth"),r.left+=t(n,"borderLeftWidth"),u={top:i.top-r.top,left:i.left-r.left}}return u},offsetParent:function(){var n=this[0].offsetParent;while(n&&!/^body|html$/i.test(n.tagName)&&jQuery.css(n,"position")=="static")n=n.offsetParent;return jQuery(n)}}),jQuery.each(["Left","Top"],function(t,i){var r="scroll"+i;jQuery.fn[r]=function(i){if(this[0])return i!=n?this.each(function(){this==window||this==document?window.scrollTo(t?jQuery(window).scrollLeft():i,t?i:jQuery(window).scrollTop()):this[r]=i}):this[0]==window||this[0]==document?self[t?"pageYOffset":"pageXOffset"]||jQuery.boxModel&&document.documentElement[r]||document.body[r]:this[0][r]}}),jQuery.each(["Height","Width"],function(n,i){var u=n?"Left":"Top",r=n?"Right":"Bottom";jQuery.fn["inner"+i]=function(){return this[i.toLowerCase()]()+t(this,"padding"+u)+t(this,"padding"+r)},jQuery.fn["outer"+i]=function(n){return this["inner"+i]()+t(this,"border"+u+"Width")+t(this,"border"+r+"Width")+(n?t(this,"margin"+u)+t(this,"margin"+r):0)}})})()
