jquery-1.3b1.js jquery 1.3版

jQuery团队发布了1.3 Beta版库,邀请开发者进行深入测试以帮助找出潜在的bug。此版本尚未准备好投入生产使用,建议测试时避免使用压缩或打包版本。
在jQuery小组一直在努力工作的新版本的jQuery图书馆和它准备一些深入的测试! jQuery 1.3没有准备好用于生产,但我们需要帮助,剔除任何错误可能已经snuck通过。

下载

一份jQuery 1.3b1可以在这里找到:

     * http://code.jquery.com/jquery-1.3b1.js

请不要使用minified或包装版本的jQuery时,测试-它使查找漏洞困难。
 


The jQuery team has been working hard on the new release of the jQuery library and it’s ready for some in-depth testing! jQuery 1.3 is not ready for production use yet but we need help to weed out any bugs that might’ve snuck through.

Download

A copy of jQuery 1.3b1 can be found here:

Please don’t use minified or packed versions of jQuery when testing - it makes locating bugs difficult.




code:

 
  1. (function(){
  2. /*
  3.  * jQuery 1.3b1 - New Wave Javascript
  4.  *
  5.  * Copyright (c) 2008 John Resig (jquery.com)
  6.  * Dual licensed under the MIT (MIT-LICENSE.txt)
  7.  * and GPL (GPL-LICENSE.txt) licenses.
  8.  *
  9.  * $Date: 2008-12-22 12:31:22 -0500 (Mon, 22 Dec 2008) $
  10.  * $Rev: 5993 $
  11.  */
  12. // Map over jQuery in case of overwrite
  13. var _jQuery = window.jQuery,
  14. // Map over the $ in case of overwrite
  15.     _$ = window.$;
  16. var jQuery = window.jQuery = window.$ = function( selector, context ) {
  17.     // The jQuery object is actually just the init constructor 'enhanced'
  18.     return new jQuery.fn.init( selector, context );
  19. };
  20. // A simple way to check for HTML strings or ID strings
  21. // (both of which we optimize for)
  22. var quickExpr = /^[^<]*(<(.|/s)+>)[^>]*$|^#([/w-]+)$/,
  23. // Is it a simple selector
  24.     isSimple = /^.[^:#/[/.]*$/,
  25. // Will speed up references to undefined, and allows munging its name.
  26.     undefined;
  27. jQuery.fn = jQuery.prototype = {
  28.     init: function( selector, context ) {
  29.         // Make sure that a selection was provided
  30.         selector = selector || document;
  31.         // Handle $(DOMElement)
  32.         if ( selector.nodeType ) {
  33.             this[0] = selector;
  34.             this.length = 1;
  35.             this.context = selector;
  36.             return this;
  37.         }
  38.         // Handle HTML strings
  39.         if ( typeof selector === "string" ) {
  40.             // Are we dealing with HTML string or an ID?
  41.             var match = quickExpr.exec( selector );
  42.             // Verify a match, and that no context was specified for #id
  43.             if ( match && (match[1] || !context) ) {
  44.                 // HANDLE: $(html) -> $(array)
  45.                 if ( match[1] )
  46.                     selector = jQuery.clean( [ match[1] ], context );
  47.                 // HANDLE: $("#id")
  48.                 else {
  49.                     var elem = document.getElementById( match[3] );
  50.                     // Make sure an element was located
  51.                     if ( elem ){
  52.                         // Handle the case where IE and Opera return items
  53.                         // by name instead of ID
  54.                         if ( elem.id != match[3] )
  55.                             return jQuery().find( selector );
  56.                         // Otherwise, we inject the element directly into the jQuery object
  57.                         var ret = jQuery( elem );
  58.                         ret.context = document;
  59.                         ret.selector = selector;
  60.                         return ret;
  61.                     }
  62.                     selector = [];
  63.                 }
  64.             // HANDLE: $(expr, [context])
  65.             // (which is just equivalent to: $(content).find(expr)
  66.             } else
  67.                 return jQuery( context ).find( selector );
  68.         // HANDLE: $(function)
  69.         // Shortcut for document ready
  70.         } else if ( jQuery.isFunction( selector ) )
  71.             return jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector );
  72.         return this.setArray(jQuery.makeArray(selector));
  73.     },
  74.     // Start with an empty selector
  75.     selector: "",
  76.     // The current version of jQuery being used
  77.     jquery: "1.3b1",
  78.     // The number of elements contained in the matched element set
  79.     size: function() {
  80.         return this.length;
  81.     },
  82.     // Get the Nth element in the matched element set OR
  83.     // Get the whole matched element set as a clean array
  84.     get: function( num ) {
  85.         return num === undefined ?
  86.             // Return a 'clean' array
  87.             jQuery.makeArray( this ) :
  88.             // Return just the object
  89.             this[ num ];
  90.     },
  91.     // Take an array of elements and push it onto the stack
  92.     // (returning the new matched element set)
  93.     pushStack: function( elems, name, selector ) {
  94.         // Build a new jQuery matched element set
  95.         var ret = jQuery( elems );
  96.         // Add the old object onto the stack (as a reference)
  97.         ret.prevObject = this;
  98.         ret.context = this.context;
  99.         if ( name === "find" )
  100.             ret.selector = this.selector + (this.selector ? " " : "") + selector;
  101.         else if ( name )
  102.             ret.selector = this.selector + "." + name + "(" + selector + ")";
  103.         // Return the newly-formed element set
  104.         return ret;
  105.     },
  106.     // Force the current matched set of elements to become
  107.     // the specified array of elements (destroying the stack in the process)
  108.     // You should use pushStack() in order to do this, but maintain the stack
  109.     setArray: function( elems ) {
  110.         // Resetting the length to 0, then using the native Array push
  111.         // is a super-fast way to populate an object with array-like properties
  112.         this.length = 0;
  113.         Array.prototype.push.apply( this, elems );
  114.         return this;
  115.     },
  116.     // Execute a callback for every element in the matched set.
  117.     // (You can seed the arguments with an array of args, but this is
  118.     // only used internally.)
  119.     each: function( callback, args ) {
  120.         return jQuery.each( this, callback, args );
  121.     },
  122.     // Determine the position of an element within
  123.     // the matched set of elements
  124.     index: function( elem ) {
  125.         var ret = -1;
  126.         // Locate the position of the desired element
  127.         return jQuery.inArray(
  128.             // If it receives a jQuery object, the first element is used
  129.             elem && elem.jquery ? elem[0] : elem
  130.         , this );
  131.     },
  132.     attr: function( name, value, type ) {
  133.         var options = name;
  134.         // Look for the case where we're accessing a style value
  135.         if ( typeof name === "string" )
  136.             if ( value === undefined )
  137.                 return this[0] && jQuery[ type || "attr" ]( this[0], name );
  138.             else {
  139.                 options = {};
  140.                 options[ name ] = value;
  141.             }
  142.         // Check to see if we're setting style values
  143.         return this.each(function(i){
  144.             // Set all the styles
  145.             for ( name in options )
  146.                 jQuery.attr(
  147.                     type ?
  148.                         this.style :
  149.                         this,
  150.                     name, jQuery.prop( this, options[ name ], type, i, name )
  151.                 );
  152.         });
  153.     },
  154.     css: function( key, value ) {
  155.         // ignore negative width and height values
  156.         if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
  157.             value = undefined;
  158.         return this.attr( key, value, "curCSS" );
  159.     },
  160.     text: function( text ) {
  161.         if ( typeof text !== "object" && text != null )
  162.             return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
  163.         var ret = "";
  164.         jQuery.each( text || thisfunction(){
  165.             jQuery.each( this.childNodes, function(){
  166.                 if ( this.nodeType != 8 )
  167.                     ret += this.nodeType != 1 ?
  168.                         this.nodeValue :
  169.                         jQuery.fn.text( [ this ] );
  170.             });
  171.         });
  172.         return ret;
  173.     },
  174.     wrapAll: function( html ) {
  175.         if ( this[0] )
  176.             // The elements to wrap the target around
  177.             jQuery( html, this[0].ownerDocument )
  178.                 .clone()
  179.                 .insertBefore( this[0] )
  180.                 .map(function(){
  181.                     var elem = this;
  182.                     while ( elem.firstChild )
  183.                         elem = elem.firstChild;
  184.                     return elem;
  185.                 })
  186.                 .append(this);
  187.         return this;
  188.     },
  189.     wrapInner: function( html ) {
  190.         return this.each(function(){
  191.             jQuery( this ).contents().wrapAll( html );
  192.         });
  193.     },
  194.     wrap: function( html ) {
  195.         return this.each(function(){
  196.             jQuery( this ).wrapAll( html );
  197.         });
  198.     },
  199.     append: function() {
  200.         return this.domManip(arguments, truefunction(elem){
  201.             if (this.nodeType == 1)
  202.                 this.appendChild( elem );
  203.         });
  204.     },
  205.     prepend: function() {
  206.         return this.domManip(arguments, truefunction(elem){
  207.             if (this.nodeType == 1)
  208.                 this.insertBefore( elem, this.firstChild );
  209.         });
  210.     },
  211.     before: function() {
  212.         return this.domManip(arguments, falsefunction(elem){
  213.             this.parentNode.insertBefore( elem, this );
  214.         });
  215.     },
  216.     after: function() {
  217.         return this.domManip(arguments, falsefunction(elem){
  218.             this.parentNode.insertBefore( elem, this.nextSibling );
  219.         });
  220.     },
  221.     end: function() {
  222.         return this.prevObject || jQuery( [] );
  223.     },
  224.     find: function( selector ) {
  225.         var elems = jQuery.map(thisfunction(elem){
  226.             return jQuery.find( selector, elem );
  227.         });
  228.         return this.pushStack( /[^+>] [^+>]/.test( selector ) ?
  229.             jQuery.unique( elems ) :
  230.             elems, "find", selector );
  231.     },
  232.     clone: function( events ) {
  233.         // Do the clone
  234.         var ret = this.map(function(){
  235.             if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
  236.                 // IE copies events bound via attachEvent when
  237.                 // using cloneNode. Calling detachEvent on the
  238.                 // clone will also remove the events from the orignal
  239.                 // In order to get around this, we use innerHTML.
  240.                 // Unfortunately, this means some modifications to
  241.                 // attributes in IE that are actually only stored
  242.                 // as properties will not be copied (such as the
  243.                 // the name attribute on an input).
  244.                 var clone = this.cloneNode(true),
  245.                     container = document.createElement("div");
  246.                 container.appendChild(clone);
  247.                 return jQuery.clean([container.innerHTML])[0];
  248.             } else
  249.                 return this.cloneNode(true);
  250.         });
  251.         // Need to set the expando to null on the cloned set if it exists
  252.         // removeData doesn't work here, IE removes it from the original as well
  253.         // this is primarily for IE but the data expando shouldn't be copied over in any browser
  254.         var clone = ret.find("*").andSelf().each(function(){
  255.             if ( this[ expando ] !== undefined )
  256.                 this[ expando ] = null;
  257.         });
  258.         // Copy the events from the original to the clone
  259.         if ( events === true )
  260.             this.find("*").andSelf().each(function(i){
  261.                 if (this.nodeType == 3)
  262.                     return;
  263.                 var events = jQuery.data( this"events" );
  264.                 for ( var type in events )
  265.                     for ( var handler in events[ type ] )
  266.                         jQuery.event.add( clone[ i ], type, events[ type ][ handler ], events[ type ][ handler ].data );
  267.             });
  268.         // Return the cloned set
  269.         return ret;
  270.     },
  271.     filter: function( selector ) {
  272.         return this.pushStack(
  273.             jQuery.isFunction( selector ) &&
  274.             jQuery.grep(thisfunction(elem, i){
  275.                 return selector.call( elem, i );
  276.             }) ||
  277.             jQuery.multiFilter( selector, jQuery.grep(thisfunction(elem){
  278.                 return elem.nodeType === 1;
  279.             }) ), "filter", selector );
  280.     },
  281.     closest: function( selector ) {
  282.         return this.map(function(){
  283.             var cur = this;
  284.             while ( cur && cur.ownerDocument ) {
  285.                 if ( jQuery(cur).is(selector) )
  286.                     return cur;
  287.                 cur = cur.parentNode;
  288.             }
  289.         });
  290.     },
  291.     not: function( selector ) {
  292.         if ( typeof selector === "string" )
  293.             // test special case where just one selector is passed in
  294.             if ( isSimple.test( selector ) )
  295.                 return this.pushStack( jQuery.multiFilter( selector, thistrue ), "not", selector );
  296.             else
  297.                 selector = jQuery.multiFilter( selector, this );
  298.         var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
  299.         return this.filter(function() {
  300.             return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
  301.         });
  302.     },
  303.     add: function( selector ) {
  304.         return this.pushStack( jQuery.unique( jQuery.merge(
  305.             this.get(),
  306.             typeof selector === "string" ?
  307.                 jQuery( selector ) :
  308.                 jQuery.makeArray( selector )
  309.         )));
  310.     },
  311.     is: function( selector ) {
  312.         return !!selector && jQuery.multiFilter( selector, this ).length > 0;
  313.     },
  314.     hasClass: function( selector ) {
  315.         return !!selector && this.is( "." + selector );
  316.     },
  317.     val: function( value ) {
  318.         if ( value === undefined ) {            
  319.             var elem = this[0];
  320.             if ( elem ) {
  321.                 if( jQuery.nodeName( elem, 'option' ) )
  322.                     return (elem.attributes.value || {}).specified ? elem.value : elem.text;
  323.                 
  324.                 // We need to handle select boxes special
  325.                 if ( jQuery.nodeName( elem, "select" ) ) {
  326.                     var index = elem.selectedIndex,
  327.                         values = [],
  328.                         options = elem.options,
  329.                         one = elem.type == "select-one";
  330.                     // Nothing was selected
  331.                     if ( index < 0 )
  332.                         return null;
  333.                     // Loop through all the selected options
  334.                     for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
  335.                         var option = options[ i ];
  336.                         if ( option.selected ) {
  337.                             // Get the specifc value for the option
  338.                             value = jQuery(option).val();
  339.                             // We don't need an array for one selects
  340.                             if ( one )
  341.                                 return value;
  342.                             // Multi-Selects return an array
  343.                             values.push( value );
  344.                         }
  345.                     }
  346.                     return values;              
  347.                 }
  348.                 // Everything else, we just grab the value
  349.                 return (elem.value || "").replace(//r/g, "");
  350.             }
  351.             return undefined;
  352.         }
  353.         if ( typeof value === "number" )
  354.             value += '';
  355.         return this.each(function(){
  356.             if ( this.nodeType != 1 )
  357.                 return;
  358.             if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
  359.                 this.checked = (jQuery.inArray(this.value, value) >= 0 ||
  360.                     jQuery.inArray(this.name, value) >= 0);
  361.             else if ( jQuery.nodeName( this"select" ) ) {
  362.                 var values = jQuery.makeArray(value);
  363.                 jQuery( "option"this ).each(function(){
  364.                     this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
  365.                         jQuery.inArray( this.text, values ) >= 0);
  366.                 });
  367.                 if ( !values.length )
  368.                     this.selectedIndex = -1;
  369.             } else
  370.                 this.value = value;
  371.         });
  372.     },
  373.     html: function( value ) {
  374.         return value === undefined ?
  375.             (this[0] ?
  376.                 this[0].innerHTML :
  377.                 null) :
  378.             this.empty().append( value );
  379.     },
  380.     replaceWith: function( value ) {
  381.         return this.after( value ).remove();
  382.     },
  383.     eq: function( i ) {
  384.         return this.slice( i, +i + 1 );
  385.     },
  386.     slice: function() {
  387.         return this.pushStack( Array.prototype.slice.apply( this, arguments ),
  388.             "slice", Array.prototype.slice.call(arguments).join(",") );
  389.     },
  390.     map: function( callback ) {
  391.         return this.pushStack( jQuery.map(thisfunction(elem, i){
  392.             return callback.call( elem, i, elem );
  393.         }));
  394.     },
  395.     andSelf: function() {
  396.         return this.add( this.prevObject );
  397.     },
  398.     data: function( key, value ){
  399.         var parts = key.split(".");
  400.         parts[1] = parts[1] ? "." + parts[1] : "";
  401.         if ( value === undefined ) {
  402.             var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
  403.             if ( data === undefined && this.length )
  404.                 data = jQuery.data( this[0], key );
  405.             return data == null && parts[1] ?
  406.                 this.data( parts[0] ) :
  407.                 data;
  408.         } else
  409.             return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
  410.                 jQuery.data( this, key, value );
  411.             });
  412.     },
  413.     removeData: function( key ){
  414.         return this.each(function(){
  415.             jQuery.removeData( this, key );
  416.         });
  417.     },
  418.     domManip: function( args, table, callback ) {
  419.         if ( this[0] ) {
  420.             var fragment = this[0].ownerDocument.createDocumentFragment(),
  421.                 scripts = jQuery.clean( args, this[0].ownerDocument, fragment ),
  422.                 first = fragment.firstChild,
  423.                 extra = this.length > 1 ? fragment.cloneNode(true) : fragment;
  424.             
  425.             if ( first )
  426.                 for ( var i = 0, l = this.length; i < l; i++ )
  427.                     callback.call( root(this[i], first), i > 0 ? extra.cloneNode(true) : fragment );
  428.             
  429.             if ( scripts )
  430.                 jQuery.each( scripts, evalScript );
  431.         }
  432.         return this;
  433.         
  434.         function root( elem, cur ) {
  435.             return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ?
  436.                 (elem.getElementsByTagName("tbody")[0] ||
  437.                 elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
  438.                 elem;
  439.         }
  440.     }
  441. };
  442. // Give the init function the jQuery prototype for later instantiation
  443. jQuery.fn.init.prototype = jQuery.fn;
  444. function evalScript( i, elem ) {
  445.     if ( elem.src )
  446.         jQuery.ajax({
  447.             url: elem.src,
  448.             async: false,
  449.             dataType: "script"
  450.         });
  451.     else
  452.         jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
  453.     if ( elem.parentNode )
  454.         elem.parentNode.removeChild( elem );
  455. }
  456. function now(){
  457.     return +new Date;
  458. }
  459. jQuery.extend = jQuery.fn.extend = function() {
  460.     // copy reference to target object
  461.     var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
  462.     // Handle a deep copy situation
  463.     if ( typeof target === "boolean" ) {
  464.         deep = target;
  465.         target = arguments[1] || {};
  466.         // skip the boolean and the target
  467.         i = 2;
  468.     }
  469.     // Handle case when target is a string or something (possible in deep copy)
  470.     if ( typeof target !== "object" && !jQuery.isFunction(target) )
  471.         target = {};
  472.     // extend jQuery itself if only one argument is passed
  473.     if ( length == i ) {
  474.         target = this;
  475.         --i;
  476.     }
  477.     for ( ; i < length; i++ )
  478.         // Only deal with non-null/undefined values
  479.         if ( (options = arguments[ i ]) != null )
  480.             // Extend the base object
  481.             for ( var name in options ) {
  482.                 var src = target[ name ], copy = options[ name ];
  483.                 // Prevent never-ending loop
  484.                 if ( target === copy )
  485.                     continue;
  486.                 // Recurse if we're merging object values
  487.                 if ( deep && copy && typeof copy === "object" && !copy.nodeType )
  488.                     target[ name ] = jQuery.extend( deep, 
  489.                         // Never move original objects, clone them
  490.                         src || ( copy.length != null ? [ ] : { } )
  491.                     , copy );
  492.                 // Don't bring in undefined values
  493.                 else if ( copy !== undefined )
  494.                     target[ name ] = copy;
  495.             }
  496.     // Return the modified object
  497.     return target;
  498. };
  499. var expando = "jQuery" + now(), uuid = 0, windowData = {},
  500.     // exclude the following css properties to add px
  501.     exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
  502.     // cache defaultView
  503.     defaultView = document.defaultView || {},
  504.     toString = Object.prototype.toString;
  505. jQuery.extend({
  506.     noConflict: function( deep ) {
  507.         window.$ = _$;
  508.         if ( deep )
  509.             window.jQuery = _jQuery;
  510.         return jQuery;
  511.     },
  512.     // See test/unit/core.js for details concerning isFunction.
  513.     // Since version 1.3, DOM methods and functions like alert
  514.     // aren't supported. They return false on IE (#2968).
  515.     isFunction: function( obj ) {
  516.         return toString.call(obj) === "[object Function]";
  517.     },
  518.     isArray: function( obj ) {
  519.         return toString.call(obj) === "[object Array]";
  520.     },
  521.     // check if an element is in a (or is an) XML document
  522.     isXMLDoc: function( elem ) {
  523.         return elem.documentElement && !elem.body ||
  524.             elem.tagName && elem.ownerDocument && !elem.ownerDocument.body;
  525.     },
  526.     // Evalulates a script in a global context
  527.     globalEval: function( data ) {
  528.         data = jQuery.trim( data );
  529.         if ( data ) {
  530.             // Inspired by code by Andrea Giammarchi
  531.             // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
  532.             var head = document.getElementsByTagName("head")[0] || document.documentElement,
  533.                 script = document.createElement("script");
  534.             script.type = "text/javascript";
  535.             if ( jQuery.support.scriptEval )
  536.                 script.appendChild( document.createTextNode( data ) );
  537.             else
  538.                 script.text = data;
  539.             // Use insertBefore instead of appendChild  to circumvent an IE6 bug.
  540.             // This arises when a base node is used (#2709).
  541.             head.insertBefore( script, head.firstChild );
  542.             head.removeChild( script );
  543.         }
  544.     },
  545.     nodeName: function( elem, name ) {
  546.         return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
  547.     },
  548.     cache: {},
  549.     data: function( elem, name, data ) {
  550.         elem = elem == window ?
  551.             windowData :
  552.             elem;
  553.         var id = elem[ expando ];
  554.         // Compute a unique ID for the element
  555.         if ( !id )
  556.             id = elem[ expando ] = ++uuid;
  557.         // Only generate the data cache if we're
  558.         // trying to access or manipulate it
  559.         if ( name && !jQuery.cache[ id ] )
  560.             jQuery.cache[ id ] = {};
  561.         // Prevent overriding the named cache with undefined values
  562.         if ( data !== undefined )
  563.             jQuery.cache[ id ][ name ] = data;
  564.         // Return the named cache data, or the ID for the element
  565.         return name ?
  566.             jQuery.cache[ id ][ name ] || null :
  567.             id;
  568.     },
  569.     removeData: function( elem, name ) {
  570.         elem = elem == window ?
  571.             windowData :
  572.             elem;
  573.         var id = elem[ expando ];
  574.         // If we want to remove a specific section of the element's data
  575.         if ( name ) {
  576.             if ( jQuery.cache[ id ] ) {
  577.                 // Remove the section of cache data
  578.                 delete jQuery.cache[ id ][ name ];
  579.                 // If we've removed all the data, remove the element's cache
  580.                 name = "";
  581.                 for ( name in jQuery.cache[ id ] )
  582.                     break;
  583.                 if ( !name )
  584.                     jQuery.removeData( elem );
  585.             }
  586.         // Otherwise, we want to remove all of the element's data
  587.         } else {
  588.             // Clean up the element expando
  589.             try {
  590.                 delete elem[ expando ];
  591.             } catch(e){
  592.                 // IE has trouble directly removing the expando
  593.                 // but it's ok with using removeAttribute
  594.                 if ( elem.removeAttribute )
  595.                     elem.removeAttribute( expando );
  596.             }
  597.             // Completely remove the data cache
  598.             delete jQuery.cache[ id ];
  599.         }
  600.     },
  601.     // args is for internal usage only
  602.     each: function( object, callback, args ) {
  603.         var name, i = 0, length = object.length;
  604.         if ( args ) {
  605.             if ( length === undefined ) {
  606.                 for ( name in object )
  607.                     if ( callback.apply( object[ name ], args ) === false )
  608.                         break;
  609.             } else
  610.                 for ( ; i < length; )
  611.                     if ( callback.apply( object[ i++ ], args ) === false )
  612.                         break;
  613.         // A special, fast, case for the most common use of each
  614.         } else {
  615.             if ( length === undefined ) {
  616.                 for ( name in object )
  617.                     if ( callback.call( object[ name ], name, object[ name ] ) === false )
  618.                         break;
  619.             } else
  620.                 for ( var value = object[0];
  621.                     i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
  622.         }
  623.         return object;
  624.     },
  625.     prop: function( elem, value, type, i, name ) {
  626.         // Handle executable functions
  627.         if ( jQuery.isFunction( value ) )
  628.             value = value.call( elem, i );
  629.         // Handle passing in a number to a CSS property
  630.         return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ?
  631.             value + "px" :
  632.             value;
  633.     },
  634.     className: {
  635.         // internal only, use addClass("class")
  636.         add: function( elem, classNames ) {
  637.             jQuery.each((classNames || "").split(//s+/), function(i, className){
  638.                 if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
  639.                     elem.className += (elem.className ? " " : "") + className;
  640.             });
  641.         },
  642.         // internal only, use removeClass("class")
  643.         remove: function( elem, classNames ) {
  644.             if (elem.nodeType == 1)
  645.                 elem.className = classNames !== undefined ?
  646.                     jQuery.grep(elem.className.split(//s+/), function(className){
  647.                         return !jQuery.className.has( classNames, className );
  648.                     }).join(" ") :
  649.                     "";
  650.         },
  651.         // internal only, use hasClass("class")
  652.         has: function( elem, className ) {
  653.             return jQuery.inArray( className, (elem.className || elem).toString().split(//s+/) ) > -1;
  654.         }
  655.     },
  656.     // A method for quickly swapping in/out CSS properties to get correct calculations
  657.     swap: function( elem, options, callback ) {
  658.         var old = {};
  659.         // Remember the old values, and insert the new ones
  660.         for ( var name in options ) {
  661.             old[ name ] = elem.style[ name ];
  662.             elem.style[ name ] = options[ name ];
  663.         }
  664.         callback.call( elem );
  665.         // Revert the old values
  666.         for ( var name in options )
  667.             elem.style[ name ] = old[ name ];
  668.     },
  669.     css: function( elem, name, force ) {
  670.         if ( name == "width" || name == "height" ) {
  671.             var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left""Right" ] : [ "Top""Bottom" ];
  672.             function getWH() {
  673.                 val = name == "width" ? elem.offsetWidth : elem.offsetHeight;
  674.                 var padding = 0, border = 0;
  675.                 jQuery.each( which, function() {
  676.                     padding += parseFloat(jQuery.curCSS( elem, "padding" + thistrue)) || 0;
  677.                     border += parseFloat(jQuery.curCSS( elem, "border" + this + "Width"true)) || 0;
  678.                 });
  679.                 val -= Math.round(padding + border);
  680.             }
  681.             if ( jQuery(elem).is(":visible") )
  682.                 getWH();
  683.             else
  684.                 jQuery.swap( elem, props, getWH );
  685.             return Math.max(0, val);
  686.         }
  687.         return jQuery.curCSS( elem, name, force );
  688.     },
  689.     curCSS: function( elem, name, force ) {
  690.         var ret, style = elem.style;
  691.         // We need to handle opacity special in IE
  692.         if ( name == "opacity" && !jQuery.support.opacity ) {
  693.             ret = jQuery.attr( style, "opacity" );
  694.             return ret == "" ?
  695.                 "1" :
  696.                 ret;
  697.         }
  698.         // Make sure we're using the right name for getting the float value
  699.         if ( name.match( /float/i ) )
  700.             name = styleFloat;
  701.         if ( !force && style && style[ name ] )
  702.             ret = style[ name ];
  703.         else if ( defaultView.getComputedStyle ) {
  704.             // Only "float" is needed here
  705.             if ( name.match( /float/i ) )
  706.                 name = "float";
  707.             name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
  708.             var computedStyle = defaultView.getComputedStyle( elem, null );
  709.             if ( computedStyle )
  710.                 ret = computedStyle.getPropertyValue( name );
  711.             // We should always get a number back from opacity
  712.             if ( name == "opacity" && ret == "" )
  713.                 ret = "1";
  714.         } else if ( elem.currentStyle ) {
  715.             var camelCase = name.replace(//-(/w)/g, function(all, letter){
  716.                 return letter.toUpperCase();
  717.             });
  718.             ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
  719.             // From the awesome hack by Dean Edwards
  720.             // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
  721.             // If we're not dealing with a regular pixel number
  722.             // but a number that has a weird ending, we need to convert it to pixels
  723.             if ( !/^/d+(px)?$/i.test( ret ) && /^/d/.test( ret ) ) {
  724.                 // Remember the original values
  725.                 var left = style.left, rsLeft = elem.runtimeStyle.left;
  726.                 // Put in the new values to get a computed value out
  727.                 elem.runtimeStyle.left = elem.currentStyle.left;
  728.                 style.left = ret || 0;
  729.                 ret = style.pixelLeft + "px";
  730.                 // Revert the changed values
  731.                 style.left = left;
  732.                 elem.runtimeStyle.left = rsLeft;
  733.             }
  734.         }
  735.         return ret;
  736.     },
  737.     clean: function( elems, context, fragment ) {
  738.         var ret = [], scripts = [];
  739.         context = context || document;
  740.         // !context.createElement fails in IE with an error but returns typeof 'object'
  741.         if ( typeof context.createElement === "undefined" )
  742.             context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
  743.         jQuery.each(elems, function(i, elem){
  744.             if ( typeof elem === "number" )
  745.                 elem += '';
  746.             if ( !elem )
  747.                 return;
  748.             // Convert html string into DOM nodes
  749.             if ( typeof elem === "string" ) {
  750.                 // Fix "XHTML"-style tags in all browsers
  751.                 elem = elem.replace(/(<(/w+)[^>]*?)//>/g, function(all, front, tag){
  752.                     return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
  753.                         all :
  754.                         front + "></" + tag + ">";
  755.                 });
  756.                 // Trim whitespace, otherwise indexOf won't work as expected
  757.                 var tags = jQuery.trim( elem ).toLowerCase(), div = context.createElement("div");
  758.                 var wrap =
  759.                     // option or optgroup
  760.                     !tags.indexOf("<opt") &&
  761.                     [ 1, "<select multiple='multiple'>""</select>" ] ||
  762.                     !tags.indexOf("<leg") &&
  763.                     [ 1, "<fieldset>""</fieldset>" ] ||
  764.                     tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
  765.                     [ 1, "<table>""</table>" ] ||
  766.                     !tags.indexOf("<tr") &&
  767.                     [ 2, "<table><tbody>""</tbody></table>" ] ||
  768.                     // <thead> matched above
  769.                     (!tags.indexOf("<td") || !tags.indexOf("<th")) &&
  770.                     [ 3, "<table><tbody><tr>""</tr></tbody></table>" ] ||
  771.                     !tags.indexOf("<col") &&
  772.                     [ 2, "<table><tbody></tbody><colgroup>""</colgroup></table>" ] ||
  773.                     // IE can't serialize <link> and <script> tags normally
  774.                     !jQuery.support.htmlSerialize &&
  775.                     [ 1, "div<div>""</div>" ] ||
  776.                     [ 0, """" ];
  777.                 // Go to html and back, then peel off extra wrappers
  778.                 div.innerHTML = wrap[1] + elem + wrap[2];
  779.                 // Move to the right depth
  780.                 while ( wrap[0]-- )
  781.                     div = div.lastChild;
  782.                 // Remove IE's autoinserted <tbody> from table fragments
  783.                 if ( !jQuery.support.tbody ) {
  784.                     // String was a <table>, *may* have spurious <tbody>
  785.                     var tbody = !tags.indexOf("<table") && tags.indexOf("<tbody") < 0 ?
  786.                         div.firstChild && div.firstChild.childNodes :
  787.                         // String was a bare <thead> or <tfoot>
  788.                         wrap[1] == "<table>" && tags.indexOf("<tbody") < 0 ?
  789.                             div.childNodes :
  790.                             [];
  791.                     for ( var j = tbody.length - 1; j >= 0 ; --j )
  792.                         if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )
  793.                             tbody[ j ].parentNode.removeChild( tbody[ j ] );
  794.                     }
  795.                 // IE completely kills leading whitespace when innerHTML is used
  796.                 if ( !jQuery.support.leadingWhitespace && /^/s/.test( elem ) )
  797.                     div.insertBefore( context.createTextNode( elem.match(/^/s*/)[0] ), div.firstChild );
  798.                 
  799.                 if ( fragment ) {
  800.                     var found = div.getElementsByTagName("script");
  801.             
  802.                     while ( found.length ) {
  803.                         scripts.push( found[0] );
  804.                         found[0].parentNode.removeChild( found[0] );
  805.                     }
  806.                 }
  807.                 elem = jQuery.makeArray( div.childNodes );
  808.             }
  809.             if ( elem.nodeType )
  810.                 ret.push( elem );
  811.             else
  812.                 ret = jQuery.merge( ret, elem );
  813.         });
  814.         
  815.         if ( fragment ) {
  816.             for ( var i = 0; ret[i]; i++ ) {
  817.                 if ( jQuery.nodeName( ret[i], "script" ) ) {
  818.                     ret[i].parentNode.removeChild( ret[i] );
  819.                 } else {
  820.                     if ( ret[i].nodeType === 1 )
  821.                         ret = jQuery.merge( ret, ret[i].getElementsByTagName("script"));
  822.                     fragment.appendChild( ret[i] );
  823.                 }
  824.             }
  825.             
  826.             return scripts;
  827.         }
  828.         return ret;
  829.     },
  830.     attr: function( elem, name, value ) {
  831.         // don't set attributes on text and comment nodes
  832.         if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
  833.             return undefined;
  834.         var notxml = !jQuery.isXMLDoc( elem ),
  835.             // Whether we are setting (or getting)
  836.             set = value !== undefined;
  837.         // Try to normalize/fix the name
  838.         name = notxml && jQuery.props[ name ] || name;
  839.         // Only do all the following if this is a node (faster for style)
  840.         // IE elem.getAttribute passes even for style
  841.         if ( elem.tagName ) {
  842.             // These attributes require special treatment
  843.             var special = /href|src|style/.test( name );
  844.             // Safari mis-reports the default selected property of a hidden option
  845.             // Accessing the parent's selectedIndex property fixes it
  846.             if ( name == "selected" )
  847.                 elem.parentNode.selectedIndex;
  848.             // If applicable, access the attribute via the DOM 0 way
  849.             if ( name in elem && notxml && !special ) {
  850.                 if ( set ){
  851.                     // We can't allow the type property to be changed (since it causes problems in IE)
  852.                     if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
  853.                         throw "type property can't be changed";
  854.                     elem[ name ] = value;
  855.                 }
  856.                 // browsers index elements by id/name on forms, give priority to attributes.
  857.                 if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
  858.                     return elem.getAttributeNode( name ).nodeValue;
  859.                 return elem[ name ];
  860.             }
  861.             if ( !jQuery.support.style && notxml &&  name == "style" )
  862.                 return jQuery.attr( elem.style, "cssText", value );
  863.             if ( set )
  864.                 // convert the value to a string (all browsers do this but IE) see #1070
  865.                 elem.setAttribute( name, "" + value );
  866.             var attr = !jQuery.support.hrefNormalized && notxml && special
  867.                     // Some attributes require a special call on IE
  868.                     ? elem.getAttribute( name, 2 )
  869.                     : elem.getAttribute( name );
  870.             // Non-existent attributes return null, we normalize to undefined
  871.             return attr === null ? undefined : attr;
  872.         }
  873.         // elem is actually elem.style ... set the style
  874.         // IE uses filters for opacity
  875.         if ( !jQuery.support.opacity && name == "opacity" ) {
  876.             if ( set ) {
  877.                 // IE has trouble with opacity if it does not have layout
  878.                 // Force it by setting the zoom level
  879.                 elem.zoom = 1;
  880.                 // Set the alpha filter to set the opacity
  881.                 elem.filter = (elem.filter || "").replace( /alpha/([^)]*/)/, "" ) +
  882.                     (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
  883.             }
  884.             return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
  885.                 (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
  886.                 "";
  887.         }
  888.         name = name.replace(/-([a-z])/ig, function(all, letter){
  889.             return letter.toUpperCase();
  890.         });
  891.         if ( set )
  892.             elem[ name ] = value;
  893.         return elem[ name ];
  894.     },
  895.     trim: function( text ) {
  896.         return (text || "").replace( /^/s+|/s+$/g, "" );
  897.     },
  898.     makeArray: function( array ) {
  899.         var ret = [];
  900.         if( array != null ){
  901.             var i = array.length;
  902.             // The window, strings (and functions) also have 'length'
  903.             if( i == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval )
  904.                 ret[0] = array;
  905.             else
  906.                 while( i )
  907.                     ret[--i] = array[i];
  908.         }
  909.         return ret;
  910.     },
  911.     inArray: function( elem, array ) {
  912.         for ( var i = 0, length = array.length; i < length; i++ )
  913.         // Use === because on IE, window == document
  914.             if ( array[ i ] === elem )
  915.                 return i;
  916.         return -1;
  917.     },
  918.     merge: function( first, second ) {
  919.         // We have to loop this way because IE & Opera overwrite the length
  920.         // expando of getElementsByTagName
  921.         var i = 0, elem, pos = first.length;
  922.         // Also, we need to make sure that the correct elements are being returned
  923.         // (IE returns comment nodes in a '*' query)
  924.         if ( !jQuery.support.getAll ) {
  925.             while ( (elem = second[ i++ ]) )
  926.                 if ( elem.nodeType != 8 )
  927.                     first[ pos++ ] = elem;
  928.         } else
  929.             while ( (elem = second[ i++ ]) )
  930.                 first[ pos++ ] = elem;
  931.         return first;
  932.     },
  933.     unique: function( array ) {
  934.         var ret = [], done = {};
  935.         try {
  936.             for ( var i = 0, length = array.length; i < length; i++ ) {
  937.                 var id = jQuery.data( array[ i ] );
  938.                 if ( !done[ id ] ) {
  939.                     done[ id ] = true;
  940.                     ret.push( array[ i ] );
  941.                 }
  942.             }
  943.         } catch( e ) {
  944.             ret = array;
  945.         }
  946.         return ret;
  947.     },
  948.     grep: function( elems, callback, inv ) {
  949.         var ret = [];
  950.         // Go through the array, only saving the items
  951.         // that pass the validator function
  952.         for ( var i = 0, length = elems.length; i < length; i++ )
  953.             if ( !inv != !callback( elems[ i ], i ) )
  954.                 ret.push( elems[ i ] );
  955.         return ret;
  956.     },
  957.     map: function( elems, callback ) {
  958.         var ret = [];
  959.         // Go through the array, translating each of the items to their
  960.         // new value (or values).
  961.         for ( var i = 0, length = elems.length; i < length; i++ ) {
  962.             var value = callback( elems[ i ], i );
  963.             if ( value != null )
  964.                 ret[ ret.length ] = value;
  965.         }
  966.         return ret.concat.apply( [], ret );
  967.     }
  968. });
  969. // Use of jQuery.browser is deprecated.
  970. // It's included for backwards compatibility and plugins,
  971. // although they should work to migrate away.
  972. var userAgent = navigator.userAgent.toLowerCase();
  973. // Figure out what browser is being used
  974. jQuery.browser = {
  975.     version: (userAgent.match( /.+(?:rv|it|ra|ie)[//: ]([/d.]+)/ ) || [0,'0'])[1],
  976.     safari: /webkit/.test( userAgent ),
  977.     opera: /opera/.test( userAgent ),
  978.     msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
  979.     mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
  980. };
  981. // Check to see if the W3C box model is being used
  982. jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat";
  983. jQuery.each({
  984.     parent: function(elem){return elem.parentNode;},
  985.     parents: function(elem){return jQuery.dir(elem,"parentNode");},
  986.     next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
  987.     prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
  988.     nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
  989.     prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
  990.     siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
  991.     children: function(elem){return jQuery.sibling(elem.firstChild);},
  992.     contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
  993. }, function(name, fn){
  994.     jQuery.fn[ name ] = function( selector ) {
  995.         var ret = jQuery.map( this, fn );
  996.         if ( selector && typeof selector == "string" )
  997.             ret = jQuery.multiFilter( selector, ret );
  998.         return this.pushStack( jQuery.unique( ret ), name, selector );
  999.     };
  1000. });
  1001. jQuery.each({
  1002.     appendTo: "append",
  1003.     prependTo: "prepend",
  1004.     insertBefore: "before",
  1005.     insertAfter: "after",
  1006.     replaceAll: "replaceWith"
  1007. }, function(name, original){
  1008.     jQuery.fn[ name ] = function() {
  1009.         var args = arguments;
  1010.         return this.each(function(){
  1011.             for ( var i = 0, length = args.length; i < length; i++ )
  1012.                 jQuery( args[ i ] )[ original ]( this );
  1013.         });
  1014.     };
  1015. });
  1016. jQuery.each({
  1017.     removeAttr: function( name ) {
  1018.         jQuery.attr( this, name, "" );
  1019.         if (this.nodeType == 1)
  1020.             this.removeAttribute( name );
  1021.     },
  1022.     addClass: function( classNames ) {
  1023.         jQuery.className.add( this, classNames );
  1024.     },
  1025.     removeClass: function( classNames ) {
  1026.         jQuery.className.remove( this, classNames );
  1027.     },
  1028.     toggleClass: function( classNames ) {
  1029.         jQuery.className[ jQuery.className.has( this, classNames ) ? "remove" : "add" ]( this, classNames );
  1030.     },
  1031.     remove: function( selector ) {
  1032.         if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
  1033.             // Prevent memory leaks
  1034.             jQuery( "*"this ).add([this]).each(function(){
  1035.                 jQuery.event.remove(this);
  1036.                 jQuery.removeData(this);
  1037.             });
  1038.             if (this.parentNode)
  1039.                 this.parentNode.removeChild( this );
  1040.         }
  1041.     },
  1042.     empty: function() {
  1043.         // Remove element nodes and prevent memory leaks
  1044.         jQuery( ">*"this ).remove();
  1045.         // Remove any remaining nodes
  1046.         while ( this.firstChild )
  1047.             this.removeChild( this.firstChild );
  1048.     }
  1049. }, function(name, fn){
  1050.     jQuery.fn[ name ] = function(){
  1051.         return this.each( fn, arguments );
  1052.     };
  1053. });
  1054. // Helper function used by the dimensions and offset modules
  1055. function num(elem, prop) {
  1056.     return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
  1057. }
  1058. (function(){
  1059.     jQuery.support = {};
  1060.     var root = document.documentElement,
  1061.         script = document.createElement("script"),
  1062.         div = document.createElement("div"),
  1063.         id = "script" + (new Date).getTime();
  1064.     div.style.display = "none";
  1065.     div.innerHTML = '   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param></object>';
  1066.     var all = div.getElementsByTagName("*"),
  1067.         a = div.getElementsByTagName("a")[0];
  1068.     // Can't get basic test support
  1069.     if ( !all || !all.length || !a ) {
  1070.         return;
  1071.     }
  1072.     jQuery.support = {
  1073.         // IE strips leading whitespace when .innerHTML is used
  1074.         leadingWhitespace: div.firstChild.nodeType == 3,
  1075.         
  1076.         // Make sure that tbody elements aren't automatically inserted
  1077.         // IE will insert them into empty tables
  1078.         tbody: !div.getElementsByTagName("tbody").length,
  1079.         
  1080.         // Make sure that you can get all elements in an <object> element
  1081.         // IE 7 always returns no results
  1082.         objectAll: !!div.getElementsByTagName("object")[0]
  1083.             .getElementsByTagName("*").length,
  1084.         
  1085.         // Make sure that link elements get serialized correctly by innerHTML
  1086.         // This requires a wrapper element in IE
  1087.         htmlSerialize: !!div.getElementsByTagName("link").length,
  1088.         
  1089.         // Get the style information from getAttribute
  1090.         // (IE uses .cssText insted)
  1091.         style: /red/.test( a.getAttribute("style") ),
  1092.         
  1093.         // Make sure that URLs aren't manipulated
  1094.         // (IE normalizes it by default)
  1095.         hrefNormalized: a.getAttribute("href") === "/a",
  1096.         
  1097.         // Make sure that element opacity exists
  1098.         // (IE uses filter instead)
  1099.         opacity: a.style.opacity === "0.5",
  1100.         
  1101.         // Verify style float existence
  1102.         // (IE uses styleFloat instead of cssFloat)
  1103.         cssFloat: !!a.style.cssFloat,
  1104.         // Will be defined later
  1105.         scriptEval: false,
  1106.         noCloneEvent: true
  1107.     };
  1108.     
  1109.     script.type = "text/javascript";
  1110.     try {
  1111.         script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
  1112.     } catch(e){}
  1113.     root.insertBefore( script, root.firstChild );
  1114.     
  1115.     // Make sure that the execution of code works by injecting a script
  1116.     // tag with appendChild/createTextNode
  1117.     // (IE doesn't support this, fails, and uses .text instead)
  1118.     if ( window[ id ] ) {
  1119.         jQuery.support.scriptEval = true;
  1120.         delete window[ id ];
  1121.     }
  1122.     root.removeChild( script );
  1123.     if ( div.attachEvent && div.fireEvent ) {
  1124.         div.attachEvent("onclick"function(){
  1125.             // Cloning a node shouldn't copy over any
  1126.             // bound event handlers (IE does this)
  1127.             jQuery.support.noCloneEvent = false;
  1128.         });
  1129.         div.cloneNode(true).fireEvent("onclick");
  1130.     }
  1131. })();
  1132. var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat";
  1133. jQuery.props = {
  1134.     "for""htmlFor",
  1135.     "class""className",
  1136.     "float": styleFloat,
  1137.     cssFloat: styleFloat,
  1138.     styleFloat: styleFloat,
  1139.     readonly: "readOnly",
  1140.     maxlength: "maxLength",
  1141.     cellspacing: "cellSpacing",
  1142.     rowspan: "rowSpan"
  1143. };/*
  1144.  * Sizzle CSS Selector Engine - v0.9
  1145.  *  Copyright 2009, John Resig (http://ejohn.org/)
  1146.  *  released under the MIT License
  1147.  */
  1148. (function(){
  1149. var chunker = /((?:/((?:/([^()]+/)|[^()]+)+/)|/[(?:/[[^[/]]+/]|[^[/]]+)+/]|//.|[^ >+~,(/[]+)+|[>+~])(/s*,/s*)?/g;
  1150. var done = 0;
  1151. var Sizzle = function(selector, context, results, seed) {
  1152.     var doCache = !results;
  1153.     results = results || [];
  1154.     context = context || document;
  1155.     if ( context.nodeType !== 1 && context.nodeType !== 9 )
  1156.         return [];
  1157.     
  1158.     if ( !selector || typeof selector !== "string" ) {
  1159.         return results;
  1160.     }
  1161.     var parts = [], m, set, checkSet, check, mode, extra;
  1162.     
  1163.     // Reset the position of the chunker regexp (start from head)
  1164.     chunker.lastIndex = 0;
  1165.     
  1166.     while ( (m = chunker.exec(selector)) !== null ) {
  1167.         parts.push( m[1] );
  1168.         
  1169.         if ( m[2] ) {
  1170.             extra = RegExp.rightContext;
  1171.             break;
  1172.         }
  1173.     }
  1174.     if ( parts.length > 1 && Expr.match.POS.exec( selector ) ) {
  1175.         if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
  1176.             var later = "", match;
  1177.             // Position selectors must be done after the filter
  1178.             while ( (match = Expr.match.POS.exec( selector )) ) {
  1179.                 later += match[0];
  1180.                 selector = selector.replace( Expr.match.POS, "" );
  1181.             }
  1182.             set = Sizzle.filter( later, Sizzle( selector, context ) );
  1183.         } else {
  1184.             set = Expr.relative[ parts[0] ] ?
  1185.                 [ context ] :
  1186.                 Sizzle( parts.shift(), context );
  1187.             while ( parts.length ) {
  1188.                 var tmpSet = [];
  1189.                 selector = parts.shift();
  1190.                 if ( Expr.relative[ selector ] )
  1191.                     selector += parts.shift();
  1192.                 for ( var i = 0, l = set.length; i < l; i++ ) {
  1193.                     Sizzle( selector, set[i], tmpSet );
  1194.                 }
  1195.                 set = tmpSet;
  1196.             }
  1197.         }
  1198.     } else {
  1199.         var ret = seed ?
  1200.             { expr: parts.pop(), set: makeArray(seed) } :
  1201.             Sizzle.find( parts.pop(), parts.length === 1 && context.parentNode ? context.parentNode : context );
  1202.         set = Sizzle.filter( ret.expr, ret.set );
  1203.         if ( parts.length > 0 ) {
  1204.             checkSet = makeArray(set);
  1205.         }
  1206.         while ( parts.length ) {
  1207.             var cur = parts.pop(), pop = cur;
  1208.             if ( !Expr.relative[ cur ] ) {
  1209.                 cur = "";
  1210.             } else {
  1211.                 pop = parts.pop();
  1212.             }
  1213.             if ( pop == null ) {
  1214.                 pop = context;
  1215.             }
  1216.             Expr.relative[ cur ]( checkSet, pop );
  1217.         }
  1218.     }
  1219.     if ( !checkSet ) {
  1220.         checkSet = set;
  1221.     }
  1222.     if ( !checkSet ) {
  1223.         throw "Syntax error, unrecognized expression: " + (cur || selector);
  1224.     }
  1225.     if ( checkSet instanceof Array ) {
  1226.         if ( context.nodeType === 1 ) {
  1227.             for ( var i = 0; checkSet[i] != null; i++ ) {
  1228.                 if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
  1229.                     results.push( set[i] );
  1230.                 }
  1231.             }
  1232.         } else {
  1233.             for ( var i = 0; checkSet[i] != null; i++ ) {
  1234.                 if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
  1235.                     results.push( set[i] );
  1236.                 }
  1237.             }
  1238.         }
  1239.     } else {
  1240.         makeArray( checkSet, results );
  1241.     }
  1242.     if ( extra ) {
  1243.         Sizzle( extra, context, results );
  1244.     }
  1245.     return results;
  1246. };
  1247. Sizzle.matches = function(expr, set){
  1248.     return Sizzle(expr, nullnull, set);
  1249. };
  1250. Sizzle.find = function(expr, context){
  1251.     var set, match;
  1252.     if ( !expr ) {
  1253.         return [];
  1254.     }
  1255.     var later = "", match;
  1256.     // Pseudo-selectors could contain other selectors (like :not)
  1257.     while ( (match = Expr.match.PSEUDO.exec( expr )) ) {
  1258.         var left = RegExp.leftContext;
  1259.         if ( left.substr( left.length - 1 ) !== "//" ) {
  1260.             later += match[0];
  1261.             expr = expr.replace( Expr.match.PSEUDO, "" );
  1262.         } else {
  1263.             // TODO: Need a better solution, fails: .class/:foo:realfoo(#id)
  1264.             break;
  1265.         }
  1266.     }
  1267.     for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
  1268.         var type = Expr.order[i];
  1269.         
  1270.         if ( (match = Expr.match[ type ].exec( expr )) ) {
  1271.             var left = RegExp.leftContext;
  1272.             if ( left.substr( left.length - 1 ) !== "//" ) {
  1273.                 match[1] = (match[1] || "").replace(////g, "");
  1274.                 set = Expr.find[ type ]( match, context );
  1275.                 if ( set != null ) {
  1276.                     expr = expr.replace( Expr.match[ type ], "" );
  1277.                     break;
  1278.                 }
  1279.             }
  1280.         }
  1281.     }
  1282.     if ( !set ) {
  1283.         set = context.getElementsByTagName("*");
  1284.     }
  1285.     expr += later;
  1286.     return {set: set, expr: expr};
  1287. };
  1288. Sizzle.filter = function(expr, set, inplace){
  1289.     var old = expr, result = [], curLoop = set, match;
  1290.     while ( expr && set.length ) {
  1291.         for ( var type in Expr.filter ) {
  1292.             if ( (match = Expr.match[ type ].exec( expr )) != null ) {
  1293.                 var anyFound = false, filter = Expr.filter[ type ], goodArray = null;
  1294.                 if ( curLoop == result ) {
  1295.                     result = [];
  1296.                 }
  1297.                 if ( Expr.preFilter[ type ] ) {
  1298.                     match = Expr.preFilter[ type ]( match, curLoop );
  1299.                     if ( match[0] === true ) {
  1300.                         goodArray = [];
  1301.                         var last = null, elem;
  1302.                         for ( var i = 0; (elem = curLoop[i]) !== undefined; i++ ) {
  1303.                             if ( elem && last !== elem ) {
  1304.                                 goodArray.push( elem );
  1305.                                 last = elem;
  1306.                             }
  1307.                         }
  1308.                     }
  1309.                 }
  1310.                 var goodPos = 0, found, item;
  1311.                 for ( var i = 0; (item = curLoop[i]) !== undefined; i++ ) {
  1312.                     if ( item ) {
  1313.                         if ( goodArray && item != goodArray[goodPos] ) {
  1314.                             goodPos++;
  1315.                         }
  1316.                         found = filter( item, match, goodPos, goodArray );
  1317.                         if ( inplace && found != null ) {
  1318.                             curLoop[i] = found ? curLoop[i] : false;
  1319.                             if ( found ) {
  1320.                                 anyFound = true;
  1321.                             }
  1322.                         } else if ( found ) {
  1323.                             result.push( item );
  1324.                             anyFound = true;
  1325.                         }
  1326.                     }
  1327.                 }
  1328.                 if ( found !== undefined ) {
  1329.                     if ( !inplace ) {
  1330.                         curLoop = result;
  1331.                     }
  1332.                     expr = expr.replace( Expr.match[ type ], "" );
  1333.                     if ( !anyFound ) {
  1334.                         return [];
  1335.                     }
  1336.                     break;
  1337.                 }
  1338.             }
  1339.         }
  1340.         expr = expr.replace(//s*,/s*/, "");
  1341.         // Improper expression
  1342.         if ( expr == old ) {
  1343.             throw "Syntax error, unrecognized expression: " + expr;
  1344.         }
  1345.         old = expr;
  1346.     }
  1347.     return curLoop;
  1348. };
  1349. var Expr = Sizzle.selectors = {
  1350.     order: [ "ID""NAME""TAG" ],
  1351.     match: {
  1352.         ID: /#((?:[/w/u0128-/uFFFF_-]|//.)+)/,
  1353.         CLASS: //.((?:[/w/u0128-/uFFFF_-]|//.)+)/,
  1354.         NAME: //[name=((?:[/w/u0128-/uFFFF_-]|//.)+)/]/,
  1355.         ATTR: //[((?:[/w/u0128-/uFFFF_-]|//.)+)/s*(?:(/S{0,1}=)/s*(['"]*)(.*?)/3|)/]/,
  1356.         TAG: /^((?:[/w/u0128-/uFFFF/*_-]|//.)+)/,
  1357.         CHILD: /:(only|nth|last|first)-child/(?(even|odd|[/dn+-]*)/)?/,
  1358.         POS: /:(nth|eq|gt|lt|first|last|even|odd)/(?(/d*)/)?(?:[^-]|$)/,
  1359.         PSEUDO: /:((?:[/w/u0128-/uFFFF_-]|//.)+)(?:/((['"]*)((?:/([^/)]+/)|[^/2/(/)]*)+)/2/))?/
  1360.     },
  1361.     attrMap: {
  1362.         "class""className"
  1363.     },
  1364.     relative: {
  1365.         "+"function(checkSet, part){
  1366.             for ( var i = 0, l = checkSet.length; i < l; i++ ) {
  1367.                 var elem = checkSet[i];
  1368.                 if ( elem ) {
  1369.                     var cur = elem.previousSibling;
  1370.                     while ( cur && cur.nodeType !== 1 ) {
  1371.                         cur = cur.previousSibling;
  1372.                     }
  1373.                     checkSet[i] = typeof part === "string" ?
  1374.                         cur || false :
  1375.                         cur === part;
  1376.                 }
  1377.             }
  1378.             if ( typeof part === "string" ) {
  1379.                 Sizzle.filter( part, checkSet, true );
  1380.             }
  1381.         },
  1382.         ">"function(checkSet, part){
  1383.             if ( typeof part === "string" && !//W/.test(part) ) {
  1384.                 part = part.toUpperCase();
  1385.                 for ( var i = 0, l = checkSet.length; i < l; i++ ) {
  1386.                     var elem = checkSet[i];
  1387.                     if ( elem ) {
  1388.                         var parent = elem.parentNode;
  1389.                         checkSet[i] = parent.nodeName === part ? parent : false;
  1390.                     }
  1391.                 }
  1392.             } else {
  1393.                 for ( var i = 0, l = checkSet.length; i < l; i++ ) {
  1394.                     var elem = checkSet[i];
  1395.                     if ( elem ) {
  1396.                         checkSet[i] = typeof part === "string" ?
  1397.                             elem.parentNode :
  1398.                             elem.parentNode === part;
  1399.                     }
  1400.                 }
  1401.                 if ( typeof part === "string" ) {
  1402.                     Sizzle.filter( part, checkSet, true );
  1403.                 }
  1404.             }
  1405.         },
  1406.         ""function(checkSet, part){
  1407.             var doneName = "done" + (done++), checkFn = dirCheck;
  1408.             if ( !part.match(//W/) ) {
  1409.                 var nodeCheck = part = part.toUpperCase();
  1410.                 checkFn = dirNodeCheck;
  1411.             }
  1412.             checkFn("parentNode", part, doneName, checkSet, nodeCheck);
  1413.         },
  1414.         "~"function(checkSet, part){
  1415.             var doneName = "done" + (done++), checkFn = dirCheck;
  1416.             if ( typeof part === "string" && !part.match(//W/) ) {
  1417.                 var nodeCheck = part = part.toUpperCase();
  1418.                 checkFn = dirNodeCheck;
  1419.             }
  1420.             checkFn("previousSibling", part, doneName, checkSet, nodeCheck);
  1421.         }
  1422.     },
  1423.     find: {
  1424.         ID: function(match, context){
  1425.             if ( context.getElementById ) {
  1426.                 var m = context.getElementById(match[1]);
  1427.                 return m ? [m] : [];
  1428.             }
  1429.         },
  1430.         NAME: function(match, context){
  1431.             return context.getElementsByName(match[1]);
  1432.         },
  1433.         TAG: function(match, context){
  1434.             return context.getElementsByTagName(match[1]);
  1435.         }
  1436.     },
  1437.     preFilter: {
  1438.         CLASS: function(match){
  1439.             return new RegExp( "(?:^|//s)" + match[1] + "(?://s|$)" );
  1440.         },
  1441.         ID: function(match){
  1442.             return match[1];
  1443.         },
  1444.         TAG: function(match){
  1445.             return match[1].toUpperCase();
  1446.         },
  1447.         CHILD: function(match){
  1448.             if ( match[1] == "nth" ) {
  1449.                 // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
  1450.                 var test = /(-?)(/d*)n((?:/+|-)?/d*)/.exec(
  1451.                     match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
  1452.                     !//D/.test( match[2] ) && "0n+" + match[2] || match[2]);
  1453.                 // calculate the numbers (first)n+(last) including if they are negative
  1454.                 match[2] = (test[1] + (test[2] || 1)) - 0;
  1455.                 match[3] = test[3] - 0;
  1456.             }
  1457.             // TODO: Move to normal caching system
  1458.             match[0] = "done" + (done++);
  1459.             return match;
  1460.         },
  1461.         ATTR: function(match){
  1462.             var name = match[1];
  1463.             
  1464.             if ( Expr.attrMap[name] ) {
  1465.                 match[1] = Expr.attrMap[name];
  1466.             }
  1467.             if ( match[2] === "~=" ) {
  1468.                 match[4] = " " + match[4] + " ";
  1469.             }
  1470.             return match;
  1471.         },
  1472.         PSEUDO: function(match){
  1473.             if ( match[1] === "not" ) {
  1474.                 match[3] = match[3].split(//s*,/s*/);
  1475.             }
  1476.             
  1477.             return match;
  1478.         },
  1479.         POS: function(match){
  1480.             match.unshift( true );
  1481.             return match;
  1482.         }
  1483.     },
  1484.     filters: {
  1485.         enabled: function(elem){
  1486.             return elem.disabled === false && elem.type !== "hidden";
  1487.         },
  1488.         disabled: function(elem){
  1489.             return elem.disabled === true;
  1490.         },
  1491.         checked: function(elem){
  1492.             return elem.checked === true;
  1493.         },
  1494.         selected: function(elem){
  1495.             // Accessing this property makes selected-by-default
  1496.             // options in Safari work properly
  1497.             elem.parentNode.selectedIndex;
  1498.             return elem.selected === true;
  1499.         },
  1500.         parent: function(elem){
  1501.             return !!elem.firstChild;
  1502.         },
  1503.         empty: function(elem){
  1504.             return !elem.firstChild;
  1505.         },
  1506.         has: function(elem, i, match){
  1507.             return !!Sizzle( match[3], elem ).length;
  1508.         },
  1509.         header: function(elem){
  1510.             return /h/d/i.test( elem.nodeName );
  1511.         },
  1512.         text: function(elem){
  1513.             return "text" === elem.type;
  1514.         },
  1515.         radio: function(elem){
  1516.             return "radio" === elem.type;
  1517.         },
  1518.         checkbox: function(elem){
  1519.             return "checkbox" === elem.type;
  1520.         },
  1521.         file: function(elem){
  1522.             return "file" === elem.type;
  1523.         },
  1524.         password: function(elem){
  1525.             return "password" === elem.type;
  1526.         },
  1527.         submit: function(elem){
  1528.             return "submit" === elem.type;
  1529.         },
  1530.         image: function(elem){
  1531.             return "image" === elem.type;
  1532.         },
  1533.         reset: function(elem){
  1534.             return "reset" === elem.type;
  1535.         },
  1536.         button: function(elem){
  1537.             return "button" === elem.type || elem.nodeName.toUpperCase() === "BUTTON";
  1538.         },
  1539.         input: function(elem){
  1540.             return /input|select|textarea|button/i.test(elem.nodeName);
  1541.         }
  1542.     },
  1543.     setFilters: {
  1544.         first: function(elem, i){
  1545.             return i === 0;
  1546.         },
  1547.         last: function(elem, i, match, array){
  1548.             return i === array.length - 1;
  1549.         },
  1550.         even: function(elem, i){
  1551.             return i % 2 === 0;
  1552.         },
  1553.         odd: function(elem, i){
  1554.             return i % 2 === 1;
  1555.         },
  1556.         lt: function(elem, i, match){
  1557.             return i < match[3] - 0;
  1558.         },
  1559.         gt: function(elem, i, match){
  1560.             return i > match[3] - 0;
  1561.         },
  1562.         nth: function(elem, i, match){
  1563.             return match[3] - 0 == i;
  1564.         },
  1565.         eq: function(elem, i, match){
  1566.             return match[3] - 0 == i;
  1567.         }
  1568.     },
  1569.     filter: {
  1570.         CHILD: function(elem, match){
  1571.             var type = match[1], parent = elem.parentNode;
  1572.             var doneName = match[0];
  1573.             
  1574.             if ( parent && !parent[ doneName ] ) {
  1575.                 var count = 1;
  1576.                 for ( var node = parent.firstChild; node; node = node.nextSibling ) {
  1577.                     if ( node.nodeType == 1 ) {
  1578.                         node.nodeIndex = count++;
  1579.                     }
  1580.                 }
  1581.                 parent[ doneName ] = count - 1;
  1582.             }
  1583.             if ( type == "first" ) {
  1584.                 return elem.nodeIndex == 1;
  1585.             } else if ( type == "last" ) {
  1586.                 return elem.nodeIndex == parent[ doneName ];
  1587.             } else if ( type == "only" ) {
  1588.                 return parent[ doneName ] == 1;
  1589.             } else if ( type == "nth" ) {
  1590.                 var add = false, first = match[2], last = match[3];
  1591.                 if ( first == 1 && last == 0 ) {
  1592.                     return true;
  1593.                 }
  1594.                 if ( first == 0 ) {
  1595.                     if ( elem.nodeIndex == last ) {
  1596.                         add = true;
  1597.                     }
  1598.                 } else if ( (elem.nodeIndex - last) % first == 0 && (elem.nodeIndex - last) / first >= 0 ) {
  1599.                     add = true;
  1600.                 }
  1601.                 return add;
  1602.             }
  1603.         },
  1604.         PSEUDO: function(elem, match, i, array){
  1605.             var name = match[1], filter = Expr.filters[ name ];
  1606.             if ( filter ) {
  1607.                 return filter( elem, i, match, array )
  1608.             } else if ( name === "contains" ) {
  1609.                 return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;
  1610.             } else if ( name === "not" ) {
  1611.                 var not = match[3];
  1612.                 for ( var i = 0, l = not.length; i < l; i++ ) {
  1613.                     if ( Sizzle.filter(not[i], [elem]).length > 0 ) {
  1614.                         return false;
  1615.                     }
  1616.                 }
  1617.                 return true;
  1618.             }
  1619.         },
  1620.         ID: function(elem, match){
  1621.             return elem.nodeType === 1 && elem.getAttribute("id") === match;
  1622.         },
  1623.         TAG: function(elem, match){
  1624.             return (match === "*" && elem.nodeType === 1) || elem.nodeName === match;
  1625.         },
  1626.         CLASS: function(elem, match){
  1627.             return match.test( elem.className );
  1628.         },
  1629.         ATTR: function(elem, match){
  1630.             var result = elem[ match[1] ] || elem.getAttribute( match[1] ), value = result + "", type = match[2], check = match[4];
  1631.             return result == null ?
  1632.                 false :
  1633.                 type === "=" ?
  1634.                 value === check :
  1635.                 type === "*=" ?
  1636.                 value.indexOf(check) >= 0 :
  1637.                 type === "~=" ?
  1638.                 (" " + value + " ").indexOf(check) >= 0 :
  1639.                 !match[4] ?
  1640.                 result :
  1641.                 type === "!=" ?
  1642.                 value != check :
  1643.                 type === "^=" ?
  1644.                 value.indexOf(check) === 0 :
  1645.                 type === "$=" ?
  1646.                 value.substr(value.length - check.length) === check :
  1647.                 type === "|=" ?
  1648.                 value === check || value.substr(0, check.length + 1) === check + "-" :
  1649.                 false;
  1650.         },
  1651.         POS: function(elem, match, i, array){
  1652.             var name = match[2], filter = Expr.setFilters[ name ];
  1653.             if ( filter ) {
  1654.                 return filter( elem, i, match, array );
  1655.             }
  1656.         }
  1657.     }
  1658. };
  1659. var makeArray = function(array, results) {
  1660.     array = Array.prototype.slice.call( array );
  1661.     if ( results ) {
  1662.         results.push.apply( results, array );
  1663.         return results;
  1664.     }
  1665.     
  1666.     return array;
  1667. };
  1668. // Perform a simple check to determine if the browser is capable of
  1669. // converting a NodeList to an array using builtin methods.
  1670. try {
  1671.     Array.prototype.slice.call( document.documentElement.childNodes );
  1672. // Provide a fallback method if it does not work
  1673. catch(e){
  1674.     makeArray = function(array, results) {
  1675.         var ret = results || [];
  1676.         if ( array instanceof Array ) {
  1677.             Array.prototype.push.apply( ret, array );
  1678.         } else {
  1679.             if ( typeof array.length === "number" ) {
  1680.                 for ( var i = 0, l = array.length; i < l; i++ ) {
  1681.                     ret.push( array[i] );
  1682.                 }
  1683.             } else {
  1684.                 for ( var i = 0; array[i]; i++ ) {
  1685.                     ret.push( array[i] );
  1686.                 }
  1687.             }
  1688.         }
  1689.         return ret;
  1690.     };
  1691. }
  1692. // Check to see if the browser returns elements by name when
  1693. // querying by getElementById (and provide a workaround)
  1694. (function(){
  1695.     // We're going to inject a fake input element with a specified name
  1696.     var form = document.createElement("form"),
  1697.         id = "script" + (new Date).getTime();
  1698.     form.innerHTML = "<input name='" + id + "'/>";
  1699.     // Inject it into the root element, check its status, and remove it quickly
  1700.     var root = document.documentElement;
  1701.     root.insertBefore( form, root.firstChild );
  1702.     // The workaround has to do additional checks after a getElementById
  1703.     // Which slows things down for other browsers (hence the branching)
  1704.     if ( !!document.getElementById( id ) ) {
  1705.         Expr.find.ID = function(match, context){
  1706.             if ( context.getElementById ) {
  1707.                 var m = context.getElementById(match[1]);
  1708.                 return m ? m.id === match[1] || m.getAttributeNode && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
  1709.             }
  1710.         };
  1711.         Expr.filter.ID = function(elem, match){
  1712.             var node = elem.getAttributeNode && elem.getAttributeNode("id");
  1713.             return elem.nodeType === 1 && node && node.nodeValue === match;
  1714.         };
  1715.     }
  1716.     root.removeChild( form );
  1717. })();
  1718. // Check to see if the browser returns only elements
  1719. // when doing getElementsByTagName("*")
  1720. (function(){
  1721.     // Create a fake element
  1722.     var div = document.createElement("div");
  1723.     div.appendChild( document.createComment("") );
  1724.     // Make sure no comments are found
  1725.     if ( div.getElementsByTagName("*").length > 0 ) {
  1726.         Expr.find.TAG = function(match, context){
  1727.             var results = context.getElementsByTagName(match[1]);
  1728.             // Filter out possible comments
  1729.             if ( match[1] === "*" ) {
  1730.                 var tmp = [];
  1731.                 for ( var i = 0; results[i]; i++ ) {
  1732.                     if ( results[i].nodeType === 1 ) {
  1733.                         tmp.push( results[i] );
  1734.                     }
  1735.                 }
  1736.                 results = tmp;
  1737.             }
  1738.             return results;
  1739.         };
  1740.     }
  1741. })();
  1742. if ( document.querySelectorAll ) (function(){
  1743.     var oldSizzle = Sizzle;
  1744.     
  1745.     Sizzle = function(query, context, extra){
  1746.         context = context || document;
  1747.         if ( context.nodeType === 9 ) {
  1748.             try {
  1749.                 return makeArray( context.querySelectorAll(query) );
  1750.             } catch(e){}
  1751.         }
  1752.         
  1753.         return oldSizzle(query, context, extra);
  1754.     };
  1755.     Sizzle.find = oldSizzle.find;
  1756.     Sizzle.filter = oldSizzle.filter;
  1757.     Sizzle.selectors = oldSizzle.selectors;
  1758. })();
  1759. if ( document.documentElement.getElementsByClassName ) {
  1760.     Expr.order.splice(1, 0, "CLASS");
  1761.     Expr.find.CLASS = function(match, context) {
  1762.         return context.getElementsByClassName(match[1]);
  1763.     };
  1764. }
  1765. function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck ) {
  1766.     for ( var i = 0, l = checkSet.length; i < l; i++ ) {
  1767.         var elem = checkSet[i];
  1768.         if ( elem ) {
  1769.             elem = elem[dir]
  1770.             var match = false;
  1771.             while ( elem && elem.nodeType ) {
  1772.                 var done = elem[doneName];
  1773.                 if ( done ) {
  1774.                     match = checkSet[ done ];
  1775.                     break;
  1776.                 }
  1777.                 if ( elem.nodeType === 1 )
  1778.                     elem[doneName] = i;
  1779.                 if ( elem.nodeName === cur ) {
  1780.                     match = elem;
  1781.                     break;
  1782.                 }
  1783.                 elem = elem[dir];
  1784.             }
  1785.             checkSet[i] = match;
  1786.         }
  1787.     }
  1788. }
  1789. function dirCheck( dir, cur, doneName, checkSet, nodeCheck ) {
  1790.     for ( var i = 0, l = checkSet.length; i < l; i++ ) {
  1791.         var elem = checkSet[i];
  1792.         if ( elem ) {
  1793.             elem = elem[dir]
  1794.             var match = false;
  1795.             while ( elem && elem.nodeType ) {
  1796.                 if ( elem[doneName] ) {
  1797.                     match = checkSet[ elem[doneName] ];
  1798.                     break;
  1799.                 }
  1800.                 if ( elem.nodeType === 1 ) {
  1801.                     elem[doneName] = i;
  1802.                     if ( typeof cur !== "string" ) {
  1803.                         if ( elem === cur ) {
  1804.                             match = true;
  1805.                             break;
  1806.                         }
  1807.                     } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
  1808.                         match = elem;
  1809.                         break;
  1810.                     }
  1811.                 }
  1812.                 elem = elem[dir];
  1813.             }
  1814.             checkSet[i] = match;
  1815.         }
  1816.     }
  1817. }
  1818. var contains = document.compareDocumentPosition ?  function(a, b){
  1819.     return a.compareDocumentPosition(b) & 16;
  1820. } : function(a, b){
  1821.     return a !== b && a.contains(b);
  1822. };
  1823. // EXPOSE
  1824. jQuery.find = Sizzle;
  1825. jQuery.filter = Sizzle.filter;
  1826. jQuery.expr = Sizzle.selectors;
  1827. jQuery.expr[":"] = jQuery.expr.filters;
  1828. Sizzle.selectors.filters.hidden = function(elem){
  1829.     return "hidden" === elem.type ||
  1830.         jQuery.css(elem, "display") === "none" ||
  1831.         jQuery.css(elem, "visibility") === "hidden";
  1832. };
  1833. Sizzle.selectors.filters.visible = function(elem){
  1834.     return "hidden" !== elem.type &&
  1835.         jQuery.css(elem, "display") !== "none" &&
  1836.         jQuery.css(elem, "visibility") !== "hidden";
  1837. };
  1838. jQuery.multiFilter = function( expr, elems, not ) {
  1839.     if ( not ) {
  1840.         return jQuery.multiFilter( ":not(" + expr + ")", elems );
  1841.     }
  1842.     var exprs = expr.split(//s*,/s*/), cur = [];
  1843.     for ( var i = 0; i < exprs.length; i++ ) {
  1844.         cur = jQuery.merge( cur, jQuery.filter( exprs[i], elems ) );
  1845.     }
  1846.     return cur;
  1847. };
  1848. jQuery.dir = function( elem, dir ){
  1849.     var matched = [], cur = elem[dir];
  1850.     while ( cur && cur != document ) {
  1851.         if ( cur.nodeType == 1 )
  1852.             matched.push( cur );
  1853.         cur = cur[dir];
  1854.     }
  1855.     return matched;
  1856. };
  1857. jQuery.nth = function(cur, result, dir, elem){
  1858.     result = result || 1;
  1859.     var num = 0;
  1860.     for ( ; cur; cur = cur[dir] )
  1861.         if ( cur.nodeType == 1 && ++num == result )
  1862.             break;
  1863.     return cur;
  1864. };
  1865. jQuery.sibling = function(n, elem){
  1866.     var r = [];
  1867.     for ( ; n; n = n.nextSibling ) {
  1868.         if ( n.nodeType == 1 && n != elem )
  1869.             r.push( n );
  1870.     }
  1871.     return r;
  1872. };
  1873. return;
  1874. window.Sizzle = Sizzle;
  1875. })();
  1876. /*
  1877.  * A number of helper functions used for managing events.
  1878.  * Many of the ideas behind this code originated from
  1879.  * Dean Edwards' addEvent library.
  1880.  */
  1881. jQuery.event = {
  1882.     // Bind an event to an element
  1883.     // Original by Dean Edwards
  1884.     add: function(elem, types, handler, data) {
  1885.         if ( elem.nodeType == 3 || elem.nodeType == 8 )
  1886.             return;
  1887.         // For whatever reason, IE has trouble passing the window object
  1888.         // around, causing it to be cloned in the process
  1889.         if ( elem.setInterval && elem != window )
  1890.             elem = window;
  1891.         // Make sure that the function being executed has a unique ID
  1892.         if ( !handler.guid )
  1893.             handler.guid = this.guid++;
  1894.         // if data is passed, bind to handler
  1895.         if ( data !== undefined ) {
  1896.             // Create temporary function pointer to original handler
  1897.             var fn = handler;
  1898.             // Create unique handler function, wrapped around original handler
  1899.             handler = this.proxy( fn, function() {
  1900.                 // Pass arguments and context to original handler
  1901.                 return fn.apply(this, arguments);
  1902.             });
  1903.             // Store data in unique handler
  1904.             handler.data = data;
  1905.         }
  1906.         // Init the element's event structure
  1907.         var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
  1908.             handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle"function(){
  1909.                 // Handle the second event of a trigger and when
  1910.                 // an event is called after a page has unloaded
  1911.                 return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
  1912.                     jQuery.event.handle.apply(arguments.callee.elem, arguments) :
  1913.                     undefined;
  1914.             });
  1915.         // Add elem as a property of the handle function
  1916.         // This is to prevent a memory leak with non-native
  1917.         // event in IE.
  1918.         handle.elem = elem;
  1919.         // Handle multiple events separated by a space
  1920.         // jQuery(...).bind("mouseover mouseout", fn);
  1921.         jQuery.each(types.split(//s+/), function(index, type) {
  1922.             // Namespaced event handlers
  1923.             var namespaces = type.split(".");
  1924.             type = namespaces.shift();
  1925.             handler.type = namespaces.slice().sort().join(".");
  1926.             // Get the current list of functions bound to this event
  1927.             var handlers = events[type];
  1928.             
  1929.             if ( jQuery.event.specialAll[type] )
  1930.                 jQuery.event.specialAll[type].setup.call(elem, data, namespaces);
  1931.             // Init the event handler queue
  1932.             if (!handlers) {
  1933.                 handlers = events[type] = {};
  1934.                 // Check for a special event handler
  1935.                 // Only use addEventListener/attachEvent if the special
  1936.                 // events handler returns false
  1937.                 if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem, data, namespaces) === false ) {
  1938.                     // Bind the global event handler to the element
  1939.                     if (elem.addEventListener)
  1940.                         elem.addEventListener(type, handle, false);
  1941.                     else if (elem.attachEvent)
  1942.                         elem.attachEvent("on" + type, handle);
  1943.                 }
  1944.             }
  1945.             // Add the function to the element's handler list
  1946.             handlers[handler.guid] = handler;
  1947.             // Keep track of which events have been used, for global triggering
  1948.             jQuery.event.global[type] = true;
  1949.         });
  1950.         // Nullify elem to prevent memory leaks in IE
  1951.         elem = null;
  1952.     },
  1953.     guid: 1,
  1954.     global: {},
  1955.     // Detach an event or set of events from an element
  1956.     remove: function(elem, types, handler) {
  1957.         // don't do events on text and comment nodes
  1958.         if ( elem.nodeType == 3 || elem.nodeType == 8 )
  1959.             return;
  1960.         var events = jQuery.data(elem, "events"), ret, index;
  1961.         if ( events ) {
  1962.             // Unbind all events for the element
  1963.             if ( types === undefined || (typeof types === "string" && types.charAt(0) == ".") )
  1964.                 for ( var type in events )
  1965.                     this.remove( elem, type + (types || "") );
  1966.             else {
  1967.                 // types is actually an event object here
  1968.                 if ( types.type ) {
  1969.                     handler = types.handler;
  1970.                     types = types.type;
  1971.                 }
  1972.                 // Handle multiple events seperated by a space
  1973.                 // jQuery(...).unbind("mouseover mouseout", fn);
  1974.                 jQuery.each(types.split(//s+/), function(index, type){
  1975.                     // Namespaced event handlers
  1976.                     var namespaces = type.split(".");
  1977.                     type = namespaces.shift();
  1978.                     var namespace = RegExp("(^|//.)" + namespaces.slice().sort().join(".*//.") + "(//.|$)");
  1979.                     if ( events[type] ) {
  1980.                         // remove the given handler for the given type
  1981.                         if ( handler )
  1982.                             delete events[type][handler.guid];
  1983.                         // remove all handlers for the given type
  1984.                         else
  1985.                             for ( handler in events[type] )
  1986.                                 // Handle the removal of namespaced events
  1987.                                 if ( namespace.test(events[type][handler].type) )
  1988.                                     delete events[type][handler];
  1989.                                     
  1990.                         if ( jQuery.event.specialAll[type] )
  1991.                             jQuery.event.specialAll[type].teardown.call(elem, namespaces);
  1992.                         // remove generic event handler if no more handlers exist
  1993.                         for ( ret in events[type] ) break;
  1994.                         if ( !ret ) {
  1995.                             if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem, namespaces) === false ) {
  1996.                                 if (elem.removeEventListener)
  1997.                                     elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
  1998.                                 else if (elem.detachEvent)
  1999.                                     elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
  2000.                             }
  2001.                             ret = null;
  2002.                             delete events[type];
  2003.                         }
  2004.                     }
  2005.                 });
  2006.             }
  2007.             // Remove the expando if it's no longer used
  2008.             for ( ret in events ) break;
  2009.             if ( !ret ) {
  2010.                 var handle = jQuery.data( elem, "handle" );
  2011.                 if ( handle ) handle.elem = null;
  2012.                 jQuery.removeData( elem, "events" );
  2013.                 jQuery.removeData( elem, "handle" );
  2014.             }
  2015.         }
  2016.     },
  2017.     trigger: function(type, data, elem, donative, extra, dohandlers) {
  2018.         // Clone the incoming data, if any
  2019.         data = jQuery.makeArray(data);
  2020.         if ( type.indexOf("!") >= 0 ) {
  2021.             type = type.slice(0, -1);
  2022.             var exclusive = true;
  2023.         }
  2024.         // Handle a global trigger
  2025.         if ( !elem ) {
  2026.             // Only trigger if we've ever bound an event for it
  2027.             if ( this.global[type] )
  2028.                 jQuery.each( jQuery.cache, function(){
  2029.                     if ( this.events && this.events[type] )
  2030.                         jQuery.event.trigger( type, data, this.handle.elem, false );
  2031.                 });
  2032.         // Handle triggering a single element
  2033.         } else {
  2034.             // don't do events on text and comment nodes
  2035.             if ( elem.nodeType == 3 || elem.nodeType == 8 )
  2036.                 return undefined;
  2037.             var val, ret, fn = jQuery.isFunction( elem[ type ] || null ),
  2038.                 // Check to see if we need to provide a fake event, or not
  2039.                 event = !data[0] || !data[0].preventDefault;
  2040.             // Pass along a fake event
  2041.             if ( event ) {
  2042.                 data.unshift({
  2043.                     type: type,
  2044.                     target: elem,
  2045.                     preventDefault: function(){},
  2046.                     stopPropagation: function(){},
  2047.                     stopImmediatePropagation:stopImmediatePropagation,
  2048.                     timeStamp: now()
  2049.                 });
  2050.                 data[0][expando] = true// no need to fix fake event
  2051.             }
  2052.             // Enforce the right trigger type
  2053.             data[0].type = type;
  2054.             if ( exclusive )
  2055.                 data[0].exclusive = true;
  2056.             if ( dohandlers !== false ) {
  2057.                 // Trigger the event, it is assumed that "handle" is a function
  2058.                 var handle = jQuery.data(elem, "handle");
  2059.                 if ( handle )
  2060.                     val = handle.apply( elem, data );
  2061.                 // Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
  2062.                 if ( (!fn || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
  2063.                     val = false;
  2064.             }
  2065.             if ( donative !== false && val !== false ) {
  2066.                 var parent = elem.parentNode || elem.ownerDocument;
  2067.                 if ( parent )
  2068.                     jQuery.event.trigger(type, data, parent, donative);
  2069.             }
  2070.             // Extra functions don't get the custom event object
  2071.             if ( event )
  2072.                 data.shift();
  2073.             // Handle triggering of extra function
  2074.             if ( extra && jQuery.isFunction( extra ) ) {
  2075.                 // call the extra function and tack the current return value on the end for possible inspection
  2076.                 ret = extra.apply( elem, val == null ? data : data.concat( val ) );
  2077.                 // if anything is returned, give it precedence and have it overwrite the previous value
  2078.                 if ( ret !== undefined )
  2079.                     val = ret;
  2080.             }
  2081.             // Trigger the native events (except for clicks on links)
  2082.             if ( fn && donative !== false && val !== false && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
  2083.                 this.triggered = true;
  2084.                 try {
  2085.                     elem[ type ]();
  2086.                 // prevent IE from throwing an error for some hidden elements
  2087.                 } catch (e) {}
  2088.             }
  2089.             this.triggered = false;
  2090.         }
  2091.         return val;
  2092.     },
  2093.     handle: function(event) {
  2094.         // returned undefined or false
  2095.         var val, ret, all, handlers;
  2096.         event = arguments[0] = jQuery.event.fix( event || window.event );
  2097.         // Namespaced event handlers
  2098.         var namespaces = event.type.split(".");
  2099.         event.type = namespaces.shift();
  2100.         // Cache this now, all = true means, any handler
  2101.         all = !namespaces.length && !event.exclusive;
  2102.         
  2103.         var namespace = RegExp("(^|//.)" + namespaces.slice().sort().join(".*//.") + "(//.|$)");
  2104.         handlers = ( jQuery.data(this"events") || {} )[event.type];
  2105.         for ( var j in handlers ) {
  2106.             var handler = handlers[j];
  2107.             // Filter the functions by class
  2108.             if ( all || namespace.test(handler.type) ) {
  2109.                 // Pass in a reference to the handler function itself
  2110.                 // So that we can later remove it
  2111.                 event.handler = handler;
  2112.                 event.data = handler.data;
  2113.                 ret = handler.apply( this, arguments );
  2114.                 if ( val !== false )
  2115.                     val = ret;
  2116.                 if ( ret === false ) {
  2117.                     event.preventDefault();
  2118.                     event.stopPropagation();
  2119.                 }
  2120.                 if( event._sip )
  2121.                     break;
  2122.             }
  2123.         }
  2124.         return val;
  2125.     },
  2126.     props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" "),
  2127.     fix: function(event) {
  2128.         if ( event[expando] )
  2129.             return event;
  2130.         // store a copy of the original event object
  2131.         // and "clone" to set read-only properties
  2132.         var originalEvent = event;
  2133.         event = { originalEvent: originalEvent };
  2134.         for ( var i = this.props.length, prop; i; ){
  2135.             prop = this.props[ --i ];
  2136.             event[ prop ] = originalEvent[ prop ];
  2137.         }
  2138.         // Mark it as fixed
  2139.         event[expando] = true;
  2140.         // add preventDefault and stopPropagation since
  2141.         // they will not work on the clone
  2142.         event.preventDefault = function() {
  2143.             // if preventDefault exists run it on the original event
  2144.             if (originalEvent.preventDefault)
  2145.                 originalEvent.preventDefault();
  2146.             // otherwise set the returnValue property of the original event to false (IE)
  2147.             originalEvent.returnValue = false;
  2148.         };
  2149.         event.stopPropagation = function() {
  2150.             // if stopPropagation exists run it on the original event
  2151.             if (originalEvent.stopPropagation)
  2152.                 originalEvent.stopPropagation();
  2153.             // otherwise set the cancelBubble property of the original event to true (IE)
  2154.             originalEvent.cancelBubble = true;
  2155.         };
  2156.         event.stopImmediatePropagation = stopImmediatePropagation;
  2157.         // Fix timeStamp
  2158.         event.timeStamp = event.timeStamp || now();
  2159.         // Fix target property, if necessary
  2160.         if ( !event.target )
  2161.             event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
  2162.         // check if target is a textnode (safari)
  2163.         if ( event.target.nodeType == 3 )
  2164.             event.target = event.target.parentNode;
  2165.         // Add relatedTarget, if necessary
  2166.         if ( !event.relatedTarget && event.fromElement )
  2167.             event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;
  2168.         // Calculate pageX/Y if missing and clientX/Y available
  2169.         if ( event.pageX == null && event.clientX != null ) {
  2170.             var doc = document.documentElement, body = document.body;
  2171.             event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
  2172.             event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
  2173.         }
  2174.         // Add which for key events
  2175.         if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
  2176.             event.which = event.charCode || event.keyCode;
  2177.         // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
  2178.         if ( !event.metaKey && event.ctrlKey )
  2179.             event.metaKey = event.ctrlKey;
  2180.         // Add which for click: 1 == left; 2 == middle; 3 == right
  2181.         // Note: button is not normalized, so don't use it
  2182.         if ( !event.which && event.button )
  2183.             event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
  2184.         return event;
  2185.     },
  2186.     proxy: function( fn, proxy ){
  2187.         // Set the guid of unique handler to the same of original handler, so it can be removed
  2188.         proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
  2189.         // So proxy can be declared as an argument
  2190.         return proxy;
  2191.     },
  2192.     special: {
  2193.         ready: {
  2194.             // Make sure the ready event is setup
  2195.             setup: bindReady,
  2196.             teardown: function() {}
  2197.         }
  2198.     },
  2199.     
  2200.     specialAll: {
  2201.         live: {
  2202.             setup: function( selector, namespaces ){
  2203.                 jQuery.event.add( this, namespaces[0], liveHandler );
  2204.             },
  2205.             teardown:  function( namespaces ){
  2206.                 if ( namespaces.length ) {
  2207.                     var remove = 0, name = RegExp("(^|//.)" + namespaces[0] + "(//.|$)");
  2208.                     
  2209.                     jQuery.each( (jQuery.data(this"events").live || {}), function(){
  2210.                         if ( name.test(this.type) )
  2211.                             remove++;
  2212.                     });
  2213.                     
  2214.                     if ( remove <= 1 )
  2215.                         jQuery.event.remove( this, namespaces[0], liveHandler );
  2216.                 }
  2217.             }
  2218.         }
  2219.     }
  2220. };
  2221. function stopImmediatePropagation(){
  2222.     this._sip = 1;
  2223.     this.stopPropagation();
  2224. }
  2225. // Checks if an event happened on an element within another element
  2226. // Used in jQuery.event.special.mouseenter and mouseleave handlers
  2227. var withinElement = function(event) {
  2228.     // Check if mouse(over|out) are still within the same parent element
  2229.     var parent = event.relatedTarget;
  2230.     // Traverse up the tree
  2231.     while ( parent && parent != this )
  2232.         try { parent = parent.parentNode; }
  2233.         catch(e) { parent = this; }
  2234.     
  2235.     if( parent != this ){
  2236.         // set the correct event type
  2237.         event.type = event.data;
  2238.         // handle event if we actually just moused on to a non sub-element
  2239.         jQuery.event.handle.apply( this, arguments );
  2240.     }
  2241. };
  2242.     
  2243. jQuery.each({ 
  2244.     mouseover: 'mouseenter'
  2245.     mouseout: 'mouseleave'
  2246. }, function( orig, fix ){
  2247.     jQuery.event.special[ fix ] = {
  2248.         setup: function(){
  2249.             jQuery.event.add( this, orig, withinElement, fix );
  2250.         },
  2251.         teardown: function(){
  2252.             jQuery.event.remove( this, orig, withinElement );
  2253.         }
  2254.     };             
  2255. });
  2256. jQuery.fn.extend({
  2257.     bind: function( type, data, fn ) {
  2258.         return type == "unload" ? this.one(type, data, fn) : this.each(function(){
  2259.             jQuery.event.add( this, type, fn || data, fn && data );
  2260.         });
  2261.     },
  2262.     one: function( type, data, fn ) {
  2263.         var one = jQuery.event.proxy( fn || data, function(event) {
  2264.             jQuery(this).unbind(event, one);
  2265.             return (fn || data).apply( this, arguments );
  2266.         });
  2267.         return this.each(function(){
  2268.             jQuery.event.add( this, type, one, fn && data);
  2269.         });
  2270.     },
  2271.     unbind: function( type, fn ) {
  2272.         return this.each(function(){
  2273.             jQuery.event.remove( this, type, fn );
  2274.         });
  2275.     },
  2276.     trigger: function( type, data, fn ) {
  2277.         return this.each(function(){
  2278.             jQuery.event.trigger( type, data, thistrue, fn );
  2279.         });
  2280.     },
  2281.     triggerHandler: function( type, data, fn ) {
  2282.         return this[0] && jQuery.event.trigger( type, data, this[0], false, fn );
  2283.     },
  2284.     toggle: function( fn ) {
  2285.         // Save reference to arguments for access in closure
  2286.         var args = arguments, i = 1;
  2287.         // link all the functions, so any of them can unbind this click handler
  2288.         while( i < args.length )
  2289.             jQuery.event.proxy( fn, args[i++] );
  2290.         return this.click( jQuery.event.proxy( fn, function(event) {
  2291.             // Figure out which function to execute
  2292.             this.lastToggle = ( this.lastToggle || 0 ) % i;
  2293.             // Make sure that clicks stop
  2294.             event.preventDefault();
  2295.             // and execute the function
  2296.             return args[ this.lastToggle++ ].apply( this, arguments ) || false;
  2297.         }));
  2298.     },
  2299.     hover: function(fnOver, fnOut) {
  2300.         return this.mouseenter(fnOver).mouseleave(fnOut);
  2301.     },
  2302.     ready: function(fn) {
  2303.         // Attach the listeners
  2304.         bindReady();
  2305.         // If the DOM is already ready
  2306.         if ( jQuery.isReady )
  2307.             // Execute the function immediately
  2308.             fn.call( document, jQuery );
  2309.         // Otherwise, remember the function for later
  2310.         else
  2311.             // Add the function to the wait list
  2312.             jQuery.readyList.push( function() { return fn.call(this, jQuery); } );
  2313.         return this;
  2314.     },
  2315.     
  2316.     live: function( type, fn ){
  2317.         jQuery(document).bind( liveConvert(type, this.selector), this.selector, fn );
  2318.         return this;
  2319.     },
  2320.     
  2321.     die: function( type, fn ){
  2322.         jQuery(document).unbind( liveConvert(type, this.selector), fn );
  2323.         return this;
  2324.     }
  2325. });
  2326. function liveHandler( event ){
  2327.     var check = RegExp("(^|//.)" + event.type + "(//.|$)");
  2328.     jQuery.each(jQuery.data(this"events").live || [], function(i, fn){
  2329.         if ( check.test(fn.type) ) {
  2330.             var elem = jQuery(event.target).closest(fn.data)[0];
  2331.             if ( elem )
  2332.                 jQuery.event.trigger( event.type, fn.data, elem, false, fn, false );
  2333.         }
  2334.     });
  2335. }
  2336. function liveConvert(type, selector){
  2337.     return ["live", type, selector.replace(//./g, "_")].join(".");
  2338. }
  2339. jQuery.extend({
  2340.     isReady: false,
  2341.     readyList: [],
  2342.     // Handle when the DOM is ready
  2343.     ready: function() {
  2344.         // Make sure that the DOM is not already loaded
  2345.         if ( !jQuery.isReady ) {
  2346.             // Remember that the DOM is ready
  2347.             jQuery.isReady = true;
  2348.             // If there are functions bound, to execute
  2349.             if ( jQuery.readyList ) {
  2350.                 // Execute all of them
  2351.                 jQuery.each( jQuery.readyList, function(){
  2352.                     this.call( document );
  2353.                 });
  2354.                 // Reset the list of functions
  2355.                 jQuery.readyList = null;
  2356.             }
  2357.             // Trigger any bound ready events
  2358.             jQuery(document).triggerHandler("ready");
  2359.         }
  2360.     }
  2361. });
  2362. var readyBound = false;
  2363. function bindReady(){
  2364.     if ( readyBound ) return;
  2365.     readyBound = true;
  2366.     // Mozilla, Opera and webkit nightlies currently support this event
  2367.     if ( document.addEventListener ) {
  2368.         // Use the handy event callback
  2369.         document.addEventListener( "DOMContentLoaded"function(){
  2370.             document.removeEventListener( "DOMContentLoaded", arguments.callee, false );
  2371.             jQuery.ready();
  2372.         }, false );
  2373.     // If IE event model is used
  2374.     } else if ( document.attachEvent ) {
  2375.         // ensure firing before onload,
  2376.         // maybe late but safe also for iframes
  2377.         document.attachEvent("onreadystatechange"function(){
  2378.             if ( document.readyState === "complete" ) {
  2379.                 document.detachEvent( "onreadystatechange", arguments.callee );
  2380.                 jQuery.ready();
  2381.             }
  2382.         });
  2383.         // If IE and not an iframe
  2384.         // continually check to see if the document is ready
  2385.         if ( document.documentElement.doScroll && !window.frameElement ) (function(){
  2386.             if ( jQuery.isReady ) return;
  2387.             try {
  2388.                 // If IE is used, use the trick by Diego Perini
  2389.                 // http://javascript.nwbox.com/IEContentLoaded/
  2390.                 document.documentElement.doScroll("left");
  2391.             } catch( error ) {
  2392.                 setTimeout( arguments.callee, 0 );
  2393.                 return;
  2394.             }
  2395.             // and execute any waiting functions
  2396.             jQuery.ready();
  2397.         })();
  2398.     }
  2399.     // A fallback to window.onload, that will always work
  2400.     jQuery.event.add( window, "load", jQuery.ready );
  2401. }
  2402. jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
  2403.     "mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
  2404.     "change,select,submit,keydown,keypress,keyup,error").split(","), function(i, name){
  2405.     // Handle event binding
  2406.     jQuery.fn[name] = function(fn){
  2407.         return fn ? this.bind(name, fn) : this.trigger(name);
  2408.     };
  2409. });
  2410. // Prevent memory leaks in IE
  2411. // And prevent errors on refresh with events like mouseover in other browsers
  2412. // Window isn't included so as not to unbind existing unload events
  2413. jQuery( window ).bind( 'unload'function(){ 
  2414.     for ( var id in jQuery.cache )
  2415.         // Skip the window
  2416.         if ( id != 1 && jQuery.cache[ id ].handle )
  2417.             jQuery.event.remove( jQuery.cache[ id ].handle.elem );
  2418. }); 
  2419. jQuery.fn.extend({
  2420.     // Keep a copy of the old load
  2421.     _load: jQuery.fn.load,
  2422.     load: function( url, params, callback ) {
  2423.         if ( typeof url !== "string" )
  2424.             return this._load( url );
  2425.         var off = url.indexOf(" ");
  2426.         if ( off >= 0 ) {
  2427.             var selector = url.slice(off, url.length);
  2428.             url = url.slice(0, off);
  2429.         }
  2430.         // Default to a GET request
  2431.         var type = "GET";
  2432.         // If the second parameter was provided
  2433.         if ( params )
  2434.             // If it's a function
  2435.             if ( jQuery.isFunction( params ) ) {
  2436.                 // We assume that it's the callback
  2437.                 callback = params;
  2438.                 params = null;
  2439.             // Otherwise, build a param string
  2440.             } else iftypeof params === "object" ) {
  2441.                 params = jQuery.param( params );
  2442.                 type = "POST";
  2443.             }
  2444.         var self = this;
  2445.         // Request the remote document
  2446.         jQuery.ajax({
  2447.             url: url,
  2448.             type: type,
  2449.             dataType: "html",
  2450.             data: params,
  2451.             complete: function(res, status){
  2452.                 // If successful, inject the HTML into all the matched elements
  2453.                 if ( status == "success" || status == "notmodified" )
  2454.                     // See if a selector was specified
  2455.                     self.html( selector ?
  2456.                         // Create a dummy div to hold the results
  2457.                         jQuery("<div/>")
  2458.                             // inject the contents of the document in, removing the scripts
  2459.                             // to avoid any 'Permission Denied' errors in IE
  2460.                             .append(res.responseText.replace(/<script(.|/s)*?//script>/g, ""))
  2461.                             // Locate the specified elements
  2462.                             .find(selector) :
  2463.                         // If not, just inject the full result
  2464.                         res.responseText );
  2465.                 if( callback )
  2466.                     self.each( callback, [res.responseText, status, res] );
  2467.             }
  2468.         });
  2469.         return this;
  2470.     },
  2471.     serialize: function() {
  2472.         return jQuery.param(this.serializeArray());
  2473.     },
  2474.     serializeArray: function() {
  2475.         return this.map(function(){
  2476.             return this.elements ? jQuery.makeArray(this.elements) : this;
  2477.         })
  2478.         .filter(function(){
  2479.             return this.name && !this.disabled &&
  2480.                 (this.checked || /select|textarea/i.test(this.nodeName) ||
  2481.                     /text|hidden|password/i.test(this.type));
  2482.         })
  2483.         .map(function(i, elem){
  2484.             var val = jQuery(this).val();
  2485.             return val == null ? null :
  2486.                 jQuery.isArray(val) ?
  2487.                     jQuery.map( val, function(val, i){
  2488.                         return {name: elem.name, value: val};
  2489.                     }) :
  2490.                     {name: elem.name, value: val};
  2491.         }).get();
  2492.     }
  2493. });
  2494. // Attach a bunch of functions for handling common AJAX events
  2495. jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
  2496.     jQuery.fn[o] = function(f){
  2497.         return this.bind(o, f);
  2498.     };
  2499. });
  2500. var jsc = now();
  2501. jQuery.extend({
  2502.   
  2503.     get: function( url, data, callback, type ) {
  2504.         // shift arguments if data argument was ommited
  2505.         if ( jQuery.isFunction( data ) ) {
  2506.             callback = data;
  2507.             data = null;
  2508.         }
  2509.         return jQuery.ajax({
  2510.             type: "GET",
  2511.             url: url,
  2512.             data: data,
  2513.             success: callback,
  2514.             dataType: type
  2515.         });
  2516.     },
  2517.     getScript: function( url, callback ) {
  2518.         return jQuery.get(url, null, callback, "script");
  2519.     },
  2520.     getJSON: function( url, data, callback ) {
  2521.         return jQuery.get(url, data, callback, "json");
  2522.     },
  2523.     post: function( url, data, callback, type ) {
  2524.         if ( jQuery.isFunction( data ) ) {
  2525.             callback = data;
  2526.             data = {};
  2527.         }
  2528.         return jQuery.ajax({
  2529.             type: "POST",
  2530.             url: url,
  2531.             data: data,
  2532.             success: callback,
  2533.             dataType: type
  2534.         });
  2535.     },
  2536.     ajaxSetup: function( settings ) {
  2537.         jQuery.extend( jQuery.ajaxSettings, settings );
  2538.     },
  2539.     ajaxSettings: {
  2540.         url: location.href,
  2541.         global: true,
  2542.         type: "GET",
  2543.         timeout: 0,
  2544.         contentType: "application/x-www-form-urlencoded",
  2545.         processData: true,
  2546.         async: true,
  2547.         data: null,
  2548.         username: null,
  2549.         password: null,
  2550.         // Create the request object; Microsoft failed to properly
  2551.         // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
  2552.         // This function can be overriden by calling jQuery.ajaxSetup
  2553.         xhr:function(){
  2554.             return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  2555.         },
  2556.         accepts: {
  2557.             xml: "application/xml, text/xml",
  2558.             html: "text/html",
  2559.             script: "text/javascript, application/javascript",
  2560.             json: "application/json, text/javascript",
  2561.             text: "text/plain",
  2562.             _default: "*/*"
  2563.         }
  2564.     },
  2565.     // Last-Modified header cache for next request
  2566.     lastModified: {},
  2567.     ajax: function( s ) {
  2568.         // Extend the settings, but re-extend 's' so that it can be
  2569.         // checked again later (in the test suite, specifically)
  2570.         s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
  2571.         var jsonp, jsre = /=/?(&|$)/g, status, data,
  2572.             type = s.type.toUpperCase();
  2573.         // convert data if not already a string
  2574.         if ( s.data && s.processData && typeof s.data !== "string" )
  2575.             s.data = jQuery.param(s.data);
  2576.         // Handle JSONP Parameter Callbacks
  2577.         if ( s.dataType == "jsonp" ) {
  2578.             if ( type == "GET" ) {
  2579.                 if ( !s.url.match(jsre) )
  2580.                     s.url += (s.url.match(//?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
  2581.             } else if ( !s.data || !s.data.match(jsre) )
  2582.                 s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
  2583.             s.dataType = "json";
  2584.         }
  2585.         // Build temporary JSONP function
  2586.         if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
  2587.             jsonp = "jsonp" + jsc++;
  2588.             // Replace the =? sequence both in the query string and the data
  2589.             if ( s.data )
  2590.                 s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
  2591.             s.url = s.url.replace(jsre, "=" + jsonp + "$1");
  2592.             // We need to make sure
  2593.             // that a JSONP style response is executed properly
  2594.             s.dataType = "script";
  2595.             // Handle JSONP-style loading
  2596.             window[ jsonp ] = function(tmp){
  2597.                 data = tmp;
  2598.                 success();
  2599.                 complete();
  2600.                 // Garbage collect
  2601.                 window[ jsonp ] = undefined;
  2602.                 trydelete window[ jsonp ]; } catch(e){}
  2603.                 if ( head )
  2604.                     head.removeChild( script );
  2605.             };
  2606.         }
  2607.         if ( s.dataType == "script" && s.cache == null )
  2608.             s.cache = false;
  2609.         if ( s.cache === false && type == "GET" ) {
  2610.             var ts = now();
  2611.             // try replacing _= if it is there
  2612.             var ret = s.url.replace(/(/?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
  2613.             // if nothing was replaced, add timestamp to the end
  2614.             s.url = ret + ((ret == s.url) ? (s.url.match(//?/) ? "&" : "?") + "_=" + ts : "");
  2615.         }
  2616.         // If data is available, append data to url for get requests
  2617.         if ( s.data && type == "GET" ) {
  2618.             s.url += (s.url.match(//?/) ? "&" : "?") + s.data;
  2619.             // IE likes to send both get and post data, prevent this
  2620.             s.data = null;
  2621.         }
  2622.         // Watch for a new set of requests
  2623.         if ( s.global && ! jQuery.active++ )
  2624.             jQuery.event.trigger( "ajaxStart" );
  2625.         // Matches an absolute URL, and saves the domain
  2626.         var parts = /^(/w+:)?////([^//?#]+)/.exec( s.url );
  2627.         // If we're requesting a remote document
  2628.         // and trying to load JSON or Script with a GET
  2629.         if ( s.dataType == "script" && type == "GET" && parts
  2630.             && ( parts[1] && parts[1] != location.protocol || parts[2] != location.host )){
  2631.             var head = document.getElementsByTagName("head")[0];
  2632.             var script = document.createElement("script");
  2633.             script.src = s.url;
  2634.             if (s.scriptCharset)
  2635.                 script.charset = s.scriptCharset;
  2636.             // Handle Script loading
  2637.             if ( !jsonp ) {
  2638.                 var done = false;
  2639.                 // Attach handlers for all browsers
  2640.                 script.onload = script.onreadystatechange = function(){
  2641.                     if ( !done && (!this.readyState ||
  2642.                             this.readyState == "loaded" || this.readyState == "complete") ) {
  2643.                         done = true;
  2644.                         success();
  2645.                         complete();
  2646.                         head.removeChild( script );
  2647.                     }
  2648.                 };
  2649.             }
  2650.             head.appendChild(script);
  2651.             // We handle everything using the script element injection
  2652.             return undefined;
  2653.         }
  2654.         var requestDone = false;
  2655.         // Create the request object
  2656.         var xhr = s.xhr();
  2657.         // Open the socket
  2658.         // Passing null username, generates a login popup on Opera (#2865)
  2659.         if( s.username )
  2660.             xhr.open(type, s.url, s.async, s.username, s.password);
  2661.         else
  2662.             xhr.open(type, s.url, s.async);
  2663.         // Need an extra try/catch for cross domain requests in Firefox 3
  2664.         try {
  2665.             // Set the correct header, if data is being sent
  2666.             if ( s.data )
  2667.                 xhr.setRequestHeader("Content-Type", s.contentType);
  2668.             // Set the If-Modified-Since header, if ifModified mode.
  2669.             if ( s.ifModified )
  2670.                 xhr.setRequestHeader("If-Modified-Since",
  2671.                     jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
  2672.             // Set header so the called script knows that it's an XMLHttpRequest
  2673.             xhr.setRequestHeader("X-Requested-With""XMLHttpRequest");
  2674.             // Set the Accepts header for the server, depending on the dataType
  2675.             xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
  2676.                 s.accepts[ s.dataType ] + ", */*" :
  2677.                 s.accepts._default );
  2678.         } catch(e){}
  2679.         // Allow custom headers/mimetypes and early abort
  2680.         if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
  2681.             // Handle the global AJAX counter
  2682.             if ( s.global && ! --jQuery.active )
  2683.                 jQuery.event.trigger( "ajaxStop" );
  2684.             // close opended socket
  2685.             xhr.abort();
  2686.             return false;
  2687.         }
  2688.         if ( s.global )
  2689.             jQuery.event.trigger("ajaxSend", [xhr, s]);
  2690.         // Wait for a response to come back
  2691.         var onreadystatechange = function(isTimeout){
  2692.             // The request was aborted, clear the interval and decrement jQuery.active
  2693.             if (xhr.readyState == 0) {
  2694.                 if (ival) {
  2695.                     // clear poll interval
  2696.                     clearInterval(ival);
  2697.                     ival = null;
  2698.                     // Handle the global AJAX counter
  2699.                     if ( s.global && ! --jQuery.active )
  2700.                         jQuery.event.trigger( "ajaxStop" );
  2701.                 }
  2702.             // The transfer is complete and the data is available, or the request timed out
  2703.             } else if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
  2704.                 requestDone = true;
  2705.                 // clear poll interval
  2706.                 if (ival) {
  2707.                     clearInterval(ival);
  2708.                     ival = null;
  2709.                 }
  2710.                 status = isTimeout == "timeout" ? "timeout" :
  2711.                     !jQuery.httpSuccess( xhr ) ? "error" :
  2712.                     s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
  2713.                     "success";
  2714.                 if ( status == "success" ) {
  2715.                     // Watch for, and catch, XML document parse errors
  2716.                     try {
  2717.                         // process the data (runs the xml through httpData regardless of callback)
  2718.                         data = jQuery.httpData( xhr, s.dataType, s );
  2719.                     } catch(e) {
  2720.                         status = "parsererror";
  2721.                     }
  2722.                 }
  2723.                 // Make sure that the request was successful or notmodified
  2724.                 if ( status == "success" ) {
  2725.                     // Cache Last-Modified header, if ifModified mode.
  2726.                     var modRes;
  2727.                     try {
  2728.                         modRes = xhr.getResponseHeader("Last-Modified");
  2729.                     } catch(e) {} // swallow exception thrown by FF if header is not available
  2730.                     if ( s.ifModified && modRes )
  2731.                         jQuery.lastModified[s.url] = modRes;
  2732.                     // JSONP handles its own success callback
  2733.                     if ( !jsonp )
  2734.                         success();
  2735.                 } else
  2736.                     jQuery.handleError(s, xhr, status);
  2737.                 // Fire the complete handlers
  2738.                 complete();
  2739.                 // Stop memory leaks
  2740.                 if ( s.async )
  2741.                     xhr = null;
  2742.             }
  2743.         };
  2744.         if ( s.async ) {
  2745.             // don't attach the handler to the request, just poll it instead
  2746.             var ival = setInterval(onreadystatechange, 13);
  2747.             // Timeout checker
  2748.             if ( s.timeout > 0 )
  2749.                 setTimeout(function(){
  2750.                     // Check to see if the request is still happening
  2751.                     if ( xhr ) {
  2752.                         if( !requestDone )
  2753.                             onreadystatechange( "timeout" );
  2754.                         // Cancel the request
  2755.                         if ( xhr )
  2756.                             xhr.abort();
  2757.                     }
  2758.                 }, s.timeout);
  2759.         }
  2760.         // Send the data
  2761.         try {
  2762.             xhr.send(s.data);
  2763.         } catch(e) {
  2764.             jQuery.handleError(s, xhr, null, e);
  2765.         }
  2766.         // firefox 1.5 doesn't fire statechange for sync requests
  2767.         if ( !s.async )
  2768.             onreadystatechange();
  2769.         function success(){
  2770.             // If a local callback was specified, fire it and pass it the data
  2771.             if ( s.success )
  2772.                 s.success( data, status );
  2773.             // Fire the global callback
  2774.             if ( s.global )
  2775.                 jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
  2776.         }
  2777.         function complete(){
  2778.             // Process result
  2779.             if ( s.complete )
  2780.                 s.complete(xhr, status);
  2781.             // The request was completed
  2782.             if ( s.global )
  2783.                 jQuery.event.trigger( "ajaxComplete", [xhr, s] );
  2784.             // Handle the global AJAX counter
  2785.             if ( s.global && ! --jQuery.active )
  2786.                 jQuery.event.trigger( "ajaxStop" );
  2787.         }
  2788.         // return XMLHttpRequest to allow aborting the request etc.
  2789.         return xhr;
  2790.     },
  2791.     handleError: function( s, xhr, status, e ) {
  2792.         // If a local callback was specified, fire it
  2793.         if ( s.error ) s.error( xhr, status, e );
  2794.         // Fire the global callback
  2795.         if ( s.global )
  2796.             jQuery.event.trigger( "ajaxError", [xhr, s, e] );
  2797.     },
  2798.     // Counter for holding the number of active queries
  2799.     active: 0,
  2800.     // Determines if an XMLHttpRequest was successful or not
  2801.     httpSuccess: function( xhr ) {
  2802.         try {
  2803.             // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
  2804.             return !xhr.status && location.protocol == "file:" ||
  2805.                 ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223;
  2806.         } catch(e){}
  2807.         return false;
  2808.     },
  2809.     // Determines if an XMLHttpRequest returns NotModified
  2810.     httpNotModified: function( xhr, url ) {
  2811.         try {
  2812.             var xhrRes = xhr.getResponseHeader("Last-Modified");
  2813.             // Firefox always returns 200. check Last-Modified date
  2814.             return xhr.status == 304 || xhrRes == jQuery.lastModified[url];
  2815.         } catch(e){}
  2816.         return false;
  2817.     },
  2818.     httpData: function( xhr, type, s ) {
  2819.         var ct = xhr.getResponseHeader("content-type"),
  2820.             xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
  2821.             data = xml ? xhr.responseXML : xhr.responseText;
  2822.         if ( xml && data.documentElement.tagName == "parsererror" )
  2823.             throw "parsererror";
  2824.             
  2825.         // Allow a pre-filtering function to sanitize the response
  2826.         // s != null is checked to keep backwards compatibility
  2827.         if( s && s.dataFilter )
  2828.             data = s.dataFilter( data, type );
  2829.         // The filter can actually parse the response
  2830.         iftypeof data === "string" ){
  2831.             // If the type is "script", eval it in global context
  2832.             if ( type == "script" )
  2833.                 jQuery.globalEval( data );
  2834.             // Get the JavaScript object, if JSON is used.
  2835.             if ( type == "json" )
  2836.                 data = eval("(" + data + ")");
  2837.         }
  2838.         
  2839.         return data;
  2840.     },
  2841.     // Serialize an array of form elements or a set of
  2842.     // key/values into a query string
  2843.     param: function( a ) {
  2844.         var s = [ ];
  2845.         function add( key, value ){
  2846.             s[ s.length ] = encodeURIComponent(key) + '=' + encodeURIComponent(value);
  2847.         };
  2848.         // If an array was passed in, assume that it is an array
  2849.         // of form elements
  2850.         if ( jQuery.isArray(a) || a.jquery )
  2851.             // Serialize the form elements
  2852.             jQuery.each( a, function(){
  2853.                 add( this.name, this.value );
  2854.             });
  2855.         // Otherwise, assume that it's an object of key/value pairs
  2856.         else
  2857.             // Serialize the key/values
  2858.             for ( var j in a )
  2859.                 // If the value is an array then the key names need to be repeated
  2860.                 if ( jQuery.isArray(a[j]) )
  2861.                     jQuery.each( a[j], function(){
  2862.                         add( j, this );
  2863.                     });
  2864.                 else
  2865.                     add( j, jQuery.isFunction(a[j]) ? a[j]() : a[j] );
  2866.         // Return the resulting serialization
  2867.         return s.join("&").replace(/%20/g, "+");
  2868.     }
  2869. });
  2870. var elemdisplay = {};
  2871. jQuery.fn.extend({
  2872.     show: function(speed,callback){
  2873.         if ( speed ) {
  2874.             return this.animate({
  2875.                 height: "show", width: "show", opacity: "show"
  2876.             }, speed, callback);
  2877.         } else {
  2878.             for ( var i = 0, l = this.length; i < l; i++ ){
  2879.                 var old = jQuery.data(this[i], "olddisplay");
  2880.                 
  2881.                 this[i].style.display = old || "";
  2882.                 
  2883.                 if ( jQuery.css(this[i], "display") === "none" ) {
  2884.                     var tagName = this[i].tagName, display;
  2885.                     
  2886.                     if ( elemdisplay[ tagName ] ) {
  2887.                         display = elemdisplay[ tagName ];
  2888.                     } else {
  2889.                         var elem = jQuery("<" + this[i].tagName + " />").appendTo("body");
  2890.                         
  2891.                         display = elem.css("display");
  2892.                         if ( display === "none" )
  2893.                             display = "block";
  2894.                         
  2895.                         elem.remove();
  2896.                         
  2897.                         elemdisplay[ this[i].tagName ] = display;
  2898.                     }
  2899.                     
  2900.                     this[i].style.display = jQuery.data(this[i], "olddisplay", display);
  2901.                 }
  2902.             }
  2903.             
  2904.             return this;
  2905.         }
  2906.     },
  2907.     hide: function(speed,callback){
  2908.         if ( speed ) {
  2909.             return this.animate({
  2910.                 height: "hide", width: "hide", opacity: "hide"
  2911.             }, speed, callback);
  2912.         } else {
  2913.             for ( var i = 0, l = this.length; i < l; i++ ){
  2914.                 var old = jQuery.data(this[i], "olddisplay");
  2915.                 if ( !old && old !== "none" )
  2916.                     jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
  2917.                 this[i].style.display = "none";
  2918.             }
  2919.             return this;
  2920.         }
  2921.     },
  2922.     // Save the old toggle function
  2923.     _toggle: jQuery.fn.toggle,
  2924.     toggle: function( fn, fn2 ){
  2925.         return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
  2926.             this._toggle.apply( this, arguments ) :
  2927.             fn ?
  2928.                 this.animate({
  2929.                     height: "toggle", width: "toggle", opacity: "toggle"
  2930.                 }, fn, fn2) :
  2931.                 this.each(function(){
  2932.                     jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ]();
  2933.                 });
  2934.     },
  2935.     fadeTo: function(speed,to,callback){
  2936.         return this.animate({opacity: to}, speed, callback);
  2937.     },
  2938.     animate: function( prop, speed, easing, callback ) {
  2939.         var optall = jQuery.speed(speed, easing, callback);
  2940.         return this[ optall.queue === false ? "each" : "queue" ](function(){
  2941.         
  2942.             var opt = jQuery.extend({}, optall), p,
  2943.                 hidden = this.nodeType == 1 && jQuery(this).is(":hidden"),
  2944.                 self = this;
  2945.     
  2946.             for ( p in prop ) {
  2947.                 if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
  2948.                     return opt.complete.call(this);
  2949.                 if ( ( p == "height" || p == "width" ) && this.style ) {
  2950.                     // Store display property
  2951.                     opt.display = jQuery.css(this"display");
  2952.                     // Make sure that nothing sneaks out
  2953.                     opt.overflow = this.style.overflow;
  2954.                 }
  2955.             }
  2956.             if ( opt.overflow != null )
  2957.                 this.style.overflow = "hidden";
  2958.             opt.curAnim = jQuery.extend({}, prop);
  2959.             jQuery.each( prop, function(name, val){
  2960.                 var e = new jQuery.fx( self, opt, name );
  2961.                 if ( /toggle|show|hide/.test(val) )
  2962.                     e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
  2963.                 else {
  2964.                     var parts = val.toString().match(/^([+-]=)?([/d+-.]+)(.*)$/),
  2965.                         start = e.cur(true) || 0;
  2966.                     if ( parts ) {
  2967.                         var end = parseFloat(parts[2]),
  2968.                             unit = parts[3] || "px";
  2969.                         // We need to compute starting value
  2970.                         if ( unit != "px" ) {
  2971.                             self.style[ name ] = (end || 1) + unit;
  2972.                             start = ((end || 1) / e.cur(true)) * start;
  2973.                             self.style[ name ] = start + unit;
  2974.                         }
  2975.                         // If a +=/-= token was provided, we're doing a relative animation
  2976.                         if ( parts[1] )
  2977.                             end = ((parts[1] == "-=" ? -1 : 1) * end) + start;
  2978.                         e.custom( start, end, unit );
  2979.                     } else
  2980.                         e.custom( start, val, "" );
  2981.                 }
  2982.             });
  2983.             // For JS strict compliance
  2984.             return true;
  2985.         });
  2986.     },
  2987.     queue: function(type, fn){
  2988.         if ( jQuery.isFunction(type) || jQuery.isArray(type) ) {
  2989.             fn = type;
  2990.             type = "fx";
  2991.         }
  2992.         if ( !type || (typeof type === "string" && !fn) )
  2993.             return queue( this[0], type );
  2994.         return this.each(function(){
  2995.             if ( jQuery.isArray(fn) )
  2996.                 queue(this, type, fn);
  2997.             else {
  2998.                 queue(this, type).push( fn );
  2999.                 if ( queue(this, type).length == 1 )
  3000.                     fn.call(this);
  3001.             }
  3002.         });
  3003.     },
  3004.     stop: function(clearQueue, gotoEnd){
  3005.         var timers = jQuery.timers;
  3006.         if (clearQueue)
  3007.             this.queue([]);
  3008.         this.each(function(){
  3009.             // go in reverse order so anything added to the queue during the loop is ignored
  3010.             for ( var i = timers.length - 1; i >= 0; i-- )
  3011.                 if ( timers[i].elem == this ) {
  3012.                     if (gotoEnd)
  3013.                         // force the next step to be the last
  3014.                         timers[i](true);
  3015.                     timers.splice(i, 1);
  3016.                 }
  3017.         });
  3018.         // start the next in the queue if the last step wasn't forced
  3019.         if (!gotoEnd)
  3020.             this.dequeue();
  3021.         return this;
  3022.     }
  3023. });
  3024. // Generate shortcuts for custom animations
  3025. jQuery.each({
  3026.     slideDown: { height:"show" },
  3027.     slideUp: { height: "hide" },
  3028.     slideToggle: { height: "toggle" },
  3029.     fadeIn: { opacity: "show" },
  3030.     fadeOut: { opacity: "hide" }
  3031. }, function( name, props ){
  3032.     jQuery.fn[ name ] = function( speed, callback ){
  3033.         return this.animate( props, speed, callback );
  3034.     };
  3035. });
  3036. var queue = function( elem, type, array ) {
  3037.     if ( elem ){
  3038.         type = type || "fx";
  3039.         var q = jQuery.data( elem, type + "queue" );
  3040.         if ( !q || array )
  3041.             q = jQuery.data( elem, type + "queue", jQuery.makeArray(array) );
  3042.     }
  3043.     return q;
  3044. };
  3045. jQuery.fn.dequeue = function(type){
  3046.     type = type || "fx";
  3047.     return this.each(function(){
  3048.         var q = queue(this, type);
  3049.         q.shift();
  3050.         if ( q.length )
  3051.             q[0].call( this );
  3052.     });
  3053. };
  3054. jQuery.extend({
  3055.     speed: function(speed, easing, fn) {
  3056.         var opt = typeof speed === "object" ? speed : {
  3057.             complete: fn || !fn && easing ||
  3058.                 jQuery.isFunction( speed ) && speed,
  3059.             duration: speed,
  3060.             easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
  3061.         };
  3062.         opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
  3063.             jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
  3064.         // Queueing
  3065.         opt.old = opt.complete;
  3066.         opt.complete = function(){
  3067.             if ( opt.queue !== false )
  3068.                 jQuery(this).dequeue();
  3069.             if ( jQuery.isFunction( opt.old ) )
  3070.                 opt.old.call( this );
  3071.         };
  3072.         return opt;
  3073.     },
  3074.     easing: {
  3075.         linear: function( p, n, firstNum, diff ) {
  3076.             return firstNum + diff * p;
  3077.         },
  3078.         swing: function( p, n, firstNum, diff ) {
  3079.             return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
  3080.         }
  3081.     },
  3082.     timers: [],
  3083.     timerId: null,
  3084.     fx: function( elem, options, prop ){
  3085.         this.options = options;
  3086.         this.elem = elem;
  3087.         this.prop = prop;
  3088.         if ( !options.orig )
  3089.             options.orig = {};
  3090.     }
  3091. });
  3092. jQuery.fx.prototype = {
  3093.     // Simple function for setting a style value
  3094.     update: function(){
  3095.         if ( this.options.step )
  3096.             this.options.step.call( this.elem, this.now, this );
  3097.         (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
  3098.         // Set display property to block for height/width animations
  3099.         if ( ( this.prop == "height" || this.prop == "width" ) && this.elem.style )
  3100.             this.elem.style.display = "block";
  3101.     },
  3102.     // Get the current size
  3103.     cur: function(force){
  3104.         if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) )
  3105.             return this.elem[ this.prop ];
  3106.         var r = parseFloat(jQuery.css(this.elem, this.prop, force));
  3107.         return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
  3108.     },
  3109.     // Start an animation from one number to another
  3110.     custom: function(from, to, unit){
  3111.         this.startTime = now();
  3112.         this.start = from;
  3113.         this.end = to;
  3114.         this.unit = unit || this.unit || "px";
  3115.         this.now = this.start;
  3116.         this.pos = this.state = 0;
  3117.         var self = this;
  3118.         function t(gotoEnd){
  3119.             return self.step(gotoEnd);
  3120.         }
  3121.         t.elem = this.elem;
  3122.         jQuery.timers.push(t);
  3123.         if ( t() && jQuery.timerId == null ) {
  3124.             jQuery.timerId = setInterval(function(){
  3125.                 var timers = jQuery.timers;
  3126.                 for ( var i = 0; i < timers.length; i++ )
  3127.                     if ( !timers[i]() )
  3128.                         timers.splice(i--, 1);
  3129.                 if ( !timers.length ) {
  3130.                     clearInterval( jQuery.timerId );
  3131.                     jQuery.timerId = null;
  3132.                 }
  3133.             }, 13);
  3134.         }
  3135.     },
  3136.     // Simple 'show' function
  3137.     show: function(){
  3138.         // Remember where we started, so that we can go back to it later
  3139.         this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
  3140.         this.options.show = true;
  3141.         // Begin the animation
  3142.         this.custom(0, this.cur());
  3143.         // Make sure that we start at a small width/height to avoid any
  3144.         // flash of content
  3145.         if ( this.prop == "width" || this.prop == "height" )
  3146.             this.elem.style[this.prop] = "1px";
  3147.         // Start by showing the element
  3148.         jQuery(this.elem).show();
  3149.     },
  3150.     // Simple 'hide' function
  3151.     hide: function(){
  3152.         // Remember where we started, so that we can go back to it later
  3153.         this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
  3154.         this.options.hide = true;
  3155.         // Begin the animation
  3156.         this.custom(this.cur(), 0);
  3157.     },
  3158.     // Each step of an animation
  3159.     step: function(gotoEnd){
  3160.         var t = now();
  3161.         if ( gotoEnd || t >= this.options.duration + this.startTime ) {
  3162.             this.now = this.end;
  3163.             this.pos = this.state = 1;
  3164.             this.update();
  3165.             this.options.curAnim[ this.prop ] = true;
  3166.             var done = true;
  3167.             for ( var i in this.options.curAnim )
  3168.                 if ( this.options.curAnim[i] !== true )
  3169.                     done = false;
  3170.             if ( done ) {
  3171.                 if ( this.options.display != null ) {
  3172.                     // Reset the overflow
  3173.                     this.elem.style.overflow = this.options.overflow;
  3174.                     // Reset the display
  3175.                     this.elem.style.display = this.options.display;
  3176.                     if ( jQuery.css(this.elem, "display") == "none" )
  3177.                         this.elem.style.display = "block";
  3178.                 }
  3179.                 // Hide the element if the "hide" operation was done
  3180.                 if ( this.options.hide )
  3181.                     this.elem.style.display = "none";
  3182.                 // Reset the properties, if the item has been hidden or shown
  3183.                 if ( this.options.hide || this.options.show )
  3184.                     for ( var p in this.options.curAnim )
  3185.                         jQuery.attr(this.elem.style, p, this.options.orig[p]);
  3186.             }
  3187.             if ( done )
  3188.                 // Execute the complete function
  3189.                 this.options.complete.call( this.elem );
  3190.             return false;
  3191.         } else {
  3192.             var n = t - this.startTime;
  3193.             this.state = n / this.options.duration;
  3194.             // Perform the easing function, defaults to swing
  3195.             this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
  3196.             this.now = this.start + ((this.end - this.start) * this.pos);
  3197.             // Perform the next step of the animation
  3198.             this.update();
  3199.         }
  3200.         return true;
  3201.     }
  3202. };
  3203. jQuery.extend( jQuery.fx, {
  3204.     speeds:{
  3205.         slow: 600,
  3206.         fast: 200,
  3207.         // Default speed
  3208.         _default: 400
  3209.     },
  3210.     step: {
  3211.         opacity: function(fx){
  3212.             jQuery.attr(fx.elem.style, "opacity", fx.now);
  3213.         },
  3214.         _default: function(fx){
  3215.             if( fx.prop in fx.elem ) 
  3216.                 fx.elem[ fx.prop ] = fx.now;
  3217.             else if( fx.elem.style )
  3218.                 fx.elem.style[ fx.prop ] = fx.now + fx.unit;
  3219.         }
  3220.     }
  3221. });
  3222. if ( document.documentElement["getBoundingClientRect"] )
  3223.     jQuery.fn.offset = function() {
  3224.         if ( !this[0] ) return { top: 0, left: 0 };
  3225.         if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
  3226.         var box  = this[0].getBoundingClientRect(), doc = this[0].ownerDocument, body = doc.body, docElem = doc.documentElement,
  3227.             clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
  3228.             top  = box.top  + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop  || body.scrollTop ) - clientTop,
  3229.             left = box.left + (self.pageXOffset || jQuery.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
  3230.         return { top: top, left: left };
  3231.     };
  3232. else 
  3233.     jQuery.fn.offset = function() {
  3234.         if ( !this[0] ) return { top: 0, left: 0 };
  3235.         if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
  3236.         jQuery.offset.initialized || jQuery.offset.initialize();
  3237.         var elem = this[0], offsetParent = elem.offsetParent, prevOffsetParent = elem,
  3238.             doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
  3239.             body = doc.body, defaultView = doc.defaultView,
  3240.             prevComputedStyle = defaultView.getComputedStyle(elem, null),
  3241.             top = elem.offsetTop, left = elem.offsetLeft;
  3242.         while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
  3243.             computedStyle = defaultView.getComputedStyle(elem, null);
  3244.             top -= elem.scrollTop, left -= elem.scrollLeft;
  3245.             if ( elem === offsetParent ) {
  3246.                 top += elem.offsetTop, left += elem.offsetLeft;
  3247.                 if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.tagName)) )
  3248.                     top  += parseInt( computedStyle.borderTopWidth,  10) || 0,
  3249.                     left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
  3250.                 prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
  3251.             }
  3252.             if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" )
  3253.                 top  += parseInt( computedStyle.borderTopWidth,  10) || 0,
  3254.                 left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
  3255.             prevComputedStyle = computedStyle;
  3256.         }
  3257.         if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" )
  3258.             top  += body.offsetTop,
  3259.             left += body.offsetLeft;
  3260.         if ( prevComputedStyle.position === "fixed" )
  3261.             top  += Math.max(docElem.scrollTop, body.scrollTop),
  3262.             left += Math.max(docElem.scrollLeft, body.scrollLeft);
  3263.         return { top: top, left: left };
  3264.     };
  3265. jQuery.offset = {
  3266.     initialize: function() {
  3267.         if ( this.initialized ) return;
  3268.         var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, rules, prop, bodyMarginTop = body.style.marginTop,
  3269.             html = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"cellpadding="0"cellspacing="0"><tr><td></td></tr></table>';
  3270.         rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };
  3271.         for ( prop in rules ) container.style[prop] = rules[prop];
  3272.         container.innerHTML = html;
  3273.         body.insertBefore(container, body.firstChild);
  3274.         innerDiv = container.firstChild, checkDiv = innerDiv.firstChild, td = innerDiv.nextSibling.firstChild.firstChild;
  3275.         this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
  3276.         this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
  3277.         innerDiv.style.overflow = 'hidden', innerDiv.style.position = 'relative';
  3278.         this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
  3279.         body.style.marginTop = '1px';
  3280.         this.doesNotIncludeMarginInBodyOffset = (body.offsetTop === 0);
  3281.         body.style.marginTop = bodyMarginTop;
  3282.         body.removeChild(container);
  3283.         this.initialized = true;
  3284.     },
  3285.     bodyOffset: function(body) {
  3286.         jQuery.offset.initialized || jQuery.offset.initialize();
  3287.         var top = body.offsetTop, left = body.offsetLeft;
  3288.         if ( jQuery.offset.doesNotIncludeMarginInBodyOffset )
  3289.             top  += parseInt( jQuery.curCSS(body, 'marginTop',  true), 10 ) || 0,
  3290.             left += parseInt( jQuery.curCSS(body, 'marginLeft'true), 10 ) || 0;
  3291.         return { top: top, left: left };
  3292.     }
  3293. };
  3294. jQuery.fn.extend({
  3295.     position: function() {
  3296.         var left = 0, top = 0, results;
  3297.         if ( this[0] ) {
  3298.             // Get *real* offsetParent
  3299.             var offsetParent = this.offsetParent(),
  3300.             // Get correct offsets
  3301.             offset       = this.offset(),
  3302.             parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
  3303.             // Subtract element margins
  3304.             // note: when an element has margin: auto the offsetLeft and marginLeft 
  3305.             // are the same in Safari causing offset.left to incorrectly be 0
  3306.             offset.top  -= num( this'marginTop'  );
  3307.             offset.left -= num( this'marginLeft' );
  3308.             // Add offsetParent borders
  3309.             parentOffset.top  += num( offsetParent, 'borderTopWidth'  );
  3310.             parentOffset.left += num( offsetParent, 'borderLeftWidth' );
  3311.             // Subtract the two offsets
  3312.             results = {
  3313.                 top:  offset.top  - parentOffset.top,
  3314.                 left: offset.left - parentOffset.left
  3315.             };
  3316.         }
  3317.         return results;
  3318.     },
  3319.     offsetParent: function() {
  3320.         var offsetParent = this[0].offsetParent || document.body;
  3321.         while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
  3322.             offsetParent = offsetParent.offsetParent;
  3323.         return jQuery(offsetParent);
  3324.     }
  3325. });
  3326. // Create scrollLeft and scrollTop methods
  3327. jQuery.each( ['Left''Top'], function(i, name) {
  3328.     var method = 'scroll' + name;
  3329.     
  3330.     jQuery.fn[ method ] = function(val) {
  3331.         if (!this[0]) return null;
  3332.         return val !== undefined ?
  3333.             // Set the scroll offset
  3334.             this.each(function() {
  3335.                 this == window || this == document ?
  3336.                     window.scrollTo(
  3337.                         !i ? val : jQuery(window).scrollLeft(),
  3338.                          i ? val : jQuery(window).scrollTop()
  3339.                     ) :
  3340.                     this[ method ] = val;
  3341.             }) :
  3342.             // Return the scroll offset
  3343.             this[0] == window || this[0] == document ?
  3344.                 self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
  3345.                     jQuery.boxModel && document.documentElement[ method ] ||
  3346.                     document.body[ method ] :
  3347.                 this[0][ method ];
  3348.     };
  3349. });
  3350. // Create innerHeight, innerWidth, outerHeight and outerWidth methods
  3351. jQuery.each([ "Height""Width" ], function(i, name){
  3352.     var tl = i ? "Left"  : "Top",  // top or left
  3353.         br = i ? "Right" : "Bottom"// bottom or right
  3354.     // innerHeight and innerWidth
  3355.     jQuery.fn["inner" + name] = function(){
  3356.         return this[ name.toLowerCase() ]() +
  3357.             num(this"padding" + tl) +
  3358.             num(this"padding" + br);
  3359.     };
  3360.     // outerHeight and outerWidth
  3361.     jQuery.fn["outer" + name] = function(margin) {
  3362.         return this["inner" + name]() +
  3363.             num(this"border" + tl + "Width") +
  3364.             num(this"border" + br + "Width") +
  3365.             (margin ?
  3366.                 num(this"margin" + tl) + num(this"margin" + br) : 0);
  3367.     };
  3368.     
  3369.     var type = name.toLowerCase();
  3370.     jQuery.fn[ type ] = function( size ) {
  3371.         // Get window width or height
  3372.         return this[0] == window ?
  3373.             // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
  3374.             document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] ||
  3375.             document.body[ "client" + name ] :
  3376.             // Get document width or height
  3377.             this[0] == document ?
  3378.                 // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
  3379.                 Math.max(
  3380.                     document.documentElement["client" + name],
  3381.                     document.body["scroll" + name], document.documentElement["scroll" + name],
  3382.                     document.body["offset" + name], document.documentElement["offset" + name]
  3383.                 ) :
  3384.                 // Get or set width or height on the element
  3385.                 size === undefined ?
  3386.                     // Get width or height on the element
  3387.                     (this.length ? jQuery.css( this[0], type ) : null) :
  3388.                     // Set the width or height on the element (default to pixels if value is unitless)
  3389.                     this.css( type, typeof size === "string" ? size : size + "px" );
  3390.     };
  3391. });})();

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值