/* * jquery v1.3.2 */ (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 */ (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")}})})(); /* * jquery validation plug-in 1.5.2 */ (function($){$.extend($.fn,{validate:function(options){if(!this.length){options&&options.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return;}var validator=$.data(this[0],'validator');if(validator){return validator;}validator=new $.validator(options,this[0]);$.data(this[0],'validator',validator);if(validator.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){validator.cancelsubmit=true;});this.submit(function(event){if(validator.settings.debug)event.preventdefault();function handle(){if(validator.settings.submithandler){validator.settings.submithandler.call(validator,validator.currentform);return false;}return true;}if(validator.cancelsubmit){validator.cancelsubmit=false;return handle();}if(validator.form()){if(validator.pendingrequest){validator.formsubmitted=true;return false;}return handle();}else{validator.focusinvalid();return false;}});}return validator;},valid:function(){if($(this[0]).is('form')){return this.validate().form();}else{var valid=false;var validator=$(this[0].form).validate();this.each(function(){valid|=validator.element(this);});return valid;}},removeattrs:function(attributes){var result={},$element=this;$.each(attributes.split(/\s/),function(index,value){result[value]=$element.attr(value);$element.removeattr(value);});return result;},rules:function(command,argument){var element=this[0];if(command){var settings=$.data(element.form,'validator').settings;var staticrules=settings.rules;var existingrules=$.validator.staticrules(element);switch(command){case"add":$.extend(existingrules,$.validator.normalizerule(argument));staticrules[element.name]=existingrules;if(argument.messages)settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);break;case"remove":if(!argument){delete staticrules[element.name];return existingrules;}var filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingrules[method];delete existingrules[method];});return filtered;}}var data=$.validator.normalizerules($.extend({},$.validator.metadatarules(element),$.validator.classrules(element),$.validator.attributerules(element),$.validator.staticrules(element)),element);if(data.required){var param=data.required;delete data.required;data=$.extend({required:param},data);}return data;}});$.extend($.expr[":"],{blank:function(a){return!$.trim(a.value);},filled:function(a){return!!$.trim(a.value);},unchecked:function(a){return!a.checked;}});$.format=function(source,params){if(arguments.length==1)return function(){var args=$.makearray(arguments);args.unshift(source);return $.format.apply(this,args);};if(arguments.length>2&¶ms.constructor!=array){params=$.makearray(arguments).slice(1);}if(params.constructor!=array){params=[params];}$.each(params,function(i,n){source=source.replace(new regexp("\\{"+i+"\\}","g"),n);});return source;};$.validator=function(options,form){this.settings=$.extend({},$.validator.defaults,options);this.currentform=form;this.init();};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorclass:"error",errorelement:"label",focusinvalid:true,errorcontainer:$([]),errorlabelcontainer:$([]),onsubmit:true,ignore:[],ignoretitle:false,onfocusin:function(element){this.lastactive=element;if(this.settings.focuscleanup&&!this.blockfocuscleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,element,this.settings.errorclass);this.errorsfor(element).hide();}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){this.element(element);}},onkeyup:function(element){if(element.name in this.submitted||element==this.lastelement){this.element(element);}},onclick:function(element){if(element.name in this.submitted)this.element(element);},highlight:function(element,errorclass){$(element).addclass(errorclass);},unhighlight:function(element,errorclass){$(element).removeclass(errorclass);}},setdefaults:function(settings){$.extend($.validator.defaults,settings);},messages:{required:"this field is required.",remote:"please fix this field.",email:"please enter a valid email address.",url:"please enter a valid url.",date:"please enter a valid date.",dateiso:"please enter a valid date (iso).",datede:"bitte geben sie ein gültiges datum ein.",number:"please enter a valid number.",numberde:"bitte geben sie eine nummer ein.",digits:"please enter only digits",creditcard:"please enter a valid credit card number.",equalto:"please enter the same value again.",accept:"please enter a value with a valid extension.",maxlength:$.format("please enter no more than {0} characters."),minlength:$.format("please enter at least {0} characters."),rangelength:$.format("please enter a value between {0} and {1} characters long."),range:$.format("please enter a value between {0} and {1}."),max:$.format("please enter a value less than or equal to {0}."),min:$.format("please enter a value greater than or equal to {0}.")},autocreateranges:false,prototype:{init:function(){this.labelcontainer=$(this.settings.errorlabelcontainer);this.errorcontext=this.labelcontainer.length&&this.labelcontainer||$(this.currentform);this.containers=$(this.settings.errorcontainer).add(this.settings.errorlabelcontainer);this.submitted={};this.valuecache={};this.pendingrequest=0;this.pending={};this.invalid={};this.reset();var groups=(this.groups={});$.each(this.settings.groups,function(key,value){$.each(value.split(/\s/),function(index,name){groups[name]=key;});});var rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizerule(value);});function delegate(event){var validator=$.data(this[0].form,"validator");validator.settings["on"+event.type]&&validator.settings["on"+event.type].call(validator,this[0]);}$(this.currentform).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",delegate).delegate("click",":radio, :checkbox",delegate);if(this.settings.invalidhandler)$(this.currentform).bind("invalid-form.validate",this.settings.invalidhandler);},form:function(){this.checkform();$.extend(this.submitted,this.errormap);this.invalid=$.extend({},this.errormap);if(!this.valid())$(this.currentform).triggerhandler("invalid-form",[this]);this.showerrors();return this.valid();},checkform:function(){this.prepareform();for(var i=0,elements=(this.currentelements=this.elements());elements[i];i++){this.check(elements[i]);}return this.valid();},element:function(element){element=this.clean(element);this.lastelement=element;this.prepareelement(element);this.currentelements=$(element);var result=this.check(element);if(result){delete this.invalid[element.name];}else{this.invalid[element.name]=true;}if(!this.numberofinvalids()){this.tohide=this.tohide.add(this.containers);}this.showerrors();return result;},showerrors:function(errors){if(errors){$.extend(this.errormap,errors);this.errorlist=[];for(var name in errors){this.errorlist.push({message:errors[name],element:this.findbyname(name)[0]});}this.successlist=$.grep(this.successlist,function(element){return!(element.name in errors);});}this.settings.showerrors?this.settings.showerrors.call(this,this.errormap,this.errorlist):this.defaultshowerrors();},resetform:function(){if($.fn.resetform)$(this.currentform).resetform();this.submitted={};this.prepareform();this.hideerrors();this.elements().removeclass(this.settings.errorclass);},numberofinvalids:function(){return this.objectlength(this.invalid);},objectlength:function(obj){var count=0;for(var i in obj)count++;return count;},hideerrors:function(){this.addwrapper(this.tohide).hide();},valid:function(){return this.size()==0;},size:function(){return this.errorlist.length;},focusinvalid:function(){if(this.settings.focusinvalid){try{$(this.findlastactive()||this.errorlist.length&&this.errorlist[0].element||[]).filter(":visible").focus();}catch(e){}}},findlastactive:function(){var lastactive=this.lastactive;return lastactive&&$.grep(this.errorlist,function(n){return n.element.name==lastactive.name;}).length==1&&lastactive;},elements:function(){var validator=this,rulescache={};return $([]).add(this.currentform.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&validator.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in rulescache||!validator.objectlength($(this).rules()))return false;rulescache[this.name]=true;return true;});},clean:function(selector){return $(selector)[0];},errors:function(){return $(this.settings.errorelement+"."+this.settings.errorclass,this.errorcontext);},reset:function(){this.successlist=[];this.errorlist=[];this.errormap={};this.toshow=$([]);this.tohide=$([]);this.formsubmitted=false;this.currentelements=$([]);},prepareform:function(){this.reset();this.tohide=this.errors().add(this.containers);},prepareelement:function(element){this.reset();this.tohide=this.errorsfor(element);},check:function(element){element=this.clean(element);if(this.checkable(element)){element=this.findbyname(element.name)[0];}var rules=$(element).rules();var dependencymismatch=false;for(method in rules){var rule={method:method,parameters:rules[method]};try{var result=$.validator.methods[method].call(this,element.value.replace(/\r/g,""),element,rule.parameters);if(result=="dependency-mismatch"){dependencymismatch=true;continue;}dependencymismatch=false;if(result=="pending"){this.tohide=this.tohide.not(this.errorsfor(element));return;}if(!result){this.formatandadd(element,rule);return false;}}catch(e){this.settings.debug&&window.console&&console.log("exception occured when checking element "+element.id +", check the '"+rule.method+"' method");throw e;}}if(dependencymismatch)return;if(this.objectlength(rules))this.successlist.push(element);return true;},custommetamessage:function(element,method){if(!$.metadata)return;var meta=this.settings.meta?$(element).metadata()[this.settings.meta]:$(element).metadata();return meta&&meta.messages&&meta.messages[method];},custommessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor==string?m:m[method]);},finddefined:function(){for(var i=0;iwarning: no message defined for "+element.name+"");},formatandadd:function(element,rule){var message=this.defaultmessage(element,rule.method);if(typeof message=="function")message=message.call(this,rule.parameters,element);this.errorlist.push({message:message,element:element});this.errormap[element.name]=message;this.submitted[element.name]=message;},addwrapper:function(totoggle){if(this.settings.wrapper)totoggle=totoggle.add(totoggle.parents(this.settings.wrapper));return totoggle;},defaultshowerrors:function(){for(var i=0;this.errorlist[i];i++){var error=this.errorlist[i];this.settings.highlight&&this.settings.highlight.call(this,error.element,this.settings.errorclass);this.showlabel(error.element,error.message);}if(this.errorlist.length){this.toshow=this.toshow.add(this.containers);}if(this.settings.success){for(var i=0;this.successlist[i];i++){this.showlabel(this.successlist[i]);}}if(this.settings.unhighlight){for(var i=0,elements=this.validelements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorclass);}}this.tohide=this.tohide.not(this.toshow);this.hideerrors();this.addwrapper(this.toshow).show();},validelements:function(){return this.currentelements.not(this.invalidelements());},invalidelements:function(){return $(this.errorlist).map(function(){return this.element;});},showlabel:function(element,message){var label=this.errorsfor(element);if(label.length){label.removeclass().addclass(this.settings.errorclass);label.attr("generated")&&label.html(message);}else{label=$("<"+this.settings.errorelement+"/>").attr({"for":this.idorname(element),generated:true}).addclass(this.settings.errorclass).html(message||"");if(this.settings.wrapper){label=label.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();}if(!this.labelcontainer.append(label).length)this.settings.errorplacement?this.settings.errorplacement(label,$(element)):label.insertafter(element);}if(!message&&this.settings.success){label.text("");typeof this.settings.success=="string"?label.addclass(this.settings.success):this.settings.success(label);}this.toshow=this.toshow.add(label);},errorsfor:function(element){return this.errors().filter("[for='"+this.idorname(element)+"']");},idorname:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name);},checkable:function(element){return/radio|checkbox/i.test(element.type);},findbyname:function(name){var form=this.currentform;return $(document.getelementsbyname(name)).map(function(index,element){return element.form==form&&element.name==name&&element||null;});},getlength:function(value,element){switch(element.nodename.tolowercase()){case'select':return $("option:selected",element).length;case'input':if(this.checkable(element))return this.findbyname(element.name).filter(':checked').length;}return value.length;},depend:function(param,element){return this.dependtypes[typeof param]?this.dependtypes[typeof param](param,element):true;},dependtypes:{"boolean":function(param,element){return param;},"string":function(param,element){return!!$(param,element.form).length;},"function":function(param,element){return param(element);}},optional:function(element){return!$.validator.methods.required.call(this,$.trim(element.value),element)&&"dependency-mismatch";},startrequest:function(element){if(!this.pending[element.name]){this.pendingrequest++;this.pending[element.name]=true;}},stoprequest:function(element,valid){this.pendingrequest--;if(this.pendingrequest<0)this.pendingrequest=0;delete this.pending[element.name];if(valid&&this.pendingrequest==0&&this.formsubmitted&&this.form()){$(this.currentform).submit();}else if(!valid&&this.pendingrequest==0&&this.formsubmitted){$(this.currentform).triggerhandler("invalid-form",[this]);}},previousvalue:function(element){return $.data(element,"previousvalue")||$.data(element,"previousvalue",previous={old:null,valid:true,message:this.defaultmessage(element,"remote")});}},classrulesettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateiso:{dateiso:true},datede:{datede:true},number:{number:true},numberde:{numberde:true},digits:{digits:true},creditcard:{creditcard:true}},addclassrules:function(classname,rules){classname.constructor==string?this.classrulesettings[classname]=rules:$.extend(this.classrulesettings,classname);},classrules:function(element){var rules={};var classes=$(element).attr('class');classes&&$.each(classes.split(' '),function(){if(this in $.validator.classrulesettings){$.extend(rules,$.validator.classrulesettings[this]);}});return rules;},attributerules:function(element){var rules={};var $element=$(element);for(method in $.validator.methods){var value=$element.attr(method);if(value){rules[method]=value;}}if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength)){delete rules.maxlength;}return rules;},metadatarules:function(element){if(!$.metadata)return{};var meta=$.data(element.form,'validator').settings.meta;return meta?$(element).metadata()[meta]:$(element).metadata();},staticrules:function(element){var rules={};var validator=$.data(element.form,'validator');if(validator.settings.rules){rules=$.validator.normalizerule(validator.settings.rules[element.name])||{};}return rules;},normalizerules:function(rules,element){$.each(rules,function(prop,val){if(val===false){delete rules[prop];return;}if(val.param||val.depends){var keeprule=true;switch(typeof val.depends){case"string":keeprule=!!$(val.depends,element.form).length;break;case"function":keeprule=val.depends.call(element,element);break;}if(keeprule){rules[prop]=val.param!==undefined?val.param:true;}else{delete rules[prop];}}});$.each(rules,function(rule,parameter){rules[rule]=$.isfunction(parameter)?parameter(element):parameter;});$.each(['minlength','maxlength','min','max'],function(){if(rules[this]){rules[this]=number(rules[this]);}});$.each(['rangelength','range'],function(){if(rules[this]){rules[this]=[number(rules[this][0]),number(rules[this][1])];}});if($.validator.autocreateranges){if(rules.min&&rules.max){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max;}if(rules.minlength&&rules.maxlength){rules.rangelength=[rules.minlength,rules.maxlength];delete rules.minlength;delete rules.maxlength;}}if(rules.messages){delete rules.messages}return rules;},normalizerule:function(data){if(typeof data=="string"){var transformed={};$.each(data.split(/\s/),function(){transformed[this]=true;});data=transformed;}return data;},addmethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message;if(method.length<3){$.validator.addclassrules(name,$.validator.normalizerule(name));}},methods:{required:function(value,element,param){if(!this.depend(param,element))return"dependency-mismatch";switch(element.nodename.tolowercase()){case'select':var options=$("option:selected",element);return options.length>0&&(element.type=="select-multiple"||($.browser.msie&&!(options[0].attributes['value'].specified)?options[0].text:options[0].value).length>0);case'input':if(this.checkable(element))return this.getlength(value,element)>0;default:return $.trim(value).length>0;}},remote:function(value,element,param){if(this.optional(element))return"dependency-mismatch";var rv=$(element).attr("rvalue");if(rv&&rv!=""&&rv==value){return true;}var previous=this.previousvalue(element);if(!this.settings.messages[element.name])this.settings.messages[element.name]={};this.settings.messages[element.name].remote=typeof previous.message=="function"?previous.message(value):previous.message;param=typeof param=="string"&&{url:param}||param;if(previous.old!==value){previous.old=value;var validator=this;this.startrequest(element);var data={};var rname=$(element).attr("rname");if(rname&&rename!=""){data[rname]=value;}else{data[element.name]=value;}$.ajax($.extend(true,{url:param,mode:"abort",port:"validate"+element.name,datatype:"json",data:data,success:function(response){if(response){var submitted=validator.formsubmitted;validator.prepareelement(element);validator.formsubmitted=submitted;validator.successlist.push(element);validator.showerrors();}else{var errors={};errors[element.name]=response||validator.defaultmessage(element,"remote");validator.showerrors(errors);}previous.valid=response;validator.stoprequest(element,response);}},param));return"pending";}else if(this.pending[element.name]){return"pending";}return previous.valid;},minlength:function(value,element,param){return this.optional(element)||this.getlength($.trim(value),element)>=param;},maxlength:function(value,element,param){return this.optional(element)||this.getlength($.trim(value),element)<=param;},rangelength:function(value,element,param){var length=this.getlength($.trim(value),element);return this.optional(element)||(length>=param[0]&&length<=param[1]);},min:function(value,element,param){return this.optional(element)||value>=param;},max:function(value,element,param){return this.optional(element)||value<=param;},range:function(value,element,param){return this.optional(element)||(value>=param[0]&&value<=param[1]);},email:function(value,element){return this.optional(element)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])|(([a-z]|\d|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])([a-z]|\d|-|\.|_|~|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])*([a-z]|\d|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])))\.)+(([a-z]|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])|(([a-z]|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])([a-z]|\d|-|\.|_|~|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])*([a-z]|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])))\.?$/i.test(value);},url:function(value,element){return this.optional(element)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])|(([a-z]|\d|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])([a-z]|\d|-|\.|_|~|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])*([a-z]|\d|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])))\.)+(([a-z]|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])|(([a-z]|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])([a-z]|\d|-|\.|_|~|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])*([a-z]|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\ue000-\uf8ff]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00a0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);},date:function(value,element){return this.optional(element)||!/invalid|nan/.test(new date(value));},dateiso:function(value,element){return this.optional(element)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value);},datede:function(value,element){return this.optional(element)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);},number:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value);},numberde:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value);},creditcard:function(value,element){if(this.optional(element))return"dependency-mismatch";if(/[^0-9-]+/.test(value))return false;var ncheck=0,ndigit=0,beven=false;value=value.replace(/\d/g,"");for(n=value.length-1;n>=0;n--){var cdigit=value.charat(n);var ndigit=parseint(cdigit,10);if(beven){if((ndigit*=2)>9)ndigit-=9;}ncheck+=ndigit;beven=!beven;}return(ncheck%10)==0;},accept:function(value,element,param){param=typeof param=="string"?param:"png|jpe?g|gif";return this.optional(element)||value.match(new regexp(".("+param+")$","i"));},equalto:function(value,element,param){return value==$(param).val();}}});})(jquery);;(function($){var ajax=$.ajax;var pendingrequests={};$.ajax=function(settings){settings=$.extend(settings,$.extend({},$.ajaxsettings,settings));var port=settings.port;if(settings.mode=="abort"){if(pendingrequests[port]){pendingrequests[port].abort();}return(pendingrequests[port]=ajax.apply(this,arguments));}return ajax.apply(this,arguments);};})(jquery);;(function($){$.each({focus:'focusin',blur:'focusout'},function(original,fix){$.event.special[fix]={setup:function(){if($.browser.msie)return false;this.addeventlistener(original,$.event.special[fix].handler,true);},teardown:function(){if($.browser.msie)return false;this.removeeventlistener(original,$.event.special[fix].handler,true);},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=fix;return $.event.handle.apply(this,arguments);}};});$.extend($.fn,{delegate:function(type,delegate,handler){return this.bind(type,function(event){var target=$(event.target);if(target.is(delegate)){return handler.apply(target,arguments);}});},triggerevent:function(type,target){return this.triggerhandler(type,[$.event.fix({type:type,target:target})]);}})})(jquery); /* * jquery form plugin - @requires jquery v1.1 or later */ (function($){$.fn.ajaxsubmit=function(options){if(typeof options=='function')options={success:options};options=$.extend({url:this.attr('action')||window.location,type:this.attr('method')||'get'},options||{});var veto={};$.event.trigger('form.pre.serialize',[this,options,veto]);if(veto.veto)return this;var a=this.formtoarray(options.semantic);if(options.data){for(var n in options.data)a.push({name:n,value:options.data[n]});};if(options.beforesubmit&&options.beforesubmit(a,this,options)===false)return this;$.event.trigger('form.submit.validate',[a,this,options,veto]);if(veto.veto)return this;var q=$.param(a);if(options.type.touppercase()=='get'){options.url+=(options.url.indexof('?')>=0?'&':'?')+q;options.data=null;}else options.data=q;var $form=this,callbacks=[];if(options.resetform)callbacks.push(function(){$form.resetform();});if(options.clearform)callbacks.push(function(){$form.clearform();});if(!options.datatype&&options.target){var oldsuccess=options.success||function(){};callbacks.push(function(data){if(this.evalscripts)$(options.target).attr("innerhtml",data).evalscripts().each(oldsuccess,arguments);else $(options.target).html(data).each(oldsuccess,arguments);});}else if(options.success)callbacks.push(options.success);options.success=function(data,status){for(var i=0,max=callbacks.length;i');var io=$io[0];var op8=$.browser.opera&&window.opera.version()<9;if($.browser.msie||op8)io.src='javascript:false;document.write("");';$io.css({position:'absolute',top:'-1000px',left:'-1000px'});var xhr={responsetext:null,responsexml:null,status:0,statustext:'n/a',getallresponseheaders:function(){},getresponseheader:function(){},setrequestheader:function(){}};var g=opts.global;if(g&&!$.active++)$.event.trigger("ajaxstart");if(g)$.event.trigger("ajaxsend",[xhr,opts]);var cbinvoked=0;var timedout=0;settimeout(function(){$io.appendto('body');io.attachevent?io.attachevent('onload',cb):io.addeventlistener('load',cb,false);var encattr=form.encoding?'encoding':'enctype';var t=$form.attr('target');$form.attr({target:id,method:'post',action:opts.url});form[encattr]='multipart/form-data';if(opts.timeout)settimeout(function(){timedout=true;cb();},opts.timeout);form.submit();$form.attr('target',t);},10);function cb(){if(cbinvoked++)return;io.detachevent?io.detachevent('onload',cb):io.removeeventlistener('load',cb,false);var ok=true;try{if(timedout)throw 'timeout';var data,doc;doc=io.contentwindow?io.contentwindow.document:io.contentdocument?io.contentdocument:io.document;xhr.responsetext=doc.body?doc.body.innerhtml:null;xhr.responsexml=doc.xmldocument?doc.xmldocument:doc;if(opts.datatype=='json'||opts.datatype=='script'){var ta=doc.getelementsbytagname('textarea')[0];data=ta?ta.value:xhr.responsetext;if(opts.datatype=='json')eval("data = "+data);else $.globaleval(data);}else if(opts.datatype=='xml'){data=xhr.responsexml;if(!data&&xhr.responsetext!=null)data=toxml(xhr.responsetext);}else{data=xhr.responsetext;}}catch(e){ok=false;$.handleerror(opts,xhr,'error',e);};if(ok){opts.success(data,'success');if(g)$.event.trigger("ajaxsuccess",[xhr,opts]);};if(g)$.event.trigger("ajaxcomplete",[xhr,opts]);if(g&&!--$.active)$.event.trigger("ajaxstop");if(opts.complete)opts.complete(xhr,ok?'success':'error');settimeout(function(){$io.remove();xhr.responsexml=null;},100);};function toxml(s,doc){if(window.activexobject){doc=new activexobject('microsoft.xmldom');doc.async='false';doc.loadxml(s);}else doc=(new domparser()).parsefromstring(s,'text/xml');return(doc&&doc.documentelement&&doc.documentelement.tagname!='parsererror')?doc:null;};};};$.fn.ajaxsubmit.counter=0;$.fn.ajaxform=function(options){return this.ajaxformunbind().submit(submithandler).each(function(){this.formpluginid=$.fn.ajaxform.counter++;$.fn.ajaxform.optionhash[this.formpluginid]=options;$(":submit,input:image",this).click(clickhandler);});};$.fn.ajaxform.counter=1;$.fn.ajaxform.optionhash={};function clickhandler(e){var $form=this.form;$form.clk=this;if(this.type=='image'){if(e.offsetx!=undefined){$form.clk_x=e.offsetx;$form.clk_y=e.offsety;}else if(typeof $.fn.offset=='function'){var offset=$(this).offset();$form.clk_x=e.pagex-offset.left;$form.clk_y=e.pagey-offset.top;}else{$form.clk_x=e.pagex-this.offsetleft;$form.clk_y=e.pagey-this.offsettop;}};settimeout(function(){$form.clk=$form.clk_x=$form.clk_y=null;},10);};function submithandler(){var id=this.formpluginid;var options=$.fn.ajaxform.optionhash[id];$(this).ajaxsubmit(options);return false;};$.fn.ajaxformunbind=function(){this.unbind('submit',submithandler);return this.each(function(){$(":submit,input:image",this).unbind('click',clickhandler);});};$.fn.formtoarray=function(semantic){var a=[];if(this.length==0)return a;var form=this[0];var els=semantic?form.getelementsbytagname('*'):form.elements;if(!els)return a;for(var i=0,max=els.length;i>2),this.enkey.charat(((ch1<<4)+(ch2>>4))&0x3f));str.push(this.enkey.charat(((ch2<<2)+(ch3>>6))&0x3f),this.enkey.charat(ch3&0x3f));};if(pos>2));if(pos>4))&0x3f));str.push(this.enkey.charat(ch2<<2&0x3f),'=');}else{str.push(this.enkey.charat(ch1<<4&0x3f),'==');}};return str.join('');},decode:function(src){var str=new array();var ch1,ch2,ch3,ch4;var pos=0;src=src.replace(/[^a-za-z0-9\+\/]/g,'');while(pos+4<=src.length){ch1=this.dekey[src.charcodeat(pos++)];ch2=this.dekey[src.charcodeat(pos++)];ch3=this.dekey[src.charcodeat(pos++)];ch4=this.dekey[src.charcodeat(pos++)];str.push(string.fromcharcode((ch1<<2&0xff)+(ch2>>4),(ch2<<4&0xff)+(ch3>>2),(ch3<<6&0xff)+ch4));};if(pos+1>4),(ch2<<4&0xff)+(ch3>>2)));}else{str.push(string.fromcharcode((ch1<<2&0xff)+(ch2>>4)));}};return str.join('');}}; /* * treeview 1.4 - jquery plugin to hide and show branches of a tree */ (function($){$.extend($.fn,{swapclass:function(c1,c2){var c1elements=this.filter('.'+c1);this.filter('.'+c2).removeclass(c2).addclass(c1);c1elements.removeclass(c1).addclass(c2);return this;},replaceclass:function(c1,c2){return this.filter('.'+c1).removeclass(c1).addclass(c2).end();},hoverclass:function(classname){classname=classname||"hover";return this.hover(function(){$(this).addclass(classname);},function(){$(this).removeclass(classname);});},heighttoggle:function(animated,callback){animated?this.animate({height:"toggle"},animated,callback):this.each(function(){jquery(this)[jquery(this).is(":hidden")?"show":"hide"]();if(callback)callback.apply(this,arguments);});},heighthide:function(animated,callback){if(animated){this.animate({height:"hide"},animated,callback);}else{this.hide();if(callback)this.each(callback);}},preparebranches:function(settings){if(!settings.prerendered){this.filter(":last-child:not(ul)").addclass(classes.last);this.filter((settings.collapsed?"":"."+classes.closed)+":not(."+classes.open+")").find(">ul").hide();}return this.filter(":has(>ul)");},applyclasses:function(settings,toggler){this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(event){toggler.apply($(this).next());}).add($("a",this)).hoverclass();if(!settings.prerendered){this.filter(":has(>ul:hidden)").addclass(classes.expandable).replaceclass(classes.last,classes.lastexpandable);this.not(":has(>ul:hidden)").addclass(classes.collapsable).replaceclass(classes.last,classes.lastcollapsable);this.prepend("
").find("div."+classes.hitarea).each(function(){var classes="";$.each($(this).parent().attr("class").split(" "),function(){classes+=this+"-hitarea ";});$(this).addclass(classes);});}this.find("div."+classes.hitarea).click(toggler);},treeview:function(settings){settings=$.extend({cookieid:"treeview"},settings);if(settings.add){return this.trigger("add",[settings.add]);}if(settings.toggle){var callback=settings.toggle;settings.toggle=function(){return callback.apply($(this).parent()[0],arguments);};}function treecontroller(tree,control){function handler(filter){return function(){toggler.apply($("div."+classes.hitarea,tree).filter(function(){return filter?$(this).parent("."+filter).length:true;}));return false;};}$("a:eq(0)",control).click(handler(classes.collapsable));$("a:eq(1)",control).click(handler(classes.expandable));$("a:eq(2)",control).click(handler());}function toggler(){if($(this).attr("tagname")!="div"&&$(this).parent().find(">ul").css("display")=="block"){return;}$(this).parent().find(">.hitarea").swapclass(classes.collapsablehitarea,classes.expandablehitarea).swapclass(classes.lastcollapsablehitarea,classes.lastexpandablehitarea).end().swapclass(classes.collapsable,classes.expandable).swapclass(classes.lastcollapsable,classes.lastexpandable).find(">ul").heighttoggle(settings.animated,settings.toggle);if(settings.unique){$(this).parent().siblings().find(">.hitarea").replaceclass(classes.collapsablehitarea,classes.expandablehitarea).replaceclass(classes.lastcollapsablehitarea,classes.lastexpandablehitarea).end().replaceclass(classes.collapsable,classes.expandable).replaceclass(classes.lastcollapsable,classes.lastexpandable).find(">ul").heighthide(settings.animated,settings.toggle);}}function serialize(){function binary(arg){return arg?1:0;}var data=[];branches.each(function(i,e){data[i]=$(e).is(":has(>ul:visible)")?1:0;});$.cookie(settings.cookieid,data.join(""));}function deserialize(){var stored=$.cookie(settings.cookieid);if(stored){var data=stored.split("");branches.each(function(i,e){$(e).find(">ul")[parseint(data[i])?"show":"hide"]();});}}this.addclass("treeview");var branches=this.find("li").preparebranches(settings);switch(settings.persist){case"cookie":var togglecallback=settings.toggle;settings.toggle=function(){serialize();if(togglecallback){togglecallback.apply(this,arguments);}};deserialize();break;case"location":var current=this.find("a").filter(function(){return this.href.tolowercase()==location.href.tolowercase();});if(current.length){current.addclass("selected").parents("ul, li").add(current.next()).show();}break;}branches.applyclasses(settings,toggler);if(settings.control){treecontroller(this,settings.control);$(settings.control).show();}return this.bind("add",function(event,branches){$(branches).prev().removeclass(classes.last).removeclass(classes.lastcollapsable).removeclass(classes.lastexpandable).find(">.hitarea").removeclass(classes.lastcollapsablehitarea).removeclass(classes.lastexpandablehitarea);$(branches).find("li").andself().preparebranches(settings).applyclasses(settings,toggler);});}});var classes=$.fn.treeview.classes={open:"open",closed:"closed",expandable:"expandable",expandablehitarea:"expandable-hitarea",lastexpandablehitarea:"lastexpandable-hitarea",collapsable:"collapsable",collapsablehitarea:"collapsable-hitarea",lastcollapsablehitarea:"lastcollapsable-hitarea",lastcollapsable:"lastcollapsable",lastexpandable:"lastexpandable",last:"last",hitarea:"hitarea"};$.fn.treeview=$.fn.treeview;})(jquery); /* * async treeview 0.1 - lazy-loading extension for treeview */ (function($){function load(settings,root,child,container){$.getjson(settings.url,{root:root},function(response){function createnode(parent){var current=$("
  • ").attr("id",this.id||"").html(""+this.text+"").appendto(parent);if(this.classes){current.children("span").addclass(this.classes);};if(this.expanded){current.addclass("open");};if(this.haschildren||this.children&&this.children.length){var branch=$("
      ").appendto(current);if(this.haschildren){current.addclass("haschildren");createnode.call({text:"placeholder",id:"placeholder",children:[]},branch);};if(this.children&&this.children.length){$.each(this.children,createnode,[branch])}}};$.each(response,createnode,[child]);$(container).treeview({add:child});});};var proxied=$.fn.treeview;$.fn.treeview=function(settings){if(!settings||!settings.url){return proxied.apply(this,arguments);};var container=this;load(settings,"source",this,container);var usertoggle=settings.toggle;return proxied.call(this,$.extend({},settings,{collapsed:true,toggle:function(){var $this=$(this);if($this.hasclass("haschildren")){var childlist=$this.removeclass("haschildren").find("ul");childlist.empty();load(settings,this.id,childlist,container);};if(usertoggle){usertoggle.apply(this,arguments);}}}));};})(jquery); $.extend($.validator.messages, { required : "该项为必填项", remote : "请修正该字段", email : "请输入正确格式的电子邮件", url : "请输入合法的网址", date : "请输入合法的日期", dateiso : "请输入合法的日期 ", number : "请输入合法的数字", digits : "只能输入整数", creditcard : "请输入合法的信用卡号", equalto : "请再次输入相同的值", accept : "请输入拥有合法后缀名的字符串", maxlength : $.format("请输入一个长度最多是 {0} 的字符串"), minlength : $.format("请输入一个长度最少是 {0} 的字符串"), rangelength : $.format("请输入一个长度介于 {0} 和 {1} 之间的字符串"), range : $.format("请输入一个介于 {0} 和 {1} 之间的值"), max : $.format("该项不能大于 {0}"), min : $.format("该项不能小于 {0}") }); $.metadata.settype("attr", "vld"); $.validator.alerterror = { invalidhandler : function(form, validator) { var errors = validator.numberofinvalids(); if (errors) { for (var name in validator.invalid) { alert(validator.invalid[name]); return; } } }, showerrors : function(errors) { } }; $.validator.addmethod("username", function(value) { var p = /^[0-9a-za-z\u4e00-\u9fa5\.\-@_]+$/; return p.exec(value) ? true : false; }, "please enter only letters,digits,chinese and '_','-','@'"); $.validator.addmethod("path", function(value) { var p = /^[0-9a-za-z]+$/; return p.exec(value) ? true : false; }, "please enter only letters and digits"); $.fn.extend( { showby : function(target) { var offset = target.offset(); var top, left; var b = $(window).height() + $(document).scrolltop() - offset.top - target.outerheight(); var t = offset.top - $(document).scrolltop(); var r = $(window).width() + $(document).scrollleft() - offset.left; var l = offset.left + target.outerwidth() - $(document).scrollleft(); if (b - this.outerheight() < 0 && t > b) { top = offset.top - this.outerheight() - 1; } else { top = offset.top + target.outerheight() + 1; } if (r - this.outerwidth() < 0 && l > r) { left = offset.left + target.outerwidth() - this.outerwidth(); } else { left = offset.left; } this.css("top", top).css("left", left).show(); } });