- return r;
-};
-
-jQuery.g = {
- "": "m[2]== '*'||a.nodeName.toUpperCase()==m[2].toUpperCase()",
- "#": "a.getAttribute('id')&&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==1",
- "first-child": "jQuery.sibling(a,0).cur",
- "nth-child": "(m[3]=='even'?jQuery.sibling(a,m[3]).n%2==0:(m[3]=='odd'?jQuery.sibling(a,m[3]).n%2==1:jQuery.sibling(a,m[3]).cur))",
- "last-child": "jQuery.sibling(a,0,true).cur",
- "nth-last-child": "jQuery.sibling(a,m[3],true).cur",
- "first-of-type": "jQuery.ofType(a,0)",
- "nth-of-type": "jQuery.ofType(a,m[3])",
- "last-of-type": "jQuery.ofType(a,0,true)",
- "nth-last-of-type": "jQuery.ofType(a,m[3],true)",
- "only-of-type": "jQuery.ofType(a)==1",
- "only-child": "jQuery.sibling(a).length==1",
- parent: "a.childNodes.length",
- empty: "!a.childNodes.length",
- root: "a==(a.ownerDocument||document).documentElement",
- contains: "(a.innerText||a.innerHTML).indexOf(m[3])!=-1",
- visible: "(!a.type||a.type!='hidden')&&(jQuery.css(a,'display')!='none'&&jQuery.css(a,'visibility')!= 'hidden')",
- hidden: "(a.type&&a.type=='hidden')||jQuery.css(a,'display')=='none'||jQuery.css(a,'visibility')== 'hidden'",
- enabled: "!a.disabled",
- disabled: "a.disabled",
- checked: "a.checked"
- },
- ".": "jQuery.hasWord(a,m[2])",
- "@": {
- "=": "jQuery.attr(a,m[3])==m[4]",
- "!=": "jQuery.attr(a,m[3])!=m[4]",
- "~=": "jQuery.hasWord(jQuery.attr(a,m[3]),m[4])",
- "|=": "!jQuery.attr(a,m[3]).indexOf(m[4])",
- "^=": "!jQuery.attr(a,m[3]).indexOf(m[4])",
- "$=": "jQuery.attr(a,m[3]).substr( jQuery.attr(a,m[3]).length - m[4].length,m[4].length )==m[4]",
- "*=": "jQuery.attr(a,m[3]).indexOf(m[4])>=0",
- "": "m[3]=='*'?a.attributes.length>0:jQuery.attr(a,m[3])"
- },
- "[": "jQuery.Select(m[2],a).length"
-};
-
-jQuery.token = [
- "\\.\\.|/\\.\\.", "a.parentNode",
- ">|/", "jQuery.sibling(a.firstChild)",
- "\\+", "jQuery.sibling(a).next",
- "~", function(a){
- var r = [];
- var s = jQuery.sibling(a);
- if ( s.n > 0 )
- for ( var i = s.n; i < s.length; i++ )
- r[r.length] = s[i];
- return r;
+
+ /*var to = ["append","prepend","before","after"];
+
+ for ( var i = 0; i < to.length; i++ ) new function(){
+ var n = to[i];
+ jQuery.fn[ n + "To" ] = function(){
+ var a = arguments;
+ return this.each(function(){
+ for ( var i = 0; i < a.length; i++ )
+ $(a[i])[n]( this );
+ });
+ };
+ }*/
+
+ var each = {
+ show: function(){
+ this.style.display = this.oldblock ? this.oldblock : "";
+ if ( jQuery.css(this,"display") == "none" )
+ this.style.display = "block";
+ },
+
+ hide: function(){
+ this.oldblock = jQuery.css(this,"display");
+ if ( this.oldblock == "none" )
+ this.oldblock = "block";
+ this.style.display = "none";
+ },
+
+ toggle: function(){
+ var d = jQuery.css(this,"display");
+ $(this)[ !d || d == "none" ? "show" : "hide" ]();
+ },
+
+ 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,a) ? "remove" : "add" ](this,c);
+ },
+
+ remove: function(a){
+ if ( !a || jQuery.filter( [this], a ).r )
+ this.parentNode.removeChild( this );
+ },
+
+ empty: function(){
+ while ( this.firstChild )
+ this.removeChild( this.firstChild );
+ },
+
+ bind: function( type, fn ) {
+ jQuery.event.add( this, type, fn );
+ },
+
+ unbind: function( type, fn ) {
+ jQuery.event.remove( this, type, fn );
+ },
+
+ trigger: function( type ) {
+ jQuery.event.trigger( this, type );
+ }
+ };
+
+ for ( var i in each ) new function() {
+ var n = each[i];
+ jQuery.fn[ i ] = function() {
+ var args = arguments;
+ return this.each(function(){
+ n.apply( this, args );
+ });
+ };