/* * jquery javascript library v1.3.2 * http://jquery.com/ * * copyright (c) 2009 john resig * dual licensed under the mit and gpl licenses. * http://docs.jquery.com/license * * date: 2009-02-19 17:34:21 -0500 (thu, 19 feb 2009) * revision: 6246 */ (function(){var l=this,g,y=l.jquery,p=l.$,o=l.jquery=l.$=function(e,f){return new o.fn.init(e,f)},d=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(e,h){e=e||document;if(e.nodetype){this[0]=e;this.length=1;this.context=e;return this}if(typeof e==="string"){var g=d.exec(e);if(g&&(g[1]||!h)){if(g[1]){e=o.clean([g[1]],h)}else{var i=document.getelementbyid(g[3]);if(i&&i.id!=g[3]){return o().find(e)}var f=o(i||[]);f.context=document;f.selector=e;return f}}else{return o(h).find(e)}}else{if(o.isfunction(e)){return o(document).ready(e)}}if(e.selector&&e.context){this.selector=e.selector;this.context=e.context}return this.setarray(o.isarray(e)?e:o.makearray(e))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(e){return e===g?array.prototype.slice.call(this):this[e]},pushstack:function(f,h,e){var g=o(f);g.prevobject=this;g.context=this.context;if(h==="find"){g.selector=this.selector+(this.selector?" ":"")+e}else{if(h){g.selector=this.selector+"."+h+"("+e+")"}}return g},setarray:function(e){this.length=0;array.prototype.push.apply(this,e);return this},each:function(f,e){return o.each(this,f,e)},index:function(e){return o.inarray(e&&e.jquery?e[0]:e,this)},attr:function(f,h,g){var e=f;if(typeof f==="string"){if(h===g){return this[0]&&o[g||"attr"](this[0],f)}else{e={};e[f]=h}}return this.each(function(i){for(f in e){o.attr(g?this.style:this,f,o.prop(this,e[f],g,i,f))}})},css:function(e,f){if((e=="width"||e=="height")&&parsefloat(f)<0){f=g}return this.attr(e,f,"curcss")},text:function(f){if(typeof f!=="object"&&f!=null){return this.empty().append((this[0]&&this[0].ownerdocument||document).createtextnode(f))}var e="";o.each(f||this,function(){o.each(this.childnodes,function(){if(this.nodetype!=8){e+=this.nodetype!=1?this.nodevalue:o.fn.text([this])}})});return e},wrapall:function(e){if(this[0]){var f=o(e,this[0].ownerdocument).clone();if(this[0].parentnode){f.insertbefore(this[0])}f.map(function(){var g=this;while(g.firstchild){g=g.firstchild}return g}).append(this)}return this},wrapinner:function(e){return this.each(function(){o(this).contents().wrapall(e)})},wrap:function(e){return this.each(function(){o(this).wrapall(e)})},append:function(){return this.dommanip(arguments,true,function(e){if(this.nodetype==1){this.appendchild(e)}})},prepend:function(){return this.dommanip(arguments,true,function(e){if(this.nodetype==1){this.insertbefore(e,this.firstchild)}})},before:function(){return this.dommanip(arguments,false,function(e){this.parentnode.insertbefore(e,this)})},after:function(){return this.dommanip(arguments,false,function(e){this.parentnode.insertbefore(e,this.nextsibling)})},end:function(){return this.prevobject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(e){if(this.length===1){var f=this.pushstack([],"find",e);f.length=0;o.find(e,this[0],f);return f}else{return this.pushstack(o.unique(o.map(this,function(g){return o.find(e,g)})),"find",e)}},clone:function(g){var e=this.map(function(){if(!o.support.nocloneevent&&!o.isxmldoc(this)){var i=this.outerhtml;if(!i){var j=this.ownerdocument.createelement("div");j.appendchild(this.clonenode(true));i=j.innerhtml}return o.clean([i.replace(/ jquery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.clonenode(true)}});if(g===true){var h=this.find("*").andself(),f=0;e.find("*").andself().each(function(){if(this.nodename!==h[f].nodename){return}var i=o.data(h[f],"events");for(var k in i){for(var j in i[k]){o.event.add(this,k,i[k][j],i[k][j].data)}}f++})}return e},filter:function(e){return this.pushstack(o.isfunction(e)&&o.grep(this,function(g,f){return e.call(g,f)})||o.multifilter(e,o.grep(this,function(f){return f.nodetype===1})),"filter",e)},closest:function(e){var g=o.expr.match.pos.test(e)?o(e):null,f=0;return this.map(function(){var h=this;while(h&&h.ownerdocument){if(g?g.index(h)>-1:o(h).is(e)){o.data(h,"closest",f);return h}h=h.parentnode;f++}})},not:function(e){if(typeof e==="string"){if(f.test(e)){return this.pushstack(o.multifilter(e,this,true),"not",e)}else{e=o.multifilter(e,this)}}var f=e.length&&e[e.length-1]!==g&&!e.nodetype;return this.filter(function(){return f?o.inarray(this,e)<0:this!=e})},add:function(e){return this.pushstack(o.unique(o.merge(this.get(),typeof e==="string"?o(e):o.makearray(e))))},is:function(e){return !!e&&o.multifilter(e,this).length>0},hasclass:function(e){return !!e&&this.is("."+e)},val:function(k){if(k===g){var e=this[0];if(e){if(o.nodename(e,"option")){return(e.attributes.value||{}).specified?e.value:e.text}if(o.nodename(e,"select")){var i=e.selectedindex,l=[],m=e.options,h=e.type=="select-one";if(i<0){return null}for(var f=h?i:0,j=h?i+1:m.length;f=0||o.inarray(this.name,k)>=0)}else{if(o.nodename(this,"select")){var n=o.makearray(k);o("option",this).each(function(){this.selected=(o.inarray(this.value,n)>=0||o.inarray(this.text,n)>=0)});if(!n.length){this.selectedindex=-1}}else{this.value=k}}})},html:function(e){return e===g?(this[0]?this[0].innerhtml.replace(/ jquery\d+="(?:\d+|null)"/g,""):null):this.empty().append(e)},replacewith:function(e){return this.after(e).remove()},eq:function(e){return this.slice(e,+e+1)},slice:function(){return this.pushstack(array.prototype.slice.apply(this,arguments),"slice",array.prototype.slice.call(arguments).join(","))},map:function(e){return this.pushstack(o.map(this,function(g,f){return e.call(g,f,g)}))},andself:function(){return this.add(this.prevobject)},dommanip:function(j,m,l){if(this[0]){var i=(this[0].ownerdocument||this[0]).createdocumentfragment(),f=o.clean(j,(this[0].ownerdocument||this[0]),i),h=i.firstchild;if(h){for(var g=0,e=this.length;g1||g>0?i.clonenode(true):i)}}if(f){o.each(f,z)}}return this;function k(n,o){return m&&o.nodename(n,"table")&&o.nodename(o,"tr")?(n.getelementsbytagname("tbody")[0]||n.appendchild(n.ownerdocument.createelement("tbody"))):n}}};o.fn.init.prototype=o.fn;function z(e,f){if(f.src){o.ajax({url:f.src,async:false,datatype:"script"})}else{o.globaleval(f.text||f.textcontent||f.innerhtml||"")}if(f.parentnode){f.parentnode.removechild(f)}}function e(){return +new date}o.extend=o.fn.extend=function(){var j=arguments[0]||{},h=1,i=arguments.length,e=false,g;if(typeof j==="boolean"){e=j;j=arguments[1]||{};h=2}if(typeof j!=="object"&&!o.isfunction(j)){j={}}if(i==h){j=this;--h}for(;h-1}},swap:function(h,g,i){var e={};for(var f in g){e[f]=h.style[f];h.style[f]=g[f]}i.call(h);for(var f in g){h.style[f]=e[f]}},css:function(h,f,j,e){if(f=="width"||f=="height"){var l,g={position:"absolute",visibility:"hidden",display:"block"},k=f=="width"?["left","right"]:["top","bottom"];function i(){l=f=="width"?h.offsetwidth:h.offsetheight;if(e==="border"){return}o.each(k,function(){if(!e){l-=parsefloat(o.curcss(h,"padding"+this,true))||0}if(e==="margin"){l+=parsefloat(o.curcss(h,"margin"+this,true))||0}else{l-=parsefloat(o.curcss(h,"border"+this+"width",true))||0}})}if(h.offsetwidth!==0){i()}else{o.swap(h,g,i)}return math.max(0,math.round(l))}return o.curcss(h,f,j)},curcss:function(i,f,g){var l,e=i.style;if(f=="opacity"&&!o.support.opacity){l=o.attr(e,"opacity");return l==""?"1":l}if(f.match(/float/i)){f=w}if(!g&&e&&e[f]){l=e[f]}else{if(q.getcomputedstyle){if(f.match(/float/i)){f="float"}f=f.replace(/([a-z])/g,"-$1").tolowercase();var m=q.getcomputedstyle(i,null);if(m){l=m.getpropertyvalue(f)}if(f=="opacity"&&l==""){l="1"}}else{if(i.currentstyle){var j=f.replace(/\-(\w)/g,function(n,o){return o.touppercase()});l=i.currentstyle[f]||i.currentstyle[j];if(!/^\d+(px)?$/i.test(l)&&/^\d/.test(l)){var h=e.left,k=i.runtimestyle.left;i.runtimestyle.left=i.currentstyle.left;e.left=l||0;l=e.pixelleft+"px";e.left=h;i.runtimestyle.left=k}}}}return l},clean:function(f,k,i){k=k||document;if(typeof k.createelement==="undefined"){k=k.ownerdocument||k[0]&&k[0].ownerdocument||document}if(!i&&f.length===1&&typeof f[0]==="string"){var h=/^<(\w+)\s*\/?>$/.exec(f[0]);if(h){return[k.createelement(h[1])]}}var g=[],e=[],l=k.createelement("div");o.each(f,function(p,s){if(typeof s==="number"){s+=""}if(!s){return}if(typeof s==="string"){s=s.replace(/(<(\w+)[^>]*?)\/>/g,function(u,v,t){return t.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?u:v+">"});var o=s.replace(/^\s+/,"").substring(0,10).tolowercase();var q=!o.indexof("",""]||!o.indexof("",""]||o.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!o.indexof("",""]||(!o.indexof("",""]||!o.indexof("",""]||!o.support.htmlserialize&&[1,"div
","
"]||[0,"",""];l.innerhtml=q[1]+s+q[2];while(q[0]--){l=l.lastchild}if(!o.support.tbody){var r=/"&&!r?l.childnodes:[];for(var m=n.length-1;m>=0;--m){if(o.nodename(n[m],"tbody")&&!n[m].childnodes.length){n[m].parentnode.removechild(n[m])}}}if(!o.support.leadingwhitespace&&/^\s/.test(s)){l.insertbefore(k.createtextnode(s.match(/^\s*/)[0]),l.firstchild)}s=o.makearray(l.childnodes)}if(s.nodetype){g.push(s)}else{g=o.merge(g,s)}});if(i){for(var j=0;g[j];j++){if(o.nodename(g[j],"script")&&(!g[j].type||g[j].type.tolowercase()==="text/javascript")){e.push(g[j].parentnode?g[j].parentnode.removechild(g[j]):g[j])}else{if(g[j].nodetype===1){g.splice.apply(g,[j+1,0].concat(o.makearray(g[j].getelementsbytagname("script"))))}i.appendchild(g[j])}}return e}return g},attr:function(j,g,k){if(!j||j.nodetype==3||j.nodetype==8){return g}var h=!o.isxmldoc(j),l=k!==g;g=h&&o.props[g]||g;if(j.tagname){var f=/href|src|style/.test(g);if(g=="selected"&&j.parentnode){j.parentnode.selectedindex}if(g in j&&h&&!f){if(l){if(g=="type"&&o.nodename(j,"input")&&j.parentnode){throw"type property can't be changed"}j[g]=k}if(o.nodename(j,"form")&&j.getattributenode(g)){return j.getattributenode(g).nodevalue}if(g=="tabindex"){var i=j.getattributenode("tabindex");return i&&i.specified?i.value:j.nodename.match(/(button|input|object|select|textarea)/i)?0:j.nodename.match(/^(a|area)$/i)&&j.href?0:g}return j[g]}if(!o.support.style&&h&&g=="style"){return o.attr(j.style,"csstext",k)}if(l){j.setattribute(g,""+k)}var e=!o.support.hrefnormalized&&h&&f?j.getattribute(g,2):j.getattribute(g);return e===null?g:e}if(!o.support.opacity&&g=="opacity"){if(l){j.zoom=1;j.filter=(j.filter||"").replace(/alpha\([^)]*\)/,"")+(parseint(k)+""=="nan"?"":"alpha(opacity="+k*100+")")}return j.filter&&j.filter.indexof("opacity=")>=0?(parsefloat(j.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}g=g.replace(/-([a-z])/ig,function(m,n){return n.touppercase()});if(l){j[g]=k}return j[g]},trim:function(e){return(e||"").replace(/^\s+|\s+$/g,"")},makearray:function(g){var e=[];if(g!=null){var f=g.length;if(f==null||typeof g==="string"||o.isfunction(g)||g.setinterval){e[0]=g}else{while(f){e[--f]=g[f]}}}return e},inarray:function(g,h){for(var e=0,f=h.length;e0?this.clone(true):this).get();o.fn[f].apply(o(l[k]),i);j=j.concat(i)}return this.pushstack(j,e,g)}});o.each({removeattr:function(e){o.attr(this,e,"");if(this.nodetype==1){this.removeattribute(e)}},addclass:function(e){o.classname.add(this,e)},removeclass:function(e){o.classname.remove(this,e)},toggleclass:function(f,e){if(typeof e!=="boolean"){e=!o.classname.has(this,f)}o.classname[e?"add":"remove"](this,f)},remove:function(e){if(!e||o.filter(e,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removedata(this)});if(this.parentnode){this.parentnode.removechild(this)}}},empty:function(){o(this).children().remove();while(this.firstchild){this.removechild(this.firstchild)}}},function(e,f){o.fn[e]=function(){return this.each(f,arguments)}});function j(e,f){return e[0]&&parseint(o.curcss(e[0],f,true),10)||0}var h="jquery"+e(),v=0,a={};o.extend({cache:{},data:function(f,e,g){f=f==l?a:f;var h=f[h];if(!h){h=f[h]=++v}if(e&&!o.cache[h]){o.cache[h]={}}if(g!==g){o.cache[h][e]=g}return e?o.cache[h][e]:h},removedata:function(f,e){f=f==l?a:f;var h=f[h];if(e){if(o.cache[h]){delete o.cache[h][e];e="";for(e in o.cache[h]){break}if(!e){o.removedata(f)}}}else{try{delete f[h]}catch(g){if(f.removeattribute){f.removeattribute(h)}}delete o.cache[h]}},queue:function(f,e,h){if(f){e=(e||"fx")+"queue";var g=o.data(f,e);if(!g||o.isarray(h)){g=o.data(f,e,o.makearray(h))}else{if(h){g.push(h)}}}return g},dequeue:function(h,g){var e=o.queue(h,g),f=e.shift();if(!g||g==="fx"){f=e[0]}if(f!==g){f.call(h)}}});o.fn.extend({data:function(e,g){var h=e.split(".");h[1]=h[1]?"."+h[1]:"";if(g===g){var f=this.triggerhandler("getdata"+h[1]+"!",[h[0]]);if(f===g&&this.length){f=o.data(this[0],e)}return f===g&&h[1]?this.data(h[0]):f}else{return this.trigger("setdata"+h[1]+"!",[h[0],g]).each(function(){o.data(this,e,g)})}},removedata:function(e){return this.each(function(){o.removedata(this,e)})},queue:function(e,f){if(typeof e!=="string"){f=e;e="fx"}if(f===g){return o.queue(this[0],e)}return this.each(function(){var g=o.queue(this,e,f);if(e=="fx"&&g.length==1){g[0].call(this)}})},dequeue:function(e){return this.each(function(){o.dequeue(this,e)})}}); /* * sizzle css selector engine - v0.9.3 * copyright 2009, the dojo foundation * released under the mit, bsd, and gpl licenses. * more information: http://sizzlejs.com/ */ (function(){var r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,l=0,h=object.prototype.tostring;var f=function(y,u,ab,ac){ab=ab||[];u=u||document;if(u.nodetype!==1&&u.nodetype!==9){return[]}if(!y||typeof y!=="string"){return ab}var z=[],w,af,ai,t,ad,v,x=true;r.lastindex=0;while((w=r.exec(y))!==null){z.push(w[1]);if(w[2]){v=regexp.rightcontext;break}}if(z.length>1&&m.exec(y)){if(z.length===2&&i.relative[z[0]]){af=j(z[0]+z[1],u)}else{af=i.relative[z[0]]?[u]:f(z.shift(),u);while(z.length){y=z.shift();if(i.relative[y]){y+=z.shift()}af=j(y,af)}}}else{var ae=ac?{expr:z.pop(),set:e(ac)}:f.find(z.pop(),z.length===1&&u.parentnode?u.parentnode:u,q(u));af=f.filter(ae.expr,ae.set);if(z.length>0){ai=e(af)}else{x=false}while(z.length){var ah=z.pop(),ag=ah;if(!i.relative[ah]){ah=""}else{ag=z.pop()}if(ag==null){ag=u}i.relative[ah](ai,ag,q(u))}}if(!ai){ai=af}if(!ai){throw"syntax error, unrecognized expression: "+(ah||y)}if(h.call(ai)==="[object array]"){if(!x){ab.push.apply(ab,ai)}else{if(u.nodetype===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodetype===1&&k(u,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodetype===1){ab.push(af[aa])}}}}}else{e(ai,ab)}if(v){f(v,u,ab,ac);if(g){hasduplicate=false;ab.sort(g);if(hasduplicate){for(var aa=1;aa":function(z,u,aa){var x=typeof u==="string";if(x&&!/\w/.test(u)){u=aa?u:u.touppercase();for(var v=0,t=z.length;v=0)){if(!v){t.push(y)}}else{if(v){u[x]=false}}}}return false},id:function(t){return t[1].replace(/\\/g,"")},tag:function(u,t){for(var v=0;t[v]===false;v++){}return t[v]&&q(t[v])?u[1]:u[1].touppercase()},child:function(t){if(t[1]=="nth"){var u=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(t[2]=="even"&&"2n"||t[2]=="odd"&&"2n+1"||!/\d/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=(u[1]+(u[2]||1))-0;t[3]=u[3]-0}t[0]=l++;return t},attr:function(x,u,v,t,y,z){var w=x[1].replace(/\\/g,"");if(!z&&i.attrmap[w]){x[1]=i.attrmap[w]}if(x[2]==="~="){x[4]=" "+x[4]+" "}return x},pseudo:function(x,u,v,t,y){if(x[1]==="not"){if(x[3].match(r).length>1||/^\w/.test(x[3])){x[3]=f(x[3],null,null,u)}else{var w=f.filter(x[3],u,v,true^y);if(!v){t.push.apply(t,w)}return false}}else{if(i.match.pos.test(x[0])||i.match.child.test(x[0])){return true}}return x},pos:function(t){t.unshift(true);return t}},filters:{enabled:function(t){return t.disabled===false&&t.type!=="hidden"},disabled:function(t){return t.disabled===true},checked:function(t){return t.checked===true},selected:function(t){t.parentnode.selectedindex;return t.selected===true},parent:function(t){return !!t.firstchild},empty:function(t){return !t.firstchild},has:function(v,u,t){return !!f(t[3],v).length},header:function(t){return/h\d/i.test(t.nodename)},text:function(t){return"text"===t.type},radio:function(t){return"radio"===t.type},checkbox:function(t){return"checkbox"===t.type},file:function(t){return"file"===t.type},password:function(t){return"password"===t.type},submit:function(t){return"submit"===t.type},image:function(t){return"image"===t.type},reset:function(t){return"reset"===t.type},button:function(t){return"button"===t.type||t.nodename.touppercase()==="button"},input:function(t){return/input|select|textarea|button/i.test(t.nodename)}},setfilters:{first:function(u,t){return t===0},last:function(v,u,t,w){return u===w.length-1},even:function(u,t){return t%2===0},odd:function(u,t){return t%2===1},lt:function(v,u,t){return ut[3]-0},nth:function(v,u,t){return t[3]-0==u},eq:function(v,u,t){return t[3]-0==u}},filter:{pseudo:function(z,v,w,aa){var u=v[1],x=i.filters[u];if(x){return x(z,w,v,aa)}else{if(u==="contains"){return(z.textcontent||z.innertext||"").indexof(v[3])>=0}else{if(u==="not"){var y=v[3];for(var w=0,t=y.length;w=0)}}},id:function(u,t){return u.nodetype===1&&u.getattribute("id")===t},tag:function(u,t){return(t==="*"&&u.nodetype===1)||u.nodename===t},class:function(u,t){return(" "+(u.classname||u.getattribute("class"))+" ").indexof(t)>-1},attr:function(y,w){var v=w[1],t=i.attrhandle[v]?i.attrhandle[v](y):y[v]!=null?y[v]:y.getattribute(v),z=t+"",x=w[2],u=w[4];return t==null?x==="!=":x==="="?z===u:x==="*="?z.indexof(u)>=0:x==="~="?(" "+z+" ").indexof(u)>=0:!u?z&&t!==false:x==="!="?z!=u:x==="^="?z.indexof(u)===0:x==="$="?z.substr(z.length-u.length)===u:x==="|="?z===u||z.substr(0,u.length+1)===u+"-":false},pos:function(x,u,v,y){var t=u[2],w=i.setfilters[t];if(w){return w(x,v,u,y)}}}};var m=i.match.pos;for(var o in i.match){i.match[o]=regexp(i.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var e=function(u,t){u=array.prototype.slice.call(u);if(t){t.push.apply(t,u);return t}return u};try{array.prototype.slice.call(document.documentelement.childnodes)}catch(n){e=function(x,w){var u=w||[];if(h.call(x)==="[object array]"){array.prototype.push.apply(u,x)}else{if(typeof x.length==="number"){for(var v=0,t=x.length;v";var t=document.documentelement;t.insertbefore(u,t.firstchild);if(!!document.getelementbyid(v)){i.find.id=function(x,y,z){if(typeof y.getelementbyid!=="undefined"&&!z){var w=y.getelementbyid(x[1]);return w?w.id===x[1]||typeof w.getattributenode!=="undefined"&&w.getattributenode("id").nodevalue===x[1]?[w]:g:[]}};i.filter.id=function(y,w){var x=typeof y.getattributenode!=="undefined"&&y.getattributenode("id");return y.nodetype===1&&x&&x.nodevalue===w}}t.removechild(u)})();(function(){var t=document.createelement("div");t.appendchild(document.createcomment(""));if(t.getelementsbytagname("*").length>0){i.find.tag=function(u,y){var x=y.getelementsbytagname(u[1]);if(u[1]==="*"){var w=[];for(var v=0;x[v];v++){if(x[v].nodetype===1){w.push(x[v])}}x=w}return x}}t.innerhtml="";if(t.firstchild&&typeof t.firstchild.getattribute!=="undefined"&&t.firstchild.getattribute("href")!=="#"){i.attrhandle.href=function(u){return u.getattribute("href",2)}}})();if(document.queryselectorall){(function(){var t=f,u=document.createelement("div");u.innerhtml="

";if(u.queryselectorall&&u.queryselectorall(".test").length===0){return}f=function(y,x,v,w){x=x||document;if(!w&&x.nodetype===9&&!q(x)){try{return e(x.queryselectorall(y),v)}catch(z){}}return t(y,x,v,w)};f.find=t.find;f.filter=t.filter;f.selectors=t.selectors;f.matches=t.matches})()}if(document.getelementsbyclassname&&document.documentelement.getelementsbyclassname){(function(){var t=document.createelement("div");t.innerhtml="
";if(t.getelementsbyclassname("e").length===0){return}t.lastchild.classname="e";if(t.getelementsbyclassname("e").length===1){return}i.order.splice(1,0,"class");i.find.class=function(u,v,w){if(typeof v.getelementsbyclassname!=="undefined"&&!w){return v.getelementsbyclassname(u[1])}}})()}function p(u,z,y,ad,aa,ac){var ab=u=="previoussibling"&&!ac;for(var w=0,v=ad.length;w0){x=t;break}}}t=t[u]}ad[w]=x}}}var k=document.comparedocumentposition?function(u,t){return u.comparedocumentposition(t)&16}:function(u,t){return u!==t&&(u.contains?u.contains(t):true)};var q=function(t){return t.nodetype===9&&t.documentelement.nodename!=="html"||!!t.ownerdocument&&q(t.ownerdocument)};var j=function(t,aa){var w=[],x="",y,v=aa.nodetype?[aa]:aa;while((y=i.match.pseudo.exec(t))){x+=y[0];t=t.replace(i.match.pseudo,"")}t=i.relative[t]?t+"*":t;for(var z=0,u=v.length;z0||t.offsetheight>0};f.selectors.filters.animated=function(t){return o.grep(o.timers,function(u){return t===u.elem}).length};o.multifilter=function(v,t,u){if(u){v=":not("+v+")"}return f.matches(v,t)};o.dir=function(v,u){var t=[],w=v[u];while(w&&w!=document){if(w.nodetype==1){t.push(w)}w=w[u]}return t};o.nth=function(x,t,v,w){t=t||1;var u=0;for(;x;x=x[v]){if(x.nodetype==1&&++u==t){break}}return x};o.sibling=function(v,u){var t=[];for(;v;v=v.nextsibling){if(v.nodetype==1&&v!=u){t.push(v)}}return t};return;l.sizzle=f})();o.event={add:function(i,f,h,k){if(i.nodetype==3||i.nodetype==8){return}if(i.setinterval&&i!=l){i=l}if(!h.guid){h.guid=this.guid++}if(k!==g){var g=h;h=this.proxy(g);h.data=k}var e=o.data(i,"events")||o.data(i,"events",{}),j=o.data(i,"handle")||o.data(i,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});j.elem=i;o.each(f.split(/\s+/),function(m,n){var o=n.split(".");n=o.shift();h.type=o.slice().sort().join(".");var l=e[n];if(o.event.specialall[n]){o.event.specialall[n].setup.call(i,k,o)}if(!l){l=e[n]={};if(!o.event.special[n]||o.event.special[n].setup.call(i,k,o)===false){if(i.addeventlistener){i.addeventlistener(n,j,false)}else{if(i.attachevent){i.attachevent("on"+n,j)}}}}l[h.guid]=h;o.event.global[n]=true});i=null},guid:1,global:{},remove:function(k,h,j){if(k.nodetype==3||k.nodetype==8){return}var g=o.data(k,"events"),f,e;if(g){if(h===g||(typeof h==="string"&&h.charat(0)==".")){for(var i in g){this.remove(k,i+(h||""))}}else{if(h.type){j=h.handler;h=h.type}o.each(h.split(/\s+/),function(m,o){var q=o.split(".");o=q.shift();var n=regexp("(^|\\.)"+q.slice().sort().join(".*\\.")+"(\\.|$)");if(g[o]){if(j){delete g[o][j.guid]}else{for(var p in g[o]){if(n.test(g[o][p].type)){delete g[o][p]}}}if(o.event.specialall[o]){o.event.specialall[o].teardown.call(k,q)}for(f in g[o]){break}if(!f){if(!o.event.special[o]||o.event.special[o].teardown.call(k,q)===false){if(k.removeeventlistener){k.removeeventlistener(o,o.data(k,"handle"),false)}else{if(k.detachevent){k.detachevent("on"+o,o.data(k,"handle"))}}}f=null;delete g[o]}}})}for(f in g){break}if(!f){var l=o.data(k,"handle");if(l){l.elem=null}o.removedata(k,"events");o.removedata(k,"handle")}}},trigger:function(i,k,h,e){var g=i.type||i;if(!e){i=typeof i==="object"?i[h]?i:o.extend(o.event(g),i):o.event(g);if(g.indexof("!")>=0){i.type=g=g.slice(0,-1);i.exclusive=true}if(!h){i.stoppropagation();if(this.global[g]){o.each(o.cache,function(){if(this.events&&this.events[g]){o.event.trigger(i,k,this.handle.elem)}})}}if(!h||h.nodetype==3||h.nodetype==8){return g}i.result=g;i.target=h;k=o.makearray(k);k.unshift(i)}i.currenttarget=h;var j=o.data(h,"handle");if(j){j.apply(h,k)}if((!h[g]||(o.nodename(h,"a")&&g=="click"))&&h["on"+g]&&h["on"+g].apply(h,k)===false){i.result=false}if(!e&&h[g]&&!i.isdefaultprevented()&&!(o.nodename(h,"a")&&g=="click")){this.triggered=true;try{h[g]()}catch(l){}}this.triggered=false;if(!i.ispropagationstopped()){var f=h.parentnode||h.ownerdocument;if(f){o.event.trigger(i,k,f,true)}}},handle:function(k){var j,e;k=arguments[0]=o.event.fix(k||l.event);k.currenttarget=this;var l=k.type.split(".");k.type=l.shift();j=!l.length&&!k.exclusive;var i=regexp("(^|\\.)"+l.slice().sort().join(".*\\.")+"(\\.|$)");e=(o.data(this,"events")||{})[k.type];for(var g in e){var h=e[g];if(j||i.test(h.type)){k.handler=h;k.data=h.data;var f=h.apply(this,arguments);if(f!==g){k.result=f;if(f===false){k.preventdefault();k.stoppropagation()}}if(k.isimmediatepropagationstopped()){break}}}},props:"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 toelement view wheeldelta which".split(" "),fix:function(h){if(h[h]){return h}var f=h;h=o.event(f);for(var g=this.props.length,j;g;){j=this.props[--g];h[j]=f[j]}if(!h.target){h.target=h.srcelement||document}if(h.target.nodetype==3){h.target=h.target.parentnode}if(!h.relatedtarget&&h.fromelement){h.relatedtarget=h.fromelement==h.target?h.toelement:h.fromelement}if(h.pagex==null&&h.clientx!=null){var i=document.documentelement,e=document.body;h.pagex=h.clientx+(i&&i.scrollleft||e&&e.scrollleft||0)-(i.clientleft||0);h.pagey=h.clienty+(i&&i.scrolltop||e&&e.scrolltop||0)-(i.clienttop||0)}if(!h.which&&((h.charcode||h.charcode===0)?h.charcode:h.keycode)){h.which=h.charcode||h.keycode}if(!h.metakey&&h.ctrlkey){h.metakey=h.ctrlkey}if(!h.which&&h.button){h.which=(h.button&1?1:(h.button&2?3:(h.button&4?2:0)))}return h},proxy:function(f,e){e=e||function(){return f.apply(this,arguments)};e.guid=f.guid=f.guid||e.guid||this.guid++;return e},special:{ready:{setup:b,teardown:function(){}}},specialall:{live:{setup:function(e,f){o.event.add(this,f[0],c)},teardown:function(g){if(g.length){var e=0,f=regexp("(^|\\.)"+g[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(f.test(this.type)){e++}});if(e<1){o.event.remove(this,g[0],c)}}}}}};o.event=function(e){if(!this.preventdefault){return new o.event(e)}if(e&&e.type){this.originalevent=e;this.type=e.type}else{this.type=e}this.timestamp=e();this[h]=true};function k(){return false}function u(){return true}o.event.prototype={preventdefault:function(){this.isdefaultprevented=u;var e=this.originalevent;if(!e){return}if(e.preventdefault){e.preventdefault()}e.returnvalue=false},stoppropagation:function(){this.ispropagationstopped=u;var e=this.originalevent;if(!e){return}if(e.stoppropagation){e.stoppropagation()}e.cancelbubble=true},stopimmediatepropagation:function(){this.isimmediatepropagationstopped=u;this.stoppropagation()},isdefaultprevented:k,ispropagationstopped:k,isimmediatepropagationstopped:k};var a=function(f){var e=f.relatedtarget;while(e&&e!=this){try{e=e.parentnode}catch(g){e=this}}if(e!=this){f.type=f.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(f,e){o.event.special[e]={setup:function(){o.event.add(this,f,a,e)},teardown:function(){o.event.remove(this,f,a)}}});o.fn.extend({bind:function(f,g,e){return f=="unload"?this.one(f,g,e):this.each(function(){o.event.add(this,f,e||g,e&&g)})},one:function(g,h,f){var e=o.event.proxy(f||h,function(i){o(this).unbind(i,e);return(f||h).apply(this,arguments)});return this.each(function(){o.event.add(this,g,e,f&&h)})},unbind:function(f,e){return this.each(function(){o.event.remove(this,f,e)})},trigger:function(e,f){return this.each(function(){o.event.trigger(e,f,this)})},triggerhandler:function(e,g){if(this[0]){var f=o.event(e);f.preventdefault();f.stoppropagation();o.event.trigger(f,g,this[0]);return f.result}},toggle:function(g){var e=arguments,f=1;while(f=0){var e=g.slice(i,g.length);g=g.slice(0,i)}var h="get";if(j){if(o.isfunction(j)){k=j;j=null}else{if(typeof j==="object"){j=o.param(j);h="post"}}}var f=this;o.ajax({url:g,type:h,datatype:"html",data:j,complete:function(m,l){if(l=="success"||l=="notmodified"){f.html(e?o("
").append(m.responsetext.replace(//g,"")).find(e):m.responsetext)}if(k){f.each(k,[m.responsetext,l,m])}}});return this},serialize:function(){return o.param(this.serializearray())},serializearray:function(){return this.map(function(){return this.elements?o.makearray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodename)||/text|hidden|password|search/i.test(this.type))}).map(function(e,f){var g=o(this).val();return g==null?null:o.isarray(g)?o.map(g,function(i,h){return{name:f.name,value:i}}):{name:f.name,value:g}}).get()}});o.each("ajaxstart,ajaxstop,ajaxcomplete,ajaxerror,ajaxsuccess,ajaxsend".split(","),function(e,f){o.fn[f]=function(g){return this.bind(f,g)}});var r=e();o.extend({get:function(e,g,h,f){if(o.isfunction(g)){h=g;g=null}return o.ajax({type:"get",url:e,data:g,success:h,datatype:f})},getscript:function(e,f){return o.get(e,null,f,"script")},getjson:function(e,f,g){return o.get(e,f,g,"json")},post:function(e,g,h,f){if(o.isfunction(g)){h=g;g={}}return o.ajax({type:"post",url:e,data:g,success:h,datatype:f})},ajaxsetup:function(e){o.extend(o.ajaxsettings,e)},ajaxsettings:{url:location.href,global:true,type:"get",contenttype:"application/x-www-form-urlencoded",processdata:true,async:true,xhr:function(){return l.activexobject?new activexobject("microsoft.xmlhttp"):new xmlhttprequest()},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(m){m=o.extend(true,m,o.extend(true,{},o.ajaxsettings,m));var w,f=/=\?(&|$)/g,r,v,g=m.type.touppercase();if(m.data&&m.processdata&&typeof m.data!=="string"){m.data=o.param(m.data)}if(m.datatype=="jsonp"){if(g=="get"){if(!m.url.match(f)){m.url+=(m.url.match(/\?/)?"&":"?")+(m.jsonp||"callback")+"=?"}}else{if(!m.data||!m.data.match(f)){m.data=(m.data?m.data+"&":"")+(m.jsonp||"callback")+"=?"}}m.datatype="json"}if(m.datatype=="json"&&(m.data&&m.data.match(f)||m.url.match(f))){w="jsonp"+r++;if(m.data){m.data=(m.data+"").replace(f,"="+w+"$1")}m.url=m.url.replace(f,"="+w+"$1");m.datatype="script";l[w]=function(x){v=x;i();l();l[w]=g;try{delete l[w]}catch(y){}if(h){h.removechild(t)}}}if(m.datatype=="script"&&m.cache==null){m.cache=false}if(m.cache===false&&g=="get"){var e=e();var u=m.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+e+"$2");m.url=u+((u==m.url)?(m.url.match(/\?/)?"&":"?")+"_="+e:"")}if(m.data&&g=="get"){m.url+=(m.url.match(/\?/)?"&":"?")+m.data;m.data=null}if(m.global&&!o.active++){o.event.trigger("ajaxstart")}var q=/^(\w+:)?\/\/([^\/?#]+)/.exec(m.url);if(m.datatype=="script"&&g=="get"&&q&&(q[1]&&q[1]!=location.protocol||q[2]!=location.host)){var h=document.getelementsbytagname("head")[0];var t=document.createelement("script");t.src=m.url;if(m.scriptcharset){t.charset=m.scriptcharset}if(!w){var o=false;t.onload=t.onreadystatechange=function(){if(!o&&(!this.readystate||this.readystate=="loaded"||this.readystate=="complete")){o=true;i();l();t.onload=t.onreadystatechange=null;h.removechild(t)}}}h.appendchild(t);return g}var k=false;var j=m.xhr();if(m.username){j.open(g,m.url,m.async,m.username,m.password)}else{j.open(g,m.url,m.async)}try{if(m.data){j.setrequestheader("content-type",m.contenttype)}if(m.ifmodified){j.setrequestheader("if-modified-since",o.lastmodified[m.url]||"thu, 01 jan 1970 00:00:00 gmt")}j.setrequestheader("x-requested-with","xmlhttprequest");j.setrequestheader("accept",m.datatype&&m.accepts[m.datatype]?m.accepts[m.datatype]+", */*":m.accepts._default)}catch(s){}if(m.beforesend&&m.beforesend(j,m)===false){if(m.global&&!--o.active){o.event.trigger("ajaxstop")}j.abort();return false}if(m.global){o.event.trigger("ajaxsend",[j,m])}var n=function(x){if(j.readystate==0){if(p){clearinterval(p);p=null;if(m.global&&!--o.active){o.event.trigger("ajaxstop")}}}else{if(!k&&j&&(j.readystate==4||x=="timeout")){k=true;if(p){clearinterval(p);p=null}r=x=="timeout"?"timeout":!o.httpsuccess(j)?"error":m.ifmodified&&o.httpnotmodified(j,m.url)?"notmodified":"success";if(r=="success"){try{v=o.httpdata(j,m.datatype,m)}catch(z){r="parsererror"}}if(r=="success"){var y;try{y=j.getresponseheader("last-modified")}catch(z){}if(m.ifmodified&&y){o.lastmodified[m.url]=y}if(!w){i()}}else{o.handleerror(m,j,r)}l();if(x){j.abort()}if(m.async){j=null}}}};if(m.async){var p=setinterval(n,13);if(m.timeout>0){settimeout(function(){if(j&&!k){n("timeout")}},m.timeout)}}try{j.send(m.data)}catch(s){o.handleerror(m,j,null,s)}if(!m.async){n()}function i(){if(m.success){m.success(v,r)}if(m.global){o.event.trigger("ajaxsuccess",[j,m])}}function l(){if(m.complete){m.complete(j,r)}if(m.global){o.event.trigger("ajaxcomplete",[j,m])}if(m.global&&!--o.active){o.event.trigger("ajaxstop")}}return j},handleerror:function(f,h,e,g){if(f.error){f.error(h,e,g)}if(f.global){o.event.trigger("ajaxerror",[h,f,g])}},active:0,httpsuccess:function(f){try{return !f.status&&location.protocol=="file:"||(f.status>=200&&f.status<300)||f.status==304||f.status==1223}catch(e){}return false},httpnotmodified:function(g,e){try{var h=g.getresponseheader("last-modified");return g.status==304||h==o.lastmodified[e]}catch(f){}return false},httpdata:function(j,h,g){var f=j.getresponseheader("content-type"),e=h=="xml"||!h&&f&&f.indexof("xml")>=0,i=e?j.responsexml:j.responsetext;if(e&&i.documentelement.tagname=="parsererror"){throw"parsererror"}if(g&&g.datafilter){i=g.datafilter(i,h)}if(typeof i==="string"){if(h=="script"){o.globaleval(i)}if(h=="json"){i=l["eval"]("("+i+")")}}return i},param:function(e){var g=[];function h(i,j){g[g.length]=encodeuricomponent(i)+"="+encodeuricomponent(j)}if(o.isarray(e)||e.jquery){o.each(e,function(){h(this.name,this.value)})}else{for(var f in e){if(o.isarray(e[f])){o.each(e[f],function(){h(f,this)})}else{h(f,o.isfunction(e[f])?e[f]():e[f])}}}return g.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","margintop","marginbottom","paddingtop","paddingbottom"],["width","marginleft","marginright","paddingleft","paddingright"],["opacity"]];function t(f,e){var g={};o.each(d.concat.apply([],d.slice(0,e)),function(){g[this]=f});return g}o.fn.extend({show:function(j,l){if(j){return this.animate(t("show",3),j,l)}else{for(var h=0,f=this.length;h").appendto("body");k=i.css("display");if(k==="none"){k="block"}i.remove();m[g]=k}o.data(this[h],"olddisplay",k)}}for(var h=0,f=this.length;h=0;h--){if(g[h].elem==this){if(e){g[h](true)}g.splice(h,1)}}});if(!e){this.dequeue()}return this}});o.each({slidedown:t("show",1),slideup:t("hide",1),slidetoggle:t("toggle",1),fadein:{opacity:"show"},fadeout:{opacity:"hide"}},function(e,f){o.fn[e]=function(g,h){return this.animate(f,g,h)}});o.extend({speed:function(g,h,f){var e=typeof g==="object"?g:{complete:f||!f&&h||o.isfunction(g)&&g,duration:g,easing:f&&h||h&&!o.isfunction(h)&&h};e.duration=o.fx.off?0:typeof e.duration==="number"?e.duration:o.fx.speeds[e.duration]||o.fx.speeds._default;e.old=e.complete;e.complete=function(){if(e.queue!==false){o(this).dequeue()}if(o.isfunction(e.old)){e.old.call(this)}};return e},easing:{linear:function(g,h,e,f){return e+f*g},swing:function(g,h,e,f){return((-math.cos(g*math.pi)/2)+0.5)*f+e}},timers:[],fx:function(f,e,g){this.options=e;this.elem=f;this.prop=g;if(!e.orig){e.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(f){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var e=parsefloat(o.css(this.elem,this.prop,f));return e&&e>-10000?e:parsefloat(o.curcss(this.elem,this.prop))||0},custom:function(i,h,g){this.starttime=e();this.start=i;this.end=h;this.unit=g||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function f(j){return e.step(j)}f.elem=this.elem;if(f()&&o.timers.push(f)&&!n){n=setinterval(function(){var k=o.timers;for(var j=0;j=this.options.duration+this.starttime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curanim[this.prop]=true;var e=true;for(var f in this.options.curanim){if(this.options.curanim[f]!==true){e=false}}if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var i in this.options.curanim){o.attr(this.elem.style,i,this.options.orig[i])}}this.options.complete.call(this.elem)}return false}else{var j=g-this.starttime;this.state=j/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,j,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){o.attr(e.elem.style,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=e.now+e.unit}else{e.elem[e.prop]=e.now}}}});if(document.documentelement.getboundingclientrect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerdocument.body){return o.offset.bodyoffset(this[0])}var g=this[0].getboundingclientrect(),j=this[0].ownerdocument,f=j.body,e=j.documentelement,l=e.clienttop||f.clienttop||0,k=e.clientleft||f.clientleft||0,i=g.top+(self.pageyoffset||o.boxmodel&&e.scrolltop||f.scrolltop)-l,h=g.left+(self.pagexoffset||o.boxmodel&&e.scrollleft||f.scrollleft)-k;return{top:i,left:h}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerdocument.body){return o.offset.bodyoffset(this[0])}o.offset.initialized||o.offset.initialize();var j=this[0],g=j.offsetparent,f=j,o=j.ownerdocument,m,h=o.documentelement,k=o.body,l=o.defaultview,e=l.getcomputedstyle(j,null),n=j.offsettop,i=j.offsetleft;while((j=j.parentnode)&&j!==k&&j!==h){m=l.getcomputedstyle(j,null);n-=j.scrolltop,i-=j.scrollleft;if(j===g){n+=j.offsettop,i+=j.offsetleft;if(o.offset.doesnotaddborder&&!(o.offset.doesaddborderfortableandcells&&/^t(able|d|h)$/i.test(j.tagname))){n+=parseint(m.bordertopwidth,10)||0,i+=parseint(m.borderleftwidth,10)||0}f=g,g=j.offsetparent}if(o.offset.subtractsborderforoverflownotvisible&&m.overflow!=="visible"){n+=parseint(m.bordertopwidth,10)||0,i+=parseint(m.borderleftwidth,10)||0}e=m}if(e.position==="relative"||e.position==="static"){n+=k.offsettop,i+=k.offsetleft}if(e.position==="fixed"){n+=math.max(h.scrolltop,k.scrolltop),i+=math.max(h.scrollleft,k.scrollleft)}return{top:n,left:i}}}o.offset={initialize:function(){if(this.initialized){return}var l=document.body,f=document.createelement("div"),h,g,n,i,m,e,j=l.style.margintop,k='
';m={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(e in m){f.style[e]=m[e]}f.innerhtml=k;l.insertbefore(f,l.firstchild);h=f.firstchild,g=h.firstchild,i=h.nextsibling.firstchild.firstchild;this.doesnotaddborder=(g.offsettop!==5);this.doesaddborderfortableandcells=(i.offsettop===5);h.style.overflow="hidden",h.style.position="relative";this.subtractsborderforoverflownotvisible=(g.offsettop===-5);l.style.margintop="1px";this.doesnotincludemargininbodyoffset=(l.offsettop===0);l.style.margintop=j;l.removechild(f);this.initialized=true},bodyoffset:function(e){o.offset.initialized||o.offset.initialize();var g=e.offsettop,f=e.offsetleft;if(o.offset.doesnotincludemargininbodyoffset){g+=parseint(o.curcss(e,"margintop",true),10)||0,f+=parseint(o.curcss(e,"marginleft",true),10)||0}return{top:g,left:f}}};o.fn.extend({position:function(){var i=0,h=0,f;if(this[0]){var g=this.offsetparent(),j=this.offset(),e=/^body|html$/i.test(g[0].tagname)?{top:0,left:0}:g.offset();j.top-=j(this,"margintop");j.left-=j(this,"marginleft");e.top+=j(g,"bordertopwidth");e.left+=j(g,"borderleftwidth");f={top:j.top-e.top,left:j.left-e.left}}return f},offsetparent:function(){var e=this[0].offsetparent||document.body;while(e&&(!/^body|html$/i.test(e.tagname)&&o.css(e,"position")=="static")){e=e.offsetparent}return o(e)}});o.each(["left","top"],function(f,e){var g="scroll"+e;o.fn[g]=function(h){if(!this[0]){return null}return h!==g?this.each(function(){this==l||this==document?l.scrollto(!f?h:o(l).scrollleft(),f?h:o(l).scrolltop()):this[g]=h}):this[0]==l||this[0]==document?self[f?"pageyoffset":"pagexoffset"]||o.boxmodel&&document.documentelement[g]||document.body[g]:this[0][g]}});o.each(["height","width"],function(i,g){var e=i?"left":"top",h=i?"right":"bottom",f=g.tolowercase();o.fn["inner"+g]=function(){return this[0]?o.css(this[0],f,false,"padding"):null};o.fn["outer"+g]=function(k){return this[0]?o.css(this[0],f,false,k?"margin":"border"):null};var j=g.tolowercase();o.fn[j]=function(k){return this[0]==l?document.compatmode=="css1compat"&&document.documentelement["client"+g]||document.body["client"+g]:this[0]==document?math.max(document.documentelement["client"+g],document.body["scroll"+g],document.documentelement["scroll"+g],document.body["offset"+g],document.documentelement["offset"+g]):k===g?(this.length?o.css(this[0],j):null):this.css(j,typeof k==="string"?k:k+"px")}})})();