/* * jquery 1.2.3 - 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-02-06 00:21:25 -0500 (wed, 06 feb 2008) $ * $rev: 4663 $ */ (function(){if(window.jquery)var _jquery=window.jquery;var jquery=window.jquery=function(selector,context){return new jquery.prototype.init(selector,context);};if(window.$)var _$=window.$;window.$=jquery;var quickexpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;var issimple=/^.[^:#\[\.]*$/;jquery.fn=jquery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodetype){this[0]=selector;this.length=1;return this;}else if(typeof selector=="string"){var match=quickexpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jquery.clean([match[1]],context);else{var elem=document.getelementbyid(match[3]);if(elem)if(elem.id!=match[3])return jquery().find(selector);else{this[0]=elem;this.length=1;return this;}else selector=[];}}else return new jquery(context).find(selector);}else if(jquery.isfunction(selector))return new jquery(document)[jquery.fn.ready?"ready":"load"](selector);return this.setarray(selector.constructor==array&&selector||(selector.jquery||selector.length&&selector!=window&&!selector.nodetype&&selector[0]!=undefined&&selector[0].nodetype)&&jquery.makearray(selector)||[selector]);},jquery:"1.2.3",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jquery.makearray(this):this[num];},pushstack:function(elems){var ret=jquery(elems);ret.prevobject=this;return ret;},setarray:function(elems){this.length=0;array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jquery.each(this,callback,args);},index:function(elem){var ret=-1;this.each(function(i){if(this==elem)ret=i;});return ret;},attr:function(name,value,type){var options=name;if(name.constructor==string)if(value==undefined)return this.length&&jquery[type||"attr"](this[0],name)||undefined;else{options={};options[name]=value;}return this.each(function(i){for(name in options)jquery.attr(type?this.style:this,name,jquery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parsefloat(value)<0)value=undefined;return this.attr(key,value,"curcss");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerdocument||document).createtextnode(text));var ret="";jquery.each(text||this,function(){jquery.each(this.childnodes,function(){if(this.nodetype!=8)ret+=this.nodetype!=1?this.nodevalue:jquery.fn.text([this]);});});return ret;},wrapall:function(html){if(this[0])jquery(html,this[0].ownerdocument).clone().insertbefore(this[0]).map(function(){var elem=this;while(elem.firstchild)elem=elem.firstchild;return elem;}).append(this);return this;},wrapinner:function(html){return this.each(function(){jquery(this).contents().wrapall(html);});},wrap:function(html){return this.each(function(){jquery(this).wrapall(html);});},append:function(){return this.dommanip(arguments,true,false,function(elem){if(this.nodetype==1)this.appendchild(elem);});},prepend:function(){return this.dommanip(arguments,true,true,function(elem){if(this.nodetype==1)this.insertbefore(elem,this.firstchild);});},before:function(){return this.dommanip(arguments,false,false,function(elem){this.parentnode.insertbefore(elem,this);});},after:function(){return this.dommanip(arguments,false,true,function(elem){this.parentnode.insertbefore(elem,this.nextsibling);});},end:function(){return this.prevobject||jquery([]);},find:function(selector){var elems=jquery.map(this,function(elem){return jquery.find(selector,elem);});return this.pushstack(/[^+>] [^+>]/.test(selector)||selector.indexof("..")>-1?jquery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jquery.browser.msie&&!jquery.isxmldoc(this)){var clone=this.clonenode(true),container=document.createelement("div");container.appendchild(clone);return jquery.clean([container.innerhtml])[0];}else return this.clonenode(true);});var clone=ret.find("*").andself().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andself().each(function(i){if(this.nodetype==3)return;var events=jquery.data(this,"events");for(var type in events)for(var handler in events[type])jquery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushstack(jquery.isfunction(selector)&&jquery.grep(this,function(elem,i){return selector.call(elem,i);})||jquery.multifilter(selector,this));},not:function(selector){if(selector.constructor==string)if(issimple.test(selector))return this.pushstack(jquery.multifilter(selector,this,true));else selector=jquery.multifilter(selector,this);var isarraylike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodetype;return this.filter(function(){return isarraylike?jquery.inarray(this,selector)<0:this!=selector;});},add:function(selector){return!selector?this:this.pushstack(jquery.merge(this.get(),selector.constructor==string?jquery(selector).get():selector.length!=undefined&&(!selector.nodename||jquery.nodename(selector,"form"))?selector:[selector]));},is:function(selector){return selector?jquery.multifilter(selector,this).length>0:false;},hasclass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jquery.nodename(elem,"select")){var index=elem.selectedindex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i=0||jquery.inarray(this.name,value)>=0);else if(jquery.nodename(this,"select")){var values=value.constructor==array?value:[value];jquery("option",this).each(function(){this.selected=(jquery.inarray(this.value,values)>=0||jquery.inarray(this.text,values)>=0);});if(!values.length)this.selectedindex=-1;}else this.value=value;});},html:function(value){return value==undefined?(this.length?this[0].innerhtml:null):this.empty().append(value);},replacewith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushstack(array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushstack(jquery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andself:function(){return this.add(this.prevobject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value==null){var data=this.triggerhandler("getdata"+parts[1]+"!",[parts[0]]);if(data==undefined&&this.length)data=jquery.data(this[0],key);return data==null&&parts[1]?this.data(parts[0]):data;}else return this.trigger("setdata"+parts[1]+"!",[parts[0],value]).each(function(){jquery.data(this,key,value);});},removedata:function(key){return this.each(function(){jquery.removedata(this,key);});},dommanip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jquery.clean(args,this.ownerdocument);if(reverse)elems.reverse();}var obj=this;if(table&&jquery.nodename(this,"table")&&jquery.nodename(elems[0],"tr"))obj=this.getelementsbytagname("tbody")[0]||this.appendchild(this.ownerdocument.createelement("tbody"));var scripts=jquery([]);jquery.each(elems,function(){var elem=clone?jquery(this).clone(true)[0]:this;if(jquery.nodename(elem,"script")){scripts=scripts.add(elem);}else{if(elem.nodetype==1)scripts=scripts.add(jquery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalscript);});}};jquery.prototype.init.prototype=jquery.prototype;function evalscript(i,elem){if(elem.src)jquery.ajax({url:elem.src,async:false,datatype:"script"});else jquery.globaleval(elem.text||elem.textcontent||elem.innerhtml||"");if(elem.parentnode)elem.parentnode.removechild(elem);}jquery.extend=jquery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==1){target=this;i=0;}for(;i-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["left","right"]:["top","bottom"];function getwh(){val=name=="width"?elem.offsetwidth:elem.offsetheight;var padding=0,border=0;jquery.each(which,function(){padding+=parsefloat(jquery.curcss(elem,"padding"+this,true))||0;border+=parsefloat(jquery.curcss(elem,"border"+this+"width",true))||0;});val-=math.round(padding+border);}if(jquery(elem).is(":visible"))getwh();else jquery.swap(elem,props,getwh);return math.max(0,val);}return jquery.curcss(elem,name,force);},curcss:function(elem,name,force){var ret;function color(elem){if(!jquery.browser.safari)return false;var ret=document.defaultview.getcomputedstyle(elem,null);return!ret||ret.getpropertyvalue("color")=="";}if(name=="opacity"&&jquery.browser.msie){ret=jquery.attr(elem.style,"opacity");return ret==""?"1":ret;}if(jquery.browser.opera&&name=="display"){var save=elem.style.outline;elem.style.outline="0 solid black";elem.style.outline=save;}if(name.match(/float/i))name=stylefloat;if(!force&&elem.style&&elem.style[name])ret=elem.style[name];else if(document.defaultview&&document.defaultview.getcomputedstyle){if(name.match(/float/i))name="float";name=name.replace(/([a-z])/g,"-$1").tolowercase();var getcomputedstyle=document.defaultview.getcomputedstyle(elem,null);if(getcomputedstyle&&!color(elem))ret=getcomputedstyle.getpropertyvalue(name);else{var swap=[],stack=[];for(var a=elem;a&&color(a);a=a.parentnode)stack.unshift(a);for(var i=0;i]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+">";});var tags=jquery.trim(elem).tolowercase(),div=context.createelement("div");var wrap=!tags.indexof("",""]||!tags.indexof("",""]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!tags.indexof("",""]||(!tags.indexof("",""]||!tags.indexof("",""]||jquery.browser.msie&&[1,"div
","
"]||[0,"",""];div.innerhtml=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastchild;if(jquery.browser.msie){var tbody=!tags.indexof(""&&tags.indexof("=0;--j)if(jquery.nodename(tbody[j],"tbody")&&!tbody[j].childnodes.length)tbody[j].parentnode.removechild(tbody[j]);if(/^\s/.test(elem))div.insertbefore(context.createtextnode(elem.match(/^\s*/)[0]),div.firstchild);}elem=jquery.makearray(div.childnodes);}if(elem.length===0&&(!jquery.nodename(elem,"form")&&!jquery.nodename(elem,"select")))return;if(elem[0]==undefined||jquery.nodename(elem,"form")||elem.options)ret.push(elem);else ret=jquery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodetype==3||elem.nodetype==8)return undefined;var fix=jquery.isxmldoc(elem)?{}:jquery.props;if(name=="selected"&&jquery.browser.safari)elem.parentnode.selectedindex;if(fix[name]){if(value!=undefined)elem[fix[name]]=value;return elem[fix[name]];}else if(jquery.browser.msie&&name=="style")return jquery.attr(elem.style,"csstext",value);else if(value==undefined&&jquery.browser.msie&&jquery.nodename(elem,"form")&&(name=="action"||name=="method"))return elem.getattributenode(name).nodevalue;else if(elem.tagname){if(value!=undefined){if(name=="type"&&jquery.nodename(elem,"input")&&elem.parentnode)throw"type property can't be changed";elem.setattribute(name,""+value);}if(jquery.browser.msie&&/href|src/.test(name)&&!jquery.isxmldoc(elem))return elem.getattribute(name,2);return elem.getattribute(name);}else{if(name=="opacity"&&jquery.browser.msie){if(value!=undefined){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parsefloat(value).tostring()=="nan"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexof("opacity=")>=0?(parsefloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).tostring():"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.touppercase();});if(value!=undefined)elem[name]=value;return elem[name];}},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makearray:function(array){var ret=[];if(typeof array!="array")for(var i=0,length=array.length;i*",this).remove();while(this.firstchild)this.removechild(this.firstchild);}},function(name,fn){jquery.fn[name]=function(){return this.each(fn,arguments);};});jquery.each(["height","width"],function(i,name){var type=name.tolowercase();jquery.fn[type]=function(size){return this[0]==window?jquery.browser.opera&&document.body["client"+name]||jquery.browser.safari&&window["inner"+name]||document.compatmode=="css1compat"&&document.documentelement["client"+name]||document.body["client"+name]:this[0]==document?math.max(math.max(document.body["scroll"+name],document.documentelement["scroll"+name]),math.max(document.body["offset"+name],document.documentelement["offset"+name])):size==undefined?(this.length?jquery.css(this[0],type):null):this.css(type,size.constructor==string?size:size+"px");};});var chars=jquery.browser.safari&&parseint(jquery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uffff*_-]|\\\\.)",quickchild=new regexp("^>\\s*("+chars+"+)"),quickid=new regexp("^("+chars+"+)(#)("+chars+"+)"),quickclass=new regexp("^([#.]?)("+chars+"*)");jquery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jquery.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 jquery.nth(a.parentnode.lastchild,1,"previoussibling")==a;},"only-child":function(a){return!jquery.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||jquery(a).text()||"").indexof(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jquery.css(a,"display")!="none"&&jquery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jquery.css(a,"display")=="none"||jquery.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||jquery.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||jquery.nodename(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodename);},has:function(a,i,m){return jquery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodename);},animated:function(a){return jquery.grep(jquery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new regexp("^([:.#]*)("+chars+"+)")],multifilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jquery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jquery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodetype!=1&&context.nodetype!=9)return[];context=context||document;var ret=[context],done=[],last,nodename;while(t&&last!=t){var r=[];last=t;t=jquery.trim(t);var foundtoken=false;var re=quickchild;var m=re.exec(t);if(m){nodename=m[1].touppercase();for(var i=0;ret[i];i++)for(var c=ret[i].firstchild;c;c=c.nextsibling)if(c.nodetype==1&&(nodename=="*"||c.nodename.touppercase()==nodename))r.push(c);ret=r;t=t.replace(re,"");if(t.indexof(" ")==0)continue;foundtoken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodename=m[2].touppercase();m=m[1];for(var j=0,rl=ret.length;j=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jquery.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])?jquery.filter(m[3],r,true).r:jquery(r).not(m[3]);else if(m[1]==".")r=jquery.classfilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],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,last=test[3]-0;for(var i=0,rl=r.length;i=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jquery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jquery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[];var cur=elem[dir];while(cur&&cur!=document){if(cur.nodetype==1)matched.push(cur);cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodetype==1&&++num==result)break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextsibling){if(n.nodetype==1&&(!elem||n!=elem))r.push(n);}return r;}});jquery.event={add:function(elem,types,handler,data){if(elem.nodetype==3||elem.nodetype==8)return;if(jquery.browser.msie&&elem.setinterval!=undefined)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=function(){return fn.apply(this,arguments);};handler.data=data;handler.guid=fn.guid;}var events=jquery.data(elem,"events")||jquery.data(elem,"events",{}),handle=jquery.data(elem,"handle")||jquery.data(elem,"handle",function(){var val;if(typeof jquery=="undefined"||jquery.event.triggered)return val;val=jquery.event.handle.apply(arguments.callee.elem,arguments);return val;});handle.elem=elem;jquery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jquery.event.special[type]||jquery.event.special[type].setup.call(elem)===false){if(elem.addeventlistener)elem.addeventlistener(type,handle,false);else if(elem.attachevent)elem.attachevent("on"+type,handle);}}handlers[handler.guid]=handler;jquery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodetype==3||elem.nodetype==8)return;var events=jquery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charat(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jquery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jquery.event.special[type]||jquery.event.special[type].teardown.call(elem)===false){if(elem.removeeventlistener)elem.removeeventlistener(type,jquery.data(elem,"handle"),false);else if(elem.detachevent)elem.detachevent("on"+type,jquery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jquery.data(elem,"handle");if(handle)handle.elem=null;jquery.removedata(elem,"events");jquery.removedata(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jquery.makearray(data||[]);if(type.indexof("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jquery("*").add([window,document]).trigger(type,data);}else{if(elem.nodetype==3||elem.nodetype==8)return undefined;var val,ret,fn=jquery.isfunction(elem[type]||null),event=!data[0]||!data[0].preventdefault;if(event)data.unshift(this.fix({type:type,target:elem}));data[0].type=type;if(exclusive)data[0].exclusive=true;if(jquery.isfunction(jquery.data(elem,"handle")))val=jquery.data(elem,"handle").apply(elem,data);if(!fn&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jquery.isfunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jquery.nodename(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val;event=jquery.event.fix(event||window.event||{});var parts=event.type.split(".");event.type=parts[0];var handlers=jquery.data(this,"events")&&jquery.data(this,"events")[event.type],args=array.prototype.slice.call(arguments,1);args.unshift(event);for(var j in handlers){var handler=handlers[j];args[0].handler=handler;args[0].data=handler.data;if(!parts[1]&&!event.exclusive||handler.type==parts[1]){var ret=handler.apply(this,args);if(val!==false)val=ret;if(ret===false){event.preventdefault();event.stoppropagation();}}}if(jquery.browser.msie)event.target=event.preventdefault=event.stoppropagation=event.handler=event.data=null;return val;},fix:function(event){var originalevent=event;event=jquery.extend({},originalevent);event.preventdefault=function(){if(originalevent.preventdefault)originalevent.preventdefault();originalevent.returnvalue=false;};event.stoppropagation=function(){if(originalevent.stoppropagation)originalevent.stoppropagation();originalevent.cancelbubble=true;};if(!event.target)event.target=event.srcelement||document;if(event.target.nodetype==3)event.target=originalevent.target.parentnode;if(!event.relatedtarget&&event.fromelement)event.relatedtarget=event.fromelement==event.target?event.toelement:event.fromelement;if(event.pagex==null&&event.clientx!=null){var doc=document.documentelement,body=document.body;event.pagex=event.clientx+(doc&&doc.scrollleft||body&&body.scrollleft||0)-(doc.clientleft||0);event.pagey=event.clienty+(doc&&doc.scrolltop||body&&body.scrolltop||0)-(doc.clienttop||0);}if(!event.which&&((event.charcode||event.charcode===0)?event.charcode:event.keycode))event.which=event.charcode||event.keycode;if(!event.metakey&&event.ctrlkey)event.metakey=event.ctrlkey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},special:{ready:{setup:function(){bindready();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jquery.browser.msie)return false;jquery(this).bind("mouseover",jquery.event.special.mouseenter.handler);return true;},teardown:function(){if(jquery.browser.msie)return false;jquery(this).unbind("mouseover",jquery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinelement(event,this))return true;arguments[0].type="mouseenter";return jquery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jquery.browser.msie)return false;jquery(this).bind("mouseout",jquery.event.special.mouseleave.handler);return true;},teardown:function(){if(jquery.browser.msie)return false;jquery(this).unbind("mouseout",jquery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinelement(event,this))return true;arguments[0].type="mouseleave";return jquery.event.handle.apply(this,arguments);}}}};jquery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jquery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){return this.each(function(){jquery.event.add(this,type,function(event){jquery(this).unbind(event);return(fn||data).apply(this,arguments);},fn&&data);});},unbind:function(type,fn){return this.each(function(){jquery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jquery.event.trigger(type,data,this,true,fn);});},triggerhandler:function(type,data,fn){if(this[0])return jquery.event.trigger(type,data,this[0],false,fn);return undefined;},toggle:function(){var args=arguments;return this.click(function(event){this.lasttoggle=0==this.lasttoggle?1:0;event.preventdefault();return args[this.lasttoggle].apply(this,arguments)||false;});},hover:function(fnover,fnout){return this.bind('mouseenter',fnover).bind('mouseleave',fnout);},ready:function(fn){bindready();if(jquery.isready)fn.call(document,jquery);else jquery.readylist.push(function(){return fn.call(this,jquery);});return this;}});jquery.extend({isready:false,readylist:[],ready:function(){if(!jquery.isready){jquery.isready=true;if(jquery.readylist){jquery.each(jquery.readylist,function(){this.apply(document);});jquery.readylist=null;}jquery(document).triggerhandler("ready");}}});var readybound=false;function bindready(){if(readybound)return;readybound=true;if(document.addeventlistener&&!jquery.browser.opera)document.addeventlistener("domcontentloaded",jquery.ready,false);if(jquery.browser.msie&&window==top)(function(){if(jquery.isready)return;try{document.documentelement.doscroll("left");}catch(error){settimeout(arguments.callee,0);return;}jquery.ready();})();if(jquery.browser.opera)document.addeventlistener("domcontentloaded",function(){if(jquery.isready)return;for(var i=0;i=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="get";if(params)if(jquery.isfunction(params)){callback=params;params=null;}else{params=jquery.param(params);type="post";}var self=this;jquery.ajax({url:url,type:type,datatype:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jquery("
").append(res.responsetext.replace(//g,"")).find(selector):res.responsetext);self.each(callback,[res.responsetext,status,res]);}});return this;},serialize:function(){return jquery.param(this.serializearray());},serializearray:function(){return this.map(function(){return jquery.nodename(this,"form")?jquery.makearray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodename)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jquery(this).val();return val==null?null:val.constructor==array?jquery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jquery.each("ajaxstart,ajaxstop,ajaxcomplete,ajaxerror,ajaxsuccess,ajaxsend".split(","),function(i,o){jquery.fn[o]=function(f){return this.bind(o,f);};});var jsc=(new date).gettime();jquery.extend({get:function(url,data,callback,type){if(jquery.isfunction(data)){callback=data;data=null;}return jquery.ajax({type:"get",url:url,data:data,success:callback,datatype:type});},getscript:function(url,callback){return jquery.get(url,null,callback,"script");},getjson:function(url,data,callback){return jquery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jquery.isfunction(data)){callback=data;data={};}return jquery.ajax({type:"post",url:url,data:data,success:callback,datatype:type});},ajaxsetup:function(settings){jquery.extend(jquery.ajaxsettings,settings);},ajaxsettings:{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){var jsonp,jsre=/=\?(&|$)/g,status,data;s=jquery.extend(true,s,jquery.extend(true,{},jquery.ajaxsettings,s));if(s.data&&s.processdata&&typeof s.data!="string")s.data=jquery.param(s.data);if(s.datatype=="jsonp"){if(s.type.tolowercase()=="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))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.datatype="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head)head.removechild(script);};}if(s.datatype=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&s.type.tolowercase()=="get"){var ts=(new date()).gettime();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&s.type.tolowercase()=="get"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jquery.active++)jquery.event.trigger("ajaxstart");if((!s.url.indexof("http")||!s.url.indexof("//"))&&s.datatype=="script"&&s.type.tolowercase()=="get"){var head=document.getelementsbytagname("head")[0];var script=document.createelement("script");script.src=s.url;if(s.scriptcharset)script.charset=s.scriptcharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readystate||this.readystate=="loaded"||this.readystate=="complete")){done=true;success();complete();head.removechild(script);}};}head.appendchild(script);return undefined;}var requestdone=false;var xml=window.activexobject?new activexobject("microsoft.xmlhttp"):new xmlhttprequest();xml.open(s.type,s.url,s.async,s.username,s.password);try{if(s.data)xml.setrequestheader("content-type",s.contenttype);if(s.ifmodified)xml.setrequestheader("if-modified-since",jquery.lastmodified[s.url]||"thu, 01 jan 1970 00:00:00 gmt");xml.setrequestheader("x-requested-with","xmlhttprequest");xml.setrequestheader("accept",s.datatype&&s.accepts[s.datatype]?s.accepts[s.datatype]+", */*":s.accepts._default);}catch(e){}if(s.beforesend)s.beforesend(xml);if(s.global)jquery.event.trigger("ajaxsend",[xml,s]);var onreadystatechange=function(istimeout){if(!requestdone&&xml&&(xml.readystate==4||istimeout=="timeout")){requestdone=true;if(ival){clearinterval(ival);ival=null;}status=istimeout=="timeout"&&"timeout"||!jquery.httpsuccess(xml)&&"error"||s.ifmodified&&jquery.httpnotmodified(xml,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jquery.httpdata(xml,s.datatype);}catch(e){status="parsererror";}}if(status=="success"){var modres;try{modres=xml.getresponseheader("last-modified");}catch(e){}if(s.ifmodified&&modres)jquery.lastmodified[s.url]=modres;if(!jsonp)success();}else jquery.handleerror(s,xml,status);complete();if(s.async)xml=null;}};if(s.async){var ival=setinterval(onreadystatechange,13);if(s.timeout>0)settimeout(function(){if(xml){xml.abort();if(!requestdone)onreadystatechange("timeout");}},s.timeout);}try{xml.send(s.data);}catch(e){jquery.handleerror(s,xml,null,e);}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jquery.event.trigger("ajaxsuccess",[xml,s]);}function complete(){if(s.complete)s.complete(xml,status);if(s.global)jquery.event.trigger("ajaxcomplete",[xml,s]);if(s.global&&!--jquery.active)jquery.event.trigger("ajaxstop");}return xml;},handleerror:function(s,xml,status,e){if(s.error)s.error(xml,status,e);if(s.global)jquery.event.trigger("ajaxerror",[xml,s,e]);},active:0,httpsuccess:function(r){try{return!r.status&&location.protocol=="file:"||(r.status>=200&&r.status<300)||r.status==304||r.status==1223||jquery.browser.safari&&r.status==undefined;}catch(e){}return false;},httpnotmodified:function(xml,url){try{var xmlres=xml.getresponseheader("last-modified");return xml.status==304||xmlres==jquery.lastmodified[url]||jquery.browser.safari&&xml.status==undefined;}catch(e){}return false;},httpdata:function(r,type){var ct=r.getresponseheader("content-type");var xml=type=="xml"||!type&&ct&&ct.indexof("xml")>=0;var data=xml?r.responsexml:r.responsetext;if(xml&&data.documentelement.tagname=="parsererror")throw"parsererror";if(type=="script")jquery.globaleval(data);if(type=="json")data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==array||a.jquery)jquery.each(a,function(){s.push(encodeuricomponent(this.name)+"="+encodeuricomponent(this.value));});else for(var j in a)if(a[j]&&a[j].constructor==array)jquery.each(a[j],function(){s.push(encodeuricomponent(j)+"="+encodeuricomponent(this));});else s.push(encodeuricomponent(j)+"="+encodeuricomponent(a[j]));return s.join("&").replace(/%20/g,"+");}});jquery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jquery.css(this,"display")=="none"){var elem=jquery("<"+this.tagname+" />").appendto("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.display="block";elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jquery.css(this,"display");this.style.display="none";}).end();},_toggle:jquery.fn.toggle,toggle:function(fn,fn2){return jquery.isfunction(fn)&&jquery.isfunction(fn2)?this._toggle(fn,fn2):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jquery(this)[jquery(this).is(":hidden")?"show":"hide"]();});},slidedown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideup:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slidetoggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadein:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeout:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeto:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jquery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodetype!=1)return false;var opt=jquery.extend({},optall);var hidden=jquery(this).is(":hidden"),self=this;for(var p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return jquery.isfunction(opt.complete)&&opt.complete.apply(this);if(p=="height"||p=="width"){opt.display=jquery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curanim=jquery.extend({},prop);jquery.each(prop,function(name,val){var e=new jquery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.tostring().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parsefloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else e.custom(start,val,"");}});return true;});},queue:function(type,fn){if(jquery.isfunction(type)||(type&&type.constructor==array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return this.each(function(){if(fn.constructor==array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)fn.apply(this);}});},stop:function(clearqueue,gotoend){var timers=jquery.timers;if(clearqueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoend)timers[i](true);timers.splice(i,1);}});if(!gotoend)this.dequeue();return this;}});var queue=function(elem,type,array){if(!elem)return undefined;type=type||"fx";var q=jquery.data(elem,type+"queue");if(!q||array)q=jquery.data(elem,type+"queue",array?jquery.makearray(array):[]);return q;};jquery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].apply(this);});};jquery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==object?speed:{complete:fn||!fn&&easing||jquery.isfunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==number?opt.duration:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jquery(this).dequeue();if(jquery.isfunction(opt.old))opt.old.apply(this);};return opt;},easing:{linear:function(p,n,firstnum,diff){return firstnum+diff*p;},swing:function(p,n,firstnum,diff){return((-math.cos(p*math.pi)/2)+0.5)*diff+firstnum;}},timers:[],timerid:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)options.orig={};}});jquery.fx.prototype={update:function(){if(this.options.step)this.options.step.apply(this.elem,[this.now,this]);(jquery.fx.step[this.prop]||jquery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parsefloat(jquery.css(this.elem,this.prop,force));return r&&r>-10000?r:parsefloat(jquery.curcss(this.elem,this.prop))||0;},custom:function(from,to,unit){this.starttime=(new date()).gettime();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoend){return self.step(gotoend);}t.elem=this.elem;jquery.timers.push(t);if(jquery.timerid==null){jquery.timerid=setinterval(function(){var timers=jquery.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 done=true;for(var i in this.options.curanim)if(this.options.curanim[i]!==true)done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jquery.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)jquery.attr(this.elem.style,p,this.options.orig[p]);}if(done&&jquery.isfunction(this.options.complete))this.options.complete.apply(this.elem);return false;}else{var n=t-this.starttime;this.state=n/this.options.duration;this.pos=jquery.easing[this.options.easing||(jquery.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;}};jquery.fx.step={scrollleft:function(fx){fx.elem.scrollleft=fx.now;},scrolltop:function(fx){fx.elem.scrolltop=fx.now;},opacity:function(fx){jquery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}};jquery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jquery.browser){var parent=elem.parentnode,offsetchild=elem,offsetparent=elem.offsetparent,doc=elem.ownerdocument,safari2=safari&&parseint(version)<522&&!/adobeair/i.test(useragent),fixed=jquery.css(elem,"position")=="fixed";if(elem.getboundingclientrect){var box=elem.getboundingclientrect();add(box.left+math.max(doc.documentelement.scrollleft,doc.body.scrollleft),box.top+math.max(doc.documentelement.scrolltop,doc.body.scrolltop));add(-doc.documentelement.clientleft,-doc.documentelement.clienttop);}else{add(elem.offsetleft,elem.offsettop);while(offsetparent){add(offsetparent.offsetleft,offsetparent.offsettop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetparent.tagname)||safari&&!safari2)border(offsetparent);if(!fixed&&jquery.css(offsetparent,"position")=="fixed")fixed=true;offsetchild=/^body$/i.test(offsetparent.tagname)?offsetchild:offsetparent;offsetparent=offsetparent.offsetparent;}while(parent&&parent.tagname&&!/^body|html$/i.test(parent.tagname)){if(!/^inline|table.*$/i.test(jquery.css(parent,"display")))add(-parent.scrollleft,-parent.scrolltop);if(mozilla&&jquery.css(parent,"overflow")!="visible")border(parent);parent=parent.parentnode;}if((safari2&&(fixed||jquery.css(offsetchild,"position")=="absolute"))||(mozilla&&jquery.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:left};}function border(elem){add(jquery.curcss(elem,"borderleftwidth",true),jquery.curcss(elem,"bordertopwidth",true));}function add(l,t){left+=parseint(l)||0;top+=parseint(t)||0;}return results;};})();