/* * jquery javascript library v1.4a2 * http://jquery.com/ * * copyright (c) 2009 john resig * dual licensed under the mit or gpl version 2 licenses. * http://docs.jquery.com/license * * date: fri dec 18 19:58:11 2009 -0500 */ (function(window,undefined){var jquery=function(selector,context){return new jquery.fn.init(selector,context)},_jquery=window.jquery,_$=window.$,document=window.document,rootjquery,quickexpr=/^[^<]*(<[\w\w]+>)[^>]*$|^#([\w-]+)$/,issimple=/^.[^:#\[\.,]*$/,rnotwhite=/\s/,rtrim=/^(\s|\u00a0)+|(\s|\u00a0)+$/g,rsingletag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,useragent=navigator.useragent.tolowercase(),readybound=false,readylist=[],domcontentloaded,tostring=object.prototype.tostring,hasownproperty=object.prototype.hasownproperty,push=array.prototype.push,slice=array.prototype.slice,indexof=array.prototype.indexof;jquery.fn=jquery.prototype={init:function(selector,context){var match,elem,ret,doc;if(!selector){return this}if(selector.nodetype){this.context=this[0]=selector;this.length=1;return this}if(typeof selector==="string"){match=quickexpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){doc=(context?context.ownerdocument||context:document);ret=rsingletag.exec(selector);if(ret){if(jquery.isplainobject(context)){selector=[document.createelement(ret[1])];jquery.fn.attr.call(selector,context,true)}else{selector=[doc.createelement(ret[1])]}}else{ret=buildfragment([match[1]],[doc]);selector=(ret.cacheable?ret.fragment.clonenode(true):ret.fragment).childnodes}}else{elem=document.getelementbyid(match[2]);if(elem){if(elem.id!==match[2]){return rootjquery.find(selector)}this.length=1;this[0]=elem}this.context=document;this.selector=selector;return this}}else{if(!context&&/^\w+$/.test(selector)){this.selector=selector;this.context=document;selector=document.getelementsbytagname(selector)}else{if(!context||context.jquery){return(context||rootjquery).find(selector)}else{return jquery(context).find(selector)}}}}else{if(jquery.isfunction(selector)){return rootjquery.ready(selector)}}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context}return jquery.isarray(selector)?this.setarray(selector):jquery.makearray(selector,this)},selector:"",jquery:"1.4a2",length:0,size:function(){return this.length},toarray:function(){return slice.call(this,0)},get:function(num){return num==null?this.toarray():(num<0?this.slice(num)[0]:this[num])},pushstack:function(elems,name,selector){var ret=jquery(elems||null);ret.prevobject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")"}}return ret},setarray:function(elems){this.length=0;push.apply(this,elems);return this},each:function(callback,args){return jquery.each(this,callback,args)},ready:function(fn){jquery.bindready();if(jquery.isready){fn.call(document,jquery)}else{if(readylist){readylist.push(fn)}}return this},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushstack(slice.apply(this,arguments),"slice",slice.call(arguments).join(","))},map:function(callback){return this.pushstack(jquery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},end:function(){return this.prevobject||jquery(null)},push:push,sort:[].sort,splice:[].splice};jquery.fn.init.prototype=jquery.fn;jquery.extend=jquery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options,name,src,copy;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2}if(typeof target!=="object"&&!jquery.isfunction(target)){target={}}if(length===i){target=this;--i}for(;i
a';var all=div.getelementsbytagname("*"),a=div.getelementsbytagname("a")[0];if(!all||!all.length||!a){return}jquery.support={leadingwhitespace:div.firstchild.nodetype==3,tbody:!div.getelementsbytagname("tbody").length,htmlserialize:!!div.getelementsbytagname("link").length,style:/red/.test(a.getattribute("style")),hrefnormalized:a.getattribute("href")==="/a",opacity:/^0.55$/.test(a.style.opacity),cssfloat:!!a.style.cssfloat,scripteval:false,nocloneevent:true,boxmodel:null};script.type="text/javascript";try{script.appendchild(document.createtextnode("window."+id+"=1;"))}catch(e){}root.insertbefore(script,root.firstchild);if(window[id]){jquery.support.scripteval=true;delete window[id]}root.removechild(script);if(div.attachevent&&div.fireevent){div.attachevent("onclick",function click(){jquery.support.nocloneevent=false;div.detachevent("onclick",click)});div.clonenode(true).fireevent("onclick")}jquery(function(){var div=document.createelement("div");div.style.width=div.style.paddingleft="1px";document.body.appendchild(div);jquery.boxmodel=jquery.support.boxmodel=div.offsetwidth===2;document.body.removechild(div).style.display="none";div=null});var eventsupported=function(eventname){var el=document.createelement("div");eventname="on"+eventname;var issupported=(eventname in el);if(!issupported){el.setattribute(eventname,"return;");issupported=typeof el[eventname]==="function"}el=null;return issupported};jquery.support.submitbubbles=eventsupported("submit");jquery.support.changebubbles=eventsupported("change");jquery.support.focusbubbles=eventsupported("focus");root=script=div=all=a=null})();jquery.props={"for":"htmlfor","class":"classname",readonly:"readonly",maxlength:"maxlength",cellspacing:"cellspacing",rowspan:"rowspan",colspan:"colspan",tabindex:"tabindex",usemap:"usemap",frameborder:"frameborder"};var expando="jquery"+now(),uuid=0,windowdata={};var emptyobject={};jquery.extend({cache:{},expando:expando,nodata:{embed:true,object:true,applet:true},data:function(elem,name,data){if(elem.nodename&&jquery.nodata[elem.nodename.tolowercase()]){return}elem=elem==window?windowdata:elem;var id=elem[expando],cache=jquery.cache,thiscache;if(!name&&!id){return null}if(!id){id=++uuid}if(typeof name==="object"){elem[expando]=id;thiscache=cache[id]=jquery.extend(true,{},name)}else{if(cache[id]){thiscache=cache[id]}else{if(typeof data==="undefined"){thiscache=emptyobject}else{thiscache=cache[id]={}}}}if(data!==undefined){elem[expando]=id;thiscache[name]=data}return typeof name==="string"?thiscache[name]:thiscache},removedata:function(elem,name){if(elem.nodename&&jquery.nodata[elem.nodename.tolowercase()]){return}elem=elem==window?windowdata:elem;var id=elem[expando],cache=jquery.cache,thiscache=cache[id];if(name){if(thiscache){delete thiscache[name];if(jquery.isemptyobject(thiscache)){jquery.removedata(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeattribute){elem.removeattribute(expando)}}delete cache[id]}}});jquery.fn.extend({data:function(key,value){if(typeof key==="undefined"&&this.length){return jquery.data(this[0])}else{if(typeof key==="object"){return this.each(function(){jquery.data(this,key)})}}var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerhandler("getdata"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length){data=jquery.data(this[0],key)}return data===undefined&&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)})}});jquery.extend({queue:function(elem,type,data){if(!elem){return}type=(type||"fx")+"queue";var q=jquery.data(elem,type);if(!data){return q||[]}if(!q||jquery.isarray(data)){q=jquery.data(elem,type,jquery.makearray(data))}else{q.push(data)}return q},dequeue:function(elem,type){type=type||"fx";var queue=jquery.queue(elem,type),fn=queue.shift();if(fn==="inprogress"){fn=queue.shift()}if(fn){if(type=="fx"){queue.unshift("inprogress")}fn.call(elem,function(){jquery.dequeue(elem,type)})}}});jquery.fn.extend({queue:function(type,data){if(typeof type!=="string"){data=type;type="fx"}if(data===undefined){return jquery.queue(this[0],type)}return this.each(function(i,elem){var queue=jquery.queue(this,type,data);if(type=="fx"&&queue[0]!=="inprogress"){jquery.dequeue(this,type)}})},dequeue:function(type){return this.each(function(){jquery.dequeue(this,type)})},delay:function(time,type){time=jquery.fx?jquery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(){var elem=this;settimeout(function(){jquery.dequeue(elem,type)},time)})},clearqueue:function(type){return this.queue(type||"fx",[])}});jquery.event={add:function(elem,types,handler,data){if(elem.nodetype===3||elem.nodetype===8){return}if(elem.setinterval&&(elem!==window&&!elem.frameelement)){elem=window}if(!handler.guid){handler.guid=this.guid++}if(data!==undefined){var fn=handler;handler=this.proxy(fn);handler.data=data}var events=jquery.data(elem,"events")||jquery.data(elem,"events",{}),handle=jquery.data(elem,"handle"),eventhandle;if(!handle){eventhandle=function(){return typeof jquery!=="undefined"&&!jquery.event.triggered?jquery.event.handle.apply(eventhandle.elem,arguments):undefined};handle=jquery.data(elem,"handle",eventhandle)}handle.elem=elem;types=types.split(/\s+/);var type,i=0;while((type=types[i++])){var namespaces=type.split(".");type=namespaces.shift();handler.type=namespaces.slice(0).sort().join(".");var handlers=events[type],special=this.special[type]||{};if(!handlers){handlers=events[type]={};if(!special.setup||special.setup.call(elem,data,namespaces,handler)===false){if(elem.addeventlistener){elem.addeventlistener(type,handle,false)}else{if(elem.attachevent){elem.attachevent("on"+type,handle)}}}}if(special.add){var modifiedhandler=special.add.call(elem,handler,data,namespaces,handlers);if(modifiedhandler&&jquery.isfunction(modifiedhandler)){modifiedhandler.guid=modifiedhandler.guid||handler.guid;handler=modifiedhandler}}handlers[handler.guid]=handler;this.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,type,fn;if(events){if(types===undefined||(typeof types==="string"&&types.charat(0)===".")){for(type in events){this.remove(elem,type+(types||""))}}else{if(types.type){handler=types.handler;types=types.type}types=types.split(/\s+/);var i=0;while((type=types[i++])){var namespaces=type.split(".");type=namespaces.shift();var all=!namespaces.length,cleaned=jquery.map(namespaces.slice(0).sort(),function(nm){return nm.replace(/[^\w\s\.\|`]/g,function(ch){return"\\"+ch})}),namespace=new regexp("(^|\\.)"+cleaned.join("\\.(?:.*\\.)?")+"(\\.|$)"),special=this.special[type]||{};if(events[type]){if(handler){fn=events[type][handler.guid];delete events[type][handler.guid]}else{for(var handle in events[type]){if(all||namespace.test(events[type][handle].type)){delete events[type][handle]}}}if(special.remove){special.remove.call(elem,namespaces,fn)}for(ret in events[type]){break}if(!ret){if(!special.teardown||special.teardown.call(elem,namespaces)===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(event,data,elem){var type=event.type||event,bubbling=arguments[3];if(!bubbling){event=typeof event==="object"?event[expando]?event:jquery.extend(jquery.event(type),event):jquery.event(type);if(type.indexof("!")>=0){event.type=type=type.slice(0,-1);event.exclusive=true}if(!elem){event.stoppropagation();if(this.global[type]){jquery.each(jquery.cache,function(){if(this.events&&this.events[type]){jquery.event.trigger(event,data,this.handle.elem)}})}}if(!elem||elem.nodetype===3||elem.nodetype===8){return undefined}event.result=undefined;event.target=elem;data=jquery.makearray(data);data.unshift(event)}event.currenttarget=elem;var handle=jquery.data(elem,"handle");if(handle){handle.apply(elem,data)}var nativefn,nativehandler;try{if(!(elem&&elem.nodename&&jquery.nodata[elem.nodename.tolowercase()])){nativefn=elem[type];nativehandler=elem["on"+type]}}catch(e){}var isclick=jquery.nodename(elem,"a")&&type==="click";if(!bubbling&&nativefn&&!event.isdefaultprevented()&&!isclick){this.triggered=true;try{elem[type]()}catch(e){}}else{if(nativehandler&&elem["on"+type].apply(elem,data)===false){event.result=false}}this.triggered=false;if(!event.ispropagationstopped()){var parent=elem.parentnode||elem.ownerdocument;if(parent){jquery.event.trigger(event,data,parent,true)}}},handle:function(event){var all,handlers;event=arguments[0]=jquery.event.fix(event||window.event);event.currenttarget=this;var namespaces=event.type.split(".");event.type=namespaces.shift();all=!namespaces.length&&!event.exclusive;var namespace=new regexp("(^|\\.)"+namespaces.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");handlers=(jquery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||namespace.test(handler.type)){event.handler=handler;event.data=handler.data;var ret=handler.apply(this,arguments);if(ret!==undefined){event.result=ret;if(ret===false){event.preventdefault();event.stoppropagation()}}if(event.isimmediatepropagationstopped()){break}}}return event.result},props:"altkey attrchange attrname bubbles button cancelable charcode clientx clienty ctrlkey currenttarget data detail eventphase fromelement handler keycode layerx layery metakey newvalue offsetx offsety originaltarget pagex pagey prevvalue relatednode relatedtarget screenx screeny shiftkey srcelement target toelement view wheeldelta which".split(" "),fix:function(event){if(event[expando]){return event}var originalevent=event;event=jquery.event(originalevent);for(var i=this.props.length,prop;i;){prop=this.props[--i];event[prop]=originalevent[prop]}if(!event.target){event.target=event.srcelement||document}if(event.target.nodetype===3){event.target=event.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&&doc.clientleft||body&&body.clientleft||0);event.pagey=event.clienty+(doc&&doc.scrolltop||body&&body.scrolltop||0)-(doc&&doc.clienttop||body&&body.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!==undefined){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event},proxy:function(fn,proxy,thisobject){if(proxy!==undefined&&!jquery.isfunction(proxy)){thisobject=proxy;proxy=undefined}proxy=proxy||function(){return fn.apply(thisobject!==undefined?thisobject:this,arguments)};proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy},special:{ready:{setup:jquery.bindready,teardown:function(){}},live:{add:function(proxy,data,namespaces,live){jquery.extend(proxy,data||{});proxy.guid+=data.selector+data.live;jquery.event.add(this,data.live,livehandler,data)},remove:function(namespaces){if(namespaces.length){var remove=0,name=new regexp("(^|\\.)"+namespaces[0]+"(\\.|$)");jquery.each((jquery.data(this,"events").live||{}),function(){if(name.test(this.type)){remove++}});if(remove<1){jquery.event.remove(this,namespaces[0],livehandler)}}},special:{}},beforeunload:{setup:function(data,namespaces,fn){if(this.setinterval){this.onbeforeunload=fn}return false},teardown:function(namespaces,fn){if(this.onbeforeunload===fn){this.onbeforeunload=null}}}}};jquery.event=function(src){if(!this.preventdefault){return new jquery.event(src)}if(src&&src.type){this.originalevent=src;this.type=src.type}else{this.type=src}this.timestamp=now();this[expando]=true};function returnfalse(){return false}function returntrue(){return true}jquery.event.prototype={preventdefault:function(){this.isdefaultprevented=returntrue;var e=this.originalevent;if(!e){return}if(e.preventdefault){e.preventdefault()}e.returnvalue=false},stoppropagation:function(){this.ispropagationstopped=returntrue;var e=this.originalevent;if(!e){return}if(e.stoppropagation){e.stoppropagation()}e.cancelbubble=true},stopimmediatepropagation:function(){this.isimmediatepropagationstopped=returntrue;this.stoppropagation()},isdefaultprevented:returnfalse,ispropagationstopped:returnfalse,isimmediatepropagationstopped:returnfalse};var withinelement=function(event){var parent=event.relatedtarget;while(parent&&parent!=this){try{parent=parent.parentnode}catch(e){break}}if(parent!=this){event.type=event.data;jquery.event.handle.apply(this,arguments)}},delegate=function(event){event.type=event.data;jquery.event.handle.apply(this,arguments)};jquery.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(orig,fix){jquery.event.special[orig]={setup:function(data){jquery.event.add(this,fix,data&&data.selector?delegate:withinelement,orig)},teardown:function(data){jquery.event.remove(this,fix,data&&data.selector?delegate:withinelement)}}});if(!jquery.support.submitbubbles){jquery.event.special.submit={setup:function(data,namespaces,fn){if(this.nodename.tolowercase()!=="form"){jquery.event.add(this,"click.specialsubmit."+fn.guid,function(e){var elem=e.target,type=elem.type;if((type==="submit"||type==="image")&&jquery(elem).closest("form").length){return trigger("submit",this,arguments)}});jquery.event.add(this,"keypress.specialsubmit."+fn.guid,function(e){var elem=e.target,type=elem.type;if((type==="text"||type==="password")&&jquery(elem).closest("form").length&&e.keycode===13){return trigger("submit",this,arguments)}})}},remove:function(namespaces,fn){jquery.event.remove(this,"click.specialsubmit"+(fn?"."+fn.guid:""));jquery.event.remove(this,"keypress.specialsubmit"+(fn?"."+fn.guid:""))}}}if(!jquery.support.changebubbles){jquery.event.special.change={filters:{click:function(e){var elem=e.target;if(elem.nodename.tolowercase()==="input"&&elem.type==="checkbox"){return trigger("change",this,arguments)}return changefilters.keyup.call(this,e)},keyup:function(e){var elem=e.target,data,index=elem.selectedindex+"";if(elem.nodename.tolowercase()==="select"){data=jquery.data(elem,"_change_data");jquery.data(elem,"_change_data",index);if((elem.type==="select-multiple"||data!=null)&&data!==index){return trigger("change",this,arguments)}}},beforeactivate:function(e){var elem=e.target;if(elem.nodename.tolowercase()==="input"&&elem.type==="radio"&&!elem.checked){return trigger("change",this,arguments)}},blur:function(e){var elem=e.target,nodename=elem.nodename.tolowercase();if((nodename==="textarea"||(nodename==="input"&&(elem.type==="text"||elem.type==="password")))&&jquery.data(elem,"_change_data")!==elem.value){return trigger("change",this,arguments)}},focus:function(e){var elem=e.target,nodename=elem.nodename.tolowercase();if(nodename==="textarea"||(nodename==="input"&&(elem.type==="text"||elem.type==="password"))){jquery.data(elem,"_change_data",elem.value)}}},setup:function(data,namespaces,fn){for(var type in changefilters){jquery.event.add(this,type+".specialchange."+fn.guid,changefilters[type])}return false},remove:function(namespaces,fn){for(var type in changefilters){jquery.event.remove(this,type+".specialchange"+(fn?"."+fn.guid:""),changefilters[type])}}};var changefilters=jquery.event.special.change.filters}function trigger(type,elem,args){args[0].type=type;return jquery.event.handle.apply(elem,args)}if(!jquery.support.focusbubbles){jquery.each({focus:"focusin",blur:"focusout"},function(orig,fix){jquery.event.special[orig]={setup:function(){jquery.event.add(this,fix,iehandler)},teardown:function(){jquery.event.remove(this,fix,iehandler)}};function iehandler(){arguments[0].type=orig;return jquery.event.handle.apply(this,arguments)}})}jquery.each(["bind","one"],function(i,name){jquery.fn[name]=function(type,data,fn,thisobject){if(typeof type==="object"){for(var key in type){this[name](key,data,type[key],fn)}return this}if(jquery.isfunction(data)){thisobject=fn;fn=data;data=undefined}fn=thisobject===undefined?fn:jquery.event.proxy(fn,thisobject);var handler=name=="one"?jquery.event.proxy(fn,function(event){jquery(this).unbind(event,handler);return fn.apply(this,arguments)}):fn;return type==="unload"?this.one(type,data,handler,thisobject):this.each(function(){jquery.event.add(this,type,handler,data)})}});jquery.fn.extend({unbind:function(type,fn){if(typeof type==="object"&&!type.preventdefault){for(var key in type){this.unbind(key,type[key])}return this}return this.each(function(){jquery.event.remove(this,type,fn)})},trigger:function(type,data){return this.each(function(){jquery.event.trigger(type,data,this)})},triggerhandler:function(type,data){if(this[0]){var event=jquery.event(type);event.preventdefault();event.stoppropagation();jquery.event.trigger(event,data,this[0]);return event.result}},toggle:function(fn){var args=arguments,i=1;while(i-1){data=fn.data;if(!(data.beforefilter&&data.beforefilter[event.type]&&!data.beforefilter[event.type](event))){selectors.push(fn.selector)}}else{delete live[j]}}match=jquery(event.target).closest(selectors,event.currenttarget);for(i=0,l=match.length;i+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,tostring=object.prototype.tostring,hasduplicate=false,basehasduplicate=true;[0,0].sort(function(){basehasduplicate=false;return 0});var sizzle=function(selector,context,results,seed){results=results||[];var origcontext=context=context||document;if(context.nodetype!==1&&context.nodetype!==9){return[]}if(!selector||typeof selector!=="string"){return results}var parts=[],m,set,checkset,extra,prune=true,contextxml=isxml(context),sofar=selector;while((chunker.exec(""),m=chunker.exec(sofar))!==null){sofar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break}}if(parts.length>1&&origpos.exec(selector)){if(parts.length===2&&expr.relative[parts[0]]){set=posprocess(parts[0]+parts[1],context)}else{set=expr.relative[parts[0]]?[context]:sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(expr.relative[selector]){selector+=parts.shift()}set=posprocess(selector,set)}}}else{if(!seed&&parts.length>1&&context.nodetype===9&&!contextxml&&expr.match.id.test(parts[0])&&!expr.match.id.test(parts[parts.length-1])){var ret=sizzle.find(parts.shift(),context,contextxml);context=ret.expr?sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]}if(context){var ret=seed?{expr:parts.pop(),set:makearray(seed)}:sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentnode?context.parentnode:context,contextxml);set=ret.expr?sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkset=makearray(set)}else{prune=false}while(parts.length){var cur=parts.pop(),pop=cur;if(!expr.relative[cur]){cur=""}else{pop=parts.pop()}if(pop==null){pop=context}expr.relative[cur](checkset,pop,contextxml)}}else{checkset=parts=[]}}if(!checkset){checkset=set}if(!checkset){throw"syntax error, unrecognized expression: "+(cur||selector)}if(tostring.call(checkset)==="[object array]"){if(!prune){results.push.apply(results,checkset)}else{if(context&&context.nodetype===1){for(var i=0;checkset[i]!=null;i++){if(checkset[i]&&(checkset[i]===true||checkset[i].nodetype===1&&contains(context,checkset[i]))){results.push(set[i])}}}else{for(var i=0;checkset[i]!=null;i++){if(checkset[i]&&checkset[i].nodetype===1){results.push(set[i])}}}}}else{makearray(checkset,results)}if(extra){sizzle(extra,origcontext,results,seed);sizzle.uniquesort(results)}return results};sizzle.uniquesort=function(results){if(sortorder){hasduplicate=basehasduplicate;results.sort(sortorder);if(hasduplicate){for(var i=1;i":function(checkset,part){var ispartstr=typeof part==="string";if(ispartstr&&!/\w/.test(part)){part=part.tolowercase();for(var i=0,l=checkset.length;i=0)){if(!inplace){result.push(elem)}}else{if(inplace){curloop[i]=false}}}}return false},id:function(match){return match[1].replace(/\\/g,"")},tag:function(match,curloop){return match[1].tolowercase()},child:function(match){if(match[1]=="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]=="even"&&"2n"||match[2]=="odd"&&"2n+1"||!/\d/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0}match[0]=done++;return match},attr:function(match,curloop,inplace,result,not,isxml){var name=match[1].replace(/\\/g,"");if(!isxml&&expr.attrmap[name]){match[1]=expr.attrmap[name]}if(match[2]==="~="){match[4]=" "+match[4]+" "}return match},pseudo:function(match,curloop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=sizzle(match[3],null,null,curloop)}else{var ret=sizzle.filter(match[3],curloop,inplace,true^not);if(!inplace){result.push.apply(result,ret)}return false}}else{if(expr.match.pos.test(match[0])||expr.match.child.test(match[0])){return true}}return match},pos:function(match){match.unshift(true);return match}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"},disabled:function(elem){return elem.disabled===true},checked:function(elem){return elem.checked===true},selected:function(elem){elem.parentnode.selectedindex;return elem.selected===true},parent:function(elem){return !!elem.firstchild},empty:function(elem){return !elem.firstchild},has:function(elem,i,match){return !!sizzle(match[3],elem).length},header:function(elem){return/h\d/i.test(elem.nodename)},text:function(elem){return"text"===elem.type},radio:function(elem){return"radio"===elem.type},checkbox:function(elem){return"checkbox"===elem.type},file:function(elem){return"file"===elem.type},password:function(elem){return"password"===elem.type},submit:function(elem){return"submit"===elem.type},image:function(elem){return"image"===elem.type},reset:function(elem){return"reset"===elem.type},button:function(elem){return"button"===elem.type||elem.nodename.tolowercase()==="button"},input:function(elem){return/input|select|textarea|button/i.test(elem.nodename)}},setfilters:{first:function(elem,i){return i===0},last:function(elem,i,match,array){return i===array.length-1},even:function(elem,i){return i%2===0},odd:function(elem,i){return i%2===1},lt:function(elem,i,match){return imatch[3]-0},nth:function(elem,i,match){return match[3]-0==i},eq:function(elem,i,match){return match[3]-0==i}},filter:{pseudo:function(elem,match,i,array){var name=match[1],filter=expr.filters[name];if(filter){return filter(elem,i,match,array)}else{if(name==="contains"){return(elem.textcontent||elem.innertext||gettext([elem])||"").indexof(match[3])>=0}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i=0)}}},id:function(elem,match){return elem.nodetype===1&&elem.getattribute("id")===match},tag:function(elem,match){return(match==="*"&&elem.nodetype===1)||elem.nodename.tolowercase()===match},class:function(elem,match){return(" "+(elem.classname||elem.getattribute("class"))+" ").indexof(match)>-1},attr:function(elem,match){var name=match[1],result=expr.attrhandle[name]?expr.attrhandle[name](elem):elem[name]!=null?elem[name]:elem.getattribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexof(check)>=0:type==="~="?(" "+value+" ").indexof(check)>=0:!check?value&&result!==false:type==="!="?value!=check:type==="^="?value.indexof(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},pos:function(elem,match,i,array){var name=match[2],filter=expr.setfilters[name];if(filter){return filter(elem,i,match,array)}}}};var origpos=expr.match.pos;for(var type in expr.match){expr.match[type]=new regexp(expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);expr.leftmatch[type]=new regexp(/(^(?:.|\r|\n)*?)/.source+expr.match[type].source)}var makearray=function(array,results){array=array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results}return array};try{array.prototype.slice.call(document.documentelement.childnodes,0)}catch(e){makearray=function(array,results){var ret=results||[];if(tostring.call(array)==="[object array]"){array.prototype.push.apply(ret,array)}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i";var root=document.documentelement;root.insertbefore(form,root.firstchild);if(document.getelementbyid(id)){expr.find.id=function(match,context,isxml){if(typeof context.getelementbyid!=="undefined"&&!isxml){var m=context.getelementbyid(match[1]);return m?m.id===match[1]||typeof m.getattributenode!=="undefined"&&m.getattributenode("id").nodevalue===match[1]?[m]:undefined:[]}};expr.filter.id=function(elem,match){var node=typeof elem.getattributenode!=="undefined"&&elem.getattributenode("id");return elem.nodetype===1&&node&&node.nodevalue===match}}root.removechild(form);root=form=null})();(function(){var div=document.createelement("div");div.appendchild(document.createcomment(""));if(div.getelementsbytagname("*").length>0){expr.find.tag=function(match,context){var results=context.getelementsbytagname(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodetype===1){tmp.push(results[i])}}results=tmp}return results}}div.innerhtml="";if(div.firstchild&&typeof div.firstchild.getattribute!=="undefined"&&div.firstchild.getattribute("href")!=="#"){expr.attrhandle.href=function(elem){return elem.getattribute("href",2)}}div=null})();if(document.queryselectorall){(function(){var oldsizzle=sizzle,div=document.createelement("div");div.innerhtml="

";if(div.queryselectorall&&div.queryselectorall(".test").length===0){return}sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodetype===9&&!isxml(context)){try{return makearray(context.queryselectorall(query),extra)}catch(e){}}return oldsizzle(query,context,extra,seed)};for(var prop in oldsizzle){sizzle[prop]=oldsizzle[prop]}div=null})()}(function(){var div=document.createelement("div");div.innerhtml="
";if(!div.getelementsbyclassname||div.getelementsbyclassname("e").length===0){return}div.lastchild.classname="e";if(div.getelementsbyclassname("e").length===1){return}expr.order.splice(1,0,"class");expr.find.class=function(match,context,isxml){if(typeof context.getelementsbyclassname!=="undefined"&&!isxml){return context.getelementsbyclassname(match[1])}};div=null})();function dirnodecheck(dir,cur,donename,checkset,nodecheck,isxml){var sibdir=dir=="previoussibling"&&!isxml;for(var i=0,l=checkset.length;i0){match=elem;break}}}elem=elem[dir]}checkset[i]=match}}}var contains=document.comparedocumentposition?function(a,b){return a.comparedocumentposition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var isxml=function(elem){var documentelement=(elem?elem.ownerdocument||elem:0).documentelement;return documentelement?documentelement.nodename!=="html":false};var posprocess=function(selector,context){var tmpset=[],later="",match,root=context.nodetype?[context]:context;while((match=expr.match.pseudo.exec(selector))){later+=match[0];selector=selector.replace(expr.match.pseudo,"")}selector=expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i=0)===keep})};jquery.fn.extend({find:function(selector){var ret=this.pushstack("","find",selector),length=0;for(var i=0,l=this.length;i0){for(var n=length;n0},closest:function(selectors,context){if(jquery.isarray(selectors)){var ret=[],cur=this[0],match,matches={},selector;if(cur&&selectors.length){for(var i=0,l=selectors.length;i-1:jquery(cur).is(match)){ret.push({selector:selector,elem:cur});delete matches[selector]}}cur=cur.parentnode}}return ret}var pos=jquery.expr.match.pos.test(selectors)?jquery(selectors,context||this.context):null;return this.map(function(i,cur){while(cur&&cur.ownerdocument&&cur!==context){if(pos?pos.index(cur)>-1:jquery(cur).is(selectors)){return cur}cur=cur.parentnode}return null})},index:function(elem){if(!elem||typeof elem==="string"){return jquery.inarray(this[0],elem?jquery(elem):this.parent().children())}return jquery.inarray(elem.jquery?elem[0]:elem,this)},add:function(selector,context){var set=typeof selector==="string"?jquery(selector,context||this.context):jquery.makearray(selector),all=jquery.merge(this.get(),set);return this.pushstack(set[0]&&(set[0].setinterval||set[0].nodetype===9||(set[0].parentnode&&set[0].parentnode.nodetype!==11))?jquery.unique(all):all)},andself:function(){return this.add(this.prevobject)}});jquery.each({parent:function(elem){var parent=elem.parentnode;return parent&&parent.nodetype!==11?parent:null},parents:function(elem){return jquery.dir(elem,"parentnode")},parentsuntil:function(elem,i,until){return jquery.dir(elem,"parentnode",until)},next:function(elem){return jquery.nth(elem,2,"nextsibling")},prev:function(elem){return jquery.nth(elem,2,"previoussibling")},nextall:function(elem){return jquery.dir(elem,"nextsibling")},prevall:function(elem){return jquery.dir(elem,"previoussibling")},nextuntil:function(elem,i,until){return jquery.dir(elem,"nextsibling",until)},prevuntil:function(elem,i,until){return jquery.dir(elem,"previoussibling",until)},siblings:function(elem){return jquery.sibling(elem.parentnode.firstchild,elem)},children:function(elem){return jquery.sibling(elem.firstchild)},contents:function(elem){return jquery.nodename(elem,"iframe")?elem.contentdocument||elem.contentwindow.document:jquery.makearray(elem.childnodes)}},function(name,fn){jquery.fn[name]=function(until,selector){var ret=jquery.map(this,fn,until);if(!runtil.test(name)){selector=until}if(selector&&typeof selector==="string"){ret=jquery.filter(selector,ret)}ret=this.length>1?jquery.unique(ret):ret;if((this.length>1||rmultiselector.test(selector))&&rparentsprev.test(name)){ret=ret.reverse()}return this.pushstack(ret,name,slice.call(arguments).join(","))}});jquery.extend({filter:function(expr,elems,not){if(not){expr=":not("+expr+")"}return jquery.find.matches(expr,elems)},dir:function(elem,dir,until){var matched=[],cur=elem[dir];while(cur&&cur.nodetype!==9&&(until===undefined||!jquery(cur).is(until))){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&&n!==elem){r.push(n)}}return r}});var rclass=/[\n\t]/g,rspace=/\s+/,rreturn=/\r/g,rspecialurl=/href|src|style/,rtype=/(button|input)/i,rfocusable=/(button|input|object|select|textarea)/i,rclickable=/^(a|area)$/i;jquery.fn.extend({attr:function(name,value){return access(this,name,value,true,jquery.attr)},addclass:function(value){if(jquery.isfunction(value)){return this.each(function(){jquery(this).addclass(value.call(this))})}if(value&&typeof value==="string"){var classnames=(value||"").split(rspace);for(var i=0,l=this.length;i-1){return true}}return false},val:function(value){if(value===undefined){var elem=this[0];if(elem){if(jquery.nodename(elem,"option")){return(elem.attributes.value||{}).specified?elem.value:elem.text}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}else{if(jquery.nodename(this,"select")){var values=jquery.makearray(val);jquery("option",this).each(function(){this.selected=jquery.inarray(this.value||this.text,values)>=0});if(!values.length){this.selectedindex=-1}}else{this.value=val}}})}});jquery.each({removeattr:function(name){jquery.attr(this,name,"");if(this.nodetype===1){this.removeattribute(name)}},toggleclass:function(classnames,state){var type=typeof classnames;if(type==="string"){var isbool=typeof state==="boolean",classname,i=0,classnames=classnames.split(rspace);while((classname=classnames[i++])){state=isbool?state:!jquery(this).hasclass(classname);jquery(this)[state?"addclass":"removeclass"](classname)}}else{if(type==="undefined"||type==="boolean"){if(this.classname){jquery.data(this,"__classname__",this.classname)}this.classname=this.classname||classnames===false?"":jquery.data(this,"__classname__")||""}}}},function(name,fn){jquery.fn[name]=function(val,state){if(jquery.isfunction(val)){return this.each(function(){jquery(this)[name](val.call(this),state)})}return this.each(fn,arguments)}});jquery.extend({attrfn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(elem,name,value,pass){if(!elem||elem.nodetype===3||elem.nodetype===8){return undefined}if(pass&&name in jquery.attrfn){return jquery(elem)[name](value)}var notxml=elem.nodetype!==1||!jquery.isxmldoc(elem),set=value!==undefined;name=notxml&&jquery.props[name]||name;if(elem.nodetype===1){var special=rspecialurl.test(name);if(name==="selected"&&elem.parentnode){elem.parentnode.selectedindex}if(name in elem&¬xml&&!special){if(set){if(name==="type"&&rtype.test(elem.nodename)&&elem.parentnode){throw"type property can't be changed"}elem[name]=value}if(jquery.nodename(elem,"form")&&elem.getattributenode(name)){return elem.getattributenode(name).nodevalue}if(name==="tabindex"){var attributenode=elem.getattributenode("tabindex");return attributenode&&attributenode.specified?attributenode.value:rfocusable.test(elem.nodename)||rclickable.test(elem.nodename)&&elem.href?0:undefined}return elem[name]}if(!jquery.support.style&¬xml&&name==="style"){if(set){elem.style.csstext=""+value}return elem.style.csstext}if(set){elem.setattribute(name,""+value)}var attr=!jquery.support.hrefnormalized&¬xml&&special?elem.getattribute(name,2):elem.getattribute(name);return attr===null?undefined:attr}return jquery.style(elem,name,value)}});var rinlinejquery=/ jquery\d+="(?:\d+|null)"/g,rleadingwhitespace=/^\s+/,rxhtmltag=/(<([\w:]+)[^>]*?)\/>/g,rselfclosing=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,rtagname=/<([\w:]+)/,rtbody=/"},wrapmap={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};wrapmap.optgroup=wrapmap.option;wrapmap.tbody=wrapmap.tfoot=wrapmap.colgroup=wrapmap.caption=wrapmap.thead;wrapmap.th=wrapmap.td;if(!jquery.support.htmlserialize){wrapmap._default=[1,"div
","
"]}jquery.fn.extend({text:function(text){if(jquery.isfunction(text)){return this.each(function(){return jquery(this).text(text.call(this))})}if(typeof text!=="object"&&text!==undefined){return this.empty().append((this[0]&&this[0].ownerdocument||document).createtextnode(text))}return jquery.gettext(this)},wrapall:function(html){if(jquery.isfunction(html)){return this.each(function(){jquery(this).wrapall(html.apply(this,arguments))})}if(this[0]){var wrap=jquery(html,this[0].ownerdocument).eq(0).clone(true);if(this[0].parentnode){wrap.insertbefore(this[0])}wrap.map(function(){var elem=this;while(elem.firstchild&&elem.firstchild.nodetype===1){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)})},unwrap:function(){return this.parent().each(function(){if(!jquery.nodename(this,"body")){jquery(this).replacewith(this.childnodes)}}).end()},append:function(){return this.dommanip(arguments,true,function(elem){if(this.nodetype===1){this.appendchild(elem)}})},prepend:function(){return this.dommanip(arguments,true,function(elem){if(this.nodetype===1){this.insertbefore(elem,this.firstchild)}})},before:function(){if(this[0]&&this[0].parentnode){return this.dommanip(arguments,false,function(elem){this.parentnode.insertbefore(elem,this)})}else{if(arguments.length){var set=jquery(arguments[0]);set.push.apply(set,this.toarray());return this.pushstack(set,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentnode){return this.dommanip(arguments,false,function(elem){this.parentnode.insertbefore(elem,this.nextsibling)})}else{if(arguments.length){var set=this.pushstack(this,"after",arguments);set.push.apply(set,jquery(arguments[0]).toarray());return set}}},clone:function(events){var ret=this.map(function(){if(!jquery.support.nocloneevent&&!jquery.isxmldoc(this)){var html=this.outerhtml,ownerdocument=this.ownerdocument;if(!html){var div=ownerdocument.createelement("div");div.appendchild(this.clonenode(true));html=div.innerhtml}return jquery.clean([html.replace(rinlinejquery,"").replace(rleadingwhitespace,"")],ownerdocument)[0]}else{return this.clonenode(true)}});if(events===true){clonecopyevent(this,ret);clonecopyevent(this.find("*"),ret.find("*"))}return ret},html:function(value){if(value===undefined){return this[0]?this[0].innerhtml.replace(rinlinejquery,""):null}else{if(typeof value==="string"&&!/