/* * jquery 1.2.6 - new wave javascript * * copyright (c) 2008 john resig (jquery.com) * dual licensed under the mit (mit-license.txt) * and gpl (gpl-license.txt) licenses. * * $date: 2008-05-24 14:22:17 -0400 (sat, 24 may 2008) $ * $rev: 5685 $ */ (function(){var w=window.jquery,_$=window.$;var d=window.jquery=window.$=function(a,b){return new d.fn.init(a,b)};var u=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,issimple=/^.[^:#\[\.]*$/,undefined;d.fn=d.prototype={init:function(d,b){d=d||document;if(d.nodetype){this[0]=d;this.length=1;return this}if(typeof d=="string"){var c=u.exec(d);if(c&&(c[1]||!b)){if(c[1])d=d.clean([c[1]],b);else{var a=document.getelementbyid(c[3]);if(a){if(a.id!=c[3])return d().find(d);return d(a)}d=[]}}else return d(b).find(d)}else if(d.isfunction(d))return d(document)[d.fn.ready?"ready":"load"](d);return this.setarray(d.makearray(d))},jquery:"1.2.6",size:function(){return this.length},length:0,get:function(a){return a==undefined?d.makearray(this):this[a]},pushstack:function(b){var a=d(b);a.prevobject=this;return a},setarray:function(a){this.length=0;array.prototype.push.apply(this,a);return this},each:function(a,b){return d.each(this,a,b)},index:function(b){var a=-1;return d.inarray(b&&b.jquery?b[0]:b,this)},attr:function(c,a,b){var d=c;if(c.constructor==string)if(a===undefined)return this[0]&&d[b||"attr"](this[0],c);else{d={};d[c]=a}return this.each(function(i){for(c in d)d.attr(b?this.style:this,c,d.prop(this,d[c],b,i,c))})},css:function(b,a){if((b=='width'||b=='height')&&parsefloat(a)<0)a=undefined;return this.attr(b,a,"curcss")},text:function(b){if(typeof b!="object"&&b!=null)return this.empty().append((this[0]&&this[0].ownerdocument||document).createtextnode(b));var a="";d.each(b||this,function(){d.each(this.childnodes,function(){if(this.nodetype!=8)a+=this.nodetype!=1?this.nodevalue:d.fn.text([this])})});return a},wrapall:function(b){if(this[0])d(b,this[0].ownerdocument).clone().insertbefore(this[0]).map(function(){var a=this;while(a.firstchild)a=a.firstchild;return a}).append(this);return this},wrapinner:function(a){return this.each(function(){d(this).contents().wrapall(a)})},wrap:function(a){return this.each(function(){d(this).wrapall(a)})},append:function(){return this.dommanip(arguments,true,false,function(a){if(this.nodetype==1)this.appendchild(a)})},prepend:function(){return this.dommanip(arguments,true,true,function(a){if(this.nodetype==1)this.insertbefore(a,this.firstchild)})},before:function(){return this.dommanip(arguments,false,false,function(a){this.parentnode.insertbefore(a,this)})},after:function(){return this.dommanip(arguments,false,true,function(a){this.parentnode.insertbefore(a,this.nextsibling)})},end:function(){return this.prevobject||d([])},find:function(b){var c=d.map(this,function(a){return d.find(b,a)});return this.pushstack(/[^+>] [^+>]/.test(b)||b.indexof("..")>-1?d.unique(c):c)},clone:function(e){var f=this.map(function(){if(d.browser.msie&&!d.isxmldoc(this)){var a=this.clonenode(true),container=document.createelement("div");container.appendchild(a);return d.clean([container.innerhtml])[0]}else return this.clonenode(true)});var d=f.find("*").andself().each(function(){if(this[e]!=undefined)this[e]=null});if(e===true)this.find("*").andself().each(function(i){if(this.nodetype==3)return;var c=d.data(this,"events");for(var a in c)for(var b in c[a])d.event.add(d[i],a,c[a][b],c[a][b].data)});return f},filter:function(b){return this.pushstack(d.isfunction(b)&&d.grep(this,function(a,i){return b.call(a,i)})||d.multifilter(b,this))},not:function(b){if(b.constructor==string)if(issimple.test(b))return this.pushstack(d.multifilter(b,this,true));else b=d.multifilter(b,this);var a=b.length&&b[b.length-1]!==undefined&&!b.nodetype;return this.filter(function(){return a?d.inarray(this,b)<0:this!=b})},add:function(a){return this.pushstack(d.unique(d.merge(this.get(),typeof a=='string'?d(a):d.makearray(a))))},is:function(a){return!!a&&d.multifilter(a,this).length>0},hasclass:function(a){return this.is("."+a)},val:function(b){if(b==undefined){if(this.length){var c=this[0];if(d.nodename(c,"select")){var e=c.selectedindex,values=[],options=c.options,one=c.type=="select-one";if(e<0)return null;for(var i=one?e:0,max=one?e+1:options.length;i=0||d.inarray(this.name,b)>=0);else if(d.nodename(this,"select")){var a=d.makearray(b);d("option",this).each(function(){this.selected=(d.inarray(this.value,a)>=0||d.inarray(this.text,a)>=0)});if(!a.length)this.selectedindex=-1}else this.value=b})},html:function(a){return a==undefined?(this[0]?this[0].innerhtml:null):this.empty().append(a)},replacewith:function(a){return this.after(a).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushstack(array.prototype.slice.apply(this,arguments))},map:function(b){return this.pushstack(d.map(this,function(a,i){return b.call(a,i,a)}))},andself:function(){return this.add(this.prevobject)},data:function(d,b){var a=d.split(".");a[1]=a[1]?"."+a[1]:"";if(b===undefined){var c=this.triggerhandler("getdata"+a[1]+"!",[a[0]]);if(c===undefined&&this.length)c=d.data(this[0],d);return c===undefined&&a[1]?this.data(a[0]):c}else return this.trigger("setdata"+a[1]+"!",[a[0],b]).each(function(){d.data(this,d,b)})},removedata:function(a){return this.each(function(){d.removedata(this,a)})},dommanip:function(g,f,h,d){var e=this.length>1,elems;return this.each(function(){if(!elems){elems=d.clean(g,this.ownerdocument);if(h)elems.reverse()}var b=this;if(f&&d.nodename(this,"table")&&d.nodename(elems[0],"tr"))b=this.getelementsbytagname("tbody")[0]||this.appendchild(this.ownerdocument.createelement("tbody"));var c=d([]);d.each(elems,function(){var a=e?d(this).clone(true)[0]:this;if(d.nodename(a,"script"))c=c.add(a);else{if(a.nodetype==1)c=c.add(d("script",a).remove());d.call(b,a)}});c.each(evalscript)})}};d.fn.init.prototype=d.fn;function evalscript(i,a){if(a.src)d.ajax({url:a.src,async:false,datatype:"script"});else d.globaleval(a.text||a.textcontent||a.innerhtml||"");if(a.parentnode)a.parentnode.removechild(a)}function now(){return+new date}d.extend=d.fn.extend=function(){var b=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(b.constructor==boolean){deep=b;b=arguments[1]||{};i=2}if(typeof b!="object"&&typeof b!="function")b={};if(length==i){b=this;--i}for(;i-1}},swap:function(b,c,a){var e={};for(var d in c){e[d]=b.style[d];b.style[d]=c[d]}a.call(b);for(var d in c)b.style[d]=e[d]},css:function(d,e,c){if(e=="width"||e=="height"){var b,props={position:"absolute",visibility:"hidden",display:"block"},which=e=="width"?["left","right"]:["top","bottom"];function getwh(){b=e=="width"?d.offsetwidth:d.offsetheight;var a=0,border=0;d.each(which,function(){a+=parsefloat(d.curcss(d,"padding"+this,true))||0;border+=parsefloat(d.curcss(d,"border"+this+"width",true))||0});b-=math.round(a+border)}if(d(d).is(":visible"))getwh();else d.swap(d,props,getwh);return math.max(0,b)}return d.curcss(d,e,c)},curcss:function(f,l,k){var e,style=f.style;function color(b){if(!d.browser.safari)return false;var a=defaultview.getcomputedstyle(b,null);return!a||a.getpropertyvalue("color")==""}if(l=="opacity"&&d.browser.msie){e=d.attr(style,"opacity");return e==""?"1":e}if(d.browser.opera&&l=="display"){var d=style.outline;style.outline="0 solid black";style.outline=d}if(l.match(/float/i))l=y;if(!k&&style&&style[l])e=style[l];else if(defaultview.getcomputedstyle){if(l.match(/float/i))l="float";l=l.replace(/([a-z])/g,"-$1").tolowercase();var c=defaultview.getcomputedstyle(f,null);if(c&&!color(f))e=c.getpropertyvalue(l);else{var g=[],stack=[],a=f,i=0;for(;a&&color(a);a=a.parentnode)stack.unshift(a);for(;i]*?)\/>/g,function(b,a,c){return c.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?b:a+">"});var f=d.trim(d).tolowercase(),div=h.createelement("div");var e=!f.indexof("",""]||!f.indexof("",""]||f.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!f.indexof("",""]||(!f.indexof("",""]||!f.indexof("",""]||d.browser.msie&&[1,"div
","
"]||[0,"",""];div.innerhtml=e[1]+d+e[2];while(e[0]--)div=div.lastchild;if(d.browser.msie){var g=!f.indexof(""&&f.indexof("=0;--j)if(d.nodename(g[j],"tbody")&&!g[j].childnodes.length)g[j].parentnode.removechild(g[j]);if(/^\s/.test(d))div.insertbefore(h.createtextnode(d.match(/^\s*/)[0]),div.firstchild)}d=d.makearray(div.childnodes)}if(d.length===0&&(!d.nodename(d,"form")&&!d.nodename(d,"select")))return;if(d[0]==undefined||d.nodename(d,"form")||d.options)k.push(d);else k=d.merge(k,d)});return k},attr:function(d,f,c){if(!d||d.nodetype==3||d.nodetype==8)return undefined;var e=!d.isxmldoc(d),set=c!==undefined,msie=d.browser.msie;f=e&&d.props[f]||f;if(d.tagname){var g=/href|src|style/.test(f);if(f=="selected"&&d.browser.safari)d.parentnode.selectedindex;if(f in d&&e&&!g){if(set){if(f=="type"&&d.nodename(d,"input")&&d.parentnode)throw"type property can't be changed";d[f]=c}if(d.nodename(d,"form")&&d.getattributenode(f))return d.getattributenode(f).nodevalue;return d[f]}if(msie&&e&&f=="style")return d.attr(d.style,"csstext",c);if(set)d.setattribute(f,""+c);var h=msie&&e&&g?d.getattribute(f,2):d.getattribute(f);return h===null?undefined:h}if(msie&&f=="opacity"){if(set){d.zoom=1;d.filter=(d.filter||"").replace(/alpha\([^)]*\)/,"")+(parseint(c)+''=="nan"?"":"alpha(opacity="+c*100+")")}return d.filter&&d.filter.indexof("opacity=")>=0?(parsefloat(d.filter.match(/opacity=([^)]*)/)[1])/100)+'':""}f=f.replace(/-([a-z])/ig,function(a,b){return b.touppercase()});if(set)d[f]=c;return d[f]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makearray:function(b){var a=[];if(b!=null){var i=b.length;if(i==null||b.split||b.setinterval||b.call)a[0]=b;else while(i)a[--i]=b[i]}return a},inarray:function(b,a){for(var i=0,length=a.length;i*",this).remove();while(this.firstchild)this.removechild(this.firstchild)}},function(a,b){d.fn[a]=function(){return this.each(b,arguments)}});d.each(["height","width"],function(i,c){var b=c.tolowercase();d.fn[b]=function(a){return this[0]==window?d.browser.opera&&document.body["client"+c]||d.browser.safari&&window["inner"+c]||document.compatmode=="css1compat"&&document.documentelement["client"+c]||document.body["client"+c]:this[0]==document?math.max(math.max(document.body["scroll"+c],document.documentelement["scroll"+c]),math.max(document.body["offset"+c],document.documentelement["offset"+c])):a==undefined?(this.length?d.css(this[0],b):null):this.css(b,a.constructor==string?a:a+"px")}});function num(a,b){return a[0]&&parseint(d.curcss(a[0],b,true),10)||0}var c=d.browser.safari&&parseint(d.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uffff*_-]|\\\\.)",quickchild=new regexp("^>\\s*("+c+"+)"),quickid=new regexp("^("+c+"+)(#)("+c+"+)"),quickclass=new regexp("^([#.]?)("+c+"*)");d.extend({expr:{"":function(a,i,m){return m[2]=="*"||d.nodename(a,m[2])},"#":function(a,i,m){return a.getattribute("id")==m[2]},":":{lt:function(a,i,m){return im[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},"first-child":function(a){return a.parentnode.getelementsbytagname("*")[0]==a},"last-child":function(a){return d.nth(a.parentnode.lastchild,1,"previoussibling")==a},"only-child":function(a){return!d.nth(a.parentnode.lastchild,2,"previoussibling")},parent:function(a){return a.firstchild},empty:function(a){return!a.firstchild},contains:function(a,i,m){return(a.textcontent||a.innertext||d(a).text()||"").indexof(m[3])>=0},visible:function(a){return"hidden"!=a.type&&d.css(a,"display")!="none"&&d.css(a,"visibility")!="hidden"},hidden:function(a){return"hidden"==a.type||d.css(a,"display")=="none"||d.css(a,"visibility")=="hidden"},enabled:function(a){return!a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||d.attr(a,"selected")},text:function(a){return"text"==a.type},radio:function(a){return"radio"==a.type},checkbox:function(a){return"checkbox"==a.type},file:function(a){return"file"==a.type},password:function(a){return"password"==a.type},submit:function(a){return"submit"==a.type},image:function(a){return"image"==a.type},reset:function(a){return"reset"==a.type},button:function(a){return"button"==a.type||d.nodename(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodename)},has:function(a,i,m){return d.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodename)},animated:function(a){return d.grep(d.timers,function(b){return a==b.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new regexp("^([:.#]*)("+c+"+)")],multifilter:function(a,c,b){var d,cur=[];while(a&&a!=d){d=a;var f=d.filter(a,c,b);a=f.t.replace(/^\s*,\s*/,"");cur=b?c=f.r:d.merge(cur,f.r)}return cur},find:function(t,o){if(typeof t!="string")return[t];if(o&&o.nodetype!=1&&o.nodetype!=9)return[];o=o||document;var d=[o],done=[],last,nodename;while(t&&last!=t){var r=[];last=t;t=d.trim(t);var l=false,re=quickchild,m=re.exec(t);if(m){nodename=m[1].touppercase();for(var i=0;d[i];i++)for(var c=d[i].firstchild;c;c=c.nextsibling)if(c.nodetype==1&&(nodename=="*"||c.nodename.touppercase()==nodename))r.push(c);d=r;t=t.replace(re,"");if(t.indexof(" ")==0)continue;l=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var k={};nodename=m[2].touppercase();m=m[1];for(var j=0,rl=d.length;j=0;if(!a&&b||a&&!b)c.push(r[i])}return c},filter:function(t,r,h){var d;while(t&&t!=d){d=t;var p=d.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=issimple.test(m[3])?d.filter(m[3],r,true).r:d(r).not(m[3]);else if(m[1]==".")r=d.classfilter(r,m[2],h);else if(m[1]=="["){var g=[],type=m[3];for(var i=0,rl=r.length;i=0)^h)g.push(a)}r=g}else if(m[1]==":"&&m[2]=="nth-child"){var e={},g=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\d/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,d=test[3]-0;for(var i=0,rl=r.length;i=0)b=true;if(b^h)g.push(j)}r=g}else{var f=d.expr[m[1]];if(typeof f=="object")f=f[m[2]];if(typeof f=="string")f=eval("false||function(a,i){return "+f+";}");r=d.grep(r,function(a,i){return f(a,i,m,r)},h)}}return{r:r,t:t}},dir:function(b,c){var a=[],cur=b[c];while(cur&&cur!=document){if(cur.nodetype==1)a.push(cur);cur=cur[c]}return a},nth:function(a,e,c,b){e=e||1;var d=0;for(;a;a=a[c])if(a.nodetype==1&&++d==e)break;return a},sibling:function(n,a){var r=[];for(;n;n=n.nextsibling){if(n.nodetype==1&&n!=a)r.push(n)}return r}});d.event={add:function(f,i,g,e){if(f.nodetype==3||f.nodetype==8)return;if(d.browser.msie&&f.setinterval)f=window;if(!g.guid)g.guid=this.guid++;if(e!=undefined){var h=g;g=this.proxy(h,function(){return h.apply(this,arguments)});g.data=e}var j=d.data(f,"events")||d.data(f,"events",{}),handle=d.data(f,"handle")||d.data(f,"handle",function(){if(typeof d!="undefined"&&!d.event.triggered)return d.event.handle.apply(arguments.callee.elem,arguments)});handle.elem=f;d.each(i.split(/\s+/),function(c,b){var a=b.split(".");b=a[0];g.type=a[1];var d=j[b];if(!d){d=j[b]={};if(!d.event.special[b]||d.event.special[b].setup.call(f)===false){if(f.addeventlistener)f.addeventlistener(b,handle,false);else if(f.attachevent)f.attachevent("on"+b,handle)}}d[g.guid]=g;d.event.global[b]=true});f=null},guid:1,global:{},remove:function(e,h,f){if(e.nodetype==3||e.nodetype==8)return;var i=d.data(e,"events"),ret,index;if(i){if(h==undefined||(typeof h=="string"&&h.charat(0)=="."))for(var g in i)this.remove(e,g+(h||""));else{if(h.type){f=h.handler;h=h.type}d.each(h.split(/\s+/),function(b,a){var c=a.split(".");a=c[0];if(i[a]){if(f)delete i[a][f.guid];else for(f in i[a])if(!c[1]||i[a][f].type==c[1])delete i[a][f];for(ret in i[a])break;if(!ret){if(!d.event.special[a]||d.event.special[a].teardown.call(e)===false){if(e.removeeventlistener)e.removeeventlistener(a,d.data(e,"handle"),false);else if(e.detachevent)e.detachevent("on"+a,d.data(e,"handle"))}ret=null;delete i[a]}}})}for(ret in i)break;if(!ret){var d=d.data(e,"handle");if(d)d.elem=null;d.removedata(e,"events");d.removedata(e,"handle")}}},trigger:function(h,c,f,g,i){c=d.makearray(c);if(h.indexof("!")>=0){h=h.slice(0,-1);var a=true}if(!f){if(this.global[h])d("*").add([window,document]).trigger(h,c)}else{if(f.nodetype==3||f.nodetype==8)return undefined;var b,ret,fn=d.isfunction(f[h]||null),event=!c[0]||!c[0].preventdefault;if(event){c.unshift({type:h,target:f,preventdefault:function(){},stoppropagation:function(){},timestamp:now()});c[0][e]=true}c[0].type=h;if(a)c[0].exclusive=true;var d=d.data(f,"handle");if(d)b=d.apply(f,c);if((!fn||(d.nodename(f,'a')&&h=="click"))&&f["on"+h]&&f["on"+h].apply(f,c)===false)b=false;if(event)c.shift();if(i&&d.isfunction(i)){ret=i.apply(f,b==null?c:c.concat(b));if(ret!==undefined)b=ret}if(fn&&g!==false&&b!==false&&!(d.nodename(f,'a')&&h=="click")){this.triggered=true;try{f[h]()}catch(e){}}this.triggered=false}return b},handle:function(b){var a,ret,namespace,all,handlers;b=arguments[0]=d.event.fix(b||window.event);namespace=b.type.split(".");b.type=namespace[0];namespace=namespace[1];all=!namespace&&!b.exclusive;handlers=(d.data(this,"events")||{})[b.type];for(var j in handlers){var c=handlers[j];if(all||c.type==namespace){b.handler=c;b.data=c.data;ret=c.apply(this,arguments);if(a!==false)a=ret;if(ret===false){b.preventdefault();b.stoppropagation()}}}return a},fix:function(b){if(b[e]==true)return b;var d=b;b={originalevent:d};var c="altkey attrchange attrname bubbles button cancelable charcode clientx clienty ctrlkey currenttarget data detail eventphase fromelement handler keycode metakey newvalue originaltarget pagex pagey prevvalue relatednode relatedtarget screenx screeny shiftkey srcelement target timestamp toelement type view wheeldelta which".split(" ");for(var i=c.length;i;i--)b[c[i]]=d[c[i]];b[e]=true;b.preventdefault=function(){if(d.preventdefault)d.preventdefault();d.returnvalue=false};b.stoppropagation=function(){if(d.stoppropagation)d.stoppropagation();d.cancelbubble=true};b.timestamp=b.timestamp||now();if(!b.target)b.target=b.srcelement||document;if(b.target.nodetype==3)b.target=b.target.parentnode;if(!b.relatedtarget&&b.fromelement)b.relatedtarget=b.fromelement==b.target?b.toelement:b.fromelement;if(b.pagex==null&&b.clientx!=null){var a=document.documentelement,body=document.body;b.pagex=b.clientx+(a&&a.scrollleft||body&&body.scrollleft||0)-(a.clientleft||0);b.pagey=b.clienty+(a&&a.scrolltop||body&&body.scrolltop||0)-(a.clienttop||0)}if(!b.which&&((b.charcode||b.charcode===0)?b.charcode:b.keycode))b.which=b.charcode||b.keycode;if(!b.metakey&&b.ctrlkey)b.metakey=b.ctrlkey;if(!b.which&&b.button)b.which=(b.button&1?1:(b.button&2?3:(b.button&4?2:0)));return b},proxy:function(a,b){b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:function(){bindready();return},teardown:function(){return}},mouseenter:{setup:function(){if(d.browser.msie)return false;d(this).bind("mouseover",d.event.special.mouseenter.handler);return true},teardown:function(){if(d.browser.msie)return false;d(this).unbind("mouseover",d.event.special.mouseenter.handler);return true},handler:function(a){if(f(a,this))return true;a.type="mouseenter";return d.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(d.browser.msie)return false;d(this).bind("mouseout",d.event.special.mouseleave.handler);return true},teardown:function(){if(d.browser.msie)return false;d(this).unbind("mouseout",d.event.special.mouseleave.handler);return true},handler:function(a){if(f(a,this))return true;a.type="mouseleave";return d.event.handle.apply(this,arguments)}}}};d.fn.extend({bind:function(c,a,b){return c=="unload"?this.one(c,a,b):this.each(function(){d.event.add(this,c,b||a,b&&a)})},one:function(d,b,c){var e=d.event.proxy(c||b,function(a){d(this).unbind(a,e);return(c||b).apply(this,arguments)});return this.each(function(){d.event.add(this,d,e,c&&b)})},unbind:function(a,b){return this.each(function(){d.event.remove(this,a,b)})},trigger:function(c,a,b){return this.each(function(){d.event.trigger(c,a,this,true,b)})},triggerhandler:function(c,a,b){return this[0]&&d.event.trigger(c,a,this[0],false,b)},toggle:function(b){var c=arguments,i=1;while(i=0){var i=g.slice(e,g.length);g=g.slice(0,e)}c=c||function(){};var f="get";if(d)if(d.isfunction(d)){c=d;d=null}else{d=d.param(d);f="post"}var h=this;d.ajax({url:g,type:f,datatype:"html",data:d,complete:function(a,b){if(b=="success"||b=="notmodified")h.html(i?d("
").append(a.responsetext.replace(//g,"")).find(i):a.responsetext);h.each(c,[a.responsetext,b,a])}});return this},serialize:function(){return d.param(this.serializearray())},serializearray:function(){return this.map(function(){return d.nodename(this,"form")?d.makearray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodename)||/text|hidden|password/i.test(this.type))}).map(function(i,c){var b=d(this).val();return b==null?null:b.constructor==array?d.map(b,function(a,i){return{name:c.name,value:a}}):{name:c.name,value:b}}).get()}});d.each("ajaxstart,ajaxstop,ajaxcomplete,ajaxerror,ajaxsuccess,ajaxsend".split(","),function(i,o){d.fn[o]=function(f){return this.bind(o,f)}});var b=now();d.extend({get:function(d,b,a,c){if(d.isfunction(b)){a=b;b=null}return d.ajax({type:"get",url:d,data:b,success:a,datatype:c})},getscript:function(b,a){return d.get(b,null,a,"script")},getjson:function(c,b,a){return d.get(c,b,a,"json")},post:function(d,b,a,c){if(d.isfunction(b)){a=b;b={}}return d.ajax({type:"post",url:d,data:b,success:a,datatype:c})},ajaxsetup:function(a){d.extend(d.ajaxsettings,a)},ajaxsettings:{url:location.href,global:true,type:"get",timeout:0,contenttype:"application/x-www-form-urlencoded",processdata:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastmodified:{},ajax:function(s){s=d.extend(true,s,d.extend(true,{},d.ajaxsettings,s));var g,jsre=/=\?(&|$)/g,status,data,type=s.type.touppercase();if(s.data&&s.processdata&&typeof s.data!="string")s.data=d.param(s.data);if(s.datatype=="jsonp"){if(type=="get"){if(!s.url.match(jsre))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}else if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.datatype="json"}if(s.datatype=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){g="jsonp"+b++;if(s.data)s.data=(s.data+"").replace(jsre,"="+g+"$1");s.url=s.url.replace(jsre,"="+g+"$1");s.datatype="script";window[g]=function(a){data=a;success();complete();window[g]=undefined;try{delete window[g]}catch(e){}if(i)i.removechild(h)}}if(s.datatype=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&type=="get"){var j=now();var k=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+j+"$2");s.url=k+((k==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+j:"")}if(s.data&&type=="get"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!d.active++)d.event.trigger("ajaxstart");var n=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.datatype=="script"&&type=="get"&&n.test(s.url)&&n.exec(s.url)[1]!=location.host){var i=document.getelementsbytagname("head")[0];var h=document.createelement("script");h.src=s.url;if(s.scriptcharset)h.charset=s.scriptcharset;if(!g){var l=false;h.onload=h.onreadystatechange=function(){if(!l&&(!this.readystate||this.readystate=="loaded"||this.readystate=="complete")){l=true;success();complete();i.removechild(h)}}}i.appendchild(h);return undefined}var m=false;var c=window.activexobject?new activexobject("microsoft.xmlhttp"):new xmlhttprequest();if(s.username)c.open(type,s.url,s.async,s.username,s.password);else c.open(type,s.url,s.async);try{if(s.data)c.setrequestheader("content-type",s.contenttype);if(s.ifmodified)c.setrequestheader("if-modified-since",d.lastmodified[s.url]||"thu, 01 jan 1970 00:00:00 gmt");c.setrequestheader("x-requested-with","xmlhttprequest");c.setrequestheader("accept",s.datatype&&s.accepts[s.datatype]?s.accepts[s.datatype]+", */*":s.accepts._default)}catch(e){}if(s.beforesend&&s.beforesend(c,s)===false){s.global&&d.active--;c.abort();return false}if(s.global)d.event.trigger("ajaxsend",[c,s]);var d=function(a){if(!m&&c&&(c.readystate==4||a=="timeout")){m=true;if(f){clearinterval(f);f=null}status=a=="timeout"&&"timeout"||!d.httpsuccess(c)&&"error"||s.ifmodified&&d.httpnotmodified(c,s.url)&&"notmodified"||"success";if(status=="success"){try{data=d.httpdata(c,s.datatype,s.datafilter)}catch(e){status="parsererror"}}if(status=="success"){var b;try{b=c.getresponseheader("last-modified")}catch(e){}if(s.ifmodified&&b)d.lastmodified[s.url]=b;if(!g)success()}else d.handleerror(s,c,status);complete();if(s.async)c=null}};if(s.async){var f=setinterval(d,13);if(s.timeout>0)settimeout(function(){if(c){c.abort();if(!m)d("timeout")}},s.timeout)}try{c.send(s.data)}catch(e){d.handleerror(s,c,null,e)}if(!s.async)d();function success(){if(s.success)s.success(data,status);if(s.global)d.event.trigger("ajaxsuccess",[c,s])}function complete(){if(s.complete)s.complete(c,status);if(s.global)d.event.trigger("ajaxcomplete",[c,s]);if(s.global&&!--d.active)d.event.trigger("ajaxstop")}return c},handleerror:function(s,a,b,e){if(s.error)s.error(a,b,e);if(s.global)d.event.trigger("ajaxerror",[a,s,e])},active:0,httpsuccess:function(a){try{return!a.status&&location.protocol=="file:"||(a.status>=200&&a.status<300)||a.status==304||a.status==1223||d.browser.safari&&a.status==undefined}catch(e){}return false},httpnotmodified:function(a,c){try{var b=a.getresponseheader("last-modified");return a.status==304||b==d.lastmodified[c]||d.browser.safari&&a.status==undefined}catch(e){}return false},httpdata:function(a,c,b){var d=a.getresponseheader("content-type"),xml=c=="xml"||!c&&d&&d.indexof("xml")>=0,data=xml?a.responsexml:a.responsetext;if(xml&&data.documentelement.tagname=="parsererror")throw"parsererror";if(b)data=b(data,c);if(c=="script")d.globaleval(data);if(c=="json")data=eval("("+data+")");return data},param:function(a){var s=[];if(a.constructor==array||a.jquery)d.each(a,function(){s.push(encodeuricomponent(this.name)+"="+encodeuricomponent(this.value))});else for(var j in a)if(a[j]&&a[j].constructor==array)d.each(a[j],function(){s.push(encodeuricomponent(j)+"="+encodeuricomponent(this))});else s.push(encodeuricomponent(j)+"="+encodeuricomponent(d.isfunction(a[j])?a[j]():a[j]));return s.join("&").replace(/%20/g,"+")}});d.fn.extend({show:function(c,b){return c?this.animate({height:"show",width:"show",opacity:"show"},c,b):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(d.css(this,"display")=="none"){var a=d("<"+this.tagname+" />").appendto("body");this.style.display=a.css("display");if(this.style.display=="none")this.style.display="block";a.remove()}}).end()},hide:function(b,a){return b?this.animate({height:"hide",width:"hide",opacity:"hide"},b,a):this.filter(":visible").each(function(){this.oldblock=this.oldblock||d.css(this,"display");this.style.display="none"}).end()},_toggle:d.fn.toggle,toggle:function(a,b){return d.isfunction(a)&&d.isfunction(b)?this._toggle.apply(this,arguments):a?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},a,b):this.each(function(){d(this)[d(this).is(":hidden")?"show":"hide"]()})},slidedown:function(b,a){return this.animate({height:"show"},b,a)},slideup:function(b,a){return this.animate({height:"hide"},b,a)},slidetoggle:function(b,a){return this.animate({height:"toggle"},b,a)},fadein:function(b,a){return this.animate({opacity:"show"},b,a)},fadeout:function(b,a){return this.animate({opacity:"hide"},b,a)},fadeto:function(c,a,b){return this.animate({opacity:a},c,b)},animate:function(k,j,i,g){var h=d.speed(j,i,g);return this[h.queue===false?"each":"queue"](function(){if(this.nodetype!=1)return false;var f=d.extend({},h),p,hidden=d(this).is(":hidden"),self=this;for(p in k){if(k[p]=="hide"&&hidden||k[p]=="show"&&!hidden)return f.complete.call(this);if(p=="height"||p=="width"){f.display=d.css(this,"display");f.overflow=this.style.overflow}}if(f.overflow!=null)this.style.overflow="hidden";f.curanim=d.extend({},k);d.each(k,function(c,a){var e=new d.fx(self,f,c);if(/toggle|show|hide/.test(a))e[a=="toggle"?hidden?"show":"hide":a](k);else{var b=a.tostring().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(b){var d=parsefloat(b[2]),unit=b[3]||"px";if(unit!="px"){self.style[c]=(d||1)+unit;start=((d||1)/e.cur(true))*start;self.style[c]=start+unit}if(b[1])d=((b[1]=="-="?-1:1)*d)+start;e.custom(start,d,unit)}else e.custom(start,a,"")}});return true})},queue:function(a,b){if(d.isfunction(a)||(a&&a.constructor==array)){b=a;a="fx"}if(!a||(typeof a=="string"&&!b))return a(this[0],a);return this.each(function(){if(b.constructor==array)a(this,a,b);else{a(this,a).push(b);if(a(this,a).length==1)b.call(this)}})},stop:function(b,c){var a=d.timers;if(b)this.queue([]);this.each(function(){for(var i=a.length-1;i>=0;i--)if(a[i].elem==this){if(c)a[i](true);a.splice(i,1)}});if(!c)this.dequeue();return this}});var a=function(b,c,a){if(b){c=c||"fx";var q=d.data(b,c+"queue");if(!q||a)q=d.data(b,c+"queue",d.makearray(a))}return q};d.fn.dequeue=function(a){a=a||"fx";return this.each(function(){var q=a(this,a);q.shift();if(q.length)q[0].call(this)})};d.extend({speed:function(b,a,c){var d=b&&b.constructor==object?b:{complete:c||!c&&a||d.isfunction(b)&&b,duration:b,easing:c&&a||a&&a.constructor!=function&&a};d.duration=(d.duration&&d.duration.constructor==number?d.duration:d.fx.speeds[d.duration])||d.fx.speeds.def;d.old=d.complete;d.complete=function(){if(d.queue!==false)d(this).dequeue();if(d.isfunction(d.old))d.old.call(this)};return d},easing:{linear:function(p,n,b,a){return b+a*p},swing:function(p,n,b,a){return((-math.cos(p*math.pi)/2)+0.5)*a+b}},timers:[],timerid:null,fx:function(b,c,a){this.options=c;this.elem=b;this.prop=a;if(!c.orig)c.orig={}}});d.fx.prototype={update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parsefloat(d.css(this.elem,this.prop,a));return r&&r>-10000?r:parsefloat(d.curcss(this.elem,this.prop))||0},custom:function(c,b,d){this.starttime=now();this.start=c;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var e=this;function t(a){return e.step(a)}t.elem=this.elem;d.timers.push(t);if(d.timerid==null){d.timerid=setinterval(function(){var a=d.timers;for(var i=0;ithis.options.duration+this.starttime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curanim[this.prop]=true;var b=true;for(var i in this.options.curanim)if(this.options.curanim[i]!==true)b=false;if(b){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(d.css(this.elem,"display")=="none")this.elem.style.display="block"}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var p in this.options.curanim)d.attr(this.elem.style,p,this.options.orig[p])}if(b)this.options.complete.call(this.elem);return false}else{var n=t-this.starttime;this.state=n/this.options.duration;this.pos=d.easing[this.options.easing||(d.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};d.extend(d.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollleft:function(a){a.elem.scrollleft=a.now},scrolltop:function(a){a.elem.scrolltop=a.now},opacity:function(a){d.attr(a.elem.style,"opacity",a.now)},_default:function(a){a.elem.style[a.prop]=a.now+a.unit}}});d.fn.offset=function(){var b=0,top=0,elem=this[0],results;if(elem)with(d.browser){var d=elem.parentnode,offsetchild=elem,offsetparent=elem.offsetparent,doc=elem.ownerdocument,safari2=safari&&parseint(version)<522&&!/adobeair/i.test(v),css=d.curcss,fixed=css(elem,"position")=="fixed";if(elem.getboundingclientrect){var c=elem.getboundingclientrect();add(c.left+math.max(doc.documentelement.scrollleft,doc.body.scrollleft),c.top+math.max(doc.documentelement.scrolltop,doc.body.scrolltop));add(-doc.documentelement.clientleft,-doc.documentelement.clienttop)}else{add(elem.offsetleft,elem.offsettop);while(offsetparent){add(offsetparent.offsetleft,offsetparent.offsettop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetparent.tagname)||safari&&!safari2)border(offsetparent);if(!fixed&&css(offsetparent,"position")=="fixed")fixed=true;offsetchild=/^body$/i.test(offsetparent.tagname)?offsetchild:offsetparent;offsetparent=offsetparent.offsetparent}while(d&&d.tagname&&!/^body|html$/i.test(d.tagname)){if(!/^inline|table.*$/i.test(css(d,"display")))add(-d.scrollleft,-d.scrolltop);if(mozilla&&css(d,"overflow")!="visible")border(d);d=d.parentnode}if((safari2&&(fixed||css(offsetchild,"position")=="absolute"))||(mozilla&&css(offsetchild,"position")!="absolute"))add(-doc.body.offsetleft,-doc.body.offsettop);if(fixed)add(math.max(doc.documentelement.scrollleft,doc.body.scrollleft),math.max(doc.documentelement.scrolltop,doc.body.scrolltop))}results={top:top,left:b}}function border(a){add(d.curcss(a,"borderleftwidth",true),d.curcss(a,"bordertopwidth",true))}function add(l,t){b+=parseint(l,10)||0;top+=parseint(t,10)||0}return results};d.fn.extend({position:function(){var a=0,top=0,results;if(this[0]){var b=this.offsetparent(),offset=this.offset(),parentoffset=/^body|html$/i.test(b[0].tagname)?{top:0,left:0}:b.offset();offset.top-=num(this,'margintop');offset.left-=num(this,'marginleft');parentoffset.top+=num(b,'bordertopwidth');parentoffset.left+=num(b,'borderleftwidth');results={top:offset.top-parentoffset.top,left:offset.left-parentoffset.left}}return results},offsetparent:function(){var a=this[0].offsetparent;while(a&&(!/^body|html$/i.test(a.tagname)&&d.css(a,'position')=='static'))a=a.offsetparent;return d(a)}});d.each(['left','top'],function(i,b){var c='scroll'+b;d.fn[c]=function(a){if(!this[0])return;return a!=undefined?this.each(function(){this==window||this==document?window.scrollto(!i?a:d(window).scrollleft(),i?a:d(window).scrolltop()):this[c]=a}):this[0]==window||this[0]==document?self[i?'pageyoffset':'pagexoffset']||d.boxmodel&&document.documentelement[c]||document.body[c]:this[0][c]}});d.each(["height","width"],function(i,b){var c=i?"left":"top",br=i?"right":"bottom";d.fn["inner"+b]=function(){return this[b.tolowercase()]()+num(this,"padding"+c)+num(this,"padding"+br)};d.fn["outer"+b]=function(a){return this["inner"+b]()+num(this,"border"+c+"width")+num(this,"border"+br+"width")+(a?num(this,"margin"+c)+num(this,"margin"+br):0)}})})();