r61557 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61556‎ | r61557 | r61558 >
Date:04:17, 27 January 2010
Author:tstarling
Status:deferred (Comments)
Tags:
Comment:
* Moved js2stopgap.js to skins/common/jquery.js, like I said I was going to do months ago.
* Add a $modules parameter to OutputPage::includeJQuery() so that we can include jquery.ui in the main UsabilityInitiative jQuery request in a reasonably flexible way, if we need to.
* Removed $wgExtensionJavascriptLoader, added in r61137 without explanation, seems to be the usual misspelt JS2/mwEmbed rubbish that I keep deleting.
Modified paths:
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/OutputPage.php (modified) (history)
  • /trunk/phase3/js2/js2stopgap.js (deleted) (history)
  • /trunk/phase3/js2/js2stopgap.min.js (deleted) (history)
  • /trunk/phase3/skins/common/jquery.js (added) (history)
  • /trunk/phase3/skins/common/jquery.min.js (added) (history)

Diff [purge]

Index: trunk/phase3/skins/common/jquery.js
@@ -0,0 +1,4447 @@
 2+/*!
 3+ * jQuery JavaScript Library v1.3.2
 4+ * http://jquery.com/
 5+ *
 6+ * Copyright (c) 2009 John Resig
 7+ * Dual licensed under the MIT and GPL licenses.
 8+ * http://docs.jquery.com/License
 9+ *
 10+ * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 11+ * Revision: 6246
 12+ */
 13+(function(){
 14+
 15+var
 16+ // Will speed up references to window, and allows munging its name.
 17+ window = this,
 18+ // Will speed up references to undefined, and allows munging its name.
 19+ undefined,
 20+ // Map over jQuery in case of overwrite
 21+ _jQuery = window.jQuery,
 22+ // Map over the $ in case of overwrite
 23+ _$ = window.$,
 24+
 25+ jQuery = window.jQuery = window.$ = function( selector, context ) {
 26+ // The jQuery object is actually just the init constructor 'enhanced'
 27+ return new jQuery.fn.init( selector, context );
 28+ },
 29+
 30+ // A simple way to check for HTML strings or ID strings
 31+ // (both of which we optimize for)
 32+ quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
 33+ // Is it a simple selector
 34+ isSimple = /^.[^:#\[\.,]*$/;
 35+
 36+jQuery.fn = jQuery.prototype = {
 37+ init: function( selector, context ) {
 38+ // Make sure that a selection was provided
 39+ selector = selector || document;
 40+
 41+ // Handle $(DOMElement)
 42+ if ( selector.nodeType ) {
 43+ this[0] = selector;
 44+ this.length = 1;
 45+ this.context = selector;
 46+ return this;
 47+ }
 48+ // Handle HTML strings
 49+ if ( typeof selector === "string" ) {
 50+ // Are we dealing with HTML string or an ID?
 51+ var match = quickExpr.exec( selector );
 52+
 53+ // Verify a match, and that no context was specified for #id
 54+ if ( match && (match[1] || !context) ) {
 55+
 56+ // HANDLE: $(html) -> $(array)
 57+ if ( match[1] )
 58+ selector = jQuery.clean( [ match[1] ], context );
 59+
 60+ // HANDLE: $("#id")
 61+ else {
 62+ var elem = document.getElementById( match[3] );
 63+
 64+ // Handle the case where IE and Opera return items
 65+ // by name instead of ID
 66+ if ( elem && elem.id != match[3] )
 67+ return jQuery().find( selector );
 68+
 69+ // Otherwise, we inject the element directly into the jQuery object
 70+ var ret = jQuery( elem || [] );
 71+ ret.context = document;
 72+ ret.selector = selector;
 73+ return ret;
 74+ }
 75+
 76+ // HANDLE: $(expr, [context])
 77+ // (which is just equivalent to: $(content).find(expr)
 78+ } else
 79+ return jQuery( context ).find( selector );
 80+
 81+ // HANDLE: $(function)
 82+ // Shortcut for document ready
 83+ } else if ( jQuery.isFunction( selector ) )
 84+ return jQuery( document ).ready( selector );
 85+
 86+ // Make sure that old selector state is passed along
 87+ if ( selector.selector && selector.context ) {
 88+ this.selector = selector.selector;
 89+ this.context = selector.context;
 90+ }
 91+
 92+ return this.setArray(jQuery.isArray( selector ) ?
 93+ selector :
 94+ jQuery.makeArray(selector));
 95+ },
 96+
 97+ // Start with an empty selector
 98+ selector: "",
 99+
 100+ // The current version of jQuery being used
 101+ jquery: "1.3.2",
 102+
 103+ // The number of elements contained in the matched element set
 104+ size: function() {
 105+ return this.length;
 106+ },
 107+
 108+ // Get the Nth element in the matched element set OR
 109+ // Get the whole matched element set as a clean array
 110+ get: function( num ) {
 111+ return num === undefined ?
 112+
 113+ // Return a 'clean' array
 114+ Array.prototype.slice.call( this ) :
 115+
 116+ // Return just the object
 117+ this[ num ];
 118+ },
 119+
 120+ // Take an array of elements and push it onto the stack
 121+ // (returning the new matched element set)
 122+ pushStack: function( elems, name, selector ) {
 123+ // Build a new jQuery matched element set
 124+ var ret = jQuery( elems );
 125+
 126+ // Add the old object onto the stack (as a reference)
 127+ ret.prevObject = this;
 128+
 129+ ret.context = this.context;
 130+
 131+ if ( name === "find" )
 132+ ret.selector = this.selector + (this.selector ? " " : "") + selector;
 133+ else if ( name )
 134+ ret.selector = this.selector + "." + name + "(" + selector + ")";
 135+
 136+ // Return the newly-formed element set
 137+ return ret;
 138+ },
 139+
 140+ // Force the current matched set of elements to become
 141+ // the specified array of elements (destroying the stack in the process)
 142+ // You should use pushStack() in order to do this, but maintain the stack
 143+ setArray: function( elems ) {
 144+ // Resetting the length to 0, then using the native Array push
 145+ // is a super-fast way to populate an object with array-like properties
 146+ this.length = 0;
 147+ Array.prototype.push.apply( this, elems );
 148+
 149+ return this;
 150+ },
 151+
 152+ // Execute a callback for every element in the matched set.
 153+ // (You can seed the arguments with an array of args, but this is
 154+ // only used internally.)
 155+ each: function( callback, args ) {
 156+ return jQuery.each( this, callback, args );
 157+ },
 158+
 159+ // Determine the position of an element within
 160+ // the matched set of elements
 161+ index: function( elem ) {
 162+ // Locate the position of the desired element
 163+ return jQuery.inArray(
 164+ // If it receives a jQuery object, the first element is used
 165+ elem && elem.jquery ? elem[0] : elem
 166+ , this );
 167+ },
 168+
 169+ attr: function( name, value, type ) {
 170+ var options = name;
 171+
 172+ // Look for the case where we're accessing a style value
 173+ if ( typeof name === "string" )
 174+ if ( value === undefined )
 175+ return this[0] && jQuery[ type || "attr" ]( this[0], name );
 176+
 177+ else {
 178+ options = {};
 179+ options[ name ] = value;
 180+ }
 181+
 182+ // Check to see if we're setting style values
 183+ return this.each(function(i){
 184+ // Set all the styles
 185+ for ( name in options )
 186+ jQuery.attr(
 187+ type ?
 188+ this.style :
 189+ this,
 190+ name, jQuery.prop( this, options[ name ], type, i, name )
 191+ );
 192+ });
 193+ },
 194+
 195+ css: function( key, value ) {
 196+ // ignore negative width and height values
 197+ if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
 198+ value = undefined;
 199+ return this.attr( key, value, "curCSS" );
 200+ },
 201+
 202+ text: function( text ) {
 203+ if ( typeof text !== "object" && text != null )
 204+ return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
 205+
 206+ var ret = "";
 207+
 208+ jQuery.each( text || this, function(){
 209+ jQuery.each( this.childNodes, function(){
 210+ if ( this.nodeType != 8 )
 211+ ret += this.nodeType != 1 ?
 212+ this.nodeValue :
 213+ jQuery.fn.text( [ this ] );
 214+ });
 215+ });
 216+
 217+ return ret;
 218+ },
 219+
 220+ wrapAll: function( html ) {
 221+ if ( this[0] ) {
 222+ // The elements to wrap the target around
 223+ var wrap = jQuery( html, this[0].ownerDocument ).clone();
 224+
 225+ if ( this[0].parentNode )
 226+ wrap.insertBefore( this[0] );
 227+
 228+ wrap.map(function(){
 229+ var elem = this;
 230+
 231+ while ( elem.firstChild )
 232+ elem = elem.firstChild;
 233+
 234+ return elem;
 235+ }).append(this);
 236+ }
 237+
 238+ return this;
 239+ },
 240+
 241+ wrapInner: function( html ) {
 242+ return this.each(function(){
 243+ jQuery( this ).contents().wrapAll( html );
 244+ });
 245+ },
 246+
 247+ wrap: function( html ) {
 248+ return this.each(function(){
 249+ jQuery( this ).wrapAll( html );
 250+ });
 251+ },
 252+
 253+ append: function() {
 254+ return this.domManip(arguments, true, function(elem){
 255+ if (this.nodeType == 1)
 256+ this.appendChild( elem );
 257+ });
 258+ },
 259+
 260+ prepend: function() {
 261+ return this.domManip(arguments, true, function(elem){
 262+ if (this.nodeType == 1)
 263+ this.insertBefore( elem, this.firstChild );
 264+ });
 265+ },
 266+
 267+ before: function() {
 268+ return this.domManip(arguments, false, function(elem){
 269+ this.parentNode.insertBefore( elem, this );
 270+ });
 271+ },
 272+
 273+ after: function() {
 274+ return this.domManip(arguments, false, function(elem){
 275+ this.parentNode.insertBefore( elem, this.nextSibling );
 276+ });
 277+ },
 278+
 279+ end: function() {
 280+ return this.prevObject || jQuery( [] );
 281+ },
 282+
 283+ // For internal use only.
 284+ // Behaves like an Array's method, not like a jQuery method.
 285+ push: [].push,
 286+ sort: [].sort,
 287+ splice: [].splice,
 288+
 289+ find: function( selector ) {
 290+ if ( this.length === 1 ) {
 291+ var ret = this.pushStack( [], "find", selector );
 292+ ret.length = 0;
 293+ jQuery.find( selector, this[0], ret );
 294+ return ret;
 295+ } else {
 296+ return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){
 297+ return jQuery.find( selector, elem );
 298+ })), "find", selector );
 299+ }
 300+ },
 301+
 302+ clone: function( events ) {
 303+ // Do the clone
 304+ var ret = this.map(function(){
 305+ if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
 306+ // IE copies events bound via attachEvent when
 307+ // using cloneNode. Calling detachEvent on the
 308+ // clone will also remove the events from the orignal
 309+ // In order to get around this, we use innerHTML.
 310+ // Unfortunately, this means some modifications to
 311+ // attributes in IE that are actually only stored
 312+ // as properties will not be copied (such as the
 313+ // the name attribute on an input).
 314+ var html = this.outerHTML;
 315+ if ( !html ) {
 316+ var div = this.ownerDocument.createElement("div");
 317+ div.appendChild( this.cloneNode(true) );
 318+ html = div.innerHTML;
 319+ }
 320+
 321+ return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0];
 322+ } else
 323+ return this.cloneNode(true);
 324+ });
 325+
 326+ // Copy the events from the original to the clone
 327+ if ( events === true ) {
 328+ var orig = this.find("*").andSelf(), i = 0;
 329+
 330+ ret.find("*").andSelf().each(function(){
 331+ if ( this.nodeName !== orig[i].nodeName )
 332+ return;
 333+
 334+ var events = jQuery.data( orig[i], "events" );
 335+
 336+ for ( var type in events ) {
 337+ for ( var handler in events[ type ] ) {
 338+ jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
 339+ }
 340+ }
 341+
 342+ i++;
 343+ });
 344+ }
 345+
 346+ // Return the cloned set
 347+ return ret;
 348+ },
 349+
 350+ filter: function( selector ) {
 351+ return this.pushStack(
 352+ jQuery.isFunction( selector ) &&
 353+ jQuery.grep(this, function(elem, i){
 354+ return selector.call( elem, i );
 355+ }) ||
 356+
 357+ jQuery.multiFilter( selector, jQuery.grep(this, function(elem){
 358+ return elem.nodeType === 1;
 359+ }) ), "filter", selector );
 360+ },
 361+
 362+ closest: function( selector ) {
 363+ var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null,
 364+ closer = 0;
 365+
 366+ return this.map(function(){
 367+ var cur = this;
 368+ while ( cur && cur.ownerDocument ) {
 369+ if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) {
 370+ jQuery.data(cur, "closest", closer);
 371+ return cur;
 372+ }
 373+ cur = cur.parentNode;
 374+ closer++;
 375+ }
 376+ });
 377+ },
 378+
 379+ not: function( selector ) {
 380+ if ( typeof selector === "string" )
 381+ // test special case where just one selector is passed in
 382+ if ( isSimple.test( selector ) )
 383+ return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector );
 384+ else
 385+ selector = jQuery.multiFilter( selector, this );
 386+
 387+ var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
 388+ return this.filter(function() {
 389+ return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
 390+ });
 391+ },
 392+
 393+ add: function( selector ) {
 394+ return this.pushStack( jQuery.unique( jQuery.merge(
 395+ this.get(),
 396+ typeof selector === "string" ?
 397+ jQuery( selector ) :
 398+ jQuery.makeArray( selector )
 399+ )));
 400+ },
 401+
 402+ is: function( selector ) {
 403+ return !!selector && jQuery.multiFilter( selector, this ).length > 0;
 404+ },
 405+
 406+ hasClass: function( selector ) {
 407+ return !!selector && this.is( "." + selector );
 408+ },
 409+
 410+ val: function( value ) {
 411+ if ( value === undefined ) {
 412+ var elem = this[0];
 413+
 414+ if ( elem ) {
 415+ if( jQuery.nodeName( elem, 'option' ) )
 416+ return (elem.attributes.value || {}).specified ? elem.value : elem.text;
 417+
 418+ // We need to handle select boxes special
 419+ if ( jQuery.nodeName( elem, "select" ) ) {
 420+ var index = elem.selectedIndex,
 421+ values = [],
 422+ options = elem.options,
 423+ one = elem.type == "select-one";
 424+
 425+ // Nothing was selected
 426+ if ( index < 0 )
 427+ return null;
 428+
 429+ // Loop through all the selected options
 430+ for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
 431+ var option = options[ i ];
 432+
 433+ if ( option.selected ) {
 434+ // Get the specifc value for the option
 435+ value = jQuery(option).val();
 436+
 437+ // We don't need an array for one selects
 438+ if ( one )
 439+ return value;
 440+
 441+ // Multi-Selects return an array
 442+ values.push( value );
 443+ }
 444+ }
 445+
 446+ return values;
 447+ }
 448+
 449+ // Everything else, we just grab the value
 450+ return (elem.value || "").replace(/\r/g, "");
 451+
 452+ }
 453+
 454+ return undefined;
 455+ }
 456+
 457+ if ( typeof value === "number" )
 458+ value += '';
 459+
 460+ return this.each(function(){
 461+ if ( this.nodeType != 1 )
 462+ return;
 463+
 464+ if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
 465+ this.checked = (jQuery.inArray(this.value, value) >= 0 ||
 466+ jQuery.inArray(this.name, value) >= 0);
 467+
 468+ else if ( jQuery.nodeName( this, "select" ) ) {
 469+ var values = jQuery.makeArray(value);
 470+
 471+ jQuery( "option", this ).each(function(){
 472+ this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
 473+ jQuery.inArray( this.text, values ) >= 0);
 474+ });
 475+
 476+ if ( !values.length )
 477+ this.selectedIndex = -1;
 478+
 479+ } else
 480+ this.value = value;
 481+ });
 482+ },
 483+
 484+ html: function( value ) {
 485+ return value === undefined ?
 486+ (this[0] ?
 487+ this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") :
 488+ null) :
 489+ this.empty().append( value );
 490+ },
 491+
 492+ replaceWith: function( value ) {
 493+ return this.after( value ).remove();
 494+ },
 495+
 496+ eq: function( i ) {
 497+ return this.slice( i, +i + 1 );
 498+ },
 499+
 500+ slice: function() {
 501+ return this.pushStack( Array.prototype.slice.apply( this, arguments ),
 502+ "slice", Array.prototype.slice.call(arguments).join(",") );
 503+ },
 504+
 505+ map: function( callback ) {
 506+ return this.pushStack( jQuery.map(this, function(elem, i){
 507+ return callback.call( elem, i, elem );
 508+ }));
 509+ },
 510+
 511+ andSelf: function() {
 512+ return this.add( this.prevObject );
 513+ },
 514+
 515+ domManip: function( args, table, callback ) {
 516+ if ( this[0] ) {
 517+ var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(),
 518+ scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ),
 519+ first = fragment.firstChild;
 520+
 521+ if ( first )
 522+ for ( var i = 0, l = this.length; i < l; i++ )
 523+ callback.call( root(this[i], first), this.length > 1 || i > 0 ?
 524+ fragment.cloneNode(true) : fragment );
 525+
 526+ if ( scripts )
 527+ jQuery.each( scripts, evalScript );
 528+ }
 529+
 530+ return this;
 531+
 532+ function root( elem, cur ) {
 533+ return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ?
 534+ (elem.getElementsByTagName("tbody")[0] ||
 535+ elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
 536+ elem;
 537+ }
 538+ }
 539+};
 540+
 541+// Give the init function the jQuery prototype for later instantiation
 542+jQuery.fn.init.prototype = jQuery.fn;
 543+
 544+function evalScript( i, elem ) {
 545+ if ( elem.src )
 546+ jQuery.ajax({
 547+ url: elem.src,
 548+ async: false,
 549+ dataType: "script"
 550+ });
 551+
 552+ else
 553+ jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
 554+
 555+ if ( elem.parentNode )
 556+ elem.parentNode.removeChild( elem );
 557+}
 558+
 559+function now(){
 560+ return +new Date;
 561+}
 562+
 563+jQuery.extend = jQuery.fn.extend = function() {
 564+ // copy reference to target object
 565+ var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
 566+
 567+ // Handle a deep copy situation
 568+ if ( typeof target === "boolean" ) {
 569+ deep = target;
 570+ target = arguments[1] || {};
 571+ // skip the boolean and the target
 572+ i = 2;
 573+ }
 574+
 575+ // Handle case when target is a string or something (possible in deep copy)
 576+ if ( typeof target !== "object" && !jQuery.isFunction(target) )
 577+ target = {};
 578+
 579+ // extend jQuery itself if only one argument is passed
 580+ if ( length == i ) {
 581+ target = this;
 582+ --i;
 583+ }
 584+
 585+ for ( ; i < length; i++ )
 586+ // Only deal with non-null/undefined values
 587+ if ( (options = arguments[ i ]) != null )
 588+ // Extend the base object
 589+ for ( var name in options ) {
 590+ var src = target[ name ], copy = options[ name ];
 591+
 592+ // Prevent never-ending loop
 593+ if ( target === copy )
 594+ continue;
 595+
 596+ // Recurse if we're merging object values
 597+ if ( deep && copy && typeof copy === "object" && !copy.nodeType )
 598+ target[ name ] = jQuery.extend( deep,
 599+ // Never move original objects, clone them
 600+ src || ( copy.length != null ? [ ] : { } )
 601+ , copy );
 602+
 603+ // Don't bring in undefined values
 604+ else if ( copy !== undefined )
 605+ target[ name ] = copy;
 606+
 607+ }
 608+
 609+ // Return the modified object
 610+ return target;
 611+};
 612+
 613+// exclude the following css properties to add px
 614+var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
 615+ // cache defaultView
 616+ defaultView = document.defaultView || {},
 617+ toString = Object.prototype.toString;
 618+
 619+jQuery.extend({
 620+ noConflict: function( deep ) {
 621+ window.$ = _$;
 622+
 623+ if ( deep )
 624+ window.jQuery = _jQuery;
 625+
 626+ return jQuery;
 627+ },
 628+
 629+ // See test/unit/core.js for details concerning isFunction.
 630+ // Since version 1.3, DOM methods and functions like alert
 631+ // aren't supported. They return false on IE (#2968).
 632+ isFunction: function( obj ) {
 633+ return toString.call(obj) === "[object Function]";
 634+ },
 635+
 636+ isArray: function( obj ) {
 637+ return toString.call(obj) === "[object Array]";
 638+ },
 639+
 640+ // check if an element is in a (or is an) XML document
 641+ isXMLDoc: function( elem ) {
 642+ return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
 643+ !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument );
 644+ },
 645+
 646+ // Evalulates a script in a global context
 647+ globalEval: function( data ) {
 648+ if ( data && /\S/.test(data) ) {
 649+ // Inspired by code by Andrea Giammarchi
 650+ // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
 651+ var head = document.getElementsByTagName("head")[0] || document.documentElement,
 652+ script = document.createElement("script");
 653+
 654+ script.type = "text/javascript";
 655+ if ( jQuery.support.scriptEval )
 656+ script.appendChild( document.createTextNode( data ) );
 657+ else
 658+ script.text = data;
 659+
 660+ // Use insertBefore instead of appendChild to circumvent an IE6 bug.
 661+ // This arises when a base node is used (#2709).
 662+ head.insertBefore( script, head.firstChild );
 663+ head.removeChild( script );
 664+ }
 665+ },
 666+
 667+ nodeName: function( elem, name ) {
 668+ return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
 669+ },
 670+
 671+ // args is for internal usage only
 672+ each: function( object, callback, args ) {
 673+ var name, i = 0, length = object.length;
 674+
 675+ if ( args ) {
 676+ if ( length === undefined ) {
 677+ for ( name in object )
 678+ if ( callback.apply( object[ name ], args ) === false )
 679+ break;
 680+ } else
 681+ for ( ; i < length; )
 682+ if ( callback.apply( object[ i++ ], args ) === false )
 683+ break;
 684+
 685+ // A special, fast, case for the most common use of each
 686+ } else {
 687+ if ( length === undefined ) {
 688+ for ( name in object )
 689+ if ( callback.call( object[ name ], name, object[ name ] ) === false )
 690+ break;
 691+ } else
 692+ for ( var value = object[0];
 693+ i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
 694+ }
 695+
 696+ return object;
 697+ },
 698+
 699+ prop: function( elem, value, type, i, name ) {
 700+ // Handle executable functions
 701+ if ( jQuery.isFunction( value ) )
 702+ value = value.call( elem, i );
 703+
 704+ // Handle passing in a number to a CSS property
 705+ return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ?
 706+ value + "px" :
 707+ value;
 708+ },
 709+
 710+ className: {
 711+ // internal only, use addClass("class")
 712+ add: function( elem, classNames ) {
 713+ jQuery.each((classNames || "").split(/\s+/), function(i, className){
 714+ if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
 715+ elem.className += (elem.className ? " " : "") + className;
 716+ });
 717+ },
 718+
 719+ // internal only, use removeClass("class")
 720+ remove: function( elem, classNames ) {
 721+ if (elem.nodeType == 1)
 722+ elem.className = classNames !== undefined ?
 723+ jQuery.grep(elem.className.split(/\s+/), function(className){
 724+ return !jQuery.className.has( classNames, className );
 725+ }).join(" ") :
 726+ "";
 727+ },
 728+
 729+ // internal only, use hasClass("class")
 730+ has: function( elem, className ) {
 731+ return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
 732+ }
 733+ },
 734+
 735+ // A method for quickly swapping in/out CSS properties to get correct calculations
 736+ swap: function( elem, options, callback ) {
 737+ var old = {};
 738+ // Remember the old values, and insert the new ones
 739+ for ( var name in options ) {
 740+ old[ name ] = elem.style[ name ];
 741+ elem.style[ name ] = options[ name ];
 742+ }
 743+
 744+ callback.call( elem );
 745+
 746+ // Revert the old values
 747+ for ( var name in options )
 748+ elem.style[ name ] = old[ name ];
 749+ },
 750+
 751+ css: function( elem, name, force, extra ) {
 752+ if ( name == "width" || name == "height" ) {
 753+ var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ];
 754+
 755+ function getWH() {
 756+ val = name == "width" ? elem.offsetWidth : elem.offsetHeight;
 757+
 758+ if ( extra === "border" )
 759+ return;
 760+
 761+ jQuery.each( which, function() {
 762+ if ( !extra )
 763+ val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
 764+ if ( extra === "margin" )
 765+ val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0;
 766+ else
 767+ val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
 768+ });
 769+ }
 770+
 771+ if ( elem.offsetWidth !== 0 )
 772+ getWH();
 773+ else
 774+ jQuery.swap( elem, props, getWH );
 775+
 776+ return Math.max(0, Math.round(val));
 777+ }
 778+
 779+ return jQuery.curCSS( elem, name, force );
 780+ },
 781+
 782+ curCSS: function( elem, name, force ) {
 783+ var ret, style = elem.style;
 784+
 785+ // We need to handle opacity special in IE
 786+ if ( name == "opacity" && !jQuery.support.opacity ) {
 787+ ret = jQuery.attr( style, "opacity" );
 788+
 789+ return ret == "" ?
 790+ "1" :
 791+ ret;
 792+ }
 793+
 794+ // Make sure we're using the right name for getting the float value
 795+ if ( name.match( /float/i ) )
 796+ name = styleFloat;
 797+
 798+ if ( !force && style && style[ name ] )
 799+ ret = style[ name ];
 800+
 801+ else if ( defaultView.getComputedStyle ) {
 802+
 803+ // Only "float" is needed here
 804+ if ( name.match( /float/i ) )
 805+ name = "float";
 806+
 807+ name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
 808+ try{
 809+ var computedStyle = defaultView.getComputedStyle( elem, null );
 810+ }catch(e){
 811+ // Error in getting computedStyle
 812+ }
 813+ if ( computedStyle )
 814+ ret = computedStyle.getPropertyValue( name );
 815+
 816+ // We should always get a number back from opacity
 817+ if ( name == "opacity" && ret == "" )
 818+ ret = "1";
 819+
 820+ } else if ( elem.currentStyle ) {
 821+ var camelCase = name.replace(/\-(\w)/g, function(all, letter){
 822+ return letter.toUpperCase();
 823+ });
 824+
 825+ ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
 826+
 827+ // From the awesome hack by Dean Edwards
 828+ // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
 829+
 830+ // If we're not dealing with a regular pixel number
 831+ // but a number that has a weird ending, we need to convert it to pixels
 832+ if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
 833+ // Remember the original values
 834+ var left = style.left, rsLeft = elem.runtimeStyle.left;
 835+
 836+ // Put in the new values to get a computed value out
 837+ elem.runtimeStyle.left = elem.currentStyle.left;
 838+ style.left = ret || 0;
 839+ ret = style.pixelLeft + "px";
 840+
 841+ // Revert the changed values
 842+ style.left = left;
 843+ elem.runtimeStyle.left = rsLeft;
 844+ }
 845+ }
 846+
 847+ return ret;
 848+ },
 849+
 850+ clean: function( elems, context, fragment ) {
 851+ context = context || document;
 852+
 853+ // !context.createElement fails in IE with an error but returns typeof 'object'
 854+ if ( typeof context.createElement === "undefined" )
 855+ context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
 856+
 857+ // If a single string is passed in and it's a single tag
 858+ // just do a createElement and skip the rest
 859+ if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) {
 860+ var match = /^<(\w+)\s*\/?>$/.exec(elems[0]);
 861+ if ( match )
 862+ return [ context.createElement( match[1] ) ];
 863+ }
 864+
 865+ var ret = [], scripts = [], div = context.createElement("div");
 866+
 867+ jQuery.each(elems, function(i, elem){
 868+ if ( typeof elem === "number" )
 869+ elem += '';
 870+
 871+ if ( !elem )
 872+ return;
 873+
 874+ // Convert html string into DOM nodes
 875+ if ( typeof elem === "string" ) {
 876+ // Fix "XHTML"-style tags in all browsers
 877+ elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
 878+ return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
 879+ all :
 880+ front + "></" + tag + ">";
 881+ });
 882+
 883+ // Trim whitespace, otherwise indexOf won't work as expected
 884+ var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase();
 885+
 886+ var wrap =
 887+ // option or optgroup
 888+ !tags.indexOf("<opt") &&
 889+ [ 1, "<select multiple='multiple'>", "</select>" ] ||
 890+
 891+ !tags.indexOf("<leg") &&
 892+ [ 1, "<fieldset>", "</fieldset>" ] ||
 893+
 894+ tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
 895+ [ 1, "<table>", "</table>" ] ||
 896+
 897+ !tags.indexOf("<tr") &&
 898+ [ 2, "<table><tbody>", "</tbody></table>" ] ||
 899+
 900+ // <thead> matched above
 901+ (!tags.indexOf("<td") || !tags.indexOf("<th")) &&
 902+ [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||
 903+
 904+ !tags.indexOf("<col") &&
 905+ [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||
 906+
 907+ // IE can't serialize <link> and <script> tags normally
 908+ !jQuery.support.htmlSerialize &&
 909+ [ 1, "div<div>", "</div>" ] ||
 910+
 911+ [ 0, "", "" ];
 912+
 913+ // Go to html and back, then peel off extra wrappers
 914+ div.innerHTML = wrap[1] + elem + wrap[2];
 915+
 916+ // Move to the right depth
 917+ while ( wrap[0]-- )
 918+ div = div.lastChild;
 919+
 920+ // Remove IE's autoinserted <tbody> from table fragments
 921+ if ( !jQuery.support.tbody ) {
 922+
 923+ // String was a <table>, *may* have spurious <tbody>
 924+ var hasBody = /<tbody/i.test(elem),
 925+ tbody = !tags.indexOf("<table") && !hasBody ?
 926+ div.firstChild && div.firstChild.childNodes :
 927+
 928+ // String was a bare <thead> or <tfoot>
 929+ wrap[1] == "<table>" && !hasBody ?
 930+ div.childNodes :
 931+ [];
 932+
 933+ for ( var j = tbody.length - 1; j >= 0 ; --j )
 934+ if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )
 935+ tbody[ j ].parentNode.removeChild( tbody[ j ] );
 936+
 937+ }
 938+
 939+ // IE completely kills leading whitespace when innerHTML is used
 940+ if ( !jQuery.support.leadingWhitespace && /^\s/.test( elem ) )
 941+ div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );
 942+
 943+ elem = jQuery.makeArray( div.childNodes );
 944+ }
 945+
 946+ if ( elem.nodeType )
 947+ ret.push( elem );
 948+ else
 949+ ret = jQuery.merge( ret, elem );
 950+
 951+ });
 952+
 953+ if ( fragment ) {
 954+ for ( var i = 0; ret[i]; i++ ) {
 955+ if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
 956+ scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
 957+ } else {
 958+ if ( ret[i].nodeType === 1 )
 959+ ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
 960+ fragment.appendChild( ret[i] );
 961+ }
 962+ }
 963+
 964+ return scripts;
 965+ }
 966+
 967+ return ret;
 968+ },
 969+
 970+ attr: function( elem, name, value ) {
 971+ // don't set attributes on text and comment nodes
 972+ if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
 973+ return undefined;
 974+
 975+ var notxml = !jQuery.isXMLDoc( elem ),
 976+ // Whether we are setting (or getting)
 977+ set = value !== undefined;
 978+
 979+ // Try to normalize/fix the name
 980+ name = notxml && jQuery.props[ name ] || name;
 981+
 982+ // Only do all the following if this is a node (faster for style)
 983+ // IE elem.getAttribute passes even for style
 984+ if ( elem.tagName ) {
 985+
 986+ // These attributes require special treatment
 987+ var special = /href|src|style/.test( name );
 988+
 989+ // Safari mis-reports the default selected property of a hidden option
 990+ // Accessing the parent's selectedIndex property fixes it
 991+ if ( name == "selected" && elem.parentNode )
 992+ elem.parentNode.selectedIndex;
 993+
 994+ // If applicable, access the attribute via the DOM 0 way
 995+ if ( name in elem && notxml && !special ) {
 996+ if ( set ){
 997+ // We can't allow the type property to be changed (since it causes problems in IE)
 998+ if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
 999+ throw "type property can't be changed";
 1000+
 1001+ elem[ name ] = value;
 1002+ }
 1003+
 1004+ // browsers index elements by id/name on forms, give priority to attributes.
 1005+ if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
 1006+ return elem.getAttributeNode( name ).nodeValue;
 1007+
 1008+ // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
 1009+ // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
 1010+ if ( name == "tabIndex" ) {
 1011+ var attributeNode = elem.getAttributeNode( "tabIndex" );
 1012+ return attributeNode && attributeNode.specified
 1013+ ? attributeNode.value
 1014+ : elem.nodeName.match(/(button|input|object|select|textarea)/i)
 1015+ ? 0
 1016+ : elem.nodeName.match(/^(a|area)$/i) && elem.href
 1017+ ? 0
 1018+ : undefined;
 1019+ }
 1020+
 1021+ return elem[ name ];
 1022+ }
 1023+
 1024+ if ( !jQuery.support.style && notxml && name == "style" )
 1025+ return jQuery.attr( elem.style, "cssText", value );
 1026+
 1027+ if ( set )
 1028+ // convert the value to a string (all browsers do this but IE) see #1070
 1029+ elem.setAttribute( name, "" + value );
 1030+
 1031+ var attr = !jQuery.support.hrefNormalized && notxml && special
 1032+ // Some attributes require a special call on IE
 1033+ ? elem.getAttribute( name, 2 )
 1034+ : elem.getAttribute( name );
 1035+
 1036+ // Non-existent attributes return null, we normalize to undefined
 1037+ return attr === null ? undefined : attr;
 1038+ }
 1039+
 1040+ // elem is actually elem.style ... set the style
 1041+
 1042+ // IE uses filters for opacity
 1043+ if ( !jQuery.support.opacity && name == "opacity" ) {
 1044+ if ( set ) {
 1045+ // IE has trouble with opacity if it does not have layout
 1046+ // Force it by setting the zoom level
 1047+ elem.zoom = 1;
 1048+
 1049+ // Set the alpha filter to set the opacity
 1050+ elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +
 1051+ (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
 1052+ }
 1053+
 1054+ return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
 1055+ (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
 1056+ "";
 1057+ }
 1058+
 1059+ name = name.replace(/-([a-z])/ig, function(all, letter){
 1060+ return letter.toUpperCase();
 1061+ });
 1062+
 1063+ if ( set && value != 'NaNpx' ) // Patched by Trevor, see http://is.gd/5NXiD
 1064+ elem[ name ] = value;
 1065+
 1066+ return elem[ name ];
 1067+ },
 1068+
 1069+ trim: function( text ) {
 1070+ return (text || "").replace( /^\s+|\s+$/g, "" );
 1071+ },
 1072+
 1073+ makeArray: function( array ) {
 1074+ var ret = [];
 1075+
 1076+ if( array != null ){
 1077+ var i = array.length;
 1078+ // The window, strings (and functions) also have 'length'
 1079+ if( i == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval )
 1080+ ret[0] = array;
 1081+ else
 1082+ while( i )
 1083+ ret[--i] = array[i];
 1084+ }
 1085+
 1086+ return ret;
 1087+ },
 1088+
 1089+ inArray: function( elem, array ) {
 1090+ for ( var i = 0, length = array.length; i < length; i++ )
 1091+ // Use === because on IE, window == document
 1092+ if ( array[ i ] === elem )
 1093+ return i;
 1094+
 1095+ return -1;
 1096+ },
 1097+
 1098+ merge: function( first, second ) {
 1099+ // We have to loop this way because IE & Opera overwrite the length
 1100+ // expando of getElementsByTagName
 1101+ var i = 0, elem, pos = first.length;
 1102+ // Also, we need to make sure that the correct elements are being returned
 1103+ // (IE returns comment nodes in a '*' query)
 1104+ if ( !jQuery.support.getAll ) {
 1105+ while ( (elem = second[ i++ ]) != null )
 1106+ if ( elem.nodeType != 8 )
 1107+ first[ pos++ ] = elem;
 1108+
 1109+ } else
 1110+ while ( (elem = second[ i++ ]) != null )
 1111+ first[ pos++ ] = elem;
 1112+
 1113+ return first;
 1114+ },
 1115+
 1116+ unique: function( array ) {
 1117+ var ret = [], done = {};
 1118+
 1119+ try {
 1120+
 1121+ for ( var i = 0, length = array.length; i < length; i++ ) {
 1122+ var id = jQuery.data( array[ i ] );
 1123+
 1124+ if ( !done[ id ] ) {
 1125+ done[ id ] = true;
 1126+ ret.push( array[ i ] );
 1127+ }
 1128+ }
 1129+
 1130+ } catch( e ) {
 1131+ ret = array;
 1132+ }
 1133+
 1134+ return ret;
 1135+ },
 1136+
 1137+ grep: function( elems, callback, inv ) {
 1138+ var ret = [];
 1139+
 1140+ // Go through the array, only saving the items
 1141+ // that pass the validator function
 1142+ for ( var i = 0, length = elems.length; i < length; i++ )
 1143+ if ( !inv != !callback( elems[ i ], i ) )
 1144+ ret.push( elems[ i ] );
 1145+
 1146+ return ret;
 1147+ },
 1148+
 1149+ map: function( elems, callback ) {
 1150+ var ret = [];
 1151+
 1152+ // Go through the array, translating each of the items to their
 1153+ // new value (or values).
 1154+ for ( var i = 0, length = elems.length; i < length; i++ ) {
 1155+ var value = callback( elems[ i ], i );
 1156+
 1157+ if ( value != null )
 1158+ ret[ ret.length ] = value;
 1159+ }
 1160+
 1161+ return ret.concat.apply( [], ret );
 1162+ }
 1163+});
 1164+
 1165+// Use of jQuery.browser is deprecated.
 1166+// It's included for backwards compatibility and plugins,
 1167+// although they should work to migrate away.
 1168+
 1169+var userAgent = navigator.userAgent.toLowerCase();
 1170+
 1171+// Figure out what browser is being used
 1172+jQuery.browser = {
 1173+ version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
 1174+ safari: /webkit/.test( userAgent ),
 1175+ opera: /opera/.test( userAgent ),
 1176+ msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
 1177+ mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
 1178+};
 1179+
 1180+jQuery.each({
 1181+ parent: function(elem){return elem.parentNode;},
 1182+ parents: function(elem){return jQuery.dir(elem,"parentNode");},
 1183+ next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
 1184+ prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
 1185+ nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
 1186+ prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
 1187+ siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
 1188+ children: function(elem){return jQuery.sibling(elem.firstChild);},
 1189+ contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
 1190+}, function(name, fn){
 1191+ jQuery.fn[ name ] = function( selector ) {
 1192+ var ret = jQuery.map( this, fn );
 1193+
 1194+ if ( selector && typeof selector == "string" )
 1195+ ret = jQuery.multiFilter( selector, ret );
 1196+
 1197+ return this.pushStack( jQuery.unique( ret ), name, selector );
 1198+ };
 1199+});
 1200+
 1201+jQuery.each({
 1202+ appendTo: "append",
 1203+ prependTo: "prepend",
 1204+ insertBefore: "before",
 1205+ insertAfter: "after",
 1206+ replaceAll: "replaceWith"
 1207+}, function(name, original){
 1208+ jQuery.fn[ name ] = function( selector ) {
 1209+ var ret = [], insert = jQuery( selector );
 1210+
 1211+ for ( var i = 0, l = insert.length; i < l; i++ ) {
 1212+ var elems = (i > 0 ? this.clone(true) : this).get();
 1213+ jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
 1214+ ret = ret.concat( elems );
 1215+ }
 1216+
 1217+ return this.pushStack( ret, name, selector );
 1218+ };
 1219+});
 1220+
 1221+jQuery.each({
 1222+ removeAttr: function( name ) {
 1223+ jQuery.attr( this, name, "" );
 1224+ if (this.nodeType == 1)
 1225+ this.removeAttribute( name );
 1226+ },
 1227+
 1228+ addClass: function( classNames ) {
 1229+ jQuery.className.add( this, classNames );
 1230+ },
 1231+
 1232+ removeClass: function( classNames ) {
 1233+ jQuery.className.remove( this, classNames );
 1234+ },
 1235+
 1236+ toggleClass: function( classNames, state ) {
 1237+ if( typeof state !== "boolean" )
 1238+ state = !jQuery.className.has( this, classNames );
 1239+ jQuery.className[ state ? "add" : "remove" ]( this, classNames );
 1240+ },
 1241+
 1242+ remove: function( selector ) {
 1243+ if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
 1244+ // Prevent memory leaks
 1245+ jQuery( "*", this ).add([this]).each(function(){
 1246+ jQuery.event.remove(this);
 1247+ jQuery.removeData(this);
 1248+ });
 1249+ if (this.parentNode)
 1250+ this.parentNode.removeChild( this );
 1251+ }
 1252+ },
 1253+
 1254+ empty: function() {
 1255+ // Remove element nodes and prevent memory leaks
 1256+ jQuery(this).children().remove();
 1257+
 1258+ // Remove any remaining nodes
 1259+ while ( this.firstChild )
 1260+ this.removeChild( this.firstChild );
 1261+ }
 1262+}, function(name, fn){
 1263+ jQuery.fn[ name ] = function(){
 1264+ return this.each( fn, arguments );
 1265+ };
 1266+});
 1267+
 1268+// Helper function used by the dimensions and offset modules
 1269+function num(elem, prop) {
 1270+ return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
 1271+}
 1272+var expando = "jQuery" + now(), uuid = 0, windowData = {};
 1273+
 1274+jQuery.extend({
 1275+ cache: {},
 1276+
 1277+ data: function( elem, name, data ) {
 1278+ elem = elem == window ?
 1279+ windowData :
 1280+ elem;
 1281+
 1282+ var id = elem[ expando ];
 1283+
 1284+ // Compute a unique ID for the element
 1285+ if ( !id )
 1286+ id = elem[ expando ] = ++uuid;
 1287+
 1288+ // Only generate the data cache if we're
 1289+ // trying to access or manipulate it
 1290+ if ( name && !jQuery.cache[ id ] )
 1291+ jQuery.cache[ id ] = {};
 1292+
 1293+ // Prevent overriding the named cache with undefined values
 1294+ if ( data !== undefined )
 1295+ jQuery.cache[ id ][ name ] = data;
 1296+
 1297+ // Return the named cache data, or the ID for the element
 1298+ return name ?
 1299+ jQuery.cache[ id ][ name ] :
 1300+ id;
 1301+ },
 1302+
 1303+ removeData: function( elem, name ) {
 1304+ elem = elem == window ?
 1305+ windowData :
 1306+ elem;
 1307+
 1308+ var id = elem[ expando ];
 1309+
 1310+ // If we want to remove a specific section of the element's data
 1311+ if ( name ) {
 1312+ if ( jQuery.cache[ id ] ) {
 1313+ // Remove the section of cache data
 1314+ delete jQuery.cache[ id ][ name ];
 1315+
 1316+ // If we've removed all the data, remove the element's cache
 1317+ name = "";
 1318+
 1319+ for ( name in jQuery.cache[ id ] )
 1320+ break;
 1321+
 1322+ if ( !name )
 1323+ jQuery.removeData( elem );
 1324+ }
 1325+
 1326+ // Otherwise, we want to remove all of the element's data
 1327+ } else {
 1328+ // Clean up the element expando
 1329+ try {
 1330+ delete elem[ expando ];
 1331+ } catch(e){
 1332+ // IE has trouble directly removing the expando
 1333+ // but it's ok with using removeAttribute
 1334+ if ( elem.removeAttribute )
 1335+ elem.removeAttribute( expando );
 1336+ }
 1337+
 1338+ // Completely remove the data cache
 1339+ delete jQuery.cache[ id ];
 1340+ }
 1341+ },
 1342+ queue: function( elem, type, data ) {
 1343+ if ( elem ){
 1344+
 1345+ type = (type || "fx") + "queue";
 1346+
 1347+ var q = jQuery.data( elem, type );
 1348+
 1349+ if ( !q || jQuery.isArray(data) )
 1350+ q = jQuery.data( elem, type, jQuery.makeArray(data) );
 1351+ else if( data )
 1352+ q.push( data );
 1353+
 1354+ }
 1355+ return q;
 1356+ },
 1357+
 1358+ dequeue: function( elem, type ){
 1359+ var queue = jQuery.queue( elem, type ),
 1360+ fn = queue.shift();
 1361+
 1362+ if( !type || type === "fx" )
 1363+ fn = queue[0];
 1364+
 1365+ if( fn !== undefined )
 1366+ fn.call(elem);
 1367+ }
 1368+});
 1369+
 1370+jQuery.fn.extend({
 1371+ data: function( key, value ){
 1372+ var parts = key.split(".");
 1373+ parts[1] = parts[1] ? "." + parts[1] : "";
 1374+
 1375+ if ( value === undefined ) {
 1376+ var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
 1377+
 1378+ if ( data === undefined && this.length )
 1379+ data = jQuery.data( this[0], key );
 1380+
 1381+ return data === undefined && parts[1] ?
 1382+ this.data( parts[0] ) :
 1383+ data;
 1384+ } else
 1385+ return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
 1386+ jQuery.data( this, key, value );
 1387+ });
 1388+ },
 1389+
 1390+ removeData: function( key ){
 1391+ return this.each(function(){
 1392+ jQuery.removeData( this, key );
 1393+ });
 1394+ },
 1395+ queue: function(type, data){
 1396+ if ( typeof type !== "string" ) {
 1397+ data = type;
 1398+ type = "fx";
 1399+ }
 1400+
 1401+ if ( data === undefined )
 1402+ return jQuery.queue( this[0], type );
 1403+
 1404+ return this.each(function(){
 1405+ var queue = jQuery.queue( this, type, data );
 1406+
 1407+ if( type == "fx" && queue.length == 1 )
 1408+ queue[0].call(this);
 1409+ });
 1410+ },
 1411+ dequeue: function(type){
 1412+ return this.each(function(){
 1413+ jQuery.dequeue( this, type );
 1414+ });
 1415+ }
 1416+});/*!
 1417+ * Sizzle CSS Selector Engine - v0.9.3
 1418+ * Copyright 2009, The Dojo Foundation
 1419+ * Released under the MIT, BSD, and GPL Licenses.
 1420+ * More information: http://sizzlejs.com/
 1421+ */
 1422+(function(){
 1423+
 1424+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,
 1425+ done = 0,
 1426+ toString = Object.prototype.toString;
 1427+
 1428+var Sizzle = function(selector, context, results, seed) {
 1429+ results = results || [];
 1430+ context = context || document;
 1431+
 1432+ if ( context.nodeType !== 1 && context.nodeType !== 9 )
 1433+ return [];
 1434+
 1435+ if ( !selector || typeof selector !== "string" ) {
 1436+ return results;
 1437+ }
 1438+
 1439+ var parts = [], m, set, checkSet, check, mode, extra, prune = true;
 1440+
 1441+ // Reset the position of the chunker regexp (start from head)
 1442+ chunker.lastIndex = 0;
 1443+
 1444+ while ( (m = chunker.exec(selector)) !== null ) {
 1445+ parts.push( m[1] );
 1446+
 1447+ if ( m[2] ) {
 1448+ extra = RegExp.rightContext;
 1449+ break;
 1450+ }
 1451+ }
 1452+
 1453+ if ( parts.length > 1 && origPOS.exec( selector ) ) {
 1454+ if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
 1455+ set = posProcess( parts[0] + parts[1], context );
 1456+ } else {
 1457+ set = Expr.relative[ parts[0] ] ?
 1458+ [ context ] :
 1459+ Sizzle( parts.shift(), context );
 1460+
 1461+ while ( parts.length ) {
 1462+ selector = parts.shift();
 1463+
 1464+ if ( Expr.relative[ selector ] )
 1465+ selector += parts.shift();
 1466+
 1467+ set = posProcess( selector, set );
 1468+ }
 1469+ }
 1470+ } else {
 1471+ var ret = seed ?
 1472+ { expr: parts.pop(), set: makeArray(seed) } :
 1473+ Sizzle.find( parts.pop(), parts.length === 1 && context.parentNode ? context.parentNode : context, isXML(context) );
 1474+ set = Sizzle.filter( ret.expr, ret.set );
 1475+
 1476+ if ( parts.length > 0 ) {
 1477+ checkSet = makeArray(set);
 1478+ } else {
 1479+ prune = false;
 1480+ }
 1481+
 1482+ while ( parts.length ) {
 1483+ var cur = parts.pop(), pop = cur;
 1484+
 1485+ if ( !Expr.relative[ cur ] ) {
 1486+ cur = "";
 1487+ } else {
 1488+ pop = parts.pop();
 1489+ }
 1490+
 1491+ if ( pop == null ) {
 1492+ pop = context;
 1493+ }
 1494+
 1495+ Expr.relative[ cur ]( checkSet, pop, isXML(context) );
 1496+ }
 1497+ }
 1498+
 1499+ if ( !checkSet ) {
 1500+ checkSet = set;
 1501+ }
 1502+
 1503+ if ( !checkSet ) {
 1504+ throw "Syntax error, unrecognized expression: " + (cur || selector);
 1505+ }
 1506+
 1507+ if ( toString.call(checkSet) === "[object Array]" ) {
 1508+ if ( !prune ) {
 1509+ results.push.apply( results, checkSet );
 1510+ } else if ( context.nodeType === 1 ) {
 1511+ for ( var i = 0; checkSet[i] != null; i++ ) {
 1512+ if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
 1513+ results.push( set[i] );
 1514+ }
 1515+ }
 1516+ } else {
 1517+ for ( var i = 0; checkSet[i] != null; i++ ) {
 1518+ if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
 1519+ results.push( set[i] );
 1520+ }
 1521+ }
 1522+ }
 1523+ } else {
 1524+ makeArray( checkSet, results );
 1525+ }
 1526+
 1527+ if ( extra ) {
 1528+ Sizzle( extra, context, results, seed );
 1529+
 1530+ if ( sortOrder ) {
 1531+ hasDuplicate = false;
 1532+ results.sort(sortOrder);
 1533+
 1534+ if ( hasDuplicate ) {
 1535+ for ( var i = 1; i < results.length; i++ ) {
 1536+ if ( results[i] === results[i-1] ) {
 1537+ results.splice(i--, 1);
 1538+ }
 1539+ }
 1540+ }
 1541+ }
 1542+ }
 1543+
 1544+ return results;
 1545+};
 1546+
 1547+Sizzle.matches = function(expr, set){
 1548+ return Sizzle(expr, null, null, set);
 1549+};
 1550+
 1551+Sizzle.find = function(expr, context, isXML){
 1552+ var set, match;
 1553+
 1554+ if ( !expr ) {
 1555+ return [];
 1556+ }
 1557+
 1558+ for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
 1559+ var type = Expr.order[i], match;
 1560+
 1561+ if ( (match = Expr.match[ type ].exec( expr )) ) {
 1562+ var left = RegExp.leftContext;
 1563+
 1564+ if ( left.substr( left.length - 1 ) !== "\\" ) {
 1565+ match[1] = (match[1] || "").replace(/\\/g, "");
 1566+ set = Expr.find[ type ]( match, context, isXML );
 1567+ if ( set != null ) {
 1568+ expr = expr.replace( Expr.match[ type ], "" );
 1569+ break;
 1570+ }
 1571+ }
 1572+ }
 1573+ }
 1574+
 1575+ if ( !set ) {
 1576+ set = context.getElementsByTagName("*");
 1577+ }
 1578+
 1579+ return {set: set, expr: expr};
 1580+};
 1581+
 1582+Sizzle.filter = function(expr, set, inplace, not){
 1583+ var old = expr, result = [], curLoop = set, match, anyFound,
 1584+ isXMLFilter = set && set[0] && isXML(set[0]);
 1585+
 1586+ while ( expr && set.length ) {
 1587+ for ( var type in Expr.filter ) {
 1588+ if ( (match = Expr.match[ type ].exec( expr )) != null ) {
 1589+ var filter = Expr.filter[ type ], found, item;
 1590+ anyFound = false;
 1591+
 1592+ if ( curLoop == result ) {
 1593+ result = [];
 1594+ }
 1595+
 1596+ if ( Expr.preFilter[ type ] ) {
 1597+ match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
 1598+
 1599+ if ( !match ) {
 1600+ anyFound = found = true;
 1601+ } else if ( match === true ) {
 1602+ continue;
 1603+ }
 1604+ }
 1605+
 1606+ if ( match ) {
 1607+ for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
 1608+ if ( item ) {
 1609+ found = filter( item, match, i, curLoop );
 1610+ var pass = not ^ !!found;
 1611+
 1612+ if ( inplace && found != null ) {
 1613+ if ( pass ) {
 1614+ anyFound = true;
 1615+ } else {
 1616+ curLoop[i] = false;
 1617+ }
 1618+ } else if ( pass ) {
 1619+ result.push( item );
 1620+ anyFound = true;
 1621+ }
 1622+ }
 1623+ }
 1624+ }
 1625+
 1626+ if ( found !== undefined ) {
 1627+ if ( !inplace ) {
 1628+ curLoop = result;
 1629+ }
 1630+
 1631+ expr = expr.replace( Expr.match[ type ], "" );
 1632+
 1633+ if ( !anyFound ) {
 1634+ return [];
 1635+ }
 1636+
 1637+ break;
 1638+ }
 1639+ }
 1640+ }
 1641+
 1642+ // Improper expression
 1643+ if ( expr == old ) {
 1644+ if ( anyFound == null ) {
 1645+ throw "Syntax error, unrecognized expression: " + expr;
 1646+ } else {
 1647+ break;
 1648+ }
 1649+ }
 1650+
 1651+ old = expr;
 1652+ }
 1653+
 1654+ return curLoop;
 1655+};
 1656+
 1657+var Expr = Sizzle.selectors = {
 1658+ order: [ "ID", "NAME", "TAG" ],
 1659+ match: {
 1660+ ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
 1661+ CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
 1662+ NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,
 1663+ ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
 1664+ TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,
 1665+ CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
 1666+ POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
 1667+ PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/
 1668+ },
 1669+ attrMap: {
 1670+ "class": "className",
 1671+ "for": "htmlFor"
 1672+ },
 1673+ attrHandle: {
 1674+ href: function(elem){
 1675+ return elem.getAttribute("href");
 1676+ }
 1677+ },
 1678+ relative: {
 1679+ "+": function(checkSet, part, isXML){
 1680+ var isPartStr = typeof part === "string",
 1681+ isTag = isPartStr && !/\W/.test(part),
 1682+ isPartStrNotTag = isPartStr && !isTag;
 1683+
 1684+ if ( isTag && !isXML ) {
 1685+ part = part.toUpperCase();
 1686+ }
 1687+
 1688+ for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
 1689+ if ( (elem = checkSet[i]) ) {
 1690+ while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
 1691+
 1692+ checkSet[i] = isPartStrNotTag || elem && elem.nodeName === part ?
 1693+ elem || false :
 1694+ elem === part;
 1695+ }
 1696+ }
 1697+
 1698+ if ( isPartStrNotTag ) {
 1699+ Sizzle.filter( part, checkSet, true );
 1700+ }
 1701+ },
 1702+ ">": function(checkSet, part, isXML){
 1703+ var isPartStr = typeof part === "string";
 1704+
 1705+ if ( isPartStr && !/\W/.test(part) ) {
 1706+ part = isXML ? part : part.toUpperCase();
 1707+
 1708+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 1709+ var elem = checkSet[i];
 1710+ if ( elem ) {
 1711+ var parent = elem.parentNode;
 1712+ checkSet[i] = parent.nodeName === part ? parent : false;
 1713+ }
 1714+ }
 1715+ } else {
 1716+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 1717+ var elem = checkSet[i];
 1718+ if ( elem ) {
 1719+ checkSet[i] = isPartStr ?
 1720+ elem.parentNode :
 1721+ elem.parentNode === part;
 1722+ }
 1723+ }
 1724+
 1725+ if ( isPartStr ) {
 1726+ Sizzle.filter( part, checkSet, true );
 1727+ }
 1728+ }
 1729+ },
 1730+ "": function(checkSet, part, isXML){
 1731+ var doneName = done++, checkFn = dirCheck;
 1732+
 1733+ if ( !part.match(/\W/) ) {
 1734+ var nodeCheck = part = isXML ? part : part.toUpperCase();
 1735+ checkFn = dirNodeCheck;
 1736+ }
 1737+
 1738+ checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
 1739+ },
 1740+ "~": function(checkSet, part, isXML){
 1741+ var doneName = done++, checkFn = dirCheck;
 1742+
 1743+ if ( typeof part === "string" && !part.match(/\W/) ) {
 1744+ var nodeCheck = part = isXML ? part : part.toUpperCase();
 1745+ checkFn = dirNodeCheck;
 1746+ }
 1747+
 1748+ checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
 1749+ }
 1750+ },
 1751+ find: {
 1752+ ID: function(match, context, isXML){
 1753+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
 1754+ var m = context.getElementById(match[1]);
 1755+ return m ? [m] : [];
 1756+ }
 1757+ },
 1758+ NAME: function(match, context, isXML){
 1759+ if ( typeof context.getElementsByName !== "undefined" ) {
 1760+ var ret = [], results = context.getElementsByName(match[1]);
 1761+
 1762+ for ( var i = 0, l = results.length; i < l; i++ ) {
 1763+ if ( results[i].getAttribute("name") === match[1] ) {
 1764+ ret.push( results[i] );
 1765+ }
 1766+ }
 1767+
 1768+ return ret.length === 0 ? null : ret;
 1769+ }
 1770+ },
 1771+ TAG: function(match, context){
 1772+ return context.getElementsByTagName(match[1]);
 1773+ }
 1774+ },
 1775+ preFilter: {
 1776+ CLASS: function(match, curLoop, inplace, result, not, isXML){
 1777+ match = " " + match[1].replace(/\\/g, "") + " ";
 1778+
 1779+ if ( isXML ) {
 1780+ return match;
 1781+ }
 1782+
 1783+ for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
 1784+ if ( elem ) {
 1785+ if ( not ^ (elem.className && (" " + elem.className + " ").indexOf(match) >= 0) ) {
 1786+ if ( !inplace )
 1787+ result.push( elem );
 1788+ } else if ( inplace ) {
 1789+ curLoop[i] = false;
 1790+ }
 1791+ }
 1792+ }
 1793+
 1794+ return false;
 1795+ },
 1796+ ID: function(match){
 1797+ return match[1].replace(/\\/g, "");
 1798+ },
 1799+ TAG: function(match, curLoop){
 1800+ for ( var i = 0; curLoop[i] === false; i++ ){}
 1801+ return curLoop[i] && isXML(curLoop[i]) ? match[1] : match[1].toUpperCase();
 1802+ },
 1803+ CHILD: function(match){
 1804+ if ( match[1] == "nth" ) {
 1805+ // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
 1806+ var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
 1807+ match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
 1808+ !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
 1809+
 1810+ // calculate the numbers (first)n+(last) including if they are negative
 1811+ match[2] = (test[1] + (test[2] || 1)) - 0;
 1812+ match[3] = test[3] - 0;
 1813+ }
 1814+
 1815+ // TODO: Move to normal caching system
 1816+ match[0] = done++;
 1817+
 1818+ return match;
 1819+ },
 1820+ ATTR: function(match, curLoop, inplace, result, not, isXML){
 1821+ var name = match[1].replace(/\\/g, "");
 1822+
 1823+ if ( !isXML && Expr.attrMap[name] ) {
 1824+ match[1] = Expr.attrMap[name];
 1825+ }
 1826+
 1827+ if ( match[2] === "~=" ) {
 1828+ match[4] = " " + match[4] + " ";
 1829+ }
 1830+
 1831+ return match;
 1832+ },
 1833+ PSEUDO: function(match, curLoop, inplace, result, not){
 1834+ if ( match[1] === "not" ) {
 1835+ // If we're dealing with a complex expression, or a simple one
 1836+ if ( match[3].match(chunker).length > 1 || /^\w/.test(match[3]) ) {
 1837+ match[3] = Sizzle(match[3], null, null, curLoop);
 1838+ } else {
 1839+ var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
 1840+ if ( !inplace ) {
 1841+ result.push.apply( result, ret );
 1842+ }
 1843+ return false;
 1844+ }
 1845+ } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
 1846+ return true;
 1847+ }
 1848+
 1849+ return match;
 1850+ },
 1851+ POS: function(match){
 1852+ match.unshift( true );
 1853+ return match;
 1854+ }
 1855+ },
 1856+ filters: {
 1857+ enabled: function(elem){
 1858+ return elem.disabled === false && elem.type !== "hidden";
 1859+ },
 1860+ disabled: function(elem){
 1861+ return elem.disabled === true;
 1862+ },
 1863+ checked: function(elem){
 1864+ return elem.checked === true;
 1865+ },
 1866+ selected: function(elem){
 1867+ // Accessing this property makes selected-by-default
 1868+ // options in Safari work properly
 1869+ elem.parentNode.selectedIndex;
 1870+ return elem.selected === true;
 1871+ },
 1872+ parent: function(elem){
 1873+ return !!elem.firstChild;
 1874+ },
 1875+ empty: function(elem){
 1876+ return !elem.firstChild;
 1877+ },
 1878+ has: function(elem, i, match){
 1879+ return !!Sizzle( match[3], elem ).length;
 1880+ },
 1881+ header: function(elem){
 1882+ return /h\d/i.test( elem.nodeName );
 1883+ },
 1884+ text: function(elem){
 1885+ return "text" === elem.type;
 1886+ },
 1887+ radio: function(elem){
 1888+ return "radio" === elem.type;
 1889+ },
 1890+ checkbox: function(elem){
 1891+ return "checkbox" === elem.type;
 1892+ },
 1893+ file: function(elem){
 1894+ return "file" === elem.type;
 1895+ },
 1896+ password: function(elem){
 1897+ return "password" === elem.type;
 1898+ },
 1899+ submit: function(elem){
 1900+ return "submit" === elem.type;
 1901+ },
 1902+ image: function(elem){
 1903+ return "image" === elem.type;
 1904+ },
 1905+ reset: function(elem){
 1906+ return "reset" === elem.type;
 1907+ },
 1908+ button: function(elem){
 1909+ return "button" === elem.type || elem.nodeName.toUpperCase() === "BUTTON";
 1910+ },
 1911+ input: function(elem){
 1912+ return /input|select|textarea|button/i.test(elem.nodeName);
 1913+ }
 1914+ },
 1915+ setFilters: {
 1916+ first: function(elem, i){
 1917+ return i === 0;
 1918+ },
 1919+ last: function(elem, i, match, array){
 1920+ return i === array.length - 1;
 1921+ },
 1922+ even: function(elem, i){
 1923+ return i % 2 === 0;
 1924+ },
 1925+ odd: function(elem, i){
 1926+ return i % 2 === 1;
 1927+ },
 1928+ lt: function(elem, i, match){
 1929+ return i < match[3] - 0;
 1930+ },
 1931+ gt: function(elem, i, match){
 1932+ return i > match[3] - 0;
 1933+ },
 1934+ nth: function(elem, i, match){
 1935+ return match[3] - 0 == i;
 1936+ },
 1937+ eq: function(elem, i, match){
 1938+ return match[3] - 0 == i;
 1939+ }
 1940+ },
 1941+ filter: {
 1942+ PSEUDO: function(elem, match, i, array){
 1943+ var name = match[1], filter = Expr.filters[ name ];
 1944+
 1945+ if ( filter ) {
 1946+ return filter( elem, i, match, array );
 1947+ } else if ( name === "contains" ) {
 1948+ return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;
 1949+ } else if ( name === "not" ) {
 1950+ var not = match[3];
 1951+
 1952+ for ( var i = 0, l = not.length; i < l; i++ ) {
 1953+ if ( not[i] === elem ) {
 1954+ return false;
 1955+ }
 1956+ }
 1957+
 1958+ return true;
 1959+ }
 1960+ },
 1961+ CHILD: function(elem, match){
 1962+ var type = match[1], node = elem;
 1963+ switch (type) {
 1964+ case 'only':
 1965+ case 'first':
 1966+ while (node = node.previousSibling) {
 1967+ if ( node.nodeType === 1 ) return false;
 1968+ }
 1969+ if ( type == 'first') return true;
 1970+ node = elem;
 1971+ case 'last':
 1972+ while (node = node.nextSibling) {
 1973+ if ( node.nodeType === 1 ) return false;
 1974+ }
 1975+ return true;
 1976+ case 'nth':
 1977+ var first = match[2], last = match[3];
 1978+
 1979+ if ( first == 1 && last == 0 ) {
 1980+ return true;
 1981+ }
 1982+
 1983+ var doneName = match[0],
 1984+ parent = elem.parentNode;
 1985+
 1986+ if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
 1987+ var count = 0;
 1988+ for ( node = parent.firstChild; node; node = node.nextSibling ) {
 1989+ if ( node.nodeType === 1 ) {
 1990+ node.nodeIndex = ++count;
 1991+ }
 1992+ }
 1993+ parent.sizcache = doneName;
 1994+ }
 1995+
 1996+ var diff = elem.nodeIndex - last;
 1997+ if ( first == 0 ) {
 1998+ return diff == 0;
 1999+ } else {
 2000+ return ( diff % first == 0 && diff / first >= 0 );
 2001+ }
 2002+ }
 2003+ },
 2004+ ID: function(elem, match){
 2005+ return elem.nodeType === 1 && elem.getAttribute("id") === match;
 2006+ },
 2007+ TAG: function(elem, match){
 2008+ return (match === "*" && elem.nodeType === 1) || elem.nodeName === match;
 2009+ },
 2010+ CLASS: function(elem, match){
 2011+ return (" " + (elem.className || elem.getAttribute("class")) + " ")
 2012+ .indexOf( match ) > -1;
 2013+ },
 2014+ ATTR: function(elem, match){
 2015+ var name = match[1],
 2016+ result = Expr.attrHandle[ name ] ?
 2017+ Expr.attrHandle[ name ]( elem ) :
 2018+ elem[ name ] != null ?
 2019+ elem[ name ] :
 2020+ elem.getAttribute( name ),
 2021+ value = result + "",
 2022+ type = match[2],
 2023+ check = match[4];
 2024+
 2025+ return result == null ?
 2026+ type === "!=" :
 2027+ type === "=" ?
 2028+ value === check :
 2029+ type === "*=" ?
 2030+ value.indexOf(check) >= 0 :
 2031+ type === "~=" ?
 2032+ (" " + value + " ").indexOf(check) >= 0 :
 2033+ !check ?
 2034+ value && result !== false :
 2035+ type === "!=" ?
 2036+ value != check :
 2037+ type === "^=" ?
 2038+ value.indexOf(check) === 0 :
 2039+ type === "$=" ?
 2040+ value.substr(value.length - check.length) === check :
 2041+ type === "|=" ?
 2042+ value === check || value.substr(0, check.length + 1) === check + "-" :
 2043+ false;
 2044+ },
 2045+ POS: function(elem, match, i, array){
 2046+ var name = match[2], filter = Expr.setFilters[ name ];
 2047+
 2048+ if ( filter ) {
 2049+ return filter( elem, i, match, array );
 2050+ }
 2051+ }
 2052+ }
 2053+};
 2054+
 2055+var origPOS = Expr.match.POS;
 2056+
 2057+for ( var type in Expr.match ) {
 2058+ Expr.match[ type ] = RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
 2059+}
 2060+
 2061+var makeArray = function(array, results) {
 2062+ array = Array.prototype.slice.call( array );
 2063+
 2064+ if ( results ) {
 2065+ results.push.apply( results, array );
 2066+ return results;
 2067+ }
 2068+
 2069+ return array;
 2070+};
 2071+
 2072+// Perform a simple check to determine if the browser is capable of
 2073+// converting a NodeList to an array using builtin methods.
 2074+try {
 2075+ Array.prototype.slice.call( document.documentElement.childNodes );
 2076+
 2077+// Provide a fallback method if it does not work
 2078+} catch(e){
 2079+ makeArray = function(array, results) {
 2080+ var ret = results || [];
 2081+
 2082+ if ( toString.call(array) === "[object Array]" ) {
 2083+ Array.prototype.push.apply( ret, array );
 2084+ } else {
 2085+ if ( typeof array.length === "number" ) {
 2086+ for ( var i = 0, l = array.length; i < l; i++ ) {
 2087+ ret.push( array[i] );
 2088+ }
 2089+ } else {
 2090+ for ( var i = 0; array[i]; i++ ) {
 2091+ ret.push( array[i] );
 2092+ }
 2093+ }
 2094+ }
 2095+
 2096+ return ret;
 2097+ };
 2098+}
 2099+
 2100+var sortOrder;
 2101+
 2102+if ( document.documentElement.compareDocumentPosition ) {
 2103+ sortOrder = function( a, b ) {
 2104+ var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
 2105+ if ( ret === 0 ) {
 2106+ hasDuplicate = true;
 2107+ }
 2108+ return ret;
 2109+ };
 2110+} else if ( "sourceIndex" in document.documentElement ) {
 2111+ sortOrder = function( a, b ) {
 2112+ var ret = a.sourceIndex - b.sourceIndex;
 2113+ if ( ret === 0 ) {
 2114+ hasDuplicate = true;
 2115+ }
 2116+ return ret;
 2117+ };
 2118+} else if ( document.createRange ) {
 2119+ sortOrder = function( a, b ) {
 2120+ var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
 2121+ aRange.selectNode(a);
 2122+ aRange.collapse(true);
 2123+ bRange.selectNode(b);
 2124+ bRange.collapse(true);
 2125+ var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
 2126+ if ( ret === 0 ) {
 2127+ hasDuplicate = true;
 2128+ }
 2129+ return ret;
 2130+ };
 2131+}
 2132+
 2133+// Check to see if the browser returns elements by name when
 2134+// querying by getElementById (and provide a workaround)
 2135+(function(){
 2136+ // We're going to inject a fake input element with a specified name
 2137+ var form = document.createElement("form"),
 2138+ id = "script" + (new Date).getTime();
 2139+ form.innerHTML = "<input name='" + id + "'/>";
 2140+
 2141+ // Inject it into the root element, check its status, and remove it quickly
 2142+ var root = document.documentElement;
 2143+ root.insertBefore( form, root.firstChild );
 2144+
 2145+ // The workaround has to do additional checks after a getElementById
 2146+ // Which slows things down for other browsers (hence the branching)
 2147+ if ( !!document.getElementById( id ) ) {
 2148+ Expr.find.ID = function(match, context, isXML){
 2149+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
 2150+ var m = context.getElementById(match[1]);
 2151+ return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
 2152+ }
 2153+ };
 2154+
 2155+ Expr.filter.ID = function(elem, match){
 2156+ var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
 2157+ return elem.nodeType === 1 && node && node.nodeValue === match;
 2158+ };
 2159+ }
 2160+
 2161+ root.removeChild( form );
 2162+})();
 2163+
 2164+(function(){
 2165+ // Check to see if the browser returns only elements
 2166+ // when doing getElementsByTagName("*")
 2167+
 2168+ // Create a fake element
 2169+ var div = document.createElement("div");
 2170+ div.appendChild( document.createComment("") );
 2171+
 2172+ // Make sure no comments are found
 2173+ if ( div.getElementsByTagName("*").length > 0 ) {
 2174+ Expr.find.TAG = function(match, context){
 2175+ var results = context.getElementsByTagName(match[1]);
 2176+
 2177+ // Filter out possible comments
 2178+ if ( match[1] === "*" ) {
 2179+ var tmp = [];
 2180+
 2181+ for ( var i = 0; results[i]; i++ ) {
 2182+ if ( results[i].nodeType === 1 ) {
 2183+ tmp.push( results[i] );
 2184+ }
 2185+ }
 2186+
 2187+ results = tmp;
 2188+ }
 2189+
 2190+ return results;
 2191+ };
 2192+ }
 2193+
 2194+ // Check to see if an attribute returns normalized href attributes
 2195+ div.innerHTML = "<a href='#'></a>";
 2196+ if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
 2197+ div.firstChild.getAttribute("href") !== "#" ) {
 2198+ Expr.attrHandle.href = function(elem){
 2199+ return elem.getAttribute("href", 2);
 2200+ };
 2201+ }
 2202+})();
 2203+
 2204+if ( document.querySelectorAll ) (function(){
 2205+ var oldSizzle = Sizzle, div = document.createElement("div");
 2206+ div.innerHTML = "<p class='TEST'></p>";
 2207+
 2208+ // Safari can't handle uppercase or unicode characters when
 2209+ // in quirks mode.
 2210+ if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
 2211+ return;
 2212+ }
 2213+
 2214+ Sizzle = function(query, context, extra, seed){
 2215+ context = context || document;
 2216+
 2217+ // Only use querySelectorAll on non-XML documents
 2218+ // (ID selectors don't work in non-HTML documents)
 2219+ if ( !seed && context.nodeType === 9 && !isXML(context) ) {
 2220+ try {
 2221+ return makeArray( context.querySelectorAll(query), extra );
 2222+ } catch(e){}
 2223+ }
 2224+
 2225+ return oldSizzle(query, context, extra, seed);
 2226+ };
 2227+
 2228+ Sizzle.find = oldSizzle.find;
 2229+ Sizzle.filter = oldSizzle.filter;
 2230+ Sizzle.selectors = oldSizzle.selectors;
 2231+ Sizzle.matches = oldSizzle.matches;
 2232+})();
 2233+
 2234+if ( document.getElementsByClassName && document.documentElement.getElementsByClassName ) (function(){
 2235+ var div = document.createElement("div");
 2236+ div.innerHTML = "<div class='test e'></div><div class='test'></div>";
 2237+
 2238+ // Opera can't find a second classname (in 9.6)
 2239+ if ( div.getElementsByClassName("e").length === 0 )
 2240+ return;
 2241+
 2242+ // Safari caches class attributes, doesn't catch changes (in 3.2)
 2243+ div.lastChild.className = "e";
 2244+
 2245+ if ( div.getElementsByClassName("e").length === 1 )
 2246+ return;
 2247+
 2248+ Expr.order.splice(1, 0, "CLASS");
 2249+ Expr.find.CLASS = function(match, context, isXML) {
 2250+ if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
 2251+ return context.getElementsByClassName(match[1]);
 2252+ }
 2253+ };
 2254+})();
 2255+
 2256+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
 2257+ var sibDir = dir == "previousSibling" && !isXML;
 2258+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 2259+ var elem = checkSet[i];
 2260+ if ( elem ) {
 2261+ if ( sibDir && elem.nodeType === 1 ){
 2262+ elem.sizcache = doneName;
 2263+ elem.sizset = i;
 2264+ }
 2265+ elem = elem[dir];
 2266+ var match = false;
 2267+
 2268+ while ( elem ) {
 2269+ if ( elem.sizcache === doneName ) {
 2270+ match = checkSet[elem.sizset];
 2271+ break;
 2272+ }
 2273+
 2274+ if ( elem.nodeType === 1 && !isXML ){
 2275+ elem.sizcache = doneName;
 2276+ elem.sizset = i;
 2277+ }
 2278+
 2279+ if ( elem.nodeName === cur ) {
 2280+ match = elem;
 2281+ break;
 2282+ }
 2283+
 2284+ elem = elem[dir];
 2285+ }
 2286+
 2287+ checkSet[i] = match;
 2288+ }
 2289+ }
 2290+}
 2291+
 2292+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
 2293+ var sibDir = dir == "previousSibling" && !isXML;
 2294+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 2295+ var elem = checkSet[i];
 2296+ if ( elem ) {
 2297+ if ( sibDir && elem.nodeType === 1 ) {
 2298+ elem.sizcache = doneName;
 2299+ elem.sizset = i;
 2300+ }
 2301+ elem = elem[dir];
 2302+ var match = false;
 2303+
 2304+ while ( elem ) {
 2305+ if ( elem.sizcache === doneName ) {
 2306+ match = checkSet[elem.sizset];
 2307+ break;
 2308+ }
 2309+
 2310+ if ( elem.nodeType === 1 ) {
 2311+ if ( !isXML ) {
 2312+ elem.sizcache = doneName;
 2313+ elem.sizset = i;
 2314+ }
 2315+ if ( typeof cur !== "string" ) {
 2316+ if ( elem === cur ) {
 2317+ match = true;
 2318+ break;
 2319+ }
 2320+
 2321+ } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
 2322+ match = elem;
 2323+ break;
 2324+ }
 2325+ }
 2326+
 2327+ elem = elem[dir];
 2328+ }
 2329+
 2330+ checkSet[i] = match;
 2331+ }
 2332+ }
 2333+}
 2334+
 2335+var contains = document.compareDocumentPosition ? function(a, b){
 2336+ return a.compareDocumentPosition(b) & 16;
 2337+} : function(a, b){
 2338+ return a !== b && (a.contains ? a.contains(b) : true);
 2339+};
 2340+
 2341+var isXML = function(elem){
 2342+ return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
 2343+ !!elem.ownerDocument && isXML( elem.ownerDocument );
 2344+};
 2345+
 2346+var posProcess = function(selector, context){
 2347+ var tmpSet = [], later = "", match,
 2348+ root = context.nodeType ? [context] : context;
 2349+
 2350+ // Position selectors must be done after the filter
 2351+ // And so must :not(positional) so we move all PSEUDOs to the end
 2352+ while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
 2353+ later += match[0];
 2354+ selector = selector.replace( Expr.match.PSEUDO, "" );
 2355+ }
 2356+
 2357+ selector = Expr.relative[selector] ? selector + "*" : selector;
 2358+
 2359+ for ( var i = 0, l = root.length; i < l; i++ ) {
 2360+ Sizzle( selector, root[i], tmpSet );
 2361+ }
 2362+
 2363+ return Sizzle.filter( later, tmpSet );
 2364+};
 2365+
 2366+// EXPOSE
 2367+jQuery.find = Sizzle;
 2368+jQuery.filter = Sizzle.filter;
 2369+jQuery.expr = Sizzle.selectors;
 2370+jQuery.expr[":"] = jQuery.expr.filters;
 2371+
 2372+Sizzle.selectors.filters.hidden = function(elem){
 2373+ return elem.offsetWidth === 0 || elem.offsetHeight === 0;
 2374+};
 2375+
 2376+Sizzle.selectors.filters.visible = function(elem){
 2377+ return elem.offsetWidth > 0 || elem.offsetHeight > 0;
 2378+};
 2379+
 2380+Sizzle.selectors.filters.animated = function(elem){
 2381+ return jQuery.grep(jQuery.timers, function(fn){
 2382+ return elem === fn.elem;
 2383+ }).length;
 2384+};
 2385+
 2386+jQuery.multiFilter = function( expr, elems, not ) {
 2387+ if ( not ) {
 2388+ expr = ":not(" + expr + ")";
 2389+ }
 2390+
 2391+ return Sizzle.matches(expr, elems);
 2392+};
 2393+
 2394+jQuery.dir = function( elem, dir ){
 2395+ var matched = [], cur = elem[dir];
 2396+ while ( cur && cur != document ) {
 2397+ if ( cur.nodeType == 1 )
 2398+ matched.push( cur );
 2399+ cur = cur[dir];
 2400+ }
 2401+ return matched;
 2402+};
 2403+
 2404+jQuery.nth = function(cur, result, dir, elem){
 2405+ result = result || 1;
 2406+ var num = 0;
 2407+
 2408+ for ( ; cur; cur = cur[dir] )
 2409+ if ( cur.nodeType == 1 && ++num == result )
 2410+ break;
 2411+
 2412+ return cur;
 2413+};
 2414+
 2415+jQuery.sibling = function(n, elem){
 2416+ var r = [];
 2417+
 2418+ for ( ; n; n = n.nextSibling ) {
 2419+ if ( n.nodeType == 1 && n != elem )
 2420+ r.push( n );
 2421+ }
 2422+
 2423+ return r;
 2424+};
 2425+
 2426+return;
 2427+
 2428+window.Sizzle = Sizzle;
 2429+
 2430+})();
 2431+/*
 2432+ * A number of helper functions used for managing events.
 2433+ * Many of the ideas behind this code originated from
 2434+ * Dean Edwards' addEvent library.
 2435+ */
 2436+jQuery.event = {
 2437+
 2438+ // Bind an event to an element
 2439+ // Original by Dean Edwards
 2440+ add: function(elem, types, handler, data) {
 2441+ if ( elem.nodeType == 3 || elem.nodeType == 8 )
 2442+ return;
 2443+
 2444+ // For whatever reason, IE has trouble passing the window object
 2445+ // around, causing it to be cloned in the process
 2446+ if ( elem.setInterval && elem != window )
 2447+ elem = window;
 2448+
 2449+ // Make sure that the function being executed has a unique ID
 2450+ if ( !handler.guid )
 2451+ handler.guid = this.guid++;
 2452+
 2453+ // if data is passed, bind to handler
 2454+ if ( data !== undefined ) {
 2455+ // Create temporary function pointer to original handler
 2456+ var fn = handler;
 2457+
 2458+ // Create unique handler function, wrapped around original handler
 2459+ handler = this.proxy( fn );
 2460+
 2461+ // Store data in unique handler
 2462+ handler.data = data;
 2463+ }
 2464+
 2465+ // Init the element's event structure
 2466+ var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
 2467+ handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
 2468+ // Handle the second event of a trigger and when
 2469+ // an event is called after a page has unloaded
 2470+ return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
 2471+ jQuery.event.handle.apply(arguments.callee.elem, arguments) :
 2472+ undefined;
 2473+ });
 2474+ // Add elem as a property of the handle function
 2475+ // This is to prevent a memory leak with non-native
 2476+ // event in IE.
 2477+ handle.elem = elem;
 2478+
 2479+ // Handle multiple events separated by a space
 2480+ // jQuery(...).bind("mouseover mouseout", fn);
 2481+ jQuery.each(types.split(/\s+/), function(index, type) {
 2482+ // Namespaced event handlers
 2483+ var namespaces = type.split(".");
 2484+ type = namespaces.shift();
 2485+ handler.type = namespaces.slice().sort().join(".");
 2486+
 2487+ // Get the current list of functions bound to this event
 2488+ var handlers = events[type];
 2489+
 2490+ if ( jQuery.event.specialAll[type] )
 2491+ jQuery.event.specialAll[type].setup.call(elem, data, namespaces);
 2492+
 2493+ // Init the event handler queue
 2494+ if (!handlers) {
 2495+ handlers = events[type] = {};
 2496+
 2497+ // Check for a special event handler
 2498+ // Only use addEventListener/attachEvent if the special
 2499+ // events handler returns false
 2500+ if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem, data, namespaces) === false ) {
 2501+ // Bind the global event handler to the element
 2502+ if (elem.addEventListener)
 2503+ elem.addEventListener(type, handle, false);
 2504+ else if (elem.attachEvent)
 2505+ elem.attachEvent("on" + type, handle);
 2506+ }
 2507+ }
 2508+
 2509+ // Add the function to the element's handler list
 2510+ handlers[handler.guid] = handler;
 2511+
 2512+ // Keep track of which events have been used, for global triggering
 2513+ jQuery.event.global[type] = true;
 2514+ });
 2515+
 2516+ // Nullify elem to prevent memory leaks in IE
 2517+ elem = null;
 2518+ },
 2519+
 2520+ guid: 1,
 2521+ global: {},
 2522+
 2523+ // Detach an event or set of events from an element
 2524+ remove: function(elem, types, handler) {
 2525+ // don't do events on text and comment nodes
 2526+ if ( elem.nodeType == 3 || elem.nodeType == 8 )
 2527+ return;
 2528+
 2529+ var events = jQuery.data(elem, "events"), ret, index;
 2530+
 2531+ if ( events ) {
 2532+ // Unbind all events for the element
 2533+ if ( types === undefined || (typeof types === "string" && types.charAt(0) == ".") )
 2534+ for ( var type in events )
 2535+ this.remove( elem, type + (types || "") );
 2536+ else {
 2537+ // types is actually an event object here
 2538+ if ( types.type ) {
 2539+ handler = types.handler;
 2540+ types = types.type;
 2541+ }
 2542+
 2543+ // Handle multiple events seperated by a space
 2544+ // jQuery(...).unbind("mouseover mouseout", fn);
 2545+ jQuery.each(types.split(/\s+/), function(index, type){
 2546+ // Namespaced event handlers
 2547+ var namespaces = type.split(".");
 2548+ type = namespaces.shift();
 2549+ var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
 2550+
 2551+ if ( events[type] ) {
 2552+ // remove the given handler for the given type
 2553+ if ( handler )
 2554+ delete events[type][handler.guid];
 2555+
 2556+ // remove all handlers for the given type
 2557+ else
 2558+ for ( var handle in events[type] )
 2559+ // Handle the removal of namespaced events
 2560+ if ( namespace.test(events[type][handle].type) )
 2561+ delete events[type][handle];
 2562+
 2563+ if ( jQuery.event.specialAll[type] )
 2564+ jQuery.event.specialAll[type].teardown.call(elem, namespaces);
 2565+
 2566+ // remove generic event handler if no more handlers exist
 2567+ for ( ret in events[type] ) break;
 2568+ if ( !ret ) {
 2569+ if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem, namespaces) === false ) {
 2570+ if (elem.removeEventListener)
 2571+ elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
 2572+ else if (elem.detachEvent)
 2573+ elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
 2574+ }
 2575+ ret = null;
 2576+ delete events[type];
 2577+ }
 2578+ }
 2579+ });
 2580+ }
 2581+
 2582+ // Remove the expando if it's no longer used
 2583+ for ( ret in events ) break;
 2584+ if ( !ret ) {
 2585+ var handle = jQuery.data( elem, "handle" );
 2586+ if ( handle ) handle.elem = null;
 2587+ jQuery.removeData( elem, "events" );
 2588+ jQuery.removeData( elem, "handle" );
 2589+ }
 2590+ }
 2591+ },
 2592+
 2593+ // bubbling is internal
 2594+ trigger: function( event, data, elem, bubbling ) {
 2595+ // Event object or event type
 2596+ var type = event.type || event;
 2597+
 2598+ if( !bubbling ){
 2599+ event = typeof event === "object" ?
 2600+ // jQuery.Event object
 2601+ event[expando] ? event :
 2602+ // Object literal
 2603+ jQuery.extend( jQuery.Event(type), event ) :
 2604+ // Just the event type (string)
 2605+ jQuery.Event(type);
 2606+
 2607+ if ( type.indexOf("!") >= 0 ) {
 2608+ event.type = type = type.slice(0, -1);
 2609+ event.exclusive = true;
 2610+ }
 2611+
 2612+ // Handle a global trigger
 2613+ if ( !elem ) {
 2614+ // Don't bubble custom events when global (to avoid too much overhead)
 2615+ event.stopPropagation();
 2616+ // Only trigger if we've ever bound an event for it
 2617+ if ( this.global[type] )
 2618+ jQuery.each( jQuery.cache, function(){
 2619+ if ( this.events && this.events[type] )
 2620+ jQuery.event.trigger( event, data, this.handle.elem );
 2621+ });
 2622+ }
 2623+
 2624+ // Handle triggering a single element
 2625+
 2626+ // don't do events on text and comment nodes
 2627+ if ( !elem || elem.nodeType == 3 || elem.nodeType == 8 )
 2628+ return undefined;
 2629+
 2630+ // Clean up in case it is reused
 2631+ event.result = undefined;
 2632+ event.target = elem;
 2633+
 2634+ // Clone the incoming data, if any
 2635+ data = jQuery.makeArray(data);
 2636+ data.unshift( event );
 2637+ }
 2638+
 2639+ event.currentTarget = elem;
 2640+
 2641+ // Trigger the event, it is assumed that "handle" is a function
 2642+ var handle = jQuery.data(elem, "handle");
 2643+ if ( handle )
 2644+ handle.apply( elem, data );
 2645+
 2646+ // Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
 2647+ if ( (!elem[type] || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
 2648+ event.result = false;
 2649+
 2650+ // Trigger the native events (except for clicks on links)
 2651+ if ( !bubbling && elem[type] && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
 2652+ this.triggered = true;
 2653+ try {
 2654+ elem[ type ]();
 2655+ // prevent IE from throwing an error for some hidden elements
 2656+ } catch (e) {}
 2657+ }
 2658+
 2659+ this.triggered = false;
 2660+
 2661+ if ( !event.isPropagationStopped() ) {
 2662+ var parent = elem.parentNode || elem.ownerDocument;
 2663+ if ( parent )
 2664+ jQuery.event.trigger(event, data, parent, true);
 2665+ }
 2666+ },
 2667+
 2668+ handle: function(event) {
 2669+ // returned undefined or false
 2670+ var all, handlers;
 2671+
 2672+ event = arguments[0] = jQuery.event.fix( event || window.event );
 2673+ event.currentTarget = this;
 2674+
 2675+ // Namespaced event handlers
 2676+ var namespaces = event.type.split(".");
 2677+ event.type = namespaces.shift();
 2678+
 2679+ // Cache this now, all = true means, any handler
 2680+ all = !namespaces.length && !event.exclusive;
 2681+
 2682+ var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
 2683+
 2684+ handlers = ( jQuery.data(this, "events") || {} )[event.type];
 2685+
 2686+ for ( var j in handlers ) {
 2687+ var handler = handlers[j];
 2688+
 2689+ // Filter the functions by class
 2690+ if ( all || namespace.test(handler.type) ) {
 2691+ // Pass in a reference to the handler function itself
 2692+ // So that we can later remove it
 2693+ event.handler = handler;
 2694+ event.data = handler.data;
 2695+
 2696+ var ret = handler.apply(this, arguments);
 2697+
 2698+ if( ret !== undefined ){
 2699+ event.result = ret;
 2700+ if ( ret === false ) {
 2701+ event.preventDefault();
 2702+ event.stopPropagation();
 2703+ }
 2704+ }
 2705+
 2706+ if( event.isImmediatePropagationStopped() )
 2707+ break;
 2708+
 2709+ }
 2710+ }
 2711+ },
 2712+
 2713+ 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 toElement view wheelDelta which".split(" "),
 2714+
 2715+ fix: function(event) {
 2716+ if ( event[expando] )
 2717+ return event;
 2718+
 2719+ // store a copy of the original event object
 2720+ // and "clone" to set read-only properties
 2721+ var originalEvent = event;
 2722+ event = jQuery.Event( originalEvent );
 2723+
 2724+ for ( var i = this.props.length, prop; i; ){
 2725+ prop = this.props[ --i ];
 2726+ event[ prop ] = originalEvent[ prop ];
 2727+ }
 2728+
 2729+ // Fix target property, if necessary
 2730+ if ( !event.target )
 2731+ event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
 2732+
 2733+ // check if target is a textnode (safari)
 2734+ if ( event.target.nodeType == 3 )
 2735+ event.target = event.target.parentNode;
 2736+
 2737+ // Add relatedTarget, if necessary
 2738+ if ( !event.relatedTarget && event.fromElement )
 2739+ event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;
 2740+
 2741+ // Calculate pageX/Y if missing and clientX/Y available
 2742+ if ( event.pageX == null && event.clientX != null ) {
 2743+ var doc = document.documentElement, body = document.body;
 2744+ event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
 2745+ event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
 2746+ }
 2747+
 2748+ // Add which for key events
 2749+ if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
 2750+ event.which = event.charCode || event.keyCode;
 2751+
 2752+ // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
 2753+ if ( !event.metaKey && event.ctrlKey )
 2754+ event.metaKey = event.ctrlKey;
 2755+
 2756+ // Add which for click: 1 == left; 2 == middle; 3 == right
 2757+ // Note: button is not normalized, so don't use it
 2758+ if ( !event.which && event.button )
 2759+ event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
 2760+
 2761+ return event;
 2762+ },
 2763+
 2764+ proxy: function( fn, proxy ){
 2765+ proxy = proxy || function(){ return fn.apply(this, arguments); };
 2766+ // Set the guid of unique handler to the same of original handler, so it can be removed
 2767+ proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
 2768+ // So proxy can be declared as an argument
 2769+ return proxy;
 2770+ },
 2771+
 2772+ special: {
 2773+ ready: {
 2774+ // Make sure the ready event is setup
 2775+ setup: bindReady,
 2776+ teardown: function() {}
 2777+ }
 2778+ },
 2779+
 2780+ specialAll: {
 2781+ live: {
 2782+ setup: function( selector, namespaces ){
 2783+ jQuery.event.add( this, namespaces[0], liveHandler );
 2784+ },
 2785+ teardown: function( namespaces ){
 2786+ if ( namespaces.length ) {
 2787+ var remove = 0, name = RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)");
 2788+
 2789+ jQuery.each( (jQuery.data(this, "events").live || {}), function(){
 2790+ if ( name.test(this.type) )
 2791+ remove++;
 2792+ });
 2793+
 2794+ if ( remove < 1 )
 2795+ jQuery.event.remove( this, namespaces[0], liveHandler );
 2796+ }
 2797+ }
 2798+ }
 2799+ }
 2800+};
 2801+
 2802+jQuery.Event = function( src ){
 2803+ // Allow instantiation without the 'new' keyword
 2804+ if( !this.preventDefault )
 2805+ return new jQuery.Event(src);
 2806+
 2807+ // Event object
 2808+ if( src && src.type ){
 2809+ this.originalEvent = src;
 2810+ this.type = src.type;
 2811+ // Event type
 2812+ }else
 2813+ this.type = src;
 2814+
 2815+ // timeStamp is buggy for some events on Firefox(#3843)
 2816+ // So we won't rely on the native value
 2817+ this.timeStamp = now();
 2818+
 2819+ // Mark it as fixed
 2820+ this[expando] = true;
 2821+};
 2822+
 2823+function returnFalse(){
 2824+ return false;
 2825+}
 2826+function returnTrue(){
 2827+ return true;
 2828+}
 2829+
 2830+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
 2831+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
 2832+jQuery.Event.prototype = {
 2833+ preventDefault: function() {
 2834+ this.isDefaultPrevented = returnTrue;
 2835+
 2836+ var e = this.originalEvent;
 2837+ if( !e )
 2838+ return;
 2839+ // if preventDefault exists run it on the original event
 2840+ if (e.preventDefault)
 2841+ e.preventDefault();
 2842+ // otherwise set the returnValue property of the original event to false (IE)
 2843+ e.returnValue = false;
 2844+ },
 2845+ stopPropagation: function() {
 2846+ this.isPropagationStopped = returnTrue;
 2847+
 2848+ var e = this.originalEvent;
 2849+ if( !e )
 2850+ return;
 2851+ // if stopPropagation exists run it on the original event
 2852+ if (e.stopPropagation)
 2853+ e.stopPropagation();
 2854+ // otherwise set the cancelBubble property of the original event to true (IE)
 2855+ e.cancelBubble = true;
 2856+ },
 2857+ stopImmediatePropagation:function(){
 2858+ this.isImmediatePropagationStopped = returnTrue;
 2859+ this.stopPropagation();
 2860+ },
 2861+ isDefaultPrevented: returnFalse,
 2862+ isPropagationStopped: returnFalse,
 2863+ isImmediatePropagationStopped: returnFalse
 2864+};
 2865+// Checks if an event happened on an element within another element
 2866+// Used in jQuery.event.special.mouseenter and mouseleave handlers
 2867+var withinElement = function(event) {
 2868+ // Check if mouse(over|out) are still within the same parent element
 2869+ var parent = event.relatedTarget;
 2870+ // Traverse up the tree
 2871+ while ( parent && parent != this )
 2872+ try { parent = parent.parentNode; }
 2873+ catch(e) { parent = this; }
 2874+
 2875+ if( parent != this ){
 2876+ // set the correct event type
 2877+ event.type = event.data;
 2878+ // handle event if we actually just moused on to a non sub-element
 2879+ jQuery.event.handle.apply( this, arguments );
 2880+ }
 2881+};
 2882+
 2883+jQuery.each({
 2884+ mouseover: 'mouseenter',
 2885+ mouseout: 'mouseleave'
 2886+}, function( orig, fix ){
 2887+ jQuery.event.special[ fix ] = {
 2888+ setup: function(){
 2889+ jQuery.event.add( this, orig, withinElement, fix );
 2890+ },
 2891+ teardown: function(){
 2892+ jQuery.event.remove( this, orig, withinElement );
 2893+ }
 2894+ };
 2895+});
 2896+
 2897+jQuery.fn.extend({
 2898+ bind: function( type, data, fn ) {
 2899+ return type == "unload" ? this.one(type, data, fn) : this.each(function(){
 2900+ jQuery.event.add( this, type, fn || data, fn && data );
 2901+ });
 2902+ },
 2903+
 2904+ one: function( type, data, fn ) {
 2905+ var one = jQuery.event.proxy( fn || data, function(event) {
 2906+ jQuery(this).unbind(event, one);
 2907+ return (fn || data).apply( this, arguments );
 2908+ });
 2909+ return this.each(function(){
 2910+ jQuery.event.add( this, type, one, fn && data);
 2911+ });
 2912+ },
 2913+
 2914+ unbind: function( type, fn ) {
 2915+ return this.each(function(){
 2916+ jQuery.event.remove( this, type, fn );
 2917+ });
 2918+ },
 2919+
 2920+ trigger: function( type, data ) {
 2921+ return this.each(function(){
 2922+ jQuery.event.trigger( type, data, this );
 2923+ });
 2924+ },
 2925+
 2926+ triggerHandler: function( type, data ) {
 2927+ if( this[0] ){
 2928+ var event = jQuery.Event(type);
 2929+ event.preventDefault();
 2930+ event.stopPropagation();
 2931+ jQuery.event.trigger( event, data, this[0] );
 2932+ return event.result;
 2933+ }
 2934+ },
 2935+
 2936+ toggle: function( fn ) {
 2937+ // Save reference to arguments for access in closure
 2938+ var args = arguments, i = 1;
 2939+
 2940+ // link all the functions, so any of them can unbind this click handler
 2941+ while( i < args.length )
 2942+ jQuery.event.proxy( fn, args[i++] );
 2943+
 2944+ return this.click( jQuery.event.proxy( fn, function(event) {
 2945+ // Figure out which function to execute
 2946+ this.lastToggle = ( this.lastToggle || 0 ) % i;
 2947+
 2948+ // Make sure that clicks stop
 2949+ event.preventDefault();
 2950+
 2951+ // and execute the function
 2952+ return args[ this.lastToggle++ ].apply( this, arguments ) || false;
 2953+ }));
 2954+ },
 2955+
 2956+ hover: function(fnOver, fnOut) {
 2957+ return this.mouseenter(fnOver).mouseleave(fnOut);
 2958+ },
 2959+
 2960+ ready: function(fn) {
 2961+ // Attach the listeners
 2962+ bindReady();
 2963+
 2964+ // If the DOM is already ready
 2965+ if ( jQuery.isReady )
 2966+ // Execute the function immediately
 2967+ fn.call( document, jQuery );
 2968+
 2969+ // Otherwise, remember the function for later
 2970+ else
 2971+ // Add the function to the wait list
 2972+ jQuery.readyList.push( fn );
 2973+
 2974+ return this;
 2975+ },
 2976+
 2977+ live: function( type, fn ){
 2978+ var proxy = jQuery.event.proxy( fn );
 2979+ proxy.guid += this.selector + type;
 2980+
 2981+ jQuery(document).bind( liveConvert(type, this.selector), this.selector, proxy );
 2982+
 2983+ return this;
 2984+ },
 2985+
 2986+ die: function( type, fn ){
 2987+ jQuery(document).unbind( liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type } : null );
 2988+ return this;
 2989+ }
 2990+});
 2991+
 2992+function liveHandler( event ){
 2993+ var check = RegExp("(^|\\.)" + event.type + "(\\.|$)"),
 2994+ stop = true,
 2995+ elems = [];
 2996+
 2997+ jQuery.each(jQuery.data(this, "events").live || [], function(i, fn){
 2998+ if ( check.test(fn.type) ) {
 2999+ var elem = jQuery(event.target).closest(fn.data)[0];
 3000+ if ( elem )
 3001+ elems.push({ elem: elem, fn: fn });
 3002+ }
 3003+ });
 3004+
 3005+ elems.sort(function(a,b) {
 3006+ return jQuery.data(a.elem, "closest") - jQuery.data(b.elem, "closest");
 3007+ });
 3008+
 3009+ jQuery.each(elems, function(){
 3010+ if ( this.fn.call(this.elem, event, this.fn.data) === false )
 3011+ return (stop = false);
 3012+ });
 3013+
 3014+ return stop;
 3015+}
 3016+
 3017+function liveConvert(type, selector){
 3018+ return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "|")].join(".");
 3019+}
 3020+
 3021+jQuery.extend({
 3022+ isReady: false,
 3023+ readyList: [],
 3024+ // Handle when the DOM is ready
 3025+ ready: function() {
 3026+ // Make sure that the DOM is not already loaded
 3027+ if ( !jQuery.isReady ) {
 3028+ // Remember that the DOM is ready
 3029+ jQuery.isReady = true;
 3030+
 3031+ // If there are functions bound, to execute
 3032+ if ( jQuery.readyList ) {
 3033+ // Execute all of them
 3034+ jQuery.each( jQuery.readyList, function(){
 3035+ this.call( document, jQuery );
 3036+ });
 3037+
 3038+ // Reset the list of functions
 3039+ jQuery.readyList = null;
 3040+ }
 3041+
 3042+ // Trigger any bound ready events
 3043+ jQuery(document).triggerHandler("ready");
 3044+ }
 3045+ }
 3046+});
 3047+
 3048+var readyBound = false;
 3049+
 3050+function bindReady(){
 3051+ if ( readyBound ) return;
 3052+ readyBound = true;
 3053+
 3054+ // Mozilla, Opera and webkit nightlies currently support this event
 3055+ if ( document.addEventListener ) {
 3056+ // Use the handy event callback
 3057+ document.addEventListener( "DOMContentLoaded", function(){
 3058+ document.removeEventListener( "DOMContentLoaded", arguments.callee, false );
 3059+ jQuery.ready();
 3060+ }, false );
 3061+
 3062+ // If IE event model is used
 3063+ } else if ( document.attachEvent ) {
 3064+ // ensure firing before onload,
 3065+ // maybe late but safe also for iframes
 3066+ document.attachEvent("onreadystatechange", function(){
 3067+ if ( document.readyState === "complete" ) {
 3068+ document.detachEvent( "onreadystatechange", arguments.callee );
 3069+ jQuery.ready();
 3070+ }
 3071+ });
 3072+
 3073+ // If IE and not an iframe
 3074+ // continually check to see if the document is ready
 3075+ if ( document.documentElement.doScroll && window == window.top ) (function(){
 3076+ if ( jQuery.isReady ) return;
 3077+
 3078+ try {
 3079+ // If IE is used, use the trick by Diego Perini
 3080+ // http://javascript.nwbox.com/IEContentLoaded/
 3081+ document.documentElement.doScroll("left");
 3082+ } catch( error ) {
 3083+ setTimeout( arguments.callee, 0 );
 3084+ return;
 3085+ }
 3086+
 3087+ // and execute any waiting functions
 3088+ jQuery.ready();
 3089+ })();
 3090+ }
 3091+
 3092+ // A fallback to window.onload, that will always work
 3093+ jQuery.event.add( window, "load", jQuery.ready );
 3094+}
 3095+
 3096+jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
 3097+ "mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
 3098+ "change,select,submit,keydown,keypress,keyup,error").split(","), function(i, name){
 3099+
 3100+ // Handle event binding
 3101+ jQuery.fn[name] = function(fn){
 3102+ return fn ? this.bind(name, fn) : this.trigger(name);
 3103+ };
 3104+});
 3105+
 3106+// Prevent memory leaks in IE
 3107+// And prevent errors on refresh with events like mouseover in other browsers
 3108+// Window isn't included so as not to unbind existing unload events
 3109+jQuery( window ).bind( 'unload', function(){
 3110+ for ( var id in jQuery.cache )
 3111+ // Skip the window
 3112+ if ( id != 1 && jQuery.cache[ id ].handle )
 3113+ jQuery.event.remove( jQuery.cache[ id ].handle.elem );
 3114+});
 3115+(function(){
 3116+
 3117+ jQuery.support = {};
 3118+
 3119+ var root = document.documentElement,
 3120+ script = document.createElement("script"),
 3121+ div = document.createElement("div"),
 3122+ id = "script" + (new Date).getTime();
 3123+
 3124+ div.style.display = "none";
 3125+ div.innerHTML = ' <link/><table></table><a href="https://www.mediawiki.org/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
 3126+
 3127+ var all = div.getElementsByTagName("*"),
 3128+ a = div.getElementsByTagName("a")[0];
 3129+
 3130+ // Can't get basic test support
 3131+ if ( !all || !all.length || !a ) {
 3132+ return;
 3133+ }
 3134+
 3135+ jQuery.support = {
 3136+ // IE strips leading whitespace when .innerHTML is used
 3137+ leadingWhitespace: div.firstChild.nodeType == 3,
 3138+
 3139+ // Make sure that tbody elements aren't automatically inserted
 3140+ // IE will insert them into empty tables
 3141+ tbody: !div.getElementsByTagName("tbody").length,
 3142+
 3143+ // Make sure that you can get all elements in an <object> element
 3144+ // IE 7 always returns no results
 3145+ objectAll: !!div.getElementsByTagName("object")[0]
 3146+ .getElementsByTagName("*").length,
 3147+
 3148+ // Make sure that link elements get serialized correctly by innerHTML
 3149+ // This requires a wrapper element in IE
 3150+ htmlSerialize: !!div.getElementsByTagName("link").length,
 3151+
 3152+ // Get the style information from getAttribute
 3153+ // (IE uses .cssText insted)
 3154+ style: /red/.test( a.getAttribute("style") ),
 3155+
 3156+ // Make sure that URLs aren't manipulated
 3157+ // (IE normalizes it by default)
 3158+ hrefNormalized: a.getAttribute("href") === "/a",
 3159+
 3160+ // Make sure that element opacity exists
 3161+ // (IE uses filter instead)
 3162+ opacity: a.style.opacity === "0.5",
 3163+
 3164+ // Verify style float existence
 3165+ // (IE uses styleFloat instead of cssFloat)
 3166+ cssFloat: !!a.style.cssFloat,
 3167+
 3168+ // Will be defined later
 3169+ scriptEval: false,
 3170+ noCloneEvent: true,
 3171+ boxModel: null
 3172+ };
 3173+
 3174+ script.type = "text/javascript";
 3175+ try {
 3176+ script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
 3177+ } catch(e){}
 3178+
 3179+ root.insertBefore( script, root.firstChild );
 3180+
 3181+ // Make sure that the execution of code works by injecting a script
 3182+ // tag with appendChild/createTextNode
 3183+ // (IE doesn't support this, fails, and uses .text instead)
 3184+ if ( window[ id ] ) {
 3185+ jQuery.support.scriptEval = true;
 3186+ delete window[ id ];
 3187+ }
 3188+
 3189+ root.removeChild( script );
 3190+
 3191+ if ( div.attachEvent && div.fireEvent ) {
 3192+ div.attachEvent("onclick", function(){
 3193+ // Cloning a node shouldn't copy over any
 3194+ // bound event handlers (IE does this)
 3195+ jQuery.support.noCloneEvent = false;
 3196+ div.detachEvent("onclick", arguments.callee);
 3197+ });
 3198+ div.cloneNode(true).fireEvent("onclick");
 3199+ }
 3200+
 3201+ // Figure out if the W3C box model works as expected
 3202+ // document.body must exist before we can do this
 3203+ jQuery(function(){
 3204+ var div = document.createElement("div");
 3205+ div.style.width = div.style.paddingLeft = "1px";
 3206+
 3207+ document.body.appendChild( div );
 3208+ jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
 3209+ document.body.removeChild( div ).style.display = 'none';
 3210+ });
 3211+})();
 3212+
 3213+var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat";
 3214+
 3215+jQuery.props = {
 3216+ "for": "htmlFor",
 3217+ "class": "className",
 3218+ "float": styleFloat,
 3219+ cssFloat: styleFloat,
 3220+ styleFloat: styleFloat,
 3221+ readonly: "readOnly",
 3222+ maxlength: "maxLength",
 3223+ cellspacing: "cellSpacing",
 3224+ rowspan: "rowSpan",
 3225+ tabindex: "tabIndex"
 3226+};
 3227+jQuery.fn.extend({
 3228+ // Keep a copy of the old load
 3229+ _load: jQuery.fn.load,
 3230+
 3231+ load: function( url, params, callback ) {
 3232+ if ( typeof url !== "string" )
 3233+ return this._load( url );
 3234+
 3235+ var off = url.indexOf(" ");
 3236+ if ( off >= 0 ) {
 3237+ var selector = url.slice(off, url.length);
 3238+ url = url.slice(0, off);
 3239+ }
 3240+
 3241+ // Default to a GET request
 3242+ var type = "GET";
 3243+
 3244+ // If the second parameter was provided
 3245+ if ( params )
 3246+ // If it's a function
 3247+ if ( jQuery.isFunction( params ) ) {
 3248+ // We assume that it's the callback
 3249+ callback = params;
 3250+ params = null;
 3251+
 3252+ // Otherwise, build a param string
 3253+ } else if( typeof params === "object" ) {
 3254+ params = jQuery.param( params );
 3255+ type = "POST";
 3256+ }
 3257+
 3258+ var self = this;
 3259+
 3260+ // Request the remote document
 3261+ jQuery.ajax({
 3262+ url: url,
 3263+ type: type,
 3264+ dataType: "html",
 3265+ data: params,
 3266+ complete: function(res, status){
 3267+ // If successful, inject the HTML into all the matched elements
 3268+ if ( status == "success" || status == "notmodified" )
 3269+ // See if a selector was specified
 3270+ self.html( selector ?
 3271+ // Create a dummy div to hold the results
 3272+ jQuery("<div/>")
 3273+ // inject the contents of the document in, removing the scripts
 3274+ // to avoid any 'Permission Denied' errors in IE
 3275+ .append(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))
 3276+
 3277+ // Locate the specified elements
 3278+ .find(selector) :
 3279+
 3280+ // If not, just inject the full result
 3281+ res.responseText );
 3282+
 3283+ if( callback )
 3284+ self.each( callback, [res.responseText, status, res] );
 3285+ }
 3286+ });
 3287+ return this;
 3288+ },
 3289+
 3290+ serialize: function() {
 3291+ return jQuery.param(this.serializeArray());
 3292+ },
 3293+ serializeArray: function() {
 3294+ return this.map(function(){
 3295+ return this.elements ? jQuery.makeArray(this.elements) : this;
 3296+ })
 3297+ .filter(function(){
 3298+ return this.name && !this.disabled &&
 3299+ (this.checked || /select|textarea/i.test(this.nodeName) ||
 3300+ /text|hidden|password|search/i.test(this.type));
 3301+ })
 3302+ .map(function(i, elem){
 3303+ var val = jQuery(this).val();
 3304+ return val == null ? null :
 3305+ jQuery.isArray(val) ?
 3306+ jQuery.map( val, function(val, i){
 3307+ return {name: elem.name, value: val};
 3308+ }) :
 3309+ {name: elem.name, value: val};
 3310+ }).get();
 3311+ }
 3312+});
 3313+
 3314+// Attach a bunch of functions for handling common AJAX events
 3315+jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
 3316+ jQuery.fn[o] = function(f){
 3317+ return this.bind(o, f);
 3318+ };
 3319+});
 3320+
 3321+var jsc = now();
 3322+
 3323+jQuery.extend({
 3324+
 3325+ get: function( url, data, callback, type ) {
 3326+ // shift arguments if data argument was ommited
 3327+ if ( jQuery.isFunction( data ) ) {
 3328+ callback = data;
 3329+ data = null;
 3330+ }
 3331+
 3332+ return jQuery.ajax({
 3333+ type: "GET",
 3334+ url: url,
 3335+ data: data,
 3336+ success: callback,
 3337+ dataType: type
 3338+ });
 3339+ },
 3340+
 3341+ getScript: function( url, callback ) {
 3342+ return jQuery.get(url, null, callback, "script");
 3343+ },
 3344+
 3345+ getJSON: function( url, data, callback ) {
 3346+ return jQuery.get(url, data, callback, "json");
 3347+ },
 3348+
 3349+ post: function( url, data, callback, type ) {
 3350+ if ( jQuery.isFunction( data ) ) {
 3351+ callback = data;
 3352+ data = {};
 3353+ }
 3354+
 3355+ return jQuery.ajax({
 3356+ type: "POST",
 3357+ url: url,
 3358+ data: data,
 3359+ success: callback,
 3360+ dataType: type
 3361+ });
 3362+ },
 3363+
 3364+ ajaxSetup: function( settings ) {
 3365+ jQuery.extend( jQuery.ajaxSettings, settings );
 3366+ },
 3367+
 3368+ ajaxSettings: {
 3369+ url: location.href,
 3370+ global: true,
 3371+ type: "GET",
 3372+ contentType: "application/x-www-form-urlencoded",
 3373+ processData: true,
 3374+ async: true,
 3375+ /*
 3376+ timeout: 0,
 3377+ data: null,
 3378+ username: null,
 3379+ password: null,
 3380+ */
 3381+ // Create the request object; Microsoft failed to properly
 3382+ // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
 3383+ // This function can be overriden by calling jQuery.ajaxSetup
 3384+ xhr:function(){
 3385+ return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
 3386+ },
 3387+ accepts: {
 3388+ xml: "application/xml, text/xml",
 3389+ html: "text/html",
 3390+ script: "text/javascript, application/javascript",
 3391+ json: "application/json, text/javascript",
 3392+ text: "text/plain",
 3393+ _default: "*/*"
 3394+ }
 3395+ },
 3396+
 3397+ // Last-Modified header cache for next request
 3398+ lastModified: {},
 3399+
 3400+ ajax: function( s ) {
 3401+ // Extend the settings, but re-extend 's' so that it can be
 3402+ // checked again later (in the test suite, specifically)
 3403+ s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
 3404+
 3405+ var jsonp, jsre = /=\?(&|$)/g, status, data,
 3406+ type = s.type.toUpperCase();
 3407+
 3408+ // convert data if not already a string
 3409+ if ( s.data && s.processData && typeof s.data !== "string" )
 3410+ s.data = jQuery.param(s.data);
 3411+
 3412+ // Handle JSONP Parameter Callbacks
 3413+ if ( s.dataType == "jsonp" ) {
 3414+ if ( type == "GET" ) {
 3415+ if ( !s.url.match(jsre) )
 3416+ s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
 3417+ } else if ( !s.data || !s.data.match(jsre) )
 3418+ s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
 3419+ s.dataType = "json";
 3420+ }
 3421+
 3422+ // Build temporary JSONP function
 3423+ if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
 3424+ jsonp = "jsonp" + jsc++;
 3425+
 3426+ // Replace the =? sequence both in the query string and the data
 3427+ if ( s.data )
 3428+ s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
 3429+ s.url = s.url.replace(jsre, "=" + jsonp + "$1");
 3430+
 3431+ // We need to make sure
 3432+ // that a JSONP style response is executed properly
 3433+ s.dataType = "script";
 3434+
 3435+ // Handle JSONP-style loading
 3436+ window[ jsonp ] = function(tmp){
 3437+ data = tmp;
 3438+ success();
 3439+ complete();
 3440+ // Garbage collect
 3441+ window[ jsonp ] = undefined;
 3442+ try{ delete window[ jsonp ]; } catch(e){}
 3443+ if ( head )
 3444+ head.removeChild( script );
 3445+ };
 3446+ }
 3447+
 3448+ if ( s.dataType == "script" && s.cache == null )
 3449+ s.cache = false;
 3450+
 3451+ if ( s.cache === false && type == "GET" ) {
 3452+ var ts = now();
 3453+ // try replacing _= if it is there
 3454+ var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
 3455+ // if nothing was replaced, add timestamp to the end
 3456+ s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
 3457+ }
 3458+
 3459+ // If data is available, append data to url for get requests
 3460+ if ( s.data && type == "GET" ) {
 3461+ s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
 3462+
 3463+ // IE likes to send both get and post data, prevent this
 3464+ s.data = null;
 3465+ }
 3466+
 3467+ // Watch for a new set of requests
 3468+ if ( s.global && ! jQuery.active++ )
 3469+ jQuery.event.trigger( "ajaxStart" );
 3470+
 3471+ // Matches an absolute URL, and saves the domain
 3472+ var parts = /^(\w+:)?\/\/([^\/?#]+)/.exec( s.url );
 3473+
 3474+ // If we're requesting a remote document
 3475+ // and trying to load JSON or Script with a GET
 3476+ if ( s.dataType == "script" && type == "GET" && parts
 3477+ && ( parts[1] && parts[1] != location.protocol || parts[2] != location.host )){
 3478+
 3479+ var head = document.getElementsByTagName("head")[0];
 3480+ var script = document.createElement("script");
 3481+ script.src = s.url;
 3482+ if (s.scriptCharset)
 3483+ script.charset = s.scriptCharset;
 3484+
 3485+ // Handle Script loading
 3486+ if ( !jsonp ) {
 3487+ var done = false;
 3488+
 3489+ // Attach handlers for all browsers
 3490+ script.onload = script.onreadystatechange = function(){
 3491+ if ( !done && (!this.readyState ||
 3492+ this.readyState == "loaded" || this.readyState == "complete") ) {
 3493+ done = true;
 3494+ success();
 3495+ complete();
 3496+
 3497+ // Handle memory leak in IE
 3498+ script.onload = script.onreadystatechange = null;
 3499+ head.removeChild( script );
 3500+ }
 3501+ };
 3502+ }
 3503+
 3504+ head.appendChild(script);
 3505+
 3506+ // We handle everything using the script element injection
 3507+ return undefined;
 3508+ }
 3509+
 3510+ var requestDone = false;
 3511+
 3512+ // Create the request object
 3513+ var xhr = s.xhr();
 3514+
 3515+ // Open the socket
 3516+ // Passing null username, generates a login popup on Opera (#2865)
 3517+ if( s.username )
 3518+ xhr.open(type, s.url, s.async, s.username, s.password);
 3519+ else
 3520+ xhr.open(type, s.url, s.async);
 3521+
 3522+ // Need an extra try/catch for cross domain requests in Firefox 3
 3523+ try {
 3524+ // Set the correct header, if data is being sent
 3525+ if ( s.data )
 3526+ xhr.setRequestHeader("Content-Type", s.contentType);
 3527+
 3528+ // Set the If-Modified-Since header, if ifModified mode.
 3529+ if ( s.ifModified )
 3530+ xhr.setRequestHeader("If-Modified-Since",
 3531+ jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
 3532+
 3533+ // Set header so the called script knows that it's an XMLHttpRequest
 3534+ xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
 3535+
 3536+ // Set the Accepts header for the server, depending on the dataType
 3537+ xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
 3538+ s.accepts[ s.dataType ] + ", */*" :
 3539+ s.accepts._default );
 3540+ } catch(e){}
 3541+
 3542+ // Allow custom headers/mimetypes and early abort
 3543+ if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
 3544+ // Handle the global AJAX counter
 3545+ if ( s.global && ! --jQuery.active )
 3546+ jQuery.event.trigger( "ajaxStop" );
 3547+ // close opended socket
 3548+ xhr.abort();
 3549+ return false;
 3550+ }
 3551+
 3552+ if ( s.global )
 3553+ jQuery.event.trigger("ajaxSend", [xhr, s]);
 3554+
 3555+ // Wait for a response to come back
 3556+ var onreadystatechange = function(isTimeout){
 3557+ // The request was aborted, clear the interval and decrement jQuery.active
 3558+ if (xhr.readyState == 0) {
 3559+ if (ival) {
 3560+ // clear poll interval
 3561+ clearInterval(ival);
 3562+ ival = null;
 3563+ // Handle the global AJAX counter
 3564+ if ( s.global && ! --jQuery.active )
 3565+ jQuery.event.trigger( "ajaxStop" );
 3566+ }
 3567+ // The transfer is complete and the data is available, or the request timed out
 3568+ } else if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
 3569+ requestDone = true;
 3570+
 3571+ // clear poll interval
 3572+ if (ival) {
 3573+ clearInterval(ival);
 3574+ ival = null;
 3575+ }
 3576+
 3577+ status = isTimeout == "timeout" ? "timeout" :
 3578+ !jQuery.httpSuccess( xhr ) ? "error" :
 3579+ s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
 3580+ "success";
 3581+
 3582+ if ( status == "success" ) {
 3583+ // Watch for, and catch, XML document parse errors
 3584+ try {
 3585+ // process the data (runs the xml through httpData regardless of callback)
 3586+ data = jQuery.httpData( xhr, s.dataType, s );
 3587+ } catch(e) {
 3588+ status = "parsererror";
 3589+ }
 3590+ }
 3591+
 3592+ // Make sure that the request was successful or notmodified
 3593+ if ( status == "success" ) {
 3594+ // Cache Last-Modified header, if ifModified mode.
 3595+ var modRes;
 3596+ try {
 3597+ modRes = xhr.getResponseHeader("Last-Modified");
 3598+ } catch(e) {} // swallow exception thrown by FF if header is not available
 3599+
 3600+ if ( s.ifModified && modRes )
 3601+ jQuery.lastModified[s.url] = modRes;
 3602+
 3603+ // JSONP handles its own success callback
 3604+ if ( !jsonp )
 3605+ success();
 3606+ } else
 3607+ jQuery.handleError(s, xhr, status);
 3608+
 3609+ // Fire the complete handlers
 3610+ complete();
 3611+
 3612+ if ( isTimeout )
 3613+ xhr.abort();
 3614+
 3615+ // Stop memory leaks
 3616+ if ( s.async )
 3617+ xhr = null;
 3618+ }
 3619+ };
 3620+
 3621+ if ( s.async ) {
 3622+ // don't attach the handler to the request, just poll it instead
 3623+ var ival = setInterval(onreadystatechange, 13);
 3624+
 3625+ // Timeout checker
 3626+ if ( s.timeout > 0 )
 3627+ setTimeout(function(){
 3628+ // Check to see if the request is still happening
 3629+ if ( xhr && !requestDone )
 3630+ onreadystatechange( "timeout" );
 3631+ }, s.timeout);
 3632+ }
 3633+
 3634+ // Send the data
 3635+ try {
 3636+ xhr.send(s.data);
 3637+ } catch(e) {
 3638+ jQuery.handleError(s, xhr, null, e);
 3639+ }
 3640+
 3641+ // firefox 1.5 doesn't fire statechange for sync requests
 3642+ if ( !s.async )
 3643+ onreadystatechange();
 3644+
 3645+ function success(){
 3646+ // If a local callback was specified, fire it and pass it the data
 3647+ if ( s.success )
 3648+ s.success( data, status );
 3649+
 3650+ // Fire the global callback
 3651+ if ( s.global )
 3652+ jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
 3653+ }
 3654+
 3655+ function complete(){
 3656+ // Process result
 3657+ if ( s.complete )
 3658+ s.complete(xhr, status);
 3659+
 3660+ // The request was completed
 3661+ if ( s.global )
 3662+ jQuery.event.trigger( "ajaxComplete", [xhr, s] );
 3663+
 3664+ // Handle the global AJAX counter
 3665+ if ( s.global && ! --jQuery.active )
 3666+ jQuery.event.trigger( "ajaxStop" );
 3667+ }
 3668+
 3669+ // return XMLHttpRequest to allow aborting the request etc.
 3670+ return xhr;
 3671+ },
 3672+
 3673+ handleError: function( s, xhr, status, e ) {
 3674+ // If a local callback was specified, fire it
 3675+ if ( s.error ) s.error( xhr, status, e );
 3676+
 3677+ // Fire the global callback
 3678+ if ( s.global )
 3679+ jQuery.event.trigger( "ajaxError", [xhr, s, e] );
 3680+ },
 3681+
 3682+ // Counter for holding the number of active queries
 3683+ active: 0,
 3684+
 3685+ // Determines if an XMLHttpRequest was successful or not
 3686+ httpSuccess: function( xhr ) {
 3687+ try {
 3688+ // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
 3689+ return !xhr.status && location.protocol == "file:" ||
 3690+ ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223;
 3691+ } catch(e){}
 3692+ return false;
 3693+ },
 3694+
 3695+ // Determines if an XMLHttpRequest returns NotModified
 3696+ httpNotModified: function( xhr, url ) {
 3697+ try {
 3698+ var xhrRes = xhr.getResponseHeader("Last-Modified");
 3699+
 3700+ // Firefox always returns 200. check Last-Modified date
 3701+ return xhr.status == 304 || xhrRes == jQuery.lastModified[url];
 3702+ } catch(e){}
 3703+ return false;
 3704+ },
 3705+
 3706+ httpData: function( xhr, type, s ) {
 3707+ var ct = xhr.getResponseHeader("content-type"),
 3708+ xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
 3709+ data = xml ? xhr.responseXML : xhr.responseText;
 3710+
 3711+ if ( xml && data.documentElement.tagName == "parsererror" )
 3712+ throw "parsererror";
 3713+
 3714+ // Allow a pre-filtering function to sanitize the response
 3715+ // s != null is checked to keep backwards compatibility
 3716+ if( s && s.dataFilter )
 3717+ data = s.dataFilter( data, type );
 3718+
 3719+ // The filter can actually parse the response
 3720+ if( typeof data === "string" ){
 3721+
 3722+ // If the type is "script", eval it in global context
 3723+ if ( type == "script" )
 3724+ jQuery.globalEval( data );
 3725+
 3726+ // Get the JavaScript object, if JSON is used.
 3727+ if ( type == "json" )
 3728+ data = window["eval"]("(" + data + ")");
 3729+ }
 3730+
 3731+ return data;
 3732+ },
 3733+
 3734+ // Serialize an array of form elements or a set of
 3735+ // key/values into a query string
 3736+ param: function( a ) {
 3737+ var s = [ ];
 3738+
 3739+ function add( key, value ){
 3740+ s[ s.length ] = encodeURIComponent(key) + '=' + encodeURIComponent(value);
 3741+ };
 3742+
 3743+ // If an array was passed in, assume that it is an array
 3744+ // of form elements
 3745+ if ( jQuery.isArray(a) || a.jquery )
 3746+ // Serialize the form elements
 3747+ jQuery.each( a, function(){
 3748+ add( this.name, this.value );
 3749+ });
 3750+
 3751+ // Otherwise, assume that it's an object of key/value pairs
 3752+ else
 3753+ // Serialize the key/values
 3754+ for ( var j in a )
 3755+ // If the value is an array then the key names need to be repeated
 3756+ if ( jQuery.isArray(a[j]) )
 3757+ jQuery.each( a[j], function(){
 3758+ add( j, this );
 3759+ });
 3760+ else
 3761+ add( j, jQuery.isFunction(a[j]) ? a[j]() : a[j] );
 3762+
 3763+ // Return the resulting serialization
 3764+ return s.join("&").replace(/%20/g, "+");
 3765+ }
 3766+
 3767+});
 3768+var elemdisplay = {},
 3769+ timerId,
 3770+ fxAttrs = [
 3771+ // height animations
 3772+ [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
 3773+ // width animations
 3774+ [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
 3775+ // opacity animations
 3776+ [ "opacity" ]
 3777+ ];
 3778+
 3779+function genFx( type, num ){
 3780+ var obj = {};
 3781+ jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function(){
 3782+ obj[ this ] = type;
 3783+ });
 3784+ return obj;
 3785+}
 3786+
 3787+jQuery.fn.extend({
 3788+ show: function(speed,callback){
 3789+ if ( speed ) {
 3790+ return this.animate( genFx("show", 3), speed, callback);
 3791+ } else {
 3792+ for ( var i = 0, l = this.length; i < l; i++ ){
 3793+ var old = jQuery.data(this[i], "olddisplay");
 3794+
 3795+ this[i].style.display = old || "";
 3796+
 3797+ if ( jQuery.css(this[i], "display") === "none" ) {
 3798+ var tagName = this[i].tagName, display;
 3799+
 3800+ if ( elemdisplay[ tagName ] ) {
 3801+ display = elemdisplay[ tagName ];
 3802+ } else {
 3803+ var elem = jQuery("<" + tagName + " />").appendTo("body");
 3804+
 3805+ display = elem.css("display");
 3806+ if ( display === "none" )
 3807+ display = "block";
 3808+
 3809+ elem.remove();
 3810+
 3811+ elemdisplay[ tagName ] = display;
 3812+ }
 3813+
 3814+ jQuery.data(this[i], "olddisplay", display);
 3815+ }
 3816+ }
 3817+
 3818+ // Set the display of the elements in a second loop
 3819+ // to avoid the constant reflow
 3820+ for ( var i = 0, l = this.length; i < l; i++ ){
 3821+ this[i].style.display = jQuery.data(this[i], "olddisplay") || "";
 3822+ }
 3823+
 3824+ return this;
 3825+ }
 3826+ },
 3827+
 3828+ hide: function(speed,callback){
 3829+ if ( speed ) {
 3830+ return this.animate( genFx("hide", 3), speed, callback);
 3831+ } else {
 3832+ for ( var i = 0, l = this.length; i < l; i++ ){
 3833+ var old = jQuery.data(this[i], "olddisplay");
 3834+ if ( !old && old !== "none" )
 3835+ jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
 3836+ }
 3837+
 3838+ // Set the display of the elements in a second loop
 3839+ // to avoid the constant reflow
 3840+ for ( var i = 0, l = this.length; i < l; i++ ){
 3841+ this[i].style.display = "none";
 3842+ }
 3843+
 3844+ return this;
 3845+ }
 3846+ },
 3847+
 3848+ // Save the old toggle function
 3849+ _toggle: jQuery.fn.toggle,
 3850+
 3851+ toggle: function( fn, fn2 ){
 3852+ var bool = typeof fn === "boolean";
 3853+
 3854+ return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
 3855+ this._toggle.apply( this, arguments ) :
 3856+ fn == null || bool ?
 3857+ this.each(function(){
 3858+ var state = bool ? fn : jQuery(this).is(":hidden");
 3859+ jQuery(this)[ state ? "show" : "hide" ]();
 3860+ }) :
 3861+ this.animate(genFx("toggle", 3), fn, fn2);
 3862+ },
 3863+
 3864+ fadeTo: function(speed,to,callback){
 3865+ return this.animate({opacity: to}, speed, callback);
 3866+ },
 3867+
 3868+ animate: function( prop, speed, easing, callback ) {
 3869+ var optall = jQuery.speed(speed, easing, callback);
 3870+
 3871+ return this[ optall.queue === false ? "each" : "queue" ](function(){
 3872+
 3873+ var opt = jQuery.extend({}, optall), p,
 3874+ hidden = this.nodeType == 1 && jQuery(this).is(":hidden"),
 3875+ self = this;
 3876+
 3877+ for ( p in prop ) {
 3878+ if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
 3879+ return opt.complete.call(this);
 3880+
 3881+ if ( ( p == "height" || p == "width" ) && this.style ) {
 3882+ // Store display property
 3883+ opt.display = jQuery.css(this, "display");
 3884+
 3885+ // Make sure that nothing sneaks out
 3886+ opt.overflow = this.style.overflow;
 3887+ }
 3888+ }
 3889+
 3890+ if ( opt.overflow != null )
 3891+ this.style.overflow = "hidden";
 3892+
 3893+ opt.curAnim = jQuery.extend({}, prop);
 3894+
 3895+ jQuery.each( prop, function(name, val){
 3896+ var e = new jQuery.fx( self, opt, name );
 3897+
 3898+ if ( /toggle|show|hide/.test(val) )
 3899+ e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
 3900+ else {
 3901+ var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
 3902+ start = e.cur(true) || 0;
 3903+
 3904+ if ( parts ) {
 3905+ var end = parseFloat(parts[2]),
 3906+ unit = parts[3] || "px";
 3907+
 3908+ // We need to compute starting value
 3909+ if ( unit != "px" ) {
 3910+ self.style[ name ] = (end || 1) + unit;
 3911+ start = ((end || 1) / e.cur(true)) * start;
 3912+ self.style[ name ] = start + unit;
 3913+ }
 3914+
 3915+ // If a +=/-= token was provided, we're doing a relative animation
 3916+ if ( parts[1] )
 3917+ end = ((parts[1] == "-=" ? -1 : 1) * end) + start;
 3918+
 3919+ e.custom( start, end, unit );
 3920+ } else
 3921+ e.custom( start, val, "" );
 3922+ }
 3923+ });
 3924+
 3925+ // For JS strict compliance
 3926+ return true;
 3927+ });
 3928+ },
 3929+
 3930+ stop: function(clearQueue, gotoEnd){
 3931+ var timers = jQuery.timers;
 3932+
 3933+ if (clearQueue)
 3934+ this.queue([]);
 3935+
 3936+ this.each(function(){
 3937+ // go in reverse order so anything added to the queue during the loop is ignored
 3938+ for ( var i = timers.length - 1; i >= 0; i-- )
 3939+ if ( timers[i].elem == this ) {
 3940+ if (gotoEnd)
 3941+ // force the next step to be the last
 3942+ timers[i](true);
 3943+ timers.splice(i, 1);
 3944+ }
 3945+ });
 3946+
 3947+ // start the next in the queue if the last step wasn't forced
 3948+ if (!gotoEnd)
 3949+ this.dequeue();
 3950+
 3951+ return this;
 3952+ }
 3953+
 3954+});
 3955+
 3956+// Generate shortcuts for custom animations
 3957+jQuery.each({
 3958+ slideDown: genFx("show", 1),
 3959+ slideUp: genFx("hide", 1),
 3960+ slideToggle: genFx("toggle", 1),
 3961+ fadeIn: { opacity: "show" },
 3962+ fadeOut: { opacity: "hide" }
 3963+}, function( name, props ){
 3964+ jQuery.fn[ name ] = function( speed, callback ){
 3965+ return this.animate( props, speed, callback );
 3966+ };
 3967+});
 3968+
 3969+jQuery.extend({
 3970+
 3971+ speed: function(speed, easing, fn) {
 3972+ var opt = typeof speed === "object" ? speed : {
 3973+ complete: fn || !fn && easing ||
 3974+ jQuery.isFunction( speed ) && speed,
 3975+ duration: speed,
 3976+ easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
 3977+ };
 3978+
 3979+ opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
 3980+ jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
 3981+
 3982+ // Queueing
 3983+ opt.old = opt.complete;
 3984+ opt.complete = function(){
 3985+ if ( opt.queue !== false )
 3986+ jQuery(this).dequeue();
 3987+ if ( jQuery.isFunction( opt.old ) )
 3988+ opt.old.call( this );
 3989+ };
 3990+
 3991+ return opt;
 3992+ },
 3993+
 3994+ easing: {
 3995+ linear: function( p, n, firstNum, diff ) {
 3996+ return firstNum + diff * p;
 3997+ },
 3998+ swing: function( p, n, firstNum, diff ) {
 3999+ return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
 4000+ }
 4001+ },
 4002+
 4003+ timers: [],
 4004+
 4005+ fx: function( elem, options, prop ){
 4006+ this.options = options;
 4007+ this.elem = elem;
 4008+ this.prop = prop;
 4009+
 4010+ if ( !options.orig )
 4011+ options.orig = {};
 4012+ }
 4013+
 4014+});
 4015+
 4016+jQuery.fx.prototype = {
 4017+
 4018+ // Simple function for setting a style value
 4019+ update: function(){
 4020+ if ( this.options.step )
 4021+ this.options.step.call( this.elem, this.now, this );
 4022+
 4023+ (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
 4024+
 4025+ // Set display property to block for height/width animations
 4026+ if ( ( this.prop == "height" || this.prop == "width" ) && this.elem.style )
 4027+ this.elem.style.display = "block";
 4028+ },
 4029+
 4030+ // Get the current size
 4031+ cur: function(force){
 4032+ if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) )
 4033+ return this.elem[ this.prop ];
 4034+
 4035+ var r = parseFloat(jQuery.css(this.elem, this.prop, force));
 4036+ return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
 4037+ },
 4038+
 4039+ // Start an animation from one number to another
 4040+ custom: function(from, to, unit){
 4041+ this.startTime = now();
 4042+ this.start = from;
 4043+ this.end = to;
 4044+ this.unit = unit || this.unit || "px";
 4045+ this.now = this.start;
 4046+ this.pos = this.state = 0;
 4047+
 4048+ var self = this;
 4049+ function t(gotoEnd){
 4050+ return self.step(gotoEnd);
 4051+ }
 4052+
 4053+ t.elem = this.elem;
 4054+
 4055+ if ( t() && jQuery.timers.push(t) && !timerId ) {
 4056+ timerId = setInterval(function(){
 4057+ var timers = jQuery.timers;
 4058+
 4059+ for ( var i = 0; i < timers.length; i++ )
 4060+ if ( !timers[i]() )
 4061+ timers.splice(i--, 1);
 4062+
 4063+ if ( !timers.length ) {
 4064+ clearInterval( timerId );
 4065+ timerId = undefined;
 4066+ }
 4067+ }, 13);
 4068+ }
 4069+ },
 4070+
 4071+ // Simple 'show' function
 4072+ show: function(){
 4073+ // Remember where we started, so that we can go back to it later
 4074+ this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
 4075+ this.options.show = true;
 4076+
 4077+ // Begin the animation
 4078+ // Make sure that we start at a small width/height to avoid any
 4079+ // flash of content
 4080+ this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur());
 4081+
 4082+ // Start by showing the element
 4083+ jQuery(this.elem).show();
 4084+ },
 4085+
 4086+ // Simple 'hide' function
 4087+ hide: function(){
 4088+ // Remember where we started, so that we can go back to it later
 4089+ this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
 4090+ this.options.hide = true;
 4091+
 4092+ // Begin the animation
 4093+ this.custom(this.cur(), 0);
 4094+ },
 4095+
 4096+ // Each step of an animation
 4097+ step: function(gotoEnd){
 4098+ var t = now();
 4099+
 4100+ if ( gotoEnd || t >= this.options.duration + this.startTime ) {
 4101+ this.now = this.end;
 4102+ this.pos = this.state = 1;
 4103+ this.update();
 4104+
 4105+ this.options.curAnim[ this.prop ] = true;
 4106+
 4107+ var done = true;
 4108+ for ( var i in this.options.curAnim )
 4109+ if ( this.options.curAnim[i] !== true )
 4110+ done = false;
 4111+
 4112+ if ( done ) {
 4113+ if ( this.options.display != null ) {
 4114+ // Reset the overflow
 4115+ this.elem.style.overflow = this.options.overflow;
 4116+
 4117+ // Reset the display
 4118+ this.elem.style.display = this.options.display;
 4119+ if ( jQuery.css(this.elem, "display") == "none" )
 4120+ this.elem.style.display = "block";
 4121+ }
 4122+
 4123+ // Hide the element if the "hide" operation was done
 4124+ if ( this.options.hide )
 4125+ jQuery(this.elem).hide();
 4126+
 4127+ // Reset the properties, if the item has been hidden or shown
 4128+ if ( this.options.hide || this.options.show )
 4129+ for ( var p in this.options.curAnim )
 4130+ jQuery.attr(this.elem.style, p, this.options.orig[p]);
 4131+
 4132+ // Execute the complete function
 4133+ this.options.complete.call( this.elem );
 4134+ }
 4135+
 4136+ return false;
 4137+ } else {
 4138+ var n = t - this.startTime;
 4139+ this.state = n / this.options.duration;
 4140+
 4141+ // Perform the easing function, defaults to swing
 4142+ this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
 4143+ this.now = this.start + ((this.end - this.start) * this.pos);
 4144+
 4145+ // Perform the next step of the animation
 4146+ this.update();
 4147+ }
 4148+
 4149+ return true;
 4150+ }
 4151+
 4152+};
 4153+
 4154+jQuery.extend( jQuery.fx, {
 4155+ speeds:{
 4156+ slow: 600,
 4157+ fast: 200,
 4158+ // Default speed
 4159+ _default: 400
 4160+ },
 4161+ step: {
 4162+
 4163+ opacity: function(fx){
 4164+ jQuery.attr(fx.elem.style, "opacity", fx.now);
 4165+ },
 4166+
 4167+ _default: function(fx){
 4168+ if ( fx.elem.style && fx.elem.style[ fx.prop ] != null )
 4169+ fx.elem.style[ fx.prop ] = fx.now + fx.unit;
 4170+ else
 4171+ fx.elem[ fx.prop ] = fx.now;
 4172+ }
 4173+ }
 4174+});
 4175+if ( document.documentElement["getBoundingClientRect"] )
 4176+ jQuery.fn.offset = function() {
 4177+ if ( !this[0] ) return { top: 0, left: 0 };
 4178+ if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
 4179+ var box = this[0].getBoundingClientRect(), doc = this[0].ownerDocument, body = doc.body, docElem = doc.documentElement,
 4180+ clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
 4181+ top = box.top + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop || body.scrollTop ) - clientTop,
 4182+ left = box.left + (self.pageXOffset || jQuery.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
 4183+ return { top: top, left: left };
 4184+ };
 4185+else
 4186+ jQuery.fn.offset = function() {
 4187+ if ( !this[0] ) return { top: 0, left: 0 };
 4188+ if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
 4189+ jQuery.offset.initialized || jQuery.offset.initialize();
 4190+
 4191+ var elem = this[0], offsetParent = elem.offsetParent, prevOffsetParent = elem,
 4192+ doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
 4193+ body = doc.body, defaultView = doc.defaultView,
 4194+ prevComputedStyle = defaultView.getComputedStyle(elem, null),
 4195+ top = elem.offsetTop, left = elem.offsetLeft;
 4196+
 4197+ while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
 4198+ computedStyle = defaultView.getComputedStyle(elem, null);
 4199+ top -= elem.scrollTop, left -= elem.scrollLeft;
 4200+ if ( elem === offsetParent ) {
 4201+ top += elem.offsetTop, left += elem.offsetLeft;
 4202+ if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.tagName)) )
 4203+ top += parseInt( computedStyle.borderTopWidth, 10) || 0,
 4204+ left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
 4205+ prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
 4206+ }
 4207+ if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" )
 4208+ top += parseInt( computedStyle.borderTopWidth, 10) || 0,
 4209+ left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
 4210+ prevComputedStyle = computedStyle;
 4211+ }
 4212+
 4213+ if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" )
 4214+ top += body.offsetTop,
 4215+ left += body.offsetLeft;
 4216+
 4217+ if ( prevComputedStyle.position === "fixed" )
 4218+ top += Math.max(docElem.scrollTop, body.scrollTop),
 4219+ left += Math.max(docElem.scrollLeft, body.scrollLeft);
 4220+
 4221+ return { top: top, left: left };
 4222+ };
 4223+
 4224+jQuery.offset = {
 4225+ initialize: function() {
 4226+ if ( this.initialized ) return;
 4227+ var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop,
 4228+ 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>';
 4229+
 4230+ rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };
 4231+ for ( prop in rules ) container.style[prop] = rules[prop];
 4232+
 4233+ container.innerHTML = html;
 4234+ body.insertBefore(container, body.firstChild);
 4235+ innerDiv = container.firstChild, checkDiv = innerDiv.firstChild, td = innerDiv.nextSibling.firstChild.firstChild;
 4236+
 4237+ this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
 4238+ this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
 4239+
 4240+ innerDiv.style.overflow = 'hidden', innerDiv.style.position = 'relative';
 4241+ this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
 4242+
 4243+ body.style.marginTop = '1px';
 4244+ this.doesNotIncludeMarginInBodyOffset = (body.offsetTop === 0);
 4245+ body.style.marginTop = bodyMarginTop;
 4246+
 4247+ body.removeChild(container);
 4248+ this.initialized = true;
 4249+ },
 4250+
 4251+ bodyOffset: function(body) {
 4252+ jQuery.offset.initialized || jQuery.offset.initialize();
 4253+ var top = body.offsetTop, left = body.offsetLeft;
 4254+ if ( jQuery.offset.doesNotIncludeMarginInBodyOffset )
 4255+ top += parseInt( jQuery.curCSS(body, 'marginTop', true), 10 ) || 0,
 4256+ left += parseInt( jQuery.curCSS(body, 'marginLeft', true), 10 ) || 0;
 4257+ return { top: top, left: left };
 4258+ }
 4259+};
 4260+
 4261+
 4262+jQuery.fn.extend({
 4263+ position: function() {
 4264+ var left = 0, top = 0, results;
 4265+
 4266+ if ( this[0] ) {
 4267+ // Get *real* offsetParent
 4268+ var offsetParent = this.offsetParent(),
 4269+
 4270+ // Get correct offsets
 4271+ offset = this.offset(),
 4272+ parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
 4273+
 4274+ // Subtract element margins
 4275+ // note: when an element has margin: auto the offsetLeft and marginLeft
 4276+ // are the same in Safari causing offset.left to incorrectly be 0
 4277+ offset.top -= num( this, 'marginTop' );
 4278+ offset.left -= num( this, 'marginLeft' );
 4279+
 4280+ // Add offsetParent borders
 4281+ parentOffset.top += num( offsetParent, 'borderTopWidth' );
 4282+ parentOffset.left += num( offsetParent, 'borderLeftWidth' );
 4283+
 4284+ // Subtract the two offsets
 4285+ results = {
 4286+ top: offset.top - parentOffset.top,
 4287+ left: offset.left - parentOffset.left
 4288+ };
 4289+ }
 4290+
 4291+ return results;
 4292+ },
 4293+
 4294+ offsetParent: function() {
 4295+ var offsetParent = this[0].offsetParent || document.body;
 4296+ while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
 4297+ offsetParent = offsetParent.offsetParent;
 4298+ return jQuery(offsetParent);
 4299+ }
 4300+});
 4301+
 4302+
 4303+// Create scrollLeft and scrollTop methods
 4304+jQuery.each( ['Left', 'Top'], function(i, name) {
 4305+ var method = 'scroll' + name;
 4306+
 4307+ jQuery.fn[ method ] = function(val) {
 4308+ if (!this[0]) return null;
 4309+
 4310+ return val !== undefined ?
 4311+
 4312+ // Set the scroll offset
 4313+ this.each(function() {
 4314+ this == window || this == document ?
 4315+ window.scrollTo(
 4316+ !i ? val : jQuery(window).scrollLeft(),
 4317+ i ? val : jQuery(window).scrollTop()
 4318+ ) :
 4319+ this[ method ] = val;
 4320+ }) :
 4321+
 4322+ // Return the scroll offset
 4323+ this[0] == window || this[0] == document ?
 4324+ self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
 4325+ jQuery.boxModel && document.documentElement[ method ] ||
 4326+ document.body[ method ] :
 4327+ this[0][ method ];
 4328+ };
 4329+});
 4330+// Create innerHeight, innerWidth, outerHeight and outerWidth methods
 4331+jQuery.each([ "Height", "Width" ], function(i, name){
 4332+
 4333+ var tl = i ? "Left" : "Top", // top or left
 4334+ br = i ? "Right" : "Bottom", // bottom or right
 4335+ lower = name.toLowerCase();
 4336+
 4337+ // innerHeight and innerWidth
 4338+ jQuery.fn["inner" + name] = function(){
 4339+ return this[0] ?
 4340+ jQuery.css( this[0], lower, false, "padding" ) :
 4341+ null;
 4342+ };
 4343+
 4344+ // outerHeight and outerWidth
 4345+ jQuery.fn["outer" + name] = function(margin) {
 4346+ return this[0] ?
 4347+ jQuery.css( this[0], lower, false, margin ? "margin" : "border" ) :
 4348+ null;
 4349+ };
 4350+
 4351+ var type = name.toLowerCase();
 4352+
 4353+ jQuery.fn[ type ] = function( size ) {
 4354+ // Get window width or height
 4355+ return this[0] == window ?
 4356+ // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
 4357+ document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] ||
 4358+ document.body[ "client" + name ] :
 4359+
 4360+ // Get document width or height
 4361+ this[0] == document ?
 4362+ // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
 4363+ Math.max(
 4364+ document.documentElement["client" + name],
 4365+ document.body["scroll" + name], document.documentElement["scroll" + name],
 4366+ document.body["offset" + name], document.documentElement["offset" + name]
 4367+ ) :
 4368+
 4369+ // Get or set width or height on the element
 4370+ size === undefined ?
 4371+ // Get width or height on the element
 4372+ (this.length ? jQuery.css( this[0], type ) : null) :
 4373+
 4374+ // Set the width or height on the element (default to pixels if value is unitless)
 4375+ this.css( type, typeof size === "string" ? size : size + "px" );
 4376+ };
 4377+
 4378+});
 4379+})();
 4380+
 4381+/* JavaScript for MediaWIki JS2 */
 4382+
 4383+/**
 4384+ * This is designed to be directly compatible with (and is essentially taken
 4385+ * directly from) the mv_embed code for bringing internationalized messages into
 4386+ * the JavaScript space. As such, if we get to the point of merging that stuff
 4387+ * into the main branch this code will be uneeded and probably cause issues.
 4388+ */
 4389+
 4390+/**
 4391+ * Mimics the no-conflict method used by the js2 stuff
 4392+ */
 4393+$j = jQuery.noConflict();
 4394+/**
 4395+ * Provides js2 compatible mw functions
 4396+ */
 4397+if( typeof mw == 'undefined' || !mw ){
 4398+ mw = { };
 4399+ /**
 4400+ * Provides js2 compatible onload hook
 4401+ * @param func Function to call when ready
 4402+ */
 4403+ mw.ready = function( func ) {
 4404+ $j(document).ready( func );
 4405+ }
 4406+ // Define a dummy mw.load function:
 4407+ mw.load = function( deps, callback ) { callback(); };
 4408+
 4409+ // Deinfe a dummy mw.loadDone function:
 4410+ mw.loadDone = function( className ) { };
 4411+
 4412+ // Creates global message object if not already in existence
 4413+ if ( !gMsg ) var gMsg = {};
 4414+
 4415+ /**
 4416+ * Caches a list of messages for later retrieval
 4417+ * @param {Object} msgSet Hash of key:value pairs of messages to cache
 4418+ */
 4419+ mw.addMessages = function ( msgSet ){
 4420+ for ( var i in msgSet ){
 4421+ gMsg[ i ] = msgSet[i];
 4422+ }
 4423+ }
 4424+ /**
 4425+ * Retieves a message from the global message cache, performing on-the-fly
 4426+ * replacements using MediaWiki message syntax ($1, $2, etc.)
 4427+ * @param {String} key Name of message as it is in MediaWiki
 4428+ * @param {Array} args Array of replacement arguments
 4429+ */
 4430+ function gM( key, args ) {
 4431+ var ms = '';
 4432+ if ( key in gMsg ) {
 4433+ ms = gMsg[ key ];
 4434+ if ( typeof args == 'object' || typeof args == 'array' ) {
 4435+ for ( var v in args ){
 4436+ var rep = '\$'+ ( parseInt(v) + 1 );
 4437+ ms = ms.replace( rep, args[v]);
 4438+ }
 4439+ } else if ( typeof args =='string' || typeof args =='number' ) {
 4440+ ms = ms.replace( /\$1/, args );
 4441+ }
 4442+ return ms;
 4443+ } else {
 4444+ return '[' + key + ']';
 4445+ }
 4446+ }
 4447+
 4448+}
Property changes on: trunk/phase3/skins/common/jquery.js
___________________________________________________________________
Name: svn:mergeinfo
14449 +
Name: svn:eol-style
24450 + native
Index: trunk/phase3/skins/common/jquery.min.js
@@ -0,0 +1,436 @@
 2+
 3+(function(){var
 4+window=this,undefined,_jQuery=window.jQuery,_$=window.$,jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);},quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;this.context=selector;return this;}
 5+if(typeof selector==="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])
 6+selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem&&elem.id!=match[3])
 7+return jQuery().find(selector);var ret=jQuery(elem||[]);ret.context=document;ret.selector=selector;return ret;}}else
 8+return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))
 9+return jQuery(document).ready(selector);if(selector.selector&&selector.context){this.selector=selector.selector;this.context=selector.context;}
 10+return this.setArray(jQuery.isArray(selector)?selector:jQuery.makeArray(selector));},selector:"",jquery:"1.3.2",size:function(){return this.length;},get:function(num){return num===undefined?Array.prototype.slice.call(this):this[num];},pushStack:function(elems,name,selector){var ret=jQuery(elems);ret.prevObject=this;ret.context=this.context;if(name==="find")
 11+ret.selector=this.selector+(this.selector?" ":"")+selector;else if(name)
 12+ret.selector=this.selector+"."+name+"("+selector+")";return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(typeof name==="string")
 13+if(value===undefined)
 14+return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}
 15+return this.each(function(i){for(name in options)
 16+jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)
 17+value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!=="object"&&text!=null)
 18+return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)
 19+ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0]){var wrap=jQuery(html,this[0].ownerDocument).clone();if(this[0].parentNode)
 20+wrap.insertBefore(this[0]);wrap.map(function(){var elem=this;while(elem.firstChild)
 21+elem=elem.firstChild;return elem;}).append(this);}
 22+return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType==1)
 23+this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType==1)
 24+this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},push:[].push,sort:[].sort,splice:[].splice,find:function(selector){if(this.length===1){var ret=this.pushStack([],"find",selector);ret.length=0;jQuery.find(selector,this[0],ret);return ret;}else{return this.pushStack(jQuery.unique(jQuery.map(this,function(elem){return jQuery.find(selector,elem);})),"find",selector);}},clone:function(events){var ret=this.map(function(){if(!jQuery.support.noCloneEvent&&!jQuery.isXMLDoc(this)){var html=this.outerHTML;if(!html){var div=this.ownerDocument.createElement("div");div.appendChild(this.cloneNode(true));html=div.innerHTML;}
 25+return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0];}else
 26+return this.cloneNode(true);});if(events===true){var orig=this.find("*").andSelf(),i=0;ret.find("*").andSelf().each(function(){if(this.nodeName!==orig[i].nodeName)
 27+return;var events=jQuery.data(orig[i],"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(this,type,events[type][handler],events[type][handler].data);}}
 28+i++;});}
 29+return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,jQuery.grep(this,function(elem){return elem.nodeType===1;})),"filter",selector);},closest:function(selector){var pos=jQuery.expr.match.POS.test(selector)?jQuery(selector):null,closer=0;return this.map(function(){var cur=this;while(cur&&cur.ownerDocument){if(pos?pos.index(cur)>-1:jQuery(cur).is(selector)){jQuery.data(cur,"closest",closer);return cur;}
 30+cur=cur.parentNode;closer++;}});},not:function(selector){if(typeof selector==="string")
 31+if(isSimple.test(selector))
 32+return this.pushStack(jQuery.multiFilter(selector,this,true),"not",selector);else
 33+selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector==="string"?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return!!selector&&this.is("."+selector);},val:function(value){if(value===undefined){var elem=this[0];if(elem){if(jQuery.nodeName(elem,'option'))
 34+return(elem.attributes.value||{}).specified?elem.value:elem.text;if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)
 35+return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery(option).val();if(one)
 36+return value;values.push(value);}}
 37+return values;}
 38+return(elem.value||"").replace(/\r/g,"");}
 39+return undefined;}
 40+if(typeof value==="number")
 41+value+='';return this.each(function(){if(this.nodeType!=1)
 42+return;if(jQuery.isArray(value)&&/radio|checkbox/.test(this.type))
 43+this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)
 44+this.selectedIndex=-1;}else
 45+this.value=value;});},html:function(value){return value===undefined?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,+i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},domManip:function(args,table,callback){if(this[0]){var fragment=(this[0].ownerDocument||this[0]).createDocumentFragment(),scripts=jQuery.clean(args,(this[0].ownerDocument||this[0]),fragment),first=fragment.firstChild;if(first)
 46+for(var i=0,l=this.length;i<l;i++)
 47+callback.call(root(this[i],first),this.length>1||i>0?fragment.cloneNode(true):fragment);if(scripts)
 48+jQuery.each(scripts,evalScript);}
 49+return this;function root(elem,cur){return table&&jQuery.nodeName(elem,"table")&&jQuery.nodeName(cur,"tr")?(elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody"))):elem;}}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)
 50+jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
 51+jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)
 52+elem.parentNode.removeChild(elem);}
 53+function now(){return+new Date;}
 54+jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2;}
 55+if(typeof target!=="object"&&!jQuery.isFunction(target))
 56+target={};if(length==i){target=this;--i;}
 57+for(;i<length;i++)
 58+if((options=arguments[i])!=null)
 59+for(var name in options){var src=target[name],copy=options[name];if(target===copy)
 60+continue;if(deep&&copy&&typeof copy==="object"&&!copy.nodeType)
 61+target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)
 62+target[name]=copy;}
 63+return target;};var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{},toString=Object.prototype.toString;jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)
 64+window.jQuery=_jQuery;return jQuery;},isFunction:function(obj){return toString.call(obj)==="[object Function]";},isArray:function(obj){return toString.call(obj)==="[object Array]";},isXMLDoc:function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&jQuery.isXMLDoc(elem.ownerDocument);},globalEval:function(data){if(data&&/\S/.test(data)){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.support.scriptEval)
 65+script.appendChild(document.createTextNode(data));else
 66+script.text=data;head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length===undefined){for(name in object)
 67+if(callback.apply(object[name],args)===false)
 68+break;}else
 69+for(;i<length;)
 70+if(callback.apply(object[i++],args)===false)
 71+break;}else{if(length===undefined){for(name in object)
 72+if(callback.call(object[name],name,object[name])===false)
 73+break;}else
 74+for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}
 75+return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))
 76+value=value.call(elem,i);return typeof value==="number"&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))
 77+elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)
 78+elem.className=classNames!==undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return elem&&jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}
 79+callback.call(elem);for(var name in options)
 80+elem.style[name]=old[name];},css:function(elem,name,force,extra){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;if(extra==="border")
 81+return;jQuery.each(which,function(){if(!extra)
 82+val-=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;if(extra==="margin")
 83+val+=parseFloat(jQuery.curCSS(elem,"margin"+this,true))||0;else
 84+val-=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});}
 85+if(elem.offsetWidth!==0)
 86+getWH();else
 87+jQuery.swap(elem,props,getWH);return Math.max(0,Math.round(val));}
 88+return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;if(name=="opacity"&&!jQuery.support.opacity){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}
 89+if(name.match(/float/i))
 90+name=styleFloat;if(!force&&style&&style[name])
 91+ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))
 92+name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();try{var computedStyle=defaultView.getComputedStyle(elem,null);}catch(e){}
 93+if(computedStyle)
 94+ret=computedStyle.getPropertyValue(name);if(name=="opacity"&&ret=="")
 95+ret="1";}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}
 96+return ret;},clean:function(elems,context,fragment){context=context||document;if(typeof context.createElement==="undefined")
 97+context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;if(!fragment&&elems.length===1&&typeof elems[0]==="string"){var match=/^<(\w+)\s*\/?>$/.exec(elems[0]);if(match)
 98+return[context.createElement(match[1])];}
 99+var ret=[],scripts=[],div=context.createElement("div");jQuery.each(elems,function(i,elem){if(typeof elem==="number")
 100+elem+='';if(!elem)
 101+return;if(typeof elem==="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=elem.replace(/^\s+/,"").substring(0,10).toLowerCase();var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!jQuery.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)
 102+div=div.lastChild;if(!jQuery.support.tbody){var hasBody=/<tbody/i.test(elem),tbody=!tags.indexOf("<table")&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&!hasBody?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)
 103+if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)
 104+tbody[j].parentNode.removeChild(tbody[j]);}
 105+if(!jQuery.support.leadingWhitespace&&/^\s/.test(elem))
 106+div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);elem=jQuery.makeArray(div.childNodes);}
 107+if(elem.nodeType)
 108+ret.push(elem);else
 109+ret=jQuery.merge(ret,elem);});if(fragment){for(var i=0;ret[i];i++){if(jQuery.nodeName(ret[i],"script")&&(!ret[i].type||ret[i].type.toLowerCase()==="text/javascript")){scripts.push(ret[i].parentNode?ret[i].parentNode.removeChild(ret[i]):ret[i]);}else{if(ret[i].nodeType===1)
 110+ret.splice.apply(ret,[i+1,0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))));fragment.appendChild(ret[i]);}}
 111+return scripts;}
 112+return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)
 113+return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&elem.parentNode)
 114+elem.parentNode.selectedIndex;if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)
 115+throw"type property can't be changed";elem[name]=value;}
 116+if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))
 117+return elem.getAttributeNode(name).nodeValue;if(name=="tabIndex"){var attributeNode=elem.getAttributeNode("tabIndex");return attributeNode&&attributeNode.specified?attributeNode.value:elem.nodeName.match(/(button|input|object|select|textarea)/i)?0:elem.nodeName.match(/^(a|area)$/i)&&elem.href?0:undefined;}
 118+return elem[name];}
 119+if(!jQuery.support.style&&notxml&&name=="style")
 120+return jQuery.attr(elem.style,"cssText",value);if(set)
 121+elem.setAttribute(name,""+value);var attr=!jQuery.support.hrefNormalized&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}
 122+if(!jQuery.support.opacity&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+
 123+(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}
 124+return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}
 125+name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set&&value!='NaNpx')
 126+elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||typeof array==="string"||jQuery.isFunction(array)||array.setInterval)
 127+ret[0]=array;else
 128+while(i)
 129+ret[--i]=array[i];}
 130+return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)
 131+if(array[i]===elem)
 132+return i;return-1;},merge:function(first,second){var i=0,elem,pos=first.length;if(!jQuery.support.getAll){while((elem=second[i++])!=null)
 133+if(elem.nodeType!=8)
 134+first[pos++]=elem;}else
 135+while((elem=second[i++])!=null)
 136+first[pos++]=elem;return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}
 137+return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)
 138+if(!inv!=!callback(elems[i],i))
 139+ret.push(elems[i]);return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null)
 140+ret[ret.length]=value;}
 141+return ret.concat.apply([],ret);}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,'0'])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")
 142+ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret),name,selector);};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var ret=[],insert=jQuery(selector);for(var i=0,l=insert.length;i<l;i++){var elems=(i>0?this.clone(true):this).get();jQuery.fn[original].apply(jQuery(insert[i]),elems);ret=ret.concat(elems);}
 143+return this.pushStack(ret,name,selector);};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)
 144+this.removeAttribute(name);},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames,state){if(typeof state!=="boolean")
 145+state=!jQuery.className.has(this,classNames);jQuery.className[state?"add":"remove"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).length){jQuery("*",this).add([this]).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)
 146+this.parentNode.removeChild(this);}},empty:function(){jQuery(this).children().remove();while(this.firstChild)
 147+this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}
 148+var expando="jQuery"+now(),uuid=0,windowData={};jQuery.extend({cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)
 149+id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])
 150+jQuery.cache[id]={};if(data!==undefined)
 151+jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])
 152+break;if(!name)
 153+jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)
 154+elem.removeAttribute(expando);}
 155+delete jQuery.cache[id];}},queue:function(elem,type,data){if(elem){type=(type||"fx")+"queue";var q=jQuery.data(elem,type);if(!q||jQuery.isArray(data))
 156+q=jQuery.data(elem,type,jQuery.makeArray(data));else if(data)
 157+q.push(data);}
 158+return q;},dequeue:function(elem,type){var queue=jQuery.queue(elem,type),fn=queue.shift();if(!type||type==="fx")
 159+fn=queue[0];if(fn!==undefined)
 160+fn.call(elem);}});jQuery.fn.extend({data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)
 161+data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
 162+return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},queue:function(type,data){if(typeof type!=="string"){data=type;type="fx";}
 163+if(data===undefined)
 164+return jQuery.queue(this[0],type);return this.each(function(){var queue=jQuery.queue(this,type,data);if(type=="fx"&&queue.length==1)
 165+queue[0].call(this);});},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type);});}});(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,done=0,toString=Object.prototype.toString;var Sizzle=function(selector,context,results,seed){results=results||[];context=context||document;if(context.nodeType!==1&&context.nodeType!==9)
 166+return[];if(!selector||typeof selector!=="string"){return results;}
 167+var parts=[],m,set,checkSet,check,mode,extra,prune=true;chunker.lastIndex=0;while((m=chunker.exec(selector))!==null){parts.push(m[1]);if(m[2]){extra=RegExp.rightContext;break;}}
 168+if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context);}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector])
 169+selector+=parts.shift();set=posProcess(selector,set);}}}else{var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&context.parentNode?context.parentNode:context,isXML(context));set=Sizzle.filter(ret.expr,ret.set);if(parts.length>0){checkSet=makeArray(set);}else{prune=false;}
 170+while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur="";}else{pop=parts.pop();}
 171+if(pop==null){pop=context;}
 172+Expr.relative[cur](checkSet,pop,isXML(context));}}
 173+if(!checkSet){checkSet=set;}
 174+if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector);}
 175+if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet);}else if(context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i]);}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i]);}}}}else{makeArray(checkSet,results);}
 176+if(extra){Sizzle(extra,context,results,seed);if(sortOrder){hasDuplicate=false;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1);}}}}}
 177+return results;};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set);};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[];}
 178+for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.match[type].exec(expr))){var left=RegExp.leftContext;if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break;}}}}
 179+if(!set){set=context.getElementsByTagName("*");}
 180+return{set:set,expr:expr};};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop==result){result=[];}
 181+if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true;}else if(match===true){continue;}}
 182+if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true;}else{curLoop[i]=false;}}else if(pass){result.push(item);anyFound=true;}}}}
 183+if(found!==undefined){if(!inplace){curLoop=result;}
 184+expr=expr.replace(Expr.match[type],"");if(!anyFound){return[];}
 185+break;}}}
 186+if(expr==old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr;}else{break;}}
 187+old=expr;}
 188+return curLoop;};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href");}},relative:{"+":function(checkSet,part,isXML){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag&&!isXML){part=part.toUpperCase();}
 189+for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}
 190+checkSet[i]=isPartStrNotTag||elem&&elem.nodeName===part?elem||false:elem===part;}}
 191+if(isPartStrNotTag){Sizzle.filter(part,checkSet,true);}},">":function(checkSet,part,isXML){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=isXML?part:part.toUpperCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName===part?parent:false;}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part;}}
 192+if(isPartStr){Sizzle.filter(part,checkSet,true);}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}
 193+checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML);},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}
 194+checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML);}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[];}},NAME:function(match,context,isXML){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i]);}}
 195+return ret.length===0?null:ret;}},TAG:function(match,context){return context.getElementsByTagName(match[1]);}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match;}
 196+for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").indexOf(match)>=0)){if(!inplace)
 197+result.push(elem);}else if(inplace){curLoop[i]=false;}}}
 198+return false;},ID:function(match){return match[1].replace(/\\/g,"");},TAG:function(match,curLoop){for(var i=0;curLoop[i]===false;i++){}
 199+return curLoop[i]&&isXML(curLoop[i])?match[1]:match[1].toUpperCase();},CHILD:function(match){if(match[1]=="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]=="even"&&"2n"||match[2]=="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0;}
 200+match[0]=done++;return match;},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name];}
 201+if(match[2]==="~="){match[4]=" "+match[4]+" ";}
 202+return match;},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if(match[3].match(chunker).length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop);}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret);}
 203+return false;}}else if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true;}
 204+return match;},POS:function(match){match.unshift(true);return match;}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden";},disabled:function(elem){return elem.disabled===true;},checked:function(elem){return elem.checked===true;},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true;},parent:function(elem){return!!elem.firstChild;},empty:function(elem){return!elem.firstChild;},has:function(elem,i,match){return!!Sizzle(match[3],elem).length;},header:function(elem){return/h\d/i.test(elem.nodeName);},text:function(elem){return"text"===elem.type;},radio:function(elem){return"radio"===elem.type;},checkbox:function(elem){return"checkbox"===elem.type;},file:function(elem){return"file"===elem.type;},password:function(elem){return"password"===elem.type;},submit:function(elem){return"submit"===elem.type;},image:function(elem){return"image"===elem.type;},reset:function(elem){return"reset"===elem.type;},button:function(elem){return"button"===elem.type||elem.nodeName.toUpperCase()==="BUTTON";},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName);}},setFilters:{first:function(elem,i){return i===0;},last:function(elem,i,match,array){return i===array.length-1;},even:function(elem,i){return i%2===0;},odd:function(elem,i){return i%2===1;},lt:function(elem,i,match){return i<match[3]-0;},gt:function(elem,i,match){return i>match[3]-0;},nth:function(elem,i,match){return match[3]-0==i;},eq:function(elem,i,match){return match[3]-0==i;}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array);}else if(name==="contains"){return(elem.textContent||elem.innerText||"").indexOf(match[3])>=0;}else if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false;}}
 205+return true;}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case'only':case'first':while(node=node.previousSibling){if(node.nodeType===1)return false;}
 206+if(type=='first')return true;node=elem;case'last':while(node=node.nextSibling){if(node.nodeType===1)return false;}
 207+return true;case'nth':var first=match[2],last=match[3];if(first==1&&last==0){return true;}
 208+var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count;}}
 209+parent.sizcache=doneName;}
 210+var diff=elem.nodeIndex-last;if(first==0){return diff==0;}else{return(diff%first==0&&diff/first>=0);}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match;},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName===match;},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1;},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!=check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false;},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array);}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);}
 211+var makeArray=function(array,results){array=Array.prototype.slice.call(array);if(results){results.push.apply(results,array);return results;}
 212+return array;};try{Array.prototype.slice.call(document.documentElement.childNodes);}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array);}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i]);}}else{for(var i=0;array[i];i++){ret.push(array[i]);}}}
 213+return ret;};}
 214+var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true;}
 215+return ret;};}else if("sourceIndex"in document.documentElement){sortOrder=function(a,b){var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true;}
 216+return ret;};}else if(document.createRange){sortOrder=function(a,b){var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.selectNode(a);aRange.collapse(true);bRange.selectNode(b);bRange.collapse(true);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true;}
 217+return ret;};}
 218+(function(){var form=document.createElement("form"),id="script"+(new Date).getTime();form.innerHTML="<input name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(!!document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[];}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match;};}
 219+root.removeChild(form);})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i]);}}
 220+results=tmp;}
 221+return results;};}
 222+div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2);};}})();if(document.querySelectorAll)(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return;}
 223+Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra);}catch(e){}}
 224+return oldSizzle(query,context,extra,seed);};Sizzle.find=oldSizzle.find;Sizzle.filter=oldSizzle.filter;Sizzle.selectors=oldSizzle.selectors;Sizzle.matches=oldSizzle.matches;})();if(document.getElementsByClassName&&document.documentElement.getElementsByClassName)(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(div.getElementsByClassName("e").length===0)
 225+return;div.lastChild.className="e";if(div.getElementsByClassName("e").length===1)
 226+return;Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1]);}};})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}
 227+elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}
 228+if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i;}
 229+if(elem.nodeName===cur){match=elem;break;}
 230+elem=elem[dir];}
 231+checkSet[i]=match;}}}
 232+function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}
 233+elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}
 234+if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i;}
 235+if(typeof cur!=="string"){if(elem===cur){match=true;break;}}else if(Sizzle.filter(cur,[elem]).length>0){match=elem;break;}}
 236+elem=elem[dir];}
 237+checkSet[i]=match;}}}
 238+var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16;}:function(a,b){return a!==b&&(a.contains?a.contains(b):true);};var isXML=function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&isXML(elem.ownerDocument);};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"");}
 239+selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet);}
 240+return Sizzle.filter(later,tmpSet);};jQuery.find=Sizzle;jQuery.filter=Sizzle.filter;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.filters;Sizzle.selectors.filters.hidden=function(elem){return elem.offsetWidth===0||elem.offsetHeight===0;};Sizzle.selectors.filters.visible=function(elem){return elem.offsetWidth>0||elem.offsetHeight>0;};Sizzle.selectors.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem;}).length;};jQuery.multiFilter=function(expr,elems,not){if(not){expr=":not("+expr+")";}
 241+return Sizzle.matches(expr,elems);};jQuery.dir=function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)
 242+matched.push(cur);cur=cur[dir];}
 243+return matched;};jQuery.nth=function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])
 244+if(cur.nodeType==1&&++num==result)
 245+break;return cur;};jQuery.sibling=function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)
 246+r.push(n);}
 247+return r;};return;window.Sizzle=Sizzle;})();jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)
 248+return;if(elem.setInterval&&elem!=window)
 249+elem=window;if(!handler.guid)
 250+handler.guid=this.guid++;if(data!==undefined){var fn=handler;handler=this.proxy(fn);handler.data=data;}
 251+var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){return typeof jQuery!=="undefined"&&!jQuery.event.triggered?jQuery.event.handle.apply(arguments.callee.elem,arguments):undefined;});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var namespaces=type.split(".");type=namespaces.shift();handler.type=namespaces.slice().sort().join(".");var handlers=events[type];if(jQuery.event.specialAll[type])
 252+jQuery.event.specialAll[type].setup.call(elem,data,namespaces);if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem,data,namespaces)===false){if(elem.addEventListener)
 253+elem.addEventListener(type,handle,false);else if(elem.attachEvent)
 254+elem.attachEvent("on"+type,handle);}}
 255+handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)
 256+return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types===undefined||(typeof types==="string"&&types.charAt(0)=="."))
 257+for(var type in events)
 258+this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}
 259+jQuery.each(types.split(/\s+/),function(index,type){var namespaces=type.split(".");type=namespaces.shift();var namespace=RegExp("(^|\\.)"+namespaces.slice().sort().join(".*\\.")+"(\\.|$)");if(events[type]){if(handler)
 260+delete events[type][handler.guid];else
 261+for(var handle in events[type])
 262+if(namespace.test(events[type][handle].type))
 263+delete events[type][handle];if(jQuery.event.specialAll[type])
 264+jQuery.event.specialAll[type].teardown.call(elem,namespaces);for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem,namespaces)===false){if(elem.removeEventListener)
 265+elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)
 266+elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}
 267+ret=null;delete events[type];}}});}
 268+for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(event,data,elem,bubbling){var type=event.type||event;if(!bubbling){event=typeof event==="object"?event[expando]?event:jQuery.extend(jQuery.Event(type),event):jQuery.Event(type);if(type.indexOf("!")>=0){event.type=type=type.slice(0,-1);event.exclusive=true;}
 269+if(!elem){event.stopPropagation();if(this.global[type])
 270+jQuery.each(jQuery.cache,function(){if(this.events&&this.events[type])
 271+jQuery.event.trigger(event,data,this.handle.elem);});}
 272+if(!elem||elem.nodeType==3||elem.nodeType==8)
 273+return undefined;event.result=undefined;event.target=elem;data=jQuery.makeArray(data);data.unshift(event);}
 274+event.currentTarget=elem;var handle=jQuery.data(elem,"handle");if(handle)
 275+handle.apply(elem,data);if((!elem[type]||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)
 276+event.result=false;if(!bubbling&&elem[type]&&!event.isDefaultPrevented()&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}
 277+this.triggered=false;if(!event.isPropagationStopped()){var parent=elem.parentNode||elem.ownerDocument;if(parent)
 278+jQuery.event.trigger(event,data,parent,true);}},handle:function(event){var all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);event.currentTarget=this;var namespaces=event.type.split(".");event.type=namespaces.shift();all=!namespaces.length&&!event.exclusive;var namespace=RegExp("(^|\\.)"+namespaces.slice().sort().join(".*\\.")+"(\\.|$)");handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||namespace.test(handler.type)){event.handler=handler;event.data=handler.data;var ret=handler.apply(this,arguments);if(ret!==undefined){event.result=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}
 279+if(event.isImmediatePropagationStopped())
 280+break;}}},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 toElement view wheelDelta which".split(" "),fix:function(event){if(event[expando])
 281+return event;var originalEvent=event;event=jQuery.Event(originalEvent);for(var i=this.props.length,prop;i;){prop=this.props[--i];event[prop]=originalEvent[prop];}
 282+if(!event.target)
 283+event.target=event.srcElement||document;if(event.target.nodeType==3)
 284+event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)
 285+event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}
 286+if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))
 287+event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)
 288+event.metaKey=event.ctrlKey;if(!event.which&&event.button)
 289+event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy=proxy||function(){return fn.apply(this,arguments);};proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:bindReady,teardown:function(){}}},specialAll:{live:{setup:function(selector,namespaces){jQuery.event.add(this,namespaces[0],liveHandler);},teardown:function(namespaces){if(namespaces.length){var remove=0,name=RegExp("(^|\\.)"+namespaces[0]+"(\\.|$)");jQuery.each((jQuery.data(this,"events").live||{}),function(){if(name.test(this.type))
 290+remove++;});if(remove<1)
 291+jQuery.event.remove(this,namespaces[0],liveHandler);}}}}};jQuery.Event=function(src){if(!this.preventDefault)
 292+return new jQuery.Event(src);if(src&&src.type){this.originalEvent=src;this.type=src.type;}else
 293+this.type=src;this.timeStamp=now();this[expando]=true;};function returnFalse(){return false;}
 294+function returnTrue(){return true;}
 295+jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e)
 296+return;if(e.preventDefault)
 297+e.preventDefault();e.returnValue=false;},stopPropagation:function(){this.isPropagationStopped=returnTrue;var e=this.originalEvent;if(!e)
 298+return;if(e.stopPropagation)
 299+e.stopPropagation();e.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation();},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};var withinElement=function(event){var parent=event.relatedTarget;while(parent&&parent!=this)
 300+try{parent=parent.parentNode;}
 301+catch(e){parent=this;}
 302+if(parent!=this){event.type=event.data;jQuery.event.handle.apply(this,arguments);}};jQuery.each({mouseover:'mouseenter',mouseout:'mouseleave'},function(orig,fix){jQuery.event.special[fix]={setup:function(){jQuery.event.add(this,orig,withinElement,fix);},teardown:function(){jQuery.event.remove(this,orig,withinElement);}};});jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this);});},triggerHandler:function(type,data){if(this[0]){var event=jQuery.Event(type);event.preventDefault();event.stopPropagation();jQuery.event.trigger(event,data,this[0]);return event.result;}},toggle:function(fn){var args=arguments,i=1;while(i<args.length)
 303+jQuery.event.proxy(fn,args[i++]);return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)
 304+fn.call(document,jQuery);else
 305+jQuery.readyList.push(fn);return this;},live:function(type,fn){var proxy=jQuery.event.proxy(fn);proxy.guid+=this.selector+type;jQuery(document).bind(liveConvert(type,this.selector),this.selector,proxy);return this;},die:function(type,fn){jQuery(document).unbind(liveConvert(type,this.selector),fn?{guid:fn.guid+this.selector+type}:null);return this;}});function liveHandler(event){var check=RegExp("(^|\\.)"+event.type+"(\\.|$)"),stop=true,elems=[];jQuery.each(jQuery.data(this,"events").live||[],function(i,fn){if(check.test(fn.type)){var elem=jQuery(event.target).closest(fn.data)[0];if(elem)
 306+elems.push({elem:elem,fn:fn});}});elems.sort(function(a,b){return jQuery.data(a.elem,"closest")-jQuery.data(b.elem,"closest");});jQuery.each(elems,function(){if(this.fn.call(this.elem,event,this.fn.data)===false)
 307+return(stop=false);});return stop;}
 308+function liveConvert(type,selector){return["live",type,selector.replace(/\./g,"`").replace(/ /g,"|")].join(".");}
 309+jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document,jQuery);});jQuery.readyList=null;}
 310+jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);jQuery.ready();},false);}else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);jQuery.ready();}});if(document.documentElement.doScroll&&window==window.top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}
 311+jQuery.ready();})();}
 312+jQuery.event.add(window,"load",jQuery.ready);}
 313+jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,"+"change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});jQuery(window).bind('unload',function(){for(var id in jQuery.cache)
 314+if(id!=1&&jQuery.cache[id].handle)
 315+jQuery.event.remove(jQuery.cache[id].handle.elem);});(function(){jQuery.support={};var root=document.documentElement,script=document.createElement("script"),div=document.createElement("div"),id="script"+(new Date).getTime();div.style.display="none";div.innerHTML=' <link/><table></table><a href="https://www.mediawiki.org/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var all=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!all||!all.length||!a){return;}
 316+jQuery.support={leadingWhitespace:div.firstChild.nodeType==3,tbody:!div.getElementsByTagName("tbody").length,objectAll:!!div.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:a.style.opacity==="0.5",cssFloat:!!a.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};script.type="text/javascript";try{script.appendChild(document.createTextNode("window."+id+"=1;"));}catch(e){}
 317+root.insertBefore(script,root.firstChild);if(window[id]){jQuery.support.scriptEval=true;delete window[id];}
 318+root.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function(){jQuery.support.noCloneEvent=false;div.detachEvent("onclick",arguments.callee);});div.cloneNode(true).fireEvent("onclick");}
 319+jQuery(function(){var div=document.createElement("div");div.style.width=div.style.paddingLeft="1px";document.body.appendChild(div);jQuery.boxModel=jQuery.support.boxModel=div.offsetWidth===2;document.body.removeChild(div).style.display='none';});})();var styleFloat=jQuery.support.cssFloat?"cssFloat":"styleFloat";jQuery.props={"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!=="string")
 320+return this._load(url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}
 321+var type="GET";if(params)
 322+if(jQuery.isFunction(params)){callback=params;params=null;}else if(typeof params==="object"){params=jQuery.param(params);type="POST";}
 323+var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")
 324+self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);if(callback)
 325+self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}
 326+return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}
 327+return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!=="string")
 328+s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre))
 329+s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))
 330+s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}
 331+if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)
 332+s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}
 333+if(head)
 334+head.removeChild(script);};}
 335+if(s.dataType=="script"&&s.cache==null)
 336+s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}
 337+if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}
 338+if(s.global&&!jQuery.active++)
 339+jQuery.event.trigger("ajaxStart");var parts=/^(\w+:)?\/\/([^\/?#]+)/.exec(s.url);if(s.dataType=="script"&&type=="GET"&&parts&&(parts[1]&&parts[1]!=location.protocol||parts[2]!=location.host)){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)
 340+script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();script.onload=script.onreadystatechange=null;head.removeChild(script);}};}
 341+head.appendChild(script);return undefined;}
 342+var requestDone=false;var xhr=s.xhr();if(s.username)
 343+xhr.open(type,s.url,s.async,s.username,s.password);else
 344+xhr.open(type,s.url,s.async);try{if(s.data)
 345+xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)
 346+xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}
 347+if(s.beforeSend&&s.beforeSend(xhr,s)===false){if(s.global&&!--jQuery.active)
 348+jQuery.event.trigger("ajaxStop");xhr.abort();return false;}
 349+if(s.global)
 350+jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(xhr.readyState==0){if(ival){clearInterval(ival);ival=null;if(s.global&&!--jQuery.active)
 351+jQuery.event.trigger("ajaxStop");}}else if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}
 352+status=isTimeout=="timeout"?"timeout":!jQuery.httpSuccess(xhr)?"error":s.ifModified&&jQuery.httpNotModified(xhr,s.url)?"notmodified":"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s);}catch(e){status="parsererror";}}
 353+if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}
 354+if(s.ifModified&&modRes)
 355+jQuery.lastModified[s.url]=modRes;if(!jsonp)
 356+success();}else
 357+jQuery.handleError(s,xhr,status);complete();if(isTimeout)
 358+xhr.abort();if(s.async)
 359+xhr=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)
 360+setTimeout(function(){if(xhr&&!requestDone)
 361+onreadystatechange("timeout");},s.timeout);}
 362+try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}
 363+if(!s.async)
 364+onreadystatechange();function success(){if(s.success)
 365+s.success(data,status);if(s.global)
 366+jQuery.event.trigger("ajaxSuccess",[xhr,s]);}
 367+function complete(){if(s.complete)
 368+s.complete(xhr,status);if(s.global)
 369+jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)
 370+jQuery.event.trigger("ajaxStop");}
 371+return xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)
 372+jQuery.event.trigger("ajaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223;}catch(e){}
 373+return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url];}catch(e){}
 374+return false;},httpData:function(xhr,type,s){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")
 375+throw"parsererror";if(s&&s.dataFilter)
 376+data=s.dataFilter(data,type);if(typeof data==="string"){if(type=="script")
 377+jQuery.globalEval(data);if(type=="json")
 378+data=window["eval"]("("+data+")");}
 379+return data;},param:function(a){var s=[];function add(key,value){s[s.length]=encodeURIComponent(key)+'='+encodeURIComponent(value);};if(jQuery.isArray(a)||a.jquery)
 380+jQuery.each(a,function(){add(this.name,this.value);});else
 381+for(var j in a)
 382+if(jQuery.isArray(a[j]))
 383+jQuery.each(a[j],function(){add(j,this);});else
 384+add(j,jQuery.isFunction(a[j])?a[j]():a[j]);return s.join("&").replace(/%20/g,"+");}});var elemdisplay={},timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function genFx(type,num){var obj={};jQuery.each(fxAttrs.concat.apply([],fxAttrs.slice(0,num)),function(){obj[this]=type;});return obj;}
 385+jQuery.fn.extend({show:function(speed,callback){if(speed){return this.animate(genFx("show",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");this[i].style.display=old||"";if(jQuery.css(this[i],"display")==="none"){var tagName=this[i].tagName,display;if(elemdisplay[tagName]){display=elemdisplay[tagName];}else{var elem=jQuery("<"+tagName+" />").appendTo("body");display=elem.css("display");if(display==="none")
 386+display="block";elem.remove();elemdisplay[tagName]=display;}
 387+jQuery.data(this[i],"olddisplay",display);}}
 388+for(var i=0,l=this.length;i<l;i++){this[i].style.display=jQuery.data(this[i],"olddisplay")||"";}
 389+return this;}},hide:function(speed,callback){if(speed){return this.animate(genFx("hide",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");if(!old&&old!=="none")
 390+jQuery.data(this[i],"olddisplay",jQuery.css(this[i],"display"));}
 391+for(var i=0,l=this.length;i<l;i++){this[i].style.display="none";}
 392+return this;}},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){var bool=typeof fn==="boolean";return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn==null||bool?this.each(function(){var state=bool?fn:jQuery(this).is(":hidden");jQuery(this)[state?"show":"hide"]();}):this.animate(genFx("toggle",3),fn,fn2);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){var opt=jQuery.extend({},optall),p,hidden=this.nodeType==1&&jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)
 393+return opt.complete.call(this);if((p=="height"||p=="width")&&this.style){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}
 394+if(opt.overflow!=null)
 395+this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))
 396+e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}
 397+if(parts[1])
 398+end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
 399+e.custom(start,val,"");}});return true;});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)
 400+this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)
 401+if(timers[i].elem==this){if(gotoEnd)
 402+timers[i](true);timers.splice(i,1);}});if(!gotoEnd)
 403+this.dequeue();return this;}});jQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(name,props){jQuery.fn[name]=function(speed,callback){return this.animate(props,speed,callback);};});jQuery.extend({speed:function(speed,easing,fn){var opt=typeof speed==="object"?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:jQuery.fx.speeds[opt.duration]||jQuery.fx.speeds._default;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)
 404+jQuery(this).dequeue();if(jQuery.isFunction(opt.old))
 405+opt.old.call(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)
 406+options.orig={};}});jQuery.fx.prototype={update:function(){if(this.options.step)
 407+this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style)
 408+this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))
 409+return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;var self=this;function t(gotoEnd){return self.step(gotoEnd);}
 410+t.elem=this.elem;if(t()&&jQuery.timers.push(t)&&!timerId){timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)
 411+if(!timers[i]())
 412+timers.splice(i--,1);if(!timers.length){clearInterval(timerId);timerId=undefined;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();if(gotoEnd||t>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)
 413+if(this.options.curAnim[i]!==true)
 414+done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")
 415+this.elem.style.display="block";}
 416+if(this.options.hide)
 417+jQuery(this.elem).hide();if(this.options.hide||this.options.show)
 418+for(var p in this.options.curAnim)
 419+jQuery.attr(this.elem.style,p,this.options.orig[p]);this.options.complete.call(this.elem);}
 420+return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}
 421+return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){if(fx.elem.style&&fx.elem.style[fx.prop]!=null)
 422+fx.elem.style[fx.prop]=fx.now+fx.unit;else
 423+fx.elem[fx.prop]=fx.now;}}});if(document.documentElement["getBoundingClientRect"])
 424+jQuery.fn.offset=function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return jQuery.offset.bodyOffset(this[0]);var box=this[0].getBoundingClientRect(),doc=this[0].ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=box.top+(self.pageYOffset||jQuery.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=box.left+(self.pageXOffset||jQuery.boxModel&&docElem.scrollLeft||body.scrollLeft)-clientLeft;return{top:top,left:left};};else
 425+jQuery.fn.offset=function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return jQuery.offset.bodyOffset(this[0]);jQuery.offset.initialized||jQuery.offset.initialize();var elem=this[0],offsetParent=elem.offsetParent,prevOffsetParent=elem,doc=elem.ownerDocument,computedStyle,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView.getComputedStyle(elem,null),top=elem.offsetTop,left=elem.offsetLeft;while((elem=elem.parentNode)&&elem!==body&&elem!==docElem){computedStyle=defaultView.getComputedStyle(elem,null);top-=elem.scrollTop,left-=elem.scrollLeft;if(elem===offsetParent){top+=elem.offsetTop,left+=elem.offsetLeft;if(jQuery.offset.doesNotAddBorder&&!(jQuery.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(elem.tagName)))
 426+top+=parseInt(computedStyle.borderTopWidth,10)||0,left+=parseInt(computedStyle.borderLeftWidth,10)||0;prevOffsetParent=offsetParent,offsetParent=elem.offsetParent;}
 427+if(jQuery.offset.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible")
 428+top+=parseInt(computedStyle.borderTopWidth,10)||0,left+=parseInt(computedStyle.borderLeftWidth,10)||0;prevComputedStyle=computedStyle;}
 429+if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static")
 430+top+=body.offsetTop,left+=body.offsetLeft;if(prevComputedStyle.position==="fixed")
 431+top+=Math.max(docElem.scrollTop,body.scrollTop),left+=Math.max(docElem.scrollLeft,body.scrollLeft);return{top:top,left:left};};jQuery.offset={initialize:function(){if(this.initialized)return;var body=document.body,container=document.createElement('div'),innerDiv,checkDiv,table,td,rules,prop,bodyMarginTop=body.style.marginTop,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>';rules={position:'absolute',top:0,left:0,margin:0,border:0,width:'1px',height:'1px',visibility:'hidden'};for(prop in rules)container.style[prop]=rules[prop];container.innerHTML=html;body.insertBefore(container,body.firstChild);innerDiv=container.firstChild,checkDiv=innerDiv.firstChild,td=innerDiv.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);innerDiv.style.overflow='hidden',innerDiv.style.position='relative';this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);body.style.marginTop='1px';this.doesNotIncludeMarginInBodyOffset=(body.offsetTop===0);body.style.marginTop=bodyMarginTop;body.removeChild(container);this.initialized=true;},bodyOffset:function(body){jQuery.offset.initialized||jQuery.offset.initialize();var top=body.offsetTop,left=body.offsetLeft;if(jQuery.offset.doesNotIncludeMarginInBodyOffset)
 432+top+=parseInt(jQuery.curCSS(body,'marginTop',true),10)||0,left+=parseInt(jQuery.curCSS(body,'marginLeft',true),10)||0;return{top:top,left:left};}};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}
 433+return results;},offsetParent:function(){var offsetParent=this[0].offsetParent||document.body;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))
 434+offsetParent=offsetParent.offsetParent;return jQuery(offsetParent);}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return null;return val!==undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom",lower=name.toLowerCase();jQuery.fn["inner"+name]=function(){return this[0]?jQuery.css(this[0],lower,false,"padding"):null;};jQuery.fn["outer"+name]=function(margin){return this[0]?jQuery.css(this[0],lower,false,margin?"margin":"border"):null;};var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(document.documentElement["client"+name],document.body["scroll"+name],document.documentElement["scroll"+name],document.body["offset"+name],document.documentElement["offset"+name]):size===undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,typeof size==="string"?size:size+"px");};});})();$j=jQuery.noConflict();if(typeof mw=='undefined'||!mw){mw={};mw.ready=function(func){$j(document).ready(func);}
 435+mw.load=function(deps,callback){callback();};mw.loadDone=function(className){};if(!gMsg)var gMsg={};mw.addMessages=function(msgSet){for(var i in msgSet){gMsg[i]=msgSet[i];}}
 436+function gM(key,args){var ms='';if(key in gMsg){ms=gMsg[key];if(typeof args=='object'||typeof args=='array'){for(var v in args){var rep='\$'+(parseInt(v)+1);ms=ms.replace(rep,args[v]);}}else if(typeof args=='string'||typeof args=='number'){ms=ms.replace(/\$1/,args);}
 437+return ms;}else{return'['+key+']';}}}
\ No newline at end of file
Property changes on: trunk/phase3/skins/common/jquery.min.js
___________________________________________________________________
Name: svn:mergeinfo
1438 +
Name: svn:eol-style
2439 + native
Index: trunk/phase3/includes/OutputPage.php
@@ -50,7 +50,7 @@
5151 /**
5252 * Whether to load jQuery core.
5353 */
54 - protected $mIncludeJQuery = false;
 54+ protected $mJQueryDone = false;
5555
5656 private $mIndexPolicy = 'index';
5757 private $mFollowPolicy = 'follow';
@@ -2131,19 +2131,27 @@
21322132
21332133 /**
21342134 * Include jQuery core. Use this to avoid loading it multiple times
2135 - * before we get usable script loader.
 2135+ * before we get a usable script loader.
 2136+ *
 2137+ * @param array $modules List of jQuery modules which should be loaded
 2138+ *
 2139+ * Returns the list of modules which were not loaded.
21362140 */
2137 - public function includeJQuery() {
2138 - if ( $this->mIncludeJQuery ) return;
2139 - $this->mIncludeJQuery = true;
2140 -
 2141+ public function includeJQuery( $modules = array() ) {
21412142 global $wgScriptPath, $wgStyleVersion, $wgJsMimeType;
21422143
 2144+ $supportedModules = array( 'ui' );
 2145+ $unsupported = array_diff( $modules, $supportedModules );
 2146+
21432147 $params = array(
21442148 'type' => $wgJsMimeType,
2145 - 'src' => "$wgScriptPath/js2/js2stopgap.min.js?$wgStyleVersion",
 2149+ 'src' => "$wgScriptPath/skins/common/jquery.min.js?$wgStyleVersion",
21462150 );
2147 - $this->mScripts = Html::element( 'script', $params ) . "\n" . $this->mScripts;
 2151+ if ( !$this->mJQueryDone ) {
 2152+ $this->mJQueryDone = true;
 2153+ $this->mScripts = Html::element( 'script', $params ) . "\n" . $this->mScripts;
 2154+ }
 2155+ return $unsupported;
21482156 }
21492157
21502158 }
Index: trunk/phase3/includes/DefaultSettings.php
@@ -4321,10 +4321,3 @@
43224322 */
43234323 $wgOldChangeTagsIndex = false;
43244324
4325 -/**
4326 - * Set of loader.js files to setup dynamic loading of javascript libraries using mwEmbed
4327 - *
4328 - * Extensions can add mwEmbed modules via adding paths to their loader.js to
4329 - * $wgExtensionJavascriptLoader[] = path/to/loader.js
4330 - */
4331 -$wgExtensionJavascriptLoader = array();
Index: trunk/phase3/js2/js2stopgap.js
@@ -1,4447 +0,0 @@
2 -/*!
3 - * jQuery JavaScript Library v1.3.2
4 - * http://jquery.com/
5 - *
6 - * Copyright (c) 2009 John Resig
7 - * Dual licensed under the MIT and GPL licenses.
8 - * http://docs.jquery.com/License
9 - *
10 - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
11 - * Revision: 6246
12 - */
13 -(function(){
14 -
15 -var
16 - // Will speed up references to window, and allows munging its name.
17 - window = this,
18 - // Will speed up references to undefined, and allows munging its name.
19 - undefined,
20 - // Map over jQuery in case of overwrite
21 - _jQuery = window.jQuery,
22 - // Map over the $ in case of overwrite
23 - _$ = window.$,
24 -
25 - jQuery = window.jQuery = window.$ = function( selector, context ) {
26 - // The jQuery object is actually just the init constructor 'enhanced'
27 - return new jQuery.fn.init( selector, context );
28 - },
29 -
30 - // A simple way to check for HTML strings or ID strings
31 - // (both of which we optimize for)
32 - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
33 - // Is it a simple selector
34 - isSimple = /^.[^:#\[\.,]*$/;
35 -
36 -jQuery.fn = jQuery.prototype = {
37 - init: function( selector, context ) {
38 - // Make sure that a selection was provided
39 - selector = selector || document;
40 -
41 - // Handle $(DOMElement)
42 - if ( selector.nodeType ) {
43 - this[0] = selector;
44 - this.length = 1;
45 - this.context = selector;
46 - return this;
47 - }
48 - // Handle HTML strings
49 - if ( typeof selector === "string" ) {
50 - // Are we dealing with HTML string or an ID?
51 - var match = quickExpr.exec( selector );
52 -
53 - // Verify a match, and that no context was specified for #id
54 - if ( match && (match[1] || !context) ) {
55 -
56 - // HANDLE: $(html) -> $(array)
57 - if ( match[1] )
58 - selector = jQuery.clean( [ match[1] ], context );
59 -
60 - // HANDLE: $("#id")
61 - else {
62 - var elem = document.getElementById( match[3] );
63 -
64 - // Handle the case where IE and Opera return items
65 - // by name instead of ID
66 - if ( elem && elem.id != match[3] )
67 - return jQuery().find( selector );
68 -
69 - // Otherwise, we inject the element directly into the jQuery object
70 - var ret = jQuery( elem || [] );
71 - ret.context = document;
72 - ret.selector = selector;
73 - return ret;
74 - }
75 -
76 - // HANDLE: $(expr, [context])
77 - // (which is just equivalent to: $(content).find(expr)
78 - } else
79 - return jQuery( context ).find( selector );
80 -
81 - // HANDLE: $(function)
82 - // Shortcut for document ready
83 - } else if ( jQuery.isFunction( selector ) )
84 - return jQuery( document ).ready( selector );
85 -
86 - // Make sure that old selector state is passed along
87 - if ( selector.selector && selector.context ) {
88 - this.selector = selector.selector;
89 - this.context = selector.context;
90 - }
91 -
92 - return this.setArray(jQuery.isArray( selector ) ?
93 - selector :
94 - jQuery.makeArray(selector));
95 - },
96 -
97 - // Start with an empty selector
98 - selector: "",
99 -
100 - // The current version of jQuery being used
101 - jquery: "1.3.2",
102 -
103 - // The number of elements contained in the matched element set
104 - size: function() {
105 - return this.length;
106 - },
107 -
108 - // Get the Nth element in the matched element set OR
109 - // Get the whole matched element set as a clean array
110 - get: function( num ) {
111 - return num === undefined ?
112 -
113 - // Return a 'clean' array
114 - Array.prototype.slice.call( this ) :
115 -
116 - // Return just the object
117 - this[ num ];
118 - },
119 -
120 - // Take an array of elements and push it onto the stack
121 - // (returning the new matched element set)
122 - pushStack: function( elems, name, selector ) {
123 - // Build a new jQuery matched element set
124 - var ret = jQuery( elems );
125 -
126 - // Add the old object onto the stack (as a reference)
127 - ret.prevObject = this;
128 -
129 - ret.context = this.context;
130 -
131 - if ( name === "find" )
132 - ret.selector = this.selector + (this.selector ? " " : "") + selector;
133 - else if ( name )
134 - ret.selector = this.selector + "." + name + "(" + selector + ")";
135 -
136 - // Return the newly-formed element set
137 - return ret;
138 - },
139 -
140 - // Force the current matched set of elements to become
141 - // the specified array of elements (destroying the stack in the process)
142 - // You should use pushStack() in order to do this, but maintain the stack
143 - setArray: function( elems ) {
144 - // Resetting the length to 0, then using the native Array push
145 - // is a super-fast way to populate an object with array-like properties
146 - this.length = 0;
147 - Array.prototype.push.apply( this, elems );
148 -
149 - return this;
150 - },
151 -
152 - // Execute a callback for every element in the matched set.
153 - // (You can seed the arguments with an array of args, but this is
154 - // only used internally.)
155 - each: function( callback, args ) {
156 - return jQuery.each( this, callback, args );
157 - },
158 -
159 - // Determine the position of an element within
160 - // the matched set of elements
161 - index: function( elem ) {
162 - // Locate the position of the desired element
163 - return jQuery.inArray(
164 - // If it receives a jQuery object, the first element is used
165 - elem && elem.jquery ? elem[0] : elem
166 - , this );
167 - },
168 -
169 - attr: function( name, value, type ) {
170 - var options = name;
171 -
172 - // Look for the case where we're accessing a style value
173 - if ( typeof name === "string" )
174 - if ( value === undefined )
175 - return this[0] && jQuery[ type || "attr" ]( this[0], name );
176 -
177 - else {
178 - options = {};
179 - options[ name ] = value;
180 - }
181 -
182 - // Check to see if we're setting style values
183 - return this.each(function(i){
184 - // Set all the styles
185 - for ( name in options )
186 - jQuery.attr(
187 - type ?
188 - this.style :
189 - this,
190 - name, jQuery.prop( this, options[ name ], type, i, name )
191 - );
192 - });
193 - },
194 -
195 - css: function( key, value ) {
196 - // ignore negative width and height values
197 - if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
198 - value = undefined;
199 - return this.attr( key, value, "curCSS" );
200 - },
201 -
202 - text: function( text ) {
203 - if ( typeof text !== "object" && text != null )
204 - return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
205 -
206 - var ret = "";
207 -
208 - jQuery.each( text || this, function(){
209 - jQuery.each( this.childNodes, function(){
210 - if ( this.nodeType != 8 )
211 - ret += this.nodeType != 1 ?
212 - this.nodeValue :
213 - jQuery.fn.text( [ this ] );
214 - });
215 - });
216 -
217 - return ret;
218 - },
219 -
220 - wrapAll: function( html ) {
221 - if ( this[0] ) {
222 - // The elements to wrap the target around
223 - var wrap = jQuery( html, this[0].ownerDocument ).clone();
224 -
225 - if ( this[0].parentNode )
226 - wrap.insertBefore( this[0] );
227 -
228 - wrap.map(function(){
229 - var elem = this;
230 -
231 - while ( elem.firstChild )
232 - elem = elem.firstChild;
233 -
234 - return elem;
235 - }).append(this);
236 - }
237 -
238 - return this;
239 - },
240 -
241 - wrapInner: function( html ) {
242 - return this.each(function(){
243 - jQuery( this ).contents().wrapAll( html );
244 - });
245 - },
246 -
247 - wrap: function( html ) {
248 - return this.each(function(){
249 - jQuery( this ).wrapAll( html );
250 - });
251 - },
252 -
253 - append: function() {
254 - return this.domManip(arguments, true, function(elem){
255 - if (this.nodeType == 1)
256 - this.appendChild( elem );
257 - });
258 - },
259 -
260 - prepend: function() {
261 - return this.domManip(arguments, true, function(elem){
262 - if (this.nodeType == 1)
263 - this.insertBefore( elem, this.firstChild );
264 - });
265 - },
266 -
267 - before: function() {
268 - return this.domManip(arguments, false, function(elem){
269 - this.parentNode.insertBefore( elem, this );
270 - });
271 - },
272 -
273 - after: function() {
274 - return this.domManip(arguments, false, function(elem){
275 - this.parentNode.insertBefore( elem, this.nextSibling );
276 - });
277 - },
278 -
279 - end: function() {
280 - return this.prevObject || jQuery( [] );
281 - },
282 -
283 - // For internal use only.
284 - // Behaves like an Array's method, not like a jQuery method.
285 - push: [].push,
286 - sort: [].sort,
287 - splice: [].splice,
288 -
289 - find: function( selector ) {
290 - if ( this.length === 1 ) {
291 - var ret = this.pushStack( [], "find", selector );
292 - ret.length = 0;
293 - jQuery.find( selector, this[0], ret );
294 - return ret;
295 - } else {
296 - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){
297 - return jQuery.find( selector, elem );
298 - })), "find", selector );
299 - }
300 - },
301 -
302 - clone: function( events ) {
303 - // Do the clone
304 - var ret = this.map(function(){
305 - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
306 - // IE copies events bound via attachEvent when
307 - // using cloneNode. Calling detachEvent on the
308 - // clone will also remove the events from the orignal
309 - // In order to get around this, we use innerHTML.
310 - // Unfortunately, this means some modifications to
311 - // attributes in IE that are actually only stored
312 - // as properties will not be copied (such as the
313 - // the name attribute on an input).
314 - var html = this.outerHTML;
315 - if ( !html ) {
316 - var div = this.ownerDocument.createElement("div");
317 - div.appendChild( this.cloneNode(true) );
318 - html = div.innerHTML;
319 - }
320 -
321 - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0];
322 - } else
323 - return this.cloneNode(true);
324 - });
325 -
326 - // Copy the events from the original to the clone
327 - if ( events === true ) {
328 - var orig = this.find("*").andSelf(), i = 0;
329 -
330 - ret.find("*").andSelf().each(function(){
331 - if ( this.nodeName !== orig[i].nodeName )
332 - return;
333 -
334 - var events = jQuery.data( orig[i], "events" );
335 -
336 - for ( var type in events ) {
337 - for ( var handler in events[ type ] ) {
338 - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
339 - }
340 - }
341 -
342 - i++;
343 - });
344 - }
345 -
346 - // Return the cloned set
347 - return ret;
348 - },
349 -
350 - filter: function( selector ) {
351 - return this.pushStack(
352 - jQuery.isFunction( selector ) &&
353 - jQuery.grep(this, function(elem, i){
354 - return selector.call( elem, i );
355 - }) ||
356 -
357 - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){
358 - return elem.nodeType === 1;
359 - }) ), "filter", selector );
360 - },
361 -
362 - closest: function( selector ) {
363 - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null,
364 - closer = 0;
365 -
366 - return this.map(function(){
367 - var cur = this;
368 - while ( cur && cur.ownerDocument ) {
369 - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) {
370 - jQuery.data(cur, "closest", closer);
371 - return cur;
372 - }
373 - cur = cur.parentNode;
374 - closer++;
375 - }
376 - });
377 - },
378 -
379 - not: function( selector ) {
380 - if ( typeof selector === "string" )
381 - // test special case where just one selector is passed in
382 - if ( isSimple.test( selector ) )
383 - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector );
384 - else
385 - selector = jQuery.multiFilter( selector, this );
386 -
387 - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
388 - return this.filter(function() {
389 - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
390 - });
391 - },
392 -
393 - add: function( selector ) {
394 - return this.pushStack( jQuery.unique( jQuery.merge(
395 - this.get(),
396 - typeof selector === "string" ?
397 - jQuery( selector ) :
398 - jQuery.makeArray( selector )
399 - )));
400 - },
401 -
402 - is: function( selector ) {
403 - return !!selector && jQuery.multiFilter( selector, this ).length > 0;
404 - },
405 -
406 - hasClass: function( selector ) {
407 - return !!selector && this.is( "." + selector );
408 - },
409 -
410 - val: function( value ) {
411 - if ( value === undefined ) {
412 - var elem = this[0];
413 -
414 - if ( elem ) {
415 - if( jQuery.nodeName( elem, 'option' ) )
416 - return (elem.attributes.value || {}).specified ? elem.value : elem.text;
417 -
418 - // We need to handle select boxes special
419 - if ( jQuery.nodeName( elem, "select" ) ) {
420 - var index = elem.selectedIndex,
421 - values = [],
422 - options = elem.options,
423 - one = elem.type == "select-one";
424 -
425 - // Nothing was selected
426 - if ( index < 0 )
427 - return null;
428 -
429 - // Loop through all the selected options
430 - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
431 - var option = options[ i ];
432 -
433 - if ( option.selected ) {
434 - // Get the specifc value for the option
435 - value = jQuery(option).val();
436 -
437 - // We don't need an array for one selects
438 - if ( one )
439 - return value;
440 -
441 - // Multi-Selects return an array
442 - values.push( value );
443 - }
444 - }
445 -
446 - return values;
447 - }
448 -
449 - // Everything else, we just grab the value
450 - return (elem.value || "").replace(/\r/g, "");
451 -
452 - }
453 -
454 - return undefined;
455 - }
456 -
457 - if ( typeof value === "number" )
458 - value += '';
459 -
460 - return this.each(function(){
461 - if ( this.nodeType != 1 )
462 - return;
463 -
464 - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
465 - this.checked = (jQuery.inArray(this.value, value) >= 0 ||
466 - jQuery.inArray(this.name, value) >= 0);
467 -
468 - else if ( jQuery.nodeName( this, "select" ) ) {
469 - var values = jQuery.makeArray(value);
470 -
471 - jQuery( "option", this ).each(function(){
472 - this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
473 - jQuery.inArray( this.text, values ) >= 0);
474 - });
475 -
476 - if ( !values.length )
477 - this.selectedIndex = -1;
478 -
479 - } else
480 - this.value = value;
481 - });
482 - },
483 -
484 - html: function( value ) {
485 - return value === undefined ?
486 - (this[0] ?
487 - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") :
488 - null) :
489 - this.empty().append( value );
490 - },
491 -
492 - replaceWith: function( value ) {
493 - return this.after( value ).remove();
494 - },
495 -
496 - eq: function( i ) {
497 - return this.slice( i, +i + 1 );
498 - },
499 -
500 - slice: function() {
501 - return this.pushStack( Array.prototype.slice.apply( this, arguments ),
502 - "slice", Array.prototype.slice.call(arguments).join(",") );
503 - },
504 -
505 - map: function( callback ) {
506 - return this.pushStack( jQuery.map(this, function(elem, i){
507 - return callback.call( elem, i, elem );
508 - }));
509 - },
510 -
511 - andSelf: function() {
512 - return this.add( this.prevObject );
513 - },
514 -
515 - domManip: function( args, table, callback ) {
516 - if ( this[0] ) {
517 - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(),
518 - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ),
519 - first = fragment.firstChild;
520 -
521 - if ( first )
522 - for ( var i = 0, l = this.length; i < l; i++ )
523 - callback.call( root(this[i], first), this.length > 1 || i > 0 ?
524 - fragment.cloneNode(true) : fragment );
525 -
526 - if ( scripts )
527 - jQuery.each( scripts, evalScript );
528 - }
529 -
530 - return this;
531 -
532 - function root( elem, cur ) {
533 - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ?
534 - (elem.getElementsByTagName("tbody")[0] ||
535 - elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
536 - elem;
537 - }
538 - }
539 -};
540 -
541 -// Give the init function the jQuery prototype for later instantiation
542 -jQuery.fn.init.prototype = jQuery.fn;
543 -
544 -function evalScript( i, elem ) {
545 - if ( elem.src )
546 - jQuery.ajax({
547 - url: elem.src,
548 - async: false,
549 - dataType: "script"
550 - });
551 -
552 - else
553 - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
554 -
555 - if ( elem.parentNode )
556 - elem.parentNode.removeChild( elem );
557 -}
558 -
559 -function now(){
560 - return +new Date;
561 -}
562 -
563 -jQuery.extend = jQuery.fn.extend = function() {
564 - // copy reference to target object
565 - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
566 -
567 - // Handle a deep copy situation
568 - if ( typeof target === "boolean" ) {
569 - deep = target;
570 - target = arguments[1] || {};
571 - // skip the boolean and the target
572 - i = 2;
573 - }
574 -
575 - // Handle case when target is a string or something (possible in deep copy)
576 - if ( typeof target !== "object" && !jQuery.isFunction(target) )
577 - target = {};
578 -
579 - // extend jQuery itself if only one argument is passed
580 - if ( length == i ) {
581 - target = this;
582 - --i;
583 - }
584 -
585 - for ( ; i < length; i++ )
586 - // Only deal with non-null/undefined values
587 - if ( (options = arguments[ i ]) != null )
588 - // Extend the base object
589 - for ( var name in options ) {
590 - var src = target[ name ], copy = options[ name ];
591 -
592 - // Prevent never-ending loop
593 - if ( target === copy )
594 - continue;
595 -
596 - // Recurse if we're merging object values
597 - if ( deep && copy && typeof copy === "object" && !copy.nodeType )
598 - target[ name ] = jQuery.extend( deep,
599 - // Never move original objects, clone them
600 - src || ( copy.length != null ? [ ] : { } )
601 - , copy );
602 -
603 - // Don't bring in undefined values
604 - else if ( copy !== undefined )
605 - target[ name ] = copy;
606 -
607 - }
608 -
609 - // Return the modified object
610 - return target;
611 -};
612 -
613 -// exclude the following css properties to add px
614 -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
615 - // cache defaultView
616 - defaultView = document.defaultView || {},
617 - toString = Object.prototype.toString;
618 -
619 -jQuery.extend({
620 - noConflict: function( deep ) {
621 - window.$ = _$;
622 -
623 - if ( deep )
624 - window.jQuery = _jQuery;
625 -
626 - return jQuery;
627 - },
628 -
629 - // See test/unit/core.js for details concerning isFunction.
630 - // Since version 1.3, DOM methods and functions like alert
631 - // aren't supported. They return false on IE (#2968).
632 - isFunction: function( obj ) {
633 - return toString.call(obj) === "[object Function]";
634 - },
635 -
636 - isArray: function( obj ) {
637 - return toString.call(obj) === "[object Array]";
638 - },
639 -
640 - // check if an element is in a (or is an) XML document
641 - isXMLDoc: function( elem ) {
642 - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
643 - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument );
644 - },
645 -
646 - // Evalulates a script in a global context
647 - globalEval: function( data ) {
648 - if ( data && /\S/.test(data) ) {
649 - // Inspired by code by Andrea Giammarchi
650 - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
651 - var head = document.getElementsByTagName("head")[0] || document.documentElement,
652 - script = document.createElement("script");
653 -
654 - script.type = "text/javascript";
655 - if ( jQuery.support.scriptEval )
656 - script.appendChild( document.createTextNode( data ) );
657 - else
658 - script.text = data;
659 -
660 - // Use insertBefore instead of appendChild to circumvent an IE6 bug.
661 - // This arises when a base node is used (#2709).
662 - head.insertBefore( script, head.firstChild );
663 - head.removeChild( script );
664 - }
665 - },
666 -
667 - nodeName: function( elem, name ) {
668 - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
669 - },
670 -
671 - // args is for internal usage only
672 - each: function( object, callback, args ) {
673 - var name, i = 0, length = object.length;
674 -
675 - if ( args ) {
676 - if ( length === undefined ) {
677 - for ( name in object )
678 - if ( callback.apply( object[ name ], args ) === false )
679 - break;
680 - } else
681 - for ( ; i < length; )
682 - if ( callback.apply( object[ i++ ], args ) === false )
683 - break;
684 -
685 - // A special, fast, case for the most common use of each
686 - } else {
687 - if ( length === undefined ) {
688 - for ( name in object )
689 - if ( callback.call( object[ name ], name, object[ name ] ) === false )
690 - break;
691 - } else
692 - for ( var value = object[0];
693 - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
694 - }
695 -
696 - return object;
697 - },
698 -
699 - prop: function( elem, value, type, i, name ) {
700 - // Handle executable functions
701 - if ( jQuery.isFunction( value ) )
702 - value = value.call( elem, i );
703 -
704 - // Handle passing in a number to a CSS property
705 - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ?
706 - value + "px" :
707 - value;
708 - },
709 -
710 - className: {
711 - // internal only, use addClass("class")
712 - add: function( elem, classNames ) {
713 - jQuery.each((classNames || "").split(/\s+/), function(i, className){
714 - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
715 - elem.className += (elem.className ? " " : "") + className;
716 - });
717 - },
718 -
719 - // internal only, use removeClass("class")
720 - remove: function( elem, classNames ) {
721 - if (elem.nodeType == 1)
722 - elem.className = classNames !== undefined ?
723 - jQuery.grep(elem.className.split(/\s+/), function(className){
724 - return !jQuery.className.has( classNames, className );
725 - }).join(" ") :
726 - "";
727 - },
728 -
729 - // internal only, use hasClass("class")
730 - has: function( elem, className ) {
731 - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
732 - }
733 - },
734 -
735 - // A method for quickly swapping in/out CSS properties to get correct calculations
736 - swap: function( elem, options, callback ) {
737 - var old = {};
738 - // Remember the old values, and insert the new ones
739 - for ( var name in options ) {
740 - old[ name ] = elem.style[ name ];
741 - elem.style[ name ] = options[ name ];
742 - }
743 -
744 - callback.call( elem );
745 -
746 - // Revert the old values
747 - for ( var name in options )
748 - elem.style[ name ] = old[ name ];
749 - },
750 -
751 - css: function( elem, name, force, extra ) {
752 - if ( name == "width" || name == "height" ) {
753 - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ];
754 -
755 - function getWH() {
756 - val = name == "width" ? elem.offsetWidth : elem.offsetHeight;
757 -
758 - if ( extra === "border" )
759 - return;
760 -
761 - jQuery.each( which, function() {
762 - if ( !extra )
763 - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
764 - if ( extra === "margin" )
765 - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0;
766 - else
767 - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
768 - });
769 - }
770 -
771 - if ( elem.offsetWidth !== 0 )
772 - getWH();
773 - else
774 - jQuery.swap( elem, props, getWH );
775 -
776 - return Math.max(0, Math.round(val));
777 - }
778 -
779 - return jQuery.curCSS( elem, name, force );
780 - },
781 -
782 - curCSS: function( elem, name, force ) {
783 - var ret, style = elem.style;
784 -
785 - // We need to handle opacity special in IE
786 - if ( name == "opacity" && !jQuery.support.opacity ) {
787 - ret = jQuery.attr( style, "opacity" );
788 -
789 - return ret == "" ?
790 - "1" :
791 - ret;
792 - }
793 -
794 - // Make sure we're using the right name for getting the float value
795 - if ( name.match( /float/i ) )
796 - name = styleFloat;
797 -
798 - if ( !force && style && style[ name ] )
799 - ret = style[ name ];
800 -
801 - else if ( defaultView.getComputedStyle ) {
802 -
803 - // Only "float" is needed here
804 - if ( name.match( /float/i ) )
805 - name = "float";
806 -
807 - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
808 - try{
809 - var computedStyle = defaultView.getComputedStyle( elem, null );
810 - }catch(e){
811 - // Error in getting computedStyle
812 - }
813 - if ( computedStyle )
814 - ret = computedStyle.getPropertyValue( name );
815 -
816 - // We should always get a number back from opacity
817 - if ( name == "opacity" && ret == "" )
818 - ret = "1";
819 -
820 - } else if ( elem.currentStyle ) {
821 - var camelCase = name.replace(/\-(\w)/g, function(all, letter){
822 - return letter.toUpperCase();
823 - });
824 -
825 - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
826 -
827 - // From the awesome hack by Dean Edwards
828 - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
829 -
830 - // If we're not dealing with a regular pixel number
831 - // but a number that has a weird ending, we need to convert it to pixels
832 - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
833 - // Remember the original values
834 - var left = style.left, rsLeft = elem.runtimeStyle.left;
835 -
836 - // Put in the new values to get a computed value out
837 - elem.runtimeStyle.left = elem.currentStyle.left;
838 - style.left = ret || 0;
839 - ret = style.pixelLeft + "px";
840 -
841 - // Revert the changed values
842 - style.left = left;
843 - elem.runtimeStyle.left = rsLeft;
844 - }
845 - }
846 -
847 - return ret;
848 - },
849 -
850 - clean: function( elems, context, fragment ) {
851 - context = context || document;
852 -
853 - // !context.createElement fails in IE with an error but returns typeof 'object'
854 - if ( typeof context.createElement === "undefined" )
855 - context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
856 -
857 - // If a single string is passed in and it's a single tag
858 - // just do a createElement and skip the rest
859 - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) {
860 - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]);
861 - if ( match )
862 - return [ context.createElement( match[1] ) ];
863 - }
864 -
865 - var ret = [], scripts = [], div = context.createElement("div");
866 -
867 - jQuery.each(elems, function(i, elem){
868 - if ( typeof elem === "number" )
869 - elem += '';
870 -
871 - if ( !elem )
872 - return;
873 -
874 - // Convert html string into DOM nodes
875 - if ( typeof elem === "string" ) {
876 - // Fix "XHTML"-style tags in all browsers
877 - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
878 - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
879 - all :
880 - front + "></" + tag + ">";
881 - });
882 -
883 - // Trim whitespace, otherwise indexOf won't work as expected
884 - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase();
885 -
886 - var wrap =
887 - // option or optgroup
888 - !tags.indexOf("<opt") &&
889 - [ 1, "<select multiple='multiple'>", "</select>" ] ||
890 -
891 - !tags.indexOf("<leg") &&
892 - [ 1, "<fieldset>", "</fieldset>" ] ||
893 -
894 - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
895 - [ 1, "<table>", "</table>" ] ||
896 -
897 - !tags.indexOf("<tr") &&
898 - [ 2, "<table><tbody>", "</tbody></table>" ] ||
899 -
900 - // <thead> matched above
901 - (!tags.indexOf("<td") || !tags.indexOf("<th")) &&
902 - [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||
903 -
904 - !tags.indexOf("<col") &&
905 - [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||
906 -
907 - // IE can't serialize <link> and <script> tags normally
908 - !jQuery.support.htmlSerialize &&
909 - [ 1, "div<div>", "</div>" ] ||
910 -
911 - [ 0, "", "" ];
912 -
913 - // Go to html and back, then peel off extra wrappers
914 - div.innerHTML = wrap[1] + elem + wrap[2];
915 -
916 - // Move to the right depth
917 - while ( wrap[0]-- )
918 - div = div.lastChild;
919 -
920 - // Remove IE's autoinserted <tbody> from table fragments
921 - if ( !jQuery.support.tbody ) {
922 -
923 - // String was a <table>, *may* have spurious <tbody>
924 - var hasBody = /<tbody/i.test(elem),
925 - tbody = !tags.indexOf("<table") && !hasBody ?
926 - div.firstChild && div.firstChild.childNodes :
927 -
928 - // String was a bare <thead> or <tfoot>
929 - wrap[1] == "<table>" && !hasBody ?
930 - div.childNodes :
931 - [];
932 -
933 - for ( var j = tbody.length - 1; j >= 0 ; --j )
934 - if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )
935 - tbody[ j ].parentNode.removeChild( tbody[ j ] );
936 -
937 - }
938 -
939 - // IE completely kills leading whitespace when innerHTML is used
940 - if ( !jQuery.support.leadingWhitespace && /^\s/.test( elem ) )
941 - div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );
942 -
943 - elem = jQuery.makeArray( div.childNodes );
944 - }
945 -
946 - if ( elem.nodeType )
947 - ret.push( elem );
948 - else
949 - ret = jQuery.merge( ret, elem );
950 -
951 - });
952 -
953 - if ( fragment ) {
954 - for ( var i = 0; ret[i]; i++ ) {
955 - if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
956 - scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
957 - } else {
958 - if ( ret[i].nodeType === 1 )
959 - ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
960 - fragment.appendChild( ret[i] );
961 - }
962 - }
963 -
964 - return scripts;
965 - }
966 -
967 - return ret;
968 - },
969 -
970 - attr: function( elem, name, value ) {
971 - // don't set attributes on text and comment nodes
972 - if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
973 - return undefined;
974 -
975 - var notxml = !jQuery.isXMLDoc( elem ),
976 - // Whether we are setting (or getting)
977 - set = value !== undefined;
978 -
979 - // Try to normalize/fix the name
980 - name = notxml && jQuery.props[ name ] || name;
981 -
982 - // Only do all the following if this is a node (faster for style)
983 - // IE elem.getAttribute passes even for style
984 - if ( elem.tagName ) {
985 -
986 - // These attributes require special treatment
987 - var special = /href|src|style/.test( name );
988 -
989 - // Safari mis-reports the default selected property of a hidden option
990 - // Accessing the parent's selectedIndex property fixes it
991 - if ( name == "selected" && elem.parentNode )
992 - elem.parentNode.selectedIndex;
993 -
994 - // If applicable, access the attribute via the DOM 0 way
995 - if ( name in elem && notxml && !special ) {
996 - if ( set ){
997 - // We can't allow the type property to be changed (since it causes problems in IE)
998 - if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
999 - throw "type property can't be changed";
1000 -
1001 - elem[ name ] = value;
1002 - }
1003 -
1004 - // browsers index elements by id/name on forms, give priority to attributes.
1005 - if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
1006 - return elem.getAttributeNode( name ).nodeValue;
1007 -
1008 - // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
1009 - // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
1010 - if ( name == "tabIndex" ) {
1011 - var attributeNode = elem.getAttributeNode( "tabIndex" );
1012 - return attributeNode && attributeNode.specified
1013 - ? attributeNode.value
1014 - : elem.nodeName.match(/(button|input|object|select|textarea)/i)
1015 - ? 0
1016 - : elem.nodeName.match(/^(a|area)$/i) && elem.href
1017 - ? 0
1018 - : undefined;
1019 - }
1020 -
1021 - return elem[ name ];
1022 - }
1023 -
1024 - if ( !jQuery.support.style && notxml && name == "style" )
1025 - return jQuery.attr( elem.style, "cssText", value );
1026 -
1027 - if ( set )
1028 - // convert the value to a string (all browsers do this but IE) see #1070
1029 - elem.setAttribute( name, "" + value );
1030 -
1031 - var attr = !jQuery.support.hrefNormalized && notxml && special
1032 - // Some attributes require a special call on IE
1033 - ? elem.getAttribute( name, 2 )
1034 - : elem.getAttribute( name );
1035 -
1036 - // Non-existent attributes return null, we normalize to undefined
1037 - return attr === null ? undefined : attr;
1038 - }
1039 -
1040 - // elem is actually elem.style ... set the style
1041 -
1042 - // IE uses filters for opacity
1043 - if ( !jQuery.support.opacity && name == "opacity" ) {
1044 - if ( set ) {
1045 - // IE has trouble with opacity if it does not have layout
1046 - // Force it by setting the zoom level
1047 - elem.zoom = 1;
1048 -
1049 - // Set the alpha filter to set the opacity
1050 - elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +
1051 - (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
1052 - }
1053 -
1054 - return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
1055 - (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
1056 - "";
1057 - }
1058 -
1059 - name = name.replace(/-([a-z])/ig, function(all, letter){
1060 - return letter.toUpperCase();
1061 - });
1062 -
1063 - if ( set && value != 'NaNpx' ) // Patched by Trevor, see http://is.gd/5NXiD
1064 - elem[ name ] = value;
1065 -
1066 - return elem[ name ];
1067 - },
1068 -
1069 - trim: function( text ) {
1070 - return (text || "").replace( /^\s+|\s+$/g, "" );
1071 - },
1072 -
1073 - makeArray: function( array ) {
1074 - var ret = [];
1075 -
1076 - if( array != null ){
1077 - var i = array.length;
1078 - // The window, strings (and functions) also have 'length'
1079 - if( i == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval )
1080 - ret[0] = array;
1081 - else
1082 - while( i )
1083 - ret[--i] = array[i];
1084 - }
1085 -
1086 - return ret;
1087 - },
1088 -
1089 - inArray: function( elem, array ) {
1090 - for ( var i = 0, length = array.length; i < length; i++ )
1091 - // Use === because on IE, window == document
1092 - if ( array[ i ] === elem )
1093 - return i;
1094 -
1095 - return -1;
1096 - },
1097 -
1098 - merge: function( first, second ) {
1099 - // We have to loop this way because IE & Opera overwrite the length
1100 - // expando of getElementsByTagName
1101 - var i = 0, elem, pos = first.length;
1102 - // Also, we need to make sure that the correct elements are being returned
1103 - // (IE returns comment nodes in a '*' query)
1104 - if ( !jQuery.support.getAll ) {
1105 - while ( (elem = second[ i++ ]) != null )
1106 - if ( elem.nodeType != 8 )
1107 - first[ pos++ ] = elem;
1108 -
1109 - } else
1110 - while ( (elem = second[ i++ ]) != null )
1111 - first[ pos++ ] = elem;
1112 -
1113 - return first;
1114 - },
1115 -
1116 - unique: function( array ) {
1117 - var ret = [], done = {};
1118 -
1119 - try {
1120 -
1121 - for ( var i = 0, length = array.length; i < length; i++ ) {
1122 - var id = jQuery.data( array[ i ] );
1123 -
1124 - if ( !done[ id ] ) {
1125 - done[ id ] = true;
1126 - ret.push( array[ i ] );
1127 - }
1128 - }
1129 -
1130 - } catch( e ) {
1131 - ret = array;
1132 - }
1133 -
1134 - return ret;
1135 - },
1136 -
1137 - grep: function( elems, callback, inv ) {
1138 - var ret = [];
1139 -
1140 - // Go through the array, only saving the items
1141 - // that pass the validator function
1142 - for ( var i = 0, length = elems.length; i < length; i++ )
1143 - if ( !inv != !callback( elems[ i ], i ) )
1144 - ret.push( elems[ i ] );
1145 -
1146 - return ret;
1147 - },
1148 -
1149 - map: function( elems, callback ) {
1150 - var ret = [];
1151 -
1152 - // Go through the array, translating each of the items to their
1153 - // new value (or values).
1154 - for ( var i = 0, length = elems.length; i < length; i++ ) {
1155 - var value = callback( elems[ i ], i );
1156 -
1157 - if ( value != null )
1158 - ret[ ret.length ] = value;
1159 - }
1160 -
1161 - return ret.concat.apply( [], ret );
1162 - }
1163 -});
1164 -
1165 -// Use of jQuery.browser is deprecated.
1166 -// It's included for backwards compatibility and plugins,
1167 -// although they should work to migrate away.
1168 -
1169 -var userAgent = navigator.userAgent.toLowerCase();
1170 -
1171 -// Figure out what browser is being used
1172 -jQuery.browser = {
1173 - version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
1174 - safari: /webkit/.test( userAgent ),
1175 - opera: /opera/.test( userAgent ),
1176 - msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
1177 - mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
1178 -};
1179 -
1180 -jQuery.each({
1181 - parent: function(elem){return elem.parentNode;},
1182 - parents: function(elem){return jQuery.dir(elem,"parentNode");},
1183 - next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
1184 - prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
1185 - nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
1186 - prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
1187 - siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
1188 - children: function(elem){return jQuery.sibling(elem.firstChild);},
1189 - contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
1190 -}, function(name, fn){
1191 - jQuery.fn[ name ] = function( selector ) {
1192 - var ret = jQuery.map( this, fn );
1193 -
1194 - if ( selector && typeof selector == "string" )
1195 - ret = jQuery.multiFilter( selector, ret );
1196 -
1197 - return this.pushStack( jQuery.unique( ret ), name, selector );
1198 - };
1199 -});
1200 -
1201 -jQuery.each({
1202 - appendTo: "append",
1203 - prependTo: "prepend",
1204 - insertBefore: "before",
1205 - insertAfter: "after",
1206 - replaceAll: "replaceWith"
1207 -}, function(name, original){
1208 - jQuery.fn[ name ] = function( selector ) {
1209 - var ret = [], insert = jQuery( selector );
1210 -
1211 - for ( var i = 0, l = insert.length; i < l; i++ ) {
1212 - var elems = (i > 0 ? this.clone(true) : this).get();
1213 - jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
1214 - ret = ret.concat( elems );
1215 - }
1216 -
1217 - return this.pushStack( ret, name, selector );
1218 - };
1219 -});
1220 -
1221 -jQuery.each({
1222 - removeAttr: function( name ) {
1223 - jQuery.attr( this, name, "" );
1224 - if (this.nodeType == 1)
1225 - this.removeAttribute( name );
1226 - },
1227 -
1228 - addClass: function( classNames ) {
1229 - jQuery.className.add( this, classNames );
1230 - },
1231 -
1232 - removeClass: function( classNames ) {
1233 - jQuery.className.remove( this, classNames );
1234 - },
1235 -
1236 - toggleClass: function( classNames, state ) {
1237 - if( typeof state !== "boolean" )
1238 - state = !jQuery.className.has( this, classNames );
1239 - jQuery.className[ state ? "add" : "remove" ]( this, classNames );
1240 - },
1241 -
1242 - remove: function( selector ) {
1243 - if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
1244 - // Prevent memory leaks
1245 - jQuery( "*", this ).add([this]).each(function(){
1246 - jQuery.event.remove(this);
1247 - jQuery.removeData(this);
1248 - });
1249 - if (this.parentNode)
1250 - this.parentNode.removeChild( this );
1251 - }
1252 - },
1253 -
1254 - empty: function() {
1255 - // Remove element nodes and prevent memory leaks
1256 - jQuery(this).children().remove();
1257 -
1258 - // Remove any remaining nodes
1259 - while ( this.firstChild )
1260 - this.removeChild( this.firstChild );
1261 - }
1262 -}, function(name, fn){
1263 - jQuery.fn[ name ] = function(){
1264 - return this.each( fn, arguments );
1265 - };
1266 -});
1267 -
1268 -// Helper function used by the dimensions and offset modules
1269 -function num(elem, prop) {
1270 - return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
1271 -}
1272 -var expando = "jQuery" + now(), uuid = 0, windowData = {};
1273 -
1274 -jQuery.extend({
1275 - cache: {},
1276 -
1277 - data: function( elem, name, data ) {
1278 - elem = elem == window ?
1279 - windowData :
1280 - elem;
1281 -
1282 - var id = elem[ expando ];
1283 -
1284 - // Compute a unique ID for the element
1285 - if ( !id )
1286 - id = elem[ expando ] = ++uuid;
1287 -
1288 - // Only generate the data cache if we're
1289 - // trying to access or manipulate it
1290 - if ( name && !jQuery.cache[ id ] )
1291 - jQuery.cache[ id ] = {};
1292 -
1293 - // Prevent overriding the named cache with undefined values
1294 - if ( data !== undefined )
1295 - jQuery.cache[ id ][ name ] = data;
1296 -
1297 - // Return the named cache data, or the ID for the element
1298 - return name ?
1299 - jQuery.cache[ id ][ name ] :
1300 - id;
1301 - },
1302 -
1303 - removeData: function( elem, name ) {
1304 - elem = elem == window ?
1305 - windowData :
1306 - elem;
1307 -
1308 - var id = elem[ expando ];
1309 -
1310 - // If we want to remove a specific section of the element's data
1311 - if ( name ) {
1312 - if ( jQuery.cache[ id ] ) {
1313 - // Remove the section of cache data
1314 - delete jQuery.cache[ id ][ name ];
1315 -
1316 - // If we've removed all the data, remove the element's cache
1317 - name = "";
1318 -
1319 - for ( name in jQuery.cache[ id ] )
1320 - break;
1321 -
1322 - if ( !name )
1323 - jQuery.removeData( elem );
1324 - }
1325 -
1326 - // Otherwise, we want to remove all of the element's data
1327 - } else {
1328 - // Clean up the element expando
1329 - try {
1330 - delete elem[ expando ];
1331 - } catch(e){
1332 - // IE has trouble directly removing the expando
1333 - // but it's ok with using removeAttribute
1334 - if ( elem.removeAttribute )
1335 - elem.removeAttribute( expando );
1336 - }
1337 -
1338 - // Completely remove the data cache
1339 - delete jQuery.cache[ id ];
1340 - }
1341 - },
1342 - queue: function( elem, type, data ) {
1343 - if ( elem ){
1344 -
1345 - type = (type || "fx") + "queue";
1346 -
1347 - var q = jQuery.data( elem, type );
1348 -
1349 - if ( !q || jQuery.isArray(data) )
1350 - q = jQuery.data( elem, type, jQuery.makeArray(data) );
1351 - else if( data )
1352 - q.push( data );
1353 -
1354 - }
1355 - return q;
1356 - },
1357 -
1358 - dequeue: function( elem, type ){
1359 - var queue = jQuery.queue( elem, type ),
1360 - fn = queue.shift();
1361 -
1362 - if( !type || type === "fx" )
1363 - fn = queue[0];
1364 -
1365 - if( fn !== undefined )
1366 - fn.call(elem);
1367 - }
1368 -});
1369 -
1370 -jQuery.fn.extend({
1371 - data: function( key, value ){
1372 - var parts = key.split(".");
1373 - parts[1] = parts[1] ? "." + parts[1] : "";
1374 -
1375 - if ( value === undefined ) {
1376 - var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
1377 -
1378 - if ( data === undefined && this.length )
1379 - data = jQuery.data( this[0], key );
1380 -
1381 - return data === undefined && parts[1] ?
1382 - this.data( parts[0] ) :
1383 - data;
1384 - } else
1385 - return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
1386 - jQuery.data( this, key, value );
1387 - });
1388 - },
1389 -
1390 - removeData: function( key ){
1391 - return this.each(function(){
1392 - jQuery.removeData( this, key );
1393 - });
1394 - },
1395 - queue: function(type, data){
1396 - if ( typeof type !== "string" ) {
1397 - data = type;
1398 - type = "fx";
1399 - }
1400 -
1401 - if ( data === undefined )
1402 - return jQuery.queue( this[0], type );
1403 -
1404 - return this.each(function(){
1405 - var queue = jQuery.queue( this, type, data );
1406 -
1407 - if( type == "fx" && queue.length == 1 )
1408 - queue[0].call(this);
1409 - });
1410 - },
1411 - dequeue: function(type){
1412 - return this.each(function(){
1413 - jQuery.dequeue( this, type );
1414 - });
1415 - }
1416 -});/*!
1417 - * Sizzle CSS Selector Engine - v0.9.3
1418 - * Copyright 2009, The Dojo Foundation
1419 - * Released under the MIT, BSD, and GPL Licenses.
1420 - * More information: http://sizzlejs.com/
1421 - */
1422 -(function(){
1423 -
1424 -var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,
1425 - done = 0,
1426 - toString = Object.prototype.toString;
1427 -
1428 -var Sizzle = function(selector, context, results, seed) {
1429 - results = results || [];
1430 - context = context || document;
1431 -
1432 - if ( context.nodeType !== 1 && context.nodeType !== 9 )
1433 - return [];
1434 -
1435 - if ( !selector || typeof selector !== "string" ) {
1436 - return results;
1437 - }
1438 -
1439 - var parts = [], m, set, checkSet, check, mode, extra, prune = true;
1440 -
1441 - // Reset the position of the chunker regexp (start from head)
1442 - chunker.lastIndex = 0;
1443 -
1444 - while ( (m = chunker.exec(selector)) !== null ) {
1445 - parts.push( m[1] );
1446 -
1447 - if ( m[2] ) {
1448 - extra = RegExp.rightContext;
1449 - break;
1450 - }
1451 - }
1452 -
1453 - if ( parts.length > 1 && origPOS.exec( selector ) ) {
1454 - if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
1455 - set = posProcess( parts[0] + parts[1], context );
1456 - } else {
1457 - set = Expr.relative[ parts[0] ] ?
1458 - [ context ] :
1459 - Sizzle( parts.shift(), context );
1460 -
1461 - while ( parts.length ) {
1462 - selector = parts.shift();
1463 -
1464 - if ( Expr.relative[ selector ] )
1465 - selector += parts.shift();
1466 -
1467 - set = posProcess( selector, set );
1468 - }
1469 - }
1470 - } else {
1471 - var ret = seed ?
1472 - { expr: parts.pop(), set: makeArray(seed) } :
1473 - Sizzle.find( parts.pop(), parts.length === 1 && context.parentNode ? context.parentNode : context, isXML(context) );
1474 - set = Sizzle.filter( ret.expr, ret.set );
1475 -
1476 - if ( parts.length > 0 ) {
1477 - checkSet = makeArray(set);
1478 - } else {
1479 - prune = false;
1480 - }
1481 -
1482 - while ( parts.length ) {
1483 - var cur = parts.pop(), pop = cur;
1484 -
1485 - if ( !Expr.relative[ cur ] ) {
1486 - cur = "";
1487 - } else {
1488 - pop = parts.pop();
1489 - }
1490 -
1491 - if ( pop == null ) {
1492 - pop = context;
1493 - }
1494 -
1495 - Expr.relative[ cur ]( checkSet, pop, isXML(context) );
1496 - }
1497 - }
1498 -
1499 - if ( !checkSet ) {
1500 - checkSet = set;
1501 - }
1502 -
1503 - if ( !checkSet ) {
1504 - throw "Syntax error, unrecognized expression: " + (cur || selector);
1505 - }
1506 -
1507 - if ( toString.call(checkSet) === "[object Array]" ) {
1508 - if ( !prune ) {
1509 - results.push.apply( results, checkSet );
1510 - } else if ( context.nodeType === 1 ) {
1511 - for ( var i = 0; checkSet[i] != null; i++ ) {
1512 - if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
1513 - results.push( set[i] );
1514 - }
1515 - }
1516 - } else {
1517 - for ( var i = 0; checkSet[i] != null; i++ ) {
1518 - if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
1519 - results.push( set[i] );
1520 - }
1521 - }
1522 - }
1523 - } else {
1524 - makeArray( checkSet, results );
1525 - }
1526 -
1527 - if ( extra ) {
1528 - Sizzle( extra, context, results, seed );
1529 -
1530 - if ( sortOrder ) {
1531 - hasDuplicate = false;
1532 - results.sort(sortOrder);
1533 -
1534 - if ( hasDuplicate ) {
1535 - for ( var i = 1; i < results.length; i++ ) {
1536 - if ( results[i] === results[i-1] ) {
1537 - results.splice(i--, 1);
1538 - }
1539 - }
1540 - }
1541 - }
1542 - }
1543 -
1544 - return results;
1545 -};
1546 -
1547 -Sizzle.matches = function(expr, set){
1548 - return Sizzle(expr, null, null, set);
1549 -};
1550 -
1551 -Sizzle.find = function(expr, context, isXML){
1552 - var set, match;
1553 -
1554 - if ( !expr ) {
1555 - return [];
1556 - }
1557 -
1558 - for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
1559 - var type = Expr.order[i], match;
1560 -
1561 - if ( (match = Expr.match[ type ].exec( expr )) ) {
1562 - var left = RegExp.leftContext;
1563 -
1564 - if ( left.substr( left.length - 1 ) !== "\\" ) {
1565 - match[1] = (match[1] || "").replace(/\\/g, "");
1566 - set = Expr.find[ type ]( match, context, isXML );
1567 - if ( set != null ) {
1568 - expr = expr.replace( Expr.match[ type ], "" );
1569 - break;
1570 - }
1571 - }
1572 - }
1573 - }
1574 -
1575 - if ( !set ) {
1576 - set = context.getElementsByTagName("*");
1577 - }
1578 -
1579 - return {set: set, expr: expr};
1580 -};
1581 -
1582 -Sizzle.filter = function(expr, set, inplace, not){
1583 - var old = expr, result = [], curLoop = set, match, anyFound,
1584 - isXMLFilter = set && set[0] && isXML(set[0]);
1585 -
1586 - while ( expr && set.length ) {
1587 - for ( var type in Expr.filter ) {
1588 - if ( (match = Expr.match[ type ].exec( expr )) != null ) {
1589 - var filter = Expr.filter[ type ], found, item;
1590 - anyFound = false;
1591 -
1592 - if ( curLoop == result ) {
1593 - result = [];
1594 - }
1595 -
1596 - if ( Expr.preFilter[ type ] ) {
1597 - match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
1598 -
1599 - if ( !match ) {
1600 - anyFound = found = true;
1601 - } else if ( match === true ) {
1602 - continue;
1603 - }
1604 - }
1605 -
1606 - if ( match ) {
1607 - for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
1608 - if ( item ) {
1609 - found = filter( item, match, i, curLoop );
1610 - var pass = not ^ !!found;
1611 -
1612 - if ( inplace && found != null ) {
1613 - if ( pass ) {
1614 - anyFound = true;
1615 - } else {
1616 - curLoop[i] = false;
1617 - }
1618 - } else if ( pass ) {
1619 - result.push( item );
1620 - anyFound = true;
1621 - }
1622 - }
1623 - }
1624 - }
1625 -
1626 - if ( found !== undefined ) {
1627 - if ( !inplace ) {
1628 - curLoop = result;
1629 - }
1630 -
1631 - expr = expr.replace( Expr.match[ type ], "" );
1632 -
1633 - if ( !anyFound ) {
1634 - return [];
1635 - }
1636 -
1637 - break;
1638 - }
1639 - }
1640 - }
1641 -
1642 - // Improper expression
1643 - if ( expr == old ) {
1644 - if ( anyFound == null ) {
1645 - throw "Syntax error, unrecognized expression: " + expr;
1646 - } else {
1647 - break;
1648 - }
1649 - }
1650 -
1651 - old = expr;
1652 - }
1653 -
1654 - return curLoop;
1655 -};
1656 -
1657 -var Expr = Sizzle.selectors = {
1658 - order: [ "ID", "NAME", "TAG" ],
1659 - match: {
1660 - ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
1661 - CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
1662 - NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,
1663 - ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
1664 - TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,
1665 - CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
1666 - POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
1667 - PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/
1668 - },
1669 - attrMap: {
1670 - "class": "className",
1671 - "for": "htmlFor"
1672 - },
1673 - attrHandle: {
1674 - href: function(elem){
1675 - return elem.getAttribute("href");
1676 - }
1677 - },
1678 - relative: {
1679 - "+": function(checkSet, part, isXML){
1680 - var isPartStr = typeof part === "string",
1681 - isTag = isPartStr && !/\W/.test(part),
1682 - isPartStrNotTag = isPartStr && !isTag;
1683 -
1684 - if ( isTag && !isXML ) {
1685 - part = part.toUpperCase();
1686 - }
1687 -
1688 - for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
1689 - if ( (elem = checkSet[i]) ) {
1690 - while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
1691 -
1692 - checkSet[i] = isPartStrNotTag || elem && elem.nodeName === part ?
1693 - elem || false :
1694 - elem === part;
1695 - }
1696 - }
1697 -
1698 - if ( isPartStrNotTag ) {
1699 - Sizzle.filter( part, checkSet, true );
1700 - }
1701 - },
1702 - ">": function(checkSet, part, isXML){
1703 - var isPartStr = typeof part === "string";
1704 -
1705 - if ( isPartStr && !/\W/.test(part) ) {
1706 - part = isXML ? part : part.toUpperCase();
1707 -
1708 - for ( var i = 0, l = checkSet.length; i < l; i++ ) {
1709 - var elem = checkSet[i];
1710 - if ( elem ) {
1711 - var parent = elem.parentNode;
1712 - checkSet[i] = parent.nodeName === part ? parent : false;
1713 - }
1714 - }
1715 - } else {
1716 - for ( var i = 0, l = checkSet.length; i < l; i++ ) {
1717 - var elem = checkSet[i];
1718 - if ( elem ) {
1719 - checkSet[i] = isPartStr ?
1720 - elem.parentNode :
1721 - elem.parentNode === part;
1722 - }
1723 - }
1724 -
1725 - if ( isPartStr ) {
1726 - Sizzle.filter( part, checkSet, true );
1727 - }
1728 - }
1729 - },
1730 - "": function(checkSet, part, isXML){
1731 - var doneName = done++, checkFn = dirCheck;
1732 -
1733 - if ( !part.match(/\W/) ) {
1734 - var nodeCheck = part = isXML ? part : part.toUpperCase();
1735 - checkFn = dirNodeCheck;
1736 - }
1737 -
1738 - checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
1739 - },
1740 - "~": function(checkSet, part, isXML){
1741 - var doneName = done++, checkFn = dirCheck;
1742 -
1743 - if ( typeof part === "string" && !part.match(/\W/) ) {
1744 - var nodeCheck = part = isXML ? part : part.toUpperCase();
1745 - checkFn = dirNodeCheck;
1746 - }
1747 -
1748 - checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
1749 - }
1750 - },
1751 - find: {
1752 - ID: function(match, context, isXML){
1753 - if ( typeof context.getElementById !== "undefined" && !isXML ) {
1754 - var m = context.getElementById(match[1]);
1755 - return m ? [m] : [];
1756 - }
1757 - },
1758 - NAME: function(match, context, isXML){
1759 - if ( typeof context.getElementsByName !== "undefined" ) {
1760 - var ret = [], results = context.getElementsByName(match[1]);
1761 -
1762 - for ( var i = 0, l = results.length; i < l; i++ ) {
1763 - if ( results[i].getAttribute("name") === match[1] ) {
1764 - ret.push( results[i] );
1765 - }
1766 - }
1767 -
1768 - return ret.length === 0 ? null : ret;
1769 - }
1770 - },
1771 - TAG: function(match, context){
1772 - return context.getElementsByTagName(match[1]);
1773 - }
1774 - },
1775 - preFilter: {
1776 - CLASS: function(match, curLoop, inplace, result, not, isXML){
1777 - match = " " + match[1].replace(/\\/g, "") + " ";
1778 -
1779 - if ( isXML ) {
1780 - return match;
1781 - }
1782 -
1783 - for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
1784 - if ( elem ) {
1785 - if ( not ^ (elem.className && (" " + elem.className + " ").indexOf(match) >= 0) ) {
1786 - if ( !inplace )
1787 - result.push( elem );
1788 - } else if ( inplace ) {
1789 - curLoop[i] = false;
1790 - }
1791 - }
1792 - }
1793 -
1794 - return false;
1795 - },
1796 - ID: function(match){
1797 - return match[1].replace(/\\/g, "");
1798 - },
1799 - TAG: function(match, curLoop){
1800 - for ( var i = 0; curLoop[i] === false; i++ ){}
1801 - return curLoop[i] && isXML(curLoop[i]) ? match[1] : match[1].toUpperCase();
1802 - },
1803 - CHILD: function(match){
1804 - if ( match[1] == "nth" ) {
1805 - // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
1806 - var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
1807 - match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
1808 - !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
1809 -
1810 - // calculate the numbers (first)n+(last) including if they are negative
1811 - match[2] = (test[1] + (test[2] || 1)) - 0;
1812 - match[3] = test[3] - 0;
1813 - }
1814 -
1815 - // TODO: Move to normal caching system
1816 - match[0] = done++;
1817 -
1818 - return match;
1819 - },
1820 - ATTR: function(match, curLoop, inplace, result, not, isXML){
1821 - var name = match[1].replace(/\\/g, "");
1822 -
1823 - if ( !isXML && Expr.attrMap[name] ) {
1824 - match[1] = Expr.attrMap[name];
1825 - }
1826 -
1827 - if ( match[2] === "~=" ) {
1828 - match[4] = " " + match[4] + " ";
1829 - }
1830 -
1831 - return match;
1832 - },
1833 - PSEUDO: function(match, curLoop, inplace, result, not){
1834 - if ( match[1] === "not" ) {
1835 - // If we're dealing with a complex expression, or a simple one
1836 - if ( match[3].match(chunker).length > 1 || /^\w/.test(match[3]) ) {
1837 - match[3] = Sizzle(match[3], null, null, curLoop);
1838 - } else {
1839 - var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
1840 - if ( !inplace ) {
1841 - result.push.apply( result, ret );
1842 - }
1843 - return false;
1844 - }
1845 - } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
1846 - return true;
1847 - }
1848 -
1849 - return match;
1850 - },
1851 - POS: function(match){
1852 - match.unshift( true );
1853 - return match;
1854 - }
1855 - },
1856 - filters: {
1857 - enabled: function(elem){
1858 - return elem.disabled === false && elem.type !== "hidden";
1859 - },
1860 - disabled: function(elem){
1861 - return elem.disabled === true;
1862 - },
1863 - checked: function(elem){
1864 - return elem.checked === true;
1865 - },
1866 - selected: function(elem){
1867 - // Accessing this property makes selected-by-default
1868 - // options in Safari work properly
1869 - elem.parentNode.selectedIndex;
1870 - return elem.selected === true;
1871 - },
1872 - parent: function(elem){
1873 - return !!elem.firstChild;
1874 - },
1875 - empty: function(elem){
1876 - return !elem.firstChild;
1877 - },
1878 - has: function(elem, i, match){
1879 - return !!Sizzle( match[3], elem ).length;
1880 - },
1881 - header: function(elem){
1882 - return /h\d/i.test( elem.nodeName );
1883 - },
1884 - text: function(elem){
1885 - return "text" === elem.type;
1886 - },
1887 - radio: function(elem){
1888 - return "radio" === elem.type;
1889 - },
1890 - checkbox: function(elem){
1891 - return "checkbox" === elem.type;
1892 - },
1893 - file: function(elem){
1894 - return "file" === elem.type;
1895 - },
1896 - password: function(elem){
1897 - return "password" === elem.type;
1898 - },
1899 - submit: function(elem){
1900 - return "submit" === elem.type;
1901 - },
1902 - image: function(elem){
1903 - return "image" === elem.type;
1904 - },
1905 - reset: function(elem){
1906 - return "reset" === elem.type;
1907 - },
1908 - button: function(elem){
1909 - return "button" === elem.type || elem.nodeName.toUpperCase() === "BUTTON";
1910 - },
1911 - input: function(elem){
1912 - return /input|select|textarea|button/i.test(elem.nodeName);
1913 - }
1914 - },
1915 - setFilters: {
1916 - first: function(elem, i){
1917 - return i === 0;
1918 - },
1919 - last: function(elem, i, match, array){
1920 - return i === array.length - 1;
1921 - },
1922 - even: function(elem, i){
1923 - return i % 2 === 0;
1924 - },
1925 - odd: function(elem, i){
1926 - return i % 2 === 1;
1927 - },
1928 - lt: function(elem, i, match){
1929 - return i < match[3] - 0;
1930 - },
1931 - gt: function(elem, i, match){
1932 - return i > match[3] - 0;
1933 - },
1934 - nth: function(elem, i, match){
1935 - return match[3] - 0 == i;
1936 - },
1937 - eq: function(elem, i, match){
1938 - return match[3] - 0 == i;
1939 - }
1940 - },
1941 - filter: {
1942 - PSEUDO: function(elem, match, i, array){
1943 - var name = match[1], filter = Expr.filters[ name ];
1944 -
1945 - if ( filter ) {
1946 - return filter( elem, i, match, array );
1947 - } else if ( name === "contains" ) {
1948 - return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;
1949 - } else if ( name === "not" ) {
1950 - var not = match[3];
1951 -
1952 - for ( var i = 0, l = not.length; i < l; i++ ) {
1953 - if ( not[i] === elem ) {
1954 - return false;
1955 - }
1956 - }
1957 -
1958 - return true;
1959 - }
1960 - },
1961 - CHILD: function(elem, match){
1962 - var type = match[1], node = elem;
1963 - switch (type) {
1964 - case 'only':
1965 - case 'first':
1966 - while (node = node.previousSibling) {
1967 - if ( node.nodeType === 1 ) return false;
1968 - }
1969 - if ( type == 'first') return true;
1970 - node = elem;
1971 - case 'last':
1972 - while (node = node.nextSibling) {
1973 - if ( node.nodeType === 1 ) return false;
1974 - }
1975 - return true;
1976 - case 'nth':
1977 - var first = match[2], last = match[3];
1978 -
1979 - if ( first == 1 && last == 0 ) {
1980 - return true;
1981 - }
1982 -
1983 - var doneName = match[0],
1984 - parent = elem.parentNode;
1985 -
1986 - if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
1987 - var count = 0;
1988 - for ( node = parent.firstChild; node; node = node.nextSibling ) {
1989 - if ( node.nodeType === 1 ) {
1990 - node.nodeIndex = ++count;
1991 - }
1992 - }
1993 - parent.sizcache = doneName;
1994 - }
1995 -
1996 - var diff = elem.nodeIndex - last;
1997 - if ( first == 0 ) {
1998 - return diff == 0;
1999 - } else {
2000 - return ( diff % first == 0 && diff / first >= 0 );
2001 - }
2002 - }
2003 - },
2004 - ID: function(elem, match){
2005 - return elem.nodeType === 1 && elem.getAttribute("id") === match;
2006 - },
2007 - TAG: function(elem, match){
2008 - return (match === "*" && elem.nodeType === 1) || elem.nodeName === match;
2009 - },
2010 - CLASS: function(elem, match){
2011 - return (" " + (elem.className || elem.getAttribute("class")) + " ")
2012 - .indexOf( match ) > -1;
2013 - },
2014 - ATTR: function(elem, match){
2015 - var name = match[1],
2016 - result = Expr.attrHandle[ name ] ?
2017 - Expr.attrHandle[ name ]( elem ) :
2018 - elem[ name ] != null ?
2019 - elem[ name ] :
2020 - elem.getAttribute( name ),
2021 - value = result + "",
2022 - type = match[2],
2023 - check = match[4];
2024 -
2025 - return result == null ?
2026 - type === "!=" :
2027 - type === "=" ?
2028 - value === check :
2029 - type === "*=" ?
2030 - value.indexOf(check) >= 0 :
2031 - type === "~=" ?
2032 - (" " + value + " ").indexOf(check) >= 0 :
2033 - !check ?
2034 - value && result !== false :
2035 - type === "!=" ?
2036 - value != check :
2037 - type === "^=" ?
2038 - value.indexOf(check) === 0 :
2039 - type === "$=" ?
2040 - value.substr(value.length - check.length) === check :
2041 - type === "|=" ?
2042 - value === check || value.substr(0, check.length + 1) === check + "-" :
2043 - false;
2044 - },
2045 - POS: function(elem, match, i, array){
2046 - var name = match[2], filter = Expr.setFilters[ name ];
2047 -
2048 - if ( filter ) {
2049 - return filter( elem, i, match, array );
2050 - }
2051 - }
2052 - }
2053 -};
2054 -
2055 -var origPOS = Expr.match.POS;
2056 -
2057 -for ( var type in Expr.match ) {
2058 - Expr.match[ type ] = RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
2059 -}
2060 -
2061 -var makeArray = function(array, results) {
2062 - array = Array.prototype.slice.call( array );
2063 -
2064 - if ( results ) {
2065 - results.push.apply( results, array );
2066 - return results;
2067 - }
2068 -
2069 - return array;
2070 -};
2071 -
2072 -// Perform a simple check to determine if the browser is capable of
2073 -// converting a NodeList to an array using builtin methods.
2074 -try {
2075 - Array.prototype.slice.call( document.documentElement.childNodes );
2076 -
2077 -// Provide a fallback method if it does not work
2078 -} catch(e){
2079 - makeArray = function(array, results) {
2080 - var ret = results || [];
2081 -
2082 - if ( toString.call(array) === "[object Array]" ) {
2083 - Array.prototype.push.apply( ret, array );
2084 - } else {
2085 - if ( typeof array.length === "number" ) {
2086 - for ( var i = 0, l = array.length; i < l; i++ ) {
2087 - ret.push( array[i] );
2088 - }
2089 - } else {
2090 - for ( var i = 0; array[i]; i++ ) {
2091 - ret.push( array[i] );
2092 - }
2093 - }
2094 - }
2095 -
2096 - return ret;
2097 - };
2098 -}
2099 -
2100 -var sortOrder;
2101 -
2102 -if ( document.documentElement.compareDocumentPosition ) {
2103 - sortOrder = function( a, b ) {
2104 - var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
2105 - if ( ret === 0 ) {
2106 - hasDuplicate = true;
2107 - }
2108 - return ret;
2109 - };
2110 -} else if ( "sourceIndex" in document.documentElement ) {
2111 - sortOrder = function( a, b ) {
2112 - var ret = a.sourceIndex - b.sourceIndex;
2113 - if ( ret === 0 ) {
2114 - hasDuplicate = true;
2115 - }
2116 - return ret;
2117 - };
2118 -} else if ( document.createRange ) {
2119 - sortOrder = function( a, b ) {
2120 - var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
2121 - aRange.selectNode(a);
2122 - aRange.collapse(true);
2123 - bRange.selectNode(b);
2124 - bRange.collapse(true);
2125 - var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
2126 - if ( ret === 0 ) {
2127 - hasDuplicate = true;
2128 - }
2129 - return ret;
2130 - };
2131 -}
2132 -
2133 -// Check to see if the browser returns elements by name when
2134 -// querying by getElementById (and provide a workaround)
2135 -(function(){
2136 - // We're going to inject a fake input element with a specified name
2137 - var form = document.createElement("form"),
2138 - id = "script" + (new Date).getTime();
2139 - form.innerHTML = "<input name='" + id + "'/>";
2140 -
2141 - // Inject it into the root element, check its status, and remove it quickly
2142 - var root = document.documentElement;
2143 - root.insertBefore( form, root.firstChild );
2144 -
2145 - // The workaround has to do additional checks after a getElementById
2146 - // Which slows things down for other browsers (hence the branching)
2147 - if ( !!document.getElementById( id ) ) {
2148 - Expr.find.ID = function(match, context, isXML){
2149 - if ( typeof context.getElementById !== "undefined" && !isXML ) {
2150 - var m = context.getElementById(match[1]);
2151 - return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
2152 - }
2153 - };
2154 -
2155 - Expr.filter.ID = function(elem, match){
2156 - var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
2157 - return elem.nodeType === 1 && node && node.nodeValue === match;
2158 - };
2159 - }
2160 -
2161 - root.removeChild( form );
2162 -})();
2163 -
2164 -(function(){
2165 - // Check to see if the browser returns only elements
2166 - // when doing getElementsByTagName("*")
2167 -
2168 - // Create a fake element
2169 - var div = document.createElement("div");
2170 - div.appendChild( document.createComment("") );
2171 -
2172 - // Make sure no comments are found
2173 - if ( div.getElementsByTagName("*").length > 0 ) {
2174 - Expr.find.TAG = function(match, context){
2175 - var results = context.getElementsByTagName(match[1]);
2176 -
2177 - // Filter out possible comments
2178 - if ( match[1] === "*" ) {
2179 - var tmp = [];
2180 -
2181 - for ( var i = 0; results[i]; i++ ) {
2182 - if ( results[i].nodeType === 1 ) {
2183 - tmp.push( results[i] );
2184 - }
2185 - }
2186 -
2187 - results = tmp;
2188 - }
2189 -
2190 - return results;
2191 - };
2192 - }
2193 -
2194 - // Check to see if an attribute returns normalized href attributes
2195 - div.innerHTML = "<a href='#'></a>";
2196 - if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
2197 - div.firstChild.getAttribute("href") !== "#" ) {
2198 - Expr.attrHandle.href = function(elem){
2199 - return elem.getAttribute("href", 2);
2200 - };
2201 - }
2202 -})();
2203 -
2204 -if ( document.querySelectorAll ) (function(){
2205 - var oldSizzle = Sizzle, div = document.createElement("div");
2206 - div.innerHTML = "<p class='TEST'></p>";
2207 -
2208 - // Safari can't handle uppercase or unicode characters when
2209 - // in quirks mode.
2210 - if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
2211 - return;
2212 - }
2213 -
2214 - Sizzle = function(query, context, extra, seed){
2215 - context = context || document;
2216 -
2217 - // Only use querySelectorAll on non-XML documents
2218 - // (ID selectors don't work in non-HTML documents)
2219 - if ( !seed && context.nodeType === 9 && !isXML(context) ) {
2220 - try {
2221 - return makeArray( context.querySelectorAll(query), extra );
2222 - } catch(e){}
2223 - }
2224 -
2225 - return oldSizzle(query, context, extra, seed);
2226 - };
2227 -
2228 - Sizzle.find = oldSizzle.find;
2229 - Sizzle.filter = oldSizzle.filter;
2230 - Sizzle.selectors = oldSizzle.selectors;
2231 - Sizzle.matches = oldSizzle.matches;
2232 -})();
2233 -
2234 -if ( document.getElementsByClassName && document.documentElement.getElementsByClassName ) (function(){
2235 - var div = document.createElement("div");
2236 - div.innerHTML = "<div class='test e'></div><div class='test'></div>";
2237 -
2238 - // Opera can't find a second classname (in 9.6)
2239 - if ( div.getElementsByClassName("e").length === 0 )
2240 - return;
2241 -
2242 - // Safari caches class attributes, doesn't catch changes (in 3.2)
2243 - div.lastChild.className = "e";
2244 -
2245 - if ( div.getElementsByClassName("e").length === 1 )
2246 - return;
2247 -
2248 - Expr.order.splice(1, 0, "CLASS");
2249 - Expr.find.CLASS = function(match, context, isXML) {
2250 - if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
2251 - return context.getElementsByClassName(match[1]);
2252 - }
2253 - };
2254 -})();
2255 -
2256 -function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
2257 - var sibDir = dir == "previousSibling" && !isXML;
2258 - for ( var i = 0, l = checkSet.length; i < l; i++ ) {
2259 - var elem = checkSet[i];
2260 - if ( elem ) {
2261 - if ( sibDir && elem.nodeType === 1 ){
2262 - elem.sizcache = doneName;
2263 - elem.sizset = i;
2264 - }
2265 - elem = elem[dir];
2266 - var match = false;
2267 -
2268 - while ( elem ) {
2269 - if ( elem.sizcache === doneName ) {
2270 - match = checkSet[elem.sizset];
2271 - break;
2272 - }
2273 -
2274 - if ( elem.nodeType === 1 && !isXML ){
2275 - elem.sizcache = doneName;
2276 - elem.sizset = i;
2277 - }
2278 -
2279 - if ( elem.nodeName === cur ) {
2280 - match = elem;
2281 - break;
2282 - }
2283 -
2284 - elem = elem[dir];
2285 - }
2286 -
2287 - checkSet[i] = match;
2288 - }
2289 - }
2290 -}
2291 -
2292 -function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
2293 - var sibDir = dir == "previousSibling" && !isXML;
2294 - for ( var i = 0, l = checkSet.length; i < l; i++ ) {
2295 - var elem = checkSet[i];
2296 - if ( elem ) {
2297 - if ( sibDir && elem.nodeType === 1 ) {
2298 - elem.sizcache = doneName;
2299 - elem.sizset = i;
2300 - }
2301 - elem = elem[dir];
2302 - var match = false;
2303 -
2304 - while ( elem ) {
2305 - if ( elem.sizcache === doneName ) {
2306 - match = checkSet[elem.sizset];
2307 - break;
2308 - }
2309 -
2310 - if ( elem.nodeType === 1 ) {
2311 - if ( !isXML ) {
2312 - elem.sizcache = doneName;
2313 - elem.sizset = i;
2314 - }
2315 - if ( typeof cur !== "string" ) {
2316 - if ( elem === cur ) {
2317 - match = true;
2318 - break;
2319 - }
2320 -
2321 - } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
2322 - match = elem;
2323 - break;
2324 - }
2325 - }
2326 -
2327 - elem = elem[dir];
2328 - }
2329 -
2330 - checkSet[i] = match;
2331 - }
2332 - }
2333 -}
2334 -
2335 -var contains = document.compareDocumentPosition ? function(a, b){
2336 - return a.compareDocumentPosition(b) & 16;
2337 -} : function(a, b){
2338 - return a !== b && (a.contains ? a.contains(b) : true);
2339 -};
2340 -
2341 -var isXML = function(elem){
2342 - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
2343 - !!elem.ownerDocument && isXML( elem.ownerDocument );
2344 -};
2345 -
2346 -var posProcess = function(selector, context){
2347 - var tmpSet = [], later = "", match,
2348 - root = context.nodeType ? [context] : context;
2349 -
2350 - // Position selectors must be done after the filter
2351 - // And so must :not(positional) so we move all PSEUDOs to the end
2352 - while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
2353 - later += match[0];
2354 - selector = selector.replace( Expr.match.PSEUDO, "" );
2355 - }
2356 -
2357 - selector = Expr.relative[selector] ? selector + "*" : selector;
2358 -
2359 - for ( var i = 0, l = root.length; i < l; i++ ) {
2360 - Sizzle( selector, root[i], tmpSet );
2361 - }
2362 -
2363 - return Sizzle.filter( later, tmpSet );
2364 -};
2365 -
2366 -// EXPOSE
2367 -jQuery.find = Sizzle;
2368 -jQuery.filter = Sizzle.filter;
2369 -jQuery.expr = Sizzle.selectors;
2370 -jQuery.expr[":"] = jQuery.expr.filters;
2371 -
2372 -Sizzle.selectors.filters.hidden = function(elem){
2373 - return elem.offsetWidth === 0 || elem.offsetHeight === 0;
2374 -};
2375 -
2376 -Sizzle.selectors.filters.visible = function(elem){
2377 - return elem.offsetWidth > 0 || elem.offsetHeight > 0;
2378 -};
2379 -
2380 -Sizzle.selectors.filters.animated = function(elem){
2381 - return jQuery.grep(jQuery.timers, function(fn){
2382 - return elem === fn.elem;
2383 - }).length;
2384 -};
2385 -
2386 -jQuery.multiFilter = function( expr, elems, not ) {
2387 - if ( not ) {
2388 - expr = ":not(" + expr + ")";
2389 - }
2390 -
2391 - return Sizzle.matches(expr, elems);
2392 -};
2393 -
2394 -jQuery.dir = function( elem, dir ){
2395 - var matched = [], cur = elem[dir];
2396 - while ( cur && cur != document ) {
2397 - if ( cur.nodeType == 1 )
2398 - matched.push( cur );
2399 - cur = cur[dir];
2400 - }
2401 - return matched;
2402 -};
2403 -
2404 -jQuery.nth = function(cur, result, dir, elem){
2405 - result = result || 1;
2406 - var num = 0;
2407 -
2408 - for ( ; cur; cur = cur[dir] )
2409 - if ( cur.nodeType == 1 && ++num == result )
2410 - break;
2411 -
2412 - return cur;
2413 -};
2414 -
2415 -jQuery.sibling = function(n, elem){
2416 - var r = [];
2417 -
2418 - for ( ; n; n = n.nextSibling ) {
2419 - if ( n.nodeType == 1 && n != elem )
2420 - r.push( n );
2421 - }
2422 -
2423 - return r;
2424 -};
2425 -
2426 -return;
2427 -
2428 -window.Sizzle = Sizzle;
2429 -
2430 -})();
2431 -/*
2432 - * A number of helper functions used for managing events.
2433 - * Many of the ideas behind this code originated from
2434 - * Dean Edwards' addEvent library.
2435 - */
2436 -jQuery.event = {
2437 -
2438 - // Bind an event to an element
2439 - // Original by Dean Edwards
2440 - add: function(elem, types, handler, data) {
2441 - if ( elem.nodeType == 3 || elem.nodeType == 8 )
2442 - return;
2443 -
2444 - // For whatever reason, IE has trouble passing the window object
2445 - // around, causing it to be cloned in the process
2446 - if ( elem.setInterval && elem != window )
2447 - elem = window;
2448 -
2449 - // Make sure that the function being executed has a unique ID
2450 - if ( !handler.guid )
2451 - handler.guid = this.guid++;
2452 -
2453 - // if data is passed, bind to handler
2454 - if ( data !== undefined ) {
2455 - // Create temporary function pointer to original handler
2456 - var fn = handler;
2457 -
2458 - // Create unique handler function, wrapped around original handler
2459 - handler = this.proxy( fn );
2460 -
2461 - // Store data in unique handler
2462 - handler.data = data;
2463 - }
2464 -
2465 - // Init the element's event structure
2466 - var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
2467 - handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
2468 - // Handle the second event of a trigger and when
2469 - // an event is called after a page has unloaded
2470 - return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
2471 - jQuery.event.handle.apply(arguments.callee.elem, arguments) :
2472 - undefined;
2473 - });
2474 - // Add elem as a property of the handle function
2475 - // This is to prevent a memory leak with non-native
2476 - // event in IE.
2477 - handle.elem = elem;
2478 -
2479 - // Handle multiple events separated by a space
2480 - // jQuery(...).bind("mouseover mouseout", fn);
2481 - jQuery.each(types.split(/\s+/), function(index, type) {
2482 - // Namespaced event handlers
2483 - var namespaces = type.split(".");
2484 - type = namespaces.shift();
2485 - handler.type = namespaces.slice().sort().join(".");
2486 -
2487 - // Get the current list of functions bound to this event
2488 - var handlers = events[type];
2489 -
2490 - if ( jQuery.event.specialAll[type] )
2491 - jQuery.event.specialAll[type].setup.call(elem, data, namespaces);
2492 -
2493 - // Init the event handler queue
2494 - if (!handlers) {
2495 - handlers = events[type] = {};
2496 -
2497 - // Check for a special event handler
2498 - // Only use addEventListener/attachEvent if the special
2499 - // events handler returns false
2500 - if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem, data, namespaces) === false ) {
2501 - // Bind the global event handler to the element
2502 - if (elem.addEventListener)
2503 - elem.addEventListener(type, handle, false);
2504 - else if (elem.attachEvent)
2505 - elem.attachEvent("on" + type, handle);
2506 - }
2507 - }
2508 -
2509 - // Add the function to the element's handler list
2510 - handlers[handler.guid] = handler;
2511 -
2512 - // Keep track of which events have been used, for global triggering
2513 - jQuery.event.global[type] = true;
2514 - });
2515 -
2516 - // Nullify elem to prevent memory leaks in IE
2517 - elem = null;
2518 - },
2519 -
2520 - guid: 1,
2521 - global: {},
2522 -
2523 - // Detach an event or set of events from an element
2524 - remove: function(elem, types, handler) {
2525 - // don't do events on text and comment nodes
2526 - if ( elem.nodeType == 3 || elem.nodeType == 8 )
2527 - return;
2528 -
2529 - var events = jQuery.data(elem, "events"), ret, index;
2530 -
2531 - if ( events ) {
2532 - // Unbind all events for the element
2533 - if ( types === undefined || (typeof types === "string" && types.charAt(0) == ".") )
2534 - for ( var type in events )
2535 - this.remove( elem, type + (types || "") );
2536 - else {
2537 - // types is actually an event object here
2538 - if ( types.type ) {
2539 - handler = types.handler;
2540 - types = types.type;
2541 - }
2542 -
2543 - // Handle multiple events seperated by a space
2544 - // jQuery(...).unbind("mouseover mouseout", fn);
2545 - jQuery.each(types.split(/\s+/), function(index, type){
2546 - // Namespaced event handlers
2547 - var namespaces = type.split(".");
2548 - type = namespaces.shift();
2549 - var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
2550 -
2551 - if ( events[type] ) {
2552 - // remove the given handler for the given type
2553 - if ( handler )
2554 - delete events[type][handler.guid];
2555 -
2556 - // remove all handlers for the given type
2557 - else
2558 - for ( var handle in events[type] )
2559 - // Handle the removal of namespaced events
2560 - if ( namespace.test(events[type][handle].type) )
2561 - delete events[type][handle];
2562 -
2563 - if ( jQuery.event.specialAll[type] )
2564 - jQuery.event.specialAll[type].teardown.call(elem, namespaces);
2565 -
2566 - // remove generic event handler if no more handlers exist
2567 - for ( ret in events[type] ) break;
2568 - if ( !ret ) {
2569 - if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem, namespaces) === false ) {
2570 - if (elem.removeEventListener)
2571 - elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
2572 - else if (elem.detachEvent)
2573 - elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
2574 - }
2575 - ret = null;
2576 - delete events[type];
2577 - }
2578 - }
2579 - });
2580 - }
2581 -
2582 - // Remove the expando if it's no longer used
2583 - for ( ret in events ) break;
2584 - if ( !ret ) {
2585 - var handle = jQuery.data( elem, "handle" );
2586 - if ( handle ) handle.elem = null;
2587 - jQuery.removeData( elem, "events" );
2588 - jQuery.removeData( elem, "handle" );
2589 - }
2590 - }
2591 - },
2592 -
2593 - // bubbling is internal
2594 - trigger: function( event, data, elem, bubbling ) {
2595 - // Event object or event type
2596 - var type = event.type || event;
2597 -
2598 - if( !bubbling ){
2599 - event = typeof event === "object" ?
2600 - // jQuery.Event object
2601 - event[expando] ? event :
2602 - // Object literal
2603 - jQuery.extend( jQuery.Event(type), event ) :
2604 - // Just the event type (string)
2605 - jQuery.Event(type);
2606 -
2607 - if ( type.indexOf("!") >= 0 ) {
2608 - event.type = type = type.slice(0, -1);
2609 - event.exclusive = true;
2610 - }
2611 -
2612 - // Handle a global trigger
2613 - if ( !elem ) {
2614 - // Don't bubble custom events when global (to avoid too much overhead)
2615 - event.stopPropagation();
2616 - // Only trigger if we've ever bound an event for it
2617 - if ( this.global[type] )
2618 - jQuery.each( jQuery.cache, function(){
2619 - if ( this.events && this.events[type] )
2620 - jQuery.event.trigger( event, data, this.handle.elem );
2621 - });
2622 - }
2623 -
2624 - // Handle triggering a single element
2625 -
2626 - // don't do events on text and comment nodes
2627 - if ( !elem || elem.nodeType == 3 || elem.nodeType == 8 )
2628 - return undefined;
2629 -
2630 - // Clean up in case it is reused
2631 - event.result = undefined;
2632 - event.target = elem;
2633 -
2634 - // Clone the incoming data, if any
2635 - data = jQuery.makeArray(data);
2636 - data.unshift( event );
2637 - }
2638 -
2639 - event.currentTarget = elem;
2640 -
2641 - // Trigger the event, it is assumed that "handle" is a function
2642 - var handle = jQuery.data(elem, "handle");
2643 - if ( handle )
2644 - handle.apply( elem, data );
2645 -
2646 - // Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
2647 - if ( (!elem[type] || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
2648 - event.result = false;
2649 -
2650 - // Trigger the native events (except for clicks on links)
2651 - if ( !bubbling && elem[type] && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
2652 - this.triggered = true;
2653 - try {
2654 - elem[ type ]();
2655 - // prevent IE from throwing an error for some hidden elements
2656 - } catch (e) {}
2657 - }
2658 -
2659 - this.triggered = false;
2660 -
2661 - if ( !event.isPropagationStopped() ) {
2662 - var parent = elem.parentNode || elem.ownerDocument;
2663 - if ( parent )
2664 - jQuery.event.trigger(event, data, parent, true);
2665 - }
2666 - },
2667 -
2668 - handle: function(event) {
2669 - // returned undefined or false
2670 - var all, handlers;
2671 -
2672 - event = arguments[0] = jQuery.event.fix( event || window.event );
2673 - event.currentTarget = this;
2674 -
2675 - // Namespaced event handlers
2676 - var namespaces = event.type.split(".");
2677 - event.type = namespaces.shift();
2678 -
2679 - // Cache this now, all = true means, any handler
2680 - all = !namespaces.length && !event.exclusive;
2681 -
2682 - var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
2683 -
2684 - handlers = ( jQuery.data(this, "events") || {} )[event.type];
2685 -
2686 - for ( var j in handlers ) {
2687 - var handler = handlers[j];
2688 -
2689 - // Filter the functions by class
2690 - if ( all || namespace.test(handler.type) ) {
2691 - // Pass in a reference to the handler function itself
2692 - // So that we can later remove it
2693 - event.handler = handler;
2694 - event.data = handler.data;
2695 -
2696 - var ret = handler.apply(this, arguments);
2697 -
2698 - if( ret !== undefined ){
2699 - event.result = ret;
2700 - if ( ret === false ) {
2701 - event.preventDefault();
2702 - event.stopPropagation();
2703 - }
2704 - }
2705 -
2706 - if( event.isImmediatePropagationStopped() )
2707 - break;
2708 -
2709 - }
2710 - }
2711 - },
2712 -
2713 - 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 toElement view wheelDelta which".split(" "),
2714 -
2715 - fix: function(event) {
2716 - if ( event[expando] )
2717 - return event;
2718 -
2719 - // store a copy of the original event object
2720 - // and "clone" to set read-only properties
2721 - var originalEvent = event;
2722 - event = jQuery.Event( originalEvent );
2723 -
2724 - for ( var i = this.props.length, prop; i; ){
2725 - prop = this.props[ --i ];
2726 - event[ prop ] = originalEvent[ prop ];
2727 - }
2728 -
2729 - // Fix target property, if necessary
2730 - if ( !event.target )
2731 - event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
2732 -
2733 - // check if target is a textnode (safari)
2734 - if ( event.target.nodeType == 3 )
2735 - event.target = event.target.parentNode;
2736 -
2737 - // Add relatedTarget, if necessary
2738 - if ( !event.relatedTarget && event.fromElement )
2739 - event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;
2740 -
2741 - // Calculate pageX/Y if missing and clientX/Y available
2742 - if ( event.pageX == null && event.clientX != null ) {
2743 - var doc = document.documentElement, body = document.body;
2744 - event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
2745 - event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
2746 - }
2747 -
2748 - // Add which for key events
2749 - if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
2750 - event.which = event.charCode || event.keyCode;
2751 -
2752 - // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
2753 - if ( !event.metaKey && event.ctrlKey )
2754 - event.metaKey = event.ctrlKey;
2755 -
2756 - // Add which for click: 1 == left; 2 == middle; 3 == right
2757 - // Note: button is not normalized, so don't use it
2758 - if ( !event.which && event.button )
2759 - event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
2760 -
2761 - return event;
2762 - },
2763 -
2764 - proxy: function( fn, proxy ){
2765 - proxy = proxy || function(){ return fn.apply(this, arguments); };
2766 - // Set the guid of unique handler to the same of original handler, so it can be removed
2767 - proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
2768 - // So proxy can be declared as an argument
2769 - return proxy;
2770 - },
2771 -
2772 - special: {
2773 - ready: {
2774 - // Make sure the ready event is setup
2775 - setup: bindReady,
2776 - teardown: function() {}
2777 - }
2778 - },
2779 -
2780 - specialAll: {
2781 - live: {
2782 - setup: function( selector, namespaces ){
2783 - jQuery.event.add( this, namespaces[0], liveHandler );
2784 - },
2785 - teardown: function( namespaces ){
2786 - if ( namespaces.length ) {
2787 - var remove = 0, name = RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)");
2788 -
2789 - jQuery.each( (jQuery.data(this, "events").live || {}), function(){
2790 - if ( name.test(this.type) )
2791 - remove++;
2792 - });
2793 -
2794 - if ( remove < 1 )
2795 - jQuery.event.remove( this, namespaces[0], liveHandler );
2796 - }
2797 - }
2798 - }
2799 - }
2800 -};
2801 -
2802 -jQuery.Event = function( src ){
2803 - // Allow instantiation without the 'new' keyword
2804 - if( !this.preventDefault )
2805 - return new jQuery.Event(src);
2806 -
2807 - // Event object
2808 - if( src && src.type ){
2809 - this.originalEvent = src;
2810 - this.type = src.type;
2811 - // Event type
2812 - }else
2813 - this.type = src;
2814 -
2815 - // timeStamp is buggy for some events on Firefox(#3843)
2816 - // So we won't rely on the native value
2817 - this.timeStamp = now();
2818 -
2819 - // Mark it as fixed
2820 - this[expando] = true;
2821 -};
2822 -
2823 -function returnFalse(){
2824 - return false;
2825 -}
2826 -function returnTrue(){
2827 - return true;
2828 -}
2829 -
2830 -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
2831 -// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
2832 -jQuery.Event.prototype = {
2833 - preventDefault: function() {
2834 - this.isDefaultPrevented = returnTrue;
2835 -
2836 - var e = this.originalEvent;
2837 - if( !e )
2838 - return;
2839 - // if preventDefault exists run it on the original event
2840 - if (e.preventDefault)
2841 - e.preventDefault();
2842 - // otherwise set the returnValue property of the original event to false (IE)
2843 - e.returnValue = false;
2844 - },
2845 - stopPropagation: function() {
2846 - this.isPropagationStopped = returnTrue;
2847 -
2848 - var e = this.originalEvent;
2849 - if( !e )
2850 - return;
2851 - // if stopPropagation exists run it on the original event
2852 - if (e.stopPropagation)
2853 - e.stopPropagation();
2854 - // otherwise set the cancelBubble property of the original event to true (IE)
2855 - e.cancelBubble = true;
2856 - },
2857 - stopImmediatePropagation:function(){
2858 - this.isImmediatePropagationStopped = returnTrue;
2859 - this.stopPropagation();
2860 - },
2861 - isDefaultPrevented: returnFalse,
2862 - isPropagationStopped: returnFalse,
2863 - isImmediatePropagationStopped: returnFalse
2864 -};
2865 -// Checks if an event happened on an element within another element
2866 -// Used in jQuery.event.special.mouseenter and mouseleave handlers
2867 -var withinElement = function(event) {
2868 - // Check if mouse(over|out) are still within the same parent element
2869 - var parent = event.relatedTarget;
2870 - // Traverse up the tree
2871 - while ( parent && parent != this )
2872 - try { parent = parent.parentNode; }
2873 - catch(e) { parent = this; }
2874 -
2875 - if( parent != this ){
2876 - // set the correct event type
2877 - event.type = event.data;
2878 - // handle event if we actually just moused on to a non sub-element
2879 - jQuery.event.handle.apply( this, arguments );
2880 - }
2881 -};
2882 -
2883 -jQuery.each({
2884 - mouseover: 'mouseenter',
2885 - mouseout: 'mouseleave'
2886 -}, function( orig, fix ){
2887 - jQuery.event.special[ fix ] = {
2888 - setup: function(){
2889 - jQuery.event.add( this, orig, withinElement, fix );
2890 - },
2891 - teardown: function(){
2892 - jQuery.event.remove( this, orig, withinElement );
2893 - }
2894 - };
2895 -});
2896 -
2897 -jQuery.fn.extend({
2898 - bind: function( type, data, fn ) {
2899 - return type == "unload" ? this.one(type, data, fn) : this.each(function(){
2900 - jQuery.event.add( this, type, fn || data, fn && data );
2901 - });
2902 - },
2903 -
2904 - one: function( type, data, fn ) {
2905 - var one = jQuery.event.proxy( fn || data, function(event) {
2906 - jQuery(this).unbind(event, one);
2907 - return (fn || data).apply( this, arguments );
2908 - });
2909 - return this.each(function(){
2910 - jQuery.event.add( this, type, one, fn && data);
2911 - });
2912 - },
2913 -
2914 - unbind: function( type, fn ) {
2915 - return this.each(function(){
2916 - jQuery.event.remove( this, type, fn );
2917 - });
2918 - },
2919 -
2920 - trigger: function( type, data ) {
2921 - return this.each(function(){
2922 - jQuery.event.trigger( type, data, this );
2923 - });
2924 - },
2925 -
2926 - triggerHandler: function( type, data ) {
2927 - if( this[0] ){
2928 - var event = jQuery.Event(type);
2929 - event.preventDefault();
2930 - event.stopPropagation();
2931 - jQuery.event.trigger( event, data, this[0] );
2932 - return event.result;
2933 - }
2934 - },
2935 -
2936 - toggle: function( fn ) {
2937 - // Save reference to arguments for access in closure
2938 - var args = arguments, i = 1;
2939 -
2940 - // link all the functions, so any of them can unbind this click handler
2941 - while( i < args.length )
2942 - jQuery.event.proxy( fn, args[i++] );
2943 -
2944 - return this.click( jQuery.event.proxy( fn, function(event) {
2945 - // Figure out which function to execute
2946 - this.lastToggle = ( this.lastToggle || 0 ) % i;
2947 -
2948 - // Make sure that clicks stop
2949 - event.preventDefault();
2950 -
2951 - // and execute the function
2952 - return args[ this.lastToggle++ ].apply( this, arguments ) || false;
2953 - }));
2954 - },
2955 -
2956 - hover: function(fnOver, fnOut) {
2957 - return this.mouseenter(fnOver).mouseleave(fnOut);
2958 - },
2959 -
2960 - ready: function(fn) {
2961 - // Attach the listeners
2962 - bindReady();
2963 -
2964 - // If the DOM is already ready
2965 - if ( jQuery.isReady )
2966 - // Execute the function immediately
2967 - fn.call( document, jQuery );
2968 -
2969 - // Otherwise, remember the function for later
2970 - else
2971 - // Add the function to the wait list
2972 - jQuery.readyList.push( fn );
2973 -
2974 - return this;
2975 - },
2976 -
2977 - live: function( type, fn ){
2978 - var proxy = jQuery.event.proxy( fn );
2979 - proxy.guid += this.selector + type;
2980 -
2981 - jQuery(document).bind( liveConvert(type, this.selector), this.selector, proxy );
2982 -
2983 - return this;
2984 - },
2985 -
2986 - die: function( type, fn ){
2987 - jQuery(document).unbind( liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type } : null );
2988 - return this;
2989 - }
2990 -});
2991 -
2992 -function liveHandler( event ){
2993 - var check = RegExp("(^|\\.)" + event.type + "(\\.|$)"),
2994 - stop = true,
2995 - elems = [];
2996 -
2997 - jQuery.each(jQuery.data(this, "events").live || [], function(i, fn){
2998 - if ( check.test(fn.type) ) {
2999 - var elem = jQuery(event.target).closest(fn.data)[0];
3000 - if ( elem )
3001 - elems.push({ elem: elem, fn: fn });
3002 - }
3003 - });
3004 -
3005 - elems.sort(function(a,b) {
3006 - return jQuery.data(a.elem, "closest") - jQuery.data(b.elem, "closest");
3007 - });
3008 -
3009 - jQuery.each(elems, function(){
3010 - if ( this.fn.call(this.elem, event, this.fn.data) === false )
3011 - return (stop = false);
3012 - });
3013 -
3014 - return stop;
3015 -}
3016 -
3017 -function liveConvert(type, selector){
3018 - return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "|")].join(".");
3019 -}
3020 -
3021 -jQuery.extend({
3022 - isReady: false,
3023 - readyList: [],
3024 - // Handle when the DOM is ready
3025 - ready: function() {
3026 - // Make sure that the DOM is not already loaded
3027 - if ( !jQuery.isReady ) {
3028 - // Remember that the DOM is ready
3029 - jQuery.isReady = true;
3030 -
3031 - // If there are functions bound, to execute
3032 - if ( jQuery.readyList ) {
3033 - // Execute all of them
3034 - jQuery.each( jQuery.readyList, function(){
3035 - this.call( document, jQuery );
3036 - });
3037 -
3038 - // Reset the list of functions
3039 - jQuery.readyList = null;
3040 - }
3041 -
3042 - // Trigger any bound ready events
3043 - jQuery(document).triggerHandler("ready");
3044 - }
3045 - }
3046 -});
3047 -
3048 -var readyBound = false;
3049 -
3050 -function bindReady(){
3051 - if ( readyBound ) return;
3052 - readyBound = true;
3053 -
3054 - // Mozilla, Opera and webkit nightlies currently support this event
3055 - if ( document.addEventListener ) {
3056 - // Use the handy event callback
3057 - document.addEventListener( "DOMContentLoaded", function(){
3058 - document.removeEventListener( "DOMContentLoaded", arguments.callee, false );
3059 - jQuery.ready();
3060 - }, false );
3061 -
3062 - // If IE event model is used
3063 - } else if ( document.attachEvent ) {
3064 - // ensure firing before onload,
3065 - // maybe late but safe also for iframes
3066 - document.attachEvent("onreadystatechange", function(){
3067 - if ( document.readyState === "complete" ) {
3068 - document.detachEvent( "onreadystatechange", arguments.callee );
3069 - jQuery.ready();
3070 - }
3071 - });
3072 -
3073 - // If IE and not an iframe
3074 - // continually check to see if the document is ready
3075 - if ( document.documentElement.doScroll && window == window.top ) (function(){
3076 - if ( jQuery.isReady ) return;
3077 -
3078 - try {
3079 - // If IE is used, use the trick by Diego Perini
3080 - // http://javascript.nwbox.com/IEContentLoaded/
3081 - document.documentElement.doScroll("left");
3082 - } catch( error ) {
3083 - setTimeout( arguments.callee, 0 );
3084 - return;
3085 - }
3086 -
3087 - // and execute any waiting functions
3088 - jQuery.ready();
3089 - })();
3090 - }
3091 -
3092 - // A fallback to window.onload, that will always work
3093 - jQuery.event.add( window, "load", jQuery.ready );
3094 -}
3095 -
3096 -jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
3097 - "mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
3098 - "change,select,submit,keydown,keypress,keyup,error").split(","), function(i, name){
3099 -
3100 - // Handle event binding
3101 - jQuery.fn[name] = function(fn){
3102 - return fn ? this.bind(name, fn) : this.trigger(name);
3103 - };
3104 -});
3105 -
3106 -// Prevent memory leaks in IE
3107 -// And prevent errors on refresh with events like mouseover in other browsers
3108 -// Window isn't included so as not to unbind existing unload events
3109 -jQuery( window ).bind( 'unload', function(){
3110 - for ( var id in jQuery.cache )
3111 - // Skip the window
3112 - if ( id != 1 && jQuery.cache[ id ].handle )
3113 - jQuery.event.remove( jQuery.cache[ id ].handle.elem );
3114 -});
3115 -(function(){
3116 -
3117 - jQuery.support = {};
3118 -
3119 - var root = document.documentElement,
3120 - script = document.createElement("script"),
3121 - div = document.createElement("div"),
3122 - id = "script" + (new Date).getTime();
3123 -
3124 - div.style.display = "none";
3125 - div.innerHTML = ' <link/><table></table><a href="https://www.mediawiki.org/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
3126 -
3127 - var all = div.getElementsByTagName("*"),
3128 - a = div.getElementsByTagName("a")[0];
3129 -
3130 - // Can't get basic test support
3131 - if ( !all || !all.length || !a ) {
3132 - return;
3133 - }
3134 -
3135 - jQuery.support = {
3136 - // IE strips leading whitespace when .innerHTML is used
3137 - leadingWhitespace: div.firstChild.nodeType == 3,
3138 -
3139 - // Make sure that tbody elements aren't automatically inserted
3140 - // IE will insert them into empty tables
3141 - tbody: !div.getElementsByTagName("tbody").length,
3142 -
3143 - // Make sure that you can get all elements in an <object> element
3144 - // IE 7 always returns no results
3145 - objectAll: !!div.getElementsByTagName("object")[0]
3146 - .getElementsByTagName("*").length,
3147 -
3148 - // Make sure that link elements get serialized correctly by innerHTML
3149 - // This requires a wrapper element in IE
3150 - htmlSerialize: !!div.getElementsByTagName("link").length,
3151 -
3152 - // Get the style information from getAttribute
3153 - // (IE uses .cssText insted)
3154 - style: /red/.test( a.getAttribute("style") ),
3155 -
3156 - // Make sure that URLs aren't manipulated
3157 - // (IE normalizes it by default)
3158 - hrefNormalized: a.getAttribute("href") === "/a",
3159 -
3160 - // Make sure that element opacity exists
3161 - // (IE uses filter instead)
3162 - opacity: a.style.opacity === "0.5",
3163 -
3164 - // Verify style float existence
3165 - // (IE uses styleFloat instead of cssFloat)
3166 - cssFloat: !!a.style.cssFloat,
3167 -
3168 - // Will be defined later
3169 - scriptEval: false,
3170 - noCloneEvent: true,
3171 - boxModel: null
3172 - };
3173 -
3174 - script.type = "text/javascript";
3175 - try {
3176 - script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
3177 - } catch(e){}
3178 -
3179 - root.insertBefore( script, root.firstChild );
3180 -
3181 - // Make sure that the execution of code works by injecting a script
3182 - // tag with appendChild/createTextNode
3183 - // (IE doesn't support this, fails, and uses .text instead)
3184 - if ( window[ id ] ) {
3185 - jQuery.support.scriptEval = true;
3186 - delete window[ id ];
3187 - }
3188 -
3189 - root.removeChild( script );
3190 -
3191 - if ( div.attachEvent && div.fireEvent ) {
3192 - div.attachEvent("onclick", function(){
3193 - // Cloning a node shouldn't copy over any
3194 - // bound event handlers (IE does this)
3195 - jQuery.support.noCloneEvent = false;
3196 - div.detachEvent("onclick", arguments.callee);
3197 - });
3198 - div.cloneNode(true).fireEvent("onclick");
3199 - }
3200 -
3201 - // Figure out if the W3C box model works as expected
3202 - // document.body must exist before we can do this
3203 - jQuery(function(){
3204 - var div = document.createElement("div");
3205 - div.style.width = div.style.paddingLeft = "1px";
3206 -
3207 - document.body.appendChild( div );
3208 - jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
3209 - document.body.removeChild( div ).style.display = 'none';
3210 - });
3211 -})();
3212 -
3213 -var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat";
3214 -
3215 -jQuery.props = {
3216 - "for": "htmlFor",
3217 - "class": "className",
3218 - "float": styleFloat,
3219 - cssFloat: styleFloat,
3220 - styleFloat: styleFloat,
3221 - readonly: "readOnly",
3222 - maxlength: "maxLength",
3223 - cellspacing: "cellSpacing",
3224 - rowspan: "rowSpan",
3225 - tabindex: "tabIndex"
3226 -};
3227 -jQuery.fn.extend({
3228 - // Keep a copy of the old load
3229 - _load: jQuery.fn.load,
3230 -
3231 - load: function( url, params, callback ) {
3232 - if ( typeof url !== "string" )
3233 - return this._load( url );
3234 -
3235 - var off = url.indexOf(" ");
3236 - if ( off >= 0 ) {
3237 - var selector = url.slice(off, url.length);
3238 - url = url.slice(0, off);
3239 - }
3240 -
3241 - // Default to a GET request
3242 - var type = "GET";
3243 -
3244 - // If the second parameter was provided
3245 - if ( params )
3246 - // If it's a function
3247 - if ( jQuery.isFunction( params ) ) {
3248 - // We assume that it's the callback
3249 - callback = params;
3250 - params = null;
3251 -
3252 - // Otherwise, build a param string
3253 - } else if( typeof params === "object" ) {
3254 - params = jQuery.param( params );
3255 - type = "POST";
3256 - }
3257 -
3258 - var self = this;
3259 -
3260 - // Request the remote document
3261 - jQuery.ajax({
3262 - url: url,
3263 - type: type,
3264 - dataType: "html",
3265 - data: params,
3266 - complete: function(res, status){
3267 - // If successful, inject the HTML into all the matched elements
3268 - if ( status == "success" || status == "notmodified" )
3269 - // See if a selector was specified
3270 - self.html( selector ?
3271 - // Create a dummy div to hold the results
3272 - jQuery("<div/>")
3273 - // inject the contents of the document in, removing the scripts
3274 - // to avoid any 'Permission Denied' errors in IE
3275 - .append(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))
3276 -
3277 - // Locate the specified elements
3278 - .find(selector) :
3279 -
3280 - // If not, just inject the full result
3281 - res.responseText );
3282 -
3283 - if( callback )
3284 - self.each( callback, [res.responseText, status, res] );
3285 - }
3286 - });
3287 - return this;
3288 - },
3289 -
3290 - serialize: function() {
3291 - return jQuery.param(this.serializeArray());
3292 - },
3293 - serializeArray: function() {
3294 - return this.map(function(){
3295 - return this.elements ? jQuery.makeArray(this.elements) : this;
3296 - })
3297 - .filter(function(){
3298 - return this.name && !this.disabled &&
3299 - (this.checked || /select|textarea/i.test(this.nodeName) ||
3300 - /text|hidden|password|search/i.test(this.type));
3301 - })
3302 - .map(function(i, elem){
3303 - var val = jQuery(this).val();
3304 - return val == null ? null :
3305 - jQuery.isArray(val) ?
3306 - jQuery.map( val, function(val, i){
3307 - return {name: elem.name, value: val};
3308 - }) :
3309 - {name: elem.name, value: val};
3310 - }).get();
3311 - }
3312 -});
3313 -
3314 -// Attach a bunch of functions for handling common AJAX events
3315 -jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
3316 - jQuery.fn[o] = function(f){
3317 - return this.bind(o, f);
3318 - };
3319 -});
3320 -
3321 -var jsc = now();
3322 -
3323 -jQuery.extend({
3324 -
3325 - get: function( url, data, callback, type ) {
3326 - // shift arguments if data argument was ommited
3327 - if ( jQuery.isFunction( data ) ) {
3328 - callback = data;
3329 - data = null;
3330 - }
3331 -
3332 - return jQuery.ajax({
3333 - type: "GET",
3334 - url: url,
3335 - data: data,
3336 - success: callback,
3337 - dataType: type
3338 - });
3339 - },
3340 -
3341 - getScript: function( url, callback ) {
3342 - return jQuery.get(url, null, callback, "script");
3343 - },
3344 -
3345 - getJSON: function( url, data, callback ) {
3346 - return jQuery.get(url, data, callback, "json");
3347 - },
3348 -
3349 - post: function( url, data, callback, type ) {
3350 - if ( jQuery.isFunction( data ) ) {
3351 - callback = data;
3352 - data = {};
3353 - }
3354 -
3355 - return jQuery.ajax({
3356 - type: "POST",
3357 - url: url,
3358 - data: data,
3359 - success: callback,
3360 - dataType: type
3361 - });
3362 - },
3363 -
3364 - ajaxSetup: function( settings ) {
3365 - jQuery.extend( jQuery.ajaxSettings, settings );
3366 - },
3367 -
3368 - ajaxSettings: {
3369 - url: location.href,
3370 - global: true,
3371 - type: "GET",
3372 - contentType: "application/x-www-form-urlencoded",
3373 - processData: true,
3374 - async: true,
3375 - /*
3376 - timeout: 0,
3377 - data: null,
3378 - username: null,
3379 - password: null,
3380 - */
3381 - // Create the request object; Microsoft failed to properly
3382 - // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
3383 - // This function can be overriden by calling jQuery.ajaxSetup
3384 - xhr:function(){
3385 - return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
3386 - },
3387 - accepts: {
3388 - xml: "application/xml, text/xml",
3389 - html: "text/html",
3390 - script: "text/javascript, application/javascript",
3391 - json: "application/json, text/javascript",
3392 - text: "text/plain",
3393 - _default: "*/*"
3394 - }
3395 - },
3396 -
3397 - // Last-Modified header cache for next request
3398 - lastModified: {},
3399 -
3400 - ajax: function( s ) {
3401 - // Extend the settings, but re-extend 's' so that it can be
3402 - // checked again later (in the test suite, specifically)
3403 - s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
3404 -
3405 - var jsonp, jsre = /=\?(&|$)/g, status, data,
3406 - type = s.type.toUpperCase();
3407 -
3408 - // convert data if not already a string
3409 - if ( s.data && s.processData && typeof s.data !== "string" )
3410 - s.data = jQuery.param(s.data);
3411 -
3412 - // Handle JSONP Parameter Callbacks
3413 - if ( s.dataType == "jsonp" ) {
3414 - if ( type == "GET" ) {
3415 - if ( !s.url.match(jsre) )
3416 - s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
3417 - } else if ( !s.data || !s.data.match(jsre) )
3418 - s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
3419 - s.dataType = "json";
3420 - }
3421 -
3422 - // Build temporary JSONP function
3423 - if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
3424 - jsonp = "jsonp" + jsc++;
3425 -
3426 - // Replace the =? sequence both in the query string and the data
3427 - if ( s.data )
3428 - s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
3429 - s.url = s.url.replace(jsre, "=" + jsonp + "$1");
3430 -
3431 - // We need to make sure
3432 - // that a JSONP style response is executed properly
3433 - s.dataType = "script";
3434 -
3435 - // Handle JSONP-style loading
3436 - window[ jsonp ] = function(tmp){
3437 - data = tmp;
3438 - success();
3439 - complete();
3440 - // Garbage collect
3441 - window[ jsonp ] = undefined;
3442 - try{ delete window[ jsonp ]; } catch(e){}
3443 - if ( head )
3444 - head.removeChild( script );
3445 - };
3446 - }
3447 -
3448 - if ( s.dataType == "script" && s.cache == null )
3449 - s.cache = false;
3450 -
3451 - if ( s.cache === false && type == "GET" ) {
3452 - var ts = now();
3453 - // try replacing _= if it is there
3454 - var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
3455 - // if nothing was replaced, add timestamp to the end
3456 - s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
3457 - }
3458 -
3459 - // If data is available, append data to url for get requests
3460 - if ( s.data && type == "GET" ) {
3461 - s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
3462 -
3463 - // IE likes to send both get and post data, prevent this
3464 - s.data = null;
3465 - }
3466 -
3467 - // Watch for a new set of requests
3468 - if ( s.global && ! jQuery.active++ )
3469 - jQuery.event.trigger( "ajaxStart" );
3470 -
3471 - // Matches an absolute URL, and saves the domain
3472 - var parts = /^(\w+:)?\/\/([^\/?#]+)/.exec( s.url );
3473 -
3474 - // If we're requesting a remote document
3475 - // and trying to load JSON or Script with a GET
3476 - if ( s.dataType == "script" && type == "GET" && parts
3477 - && ( parts[1] && parts[1] != location.protocol || parts[2] != location.host )){
3478 -
3479 - var head = document.getElementsByTagName("head")[0];
3480 - var script = document.createElement("script");
3481 - script.src = s.url;
3482 - if (s.scriptCharset)
3483 - script.charset = s.scriptCharset;
3484 -
3485 - // Handle Script loading
3486 - if ( !jsonp ) {
3487 - var done = false;
3488 -
3489 - // Attach handlers for all browsers
3490 - script.onload = script.onreadystatechange = function(){
3491 - if ( !done && (!this.readyState ||
3492 - this.readyState == "loaded" || this.readyState == "complete") ) {
3493 - done = true;
3494 - success();
3495 - complete();
3496 -
3497 - // Handle memory leak in IE
3498 - script.onload = script.onreadystatechange = null;
3499 - head.removeChild( script );
3500 - }
3501 - };
3502 - }
3503 -
3504 - head.appendChild(script);
3505 -
3506 - // We handle everything using the script element injection
3507 - return undefined;
3508 - }
3509 -
3510 - var requestDone = false;
3511 -
3512 - // Create the request object
3513 - var xhr = s.xhr();
3514 -
3515 - // Open the socket
3516 - // Passing null username, generates a login popup on Opera (#2865)
3517 - if( s.username )
3518 - xhr.open(type, s.url, s.async, s.username, s.password);
3519 - else
3520 - xhr.open(type, s.url, s.async);
3521 -
3522 - // Need an extra try/catch for cross domain requests in Firefox 3
3523 - try {
3524 - // Set the correct header, if data is being sent
3525 - if ( s.data )
3526 - xhr.setRequestHeader("Content-Type", s.contentType);
3527 -
3528 - // Set the If-Modified-Since header, if ifModified mode.
3529 - if ( s.ifModified )
3530 - xhr.setRequestHeader("If-Modified-Since",
3531 - jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
3532 -
3533 - // Set header so the called script knows that it's an XMLHttpRequest
3534 - xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
3535 -
3536 - // Set the Accepts header for the server, depending on the dataType
3537 - xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
3538 - s.accepts[ s.dataType ] + ", */*" :
3539 - s.accepts._default );
3540 - } catch(e){}
3541 -
3542 - // Allow custom headers/mimetypes and early abort
3543 - if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
3544 - // Handle the global AJAX counter
3545 - if ( s.global && ! --jQuery.active )
3546 - jQuery.event.trigger( "ajaxStop" );
3547 - // close opended socket
3548 - xhr.abort();
3549 - return false;
3550 - }
3551 -
3552 - if ( s.global )
3553 - jQuery.event.trigger("ajaxSend", [xhr, s]);
3554 -
3555 - // Wait for a response to come back
3556 - var onreadystatechange = function(isTimeout){
3557 - // The request was aborted, clear the interval and decrement jQuery.active
3558 - if (xhr.readyState == 0) {
3559 - if (ival) {
3560 - // clear poll interval
3561 - clearInterval(ival);
3562 - ival = null;
3563 - // Handle the global AJAX counter
3564 - if ( s.global && ! --jQuery.active )
3565 - jQuery.event.trigger( "ajaxStop" );
3566 - }
3567 - // The transfer is complete and the data is available, or the request timed out
3568 - } else if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
3569 - requestDone = true;
3570 -
3571 - // clear poll interval
3572 - if (ival) {
3573 - clearInterval(ival);
3574 - ival = null;
3575 - }
3576 -
3577 - status = isTimeout == "timeout" ? "timeout" :
3578 - !jQuery.httpSuccess( xhr ) ? "error" :
3579 - s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
3580 - "success";
3581 -
3582 - if ( status == "success" ) {
3583 - // Watch for, and catch, XML document parse errors
3584 - try {
3585 - // process the data (runs the xml through httpData regardless of callback)
3586 - data = jQuery.httpData( xhr, s.dataType, s );
3587 - } catch(e) {
3588 - status = "parsererror";
3589 - }
3590 - }
3591 -
3592 - // Make sure that the request was successful or notmodified
3593 - if ( status == "success" ) {
3594 - // Cache Last-Modified header, if ifModified mode.
3595 - var modRes;
3596 - try {
3597 - modRes = xhr.getResponseHeader("Last-Modified");
3598 - } catch(e) {} // swallow exception thrown by FF if header is not available
3599 -
3600 - if ( s.ifModified && modRes )
3601 - jQuery.lastModified[s.url] = modRes;
3602 -
3603 - // JSONP handles its own success callback
3604 - if ( !jsonp )
3605 - success();
3606 - } else
3607 - jQuery.handleError(s, xhr, status);
3608 -
3609 - // Fire the complete handlers
3610 - complete();
3611 -
3612 - if ( isTimeout )
3613 - xhr.abort();
3614 -
3615 - // Stop memory leaks
3616 - if ( s.async )
3617 - xhr = null;
3618 - }
3619 - };
3620 -
3621 - if ( s.async ) {
3622 - // don't attach the handler to the request, just poll it instead
3623 - var ival = setInterval(onreadystatechange, 13);
3624 -
3625 - // Timeout checker
3626 - if ( s.timeout > 0 )
3627 - setTimeout(function(){
3628 - // Check to see if the request is still happening
3629 - if ( xhr && !requestDone )
3630 - onreadystatechange( "timeout" );
3631 - }, s.timeout);
3632 - }
3633 -
3634 - // Send the data
3635 - try {
3636 - xhr.send(s.data);
3637 - } catch(e) {
3638 - jQuery.handleError(s, xhr, null, e);
3639 - }
3640 -
3641 - // firefox 1.5 doesn't fire statechange for sync requests
3642 - if ( !s.async )
3643 - onreadystatechange();
3644 -
3645 - function success(){
3646 - // If a local callback was specified, fire it and pass it the data
3647 - if ( s.success )
3648 - s.success( data, status );
3649 -
3650 - // Fire the global callback
3651 - if ( s.global )
3652 - jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
3653 - }
3654 -
3655 - function complete(){
3656 - // Process result
3657 - if ( s.complete )
3658 - s.complete(xhr, status);
3659 -
3660 - // The request was completed
3661 - if ( s.global )
3662 - jQuery.event.trigger( "ajaxComplete", [xhr, s] );
3663 -
3664 - // Handle the global AJAX counter
3665 - if ( s.global && ! --jQuery.active )
3666 - jQuery.event.trigger( "ajaxStop" );
3667 - }
3668 -
3669 - // return XMLHttpRequest to allow aborting the request etc.
3670 - return xhr;
3671 - },
3672 -
3673 - handleError: function( s, xhr, status, e ) {
3674 - // If a local callback was specified, fire it
3675 - if ( s.error ) s.error( xhr, status, e );
3676 -
3677 - // Fire the global callback
3678 - if ( s.global )
3679 - jQuery.event.trigger( "ajaxError", [xhr, s, e] );
3680 - },
3681 -
3682 - // Counter for holding the number of active queries
3683 - active: 0,
3684 -
3685 - // Determines if an XMLHttpRequest was successful or not
3686 - httpSuccess: function( xhr ) {
3687 - try {
3688 - // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
3689 - return !xhr.status && location.protocol == "file:" ||
3690 - ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223;
3691 - } catch(e){}
3692 - return false;
3693 - },
3694 -
3695 - // Determines if an XMLHttpRequest returns NotModified
3696 - httpNotModified: function( xhr, url ) {
3697 - try {
3698 - var xhrRes = xhr.getResponseHeader("Last-Modified");
3699 -
3700 - // Firefox always returns 200. check Last-Modified date
3701 - return xhr.status == 304 || xhrRes == jQuery.lastModified[url];
3702 - } catch(e){}
3703 - return false;
3704 - },
3705 -
3706 - httpData: function( xhr, type, s ) {
3707 - var ct = xhr.getResponseHeader("content-type"),
3708 - xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
3709 - data = xml ? xhr.responseXML : xhr.responseText;
3710 -
3711 - if ( xml && data.documentElement.tagName == "parsererror" )
3712 - throw "parsererror";
3713 -
3714 - // Allow a pre-filtering function to sanitize the response
3715 - // s != null is checked to keep backwards compatibility
3716 - if( s && s.dataFilter )
3717 - data = s.dataFilter( data, type );
3718 -
3719 - // The filter can actually parse the response
3720 - if( typeof data === "string" ){
3721 -
3722 - // If the type is "script", eval it in global context
3723 - if ( type == "script" )
3724 - jQuery.globalEval( data );
3725 -
3726 - // Get the JavaScript object, if JSON is used.
3727 - if ( type == "json" )
3728 - data = window["eval"]("(" + data + ")");
3729 - }
3730 -
3731 - return data;
3732 - },
3733 -
3734 - // Serialize an array of form elements or a set of
3735 - // key/values into a query string
3736 - param: function( a ) {
3737 - var s = [ ];
3738 -
3739 - function add( key, value ){
3740 - s[ s.length ] = encodeURIComponent(key) + '=' + encodeURIComponent(value);
3741 - };
3742 -
3743 - // If an array was passed in, assume that it is an array
3744 - // of form elements
3745 - if ( jQuery.isArray(a) || a.jquery )
3746 - // Serialize the form elements
3747 - jQuery.each( a, function(){
3748 - add( this.name, this.value );
3749 - });
3750 -
3751 - // Otherwise, assume that it's an object of key/value pairs
3752 - else
3753 - // Serialize the key/values
3754 - for ( var j in a )
3755 - // If the value is an array then the key names need to be repeated
3756 - if ( jQuery.isArray(a[j]) )
3757 - jQuery.each( a[j], function(){
3758 - add( j, this );
3759 - });
3760 - else
3761 - add( j, jQuery.isFunction(a[j]) ? a[j]() : a[j] );
3762 -
3763 - // Return the resulting serialization
3764 - return s.join("&").replace(/%20/g, "+");
3765 - }
3766 -
3767 -});
3768 -var elemdisplay = {},
3769 - timerId,
3770 - fxAttrs = [
3771 - // height animations
3772 - [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
3773 - // width animations
3774 - [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
3775 - // opacity animations
3776 - [ "opacity" ]
3777 - ];
3778 -
3779 -function genFx( type, num ){
3780 - var obj = {};
3781 - jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function(){
3782 - obj[ this ] = type;
3783 - });
3784 - return obj;
3785 -}
3786 -
3787 -jQuery.fn.extend({
3788 - show: function(speed,callback){
3789 - if ( speed ) {
3790 - return this.animate( genFx("show", 3), speed, callback);
3791 - } else {
3792 - for ( var i = 0, l = this.length; i < l; i++ ){
3793 - var old = jQuery.data(this[i], "olddisplay");
3794 -
3795 - this[i].style.display = old || "";
3796 -
3797 - if ( jQuery.css(this[i], "display") === "none" ) {
3798 - var tagName = this[i].tagName, display;
3799 -
3800 - if ( elemdisplay[ tagName ] ) {
3801 - display = elemdisplay[ tagName ];
3802 - } else {
3803 - var elem = jQuery("<" + tagName + " />").appendTo("body");
3804 -
3805 - display = elem.css("display");
3806 - if ( display === "none" )
3807 - display = "block";
3808 -
3809 - elem.remove();
3810 -
3811 - elemdisplay[ tagName ] = display;
3812 - }
3813 -
3814 - jQuery.data(this[i], "olddisplay", display);
3815 - }
3816 - }
3817 -
3818 - // Set the display of the elements in a second loop
3819 - // to avoid the constant reflow
3820 - for ( var i = 0, l = this.length; i < l; i++ ){
3821 - this[i].style.display = jQuery.data(this[i], "olddisplay") || "";
3822 - }
3823 -
3824 - return this;
3825 - }
3826 - },
3827 -
3828 - hide: function(speed,callback){
3829 - if ( speed ) {
3830 - return this.animate( genFx("hide", 3), speed, callback);
3831 - } else {
3832 - for ( var i = 0, l = this.length; i < l; i++ ){
3833 - var old = jQuery.data(this[i], "olddisplay");
3834 - if ( !old && old !== "none" )
3835 - jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
3836 - }
3837 -
3838 - // Set the display of the elements in a second loop
3839 - // to avoid the constant reflow
3840 - for ( var i = 0, l = this.length; i < l; i++ ){
3841 - this[i].style.display = "none";
3842 - }
3843 -
3844 - return this;
3845 - }
3846 - },
3847 -
3848 - // Save the old toggle function
3849 - _toggle: jQuery.fn.toggle,
3850 -
3851 - toggle: function( fn, fn2 ){
3852 - var bool = typeof fn === "boolean";
3853 -
3854 - return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
3855 - this._toggle.apply( this, arguments ) :
3856 - fn == null || bool ?
3857 - this.each(function(){
3858 - var state = bool ? fn : jQuery(this).is(":hidden");
3859 - jQuery(this)[ state ? "show" : "hide" ]();
3860 - }) :
3861 - this.animate(genFx("toggle", 3), fn, fn2);
3862 - },
3863 -
3864 - fadeTo: function(speed,to,callback){
3865 - return this.animate({opacity: to}, speed, callback);
3866 - },
3867 -
3868 - animate: function( prop, speed, easing, callback ) {
3869 - var optall = jQuery.speed(speed, easing, callback);
3870 -
3871 - return this[ optall.queue === false ? "each" : "queue" ](function(){
3872 -
3873 - var opt = jQuery.extend({}, optall), p,
3874 - hidden = this.nodeType == 1 && jQuery(this).is(":hidden"),
3875 - self = this;
3876 -
3877 - for ( p in prop ) {
3878 - if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
3879 - return opt.complete.call(this);
3880 -
3881 - if ( ( p == "height" || p == "width" ) && this.style ) {
3882 - // Store display property
3883 - opt.display = jQuery.css(this, "display");
3884 -
3885 - // Make sure that nothing sneaks out
3886 - opt.overflow = this.style.overflow;
3887 - }
3888 - }
3889 -
3890 - if ( opt.overflow != null )
3891 - this.style.overflow = "hidden";
3892 -
3893 - opt.curAnim = jQuery.extend({}, prop);
3894 -
3895 - jQuery.each( prop, function(name, val){
3896 - var e = new jQuery.fx( self, opt, name );
3897 -
3898 - if ( /toggle|show|hide/.test(val) )
3899 - e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
3900 - else {
3901 - var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
3902 - start = e.cur(true) || 0;
3903 -
3904 - if ( parts ) {
3905 - var end = parseFloat(parts[2]),
3906 - unit = parts[3] || "px";
3907 -
3908 - // We need to compute starting value
3909 - if ( unit != "px" ) {
3910 - self.style[ name ] = (end || 1) + unit;
3911 - start = ((end || 1) / e.cur(true)) * start;
3912 - self.style[ name ] = start + unit;
3913 - }
3914 -
3915 - // If a +=/-= token was provided, we're doing a relative animation
3916 - if ( parts[1] )
3917 - end = ((parts[1] == "-=" ? -1 : 1) * end) + start;
3918 -
3919 - e.custom( start, end, unit );
3920 - } else
3921 - e.custom( start, val, "" );
3922 - }
3923 - });
3924 -
3925 - // For JS strict compliance
3926 - return true;
3927 - });
3928 - },
3929 -
3930 - stop: function(clearQueue, gotoEnd){
3931 - var timers = jQuery.timers;
3932 -
3933 - if (clearQueue)
3934 - this.queue([]);
3935 -
3936 - this.each(function(){
3937 - // go in reverse order so anything added to the queue during the loop is ignored
3938 - for ( var i = timers.length - 1; i >= 0; i-- )
3939 - if ( timers[i].elem == this ) {
3940 - if (gotoEnd)
3941 - // force the next step to be the last
3942 - timers[i](true);
3943 - timers.splice(i, 1);
3944 - }
3945 - });
3946 -
3947 - // start the next in the queue if the last step wasn't forced
3948 - if (!gotoEnd)
3949 - this.dequeue();
3950 -
3951 - return this;
3952 - }
3953 -
3954 -});
3955 -
3956 -// Generate shortcuts for custom animations
3957 -jQuery.each({
3958 - slideDown: genFx("show", 1),
3959 - slideUp: genFx("hide", 1),
3960 - slideToggle: genFx("toggle", 1),
3961 - fadeIn: { opacity: "show" },
3962 - fadeOut: { opacity: "hide" }
3963 -}, function( name, props ){
3964 - jQuery.fn[ name ] = function( speed, callback ){
3965 - return this.animate( props, speed, callback );
3966 - };
3967 -});
3968 -
3969 -jQuery.extend({
3970 -
3971 - speed: function(speed, easing, fn) {
3972 - var opt = typeof speed === "object" ? speed : {
3973 - complete: fn || !fn && easing ||
3974 - jQuery.isFunction( speed ) && speed,
3975 - duration: speed,
3976 - easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
3977 - };
3978 -
3979 - opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
3980 - jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
3981 -
3982 - // Queueing
3983 - opt.old = opt.complete;
3984 - opt.complete = function(){
3985 - if ( opt.queue !== false )
3986 - jQuery(this).dequeue();
3987 - if ( jQuery.isFunction( opt.old ) )
3988 - opt.old.call( this );
3989 - };
3990 -
3991 - return opt;
3992 - },
3993 -
3994 - easing: {
3995 - linear: function( p, n, firstNum, diff ) {
3996 - return firstNum + diff * p;
3997 - },
3998 - swing: function( p, n, firstNum, diff ) {
3999 - return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
4000 - }
4001 - },
4002 -
4003 - timers: [],
4004 -
4005 - fx: function( elem, options, prop ){
4006 - this.options = options;
4007 - this.elem = elem;
4008 - this.prop = prop;
4009 -
4010 - if ( !options.orig )
4011 - options.orig = {};
4012 - }
4013 -
4014 -});
4015 -
4016 -jQuery.fx.prototype = {
4017 -
4018 - // Simple function for setting a style value
4019 - update: function(){
4020 - if ( this.options.step )
4021 - this.options.step.call( this.elem, this.now, this );
4022 -
4023 - (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
4024 -
4025 - // Set display property to block for height/width animations
4026 - if ( ( this.prop == "height" || this.prop == "width" ) && this.elem.style )
4027 - this.elem.style.display = "block";
4028 - },
4029 -
4030 - // Get the current size
4031 - cur: function(force){
4032 - if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) )
4033 - return this.elem[ this.prop ];
4034 -
4035 - var r = parseFloat(jQuery.css(this.elem, this.prop, force));
4036 - return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
4037 - },
4038 -
4039 - // Start an animation from one number to another
4040 - custom: function(from, to, unit){
4041 - this.startTime = now();
4042 - this.start = from;
4043 - this.end = to;
4044 - this.unit = unit || this.unit || "px";
4045 - this.now = this.start;
4046 - this.pos = this.state = 0;
4047 -
4048 - var self = this;
4049 - function t(gotoEnd){
4050 - return self.step(gotoEnd);
4051 - }
4052 -
4053 - t.elem = this.elem;
4054 -
4055 - if ( t() && jQuery.timers.push(t) && !timerId ) {
4056 - timerId = setInterval(function(){
4057 - var timers = jQuery.timers;
4058 -
4059 - for ( var i = 0; i < timers.length; i++ )
4060 - if ( !timers[i]() )
4061 - timers.splice(i--, 1);
4062 -
4063 - if ( !timers.length ) {
4064 - clearInterval( timerId );
4065 - timerId = undefined;
4066 - }
4067 - }, 13);
4068 - }
4069 - },
4070 -
4071 - // Simple 'show' function
4072 - show: function(){
4073 - // Remember where we started, so that we can go back to it later
4074 - this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
4075 - this.options.show = true;
4076 -
4077 - // Begin the animation
4078 - // Make sure that we start at a small width/height to avoid any
4079 - // flash of content
4080 - this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur());
4081 -
4082 - // Start by showing the element
4083 - jQuery(this.elem).show();
4084 - },
4085 -
4086 - // Simple 'hide' function
4087 - hide: function(){
4088 - // Remember where we started, so that we can go back to it later
4089 - this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
4090 - this.options.hide = true;
4091 -
4092 - // Begin the animation
4093 - this.custom(this.cur(), 0);
4094 - },
4095 -
4096 - // Each step of an animation
4097 - step: function(gotoEnd){
4098 - var t = now();
4099 -
4100 - if ( gotoEnd || t >= this.options.duration + this.startTime ) {
4101 - this.now = this.end;
4102 - this.pos = this.state = 1;
4103 - this.update();
4104 -
4105 - this.options.curAnim[ this.prop ] = true;
4106 -
4107 - var done = true;
4108 - for ( var i in this.options.curAnim )
4109 - if ( this.options.curAnim[i] !== true )
4110 - done = false;
4111 -
4112 - if ( done ) {
4113 - if ( this.options.display != null ) {
4114 - // Reset the overflow
4115 - this.elem.style.overflow = this.options.overflow;
4116 -
4117 - // Reset the display
4118 - this.elem.style.display = this.options.display;
4119 - if ( jQuery.css(this.elem, "display") == "none" )
4120 - this.elem.style.display = "block";
4121 - }
4122 -
4123 - // Hide the element if the "hide" operation was done
4124 - if ( this.options.hide )
4125 - jQuery(this.elem).hide();
4126 -
4127 - // Reset the properties, if the item has been hidden or shown
4128 - if ( this.options.hide || this.options.show )
4129 - for ( var p in this.options.curAnim )
4130 - jQuery.attr(this.elem.style, p, this.options.orig[p]);
4131 -
4132 - // Execute the complete function
4133 - this.options.complete.call( this.elem );
4134 - }
4135 -
4136 - return false;
4137 - } else {
4138 - var n = t - this.startTime;
4139 - this.state = n / this.options.duration;
4140 -
4141 - // Perform the easing function, defaults to swing
4142 - this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
4143 - this.now = this.start + ((this.end - this.start) * this.pos);
4144 -
4145 - // Perform the next step of the animation
4146 - this.update();
4147 - }
4148 -
4149 - return true;
4150 - }
4151 -
4152 -};
4153 -
4154 -jQuery.extend( jQuery.fx, {
4155 - speeds:{
4156 - slow: 600,
4157 - fast: 200,
4158 - // Default speed
4159 - _default: 400
4160 - },
4161 - step: {
4162 -
4163 - opacity: function(fx){
4164 - jQuery.attr(fx.elem.style, "opacity", fx.now);
4165 - },
4166 -
4167 - _default: function(fx){
4168 - if ( fx.elem.style && fx.elem.style[ fx.prop ] != null )
4169 - fx.elem.style[ fx.prop ] = fx.now + fx.unit;
4170 - else
4171 - fx.elem[ fx.prop ] = fx.now;
4172 - }
4173 - }
4174 -});
4175 -if ( document.documentElement["getBoundingClientRect"] )
4176 - jQuery.fn.offset = function() {
4177 - if ( !this[0] ) return { top: 0, left: 0 };
4178 - if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
4179 - var box = this[0].getBoundingClientRect(), doc = this[0].ownerDocument, body = doc.body, docElem = doc.documentElement,
4180 - clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
4181 - top = box.top + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop || body.scrollTop ) - clientTop,
4182 - left = box.left + (self.pageXOffset || jQuery.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
4183 - return { top: top, left: left };
4184 - };
4185 -else
4186 - jQuery.fn.offset = function() {
4187 - if ( !this[0] ) return { top: 0, left: 0 };
4188 - if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
4189 - jQuery.offset.initialized || jQuery.offset.initialize();
4190 -
4191 - var elem = this[0], offsetParent = elem.offsetParent, prevOffsetParent = elem,
4192 - doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
4193 - body = doc.body, defaultView = doc.defaultView,
4194 - prevComputedStyle = defaultView.getComputedStyle(elem, null),
4195 - top = elem.offsetTop, left = elem.offsetLeft;
4196 -
4197 - while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
4198 - computedStyle = defaultView.getComputedStyle(elem, null);
4199 - top -= elem.scrollTop, left -= elem.scrollLeft;
4200 - if ( elem === offsetParent ) {
4201 - top += elem.offsetTop, left += elem.offsetLeft;
4202 - if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.tagName)) )
4203 - top += parseInt( computedStyle.borderTopWidth, 10) || 0,
4204 - left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
4205 - prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
4206 - }
4207 - if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" )
4208 - top += parseInt( computedStyle.borderTopWidth, 10) || 0,
4209 - left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
4210 - prevComputedStyle = computedStyle;
4211 - }
4212 -
4213 - if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" )
4214 - top += body.offsetTop,
4215 - left += body.offsetLeft;
4216 -
4217 - if ( prevComputedStyle.position === "fixed" )
4218 - top += Math.max(docElem.scrollTop, body.scrollTop),
4219 - left += Math.max(docElem.scrollLeft, body.scrollLeft);
4220 -
4221 - return { top: top, left: left };
4222 - };
4223 -
4224 -jQuery.offset = {
4225 - initialize: function() {
4226 - if ( this.initialized ) return;
4227 - var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop,
4228 - 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>';
4229 -
4230 - rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };
4231 - for ( prop in rules ) container.style[prop] = rules[prop];
4232 -
4233 - container.innerHTML = html;
4234 - body.insertBefore(container, body.firstChild);
4235 - innerDiv = container.firstChild, checkDiv = innerDiv.firstChild, td = innerDiv.nextSibling.firstChild.firstChild;
4236 -
4237 - this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
4238 - this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
4239 -
4240 - innerDiv.style.overflow = 'hidden', innerDiv.style.position = 'relative';
4241 - this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
4242 -
4243 - body.style.marginTop = '1px';
4244 - this.doesNotIncludeMarginInBodyOffset = (body.offsetTop === 0);
4245 - body.style.marginTop = bodyMarginTop;
4246 -
4247 - body.removeChild(container);
4248 - this.initialized = true;
4249 - },
4250 -
4251 - bodyOffset: function(body) {
4252 - jQuery.offset.initialized || jQuery.offset.initialize();
4253 - var top = body.offsetTop, left = body.offsetLeft;
4254 - if ( jQuery.offset.doesNotIncludeMarginInBodyOffset )
4255 - top += parseInt( jQuery.curCSS(body, 'marginTop', true), 10 ) || 0,
4256 - left += parseInt( jQuery.curCSS(body, 'marginLeft', true), 10 ) || 0;
4257 - return { top: top, left: left };
4258 - }
4259 -};
4260 -
4261 -
4262 -jQuery.fn.extend({
4263 - position: function() {
4264 - var left = 0, top = 0, results;
4265 -
4266 - if ( this[0] ) {
4267 - // Get *real* offsetParent
4268 - var offsetParent = this.offsetParent(),
4269 -
4270 - // Get correct offsets
4271 - offset = this.offset(),
4272 - parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
4273 -
4274 - // Subtract element margins
4275 - // note: when an element has margin: auto the offsetLeft and marginLeft
4276 - // are the same in Safari causing offset.left to incorrectly be 0
4277 - offset.top -= num( this, 'marginTop' );
4278 - offset.left -= num( this, 'marginLeft' );
4279 -
4280 - // Add offsetParent borders
4281 - parentOffset.top += num( offsetParent, 'borderTopWidth' );
4282 - parentOffset.left += num( offsetParent, 'borderLeftWidth' );
4283 -
4284 - // Subtract the two offsets
4285 - results = {
4286 - top: offset.top - parentOffset.top,
4287 - left: offset.left - parentOffset.left
4288 - };
4289 - }
4290 -
4291 - return results;
4292 - },
4293 -
4294 - offsetParent: function() {
4295 - var offsetParent = this[0].offsetParent || document.body;
4296 - while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
4297 - offsetParent = offsetParent.offsetParent;
4298 - return jQuery(offsetParent);
4299 - }
4300 -});
4301 -
4302 -
4303 -// Create scrollLeft and scrollTop methods
4304 -jQuery.each( ['Left', 'Top'], function(i, name) {
4305 - var method = 'scroll' + name;
4306 -
4307 - jQuery.fn[ method ] = function(val) {
4308 - if (!this[0]) return null;
4309 -
4310 - return val !== undefined ?
4311 -
4312 - // Set the scroll offset
4313 - this.each(function() {
4314 - this == window || this == document ?
4315 - window.scrollTo(
4316 - !i ? val : jQuery(window).scrollLeft(),
4317 - i ? val : jQuery(window).scrollTop()
4318 - ) :
4319 - this[ method ] = val;
4320 - }) :
4321 -
4322 - // Return the scroll offset
4323 - this[0] == window || this[0] == document ?
4324 - self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
4325 - jQuery.boxModel && document.documentElement[ method ] ||
4326 - document.body[ method ] :
4327 - this[0][ method ];
4328 - };
4329 -});
4330 -// Create innerHeight, innerWidth, outerHeight and outerWidth methods
4331 -jQuery.each([ "Height", "Width" ], function(i, name){
4332 -
4333 - var tl = i ? "Left" : "Top", // top or left
4334 - br = i ? "Right" : "Bottom", // bottom or right
4335 - lower = name.toLowerCase();
4336 -
4337 - // innerHeight and innerWidth
4338 - jQuery.fn["inner" + name] = function(){
4339 - return this[0] ?
4340 - jQuery.css( this[0], lower, false, "padding" ) :
4341 - null;
4342 - };
4343 -
4344 - // outerHeight and outerWidth
4345 - jQuery.fn["outer" + name] = function(margin) {
4346 - return this[0] ?
4347 - jQuery.css( this[0], lower, false, margin ? "margin" : "border" ) :
4348 - null;
4349 - };
4350 -
4351 - var type = name.toLowerCase();
4352 -
4353 - jQuery.fn[ type ] = function( size ) {
4354 - // Get window width or height
4355 - return this[0] == window ?
4356 - // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
4357 - document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] ||
4358 - document.body[ "client" + name ] :
4359 -
4360 - // Get document width or height
4361 - this[0] == document ?
4362 - // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
4363 - Math.max(
4364 - document.documentElement["client" + name],
4365 - document.body["scroll" + name], document.documentElement["scroll" + name],
4366 - document.body["offset" + name], document.documentElement["offset" + name]
4367 - ) :
4368 -
4369 - // Get or set width or height on the element
4370 - size === undefined ?
4371 - // Get width or height on the element
4372 - (this.length ? jQuery.css( this[0], type ) : null) :
4373 -
4374 - // Set the width or height on the element (default to pixels if value is unitless)
4375 - this.css( type, typeof size === "string" ? size : size + "px" );
4376 - };
4377 -
4378 -});
4379 -})();
4380 -
4381 -/* JavaScript for MediaWIki JS2 */
4382 -
4383 -/**
4384 - * This is designed to be directly compatible with (and is essentially taken
4385 - * directly from) the mv_embed code for bringing internationalized messages into
4386 - * the JavaScript space. As such, if we get to the point of merging that stuff
4387 - * into the main branch this code will be uneeded and probably cause issues.
4388 - */
4389 -
4390 -/**
4391 - * Mimics the no-conflict method used by the js2 stuff
4392 - */
4393 -$j = jQuery.noConflict();
4394 -/**
4395 - * Provides js2 compatible mw functions
4396 - */
4397 -if( typeof mw == 'undefined' || !mw ){
4398 - mw = { };
4399 - /**
4400 - * Provides js2 compatible onload hook
4401 - * @param func Function to call when ready
4402 - */
4403 - mw.ready = function( func ) {
4404 - $j(document).ready( func );
4405 - }
4406 - // Define a dummy mw.load function:
4407 - mw.load = function( deps, callback ) { callback(); };
4408 -
4409 - // Deinfe a dummy mw.loadDone function:
4410 - mw.loadDone = function( className ) { };
4411 -
4412 - // Creates global message object if not already in existence
4413 - if ( !gMsg ) var gMsg = {};
4414 -
4415 - /**
4416 - * Caches a list of messages for later retrieval
4417 - * @param {Object} msgSet Hash of key:value pairs of messages to cache
4418 - */
4419 - mw.addMessages = function ( msgSet ){
4420 - for ( var i in msgSet ){
4421 - gMsg[ i ] = msgSet[i];
4422 - }
4423 - }
4424 - /**
4425 - * Retieves a message from the global message cache, performing on-the-fly
4426 - * replacements using MediaWiki message syntax ($1, $2, etc.)
4427 - * @param {String} key Name of message as it is in MediaWiki
4428 - * @param {Array} args Array of replacement arguments
4429 - */
4430 - function gM( key, args ) {
4431 - var ms = '';
4432 - if ( key in gMsg ) {
4433 - ms = gMsg[ key ];
4434 - if ( typeof args == 'object' || typeof args == 'array' ) {
4435 - for ( var v in args ){
4436 - var rep = '\$'+ ( parseInt(v) + 1 );
4437 - ms = ms.replace( rep, args[v]);
4438 - }
4439 - } else if ( typeof args =='string' || typeof args =='number' ) {
4440 - ms = ms.replace( /\$1/, args );
4441 - }
4442 - return ms;
4443 - } else {
4444 - return '[' + key + ']';
4445 - }
4446 - }
4447 -
4448 -}
Index: trunk/phase3/js2/js2stopgap.min.js
@@ -1,436 +0,0 @@
2 -
3 -(function(){var
4 -window=this,undefined,_jQuery=window.jQuery,_$=window.$,jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);},quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;this.context=selector;return this;}
5 -if(typeof selector==="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])
6 -selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem&&elem.id!=match[3])
7 -return jQuery().find(selector);var ret=jQuery(elem||[]);ret.context=document;ret.selector=selector;return ret;}}else
8 -return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))
9 -return jQuery(document).ready(selector);if(selector.selector&&selector.context){this.selector=selector.selector;this.context=selector.context;}
10 -return this.setArray(jQuery.isArray(selector)?selector:jQuery.makeArray(selector));},selector:"",jquery:"1.3.2",size:function(){return this.length;},get:function(num){return num===undefined?Array.prototype.slice.call(this):this[num];},pushStack:function(elems,name,selector){var ret=jQuery(elems);ret.prevObject=this;ret.context=this.context;if(name==="find")
11 -ret.selector=this.selector+(this.selector?" ":"")+selector;else if(name)
12 -ret.selector=this.selector+"."+name+"("+selector+")";return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(typeof name==="string")
13 -if(value===undefined)
14 -return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}
15 -return this.each(function(i){for(name in options)
16 -jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)
17 -value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!=="object"&&text!=null)
18 -return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)
19 -ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0]){var wrap=jQuery(html,this[0].ownerDocument).clone();if(this[0].parentNode)
20 -wrap.insertBefore(this[0]);wrap.map(function(){var elem=this;while(elem.firstChild)
21 -elem=elem.firstChild;return elem;}).append(this);}
22 -return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType==1)
23 -this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType==1)
24 -this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},push:[].push,sort:[].sort,splice:[].splice,find:function(selector){if(this.length===1){var ret=this.pushStack([],"find",selector);ret.length=0;jQuery.find(selector,this[0],ret);return ret;}else{return this.pushStack(jQuery.unique(jQuery.map(this,function(elem){return jQuery.find(selector,elem);})),"find",selector);}},clone:function(events){var ret=this.map(function(){if(!jQuery.support.noCloneEvent&&!jQuery.isXMLDoc(this)){var html=this.outerHTML;if(!html){var div=this.ownerDocument.createElement("div");div.appendChild(this.cloneNode(true));html=div.innerHTML;}
25 -return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0];}else
26 -return this.cloneNode(true);});if(events===true){var orig=this.find("*").andSelf(),i=0;ret.find("*").andSelf().each(function(){if(this.nodeName!==orig[i].nodeName)
27 -return;var events=jQuery.data(orig[i],"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(this,type,events[type][handler],events[type][handler].data);}}
28 -i++;});}
29 -return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,jQuery.grep(this,function(elem){return elem.nodeType===1;})),"filter",selector);},closest:function(selector){var pos=jQuery.expr.match.POS.test(selector)?jQuery(selector):null,closer=0;return this.map(function(){var cur=this;while(cur&&cur.ownerDocument){if(pos?pos.index(cur)>-1:jQuery(cur).is(selector)){jQuery.data(cur,"closest",closer);return cur;}
30 -cur=cur.parentNode;closer++;}});},not:function(selector){if(typeof selector==="string")
31 -if(isSimple.test(selector))
32 -return this.pushStack(jQuery.multiFilter(selector,this,true),"not",selector);else
33 -selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector==="string"?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return!!selector&&this.is("."+selector);},val:function(value){if(value===undefined){var elem=this[0];if(elem){if(jQuery.nodeName(elem,'option'))
34 -return(elem.attributes.value||{}).specified?elem.value:elem.text;if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)
35 -return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery(option).val();if(one)
36 -return value;values.push(value);}}
37 -return values;}
38 -return(elem.value||"").replace(/\r/g,"");}
39 -return undefined;}
40 -if(typeof value==="number")
41 -value+='';return this.each(function(){if(this.nodeType!=1)
42 -return;if(jQuery.isArray(value)&&/radio|checkbox/.test(this.type))
43 -this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)
44 -this.selectedIndex=-1;}else
45 -this.value=value;});},html:function(value){return value===undefined?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,+i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},domManip:function(args,table,callback){if(this[0]){var fragment=(this[0].ownerDocument||this[0]).createDocumentFragment(),scripts=jQuery.clean(args,(this[0].ownerDocument||this[0]),fragment),first=fragment.firstChild;if(first)
46 -for(var i=0,l=this.length;i<l;i++)
47 -callback.call(root(this[i],first),this.length>1||i>0?fragment.cloneNode(true):fragment);if(scripts)
48 -jQuery.each(scripts,evalScript);}
49 -return this;function root(elem,cur){return table&&jQuery.nodeName(elem,"table")&&jQuery.nodeName(cur,"tr")?(elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody"))):elem;}}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)
50 -jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
51 -jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)
52 -elem.parentNode.removeChild(elem);}
53 -function now(){return+new Date;}
54 -jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2;}
55 -if(typeof target!=="object"&&!jQuery.isFunction(target))
56 -target={};if(length==i){target=this;--i;}
57 -for(;i<length;i++)
58 -if((options=arguments[i])!=null)
59 -for(var name in options){var src=target[name],copy=options[name];if(target===copy)
60 -continue;if(deep&&copy&&typeof copy==="object"&&!copy.nodeType)
61 -target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)
62 -target[name]=copy;}
63 -return target;};var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{},toString=Object.prototype.toString;jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)
64 -window.jQuery=_jQuery;return jQuery;},isFunction:function(obj){return toString.call(obj)==="[object Function]";},isArray:function(obj){return toString.call(obj)==="[object Array]";},isXMLDoc:function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&jQuery.isXMLDoc(elem.ownerDocument);},globalEval:function(data){if(data&&/\S/.test(data)){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.support.scriptEval)
65 -script.appendChild(document.createTextNode(data));else
66 -script.text=data;head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length===undefined){for(name in object)
67 -if(callback.apply(object[name],args)===false)
68 -break;}else
69 -for(;i<length;)
70 -if(callback.apply(object[i++],args)===false)
71 -break;}else{if(length===undefined){for(name in object)
72 -if(callback.call(object[name],name,object[name])===false)
73 -break;}else
74 -for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}
75 -return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))
76 -value=value.call(elem,i);return typeof value==="number"&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))
77 -elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)
78 -elem.className=classNames!==undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return elem&&jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}
79 -callback.call(elem);for(var name in options)
80 -elem.style[name]=old[name];},css:function(elem,name,force,extra){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;if(extra==="border")
81 -return;jQuery.each(which,function(){if(!extra)
82 -val-=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;if(extra==="margin")
83 -val+=parseFloat(jQuery.curCSS(elem,"margin"+this,true))||0;else
84 -val-=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});}
85 -if(elem.offsetWidth!==0)
86 -getWH();else
87 -jQuery.swap(elem,props,getWH);return Math.max(0,Math.round(val));}
88 -return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;if(name=="opacity"&&!jQuery.support.opacity){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}
89 -if(name.match(/float/i))
90 -name=styleFloat;if(!force&&style&&style[name])
91 -ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))
92 -name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();try{var computedStyle=defaultView.getComputedStyle(elem,null);}catch(e){}
93 -if(computedStyle)
94 -ret=computedStyle.getPropertyValue(name);if(name=="opacity"&&ret=="")
95 -ret="1";}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}
96 -return ret;},clean:function(elems,context,fragment){context=context||document;if(typeof context.createElement==="undefined")
97 -context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;if(!fragment&&elems.length===1&&typeof elems[0]==="string"){var match=/^<(\w+)\s*\/?>$/.exec(elems[0]);if(match)
98 -return[context.createElement(match[1])];}
99 -var ret=[],scripts=[],div=context.createElement("div");jQuery.each(elems,function(i,elem){if(typeof elem==="number")
100 -elem+='';if(!elem)
101 -return;if(typeof elem==="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=elem.replace(/^\s+/,"").substring(0,10).toLowerCase();var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!jQuery.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)
102 -div=div.lastChild;if(!jQuery.support.tbody){var hasBody=/<tbody/i.test(elem),tbody=!tags.indexOf("<table")&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&!hasBody?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)
103 -if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)
104 -tbody[j].parentNode.removeChild(tbody[j]);}
105 -if(!jQuery.support.leadingWhitespace&&/^\s/.test(elem))
106 -div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);elem=jQuery.makeArray(div.childNodes);}
107 -if(elem.nodeType)
108 -ret.push(elem);else
109 -ret=jQuery.merge(ret,elem);});if(fragment){for(var i=0;ret[i];i++){if(jQuery.nodeName(ret[i],"script")&&(!ret[i].type||ret[i].type.toLowerCase()==="text/javascript")){scripts.push(ret[i].parentNode?ret[i].parentNode.removeChild(ret[i]):ret[i]);}else{if(ret[i].nodeType===1)
110 -ret.splice.apply(ret,[i+1,0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))));fragment.appendChild(ret[i]);}}
111 -return scripts;}
112 -return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)
113 -return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&elem.parentNode)
114 -elem.parentNode.selectedIndex;if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)
115 -throw"type property can't be changed";elem[name]=value;}
116 -if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))
117 -return elem.getAttributeNode(name).nodeValue;if(name=="tabIndex"){var attributeNode=elem.getAttributeNode("tabIndex");return attributeNode&&attributeNode.specified?attributeNode.value:elem.nodeName.match(/(button|input|object|select|textarea)/i)?0:elem.nodeName.match(/^(a|area)$/i)&&elem.href?0:undefined;}
118 -return elem[name];}
119 -if(!jQuery.support.style&&notxml&&name=="style")
120 -return jQuery.attr(elem.style,"cssText",value);if(set)
121 -elem.setAttribute(name,""+value);var attr=!jQuery.support.hrefNormalized&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}
122 -if(!jQuery.support.opacity&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+
123 -(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}
124 -return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}
125 -name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set&&value!='NaNpx')
126 -elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||typeof array==="string"||jQuery.isFunction(array)||array.setInterval)
127 -ret[0]=array;else
128 -while(i)
129 -ret[--i]=array[i];}
130 -return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)
131 -if(array[i]===elem)
132 -return i;return-1;},merge:function(first,second){var i=0,elem,pos=first.length;if(!jQuery.support.getAll){while((elem=second[i++])!=null)
133 -if(elem.nodeType!=8)
134 -first[pos++]=elem;}else
135 -while((elem=second[i++])!=null)
136 -first[pos++]=elem;return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}
137 -return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)
138 -if(!inv!=!callback(elems[i],i))
139 -ret.push(elems[i]);return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null)
140 -ret[ret.length]=value;}
141 -return ret.concat.apply([],ret);}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,'0'])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")
142 -ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret),name,selector);};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var ret=[],insert=jQuery(selector);for(var i=0,l=insert.length;i<l;i++){var elems=(i>0?this.clone(true):this).get();jQuery.fn[original].apply(jQuery(insert[i]),elems);ret=ret.concat(elems);}
143 -return this.pushStack(ret,name,selector);};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)
144 -this.removeAttribute(name);},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames,state){if(typeof state!=="boolean")
145 -state=!jQuery.className.has(this,classNames);jQuery.className[state?"add":"remove"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).length){jQuery("*",this).add([this]).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)
146 -this.parentNode.removeChild(this);}},empty:function(){jQuery(this).children().remove();while(this.firstChild)
147 -this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}
148 -var expando="jQuery"+now(),uuid=0,windowData={};jQuery.extend({cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)
149 -id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])
150 -jQuery.cache[id]={};if(data!==undefined)
151 -jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])
152 -break;if(!name)
153 -jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)
154 -elem.removeAttribute(expando);}
155 -delete jQuery.cache[id];}},queue:function(elem,type,data){if(elem){type=(type||"fx")+"queue";var q=jQuery.data(elem,type);if(!q||jQuery.isArray(data))
156 -q=jQuery.data(elem,type,jQuery.makeArray(data));else if(data)
157 -q.push(data);}
158 -return q;},dequeue:function(elem,type){var queue=jQuery.queue(elem,type),fn=queue.shift();if(!type||type==="fx")
159 -fn=queue[0];if(fn!==undefined)
160 -fn.call(elem);}});jQuery.fn.extend({data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)
161 -data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
162 -return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},queue:function(type,data){if(typeof type!=="string"){data=type;type="fx";}
163 -if(data===undefined)
164 -return jQuery.queue(this[0],type);return this.each(function(){var queue=jQuery.queue(this,type,data);if(type=="fx"&&queue.length==1)
165 -queue[0].call(this);});},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type);});}});(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,done=0,toString=Object.prototype.toString;var Sizzle=function(selector,context,results,seed){results=results||[];context=context||document;if(context.nodeType!==1&&context.nodeType!==9)
166 -return[];if(!selector||typeof selector!=="string"){return results;}
167 -var parts=[],m,set,checkSet,check,mode,extra,prune=true;chunker.lastIndex=0;while((m=chunker.exec(selector))!==null){parts.push(m[1]);if(m[2]){extra=RegExp.rightContext;break;}}
168 -if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context);}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector])
169 -selector+=parts.shift();set=posProcess(selector,set);}}}else{var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&context.parentNode?context.parentNode:context,isXML(context));set=Sizzle.filter(ret.expr,ret.set);if(parts.length>0){checkSet=makeArray(set);}else{prune=false;}
170 -while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur="";}else{pop=parts.pop();}
171 -if(pop==null){pop=context;}
172 -Expr.relative[cur](checkSet,pop,isXML(context));}}
173 -if(!checkSet){checkSet=set;}
174 -if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector);}
175 -if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet);}else if(context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i]);}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i]);}}}}else{makeArray(checkSet,results);}
176 -if(extra){Sizzle(extra,context,results,seed);if(sortOrder){hasDuplicate=false;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1);}}}}}
177 -return results;};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set);};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[];}
178 -for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.match[type].exec(expr))){var left=RegExp.leftContext;if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break;}}}}
179 -if(!set){set=context.getElementsByTagName("*");}
180 -return{set:set,expr:expr};};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop==result){result=[];}
181 -if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true;}else if(match===true){continue;}}
182 -if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true;}else{curLoop[i]=false;}}else if(pass){result.push(item);anyFound=true;}}}}
183 -if(found!==undefined){if(!inplace){curLoop=result;}
184 -expr=expr.replace(Expr.match[type],"");if(!anyFound){return[];}
185 -break;}}}
186 -if(expr==old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr;}else{break;}}
187 -old=expr;}
188 -return curLoop;};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href");}},relative:{"+":function(checkSet,part,isXML){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag&&!isXML){part=part.toUpperCase();}
189 -for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}
190 -checkSet[i]=isPartStrNotTag||elem&&elem.nodeName===part?elem||false:elem===part;}}
191 -if(isPartStrNotTag){Sizzle.filter(part,checkSet,true);}},">":function(checkSet,part,isXML){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=isXML?part:part.toUpperCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName===part?parent:false;}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part;}}
192 -if(isPartStr){Sizzle.filter(part,checkSet,true);}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}
193 -checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML);},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}
194 -checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML);}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[];}},NAME:function(match,context,isXML){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i]);}}
195 -return ret.length===0?null:ret;}},TAG:function(match,context){return context.getElementsByTagName(match[1]);}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match;}
196 -for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").indexOf(match)>=0)){if(!inplace)
197 -result.push(elem);}else if(inplace){curLoop[i]=false;}}}
198 -return false;},ID:function(match){return match[1].replace(/\\/g,"");},TAG:function(match,curLoop){for(var i=0;curLoop[i]===false;i++){}
199 -return curLoop[i]&&isXML(curLoop[i])?match[1]:match[1].toUpperCase();},CHILD:function(match){if(match[1]=="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]=="even"&&"2n"||match[2]=="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0;}
200 -match[0]=done++;return match;},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name];}
201 -if(match[2]==="~="){match[4]=" "+match[4]+" ";}
202 -return match;},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if(match[3].match(chunker).length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop);}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret);}
203 -return false;}}else if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true;}
204 -return match;},POS:function(match){match.unshift(true);return match;}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden";},disabled:function(elem){return elem.disabled===true;},checked:function(elem){return elem.checked===true;},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true;},parent:function(elem){return!!elem.firstChild;},empty:function(elem){return!elem.firstChild;},has:function(elem,i,match){return!!Sizzle(match[3],elem).length;},header:function(elem){return/h\d/i.test(elem.nodeName);},text:function(elem){return"text"===elem.type;},radio:function(elem){return"radio"===elem.type;},checkbox:function(elem){return"checkbox"===elem.type;},file:function(elem){return"file"===elem.type;},password:function(elem){return"password"===elem.type;},submit:function(elem){return"submit"===elem.type;},image:function(elem){return"image"===elem.type;},reset:function(elem){return"reset"===elem.type;},button:function(elem){return"button"===elem.type||elem.nodeName.toUpperCase()==="BUTTON";},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName);}},setFilters:{first:function(elem,i){return i===0;},last:function(elem,i,match,array){return i===array.length-1;},even:function(elem,i){return i%2===0;},odd:function(elem,i){return i%2===1;},lt:function(elem,i,match){return i<match[3]-0;},gt:function(elem,i,match){return i>match[3]-0;},nth:function(elem,i,match){return match[3]-0==i;},eq:function(elem,i,match){return match[3]-0==i;}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array);}else if(name==="contains"){return(elem.textContent||elem.innerText||"").indexOf(match[3])>=0;}else if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false;}}
205 -return true;}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case'only':case'first':while(node=node.previousSibling){if(node.nodeType===1)return false;}
206 -if(type=='first')return true;node=elem;case'last':while(node=node.nextSibling){if(node.nodeType===1)return false;}
207 -return true;case'nth':var first=match[2],last=match[3];if(first==1&&last==0){return true;}
208 -var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count;}}
209 -parent.sizcache=doneName;}
210 -var diff=elem.nodeIndex-last;if(first==0){return diff==0;}else{return(diff%first==0&&diff/first>=0);}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match;},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName===match;},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1;},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!=check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false;},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array);}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);}
211 -var makeArray=function(array,results){array=Array.prototype.slice.call(array);if(results){results.push.apply(results,array);return results;}
212 -return array;};try{Array.prototype.slice.call(document.documentElement.childNodes);}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array);}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i]);}}else{for(var i=0;array[i];i++){ret.push(array[i]);}}}
213 -return ret;};}
214 -var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true;}
215 -return ret;};}else if("sourceIndex"in document.documentElement){sortOrder=function(a,b){var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true;}
216 -return ret;};}else if(document.createRange){sortOrder=function(a,b){var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.selectNode(a);aRange.collapse(true);bRange.selectNode(b);bRange.collapse(true);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true;}
217 -return ret;};}
218 -(function(){var form=document.createElement("form"),id="script"+(new Date).getTime();form.innerHTML="<input name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(!!document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[];}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match;};}
219 -root.removeChild(form);})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i]);}}
220 -results=tmp;}
221 -return results;};}
222 -div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2);};}})();if(document.querySelectorAll)(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return;}
223 -Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra);}catch(e){}}
224 -return oldSizzle(query,context,extra,seed);};Sizzle.find=oldSizzle.find;Sizzle.filter=oldSizzle.filter;Sizzle.selectors=oldSizzle.selectors;Sizzle.matches=oldSizzle.matches;})();if(document.getElementsByClassName&&document.documentElement.getElementsByClassName)(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(div.getElementsByClassName("e").length===0)
225 -return;div.lastChild.className="e";if(div.getElementsByClassName("e").length===1)
226 -return;Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1]);}};})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}
227 -elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}
228 -if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i;}
229 -if(elem.nodeName===cur){match=elem;break;}
230 -elem=elem[dir];}
231 -checkSet[i]=match;}}}
232 -function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}
233 -elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}
234 -if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i;}
235 -if(typeof cur!=="string"){if(elem===cur){match=true;break;}}else if(Sizzle.filter(cur,[elem]).length>0){match=elem;break;}}
236 -elem=elem[dir];}
237 -checkSet[i]=match;}}}
238 -var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16;}:function(a,b){return a!==b&&(a.contains?a.contains(b):true);};var isXML=function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&isXML(elem.ownerDocument);};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"");}
239 -selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet);}
240 -return Sizzle.filter(later,tmpSet);};jQuery.find=Sizzle;jQuery.filter=Sizzle.filter;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.filters;Sizzle.selectors.filters.hidden=function(elem){return elem.offsetWidth===0||elem.offsetHeight===0;};Sizzle.selectors.filters.visible=function(elem){return elem.offsetWidth>0||elem.offsetHeight>0;};Sizzle.selectors.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem;}).length;};jQuery.multiFilter=function(expr,elems,not){if(not){expr=":not("+expr+")";}
241 -return Sizzle.matches(expr,elems);};jQuery.dir=function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)
242 -matched.push(cur);cur=cur[dir];}
243 -return matched;};jQuery.nth=function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])
244 -if(cur.nodeType==1&&++num==result)
245 -break;return cur;};jQuery.sibling=function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)
246 -r.push(n);}
247 -return r;};return;window.Sizzle=Sizzle;})();jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)
248 -return;if(elem.setInterval&&elem!=window)
249 -elem=window;if(!handler.guid)
250 -handler.guid=this.guid++;if(data!==undefined){var fn=handler;handler=this.proxy(fn);handler.data=data;}
251 -var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){return typeof jQuery!=="undefined"&&!jQuery.event.triggered?jQuery.event.handle.apply(arguments.callee.elem,arguments):undefined;});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var namespaces=type.split(".");type=namespaces.shift();handler.type=namespaces.slice().sort().join(".");var handlers=events[type];if(jQuery.event.specialAll[type])
252 -jQuery.event.specialAll[type].setup.call(elem,data,namespaces);if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem,data,namespaces)===false){if(elem.addEventListener)
253 -elem.addEventListener(type,handle,false);else if(elem.attachEvent)
254 -elem.attachEvent("on"+type,handle);}}
255 -handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)
256 -return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types===undefined||(typeof types==="string"&&types.charAt(0)=="."))
257 -for(var type in events)
258 -this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}
259 -jQuery.each(types.split(/\s+/),function(index,type){var namespaces=type.split(".");type=namespaces.shift();var namespace=RegExp("(^|\\.)"+namespaces.slice().sort().join(".*\\.")+"(\\.|$)");if(events[type]){if(handler)
260 -delete events[type][handler.guid];else
261 -for(var handle in events[type])
262 -if(namespace.test(events[type][handle].type))
263 -delete events[type][handle];if(jQuery.event.specialAll[type])
264 -jQuery.event.specialAll[type].teardown.call(elem,namespaces);for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem,namespaces)===false){if(elem.removeEventListener)
265 -elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)
266 -elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}
267 -ret=null;delete events[type];}}});}
268 -for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(event,data,elem,bubbling){var type=event.type||event;if(!bubbling){event=typeof event==="object"?event[expando]?event:jQuery.extend(jQuery.Event(type),event):jQuery.Event(type);if(type.indexOf("!")>=0){event.type=type=type.slice(0,-1);event.exclusive=true;}
269 -if(!elem){event.stopPropagation();if(this.global[type])
270 -jQuery.each(jQuery.cache,function(){if(this.events&&this.events[type])
271 -jQuery.event.trigger(event,data,this.handle.elem);});}
272 -if(!elem||elem.nodeType==3||elem.nodeType==8)
273 -return undefined;event.result=undefined;event.target=elem;data=jQuery.makeArray(data);data.unshift(event);}
274 -event.currentTarget=elem;var handle=jQuery.data(elem,"handle");if(handle)
275 -handle.apply(elem,data);if((!elem[type]||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)
276 -event.result=false;if(!bubbling&&elem[type]&&!event.isDefaultPrevented()&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}
277 -this.triggered=false;if(!event.isPropagationStopped()){var parent=elem.parentNode||elem.ownerDocument;if(parent)
278 -jQuery.event.trigger(event,data,parent,true);}},handle:function(event){var all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);event.currentTarget=this;var namespaces=event.type.split(".");event.type=namespaces.shift();all=!namespaces.length&&!event.exclusive;var namespace=RegExp("(^|\\.)"+namespaces.slice().sort().join(".*\\.")+"(\\.|$)");handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||namespace.test(handler.type)){event.handler=handler;event.data=handler.data;var ret=handler.apply(this,arguments);if(ret!==undefined){event.result=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}
279 -if(event.isImmediatePropagationStopped())
280 -break;}}},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 toElement view wheelDelta which".split(" "),fix:function(event){if(event[expando])
281 -return event;var originalEvent=event;event=jQuery.Event(originalEvent);for(var i=this.props.length,prop;i;){prop=this.props[--i];event[prop]=originalEvent[prop];}
282 -if(!event.target)
283 -event.target=event.srcElement||document;if(event.target.nodeType==3)
284 -event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)
285 -event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}
286 -if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))
287 -event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)
288 -event.metaKey=event.ctrlKey;if(!event.which&&event.button)
289 -event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy=proxy||function(){return fn.apply(this,arguments);};proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:bindReady,teardown:function(){}}},specialAll:{live:{setup:function(selector,namespaces){jQuery.event.add(this,namespaces[0],liveHandler);},teardown:function(namespaces){if(namespaces.length){var remove=0,name=RegExp("(^|\\.)"+namespaces[0]+"(\\.|$)");jQuery.each((jQuery.data(this,"events").live||{}),function(){if(name.test(this.type))
290 -remove++;});if(remove<1)
291 -jQuery.event.remove(this,namespaces[0],liveHandler);}}}}};jQuery.Event=function(src){if(!this.preventDefault)
292 -return new jQuery.Event(src);if(src&&src.type){this.originalEvent=src;this.type=src.type;}else
293 -this.type=src;this.timeStamp=now();this[expando]=true;};function returnFalse(){return false;}
294 -function returnTrue(){return true;}
295 -jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e)
296 -return;if(e.preventDefault)
297 -e.preventDefault();e.returnValue=false;},stopPropagation:function(){this.isPropagationStopped=returnTrue;var e=this.originalEvent;if(!e)
298 -return;if(e.stopPropagation)
299 -e.stopPropagation();e.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation();},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};var withinElement=function(event){var parent=event.relatedTarget;while(parent&&parent!=this)
300 -try{parent=parent.parentNode;}
301 -catch(e){parent=this;}
302 -if(parent!=this){event.type=event.data;jQuery.event.handle.apply(this,arguments);}};jQuery.each({mouseover:'mouseenter',mouseout:'mouseleave'},function(orig,fix){jQuery.event.special[fix]={setup:function(){jQuery.event.add(this,orig,withinElement,fix);},teardown:function(){jQuery.event.remove(this,orig,withinElement);}};});jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this);});},triggerHandler:function(type,data){if(this[0]){var event=jQuery.Event(type);event.preventDefault();event.stopPropagation();jQuery.event.trigger(event,data,this[0]);return event.result;}},toggle:function(fn){var args=arguments,i=1;while(i<args.length)
303 -jQuery.event.proxy(fn,args[i++]);return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)
304 -fn.call(document,jQuery);else
305 -jQuery.readyList.push(fn);return this;},live:function(type,fn){var proxy=jQuery.event.proxy(fn);proxy.guid+=this.selector+type;jQuery(document).bind(liveConvert(type,this.selector),this.selector,proxy);return this;},die:function(type,fn){jQuery(document).unbind(liveConvert(type,this.selector),fn?{guid:fn.guid+this.selector+type}:null);return this;}});function liveHandler(event){var check=RegExp("(^|\\.)"+event.type+"(\\.|$)"),stop=true,elems=[];jQuery.each(jQuery.data(this,"events").live||[],function(i,fn){if(check.test(fn.type)){var elem=jQuery(event.target).closest(fn.data)[0];if(elem)
306 -elems.push({elem:elem,fn:fn});}});elems.sort(function(a,b){return jQuery.data(a.elem,"closest")-jQuery.data(b.elem,"closest");});jQuery.each(elems,function(){if(this.fn.call(this.elem,event,this.fn.data)===false)
307 -return(stop=false);});return stop;}
308 -function liveConvert(type,selector){return["live",type,selector.replace(/\./g,"`").replace(/ /g,"|")].join(".");}
309 -jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document,jQuery);});jQuery.readyList=null;}
310 -jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);jQuery.ready();},false);}else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);jQuery.ready();}});if(document.documentElement.doScroll&&window==window.top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}
311 -jQuery.ready();})();}
312 -jQuery.event.add(window,"load",jQuery.ready);}
313 -jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,"+"change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});jQuery(window).bind('unload',function(){for(var id in jQuery.cache)
314 -if(id!=1&&jQuery.cache[id].handle)
315 -jQuery.event.remove(jQuery.cache[id].handle.elem);});(function(){jQuery.support={};var root=document.documentElement,script=document.createElement("script"),div=document.createElement("div"),id="script"+(new Date).getTime();div.style.display="none";div.innerHTML=' <link/><table></table><a href="https://www.mediawiki.org/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var all=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!all||!all.length||!a){return;}
316 -jQuery.support={leadingWhitespace:div.firstChild.nodeType==3,tbody:!div.getElementsByTagName("tbody").length,objectAll:!!div.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:a.style.opacity==="0.5",cssFloat:!!a.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};script.type="text/javascript";try{script.appendChild(document.createTextNode("window."+id+"=1;"));}catch(e){}
317 -root.insertBefore(script,root.firstChild);if(window[id]){jQuery.support.scriptEval=true;delete window[id];}
318 -root.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function(){jQuery.support.noCloneEvent=false;div.detachEvent("onclick",arguments.callee);});div.cloneNode(true).fireEvent("onclick");}
319 -jQuery(function(){var div=document.createElement("div");div.style.width=div.style.paddingLeft="1px";document.body.appendChild(div);jQuery.boxModel=jQuery.support.boxModel=div.offsetWidth===2;document.body.removeChild(div).style.display='none';});})();var styleFloat=jQuery.support.cssFloat?"cssFloat":"styleFloat";jQuery.props={"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!=="string")
320 -return this._load(url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}
321 -var type="GET";if(params)
322 -if(jQuery.isFunction(params)){callback=params;params=null;}else if(typeof params==="object"){params=jQuery.param(params);type="POST";}
323 -var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")
324 -self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);if(callback)
325 -self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}
326 -return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}
327 -return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!=="string")
328 -s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre))
329 -s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))
330 -s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}
331 -if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)
332 -s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}
333 -if(head)
334 -head.removeChild(script);};}
335 -if(s.dataType=="script"&&s.cache==null)
336 -s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}
337 -if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}
338 -if(s.global&&!jQuery.active++)
339 -jQuery.event.trigger("ajaxStart");var parts=/^(\w+:)?\/\/([^\/?#]+)/.exec(s.url);if(s.dataType=="script"&&type=="GET"&&parts&&(parts[1]&&parts[1]!=location.protocol||parts[2]!=location.host)){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)
340 -script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();script.onload=script.onreadystatechange=null;head.removeChild(script);}};}
341 -head.appendChild(script);return undefined;}
342 -var requestDone=false;var xhr=s.xhr();if(s.username)
343 -xhr.open(type,s.url,s.async,s.username,s.password);else
344 -xhr.open(type,s.url,s.async);try{if(s.data)
345 -xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)
346 -xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}
347 -if(s.beforeSend&&s.beforeSend(xhr,s)===false){if(s.global&&!--jQuery.active)
348 -jQuery.event.trigger("ajaxStop");xhr.abort();return false;}
349 -if(s.global)
350 -jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(xhr.readyState==0){if(ival){clearInterval(ival);ival=null;if(s.global&&!--jQuery.active)
351 -jQuery.event.trigger("ajaxStop");}}else if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}
352 -status=isTimeout=="timeout"?"timeout":!jQuery.httpSuccess(xhr)?"error":s.ifModified&&jQuery.httpNotModified(xhr,s.url)?"notmodified":"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s);}catch(e){status="parsererror";}}
353 -if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}
354 -if(s.ifModified&&modRes)
355 -jQuery.lastModified[s.url]=modRes;if(!jsonp)
356 -success();}else
357 -jQuery.handleError(s,xhr,status);complete();if(isTimeout)
358 -xhr.abort();if(s.async)
359 -xhr=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)
360 -setTimeout(function(){if(xhr&&!requestDone)
361 -onreadystatechange("timeout");},s.timeout);}
362 -try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}
363 -if(!s.async)
364 -onreadystatechange();function success(){if(s.success)
365 -s.success(data,status);if(s.global)
366 -jQuery.event.trigger("ajaxSuccess",[xhr,s]);}
367 -function complete(){if(s.complete)
368 -s.complete(xhr,status);if(s.global)
369 -jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)
370 -jQuery.event.trigger("ajaxStop");}
371 -return xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)
372 -jQuery.event.trigger("ajaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223;}catch(e){}
373 -return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url];}catch(e){}
374 -return false;},httpData:function(xhr,type,s){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")
375 -throw"parsererror";if(s&&s.dataFilter)
376 -data=s.dataFilter(data,type);if(typeof data==="string"){if(type=="script")
377 -jQuery.globalEval(data);if(type=="json")
378 -data=window["eval"]("("+data+")");}
379 -return data;},param:function(a){var s=[];function add(key,value){s[s.length]=encodeURIComponent(key)+'='+encodeURIComponent(value);};if(jQuery.isArray(a)||a.jquery)
380 -jQuery.each(a,function(){add(this.name,this.value);});else
381 -for(var j in a)
382 -if(jQuery.isArray(a[j]))
383 -jQuery.each(a[j],function(){add(j,this);});else
384 -add(j,jQuery.isFunction(a[j])?a[j]():a[j]);return s.join("&").replace(/%20/g,"+");}});var elemdisplay={},timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function genFx(type,num){var obj={};jQuery.each(fxAttrs.concat.apply([],fxAttrs.slice(0,num)),function(){obj[this]=type;});return obj;}
385 -jQuery.fn.extend({show:function(speed,callback){if(speed){return this.animate(genFx("show",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");this[i].style.display=old||"";if(jQuery.css(this[i],"display")==="none"){var tagName=this[i].tagName,display;if(elemdisplay[tagName]){display=elemdisplay[tagName];}else{var elem=jQuery("<"+tagName+" />").appendTo("body");display=elem.css("display");if(display==="none")
386 -display="block";elem.remove();elemdisplay[tagName]=display;}
387 -jQuery.data(this[i],"olddisplay",display);}}
388 -for(var i=0,l=this.length;i<l;i++){this[i].style.display=jQuery.data(this[i],"olddisplay")||"";}
389 -return this;}},hide:function(speed,callback){if(speed){return this.animate(genFx("hide",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");if(!old&&old!=="none")
390 -jQuery.data(this[i],"olddisplay",jQuery.css(this[i],"display"));}
391 -for(var i=0,l=this.length;i<l;i++){this[i].style.display="none";}
392 -return this;}},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){var bool=typeof fn==="boolean";return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn==null||bool?this.each(function(){var state=bool?fn:jQuery(this).is(":hidden");jQuery(this)[state?"show":"hide"]();}):this.animate(genFx("toggle",3),fn,fn2);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){var opt=jQuery.extend({},optall),p,hidden=this.nodeType==1&&jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)
393 -return opt.complete.call(this);if((p=="height"||p=="width")&&this.style){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}
394 -if(opt.overflow!=null)
395 -this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))
396 -e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}
397 -if(parts[1])
398 -end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
399 -e.custom(start,val,"");}});return true;});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)
400 -this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)
401 -if(timers[i].elem==this){if(gotoEnd)
402 -timers[i](true);timers.splice(i,1);}});if(!gotoEnd)
403 -this.dequeue();return this;}});jQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(name,props){jQuery.fn[name]=function(speed,callback){return this.animate(props,speed,callback);};});jQuery.extend({speed:function(speed,easing,fn){var opt=typeof speed==="object"?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:jQuery.fx.speeds[opt.duration]||jQuery.fx.speeds._default;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)
404 -jQuery(this).dequeue();if(jQuery.isFunction(opt.old))
405 -opt.old.call(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)
406 -options.orig={};}});jQuery.fx.prototype={update:function(){if(this.options.step)
407 -this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style)
408 -this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))
409 -return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;var self=this;function t(gotoEnd){return self.step(gotoEnd);}
410 -t.elem=this.elem;if(t()&&jQuery.timers.push(t)&&!timerId){timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)
411 -if(!timers[i]())
412 -timers.splice(i--,1);if(!timers.length){clearInterval(timerId);timerId=undefined;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();if(gotoEnd||t>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)
413 -if(this.options.curAnim[i]!==true)
414 -done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")
415 -this.elem.style.display="block";}
416 -if(this.options.hide)
417 -jQuery(this.elem).hide();if(this.options.hide||this.options.show)
418 -for(var p in this.options.curAnim)
419 -jQuery.attr(this.elem.style,p,this.options.orig[p]);this.options.complete.call(this.elem);}
420 -return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}
421 -return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){if(fx.elem.style&&fx.elem.style[fx.prop]!=null)
422 -fx.elem.style[fx.prop]=fx.now+fx.unit;else
423 -fx.elem[fx.prop]=fx.now;}}});if(document.documentElement["getBoundingClientRect"])
424 -jQuery.fn.offset=function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return jQuery.offset.bodyOffset(this[0]);var box=this[0].getBoundingClientRect(),doc=this[0].ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=box.top+(self.pageYOffset||jQuery.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=box.left+(self.pageXOffset||jQuery.boxModel&&docElem.scrollLeft||body.scrollLeft)-clientLeft;return{top:top,left:left};};else
425 -jQuery.fn.offset=function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return jQuery.offset.bodyOffset(this[0]);jQuery.offset.initialized||jQuery.offset.initialize();var elem=this[0],offsetParent=elem.offsetParent,prevOffsetParent=elem,doc=elem.ownerDocument,computedStyle,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView.getComputedStyle(elem,null),top=elem.offsetTop,left=elem.offsetLeft;while((elem=elem.parentNode)&&elem!==body&&elem!==docElem){computedStyle=defaultView.getComputedStyle(elem,null);top-=elem.scrollTop,left-=elem.scrollLeft;if(elem===offsetParent){top+=elem.offsetTop,left+=elem.offsetLeft;if(jQuery.offset.doesNotAddBorder&&!(jQuery.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(elem.tagName)))
426 -top+=parseInt(computedStyle.borderTopWidth,10)||0,left+=parseInt(computedStyle.borderLeftWidth,10)||0;prevOffsetParent=offsetParent,offsetParent=elem.offsetParent;}
427 -if(jQuery.offset.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible")
428 -top+=parseInt(computedStyle.borderTopWidth,10)||0,left+=parseInt(computedStyle.borderLeftWidth,10)||0;prevComputedStyle=computedStyle;}
429 -if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static")
430 -top+=body.offsetTop,left+=body.offsetLeft;if(prevComputedStyle.position==="fixed")
431 -top+=Math.max(docElem.scrollTop,body.scrollTop),left+=Math.max(docElem.scrollLeft,body.scrollLeft);return{top:top,left:left};};jQuery.offset={initialize:function(){if(this.initialized)return;var body=document.body,container=document.createElement('div'),innerDiv,checkDiv,table,td,rules,prop,bodyMarginTop=body.style.marginTop,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>';rules={position:'absolute',top:0,left:0,margin:0,border:0,width:'1px',height:'1px',visibility:'hidden'};for(prop in rules)container.style[prop]=rules[prop];container.innerHTML=html;body.insertBefore(container,body.firstChild);innerDiv=container.firstChild,checkDiv=innerDiv.firstChild,td=innerDiv.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);innerDiv.style.overflow='hidden',innerDiv.style.position='relative';this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);body.style.marginTop='1px';this.doesNotIncludeMarginInBodyOffset=(body.offsetTop===0);body.style.marginTop=bodyMarginTop;body.removeChild(container);this.initialized=true;},bodyOffset:function(body){jQuery.offset.initialized||jQuery.offset.initialize();var top=body.offsetTop,left=body.offsetLeft;if(jQuery.offset.doesNotIncludeMarginInBodyOffset)
432 -top+=parseInt(jQuery.curCSS(body,'marginTop',true),10)||0,left+=parseInt(jQuery.curCSS(body,'marginLeft',true),10)||0;return{top:top,left:left};}};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}
433 -return results;},offsetParent:function(){var offsetParent=this[0].offsetParent||document.body;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))
434 -offsetParent=offsetParent.offsetParent;return jQuery(offsetParent);}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return null;return val!==undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom",lower=name.toLowerCase();jQuery.fn["inner"+name]=function(){return this[0]?jQuery.css(this[0],lower,false,"padding"):null;};jQuery.fn["outer"+name]=function(margin){return this[0]?jQuery.css(this[0],lower,false,margin?"margin":"border"):null;};var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(document.documentElement["client"+name],document.body["scroll"+name],document.documentElement["scroll"+name],document.body["offset"+name],document.documentElement["offset"+name]):size===undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,typeof size==="string"?size:size+"px");};});})();$j=jQuery.noConflict();if(typeof mw=='undefined'||!mw){mw={};mw.ready=function(func){$j(document).ready(func);}
435 -mw.load=function(deps,callback){callback();};mw.loadDone=function(className){};if(!gMsg)var gMsg={};mw.addMessages=function(msgSet){for(var i in msgSet){gMsg[i]=msgSet[i];}}
436 -function gM(key,args){var ms='';if(key in gMsg){ms=gMsg[key];if(typeof args=='object'||typeof args=='array'){for(var v in args){var rep='\$'+(parseInt(v)+1);ms=ms.replace(rep,args[v]);}}else if(typeof args=='string'||typeof args=='number'){ms=ms.replace(/\$1/,args);}
437 -return ms;}else{return'['+key+']';}}}
\ No newline at end of file

Follow-up revisions

RevisionCommit summaryAuthorDate
r61608wmf-deployment: Merge (parts of) r59780, r61431, r61489, r61557, r61558, r615...catrope21:59, 27 January 2010
r79641Removing Makefile from /skins/common (only used for minifiying jquery, which ...krinkle12:21, 5 January 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r61137* added inline section edit to wikiEditor ( using js2 / mwEmbed conventions )...dale17:42, 16 January 2010

Comments

#Comment by Catrope (talk | contribs)   12:04, 27 January 2010

In combination with $modules (which is ignored as of r61568, granted), $this->mJQueryDone = true; is too simplistic. It'll cause includeJQuery(array('bar')) to be a no-op and not load bar if includeJQuery(array('foo')) was called before. You need per-module load statuses, provided the $modules array is the direction you want to take with includeJQuery().

Status & tagging log