Jump to content

User:Miles/jquery-1.1.3.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
 /*
  * jQuery 1.1.3 - New Wave Javascript
  *
  * Copyright (c) 2007 John Resig (jquery.com)
  * Dual licensed under the MIT (MIT-LICENSE.txt)
  * and GPL (GPL-LICENSE.txt) licenses.
  *
  * $Date: 2007-07-01 08:54:38 -0400 (Sun, 01 Jul 2007) $
  * $Rev: 2200 $
  */
if(typeof window.jQuery=="undefined"){
window.undefined=window.undefined;
var jQuery=function(a,c){
if(window==this||!this.init){
return new jQuery(a,c);
}
return this.init(a,c);
};
if(typeof $!="undefined"){
jQuery._$=$;
}
var $=jQuery;
jQuery.fn=jQuery.prototype={init:function(a,c){
a=a||document;
if(jQuery.isFunction(a)){
return new jQuery(document)[jQuery.fn.ready?"ready":"load"](a);
}
if(typeof a=="string"){
var m=/^[^<]*(<(.|\s)+>)[^>]*$/.exec(a);
if(m){
a=jQuery.clean([m[1]]);
}else{
return new jQuery(c).find(a);
}
}
return this.setArray(a.constructor==Array&&a||(a.jquery||a.length&&a!=window&&!a.nodeType&&a[0]!=undefined&&a[0].nodeType)&&jQuery.makeArray(a)||[a]);
},jquery:"1.1.3",size:function(){
return this.length;
},length:0,get:function(_6){
return _6==undefined?jQuery.makeArray(this):this[_6];
},pushStack:function(a){
var _8=jQuery(a);
_8.prevObject=this;
return _8;
},setArray:function(a){
this.length=0;
[].push.apply(this,a);
return this;
},each:function(fn,_b){
return jQuery.each(this,fn,_b);
},index:function(_c){
var _d=-1;
this.each(function(i){
if(this==_c){
_d=i;
}
});
return _d;
},attr:function(_f,_10,_11){
var obj=_f;
if(_f.constructor==String){
if(_10==undefined){
return this.length&&jQuery[_11||"attr"](this[0],_f)||undefined;
}else{
obj={};
obj[_f]=_10;
}
}
return this.each(function(_13){
for(var _14 in obj){
jQuery.attr(_11?this.style:this,_14,jQuery.prop(this,obj[_14],_11,_13,_14));
}
});
},css:function(key,_16){
return this.attr(key,_16,"curCSS");
},text:function(e){
if(typeof e=="string"){
return this.empty().append(document.createTextNode(e));
}
var t="";
jQuery.each(e||this,function(){
jQuery.each(this.childNodes,function(){
if(this.nodeType!=8){
t+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);
}
});
});
return t;
},wrap:function(){
var a,args=arguments;
return this.each(function(){
if(!a){
a=jQuery.clean(args,this.ownerDocument);
}
var b=a[0].cloneNode(true);
this.parentNode.insertBefore(b,this);
while(b.firstChild){
b=b.firstChild;
}
b.appendChild(this);
});
},append:function(){
return this.domManip(arguments,true,1,function(a){
this.appendChild(a);
});
},prepend:function(){
return this.domManip(arguments,true,-1,function(a){
this.insertBefore(a,this.firstChild);
});
},before:function(){
return this.domManip(arguments,false,1,function(a){
this.parentNode.insertBefore(a,this);
});
},after:function(){
return this.domManip(arguments,false,-1,function(a){
this.parentNode.insertBefore(a,this.nextSibling);
});
},end:function(){
return this.prevObject||jQuery([]);
},find:function(t){
var _20=jQuery.map(this,function(a){
return jQuery.find(t,a);
});
return this.pushStack(/[^+>] [^+>]/.test(t)||t.indexOf("..")>-1?jQuery.unique(_20):_20);
},clone:function(_22){
var _23=this.add(this.find("*"));
_23.each(function(){
this._$events={};
for(var _24 in this.$events){
this._$events[_24]=jQuery.extend({},this.$events[_24]);
}
}).unbind();
var r=this.pushStack(jQuery.map(this,function(a){
return a.cloneNode(_22!=undefined?_22:true);
}));
_23.each(function(){
var _27=this._$events;
for(var _28 in _27){
for(var _29 in _27[_28]){
jQuery.event.add(this,_28,_27[_28][_29],_27[_28][_29].data);
}
}
this._$events=null;
});
return r;
},filter:function(t){
return this.pushStack(jQuery.isFunction(t)&&jQuery.grep(this,function(el,_2c){
return t.apply(el,[_2c]);
})||jQuery.multiFilter(t,this));
},not:function(t){
return this.pushStack(t.constructor==String&&jQuery.multiFilter(t,this,true)||jQuery.grep(this,function(a){
return (t.constructor==Array||t.jquery)?jQuery.inArray(a,t)<0:a!=t;
}));
},add:function(t){
return this.pushStack(jQuery.merge(this.get(),t.constructor==String?jQuery(t).get():t.length!=undefined&&(!t.nodeName||t.nodeName=="FORM")?t:[t]));
},is:function(_30){
return _30?jQuery.multiFilter(_30,this).length>0:false;
},val:function(val){
return val==undefined?(this.length?this[0].value:null):this.attr("value",val);
},html:function(val){
return val==undefined?(this.length?this[0].innerHTML:null):this.empty().append(val);
},domManip:function(_33,_34,dir,fn){
var _37=this.length>1,a;
return this.each(function(){
if(!a){
a=jQuery.clean(_33,this.ownerDocument);
if(dir<0){
a.reverse();
}
}
var obj=this;
if(_34&&jQuery.nodeName(this,"table")&&jQuery.nodeName(a[0],"tr")){
obj=this.getElementsByTagName("tbody")[0]||this.appendChild(document.createElement("tbody"));
}
jQuery.each(a,function(){
fn.apply(obj,[_37?this.cloneNode(true):this]);
});
});
}};
jQuery.extend=jQuery.fn.extend=function(){
var _39=arguments[0],a=1;
if(arguments.length==1){
_39=this;
a=0;
}
var _3a;
while((_3a=arguments[a++])!=null){
for(var i in _3a){
_39[i]=_3a[i];
}
}
return _39;
};
jQuery.extend({noConflict:function(){
if(jQuery._$){
$=jQuery._$;
}
return jQuery;
},isFunction:function(fn){
return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"");
},isXMLDoc:function(_3d){
return _3d.tagName&&_3d.ownerDocument&&!_3d.ownerDocument.body;
},nodeName:function(_3e,_3f){
return _3e.nodeName&&_3e.nodeName.toUpperCase()==_3f.toUpperCase();
},each:function(obj,fn,_42){
if(obj.length==undefined){
for(var i in obj){
fn.apply(obj[i],_42||[i,obj[i]]);
}
}else{
for(var i=0,ol=obj.length;i<ol;i++){
if(fn.apply(obj[i],_42||[i,obj[i]])===false){
break;
}
}
}
return obj;
},prop:function(_45,_46,_47,_48,_49){
if(jQuery.isFunction(_46)){
_46=_46.call(_45,[_48]);
}
var _4a=/z-?index|font-?weight|opacity|zoom|line-?height/i;
return _46&&_46.constructor==Number&&_47=="curCSS"&&!_4a.test(_49)?_46+"px":_46;
},className:{add:function(_4b,c){
jQuery.each(c.split(/\s+/),function(i,cur){
if(!jQuery.className.has(_4b.className,cur)){
_4b.className+=(_4b.className?" ":"")+cur;
}
});
},remove:function(_4f,c){
_4f.className=c!=undefined?jQuery.grep(_4f.className.split(/\s+/),function(cur){
return !jQuery.className.has(c,cur);
}).join(" "):"";
},has:function(t,c){
return jQuery.inArray(c,(t.className||t).toString().split(/\s+/))>-1;
}},swap:function(e,o,f){
for(var i in o){
e.style["old"+i]=e.style[i];
e.style[i]=o[i];
}
f.apply(e,[]);
for(var i in o){
e.style[i]=e.style["old"+i];
}
},css:function(e,p){
if(p=="height"||p=="width"){
var old={},oHeight,oWidth,d=["Top","Bottom","Right","Left"];
jQuery.each(d,function(){
old["padding"+this]=0;
old["border"+this+"Width"]=0;
});
jQuery.swap(e,old,function(){
if(jQuery(e).is(":visible")){
oHeight=e.offsetHeight;
oWidth=e.offsetWidth;
}else{
e=jQuery(e.cloneNode(true)).find(":radio").prop("checked", false).end().css({visibility:"hidden",position:"absolute",display:"block",right:"0",left:"0"}).appendTo(e.parentNode)[0];
var _5c=jQuery.css(e.parentNode,"position")||"static";
if(_5c=="static"){
e.parentNode.style.position="relative";
}
oHeight=e.clientHeight;
oWidth=e.clientWidth;
if(_5c=="static"){
e.parentNode.style.position="static";
}
e.parentNode.removeChild(e);
}
});
return p=="height"?oHeight:oWidth;
}
return jQuery.curCSS(e,p);
},curCSS:function(_5d,_5e,_5f){
var ret;
if(_5e=="opacity"&&jQuery.browser.msie){
ret=jQuery.attr(_5d.style,"opacity");
return ret==""?"1":ret;
}
if(_5e.match(/float/i)){
_5e=jQuery.styleFloat;
}
if(!_5f&&_5d.style[_5e]){
ret=_5d.style[_5e];
}else{
if(document.defaultView&&document.defaultView.getComputedStyle){
if(_5e.match(/float/i)){
_5e="float";
}
_5e=_5e.replace(/([A-Z])/g,"-$1").toLowerCase();
var cur=document.defaultView.getComputedStyle(_5d,null);
if(cur){
ret=cur.getPropertyValue(_5e);
}else{
if(_5e=="display"){
ret="none";
}else{
jQuery.swap(_5d,{display:"block"},function(){
var c=document.defaultView.getComputedStyle(this,"");
ret=c&&c.getPropertyValue(_5e)||"";
});
}
}
}else{
if(_5d.currentStyle){
var _63=_5e.replace(/\-(\w)/g,function(m,c){
return c.toUpperCase();
});
ret=_5d.currentStyle[_5e]||_5d.currentStyle[_63];
}
}
}
return ret;
},clean:function(a,doc){
var r=[];
doc=doc||document;
jQuery.each(a,function(i,arg){
if(!arg){
return;
}
if(arg.constructor==Number){
arg=arg.toString();
}
if(typeof arg=="string"){
var s=jQuery.trim(arg).toLowerCase(),div=doc.createElement("div"),tb=[];
var _6c=!s.indexOf("<opt")&&[1,"<select>","</select>"]||!s.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||(!s.indexOf("<thead")||!s.indexOf("<tbody")||!s.indexOf("<tfoot")||!s.indexOf("<colg"))&&[1,"<table>","</table>"]||!s.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!s.indexOf("<td")||!s.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!s.indexOf("<col")&&[2,"<table><colgroup>","</colgroup></table>"]||[0,"",""];
div.innerHTML=_6c[1]+arg+_6c[2];
while(_6c[0]--){
div=div.firstChild;
}
if(jQuery.browser.msie){
if(!s.indexOf("<table")&&s.indexOf("<tbody")<0){
tb=div.firstChild&&div.firstChild.childNodes;
}else{
if(_6c[1]=="<table>"&&s.indexOf("<tbody")<0){
tb=div.childNodes;
}
}
for(var n=tb.length-1;n>=0;--n){
if(jQuery.nodeName(tb[n],"tbody")&&!tb[n].childNodes.length){
tb[n].parentNode.removeChild(tb[n]);
}
}
}
arg=jQuery.makeArray(div.childNodes);
}
if(0===arg.length&&(!jQuery.nodeName(arg,"form")&&!jQuery.nodeName(arg,"select"))){
return;
}
if(arg[0]==undefined||jQuery.nodeName(arg,"form")||arg.options){
r.push(arg);
}else{
r=jQuery.merge(r,arg);
}
});
return r;
},attr:function(_6e,_6f,_70){
var fix=jQuery.isXMLDoc(_6e)?{}:jQuery.props;
if(fix[_6f]){
if(_70!=undefined){
_6e[fix[_6f]]=_70;
}
return _6e[fix[_6f]];
}else{
if(_70==undefined&&jQuery.browser.msie&&jQuery.nodeName(_6e,"form")&&(_6f=="action"||_6f=="method")){
return _6e.getAttributeNode(_6f).nodeValue;
}else{
if(_6e.tagName){
if(_6f=="opacity"&&jQuery.browser.msie){
if(_70!=undefined){
_6e.zoom=1;
_6e.filter=(_6e.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(_70).toString()=="NaN"?"":"alpha(opacity="+_70*100+")");
}
return _6e.filter?(parseFloat(_6e.filter.match(/opacity=([^)]*)/)[1])/100).toString():"";
}
if(_70!=undefined){
_6e.setAttribute(_6f,_70);
}
if(jQuery.browser.msie&&/href|src/.test(_6f)&&!jQuery.isXMLDoc(_6e)){
return _6e.getAttribute(_6f,2);
}
return _6e.getAttribute(_6f);
}else{
_6f=_6f.replace(/-([a-z])/ig,function(z,b){
return b.toUpperCase();
});
if(_70!=undefined){
_6e[_6f]=_70;
}
return _6e[_6f];
}
}
}
},trim:function(t){
return t.replace(/^\s+|\s+$/g,"");
},makeArray:function(a){
var r=[];
if(typeof a!="array"){
for(var i=0,al=a.length;i<al;i++){
r.push(a[i]);
}
}else{
r=a.slice(0);
}
return r;
},inArray:function(b,a){
for(var i=0,al=a.length;i<al;i++){
if(a[i]==b){
return i;
}
}
return -1;
},merge:function(_7b,_7c){
for(var i=0;_7c[i];i++){
_7b.push(_7c[i]);
}
return _7b;
},unique:function(_7e){
var r=[],num=jQuery.mergeNum++;
for(var i=0,fl=_7e.length;i<fl;i++){
if(num!=_7e[i].mergeNum){
_7e[i].mergeNum=num;
r.push(_7e[i]);
}
}
return r;
},mergeNum:0,grep:function(_81,fn,inv){
if(typeof fn=="string"){
fn=new Function("a","i","return "+fn);
}
var _84=[];
for(var i=0,el=_81.length;i<el;i++){
if(!inv&&fn(_81[i],i)||inv&&!fn(_81[i],i)){
_84.push(_81[i]);
}
}
return _84;
},map:function(_86,fn){
if(typeof fn=="string"){
fn=new Function("a","return "+fn);
}
var _88=[];
for(var i=0,el=_86.length;i<el;i++){
var val=fn(_86[i],i);
if(val!==null&&val!=undefined){
if(val.constructor!=Array){
val=[val];
}
_88=_88.concat(val);
}
}
return _88;
}});
new function(){
var b=navigator.userAgent.toLowerCase();
jQuery.browser={version:b.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1],safari:/webkit/.test(b),opera:/opera/.test(b),msie:/msie/.test(b)&&!/opera/.test(b),mozilla:/mozilla/.test(b)&&!/(compatible|webkit)/.test(b)};
jQuery.boxModel=!jQuery.browser.msie||document.compatMode=="CSS1Compat";
jQuery.styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat",jQuery.props={"for":"htmlFor","class":"className","float":jQuery.styleFloat,cssFloat:jQuery.styleFloat,styleFloat:jQuery.styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength"};
};
jQuery.each({parent:"a.parentNode",parents:"jQuery.parents(a)",next:"jQuery.nth(a,2,'nextSibling')",prev:"jQuery.nth(a,2,'previousSibling')",siblings:"jQuery.sibling(a.parentNode.firstChild,a)",children:"jQuery.sibling(a.firstChild)"},function(i,n){
jQuery.fn[i]=function(a){
var ret=jQuery.map(this,n);
if(a&&typeof a=="string"){
ret=jQuery.multiFilter(a,ret);
}
return this.pushStack(ret);
};
});
jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(i,n){
jQuery.fn[i]=function(){
var a=arguments;
return this.each(function(){
for(var j=0,al=a.length;j<al;j++){
jQuery(a[j])[n](this);
}
});
};
});
jQuery.each({removeAttr:function(key){
jQuery.attr(this,key,"");
this.removeAttribute(key);
},addClass:function(c){
jQuery.className.add(this,c);
},removeClass:function(c){
jQuery.className.remove(this,c);
},toggleClass:function(c){
jQuery.className[jQuery.className.has(this,c)?"remove":"add"](this,c);
},remove:function(a){
if(!a||jQuery.filter(a,[this]).r.length){
this.parentNode.removeChild(this);
}
},empty:function(){
while(this.firstChild){
this.removeChild(this.firstChild);
}
}},function(i,n){
jQuery.fn[i]=function(){
return this.each(n,arguments);
};
});
jQuery.each(["eq","lt","gt","contains"],function(i,n){
jQuery.fn[n]=function(num,fn){
return this.filter(":"+n+"("+num+")",fn);
};
});
jQuery.each(["height","width"],function(i,n){
jQuery.fn[n]=function(h){
return h==undefined?(this.length?jQuery.css(this[0],n):null):this.css(n,h.constructor==String?h:h+"px");
};
});
jQuery.extend({expr:{"":"m[2]=='*'||jQuery.nodeName(a,m[2])","#":"a.getAttribute('id')==m[2]",":":{lt:"i<m[3]-0",gt:"i>m[3]-0",nth:"m[3]-0==i",eq:"m[3]-0==i",first:"i==0",last:"i==r.length-1",even:"i%2==0",odd:"i%2","first-child":"a.parentNode.getElementsByTagName('*')[0]==a","last-child":"jQuery.nth(a.parentNode.lastChild,1,'previousSibling')==a","only-child":"!jQuery.nth(a.parentNode.lastChild,2,'previousSibling')",parent:"a.firstChild",empty:"!a.firstChild",contains:"(a.textContent||a.innerText||'').indexOf(m[3])>=0",visible:"\"hidden\"!=a.type&&jQuery.css(a,\"display\")!=\"none\"&&jQuery.css(a,\"visibility\")!=\"hidden\"",hidden:"\"hidden\"==a.type||jQuery.css(a,\"display\")==\"none\"||jQuery.css(a,\"visibility\")==\"hidden\"",enabled:"!a.disabled",disabled:"a.disabled",checked:"a.checked",selected:"a.selected||jQuery.attr(a,'selected')",text:"'text'==a.type",radio:"'radio'==a.type",checkbox:"'checkbox'==a.type",file:"'file'==a.type",password:"'password'==a.type",submit:"'submit'==a.type",image:"'image'==a.type",reset:"'reset'==a.type",button:"\"button\"==a.type||jQuery.nodeName(a,\"button\")",input:"/input|select|textarea|button/i.test(a.nodeName)"},"[":"jQuery.find(m[2],a).length"},parse:[/^\[ *(@)([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+(jQuery.chars="(?:[\\w\u0128-\uffff*_-]|\\\\.)")+"+)")],multiFilter:function(_a2,_a3,not){
var old,cur=[];
while(_a2&&_a2!=old){
old=_a2;
var f=jQuery.filter(_a2,_a3,not);
_a2=f.t.replace(/^\s*,\s*/,"");
cur=not?_a3=f.r:jQuery.merge(cur,f.r);
}
return cur;
},find:function(t,_a8){
if(typeof t!="string"){
return [t];
}
if(_a8&&!_a8.nodeType){
_a8=null;
}
_a8=_a8||document;
if(!t.indexOf("//")){
_a8=_a8.documentElement;
t=t.substr(2,t.length);
}else{
if(!t.indexOf("/")&&!_a8.ownerDocument){
_a8=_a8.documentElement;
t=t.substr(1,t.length);
if(t.indexOf("/")>=1){
t=t.substr(t.indexOf("/"),t.length);
}
}
}
var ret=[_a8],done=[],last;
while(t&&last!=t){
var r=[];
last=t;
t=jQuery.trim(t).replace(/^\/\//,"");
var _ab=false;
var re=new RegExp("^[/>]\\s*("+jQuery.chars+"+)");
var m=re.exec(t);
if(m){
var _ae=m[1].toUpperCase();
for(var i=0;ret[i];i++){
for(var c=ret[i].firstChild;c;c=c.nextSibling){
if(c.nodeType==1&&(_ae=="*"||c.nodeName==_ae.toUpperCase())){
r.push(c);
}
}
}
ret=r;
t=t.replace(re,"");
if(t.indexOf(" ")==0){
continue;
}
_ab=true;
}else{
re=/^((\/?\.\.)|([>\/+~]))\s*([a-z]*)/i;
if((m=re.exec(t))!=null){
r=[];
var _b1=m[4],mergeNum=jQuery.mergeNum++;
m=m[1];
for(var j=0,rl=ret.length;j<rl;j++){
if(m.indexOf("..")<0){
var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;
for(;n;n=n.nextSibling){
if(n.nodeType==1){
if(m=="~"&&n.mergeNum==mergeNum){
break;
}
if(!_b1||n.nodeName==_b1.toUpperCase()){
if(m=="~"){
n.mergeNum=mergeNum;
}
r.push(n);
}
if(m=="+"){
break;
}
}
}
}else{
r.push(ret[j].parentNode);
}
}
ret=r;
t=jQuery.trim(t.replace(re,""));
_ab=true;
}
}
if(t&&!_ab){
if(!t.indexOf(",")){
if(_a8==ret[0]){
ret.shift();
}
done=jQuery.merge(done,ret);
r=ret=[_a8];
t=" "+t.substr(1,t.length);
}else{
var re2=new RegExp("^("+jQuery.chars+"+)(#)("+jQuery.chars+"+)");
var m=re2.exec(t);
if(m){
m=[0,m[2],m[3],m[1]];
}else{
re2=new RegExp("^([#.]?)("+jQuery.chars+"*)");
m=re2.exec(t);
}
m[2]=m[2].replace(/\\/g,"");
var _b6=ret[ret.length-1];
if(m[1]=="#"&&_b6&&_b6.getElementById){
var oid=_b6.getElementById(m[2]);
if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){
oid=jQuery("[@id=\""+m[2]+"\"]",_b6)[0];
}
ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];
}else{
for(var i=0;ret[i];i++){
var tag=m[1]!=""||m[0]==""?"*":m[2];
if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){
tag="param";
}
r=jQuery.merge(r,ret[i].getElementsByTagName(tag));
}
if(m[1]=="."){
r=jQuery.classFilter(r,m[2]);
}
if(m[1]=="#"){
var tmp=[];
for(var i=0;r[i];i++){
if(r[i].getAttribute("id")==m[2]){
tmp=[r[i]];
break;
}
}
r=tmp;
}
ret=r;
}
t=t.replace(re2,"");
}
}
if(t){
var val=jQuery.filter(t,r);
ret=r=val.r;
t=jQuery.trim(val.t);
}
}
if(t){
ret=[];
}
if(ret&&_a8==ret[0]){
ret.shift();
}
done=jQuery.merge(done,ret);
return done;
},classFilter:function(r,m,not){
m=" "+m+" ";
var tmp=[];
for(var i=0;r[i];i++){
var _c2=(" "+r[i].className+" ").indexOf(m)>=0;
if(!not&&_c2||not&&!_c2){
tmp.push(r[i]);
}
}
return tmp;
},filter:function(t,r,not){
var _c6;
while(t&&t!=_c6){
_c6=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=jQuery.filter(m[3],r,true).r;
}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<rl;i++){
var a=r[i],z=a[jQuery.props[m[2]]||m[2]];
if(z==null||/href|src/.test(m[2])){
z=jQuery.attr(a,m[2]);
}
if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){
tmp.push(a);
}
}
r=tmp;
}else{
if(m[1]==":"&&m[2]=="nth-child"){
var num=jQuery.mergeNum++,tmp=[],test=/(\d*)n\+?(\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"n+"+m[3]||m[3]),first=(test[1]||1)-0,_c6=test[2]-0;
for(var i=0,rl=r.length;i<rl;i++){
var _ce=r[i],parentNode=_ce.parentNode;
if(num!=parentNode.mergeNum){
var c=1;
for(var n=parentNode.firstChild;n;n=n.nextSibling){
if(n.nodeType==1){
n.nodeIndex=c++;
}
}
parentNode.mergeNum=num;
}
var add=false;
if(first==1){
if(_c6==0||_ce.nodeIndex==_c6){
add=true;
}
}else{
if((_ce.nodeIndex+_c6)%first==0){
add=true;
}
}
if(add^not){
tmp.push(_ce);
}
}
r=tmp;
}else{
var f=jQuery.expr[m[1]];
if(typeof f!="string"){
f=jQuery.expr[m[1]][m[2]];
}
eval("f = function(a,i){return "+f+"}");
r=jQuery.grep(r,f,not);
}
}
}
}
}
return {r:r,t:t};
},parents:function(_d3){
var _d4=[];
var cur=_d3.parentNode;
while(cur&&cur!=document){
_d4.push(cur);
cur=cur.parentNode;
}
return _d4;
},nth:function(cur,_d7,dir,_d9){
_d7=_d7||1;
var num=0;
for(;cur;cur=cur[dir]){
if(cur.nodeType==1&&++num==_d7){
break;
}
}
return cur;
},sibling:function(n,_dc){
var r=[];
for(;n;n=n.nextSibling){
if(n.nodeType==1&&(!_dc||n!=_dc)){
r.push(n);
}
}
return r;
}});
jQuery.event={add:function(_de,_df,_e0,_e1){
if(jQuery.browser.msie&&_de.setInterval!=undefined){
_de=window;
}
if(!_e0.guid){
_e0.guid=this.guid++;
}
if(_e1!=undefined){
var fn=_e0;
_e0=function(){
return fn.apply(this,arguments);
};
_e0.data=_e1;
_e0.guid=fn.guid;
}
if(!_de.$events){
_de.$events={};
}
if(!_de.$handle){
_de.$handle=function(){
var val;
if(typeof jQuery=="undefined"||jQuery.event.triggered){
return val;
}
val=jQuery.event.handle.apply(_de,arguments);
return val;
};
}
var _e4=_de.$events[_df];
if(!_e4){
_e4=_de.$events[_df]={};
if(_de.addEventListener){
_de.addEventListener(_df,_de.$handle,false);
}else{
_de.attachEvent("on"+_df,_de.$handle);
}
}
_e4[_e0.guid]=_e0;
if(!this.global[_df]){
this.global[_df]=[];
}
if(jQuery.inArray(_de,this.global[_df])==-1){
this.global[_df].push(_de);
}
},guid:1,global:{},remove:function(_e5,_e6,_e7){
var _e8=_e5.$events,ret,index;
if(_e8){
if(_e6&&_e6.type){
_e7=_e6.handler;
_e6=_e6.type;
}
if(!_e6){
for(_e6 in _e8){
this.remove(_e5,_e6);
}
}else{
if(_e8[_e6]){
if(_e7){
delete _e8[_e6][_e7.guid];
}else{
for(_e7 in _e5.$events[_e6]){
delete _e8[_e6][_e7];
}
}
for(ret in _e8[_e6]){
break;
}
if(!ret){
if(_e5.removeEventListener){
_e5.removeEventListener(_e6,_e5.$handle,false);
}else{
_e5.detachEvent("on"+_e6,_e5.$handle);
}
ret=null;
delete _e8[_e6];
while(this.global[_e6]&&((index=jQuery.inArray(_e5,this.global[_e6]))>=0)){
delete this.global[_e6][index];
}
}
}
}
for(ret in _e8){
break;
}
if(!ret){
_e5.$handle=_e5.$events=null;
}
}
},trigger:function(_e9,_ea,_eb){
_ea=jQuery.makeArray(_ea||[]);
if(!_eb){
jQuery.each(this.global[_e9]||[],function(){
jQuery.event.trigger(_e9,_ea,this);
});
}else{
var val,ret,fn=jQuery.isFunction(_eb[_e9]||null);
_ea.unshift(this.fix({type:_e9,target:_eb}));
if(jQuery.isFunction(_eb.$handle)&&(val=_eb.$handle.apply(_eb,_ea))!==false){
this.triggered=true;
}
if(fn&&val!==false&&!jQuery.nodeName(_eb,"a")){
_eb[_e9]();
}
this.triggered=false;
}
},handle:function(_ed){
var val;
_ed=jQuery.event.fix(_ed||window.event||{});
var c=this.$events&&this.$events[_ed.type],args=[].slice.call(arguments,1);
args.unshift(_ed);
for(var j in c){
args[0].handler=c[j];
args[0].data=c[j].data;
if(c[j].apply(this,args)===false){
_ed.preventDefault();
_ed.stopPropagation();
val=false;
}
}
if(jQuery.browser.msie){
_ed.target=_ed.preventDefault=_ed.stopPropagation=_ed.handler=_ed.data=null;
}
return val;
},fix:function(_f1){
var _f2=_f1;
_f1=jQuery.extend({},_f2);
_f1.preventDefault=function(){
if(_f2.preventDefault){
return _f2.preventDefault();
}
_f2.returnValue=false;
};
_f1.stopPropagation=function(){
if(_f2.stopPropagation){
return _f2.stopPropagation();
}
_f2.cancelBubble=true;
};
if(!_f1.target&&_f1.srcElement){
_f1.target=_f1.srcElement;
}
if(jQuery.browser.safari&&_f1.target.nodeType==3){
_f1.target=_f2.target.parentNode;
}
if(!_f1.relatedTarget&&_f1.fromElement){
_f1.relatedTarget=_f1.fromElement==_f1.target?_f1.toElement:_f1.fromElement;
}
if(_f1.pageX==null&&_f1.clientX!=null){
var e=document.documentElement,b=document.body;
_f1.pageX=_f1.clientX+(e&&e.scrollLeft||b.scrollLeft);
_f1.pageY=_f1.clientY+(e&&e.scrollTop||b.scrollTop);
}
if(!_f1.which&&(_f1.charCode||_f1.keyCode)){
_f1.which=_f1.charCode||_f1.keyCode;
}
if(!_f1.metaKey&&_f1.ctrlKey){
_f1.metaKey=_f1.ctrlKey;
}
if(!_f1.which&&_f1.button){
_f1.which=(_f1.button&1?1:(_f1.button&2?3:(_f1.button&4?2:0)));
}
return _f1;
}};
jQuery.fn.extend({bind:function(_f4,_f5,fn){
return _f4=="unload"?this.one(_f4,_f5,fn):this.each(function(){
jQuery.event.add(this,_f4,fn||_f5,fn&&_f5);
});
},one:function(_f7,_f8,fn){
return this.each(function(){
jQuery.event.add(this,_f7,function(_fa){
jQuery(this).unbind(_fa);
return (fn||_f8).apply(this,arguments);
},fn&&_f8);
});
},unbind:function(_fb,fn){
return this.each(function(){
jQuery.event.remove(this,_fb,fn);
});
},trigger:function(_fd,_fe){
return this.each(function(){
jQuery.event.trigger(_fd,_fe,this);
});
},toggle:function(){
var a=arguments;
return this.click(function(e){
this.lastToggle=0==this.lastToggle?1:0;
e.preventDefault();
return a[this.lastToggle].apply(this,[e])||false;
});
},hover:function(f,g){
function handleHover(e){
var p=e.relatedTarget;
while(p&&p!=this){
try{
p=p.parentNode;
}
catch(e){
p=this;
}
}
if(p==this){
return false;
}
return (e.type=="mouseover"?f:g).apply(this,[e]);
}
return this.mouseover(handleHover).mouseout(handleHover);
},ready:function(f){
if(jQuery.isReady){
f.apply(document,[jQuery]);
}else{
jQuery.readyList.push(function(){
return f.apply(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;
}
if(jQuery.browser.mozilla||jQuery.browser.opera){
document.removeEventListener("DOMContentLoaded",jQuery.ready,false);
}
if(!window.frames.length){
jQuery(window).load(function(){
jQuery("#__ie_init").remove();
});
}
}
}});
new function(){
jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,o){
jQuery.fn[o]=function(f){
return f?this.bind(o,f):this.trigger(o);
};
});
if(jQuery.browser.mozilla||jQuery.browser.opera){
document.addEventListener("DOMContentLoaded",jQuery.ready,false);
}else{
if(jQuery.browser.msie){
document.write("<scr"+"ipt id=__ie_init defer=true "+"src=//:></script>");
var _109=document.getElementById("__ie_init");
if(_109){
_109.onreadystatechange=function(){
if(this.readyState!="complete"){
return;
}
jQuery.ready();
};
}
_109=null;
}else{
if(jQuery.browser.safari){
jQuery.safariTimer=setInterval(function(){
if(document.readyState=="loaded"||document.readyState=="complete"){
clearInterval(jQuery.safariTimer);
jQuery.safariTimer=null;
jQuery.ready();
}
},10);
}
}
}
jQuery.event.add(window,"load",jQuery.ready);
};
if(jQuery.browser.msie){
jQuery(window).one("unload",function(){
var _10a=jQuery.event.global;
for(var type in _10a){
var els=_10a[type],i=els.length;
if(i&&type!="unload"){
do{
els[i-1]&&jQuery.event.remove(els[i-1],type);
}while(--i);
}
}
});
}
jQuery.fn.extend({loadIfModified:function(url,_10e,_10f){
this.load(url,_10e,_10f,1);
},load:function(url,_111,_112,_113){
if(jQuery.isFunction(url)){
return this.bind("load",url);
}
_112=_112||function(){
};
var type="GET";
if(_111){
if(jQuery.isFunction(_111)){
_112=_111;
_111=null;
}else{
_111=jQuery.param(_111);
type="POST";
}
}
var self=this;
jQuery.ajax({url:url,type:type,data:_111,ifModified:_113,complete:function(res,_117){
if(_117=="success"||!_113&&_117=="notmodified"){
self.attr("innerHTML",res.responseText).evalScripts().each(_112,[res.responseText,_117,res]);
}else{
_112.apply(self,[res.responseText,_117,res]);
}
}});
return this;
},serialize:function(){
return jQuery.param(this);
},evalScripts:function(){
return this.find("script").each(function(){
if(this.src){
jQuery.getScript(this.src);
}else{
jQuery.globalEval(this.text||this.textContent||this.innerHTML||"");
}
}).end();
}});
jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){
jQuery.fn[o]=function(f){
return this.bind(o,f);
};
});
jQuery.extend({get:function(url,data,_11d,type,_11f){
if(jQuery.isFunction(data)){
_11d=data;
data=null;
}
return jQuery.ajax({type:"GET",url:url,data:data,success:_11d,dataType:type,ifModified:_11f});
},getIfModified:function(url,data,_122,type){
return jQuery.get(url,data,_122,type,1);
},getScript:function(url,_125){
return jQuery.get(url,null,_125,"script");
},getJSON:function(url,data,_128){
return jQuery.get(url,data,_128,"json");
},post:function(url,data,_12b,type){
if(jQuery.isFunction(data)){
_12b=data;
data={};
}
return jQuery.ajax({type:"POST",url:url,data:data,success:_12b,dataType:type});
},ajaxTimeout:function(_12d){
jQuery.ajaxSettings.timeout=_12d;
},ajaxSetup:function(_12e){
jQuery.extend(jQuery.ajaxSettings,_12e);
},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null},lastModified:{},ajax:function(s){
s=jQuery.extend({},jQuery.ajaxSettings,s);
if(s.data){
if(s.processData&&typeof s.data!="string"){
s.data=jQuery.param(s.data);
}
if(s.type.toLowerCase()=="get"){
s.url+=((s.url.indexOf("?")>-1)?"&":"?")+s.data;
s.data=null;
}
}
if(s.global&&!jQuery.active++){
jQuery.event.trigger("ajaxStart");
}
var _130=false;
var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();
xml.open(s.type,s.url,s.async);
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");
if(s.beforeSend){
s.beforeSend(xml);
}
if(s.global){
jQuery.event.trigger("ajaxSend",[xml,s]);
}
var _132=function(_133){
if(xml&&(xml.readyState==4||_133=="timeout")){
_130=true;
if(ival){
clearInterval(ival);
ival=null;
}
var _134;
try{
_134=jQuery.httpSuccess(xml)&&_133!="timeout"?s.ifModified&&jQuery.httpNotModified(xml,s.url)?"notmodified":"success":"error";
if(_134!="error"){
var _135;
try{
_135=xml.getResponseHeader("Last-Modified");
}
catch(e){
}
if(s.ifModified&&_135){
jQuery.lastModified[s.url]=_135;
}
var data=jQuery.httpData(xml,s.dataType);
if(s.success){
s.success(data,_134);
}
if(s.global){
jQuery.event.trigger("ajaxSuccess",[xml,s]);
}
}else{
jQuery.handleError(s,xml,_134);
}
}
catch(e){
_134="error";
jQuery.handleError(s,xml,_134,e);
}
if(s.global){
jQuery.event.trigger("ajaxComplete",[xml,s]);
}
if(s.global&&!--jQuery.active){
jQuery.event.trigger("ajaxStop");
}
if(s.complete){
s.complete(xml,_134);
}
if(s.async){
xml=null;
}
}
};
var ival=setInterval(_132,13);
if(s.timeout>0){
setTimeout(function(){
if(xml){
xml.abort();
if(!_130){
_132("timeout");
}
}
},s.timeout);
}
try{
xml.send(s.data);
}
catch(e){
jQuery.handleError(s,xml,null,e);
}
if(!s.async){
_132();
}
return xml;
},handleError:function(s,xml,_13a,e){
if(s.error){
s.error(xml,_13a,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||jQuery.browser.safari&&r.status==undefined;
}
catch(e){
}
return false;
},httpNotModified:function(xml,url){
try{
var _13f=xml.getResponseHeader("Last-Modified");
return xml.status==304||_13f==jQuery.lastModified[url]||jQuery.browser.safari&&xml.status==undefined;
}
catch(e){
}
return false;
},httpData:function(r,type){
var ct=r.getResponseHeader("content-type");
var data=!type&&ct&&ct.indexOf("xml")>=0;
data=type=="xml"||data?r.responseXML:r.responseText;
if(type=="script"){
jQuery.globalEval(data);
}
if(type=="json"){
data=eval("("+data+")");
}
if(type=="html"){
jQuery("<div>").html(data).evalScripts();
}
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("&");
},globalEval:function(data){
if(window.execScript){
window.execScript(data);
}else{
if(jQuery.browser.safari){
window.setTimeout(data,0);
}else{
eval.call(window,data);
}
}
}});
jQuery.fn.extend({show:function(_148,_149){
return _148?this.animate({height:"show",width:"show",opacity:"show"},_148,_149):this.filter(":hidden").each(function(){
this.style.display=this.oldblock?this.oldblock:"";
if(jQuery.css(this,"display")=="none"){
this.style.display="block";
}
}).end();
},hide:function(_14a,_14b){
return _14a?this.animate({height:"hide",width:"hide",opacity:"hide"},_14a,_14b):this.filter(":visible").each(function(){
this.oldblock=this.oldblock||jQuery.css(this,"display");
if(this.oldblock=="none"){
this.oldblock="block";
}
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(_14e,_14f){
return this.animate({height:"show"},_14e,_14f);
},slideUp:function(_150,_151){
return this.animate({height:"hide"},_150,_151);
},slideToggle:function(_152,_153){
return this.animate({height:"toggle"},_152,_153);
},fadeIn:function(_154,_155){
return this.animate({opacity:"show"},_154,_155);
},fadeOut:function(_156,_157){
return this.animate({opacity:"hide"},_156,_157);
},fadeTo:function(_158,to,_15a){
return this.animate({opacity:to},_158,_15a);
},animate:function(prop,_15c,_15d,_15e){
return this.queue(function(){
var _15f=jQuery(this).is(":hidden"),opt=jQuery.speed(_15c,_15d,_15e),self=this;
for(var p in prop){
if(prop[p]=="hide"&&_15f||prop[p]=="show"&&!_15f){
return jQuery.isFunction(opt.complete)&&opt.complete.apply(this);
}
}
this.curAnim=jQuery.extend({},prop);
jQuery.each(prop,function(name,val){
var e=new jQuery.fx(self,opt,name);
if(val.constructor==Number){
e.custom(e.cur(),val);
}else{
e[val=="toggle"?_15f?"show":"hide":val](prop);
}
});
});
},queue:function(type,fn){
if(!fn){
fn=type;
type="fx";
}
return this.each(function(){
if(!this.queue){
this.queue={};
}
if(!this.queue[type]){
this.queue[type]=[];
}
this.queue[type].push(fn);
if(this.queue[type].length==1){
fn.apply(this);
}
});
}});
jQuery.extend({speed:function(_166,_167,fn){
var opt=_166&&_166.constructor==Object?_166:{complete:fn||!fn&&_167||jQuery.isFunction(_166)&&_166,duration:_166,easing:fn&&_167||_167&&_167.constructor!=Function&&_167||(jQuery.easing.swing?"swing":"linear")};
opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;
opt.old=opt.complete;
opt.complete=function(){
jQuery.dequeue(this,"fx");
if(jQuery.isFunction(opt.old)){
opt.old.apply(this);
}
};
return opt;
},easing:{linear:function(p,n,_16c,diff){
return _16c+diff*p;
},swing:function(p,n,_170,diff){
return ((-Math.cos(p*Math.PI)/2)+0.5)*diff+_170;
}},queue:{},dequeue:function(elem,type){
type=type||"fx";
if(elem.queue&&elem.queue[type]){
elem.queue[type].shift();
var f=elem.queue[type][0];
if(f){
f.apply(elem);
}
}
},timers:[],fx:function(elem,_176,prop){
var z=this;
var y=elem.style;
if(prop=="height"||prop=="width"){
var _17a=jQuery.css(elem,"display");
var _17b=y.overflow;
y.overflow="hidden";
}
z.a=function(){
if(_176.step){
_176.step.apply(elem,[z.now]);
}
if(prop=="opacity"){
jQuery.attr(y,"opacity",z.now);
}else{
y[prop]=parseInt(z.now)+"px";
y.display="block";
}
};
z.max=function(){
return parseFloat(jQuery.css(elem,prop));
};
z.cur=function(){
var r=parseFloat(jQuery.curCSS(elem,prop));
return r&&r>-10000?r:z.max();
};
z.custom=function(from,to){
z.startTime=(new Date()).getTime();
z.now=from;
z.a();
jQuery.timers.push(function(){
return z.step(from,to);
});
if(jQuery.timers.length==1){
var _17f=setInterval(function(){
var _180=jQuery.timers;
for(var i=0;i<_180.length;i++){
if(!_180[i]()){
_180.splice(i--,1);
}
}
if(!_180.length){
clearInterval(_17f);
}
},13);
}
};
z.show=function(){
if(!elem.orig){
elem.orig={};
}
elem.orig[prop]=jQuery.attr(elem.style,prop);
_176.show=true;
z.custom(0,this.cur());
if(prop!="opacity"){
y[prop]="1px";
}
jQuery(elem).show();
};
z.hide=function(){
if(!elem.orig){
elem.orig={};
}
elem.orig[prop]=jQuery.attr(elem.style,prop);
_176.hide=true;
z.custom(this.cur(),0);
};
z.step=function(_182,_183){
var t=(new Date()).getTime();
if(t>_176.duration+z.startTime){
z.now=_183;
z.a();
if(elem.curAnim){
elem.curAnim[prop]=true;
}
var done=true;
for(var i in elem.curAnim){
if(elem.curAnim[i]!==true){
done=false;
}
}
if(done){
if(_17a!=null){
y.overflow=_17b;
y.display=_17a;
if(jQuery.css(elem,"display")=="none"){
y.display="block";
}
}
if(_176.hide){
y.display="none";
}
if(_176.hide||_176.show){
for(var p in elem.curAnim){
jQuery.attr(y,p,elem.orig[p]);
}
}
}
if(done&&jQuery.isFunction(_176.complete)){
_176.complete.apply(elem);
}
return false;
}else{
var n=t-this.startTime;
var p=n/_176.duration;
z.now=jQuery.easing[_176.easing](p,n,_182,(_183-_182),_176.duration);
z.a();
}
return true;
};
}});
}